@aui.io/apollo 0.1.60 → 0.1.66
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/node_modules/@aui.io/apollo-cli/dist/src/commands/bundles.js +236 -93
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/bundles.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/operate.js +4 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/operate.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.js +22 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/status.js +19 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/status.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/upgrade.d.ts +12 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/upgrade.js +21 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/upgrade.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/index.d.ts +11 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/index.js +95 -8
- package/node_modules/@aui.io/apollo-cli/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/update-refresh.d.ts +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/update-refresh.js +21 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/update-refresh.js.map +1 -0
- package/node_modules/@aui.io/apollo-cli/package.json +3 -3
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/builder-api.d.ts +117 -41
- package/node_modules/@aui.io/apollo-core/dist/src/api/builder-api.js +26 -25
- package/node_modules/@aui.io/apollo-core/dist/src/api/builder-api.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/runtime-api.d.ts +0 -18
- package/node_modules/@aui.io/apollo-core/dist/src/api/runtime-api.js +0 -8
- package/node_modules/@aui.io/apollo-core/dist/src/api/runtime-api.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.d.ts +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.js +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/types.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/errors/index.d.ts +30 -0
- package/node_modules/@aui.io/apollo-core/dist/src/errors/index.js +47 -0
- package/node_modules/@aui.io/apollo-core/dist/src/errors/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/index.d.ts +6 -4
- package/node_modules/@aui.io/apollo-core/dist/src/index.js +4 -2
- package/node_modules/@aui.io/apollo-core/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/output/index.d.ts +31 -5
- package/node_modules/@aui.io/apollo-core/dist/src/output/index.js +36 -5
- package/node_modules/@aui.io/apollo-core/dist/src/output/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/availability.d.ts +81 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/availability.js +260 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/availability.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.d.ts +7 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.js +2 -1
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/builds.d.ts +5 -8
- package/node_modules/@aui.io/apollo-core/dist/src/services/builds.js +5 -7
- package/node_modules/@aui.io/apollo-core/dist/src/services/builds.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.d.ts +7 -11
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.js +22 -18
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/clients.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.js +64 -2
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/runs.d.ts +84 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/runs.js +186 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/runs.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.d.ts +8 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.js +15 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/update-check.d.ts +105 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/update-check.js +265 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/update-check.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/upgrade.d.ts +11 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/upgrade.js +6 -2
- package/node_modules/@aui.io/apollo-core/dist/src/services/upgrade.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/package.json +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/index.d.ts +2 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/index.js +2 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.d.ts +10 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js +58 -12
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.d.ts +3 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js +2 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/update.d.ts +16 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/update.js +21 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/update.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js +37 -19
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/FooterHints.d.ts +24 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/FooterHints.js +41 -4
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/FooterHints.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/theme/glyphs.d.ts +2 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/theme/glyphs.js +2 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/theme/glyphs.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/package.json +2 -2
- package/package.json +4 -4
- package/node_modules/@aui.io/apollo-core/dist/src/services/evaluations.d.ts +0 -42
- package/node_modules/@aui.io/apollo-core/dist/src/services/evaluations.js +0 -106
- package/node_modules/@aui.io/apollo-core/dist/src/services/evaluations.js.map +0 -1
|
@@ -6,9 +6,6 @@ import type { HttpClient } from "./client-types.js";
|
|
|
6
6
|
* (the builder's own wheel), not the checkout's runtime pin: they are the
|
|
7
7
|
* builder's opinion of the tree, the same one a `/build` turn would hold.
|
|
8
8
|
*/
|
|
9
|
-
/** Certification replays the whole suite offline — slow by design, like a
|
|
10
|
-
* message send (REPORTS-27). A floor, not a ceiling: `--timeout` still wins. */
|
|
11
|
-
export declare const CERTIFY_TIMEOUT_MS = 300000;
|
|
12
9
|
/**
|
|
13
10
|
* `{path: content}` for the whole checkout — `src/**` the program,
|
|
14
11
|
* `build/**` the proof material. Text rides plain; binary rides `{b64}`.
|
|
@@ -64,19 +61,6 @@ export interface ScenarioFailure {
|
|
|
64
61
|
name: string;
|
|
65
62
|
reasons: string[];
|
|
66
63
|
}
|
|
67
|
-
/** The eval runner's verdict in its own vocabulary. A refusal (misplaced
|
|
68
|
-
* suite, red validation, no suite) is a failed report whose `program_errors`
|
|
69
|
-
* say why — the shape never changes on the caller. */
|
|
70
|
-
export interface BuilderCertification {
|
|
71
|
-
passed: boolean;
|
|
72
|
-
total: number;
|
|
73
|
-
passed_count: number;
|
|
74
|
-
failures: ScenarioFailure[];
|
|
75
|
-
program_errors: string[];
|
|
76
|
-
uncovered: Record<string, string[]>;
|
|
77
|
-
routing: Record<string, unknown>;
|
|
78
|
-
surface: Record<string, unknown>;
|
|
79
|
-
}
|
|
80
64
|
/** One question for the advisor over one tree. `files` rides EVERY call —
|
|
81
65
|
* follow-ups included — so the advisor sees the current checkout, never a
|
|
82
66
|
* stale pin; `advisor_session_id` (from a prior answer) keeps the thread. */
|
|
@@ -107,26 +91,64 @@ export interface AdvisorView {
|
|
|
107
91
|
answer: string | null;
|
|
108
92
|
usage: Record<string, unknown> | null;
|
|
109
93
|
}
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
94
|
+
/**
|
|
95
|
+
* The two proving lanes (builder/flow/regressions-and-evaluations-plan.md):
|
|
96
|
+
* a REGRESSION drives the scripted suite (`build/scenarios.yaml`) through the
|
|
97
|
+
* simulator, nobody improvising; an EVALUATION plans improvising callers from
|
|
98
|
+
* guidelines and grades them, ending on a macro verdict. One row shape, one
|
|
99
|
+
* poll shape, the id prefix (`reg-…` / `eval-…`) and `kind` tell them apart.
|
|
100
|
+
*/
|
|
101
|
+
export type RunKind = "evaluation" | "regression";
|
|
102
|
+
/** The knobs an evaluation takes beside its guidelines — the server's
|
|
103
|
+
* `EvaluationConfig`, wire-named. Absent fields take the server's defaults. */
|
|
104
|
+
export interface EvaluationConfig {
|
|
105
|
+
/** How many simulated conversations the plan may spend. */
|
|
106
|
+
simulations?: number;
|
|
107
|
+
min_turns?: number;
|
|
108
|
+
max_turns?: number;
|
|
109
|
+
seed?: number;
|
|
110
|
+
/** World pins applied to every simulation (identity / persona / subject /
|
|
111
|
+
* complication) unless the plan row pins the slot itself. */
|
|
112
|
+
world?: Record<string, string>;
|
|
113
|
+
/** The report structure wanted back, in the operator's words. */
|
|
114
|
+
return?: string;
|
|
115
|
+
}
|
|
116
|
+
/** One evaluation over one shipped tree (the detached lane). `files` is the
|
|
117
|
+
* whole checkout — `src/**` the program, `build/**` the records the
|
|
118
|
+
* evaluator plans from; `guidelines` says what to evaluate; `agent_id`
|
|
112
119
|
* names whose workspace the trial threads belong to; `version_tag` labels
|
|
113
|
-
* them (absent: the agent's active tag)
|
|
114
|
-
* named codes — a scoped run is a fixing-loop tool, never promotable. */
|
|
120
|
+
* them (absent: the agent's active tag). */
|
|
115
121
|
export interface EvaluateRequest {
|
|
122
|
+
agent_id: string;
|
|
123
|
+
files: BuilderTree;
|
|
124
|
+
guidelines: string;
|
|
125
|
+
config?: EvaluationConfig;
|
|
126
|
+
message?: string;
|
|
127
|
+
version_tag?: string;
|
|
128
|
+
}
|
|
129
|
+
/** One regression over one shipped tree. `files` must carry
|
|
130
|
+
* `build/scenarios.yaml` (and `build/cases.yaml` when `judge` is on);
|
|
131
|
+
* `scenarios` selects codes, absent means the whole suite. */
|
|
132
|
+
export interface RegressRequest {
|
|
116
133
|
agent_id: string;
|
|
117
134
|
files: BuilderTree;
|
|
118
135
|
message?: string;
|
|
119
136
|
scenarios?: string[];
|
|
137
|
+
judge?: boolean;
|
|
120
138
|
version_tag?: string;
|
|
121
139
|
}
|
|
122
|
-
/** The 202 — the run to poll, sized before a single trial moves.
|
|
123
|
-
|
|
124
|
-
|
|
140
|
+
/** The 202 — the run to poll, sized before a single trial moves. An
|
|
141
|
+
* evaluation's receipt names it `evaluation_id`, a regression's
|
|
142
|
+
* `regression_id`; `run_id` below is whichever the lane answered. */
|
|
143
|
+
export interface RunReceipt {
|
|
144
|
+
evaluation_id?: string;
|
|
145
|
+
regression_id?: string;
|
|
125
146
|
status: string;
|
|
126
147
|
scope: string;
|
|
127
148
|
total_trials: number;
|
|
128
149
|
scenarios: string[];
|
|
129
|
-
judge_model
|
|
150
|
+
judge_model?: string | null;
|
|
151
|
+
warnings?: string[];
|
|
130
152
|
}
|
|
131
153
|
/** One trial row — `thread_id` opens the minted conversation. */
|
|
132
154
|
export interface EvaluationTrial {
|
|
@@ -137,22 +159,66 @@ export interface EvaluationTrial {
|
|
|
137
159
|
verdict: {
|
|
138
160
|
passed?: boolean;
|
|
139
161
|
reasons?: string[];
|
|
162
|
+
expectations?: {
|
|
163
|
+
text?: string;
|
|
164
|
+
met?: boolean;
|
|
165
|
+
evidence?: string;
|
|
166
|
+
}[];
|
|
140
167
|
} | null;
|
|
141
168
|
turns: number | null;
|
|
142
169
|
error: string | null;
|
|
143
170
|
}
|
|
171
|
+
/** One reading a person (or the builder) left on a settled run. The latest
|
|
172
|
+
* entry carrying a `verdict` is the run's `effective_verdict`. */
|
|
173
|
+
export interface RunAnnotation {
|
|
174
|
+
at: number;
|
|
175
|
+
by: string | null;
|
|
176
|
+
text: string;
|
|
177
|
+
verdict?: "pass" | "fail" | "mixed";
|
|
178
|
+
}
|
|
179
|
+
/** The evaluator's big picture over a whole evaluation, written at settle. */
|
|
180
|
+
export interface MacroVerdict {
|
|
181
|
+
summary: string;
|
|
182
|
+
verdict: "pass" | "fail" | "mixed";
|
|
183
|
+
findings?: {
|
|
184
|
+
severity: string;
|
|
185
|
+
title: string;
|
|
186
|
+
detail: string;
|
|
187
|
+
simulations?: string[];
|
|
188
|
+
cases?: string[];
|
|
189
|
+
}[];
|
|
190
|
+
coverage?: {
|
|
191
|
+
case: string;
|
|
192
|
+
probed_by?: string[];
|
|
193
|
+
verdict: string;
|
|
194
|
+
}[];
|
|
195
|
+
candidate_scenarios?: {
|
|
196
|
+
code: string;
|
|
197
|
+
covers?: string[];
|
|
198
|
+
turns: string[];
|
|
199
|
+
why?: string;
|
|
200
|
+
}[];
|
|
201
|
+
report?: string;
|
|
202
|
+
}
|
|
144
203
|
/** The poll view: the run row plus its trial rows. `verdict` and the
|
|
145
204
|
* tallies stay null until the run settles; `status` leaves
|
|
146
|
-
* queued/running/cancelling exactly once.
|
|
205
|
+
* queued/running/cancelling exactly once. `effective_verdict` is what a
|
|
206
|
+
* reader should take the run as — the latest annotation's verdict, else
|
|
207
|
+
* the macro verdict, else the rollup's. */
|
|
147
208
|
export interface EvaluationView {
|
|
148
209
|
evaluation_id: string;
|
|
210
|
+
kind: RunKind;
|
|
149
211
|
session_id: string | null;
|
|
150
212
|
agent_id: string | null;
|
|
151
213
|
status: string;
|
|
152
214
|
scope: string;
|
|
153
215
|
message: string | null;
|
|
216
|
+
guidelines?: string | null;
|
|
154
217
|
judge_model: string | null;
|
|
155
218
|
verdict: string | null;
|
|
219
|
+
effective_verdict?: string | null;
|
|
220
|
+
macro_verdict?: MacroVerdict | null;
|
|
221
|
+
annotations?: RunAnnotation[];
|
|
156
222
|
pass_scenarios: number | null;
|
|
157
223
|
total_scenarios: number | null;
|
|
158
224
|
result: {
|
|
@@ -170,6 +236,16 @@ export interface EvaluationView {
|
|
|
170
236
|
error: string | null;
|
|
171
237
|
trials: EvaluationTrial[];
|
|
172
238
|
}
|
|
239
|
+
/** The run's evidence as files, in the layout the builder writes under
|
|
240
|
+
* `tmp/<kind>s/<id>/` — the scoreboard, the plan and macro verdict when
|
|
241
|
+
* the run has them, and per trial the transcript, trace and verdict. */
|
|
242
|
+
export interface RunArtifacts {
|
|
243
|
+
evaluation_id: string;
|
|
244
|
+
kind: RunKind;
|
|
245
|
+
root: string;
|
|
246
|
+
files: Record<string, string>;
|
|
247
|
+
note: string;
|
|
248
|
+
}
|
|
173
249
|
/** One build over one pushed agent. No files ride in — the service pulls
|
|
174
250
|
* the agent's bundle itself; `version_tag` names the base (absent: the
|
|
175
251
|
* agent's current pin). */
|
|
@@ -180,8 +256,6 @@ export interface BuildRequest {
|
|
|
180
256
|
/** The push message — lands on the draft revision like a commit line. */
|
|
181
257
|
message?: string;
|
|
182
258
|
model?: string;
|
|
183
|
-
/** Run the evaluation suite on the settled tree before approving. */
|
|
184
|
-
evaluate?: boolean;
|
|
185
259
|
/** Flip the agent's active pointer to the pushed revision. */
|
|
186
260
|
publish?: boolean;
|
|
187
261
|
max_usd?: number;
|
|
@@ -205,14 +279,6 @@ export interface BuildView {
|
|
|
205
279
|
turn_status: string | null;
|
|
206
280
|
answer: string | null;
|
|
207
281
|
findings: BuilderFinding[] | null;
|
|
208
|
-
certification: BuilderCertification | null;
|
|
209
|
-
evaluation: {
|
|
210
|
-
evaluation_id: string;
|
|
211
|
-
status: string;
|
|
212
|
-
verdict?: string | null;
|
|
213
|
-
pass_scenarios?: number | null;
|
|
214
|
-
total_scenarios?: number | null;
|
|
215
|
-
} | null;
|
|
216
282
|
version_tag: string | null;
|
|
217
283
|
revision_id: string | null;
|
|
218
284
|
published: Record<string, unknown> | null;
|
|
@@ -226,18 +292,28 @@ export declare class BuilderApiClient {
|
|
|
226
292
|
* draws an `unresolved-secret` warning for wiring that is fine where it
|
|
227
293
|
* matters. Names only ride into the gate, never values. */
|
|
228
294
|
validateTree(files: BuilderTree, agentId?: string): Promise<BuilderValidation>;
|
|
229
|
-
certifyTree(files: BuilderTree, scenarios?: Record<string, unknown>[]): Promise<BuilderCertification>;
|
|
230
295
|
/** Enqueue one advisor turn (202 immediately — the answer comes by poll). */
|
|
231
296
|
advise(ask: AdvisorAsk): Promise<AdvisorStarted>;
|
|
232
297
|
adviceView(turnId: string): Promise<AdvisorView>;
|
|
233
|
-
/** Enqueue one detached evaluation (202 immediately — the
|
|
234
|
-
*
|
|
235
|
-
startEvaluation(request: EvaluateRequest): Promise<
|
|
236
|
-
|
|
237
|
-
|
|
298
|
+
/** Enqueue one detached evaluation (202 immediately — the verdict comes
|
|
299
|
+
* by poll; there is no session and no SSE stream). */
|
|
300
|
+
startEvaluation(request: EvaluateRequest): Promise<RunReceipt>;
|
|
301
|
+
/** Enqueue one detached regression — the scripted suite, live. */
|
|
302
|
+
startRegression(request: RegressRequest): Promise<RunReceipt>;
|
|
303
|
+
/** The poll — one run by id, either lane. */
|
|
304
|
+
runView(kind: RunKind, runId: string): Promise<EvaluationView>;
|
|
305
|
+
cancelRun(kind: RunKind, runId: string): Promise<{
|
|
238
306
|
evaluation_id: string;
|
|
239
307
|
status: string;
|
|
240
308
|
}>;
|
|
309
|
+
/** Append one reading to a settled run; answers the run as it now reads. */
|
|
310
|
+
annotateRun(kind: RunKind, runId: string, annotation: {
|
|
311
|
+
text: string;
|
|
312
|
+
verdict?: "pass" | "fail" | "mixed";
|
|
313
|
+
}): Promise<EvaluationView>;
|
|
314
|
+
/** The run's evidence as files (`--pull`'s source). `all` false keeps
|
|
315
|
+
* only the trials that did not pass. */
|
|
316
|
+
runArtifacts(kind: RunKind, runId: string, all?: boolean): Promise<RunArtifacts>;
|
|
241
317
|
/** Enqueue one build (202 immediately — the verdict comes by poll). The
|
|
242
318
|
* idempotency key makes a network retry the SAME build, not a second one. */
|
|
243
319
|
startBuild(build: BuildRequest, idempotencyKey: string): Promise<BuildStarted>;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* (the builder's own wheel), not the checkout's runtime pin: they are the
|
|
6
|
-
* builder's opinion of the tree, the same one a `/build` turn would hold.
|
|
7
|
-
*/
|
|
8
|
-
/** Certification replays the whole suite offline — slow by design, like a
|
|
9
|
-
* message send (REPORTS-27). A floor, not a ceiling: `--timeout` still wins. */
|
|
10
|
-
export const CERTIFY_TIMEOUT_MS = 300_000;
|
|
1
|
+
/** The wire path segment per lane. */
|
|
2
|
+
function lanePath(kind) {
|
|
3
|
+
return kind === "regression" ? "regressions" : "evaluations";
|
|
4
|
+
}
|
|
11
5
|
export class BuilderApiClient {
|
|
12
6
|
http;
|
|
13
7
|
constructor(http) {
|
|
@@ -23,13 +17,6 @@ export class BuilderApiClient {
|
|
|
23
17
|
body: { files, ...(agentId ? { agent_id: agentId } : {}) },
|
|
24
18
|
});
|
|
25
19
|
}
|
|
26
|
-
certifyTree(files, scenarios) {
|
|
27
|
-
return this.http.request("/v1/builder/certify", {
|
|
28
|
-
method: "POST",
|
|
29
|
-
body: { files, ...(scenarios ? { scenarios } : {}) },
|
|
30
|
-
timeoutMs: CERTIFY_TIMEOUT_MS,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
20
|
/** Enqueue one advisor turn (202 immediately — the answer comes by poll). */
|
|
34
21
|
advise(ask) {
|
|
35
22
|
return this.http.request("/v1/builder/advisor", {
|
|
@@ -40,23 +27,37 @@ export class BuilderApiClient {
|
|
|
40
27
|
adviceView(turnId) {
|
|
41
28
|
return this.http.request(`/v1/builder/advisor/${turnId}`);
|
|
42
29
|
}
|
|
43
|
-
/** Enqueue one detached evaluation (202 immediately — the
|
|
44
|
-
*
|
|
30
|
+
/** Enqueue one detached evaluation (202 immediately — the verdict comes
|
|
31
|
+
* by poll; there is no session and no SSE stream). */
|
|
45
32
|
startEvaluation(request) {
|
|
46
33
|
return this.http.request("/v1/builder/evaluate", {
|
|
47
34
|
method: "POST",
|
|
48
35
|
body: request,
|
|
49
36
|
});
|
|
50
37
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
cancelEvaluation(evaluationId) {
|
|
55
|
-
return this.http.request(`/v1/builder/evaluations/${evaluationId}/cancel`, {
|
|
38
|
+
/** Enqueue one detached regression — the scripted suite, live. */
|
|
39
|
+
startRegression(request) {
|
|
40
|
+
return this.http.request("/v1/builder/regress", {
|
|
56
41
|
method: "POST",
|
|
57
|
-
body:
|
|
42
|
+
body: request,
|
|
58
43
|
});
|
|
59
44
|
}
|
|
45
|
+
/** The poll — one run by id, either lane. */
|
|
46
|
+
runView(kind, runId) {
|
|
47
|
+
return this.http.request(`/v1/builder/${lanePath(kind)}/${encodeURIComponent(runId)}`);
|
|
48
|
+
}
|
|
49
|
+
cancelRun(kind, runId) {
|
|
50
|
+
return this.http.request(`/v1/builder/${lanePath(kind)}/${encodeURIComponent(runId)}/cancel`, { method: "POST", body: {} });
|
|
51
|
+
}
|
|
52
|
+
/** Append one reading to a settled run; answers the run as it now reads. */
|
|
53
|
+
annotateRun(kind, runId, annotation) {
|
|
54
|
+
return this.http.request(`/v1/builder/${lanePath(kind)}/${encodeURIComponent(runId)}/annotations`, { method: "POST", body: annotation });
|
|
55
|
+
}
|
|
56
|
+
/** The run's evidence as files (`--pull`'s source). `all` false keeps
|
|
57
|
+
* only the trials that did not pass. */
|
|
58
|
+
runArtifacts(kind, runId, all = true) {
|
|
59
|
+
return this.http.request(`/v1/builder/${lanePath(kind)}/${encodeURIComponent(runId)}/artifacts?all=${all}`);
|
|
60
|
+
}
|
|
60
61
|
/** Enqueue one build (202 immediately — the verdict comes by poll). The
|
|
61
62
|
* idempotency key makes a network retry the SAME build, not a second one. */
|
|
62
63
|
startBuild(build, idempotencyKey) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-api.js","sourceRoot":"","sources":["../../../src/api/builder-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builder-api.js","sourceRoot":"","sources":["../../../src/api/builder-api.ts"],"names":[],"mappings":"AA+OA,sCAAsC;AACtC,SAAS,QAAQ,CAAC,IAAa;IAC7B,OAAO,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC;AAC/D,CAAC;AA2CD,MAAM,OAAO,gBAAgB;IACS;IAApC,YAAoC,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExD;;;gEAG4D;IACrD,YAAY,CACjB,KAAkB,EAClB,OAAgB;QAEhB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE;YAC/C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;SAC3D,CAA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I,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,cAAc,EACxE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CACrC,CAAC;IACJ,CAAC;IAED;6CACyC;IAClC,YAAY,CAAC,IAAa,EAAE,KAAa,EAAE,GAAG,GAAG,IAAI;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CACtB,eAAe,QAAQ,CAAC,IAAI,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,kBAAkB,GAAG,EAAE,CAClF,CAAC;IACJ,CAAC;IAED;kFAC8E;IACvE,UAAU,CAAC,KAAmB,EAAE,cAAsB;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,EAAE,iBAAiB,EAAE,cAAc,EAAE;SAC/C,CAAC,CAAC;IACL,CAAC;IAEM,SAAS,CAAC,OAAe;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -161,22 +161,4 @@ export declare class RuntimeApiClient {
|
|
|
161
161
|
runtime_version?: string;
|
|
162
162
|
reports?: Record<string, unknown>;
|
|
163
163
|
}>;
|
|
164
|
-
/** The behavioural counterpart to validate: run the bundle's own scenario
|
|
165
|
-
* suite against it, graded by the runtime floor. Read-only on the server. */
|
|
166
|
-
certifyProgram(bundle: Record<string, unknown>, scenarios?: unknown[]): Promise<{
|
|
167
|
-
ran: boolean;
|
|
168
|
-
passed: number;
|
|
169
|
-
total: number;
|
|
170
|
-
report?: string;
|
|
171
|
-
failures?: string[];
|
|
172
|
-
results?: {
|
|
173
|
-
name: string;
|
|
174
|
-
passed: boolean;
|
|
175
|
-
reasons?: string[];
|
|
176
|
-
}[];
|
|
177
|
-
errors?: {
|
|
178
|
-
code: string;
|
|
179
|
-
message: string;
|
|
180
|
-
}[];
|
|
181
|
-
}>;
|
|
182
164
|
}
|
|
@@ -131,13 +131,5 @@ export class RuntimeApiClient {
|
|
|
131
131
|
body: { bundle, ...(options.agentId ? { agent_id: options.agentId } : {}) },
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
/** The behavioural counterpart to validate: run the bundle's own scenario
|
|
135
|
-
* suite against it, graded by the runtime floor. Read-only on the server. */
|
|
136
|
-
certifyProgram(bundle, scenarios) {
|
|
137
|
-
return this.http.request("/api/v1/programs/certify", {
|
|
138
|
-
method: "POST",
|
|
139
|
-
body: { bundle, ...(scenarios === undefined ? {} : { scenarios }) },
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
134
|
}
|
|
143
135
|
//# sourceMappingURL=runtime-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-api.js","sourceRoot":"","sources":["../../../src/api/runtime-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAqFrC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AAEvC,MAAM,OAAO,gBAAgB;IACS;IAApC,YAAoC,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAEjD,MAAM;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAEM,WAAW,CAChB,OAA2B,EAC3B,KAAyB;QAEzB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE;YACjD,MAAM,EAAE,MAAM;YACd,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9D,IAAI,EAAE,KAAK;YACX,SAAS,EAAE,eAAe;SAC3B,CAAC,CAAC;IACL,CAA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C;CAEF"}
|
|
@@ -29,3 +29,4 @@ export declare function updateProfile(homeDir: string, profile: string): Promise
|
|
|
29
29
|
/** Bootstrap default project for one profile × environment (config.json). */
|
|
30
30
|
export declare function defaultProject(config: UserConfig, profile: string, environment: Environment): string | undefined;
|
|
31
31
|
export declare function setDefaultProject(homeDir: string, profile: string, environment: Environment, projectId: string | undefined): Promise<void>;
|
|
32
|
+
export declare function writeJsonAtomic(path: string, value: unknown, mode: number): Promise<void>;
|
|
@@ -143,7 +143,7 @@ export async function setDefaultProject(homeDir, profile, environment, projectId
|
|
|
143
143
|
}
|
|
144
144
|
await writeUserConfig(homeDir, next);
|
|
145
145
|
}
|
|
146
|
-
async function writeJsonAtomic(path, value, mode) {
|
|
146
|
+
export async function writeJsonAtomic(path, value, mode) {
|
|
147
147
|
await mkdir(dirname(path), { recursive: true, mode: 0o700 });
|
|
148
148
|
const temporary = `${path}.${process.pid}.tmp`;
|
|
149
149
|
await writeFile(temporary, `${JSON.stringify(value, null, 2)}\n`, { mode });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/config/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAajD,KAAK,UAAU,QAAQ,CAAI,IAAY;IACrC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAM,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAA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OAAO,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,IAAY,EACZ,KAAc,EACd,IAAY;IAEZ,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7D,MAAM,SAAS,GAAG,GAAG,IAAI,IAAI,OAAO,CAAC,GAAG,MAAM,CAAC;IAC/C,MAAM,SAAS,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,MAAM,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -14,7 +14,7 @@ export interface BaseUrls {
|
|
|
14
14
|
kbm: string;
|
|
15
15
|
/** agent-settings — scenarios (build bundles, evaluation scores) + runtime reads. */
|
|
16
16
|
agentSettings: string;
|
|
17
|
-
/** builder-api — the headless authoring verbs (`validate`, `
|
|
17
|
+
/** builder-api — the headless authoring verbs (`validate`, `advise`, `build`). */
|
|
18
18
|
builder: string;
|
|
19
19
|
}
|
|
20
20
|
export interface ProjectBinding {
|
|
@@ -30,6 +30,36 @@ export declare class ConfigError extends CliError {
|
|
|
30
30
|
export declare class ValidationError extends CliError {
|
|
31
31
|
constructor(message: string, suggestion?: string);
|
|
32
32
|
}
|
|
33
|
+
export type RuntimeUnavailableReason = "not-in-catalog" | "routed-elsewhere" | "unreachable";
|
|
34
|
+
/**
|
|
35
|
+
* The checkout's pinned runtime is no longer served — its family was retired
|
|
36
|
+
* from the catalog, its deployment is gone, or the gateway now routes the pin
|
|
37
|
+
* to a different engine. Every engine-needing verb refuses on it; the fix is
|
|
38
|
+
* always the same three commands, so the suggestion spells them out.
|
|
39
|
+
*/
|
|
40
|
+
export declare class RuntimeUnavailableError extends CliError {
|
|
41
|
+
/** The pin as the checkout recorded it (e.g. "0.9.2"). */
|
|
42
|
+
readonly pinned: string;
|
|
43
|
+
readonly reason: RuntimeUnavailableReason;
|
|
44
|
+
/** The catalog's newest published build — the re-pin target. */
|
|
45
|
+
readonly latest?: string;
|
|
46
|
+
constructor(options: {
|
|
47
|
+
pinned: string;
|
|
48
|
+
reason: RuntimeUnavailableReason;
|
|
49
|
+
/** The catalog display name ("v2.1"); absent when the catalog has no record. */
|
|
50
|
+
label?: string;
|
|
51
|
+
latest?: string;
|
|
52
|
+
detail?: unknown;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The three steps that move a checkout off a dead runtime, in order: re-pin
|
|
57
|
+
* (which refreshes the schemas/skills the new engine serves), checkpoint the
|
|
58
|
+
* current state, then let the builder upgrade the program under the new pin.
|
|
59
|
+
* `latest` is the catalog's newest published build; "latest" is the
|
|
60
|
+
* `apollo runtime use` alias when the catalog could not name one.
|
|
61
|
+
*/
|
|
62
|
+
export declare function runtimeUpgradeSuggestion(latest?: string): string;
|
|
33
63
|
export declare class ApiError extends CliError {
|
|
34
64
|
readonly service: string;
|
|
35
65
|
readonly status: number;
|
|
@@ -51,6 +51,53 @@ export class ValidationError extends CliError {
|
|
|
51
51
|
this.name = "ValidationError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* The checkout's pinned runtime is no longer served — its family was retired
|
|
56
|
+
* from the catalog, its deployment is gone, or the gateway now routes the pin
|
|
57
|
+
* to a different engine. Every engine-needing verb refuses on it; the fix is
|
|
58
|
+
* always the same three commands, so the suggestion spells them out.
|
|
59
|
+
*/
|
|
60
|
+
export class RuntimeUnavailableError extends CliError {
|
|
61
|
+
/** The pin as the checkout recorded it (e.g. "0.9.2"). */
|
|
62
|
+
pinned;
|
|
63
|
+
reason;
|
|
64
|
+
/** The catalog's newest published build — the re-pin target. */
|
|
65
|
+
latest;
|
|
66
|
+
constructor(options) {
|
|
67
|
+
const shown = options.label && options.label !== options.pinned
|
|
68
|
+
? `${options.pinned} (${options.label})`
|
|
69
|
+
: options.pinned;
|
|
70
|
+
const message = options.reason === "not-in-catalog"
|
|
71
|
+
? `This checkout is pinned to runtime ${shown}, which is no longer offered.`
|
|
72
|
+
: `This checkout is pinned to runtime ${shown}, which is no longer available.`;
|
|
73
|
+
super(message, {
|
|
74
|
+
code: "RUNTIME_UNAVAILABLE",
|
|
75
|
+
exitCode: ExitCode.runtime,
|
|
76
|
+
suggestion: runtimeUpgradeSuggestion(options.latest),
|
|
77
|
+
...(options.detail === undefined ? {} : { detail: options.detail }),
|
|
78
|
+
});
|
|
79
|
+
this.name = "RuntimeUnavailableError";
|
|
80
|
+
this.pinned = options.pinned;
|
|
81
|
+
this.reason = options.reason;
|
|
82
|
+
if (options.latest !== undefined)
|
|
83
|
+
this.latest = options.latest;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The three steps that move a checkout off a dead runtime, in order: re-pin
|
|
88
|
+
* (which refreshes the schemas/skills the new engine serves), checkpoint the
|
|
89
|
+
* current state, then let the builder upgrade the program under the new pin.
|
|
90
|
+
* `latest` is the catalog's newest published build; "latest" is the
|
|
91
|
+
* `apollo runtime use` alias when the catalog could not name one.
|
|
92
|
+
*/
|
|
93
|
+
export function runtimeUpgradeSuggestion(latest) {
|
|
94
|
+
const to = latest ?? "latest";
|
|
95
|
+
return [
|
|
96
|
+
`Re-pin and refresh the checkout: apollo runtime use ${to}`,
|
|
97
|
+
`Keep a copy of the current state: apollo push -m "Before upgrading to ${to}"`,
|
|
98
|
+
`Upgrade the program under it: apollo build "Upgrade this agent runtime version"`,
|
|
99
|
+
].join("\n");
|
|
100
|
+
}
|
|
54
101
|
export class ApiError extends CliError {
|
|
55
102
|
service;
|
|
56
103
|
status;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"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C;CACF;AAED;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAe;IACtD,MAAM,EAAE,GAAG,MAAM,IAAI,QAAQ,CAAC;IAC9B,OAAO;QACL,yDAAyD,EAAE,EAAE;QAC7D,0EAA0E,EAAE,GAAG;QAC/E,sFAAsF;KACvF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAC3B,OAAO,CAAS;IAChB,MAAM,CAAS;IACf,IAAI,CAAS;IAEtB,YAAY,OAOX;QACC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE;YACrB,IAAI,EAAE,OAAO,OAAO,CAAC,MAAM,EAAE;YAC7B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,IAAI,KAAK,YAAY,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,IAAI,QAAQ,CAAC,+BAA+B,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -7,7 +7,7 @@ export { MOCKDB_SERVICE_NAME, MockDbClient, mockDbErrorCode, type MockDbAuth, ty
|
|
|
7
7
|
export { VaultClient, type VaultScope, type VaultScopeType, type VaultSecret, type VaultSecretCreate, type VaultSecretUpdate, } from "./api/vault.js";
|
|
8
8
|
export { KbmClient, type BulkFilesResponse, type BulkResourceResult, type BulkWebsitesResponse, type IndexingJob, type KnowledgeBase, type UploadFilePart, } from "./api/kbm.js";
|
|
9
9
|
export { RuntimeApiClient, type AgentOverride, type Message, type RuntimeTrace, type SendMessageRequest, type SendMessageResponse, type SkillFile, type SkillIndexItem, type Thread, } from "./api/runtime-api.js";
|
|
10
|
-
export { BuilderApiClient, type AdvisorAsk, type AdvisorStarted, type AdvisorView, type
|
|
10
|
+
export { BuilderApiClient, type AdvisorAsk, type AdvisorStarted, type AdvisorView, type BuilderFinding, type BuilderTree, type BuilderValidation, type BuildRequest, type BuildStarted, type BuildView, type EraCensus, type OrphanCensus, type ScenarioFailure, } from "./api/builder-api.js";
|
|
11
11
|
export { Transport, type FormBody, type FormFilePart, type RequestCapture, type TransportOptions, } from "./api/transport.js";
|
|
12
12
|
export { CaptureLog, captureLog, defaultCapturePath, type CaptureSink, } from "./api/capture.js";
|
|
13
13
|
export { pageLane, setPageLane, type PageLane } from "./api/lane.js";
|
|
@@ -20,15 +20,16 @@ export { environmentDefinition, knownEnvironments, parseEnvironment, registerEnv
|
|
|
20
20
|
export { clearMockDbKeys, keyPrefixes, loadMockDbKeys, saveMockDbKeys, type MockDbKeys, } from "./config/mockdb-keys.js";
|
|
21
21
|
export { apolloDir, findBinding, patchBinding, readBinding, readCredentials, readUserConfig, updateEnvironment, updateProfile, writeBinding, writeCredentials, writeUserConfig, type ConfigPaths, } from "./config/store.js";
|
|
22
22
|
export { type BaseUrls, type ConfigFlags, type Context, type Credential, type CredentialsFile, type Environment, type ProjectBinding, type UserConfig, type WorkspacePreferences, } from "./config/types.js";
|
|
23
|
-
export { ApiError, AuthError, CliError, ConfigError, ExitCode, ValidationError, toCliError, type ExitCodeValue, } from "./errors/index.js";
|
|
24
|
-
export { Output, errorEnvelope, successEnvelope, type ErrorEnvelope, type OutputOptions, } from "./output/index.js";
|
|
23
|
+
export { ApiError, AuthError, CliError, ConfigError, ExitCode, RuntimeUnavailableError, ValidationError, runtimeUpgradeSuggestion, toCliError, type ExitCodeValue, type RuntimeUnavailableReason, } from "./errors/index.js";
|
|
24
|
+
export { Output, errorEnvelope, successEnvelope, type ErrorEnvelope, type OutputOptions, type SuccessEnvelope, } from "./output/index.js";
|
|
25
25
|
export { loginWithBrowser, loginWithOtp, loginWithToken, logout, requestOtp, } from "./services/auth.js";
|
|
26
|
-
export { DEFAULT_SKILL_TARGETS, RUNTIME_REFRESH_DIRECTIVE, agentRoot, importBundle, listVersions, localDiff, pullBundle, pullCheckout, pushBundle, readCheckoutTree, refreshRuntimeAssets, remoteDiff, validateLocalBundle, validateProgramBundle, type BuildAreaSync, type BundleValidation, type PullCheckoutOptions, type PullCheckoutResult, type PushCheckoutResult, type RuntimeAssetsOptions, type RuntimeAssetsResult,
|
|
26
|
+
export { DEFAULT_SKILL_TARGETS, RUNTIME_REFRESH_DIRECTIVE, agentRoot, importBundle, listVersions, localDiff, pullBundle, pullCheckout, pushBundle, readCheckoutTree, refreshRuntimeAssets, remoteDiff, validateLocalBundle, validateProgramBundle, type BuildAreaSync, type BundleValidation, type PullCheckoutOptions, type PullCheckoutResult, type PushCheckoutResult, type RuntimeAssetsOptions, type RuntimeAssetsResult, } from "./services/bundles.js";
|
|
27
27
|
export { ADVISE_DEADLINE_MS, adviseLocalBundle, readAdvisorState, writeAdvisorState, type AdviceResult, type AdviseOptions, type AdvisorState, } from "./services/advisor.js";
|
|
28
28
|
export { BUILD_DEADLINE_MS, buildAgent, type BuildOptions, } from "./services/builds.js";
|
|
29
29
|
export { createClients, type Clients } from "./services/clients.js";
|
|
30
30
|
export { listEnvironments, setEnvironment, type EnvironmentResult, type EnvironmentSummary, } from "./services/env.service.js";
|
|
31
31
|
export { agentRuntimeVersion, bindAgent, createAgent, createProject, initialVersionTag, latestPublishedRuntimeVersion, listAgents, listOrganizations, listProjects, unlinkAgent, useOrganization, useProject, useVersion, } from "./services/hierarchy.js";
|
|
32
|
+
export { AVAILABILITY_CACHE_FILE, AVAILABILITY_CACHE_TTL_MS, assertRuntimeAvailable, availabilityCachePath, checkRuntimeAvailability, familyOf, probeRuntimeAvailability, verdictFromHealth, type AvailabilityOptions, type RuntimeAvailability, type RuntimeHealth, type RuntimePinCheck, } from "./runtime-version/availability.js";
|
|
32
33
|
export { isLegacyRuntime, latestRuntimeVersion, matchRuntimeVersion, resolveRuntimeVersion, runtimeVersionLabel, runtimeVersionOptions, RUNTIME_VERSION_HEADER, type ResolvedRuntimeVersion, type RuntimeVersionOption, } from "./runtime-version/index.js";
|
|
33
34
|
export { createThread, getThread, listMessages, listThreads, parseVariables, sendMessage, trace, } from "./services/messaging.js";
|
|
34
35
|
export { cloneMockDb, createCollection, createEndpoint, DEFAULT_MOCKDB_TOKEN_ENV, deleteEndpoint, deleteMockDb, describeMockDb, executeEndpoint, exportMockDb, getEndpoint, getIdentities, inspectSession, listCollections, listEndpoints, MOCKDB_GUIDE, normalizeAddColumns, normalizeSampleData, normalizeSchema, parseJsonFlag, provisionMockDb, readSampleDataInput, resetSession, resolveMockDb, rotateMgmtKey, rotateRuntimeKey, seedRows, setIdentities, statusMockDb, storedKeys, updateCollection, updateEndpoint, wireMockDbConnection, writeMockDbGuide, type CloneMockDbOptions, type MockDbProvisionResult, type MockDbResolved, type MockDbServiceOptions, type MockDbStatusReport, type MockDbStatusVerdict, type RuntimeKeyResync, type RuntimeKeySource, type WireResult, } from "./services/mockdb.js";
|
|
@@ -39,6 +40,7 @@ export { captureFailed, filterCaptures, formatCurl, readCapturedRequests, type C
|
|
|
39
40
|
export { runDoctor, type DoctorCheck, type DoctorOptions, type DoctorReport, type DoctorSection, type DoctorStatus, } from "./services/doctor.js";
|
|
40
41
|
export { getStatus, type ServiceCheck, type StatusResult, } from "./services/status.service.js";
|
|
41
42
|
export { resolvePublishedVersion, upgradeCli, type NpmRunner, type UpgradeOptions, type UpgradeResult, } from "./services/upgrade.js";
|
|
43
|
+
export { PUBLIC_UPDATE_TARGET, UPDATE_CHECK_FILE, UPDATE_CHECK_TTL_MS, checkForUpdate, compareVersions, formatUpdateNotice, isUpdateEntryStale, readUpdateCache, readUpdateEntry, recordLatestVersion, refreshUpdateCache, setUpdateTarget, updateCheckDisabled, updateCheckPath, updateNoticeFrom, updateTarget, upgradeCommand, writeUpdateEntry, type RefreshUpdateCacheOptions, type UpdateCheckEntry, type UpdateCheckFile, type UpdateNotice, type UpdateTarget, } from "./services/update-check.js";
|
|
42
44
|
export { enterCheckout, enterKnownCheckout, listKnownCheckouts, type EnteredCheckout, } from "./services/checkouts.service.js";
|
|
43
45
|
export { installSkills, removeManagedSkills, type SkillTarget, } from "./skills/install.js";
|
|
44
46
|
export { installAgentsPage, type AgentsPageFacts, } from "./skills/agents-page.js";
|
|
@@ -18,15 +18,16 @@ export { assertValidProgram, mapRuntimeValidation, renderValidation, } from "./b
|
|
|
18
18
|
export { environmentDefinition, knownEnvironments, parseEnvironment, registerEnvironment, resolveContext, } from "./config/index.js";
|
|
19
19
|
export { clearMockDbKeys, keyPrefixes, loadMockDbKeys, saveMockDbKeys, } from "./config/mockdb-keys.js";
|
|
20
20
|
export { apolloDir, findBinding, patchBinding, readBinding, readCredentials, readUserConfig, updateEnvironment, updateProfile, writeBinding, writeCredentials, writeUserConfig, } from "./config/store.js";
|
|
21
|
-
export { ApiError, AuthError, CliError, ConfigError, ExitCode, ValidationError, toCliError, } from "./errors/index.js";
|
|
21
|
+
export { ApiError, AuthError, CliError, ConfigError, ExitCode, RuntimeUnavailableError, ValidationError, runtimeUpgradeSuggestion, toCliError, } from "./errors/index.js";
|
|
22
22
|
export { Output, errorEnvelope, successEnvelope, } from "./output/index.js";
|
|
23
23
|
export { loginWithBrowser, loginWithOtp, loginWithToken, logout, requestOtp, } from "./services/auth.js";
|
|
24
|
-
export { DEFAULT_SKILL_TARGETS, RUNTIME_REFRESH_DIRECTIVE, agentRoot, importBundle, listVersions, localDiff, pullBundle, pullCheckout, pushBundle, readCheckoutTree, refreshRuntimeAssets, remoteDiff, validateLocalBundle, validateProgramBundle,
|
|
24
|
+
export { DEFAULT_SKILL_TARGETS, RUNTIME_REFRESH_DIRECTIVE, agentRoot, importBundle, listVersions, localDiff, pullBundle, pullCheckout, pushBundle, readCheckoutTree, refreshRuntimeAssets, remoteDiff, validateLocalBundle, validateProgramBundle, } from "./services/bundles.js";
|
|
25
25
|
export { ADVISE_DEADLINE_MS, adviseLocalBundle, readAdvisorState, writeAdvisorState, } from "./services/advisor.js";
|
|
26
26
|
export { BUILD_DEADLINE_MS, buildAgent, } from "./services/builds.js";
|
|
27
27
|
export { createClients } from "./services/clients.js";
|
|
28
28
|
export { listEnvironments, setEnvironment, } from "./services/env.service.js";
|
|
29
29
|
export { agentRuntimeVersion, bindAgent, createAgent, createProject, initialVersionTag, latestPublishedRuntimeVersion, listAgents, listOrganizations, listProjects, unlinkAgent, useOrganization, useProject, useVersion, } from "./services/hierarchy.js";
|
|
30
|
+
export { AVAILABILITY_CACHE_FILE, AVAILABILITY_CACHE_TTL_MS, assertRuntimeAvailable, availabilityCachePath, checkRuntimeAvailability, familyOf, probeRuntimeAvailability, verdictFromHealth, } from "./runtime-version/availability.js";
|
|
30
31
|
export { isLegacyRuntime, latestRuntimeVersion, matchRuntimeVersion, resolveRuntimeVersion, runtimeVersionLabel, runtimeVersionOptions, RUNTIME_VERSION_HEADER, } from "./runtime-version/index.js";
|
|
31
32
|
export { createThread, getThread, listMessages, listThreads, parseVariables, sendMessage, trace, } from "./services/messaging.js";
|
|
32
33
|
export { cloneMockDb, createCollection, createEndpoint, DEFAULT_MOCKDB_TOKEN_ENV, deleteEndpoint, deleteMockDb, describeMockDb, executeEndpoint, exportMockDb, getEndpoint, getIdentities, inspectSession, listCollections, listEndpoints, MOCKDB_GUIDE, normalizeAddColumns, normalizeSampleData, normalizeSchema, parseJsonFlag, provisionMockDb, readSampleDataInput, resetSession, resolveMockDb, rotateMgmtKey, rotateRuntimeKey, seedRows, setIdentities, statusMockDb, storedKeys, updateCollection, updateEndpoint, wireMockDbConnection, writeMockDbGuide, } from "./services/mockdb.js";
|
|
@@ -37,6 +38,7 @@ export { captureFailed, filterCaptures, formatCurl, readCapturedRequests, } from
|
|
|
37
38
|
export { runDoctor, } from "./services/doctor.js";
|
|
38
39
|
export { getStatus, } from "./services/status.service.js";
|
|
39
40
|
export { resolvePublishedVersion, upgradeCli, } from "./services/upgrade.js";
|
|
41
|
+
export { PUBLIC_UPDATE_TARGET, UPDATE_CHECK_FILE, UPDATE_CHECK_TTL_MS, checkForUpdate, compareVersions, formatUpdateNotice, isUpdateEntryStale, readUpdateCache, readUpdateEntry, recordLatestVersion, refreshUpdateCache, setUpdateTarget, updateCheckDisabled, updateCheckPath, updateNoticeFrom, updateTarget, upgradeCommand, writeUpdateEntry, } from "./services/update-check.js";
|
|
40
42
|
export { enterCheckout, enterKnownCheckout, listKnownCheckouts, } from "./services/checkouts.service.js";
|
|
41
43
|
export { installSkills, removeManagedSkills, } from "./skills/install.js";
|
|
42
44
|
export { installAgentsPage, } from "./skills/agents-page.js";
|