@claudexor/schema 3.19.0 → 3.20.1

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.
Files changed (75) hide show
  1. package/dist/control-gc.d.ts +9 -0
  2. package/dist/control-gc.d.ts.map +1 -1
  3. package/dist/control-gc.js +12 -0
  4. package/dist/control-gc.js.map +1 -1
  5. package/dist/control-operation-responses.d.ts +63 -9
  6. package/dist/control-operation-responses.d.ts.map +1 -1
  7. package/dist/control-run-detail.d.ts +175 -25
  8. package/dist/control-run-detail.d.ts.map +1 -1
  9. package/dist/control-run-failure.d.ts +36 -6
  10. package/dist/control-run-failure.d.ts.map +1 -1
  11. package/dist/control-run-failure.js +1 -0
  12. package/dist/control-run-failure.js.map +1 -1
  13. package/dist/control-thread-requests.d.ts +101 -0
  14. package/dist/control-thread-requests.d.ts.map +1 -0
  15. package/dist/control-thread-requests.js +52 -0
  16. package/dist/control-thread-requests.js.map +1 -0
  17. package/dist/control.d.ts +62 -100
  18. package/dist/control.d.ts.map +1 -1
  19. package/dist/control.js +5 -42
  20. package/dist/control.js.map +1 -1
  21. package/dist/credential-profile-snapshot.d.ts +28 -14
  22. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  23. package/dist/credential-profile.d.ts +3 -0
  24. package/dist/credential-profile.d.ts.map +1 -1
  25. package/dist/credential-profile.js +2 -1
  26. package/dist/credential-profile.js.map +1 -1
  27. package/dist/events.d.ts +3 -0
  28. package/dist/events.d.ts.map +1 -1
  29. package/dist/harness-input.d.ts +20 -2
  30. package/dist/harness-input.d.ts.map +1 -1
  31. package/dist/harness-input.js +17 -6
  32. package/dist/harness-input.js.map +1 -1
  33. package/dist/harness.d.ts +41 -11
  34. package/dist/harness.d.ts.map +1 -1
  35. package/dist/harness.js +2 -2
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +1 -0
  39. package/dist/index.js.map +1 -1
  40. package/dist/mcp-run-result.d.ts +98 -14
  41. package/dist/mcp-run-result.d.ts.map +1 -1
  42. package/dist/quota.d.ts +255 -12
  43. package/dist/quota.d.ts.map +1 -1
  44. package/dist/quota.js +71 -0
  45. package/dist/quota.js.map +1 -1
  46. package/dist/setup-login.d.ts +35 -0
  47. package/dist/setup-login.d.ts.map +1 -1
  48. package/dist/setup-login.js +10 -0
  49. package/dist/setup-login.js.map +1 -1
  50. package/dist/telemetry.d.ts +76 -4
  51. package/dist/telemetry.d.ts.map +1 -1
  52. package/dist/thread.d.ts +4 -0
  53. package/dist/thread.d.ts.map +1 -1
  54. package/dist/thread.js +10 -1
  55. package/dist/thread.js.map +1 -1
  56. package/generated/ControlCredentialProfilesQueryResponse.schema.json +8 -1
  57. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +8 -1
  58. package/generated/ControlGcReceipt.schema.json +14 -0
  59. package/generated/ControlGcRequest.schema.json +4 -0
  60. package/generated/ControlQuotaResponse.schema.json +8 -1
  61. package/generated/ControlRunDetail.schema.json +105 -53
  62. package/generated/ControlRunListResponse.schema.json +105 -53
  63. package/generated/ControlRunSummary.schema.json +105 -53
  64. package/generated/ControlThread.schema.json +16 -1
  65. package/generated/ControlThreadCreateRequest.schema.json +6 -0
  66. package/generated/ControlThreadDetail.schema.json +16 -1
  67. package/generated/ControlThreadListResponse.schema.json +16 -1
  68. package/generated/ControlThreadUpdateRequest.schema.json +15 -1
  69. package/generated/HarnessEvent.schema.json +107 -54
  70. package/generated/McpRunHandleResult.schema.json +105 -53
  71. package/generated/McpRunToolResult.schema.json +105 -53
  72. package/generated/RunFailure.schema.json +105 -53
  73. package/generated/RunTelemetry.schema.json +104 -53
  74. package/generated/Thread.schema.json +16 -1
  75. package/package.json +2 -2
