Compare commits

...
7 Commits
19 changed files with 67 additions and 32 deletions

No files matched your search

+7 -7
View File
@@ -30,7 +30,7 @@ jobs:
outputs:
code: ${{ steps.diff.outputs.code }}
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- id: diff
@@ -60,8 +60,8 @@ jobs:
name: prose checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-node@v4.4.0
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.1.0
with:
node-version: 20
- name: Versions agree
@@ -82,8 +82,8 @@ jobs:
run:
working-directory: plan2code-app
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-node@v4.4.0
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.1.0
with:
node-version: 20
cache: npm
@@ -179,8 +179,8 @@ jobs:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-node@v4.4.0
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.1.0
with:
node-version: 20
- name: Cache the npm downloads
+4 -4
View File
@@ -27,8 +27,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-node@v4.4.0
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.1.0
with:
node-version: 20
- name: Cache the npm downloads
@@ -60,8 +60,8 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-node@v4.4.0
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.1.0
with:
node-version: 20
- name: Cache the npm downloads
+5 -5
View File
@@ -64,10 +64,10 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@v4.4.0
- uses: actions/setup-node@v7.1.0
with:
node-version: 22
cache: npm
@@ -121,7 +121,7 @@ jobs:
VERSION="$(node -p "require('./plan2code-app/src-tauri/tauri.conf.json').version")"
mkdir -p dist
cp "plan2code-app/target/release/${{ matrix.built }}" "dist/plan2code-app-${VERSION}-${{ matrix.label }}${{ matrix.suffix }}"
- uses: actions/upload-artifact@v4.6.2
- uses: actions/upload-artifact@v7.0.2
with:
name: app-${{ matrix.label }}
path: dist/*
@@ -136,8 +136,8 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/download-artifact@v4.3.0
- uses: actions/checkout@v7.0.1
- uses: actions/download-artifact@v8.0.2
with:
path: dist
pattern: app-*
+10
View File
@@ -4,6 +4,16 @@ All notable changes to Plan2Code will be documented in this file.
<!-- Format from 3.1.0 on: `## vX.Y.Z (YYYY-MM-DD)` with the date from version.json; a minor release opens with a three-bullet `### Highlights`; sections run Added, Changed, Fixed; game changes sit under one Activities line; tooling and test lines go under "For contributors". Older headings have no date and are not backfilled. -->
## v3.1.3 (2026-11-18)
### 🔧 Changed
- **For contributors**: the CI workflows use the Node.js 24 versions of the checkout, setup-node and artifact actions, two tests that always failed on macOS are fixed, and four page tests no longer depend on redraw timing.
### 🐛 Fixed
- **web console**: on a finished screen, a press that nothing ever collects now shows its way out (Start a New Session in the app, or the command to run in a browser) together with the "Plan2Code is not running" line; before, it appeared only if something else happened to redraw the card.
## v3.1.2 (2026-11-18)
### 🔧 Changed
+1 -1
View File
@@ -13,7 +13,7 @@
Plan2Code is a spec-driven workflow for AI coding agents. You work through it on a page in your browser: the dashboard lists every step as a card, and each step's questions, progress and sign-offs arrive on that same page while your agent does the work. An approved plan becomes phase documents, and the agent builds to them one phase at a time.
Version 3.1.2 · Apache 2.0 · 📖 [plan2code.jparkerweb.com](https://plan2code.jparkerweb.com)
Version 3.1.3 · Apache 2.0 · 📖 [plan2code.jparkerweb.com](https://plan2code.jparkerweb.com)
---
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "plan2code",
"version": "3.1.2",
"version": "3.1.3",
"private": true,
"license": "Apache-2.0",
"engines": {
+2 -2
View File
@@ -957,7 +957,7 @@ dependencies = [
[[package]]
name = "fake-agent"
version = "3.1.2"
version = "3.1.3"
dependencies = [
"serde_json",
"terminal_size",
@@ -2647,7 +2647,7 @@ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
[[package]]
name = "plan2code-app"
version = "3.1.2"
version = "3.1.3"
dependencies = [
"chrono",
"libc",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "fake-agent"
version = "3.1.2"
version = "3.1.3"
description = "A stand-in agent program for the Plan2Code app's tests"
edition = "2021"
publish = false
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "plan2code-app",
"version": "3.1.2",
"version": "3.1.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "plan2code-app",
"version": "3.1.2",
"version": "3.1.3",
"dependencies": {
"@tauri-apps/api": "2.12.4",
"@xterm/addon-fit": "0.11.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "plan2code-app",
"version": "3.1.2",
"version": "3.1.3",
"private": true,
"description": "Plan2Code desktop app (Tauri). Separate from the repo root so the root and the web console stay dependency-free.",
"scripts": {
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "plan2code-app"
version = "3.1.2"
version = "3.1.3"
description = "Plan2Code desktop app"
edition = "2021"
publish = false
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Plan2Code",
"version": "3.1.2",
"version": "3.1.3",
"identifier": "com.plan2code.desktop",
"build": {
"frontendDist": "../ui",
+2 -1
View File
@@ -374,7 +374,8 @@ test("wait reads --seconds 6s as six seconds, not as nothing", () => {
});
test("only an installed console's open leaves the console-dir pointer; status, help, a bad command and a source checkout's open do not", () => {
const home = fs.mkdtempSync(path.join(os.tmpdir(), "p2c-pointer-"));
// macOS hands out a temp folder under the /var link, and the console writes the real path.
const home = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), "p2c-pointer-")));
const env = { PLAN2CODE_CONSOLE_HOME: home, PLAN2CODE_MODELS_DIR: path.join(home, "plan2code") };
const pointer = path.join(home, "console-dir");
fs.writeFileSync(path.join(home, "update-check.json"), JSON.stringify({ checkedAt: Date.now(), latest: null }));
+2 -2
View File
@@ -96,7 +96,7 @@ test("a press in the empty part of the answer box selects like a textarea: Shift
const range = () => host.evaluate((el) => [el.field.selectionStart, el.field.selectionEnd]);
const box = await host.boundingBox();
const low = { x: box.x + box.width / 2, y: box.y + box.height - 12 };
assert.equal(await host.evaluate((el) => getComputedStyle(el).cursor), "text", "the whole box shows the text pointer");
assert.equal(await styleOf(host, "cursor"), "text", "the whole box shows the text pointer");
await s.page.keyboard.press("Home");
// page.mouse takes no modifiers option: hold Shift on the keyboard.
@@ -621,7 +621,7 @@ test("a note box over the git board grows no box, and the card flows at its own
project: dir,
payload: { reread: true, board: { describe: "export-more" }, items: [confirm] },
});
await git.page.getByRole("tablist").waitFor();
await git.page.locator(".git-step").first().waitFor();
const gitCard = itemCard(git.page, "y1");
await gitCard.waitFor();
const note = gitCard.locator(".md-host").first();
+8
View File
@@ -91,6 +91,14 @@ test("each git tab keeps its own scroll place, across a tab switch and an agent
await tab("Changes").click();
await page.getByRole("tabpanel").getByText(/in the Save step above/).waitFor();
await scrollCard(page.locator("#main"), 120);
// The tabs sit below this short window, so a click on one scrolls the column to it first:
// a scroll like the person's own, which the board notes. Make it now and give the page a
// moment to note it, so the place Changes is left at is known before the switch.
// Done in the page in one step: a redraw may swap the tab for a new one at any moment.
await page.evaluate(() => {
document.getElementById("git-tab-branches").scrollIntoView({ block: "center" });
return new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)));
});
const changesAt = await column();
assert.ok(changesAt > 0, "the board's column scrolls");
// Another tab opens at its own place, not where Changes was left.
+1 -1
View File
@@ -544,7 +544,7 @@ test("each tab keeps its own text and pictures, and switching never saves into t
const notes = idOf(s, "Notes");
const ideas = idOf(s, "Ideas");
// The new tab opens with its heading and the editor focused: clear it to start from empty.
await s.page.keyboard.press("Control+a");
await s.page.keyboard.press("ControlOrMeta+a");
await s.page.keyboard.press("Delete");
await until(() => readNotepad(s.project, notes).text === "notes text" && readNotepad(s.project, ideas).text === "", 4000);
await typeInto(s, "ideas text");
+8 -1
View File
@@ -11,7 +11,7 @@ import test from "node:test";
import assert from "node:assert/strict";
import fs from "node:fs";
import path from "node:path";
import { pageSuite, openSession, itemCard, drawn, textOf, tempProject , fillBox, boxValue, sendAsk, styleOf } from "./page-test-helpers.mjs";
import { pageSuite, openSession, itemCard, drawn, textOf, tempProject , fillBox, boxValue, sendAsk, styleOf, quiet } from "./page-test-helpers.mjs";
import { cli, until, HOME } from "./web-console-test-helpers.mjs";
import { STOP_HANDOFF_REPLY, HOME_REPLY } from "../src/web-console/public/answers.js";
import { CHAT_OFFLINE_TEXT } from "../src/web-console/public/chat.js";
@@ -818,6 +818,10 @@ test("the quiet, not running and not connected lines offer What to check, openin
// Answered and sent, never collected, and nobody listening: the saved line.
await s.page.clock.setSystemTime(Date.now());
s.post({ agent: { status: "waiting" } });
// The post redraws the question: an answer typed before that redraw lands is lost with the
// old box, and Send then stays off. Wait for the page to show the post and go quiet.
await lineSays(s, /^Your turn: 1 question waiting\./);
await quiet(s.page);
await fillBox(itemCard(s.page, "q1").locator(".md-host, input[type=text]").first(), "audit-export");
await s.page.click("#btn-send");
await lineSays(s, /^Sent\. Waiting for Plan2Code\./);
@@ -1156,6 +1160,9 @@ async function strandedFinish(t, opts) {
const main = s.page.locator("#main");
await main.getByRole("button", { name: "Review it now" }).click();
await main.getByRole("button", { name: "Review requested…" }).waitFor();
// Let the page hear the press is saved while it is still fresh, as it does for a person:
// the way out then has to appear by time alone, with no frame to draw it.
await quiet(s.page, { quietMs: 1000 });
await s.page.clock.fastForward(200_000);
await s.page.waitForFunction(() => document.body.innerText.includes("Plan2Code is not running"));
return { s, main };
+9
View File
@@ -2616,6 +2616,7 @@ export function wireChrome() {
// render and nothing was triggering one. Watch the flip and draw the rest.
let wasAdrift = false;
let wasPastGrace = false;
let wasPressStranded = false;
export function startClock() {
setInterval(checkIn, 5000);
@@ -2637,6 +2638,14 @@ export function startClock() {
wasPastGrace = past;
if (page.S) renderFooter();
}
// A finished screen's press goes stranded by time alone, with no frame to say so: draw
// the card again so its way out (Start a New Session, or the command) appears with the
// status line that names it.
const strandedNow = pressStranded();
if (strandedNow !== wasPressStranded) {
wasPressStranded = strandedNow;
if (page.S) render();
}
// The agent coming or going changes whether the chat can be used, with no
// frame to say so: redraw the Ask pane when that flips. Even mid-typing:
// the draft is saved on every keystroke and withFocus() keeps the caret,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "Plan2Code",
"version": "3.1.2",
"version": "3.1.3",
"description": "A structured workflow of six steps (Pathfinder, Plan, Document, Implement, Review, Finalize) for AI-assisted software development",
"keywords": [
"ai",