Compare commits

...
Author SHA1 Message Date
github-actions[bot] 7f221ad3d5 Install payload for v3.2.6
Source commit: 603c871720
2026-12-05 06:41:04 +00:00
43 changed files with 409 additions and 195 deletions

No files matched your search

+45 -45
View File
@@ -1,19 +1,19 @@
{ {
"kind": "install-ref", "kind": "install-ref",
"version": "3.2.5", "version": "3.2.6",
"sourceTag": "v3.2.5", "sourceTag": "v3.2.6",
"sourceCommit": "9629961f364fa027c33e71f882b9096f3523273c", "sourceCommit": "603c87172040aff86bcb9d0f252e1ad71b7e14ce",
"files": { "files": {
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", "LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
"NOTICE": "6bba9f25892e3cdd053dca21b4315e2d169ea3015f6cfcc2ed278cf46e9b0e88", "NOTICE": "6bba9f25892e3cdd053dca21b4315e2d169ea3015f6cfcc2ed278cf46e9b0e88",
"install.js": "11bc273fb2930fb028d2ae3e977df5dfd07673e4586ab5bfdf322560fb538b7b", "install.js": "188b9cd7663ac85523e13cfb51efe534b3a912338f7cfbf9d70766b04baf9985",
"package.json": "cf63941036bd1f337b1f6831ddc4a1d2b6cd62dd5508970805ed75ca8173c65d", "package.json": "805b3f2fe6a83032ab2312f4fc6bee7bbc4f4d22b33b2565a9ae8baa45586eb5",
"src/installer/canonical-skills.js": "d23034407c14ba491cc95ad034dac1c897569741c8161ce0c7cd27db0afd7613", "src/installer/canonical-skills.js": "d23034407c14ba491cc95ad034dac1c897569741c8161ce0c7cd27db0afd7613",
"src/installer/console-stage.js": "4dfeffeab5ad1c60fe266cb79e175537c7a1879deee64fdbfd9c4086bd55fafc", "src/installer/console-stage.js": "4dfeffeab5ad1c60fe266cb79e175537c7a1879deee64fdbfd9c4086bd55fafc",
"src/installer/skills-cli.js": "b9fa16eacb5c80a537c8f563890da70b191b83f3f9300a74f570a2b2d42a0bf6", "src/installer/skills-cli.js": "b9fa16eacb5c80a537c8f563890da70b191b83f3f9300a74f570a2b2d42a0bf6",
"src/installer/timing.js": "d61a7a1632dd3d910fb701a66e38d9468b551432eb2c8a4be26602539ff4fa42", "src/installer/timing.js": "d61a7a1632dd3d910fb701a66e38d9468b551432eb2c8a4be26602539ff4fa42",
"src/launcher/agents.json": "e6a13544098fbc45b6052649f1507d4d99ff026eb9f67a8e7e7aeef1389263f2", "src/launcher/agents.json": "e6a13544098fbc45b6052649f1507d4d99ff026eb9f67a8e7e7aeef1389263f2",
"src/launcher/models.json": "12f410989cc3cb7e571378df930d5d92ba5fb1ccf12728a0f736a24dd28fcc7a", "src/launcher/models.json": "5e0d395b5c97733e138fa794150e3af6e48a6a1e0206a2e69794020570c10fcc",
"src/launcher/plan2code.ico": "08e45d570b49a8b71c22959f8a2c895ea8223fe165c53224f444702605b485a8", "src/launcher/plan2code.ico": "08e45d570b49a8b71c22959f8a2c895ea8223fe165c53224f444702605b485a8",
"src/launcher/plan2code.js": "21d018ba95b8073c2bad1dcd47c839abc418e87f222fba1a44d2020df2a83651", "src/launcher/plan2code.js": "21d018ba95b8073c2bad1dcd47c839abc418e87f222fba1a44d2020df2a83651",
"src/plan2code-0-pathfinder-references/brief.md": "31268d6628e26491b6ac559c22e5af8ec3343c756f404d83a5d790ee8318c4bb", "src/plan2code-0-pathfinder-references/brief.md": "31268d6628e26491b6ac559c22e5af8ec3343c756f404d83a5d790ee8318c4bb",
@@ -25,40 +25,40 @@
"src/plan2code-0-pathfinder-references/resolve.md": "2e013c5dc23c1a4f73be2a1242caf44d4b2dc6cc1b69efbfe9f7daa39f44ed73", "src/plan2code-0-pathfinder-references/resolve.md": "2e013c5dc23c1a4f73be2a1242caf44d4b2dc6cc1b69efbfe9f7daa39f44ed73",
"src/plan2code-0-pathfinder-references/trail.md": "ed12a748e284ca45469a648033e0e8b77fb03fd282adae992dcd33ea89cb8252", "src/plan2code-0-pathfinder-references/trail.md": "ed12a748e284ca45469a648033e0e8b77fb03fd282adae992dcd33ea89cb8252",
"src/plan2code-0-pathfinder-scripts/pathfinder.mjs": "db4b79148807f061286df7f7e86e8e293600b3ec46c43553cf04830e102f7df0", "src/plan2code-0-pathfinder-scripts/pathfinder.mjs": "db4b79148807f061286df7f7e86e8e293600b3ec46c43553cf04830e102f7df0",
"src/plan2code-0-pathfinder.md": "d1f637d5a91056b8208f3b51472a47677cbd03c8058f253dab1f5760b281076f", "src/plan2code-0-pathfinder.md": "d0be1a92346be64de88e6fd21daa682a8ef76b4d09f4890a0236586bc1eef3e4",
"src/plan2code-1-plan.md": "e437a12f9b368d36f9b6e7d423291872dfe90711c72c5924be8f6208d986172e", "src/plan2code-1-plan.md": "d5e5c6271bd4b86f4e191ac8862da5c773109844d0c7361ce37f492f9ce26ddc",
"src/plan2code-1b-revise-plan.md": "1fb1e5fbdcd83a8612ba46afc647ddfdda65642f83de50e9403ffe24cf957699", "src/plan2code-1b-revise-plan.md": "3c8de4833aeb20c1590a223a71dcd3acbdf18026d0ddcb73d3d4a860199d4a9b",
"src/plan2code-2-document.md": "1d704c423c9d7a69c28db884d8cf941665a4911c3fa472b772330c0b74ee5942", "src/plan2code-2-document.md": "fbb86c66819ad92a97bcccaad73902d4cd68edce04b654c9d14c736c22539835",
"src/plan2code-3-implement-review.md": "faa89f4e7684f97776bbbf2dcb81e765c5474787dbf87b2b890c635088d02211", "src/plan2code-3-implement-review.md": "02daf7e544a87bfb83767e9d2056441538c891656090910354cae60aa0c1f56b",
"src/plan2code-3-implement.md": "0a553f88d5e6686f550af51e26b3535cc17ae04df9942f2e6ee56fb4d6cf9153", "src/plan2code-3-implement.md": "049631fb70382f768603d76dc7c12c9b5002ab23bf92abd368c8a40567b8a587",
"src/plan2code-4-finalize-references/community-feedback-submission.md": "7da6626a39c3008851a782b6f610d76dfcb662442464affa618c67f1a22b5b72", "src/plan2code-4-finalize-references/community-feedback-submission.md": "7da6626a39c3008851a782b6f610d76dfcb662442464affa618c67f1a22b5b72",
"src/plan2code-4-finalize-scripts/feedback-payload.mjs": "15b41430ec0a105062890e016ac92d4bcedea044afcabe3162e562a26dbe9f93", "src/plan2code-4-finalize-scripts/feedback-payload.mjs": "15b41430ec0a105062890e016ac92d4bcedea044afcabe3162e562a26dbe9f93",
"src/plan2code-4-finalize.md": "d7a19b4cdcf65cb0faa320433f5a880ee0dcf709152cfae29941862d0cc8ffea", "src/plan2code-4-finalize.md": "015be36d16faad576a1e21e45367657ec9c7fc063caa55ba75695b6d2a874c5e",
"src/plan2code-changelog-scripts/changelog-state.mjs": "cffb25378fa6fe23342c047462aceefa117e0cccc808774f9f0d0e5ea7f06d42", "src/plan2code-changelog-scripts/changelog-state.mjs": "cffb25378fa6fe23342c047462aceefa117e0cccc808774f9f0d0e5ea7f06d42",
"src/plan2code-changelog.md": "d8913d988ca369db02e39d81c6d38e52daef79c2fd33149f77e42e5cfdfe84ff", "src/plan2code-changelog.md": "d7620a848fc361fcc1c760e89adc5de2cc4d4c84401e5824ef338b6aaf607cdd",
"src/plan2code-dead-code-references/caller-search.md": "2da07ea817087b030b77be00476f67c5507bf4d0b175316350f4c279493ae863", "src/plan2code-dead-code-references/caller-search.md": "2da07ea817087b030b77be00476f67c5507bf4d0b175316350f4c279493ae863",
"src/plan2code-dead-code-scripts/dead-code.mjs": "c686e32a0442854e788a98277e2f8a6e6b648ed08b97466e2da12c5926f43a97", "src/plan2code-dead-code-scripts/dead-code.mjs": "c686e32a0442854e788a98277e2f8a6e6b648ed08b97466e2da12c5926f43a97",
"src/plan2code-dead-code.md": "47c628526d57285e16444f8744ee9cf03b4cd1cd1a1db2da192a2c60ff3d7ea6", "src/plan2code-dead-code.md": "7163a571d21105f54aa5098c023586fe0e7cdb735427e5ce35778971048cca0d",
"src/plan2code-deps-scripts/deps.mjs": "356973c8d8bf9dec730c9fd545856487b346acca8c1ae182f6bf8ec6b53e3cf3", "src/plan2code-deps-scripts/deps.mjs": "356973c8d8bf9dec730c9fd545856487b346acca8c1ae182f6bf8ec6b53e3cf3",
"src/plan2code-deps.md": "3f999bcc8617444ea7a37b705cb2ba50efcbd3fd8a9a7265537c000bc81f7837", "src/plan2code-deps.md": "51fe91adc734ef455461d028fce96177d7492ab6c8648b3492a2d4c589295452",
"src/plan2code-diagnose.md": "5f702717eca3a52cb8efda4bf755f954c916a4b55aa15347bd669a9fbc2d0c0c", "src/plan2code-diagnose.md": "c8515f98b0b08155ddca057bc3338a4d65c24ff6e6328747c7a74510c064909d",
"src/plan2code-git-scripts/git.mjs": "37bd95078f4d1ef7e560975f2cdb81472da6f18acbff2d8c4fedbbbe4072dc9d", "src/plan2code-git-scripts/git.mjs": "37bd95078f4d1ef7e560975f2cdb81472da6f18acbff2d8c4fedbbbe4072dc9d",
"src/plan2code-git.md": "2dd3ed83846582d90f9c2b3b5f4d98c670820c6c04c152585dd7ed1ca9e3ac99", "src/plan2code-git.md": "35592a943e7902f2bd11208e38c50263b2c8b29b265a59f8a9ee9ec61b096dc5",
"src/plan2code-handoff.md": "adce86dcd9da4807cf1fa5c86f77abe230471b3f110c2f4839b5f1686d4b7a67", "src/plan2code-handoff.md": "03f02df0ba3e23fdb7c0548ecda3028221eadaccf9291dcbc04a6ff81cc7cc58",
"src/plan2code-init-update-references/ai-agent-file-sync.md": "e09935329c885027c011d51d5e233f230c1c90d14fc2fd8e2c0d3fb167953c53", "src/plan2code-init-update-references/ai-agent-file-sync.md": "e09935329c885027c011d51d5e233f230c1c90d14fc2fd8e2c0d3fb167953c53",
"src/plan2code-init-update.md": "5a314195a543b66cfecf0559789507f7619e304194069511f5f68f191dacf596", "src/plan2code-init-update.md": "f8cc771297089cdc433e6c115f797f0a7bb02d48319b7a65edf64d99ece9ad59",
"src/plan2code-init.md": "712d3bb1c2e7f1b733e2f50bfc27a280f8b4b5b59c886bb480209c226c7d119f", "src/plan2code-init.md": "1301ec496893a6a701a415b395977e06db891aa0be31b49948098066f0ebd236",
"src/plan2code-pr-prep-scripts/pr-prep.mjs": "82310199d649d615d4170e510827721f7229c4e6e8db9849a44251d942f3baf1", "src/plan2code-pr-prep-scripts/pr-prep.mjs": "82310199d649d615d4170e510827721f7229c4e6e8db9849a44251d942f3baf1",
"src/plan2code-pr-prep.md": "533130e9cbcf041cd1f9268d3a8126719b5642c664500d86ee11fae674c8cb14", "src/plan2code-pr-prep.md": "b35ae3dc57e775a6d3afa3116d73b4dc84f85f1b866eb16a4fd76d87cc99020a",
"src/plan2code-quick-task.md": "d71e2657746d4d2dda6cfbff788f85c5a506c94982cc3a54de6924da698b6537", "src/plan2code-quick-task.md": "3c43af6f0adafe195d6a00e7c10b5c67e9b515e83bb2002a7f8325cf5aa57538",
"src/plan2code-review-references/dimensions.md": "a4e33064e1f03ed15523ccde1fc25e2739ff93616c2a1f2ba1853a529ea87fcf", "src/plan2code-review-references/dimensions.md": "a4e33064e1f03ed15523ccde1fc25e2739ff93616c2a1f2ba1853a529ea87fcf",
"src/plan2code-review-references/false-positives.md": "b8f855675d1413f1f62ecfbc6b5ecf6aeaac9b34a68569649ec01cbfa8516160", "src/plan2code-review-references/false-positives.md": "b8f855675d1413f1f62ecfbc6b5ecf6aeaac9b34a68569649ec01cbfa8516160",
"src/plan2code-review-references/reviewer-brief.md": "d1816312b64aee7fa82945fa5de704a44ed02db4a084517af743104309f895f5", "src/plan2code-review-references/reviewer-brief.md": "d1816312b64aee7fa82945fa5de704a44ed02db4a084517af743104309f895f5",
"src/plan2code-review-references/session-end.md": "aa8dd978d9d0190fc6beb0658bd210e3274e3a9a7e988e2080d7cbc8847d620e", "src/plan2code-review-references/session-end.md": "aa8dd978d9d0190fc6beb0658bd210e3274e3a9a7e988e2080d7cbc8847d620e",
"src/plan2code-review-references/verification-protocol.md": "9c65814b532acfc93d47575fc626dd86204c8e441066632d4beccfde687b0ea4", "src/plan2code-review-references/verification-protocol.md": "9c65814b532acfc93d47575fc626dd86204c8e441066632d4beccfde687b0ea4",
"src/plan2code-review.md": "32cbf77a61ed169e72f3118c45d4d51c77c71de7044bc347582bab10daaddc14", "src/plan2code-review.md": "a8ca686dcfdf0f4f683d7c4a86abc9b20636804eb80df063f6fda5323d4e6217",
"src/plan2code-test-scripts/coverage.mjs": "63b39eec5301683b426e2163f4c5fadc5014229477c26060283c3212170a76aa", "src/plan2code-test-scripts/coverage.mjs": "63b39eec5301683b426e2163f4c5fadc5014229477c26060283c3212170a76aa",
"src/plan2code-test.md": "308744d5c60cf1e9addfe1b91d1602a0462721f828c3f13f7f666dc50b24c754", "src/plan2code-test.md": "709ec72bf84f53081de5f273d7f57c8728a127bbedb56b934fac77eabf4a2ace",
"src/plan2code-ui-prototype-references/ui-prototype-contract.md": "d31ad5812b21f5b096ad2093768ea3054e239a956d78da11e9105cd083be2279", "src/plan2code-ui-prototype-references/ui-prototype-contract.md": "d31ad5812b21f5b096ad2093768ea3054e239a956d78da11e9105cd083be2279",
"src/plan2code-ui-prototype-references/ui-prototype-design.md": "62e8d42b341ecc09fc87f2c2522bac8aa21bafb44bb48944cc538cf5b1378e68", "src/plan2code-ui-prototype-references/ui-prototype-design.md": "62e8d42b341ecc09fc87f2c2522bac8aa21bafb44bb48944cc538cf5b1378e68",
"src/plan2code-ui-prototype-references/ui-prototype-rounds.md": "11056704ec496596fbc86f92aa8d5568573c2f4aa65c031e187f2249c84eb4bc", "src/plan2code-ui-prototype-references/ui-prototype-rounds.md": "11056704ec496596fbc86f92aa8d5568573c2f4aa65c031e187f2249c84eb4bc",
@@ -66,10 +66,10 @@
"src/plan2code-ui-prototype-references/ui-prototype-shell/shell.css": "b6eb57f779511ca69c912213a9ca3ec9e1f5eb58012cfde1d92888dc65947c68", "src/plan2code-ui-prototype-references/ui-prototype-shell/shell.css": "b6eb57f779511ca69c912213a9ca3ec9e1f5eb58012cfde1d92888dc65947c68",
"src/plan2code-ui-prototype-references/ui-prototype-shell/shell.html": "29093192d5127933db4e7d2d296d87a77fa5e43eb8f29aec1a889f5594d1a5a7", "src/plan2code-ui-prototype-references/ui-prototype-shell/shell.html": "29093192d5127933db4e7d2d296d87a77fa5e43eb8f29aec1a889f5594d1a5a7",
"src/plan2code-ui-prototype-references/ui-prototype-shell/shell.js": "39d9f880c5b4f4d21a2ff2b05e94292f8f8b5d1825b42892b758fadba6604f78", "src/plan2code-ui-prototype-references/ui-prototype-shell/shell.js": "39d9f880c5b4f4d21a2ff2b05e94292f8f8b5d1825b42892b758fadba6604f78",
"src/plan2code-ui-prototype.md": "d9424621ae58cc65d3e20b8e7316de840c4f5508c281e3423834dac07fa916ac", "src/plan2code-ui-prototype.md": "64db821eac0a38ad60a033b1f9152fea53a23313dcc0d262385e12656bb3f9d8",
"src/plan2code-xray-scripts/xray.mjs": "a78cb4744fee1140f4bd89a851bfe01db2d7bf5b0f6ae816264a29c1d1fb246d", "src/plan2code-xray-scripts/xray.mjs": "a78cb4744fee1140f4bd89a851bfe01db2d7bf5b0f6ae816264a29c1d1fb246d",
"src/plan2code-xray.md": "615b2326efd79daf2cb1d289b05cf42828b6e3fd9ff7e4063f91985d84da834c", "src/plan2code-xray.md": "443c764b1528c65dfd9086263eda691c7e2fc06dcc155d9573d92d77793e31f5",
"src/plan2code.md": "364f6089b01d686934974d19a9166d4a702267bd9f2eb7ee763acaa88811f02d", "src/plan2code.md": "503a98bcd877ebe2a91fec67eedefda1f158423bdbbbaad05fac441057a12235",
"src/shared-references/building-habits.md": "15915b5b488f677646fad5fd5af13f6b5bbe2150c3cc7fdb9033ba5847db248b", "src/shared-references/building-habits.md": "15915b5b488f677646fad5fd5af13f6b5bbe2150c3cc7fdb9033ba5847db248b",
"src/shared-references/helper-strength.md": "1baecb1490f4e01a8608fb03912437f25e07d82aae84f53e81e3f51dd3c72f0d", "src/shared-references/helper-strength.md": "1baecb1490f4e01a8608fb03912437f25e07d82aae84f53e81e3f51dd3c72f0d",
"src/shared-references/lesson-check.md": "57dcaebef3ac94ddee84ae1062a4ac17290d62bec553d359e3327695b682d992", "src/shared-references/lesson-check.md": "57dcaebef3ac94ddee84ae1062a4ac17290d62bec553d359e3327695b682d992",
@@ -108,7 +108,7 @@
"src/web-console/cmd-post-wait.mjs": "e9fc81df05fd6cb08aeb6748940b5ef296786b6d2e77d95d0c4fee0189ca00cc", "src/web-console/cmd-post-wait.mjs": "e9fc81df05fd6cb08aeb6748940b5ef296786b6d2e77d95d0c4fee0189ca00cc",
"src/web-console/cmd-small.mjs": "1b01d777a5775451c97eedb772a9b3a1d36c61ffecdabcdd7f8a33cd8fafab78", "src/web-console/cmd-small.mjs": "1b01d777a5775451c97eedb772a9b3a1d36c61ffecdabcdd7f8a33cd8fafab78",
"src/web-console/console-attachments.md": "85cdef2ff7031bdc95a515a07a10186acbb3145c4d84f1a5932ba65cfaff9341", "src/web-console/console-attachments.md": "85cdef2ff7031bdc95a515a07a10186acbb3145c4d84f1a5932ba65cfaff9341",
"src/web-console/console-chat.md": "011bc420aad30a256e7c490d5e7a773a6626da698a172ee867e88468c35eff8d", "src/web-console/console-chat.md": "f871b3d0a2554036f271c4c6bfbf9efd8cbea7b035e4a5452fd4592625e8607b",
"src/web-console/console-docs.md": "403046ca88751b606f9efc542faf2d9c6362670ff164695cc373c12760f26e72", "src/web-console/console-docs.md": "403046ca88751b606f9efc542faf2d9c6362670ff164695cc373c12760f26e72",
"src/web-console/console-finish.md": "091022c168b9418db72c1012cfe3f439a1ea94eb8c61d92a5511f37e85748e02", "src/web-console/console-finish.md": "091022c168b9418db72c1012cfe3f439a1ea94eb8c61d92a5511f37e85748e02",
"src/web-console/console-interface.md": "c06451a672115e1ae739620e8dafe5d36fe4c1910034a17cbf16c3f36b303218", "src/web-console/console-interface.md": "c06451a672115e1ae739620e8dafe5d36fe4c1910034a17cbf16c3f36b303218",
@@ -118,7 +118,7 @@
"src/web-console/console-subagents.md": "573e2d0b436b7cb9e69af5ed3b8b3641820de64d08500f7d2983784d15a1281d", "src/web-console/console-subagents.md": "573e2d0b436b7cb9e69af5ed3b8b3641820de64d08500f7d2983784d15a1281d",
"src/web-console/console-trouble.md": "a36e534b4f58fbba8cb79baaa46d55094ae051f6f701acabddb1cd9c7849a469", "src/web-console/console-trouble.md": "a36e534b4f58fbba8cb79baaa46d55094ae051f6f701acabddb1cd9c7849a469",
"src/web-console/console-workspace.md": "6b0c5f458d88fafeb593b72cc1bf2566f1a516f5755b3d9584e1fb19f14f939d", "src/web-console/console-workspace.md": "6b0c5f458d88fafeb593b72cc1bf2566f1a516f5755b3d9584e1fb19f14f939d",
"src/web-console/console.md": "52ffb8537a112fc631d470865a6a8bc90ff4edc9567da9b3a05b66354eeb468a", "src/web-console/console.md": "4974b08387250e761423f9ddf95d4e9dd9ae86c84f9d982ddc5d0456bed778d4",
"src/web-console/console.mjs": "b9bbf55bdf33831271bb633870360144410537f31a26fdec523f58046d65ed58", "src/web-console/console.mjs": "b9bbf55bdf33831271bb633870360144410537f31a26fdec523f58046d65ed58",
"src/web-console/files.mjs": "eb26134a2c6ae751adb49dd4a7b28b79b22be048a37152c505924cfd7c6da25e", "src/web-console/files.mjs": "eb26134a2c6ae751adb49dd4a7b28b79b22be048a37152c505924cfd7c6da25e",
"src/web-console/git-repo.mjs": "e69dabfe6456c7a43a0cd784cbab204f8d5d2d4f0b5618b007c54490c677b831", "src/web-console/git-repo.mjs": "e69dabfe6456c7a43a0cd784cbab204f8d5d2d4f0b5618b007c54490c677b831",
@@ -352,7 +352,7 @@
"src/web-console/public/activities/stack.js": "46b2b02f336df75697a4d011064227a8af3e3bc9ececdd2f544aa39804ccbddd", "src/web-console/public/activities/stack.js": "46b2b02f336df75697a4d011064227a8af3e3bc9ececdd2f544aa39804ccbddd",
"src/web-console/public/activities/trails-sfx.js": "8011beeacbfaa7e690b95103a3f73c6dd9225b4a360765448d7cf09b175322b9", "src/web-console/public/activities/trails-sfx.js": "8011beeacbfaa7e690b95103a3f73c6dd9225b4a360765448d7cf09b175322b9",
"src/web-console/public/activities/trails.js": "35e4088fad5a065698d477ef8374cb6a1113e65e0289db280dadae36fa7c6feb", "src/web-console/public/activities/trails.js": "35e4088fad5a065698d477ef8374cb6a1113e65e0289db280dadae36fa7c6feb",
"src/web-console/public/answers.js": "8a016be6bd9c30874b28d7930c6d69f693145acebe0d49125bb8fa3b75764b0d", "src/web-console/public/answers.js": "6b7b31b05a69cd57e2b8e692e6d9efd3ad9fb4d3fef9fff2c553b0848481089b",
"src/web-console/public/app-bridge.js": "818ba79868e952d6b7bf3f6e5ce99bda64d79cc5ef4bd2817c4ceccac3abe93d", "src/web-console/public/app-bridge.js": "818ba79868e952d6b7bf3f6e5ce99bda64d79cc5ef4bd2817c4ceccac3abe93d",
"src/web-console/public/app.js": "b019c0c4d82422b168d98da8cbf029bc1b66173807eb171f7c321f89294528d4", "src/web-console/public/app.js": "b019c0c4d82422b168d98da8cbf029bc1b66173807eb171f7c321f89294528d4",
"src/web-console/public/boot.js": "37a9c5c46f1165f220a62833a2e80cd8de018f24f2d6694960791b7960aad000", "src/web-console/public/boot.js": "37a9c5c46f1165f220a62833a2e80cd8de018f24f2d6694960791b7960aad000",
@@ -370,9 +370,9 @@
"src/web-console/public/git-board.js": "244cd3d83ca444b0a66f9d1093ecb11c7d4d745a6ddcc0ae15fc34216993f632", "src/web-console/public/git-board.js": "244cd3d83ca444b0a66f9d1093ecb11c7d4d745a6ddcc0ae15fc34216993f632",
"src/web-console/public/help.js": "5daec612ad1d86b421de3aa9d24ee0056343a141e8d467b0eaf9385fa1318fb1", "src/web-console/public/help.js": "5daec612ad1d86b421de3aa9d24ee0056343a141e8d467b0eaf9385fa1318fb1",
"src/web-console/public/hops.js": "49aef484aae5a910ff04d275f4a9a89752ba517713a586dfb6b76ba0410eeb47", "src/web-console/public/hops.js": "49aef484aae5a910ff04d275f4a9a89752ba517713a586dfb6b76ba0410eeb47",
"src/web-console/public/index.html": "1c5e487880a888e72fb0a5d331c7ee7a561254217372abb89694bbf1b2d85252", "src/web-console/public/index.html": "0e3c1741f3e9502b17713e77e976b7e04e95acdb8b9e9baae476c9a107b05ddd",
"src/web-console/public/labels.js": "0999a0d879403e1697ca5ece2998817769fd9177ac489bb7d61b1b6dd5e0c865", "src/web-console/public/labels.js": "0999a0d879403e1697ca5ece2998817769fd9177ac489bb7d61b1b6dd5e0c865",
"src/web-console/public/looks.js": "c99722c32a5a70f4af8d0150a72da49d13e2596581312e8c67ccc539b3c01bc9", "src/web-console/public/looks.js": "739e95fe4679f43d9483ce46b9618623410ca9ad2a0a334a62babe834fab4b11",
"src/web-console/public/loop-parts.js": "3324e9631dd2bb4c1fc33a856eb12c76209cbae6dfbcf8ee5e6db64454077012", "src/web-console/public/loop-parts.js": "3324e9631dd2bb4c1fc33a856eb12c76209cbae6dfbcf8ee5e6db64454077012",
"src/web-console/public/md-field.css": "f8dc61d1686d0566c3e763ce05e36bbc47ea269556ca379558e0a579bd070aed", "src/web-console/public/md-field.css": "f8dc61d1686d0566c3e763ce05e36bbc47ea269556ca379558e0a579bd070aed",
"src/web-console/public/md-field.js": "154aa0a6c1d5bda78c4e7c81f32e40a44c59acb776ee20fb016dd51e45f626fd", "src/web-console/public/md-field.js": "154aa0a6c1d5bda78c4e7c81f32e40a44c59acb776ee20fb016dd51e45f626fd",
@@ -390,7 +390,7 @@
"src/web-console/public/pr-url.js": "178d7b5aa1765e32abb744de1fb002db882061a5f53ae48cbe93682f2341263f", "src/web-console/public/pr-url.js": "178d7b5aa1765e32abb744de1fb002db882061a5f53ae48cbe93682f2341263f",
"src/web-console/public/prefs.js": "d46d8ec2c00d0d2e00f17dfc2a57316fb1bda5519dac26d39836e155c5d4856f", "src/web-console/public/prefs.js": "d46d8ec2c00d0d2e00f17dfc2a57316fb1bda5519dac26d39836e155c5d4856f",
"src/web-console/public/render.js": "d027e6a4177b93559c84ef00a831985b8df4be803a133cdd58aae8efe784505c", "src/web-console/public/render.js": "d027e6a4177b93559c84ef00a831985b8df4be803a133cdd58aae8efe784505c",
"src/web-console/public/review-loop-end.js": "4deaae2f017c60cdb57590128fe88634d3b835541733a626ea693179468d898e", "src/web-console/public/review-loop-end.js": "87939c48be562f2fcfaae444e0fe23d58e31f9d16b430ff331514c492b4015f7",
"src/web-console/public/screens/activities.js": "27a6f2be3813e5bd57b82a2087cd656945cc30b95bc9cfe4500212013259cb1d", "src/web-console/public/screens/activities.js": "27a6f2be3813e5bd57b82a2087cd656945cc30b95bc9cfe4500212013259cb1d",
"src/web-console/public/screens/agents-view.js": "4bf966bbfe4941982bdba15111aa83ecf06ad56ca37155e27078d0ad588a0634", "src/web-console/public/screens/agents-view.js": "4bf966bbfe4941982bdba15111aa83ecf06ad56ca37155e27078d0ad588a0634",
"src/web-console/public/screens/agents/agents-data.js": "8397846b62930ae0692f4f8d619a9f5a99dd0d3211d4428af2f15d18cd5b6fd0", "src/web-console/public/screens/agents/agents-data.js": "8397846b62930ae0692f4f8d619a9f5a99dd0d3211d4428af2f15d18cd5b6fd0",
@@ -398,27 +398,27 @@
"src/web-console/public/screens/agents/agents-list-editor.js": "0d0ae6880c900f5af5113edf40cef5b84729c5d2bd9b3201b13a97f5c26582a6", "src/web-console/public/screens/agents/agents-list-editor.js": "0d0ae6880c900f5af5113edf40cef5b84729c5d2bd9b3201b13a97f5c26582a6",
"src/web-console/public/screens/agents/agents-strengths.js": "3b5399ce98de9d043736b361447b8e84bb9773195213442867c843e05c105add", "src/web-console/public/screens/agents/agents-strengths.js": "3b5399ce98de9d043736b361447b8e84bb9773195213442867c843e05c105add",
"src/web-console/public/screens/agents/agents-summary.js": "5e77c6c4a186baa3a019171a6b72c68089e43c2906c7045ce818ba1c9716ebbe", "src/web-console/public/screens/agents/agents-summary.js": "5e77c6c4a186baa3a019171a6b72c68089e43c2906c7045ce818ba1c9716ebbe",
"src/web-console/public/screens/ask.js": "9ebe5d8451c18ce4f958633b47be01d8bf87f9c7333124eae4432bbc9e61ea69", "src/web-console/public/screens/ask.js": "4835311a4a96dd2a9fd67e26af9c4565e61fa60db1b530082335f49ea3f798b4",
"src/web-console/public/screens/cards.js": "df60dabe524f128a5bae34040206a69682b25622b6fb5bbc3de621ec1f409674", "src/web-console/public/screens/cards.js": "df60dabe524f128a5bae34040206a69682b25622b6fb5bbc3de621ec1f409674",
"src/web-console/public/screens/cleanup.js": "4afa85666fe3247e033a566592949c544cf574a28c7579b73f8ddf5ad30d1245", "src/web-console/public/screens/cleanup.js": "4afa85666fe3247e033a566592949c544cf574a28c7579b73f8ddf5ad30d1245",
"src/web-console/public/screens/core.js": "6186005e6bdb416080d299e8892f4d76bbcc1943622206ce0603df03be004568", "src/web-console/public/screens/core.js": "5f9b0c674227d6277dabc1f71f4384ab1e916acb8b64dc9e995fbadf1233c669",
"src/web-console/public/screens/dashboard.js": "5530cec280374978066c7a3aaf508eff0b4374bb5875e58fa417b869e107a3cb", "src/web-console/public/screens/dashboard.js": "528fe601e935d948e88c572e2160e67b48dc15d0888e4ba63395873442be0c38",
"src/web-console/public/screens/docs.js": "c92c31e1e5d309f8fc3dc1583348635cfd6c0e0343fc00cabe1171f85b44c4f8", "src/web-console/public/screens/docs.js": "c92c31e1e5d309f8fc3dc1583348635cfd6c0e0343fc00cabe1171f85b44c4f8",
"src/web-console/public/screens/ending.js": "3a34f00a1b60776e9b25dfcdb06711547bb003f2577c42131f1c3539f8dc6c61", "src/web-console/public/screens/ending.js": "86c9c2a98a54156929e5498a31be2e5e1e00fb0811280c2faa79b9300798168a",
"src/web-console/public/screens/git-host.js": "f2de7539bc38598869e452d60a161c4a6563a95163fad60314cdb81e72fb3a2b", "src/web-console/public/screens/git-host.js": "f2de7539bc38598869e452d60a161c4a6563a95163fad60314cdb81e72fb3a2b",
"src/web-console/public/screens/help-dialog.js": "864c7a2d07d19d8a740811771060174c5b362ffe52db6d9319112f5edeacdca7", "src/web-console/public/screens/help-dialog.js": "864c7a2d07d19d8a740811771060174c5b362ffe52db6d9319112f5edeacdca7",
"src/web-console/public/screens/learning-row.js": "dd3f4d7cda9fc3d4ec1e4e4ec6b4a4921ba4eda6829ad4838f7a7a09335b98a0", "src/web-console/public/screens/learning-row.js": "dd3f4d7cda9fc3d4ec1e4e4ec6b4a4921ba4eda6829ad4838f7a7a09335b98a0",
"src/web-console/public/screens/looks.js": "0783c4337f67b06a1e6c43a3b83178b67a1fb83501d9b2c09fd69154fcc252fb", "src/web-console/public/screens/looks.js": "0783c4337f67b06a1e6c43a3b83178b67a1fb83501d9b2c09fd69154fcc252fb",
"src/web-console/public/screens/loop-setup.js": "0c1419bf2aa870afb9028723755d5ed561c5d0056679337a42c0ab7ae352da17", "src/web-console/public/screens/loop-setup.js": "beb1e3449be0b484193fc3bdd53a3803c3dd7a20465ad8f4b1161bea99ea1357",
"src/web-console/public/screens/notepad.js": "86c4d96eeb4bbf5662d9def73149a40c464d76a274c8acaf230ffffc43a8dc4b", "src/web-console/public/screens/notepad.js": "86c4d96eeb4bbf5662d9def73149a40c464d76a274c8acaf230ffffc43a8dc4b",
"src/web-console/public/screens/prefs-dialog.js": "ac6dcbf7e30e2fea97464523af7530a1f325d612161e80303219fabc3e4c4dbd", "src/web-console/public/screens/prefs-dialog.js": "ac6dcbf7e30e2fea97464523af7530a1f325d612161e80303219fabc3e4c4dbd",
"src/web-console/public/screens/review-loop-setup.js": "cec92e6c3faa63e9c888d6dd40d6be04a88c16f6691ea7565f121e2830694164", "src/web-console/public/screens/review-loop-setup.js": "8a9a7a815fd2c3e955cd50c934ae37f4d98e3487950c30053bb0684d4dc6fa34",
"src/web-console/public/screens/setup.js": "e268cba6edf0bdc78eafd10c206dc6048631f0d3a2ea07397f4d3038591a48ed", "src/web-console/public/screens/setup.js": "e268cba6edf0bdc78eafd10c206dc6048631f0d3a2ea07397f4d3038591a48ed",
"src/web-console/public/screens/starting.js": "f473aa825a19c5b5ba51bf88343e16713ce0a901ddeacdc61d3d53c5da764a29", "src/web-console/public/screens/starting.js": "f473aa825a19c5b5ba51bf88343e16713ce0a901ddeacdc61d3d53c5da764a29",
"src/web-console/public/screens/workspace.js": "3acef583a2bedd15c39430615bb1a356c4f7db68dad2d1318df774807e918767", "src/web-console/public/screens/workspace.js": "3acef583a2bedd15c39430615bb1a356c4f7db68dad2d1318df774807e918767",
"src/web-console/public/selectors.js": "38b395ecb3b41af228b6278d9fefcb793e1f439ae0ec794a32dd374bc5d500cd", "src/web-console/public/selectors.js": "38b395ecb3b41af228b6278d9fefcb793e1f439ae0ec794a32dd374bc5d500cd",
"src/web-console/public/send-state.js": "cb743207b9bf391c879f7bebc1987bcf93475734dd9a8d180161ff411b3c878a", "src/web-console/public/send-state.js": "cb743207b9bf391c879f7bebc1987bcf93475734dd9a8d180161ff411b3c878a",
"src/web-console/public/skills.js": "406a48cb3d3a1ac519c8954b43743b4ff8c8c84d85a73f2284db1a6369a26425", "src/web-console/public/skills.js": "c43c0327e141a0f874045036856e96ed4ba1c6c83d02dc014b1509070ce32f03",
"src/web-console/public/sleeping.mp3": "f5a3d12cac12d8592424b315053d8b5ebd97850ee1dd53807a065c5e05eb7047", "src/web-console/public/sleeping.mp3": "f5a3d12cac12d8592424b315053d8b5ebd97850ee1dd53807a065c5e05eb7047",
"src/web-console/public/sound.js": "f3e8e14313bdf00ad28ce5ad4fb587c05eb660096ea73ec392863523d93cb245", "src/web-console/public/sound.js": "f3e8e14313bdf00ad28ce5ad4fb587c05eb660096ea73ec392863523d93cb245",
"src/web-console/public/sounds/sound-01.mp3": "fa2d130ae2ea8cfad0863952e537e7350159422cb8552f2ee3a71c08eeb94621", "src/web-console/public/sounds/sound-01.mp3": "fa2d130ae2ea8cfad0863952e537e7350159422cb8552f2ee3a71c08eeb94621",
@@ -442,12 +442,12 @@
"src/web-console/public/sounds/sound-19.mp3": "eeba885a6fecaf9b0700b5aad6b31910c2d1a0d32fd3aa71a4a2e7233da3fb89", "src/web-console/public/sounds/sound-19.mp3": "eeba885a6fecaf9b0700b5aad6b31910c2d1a0d32fd3aa71a4a2e7233da3fb89",
"src/web-console/public/spec-states.js": "1529c472e0f2b3e9ff312941c9bf69caf6e3511ed2c3de930d7352c508ad92a2", "src/web-console/public/spec-states.js": "1529c472e0f2b3e9ff312941c9bf69caf6e3511ed2c3de930d7352c508ad92a2",
"src/web-console/public/starters.js": "a8c3d5fa8a9576da6929cdefe791879e47b63ece0a7a2c113e5f11729c875b4e", "src/web-console/public/starters.js": "a8c3d5fa8a9576da6929cdefe791879e47b63ece0a7a2c113e5f11729c875b4e",
"src/web-console/public/state.js": "c04f75ff18d3d86c346a3077e99f49b1f868de5890583d770236692f7f19e02e", "src/web-console/public/state.js": "c7a8a766231270f75496b06bd93d506b5a1348b8eddd8be9e6f18577f18da737",
"src/web-console/public/strengths.js": "c7cb5b287df99eb0b3d849c2504f9ed439afdca5f31af0de935f3b4cda9e9c13", "src/web-console/public/strengths.js": "c7cb5b287df99eb0b3d849c2504f9ed439afdca5f31af0de935f3b4cda9e9c13",
"src/web-console/public/styles/activities.css": "c028932d0ea21a21f9c4299bbc500bc5df102fbc78111a9e48fa7facd0c6dd7c", "src/web-console/public/styles/activities.css": "c028932d0ea21a21f9c4299bbc500bc5df102fbc78111a9e48fa7facd0c6dd7c",
"src/web-console/public/styles/agents.css": "f2cb512a36a69834b0e675344645af59aa4447394b2c2bd80a0ad50c0e1f17a0", "src/web-console/public/styles/agents.css": "f2cb512a36a69834b0e675344645af59aa4447394b2c2bd80a0ad50c0e1f17a0",
"src/web-console/public/styles/ask.css": "5047adbd4be0249bca0f0e97ef668f9894806f9fb2f17248c6b5bb16fe6c0b17", "src/web-console/public/styles/ask.css": "5047adbd4be0249bca0f0e97ef668f9894806f9fb2f17248c6b5bb16fe6c0b17",
"src/web-console/public/styles/dashboard.css": "0dabce8ca3be297b7ea581a095aa87462f35d005c7a5833627d43ce4ed65fffa", "src/web-console/public/styles/dashboard.css": "eed61a5c5b166b640904a9f105a4dd1430dc98b8acc6445fac58fd0ea3eb1abe",
"src/web-console/public/styles/diff.css": "c1ce2f2862aba49ecdc39f822fe52850e5b773d686bb3aa4892d5bbee6538086", "src/web-console/public/styles/diff.css": "c1ce2f2862aba49ecdc39f822fe52850e5b773d686bb3aa4892d5bbee6538086",
"src/web-console/public/styles/docs.css": "ff02c2fe5b46e434c9809efa564a308c944b00248109740296a0b2aa5780a3ca", "src/web-console/public/styles/docs.css": "ff02c2fe5b46e434c9809efa564a308c944b00248109740296a0b2aa5780a3ca",
"src/web-console/public/styles/ending.css": "e3cc86cf84dfc00011d43847e85afd9015d442d1a4308940332ad16f314fb4df", "src/web-console/public/styles/ending.css": "e3cc86cf84dfc00011d43847e85afd9015d442d1a4308940332ad16f314fb4df",
@@ -460,7 +460,7 @@
"src/web-console/public/styles/planny.css": "dcdb9bdf79c4661d731b5c9ed60cf5f1d829d7e3bfd134b2e47ae71cb7e242be", "src/web-console/public/styles/planny.css": "dcdb9bdf79c4661d731b5c9ed60cf5f1d829d7e3bfd134b2e47ae71cb7e242be",
"src/web-console/public/styles/poses.css": "2dc0c86c96967b3f7860afcb75da9222b6c1f39a7044a2adfae6e779b9b64037", "src/web-console/public/styles/poses.css": "2dc0c86c96967b3f7860afcb75da9222b6c1f39a7044a2adfae6e779b9b64037",
"src/web-console/public/styles/prefs.css": "a9890aeb3e823cd0d05b655ae1e2a8163e302b692708f25e9ca738030f85be2f", "src/web-console/public/styles/prefs.css": "a9890aeb3e823cd0d05b655ae1e2a8163e302b692708f25e9ca738030f85be2f",
"src/web-console/public/styles/responsive.css": "7d918d478f8ccf8c7c573528853d4ecb39949d6086f0b9dd765c5a5515b86915", "src/web-console/public/styles/responsive.css": "c8816bbc6bc40d53cfb01ce7b8c044cccf391304c85a611708823515da02b7f9",
"src/web-console/public/styles/shell.css": "26f9bdef3acb6c7957a4543be776c79157fa4519306d10f8404e22322838b4ef", "src/web-console/public/styles/shell.css": "26f9bdef3acb6c7957a4543be776c79157fa4519306d10f8404e22322838b4ef",
"src/web-console/public/styles/tokens.css": "3ac3615d151ee45f04774b543f00a48eff2a39ad221e049daa6992ff17ca3985", "src/web-console/public/styles/tokens.css": "3ac3615d151ee45f04774b543f00a48eff2a39ad221e049daa6992ff17ca3985",
"src/web-console/public/subagents.js": "62aeeaf0ba05164eb5a9b6cf178a3992a4ee0fb106710bdafdc8815aa2e4da09", "src/web-console/public/subagents.js": "62aeeaf0ba05164eb5a9b6cf178a3992a4ee0fb106710bdafdc8815aa2e4da09",
@@ -482,6 +482,6 @@
"src/web-console/strengths.mjs": "4a94e7a8d2468909592c2cc995ab6abd75aa82f3507af25084ed043ecac1a7a5", "src/web-console/strengths.mjs": "4a94e7a8d2468909592c2cc995ab6abd75aa82f3507af25084ed043ecac1a7a5",
"src/web-console/update-check.mjs": "eec6edef80c97a5ca25252ea0338490d615594bcdc2418676a08126824111417", "src/web-console/update-check.mjs": "eec6edef80c97a5ca25252ea0338490d615594bcdc2418676a08126824111417",
"src/web-console/workspace.mjs": "a2efa4226cb64028d18289b8e3fae3318a806899cddaf7ab28ca7c6bed7408d8", "src/web-console/workspace.mjs": "a2efa4226cb64028d18289b8e3fae3318a806899cddaf7ab28ca7c6bed7408d8",
"version.json": "e7d6e7b17e25fc18b92d71954dafa02a6f593b2accf8687c6a480f60244af233" "version.json": "4ee763a0b8c60a97c89a57f20ed1cfd4a886e0a7e77fd40c9cd49e4032b34b23"
} }
} }
+31 -12
View File
@@ -2942,7 +2942,8 @@ const INSTALL_PIECES = ['skills', 'launcher', 'app', 'statusline', 'metrics', 'b
const LAUNCHER_PICK_FOLDER_FLAG = '--pick-folder'; const LAUNCHER_PICK_FOLDER_FLAG = '--pick-folder';
/** /**
* `~/.plan2code/install.json` as `{ version, scope, pieces }`, or null when missing or unparsable. * `~/.plan2code/install.json` as `{ version, scope, pieces, appVersion? }`, or null when missing or unparsable.
* `appVersion` is the release the desktop app file is, set when the app is placed (see appCurrent()).
* `skipped` lists optional pieces (the desktop app) the person said no to, so an unattended * `skipped` lists optional pieces (the desktop app) the person said no to, so an unattended
* `plan2code update` does not install them; it is left out of the file while empty. * `plan2code update` does not install them; it is left out of the file while empty.
*/ */
@@ -2960,12 +2961,15 @@ function readInstallRecord() {
let recordVersionHold = null; let recordVersionHold = null;
/** Temp file, then rename, so a crash never leaves a half-written record. A failure only skips the record. */ /** Temp file, then rename, so a crash never leaves a half-written record. A failure only skips the record. */
function writeInstallRecord(pieces, skipped = (readInstallRecord() || {}).skipped || [], version = recordVersionHold ? recordVersionHold.version : projectVersion.version) { function writeInstallRecord(pieces, skipped = (readInstallRecord() || {}).skipped || [], version = recordVersionHold ? recordVersionHold.version : projectVersion.version, appVersion = (readInstallRecord() || {}).appVersion) {
const record = { const record = {
version, version,
scope: 'global', scope: 'global',
pieces: [...new Set(pieces)].filter((piece) => INSTALL_PIECES.includes(piece)).sort(), pieces: [...new Set(pieces)].filter((piece) => INSTALL_PIECES.includes(piece)).sort(),
}; };
// Which release the desktop app file is, kept apart from `version`: that one is stamped by the
// skills step before the app is placed, so it cannot say whether the app file is current.
if (record.pieces.includes('app') && typeof appVersion === 'string' && appVersion) record.appVersion = appVersion;
const declined = [...new Set(skipped)].filter((piece) => INSTALL_PIECES.includes(piece) && !record.pieces.includes(piece)).sort(); const declined = [...new Set(skipped)].filter((piece) => INSTALL_PIECES.includes(piece) && !record.pieces.includes(piece)).sort();
if (declined.length > 0) record.skipped = declined; if (declined.length > 0) record.skipped = declined;
const tmp = `${INSTALL_RECORD}.${process.pid}.tmp`; const tmp = `${INSTALL_RECORD}.${process.pid}.tmp`;
@@ -3000,10 +3004,21 @@ function installedLauncherVersion() {
} }
} }
/** Add a piece after a successful global install. */ /** Add a piece after a successful global install; `appVersion` names the release the desktop app file is. */
function recordInstalled(piece) { function recordInstalled(piece, { appVersion } = {}) {
const record = readInstallRecord(); const record = readInstallRecord();
writeInstallRecord([...(record ? record.pieces : []), piece]); writeInstallRecord([...(record ? record.pieces : []), piece], undefined, undefined, appVersion);
}
/**
* Whether the desktop app file is the release `version`: true when the record lists no app, else
* only when it names that release. A record from before `appVersion` existed, or one an update
* stamped while the app stayed old, says no, so the next update fetches the app instead of
* stopping at "Already on".
*/
function appCurrent(version, record = readInstallRecord()) {
if (!record || !record.pieces.includes('app')) return true;
return record.appVersion === version;
} }
/** Remember that an optional piece was declined. Needs a record: one holding no pieces would make update do nothing. */ /** Remember that an optional piece was declined. Needs a record: one holding no pieces would make update do nothing. */
@@ -3609,7 +3624,7 @@ async function installDesktopApp({ quiet = false, unattended = false, outcome =
} catch (error) { } catch (error) {
return fail(`the file was verified but could not be put in ${APP_DIR} (${error.message}); close the app and try again.`); return fail(`the file was verified but could not be put in ${APP_DIR} (${error.message}); close the app and try again.`);
} }
recordInstalled('app'); recordInstalled('app', { appVersion: version });
outcome.appSize = bytes.length; outcome.appSize = bytes.length;
console.log(` ${COLORS.GREEN}${MARKS.DONE}${COLORS.RESET} Installed: ${APP_DEST}`); console.log(` ${COLORS.GREEN}${MARKS.DONE}${COLORS.RESET} Installed: ${APP_DEST}`);
console.log(` The app is not code-signed. ${appAllowLine()}`); console.log(` The app is not code-signed. ${appAllowLine()}`);
@@ -4154,12 +4169,13 @@ function releaseNotesUrl(version) {
* Reinstall whatever ~/.plan2code/install.json lists, without the menu or any prompt, and print * Reinstall whatever ~/.plan2code/install.json lists, without the menu or any prompt, and print
* one compact summary: `Updating <old> -> <new>` (or `Already on <new>`, which stops early unless * one compact summary: `Updating <old> -> <new>` (or `Already on <new>`, which stops early unless
* `force`, and only when the installed command's bin/version.json agrees with the record whenever * `force`, and only when the installed command's bin/version.json agrees with the record whenever
* the record lists `launcher`, and the canonical skills manifest and the shared console are complete * the record lists `launcher`, the canonical skills manifest and the shared console are complete
* for it whenever the record lists `skills`), one line per piece by its human name, then the release notes link and the restart * for it whenever the record lists `skills`, and the record names this version as the app's whenever it
* lists `app`), one line per piece by its human name, then the release notes link and the restart
* hint. Each piece's own output is held back and shown only when that piece warns or fails. * hint. Each piece's own output is held back and shown only when that piece warns or fails.
* Returns the exit code: 0 when every piece updated, 1 naming the pieces that failed. * Returns the exit code: 0 when every piece updated, 1 naming the pieces that failed.
*/ */
async function update({ steps = UPDATE_STEPS, cleanShims = removeLegacyLoopShims, force = false, skillsCurrent = canonicalSkillsCurrent, consoleCurrent = sharedConsoleCurrent, progress = writeProgressToStdout, devTools = devToolCapabilities() } = {}) { async function update({ steps = UPDATE_STEPS, cleanShims = removeLegacyLoopShims, force = false, skillsCurrent = canonicalSkillsCurrent, consoleCurrent = sharedConsoleCurrent, appInPlaceFor = appCurrent, progress = writeProgressToStdout, devTools = devToolCapabilities() } = {}) {
const record = readInstallRecord(); const record = readInstallRecord();
const version = projectVersion.version; const version = projectVersion.version;
const before = record && typeof record.version === 'string' ? record.version : null; const before = record && typeof record.version === 'string' ? record.version : null;
@@ -4175,7 +4191,10 @@ async function update({ steps = UPDATE_STEPS, cleanShims = removeLegacyLoopShims
// And the shared console the skills forward to: its folder complete for this version, named by // And the shared console the skills forward to: its folder complete for this version, named by
// console-dir, with no interrupted copy or backup of it left beside it. // console-dir, with no interrupted copy or backup of it left beside it.
const consoleInPlace = sameVersion && pieces.includes('skills') ? consoleCurrent(version) : true; const consoleInPlace = sameVersion && pieces.includes('skills') ? consoleCurrent(version) : true;
if (sameVersion && skillsInPlace && consoleInPlace && !force) { // And the desktop app file: the record's version is stamped before the app step runs, so an app
// left on an older release under a new record would otherwise never be fetched.
const appInPlace = sameVersion && pieces.includes('app') ? appInPlaceFor(version, record) : true;
if (sameVersion && skillsInPlace && consoleInPlace && appInPlace && !force) {
console.log(`${COLORS.GREEN}${MARKS.DONE}${COLORS.RESET} Already on ${version}`); console.log(`${COLORS.GREEN}${MARKS.DONE}${COLORS.RESET} Already on ${version}`);
console.log(`${COLORS.DIM}Run plan2code update --force to install it again.${COLORS.RESET}`); console.log(`${COLORS.DIM}Run plan2code update --force to install it again.${COLORS.RESET}`);
return 0; return 0;
@@ -4184,8 +4203,8 @@ async function update({ steps = UPDATE_STEPS, cleanShims = removeLegacyLoopShims
if (before === version && launcherVersion !== version && !force) { if (before === version && launcherVersion !== version && !force) {
console.log(`${COLORS.DIM}The plan2code command is still on ${launcherVersion || 'an unknown version'}, so everything is installed again.${COLORS.RESET}`); console.log(`${COLORS.DIM}The plan2code command is still on ${launcherVersion || 'an unknown version'}, so everything is installed again.${COLORS.RESET}`);
} }
if (sameVersion && (!skillsInPlace || !consoleInPlace) && !force) { if (sameVersion && (!skillsInPlace || !consoleInPlace || !appInPlace) && !force) {
const unfinished = [!skillsInPlace && 'the installed skills do not match it on disk', !consoleInPlace && 'the shared console is not complete'].filter(Boolean).join(' and '); const unfinished = [!skillsInPlace && 'the installed skills do not match it on disk', !consoleInPlace && 'the shared console is not complete', !appInPlace && `the desktop app is not recorded at ${version}`].filter(Boolean).join(' and ');
console.log(`${COLORS.DIM}${version} is installed, but ${unfinished}, so it is installed again.${COLORS.RESET}`); console.log(`${COLORS.DIM}${version} is installed, but ${unfinished}, so it is installed again.${COLORS.RESET}`);
} }
if (!record) console.log(`${COLORS.DIM}No install record found; updating the skills and the plan2code command.${COLORS.RESET}`); if (!record) console.log(`${COLORS.DIM}No install record found; updating the skills and the plan2code command.${COLORS.RESET}`);
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "plan2code", "name": "plan2code",
"version": "3.2.5", "version": "3.2.6",
"private": true, "private": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"engines": { "engines": {
+1 -1
View File
@@ -194,7 +194,7 @@
"model": "swe-2-flash-high" "model": "swe-2-flash-high"
}, },
"balanced": { "balanced": {
"model": "swe-2-1-high" "model": "claude-sonnet-5-5-medium"
}, },
"best": { "best": {
"model": "claude-opus-5-5-medium" "model": "claude-opus-5-5-medium"
+2
View File
@@ -1,5 +1,7 @@
# 🧭 PATHFINDER MODE # 🧭 PATHFINDER MODE
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
Start all PATHFINDER MODE responses with '🧭 [PATHFINDER: Chart - Step X: Name]' or '🧭 [PATHFINDER: Work - Step X: Name]'. Start all PATHFINDER MODE responses with '🧭 [PATHFINDER: Chart - Step X: Name]' or '🧭 [PATHFINDER: Work - Step X: Name]'.
## Role ## Role
+2
View File
@@ -2,6 +2,8 @@
Start all PLANNING MODE responses with '🤔 [PLANNING PHASE X: Phase Name]' Start all PLANNING MODE responses with '🤔 [PLANNING PHASE X: Phase Name]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Senior software architect and technical PM. Analyze requirements critically, ask questions, design robust, testable solutions. Output: SOW and Implementation Plan. Do NOT write code - plan and architect only. Senior software architect and technical PM. Analyze requirements critically, ask questions, design robust, testable solutions. Output: SOW and Implementation Plan. Do NOT write code - plan and architect only.
+2
View File
@@ -2,6 +2,8 @@
Start all REVISION MODE responses with '🔄 [REVISION]' Start all REVISION MODE responses with '🔄 [REVISION]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Senior software architect updating implementation specs when requirements change mid-project. **Output: spec-file edits only — never implementation.** Senior software architect updating implementation specs when requirements change mid-project. **Output: spec-file edits only — never implementation.**
+2
View File
@@ -2,6 +2,8 @@
Start all DOCUMENTATION MODE responses with '📝 [DOCUMENTATION]' Start all DOCUMENTATION MODE responses with '📝 [DOCUMENTATION]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Technical writer transforming planning documents into precise, complete implementation specs any developer can follow without additional context. Technical writer transforming planning documents into precise, complete implementation specs any developer can follow without additional context.
+2
View File
@@ -1,5 +1,7 @@
# ⚡ IMPLEMENT + REVIEW MODE # ⚡ IMPLEMENT + REVIEW MODE
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
Start implementation responses with `⚡ [PHASE X: Phase Name]`. Start the review transition and review responses with `🔬 [Review Mode]` as directed by the review workflow. Return to the implementation header for final sign-off. Start implementation responses with `⚡ [PHASE X: Phase Name]`. Start the review transition and review responses with `🔬 [Review Mode]` as directed by the review workflow. Return to the implementation header for final sign-off.
## Role ## Role
+2
View File
@@ -2,6 +2,8 @@
Start all IMPLEMENTATION MODE responses with '⚡ [PHASE X: Phase Name]' Start all IMPLEMENTATION MODE responses with '⚡ [PHASE X: Phase Name]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Senior software engineer building exactly what the spec says, keeping progress current and flagging issues. Senior software engineer building exactly what the spec says, keeping progress current and flagging issues.
+2
View File
@@ -2,6 +2,8 @@
Start all FINALIZATION MODE responses with '🧹 [FINALIZATION STEP X: Step Name]' Start all FINALIZATION MODE responses with '🧹 [FINALIZATION STEP X: Step Name]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
QA engineer and technical lead performing rigorous final validation. Verify specifications were implemented correctly and completely, create summaries, and archive completed work. QA engineer and technical lead performing rigorous final validation. Verify specifications were implemented correctly and completely, create summaries, and archive completed work.
+2
View File
@@ -2,6 +2,8 @@
Start all CHANGELOG MODE responses with '📝' Start all CHANGELOG MODE responses with '📝'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Careful release scribe. Work out the right version from the default branch, find what this branch did that the CHANGELOG does not say yet, suggest entries for you to edit, and keep `package.json` in step. Nothing is written without a yes, and nothing is committed here. Careful release scribe. Work out the right version from the default branch, find what this branch did that the CHANGELOG does not say yet, suggest entries for you to edit, and keep `package.json` in step. Nothing is written without a yes, and nothing is committed here.
+2
View File
@@ -2,6 +2,8 @@
Start all DEAD CODE MODE responses with '💀 [DEAD CODE]' Start all DEAD CODE MODE responses with '💀 [DEAD CODE]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Finds unused code paths and dead code in the person's own project. Shows each finding with its evidence and a label that says how safe it is to remove, removes only the findings the person picks, then runs the project's tests and build and offers a final review of the removals (Step 7.5, the Review skill's own prompt, run in this session). **Never commits, pushes or stages**, and never installs an outside tool. Finds unused code paths and dead code in the person's own project. Shows each finding with its evidence and a label that says how safe it is to remove, removes only the findings the person picks, then runs the project's tests and build and offers a final review of the removals (Step 7.5, the Review skill's own prompt, run in this session). **Never commits, pushes or stages**, and never installs an outside tool.
+2
View File
@@ -2,6 +2,8 @@
Start all UPDATE DEPENDENCIES MODE responses with '📦 [UPDATE DEPENDENCIES]' Start all UPDATE DEPENDENCIES MODE responses with '📦 [UPDATE DEPENDENCIES]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Finds the outdated dependencies in the person's own project, labels each update Safe (should just work), Check first (likely fine, worth a look) or Warning (your code probably needs changing) with its reason, applies only the updates the person picks, in groups, runs the project's install and checks after each group, and undoes whatever breaks, leaving the project exactly as found. Small breakage may be fixed with the person's approval; bigger code changes go to Quick Task or Plan as an upgrade brief. Finds the outdated dependencies in the person's own project, labels each update Safe (should just work), Check first (likely fine, worth a look) or Warning (your code probably needs changing) with its reason, applies only the updates the person picks, in groups, runs the project's install and checks after each group, and undoes whatever breaks, leaving the project exactly as found. Small breakage may be fixed with the person's approval; bigger code changes go to Quick Task or Plan as an upgrade brief.
+2
View File
@@ -2,6 +2,8 @@
Start all DIAGNOSE MODE responses with '🔎 [DIAGNOSE]' Start all DIAGNOSE MODE responses with '🔎 [DIAGNOSE]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Bug detective. Find a bug's cause and write it up, **without fixing it**: reproduce it, narrow it down, name the cause with the file and function, size the fix, and hand the write-up to Quick Task (small fix) or Plan (big fix). Reads, runs and judges; never repairs. Bug detective. Find a bug's cause and write it up, **without fixing it**: reproduce it, narrow it down, name the cause with the file and function, size the fix, and hand the write-up to Quick Task (small fix) or Plan (big fix). Reads, runs and judges; never repairs.
+2
View File
@@ -2,6 +2,8 @@
Start all GIT MODE responses with '🔀' Start all GIT MODE responses with '🔀'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Careful git operator. Read where the repository stands, do what the person asks with branches, pulls, pushes and commits, and say plainly what each step did. Nothing leaves the machine without a yes. Careful git operator. Read where the repository stands, do what the person asks with branches, pulls, pushes and commits, and say plainly what each step did. Nothing leaves the machine without a yes.
+2
View File
@@ -1,5 +1,7 @@
# plan2code-handoff # plan2code-handoff
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
Turn everything useful in the current conversation into a single, self-contained Turn everything useful in the current conversation into a single, self-contained
handoff document that lets a *different* agent — a new session, a teammate's handoff document that lets a *different* agent — a new session, a teammate's
session, or a subagent — resume the work without re-reading this transcript. session, or a subagent — resume the work without re-reading this transcript.
+2
View File
@@ -2,6 +2,8 @@
Start all UPDATE AGENTS MODE responses with '🛞' Start all UPDATE AGENTS MODE responses with '🛞'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
``` ```
⋅ ⋅
╭───╮ ╭───╮
+2
View File
@@ -2,6 +2,8 @@
Start all CREATE AGENTS MODE responses with '💡' Start all CREATE AGENTS MODE responses with '💡'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
``` ```
⋅ ⋅
╭───╮ ╭───╮
+2
View File
@@ -2,6 +2,8 @@
Start all PR PREP MODE responses with '✅ [PR PREP]' Start all PR PREP MODE responses with '✅ [PR PREP]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Gets a branch ready for review. Picks the checks its changes need, runs the ones the person keeps, gives a readiness verdict and writes the pull-request description to copy. **Never commits, never pushes, never creates a pull request**, and does no code review of its own (that is the Review skill's job). Gets a branch ready for review. Picks the checks its changes need, runs the ones the person keeps, gives a readiness verdict and writes the pull-request description to copy. **Never commits, never pushes, never creates a pull request**, and does no code review of its own (that is the Review skill's job).
+2
View File
@@ -2,6 +2,8 @@
Start all QUICK TASK MODE responses with '🚀' Start all QUICK TASK MODE responses with '🚀'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Senior software architect. Analyze requirements, ask clarifying questions, deliver a concise Implementation Plan. Senior software architect. Analyze requirements, ask clarifying questions, deliver a concise Implementation Plan.
+2
View File
@@ -2,6 +2,8 @@
Start all responses with '🔬 [Review Mode]'. At step transitions, use '🔬 [Review Mode Step X: Step Name]'. Start all responses with '🔬 [Review Mode]'. At step transitions, use '🔬 [Review Mode Step X: Step Name]'.
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Critical review specialist -- experienced senior engineer providing independent second opinion. Review ALL changes with fresh eyes, question assumptions, verify correctness. Constructively adversarial: acknowledge good work briefly, relentlessly surface defects, quality gaps, and better approaches. Adapts to any context -- code, tests, docs, specs, plans, or bug fixes. Critical review specialist -- experienced senior engineer providing independent second opinion. Review ALL changes with fresh eyes, question assumptions, verify correctness. Constructively adversarial: acknowledge good work briefly, relentlessly surface defects, quality gaps, and better approaches. Adapts to any context -- code, tests, docs, specs, plans, or bug fixes.
+2
View File
@@ -2,6 +2,8 @@
Start all TEST MODE responses with '🧪 [TEST]' Start all TEST MODE responses with '🧪 [TEST]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Finds code no test covers and writes the missing tests. Asks where to look, finds the gaps, shows a test plan in the project's own style, writes unit and integration tests and runs them with the project's runner. **Never changes source code**: a test that exposes a real bug is handed to Diagnose, never "fixed" by editing the code under test. **Never reads, edits or ticks a spec's phase files**, and writes under `specs/` only when escalating an oversized job to Plan. No browser or end-to-end tests. Finds code no test covers and writes the missing tests. Asks where to look, finds the gaps, shows a test plan in the project's own style, writes unit and integration tests and runs them with the project's runner. **Never changes source code**: a test that exposes a real bug is handed to Diagnose, never "fixed" by editing the code under test. **Never reads, edits or ticks a spec's phase files**, and writes under `specs/` only when escalating an oversized job to Plan. No browser or end-to-end tests.
+2
View File
@@ -2,6 +2,8 @@
Start all UI PROTOTYPE MODE responses with '🎨 [UI PROTOTYPE]' Start all UI PROTOTYPE MODE responses with '🎨 [UI PROTOTYPE]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Product designer who shows several real options instead of describing them. Draws two to five variants of a screen, a flow or a terminal screen on one page the person opens in their browser, tunes with live dials and hands back with Copy and a paste. **Never builds production code**: a prototype is a reference that Plan and Implement build from. Product designer who shows several real options instead of describing them. Draws two to five variants of a screen, a flow or a terminal screen on one page the person opens in their browser, tunes with live dials and hands back with Copy and a paste. **Never builds production code**: a prototype is a reference that Plan and Implement build from.
+2
View File
@@ -2,6 +2,8 @@
Start all X-RAY MODE responses with '🩻 [X-RAY]' Start all X-RAY MODE responses with '🩻 [X-RAY]'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
Codebase guide. Two jobs, one card: **explain** how and why an area of the code works, citing the files and the history behind it, or **find the rough spots** worth fixing and hand the ones the person picks to Pathfinder or Plan as a brief. Reads, counts and judges; never builds. Codebase guide. Two jobs, one card: **explain** how and why an area of the code works, citing the files and the history behind it, or **find the rough spots** worth fixing and hand the ones the person picks to Pathfinder or Plan as a brief. Reads, counts and judges; never builds.
+2
View File
@@ -2,6 +2,8 @@
Start all DASHBOARD MODE responses with '🎛️' Start all DASHBOARD MODE responses with '🎛️'
**Language:** Write every reply, question, option and summary in US English, even when the person's messages or the project's files are in another language. Switch only when the person asks for a different language.
## Role ## Role
The front door. One page in the person's browser lists every Plan2Code skill; their pick launches it right there — you resume the same console session as that skill and run it. No typing command names, no second window. The front door. One page in the person's browser lists every Plan2Code skill; their pick launches it right there — you resume the same console session as that skill and run it. No typing command names, no second window.
+1 -1
View File
@@ -1,6 +1,6 @@
# Quick Questions (the Ask tab) # Quick Questions (the Ask tab)
The console points here the first time a Quick question reaches you. The person can ask anything on the Ask tab at any time, about this project's files or in general, without waiting for a card. A message never blocks a card send and a card send never blocks a message. The console points here the first time a Quick question reaches you. The person can ask anything on the Ask tab at any time, about this project's files or in general, without waiting for a card. A message never blocks a card send and a card send never blocks a message. Answer in US English, even when the question or the project is in another language, unless the person asks for one.
## How they arrive ## How they arrive
+1 -1
View File
@@ -1,6 +1,6 @@
# The Web Console (the card) # The Web Console (the card)
A local page where the person answers your questions, reads your drafts and approves things. Read this card once per session. Read a topic file only when your workflow notes or the console's `read` output name it. A local page where the person answers your questions, reads your drafts and approves things. Read this card once per session. Read a topic file only when your workflow notes or the console's `read` output name it. Write everything the person reads in US English unless they ask otherwise.
`<CONSOLE>` is `<SKILL_ROOT>/references/web-console/console.mjs` (globally `~/.agents/skills/<skill-name>/references/web-console/`; `~/.plan2code/console/console-dir` may hold the folder). Always quote the path. `node "<CONSOLE>" help <topic>` prints any topic file. `<CONSOLE>` is `<SKILL_ROOT>/references/web-console/console.mjs` (globally `~/.agents/skills/<skill-name>/references/web-console/`; `~/.plan2code/console/console-dir` may hold the folder). Always quote the path. `node "<CONSOLE>" help <topic>` prints any topic file.
+18 -15
View File
@@ -738,24 +738,27 @@ export const SKILL_CATALOG = FLOW_SKILLS.filter((s) => s.card).map((s) => ({
command: s.command, command: s.command,
workflow: s.workflow, workflow: s.workflow,
...(s.review ? { review: s.review } : {}), ...(s.review ? { review: s.review } : {}),
...(s.loop ? { loop: s.loop } : {}),
...s.card, ...s.card,
})); }));
// The desktop app's Implementation Loop card: not a skill, so not in
// SKILL_CATALOG. The dashboard draws it after its group's other cards, and its
// click opens the setup screen instead of launching anything.
const LOOP_SKILL = SKILLS.find((s) => s.appOnly && s.card);
export const LOOP_ENTRY = LOOP_SKILL
? { skill: LOOP_SKILL.skill, command: "Desktop app only", workflow: null, appOnly: true, ...LOOP_SKILL.card }
: null;
// The Review Loop's card, the second app-only entry: same shape, own setup screen.
const REVIEW_LOOP_SKILL = SKILLS.find((s) => s.appOnly && s.card && s !== LOOP_SKILL);
export const REVIEW_LOOP_ENTRY = REVIEW_LOOP_SKILL
? { skill: REVIEW_LOOP_SKILL.skill, command: "Desktop app only", workflow: null, appOnly: true, ...REVIEW_LOOP_SKILL.card }
: null;
// Every app-only card, in the order the dashboard draws them.
export const APP_ONLY_ENTRIES = Object.freeze([LOOP_ENTRY, REVIEW_LOOP_ENTRY].filter(Boolean));
export const OUTSIDE_APP_LINE = "Runs only in the Plan2Code desktop app."; export const OUTSIDE_APP_LINE = "Runs only in the Plan2Code desktop app.";
export const LOOP_RUNNING_LINE = "A loop is running. Stop it from the banner at the top of the window first.";
// The app-only entry a card's Loop box opens the setup screen for (the
// Implementation Loop on Implement, the Review Loop on Review), or null.
export function loopFor(entry) {
return SKILLS.find((s) => s.appOnly && s.skill === entry.loop) || null;
}
// The Loop box on a confirm pane, as { on, reason }: off with the desktop-app
// line outside the app, off while a loop runs, else the loop entry's own
// availability for the picked spec.
export function loopBoxState(entry, scan, sel, { inApp, driving }) {
if (!inApp) return { on: false, reason: OUTSIDE_APP_LINE };
if (driving) return { on: false, reason: LOOP_RUNNING_LINE };
return cardAvailability({ skill: entry.loop, appOnly: true }, scan, sel);
}
// A workflow by the name its dashboard card gives it ("Implement"), for the // A workflow by the name its dashboard card gives it ("Implement"), for the
// screens that speak of it as a thing being started rather than as a badge. // screens that speak of it as a thing being started rather than as a badge.
@@ -873,7 +876,7 @@ export function cardAvailability(entry, scan, sel, lookup = stateFor) {
const hasAgents = Boolean(scan && scan.hasAgents); const hasAgents = Boolean(scan && scan.hasAgents);
const state = sel && sel.state && sel.state !== "unrecognized" ? sel.state : null; const state = sel && sel.state && sel.state !== "unrecognized" ? sel.state : null;
const next = sel ? Boolean(state) && NEXT_FOR_STATE[state] === entry.skill : entry.skill === "plan2code-0-pathfinder"; const next = sel ? Boolean(state) && NEXT_FOR_STATE[state] === entry.skill : entry.skill === "plan2code-0-pathfinder";
const rule = skillByName(entry.skill) || (entry.appOnly ? SKILLS.find((s) => s.appOnly && s.skill === entry.skill) || LOOP_SKILL : null); const rule = skillByName(entry.skill) || (entry.appOnly ? SKILLS.find((s) => s.appOnly && s.skill === entry.skill) : null);
if (!rule || !rule.states) return ON; if (!rule || !rule.states) return ON;
// The three cards whose rules read the scan rather than the spec. // The three cards whose rules read the scan rather than the spec.
+4 -9
View File
@@ -407,13 +407,6 @@
<path d="m16 18 6-6-6-6" /> <path d="m16 18 6-6-6-6" />
<path d="m8 6-6 6 6 6" /> <path d="m8 6-6 6 6 6" />
</symbol> </symbol>
<!-- Implementation Loop: repeat arrows. -->
<symbol id="ci-loop" viewBox="0 0 24 24" fill="none">
<path d="m17 2.5 4 4-4 4" />
<path d="M3 11V9a4 4 0 0 1 4-4h14" />
<path d="m7 21.5-4-4 4-4" />
<path d="M21 13v2a4 4 0 0 1-4 4H3" />
</symbol>
<!-- Finalize: a finish flag. --> <!-- Finalize: a finish flag. -->
<symbol id="ci-finalize" viewBox="0 0 24 24" fill="none"> <symbol id="ci-finalize" viewBox="0 0 24 24" fill="none">
<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V4s-1 1-4 1-5-2-8-2-4 1-4 1z" /> <path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V4s-1 1-4 1-5-2-8-2-4 1-4 1z" />
@@ -2479,7 +2472,8 @@
<p class="help-lead"> <p class="help-lead">
In the desktop app, the Implementation Loop builds every remaining In the desktop app, the Implementation Loop builds every remaining
phase of a documented spec for you, one after another, while you do phase of a documented spec for you, one after another, while you do
something else. The dashboard's Implementation Loop card starts it. something else. Start it from Implement's confirm pane: tick the
<strong>Loop</strong> checkbox, then <strong>Set up Implementation Loop</strong>.
</p> </p>
<figure class="help-figure" data-figure="loop"> <figure class="help-figure" data-figure="loop">
<svg class="help-diagram" viewBox="0 0 560 110" role="img" aria-labelledby="hd-loop-title hd-loop-desc"> <svg class="help-diagram" viewBox="0 0 560 110" role="img" aria-labelledby="hd-loop-title hd-loop-desc">
@@ -2634,7 +2628,8 @@
<p class="help-lead"> <p class="help-lead">
In the desktop app, the Review Loop reviews a finished change and fixes In the desktop app, the Review Loop reviews a finished change and fixes
what it finds, in rounds, on its own. Each round's reviewer starts what it finds, in rounds, on its own. Each round's reviewer starts
fresh. The dashboard's Review Loop card starts it. fresh. Start it from Review's confirm pane: tick the <strong>Loop</strong>
checkbox, then <strong>Set up Review Loop</strong>.
</p> </p>
<figure class="help-figure" data-figure="review-loop"> <figure class="help-figure" data-figure="review-loop">
<svg class="help-diagram" viewBox="0 0 560 110" role="img" aria-labelledby="hd-review-loop-title hd-review-loop-desc"> <svg class="help-diagram" viewBox="0 0 560 110" role="img" aria-labelledby="hd-review-loop-title hd-review-loop-desc">
+25
View File
@@ -34,6 +34,9 @@ export const DEFAULT_LOOKS = {
width: DEFAULT_CARD_WIDTH, width: DEFAULT_CARD_WIDTH,
// The top bar's text size, in percent (palette.js TEXT_SIZES). // The top bar's text size, in percent (palette.js TEXT_SIZES).
textSize: DEFAULT_TEXT_SIZE, textSize: DEFAULT_TEXT_SIZE,
// The Notes panel's height in pixels when it is stacked under the question
// (its drag handle sets it); 0 is the automatic height.
asideHeight: 0,
hideUnavailable: true, hideUnavailable: true,
// Skip the wake-up intro: never play the dashboard's first-open wake-up (Planny asleep), off by default. // Skip the wake-up intro: never play the dashboard's first-open wake-up (Planny asleep), off by default.
skipIntro: false, skipIntro: false,
@@ -64,6 +67,13 @@ export const DEFAULT_LOOKS = {
activityOrder: "recent", activityOrder: "recent",
}; };
// The stacked Notes panel's smallest height; a saved number is a whole count of pixels, or 0 for automatic.
export const ASIDE_MIN_HEIGHT = 96;
export const asideHeightOf = (value) => {
const n = Number(value);
return Number.isFinite(n) && n > 0 ? Math.max(ASIDE_MIN_HEIGHT, Math.round(n)) : 0;
};
export let looks = { ...DEFAULT_LOOKS }; export let looks = { ...DEFAULT_LOOKS };
let syncedLooks = null; let syncedLooks = null;
@@ -80,6 +90,7 @@ export function adoptLooks(saved) {
if (typeof looks.hideUnavailable !== "boolean") looks.hideUnavailable = DEFAULT_LOOKS.hideUnavailable; if (typeof looks.hideUnavailable !== "boolean") looks.hideUnavailable = DEFAULT_LOOKS.hideUnavailable;
looks.width = cardWidth(looks.width); looks.width = cardWidth(looks.width);
looks.textSize = textSize(looks.textSize); looks.textSize = textSize(looks.textSize);
looks.asideHeight = asideHeightOf(looks.asideHeight);
if (typeof looks.skipIntro !== "boolean") looks.skipIntro = DEFAULT_LOOKS.skipIntro; if (typeof looks.skipIntro !== "boolean") looks.skipIntro = DEFAULT_LOOKS.skipIntro;
if (typeof looks.skillLaunched !== "boolean") looks.skillLaunched = DEFAULT_LOOKS.skillLaunched; if (typeof looks.skillLaunched !== "boolean") looks.skillLaunched = DEFAULT_LOOKS.skillLaunched;
if (typeof looks.meterTipSeen !== "boolean") looks.meterTipSeen = DEFAULT_LOOKS.meterTipSeen; if (typeof looks.meterTipSeen !== "boolean") looks.meterTipSeen = DEFAULT_LOOKS.meterTipSeen;
@@ -205,6 +216,19 @@ function paintTextSize() {
$("btn-text-larger").setAttribute("aria-disabled", String(at >= TEXT_SIZES.length - 1)); $("btn-text-larger").setAttribute("aria-disabled", String(at >= TEXT_SIZES.length - 1));
} }
// The stacked Notes panel's height, as a variable the stylesheet reads
// (responsive.css); with none set the panel keeps its automatic height.
export function paintAsideHeight(height = looks.asideHeight) {
const root = document.documentElement;
if (height > 0) {
root.style.setProperty("--aside-h", height + "px");
root.setAttribute("data-aside-h", "");
} else {
root.style.removeProperty("--aside-h");
root.removeAttribute("data-aside-h");
}
}
export function applyLooks() { export function applyLooks() {
const root = document.documentElement; const root = document.documentElement;
// The desktop app's shell wears this page's theme and highlight: the resolved // The desktop app's shell wears this page's theme and highlight: the resolved
@@ -226,6 +250,7 @@ export function applyLooks() {
if (looks.textSize === DEFAULT_TEXT_SIZE) root.removeAttribute("data-text-size"); if (looks.textSize === DEFAULT_TEXT_SIZE) root.removeAttribute("data-text-size");
else root.dataset.textSize = String(looks.textSize); else root.dataset.textSize = String(looks.textSize);
paintTextSize(); paintTextSize();
paintAsideHeight();
// The default lives in the stylesheet, where it is written once per theme. // The default lives in the stylesheet, where it is written once per theme.
// Clearing the override is how it gets its own values back. // Clearing the override is how it gets its own values back.
+22 -11
View File
@@ -40,8 +40,18 @@ function tickKey(end) {
return `review|${end.line}|${end.reason}|${end.signedOff ? "signed" : "open"}`; return `review|${end.line}|${end.reason}|${end.signedOff ? "signed" : "open"}`;
} }
function button(label, id, cls, disabled, onClick) { // The press the page is waiting on (set each draw), so its button can show work.
const b = el("button", "btn" + (cls ? " " + cls : ""), label); let busyWhat = "";
function button(label, id, cls, disabled, onClick, what = "") {
const working = Boolean(what) && busyWhat === what;
const b = el("button", "btn" + (cls ? " " + cls : "") + (working ? " is-busy" : ""), working ? "" : label);
if (working) {
const spin = el("span", "spinner tiny");
spin.setAttribute("aria-hidden", "true");
b.append(spin, document.createTextNode("Working…"));
b.setAttribute("aria-busy", "true");
}
b.type = "button"; b.type = "button";
b.id = id; b.id = id;
b.disabled = disabled; b.disabled = disabled;
@@ -75,6 +85,7 @@ export function renderReviewLoopEnd(end) {
const failed = const failed =
page.reviewAction && !page.reviewAction.ok ? page.reviewAction.error : page.loopAction && !page.loopAction.ok ? page.loopAction.error : ""; page.reviewAction && !page.reviewAction.ok ? page.reviewAction.error : page.loopAction && !page.loopAction.ok ? page.loopAction.error : "";
const busy = pressed.key === key && !failed; const busy = pressed.key === key && !failed;
busyWhat = busy ? pressed.what : "";
const press = (what, kind, extra) => { const press = (what, kind, extra) => {
if (page.gone || busy) return; if (page.gone || busy) return;
pressed = { key, what }; pressed = { key, what };
@@ -125,8 +136,8 @@ function drawPartial(card, end, busy, press) {
} }
box.appendChild(el("p", "loop-end-hint", "Keep leaves these changes in your files. Discard takes them out and cannot be undone.")); box.appendChild(el("p", "loop-end-hint", "Keep leaves these changes in your files. Discard takes them out and cannot be undone."));
const row = el("div", "btn-row"); const row = el("div", "btn-row");
row.appendChild(button("Keep these changes", "review-end-keep", "primary", busy, () => press("keep", "review-loop-partial", { keep: true }))); row.appendChild(button("Keep these changes", "review-end-keep", "primary", busy, () => press("keep", "review-loop-partial", { keep: true }), "keep"));
row.appendChild(button("Discard them", "review-end-discard", "", busy, () => press("discard", "review-loop-partial", { keep: false }))); row.appendChild(button("Discard them", "review-end-discard", "", busy, () => press("discard", "review-loop-partial", { keep: false }), "discard"));
box.appendChild(row); box.appendChild(row);
card.appendChild(box); card.appendChild(box);
} }
@@ -137,7 +148,7 @@ function drawStop(card, end, busy, press) {
if (end.canContinue && !end.partial) { if (end.canContinue && !end.partial) {
const choice = el("div", "loop-end-choice"); const choice = el("div", "loop-end-choice");
const label = end.reason === "cap" ? "Run one more round" : "Continue"; const label = end.reason === "cap" ? "Run one more round" : "Continue";
choice.appendChild(button(label, "review-end-continue", "", busy, () => press("continue", "review-loop-continue"))); choice.appendChild(button(label, "review-end-continue", "", busy, () => press("continue", "review-loop-continue"), "continue"));
choice.appendChild(el("p", "loop-end-hint", "Pick the review up again with the same setup.")); choice.appendChild(el("p", "loop-end-hint", "Pick the review up again with the same setup."));
card.appendChild(choice); card.appendChild(choice);
} }
@@ -167,7 +178,7 @@ function drawStop(card, end, busy, press) {
} }
const row = el("div", "btn-row"); const row = el("div", "btn-row");
row.appendChild( row.appendChild(
button("Sign off", "review-end-signoff", "primary", busy || Boolean(end.partial), () => press("sign-off", "review-loop-sign-off", { picks: [...ticks.picks], squash: ticks.squash })) button("Sign off", "review-end-signoff", "primary", busy || Boolean(end.partial), () => press("sign-off", "review-loop-sign-off", { picks: [...ticks.picks], squash: ticks.squash }), "sign-off")
); );
card.appendChild(row); card.appendChild(row);
card.appendChild( card.appendChild(
@@ -177,19 +188,19 @@ function drawStop(card, end, busy, press) {
function drawFinished(card, end, busy, press) { function drawFinished(card, end, busy, press) {
const actions = el("div", "loop-end-actions review-end-next"); const actions = el("div", "loop-end-actions review-end-next");
const add = (label, id, hint, primary, onClick) => { const add = (label, id, hint, primary, onClick, what) => {
const choice = el("div", "loop-end-choice" + (primary ? " is-recommended" : "")); const choice = el("div", "loop-end-choice" + (primary ? " is-recommended" : ""));
choice.appendChild(button(label, id, primary ? "primary" : "", busy, onClick)); choice.appendChild(button(label, id, primary ? "primary" : "", busy, onClick, what));
choice.appendChild(el("p", "loop-end-hint", hint)); choice.appendChild(el("p", "loop-end-hint", hint));
actions.appendChild(choice); actions.appendChild(choice);
}; };
add("PR Prep", "review-end-pr-prep", "Get the branch ready for a pull request.", true, () => press("pr-prep", "review-loop-next", { next: "pr-prep" })); add("PR Prep", "review-end-pr-prep", "Get the branch ready for a pull request.", true, () => press("pr-prep", "review-loop-next", { next: "pr-prep" }), "pr-prep");
if (Array.isArray(end.open) && end.open.length) { if (Array.isArray(end.open) && end.open.length) {
add("Fix what's left by hand", "review-end-quick-task", "Start a Quick task with the Critical and Warning findings still open.", false, () => add("Fix what's left by hand", "review-end-quick-task", "Start a Quick task with the Critical and Warning findings still open.", false, () =>
press("quick-task", "review-loop-next", { next: "quick-task" }) press("quick-task", "review-loop-next", { next: "quick-task" }), "quick-task"
); );
} }
add("Back to the dashboard", "review-end-dashboard", "Leave this screen and pick another skill. Your work stays as it is.", false, () => press("dashboard", "loop-dashboard")); add("Back to the dashboard", "review-end-dashboard", "Leave this screen and pick another skill. Your work stays as it is.", false, () => press("dashboard", "loop-dashboard"), "dashboard");
card.appendChild(actions); card.appendChild(actions);
} }
+64 -1
View File
@@ -6,7 +6,7 @@ import { chatAnswering, chatOffline, chatView, sendState as chatSendState, newes
import { finish, activity, agentAdrift, isDashboard, selSpec, byId, isOpen, loopAskLocked, loopDriving } from "../selectors.js"; import { finish, activity, agentAdrift, isDashboard, selSpec, byId, isOpen, loopAskLocked, loopDriving } from "../selectors.js";
import { el, icon, md, isMac, lightDismiss, shortTime } from "../render.js"; import { el, icon, md, isMac, lightDismiss, shortTime } from "../render.js";
import { startersFor } from "../starters.js"; import { startersFor } from "../starters.js";
import { looks } from "../looks.js"; import { looks, saveLooks, paintAsideHeight, ASIDE_MIN_HEIGHT } from "../looks.js";
import { thumbs, uploadUrl, docChip, attachTray, CHAT_IMAGES, attachFiles, incomingFiles, deleteUrl, sentAttachments, noteImages, attachRow, openPicview, refocusThumb } from "../uploads.js"; import { thumbs, uploadUrl, docChip, attachTray, CHAT_IMAGES, attachFiles, incomingFiles, deleteUrl, sentAttachments, noteImages, attachRow, openPicview, refocusThumb } from "../uploads.js";
import { attachMentions } from "../mention-box.js"; import { attachMentions } from "../mention-box.js";
import { destroyFields, makeMdField } from "../md-field.js"; import { destroyFields, makeMdField } from "../md-field.js";
@@ -703,6 +703,68 @@ const askOffered = () => {
}; };
const ASK_HINT = "Press Ask a question to wake an agent, then ask in the Ask tab."; const ASK_HINT = "Press Ask a question to wake an agent, then ask in the Ask tab.";
// The handle on the top edge of the Notes panel while it is stacked under the
// question (responsive.css draws it only then). Dragging it up makes the panel
// taller; the height is kept in the looks, double-click gives the automatic
// height back, and the arrow keys move it a step. The drag listens on the
// window, so a redraw that replaces the handle mid-drag does not end it.
const GRIP_STEP = 24;
function asideGrip(aside) {
const grip = el("div", "aside-grip");
grip.setAttribute("role", "separator");
grip.setAttribute("aria-orientation", "horizontal");
grip.setAttribute("aria-label", "Resize the notes panel");
grip.title = "Drag to resize, double-click to reset";
grip.tabIndex = 0;
// Never past what leaves the question its room (the stylesheet caps it the same way).
const clamp = (h) => (h > 0 ? Math.min(Math.max(ASIDE_MIN_HEIGHT, window.innerHeight - 260), Math.max(ASIDE_MIN_HEIGHT, Math.round(h))) : 0);
const keep = (h) => {
looks.asideHeight = h;
saveLooks();
announce();
};
// A focusable separator tells a screen reader its value: the panel's height in pixels.
// Measured after the next frame, once the panel has the height just set (or, drawn fresh, has its content).
const announce = () =>
requestAnimationFrame(() => {
grip.setAttribute("aria-valuemin", String(ASIDE_MIN_HEIGHT));
grip.setAttribute("aria-valuemax", String(Math.max(ASIDE_MIN_HEIGHT, window.innerHeight - 260)));
grip.setAttribute("aria-valuenow", String(Math.round(aside.getBoundingClientRect().height)));
});
announce();
grip.addEventListener("pointerdown", (e) => {
if (e.button !== 0) return;
e.preventDefault();
const startY = e.clientY;
const startH = Math.round(aside.getBoundingClientRect().height);
let h = startH;
const move = (m) => {
h = clamp(startH + startY - m.clientY);
paintAsideHeight(h);
announce();
};
const up = () => {
window.removeEventListener("pointermove", move);
window.removeEventListener("pointerup", up);
window.removeEventListener("pointercancel", up);
// A plain click (the first half of a double-click) saves nothing.
if (h !== startH) keep(h);
};
window.addEventListener("pointermove", move);
window.addEventListener("pointerup", up);
window.addEventListener("pointercancel", up);
});
grip.addEventListener("dblclick", () => keep(0));
grip.addEventListener("keydown", (e) => {
const dir = e.key === "ArrowUp" ? 1 : e.key === "ArrowDown" ? -1 : 0;
if (!dir) return;
e.preventDefault();
keep(clamp(Math.round(aside.getBoundingClientRect().height) + dir * GRIP_STEP));
});
return grip;
}
export function renderAside() { export function renderAside() {
const aside = $("aside"); const aside = $("aside");
// Redrawing empties the panel, which drops its scroll to the top. An image // Redrawing empties the panel, which drops its scroll to the top. An image
@@ -723,6 +785,7 @@ export function renderAside() {
// Off the question's own page (a doc tab, Ask) "this" points at nothing on // Off the question's own page (a doc tab, Ask) "this" points at nothing on
// screen, so the pane names the question a note here will go to. // screen, so the pane names the question a note here will go to.
const onQuestion = page.view === "questions" || page.view === "end"; const onQuestion = page.view === "questions" || page.view === "end";
aside.appendChild(asideGrip(aside));
aside.appendChild(el("h2", null, onQuestion ? "Notes on this" : `Notes on “${item.title || "this question"}”`)); aside.appendChild(el("h2", null, onQuestion ? "Notes on this" : `Notes on “${item.title || "this question"}”`));
const thread = item.thread || []; const thread = item.thread || [];
+9 -2
View File
@@ -84,7 +84,7 @@ import { openPrefs as openPrefsDialog } from "./prefs-dialog.js";
import { continueButton } from "../continue-button.js"; import { continueButton } from "../continue-button.js";
import { askOfflineFlipped, askState, declineOpen, renderAside, renderAsk, renderSubagents, renderSubagentsButton } from "./ask.js"; import { askOfflineFlipped, askState, declineOpen, renderAside, renderAsk, renderSubagents, renderSubagentsButton } from "./ask.js";
import { forgetReviewEnd } from "../review-loop-end.js"; import { forgetReviewEnd } from "../review-loop-end.js";
import { renderHandoff, renderLoopEnd, renderHomeButton, renderStopButton, renderStopControls, renderStopping, renderFooterDashboard, stopInProgress, stopWarning } from "./ending.js"; import { forgetLoopEnd, renderHandoff, renderLoopEnd, renderHomeButton, renderStopButton, renderStopControls, renderStopping, renderFooterDashboard, stopInProgress, stopWarning } from "./ending.js";
import { renderNotepadButton } from "./notepad.js"; import { renderNotepadButton } from "./notepad.js";
import { renderActivities } from "./activities.js"; import { renderActivities } from "./activities.js";
import { renderSetup, setupMoved } from "./setup.js"; import { renderSetup, setupMoved } from "./setup.js";
@@ -452,6 +452,7 @@ export function adopt(body) {
// or the session ended; either way the menu is not mid-handoff any more. // or the session ended; either way the menu is not mid-handoff any more.
if (!isDashboard() || finish()) { if (!isDashboard() || finish()) {
page.dashPick = null; page.dashPick = null;
page.dashLoop = false;
page.loopSetup = null; page.loopSetup = null;
page.reviewLoopSetup = null; page.reviewLoopSetup = null;
} }
@@ -1685,6 +1686,7 @@ export function renderSidebar() {
// straight to a launch. From the Overview tab too, so the pane shows. // straight to a launch. From the Overview tab too, so the pane shows.
b.addEventListener("click", () => { b.addEventListener("click", () => {
page.dashPick = e; page.dashPick = e;
page.dashLoop = false;
page.view = "questions"; page.view = "questions";
render(); render();
}); });
@@ -1820,6 +1822,7 @@ function paintMain(main) {
if (cardAvailability(page.dashPick, scan(), selSpec()).on) renderConfirm(main, page.dashPick); if (cardAvailability(page.dashPick, scan(), selSpec()).on) renderConfirm(main, page.dashPick);
else { else {
page.dashPick = null; page.dashPick = null;
page.dashLoop = false;
renderDashboard(main); renderDashboard(main);
} }
} else renderDashboard(main); } else renderDashboard(main);
@@ -1857,7 +1860,10 @@ function paintMain(main) {
// How the Implementation Loop ended, from the app's `loopEnd`: its own // How the Implementation Loop ended, from the app's `loopEnd`: its own
// screen, ahead of any card the last phase left behind. // screen, ahead of any card the last phase left behind.
if (!page.S.loopEnd) forgetReviewEnd(); if (!page.S.loopEnd) {
forgetReviewEnd();
forgetLoopEnd();
}
if (page.S.loopEnd && !finish()) { if (page.S.loopEnd && !finish()) {
const card = renderLoopEnd(page.S.loopEnd); const card = renderLoopEnd(page.S.loopEnd);
card.classList.add("is-primary"); card.classList.add("is-primary");
@@ -2612,6 +2618,7 @@ export function wireChrome() {
// same time would be two undos for one press. // same time would be two undos for one press.
if (e.key === "Escape" && (page.dashPick || page.loopSetup || page.reviewLoopSetup) && isDashboard() && !finish() && !document.querySelector("dialog[open]")) { if (e.key === "Escape" && (page.dashPick || page.loopSetup || page.reviewLoopSetup) && isDashboard() && !finish() && !document.querySelector("dialog[open]")) {
page.dashPick = null; page.dashPick = null;
page.dashLoop = false;
page.loopSetup = null; page.loopSetup = null;
page.reviewLoopSetup = null; page.reviewLoopSetup = null;
redraw(); redraw();
+52 -46
View File
@@ -30,9 +30,8 @@ import {
CATALOG_GROUPS, CATALOG_GROUPS,
SKILL_CATALOG, SKILL_CATALOG,
catalogEntry, catalogEntry,
LOOP_ENTRY, loopFor,
APP_ONLY_ENTRIES, loopBoxState,
OUTSIDE_APP_LINE,
launchVariant, launchVariant,
SPEC_STATE_LABELS, SPEC_STATE_LABELS,
chipDetail, chipDetail,
@@ -298,17 +297,12 @@ export function renderDashboard(main) {
let shown = 0; let shown = 0;
for (const g of CATALOG_GROUPS) { for (const g of CATALOG_GROUPS) {
const entries = SKILL_CATALOG.filter((e) => e.group === g.id && (!hide || available(e))); const entries = SKILL_CATALOG.filter((e) => e.group === g.id && (!hide || available(e)));
// The desktop app's Implementation Loop and Review Loop cards close their if (!entries.length) continue;
// group. Outside the app they are always drawn, grayed, so the features can shown += entries.length;
// be found.
const loopCards = APP_ONLY_ENTRIES.filter((e) => e.group === g.id && (!page.inApp || !hide || available(e)));
if (!entries.length && !loopCards.length) continue;
shown += entries.length + loopCards.length;
const section = el("section", "dash-group"); const section = el("section", "dash-group");
section.appendChild(el("h3", "dash-group-title", g.title)); section.appendChild(el("h3", "dash-group-title", g.title));
const grid = el("div", "dash-grid"); const grid = el("div", "dash-grid");
for (const e of entries) grid.appendChild(dashCard(e, menu)); for (const e of entries) grid.appendChild(dashCard(e, menu));
for (const e of loopCards) grid.appendChild(dashCard(e, menu));
section.appendChild(grid); section.appendChild(grid);
wrap.appendChild(section); wrap.appendChild(section);
} }
@@ -755,10 +749,8 @@ async function readHandoff(h) {
} }
} }
const REVIEW_LOOP_SKILL = "plan2code-review-loop";
function dashCard(entry, menu) { function dashCard(entry, menu) {
const presentation = entry.appOnly ? loopPresentation(entry, menu) : cardPresentation(entry, scan(), selSpec(), menu); const presentation = cardPresentation(entry, scan(), selSpec(), menu);
// The agent's `recommend` and detail describe the initially selected spec. // The agent's `recommend` and detail describe the initially selected spec.
// Other picker choices derive both from the scan, so stale context never // Other picker choices derive both from the scan, so stale context never
// follows a person to a different spec or to "start from scratch". A grayed // follows a person to a different spec or to "start from scratch". A grayed
@@ -789,7 +781,7 @@ function dashCard(entry, menu) {
title.appendChild(document.createTextNode(entry.title)); title.appendChild(document.createTextNode(entry.title));
b.appendChild(title); b.appendChild(title);
b.appendChild(el("span", "dash-card-blurb", entry.blurb)); b.appendChild(el("span", "dash-card-blurb", entry.blurb));
// A line only the desktop app shows (the Review card's pointer to the Review Loop). // A line only the desktop app shows (a card's `appNote`).
if (entry.appNote && page.inApp) b.appendChild(el("span", "dash-card-detail", entry.appNote)); if (entry.appNote && page.inApp) b.appendChild(el("span", "dash-card-detail", entry.appNote));
if (presentation.detail) b.appendChild(el("span", "dash-card-detail", presentation.detail)); if (presentation.detail) b.appendChild(el("span", "dash-card-detail", presentation.detail));
if (!presentation.on && presentation.reason) b.appendChild(el("span", "dash-card-off", presentation.reason)); if (!presentation.on && presentation.reason) b.appendChild(el("span", "dash-card-off", presentation.reason));
@@ -800,43 +792,13 @@ function dashCard(entry, menu) {
b.appendChild(foot); b.appendChild(foot);
b.addEventListener("click", () => { b.addEventListener("click", () => {
// A loop card opens its own setup screen instead of a confirm pane.
if (entry.appOnly) return entry.skill === REVIEW_LOOP_SKILL ? hooks.openReviewLoopSetup(selSpec()) : hooks.openLoopSetup(selSpec());
page.dashPick = entry; page.dashPick = entry;
page.dashLoop = false;
redraw(); redraw();
}); });
// "How the loop works" is a link of its own beside the card, never inside
// the button (a link in a button is not valid and reads badly aloud).
if (entry.appOnly) {
const wrap = el("div", "dash-card-wrap");
wrap.appendChild(b);
wrap.appendChild(loopHelpLink(entry));
return wrap;
}
return b; return b;
} }
// The loop card is lit only inside the desktop app and, there, by the same
// rule as Implement (a documented or building spec). Never recommended or
// pre-selected: a person opts into running unattended.
function loopPresentation(entry, menu) {
if (!page.inApp) return { on: false, reason: OUTSIDE_APP_LINE, recommended: false, detail: "" };
if (entry.skill === REVIEW_LOOP_SKILL && loopDriving()) {
return { on: false, reason: "A loop is running. Stop it from the banner at the top of the window first.", recommended: false, detail: "" };
}
return { ...cardPresentation(entry, scan(), selSpec(), menu), recommended: false };
}
// "How the loop works" under the card: a real button styled as a link, a
// sibling of the card button inside its wrapper.
function loopHelpLink(entry) {
const review = entry && entry.skill === REVIEW_LOOP_SKILL;
const a = el("button", "dash-card-link", review ? "How the Review Loop works" : "How the loop works");
a.type = "button";
a.addEventListener("click", () => hooks.openHelpOn(review ? "review-loop" : "loop"));
return a;
}
// "Start with a note from your Notebook": the switch a lit card's confirm // "Start with a note from your Notebook": the switch a lit card's confirm
// pane offers when noteSwitchShows() says so. The pane is rebuilt on every // pane offers when noteSwitchShows() says so. The pane is rebuilt on every
// state frame, so what the person did lives here, keyed to the card and the // state frame, so what the person did lives here, keyed to the card and the
@@ -1066,6 +1028,12 @@ function notePreview(picked, state, again) {
return pane; return pane;
} }
// The Loop box's words on each confirm pane, before the loop's name.
const LOOP_BOX_TEXT = {
"plan2code-loop": "Build every phase unattended",
"plan2code-review-loop": "Review and fix in rounds",
};
// The confirm pane. A card or rail click lands here rather than launching // The confirm pane. A card or rail click lands here rather than launching
// straight away: picking a skill is the one irreversible-feeling click on the // straight away: picking a skill is the one irreversible-feeling click on the
// dashboard, and it deserves a beat: what it is, what it will do, and a // dashboard, and it deserves a beat: what it is, what it will do, and a
@@ -1134,6 +1102,29 @@ export function renderConfirm(main, entry) {
pane.appendChild(label); pane.appendChild(label);
} }
// Implement's and Review's cards: the Loop box opens the desktop app's
// matching loop setup screen in place of a launch. Outside the app, or while
// a loop runs, it shows grayed with the reason, so the feature can be found.
let loop = null;
const loopEntry = entry.loop ? loopFor(entry) : null;
if (loopEntry) {
const box = loopBoxState(entry, scan(), selSpec(), { inApp: page.inApp, driving: loopDriving() });
if (!review) pane.appendChild(el("hr", "confirm-rule"));
const label = el("label", "confirm-review confirm-loop" + (box.on ? "" : " is-off"));
loop = el("input");
loop.type = "checkbox";
loop.disabled = !box.on;
loop.checked = box.on && page.dashLoop === true;
loop.addEventListener("change", () => {
page.dashLoop = loop.checked;
showLoop();
});
label.append(loop, el("span", null, `${LOOP_BOX_TEXT[loopEntry.skill] || "Run unattended"} (${loopEntry.name})`));
pane.appendChild(label);
if (!box.on && box.reason) pane.appendChild(el("p", "confirm-loop-off", box.reason));
}
const looping = () => Boolean(loop) && !loop.disabled && loop.checked;
// The Notebook switch, on the cards and specs noteSwitchShows() names. // The Notebook switch, on the cards and specs noteSwitchShows() names.
const cmdNote = el("span", "confirm-cmd-note"); const cmdNote = el("span", "confirm-cmd-note");
cmdNote.hidden = true; cmdNote.hidden = true;
@@ -1163,17 +1154,31 @@ export function renderConfirm(main, entry) {
const start = el("button", "btn primary", "Start " + entry.title); const start = el("button", "btn primary", "Start " + entry.title);
start.type = "button"; start.type = "button";
start.disabled = page.gone || page.pendingResult; start.disabled = page.gone || page.pendingResult;
start.addEventListener("click", () => launchSkill(launchVariant(entry, Boolean(review) && review.checked))); start.addEventListener("click", () => {
if (!looping()) return launchSkill(launchVariant(entry, Boolean(review) && review.checked));
if (entry.loop === "plan2code-loop") hooks.openLoopSetup(selSpec());
else hooks.openReviewLoopSetup(selSpec());
});
const back = el("button", "btn ghost", "Back"); const back = el("button", "btn ghost", "Back");
back.type = "button"; back.type = "button";
back.addEventListener("click", () => { back.addEventListener("click", () => {
page.dashPick = null; page.dashPick = null;
page.dashLoop = false;
redraw(); redraw();
}); });
actions.appendChild(back); actions.appendChild(back);
actions.appendChild(start); actions.appendChild(start);
tail.appendChild(actions); tail.appendChild(actions);
pane.appendChild(tail); pane.appendChild(tail);
// A ticked Loop box hands Start to the loop's setup screen: the Review box
// grays (the loop setup has its own review choice) and the command and
// Start name the loop. Run once here so a re-render keeps the tick's look.
function showLoop() {
if (review) review.disabled = looping();
cmdCode.textContent = looping() ? "Desktop app only" : launchVariant(entry, !review || review.checked).command;
start.textContent = looping() ? "Set up " + loopEntry.name : "Start " + entry.title;
}
if (loopEntry) showLoop();
main.appendChild(pane); main.appendChild(pane);
// Focus lands on START after a pick (the clicked control was rebuilt away, // Focus lands on START after a pick (the clicked control was rebuilt away,
@@ -1200,6 +1205,7 @@ export async function launchSkill(entry) {
return; return;
} }
page.dashPick = null; page.dashPick = null;
page.dashLoop = false;
const action = { const action = {
i: "__launch", i: "__launch",
type: "launch", type: "launch",
+40 -3
View File
@@ -165,6 +165,24 @@ function closeGuideHeld() {
// Which stop-screen button was pressed and is waiting on the app's answer, so a // Which stop-screen button was pressed and is waiting on the app's answer, so a
// second press cannot send the same request twice. // second press cannot send the same request twice.
let loopPressed = null; let loopPressed = null;
// The ending that press was made on, so a later ending never inherits it.
let loopPressedKey = null;
/** The loop's end screen is gone (the loop runs again): its press is over. */
export function forgetLoopEnd() {
loopPressed = null;
loopPressedKey = null;
}
// What a pressed stop-screen button says while its request is under way, and
// the line under it. The app's ok answer only means the request went out: the
// agent still takes seconds to start in its terminal, so the button stays busy.
const LOOP_BUSY = {
resume: ["Continuing…", "Starting the loop again. This page updates when it is running."],
fix: ["Opening…", "Opening a session on this phase. Watch the terminal; this page updates when it is ready."],
finalize: ["Starting Finalize…", "Finalize is starting in the terminal. This can take a few seconds; this page updates when it is ready."],
dashboard: ["Opening the dashboard…", "Leaving this screen. Your work stays as it is."],
};
// The stop screen's Ask agent is up once the app answered a press of Ask a // The stop screen's Ask agent is up once the app answered a press of Ask a
// question: from then on the button opens the Ask tab, so it can never ask the // question: from then on the button opens the Ask tab, so it can never ask the
@@ -330,14 +348,30 @@ export function renderLoopEnd(end) {
// takes files back out of the index. // takes files back out of the index.
if (!finished && can.length) card.appendChild(el("p", "loop-end-safe", "Nothing is lost. Your work stays on disk.")); if (!finished && can.length) card.appendChild(el("p", "loop-end-safe", "Nothing is lost. Your work stays on disk."));
const mine = loopPressedKey === key ? loopPressed : null;
const actions = el("div", "loop-end-actions"); const actions = el("div", "loop-end-actions");
// A press waits for the app's answer, and then (an ok answer to anything but
// Ask) for the page to move on; only an error frees the buttons again.
const busyKey = LOOP_BUTTONS.map(([k, message]) => {
const waiting = mine === message && !page.loopAction;
const started = mine === message && k !== "ask" && page.loopAction && page.loopAction.ok && page.loopAction.kind === "loop-" + k + "-result";
return waiting || started ? k : null;
}).find(Boolean);
for (const [k, message, label] of LOOP_BUTTONS) { for (const [k, message, label] of LOOP_BUTTONS) {
if (!can.includes(k)) continue; if (!can.includes(k)) continue;
const choice = el("div", "loop-end-choice" + (k === recommended ? " is-recommended" : "")); const choice = el("div", "loop-end-choice" + (k === recommended ? " is-recommended" : ""));
const asked = k === "ask" && askUp; const asked = k === "ask" && askUp;
const b = el("button", "btn" + (k === recommended ? " primary" : ""), asked ? "Open the Ask tab" : label); const busy = busyKey === k && LOOP_BUSY[k];
const b = el("button", "btn" + (k === recommended ? " primary" : "") + (busy ? " is-busy" : ""), asked ? "Open the Ask tab" : busy ? "" : label);
b.type = "button"; b.type = "button";
b.disabled = page.gone || (!asked && loopPressed === message && !page.loopAction); if (busy) {
const spin = el("span", "spinner tiny");
spin.setAttribute("aria-hidden", "true");
b.append(spin, document.createTextNode(busy[0]));
b.setAttribute("aria-busy", "true");
}
// One press at a time: another button waits until this one's request fails.
b.disabled = page.gone || (!asked && Boolean(busyKey) && (busyKey === k || (busyKey !== "ask" && k !== "ask")));
b.addEventListener("click", () => { b.addEventListener("click", () => {
if (asked) { if (asked) {
page.view = "ask"; page.view = "ask";
@@ -349,12 +383,15 @@ export function renderLoopEnd(end) {
askUpFor = null; askUpFor = null;
loopDetailsOpen = null; loopDetailsOpen = null;
loopPressed = message; loopPressed = message;
loopPressedKey = key;
page.loopAction = null; page.loopAction = null;
tellApp(message); tellApp(message);
redraw(); redraw();
}); });
choice.appendChild(b); choice.appendChild(b);
choice.appendChild(el("p", "loop-end-hint", loopButtonLine(k, stoppedPhase, asked))); const hint = el("p", "loop-end-hint", busy ? busy[1] : loopButtonLine(k, stoppedPhase, asked));
if (busy) hint.setAttribute("role", "status");
choice.appendChild(hint);
actions.appendChild(choice); actions.appendChild(choice);
} }
if (actions.childElementCount) card.appendChild(actions); if (actions.childElementCount) card.appendChild(actions);
+5 -5
View File
@@ -1,10 +1,10 @@
// Plan2Code Web Console - the Implementation Loop's setup screen, drawn by the page from the console's saved setup and the app's facts; defines only. // Plan2Code Web Console - the Implementation Loop's setup screen, drawn by the page from the console's saved setup and the app's facts; defines only.
// //
// The dashboard's loop card opens this in place of the cards. Nothing here // The Loop box on Implement's confirm pane opens this in place of an ordinary
// runs an agent: Start saves the setup through POST /loop-setup, then asks the // Implement launch. Nothing here runs an agent: Start saves the setup through
// desktop app (`loop-start { spec }`), which reads the setup itself and // POST /loop-setup, then asks the desktop app (`loop-start { spec }`), which
// confirms in its own window. The quick check is typed text the page never // reads the setup itself and confirms in its own window. The quick check is
// runs or sends to the app. // typed text the page never runs or sends to the app.
import { el } from "../render.js"; import { el } from "../render.js";
import { hooks, page, redraw, saveNow } from "../state.js"; import { hooks, page, redraw, saveNow } from "../state.js";
@@ -1,7 +1,7 @@
// Plan2Code Web Console - the Review Loop's setup screen, drawn by the page from the console's saved setup and the app's facts; defines only. // Plan2Code Web Console - the Review Loop's setup screen, drawn by the page from the console's saved setup and the app's facts; defines only.
// //
// The dashboard's Review Loop card opens this in place of the cards. Nothing // The Loop box on Review's confirm pane opens this in place of an ordinary
// here runs an agent: Start saves the picks through POST /review-loop-setup, // Review launch. Nothing here runs an agent: Start saves the picks through POST /review-loop-setup,
// then sends them to the desktop app (`review-loop-start { setup }`), which // then sends them to the desktop app (`review-loop-start { setup }`), which
// confirms in its own window. Its field builders come from ../loop-parts.js, shared with // confirms in its own window. Its field builders come from ../loop-parts.js, shared with
// the Implementation Loop's screen. The notification address belongs to the // the Implementation Loop's screen. The notification address belongs to the
+18 -30
View File
@@ -39,13 +39,15 @@
// AGENTS.md check, which is a rule on the scan, not on the spec // AGENTS.md check, which is a rule on the scan, not on the spec
// review the skill the card launches instead when its Review box is // review the skill the card launches instead when its Review box is
// ticked (Implement's card, which draws the box), or absent // ticked (Implement's card, which draws the box), or absent
// loop the app-only entry its Loop box opens the setup screen for, or absent
// card the dashboard card (group, chip, title, blurb, about, and // card the dashboard card (group, chip, title, blurb, about, and
// `spec: true` when it takes the picked spec), or null; an // `spec: true` when it takes the picked spec), or null; an
// optional `help` is Help's line for the card when it differs // optional `help` is Help's line for the card when it differs
// from `blurb`, `appNote` is a line only the desktop app shows (card and Help), and `icon` names the `ci-*` symbol in // from `blurb`, `appNote` is a line only the desktop app shows (card and Help), and `icon` names the `ci-*` symbol in
// index.html's card-icons sheet drawn before the title // index.html's card-icons sheet drawn before the title
// appOnly the entry is a card the desktop app alone offers (the // appOnly the entry is a feature the desktop app alone offers (the
// Implementation Loop and the Review Loop): no workflow, no installed skill, and no // Implementation Loop and the Review Loop, opened from their
// parent card's Loop box): no workflow, no installed skill, and no
// list derived from the workflows (WORKFLOWS, the meter, the // list derived from the workflows (WORKFLOWS, the meter, the
// resume command, Help's card list) holds it. `skill` is an id // resume command, Help's card list) holds it. `skill` is an id
// only; `workflow` is null. Use FLOW_SKILLS for those lists. // only; `workflow` is null. Use FLOW_SKILLS for those lists.
@@ -229,6 +231,7 @@ export const SKILLS = Object.freeze([
weight: null, started: null, ran: null, resume: "overview", weight: null, started: null, ran: null, resume: "overview",
subagents: BUILD_HELPERS, subagents: BUILD_HELPERS,
review: "plan2code-3-implement-review", review: "plan2code-3-implement-review",
loop: "plan2code-loop",
states: ["documented", "building"], marksNext: true, states: ["documented", "building"], marksNext: true,
greyed: BUILD_GREYED, greyed: BUILD_GREYED,
card: { card: {
@@ -256,10 +259,11 @@ export const SKILLS = Object.freeze([
// No card of its own: Implement's card launches it when Review is ticked. // No card of its own: Implement's card launches it when Review is ticked.
card: null, card: null,
}), }),
// The desktop app's Implementation Loop: a card, not a skill. It has no // The desktop app's Implementation Loop: not a skill. It has no SKILL.md
// SKILL.md and no console workflow; it drives Implement (or Implement + // and no console workflow; it drives Implement (or Implement + Review) once
// Review) once per phase, each in a fresh agent. Drawn by the dashboard in // per phase, each in a fresh agent. No card of its own: the entry exists for
// the app only. // its availability facts only (`appOnly`, `states`, `greyed`), and
// Implement's Loop box opens its setup screen.
skill({ skill({
skill: "plan2code-loop", skill: "plan2code-loop",
workflow: null, workflow: null,
@@ -272,21 +276,13 @@ export const SKILLS = Object.freeze([
subagents: null, subagents: null,
states: ["documented", "building"], states: ["documented", "building"],
greyed: BUILD_GREYED, greyed: BUILD_GREYED,
card: { card: null,
group: "pipeline",
chip: "Step 3",
spec: true,
title: "Implementation Loop",
icon: "loop",
blurb: "Build every remaining phase unattended, one fresh agent per phase.",
about:
"Builds every remaining phase of the spec without you at the keyboard. Each phase gets a fresh agent that builds it and reviews it. The app checks the result against the spec, runs your quick check, commits, and moves on. It stops at the first phase that goes wrong and tells you why. Desktop app only.",
},
}), }),
// The desktop app's Review Loop, a second app-only card beside the // The desktop app's Review Loop: review and fix rounds over a finished
// Implementation Loop: it runs review and fix rounds over a finished change, // change, each round checked by a fresh reviewer. No card of its own: the
// each round checked by a fresh reviewer. Any project state lights it; the // entry exists for its availability facts only (`appOnly`, `states`,
// setup screen picks the scope. // `greyed`), and Review's Loop box opens its setup screen, which picks the
// scope.
skill({ skill({
skill: "plan2code-review-loop", skill: "plan2code-review-loop",
workflow: null, workflow: null,
@@ -299,15 +295,7 @@ export const SKILLS = Object.freeze([
subagents: null, subagents: null,
states: "any", states: "any",
greyed: null, greyed: null,
card: { card: null,
group: "pipeline",
chip: "Step 3",
title: "Review Loop",
icon: "loop",
blurb: "Review and fix in rounds on its own, each round checked by a fresh reviewer.",
about:
"Reviews a finished change and fixes what it finds, round after round, without you at the keyboard. The first round reviews everything in scope; each later round reviews only what the last round changed, with a reviewer that never saw the fix being written. It stops on a clean round, at the round cap, or when you say so, then hands back one report and the usual sign-off. Desktop app only.",
},
}), }),
skill({ skill({
skill: "plan2code-4-finalize", skill: "plan2code-4-finalize",
@@ -361,6 +349,7 @@ export const SKILLS = Object.freeze([
builds: false, phased: false, metered: true, templates: false, builds: false, phased: false, metered: true, templates: false,
weight: 2, started: "Review started", ran: "Code review run", resume: null, weight: 2, started: "Review started", ran: "Code review run", resume: null,
subagents: "Run the review's analysis in one fresh helper briefed only with the spec and the change set (references/reviewer-brief.md); verify every finding yourself before you report. At standard strength or above (strongest for branch or full scope), high effort.", subagents: "Run the review's analysis in one fresh helper briefed only with the spec and the change set (references/reviewer-brief.md); verify every finding yourself before you report. At standard strength or above (strongest for branch or full scope), high effort.",
loop: "plan2code-review-loop",
states: "any", states: "any",
greyed: null, greyed: null,
card: { card: {
@@ -369,7 +358,6 @@ export const SKILLS = Object.freeze([
title: "Review", title: "Review",
icon: "review", icon: "review",
blurb: "A second opinion on the changes. Problems ranked, and you pick what gets fixed.", blurb: "A second opinion on the changes. Problems ranked, and you pick what gets fixed.",
appNote: "In the app, the Review Loop runs review and fix rounds on its own.",
about: about:
"A fresh-eyes pass over what changed: bugs, gaps, and the things the builder was too close to see. Problems come back ranked with a suggestion each, you pick which ones get fixed, and it fixes them.", "A fresh-eyes pass over what changed: bugs, gaps, and the things the builder was too close to see. Problems come back ranked with a suggestion each, you pick which ones get fixed, and it fixes them.",
}, },
+3 -1
View File
@@ -127,7 +127,7 @@ export const page = {
// same for the stop screen's Resume, Fix and Finalize; `loopNotifyTest` is // same for the stop screen's Resume, Fix and Finalize; `loopNotifyTest` is
// Send a test's `{ waiting }`, then `{ ok, sent, error }` once the app answered. // Send a test's `{ waiting }`, then `{ ok, sent, error }` once the app answered.
loop: null, loop: null,
// The setup screen the dashboard's Implementation Loop card opened, or null // The setup screen the Loop box on Implement's confirm pane opened, or null
// (screens/loop-setup.js owns the shape). // (screens/loop-setup.js owns the shape).
loopSetup: null, loopSetup: null,
// The Review Loop's setup screen (screens/review-loop-setup.js owns the shape), what // The Review Loop's setup screen (screens/review-loop-setup.js owns the shape), what
@@ -166,6 +166,8 @@ export const page = {
// The dashboard pick being looked at on the confirm pane, before START is // The dashboard pick being looked at on the confirm pane, before START is
// pressed. Page-local like `view`: a reload simply shows the menu again. // pressed. Page-local like `view`: a reload simply shows the menu again.
dashPick: null, dashPick: null,
// The confirm pane's Loop tick, reset whenever `dashPick` changes.
dashLoop: false,
// The `@name` suggestions popover, owned by whichever box last asked for it. // The `@name` suggestions popover, owned by whichever box last asked for it.
mentionPop: null, mentionPop: null,
// The pose pane on screen when a render began, held back from the clear so // The pose pane on screen when a render began, held back from the clear so
+3 -7
View File
@@ -162,7 +162,7 @@
flex-wrap: wrap; flex-wrap: wrap;
gap: 12px; gap: 12px;
} }
.dash-grid > .dash-card, .dash-grid > .dash-card-wrap { flex: 0 0 calc((100% - (var(--dash-cols) - 1) * 12px) / var(--dash-cols)); min-width: 0; } .dash-grid > .dash-card { flex: 0 0 calc((100% - (var(--dash-cols) - 1) * 12px) / var(--dash-cols)); min-width: 0; }
.dash-grid.is-centered { justify-content: center; } .dash-grid.is-centered { justify-content: center; }
/* A card is a button, so it carries the usual reset; panel look, lifts on hover. */ /* A card is a button, so it carries the usual reset; panel look, lifts on hover. */
@@ -390,6 +390,8 @@
.confirm-rule { width: 100%; height: 0; margin: 6px 0 2px; border: 0; border-top: 1px solid var(--accent); } .confirm-rule { width: 100%; height: 0; margin: 6px 0 2px; border: 0; border-top: 1px solid var(--accent); }
.confirm-review { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; color: var(--ink-2); cursor: pointer; } .confirm-review { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; color: var(--ink-2); cursor: pointer; }
.confirm-review input { accent-color: var(--accent, currentColor); } .confirm-review input { accent-color: var(--accent, currentColor); }
.confirm-loop.is-off { color: var(--ink-3); cursor: default; }
.confirm-loop-off { margin: -6px 0 8px; font-size: var(--fs-xs); color: var(--ink-3); font-style: italic; }
.confirm-cmd { margin: 2px 0 0; } .confirm-cmd { margin: 2px 0 0; }
.confirm-cmd code { .confirm-cmd code {
font-family: var(--mono); font-family: var(--mono);
@@ -551,12 +553,6 @@
/* --------------------------------------------- the Implementation Loop */ /* --------------------------------------------- the Implementation Loop */
/* A span: a link may not sit inside a button. */
/* The loop card's wrapper: the card button, and its link under it. */
.dash-card-wrap { display: flex; flex-direction: column; gap: 6px; }
.dash-card-wrap > .dash-card { flex: 1 1 auto; }
.dash-card-link { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-xs); color: var(--accent); text-decoration: underline; cursor: pointer; }
/* The setup screen: the confirm pane's width, with a left-aligned form. */ /* The setup screen: the confirm pane's width, with a left-aligned form. */
.loop-setup { display: grid; justify-items: stretch; text-align: left; gap: 14px; } .loop-setup { display: grid; justify-items: stretch; text-align: left; gap: 14px; }
.loop-setup .card-kicker, .loop-setup .dash-title, .loop-setup .confirm-spec { justify-self: start; } .loop-setup .card-kicker, .loop-setup .dash-title, .loop-setup .confirm-spec { justify-self: start; }
@@ -20,11 +20,29 @@
/* ------------------------------------------------------------ responsive */ /* ------------------------------------------------------------ responsive */
/* The Notes panel's resize handle exists only while the panel is stacked. */
.aside-grip { display: none; }
@media (max-width: 1080px) { @media (max-width: 1080px) {
.layout, .layout,
.layout:has(> .aside:empty), .layout:has(> .aside:empty),
.layout:has(.git-board) { grid-template-columns: 210px minmax(0, 1fr); } .layout:has(.git-board) { grid-template-columns: 210px minmax(0, 1fr); }
.aside { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); } .aside { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
/* The grab bar rides the panel's top edge (over its padding) while the notes scroll under it. */
.aside-grip {
display: block; position: sticky; top: 0; z-index: 1; flex: none;
height: 14px; margin: -20px -20px 6px; background: var(--panel-2);
cursor: ns-resize; touch-action: none;
}
.aside-grip::before {
content: ""; position: absolute; left: 50%; top: 5px; width: 44px; height: 4px; margin-left: -22px;
border-radius: 2px; background: var(--ink-3); opacity: 0.6;
}
.aside-grip:hover::before, .aside-grip:focus-visible::before { background: var(--accent); opacity: 1; }
.aside-grip:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* A height the person dragged to: the question takes the rest, and it replaces the 30vh cap below 900px. */
html[data-aside-h] .layout { grid-template-rows: minmax(0, 1fr) auto; }
html[data-aside-h] .aside { height: var(--aside-h); min-height: 96px; max-height: calc(100vh - 260px); }
} }
/* V20, from a live look at 700 to 1000px: from 900px down the rail beside the /* V20, from a live look at 700 to 1000px: from 900px down the rail beside the
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "Plan2Code", "name": "Plan2Code",
"version": "3.2.5", "version": "3.2.6",
"description": "A structured workflow of six steps (Pathfinder, Plan, Document, Implement, Review, Finalize) for AI-assisted software development", "description": "A structured workflow of six steps (Pathfinder, Plan, Document, Implement, Review, Finalize) for AI-assisted software development",
"keywords": [ "keywords": [
"ai", "ai",
@@ -17,6 +17,6 @@
"url": "https://github.com/jparkerweb/plan2code" "url": "https://github.com/jparkerweb/plan2code"
}, },
"homepage": "https://github.com/jparkerweb/plan2code", "homepage": "https://github.com/jparkerweb/plan2code",
"releaseDate": "2026-12-03", "releaseDate": "2026-12-04",
"mode": "utility" "mode": "utility"
} }