@@ -0,0 +1,101 @@
1
+ import { z } from "zod/v3";
2
+ export declare const ControlThreadCreateRequest: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodString>;
4
+ folder: z.ZodOptional<z.ZodString>;
5
+ scope: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
6
+ kind: z.ZodLiteral<"project">;
7
+ root: z.ZodString;
8
+ context: z.ZodDefault<z.ZodEnum<["auto"]>>;
9
+ ephemeral: z.ZodDefault<z.ZodBoolean>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ kind: "project";
12
+ root: string;
13
+ context: "auto";
14
+ ephemeral: boolean;
15
+ }, {
16
+ kind: "project";
17
+ root: string;
18
+ context?: "auto" | undefined;
19
+ ephemeral?: boolean | undefined;
20
+ }>, z.ZodObject<{
21
+ kind: z.ZodLiteral<"none">;
22
+ }, "strict", z.ZodTypeAny, {
23
+ kind: "none";
24
+ }, {
25
+ kind: "none";
26
+ }>]>>;
27
+ mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
28
+ workspace: z.ZodOptional<z.ZodEnum<["in_place", "isolated"]>>;
29
+ authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
30
+ credentialProfileId: z.ZodOptional<z.ZodString>;
31
+ primaryHarness: z.ZodOptional<z.ZodString>;
32
+ /** Sticky eligible pool for the thread; turns inherit it when unset. */
33
+ eligibleHarnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ title?: string | undefined;
37
+ folder?: string | undefined;
38
+ scope: {
39
+ kind: "project";
40
+ root: string;
41
+ context: "auto";
42
+ ephemeral: boolean;
43
+ } | {
44
+ kind: "none";
45
+ };
46
+ mode?: "agent" | "ask" | "plan" | undefined;
47
+ workspace?: "in_place" | "isolated" | undefined;
48
+ authPreference?: "api_key" | "auto" | "subscription" | undefined;
49
+ credentialProfileId?: string | undefined;
50
+ primaryHarness?: string | undefined;
51
+ eligibleHarnesses?: string[] | undefined;
52
+ access?: "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
53
+ }, {
54
+ title?: string | undefined;
55
+ folder?: string | undefined;
56
+ scope?: {
57
+ kind: "project";
58
+ root: string;
59
+ context?: "auto" | undefined;
60
+ ephemeral?: boolean | undefined;
61
+ } | {
62
+ kind: "none";
63
+ } | undefined;
64
+ mode?: "agent" | "ask" | "plan" | undefined;
65
+ workspace?: "in_place" | "isolated" | undefined;
66
+ authPreference?: "api_key" | "auto" | "subscription" | undefined;
67
+ credentialProfileId?: string | undefined;
68
+ primaryHarness?: string | undefined;
69
+ eligibleHarnesses?: string[] | undefined;
70
+ access?: "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
71
+ }>;
72
+ export type ControlThreadCreateRequest = z.infer<typeof ControlThreadCreateRequest>;
73
+ /** Mutate a thread's title, sidebar folder, open/closed state, or sticky routing
74
+ * (rename, file, archive, switch primary/pool). primaryHarness nullable => clear back to auto. */
75
+ export declare const ControlThreadUpdateRequest: z.ZodObject<{
76
+ title: z.ZodOptional<z.ZodString>;
77
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ state: z.ZodOptional<z.ZodEnum<["active", "closed"]>>;
79
+ primaryHarness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ credentialProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ eligibleHarnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82
+ access: z.ZodOptional<z.ZodNullable<z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>>>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ title?: string | undefined;
85
+ folder?: string | null | undefined;
86
+ state?: "active" | "closed" | undefined;
87
+ primaryHarness?: string | null | undefined;
88
+ credentialProfileId?: string | null | undefined;
89
+ eligibleHarnesses?: string[] | undefined;
90
+ access?: "full" | "inherit_native" | "readonly" | "workspace_write" | null | undefined;
91
+ }, {
92
+ title?: string | undefined;
93
+ folder?: string | null | undefined;
94
+ state?: "active" | "closed" | undefined;
95
+ primaryHarness?: string | null | undefined;
96
+ credentialProfileId?: string | null | undefined;
97
+ eligibleHarnesses?: string[] | undefined;
98
+ access?: "full" | "inherit_native" | "readonly" | "workspace_write" | null | undefined;
99
+ }>;
100
+ export type ControlThreadUpdateRequest = z.infer<typeof ControlThreadUpdateRequest>;
101
+ //# sourceMappingURL=control-thread-requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-thread-requests.d.ts","sourceRoot":"","sources":["../src/control-thread-requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAS3B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcnC,wEAAwE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU9B,CAAC;AAC/C,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEpF;kGACkG;AAClG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAwBpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { z } from "zod/v3";
2
+ import { AccessProfile, AuthPreference, ModeKind, NonBlankString } from "./primitives.js";
3
+ import { RunScope } from "./control-run-scope.js";
4
+ import { ThreadFolderName, WorkspaceMode } from "./thread.js";
5
+ /* Thread request bodies (POST /threads, PATCH /threads/:id). They live beside
6
+ * control.ts the way the apply request does (control-thread-apply.ts), so the
7
+ * thread contract can grow without growing that file (INV-124). */
8
+ export const ControlThreadCreateRequest = z
9
+ .object({
10
+ title: z.string().optional().describe("Initial thread title."),
11
+ folder: ThreadFolderName.optional().describe("Initial sidebar folder."),
12
+ scope: RunScope.default({ kind: "none" }),
13
+ mode: ModeKind.optional().describe("Default mode for new turns."),
14
+ workspace: WorkspaceMode.optional().describe("Workspace mode for the thread (in_place or isolated)."),
15
+ authPreference: AuthPreference.optional().describe("Per-thread auth preference override."),
16
+ credentialProfileId: NonBlankString.optional().describe("Sticky credential profile for the thread (INV-135); per-turn selection wins."),
17
+ primaryHarness: NonBlankString.optional().describe("Sticky primary harness for the thread."),
18
+ /** Sticky eligible pool for the thread; turns inherit it when unset. */
19
+ eligibleHarnesses: z
20
+ .array(NonBlankString)
21
+ .optional()
22
+ .describe("Sticky eligible harness pool; turns inherit it when unset."),
23
+ access: AccessProfile.optional().describe("Sticky write scope for the thread's write turns; omit = the repo trust default."),
24
+ })
25
+ .strict()
26
+ .describe("Request body for POST /threads.");
27
+ /** Mutate a thread's title, sidebar folder, open/closed state, or sticky routing
28
+ * (rename, file, archive, switch primary/pool). primaryHarness nullable => clear back to auto. */
29
+ export const ControlThreadUpdateRequest = z
30
+ .object({
31
+ title: z.string().optional().describe("New thread title."),
32
+ folder: ThreadFolderName.nullable()
33
+ .optional()
34
+ .describe("New sidebar folder; null moves the thread to ungrouped."),
35
+ state: z.enum(["active", "closed"]).optional().describe("New open/archive state."),
36
+ primaryHarness: NonBlankString.nullable()
37
+ .optional()
38
+ .describe("New sticky primary harness; null clears back to engine routing."),
39
+ credentialProfileId: NonBlankString.nullable()
40
+ .optional()
41
+ .describe("New sticky credential profile; null clears back to engine-default credentials."),
42
+ eligibleHarnesses: z
43
+ .array(NonBlankString)
44
+ .optional()
45
+ .describe("New sticky eligible harness pool."),
46
+ access: AccessProfile.nullable()
47
+ .optional()
48
+ .describe("New sticky write scope; null clears back to the repo trust default."),
49
+ })
50
+ .strict()
51
+ .describe("Request body for PATCH /threads/:id: rename, file into a sidebar folder, archive, or switch sticky routing.");
52
+ //# sourceMappingURL=control-thread-requests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-thread-requests.js","sourceRoot":"","sources":["../src/control-thread-requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM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M,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC1D,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE;SAChC,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAClF,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE;SACtC,QAAQ,EAAE;SACV,QAAQ,CAAC,iEAAiE,CAAC;IAC9E,mBAAmB,EAAE,cAAc,CAAC,QAAQ,EAAE;SAC3C,QAAQ,EAAE;SACV,QAAQ,CAAC,gFAAgF,CAAC;IAC7F,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,cAAc,CAAC;SACrB,QAAQ,EAAE;SACV,QAAQ,CAAC,mCAAmC,CAAC;IAChD,MAAM,EAAE,aAAa,CAAC,QAAQ,EAAE;SAC7B,QAAQ,EAAE;SACV,QAAQ,CAAC,qEAAqE,CAAC;CACnF,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CACP,6GAA6G,CAC9G,CAAC"}
package/dist/control.d.ts CHANGED
@@ -1681,7 +1681,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1681
1681
  runDir: z.ZodOptional<z.ZodString>;
