@cat-factory/kernel 0.15.0 → 0.15.1
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.
|
@@ -8,31 +8,16 @@ export interface RunnerJobResult {
|
|
|
8
8
|
branch?: string;
|
|
9
9
|
summary?: string;
|
|
10
10
|
error?: string;
|
|
11
|
-
/** A
|
|
12
|
-
service?: unknown;
|
|
13
|
-
/** A spec-writer job's prescriptive specification doc (the `/spec` endpoint's product). */
|
|
14
|
-
spec?: unknown;
|
|
15
|
-
/** A bootstrap job's pushed default branch (the `/bootstrap` endpoint's product). */
|
|
11
|
+
/** A repo-bootstrap job's pushed default branch (the bootstrap coding flow's product). */
|
|
16
12
|
defaultBranch?: string;
|
|
17
|
-
/** A
|
|
18
|
-
assessment?: unknown;
|
|
19
|
-
/** An `on-call` job's release-regression assessment (the `/on-call` endpoint's product). */
|
|
20
|
-
onCallAssessment?: unknown;
|
|
21
|
-
/** A `ci-fixer` job's outcome: whether it pushed a fix to the PR branch. */
|
|
13
|
+
/** A coding job's outcome: whether it pushed a change (the in-place fixers / conflict-resolver). */
|
|
22
14
|
pushed?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* A conflict-resolver job's outcome: whether the PR branch is now mergeable (the
|
|
25
|
-
* `/resolve-conflicts` endpoint's product). `false` means conflicts remain.
|
|
26
|
-
*/
|
|
27
|
-
resolved?: boolean;
|
|
28
|
-
/** A `tester` job's structured test report (the `/test` endpoint's product). */
|
|
29
|
-
report?: unknown;
|
|
30
15
|
/**
|
|
31
16
|
* A generic `agent` (explore, structured-output) job's parsed JSON result. The
|
|
32
|
-
* backend's post-op coerces
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
17
|
+
* backend's post-op / `toRunResult` coerces, validates + renders artifact files from
|
|
18
|
+
* it — this is the single channel every structured agent (built-in or custom) uses
|
|
19
|
+
* (the migrated blueprints/spec-writer/merger/on-call/tester all return their JSON here,
|
|
20
|
+
* coerced into the well-known engine field kind-aware in the executor's `toRunResult`).
|
|
36
21
|
*/
|
|
37
22
|
custom?: unknown;
|
|
38
23
|
/**
|
|
@@ -48,17 +33,16 @@ export interface RunnerJobResult {
|
|
|
48
33
|
};
|
|
49
34
|
}
|
|
50
35
|
/**
|
|
51
|
-
* Which harness agent a dispatch targets
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* executor-harness image,
|
|
58
|
-
*
|
|
59
|
-
* new harness kind reaches it automatically, never silently diverging from Cloudflare.
|
|
36
|
+
* Which harness agent a dispatch targets. The strangler is complete: every built-in
|
|
37
|
+
* agent (coder, blueprints, spec-writer, the read-only design agents, the fixers, merger,
|
|
38
|
+
* on-call, tester, conflict-resolver, bootstrap) is now expressed as the SINGLE,
|
|
39
|
+
* manifest-driven `agent` kind — the job body's `mode` (explore | coding) and its data
|
|
40
|
+
* select the flow. `kind` travels in the job body to the harness's single `POST /jobs`
|
|
41
|
+
* endpoint. The Cloudflare backend and a self-hosted runner pool both serve it from the
|
|
42
|
+
* same executor-harness image, so runtime parity is automatic. Kept as a (now single-member)
|
|
43
|
+
* type so the transport seam stays explicit and a future second kind has a home.
|
|
60
44
|
*/
|
|
61
|
-
export type RunnerDispatchKind = 'agent'
|
|
45
|
+
export type RunnerDispatchKind = 'agent';
|
|
62
46
|
/**
|
|
63
47
|
* Optional, transport-level provisioning hints resolved per-service at dispatch.
|
|
64
48
|
* A self-hosted pool forwards `instanceTypeId` (and `provider`) so it can provision
|
|
@@ -108,10 +92,9 @@ export interface RunnerTransport {
|
|
|
108
92
|
/**
|
|
109
93
|
* Start the job `ref.jobId` (in run `ref.runId`) with the harness job `spec`, or
|
|
110
94
|
* re-attach to one already running for that ref. Must be idempotent per ref so a
|
|
111
|
-
* replayed dispatch never starts a duplicate. `kind`
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* via {@link poll}.
|
|
95
|
+
* replayed dispatch never starts a duplicate. `kind` is the single manifest-driven
|
|
96
|
+
* `agent` kind (carried in the job body; the body's `mode` + data select the flow);
|
|
97
|
+
* the job is polled via {@link poll}.
|
|
115
98
|
*/
|
|
116
99
|
dispatch(ref: RunnerJobRef, spec: Record<string, unknown>, kind?: RunnerDispatchKind, options?: RunnerDispatchOptions): Promise<void>;
|
|
117
100
|
/** Poll the job's current state. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-transport.d.ts","sourceRoot":"","sources":["../../src/ports/runner-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAyBtD,oFAAoF;AACpF,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAA;AAE5C,0DAA0D;AAC1D,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,
|
|
1
|
+
{"version":3,"file":"runner-transport.d.ts","sourceRoot":"","sources":["../../src/ports/runner-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAyBtD,oFAAoF;AACpF,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAA;AAE5C,0DAA0D;AAC1D,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0FAA0F;IAC1F,aAA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