@hearsay-tools/squawk 0.18.0-dev.8037 → 0.18.0-dev.8044
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/automations/service.d.ts +21 -0
- package/dist/built-in-cli-commands.d.ts +3 -0
- package/dist/built-in-cli-commands.js +152 -0
- package/dist/built-in-cli-commands.js.map +1 -0
- package/dist/ci-wait/controller.d.ts +14 -0
- package/dist/ci-wait/tools.d.ts +3 -0
- package/dist/cli-dispatch.js +13 -73
- package/dist/cli-dispatch.js.map +1 -1
- package/dist/contract/automation-requests.d.ts +9 -0
- package/dist/contract/automation-storage.d.ts +9 -0
- package/dist/contract/automation-tool.d.ts +9 -0
- package/dist/contract/automations.d.ts +27 -0
- package/dist/contract/create-run-input.d.ts +3 -0
- package/dist/contract/index.js +32 -7
- package/dist/contract/run-status.d.ts +1 -0
- package/dist/contract/runs.d.ts +20 -0
- package/dist/contract/workflow-file.d.ts +3 -0
- package/dist/contract/workflows.d.ts +19 -1
- package/dist/core/cli-registry.d.ts +50 -0
- package/dist/core/cli-registry.js +13 -0
- package/dist/core/cli-registry.js.map +1 -0
- package/dist/delegation/routes.d.ts +17 -17
- package/dist/delegation/service.js +2 -2
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +15 -15
- package/dist/home/backup-args.d.ts +18 -0
- package/dist/home/backup-args.js +35 -0
- package/dist/home/backup-args.js.map +1 -0
- package/dist/home/entry.js +9 -6
- package/dist/home/entry.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/runs/run-archive.d.ts +77 -73
- package/dist/runs/run-decode.d.ts +12 -1
- package/dist/runs/run-exits.d.ts +26 -4
- package/dist/runs/store.d.ts +1 -1
- package/dist/server/server.d.ts +286 -18
- package/dist/subcommands.d.ts +2 -10
- package/dist/subcommands.js +14 -62
- package/dist/subcommands.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +5 -1
- package/dist/workflows/load.js +7 -0
- package/dist/workflows/load.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +21 -0
- package/dist/workflows/run/launch-read-resolver.js +1 -1
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/queued-revival.js +1 -1
- package/dist/workflows/run/step-decisions.js +4 -3
- package/dist/workflows/run/step-decisions.js.map +1 -1
- package/dist/workflows/run/step-loop.js +32 -16
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +5 -1
- package/dist/workflows/step-kind-registry.d.ts +43 -0
- package/dist/workflows/step-kind-registry.js +43 -0
- package/dist/workflows/step-kind-registry.js.map +1 -0
- package/dist/workflows/types.d.ts +4 -1
- package/dist/workflows/types.js +1 -1
- package/dist/workflows/types.js.map +1 -1
- package/dist/workspace/backups.d.ts +1 -18
- package/dist/workspace/backups.js +2 -34
- package/dist/workspace/backups.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-runtime.ts +3 -0
- package/scripts/measure-transcript-facts-health.mjs +3 -0
- package/web/dist/assets/{accounts-section-B-zlsH7k.js → accounts-section-D3P_Z-Nu.js} +1 -1
- package/web/dist/assets/{activity-motion-psm6jyeg.js → activity-motion-BW-0k8s7.js} +1 -1
- package/web/dist/assets/{activity-route-DeK0riM9.js → activity-route-Bpgblioe.js} +1 -1
- package/web/dist/assets/{agent-config-section-BvmWn_h-.js → agent-config-section-Cj3w7UIn.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-DsuYOQpY.js → agent-defaults-section-BJ4poe9c.js} +1 -1
- package/web/dist/assets/{appearance-DNMXL1v0.js → appearance-BUsUTPF0.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-BovFB0t7.js → archive-on-merge-field-D_kgBFNv.js} +1 -1
- package/web/dist/assets/attention-lvUYNNvV.js +1 -0
- package/web/dist/assets/{automations-route-DyiKOd25.js → automations-route-CZaUrmDs.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-DawdFJ6E.js → commit-diff-panel-xwLW6Ydr.js} +1 -1
- package/web/dist/assets/{diff-CfoXwmnl.js → diff-BB8SoL-s.js} +2 -2
- package/web/dist/assets/{diff-view-5xkdG47g.js → diff-view-O8lx1ztb.js} +1 -1
- package/web/dist/assets/{file-preview-DIVTxup4.js → file-preview-BS6M2tBo.js} +1 -1
- package/web/dist/assets/{folder-browser-BzVWaANT.js → folder-browser-Dsqz0Z1z.js} +1 -1
- package/web/dist/assets/{git-toolbar-BUViNmxj.js → git-toolbar-DoPFA36c.js} +1 -1
- package/web/dist/assets/{github-COe1nsmn.js → github-Bjy3WBvf.js} +1 -1
- package/web/dist/assets/{global-activity-route-B-cJo1pg.js → global-activity-route-BXBZKz_9.js} +1 -1
- package/web/dist/assets/{index-BZiixXpY.js → index-CmadQXcg.js} +5 -5
- package/web/dist/assets/{label-DVUPtyTI.js → label-CZp8t0zE.js} +1 -1
- package/web/dist/assets/{markdown-bvY77s5D.js → markdown-KHcncamw.js} +1 -1
- package/web/dist/assets/{notifications-section-Cet1mmEc.js → notifications-section-DD21Sd79.js} +1 -1
- package/web/dist/assets/{open-in-menu-BpSp2CJF.js → open-in-menu-DdKs6X5r.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-BCrpsIIn.js → preview-pane-connected-BvTZv2SQ.js} +1 -1
- package/web/dist/assets/{project-location-ClZPnbBZ.js → project-location-B3LBvkz2.js} +1 -1
- package/web/dist/assets/{project-router-BYrAO9Ws.js → project-router-CIKODSHW.js} +1 -1
- package/web/dist/assets/project-scope-context-D1bpJixc.js +4 -0
- package/web/dist/assets/{projects-section-CdUdrEPd.js → projects-section-C0k8kyb-.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-D3ojaPZw.js → prompt-templates-section-DNkosCni.js} +1 -1
- package/web/dist/assets/{queries--x5yVcip.js → queries-dHXhD3Hc.js} +1 -1
- package/web/dist/assets/{reference-chip-013dL8dQ.js → reference-chip-BWViAFIN.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BbBWWAm8.js → remote-settings-notice-DPCENbhz.js} +1 -1
- package/web/dist/assets/{repo-git-1hSBzyJQ.js → repo-git-jKOnO3ba.js} +1 -1
- package/web/dist/assets/{report-reader-BNtgxtSI.js → report-reader-DXYiKNcg.js} +1 -1
- package/web/dist/assets/{reports-C64cW2KP.js → reports-DEE0bHNv.js} +1 -1
- package/web/dist/assets/{resources-section-xAUouGNM.js → resources-section-lqXgYTrv.js} +1 -1
- package/web/dist/assets/{run-header-75eMWFhM.js → run-header-CXlUbvDO.js} +1 -1
- package/web/dist/assets/{runners-C4-xD5Cz.js → runners-CGQjSsir.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-4P5j_ZP8.js → settings-agent-picker-BRvZn4kM.js} +1 -1
- package/web/dist/assets/{settings-shell-CME_R4D1.js → settings-shell-DTtd-vIa.js} +1 -1
- package/web/dist/assets/{sidebar-section-BQSB_KxK.js → sidebar-section-BFW4ZfBR.js} +1 -1
- package/web/dist/assets/{skills-RUJCWIve.js → skills-AImMlT1T.js} +1 -1
- package/web/dist/assets/{tab-link-DnbdjF4r.js → tab-link-CM6SDBtV.js} +1 -1
- package/web/dist/assets/{task-changes-Boec_UFj.js → task-changes-01Z_ppIw.js} +1 -1
- package/web/dist/assets/{task-commits-B6k-DdnE.js → task-commits-DRNIum3J.js} +1 -1
- package/web/dist/assets/{task-files-T731cz4q.js → task-files-Crz7Fo3C.js} +1 -1
- package/web/dist/assets/{task-github-item-iQd_C1Y4.js → task-github-item-psG2V47c.js} +1 -1
- package/web/dist/assets/{task-groups-BTMFLRHJ.js → task-groups-DF0XoB6U.js} +1 -1
- package/web/dist/assets/{task-thread-BaPz3rdA.js → task-thread-Bqg91ZVZ.js} +2 -2
- package/web/dist/assets/{tasks-table-BCuA9Kx7.js → tasks-table-DHTEGteC.js} +1 -1
- package/web/dist/assets/{thread-state-B3Ichxx9.js → thread-state-BWJ2YyXo.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-DIIBuX3r.js → use-hand-to-agent-state-DNROQerR.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-BxpPo6z-.js → useInfiniteQuery-qJeCNhM7.js} +1 -1
- package/web/dist/assets/useQuery-C3CQhXsT.js +1 -0
- package/web/dist/assets/{workflows-8HhOvPhw.js → workflows-Cx9lgrEo.js} +2 -2
- package/web/dist/assets/{workspace-tools-D6C2Yjat.js → workspace-tools-CVitt3kE.js} +1 -1
- package/web/dist/assets/{worktrees-section-Cm4JH128.js → worktrees-section-DxUg4l9n.js} +1 -1
- package/web/dist/assets/{ws-Iixb-QFR.js → ws-BisMp6U5.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/assets/attention-DaLkUl4h.js +0 -1
- package/web/dist/assets/project-scope-context-BDU1qGx3.js +0 -4
- package/web/dist/assets/useQuery-DcVi2Spi.js +0 -1
|
@@ -114,6 +114,9 @@ export declare function createAutomationService(deps: AutomationServiceDeps): {
|
|
|
114
114
|
agentProfile?: string | undefined;
|
|
115
115
|
allowedTools?: string[] | undefined;
|
|
116
116
|
bashAllowlist?: string[] | undefined;
|
|
117
|
+
kind?: "plugin" | undefined;
|
|
118
|
+
pluginKind?: string | undefined;
|
|
119
|
+
config?: Record<string, unknown> | undefined;
|
|
117
120
|
command?: string | undefined;
|
|
118
121
|
onFail?: {
|
|
119
122
|
retry: string;
|
|
@@ -271,6 +274,9 @@ export declare function createAutomationService(deps: AutomationServiceDeps): {
|
|
|
271
274
|
agentProfile?: string | undefined;
|
|
272
275
|
allowedTools?: string[] | undefined;
|
|
273
276
|
bashAllowlist?: string[] | undefined;
|
|
277
|
+
kind?: "plugin" | undefined;
|
|
278
|
+
pluginKind?: string | undefined;
|
|
279
|
+
config?: Record<string, unknown> | undefined;
|
|
274
280
|
command?: string | undefined;
|
|
275
281
|
onFail?: {
|
|
276
282
|
retry: string;
|
|
@@ -421,6 +427,9 @@ export declare function createAutomationService(deps: AutomationServiceDeps): {
|
|
|
421
427
|
agentProfile?: string | undefined;
|
|
422
428
|
allowedTools?: string[] | undefined;
|
|
423
429
|
bashAllowlist?: string[] | undefined;
|
|
430
|
+
kind?: "plugin" | undefined;
|
|
431
|
+
pluginKind?: string | undefined;
|
|
432
|
+
config?: Record<string, unknown> | undefined;
|
|
424
433
|
command?: string | undefined;
|
|
425
434
|
onFail?: {
|
|
426
435
|
retry: string;
|
|
@@ -503,6 +512,9 @@ export declare function createAutomationService(deps: AutomationServiceDeps): {
|
|
|
503
512
|
agentProfile?: string | undefined;
|
|
504
513
|
allowedTools?: string[] | undefined;
|
|
505
514
|
bashAllowlist?: string[] | undefined;
|
|
515
|
+
kind?: "plugin" | undefined;
|
|
516
|
+
pluginKind?: string | undefined;
|
|
517
|
+
config?: Record<string, unknown> | undefined;
|
|
506
518
|
command?: string | undefined;
|
|
507
519
|
onFail?: {
|
|
508
520
|
retry: string;
|
|
@@ -590,6 +602,9 @@ export declare function createAutomationService(deps: AutomationServiceDeps): {
|
|
|
590
602
|
agentProfile?: string | undefined;
|
|
591
603
|
allowedTools?: string[] | undefined;
|
|
592
604
|
bashAllowlist?: string[] | undefined;
|
|
605
|
+
kind?: "plugin" | undefined;
|
|
606
|
+
pluginKind?: string | undefined;
|
|
607
|
+
config?: Record<string, unknown> | undefined;
|
|
593
608
|
command?: string | undefined;
|
|
594
609
|
onFail?: {
|
|
595
610
|
retry: string;
|
|
@@ -672,6 +687,9 @@ export declare function createAutomationService(deps: AutomationServiceDeps): {
|
|
|
672
687
|
agentProfile?: string | undefined;
|
|
673
688
|
allowedTools?: string[] | undefined;
|
|
674
689
|
bashAllowlist?: string[] | undefined;
|
|
690
|
+
kind?: "plugin" | undefined;
|
|
691
|
+
pluginKind?: string | undefined;
|
|
692
|
+
config?: Record<string, unknown> | undefined;
|
|
675
693
|
command?: string | undefined;
|
|
676
694
|
onFail?: {
|
|
677
695
|
retry: string;
|
|
@@ -755,6 +773,9 @@ export declare function createAutomationService(deps: AutomationServiceDeps): {
|
|
|
755
773
|
agentProfile?: string | undefined;
|
|
756
774
|
allowedTools?: string[] | undefined;
|
|
757
775
|
bashAllowlist?: string[] | undefined;
|
|
776
|
+
kind?: "plugin" | undefined;
|
|
777
|
+
pluginKind?: string | undefined;
|
|
778
|
+
config?: Record<string, unknown> | undefined;
|
|
758
779
|
command?: string | undefined;
|
|
759
780
|
onFail?: {
|
|
760
781
|
retry: string;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { registerCliCommand, sealCliCommands } from './core/cli-registry.js';
|
|
2
|
+
import { resolveHome } from './home/resolve.js';
|
|
3
|
+
import { readInstallMarker } from './home/install-marker.js';
|
|
4
|
+
import { isValidRestore } from './home/backup-args.js';
|
|
5
|
+
/** An unreadable marker still marks the split home as in use: list it, as before the fallback. */
|
|
6
|
+
function hasInstallMarker(root) {
|
|
7
|
+
try {
|
|
8
|
+
return readInstallMarker(root) !== undefined;
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/** Help must skip both runtime registration and the migrating operator Home factory. */
|
|
15
|
+
function operatorHelp(command, argv) {
|
|
16
|
+
return ['--help', '-h', ...(command === 'remote-settings' ? ['help'] : [])].includes(argv[0] ?? '');
|
|
17
|
+
}
|
|
18
|
+
const builtIns = [
|
|
19
|
+
{ name: 'serve', usage: [" cez start the cockpit (server + GUI) for the current repo"],
|
|
20
|
+
parseMode: 'root', homeMode: 'unconditional', runtimeMode: 'always',
|
|
21
|
+
load: async () => async ({ deps, home, repoRoot, values }) => {
|
|
22
|
+
await deps.serveCommand(home(), repoRoot, Number(values.port), !values['no-open'], values['bind-host']);
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{ name: 'run', usage: [" cez run \"<task>\" run a task headless in the terminal"],
|
|
26
|
+
parseMode: 'root', homeMode: 'unconditional', runtimeMode: 'always',
|
|
27
|
+
homeEntry: argv => argv.slice(1).join(' ').trim() ? 'run' : 'run-usage',
|
|
28
|
+
load: async () => async ({ deps, home, repoRoot, task, values }) => {
|
|
29
|
+
await deps.runCommand(home(), repoRoot, task, values.workflow, values.model, { allowWorkers: !values['no-workers'], allowMessaging: !values['no-messaging'] });
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{ name: 'init', usage: [" cez init scaffold .ai/squawk/ (example workflow + skill)"],
|
|
33
|
+
parseMode: 'root', homeMode: 'unconditional', runtimeMode: 'always',
|
|
34
|
+
load: async () => async ({ deps, home, repoRoot }) => {
|
|
35
|
+
home();
|
|
36
|
+
await deps.initCommand(repoRoot);
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{ name: 'projects', usage: [" cez projects list the projects this cockpit serves", " (also: projects add [<dir>] · projects remove|rm <id> ·", " projects tag <id> [<tag>…])"],
|
|
40
|
+
parseMode: 'root', homeMode: 'conditional', runtimeMode: 'always',
|
|
41
|
+
load: async () => async ({ deps, home, repoRoot, positionals }) => {
|
|
42
|
+
// Registry-only (no server, no HTTP) — see workspace/projects-cli.ts.
|
|
43
|
+
deps.process.exitCode = await deps.runProjectsCommand(positionals.slice(1), { defaultRoot: repoRoot, home: home() });
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{ name: 'backup', usage: [" cez backup list [<file>] list rotating registry and account backups", " cez backup restore <file> [--at <time>] restore JSON from a backup"],
|
|
47
|
+
parseMode: 'subcommand', homeMode: 'unconditional', runtimeMode: argv => !operatorHelp('backup', argv),
|
|
48
|
+
homeEntry: argv => isValidRestore(argv.slice(1)) ? 'backup' : 'backup-read',
|
|
49
|
+
load: async (home) => async (argv, env) => {
|
|
50
|
+
const selected = operatorHelp('backup', argv) ? resolveHome({ purpose: 'cli', env }) : home(env);
|
|
51
|
+
const source = selected.layout === 'split' && argv[0] === 'list' && !hasInstallMarker(selected.config)
|
|
52
|
+
? resolveHome({ purpose: 'cli', env, layout: 'legacy' }) : selected;
|
|
53
|
+
return (await import('./workspace/backup-cli.js')).runBackupCommand(argv, env, source, { contained: source !== selected });
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{ name: 'discover', usage: [" cez discover list host runners, models, and advertised effort levels"],
|
|
57
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'always',
|
|
58
|
+
load: async () => (await import('./discovery/cli.js')).runDiscoverCommand,
|
|
59
|
+
},
|
|
60
|
+
{ name: 'worker', usage: [" cez worker manage owned workers (see: worker --help)"],
|
|
61
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: argv => argv.length === 0 || argv.some(arg => arg === '--help' || arg === '-h') || argv[0] === 'help' || argv[0] === 'spawn',
|
|
62
|
+
load: async () => (await import('./delegation/cli.js')).runWorkerCommand,
|
|
63
|
+
},
|
|
64
|
+
{ name: 'message', usage: [" cez message message tasks (see: message --help)"],
|
|
65
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'none',
|
|
66
|
+
load: async () => (await import('./delegation/cli.js')).runMessageCommand,
|
|
67
|
+
},
|
|
68
|
+
{ name: 'task', usage: [" cez task start/watch/steer cockpit tasks from the terminal (see: task --help)"],
|
|
69
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'always',
|
|
70
|
+
load: async () => (await import('./task-cli/cli.js')).runTaskCommand,
|
|
71
|
+
},
|
|
72
|
+
{ name: 'automation', usage: [" cez automation create and manage automations from a task (see: automation --help)"],
|
|
73
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'none',
|
|
74
|
+
load: async () => (await import('./automations/automation-cli.js')).runAutomationCommand,
|
|
75
|
+
},
|
|
76
|
+
{ name: 'webhook', usage: [" cez webhook list and send to the project webhooks open to agents (see: webhook --help)"],
|
|
77
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'none',
|
|
78
|
+
load: async () => (await import('./webhooks/cli.js')).runWebhookCommand,
|
|
79
|
+
},
|
|
80
|
+
{ name: 'artifact', usage: [" cez artifact publish <path> publish a local task artifact (see: artifact --help)"],
|
|
81
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'none',
|
|
82
|
+
load: async () => (await import('./artifacts/cli.js')).runArtifactCommand,
|
|
83
|
+
},
|
|
84
|
+
{ name: 'job', usage: [" cez job start <name> -- <cmd> run a long command that outlives the agent session (see: job --help)"],
|
|
85
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'none',
|
|
86
|
+
load: async () => (await import('./jobs/cli.js')).runJobCommand,
|
|
87
|
+
},
|
|
88
|
+
{ name: 'server-install', usage: [" cez server-install interactive wizard to host Squawk on a server"],
|
|
89
|
+
parseMode: 'root', homeMode: 'conditional', runtimeMode: 'always',
|
|
90
|
+
load: async () => async ({ deps, home, repoRoot, values, portExplicit }) => {
|
|
91
|
+
await deps.serverCommand('install', home(), repoRoot, values.platform, {
|
|
92
|
+
yes: Boolean(values.yes),
|
|
93
|
+
reconfigure: values.reconfigure,
|
|
94
|
+
reinstall: Boolean(values.reinstall),
|
|
95
|
+
domain: values.domain,
|
|
96
|
+
port: portExplicit ? Number(values.port) : undefined,
|
|
97
|
+
externalProxy: Boolean(values['external-proxy']),
|
|
98
|
+
bindHost: values['bind-host'],
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{ name: 'server-deploy', usage: [" cez server-deploy redeploy a new version (reload the service) + verify"],
|
|
103
|
+
parseMode: 'root', homeMode: 'conditional', runtimeMode: 'always',
|
|
104
|
+
load: async () => async ({ deps, home, repoRoot, values }) => {
|
|
105
|
+
await deps.serverCommand('deploy', home(), repoRoot, values.platform, {
|
|
106
|
+
yes: Boolean(values.yes),
|
|
107
|
+
domain: values.domain,
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{ name: 'server-uninstall', usage: [" cez server-uninstall reverse a server-install"],
|
|
112
|
+
parseMode: 'root', homeMode: 'conditional', runtimeMode: 'always',
|
|
113
|
+
load: async () => async ({ deps, home, repoRoot, values }) => {
|
|
114
|
+
await deps.serverCommand('uninstall', home(), repoRoot, values.platform, {
|
|
115
|
+
yes: Boolean(values.yes),
|
|
116
|
+
domain: values.domain,
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{ name: 'migrate', usage: [" hsq migrate [--dry-run] migrate the legacy home into the split layout", " hsq migrate --resolve-legacy <file> restore|accept resolve legacy recovery first"],
|
|
121
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'always',
|
|
122
|
+
load: async () => (await import('./home/migration-cli.js')).runMigrationCommand,
|
|
123
|
+
},
|
|
124
|
+
{ name: 'migrate-project', usage: [" hsq migrate-project [--dry-run] move this project's state from .ai/cezar/ to .ai/squawk/, offline"],
|
|
125
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'always',
|
|
126
|
+
load: async () => (await import('./project-migration/cli.js')).migrateProjectRunner(env => {
|
|
127
|
+
return [resolveHome({ purpose: 'cli', env, layout: 'legacy' }), resolveHome({ purpose: 'cli', env, layout: 'split' })];
|
|
128
|
+
}),
|
|
129
|
+
},
|
|
130
|
+
{ name: 'remote-settings', usage: [" cez remote-settings enable|status|disable remote edits of agent config and worktree setup"],
|
|
131
|
+
parseMode: 'subcommand', homeMode: 'conditional', runtimeMode: argv => !operatorHelp('remote-settings', argv),
|
|
132
|
+
load: async (home) => async (argv, env) => {
|
|
133
|
+
return (await import('./remote-settings-cli.js')).runRemoteSettingsCommand(argv, env, undefined, operatorHelp('remote-settings', argv)
|
|
134
|
+
? resolveHome({ purpose: 'cli', env }) : home(env));
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
// This internal migration command has no line in the shipped root help.
|
|
138
|
+
{ name: 'server-migrate', usage: [],
|
|
139
|
+
parseMode: 'subcommand', homeMode: 'none', runtimeMode: 'always',
|
|
140
|
+
load: async () => async (argv, env) => {
|
|
141
|
+
const legacy = resolveHome({ purpose: 'cli', env, layout: 'legacy' }), target = resolveHome({ purpose: 'cli', env, layout: 'split' });
|
|
142
|
+
return (await import('./server-install/migrate-cli.js')).runServerMigrateCommand(argv, env, { legacy, target });
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
];
|
|
146
|
+
/** Register only. The CLI boot boundary seals after extensions register. */
|
|
147
|
+
export function registerBuiltInCliCommands() {
|
|
148
|
+
for (const command of builtIns)
|
|
149
|
+
registerCliCommand(command);
|
|
150
|
+
}
|
|
151
|
+
export const sealBuiltInCliCommands = sealCliCommands;
|
|
152
|
+
//# sourceMappingURL=built-in-cli-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-in-cli-commands.js","sourceRoot":"","sources":["../src/built-in-cli-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAA6B,MAAM,wBAAwB,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,kGAAkG;AAClG,SAAS,gBAAgB,CAAC,IAAY;IACpC,IAAI,CAAC;QAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,IAAI,CAAC;IAAC,CAAC;AAC9E,CAAC;AAED,wFAAwF;AACxF,SAAS,YAAY,CAAC,OAAe,EAAE,IAAuB;IAC5D,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,iBAAiB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AACtG,CAAC;AAED,MAAM,QAAQ,GAAoC;IAChD,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,mFAAmF,CAAC;QAC3G,SAAS,EAAE,MAAM,EAAE,QAAQ,EA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AAK,IAAI,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;YACpC,MAAM,MAAM,GAAG,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;YACtI,OAAO,CAAC,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAClH,CAAC;KACF;CACF,CAAC;AAEF,4EAA4E;AAC5E,MAAM,UAAU,0BAA0B;IACxC,KAAK,MAAM,OAAO,IAAI,QAAQ;QAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC9D,CAAC;AACD,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC"}
|
|
@@ -748,6 +748,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
748
748
|
agentProfile?: string | undefined;
|
|
749
749
|
allowedTools?: string[] | undefined;
|
|
750
750
|
bashAllowlist?: string[] | undefined;
|
|
751
|
+
kind?: "plugin" | undefined;
|
|
752
|
+
pluginKind?: string | undefined;
|
|
753
|
+
config?: Record<string, unknown> | undefined;
|
|
751
754
|
command?: string | undefined;
|
|
752
755
|
onFail?: {
|
|
753
756
|
retry: string;
|
|
@@ -832,6 +835,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
832
835
|
agentProfile?: string | undefined;
|
|
833
836
|
allowedTools?: string[] | undefined;
|
|
834
837
|
bashAllowlist?: string[] | undefined;
|
|
838
|
+
kind?: "plugin" | undefined;
|
|
839
|
+
pluginKind?: string | undefined;
|
|
840
|
+
config?: Record<string, unknown> | undefined;
|
|
835
841
|
command?: string | undefined;
|
|
836
842
|
onFail?: {
|
|
837
843
|
retry: string;
|
|
@@ -915,6 +921,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
915
921
|
agentProfile?: string | undefined;
|
|
916
922
|
allowedTools?: string[] | undefined;
|
|
917
923
|
bashAllowlist?: string[] | undefined;
|
|
924
|
+
kind?: "plugin" | undefined;
|
|
925
|
+
pluginKind?: string | undefined;
|
|
926
|
+
config?: {
|
|
927
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
928
|
+
} | undefined;
|
|
918
929
|
command?: string | undefined;
|
|
919
930
|
onFail?: {
|
|
920
931
|
retry: string;
|
|
@@ -1004,6 +1015,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1004
1015
|
agentProfile?: string | undefined;
|
|
1005
1016
|
allowedTools?: string[] | undefined;
|
|
1006
1017
|
bashAllowlist?: string[] | undefined;
|
|
1018
|
+
kind?: "plugin" | undefined;
|
|
1019
|
+
pluginKind?: string | undefined;
|
|
1020
|
+
config?: Record<string, unknown> | undefined;
|
|
1007
1021
|
command?: string | undefined;
|
|
1008
1022
|
onFail?: {
|
|
1009
1023
|
retry: string;
|
package/dist/ci-wait/tools.d.ts
CHANGED
|
@@ -438,6 +438,9 @@ export declare function invokeAutomationTool(input: unknown): Promise<{
|
|
|
438
438
|
agentProfile?: string | undefined;
|
|
439
439
|
allowedTools?: string[] | undefined;
|
|
440
440
|
bashAllowlist?: string[] | undefined;
|
|
441
|
+
kind?: "plugin" | undefined;
|
|
442
|
+
pluginKind?: string | undefined;
|
|
443
|
+
config?: Record<string, unknown> | undefined;
|
|
441
444
|
command?: string | undefined;
|
|
442
445
|
onFail?: {
|
|
443
446
|
retry: string;
|
package/dist/cli-dispatch.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cliCommand, registeredCliCommands } from './core/cli-registry.js';
|
|
1
2
|
import { commandText, oldCommandNotice } from './home/command.js';
|
|
2
3
|
import { parseArgs } from 'node:util';
|
|
3
4
|
import { resolve } from 'node:path';
|
|
@@ -17,29 +18,7 @@ function cliHelp() {
|
|
|
17
18
|
return `Squawk — local cockpit for AI agent tasks in your repo
|
|
18
19
|
|
|
19
20
|
Usage:
|
|
20
|
-
|
|
21
|
-
cez run "<task>" run a task headless in the terminal
|
|
22
|
-
cez init scaffold .ai/squawk/ (example workflow + skill)
|
|
23
|
-
cez projects list the projects this cockpit serves
|
|
24
|
-
(also: projects add [<dir>] · projects remove|rm <id> ·
|
|
25
|
-
projects tag <id> [<tag>…])
|
|
26
|
-
cez backup list [<file>] list rotating registry and account backups
|
|
27
|
-
cez backup restore <file> [--at <time>] restore JSON from a backup
|
|
28
|
-
cez discover list host runners, models, and advertised effort levels
|
|
29
|
-
cez worker manage owned workers (see: worker --help)
|
|
30
|
-
cez message message tasks (see: message --help)
|
|
31
|
-
cez task start/watch/steer cockpit tasks from the terminal (see: task --help)
|
|
32
|
-
cez automation create and manage automations from a task (see: automation --help)
|
|
33
|
-
cez webhook list and send to the project webhooks open to agents (see: webhook --help)
|
|
34
|
-
cez artifact publish <path> publish a local task artifact (see: artifact --help)
|
|
35
|
-
cez job start <name> -- <cmd> run a long command that outlives the agent session (see: job --help)
|
|
36
|
-
cez server-install interactive wizard to host Squawk on a server
|
|
37
|
-
cez server-deploy redeploy a new version (reload the service) + verify
|
|
38
|
-
cez server-uninstall reverse a server-install
|
|
39
|
-
hsq migrate [--dry-run] migrate the legacy home into the split layout
|
|
40
|
-
hsq migrate --resolve-legacy <file> restore|accept resolve legacy recovery first
|
|
41
|
-
hsq migrate-project [--dry-run] move this project's state from .ai/cezar/ to .ai/squawk/, offline
|
|
42
|
-
cez remote-settings enable|status|disable remote edits of agent config and worktree setup
|
|
21
|
+
${registeredCliCommands().flatMap(command => command.usage).join('\n')}
|
|
43
22
|
|
|
44
23
|
Options:
|
|
45
24
|
-p, --port <n> cockpit port (default 4321; server-install: this
|
|
@@ -84,10 +63,6 @@ async function admitProjectCommand(command, repoRoot) {
|
|
|
84
63
|
await (await import('./project-migration/recovery.js')).recoverProjectMigration(repoRoot);
|
|
85
64
|
assertProjectAdmitted(dataDir);
|
|
86
65
|
}
|
|
87
|
-
/** `run` without a task is a usage error: runCommand prints usage, and Home stays unprepared. */
|
|
88
|
-
function commandHomeEntry(command, task) {
|
|
89
|
-
return command === 'run' && !task ? 'run-usage' : command;
|
|
90
|
-
}
|
|
91
66
|
export async function main(deps) {
|
|
92
67
|
const notice = oldCommandNotice(deps.process.argv[1]);
|
|
93
68
|
if (notice)
|
|
@@ -152,57 +127,22 @@ async function dispatch(deps) {
|
|
|
152
127
|
if (printCliMetadata(deps, values, help))
|
|
153
128
|
return;
|
|
154
129
|
const command = positionals[0] ?? 'serve';
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
130
|
+
const definition = cliCommand(command);
|
|
131
|
+
if (definition?.parseMode === 'root')
|
|
132
|
+
await prepareCommandRuntime(command, positionals.slice(1));
|
|
158
133
|
const task = positionals.slice(1).join(' ').trim();
|
|
159
|
-
homeEntry =
|
|
134
|
+
homeEntry = cliCommand(command)?.homeEntry?.(positionals) ?? command;
|
|
160
135
|
const cwd = resolve(values.repo ?? deps.process.cwd());
|
|
161
136
|
const repoInfo = await deps.getRepoInfo(cwd);
|
|
162
137
|
const repoRoot = repoInfo?.root ?? cwd;
|
|
163
138
|
await admitProjectCommand(command, repoRoot);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
case 'run':
|
|
169
|
-
await deps.runCommand(home(), repoRoot, task, values.workflow, values.model, { allowWorkers: !values['no-workers'], allowMessaging: !values['no-messaging'] });
|
|
170
|
-
return;
|
|
171
|
-
case 'init':
|
|
172
|
-
home();
|
|
173
|
-
await deps.initCommand(repoRoot);
|
|
174
|
-
return;
|
|
175
|
-
case 'projects':
|
|
176
|
-
// Registry-only (no server, no HTTP) — see workspace/projects-cli.ts.
|
|
177
|
-
deps.process.exitCode = await deps.runProjectsCommand(positionals.slice(1), { defaultRoot: repoRoot, home: home() });
|
|
178
|
-
return;
|
|
179
|
-
case 'server-install':
|
|
180
|
-
await deps.serverCommand('install', home(), repoRoot, values.platform, {
|
|
181
|
-
yes: Boolean(values.yes),
|
|
182
|
-
reconfigure: values.reconfigure,
|
|
183
|
-
reinstall: Boolean(values.reinstall),
|
|
184
|
-
domain: values.domain,
|
|
185
|
-
port: portExplicit ? Number(values.port) : undefined,
|
|
186
|
-
externalProxy: Boolean(values['external-proxy']),
|
|
187
|
-
bindHost: values['bind-host'],
|
|
188
|
-
});
|
|
189
|
-
return;
|
|
190
|
-
case 'server-deploy':
|
|
191
|
-
await deps.serverCommand('deploy', home(), repoRoot, values.platform, {
|
|
192
|
-
yes: Boolean(values.yes),
|
|
193
|
-
domain: values.domain,
|
|
194
|
-
});
|
|
195
|
-
return;
|
|
196
|
-
case 'server-uninstall':
|
|
197
|
-
await deps.serverCommand('uninstall', home(), repoRoot, values.platform, {
|
|
198
|
-
yes: Boolean(values.yes),
|
|
199
|
-
domain: values.domain,
|
|
200
|
-
});
|
|
201
|
-
return;
|
|
202
|
-
default:
|
|
203
|
-
deps.console.error(`unknown command: ${command}\n`);
|
|
204
|
-
deps.console.log(help());
|
|
205
|
-
deps.process.exitCode = 1;
|
|
139
|
+
if (definition?.parseMode === 'root') {
|
|
140
|
+
const run = await definition.load();
|
|
141
|
+
await run({ deps, home, repoRoot, task, positionals, values, portExplicit });
|
|
142
|
+
return;
|
|
206
143
|
}
|
|
144
|
+
deps.console.error(`unknown command: ${command}\n`);
|
|
145
|
+
deps.console.log(help());
|
|
146
|
+
deps.process.exitCode = 1;
|
|
207
147
|
}
|
|
208
148
|
//# sourceMappingURL=cli-dispatch.js.map
|
package/dist/cli-dispatch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-dispatch.js","sourceRoot":"","sources":["../src/cli-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,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AC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,QAAQ,EAAE,IAAI,IAAI,GAAG,CAAC;IACvC,MAAM,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAE7C,IAAI,UAAU,EAAE,SAAS,KAAK,MAAM,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,MAAM,UAAU,CAAC,IAAI,EAAE,CAAC;QACpC,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;QAC7E,OAAO;IACT,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,IAAI,CAAC,CAAC;IACpD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACzB,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -66,6 +66,9 @@ export declare const automationEditableSchema: z.ZodObject<{
|
|
|
66
66
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
67
67
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
68
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
70
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
71
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
69
72
|
command: z.ZodOptional<z.ZodString>;
|
|
70
73
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
71
74
|
retry: z.ZodString;
|
|
@@ -143,6 +146,9 @@ export declare const automationCreateSchema: z.ZodObject<{
|
|
|
143
146
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
144
147
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
148
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
150
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
151
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
146
152
|
command: z.ZodOptional<z.ZodString>;
|
|
147
153
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
148
154
|
retry: z.ZodString;
|
|
@@ -220,6 +226,9 @@ export declare const automationUpdateSchema: z.ZodObject<{
|
|
|
220
226
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
221
227
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
222
228
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
229
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
230
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
231
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
223
232
|
command: z.ZodOptional<z.ZodString>;
|
|
224
233
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
225
234
|
retry: z.ZodString;
|
|
@@ -37,6 +37,9 @@ export declare const storedAutomationTaskSchema: z.ZodObject<{
|
|
|
37
37
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
38
38
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
39
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
41
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
42
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40
43
|
command: z.ZodOptional<z.ZodString>;
|
|
41
44
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
42
45
|
retry: z.ZodString;
|
|
@@ -119,6 +122,9 @@ export declare const storedAutomationDefinitionObjectSchema: z.ZodObject<{
|
|
|
119
122
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
120
123
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
124
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
126
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
127
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
122
128
|
command: z.ZodOptional<z.ZodString>;
|
|
123
129
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
124
130
|
retry: z.ZodString;
|
|
@@ -215,6 +221,9 @@ export declare const storedAutomationDefinitionSchema: z.ZodPreprocess<z.ZodObje
|
|
|
215
221
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
216
222
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
217
223
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
225
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
226
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
218
227
|
command: z.ZodOptional<z.ZodString>;
|
|
219
228
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
220
229
|
retry: z.ZodString;
|
|
@@ -61,6 +61,9 @@ export declare const repeatingAutomationInputSchema: z.ZodObject<{
|
|
|
61
61
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
62
62
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
63
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
65
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
66
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
64
67
|
command: z.ZodOptional<z.ZodString>;
|
|
65
68
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
66
69
|
retry: z.ZodString;
|
|
@@ -138,6 +141,9 @@ export declare const automationToolRequestSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
138
141
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
139
142
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
143
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
145
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
146
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
141
147
|
command: z.ZodOptional<z.ZodString>;
|
|
142
148
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
143
149
|
retry: z.ZodString;
|
|
@@ -230,6 +236,9 @@ export declare const automationToolAnswerSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
230
236
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
231
237
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
238
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
239
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
240
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
241
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
233
242
|
command: z.ZodOptional<z.ZodString>;
|
|
234
243
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
235
244
|
retry: z.ZodString;
|
|
@@ -73,6 +73,9 @@ export declare const automationTaskSchema: z.ZodObject<{
|
|
|
73
73
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
74
74
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
75
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
77
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
78
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
76
79
|
command: z.ZodOptional<z.ZodString>;
|
|
77
80
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
78
81
|
retry: z.ZodString;
|
|
@@ -175,6 +178,9 @@ export declare const automationDefinitionSchema: z.ZodObject<{
|
|
|
175
178
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
176
179
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
180
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
182
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
183
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
178
184
|
command: z.ZodOptional<z.ZodString>;
|
|
179
185
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
180
186
|
retry: z.ZodString;
|
|
@@ -426,6 +432,9 @@ export declare const automationListEntrySchema: z.ZodObject<{
|
|
|
426
432
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
427
433
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
434
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
435
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
436
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
437
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
429
438
|
command: z.ZodOptional<z.ZodString>;
|
|
430
439
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
431
440
|
retry: z.ZodString;
|
|
@@ -641,6 +650,9 @@ export declare const automationsResponseSchema: z.ZodObject<{
|
|
|
641
650
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
642
651
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
643
652
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
653
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
654
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
655
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
644
656
|
command: z.ZodOptional<z.ZodString>;
|
|
645
657
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
646
658
|
retry: z.ZodString;
|
|
@@ -839,6 +851,9 @@ export declare const automationResponseSchema: z.ZodObject<{
|
|
|
839
851
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
840
852
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
841
853
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
854
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
855
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
856
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
842
857
|
command: z.ZodOptional<z.ZodString>;
|
|
843
858
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
844
859
|
retry: z.ZodString;
|
|
@@ -943,6 +958,9 @@ export declare const automationCreateResponseSchema: z.ZodObject<{
|
|
|
943
958
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
944
959
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
945
960
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
961
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
962
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
963
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
946
964
|
command: z.ZodOptional<z.ZodString>;
|
|
947
965
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
948
966
|
retry: z.ZodString;
|
|
@@ -1050,6 +1068,9 @@ export declare const automationDetailResponseSchema: z.ZodObject<{
|
|
|
1050
1068
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
1051
1069
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1052
1070
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1071
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
1072
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1053
1074
|
command: z.ZodOptional<z.ZodString>;
|
|
1054
1075
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
1055
1076
|
retry: z.ZodString;
|
|
@@ -1330,6 +1351,9 @@ export declare const createAutomationInputSchema: z.ZodObject<{
|
|
|
1330
1351
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
1331
1352
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1332
1353
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1354
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
1355
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1333
1357
|
command: z.ZodOptional<z.ZodString>;
|
|
1334
1358
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
1335
1359
|
retry: z.ZodString;
|
|
@@ -1413,6 +1437,9 @@ export declare const updateAutomationInputSchema: z.ZodObject<{
|
|
|
1413
1437
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
1414
1438
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1415
1439
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1440
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
1441
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1416
1443
|
command: z.ZodOptional<z.ZodString>;
|
|
1417
1444
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
1418
1445
|
retry: z.ZodString;
|