1682
1682
  error: z.ZodOptional<z.ZodString>;
1683
1683
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1684
- requestRefusal: z.ZodOptional<z.ZodObject<{
1684
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1685
1685
  scope: z.ZodLiteral<"turn_text">;
1686
1686
  unit: z.ZodLiteral<"unicode_scalars">;
1687
1687
  source: z.ZodString;
@@ -1706,10 +1706,28 @@ export declare const ControlRunSummary: z.ZodObject<{
1706
1706
  limit: number | null;
1707
1707
  actual: number | null;
1708
1708
  native_code: string;
1709
- }>>;
1709
+ }>, z.ZodObject<{
1710
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
1711
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
1712
+ source: z.ZodLiteral<"claude_stdout">;
1713
+ binary_path: z.ZodNullable<z.ZodString>;
1714
+ installed_version: z.ZodNullable<z.ZodString>;
1715
+ }, "strip", z.ZodTypeAny, {
1716
+ kind: "vendor_cli_too_old";
1717
+ native_code: "claude_code_version_too_old";
1718
+ source: "claude_stdout";
1719
+ binary_path: string | null;
1720
+ installed_version: string | null;
1721
+ }, {
1722
+ kind: "vendor_cli_too_old";
1723
+ native_code: "claude_code_version_too_old";
1724
+ source: "claude_stdout";
1725
+ binary_path: string | null;
1726
+ installed_version: string | null;
1727
+ }>]>>;
1710
1728
  phase: z.ZodDefault<z.ZodString>;
