@phosphorco/bb-cross-references 0.3.0 → 0.4.1

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.
@@ -140,6 +140,182 @@ export declare const locatorOutputV2Schema: z.ZodObject<{
140
140
  }, z.core.$loose>;
141
141
  /** Future item/locator/excerpt enums occupy a slot; malformed known items still reject. */
142
142
  export declare const mentionItemV2Schema: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
143
+ [x: string]: unknown;
144
+ kind: "brief-occurrence";
145
+ evidenceRevision: number;
146
+ occurrenceKey: string;
147
+ sourceOccurrenceId: string;
148
+ locator: {
149
+ [x: string]: unknown;
150
+ kind: "thread-brief";
151
+ threadId: string;
152
+ sourceContentRevision: string;
153
+ file: {
154
+ [x: string]: unknown;
155
+ kind: "thread-storage";
156
+ threadId: string;
157
+ path: "BRIEF.md";
158
+ };
159
+ section: {
160
+ [x: string]: unknown;
161
+ heading: {
162
+ [x: string]: unknown;
163
+ state: "named";
164
+ text: string;
165
+ } | {
166
+ [x: string]: unknown;
167
+ state: "withheld";
168
+ digest: string;
169
+ display: "Heading withheld";
170
+ cause: "policy" | "unclassified";
171
+ } | null;
172
+ line: number;
173
+ };
174
+ location: {
175
+ [x: string]: unknown;
176
+ kind: "line";
177
+ line: number;
178
+ column: number | null;
179
+ endLine: number | null;
180
+ };
181
+ span?: {
182
+ [x: string]: unknown;
183
+ frame: "file-utf16" | "body-utf16";
184
+ start: number;
185
+ end: number;
186
+ } | undefined;
187
+ };
188
+ sourceContentRevision: string;
189
+ frame: {
190
+ [x: string]: unknown;
191
+ codec: "utf8-fatal-bom-consumed-v1";
192
+ rawBytes: number;
193
+ bomBytes: 0 | 3;
194
+ fileUtf16Length: number;
195
+ bodyBase: {
196
+ [x: string]: unknown;
197
+ startUtf16: number;
198
+ startLine: number;
199
+ utf16Length: number;
200
+ };
201
+ lineMapping: {
202
+ [x: string]: unknown;
203
+ codec: "native-file-lines-v1";
204
+ fileLineCount: number;
205
+ };
206
+ };
207
+ excerpt: {
208
+ [x: string]: unknown;
209
+ state: "unavailable";
210
+ reason: "not-materialized";
211
+ codecVersion: 1;
212
+ };
213
+ provenance: {
214
+ [x: string]: unknown;
215
+ state: "safe";
216
+ value: {
217
+ [x: string]: unknown;
218
+ pluginId: string;
219
+ origin: "builtin" | "contributed";
220
+ confidence: "high" | "medium" | "low";
221
+ source: {
222
+ [x: string]: unknown;
223
+ provider: string;
224
+ id: string;
225
+ kind?: string | undefined;
226
+ };
227
+ recognition: {
228
+ [x: string]: unknown;
229
+ basis: "explicit" | "text-url" | "existing-link" | "git-remote" | "context";
230
+ explanation: string;
231
+ evidence?: {
232
+ [x: string]: unknown;
233
+ link?: number | undefined;
234
+ remote?: string | undefined;
235
+ span?: {
236
+ [x: string]: unknown;
237
+ start: number;
238
+ end: number;
239
+ } | undefined;
240
+ } | undefined;
241
+ };
242
+ authoredHref?: string | undefined;
243
+ verifiedFile?: {
244
+ [x: string]: unknown;
245
+ kind: "workspace";
246
+ environmentId: string;
247
+ path: string;
248
+ } | {
249
+ [x: string]: unknown;
250
+ kind: "thread-storage";
251
+ threadId: string;
252
+ path: string;
253
+ } | undefined;
254
+ };
255
+ } | {
256
+ [x: string]: unknown;
257
+ state: "withheld";
258
+ digest: string;
259
+ display: "Recognition details withheld";
260
+ cause: "policy" | "unclassified";
261
+ summary: {
262
+ [x: string]: unknown;
263
+ pluginId: string;
264
+ origin: "builtin" | "contributed";
265
+ confidence: "high" | "medium" | "low";
266
+ basis: "explicit" | "text-url" | "existing-link" | "git-remote" | "context";
267
+ };
268
+ };
269
+ authoredUrl: {
270
+ [x: string]: unknown;
271
+ state: "exact";
272
+ href: string;
273
+ } | {
274
+ [x: string]: unknown;
275
+ state: "not-url";
276
+ } | {
277
+ [x: string]: unknown;
278
+ state: "unknown";
279
+ } | {
280
+ [x: string]: unknown;
281
+ state: "withheld";
282
+ digest: string;
283
+ display: "Destination withheld";
284
+ cause: "policy" | "unclassified";
285
+ };
286
+ authoredUrlState: "unknown" | "withheld" | "exact" | "not-url";
287
+ confirmation: "producer-attested" | "retained-unconfirmed";
288
+ source: {
289
+ [x: string]: unknown;
290
+ presentation: {
291
+ [x: string]: unknown;
292
+ label: string;
293
+ url?: string | undefined;
294
+ detail?: string | undefined;
295
+ };
296
+ provider: string;
297
+ keys: Record<string, string>;
298
+ };
299
+ target: {
300
+ [x: string]: unknown;
301
+ presentation: {
302
+ [x: string]: unknown;
303
+ label: string;
304
+ url?: string | undefined;
305
+ detail?: string | undefined;
306
+ };
307
+ provider: string;
308
+ keys: Record<string, string>;
309
+ };
310
+ producerPluginId: string;
311
+ graphRevision: number;
312
+ cap: {
313
+ [x: string]: unknown;
314
+ state: "unknown" | "uncapped" | "capped";
315
+ limit: 100 | null;
316
+ sourceHistoryUnknown: boolean | null;
317
+ };
318
+ } | {
143
319
  [x: string]: unknown;
144
320
  kind: "occurrence";
145
321
  evidenceRevision: number;
@@ -186,7 +362,7 @@ export declare const mentionItemV2Schema: z.ZodPipe<z.ZodUnknown, z.ZodTransform
186
362
  };
