@hearsay-tools/squawk 0.18.0-dev.6130 → 0.18.0-dev.6135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/automations/prompts.js +3 -2
  2. package/dist/automations/prompts.js.map +1 -1
  3. package/dist/automations/schedule-runner.js +1 -1
  4. package/dist/automations/schedule-runner.js.map +1 -1
  5. package/dist/automations/task-template.js +1 -1
  6. package/dist/ci-wait/controller.d.ts +37 -37
  7. package/dist/ci-wait/errors.d.ts +1 -1
  8. package/dist/ci-wait/errors.js +16 -15
  9. package/dist/ci-wait/errors.js.map +1 -1
  10. package/dist/ci-wait/tool-catalog.js +9 -8
  11. package/dist/ci-wait/tool-catalog.js.map +1 -1
  12. package/dist/ci-wait/tools.d.ts +2 -2
  13. package/dist/ci-wait/tools.js +7 -6
  14. package/dist/ci-wait/tools.js.map +1 -1
  15. package/dist/contract/index.js +1 -1
  16. package/dist/contract/scheduled-tasks.d.ts +3 -3
  17. package/dist/core/agent-env.js +3 -3
  18. package/dist/core/agent-env.js.map +1 -1
  19. package/dist/core/agent-profiles.d.ts +2 -2
  20. package/dist/core/agent-profiles.js +2 -2
  21. package/dist/core/agent-runner.d.ts +2 -2
  22. package/dist/core/agent-runner.js +1 -1
  23. package/dist/core/claude-cli-runner.d.ts +1 -1
  24. package/dist/core/claude-cli-runner.js +5 -4
  25. package/dist/core/claude-cli-runner.js.map +1 -1
  26. package/dist/core/claude-model-catalog.js +3 -3
  27. package/dist/core/claude-model-catalog.js.map +1 -1
  28. package/dist/core/codex-app-server-runner.d.ts +2 -2
  29. package/dist/core/codex-app-server-runner.js +3 -3
  30. package/dist/core/codex-app-server-runner.js.map +1 -1
  31. package/dist/core/codex-approvals.d.ts +1 -1
  32. package/dist/core/codex-approvals.js +2 -2
  33. package/dist/core/codex-approvals.js.map +1 -1
  34. package/dist/core/codex-native-frames.d.ts +2 -2
  35. package/dist/core/codex-native-frames.js +5 -4
  36. package/dist/core/codex-native-frames.js.map +1 -1
  37. package/dist/core/codex-turn-outcome.js +1 -1
  38. package/dist/core/codex-turn-outcome.js.map +1 -1
  39. package/dist/core/codex-ui-mapper.js +1 -1
  40. package/dist/core/codex-ui-mapper.js.map +1 -1
  41. package/dist/core/cursor-cli-flags.d.ts +1 -1
  42. package/dist/core/cursor-cli-flags.js +2 -2
  43. package/dist/core/cursor-cli-flags.js.map +1 -1
  44. package/dist/core/cursor-model-catalog.d.ts +1 -1
  45. package/dist/core/cursor-model-catalog.js +1 -1
  46. package/dist/core/cursor-print-capabilities.js +1 -1
  47. package/dist/core/cursor-print-capabilities.js.map +1 -1
  48. package/dist/core/cursor-print-process.js +1 -1
  49. package/dist/core/cursor-print-process.js.map +1 -1
  50. package/dist/core/cursor-print-runner.js +2 -1
  51. package/dist/core/cursor-print-runner.js.map +1 -1
  52. package/dist/core/cursor-runner.js +3 -2
  53. package/dist/core/cursor-runner.js.map +1 -1
  54. package/dist/core/disclaim-spawn.js +2 -2
  55. package/dist/core/model-identity.d.ts +1 -1
  56. package/dist/core/model-presets.js +2 -2
  57. package/dist/core/omp-model-catalog.d.ts +1 -1
  58. package/dist/core/omp-model-catalog.js +1 -1
  59. package/dist/core/omp-runner.d.ts +3 -3
  60. package/dist/core/omp-runner.js +6 -5
  61. package/dist/core/omp-runner.js.map +1 -1
  62. package/dist/core/opencode-permissions.d.ts +3 -3
  63. package/dist/core/opencode-permissions.js +3 -3
  64. package/dist/core/opencode-permissions.js.map +1 -1
  65. package/dist/core/opencode-runtime-config.d.ts +1 -1
  66. package/dist/core/opencode-runtime-config.js +1 -1
  67. package/dist/core/opencode-server-runner.d.ts +1 -1
  68. package/dist/core/opencode-server-runner.js +6 -6
  69. package/dist/core/opencode-server-runner.js.map +1 -1
  70. package/dist/core/pi-rpc-turn.d.ts +1 -1
  71. package/dist/core/pi-rpc-turn.js +4 -3
  72. package/dist/core/pi-rpc-turn.js.map +1 -1
  73. package/dist/core/pi-rpc-wire.d.ts +1 -1
  74. package/dist/core/pi-rpc-wire.js +1 -1
  75. package/dist/core/pi-rpc-wire.js.map +1 -1
  76. package/dist/core/pi-runner.d.ts +1 -1
  77. package/dist/core/pi-runner.js +6 -5
  78. package/dist/core/pi-runner.js.map +1 -1
  79. package/dist/core/provider-auth.d.ts +1 -1
  80. package/dist/core/provider-auth.js +1 -1
  81. package/dist/core/runner-facts.d.ts +4 -4
  82. package/dist/core/session-process.d.ts +1 -1
  83. package/dist/core/session-process.js +3 -3
  84. package/dist/core/session-process.js.map +1 -1
  85. package/dist/core/usage-limit.d.ts +1 -1
  86. package/dist/core/usage-limit.js +1 -1
  87. package/dist/delegation/conversations.js +1 -1
  88. package/dist/delegation/conversations.js.map +1 -1
  89. package/dist/delegation/park-notice.d.ts +2 -2
  90. package/dist/delegation/park-notice.js +4 -3
  91. package/dist/delegation/park-notice.js.map +1 -1
  92. package/dist/delegation/policy.d.ts +1 -1
  93. package/dist/delegation/policy.js +2 -1
  94. package/dist/delegation/policy.js.map +1 -1
  95. package/dist/delegation/process-liveness.d.ts +1 -1
  96. package/dist/delegation/process-liveness.js +1 -1
  97. package/dist/delegation/provision.js +13 -12
  98. package/dist/delegation/provision.js.map +1 -1
  99. package/dist/delegation/retry-backoff.d.ts +1 -1
  100. package/dist/delegation/routes.d.ts +62 -62
  101. package/dist/delegation/service.d.ts +1 -1
  102. package/dist/delegation/service.js +6 -5
  103. package/dist/delegation/service.js.map +1 -1
  104. package/dist/delegation/workspace.js +1 -1
  105. package/dist/delegation/workspace.js.map +1 -1
  106. package/dist/handoff.d.ts +4 -4
  107. package/dist/handoff.js +17 -16
  108. package/dist/handoff.js.map +1 -1
  109. package/dist/jobs/cli.js +2 -1
  110. package/dist/jobs/cli.js.map +1 -1
  111. package/dist/jobs/command.d.ts +2 -2
  112. package/dist/jobs/command.js +2 -2
  113. package/dist/jobs/job.js +2 -2
  114. package/dist/jobs/job.js.map +1 -1
  115. package/dist/preview/agent-marker.js +1 -1
  116. package/dist/preview/cdp-proxy.d.ts +2 -2
  117. package/dist/preview/cdp-proxy.js +1 -1
  118. package/dist/preview/cdp-proxy.js.map +1 -1
  119. package/dist/preview/chromium.d.ts +5 -5
  120. package/dist/preview/chromium.js +6 -6
  121. package/dist/preview/chromium.js.map +1 -1
  122. package/dist/preview/dev-server.d.ts +2 -2
  123. package/dist/preview/dev-server.js +5 -5
  124. package/dist/preview/dev-server.js.map +1 -1
  125. package/dist/preview/host.d.ts +8 -8
  126. package/dist/preview/host.js +10 -10
  127. package/dist/preview/host.js.map +1 -1
  128. package/dist/preview/registration.js +5 -4
  129. package/dist/preview/registration.js.map +1 -1
  130. package/dist/preview/run-tools.js +1 -1
  131. package/dist/preview/run-tools.js.map +1 -1
  132. package/dist/process-wait/exit-file.d.ts +2 -2
  133. package/dist/process-wait/exit-file.js +2 -1
  134. package/dist/process-wait/exit-file.js.map +1 -1
  135. package/dist/process-wait/supervisor.d.ts +1 -1
  136. package/dist/process-wait/supervisor.js +1 -1
  137. package/dist/runs/agent-tmpdir.js +1 -1
  138. package/dist/runs/conversation-identity.js +2 -2
  139. package/dist/runs/conversation-identity.js.map +1 -1
  140. package/dist/runs/legacy-index.d.ts +2 -2
  141. package/dist/runs/legacy-index.js +3 -3
  142. package/dist/runs/legacy-index.js.map +1 -1
  143. package/dist/runs/legacy-run-rows.d.ts +1 -1
  144. package/dist/runs/legacy-run-rows.js +1 -1
  145. package/dist/runs/legacy-waits.js +2 -2
  146. package/dist/runs/legacy-waits.js.map +1 -1
  147. package/dist/runs/loaded-run-exits.js +1 -1
  148. package/dist/runs/loaded-run-exits.js.map +1 -1
  149. package/dist/runs/loaded-run-healing.js +1 -1
  150. package/dist/runs/loaded-run-healing.js.map +1 -1
  151. package/dist/runs/record-write-rules.d.ts +1 -1
  152. package/dist/runs/record-write-rules.js +1 -1
  153. package/dist/runs/retention.js +1 -1
  154. package/dist/runs/retention.js.map +1 -1
  155. package/dist/runs/run-database-version.d.ts +1 -1
  156. package/dist/runs/run-database-version.js +1 -1
  157. package/dist/runs/run-database.d.ts +1 -1
  158. package/dist/runs/run-database.js +2 -2
  159. package/dist/runs/run-database.js.map +1 -1
  160. package/dist/runs/run-index.js +1 -1
  161. package/dist/runs/run-index.js.map +1 -1
  162. package/dist/runs/run-references.d.ts +1 -1
  163. package/dist/runs/run-references.js +1 -1
  164. package/dist/runs/run-row.js +1 -1
  165. package/dist/runs/run-row.js.map +1 -1
  166. package/dist/runs/store.d.ts +4 -4
  167. package/dist/runs/store.js +7 -7
  168. package/dist/runs/store.js.map +1 -1
  169. package/dist/runs/transcript-facts-load.js +1 -1
  170. package/dist/runs/transcript-facts-load.js.map +1 -1
  171. package/dist/workflows/active-run.d.ts +1 -1
  172. package/dist/workflows/active-run.js +1 -1
  173. package/dist/workflows/continuation-admission.d.ts +1 -1
  174. package/dist/workflows/continuation-admission.js +1 -1
  175. package/dist/workflows/question-routing.d.ts +1 -1
  176. package/dist/workflows/run/auto-resume.d.ts +1 -1
  177. package/dist/workflows/run/auto-resume.js +5 -4
  178. package/dist/workflows/run/auto-resume.js.map +1 -1
  179. package/dist/workflows/run/constants.d.ts +2 -2
  180. package/dist/workflows/run/constants.js +3 -2
  181. package/dist/workflows/run/constants.js.map +1 -1
  182. package/dist/workflows/run/human-waits.d.ts +4 -4
  183. package/dist/workflows/run/human-waits.js +4 -4
  184. package/dist/workflows/run/input-delivery.d.ts +2 -2
  185. package/dist/workflows/run/input-delivery.js +6 -6
  186. package/dist/workflows/run/input-delivery.js.map +1 -1
  187. package/dist/workflows/run/launch-read-resolver.d.ts +1 -1
  188. package/dist/workflows/run/launch-read-resolver.js +1 -1
  189. package/dist/workflows/run/maintenance-claims.d.ts +1 -1
  190. package/dist/workflows/run/maintenance-claims.js +1 -1
  191. package/dist/workflows/run/prompts.js +2 -1
  192. package/dist/workflows/run/prompts.js.map +1 -1
  193. package/dist/workflows/run/run-recovery.d.ts +1 -1
  194. package/dist/workflows/run/run-recovery.js +7 -6
  195. package/dist/workflows/run/run-recovery.js.map +1 -1
  196. package/dist/workflows/run/run-settlement.d.ts +1 -1
  197. package/dist/workflows/run/run-settlement.js +2 -2
  198. package/dist/workflows/run/run-settlement.js.map +1 -1
  199. package/dist/workflows/run/run-skills.d.ts +1 -1
  200. package/dist/workflows/run/run-skills.js +1 -1
  201. package/dist/workflows/run/session-events.js +2 -2
  202. package/dist/workflows/run/session-events.js.map +1 -1
  203. package/dist/workflows/run/subagent-waits.d.ts +3 -3
  204. package/dist/workflows/run/subagent-waits.js +2 -2
  205. package/dist/workflows/run/turn-nudges.d.ts +4 -4
  206. package/dist/workflows/run/turn-nudges.js +4 -4
  207. package/dist/workflows/run/turn-nudges.js.map +1 -1
  208. package/dist/workflows/run/turn-settler.d.ts +5 -5
  209. package/dist/workflows/run/turn-settler.js +7 -7
  210. package/dist/workflows/run/turn-settler.js.map +1 -1
  211. package/dist/workflows/run/wait-engine.d.ts +2 -2
  212. package/dist/workflows/run/wait-engine.js +3 -3
  213. package/dist/workflows/run/wait-engine.js.map +1 -1
  214. package/dist/workflows/run/wait-kinds.d.ts +2 -2
  215. package/dist/workflows/run/wait-kinds.js +16 -15
  216. package/dist/workflows/run/wait-kinds.js.map +1 -1
  217. package/dist/workflows/run/wait-registry.d.ts +2 -2
  218. package/dist/workflows/run/wait-registry.js +3 -3
  219. package/dist/workflows/run/wait-registry.js.map +1 -1
  220. package/dist/workflows/run/wake-admission.d.ts +1 -1
  221. package/dist/workflows/run/wake-admission.js +1 -1
  222. package/dist/workflows/run/worker-orphans.d.ts +2 -2
  223. package/dist/workflows/run/worker-orphans.js +5 -4
  224. package/dist/workflows/run/worker-orphans.js.map +1 -1
  225. package/dist/workflows/run/worker-questions.d.ts +17 -17
  226. package/dist/workflows/run/worker-questions.js +18 -18
  227. package/dist/workflows/run/worker-questions.js.map +1 -1
  228. package/dist/workflows/run/worktree-autosave.d.ts +1 -1
  229. package/dist/workflows/run/worktree-autosave.js +4 -3
  230. package/dist/workflows/run/worktree-autosave.js.map +1 -1
  231. package/dist/workflows/run-scheduling.d.ts +1 -1
  232. package/dist/workflows/run-scheduling.js +1 -1
  233. package/dist/workflows/run-states.js +18 -17
  234. package/dist/workflows/run-states.js.map +1 -1
  235. package/dist/workflows/run.d.ts +2 -2
  236. package/dist/workflows/run.js +3 -3
  237. package/dist/workflows/run.js.map +1 -1
  238. package/dist/workflows/turn-end.d.ts +6 -6
  239. package/dist/workflows/turn-end.js +3 -13
  240. package/dist/workflows/turn-end.js.map +1 -1
  241. package/dist/workflows/types.js +2 -1
  242. package/dist/workflows/types.js.map +1 -1
  243. package/dist/workflows/waits.d.ts +1 -1
  244. package/dist/workflows/waits.js +1 -1
  245. package/dist/workflows/waits.js.map +1 -1
  246. package/dist/worktree-setup.js +4 -3
  247. package/dist/worktree-setup.js.map +1 -1
  248. package/package.json +4 -4
  249. package/scripts/benchmark-stuck-destroys.ts +1 -1
  250. package/scripts/benchmark-workspace-events.ts +2 -2
  251. package/scripts/measure-transcript-facts-health.mjs +1 -1
  252. package/scripts/mock-autonomous.mjs +1 -1
  253. package/scripts/mock-ci-tool.mjs +5 -5
  254. package/scripts/mock-claude.mjs +3 -3
  255. package/scripts/mock-codex-app-server.mjs +3 -3
  256. package/scripts/mock-cursor-print.mjs +1 -1
  257. package/scripts/mock-nudge.mjs +2 -2
  258. package/scripts/mock-omp-rpc.mjs +2 -2
  259. package/scripts/mock-opencode-serve.mjs +5 -5
  260. package/scripts/mock-pi-rpc.mjs +1 -1
  261. package/scripts/mock-provider-failures.mjs +1 -1
  262. package/scripts/mock-scenario.mjs +1 -1
  263. package/scripts/mock-silent-tail.mjs +1 -1
  264. package/scripts/omp-ci-wait.mjs +3 -3
  265. package/scripts/opencode-task-scope.mjs +4 -4
  266. package/scripts/pi-ci-wait.mjs +1 -1
  267. package/scripts/pi-default-tools.mjs +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-dev.6130",
