@peasant-labs/schema 0.1.0-rc9 → 0.1.1-rc1

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,22 @@ 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
+ * Observed Model ID
804
+ *
805
+ * Exact UTF-8 model identifier observed on an assistant-generated turn; producer-enforced as assistant or subagent evidence. Values are non-empty and may not have a Unicode White_Space code point at either edge; all accepted bytes, including Unicode, mixed case, slashes, and internal spaces, are preserved.
806
+ */
807
+ export declare const zObservedModelID: z.ZodString;
808
+ export type ObservedModelID = z.infer<typeof zObservedModelID>;
809
+ /**
810
+ * Omitted preserves, null requests clear, and a canonical license replaces
811
+ */
812
+ export declare const zOwnerUpdateLicenseIntent: z.ZodNullable<z.ZodEnum<{
813
+ "CC0-1.0": "CC0-1.0";
814
+ "CC-BY-4.0": "CC-BY-4.0";
815
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
816
+ }>>;
817
+ export type OwnerUpdateLicenseIntent = z.infer<typeof zOwnerUpdateLicenseIntent>;
726
818
  /**
727
819
  * Project Hash
728
820
  *
@@ -730,6 +822,12 @@ export type ModelInfo = z.infer<typeof zModelInfo>;
730
822
  */
731
823
  export declare const zProjectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
732
824
  export type ProjectHash = z.infer<typeof zProjectHash>;
825
+ export declare const zAuthoritativeProjectContext: z.ZodObject<{
826
+ filePath: z.ZodOptional<z.ZodString>;
827
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
828
+ name: z.ZodString;
829
+ }, z.core.$strict>;
830
+ export type AuthoritativeProjectContext = z.infer<typeof zAuthoritativeProjectContext>;
733
831
  export declare const zProjectContext: z.ZodObject<{
734
832
  filePath: z.ZodOptional<z.ZodString>;
735
833
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
@@ -770,6 +868,37 @@ export declare const zProvenance: z.ZodObject<{
770
868
  version: z.ZodOptional<z.ZodString>;
771
869
  }, z.core.$strip>;
772
870
  export type Provenance = z.infer<typeof zProvenance>;
871
+ /**
872
+ * Publish Operation Kind
873
+ *
874
+ * Mutation semantic for one publish operation arm
875
+ */
876
+ export declare const zPublishOperationKind: z.ZodEnum<{
877
+ replace: "replace";
878
+ append: "append";
879
+ preserve: "preserve";
880
+ }>;
881
+ export type PublishOperationKind = z.infer<typeof zPublishOperationKind>;
882
+ export declare const zPublishLicenseOperation: z.ZodObject<{
883
+ kind: z.ZodEnum<{
884
+ replace: "replace";
885
+ append: "append";
886
+ preserve: "preserve";
887
+ }>;
888
+ license: z.ZodNullable<z.ZodEnum<{
889
+ "CC0-1.0": "CC0-1.0";
890
+ "CC-BY-4.0": "CC-BY-4.0";
891
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
892
+ }>>;
893
+ }, z.core.$strict>;
894
+ export type PublishLicenseOperation = z.infer<typeof zPublishLicenseOperation>;
895
+ /**
896
+ * Publish Request Fingerprint
897
+ *
898
+ * SHA3-256 digest of the canonical domain-separated publish operation
899
+ */
900
+ export declare const zPublishRequestFingerprint: z.ZodString;
901
+ export type PublishRequestFingerprint = z.infer<typeof zPublishRequestFingerprint>;
773
902
  export declare const zPublishResponse: z.ZodObject<{
774
903
  blobKey: z.ZodString;
775
904
  blobSizeBytes: z.ZodCoercedBigInt<unknown>;
@@ -782,13 +911,32 @@ export type PublishResponse = z.infer<typeof zPublishResponse>;
782
911
  export declare const zPublishedAssociation: z.ZodObject<{
783
912
  id: z.ZodString;
784
913
  observedCommitHash: z.ZodString;
785
- }, z.core.$strip>;
914
+ }, z.core.$strict>;
786
915
  export type PublishedAssociation = z.infer<typeof zPublishedAssociation>;
916
+ export declare const zAuthoritativeGitContext: z.ZodObject<{
917
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
918
+ id: z.ZodString;
919
+ observedCommitHash: z.ZodString;
920
+ }, z.core.$strict>>>;
921
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
922
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
923
+ authorEmail: z.ZodString;
924
+ authorName: z.ZodString;
925
+ authorTime: z.ZodCoercedBigInt<unknown>;
926
+ commitTime: z.ZodCoercedBigInt<unknown>;
927
+ hash: z.ZodString;
928
+ message: z.ZodString;
929
+ }, z.core.$strict>>>;
930
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ }, z.core.$strict>;
934
+ export type AuthoritativeGitContext = z.infer<typeof zAuthoritativeGitContext>;
787
935
  export declare const zGitContext: z.ZodObject<{
788
936
  associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
937
  id: z.ZodString;
790
938
  observedCommitHash: z.ZodString;
791
- }, z.core.$strip>>>;
939
+ }, z.core.$strict>>>;
792
940
  branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
941
  commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
794
942
  authorEmail: z.ZodString;
@@ -803,6 +951,18 @@ export declare const zGitContext: z.ZodObject<{
803
951
  worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
952
  }, z.core.$strip>;
805
953
  export type GitContext = z.infer<typeof zGitContext>;
954
+ export declare const zPublishAssociationOperation: z.ZodObject<{
955
+ associations: z.ZodArray<z.ZodObject<{
956
+ id: z.ZodString;
957
+ observedCommitHash: z.ZodString;
958
+ }, z.core.$strict>>;
959
+ kind: z.ZodEnum<{
960
+ replace: "replace";
961
+ append: "append";
962
+ preserve: "preserve";
963
+ }>;
964
+ }, z.core.$strict>;
965
+ export type PublishAssociationOperation = z.infer<typeof zPublishAssociationOperation>;
806
966
  /**
807
967
  * Read Attribution State
808
968
  *
@@ -1105,10 +1265,21 @@ export type ServerMessage = z.infer<typeof zServerMessage>;
1105
1265
  /**
1106
1266
  * Session ID
1107
1267
  *
1108
- * Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), or msg_{id})
1268
+ * Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), msg_{id}, or a Strike session ID)
1109
1269
  */
1110
1270
  export declare const zSessionID: z.ZodString;
1111
1271
  export type SessionID = z.infer<typeof zSessionID>;