1711
1729
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
1712
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
1730
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
1713
1731
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1714
1732
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1715
1733
  safeMessage: z.ZodString;
@@ -1741,10 +1759,16 @@ export declare const ControlRunSummary: z.ZodObject<{
1741
1759
  limit: number | null;
1742
1760
  actual: number | null;
1743
1761
  native_code: string;
1762
+ } | {
1763
+ kind: "vendor_cli_too_old";
1764
+ native_code: "claude_code_version_too_old";
1765
+ source: "claude_stdout";
1766
+ binary_path: string | null;
1767
+ installed_version: string | null;
1744
1768
  } | undefined;
1745
1769
  phase: string;
1746
1770
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1747
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
1771
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
1748
1772
  harnessId: string | null;
1749
1773
  attemptId: string | null;
1750
1774
  safeMessage: string;
@@ -1768,10 +1792,16 @@ export declare const ControlRunSummary: z.ZodObject<{
1768
1792
  limit: number | null;
1769
1793
  actual: number | null;
1770
1794
  native_code: string;
1795
+ } | {
1796
+ kind: "vendor_cli_too_old";
1797
+ native_code: "claude_code_version_too_old";
1798
+ source: "claude_stdout";
1799
+ binary_path: string | null;
1800
+ installed_version: string | null;
1771
1801
  } | undefined;
1772
1802
  phase?: string | undefined;
1773
1803
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1774
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
1804
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
1775
1805
  harnessId?: string | null | undefined;
1776
1806
  attemptId?: string | null | undefined;
