@maudecode/talaria-web-contracts 1.16.1 → 1.18.0
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +5 -1
- package/dist/openapi.js.map +1 -1
- package/dist/router.d.ts +4169 -1107
- package/dist/routes/automation.d.ts +173 -10
- package/dist/routes/automation.js +17 -9
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +1215 -16
- package/dist/routes/chat.js +5 -3
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +11 -0
- package/dist/routes/core.js +3 -0
- package/dist/routes/core.js.map +1 -1
- package/dist/routes/git.d.ts +98 -2
- package/dist/routes/git.js +20 -6
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/raw.d.ts +3 -1
- package/dist/routes/raw.js +31 -7
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +3080 -539
- package/dist/routes/sessions.js +68 -1
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +132 -2
- package/dist/routes/settings.js +4 -4
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +425 -19
- package/dist/routes/tools.js +23 -4
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +96 -0
- package/dist/routes/workspaces.js +18 -1
- package/dist/routes/workspaces.js.map +1 -1
- package/dist/sidecar/methods.d.ts +253 -0
- package/dist/sidecar/methods.js +2 -1
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +381 -1
- package/dist/sidecar/namespaces.js +89 -10
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/version.d.ts +1 -1
- package/dist/sidecar/version.js +1 -1
- package/dist/sidecar/version.js.map +1 -1
- package/dist/sse.d.ts +79 -14
- package/dist/sse.js +13 -6
- package/dist/sse.js.map +1 -1
- package/dist/theme.d.ts +10 -0
- package/dist/theme.js +10 -0
- package/dist/theme.js.map +1 -0
- package/dist/views.d.ts +1419 -39
- package/dist/views.js +215 -25
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/checkpoints.json +50 -0
- package/fixtures/sidecar/commands.json +250 -96
- package/fixtures/sidecar/cron.json +38 -55
- package/fixtures/sidecar/goals.json +6 -6
- package/fixtures/sidecar/kanban.json +84 -67
- package/fixtures/sidecar/plugins.json +171 -172
- package/fixtures/sidecar/process.json +25 -0
- package/fixtures/sidecar/profiles.json +10 -2
- package/fixtures/sidecar/providers.json +25 -12
- package/fixtures/sidecar/rpc.json +17 -0
- package/fixtures/sidecar/runtime.json +22 -29
- package/fixtures/sidecar/state_db.json +15 -0
- package/fixtures/sidecar/text.json +2 -2
- package/fixtures/sidecar/usage.json +38 -0
- package/package.json +1 -1
package/dist/routes/tools.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ export declare const toolsContract: {
|
|
|
29
29
|
name: z.ZodOptional<z.ZodString>;
|
|
30
30
|
content: z.ZodOptional<z.ZodString>;
|
|
31
31
|
path: z.ZodOptional<z.ZodString>;
|
|
32
|
+
linked_files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
33
|
+
binary: z.ZodOptional<z.ZodLiteral<true>>;
|
|
34
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
32
35
|
success: z.ZodOptional<z.ZodBoolean>;
|
|
33
36
|
message: z.ZodOptional<z.ZodString>;
|
|
34
37
|
ok: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -142,6 +145,7 @@ export declare const toolsContract: {
|
|
|
142
145
|
cli_only: z.ZodOptional<z.ZodBoolean>;
|
|
143
146
|
gateway_only: z.ZodOptional<z.ZodBoolean>;
|
|
144
147
|
subcommands: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
148
|
+
exec: z.ZodOptional<z.ZodBoolean>;
|
|
145
149
|
}, z.core.$loose>>;
|
|
146
150
|
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
147
151
|
exec: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -150,6 +154,29 @@ export declare const toolsContract: {
|
|
|
150
154
|
}, z.core.$strip>, z.ZodObject<{
|
|
151
155
|
output: z.ZodString;
|
|
152
156
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
157
|
+
bundles: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
158
|
+
bundles: z.ZodArray<z.ZodObject<{
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
description: z.ZodString;
|
|
161
|
+
skill_count: z.ZodNumber;
|
|
162
|
+
source: z.ZodLiteral<"bundle">;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
165
|
+
resolveBundle: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
166
|
+
command: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
source: z.ZodLiteral<"bundle">;
|
|
170
|
+
message: z.ZodString;
|
|
171
|
+
loaded_skills: z.ZodArray<z.ZodString>;
|
|
172
|
+
missing_skills: z.ZodArray<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
174
|
+
resolveMoa: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
175
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
177
|
+
preset: z.ZodString;
|
|
178
|
+
usage: z.ZodString;
|
|
179
|
+
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
153
180
|
};
|
|
154
181
|
notes: {
|
|
155
182
|
sources: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
@@ -166,8 +193,70 @@ export declare const toolsContract: {
|
|
|
166
193
|
q: z.ZodOptional<z.ZodString>;
|
|
167
194
|
limit: z.ZodOptional<z.ZodString>;
|
|
168
195
|
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
-
|
|
170
|
-
|
|
196
|
+
source: z.ZodLiteral<"joplin">;
|
|
197
|
+
query: z.ZodString;
|
|
198
|
+
results: z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
title: z.ZodString;
|
|
201
|
+
snippet: z.ZodString;
|
|
202
|
+
parent_id: z.ZodString;
|
|
203
|
+
updated_time: z.ZodUnknown;
|
|
204
|
+
source: z.ZodLiteral<"joplin">;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
207
|
+
item: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
208
|
+
source: z.ZodOptional<z.ZodString>;
|
|
209
|
+
id: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
211
|
+
source: z.ZodLiteral<"joplin">;
|
|
212
|
+
note: z.ZodObject<{
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
title: z.ZodString;
|
|
215
|
+
body: z.ZodString;
|
|
216
|
+
parent_id: z.ZodString;
|
|
217
|
+
updated_time: z.ZodUnknown;
|
|
218
|
+
created_time: z.ZodUnknown;
|
|
219
|
+
source: z.ZodLiteral<"joplin">;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
222
|
+
};
|
|
223
|
+
wiki: {
|
|
224
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
225
|
+
available: z.ZodBoolean;
|
|
226
|
+
enabled: z.ZodBoolean;
|
|
227
|
+
status: z.ZodEnum<{
|
|
228
|
+
error: "error";
|
|
229
|
+
ready: "ready";
|
|
230
|
+
empty: "empty";
|
|
231
|
+
missing: "missing";
|
|
232
|
+
not_directory: "not_directory";
|
|
233
|
+
}>;
|
|
234
|
+
entry_count: z.ZodNumber;
|
|
235
|
+
page_count: z.ZodNumber;
|
|
236
|
+
raw_source_count: z.ZodNumber;
|
|
237
|
+
last_updated: z.ZodNullable<z.ZodString>;
|
|
238
|
+
last_writer: z.ZodString;
|
|
239
|
+
path_configured: z.ZodBoolean;
|
|
240
|
+
path_source: z.ZodString;
|
|
241
|
+
toggle_available: z.ZodLiteral<false>;
|
|
242
|
+
toggle_reason: z.ZodString;
|
|
243
|
+
docs_url: z.ZodString;
|
|
244
|
+
error: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
246
|
+
browse: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
247
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
248
|
+
name: z.ZodString;
|
|
249
|
+
path: z.ZodString;
|
|
250
|
+
size: z.ZodNumber;
|
|
251
|
+
mtime: z.ZodNumber;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
254
|
+
page: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
255
|
+
path: z.ZodOptional<z.ZodString>;
|
|
256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
257
|
+
content: z.ZodString;
|
|
258
|
+
path: z.ZodString;
|
|
259
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
171
260
|
};
|
|
172
261
|
insights: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
173
262
|
days: z.ZodOptional<z.ZodString>;
|
|
@@ -263,10 +352,239 @@ export declare const toolsContract: {
|
|
|
263
352
|
version: z.ZodOptional<z.ZodString>;
|
|
264
353
|
error: z.ZodOptional<z.ZodString>;
|
|
265
354
|
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
355
|
+
dashboardConfig: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
356
|
+
enabled: z.ZodEnum<{
|
|
357
|
+
never: "never";
|
|
358
|
+
always: "always";
|
|
359
|
+
auto: "auto";
|
|
360
|
+
}>;
|
|
361
|
+
url: z.ZodString;
|
|
362
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
363
|
+
saveDashboardConfig: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
364
|
+
enabled: z.ZodOptional<z.ZodUnknown>;
|
|
365
|
+
url: z.ZodOptional<z.ZodUnknown>;
|
|
366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
+
enabled: z.ZodEnum<{
|
|
368
|
+
never: "never";
|
|
369
|
+
always: "always";
|
|
370
|
+
auto: "auto";
|
|
371
|
+
}>;
|
|
372
|
+
url: z.ZodString;
|
|
373
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
374
|
+
projectOs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
375
|
+
board: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
377
|
+
workspace: z.ZodNullable<z.ZodString>;
|
|
378
|
+
repo_root: z.ZodNullable<z.ZodString>;
|
|
379
|
+
selected_board_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
git: z.ZodNullable<z.ZodObject<{
|
|
381
|
+
is_git: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
|
+
dirty: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
modified: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
untracked: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
ahead: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
behind: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
}, z.core.$loose>>;
|
|
389
|
+
docs: z.ZodObject<{
|
|
390
|
+
project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
391
|
+
path: z.ZodOptional<z.ZodString>;
|
|
392
|
+
content: z.ZodOptional<z.ZodString>;
|
|
393
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
394
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
396
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
397
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
398
|
+
preview: z.ZodOptional<z.ZodEnum<{
|
|
399
|
+
text: "text";
|
|
400
|
+
image: "image";
|
|
401
|
+
audio: "audio";
|
|
402
|
+
video: "video";
|
|
403
|
+
pdf: "pdf";
|
|
404
|
+
markdown: "markdown";
|
|
405
|
+
csv: "csv";
|
|
406
|
+
html: "html";
|
|
407
|
+
binary: "binary";
|
|
408
|
+
}>>;
|
|
409
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
410
|
+
table_truncated: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
preview_url: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, z.core.$loose>>>;
|
|
413
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
414
|
+
path: z.ZodOptional<z.ZodString>;
|
|
415
|
+
content: z.ZodOptional<z.ZodString>;
|
|
416
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
417
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
418
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
421
|
+
preview: z.ZodOptional<z.ZodEnum<{
|
|
422
|
+
text: "text";
|
|
423
|
+
image: "image";
|
|
424
|
+
audio: "audio";
|
|
425
|
+
video: "video";
|
|
426
|
+
pdf: "pdf";
|
|
427
|
+
markdown: "markdown";
|
|
428
|
+
csv: "csv";
|
|
429
|
+
html: "html";
|
|
430
|
+
binary: "binary";
|
|
431
|
+
}>>;
|
|
432
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
433
|
+
table_truncated: z.ZodOptional<z.ZodBoolean>;
|
|
434
|
+
preview_url: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$loose>>>;
|
|
436
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
437
|
+
path: z.ZodOptional<z.ZodString>;
|
|
438
|
+
content: z.ZodOptional<z.ZodString>;
|
|
439
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
440
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
441
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
444
|
+
preview: z.ZodOptional<z.ZodEnum<{
|
|
445
|
+
text: "text";
|
|
446
|
+
image: "image";
|
|
447
|
+
audio: "audio";
|
|
448
|
+
video: "video";
|
|
449
|
+
pdf: "pdf";
|
|
450
|
+
markdown: "markdown";
|
|
451
|
+
csv: "csv";
|
|
452
|
+
html: "html";
|
|
453
|
+
binary: "binary";
|
|
454
|
+
}>>;
|
|
455
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
456
|
+
table_truncated: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
preview_url: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, z.core.$loose>>>;
|
|
459
|
+
blocker_resolver: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
460
|
+
path: z.ZodOptional<z.ZodString>;
|
|
461
|
+
content: z.ZodOptional<z.ZodString>;
|
|
462
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
464
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
465
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
466
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
467
|
+
preview: z.ZodOptional<z.ZodEnum<{
|
|
468
|
+
text: "text";
|
|
469
|
+
image: "image";
|
|
470
|
+
audio: "audio";
|
|
471
|
+
video: "video";
|
|
472
|
+
pdf: "pdf";
|
|
473
|
+
markdown: "markdown";
|
|
474
|
+
csv: "csv";
|
|
475
|
+
html: "html";
|
|
476
|
+
binary: "binary";
|
|
477
|
+
}>>;
|
|
478
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
479
|
+
table_truncated: z.ZodOptional<z.ZodBoolean>;
|
|
480
|
+
preview_url: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$loose>>>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
handoff: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
484
|
+
active: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
485
|
+
heartbeat: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
486
|
+
onboarding: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
active: z.ZodBoolean;
|
|
488
|
+
doc_source: z.ZodEnum<{
|
|
489
|
+
"project-os": "project-os";
|
|
490
|
+
root: "root";
|
|
491
|
+
}>;
|
|
492
|
+
}, z.core.$loose>>;
|
|
493
|
+
goal_summary: z.ZodString;
|
|
494
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
266
495
|
shutdown: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
|
|
267
496
|
status: z.ZodLiteral<"shutting_down">;
|
|
268
497
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
269
498
|
};
|
|
499
|
+
gateway: {
|
|
500
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
501
|
+
running: z.ZodBoolean;
|
|
502
|
+
configured: z.ZodBoolean;
|
|
503
|
+
platforms: z.ZodArray<z.ZodObject<{
|
|
504
|
+
name: z.ZodString;
|
|
505
|
+
label: z.ZodString;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
last_active: z.ZodString;
|
|
508
|
+
session_count: z.ZodNumber;
|
|
509
|
+
health: z.ZodObject<{
|
|
510
|
+
state: z.ZodNullable<z.ZodString>;
|
|
511
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
512
|
+
gateway_state: z.ZodNullable<z.ZodString>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
515
|
+
start: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
|
|
516
|
+
ok: z.ZodLiteral<true>;
|
|
517
|
+
action: z.ZodEnum<{
|
|
518
|
+
start: "start";
|
|
519
|
+
stop: "stop";
|
|
520
|
+
restart: "restart";
|
|
521
|
+
}>;
|
|
522
|
+
message: z.ZodString;
|
|
523
|
+
status: z.ZodObject<{
|
|
524
|
+
running: z.ZodBoolean;
|
|
525
|
+
configured: z.ZodBoolean;
|
|
526
|
+
platforms: z.ZodArray<z.ZodObject<{
|
|
527
|
+
name: z.ZodString;
|
|
528
|
+
label: z.ZodString;
|
|
529
|
+
}, z.core.$strip>>;
|
|
530
|
+
last_active: z.ZodString;
|
|
531
|
+
session_count: z.ZodNumber;
|
|
532
|
+
health: z.ZodObject<{
|
|
533
|
+
state: z.ZodNullable<z.ZodString>;
|
|
534
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
535
|
+
gateway_state: z.ZodNullable<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
}, z.core.$strip>;
|
|
538
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
539
|
+
stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
|
|
540
|
+
ok: z.ZodLiteral<true>;
|
|
541
|
+
action: z.ZodEnum<{
|
|
542
|
+
start: "start";
|
|
543
|
+
stop: "stop";
|
|
544
|
+
restart: "restart";
|
|
545
|
+
}>;
|
|
546
|
+
message: z.ZodString;
|
|
547
|
+
status: z.ZodObject<{
|
|
548
|
+
running: z.ZodBoolean;
|
|
549
|
+
configured: z.ZodBoolean;
|
|
550
|
+
platforms: z.ZodArray<z.ZodObject<{
|
|
551
|
+
name: z.ZodString;
|
|
552
|
+
label: z.ZodString;
|
|
553
|
+
}, z.core.$strip>>;
|
|
554
|
+
last_active: z.ZodString;
|
|
555
|
+
session_count: z.ZodNumber;
|
|
556
|
+
health: z.ZodObject<{
|
|
557
|
+
state: z.ZodNullable<z.ZodString>;
|
|
558
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
559
|
+
gateway_state: z.ZodNullable<z.ZodString>;
|
|
560
|
+
}, z.core.$strip>;
|
|
561
|
+
}, z.core.$strip>;
|
|
562
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
563
|
+
restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
|
|
564
|
+
ok: z.ZodLiteral<true>;
|
|
565
|
+
action: z.ZodEnum<{
|
|
566
|
+
start: "start";
|
|
567
|
+
stop: "stop";
|
|
568
|
+
restart: "restart";
|
|
569
|
+
}>;
|
|
570
|
+
message: z.ZodString;
|
|
571
|
+
status: z.ZodObject<{
|
|
572
|
+
running: z.ZodBoolean;
|
|
573
|
+
configured: z.ZodBoolean;
|
|
574
|
+
platforms: z.ZodArray<z.ZodObject<{
|
|
575
|
+
name: z.ZodString;
|
|
576
|
+
label: z.ZodString;
|
|
577
|
+
}, z.core.$strip>>;
|
|
578
|
+
last_active: z.ZodString;
|
|
579
|
+
session_count: z.ZodNumber;
|
|
580
|
+
health: z.ZodObject<{
|
|
581
|
+
state: z.ZodNullable<z.ZodString>;
|
|
582
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
583
|
+
gateway_state: z.ZodNullable<z.ZodString>;
|
|
584
|
+
}, z.core.$strip>;
|
|
585
|
+
}, z.core.$strip>;
|
|
586
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
587
|
+
};
|
|
270
588
|
mcp: {
|
|
271
589
|
servers: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
272
590
|
servers: z.ZodArray<z.ZodObject<{
|
|
@@ -274,6 +592,7 @@ export declare const toolsContract: {
|
|
|
274
592
|
id: z.ZodOptional<z.ZodString>;
|
|
275
593
|
transport: z.ZodOptional<z.ZodString>;
|
|
276
594
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
595
|
+
can_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
277
596
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
278
597
|
status: z.ZodOptional<z.ZodString>;
|
|
279
598
|
tools: z.ZodOptional<z.ZodNumber>;
|
|
@@ -287,7 +606,9 @@ export declare const toolsContract: {
|
|
|
287
606
|
reload_required: z.ZodOptional<z.ZodBoolean>;
|
|
288
607
|
toggle_supported: z.ZodOptional<z.ZodBoolean>;
|
|
289
608
|
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
290
|
-
tools: import("@orpc/contract").
|
|
609
|
+
tools: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
610
|
+
q: z.ZodOptional<z.ZodString>;
|
|
611
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
612
|
tools: z.ZodArray<z.ZodObject<{
|
|
292
613
|
name: z.ZodOptional<z.ZodString>;
|
|
293
614
|
server: z.ZodOptional<z.ZodString>;
|
|
@@ -318,6 +639,7 @@ export declare const toolsContract: {
|
|
|
318
639
|
id: z.ZodOptional<z.ZodString>;
|
|
319
640
|
transport: z.ZodOptional<z.ZodString>;
|
|
320
641
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
642
|
+
can_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
321
643
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
322
644
|
status: z.ZodOptional<z.ZodString>;
|
|
323
645
|
tools: z.ZodOptional<z.ZodNumber>;
|
|
@@ -391,6 +713,22 @@ export declare const toolsContract: {
|
|
|
391
713
|
ignored: z.ZodOptional<z.ZodBoolean>;
|
|
392
714
|
stale_check: z.ZodOptional<z.ZodBoolean>;
|
|
393
715
|
current_version: z.ZodOptional<z.ZodString>;
|
|
716
|
+
state: z.ZodEnum<{
|
|
717
|
+
unknown: "unknown";
|
|
718
|
+
manual: "manual";
|
|
719
|
+
up_to_date: "up_to_date";
|
|
720
|
+
release_ready: "release_ready";
|
|
721
|
+
commits_behind: "commits_behind";
|
|
722
|
+
local_changes: "local_changes";
|
|
723
|
+
finish: "finish";
|
|
724
|
+
check_failed: "check_failed";
|
|
725
|
+
off: "off";
|
|
726
|
+
}>;
|
|
727
|
+
can_apply: z.ZodBoolean;
|
|
728
|
+
installed_unverified: z.ZodBoolean;
|
|
729
|
+
manual_link: z.ZodBoolean;
|
|
730
|
+
target_version: z.ZodNullable<z.ZodString>;
|
|
731
|
+
summary_available: z.ZodBoolean;
|
|
394
732
|
}, z.core.$loose>>>;
|
|
395
733
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
396
734
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -420,6 +758,22 @@ export declare const toolsContract: {
|
|
|
420
758
|
ignored: z.ZodOptional<z.ZodBoolean>;
|
|
421
759
|
stale_check: z.ZodOptional<z.ZodBoolean>;
|
|
422
760
|
current_version: z.ZodOptional<z.ZodString>;
|
|
761
|
+
state: z.ZodEnum<{
|
|
762
|
+
unknown: "unknown";
|
|
763
|
+
manual: "manual";
|
|
764
|
+
up_to_date: "up_to_date";
|
|
765
|
+
release_ready: "release_ready";
|
|
766
|
+
commits_behind: "commits_behind";
|
|
767
|
+
local_changes: "local_changes";
|
|
768
|
+
finish: "finish";
|
|
769
|
+
check_failed: "check_failed";
|
|
770
|
+
off: "off";
|
|
771
|
+
}>;
|
|
772
|
+
can_apply: z.ZodBoolean;
|
|
773
|
+
installed_unverified: z.ZodBoolean;
|
|
774
|
+
manual_link: z.ZodBoolean;
|
|
775
|
+
target_version: z.ZodNullable<z.ZodString>;
|
|
776
|
+
summary_available: z.ZodBoolean;
|
|
423
777
|
}, z.core.$loose>>>;
|
|
424
778
|
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
425
779
|
checkNow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -467,6 +821,22 @@ export declare const toolsContract: {
|
|
|
467
821
|
ignored: z.ZodOptional<z.ZodBoolean>;
|
|
468
822
|
stale_check: z.ZodOptional<z.ZodBoolean>;
|
|
469
823
|
current_version: z.ZodOptional<z.ZodString>;
|
|
824
|
+
state: z.ZodEnum<{
|
|
825
|
+
unknown: "unknown";
|
|
826
|
+
manual: "manual";
|
|
827
|
+
up_to_date: "up_to_date";
|
|
828
|
+
release_ready: "release_ready";
|
|
829
|
+
commits_behind: "commits_behind";
|
|
830
|
+
local_changes: "local_changes";
|
|
831
|
+
finish: "finish";
|
|
832
|
+
check_failed: "check_failed";
|
|
833
|
+
off: "off";
|
|
834
|
+
}>;
|
|
835
|
+
can_apply: z.ZodBoolean;
|
|
836
|
+
installed_unverified: z.ZodBoolean;
|
|
837
|
+
manual_link: z.ZodBoolean;
|
|
838
|
+
target_version: z.ZodNullable<z.ZodString>;
|
|
839
|
+
summary_available: z.ZodBoolean;
|
|
470
840
|
}, z.core.$loose>>>;
|
|
471
841
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
472
842
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -496,6 +866,22 @@ export declare const toolsContract: {
|
|
|
496
866
|
ignored: z.ZodOptional<z.ZodBoolean>;
|
|
497
867
|
stale_check: z.ZodOptional<z.ZodBoolean>;
|
|
498
868
|
current_version: z.ZodOptional<z.ZodString>;
|
|
869
|
+
state: z.ZodEnum<{
|
|
870
|
+
unknown: "unknown";
|
|
871
|
+
manual: "manual";
|
|
872
|
+
up_to_date: "up_to_date";
|
|
873
|
+
release_ready: "release_ready";
|
|
874
|
+
commits_behind: "commits_behind";
|
|
875
|
+
local_changes: "local_changes";
|
|
876
|
+
finish: "finish";
|
|
877
|
+
check_failed: "check_failed";
|
|
878
|
+
off: "off";
|
|
879
|
+
}>;
|
|
880
|
+
can_apply: z.ZodBoolean;
|
|
881
|
+
installed_unverified: z.ZodBoolean;
|
|
882
|
+
manual_link: z.ZodBoolean;
|
|
883
|
+
target_version: z.ZodNullable<z.ZodString>;
|
|
884
|
+
summary_available: z.ZodBoolean;
|
|
499
885
|
}, z.core.$loose>>>;
|
|
500
886
|
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
501
887
|
apply: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -586,15 +972,35 @@ export declare const toolsContract: {
|
|
|
586
972
|
stash_conflict: z.ZodOptional<z.ZodBoolean>;
|
|
587
973
|
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
588
974
|
summary: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
ok: z.
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
975
|
+
target: z.ZodEnum<{
|
|
976
|
+
agent: "agent";
|
|
977
|
+
webui: "webui";
|
|
978
|
+
}>;
|
|
979
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
980
|
+
ok: z.ZodBoolean;
|
|
981
|
+
target: z.ZodEnum<{
|
|
982
|
+
agent: "agent";
|
|
983
|
+
webui: "webui";
|
|
984
|
+
}>;
|
|
985
|
+
summary: z.ZodString;
|
|
986
|
+
current_version: z.ZodNullable<z.ZodString>;
|
|
987
|
+
target_version: z.ZodNullable<z.ZodString>;
|
|
988
|
+
summary_sections: z.ZodArray<z.ZodObject<{
|
|
989
|
+
title: z.ZodString;
|
|
990
|
+
items: z.ZodArray<z.ZodString>;
|
|
991
|
+
}, z.core.$strip>>;
|
|
992
|
+
generated_by: z.ZodEnum<{
|
|
993
|
+
fallback: "fallback";
|
|
994
|
+
llm: "llm";
|
|
995
|
+
none: "none";
|
|
996
|
+
}>;
|
|
997
|
+
source: z.ZodEnum<{
|
|
998
|
+
none: "none";
|
|
999
|
+
release_notes: "release_notes";
|
|
1000
|
+
commits: "commits";
|
|
1001
|
+
}>;
|
|
1002
|
+
cached: z.ZodBoolean;
|
|
1003
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
598
1004
|
};
|
|
599
1005
|
updateNotifications: {
|
|
600
1006
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -626,8 +1032,8 @@ export declare const toolsContract: {
|
|
|
626
1032
|
}>, z.ZodString]>;
|
|
627
1033
|
severity: z.ZodEnum<{
|
|
628
1034
|
warning: "warning";
|
|
629
|
-
info: "info";
|
|
630
1035
|
critical: "critical";
|
|
1036
|
+
info: "info";
|
|
631
1037
|
}>;
|
|
632
1038
|
persistent: z.ZodBoolean;
|
|
633
1039
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -678,8 +1084,8 @@ export declare const toolsContract: {
|
|
|
678
1084
|
}>, z.ZodString]>;
|
|
679
1085
|
severity: z.ZodEnum<{
|
|
680
1086
|
warning: "warning";
|
|
681
|
-
info: "info";
|
|
682
1087
|
critical: "critical";
|
|
1088
|
+
info: "info";
|
|
683
1089
|
}>;
|
|
684
1090
|
persistent: z.ZodBoolean;
|
|
685
1091
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -739,8 +1145,8 @@ export declare const toolsContract: {
|
|
|
739
1145
|
}>, z.ZodString]>;
|
|
740
1146
|
severity: z.ZodEnum<{
|
|
741
1147
|
warning: "warning";
|
|
742
|
-
info: "info";
|
|
743
1148
|
critical: "critical";
|
|
1149
|
+
info: "info";
|
|
744
1150
|
}>;
|
|
745
1151
|
persistent: z.ZodBoolean;
|
|
746
1152
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -810,8 +1216,8 @@ export declare const toolsContract: {
|
|
|
810
1216
|
}>, z.ZodString]>;
|
|
811
1217
|
severity: z.ZodEnum<{
|
|
812
1218
|
warning: "warning";
|
|
813
|
-
info: "info";
|
|
814
1219
|
critical: "critical";
|
|
1220
|
+
info: "info";
|
|
815
1221
|
}>;
|
|
816
1222
|
persistent: z.ZodBoolean;
|
|
817
1223
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -862,8 +1268,8 @@ export declare const toolsContract: {
|
|
|
862
1268
|
}>, z.ZodString]>;
|
|
863
1269
|
severity: z.ZodEnum<{
|
|
864
1270
|
warning: "warning";
|
|
865
|
-
info: "info";
|
|
866
1271
|
critical: "critical";
|
|
1272
|
+
info: "info";
|
|
867
1273
|
}>;
|
|
868
1274
|
persistent: z.ZodBoolean;
|
|
869
1275
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -922,8 +1328,8 @@ export declare const toolsContract: {
|
|
|
922
1328
|
}>, z.ZodString]>;
|
|
923
1329
|
severity: z.ZodEnum<{
|
|
924
1330
|
warning: "warning";
|
|
925
|
-
info: "info";
|
|
926
1331
|
critical: "critical";
|
|
1332
|
+
info: "info";
|
|
927
1333
|
}>;
|
|
928
1334
|
persistent: z.ZodBoolean;
|
|
929
1335
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -979,8 +1385,8 @@ export declare const toolsContract: {
|
|
|
979
1385
|
}>, z.ZodString]>;
|
|
980
1386
|
severity: z.ZodEnum<{
|
|
981
1387
|
warning: "warning";
|
|
982
|
-
info: "info";
|
|
983
1388
|
critical: "critical";
|
|
1389
|
+
info: "info";
|
|
984
1390
|
}>;
|
|
985
1391
|
persistent: z.ZodBoolean;
|
|
986
1392
|
requires_acknowledgement: z.ZodBoolean;
|
package/dist/routes/tools.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { oc } from '@orpc/contract';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { SkillsSchema, SkillContentSchema, SkillsUsageSchema, MemorySchema, PromptSchema, PromptsSchema, CommandsSchema, LogsSchema, InsightsSchema, AgentHealthSchema, SystemHealthSchema, McpServerSchema, McpServersSchema, McpToolsSchema, PluginsSchema, UpdatesCheckSchema, UpdatesSummarySchema, UpdateApplySchema, UpdateNotificationsSchema, UpdateNotificationSchema, TabIdSchema, FrontendBuildIdSchema, NotesSourcesSchema, DashboardStatusSchema, TranscribeCapabilitySchema } from '../views.js';
|
|
3
|
+
import { SkillsSchema, SkillContentSchema, SkillsUsageSchema, MemorySchema, PromptSchema, PromptsSchema, CommandsSchema, LogsSchema, InsightsSchema, AgentHealthSchema, SystemHealthSchema, McpServerSchema, McpServersSchema, McpToolsSchema, PluginsSchema, UpdatesCheckSchema, UpdatesSummarySchema, UpdateApplySchema, UpdateNotificationsSchema, UpdateNotificationSchema, TabIdSchema, FrontendBuildIdSchema, NotesSourcesSchema, NotesSearchSchema, NoteItemSchema, WikiStatusSchema, WikiBrowseSchema, WikiPageSchema, DashboardStatusSchema, DashboardConfigSchema, GatewayStatusSchema, GatewayActionSchema, ProjectOsDashboardSchema, TranscribeCapabilitySchema } from '../views.js';
|
|
4
|
+
import { CommandBundleInvocationSchema, CommandBundleSchema } from '../sidecar/namespaces.js';
|
|
4
5
|
/** Skills, memory, prompts, commands, notes, insights, logs, health, MCP, plugins, updates, and diagnostics. */
|
|
5
6
|
const Json = z.unknown();
|
|
6
7
|
const Loose = z.record(z.string(), z.unknown());
|
|
@@ -29,10 +30,19 @@ export const toolsContract = {
|
|
|
29
30
|
commands: {
|
|
30
31
|
list: oc.route({ method: 'GET', path: '/api/commands', tags }).output(CommandsSchema),
|
|
31
32
|
exec: oc.route({ method: 'POST', path: '/api/commands/exec', tags }).input(z.object({ command: z.string().optional(), session_id: z.string().optional() })).output(z.object({ output: z.string() })),
|
|
33
|
+
bundles: oc.route({ method: 'GET', path: '/api/commands/bundles', tags, summary: "The active profile's skill bundles; empty when the Agent is unavailable." }).output(z.object({ bundles: z.array(CommandBundleSchema) })),
|
|
34
|
+
resolveBundle: oc.route({ method: 'POST', path: '/api/commands/bundles/resolve', tags, summary: 'Expands `/<bundle> [instruction]` into the user message that loads its skills. 404 for an unknown bundle.' }).input(z.object({ command: z.string().optional() })).output(CommandBundleInvocationSchema),
|
|
35
|
+
resolveMoa: oc.route({ method: 'GET', path: '/api/commands/moa/resolve', tags, summary: "The active profile's normalized MoA config merged with `preset`, or its default preset when that is absent or unknown. 503 when the Agent has no MoA." }).input(z.object({ preset: z.string().optional() })).output(z.looseObject({ preset: z.string(), usage: z.string() })),
|
|
32
36
|
},
|
|
33
37
|
notes: {
|
|
34
38
|
sources: oc.route({ method: 'GET', path: '/api/notes/sources', tags }).output(NotesSourcesSchema),
|
|
35
|
-
search: oc.route({ method: 'GET', path: '/api/notes/search', tags }).input(z.object({ source: z.string().optional(), q: z.string().optional(), limit: z.string().optional() })).output(
|
|
39
|
+
search: oc.route({ method: 'GET', path: '/api/notes/search', tags, summary: 'Joplin notes matching `q` (`limit` 1-50, default 20). 404 while external notes sources are disabled; 502 when Joplin fails.' }).input(z.object({ source: z.string().optional(), q: z.string().optional(), limit: z.string().optional() })).output(NotesSearchSchema),
|
|
40
|
+
item: oc.route({ method: 'GET', path: '/api/notes/item', tags, summary: 'One Joplin note for preview. 404 while external notes sources are disabled; 502 for an invalid id or a Joplin failure.' }).input(z.object({ source: z.string().optional(), id: z.string().optional() })).output(NoteItemSchema),
|
|
41
|
+
},
|
|
42
|
+
wiki: {
|
|
43
|
+
status: oc.route({ method: 'GET', path: '/api/wiki/status', tags, summary: 'LLM wiki summary from `WIKI_PATH` (env, then the profile `.env`), `skills.config.wiki.path` or `wiki.path` in config.yaml, else `~/wiki`. Always 200.' }).output(WikiStatusSchema),
|
|
44
|
+
browse: oc.route({ method: 'GET', path: '/api/wiki/browse', tags, summary: 'Allowlisted `*.md` pages under `entities`, `concepts`, `comparisons`, and `queries`; 404 when the wiki directory is missing.' }).output(WikiBrowseSchema),
|
|
45
|
+
page: oc.route({ method: 'GET', path: '/api/wiki/page', tags, summary: 'One allowlisted page, cut at 2 MiB. 400 for a missing or non-canonical path; 404 for anything not listed.' }).input(z.object({ path: z.string().optional() })).output(WikiPageSchema),
|
|
36
46
|
},
|
|
37
47
|
insights: oc.route({ method: 'GET', path: '/api/insights', tags }).input(z.object({ days: z.string().optional() })).output(InsightsSchema),
|
|
38
48
|
logs: oc.route({ method: 'GET', path: '/api/logs', tags }).input(z.object({ file: z.string().optional(), tail: z.string().optional() })).output(LogsSchema),
|
|
@@ -41,11 +51,20 @@ export const toolsContract = {
|
|
|
41
51
|
system: oc.route({ method: 'GET', path: '/api/system/health', tags }).output(SystemHealthSchema),
|
|
42
52
|
restart: oc.route({ method: 'POST', path: '/api/health/restart', tags, summary: 'Restart the Hermes gateway for the active profile (operator only).' }).input(Loose.optional()).output(z.object({ ok: z.literal(true), message: z.string() })),
|
|
43
53
|
dashboard: oc.route({ method: 'GET', path: '/api/dashboard/status', tags }).output(DashboardStatusSchema),
|
|
54
|
+
dashboardConfig: oc.route({ method: 'GET', path: '/api/dashboard/config', tags, summary: "The active profile's `webui.dashboard` link settings. 400 when the stored URL is invalid." }).output(DashboardConfigSchema),
|
|
55
|
+
saveDashboardConfig: oc.route({ method: 'POST', path: '/api/dashboard/config', tags, summary: "Writes `webui.dashboard.{enabled,url}` to the active profile's config.yaml; an empty `url` removes it. 400 for an invalid mode or URL." }).input(z.object({ enabled: Json.optional(), url: Json.optional() })).output(DashboardConfigSchema),
|
|
56
|
+
projectOs: oc.route({ method: 'GET', path: '/api/project-os/dashboard', tags, summary: 'Project OS handoff, status, and docs for the current repo. Always 200.' }).input(z.object({ board: z.string().optional() })).output(ProjectOsDashboardSchema),
|
|
44
57
|
shutdown: oc.route({ method: 'POST', path: '/api/shutdown', tags, summary: 'Stop the server process (operator only).' }).input(Loose.optional()).output(z.object({ status: z.literal('shutting_down') })),
|
|
45
58
|
},
|
|
59
|
+
gateway: {
|
|
60
|
+
status: oc.route({ method: 'GET', path: '/api/gateway/status', tags }).output(GatewayStatusSchema),
|
|
61
|
+
start: oc.route({ method: 'POST', path: '/api/gateway/start', tags, summary: 'Run `hermes gateway start` for the active profile (operator only). 409 while another gateway action runs, 500 on failure, 504 after 60 seconds.' }).input(Loose.optional()).output(GatewayActionSchema),
|
|
62
|
+
stop: oc.route({ method: 'POST', path: '/api/gateway/stop', tags, summary: 'Run `hermes gateway stop` for the active profile (operator only). 409 while another gateway action runs, 500 on failure, 504 after 60 seconds.' }).input(Loose.optional()).output(GatewayActionSchema),
|
|
63
|
+
restart: oc.route({ method: 'POST', path: '/api/gateway/restart', tags, summary: 'Run `hermes gateway restart` for the active profile (operator only). 409 while another gateway action runs, 500 on failure, 504 after 60 seconds.' }).input(Loose.optional()).output(GatewayActionSchema),
|
|
64
|
+
},
|
|
46
65
|
mcp: {
|
|
47
66
|
servers: oc.route({ method: 'GET', path: '/api/mcp/servers', tags }).output(McpServersSchema),
|
|
48
|
-
tools: oc.route({ method: 'GET', path: '/api/mcp/tools', tags }).output(McpToolsSchema),
|
|
67
|
+
tools: oc.route({ method: 'GET', path: '/api/mcp/tools', tags, summary: '`q` keeps tools whose name, server, or description contains it (case-insensitive); `total` counts every known tool.' }).input(z.object({ q: z.string().optional() })).output(McpToolsSchema),
|
|
49
68
|
action: oc.route({ method: 'POST', path: '/api/mcp/servers/{name}', tags, summary: '`{enabled}` toggles, `{delete: true}` removes, `{url|command, ...}` adds or updates the server in config.yaml.' }).input(z.object({ name: z.string() }).catchall(Json)).output(Loose),
|
|
50
69
|
toggle: oc.route({ method: 'PATCH', path: '/api/mcp/servers/{name}', tags }).input(z.object({ name: z.string(), enabled: Json.optional() })).output(z.object({ ok: z.literal(true), name: z.string(), enabled: z.boolean() })),
|
|
51
70
|
update: oc.route({ method: 'PUT', path: '/api/mcp/servers/{name}', tags }).input(z.object({ name: z.string() }).catchall(Json)).output(z.object({ ok: z.literal(true), server: McpServerSchema })),
|
|
@@ -58,7 +77,7 @@ export const toolsContract = {
|
|
|
58
77
|
apply: oc.route({ method: 'POST', path: '/api/updates/apply', tags }).input(Target).output(UpdateApplySchema),
|
|
59
78
|
force: oc.route({ method: 'POST', path: '/api/updates/force', tags }).input(Target).output(UpdateApplySchema),
|
|
60
79
|
clearLock: oc.route({ method: 'POST', path: '/api/updates/clear_lock', tags }).input(Target).output(UpdateApplySchema),
|
|
61
|
-
summary: oc.route({ method: 'POST', path: '/api/updates/summary', tags }).input(z.
|
|
80
|
+
summary: oc.route({ method: 'POST', path: '/api/updates/summary', tags }).input(z.strictObject({ target: z.enum(['webui', 'agent']) })).output(UpdatesSummarySchema),
|
|
62
81
|
},
|
|
63
82
|
updateNotifications: {
|
|
64
83
|
list: oc.route({ method: 'GET', path: '/api/update-notifications', tags, summary: 'Server-owned update operation history for the authenticated owner and active profile. A Web tab passes its tab_id and loaded_build so the server compares that build and keeps its tab-scoped refresh notice.' }).input(z.object({ tab_id: TabIdSchema.optional(), loaded_build: FrontendBuildIdSchema.optional() })).output(UpdateNotificationsSchema),
|