1272
+ export declare const zAuthoritativeSessionIdentity: z.ZodObject<{
1273
+ parentSessionId: z.ZodOptional<z.ZodString>;
1274
+ schemaVersion: z.ZodInt;
1275
+ sessionId: z.ZodString;
1276
+ }, z.core.$strict>;
1277
+ export type AuthoritativeSessionIdentity = z.infer<typeof zAuthoritativeSessionIdentity>;
1278
+ export declare const zAuthoritativeSubagentRef: z.ZodObject<{
1279
+ parentUuid: z.ZodString;
1280
+ sessionId: z.ZodString;
1281
+ }, z.core.$strict>;
1282
+ export type AuthoritativeSubagentRef = z.infer<typeof zAuthoritativeSubagentRef>;
1112
1283
  export declare const zInsightEvidence: z.ZodObject<{
1113
1284
  commitHash: z.ZodOptional<z.ZodString>;
1114
1285
  entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1280,6 +1451,55 @@ export declare const zSessionOutcome: z.ZodEnum<{
1280
1451
  resolved: "resolved";
1281
1452
  }>;
1282
1453
  export type SessionOutcome = z.infer<typeof zSessionOutcome>;
1454
+ export declare const zAuthoritativeQualityMetrics: z.ZodObject<{
1455
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1456
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1457
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1458
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1459
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1460
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1461
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1462
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1463
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1464
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1465
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1466
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1467
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1468
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1469
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1470
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1471
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1472
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1473
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1474
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1475
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1476
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1477
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1478
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1479
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1480
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1481
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1482
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1483
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1484
+ failed: "failed";
1485
+ partial: "partial";
1486
+ resolved: "resolved";
1487
+ }>>>;
1488
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1489
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1490
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1491
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1492
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1493
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1494
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1495
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1496
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1498
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1499
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1500
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1501
+ }, z.core.$strict>;
1502
+ export type AuthoritativeQualityMetrics = z.infer<typeof zAuthoritativeQualityMetrics>;
1283
1503
  export declare const zQualityMetrics: z.ZodObject<{
1284
1504
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1285
1505
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1364,6 +1584,7 @@ export type SessionStats = z.infer<typeof zSessionStats>;
1364
1584
  export declare const zSessionSummary: z.ZodObject<{
1365
1585
  durationMins: z.ZodNumber;
1366
1586
  harness: z.ZodEnum<{
1587
+ strike: "strike";
1367
1588
  cursor: "cursor";
1368
1589
  "claude-code": "claude-code";
1369
1590
  "gemini-cli": "gemini-cli";
@@ -1387,6 +1608,7 @@ export declare const zSessionsPayload: z.ZodObject<{
1387
1608
  sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
1388
1609
  durationMins: z.ZodNumber;
1389
1610
  harness: z.ZodEnum<{
1611
+ strike: "strike";
1390
1612
  cursor: "cursor";
1391
1613
  "claude-code": "claude-code";
1392
1614
  "gemini-cli": "gemini-cli";
@@ -1421,6 +1643,14 @@ export declare const zSourceFormat: z.ZodEnum<{
1421
1643
  jsonl: "jsonl";
1422
1644
  }>;
1423
1645
  export type SourceFormat = z.infer<typeof zSourceFormat>;
1646
+ export declare const zAuthoritativeSourceInfo: z.ZodObject<{
1647
+ filePath: z.ZodOptional<z.ZodString>;
1648
+ format: z.ZodEnum<{
1649
+ json: "json";
1650
+ jsonl: "jsonl";
1651
+ }>;
1652
+ }, z.core.$strict>;
1653
+ export type AuthoritativeSourceInfo = z.infer<typeof zAuthoritativeSourceInfo>;
1424
1654
  export declare const zSourceInfo: z.ZodObject<{
1425
1655
  filePath: z.ZodOptional<z.ZodString>;
1426
1656
  format: z.ZodEnum<{
@@ -2038,6 +2268,7 @@ export declare const zProjectTasksPayload: z.ZodObject<{
2038
2268
  export type ProjectTasksPayload = z.infer<typeof zProjectTasksPayload>;
2039
2269
  export declare const zTimelineSessionRef: z.ZodObject<{
2040
2270
  harness: z.ZodEnum<{
2271
+ strike: "strike";
2041
2272
  cursor: "cursor";
2042
2273
  "claude-code": "claude-code";
2043
2274
  "gemini-cli": "gemini-cli";
@@ -2159,6 +2390,7 @@ export declare const zReviewListPayload: z.ZodObject<{
2159
2390
  }, z.core.$strip>>;
2160
2391
  sessions: z.ZodArray<z.ZodObject<{
2161
2392
  harness: z.ZodEnum<{
2393
+ strike: "strike";
2162
2394
  cursor: "cursor";
2163
2395
  "claude-code": "claude-code";
2164
2396
  "gemini-cli": "gemini-cli";
@@ -2196,7 +2428,7 @@ export declare const zToolCallKind: z.ZodEnum<{
2196
2428
  think: "think";
2197
2429
  }>;
2198
2430
  export type ToolCallKind = z.infer<typeof zToolCallKind>;
2199
- export declare const zSessionEntry: z.ZodObject<{
2431
+ export declare const zAuthoritativeSessionEntry: z.ZodObject<{
2200
2432
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2201
2433
  depth: z.ZodInt;
2202
2434
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2212,6 +2444,7 @@ export declare const zSessionEntry: z.ZodObject<{
2212
2444
  }>;
2213
2445
  extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2214
2446
  harness: z.ZodEnum<{
2447
+ strike: "strike";
2215
2448
  cursor: "cursor";
2216
2449
  "claude-code": "claude-code";
2217
2450
  "gemini-cli": "gemini-cli";
@@ -2258,19 +2491,19 @@ export declare const zSessionEntry: z.ZodObject<{
2258
2491
  }>>>;
2259
2492
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2260
2493
  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<{
2494
+ }, z.core.$strict>;
2495
+ export type AuthoritativeSessionEntry = z.infer<typeof zAuthoritativeSessionEntry>;
2496
+ export declare const zCanonicalPublishReplacement: z.ZodObject<{
2264
2497
  diagnostics: z.ZodObject<{
2265
2498
  partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2266
- warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2499
+ warnings: z.ZodArray<z.ZodObject<{
2267
2500
  errorType: z.ZodString;
2268
2501
  location: z.ZodString;
2269
2502
  message: z.ZodString;
2270
2503
  remediation: z.ZodString;
2271
- }, z.core.$strip>>>;
2272
- }, z.core.$strip>;
2273
- entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2504
+ }, z.core.$strict>>;
2505
+ }, z.core.$strict>;
2506
+ entries: z.ZodArray<z.ZodObject<{
2274
2507
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2275
2508
  depth: z.ZodInt;
2276
2509
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2286,6 +2519,7 @@ export declare const zPublishRequest: z.ZodObject<{
2286
2519
  }>;
2287
2520
  extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2288
2521
  harness: z.ZodEnum<{
2522
+ strike: "strike";
2289
2523
  cursor: "cursor";
2290
2524
  "claude-code": "claude-code";
2291
2525
  "gemini-cli": "gemini-cli";
@@ -2332,37 +2566,29 @@ export declare const zPublishRequest: z.ZodObject<{
2332
2566
  }>>>;
2333
2567
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2334
2568
  toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2335
- }, z.core.$strip>>>;
2569
+ }, z.core.$strict>>;
2336
2570
  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<{
2571
+ branch: z.ZodNullable<z.ZodString>;
2572
+ commits: z.ZodArray<z.ZodObject<{
2343
2573
  authorEmail: z.ZodString;
2344
2574
  authorName: z.ZodString;
2345
2575
  authorTime: z.ZodCoercedBigInt<unknown>;
2346
2576
  commitTime: z.ZodCoercedBigInt<unknown>;
2347
2577
  hash: z.ZodString;
2348
2578
  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>;
2579
+ }, z.core.$strict>>;
2580
+ remote: z.ZodNullable<z.ZodString>;
2581
+ tracking: z.ZodNullable<z.ZodString>;
2582
+ worktree: z.ZodNullable<z.ZodString>;
2583
+ }, z.core.$strict>;
2354
2584
  identity: z.ZodObject<{
2355
- parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2585
+ parentSessionId: z.ZodOptional<z.ZodString>;
2356
2586
  schemaVersion: z.ZodInt;
2357
2587
  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
- }>>;
2588
+ }, z.core.$strict>;
2364
2589
  model: z.ZodObject<{
2365
2590
  harness: z.ZodEnum<{
2591
+ strike: "strike";
2366
2592
  cursor: "cursor";
2367
2593
  "claude-code": "claude-code";
2368
2594
  "gemini-cli": "gemini-cli";
@@ -2373,13 +2599,13 @@ export declare const zPublishRequest: z.ZodObject<{
2373
2599
  hostSlug: z.ZodOptional<z.ZodString>;
2374
2600
  model: z.ZodString;
2375
2601
  version: z.ZodOptional<z.ZodString>;
2376
- }, z.core.$strip>;
2602
+ }, z.core.$strict>;
2377
2603
  project: z.ZodObject<{
2378
2604
  filePath: z.ZodOptional<z.ZodString>;
2379
2605
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2380
2606
  name: z.ZodString;
2381
- }, z.core.$strip>;
2382
- quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2607
+ }, z.core.$strict>;
2608
+ quality: z.ZodNullable<z.ZodObject<{
2383
2609
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2384
2610
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2385
2611
  costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2426,14 +2652,14 @@ export declare const zPublishRequest: z.ZodObject<{
2426
2652
  totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2427
2653
  turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2428
2654
  withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2429
- }, z.core.$strip>>>;
2655
+ }, z.core.$strict>>;
2430
2656
  source: z.ZodObject<{
2431
2657
  filePath: z.ZodOptional<z.ZodString>;
2432
2658
  format: z.ZodEnum<{
2433
2659
  json: "json";
2434
2660
  jsonl: "jsonl";
2435
2661
  }>;
2436
- }, z.core.$strip>;
2662
+ }, z.core.$strict>;
2437
2663
  stats: z.ZodObject<{
2438
2664
  cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2439
2665
  cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -2444,28 +2670,69 @@ export declare const zPublishRequest: z.ZodObject<{
2444
2670
  tokensOut: z.ZodInt;
2445
2671
  toolCallCount: z.ZodInt;
2446
2672
  turnCount: z.ZodInt;
2447
- }, z.core.$strip>;
2448
- subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2673
+ }, z.core.$strict>;
2674
+ subagents: z.ZodArray<z.ZodObject<{
2449
2675
  parentUuid: z.ZodString;
2450
2676
  sessionId: z.ZodString;
2451
- }, z.core.$strip>>>;
2677
+ }, z.core.$strict>>;
2452
2678
  timestamp: z.ZodObject<{
2453
2679
  end: z.ZodCoercedBigInt<unknown>;
2454
2680
  ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2455
2681
  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<{
2682
+ }, z.core.$strict>;
2683
+ }, z.core.$strict>;
2684
+ export type CanonicalPublishReplacement = z.infer<typeof zCanonicalPublishReplacement>;
2685
+ export declare const zSessionEntry: z.ZodObject<{
2686
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2687
+ depth: z.ZodInt;
2688
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2689
+ entryIndex: z.ZodInt;
2690
+ entryType: z.ZodEnum<{
2691
+ error: "error";
2692
+ text: "text";
2693
+ tool_use: "tool_use";
2694
+ tool_result: "tool_result";
2695
+ thinking: "thinking";
2696
+ system: "system";
2697
+ result: "result";
2698
+ }>;
2699
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2700
+ harness: z.ZodEnum<{
2701
+ strike: "strike";
2702
+ cursor: "cursor";
2703
+ "claude-code": "claude-code";
2704
+ "gemini-cli": "gemini-cli";
2705
+ codex: "codex";
2706
+ opencode: "opencode";
2707
+ antigravity: "antigravity";
2708
+ }>;
2709
+ hasThinking: z.ZodBoolean;
2710
+ hasToolUse: z.ZodBoolean;
2711
+ isError: z.ZodBoolean;
2712
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2713
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2714
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2715
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2716
+ role: z.ZodEnum<{
2717
+ user: "user";
2718
+ system: "system";
2719
+ assistant: "assistant";
2720
+ tool: "tool";
2721
+ }>;
2722
+ sessionId: z.ZodString;
2723
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2724
+ end_turn: "end_turn";
2725
+ cancelled: "cancelled";
2726
+ max_tokens: "max_tokens";
2727
+ max_turn_requests: "max_turn_requests";
2728
+ refusal: "refusal";
2729
+ }>>>;
2730
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2731
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2732
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2733
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2734
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2469
2736
  search: "search";
2470
2737
  other: "other";
2471
2738
  move: "move";
@@ -2475,18 +2742,462 @@ export declare const zToolCallDetail: z.ZodObject<{
2475
2742
  edit: "edit";
2476
2743
  execute: "execute";
2477
2744
  think: "think";
2478
- }>>;
2745
+ }>>>;
2746
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2747
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
2748
  }, 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>;
2749
+ export type SessionEntry = z.infer<typeof zSessionEntry>;
2750
+ export declare const zPublishRequest: z.ZodObject<{
2751
+ diagnostics: z.ZodObject<{
2752
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2753
+ warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2754
+ errorType: z.ZodString;
2755
+ location: z.ZodString;
2756
+ message: z.ZodString;
2757
+ remediation: z.ZodString;
2758
+ }, z.core.$strip>>>;
2759
+ }, z.core.$strip>;
2760
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2761
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2762
+ depth: z.ZodInt;
2763
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2764
+ entryIndex: z.ZodInt;
2765
+ entryType: z.ZodEnum<{
2766
+ error: "error";
2767
+ text: "text";
2768
+ tool_use: "tool_use";
2769
+ tool_result: "tool_result";
2770
+ thinking: "thinking";
2771
+ system: "system";
2772
+ result: "result";
2773
+ }>;
2774
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2775
+ harness: z.ZodEnum<{
2776
+ strike: "strike";
2777
+ cursor: "cursor";
2778
+ "claude-code": "claude-code";
2779
+ "gemini-cli": "gemini-cli";
2780
+ codex: "codex";
2781
+ opencode: "opencode";
2782
+ antigravity: "antigravity";
2783
+ }>;
2784
+ hasThinking: z.ZodBoolean;
2785
+ hasToolUse: z.ZodBoolean;
2786
+ isError: z.ZodBoolean;
2787
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2788
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2789
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2790
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2791
+ role: z.ZodEnum<{
2792
+ user: "user";
2793
+ system: "system";
2794
+ assistant: "assistant";
2795
+ tool: "tool";
2796
+ }>;
2797
+ sessionId: z.ZodString;
2798
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2799
+ end_turn: "end_turn";
2800
+ cancelled: "cancelled";
2801
+ max_tokens: "max_tokens";
2802
+ max_turn_requests: "max_turn_requests";
2803
+ refusal: "refusal";
2804
+ }>>>;
2805
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2806
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2807
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2808
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2809
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2810
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2811
+ search: "search";
2812
+ other: "other";
2813
+ move: "move";
2814
+ fetch: "fetch";
2815
+ delete: "delete";
2816
+ read: "read";
2817
+ edit: "edit";
2818
+ execute: "execute";
2819
+ think: "think";
2820
+ }>>>;
2821
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2822
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2823
+ }, z.core.$strip>>>;
2824
+ git: z.ZodObject<{
2825
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2826
+ id: z.ZodString;
2827
+ observedCommitHash: z.ZodString;
2828
+ }, z.core.$strict>>>;
2829
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2830
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2831
+ authorEmail: z.ZodString;
2832
+ authorName: z.ZodString;
2833
+ authorTime: z.ZodCoercedBigInt<unknown>;
2834
+ commitTime: z.ZodCoercedBigInt<unknown>;
2835
+ hash: z.ZodString;
2836
+ message: z.ZodString;
2837
+ }, z.core.$strip>>>;
2838
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2839
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2840
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2841
+ }, z.core.$strip>;
2842
+ identity: z.ZodObject<{
2843
+ parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2844
+ schemaVersion: z.ZodInt;
2845
+ sessionId: z.ZodString;
2846
+ }, z.core.$strip>;
2847
+ license: z.ZodOptional<z.ZodEnum<{
2848
+ "CC0-1.0": "CC0-1.0";
2849
+ "CC-BY-4.0": "CC-BY-4.0";
2850
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2851
+ }>>;
2852
+ model: z.ZodObject<{
2853
+ harness: z.ZodEnum<{
2854
+ strike: "strike";
2855
+ cursor: "cursor";
2856
+ "claude-code": "claude-code";
2857
+ "gemini-cli": "gemini-cli";
2858
+ codex: "codex";
2859
+ opencode: "opencode";
2860
+ antigravity: "antigravity";
2861
+ }>;
2862
+ hostSlug: z.ZodOptional<z.ZodString>;
2863
+ model: z.ZodString;
2864
+ version: z.ZodOptional<z.ZodString>;
2865
+ }, z.core.$strip>;
2866
+ project: z.ZodObject<{
2867
+ filePath: z.ZodOptional<z.ZodString>;
2868
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2869
+ name: z.ZodString;
2870
+ }, z.core.$strip>;
2871
+ quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2872
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2873
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2874
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2875
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2876
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2877
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2878
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2879
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2880
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2881
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2882
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2883
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2884
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2885
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2886
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2887
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2888
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2889
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2890
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2891
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2892
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2893
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2894
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2895
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2896
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2897
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2898
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2899
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2900
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2901
+ failed: "failed";
2902
+ partial: "partial";
2903
+ resolved: "resolved";
2904
+ }>>>;
2905
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2906
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2907
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2908
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2909
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2910
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2911
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2912
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2913
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2914
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2915
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2916
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2917
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2918
+ }, z.core.$strip>>>;
2919
+ source: z.ZodObject<{
2920
+ filePath: z.ZodOptional<z.ZodString>;
2921
+ format: z.ZodEnum<{
2922
+ json: "json";
2923
+ jsonl: "jsonl";
2924
+ }>;
2925
+ }, z.core.$strip>;
2926
+ stats: z.ZodObject<{
2927
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2928
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2929
+ durationMs: z.ZodCoercedBigInt<unknown>;
2930
+ subagentCount: z.ZodInt;
2931
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2932
+ tokensIn: z.ZodInt;
2933
+ tokensOut: z.ZodInt;
2934
+ toolCallCount: z.ZodInt;
2935
+ turnCount: z.ZodInt;
2936
+ }, z.core.$strip>;
2937
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2938
+ parentUuid: z.ZodString;
2939
+ sessionId: z.ZodString;
2940
+ }, z.core.$strip>>>;
2941
+ timestamp: z.ZodObject<{
2942
+ end: z.ZodCoercedBigInt<unknown>;
2943
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2944
+ start: z.ZodCoercedBigInt<unknown>;
2945
+ }, z.core.$strip>;
2946
+ }, z.core.$strip>;
2947
+ export type PublishRequest = z.infer<typeof zPublishRequest>;
2948
+ export declare const zToolCallDetail: z.ZodObject<{
2949
+ arguments: z.ZodString;
2950
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2951
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2952
+ filePath: z.ZodOptional<z.ZodString>;
2953
+ id: z.ZodString;
2954
+ isError: z.ZodOptional<z.ZodBoolean>;
2955
+ name: z.ZodString;
2956
+ result: z.ZodString;
2957
+ toolKind: z.ZodOptional<z.ZodEnum<{
2958
+ search: "search";
2959
+ other: "other";
2960
+ move: "move";
2961
+ fetch: "fetch";
2962
+ delete: "delete";
2963
+ read: "read";
2964
+ edit: "edit";
2965
+ execute: "execute";
2966
+ think: "think";
2967
+ }>>;
2968
+ }, z.core.$strip>;
2969
+ export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
2970
+ /**
2971
+ * Transcript Content Hash
2972
+ *
2973
+ * SHA3-256 digest of the exact transcript file bytes
2974
+ */
2975
+ export declare const zTranscriptContentHash: z.ZodString;
2976
+ export type TranscriptContentHash = z.infer<typeof zTranscriptContentHash>;
2977
+ export declare const zCanonicalPublishOperation: z.ZodObject<{
2978
+ associations: z.ZodObject<{
2979
+ associations: z.ZodArray<z.ZodObject<{
2980
+ id: z.ZodString;
2981
+ observedCommitHash: z.ZodString;
2982
+ }, z.core.$strict>>;
2983
+ kind: z.ZodEnum<{
2984
+ replace: "replace";
2985
+ append: "append";
2986
+ preserve: "preserve";
2987
+ }>;
2988
+ }, z.core.$strict>;
2989
+ contentHash: z.ZodString;
2990
+ license: z.ZodObject<{
2991
+ kind: z.ZodEnum<{
2992
+ replace: "replace";
2993
+ append: "append";
2994
+ preserve: "preserve";
2995
+ }>;
2996
+ license: z.ZodNullable<z.ZodEnum<{
2997
+ "CC0-1.0": "CC0-1.0";
2998
+ "CC-BY-4.0": "CC-BY-4.0";
2999
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3000
+ }>>;
3001
+ }, z.core.$strict>;
3002
+ replacement: z.ZodObject<{
3003
+ diagnostics: z.ZodObject<{
3004
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3005
+ warnings: z.ZodArray<z.ZodObject<{
3006
+ errorType: z.ZodString;
3007
+ location: z.ZodString;
3008
+ message: z.ZodString;
3009
+ remediation: z.ZodString;
3010
+ }, z.core.$strict>>;
3011
+ }, z.core.$strict>;
3012
+ entries: z.ZodArray<z.ZodObject<{
3013
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3014
+ depth: z.ZodInt;
3015
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3016
+ entryIndex: z.ZodInt;
3017
+ entryType: z.ZodEnum<{
3018
+ error: "error";
3019
+ text: "text";
3020
+ tool_use: "tool_use";
3021
+ tool_result: "tool_result";
3022
+ thinking: "thinking";
3023
+ system: "system";
3024
+ result: "result";
3025
+ }>;
3026
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3027
+ harness: z.ZodEnum<{
3028
+ strike: "strike";
3029
+ cursor: "cursor";
3030
+ "claude-code": "claude-code";
3031
+ "gemini-cli": "gemini-cli";
3032
+ codex: "codex";
3033
+ opencode: "opencode";
3034
+ antigravity: "antigravity";
3035
+ }>;
3036
+ hasThinking: z.ZodBoolean;
3037
+ hasToolUse: z.ZodBoolean;
3038
+ isError: z.ZodBoolean;
3039
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3040
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3041
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3042
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3043
+ role: z.ZodEnum<{
3044
+ user: "user";
3045
+ system: "system";
3046
+ assistant: "assistant";
3047
+ tool: "tool";
3048
+ }>;
3049
+ sessionId: z.ZodString;
3050
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3051
+ end_turn: "end_turn";
3052
+ cancelled: "cancelled";
3053
+ max_tokens: "max_tokens";
3054
+ max_turn_requests: "max_turn_requests";
3055
+ refusal: "refusal";
3056
+ }>>>;
3057
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3058
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3059
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3060
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3061
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3062
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3063
+ search: "search";
3064
+ other: "other";
3065
+ move: "move";
3066
+ fetch: "fetch";
3067
+ delete: "delete";
3068
+ read: "read";
3069
+ edit: "edit";
3070
+ execute: "execute";
3071
+ think: "think";
3072
+ }>>>;
3073
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3074
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3075
+ }, z.core.$strict>>;
3076
+ git: z.ZodObject<{
3077
+ branch: z.ZodNullable<z.ZodString>;
3078
+ commits: z.ZodArray<z.ZodObject<{
3079
+ authorEmail: z.ZodString;
3080
+ authorName: z.ZodString;
3081
+ authorTime: z.ZodCoercedBigInt<unknown>;
3082
+ commitTime: z.ZodCoercedBigInt<unknown>;
3083
+ hash: z.ZodString;
3084
+ message: z.ZodString;
3085
+ }, z.core.$strict>>;
3086
+ remote: z.ZodNullable<z.ZodString>;
3087
+ tracking: z.ZodNullable<z.ZodString>;
3088
+ worktree: z.ZodNullable<z.ZodString>;
3089
+ }, z.core.$strict>;
3090
+ identity: z.ZodObject<{
3091
+ parentSessionId: z.ZodOptional<z.ZodString>;
3092
+ schemaVersion: z.ZodInt;
3093
+ sessionId: z.ZodString;
3094
+ }, z.core.$strict>;
3095
+ model: z.ZodObject<{
3096
+ harness: z.ZodEnum<{
3097
+ strike: "strike";
3098
+ cursor: "cursor";
3099
+ "claude-code": "claude-code";
3100
+ "gemini-cli": "gemini-cli";
3101
+ codex: "codex";
3102
+ opencode: "opencode";
3103
+ antigravity: "antigravity";
3104
+ }>;
3105
+ hostSlug: z.ZodOptional<z.ZodString>;
3106
+ model: z.ZodString;
3107
+ version: z.ZodOptional<z.ZodString>;
3108
+ }, z.core.$strict>;
3109
+ project: z.ZodObject<{
3110
+ filePath: z.ZodOptional<z.ZodString>;
3111
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
3112
+ name: z.ZodString;
3113
+ }, z.core.$strict>;
3114
+ quality: z.ZodNullable<z.ZodObject<{
3115
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3116
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3117
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3118
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3119
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3120
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3121
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3122
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3123
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3124
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3125
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3126
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3127
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3128
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3129
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3130
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3131
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3132
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3133
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3134
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3135
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3136
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3137
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3138
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3139
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3140
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3141
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3142
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3143
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3144
+ failed: "failed";
3145
+ partial: "partial";
3146
+ resolved: "resolved";
3147
+ }>>>;
3148
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3149
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3150
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3151
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3152
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3153
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3154
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3155
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3156
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3157
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3158
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3159
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3160
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3161
+ }, z.core.$strict>>;
3162
+ source: z.ZodObject<{
3163
+ filePath: z.ZodOptional<z.ZodString>;
3164
+ format: z.ZodEnum<{
3165
+ json: "json";
3166
+ jsonl: "jsonl";
3167
+ }>;
3168
+ }, z.core.$strict>;
3169
+ stats: z.ZodObject<{
3170
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3171
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3172
+ durationMs: z.ZodCoercedBigInt<unknown>;
3173
+ subagentCount: z.ZodInt;
3174
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3175
+ tokensIn: z.ZodInt;
3176
+ tokensOut: z.ZodInt;
3177
+ toolCallCount: z.ZodInt;
3178
+ turnCount: z.ZodInt;
3179
+ }, z.core.$strict>;
3180
+ subagents: z.ZodArray<z.ZodObject<{
3181
+ parentUuid: z.ZodString;
3182
+ sessionId: z.ZodString;
3183
+ }, z.core.$strict>>;
3184
+ timestamp: z.ZodObject<{
3185
+ end: z.ZodCoercedBigInt<unknown>;
3186
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3187
+ start: z.ZodCoercedBigInt<unknown>;
3188
+ }, z.core.$strict>;
3189
+ }, z.core.$strict>;
3190
+ }, z.core.$strict>;
3191
+ export type CanonicalPublishOperation = z.infer<typeof zCanonicalPublishOperation>;
3192
+ /**
3193
+ * Transcript ID
3194
+ *
3195
+ * Village-side transcript identifier (canonical lowercase-hex UUID)
3196
+ */
3197
+ export declare const zTranscriptID: z.ZodUUID;
3198
+ export type TranscriptID = z.infer<typeof zTranscriptID>;
3199
+ export declare const zPullSkipGateItem: z.ZodObject<{
3200
+ annotationHashes: z.ZodArray<z.ZodString>;
2490
3201
  contentHash: z.ZodString;
2491
3202
  transcriptId: z.ZodUUID;
2492
3203
  }, z.core.$strip>;