1777
1807
  safeMessage: string;
@@ -2253,10 +2283,16 @@ export declare const ControlRunSummary: z.ZodObject<{
2253
2283
  limit: number | null;
2254
2284
  actual: number | null;
2255
2285
  native_code: string;
2286
+ } | {
2287
+ kind: "vendor_cli_too_old";
2288
+ native_code: "claude_code_version_too_old";
2289
+ source: "claude_stdout";
2290
+ binary_path: string | null;
2291
+ installed_version: string | null;
2256
2292
  } | undefined;
2257
2293
  phase: string;
2258
2294
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2259
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
2295
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
2260
2296
  harnessId: string | null;
2261
2297
  attemptId: string | null;
2262
2298
  safeMessage: string;
@@ -2445,10 +2481,16 @@ export declare const ControlRunSummary: z.ZodObject<{
2445
2481
  limit: number | null;
2446
2482
  actual: number | null;
2447
2483
  native_code: string;
2484
+ } | {
2485
+ kind: "vendor_cli_too_old";
2486
+ native_code: "claude_code_version_too_old";
2487
+ source: "claude_stdout";
2488
+ binary_path: string | null;
2489
+ installed_version: string | null;
2448
2490
  } | undefined;
2449
2491
  phase?: string | undefined;
2450
2492
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
2451
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
2493
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
2452
2494
  harnessId?: string | null | undefined;
2453
2495
  attemptId?: string | null | undefined;
2454
2496
  safeMessage: string;
