@claudexor/schema 5.0.2 → 5.1.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/account-routing-evidence.d.ts +256 -0
- package/dist/account-routing-evidence.d.ts.map +1 -1
- package/dist/account-routing-evidence.js +27 -2
- package/dist/account-routing-evidence.js.map +1 -1
- package/dist/agent-capabilities.d.ts +3 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +6 -2
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/attachment.d.ts +103 -6
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +32 -6
- package/dist/attachment.js.map +1 -1
- package/dist/browser-evidence.d.ts +85 -0
- package/dist/browser-evidence.d.ts.map +1 -0
- package/dist/browser-evidence.js +72 -0
- package/dist/browser-evidence.js.map +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/control-gc.d.ts +30 -0
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +28 -1
- package/dist/control-gc.js.map +1 -1
- package/dist/control-operation-responses.d.ts +438 -36
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +11 -2
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-process-scope.d.ts +34 -0
- package/dist/control-process-scope.d.ts.map +1 -1
- package/dist/control-process-scope.js +13 -0
- package/dist/control-process-scope.js.map +1 -1
- package/dist/control-run-detail.d.ts +785 -89
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-failure.d.ts +29 -6
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +28 -3
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control-trust.d.ts +8 -0
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +4 -0
- package/dist/control-trust.js.map +1 -1
- package/dist/control-web-evidence.d.ts +125 -0
- package/dist/control-web-evidence.d.ts.map +1 -0
- package/dist/control-web-evidence.js +109 -0
- package/dist/control-web-evidence.js.map +1 -0
- package/dist/control.d.ts +292 -98
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +43 -49
- package/dist/control.js.map +1 -1
- package/dist/credential-profile.d.ts +4 -3
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +4 -3
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +9 -9
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +2 -0
- package/dist/decision.js.map +1 -1
- package/dist/deferred-message.d.ts +646 -0
- package/dist/deferred-message.d.ts.map +1 -1
- package/dist/deferred-message.js +16 -2
- package/dist/deferred-message.js.map +1 -1
- package/dist/events.d.ts +6 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +1 -0
- package/dist/events.js.map +1 -1
- package/dist/harness-confinement.js +1 -1
- package/dist/harness-confinement.js.map +1 -1
- package/dist/harness-input.d.ts +12 -0
- package/dist/harness-input.d.ts.map +1 -1
- package/dist/harness-input.js +11 -1
- package/dist/harness-input.js.map +1 -1
- package/dist/harness-interaction.d.ts +20 -0
- package/dist/harness-interaction.d.ts.map +1 -1
- package/dist/harness-interaction.js +36 -0
- package/dist/harness-interaction.js.map +1 -1
- package/dist/harness.d.ts +95 -19
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +16 -15
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +363 -50
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-wait.d.ts +126 -0
- package/dist/mcp-run-wait.d.ts.map +1 -1
- package/dist/operation.d.ts +1 -1
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +1 -1
- package/dist/operation.js.map +1 -1
- package/dist/process-scope.d.ts +154 -0
- package/dist/process-scope.d.ts.map +1 -1
- package/dist/process-scope.js +16 -1
- package/dist/process-scope.js.map +1 -1
- package/dist/quota.d.ts +14 -0
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +14 -0
- package/dist/quota.js.map +1 -1
- package/dist/rate-limit.d.ts +3 -0
- package/dist/rate-limit.d.ts.map +1 -1
- package/dist/rate-limit.js +4 -0
- package/dist/rate-limit.js.map +1 -1
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +11 -5
- package/dist/raw.js.map +1 -1
- package/dist/route-controls.d.ts +49 -0
- package/dist/route-controls.d.ts.map +1 -0
- package/dist/route-controls.js +53 -0
- package/dist/route-controls.js.map +1 -0
- package/dist/route-health.d.ts +23 -23
- package/dist/route-health.js +1 -1
- package/dist/route-health.js.map +1 -1
- package/dist/run-continuation.d.ts +6 -6
- package/dist/run-continuity.d.ts +7 -7
- package/dist/run-continuity.d.ts.map +1 -1
- package/dist/run-continuity.js +2 -1
- package/dist/run-continuity.js.map +1 -1
- package/dist/run-facts.d.ts +5 -5
- package/dist/run-facts.js +1 -1
- package/dist/run-facts.js.map +1 -1
- package/dist/status-projection.d.ts +3 -2
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +5 -2
- package/dist/status-projection.js.map +1 -1
- package/dist/task-group.d.ts +3 -0
- package/dist/task-group.d.ts.map +1 -1
- package/dist/task-group.js +11 -1
- package/dist/task-group.js.map +1 -1
- package/dist/task.d.ts +2 -2
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +4 -4
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +602 -117
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +17 -88
- package/dist/telemetry.js.map +1 -1
- package/dist/thread-export.d.ts +847 -0
- package/dist/thread-export.d.ts.map +1 -0
- package/dist/thread-export.js +238 -0
- package/dist/thread-export.js.map +1 -0
- package/dist/thread-history.d.ts +248 -132
- package/dist/thread-history.d.ts.map +1 -1
- package/dist/thread.d.ts +72 -6
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +19 -3
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +172 -21
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +114 -29
- package/dist/tool-ref.js.map +1 -1
- package/dist/web-evidence.d.ts +91 -0
- package/dist/web-evidence.d.ts.map +1 -0
- package/dist/web-evidence.js +77 -0
- package/dist/web-evidence.js.map +1 -0
- package/dist/workspace.js +1 -1
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +20 -2
- package/generated/ControlAccountRoutingEvidenceResponse.schema.json +61 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +2 -2
- package/generated/ControlCredentialProfilesResourcesResponse.schema.json +2 -2
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +2 -2
- package/generated/ControlGcLastResponse.schema.json +22 -0
- package/generated/ControlGcReceipt.schema.json +13 -1
- package/generated/ControlHarnessListResponse.schema.json +2 -2
- package/generated/ControlQueuedRunInfo.schema.json +1 -1
- package/generated/ControlResource.schema.json +5 -0
- package/generated/ControlResourceRelease.schema.json +44 -0
- package/generated/ControlResourceReleaseRequest.schema.json +27 -0
- package/generated/ControlRetainedEnvelope.schema.json +2 -1
- package/generated/ControlRouteHealth.schema.json +13 -1
- package/generated/ControlRunControlResponse.schema.json +41 -3
- package/generated/ControlRunDecisionRequest.schema.json +8 -2
- package/generated/ControlRunDecisionResponse.schema.json +4 -3
- package/generated/ControlRunDetail.schema.json +337 -10
- package/generated/ControlRunListResponse.schema.json +296 -7
- package/generated/ControlRunRetryResponse.schema.json +1 -1
- package/generated/ControlRunStartInfo.schema.json +1 -1
- package/generated/ControlRunStartResponse.schema.json +2 -2
- package/generated/ControlRunSummary.schema.json +296 -7
- package/generated/ControlThreadDetail.schema.json +1 -0
- package/generated/ControlThreadTurnResponse.schema.json +9 -0
- package/generated/ControlTrustListResponse.schema.json +8 -0
- package/generated/ControlTrustState.schema.json +8 -0
- package/generated/ControlUploadImport.schema.json +12 -2
- package/generated/ControlUploadImportRequest.schema.json +5 -0
- package/generated/DecisionRecord.schema.json +1 -0
- package/generated/DeferredMessageDetail.schema.json +43 -7
- package/generated/DeferredMessageProjection.schema.json +41 -3
- package/generated/DeferredMessageReadResult.schema.json +42 -4
- package/generated/DeferredMessageReceipt.schema.json +41 -3
- package/generated/EnvelopeCustody.schema.json +3 -2
- package/generated/GlobalConfig.schema.json +1 -1
- package/generated/HarnessEvent.schema.json +140 -4
- package/generated/HarnessManifest.schema.json +2 -2
- package/generated/HarnessStatusDto.schema.json +2 -2
- package/generated/McpAccountsToolResult.schema.json +62 -2
- package/generated/McpRunHandleResult.schema.json +90 -6
- package/generated/McpRunToolResult.schema.json +89 -6
- package/generated/McpRunWaitResult.schema.json +41 -3
- package/generated/McpThreadTurnResult.schema.json +9 -0
- package/generated/RawContextPacket.schema.json +6 -4
- package/generated/RawGitPatchEnvelope.schema.json +1 -1
- package/generated/RoutePoolDegradedPayload.schema.json +2 -1
- package/generated/RunContinuityReceipt.schema.json +2 -1
- package/generated/RunFacts.schema.json +1 -0
- package/generated/RunFailure.schema.json +46 -2
- package/generated/RunResumable.schema.json +2 -1
- package/generated/RunTelemetry.schema.json +288 -7
- package/generated/TaskContract.schema.json +3 -3
- package/generated/TaskGroupReceipt.schema.json +1 -1
- package/generated/Thread.schema.json +41 -0
- package/generated/ThreadExportManifest.schema.json +461 -0
- package/generated/ThreadExportReceipt.schema.json +94 -0
- package/generated/ThreadHistoryPage.schema.json +47 -2
- package/generated/ThreadRetireAbandonRequest.schema.json +21 -0
- package/generated/ThreadRetireRequest.schema.json +41 -0
- package/generated/ThreadRetirement.schema.json +175 -0
- package/generated/ThreadTurn.schema.json +1 -1
- package/generated/WorkspaceEnvelope.schema.json +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exact thread export and conditional retirement. One schema-defined producer
|
|
3
|
+
* (the engine) and the in-repo `claudexor thread export|retire` consumer; a
|
|
4
|
+
* host that keeps the bundle speaks the same contract. Catalog presence of
|
|
5
|
+
* `POST /v2/threads/:id/retire` is the feature marker (INV-138).
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod/v3";
|
|
8
|
+
export declare const THREAD_EXPORT_SCHEMA_VERSION = 1;
|
|
9
|
+
/** Every reason a closure is held back. Any gap makes the export partial and
|
|
10
|
+
* forbids retirement; an unknown state never becomes an empty success. */
|
|
11
|
+
export declare const ThreadExportGapCode: z.ZodEnum<["closure_not_quiescent", "closure_awaiting_decision", "closure_partition_unavailable", "command_record_not_retained", "run_directory_missing", "run_files_expired", "run_tree_unreadable", "run_observations_unreadable", "attachment_unavailable", "native_session_unattributed", "native_session_unsupported", "native_format_unqualified", "native_session_missing", "native_session_unreadable", "native_projection_failed", "lane_unreadable", "lane_credentials_undeclared", "isolated_worktree_present"]>;
|
|
12
|
+
export type ThreadExportGapCode = z.infer<typeof ThreadExportGapCode>;
|
|
13
|
+
export declare const ThreadExportGap: z.ZodObject<{
|
|
14
|
+
code: z.ZodEnum<["closure_not_quiescent", "closure_awaiting_decision", "closure_partition_unavailable", "command_record_not_retained", "run_directory_missing", "run_files_expired", "run_tree_unreadable", "run_observations_unreadable", "attachment_unavailable", "native_session_unattributed", "native_session_unsupported", "native_format_unqualified", "native_session_missing", "native_session_unreadable", "native_projection_failed", "lane_unreadable", "lane_credentials_undeclared", "isolated_worktree_present"]>;
|
|
15
|
+
subject: z.ZodString;
|
|
16
|
+
message: z.ZodString;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
19
|
+
subject: string;
|
|
20
|
+
message: string;
|
|
21
|
+
}, {
|
|
22
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
23
|
+
subject: string;
|
|
24
|
+
message: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type ThreadExportGap = z.infer<typeof ThreadExportGap>;
|
|
27
|
+
export declare const ThreadExportItemPlane: z.ZodEnum<["sql", "run", "native", "lane", "resource", "projection"]>;
|
|
28
|
+
export type ThreadExportItemPlane = z.infer<typeof ThreadExportItemPlane>;
|
|
29
|
+
export declare const ThreadExportItemKind: z.ZodEnum<["file", "symlink", "special", "credential_store"]>;
|
|
30
|
+
export type ThreadExportItemKind = z.infer<typeof ThreadExportItemKind>;
|
|
31
|
+
export declare const ThreadExportItem: z.ZodObject<{
|
|
32
|
+
itemId: z.ZodString;
|
|
33
|
+
plane: z.ZodEnum<["sql", "run", "native", "lane", "resource", "projection"]>;
|
|
34
|
+
path: z.ZodString;
|
|
35
|
+
kind: z.ZodEnum<["file", "symlink", "special", "credential_store"]>;
|
|
36
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
mtimeMs: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
39
|
+
projectionOf: z.ZodNullable<z.ZodString>;
|
|
40
|
+
linkTarget: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, "strict", z.ZodTypeAny, {
|
|
42
|
+
itemId: string;
|
|
43
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
44
|
+
path: string;
|
|
45
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
46
|
+
sizeBytes: number | null;
|
|
47
|
+
mtimeMs: number | null;
|
|
48
|
+
sha256: string | null;
|
|
49
|
+
projectionOf: string | null;
|
|
50
|
+
linkTarget: string | null;
|
|
51
|
+
}, {
|
|
52
|
+
itemId: string;
|
|
53
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
54
|
+
path: string;
|
|
55
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
56
|
+
sizeBytes: number | null;
|
|
57
|
+
mtimeMs: number | null;
|
|
58
|
+
sha256: string | null;
|
|
59
|
+
projectionOf: string | null;
|
|
60
|
+
linkTarget: string | null;
|
|
61
|
+
}>;
|
|
62
|
+
export type ThreadExportItem = z.infer<typeof ThreadExportItem>;
|
|
63
|
+
export declare const ThreadExportSessionSource: z.ZodEnum<["attempt_event", "run_event", "reviewer_stream", "session_capsule", "run_resumable", "thread_session"]>;
|
|
64
|
+
export declare const ThreadExportSession: z.ZodObject<{
|
|
65
|
+
harness: z.ZodString;
|
|
66
|
+
nativeSessionId: z.ZodString;
|
|
67
|
+
status: z.ZodEnum<["exported", "missing", "unsupported", "unqualified", "unreadable"]>;
|
|
68
|
+
provenance: z.ZodArray<z.ZodObject<{
|
|
69
|
+
source: z.ZodEnum<["attempt_event", "run_event", "reviewer_stream", "session_capsule", "run_resumable", "thread_session"]>;
|
|
70
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
71
|
+
attemptId: z.ZodNullable<z.ZodString>;
|
|
72
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
73
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
74
|
+
}, "strict", z.ZodTypeAny, {
|
|
75
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
76
|
+
runId: string | null;
|
|
77
|
+
attemptId: string | null;
|
|
78
|
+
profileId: string | null;
|
|
79
|
+
cwd: string | null;
|
|
80
|
+
}, {
|
|
81
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
82
|
+
runId: string | null;
|
|
83
|
+
attemptId: string | null;
|
|
84
|
+
profileId: string | null;
|
|
85
|
+
cwd: string | null;
|
|
86
|
+
}>, "many">;
|
|
87
|
+
copies: z.ZodArray<z.ZodObject<{
|
|
88
|
+
storeKey: z.ZodString;
|
|
89
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
}, "strict", z.ZodTypeAny, {
|
|
91
|
+
storeKey: string;
|
|
92
|
+
profileId: string | null;
|
|
93
|
+
}, {
|
|
94
|
+
storeKey: string;
|
|
95
|
+
profileId: string | null;
|
|
96
|
+
}>, "many">;
|
|
97
|
+
}, "strict", z.ZodTypeAny, {
|
|
98
|
+
harness: string;
|
|
99
|
+
nativeSessionId: string;
|
|
100
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
101
|
+
provenance: {
|
|
102
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
103
|
+
runId: string | null;
|
|
104
|
+
attemptId: string | null;
|
|
105
|
+
profileId: string | null;
|
|
106
|
+
cwd: string | null;
|
|
107
|
+
}[];
|
|
108
|
+
copies: {
|
|
109
|
+
storeKey: string;
|
|
110
|
+
profileId: string | null;
|
|
111
|
+
}[];
|
|
112
|
+
}, {
|
|
113
|
+
harness: string;
|
|
114
|
+
nativeSessionId: string;
|
|
115
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
116
|
+
provenance: {
|
|
117
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
118
|
+
runId: string | null;
|
|
119
|
+
attemptId: string | null;
|
|
120
|
+
profileId: string | null;
|
|
121
|
+
cwd: string | null;
|
|
122
|
+
}[];
|
|
123
|
+
copies: {
|
|
124
|
+
storeKey: string;
|
|
125
|
+
profileId: string | null;
|
|
126
|
+
}[];
|
|
127
|
+
}>;
|
|
128
|
+
export type ThreadExportSession = z.infer<typeof ThreadExportSession>;
|
|
129
|
+
export declare const ThreadExportManifest: z.ZodEffects<z.ZodObject<{
|
|
130
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
131
|
+
storeId: z.ZodString;
|
|
132
|
+
threadId: z.ZodString;
|
|
133
|
+
exportId: z.ZodString;
|
|
134
|
+
closureDigest: z.ZodString;
|
|
135
|
+
threadState: z.ZodEnum<["active", "closed", "trashed", "purged"]>;
|
|
136
|
+
headRevision: z.ZodNumber;
|
|
137
|
+
workspaceMode: z.ZodEnum<["in_place", "isolated", "delegated"]>;
|
|
138
|
+
coverage: z.ZodEnum<["complete", "partial"]>;
|
|
139
|
+
retirable: z.ZodBoolean;
|
|
140
|
+
gaps: z.ZodArray<z.ZodObject<{
|
|
141
|
+
code: z.ZodEnum<["closure_not_quiescent", "closure_awaiting_decision", "closure_partition_unavailable", "command_record_not_retained", "run_directory_missing", "run_files_expired", "run_tree_unreadable", "run_observations_unreadable", "attachment_unavailable", "native_session_unattributed", "native_session_unsupported", "native_format_unqualified", "native_session_missing", "native_session_unreadable", "native_projection_failed", "lane_unreadable", "lane_credentials_undeclared", "isolated_worktree_present"]>;
|
|
142
|
+
subject: z.ZodString;
|
|
143
|
+
message: z.ZodString;
|
|
144
|
+
}, "strict", z.ZodTypeAny, {
|
|
145
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
146
|
+
subject: string;
|
|
147
|
+
message: string;
|
|
148
|
+
}, {
|
|
149
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
150
|
+
subject: string;
|
|
151
|
+
message: string;
|
|
152
|
+
}>, "many">;
|
|
153
|
+
disclosures: z.ZodArray<z.ZodObject<{
|
|
154
|
+
harness: z.ZodString;
|
|
155
|
+
source: z.ZodString;
|
|
156
|
+
reason: z.ZodString;
|
|
157
|
+
}, "strict", z.ZodTypeAny, {
|
|
158
|
+
harness: string;
|
|
159
|
+
source: string;
|
|
160
|
+
reason: string;
|
|
161
|
+
}, {
|
|
162
|
+
harness: string;
|
|
163
|
+
source: string;
|
|
164
|
+
reason: string;
|
|
165
|
+
}>, "many">;
|
|
166
|
+
closure: z.ZodObject<{
|
|
167
|
+
turns: z.ZodArray<z.ZodObject<{
|
|
168
|
+
turnId: z.ZodString;
|
|
169
|
+
ordinal: z.ZodNumber;
|
|
170
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
171
|
+
promptSha256: z.ZodString;
|
|
172
|
+
}, "strict", z.ZodTypeAny, {
|
|
173
|
+
turnId: string;
|
|
174
|
+
ordinal: number;
|
|
175
|
+
runId: string | null;
|
|
176
|
+
promptSha256: string;
|
|
177
|
+
}, {
|
|
178
|
+
turnId: string;
|
|
179
|
+
ordinal: number;
|
|
180
|
+
runId: string | null;
|
|
181
|
+
promptSha256: string;
|
|
182
|
+
}>, "many">;
|
|
183
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
184
|
+
jobId: z.ZodString;
|
|
185
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
186
|
+
state: z.ZodString;
|
|
187
|
+
kind: z.ZodString;
|
|
188
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
189
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
190
|
+
continueFrom: z.ZodNullable<z.ZodString>;
|
|
191
|
+
delegatedFrom: z.ZodNullable<z.ZodString>;
|
|
192
|
+
}, "strict", z.ZodTypeAny, {
|
|
193
|
+
jobId: string;
|
|
194
|
+
runId: string | null;
|
|
195
|
+
state: string;
|
|
196
|
+
kind: string;
|
|
197
|
+
threadId: string | null;
|
|
198
|
+
turnId: string | null;
|
|
199
|
+
continueFrom: string | null;
|
|
200
|
+
delegatedFrom: string | null;
|
|
201
|
+
}, {
|
|
202
|
+
jobId: string;
|
|
203
|
+
runId: string | null;
|
|
204
|
+
state: string;
|
|
205
|
+
kind: string;
|
|
206
|
+
threadId: string | null;
|
|
207
|
+
turnId: string | null;
|
|
208
|
+
continueFrom: string | null;
|
|
209
|
+
delegatedFrom: string | null;
|
|
210
|
+
}>, "many">;
|
|
211
|
+
}, "strict", z.ZodTypeAny, {
|
|
212
|
+
turns: {
|
|
213
|
+
turnId: string;
|
|
214
|
+
ordinal: number;
|
|
215
|
+
runId: string | null;
|
|
216
|
+
promptSha256: string;
|
|
217
|
+
}[];
|
|
218
|
+
runs: {
|
|
219
|
+
jobId: string;
|
|
220
|
+
runId: string | null;
|
|
221
|
+
state: string;
|
|
222
|
+
kind: string;
|
|
223
|
+
threadId: string | null;
|
|
224
|
+
turnId: string | null;
|
|
225
|
+
continueFrom: string | null;
|
|
226
|
+
delegatedFrom: string | null;
|
|
227
|
+
}[];
|
|
228
|
+
}, {
|
|
229
|
+
turns: {
|
|
230
|
+
turnId: string;
|
|
231
|
+
ordinal: number;
|
|
232
|
+
runId: string | null;
|
|
233
|
+
promptSha256: string;
|
|
234
|
+
}[];
|
|
235
|
+
runs: {
|
|
236
|
+
jobId: string;
|
|
237
|
+
runId: string | null;
|
|
238
|
+
state: string;
|
|
239
|
+
kind: string;
|
|
240
|
+
threadId: string | null;
|
|
241
|
+
turnId: string | null;
|
|
242
|
+
continueFrom: string | null;
|
|
243
|
+
delegatedFrom: string | null;
|
|
244
|
+
}[];
|
|
245
|
+
}>;
|
|
246
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
247
|
+
harness: z.ZodString;
|
|
248
|
+
nativeSessionId: z.ZodString;
|
|
249
|
+
status: z.ZodEnum<["exported", "missing", "unsupported", "unqualified", "unreadable"]>;
|
|
250
|
+
provenance: z.ZodArray<z.ZodObject<{
|
|
251
|
+
source: z.ZodEnum<["attempt_event", "run_event", "reviewer_stream", "session_capsule", "run_resumable", "thread_session"]>;
|
|
252
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
253
|
+
attemptId: z.ZodNullable<z.ZodString>;
|
|
254
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
255
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
256
|
+
}, "strict", z.ZodTypeAny, {
|
|
257
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
258
|
+
runId: string | null;
|
|
259
|
+
attemptId: string | null;
|
|
260
|
+
profileId: string | null;
|
|
261
|
+
cwd: string | null;
|
|
262
|
+
}, {
|
|
263
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
264
|
+
runId: string | null;
|
|
265
|
+
attemptId: string | null;
|
|
266
|
+
profileId: string | null;
|
|
267
|
+
cwd: string | null;
|
|
268
|
+
}>, "many">;
|
|
269
|
+
copies: z.ZodArray<z.ZodObject<{
|
|
270
|
+
storeKey: z.ZodString;
|
|
271
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
272
|
+
}, "strict", z.ZodTypeAny, {
|
|
273
|
+
storeKey: string;
|
|
274
|
+
profileId: string | null;
|
|
275
|
+
}, {
|
|
276
|
+
storeKey: string;
|
|
277
|
+
profileId: string | null;
|
|
278
|
+
}>, "many">;
|
|
279
|
+
}, "strict", z.ZodTypeAny, {
|
|
280
|
+
harness: string;
|
|
281
|
+
nativeSessionId: string;
|
|
282
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
283
|
+
provenance: {
|
|
284
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
285
|
+
runId: string | null;
|
|
286
|
+
attemptId: string | null;
|
|
287
|
+
profileId: string | null;
|
|
288
|
+
cwd: string | null;
|
|
289
|
+
}[];
|
|
290
|
+
copies: {
|
|
291
|
+
storeKey: string;
|
|
292
|
+
profileId: string | null;
|
|
293
|
+
}[];
|
|
294
|
+
}, {
|
|
295
|
+
harness: string;
|
|
296
|
+
nativeSessionId: string;
|
|
297
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
298
|
+
provenance: {
|
|
299
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
300
|
+
runId: string | null;
|
|
301
|
+
attemptId: string | null;
|
|
302
|
+
profileId: string | null;
|
|
303
|
+
cwd: string | null;
|
|
304
|
+
}[];
|
|
305
|
+
copies: {
|
|
306
|
+
storeKey: string;
|
|
307
|
+
profileId: string | null;
|
|
308
|
+
}[];
|
|
309
|
+
}>, "many">;
|
|
310
|
+
items: z.ZodArray<z.ZodObject<{
|
|
311
|
+
itemId: z.ZodString;
|
|
312
|
+
plane: z.ZodEnum<["sql", "run", "native", "lane", "resource", "projection"]>;
|
|
313
|
+
path: z.ZodString;
|
|
314
|
+
kind: z.ZodEnum<["file", "symlink", "special", "credential_store"]>;
|
|
315
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
316
|
+
mtimeMs: z.ZodNullable<z.ZodNumber>;
|
|
317
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
318
|
+
projectionOf: z.ZodNullable<z.ZodString>;
|
|
319
|
+
linkTarget: z.ZodNullable<z.ZodString>;
|
|
320
|
+
}, "strict", z.ZodTypeAny, {
|
|
321
|
+
itemId: string;
|
|
322
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
323
|
+
path: string;
|
|
324
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
325
|
+
sizeBytes: number | null;
|
|
326
|
+
mtimeMs: number | null;
|
|
327
|
+
sha256: string | null;
|
|
328
|
+
projectionOf: string | null;
|
|
329
|
+
linkTarget: string | null;
|
|
330
|
+
}, {
|
|
331
|
+
itemId: string;
|
|
332
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
333
|
+
path: string;
|
|
334
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
335
|
+
sizeBytes: number | null;
|
|
336
|
+
mtimeMs: number | null;
|
|
337
|
+
sha256: string | null;
|
|
338
|
+
projectionOf: string | null;
|
|
339
|
+
linkTarget: string | null;
|
|
340
|
+
}>, "many">;
|
|
341
|
+
}, "strict", z.ZodTypeAny, {
|
|
342
|
+
schemaVersion: 1;
|
|
343
|
+
storeId: string;
|
|
344
|
+
threadId: string;
|
|
345
|
+
exportId: string;
|
|
346
|
+
closureDigest: string;
|
|
347
|
+
threadState: "active" | "closed" | "purged" | "trashed";
|
|
348
|
+
headRevision: number;
|
|
349
|
+
workspaceMode: "delegated" | "in_place" | "isolated";
|
|
350
|
+
coverage: "complete" | "partial";
|
|
351
|
+
retirable: boolean;
|
|
352
|
+
gaps: {
|
|
353
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
354
|
+
subject: string;
|
|
355
|
+
message: string;
|
|
356
|
+
}[];
|
|
357
|
+
disclosures: {
|
|
358
|
+
harness: string;
|
|
359
|
+
source: string;
|
|
360
|
+
reason: string;
|
|
361
|
+
}[];
|
|
362
|
+
closure: {
|
|
363
|
+
turns: {
|
|
364
|
+
turnId: string;
|
|
365
|
+
ordinal: number;
|
|
366
|
+
runId: string | null;
|
|
367
|
+
promptSha256: string;
|
|
368
|
+
}[];
|
|
369
|
+
runs: {
|
|
370
|
+
jobId: string;
|
|
371
|
+
runId: string | null;
|
|
372
|
+
state: string;
|
|
373
|
+
kind: string;
|
|
374
|
+
threadId: string | null;
|
|
375
|
+
turnId: string | null;
|
|
376
|
+
continueFrom: string | null;
|
|
377
|
+
delegatedFrom: string | null;
|
|
378
|
+
}[];
|
|
379
|
+
};
|
|
380
|
+
sessions: {
|
|
381
|
+
harness: string;
|
|
382
|
+
nativeSessionId: string;
|
|
383
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
384
|
+
provenance: {
|
|
385
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
386
|
+
runId: string | null;
|
|
387
|
+
attemptId: string | null;
|
|
388
|
+
profileId: string | null;
|
|
389
|
+
cwd: string | null;
|
|
390
|
+
}[];
|
|
391
|
+
copies: {
|
|
392
|
+
storeKey: string;
|
|
393
|
+
profileId: string | null;
|
|
394
|
+
}[];
|
|
395
|
+
}[];
|
|
396
|
+
items: {
|
|
397
|
+
itemId: string;
|
|
398
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
399
|
+
path: string;
|
|
400
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
401
|
+
sizeBytes: number | null;
|
|
402
|
+
mtimeMs: number | null;
|
|
403
|
+
sha256: string | null;
|
|
404
|
+
projectionOf: string | null;
|
|
405
|
+
linkTarget: string | null;
|
|
406
|
+
}[];
|
|
407
|
+
}, {
|
|
408
|
+
schemaVersion: 1;
|
|
409
|
+
storeId: string;
|
|
410
|
+
threadId: string;
|
|
411
|
+
exportId: string;
|
|
412
|
+
closureDigest: string;
|
|
413
|
+
threadState: "active" | "closed" | "purged" | "trashed";
|
|
414
|
+
headRevision: number;
|
|
415
|
+
workspaceMode: "delegated" | "in_place" | "isolated";
|
|
416
|
+
coverage: "complete" | "partial";
|
|
417
|
+
retirable: boolean;
|
|
418
|
+
gaps: {
|
|
419
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
420
|
+
subject: string;
|
|
421
|
+
message: string;
|
|
422
|
+
}[];
|
|
423
|
+
disclosures: {
|
|
424
|
+
harness: string;
|
|
425
|
+
source: string;
|
|
426
|
+
reason: string;
|
|
427
|
+
}[];
|
|
428
|
+
closure: {
|
|
429
|
+
turns: {
|
|
430
|
+
turnId: string;
|
|
431
|
+
ordinal: number;
|
|
432
|
+
runId: string | null;
|
|
433
|
+
promptSha256: string;
|
|
434
|
+
}[];
|
|
435
|
+
runs: {
|
|
436
|
+
jobId: string;
|
|
437
|
+
runId: string | null;
|
|
438
|
+
state: string;
|
|
439
|
+
kind: string;
|
|
440
|
+
threadId: string | null;
|
|
441
|
+
turnId: string | null;
|
|
442
|
+
continueFrom: string | null;
|
|
443
|
+
delegatedFrom: string | null;
|
|
444
|
+
}[];
|
|
445
|
+
};
|
|
446
|
+
sessions: {
|
|
447
|
+
harness: string;
|
|
448
|
+
nativeSessionId: string;
|
|
449
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
450
|
+
provenance: {
|
|
451
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
452
|
+
runId: string | null;
|
|
453
|
+
attemptId: string | null;
|
|
454
|
+
profileId: string | null;
|
|
455
|
+
cwd: string | null;
|
|
456
|
+
}[];
|
|
457
|
+
copies: {
|
|
458
|
+
storeKey: string;
|
|
459
|
+
profileId: string | null;
|
|
460
|
+
}[];
|
|
461
|
+
}[];
|
|
462
|
+
items: {
|
|
463
|
+
itemId: string;
|
|
464
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
465
|
+
path: string;
|
|
466
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
467
|
+
sizeBytes: number | null;
|
|
468
|
+
mtimeMs: number | null;
|
|
469
|
+
sha256: string | null;
|
|
470
|
+
projectionOf: string | null;
|
|
471
|
+
linkTarget: string | null;
|
|
472
|
+
}[];
|
|
473
|
+
}>, {
|
|
474
|
+
schemaVersion: 1;
|
|
475
|
+
storeId: string;
|
|
476
|
+
threadId: string;
|
|
477
|
+
exportId: string;
|
|
478
|
+
closureDigest: string;
|
|
479
|
+
threadState: "active" | "closed" | "purged" | "trashed";
|
|
480
|
+
headRevision: number;
|
|
481
|
+
workspaceMode: "delegated" | "in_place" | "isolated";
|
|
482
|
+
coverage: "complete" | "partial";
|
|
483
|
+
retirable: boolean;
|
|
484
|
+
gaps: {
|
|
485
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
486
|
+
subject: string;
|
|
487
|
+
message: string;
|
|
488
|
+
}[];
|
|
489
|
+
disclosures: {
|
|
490
|
+
harness: string;
|
|
491
|
+
source: string;
|
|
492
|
+
reason: string;
|
|
493
|
+
}[];
|
|
494
|
+
closure: {
|
|
495
|
+
turns: {
|
|
496
|
+
turnId: string;
|
|
497
|
+
ordinal: number;
|
|
498
|
+
runId: string | null;
|
|
499
|
+
promptSha256: string;
|
|
500
|
+
}[];
|
|
501
|
+
runs: {
|
|
502
|
+
jobId: string;
|
|
503
|
+
runId: string | null;
|
|
504
|
+
state: string;
|
|
505
|
+
kind: string;
|
|
506
|
+
threadId: string | null;
|
|
507
|
+
turnId: string | null;
|
|
508
|
+
continueFrom: string | null;
|
|
509
|
+
delegatedFrom: string | null;
|
|
510
|
+
}[];
|
|
511
|
+
};
|
|
512
|
+
sessions: {
|
|
513
|
+
harness: string;
|
|
514
|
+
nativeSessionId: string;
|
|
515
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
516
|
+
provenance: {
|
|
517
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
518
|
+
runId: string | null;
|
|
519
|
+
attemptId: string | null;
|
|
520
|
+
profileId: string | null;
|
|
521
|
+
cwd: string | null;
|
|
522
|
+
}[];
|
|
523
|
+
copies: {
|
|
524
|
+
storeKey: string;
|
|
525
|
+
profileId: string | null;
|
|
526
|
+
}[];
|
|
527
|
+
}[];
|
|
528
|
+
items: {
|
|
529
|
+
itemId: string;
|
|
530
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
531
|
+
path: string;
|
|
532
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
533
|
+
sizeBytes: number | null;
|
|
534
|
+
mtimeMs: number | null;
|
|
535
|
+
sha256: string | null;
|
|
536
|
+
projectionOf: string | null;
|
|
537
|
+
linkTarget: string | null;
|
|
538
|
+
}[];
|
|
539
|
+
}, {
|
|
540
|
+
schemaVersion: 1;
|
|
541
|
+
storeId: string;
|
|
542
|
+
threadId: string;
|
|
543
|
+
exportId: string;
|
|
544
|
+
closureDigest: string;
|
|
545
|
+
threadState: "active" | "closed" | "purged" | "trashed";
|
|
546
|
+
headRevision: number;
|
|
547
|
+
workspaceMode: "delegated" | "in_place" | "isolated";
|
|
548
|
+
coverage: "complete" | "partial";
|
|
549
|
+
retirable: boolean;
|
|
550
|
+
gaps: {
|
|
551
|
+
code: "attachment_unavailable" | "closure_awaiting_decision" | "closure_not_quiescent" | "closure_partition_unavailable" | "command_record_not_retained" | "isolated_worktree_present" | "lane_credentials_undeclared" | "lane_unreadable" | "native_format_unqualified" | "native_projection_failed" | "native_session_missing" | "native_session_unattributed" | "native_session_unreadable" | "native_session_unsupported" | "run_directory_missing" | "run_files_expired" | "run_observations_unreadable" | "run_tree_unreadable";
|
|
552
|
+
subject: string;
|
|
553
|
+
message: string;
|
|
554
|
+
}[];
|
|
555
|
+
disclosures: {
|
|
556
|
+
harness: string;
|
|
557
|
+
source: string;
|
|
558
|
+
reason: string;
|
|
559
|
+
}[];
|
|
560
|
+
closure: {
|
|
561
|
+
turns: {
|
|
562
|
+
turnId: string;
|
|
563
|
+
ordinal: number;
|
|
564
|
+
runId: string | null;
|
|
565
|
+
promptSha256: string;
|
|
566
|
+
}[];
|
|
567
|
+
runs: {
|
|
568
|
+
jobId: string;
|
|
569
|
+
runId: string | null;
|
|
570
|
+
state: string;
|
|
571
|
+
kind: string;
|
|
572
|
+
threadId: string | null;
|
|
573
|
+
turnId: string | null;
|
|
574
|
+
continueFrom: string | null;
|
|
575
|
+
delegatedFrom: string | null;
|
|
576
|
+
}[];
|
|
577
|
+
};
|
|
578
|
+
sessions: {
|
|
579
|
+
harness: string;
|
|
580
|
+
nativeSessionId: string;
|
|
581
|
+
status: "exported" | "missing" | "unqualified" | "unreadable" | "unsupported";
|
|
582
|
+
provenance: {
|
|
583
|
+
source: "attempt_event" | "reviewer_stream" | "run_event" | "run_resumable" | "session_capsule" | "thread_session";
|
|
584
|
+
runId: string | null;
|
|
585
|
+
attemptId: string | null;
|
|
586
|
+
profileId: string | null;
|
|
587
|
+
cwd: string | null;
|
|
588
|
+
}[];
|
|
589
|
+
copies: {
|
|
590
|
+
storeKey: string;
|
|
591
|
+
profileId: string | null;
|
|
592
|
+
}[];
|
|
593
|
+
}[];
|
|
594
|
+
items: {
|
|
595
|
+
itemId: string;
|
|
596
|
+
plane: "lane" | "native" | "projection" | "resource" | "run" | "sql";
|
|
597
|
+
path: string;
|
|
598
|
+
kind: "credential_store" | "file" | "special" | "symlink";
|
|
599
|
+
sizeBytes: number | null;
|
|
600
|
+
mtimeMs: number | null;
|
|
601
|
+
sha256: string | null;
|
|
602
|
+
projectionOf: string | null;
|
|
603
|
+
linkTarget: string | null;
|
|
604
|
+
}[];
|
|
605
|
+
}>;
|
|
606
|
+
export type ThreadExportManifest = z.infer<typeof ThreadExportManifest>;
|
|
607
|
+
/** Written last by the consumer: what it received and verified, item by item. */
|
|
608
|
+
export declare const ThreadExportReceipt: z.ZodObject<{
|
|
609
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
610
|
+
storeId: z.ZodString;
|
|
611
|
+
threadId: z.ZodString;
|
|
612
|
+
exportId: z.ZodString;
|
|
613
|
+
closureDigest: z.ZodString;
|
|
614
|
+
contentDigest: z.ZodString;
|
|
615
|
+
laneDigest: z.ZodString;
|
|
616
|
+
coverage: z.ZodEnum<["complete", "partial"]>;
|
|
617
|
+
retirable: z.ZodBoolean;
|
|
618
|
+
transferred: z.ZodArray<z.ZodObject<{
|
|
619
|
+
itemId: z.ZodString;
|
|
620
|
+
path: z.ZodString;
|
|
621
|
+
placedAt: z.ZodOptional<z.ZodString>;
|
|
622
|
+
sizeBytes: z.ZodNumber;
|
|
623
|
+
sha256: z.ZodString;
|
|
624
|
+
}, "strict", z.ZodTypeAny, {
|
|
625
|
+
itemId: string;
|
|
626
|
+
path: string;
|
|
627
|
+
placedAt?: string | undefined;
|
|
628
|
+
sizeBytes: number;
|
|
629
|
+
sha256: string;
|
|
630
|
+
}, {
|
|
631
|
+
itemId: string;
|
|
632
|
+
path: string;
|
|
633
|
+
placedAt?: string | undefined;
|
|
634
|
+
sizeBytes: number;
|
|
635
|
+
sha256: string;
|
|
636
|
+
}>, "many">;
|
|
637
|
+
}, "strict", z.ZodTypeAny, {
|
|
638
|
+
schemaVersion: 1;
|
|
639
|
+
storeId: string;
|
|
640
|
+
threadId: string;
|
|
641
|
+
exportId: string;
|
|
642
|
+
closureDigest: string;
|
|
643
|
+
contentDigest: string;
|
|
644
|
+
laneDigest: string;
|
|
645
|
+
coverage: "complete" | "partial";
|
|
646
|
+
retirable: boolean;
|
|
647
|
+
transferred: {
|
|
648
|
+
itemId: string;
|
|
649
|
+
path: string;
|
|
650
|
+
placedAt?: string | undefined;
|
|
651
|
+
sizeBytes: number;
|
|
652
|
+
sha256: string;
|
|
653
|
+
}[];
|
|
654
|
+
}, {
|
|
655
|
+
schemaVersion: 1;
|
|
656
|
+
storeId: string;
|
|
657
|
+
threadId: string;
|
|
658
|
+
exportId: string;
|
|
659
|
+
closureDigest: string;
|
|
660
|
+
contentDigest: string;
|
|
661
|
+
laneDigest: string;
|
|
662
|
+
coverage: "complete" | "partial";
|
|
663
|
+
retirable: boolean;
|
|
664
|
+
transferred: {
|
|
665
|
+
itemId: string;
|
|
666
|
+
path: string;
|
|
667
|
+
placedAt?: string | undefined;
|
|
668
|
+
sizeBytes: number;
|
|
669
|
+
sha256: string;
|
|
670
|
+
}[];
|
|
671
|
+
}>;
|
|
672
|
+
export type ThreadExportReceipt = z.infer<typeof ThreadExportReceipt>;
|
|
673
|
+
export declare const ThreadRetireRequest: z.ZodObject<{
|
|
674
|
+
operationId: z.ZodString;
|
|
675
|
+
exportId: z.ZodString;
|
|
676
|
+
closureDigest: z.ZodString;
|
|
677
|
+
contentDigest: z.ZodString;
|
|
678
|
+
laneDigest: z.ZodString;
|
|
679
|
+
}, "strict", z.ZodTypeAny, {
|
|
680
|
+
operationId: string;
|
|
681
|
+
exportId: string;
|
|
682
|
+
closureDigest: string;
|
|
683
|
+
contentDigest: string;
|
|
684
|
+
laneDigest: string;
|
|
685
|
+
}, {
|
|
686
|
+
operationId: string;
|
|
687
|
+
exportId: string;
|
|
688
|
+
closureDigest: string;
|
|
689
|
+
contentDigest: string;
|
|
690
|
+
laneDigest: string;
|
|
691
|
+
}>;
|
|
692
|
+
export type ThreadRetireRequest = z.infer<typeof ThreadRetireRequest>;
|
|
693
|
+
export declare const ThreadRetireAbandonRequest: z.ZodObject<{
|
|
694
|
+
operationId: z.ZodString;
|
|
695
|
+
}, "strict", z.ZodTypeAny, {
|
|
696
|
+
operationId: string;
|
|
697
|
+
}, {
|
|
698
|
+
operationId: string;
|
|
699
|
+
}>;
|
|
700
|
+
export type ThreadRetireAbandonRequest = z.infer<typeof ThreadRetireAbandonRequest>;
|
|
701
|
+
export declare const ThreadRetirementOperation: z.ZodObject<{
|
|
702
|
+
operationId: z.ZodString;
|
|
703
|
+
outcome: z.ZodEnum<["accepted", "refused", "abandoned"]>;
|
|
704
|
+
code: z.ZodNullable<z.ZodString>;
|
|
705
|
+
message: z.ZodNullable<z.ZodString>;
|
|
706
|
+
settledAt: z.ZodString;
|
|
707
|
+
}, "strict", z.ZodTypeAny, {
|
|
708
|
+
operationId: string;
|
|
709
|
+
outcome: "abandoned" | "accepted" | "refused";
|
|
710
|
+
code: string | null;
|
|
711
|
+
message: string | null;
|
|
712
|
+
settledAt: string;
|
|
713
|
+
}, {
|
|
714
|
+
operationId: string;
|
|
715
|
+
outcome: "abandoned" | "accepted" | "refused";
|
|
716
|
+
code: string | null;
|
|
717
|
+
message: string | null;
|
|
718
|
+
settledAt: string;
|
|
719
|
+
}>;
|
|
720
|
+
export type ThreadRetirementOperation = z.infer<typeof ThreadRetirementOperation>;
|
|
721
|
+
export declare const ThreadRetirement: z.ZodObject<{
|
|
722
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
723
|
+
storeId: z.ZodString;
|
|
724
|
+
threadId: z.ZodString;
|
|
725
|
+
threadState: z.ZodEnum<["active", "closed", "trashed", "purged"]>;
|
|
726
|
+
status: z.ZodEnum<["not_accepted", "accepted_pending_removal", "removed"]>;
|
|
727
|
+
acceptance: z.ZodNullable<z.ZodObject<{
|
|
728
|
+
operationId: z.ZodString;
|
|
729
|
+
exportId: z.ZodString;
|
|
730
|
+
closureDigest: z.ZodString;
|
|
731
|
+
contentDigest: z.ZodString;
|
|
732
|
+
laneDigest: z.ZodString;
|
|
733
|
+
acceptedAt: z.ZodString;
|
|
734
|
+
}, "strict", z.ZodTypeAny, {
|
|
735
|
+
operationId: string;
|
|
736
|
+
exportId: string;
|
|
737
|
+
closureDigest: string;
|
|
738
|
+
contentDigest: string;
|
|
739
|
+
laneDigest: string;
|
|
740
|
+
acceptedAt: string;
|
|
741
|
+
}, {
|
|
742
|
+
operationId: string;
|
|
743
|
+
exportId: string;
|
|
744
|
+
closureDigest: string;
|
|
745
|
+
contentDigest: string;
|
|
746
|
+
laneDigest: string;
|
|
747
|
+
acceptedAt: string;
|
|
748
|
+
}>>;
|
|
749
|
+
cleanup: z.ZodNullable<z.ZodObject<{
|
|
750
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
751
|
+
}, "strict", z.ZodTypeAny, {
|
|
752
|
+
reason: string | null;
|
|
753
|
+
}, {
|
|
754
|
+
reason: string | null;
|
|
755
|
+
}>>;
|
|
756
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
757
|
+
operationId: z.ZodString;
|
|
758
|
+
outcome: z.ZodEnum<["accepted", "refused", "abandoned"]>;
|
|
759
|
+
code: z.ZodNullable<z.ZodString>;
|
|
760
|
+
message: z.ZodNullable<z.ZodString>;
|
|
761
|
+
settledAt: z.ZodString;
|
|
762
|
+
}, "strict", z.ZodTypeAny, {
|
|
763
|
+
operationId: string;
|
|
764
|
+
outcome: "abandoned" | "accepted" | "refused";
|
|
765
|
+
code: string | null;
|
|
766
|
+
message: string | null;
|
|
767
|
+
settledAt: string;
|
|
768
|
+
}, {
|
|
769
|
+
operationId: string;
|
|
770
|
+
outcome: "abandoned" | "accepted" | "refused";
|
|
771
|
+
code: string | null;
|
|
772
|
+
message: string | null;
|
|
773
|
+
settledAt: string;
|
|
774
|
+
}>>;
|
|
775
|
+
}, "strict", z.ZodTypeAny, {
|
|
776
|
+
schemaVersion: 1;
|
|
777
|
+
storeId: string;
|
|
778
|
+
threadId: string;
|
|
779
|
+
threadState: "active" | "closed" | "purged" | "trashed";
|
|
780
|
+
status: "accepted_pending_removal" | "not_accepted" | "removed";
|
|
781
|
+
acceptance: {
|
|
782
|
+
operationId: string;
|
|
783
|
+
exportId: string;
|
|
784
|
+
closureDigest: string;
|
|
785
|
+
contentDigest: string;
|
|
786
|
+
laneDigest: string;
|
|
787
|
+
acceptedAt: string;
|
|
788
|
+
} | null;
|
|
789
|
+
cleanup: {
|
|
790
|
+
reason: string | null;
|
|
791
|
+
} | null;
|
|
792
|
+
operation: {
|
|
793
|
+
operationId: string;
|
|
794
|
+
outcome: "abandoned" | "accepted" | "refused";
|
|
795
|
+
code: string | null;
|
|
796
|
+
message: string | null;
|
|
797
|
+
settledAt: string;
|
|
798
|
+
} | null;
|
|
799
|
+
}, {
|
|
800
|
+
schemaVersion: 1;
|
|
801
|
+
storeId: string;
|
|
802
|
+
threadId: string;
|
|
803
|
+
threadState: "active" | "closed" | "purged" | "trashed";
|
|
804
|
+
status: "accepted_pending_removal" | "not_accepted" | "removed";
|
|
805
|
+
acceptance: {
|
|
806
|
+
operationId: string;
|
|
807
|
+
exportId: string;
|
|
808
|
+
closureDigest: string;
|
|
809
|
+
contentDigest: string;
|
|
810
|
+
laneDigest: string;
|
|
811
|
+
acceptedAt: string;
|
|
812
|
+
} | null;
|
|
813
|
+
cleanup: {
|
|
814
|
+
reason: string | null;
|
|
815
|
+
} | null;
|
|
816
|
+
operation: {
|
|
817
|
+
operationId: string;
|
|
818
|
+
outcome: "abandoned" | "accepted" | "refused";
|
|
819
|
+
code: string | null;
|
|
820
|
+
message: string | null;
|
|
821
|
+
settledAt: string;
|
|
822
|
+
} | null;
|
|
823
|
+
}>;
|
|
824
|
+
export type ThreadRetirement = z.infer<typeof ThreadRetirement>;
|
|
825
|
+
/** One item's exact identity in a digest: what a consumer received, or what the
|
|
826
|
+
* engine read from disk. Acceptance keeps the lane's entries so its cleanup can
|
|
827
|
+
* delete only bytes the export holds. */
|
|
828
|
+
export interface ThreadExportDigestEntry {
|
|
829
|
+
itemId: string;
|
|
830
|
+
sha256: string;
|
|
831
|
+
sizeBytes: number;
|
|
832
|
+
}
|
|
833
|
+
/** Stable across reads of the same inventory, so a resumed transfer keeps its work. */
|
|
834
|
+
export declare function threadExportItemId(plane: ThreadExportItemPlane, path: string): string;
|
|
835
|
+
/**
|
|
836
|
+
* The one digest formula: `<itemId> <sha256 hex> <size>\n` per file or symlink,
|
|
837
|
+
* ordered by itemId bytes, hashed as UTF-8. A consumer computes it from what it
|
|
838
|
+
* received; the engine from what is on disk at acceptance. They agree only when
|
|
839
|
+
* those bytes are the same.
|
|
840
|
+
*/
|
|
841
|
+
export declare function threadExportDigest(entries: readonly ThreadExportDigestEntry[]): string;
|
|
842
|
+
/** A symlink's digest identity: its own text, since its target is never read. */
|
|
843
|
+
export declare function threadExportLinkIdentity(target: string): {
|
|
844
|
+
sha256: string;
|
|
845
|
+
sizeBytes: number;
|
|
846
|
+
};
|
|
847
|
+
//# sourceMappingURL=thread-export.d.ts.map
|