@@ -2513,6 +3224,76 @@ export declare const zPullSkipGateResponse: z.ZodObject<{
2513
3224
  }, z.core.$strip>>;
2514
3225
  }, z.core.$strip>;
2515
3226
  export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
3227
+ /**
3228
+ * TranscriptUpdateLicense
3229
+ *
3230
+ * 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.
3231
+ */
3232
+ export declare const zTranscriptUpdateLicense: z.ZodEnum<{
3233
+ "": "";
3234
+ "CC0-1.0": "CC0-1.0";
3235
+ "CC-BY-4.0": "CC-BY-4.0";
3236
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3237
+ }>;
3238
+ export type TranscriptUpdateLicense = z.infer<typeof zTranscriptUpdateLicense>;
3239
+ /**
3240
+ * TranscriptUpdateVisibility
3241
+ *
3242
+ * Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
3243
+ */
3244
+ export declare const zTranscriptUpdateVisibility: z.ZodEnum<{
3245
+ private: "private";
3246
+ public: "public";
3247
+ }>;
3248
+ export type TranscriptUpdateVisibility = z.infer<typeof zTranscriptUpdateVisibility>;
3249
+ export declare const zOwnerTranscriptUpdateRequest: z.ZodObject<{
3250
+ description: z.ZodOptional<z.ZodString>;
3251
+ license: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3252
+ "CC0-1.0": "CC0-1.0";
3253
+ "CC-BY-4.0": "CC-BY-4.0";
3254
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3255
+ }>>>;
3256
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3257
+ title: z.ZodOptional<z.ZodString>;
3258
+ visibility: z.ZodOptional<z.ZodEnum<{
3259
+ private: "private";
3260
+ public: "public";
3261
+ }>>;
3262
+ }, z.core.$strict>;
3263
+ export type OwnerTranscriptUpdateRequest = z.infer<typeof zOwnerTranscriptUpdateRequest>;
3264
+ export declare const zOwnerTranscriptUpdateResponse: z.ZodObject<{
3265
+ description: z.ZodNullable<z.ZodString>;
3266
+ license: z.ZodNullable<z.ZodEnum<{
3267
+ "CC0-1.0": "CC0-1.0";
3268
+ "CC-BY-4.0": "CC-BY-4.0";
3269
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3270
+ }>>;
3271
+ tags: z.ZodArray<z.ZodString>;
3272
+ title: z.ZodNullable<z.ZodString>;
3273
+ transcriptId: z.ZodUUID;
3274
+ transcriptUrl: z.ZodString;
3275
+ updatedAt: z.ZodCoercedBigInt<unknown>;
3276
+ visibility: z.ZodEnum<{
3277
+ private: "private";
3278
+ public: "public";
3279
+ }>;
3280
+ }, z.core.$strict>;
3281
+ export type OwnerTranscriptUpdateResponse = z.infer<typeof zOwnerTranscriptUpdateResponse>;
3282
+ export declare const zTranscriptUpdateRequest: z.ZodObject<{
3283
+ description: z.ZodOptional<z.ZodString>;
3284
+ license: z.ZodOptional<z.ZodEnum<{
3285
+ "": "";
3286
+ "CC0-1.0": "CC0-1.0";
3287
+ "CC-BY-4.0": "CC-BY-4.0";
3288
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3289
+ }>>;
3290
+ title: z.ZodOptional<z.ZodString>;
3291
+ visibility: z.ZodOptional<z.ZodEnum<{
3292
+ private: "private";
3293
+ public: "public";
3294
+ }>>;
3295
+ }, z.core.$strict>;
3296
+ export type TranscriptUpdateRequest = z.infer<typeof zTranscriptUpdateRequest>;
2516
3297
  export declare const zTrendsPayload: z.ZodObject<{
2517
3298
  days: z.ZodNullable<z.ZodArray<z.ZodObject<{
2518
3299
  date: z.ZodString;
@@ -2538,6 +3319,7 @@ export declare const zTurnDetail: z.ZodObject<{
2538
3319
  }>>;
2539
3320
  hasThinking: z.ZodOptional<z.ZodBoolean>;
2540
3321
  index: z.ZodInt;
3322
+ observedModel: z.ZodOptional<z.ZodString>;
2541
3323
  parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2542
3324
  role: z.ZodEnum<{
2543
3325
  user: "user";
@@ -2589,6 +3371,7 @@ export declare const zSessionDetailPayload: z.ZodObject<{
2589
3371
  gitBranch: z.ZodOptional<z.ZodString>;
2590
3372
  gitRemote: z.ZodOptional<z.ZodString>;
2591
3373
  harness: z.ZodEnum<{
3374
+ strike: "strike";
2592
3375
  cursor: "cursor";
2593
3376
  "claude-code": "claude-code";
2594
3377
  "gemini-cli": "gemini-cli";
@@ -2647,6 +3430,7 @@ export declare const zSessionDetailPayload: z.ZodObject<{
2647
3430
  }>>;
2648
3431
  hasThinking: z.ZodOptional<z.ZodBoolean>;
2649
3432
  index: z.ZodInt;
3433
+ observedModel: z.ZodOptional<z.ZodString>;
2650
3434
  parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2651
3435
  role: z.ZodEnum<{
2652
3436
  user: "user";
@@ -2705,6 +3489,7 @@ export declare const zTranscriptContent: z.ZodObject<{
2705
3489
  gitBranch: z.ZodOptional<z.ZodString>;
2706
3490
  gitRemote: z.ZodOptional<z.ZodString>;
2707
3491
  harness: z.ZodEnum<{
3492
+ strike: "strike";
2708
3493
  cursor: "cursor";
2709
3494
  "claude-code": "claude-code";
2710
3495
  "gemini-cli": "gemini-cli";
@@ -2763,6 +3548,7 @@ export declare const zTranscriptContent: z.ZodObject<{
2763
3548
  }>>;
2764
3549
  hasThinking: z.ZodOptional<z.ZodBoolean>;
2765
3550
  index: z.ZodInt;
3551
+ observedModel: z.ZodOptional<z.ZodString>;
2766
3552
  parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2767
3553
  role: z.ZodEnum<{
2768
3554
  user: "user";
@@ -2834,7 +3620,7 @@ export declare const zUnifiedMetadata: z.ZodObject<{
2834
3620
  associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2835
3621
  id: z.ZodString;
2836
3622
  observedCommitHash: z.ZodString;
2837
- }, z.core.$strip>>>;
3623
+ }, z.core.$strict>>>;
2838
3624
  branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2839
3625
  commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2840
3626
  authorEmail: z.ZodString;
@@ -2849,6 +3635,7 @@ export declare const zUnifiedMetadata: z.ZodObject<{
2849
3635
  worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2850
3636
  }, z.core.$strip>;
2851
3637
  harness: z.ZodEnum<{
3638
+ strike: "strike";
2852
3639
  cursor: "cursor";
2853
3640
  "claude-code": "claude-code";
2854
3641
  "gemini-cli": "gemini-cli";
@@ -3296,11 +4083,134 @@ export declare const zVisibility: z.ZodEnum<{
3296
4083
  group: "group";
3297
4084
  }>;
3298
4085
  export type Visibility = z.infer<typeof zVisibility>;
4086
+ export declare const zPublishNormalizedValues: z.ZodObject<{
4087
+ derivedTitle: z.ZodNullable<z.ZodString>;
4088
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4089
+ strike: "strike";
4090
+ cursor: "cursor";
4091
+ "claude-code": "claude-code";
4092
+ "gemini-cli": "gemini-cli";
4093
+ codex: "codex";
4094
+ opencode: "opencode";
4095
+ antigravity: "antigravity";
4096
+ }>>;
4097
+ rootHarness: z.ZodEnum<{
4098
+ strike: "strike";
4099
+ cursor: "cursor";
4100
+ "claude-code": "claude-code";
4101
+ "gemini-cli": "gemini-cli";
4102
+ codex: "codex";
4103
+ opencode: "opencode";
4104
+ antigravity: "antigravity";
4105
+ }>;
4106
+ schemaVersion: z.ZodString;
4107
+ visibility: z.ZodEnum<{
4108
+ private: "private";
4109
+ public: "public";
4110
+ group: "group";
4111
+ }>;
4112
+ }, z.core.$strict>;
4113
+ export type PublishNormalizedValues = z.infer<typeof zPublishNormalizedValues>;
4114
+ export declare const zPublishAppliedState: z.ZodObject<{
4115
+ associations: z.ZodArray<z.ZodObject<{
4116
+ id: z.ZodString;
4117
+ observedCommitHash: z.ZodString;
4118
+ }, z.core.$strict>>;
4119
+ license: z.ZodNullable<z.ZodEnum<{
4120
+ "CC0-1.0": "CC0-1.0";
4121
+ "CC-BY-4.0": "CC-BY-4.0";
4122
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4123
+ }>>;
4124
+ normalizedValues: z.ZodObject<{
4125
+ derivedTitle: z.ZodNullable<z.ZodString>;
4126
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4127
+ strike: "strike";
4128
+ cursor: "cursor";
4129
+ "claude-code": "claude-code";
4130
+ "gemini-cli": "gemini-cli";
4131
+ codex: "codex";
4132
+ opencode: "opencode";
4133
+ antigravity: "antigravity";
4134
+ }>>;
4135
+ rootHarness: z.ZodEnum<{
4136
+ strike: "strike";
4137
+ cursor: "cursor";
4138
+ "claude-code": "claude-code";
4139
+ "gemini-cli": "gemini-cli";
4140
+ codex: "codex";
4141
+ opencode: "opencode";
4142
+ antigravity: "antigravity";
4143
+ }>;
4144
+ schemaVersion: z.ZodString;
4145
+ visibility: z.ZodEnum<{
4146
+ private: "private";
4147
+ public: "public";
4148
+ group: "group";
4149
+ }>;
4150
+ }, z.core.$strict>;
4151
+ }, z.core.$strict>;
4152
+ export type PublishAppliedState = z.infer<typeof zPublishAppliedState>;
4153
+ export declare const zAuthoritativePublishResponse: z.ZodObject<{
4154
+ applied: z.ZodObject<{
4155
+ associations: z.ZodArray<z.ZodObject<{
4156
+ id: z.ZodString;
4157
+ observedCommitHash: z.ZodString;
4158
+ }, z.core.$strict>>;
4159
+ license: z.ZodNullable<z.ZodEnum<{
4160
+ "CC0-1.0": "CC0-1.0";
4161
+ "CC-BY-4.0": "CC-BY-4.0";
4162
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4163
+ }>>;
4164
+ normalizedValues: z.ZodObject<{
4165
+ derivedTitle: z.ZodNullable<z.ZodString>;
4166
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4167
+ strike: "strike";
4168
+ cursor: "cursor";
4169
+ "claude-code": "claude-code";
4170
+ "gemini-cli": "gemini-cli";
4171
+ codex: "codex";
4172
+ opencode: "opencode";
4173
+ antigravity: "antigravity";
4174
+ }>>;
4175
+ rootHarness: z.ZodEnum<{
4176
+ strike: "strike";
4177
+ cursor: "cursor";
4178
+ "claude-code": "claude-code";
4179
+ "gemini-cli": "gemini-cli";
4180
+ codex: "codex";
4181
+ opencode: "opencode";
4182
+ antigravity: "antigravity";
4183
+ }>;
4184
+ schemaVersion: z.ZodString;
4185
+ visibility: z.ZodEnum<{
4186
+ private: "private";
4187
+ public: "public";
4188
+ group: "group";
4189
+ }>;
4190
+ }, z.core.$strict>;
4191
+ }, z.core.$strict>;
4192
+ blobKey: z.ZodString;
4193
+ blobSizeBytes: z.ZodCoercedBigInt<unknown>;
4194
+ contentHash: z.ZodString;
4195
+ created: z.ZodBoolean;
4196
+ publishedAt: z.ZodCoercedBigInt<unknown>;
4197
+ requestOperationFingerprint: z.ZodString;
4198
+ transcriptId: z.ZodUUID;
4199
+ transcriptUrl: z.ZodString;
4200
+ updatedAt: z.ZodCoercedBigInt<unknown>;
4201
+ visibility: z.ZodEnum<{
4202
+ private: "private";
4203
+ public: "public";
4204
+ group: "group";
4205
+ }>;
4206
+ }, z.core.$strict>;
4207
+ export type AuthoritativePublishResponse = z.infer<typeof zAuthoritativePublishResponse>;
3299
4208
  export declare const zPullTranscriptInfo: z.ZodObject<{
3300
4209
  annotationCount: z.ZodInt;
3301
4210
  contentHash: z.ZodOptional<z.ZodString>;
3302
4211
  contractVersion: z.ZodOptional<z.ZodString>;
3303
4212
  harness: z.ZodOptional<z.ZodEnum<{
4213
+ strike: "strike";
3304
4214
  cursor: "cursor";
3305
4215
  "claude-code": "claude-code";
3306
4216
  "gemini-cli": "gemini-cli";
@@ -3337,6 +4247,7 @@ export declare const zPullListResponse: z.ZodObject<{
3337
4247
  contentHash: z.ZodOptional<z.ZodString>;
3338
4248
  contractVersion: z.ZodOptional<z.ZodString>;
3339
4249
  harness: z.ZodOptional<z.ZodEnum<{
4250
+ strike: "strike";
3340
4251
  cursor: "cursor";
3341
4252
  "claude-code": "claude-code";
3342
4253
  "gemini-cli": "gemini-cli";
@@ -3365,6 +4276,219 @@ export declare const zPullListResponse: z.ZodObject<{
3365
4276
  }, z.core.$strip>>>;
3366
4277
  }, z.core.$strip>;
3367
4278
  export type PullListResponse = z.infer<typeof zPullListResponse>;
4279
+ /**
4280
+ * Visibility Intent
4281
+ *
4282
+ * Optional desired final access for legacy compatibility; content replacement remains private and widening occurs separately
4283
+ */
4284
+ export declare const zVisibilityIntent: z.ZodEnum<{
4285
+ private: "private";
4286
+ public: "public";
4287
+ }>;
4288
+ export type VisibilityIntent = z.infer<typeof zVisibilityIntent>;
4289
+ export declare const zAuthoritativePublishRequest: z.ZodObject<{
4290
+ contentHash: z.ZodString;
4291
+ diagnostics: z.ZodOptional<z.ZodObject<{
4292
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4293
+ warnings: z.ZodArray<z.ZodObject<{
4294
+ errorType: z.ZodString;
4295
+ location: z.ZodString;
4296
+ message: z.ZodString;
4297
+ remediation: z.ZodString;
4298
+ }, z.core.$strict>>;
4299
+ }, z.core.$strict>>;
4300
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
4301
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4302
+ depth: z.ZodInt;
4303
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4304
+ entryIndex: z.ZodInt;
4305
+ entryType: z.ZodEnum<{
4306
+ error: "error";
4307
+ text: "text";
4308
+ tool_use: "tool_use";
4309
+ tool_result: "tool_result";
4310
+ thinking: "thinking";
4311
+ system: "system";
4312
+ result: "result";
4313
+ }>;
4314
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4315
+ harness: z.ZodEnum<{
4316
+ strike: "strike";
4317
+ cursor: "cursor";
4318
+ "claude-code": "claude-code";
4319
+ "gemini-cli": "gemini-cli";
4320
+ codex: "codex";
4321
+ opencode: "opencode";
4322
+ antigravity: "antigravity";
4323
+ }>;
4324
+ hasThinking: z.ZodBoolean;
4325
+ hasToolUse: z.ZodBoolean;
4326
+ isError: z.ZodBoolean;
4327
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4328
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4329
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4330
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4331
+ role: z.ZodEnum<{
4332
+ user: "user";
4333
+ system: "system";
4334
+ assistant: "assistant";
4335
+ tool: "tool";
4336
+ }>;
4337
+ sessionId: z.ZodString;
4338
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4339
+ end_turn: "end_turn";
4340
+ cancelled: "cancelled";
4341
+ max_tokens: "max_tokens";
4342
+ max_turn_requests: "max_turn_requests";
4343
+ refusal: "refusal";
4344
+ }>>>;
4345
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4346
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4347
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4348
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4349
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4350
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4351
+ search: "search";
4352
+ other: "other";
4353
+ move: "move";
4354
+ fetch: "fetch";
4355
+ delete: "delete";
4356
+ read: "read";
4357
+ edit: "edit";
4358
+ execute: "execute";
4359
+ think: "think";
4360
+ }>>>;
4361
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4362
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4363
+ }, z.core.$strict>>>;
4364
+ git: z.ZodOptional<z.ZodObject<{
4365
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
4366
+ id: z.ZodString;
4367
+ observedCommitHash: z.ZodString;
4368
+ }, z.core.$strict>>>;
4369
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4370
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4371
+ authorEmail: z.ZodString;
4372
+ authorName: z.ZodString;
4373
+ authorTime: z.ZodCoercedBigInt<unknown>;
4374
+ commitTime: z.ZodCoercedBigInt<unknown>;
4375
+ hash: z.ZodString;
4376
+ message: z.ZodString;
4377
+ }, z.core.$strict>>>;
4378
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4379
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4380
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4381
+ }, z.core.$strict>>;
4382
+ identity: z.ZodOptional<z.ZodObject<{
4383
+ parentSessionId: z.ZodOptional<z.ZodString>;
4384
+ schemaVersion: z.ZodInt;
4385
+ sessionId: z.ZodString;
4386
+ }, z.core.$strict>>;
4387
+ license: z.ZodOptional<z.ZodEnum<{
4388
+ "CC0-1.0": "CC0-1.0";
4389
+ "CC-BY-4.0": "CC-BY-4.0";
4390
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4391
+ }>>;
4392
+ model: z.ZodObject<{
4393
+ harness: z.ZodEnum<{
4394
+ strike: "strike";
4395
+ cursor: "cursor";
4396
+ "claude-code": "claude-code";
4397
+ "gemini-cli": "gemini-cli";
4398
+ codex: "codex";
4399
+ opencode: "opencode";
4400
+ antigravity: "antigravity";
4401
+ }>;
4402
+ hostSlug: z.ZodOptional<z.ZodString>;
4403
+ model: z.ZodString;
4404
+ version: z.ZodOptional<z.ZodString>;
4405
+ }, z.core.$strict>;
4406
+ project: z.ZodOptional<z.ZodObject<{
4407
+ filePath: z.ZodOptional<z.ZodString>;
4408
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
4409
+ name: z.ZodString;
4410
+ }, z.core.$strict>>;
4411
+ quality: z.ZodOptional<z.ZodObject<{
4412
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4413
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4414
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4415
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4416
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4417
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4418
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4419
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4420
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4421
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4422
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4423
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4424
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4425
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4426
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4427
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4428
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4429
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4430
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4431
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4432
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4433
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4434
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4435
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4436
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4437
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4438
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4439
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4440
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4441
+ failed: "failed";
4442
+ partial: "partial";
4443
+ resolved: "resolved";
4444
+ }>>>;
4445
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4446
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4447
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4448
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4449
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4450
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4451
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4452
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4453
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4454
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4455
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4456
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4457
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4458
+ }, z.core.$strict>>;
4459
+ source: z.ZodOptional<z.ZodObject<{
4460
+ filePath: z.ZodOptional<z.ZodString>;
4461
+ format: z.ZodEnum<{
4462
+ json: "json";
4463
+ jsonl: "jsonl";
4464
+ }>;
4465
+ }, z.core.$strict>>;
4466
+ stats: z.ZodOptional<z.ZodObject<{
4467
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4468
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4469
+ durationMs: z.ZodCoercedBigInt<unknown>;
4470
+ subagentCount: z.ZodInt;
4471
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4472
+ tokensIn: z.ZodInt;
4473
+ tokensOut: z.ZodInt;
4474
+ toolCallCount: z.ZodInt;
4475
+ turnCount: z.ZodInt;
4476
+ }, z.core.$strict>>;
4477
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
4478
+ parentUuid: z.ZodString;
4479
+ sessionId: z.ZodString;
4480
+ }, z.core.$strict>>>;
4481
+ timestamp: z.ZodOptional<z.ZodObject<{
4482
+ end: z.ZodCoercedBigInt<unknown>;
4483
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4484
+ start: z.ZodCoercedBigInt<unknown>;
4485
+ }, z.core.$strict>>;
4486
+ visibilityIntent: z.ZodOptional<z.ZodEnum<{
4487
+ private: "private";
4488
+ public: "public";
4489
+ }>>;
4490
+ }, z.core.$strict>;
4491
+ export type AuthoritativePublishRequest = z.infer<typeof zAuthoritativePublishRequest>;
3368
4492
  export declare const zWalkthroughStep: z.ZodObject<{
3369
4493
  excerpt: z.ZodString;
3370
4494
  file: z.ZodString;