@hearsay-tools/squawk 0.19.0-dev.8992 → 0.19.0-dev.8996

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.
@@ -58,6 +58,29 @@ export declare function ciProgressPlugs(): {
58
58
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
59
59
  "/workspace/activity": {
60
60
  $get: {
61
+ output: {
62
+ error: string;
63
+ code?: "invalid_input" | undefined;
64
+ };
65
+ outputFormat: "json";
66
+ status: 400;
67
+ input: {
68
+ query: {
69
+ project?: string | undefined;
70
+ };
71
+ };
72
+ } | {
73
+ output: {
74
+ error: string;
75
+ };
76
+ outputFormat: "json";
77
+ status: 404 | 409 | 503;
78
+ input: {
79
+ query: {
80
+ project?: string | undefined;
81
+ };
82
+ };
83
+ } | {
61
84
  output: {
62
85
  generatedAt: string;
63
86
  projects: {
@@ -308,29 +331,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
308
331
  project?: string | undefined;
309
332
  };
310
333
  };
311
- } | {
312
- output: {
313
- error: string;
314
- code?: "invalid_input" | undefined;
315
- };
316
- outputFormat: "json";
317
- status: 400;
318
- input: {
319
- query: {
320
- project?: string | undefined;
321
- };
322
- };
323
- } | {
324
- output: {
325
- error: string;
326
- };
327
- outputFormat: "json";
328
- status: 404 | 409 | 503;
329
- input: {
330
- query: {
331
- project?: string | undefined;
332
- };
333
- };
334
334
  };
335
335
  };
336
336
  }, "/", "/workspace/activity">;
@@ -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;
@@ -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-dev.8992",
3
+ "version": "0.19.0-dev.8996",
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-dev.8992",
73
- "@open-mercato/cezar-contract": "0.19.0-dev.8992",
72
+ "@open-mercato/cezar-api-client": "0.19.0-dev.8996",
73
+ "@open-mercato/cezar-contract": "0.19.0-dev.8996",
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": "5de9c0e7b1b6ae714f9842dc440b6139842d2a0e"
90
+ "gitHead": "fb04bc34312f8c90f319df2ec763261b26353b7e"
91
91
  }
@@ -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
  }