@phosphorco/bb-cross-references 0.1.1 → 0.4.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.
@@ -0,0 +1,2270 @@
1
+ /** Pure producer protocol and display policy. No SDK, React, storage or source I/O. */
2
+ import { z } from 'zod';
3
+ import { type ResourceIdentity, type Presentation } from './canonical.js';
4
+ import type { ApplyProjectionInput } from './index.js';
5
+ export declare const PRODUCER_METHODS: Readonly<{
6
+ readonly describe: "crossReferencesProducer.describe";
7
+ readonly getState: "crossReferencesProducerV1GetState";
8
+ readonly apply: "crossReferencesProducerV1Apply";
9
+ readonly reportStatus: "crossReferencesProducerV1ReportStatus";
10
+ }>;
11
+ export declare const BRIEF_NAVIGATION_METHODS: Readonly<{
12
+ readonly describe: "threadBriefNavigation.describe";
13
+ readonly resolve: "threadBriefNavigationV1ResolveHeading";
14
+ }>;
15
+ export declare const BRIEF_LIMITS: Readonly<{
16
+ inputBytes: 1048576;
17
+ statusBytes: 16384;
18
+ responseBytes: 1048576;
19
+ locations: 512;
20
+ perTarget: 100;
21
+ headingBytes: 256;
22
+ describeMs: 1000;
23
+ callMs: 5000;
24
+ readMs: 2000;
25
+ navigationInputBytes: 8192;
26
+ navigationOutputBytes: 16384;
27
+ }>;
28
+ export declare const DISPLAY_POLICY_LIMITS: Readonly<{
29
+ valueChars: 1048576;
30
+ valueBytes: 1048576;
31
+ fields: 8192;
32
+ distinct: 4096;
33
+ sourceBytes: 2097152;
34
+ work: 8388608;
35
+ views: 4;
36
+ tokens: 128;
37
+ tokenChars: 4096;
38
+ tokenBytes: 16384;
39
+ }>;
40
+ export declare const BRIEF_LIMIT_CODES: readonly ["target-count", "projection-bytes", "occurrence-count", "per-target-occurrences", "heading-bytes", "envelope-bytes", "presentation-label-bytes", "presentation-detail-bytes", "presentation-url-bytes", "presentation-bytes"];
41
+ export type BriefLimitCode = typeof BRIEF_LIMIT_CODES[number];
42
+ export type DisplayRoleV1 = 'heading' | 'source-label' | 'target-label' | 'detail' | 'presentation-href' | 'provenance' | 'codec' | 'authored-url' | 'required-identity';
43
+ export type DisplayFieldKeyV1 = readonly number[];
44
+ export type DisplayFieldV1 = {
45
+ key: DisplayFieldKeyV1;
46
+ role: DisplayRoleV1;
47
+ value: string;
48
+ };
49
+ export type UnsafeReasonV1 = 'url-credentials' | 'sensitive-url-parameter' | 'credential-shaped-token' | 'unsafe-url-form';
50
+ export type IncompleteReasonV1 = 'ill-formed-unicode' | 'control-character' | 'input-limit' | 'field-limit' | 'source-work-limit' | 'token-limit' | 'encoding-limit' | 'encoding-ambiguity';
51
+ export type DisplayClassificationV1 = {
52
+ version: 1;
53
+ workUnits: number;
54
+ decodedViews: number;
55
+ } & ({
56
+ state: 'safe';
57
+ coverage: 'complete';
58
+ } | {
59
+ state: 'unsafe';
60
+ coverage: 'complete-for-hit';
61
+ reason: UnsafeReasonV1;
62
+ } | {
63
+ state: 'unclassified';
64
+ coverage: 'incomplete';
65
+ reason: IncompleteReasonV1;
66
+ });
67
+ export type DisplayFieldResultsV1 = {
68
+ version: 1;
69
+ state: 'classified';
70
+ results: {
71
+ key: DisplayFieldKeyV1;
72
+ result: DisplayClassificationV1;
73
+ }[];
74
+ usage: {
75
+ distinctValues: number;
76
+ originalUtf8Bytes: number;
77
+ workUnits: number;
78
+ };
79
+ complete: boolean;
80
+ } | {
81
+ version: 1;
82
+ state: 'unclassified';
83
+ reason: 'field-limit';
84
+ results: [];
85
+ usage: {
86
+ distinctValues: 0;
87
+ originalUtf8Bytes: 0;
88
+ workUnits: 0;
89
+ };
90
+ complete: false;
91
+ };
92
+ export declare function classifyBriefDisplayTextV1(value: string): DisplayClassificationV1;
93
+ export declare function classifyBriefDisplayFieldsV1(fields: readonly DisplayFieldV1[]): DisplayFieldResultsV1;
94
+ export declare const briefFileSchema: z.ZodObject<{
95
+ kind: z.ZodLiteral<"thread-storage">;
96
+ threadId: z.ZodString;
97
+ path: z.ZodLiteral<"BRIEF.md">;
98
+ }, z.core.$strict>;
99
+ export declare const briefHeadingSchema: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
100
+ state: z.ZodLiteral<"named">;
101
+ text: z.ZodString;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ state: z.ZodLiteral<"withheld">;
104
+ digest: z.ZodString;
105
+ display: z.ZodLiteral<"Heading withheld">;
106
+ cause: z.ZodEnum<{
107
+ policy: "policy";
108
+ unclassified: "unclassified";
109
+ }>;
110
+ }, z.core.$strict>]>;
111
+ export declare const briefSourceLabelSchema: z.ZodUnion<readonly [z.ZodObject<{
112
+ state: z.ZodLiteral<"safe">;
113
+ text: z.ZodString;
114
+ }, z.core.$strict>, z.ZodObject<{
115
+ state: z.ZodLiteral<"withheld">;
116
+ digest: z.ZodString;
117
+ display: z.ZodLiteral<"Brief">;
118
+ cause: z.ZodEnum<{
119
+ policy: "policy";
120
+ unclassified: "unclassified";
121
+ }>;
122
+ }, z.core.$strict>]>;
123
+ export declare const briefTargetLabelSchema: z.ZodUnion<readonly [z.ZodObject<{
124
+ state: z.ZodLiteral<"safe">;
125
+ text: z.ZodString;
126
+ }, z.core.$strict>, z.ZodObject<{
127
+ state: z.ZodLiteral<"withheld">;
128
+ digest: z.ZodString;
129
+ display: z.ZodLiteral<"Reference">;
130
+ cause: z.ZodEnum<{
131
+ policy: "policy";
132
+ unclassified: "unclassified";
133
+ }>;
134
+ }, z.core.$strict>]>;
135
+ export declare const briefSourcePresentationSchema: z.ZodObject<{
136
+ label: z.ZodUnion<readonly [z.ZodObject<{
137
+ state: z.ZodLiteral<"safe">;
138
+ text: z.ZodString;
139
+ }, z.core.$strict>, z.ZodObject<{
140
+ state: z.ZodLiteral<"withheld">;
141
+ digest: z.ZodString;
142
+ display: z.ZodLiteral<"Brief">;
143
+ cause: z.ZodEnum<{
144
+ policy: "policy";
145
+ unclassified: "unclassified";
146
+ }>;
147
+ }, z.core.$strict>]>;
148
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
149
+ state: z.ZodLiteral<"safe">;
150
+ text: z.ZodString;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ state: z.ZodLiteral<"withheld">;
153
+ digest: z.ZodString;
154
+ display: z.ZodLiteral<"Details withheld">;
155
+ cause: z.ZodEnum<{
156
+ policy: "policy";
157
+ unclassified: "unclassified";
158
+ }>;
159
+ }, z.core.$strict>]>;
160
+ url: z.ZodUnion<readonly [z.ZodObject<{
161
+ state: z.ZodLiteral<"absent">;
162
+ }, z.core.$strict>, z.ZodObject<{
163
+ state: z.ZodLiteral<"exact">;
164
+ href: z.ZodString;
165
+ }, z.core.$strict>, z.ZodObject<{
166
+ state: z.ZodLiteral<"withheld">;
167
+ digest: z.ZodString;
168
+ display: z.ZodLiteral<"Destination withheld">;
169
+ cause: z.ZodEnum<{
170
+ policy: "policy";
171
+ unclassified: "unclassified";
172
+ }>;
173
+ }, z.core.$strict>]>;
174
+ }, z.core.$strict>, briefTargetPresentationSchema: z.ZodObject<{
175
+ label: z.ZodUnion<readonly [z.ZodObject<{
176
+ state: z.ZodLiteral<"safe">;
177
+ text: z.ZodString;
178
+ }, z.core.$strict>, z.ZodObject<{
179
+ state: z.ZodLiteral<"withheld">;
180
+ digest: z.ZodString;
181
+ display: z.ZodLiteral<"Reference">;
182
+ cause: z.ZodEnum<{
183
+ policy: "policy";
184
+ unclassified: "unclassified";
185
+ }>;
186
+ }, z.core.$strict>]>;
187
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
188
+ state: z.ZodLiteral<"safe">;
189
+ text: z.ZodString;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ state: z.ZodLiteral<"withheld">;
192
+ digest: z.ZodString;
193
+ display: z.ZodLiteral<"Details withheld">;
194
+ cause: z.ZodEnum<{
195
+ policy: "policy";
196
+ unclassified: "unclassified";
197
+ }>;
198
+ }, z.core.$strict>]>;
199
+ url: z.ZodUnion<readonly [z.ZodObject<{
200
+ state: z.ZodLiteral<"absent">;
201
+ }, z.core.$strict>, z.ZodObject<{
202
+ state: z.ZodLiteral<"exact">;
203
+ href: z.ZodString;
204
+ }, z.core.$strict>, z.ZodObject<{
205
+ state: z.ZodLiteral<"withheld">;
206
+ digest: z.ZodString;
207
+ display: z.ZodLiteral<"Destination withheld">;
208
+ cause: z.ZodEnum<{
209
+ policy: "policy";
210
+ unclassified: "unclassified";
211
+ }>;
212
+ }, z.core.$strict>]>;
213
+ }, z.core.$strict>;
214
+ export declare const briefProvenanceSchema: z.ZodUnion<readonly [z.ZodObject<{
215
+ state: z.ZodLiteral<"safe">;
216
+ value: z.ZodObject<{
217
+ pluginId: z.ZodString;
218
+ origin: z.ZodEnum<{
219
+ builtin: "builtin";
220
+ contributed: "contributed";
221
+ }>;
222
+ confidence: z.ZodEnum<{
223
+ high: "high";
224
+ medium: "medium";
225
+ low: "low";
226
+ }>;
227
+ recognition: z.ZodObject<{
228
+ basis: z.ZodEnum<{
229
+ explicit: "explicit";
230
+ "text-url": "text-url";
231
+ "existing-link": "existing-link";
232
+ "git-remote": "git-remote";
233
+ context: "context";
234
+ }>;
235
+ explanation: z.ZodString;
236
+ evidence: z.ZodOptional<z.ZodObject<{
237
+ span: z.ZodOptional<z.ZodObject<{
238
+ start: z.ZodNumber;
239
+ end: z.ZodNumber;
240
+ }, z.core.$strict>>;
241
+ link: z.ZodOptional<z.ZodNumber>;
242
+ remote: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strict>>;
244
+ }, z.core.$strict>;
245
+ source: z.ZodObject<{
246
+ provider: z.ZodString;
247
+ id: z.ZodString;
248
+ kind: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strict>;
250
+ authoredHref: z.ZodOptional<z.ZodString>;
251
+ verifiedFile: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
252
+ kind: z.ZodLiteral<"workspace">;
253
+ environmentId: z.ZodString;
254
+ path: z.ZodString;
255
+ }, z.core.$strict>, z.ZodObject<{
256
+ kind: z.ZodLiteral<"thread-storage">;
257
+ threadId: z.ZodString;
258
+ path: z.ZodString;
259
+ }, z.core.$strict>], "kind">>;
260
+ }, z.core.$strict>;
261
+ }, z.core.$strict>, z.ZodObject<{
262
+ state: z.ZodLiteral<"withheld">;
263
+ digest: z.ZodString;
264
+ display: z.ZodLiteral<"Recognition details withheld">;
265
+ cause: z.ZodEnum<{
266
+ policy: "policy";
267
+ unclassified: "unclassified";
268
+ }>;
269
+ summary: z.ZodObject<{
270
+ pluginId: z.ZodString;
271
+ origin: z.ZodEnum<{
272
+ builtin: "builtin";
273
+ contributed: "contributed";
274
+ }>;
275
+ confidence: z.ZodEnum<{
276
+ high: "high";
277
+ medium: "medium";
278
+ low: "low";
279
+ }>;
280
+ basis: z.ZodEnum<{
281
+ explicit: "explicit";
282
+ "text-url": "text-url";
283
+ "existing-link": "existing-link";
284
+ "git-remote": "git-remote";
285
+ context: "context";
286
+ }>;
287
+ }, z.core.$strict>;
288
+ }, z.core.$strict>]>;
289
+ export declare const briefAuthoredUrlSchema: z.ZodUnion<readonly [z.ZodObject<{
290
+ state: z.ZodLiteral<"exact">;
291
+ href: z.ZodString;
292
+ }, z.core.$strict>, z.ZodObject<{
293
+ state: z.ZodLiteral<"not-url">;
294
+ }, z.core.$strict>, z.ZodObject<{
295
+ state: z.ZodLiteral<"unknown">;
296
+ }, z.core.$strict>, z.ZodObject<{
297
+ state: z.ZodLiteral<"withheld">;
298
+ digest: z.ZodString;
299
+ display: z.ZodLiteral<"Destination withheld">;
300
+ cause: z.ZodEnum<{
301
+ policy: "policy";
302
+ unclassified: "unclassified";
303
+ }>;
304
+ }, z.core.$strict>]>;
305
+ export declare const briefFrameSchema: z.ZodObject<{
306
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
307
+ rawBytes: z.ZodNumber;
308
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
309
+ fileUtf16Length: z.ZodNumber;
310
+ bodyBase: z.ZodObject<{
311
+ startUtf16: z.ZodNumber;
312
+ startLine: z.ZodNumber;
313
+ utf16Length: z.ZodNumber;
314
+ }, z.core.$strict>;
315
+ lineMapping: z.ZodObject<{
316
+ codec: z.ZodLiteral<"native-file-lines-v1">;
317
+ fileLineCount: z.ZodNumber;
318
+ }, z.core.$strict>;
319
+ }, z.core.$strict>;
320
+ export declare const briefLocatorSchema: z.ZodObject<{
321
+ kind: z.ZodLiteral<"thread-brief">;
322
+ threadId: z.ZodString;
323
+ file: z.ZodObject<{
324
+ kind: z.ZodLiteral<"thread-storage">;
325
+ threadId: z.ZodString;
326
+ path: z.ZodLiteral<"BRIEF.md">;
327
+ }, z.core.$strict>;
328
+ sourceContentRevision: z.ZodString;
329
+ section: z.ZodObject<{
330
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
331
+ state: z.ZodLiteral<"named">;
332
+ text: z.ZodString;
333
+ }, z.core.$strict>, z.ZodObject<{
334
+ state: z.ZodLiteral<"withheld">;
335
+ digest: z.ZodString;
336
+ display: z.ZodLiteral<"Heading withheld">;
337
+ cause: z.ZodEnum<{
338
+ policy: "policy";
339
+ unclassified: "unclassified";
340
+ }>;
341
+ }, z.core.$strict>]>;
342
+ line: z.ZodNumber;
343
+ }, z.core.$strict>;
344
+ location: z.ZodObject<{
345
+ kind: z.ZodLiteral<"line">;
346
+ line: z.ZodNumber;
347
+ column: z.ZodNullable<z.ZodNumber>;
348
+ endLine: z.ZodNullable<z.ZodNumber>;
349
+ }, z.core.$strict>;
350
+ span: z.ZodOptional<z.ZodObject<{
351
+ frame: z.ZodEnum<{
352
+ "file-utf16": "file-utf16";
353
+ "body-utf16": "body-utf16";
354
+ }>;
355
+ start: z.ZodNumber;
356
+ end: z.ZodNumber;
357
+ }, z.core.$strict>>;
358
+ }, z.core.$strict>;
359
+ export declare const briefOccurrenceSchema: z.ZodObject<{
360
+ occurrenceKey: z.ZodString;
361
+ sourceOccurrenceId: z.ZodString;
362
+ target: z.ZodObject<{
363
+ provider: z.ZodString;
364
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
365
+ }, z.core.$strict>;
366
+ locator: z.ZodObject<{
367
+ kind: z.ZodLiteral<"thread-brief">;
368
+ threadId: z.ZodString;
369
+ file: z.ZodObject<{
370
+ kind: z.ZodLiteral<"thread-storage">;
371
+ threadId: z.ZodString;
372
+ path: z.ZodLiteral<"BRIEF.md">;
373
+ }, z.core.$strict>;
374
+ sourceContentRevision: z.ZodString;
375
+ section: z.ZodObject<{
376
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
377
+ state: z.ZodLiteral<"named">;
378
+ text: z.ZodString;
379
+ }, z.core.$strict>, z.ZodObject<{
380
+ state: z.ZodLiteral<"withheld">;
381
+ digest: z.ZodString;
382
+ display: z.ZodLiteral<"Heading withheld">;
383
+ cause: z.ZodEnum<{
384
+ policy: "policy";
385
+ unclassified: "unclassified";
386
+ }>;
387
+ }, z.core.$strict>]>;
388
+ line: z.ZodNumber;
389
+ }, z.core.$strict>;
390
+ location: z.ZodObject<{
391
+ kind: z.ZodLiteral<"line">;
392
+ line: z.ZodNumber;
393
+ column: z.ZodNullable<z.ZodNumber>;
394
+ endLine: z.ZodNullable<z.ZodNumber>;
395
+ }, z.core.$strict>;
396
+ span: z.ZodOptional<z.ZodObject<{
397
+ frame: z.ZodEnum<{
398
+ "file-utf16": "file-utf16";
399
+ "body-utf16": "body-utf16";
400
+ }>;
401
+ start: z.ZodNumber;
402
+ end: z.ZodNumber;
403
+ }, z.core.$strict>>;
404
+ }, z.core.$strict>;
405
+ provenance: z.ZodUnion<readonly [z.ZodObject<{
406
+ state: z.ZodLiteral<"safe">;
407
+ value: z.ZodObject<{
408
+ pluginId: z.ZodString;
409
+ origin: z.ZodEnum<{
410
+ builtin: "builtin";
411
+ contributed: "contributed";
412
+ }>;
413
+ confidence: z.ZodEnum<{
414
+ high: "high";
415
+ medium: "medium";
416
+ low: "low";
417
+ }>;
418
+ recognition: z.ZodObject<{
419
+ basis: z.ZodEnum<{
420
+ explicit: "explicit";
421
+ "text-url": "text-url";
422
+ "existing-link": "existing-link";
423
+ "git-remote": "git-remote";
424
+ context: "context";
425
+ }>;
426
+ explanation: z.ZodString;
427
+ evidence: z.ZodOptional<z.ZodObject<{
428
+ span: z.ZodOptional<z.ZodObject<{
429
+ start: z.ZodNumber;
430
+ end: z.ZodNumber;
431
+ }, z.core.$strict>>;
432
+ link: z.ZodOptional<z.ZodNumber>;
433
+ remote: z.ZodOptional<z.ZodString>;
434
+ }, z.core.$strict>>;
435
+ }, z.core.$strict>;
436
+ source: z.ZodObject<{
437
+ provider: z.ZodString;
438
+ id: z.ZodString;
439
+ kind: z.ZodOptional<z.ZodString>;
440
+ }, z.core.$strict>;
441
+ authoredHref: z.ZodOptional<z.ZodString>;
442
+ verifiedFile: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
443
+ kind: z.ZodLiteral<"workspace">;
444
+ environmentId: z.ZodString;
445
+ path: z.ZodString;
446
+ }, z.core.$strict>, z.ZodObject<{
447
+ kind: z.ZodLiteral<"thread-storage">;
448
+ threadId: z.ZodString;
449
+ path: z.ZodString;
450
+ }, z.core.$strict>], "kind">>;
451
+ }, z.core.$strict>;
452
+ }, z.core.$strict>, z.ZodObject<{
453
+ state: z.ZodLiteral<"withheld">;
454
+ digest: z.ZodString;
455
+ display: z.ZodLiteral<"Recognition details withheld">;
456
+ cause: z.ZodEnum<{
457
+ policy: "policy";
458
+ unclassified: "unclassified";
459
+ }>;
460
+ summary: z.ZodObject<{
461
+ pluginId: z.ZodString;
462
+ origin: z.ZodEnum<{
463
+ builtin: "builtin";
464
+ contributed: "contributed";
465
+ }>;
466
+ confidence: z.ZodEnum<{
467
+ high: "high";
468
+ medium: "medium";
469
+ low: "low";
470
+ }>;
471
+ basis: z.ZodEnum<{
472
+ explicit: "explicit";
473
+ "text-url": "text-url";
474
+ "existing-link": "existing-link";
475
+ "git-remote": "git-remote";
476
+ context: "context";
477
+ }>;
478
+ }, z.core.$strict>;
479
+ }, z.core.$strict>]>;
480
+ authoredUrl: z.ZodUnion<readonly [z.ZodObject<{
481
+ state: z.ZodLiteral<"exact">;
482
+ href: z.ZodString;
483
+ }, z.core.$strict>, z.ZodObject<{
484
+ state: z.ZodLiteral<"not-url">;
485
+ }, z.core.$strict>, z.ZodObject<{
486
+ state: z.ZodLiteral<"unknown">;
487
+ }, z.core.$strict>, z.ZodObject<{
488
+ state: z.ZodLiteral<"withheld">;
489
+ digest: z.ZodString;
490
+ display: z.ZodLiteral<"Destination withheld">;
491
+ cause: z.ZodEnum<{
492
+ policy: "policy";
493
+ unclassified: "unclassified";
494
+ }>;
495
+ }, z.core.$strict>]>;
496
+ }, z.core.$strict>;
497
+ export declare const briefTargetDescriptorSchema: z.ZodObject<{
498
+ target: z.ZodObject<{
499
+ provider: z.ZodString;
500
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
501
+ }, z.core.$strict>;
502
+ presentation: z.ZodObject<{
503
+ label: z.ZodUnion<readonly [z.ZodObject<{
504
+ state: z.ZodLiteral<"safe">;
505
+ text: z.ZodString;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ state: z.ZodLiteral<"withheld">;
508
+ digest: z.ZodString;
509
+ display: z.ZodLiteral<"Reference">;
510
+ cause: z.ZodEnum<{
511
+ policy: "policy";
512
+ unclassified: "unclassified";
513
+ }>;
514
+ }, z.core.$strict>]>;
515
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
516
+ state: z.ZodLiteral<"safe">;
517
+ text: z.ZodString;
518
+ }, z.core.$strict>, z.ZodObject<{
519
+ state: z.ZodLiteral<"withheld">;
520
+ digest: z.ZodString;
521
+ display: z.ZodLiteral<"Details withheld">;
522
+ cause: z.ZodEnum<{
523
+ policy: "policy";
524
+ unclassified: "unclassified";
525
+ }>;
526
+ }, z.core.$strict>]>;
527
+ url: z.ZodUnion<readonly [z.ZodObject<{
528
+ state: z.ZodLiteral<"absent">;
529
+ }, z.core.$strict>, z.ZodObject<{
530
+ state: z.ZodLiteral<"exact">;
531
+ href: z.ZodString;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ state: z.ZodLiteral<"withheld">;
534
+ digest: z.ZodString;
535
+ display: z.ZodLiteral<"Destination withheld">;
536
+ cause: z.ZodEnum<{
537
+ policy: "policy";
538
+ unclassified: "unclassified";
539
+ }>;
540
+ }, z.core.$strict>]>;
541
+ }, z.core.$strict>;
542
+ codec: z.ZodUnion<readonly [z.ZodObject<{
543
+ state: z.ZodLiteral<"available">;
544
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
545
+ kind: z.ZodLiteral<"recognition">;
546
+ source: z.ZodObject<{
547
+ provider: z.ZodString;
548
+ id: z.ZodString;
549
+ kind: z.ZodOptional<z.ZodString>;
550
+ }, z.core.$strict>;
551
+ }, z.core.$strict>, z.ZodObject<{
552
+ kind: z.ZodLiteral<"thread">;
553
+ source: z.ZodObject<{
554
+ provider: z.ZodString;
555
+ id: z.ZodString;
556
+ kind: z.ZodOptional<z.ZodString>;
557
+ }, z.core.$strict>;
558
+ verified: z.ZodObject<{
559
+ id: z.ZodString;
560
+ projectId: z.ZodString;
561
+ }, z.core.$strict>;
562
+ }, z.core.$strict>, z.ZodObject<{
563
+ kind: z.ZodLiteral<"file">;
564
+ verified: z.ZodDiscriminatedUnion<[z.ZodObject<{
565
+ kind: z.ZodLiteral<"workspace">;
566
+ environmentId: z.ZodString;
567
+ path: z.ZodString;
568
+ }, z.core.$strict>, z.ZodObject<{
569
+ kind: z.ZodLiteral<"thread-storage">;
570
+ threadId: z.ZodString;
571
+ path: z.ZodString;
572
+ }, z.core.$strict>], "kind">;
573
+ }, z.core.$strict>, z.ZodObject<{
574
+ kind: z.ZodLiteral<"url">;
575
+ href: z.ZodString;
576
+ }, z.core.$strict>], "kind">;
577
+ }, z.core.$strict>, z.ZodObject<{
578
+ state: z.ZodLiteral<"withheld">;
579
+ digest: z.ZodString;
580
+ display: z.ZodLiteral<"Identity metadata withheld">;
581
+ cause: z.ZodEnum<{
582
+ policy: "policy";
583
+ unclassified: "unclassified";
584
+ }>;
585
+ }, z.core.$strict>]>;
586
+ }, z.core.$strict>;
587
+ export declare const briefEvidenceSchema: z.ZodObject<{
588
+ kind: z.ZodLiteral<"thread-brief">;
589
+ sourceFile: z.ZodObject<{
590
+ kind: z.ZodLiteral<"thread-storage">;
591
+ threadId: z.ZodString;
592
+ path: z.ZodLiteral<"BRIEF.md">;
593
+ }, z.core.$strict>;
594
+ sourceState: z.ZodEnum<{
595
+ present: "present";
596
+ absent: "absent";
597
+ empty: "empty";
598
+ }>;
599
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
600
+ completeness: z.ZodObject<{
601
+ state: z.ZodLiteral<"complete">;
602
+ codecVersion: z.ZodLiteral<1>;
603
+ }, z.core.$strict>;
604
+ metadataPolicyVersion: z.ZodLiteral<1>;
605
+ frame: z.ZodNullable<z.ZodObject<{
606
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
607
+ rawBytes: z.ZodNumber;
608
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
609
+ fileUtf16Length: z.ZodNumber;
610
+ bodyBase: z.ZodObject<{
611
+ startUtf16: z.ZodNumber;
612
+ startLine: z.ZodNumber;
613
+ utf16Length: z.ZodNumber;
614
+ }, z.core.$strict>;
615
+ lineMapping: z.ZodObject<{
616
+ codec: z.ZodLiteral<"native-file-lines-v1">;
617
+ fileLineCount: z.ZodNumber;
618
+ }, z.core.$strict>;
619
+ }, z.core.$strict>>;
620
+ sourcePresentation: z.ZodObject<{
621
+ label: z.ZodUnion<readonly [z.ZodObject<{
622
+ state: z.ZodLiteral<"safe">;
623
+ text: z.ZodString;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ state: z.ZodLiteral<"withheld">;
626
+ digest: z.ZodString;
627
+ display: z.ZodLiteral<"Brief">;
628
+ cause: z.ZodEnum<{
629
+ policy: "policy";
630
+ unclassified: "unclassified";
631
+ }>;
632
+ }, z.core.$strict>]>;
633
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
634
+ state: z.ZodLiteral<"safe">;
635
+ text: z.ZodString;
636
+ }, z.core.$strict>, z.ZodObject<{
637
+ state: z.ZodLiteral<"withheld">;
638
+ digest: z.ZodString;
639
+ display: z.ZodLiteral<"Details withheld">;
640
+ cause: z.ZodEnum<{
641
+ policy: "policy";
642
+ unclassified: "unclassified";
643
+ }>;
644
+ }, z.core.$strict>]>;
645
+ url: z.ZodUnion<readonly [z.ZodObject<{
646
+ state: z.ZodLiteral<"absent">;
647
+ }, z.core.$strict>, z.ZodObject<{
648
+ state: z.ZodLiteral<"exact">;
649
+ href: z.ZodString;
650
+ }, z.core.$strict>, z.ZodObject<{
651
+ state: z.ZodLiteral<"withheld">;
652
+ digest: z.ZodString;
653
+ display: z.ZodLiteral<"Destination withheld">;
654
+ cause: z.ZodEnum<{
655
+ policy: "policy";
656
+ unclassified: "unclassified";
657
+ }>;
658
+ }, z.core.$strict>]>;
659
+ }, z.core.$strict>;
660
+ targetDescriptors: z.ZodArray<z.ZodObject<{
661
+ target: z.ZodObject<{
662
+ provider: z.ZodString;
663
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
664
+ }, z.core.$strict>;
665
+ presentation: z.ZodObject<{
666
+ label: z.ZodUnion<readonly [z.ZodObject<{
667
+ state: z.ZodLiteral<"safe">;
668
+ text: z.ZodString;
669
+ }, z.core.$strict>, z.ZodObject<{
670
+ state: z.ZodLiteral<"withheld">;
671
+ digest: z.ZodString;
672
+ display: z.ZodLiteral<"Reference">;
673
+ cause: z.ZodEnum<{
674
+ policy: "policy";
675
+ unclassified: "unclassified";
676
+ }>;
677
+ }, z.core.$strict>]>;
678
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
679
+ state: z.ZodLiteral<"safe">;
680
+ text: z.ZodString;
681
+ }, z.core.$strict>, z.ZodObject<{
682
+ state: z.ZodLiteral<"withheld">;
683
+ digest: z.ZodString;
684
+ display: z.ZodLiteral<"Details withheld">;
685
+ cause: z.ZodEnum<{
686
+ policy: "policy";
687
+ unclassified: "unclassified";
688
+ }>;
689
+ }, z.core.$strict>]>;
690
+ url: z.ZodUnion<readonly [z.ZodObject<{
691
+ state: z.ZodLiteral<"absent">;
692
+ }, z.core.$strict>, z.ZodObject<{
693
+ state: z.ZodLiteral<"exact">;
694
+ href: z.ZodString;
695
+ }, z.core.$strict>, z.ZodObject<{
696
+ state: z.ZodLiteral<"withheld">;
697
+ digest: z.ZodString;
698
+ display: z.ZodLiteral<"Destination withheld">;
699
+ cause: z.ZodEnum<{
700
+ policy: "policy";
701
+ unclassified: "unclassified";
702
+ }>;
703
+ }, z.core.$strict>]>;
704
+ }, z.core.$strict>;
705
+ codec: z.ZodUnion<readonly [z.ZodObject<{
706
+ state: z.ZodLiteral<"available">;
707
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
708
+ kind: z.ZodLiteral<"recognition">;
709
+ source: z.ZodObject<{
710
+ provider: z.ZodString;
711
+ id: z.ZodString;
712
+ kind: z.ZodOptional<z.ZodString>;
713
+ }, z.core.$strict>;
714
+ }, z.core.$strict>, z.ZodObject<{
715
+ kind: z.ZodLiteral<"thread">;
716
+ source: z.ZodObject<{
717
+ provider: z.ZodString;
718
+ id: z.ZodString;
719
+ kind: z.ZodOptional<z.ZodString>;
720
+ }, z.core.$strict>;
721
+ verified: z.ZodObject<{
722
+ id: z.ZodString;
723
+ projectId: z.ZodString;
724
+ }, z.core.$strict>;
725
+ }, z.core.$strict>, z.ZodObject<{
726
+ kind: z.ZodLiteral<"file">;
727
+ verified: z.ZodDiscriminatedUnion<[z.ZodObject<{
728
+ kind: z.ZodLiteral<"workspace">;
729
+ environmentId: z.ZodString;
730
+ path: z.ZodString;
731
+ }, z.core.$strict>, z.ZodObject<{
732
+ kind: z.ZodLiteral<"thread-storage">;
733
+ threadId: z.ZodString;
734
+ path: z.ZodString;
735
+ }, z.core.$strict>], "kind">;
736
+ }, z.core.$strict>, z.ZodObject<{
737
+ kind: z.ZodLiteral<"url">;
738
+ href: z.ZodString;
739
+ }, z.core.$strict>], "kind">;
740
+ }, z.core.$strict>, z.ZodObject<{
741
+ state: z.ZodLiteral<"withheld">;
742
+ digest: z.ZodString;
743
+ display: z.ZodLiteral<"Identity metadata withheld">;
744
+ cause: z.ZodEnum<{
745
+ policy: "policy";
746
+ unclassified: "unclassified";
747
+ }>;
748
+ }, z.core.$strict>]>;
749
+ }, z.core.$strict>>;
750
+ occurrences: z.ZodArray<z.ZodObject<{
751
+ occurrenceKey: z.ZodString;
752
+ sourceOccurrenceId: z.ZodString;
753
+ target: z.ZodObject<{
754
+ provider: z.ZodString;
755
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
756
+ }, z.core.$strict>;
757
+ locator: z.ZodObject<{
758
+ kind: z.ZodLiteral<"thread-brief">;
759
+ threadId: z.ZodString;
760
+ file: z.ZodObject<{
761
+ kind: z.ZodLiteral<"thread-storage">;
762
+ threadId: z.ZodString;
763
+ path: z.ZodLiteral<"BRIEF.md">;
764
+ }, z.core.$strict>;
765
+ sourceContentRevision: z.ZodString;
766
+ section: z.ZodObject<{
767
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
768
+ state: z.ZodLiteral<"named">;
769
+ text: z.ZodString;
770
+ }, z.core.$strict>, z.ZodObject<{
771
+ state: z.ZodLiteral<"withheld">;
772
+ digest: z.ZodString;
773
+ display: z.ZodLiteral<"Heading withheld">;
774
+ cause: z.ZodEnum<{
775
+ policy: "policy";
776
+ unclassified: "unclassified";
777
+ }>;
778
+ }, z.core.$strict>]>;
779
+ line: z.ZodNumber;
780
+ }, z.core.$strict>;
781
+ location: z.ZodObject<{
782
+ kind: z.ZodLiteral<"line">;
783
+ line: z.ZodNumber;
784
+ column: z.ZodNullable<z.ZodNumber>;
785
+ endLine: z.ZodNullable<z.ZodNumber>;
786
+ }, z.core.$strict>;
787
+ span: z.ZodOptional<z.ZodObject<{
788
+ frame: z.ZodEnum<{
789
+ "file-utf16": "file-utf16";
790
+ "body-utf16": "body-utf16";
791
+ }>;
792
+ start: z.ZodNumber;
793
+ end: z.ZodNumber;
794
+ }, z.core.$strict>>;
795
+ }, z.core.$strict>;
796
+ provenance: z.ZodUnion<readonly [z.ZodObject<{
797
+ state: z.ZodLiteral<"safe">;
798
+ value: z.ZodObject<{
799
+ pluginId: z.ZodString;
800
+ origin: z.ZodEnum<{
801
+ builtin: "builtin";
802
+ contributed: "contributed";
803
+ }>;
804
+ confidence: z.ZodEnum<{
805
+ high: "high";
806
+ medium: "medium";
807
+ low: "low";
808
+ }>;
809
+ recognition: z.ZodObject<{
810
+ basis: z.ZodEnum<{
811
+ explicit: "explicit";
812
+ "text-url": "text-url";
813
+ "existing-link": "existing-link";
814
+ "git-remote": "git-remote";
815
+ context: "context";
816
+ }>;
817
+ explanation: z.ZodString;
818
+ evidence: z.ZodOptional<z.ZodObject<{
819
+ span: z.ZodOptional<z.ZodObject<{
820
+ start: z.ZodNumber;
821
+ end: z.ZodNumber;
822
+ }, z.core.$strict>>;
823
+ link: z.ZodOptional<z.ZodNumber>;
824
+ remote: z.ZodOptional<z.ZodString>;
825
+ }, z.core.$strict>>;
826
+ }, z.core.$strict>;
827
+ source: z.ZodObject<{
828
+ provider: z.ZodString;
829
+ id: z.ZodString;
830
+ kind: z.ZodOptional<z.ZodString>;
831
+ }, z.core.$strict>;
832
+ authoredHref: z.ZodOptional<z.ZodString>;
833
+ verifiedFile: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
834
+ kind: z.ZodLiteral<"workspace">;
835
+ environmentId: z.ZodString;
836
+ path: z.ZodString;
837
+ }, z.core.$strict>, z.ZodObject<{
838
+ kind: z.ZodLiteral<"thread-storage">;
839
+ threadId: z.ZodString;
840
+ path: z.ZodString;
841
+ }, z.core.$strict>], "kind">>;
842
+ }, z.core.$strict>;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ state: z.ZodLiteral<"withheld">;
845
+ digest: z.ZodString;
846
+ display: z.ZodLiteral<"Recognition details withheld">;
847
+ cause: z.ZodEnum<{
848
+ policy: "policy";
849
+ unclassified: "unclassified";
850
+ }>;
851
+ summary: z.ZodObject<{
852
+ pluginId: z.ZodString;
853
+ origin: z.ZodEnum<{
854
+ builtin: "builtin";
855
+ contributed: "contributed";
856
+ }>;
857
+ confidence: z.ZodEnum<{
858
+ high: "high";
859
+ medium: "medium";
860
+ low: "low";
861
+ }>;
862
+ basis: z.ZodEnum<{
863
+ explicit: "explicit";
864
+ "text-url": "text-url";
865
+ "existing-link": "existing-link";
866
+ "git-remote": "git-remote";
867
+ context: "context";
868
+ }>;
869
+ }, z.core.$strict>;
870
+ }, z.core.$strict>]>;
871
+ authoredUrl: z.ZodUnion<readonly [z.ZodObject<{
872
+ state: z.ZodLiteral<"exact">;
873
+ href: z.ZodString;
874
+ }, z.core.$strict>, z.ZodObject<{
875
+ state: z.ZodLiteral<"not-url">;
876
+ }, z.core.$strict>, z.ZodObject<{
877
+ state: z.ZodLiteral<"unknown">;
878
+ }, z.core.$strict>, z.ZodObject<{
879
+ state: z.ZodLiteral<"withheld">;
880
+ digest: z.ZodString;
881
+ display: z.ZodLiteral<"Destination withheld">;
882
+ cause: z.ZodEnum<{
883
+ policy: "policy";
884
+ unclassified: "unclassified";
885
+ }>;
886
+ }, z.core.$strict>]>;
887
+ }, z.core.$strict>>;
888
+ }, z.core.$strict>;
889
+ export type BriefHeadingV1 = z.infer<typeof briefHeadingSchema>;
890
+ export type BriefFrameV1 = z.infer<typeof briefFrameSchema>;
891
+ export type BriefOccurrenceV1 = z.infer<typeof briefOccurrenceSchema>;
892
+ export type BriefEvidenceV1 = z.infer<typeof briefEvidenceSchema>;
893
+ export type BriefTargetDescriptorV1 = z.infer<typeof briefTargetDescriptorSchema>;
894
+ export type BriefAuthoredUrlV1 = z.infer<typeof briefAuthoredUrlSchema>;
895
+ export type BriefProvenanceV1 = z.infer<typeof briefProvenanceSchema>;
896
+ export type BriefFileV1 = z.infer<typeof briefFileSchema>;
897
+ export type BriefPresentationV1 = z.infer<typeof briefSourcePresentationSchema> | z.infer<typeof briefTargetPresentationSchema>;
898
+ export declare function briefWithheldDigest(role: DisplayRoleV1, original: unknown): string;
899
+ export declare function briefOccurrenceKey(rawRevision: string, target: ResourceIdentity, locator: BriefOccurrenceV1['locator'], sourceOccurrenceId: string): string;
900
+ export declare function briefEvidenceDigest(input: BriefEvidenceV1): string;
901
+ export declare function briefPresentation(p: BriefPresentationV1): Presentation;
902
+ /** Size diagnosis is distinct from malformed known fields. Never rewrite a safe oversized value. */
903
+ export declare function briefApplyLimitCodes(input: ProducerApplyInput): BriefLimitCode[];
904
+ export declare class BriefAdmissionError extends Error {
905
+ readonly code: 'invalid' | 'over-limit' | 'identity-unrepresentable';
906
+ readonly limits: readonly BriefLimitCode[];
907
+ constructor(code: 'invalid' | 'over-limit' | 'identity-unrepresentable', limits?: readonly BriefLimitCode[]);
908
+ }
909
+ /** Full independent SAFE recomputation. Withheld originals intentionally cannot be reproved here. */
910
+ export declare function assertBriefDisplaySafe(e: BriefEvidenceV1): void;
911
+ /** Pure complete-snapshot admission, shared by ingress and producer preflight. */
912
+ export declare function validateBriefCommand(projection: ApplyProjectionInput, evidence: BriefEvidenceV1, evidenceDigest: string): BriefEvidenceV1;
913
+ export declare const blockedBriefStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
914
+ state: z.ZodLiteral<"over-limit">;
915
+ sourceContentRevision: z.ZodString;
916
+ limits: z.ZodArray<z.ZodEnum<{
917
+ "target-count": "target-count";
918
+ "projection-bytes": "projection-bytes";
919
+ "occurrence-count": "occurrence-count";
920
+ "per-target-occurrences": "per-target-occurrences";
921
+ "heading-bytes": "heading-bytes";
922
+ "envelope-bytes": "envelope-bytes";
923
+ "presentation-label-bytes": "presentation-label-bytes";
924
+ "presentation-detail-bytes": "presentation-detail-bytes";
925
+ "presentation-url-bytes": "presentation-url-bytes";
926
+ "presentation-bytes": "presentation-bytes";
927
+ }>>;
928
+ }, z.core.$strict>, z.ZodObject<{
929
+ state: z.ZodLiteral<"identity-unrepresentable">;
930
+ sourceContentRevision: z.ZodString;
931
+ identityReasons: z.ZodArray<z.ZodEnum<{
932
+ "unsafe-required-identity": "unsafe-required-identity";
933
+ "unsupported-required-codec": "unsupported-required-codec";
934
+ "required-identity-bound": "required-identity-bound";
935
+ }>>;
936
+ limits: z.ZodArray<z.ZodEnum<{
937
+ "target-count": "target-count";
938
+ "projection-bytes": "projection-bytes";
939
+ "occurrence-count": "occurrence-count";
940
+ "per-target-occurrences": "per-target-occurrences";
941
+ "heading-bytes": "heading-bytes";
942
+ "envelope-bytes": "envelope-bytes";
943
+ "presentation-label-bytes": "presentation-label-bytes";
944
+ "presentation-detail-bytes": "presentation-detail-bytes";
945
+ "presentation-url-bytes": "presentation-url-bytes";
946
+ "presentation-bytes": "presentation-bytes";
947
+ }>>;
948
+ }, z.core.$strict>], "state">;
949
+ export type BlockedBriefStatusV1 = z.infer<typeof blockedBriefStatusSchema>;
950
+ export declare function briefStatusDigest(producerPluginId: string, source: ResourceIdentity, sourceFile: BriefFileV1, status: BlockedBriefStatusV1): string;
951
+ export declare const producerGetStateInputSchema: z.ZodObject<{
952
+ version: z.ZodLiteral<1>;
953
+ producerPluginId: z.ZodLiteral<"thread-brief">;
954
+ source: z.ZodObject<{
955
+ provider: z.ZodString;
956
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
957
+ }, z.core.$strict>;
958
+ }, z.core.$strict>;
959
+ export declare const producerReportStatusInputSchema: z.ZodObject<{
960
+ version: z.ZodLiteral<1>;
961
+ producerPluginId: z.ZodLiteral<"thread-brief">;
962
+ source: z.ZodObject<{
963
+ provider: z.ZodString;
964
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
965
+ }, z.core.$strict>;
966
+ sourceFile: z.ZodObject<{
967
+ kind: z.ZodLiteral<"thread-storage">;
968
+ threadId: z.ZodString;
969
+ path: z.ZodLiteral<"BRIEF.md">;
970
+ }, z.core.$strict>;
971
+ attemptRevision: z.ZodNumber;
972
+ expectedRevision: z.ZodNumber;
973
+ statusDigest: z.ZodString;
974
+ status: z.ZodDiscriminatedUnion<[z.ZodObject<{
975
+ state: z.ZodLiteral<"over-limit">;
976
+ sourceContentRevision: z.ZodString;
977
+ limits: z.ZodArray<z.ZodEnum<{
978
+ "target-count": "target-count";
979
+ "projection-bytes": "projection-bytes";
980
+ "occurrence-count": "occurrence-count";
981
+ "per-target-occurrences": "per-target-occurrences";
982
+ "heading-bytes": "heading-bytes";
983
+ "envelope-bytes": "envelope-bytes";
984
+ "presentation-label-bytes": "presentation-label-bytes";
985
+ "presentation-detail-bytes": "presentation-detail-bytes";
986
+ "presentation-url-bytes": "presentation-url-bytes";
987
+ "presentation-bytes": "presentation-bytes";
988
+ }>>;
989
+ }, z.core.$strict>, z.ZodObject<{
990
+ state: z.ZodLiteral<"identity-unrepresentable">;
991
+ sourceContentRevision: z.ZodString;
992
+ identityReasons: z.ZodArray<z.ZodEnum<{
993
+ "unsafe-required-identity": "unsafe-required-identity";
994
+ "unsupported-required-codec": "unsupported-required-codec";
995
+ "required-identity-bound": "required-identity-bound";
996
+ }>>;
997
+ limits: z.ZodArray<z.ZodEnum<{
998
+ "target-count": "target-count";
999
+ "projection-bytes": "projection-bytes";
1000
+ "occurrence-count": "occurrence-count";
1001
+ "per-target-occurrences": "per-target-occurrences";
1002
+ "heading-bytes": "heading-bytes";
1003
+ "envelope-bytes": "envelope-bytes";
1004
+ "presentation-label-bytes": "presentation-label-bytes";
1005
+ "presentation-detail-bytes": "presentation-detail-bytes";
1006
+ "presentation-url-bytes": "presentation-url-bytes";
1007
+ "presentation-bytes": "presentation-bytes";
1008
+ }>>;
1009
+ }, z.core.$strict>], "state">;
1010
+ }, z.core.$strict>;
1011
+ export declare const producerStateSchema: z.ZodObject<{
1012
+ version: z.ZodLiteral<1>;
1013
+ projection: z.ZodNullable<z.ZodObject<{
1014
+ producerPluginId: z.ZodString;
1015
+ source: z.ZodObject<{
1016
+ provider: z.ZodString;
1017
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1018
+ presentation: z.ZodObject<{
1019
+ label: z.ZodString;
1020
+ detail: z.ZodOptional<z.ZodString>;
1021
+ url: z.ZodOptional<z.ZodString>;
1022
+ }, z.core.$loose>;
1023
+ }, z.core.$loose>;
1024
+ revision: z.ZodNumber;
1025
+ mutationId: z.ZodString;
1026
+ payloadDigest: z.ZodString;
1027
+ tombstone: z.ZodBoolean;
1028
+ targets: z.ZodArray<z.ZodObject<{
1029
+ provider: z.ZodString;
1030
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1031
+ presentation: z.ZodObject<{
1032
+ label: z.ZodString;
1033
+ detail: z.ZodOptional<z.ZodString>;
1034
+ url: z.ZodOptional<z.ZodString>;
1035
+ }, z.core.$loose>;
1036
+ }, z.core.$loose>>;
1037
+ }, z.core.$loose>>;
1038
+ evidence: z.ZodNullable<z.ZodObject<{
1039
+ kind: z.ZodLiteral<"thread-brief">;
1040
+ graphRevision: z.ZodNumber;
1041
+ graphPayloadDigest: z.ZodString;
1042
+ evidenceDigest: z.ZodString;
1043
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
1044
+ state: z.ZodEnum<{
1045
+ bound: "bound";
1046
+ unconfirmed: "unconfirmed";
1047
+ }>;
1048
+ sourceState: z.ZodEnum<{
1049
+ present: "present";
1050
+ absent: "absent";
1051
+ empty: "empty";
1052
+ }>;
1053
+ occurrenceCount: z.ZodNumber;
1054
+ }, z.core.$loose>>;
1055
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1056
+ state: z.ZodLiteral<"over-limit">;
1057
+ sourceContentRevision: z.ZodString;
1058
+ limits: z.ZodArray<z.ZodEnum<{
1059
+ "target-count": "target-count";
1060
+ "projection-bytes": "projection-bytes";
1061
+ "occurrence-count": "occurrence-count";
1062
+ "per-target-occurrences": "per-target-occurrences";
1063
+ "heading-bytes": "heading-bytes";
1064
+ "envelope-bytes": "envelope-bytes";
1065
+ "presentation-label-bytes": "presentation-label-bytes";
1066
+ "presentation-detail-bytes": "presentation-detail-bytes";
1067
+ "presentation-url-bytes": "presentation-url-bytes";
1068
+ "presentation-bytes": "presentation-bytes";
1069
+ }>>;
1070
+ attemptRevision: z.ZodNumber;
1071
+ statusDigest: z.ZodString;
1072
+ sourceFile: z.ZodObject<{
1073
+ kind: z.ZodLiteral<"thread-storage">;
1074
+ threadId: z.ZodString;
1075
+ path: z.ZodLiteral<"BRIEF.md">;
1076
+ }, z.core.$loose>;
1077
+ applicability: z.ZodEnum<{
1078
+ current: "current";
1079
+ "superseded-by-graph": "superseded-by-graph";
1080
+ }>;
1081
+ }, z.core.$loose>, z.ZodObject<{
1082
+ state: z.ZodLiteral<"identity-unrepresentable">;
1083
+ sourceContentRevision: z.ZodString;
1084
+ identityReasons: z.ZodArray<z.ZodEnum<{
1085
+ "unsafe-required-identity": "unsafe-required-identity";
1086
+ "unsupported-required-codec": "unsupported-required-codec";
1087
+ "required-identity-bound": "required-identity-bound";
1088
+ }>>;
1089
+ limits: z.ZodArray<z.ZodEnum<{
1090
+ "target-count": "target-count";
1091
+ "projection-bytes": "projection-bytes";
1092
+ "occurrence-count": "occurrence-count";
1093
+ "per-target-occurrences": "per-target-occurrences";
1094
+ "heading-bytes": "heading-bytes";
1095
+ "envelope-bytes": "envelope-bytes";
1096
+ "presentation-label-bytes": "presentation-label-bytes";
1097
+ "presentation-detail-bytes": "presentation-detail-bytes";
1098
+ "presentation-url-bytes": "presentation-url-bytes";
1099
+ "presentation-bytes": "presentation-bytes";
1100
+ }>>;
1101
+ attemptRevision: z.ZodNumber;
1102
+ statusDigest: z.ZodString;
1103
+ sourceFile: z.ZodObject<{
1104
+ kind: z.ZodLiteral<"thread-storage">;
1105
+ threadId: z.ZodString;
1106
+ path: z.ZodLiteral<"BRIEF.md">;
1107
+ }, z.core.$loose>;
1108
+ applicability: z.ZodEnum<{
1109
+ current: "current";
1110
+ "superseded-by-graph": "superseded-by-graph";
1111
+ }>;
1112
+ }, z.core.$loose>]>>;
1113
+ revisionHighWater: z.ZodNumber;
1114
+ }, z.core.$loose>;
1115
+ export type ProducerState = z.infer<typeof producerStateSchema>;
1116
+ export type ProducerReportStatusInput = z.infer<typeof producerReportStatusInputSchema>;
1117
+ export type ProducerGetStateInput = z.infer<typeof producerGetStateInputSchema>;
1118
+ export declare const producerDescribeInputSchema: z.ZodNull;
1119
+ export declare const producerDescribeOutputSchema: z.ZodObject<{
1120
+ protocol: z.ZodLiteral<"cross-references-producer">;
1121
+ versions: z.ZodArray<z.ZodNumber>;
1122
+ sourceKinds: z.ZodArray<z.ZodLiteral<"thread-brief">>;
1123
+ limits: z.ZodObject<{
1124
+ inputBytes: z.ZodNumber;
1125
+ statusBytes: z.ZodNumber;
1126
+ locations: z.ZodNumber;
1127
+ perTarget: z.ZodNumber;
1128
+ headingBytes: z.ZodNumber;
1129
+ limitCodes: z.ZodArray<z.ZodString>;
1130
+ }, z.core.$loose>;
1131
+ }, z.core.$loose>;
1132
+ export declare const producerDescribe: () => {
1133
+ protocol: "cross-references-producer";
1134
+ versions: number[];
1135
+ sourceKinds: "thread-brief"[];
1136
+ limits: {
1137
+ inputBytes: 1048576;
1138
+ statusBytes: 16384;
1139
+ locations: number;
1140
+ perTarget: number;
1141
+ headingBytes: number;
1142
+ limitCodes: ("target-count" | "projection-bytes" | "occurrence-count" | "per-target-occurrences" | "heading-bytes" | "envelope-bytes" | "presentation-label-bytes" | "presentation-detail-bytes" | "presentation-url-bytes" | "presentation-bytes")[];
1143
+ };
1144
+ };
1145
+ type ProjectionResourceDto = ResourceIdentity & {
1146
+ presentation: {
1147
+ label: string;
1148
+ detail?: string | undefined;
1149
+ url?: string | undefined;
1150
+ };
1151
+ };
1152
+ type ProjectionDto = Omit<ApplyProjectionInput, 'source' | 'targets'> & {
1153
+ source: ProjectionResourceDto;
1154
+ targets: ProjectionResourceDto[];
1155
+ };
1156
+ export declare function createProducerSchemas<S extends z.ZodType<ProjectionDto>>(projection: S): {
1157
+ readonly "crossReferencesProducer.describe": {
1158
+ readonly input: z.ZodNull;
1159
+ readonly output: z.ZodObject<{
1160
+ protocol: z.ZodLiteral<"cross-references-producer">;
1161
+ versions: z.ZodArray<z.ZodNumber>;
1162
+ sourceKinds: z.ZodArray<z.ZodLiteral<"thread-brief">>;
1163
+ limits: z.ZodObject<{
1164
+ inputBytes: z.ZodNumber;
1165
+ statusBytes: z.ZodNumber;
1166
+ locations: z.ZodNumber;
1167
+ perTarget: z.ZodNumber;
1168
+ headingBytes: z.ZodNumber;
1169
+ limitCodes: z.ZodArray<z.ZodString>;
1170
+ }, z.core.$loose>;
1171
+ }, z.core.$loose>;
1172
+ };
1173
+ readonly crossReferencesProducerV1GetState: {
1174
+ readonly input: z.ZodObject<{
1175
+ version: z.ZodLiteral<1>;
1176
+ producerPluginId: z.ZodLiteral<"thread-brief">;
1177
+ source: z.ZodObject<{
1178
+ provider: z.ZodString;
1179
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1180
+ }, z.core.$strict>;
1181
+ }, z.core.$strict>;
1182
+ readonly output: z.ZodObject<{
1183
+ version: z.ZodLiteral<1>;
1184
+ projection: z.ZodNullable<z.ZodObject<{
1185
+ producerPluginId: z.ZodString;
1186
+ source: z.ZodObject<{
1187
+ provider: z.ZodString;
1188
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1189
+ presentation: z.ZodObject<{
1190
+ label: z.ZodString;
1191
+ detail: z.ZodOptional<z.ZodString>;
1192
+ url: z.ZodOptional<z.ZodString>;
1193
+ }, z.core.$loose>;
1194
+ }, z.core.$loose>;
1195
+ revision: z.ZodNumber;
1196
+ mutationId: z.ZodString;
1197
+ payloadDigest: z.ZodString;
1198
+ tombstone: z.ZodBoolean;
1199
+ targets: z.ZodArray<z.ZodObject<{
1200
+ provider: z.ZodString;
1201
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1202
+ presentation: z.ZodObject<{
1203
+ label: z.ZodString;
1204
+ detail: z.ZodOptional<z.ZodString>;
1205
+ url: z.ZodOptional<z.ZodString>;
1206
+ }, z.core.$loose>;
1207
+ }, z.core.$loose>>;
1208
+ }, z.core.$loose>>;
1209
+ evidence: z.ZodNullable<z.ZodObject<{
1210
+ kind: z.ZodLiteral<"thread-brief">;
1211
+ graphRevision: z.ZodNumber;
1212
+ graphPayloadDigest: z.ZodString;
1213
+ evidenceDigest: z.ZodString;
1214
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
1215
+ state: z.ZodEnum<{
1216
+ bound: "bound";
1217
+ unconfirmed: "unconfirmed";
1218
+ }>;
1219
+ sourceState: z.ZodEnum<{
1220
+ present: "present";
1221
+ absent: "absent";
1222
+ empty: "empty";
1223
+ }>;
1224
+ occurrenceCount: z.ZodNumber;
1225
+ }, z.core.$loose>>;
1226
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1227
+ state: z.ZodLiteral<"over-limit">;
1228
+ sourceContentRevision: z.ZodString;
1229
+ limits: z.ZodArray<z.ZodEnum<{
1230
+ "target-count": "target-count";
1231
+ "projection-bytes": "projection-bytes";
1232
+ "occurrence-count": "occurrence-count";
1233
+ "per-target-occurrences": "per-target-occurrences";
1234
+ "heading-bytes": "heading-bytes";
1235
+ "envelope-bytes": "envelope-bytes";
1236
+ "presentation-label-bytes": "presentation-label-bytes";
1237
+ "presentation-detail-bytes": "presentation-detail-bytes";
1238
+ "presentation-url-bytes": "presentation-url-bytes";
1239
+ "presentation-bytes": "presentation-bytes";
1240
+ }>>;
1241
+ attemptRevision: z.ZodNumber;
1242
+ statusDigest: z.ZodString;
1243
+ sourceFile: z.ZodObject<{
1244
+ kind: z.ZodLiteral<"thread-storage">;
1245
+ threadId: z.ZodString;
1246
+ path: z.ZodLiteral<"BRIEF.md">;
1247
+ }, z.core.$loose>;
1248
+ applicability: z.ZodEnum<{
1249
+ current: "current";
1250
+ "superseded-by-graph": "superseded-by-graph";
1251
+ }>;
1252
+ }, z.core.$loose>, z.ZodObject<{
1253
+ state: z.ZodLiteral<"identity-unrepresentable">;
1254
+ sourceContentRevision: z.ZodString;
1255
+ identityReasons: z.ZodArray<z.ZodEnum<{
1256
+ "unsafe-required-identity": "unsafe-required-identity";
1257
+ "unsupported-required-codec": "unsupported-required-codec";
1258
+ "required-identity-bound": "required-identity-bound";
1259
+ }>>;
1260
+ limits: z.ZodArray<z.ZodEnum<{
1261
+ "target-count": "target-count";
1262
+ "projection-bytes": "projection-bytes";
1263
+ "occurrence-count": "occurrence-count";
1264
+ "per-target-occurrences": "per-target-occurrences";
1265
+ "heading-bytes": "heading-bytes";
1266
+ "envelope-bytes": "envelope-bytes";
1267
+ "presentation-label-bytes": "presentation-label-bytes";
1268
+ "presentation-detail-bytes": "presentation-detail-bytes";
1269
+ "presentation-url-bytes": "presentation-url-bytes";
1270
+ "presentation-bytes": "presentation-bytes";
1271
+ }>>;
1272
+ attemptRevision: z.ZodNumber;
1273
+ statusDigest: z.ZodString;
1274
+ sourceFile: z.ZodObject<{
1275
+ kind: z.ZodLiteral<"thread-storage">;
1276
+ threadId: z.ZodString;
1277
+ path: z.ZodLiteral<"BRIEF.md">;
1278
+ }, z.core.$loose>;
1279
+ applicability: z.ZodEnum<{
1280
+ current: "current";
1281
+ "superseded-by-graph": "superseded-by-graph";
1282
+ }>;
1283
+ }, z.core.$loose>]>>;
1284
+ revisionHighWater: z.ZodNumber;
1285
+ }, z.core.$loose>;
1286
+ };
1287
+ readonly crossReferencesProducerV1Apply: {
1288
+ readonly input: z.ZodObject<{
1289
+ version: z.ZodLiteral<1>;
1290
+ projection: z.ZodPipe<S, z.ZodTransform<ApplyProjectionInput, z.core.output<S>>>;
1291
+ evidence: z.ZodObject<{
1292
+ kind: z.ZodLiteral<"thread-brief">;
1293
+ sourceFile: z.ZodObject<{
1294
+ kind: z.ZodLiteral<"thread-storage">;
1295
+ threadId: z.ZodString;
1296
+ path: z.ZodLiteral<"BRIEF.md">;
1297
+ }, z.core.$strict>;
1298
+ sourceState: z.ZodEnum<{
1299
+ present: "present";
1300
+ absent: "absent";
1301
+ empty: "empty";
1302
+ }>;
1303
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
1304
+ completeness: z.ZodObject<{
1305
+ state: z.ZodLiteral<"complete">;
1306
+ codecVersion: z.ZodLiteral<1>;
1307
+ }, z.core.$strict>;
1308
+ metadataPolicyVersion: z.ZodLiteral<1>;
1309
+ frame: z.ZodNullable<z.ZodObject<{
1310
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
1311
+ rawBytes: z.ZodNumber;
1312
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
1313
+ fileUtf16Length: z.ZodNumber;
1314
+ bodyBase: z.ZodObject<{
1315
+ startUtf16: z.ZodNumber;
1316
+ startLine: z.ZodNumber;
1317
+ utf16Length: z.ZodNumber;
1318
+ }, z.core.$strict>;
1319
+ lineMapping: z.ZodObject<{
1320
+ codec: z.ZodLiteral<"native-file-lines-v1">;
1321
+ fileLineCount: z.ZodNumber;
1322
+ }, z.core.$strict>;
1323
+ }, z.core.$strict>>;
1324
+ sourcePresentation: z.ZodObject<{
1325
+ label: z.ZodUnion<readonly [z.ZodObject<{
1326
+ state: z.ZodLiteral<"safe">;
1327
+ text: z.ZodString;
1328
+ }, z.core.$strict>, z.ZodObject<{
1329
+ state: z.ZodLiteral<"withheld">;
1330
+ digest: z.ZodString;
1331
+ display: z.ZodLiteral<"Brief">;
1332
+ cause: z.ZodEnum<{
1333
+ policy: "policy";
1334
+ unclassified: "unclassified";
1335
+ }>;
1336
+ }, z.core.$strict>]>;
1337
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
1338
+ state: z.ZodLiteral<"safe">;
1339
+ text: z.ZodString;
1340
+ }, z.core.$strict>, z.ZodObject<{
1341
+ state: z.ZodLiteral<"withheld">;
1342
+ digest: z.ZodString;
1343
+ display: z.ZodLiteral<"Details withheld">;
1344
+ cause: z.ZodEnum<{
1345
+ policy: "policy";
1346
+ unclassified: "unclassified";
1347
+ }>;
1348
+ }, z.core.$strict>]>;
1349
+ url: z.ZodUnion<readonly [z.ZodObject<{
1350
+ state: z.ZodLiteral<"absent">;
1351
+ }, z.core.$strict>, z.ZodObject<{
1352
+ state: z.ZodLiteral<"exact">;
1353
+ href: z.ZodString;
1354
+ }, z.core.$strict>, z.ZodObject<{
1355
+ state: z.ZodLiteral<"withheld">;
1356
+ digest: z.ZodString;
1357
+ display: z.ZodLiteral<"Destination withheld">;
1358
+ cause: z.ZodEnum<{
1359
+ policy: "policy";
1360
+ unclassified: "unclassified";
1361
+ }>;
1362
+ }, z.core.$strict>]>;
1363
+ }, z.core.$strict>;
1364
+ targetDescriptors: z.ZodArray<z.ZodObject<{
1365
+ target: z.ZodObject<{
1366
+ provider: z.ZodString;
1367
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1368
+ }, z.core.$strict>;
1369
+ presentation: z.ZodObject<{
1370
+ label: z.ZodUnion<readonly [z.ZodObject<{
1371
+ state: z.ZodLiteral<"safe">;
1372
+ text: z.ZodString;
1373
+ }, z.core.$strict>, z.ZodObject<{
1374
+ state: z.ZodLiteral<"withheld">;
1375
+ digest: z.ZodString;
1376
+ display: z.ZodLiteral<"Reference">;
1377
+ cause: z.ZodEnum<{
1378
+ policy: "policy";
1379
+ unclassified: "unclassified";
1380
+ }>;
1381
+ }, z.core.$strict>]>;
1382
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
1383
+ state: z.ZodLiteral<"safe">;
1384
+ text: z.ZodString;
1385
+ }, z.core.$strict>, z.ZodObject<{
1386
+ state: z.ZodLiteral<"withheld">;
1387
+ digest: z.ZodString;
1388
+ display: z.ZodLiteral<"Details withheld">;
1389
+ cause: z.ZodEnum<{
1390
+ policy: "policy";
1391
+ unclassified: "unclassified";
1392
+ }>;
1393
+ }, z.core.$strict>]>;
1394
+ url: z.ZodUnion<readonly [z.ZodObject<{
1395
+ state: z.ZodLiteral<"absent">;
1396
+ }, z.core.$strict>, z.ZodObject<{
1397
+ state: z.ZodLiteral<"exact">;
1398
+ href: z.ZodString;
1399
+ }, z.core.$strict>, z.ZodObject<{
1400
+ state: z.ZodLiteral<"withheld">;
1401
+ digest: z.ZodString;
1402
+ display: z.ZodLiteral<"Destination withheld">;
1403
+ cause: z.ZodEnum<{
1404
+ policy: "policy";
1405
+ unclassified: "unclassified";
1406
+ }>;
1407
+ }, z.core.$strict>]>;
1408
+ }, z.core.$strict>;
1409
+ codec: z.ZodUnion<readonly [z.ZodObject<{
1410
+ state: z.ZodLiteral<"available">;
1411
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
1412
+ kind: z.ZodLiteral<"recognition">;
1413
+ source: z.ZodObject<{
1414
+ provider: z.ZodString;
1415
+ id: z.ZodString;
1416
+ kind: z.ZodOptional<z.ZodString>;
1417
+ }, z.core.$strict>;
1418
+ }, z.core.$strict>, z.ZodObject<{
1419
+ kind: z.ZodLiteral<"thread">;
1420
+ source: z.ZodObject<{
1421
+ provider: z.ZodString;
1422
+ id: z.ZodString;
1423
+ kind: z.ZodOptional<z.ZodString>;
1424
+ }, z.core.$strict>;
1425
+ verified: z.ZodObject<{
1426
+ id: z.ZodString;
1427
+ projectId: z.ZodString;
1428
+ }, z.core.$strict>;
1429
+ }, z.core.$strict>, z.ZodObject<{
1430
+ kind: z.ZodLiteral<"file">;
1431
+ verified: z.ZodDiscriminatedUnion<[z.ZodObject<{
1432
+ kind: z.ZodLiteral<"workspace">;
1433
+ environmentId: z.ZodString;
1434
+ path: z.ZodString;
1435
+ }, z.core.$strict>, z.ZodObject<{
1436
+ kind: z.ZodLiteral<"thread-storage">;
1437
+ threadId: z.ZodString;
1438
+ path: z.ZodString;
1439
+ }, z.core.$strict>], "kind">;
1440
+ }, z.core.$strict>, z.ZodObject<{
1441
+ kind: z.ZodLiteral<"url">;
1442
+ href: z.ZodString;
1443
+ }, z.core.$strict>], "kind">;
1444
+ }, z.core.$strict>, z.ZodObject<{
1445
+ state: z.ZodLiteral<"withheld">;
1446
+ digest: z.ZodString;
1447
+ display: z.ZodLiteral<"Identity metadata withheld">;
1448
+ cause: z.ZodEnum<{
1449
+ policy: "policy";
1450
+ unclassified: "unclassified";
1451
+ }>;
1452
+ }, z.core.$strict>]>;
1453
+ }, z.core.$strict>>;
1454
+ occurrences: z.ZodArray<z.ZodObject<{
1455
+ occurrenceKey: z.ZodString;
1456
+ sourceOccurrenceId: z.ZodString;
1457
+ target: z.ZodObject<{
1458
+ provider: z.ZodString;
1459
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1460
+ }, z.core.$strict>;
1461
+ locator: z.ZodObject<{
1462
+ kind: z.ZodLiteral<"thread-brief">;
1463
+ threadId: z.ZodString;
1464
+ file: z.ZodObject<{
1465
+ kind: z.ZodLiteral<"thread-storage">;
1466
+ threadId: z.ZodString;
1467
+ path: z.ZodLiteral<"BRIEF.md">;
1468
+ }, z.core.$strict>;
1469
+ sourceContentRevision: z.ZodString;
1470
+ section: z.ZodObject<{
1471
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
1472
+ state: z.ZodLiteral<"named">;
1473
+ text: z.ZodString;
1474
+ }, z.core.$strict>, z.ZodObject<{
1475
+ state: z.ZodLiteral<"withheld">;
1476
+ digest: z.ZodString;
1477
+ display: z.ZodLiteral<"Heading withheld">;
1478
+ cause: z.ZodEnum<{
1479
+ policy: "policy";
1480
+ unclassified: "unclassified";
1481
+ }>;
1482
+ }, z.core.$strict>]>;
1483
+ line: z.ZodNumber;
1484
+ }, z.core.$strict>;
1485
+ location: z.ZodObject<{
1486
+ kind: z.ZodLiteral<"line">;
1487
+ line: z.ZodNumber;
1488
+ column: z.ZodNullable<z.ZodNumber>;
1489
+ endLine: z.ZodNullable<z.ZodNumber>;
1490
+ }, z.core.$strict>;
1491
+ span: z.ZodOptional<z.ZodObject<{
1492
+ frame: z.ZodEnum<{
1493
+ "file-utf16": "file-utf16";
1494
+ "body-utf16": "body-utf16";
1495
+ }>;
1496
+ start: z.ZodNumber;
1497
+ end: z.ZodNumber;
1498
+ }, z.core.$strict>>;
1499
+ }, z.core.$strict>;
1500
+ provenance: z.ZodUnion<readonly [z.ZodObject<{
1501
+ state: z.ZodLiteral<"safe">;
1502
+ value: z.ZodObject<{
1503
+ pluginId: z.ZodString;
1504
+ origin: z.ZodEnum<{
1505
+ builtin: "builtin";
1506
+ contributed: "contributed";
1507
+ }>;
1508
+ confidence: z.ZodEnum<{
1509
+ high: "high";
1510
+ medium: "medium";
1511
+ low: "low";
1512
+ }>;
1513
+ recognition: z.ZodObject<{
1514
+ basis: z.ZodEnum<{
1515
+ explicit: "explicit";
1516
+ "text-url": "text-url";
1517
+ "existing-link": "existing-link";
1518
+ "git-remote": "git-remote";
1519
+ context: "context";
1520
+ }>;
1521
+ explanation: z.ZodString;
1522
+ evidence: z.ZodOptional<z.ZodObject<{
1523
+ span: z.ZodOptional<z.ZodObject<{
1524
+ start: z.ZodNumber;
1525
+ end: z.ZodNumber;
1526
+ }, z.core.$strict>>;
1527
+ link: z.ZodOptional<z.ZodNumber>;
1528
+ remote: z.ZodOptional<z.ZodString>;
1529
+ }, z.core.$strict>>;
1530
+ }, z.core.$strict>;
1531
+ source: z.ZodObject<{
1532
+ provider: z.ZodString;
1533
+ id: z.ZodString;
1534
+ kind: z.ZodOptional<z.ZodString>;
1535
+ }, z.core.$strict>;
1536
+ authoredHref: z.ZodOptional<z.ZodString>;
1537
+ verifiedFile: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1538
+ kind: z.ZodLiteral<"workspace">;
1539
+ environmentId: z.ZodString;
1540
+ path: z.ZodString;
1541
+ }, z.core.$strict>, z.ZodObject<{
1542
+ kind: z.ZodLiteral<"thread-storage">;
1543
+ threadId: z.ZodString;
1544
+ path: z.ZodString;
1545
+ }, z.core.$strict>], "kind">>;
1546
+ }, z.core.$strict>;
1547
+ }, z.core.$strict>, z.ZodObject<{
1548
+ state: z.ZodLiteral<"withheld">;
1549
+ digest: z.ZodString;
1550
+ display: z.ZodLiteral<"Recognition details withheld">;
1551
+ cause: z.ZodEnum<{
1552
+ policy: "policy";
1553
+ unclassified: "unclassified";
1554
+ }>;
1555
+ summary: z.ZodObject<{
1556
+ pluginId: z.ZodString;
1557
+ origin: z.ZodEnum<{
1558
+ builtin: "builtin";
1559
+ contributed: "contributed";
1560
+ }>;
1561
+ confidence: z.ZodEnum<{
1562
+ high: "high";
1563
+ medium: "medium";
1564
+ low: "low";
1565
+ }>;
1566
+ basis: z.ZodEnum<{
1567
+ explicit: "explicit";
1568
+ "text-url": "text-url";
1569
+ "existing-link": "existing-link";
1570
+ "git-remote": "git-remote";
1571
+ context: "context";
1572
+ }>;
1573
+ }, z.core.$strict>;
1574
+ }, z.core.$strict>]>;
1575
+ authoredUrl: z.ZodUnion<readonly [z.ZodObject<{
1576
+ state: z.ZodLiteral<"exact">;
1577
+ href: z.ZodString;
1578
+ }, z.core.$strict>, z.ZodObject<{
1579
+ state: z.ZodLiteral<"not-url">;
1580
+ }, z.core.$strict>, z.ZodObject<{
1581
+ state: z.ZodLiteral<"unknown">;
1582
+ }, z.core.$strict>, z.ZodObject<{
1583
+ state: z.ZodLiteral<"withheld">;
1584
+ digest: z.ZodString;
1585
+ display: z.ZodLiteral<"Destination withheld">;
1586
+ cause: z.ZodEnum<{
1587
+ policy: "policy";
1588
+ unclassified: "unclassified";
1589
+ }>;
1590
+ }, z.core.$strict>]>;
1591
+ }, z.core.$strict>>;
1592
+ }, z.core.$strict>;
1593
+ evidenceDigest: z.ZodString;
1594
+ }, z.core.$strict>;
1595
+ readonly output: z.ZodObject<{
1596
+ version: z.ZodLiteral<1>;
1597
+ outcome: z.ZodEnum<{
1598
+ applied: "applied";
1599
+ duplicate: "duplicate";
1600
+ equal: "equal";
1601
+ stale: "stale";
1602
+ conflict: "conflict";
1603
+ "cas-mismatch": "cas-mismatch";
1604
+ }>;
1605
+ currentRevision: z.ZodNumber;
1606
+ currentDigest: z.ZodNullable<z.ZodString>;
1607
+ evidenceDisposition: z.ZodEnum<{
1608
+ conflict: "conflict";
1609
+ installed: "installed";
1610
+ replayed: "replayed";
1611
+ "not-applied": "not-applied";
1612
+ }>;
1613
+ state: z.ZodObject<{
1614
+ version: z.ZodLiteral<1>;
1615
+ projection: z.ZodNullable<z.ZodObject<{
1616
+ producerPluginId: z.ZodString;
1617
+ source: z.ZodObject<{
1618
+ provider: z.ZodString;
1619
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1620
+ presentation: z.ZodObject<{
1621
+ label: z.ZodString;
1622
+ detail: z.ZodOptional<z.ZodString>;
1623
+ url: z.ZodOptional<z.ZodString>;
1624
+ }, z.core.$loose>;
1625
+ }, z.core.$loose>;
1626
+ revision: z.ZodNumber;
1627
+ mutationId: z.ZodString;
1628
+ payloadDigest: z.ZodString;
1629
+ tombstone: z.ZodBoolean;
1630
+ targets: z.ZodArray<z.ZodObject<{
1631
+ provider: z.ZodString;
1632
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1633
+ presentation: z.ZodObject<{
1634
+ label: z.ZodString;
1635
+ detail: z.ZodOptional<z.ZodString>;
1636
+ url: z.ZodOptional<z.ZodString>;
1637
+ }, z.core.$loose>;
1638
+ }, z.core.$loose>>;
1639
+ }, z.core.$loose>>;
1640
+ evidence: z.ZodNullable<z.ZodObject<{
1641
+ kind: z.ZodLiteral<"thread-brief">;
1642
+ graphRevision: z.ZodNumber;
1643
+ graphPayloadDigest: z.ZodString;
1644
+ evidenceDigest: z.ZodString;
1645
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
1646
+ state: z.ZodEnum<{
1647
+ bound: "bound";
1648
+ unconfirmed: "unconfirmed";
1649
+ }>;
1650
+ sourceState: z.ZodEnum<{
1651
+ present: "present";
1652
+ absent: "absent";
1653
+ empty: "empty";
1654
+ }>;
1655
+ occurrenceCount: z.ZodNumber;
1656
+ }, z.core.$loose>>;
1657
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1658
+ state: z.ZodLiteral<"over-limit">;
1659
+ sourceContentRevision: z.ZodString;
1660
+ limits: z.ZodArray<z.ZodEnum<{
1661
+ "target-count": "target-count";
1662
+ "projection-bytes": "projection-bytes";
1663
+ "occurrence-count": "occurrence-count";
1664
+ "per-target-occurrences": "per-target-occurrences";
1665
+ "heading-bytes": "heading-bytes";
1666
+ "envelope-bytes": "envelope-bytes";
1667
+ "presentation-label-bytes": "presentation-label-bytes";
1668
+ "presentation-detail-bytes": "presentation-detail-bytes";
1669
+ "presentation-url-bytes": "presentation-url-bytes";
1670
+ "presentation-bytes": "presentation-bytes";
1671
+ }>>;
1672
+ attemptRevision: z.ZodNumber;
1673
+ statusDigest: z.ZodString;
1674
+ sourceFile: z.ZodObject<{
1675
+ kind: z.ZodLiteral<"thread-storage">;
1676
+ threadId: z.ZodString;
1677
+ path: z.ZodLiteral<"BRIEF.md">;
1678
+ }, z.core.$loose>;
1679
+ applicability: z.ZodEnum<{
1680
+ current: "current";
1681
+ "superseded-by-graph": "superseded-by-graph";
1682
+ }>;
1683
+ }, z.core.$loose>, z.ZodObject<{
1684
+ state: z.ZodLiteral<"identity-unrepresentable">;
1685
+ sourceContentRevision: z.ZodString;
1686
+ identityReasons: z.ZodArray<z.ZodEnum<{
1687
+ "unsafe-required-identity": "unsafe-required-identity";
1688
+ "unsupported-required-codec": "unsupported-required-codec";
1689
+ "required-identity-bound": "required-identity-bound";
1690
+ }>>;
1691
+ limits: z.ZodArray<z.ZodEnum<{
1692
+ "target-count": "target-count";
1693
+ "projection-bytes": "projection-bytes";
1694
+ "occurrence-count": "occurrence-count";
1695
+ "per-target-occurrences": "per-target-occurrences";
1696
+ "heading-bytes": "heading-bytes";
1697
+ "envelope-bytes": "envelope-bytes";
1698
+ "presentation-label-bytes": "presentation-label-bytes";
1699
+ "presentation-detail-bytes": "presentation-detail-bytes";
1700
+ "presentation-url-bytes": "presentation-url-bytes";
1701
+ "presentation-bytes": "presentation-bytes";
1702
+ }>>;
1703
+ attemptRevision: z.ZodNumber;
1704
+ statusDigest: z.ZodString;
1705
+ sourceFile: z.ZodObject<{
1706
+ kind: z.ZodLiteral<"thread-storage">;
1707
+ threadId: z.ZodString;
1708
+ path: z.ZodLiteral<"BRIEF.md">;
1709
+ }, z.core.$loose>;
1710
+ applicability: z.ZodEnum<{
1711
+ current: "current";
1712
+ "superseded-by-graph": "superseded-by-graph";
1713
+ }>;
1714
+ }, z.core.$loose>]>>;
1715
+ revisionHighWater: z.ZodNumber;
1716
+ }, z.core.$loose>;
1717
+ }, z.core.$loose>;
1718
+ };
1719
+ readonly crossReferencesProducerV1ReportStatus: {
1720
+ readonly input: z.ZodObject<{
1721
+ version: z.ZodLiteral<1>;
1722
+ producerPluginId: z.ZodLiteral<"thread-brief">;
1723
+ source: z.ZodObject<{
1724
+ provider: z.ZodString;
1725
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1726
+ }, z.core.$strict>;
1727
+ sourceFile: z.ZodObject<{
1728
+ kind: z.ZodLiteral<"thread-storage">;
1729
+ threadId: z.ZodString;
1730
+ path: z.ZodLiteral<"BRIEF.md">;
1731
+ }, z.core.$strict>;
1732
+ attemptRevision: z.ZodNumber;
1733
+ expectedRevision: z.ZodNumber;
1734
+ statusDigest: z.ZodString;
1735
+ status: z.ZodDiscriminatedUnion<[z.ZodObject<{
1736
+ state: z.ZodLiteral<"over-limit">;
1737
+ sourceContentRevision: z.ZodString;
1738
+ limits: z.ZodArray<z.ZodEnum<{
1739
+ "target-count": "target-count";
1740
+ "projection-bytes": "projection-bytes";
1741
+ "occurrence-count": "occurrence-count";
1742
+ "per-target-occurrences": "per-target-occurrences";
1743
+ "heading-bytes": "heading-bytes";
1744
+ "envelope-bytes": "envelope-bytes";
1745
+ "presentation-label-bytes": "presentation-label-bytes";
1746
+ "presentation-detail-bytes": "presentation-detail-bytes";
1747
+ "presentation-url-bytes": "presentation-url-bytes";
1748
+ "presentation-bytes": "presentation-bytes";
1749
+ }>>;
1750
+ }, z.core.$strict>, z.ZodObject<{
1751
+ state: z.ZodLiteral<"identity-unrepresentable">;
1752
+ sourceContentRevision: z.ZodString;
1753
+ identityReasons: z.ZodArray<z.ZodEnum<{
1754
+ "unsafe-required-identity": "unsafe-required-identity";
1755
+ "unsupported-required-codec": "unsupported-required-codec";
1756
+ "required-identity-bound": "required-identity-bound";
1757
+ }>>;
1758
+ limits: z.ZodArray<z.ZodEnum<{
1759
+ "target-count": "target-count";
1760
+ "projection-bytes": "projection-bytes";
1761
+ "occurrence-count": "occurrence-count";
1762
+ "per-target-occurrences": "per-target-occurrences";
1763
+ "heading-bytes": "heading-bytes";
1764
+ "envelope-bytes": "envelope-bytes";
1765
+ "presentation-label-bytes": "presentation-label-bytes";
1766
+ "presentation-detail-bytes": "presentation-detail-bytes";
1767
+ "presentation-url-bytes": "presentation-url-bytes";
1768
+ "presentation-bytes": "presentation-bytes";
1769
+ }>>;
1770
+ }, z.core.$strict>], "state">;
1771
+ }, z.core.$strict>;
1772
+ readonly output: z.ZodObject<{
1773
+ version: z.ZodLiteral<1>;
1774
+ outcome: z.ZodEnum<{
1775
+ duplicate: "duplicate";
1776
+ stale: "stale";
1777
+ conflict: "conflict";
1778
+ "cas-mismatch": "cas-mismatch";
1779
+ recorded: "recorded";
1780
+ }>;
1781
+ state: z.ZodObject<{
1782
+ version: z.ZodLiteral<1>;
1783
+ projection: z.ZodNullable<z.ZodObject<{
1784
+ producerPluginId: z.ZodString;
1785
+ source: z.ZodObject<{
1786
+ provider: z.ZodString;
1787
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1788
+ presentation: z.ZodObject<{
1789
+ label: z.ZodString;
1790
+ detail: z.ZodOptional<z.ZodString>;
1791
+ url: z.ZodOptional<z.ZodString>;
1792
+ }, z.core.$loose>;
1793
+ }, z.core.$loose>;
1794
+ revision: z.ZodNumber;
1795
+ mutationId: z.ZodString;
1796
+ payloadDigest: z.ZodString;
1797
+ tombstone: z.ZodBoolean;
1798
+ targets: z.ZodArray<z.ZodObject<{
1799
+ provider: z.ZodString;
1800
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1801
+ presentation: z.ZodObject<{
1802
+ label: z.ZodString;
1803
+ detail: z.ZodOptional<z.ZodString>;
1804
+ url: z.ZodOptional<z.ZodString>;
1805
+ }, z.core.$loose>;
1806
+ }, z.core.$loose>>;
1807
+ }, z.core.$loose>>;
1808
+ evidence: z.ZodNullable<z.ZodObject<{
1809
+ kind: z.ZodLiteral<"thread-brief">;
1810
+ graphRevision: z.ZodNumber;
1811
+ graphPayloadDigest: z.ZodString;
1812
+ evidenceDigest: z.ZodString;
1813
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
1814
+ state: z.ZodEnum<{
1815
+ bound: "bound";
1816
+ unconfirmed: "unconfirmed";
1817
+ }>;
1818
+ sourceState: z.ZodEnum<{
1819
+ present: "present";
1820
+ absent: "absent";
1821
+ empty: "empty";
1822
+ }>;
1823
+ occurrenceCount: z.ZodNumber;
1824
+ }, z.core.$loose>>;
1825
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1826
+ state: z.ZodLiteral<"over-limit">;
1827
+ sourceContentRevision: z.ZodString;
1828
+ limits: z.ZodArray<z.ZodEnum<{
1829
+ "target-count": "target-count";
1830
+ "projection-bytes": "projection-bytes";
1831
+ "occurrence-count": "occurrence-count";
1832
+ "per-target-occurrences": "per-target-occurrences";
1833
+ "heading-bytes": "heading-bytes";
1834
+ "envelope-bytes": "envelope-bytes";
1835
+ "presentation-label-bytes": "presentation-label-bytes";
1836
+ "presentation-detail-bytes": "presentation-detail-bytes";
1837
+ "presentation-url-bytes": "presentation-url-bytes";
1838
+ "presentation-bytes": "presentation-bytes";
1839
+ }>>;
1840
+ attemptRevision: z.ZodNumber;
1841
+ statusDigest: z.ZodString;
1842
+ sourceFile: z.ZodObject<{
1843
+ kind: z.ZodLiteral<"thread-storage">;
1844
+ threadId: z.ZodString;
1845
+ path: z.ZodLiteral<"BRIEF.md">;
1846
+ }, z.core.$loose>;
1847
+ applicability: z.ZodEnum<{
1848
+ current: "current";
1849
+ "superseded-by-graph": "superseded-by-graph";
1850
+ }>;
1851
+ }, z.core.$loose>, z.ZodObject<{
1852
+ state: z.ZodLiteral<"identity-unrepresentable">;
1853
+ sourceContentRevision: z.ZodString;
1854
+ identityReasons: z.ZodArray<z.ZodEnum<{
1855
+ "unsafe-required-identity": "unsafe-required-identity";
1856
+ "unsupported-required-codec": "unsupported-required-codec";
1857
+ "required-identity-bound": "required-identity-bound";
1858
+ }>>;
1859
+ limits: z.ZodArray<z.ZodEnum<{
1860
+ "target-count": "target-count";
1861
+ "projection-bytes": "projection-bytes";
1862
+ "occurrence-count": "occurrence-count";
1863
+ "per-target-occurrences": "per-target-occurrences";
1864
+ "heading-bytes": "heading-bytes";
1865
+ "envelope-bytes": "envelope-bytes";
1866
+ "presentation-label-bytes": "presentation-label-bytes";
1867
+ "presentation-detail-bytes": "presentation-detail-bytes";
1868
+ "presentation-url-bytes": "presentation-url-bytes";
1869
+ "presentation-bytes": "presentation-bytes";
1870
+ }>>;
1871
+ attemptRevision: z.ZodNumber;
1872
+ statusDigest: z.ZodString;
1873
+ sourceFile: z.ZodObject<{
1874
+ kind: z.ZodLiteral<"thread-storage">;
1875
+ threadId: z.ZodString;
1876
+ path: z.ZodLiteral<"BRIEF.md">;
1877
+ }, z.core.$loose>;
1878
+ applicability: z.ZodEnum<{
1879
+ current: "current";
1880
+ "superseded-by-graph": "superseded-by-graph";
1881
+ }>;
1882
+ }, z.core.$loose>]>>;
1883
+ revisionHighWater: z.ZodNumber;
1884
+ }, z.core.$loose>;
1885
+ }, z.core.$loose>;
1886
+ };
1887
+ };
1888
+ export type ProducerApplyInput = {
1889
+ version: 1;
1890
+ projection: ApplyProjectionInput;
1891
+ evidence: BriefEvidenceV1;
1892
+ evidenceDigest: string;
1893
+ };
1894
+ export type ProducerApplyOutput = {
1895
+ version: 1;
1896
+ outcome: 'applied' | 'duplicate' | 'equal' | 'stale' | 'conflict' | 'cas-mismatch';
1897
+ currentRevision: number;
1898
+ currentDigest: string | null;
1899
+ evidenceDisposition: 'installed' | 'replayed' | 'conflict' | 'not-applied';
1900
+ state: ProducerState;
1901
+ };
1902
+ export type ProducerReportStatusOutput = {
1903
+ version: 1;
1904
+ outcome: 'recorded' | 'duplicate' | 'stale' | 'conflict' | 'cas-mismatch';
1905
+ state: ProducerState;
1906
+ };
1907
+ export declare const briefNavigationInputSchema: z.ZodObject<{
1908
+ version: z.ZodLiteral<1>;
1909
+ sourceFile: z.ZodObject<{
1910
+ kind: z.ZodLiteral<"thread-storage">;
1911
+ threadId: z.ZodString;
1912
+ path: z.ZodLiteral<"BRIEF.md">;
1913
+ }, z.core.$strict>;
1914
+ sourceContentRevision: z.ZodString;
1915
+ frame: z.ZodObject<{
1916
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
1917
+ rawBytes: z.ZodNumber;
1918
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
1919
+ fileUtf16Length: z.ZodNumber;
1920
+ bodyBase: z.ZodObject<{
1921
+ startUtf16: z.ZodNumber;
1922
+ startLine: z.ZodNumber;
1923
+ utf16Length: z.ZodNumber;
1924
+ }, z.core.$strict>;
1925
+ lineMapping: z.ZodObject<{
1926
+ codec: z.ZodLiteral<"native-file-lines-v1">;
1927
+ fileLineCount: z.ZodNumber;
1928
+ }, z.core.$strict>;
1929
+ }, z.core.$strict>;
1930
+ section: z.ZodObject<{
1931
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
1932
+ state: z.ZodLiteral<"named">;
1933
+ text: z.ZodString;
1934
+ }, z.core.$strict>, z.ZodObject<{
1935
+ state: z.ZodLiteral<"withheld">;
1936
+ digest: z.ZodString;
1937
+ display: z.ZodLiteral<"Heading withheld">;
1938
+ cause: z.ZodEnum<{
1939
+ policy: "policy";
1940
+ unclassified: "unclassified";
1941
+ }>;
1942
+ }, z.core.$strict>]>;
1943
+ originalLine: z.ZodNumber;
1944
+ }, z.core.$strict>;
1945
+ }, z.core.$strict>;
1946
+ export declare const briefNavigationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1947
+ version: z.ZodLiteral<1>;
1948
+ state: z.ZodLiteral<"ready">;
1949
+ sourceFile: z.ZodObject<{
1950
+ kind: z.ZodLiteral<"thread-storage">;
1951
+ threadId: z.ZodString;
1952
+ path: z.ZodLiteral<"BRIEF.md">;
1953
+ }, z.core.$loose>;
1954
+ sourceContentRevision: z.ZodString;
1955
+ location: z.ZodObject<{
1956
+ kind: z.ZodLiteral<"line">;
1957
+ line: z.ZodNumber;
1958
+ column: z.ZodNull;
1959
+ }, z.core.$loose>;
1960
+ proof: z.ZodObject<{
1961
+ kind: z.ZodLiteral<"accepted-revision-revalidated">;
1962
+ acceptedRevision: z.ZodString;
1963
+ selection: z.ZodLiteral<"same-revision">;
1964
+ frame: z.ZodObject<{
1965
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
1966
+ rawBytes: z.ZodNumber;
1967
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
1968
+ fileUtf16Length: z.ZodNumber;
1969
+ bodyBase: z.ZodObject<{
1970
+ startUtf16: z.ZodNumber;
1971
+ startLine: z.ZodNumber;
1972
+ utf16Length: z.ZodNumber;
1973
+ }, z.core.$loose>;
1974
+ lineMapping: z.ZodObject<{
1975
+ codec: z.ZodLiteral<"native-file-lines-v1">;
1976
+ fileLineCount: z.ZodNumber;
1977
+ }, z.core.$loose>;
1978
+ }, z.core.$loose>;
1979
+ }, z.core.$loose>;
1980
+ }, z.core.$loose>, z.ZodObject<{
1981
+ version: z.ZodLiteral<1>;
1982
+ state: z.ZodLiteral<"fallback">;
1983
+ sourceFile: z.ZodObject<{
1984
+ kind: z.ZodLiteral<"thread-storage">;
1985
+ threadId: z.ZodString;
1986
+ path: z.ZodLiteral<"BRIEF.md">;
1987
+ }, z.core.$loose>;
1988
+ location: z.ZodNull;
1989
+ reason: z.ZodEnum<{
1990
+ stale: "stale";
1991
+ "over-limit": "over-limit";
1992
+ "no-accepted-document": "no-accepted-document";
1993
+ ambiguous: "ambiguous";
1994
+ "heading-unavailable": "heading-unavailable";
1995
+ "source-unavailable": "source-unavailable";
1996
+ }>;
1997
+ }, z.core.$loose>], "state">;
1998
+ export declare const briefNavigationDescribeOutputSchema: z.ZodObject<{
1999
+ protocol: z.ZodLiteral<"thread-brief-navigation">;
2000
+ versions: z.ZodArray<z.ZodNumber>;
2001
+ }, z.core.$loose>;
2002
+ export declare const briefNavigationRpcSchemas: {
2003
+ readonly "threadBriefNavigation.describe": {
2004
+ readonly input: z.ZodNull;
2005
+ readonly output: z.ZodObject<{
2006
+ protocol: z.ZodLiteral<"thread-brief-navigation">;
2007
+ versions: z.ZodArray<z.ZodNumber>;
2008
+ }, z.core.$loose>;
2009
+ };
2010
+ readonly threadBriefNavigationV1ResolveHeading: {
2011
+ readonly input: z.ZodObject<{
2012
+ version: z.ZodLiteral<1>;
2013
+ sourceFile: z.ZodObject<{
2014
+ kind: z.ZodLiteral<"thread-storage">;
2015
+ threadId: z.ZodString;
2016
+ path: z.ZodLiteral<"BRIEF.md">;
2017
+ }, z.core.$strict>;
2018
+ sourceContentRevision: z.ZodString;
2019
+ frame: z.ZodObject<{
2020
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
2021
+ rawBytes: z.ZodNumber;
2022
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
2023
+ fileUtf16Length: z.ZodNumber;
2024
+ bodyBase: z.ZodObject<{
2025
+ startUtf16: z.ZodNumber;
2026
+ startLine: z.ZodNumber;
2027
+ utf16Length: z.ZodNumber;
2028
+ }, z.core.$strict>;
2029
+ lineMapping: z.ZodObject<{
2030
+ codec: z.ZodLiteral<"native-file-lines-v1">;
2031
+ fileLineCount: z.ZodNumber;
2032
+ }, z.core.$strict>;
2033
+ }, z.core.$strict>;
2034
+ section: z.ZodObject<{
2035
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
2036
+ state: z.ZodLiteral<"named">;
2037
+ text: z.ZodString;
2038
+ }, z.core.$strict>, z.ZodObject<{
2039
+ state: z.ZodLiteral<"withheld">;
2040
+ digest: z.ZodString;
2041
+ display: z.ZodLiteral<"Heading withheld">;
2042
+ cause: z.ZodEnum<{
2043
+ policy: "policy";
2044
+ unclassified: "unclassified";
2045
+ }>;
2046
+ }, z.core.$strict>]>;
2047
+ originalLine: z.ZodNumber;
2048
+ }, z.core.$strict>;
2049
+ }, z.core.$strict>;
2050
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
2051
+ version: z.ZodLiteral<1>;
2052
+ state: z.ZodLiteral<"ready">;
2053
+ sourceFile: z.ZodObject<{
2054
+ kind: z.ZodLiteral<"thread-storage">;
2055
+ threadId: z.ZodString;
2056
+ path: z.ZodLiteral<"BRIEF.md">;
2057
+ }, z.core.$loose>;
2058
+ sourceContentRevision: z.ZodString;
2059
+ location: z.ZodObject<{
2060
+ kind: z.ZodLiteral<"line">;
2061
+ line: z.ZodNumber;
2062
+ column: z.ZodNull;
2063
+ }, z.core.$loose>;
2064
+ proof: z.ZodObject<{
2065
+ kind: z.ZodLiteral<"accepted-revision-revalidated">;
2066
+ acceptedRevision: z.ZodString;
2067
+ selection: z.ZodLiteral<"same-revision">;
2068
+ frame: z.ZodObject<{
2069
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
2070
+ rawBytes: z.ZodNumber;
2071
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
2072
+ fileUtf16Length: z.ZodNumber;
2073
+ bodyBase: z.ZodObject<{
2074
+ startUtf16: z.ZodNumber;
2075
+ startLine: z.ZodNumber;
2076
+ utf16Length: z.ZodNumber;
2077
+ }, z.core.$loose>;
2078
+ lineMapping: z.ZodObject<{
2079
+ codec: z.ZodLiteral<"native-file-lines-v1">;
2080
+ fileLineCount: z.ZodNumber;
2081
+ }, z.core.$loose>;
2082
+ }, z.core.$loose>;
2083
+ }, z.core.$loose>;
2084
+ }, z.core.$loose>, z.ZodObject<{
2085
+ version: z.ZodLiteral<1>;
2086
+ state: z.ZodLiteral<"fallback">;
2087
+ sourceFile: z.ZodObject<{
2088
+ kind: z.ZodLiteral<"thread-storage">;
2089
+ threadId: z.ZodString;
2090
+ path: z.ZodLiteral<"BRIEF.md">;
2091
+ }, z.core.$loose>;
2092
+ location: z.ZodNull;
2093
+ reason: z.ZodEnum<{
2094
+ stale: "stale";
2095
+ "over-limit": "over-limit";
2096
+ "no-accepted-document": "no-accepted-document";
2097
+ ambiguous: "ambiguous";
2098
+ "heading-unavailable": "heading-unavailable";
2099
+ "source-unavailable": "source-unavailable";
2100
+ }>;
2101
+ }, z.core.$loose>], "state">;
2102
+ };
2103
+ };
2104
+ export type BriefNavigationInput = z.infer<typeof briefNavigationInputSchema>;
2105
+ export type BriefNavigationOutput = z.infer<typeof briefNavigationOutputSchema>;
2106
+ export declare const briefHeadingOutputSchema: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
2107
+ state: z.ZodLiteral<"named">;
2108
+ text: z.ZodString;
2109
+ }, z.core.$loose>, z.ZodObject<{
2110
+ state: z.ZodLiteral<"withheld">;
2111
+ digest: z.ZodString;
2112
+ display: z.ZodLiteral<"Heading withheld">;
2113
+ cause: z.ZodEnum<{
2114
+ policy: "policy";
2115
+ unclassified: "unclassified";
2116
+ }>;
2117
+ }, z.core.$loose>]>;
2118
+ export declare const briefFileOutputSchema: z.ZodObject<{
2119
+ kind: z.ZodLiteral<"thread-storage">;
2120
+ threadId: z.ZodString;
2121
+ path: z.ZodLiteral<"BRIEF.md">;
2122
+ }, z.core.$loose>;
2123
+ export declare const briefFrameOutputSchema: z.ZodObject<{
2124
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
2125
+ rawBytes: z.ZodNumber;
2126
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
2127
+ fileUtf16Length: z.ZodNumber;
2128
+ bodyBase: z.ZodObject<{
2129
+ startUtf16: z.ZodNumber;
2130
+ startLine: z.ZodNumber;
2131
+ utf16Length: z.ZodNumber;
2132
+ }, z.core.$loose>;
2133
+ lineMapping: z.ZodObject<{
2134
+ codec: z.ZodLiteral<"native-file-lines-v1">;
2135
+ fileLineCount: z.ZodNumber;
2136
+ }, z.core.$loose>;
2137
+ }, z.core.$loose>;
2138
+ export declare const briefLocatorOutputSchema: z.ZodObject<{
2139
+ kind: z.ZodLiteral<"thread-brief">;
2140
+ threadId: z.ZodString;
2141
+ sourceContentRevision: z.ZodString;
2142
+ file: z.ZodObject<{
2143
+ kind: z.ZodLiteral<"thread-storage">;
2144
+ threadId: z.ZodString;
2145
+ path: z.ZodLiteral<"BRIEF.md">;
2146
+ }, z.core.$loose>;
2147
+ section: z.ZodObject<{
2148
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
2149
+ state: z.ZodLiteral<"named">;
2150
+ text: z.ZodString;
2151
+ }, z.core.$loose>, z.ZodObject<{
2152
+ state: z.ZodLiteral<"withheld">;
2153
+ digest: z.ZodString;
2154
+ display: z.ZodLiteral<"Heading withheld">;
2155
+ cause: z.ZodEnum<{
2156
+ policy: "policy";
2157
+ unclassified: "unclassified";
2158
+ }>;
2159
+ }, z.core.$loose>]>;
2160
+ line: z.ZodNumber;
2161
+ }, z.core.$loose>;
2162
+ location: z.ZodObject<{
2163
+ kind: z.ZodLiteral<"line">;
2164
+ line: z.ZodNumber;
2165
+ column: z.ZodNullable<z.ZodNumber>;
2166
+ endLine: z.ZodNullable<z.ZodNumber>;
2167
+ }, z.core.$loose>;
2168
+ span: z.ZodOptional<z.ZodObject<{
2169
+ frame: z.ZodEnum<{
2170
+ "file-utf16": "file-utf16";
2171
+ "body-utf16": "body-utf16";
2172
+ }>;
2173
+ start: z.ZodNumber;
2174
+ end: z.ZodNumber;
2175
+ }, z.core.$loose>>;
2176
+ }, z.core.$loose>;
2177
+ export declare const briefProvenanceOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
2178
+ state: z.ZodLiteral<"safe">;
2179
+ value: z.ZodObject<{
2180
+ pluginId: z.ZodString;
2181
+ origin: z.ZodEnum<{
2182
+ builtin: "builtin";
2183
+ contributed: "contributed";
2184
+ }>;
2185
+ confidence: z.ZodEnum<{
2186
+ high: "high";
2187
+ medium: "medium";
2188
+ low: "low";
2189
+ }>;
2190
+ authoredHref: z.ZodOptional<z.ZodString>;
2191
+ source: z.ZodObject<{
2192
+ provider: z.ZodString;
2193
+ id: z.ZodString;
2194
+ kind: z.ZodOptional<z.ZodString>;
2195
+ }, z.core.$loose>;
2196
+ verifiedFile: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2197
+ kind: z.ZodLiteral<"workspace">;
2198
+ environmentId: z.ZodString;
2199
+ path: z.ZodString;
2200
+ }, z.core.$loose>, z.ZodObject<{
2201
+ kind: z.ZodLiteral<"thread-storage">;
2202
+ threadId: z.ZodString;
2203
+ path: z.ZodString;
2204
+ }, z.core.$loose>]>>;
2205
+ recognition: z.ZodObject<{
2206
+ basis: z.ZodEnum<{
2207
+ explicit: "explicit";
2208
+ "text-url": "text-url";
2209
+ "existing-link": "existing-link";
2210
+ "git-remote": "git-remote";
2211
+ context: "context";
2212
+ }>;
2213
+ explanation: z.ZodString;
2214
+ evidence: z.ZodOptional<z.ZodObject<{
2215
+ link: z.ZodOptional<z.ZodNumber>;
2216
+ remote: z.ZodOptional<z.ZodString>;
2217
+ span: z.ZodOptional<z.ZodObject<{
2218
+ start: z.ZodNumber;
2219
+ end: z.ZodNumber;
2220
+ }, z.core.$loose>>;
2221
+ }, z.core.$loose>>;
2222
+ }, z.core.$loose>;
2223
+ }, z.core.$loose>;
2224
+ }, z.core.$loose>, z.ZodObject<{
2225
+ state: z.ZodLiteral<"withheld">;
2226
+ digest: z.ZodString;
2227
+ display: z.ZodLiteral<"Recognition details withheld">;
2228
+ cause: z.ZodEnum<{
2229
+ policy: "policy";
2230
+ unclassified: "unclassified";
2231
+ }>;
2232
+ summary: z.ZodObject<{
2233
+ pluginId: z.ZodString;
2234
+ origin: z.ZodEnum<{
2235
+ builtin: "builtin";
2236
+ contributed: "contributed";
2237
+ }>;
2238
+ confidence: z.ZodEnum<{
2239
+ high: "high";
2240
+ medium: "medium";
2241
+ low: "low";
2242
+ }>;
2243
+ basis: z.ZodEnum<{
2244
+ explicit: "explicit";
2245
+ "text-url": "text-url";
2246
+ "existing-link": "existing-link";
2247
+ "git-remote": "git-remote";
2248
+ context: "context";
2249
+ }>;
2250
+ }, z.core.$loose>;
2251
+ }, z.core.$loose>]>;
2252
+ export declare const briefAuthoredUrlOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
2253
+ state: z.ZodLiteral<"exact">;
2254
+ href: z.ZodString;
2255
+ }, z.core.$loose>, z.ZodObject<{
2256
+ state: z.ZodLiteral<"not-url">;
2257
+ }, z.core.$loose>, z.ZodObject<{
2258
+ state: z.ZodLiteral<"unknown">;
2259
+ }, z.core.$loose>, z.ZodObject<{
2260
+ state: z.ZodLiteral<"withheld">;
2261
+ digest: z.ZodString;
2262
+ display: z.ZodLiteral<"Destination withheld">;
2263
+ cause: z.ZodEnum<{
2264
+ policy: "policy";
2265
+ unclassified: "unclassified";
2266
+ }>;
2267
+ }, z.core.$loose>]>;
2268
+ /** Verify only the public fresh-proof contract; never claims to read the file. */
2269
+ export declare function validateBriefNavigationResultV1(input: BriefNavigationInput, raw: unknown): BriefNavigationOutput;
2270
+ export {};