@hearsay-tools/squawk 0.18.0-pr4079.7802 → 0.18.0-pr4080.7806
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/activity/read-model.js +1 -1
- package/dist/activity/read-model.js.map +1 -1
- package/dist/activity/requests.d.ts +3 -1
- package/dist/activity/requests.js +1 -1
- package/dist/activity/requests.js.map +1 -1
- package/dist/built-in-run-slots.d.ts +4 -3
- package/dist/built-in-run-slots.js +7 -3
- package/dist/built-in-run-slots.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +42 -42
- package/dist/delegation/execution-identity.d.ts +7 -2
- package/dist/delegation/execution-identity.js +34 -3
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/family-end.d.ts +3 -1
- package/dist/delegation/private-record-file.js.map +1 -0
- package/dist/delegation/results.js +2 -2
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +11 -11
- package/dist/delegation/scratch-cleanup.js +5 -5
- package/dist/delegation/scratch-cleanup.js.map +1 -1
- package/dist/delegation/service.js +5 -4
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +69 -69
- package/dist/delegation/worker-cleanup.js +11 -10
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/{runs → delegation}/worker-deletion-proof.d.ts +1 -1
- package/dist/delegation/worker-deletion-proof.js.map +1 -0
- package/dist/delegation/worker-executions.d.ts +70 -0
- package/dist/delegation/worker-executions.js +248 -0
- package/dist/delegation/worker-executions.js.map +1 -0
- package/dist/{runs → delegation}/worker-resource-holders.d.ts +1 -1
- package/dist/delegation/worker-resource-holders.js.map +1 -0
- package/dist/preview/host.d.ts +3 -1
- package/dist/preview/host.js +1 -1
- package/dist/preview/host.js.map +1 -1
- package/dist/runs/owned-run-create.d.ts +3 -3
- package/dist/runs/owned-run-create.js +1 -2
- package/dist/runs/owned-run-create.js.map +1 -1
- package/dist/runs/ports.d.ts +38 -14
- package/dist/runs/retention.d.ts +3 -1
- package/dist/runs/retention.js +3 -3
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/run-retention.d.ts +1 -1
- package/dist/runs/store.d.ts +6 -51
- package/dist/runs/store.js +21 -249
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/worker-executions-registry.d.ts +31 -0
- package/dist/runs/worker-executions-registry.js +20 -0
- package/dist/runs/worker-executions-registry.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/run-relationships.d.ts +3 -1
- package/dist/server/run-relationships.js +1 -1
- package/dist/server/run-relationships.js.map +1 -1
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1568 -1568
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/run/completion-gate.js +1 -1
- package/dist/workflows/run/completion-gate.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +1 -1
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/family-reconciler.js +2 -2
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.js +2 -2
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/run-cancel.js +4 -4
- package/dist/workflows/run/run-cancel.js.map +1 -1
- package/dist/workflows/run/run-recovery.js +2 -2
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/step-loop.js +2 -2
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/step-session.js +1 -1
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/worker-executions.js +6 -6
- package/dist/workflows/run/worker-executions.js.map +1 -1
- package/dist/workflows/run/worker-orphans.js +8 -8
- package/dist/workflows/run/worker-orphans.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-stuck-destroys.ts +2 -2
- package/scripts/benchmark-worker-lifecycle.ts +3 -2
- package/dist/runs/private-record-file.js.map +0 -1
- package/dist/runs/worker-deletion-proof.js.map +0 -1
- package/dist/runs/worker-resource-holders.js.map +0 -1
- /package/dist/{runs → delegation}/private-record-file.d.ts +0 -0
- /package/dist/{runs → delegation}/private-record-file.js +0 -0
- /package/dist/{runs → delegation}/worker-deletion-proof.js +0 -0
- /package/dist/{runs → delegation}/worker-resource-holders.js +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RunLifecycle } from './lifecycle.ts';
|
|
2
|
+
import type { WorkerExecutionRecords, WorkerExecutions, WorkerResults } from './ports.ts';
|
|
3
|
+
import type { RunRecord } from './store.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Where the store finds the worker execution, process and scope records (hearsay-tools/squawk#4039).
|
|
6
|
+
* The code that reads and writes them belongs to the workers feature (`delegation/`), which the core
|
|
7
|
+
* may not import (ADR 0065), so each process registers one factory before it opens a store: an
|
|
8
|
+
* entry through `registerBuiltInRunSlots()` (`built-in-run-slots.ts`), a test through
|
|
9
|
+
* `delegation/worker-executions.testkit.ts`. It is not a removal slot.
|
|
10
|
+
*
|
|
11
|
+
* Fail closed: the store builds its worker executions on first use, and with no factory registered
|
|
12
|
+
* that first use throws an error that names the missing registration, before any side effect. So no
|
|
13
|
+
* worker check of a deletion, a reclaim, an archive or an admission is skipped.
|
|
14
|
+
*/
|
|
15
|
+
/** What the worker executions get from the store they belong to. */
|
|
16
|
+
export interface WorkerExecutionsState {
|
|
17
|
+
peek(id: string): RunRecord | undefined;
|
|
18
|
+
getRun(id: string): RunRecord | undefined;
|
|
19
|
+
writeDir(id: string): string;
|
|
20
|
+
sourceDataDir(id: string): string;
|
|
21
|
+
commitIndex(input: ReadonlyMap<string, RunRecord | null>): void;
|
|
22
|
+
readonly published: RunLifecycle;
|
|
23
|
+
readonly workerResults: WorkerResults;
|
|
24
|
+
}
|
|
25
|
+
export type WorkerExecutionsFactory = (dataDir: string, state: WorkerExecutionsState) => WorkerExecutions & WorkerExecutionRecords;
|
|
26
|
+
/** Register this process's factory. Registering the same factory again does nothing; another one throws. */
|
|
27
|
+
export declare function registerWorkerExecutions(factory: WorkerExecutionsFactory): void;
|
|
28
|
+
/** The registered factory. Throws when none is registered. */
|
|
29
|
+
export declare function workerExecutionsFactory(): WorkerExecutionsFactory;
|
|
30
|
+
/** Whether this process registered a factory. Never throws. */
|
|
31
|
+
export declare function workerExecutionsRegistered(): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
let registered;
|
|
2
|
+
/** Register this process's factory. Registering the same factory again does nothing; another one throws. */
|
|
3
|
+
export function registerWorkerExecutions(factory) {
|
|
4
|
+
if (registered && registered !== factory)
|
|
5
|
+
throw new Error('A different worker-executions factory is already registered in this process.');
|
|
6
|
+
registered = factory;
|
|
7
|
+
}
|
|
8
|
+
/** The registered factory. Throws when none is registered. */
|
|
9
|
+
export function workerExecutionsFactory() {
|
|
10
|
+
if (!registered) {
|
|
11
|
+
throw new Error('No worker-executions factory is registered: call registerBuiltInRunSlots() from built-in-run-slots.ts at the process entry, '
|
|
12
|
+
+ 'or import delegation/worker-executions.testkit.ts in this test.');
|
|
13
|
+
}
|
|
14
|
+
return registered;
|
|
15
|
+
}
|
|
16
|
+
/** Whether this process registered a factory. Never throws. */
|
|
17
|
+
export function workerExecutionsRegistered() {
|
|
18
|
+
return registered !== undefined;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=worker-executions-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-executions-registry.js","sourceRoot":"","sources":["../../src/runs/worker-executions-registry.ts"],"names":[],"mappings":"AA6BA,IAAI,UAA+C,CAAC;AAEpD,4GAA4G;AAC5G,MAAM,UAAU,wBAAwB,CAAC,OAAgC;IACvE,IAAI,UAAU,IAAI,UAAU,KAAK,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;IAC1I,UAAU,GAAG,OAAO,CAAC;AACvB,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,uBAAuB;IACrC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,8HAA8H;cAC1I,iEAAiE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,0BAA0B;IACxC,OAAO,UAAU,KAAK,SAAS,CAAC;AAClC,CAAC"}
|
|
@@ -30,10 +30,19 @@ export declare function createModelsRoutes(options: {
|
|
|
30
30
|
};
|
|
31
31
|
} | {
|
|
32
32
|
output: {
|
|
33
|
-
|
|
33
|
+
runner: string;
|
|
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;
|
|
34
43
|
};
|
|
35
44
|
outputFormat: "json";
|
|
36
|
-
status:
|
|
45
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
37
46
|
input: {
|
|
38
47
|
query: {
|
|
39
48
|
runner: string | string[];
|
|
@@ -54,19 +63,10 @@ export declare function createModelsRoutes(options: {
|
|
|
54
63
|
};
|
|
55
64
|
} | {
|
|
56
65
|
output: {
|
|
57
|
-
|
|
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;
|
|
66
|
+
error: string;
|
|
67
67
|
};
|
|
68
68
|
outputFormat: "json";
|
|
69
|
-
status:
|
|
69
|
+
status: 400;
|
|
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: 400;
|
|
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: 409;
|
|
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: 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;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { RunRelationships } from '../contract/index.js';
|
|
2
2
|
import type { RunRecord } from '../runs/store.ts';
|
|
3
3
|
import type { RunFamilyReads, RunLookup, WorkerExecutions } from '../runs/ports.ts';
|
|
4
|
-
type Reads = RunLookup & Pick<RunFamilyReads, 'listOwnedWorkers'> &
|
|
4
|
+
type Reads = RunLookup & Pick<RunFamilyReads, 'listOwnedWorkers'> & {
|
|
5
|
+
readonly workerExecutions: Pick<WorkerExecutions, 'readWorkerExecution'>;
|
|
6
|
+
};
|
|
5
7
|
/**
|
|
6
8
|
* What the cockpit shows around one run: a root's whole family, each worker naming the worker that
|
|
7
9
|
* started it; a worker's own supervised workers, with its parent and its supervisor.
|
|
@@ -26,7 +26,7 @@ export function runRelationships(store, run) {
|
|
|
26
26
|
return [{ workerId: worker.id, parentRunId: owned.parentRunId,
|
|
27
27
|
...(owned.supervisorRunId === undefined ? {} : { supervisorRunId: owned.supervisorRunId }),
|
|
28
28
|
status: worker.status, workspace: owned.workspace,
|
|
29
|
-
settled: workerObservation(worker, store.readWorkerExecution(worker.id)).settled,
|
|
29
|
+
settled: workerObservation(worker, store.workerExecutions.readWorkerExecution(worker.id)).settled,
|
|
30
30
|
...(worker.currentStepId === undefined ? {} : { currentStepId: worker.currentStepId }),
|
|
31
31
|
...(owned.destroy ? { destroy: workerDestroyView(worker) } : {}),
|
|
32
32
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-relationships.js","sourceRoot":"","sources":["../../src/server/run-relationships.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGnF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI5G;;;;;;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAY,EAAE,GAAc;IAC3D,MAAM,MAAM,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAClG,MAAM,YAAY,GAAG,GAAG,CAAC,UAAU,EAAE,IAAI,KAAK,QAAQ,CAAC,CA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,OAAO,CAAC,EAAE,CAAC,CAAC;QAC3G,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK;QACpC,GAAG,CAAC,OAAO,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;QACrF,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC;KACnF,CAAC,CAAC,CAAC;IACJ,OAAO;QACL,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzF,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO;QACjF,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACxC,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -51,11 +51,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
51
51
|
"/runner-install/:runner": {
|
|
52
52
|
$post: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
supported: boolean;
|
|
55
|
+
installedVersion: string | null;
|
|
56
|
+
latestVersion: string | null;
|
|
57
|
+
updateAvailable: boolean;
|
|
58
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
59
|
+
error: string | null;
|
|
56
60
|
};
|
|
57
61
|
outputFormat: "json";
|
|
58
|
-
status:
|
|
62
|
+
status: 202;
|
|
59
63
|
input: {
|
|
60
64
|
param: {
|
|
61
65
|
runner: string;
|
|
@@ -67,15 +71,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
67
71
|
};
|
|
68
72
|
} | {
|
|
69
73
|
output: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
latestVersion: string | null;
|
|
73
|
-
updateAvailable: boolean;
|
|
74
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
75
|
-
error: string | null;
|
|
74
|
+
error: string;
|
|
75
|
+
code?: "invalid_input" | undefined;
|
|
76
76
|
};
|
|
77
77
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
78
|
+
status: 400;
|
|
79
79
|
input: {
|
|
80
80
|
param: {
|
|
81
81
|
runner: string;
|