@hearsay-tools/squawk 0.18.0-pr3983.7560 → 0.18.0-pr3983.7574
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.
|
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
40
40
|
error: string;
|
|
41
41
|
};
|
|
42
42
|
outputFormat: "json";
|
|
43
|
-
status:
|
|
43
|
+
status: 409;
|
|
44
44
|
input: {
|
|
45
45
|
query: {
|
|
46
46
|
q?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
53
53
|
error: string;
|
|
54
54
|
};
|
|
55
55
|
outputFormat: "json";
|
|
56
|
-
status:
|
|
56
|
+
status: 400;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -4257,6 +4257,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4257
4257
|
} & {
|
|
4258
4258
|
"/repo/commit/:sha": {
|
|
4259
4259
|
$get: {
|
|
4260
|
+
output: string;
|
|
4261
|
+
outputFormat: "text";
|
|
4262
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4263
|
+
input: {
|
|
4264
|
+
query: {
|
|
4265
|
+
structured?: string | undefined;
|
|
4266
|
+
};
|
|
4267
|
+
} & {
|
|
4268
|
+
param: {
|
|
4269
|
+
sha: string;
|
|
4270
|
+
};
|
|
4271
|
+
};
|
|
4272
|
+
} | {
|
|
4260
4273
|
output: {
|
|
4261
4274
|
error: string;
|
|
4262
4275
|
code?: "invalid_input" | undefined;
|
|
@@ -4320,19 +4333,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4320
4333
|
sha: string;
|
|
4321
4334
|
};
|
|
4322
4335
|
};
|
|
4323
|
-
} | {
|
|
4324
|
-
output: string;
|
|
4325
|
-
outputFormat: "text";
|
|
4326
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4327
|
-
input: {
|
|
4328
|
-
query: {
|
|
4329
|
-
structured?: string | undefined;
|
|
4330
|
-
};
|
|
4331
|
-
} & {
|
|
4332
|
-
param: {
|
|
4333
|
-
sha: string;
|
|
4334
|
-
};
|
|
4335
|
-
};
|
|
4336
4336
|
};
|
|
4337
4337
|
};
|
|
4338
4338
|
} & {
|
|
@@ -18096,20 +18096,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18096
18096
|
} & {
|
|
18097
18097
|
"/runs/:id/handoff": {
|
|
18098
18098
|
$get: {
|
|
18099
|
-
output:
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
outputFormat: "json";
|
|
18103
|
-
status: 404;
|
|
18099
|
+
output: string;
|
|
18100
|
+
outputFormat: "text";
|
|
18101
|
+
status: 200;
|
|
18104
18102
|
input: {
|
|
18105
18103
|
param: {
|
|
18106
18104
|
id: string;
|
|
18107
18105
|
};
|
|
18108
18106
|
};
|
|
18109
18107
|
} | {
|
|
18110
|
-
output:
|
|
18111
|
-
|
|
18112
|
-
|
|
18108
|
+
output: {
|
|
18109
|
+
error: string;
|
|
18110
|
+
};
|
|
18111
|
+
outputFormat: "json";
|
|
18112
|
+
status: 404;
|
|
18113
18113
|
input: {
|
|
18114
18114
|
param: {
|
|
18115
18115
|
id: string;
|
|
@@ -18147,20 +18147,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18147
18147
|
} & {
|
|
18148
18148
|
"/runs/:id/diff": {
|
|
18149
18149
|
$get: {
|
|
18150
|
-
output:
|
|
18151
|
-
|
|
18152
|
-
|
|
18153
|
-
outputFormat: "json";
|
|
18154
|
-
status: 404 | 409;
|
|
18150
|
+
output: string;
|
|
18151
|
+
outputFormat: "text";
|
|
18152
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18155
18153
|
input: {
|
|
18156
18154
|
param: {
|
|
18157
18155
|
id: string;
|
|
18158
18156
|
};
|
|
18159
18157
|
};
|
|
18160
18158
|
} | {
|
|
18161
|
-
output:
|
|
18162
|
-
|
|
18163
|
-
|
|
18159
|
+
output: {
|
|
18160
|
+
error: string;
|
|
18161
|
+
};
|
|
18162
|
+
outputFormat: "json";
|
|
18163
|
+
status: 404 | 409;
|
|
18164
18164
|
input: {
|
|
18165
18165
|
param: {
|
|
18166
18166
|
id: string;
|
|
@@ -20178,6 +20178,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20178
20178
|
} & {
|
|
20179
20179
|
"/repo/commit/:sha": {
|
|
20180
20180
|
$get: {
|
|
20181
|
+
output: string;
|
|
20182
|
+
outputFormat: "text";
|
|
20183
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20184
|
+
input: {
|
|
20185
|
+
query: {
|
|
20186
|
+
structured?: string | undefined;
|
|
20187
|
+
};
|
|
20188
|
+
} & {
|
|
20189
|
+
param: {
|
|
20190
|
+
sha: string;
|
|
20191
|
+
};
|
|
20192
|
+
};
|
|
20193
|
+
} | {
|
|
20181
20194
|
output: {
|
|
20182
20195
|
error: string;
|
|
20183
20196
|
code?: "invalid_input" | undefined;
|
|
@@ -20241,19 +20254,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20241
20254
|
sha: string;
|
|
20242
20255
|
};
|
|
20243
20256
|
};
|
|
20244
|
-
} | {
|
|
20245
|
-
output: string;
|
|
20246
|
-
outputFormat: "text";
|
|
20247
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20248
|
-
input: {
|
|
20249
|
-
query: {
|
|
20250
|
-
structured?: string | undefined;
|
|
20251
|
-
};
|
|
20252
|
-
} & {
|
|
20253
|
-
param: {
|
|
20254
|
-
sha: string;
|
|
20255
|
-
};
|
|
20256
|
-
};
|
|
20257
20257
|
};
|
|
20258
20258
|
};
|
|
20259
20259
|
} & {
|
|
@@ -34017,20 +34017,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34017
34017
|
} & {
|
|
34018
34018
|
"/runs/:id/handoff": {
|
|
34019
34019
|
$get: {
|
|
34020
|
-
output:
|
|
34021
|
-
|
|
34022
|
-
|
|
34023
|
-
outputFormat: "json";
|
|
34024
|
-
status: 404;
|
|
34020
|
+
output: string;
|
|
34021
|
+
outputFormat: "text";
|
|
34022
|
+
status: 200;
|
|
34025
34023
|
input: {
|
|
34026
34024
|
param: {
|
|
34027
34025
|
id: string;
|
|
34028
34026
|
};
|
|
34029
34027
|
};
|
|
34030
34028
|
} | {
|
|
34031
|
-
output:
|
|
34032
|
-
|
|
34033
|
-
|
|
34029
|
+
output: {
|
|
34030
|
+
error: string;
|
|
34031
|
+
};
|
|
34032
|
+
outputFormat: "json";
|
|
34033
|
+
status: 404;
|
|
34034
34034
|
input: {
|
|
34035
34035
|
param: {
|
|
34036
34036
|
id: string;
|
|
@@ -34068,20 +34068,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34068
34068
|
} & {
|
|
34069
34069
|
"/runs/:id/diff": {
|
|
34070
34070
|
$get: {
|
|
34071
|
-
output:
|
|
34072
|
-
|
|
34073
|
-
|
|
34074
|
-
outputFormat: "json";
|
|
34075
|
-
status: 404 | 409;
|
|
34071
|
+
output: string;
|
|
34072
|
+
outputFormat: "text";
|
|
34073
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34076
34074
|
input: {
|
|
34077
34075
|
param: {
|
|
34078
34076
|
id: string;
|
|
34079
34077
|
};
|
|
34080
34078
|
};
|
|
34081
34079
|
} | {
|
|
34082
|
-
output:
|
|
34083
|
-
|
|
34084
|
-
|
|
34080
|
+
output: {
|
|
34081
|
+
error: string;
|
|
34082
|
+
};
|
|
34083
|
+
outputFormat: "json";
|
|
34084
|
+
status: 404 | 409;
|
|
34085
34085
|
input: {
|
|
34086
34086
|
param: {
|
|
34087
34087
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-pr3983.
|
|
3
|
+
"version": "0.18.0-pr3983.7574",
|
|
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",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/parser": "^8.0.8",
|
|
65
65
|
"@babel/types": "^8.0.8",
|
|
66
|
-
"@open-mercato/cezar-api-client": "0.18.0-pr3983.
|
|
67
|
-
"@open-mercato/cezar-contract": "0.18.0-pr3983.
|
|
66
|
+
"@open-mercato/cezar-api-client": "0.18.0-pr3983.7574",
|
|
67
|
+
"@open-mercato/cezar-contract": "0.18.0-pr3983.7574",
|
|
68
68
|
"@types/node": "^24.19.1",
|
|
69
69
|
"@types/ws": "^8.18.1",
|
|
70
70
|
"esbuild": "^0.28.1",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "488a2d2f5af0b33746f0d99d72ae8aae2356d499"
|
|
85
85
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// The fixture runner's native mock (src/runners/fixture/): newline-delimited JSON over stdio.
|
|
3
|
+
// stdin takes `{"type":"prompt","text":"..."}`; stdout answers `ready`, then per prompt
|
|
4
|
+
// `turn-start`, `text`, `usage` and `turn-end`. `mock:hold` waits before the reply, and
|
|
5
|
+
// `mock:provider-error` answers with an `error` frame. Any other prompt is a plain reply.
|
|
6
|
+
import readline from 'node:readline';
|
|
7
|
+
|
|
8
|
+
const write = (value) => process.stdout.write(`${JSON.stringify(value)}\n`);
|
|
9
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
10
|
+
|
|
11
|
+
process.on('SIGTERM', () => process.exit(143));
|
|
12
|
+
write({ type: 'ready', sessionId: 'fixture-session-1' });
|
|
13
|
+
|
|
14
|
+
const lines = readline.createInterface({ input: process.stdin });
|
|
15
|
+
let chain = Promise.resolve();
|
|
16
|
+
lines.on('line', (line) => {
|
|
17
|
+
let message;
|
|
18
|
+
try { message = JSON.parse(line); } catch { return; }
|
|
19
|
+
if (message?.type !== 'prompt') return;
|
|
20
|
+
chain = chain.then(async () => {
|
|
21
|
+
write({ type: 'turn-start' });
|
|
22
|
+
if (message.text.includes('mock:provider-error')) { write({ type: 'error', message: 'fixture provider rejected the request' }); return; }
|
|
23
|
+
if (message.text.includes('mock:hold')) await sleep(300);
|
|
24
|
+
write({ type: 'text', text: `fixture reply to: ${message.text}` });
|
|
25
|
+
write({ type: 'usage', input: 12, output: 8 });
|
|
26
|
+
write({ type: 'turn-end' });
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
lines.on('close', () => { chain.then(() => process.exit(0)); });
|