@hearsay-tools/squawk 0.18.0-dev.5855 → 0.18.0-dev.5863
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 +3 -1
- package/dist/artifacts/reports-index.js.map +1 -1
- package/dist/artifacts/store.d.ts +1 -1
- package/dist/artifacts/store.js +3 -1
- package/dist/artifacts/store.js.map +1 -1
- package/dist/autosave-cleanup.d.ts +2 -1
- package/dist/autosave-cleanup.js +8 -6
- package/dist/autosave-cleanup.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +4 -4
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/delegation/context.js +4 -2
- package/dist/delegation/context.js.map +1 -1
- package/dist/delegation/results.js +3 -2
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +11 -11
- package/dist/delegation/transport.d.ts +4 -4
- package/dist/handoff.js +2 -1
- package/dist/handoff.js.map +1 -1
- package/dist/legacy-runs.d.ts +56 -0
- package/dist/legacy-runs.js +122 -0
- package/dist/legacy-runs.js.map +1 -0
- package/dist/preview/agent-marker.js +9 -6
- package/dist/preview/agent-marker.js.map +1 -1
- package/dist/preview/dev-server.js +31 -10
- package/dist/preview/dev-server.js.map +1 -1
- package/dist/preview/host.js +3 -2
- package/dist/preview/host.js.map +1 -1
- package/dist/project-migration/answer.d.ts +2 -0
- package/dist/project-migration/answer.js +7 -5
- package/dist/project-migration/answer.js.map +1 -1
- package/dist/project-migration/auto.d.ts +15 -8
- package/dist/project-migration/auto.js +24 -26
- package/dist/project-migration/auto.js.map +1 -1
- package/dist/project-migration/cli.js +3 -2
- package/dist/project-migration/cli.js.map +1 -1
- package/dist/project-migration/containment.d.ts +1 -1
- package/dist/project-migration/containment.js +4 -2
- package/dist/project-migration/containment.js.map +1 -1
- package/dist/project-migration/engine.d.ts +5 -1
- package/dist/project-migration/engine.js +18 -1
- package/dist/project-migration/engine.js.map +1 -1
- package/dist/project-migration/journal.d.ts +8 -2
- package/dist/project-migration/journal.js +9 -2
- package/dist/project-migration/journal.js.map +1 -1
- package/dist/project-migration/live.d.ts +20 -5
- package/dist/project-migration/live.js +47 -5
- package/dist/project-migration/live.js.map +1 -1
- package/dist/project-migration/offline.d.ts +6 -4
- package/dist/project-migration/offline.js +8 -6
- package/dist/project-migration/offline.js.map +1 -1
- package/dist/project-migration/plan.d.ts +28 -2
- package/dist/project-migration/plan.js +151 -36
- package/dist/project-migration/plan.js.map +1 -1
- package/dist/project-migration/steps.js +56 -3
- package/dist/project-migration/steps.js.map +1 -1
- package/dist/project-paths.d.ts +3 -1
- package/dist/project-paths.js +9 -2
- package/dist/project-paths.js.map +1 -1
- package/dist/runs/agent-tmpdir.js +4 -3
- package/dist/runs/agent-tmpdir.js.map +1 -1
- package/dist/runs/history-file.js +6 -3
- 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 +3 -1
- package/dist/runs/worker-execution.js +23 -6
- package/dist/runs/worker-execution.js.map +1 -1
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/self-update-routes.d.ts +19 -19
- package/dist/server/server.d.ts +1381 -1381
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workflows/attachment-path.js +2 -1
- package/dist/workflows/attachment-path.js.map +1 -1
- package/dist/workflows/run/attachment-writer.js +2 -1
- package/dist/workflows/run/attachment-writer.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +2 -1
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/queued-input.js +2 -1
- package/dist/workflows/run/queued-input.js.map +1 -1
- package/dist/workflows/run/step-session.js +2 -1
- 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
|
@@ -18,5 +18,7 @@ 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.
|
|
21
|
+
* means enumeration itself is uncertain: callers retain all scratch and retry later. A task the
|
|
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. */
|
|
22
24
|
export declare function workerEvidenceRunIds(dataDir: string): string[] | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { legacyRunsBeside, runDataDir } from '../legacy-runs.js';
|
|
1
2
|
import { lstatSync, readdirSync, realpathSync } from 'node:fs';
|
|
2
3
|
import { isAbsolute, join, resolve } from 'node:path';
|
|
3
4
|
import { z } from 'zod';
|
|
@@ -12,16 +13,32 @@ export const workerExecutionSchema = z.object({
|
|
|
12
13
|
!(proof.abandoned && proof.neverMaterialized));
|
|
13
14
|
/** Presence, not parseability, reserves scratch. Unknown evidence must never turn into an
|
|
14
15
|
* orphan merely because runs.json was missing, partly salvaged, or unreadable. Undefined
|
|
15
|
-
* means enumeration itself is uncertain: callers retain all scratch and retry later.
|
|
16
|
+
* means enumeration itself is uncertain: callers retain all scratch and retry later. A task the
|
|
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. */
|
|
16
19
|
export function workerEvidenceRunIds(dataDir) {
|
|
17
|
-
|
|
20
|
+
let kept;
|
|
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) {
|
|
18
35
|
try {
|
|
19
36
|
if (!lstatSync(dir).isDirectory() || realpathSync(dir) !== resolve(dir))
|
|
20
37
|
return undefined;
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
return readdirSync(dir).flatMap(name => {
|
|
39
|
+
const match = /^([0-9a-f-]{36})\.(?:identity|execution|processes)\.json(?:\..*\.tmp)?$/i.exec(name);
|
|
40
|
+
return match && z.string().uuid().safeParse(match[1]).success ? [match[1]] : [];
|
|
41
|
+
});
|
|
25
42
|
}
|
|
26
43
|
catch (error) {
|
|
27
44
|
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,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,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,C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CAAC,CAAC,CAAC;IACtG,IAAI,GAAG,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAChE,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,SAAS,aAAa,CAAC,GAAW;IAChC,IAAI,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC;YAAE,OAAO,SAAS,CAAC;QAC1F,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACrC,MAAM,KAAK,GAAG,0EAA0E,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpG,OAAO,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,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;QACnF,CAAC,CAAC,CAAC;IACL,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"}
|
|
@@ -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;
|
|
@@ -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">;
|