@hearsay-tools/squawk 0.17.0-pr3285.5787 → 0.18.0-dev.5793
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.
- package/dist/artifacts/reports-index.js +1 -3
- package/dist/artifacts/reports-index.js.map +1 -1
- package/dist/artifacts/store.d.ts +1 -1
- package/dist/artifacts/store.js +1 -3
- package/dist/artifacts/store.js.map +1 -1
- package/dist/autosave-cleanup.d.ts +1 -2
- package/dist/autosave-cleanup.js +6 -8
- package/dist/autosave-cleanup.js.map +1 -1
- package/dist/delegation/context.js +2 -4
- package/dist/delegation/context.js.map +1 -1
- package/dist/delegation/results.js +2 -3
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +75 -75
- package/dist/delegation/transport.d.ts +73 -73
- package/dist/handoff.js +1 -2
- package/dist/handoff.js.map +1 -1
- package/dist/preview/agent-marker.js +6 -9
- package/dist/preview/agent-marker.js.map +1 -1
- package/dist/preview/dev-server.js +10 -31
- package/dist/preview/dev-server.js.map +1 -1
- package/dist/preview/host.js +2 -3
- package/dist/preview/host.js.map +1 -1
- package/dist/project-migration/answer.d.ts +0 -2
- package/dist/project-migration/answer.js +5 -7
- package/dist/project-migration/answer.js.map +1 -1
- package/dist/project-migration/auto.d.ts +8 -15
- package/dist/project-migration/auto.js +26 -24
- package/dist/project-migration/auto.js.map +1 -1
- package/dist/project-migration/cli.js +2 -3
- package/dist/project-migration/cli.js.map +1 -1
- package/dist/project-migration/containment.d.ts +1 -1
- package/dist/project-migration/containment.js +2 -4
- package/dist/project-migration/containment.js.map +1 -1
- package/dist/project-migration/engine.d.ts +1 -5
- package/dist/project-migration/engine.js +1 -18
- package/dist/project-migration/engine.js.map +1 -1
- package/dist/project-migration/journal.d.ts +2 -8
- package/dist/project-migration/journal.js +2 -9
- package/dist/project-migration/journal.js.map +1 -1
- package/dist/project-migration/live.d.ts +5 -20
- package/dist/project-migration/live.js +5 -47
- package/dist/project-migration/live.js.map +1 -1
- package/dist/project-migration/offline.d.ts +4 -6
- package/dist/project-migration/offline.js +6 -8
- package/dist/project-migration/offline.js.map +1 -1
- package/dist/project-migration/plan.d.ts +2 -28
- package/dist/project-migration/plan.js +36 -151
- package/dist/project-migration/plan.js.map +1 -1
- package/dist/project-migration/steps.js +3 -56
- package/dist/project-migration/steps.js.map +1 -1
- package/dist/project-paths.d.ts +1 -3
- package/dist/project-paths.js +2 -9
- package/dist/project-paths.js.map +1 -1
- package/dist/runs/agent-tmpdir.js +3 -4
- package/dist/runs/agent-tmpdir.js.map +1 -1
- package/dist/runs/history-file.js +3 -6
- package/dist/runs/history-file.js.map +1 -1
- package/dist/runs/store.d.ts +72 -72
- package/dist/runs/store.js +6 -6
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/worker-execution.d.ts +1 -3
- package/dist/runs/worker-execution.js +6 -23
- package/dist/runs/worker-execution.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/self-update-routes.d.ts +19 -19
- package/dist/server/server.d.ts +2929 -2929
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workflows/attachment-path.js +1 -2
- package/dist/workflows/attachment-path.js.map +1 -1
- package/dist/workflows/run/attachment-writer.js +1 -2
- package/dist/workflows/run/attachment-writer.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +1 -2
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/queued-input.js +1 -2
- package/dist/workflows/run/queued-input.js.map +1 -1
- package/dist/workflows/run/step-session.js +1 -2
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/package.json +4 -4
- package/dist/legacy-runs.d.ts +0 -56
- package/dist/legacy-runs.js +0 -122
- package/dist/legacy-runs.js.map +0 -1
|
@@ -18,7 +18,5 @@ export declare const workerExecutionSchema: z.ZodObject<{
|
|
|
18
18
|
export type WorkerExecution = z.infer<typeof workerExecutionSchema>;
|
|
19
19
|
/** Presence, not parseability, reserves scratch. Unknown evidence must never turn into an
|
|
20
20
|
* orphan merely because runs.json was missing, partly salvaged, or unreadable. Undefined
|
|
21
|
-
* means enumeration itself is uncertain: callers retain all scratch and retry later.
|
|
22
|
-
* project move left in `.ai/cezar/` keeps its evidence there; only such a task's own evidence
|
|
23
|
-
* files reserve it, so a kept task that never was a worker stays deletable. */
|
|
21
|
+
* means enumeration itself is uncertain: callers retain all scratch and retry later. */
|
|
24
22
|
export declare function workerEvidenceRunIds(dataDir: string): string[] | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { legacyRunsBeside, runDataDir } from '../legacy-runs.js';
|
|
2
1
|
import { lstatSync, readdirSync, realpathSync } from 'node:fs';
|
|
3
2
|
import { isAbsolute, join, resolve } from 'node:path';
|
|
4
3
|
import { z } from 'zod';
|
|
@@ -13,32 +12,16 @@ export const workerExecutionSchema = z.object({
|
|
|
13
12
|
!(proof.abandoned && proof.neverMaterialized));
|
|
14
13
|
/** Presence, not parseability, reserves scratch. Unknown evidence must never turn into an
|
|
15
14
|
* orphan merely because runs.json was missing, partly salvaged, or unreadable. Undefined
|
|
16
|
-
* means enumeration itself is uncertain: callers retain all scratch and retry later.
|
|
17
|
-
* project move left in `.ai/cezar/` keeps its evidence there; only such a task's own evidence
|
|
18
|
-
* files reserve it, so a kept task that never was a worker stays deletable. */
|
|
15
|
+
* means enumeration itself is uncertain: callers retain all scratch and retry later. */
|
|
19
16
|
export function workerEvidenceRunIds(dataDir) {
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
kept = new Set(legacyRunsBeside(dataDir));
|
|
23
|
-
}
|
|
24
|
-
catch {
|
|
25
|
-
return undefined;
|
|
26
|
-
} // an unreadable list: uncertain
|
|
27
|
-
const own = evidenceIdsIn(join(dataDir, 'runs'));
|
|
28
|
-
// Every listed task resolves to the same legacy directory, `.ai/cezar/` beside `dataDir`.
|
|
29
|
-
const legacy = kept.size === 0 ? [] : evidenceIdsIn(join(runDataDir(dataDir, [...kept][0]), 'runs'));
|
|
30
|
-
if (own === undefined || legacy === undefined)
|
|
31
|
-
return undefined;
|
|
32
|
-
return [...new Set([...own, ...legacy.filter(id => kept.has(id))])];
|
|
33
|
-
}
|
|
34
|
-
function evidenceIdsIn(dir) {
|
|
17
|
+
const dir = join(dataDir, 'runs');
|
|
35
18
|
try {
|
|
36
19
|
if (!lstatSync(dir).isDirectory() || realpathSync(dir) !== resolve(dir))
|
|
37
20
|
return undefined;
|
|
38
|
-
return readdirSync(dir).flatMap(name => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
21
|
+
return [...new Set(readdirSync(dir).flatMap(name => {
|
|
22
|
+
const match = /^([0-9a-f-]{36})\.(?:identity|execution|processes)\.json(?:\..*\.tmp)?$/i.exec(name);
|
|
23
|
+
return match && z.string().uuid().safeParse(match[1]).success ? [match[1]] : [];
|
|
24
|
+
}))];
|
|
42
25
|
}
|
|
43
26
|
catch (error) {
|
|
44
27
|
return error.code === 'ENOENT' ? [] : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-execution.js","sourceRoot":"","sources":["../../src/runs/worker-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"worker-execution.js","sourceRoot":"","sources":["../../src/runs/worker-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;2FAC2F;AAC3F,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UA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I,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,CAAC,CAAC,CAAC,CAAC,CAAC;IACP,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAAC,OAAQ,KAA+B,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAAC,CAAC;AACjG,CAAC"}
|
|
@@ -59,29 +59,6 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
|
|
|
59
59
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
60
60
|
"/workspace/activity": {
|
|
61
61
|
$get: {
|
|
62
|
-
output: {
|
|
63
|
-
error: string;
|
|
64
|
-
code?: "invalid_input" | undefined;
|
|
65
|
-
};
|
|
66
|
-
outputFormat: "json";
|
|
67
|
-
status: 400;
|
|
68
|
-
input: {
|
|
69
|
-
query: {
|
|
70
|
-
project?: string | undefined;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
} | {
|
|
74
|
-
output: {
|
|
75
|
-
error: string;
|
|
76
|
-
};
|
|
77
|
-
outputFormat: "json";
|
|
78
|
-
status: 404 | 409 | 503;
|
|
79
|
-
input: {
|
|
80
|
-
query: {
|
|
81
|
-
project?: string | undefined;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
} | {
|
|
85
62
|
output: {
|
|
86
63
|
generatedAt: string;
|
|
87
64
|
projects: {
|
|
@@ -312,6 +289,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
312
289
|
project?: string | undefined;
|
|
313
290
|
};
|
|
314
291
|
};
|
|
292
|
+
} | {
|
|
293
|
+
output: {
|
|
294
|
+
error: string;
|
|
295
|
+
code?: "invalid_input" | undefined;
|
|
296
|
+
};
|
|
297
|
+
outputFormat: "json";
|
|
298
|
+
status: 400;
|
|
299
|
+
input: {
|
|
300
|
+
query: {
|
|
301
|
+
project?: string | undefined;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
} | {
|
|
305
|
+
output: {
|
|
306
|
+
error: string;
|
|
307
|
+
};
|
|
308
|
+
outputFormat: "json";
|
|
309
|
+
status: 404 | 409 | 503;
|
|
310
|
+
input: {
|
|
311
|
+
query: {
|
|
312
|
+
project?: string | undefined;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
}, "/", "/workspace/activity">;
|
|
@@ -184,17 +184,6 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
184
184
|
} & {
|
|
185
185
|
"/workspace/self-update/channel": {
|
|
186
186
|
$put: {
|
|
187
|
-
output: {
|
|
188
|
-
error: string;
|
|
189
|
-
};
|
|
190
|
-
outputFormat: "json";
|
|
191
|
-
status: 500;
|
|
192
|
-
input: {
|
|
193
|
-
json: {
|
|
194
|
-
channel: "development" | "nightly" | "stable";
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
} | {
|
|
198
187
|
output: {
|
|
199
188
|
version: string;
|
|
200
189
|
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
@@ -241,22 +230,22 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
241
230
|
channel: "development" | "nightly" | "stable";
|
|
242
231
|
};
|
|
243
232
|
};
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
} & {
|
|
247
|
-
"/workspace/self-update/apply": {
|
|
248
|
-
$post: {
|
|
233
|
+
} | {
|
|
249
234
|
output: {
|
|
250
235
|
error: string;
|
|
251
236
|
};
|
|
252
237
|
outputFormat: "json";
|
|
253
|
-
status:
|
|
238
|
+
status: 500;
|
|
254
239
|
input: {
|
|
255
240
|
json: {
|
|
256
|
-
|
|
241
|
+
channel: "development" | "nightly" | "stable";
|
|
257
242
|
};
|
|
258
243
|
};
|
|
259
|
-
}
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
} & {
|
|
247
|
+
"/workspace/self-update/apply": {
|
|
248
|
+
$post: {
|
|
260
249
|
output: {
|
|
261
250
|
version: string;
|
|
262
251
|
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
@@ -303,6 +292,17 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
303
292
|
version: string;
|
|
304
293
|
};
|
|
305
294
|
};
|
|
295
|
+
} | {
|
|
296
|
+
output: {
|
|
297
|
+
error: string;
|
|
298
|
+
};
|
|
299
|
+
outputFormat: "json";
|
|
300
|
+
status: 409;
|
|
301
|
+
input: {
|
|
302
|
+
json: {
|
|
303
|
+
version: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
}, "/", "/workspace/self-update/apply">;
|