@peasant-labs/schema 0.1.0-rc9 → 0.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.
@@ -160,6 +160,50 @@ export type AssociationEvidenceObservation = z.infer<typeof zAssociationEvidence
160
160
  */
161
161
  export declare const zAssociationID: z.ZodString;
162
162
  export type AssociationID = z.infer<typeof zAssociationID>;
163
+ export declare const zAuthoritativeCommitInfo: z.ZodObject<{
164
+ authorEmail: z.ZodString;
165
+ authorName: z.ZodString;
166
+ authorTime: z.ZodCoercedBigInt<unknown>;
167
+ commitTime: z.ZodCoercedBigInt<unknown>;
168
+ hash: z.ZodString;
169
+ message: z.ZodString;
170
+ }, z.core.$strict>;
171
+ export type AuthoritativeCommitInfo = z.infer<typeof zAuthoritativeCommitInfo>;
172
+ export declare const zAuthoritativeDiagnosticEntry: z.ZodObject<{
173
+ errorType: z.ZodString;
174
+ location: z.ZodString;
175
+ message: z.ZodString;
176
+ remediation: z.ZodString;
177
+ }, z.core.$strict>;
178
+ export type AuthoritativeDiagnosticEntry = z.infer<typeof zAuthoritativeDiagnosticEntry>;
179
+ export declare const zAuthoritativeDiagnosticsInfo: z.ZodObject<{
180
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
181
+ warnings: z.ZodArray<z.ZodObject<{
182
+ errorType: z.ZodString;
183
+ location: z.ZodString;
184
+ message: z.ZodString;
185
+ remediation: z.ZodString;
186
+ }, z.core.$strict>>;
187
+ }, z.core.$strict>;
188
+ export type AuthoritativeDiagnosticsInfo = z.infer<typeof zAuthoritativeDiagnosticsInfo>;
189
+ export declare const zAuthoritativeSessionStats: z.ZodObject<{
190
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
191
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
192
+ durationMs: z.ZodCoercedBigInt<unknown>;
193
+ subagentCount: z.ZodInt;
194
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
195
+ tokensIn: z.ZodInt;
196
+ tokensOut: z.ZodInt;
197
+ toolCallCount: z.ZodInt;
198
+ turnCount: z.ZodInt;
199
+ }, z.core.$strict>;
200
+ export type AuthoritativeSessionStats = z.infer<typeof zAuthoritativeSessionStats>;
201
+ export declare const zAuthoritativeTimestampInfo: z.ZodObject<{
202
+ end: z.ZodCoercedBigInt<unknown>;
203
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
204
+ start: z.ZodCoercedBigInt<unknown>;
205
+ }, z.core.$strict>;
206
+ export type AuthoritativeTimestampInfo = z.infer<typeof zAuthoritativeTimestampInfo>;
163
207
  export declare const zBatchCreateAnnotationsErrorResponse: z.ZodObject<{
164
208
  error: z.ZodString;
165
209
  failingIndex: z.ZodInt;
@@ -208,6 +252,21 @@ export declare const zCLILoginQuery: z.ZodObject<{
208
252
  state: z.ZodString;
209
253
  }, z.core.$strip>;
210
254
  export type CLILoginQuery = z.infer<typeof zCLILoginQuery>;
255
+ export declare const zCanonicalPublishGitContext: z.ZodObject<{
256
+ branch: z.ZodNullable<z.ZodString>;
257
+ commits: z.ZodArray<z.ZodObject<{
258
+ authorEmail: z.ZodString;
259
+ authorName: z.ZodString;
260
+ authorTime: z.ZodCoercedBigInt<unknown>;
261
+ commitTime: z.ZodCoercedBigInt<unknown>;
262
+ hash: z.ZodString;
263
+ message: z.ZodString;
264
+ }, z.core.$strict>>;
265
+ remote: z.ZodNullable<z.ZodString>;
266
+ tracking: z.ZodNullable<z.ZodString>;
267
+ worktree: z.ZodNullable<z.ZodString>;
268
+ }, z.core.$strict>;
269
+ export type CanonicalPublishGitContext = z.infer<typeof zCanonicalPublishGitContext>;
211
270
  /**
212
271
  * Change Binding
213
272
  *
@@ -554,6 +613,7 @@ export type FrictionCluster = z.infer<typeof zFrictionCluster>;
554
613
  * AI coding tool or development environment
555
614
  */
556
615
  export declare const zHarness: z.ZodEnum<{
616
+ strike: "strike";
557
617
  cursor: "cursor";
558
618
  "claude-code": "claude-code";
559
619
  "gemini-cli": "gemini-cli";
@@ -709,8 +769,24 @@ export type MockConfigResponse = z.infer<typeof zMockConfigResponse>;
709
769
  */
710
770
  export declare const zModelID: z.ZodString;
711
771
  export type ModelID = z.infer<typeof zModelID>;
772
+ export declare const zAuthoritativeModelInfo: z.ZodObject<{
773
+ harness: z.ZodEnum<{
774
+ strike: "strike";
775
+ cursor: "cursor";
776
+ "claude-code": "claude-code";
777
+ "gemini-cli": "gemini-cli";
778
+ codex: "codex";
779
+ opencode: "opencode";
780
+ antigravity: "antigravity";
781
+ }>;
782
+ hostSlug: z.ZodOptional<z.ZodString>;
783
+ model: z.ZodString;
784
+ version: z.ZodOptional<z.ZodString>;
785
+ }, z.core.$strict>;
786
+ export type AuthoritativeModelInfo = z.infer<typeof zAuthoritativeModelInfo>;
712
787
  export declare const zModelInfo: z.ZodObject<{
713
788
  harness: z.ZodEnum<{
789
+ strike: "strike";
714
790
  cursor: "cursor";
715
791
  "claude-code": "claude-code";
716
792
  "gemini-cli": "gemini-cli";
@@ -723,6 +799,15 @@ export declare const zModelInfo: z.ZodObject<{
723
799
  version: z.ZodOptional<z.ZodString>;
724
800
  }, z.core.$strip>;
725
801
  export type ModelInfo = z.infer<typeof zModelInfo>;
802
+ /**
803
+ * Omitted preserves, null requests clear, and a canonical license replaces
804
+ */
805
+ export declare const zOwnerUpdateLicenseIntent: z.ZodNullable<z.ZodEnum<{
806
+ "CC0-1.0": "CC0-1.0";
807
+ "CC-BY-4.0": "CC-BY-4.0";
808
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
809
+ }>>;
810
+ export type OwnerUpdateLicenseIntent = z.infer<typeof zOwnerUpdateLicenseIntent>;
726
811
  /**
727
812
  * Project Hash
728
813
  *
@@ -730,6 +815,12 @@ export type ModelInfo = z.infer<typeof zModelInfo>;
730
815
  */
731
816
  export declare const zProjectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
732
817
  export type ProjectHash = z.infer<typeof zProjectHash>;
818
+ export declare const zAuthoritativeProjectContext: z.ZodObject<{
819
+ filePath: z.ZodOptional<z.ZodString>;
820
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
821
+ name: z.ZodString;
822
+ }, z.core.$strict>;
823
+ export type AuthoritativeProjectContext = z.infer<typeof zAuthoritativeProjectContext>;
733
824
  export declare const zProjectContext: z.ZodObject<{
734
825
  filePath: z.ZodOptional<z.ZodString>;
735
826
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
@@ -770,6 +861,37 @@ export declare const zProvenance: z.ZodObject<{
770
861
  version: z.ZodOptional<z.ZodString>;
771
862
  }, z.core.$strip>;
772
863
  export type Provenance = z.infer<typeof zProvenance>;
864
+ /**
865
+ * Publish Operation Kind
866
+ *
867
+ * Mutation semantic for one publish operation arm
868
+ */
869
+ export declare const zPublishOperationKind: z.ZodEnum<{
870
+ replace: "replace";
871
+ append: "append";
872
+ preserve: "preserve";
873
+ }>;
874
+ export type PublishOperationKind = z.infer<typeof zPublishOperationKind>;
875
+ export declare const zPublishLicenseOperation: z.ZodObject<{
876
+ kind: z.ZodEnum<{
877
+ replace: "replace";
878
+ append: "append";
879
+ preserve: "preserve";
880
+ }>;
881
+ license: z.ZodNullable<z.ZodEnum<{
882
+ "CC0-1.0": "CC0-1.0";
883
+ "CC-BY-4.0": "CC-BY-4.0";
884
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
885
+ }>>;
886
+ }, z.core.$strict>;
887
+ export type PublishLicenseOperation = z.infer<typeof zPublishLicenseOperation>;
888
+ /**
889
+ * Publish Request Fingerprint
890
+ *
891
+ * SHA3-256 digest of the canonical domain-separated publish operation
892
+ */
893
+ export declare const zPublishRequestFingerprint: z.ZodString;
894
+ export type PublishRequestFingerprint = z.infer<typeof zPublishRequestFingerprint>;
773
895
  export declare const zPublishResponse: z.ZodObject<{
774
896
  blobKey: z.ZodString;
775
897
  blobSizeBytes: z.ZodCoercedBigInt<unknown>;
@@ -782,13 +904,32 @@ export type PublishResponse = z.infer<typeof zPublishResponse>;
782
904
  export declare const zPublishedAssociation: z.ZodObject<{
783
905
  id: z.ZodString;
784
906
  observedCommitHash: z.ZodString;
785
- }, z.core.$strip>;
907
+ }, z.core.$strict>;
786
908
  export type PublishedAssociation = z.infer<typeof zPublishedAssociation>;
909
+ export declare const zAuthoritativeGitContext: z.ZodObject<{
910
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
911
+ id: z.ZodString;
912
+ observedCommitHash: z.ZodString;
913
+ }, z.core.$strict>>>;
914
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
916
+ authorEmail: z.ZodString;
917
+ authorName: z.ZodString;
918
+ authorTime: z.ZodCoercedBigInt<unknown>;
919
+ commitTime: z.ZodCoercedBigInt<unknown>;
920
+ hash: z.ZodString;
921
+ message: z.ZodString;
922
+ }, z.core.$strict>>>;
923
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
924
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ }, z.core.$strict>;
927
+ export type AuthoritativeGitContext = z.infer<typeof zAuthoritativeGitContext>;
787
928
  export declare const zGitContext: z.ZodObject<{
788
929
  associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
930
  id: z.ZodString;
790
931
  observedCommitHash: z.ZodString;
791
- }, z.core.$strip>>>;
932
+ }, z.core.$strict>>>;
792
933
  branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
934
  commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
794
935
  authorEmail: z.ZodString;
@@ -803,6 +944,18 @@ export declare const zGitContext: z.ZodObject<{
803
944
  worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
945
  }, z.core.$strip>;
805
946
  export type GitContext = z.infer<typeof zGitContext>;
947
+ export declare const zPublishAssociationOperation: z.ZodObject<{
948
+ associations: z.ZodArray<z.ZodObject<{
949
+ id: z.ZodString;
950
+ observedCommitHash: z.ZodString;
951
+ }, z.core.$strict>>;
952
+ kind: z.ZodEnum<{
953
+ replace: "replace";
954
+ append: "append";
955
+ preserve: "preserve";
956
+ }>;
957
+ }, z.core.$strict>;
958
+ export type PublishAssociationOperation = z.infer<typeof zPublishAssociationOperation>;
806
959
  /**
807
960
  * Read Attribution State
808
961
  *
@@ -1105,10 +1258,21 @@ export type ServerMessage = z.infer<typeof zServerMessage>;
1105
1258
  /**
1106
1259
  * Session ID
1107
1260
  *
1108
- * Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), or msg_{id})
1261
+ * Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), msg_{id}, or a Strike session ID)
1109
1262
  */
1110
1263
  export declare const zSessionID: z.ZodString;
1111
1264
  export type SessionID = z.infer<typeof zSessionID>;
1265
+ export declare const zAuthoritativeSessionIdentity: z.ZodObject<{
1266
+ parentSessionId: z.ZodOptional<z.ZodString>;
1267
+ schemaVersion: z.ZodInt;
1268
+ sessionId: z.ZodString;
1269
+ }, z.core.$strict>;
1270
+ export type AuthoritativeSessionIdentity = z.infer<typeof zAuthoritativeSessionIdentity>;
1271
+ export declare const zAuthoritativeSubagentRef: z.ZodObject<{
1272
+ parentUuid: z.ZodString;
1273
+ sessionId: z.ZodString;
1274
+ }, z.core.$strict>;
1275
+ export type AuthoritativeSubagentRef = z.infer<typeof zAuthoritativeSubagentRef>;
1112
1276
  export declare const zInsightEvidence: z.ZodObject<{
1113
1277
  commitHash: z.ZodOptional<z.ZodString>;
1114
1278
  entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1280,6 +1444,55 @@ export declare const zSessionOutcome: z.ZodEnum<{
1280
1444
  resolved: "resolved";
1281
1445
  }>;
1282
1446
  export type SessionOutcome = z.infer<typeof zSessionOutcome>;
1447
+ export declare const zAuthoritativeQualityMetrics: z.ZodObject<{
1448
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1449
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1450
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1451
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1452
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1453
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1454
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1455
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1456
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1457
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1458
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1459
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1460
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1461
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1462
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1463
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1464
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1465
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1466
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1467
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1468
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1469
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1470
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1471
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1472
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1473
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1474
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1475
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1476
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1477
+ failed: "failed";
1478
+ partial: "partial";
1479
+ resolved: "resolved";
1480
+ }>>>;
1481
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1482
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1483
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1484
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1485
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1486
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1487
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1488
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1489
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1490
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1491
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1492
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1493
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1494
+ }, z.core.$strict>;
1495
+ export type AuthoritativeQualityMetrics = z.infer<typeof zAuthoritativeQualityMetrics>;
1283
1496
  export declare const zQualityMetrics: z.ZodObject<{
1284
1497
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1285
1498
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1364,6 +1577,7 @@ export type SessionStats = z.infer<typeof zSessionStats>;
1364
1577
  export declare const zSessionSummary: z.ZodObject<{
1365
1578
  durationMins: z.ZodNumber;
1366
1579
  harness: z.ZodEnum<{
1580
+ strike: "strike";
1367
1581
  cursor: "cursor";
1368
1582
  "claude-code": "claude-code";
1369
1583
  "gemini-cli": "gemini-cli";
@@ -1387,6 +1601,7 @@ export declare const zSessionsPayload: z.ZodObject<{
1387
1601
  sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
1388
1602
  durationMins: z.ZodNumber;
1389
1603
  harness: z.ZodEnum<{
1604
+ strike: "strike";
1390
1605
  cursor: "cursor";
1391
1606
  "claude-code": "claude-code";
1392
1607
  "gemini-cli": "gemini-cli";
@@ -1421,6 +1636,14 @@ export declare const zSourceFormat: z.ZodEnum<{
1421
1636
  jsonl: "jsonl";
1422
1637
  }>;
1423
1638
  export type SourceFormat = z.infer<typeof zSourceFormat>;
1639
+ export declare const zAuthoritativeSourceInfo: z.ZodObject<{
1640
+ filePath: z.ZodOptional<z.ZodString>;
1641
+ format: z.ZodEnum<{
1642
+ json: "json";
1643
+ jsonl: "jsonl";
1644
+ }>;
1645
+ }, z.core.$strict>;
1646
+ export type AuthoritativeSourceInfo = z.infer<typeof zAuthoritativeSourceInfo>;
1424
1647
  export declare const zSourceInfo: z.ZodObject<{
1425
1648
  filePath: z.ZodOptional<z.ZodString>;
1426
1649
  format: z.ZodEnum<{
@@ -2038,6 +2261,7 @@ export declare const zProjectTasksPayload: z.ZodObject<{
2038
2261
  export type ProjectTasksPayload = z.infer<typeof zProjectTasksPayload>;
2039
2262
  export declare const zTimelineSessionRef: z.ZodObject<{
2040
2263
  harness: z.ZodEnum<{
2264
+ strike: "strike";
2041
2265
  cursor: "cursor";
2042
2266
  "claude-code": "claude-code";
2043
2267
  "gemini-cli": "gemini-cli";
@@ -2159,6 +2383,7 @@ export declare const zReviewListPayload: z.ZodObject<{
2159
2383
  }, z.core.$strip>>;
2160
2384
  sessions: z.ZodArray<z.ZodObject<{
2161
2385
  harness: z.ZodEnum<{
2386
+ strike: "strike";
2162
2387
  cursor: "cursor";
2163
2388
  "claude-code": "claude-code";
2164
2389
  "gemini-cli": "gemini-cli";
@@ -2196,7 +2421,7 @@ export declare const zToolCallKind: z.ZodEnum<{
2196
2421
  think: "think";
2197
2422
  }>;
2198
2423
  export type ToolCallKind = z.infer<typeof zToolCallKind>;
2199
- export declare const zSessionEntry: z.ZodObject<{
2424
+ export declare const zAuthoritativeSessionEntry: z.ZodObject<{
2200
2425
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2201
2426
  depth: z.ZodInt;
2202
2427
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2212,6 +2437,7 @@ export declare const zSessionEntry: z.ZodObject<{
2212
2437
  }>;
2213
2438
  extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2214
2439
  harness: z.ZodEnum<{
2440
+ strike: "strike";
2215
2441
  cursor: "cursor";
2216
2442
  "claude-code": "claude-code";
2217
2443
  "gemini-cli": "gemini-cli";
@@ -2258,19 +2484,19 @@ export declare const zSessionEntry: z.ZodObject<{
2258
2484
  }>>>;
2259
2485
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2260
2486
  toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2261
- }, z.core.$strip>;
2262
- export type SessionEntry = z.infer<typeof zSessionEntry>;
2263
- export declare const zPublishRequest: z.ZodObject<{
2487
+ }, z.core.$strict>;
2488
+ export type AuthoritativeSessionEntry = z.infer<typeof zAuthoritativeSessionEntry>;
2489
+ export declare const zCanonicalPublishReplacement: z.ZodObject<{
2264
2490
  diagnostics: z.ZodObject<{
2265
2491
  partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2266
- warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2492
+ warnings: z.ZodArray<z.ZodObject<{
2267
2493
  errorType: z.ZodString;
2268
2494
  location: z.ZodString;
2269
2495
  message: z.ZodString;
2270
2496
  remediation: z.ZodString;
2271
- }, z.core.$strip>>>;
2272
- }, z.core.$strip>;
2273
- entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2497
+ }, z.core.$strict>>;
2498
+ }, z.core.$strict>;
2499
+ entries: z.ZodArray<z.ZodObject<{
2274
2500
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2275
2501
  depth: z.ZodInt;
2276
2502
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2286,6 +2512,7 @@ export declare const zPublishRequest: z.ZodObject<{
2286
2512
  }>;
2287
2513
  extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2288
2514
  harness: z.ZodEnum<{
2515
+ strike: "strike";
2289
2516
  cursor: "cursor";
2290
2517
  "claude-code": "claude-code";
2291
2518
  "gemini-cli": "gemini-cli";
@@ -2332,37 +2559,29 @@ export declare const zPublishRequest: z.ZodObject<{
2332
2559
  }>>>;
2333
2560
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2334
2561
  toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2335
- }, z.core.$strip>>>;
2562
+ }, z.core.$strict>>;
2336
2563
  git: z.ZodObject<{
2337
- associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2338
- id: z.ZodString;
2339
- observedCommitHash: z.ZodString;
2340
- }, z.core.$strip>>>;
2341
- branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2342
- commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2564
+ branch: z.ZodNullable<z.ZodString>;
2565
+ commits: z.ZodArray<z.ZodObject<{
2343
2566
  authorEmail: z.ZodString;
2344
2567
  authorName: z.ZodString;
2345
2568
  authorTime: z.ZodCoercedBigInt<unknown>;
2346
2569
  commitTime: z.ZodCoercedBigInt<unknown>;
2347
2570
  hash: z.ZodString;
2348
2571
  message: z.ZodString;
2349
- }, z.core.$strip>>>;
2350
- remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2351
- tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2352
- worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2353
- }, z.core.$strip>;
2572
+ }, z.core.$strict>>;
2573
+ remote: z.ZodNullable<z.ZodString>;
2574
+ tracking: z.ZodNullable<z.ZodString>;
2575
+ worktree: z.ZodNullable<z.ZodString>;
2576
+ }, z.core.$strict>;
2354
2577
  identity: z.ZodObject<{
2355
- parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2578
+ parentSessionId: z.ZodOptional<z.ZodString>;
2356
2579
  schemaVersion: z.ZodInt;
2357
2580
  sessionId: z.ZodString;
2358
- }, z.core.$strip>;
2359
- license: z.ZodOptional<z.ZodEnum<{
2360
- "CC0-1.0": "CC0-1.0";
2361
- "CC-BY-4.0": "CC-BY-4.0";
2362
- "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2363
- }>>;
2581
+ }, z.core.$strict>;
2364
2582
  model: z.ZodObject<{
2365
2583
  harness: z.ZodEnum<{
2584
+ strike: "strike";
2366
2585
  cursor: "cursor";
2367
2586
  "claude-code": "claude-code";
2368
2587
  "gemini-cli": "gemini-cli";
@@ -2373,13 +2592,13 @@ export declare const zPublishRequest: z.ZodObject<{
2373
2592
  hostSlug: z.ZodOptional<z.ZodString>;
2374
2593
  model: z.ZodString;
2375
2594
  version: z.ZodOptional<z.ZodString>;
2376
- }, z.core.$strip>;
2595
+ }, z.core.$strict>;
2377
2596
  project: z.ZodObject<{
2378
2597
  filePath: z.ZodOptional<z.ZodString>;
2379
2598
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2380
2599
  name: z.ZodString;
2381
- }, z.core.$strip>;
2382
- quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2600
+ }, z.core.$strict>;
2601
+ quality: z.ZodNullable<z.ZodObject<{
2383
2602
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2384
2603
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2385
2604
  costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2426,14 +2645,14 @@ export declare const zPublishRequest: z.ZodObject<{
2426
2645
  totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2427
2646
  turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2428
2647
  withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2429
- }, z.core.$strip>>>;
2648
+ }, z.core.$strict>>;
2430
2649
  source: z.ZodObject<{
2431
2650
  filePath: z.ZodOptional<z.ZodString>;
2432
2651
  format: z.ZodEnum<{
2433
2652
  json: "json";
2434
2653
  jsonl: "jsonl";
2435
2654
  }>;
2436
- }, z.core.$strip>;
2655
+ }, z.core.$strict>;
2437
2656
  stats: z.ZodObject<{
2438
2657
  cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2439
2658
  cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -2444,28 +2663,69 @@ export declare const zPublishRequest: z.ZodObject<{
2444
2663
  tokensOut: z.ZodInt;
2445
2664
  toolCallCount: z.ZodInt;
2446
2665
  turnCount: z.ZodInt;
2447
- }, z.core.$strip>;
2448
- subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2666
+ }, z.core.$strict>;
2667
+ subagents: z.ZodArray<z.ZodObject<{
2449
2668
  parentUuid: z.ZodString;
2450
2669
  sessionId: z.ZodString;
2451
- }, z.core.$strip>>>;
2670
+ }, z.core.$strict>>;
2452
2671
  timestamp: z.ZodObject<{
2453
2672
  end: z.ZodCoercedBigInt<unknown>;
2454
2673
  ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2455
2674
  start: z.ZodCoercedBigInt<unknown>;
2456
- }, z.core.$strip>;
2457
- }, z.core.$strip>;
2458
- export type PublishRequest = z.infer<typeof zPublishRequest>;
2459
- export declare const zToolCallDetail: z.ZodObject<{
2460
- arguments: z.ZodString;
2461
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2462
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2463
- filePath: z.ZodOptional<z.ZodString>;
2464
- id: z.ZodString;
2465
- isError: z.ZodOptional<z.ZodBoolean>;
2466
- name: z.ZodString;
2467
- result: z.ZodString;
2468
- toolKind: z.ZodOptional<z.ZodEnum<{
2675
+ }, z.core.$strict>;
2676
+ }, z.core.$strict>;
2677
+ export type CanonicalPublishReplacement = z.infer<typeof zCanonicalPublishReplacement>;
2678
+ export declare const zSessionEntry: z.ZodObject<{
2679
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2680
+ depth: z.ZodInt;
2681
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2682
+ entryIndex: z.ZodInt;
2683
+ entryType: z.ZodEnum<{
2684
+ error: "error";
2685
+ text: "text";
2686
+ tool_use: "tool_use";
2687
+ tool_result: "tool_result";
2688
+ thinking: "thinking";
2689
+ system: "system";
2690
+ result: "result";
2691
+ }>;
2692
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2693
+ harness: z.ZodEnum<{
2694
+ strike: "strike";
2695
+ cursor: "cursor";
2696
+ "claude-code": "claude-code";
2697
+ "gemini-cli": "gemini-cli";
2698
+ codex: "codex";
2699
+ opencode: "opencode";
2700
+ antigravity: "antigravity";
2701
+ }>;
2702
+ hasThinking: z.ZodBoolean;
2703
+ hasToolUse: z.ZodBoolean;
2704
+ isError: z.ZodBoolean;
2705
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2706
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2707
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2708
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2709
+ role: z.ZodEnum<{
2710
+ user: "user";
2711
+ system: "system";
2712
+ assistant: "assistant";
2713
+ tool: "tool";
2714
+ }>;
2715
+ sessionId: z.ZodString;
2716
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2717
+ end_turn: "end_turn";
2718
+ cancelled: "cancelled";
2719
+ max_tokens: "max_tokens";
2720
+ max_turn_requests: "max_turn_requests";
2721
+ refusal: "refusal";
2722
+ }>>>;
2723
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2724
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2725
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2726
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2727
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2728
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2469
2729
  search: "search";
2470
2730
  other: "other";
2471
2731
  move: "move";
@@ -2475,20 +2735,464 @@ export declare const zToolCallDetail: z.ZodObject<{
2475
2735
  edit: "edit";
2476
2736
  execute: "execute";
2477
2737
  think: "think";
2478
- }>>;
2479
- }, z.core.$strip>;
2480
- export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
2481
- /**
2482
- * Transcript ID
2483
- *
2484
- * Village-side transcript identifier (canonical lowercase-hex UUID)
2485
- */
2486
- export declare const zTranscriptID: z.ZodUUID;
2487
- export type TranscriptID = z.infer<typeof zTranscriptID>;
2488
- export declare const zPullSkipGateItem: z.ZodObject<{
2489
- annotationHashes: z.ZodArray<z.ZodString>;
2490
- contentHash: z.ZodString;
2491
- transcriptId: z.ZodUUID;
2738
+ }>>>;
2739
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2740
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2741
+ }, z.core.$strip>;
2742
+ export type SessionEntry = z.infer<typeof zSessionEntry>;
2743
+ export declare const zPublishRequest: z.ZodObject<{
2744
+ diagnostics: z.ZodObject<{
2745
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2746
+ warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2747
+ errorType: z.ZodString;
2748
+ location: z.ZodString;
2749
+ message: z.ZodString;
2750
+ remediation: z.ZodString;
2751
+ }, z.core.$strip>>>;
2752
+ }, z.core.$strip>;
2753
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2754
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2755
+ depth: z.ZodInt;
2756
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2757
+ entryIndex: z.ZodInt;
2758
+ entryType: z.ZodEnum<{
2759
+ error: "error";
2760
+ text: "text";
2761
+ tool_use: "tool_use";
2762
+ tool_result: "tool_result";
2763
+ thinking: "thinking";
2764
+ system: "system";
2765
+ result: "result";
2766
+ }>;
2767
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2768
+ harness: z.ZodEnum<{
2769
+ strike: "strike";
2770
+ cursor: "cursor";
2771
+ "claude-code": "claude-code";
2772
+ "gemini-cli": "gemini-cli";
2773
+ codex: "codex";
2774
+ opencode: "opencode";
2775
+ antigravity: "antigravity";
2776
+ }>;
2777
+ hasThinking: z.ZodBoolean;
2778
+ hasToolUse: z.ZodBoolean;
2779
+ isError: z.ZodBoolean;
2780
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2781
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2782
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2783
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2784
+ role: z.ZodEnum<{
2785
+ user: "user";
2786
+ system: "system";
2787
+ assistant: "assistant";
2788
+ tool: "tool";
2789
+ }>;
2790
+ sessionId: z.ZodString;
2791
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2792
+ end_turn: "end_turn";
2793
+ cancelled: "cancelled";
2794
+ max_tokens: "max_tokens";
2795
+ max_turn_requests: "max_turn_requests";
2796
+ refusal: "refusal";
2797
+ }>>>;
2798
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2799
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2800
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2801
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2802
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2803
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2804
+ search: "search";
2805
+ other: "other";
2806
+ move: "move";
2807
+ fetch: "fetch";
2808
+ delete: "delete";
2809
+ read: "read";
2810
+ edit: "edit";
2811
+ execute: "execute";
2812
+ think: "think";
2813
+ }>>>;
2814
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2815
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2816
+ }, z.core.$strip>>>;
2817
+ git: z.ZodObject<{
2818
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2819
+ id: z.ZodString;
2820
+ observedCommitHash: z.ZodString;
2821
+ }, z.core.$strict>>>;
2822
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2823
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2824
+ authorEmail: z.ZodString;
2825
+ authorName: z.ZodString;
2826
+ authorTime: z.ZodCoercedBigInt<unknown>;
2827
+ commitTime: z.ZodCoercedBigInt<unknown>;
2828
+ hash: z.ZodString;
2829
+ message: z.ZodString;
2830
+ }, z.core.$strip>>>;
2831
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2832
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2833
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2834
+ }, z.core.$strip>;
2835
+ identity: z.ZodObject<{
2836
+ parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2837
+ schemaVersion: z.ZodInt;
2838
+ sessionId: z.ZodString;
2839
+ }, z.core.$strip>;
2840
+ license: z.ZodOptional<z.ZodEnum<{
2841
+ "CC0-1.0": "CC0-1.0";
2842
+ "CC-BY-4.0": "CC-BY-4.0";
2843
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2844
+ }>>;
2845
+ model: z.ZodObject<{
2846
+ harness: z.ZodEnum<{
2847
+ strike: "strike";
2848
+ cursor: "cursor";
2849
+ "claude-code": "claude-code";
2850
+ "gemini-cli": "gemini-cli";
2851
+ codex: "codex";
2852
+ opencode: "opencode";
2853
+ antigravity: "antigravity";
2854
+ }>;
2855
+ hostSlug: z.ZodOptional<z.ZodString>;
2856
+ model: z.ZodString;
2857
+ version: z.ZodOptional<z.ZodString>;
2858
+ }, z.core.$strip>;
2859
+ project: z.ZodObject<{
2860
+ filePath: z.ZodOptional<z.ZodString>;
2861
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2862
+ name: z.ZodString;
2863
+ }, z.core.$strip>;
2864
+ quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2865
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2866
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2867
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2868
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2869
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2870
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2871
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2872
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2873
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2874
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2875
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2876
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2877
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2878
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2879
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2880
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2881
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2882
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2883
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2884
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2885
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2886
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2887
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2888
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2889
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2890
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2891
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2892
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2893
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2894
+ failed: "failed";
2895
+ partial: "partial";
2896
+ resolved: "resolved";
2897
+ }>>>;
2898
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2899
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2900
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2901
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2902
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2903
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2904
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2905
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2906
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2907
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2908
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2909
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2910
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2911
+ }, z.core.$strip>>>;
2912
+ source: z.ZodObject<{
2913
+ filePath: z.ZodOptional<z.ZodString>;
2914
+ format: z.ZodEnum<{
2915
+ json: "json";
2916
+ jsonl: "jsonl";
2917
+ }>;
2918
+ }, z.core.$strip>;
2919
+ stats: z.ZodObject<{
2920
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2921
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2922
+ durationMs: z.ZodCoercedBigInt<unknown>;
2923
+ subagentCount: z.ZodInt;
2924
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2925
+ tokensIn: z.ZodInt;
2926
+ tokensOut: z.ZodInt;
2927
+ toolCallCount: z.ZodInt;
2928
+ turnCount: z.ZodInt;
2929
+ }, z.core.$strip>;
2930
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2931
+ parentUuid: z.ZodString;
2932
+ sessionId: z.ZodString;
2933
+ }, z.core.$strip>>>;
2934
+ timestamp: z.ZodObject<{
2935
+ end: z.ZodCoercedBigInt<unknown>;
2936
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2937
+ start: z.ZodCoercedBigInt<unknown>;
2938
+ }, z.core.$strip>;
2939
+ }, z.core.$strip>;
2940
+ export type PublishRequest = z.infer<typeof zPublishRequest>;
2941
+ export declare const zToolCallDetail: z.ZodObject<{
2942
+ arguments: z.ZodString;
2943
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2944
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2945
+ filePath: z.ZodOptional<z.ZodString>;
2946
+ id: z.ZodString;
2947
+ isError: z.ZodOptional<z.ZodBoolean>;
2948
+ name: z.ZodString;
2949
+ result: z.ZodString;
2950
+ toolKind: z.ZodOptional<z.ZodEnum<{
2951
+ search: "search";
2952
+ other: "other";
2953
+ move: "move";
2954
+ fetch: "fetch";
2955
+ delete: "delete";
2956
+ read: "read";
2957
+ edit: "edit";
2958
+ execute: "execute";
2959
+ think: "think";
2960
+ }>>;
2961
+ }, z.core.$strip>;
2962
+ export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
2963
+ /**
2964
+ * Transcript Content Hash
2965
+ *
2966
+ * SHA3-256 digest of the exact transcript file bytes
2967
+ */
2968
+ export declare const zTranscriptContentHash: z.ZodString;
2969
+ export type TranscriptContentHash = z.infer<typeof zTranscriptContentHash>;
2970
+ export declare const zCanonicalPublishOperation: z.ZodObject<{
2971
+ associations: z.ZodObject<{
2972
+ associations: z.ZodArray<z.ZodObject<{
2973
+ id: z.ZodString;
2974
+ observedCommitHash: z.ZodString;
2975
+ }, z.core.$strict>>;
2976
+ kind: z.ZodEnum<{
2977
+ replace: "replace";
2978
+ append: "append";
2979
+ preserve: "preserve";
2980
+ }>;
2981
+ }, z.core.$strict>;
2982
+ contentHash: z.ZodString;
2983
+ license: z.ZodObject<{
2984
+ kind: z.ZodEnum<{
2985
+ replace: "replace";
2986
+ append: "append";
2987
+ preserve: "preserve";
2988
+ }>;
2989
+ license: z.ZodNullable<z.ZodEnum<{
2990
+ "CC0-1.0": "CC0-1.0";
2991
+ "CC-BY-4.0": "CC-BY-4.0";
2992
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2993
+ }>>;
2994
+ }, z.core.$strict>;
2995
+ replacement: z.ZodObject<{
2996
+ diagnostics: z.ZodObject<{
2997
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2998
+ warnings: z.ZodArray<z.ZodObject<{
2999
+ errorType: z.ZodString;
3000
+ location: z.ZodString;
3001
+ message: z.ZodString;
3002
+ remediation: z.ZodString;
3003
+ }, z.core.$strict>>;
3004
+ }, z.core.$strict>;
3005
+ entries: z.ZodArray<z.ZodObject<{
3006
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3007
+ depth: z.ZodInt;
3008
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3009
+ entryIndex: z.ZodInt;
3010
+ entryType: z.ZodEnum<{
3011
+ error: "error";
3012
+ text: "text";
3013
+ tool_use: "tool_use";
3014
+ tool_result: "tool_result";
3015
+ thinking: "thinking";
3016
+ system: "system";
3017
+ result: "result";
3018
+ }>;
3019
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3020
+ harness: z.ZodEnum<{
3021
+ strike: "strike";
3022
+ cursor: "cursor";
3023
+ "claude-code": "claude-code";
3024
+ "gemini-cli": "gemini-cli";
3025
+ codex: "codex";
3026
+ opencode: "opencode";
3027
+ antigravity: "antigravity";
3028
+ }>;
3029
+ hasThinking: z.ZodBoolean;
3030
+ hasToolUse: z.ZodBoolean;
3031
+ isError: z.ZodBoolean;
3032
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3033
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3034
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3035
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3036
+ role: z.ZodEnum<{
3037
+ user: "user";
3038
+ system: "system";
3039
+ assistant: "assistant";
3040
+ tool: "tool";
3041
+ }>;
3042
+ sessionId: z.ZodString;
3043
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3044
+ end_turn: "end_turn";
3045
+ cancelled: "cancelled";
3046
+ max_tokens: "max_tokens";
3047
+ max_turn_requests: "max_turn_requests";
3048
+ refusal: "refusal";
3049
+ }>>>;
3050
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3051
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3052
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3053
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3054
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3055
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3056
+ search: "search";
3057
+ other: "other";
3058
+ move: "move";
3059
+ fetch: "fetch";
3060
+ delete: "delete";
3061
+ read: "read";
3062
+ edit: "edit";
3063
+ execute: "execute";
3064
+ think: "think";
3065
+ }>>>;
3066
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3067
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3068
+ }, z.core.$strict>>;
3069
+ git: z.ZodObject<{
3070
+ branch: z.ZodNullable<z.ZodString>;
3071
+ commits: z.ZodArray<z.ZodObject<{
3072
+ authorEmail: z.ZodString;
3073
+ authorName: z.ZodString;
3074
+ authorTime: z.ZodCoercedBigInt<unknown>;
3075
+ commitTime: z.ZodCoercedBigInt<unknown>;
3076
+ hash: z.ZodString;
3077
+ message: z.ZodString;
3078
+ }, z.core.$strict>>;
3079
+ remote: z.ZodNullable<z.ZodString>;
3080
+ tracking: z.ZodNullable<z.ZodString>;
3081
+ worktree: z.ZodNullable<z.ZodString>;
3082
+ }, z.core.$strict>;
3083
+ identity: z.ZodObject<{
3084
+ parentSessionId: z.ZodOptional<z.ZodString>;
3085
+ schemaVersion: z.ZodInt;
3086
+ sessionId: z.ZodString;
3087
+ }, z.core.$strict>;
3088
+ model: z.ZodObject<{
3089
+ harness: z.ZodEnum<{
3090
+ strike: "strike";
3091
+ cursor: "cursor";
3092
+ "claude-code": "claude-code";
3093
+ "gemini-cli": "gemini-cli";
3094
+ codex: "codex";
3095
+ opencode: "opencode";
3096
+ antigravity: "antigravity";
3097
+ }>;
3098
+ hostSlug: z.ZodOptional<z.ZodString>;
3099
+ model: z.ZodString;
3100
+ version: z.ZodOptional<z.ZodString>;
3101
+ }, z.core.$strict>;
3102
+ project: z.ZodObject<{
3103
+ filePath: z.ZodOptional<z.ZodString>;
3104
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
3105
+ name: z.ZodString;
3106
+ }, z.core.$strict>;
3107
+ quality: z.ZodNullable<z.ZodObject<{
3108
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3109
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3110
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3111
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3112
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3113
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3114
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3115
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3116
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3117
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3118
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3119
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3120
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3121
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3122
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3123
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3124
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3125
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3126
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3127
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3128
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3129
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3130
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3131
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3132
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3133
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3134
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3135
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3136
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3137
+ failed: "failed";
3138
+ partial: "partial";
3139
+ resolved: "resolved";
3140
+ }>>>;
3141
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3142
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3143
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3144
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3145
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3146
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3147
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3148
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3149
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3150
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3151
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3152
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3153
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3154
+ }, z.core.$strict>>;
3155
+ source: z.ZodObject<{
3156
+ filePath: z.ZodOptional<z.ZodString>;
3157
+ format: z.ZodEnum<{
3158
+ json: "json";
3159
+ jsonl: "jsonl";
3160
+ }>;
3161
+ }, z.core.$strict>;
3162
+ stats: z.ZodObject<{
3163
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3164
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3165
+ durationMs: z.ZodCoercedBigInt<unknown>;
3166
+ subagentCount: z.ZodInt;
3167
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3168
+ tokensIn: z.ZodInt;
3169
+ tokensOut: z.ZodInt;
3170
+ toolCallCount: z.ZodInt;
3171
+ turnCount: z.ZodInt;
3172
+ }, z.core.$strict>;
3173
+ subagents: z.ZodArray<z.ZodObject<{
3174
+ parentUuid: z.ZodString;
3175
+ sessionId: z.ZodString;
3176
+ }, z.core.$strict>>;
3177
+ timestamp: z.ZodObject<{
3178
+ end: z.ZodCoercedBigInt<unknown>;
3179
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3180
+ start: z.ZodCoercedBigInt<unknown>;
3181
+ }, z.core.$strict>;
3182
+ }, z.core.$strict>;
3183
+ }, z.core.$strict>;
3184
+ export type CanonicalPublishOperation = z.infer<typeof zCanonicalPublishOperation>;
3185
+ /**
3186
+ * Transcript ID
3187
+ *
3188
+ * Village-side transcript identifier (canonical lowercase-hex UUID)
3189
+ */
3190
+ export declare const zTranscriptID: z.ZodUUID;
3191
+ export type TranscriptID = z.infer<typeof zTranscriptID>;
3192
+ export declare const zPullSkipGateItem: z.ZodObject<{
3193
+ annotationHashes: z.ZodArray<z.ZodString>;
3194
+ contentHash: z.ZodString;
3195
+ transcriptId: z.ZodUUID;
2492
3196
  }, z.core.$strip>;
