@c4a/context 0.6.18 → 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 (130) hide show
  1. package/README.md +5 -5
  2. package/README.zh-CN.md +5 -5
  3. package/codeIndexPlan.d.ts +84 -0
  4. package/contracts.d.ts +2 -1
  5. package/docs/README.md +7 -0
  6. package/docs/README.zh-CN.md +5 -0
  7. package/docs/getting-started.md +12 -12
  8. package/docs/guides/agent-guide.md +18 -9
  9. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  10. package/docs/guides/indexer-provider-and-customization.md +140 -0
  11. package/docs/guides/lark-resources.md +7 -0
  12. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  13. package/docs/guides/package-outputs.md +3 -3
  14. package/docs/reference/code-extractors.md +7 -6
  15. package/docs/reference/indexer-provider-protocol.md +819 -0
  16. package/docs/reference/package-templates.md +18 -10
  17. package/docs/reference/project-api.md +49 -24
  18. package/index.d.ts +48 -2
  19. package/index.js +28239 -3948
  20. package/indexerAgentStepProtocol.d.ts +9391 -0
  21. package/indexerArtifactDependencies.d.ts +689 -0
  22. package/indexerArtifactPolicy.d.ts +335 -0
  23. package/indexerArtifactResult.d.ts +2010 -0
  24. package/indexerAuditFacts.d.ts +66 -0
  25. package/indexerAuditOverrideReadiness.d.ts +27 -0
  26. package/indexerAuditProtocol.d.ts +238 -0
  27. package/indexerAuditRevision.d.ts +726 -0
  28. package/indexerAuditRevisionActions.d.ts +236 -0
  29. package/indexerAuthoringFixture.d.ts +152 -0
  30. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  31. package/indexerBenchmark.d.ts +1062 -0
  32. package/indexerCandidateCompile.d.ts +801 -0
  33. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  34. package/indexerCatalogFallback.d.ts +1262 -0
  35. package/indexerCollectionMapping.d.ts +75 -0
  36. package/indexerContentLayers.d.ts +137 -0
  37. package/indexerControlledInvocation.d.ts +512 -0
  38. package/indexerControlledProgram.d.ts +12535 -0
  39. package/indexerCoreExports.d.ts +21 -0
  40. package/indexerCustomizationDraft.d.ts +13800 -0
  41. package/indexerCustomizationLadder.d.ts +103 -0
  42. package/indexerDependencyView.d.ts +1610 -0
  43. package/indexerEvidenceAdapterResult.d.ts +504 -0
  44. package/indexerExampleDecision.d.ts +1606 -0
  45. package/indexerExampleIdentity.d.ts +132 -0
  46. package/indexerExampleIdentityAudit.d.ts +70 -0
  47. package/indexerExampleLinkageAudit.d.ts +80 -0
  48. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  49. package/indexerIncrementalImpact.d.ts +221 -0
  50. package/indexerInventoryDisposition.d.ts +443 -0
  51. package/indexerLayerComposition.d.ts +1652 -0
  52. package/indexerLayoutChange.d.ts +329 -0
  53. package/indexerLayoutProposalSet.d.ts +447 -0
  54. package/indexerLayoutResolver.d.ts +342 -0
  55. package/indexerLayoutTransition.d.ts +247 -0
  56. package/indexerLifecycle.d.ts +53 -0
  57. package/indexerMainLifecycle.d.ts +258 -0
  58. package/indexerMainRunLedger.d.ts +888 -0
  59. package/indexerMainRunProtocol.d.ts +6471 -0
  60. package/indexerMainWorkset.d.ts +2141 -0
  61. package/indexerMaterialAnswer.d.ts +738 -0
  62. package/indexerMaterialAnswerActualization.d.ts +91 -0
  63. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  64. package/indexerMaterialAnswerFlow.d.ts +63 -0
  65. package/indexerMaterialAnswerLayout.d.ts +76 -0
  66. package/indexerMaterialAnswerReview.d.ts +217 -0
  67. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  68. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  69. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  70. package/indexerMaterialGapLedger.d.ts +3111 -0
  71. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  72. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  73. package/indexerNavigationArtifactGraph.d.ts +5 -0
  74. package/indexerNavigationArtifactPlan.d.ts +39 -0
  75. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  76. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  77. package/indexerOverlayTrust.d.ts +1425 -0
  78. package/indexerParserCoordinate.d.ts +222 -0
  79. package/indexerParserFactView.d.ts +503 -0
  80. package/indexerPartitionConvergence.d.ts +496 -0
  81. package/indexerPartitionPlan.d.ts +919 -0
  82. package/indexerPartitionStrategyResolution.d.ts +594 -0
  83. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  84. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  85. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  86. package/indexerPostAuthorComposition.d.ts +2000 -0
  87. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  88. package/indexerPrimaryProjection.d.ts +262 -0
  89. package/indexerProfileContract.d.ts +3034 -0
  90. package/indexerProfileMetricAudit.d.ts +218 -0
  91. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  92. package/indexerProgramRunProtocol.d.ts +7642 -0
  93. package/indexerProjectProposal.d.ts +2807 -0
  94. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  95. package/indexerProjectedArtifactPlan.d.ts +217 -0
  96. package/indexerProtocolCommon.d.ts +29 -0
  97. package/indexerProvider.d.ts +2573 -0
  98. package/indexerProviderComposition.d.ts +1357 -0
  99. package/indexerProviderContractReferences.d.ts +13 -0
  100. package/indexerProviderProfileResolution.d.ts +20 -0
  101. package/indexerProviderResolution.d.ts +752 -0
  102. package/indexerProviderResolutionAction.d.ts +678 -0
  103. package/indexerProviderRouting.d.ts +3909 -0
  104. package/indexerProviderSelectionProposal.d.ts +3311 -0
  105. package/indexerQuestionAuthority.d.ts +419 -0
  106. package/indexerReaderTargetInventory.d.ts +161 -0
  107. package/indexerReferenceOnlyAudit.d.ts +90 -0
  108. package/indexerRegistry.d.ts +3019 -0
  109. package/indexerRequirementComparison.d.ts +44 -0
  110. package/indexerRequirementConfirmation.d.ts +1193 -0
  111. package/indexerRequirementLifecycle.d.ts +3314 -0
  112. package/indexerRestrictedSelector.d.ts +63 -0
  113. package/indexerResultReconciliation.d.ts +6844 -0
  114. package/indexerResultReconciliationRun.d.ts +15 -0
  115. package/indexerRunEnvelope.d.ts +384 -0
  116. package/indexerRunProtocolCommon.d.ts +21 -0
  117. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  118. package/indexerStructuredDeclaration.d.ts +513 -0
  119. package/indexerSubjectCatalog.d.ts +230 -0
  120. package/indexerSubjectIdentity.d.ts +19 -0
  121. package/indexerSubjectKeyAuthority.d.ts +785 -0
  122. package/indexerTemplateRendering.d.ts +485 -0
  123. package/indexerToolSnapshot.d.ts +431 -0
  124. package/indexerWorksetRead.d.ts +287 -0
  125. package/package.json +1 -1
  126. package/phases.d.ts +11 -9
  127. package/templates/package-templates/kb/AGENTS.md +1 -1
  128. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +1 -1
  129. package/templates/package-templates.zh-CN/kb/AGENTS.md +1 -1
  130. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +1 -1
