@peasant-labs/schema 0.35.0 → 0.37.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.
@@ -172,6 +172,11 @@ export type AssociationEvidenceObservation = z.infer<typeof zAssociationEvidence
172
172
  */
173
173
  export declare const zAssociationID: z.ZodString;
174
174
  export type AssociationID = z.infer<typeof zAssociationID>;
175
+ export declare const zAuthoritativeClientInfo: z.ZodObject<{
176
+ name: z.ZodString;
177
+ version: z.ZodString;
178
+ }, z.core.$strict>;
179
+ export type AuthoritativeClientInfo = z.infer<typeof zAuthoritativeClientInfo>;
175
180
  export declare const zAuthoritativeCommitInfo: z.ZodObject<{
176
181
  authorEmail: z.ZodString;
177
182
  authorName: z.ZodString;
@@ -2007,6 +2012,35 @@ export declare const zSchemaVersionResponse: z.ZodObject<{
2007
2012
  supportedTypeIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
2008
2013
  }, z.core.$strip>;
2009
2014
  export type SchemaVersionResponse = z.infer<typeof zSchemaVersionResponse>;
2015
+ export declare const zScryHealthResponse: z.ZodObject<{
2016
+ contractVersion: z.ZodString;
2017
+ scryVersion: z.ZodString;
2018
+ }, z.core.$strict>;
2019
+ export type ScryHealthResponse = z.infer<typeof zScryHealthResponse>;
2020
+ export declare const zScryTranscriptRecord: z.ZodObject<{
2021
+ publishedAtMs: z.ZodCoercedBigInt<unknown>;
2022
+ updatedAtMs: z.ZodCoercedBigInt<unknown>;
2023
+ }, z.core.$strict>;
2024
+ export type ScryTranscriptRecord = z.infer<typeof zScryTranscriptRecord>;
2025
+ /**
2026
+ * Scry Verdict
2027
+ *
2028
+ * Whether scry examined the transcript; unchecked means scry declined unsupported content or harness
2029
+ */
2030
+ export declare const zScryVerdict: z.ZodEnum<{
2031
+ checked: "checked";
2032
+ unchecked: "unchecked";
2033
+ }>;
2034
+ export type ScryVerdict = z.infer<typeof zScryVerdict>;
2035
+ export declare const zScryCheckResponse: z.ZodObject<{
2036
+ flaggedTurns: z.ZodArray<z.ZodInt>;
2037
+ scryVersion: z.ZodString;
2038
+ verdict: z.ZodEnum<{
2039
+ checked: "checked";
2040
+ unchecked: "unchecked";
2041
+ }>;
2042
+ }, z.core.$strict>;
2043
+ export type ScryCheckResponse = z.infer<typeof zScryCheckResponse>;
2010
2044
  export declare const zSearchResult: z.ZodObject<{
2011
2045
  entryIndex: z.ZodInt;
2012
2046
  project: z.ZodString;
@@ -2385,16 +2419,6 @@ export declare const zSessionPullRequest: z.ZodObject<{
2385
2419
  url: z.ZodString;
2386
2420
  }, z.core.$strip>;
2387
2421
  export type SessionPullRequest = z.infer<typeof zSessionPullRequest>;
2388
- export declare const zSessionPullRequestsResponse: z.ZodObject<{
2389
- pullRequests: z.ZodArray<z.ZodObject<{
2390
- number: z.ZodInt;
2391
- owner: z.ZodString;
2392
- repo: z.ZodString;
2393
- source: z.ZodString;
2394
- url: z.ZodString;
2395
- }, z.core.$strip>>;
2396
- }, z.core.$strip>;
2397
- export type SessionPullRequestsResponse = z.infer<typeof zSessionPullRequestsResponse>;
2398
2422
  /**
2399
2423
  * Session Purpose
2400
2424
  *
@@ -6539,6 +6563,45 @@ export declare const zChangeDetailPayload: z.ZodObject<{
6539
6563
  }, z.core.$strip>>>;
6540
6564
  }, z.core.$strip>;
6541
6565
  export type ChangeDetailPayload = z.infer<typeof zChangeDetailPayload>;
6566
+ export declare const zUnverifiedPullRequestSource: z.ZodObject<{
6567
+ toolCallId: z.ZodOptional<z.ZodString>;
6568
+ toolCallIndex: z.ZodInt;
6569
+ turnIndex: z.ZodInt;
6570
+ }, z.core.$strip>;
6571
+ export type UnverifiedPullRequestSource = z.infer<typeof zUnverifiedPullRequestSource>;
6572
+ export declare const zUnverifiedPullRequest: z.ZodObject<{
6573
+ number: z.ZodInt;
6574
+ owner: z.ZodString;
6575
+ repo: z.ZodString;
6576
+ source: z.ZodObject<{
6577
+ toolCallId: z.ZodOptional<z.ZodString>;
6578
+ toolCallIndex: z.ZodInt;
6579
+ turnIndex: z.ZodInt;
6580
+ }, z.core.$strip>;
6581
+ url: z.ZodString;
6582
+ }, z.core.$strip>;
6583
+ export type UnverifiedPullRequest = z.infer<typeof zUnverifiedPullRequest>;
6584
+ export declare const zSessionPullRequestsResponse: z.ZodObject<{
6585
+ pullRequests: z.ZodArray<z.ZodObject<{
6586
+ number: z.ZodInt;
6587
+ owner: z.ZodString;
6588
+ repo: z.ZodString;
6589
+ source: z.ZodString;
6590
+ url: z.ZodString;
6591
+ }, z.core.$strip>>;
6592
+ unverified_pull_requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
6593
+ number: z.ZodInt;
6594
+ owner: z.ZodString;
6595
+ repo: z.ZodString;
6596
+ source: z.ZodObject<{
6597
+ toolCallId: z.ZodOptional<z.ZodString>;
6598
+ toolCallIndex: z.ZodInt;
6599
+ turnIndex: z.ZodInt;
6600
+ }, z.core.$strip>;
6601
+ url: z.ZodString;
6602
+ }, z.core.$strip>>>;
6603
+ }, z.core.$strip>;
6604
+ export type SessionPullRequestsResponse = z.infer<typeof zSessionPullRequestsResponse>;
6542
6605
  /**
6543
6606
  * Usage Completeness
6544
6607
  *
@@ -10078,6 +10141,26 @@ export type VillageErrorResponse = z.infer<typeof zVillageErrorResponse>;
10078
10141
  */
10079
10142
  export declare const zVillageGitHubWebhookPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10080
10143
  export type VillageGitHubWebhookPayload = z.infer<typeof zVillageGitHubWebhookPayload>;
10144
+ /**
10145
+ * Village Integrity Check Result
10146
+ *
10147
+ * What an owner's integrity check found; unchecked means scry declined and the daily allowance is not spent
10148
+ */
10149
+ export declare const zVillageIntegrityCheckResult: z.ZodEnum<{
10150
+ unchecked: "unchecked";
10151
+ flagged: "flagged";
10152
+ not_flagged: "not_flagged";
10153
+ }>;
10154
+ export type VillageIntegrityCheckResult = z.infer<typeof zVillageIntegrityCheckResult>;
10155
+ export declare const zVillageIntegrityCheckResponse: z.ZodObject<{
10156
+ remaining_today: z.ZodInt;
10157
+ result: z.ZodEnum<{
10158
+ unchecked: "unchecked";
10159
+ flagged: "flagged";
10160
+ not_flagged: "not_flagged";
10161
+ }>;
10162
+ }, z.core.$strict>;
10163
+ export type VillageIntegrityCheckResponse = z.infer<typeof zVillageIntegrityCheckResponse>;
10081
10164
  export declare const zVillageLinkRepositoryRequest: z.ZodObject<{
10082
10165
  installation_id: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
10083
10166
  name: z.ZodString;
@@ -10517,6 +10600,10 @@ export declare const zVillageTranscriptDeletionPolicy: z.ZodEnum<{
10517
10600
  mandatory: "mandatory";
10518
10601
  }>;
10519
10602
  export type VillageTranscriptDeletionPolicy = z.infer<typeof zVillageTranscriptDeletionPolicy>;
10603
+ export declare const zVillageTranscriptIntegrity: z.ZodObject<{
10604
+ flagged_turns: z.ZodArray<z.ZodInt>;
10605
+ }, z.core.$strict>;
10606
+ export type VillageTranscriptIntegrity = z.infer<typeof zVillageTranscriptIntegrity>;
10520
10607
  export declare const zVillageTranscriptPullRequest: z.ZodObject<{
10521
10608
  head_ref: z.ZodNullable<z.ZodString>;
10522
10609
  name: z.ZodString;
@@ -10547,6 +10634,17 @@ export declare const zVillageTranscriptPullRequestsResponse: z.ZodObject<{
10547
10634
  }>;
10548
10635
  title: z.ZodNullable<z.ZodString>;
10549
10636
  }, z.core.$strip>>;
10637
+ unverified_pull_requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
10638
+ number: z.ZodInt;
10639
+ owner: z.ZodString;
10640
+ repo: z.ZodString;
10641
+ source: z.ZodObject<{
10642
+ toolCallId: z.ZodOptional<z.ZodString>;
10643
+ toolCallIndex: z.ZodInt;
10644
+ turnIndex: z.ZodInt;
10645
+ }, z.core.$strip>;
10646
+ url: z.ZodString;
10647
+ }, z.core.$strip>>>;
10550
10648
  }, z.core.$strip>;
10551
10649
  export type VillageTranscriptPullRequestsResponse = z.infer<typeof zVillageTranscriptPullRequestsResponse>;
10552
10650
  /**
@@ -14470,6 +14568,9 @@ export declare const zVillageTranscriptMetadataResponse: z.ZodObject<{
14470
14568
  }>;
14471
14569
  transcript_id: z.ZodUUID;
14472
14570
  }, z.core.$strip>>;
14571
+ integrity: z.ZodOptional<z.ZodObject<{
14572
+ flagged_turns: z.ZodArray<z.ZodInt>;
14573
+ }, z.core.$strict>>;
14473
14574
  owner: z.ZodUnion<readonly [z.ZodObject<{
14474
14575
  avatar_url: z.ZodNullable<z.ZodString>;
14475
14576
  display_name: z.ZodNullable<z.ZodString>;
@@ -19913,6 +20014,10 @@ export declare const zVisibilityIntent: z.ZodEnum<{
19913
20014
  }>;
19914
20015
  export type VisibilityIntent = z.infer<typeof zVisibilityIntent>;
19915
20016
  export declare const zAuthoritativePublishRequest: z.ZodObject<{
20017
+ client: z.ZodOptional<z.ZodObject<{
20018
+ name: z.ZodString;
20019
+ version: z.ZodString;
20020
+ }, z.core.$strict>>;
19916
20021
  contentHash: z.ZodString;
19917
20022
  diagnostics: z.ZodOptional<z.ZodObject<{
19918
20023
  partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -20206,6 +20311,1085 @@ export declare const zAuthoritativePublishRequest: z.ZodObject<{
20206
20311
  }>>;
20207
20312
  }, z.core.$strict>;
20208
20313
  export type AuthoritativePublishRequest = z.infer<typeof zAuthoritativePublishRequest>;
20314
+ export declare const zScryCheckRequest: z.ZodObject<{
20315
+ contractVersion: z.ZodString;
20316
+ publishMetadata: z.ZodOptional<z.ZodObject<{
20317
+ client: z.ZodOptional<z.ZodObject<{
20318
+ name: z.ZodString;
20319
+ version: z.ZodString;
20320
+ }, z.core.$strict>>;
20321
+ contentHash: z.ZodString;
20322
+ diagnostics: z.ZodOptional<z.ZodObject<{
20323
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20324
+ warnings: z.ZodArray<z.ZodObject<{
20325
+ errorType: z.ZodString;
20326
+ location: z.ZodString;
20327
+ message: z.ZodString;
20328
+ remediation: z.ZodString;
20329
+ }, z.core.$strict>>;
20330
+ }, z.core.$strict>>;
20331
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
20332
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20333
+ depth: z.ZodInt;
20334
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20335
+ entryIndex: z.ZodInt;
20336
+ entryType: z.ZodEnum<{
20337
+ error: "error";
20338
+ text: "text";
20339
+ tool_use: "tool_use";
20340
+ tool_result: "tool_result";
20341
+ thinking: "thinking";
20342
+ system: "system";
20343
+ result: "result";
20344
+ }>;
20345
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20346
+ harness: z.ZodEnum<{
20347
+ strike: "strike";
20348
+ cursor: "cursor";
20349
+ "claude-code": "claude-code";
20350
+ "gemini-cli": "gemini-cli";
20351
+ codex: "codex";
20352
+ opencode: "opencode";
20353
+ antigravity: "antigravity";
20354
+ pi: "pi";
20355
+ }>;
20356
+ hasThinking: z.ZodBoolean;
20357
+ hasToolUse: z.ZodBoolean;
20358
+ isError: z.ZodBoolean;
20359
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20360
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20361
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20362
+ provenance: z.ZodOptional<z.ZodObject<{
20363
+ actor: z.ZodEnum<{
20364
+ unknown: "unknown";
20365
+ operator: "operator";
20366
+ agent_delegate: "agent_delegate";
20367
+ harness: "harness";
20368
+ }>;
20369
+ delivery: z.ZodEnum<{
20370
+ unknown: "unknown";
20371
+ session_admission: "session_admission";
20372
+ guardian_review: "guardian_review";
20373
+ subagent_delivery: "subagent_delivery";
20374
+ inherited_context: "inherited_context";
20375
+ tool_delivery: "tool_delivery";
20376
+ system_lifecycle: "system_lifecycle";
20377
+ }>;
20378
+ evidence: z.ZodEnum<{
20379
+ unknown: "unknown";
20380
+ native_typed: "native_typed";
20381
+ lifecycle_typed: "lifecycle_typed";
20382
+ existing_adapter: "existing_adapter";
20383
+ retained_last_good: "retained_last_good";
20384
+ conflict: "conflict";
20385
+ }>;
20386
+ inputModality: z.ZodEnum<{
20387
+ none: "none";
20388
+ media: "media";
20389
+ unknown: "unknown";
20390
+ text: "text";
20391
+ user_action: "user_action";
20392
+ mixed: "mixed";
20393
+ }>;
20394
+ origin: z.ZodEnum<{
20395
+ unknown: "unknown";
20396
+ submitted_input: "submitted_input";
20397
+ harness_context: "harness_context";
20398
+ agent_output: "agent_output";
20399
+ agent_communication: "agent_communication";
20400
+ tool_activity: "tool_activity";
20401
+ system_control: "system_control";
20402
+ generated_summary: "generated_summary";
20403
+ }>;
20404
+ ownership: z.ZodEnum<{
20405
+ uncertain: "uncertain";
20406
+ local: "local";
20407
+ inherited: "inherited";
20408
+ }>;
20409
+ submissionRef: z.ZodOptional<z.ZodString>;
20410
+ }, z.core.$strict>>;
20411
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20412
+ role: z.ZodEnum<{
20413
+ user: "user";
20414
+ system: "system";
20415
+ assistant: "assistant";
20416
+ tool: "tool";
20417
+ }>;
20418
+ sessionId: z.ZodString;
20419
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
20420
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
20421
+ cancelled: "cancelled";
20422
+ end_turn: "end_turn";
20423
+ max_tokens: "max_tokens";
20424
+ max_turn_requests: "max_turn_requests";
20425
+ refusal: "refusal";
20426
+ }>>>;
20427
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20428
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20429
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20430
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20431
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20432
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
20433
+ search: "search";
20434
+ other: "other";
20435
+ move: "move";
20436
+ fetch: "fetch";
20437
+ delete: "delete";
20438
+ read: "read";
20439
+ edit: "edit";
20440
+ execute: "execute";
20441
+ think: "think";
20442
+ }>>>;
20443
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20444
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20445
+ }, z.core.$strict>>>;
20446
+ git: z.ZodOptional<z.ZodObject<{
20447
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
20448
+ id: z.ZodString;
20449
+ observedCommitHash: z.ZodString;
20450
+ }, z.core.$strict>>>;
20451
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20452
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
20453
+ authorEmail: z.ZodString;
20454
+ authorName: z.ZodString;
20455
+ authorTime: z.ZodCoercedBigInt<unknown>;
20456
+ commitTime: z.ZodCoercedBigInt<unknown>;
20457
+ hash: z.ZodString;
20458
+ message: z.ZodString;
20459
+ }, z.core.$strict>>>;
20460
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20461
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20462
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20463
+ }, z.core.$strict>>;
20464
+ identity: z.ZodOptional<z.ZodObject<{
20465
+ parentSessionId: z.ZodOptional<z.ZodString>;
20466
+ purpose: z.ZodOptional<z.ZodEnum<{
20467
+ unknown: "unknown";
20468
+ interaction: "interaction";
20469
+ delegated_work: "delegated_work";
20470
+ helper_review: "helper_review";
20471
+ }>>;
20472
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
20473
+ anchor: z.ZodOptional<z.ZodObject<{
20474
+ kind: z.ZodEnum<{
20475
+ general_source_session: "general_source_session";
20476
+ before_redacted_entry: "before_redacted_entry";
20477
+ through_redacted_entry: "through_redacted_entry";
20478
+ }>;
20479
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
20480
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
20481
+ }, z.core.$strict>>;
20482
+ evidence: z.ZodEnum<{
20483
+ unknown: "unknown";
20484
+ native_typed: "native_typed";
20485
+ lifecycle_typed: "lifecycle_typed";
20486
+ existing_adapter: "existing_adapter";
20487
+ retained_last_good: "retained_last_good";
20488
+ conflict: "conflict";
20489
+ }>;
20490
+ kind: z.ZodEnum<{
20491
+ started_by: "started_by";
20492
+ context_from: "context_from";
20493
+ }>;
20494
+ targetLocalId: z.ZodOptional<z.ZodString>;
20495
+ targetState: z.ZodEnum<{
20496
+ unknown: "unknown";
20497
+ target_known: "target_known";
20498
+ target_known_retained: "target_known_retained";
20499
+ explicit_none: "explicit_none";
20500
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
20501
+ }>;
20502
+ }, z.core.$strict>>>;
20503
+ rootSessionId: z.ZodOptional<z.ZodString>;
20504
+ schemaVersion: z.ZodInt;
20505
+ sessionId: z.ZodString;
20506
+ }, z.core.$strict>>;
20507
+ license: z.ZodOptional<z.ZodEnum<{
20508
+ "CC0-1.0": "CC0-1.0";
20509
+ "CC-BY-4.0": "CC-BY-4.0";
20510
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
20511
+ }>>;
20512
+ model: z.ZodObject<{
20513
+ harness: z.ZodEnum<{
20514
+ strike: "strike";
20515
+ cursor: "cursor";
20516
+ "claude-code": "claude-code";
20517
+ "gemini-cli": "gemini-cli";
20518
+ codex: "codex";
20519
+ opencode: "opencode";
20520
+ antigravity: "antigravity";
20521
+ pi: "pi";
20522
+ }>;
20523
+ hostSlug: z.ZodOptional<z.ZodString>;
20524
+ model: z.ZodString;
20525
+ version: z.ZodOptional<z.ZodString>;
20526
+ }, z.core.$strict>;
20527
+ project: z.ZodOptional<z.ZodObject<{
20528
+ filePath: z.ZodOptional<z.ZodString>;
20529
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
20530
+ name: z.ZodString;
20531
+ }, z.core.$strict>>;
20532
+ quality: z.ZodOptional<z.ZodObject<{
20533
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20534
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20535
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20536
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20537
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20538
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20539
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20540
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20541
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20542
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20543
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20544
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20545
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20546
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20547
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20548
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20549
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20550
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20551
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20552
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20553
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20554
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20555
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20556
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20557
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20558
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20559
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20560
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20561
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
20562
+ failed: "failed";
20563
+ partial: "partial";
20564
+ resolved: "resolved";
20565
+ }>>>;
20566
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20567
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20568
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20569
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20570
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20571
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20572
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20573
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20574
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20575
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20576
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20577
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20578
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20579
+ }, z.core.$strict>>;
20580
+ source: z.ZodOptional<z.ZodObject<{
20581
+ filePath: z.ZodOptional<z.ZodString>;
20582
+ format: z.ZodEnum<{
20583
+ json: "json";
20584
+ jsonl: "jsonl";
20585
+ }>;
20586
+ }, z.core.$strict>>;
20587
+ stats: z.ZodOptional<z.ZodObject<{
20588
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20589
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20590
+ durationMs: z.ZodCoercedBigInt<unknown>;
20591
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
20592
+ subagentCount: z.ZodInt;
20593
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20594
+ tokensIn: z.ZodInt;
20595
+ tokensOut: z.ZodInt;
20596
+ toolCallCount: z.ZodInt;
20597
+ turnCount: z.ZodInt;
20598
+ }, z.core.$strict>>;
20599
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
20600
+ parentUuid: z.ZodString;
20601
+ sessionId: z.ZodString;
20602
+ }, z.core.$strict>>>;
20603
+ timestamp: z.ZodOptional<z.ZodObject<{
20604
+ end: z.ZodCoercedBigInt<unknown>;
20605
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20606
+ start: z.ZodCoercedBigInt<unknown>;
20607
+ }, z.core.$strict>>;
20608
+ visibilityIntent: z.ZodOptional<z.ZodEnum<{
20609
+ private: "private";
20610
+ public: "public";
20611
+ }>>;
20612
+ }, z.core.$strict>>;
20613
+ record: z.ZodObject<{
20614
+ publishedAtMs: z.ZodCoercedBigInt<unknown>;
20615
+ updatedAtMs: z.ZodCoercedBigInt<unknown>;
20616
+ }, z.core.$strict>;
20617
+ sessionDetail: z.ZodObject<{
20618
+ childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
20619
+ id: z.ZodString;
20620
+ project: z.ZodOptional<z.ZodString>;
20621
+ startTime: z.ZodISODateTime;
20622
+ }, z.core.$strip>>>;
20623
+ diagnostics: z.ZodOptional<z.ZodObject<{
20624
+ partial: z.ZodBoolean;
20625
+ }, z.core.$strip>>;
20626
+ durationMins: z.ZodNumber;
20627
+ earlierHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
20628
+ nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
20629
+ attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20630
+ toolCallId: z.ZodOptional<z.ZodString>;
20631
+ turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20632
+ }, z.core.$strip>>>;
20633
+ customType: z.ZodOptional<z.ZodString>;
20634
+ data: z.ZodUnknown;
20635
+ id: z.ZodString;
20636
+ kind: z.ZodEnum<{
20637
+ "pi.custom.data": "pi.custom.data";
20638
+ "pi.custommessage.details": "pi.custommessage.details";
20639
+ "pi.toolresult.details": "pi.toolresult.details";
20640
+ "pi.compaction.details": "pi.compaction.details";
20641
+ "pi.branchsummary.details": "pi.branchsummary.details";
20642
+ }>;
20643
+ source: z.ZodObject<{
20644
+ entryRef: z.ZodString;
20645
+ messageRole: z.ZodOptional<z.ZodEnum<{
20646
+ toolResult: "toolResult";
20647
+ }>>;
20648
+ sourceType: z.ZodEnum<{
20649
+ "pi.custom": "pi.custom";
20650
+ "pi.custom_message": "pi.custom_message";
20651
+ "pi.message": "pi.message";
20652
+ "pi.compaction": "pi.compaction";
20653
+ "pi.branch_summary": "pi.branch_summary";
20654
+ }>;
20655
+ }, z.core.$strip>;
20656
+ }, z.core.$strip>>>;
20657
+ state: z.ZodEnum<{
20658
+ uncertain_migrated: "uncertain_migrated";
20659
+ uncertain_unresolved: "uncertain_unresolved";
20660
+ }>;
20661
+ turns: z.ZodArray<z.ZodObject<{
20662
+ agentName: z.ZodOptional<z.ZodString>;
20663
+ command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20664
+ args: z.ZodOptional<z.ZodString>;
20665
+ name: z.ZodString;
20666
+ }, z.core.$strip>>>;
20667
+ content: z.ZodString;
20668
+ depth: z.ZodInt;
20669
+ entryType: z.ZodOptional<z.ZodEnum<{
20670
+ error: "error";
20671
+ text: "text";
20672
+ tool_use: "tool_use";
20673
+ tool_result: "tool_result";
20674
+ thinking: "thinking";
20675
+ system: "system";
20676
+ result: "result";
20677
+ }>>;
20678
+ hasThinking: z.ZodOptional<z.ZodBoolean>;
20679
+ index: z.ZodInt;
20680
+ observedModel: z.ZodOptional<z.ZodString>;
20681
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20682
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20683
+ actor: z.ZodEnum<{
20684
+ unknown: "unknown";
20685
+ operator: "operator";
20686
+ agent_delegate: "agent_delegate";
20687
+ harness: "harness";
20688
+ }>;
20689
+ delivery: z.ZodEnum<{
20690
+ unknown: "unknown";
20691
+ session_admission: "session_admission";
20692
+ guardian_review: "guardian_review";
20693
+ subagent_delivery: "subagent_delivery";
20694
+ inherited_context: "inherited_context";
20695
+ tool_delivery: "tool_delivery";
20696
+ system_lifecycle: "system_lifecycle";
20697
+ }>;
20698
+ evidence: z.ZodEnum<{
20699
+ unknown: "unknown";
20700
+ native_typed: "native_typed";
20701
+ lifecycle_typed: "lifecycle_typed";
20702
+ existing_adapter: "existing_adapter";
20703
+ retained_last_good: "retained_last_good";
20704
+ conflict: "conflict";
20705
+ }>;
20706
+ inputModality: z.ZodEnum<{
20707
+ none: "none";
20708
+ media: "media";
20709
+ unknown: "unknown";
20710
+ text: "text";
20711
+ user_action: "user_action";
20712
+ mixed: "mixed";
20713
+ }>;
20714
+ origin: z.ZodEnum<{
20715
+ unknown: "unknown";
20716
+ submitted_input: "submitted_input";
20717
+ harness_context: "harness_context";
20718
+ agent_output: "agent_output";
20719
+ agent_communication: "agent_communication";
20720
+ tool_activity: "tool_activity";
20721
+ system_control: "system_control";
20722
+ generated_summary: "generated_summary";
20723
+ }>;
20724
+ ownership: z.ZodEnum<{
20725
+ uncertain: "uncertain";
20726
+ local: "local";
20727
+ inherited: "inherited";
20728
+ }>;
20729
+ submissionRef: z.ZodOptional<z.ZodString>;
20730
+ }, z.core.$strict>>>;
20731
+ role: z.ZodEnum<{
20732
+ user: "user";
20733
+ system: "system";
20734
+ assistant: "assistant";
20735
+ tool: "tool";
20736
+ }>;
20737
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
20738
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
20739
+ cancelled: "cancelled";
20740
+ end_turn: "end_turn";
20741
+ max_tokens: "max_tokens";
20742
+ max_turn_requests: "max_turn_requests";
20743
+ refusal: "refusal";
20744
+ }>>>;
20745
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
20746
+ max: "max";
20747
+ high: "high";
20748
+ low: "low";
20749
+ medium: "medium";
20750
+ off: "off";
20751
+ minimal: "minimal";
20752
+ xhigh: "xhigh";
20753
+ ultra: "ultra";
20754
+ ultracode: "ultracode";
20755
+ }>>;
20756
+ thinkingLevelRaw: z.ZodOptional<z.ZodString>;
20757
+ timestamp: z.ZodISODateTime;
20758
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20759
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20760
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
20761
+ arguments: z.ZodString;
20762
+ callEntryRef: z.ZodOptional<z.ZodString>;
20763
+ callProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20764
+ actor: z.ZodEnum<{
20765
+ unknown: "unknown";
20766
+ operator: "operator";
20767
+ agent_delegate: "agent_delegate";
20768
+ harness: "harness";
20769
+ }>;
20770
+ delivery: z.ZodEnum<{
20771
+ unknown: "unknown";
20772
+ session_admission: "session_admission";
20773
+ guardian_review: "guardian_review";
20774
+ subagent_delivery: "subagent_delivery";
20775
+ inherited_context: "inherited_context";
20776
+ tool_delivery: "tool_delivery";
20777
+ system_lifecycle: "system_lifecycle";
20778
+ }>;
20779
+ evidence: z.ZodEnum<{
20780
+ unknown: "unknown";
20781
+ native_typed: "native_typed";
20782
+ lifecycle_typed: "lifecycle_typed";
20783
+ existing_adapter: "existing_adapter";
20784
+ retained_last_good: "retained_last_good";
20785
+ conflict: "conflict";
20786
+ }>;
20787
+ inputModality: z.ZodEnum<{
20788
+ none: "none";
20789
+ media: "media";
20790
+ unknown: "unknown";
20791
+ text: "text";
20792
+ user_action: "user_action";
20793
+ mixed: "mixed";
20794
+ }>;
20795
+ origin: z.ZodEnum<{
20796
+ unknown: "unknown";
20797
+ submitted_input: "submitted_input";
20798
+ harness_context: "harness_context";
20799
+ agent_output: "agent_output";
20800
+ agent_communication: "agent_communication";
20801
+ tool_activity: "tool_activity";
20802
+ system_control: "system_control";
20803
+ generated_summary: "generated_summary";
20804
+ }>;
20805
+ ownership: z.ZodEnum<{
20806
+ uncertain: "uncertain";
20807
+ local: "local";
20808
+ inherited: "inherited";
20809
+ }>;
20810
+ submissionRef: z.ZodOptional<z.ZodString>;
20811
+ }, z.core.$strict>>>;
20812
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20813
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20814
+ filePath: z.ZodOptional<z.ZodString>;
20815
+ id: z.ZodString;
20816
+ isError: z.ZodOptional<z.ZodBoolean>;
20817
+ name: z.ZodString;
20818
+ namespace: z.ZodOptional<z.ZodString>;
20819
+ result: z.ZodString;
20820
+ resultEntryRef: z.ZodOptional<z.ZodString>;
20821
+ resultProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20822
+ actor: z.ZodEnum<{
20823
+ unknown: "unknown";
20824
+ operator: "operator";
20825
+ agent_delegate: "agent_delegate";
20826
+ harness: "harness";
20827
+ }>;
20828
+ delivery: z.ZodEnum<{
20829
+ unknown: "unknown";
20830
+ session_admission: "session_admission";
20831
+ guardian_review: "guardian_review";
20832
+ subagent_delivery: "subagent_delivery";
20833
+ inherited_context: "inherited_context";
20834
+ tool_delivery: "tool_delivery";
20835
+ system_lifecycle: "system_lifecycle";
20836
+ }>;
20837
+ evidence: z.ZodEnum<{
20838
+ unknown: "unknown";
20839
+ native_typed: "native_typed";
20840
+ lifecycle_typed: "lifecycle_typed";
20841
+ existing_adapter: "existing_adapter";
20842
+ retained_last_good: "retained_last_good";
20843
+ conflict: "conflict";
20844
+ }>;
20845
+ inputModality: z.ZodEnum<{
20846
+ none: "none";
20847
+ media: "media";
20848
+ unknown: "unknown";
20849
+ text: "text";
20850
+ user_action: "user_action";
20851
+ mixed: "mixed";
20852
+ }>;
20853
+ origin: z.ZodEnum<{
20854
+ unknown: "unknown";
20855
+ submitted_input: "submitted_input";
20856
+ harness_context: "harness_context";
20857
+ agent_output: "agent_output";
20858
+ agent_communication: "agent_communication";
20859
+ tool_activity: "tool_activity";
20860
+ system_control: "system_control";
20861
+ generated_summary: "generated_summary";
20862
+ }>;
20863
+ ownership: z.ZodEnum<{
20864
+ uncertain: "uncertain";
20865
+ local: "local";
20866
+ inherited: "inherited";
20867
+ }>;
20868
+ submissionRef: z.ZodOptional<z.ZodString>;
20869
+ }, z.core.$strict>>>;
20870
+ toolKind: z.ZodOptional<z.ZodEnum<{
20871
+ search: "search";
20872
+ other: "other";
20873
+ move: "move";
20874
+ fetch: "fetch";
20875
+ delete: "delete";
20876
+ read: "read";
20877
+ edit: "edit";
20878
+ execute: "execute";
20879
+ think: "think";
20880
+ }>>;
20881
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20882
+ completeness: z.ZodEnum<{
20883
+ unknown: "unknown";
20884
+ complete: "complete";
20885
+ partial: "partial";
20886
+ }>;
20887
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20888
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20889
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20890
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20891
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20892
+ source: z.ZodString;
20893
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20894
+ }, z.core.$strip>>>;
20895
+ ownerId: z.ZodString;
20896
+ scope: z.ZodEnum<{
20897
+ summary: "summary";
20898
+ assistant: "assistant";
20899
+ tool: "tool";
20900
+ }>;
20901
+ sourceEntryRef: z.ZodString;
20902
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20903
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20904
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20905
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20906
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20907
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20908
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20909
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20910
+ }, z.core.$strip>>>;
20911
+ }, z.core.$strip>>>;
20912
+ }, z.core.$strip>>>;
20913
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20914
+ completeness: z.ZodEnum<{
20915
+ unknown: "unknown";
20916
+ complete: "complete";
20917
+ partial: "partial";
20918
+ }>;
20919
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20920
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20921
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20922
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20923
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20924
+ source: z.ZodString;
20925
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20926
+ }, z.core.$strip>>>;
20927
+ ownerId: z.ZodString;
20928
+ scope: z.ZodEnum<{
20929
+ summary: "summary";
20930
+ assistant: "assistant";
20931
+ tool: "tool";
20932
+ }>;
20933
+ sourceEntryRef: z.ZodString;
20934
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20935
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20936
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20937
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20938
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20939
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20940
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20941
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20942
+ }, z.core.$strip>>>;
20943
+ }, z.core.$strip>>>;
20944
+ }, z.core.$strip>>;
20945
+ }, z.core.$strict>>>;
20946
+ endTime: z.ZodISODateTime;
20947
+ gitBranch: z.ZodOptional<z.ZodString>;
20948
+ gitRemote: z.ZodOptional<z.ZodString>;
20949
+ harness: z.ZodEnum<{
20950
+ strike: "strike";
20951
+ cursor: "cursor";
20952
+ "claude-code": "claude-code";
20953
+ "gemini-cli": "gemini-cli";
20954
+ codex: "codex";
20955
+ opencode: "opencode";
20956
+ antigravity: "antigravity";
20957
+ pi: "pi";
20958
+ }>;
20959
+ id: z.ZodString;
20960
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
20961
+ model: z.ZodOptional<z.ZodString>;
20962
+ nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
20963
+ attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20964
+ toolCallId: z.ZodOptional<z.ZodString>;
20965
+ turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20966
+ }, z.core.$strip>>>;
20967
+ customType: z.ZodOptional<z.ZodString>;
20968
+ data: z.ZodUnknown;
20969
+ id: z.ZodString;
20970
+ kind: z.ZodEnum<{
20971
+ "pi.custom.data": "pi.custom.data";
20972
+ "pi.custommessage.details": "pi.custommessage.details";
20973
+ "pi.toolresult.details": "pi.toolresult.details";
20974
+ "pi.compaction.details": "pi.compaction.details";
20975
+ "pi.branchsummary.details": "pi.branchsummary.details";
20976
+ }>;
20977
+ source: z.ZodObject<{
20978
+ entryRef: z.ZodString;
20979
+ messageRole: z.ZodOptional<z.ZodEnum<{
20980
+ toolResult: "toolResult";
20981
+ }>>;
20982
+ sourceType: z.ZodEnum<{
20983
+ "pi.custom": "pi.custom";
20984
+ "pi.custom_message": "pi.custom_message";
20985
+ "pi.message": "pi.message";
20986
+ "pi.compaction": "pi.compaction";
20987
+ "pi.branch_summary": "pi.branch_summary";
20988
+ }>;
20989
+ }, z.core.$strip>;
20990
+ }, z.core.$strip>>>;
20991
+ outcome: z.ZodOptional<z.ZodEnum<{
20992
+ failed: "failed";
20993
+ partial: "partial";
20994
+ resolved: "resolved";
20995
+ }>>;
20996
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20997
+ project: z.ZodOptional<z.ZodString>;
20998
+ purpose: z.ZodOptional<z.ZodEnum<{
20999
+ unknown: "unknown";
21000
+ interaction: "interaction";
21001
+ delegated_work: "delegated_work";
21002
+ helper_review: "helper_review";
21003
+ }>>;
21004
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
21005
+ anchor: z.ZodOptional<z.ZodObject<{
21006
+ kind: z.ZodEnum<{
21007
+ general_source_session: "general_source_session";
21008
+ before_redacted_entry: "before_redacted_entry";
21009
+ through_redacted_entry: "through_redacted_entry";
21010
+ }>;
21011
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
21012
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
21013
+ }, z.core.$strict>>;
21014
+ evidence: z.ZodEnum<{
21015
+ unknown: "unknown";
21016
+ native_typed: "native_typed";
21017
+ lifecycle_typed: "lifecycle_typed";
21018
+ existing_adapter: "existing_adapter";
21019
+ retained_last_good: "retained_last_good";
21020
+ conflict: "conflict";
21021
+ }>;
21022
+ kind: z.ZodEnum<{
21023
+ started_by: "started_by";
21024
+ context_from: "context_from";
21025
+ }>;
21026
+ targetLocalId: z.ZodOptional<z.ZodString>;
21027
+ targetState: z.ZodEnum<{
21028
+ unknown: "unknown";
21029
+ target_known: "target_known";
21030
+ target_known_retained: "target_known_retained";
21031
+ explicit_none: "explicit_none";
21032
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
21033
+ }>;
21034
+ }, z.core.$strict>>>;
21035
+ retainedUnknown: z.ZodOptional<z.ZodArray<z.ZodObject<{
21036
+ kind: z.ZodString;
21037
+ namespace: z.ZodString;
21038
+ payload: z.ZodString;
21039
+ pointer: z.ZodString;
21040
+ position: z.ZodNumber;
21041
+ recordIndex: z.ZodNumber;
21042
+ sourceRef: z.ZodString;
21043
+ }, z.core.$strip>>>;
21044
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21045
+ schemaVersion: z.ZodOptional<z.ZodString>;
21046
+ scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21047
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21048
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21049
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21050
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21051
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21052
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21053
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21054
+ outcome: z.ZodOptional<z.ZodEnum<{
21055
+ failed: "failed";
21056
+ partial: "partial";
21057
+ resolved: "resolved";
21058
+ }>>;
21059
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21060
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21061
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21062
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21063
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21064
+ }, z.core.$strip>>>;
21065
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
21066
+ unknown: "unknown";
21067
+ user: "user";
21068
+ agent: "agent";
21069
+ }>>;
21070
+ source: z.ZodOptional<z.ZodString>;
21071
+ startTime: z.ZodISODateTime;
21072
+ status: z.ZodOptional<z.ZodString>;
21073
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
21074
+ max: "max";
21075
+ high: "high";
21076
+ low: "low";
21077
+ medium: "medium";
21078
+ off: "off";
21079
+ minimal: "minimal";
21080
+ xhigh: "xhigh";
21081
+ ultra: "ultra";
21082
+ ultracode: "ultracode";
21083
+ }>>;
21084
+ thinkingLevelHistory: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodUnknown, z.ZodObject<{
21085
+ level: z.ZodOptional<z.ZodEnum<{
21086
+ max: "max";
21087
+ high: "high";
21088
+ low: "low";
21089
+ medium: "medium";
21090
+ off: "off";
21091
+ minimal: "minimal";
21092
+ xhigh: "xhigh";
21093
+ ultra: "ultra";
21094
+ ultracode: "ultracode";
21095
+ }>>;
21096
+ raw: z.ZodOptional<z.ZodString>;
21097
+ }, z.core.$strip>>>>;
21098
+ thinkingLevelRaw: z.ZodOptional<z.ZodString>;
21099
+ tokensIn: z.ZodInt;
21100
+ tokensOut: z.ZodInt;
21101
+ toolCallCount: z.ZodInt;
21102
+ totalTokens: z.ZodInt;
21103
+ turnCount: z.ZodInt;
21104
+ turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
21105
+ agentName: z.ZodOptional<z.ZodString>;
21106
+ command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21107
+ args: z.ZodOptional<z.ZodString>;
21108
+ name: z.ZodString;
21109
+ }, z.core.$strip>>>;
21110
+ content: z.ZodString;
21111
+ depth: z.ZodInt;
21112
+ entryType: z.ZodOptional<z.ZodEnum<{
21113
+ error: "error";
21114
+ text: "text";
21115
+ tool_use: "tool_use";
21116
+ tool_result: "tool_result";
21117
+ thinking: "thinking";
21118
+ system: "system";
21119
+ result: "result";
21120
+ }>>;
21121
+ hasThinking: z.ZodOptional<z.ZodBoolean>;
21122
+ index: z.ZodInt;
21123
+ observedModel: z.ZodOptional<z.ZodString>;
21124
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21125
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21126
+ actor: z.ZodEnum<{
21127
+ unknown: "unknown";
21128
+ operator: "operator";
21129
+ agent_delegate: "agent_delegate";
21130
+ harness: "harness";
21131
+ }>;
21132
+ delivery: z.ZodEnum<{
21133
+ unknown: "unknown";
21134
+ session_admission: "session_admission";
21135
+ guardian_review: "guardian_review";
21136
+ subagent_delivery: "subagent_delivery";
21137
+ inherited_context: "inherited_context";
21138
+ tool_delivery: "tool_delivery";
21139
+ system_lifecycle: "system_lifecycle";
21140
+ }>;
21141
+ evidence: z.ZodEnum<{
21142
+ unknown: "unknown";
21143
+ native_typed: "native_typed";
21144
+ lifecycle_typed: "lifecycle_typed";
21145
+ existing_adapter: "existing_adapter";
21146
+ retained_last_good: "retained_last_good";
21147
+ conflict: "conflict";
21148
+ }>;
21149
+ inputModality: z.ZodEnum<{
21150
+ none: "none";
21151
+ media: "media";
21152
+ unknown: "unknown";
21153
+ text: "text";
21154
+ user_action: "user_action";
21155
+ mixed: "mixed";
21156
+ }>;
21157
+ origin: z.ZodEnum<{
21158
+ unknown: "unknown";
21159
+ submitted_input: "submitted_input";
21160
+ harness_context: "harness_context";
21161
+ agent_output: "agent_output";
21162
+ agent_communication: "agent_communication";
21163
+ tool_activity: "tool_activity";
21164
+ system_control: "system_control";
21165
+ generated_summary: "generated_summary";
21166
+ }>;
21167
+ ownership: z.ZodEnum<{
21168
+ uncertain: "uncertain";
21169
+ local: "local";
21170
+ inherited: "inherited";
21171
+ }>;
21172
+ submissionRef: z.ZodOptional<z.ZodString>;
21173
+ }, z.core.$strict>>>;
21174
+ role: z.ZodEnum<{
21175
+ user: "user";
21176
+ system: "system";
21177
+ assistant: "assistant";
21178
+ tool: "tool";
21179
+ }>;
21180
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
21181
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
21182
+ cancelled: "cancelled";
21183
+ end_turn: "end_turn";
21184
+ max_tokens: "max_tokens";
21185
+ max_turn_requests: "max_turn_requests";
21186
+ refusal: "refusal";
21187
+ }>>>;
21188
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
21189
+ max: "max";
21190
+ high: "high";
21191
+ low: "low";
21192
+ medium: "medium";
21193
+ off: "off";
21194
+ minimal: "minimal";
21195
+ xhigh: "xhigh";
21196
+ ultra: "ultra";
21197
+ ultracode: "ultracode";
21198
+ }>>;
21199
+ thinkingLevelRaw: z.ZodOptional<z.ZodString>;
21200
+ timestamp: z.ZodISODateTime;
21201
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21202
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21203
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
21204
+ arguments: z.ZodString;
21205
+ callEntryRef: z.ZodOptional<z.ZodString>;
21206
+ callProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21207
+ actor: z.ZodEnum<{
21208
+ unknown: "unknown";
21209
+ operator: "operator";
21210
+ agent_delegate: "agent_delegate";
21211
+ harness: "harness";
21212
+ }>;
21213
+ delivery: z.ZodEnum<{
21214
+ unknown: "unknown";
21215
+ session_admission: "session_admission";
21216
+ guardian_review: "guardian_review";
21217
+ subagent_delivery: "subagent_delivery";
21218
+ inherited_context: "inherited_context";
21219
+ tool_delivery: "tool_delivery";
21220
+ system_lifecycle: "system_lifecycle";
21221
+ }>;
21222
+ evidence: z.ZodEnum<{
21223
+ unknown: "unknown";
21224
+ native_typed: "native_typed";
21225
+ lifecycle_typed: "lifecycle_typed";
21226
+ existing_adapter: "existing_adapter";
21227
+ retained_last_good: "retained_last_good";
21228
+ conflict: "conflict";
21229
+ }>;
21230
+ inputModality: z.ZodEnum<{
21231
+ none: "none";
21232
+ media: "media";
21233
+ unknown: "unknown";
21234
+ text: "text";
21235
+ user_action: "user_action";
21236
+ mixed: "mixed";
21237
+ }>;
21238
+ origin: z.ZodEnum<{
21239
+ unknown: "unknown";
21240
+ submitted_input: "submitted_input";
21241
+ harness_context: "harness_context";
21242
+ agent_output: "agent_output";
21243
+ agent_communication: "agent_communication";
21244
+ tool_activity: "tool_activity";
21245
+ system_control: "system_control";
21246
+ generated_summary: "generated_summary";
21247
+ }>;
21248
+ ownership: z.ZodEnum<{
21249
+ uncertain: "uncertain";
21250
+ local: "local";
21251
+ inherited: "inherited";
21252
+ }>;
21253
+ submissionRef: z.ZodOptional<z.ZodString>;
21254
+ }, z.core.$strict>>>;
21255
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21256
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21257
+ filePath: z.ZodOptional<z.ZodString>;
21258
+ id: z.ZodString;
21259
+ isError: z.ZodOptional<z.ZodBoolean>;
21260
+ name: z.ZodString;
21261
+ namespace: z.ZodOptional<z.ZodString>;
21262
+ result: z.ZodString;
21263
+ resultEntryRef: z.ZodOptional<z.ZodString>;
21264
+ resultProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21265
+ actor: z.ZodEnum<{
21266
+ unknown: "unknown";
21267
+ operator: "operator";
21268
+ agent_delegate: "agent_delegate";
21269
+ harness: "harness";
21270
+ }>;
21271
+ delivery: z.ZodEnum<{
21272
+ unknown: "unknown";
21273
+ session_admission: "session_admission";
21274
+ guardian_review: "guardian_review";
21275
+ subagent_delivery: "subagent_delivery";
21276
+ inherited_context: "inherited_context";
21277
+ tool_delivery: "tool_delivery";
21278
+ system_lifecycle: "system_lifecycle";
21279
+ }>;
21280
+ evidence: z.ZodEnum<{
21281
+ unknown: "unknown";
21282
+ native_typed: "native_typed";
21283
+ lifecycle_typed: "lifecycle_typed";
21284
+ existing_adapter: "existing_adapter";
21285
+ retained_last_good: "retained_last_good";
21286
+ conflict: "conflict";
21287
+ }>;
21288
+ inputModality: z.ZodEnum<{
21289
+ none: "none";
21290
+ media: "media";
21291
+ unknown: "unknown";
21292
+ text: "text";
21293
+ user_action: "user_action";
21294
+ mixed: "mixed";
21295
+ }>;
21296
+ origin: z.ZodEnum<{
21297
+ unknown: "unknown";
21298
+ submitted_input: "submitted_input";
21299
+ harness_context: "harness_context";
21300
+ agent_output: "agent_output";
21301
+ agent_communication: "agent_communication";
21302
+ tool_activity: "tool_activity";
21303
+ system_control: "system_control";
21304
+ generated_summary: "generated_summary";
21305
+ }>;
21306
+ ownership: z.ZodEnum<{
21307
+ uncertain: "uncertain";
21308
+ local: "local";
21309
+ inherited: "inherited";
21310
+ }>;
21311
+ submissionRef: z.ZodOptional<z.ZodString>;
21312
+ }, z.core.$strict>>>;
21313
+ toolKind: z.ZodOptional<z.ZodEnum<{
21314
+ search: "search";
21315
+ other: "other";
21316
+ move: "move";
21317
+ fetch: "fetch";
21318
+ delete: "delete";
21319
+ read: "read";
21320
+ edit: "edit";
21321
+ execute: "execute";
21322
+ think: "think";
21323
+ }>>;
21324
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21325
+ completeness: z.ZodEnum<{
21326
+ unknown: "unknown";
21327
+ complete: "complete";
21328
+ partial: "partial";
21329
+ }>;
21330
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21331
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21332
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21333
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21334
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21335
+ source: z.ZodString;
21336
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21337
+ }, z.core.$strip>>>;
21338
+ ownerId: z.ZodString;
21339
+ scope: z.ZodEnum<{
21340
+ summary: "summary";
21341
+ assistant: "assistant";
21342
+ tool: "tool";
21343
+ }>;
21344
+ sourceEntryRef: z.ZodString;
21345
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21346
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21347
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21348
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21349
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21350
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21351
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21352
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21353
+ }, z.core.$strip>>>;
21354
+ }, z.core.$strip>>>;
21355
+ }, z.core.$strip>>>;
21356
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21357
+ completeness: z.ZodEnum<{
21358
+ unknown: "unknown";
21359
+ complete: "complete";
21360
+ partial: "partial";
21361
+ }>;
21362
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21363
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21364
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21365
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21366
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21367
+ source: z.ZodString;
21368
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21369
+ }, z.core.$strip>>>;
21370
+ ownerId: z.ZodString;
21371
+ scope: z.ZodEnum<{
21372
+ summary: "summary";
21373
+ assistant: "assistant";
21374
+ tool: "tool";
21375
+ }>;
21376
+ sourceEntryRef: z.ZodString;
21377
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21378
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21379
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21380
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21381
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21382
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21383
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21384
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21385
+ }, z.core.$strip>>>;
21386
+ }, z.core.$strip>>>;
21387
+ }, z.core.$strip>>>;
21388
+ workingDirectory: z.ZodOptional<z.ZodString>;
21389
+ }, z.core.$strip>;
21390
+ transcriptId: z.ZodUUID;
21391
+ }, z.core.$strict>;
21392
+ export type ScryCheckRequest = z.infer<typeof zScryCheckRequest>;
20209
21393
  export declare const zWalkthroughStep: z.ZodObject<{
20210
21394
  excerpt: z.ZodString;
20211
21395
  file: z.ZodString;