@claudexor/schema 2.1.3 → 3.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.
- package/dist/agent-capabilities.d.ts +32 -24
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +20 -11
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +166 -0
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +63 -2
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +5 -5
- package/dist/budget.d.ts +4 -4
- package/dist/config.d.ts +59 -41
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -6
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/control-operation-responses.d.ts +190 -97
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +14 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +347 -215
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +34 -7
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-thread-apply.d.ts +5 -5
- package/dist/control-trust.d.ts +6 -6
- package/dist/control.d.ts +769 -306
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +164 -61
- package/dist/control.js.map +1 -1
- package/dist/credential-profile.d.ts +400 -1
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +109 -4
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +78 -14
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +53 -20
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +3 -3
- package/dist/delivery.js +1 -1
- package/dist/delivery.js.map +1 -1
- package/dist/events.d.ts +32 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +45 -11
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +4 -4
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +2 -2
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +137 -47
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +65 -16
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +66 -7
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +29 -2
- package/dist/operation.js.map +1 -1
- package/dist/output-schema.d.ts +40 -0
- package/dist/output-schema.d.ts.map +1 -0
- package/dist/output-schema.js +109 -0
- package/dist/output-schema.js.map +1 -0
- package/dist/plan.d.ts +206 -0
- package/dist/plan.d.ts.map +1 -0
- package/dist/plan.js +107 -0
- package/dist/plan.js.map +1 -0
- package/dist/primitives.d.ts +14 -10
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +14 -11
- package/dist/primitives.js.map +1 -1
- package/dist/project.d.ts +75 -0
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +17 -0
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +119 -0
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +22 -0
- package/dist/quota.js.map +1 -1
- package/dist/raw.d.ts +4 -4
- package/dist/readiness.d.ts +14 -7
- package/dist/readiness.d.ts.map +1 -1
- package/dist/run-strategy.d.ts +17 -0
- package/dist/run-strategy.d.ts.map +1 -0
- package/dist/run-strategy.js +47 -0
- package/dist/run-strategy.js.map +1 -0
- package/dist/setup.d.ts +160 -160
- package/dist/status-projection.d.ts +78 -0
- package/dist/status-projection.d.ts.map +1 -0
- package/dist/status-projection.js +171 -0
- package/dist/status-projection.js.map +1 -0
- package/dist/task.d.ts +48 -316
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +3 -60
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +89 -89
- package/dist/thread.d.ts +167 -32
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +92 -28
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +4 -6
- package/generated/ApplyEligibility.schema.json +1 -1
- package/generated/BudgetLease.schema.json +1 -2
- package/generated/ConformanceReport.schema.json +1 -2
- package/generated/ContinuityDisclosure.schema.json +74 -0
- package/generated/ControlApplyRequest.schema.json +1 -2
- package/generated/ControlCredentialProfileUpdateRequest.schema.json +20 -0
- package/generated/ControlCredentialProfileUpdateResponse.schema.json +142 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +126 -2
- package/generated/ControlDeliveryResponse.schema.json +0 -1
- package/generated/ControlHandshakeResponse.schema.json +31 -3
- package/generated/ControlHarnessListResponse.schema.json +11 -6
- package/generated/ControlHarnessSettingsPatch.schema.json +4 -0
- package/generated/ControlOperationCatalog.schema.json +16 -1
- package/generated/ControlOperationDescriptor.schema.json +15 -0
- package/generated/ControlProject.schema.json +35 -0
- package/generated/ControlProjectListResponse.schema.json +35 -0
- package/generated/ControlProjectOutputsResponse.schema.json +57 -0
- package/generated/ControlQueuedRunInfo.schema.json +2 -11
- package/generated/ControlQuotaResponse.schema.json +42 -0
- package/generated/ControlRunAgainDraft.schema.json +37 -35
- package/generated/ControlRunDecisionRequest.schema.json +0 -1
- package/generated/ControlRunDetail.schema.json +292 -213
- package/generated/ControlRunListResponse.schema.json +88 -27
- package/generated/ControlRunStartRequest.schema.json +37 -35
- package/generated/ControlRunStartResponse.schema.json +2 -11
- package/generated/ControlRunSummary.schema.json +88 -27
- package/generated/ControlSettingsSnapshot.schema.json +6 -11
- package/generated/ControlSettingsUpdateRequest.schema.json +5 -10
- package/generated/ControlThread.schema.json +21 -3
- package/generated/ControlThreadApplyResponse.schema.json +0 -1
- package/generated/ControlThreadCreateRequest.schema.json +12 -3
- package/generated/ControlThreadDetail.schema.json +174 -16
- package/generated/ControlThreadListResponse.schema.json +60 -3
- package/generated/ControlThreadTurnRequest.schema.json +40 -34
- package/generated/ControlThreadUpdateRequest.schema.json +19 -0
- package/generated/DecisionRecord.schema.json +73 -33
- package/generated/GateResult.schema.json +1 -2
- package/generated/GlobalConfig.schema.json +7 -12
- package/generated/HarnessManifest.schema.json +11 -6
- package/generated/HarnessStatusDto.schema.json +11 -6
- package/generated/LaneCheckpoint.schema.json +59 -0
- package/generated/McpRunHandleResult.schema.json +234 -0
- package/generated/McpRunToolResult.schema.json +124 -2
- package/generated/RoutePrimaryDivergedPayload.schema.json +56 -0
- package/generated/RunEvent.schema.json +9 -5
- package/generated/RunTelemetry.schema.json +2 -4
- package/generated/TaskContract.schema.json +3 -135
- package/generated/Thread.schema.json +21 -3
- package/generated/ThreadTurn.schema.json +88 -0
- package/package.json +2 -2
- package/dist/control-spec.d.ts +0 -603
- package/dist/control-spec.d.ts.map +0 -1
- package/dist/control-spec.js +0 -87
- package/dist/control-spec.js.map +0 -1
- package/dist/orchestrate.d.ts +0 -556
- package/dist/orchestrate.d.ts.map +0 -1
- package/dist/orchestrate.js +0 -356
- package/dist/orchestrate.js.map +0 -1
- package/dist/spec.d.ts +0 -678
- package/dist/spec.d.ts.map +0 -1
- package/dist/spec.js +0 -186
- package/dist/spec.js.map +0 -1
- package/generated/ControlSpecAnswersRequest.schema.json +0 -74
- package/generated/ControlSpecQuestionsRequest.schema.json +0 -209
- package/generated/ControlSpecSession.schema.json +0 -261
- package/generated/ControlSpecSessionListResponse.schema.json +0 -273
- package/generated/OrchestrateContract.schema.json +0 -119
- package/generated/OrchestratePlan.schema.json +0 -264
- package/generated/OrchestratePlanProgress.schema.json +0 -164
- package/generated/SessionReboundLineage.schema.json +0 -73
- package/generated/SpecPack.schema.json +0 -483
package/dist/thread.d.ts
CHANGED
|
@@ -4,11 +4,12 @@ import { z } from "zod";
|
|
|
4
4
|
*
|
|
5
5
|
* A `Thread` is a Claudexor-owned conversation about a project; runs are "turns"
|
|
6
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.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
7
|
+
* for one thread — a re-hostable CACHE, not the source of truth. A lane is a
|
|
8
|
+
* (thread, harness, profile) triple; each lane keeps a `LaneCheckpoint` (the last
|
|
9
|
+
* turn it saw). When a turn runs on a lane whose checkpoint lags the thread head
|
|
10
|
+
* (a lane switch or gap) the engine hydrates it with a bounded continuation packet
|
|
11
|
+
* and stamps a `ContinuityDisclosure` on the turn + emits a typed
|
|
12
|
+
* `session.continuity` event (honest, visible — never silent, INV-137).
|
|
12
13
|
*/
|
|
13
14
|
/** A thread is open, archived, in 30-day trash, or terminally purged.
|
|
14
15
|
* "Blocked" is not a thread state — it is a live run projection. */
|
|
@@ -70,13 +71,17 @@ export declare const Thread: z.ZodObject<{
|
|
|
70
71
|
}>>>;
|
|
71
72
|
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
72
73
|
/** Default mode for new turns; individual turns may override. */
|
|
73
|
-
mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "
|
|
74
|
+
mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "agent"]>>;
|
|
74
75
|
/** Per-thread auth preference override (subscription/api_key/auto). */
|
|
75
76
|
auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
|
|
77
|
+
/** Sticky write scope for the thread's write turns (D26): a per-turn
|
|
78
|
+
* selection wins; null = the repo's trust access_default. Read-only
|
|
79
|
+
* intents are clamped to readonly by the engine regardless. */
|
|
80
|
+
access: z.ZodDefault<z.ZodNullable<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>>;
|
|
76
81
|
/** Sticky credential profile for the thread (INV-135): turns inherit it
|
|
77
82
|
* unless they carry an explicit per-turn profile; null = engine default. */
|
|
78
83
|
credential_profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
/** Sticky
|
|
84
|
+
/** Sticky primary harness for the thread (re-routable). A bias /
|
|
80
85
|
* ordering hint, NOT a privileged role — orderPool just pins it first. */
|
|
81
86
|
primary_harness: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
82
87
|
/** Sticky eligible harness pool for the thread (Best-of runs this pool, one
|
|
@@ -118,9 +123,10 @@ export declare const Thread: z.ZodObject<{
|
|
|
118
123
|
base_sha: string | null;
|
|
119
124
|
delivered_through_run_id: string | null;
|
|
120
125
|
};
|
|
121
|
-
mode: "ask" | "plan" | "
|
|
126
|
+
mode: "ask" | "plan" | "agent";
|
|
122
127
|
schema_version: 2;
|
|
123
128
|
id: string;
|
|
129
|
+
access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | null;
|
|
124
130
|
auth_preference: "auto" | "subscription" | "api_key";
|
|
125
131
|
credential_profile_id: string | null;
|
|
126
132
|
title: string | null;
|
|
@@ -148,7 +154,8 @@ export declare const Thread: z.ZodObject<{
|
|
|
148
154
|
base_sha?: string | null | undefined;
|
|
149
155
|
delivered_through_run_id?: string | null | undefined;
|
|
150
156
|
} | undefined;
|
|
151
|
-
mode?: "ask" | "plan" | "
|
|
157
|
+
mode?: "ask" | "plan" | "agent" | undefined;
|
|
158
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | null | undefined;
|
|
152
159
|
auth_preference?: "auto" | "subscription" | "api_key" | undefined;
|
|
153
160
|
credential_profile_id?: string | null | undefined;
|
|
154
161
|
title?: string | null | undefined;
|
|
@@ -243,6 +250,64 @@ export declare const TurnEnqueueError: z.ZodObject<{
|
|
|
243
250
|
retryable?: boolean | undefined;
|
|
244
251
|
}>;
|
|
245
252
|
export type TurnEnqueueError = z.infer<typeof TurnEnqueueError>;
|
|
253
|
+
/** How a turn's lane was continued from the rest of the conversation (INV-137). */
|
|
254
|
+
export declare const ContinuityKind: z.ZodEnum<["native_resume", "packet", "fresh"]>;
|
|
255
|
+
export type ContinuityKind = z.infer<typeof ContinuityKind>;
|
|
256
|
+
/** The lane a turn switched AWAY from (the lane that held the prior head). */
|
|
257
|
+
export declare const LaneRef: z.ZodObject<{
|
|
258
|
+
harness_id: z.ZodString;
|
|
259
|
+
profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
profile_id: string | null;
|
|
262
|
+
harness_id: string;
|
|
263
|
+
}, {
|
|
264
|
+
harness_id: string;
|
|
265
|
+
profile_id?: string | null | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
export type LaneRef = z.infer<typeof LaneRef>;
|
|
268
|
+
/**
|
|
269
|
+
* Stamped on a ThreadTurn the moment its lane is resolved (INV-137). The engine
|
|
270
|
+
* NEVER continues a conversation silently: `packet` turns disclose how many
|
|
271
|
+
* delta turns were carried and whether the older prefix was collapsed
|
|
272
|
+
* (`summarized`); a genuine lane switch names the lane it left.
|
|
273
|
+
*/
|
|
274
|
+
export declare const ContinuityDisclosure: z.ZodObject<{
|
|
275
|
+
kind: z.ZodEnum<["native_resume", "packet", "fresh"]>;
|
|
276
|
+
/** Delta turns carried in the continuation packet (0 for native_resume/fresh). */
|
|
277
|
+
packet_turns: z.ZodDefault<z.ZodNumber>;
|
|
278
|
+
/** True when the packet collapsed an older prefix to one-line entries (the
|
|
279
|
+
* mechanical fallback for "summary unavailable"; the cached LLM summary is V9c). */
|
|
280
|
+
summarized: z.ZodDefault<z.ZodBoolean>;
|
|
281
|
+
/** The lane this turn switched away from, when the continuation crossed
|
|
282
|
+
* lanes; null for an in-lane continuation or the thread's first lane. */
|
|
283
|
+
lane_switched_from: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
284
|
+
harness_id: z.ZodString;
|
|
285
|
+
profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
profile_id: string | null;
|
|
288
|
+
harness_id: string;
|
|
289
|
+
}, {
|
|
290
|
+
harness_id: string;
|
|
291
|
+
profile_id?: string | null | undefined;
|
|
292
|
+
}>>>;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
kind: "fresh" | "native_resume" | "packet";
|
|
295
|
+
packet_turns: number;
|
|
296
|
+
summarized: boolean;
|
|
297
|
+
lane_switched_from: {
|
|
298
|
+
profile_id: string | null;
|
|
299
|
+
harness_id: string;
|
|
300
|
+
} | null;
|
|
301
|
+
}, {
|
|
302
|
+
kind: "fresh" | "native_resume" | "packet";
|
|
303
|
+
packet_turns?: number | undefined;
|
|
304
|
+
summarized?: boolean | undefined;
|
|
305
|
+
lane_switched_from?: {
|
|
306
|
+
harness_id: string;
|
|
307
|
+
profile_id?: string | null | undefined;
|
|
308
|
+
} | null | undefined;
|
|
309
|
+
}>;
|
|
310
|
+
export type ContinuityDisclosure = z.infer<typeof ContinuityDisclosure>;
|
|
246
311
|
/** One follow-up unit within a thread (a run is its backing execution). */
|
|
247
312
|
export declare const ThreadTurn: z.ZodObject<{
|
|
248
313
|
id: z.ZodString;
|
|
@@ -251,6 +316,12 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
251
316
|
parent_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
252
317
|
/** Set when this turn implements an approved plan from an earlier plan run. */
|
|
253
318
|
plan_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
/** Freeze-on-implement (D17): sha256 of the plan run's final/plan.md at
|
|
320
|
+
* the moment this implement turn was created. */
|
|
321
|
+
plan_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
/** True when the user explicitly overrode a not-ready plan (open
|
|
323
|
+
* questions remained); recorded for provenance, rendered on the card. */
|
|
324
|
+
plan_readiness_overridden: z.ZodDefault<z.ZodBoolean>;
|
|
254
325
|
kind: z.ZodDefault<z.ZodEnum<["initial", "followup", "decision"]>>;
|
|
255
326
|
prompt: z.ZodDefault<z.ZodString>;
|
|
256
327
|
/** Files/images the user attached to this turn (resolved scoped paths). */
|
|
@@ -264,16 +335,16 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
264
335
|
path: z.ZodString;
|
|
265
336
|
}, "strict", z.ZodTypeAny, {
|
|
266
337
|
path: string;
|
|
267
|
-
name: string;
|
|
268
338
|
kind: "file" | "image";
|
|
339
|
+
name: string;
|
|
269
340
|
resource_id: string;
|
|
270
341
|
mime: string;
|
|
271
342
|
sha256: string;
|
|
272
343
|
size_bytes: number;
|
|
273
344
|
}, {
|
|
274
345
|
path: string;
|
|
275
|
-
name: string;
|
|
276
346
|
kind: "file" | "image";
|
|
347
|
+
name: string;
|
|
277
348
|
resource_id: string;
|
|
278
349
|
mime: string;
|
|
279
350
|
sha256: string;
|
|
@@ -302,6 +373,46 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
302
373
|
code?: string | null | undefined;
|
|
303
374
|
retryable?: boolean | undefined;
|
|
304
375
|
}>>>;
|
|
376
|
+
/** How this turn's lane was continued (INV-137): native resume, a
|
|
377
|
+
* continuation packet, or a fresh start. Stamped by the engine at
|
|
378
|
+
* spec-build once the lane (harness, profile) is resolved; null until then
|
|
379
|
+
* (and for turns that never reached spec-build). */
|
|
380
|
+
continuity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
381
|
+
kind: z.ZodEnum<["native_resume", "packet", "fresh"]>;
|
|
382
|
+
/** Delta turns carried in the continuation packet (0 for native_resume/fresh). */
|
|
383
|
+
packet_turns: z.ZodDefault<z.ZodNumber>;
|
|
384
|
+
/** True when the packet collapsed an older prefix to one-line entries (the
|
|
385
|
+
* mechanical fallback for "summary unavailable"; the cached LLM summary is V9c). */
|
|
386
|
+
summarized: z.ZodDefault<z.ZodBoolean>;
|
|
387
|
+
/** The lane this turn switched away from, when the continuation crossed
|
|
388
|
+
* lanes; null for an in-lane continuation or the thread's first lane. */
|
|
389
|
+
lane_switched_from: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
390
|
+
harness_id: z.ZodString;
|
|
391
|
+
profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
profile_id: string | null;
|
|
394
|
+
harness_id: string;
|
|
395
|
+
}, {
|
|
396
|
+
harness_id: string;
|
|
397
|
+
profile_id?: string | null | undefined;
|
|
398
|
+
}>>>;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
kind: "fresh" | "native_resume" | "packet";
|
|
401
|
+
packet_turns: number;
|
|
402
|
+
summarized: boolean;
|
|
403
|
+
lane_switched_from: {
|
|
404
|
+
profile_id: string | null;
|
|
405
|
+
harness_id: string;
|
|
406
|
+
} | null;
|
|
407
|
+
}, {
|
|
408
|
+
kind: "fresh" | "native_resume" | "packet";
|
|
409
|
+
packet_turns?: number | undefined;
|
|
410
|
+
summarized?: boolean | undefined;
|
|
411
|
+
lane_switched_from?: {
|
|
412
|
+
harness_id: string;
|
|
413
|
+
profile_id?: string | null | undefined;
|
|
414
|
+
} | null | undefined;
|
|
415
|
+
}>>>;
|
|
305
416
|
created_at: z.ZodString;
|
|
306
417
|
}, "strip", z.ZodTypeAny, {
|
|
307
418
|
created_at: string;
|
|
@@ -310,8 +421,8 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
310
421
|
prompt: string;
|
|
311
422
|
attachments: {
|
|
312
423
|
path: string;
|
|
313
|
-
name: string;
|
|
314
424
|
kind: "file" | "image";
|
|
425
|
+
name: string;
|
|
315
426
|
resource_id: string;
|
|
316
427
|
mime: string;
|
|
317
428
|
sha256: string;
|
|
@@ -321,12 +432,23 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
321
432
|
run_id: string | null;
|
|
322
433
|
parent_run_id: string | null;
|
|
323
434
|
plan_run_id: string | null;
|
|
435
|
+
plan_hash: string | null;
|
|
436
|
+
plan_readiness_overridden: boolean;
|
|
324
437
|
enqueue_error: {
|
|
325
438
|
code: string | null;
|
|
326
439
|
message: string;
|
|
327
440
|
retryable: boolean;
|
|
328
441
|
failed_at: string;
|
|
329
442
|
} | null;
|
|
443
|
+
continuity: {
|
|
444
|
+
kind: "fresh" | "native_resume" | "packet";
|
|
445
|
+
packet_turns: number;
|
|
446
|
+
summarized: boolean;
|
|
447
|
+
lane_switched_from: {
|
|
448
|
+
profile_id: string | null;
|
|
449
|
+
harness_id: string;
|
|
450
|
+
} | null;
|
|
451
|
+
} | null;
|
|
330
452
|
}, {
|
|
331
453
|
created_at: string;
|
|
332
454
|
id: string;
|
|
@@ -335,8 +457,8 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
335
457
|
prompt?: string | undefined;
|
|
336
458
|
attachments?: {
|
|
337
459
|
path: string;
|
|
338
|
-
name: string;
|
|
339
460
|
kind: "file" | "image";
|
|
461
|
+
name: string;
|
|
340
462
|
resource_id: string;
|
|
341
463
|
mime: string;
|
|
342
464
|
sha256: string;
|
|
@@ -345,42 +467,55 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
345
467
|
run_id?: string | null | undefined;
|
|
346
468
|
parent_run_id?: string | null | undefined;
|
|
347
469
|
plan_run_id?: string | null | undefined;
|
|
470
|
+
plan_hash?: string | null | undefined;
|
|
471
|
+
plan_readiness_overridden?: boolean | undefined;
|
|
348
472
|
enqueue_error?: {
|
|
349
473
|
message: string;
|
|
350
474
|
failed_at: string;
|
|
351
475
|
code?: string | null | undefined;
|
|
352
476
|
retryable?: boolean | undefined;
|
|
353
477
|
} | null | undefined;
|
|
478
|
+
continuity?: {
|
|
479
|
+
kind: "fresh" | "native_resume" | "packet";
|
|
480
|
+
packet_turns?: number | undefined;
|
|
481
|
+
summarized?: boolean | undefined;
|
|
482
|
+
lane_switched_from?: {
|
|
483
|
+
harness_id: string;
|
|
484
|
+
profile_id?: string | null | undefined;
|
|
485
|
+
} | null | undefined;
|
|
486
|
+
} | null | undefined;
|
|
354
487
|
}>;
|
|
355
488
|
export type ThreadTurn = z.infer<typeof ThreadTurn>;
|
|
356
489
|
/**
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
490
|
+
* Per-lane checkpoint (INV-137): the last turn a lane (thread, harness, profile)
|
|
491
|
+
* has SEEN — either because it produced that turn or because a continuation
|
|
492
|
+
* packet hydrated it up to that turn. Journaled in the thread store alongside
|
|
493
|
+
* turns/sessions (fsync-before-ACK, INV-034); the enqueue path reads it to
|
|
494
|
+
* decide whether the next turn resumes natively or needs a packet.
|
|
361
495
|
*/
|
|
362
|
-
export declare const
|
|
496
|
+
export declare const LaneCheckpoint: z.ZodObject<{
|
|
497
|
+
/** Composite `<thread>::<harness>::<profileOrDefault>` — the lane identity. */
|
|
498
|
+
id: z.ZodString;
|
|
363
499
|
thread_id: z.ZodString;
|
|
364
500
|
harness_id: z.ZodString;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
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"]>>;
|
|
501
|
+
profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
502
|
+
/** The last turn this lane has seen. */
|
|
503
|
+
turn_id: z.ZodString;
|
|
504
|
+
updated_at: z.ZodString;
|
|
370
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
profile_id: string | null;
|
|
371
507
|
harness_id: string;
|
|
372
|
-
|
|
373
|
-
|
|
508
|
+
id: string;
|
|
509
|
+
updated_at: string;
|
|
374
510
|
thread_id: string;
|
|
375
|
-
|
|
376
|
-
to_session_id: string | null;
|
|
511
|
+
turn_id: string;
|
|
377
512
|
}, {
|
|
378
513
|
harness_id: string;
|
|
514
|
+
id: string;
|
|
515
|
+
updated_at: string;
|
|
379
516
|
thread_id: string;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
from_native_session_id?: string | null | undefined;
|
|
383
|
-
to_session_id?: string | null | undefined;
|
|
517
|
+
turn_id: string;
|
|
518
|
+
profile_id?: string | null | undefined;
|
|
384
519
|
}>;
|
|
385
|
-
export type
|
|
520
|
+
export type LaneCheckpoint = z.infer<typeof LaneCheckpoint>;
|
|
386
521
|
//# sourceMappingURL=thread.d.ts.map
|
package/dist/thread.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../src/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../src/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;;;;;;;;;;GAWG;AAEH;oEACoE;AACpE,eAAO,MAAM,WAAW,sDAE0E,CAAC;AACnG,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,yCAItB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;2CAE2C;AAC3C,eAAO,MAAM,iBAAiB,qCAI3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc,gDAEuE,CAAC;AACnG,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,qCAIvB,CAAC;AACJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,eAAe;;IAGxB,gEAAgE;;IAQhE,sEAAsE;;;;;;;;;;;;;EAUkB,CAAC;AAC7F,MAA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;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;IAG7B,kFAAkF;;IASlF;wFACoF;;IAOpF;6EACyE;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1E,CAAC;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,2EAA2E;AAC3E,eAAO,MAAM,UAAU;;;;;IAMnB,+EAA+E;;IAI/E;qDACiD;;IAMjD;6EACyE;;;;IAOzE,2EAA2E;;;;;;;;;;;;;;;;;;;;;;;;;;IAK3E,mFAAmF;;;QAnHnF;+EACuE;;QAQvE;;;iDAGyC;;;;;;;;;;;;;;IA2GzC;;;wDAGoD;;;QApEpD,kFAAkF;;QASlF;4FACoF;;QAOpF;iFACyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DK,CAAC;AACnF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;IAEvB,+EAA+E;;;;;IAO/E,wCAAwC;;;;;;;;;;;;;;;;;EAMzC,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/thread.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { AccessProfile, AuthPreference, Id, IsoTimestamp, ModeKind, SchemaVersion, } from "./primitives.js";
|
|
3
3
|
import { Attachment } from "./attachment.js";
|
|
4
4
|
/**
|
|
5
5
|
* Threads / Sessions are the v0.9 chat/session-first SSOT.
|
|
6
6
|
*
|
|
7
7
|
* A `Thread` is a Claudexor-owned conversation about a project; runs are "turns"
|
|
8
8
|
* (moves) inside it. A `Session` is the *vendor* CLI session bound to one harness
|
|
9
|
-
* for one thread — a re-hostable CACHE, not the source of truth.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* for one thread — a re-hostable CACHE, not the source of truth. A lane is a
|
|
10
|
+
* (thread, harness, profile) triple; each lane keeps a `LaneCheckpoint` (the last
|
|
11
|
+
* turn it saw). When a turn runs on a lane whose checkpoint lags the thread head
|
|
12
|
+
* (a lane switch or gap) the engine hydrates it with a bounded continuation packet
|
|
13
|
+
* and stamps a `ContinuityDisclosure` on the turn + emits a typed
|
|
14
|
+
* `session.continuity` event (honest, visible — never silent, INV-137).
|
|
14
15
|
*/
|
|
15
16
|
/** A thread is open, archived, in 30-day trash, or terminally purged.
|
|
16
17
|
* "Blocked" is not a thread state — it is a live run projection. */
|
|
@@ -80,12 +81,18 @@ export const Thread = z
|
|
|
80
81
|
mode: ModeKind.default("agent").describe("Default mode for new turns; individual turns may override."),
|
|
81
82
|
/** Per-thread auth preference override (subscription/api_key/auto). */
|
|
82
83
|
auth_preference: AuthPreference.default("auto"),
|
|
84
|
+
/** Sticky write scope for the thread's write turns (D26): a per-turn
|
|
85
|
+
* selection wins; null = the repo's trust access_default. Read-only
|
|
86
|
+
* intents are clamped to readonly by the engine regardless. */
|
|
87
|
+
access: AccessProfile.nullable()
|
|
88
|
+
.default(null)
|
|
89
|
+
.describe("Sticky write scope for write turns; per-turn selection wins, null = the repo trust default."),
|
|
83
90
|
/** Sticky credential profile for the thread (INV-135): turns inherit it
|
|
84
91
|
* unless they carry an explicit per-turn profile; null = engine default. */
|
|
85
92
|
credential_profile_id: Id.nullable()
|
|
86
93
|
.default(null)
|
|
87
94
|
.describe("Sticky credential profile for the thread; per-turn selection wins, null = engine-default credentials."),
|
|
88
|
-
/** Sticky
|
|
95
|
+
/** Sticky primary harness for the thread (re-routable). A bias /
|
|
89
96
|
* ordering hint, NOT a privileged role — orderPool just pins it first. */
|
|
90
97
|
primary_harness: z
|
|
91
98
|
.string()
|
|
@@ -185,6 +192,48 @@ export const TurnEnqueueError = z
|
|
|
185
192
|
failed_at: IsoTimestamp.describe("When the enqueue failed."),
|
|
186
193
|
})
|
|
187
194
|
.describe("Typed record of a turn whose run could not be enqueued/started, persisted on the turn so every surface renders the refusal inline; cleared when a retry binds a run.");
|
|
195
|
+
/** How a turn's lane was continued from the rest of the conversation (INV-137). */
|
|
196
|
+
export const ContinuityKind = z
|
|
197
|
+
.enum(["native_resume", "packet", "fresh"])
|
|
198
|
+
.describe("How a turn's lane was continued: native_resume (the lane's own vendor session already held the delta), packet (a continuation packet hydrated a lane switch/gap), or fresh (nothing to carry — the thread's first turn on any lane).");
|
|
199
|
+
/** The lane a turn switched AWAY from (the lane that held the prior head). */
|
|
200
|
+
export const LaneRef = z
|
|
201
|
+
.object({
|
|
202
|
+
harness_id: Id.describe("Harness of the prior lane."),
|
|
203
|
+
profile_id: Id.nullable()
|
|
204
|
+
.default(null)
|
|
205
|
+
.describe("Credential profile of the prior lane (null = engine default)."),
|
|
206
|
+
})
|
|
207
|
+
.describe("A (harness, profile) lane reference; the null profile is the engine default.");
|
|
208
|
+
/**
|
|
209
|
+
* Stamped on a ThreadTurn the moment its lane is resolved (INV-137). The engine
|
|
210
|
+
* NEVER continues a conversation silently: `packet` turns disclose how many
|
|
211
|
+
* delta turns were carried and whether the older prefix was collapsed
|
|
212
|
+
* (`summarized`); a genuine lane switch names the lane it left.
|
|
213
|
+
*/
|
|
214
|
+
export const ContinuityDisclosure = z
|
|
215
|
+
.object({
|
|
216
|
+
kind: ContinuityKind,
|
|
217
|
+
/** Delta turns carried in the continuation packet (0 for native_resume/fresh). */
|
|
218
|
+
packet_turns: z
|
|
219
|
+
.number()
|
|
220
|
+
.int()
|
|
221
|
+
.nonnegative()
|
|
222
|
+
.default(0)
|
|
223
|
+
.describe("Number of delta turns carried in the continuation packet (0 for native_resume/fresh)."),
|
|
224
|
+
/** True when the packet collapsed an older prefix to one-line entries (the
|
|
225
|
+
* mechanical fallback for "summary unavailable"; the cached LLM summary is V9c). */
|
|
226
|
+
summarized: z
|
|
227
|
+
.boolean()
|
|
228
|
+
.default(false)
|
|
229
|
+
.describe("True when the packet collapsed an older prefix to one-line entries (mechanical fallback)."),
|
|
230
|
+
/** The lane this turn switched away from, when the continuation crossed
|
|
231
|
+
* lanes; null for an in-lane continuation or the thread's first lane. */
|
|
232
|
+
lane_switched_from: LaneRef.nullable()
|
|
233
|
+
.default(null)
|
|
234
|
+
.describe("The lane this turn switched away from, when the continuation crossed lanes; null otherwise."),
|
|
235
|
+
})
|
|
236
|
+
.describe("How a turn's lane was continued from the conversation (native resume / continuation packet / fresh), disclosed visibly per INV-137.");
|
|
188
237
|
/** One follow-up unit within a thread (a run is its backing execution). */
|
|
189
238
|
export const ThreadTurn = z
|
|
190
239
|
.object({
|
|
@@ -196,6 +245,19 @@ export const ThreadTurn = z
|
|
|
196
245
|
plan_run_id: Id.nullable()
|
|
197
246
|
.default(null)
|
|
198
247
|
.describe("Set when this turn implements an approved plan from an earlier plan run."),
|
|
248
|
+
/** Freeze-on-implement (D17): sha256 of the plan run's final/plan.md at
|
|
249
|
+
* the moment this implement turn was created. */
|
|
250
|
+
plan_hash: z
|
|
251
|
+
.string()
|
|
252
|
+
.nullable()
|
|
253
|
+
.default(null)
|
|
254
|
+
.describe("sha256 of the implemented plan at freeze time; null for non-implement turns."),
|
|
255
|
+
/** True when the user explicitly overrode a not-ready plan (open
|
|
256
|
+
* questions remained); recorded for provenance, rendered on the card. */
|
|
257
|
+
plan_readiness_overridden: z
|
|
258
|
+
.boolean()
|
|
259
|
+
.default(false)
|
|
260
|
+
.describe("True when the user explicitly implemented a plan with open questions."),
|
|
199
261
|
kind: ThreadTurnKind.default("followup"),
|
|
200
262
|
prompt: z.string().default("").describe("The user's message for this turn."),
|
|
201
263
|
/** Files/images the user attached to this turn (resolved scoped paths). */
|
|
@@ -207,33 +269,35 @@ export const ThreadTurn = z
|
|
|
207
269
|
enqueue_error: TurnEnqueueError.nullable()
|
|
208
270
|
.default(null)
|
|
209
271
|
.describe("Why this turn has no run (enqueue/preflight refusal); null once a run binds."),
|
|
272
|
+
/** How this turn's lane was continued (INV-137): native resume, a
|
|
273
|
+
* continuation packet, or a fresh start. Stamped by the engine at
|
|
274
|
+
* spec-build once the lane (harness, profile) is resolved; null until then
|
|
275
|
+
* (and for turns that never reached spec-build). */
|
|
276
|
+
continuity: ContinuityDisclosure.nullable()
|
|
277
|
+
.default(null)
|
|
278
|
+
.describe("How this turn's lane was continued (native resume / packet / fresh); null until stamped."),
|
|
210
279
|
created_at: IsoTimestamp.describe("When the turn was created."),
|
|
211
280
|
})
|
|
212
281
|
.describe("One follow-up unit within a thread; a run is its backing execution.");
|
|
213
282
|
/**
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
283
|
+
* Per-lane checkpoint (INV-137): the last turn a lane (thread, harness, profile)
|
|
284
|
+
* has SEEN — either because it produced that turn or because a continuation
|
|
285
|
+
* packet hydrated it up to that turn. Journaled in the thread store alongside
|
|
286
|
+
* turns/sessions (fsync-before-ACK, INV-034); the enqueue path reads it to
|
|
287
|
+
* decide whether the next turn resumes natively or needs a packet.
|
|
218
288
|
*/
|
|
219
|
-
export const
|
|
289
|
+
export const LaneCheckpoint = z
|
|
220
290
|
.object({
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
.nullable()
|
|
227
|
-
.default(null)
|
|
228
|
-
.describe("The vendor native session id being left behind (not a Claudexor id); null when none existed."),
|
|
229
|
-
to_session_id: Id.nullable()
|
|
291
|
+
/** Composite `<thread>::<harness>::<profileOrDefault>` — the lane identity. */
|
|
292
|
+
id: Id.describe("Composite lane id (thread::harness::profileOrDefault)."),
|
|
293
|
+
thread_id: Id.describe("Thread the lane belongs to."),
|
|
294
|
+
harness_id: Id.describe("Harness of the lane."),
|
|
295
|
+
profile_id: Id.nullable()
|
|
230
296
|
.default(null)
|
|
231
|
-
.describe("
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
.describe("Carried-over conversation summary injected into the new session."),
|
|
236
|
-
reason: FallbackReason.default("not_portable"),
|
|
297
|
+
.describe("Credential profile of the lane (null = engine default)."),
|
|
298
|
+
/** The last turn this lane has seen. */
|
|
299
|
+
turn_id: Id.describe("The last turn this lane has seen."),
|
|
300
|
+
updated_at: IsoTimestamp.describe("When the checkpoint last advanced."),
|
|
237
301
|
})
|
|
238
|
-
.describe("
|
|
302
|
+
.describe("Per-lane checkpoint: the last turn a (thread, harness, profile) lane has seen; journaled in the thread store.");
|
|
239
303
|
//# sourceMappingURL=thread.js.map
|
package/dist/thread.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.js","sourceRoot":"","sources":["../src/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"thread.js","sourceRoot":"","sources":["../src/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,cAAc,EACd,EAAE,EACF,YAAY,EACZ,QAAQ,EACR,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;;;;;;;GAWG;AAEH;oEACoE;AACpE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;KAC/C,QAAQ,CAAC,qFAAqF,CAAC,CAAC;AAGnG,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;KAClC,QAAQ,CACP,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,sBAAsB,CAAC;IAC/C,UAAU,EAAE,EAAE,CAAC,QAAQ,EAAE;SACtB,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,yDAAyD,CAAC;IACtE,wCAAwC;IACxC,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACzD,UAAU,EAAE,YAAY,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CACxE,CAAC;KACD,QAAQ,CACP,+GAA+G,CAChH,CAAC"}
|
package/dist/tool-ref.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export declare const ToolRef: z.ZodObject<{
|
|
|
23
23
|
content_summary: z.ZodOptional<z.ZodString>;
|
|
24
24
|
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
name: string;
|
|
27
26
|
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
27
|
+
name: string;
|
|
28
28
|
status?: "cancelled" | "ok" | "error" | "denied" | undefined;
|
|
29
29
|
use_id?: string | undefined;
|
|
30
30
|
target?: string | undefined;
|
|
@@ -265,11 +265,9 @@
|
|
|
265
265
|
"enum": [
|
|
266
266
|
"ask",
|
|
267
267
|
"plan",
|
|
268
|
-
"
|
|
269
|
-
"agent",
|
|
270
|
-
"orchestrate"
|
|
268
|
+
"agent"
|
|
271
269
|
],
|
|
272
|
-
"description": "Canonical run mode: ask
|
|
270
|
+
"description": "Canonical run mode: ask and plan are read-only, agent writes. Engine strategies (race width, attempts, deep_scan, create, delegate) are flags on a mode, not modes."
|
|
273
271
|
},
|
|
274
272
|
"description": "Canonical run modes (strategies like --n/--until-clean/--swarm are flags, not modes)."
|
|
275
273
|
},
|
|
@@ -288,14 +286,14 @@
|
|
|
288
286
|
"items": {
|
|
289
287
|
"$ref": "#/definitions/AgentCapabilityCatalog/properties/modes/items"
|
|
290
288
|
},
|
|
291
|
-
"description": "Canonical modes that never mutate the project tree (ask/plan
|
|
289
|
+
"description": "Canonical modes that never mutate the project tree (ask/plan)."
|
|
292
290
|
},
|
|
293
291
|
"writeModes": {
|
|
294
292
|
"type": "array",
|
|
295
293
|
"items": {
|
|
296
294
|
"$ref": "#/definitions/AgentCapabilityCatalog/properties/modes/items"
|
|
297
295
|
},
|
|
298
|
-
"description": "Canonical modes that may mutate a tree (agent
|
|
296
|
+
"description": "Canonical modes that may mutate a tree (agent)."
|
|
299
297
|
},
|
|
300
298
|
"isolationKinds": {
|
|
301
299
|
"type": "array",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"string",
|
|
14
14
|
"null"
|
|
15
15
|
],
|
|
16
|
-
"description": "The gate's
|
|
16
|
+
"description": "The gate's apply-eligibility classification (e.g. needs_review | not_verified | no_changes | ok) when known."
|
|
17
17
|
},
|
|
18
18
|
"reason": {
|
|
19
19
|
"type": [
|