@wjarka/cezarion 0.17.0-pr2017.3065 → 0.17.0-pr2018.3064
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 +4 -4
- package/dist/contract/discovery.d.ts +0 -87
- package/dist/contract/index.js +59 -78
- package/dist/delegation/cli.d.ts +0 -1
- package/dist/delegation/cli.js +187 -253
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversations.js +1 -1
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/park-notice.js +1 -1
- package/dist/delegation/park-notice.js.map +1 -1
- package/dist/delegation/policy.js +1 -1
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/provision.d.ts +1 -1
- package/dist/delegation/provision.js +10 -11
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/questions.js +1 -1
- package/dist/delegation/questions.js.map +1 -1
- package/dist/delegation/routes.d.ts +4 -20
- package/dist/delegation/service.js +2 -5
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +12 -28
- package/dist/discovery/cli.js +1 -1
- package/dist/discovery/cli.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/subcommands.d.ts +1 -1
- package/dist/subcommands.js +1 -2
- package/dist/subcommands.js.map +1 -1
- package/dist/task-cli/cli.d.ts +1 -1
- package/dist/task-cli/cli.js +1 -1
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/workflows/run.d.ts +1 -1
- package/dist/workflows/run.js +2 -2
- package/dist/workflows/run.js.map +1 -1
- package/package.json +3 -3
- package/web/dist/assets/{centered-state-xlOgH5f1.js → centered-state-jdJvxrW-.js} +1 -1
- package/web/dist/assets/{diff-pIxP_CnE2.js → diff-c8nKUOPO2.js} +2 -2
- package/web/dist/assets/{diff-controls-BMGXJQpH.js → diff-controls-BE3CL_4I.js} +1 -1
- package/web/dist/assets/{diff-view-DGZtfjbE.js → diff-view-CNj0sssf.js} +1 -1
- package/web/dist/assets/{dropdown-menu-CVzo8b-U.js → dropdown-menu-fGsk_NG9.js} +1 -1
- package/web/dist/assets/{git-toolbar-D4QW3NrF.js → git-toolbar-Egii8iew.js} +1 -1
- package/web/dist/assets/{github-wvj0T2r-.js → github-PdRStQts.js} +1 -1
- package/web/dist/assets/{index-CdJAcYVG.js → index-BbAMIcNC.js} +4 -4
- package/web/dist/assets/{index-D9HpsmdW.css → index-CKYbxrnX.css} +1 -1
- package/web/dist/assets/{live-protocol-BnaZEd6_.js → live-protocol-D7Q-V86-.js} +1 -1
- package/web/dist/assets/{popover-BYyt9-5Y.js → popover-Uos2ST1G.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-B0AJxfAo.js → preview-pane-connected-B0XfQLmS.js} +1 -1
- package/web/dist/assets/{reference-chip-CiHL_SOZ.js → reference-chip-idvBc7SF.js} +1 -1
- package/web/dist/assets/{repo-git-DVR-X7cF.js → repo-git-CTKhJ7J9.js} +1 -1
- package/web/dist/assets/{run-header-CceZyBBO.js → run-header-DJNoPUvr.js} +1 -1
- package/web/dist/assets/{skills-DuzvRvsW.js → skills-BG9MSkaa.js} +1 -1
- package/web/dist/assets/{status-dot-BUr_BHff.js → status-dot-Cu_rfmbp.js} +1 -1
- package/web/dist/assets/{tab-link-DsOgxGG8.js → tab-link-DerqaKoG.js} +1 -1
- package/web/dist/assets/{task-changes-1xuk2M78.js → task-changes-7WOy2n-j.js} +1 -1
- package/web/dist/assets/{task-commits-qqdwGb-X.js → task-commits-C8ssTr-a.js} +1 -1
- package/web/dist/assets/{task-files-Du39k7vk.js → task-files-DpYwRtR_.js} +1 -1
- package/web/dist/assets/{task-github-item-CgkdAZ4q.js → task-github-item-Cnkeyifz.js} +1 -1
- package/web/dist/assets/{task-thread-CkPb1h3Z.js → task-thread-BH6mQmUV.js} +9 -9
- package/web/dist/assets/{thread-state-w4xddczi.js → thread-state-D9ruVIda.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-C-0HPo4w.js → use-hand-to-agent-state-D0HeqkWC.js} +1 -1
- package/web/dist/assets/{workflows-CSw7yWuR.js → workflows-DOTZf_2A.js} +1 -1
- package/web/dist/index.html +8 -8
- package/web/dist/live-worker.js +1 -1
- package/dist/delegation/task-discovery.d.ts +0 -6
- package/dist/delegation/task-discovery.js +0 -26
- package/dist/delegation/task-discovery.js.map +0 -1
|
@@ -568,10 +568,6 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
568
568
|
};
|
|
569
569
|
} | {
|
|
570
570
|
output: {
|
|
571
|
-
ok: false;
|
|
572
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
573
|
-
message: string;
|
|
574
|
-
} | {
|
|
575
571
|
ok: true;
|
|
576
572
|
task: {
|
|
577
573
|
id: string;
|
|
@@ -585,6 +581,10 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
585
581
|
url?: string | undefined;
|
|
586
582
|
};
|
|
587
583
|
note: string;
|
|
584
|
+
} | {
|
|
585
|
+
ok: false;
|
|
586
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
587
|
+
message: string;
|
|
588
588
|
};
|
|
589
589
|
outputFormat: "json";
|
|
590
590
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Host default-account discovery; delegation credentials select the controller, not an account. */
|
|
3
|
-
export declare const hostDiscoveryRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
-
kind: z.ZodLiteral<"runners">;
|
|
5
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
6
|
-
kind: z.ZodLiteral<"models">;
|
|
7
|
-
runner: z.ZodEnum<{
|
|
8
|
-
claude: "claude";
|
|
9
|
-
codex: "codex";
|
|
10
|
-
cursor: "cursor";
|
|
11
|
-
omp: "omp";
|
|
12
|
-
opencode: "opencode";
|
|
13
|
-
pi: "pi";
|
|
14
|
-
}>;
|
|
15
|
-
}, z.core.$strict>], "kind">;
|
|
16
3
|
export declare const discoveryRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
4
|
kind: z.ZodLiteral<"runners">;
|
|
18
5
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -25,10 +12,6 @@ export declare const discoveryRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
25
12
|
opencode: "opencode";
|
|
26
13
|
pi: "pi";
|
|
27
14
|
}>;
|
|
28
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
-
kind: z.ZodLiteral<"tasks">;
|
|
30
|
-
all: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
32
15
|
}, z.core.$strict>], "kind">;
|
|
33
16
|
export type DiscoveryRequest = z.infer<typeof discoveryRequestSchema>;
|
|
34
17
|
export declare const discoveredRunnerSchema: z.ZodObject<{
|
|
@@ -73,42 +56,6 @@ export declare const discoveredRunnersSchema: z.ZodObject<{
|
|
|
73
56
|
}, z.core.$strip>>;
|
|
74
57
|
}, z.core.$strip>;
|
|
75
58
|
export type DiscoveredRunners = z.infer<typeof discoveredRunnersSchema>;
|
|
76
|
-
export declare const discoveredTasksSchema: z.ZodObject<{
|
|
77
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
title: z.ZodString;
|
|
80
|
-
runner: z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
claude: "claude";
|
|
82
|
-
codex: "codex";
|
|
83
|
-
cursor: "cursor";
|
|
84
|
-
omp: "omp";
|
|
85
|
-
opencode: "opencode";
|
|
86
|
-
pi: "pi";
|
|
87
|
-
}>>;
|
|
88
|
-
status: z.ZodEnum<{
|
|
89
|
-
cancelled: "cancelled";
|
|
90
|
-
done: "done";
|
|
91
|
-
failed: "failed";
|
|
92
|
-
queued: "queued";
|
|
93
|
-
review: "review";
|
|
94
|
-
running: "running";
|
|
95
|
-
waiting: "waiting";
|
|
96
|
-
}>;
|
|
97
|
-
attention: z.ZodEnum<{
|
|
98
|
-
error: "error";
|
|
99
|
-
none: "none";
|
|
100
|
-
permission: "permission";
|
|
101
|
-
running: "running";
|
|
102
|
-
unseen: "unseen";
|
|
103
|
-
waiting: "waiting";
|
|
104
|
-
}>;
|
|
105
|
-
attentionLabel: z.ZodString;
|
|
106
|
-
accepts: z.ZodBoolean;
|
|
107
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
nextOffset: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
}, z.core.$strip>;
|
|
111
|
-
export type DiscoveredTasks = z.infer<typeof discoveredTasksSchema>;
|
|
112
59
|
export declare const discoveryResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
113
60
|
scope: z.ZodLiteral<"host-default-account">;
|
|
114
61
|
runners: z.ZodArray<z.ZodObject<{
|
|
@@ -158,40 +105,6 @@ export declare const discoveryResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
158
105
|
}>;
|
|
159
106
|
stale: z.ZodBoolean;
|
|
160
107
|
reason: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
163
|
-
id: z.ZodString;
|
|
164
|
-
title: z.ZodString;
|
|
165
|
-
runner: z.ZodOptional<z.ZodEnum<{
|
|
166
|
-
claude: "claude";
|
|
167
|
-
codex: "codex";
|
|
168
|
-
cursor: "cursor";
|
|
169
|
-
omp: "omp";
|
|
170
|
-
opencode: "opencode";
|
|
171
|
-
pi: "pi";
|
|
172
|
-
}>>;
|
|
173
|
-
status: z.ZodEnum<{
|
|
174
|
-
cancelled: "cancelled";
|
|
175
|
-
done: "done";
|
|
176
|
-
failed: "failed";
|
|
177
|
-
queued: "queued";
|
|
178
|
-
review: "review";
|
|
179
|
-
running: "running";
|
|
180
|
-
waiting: "waiting";
|
|
181
|
-
}>;
|
|
182
|
-
attention: z.ZodEnum<{
|
|
183
|
-
error: "error";
|
|
184
|
-
none: "none";
|
|
185
|
-
permission: "permission";
|
|
186
|
-
running: "running";
|
|
187
|
-
unseen: "unseen";
|
|
188
|
-
waiting: "waiting";
|
|
189
|
-
}>;
|
|
190
|
-
attentionLabel: z.ZodString;
|
|
191
|
-
accepts: z.ZodBoolean;
|
|
192
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
193
|
-
}, z.core.$strip>>;
|
|
194
|
-
nextOffset: z.ZodOptional<z.ZodNumber>;
|
|
195
108
|
}, z.core.$strip>]>;
|
|
196
109
|
export type DiscoveryResponse = z.infer<typeof discoveryResponseSchema>;
|
|
197
110
|
export declare const modelChoicesSchema: z.ZodObject<{
|
package/dist/contract/index.js
CHANGED
|
@@ -117,35 +117,50 @@ var requestWaitRequestSchema = z2.object({
|
|
|
117
117
|
// ../contract/src/discovery.ts
|
|
118
118
|
import { z as z8 } from "zod";
|
|
119
119
|
|
|
120
|
+
// ../contract/src/workspace.ts
|
|
121
|
+
import { z as z7 } from "zod";
|
|
122
|
+
|
|
123
|
+
// ../contract/src/effort.ts
|
|
124
|
+
import { z as z3 } from "zod";
|
|
125
|
+
var EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
126
|
+
var effortLevelSchema = z3.enum(EFFORT_LEVELS);
|
|
127
|
+
var effortFieldSchema = z3.string().max(32).optional();
|
|
128
|
+
function parseEffort(value) {
|
|
129
|
+
const trimmed = value?.trim().toLowerCase();
|
|
130
|
+
if (!trimmed || trimmed === "auto") return void 0;
|
|
131
|
+
const parsed = effortLevelSchema.safeParse(trimmed);
|
|
132
|
+
return parsed.success ? parsed.data : void 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
120
135
|
// ../contract/src/health.ts
|
|
121
|
-
import { z as
|
|
136
|
+
import { z as z5 } from "zod";
|
|
122
137
|
|
|
123
138
|
// ../contract/src/application-update.ts
|
|
124
|
-
import { z as
|
|
125
|
-
var applicationUpdateStateSchema =
|
|
126
|
-
status:
|
|
127
|
-
supported:
|
|
128
|
-
targetVersion:
|
|
129
|
-
message:
|
|
130
|
-
});
|
|
131
|
-
var applicationUpdateInputSchema =
|
|
132
|
-
var applicationUpdateResponseSchema =
|
|
139
|
+
import { z as z4 } from "zod";
|
|
140
|
+
var applicationUpdateStateSchema = z4.object({
|
|
141
|
+
status: z4.enum(["idle", "preparing", "ready", "restarting", "error"]),
|
|
142
|
+
supported: z4.boolean(),
|
|
143
|
+
targetVersion: z4.string().optional(),
|
|
144
|
+
message: z4.string().optional()
|
|
145
|
+
});
|
|
146
|
+
var applicationUpdateInputSchema = z4.record(z4.string(), z4.never());
|
|
147
|
+
var applicationUpdateResponseSchema = z4.object({ state: applicationUpdateStateSchema });
|
|
133
148
|
|
|
134
149
|
// ../contract/src/health.ts
|
|
135
|
-
var runnerSchema =
|
|
136
|
-
var repoInfoSchema =
|
|
137
|
-
root:
|
|
138
|
-
branch:
|
|
139
|
-
remote:
|
|
140
|
-
});
|
|
141
|
-
var backendCheckSchema =
|
|
142
|
-
name:
|
|
143
|
-
available:
|
|
144
|
-
version:
|
|
145
|
-
hint:
|
|
146
|
-
});
|
|
147
|
-
var forgeInfoSchema =
|
|
148
|
-
kind:
|
|
150
|
+
var runnerSchema = z5.enum(["claude", "codex", "opencode", "pi", "cursor", "omp"]);
|
|
151
|
+
var repoInfoSchema = z5.object({
|
|
152
|
+
root: z5.string(),
|
|
153
|
+
branch: z5.string(),
|
|
154
|
+
remote: z5.string().optional()
|
|
155
|
+
});
|
|
156
|
+
var backendCheckSchema = z5.object({
|
|
157
|
+
name: z5.enum(["claude", "codex", "opencode", "pi", "cursor", "omp", "gh", "git"]),
|
|
158
|
+
available: z5.boolean(),
|
|
159
|
+
version: z5.string().optional(),
|
|
160
|
+
hint: z5.string().optional()
|
|
161
|
+
});
|
|
162
|
+
var forgeInfoSchema = z5.object({
|
|
163
|
+
kind: z5.literal("github"),
|
|
149
164
|
/**
|
|
150
165
|
* Whether the forge is reachable — **absent until the availability probe has warmed**.
|
|
151
166
|
*
|
|
@@ -153,12 +168,12 @@ var forgeInfoSchema = z4.object({
|
|
|
153
168
|
* "not determined yet", which is not the same as `false`, and the cockpit renders the two
|
|
154
169
|
* differently. Declaring it required is what made an earlier hand-written mirror wrong.
|
|
155
170
|
*/
|
|
156
|
-
available:
|
|
157
|
-
reason:
|
|
171
|
+
available: z5.boolean().optional(),
|
|
172
|
+
reason: z5.string().optional()
|
|
158
173
|
});
|
|
159
|
-
var capabilitiesSchema =
|
|
160
|
-
localHandoff:
|
|
161
|
-
singleProject:
|
|
174
|
+
var capabilitiesSchema = z5.object({
|
|
175
|
+
localHandoff: z5.boolean(),
|
|
176
|
+
singleProject: z5.boolean(),
|
|
162
177
|
/**
|
|
163
178
|
* `true` means `CEZ_AUTOMATIONS=1` opted this server into GitHub automations (#801). Off — the
|
|
164
179
|
* default — the whole feature is absent: no `Automations` nav item anywhere it is rendered, the
|
|
@@ -166,7 +181,7 @@ var capabilitiesSchema = z4.object({
|
|
|
166
181
|
*
|
|
167
182
|
* REQUIRED for the same reason as `tokenMetrics` below: this server always sends it.
|
|
168
183
|
*/
|
|
169
|
-
automations:
|
|
184
|
+
automations: z5.boolean(),
|
|
170
185
|
/**
|
|
171
186
|
* `true` means `CEZ_PREVIEW=1` opted this server into live preview (#781): the `cezar_preview_serve`
|
|
172
187
|
* tool is listed, its route answers, the preview WebSocket upgrades and the cockpit offers the
|
|
@@ -174,7 +189,7 @@ var capabilitiesSchema = z4.object({
|
|
|
174
189
|
*
|
|
175
190
|
* REQUIRED for the same reason as `tokenMetrics` below: this server always sends it.
|
|
176
191
|
*/
|
|
177
|
-
preview:
|
|
192
|
+
preview: z5.boolean(),
|
|
178
193
|
/**
|
|
179
194
|
* `true` means `CEZ_VOICE=1` opted this server into voice mode and a way to decide exists:
|
|
180
195
|
* `TYPESAFE_API_KEY` is set, or `CEZ_DRY_RUN=1` supplies the fake engine. Off — the default —
|
|
@@ -182,7 +197,7 @@ var capabilitiesSchema = z4.object({
|
|
|
182
197
|
*
|
|
183
198
|
* REQUIRED for the same reason as `tokenMetrics` below: this server always sends it.
|
|
184
199
|
*/
|
|
185
|
-
voice:
|
|
200
|
+
voice: z5.boolean(),
|
|
186
201
|
/**
|
|
187
202
|
* `false` means `CEZ_HIDE_TOKEN_METRICS=1` asks the browser to omit token counts and monetary
|
|
188
203
|
* cost (#481). The telemetry itself still rides in run/event payloads — this is presentation
|
|
@@ -195,45 +210,30 @@ var capabilitiesSchema = z4.object({
|
|
|
195
210
|
* `web/src/lib/token-metrics.ts`, whose `!== false` read still treats an absent field as
|
|
196
211
|
* visible.
|
|
197
212
|
*/
|
|
198
|
-
tokenMetrics:
|
|
213
|
+
tokenMetrics: z5.boolean(),
|
|
199
214
|
/** Current token-count presentation policy. Required on current servers;
|
|
200
215
|
* older payload tolerance belongs in the browser resolver. */
|
|
201
|
-
tokenUsageMetrics:
|
|
216
|
+
tokenUsageMetrics: z5.boolean(),
|
|
202
217
|
/** Current backend-reported-cost presentation policy. */
|
|
203
|
-
costMetrics:
|
|
218
|
+
costMetrics: z5.boolean()
|
|
204
219
|
});
|
|
205
|
-
var healthResponseSchema =
|
|
206
|
-
version:
|
|
207
|
-
latestVersion:
|
|
208
|
-
repoRoot:
|
|
220
|
+
var healthResponseSchema = z5.object({
|
|
221
|
+
version: z5.string(),
|
|
222
|
+
latestVersion: z5.string().optional(),
|
|
223
|
+
repoRoot: z5.string(),
|
|
209
224
|
repo: repoInfoSchema.nullable(),
|
|
210
|
-
checks:
|
|
225
|
+
checks: z5.array(backendCheckSchema),
|
|
211
226
|
defaultRunner: runnerSchema,
|
|
212
227
|
forge: forgeInfoSchema.nullable(),
|
|
213
228
|
capabilities: capabilitiesSchema,
|
|
214
229
|
// Always sent: `workspaceSummary()` returns both unconditionally, and an unreadable workspace
|
|
215
230
|
// degrades to `projects: []` rather than to an absent key. The hand-written DTO declared them
|
|
216
231
|
// optional, which was wider than the server has ever been.
|
|
217
|
-
projects:
|
|
218
|
-
bootProject:
|
|
232
|
+
projects: z5.array(z5.object({ id: z5.string(), name: z5.string() })),
|
|
233
|
+
bootProject: z5.string(),
|
|
219
234
|
applicationUpdate: applicationUpdateStateSchema.optional()
|
|
220
235
|
});
|
|
221
236
|
|
|
222
|
-
// ../contract/src/workspace.ts
|
|
223
|
-
import { z as z7 } from "zod";
|
|
224
|
-
|
|
225
|
-
// ../contract/src/effort.ts
|
|
226
|
-
import { z as z5 } from "zod";
|
|
227
|
-
var EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
228
|
-
var effortLevelSchema = z5.enum(EFFORT_LEVELS);
|
|
229
|
-
var effortFieldSchema = z5.string().max(32).optional();
|
|
230
|
-
function parseEffort(value) {
|
|
231
|
-
const trimmed = value?.trim().toLowerCase();
|
|
232
|
-
if (!trimmed || trimmed === "auto") return void 0;
|
|
233
|
-
const parsed = effortLevelSchema.safeParse(trimmed);
|
|
234
|
-
return parsed.success ? parsed.data : void 0;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
237
|
// ../contract/src/team-skill-ref.ts
|
|
238
238
|
import { z as z6 } from "zod";
|
|
239
239
|
var teamSkillRefSchema = z6.object({ repo: z6.string().min(1).max(500), name: z6.string().min(1).max(200) }).strict();
|
|
@@ -596,33 +596,16 @@ var openProjectInResponseSchema = z7.object({
|
|
|
596
596
|
});
|
|
597
597
|
|
|
598
598
|
// ../contract/src/discovery.ts
|
|
599
|
-
var
|
|
599
|
+
var discoveryRequestSchema = z8.discriminatedUnion("kind", [
|
|
600
600
|
z8.object({ kind: z8.literal("runners") }).strict(),
|
|
601
601
|
z8.object({ kind: z8.literal("models"), runner: modelDiscoveryRunnerSchema }).strict()
|
|
602
602
|
]);
|
|
603
|
-
var discoveryRequestSchema = z8.discriminatedUnion("kind", [
|
|
604
|
-
...hostDiscoveryRequestSchema.options,
|
|
605
|
-
z8.object({ kind: z8.literal("tasks"), all: z8.boolean().optional(), offset: z8.number().int().min(0).max(Number.MAX_SAFE_INTEGER).optional() }).strict()
|
|
606
|
-
]);
|
|
607
603
|
var discoveredRunnerSchema = providerStatusSchema.omit({ provider: true, profileId: true }).extend({ runner: modelDiscoveryRunnerSchema });
|
|
608
604
|
var discoveredRunnersSchema = z8.object({
|
|
609
605
|
scope: z8.literal("host-default-account"),
|
|
610
606
|
runners: z8.array(discoveredRunnerSchema)
|
|
611
607
|
});
|
|
612
|
-
var
|
|
613
|
-
tasks: z8.array(z8.object({
|
|
614
|
-
id: z8.string(),
|
|
615
|
-
title: z8.string(),
|
|
616
|
-
runner: runnerSchema.optional(),
|
|
617
|
-
status: z8.enum(["queued", "running", "waiting", "review", "done", "failed", "cancelled"]),
|
|
618
|
-
attention: z8.enum(["permission", "error", "waiting", "running", "unseen", "none"]),
|
|
619
|
-
attentionLabel: z8.string(),
|
|
620
|
-
accepts: z8.boolean(),
|
|
621
|
-
reason: z8.string().optional()
|
|
622
|
-
})).max(32),
|
|
623
|
-
nextOffset: z8.number().int().nonnegative().optional()
|
|
624
|
-
});
|
|
625
|
-
var discoveryResponseSchema = z8.union([discoveredRunnersSchema, runnerModelCatalogResponseSchema, discoveredTasksSchema]);
|
|
608
|
+
var discoveryResponseSchema = z8.union([discoveredRunnersSchema, runnerModelCatalogResponseSchema]);
|
|
626
609
|
var modelChoicesSchema = z8.object({
|
|
627
610
|
runner: modelDiscoveryRunnerSchema,
|
|
628
611
|
requestedModel: z8.string(),
|
|
@@ -5538,7 +5521,6 @@ export {
|
|
|
5538
5521
|
diffStatSchema,
|
|
5539
5522
|
discoveredRunnerSchema,
|
|
5540
5523
|
discoveredRunnersSchema,
|
|
5541
|
-
discoveredTasksSchema,
|
|
5542
5524
|
discoveryRequestSchema,
|
|
5543
5525
|
discoveryResponseSchema,
|
|
5544
5526
|
doneErrorCodeSchema,
|
|
@@ -5593,7 +5575,6 @@ export {
|
|
|
5593
5575
|
hasWorkerDeadline,
|
|
5594
5576
|
healthResponseSchema,
|
|
5595
5577
|
hm,
|
|
5596
|
-
hostDiscoveryRequestSchema,
|
|
5597
5578
|
humanAskClosedEventSchema,
|
|
5598
5579
|
humanInputDeliveredEventSchema,
|
|
5599
5580
|
humanWaitEntrySchema,
|
package/dist/delegation/cli.d.ts
CHANGED
|
@@ -2,4 +2,3 @@
|
|
|
2
2
|
export declare function delegationEndpoint(value: string | undefined): URL;
|
|
3
3
|
export declare function boundedJson(response: Response): Promise<unknown>;
|
|
4
4
|
export declare function runWorkerCommand(argv: string[], env: NodeJS.ProcessEnv): Promise<number>;
|
|
5
|
-
export declare function runMessageCommand(argv: string[], env: NodeJS.ProcessEnv): Promise<number>;
|