Repository navigation
v2.10.0
What's New 🎉
v2.10.0
✨ Added
-
web console: a private Notepad in the top bar, on every screen. It opens a modal with a Markdown editor that styles as you type (OverType 2.6.1, vendored, MIT) and saves as you go, with pictures: paste, drag and drop or Add image, each shrunk to JPEG in the browser, shown as a thumbnail strip with an X that asks before deleting, and a full-screen preview. There is one notepad per project folder, kept in
~/.plan2code/notepads/(notepads.mjs) and never shown to the agent. User Preferences → Cleanup offers a notepad for removal only when its newest file is 30 days old or more, as one item that removes the whole folder; the automatic sweep at open never touches it. -
web console: a finished screen whose next step is a Plan2Code skill has a Continue here button beside the Next step block. One press starts that skill in the same session, as a dashboard card would, on a clean page. It is hidden when the session meter is red (a fresh conversation is the better choice), on a pause and for a git command. The page does it alone: the agent only handles the
__launchthe dashboard already sends, and postsfinish: nullfirst when the next step is the same skill (Implement to Implement). -
web console: a finished Quick Task or Finalize can offer Update CHANGELOG first beside Commit it now (
finish.changelog: true, refused on any other workflow). It hops into Changelog in the same session, and Changelog's yes to Commit this now? carries on to Git. The press arrives as__changelog. -
web console: the Ask contract (
console-chat.md, Prompts to carry away) tells the agent to answer a new-task question, or a request for a prompt, with the explanation and one self-contained prompt in a fenced block. The page already gave every fenced block a Copy button, so there is no page change.
🔧 Changed
- web console: the dashboard has one Implement card instead of Implement and Implement + Review. Its confirm pane has a Review checkbox, ticked by default, that launches Implement + Review when ticked and plain Implement when not; the command shown follows the box.
- web console:
openandhandoff newrefuse a--workflowthe console does not know (exit 2, naming the valid ones), instead of opening a session no skill answers.openwith no--workflowstill opens Pathfinder. - web console: Help's list of dashboard cards is built from the cards themselves, so it can never name a card the dashboard lacks: it follows the dashboard's order (Handoff last under Useful any time), and X-ray's line is its card's.
- web console: a hop into Git from any skill now starts the page clean on both sides. The server always cleared it; the page kept the last skill's tab and staged answers.
- contributors: the per-skill tables that were still kept by hand now come from
public/skills.js: the meter's weights and labels (WEIGHTS,LAUNCH_LABELS,RUN_LABELSinmeter.js),resumeCommand()'s switch inanswers.js, Help's card list inindex.html(now filled bybuildHelp()inscreens/help-dialog.js) andcmd-help.mjs's workflow list. Each entry gainsweight,started,ran,resumeand an optionalcard.help, andskills.jsexportsWORKFLOWSandisWorkflow(). A test fails, naming the file and the name, whenconsole.md,src/plan2code.mdor the CLI's help drift from the list. - contributors: two new shared modules.
src/web-console/spec-files.mjsholds the task markers and the task-line, checkbox and Status-line patterns withstatusOf()andcountTasks(), read byscan.mjsand thespecs.mjsskill script, which no longer keep copies of their own;patches.mjsnow takesTASK_LINE_REfrom it instead of fromscan.mjs.src/web-console/public/hops.jsholdsstartsClean(), the rule for which hops start the page clean, called bycmd-open.mjs,server.mjsandscreens/core.js. - contributors: for the upstream port, these moved: the meter tables,
resumeCommand()'s switch, Help's card markup andcmd-help's workflow list intoskills.jsfields; the markers and patterns inscan.mjsandspecs.mjsintospec-files.mjs(andTASK_LINE_REtightened on the way: exactly one space before the box and a case-sensitiveTask, matchingTASK_ID_RE; keep that when porting); the hop test incmd-open.mjs,server.mjsandscreens/core.jsintohops.js. Port upstream's changes to those tables intoskills.jsand the two modules, not back into the old files.
🐛 Fixed
- web console: Workspace's Browse… folder picker (and the launcher's) no longer opens behind the browser on Windows. Windows refused the picker's
SetForegroundWindow, because the picker is spawned by the detached console server and is not the process that last had input; the existing topmost flag is ignored by that dialog. It now waits until the dialog is visible, taps Alt (which lifts the foreground lock for the next call), and takes the foreground. - dashboard: an assumed task (
[?]) counts as done and is named in the spec's line ("3 of 4 tasks done, 1 assumed"). It used to be left out of the count altogether, so that phase read "2 of 3 tasks done", and a spec whose tasks were all assumed read as not started. Numbered task lines (1. [x] **Task ...) count too, on the dashboard and in thespecs.mjsskill script.