2493
3197
  export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
2494
3198
  export declare const zPullSkipGateRequest: z.ZodObject<{
@@ -2513,6 +3217,76 @@ export declare const zPullSkipGateResponse: z.ZodObject<{
2513
3217
  }, z.core.$strip>>;
2514
3218
  }, z.core.$strip>;
2515
3219
  export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
3220
+ /**
3221
+ * TranscriptUpdateLicense
3222
+ *
3223
+ * License value for the owner transcript update operation: a canonical menu license, or the empty string to clear. Clearing a license that was actually granted is refused, because a granted Creative Commons license is irrevocable.
3224
+ */
3225
+ export declare const zTranscriptUpdateLicense: z.ZodEnum<{
3226
+ "": "";
3227
+ "CC0-1.0": "CC0-1.0";
3228
+ "CC-BY-4.0": "CC-BY-4.0";
3229
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3230
+ }>;
3231
+ export type TranscriptUpdateLicense = z.infer<typeof zTranscriptUpdateLicense>;
3232
+ /**
3233
+ * TranscriptUpdateVisibility
3234
+ *
3235
+ * Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
3236
+ */
3237
+ export declare const zTranscriptUpdateVisibility: z.ZodEnum<{
3238
+ private: "private";
3239
+ public: "public";
3240
+ }>;
3241
+ export type TranscriptUpdateVisibility = z.infer<typeof zTranscriptUpdateVisibility>;
3242
+ export declare const zOwnerTranscriptUpdateRequest: z.ZodObject<{
3243
+ description: z.ZodOptional<z.ZodString>;
3244
+ license: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3245
+ "CC0-1.0": "CC0-1.0";
3246
+ "CC-BY-4.0": "CC-BY-4.0";
3247
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3248
+ }>>>;
3249
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3250
+ title: z.ZodOptional<z.ZodString>;
3251
+ visibility: z.ZodOptional<z.ZodEnum<{
3252
+ private: "private";
3253
+ public: "public";
3254
+ }>>;
3255
+ }, z.core.$strict>;
3256
+ export type OwnerTranscriptUpdateRequest = z.infer<typeof zOwnerTranscriptUpdateRequest>;
3257
+ export declare const zOwnerTranscriptUpdateResponse: z.ZodObject<{
3258
+ description: z.ZodNullable<z.ZodString>;
3259
+ license: z.ZodNullable<z.ZodEnum<{
3260
+ "CC0-1.0": "CC0-1.0";
3261
+ "CC-BY-4.0": "CC-BY-4.0";
3262
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3263
+ }>>;
3264
+ tags: z.ZodArray<z.ZodString>;
3265
+ title: z.ZodNullable<z.ZodString>;
3266
+ transcriptId: z.ZodUUID;
3267
+ transcriptUrl: z.ZodString;
3268
+ updatedAt: z.ZodCoercedBigInt<unknown>;
3269
+ visibility: z.ZodEnum<{
3270
+ private: "private";
3271
+ public: "public";
3272
+ }>;
3273
+ }, z.core.$strict>;
3274
+ export type OwnerTranscriptUpdateResponse = z.infer<typeof zOwnerTranscriptUpdateResponse>;
3275
+ export declare const zTranscriptUpdateRequest: z.ZodObject<{
3276
+ description: z.ZodOptional<z.ZodString>;
3277
+ license: z.ZodOptional<z.ZodEnum<{
3278
+ "": "";
3279
+ "CC0-1.0": "CC0-1.0";
3280
+ "CC-BY-4.0": "CC-BY-4.0";
3281
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3282
+ }>>;
3283
+ title: z.ZodOptional<z.ZodString>;
3284
+ visibility: z.ZodOptional<z.ZodEnum<{
3285
+ private: "private";
3286
+ public: "public";
3287
+ }>>;
3288
+ }, z.core.$strict>;
3289
+ export type TranscriptUpdateRequest = z.infer<typeof zTranscriptUpdateRequest>;
2516
3290
  export declare const zTrendsPayload: z.ZodObject<{
2517
3291
  days: z.ZodNullable<z.ZodArray<z.ZodObject<{
2518
3292
  date: z.ZodString;
@@ -2589,6 +3363,7 @@ export declare const zSessionDetailPayload: z.ZodObject<{
2589
3363
  gitBranch: z.ZodOptional<z.ZodString>;
2590
3364
  gitRemote: z.ZodOptional<z.ZodString>;
2591
3365
  harness: z.ZodEnum<{
3366
+ strike: "strike";
2592
3367
  cursor: "cursor";
2593
3368
  "claude-code": "claude-code";
2594
3369
  "gemini-cli": "gemini-cli";
@@ -2705,6 +3480,7 @@ export declare const zTranscriptContent: z.ZodObject<{
2705
3480
  gitBranch: z.ZodOptional<z.ZodString>;
2706
3481
  gitRemote: z.ZodOptional<z.ZodString>;
2707
3482
  harness: z.ZodEnum<{
3483
+ strike: "strike";
2708
3484
  cursor: "cursor";
2709
3485
  "claude-code": "claude-code";
2710
3486
  "gemini-cli": "gemini-cli";
@@ -2834,7 +3610,7 @@ export declare const zUnifiedMetadata: z.ZodObject<{
2834
3610
  associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2835
3611
  id: z.ZodString;
2836
3612
  observedCommitHash: z.ZodString;
2837
- }, z.core.$strip>>>;
3613
+ }, z.core.$strict>>>;
2838
3614
  branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2839
3615
  commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2840
3616
  authorEmail: z.ZodString;
@@ -2849,6 +3625,7 @@ export declare const zUnifiedMetadata: z.ZodObject<{
2849
3625
  worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2850
3626
  }, z.core.$strip>;
2851
3627
  harness: z.ZodEnum<{
3628
+ strike: "strike";
2852
3629
  cursor: "cursor";
2853
3630
  "claude-code": "claude-code";
2854
3631
  "gemini-cli": "gemini-cli";
@@ -3296,11 +4073,134 @@ export declare const zVisibility: z.ZodEnum<{
3296
4073
  group: "group";
3297
4074
  }>;
3298
4075
  export type Visibility = z.infer<typeof zVisibility>;
4076
+ export declare const zPublishNormalizedValues: z.ZodObject<{
4077
+ derivedTitle: z.ZodNullable<z.ZodString>;
4078
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4079
+ strike: "strike";
4080
+ cursor: "cursor";
4081
+ "claude-code": "claude-code";
4082
+ "gemini-cli": "gemini-cli";
4083
+ codex: "codex";
4084
+ opencode: "opencode";
4085
+ antigravity: "antigravity";
4086
+ }>>;
4087
+ rootHarness: z.ZodEnum<{
4088
+ strike: "strike";
4089
+ cursor: "cursor";
4090
+ "claude-code": "claude-code";
4091
+ "gemini-cli": "gemini-cli";
4092
+ codex: "codex";
4093
+ opencode: "opencode";
4094
+ antigravity: "antigravity";
4095
+ }>;
4096
+ schemaVersion: z.ZodString;
4097
+ visibility: z.ZodEnum<{
4098
+ private: "private";
4099
+ public: "public";
4100
+ group: "group";
4101
+ }>;
4102
+ }, z.core.$strict>;
4103
+ export type PublishNormalizedValues = z.infer<typeof zPublishNormalizedValues>;
4104
+ export declare const zPublishAppliedState: z.ZodObject<{
4105
+ associations: z.ZodArray<z.ZodObject<{
4106
+ id: z.ZodString;
4107
+ observedCommitHash: z.ZodString;
4108
+ }, z.core.$strict>>;
4109
+ license: z.ZodNullable<z.ZodEnum<{
4110
+ "CC0-1.0": "CC0-1.0";
4111
+ "CC-BY-4.0": "CC-BY-4.0";
4112
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4113
+ }>>;
4114
+ normalizedValues: z.ZodObject<{
4115
+ derivedTitle: z.ZodNullable<z.ZodString>;
4116
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4117
+ strike: "strike";
4118
+ cursor: "cursor";
4119
+ "claude-code": "claude-code";
4120
+ "gemini-cli": "gemini-cli";
4121
+ codex: "codex";
4122
+ opencode: "opencode";
4123
+ antigravity: "antigravity";
4124
+ }>>;
4125
+ rootHarness: z.ZodEnum<{
4126
+ strike: "strike";
4127
+ cursor: "cursor";
4128
+ "claude-code": "claude-code";
4129
+ "gemini-cli": "gemini-cli";
4130
+ codex: "codex";
4131
+ opencode: "opencode";
4132
+ antigravity: "antigravity";
4133
+ }>;
4134
+ schemaVersion: z.ZodString;
4135
+ visibility: z.ZodEnum<{
4136
+ private: "private";
4137
+ public: "public";
4138
+ group: "group";
4139
+ }>;
4140
+ }, z.core.$strict>;
4141
+ }, z.core.$strict>;
4142
+ export type PublishAppliedState = z.infer<typeof zPublishAppliedState>;
4143
+ export declare const zAuthoritativePublishResponse: z.ZodObject<{
4144
+ applied: z.ZodObject<{
4145
+ associations: z.ZodArray<z.ZodObject<{
4146
+ id: z.ZodString;
4147
+ observedCommitHash: z.ZodString;
4148
+ }, z.core.$strict>>;
4149
+ license: z.ZodNullable<z.ZodEnum<{
4150
+ "CC0-1.0": "CC0-1.0";
4151
+ "CC-BY-4.0": "CC-BY-4.0";
4152
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4153
+ }>>;
4154
+ normalizedValues: z.ZodObject<{
4155
+ derivedTitle: z.ZodNullable<z.ZodString>;
4156
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4157
+ strike: "strike";
4158
+ cursor: "cursor";
4159
+ "claude-code": "claude-code";
4160
+ "gemini-cli": "gemini-cli";
4161
+ codex: "codex";
4162
+ opencode: "opencode";
4163
+ antigravity: "antigravity";
4164
+ }>>;
4165
+ rootHarness: z.ZodEnum<{
4166
+ strike: "strike";
4167
+ cursor: "cursor";
4168
+ "claude-code": "claude-code";
4169
+ "gemini-cli": "gemini-cli";
4170
+ codex: "codex";
4171
+ opencode: "opencode";
4172
+ antigravity: "antigravity";
4173
+ }>;
4174
+ schemaVersion: z.ZodString;
4175
+ visibility: z.ZodEnum<{
4176
+ private: "private";
4177
+ public: "public";
4178
+ group: "group";
4179
+ }>;
4180
+ }, z.core.$strict>;
4181
+ }, z.core.$strict>;
4182
+ blobKey: z.ZodString;
4183
+ blobSizeBytes: z.ZodCoercedBigInt<unknown>;
4184
+ contentHash: z.ZodString;
4185
+ created: z.ZodBoolean;
4186
+ publishedAt: z.ZodCoercedBigInt<unknown>;
4187
+ requestOperationFingerprint: z.ZodString;
4188
+ transcriptId: z.ZodUUID;
4189
+ transcriptUrl: z.ZodString;
4190
+ updatedAt: z.ZodCoercedBigInt<unknown>;
4191
+ visibility: z.ZodEnum<{
4192
+ private: "private";
4193
+ public: "public";
4194
+ group: "group";
4195
+ }>;
4196
+ }, z.core.$strict>;
4197
+ export type AuthoritativePublishResponse = z.infer<typeof zAuthoritativePublishResponse>;
3299
4198
  export declare const zPullTranscriptInfo: z.ZodObject<{
3300
4199
  annotationCount: z.ZodInt;
3301
4200
  contentHash: z.ZodOptional<z.ZodString>;
3302
4201
  contractVersion: z.ZodOptional<z.ZodString>;
3303
4202
  harness: z.ZodOptional<z.ZodEnum<{
4203
+ strike: "strike";
3304
4204
  cursor: "cursor";
3305
4205
  "claude-code": "claude-code";
3306
4206
  "gemini-cli": "gemini-cli";
@@ -3337,6 +4237,7 @@ export declare const zPullListResponse: z.ZodObject<{
3337
4237
  contentHash: z.ZodOptional<z.ZodString>;
3338
4238
  contractVersion: z.ZodOptional<z.ZodString>;
3339
4239
  harness: z.ZodOptional<z.ZodEnum<{
4240
+ strike: "strike";
3340
4241
  cursor: "cursor";
3341
4242
  "claude-code": "claude-code";
3342
4243
  "gemini-cli": "gemini-cli";
@@ -3365,6 +4266,219 @@ export declare const zPullListResponse: z.ZodObject<{
3365
4266
  }, z.core.$strip>>>;
3366
4267
  }, z.core.$strip>;
3367
4268
  export type PullListResponse = z.infer<typeof zPullListResponse>;
4269
+ /**
4270
+ * Visibility Intent
4271
+ *
4272
+ * Optional desired final access for legacy compatibility; content replacement remains private and widening occurs separately
4273
+ */
4274
+ export declare const zVisibilityIntent: z.ZodEnum<{
4275
+ private: "private";
4276
+ public: "public";
4277
+ }>;
4278
+ export type VisibilityIntent = z.infer<typeof zVisibilityIntent>;
4279
+ export declare const zAuthoritativePublishRequest: z.ZodObject<{
4280
+ contentHash: z.ZodString;
4281
+ diagnostics: z.ZodOptional<z.ZodObject<{
4282
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4283
+ warnings: z.ZodArray<z.ZodObject<{
4284
+ errorType: z.ZodString;
4285
+ location: z.ZodString;
4286
+ message: z.ZodString;
4287
+ remediation: z.ZodString;
4288
+ }, z.core.$strict>>;
4289
+ }, z.core.$strict>>;
4290
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
4291
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4292
+ depth: z.ZodInt;
4293
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4294
+ entryIndex: z.ZodInt;
4295
+ entryType: z.ZodEnum<{
4296
+ error: "error";
4297
+ text: "text";
4298
+ tool_use: "tool_use";
4299
+ tool_result: "tool_result";
4300
+ thinking: "thinking";
4301
+ system: "system";
4302
+ result: "result";
4303
+ }>;
4304
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4305
+ harness: z.ZodEnum<{
4306
+ strike: "strike";
4307
+ cursor: "cursor";
4308
+ "claude-code": "claude-code";
4309
+ "gemini-cli": "gemini-cli";
4310
+ codex: "codex";
4311
+ opencode: "opencode";
4312
+ antigravity: "antigravity";
4313
+ }>;
4314
+ hasThinking: z.ZodBoolean;
4315
+ hasToolUse: z.ZodBoolean;
4316
+ isError: z.ZodBoolean;
4317
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4318
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4319
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4320
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4321
+ role: z.ZodEnum<{
4322
+ user: "user";
4323
+ system: "system";
4324
+ assistant: "assistant";
4325
+ tool: "tool";
4326
+ }>;
4327
+ sessionId: z.ZodString;
4328
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4329
+ end_turn: "end_turn";
4330
+ cancelled: "cancelled";
4331
+ max_tokens: "max_tokens";
4332
+ max_turn_requests: "max_turn_requests";
4333
+ refusal: "refusal";
4334
+ }>>>;
4335
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4336
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4337
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4338
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4339
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4340
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4341
+ search: "search";
4342
+ other: "other";
4343
+ move: "move";
4344
+ fetch: "fetch";
4345
+ delete: "delete";
4346
+ read: "read";
4347
+ edit: "edit";
4348
+ execute: "execute";
4349
+ think: "think";
4350
+ }>>>;
4351
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4352
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4353
+ }, z.core.$strict>>>;
4354
+ git: z.ZodOptional<z.ZodObject<{
4355
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
4356
+ id: z.ZodString;
4357
+ observedCommitHash: z.ZodString;
4358
+ }, z.core.$strict>>>;
4359
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4360
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4361
+ authorEmail: z.ZodString;
4362
+ authorName: z.ZodString;
4363
+ authorTime: z.ZodCoercedBigInt<unknown>;
4364
+ commitTime: z.ZodCoercedBigInt<unknown>;
4365
+ hash: z.ZodString;
4366
+ message: z.ZodString;
4367
+ }, z.core.$strict>>>;
4368
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4369
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4370
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4371
+ }, z.core.$strict>>;
4372
+ identity: z.ZodOptional<z.ZodObject<{
4373
+ parentSessionId: z.ZodOptional<z.ZodString>;
4374
+ schemaVersion: z.ZodInt;
4375
+ sessionId: z.ZodString;
4376
+ }, z.core.$strict>>;
4377
+ license: z.ZodOptional<z.ZodEnum<{
4378
+ "CC0-1.0": "CC0-1.0";
4379
+ "CC-BY-4.0": "CC-BY-4.0";
4380
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4381
+ }>>;
4382
+ model: z.ZodObject<{
4383
+ harness: z.ZodEnum<{
4384
+ strike: "strike";
4385
+ cursor: "cursor";
4386
+ "claude-code": "claude-code";
4387
+ "gemini-cli": "gemini-cli";
4388
+ codex: "codex";
4389
+ opencode: "opencode";
4390
+ antigravity: "antigravity";
4391
+ }>;
4392
+ hostSlug: z.ZodOptional<z.ZodString>;
4393
+ model: z.ZodString;
4394
+ version: z.ZodOptional<z.ZodString>;
4395
+ }, z.core.$strict>;
4396
+ project: z.ZodOptional<z.ZodObject<{
4397
+ filePath: z.ZodOptional<z.ZodString>;
4398
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
4399
+ name: z.ZodString;
4400
+ }, z.core.$strict>>;
4401
+ quality: z.ZodOptional<z.ZodObject<{
4402
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4403
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4404
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4405
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4406
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4407
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4408
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4409
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4410
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4411
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4412
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4413
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4414
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4415
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4416
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4417
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4418
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4419
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4420
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4421
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4422
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4423
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4424
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4425
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4426
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4427
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4428
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4429
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4430
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4431
+ failed: "failed";
4432
+ partial: "partial";
4433
+ resolved: "resolved";
4434
+ }>>>;
4435
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4436
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4437
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4438
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4439
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4440
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4441
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4442
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4443
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4444
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4445
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4446
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4447
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4448
+ }, z.core.$strict>>;
4449
+ source: z.ZodOptional<z.ZodObject<{
4450
+ filePath: z.ZodOptional<z.ZodString>;
4451
+ format: z.ZodEnum<{
4452
+ json: "json";
4453
+ jsonl: "jsonl";
4454
+ }>;
4455
+ }, z.core.$strict>>;
4456
+ stats: z.ZodOptional<z.ZodObject<{
4457
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4458
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4459
+ durationMs: z.ZodCoercedBigInt<unknown>;
4460
+ subagentCount: z.ZodInt;
4461
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4462
+ tokensIn: z.ZodInt;
4463
+ tokensOut: z.ZodInt;
4464
+ toolCallCount: z.ZodInt;
4465
+ turnCount: z.ZodInt;
4466
+ }, z.core.$strict>>;
4467
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
4468
+ parentUuid: z.ZodString;
4469
+ sessionId: z.ZodString;
4470
+ }, z.core.$strict>>>;
4471
+ timestamp: z.ZodOptional<z.ZodObject<{
4472
+ end: z.ZodCoercedBigInt<unknown>;
4473
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4474
+ start: z.ZodCoercedBigInt<unknown>;
4475
+ }, z.core.$strict>>;
4476
+ visibilityIntent: z.ZodOptional<z.ZodEnum<{
4477
+ private: "private";
4478
+ public: "public";
4479
+ }>>;
4480
+ }, z.core.$strict>;
4481
+ export type AuthoritativePublishRequest = z.infer<typeof zAuthoritativePublishRequest>;
3368
4482
  export declare const zWalkthroughStep: z.ZodObject<{
3369
4483
  excerpt: z.ZodString;
3370
4484
  file: z.ZodString;