@hearsay-tools/squawk 0.19.0-pr4535.8989 → 0.19.0-pr4543.9002
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.
|
@@ -94,6 +94,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
94
94
|
} | undefined;
|
|
95
95
|
invalidAsk?: boolean | undefined;
|
|
96
96
|
delegation?: {
|
|
97
|
+
role: "invalid";
|
|
98
|
+
} | {
|
|
97
99
|
role: "root";
|
|
98
100
|
conversation?: {
|
|
99
101
|
messages: {
|
|
@@ -328,8 +330,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
328
330
|
} | undefined;
|
|
329
331
|
executionRevision?: number | undefined;
|
|
330
332
|
executionStartSeq?: number | undefined;
|
|
331
|
-
} | {
|
|
332
|
-
role: "invalid";
|
|
333
333
|
} | undefined;
|
|
334
334
|
agentInputs?: {
|
|
335
335
|
conversation?: {
|
|
@@ -1941,6 +1941,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
1941
1941
|
} | undefined;
|
|
1942
1942
|
invalidAsk?: boolean | undefined;
|
|
1943
1943
|
delegation?: {
|
|
1944
|
+
role: "invalid";
|
|
1945
|
+
} | {
|
|
1944
1946
|
role: "root";
|
|
1945
1947
|
conversation?: {
|
|
1946
1948
|
messages: {
|
|
@@ -2175,8 +2177,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
2175
2177
|
} | undefined;
|
|
2176
2178
|
executionRevision?: number | undefined;
|
|
2177
2179
|
executionStartSeq?: number | undefined;
|
|
2178
|
-
} | {
|
|
2179
|
-
role: "invalid";
|
|
2180
2180
|
} | undefined;
|
|
2181
2181
|
agentInputs?: {
|
|
2182
2182
|
conversation?: {
|
|
@@ -3156,6 +3156,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
3156
3156
|
} | undefined;
|
|
3157
3157
|
invalidAsk?: boolean | undefined;
|
|
3158
3158
|
delegation?: {
|
|
3159
|
+
role: "invalid";
|
|
3160
|
+
} | {
|
|
3159
3161
|
role: "root";
|
|
3160
3162
|
conversation?: {
|
|
3161
3163
|
messages: {
|
|
@@ -3390,8 +3392,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
3390
3392
|
} | undefined;
|
|
3391
3393
|
executionRevision?: number | undefined;
|
|
3392
3394
|
executionStartSeq?: number | undefined;
|
|
3393
|
-
} | {
|
|
3394
|
-
role: "invalid";
|
|
3395
3395
|
} | undefined;
|
|
3396
3396
|
agentInputs?: {
|
|
3397
3397
|
conversation?: {
|
|
@@ -5142,6 +5142,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5142
5142
|
currentStepId?: string | undefined;
|
|
5143
5143
|
error?: string | undefined;
|
|
5144
5144
|
delegation?: {
|
|
5145
|
+
role: "invalid";
|
|
5146
|
+
} | {
|
|
5145
5147
|
role: "root";
|
|
5146
5148
|
conversation?: {
|
|
5147
5149
|
messages: {
|
|
@@ -5376,8 +5378,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5376
5378
|
} | undefined;
|
|
5377
5379
|
executionRevision?: number | undefined;
|
|
5378
5380
|
executionStartSeq?: number | undefined;
|
|
5379
|
-
} | {
|
|
5380
|
-
role: "invalid";
|
|
5381
5381
|
} | undefined;
|
|
5382
5382
|
lastWaitsError?: string | undefined;
|
|
5383
5383
|
automaticWakes?: number | undefined;
|
|
@@ -5615,6 +5615,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5615
5615
|
} | undefined;
|
|
5616
5616
|
invalidAsk?: boolean | undefined;
|
|
5617
5617
|
delegation?: {
|
|
5618
|
+
role: "invalid";
|
|
5619
|
+
} | {
|
|
5618
5620
|
role: "root";
|
|
5619
5621
|
conversation?: {
|
|
5620
5622
|
messages: {
|
|
@@ -5849,8 +5851,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5849
5851
|
} | undefined;
|
|
5850
5852
|
executionRevision?: number | undefined;
|
|
5851
5853
|
executionStartSeq?: number | undefined;
|
|
5852
|
-
} | {
|
|
5853
|
-
role: "invalid";
|
|
5854
5854
|
} | undefined;
|
|
5855
5855
|
agentInputs?: {
|
|
5856
5856
|
conversation?: {
|
|
@@ -6806,6 +6806,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
6806
6806
|
} | undefined;
|
|
6807
6807
|
invalidAsk?: boolean | undefined;
|
|
6808
6808
|
delegation?: {
|
|
6809
|
+
role: "invalid";
|
|
6810
|
+
} | {
|
|
6809
6811
|
role: "root";
|
|
6810
6812
|
conversation?: {
|
|
6811
6813
|
messages: {
|
|
@@ -7040,8 +7042,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
7040
7042
|
} | undefined;
|
|
7041
7043
|
executionRevision?: number | undefined;
|
|
7042
7044
|
executionStartSeq?: number | undefined;
|
|
7043
|
-
} | {
|
|
7044
|
-
role: "invalid";
|
|
7045
7045
|
} | undefined;
|
|
7046
7046
|
agentInputs?: {
|
|
7047
7047
|
conversation?: {
|
|
@@ -8735,6 +8735,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
8735
8735
|
currentStepId?: string | undefined;
|
|
8736
8736
|
error?: string | undefined;
|
|
8737
8737
|
delegation?: {
|
|
8738
|
+
role: "invalid";
|
|
8739
|
+
} | {
|
|
8738
8740
|
role: "root";
|
|
8739
8741
|
conversation?: {
|
|
8740
8742
|
messages: {
|
|
@@ -8969,8 +8971,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
8969
8971
|
} | undefined;
|
|
8970
8972
|
executionRevision?: number | undefined;
|
|
8971
8973
|
executionStartSeq?: number | undefined;
|
|
8972
|
-
} | {
|
|
8973
|
-
role: "invalid";
|
|
8974
8974
|
} | undefined;
|
|
8975
8975
|
lastWaitsError?: string | undefined;
|
|
8976
8976
|
automaticWakes?: number | undefined;
|
|
@@ -9268,6 +9268,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
9268
9268
|
} | undefined;
|
|
9269
9269
|
invalidAsk?: boolean | undefined;
|
|
9270
9270
|
delegation?: {
|
|
9271
|
+
role: "invalid";
|
|
9272
|
+
} | {
|
|
9271
9273
|
role: "root";
|
|
9272
9274
|
conversation?: {
|
|
9273
9275
|
messages: {
|
|
@@ -9502,8 +9504,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
9502
9504
|
} | undefined;
|
|
9503
9505
|
executionRevision?: number | undefined;
|
|
9504
9506
|
executionStartSeq?: number | undefined;
|
|
9505
|
-
} | {
|
|
9506
|
-
role: "invalid";
|
|
9507
9507
|
} | undefined;
|
|
9508
9508
|
agentInputs?: {
|
|
9509
9509
|
conversation?: {
|
|
@@ -11327,6 +11327,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
11327
11327
|
currentStepId?: string | undefined;
|
|
11328
11328
|
error?: string | undefined;
|
|
11329
11329
|
delegation?: {
|
|
11330
|
+
role: "invalid";
|
|
11331
|
+
} | {
|
|
11330
11332
|
role: "root";
|
|
11331
11333
|
conversation?: {
|
|
11332
11334
|
messages: {
|
|
@@ -11561,8 +11563,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
11561
11563
|
} | undefined;
|
|
11562
11564
|
executionRevision?: number | undefined;
|
|
11563
11565
|
executionStartSeq?: number | undefined;
|
|
11564
|
-
} | {
|
|
11565
|
-
role: "invalid";
|
|
11566
11566
|
} | undefined;
|
|
11567
11567
|
lastWaitsError?: string | undefined;
|
|
11568
11568
|
automaticWakes?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.19.0-
|
|
3
|
+
"version": "0.19.0-pr4543.9002",
|
|
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-
|
|
73
|
-
"@open-mercato/cezar-contract": "0.19.0-
|
|
72
|
+
"@open-mercato/cezar-api-client": "0.19.0-pr4543.9002",
|
|
73
|
+
"@open-mercato/cezar-contract": "0.19.0-pr4543.9002",
|
|
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": "
|
|
90
|
+
"gitHead": "0ef74c3b4c4dad43bed7eba8c62c076fff9534cc"
|
|
91
91
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
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
|
|
4
|
-
// and CEZ_MOCK_ENV_RECORD_NAMES (comma-separated names).
|
|
5
|
-
|
|
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';
|
|
6
8
|
|
|
7
9
|
const path = process.env.CEZ_MOCK_ENV_RECORD;
|
|
8
10
|
if (path) {
|
|
9
11
|
const names = (process.env.CEZ_MOCK_ENV_RECORD_NAMES ?? '').split(',').filter(Boolean);
|
|
10
|
-
|
|
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`);
|
|
11
14
|
}
|
package/scripts/mock-nudge.mjs
CHANGED
|
@@ -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=
|
|
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
|
}
|