@claudexor/schema 1.0.0

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 (175) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/dist/agent-capabilities.d.ts +366 -0
  4. package/dist/agent-capabilities.d.ts.map +1 -0
  5. package/dist/agent-capabilities.js +125 -0
  6. package/dist/agent-capabilities.js.map +1 -0
  7. package/dist/apply-eligibility.d.ts +76 -0
  8. package/dist/apply-eligibility.d.ts.map +1 -0
  9. package/dist/apply-eligibility.js +37 -0
  10. package/dist/apply-eligibility.js.map +1 -0
  11. package/dist/attachment.d.ts +69 -0
  12. package/dist/attachment.d.ts.map +1 -0
  13. package/dist/attachment.js +54 -0
  14. package/dist/attachment.js.map +1 -0
  15. package/dist/budget.d.ts +75 -0
  16. package/dist/budget.d.ts.map +1 -0
  17. package/dist/budget.js +54 -0
  18. package/dist/budget.js.map +1 -0
  19. package/dist/config.d.ts +743 -0
  20. package/dist/config.d.ts.map +1 -0
  21. package/dist/config.js +194 -0
  22. package/dist/config.js.map +1 -0
  23. package/dist/context.d.ts +222 -0
  24. package/dist/context.d.ts.map +1 -0
  25. package/dist/context.js +70 -0
  26. package/dist/context.js.map +1 -0
  27. package/dist/control-run-detail.d.ts +1686 -0
  28. package/dist/control-run-detail.d.ts.map +1 -0
  29. package/dist/control-run-detail.js +107 -0
  30. package/dist/control-run-detail.js.map +1 -0
  31. package/dist/control-trust.d.ts +79 -0
  32. package/dist/control-trust.d.ts.map +1 -0
  33. package/dist/control-trust.js +39 -0
  34. package/dist/control-trust.js.map +1 -0
  35. package/dist/control.d.ts +4226 -0
  36. package/dist/control.d.ts.map +1 -0
  37. package/dist/control.js +1022 -0
  38. package/dist/control.js.map +1 -0
  39. package/dist/decision.d.ts +208 -0
  40. package/dist/decision.d.ts.map +1 -0
  41. package/dist/decision.js +98 -0
  42. package/dist/decision.js.map +1 -0
  43. package/dist/events.d.ts +70 -0
  44. package/dist/events.d.ts.map +1 -0
  45. package/dist/events.js +105 -0
  46. package/dist/events.js.map +1 -0
  47. package/dist/gate.d.ts +37 -0
  48. package/dist/gate.d.ts.map +1 -0
  49. package/dist/gate.js +20 -0
  50. package/dist/gate.js.map +1 -0
  51. package/dist/harness.d.ts +1418 -0
  52. package/dist/harness.d.ts.map +1 -0
  53. package/dist/harness.js +552 -0
  54. package/dist/harness.js.map +1 -0
  55. package/dist/index.d.ts +32 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +32 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/orchestrate.d.ts +428 -0
  60. package/dist/orchestrate.d.ts.map +1 -0
  61. package/dist/orchestrate.js +246 -0
  62. package/dist/orchestrate.js.map +1 -0
  63. package/dist/primitives.d.ts +71 -0
  64. package/dist/primitives.d.ts.map +1 -0
  65. package/dist/primitives.js +114 -0
  66. package/dist/primitives.js.map +1 -0
  67. package/dist/review.d.ts +220 -0
  68. package/dist/review.d.ts.map +1 -0
  69. package/dist/review.js +91 -0
  70. package/dist/review.js.map +1 -0
  71. package/dist/route.d.ts +67 -0
  72. package/dist/route.d.ts.map +1 -0
  73. package/dist/route.js +33 -0
  74. package/dist/route.js.map +1 -0
  75. package/dist/spec.d.ts +561 -0
  76. package/dist/spec.d.ts.map +1 -0
  77. package/dist/spec.js +133 -0
  78. package/dist/spec.js.map +1 -0
  79. package/dist/surface-run-controls.d.ts +14 -0
  80. package/dist/surface-run-controls.d.ts.map +1 -0
  81. package/dist/surface-run-controls.js +142 -0
  82. package/dist/surface-run-controls.js.map +1 -0
  83. package/dist/task.d.ts +565 -0
  84. package/dist/task.d.ts.map +1 -0
  85. package/dist/task.js +186 -0
  86. package/dist/task.js.map +1 -0
  87. package/dist/telemetry.d.ts +660 -0
  88. package/dist/telemetry.d.ts.map +1 -0
  89. package/dist/telemetry.js +140 -0
  90. package/dist/telemetry.js.map +1 -0
  91. package/dist/thread.d.ts +348 -0
  92. package/dist/thread.d.ts.map +1 -0
  93. package/dist/thread.js +194 -0
  94. package/dist/thread.js.map +1 -0
  95. package/dist/workproduct.d.ts +31 -0
  96. package/dist/workproduct.d.ts.map +1 -0
  97. package/dist/workproduct.js +25 -0
  98. package/dist/workproduct.js.map +1 -0
  99. package/dist/workspace.d.ts +53 -0
  100. package/dist/workspace.d.ts.map +1 -0
  101. package/dist/workspace.js +30 -0
  102. package/dist/workspace.js.map +1 -0
  103. package/generated/AgentCapabilityCatalog.schema.json +389 -0
  104. package/generated/ApplyEligibility.schema.json +44 -0
  105. package/generated/BudgetLease.schema.json +95 -0
  106. package/generated/BudgetObservation.schema.json +76 -0
  107. package/generated/ConformanceReport.schema.json +107 -0
  108. package/generated/ContextPack.schema.json +186 -0
  109. package/generated/ControlApplyCheckRequest.schema.json +54 -0
  110. package/generated/ControlApplyRequest.schema.json +74 -0
  111. package/generated/ControlHarnessListResponse.schema.json +498 -0
  112. package/generated/ControlHarnessModelsResponse.schema.json +78 -0
  113. package/generated/ControlHarnessSettingsPatch.schema.json +130 -0
  114. package/generated/ControlInteractionAnswerRequest.schema.json +48 -0
  115. package/generated/ControlInteractionAnswerResponse.schema.json +35 -0
  116. package/generated/ControlPendingInteraction.schema.json +129 -0
  117. package/generated/ControlQueuedRunInfo.schema.json +44 -0
  118. package/generated/ControlRunControlRequest.schema.json +61 -0
  119. package/generated/ControlRunControlResponse.schema.json +40 -0
  120. package/generated/ControlRunDecisionRequest.schema.json +98 -0
  121. package/generated/ControlRunDecisionResponse.schema.json +40 -0
  122. package/generated/ControlRunDetail.schema.json +1925 -0
  123. package/generated/ControlRunStartInfo.schema.json +33 -0
  124. package/generated/ControlRunStartRequest.schema.json +429 -0
  125. package/generated/ControlRunSummary.schema.json +666 -0
  126. package/generated/ControlSecretListResponse.schema.json +57 -0
  127. package/generated/ControlSettingsSnapshot.schema.json +281 -0
  128. package/generated/ControlSettingsUpdateRequest.schema.json +212 -0
  129. package/generated/ControlSetupJob.schema.json +148 -0
  130. package/generated/ControlSetupJobConfirmRequest.schema.json +18 -0
  131. package/generated/ControlSetupJobCreateRequest.schema.json +38 -0
  132. package/generated/ControlSetupJobEvent.schema.json +58 -0
  133. package/generated/ControlSetupJobListResponse.schema.json +162 -0
  134. package/generated/ControlSpecFreezeRequest.schema.json +83 -0
  135. package/generated/ControlSpecQuestionsRequest.schema.json +80 -0
  136. package/generated/ControlThread.schema.json +129 -0
  137. package/generated/ControlThreadApplyRequest.schema.json +32 -0
  138. package/generated/ControlThreadApplyResponse.schema.json +47 -0
  139. package/generated/ControlThreadCreateRequest.schema.json +107 -0
  140. package/generated/ControlThreadDetail.schema.json +515 -0
  141. package/generated/ControlThreadListResponse.schema.json +141 -0
  142. package/generated/ControlThreadUpdateRequest.schema.json +46 -0
  143. package/generated/ControlTrustListResponse.schema.json +59 -0
  144. package/generated/ControlTrustState.schema.json +45 -0
  145. package/generated/ControlTrustUpdateRequest.schema.json +26 -0
  146. package/generated/DecisionRecord.schema.json +232 -0
  147. package/generated/GateResult.schema.json +81 -0
  148. package/generated/GlobalConfig.schema.json +313 -0
  149. package/generated/HarnessEvent.schema.json +360 -0
  150. package/generated/HarnessManifest.schema.json +350 -0
  151. package/generated/HarnessModel.schema.json +41 -0
  152. package/generated/HarnessStatusDto.schema.json +486 -0
  153. package/generated/McpRunToolResult.schema.json +91 -0
  154. package/generated/OrchestrateContract.schema.json +93 -0
  155. package/generated/OrchestratePlan.schema.json +244 -0
  156. package/generated/OrchestratePlanProgress.schema.json +103 -0
  157. package/generated/ProjectConfig.schema.json +95 -0
  158. package/generated/ReviewFinding.schema.json +226 -0
  159. package/generated/RouteFallbackPayload.schema.json +79 -0
  160. package/generated/RouteProof.schema.json +111 -0
  161. package/generated/RunControl.schema.json +51 -0
  162. package/generated/RunEvent.schema.json +103 -0
  163. package/generated/RunFailure.schema.json +98 -0
  164. package/generated/RunTelemetry.schema.json +433 -0
  165. package/generated/SecretMetadata.schema.json +34 -0
  166. package/generated/Session.schema.json +80 -0
  167. package/generated/SessionReboundLineage.schema.json +73 -0
  168. package/generated/SpecPack.schema.json +372 -0
  169. package/generated/TaskContract.schema.json +501 -0
  170. package/generated/Thread.schema.json +176 -0
  171. package/generated/ThreadTurn.schema.json +172 -0
  172. package/generated/TrustConfig.schema.json +44 -0
  173. package/generated/WorkProduct.schema.json +60 -0
  174. package/generated/WorkspaceEnvelope.schema.json +94 -0
  175. package/package.json +43 -0
