@hearsay-tools/squawk 0.18.0-dev.5860 → 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 +73 -73
- 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/activity-routes.d.ts +23 -23
- 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,CAAC,QAAQ,EAAE;IAC/H,6GA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,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"}
|
|
@@ -59,6 +59,29 @@ 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
|
+
} | {
|
|
62
85
|
output: {
|
|
63
86
|
generatedAt: string;
|
|
64
87
|
projects: {
|
|
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
289
312
|
project?: string | undefined;
|
|
290
313
|
};
|
|
291
314
|
};
|
|
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">;
|