3
+ "version": "0.18.0-dev.6135",
4
4
  "description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -60,8 +60,8 @@
60
60
  "devDependencies": {
61
61
  "@babel/parser": "^8.0.8",
62
62
  "@babel/types": "^8.0.8",
63
- "@open-mercato/cezar-api-client": "0.18.0-dev.6130",
64
- "@open-mercato/cezar-contract": "0.18.0-dev.6130",
63
+ "@open-mercato/cezar-api-client": "0.18.0-dev.6135",
64
+ "@open-mercato/cezar-contract": "0.18.0-dev.6135",
65
65
  "@types/node": "^24.19.1",
66
66
  "@types/ws": "^8.18.1",
67
67
  "esbuild": "^0.28.1",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "483b16530464f5e032b3a2cb76346561f89cb712"
81
+ "gitHead": "7708c4686bb45894634249e1108f69f2f4f45c6f"
82
82
  }
@@ -2,7 +2,7 @@ import { benchmarkHome, prepareBenchmarkEnv } from './benchmark-home.ts';
2
2
  import { setRunStatus } from '../src/runs/run-store.testkit.ts';
3
3
  /**
4
4
  * Stuck-destroy benchmark (hearsay-tools/cezarion#879): what permanently stuck worker destroys
5
- * cost an otherwise idle cezar. Run it unchanged before and after a change to the cleanup loops.
5
+ * cost an otherwise idle Squawk. Run it unchanged before and after a change to the cleanup loops.
6
6
  *
7
7
  * npm run bench:stuck-destroys -w @wjarka/cezarion # 20 workers, 10 minutes
8
8
  * node --import tsx packages/cezar/scripts/benchmark-stuck-destroys.ts --workers 0 --minutes 10
@@ -11,7 +11,7 @@ import { Home } from '../src/home/home.ts';
11
11
  * --connections (1 stream per phase) --parent-kb (256, padding in the parent's task) --child-kb (16)
12
12
  * --warmup (40 updates per unreported warmup phase) --out (write the JSON there as well as to stdout).
13
13
  *
14
- * The script runs unchanged on a cezar without the summary mode: that server ignores `?runs=summary`
14
+ * The script runs unchanged on a Squawk without the summary mode: that server ignores `?runs=summary`
15
15
  * and sends full records, so its "summary" phases measure the full stream again.
16
16
  *
17
17
  * Method:
@@ -109,7 +109,7 @@ async function benchmark(argv: string[], cleanups: Array<() => unknown>): Promis
109
109
  const { WorkspaceEventBus, createApp } = await import('../src/server/server.ts');
110
110
  const { apiRequest } = await import('../src/server/loopback-request.testkit.ts');
111
111
  const { toRunSummary } = await import('@open-mercato/cezar-contract/runs');
112
- // Present only on a cezar with the summary mode; a full stream never needs it.
112
+ // Present only on a Squawk with the summary mode; a full stream never needs it.
113
113
  let summarySchema: { safeParse(value: unknown): { success: boolean } } | undefined;
114
114
  try {
115
115
  summarySchema = (await import('@open-mercato/cezar-contract/workspace-events') as { workspaceRunSummaryEventSchema?: typeof summarySchema }).workspaceRunSummaryEventSchema;
@@ -35,7 +35,7 @@ try {
35
35
  const { Home } = await import(new URL('home/home.js', runtime.url));
36
36
  Home.sandbox(home.rootOverride ?? home.root, { layout: home.layout });
37
37
  // Keep git discovery away from the user's parent repository, even if TMPDIR
38
- // was set inside a cezar worktree. This repo contains only the experiment.
38
+ // was set inside a Squawk worktree. This repo contains only the experiment.
39
39
  execFileSync('git', ['init', '--initial-branch=main'], { cwd: root, stdio: 'ignore' });
40
40
  const fixtures = await seedColdHistories(dataDir, runtime);
41
41
  global.gc?.();
@@ -1,5 +1,5 @@
1
1
  // Shared responses only; each caller encodes its own native runner wire (#426).
2
- // `lifecycle([name, args])` makes the caller's cezar tool call and returns a note for the text.
2
+ // `lifecycle([name, args])` makes the caller's Squawk tool call and returns a note for the text.
3
3
  import { DONE, ask } from './mock-ci-tool.mjs';
4
4
  let cap = false;
5
5
  export async function autonomousReply(prompt, lifecycle) {
@@ -11,7 +11,7 @@ export async function probeCiTool(backend, wire, pr = process.env.CEZ_MOCK_CI_PR
11
11
  return probeSquawkTool(backend, wire, 'cezar_wait', { kind: 'pr', pr });
12
12
  }
13
13
 
14
- // Calls one cezar tool the way the real harness would: through the wired MCP server (or Pi/OMP extension).
14
+ // Calls one Squawk tool the way the real harness would: through the wired MCP server (or Pi/OMP extension).
15
15
  export async function probeSquawkTool(backend, wire, name, args, record = true) {
16
16
  const result = backend === 'pi' || backend === 'omp'
17
17
  ? await probeExtensionTool(backend, wire, name, args)
@@ -43,7 +43,7 @@ async function probeExtensionTool(backend, wire, name, args) {
43
43
  const expandEnv = (env) => Object.fromEntries(Object.entries(env ?? {}).map(([key, value]) =>
44
44
  [key, value.replace(/\$\{([^}]+)\}/g, (_, name) => process.env[name] ?? '')]));
45
45
 
46
- /** The cezar MCP server a runner's wire names, with the environment it starts under. */
46
+ /** The Squawk MCP server a runner's wire names, with the environment it starts under. */
47
47
  function mcpServerOf(backend, wire) {
48
48
  if (backend === 'claude') {
49
49
  const server = Object.values(JSON.parse(wire[wire.indexOf('--mcp-config') + 1]).mcpServers)[0];
@@ -80,7 +80,7 @@ async function probeMcpTool({ server, env }, name, args) {
80
80
  } finally { await client.close(); }
81
81
  }
82
82
 
83
- // hearsay-tools/cezarion#2397: a scripted reply that finishes, asks or waits calls the cezar
83
+ // hearsay-tools/cezarion#2397: a scripted reply that finishes, asks or waits calls the Squawk
84
84
  // lifecycle tool over the session's own wire before its turn ends, as an agent does. It
85
85
  // returns '' (a refusal is the tool's answer, not the mock's failure), or a note for the turn
86
86
  // text when the tool could not be reached, so the transcript says why the turn did not settle.
@@ -95,7 +95,7 @@ export const DONE = ['cezar_done', {}];
95
95
  export const ask = (questions = LIBRARY_QUESTIONS, context = ASK_CONTEXT) => ['cezar_ask', { context, questions }];
96
96
  export const wait = (note = 'Re-check the downstream work.') => ['cezar_wait', { kind: 'timer', seconds: 60, note }];
97
97
 
98
- // pi reads --tools as an allowlist and --no-tools as an empty one; with neither (cezar's default
98
+ // pi reads --tools as an allowlist and --no-tools as an empty one; with neither (Squawk's default
99
99
  // list sends --no-builtin-tools), an extension's tools are active once registered
100
100
  // (hearsay-tools/cezarion#1305).
101
101
  function piAdmits(wire, name) {
@@ -117,7 +117,7 @@ export function squawkToolName(text) {
117
117
  return new RegExp(`mock:${SQUAWK_TOOL_NAME.source}`).exec(text)?.[1];
118
118
  }
119
119
 
120
- // `mock:cezar-tool <name> <base64-json-args>` calls any cezar tool with those arguments
120
+ // `mock:cezar-tool <name> <base64-json-args>` calls any Squawk tool with those arguments
121
121
  // (hearsay-tools/cezarion#1233). Base64, standard or URL-safe, survives every wire's escaping.
122
122
  // Several calls run in order within one turn; `"wait_id": "last"` names the wait the previous
123
123
  // answer registered, so a turn can open a wait and cancel it. `mock:gate <base64 path>` between
@@ -19,7 +19,7 @@ const { answerNudge } = await import('./mock-nudge.mjs');
19
19
 
20
20
 
21
21
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
22
- // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that cezar tool over
22
+ // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that Squawk tool over
23
23
  // the session's MCP config before its turn ends. Returns '' or a failure note for the text.
24
24
  const tools = () => import('./mock-ci-tool.mjs');
25
25
  async function lifecycle(call) {
@@ -64,7 +64,7 @@ const emit = (obj) => {
64
64
  process.stdout.write(`${JSON.stringify(obj)}\n`);
65
65
  };
66
66
 
67
- // `--help` lists the options cezar feature-detects (#505).
67
+ // `--help` lists the options Squawk feature-detects (#505).
68
68
  if (process.argv.includes('--help')) {
69
69
  process.stdout.write('Usage: claude [options]\n --input-format <format>\n --replay-user-messages Re-emit user messages from stdin back on stdout\n --include-hook-events Include all hook lifecycle events in the output stream\n');
70
70
  process.exit(0);
@@ -610,7 +610,7 @@ const MULTI_QUESTIONS = [
610
610
  { header: 'Library', question: 'Which test library?', options: [{ label: 'Vitest' }, { label: 'Node test' }] },
611
611
  { header: 'Build', question: 'Which build tool?', options: [{ label: 'Vite' }, { label: 'Webpack' }] },
612
612
  ];
613
- /** The cezar tool calls a reply makes, in order, before its final text. */
613
+ /** The Squawk tool calls a reply makes, in order, before its final text. */
614
614
  async function runCalls(calls) {
615
615
  let notes = '';
616
616
  for (const call of calls) notes += await lifecycle(call);
@@ -82,7 +82,7 @@ async function mcpToolGate(tool) {
82
82
  mcpToolApprovalRequest(key.slice('mcp_servers.'.length), tool));
83
83
  return reply.result?.action === 'accept';
84
84
  }
85
- // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that cezar tool over
85
+ // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that Squawk tool over
86
86
  // the thread's MCP config (behind Codex's approval gate) before its turn ends. Returns '' or a
87
87
  // note for the text.
88
88
  const tools = () => import('./mock-ci-tool.mjs');
@@ -568,7 +568,7 @@ async function replyWithChildTurn(turnText, msg) {
568
568
  }
569
569
 
570
570
  // hearsay-tools/cezarion#1294: another server's tool approval by default; `-own` names
571
- // cezar's own server, `-form` is a real form (no approval), `-null-turn` has no turn id.
571
+ // Squawk's own server, `-form` is a real form (no approval), `-null-turn` has no turn id.
572
572
  function replyWithMcpApproval(turnText, msg, mcpApproval) {
573
573
  pendingApprovalTurn = 'turn_mock_1';
574
574
  const variant = mcpApproval[1];
@@ -599,7 +599,7 @@ async function replyWithApproval(turnText, msg) {
599
599
 
600
600
  function emitApprovalRequest(turnText) {
601
601
  const unsupported = turnText.includes('mock:approval-unsupported');
602
- // hearsay-tools/cezarion#1266 P6: no itemId, so cezar answers it with a JSON-RPC error.
602
+ // hearsay-tools/cezarion#1266 P6: no itemId, so Squawk answers it with a JSON-RPC error.
603
603
  const malformed = turnText.includes('mock:approval-malformed');
604
604
  emit({ id: unsupported ? 'approval-unsupported-1' : 'approval-1',
605
605
  method: unsupported ? 'item/unsupported/requestApproval' : 'item/commandExecution/requestApproval',
@@ -77,7 +77,7 @@ const readTool = (content = 'A project') => {
77
77
  };
78
78
 
79
79
  const finish = (text) => { assistant(text); result(text); };
80
- // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that cezar tool over
80
+ // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that Squawk tool over
81
81
  // the --plugin-dir MCP config before its turn ends. Returns '' or a note for the text.
82
82
  const tools = () => import('./mock-ci-tool.mjs');
83
83
  const lifecycle = async (call) => (await tools()).lifecycleCall('cursor', args, ...call);
@@ -1,8 +1,8 @@
1
- // Cezar's no-wait nudge (hearsay-tools/cezarion#1234). Every native mock answers it the way an agent
1
+ // Squawk's no-wait nudge (hearsay-tools/cezarion#1234). Every native mock answers it the way an agent
2
2
  // should, by rewriting it into the mocks' own scenario prompts after the prompt is recorded: it
3
3
  // calls cezar_ask with a card (`mock:cezar-tool`). CEZ_MOCK_NUDGE_REPLY=plain answers in plain text instead, so a
4
4
  // test can reach the no-wait fallback. CEZ_MOCK_COMPLETION_REPLY, when set, is the mock prompt that
5
- // answers Cezar's completion refusal nudge (hearsay-tools/cezarion#1301), so a test can choose the
5
+ // answers Squawk's completion refusal nudge (hearsay-tools/cezarion#1301), so a test can choose the
6
6
  // reply turn; unset, the refusal gets the mocks' ordinary reply. `mock:ack-only` is a reply every
7
7
  // native mock understands: the harness acknowledges the prompt on its own wire (and reports it read
8
8
  // where that wire can) and opens no turn until more input arrives.
@@ -55,7 +55,7 @@ if (unknownFlags.length > 0) {
55
55
  let tools = flags.has('--no-tools') ? [] : DEFAULT_TOOLS;
56
56
  if (typeof flags.get('--tools') === 'string') {
57
57
  tools = flags.get('--tools').split(',');
58
- // The CI extension registers cezar's tools (the preview tools only under CEZ_PREVIEW=1, the schedule tools unless CEZ_AUTOMATIONS=0); an MCP name needs a configured server, which the mock
58
+ // The CI extension registers Squawk's tools (the preview tools only under CEZ_PREVIEW=1, the schedule tools unless CEZ_AUTOMATIONS=0); an MCP name needs a configured server, which the mock
59
59
  // takes from CEZ_MOCK_OMP_MCP_TOOLS (none by default, like a home without .omp/mcp.json).
60
60
  const mcpTools = (process.env.CEZ_MOCK_OMP_MCP_TOOLS ?? '').split(',').filter(Boolean);
61
61
  // Tools a user setting disabled (`todo.enabled: false`, `lsp.enabled: false`, ...) are built-ins
@@ -316,7 +316,7 @@ async function handle(command) {
316
316
  return;
317
317
  case 'prompt':
318
318
  record({ userText: rawMessage(command), imageCount: (command.images ?? []).length });
319
- // The delivery control reads both the prompt Cezar sent and a nudge's scripted answer.
319
+ // The delivery control reads both the prompt Squawk sent and a nudge's scripted answer.
320
320
  { const answered = answerNudge(command.message);
321
321
  return prompt({ ...command, message: answered }, answered === command.message ? answered : `${command.message}\n${answered}`); }
322
322
  default:
@@ -177,7 +177,7 @@ const send = (event) => {
177
177
  write(event);
178
178
  };
179
179
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
180
- // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that cezar tool over
180
+ // hearsay-tools/cezarion#2397: a reply that finishes, asks or waits calls that Squawk tool over
181
181
  // OPENCODE_CONFIG_CONTENT's MCP entry before its turn ends. Returns '' or a note for the text.
182
182
  const tools = () => import('./mock-ci-tool.mjs');
183
183
  async function lifecycle(call) {
@@ -302,7 +302,7 @@ function handleRequest(req, res) { wireRecorder?.recordHttpResponse(req, res);
302
302
  res.end(JSON.stringify({ permission: { bash: 'ask' } }));
303
303
  };
304
304
  if (!classifyPending) { answer(); return; }
305
- // P7: hold the config read, settle the ask natively while cezar classifies it, then send a
305
+ // P7: hold the config read, settle the ask natively while Squawk classifies it, then send a
306
306
  // marker ask. Files beside CEZ_MOCK_RELEASE_FILE hand each step to the test and back.
307
307
  classifyPending = false;
308
308
  const release = process.env.CEZ_MOCK_RELEASE_FILE;
@@ -346,7 +346,7 @@ async function handleRequestBody(req, res, url, body) {
346
346
  }
347
347
  function prepareRequestBody(req, url, body) {
348
348
  if (process.env.CEZ_MOCK_ARGS_FILE) appendFileSync(process.env.CEZ_MOCK_ARGS_FILE, `${JSON.stringify({ method: req.method, url, body: body ? JSON.parse(body) : undefined })}\n`);
349
- // The delivery control also reads the prompt Cezar sent, before a nudge's scripted answer replaces it.
349
+ // The delivery control also reads the prompt Squawk sent, before a nudge's scripted answer replaces it.
350
350
  if (req.method === 'POST' && /\/(prompt_async|message)$/.test(url)) body = withoutSessionContextBody(body);
351
351
  const received = body;
352
352
  if (req.method === 'POST' && /\/(prompt_async|message)$/.test(url)) body = answerNudgeBody(body);
@@ -508,7 +508,7 @@ async function replyWithFailedApprovalReply(body) {
508
508
  return;
509
509
  }
510
510
  async function replyWithMalformedPermission(body) {
511
- // P6: `patterns` must be an array; cezar rejects the ask by its id.
511
+ // P6: `patterns` must be an array; Squawk rejects the ask by its id.
512
512
  send({ type: 'message.updated', properties: { info: info({}) } });
513
513
  pendingPermissionAsks.add('per_mock_bad');
514
514
  send({ type: 'permission.asked', properties: {
@@ -712,7 +712,7 @@ function recordSessionPrompt(body) {
712
712
  function deliveryPromptText(body, received) {
713
713
  // A configured control matches the prompt's text parts, never their JSON encoding.
714
714
  let deliveryText = body;
715
- // Both the prompt Cezar sent and a nudge's scripted answer match (hearsay-tools/cezarion#1525).
715
+ // Both the prompt Squawk sent and a nudge's scripted answer match (hearsay-tools/cezarion#1525).
716
716
  const textOf = (raw) => JSON.parse(raw).parts.map(part => part.text ?? '').join('\n');
717
717
  if (delivery) try { deliveryText = received === body ? textOf(body) : `${textOf(received)}\n${textOf(body)}`; } catch { /* not a prompt body */ }
718
718
  return deliveryText;
@@ -25,7 +25,7 @@ const write = (value) => process.stdout.write(`${JSON.stringify(value)}\n`);
25
25
  // turn. Steers accepted by a scripted turn are read just before it settles: a user
26
26
  // message_start/end, then an echo, unless the turn is `late` (never read).
27
27
  let activeTurn = null;
28
- // Pi 0.87 defaults steeringMode to one-at-a-time (#551). Cezar's runner must
28
+ // Pi 0.87 defaults steeringMode to one-at-a-time (#551). Squawk's runner must
29
29
  // send set_steering_mode all for a burst to reach the same next step.
30
30
  let steeringMode = 'one-at-a-time';
31
31
  // The prompt a queued handler is running; pi records it as the turn's user message.
@@ -1,7 +1,7 @@
1
1
  // Each native mock's provider failures, one error class each, in that runner's own wire text
2
2
  // (hearsay-tools/squawk#3337). `provider` is a request the provider rejects as invalid (HTTP 400):
3
3
  // no retry can succeed, so the run fails. The other kinds are failures the same request can survive
4
- // later (`core/provider-error.ts`), so Cezar holds the run and retries it with back-off. A rate
4
+ // later (`core/provider-error.ts`), so Squawk holds the run and retries it with back-off. A rate
5
5
  // limit names no reset time: one that does is a usage limit (`core/usage-limit.ts`).
6
6
  //
7
7
  // Claude Code puts the API status and body in an `is_error` result.
@@ -269,7 +269,7 @@ function beforeFailureScenario(prompt, context) {
269
269
  /**
270
270
  * Provider failures, one error class each (hearsay-tools/squawk#3337). `provider-error` above is a
271
271
  * request the provider rejects as invalid (HTTP 400), which fails the run. These are failures the
272
- * same request can survive later, so Cezar holds the run and retries it. Each mock's `end` writes
272
+ * same request can survive later, so Squawk holds the run and retries it. Each mock's `end` writes
273
273
  * the kind in its own native error shape.
274
274
  */
275
275
  export const PROVIDER_HOLD_SCENARIOS = [
@@ -9,7 +9,7 @@ export const SILENT_TAIL_DONE = 'Filed #543.';
9
9
  export const TOOL_TAIL_OPENING = 'Inspecting the working tree.';
10
10
  export const FINAL_MESSAGE_STANDING = 'Here is where things stand.';
11
11
  export const SLOW_DONE_PREFIX = 'Working on the wrap-up.';
12
- // Cezar's no-wait nudge absorbed the final-message nudge (hearsay-tools/cezarion#1234).
12
+ // Squawk's no-wait nudge absorbed the final-message nudge (hearsay-tools/cezarion#1234).
13
13
  export const FINAL_MESSAGE_NUDGE_PREFIX = 'Your turn ended without a wait or done.';
14
14
  /** F9/F11 gate replies on CEZ_MOCK_RELEASE_FILE; ungated callers use this delay. */
15
15
  export const LATE_REPLY_MS = 500;
@@ -1,4 +1,4 @@
1
- // OMP (Oh My Pi) extension: registers cezar's tools in OMP's own process (#595). Same shape as
1
+ // OMP (Oh My Pi) extension: registers Squawk's tools in OMP's own process (#595). Same shape as
2
2
  // pi-ci-wait.mjs; OMP's `pi.registerTool` takes the JSON Schema `parameters` as Pi does.
3
3
  // Resolve beside this installed script; no private workspace dependency or download.
4
4
  import { existsSync } from 'node:fs';
@@ -10,11 +10,11 @@ const built = new URL('../dist/ci-wait/tools.js', import.meta.url);
10
10
  // otherwise the source error is the real cause and is rethrown, not hidden behind a missing dist.
11
11
  const loadBuilt = (error) => {
12
12
  if (!existsSync(fileURLToPath(built))) throw error;
13
- process.stderr.write('cezar: loading built cezar tools from dist/; rebuild after changing src/ci-wait\n');
13
+ process.stderr.write('Squawk: loading built Squawk tools from dist/; rebuild after changing src/ci-wait\n');
14
14
  return import(built.href);
15
15
  };
16
16
  const { squawkTools } = await (existsSync(source) ? import(source.href).catch(loadBuilt) : import(built.href));
17
- // #781: the shared cezar tool list, read in OMP's own process, whose env carries the opt-in.
17
+ // #781: the shared Squawk tool list, read in OMP's own process, whose env carries the opt-in.
18
18
  // `ompTools` admits exactly these names to `--tools`: OMP exits 2 on a name nothing registered.
19
19
  export default function ciWaitExtension(pi) {
20
20
  for (const tool of squawkTools(process.env)) {
@@ -1,14 +1,14 @@
1
- // OpenCode plugin that cezar loads into governed sessions (every session the delegation listener provisions) through
1
+ // OpenCode plugin that Squawk loads into governed sessions (every session the delegation listener provisions) through
2
2
  // OPENCODE_CONFIG_CONTENT (hearsay-tools/cezarion#2279). OpenCode's `task` tool starts the
3
3
  // session's own subagents, and with `task_id` it resumes any session by ID without a parent
4
- // check, which can reach another cezar task's session. This hook keeps `task` for the
5
- // session's own tree and refuses a `task_id` outside it: cezar tasks talk only through
4
+ // check, which can reach another Squawk task's session. This hook keeps `task` for the
5
+ // session's own tree and refuses a `task_id` outside it: Squawk tasks talk only through
6
6
  // `cez message`. The same-user shell stays outside this control (AGENT_PROTOCOL.md D1).
7
7
 
8
8
  /** Parent links walked before giving up; a real session tree is a few levels deep. */
9
9
  const MAX_DEPTH = 64;
10
10
 
11
- const REFUSAL = 'This task_id names a session outside this task. Cezar tasks talk to each other only through `cez message`; start a new subagent with task and no task_id instead.';
11
+ const REFUSAL = 'This task_id names a session outside this task. Squawk tasks talk to each other only through `hsq message`; start a new subagent with task and no task_id instead.';
12
12
 
13
13
  /**
14
14
  * The session's parent ID, null for a root session, or undefined when no such session exists.
@@ -3,7 +3,7 @@
3
3
  import { existsSync } from 'node:fs';
4
4
  const source = new URL('../src/ci-wait/tools.ts', import.meta.url);
5
5
  const { squawkTools } = await import(existsSync(source) ? source.href : new URL('../dist/ci-wait/tools.js', import.meta.url).href);
6
- // #781: the shared cezar tool list, read in Pi's own process, whose env carries the opt-in.
6
+ // #781: the shared Squawk tool list, read in Pi's own process, whose env carries the opt-in.
7
7
  export default function ciWaitExtension(pi) {
8
8
  for (const tool of squawkTools(process.env)) {
9
9
  pi.registerTool({
@@ -1,6 +1,6 @@
1
- // hearsay-tools/cezarion#1305: pi reads --tools as an allowlist, so a session given cezar's default
1
+ // hearsay-tools/cezarion#1305: pi reads --tools as an allowlist, so a session given Squawk's default
2
2
  // tool list could not call an MCP server's tools (direct, codemode or deferred) or any tool another
3
- // pi extension registers. For the default list cezar sends --no-builtin-tools instead, which keeps
3
+ // pi extension registers. For the default list Squawk sends --no-builtin-tools instead, which keeps
4
4
  // every tool registered, activates extension tools on registration and leaves the built-ins
5
5
  // inactive, and names the built-ins in --cezar-builtin-tools for this extension to activate.
6
6
  //
@@ -11,7 +11,7 @@
11
11
  const FLAG = 'cezar-builtin-tools';
12
12
 
13
13
  export default function registerPiDefaultTools(pi) {
14
- pi.registerFlag(FLAG, { type: 'string', description: 'Built-in tools cezar activates (default tool list)' });
14
+ pi.registerFlag(FLAG, { type: 'string', description: 'Built-in tools Squawk activates (default tool list)' });
15
15
  pi.on('session_start', () => {
16
16
  const value = pi.getFlag(FLAG);
17
17
  if (typeof value !== 'string') return;