@@ -0,0 +1,140 @@
1
+ import { z } from "zod";
2
+ import { AccessProfile, ExternalContextPolicy, Id, IsoTimestamp, ModeKind, SchemaVersion, } from "./primitives.js";
3
+ import { ToolKind } from "./harness.js";
4
+ /**
5
+ * Run telemetry artifact (`final/telemetry.yaml`).
6
+ *
7
+ * The orchestrator is the ONLY computer of web/tool evidence. Surfaces
8
+ * (control-api, CLI, app) project this artifact; they must not re-derive
9
+ * evidence from raw events. Legacy runs without the artifact render an honest
10
+ * "telemetry unavailable" state instead of a recomputed guess.
11
+ */
12
+ export const WebEvidenceStatus = z
13
+ .enum(["none", "attempted", "satisfied", "failed", "unverified"])
14
+ .describe("Web-evidence verdict for an attempt/run: none (no web activity), attempted, satisfied (required evidence produced), failed, or unverified.");
15
+ export const WebEvidenceRecord = z
16
+ .object({
17
+ required: z.boolean().default(false).describe("Whether the run required web evidence."),
18
+ /** Requested policy for the run. */
19
+ policy: ExternalContextPolicy.default("auto").describe("Requested web policy for the run."),
20
+ /** Mode actually executed by the harness route (e.g. claude `cached` upgrades to `live`, disclosed). */
21
+ effective_mode: ExternalContextPolicy.default("auto").describe("Policy actually executed by the harness route (disclosed upgrades, e.g. cached to live)."),
22
+ attempted: z.boolean().default(false).describe("Whether any web activity was attempted."),
23
+ satisfied: z.boolean().default(false).describe("Whether the web-evidence requirement was satisfied."),
24
+ status: WebEvidenceStatus.default("none"),
25
+ tool: z.string().nullable().default(null).describe("Web tool that produced the evidence, when any."),
26
+ target: z.string().nullable().default(null).describe("Redacted target (query/url) of the web activity, when any."),
27
+ error_summary: z.string().nullable().default(null).describe("Redacted error detail when web activity failed."),
28
+ })
29
+ .describe("Typed web-evidence record computed by the orchestrator; surfaces project it and never re-derive evidence from raw events.");
30
+ export const ToolErrorRecord = z
31
+ .object({
32
+ tool: z.string().describe("Native tool name that errored."),
33
+ kind: ToolKind.default("other"),
34
+ target: z.string().nullable().default(null).describe("Redacted target of the tool use, when known."),
35
+ summary: z.string().describe("Redacted error summary."),
36
+ /** True when a later successful result of the same tool exists in the same attempt. */
37
+ recovered: z.boolean().default(false).describe("True when a later successful result of the same tool exists in the same attempt."),
38
+ tool_use_id: z.string().nullable().default(null).describe("Tool use id correlating the error to its call, when known."),
39
+ })
40
+ .describe("One tool error observed during an attempt.");
41
+ export const TransientFailureRecord = z
42
+ .object({
43
+ kind: z
44
+ .enum(["network", "stream_disconnect", "service_unavailable", "timeout", "unknown"])
45
+ .default("unknown")
46
+ .describe("Kind of transient failure."),
47
+ retry_delay_ms: z.number().int().nonnegative().nullable().default(null).describe("Suggested retry delay in milliseconds, when reported."),
48
+ })
49
+ .describe("An adapter-declared transient failure that informed bounded retry policy.");
50
+ export const AttemptOutcomeStatus = z
51
+ .enum(["success", "success_with_warnings", "blocked", "failed"])
52
+ .describe("Outcome of one attempt: success, success_with_warnings, blocked, or failed.");
53
+ /**
54
+ * Contract/outcome truth for one attempt. Tool errors are tracked separately
55
+ * from whether the attempt produced the work product the intent asked for.
56
+ */
57
+ export const AttemptOutcome = z
58
+ .object({
59
+ deliverable_present: z.boolean().default(false).describe("Whether the attempt produced the deliverable the intent asked for."),
60
+ gates_passed: z.boolean().nullable().default(null).describe("Whether deterministic gates passed; null when no gates ran."),
61
+ harness_errored: z.boolean().default(false).describe("Whether the harness itself errored."),
62
+ web_required_unsatisfied: z.boolean().default(false).describe("True when required web evidence was not satisfied."),
63
+ tool_warnings_count: z.number().int().nonnegative().default(0).describe("Count of tool warnings in the attempt."),
64
+ status: AttemptOutcomeStatus.default("success"),
65
+ })
66
+ .describe("Contract/outcome truth for one attempt; tool errors are tracked separately from deliverable production.");
67
+ export const AttemptTelemetryRecord = z
68
+ .object({
69
+ attempt_id: Id.describe("Attempt id."),
70
+ harness_id: Id.describe("Harness that ran the attempt."),
71
+ /**
72
+ * Model identity the harness stream actually reported (route evidence).
73
+ * Null when the stream never disclosed one; surfaces must render that as
74
+ * unverified, never as a guess.
75
+ */
76
+ observed_model: z
77
+ .string()
78
+ .nullable()
79
+ .default(null)
80
+ .describe("Model the harness stream actually reported; null when never disclosed (rendered as unverified, never guessed)."),
81
+ web: WebEvidenceRecord,
82
+ /** Bounded by the writer (most recent first when truncated; `tool_errors_total` keeps the true count). */
83
+ tool_errors: z
84
+ .array(ToolErrorRecord)
85
+ .default([])
86
+ .describe("Tool errors, bounded by the writer (most recent first when truncated; tool_errors_total keeps the true count)."),
87
+ tool_errors_total: z.number().int().nonnegative().default(0).describe("True total count of tool errors."),
88
+ unrecovered_tool_errors: z.number().int().nonnegative().default(0).describe("Tool errors with no later successful recovery."),
89
+ /** tool_result events that arrived WITHOUT a status field (never treated as ok). */
90
+ statusless_tool_results: z
91
+ .number()
92
+ .int()
93
+ .nonnegative()
94
+ .default(0)
95
+ .describe("tool_result events that arrived without a status field (never treated as ok)."),
96
+ /** Native lines/events the adapter could not parse or did not recognize (never silently zero). */
97
+ dropped_events: z
98
+ .number()
99
+ .int()
100
+ .nonnegative()
101
+ .default(0)
102
+ .describe("Native lines/events the adapter could not parse or did not recognize (never silently zero)."),
103
+ /** Adapter-declared transient failures that informed bounded retry policy. */
104
+ transient_failures: z
105
+ .array(TransientFailureRecord)
106
+ .default([])
107
+ .describe("Adapter-declared transient failures that informed bounded retry policy."),
108
+ /** Contract/outcome projection for this attempt. */
109
+ outcome: AttemptOutcome.default({}),
110
+ })
111
+ .describe("Telemetry for one attempt: route evidence, web evidence, tool errors, dropped events, and outcome.");
112
+ export const RunTelemetry = z
113
+ .object({
114
+ schema_version: SchemaVersion,
115
+ run_id: Id.describe("Run the telemetry belongs to."),
116
+ task_id: Id.describe("Task the run belongs to."),
117
+ mode: ModeKind,
118
+ requested_access: AccessProfile.describe("Access profile the caller requested."),
119
+ effective_access: AccessProfile.describe("Access profile actually enforced by the engine."),
120
+ external_context_policy: ExternalContextPolicy.describe("Requested web policy for the run."),
121
+ effective_web_mode: ExternalContextPolicy.describe("Web policy actually executed by the selected route."),
122
+ web_required: z.boolean().default(false).describe("Whether the run required web evidence."),
123
+ /** Attempt whose output became the final answer/patch; null when no attempt succeeded. */
124
+ final_attempt_id: Id.nullable()
125
+ .default(null)
126
+ .describe("Attempt whose output became the final answer/patch; null when no attempt succeeded."),
127
+ /** Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence. */
128
+ web: WebEvidenceRecord.describe("Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence."),
129
+ attempts: z.array(AttemptTelemetryRecord).default([]).describe("Per-attempt telemetry records."),
130
+ /** Sum of attempt outcome warnings; surfaces render this separately from terminal state. */
131
+ tool_warnings_total: z
132
+ .number()
133
+ .int()
134
+ .nonnegative()
135
+ .default(0)
136
+ .describe("Sum of attempt tool warnings; rendered separately from terminal state."),
137
+ generated_at: IsoTimestamp.describe("When the telemetry artifact was generated."),
138
+ })
139
+ .describe("Run telemetry artifact (final/telemetry.yaml), the single computed source of web/tool evidence; surfaces project it and never re-derive evidence from raw events.");
140
+ //# sourceMappingURL=telemetry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,EAAE,EACF,YAAY,EACZ,QAAQ,EACR,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,IAAI,CAAC,CAAC,MAAM,EAAE,WAA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D,CAAC;IAC3F,uBAAuB,EAAE,qBAAqB,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAC5F,kBAAkB,EAAE,qBAAqB,CAAC,QAAQ,CAAC,qDAAqD,CAAC;IACzG,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IAC3F,0FAA0F;IAC1F,gBAAgB,EAAE,EAAE,CAAC,QAAQ,EAAE;SAC5B,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,qFAAqF,CAAC;IAClG,mGAAmG;IACnG,GAAG,EAAE,iBAAiB,CAAC,QAAQ,CAAC,8FAA8F,CAAC;IAC/H,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAChG,4FAA4F;IAC5F,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,OAAO,CAAC,CAAC,CAAC;SACV,QAAQ,CAAC,wEAAwE,CAAC;IACrF,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,4CAA4C,CAAC;CAClF,CAAC;KACD,QAAQ,CACP,mKAAmK,CACpK,CAAC"}
@@ -0,0 +1,348 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Threads / Sessions are the v0.9 chat/session-first SSOT.
4
+ *
5
+ * A `Thread` is a Claudexor-owned conversation about a project; runs are "turns"
6
+ * (moves) inside it. A `Session` is the *vendor* CLI session bound to one harness
7
+ * for one thread — a re-hostable CACHE, not the source of truth. When a turn
8
+ * cannot resume the native session in place (isolated-envelope candidates,
9
+ * race lanes included, or re-hosting onto a different harness) the engine
10
+ * serializes a `SessionReboundLineage` and emits a typed `session.rebound`
11
+ * event (honest, lossy disclosure — never silent).
12
+ */
13
+ /** A thread is open or explicitly closed (archived). "Blocked" is not a thread
14
+ * state — it is a live projection of whether the head turn's run needs a human. */
15
+ export declare const ThreadState: z.ZodEnum<["active", "closed"]>;
16
+ export type ThreadState = z.infer<typeof ThreadState>;
17
+ export declare const SessionState: z.ZodEnum<["live", "stale", "rebound"]>;
18
+ export type SessionState = z.infer<typeof SessionState>;
19
+ /** How a session can be continued on its native CLI. Staged-field rule:
20
+ * only values the daemon actually stamps (`resume_by_id` when a native
21
+ * session id exists, `none` otherwise). */
22
+ export declare const SessionResumeKind: z.ZodEnum<["resume_by_id", "none"]>;
23
+ export type SessionResumeKind = z.infer<typeof SessionResumeKind>;
24
+ export declare const ThreadTurnKind: z.ZodEnum<["initial", "followup", "decision"]>;
25
+ export type ThreadTurnKind = z.infer<typeof ThreadTurnKind>;
26
+ /**
27
+ * Per-thread workspace mode (v0.10). `in_place` mutates the live project tree
28
+ * directly (continuity is the tree itself; native vendor sessions resume); the
29
+ * default, matching how Claude Code / Cursor work locally. `isolated` keeps a
30
+ * persistent git worktree per thread; turns accumulate there and `apply` merges
31
+ * into the project. Race candidates always run in throwaway envelopes regardless.
32
+ */
33
+ export declare const WorkspaceMode: z.ZodEnum<["in_place", "isolated"]>;
34
+ export type WorkspaceMode = z.infer<typeof WorkspaceMode>;
35
+ export declare const ThreadWorkspace: z.ZodObject<{
36
+ mode: z.ZodDefault<z.ZodEnum<["in_place", "isolated"]>>;
37
+ /** Set lazily on the first write turn of an isolated thread. */
38
+ worktree_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
39
+ /** Snapshot SHA the isolated worktree (or last apply) is based on. */
40
+ base_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ mode: "in_place" | "isolated";
43
+ worktree_path: string | null;
44
+ base_sha: string | null;
45
+ }, {
46
+ mode?: "in_place" | "isolated" | undefined;
47
+ worktree_path?: string | null | undefined;
48
+ base_sha?: string | null | undefined;
49
+ }>;
50
+ export type ThreadWorkspace = z.infer<typeof ThreadWorkspace>;
51
+ /** The Claudexor-owned conversation. SSOT for lineage; vendor sessions are caches. */
52
+ export declare const Thread: z.ZodObject<{
53
+ schema_version: z.ZodLiteral<2>;
54
+ id: z.ZodString;
55
+ created_at: z.ZodString;
56
+ updated_at: z.ZodString;
57
+ /** Project the thread is anchored to; null for a no-project Ask thread. */
58
+ repo: z.ZodDefault<z.ZodNullable<z.ZodObject<{
59
+ root: z.ZodString;
60
+ base_ref: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ root: string;
63
+ base_ref: string;
64
+ }, {
65
+ root: string;
66
+ base_ref: string;
67
+ }>>>;
68
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
69
+ /** Default mode for new turns; individual turns may override. */
70
+ mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "audit", "agent", "orchestrate"]>>;
71
+ /** Per-thread auth preference override (subscription/api_key/auto). */
72
+ auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
73
+ /** Sticky orchestrate/primary harness for the thread (re-routable). A bias /
74
+ * ordering hint, NOT a privileged role — orderPool just pins it first. */
75
+ primary_harness: z.ZodDefault<z.ZodNullable<z.ZodString>>;
76
+ /** Sticky eligible harness pool for the thread (Best-of runs this pool, one
77
+ * candidate per harness). Empty => the engine auto-pools doctor-ok harnesses.
78
+ * primary_harness, when set, must be a member of this pool when non-empty. */
79
+ eligible_harnesses: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
80
+ /** How turns touch files (in-place live tree vs isolated worktree). */
81
+ workspace: z.ZodDefault<z.ZodObject<{
82
+ mode: z.ZodDefault<z.ZodEnum<["in_place", "isolated"]>>;
83
+ /** Set lazily on the first write turn of an isolated thread. */
84
+ worktree_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
85
+ /** Snapshot SHA the isolated worktree (or last apply) is based on. */
86
+ base_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ mode: "in_place" | "isolated";
89
+ worktree_path: string | null;
90
+ base_sha: string | null;
91
+ }, {
92
+ mode?: "in_place" | "isolated" | undefined;
93
+ worktree_path?: string | null | undefined;
94
+ base_sha?: string | null | undefined;
95
+ }>>;
96
+ /** Ordered run lineage (each run is a turn move). */
97
+ run_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
98
+ head_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
99
+ state: z.ZodDefault<z.ZodEnum<["active", "closed"]>>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ id: string;
102
+ auth_preference: "auto" | "subscription" | "api_key";
103
+ title: string | null;
104
+ mode: "ask" | "plan" | "audit" | "agent" | "orchestrate";
105
+ schema_version: 2;
106
+ created_at: string;
107
+ updated_at: string;
108
+ repo: {
109
+ root: string;
110
+ base_ref: string;
111
+ } | null;
112
+ primary_harness: string | null;
113
+ eligible_harnesses: string[];
114
+ workspace: {
115
+ mode: "in_place" | "isolated";
116
+ worktree_path: string | null;
117
+ base_sha: string | null;
118
+ };
119
+ run_ids: string[];
120
+ head_run_id: string | null;
121
+ state: "active" | "closed";
122
+ }, {
123
+ id: string;
124
+ schema_version: 2;
125
+ created_at: string;
126
+ updated_at: string;
127
+ auth_preference?: "auto" | "subscription" | "api_key" | undefined;
128
+ title?: string | null | undefined;
129
+ mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
130
+ repo?: {
131
+ root: string;
132
+ base_ref: string;
133
+ } | null | undefined;
134
+ primary_harness?: string | null | undefined;
135
+ eligible_harnesses?: string[] | undefined;
136
+ workspace?: {
137
+ mode?: "in_place" | "isolated" | undefined;
138
+ worktree_path?: string | null | undefined;
139
+ base_sha?: string | null | undefined;
140
+ } | undefined;
141
+ run_ids?: string[] | undefined;
142
+ head_run_id?: string | null | undefined;
143
+ state?: "active" | "closed" | undefined;
144
+ }>;
145
+ export type Thread = z.infer<typeof Thread>;
146
+ /** A re-hostable pointer to one harness's native CLI session for a thread. */
147
+ export declare const Session: z.ZodObject<{
148
+ id: z.ZodString;
149
+ thread_id: z.ZodString;
150
+ harness_id: z.ZodString;
151
+ /** The vendor CLI session id (codex thread id / claude session uuid / ...). */
152
+ native_session_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
153
+ resume_kind: z.ZodDefault<z.ZodEnum<["resume_by_id", "none"]>>;
154
+ last_observed_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
155
+ state: z.ZodDefault<z.ZodEnum<["live", "stale", "rebound"]>>;
156
+ created_at: z.ZodString;
157
+ updated_at: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ id: string;
160
+ harness_id: string;
161
+ created_at: string;
162
+ updated_at: string;
163
+ state: "live" | "stale" | "rebound";
164
+ thread_id: string;
165
+ native_session_id: string | null;
166
+ resume_kind: "none" | "resume_by_id";
167
+ last_observed_model: string | null;
168
+ }, {
169
+ id: string;
170
+ harness_id: string;
171
+ created_at: string;
172
+ updated_at: string;
173
+ thread_id: string;
174
+ state?: "live" | "stale" | "rebound" | undefined;
175
+ native_session_id?: string | null | undefined;
176
+ resume_kind?: "none" | "resume_by_id" | undefined;
177
+ last_observed_model?: string | null | undefined;
178
+ }>;
179
+ export type Session = z.infer<typeof Session>;
180
+ /**
181
+ * Well-known machine code for the trust-gate refusal (access=full without the
182
+ * user-level allow). ONE producer — the engine's trust gate throw — and typed
183
+ * consumers (the macOS one-click remedy keys on it; never substring matching
184
+ * on the human message). New gates may attach their own codes without a
185
+ * schema change: `code` is an open string by design.
186
+ */
187
+ export declare const TRUST_FULL_ACCESS_CODE = "trust_full_access_required";
188
+ /**
189
+ * Typed record of a turn whose run could not be enqueued/started (e.g. the
190
+ * trust gate refused `access: full`). Persisted ON the turn so every surface
191
+ * renders the honest refusal inline — a runless turn must never be a silent
192
+ * orphan whose reason lived only in one HTTP response (INV-093). Cleared when
193
+ * a retry binds a run.
194
+ */
195
+ export declare const TurnEnqueueError: z.ZodObject<{
196
+ message: z.ZodString;
197
+ /** Machine-readable refusal code carried from the throwing gate (e.g.
198
+ * TRUST_FULL_ACCESS_CODE); null when the failure had no typed code. */
199
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
200
+ /** Whether retry can REPLAY this turn: true when a job was recorded before
201
+ * the failure (the registry holds the params to replay); false when the
202
+ * enqueue itself threw and no job exists — surfaces then offer "send a new
203
+ * message" instead of a doomed Retry. */
204
+ retryable: z.ZodDefault<z.ZodBoolean>;
205
+ failed_at: z.ZodString;
206
+ }, "strip", z.ZodTypeAny, {
207
+ code: string | null;
208
+ message: string;
209
+ retryable: boolean;
210
+ failed_at: string;
211
+ }, {
212
+ message: string;
213
+ failed_at: string;
214
+ code?: string | null | undefined;
215
+ retryable?: boolean | undefined;
216
+ }>;
217
+ export type TurnEnqueueError = z.infer<typeof TurnEnqueueError>;
218
+ /** One follow-up unit within a thread (a run is its backing execution). */
219
+ export declare const ThreadTurn: z.ZodObject<{
220
+ id: z.ZodString;
221
+ thread_id: z.ZodString;
222
+ run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
223
+ parent_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
224
+ /** Set when this turn implements an approved plan from an earlier plan run. */
225
+ plan_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
226
+ kind: z.ZodDefault<z.ZodEnum<["initial", "followup", "decision"]>>;
227
+ prompt: z.ZodDefault<z.ZodString>;
228
+ /** Files/images the user attached to this turn (resolved scoped paths). */
229
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
230
+ id: z.ZodString;
231
+ kind: z.ZodDefault<z.ZodEnum<["image", "file"]>>;
232
+ mime: z.ZodDefault<z.ZodString>;
233
+ name: z.ZodDefault<z.ZodString>;
234
+ path: z.ZodString;
235
+ }, "strip", z.ZodTypeAny, {
236
+ path: string;
237
+ id: string;
238
+ kind: "image" | "file";
239
+ mime: string;
240
+ name: string;
241
+ }, {
242
+ path: string;
243
+ id: string;
244
+ kind?: "image" | "file" | undefined;
245
+ mime?: string | undefined;
246
+ name?: string | undefined;
247
+ }>, "many">>;
248
+ /** Why this turn has no run (enqueue/preflight refusal); null once a run binds. */
249
+ enqueue_error: z.ZodDefault<z.ZodNullable<z.ZodObject<{
250
+ message: z.ZodString;
251
+ /** Machine-readable refusal code carried from the throwing gate (e.g.
252
+ * TRUST_FULL_ACCESS_CODE); null when the failure had no typed code. */
253
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
254
+ /** Whether retry can REPLAY this turn: true when a job was recorded before
255
+ * the failure (the registry holds the params to replay); false when the
256
+ * enqueue itself threw and no job exists — surfaces then offer "send a new
257
+ * message" instead of a doomed Retry. */
258
+ retryable: z.ZodDefault<z.ZodBoolean>;
259
+ failed_at: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ code: string | null;
262
+ message: string;
263
+ retryable: boolean;
264
+ failed_at: string;
265
+ }, {
266
+ message: string;
267
+ failed_at: string;
268
+ code?: string | null | undefined;
269
+ retryable?: boolean | undefined;
270
+ }>>>;
271
+ created_at: z.ZodString;
272
+ }, "strip", z.ZodTypeAny, {
273
+ id: string;
274
+ kind: "initial" | "followup" | "decision";
275
+ prompt: string;
276
+ attachments: {
277
+ path: string;
278
+ id: string;
279
+ kind: "image" | "file";
280
+ mime: string;
281
+ name: string;
282
+ }[];
283
+ created_at: string;
284
+ thread_id: string;
285
+ run_id: string | null;
286
+ parent_run_id: string | null;
287
+ plan_run_id: string | null;
288
+ enqueue_error: {
289
+ code: string | null;
290
+ message: string;
291
+ retryable: boolean;
292
+ failed_at: string;
293
+ } | null;
294
+ }, {
295
+ id: string;
296
+ created_at: string;
297
+ thread_id: string;
298
+ kind?: "initial" | "followup" | "decision" | undefined;
299
+ prompt?: string | undefined;
300
+ attachments?: {
301
+ path: string;
302
+ id: string;
303
+ kind?: "image" | "file" | undefined;
304
+ mime?: string | undefined;
305
+ name?: string | undefined;
306
+ }[] | undefined;
307
+ run_id?: string | null | undefined;
308
+ parent_run_id?: string | null | undefined;
309
+ plan_run_id?: string | null | undefined;
310
+ enqueue_error?: {
311
+ message: string;
312
+ failed_at: string;
313
+ code?: string | null | undefined;
314
+ retryable?: boolean | undefined;
315
+ } | null | undefined;
316
+ }>;
317
+ export type ThreadTurn = z.infer<typeof ThreadTurn>;
318
+ /**
319
+ * The lossy payload serialized when a turn cannot resume the native session
320
+ * in place: isolated-envelope candidates (race lanes included) and re-hosting
321
+ * onto a different harness (no native memory of the old session). Carried by
322
+ * the typed `session.rebound` event; the disclosure is explicit, never silent.
323
+ */
324
+ export declare const SessionReboundLineage: z.ZodObject<{
325
+ thread_id: z.ZodString;
326
+ harness_id: z.ZodString;
327
+ /** The vendor native session id we are leaving behind (not a Claudexor Id). */
328
+ from_native_session_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
329
+ to_session_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
330
+ summary: z.ZodDefault<z.ZodString>;
331
+ reason: z.ZodDefault<z.ZodEnum<["quota_exhausted", "money_exhausted", "subscription_exhausted", "rate_limited", "harness_error", "stall", "web_evidence_unsatisfied", "fallback_model", "not_portable", "auth_unavailable", "readiness_preferred", "manual"]>>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ harness_id: string;
334
+ thread_id: string;
335
+ from_native_session_id: string | null;
336
+ to_session_id: string | null;
337
+ summary: string;
338
+ reason: "quota_exhausted" | "money_exhausted" | "subscription_exhausted" | "rate_limited" | "harness_error" | "stall" | "web_evidence_unsatisfied" | "fallback_model" | "not_portable" | "auth_unavailable" | "readiness_preferred" | "manual";
339
+ }, {
340
+ harness_id: string;
341
+ thread_id: string;
342
+ from_native_session_id?: string | null | undefined;
343
+ to_session_id?: string | null | undefined;
344
+ summary?: string | undefined;
345
+ reason?: "quota_exhausted" | "money_exhausted" | "subscription_exhausted" | "rate_limited" | "harness_error" | "stall" | "web_evidence_unsatisfied" | "fallback_model" | "not_portable" | "auth_unavailable" | "readiness_preferred" | "manual" | undefined;
346
+ }>;
347
+ export type SessionReboundLineage = z.infer<typeof SessionRebound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