@open-mercato/cezar 0.9.2 → 0.10.0-pr892.1298
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/LICENSE +21 -0
- package/README.md +169 -38
- package/dist/agent-config/account-identity.d.ts +44 -0
- package/dist/agent-config/account-identity.js +128 -0
- package/dist/agent-config/account-identity.js.map +1 -0
- package/dist/agent-config/catalog.d.ts +8 -0
- package/dist/agent-config/catalog.js +18 -0
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/model-settings/claude.d.ts +2 -0
- package/dist/agent-config/model-settings/claude.js +11 -0
- package/dist/agent-config/model-settings/claude.js.map +1 -0
- package/dist/agent-config/model-settings/codex.d.ts +2 -0
- package/dist/agent-config/model-settings/codex.js +16 -0
- package/dist/agent-config/model-settings/codex.js.map +1 -0
- package/dist/agent-config/model-settings/opencode.d.ts +2 -0
- package/dist/agent-config/model-settings/opencode.js +8 -0
- package/dist/agent-config/model-settings/opencode.js.map +1 -0
- package/dist/agent-config/model-settings/pi.d.ts +12 -0
- package/dist/agent-config/model-settings/pi.js +18 -0
- package/dist/agent-config/model-settings/pi.js.map +1 -0
- package/dist/agent-config/model-settings/shared.d.ts +9 -0
- package/dist/agent-config/model-settings/shared.js +93 -0
- package/dist/agent-config/model-settings/shared.js.map +1 -0
- package/dist/agent-config/model-settings/types.d.ts +9 -0
- package/dist/agent-config/model-settings/types.js +2 -0
- package/dist/agent-config/model-settings/types.js.map +1 -0
- package/dist/agent-config/models.d.ts +9 -0
- package/dist/agent-config/models.js +32 -0
- package/dist/agent-config/models.js.map +1 -0
- package/dist/agent-config/service.js +4 -4
- package/dist/agent-config/service.js.map +1 -1
- package/dist/automations/types.d.ts +4 -0
- package/dist/automations/types.js +2 -1
- package/dist/automations/types.js.map +1 -1
- package/dist/config.d.ts +10 -1
- package/dist/config.js +48 -5
- package/dist/config.js.map +1 -1
- package/dist/contract/agent-config.d.ts +2 -0
- package/dist/contract/agent-profiles.d.ts +347 -0
- package/dist/contract/automations.d.ts +24 -0
- package/dist/contract/events.d.ts +59 -0
- package/dist/contract/github.d.ts +88 -0
- package/dist/contract/health.d.ts +7 -1
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +1005 -555
- package/dist/contract/projects.d.ts +33 -5
- package/dist/contract/runs.d.ts +247 -0
- package/dist/contract/skills.d.ts +7 -0
- package/dist/contract/workflows.d.ts +6 -0
- package/dist/contract/workspace.d.ts +137 -2
- package/dist/core/agent-env.js +41 -16
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/agent-model-policy.d.ts +10 -0
- package/dist/core/agent-model-policy.js +36 -0
- package/dist/core/agent-model-policy.js.map +1 -0
- package/dist/core/agent-profiles.d.ts +62 -0
- package/dist/core/agent-profiles.js +90 -0
- package/dist/core/agent-profiles.js.map +1 -0
- package/dist/core/agent-runner.d.ts +37 -6
- package/dist/core/agent-runner.js +35 -3
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/backend-detect.d.ts +5 -5
- package/dist/core/backend-detect.js +44 -7
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/claude-cli-runner.js +10 -5
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.js +13 -3
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-app-server-transport.js +7 -2
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/model-identity.d.ts +23 -11
- package/dist/core/model-identity.js +41 -24
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.d.ts +8 -2
- package/dist/core/model-presets.js +51 -8
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/opencode-model-catalog.d.ts +32 -0
- package/dist/core/opencode-model-catalog.js +153 -0
- package/dist/core/opencode-model-catalog.js.map +1 -0
- package/dist/core/opencode-server-runner.d.ts +2 -0
- package/dist/core/opencode-server-runner.js +42 -11
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-runner.d.ts +24 -0
- package/dist/core/pi-runner.js +349 -0
- package/dist/core/pi-runner.js.map +1 -0
- package/dist/core/pi-ui-mapper.d.ts +34 -0
- package/dist/core/pi-ui-mapper.js +270 -0
- package/dist/core/pi-ui-mapper.js.map +1 -0
- package/dist/core/provider-auth.d.ts +95 -3
- package/dist/core/provider-auth.js +234 -15
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/core/provider-availability.d.ts +1 -1
- package/dist/core/provider-availability.js +2 -1
- package/dist/core/provider-availability.js.map +1 -1
- package/dist/core/runner-factory.js +3 -0
- package/dist/core/runner-factory.js.map +1 -1
- package/dist/core/shell-env.d.ts +28 -0
- package/dist/core/shell-env.js +56 -0
- package/dist/core/shell-env.js.map +1 -0
- package/dist/core/ui-events.d.ts +1 -1
- package/dist/core/usage-limit.d.ts +42 -0
- package/dist/core/usage-limit.js +209 -0
- package/dist/core/usage-limit.js.map +1 -0
- package/dist/git-diff-base.d.ts +51 -26
- package/dist/git-diff-base.js +163 -37
- package/dist/git-diff-base.js.map +1 -1
- package/dist/git-worktree.d.ts +15 -6
- package/dist/git-worktree.js +10 -3
- package/dist/git-worktree.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/paths.d.ts +53 -5
- package/dist/paths.js +63 -9
- package/dist/paths.js.map +1 -1
- package/dist/planner.js +6 -0
- package/dist/planner.js.map +1 -1
- package/dist/release/snapshot.d.ts +13 -2
- package/dist/release/snapshot.js +25 -1
- package/dist/release/snapshot.js.map +1 -1
- package/dist/runs/agent-tmpdir.d.ts +41 -0
- package/dist/runs/agent-tmpdir.js +183 -0
- package/dist/runs/agent-tmpdir.js.map +1 -0
- package/dist/runs/auto-name.js +6 -1
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/runs/event-history.d.ts +50 -0
- package/dist/runs/event-history.js +613 -0
- package/dist/runs/event-history.js.map +1 -0
- package/dist/runs/run-index.d.ts +19 -0
- package/dist/runs/run-index.js +43 -0
- package/dist/runs/run-index.js.map +1 -0
- package/dist/runs/store.d.ts +78 -19
- package/dist/runs/store.js +175 -43
- package/dist/runs/store.js.map +1 -1
- package/dist/server/capabilities.d.ts +15 -1
- package/dist/server/capabilities.js +16 -1
- package/dist/server/capabilities.js.map +1 -1
- package/dist/server/forge/github.d.ts +169 -0
- package/dist/server/forge/github.js +511 -0
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/forge/index.d.ts +9 -0
- package/dist/server/forge/index.js +14 -0
- package/dist/server/forge/index.js.map +1 -1
- package/dist/server/git-changes.d.ts +7 -5
- package/dist/server/git-changes.js +15 -10
- package/dist/server/git-changes.js.map +1 -1
- package/dist/server/github.d.ts +2 -2
- package/dist/server/github.js +1 -1
- package/dist/server/github.js.map +1 -1
- package/dist/server/open-in-app.d.ts +2 -1
- package/dist/server/open-in-app.js +3 -1
- package/dist/server/open-in-app.js.map +1 -1
- package/dist/server/open-in-terminal.d.ts +46 -1
- package/dist/server/open-in-terminal.js +72 -13
- package/dist/server/open-in-terminal.js.map +1 -1
- package/dist/server/provider-action-gate.js +3 -1
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/server.d.ts +2206 -434
- package/dist/server/server.js +1219 -136
- package/dist/server/server.js.map +1 -1
- package/dist/server-install/engine.js +5 -18
- package/dist/server-install/engine.js.map +1 -1
- package/dist/server-install/steps.js +6 -2
- package/dist/server-install/steps.js.map +1 -1
- package/dist/skills.js +4 -0
- package/dist/skills.js.map +1 -1
- package/dist/workflows/run.d.ts +229 -9
- package/dist/workflows/run.js +877 -147
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/types.d.ts +3 -0
- package/dist/workflows/types.js +11 -2
- package/dist/workflows/types.js.map +1 -1
- package/dist/workspace/agent-accounts.d.ts +153 -0
- package/dist/workspace/agent-accounts.js +304 -0
- package/dist/workspace/agent-accounts.js.map +1 -0
- package/dist/workspace/agent-profiles.d.ts +78 -0
- package/dist/workspace/agent-profiles.js +115 -0
- package/dist/workspace/agent-profiles.js.map +1 -0
- package/dist/workspace/config.d.ts +27 -1
- package/dist/workspace/config.js +83 -2
- package/dist/workspace/config.js.map +1 -1
- package/dist/workspace/projects-cli.js +54 -4
- package/dist/workspace/projects-cli.js.map +1 -1
- package/dist/workspace/projects.d.ts +19 -1
- package/dist/workspace/projects.js +34 -1
- package/dist/workspace/projects.js.map +1 -1
- package/dist/workspace/semaphore.d.ts +46 -1
- package/dist/workspace/semaphore.js +41 -4
- package/dist/workspace/semaphore.js.map +1 -1
- package/dist/workspace/ui-state.d.ts +3 -2
- package/dist/workspace/ui-state.js +3 -2
- package/dist/workspace/ui-state.js.map +1 -1
- package/package.json +3 -3
- package/scripts/mock-claude.mjs +20 -0
- package/scripts/mock-pi-rpc.mjs +83 -0
- package/web/dist/assets/{alert-dialog-ghffK6g9.js → alert-dialog-Byp42_IG.js} +1 -1
- package/web/dist/assets/arrow-down-CGDbDYKD.js +1 -0
- package/web/dist/assets/arrow-left-ESCjr1Hq.js +1 -0
- package/web/dist/assets/centered-state-LfAW-igm.js +43 -0
- package/web/dist/assets/chevron-right-Du-P1IUd.js +1 -0
- package/web/dist/assets/{collapsible-B0JVzd0B.js → collapsible-CBiiqDJM.js} +1 -1
- package/web/dist/assets/{commit-list-wm6DPHNs.js → commit-list-6PPve7PE.js} +1 -1
- package/web/dist/assets/{compare-variants-DbdP4Y5T.js → compare-variants-BDnp6mXJ.js} +1 -1
- package/web/dist/assets/{diff-Bizc96qe.js → diff-_jK0OWpF.js} +2 -2
- package/web/dist/assets/{diff-stat-Dyfg3ltF.js → diff-stat-CIrTu4Ym.js} +1 -1
- package/web/dist/assets/{diff-view-CG8ek6tC.js → diff-view-COA_5IyY.js} +1 -1
- package/web/dist/assets/dropdown-menu-BofYpFFw.js +1 -0
- package/web/dist/assets/editable-title-_J0zFDl-.js +1 -0
- package/web/dist/assets/{ellipsis-vertical-DpGTRqC2.js → ellipsis-vertical-BeMR-l62.js} +1 -1
- package/web/dist/assets/{file-DlUGpUlb.js → file-DY996Pee.js} +1 -1
- package/web/dist/assets/{folder-BAY6Vddy.js → folder-NO3Ec-TY.js} +1 -1
- package/web/dist/assets/git-toolbar-BqJeUWcD.js +1 -0
- package/web/dist/assets/github-C96HPV9E.js +1 -0
- package/web/dist/assets/{image-preview-BWGk5fPX.js → image-preview-D9cCDfKQ.js} +1 -1
- package/web/dist/assets/index-Bx-grqa9.css +2 -0
- package/web/dist/assets/index-DoVvGDfW.js +7 -0
- package/web/dist/assets/{markdown-BGBOGCA_.js → markdown-DDzk11zj.js} +1 -1
- package/web/dist/assets/new-task-form-BNLLgC6P.js +1 -0
- package/web/dist/assets/pill-CVM1EmV4.js +1 -0
- package/web/dist/assets/{project-router-Cx8NPoqn.js → project-router-LRCtP48W.js} +1 -1
- package/web/dist/assets/prompt-templates-DFOvYgtW.js +15 -0
- package/web/dist/assets/{refresh-cw-BoGdAykg.js → refresh-cw-D1ys6QY2.js} +1 -1
- package/web/dist/assets/repo-git-CzUnsgWY.js +1 -0
- package/web/dist/assets/{run-diff-EcOkf3ti.js → run-diff-BlnqwfSS.js} +2 -2
- package/web/dist/assets/run-header-Bn7cN0Z1.js +1 -0
- package/web/dist/assets/{search-x-X3EpVhgs.js → search-x-D6FSpxId.js} +1 -1
- package/web/dist/assets/{skill-empty-hint-CZLALx6l.js → skill-empty-hint-iwpCcqgI.js} +1 -1
- package/web/dist/assets/skills-CezbOaol.js +1 -0
- package/web/dist/assets/{sparkles-Dt4q7pbG.js → sparkles-MrQrgCI9.js} +1 -1
- package/web/dist/assets/{square-terminal-hwBL8XsC.js → square-terminal-TTH64lO7.js} +1 -1
- package/web/dist/assets/tab-link-FYksz037.js +1 -0
- package/web/dist/assets/task-changes-ClWlnzBL.js +1 -0
- package/web/dist/assets/{task-commits-BTTA5k5T.js → task-commits-Crbrl86b.js} +1 -1
- package/web/dist/assets/{task-files-Da8_4C9g.js → task-files-uSCWyD0-.js} +2 -2
- package/web/dist/assets/task-thread-DPmamBA1.js +9 -0
- package/web/dist/assets/{textarea-CUdokhkv.js → textarea-B9Ahj4E4.js} +1 -1
- package/web/dist/assets/thread-loading-BH_ypQoy.js +1 -0
- package/web/dist/assets/{trash-2-DhVIdWv8.js → trash-2-D8S3V3fu.js} +1 -1
- package/web/dist/assets/{triangle-alert-XYT0DGCI.js → triangle-alert-bB7p9n5E.js} +1 -1
- package/web/dist/assets/{upload-BKjN59-1.js → upload-Bd5oRLPV.js} +1 -1
- package/web/dist/assets/{use-desktop-Bf5LS_P4.js → use-desktop-BNvbRBeZ.js} +1 -1
- package/web/dist/assets/{use-submit-shortcut-CzVyoAMd.js → use-submit-shortcut-B-xhu4Bf.js} +1 -1
- package/web/dist/assets/utils-BhpbVMwN.js +64 -0
- package/web/dist/assets/{workflows-o2QU_pvU.js → workflows-RmfbM9Vy.js} +3 -3
- package/web/dist/assets/{zoomable-image-7WyUiaVD.js → zoomable-image-BCW6ZBV0.js} +1 -1
- package/web/dist/index.html +24 -23
- package/web/dist/assets/arrow-down-Cz8qb71e.js +0 -1
- package/web/dist/assets/arrow-left-wcYKQXI_.js +0 -1
- package/web/dist/assets/centered-state-ZtnFHA-n.js +0 -43
- package/web/dist/assets/chevron-right-G4caF2QV.js +0 -1
- package/web/dist/assets/circle-check--KvBxXWp.js +0 -1
- package/web/dist/assets/circle-x-C3EFZ3xf.js +0 -1
- package/web/dist/assets/dropdown-menu-C1Dlf35P.js +0 -1
- package/web/dist/assets/editable-title-5rC_QRBZ.js +0 -1
- package/web/dist/assets/git-pull-request-agOG0iGM.js +0 -1
- package/web/dist/assets/git-toolbar-DGiNMmtY.js +0 -1
- package/web/dist/assets/github-Vp7lxYGQ.js +0 -1
- package/web/dist/assets/index-DSxyJpuK.css +0 -2
- package/web/dist/assets/index-DiawI6RX.js +0 -6
- package/web/dist/assets/new-task-form-BpAw_Dks.js +0 -1
- package/web/dist/assets/pill-Dvs-P0xy.js +0 -1
- package/web/dist/assets/prompt-templates-CSBYBR1I.js +0 -15
- package/web/dist/assets/repo-git-PmX-BNMo.js +0 -1
- package/web/dist/assets/run-header-BGiv6_qX.js +0 -1
- package/web/dist/assets/skills-CC91ouGH.js +0 -1
- package/web/dist/assets/tab-link-DIlR5T07.js +0 -1
- package/web/dist/assets/task-changes-XkHDxzQA.js +0 -1
- package/web/dist/assets/task-thread-DoNXUsHr.js +0 -9
- package/web/dist/assets/thread-loading-B8q8ukXJ.js +0 -1
- package/web/dist/assets/utils-DsLuRXwV.js +0 -64
|
@@ -35,7 +35,9 @@ export declare const projectListEntrySchema: z.ZodObject<{
|
|
|
35
35
|
}>;
|
|
36
36
|
branch: z.ZodOptional<z.ZodString>;
|
|
37
37
|
forge: z.ZodOptional<z.ZodLiteral<"github">>;
|
|
38
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
38
39
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
41
|
}, z.core.$strip>;
|
|
40
42
|
export type ProjectListEntry = z.infer<typeof projectListEntrySchema>;
|
|
41
43
|
/** `GET /api/v1/projects` — the workspace registry. Workspace-level: never 404s, never scoped.
|
|
@@ -59,7 +61,9 @@ export declare const projectsResponseSchema: z.ZodObject<{
|
|
|
59
61
|
}>;
|
|
60
62
|
branch: z.ZodOptional<z.ZodString>;
|
|
61
63
|
forge: z.ZodOptional<z.ZodLiteral<"github">>;
|
|
64
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
62
65
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
67
|
}, z.core.$strip>>;
|
|
64
68
|
bootProject: z.ZodString;
|
|
65
69
|
projectsDir: z.ZodString;
|
|
@@ -88,7 +92,9 @@ export declare const registerProjectResponseSchema: z.ZodObject<{
|
|
|
88
92
|
}>;
|
|
89
93
|
branch: z.ZodOptional<z.ZodString>;
|
|
90
94
|
forge: z.ZodOptional<z.ZodLiteral<"github">>;
|
|
95
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
91
96
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
98
|
}, z.core.$strip>;
|
|
93
99
|
error: z.ZodOptional<z.ZodString>;
|
|
94
100
|
}, z.core.$strip>;
|
|
@@ -125,18 +131,40 @@ export declare const updateProjectResponseSchema: z.ZodObject<{
|
|
|
125
131
|
}>;
|
|
126
132
|
branch: z.ZodOptional<z.ZodString>;
|
|
127
133
|
forge: z.ZodOptional<z.ZodLiteral<"github">>;
|
|
134
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
128
135
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
129
137
|
}, z.core.$strip>;
|
|
130
138
|
}, z.core.$strip>;
|
|
131
139
|
export type UpdateProjectResponse = z.infer<typeof updateProjectResponseSchema>;
|
|
140
|
+
/** Bounds for one tag and for a project's tag list. Named because three places must agree: this
|
|
141
|
+
* schema, the registry schema that must never `.catch` away a value this accepts
|
|
142
|
+
* (`workspaceProjectSchema` in the service), and the settings editor that refuses input early. */
|
|
143
|
+
export declare const PROJECT_TAG_MAX_LENGTH = 32;
|
|
144
|
+
export declare const PROJECT_TAGS_MAX = 20;
|
|
132
145
|
/**
|
|
133
|
-
* `PATCH /api/v1/projects/:projectId` body
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
146
|
+
* `PATCH /api/v1/projects/:projectId` body — the two per-project registry fields the cockpit
|
|
147
|
+
* edits. Each key is optional and a body may carry either or both: a PATCH names the fields it
|
|
148
|
+
* changes, and an absent key must stay distinguishable from one set to `null` (which CLEARS). A
|
|
149
|
+
* `{ maxParallel }`-only body — every pre-tags client sends exactly that — therefore still means
|
|
150
|
+
* what it always did. An EMPTY body is still refused, as it was before tags existed: a request
|
|
151
|
+
* that names no field is a mistake, and answering 200 to it would report a change that never
|
|
152
|
+
* happened (and cost a full config rewrite to do nothing).
|
|
153
|
+
*
|
|
154
|
+
* - `maxParallel` (spec 2026-07-22-per-project-concurrency): `null` clears the override back to
|
|
155
|
+
* "inherit the workspace cap"; an integer `1..16` pins it. The bounds mirror
|
|
156
|
+
* `workspaceProjectSchema` exactly, so a value this schema accepts can never be degraded away
|
|
157
|
+
* by the next load's `.catch`.
|
|
158
|
+
* - `tags`: the whole list, replaced wholesale — there is no add-one/remove-one spelling,
|
|
159
|
+
* because the editor always knows the full set and a merge protocol would only add a way for
|
|
160
|
+
* two tabs to disagree. `null` and `[]` both clear it; the server normalizes before storing.
|
|
161
|
+
*
|
|
162
|
+
* Deliberately NOT where the agent-account selection lives — that is
|
|
163
|
+
* `PUT /api/v1/workspace/agent-profiles/selection`, stored beside the accounts it names.
|
|
137
164
|
*/
|
|
138
165
|
export declare const updateProjectInputSchema: z.ZodObject<{
|
|
139
|
-
maxParallel: z.ZodNullable<z.ZodNumber
|
|
166
|
+
maxParallel: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
167
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
140
168
|
}, z.core.$strip>;
|
|
141
169
|
export type UpdateProjectInput = z.infer<typeof updateProjectInputSchema>;
|
|
142
170
|
/**
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -82,7 +82,9 @@ export declare const stepStateSchema: z.ZodObject<{
|
|
|
82
82
|
claude: "claude";
|
|
83
83
|
codex: "codex";
|
|
84
84
|
opencode: "opencode";
|
|
85
|
+
pi: "pi";
|
|
85
86
|
}>>;
|
|
87
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
86
88
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
87
89
|
}, z.core.$strip>;
|
|
88
90
|
export type StepState = z.infer<typeof stepStateSchema>;
|
|
@@ -141,7 +143,9 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
141
143
|
claude: "claude";
|
|
142
144
|
codex: "codex";
|
|
143
145
|
opencode: "opencode";
|
|
146
|
+
pi: "pi";
|
|
144
147
|
}>>;
|
|
148
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
145
149
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
146
150
|
generateFollowups: z.ZodOptional<z.ZodBoolean>;
|
|
147
151
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -166,6 +170,8 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
166
170
|
}>>;
|
|
167
171
|
monitoringWakeAt: z.ZodOptional<z.ZodString>;
|
|
168
172
|
monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
174
|
+
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
169
175
|
createdAt: z.ZodString;
|
|
170
176
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
171
177
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -238,7 +244,9 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
238
244
|
claude: "claude";
|
|
239
245
|
codex: "codex";
|
|
240
246
|
opencode: "opencode";
|
|
247
|
+
pi: "pi";
|
|
241
248
|
}>>;
|
|
249
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
242
250
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
243
251
|
}, z.core.$strip>>;
|
|
244
252
|
workflowDef: z.ZodOptional<z.ZodObject<{
|
|
@@ -254,6 +262,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
254
262
|
claude: "claude";
|
|
255
263
|
codex: "codex";
|
|
256
264
|
opencode: "opencode";
|
|
265
|
+
pi: "pi";
|
|
257
266
|
}>>;
|
|
258
267
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
259
268
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -301,7 +310,9 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
301
310
|
claude: "claude";
|
|
302
311
|
codex: "codex";
|
|
303
312
|
opencode: "opencode";
|
|
313
|
+
pi: "pi";
|
|
304
314
|
}>>;
|
|
315
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
305
316
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
306
317
|
generateFollowups: z.ZodOptional<z.ZodBoolean>;
|
|
307
318
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -326,6 +337,8 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
326
337
|
}>>;
|
|
327
338
|
monitoringWakeAt: z.ZodOptional<z.ZodString>;
|
|
328
339
|
monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
341
|
+
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
329
342
|
createdAt: z.ZodString;
|
|
330
343
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
331
344
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -398,7 +411,9 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
398
411
|
claude: "claude";
|
|
399
412
|
codex: "codex";
|
|
400
413
|
opencode: "opencode";
|
|
414
|
+
pi: "pi";
|
|
401
415
|
}>>;
|
|
416
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
402
417
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
403
418
|
}, z.core.$strip>>;
|
|
404
419
|
workflowDef: z.ZodOptional<z.ZodObject<{
|
|
@@ -414,6 +429,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
414
429
|
claude: "claude";
|
|
415
430
|
codex: "codex";
|
|
416
431
|
opencode: "opencode";
|
|
432
|
+
pi: "pi";
|
|
417
433
|
}>>;
|
|
418
434
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
419
435
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -436,6 +452,198 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
436
452
|
}, z.core.$strip>>;
|
|
437
453
|
}, z.core.$strip>;
|
|
438
454
|
export type ApiRun = z.infer<typeof apiRunSchema>;
|
|
455
|
+
/**
|
|
456
|
+
* One run in the WORKSPACE-level index (`GET /api/v1/workspace/runs-index`) — the ⌘K palette's
|
|
457
|
+
* "find a task in any project" list, and the global Tasks page's rows.
|
|
458
|
+
*
|
|
459
|
+
* Deliberately a separate, slim shape rather than `ApiRun`. The index answers for every
|
|
460
|
+
* registered project at once, and `runRecordSchema` carries `steps[]` and `workflowDef` — a fat
|
|
461
|
+
* record whose cost is fine per project and absurd multiplied by the registry. These are exactly
|
|
462
|
+
* the fields a palette row renders: `runTitle`'s three (`title`, `titleSummary`, `titleOrigin`),
|
|
463
|
+
* `deriveAttention`'s `AttentionInput`, `isUnread`'s `ReadStateInput`, and the timestamps
|
|
464
|
+
* `shortAge` reads. Adding a field here is cheap; adding the whole record is what this exists to
|
|
465
|
+
* avoid — but note that widening either of those two `Pick`s means widening this too, or the
|
|
466
|
+
* palette's cross-project rows silently answer differently from every other surface.
|
|
467
|
+
*
|
|
468
|
+
* `projectId` is the join key, NOT the project name: the registry is already on the client and is
|
|
469
|
+
* authoritative for display names, and duplicating one here would let a renamed project show two
|
|
470
|
+
* different labels in one palette.
|
|
471
|
+
*/
|
|
472
|
+
export declare const runIndexEntrySchema: z.ZodObject<{
|
|
473
|
+
projectId: z.ZodString;
|
|
474
|
+
id: z.ZodString;
|
|
475
|
+
title: z.ZodString;
|
|
476
|
+
titleSummary: z.ZodOptional<z.ZodString>;
|
|
477
|
+
titleOrigin: z.ZodOptional<z.ZodEnum<{
|
|
478
|
+
auto: "auto";
|
|
479
|
+
marker: "marker";
|
|
480
|
+
user: "user";
|
|
481
|
+
}>>;
|
|
482
|
+
status: z.ZodEnum<{
|
|
483
|
+
cancelled: "cancelled";
|
|
484
|
+
done: "done";
|
|
485
|
+
failed: "failed";
|
|
486
|
+
queued: "queued";
|
|
487
|
+
review: "review";
|
|
488
|
+
running: "running";
|
|
489
|
+
waiting: "waiting";
|
|
490
|
+
}>;
|
|
491
|
+
activity: z.ZodOptional<z.ZodEnum<{
|
|
492
|
+
monitoring: "monitoring";
|
|
493
|
+
}>>;
|
|
494
|
+
createdAt: z.ZodString;
|
|
495
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
496
|
+
seenAt: z.ZodOptional<z.ZodString>;
|
|
497
|
+
archived: z.ZodBoolean;
|
|
498
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
499
|
+
workflow: z.ZodString;
|
|
500
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
501
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
502
|
+
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
503
|
+
referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
504
|
+
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
505
|
+
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
referencedIssueUrl: z.ZodOptional<z.ZodString>;
|
|
507
|
+
markerRefs: z.ZodOptional<z.ZodObject<{
|
|
508
|
+
pr: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
issue: z.ZodOptional<z.ZodNumber>;
|
|
510
|
+
}, z.core.$strip>>;
|
|
511
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
512
|
+
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
513
|
+
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
514
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
515
|
+
cpuPct: z.ZodNumber;
|
|
516
|
+
rssBytes: z.ZodNumber;
|
|
517
|
+
procCount: z.ZodNumber;
|
|
518
|
+
}, z.core.$strip>>;
|
|
519
|
+
}, z.core.$strip>;
|
|
520
|
+
export type RunIndexEntry = z.infer<typeof runIndexEntrySchema>;
|
|
521
|
+
/**
|
|
522
|
+
* `GET /workspace/runs-index`.
|
|
523
|
+
*
|
|
524
|
+
* `truncated` is not decoration: the index caps each project's contribution, and a capped list
|
|
525
|
+
* that says nothing reads as "your task is not here" when the honest answer is "not in the
|
|
526
|
+
* newest N". Naming the projects that hit the cap is what lets a consumer say so.
|
|
527
|
+
*/
|
|
528
|
+
/**
|
|
529
|
+
* Everything the SERVER already knew about the references its rows carry, per project — the
|
|
530
|
+
* statuses that would otherwise cost a second round trip a beat after the table paints.
|
|
531
|
+
*
|
|
532
|
+
* Read from cache only: this never asks the forge, so a cold entry is simply absent and
|
|
533
|
+
* `GET /github/ref-status` stays the route that actually goes and looks. That makes it free, and
|
|
534
|
+
* being free is what lets it be a superset — the server looks up every number a run mentions
|
|
535
|
+
* rather than re-deriving which one the cockpit will display (#407, #526 live client-side, and
|
|
536
|
+
* duplicating that rule is how the two would drift).
|
|
537
|
+
*/
|
|
538
|
+
export declare const referenceStatusesByProjectSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
539
|
+
prs: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
540
|
+
"changes-requested": "changes-requested";
|
|
541
|
+
"checks-failing": "checks-failing";
|
|
542
|
+
"checks-pending": "checks-pending";
|
|
543
|
+
closed: "closed";
|
|
544
|
+
completed: "completed";
|
|
545
|
+
draft: "draft";
|
|
546
|
+
merged: "merged";
|
|
547
|
+
"not-planned": "not-planned";
|
|
548
|
+
open: "open";
|
|
549
|
+
ready: "ready";
|
|
550
|
+
"review-required": "review-required";
|
|
551
|
+
}>>;
|
|
552
|
+
issues: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
553
|
+
"changes-requested": "changes-requested";
|
|
554
|
+
"checks-failing": "checks-failing";
|
|
555
|
+
"checks-pending": "checks-pending";
|
|
556
|
+
closed: "closed";
|
|
557
|
+
completed: "completed";
|
|
558
|
+
draft: "draft";
|
|
559
|
+
merged: "merged";
|
|
560
|
+
"not-planned": "not-planned";
|
|
561
|
+
open: "open";
|
|
562
|
+
ready: "ready";
|
|
563
|
+
"review-required": "review-required";
|
|
564
|
+
}>>;
|
|
565
|
+
}, z.core.$strip>>;
|
|
566
|
+
export declare const runsIndexResponseSchema: z.ZodObject<{
|
|
567
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
568
|
+
projectId: z.ZodString;
|
|
569
|
+
id: z.ZodString;
|
|
570
|
+
title: z.ZodString;
|
|
571
|
+
titleSummary: z.ZodOptional<z.ZodString>;
|
|
572
|
+
titleOrigin: z.ZodOptional<z.ZodEnum<{
|
|
573
|
+
auto: "auto";
|
|
574
|
+
marker: "marker";
|
|
575
|
+
user: "user";
|
|
576
|
+
}>>;
|
|
577
|
+
status: z.ZodEnum<{
|
|
578
|
+
cancelled: "cancelled";
|
|
579
|
+
done: "done";
|
|
580
|
+
failed: "failed";
|
|
581
|
+
queued: "queued";
|
|
582
|
+
review: "review";
|
|
583
|
+
running: "running";
|
|
584
|
+
waiting: "waiting";
|
|
585
|
+
}>;
|
|
586
|
+
activity: z.ZodOptional<z.ZodEnum<{
|
|
587
|
+
monitoring: "monitoring";
|
|
588
|
+
}>>;
|
|
589
|
+
createdAt: z.ZodString;
|
|
590
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
591
|
+
seenAt: z.ZodOptional<z.ZodString>;
|
|
592
|
+
archived: z.ZodBoolean;
|
|
593
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
594
|
+
workflow: z.ZodString;
|
|
595
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
596
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
597
|
+
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
598
|
+
referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
599
|
+
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
600
|
+
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
601
|
+
referencedIssueUrl: z.ZodOptional<z.ZodString>;
|
|
602
|
+
markerRefs: z.ZodOptional<z.ZodObject<{
|
|
603
|
+
pr: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
issue: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
}, z.core.$strip>>;
|
|
606
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
607
|
+
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
608
|
+
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
609
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
610
|
+
cpuPct: z.ZodNumber;
|
|
611
|
+
rssBytes: z.ZodNumber;
|
|
612
|
+
procCount: z.ZodNumber;
|
|
613
|
+
}, z.core.$strip>>;
|
|
614
|
+
}, z.core.$strip>>;
|
|
615
|
+
referenceStatuses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
616
|
+
prs: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
617
|
+
"changes-requested": "changes-requested";
|
|
618
|
+
"checks-failing": "checks-failing";
|
|
619
|
+
"checks-pending": "checks-pending";
|
|
620
|
+
closed: "closed";
|
|
621
|
+
completed: "completed";
|
|
622
|
+
draft: "draft";
|
|
623
|
+
merged: "merged";
|
|
624
|
+
"not-planned": "not-planned";
|
|
625
|
+
open: "open";
|
|
626
|
+
ready: "ready";
|
|
627
|
+
"review-required": "review-required";
|
|
628
|
+
}>>;
|
|
629
|
+
issues: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
630
|
+
"changes-requested": "changes-requested";
|
|
631
|
+
"checks-failing": "checks-failing";
|
|
632
|
+
"checks-pending": "checks-pending";
|
|
633
|
+
closed: "closed";
|
|
634
|
+
completed: "completed";
|
|
635
|
+
draft: "draft";
|
|
636
|
+
merged: "merged";
|
|
637
|
+
"not-planned": "not-planned";
|
|
638
|
+
open: "open";
|
|
639
|
+
ready: "ready";
|
|
640
|
+
"review-required": "review-required";
|
|
641
|
+
}>>;
|
|
642
|
+
}, z.core.$strip>>;
|
|
643
|
+
perProjectLimit: z.ZodNumber;
|
|
644
|
+
truncated: z.ZodArray<z.ZodString>;
|
|
645
|
+
}, z.core.$strip>;
|
|
646
|
+
export type RunsIndexResponse = z.infer<typeof runsIndexResponseSchema>;
|
|
439
647
|
/**
|
|
440
648
|
* `POST /runs` (201) — one record for ×1, a group for ×2/×3.
|
|
441
649
|
*
|
|
@@ -467,7 +675,9 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
467
675
|
claude: "claude";
|
|
468
676
|
codex: "codex";
|
|
469
677
|
opencode: "opencode";
|
|
678
|
+
pi: "pi";
|
|
470
679
|
}>>;
|
|
680
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
471
681
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
472
682
|
generateFollowups: z.ZodOptional<z.ZodBoolean>;
|
|
473
683
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -492,6 +702,8 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
492
702
|
}>>;
|
|
493
703
|
monitoringWakeAt: z.ZodOptional<z.ZodString>;
|
|
494
704
|
monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
|
|
705
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
706
|
+
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
495
707
|
createdAt: z.ZodString;
|
|
496
708
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
497
709
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -564,7 +776,9 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
564
776
|
claude: "claude";
|
|
565
777
|
codex: "codex";
|
|
566
778
|
opencode: "opencode";
|
|
779
|
+
pi: "pi";
|
|
567
780
|
}>>;
|
|
781
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
568
782
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
569
783
|
}, z.core.$strip>>;
|
|
570
784
|
workflowDef: z.ZodOptional<z.ZodObject<{
|
|
@@ -580,6 +794,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
580
794
|
claude: "claude";
|
|
581
795
|
codex: "codex";
|
|
582
796
|
opencode: "opencode";
|
|
797
|
+
pi: "pi";
|
|
583
798
|
}>>;
|
|
584
799
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
585
800
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -621,7 +836,9 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
621
836
|
claude: "claude";
|
|
622
837
|
codex: "codex";
|
|
623
838
|
opencode: "opencode";
|
|
839
|
+
pi: "pi";
|
|
624
840
|
}>>;
|
|
841
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
625
842
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
626
843
|
generateFollowups: z.ZodOptional<z.ZodBoolean>;
|
|
627
844
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -646,6 +863,8 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
646
863
|
}>>;
|
|
647
864
|
monitoringWakeAt: z.ZodOptional<z.ZodString>;
|
|
648
865
|
monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
|
|
866
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
867
|
+
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
649
868
|
createdAt: z.ZodString;
|
|
650
869
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
651
870
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -718,7 +937,9 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
718
937
|
claude: "claude";
|
|
719
938
|
codex: "codex";
|
|
720
939
|
opencode: "opencode";
|
|
940
|
+
pi: "pi";
|
|
721
941
|
}>>;
|
|
942
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
722
943
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
723
944
|
}, z.core.$strip>>;
|
|
724
945
|
workflowDef: z.ZodOptional<z.ZodObject<{
|
|
@@ -734,6 +955,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
734
955
|
claude: "claude";
|
|
735
956
|
codex: "codex";
|
|
736
957
|
opencode: "opencode";
|
|
958
|
+
pi: "pi";
|
|
737
959
|
}>>;
|
|
738
960
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
739
961
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -757,6 +979,18 @@ export declare const cancelResponseSchema: z.ZodObject<{
|
|
|
757
979
|
cancelled: z.ZodBoolean;
|
|
758
980
|
}, z.core.$strip>;
|
|
759
981
|
export type CancelResponse = z.infer<typeof cancelResponseSchema>;
|
|
982
|
+
/**
|
|
983
|
+
* `DELETE /runs/:id/auto-resume` (spec 2026-08-03-auto-resume-after-usage-limit) — the per-task
|
|
984
|
+
* off switch for a pending usage-limit resume, next to the workspace-wide setting.
|
|
985
|
+
*
|
|
986
|
+
* `z.literal(true)`, not a boolean, and that IS the shape: the route is idempotent, so a run with
|
|
987
|
+
* nothing pending answers 200 as well — "this task will not resume itself" is equally true either
|
|
988
|
+
* way. Only an unknown run refuses, with 404.
|
|
989
|
+
*/
|
|
990
|
+
export declare const cancelAutoResumeResponseSchema: z.ZodObject<{
|
|
991
|
+
cancelled: z.ZodLiteral<true>;
|
|
992
|
+
}, z.core.$strip>;
|
|
993
|
+
export type CancelAutoResumeResponse = z.infer<typeof cancelAutoResumeResponseSchema>;
|
|
760
994
|
/** `POST /runs/archive-finished` — how many runs the sweep archived. */
|
|
761
995
|
export declare const archiveFinishedResponseSchema: z.ZodObject<{
|
|
762
996
|
archived: z.ZodNumber;
|
|
@@ -970,7 +1204,9 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
970
1204
|
claude: "claude";
|
|
971
1205
|
codex: "codex";
|
|
972
1206
|
opencode: "opencode";
|
|
1207
|
+
pi: "pi";
|
|
973
1208
|
}>>;
|
|
1209
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
974
1210
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
975
1211
|
generateFollowups: z.ZodOptional<z.ZodBoolean>;
|
|
976
1212
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -995,6 +1231,8 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
995
1231
|
}>>;
|
|
996
1232
|
monitoringWakeAt: z.ZodOptional<z.ZodString>;
|
|
997
1233
|
monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
|
|
1234
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
1235
|
+
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
998
1236
|
createdAt: z.ZodString;
|
|
999
1237
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
1000
1238
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1067,7 +1305,9 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
1067
1305
|
claude: "claude";
|
|
1068
1306
|
codex: "codex";
|
|
1069
1307
|
opencode: "opencode";
|
|
1308
|
+
pi: "pi";
|
|
1070
1309
|
}>>;
|
|
1310
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
1071
1311
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1072
1312
|
}, z.core.$strip>>;
|
|
1073
1313
|
workflowDef: z.ZodOptional<z.ZodObject<{
|
|
@@ -1083,6 +1323,7 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
1083
1323
|
claude: "claude";
|
|
1084
1324
|
codex: "codex";
|
|
1085
1325
|
opencode: "opencode";
|
|
1326
|
+
pi: "pi";
|
|
1086
1327
|
}>>;
|
|
1087
1328
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1088
1329
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1127,6 +1368,7 @@ export declare const createRunInputBaseSchema: z.ZodObject<{
|
|
|
1127
1368
|
claude: "claude";
|
|
1128
1369
|
codex: "codex";
|
|
1129
1370
|
opencode: "opencode";
|
|
1371
|
+
pi: "pi";
|
|
1130
1372
|
}>>;
|
|
1131
1373
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1132
1374
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1142,7 +1384,9 @@ export declare const createRunInputBaseSchema: z.ZodObject<{
|
|
|
1142
1384
|
claude: "claude";
|
|
1143
1385
|
codex: "codex";
|
|
1144
1386
|
opencode: "opencode";
|
|
1387
|
+
pi: "pi";
|
|
1145
1388
|
}>>;
|
|
1389
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
1146
1390
|
variants: z.ZodOptional<z.ZodNumber>;
|
|
1147
1391
|
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
1148
1392
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1172,6 +1416,7 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
1172
1416
|
claude: "claude";
|
|
1173
1417
|
codex: "codex";
|
|
1174
1418
|
opencode: "opencode";
|
|
1419
|
+
pi: "pi";
|
|
1175
1420
|
}>>;
|
|
1176
1421
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1177
1422
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1187,7 +1432,9 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
1187
1432
|
claude: "claude";
|
|
1188
1433
|
codex: "codex";
|
|
1189
1434
|
opencode: "opencode";
|
|
1435
|
+
pi: "pi";
|
|
1190
1436
|
}>>;
|
|
1437
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
1191
1438
|
variants: z.ZodOptional<z.ZodNumber>;
|
|
1192
1439
|
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
1193
1440
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -92,7 +92,9 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
92
92
|
claude: "claude";
|
|
93
93
|
codex: "codex";
|
|
94
94
|
opencode: "opencode";
|
|
95
|
+
pi: "pi";
|
|
95
96
|
}>>;
|
|
97
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
96
98
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
97
99
|
generateFollowups: z.ZodOptional<z.ZodBoolean>;
|
|
98
100
|
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -117,6 +119,8 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
117
119
|
}>>;
|
|
118
120
|
monitoringWakeAt: z.ZodOptional<z.ZodString>;
|
|
119
121
|
monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
123
|
+
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
120
124
|
createdAt: z.ZodString;
|
|
121
125
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
122
126
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -189,7 +193,9 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
189
193
|
claude: "claude";
|
|
190
194
|
codex: "codex";
|
|
191
195
|
opencode: "opencode";
|
|
196
|
+
pi: "pi";
|
|
192
197
|
}>>;
|
|
198
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
193
199
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
194
200
|
}, z.core.$strip>>;
|
|
195
201
|
workflowDef: z.ZodOptional<z.ZodObject<{
|
|
@@ -205,6 +211,7 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
205
211
|
claude: "claude";
|
|
206
212
|
codex: "codex";
|
|
207
213
|
opencode: "opencode";
|
|
214
|
+
pi: "pi";
|
|
208
215
|
}>>;
|
|
209
216
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
217
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -24,6 +24,7 @@ export declare const workflowStepDefSchema: z.ZodObject<{
|
|
|
24
24
|
claude: "claude";
|
|
25
25
|
codex: "codex";
|
|
26
26
|
opencode: "opencode";
|
|
27
|
+
pi: "pi";
|
|
27
28
|
}>>;
|
|
28
29
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
30
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -48,6 +49,7 @@ export declare const workflowDefSchema: z.ZodObject<{
|
|
|
48
49
|
claude: "claude";
|
|
49
50
|
codex: "codex";
|
|
50
51
|
opencode: "opencode";
|
|
52
|
+
pi: "pi";
|
|
51
53
|
}>>;
|
|
52
54
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
55
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -85,6 +87,7 @@ export declare const workflowsResponseSchema: z.ZodObject<{
|
|
|
85
87
|
claude: "claude";
|
|
86
88
|
codex: "codex";
|
|
87
89
|
opencode: "opencode";
|
|
90
|
+
pi: "pi";
|
|
88
91
|
}>>;
|
|
89
92
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
93
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -125,6 +128,7 @@ export declare const saveWorkflowInputSchema: z.ZodObject<{
|
|
|
125
128
|
claude: "claude";
|
|
126
129
|
codex: "codex";
|
|
127
130
|
opencode: "opencode";
|
|
131
|
+
pi: "pi";
|
|
128
132
|
}>>;
|
|
129
133
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
134
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -158,6 +162,7 @@ export declare const parsedWorkflowSchema: z.ZodObject<{
|
|
|
158
162
|
claude: "claude";
|
|
159
163
|
codex: "codex";
|
|
160
164
|
opencode: "opencode";
|
|
165
|
+
pi: "pi";
|
|
161
166
|
}>>;
|
|
162
167
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
163
168
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -197,6 +202,7 @@ export declare const planResponseSchema: z.ZodObject<{
|
|
|
197
202
|
claude: "claude";
|
|
198
203
|
codex: "codex";
|
|
199
204
|
opencode: "opencode";
|
|
205
|
+
pi: "pi";
|
|
200
206
|
}>>;
|
|
201
207
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
208
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|