187
363
  messageCreatedAt: number;
188
364
  observedAt: number;
189
- confirmation: "observed" | "retained-unconfirmed";
365
+ confirmation: "retained-unconfirmed" | "observed";
190
366
  provenance: {
191
367
  [x: string]: unknown;
192
368
  pluginId: string;
@@ -361,6 +537,182 @@ export declare const listMentionsOutputV2Schema: z.ZodDiscriminatedUnion<[z.ZodO
361
537
  status: z.ZodLiteral<"page">;
362
538
  snapshot: z.ZodString;
363
539
  items: z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
540
+ [x: string]: unknown;
541
+ kind: "brief-occurrence";
542
+ evidenceRevision: number;
543
+ occurrenceKey: string;
544
+ sourceOccurrenceId: string;
545
+ locator: {
546
+ [x: string]: unknown;
547
+ kind: "thread-brief";
548
+ threadId: string;
549
+ sourceContentRevision: string;
550
+ file: {
551
+ [x: string]: unknown;
552
+ kind: "thread-storage";
553
+ threadId: string;
554
+ path: "BRIEF.md";
555
+ };
556
+ section: {
557
+ [x: string]: unknown;
558
+ heading: {
559
+ [x: string]: unknown;
560
+ state: "named";
561
+ text: string;
562
+ } | {
563
+ [x: string]: unknown;
564
+ state: "withheld";
565
+ digest: string;
566
+ display: "Heading withheld";
567
+ cause: "policy" | "unclassified";
568
+ } | null;
569
+ line: number;
570
+ };
571
+ location: {
572
+ [x: string]: unknown;
573
+ kind: "line";
574
+ line: number;
575
+ column: number | null;
576
+ endLine: number | null;
577
+ };
578
+ span?: {
579
+ [x: string]: unknown;
580
+ frame: "file-utf16" | "body-utf16";
581
+ start: number;
582
+ end: number;
583
+ } | undefined;
584
+ };
585
+ sourceContentRevision: string;
586
+ frame: {
587
+ [x: string]: unknown;
588
+ codec: "utf8-fatal-bom-consumed-v1";
589
+ rawBytes: number;
590
+ bomBytes: 0 | 3;
591
+ fileUtf16Length: number;
592
+ bodyBase: {
593
+ [x: string]: unknown;
594
+ startUtf16: number;
595
+ startLine: number;
596
+ utf16Length: number;
597
+ };
598
+ lineMapping: {
599
+ [x: string]: unknown;
600
+ codec: "native-file-lines-v1";
601
+ fileLineCount: number;
602
+ };
603
+ };
604
+ excerpt: {
605
+ [x: string]: unknown;
606
+ state: "unavailable";
607
+ reason: "not-materialized";
608
+ codecVersion: 1;
609
+ };
610
+ provenance: {
611
+ [x: string]: unknown;
612
+ state: "safe";
613
+ value: {
614
+ [x: string]: unknown;
615
+ pluginId: string;
616
+ origin: "builtin" | "contributed";
617
+ confidence: "high" | "medium" | "low";
618
+ source: {
619
+ [x: string]: unknown;
620
+ provider: string;
621
+ id: string;
622
+ kind?: string | undefined;
623
+ };
624
+ recognition: {
625
+ [x: string]: unknown;
626
+ basis: "explicit" | "text-url" | "existing-link" | "git-remote" | "context";
627
+ explanation: string;
628
+ evidence?: {
629
+ [x: string]: unknown;
630
+ link?: number | undefined;
631
+ remote?: string | undefined;
632
+ span?: {
633
+ [x: string]: unknown;
634
+ start: number;
635
+ end: number;
636
+ } | undefined;
637
+ } | undefined;
638
+ };
639
+ authoredHref?: string | undefined;
640
+ verifiedFile?: {
641
+ [x: string]: unknown;
642
+ kind: "workspace";
643
+ environmentId: string;
644
+ path: string;
645
+ } | {
646
+ [x: string]: unknown;
647
+ kind: "thread-storage";
648
+ threadId: string;
649
+ path: string;
650
+ } | undefined;
651
+ };
652
+ } | {
653
+ [x: string]: unknown;
654
+ state: "withheld";
655
+ digest: string;
656
+ display: "Recognition details withheld";
657
+ cause: "policy" | "unclassified";
658
+ summary: {
659
+ [x: string]: unknown;
660
+ pluginId: string;
661
+ origin: "builtin" | "contributed";
662
+ confidence: "high" | "medium" | "low";
663
+ basis: "explicit" | "text-url" | "existing-link" | "git-remote" | "context";
664
+ };
665
+ };
666
+ authoredUrl: {
667
+ [x: string]: unknown;
668
+ state: "exact";
669
+ href: string;
670
+ } | {
671
+ [x: string]: unknown;
672
+ state: "not-url";
673
+ } | {
674
+ [x: string]: unknown;
675
+ state: "unknown";
676
+ } | {
677
+ [x: string]: unknown;
678
+ state: "withheld";
679
+ digest: string;
680
+ display: "Destination withheld";
681
+ cause: "policy" | "unclassified";
682
+ };
683
+ authoredUrlState: "unknown" | "withheld" | "exact" | "not-url";
684
+ confirmation: "producer-attested" | "retained-unconfirmed";
685
+ source: {
686
+ [x: string]: unknown;
687
+ presentation: {
688
+ [x: string]: unknown;
689
+ label: string;
690
+ url?: string | undefined;
691
+ detail?: string | undefined;
692
+ };
693
+ provider: string;
694
+ keys: Record<string, string>;
695
+ };
696
+ target: {
697
+ [x: string]: unknown;
698
+ presentation: {
699
+ [x: string]: unknown;
700
+ label: string;
701
+ url?: string | undefined;
702
+ detail?: string | undefined;
703
+ };
704
+ provider: string;
705
+ keys: Record<string, string>;
706
+ };
707
+ producerPluginId: string;
708
+ graphRevision: number;
709
+ cap: {
710
+ [x: string]: unknown;
711
+ state: "unknown" | "uncapped" | "capped";
712
+ limit: 100 | null;
713
+ sourceHistoryUnknown: boolean | null;
714
+ };
715
+ } | {
364
716
  [x: string]: unknown;
365
717
  kind: "occurrence";
366
718
  evidenceRevision: number;
@@ -407,7 +759,7 @@ export declare const listMentionsOutputV2Schema: z.ZodDiscriminatedUnion<[z.ZodO
407
759
  };
408
760
  messageCreatedAt: number;
409
761
  observedAt: number;
410
- confirmation: "observed" | "retained-unconfirmed";
762
+ confirmation: "retained-unconfirmed" | "observed";
411
763
  provenance: {
412
764
  [x: string]: unknown;
413
765
  pluginId: string;
@@ -669,10 +1021,10 @@ export declare const resolveLookupInputV2Schema: z.ZodObject<{
669
1021
  export declare const resolveLookupOutputV2Schema: z.ZodObject<{
670
1022
  version: z.ZodLiteral<2>;
671
1023
  state: z.ZodEnum<{
1024
+ incomplete: "incomplete";
672
1025
  ready: "ready";
673
1026
  ambiguous: "ambiguous";
674
1027
  unrecognized: "unrecognized";
675
- incomplete: "incomplete";
676
1028
  }>;
677
1029
  options: z.ZodArray<z.ZodObject<{
678
1030
  query: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -735,6 +1087,182 @@ export declare const crossReferencesV2RpcSchemas: {
735
1087
  status: z.ZodLiteral<"page">;
736
1088
  snapshot: z.ZodString;
737
1089
  items: z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1090
+ [x: string]: unknown;
1091
+ kind: "brief-occurrence";
1092
+ evidenceRevision: number;
1093
+ occurrenceKey: string;
1094
+ sourceOccurrenceId: string;
1095
+ locator: {
1096
+ [x: string]: unknown;
1097
+ kind: "thread-brief";
1098
+ threadId: string;
1099
+ sourceContentRevision: string;
1100
+ file: {
1101
+ [x: string]: unknown;
1102
+ kind: "thread-storage";
1103
+ threadId: string;
1104
+ path: "BRIEF.md";
1105
+ };
1106
+ section: {
1107
+ [x: string]: unknown;
1108
+ heading: {
1109
+ [x: string]: unknown;
1110
+ state: "named";
1111
+ text: string;
1112
+ } | {
1113
+ [x: string]: unknown;
1114
+ state: "withheld";
1115
+ digest: string;
1116
+ display: "Heading withheld";
1117
+ cause: "policy" | "unclassified";
1118
+ } | null;
1119
+ line: number;
1120
+ };
1121
+ location: {
1122
+ [x: string]: unknown;
1123
+ kind: "line";
1124
+ line: number;
1125
+ column: number | null;
1126
+ endLine: number | null;
1127
+ };
1128
+ span?: {
1129
+ [x: string]: unknown;
1130
+ frame: "file-utf16" | "body-utf16";
1131
+ start: number;
1132
+ end: number;
1133
+ } | undefined;
1134
+ };
1135
+ sourceContentRevision: string;
1136
+ frame: {
1137
+ [x: string]: unknown;
1138
+ codec: "utf8-fatal-bom-consumed-v1";
1139
+ rawBytes: number;
1140
+ bomBytes: 0 | 3;
1141
+ fileUtf16Length: number;
1142
+ bodyBase: {
1143
+ [x: string]: unknown;
1144
+ startUtf16: number;
1145
+ startLine: number;
1146
+ utf16Length: number;
1147
+ };
1148
+ lineMapping: {
1149
+ [x: string]: unknown;
1150
+ codec: "native-file-lines-v1";
1151
+ fileLineCount: number;
1152
+ };
1153
+ };
1154
+ excerpt: {
1155
+ [x: string]: unknown;
1156
+ state: "unavailable";
1157
+ reason: "not-materialized";
1158
+ codecVersion: 1;
1159
+ };
1160
+ provenance: {
1161
+ [x: string]: unknown;
1162
+ state: "safe";
1163
+ value: {
1164
+ [x: string]: unknown;
1165
+ pluginId: string;
1166
+ origin: "builtin" | "contributed";
1167
+ confidence: "high" | "medium" | "low";
1168
+ source: {
1169
+ [x: string]: unknown;
1170
+ provider: string;
1171
+ id: string;
1172
+ kind?: string | undefined;
1173
+ };
1174
+ recognition: {
1175
+ [x: string]: unknown;
1176
+ basis: "explicit" | "text-url" | "existing-link" | "git-remote" | "context";
1177
+ explanation: string;
1178
+ evidence?: {
1179
+ [x: string]: unknown;
1180
+ link?: number | undefined;
1181
+ remote?: string | undefined;
1182
+ span?: {
1183
+ [x: string]: unknown;
1184
+ start: number;
1185
+ end: number;
1186
+ } | undefined;
1187
+ } | undefined;
1188
+ };
1189
+ authoredHref?: string | undefined;
1190
+ verifiedFile?: {
1191
+ [x: string]: unknown;
1192
+ kind: "workspace";
1193
+ environmentId: string;
1194
+ path: string;
1195
+ } | {
1196
+ [x: string]: unknown;
1197
+ kind: "thread-storage";
1198
+ threadId: string;
1199
+ path: string;
1200
+ } | undefined;
1201
+ };
1202
+ } | {
1203
+ [x: string]: unknown;
1204
+ state: "withheld";
1205
+ digest: string;
1206
+ display: "Recognition details withheld";
1207
+ cause: "policy" | "unclassified";
1208
+ summary: {
1209
+ [x: string]: unknown;
1210
+ pluginId: string;
1211
+ origin: "builtin" | "contributed";
1212
+ confidence: "high" | "medium" | "low";
1213
+ basis: "explicit" | "text-url" | "existing-link" | "git-remote" | "context";
1214
+ };
1215
+ };
1216
+ authoredUrl: {
1217
+ [x: string]: unknown;
1218
+ state: "exact";
1219
+ href: string;
1220
+ } | {
1221
+ [x: string]: unknown;
1222
+ state: "not-url";
1223
+ } | {
1224
+ [x: string]: unknown;
1225
+ state: "unknown";
1226
+ } | {
1227
+ [x: string]: unknown;
1228
+ state: "withheld";
1229
+ digest: string;
1230
+ display: "Destination withheld";
1231
+ cause: "policy" | "unclassified";
1232
+ };
1233
+ authoredUrlState: "unknown" | "withheld" | "exact" | "not-url";
1234
+ confirmation: "producer-attested" | "retained-unconfirmed";
1235
+ source: {
1236
+ [x: string]: unknown;
1237
+ presentation: {
1238
+ [x: string]: unknown;
1239
+ label: string;
1240
+ url?: string | undefined;
1241
+ detail?: string | undefined;
1242
+ };
1243
+ provider: string;
1244
+ keys: Record<string, string>;
1245
+ };
1246
+ target: {
1247
+ [x: string]: unknown;
1248
+ presentation: {
1249
+ [x: string]: unknown;
1250
+ label: string;
1251
+ url?: string | undefined;
1252
+ detail?: string | undefined;
1253
+ };
1254
+ provider: string;
1255
+ keys: Record<string, string>;
1256
+ };
1257
+ producerPluginId: string;
1258
+ graphRevision: number;
1259
+ cap: {
1260
+ [x: string]: unknown;
1261
+ state: "unknown" | "uncapped" | "capped";
1262
+ limit: 100 | null;
1263
+ sourceHistoryUnknown: boolean | null;
1264
+ };
1265
+ } | {
738
1266
  [x: string]: unknown;
739
1267
  kind: "occurrence";
740
1268
  evidenceRevision: number;
@@ -781,7 +1309,7 @@ export declare const crossReferencesV2RpcSchemas: {
781
1309
  };
782
1310
  messageCreatedAt: number;
783
1311
  observedAt: number;
784
- confirmation: "observed" | "retained-unconfirmed";
1312
+ confirmation: "retained-unconfirmed" | "observed";
785
1313
  provenance: {
786
1314
  [x: string]: unknown;
787
1315
  pluginId: string;
@@ -1024,10 +1552,10 @@ export declare const crossReferencesV2RpcSchemas: {
1024
1552
  readonly output: z.ZodObject<{
1025
1553
  version: z.ZodLiteral<2>;
1026
1554
  state: z.ZodEnum<{
1555
+ incomplete: "incomplete";
1027
1556
  ready: "ready";
1028
1557
  ambiguous: "ambiguous";
1029
1558
  unrecognized: "unrecognized";
1030
- incomplete: "incomplete";
1031
1559
  }>;
1032
1560
  options: z.ZodArray<z.ZodObject<{
1033
1561
  query: z.ZodDiscriminatedUnion<[z.ZodObject<{