@hearsay-tools/squawk 0.19.0-pr4531.8985 → 0.19.0-pr4533.8987

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.
@@ -12478,9 +12478,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12478
12478
  status: 404 | 409;
12479
12479
  input: {
12480
12480
  param: {
12481
- id: string;
12482
- } & {
12483
12481
  sha: string;
12482
+ } & {
12483
+ id: string;
12484
12484
  };
12485
12485
  };
12486
12486
  } | {
@@ -12509,9 +12509,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12509
12509
  status: import("hono/utils/http-status").ContentfulStatusCode;
12510
12510
  input: {
12511
12511
  param: {
12512
- id: string;
12513
- } & {
12514
12512
  sha: string;
12513
+ } & {
12514
+ id: string;
12515
12515
  };
12516
12516
  };
12517
12517
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.19.0-pr4531.8985",
3
+ "version": "0.19.0-pr4533.8987",
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",
@@ -69,8 +69,8 @@
69
69
  "devDependencies": {
70
70
  "@babel/parser": "^8.0.8",
71
71
  "@babel/types": "^8.0.8",
72
- "@open-mercato/cezar-api-client": "0.19.0-pr4531.8985",
73
- "@open-mercato/cezar-contract": "0.19.0-pr4531.8985",
72
+ "@open-mercato/cezar-api-client": "0.19.0-pr4533.8987",
73
+ "@open-mercato/cezar-contract": "0.19.0-pr4533.8987",
74
74
  "@types/node": "^24.19.1",
75
75
  "@types/ws": "^8.18.1",
76
76
  "esbuild": "^0.28.1",
@@ -87,5 +87,5 @@
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  },
90
- "gitHead": "f72e5fd725ce5320252950a213111e5b43f60467"
90
+ "gitHead": "dc368c9970392c28a0f8df111e709be52569329a"
91
91
  }
@@ -1,14 +1,11 @@
1
1
  // hearsay-tools/cezarion#784: harness parity reads which per-session variables reached each runner's
2
2
  // native process, the one the agent's Bash and agent-browser inherit. A test preloads it into every
3
- // mock with NODE_OPTIONS=--import=<this file's URL> and sets CEZ_MOCK_ENV_RECORD (the file to append
4
- // to) and CEZ_MOCK_ENV_RECORD_NAMES (comma-separated names). Every node process that inherits the env
5
- // runs it, the runner's mock and any helper the runner starts (an MCP bridge), so each one appends its
6
- // own line, `{ pid, argv1, vars }`, and a reader picks the process it means by `argv1`.
7
- import { appendFileSync } from 'node:fs';
3
+ // mock with NODE_OPTIONS=--import=<this file's URL> and sets CEZ_MOCK_ENV_RECORD (the file to write)
4
+ // and CEZ_MOCK_ENV_RECORD_NAMES (comma-separated names).
5
+ import { writeFileSync } from 'node:fs';
8
6
 
9
7
  const path = process.env.CEZ_MOCK_ENV_RECORD;
10
8
  if (path) {
11
9
  const names = (process.env.CEZ_MOCK_ENV_RECORD_NAMES ?? '').split(',').filter(Boolean);
12
- const vars = Object.fromEntries(names.map(name => [name, process.env[name] ?? null]));
13
- appendFileSync(path, `${JSON.stringify({ pid: process.pid, argv1: process.argv[1] ?? null, vars })}\n`);
10
+ writeFileSync(path, JSON.stringify(Object.fromEntries(names.map(name => [name, process.env[name] ?? null]))));
14
11
  }
@@ -1,7 +1,8 @@
1
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
- // test can reach the no-wait fallback. CEZ_MOCK_NUDGE_REPLY=done calls cezar_done, so a resumed session, whose
4
+ // test can reach the no-wait fallback. CEZ_MOCK_NUDGE_REPLY=ack-only answers `mock:ack-only`: the harness takes the
5
+ // nudge and never answers it, so its reply bound decides. CEZ_MOCK_NUDGE_REPLY=done calls cezar_done, so a resumed session, whose
5
6
  // prompt no longer repeats the task (hearsay-tools/squawk#3882), can still finish. CEZ_MOCK_COMPLETION_REPLY, when set, is the mock prompt that
6
7
  // answers Squawk's completion refusal nudge (hearsay-tools/cezarion#1301), so a test can choose the
7
8
  // reply turn; unset, the refusal gets the mocks' ordinary reply. `mock:ack-only` is a reply every
@@ -32,6 +33,7 @@ export function answerNudge(prompt) {
32
33
  if (completion) return completion;
33
34
  if (!prompt.includes(NUDGE) || silentTailOpened()) return prompt;
34
35
  if (process.env.CEZ_MOCK_NUDGE_REPLY === 'plain') return messages(['Nothing more to add.']);
36
+ if (process.env.CEZ_MOCK_NUDGE_REPLY === 'ack-only') return 'mock:ack-only';
35
37
  if (process.env.CEZ_MOCK_NUDGE_REPLY === 'done') return 'mock:cezar-done the task is complete';
36
38
  return `mock:cezar-tool cezar_ask ${base64url(JSON.stringify({ context: CONTEXT, questions: QUESTIONS }))} mock:then ${base64url('I asked how to continue.')}`;
37
39
  }