@hearsay-tools/squawk 0.18.0-pr4168.8038 → 0.18.0-pr4169.8039
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/ci-wait/controller.d.ts +18 -4
- package/dist/ci-wait/tools.d.ts +3 -0
- package/dist/cli-dispatch.js +73 -13
- 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/delegation/routes.d.ts +14 -14
- package/dist/delegation/service.js +2 -2
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +21 -21
- package/dist/home/entry.js +6 -9
- package/dist/home/entry.js.map +1 -1
- package/dist/index.js +0 -3
- 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/server/workspace-live-routes.d.ts +6 -6
- package/dist/subcommands.d.ts +10 -2
- package/dist/subcommands.js +65 -11
- 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 +18 -1
- package/dist/workspace/backups.js +34 -2
- 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/dist/built-in-cli-commands.d.ts +0 -3
- package/dist/built-in-cli-commands.js +0 -152
- package/dist/built-in-cli-commands.js.map +0 -1
- package/dist/core/cli-registry.d.ts +0 -50
- package/dist/core/cli-registry.js +0 -13
- package/dist/core/cli-registry.js.map +0 -1
- package/dist/home/backup-args.d.ts +0 -18
- package/dist/home/backup-args.js +0 -35
- package/dist/home/backup-args.js.map +0 -1
- 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;
|
|
@@ -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;
|
|
@@ -1079,10 +1093,6 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1079
1093
|
};
|
|
1080
1094
|
} | {
|
|
1081
1095
|
output: {
|
|
1082
|
-
ok: false;
|
|
1083
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
1084
|
-
message: string;
|
|
1085
|
-
} | {
|
|
1086
1096
|
ok: true;
|
|
1087
1097
|
task: {
|
|
1088
1098
|
id: string;
|
|
@@ -1094,6 +1104,10 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1094
1104
|
url?: string | undefined;
|
|
1095
1105
|
};
|
|
1096
1106
|
note: string;
|
|
1107
|
+
} | {
|
|
1108
|
+
ok: false;
|
|
1109
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
1110
|
+
message: string;
|
|
1097
1111
|
};
|
|
1098
1112
|
outputFormat: "json";
|
|
1099
1113
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
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,4 +1,3 @@
|
|
|
1
|
-
import { cliCommand, registeredCliCommands } from './core/cli-registry.js';
|
|
2
1
|
import { commandText, oldCommandNotice } from './home/command.js';
|
|
3
2
|
import { parseArgs } from 'node:util';
|
|
4
3
|
import { resolve } from 'node:path';
|
|
@@ -18,7 +17,29 @@ function cliHelp() {
|
|
|
18
17
|
return `Squawk — local cockpit for AI agent tasks in your repo
|
|
19
18
|
|
|
20
19
|
Usage:
|
|
21
|
-
|
|
20
|
+
cez start the cockpit (server + GUI) for the current repo
|
|
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
|
|
22
43
|
|
|
23
44
|
Options:
|
|
24
45
|
-p, --port <n> cockpit port (default 4321; server-install: this
|
|
@@ -63,6 +84,10 @@ async function admitProjectCommand(command, repoRoot) {
|
|
|
63
84
|
await (await import('./project-migration/recovery.js')).recoverProjectMigration(repoRoot);
|
|
64
85
|
assertProjectAdmitted(dataDir);
|
|
65
86
|
}
|
|
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
|
+
}
|
|
66
91
|
export async function main(deps) {
|
|
67
92
|
const notice = oldCommandNotice(deps.process.argv[1]);
|
|
68
93
|
if (notice)
|
|
@@ -127,22 +152,57 @@ async function dispatch(deps) {
|
|
|
127
152
|
if (printCliMetadata(deps, values, help))
|
|
128
153
|
return;
|
|
129
154
|
const command = positionals[0] ?? 'serve';
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
155
|
+
if (['serve', 'run', 'init', 'projects', 'server-install', 'server-deploy', 'server-uninstall'].includes(command)) {
|
|
156
|
+
await prepareCommandRuntime(command);
|
|
157
|
+
}
|
|
133
158
|
const task = positionals.slice(1).join(' ').trim();
|
|
134
|
-
homeEntry =
|
|
159
|
+
homeEntry = commandHomeEntry(command, task);
|
|
135
160
|
const cwd = resolve(values.repo ?? deps.process.cwd());
|
|
136
161
|
const repoInfo = await deps.getRepoInfo(cwd);
|
|
137
162
|
const repoRoot = repoInfo?.root ?? cwd;
|
|
138
163
|
await admitProjectCommand(command, repoRoot);
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
164
|
+
switch (command) {
|
|
165
|
+
case 'serve':
|
|
166
|
+
await deps.serveCommand(home(), repoRoot, Number(values.port), !values['no-open'], values['bind-host']);
|
|
167
|
+
return;
|
|
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;
|
|
143
206
|
}
|
|
144
|
-
deps.console.error(`unknown command: ${command}\n`);
|
|
145
|
-
deps.console.log(help());
|
|
146
|
-
deps.process.exitCode = 1;
|
|
147
207
|
}
|
|
148
208
|
//# 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,
|
|
1
|
+
{"version":3,"file":"cli-dispatch.js","sourceRoot":"","sources":["../src/cli-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAI/F,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,iBAAiB,EAAE,mBAAmB;IACjD,aAAa,EAAE,WAAW;IAC1B,kBAAkB,EAAE,KAAK,EAAE,GAAG,IAAiF,EAAE,EAAE,CACjH,CAAC,MAAM,MAAM,CAAC,6BAA6B,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAC3E,OAAO,EAAE,OAAO;CACjB,CAAC;AAWF,SAAS,OAAO;IACd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAwDiF,CAAC;AAC3F,C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AM,CAAC,GAAG,CAAC;gBACxB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC,CAAC;YACH,OAAO;QACT,KAAK,kBAAkB;YACrB,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE;gBACvE,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;gBACxB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC,CAAC;YACH,OAAO;QACT;YACE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,IAAI,CAAC,CAAC;YACpD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;YACzB,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IAC9B,CAAC;AACH,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;
|
|
@@ -38,6 +38,9 @@ export declare const createRunInputBaseSchema: z.ZodObject<{
|
|
|
38
38
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
39
39
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
40
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
42
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
43
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
44
|
command: z.ZodOptional<z.ZodString>;
|
|
42
45
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
43
46
|
retry: z.ZodString;
|
package/dist/contract/index.js
CHANGED
|
@@ -333,7 +333,7 @@ var stepStatusSchema = z7.enum([
|
|
|
333
333
|
"cancelled",
|
|
334
334
|
"skipped"
|
|
335
335
|
]);
|
|
336
|
-
var stepKindSchema = z7.enum(["agent", "check"]);
|
|
336
|
+
var stepKindSchema = z7.enum(["agent", "check", "plugin"]);
|
|
337
337
|
|
|
338
338
|
// ../contract/src/runner.ts
|
|
339
339
|
import { z as z8 } from "zod";
|
|
@@ -1270,17 +1270,41 @@ var workflowStepDefSchema = z17.object({
|
|
|
1270
1270
|
agentProfile: z17.string().min(1).max(64).optional(),
|
|
1271
1271
|
allowedTools: z17.array(z17.string()).optional(),
|
|
1272
1272
|
bashAllowlist: z17.array(z17.string()).optional(),
|
|
1273
|
+
kind: z17.literal("plugin").optional(),
|
|
1274
|
+
pluginKind: z17.string().min(1).max(64).optional(),
|
|
1275
|
+
config: z17.record(z17.string(), z17.unknown()).optional(),
|
|
1273
1276
|
// check step
|
|
1274
1277
|
command: z17.string().optional(),
|
|
1275
1278
|
onFail: z17.object({
|
|
1276
1279
|
retry: z17.string().min(1),
|
|
1277
1280
|
max: z17.number().int().positive().default(2)
|
|
1278
1281
|
}).optional()
|
|
1279
|
-
}).
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1282
|
+
}).superRefine((s, ctx) => {
|
|
1283
|
+
const agent = Boolean(s.prompt ?? s.skill);
|
|
1284
|
+
const check = Boolean(s.command);
|
|
1285
|
+
const plugin = s.kind === "plugin";
|
|
1286
|
+
if (Number(agent) + Number(check) + Number(plugin) !== 1) {
|
|
1287
|
+
ctx.addIssue({ code: "custom", message: "a step is either an agent step (prompt/skill), a check step (command), or a plugin step, not more than one" });
|
|
1288
|
+
}
|
|
1289
|
+
if (plugin && [s.prompt, s.skill, s.command].some((value) => value !== void 0)) {
|
|
1290
|
+
ctx.addIssue({ code: "custom", message: "plugin steps cannot carry prompt, skill, or command" });
|
|
1291
|
+
}
|
|
1292
|
+
if (plugin && (s.pluginKind === "agent" || s.pluginKind === "check")) {
|
|
1293
|
+
ctx.addIssue({ code: "custom", path: ["pluginKind"], message: "pluginKind cannot name a built-in step kind" });
|
|
1294
|
+
}
|
|
1295
|
+
if (plugin && !s.pluginKind) {
|
|
1296
|
+
ctx.addIssue({ code: "custom", path: ["pluginKind"], message: "plugin steps require pluginKind" });
|
|
1297
|
+
}
|
|
1298
|
+
if (!plugin && (s.pluginKind !== void 0 || s.config !== void 0)) {
|
|
1299
|
+
ctx.addIssue({ code: "custom", message: "pluginKind and config apply only to plugin steps" });
|
|
1300
|
+
}
|
|
1301
|
+
if (plugin) {
|
|
1302
|
+
for (const key of ["timeoutMs", "model", "effort", "runner", "agentProfile", "allowedTools", "bashAllowlist"]) {
|
|
1303
|
+
if (s[key] !== void 0) ctx.addIssue({ code: "custom", path: [key], message: `${key} applies only to agent steps` });
|
|
1304
|
+
}
|
|
1305
|
+
} else if (check && s.timeoutMs !== void 0) {
|
|
1306
|
+
ctx.addIssue({ code: "custom", path: ["timeoutMs"], message: "timeoutMs applies only to agent steps" });
|
|
1307
|
+
}
|
|
1284
1308
|
});
|
|
1285
1309
|
var workflowDefSchema = z17.object({
|
|
1286
1310
|
name: z17.string(),
|
|
@@ -1293,7 +1317,7 @@ var workflowDefSchema = z17.object({
|
|
|
1293
1317
|
function providersRequiredByWorkflow(workflow, fallback, runners) {
|
|
1294
1318
|
const required = /* @__PURE__ */ new Set();
|
|
1295
1319
|
for (const step of workflow.steps) {
|
|
1296
|
-
if (!step.command) required.add(step.runner ?? fallback);
|
|
1320
|
+
if (!step.command && step.kind !== "plugin") required.add(step.runner ?? fallback);
|
|
1297
1321
|
}
|
|
1298
1322
|
return runners.filter((provider) => required.has(provider));
|
|
1299
1323
|
}
|
|
@@ -2016,6 +2040,7 @@ var stepStateSchema = z23.object({
|
|
|
2016
2040
|
id: z23.string(),
|
|
2017
2041
|
name: z23.string(),
|
|
2018
2042
|
kind: stepKindSchema,
|
|
2043
|
+
pluginKind: z23.string().min(1).max(64).optional(),
|
|
2019
2044
|
status: stepStatusSchema,
|
|
2020
2045
|
iterations: z23.number(),
|
|
2021
2046
|
/** Durable count of onFail retry loops consumed by this check. */
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -60,7 +60,9 @@ export declare const stepStateSchema: z.ZodObject<{
|
|
|
60
60
|
kind: z.ZodEnum<{
|
|
61
61
|
agent: "agent";
|
|
62
62
|
check: "check";
|
|
63
|
+
plugin: "plugin";
|
|
63
64
|
}>;
|
|
65
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
64
66
|
status: z.ZodEnum<{
|
|
65
67
|
cancelled: "cancelled";
|
|
66
68
|
done: "done";
|
|
@@ -2142,7 +2144,9 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
2142
2144
|
kind: z.ZodEnum<{
|
|
2143
2145
|
agent: "agent";
|
|
2144
2146
|
check: "check";
|
|
2147
|
+
plugin: "plugin";
|
|
2145
2148
|
}>;
|
|
2149
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
2146
2150
|
status: z.ZodEnum<{
|
|
2147
2151
|
cancelled: "cancelled";
|
|
2148
2152
|
done: "done";
|
|
@@ -2190,6 +2194,9 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
2190
2194
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
2191
2195
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2192
2196
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2197
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
2198
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
2199
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2193
2200
|
command: z.ZodOptional<z.ZodString>;
|
|
2194
2201
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
2195
2202
|
retry: z.ZodString;
|
|
@@ -4190,7 +4197,9 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
4190
4197
|
kind: z.ZodEnum<{
|
|
4191
4198
|
agent: "agent";
|
|
4192
4199
|
check: "check";
|
|
4200
|
+
plugin: "plugin";
|
|
4193
4201
|
}>;
|
|
4202
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
4194
4203
|
status: z.ZodEnum<{
|
|
4195
4204
|
cancelled: "cancelled";
|
|
4196
4205
|
done: "done";
|
|
@@ -4238,6 +4247,9 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
4238
4247
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
4239
4248
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4240
4249
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4250
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
4251
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
4252
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4241
4253
|
command: z.ZodOptional<z.ZodString>;
|
|
4242
4254
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
4243
4255
|
retry: z.ZodString;
|
|
@@ -6990,7 +7002,9 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
6990
7002
|
kind: z.ZodEnum<{
|
|
6991
7003
|
agent: "agent";
|
|
6992
7004
|
check: "check";
|
|
7005
|
+
plugin: "plugin";
|
|
6993
7006
|
}>;
|
|
7007
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
6994
7008
|
status: z.ZodEnum<{
|
|
6995
7009
|
cancelled: "cancelled";
|
|
6996
7010
|
done: "done";
|
|
@@ -7038,6 +7052,9 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
7038
7052
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
7039
7053
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7040
7054
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7055
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
7056
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
7057
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7041
7058
|
command: z.ZodOptional<z.ZodString>;
|
|
7042
7059
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
7043
7060
|
retry: z.ZodString;
|
|
@@ -7284,6 +7301,9 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
7284
7301
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
7285
7302
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7286
7303
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7304
|
+
kind: z.ZodOptional<z.ZodLiteral<"plugin">>;
|
|
7305
|
+
pluginKind: z.ZodOptional<z.ZodString>;
|
|
7306
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7287
7307
|
command: z.ZodOptional<z.ZodString>;
|
|
7288
7308
|
onFail: z.ZodOptional<z.ZodObject<{
|
|
7289
7309
|
retry: z.ZodString;
|