@hearsay-tools/squawk 0.18.0-pr4076.7799 → 0.18.0-pr4079.7802
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/ci-wait/controller.d.ts +42 -42
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/delegation/removal-slot.js +1 -1
- package/dist/delegation/removal-slot.js.map +1 -1
- package/dist/delegation/results.js +4 -4
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +4 -4
- package/dist/delegation/service.js +6 -6
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/delegation/worker-cleanup.js +2 -2
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/runs/ports.d.ts +9 -6
- package/dist/runs/removal-slots.d.ts +4 -2
- package/dist/runs/retention.d.ts +4 -2
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/run-retention.d.ts +3 -6
- package/dist/runs/run-retention.js +7 -7
- package/dist/runs/run-retention.js.map +1 -1
- package/dist/runs/store.d.ts +4 -12
- package/dist/runs/store.js +15 -80
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/worker-result-commit.js +1 -1
- package/dist/runs/worker-results.d.ts +38 -0
- package/dist/runs/worker-results.js +87 -0
- package/dist/runs/worker-results.js.map +1 -0
- package/dist/server/models-routes.d.ts +13 -13
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1595 -1595
- package/dist/workflows/run/completion-gate.js +1 -1
- package/dist/workflows/run/completion-gate.js.map +1 -1
- package/dist/workflows/run/family-reconciler.js +1 -1
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Publish a worker-result snapshot and its parent pointer. `
|
|
2
|
+
* Publish a worker-result snapshot and its parent pointer. `WorkerResultsTopic.commitWorkerResult` is a
|
|
3
3
|
* thin call into `commitStoreWorkerResult`; ownership, obsolescence and disk writes stay here.
|
|
4
4
|
*/
|
|
5
5
|
import { randomUUID } from 'node:crypto';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The worker-results topic of the run store (hearsay-tools/squawk#4038): the saved snapshot of a
|
|
3
|
+
* worker's collected result, its path, the read checks and the commit. `RunStore` keeps one of
|
|
4
|
+
* these as `store.workerResults`; the commit itself is `runs/worker-result-commit.ts`.
|
|
5
|
+
*/
|
|
6
|
+
import type { DelegationState, RunRecord, WorkerCollectedResult } from '../contract/index.js';
|
|
7
|
+
import type { WorkerResults } from './ports.ts';
|
|
8
|
+
/** What the topic asks of the store; no import of `store.ts`. */
|
|
9
|
+
export interface WorkerResultsState {
|
|
10
|
+
peek(id: string): RunRecord | undefined;
|
|
11
|
+
hasRun(id: string): boolean;
|
|
12
|
+
hasFallbackRun(id: string): boolean;
|
|
13
|
+
writeDir(id: string): string;
|
|
14
|
+
sourceDataDir(id: string): string;
|
|
15
|
+
/** The result as the store's redaction leaves it. */
|
|
16
|
+
redactResult(value: WorkerCollectedResult): WorkerCollectedResult;
|
|
17
|
+
redactText(text: string): string;
|
|
18
|
+
commitDelegation(patches: ReadonlyArray<{
|
|
19
|
+
id: string;
|
|
20
|
+
delegation: DelegationState;
|
|
21
|
+
}>): void;
|
|
22
|
+
}
|
|
23
|
+
export declare class WorkerResultsTopic implements WorkerResults {
|
|
24
|
+
private readonly dataDir;
|
|
25
|
+
private readonly state;
|
|
26
|
+
constructor(dataDir: string, state: WorkerResultsState);
|
|
27
|
+
private workerResultsDir;
|
|
28
|
+
workerResultSnapshotPath(parentId: string, workerId: string, snapshotId: string): string;
|
|
29
|
+
private readWorkerResultFile;
|
|
30
|
+
readWorkerResult(parentId: string, workerId: string): WorkerCollectedResult | undefined;
|
|
31
|
+
readWorkerResultDiff(parentId: string, workerId: string): string | undefined;
|
|
32
|
+
/** Publish a pointer only after its redacted immutable snapshot reaches disk. */
|
|
33
|
+
commitWorkerResult(parentId: string, value: WorkerCollectedResult, diffSnapshot?: string, opts?: {
|
|
34
|
+
ignoreCleanup?: boolean;
|
|
35
|
+
}): WorkerCollectedResult;
|
|
36
|
+
/** Complete replacement evidence can stand in for absent child history, never for a present execution. */
|
|
37
|
+
readDeletedWorkerResult(parentId: string, workerId: string): WorkerCollectedResult | undefined;
|
|
38
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { workerResultFileSchema } from '../contract/index.js';
|
|
2
|
+
import { closeSync, constants, fstatSync, openSync, readFileSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { runDataDir } from '../project-paths.js';
|
|
6
|
+
import { upgradeRemovedRunnerResult } from './legacy-run-rows.js';
|
|
7
|
+
import { bindWorkerResultPath, workerResultsDirectory } from './project-run-sources.js';
|
|
8
|
+
import { commitStoreWorkerResult } from './worker-result-commit.js';
|
|
9
|
+
export class WorkerResultsTopic {
|
|
10
|
+
dataDir;
|
|
11
|
+
state;
|
|
12
|
+
constructor(dataDir, state) {
|
|
13
|
+
this.dataDir = dataDir;
|
|
14
|
+
this.state = state;
|
|
15
|
+
}
|
|
16
|
+
workerResultsDir(parentId, write = false) { return workerResultsDirectory(write ? this.state.writeDir(parentId) : this.state.sourceDataDir(parentId), parentId, write); }
|
|
17
|
+
workerResultSnapshotPath(parentId, workerId, snapshotId) {
|
|
18
|
+
return join(runDataDir(this.dataDir, parentId), 'runs', `${z.uuid().parse(parentId)}-worker-results`, `${z.uuid().parse(workerId)}.${z.uuid().parse(snapshotId)}.json`);
|
|
19
|
+
}
|
|
20
|
+
readWorkerResultFile(parentId, workerId) {
|
|
21
|
+
const parent = this.state.peek(parentId);
|
|
22
|
+
if (parent?.delegation?.role !== 'root' || !parent.delegation.receipts.some(receipt => receipt.workerId === workerId))
|
|
23
|
+
return undefined;
|
|
24
|
+
const reference = parent.delegation.results?.find(result => result.workerId === workerId);
|
|
25
|
+
if (!reference)
|
|
26
|
+
return undefined;
|
|
27
|
+
try {
|
|
28
|
+
const path = join(this.workerResultsDir(parentId), `${z.uuid().parse(workerId)}.${z.uuid().parse(reference.snapshotId)}.json`);
|
|
29
|
+
const fd = openSync(path, constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK);
|
|
30
|
+
let raw;
|
|
31
|
+
try {
|
|
32
|
+
const info = fstatSync(fd);
|
|
33
|
+
if (!info.isFile() || info.size > 3_145_728)
|
|
34
|
+
return undefined;
|
|
35
|
+
raw = readFileSync(fd, 'utf8');
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
closeSync(fd);
|
|
39
|
+
}
|
|
40
|
+
const file = workerResultFileSchema.parse(upgradeRemovedRunnerResult(JSON.parse(raw)));
|
|
41
|
+
if (!bindWorkerResultPath(file.result.diff, this.dataDir, this.state.hasFallbackRun(parentId), parentId, path))
|
|
42
|
+
return undefined;
|
|
43
|
+
if (file.result.parentRunId !== parentId || file.result.workerId !== workerId || file.result.workspace.ownerRunId !== workerId || file.result.revision !== reference.revision || file.result.observedAt !== reference.observedAt ||
|
|
44
|
+
(file.result.diff.state === 'available' && (file.result.diff.snapshotId !== reference.snapshotId || file.diffSnapshot === undefined)))
|
|
45
|
+
return undefined;
|
|
46
|
+
return file;
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
readWorkerResult(parentId, workerId) {
|
|
53
|
+
return this.readWorkerResultFile(parentId, workerId)?.result;
|
|
54
|
+
}
|
|
55
|
+
readWorkerResultDiff(parentId, workerId) {
|
|
56
|
+
return this.readWorkerResultFile(parentId, workerId)?.diffSnapshot;
|
|
57
|
+
}
|
|
58
|
+
/** Publish a pointer only after its redacted immutable snapshot reaches disk. */
|
|
59
|
+
commitWorkerResult(parentId, value, diffSnapshot, opts = {}) {
|
|
60
|
+
return commitStoreWorkerResult({
|
|
61
|
+
redactResult: (result) => this.state.redactResult(result),
|
|
62
|
+
peek: (id) => this.state.peek(id),
|
|
63
|
+
readWorkerResultFile: (id, workerId) => this.readWorkerResultFile(id, workerId),
|
|
64
|
+
readWorkerResult: (id, workerId) => this.readWorkerResult(id, workerId),
|
|
65
|
+
redactText: (text) => this.state.redactText(text),
|
|
66
|
+
workerResultSnapshotPath: (id, workerId, snapshotId) => this.workerResultSnapshotPath(id, workerId, snapshotId),
|
|
67
|
+
workerResultsDir: (id) => this.workerResultsDir(id, true),
|
|
68
|
+
commitDelegation: (patches) => this.state.commitDelegation(patches),
|
|
69
|
+
}, parentId, value, diffSnapshot, opts);
|
|
70
|
+
}
|
|
71
|
+
/** Complete replacement evidence can stand in for absent child history, never for a present execution. */
|
|
72
|
+
readDeletedWorkerResult(parentId, workerId) {
|
|
73
|
+
if (this.state.hasRun(workerId))
|
|
74
|
+
return undefined;
|
|
75
|
+
const parent = this.state.peek(parentId);
|
|
76
|
+
if (parent?.delegation?.role !== 'root' || parent.delegation.historyDeletion)
|
|
77
|
+
return undefined;
|
|
78
|
+
const deletion = parent.delegation.receipts.find(receipt => receipt.workerId === workerId)?.deletion;
|
|
79
|
+
if (deletion?.phase !== 'complete')
|
|
80
|
+
return undefined;
|
|
81
|
+
const result = this.readWorkerResult(parentId, workerId);
|
|
82
|
+
return result?.settled && ['review', 'done', 'failed', 'cancelled'].includes(result.status) &&
|
|
83
|
+
result.cleanup === 'complete' && result.revision === deletion.revision &&
|
|
84
|
+
result.workspace.resourceId === deletion.resourceId ? result : undefined;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=worker-results.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-results.js","sourceRoot":"","sources":["../../src/runs/worker-results.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC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AAM,EAAE,UAAU,EAAE,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC,eAAe;YAAE,OAAO,SAAS,CAAC;QAC/F,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,EAAE,QAAQ,CAAC;QACrG,IAAI,QAAQ,EAAE,KAAK,KAAK,UAAU;YAAE,OAAO,SAAS,CAAC;QACrD,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACzD,OAAO,MAAM,EAAE,OAAO,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACzF,MAAM,CAAC,OAAO,KAAK,UAAU,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;YACtE,MAAM,CAAC,SAAS,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -30,19 +30,10 @@ export declare function createModelsRoutes(options: {
|
|
|
30
30
|
};
|
|
31
31
|
} | {
|
|
32
32
|
output: {
|
|
33
|
-
|
|
34
|
-
models: {
|
|
35
|
-
id: string;
|
|
36
|
-
label: string;
|
|
37
|
-
description: string;
|
|
38
|
-
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
39
|
-
}[];
|
|
40
|
-
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
41
|
-
stale: boolean;
|
|
42
|
-
reason?: string;
|
|
33
|
+
error: string;
|
|
43
34
|
};
|
|
44
35
|
outputFormat: "json";
|
|
45
|
-
status:
|
|
36
|
+
status: 400;
|
|
46
37
|
input: {
|
|
47
38
|
query: {
|
|
48
39
|
runner: string | string[];
|
|
@@ -63,10 +54,19 @@ export declare function createModelsRoutes(options: {
|
|
|
63
54
|
};
|
|
64
55
|
} | {
|
|
65
56
|
output: {
|
|
66
|
-
|
|
57
|
+
runner: string;
|
|
58
|
+
models: {
|
|
59
|
+
id: string;
|
|
60
|
+
label: string;
|
|
61
|
+
description: string;
|
|
62
|
+
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
63
|
+
}[];
|
|
64
|
+
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
65
|
+
stale: boolean;
|
|
66
|
+
reason?: string;
|
|
67
67
|
};
|
|
68
68
|
outputFormat: "json";
|
|
69
|
-
status:
|
|
69
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
70
70
|
input: {
|
|
71
71
|
query: {
|
|
72
72
|
runner: string | string[];
|
|
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
|
|
|
18
18
|
error: string;
|
|
19
19
|
};
|
|
20
20
|
outputFormat: "json";
|
|
21
|
-
status:
|
|
21
|
+
status: 409;
|
|
22
22
|
input: {
|
|
23
23
|
json: {
|
|
24
24
|
provider: string;
|
|
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
|
|
|
30
30
|
error: string;
|
|
31
31
|
};
|
|
32
32
|
outputFormat: "json";
|
|
33
|
-
status:
|
|
33
|
+
status: 400;
|
|
34
34
|
input: {
|
|
35
35
|
json: {
|
|
36
36
|
provider: string;
|
|
@@ -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: 400;
|
|
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: 409;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
|
@@ -51,15 +51,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
51
51
|
"/runner-install/:runner": {
|
|
52
52
|
$post: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
latestVersion: string | null;
|
|
57
|
-
updateAvailable: boolean;
|
|
58
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
59
|
-
error: string | null;
|
|
54
|
+
error: string;
|
|
55
|
+
code?: "invalid_input" | undefined;
|
|
60
56
|
};
|
|
61
57
|
outputFormat: "json";
|
|
62
|
-
status:
|
|
58
|
+
status: 400;
|
|
63
59
|
input: {
|
|
64
60
|
param: {
|
|
65
61
|
runner: string;
|
|
@@ -71,11 +67,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
71
67
|
};
|
|
72
68
|
} | {
|
|
73
69
|
output: {
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
supported: boolean;
|
|
71
|
+
installedVersion: string | null;
|
|
72
|
+
latestVersion: string | null;
|
|
73
|
+
updateAvailable: boolean;
|
|
74
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
75
|
+
error: string | null;
|
|
76
76
|
};
|
|
77
77
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
78
|
+
status: 202;
|
|
79
79
|
input: {
|
|
80
80
|
param: {
|
|
81
81
|
runner: string;
|