
> @wassname2/pi-goals@0.2.2 test
> vitest run --reporter=verbose


 RUN  v4.1.9 /home/code/.pi/agent/git/github.com/wassname/pi-goals

 ✓ test/worker-view.test.ts > keeps human direction and source location while sending only new messages 6ms
 ✓ test/worker-view.test.ts > restarts after compaction and does not report historical tool calls as active 0ms
 ✓ test/worker-view.test.ts > bounds serialized Unicode and quoted logs while marking omissions 2ms
 ✓ test/background.test.ts > reports tracked running work, rather than equating idle agent with finished jobs 2ms
 ✓ test/background.test.ts > distinguishes missing providers from an unavailable installed tracker 5ms
 ✓ test/package-agent.test.ts > package manifest > includes the extension without registering a packaged subagent 2ms
 ✓ test/intercom.test.ts > pi-intercom transport > receives exact advice once, acknowledges it and rejects unrelated peers 5ms
 ✓ test/intercom.test.ts > pi-intercom transport > restores an unacknowledged steer on reconnect and stops replay after acknowledgment 3ms
 ✓ test/intercom.test.ts > pi-intercom transport > advances the incremental overview only after acknowledgment 1ms
 ✓ test/intercom.test.ts > pi-intercom transport > cancels a readiness wait on shutdown 1ms
 ✓ test/herdr.test.ts > supervisor pane command > forks the planning session with pi-goals owning its Intercom dependency 2ms
 ✓ test/herdr.test.ts > supervisor pane command > accepts Herdr's text version output and stale pane cleanup 26ms
 ✓ test/prompts.test.ts > planning prompt > requires fact finding or a focused question before a goal 2ms
 ✓ test/prompts.test.ts > planning prompt > restores the same rule after compaction 1ms
 ✓ test/prompts.test.ts > planning prompt > anchors work and sign-off to the user-visible result 0ms
 ✓ test/append-log.test.ts > appendLog (the extension's only plan-file write) > creates ## Log at EOF when absent 1ms
 ✓ test/append-log.test.ts > appendLog (the extension's only plan-file write) > appends after the last existing log line, before any following header 0ms
 ✓ test/fold.test.ts > foldPlan (current goals are above ## Log; durable memory is below it) > keeps the title, user voice and goals 1ms
 ✓ test/fold.test.ts > foldPlan (current goals are above ## Log; durable memory is below it) > drops the log, the learnings and the unlimited appendix 1ms
 ✓ test/fold.test.ts > foldPlan (current goals are above ## Log; durable memory is below it) > returns the whole plan when there is no ## Log yet (a fresh draft) 0ms
 ✓ test/fold.test.ts > openSubtasks (the widget shows the next action, so the plan IS the task list) > lists the active goal's open and in-progress subtasks, stopping at the next goal 1ms
 ✓ test/fold.test.ts > openSubtasks (the widget shows the next action, so the plan IS the task list) > does not leak subtasks from the goal below 1ms
 ✓ test/tick-goal.test.ts > tickGoal (sign-off ticks the goal; agent only ticks on wording drift) > ticks the exact-matching goal line, case-insensitive, leaving subtasks alone 2ms
 ✓ test/tick-goal.test.ts > tickGoal (sign-off ticks the goal; agent only ticks on wording drift) > returns null on wording drift (fuzzy matching is the judge's job, not TypeScript's) 1ms
 ✓ test/tick-goal.test.ts > tickGoal (sign-off ticks the goal; agent only ticks on wording drift) > returns null when the subject matches more than one goal line 0ms
stdout | test/intercom-broker.test.ts > exchanges readiness, views and exact advice over a real isolated pi-intercom broker
Intercom broker: readiness confirmed; exact worker view and supervisor advice received.

 ✓ test/intercom-broker.test.ts > exchanges readiness, views and exact advice over a real isolated pi-intercom broker 226ms
 ✓ test/goals-flow.test.ts > /goals flow > reports actual idle state, invalidates stopped views on start, and stops completed plans 45ms
 ✓ test/goals-flow.test.ts > /goals flow > preserves drafts, records the interview, and keeps planning read-only 17ms
 ✓ test/goals-flow.test.ts > /goals flow > forks a visible supervisor on Ready and keeps the main session as worker 20ms
 ✓ test/goals-flow.test.ts > /goals flow > starts work only after the supervisor launcher resolves 18ms
 ✓ test/goals-flow.test.ts > /goals flow > delivers an Intercom instruction to the worker 22ms
 ✓ test/goals-flow.test.ts > /goals flow > closes the supervisor on clear but keeps the plan file 20ms
 ✓ test/goals-flow.test.ts > /goals flow > accepts only an approval for the exact clean commit and goal block 44ms
 ✓ test/goals-flow.test.ts > process role > keeps subagent children and visible supervisors out of the worker extension 0ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > restores monitoring and read-only tools without replaying persisted views 5ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > renders all advice in real Pi tool rows, including collapsed and restored rows 20ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > asks for judgment and useful recaps without inventing instructions 1ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > writes readiness only after removing writing tools 1ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > compacts a large planning fork before writing readiness 1ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > does not become ready when initial compaction fails 1ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > writes a durable worker instruction 1ms
 ✓ test/supervisor-session.test.ts > visible supervisor session > records approval only from a stopped view with evidence and no active work 49ms
 ✓ test/rpc-review.test.ts > RPC review flow > opens Refine's editor before it starts the revision turn 1197ms

 Test Files  13 passed (13)
      Tests  43 passed (43)
   Start at  16:41:18
   Duration  1.43s (transform 927ms, setup 0ms, import 3.00s, tests 1.77s, environment 1ms)


> @wassname2/pi-goals@0.2.2 typecheck
> tsc --noEmit


> @wassname2/pi-goals@0.2.2 lint
> biome check src/ test/

Checked 24 files in 19ms. No fixes applied.
