@wjarka/cezarion 0.13.5-pr376.576 → 0.13.6
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/README.md +3 -22
- package/dist/agent-config/catalog.d.ts +0 -2
- package/dist/agent-config/catalog.js +2 -40
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/models.js +0 -4
- package/dist/agent-config/models.js.map +1 -1
- package/dist/automations/types.d.ts +0 -4
- package/dist/config.d.ts +0 -2
- package/dist/config.js +0 -1
- package/dist/config.js.map +1 -1
- package/dist/contract/agent-config.d.ts +0 -2
- package/dist/contract/agent-profiles.d.ts +0 -15
- package/dist/contract/automations.d.ts +0 -16
- package/dist/contract/delegation.d.ts +0 -6
- package/dist/contract/health.d.ts +0 -4
- package/dist/contract/index.js +11 -20
- package/dist/contract/runs.d.ts +3 -25
- package/dist/contract/skills.d.ts +0 -3
- package/dist/contract/workflows.d.ts +0 -6
- package/dist/contract/workspace.d.ts +2 -20
- package/dist/core/agent-env.js +0 -1
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/agent-profiles.js +0 -3
- package/dist/core/agent-profiles.js.map +1 -1
- package/dist/core/agent-runner.d.ts +1 -1
- package/dist/core/agent-runner.js +1 -1
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/backend-detect.d.ts +1 -1
- package/dist/core/backend-detect.js +0 -14
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/host-model-catalog.js +0 -2
- package/dist/core/host-model-catalog.js.map +1 -1
- package/dist/core/model-identity.js +0 -3
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.js +0 -4
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/provider-auth.d.ts +1 -1
- package/dist/core/provider-auth.js +1 -30
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/core/runner-factory.js +0 -3
- package/dist/core/runner-factory.js.map +1 -1
- package/dist/core/runner-model-catalog.js +0 -1
- package/dist/core/runner-model-catalog.js.map +1 -1
- package/dist/core/shell-env.d.ts +0 -2
- package/dist/core/shell-env.js +0 -8
- package/dist/core/shell-env.js.map +1 -1
- package/dist/core/ui-events.d.ts +1 -1
- package/dist/delegation/execution-identity.d.ts +0 -3
- package/dist/delegation/execution-identity.js +1 -1
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/provision.js +1 -1
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/routes.d.ts +53 -53
- package/dist/delegation/transport.d.ts +3 -3
- package/dist/paths.js +0 -3
- package/dist/paths.js.map +1 -1
- package/dist/runs/store.d.ts +3 -7
- package/dist/server/open-in-app.js +0 -1
- package/dist/server/open-in-app.js.map +1 -1
- package/dist/server/provider-action-gate.js +0 -1
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/server.d.ts +1317 -1357
- package/dist/server/server.js +9 -23
- package/dist/server/server.js.map +1 -1
- package/dist/workflows/types.d.ts +0 -3
- package/dist/workflows/types.js +0 -1
- package/dist/workflows/types.js.map +1 -1
- package/dist/workspace/agent-accounts.d.ts +1 -5
- package/dist/workspace/agent-accounts.js +0 -1
- package/dist/workspace/agent-accounts.js.map +1 -1
- package/dist/workspace/agent-profiles.js +1 -1
- package/dist/workspace/agent-profiles.js.map +1 -1
- package/dist/workspace/config.d.ts +1 -3
- package/dist/workspace/config.js +0 -1
- package/dist/workspace/config.js.map +1 -1
- package/package.json +3 -3
- package/web/dist/assets/{agent-accounts-MT-jtwOU.js → agent-accounts-CdHFiYTN.js} +1 -1
- package/web/dist/assets/alert-dialog-7OZcjFyp.js +43 -0
- package/web/dist/assets/{collapsible-CkSaP6_n.js → collapsible-CI78cX0k.js} +1 -1
- package/web/dist/assets/{commit-list-DddU469F.js → commit-list-D3Cy_0hj.js} +1 -1
- package/web/dist/assets/{compare-variants-FwB8G4lC.js → compare-variants-BkYiBaI1.js} +1 -1
- package/web/dist/assets/{diff-C4aSZfrQ2.js → diff-DDUpEMjA2.js} +2 -2
- package/web/dist/assets/{diff-controls-D5b8ocJ0.js → diff-controls-C1THeHoP.js} +1 -1
- package/web/dist/assets/{diff-stat-B7f-F8cC.js → diff-stat-Cq4juy0u.js} +1 -1
- package/web/dist/assets/{diff-view-BPKHTL85.js → diff-view-Coyp_Kst.js} +1 -1
- package/web/dist/assets/{dropdown-menu-xYcDecNM.js → dropdown-menu-BP8LYsNU.js} +1 -1
- package/web/dist/assets/{git-toolbar-C4zVVSpl.js → git-toolbar-BP8_wDyk.js} +1 -1
- package/web/dist/assets/{github-DpBLs0sk.js → github-CVranJaK.js} +1 -1
- package/web/dist/assets/{image-preview-BhuwWeyP.js → image-preview-DXIixdjJ.js} +1 -1
- package/web/dist/assets/index-CokupxlP.js +7 -0
- package/web/dist/assets/{markdown-CIi0LXvU.js → markdown-uwx4ouIE.js} +1 -1
- package/web/dist/assets/pill-jITycc8f.js +1 -0
- package/web/dist/assets/{project-router-BOglfKgF.js → project-router-D9DfwL9L.js} +1 -1
- package/web/dist/assets/{prompt-templates-ByGhlTfK.js → prompt-templates-DgR9lv5k.js} +1 -1
- package/web/dist/assets/{repo-git-DotaGNU5.js → repo-git-BLjI-1pn.js} +1 -1
- package/web/dist/assets/{run-diff-DEVs-zV1.js → run-diff-DRPGyUPP.js} +1 -1
- package/web/dist/assets/run-header-DO-yE5Gj.js +1 -0
- package/web/dist/assets/{skills-DIsE6gKK.js → skills-DRowiHKX.js} +1 -1
- package/web/dist/assets/{tab-link-ChqeHA8K.js → tab-link-C5tpLlqv.js} +1 -1
- package/web/dist/assets/{task-changes-CvIfnMs0.js → task-changes-LBnRxH_G.js} +1 -1
- package/web/dist/assets/{task-commits-BzF6ZcJN.js → task-commits-lpE22fPa.js} +1 -1
- package/web/dist/assets/{task-files-BIjM6VWI.js → task-files-Dh6SjTQF.js} +1 -1
- package/web/dist/assets/{task-thread-DQUfFnF2.js → task-thread-B_74GvMl.js} +6 -6
- package/web/dist/assets/{textarea-DdKiIORK.js → textarea-D_Ce7vp0.js} +1 -1
- package/web/dist/assets/{thread-loading-NLtIo_pi.js → thread-loading-CwnPHwar.js} +1 -1
- package/web/dist/assets/{token-metrics-DDvhrHmK.js → token-metrics-BC00XXU8.js} +1 -1
- package/web/dist/assets/{utils-CG8vWc5K.js → utils-B8qbBJrk.js} +1 -1
- package/web/dist/assets/{workflows-C-ZYZeD9.js → workflows-B2Iq2bcd.js} +1 -1
- package/web/dist/assets/{zoomable-image-BXioMWqb.js → zoomable-image-Idq840Ej.js} +1 -1
- package/web/dist/index.html +13 -13
- package/dist/core/cursor-acp-runner.d.ts +0 -15
- package/dist/core/cursor-acp-runner.js +0 -434
- package/dist/core/cursor-acp-runner.js.map +0 -1
- package/dist/core/cursor-model-catalog.d.ts +0 -21
- package/dist/core/cursor-model-catalog.js +0 -114
- package/dist/core/cursor-model-catalog.js.map +0 -1
- package/dist/core/cursor-ui-mapper.d.ts +0 -29
- package/dist/core/cursor-ui-mapper.js +0 -272
- package/dist/core/cursor-ui-mapper.js.map +0 -1
- package/scripts/mock-cursor-acp.mjs +0 -62
- package/web/dist/assets/alert-dialog-KUiPIBmb.js +0 -43
- package/web/dist/assets/index-CeSotOab.js +0 -7
- package/web/dist/assets/pill-DDhByAhe.js +0 -1
- package/web/dist/assets/run-header-Dvb1P3Ge.js +0 -1
package/dist/contract/index.js
CHANGED
|
@@ -107,7 +107,7 @@ var workerCreationReceiptSchema = z3.object({
|
|
|
107
107
|
requestHash: requestHashSchema,
|
|
108
108
|
deletion: z3.object({ phase: z3.enum(["pending", "complete"]), revision: z3.number().int().nonnegative(), resourceId: z3.uuid(), generation: z3.uuid() }).strict().optional()
|
|
109
109
|
}).strict();
|
|
110
|
-
var workerBackendSchema = z3.enum(["claude", "codex", "opencode", "pi"
|
|
110
|
+
var workerBackendSchema = z3.enum(["claude", "codex", "opencode", "pi"]);
|
|
111
111
|
var relativeInputPath = z3.string().min(1).max(4096).refine((path) => !/[\\\u0000-\u001f\u007f:]/.test(path) && !path.startsWith("/") && path.split("/").every((part) => part !== "" && part !== "." && part !== ".."));
|
|
112
112
|
var workerContextReferenceSchema = z3.discriminatedUnion("kind", [
|
|
113
113
|
z3.object({ kind: z3.literal("baseline-file"), path: relativeInputPath }).strict(),
|
|
@@ -403,14 +403,14 @@ function pendingHumanAsk(events) {
|
|
|
403
403
|
|
|
404
404
|
// ../contract/src/health.ts
|
|
405
405
|
import { z as z6 } from "zod";
|
|
406
|
-
var runnerSchema = z6.enum(["claude", "codex", "opencode", "pi"
|
|
406
|
+
var runnerSchema = z6.enum(["claude", "codex", "opencode", "pi"]);
|
|
407
407
|
var repoInfoSchema = z6.object({
|
|
408
408
|
root: z6.string(),
|
|
409
409
|
branch: z6.string(),
|
|
410
410
|
remote: z6.string().optional()
|
|
411
411
|
});
|
|
412
412
|
var backendCheckSchema = z6.object({
|
|
413
|
-
name: z6.enum(["claude", "codex", "opencode", "pi", "
|
|
413
|
+
name: z6.enum(["claude", "codex", "opencode", "pi", "gh", "git"]),
|
|
414
414
|
available: z6.boolean(),
|
|
415
415
|
version: z6.string().optional(),
|
|
416
416
|
hint: z6.string().optional()
|
|
@@ -1035,8 +1035,6 @@ var runRecordSchema = z9.object({
|
|
|
1035
1035
|
workflowDef: workflowDefSchema.optional()
|
|
1036
1036
|
});
|
|
1037
1037
|
var apiRunSchema = runRecordSchema.extend({
|
|
1038
|
-
/** Server-resolved Cursor CLI command, including the configured executable. Never persisted. */
|
|
1039
|
-
cliResumeCommand: z9.string().optional(),
|
|
1040
1038
|
usage: processUsageSchema.optional()
|
|
1041
1039
|
});
|
|
1042
1040
|
var runIndexEntrySchema = z9.object({
|
|
@@ -1547,8 +1545,7 @@ var workspaceConfigResponseSchema = z12.object({
|
|
|
1547
1545
|
claude: z12.string().optional(),
|
|
1548
1546
|
codex: z12.string().optional(),
|
|
1549
1547
|
opencode: z12.string().optional(),
|
|
1550
|
-
pi: z12.string().optional()
|
|
1551
|
-
cursor: z12.string().optional()
|
|
1548
|
+
pi: z12.string().optional()
|
|
1552
1549
|
}).optional()
|
|
1553
1550
|
})
|
|
1554
1551
|
});
|
|
@@ -1568,8 +1565,7 @@ var setWorkspaceConfigInputSchema = z12.object({
|
|
|
1568
1565
|
claude: z12.string().trim().min(1).max(200).nullable().optional(),
|
|
1569
1566
|
codex: z12.string().trim().min(1).max(200).nullable().optional(),
|
|
1570
1567
|
opencode: z12.string().trim().min(1).max(200).nullable().optional(),
|
|
1571
|
-
pi: z12.string().trim().min(1).max(200).nullable().optional()
|
|
1572
|
-
cursor: z12.string().trim().min(1).max(200).nullable().optional()
|
|
1568
|
+
pi: z12.string().trim().min(1).max(200).nullable().optional()
|
|
1573
1569
|
}).optional()
|
|
1574
1570
|
}).optional(),
|
|
1575
1571
|
resources: z12.object({
|
|
@@ -1647,8 +1643,7 @@ var workspaceUiStateSchema = z12.looseObject({
|
|
|
1647
1643
|
claude: z12.string().optional(),
|
|
1648
1644
|
codex: z12.string().optional(),
|
|
1649
1645
|
opencode: z12.string().optional(),
|
|
1650
|
-
pi: z12.string().optional()
|
|
1651
|
-
cursor: z12.string().optional()
|
|
1646
|
+
pi: z12.string().optional()
|
|
1652
1647
|
}).optional(),
|
|
1653
1648
|
/** Settings → Appearance, GLOBAL since step 3.5: accent + density describe the person at the
|
|
1654
1649
|
* keyboard, not a repo. */
|
|
@@ -1681,8 +1676,7 @@ var setWorkspaceUiStateInputSchema = z12.looseObject({
|
|
|
1681
1676
|
claude: z12.string().min(1).max(128).optional(),
|
|
1682
1677
|
codex: z12.string().min(1).max(128).optional(),
|
|
1683
1678
|
opencode: z12.string().min(1).max(128).optional(),
|
|
1684
|
-
pi: z12.string().min(1).max(128).optional()
|
|
1685
|
-
cursor: z12.string().min(1).max(128).optional()
|
|
1679
|
+
pi: z12.string().min(1).max(128).optional()
|
|
1686
1680
|
}).optional(),
|
|
1687
1681
|
importedSkills: z12.array(z12.string().min(1).max(200)).max(WORKSPACE_UI_STATE_MAX_KEYS).optional(),
|
|
1688
1682
|
taskTable: taskTableUiStateSchema.extend({
|
|
@@ -1702,8 +1696,7 @@ var runnerModelsSchema = z12.object({
|
|
|
1702
1696
|
claude: z12.string().optional(),
|
|
1703
1697
|
codex: z12.string().optional(),
|
|
1704
1698
|
opencode: z12.string().optional(),
|
|
1705
|
-
pi: z12.string().optional()
|
|
1706
|
-
cursor: z12.string().optional()
|
|
1699
|
+
pi: z12.string().optional()
|
|
1707
1700
|
});
|
|
1708
1701
|
var configResponseSchema = z12.object({
|
|
1709
1702
|
baseBranch: z12.string().nullable(),
|
|
@@ -1734,8 +1727,7 @@ var setConfigInputSchema = z12.object({
|
|
|
1734
1727
|
claude: z12.string().trim().max(200).nullable().optional(),
|
|
1735
1728
|
codex: z12.string().trim().max(200).nullable().optional(),
|
|
1736
1729
|
opencode: z12.string().trim().max(200).nullable().optional(),
|
|
1737
|
-
pi: z12.string().trim().max(200).nullable().optional()
|
|
1738
|
-
cursor: z12.string().trim().max(200).nullable().optional()
|
|
1730
|
+
pi: z12.string().trim().max(200).nullable().optional()
|
|
1739
1731
|
}).optional(),
|
|
1740
1732
|
maxParallel: z12.number().int().min(1).max(16).optional(),
|
|
1741
1733
|
/** null or 0 clears the ceiling back to "no limit". */
|
|
@@ -1801,7 +1793,7 @@ var providerConnectResponseSchema = z12.discriminatedUnion("opened", [
|
|
|
1801
1793
|
z12.object({ opened: z12.literal(true), command: z12.string() }),
|
|
1802
1794
|
z12.object({ opened: z12.literal(false), connected: z12.literal(true), command: z12.string() })
|
|
1803
1795
|
]);
|
|
1804
|
-
var modelDiscoveryRunnerSchema = z12.enum(["claude", "codex", "opencode", "pi"
|
|
1796
|
+
var modelDiscoveryRunnerSchema = z12.enum(["claude", "codex", "opencode", "pi"]);
|
|
1805
1797
|
var MODEL_DISCOVERY_RUNNERS = modelDiscoveryRunnerSchema.options;
|
|
1806
1798
|
function runnerDiscoversModels(runner) {
|
|
1807
1799
|
return MODEL_DISCOVERY_RUNNERS.includes(runner);
|
|
@@ -1994,8 +1986,7 @@ var agentAccountSelectionSchema = z15.object({
|
|
|
1994
1986
|
claude: z15.string().optional(),
|
|
1995
1987
|
codex: z15.string().optional(),
|
|
1996
1988
|
opencode: z15.string().optional(),
|
|
1997
|
-
pi: z15.string().optional()
|
|
1998
|
-
cursor: z15.string().optional()
|
|
1989
|
+
pi: z15.string().optional()
|
|
1999
1990
|
});
|
|
2000
1991
|
var agentProfilesResponseSchema = z15.object({
|
|
2001
1992
|
editable: z15.boolean(),
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -82,7 +82,6 @@ export declare const stepStateSchema: z.ZodObject<{
|
|
|
82
82
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
83
83
|
claude: "claude";
|
|
84
84
|
codex: "codex";
|
|
85
|
-
cursor: "cursor";
|
|
86
85
|
opencode: "opencode";
|
|
87
86
|
pi: "pi";
|
|
88
87
|
}>>;
|
|
@@ -555,7 +554,6 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
555
554
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
556
555
|
claude: "claude";
|
|
557
556
|
codex: "codex";
|
|
558
|
-
cursor: "cursor";
|
|
559
557
|
opencode: "opencode";
|
|
560
558
|
pi: "pi";
|
|
561
559
|
}>>;
|
|
@@ -661,7 +659,6 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
661
659
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
662
660
|
claude: "claude";
|
|
663
661
|
codex: "codex";
|
|
664
|
-
cursor: "cursor";
|
|
665
662
|
opencode: "opencode";
|
|
666
663
|
pi: "pi";
|
|
667
664
|
}>>;
|
|
@@ -681,7 +678,6 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
681
678
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
682
679
|
claude: "claude";
|
|
683
680
|
codex: "codex";
|
|
684
|
-
cursor: "cursor";
|
|
685
681
|
opencode: "opencode";
|
|
686
682
|
pi: "pi";
|
|
687
683
|
}>>;
|
|
@@ -702,10 +698,9 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
702
698
|
}, z.core.$strip>;
|
|
703
699
|
export type RunRecord = z.infer<typeof runRecordSchema>;
|
|
704
700
|
/**
|
|
705
|
-
* What `GET /runs` and `GET /runs/:id` answer: the stored record plus
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* or attached by mutation routes.
|
|
701
|
+
* What `GET /runs` and `GET /runs/:id` answer: the stored record plus the live `usage` sample the
|
|
702
|
+
* server attaches on the way out (`withUsage`). Absent for finished runs and wherever `ps` yields
|
|
703
|
+
* nothing — never persisted, and never attached by the mutation routes.
|
|
709
704
|
*/
|
|
710
705
|
export declare const apiRunSchema: z.ZodObject<{
|
|
711
706
|
id: z.ZodString;
|
|
@@ -1130,7 +1125,6 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1130
1125
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
1131
1126
|
claude: "claude";
|
|
1132
1127
|
codex: "codex";
|
|
1133
|
-
cursor: "cursor";
|
|
1134
1128
|
opencode: "opencode";
|
|
1135
1129
|
pi: "pi";
|
|
1136
1130
|
}>>;
|
|
@@ -1236,7 +1230,6 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1236
1230
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
1237
1231
|
claude: "claude";
|
|
1238
1232
|
codex: "codex";
|
|
1239
|
-
cursor: "cursor";
|
|
1240
1233
|
opencode: "opencode";
|
|
1241
1234
|
pi: "pi";
|
|
1242
1235
|
}>>;
|
|
@@ -1256,7 +1249,6 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1256
1249
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
1257
1250
|
claude: "claude";
|
|
1258
1251
|
codex: "codex";
|
|
1259
|
-
cursor: "cursor";
|
|
1260
1252
|
opencode: "opencode";
|
|
1261
1253
|
pi: "pi";
|
|
1262
1254
|
}>>;
|
|
@@ -1274,7 +1266,6 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1274
1266
|
}>;
|
|
1275
1267
|
path: z.ZodOptional<z.ZodString>;
|
|
1276
1268
|
}, z.core.$strip>>;
|
|
1277
|
-
cliResumeCommand: z.ZodOptional<z.ZodString>;
|
|
1278
1269
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1279
1270
|
cpuPct: z.ZodNumber;
|
|
1280
1271
|
rssBytes: z.ZodNumber;
|
|
@@ -1933,7 +1924,6 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1933
1924
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
1934
1925
|
claude: "claude";
|
|
1935
1926
|
codex: "codex";
|
|
1936
|
-
cursor: "cursor";
|
|
1937
1927
|
opencode: "opencode";
|
|
1938
1928
|
pi: "pi";
|
|
1939
1929
|
}>>;
|
|
@@ -2039,7 +2029,6 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2039
2029
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
2040
2030
|
claude: "claude";
|
|
2041
2031
|
codex: "codex";
|
|
2042
|
-
cursor: "cursor";
|
|
2043
2032
|
opencode: "opencode";
|
|
2044
2033
|
pi: "pi";
|
|
2045
2034
|
}>>;
|
|
@@ -2059,7 +2048,6 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2059
2048
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
2060
2049
|
claude: "claude";
|
|
2061
2050
|
codex: "codex";
|
|
2062
|
-
cursor: "cursor";
|
|
2063
2051
|
opencode: "opencode";
|
|
2064
2052
|
pi: "pi";
|
|
2065
2053
|
}>>;
|
|
@@ -2501,7 +2489,6 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2501
2489
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
2502
2490
|
claude: "claude";
|
|
2503
2491
|
codex: "codex";
|
|
2504
|
-
cursor: "cursor";
|
|
2505
2492
|
opencode: "opencode";
|
|
2506
2493
|
pi: "pi";
|
|
2507
2494
|
}>>;
|
|
@@ -2607,7 +2594,6 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2607
2594
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
2608
2595
|
claude: "claude";
|
|
2609
2596
|
codex: "codex";
|
|
2610
|
-
cursor: "cursor";
|
|
2611
2597
|
opencode: "opencode";
|
|
2612
2598
|
pi: "pi";
|
|
2613
2599
|
}>>;
|
|
@@ -2627,7 +2613,6 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2627
2613
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
2628
2614
|
claude: "claude";
|
|
2629
2615
|
codex: "codex";
|
|
2630
|
-
cursor: "cursor";
|
|
2631
2616
|
opencode: "opencode";
|
|
2632
2617
|
pi: "pi";
|
|
2633
2618
|
}>>;
|
|
@@ -3276,7 +3261,6 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3276
3261
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
3277
3262
|
claude: "claude";
|
|
3278
3263
|
codex: "codex";
|
|
3279
|
-
cursor: "cursor";
|
|
3280
3264
|
opencode: "opencode";
|
|
3281
3265
|
pi: "pi";
|
|
3282
3266
|
}>>;
|
|
@@ -3382,7 +3366,6 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3382
3366
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
3383
3367
|
claude: "claude";
|
|
3384
3368
|
codex: "codex";
|
|
3385
|
-
cursor: "cursor";
|
|
3386
3369
|
opencode: "opencode";
|
|
3387
3370
|
pi: "pi";
|
|
3388
3371
|
}>>;
|
|
@@ -3402,7 +3385,6 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3402
3385
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
3403
3386
|
claude: "claude";
|
|
3404
3387
|
codex: "codex";
|
|
3405
|
-
cursor: "cursor";
|
|
3406
3388
|
opencode: "opencode";
|
|
3407
3389
|
pi: "pi";
|
|
3408
3390
|
}>>;
|
|
@@ -3497,7 +3479,6 @@ export declare const createRunInputBaseSchema: z.ZodObject<{
|
|
|
3497
3479
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
3498
3480
|
claude: "claude";
|
|
3499
3481
|
codex: "codex";
|
|
3500
|
-
cursor: "cursor";
|
|
3501
3482
|
opencode: "opencode";
|
|
3502
3483
|
pi: "pi";
|
|
3503
3484
|
}>>;
|
|
@@ -3515,7 +3496,6 @@ export declare const createRunInputBaseSchema: z.ZodObject<{
|
|
|
3515
3496
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
3516
3497
|
claude: "claude";
|
|
3517
3498
|
codex: "codex";
|
|
3518
|
-
cursor: "cursor";
|
|
3519
3499
|
opencode: "opencode";
|
|
3520
3500
|
pi: "pi";
|
|
3521
3501
|
}>>;
|
|
@@ -3548,7 +3528,6 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
3548
3528
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
3549
3529
|
claude: "claude";
|
|
3550
3530
|
codex: "codex";
|
|
3551
|
-
cursor: "cursor";
|
|
3552
3531
|
opencode: "opencode";
|
|
3553
3532
|
pi: "pi";
|
|
3554
3533
|
}>>;
|
|
@@ -3566,7 +3545,6 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
3566
3545
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
3567
3546
|
claude: "claude";
|
|
3568
3547
|
codex: "codex";
|
|
3569
|
-
cursor: "cursor";
|
|
3570
3548
|
opencode: "opencode";
|
|
3571
3549
|
pi: "pi";
|
|
3572
3550
|
}>>;
|
|
@@ -490,7 +490,6 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
490
490
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
491
491
|
claude: "claude";
|
|
492
492
|
codex: "codex";
|
|
493
|
-
cursor: "cursor";
|
|
494
493
|
opencode: "opencode";
|
|
495
494
|
pi: "pi";
|
|
496
495
|
}>>;
|
|
@@ -596,7 +595,6 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
596
595
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
597
596
|
claude: "claude";
|
|
598
597
|
codex: "codex";
|
|
599
|
-
cursor: "cursor";
|
|
600
598
|
opencode: "opencode";
|
|
601
599
|
pi: "pi";
|
|
602
600
|
}>>;
|
|
@@ -616,7 +614,6 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
616
614
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
617
615
|
claude: "claude";
|
|
618
616
|
codex: "codex";
|
|
619
|
-
cursor: "cursor";
|
|
620
617
|
opencode: "opencode";
|
|
621
618
|
pi: "pi";
|
|
622
619
|
}>>;
|
|
@@ -24,7 +24,6 @@ export declare const workflowStepDefSchema: z.ZodObject<{
|
|
|
24
24
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
25
25
|
claude: "claude";
|
|
26
26
|
codex: "codex";
|
|
27
|
-
cursor: "cursor";
|
|
28
27
|
opencode: "opencode";
|
|
29
28
|
pi: "pi";
|
|
30
29
|
}>>;
|
|
@@ -50,7 +49,6 @@ export declare const workflowDefSchema: z.ZodObject<{
|
|
|
50
49
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
51
50
|
claude: "claude";
|
|
52
51
|
codex: "codex";
|
|
53
|
-
cursor: "cursor";
|
|
54
52
|
opencode: "opencode";
|
|
55
53
|
pi: "pi";
|
|
56
54
|
}>>;
|
|
@@ -91,7 +89,6 @@ export declare const workflowsResponseSchema: z.ZodObject<{
|
|
|
91
89
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
92
90
|
claude: "claude";
|
|
93
91
|
codex: "codex";
|
|
94
|
-
cursor: "cursor";
|
|
95
92
|
opencode: "opencode";
|
|
96
93
|
pi: "pi";
|
|
97
94
|
}>>;
|
|
@@ -133,7 +130,6 @@ export declare const saveWorkflowInputSchema: z.ZodObject<{
|
|
|
133
130
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
134
131
|
claude: "claude";
|
|
135
132
|
codex: "codex";
|
|
136
|
-
cursor: "cursor";
|
|
137
133
|
opencode: "opencode";
|
|
138
134
|
pi: "pi";
|
|
139
135
|
}>>;
|
|
@@ -168,7 +164,6 @@ export declare const parsedWorkflowSchema: z.ZodObject<{
|
|
|
168
164
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
169
165
|
claude: "claude";
|
|
170
166
|
codex: "codex";
|
|
171
|
-
cursor: "cursor";
|
|
172
167
|
opencode: "opencode";
|
|
173
168
|
pi: "pi";
|
|
174
169
|
}>>;
|
|
@@ -209,7 +204,6 @@ export declare const planResponseSchema: z.ZodObject<{
|
|
|
209
204
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
210
205
|
claude: "claude";
|
|
211
206
|
codex: "codex";
|
|
212
|
-
cursor: "cursor";
|
|
213
207
|
opencode: "opencode";
|
|
214
208
|
pi: "pi";
|
|
215
209
|
}>>;
|
|
@@ -44,7 +44,6 @@ export declare const workspaceConfigResponseSchema: z.ZodObject<{
|
|
|
44
44
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
45
45
|
claude: "claude";
|
|
46
46
|
codex: "codex";
|
|
47
|
-
cursor: "cursor";
|
|
48
47
|
opencode: "opencode";
|
|
49
48
|
pi: "pi";
|
|
50
49
|
}>>;
|
|
@@ -53,7 +52,6 @@ export declare const workspaceConfigResponseSchema: z.ZodObject<{
|
|
|
53
52
|
codex: z.ZodOptional<z.ZodString>;
|
|
54
53
|
opencode: z.ZodOptional<z.ZodString>;
|
|
55
54
|
pi: z.ZodOptional<z.ZodString>;
|
|
56
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
57
55
|
}, z.core.$strip>>;
|
|
58
56
|
}, z.core.$strip>;
|
|
59
57
|
}, z.core.$strip>;
|
|
@@ -77,7 +75,6 @@ export declare const setWorkspaceConfigInputSchema: z.ZodObject<{
|
|
|
77
75
|
runner: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
78
76
|
claude: "claude";
|
|
79
77
|
codex: "codex";
|
|
80
|
-
cursor: "cursor";
|
|
81
78
|
opencode: "opencode";
|
|
82
79
|
pi: "pi";
|
|
83
80
|
}>>>;
|
|
@@ -86,7 +83,6 @@ export declare const setWorkspaceConfigInputSchema: z.ZodObject<{
|
|
|
86
83
|
codex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
84
|
opencode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
85
|
pi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
-
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
86
|
}, z.core.$strip>>;
|
|
91
87
|
}, z.core.$strip>>;
|
|
92
88
|
resources: z.ZodOptional<z.ZodObject<{
|
|
@@ -189,7 +185,6 @@ export declare const workspaceUiStateSchema: z.ZodObject<{
|
|
|
189
185
|
codex: z.ZodOptional<z.ZodString>;
|
|
190
186
|
opencode: z.ZodOptional<z.ZodString>;
|
|
191
187
|
pi: z.ZodOptional<z.ZodString>;
|
|
192
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
193
188
|
}, z.core.$strip>>;
|
|
194
189
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
195
190
|
accent: z.ZodOptional<z.ZodEnum<{
|
|
@@ -261,7 +256,6 @@ export declare const setWorkspaceUiStateInputSchema: z.ZodObject<{
|
|
|
261
256
|
codex: z.ZodOptional<z.ZodString>;
|
|
262
257
|
opencode: z.ZodOptional<z.ZodString>;
|
|
263
258
|
pi: z.ZodOptional<z.ZodString>;
|
|
264
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
265
259
|
}, z.core.$strict>>;
|
|
266
260
|
importedSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
267
261
|
taskTable: z.ZodOptional<z.ZodObject<{
|
|
@@ -278,7 +272,6 @@ export declare const runnerModelsSchema: z.ZodObject<{
|
|
|
278
272
|
codex: z.ZodOptional<z.ZodString>;
|
|
279
273
|
opencode: z.ZodOptional<z.ZodString>;
|
|
280
274
|
pi: z.ZodOptional<z.ZodString>;
|
|
281
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
282
275
|
}, z.core.$strip>;
|
|
283
276
|
export type RunnerModels = z.infer<typeof runnerModelsSchema>;
|
|
284
277
|
/** `GET /api/v1/config` — every Settings → Agents knob in one read. */
|
|
@@ -287,7 +280,6 @@ export declare const configResponseSchema: z.ZodObject<{
|
|
|
287
280
|
defaultRunner: z.ZodEnum<{
|
|
288
281
|
claude: "claude";
|
|
289
282
|
codex: "codex";
|
|
290
|
-
cursor: "cursor";
|
|
291
283
|
opencode: "opencode";
|
|
292
284
|
pi: "pi";
|
|
293
285
|
}>;
|
|
@@ -297,7 +289,6 @@ export declare const configResponseSchema: z.ZodObject<{
|
|
|
297
289
|
codex: z.ZodOptional<z.ZodString>;
|
|
298
290
|
opencode: z.ZodOptional<z.ZodString>;
|
|
299
291
|
pi: z.ZodOptional<z.ZodString>;
|
|
300
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
301
292
|
}, z.core.$strip>;
|
|
302
293
|
modelsLocked: z.ZodBoolean;
|
|
303
294
|
maxParallel: z.ZodNumber;
|
|
@@ -313,7 +304,6 @@ export declare const setConfigResponseSchema: z.ZodObject<{
|
|
|
313
304
|
defaultRunner: z.ZodEnum<{
|
|
314
305
|
claude: "claude";
|
|
315
306
|
codex: "codex";
|
|
316
|
-
cursor: "cursor";
|
|
317
307
|
opencode: "opencode";
|
|
318
308
|
pi: "pi";
|
|
319
309
|
}>;
|
|
@@ -323,7 +313,6 @@ export declare const setConfigResponseSchema: z.ZodObject<{
|
|
|
323
313
|
codex: z.ZodOptional<z.ZodString>;
|
|
324
314
|
opencode: z.ZodOptional<z.ZodString>;
|
|
325
315
|
pi: z.ZodOptional<z.ZodString>;
|
|
326
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
327
316
|
}, z.core.$strip>;
|
|
328
317
|
modelsLocked: z.ZodBoolean;
|
|
329
318
|
maxParallel: z.ZodNumber;
|
|
@@ -345,7 +334,6 @@ export declare const setConfigInputSchema: z.ZodObject<{
|
|
|
345
334
|
defaultRunner: z.ZodOptional<z.ZodEnum<{
|
|
346
335
|
claude: "claude";
|
|
347
336
|
codex: "codex";
|
|
348
|
-
cursor: "cursor";
|
|
349
337
|
opencode: "opencode";
|
|
350
338
|
pi: "pi";
|
|
351
339
|
}>>;
|
|
@@ -355,7 +343,6 @@ export declare const setConfigInputSchema: z.ZodObject<{
|
|
|
355
343
|
codex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
344
|
opencode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
345
|
pi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
358
|
-
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
346
|
}, z.core.$strip>>;
|
|
360
347
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
361
348
|
memoryLimitMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -440,7 +427,6 @@ export type SkillsUpdateState = z.infer<typeof skillsUpdateStateSchema>;
|
|
|
440
427
|
export declare const providerIdSchema: z.ZodEnum<{
|
|
441
428
|
claude: "claude";
|
|
442
429
|
codex: "codex";
|
|
443
|
-
cursor: "cursor";
|
|
444
430
|
opencode: "opencode";
|
|
445
431
|
pi: "pi";
|
|
446
432
|
}>;
|
|
@@ -465,7 +451,6 @@ export declare const providerStatusSchema: z.ZodObject<{
|
|
|
465
451
|
provider: z.ZodEnum<{
|
|
466
452
|
claude: "claude";
|
|
467
453
|
codex: "codex";
|
|
468
|
-
cursor: "cursor";
|
|
469
454
|
opencode: "opencode";
|
|
470
455
|
pi: "pi";
|
|
471
456
|
}>;
|
|
@@ -487,7 +472,6 @@ export declare const providerStatusResponseSchema: z.ZodObject<{
|
|
|
487
472
|
provider: z.ZodEnum<{
|
|
488
473
|
claude: "claude";
|
|
489
474
|
codex: "codex";
|
|
490
|
-
cursor: "cursor";
|
|
491
475
|
opencode: "opencode";
|
|
492
476
|
pi: "pi";
|
|
493
477
|
}>;
|
|
@@ -519,13 +503,12 @@ export type ProviderConnectResponse = z.infer<typeof providerConnectResponseSche
|
|
|
519
503
|
/**
|
|
520
504
|
* The runners whose model list is discovered from the host rather than hard-coded: Codex
|
|
521
505
|
* through its app-server protocol, OpenCode through its own `models` listing (#794), Pi
|
|
522
|
-
* through `pi --list-models`,
|
|
523
|
-
*
|
|
506
|
+
* through `pi --list-models`, and Claude through stream-json `list_models`. One definition, used by the route's
|
|
507
|
+
* query validator and by the cockpit's picker.
|
|
524
508
|
*/
|
|
525
509
|
export declare const modelDiscoveryRunnerSchema: z.ZodEnum<{
|
|
526
510
|
claude: "claude";
|
|
527
511
|
codex: "codex";
|
|
528
|
-
cursor: "cursor";
|
|
529
512
|
opencode: "opencode";
|
|
530
513
|
pi: "pi";
|
|
531
514
|
}>;
|
|
@@ -553,7 +536,6 @@ export declare const runnerModelCatalogResponseSchema: z.ZodObject<{
|
|
|
553
536
|
runner: z.ZodEnum<{
|
|
554
537
|
claude: "claude";
|
|
555
538
|
codex: "codex";
|
|
556
|
-
cursor: "cursor";
|
|
557
539
|
opencode: "opencode";
|
|
558
540
|
pi: "pi";
|
|
559
541
|
}>;
|
package/dist/core/agent-env.js
CHANGED
|
@@ -215,7 +215,6 @@ const BACKEND_ALLOW_PREFIXES = {
|
|
|
215
215
|
'claude-cli': ['ANTHROPIC_', 'CLAUDE_'],
|
|
216
216
|
codex: ['OPENAI_', 'CODEX_', 'AZURE_OPENAI_'],
|
|
217
217
|
opencode: MULTI_PROVIDER_PREFIXES,
|
|
218
|
-
cursor: ['CURSOR_'],
|
|
219
218
|
// pi selects models as `provider/model` (#387), so it needs both its own config and any
|
|
220
219
|
// provider a configured model id can name — the same set OpenCode gets, for the same reason.
|
|
221
220
|
// Deliberately NOT `CLAUDE_`: pi is not Claude Code and reads none of its variables, and the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-env.js","sourceRoot":"","sources":["../../src/core/agent-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;GAOG;AACH,SAAS,QAAQ,CAAC,KAAwB;IACxC,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,6EAA6E;AAC7E,MAAM,gBAAgB,GAAwB,QAAQ,CAAC;IACrD,gCAAgC;IAChC,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;IACT,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,UAAU;IACV,MAAM;IACN,UAAU;IACV,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,KAAK;IACL,IAAI;IACJ,SAAS;IACT,MAAM;IACN,UAAU;IACV,qBAAqB;IACrB,MAAM;IACN,UAAU;IACV,WAAW;IACX,SAAS;IACT,OAAO;IACP,UAAU;IACV,aAAa;IACb,UAAU;IACV,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,uEAAuE;IACvE,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;IACN,SAAS;IACT,UAAU;IACV,oCAAoC;IACpC,WAAW;IACX,YAAY;IACZ,qBAAqB;IACrB,SAAS;IACT,iBAAiB;IACjB,eAAe;IACf,yEAAyE;IACzE,YAAY;IACZ,aAAa;IACb,WAAW;IACX,WAAW;IACX,UAAU;IACV,2EAA2E;IAC3E,wEAAwE;IACxE,wEAAwE;IACxE,4EAA4E;IAC5E,oCAAoC;IACpC,YAAY;IACZ,aAAa;IACb,QAAQ;IACR,SAAS;IACT,SAAS;IACT,aAAa;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ACvB,WAAW;IACX,MAAM;IACN,aAAa;IACb,WAAW;IACX,YAAY;CACb,CAAC;AAEF,qEAAqE;AACrE,MAAM,sBAAsB,GAA4C;IACtE,MAAM,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;IACjC,YAAY,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;IACvC,KAAK,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,CAAC;IAC7C,QAAQ,EAAE,uBAAuB;IACjC,
|
|
1
|
+
{"version":3,"file":"agent-env.js","sourceRoot":"","sources":["../../src/core/agent-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;GAOG;AACH,SAAS,QAAQ,CAAC,KAAwB;IACxC,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,6EAA6E;AAC7E,MAAM,gBAAgB,GAAwB,QAAQ,CAAC;IACrD,gCAAgC;IAChC,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;IACT,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,UAAU;IACV,MAAM;IACN,UAAU;IACV,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,KAAK;IACL,IAAI;IACJ,SAAS;IACT,MAAM;IACN,UAAU;IACV,qBAAqB;IACrB,MAAM;IACN,UAAU;IACV,WAAW;IACX,SAAS;IACT,OAAO;IACP,UAAU;IACV,aAAa;IACb,UAAU;IACV,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,uEAAuE;IACvE,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;IACN,SAAS;IACT,UAAU;IACV,oCAAoC;IACpC,W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AAI,CAAC;QACzC,IAAI,aAAa,CAAC,GAAG,EAAE,eAAe,CAAC;YAAE,OAAO,IAAI,CAAC;QACrD,IAAI,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,aAAa,CAAC,GAAG,EAAE,aAAa,CAAC;YAAE,OAAO,IAAI,CAAC;QAC1E,+BAA+B;QAC/B,IAAI,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QACtC,0EAA0E;QAC1E,uEAAuE;QACvE,uEAAuE;QACvE,IAAI,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC3C,IAAI,aAAa,CAAC,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC9E,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -39,8 +39,6 @@ export const PROFILE_ENV_VAR = {
|
|
|
39
39
|
codex: 'CODEX_HOME',
|
|
40
40
|
opencode: null,
|
|
41
41
|
pi: null,
|
|
42
|
-
// CURSOR_CONFIG_DIR relocates configuration, not a verified whole account home.
|
|
43
|
-
cursor: null,
|
|
44
42
|
};
|
|
45
43
|
/** Providers that can carry more than one account — what the UI offers "Add account" for. */
|
|
46
44
|
export const PROFILE_CAPABLE_PROVIDERS = Object.keys(PROFILE_ENV_VAR).filter((provider) => PROFILE_ENV_VAR[provider] !== null);
|
|
@@ -88,6 +86,5 @@ const PROFILE_DIR_MARKERS = {
|
|
|
88
86
|
// pi cannot carry profiles (`PROFILE_ENV_VAR.pi === null`), so nothing ever probes a pi
|
|
89
87
|
// profile dir; the entry exists to keep this table exhaustive over `ProviderId`.
|
|
90
88
|
pi: [],
|
|
91
|
-
cursor: [],
|
|
92
89
|
};
|
|
93
90
|
//# sourceMappingURL=agent-profiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profiles.js","sourceRoot":"","sources":["../../src/core/agent-profiles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAsC;IAChE,MAAM,EAAE,mBAAmB;IAC3B,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,IAAI;IACd,EAAE,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"agent-profiles.js","sourceRoot":"","sources":["../../src/core/agent-profiles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAsC;IAChE,MAAM,EAAE,mBAAmB;IAC3B,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,IAAI;IACd,EAAE,EAAE,IAAI;CACT,CAAC;AAEF,6FAA6F;AAC7F,MAAM,CAAC,MAAM,yBAAyB,GACpC,MAAM,CAAC,IAAI,CAAC,eAAe,CAC5B,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,CAAC;AAE3D,MAAM,UAAU,gBAAgB,CAAC,QAAoB;IACnD,OAAO,eAAe,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;AAC5C,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,UAAU,CAAC,QAAoB,EAAE,SAAoC;IACnF,MAAM,IAAI,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACvC,MAAM,GAAG,GAAG,SAAS,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACrC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;AACzB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAoB,EAAE,OAA0B;IAClF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,6EAA6E;AAC7E,MAAM,mBAAmB,GAA0C;IACjE,8FAA8F;IAC9F,yCAAyC;IACzC,MAAM,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC;IACjE,KAAK,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC;IACnC,QAAQ,EAAE,EAAE;IACZ,wFAAwF;IACxF,iFAAiF;IACjF,EAAE,EAAE,EAAE;CACP,CAAC"}
|
|
@@ -19,7 +19,7 @@ import type { UiEvent } from './ui-events.ts';
|
|
|
19
19
|
* server-install "at least one agent CLI" gate, the CLI-handoff registry) rather than repeating
|
|
20
20
|
* the literals, so adding runner #5 is a one-line change here and typecheck finds the rest.
|
|
21
21
|
*/
|
|
22
|
-
export declare const RUNNER_IDS: readonly ['claude', 'codex', 'opencode', 'pi'
|
|
22
|
+
export declare const RUNNER_IDS: readonly ['claude', 'codex', 'opencode', 'pi'];
|
|
23
23
|
/** The user-selectable runners (what config/GUI expose). */
|
|
24
24
|
export type RunnerId = (typeof RUNNER_IDS)[number];
|
|
25
25
|
/** `claude-cli` is the legacy id kept so old run records still parse. */
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* server-install "at least one agent CLI" gate, the CLI-handoff registry) rather than repeating
|
|
19
19
|
* the literals, so adding runner #5 is a one-line change here and typecheck finds the rest.
|
|
20
20
|
*/
|
|
21
|
-
export const RUNNER_IDS = ['claude', 'codex', 'opencode', 'pi'
|
|
21
|
+
export const RUNNER_IDS = ['claude', 'codex', 'opencode', 'pi'];
|
|
22
22
|
/** Narrow an arbitrary string (a config value, a check name) to a runner id. */
|
|
23
23
|
export function isRunnerId(value) {
|
|
24
24
|
return RUNNER_IDS.includes(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAU,CAAC;AAQzE,gFAAgF;AAChF,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAQ,UAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AA+CD;;;;GAIG;AACH,MAAM,wBAAwB,GAA+C;IAC3E,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,GAAG,EAAE,IAAI;IACT,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,aAAa,EAAE,IAAI;IACnB,qBAAqB,EAAE,IAAI;IAC3B,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAiC,CAAC;AAsB3G;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,YAAgC,EAAE,UAAkB;IACtF,OAAO,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,cAAc,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;AAC/E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAuB;IAC7D,OAAO,QAAQ,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,CAAC;AAClE,CAAC;AAUD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,KAAqB;IAClD,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAI,IAAI,KAAK,CAAC,UAAU,IAAI,IAAI,CAAC;IAChE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE;QACtB,MAAM,GAAG,IAAI,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC;AACtB,CAAC"}
|
|
@@ -14,7 +14,6 @@ export async function detectEnvironment() {
|
|
|
14
14
|
probeCodex(),
|
|
15
15
|
probeOpencode(),
|
|
16
16
|
probePi(),
|
|
17
|
-
probeCursor(),
|
|
18
17
|
probeGh(),
|
|
19
18
|
probeGit(),
|
|
20
19
|
]);
|
|
@@ -118,19 +117,6 @@ async function probePi() {
|
|
|
118
117
|
};
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
|
-
async function probeCursor() {
|
|
122
|
-
if (process.env.CEZ_DRY_RUN === '1') {
|
|
123
|
-
return { name: 'cursor', available: true, version: 'mock (CEZ_DRY_RUN=1)' };
|
|
124
|
-
}
|
|
125
|
-
const bin = process.env.CEZ_CURSOR_BIN ?? 'agent';
|
|
126
|
-
try {
|
|
127
|
-
const { stdout } = await exec(bin, ['--version'], { timeout: 10_000 });
|
|
128
|
-
return { name: 'cursor', available: true, version: stdout.trim(), hint: 'Run `agent login` to connect Cursor.' };
|
|
129
|
-
}
|
|
130
|
-
catch {
|
|
131
|
-
return { name: 'cursor', available: false, hint: 'Optional: install Cursor CLI (https://cursor.com/docs/cli/installation), then run `agent login`.' };
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
120
|
async function probeGh() {
|
|
135
121
|
try {
|
|
136
122
|
const { stdout } = await exec('gh', ['auth', 'token'], { timeout: 10_000 });
|