@c4a/context 0.6.19 → 0.7.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.
Files changed (120) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/codeIndexPlan.d.ts +34 -0
  4. package/docs/README.md +7 -0
  5. package/docs/README.zh-CN.md +5 -0
  6. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  7. package/docs/guides/indexer-provider-and-customization.md +140 -0
  8. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  9. package/docs/reference/code-extractors.md +2 -2
  10. package/docs/reference/indexer-provider-protocol.md +819 -0
  11. package/docs/reference/project-api.md +2 -2
  12. package/index.d.ts +47 -1
  13. package/index.js +28239 -3952
  14. package/indexerAgentStepProtocol.d.ts +9391 -0
  15. package/indexerArtifactDependencies.d.ts +689 -0
  16. package/indexerArtifactPolicy.d.ts +335 -0
  17. package/indexerArtifactResult.d.ts +2010 -0
  18. package/indexerAuditFacts.d.ts +66 -0
  19. package/indexerAuditOverrideReadiness.d.ts +27 -0
  20. package/indexerAuditProtocol.d.ts +238 -0
  21. package/indexerAuditRevision.d.ts +726 -0
  22. package/indexerAuditRevisionActions.d.ts +236 -0
  23. package/indexerAuthoringFixture.d.ts +152 -0
  24. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  25. package/indexerBenchmark.d.ts +1062 -0
  26. package/indexerCandidateCompile.d.ts +801 -0
  27. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  28. package/indexerCatalogFallback.d.ts +1262 -0
  29. package/indexerCollectionMapping.d.ts +75 -0
  30. package/indexerContentLayers.d.ts +137 -0
  31. package/indexerControlledInvocation.d.ts +512 -0
  32. package/indexerControlledProgram.d.ts +12535 -0
  33. package/indexerCoreExports.d.ts +21 -0
  34. package/indexerCustomizationDraft.d.ts +13800 -0
  35. package/indexerCustomizationLadder.d.ts +103 -0
  36. package/indexerDependencyView.d.ts +1610 -0
  37. package/indexerEvidenceAdapterResult.d.ts +504 -0
  38. package/indexerExampleDecision.d.ts +1606 -0
  39. package/indexerExampleIdentity.d.ts +132 -0
  40. package/indexerExampleIdentityAudit.d.ts +70 -0
  41. package/indexerExampleLinkageAudit.d.ts +80 -0
  42. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  43. package/indexerIncrementalImpact.d.ts +221 -0
  44. package/indexerInventoryDisposition.d.ts +443 -0
  45. package/indexerLayerComposition.d.ts +1652 -0
  46. package/indexerLayoutChange.d.ts +329 -0
  47. package/indexerLayoutProposalSet.d.ts +447 -0
  48. package/indexerLayoutResolver.d.ts +342 -0
  49. package/indexerLayoutTransition.d.ts +247 -0
  50. package/indexerLifecycle.d.ts +53 -0
  51. package/indexerMainLifecycle.d.ts +258 -0
  52. package/indexerMainRunLedger.d.ts +888 -0
  53. package/indexerMainRunProtocol.d.ts +6471 -0
  54. package/indexerMainWorkset.d.ts +2141 -0
  55. package/indexerMaterialAnswer.d.ts +738 -0
  56. package/indexerMaterialAnswerActualization.d.ts +91 -0
  57. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  58. package/indexerMaterialAnswerFlow.d.ts +63 -0
  59. package/indexerMaterialAnswerLayout.d.ts +76 -0
  60. package/indexerMaterialAnswerReview.d.ts +217 -0
  61. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  62. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  63. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  64. package/indexerMaterialGapLedger.d.ts +3111 -0
  65. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  66. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  67. package/indexerNavigationArtifactGraph.d.ts +5 -0
  68. package/indexerNavigationArtifactPlan.d.ts +39 -0
  69. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  70. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  71. package/indexerOverlayTrust.d.ts +1425 -0
  72. package/indexerParserCoordinate.d.ts +222 -0
  73. package/indexerParserFactView.d.ts +503 -0
  74. package/indexerPartitionConvergence.d.ts +496 -0
  75. package/indexerPartitionPlan.d.ts +919 -0
  76. package/indexerPartitionStrategyResolution.d.ts +594 -0
  77. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  78. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  79. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  80. package/indexerPostAuthorComposition.d.ts +2000 -0
  81. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  82. package/indexerPrimaryProjection.d.ts +262 -0
  83. package/indexerProfileContract.d.ts +3034 -0
  84. package/indexerProfileMetricAudit.d.ts +218 -0
  85. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  86. package/indexerProgramRunProtocol.d.ts +7642 -0
  87. package/indexerProjectProposal.d.ts +2807 -0
  88. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  89. package/indexerProjectedArtifactPlan.d.ts +217 -0
  90. package/indexerProtocolCommon.d.ts +29 -0
  91. package/indexerProvider.d.ts +2573 -0
  92. package/indexerProviderComposition.d.ts +1357 -0
  93. package/indexerProviderContractReferences.d.ts +13 -0
  94. package/indexerProviderProfileResolution.d.ts +20 -0
  95. package/indexerProviderResolution.d.ts +752 -0
  96. package/indexerProviderResolutionAction.d.ts +678 -0
  97. package/indexerProviderRouting.d.ts +3909 -0
  98. package/indexerProviderSelectionProposal.d.ts +3311 -0
  99. package/indexerQuestionAuthority.d.ts +419 -0
  100. package/indexerReaderTargetInventory.d.ts +161 -0
  101. package/indexerReferenceOnlyAudit.d.ts +90 -0
  102. package/indexerRegistry.d.ts +3019 -0
  103. package/indexerRequirementComparison.d.ts +44 -0
  104. package/indexerRequirementConfirmation.d.ts +1193 -0
  105. package/indexerRequirementLifecycle.d.ts +3314 -0
  106. package/indexerRestrictedSelector.d.ts +63 -0
  107. package/indexerResultReconciliation.d.ts +6844 -0
  108. package/indexerResultReconciliationRun.d.ts +15 -0
  109. package/indexerRunEnvelope.d.ts +384 -0
  110. package/indexerRunProtocolCommon.d.ts +21 -0
  111. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  112. package/indexerStructuredDeclaration.d.ts +513 -0
  113. package/indexerSubjectCatalog.d.ts +230 -0
  114. package/indexerSubjectIdentity.d.ts +19 -0
  115. package/indexerSubjectKeyAuthority.d.ts +785 -0
  116. package/indexerTemplateRendering.d.ts +485 -0
  117. package/indexerToolSnapshot.d.ts +431 -0
  118. package/indexerWorksetRead.d.ts +287 -0
  119. package/package.json +1 -1
  120. package/phases.d.ts +1 -1