@@ -0,0 +1,752 @@
1
+ import { z } from "zod";
2
+ import type { IndexerExecution, IndexerProviderManifest } from "./indexerProvider.js";
3
+ import { type IndexerDistribution } from "./indexerRegistry.js";
4
+ export declare const providerResolutionRequestSchema: z.ZodObject<{
5
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
6
+ provider_id: z.ZodEffects<z.ZodString, string, string>;
7
+ skill: z.ZodEffects<z.ZodString, string, string>;
8
+ version: z.ZodString;
9
+ distribution: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
10
+ kind: z.ZodLiteral<"cli-bundled">;
11
+ locator: z.ZodString;
12
+ }, "strict", z.ZodTypeAny, {
13
+ kind: "cli-bundled";
14
+ locator: string;
15
+ }, {
16
+ kind: "cli-bundled";
17
+ locator: string;
18
+ }>, z.ZodObject<{
19
+ kind: z.ZodLiteral<"bundled">;
20
+ locator: z.ZodString;
21
+ }, "strict", z.ZodTypeAny, {
22
+ kind: "bundled";
23
+ locator: string;
24
+ }, {
25
+ kind: "bundled";
26
+ locator: string;
27
+ }>, z.ZodObject<{
28
+ kind: z.ZodLiteral<"workspace">;
29
+ locator: z.ZodString;
30
+ }, "strict", z.ZodTypeAny, {
31
+ kind: "workspace";
32
+ locator: string;
33
+ }, {
34
+ kind: "workspace";
35
+ locator: string;
36
+ }>, z.ZodObject<{
37
+ kind: z.ZodLiteral<"package">;
38
+ locator: z.ZodString;
39
+ }, "strict", z.ZodTypeAny, {
40
+ kind: "package";
41
+ locator: string;
42
+ }, {
43
+ kind: "package";
44
+ locator: string;
45
+ }>, z.ZodObject<{
46
+ kind: z.ZodLiteral<"marketplace">;
47
+ locator: z.ZodString;
48
+ }, "strict", z.ZodTypeAny, {
49
+ kind: "marketplace";
50
+ locator: string;
51
+ }, {
52
+ kind: "marketplace";
53
+ locator: string;
54
+ }>]>, {
55
+ kind: "cli-bundled";
56
+ locator: string;
57
+ } | {
58
+ kind: "bundled";
59
+ locator: string;
60
+ } | {
61
+ kind: "workspace";
62
+ locator: string;
63
+ } | {
64
+ kind: "package";
65
+ locator: string;
66
+ } | {
67
+ kind: "marketplace";
68
+ locator: string;
69
+ }, {
70
+ kind: "cli-bundled";
71
+ locator: string;
72
+ } | {
73
+ kind: "bundled";
74
+ locator: string;
75
+ } | {
76
+ kind: "workspace";
77
+ locator: string;
78
+ } | {
79
+ kind: "package";
80
+ locator: string;
81
+ } | {
82
+ kind: "marketplace";
83
+ locator: string;
84
+ }>;
85
+ }, "strict", z.ZodTypeAny, {
86
+ skill: string;
87
+ version: string;
88
+ distribution: {
89
+ kind: "cli-bundled";
90
+ locator: string;
91
+ } | {
92
+ kind: "bundled";
93
+ locator: string;
94
+ } | {
95
+ kind: "workspace";
96
+ locator: string;
97
+ } | {
98
+ kind: "package";
99
+ locator: string;
100
+ } | {
101
+ kind: "marketplace";
102
+ locator: string;
103
+ };
104
+ indexer_id: string;
105
+ provider_id: string;
106
+ }, {
107
+ skill: string;
108
+ version: string;
109
+ distribution: {
110
+ kind: "cli-bundled";
111
+ locator: string;
112
+ } | {
113
+ kind: "bundled";
114
+ locator: string;
115
+ } | {
116
+ kind: "workspace";
117
+ locator: string;
118
+ } | {
119
+ kind: "package";
120
+ locator: string;
121
+ } | {
122
+ kind: "marketplace";
123
+ locator: string;
124
+ };
125
+ indexer_id: string;
126
+ provider_id: string;
127
+ }>;
128
+ export declare const resolvedProviderBundleSchema: z.ZodEffects<z.ZodObject<{
129
+ protocol: z.ZodLiteral<"context.indexer.resolved-provider-bundle/v1">;
130
+ request: z.ZodObject<{
131
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
132
+ provider_id: z.ZodEffects<z.ZodString, string, string>;
133
+ skill: z.ZodEffects<z.ZodString, string, string>;
134
+ version: z.ZodString;
135
+ distribution: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
136
+ kind: z.ZodLiteral<"cli-bundled">;
137
+ locator: z.ZodString;
138
+ }, "strict", z.ZodTypeAny, {
139
+ kind: "cli-bundled";
140
+ locator: string;
141
+ }, {
142
+ kind: "cli-bundled";
143
+ locator: string;
144
+ }>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"bundled">;
146
+ locator: z.ZodString;
147
+ }, "strict", z.ZodTypeAny, {
148
+ kind: "bundled";
149
+ locator: string;
150
+ }, {
151
+ kind: "bundled";
152
+ locator: string;
153
+ }>, z.ZodObject<{
154
+ kind: z.ZodLiteral<"workspace">;
155
+ locator: z.ZodString;
156
+ }, "strict", z.ZodTypeAny, {
157
+ kind: "workspace";
158
+ locator: string;
159
+ }, {
160
+ kind: "workspace";
161
+ locator: string;
162
+ }>, z.ZodObject<{
163
+ kind: z.ZodLiteral<"package">;
164
+ locator: z.ZodString;
165
+ }, "strict", z.ZodTypeAny, {
166
+ kind: "package";
167
+ locator: string;
168
+ }, {
169
+ kind: "package";
170
+ locator: string;
171
+ }>, z.ZodObject<{
172
+ kind: z.ZodLiteral<"marketplace">;
173
+ locator: z.ZodString;
174
+ }, "strict", z.ZodTypeAny, {
175
+ kind: "marketplace";
176
+ locator: string;
177
+ }, {
178
+ kind: "marketplace";
179
+ locator: string;
180
+ }>]>, {
181
+ kind: "cli-bundled";
182
+ locator: string;
183
+ } | {
184
+ kind: "bundled";
185
+ locator: string;
186
+ } | {
187
+ kind: "workspace";
188
+ locator: string;
189
+ } | {
190
+ kind: "package";
191
+ locator: string;
192
+ } | {
193
+ kind: "marketplace";
194
+ locator: string;
195
+ }, {
196
+ kind: "cli-bundled";
197
+ locator: string;
198
+ } | {
199
+ kind: "bundled";
200
+ locator: string;
201
+ } | {
202
+ kind: "workspace";
203
+ locator: string;
204
+ } | {
205
+ kind: "package";
206
+ locator: string;
207
+ } | {
208
+ kind: "marketplace";
209
+ locator: string;
210
+ }>;
211
+ }, "strict", z.ZodTypeAny, {
212
+ skill: string;
213
+ version: string;
214
+ distribution: {
215
+ kind: "cli-bundled";
216
+ locator: string;
217
+ } | {
218
+ kind: "bundled";
219
+ locator: string;
220
+ } | {
221
+ kind: "workspace";
222
+ locator: string;
223
+ } | {
224
+ kind: "package";
225
+ locator: string;
226
+ } | {
227
+ kind: "marketplace";
228
+ locator: string;
229
+ };
230
+ indexer_id: string;
231
+ provider_id: string;
232
+ }, {
233
+ skill: string;
234
+ version: string;
235
+ distribution: {
236
+ kind: "cli-bundled";
237
+ locator: string;
238
+ } | {
239
+ kind: "bundled";
240
+ locator: string;
241
+ } | {
242
+ kind: "workspace";
243
+ locator: string;
244
+ } | {
245
+ kind: "package";
246
+ locator: string;
247
+ } | {
248
+ kind: "marketplace";
249
+ locator: string;
250
+ };
251
+ indexer_id: string;
252
+ provider_id: string;
253
+ }>;
254
+ resolved: z.ZodObject<{
255
+ integrity: z.ZodString;
256
+ manifest_digest: z.ZodString;
257
+ issuer: z.ZodEffects<z.ZodString, string, string>;
258
+ trust: z.ZodEnum<["first-party", "verified", "project-authorized", "untrusted"]>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ integrity: string;
261
+ manifest_digest: string;
262
+ issuer: string;
263
+ trust: "first-party" | "verified" | "project-authorized" | "untrusted";
264
+ }, {
265
+ integrity: string;
266
+ manifest_digest: string;
267
+ issuer: string;
268
+ trust: "first-party" | "verified" | "project-authorized" | "untrusted";
269
+ }>;
270
+ transport: z.ZodObject<{
271
+ kind: z.ZodEnum<["directory", "archive"]>;
272
+ path: z.ZodEffects<z.ZodString, string, string>;
273
+ expires_at: z.ZodString;
274
+ }, "strict", z.ZodTypeAny, {
275
+ kind: "directory" | "archive";
276
+ path: string;
277
+ expires_at: string;
278
+ }, {
279
+ kind: "directory" | "archive";
280
+ path: string;
281
+ expires_at: string;
282
+ }>;
283
+ files: z.ZodArray<z.ZodObject<{
284
+ path: z.ZodEffects<z.ZodString, string, string>;
285
+ digest: z.ZodString;
286
+ }, "strict", z.ZodTypeAny, {
287
+ path: string;
288
+ digest: string;
289
+ }, {
290
+ path: string;
291
+ digest: string;
292
+ }>, "many">;
293
+ receipt: z.ZodObject<{
294
+ resolver: z.ZodEffects<z.ZodString, string, string>;
295
+ resolved_at: z.ZodString;
296
+ authority_ref: z.ZodString;
297
+ receipt_digest: z.ZodString;
298
+ }, "strict", z.ZodTypeAny, {
299
+ authority_ref: string;
300
+ receipt_digest: string;
301
+ resolver: string;
302
+ resolved_at: string;
303
+ }, {
304
+ authority_ref: string;
305
+ receipt_digest: string;
306
+ resolver: string;
307
+ resolved_at: string;
308
+ }>;
309
+ }, "strict", z.ZodTypeAny, {
310
+ protocol: "context.indexer.resolved-provider-bundle/v1";
311
+ files: {
312
+ path: string;
313
+ digest: string;
314
+ }[];
315
+ request: {
316
+ skill: string;
317
+ version: string;
318
+ distribution: {
319
+ kind: "cli-bundled";
320
+ locator: string;
321
+ } | {
322
+ kind: "bundled";
323
+ locator: string;
324
+ } | {
325
+ kind: "workspace";
326
+ locator: string;
327
+ } | {
328
+ kind: "package";
329
+ locator: string;
330
+ } | {
331
+ kind: "marketplace";
332
+ locator: string;
333
+ };
334
+ indexer_id: string;
335
+ provider_id: string;
336
+ };
337
+ resolved: {
338
+ integrity: string;
339
+ manifest_digest: string;
340
+ issuer: string;
341
+ trust: "first-party" | "verified" | "project-authorized" | "untrusted";
342
+ };
343
+ transport: {
344
+ kind: "directory" | "archive";
345
+ path: string;
346
+ expires_at: string;
347
+ };
348
+ receipt: {
349
+ authority_ref: string;
350
+ receipt_digest: string;
351
+ resolver: string;
352
+ resolved_at: string;
353
+ };
354
+ }, {
355
+ protocol: "context.indexer.resolved-provider-bundle/v1";
356
+ files: {
357
+ path: string;
358
+ digest: string;
359
+ }[];
360
+ request: {
361
+ skill: string;
362
+ version: string;
363
+ distribution: {
364
+ kind: "cli-bundled";
365
+ locator: string;
366
+ } | {
367
+ kind: "bundled";
368
+ locator: string;
369
+ } | {
370
+ kind: "workspace";
371
+ locator: string;
372
+ } | {
373
+ kind: "package";
374
+ locator: string;
375
+ } | {
376
+ kind: "marketplace";
377
+ locator: string;
378
+ };
379
+ indexer_id: string;
380
+ provider_id: string;
381
+ };
382
+ resolved: {
383
+ integrity: string;
384
+ manifest_digest: string;
385
+ issuer: string;
386
+ trust: "first-party" | "verified" | "project-authorized" | "untrusted";
387
+ };
388
+ transport: {
389
+ kind: "directory" | "archive";
390
+ path: string;
391
+ expires_at: string;
392
+ };
393
+ receipt: {
394
+ authority_ref: string;
395
+ receipt_digest: string;
396
+ resolver: string;
397
+ resolved_at: string;
398
+ };
399
+ }>, {
400
+ protocol: "context.indexer.resolved-provider-bundle/v1";
401
+ files: {
402
+ path: string;
403
+ digest: string;
404
+ }[];
405
+ request: {
406
+ skill: string;
407
+ version: string;
408
+ distribution: {
409
+ kind: "cli-bundled";
410
+ locator: string;
411
+ } | {
412
+ kind: "bundled";
413
+ locator: string;
414
+ } | {
415
+ kind: "workspace";
416
+ locator: string;
417
+ } | {
418
+ kind: "package";
419
+ locator: string;
420
+ } | {
421
+ kind: "marketplace";
422
+ locator: string;
423
+ };
424
+ indexer_id: string;
425
+ provider_id: string;
426
+ };
427
+ resolved: {
428
+ integrity: string;
429
+ manifest_digest: string;
430
+ issuer: string;
431
+ trust: "first-party" | "verified" | "project-authorized" | "untrusted";
432
+ };
433
+ transport: {
434
+ kind: "directory" | "archive";
435
+ path: string;
436
+ expires_at: string;
437
+ };
438
+ receipt: {
439
+ authority_ref: string;
440
+ receipt_digest: string;
441
+ resolver: string;
442
+ resolved_at: string;
443
+ };
444
+ }, {
445
+ protocol: "context.indexer.resolved-provider-bundle/v1";
446
+ files: {
447
+ path: string;
448
+ digest: string;
449
+ }[];
450
+ request: {
451
+ skill: string;
452
+ version: string;
453
+ distribution: {
454
+ kind: "cli-bundled";
455
+ locator: string;
456
+ } | {
457
+ kind: "bundled";
458
+ locator: string;
459
+ } | {
460
+ kind: "workspace";
461
+ locator: string;
462
+ } | {
463
+ kind: "package";
464
+ locator: string;
465
+ } | {
466
+ kind: "marketplace";
467
+ locator: string;
468
+ };
469
+ indexer_id: string;
470
+ provider_id: string;
471
+ };
472
+ resolved: {
473
+ integrity: string;
474
+ manifest_digest: string;
475
+ issuer: string;
476
+ trust: "first-party" | "verified" | "project-authorized" | "untrusted";
477
+ };
478
+ transport: {
479
+ kind: "directory" | "archive";
480
+ path: string;
481
+ expires_at: string;
482
+ };
483
+ receipt: {
484
+ authority_ref: string;
485
+ receipt_digest: string;
486
+ resolver: string;
487
+ resolved_at: string;
488
+ };
489
+ }>;
490
+ export type ResolvedProviderBundle = z.infer<typeof resolvedProviderBundleSchema>;
491
+ export type ProviderResolutionRequest = z.infer<typeof providerResolutionRequestSchema>;
492
+ export interface ExpectedProviderResolution {
493
+ indexerId: string;
494
+ providerId: string;
495
+ skill: string;
496
+ version: string;
497
+ integrity: string;
498
+ distribution: IndexerDistribution;
499
+ }
500
+ export declare function indexerProviderBundleIntegrity(files: readonly ResolvedProviderBundle["files"][number][]): string;
501
+ export declare function resolvedProviderReceiptDigest(bundle: ResolvedProviderBundle): string;
502
+ export declare function resolvedProviderStableFingerprint(bundle: ResolvedProviderBundle): string;
503
+ export declare function validateResolvedProviderBundle(value: unknown, expected: ExpectedProviderResolution, now?: Date): ResolvedProviderBundle;
504
+ export declare const indexerCliReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
505
+ protocol: z.ZodLiteral<"context.indexer.cli-release-manifest/v1">;
506
+ package: z.ZodLiteral<"@c4a/context-cli">;
507
+ version: z.ZodString;
508
+ issuer: z.ZodLiteral<"context4ai/context">;
509
+ bundles: z.ZodArray<z.ZodObject<{
510
+ skill: z.ZodEffects<z.ZodString, string, string>;
511
+ version: z.ZodString;
512
+ distribution: z.ZodObject<{
513
+ kind: z.ZodLiteral<"cli-bundled">;
514
+ locator: z.ZodString;
515
+ }, "strict", z.ZodTypeAny, {
516
+ kind: "cli-bundled";
517
+ locator: string;
518
+ }, {
519
+ kind: "cli-bundled";
520
+ locator: string;
521
+ }>;
522
+ integrity: z.ZodString;
523
+ manifest_digest: z.ZodString;
524
+ files: z.ZodArray<z.ZodObject<{
525
+ path: z.ZodEffects<z.ZodString, string, string>;
526
+ digest: z.ZodString;
527
+ }, "strict", z.ZodTypeAny, {
528
+ path: string;
529
+ digest: string;
530
+ }, {
531
+ path: string;
532
+ digest: string;
533
+ }>, "many">;
534
+ }, "strict", z.ZodTypeAny, {
535
+ files: {
536
+ path: string;
537
+ digest: string;
538
+ }[];
539
+ skill: string;
540
+ version: string;
541
+ integrity: string;
542
+ distribution: {
543
+ kind: "cli-bundled";
544
+ locator: string;
545
+ };
546
+ manifest_digest: string;
547
+ }, {
548
+ files: {
549
+ path: string;
550
+ digest: string;
551
+ }[];
552
+ skill: string;
553
+ version: string;
554
+ integrity: string;
555
+ distribution: {
556
+ kind: "cli-bundled";
557
+ locator: string;
558
+ };
559
+ manifest_digest: string;
560
+ }>, "many">;
561
+ }, "strict", z.ZodTypeAny, {
562
+ protocol: "context.indexer.cli-release-manifest/v1";
563
+ package: "@c4a/context-cli";
564
+ version: string;
565
+ issuer: "context4ai/context";
566
+ bundles: {
567
+ files: {
568
+ path: string;
569
+ digest: string;
570
+ }[];
571
+ skill: string;
572
+ version: string;
573
+ integrity: string;
574
+ distribution: {
575
+ kind: "cli-bundled";
576
+ locator: string;
577
+ };
578
+ manifest_digest: string;
579
+ }[];
580
+ }, {
581
+ protocol: "context.indexer.cli-release-manifest/v1";
582
+ package: "@c4a/context-cli";
583
+ version: string;
584
+ issuer: "context4ai/context";
585
+ bundles: {
586
+ files: {
587
+ path: string;
588
+ digest: string;
589
+ }[];
590
+ skill: string;
591
+ version: string;
592
+ integrity: string;
593
+ distribution: {
594
+ kind: "cli-bundled";
595
+ locator: string;
596
+ };
597
+ manifest_digest: string;
598
+ }[];
599
+ }>, {
600
+ protocol: "context.indexer.cli-release-manifest/v1";
601
+ package: "@c4a/context-cli";
602
+ version: string;
603
+ issuer: "context4ai/context";
604
+ bundles: {
605
+ files: {
606
+ path: string;
607
+ digest: string;
608
+ }[];
609
+ skill: string;
610
+ version: string;
611
+ integrity: string;
612
+ distribution: {
613
+ kind: "cli-bundled";
614
+ locator: string;
615
+ };
616
+ manifest_digest: string;
617
+ }[];
618
+ }, {
619
+ protocol: "context.indexer.cli-release-manifest/v1";
620
+ package: "@c4a/context-cli";
621
+ version: string;
622
+ issuer: "context4ai/context";
623
+ bundles: {
624
+ files: {
625
+ path: string;
626
+ digest: string;
627
+ }[];
628
+ skill: string;
629
+ version: string;
630
+ integrity: string;
631
+ distribution: {
632
+ kind: "cli-bundled";
633
+ locator: string;
634
+ };
635
+ manifest_digest: string;
636
+ }[];
637
+ }>;
638
+ export type IndexerCliReleaseManifest = z.infer<typeof indexerCliReleaseManifestSchema>;
639
+ export declare const indexerHostExecutionCapabilitiesSchema: z.ZodObject<{
640
+ protocol: z.ZodLiteral<"context.indexer.host-execution-capabilities/v1">;
641
+ adapter: z.ZodEffects<z.ZodString, string, string>;
642
+ adapter_version: z.ZodString;
643
+ sandboxed_program: z.ZodLiteral<false>;
644
+ }, "strict", z.ZodTypeAny, {
645
+ adapter: string;
646
+ protocol: "context.indexer.host-execution-capabilities/v1";
647
+ adapter_version: string;
648
+ sandboxed_program: false;
649
+ }, {
650
+ adapter: string;
651
+ protocol: "context.indexer.host-execution-capabilities/v1";
652
+ adapter_version: string;
653
+ sandboxed_program: false;
654
+ }>;
655
+ export type IndexerHostExecutionCapabilities = z.infer<typeof indexerHostExecutionCapabilitiesSchema>;
656
+ export declare const indexerProgramAuthorizationSchema: z.ZodObject<{
657
+ protocol: z.ZodLiteral<"context.indexer.program-authorization/v1">;
658
+ project_ref: z.ZodString;
659
+ provider_integrity: z.ZodString;
660
+ provider_fingerprint: z.ZodString;
661
+ manifest_digest: z.ZodString;
662
+ resource: z.ZodLiteral<"program">;
663
+ program_origin: z.ZodEnum<["provider-bundle", "project-local"]>;
664
+ program_digest: z.ZodString;
665
+ execution_digest: z.ZodString;
666
+ capability_set_digest: z.ZodString;
667
+ dependency_set_digest: z.ZodString;
668
+ scope_digest: z.ZodString;
669
+ execution_policy_digest: z.ZodString;
670
+ report_digest: z.ZodString;
671
+ authority_ref: z.ZodString;
672
+ authority_scope_digest: z.ZodString;
673
+ sandboxed_program: z.ZodLiteral<false>;
674
+ receipt_digest: z.ZodString;
675
+ }, "strict", z.ZodTypeAny, {
676
+ protocol: "context.indexer.program-authorization/v1";
677
+ scope_digest: string;
678
+ authority_ref: string;
679
+ resource: "program";
680
+ receipt_digest: string;
681
+ manifest_digest: string;
682
+ sandboxed_program: false;
683
+ project_ref: string;
684
+ provider_integrity: string;
685
+ provider_fingerprint: string;
686
+ program_origin: "provider-bundle" | "project-local";
687
+ program_digest: string;
688
+ execution_digest: string;
689
+ capability_set_digest: string;
690
+ dependency_set_digest: string;
691
+ execution_policy_digest: string;
692
+ report_digest: string;
693
+ authority_scope_digest: string;
694
+ }, {
695
+ protocol: "context.indexer.program-authorization/v1";
696
+ scope_digest: string;
697
+ authority_ref: string;
698
+ resource: "program";
699
+ receipt_digest: string;
700
+ manifest_digest: string;
701
+ sandboxed_program: false;
702
+ project_ref: string;
703
+ provider_integrity: string;
704
+ provider_fingerprint: string;
705
+ program_origin: "provider-bundle" | "project-local";
706
+ program_digest: string;
707
+ execution_digest: string;
708
+ capability_set_digest: string;
709
+ dependency_set_digest: string;
710
+ execution_policy_digest: string;
711
+ report_digest: string;
712
+ authority_scope_digest: string;
713
+ }>;
714
+ export type IndexerProgramAuthorization = z.infer<typeof indexerProgramAuthorizationSchema>;
715
+ export declare function indexerProgramExecutionDigest(execution: IndexerExecution): string;
716
+ export declare function indexerProgramIdentityDigest(input: {
717
+ origin: "provider-bundle" | "project-local";
718
+ path: string;
719
+ content_digest: string;
720
+ provider_integrity: string;
721
+ execution_digest: string;
722
+ }): string;
723
+ export declare function indexerProgramCapabilitySetDigest(capabilities: readonly string[]): string;
724
+ export declare function indexerRequestedProgramPolicyDigest(input: {
725
+ execution_digest: string;
726
+ capability_set_digest: string;
727
+ dependency_set_digest: string;
728
+ scope_digest: string;
729
+ limits: {
730
+ timeout_ms: number;
731
+ max_stdin_bytes: number;
732
+ max_stdout_bytes: number;
733
+ max_stderr_bytes: number;
734
+ };
735
+ }): string;
736
+ export declare function validateIndexerProgramAuthorization(value: unknown): IndexerProgramAuthorization;
737
+ export declare function buildIndexerProgramAuthorization(input: Omit<IndexerProgramAuthorization, "protocol" | "sandboxed_program" | "receipt_digest">): IndexerProgramAuthorization;
738
+ export type IndexerProgramExecutionLevel = "declarative" | "trusted-program" | "sandboxed-program" | "advisory-only";
739
+ export interface IndexerProgramExecutionPolicy {
740
+ protocol: "context.indexer.program-execution-policy/v1";
741
+ level: IndexerProgramExecutionLevel;
742
+ sandboxedProgram: false;
743
+ executable: boolean;
744
+ reason: "provider-is-declarative" | "first-party-provider" | "verified-provider" | "project-authorized-exact-digest" | "untrusted-program-without-sandbox";
745
+ }
746
+ export declare function deriveIndexerProgramExecutionPolicy(input: {
747
+ manifest: IndexerProviderManifest;
748
+ bundle: ResolvedProviderBundle;
749
+ host: IndexerHostExecutionCapabilities;
750
+ authorization?: IndexerProgramAuthorization;
751
+ projectRef: string;
752
+ }): IndexerProgramExecutionPolicy;