@@ -3113,6 +3155,7 @@ export type ControlRunDecisionResponse = z.infer<typeof ControlRunDecisionRespon
3113
3155
  export declare const ControlThread: z.ZodObject<{
3114
3156
  id: z.ZodString;
3115
3157
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3158
+ folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3116
3159
  repoRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3117
3160
  mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
3118
3161
  /** How turns touch files (in-place live tree vs isolated worktree). */
@@ -3138,6 +3181,7 @@ export declare const ControlThread: z.ZodObject<{
3138
3181
  }, "strip", z.ZodTypeAny, {
3139
3182
  id: string;
3140
3183
  title: string | null;
3184
+ folder: string | null;
3141
3185
  repoRoot: string | null;
3142
3186
  mode?: "agent" | "ask" | "plan" | undefined;
3143
3187
  workspaceMode: "in_place" | "isolated";
@@ -3157,6 +3201,7 @@ export declare const ControlThread: z.ZodObject<{
3157
3201
  }, {
3158
3202
  id: string;
3159
3203
  title?: string | null | undefined;
3204
+ folder?: string | null | undefined;
3160
3205
  repoRoot?: string | null | undefined;
3161
3206
  mode?: "agent" | "ask" | "plan" | undefined;
3162
3207
  workspaceMode?: "in_place" | "isolated" | undefined;
@@ -3994,99 +4039,6 @@ export declare const ControlThreadTurn: z.ZodObject<{
3994
4039
  createdAt: string;
3995
4040
  }>;
3996
4041
  export type ControlThreadTurn = z.infer<typeof ControlThreadTurn>;
3997
- export declare const ControlThreadCreateRequest: z.ZodObject<{
3998
- title: z.ZodOptional<z.ZodString>;
3999
- scope: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4000
- kind: z.ZodLiteral<"project">;
4001
- root: z.ZodString;
4002
- context: z.ZodDefault<z.ZodEnum<["auto"]>>;
4003
- ephemeral: z.ZodDefault<z.ZodBoolean>;
4004
- }, "strict", z.ZodTypeAny, {
4005
- kind: "project";
4006
- root: string;
4007
- context: "auto";
4008
- ephemeral: boolean;
4009
- }, {
4010
- kind: "project";
4011
- root: string;
4012
- context?: "auto" | undefined;
4013
- ephemeral?: boolean | undefined;
4014
- }>, z.ZodObject<{
4015
- kind: z.ZodLiteral<"none">;
4016
- }, "strict", z.ZodTypeAny, {
4017
- kind: "none";
4018
- }, {
4019
- kind: "none";
4020
- }>]>>;
4021
- mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
4022
- workspace: z.ZodOptional<z.ZodEnum<["in_place", "isolated"]>>;
4023
- authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
4024
- credentialProfileId: z.ZodOptional<z.ZodString>;
4025
- primaryHarness: z.ZodOptional<z.ZodString>;
4026
- /** Sticky eligible pool for the thread; turns inherit it when unset. */
4027
- eligibleHarnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4028
- access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>>;
4029
- }, "strict", z.ZodTypeAny, {
4030
- title?: string | undefined;
4031
- scope: {
4032
- kind: "project";
4033
- root: string;
4034
- context: "auto";
4035
- ephemeral: boolean;
4036
- } | {
4037
- kind: "none";
4038
- };
4039
- mode?: "agent" | "ask" | "plan" | undefined;
4040
- workspace?: "in_place" | "isolated" | undefined;
4041
- authPreference?: "api_key" | "auto" | "subscription" | undefined;
4042
- credentialProfileId?: string | undefined;
4043
- primaryHarness?: string | undefined;
4044
- eligibleHarnesses?: string[] | undefined;
4045
- access?: "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
4046
- }, {
4047
- title?: string | undefined;
4048
- scope?: {
4049
- kind: "project";
4050
- root: string;
4051
- context?: "auto" | undefined;
4052
- ephemeral?: boolean | undefined;
4053
- } | {
4054
- kind: "none";
4055
- } | undefined;
4056
- mode?: "agent" | "ask" | "plan" | undefined;
4057
- workspace?: "in_place" | "isolated" | undefined;
4058
- authPreference?: "api_key" | "auto" | "subscription" | undefined;
4059
- credentialProfileId?: string | undefined;
4060
- primaryHarness?: string | undefined;
4061
- eligibleHarnesses?: string[] | undefined;
4062
- access?: "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
4063
- }>;
4064
- export type ControlThreadCreateRequest = z.infer<typeof ControlThreadCreateRequest>;
4065
- /** Mutate a thread's title, open/closed state, or sticky routing (rename,
4066
- * archive, switch primary/pool). primaryHarness nullable => clear back to auto. */
4067
- export declare const ControlThreadUpdateRequest: z.ZodObject<{
4068
- title: z.ZodOptional<z.ZodString>;
4069
- state: z.ZodOptional<z.ZodEnum<["active", "closed"]>>;
4070
- primaryHarness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4071
- credentialProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4072
- eligibleHarnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4073
- access: z.ZodOptional<z.ZodNullable<z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>>>;
4074
- }, "strict", z.ZodTypeAny, {
4075
- title?: string | undefined;
4076
- state?: "active" | "closed" | undefined;
4077
- primaryHarness?: string | null | undefined;
4078
- credentialProfileId?: string | null | undefined;
4079
- eligibleHarnesses?: string[] | undefined;
4080
- access?: "full" | "inherit_native" | "readonly" | "workspace_write" | null | undefined;
4081
- }, {
4082
- title?: string | undefined;
4083
- state?: "active" | "closed" | undefined;
4084
- primaryHarness?: string | null | undefined;
4085
- credentialProfileId?: string | null | undefined;
4086
- eligibleHarnesses?: string[] | undefined;
4087
- access?: "full" | "inherit_native" | "readonly" | "workspace_write" | null | undefined;
4088
- }>;
4089
- export type ControlThreadUpdateRequest = z.infer<typeof ControlThreadUpdateRequest>;
4090
4042
  /** A registered project skipped during thread listing because its root is no
4091
4043
  * longer usable (F2 resilience): disclosed per-project so a dead root
4092
4044
  * never 400s the whole listing rather than silently dropping its threads. */
@@ -4111,6 +4063,7 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4111
4063
  threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
4112
4064
  id: z.ZodString;
4113
4065
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4066
+ folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4114
4067
  repoRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4115
4068
  mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
4116
4069
  /** How turns touch files (in-place live tree vs isolated worktree). */
@@ -4136,6 +4089,7 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4136
4089
  }, "strip", z.ZodTypeAny, {
4137
4090
  id: string;
4138
4091
  title: string | null;
4092
+ folder: string | null;
4139
4093
  repoRoot: string | null;
4140
4094
  mode?: "agent" | "ask" | "plan" | undefined;
4141
4095
  workspaceMode: "in_place" | "isolated";
@@ -4155,6 +4109,7 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4155
4109
  }, {
4156
4110
  id: string;
4157
4111
  title?: string | null | undefined;
4112
+ folder?: string | null | undefined;
4158
4113
  repoRoot?: string | null | undefined;
4159
4114
  mode?: "agent" | "ask" | "plan" | undefined;
4160
4115
  workspaceMode?: "in_place" | "isolated" | undefined;
@@ -4192,6 +4147,7 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4192
4147
  threads: {
4193
4148
  id: string;
4194
4149
  title: string | null;
4150
+ folder: string | null;
4195
4151
  repoRoot: string | null;
4196
4152
  mode?: "agent" | "ask" | "plan" | undefined;
4197
4153
  workspaceMode: "in_place" | "isolated";
@@ -4219,6 +4175,7 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4219
4175
  threads?: {
4220
4176
  id: string;
4221
4177
  title?: string | null | undefined;
4178
+ folder?: string | null | undefined;
4222
4179
  repoRoot?: string | null | undefined;
4223
4180
  mode?: "agent" | "ask" | "plan" | undefined;
4224
4181
  workspaceMode?: "in_place" | "isolated" | undefined;
@@ -4248,6 +4205,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4248
4205
  thread: z.ZodObject<{
4249
4206
  id: z.ZodString;
4250
4207
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4208
+ folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4251
4209
  repoRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4252
4210
  mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
4253
4211
  /** How turns touch files (in-place live tree vs isolated worktree). */
@@ -4273,6 +4231,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4273
4231
  }, "strip", z.ZodTypeAny, {
4274
4232
  id: string;
4275
4233
  title: string | null;
4234
+ folder: string | null;
4276
4235
  repoRoot: string | null;
4277
4236
  mode?: "agent" | "ask" | "plan" | undefined;
4278
4237
  workspaceMode: "in_place" | "isolated";
@@ -4292,6 +4251,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4292
4251
  }, {
4293
4252
  id: string;
4294
4253
  title?: string | null | undefined;
4254
+ folder?: string | null | undefined;
4295
4255
  repoRoot?: string | null | undefined;
4296
4256
  mode?: "agent" | "ask" | "plan" | undefined;
4297
4257
  workspaceMode?: "in_place" | "isolated" | undefined;
@@ -4855,6 +4815,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4855
4815
  thread: {
4856
4816
  id: string;
4857
4817
  title: string | null;
4818
+ folder: string | null;
4858
4819
  repoRoot: string | null;
4859
4820
  mode?: "agent" | "ask" | "plan" | undefined;
4860
4821
  workspaceMode: "in_place" | "isolated";
@@ -4965,6 +4926,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4965
4926
  thread: {
4966
4927
  id: string;
4967
4928
  title?: string | null | undefined;
4929
+ folder?: string | null | undefined;
4968
4930
  repoRoot?: string | null | undefined;
4969
4931
  mode?: "agent" | "ask" | "plan" | undefined;
4970
4932
  workspaceMode?: "in_place" | "isolated" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../src/control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAoB3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAiBlD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,eAAO,MAAM,yBAAyB;IAElC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ACmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCiB,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
package/dist/control.js CHANGED
@@ -5,7 +5,7 @@ import { PaidBudget, PaidFallback, QualityTierSet, RouteRankingRationale, Routin
5
5
  export { ControlQuotaResponse } from "./quota.js";
6
6
  import { RunOutcomeFacts } from "./decision.js";
7
7
  import { EffortHint, InputTokenUsage, InteractionQuestion } from "./harness.js";
8
- import { ContinuityKind, ThreadState, ThreadTurnKind, WorkspaceMode } from "./thread.js";
8
+ import { ContinuityKind, ThreadFolderName, ThreadState, ThreadTurnKind, WorkspaceMode, } from "./thread.js";
9
9
  import { ResourceAttachmentRef } from "./attachment.js";
10
10
  import { RequestRequirementResolution } from "./request-requirements.js";
11
11
  import { ProtectedPathApproval, TestCommandInvocation } from "./task.js";
@@ -832,6 +832,9 @@ export const ControlThread = z
832
832
  .object({
833
833
  id: Id.describe("Thread id."),
834
834
  title: z.string().nullable().default(null).describe("Thread title; null until set."),
835
+ folder: ThreadFolderName.nullable()
836
+ .default(null)
837
+ .describe("Optional sidebar folder; null means ungrouped."),
835
838
  repoRoot: z
836
839
  .string()
837
840
  .nullable()
@@ -862,7 +865,7 @@ export const ControlThread = z
862
865
  .describe("Sticky write scope for write turns; null = the repo trust default."),
863
866
  state: ThreadState.default("active"),
864
867
  trashedAt: z.string().nullable().default(null).describe("When the thread entered trash."),
865
- purgeAfter: z.string().nullable().default(null).describe("When trash retention expires."),
868
+ purgeAfter: z.string().nullable().default(null).describe("Restore deadline, then auto-purge."),
866
869
  runIds: z.array(Id).default([]).describe("Ordered run lineage of the thread."),
867
870
  headRunId: Id.nullable()
868
871
  .default(null)
@@ -1042,46 +1045,6 @@ export const ControlThreadTurn = z
1042
1045
  createdAt: z.string().describe("When the turn was created."),
1043
1046
  })
1044
1047
  .describe("Control-plane projection of one thread turn with its embedded run card.");
1045
- export const ControlThreadCreateRequest = z
1046
- .object({
1047
- title: z.string().optional().describe("Initial thread title."),
1048
- scope: RunScope.default({ kind: "none" }),
1049
- mode: ModeKind.optional().describe("Default mode for new turns."),
1050
- workspace: WorkspaceMode.optional().describe("Workspace mode for the thread (in_place or isolated)."),
1051
- authPreference: AuthPreference.optional().describe("Per-thread auth preference override."),
1052
- credentialProfileId: NonBlankString.optional().describe("Sticky credential profile for the thread (INV-135); per-turn selection wins."),
1053
- primaryHarness: NonBlankString.optional().describe("Sticky primary harness for the thread."),
1054
- /** Sticky eligible pool for the thread; turns inherit it when unset. */
1055
- eligibleHarnesses: z
1056
- .array(NonBlankString)
1057
- .optional()
1058
- .describe("Sticky eligible harness pool; turns inherit it when unset."),
1059
- access: AccessProfile.optional().describe("Sticky write scope for the thread's write turns; omit = the repo trust default."),
1060
- })
1061
- .strict()
1062
- .describe("Request body for POST /threads.");
1063
- /** Mutate a thread's title, open/closed state, or sticky routing (rename,
1064
- * archive, switch primary/pool). primaryHarness nullable => clear back to auto. */
1065
- export const ControlThreadUpdateRequest = z
1066
- .object({
1067
- title: z.string().optional().describe("New thread title."),
1068
- state: z.enum(["active", "closed"]).optional().describe("New open/archive state."),
1069
- primaryHarness: NonBlankString.nullable()
1070
- .optional()
1071
- .describe("New sticky primary harness; null clears back to engine routing."),
1072
- credentialProfileId: NonBlankString.nullable()
1073
- .optional()
1074
- .describe("New sticky credential profile; null clears back to engine-default credentials."),
1075
- eligibleHarnesses: z
1076
- .array(NonBlankString)
1077
- .optional()
1078
- .describe("New sticky eligible harness pool."),
1079
- access: AccessProfile.nullable()
1080
- .optional()
1081
- .describe("New sticky write scope; null clears back to the repo trust default."),
1082
- })
1083
- .strict()
1084
- .describe("Request body for PATCH /threads/:id: rename, archive, or switch sticky routing.");
1085
1048
  /** A registered project skipped during thread listing because its root is no
1086
1049
  * longer usable (F2 resilience): disclosed per-project so a dead root
1087
1050
  * never 400s the whole listing rather than silently dropping its threads. */