@@ -0,0 +1,512 @@
1
+ import { z } from "zod";
2
+ import { type IndexerExecution, type IndexerProviderManifest } from "./indexerProvider.js";
3
+ import { type IndexerProgramAuthorization, type ResolvedProviderBundle } from "./indexerProviderResolution.js";
4
+ declare const fixedDependencySchema: z.ZodObject<{
5
+ package: z.ZodString;
6
+ version: z.ZodString;
7
+ lock_integrity: z.ZodString;
8
+ resolved_digest: z.ZodString;
9
+ }, "strict", z.ZodTypeAny, {
10
+ package: string;
11
+ version: string;
12
+ lock_integrity: string;
13
+ resolved_digest: string;
14
+ }, {
15
+ package: string;
16
+ version: string;
17
+ lock_integrity: string;
18
+ resolved_digest: string;
19
+ }>;
20
+ export declare const indexerFixedDependencySetSchema: z.ZodEffects<z.ZodObject<{
21
+ protocol: z.ZodLiteral<"context.indexer.fixed-dependency-set/v1">;
22
+ dependencies: z.ZodArray<z.ZodObject<{
23
+ package: z.ZodString;
24
+ version: z.ZodString;
25
+ lock_integrity: z.ZodString;
26
+ resolved_digest: z.ZodString;
27
+ }, "strict", z.ZodTypeAny, {
28
+ package: string;
29
+ version: string;
30
+ lock_integrity: string;
31
+ resolved_digest: string;
32
+ }, {
33
+ package: string;
34
+ version: string;
35
+ lock_integrity: string;
36
+ resolved_digest: string;
37
+ }>, "many">;
38
+ dependency_set_digest: z.ZodString;
39
+ }, "strict", z.ZodTypeAny, {
40
+ protocol: "context.indexer.fixed-dependency-set/v1";
41
+ dependency_set_digest: string;
42
+ dependencies: {
43
+ package: string;
44
+ version: string;
45
+ lock_integrity: string;
46
+ resolved_digest: string;
47
+ }[];
48
+ }, {
49
+ protocol: "context.indexer.fixed-dependency-set/v1";
50
+ dependency_set_digest: string;
51
+ dependencies: {
52
+ package: string;
53
+ version: string;
54
+ lock_integrity: string;
55
+ resolved_digest: string;
56
+ }[];
57
+ }>, {
58
+ protocol: "context.indexer.fixed-dependency-set/v1";
59
+ dependency_set_digest: string;
60
+ dependencies: {
61
+ package: string;
62
+ version: string;
63
+ lock_integrity: string;
64
+ resolved_digest: string;
65
+ }[];
66
+ }, {
67
+ protocol: "context.indexer.fixed-dependency-set/v1";
68
+ dependency_set_digest: string;
69
+ dependencies: {
70
+ package: string;
71
+ version: string;
72
+ lock_integrity: string;
73
+ resolved_digest: string;
74
+ }[];
75
+ }>;
76
+ export type IndexerFixedDependencySet = z.infer<typeof indexerFixedDependencySetSchema>;
77
+ declare const executionLimitsSchema: z.ZodObject<{
78
+ timeout_ms: z.ZodNumber;
79
+ max_stdin_bytes: z.ZodNumber;
80
+ max_stdout_bytes: z.ZodNumber;
81
+ max_stderr_bytes: z.ZodNumber;
82
+ }, "strict", z.ZodTypeAny, {
83
+ timeout_ms: number;
84
+ max_stdin_bytes: number;
85
+ max_stdout_bytes: number;
86
+ max_stderr_bytes: number;
87
+ }, {
88
+ timeout_ms: number;
89
+ max_stdin_bytes: number;
90
+ max_stdout_bytes: number;
91
+ max_stderr_bytes: number;
92
+ }>;
93
+ export type IndexerExecutionLimits = z.infer<typeof executionLimitsSchema>;
94
+ export declare const indexerControlledInvocationSchema: z.ZodEffects<z.ZodObject<{
95
+ protocol: z.ZodLiteral<"context.indexer.controlled-invocation/v1">;
96
+ resource: z.ZodEnum<["program", "activation-detector", "authoring-inspector"]>;
97
+ program: z.ZodNullable<z.ZodObject<{
98
+ origin: z.ZodEnum<["provider-bundle", "project-local"]>;
99
+ path: z.ZodString;
100
+ content_digest: z.ZodString;
101
+ program_digest: z.ZodString;
102
+ }, "strict", z.ZodTypeAny, {
103
+ path: string;
104
+ program_digest: string;
105
+ origin: "provider-bundle" | "project-local";
106
+ content_digest: string;
107
+ }, {
108
+ path: string;
109
+ program_digest: string;
110
+ origin: "provider-bundle" | "project-local";
111
+ content_digest: string;
112
+ }>>;
113
+ provider: z.ZodObject<{
114
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
115
+ provider_id: z.ZodEffects<z.ZodString, string, string>;
116
+ skill: z.ZodEffects<z.ZodString, string, string>;
117
+ version: z.ZodString;
118
+ bundle_integrity: z.ZodString;
119
+ manifest_digest: z.ZodString;
120
+ provider_fingerprint: z.ZodString;
121
+ }, "strict", z.ZodTypeAny, {
122
+ skill: string;
123
+ version: string;
124
+ indexer_id: string;
125
+ provider_id: string;
126
+ manifest_digest: string;
127
+ provider_fingerprint: string;
128
+ bundle_integrity: string;
129
+ }, {
130
+ skill: string;
131
+ version: string;
132
+ indexer_id: string;
133
+ provider_id: string;
134
+ manifest_digest: string;
135
+ provider_fingerprint: string;
136
+ bundle_integrity: string;
137
+ }>;
138
+ execution: z.ZodObject<{
139
+ runtime: z.ZodLiteral<"node">;
140
+ entry: z.ZodEffects<z.ZodString, string, string>;
141
+ args: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
142
+ }, "strict", z.ZodTypeAny, {
143
+ entry: string;
144
+ args: string[];
145
+ runtime: "node";
146
+ }, {
147
+ entry: string;
148
+ args: string[];
149
+ runtime: "node";
150
+ }>;
151
+ capabilities: z.ZodArray<z.ZodEnum<["source.read", "parser-facts.read", "indexer-result.write"]>, "many">;
152
+ dependencies: z.ZodEffects<z.ZodObject<{
153
+ protocol: z.ZodLiteral<"context.indexer.fixed-dependency-set/v1">;
154
+ dependencies: z.ZodArray<z.ZodObject<{
155
+ package: z.ZodString;
156
+ version: z.ZodString;
157
+ lock_integrity: z.ZodString;
158
+ resolved_digest: z.ZodString;
159
+ }, "strict", z.ZodTypeAny, {
160
+ package: string;
161
+ version: string;
162
+ lock_integrity: string;
163
+ resolved_digest: string;
164
+ }, {
165
+ package: string;
166
+ version: string;
167
+ lock_integrity: string;
168
+ resolved_digest: string;
169
+ }>, "many">;
170
+ dependency_set_digest: z.ZodString;
171
+ }, "strict", z.ZodTypeAny, {
172
+ protocol: "context.indexer.fixed-dependency-set/v1";
173
+ dependency_set_digest: string;
174
+ dependencies: {
175
+ package: string;
176
+ version: string;
177
+ lock_integrity: string;
178
+ resolved_digest: string;
179
+ }[];
180
+ }, {
181
+ protocol: "context.indexer.fixed-dependency-set/v1";
182
+ dependency_set_digest: string;
183
+ dependencies: {
184
+ package: string;
185
+ version: string;
186
+ lock_integrity: string;
187
+ resolved_digest: string;
188
+ }[];
189
+ }>, {
190
+ protocol: "context.indexer.fixed-dependency-set/v1";
191
+ dependency_set_digest: string;
192
+ dependencies: {
193
+ package: string;
194
+ version: string;
195
+ lock_integrity: string;
196
+ resolved_digest: string;
197
+ }[];
198
+ }, {
199
+ protocol: "context.indexer.fixed-dependency-set/v1";
200
+ dependency_set_digest: string;
201
+ dependencies: {
202
+ package: string;
203
+ version: string;
204
+ lock_integrity: string;
205
+ resolved_digest: string;
206
+ }[];
207
+ }>;
208
+ authorized_scope: z.ZodEffects<z.ZodObject<{
209
+ source_ref: z.ZodString;
210
+ module_refs: z.ZodArray<z.ZodString, "many">;
211
+ scope_digest: z.ZodString;
212
+ }, "strict", z.ZodTypeAny, {
213
+ source_ref: string;
214
+ module_refs: string[];
215
+ scope_digest: string;
216
+ }, {
217
+ source_ref: string;
218
+ module_refs: string[];
219
+ scope_digest: string;
220
+ }>, {
221
+ source_ref: string;
222
+ module_refs: string[];
223
+ scope_digest: string;
224
+ }, {
225
+ source_ref: string;
226
+ module_refs: string[];
227
+ scope_digest: string;
228
+ }>;
229
+ authorization: z.ZodObject<{
230
+ level: z.ZodLiteral<"trusted-program">;
231
+ sandboxed_program: z.ZodLiteral<false>;
232
+ trust_basis: z.ZodEnum<["first-party", "verified", "project-authorized-exact-digest"]>;
233
+ authority_digest: z.ZodString;
234
+ policy_digest: z.ZodString;
235
+ }, "strict", z.ZodTypeAny, {
236
+ authority_digest: string;
237
+ sandboxed_program: false;
238
+ level: "trusted-program";
239
+ trust_basis: "first-party" | "verified" | "project-authorized-exact-digest";
240
+ policy_digest: string;
241
+ }, {
242
+ authority_digest: string;
243
+ sandboxed_program: false;
244
+ level: "trusted-program";
245
+ trust_basis: "first-party" | "verified" | "project-authorized-exact-digest";
246
+ policy_digest: string;
247
+ }>;
248
+ environment: z.ZodLiteral<"empty">;
249
+ shell: z.ZodLiteral<false>;
250
+ limits: z.ZodObject<{
251
+ timeout_ms: z.ZodNumber;
252
+ max_stdin_bytes: z.ZodNumber;
253
+ max_stdout_bytes: z.ZodNumber;
254
+ max_stderr_bytes: z.ZodNumber;
255
+ }, "strict", z.ZodTypeAny, {
256
+ timeout_ms: number;
257
+ max_stdin_bytes: number;
258
+ max_stdout_bytes: number;
259
+ max_stderr_bytes: number;
260
+ }, {
261
+ timeout_ms: number;
262
+ max_stdin_bytes: number;
263
+ max_stdout_bytes: number;
264
+ max_stderr_bytes: number;
265
+ }>;
266
+ invocation_digest: z.ZodString;
267
+ }, "strict", z.ZodTypeAny, {
268
+ protocol: "context.indexer.controlled-invocation/v1";
269
+ provider: {
270
+ skill: string;
271
+ version: string;
272
+ indexer_id: string;
273
+ provider_id: string;
274
+ manifest_digest: string;
275
+ provider_fingerprint: string;
276
+ bundle_integrity: string;
277
+ };
278
+ capabilities: ("source.read" | "parser-facts.read" | "indexer-result.write")[];
279
+ authorized_scope: {
280
+ source_ref: string;
281
+ module_refs: string[];
282
+ scope_digest: string;
283
+ };
284
+ resource: "program" | "activation-detector" | "authoring-inspector";
285
+ execution: {
286
+ entry: string;
287
+ args: string[];
288
+ runtime: "node";
289
+ };
290
+ program: {
291
+ path: string;
292
+ program_digest: string;
293
+ origin: "provider-bundle" | "project-local";
294
+ content_digest: string;
295
+ } | null;
296
+ dependencies: {
297
+ protocol: "context.indexer.fixed-dependency-set/v1";
298
+ dependency_set_digest: string;
299
+ dependencies: {
300
+ package: string;
301
+ version: string;
302
+ lock_integrity: string;
303
+ resolved_digest: string;
304
+ }[];
305
+ };
306
+ authorization: {
307
+ authority_digest: string;
308
+ sandboxed_program: false;
309
+ level: "trusted-program";
310
+ trust_basis: "first-party" | "verified" | "project-authorized-exact-digest";
311
+ policy_digest: string;
312
+ };
313
+ environment: "empty";
314
+ shell: false;
315
+ limits: {
316
+ timeout_ms: number;
317
+ max_stdin_bytes: number;
318
+ max_stdout_bytes: number;
319
+ max_stderr_bytes: number;
320
+ };
321
+ invocation_digest: string;
322
+ }, {
323
+ protocol: "context.indexer.controlled-invocation/v1";
324
+ provider: {
325
+ skill: string;
326
+ version: string;
327
+ indexer_id: string;
328
+ provider_id: string;
329
+ manifest_digest: string;
330
+ provider_fingerprint: string;
331
+ bundle_integrity: string;
332
+ };
333
+ capabilities: ("source.read" | "parser-facts.read" | "indexer-result.write")[];
334
+ authorized_scope: {
335
+ source_ref: string;
336
+ module_refs: string[];
337
+ scope_digest: string;
338
+ };
339
+ resource: "program" | "activation-detector" | "authoring-inspector";
340
+ execution: {
341
+ entry: string;
342
+ args: string[];
343
+ runtime: "node";
344
+ };
345
+ program: {
346
+ path: string;
347
+ program_digest: string;
348
+ origin: "provider-bundle" | "project-local";
349
+ content_digest: string;
350
+ } | null;
351
+ dependencies: {
352
+ protocol: "context.indexer.fixed-dependency-set/v1";
353
+ dependency_set_digest: string;
354
+ dependencies: {
355
+ package: string;
356
+ version: string;
357
+ lock_integrity: string;
358
+ resolved_digest: string;
359
+ }[];
360
+ };
361
+ authorization: {
362
+ authority_digest: string;
363
+ sandboxed_program: false;
364
+ level: "trusted-program";
365
+ trust_basis: "first-party" | "verified" | "project-authorized-exact-digest";
366
+ policy_digest: string;
367
+ };
368
+ environment: "empty";
369
+ shell: false;
370
+ limits: {
371
+ timeout_ms: number;
372
+ max_stdin_bytes: number;
373
+ max_stdout_bytes: number;
374
+ max_stderr_bytes: number;
375
+ };
376
+ invocation_digest: string;
377
+ }>, {
378
+ protocol: "context.indexer.controlled-invocation/v1";
379
+ provider: {
380
+ skill: string;
381
+ version: string;
382
+ indexer_id: string;
383
+ provider_id: string;
384
+ manifest_digest: string;
385
+ provider_fingerprint: string;
386
+ bundle_integrity: string;
387
+ };
388
+ capabilities: ("source.read" | "parser-facts.read" | "indexer-result.write")[];
389
+ authorized_scope: {
390
+ source_ref: string;
391
+ module_refs: string[];
392
+ scope_digest: string;
393
+ };
394
+ resource: "program" | "activation-detector" | "authoring-inspector";
395
+ execution: {
396
+ entry: string;
397
+ args: string[];
398
+ runtime: "node";
399
+ };
400
+ program: {
401
+ path: string;
402
+ program_digest: string;
403
+ origin: "provider-bundle" | "project-local";
404
+ content_digest: string;
405
+ } | null;
406
+ dependencies: {
407
+ protocol: "context.indexer.fixed-dependency-set/v1";
408
+ dependency_set_digest: string;
409
+ dependencies: {
410
+ package: string;
411
+ version: string;
412
+ lock_integrity: string;
413
+ resolved_digest: string;
414
+ }[];
415
+ };
416
+ authorization: {
417
+ authority_digest: string;
418
+ sandboxed_program: false;
419
+ level: "trusted-program";
420
+ trust_basis: "first-party" | "verified" | "project-authorized-exact-digest";
421
+ policy_digest: string;
422
+ };
423
+ environment: "empty";
424
+ shell: false;
425
+ limits: {
426
+ timeout_ms: number;
427
+ max_stdin_bytes: number;
428
+ max_stdout_bytes: number;
429
+ max_stderr_bytes: number;
430
+ };
431
+ invocation_digest: string;
432
+ }, {
433
+ protocol: "context.indexer.controlled-invocation/v1";
434
+ provider: {
435
+ skill: string;
436
+ version: string;
437
+ indexer_id: string;
438
+ provider_id: string;
439
+ manifest_digest: string;
440
+ provider_fingerprint: string;
441
+ bundle_integrity: string;
442
+ };
443
+ capabilities: ("source.read" | "parser-facts.read" | "indexer-result.write")[];
444
+ authorized_scope: {
445
+ source_ref: string;
446
+ module_refs: string[];
447
+ scope_digest: string;
448
+ };
449
+ resource: "program" | "activation-detector" | "authoring-inspector";
450
+ execution: {
451
+ entry: string;
452
+ args: string[];
453
+ runtime: "node";
454
+ };
455
+ program: {
456
+ path: string;
457
+ program_digest: string;
458
+ origin: "provider-bundle" | "project-local";
459
+ content_digest: string;
460
+ } | null;
461
+ dependencies: {
462
+ protocol: "context.indexer.fixed-dependency-set/v1";
463
+ dependency_set_digest: string;
464
+ dependencies: {
465
+ package: string;
466
+ version: string;
467
+ lock_integrity: string;
468
+ resolved_digest: string;
469
+ }[];
470
+ };
471
+ authorization: {
472
+ authority_digest: string;
473
+ sandboxed_program: false;
474
+ level: "trusted-program";
475
+ trust_basis: "first-party" | "verified" | "project-authorized-exact-digest";
476
+ policy_digest: string;
477
+ };
478
+ environment: "empty";
479
+ shell: false;
480
+ limits: {
481
+ timeout_ms: number;
482
+ max_stdin_bytes: number;
483
+ max_stdout_bytes: number;
484
+ max_stderr_bytes: number;
485
+ };
486
+ invocation_digest: string;
487
+ }>;
488
+ export type IndexerControlledInvocation = z.infer<typeof indexerControlledInvocationSchema>;
489
+ export declare function assertIndexerCanonicalOrder(values: readonly string[], field: string): void;
490
+ export declare function buildIndexerFixedDependencySet(dependencies: readonly z.input<typeof fixedDependencySchema>[]): IndexerFixedDependencySet;
491
+ export declare function validateIndexerFixedDependencySet(value: unknown): IndexerFixedDependencySet;
492
+ export declare function buildIndexerControlledInvocation(input: {
493
+ resource: IndexerControlledInvocation["resource"];
494
+ manifest: IndexerProviderManifest;
495
+ bundle: ResolvedProviderBundle;
496
+ execution: IndexerExecution;
497
+ capabilities: readonly IndexerControlledInvocation["capabilities"][number][];
498
+ dependencies: IndexerFixedDependencySet;
499
+ scope: {
500
+ source_ref: string;
501
+ module_refs: readonly string[];
502
+ };
503
+ limits: IndexerExecutionLimits;
504
+ project_ref: string;
505
+ project_authorization?: IndexerProgramAuthorization;
506
+ local_program?: {
507
+ path: string;
508
+ content_digest: string;
509
+ };
510
+ }): IndexerControlledInvocation;
511
+ export declare function validateIndexerControlledInvocation(value: unknown): IndexerControlledInvocation;
512
+ export {};