@c4a/context 0.7.4 → 0.7.8

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 (97) hide show
  1. package/README.md +17 -8
  2. package/README.zh-CN.md +15 -8
  3. package/docs/README.md +13 -1
  4. package/docs/README.zh-CN.md +13 -1
  5. package/docs/getting-started.md +95 -69
  6. package/docs/guides/agent-dialogue.md +19 -9
  7. package/docs/guides/agent-guide.md +52 -10
  8. package/docs/guides/code-indexer-skill-authoring.md +50 -5
  9. package/docs/guides/indexer-manifest-example.md +103 -0
  10. package/docs/guides/indexer-provider-and-customization.md +307 -31
  11. package/docs/guides/indexer-skill-creation.md +99 -0
  12. package/docs/guides/knowledge-updates.md +324 -0
  13. package/docs/guides/lark-resources.md +5 -1
  14. package/docs/guides/markdown-indexer-skill-authoring.md +25 -7
  15. package/docs/guides/note.md +37 -0
  16. package/docs/guides/package-outputs.md +22 -17
  17. package/docs/guides/sessions.md +50 -0
  18. package/docs/guides/workspace-commit.md +45 -0
  19. package/docs/guides/workspace-prepare.md +72 -0
  20. package/docs/guides/workspace-restore.md +59 -0
  21. package/docs/reference/code-extractors.md +23 -11
  22. package/docs/reference/indexer-provider-protocol.md +116 -22
  23. package/docs/reference/package-templates.md +10 -9
  24. package/docs/reference/project-api.md +47 -13
  25. package/docs/reference/template-variables.md +7 -7
  26. package/index.d.ts +11 -0
  27. package/index.js +1819 -584
  28. package/indexerAgentStepProtocol.d.ts +1284 -2060
  29. package/indexerApprovedKnowledge.d.ts +371 -0
  30. package/indexerArticlePlan.d.ts +83 -0
  31. package/indexerArtifact.d.ts +10 -7
  32. package/indexerArtifactDependencies.d.ts +7 -5
  33. package/indexerArtifactPolicy.d.ts +16 -16
  34. package/indexerArtifactResult.d.ts +76 -69
  35. package/indexerAuthoringFixture.d.ts +8 -8
  36. package/indexerAuthorizedWorksetView.d.ts +14 -14
  37. package/indexerBaseQuestionAmendment.d.ts +40 -0
  38. package/indexerCandidateCompile.d.ts +46 -36
  39. package/indexerCatalogFallback.d.ts +566 -48
  40. package/indexerCompositionFactDependencies.d.ts +16 -0
  41. package/indexerContentLayers.d.ts +6 -4
  42. package/indexerContractDeclaration.d.ts +3 -0
  43. package/indexerControlledProgram.d.ts +1039 -238
  44. package/indexerCustomizationDraft.d.ts +188 -0
  45. package/indexerDependencyView.d.ts +17 -17
  46. package/indexerEffectiveArtifact.d.ts +26 -15
  47. package/indexerExampleFactDependencies.d.ts +17 -0
  48. package/indexerExampleIdentityAudit.d.ts +2 -2
  49. package/indexerInventoryDisposition.d.ts +44 -44
  50. package/indexerKnowledgeDependency.d.ts +46 -0
  51. package/indexerLayerComposition.d.ts +92 -54
  52. package/indexerLayoutChange.d.ts +8 -8
  53. package/indexerLayoutProposalSet.d.ts +15 -10
  54. package/indexerLayoutResolver.d.ts +15 -6
  55. package/indexerLayoutTransition.d.ts +8 -8
  56. package/indexerLifecycle.d.ts +1 -1
  57. package/indexerMainRunLedger.d.ts +7 -0
  58. package/indexerMainRunProtocol.d.ts +872 -196
  59. package/indexerMainWorkset.d.ts +50 -0
  60. package/indexerNavigationArtifactPlan.d.ts +2 -2
  61. package/indexerOverlayQuestionAmendment.d.ts +56 -16
  62. package/indexerOverlayQuestionApplyProposal.d.ts +98 -26
  63. package/indexerPartitionPlan.d.ts +585 -40
  64. package/indexerPhysicalArtifactAudit.d.ts +2 -2
  65. package/indexerPhysicalArtifactManifest.d.ts +24 -24
  66. package/indexerPostAuthorRunLedger.d.ts +60 -34
  67. package/indexerPrimaryProjection.d.ts +2 -2
  68. package/indexerProfileContract.d.ts +28 -28
  69. package/indexerProgramRunProtocol.d.ts +868 -194
  70. package/indexerProjectProposal.d.ts +36 -8
  71. package/indexerProjectedArtifactFanOutAudit.d.ts +2 -2
  72. package/indexerProvider.d.ts +72 -28
  73. package/indexerProviderComposition.d.ts +4 -4
  74. package/indexerProviderRouting.d.ts +52 -0
  75. package/indexerProviderSelectionProposal.d.ts +48 -0
  76. package/indexerPublicContractFacts.d.ts +7 -0
  77. package/indexerPublicContractTable.d.ts +11 -0
  78. package/indexerReaderTargetInventory.d.ts +6 -6
  79. package/indexerReferenceOnlyAudit.d.ts +2 -2
  80. package/indexerRegistry.d.ts +52 -0
  81. package/indexerRequirementConfirmation.d.ts +48 -16
  82. package/indexerRequirementLifecycle.d.ts +154 -42
  83. package/indexerResultReconciliation.d.ts +12 -11
  84. package/indexerSemanticInput.d.ts +28014 -1847
  85. package/{indexerGeneratedAuthoringAudit.d.ts → indexerStructuredClaims.d.ts} +0 -84
  86. package/indexerStructuredDeclaration.d.ts +8 -8
  87. package/indexerTemplateRendering.d.ts +7 -7
  88. package/indexerToolSnapshot.d.ts +16 -16
  89. package/managedSources.d.ts +15 -0
  90. package/package.json +1 -1
  91. package/phases.d.ts +0 -3
  92. package/processedScopes.d.ts +75 -0
  93. package/readingStructure.d.ts +188 -0
  94. package/sessionMetadata.d.ts +49 -0
  95. package/sources.d.ts +9 -3
  96. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +15 -10
  97. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +8 -8
@@ -428,6 +428,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
428
428
  protocol: z.ZodLiteral<"context.indexer.registry/v1">;
429
429
  requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
430
430
  id: z.ZodEffects<z.ZodString, string, string>;
431
+ purpose: z.ZodOptional<z.ZodString>;
431
432
  reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
432
433
  coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
433
434
  questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -583,6 +584,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
583
584
  }[];
584
585
  }>;
585
586
  reason: z.ZodString;
587
+ paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
586
588
  }, "strict", z.ZodTypeAny, {
587
589
  id: string;
588
590
  scope: {
@@ -592,6 +594,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
592
594
  }[];
593
595
  };
594
596
  reason: string;
597
+ paths?: string[] | undefined;
595
598
  }, {
596
599
  id: string;
597
600
  scope: {
@@ -601,6 +604,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
601
604
  }[];
602
605
  };
603
606
  reason: string;
607
+ paths?: string[] | undefined;
604
608
  }>, "many">>;
605
609
  }, "strict", z.ZodTypeAny, {
606
610
  id: string;
@@ -618,6 +622,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
618
622
  module_refs: string[];
619
623
  }[];
620
624
  };
625
+ purpose?: string | undefined;
621
626
  questions?: {
622
627
  ref: string;
623
628
  authority: {
@@ -637,6 +642,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
637
642
  }[];
638
643
  };
639
644
  reason: string;
645
+ paths?: string[] | undefined;
640
646
  }[] | undefined;
641
647
  }, {
642
648
  id: string;
@@ -654,6 +660,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
654
660
  module_refs?: string[] | undefined;
655
661
  }[];
656
662
  };
663
+ purpose?: string | undefined;
657
664
  questions?: {
658
665
  ref: string;
659
666
  authority: {
@@ -673,6 +680,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
673
680
  }[];
674
681
  };
675
682
  reason: string;
683
+ paths?: string[] | undefined;
676
684
  }[] | undefined;
677
685
  }>, {
678
686
  id: string;
@@ -690,6 +698,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
690
698
  module_refs: string[];
691
699
  }[];
692
700
  };
701
+ purpose?: string | undefined;
693
702
  questions?: {
694
703
  ref: string;
695
704
  authority: {
@@ -709,6 +718,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
709
718
  }[];
710
719
  };
711
720
  reason: string;
721
+ paths?: string[] | undefined;
712
722
  }[] | undefined;
713
723
  }, {
714
724
  id: string;
@@ -726,6 +736,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
726
736
  module_refs?: string[] | undefined;
727
737
  }[];
728
738
  };
739
+ purpose?: string | undefined;
729
740
  questions?: {
730
741
  ref: string;
731
742
  authority: {
@@ -745,6 +756,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
745
756
  }[];
746
757
  };
747
758
  reason: string;
759
+ paths?: string[] | undefined;
748
760
  }[] | undefined;
749
761
  }>, "many">;
750
762
  indexers: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
@@ -1638,6 +1650,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1638
1650
  module_refs: string[];
1639
1651
  }[];
1640
1652
  };
1653
+ purpose?: string | undefined;
1641
1654
  questions?: {
1642
1655
  ref: string;
1643
1656
  authority: {
@@ -1657,6 +1670,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1657
1670
  }[];
1658
1671
  };
1659
1672
  reason: string;
1673
+ paths?: string[] | undefined;
1660
1674
  }[] | undefined;
1661
1675
  }[];
1662
1676
  indexers: {
@@ -1745,6 +1759,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1745
1759
  module_refs?: string[] | undefined;
1746
1760
  }[];
1747
1761
  };
1762
+ purpose?: string | undefined;
1748
1763
  questions?: {
1749
1764
  ref: string;
1750
1765
  authority: {
@@ -1764,6 +1779,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1764
1779
  }[];
1765
1780
  };
1766
1781
  reason: string;
1782
+ paths?: string[] | undefined;
1767
1783
  }[] | undefined;
1768
1784
  }[];
1769
1785
  indexers: {
@@ -1852,6 +1868,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1852
1868
  module_refs: string[];
1853
1869
  }[];
1854
1870
  };
1871
+ purpose?: string | undefined;
1855
1872
  questions?: {
1856
1873
  ref: string;
1857
1874
  authority: {
@@ -1871,6 +1888,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1871
1888
  }[];
1872
1889
  };
1873
1890
  reason: string;
1891
+ paths?: string[] | undefined;
1874
1892
  }[] | undefined;
1875
1893
  }[];
1876
1894
  indexers: {
@@ -1959,6 +1977,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1959
1977
  module_refs?: string[] | undefined;
1960
1978
  }[];
1961
1979
  };
1980
+ purpose?: string | undefined;
1962
1981
  questions?: {
1963
1982
  ref: string;
1964
1983
  authority: {
@@ -1978,6 +1997,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
1978
1997
  }[];
1979
1998
  };
1980
1999
  reason: string;
2000
+ paths?: string[] | undefined;
1981
2001
  }[] | undefined;
1982
2002
  }[];
1983
2003
  indexers: {
@@ -2057,25 +2077,25 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2057
2077
  content: z.ZodOptional<z.ZodString>;
2058
2078
  }, "strict", z.ZodTypeAny, {
2059
2079
  path: string;
2060
- operation: "write" | "delete";
2080
+ operation: "delete" | "write";
2061
2081
  base_digest: string | null;
2062
2082
  target_digest: string | null;
2063
2083
  content?: string | undefined;
2064
2084
  }, {
2065
2085
  path: string;
2066
- operation: "write" | "delete";
2086
+ operation: "delete" | "write";
2067
2087
  base_digest: string | null;
2068
2088
  target_digest: string | null;
2069
2089
  content?: string | undefined;
2070
2090
  }>, {
2071
2091
  path: string;
2072
- operation: "write" | "delete";
2092
+ operation: "delete" | "write";
2073
2093
  base_digest: string | null;
2074
2094
  target_digest: string | null;
2075
2095
  content?: string | undefined;
2076
2096
  }, {
2077
2097
  path: string;
2078
- operation: "write" | "delete";
2098
+ operation: "delete" | "write";
2079
2099
  base_digest: string | null;
2080
2100
  target_digest: string | null;
2081
2101
  content?: string | undefined;
@@ -2330,7 +2350,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2330
2350
  }, "strict", z.ZodTypeAny, {
2331
2351
  targets: {
2332
2352
  path: string;
2333
- operation: "write" | "delete";
2353
+ operation: "delete" | "write";
2334
2354
  base_digest: string | null;
2335
2355
  target_digest: string | null;
2336
2356
  content?: string | undefined;
@@ -2398,6 +2418,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2398
2418
  module_refs: string[];
2399
2419
  }[];
2400
2420
  };
2421
+ purpose?: string | undefined;
2401
2422
  questions?: {
2402
2423
  ref: string;
2403
2424
  authority: {
@@ -2417,6 +2438,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2417
2438
  }[];
2418
2439
  };
2419
2440
  reason: string;
2441
+ paths?: string[] | undefined;
2420
2442
  }[] | undefined;
2421
2443
  }[];
2422
2444
  indexers: {
@@ -2495,7 +2517,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2495
2517
  }, {
2496
2518
  targets: {
2497
2519
  path: string;
2498
- operation: "write" | "delete";
2520
+ operation: "delete" | "write";
2499
2521
  base_digest: string | null;
2500
2522
  target_digest: string | null;
2501
2523
  content?: string | undefined;
@@ -2563,6 +2585,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2563
2585
  module_refs?: string[] | undefined;
2564
2586
  }[];
2565
2587
  };
2588
+ purpose?: string | undefined;
2566
2589
  questions?: {
2567
2590
  ref: string;
2568
2591
  authority: {
@@ -2582,6 +2605,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2582
2605
  }[];
2583
2606
  };
2584
2607
  reason: string;
2608
+ paths?: string[] | undefined;
2585
2609
  }[] | undefined;
2586
2610
  }[];
2587
2611
  indexers: {
@@ -2660,7 +2684,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2660
2684
  }>, {
2661
2685
  targets: {
2662
2686
  path: string;
2663
- operation: "write" | "delete";
2687
+ operation: "delete" | "write";
2664
2688
  base_digest: string | null;
2665
2689
  target_digest: string | null;
2666
2690
  content?: string | undefined;
@@ -2728,6 +2752,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2728
2752
  module_refs: string[];
2729
2753
  }[];
2730
2754
  };
2755
+ purpose?: string | undefined;
2731
2756
  questions?: {
2732
2757
  ref: string;
2733
2758
  authority: {
@@ -2747,6 +2772,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2747
2772
  }[];
2748
2773
  };
2749
2774
  reason: string;
2775
+ paths?: string[] | undefined;
2750
2776
  }[] | undefined;
2751
2777
  }[];
2752
2778
  indexers: {
@@ -2825,7 +2851,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2825
2851
  }, {
2826
2852
  targets: {
2827
2853
  path: string;
2828
- operation: "write" | "delete";
2854
+ operation: "delete" | "write";
2829
2855
  base_digest: string | null;
2830
2856
  target_digest: string | null;
2831
2857
  content?: string | undefined;
@@ -2893,6 +2919,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2893
2919
  module_refs?: string[] | undefined;
2894
2920
  }[];
2895
2921
  };
2922
+ purpose?: string | undefined;
2896
2923
  questions?: {
2897
2924
  ref: string;
2898
2925
  authority: {
@@ -2912,6 +2939,7 @@ export declare const indexerProjectProposalSchema: z.ZodEffects<z.ZodObject<{
2912
2939
  }[];
2913
2940
  };
2914
2941
  reason: string;
2942
+ paths?: string[] | undefined;
2915
2943
  }[] | undefined;
2916
2944
  }[];
2917
2945
  indexers: {
@@ -77,7 +77,6 @@ export declare const indexerProjectedArtifactFanOutAuditSchema: z.ZodObject<{
77
77
  revision_above: 300;
78
78
  };
79
79
  state: "warning" | "ready" | "plan-revision-required";
80
- audit_digest: string;
81
80
  partition_plan_hash: string;
82
81
  outcome: "projected-artifact-fan-out-current" | "indexer-plan-revision-required";
83
82
  user_gate_required: false;
@@ -87,6 +86,7 @@ export declare const indexerProjectedArtifactFanOutAuditSchema: z.ZodObject<{
87
86
  legally_assigned_artifact_count: number;
88
87
  unassigned_projected_artifact_count: number;
89
88
  };
89
+ audit_digest: string;
90
90
  projected_artifact_plan_digest: string;
91
91
  artifact_bundle_set_digest: string;
92
92
  unassigned_projection_refs_digest: string;
@@ -105,7 +105,6 @@ export declare const indexerProjectedArtifactFanOutAuditSchema: z.ZodObject<{
105
105
  revision_above: 300;
106
106
  };
107
107
  state: "warning" | "ready" | "plan-revision-required";
108
- audit_digest: string;
109
108
  partition_plan_hash: string;
110
109
  outcome: "projected-artifact-fan-out-current" | "indexer-plan-revision-required";
111
110
  user_gate_required: false;
@@ -115,6 +114,7 @@ export declare const indexerProjectedArtifactFanOutAuditSchema: z.ZodObject<{
115
114
  legally_assigned_artifact_count: number;
116
115
  unassigned_projected_artifact_count: number;
117
116
  };
117
+ audit_digest: string;
118
118
  projected_artifact_plan_digest: string;
119
119
  artifact_bundle_set_digest: string;
120
120
  unassigned_projection_refs_digest: string;
@@ -1290,17 +1290,29 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1290
1290
  profiles: string[];
1291
1291
  }>, "many">>;
1292
1292
  templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1293
+ kind: z.ZodOptional<z.ZodEnum<["procedure", "page-program"]>>;
1293
1294
  id: z.ZodEffects<z.ZodString, string, string>;
1294
1295
  profile: z.ZodEffects<z.ZodString, string, string>;
1295
1296
  path: z.ZodEffects<z.ZodString, string, string>;
1297
+ reader_goal: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1298
+ guidance_path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1299
+ delivery: z.ZodOptional<z.ZodEnum<["profile", "selected"]>>;
1296
1300
  }, "strict", z.ZodTypeAny, {
1297
- id: string;
1298
1301
  path: string;
1302
+ id: string;
1299
1303
  profile: string;
1304
+ kind?: "procedure" | "page-program" | undefined;
1305
+ reader_goal?: string | undefined;
1306
+ guidance_path?: string | undefined;
1307
+ delivery?: "profile" | "selected" | undefined;
1300
1308
  }, {
1301
- id: string;
1302
1309
  path: string;
1310
+ id: string;
1303
1311
  profile: string;
1312
+ kind?: "procedure" | "page-program" | undefined;
1313
+ reader_goal?: string | undefined;
1314
+ guidance_path?: string | undefined;
1315
+ delivery?: "profile" | "selected" | undefined;
1304
1316
  }>, "many">>;
1305
1317
  config_schema: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1306
1318
  forbidden_fallbacks: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
@@ -1320,9 +1332,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1320
1332
  profiles: string[];
1321
1333
  }[] | undefined;
1322
1334
  templates?: {
1323
- id: string;
1324
1335
  path: string;
1336
+ id: string;
1325
1337
  profile: string;
1338
+ kind?: "procedure" | "page-program" | undefined;
1339
+ reader_goal?: string | undefined;
1340
+ guidance_path?: string | undefined;
1341
+ delivery?: "profile" | "selected" | undefined;
1326
1342
  }[] | undefined;
1327
1343
  config_schema?: string | undefined;
1328
1344
  forbidden_fallbacks?: string[] | undefined;
@@ -1342,9 +1358,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1342
1358
  profiles: string[];
1343
1359
  }[] | undefined;
1344
1360
  templates?: {
1345
- id: string;
1346
1361
  path: string;
1362
+ id: string;
1347
1363
  profile: string;
1364
+ kind?: "procedure" | "page-program" | undefined;
1365
+ reader_goal?: string | undefined;
1366
+ guidance_path?: string | undefined;
1367
+ delivery?: "profile" | "selected" | undefined;
1348
1368
  }[] | undefined;
1349
1369
  config_schema?: string | undefined;
1350
1370
  forbidden_fallbacks?: string[] | undefined;
@@ -1364,9 +1384,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1364
1384
  profiles: string[];
1365
1385
  }[] | undefined;
1366
1386
  templates?: {
1367
- id: string;
1368
1387
  path: string;
1388
+ id: string;
1369
1389
  profile: string;
1390
+ kind?: "procedure" | "page-program" | undefined;
1391
+ reader_goal?: string | undefined;
1392
+ guidance_path?: string | undefined;
1393
+ delivery?: "profile" | "selected" | undefined;
1370
1394
  }[] | undefined;
1371
1395
  config_schema?: string | undefined;
1372
1396
  forbidden_fallbacks?: string[] | undefined;
@@ -1386,9 +1410,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1386
1410
  profiles: string[];
1387
1411
  }[] | undefined;
1388
1412
  templates?: {
1389
- id: string;
1390
1413
  path: string;
1414
+ id: string;
1391
1415
  profile: string;
1416
+ kind?: "procedure" | "page-program" | undefined;
1417
+ reader_goal?: string | undefined;
1418
+ guidance_path?: string | undefined;
1419
+ delivery?: "profile" | "selected" | undefined;
1392
1420
  }[] | undefined;
1393
1421
  config_schema?: string | undefined;
1394
1422
  forbidden_fallbacks?: string[] | undefined;
@@ -1438,51 +1466,51 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1438
1466
  required: z.ZodBoolean;
1439
1467
  }, "strict", z.ZodTypeAny, {
1440
1468
  type: "enum";
1441
- id: string;
1442
1469
  values: string[];
1470
+ id: string;
1443
1471
  required: boolean;
1444
1472
  }, {
1445
1473
  type: "enum";
1446
- id: string;
1447
1474
  values: string[];
1475
+ id: string;
1448
1476
  required: boolean;
1449
1477
  }>, {
1450
1478
  type: "enum";
1451
- id: string;
1452
1479
  values: string[];
1480
+ id: string;
1453
1481
  required: boolean;
1454
1482
  }, {
1455
1483
  type: "enum";
1456
- id: string;
1457
1484
  values: string[];
1485
+ id: string;
1458
1486
  required: boolean;
1459
1487
  }>, "many">;
1460
1488
  }, "strict", z.ZodTypeAny, {
1461
1489
  axes: {
1462
1490
  type: "enum";
1463
- id: string;
1464
1491
  values: string[];
1492
+ id: string;
1465
1493
  required: boolean;
1466
1494
  }[];
1467
1495
  }, {
1468
1496
  axes: {
1469
1497
  type: "enum";
1470
- id: string;
1471
1498
  values: string[];
1499
+ id: string;
1472
1500
  required: boolean;
1473
1501
  }[];
1474
1502
  }>, {
1475
1503
  axes: {
1476
1504
  type: "enum";
1477
- id: string;
1478
1505
  values: string[];
1506
+ id: string;
1479
1507
  required: boolean;
1480
1508
  }[];
1481
1509
  }, {
1482
1510
  axes: {
1483
1511
  type: "enum";
1484
- id: string;
1485
1512
  values: string[];
1513
+ id: string;
1486
1514
  required: boolean;
1487
1515
  }[];
1488
1516
  }>>;
@@ -1584,8 +1612,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1584
1612
  variant_schema?: {
1585
1613
  axes: {
1586
1614
  type: "enum";
1587
- id: string;
1588
1615
  values: string[];
1616
+ id: string;
1589
1617
  required: boolean;
1590
1618
  }[];
1591
1619
  } | undefined;
@@ -1608,8 +1636,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1608
1636
  variant_schema?: {
1609
1637
  axes: {
1610
1638
  type: "enum";
1611
- id: string;
1612
1639
  values: string[];
1640
+ id: string;
1613
1641
  required: boolean;
1614
1642
  }[];
1615
1643
  } | undefined;
@@ -1634,8 +1662,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1634
1662
  variant_schema?: {
1635
1663
  axes: {
1636
1664
  type: "enum";
1637
- id: string;
1638
1665
  values: string[];
1666
+ id: string;
1639
1667
  required: boolean;
1640
1668
  }[];
1641
1669
  } | undefined;
@@ -1660,8 +1688,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1660
1688
  variant_schema?: {
1661
1689
  axes: {
1662
1690
  type: "enum";
1663
- id: string;
1664
1691
  values: string[];
1692
+ id: string;
1665
1693
  required: boolean;
1666
1694
  }[];
1667
1695
  } | undefined;
@@ -1686,8 +1714,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1686
1714
  variant_schema?: {
1687
1715
  axes: {
1688
1716
  type: "enum";
1689
- id: string;
1690
1717
  values: string[];
1718
+ id: string;
1691
1719
  required: boolean;
1692
1720
  }[];
1693
1721
  } | undefined;
@@ -1712,8 +1740,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1712
1740
  variant_schema?: {
1713
1741
  axes: {
1714
1742
  type: "enum";
1715
- id: string;
1716
1743
  values: string[];
1744
+ id: string;
1717
1745
  required: boolean;
1718
1746
  }[];
1719
1747
  } | undefined;
@@ -1737,9 +1765,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1737
1765
  profiles: string[];
1738
1766
  }[] | undefined;
1739
1767
  templates?: {
1740
- id: string;
1741
1768
  path: string;
1769
+ id: string;
1742
1770
  profile: string;
1771
+ kind?: "procedure" | "page-program" | undefined;
1772
+ reader_goal?: string | undefined;
1773
+ guidance_path?: string | undefined;
1774
+ delivery?: "profile" | "selected" | undefined;
1743
1775
  }[] | undefined;
1744
1776
  config_schema?: string | undefined;
1745
1777
  forbidden_fallbacks?: string[] | undefined;
@@ -1886,8 +1918,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1886
1918
  variant_schema?: {
1887
1919
  axes: {
1888
1920
  type: "enum";
1889
- id: string;
1890
1921
  values: string[];
1922
+ id: string;
1891
1923
  required: boolean;
1892
1924
  }[];
1893
1925
  } | undefined;
@@ -1911,9 +1943,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
1911
1943
  profiles: string[];
1912
1944
  }[] | undefined;
1913
1945
  templates?: {
1914
- id: string;
1915
1946
  path: string;
1947
+ id: string;
1916
1948
  profile: string;
1949
+ kind?: "procedure" | "page-program" | undefined;
1950
+ reader_goal?: string | undefined;
1951
+ guidance_path?: string | undefined;
1952
+ delivery?: "profile" | "selected" | undefined;
1917
1953
  }[] | undefined;
1918
1954
  config_schema?: string | undefined;
1919
1955
  forbidden_fallbacks?: string[] | undefined;
@@ -2060,8 +2096,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
2060
2096
  variant_schema?: {
2061
2097
  axes: {
2062
2098
  type: "enum";
2063
- id: string;
2064
2099
  values: string[];
2100
+ id: string;
2065
2101
  required: boolean;
2066
2102
  }[];
2067
2103
  } | undefined;
@@ -2085,9 +2121,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
2085
2121
  profiles: string[];
2086
2122
  }[] | undefined;
2087
2123
  templates?: {
2088
- id: string;
2089
2124
  path: string;
2125
+ id: string;
2090
2126
  profile: string;
2127
+ kind?: "procedure" | "page-program" | undefined;
2128
+ reader_goal?: string | undefined;
2129
+ guidance_path?: string | undefined;
2130
+ delivery?: "profile" | "selected" | undefined;
2091
2131
  }[] | undefined;
2092
2132
  config_schema?: string | undefined;
2093
2133
  forbidden_fallbacks?: string[] | undefined;
@@ -2234,8 +2274,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
2234
2274
  variant_schema?: {
2235
2275
  axes: {
2236
2276
  type: "enum";
2237
- id: string;
2238
2277
  values: string[];
2278
+ id: string;
2239
2279
  required: boolean;
2240
2280
  }[];
2241
2281
  } | undefined;
@@ -2259,9 +2299,13 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
2259
2299
  profiles: string[];
2260
2300
  }[] | undefined;
2261
2301
  templates?: {
2262
- id: string;
2263
2302
  path: string;
2303
+ id: string;
2264
2304
  profile: string;
2305
+ kind?: "procedure" | "page-program" | undefined;
2306
+ reader_goal?: string | undefined;
2307
+ guidance_path?: string | undefined;
2308
+ delivery?: "profile" | "selected" | undefined;
2265
2309
  }[] | undefined;
2266
2310
  config_schema?: string | undefined;
2267
2311
  forbidden_fallbacks?: string[] | undefined;
@@ -2408,8 +2452,8 @@ export declare const indexerProviderManifestSchema: z.ZodEffects<z.ZodObject<{
2408
2452
  variant_schema?: {
2409
2453
  axes: {
2410
2454
  type: "enum";
2411
- id: string;
2412
2455
  values: string[];
2456
+ id: string;
2413
2457
  required: boolean;
2414
2458
  }[];
2415
2459
  } | undefined;
@@ -932,7 +932,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
932
932
  produces: "context.indexer.tool-snapshot/v1";
933
933
  }>;
934
934
  }, "strict", z.ZodTypeAny, {
935
- provider_layer_id: string;
936
935
  declaration: {
937
936
  id: string;
938
937
  operations: string[];
@@ -941,8 +940,8 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
941
940
  request: string;
942
941
  produces: "context.indexer.tool-snapshot/v1";
943
942
  };
944
- }, {
945
943
  provider_layer_id: string;
944
+ }, {
946
945
  declaration: {
947
946
  id: string;
948
947
  operations: string[];
@@ -951,6 +950,7 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
951
950
  request: string;
952
951
  produces: "context.indexer.tool-snapshot/v1";
953
952
  };
953
+ provider_layer_id: string;
954
954
  }>, "many">;
955
955
  logical_units: z.ZodArray<z.ZodObject<{
956
956
  id: z.ZodEffects<z.ZodString, string, string>;
@@ -1082,7 +1082,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1082
1082
  provider_layer_ids: string[];
1083
1083
  }[];
1084
1084
  tool_sources: {
1085
- provider_layer_id: string;
1086
1085
  declaration: {
1087
1086
  id: string;
1088
1087
  operations: string[];
@@ -1091,6 +1090,7 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1091
1090
  request: string;
1092
1091
  produces: "context.indexer.tool-snapshot/v1";
1093
1092
  };
1093
+ provider_layer_id: string;
1094
1094
  }[];
1095
1095
  logical_units: {
1096
1096
  id: string;
@@ -1216,7 +1216,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1216
1216
  provider_layer_ids: string[];
1217
1217
  }[];
1218
1218
  tool_sources: {
1219
- provider_layer_id: string;
1220
1219
  declaration: {
1221
1220
  id: string;
1222
1221
  operations: string[];
@@ -1225,6 +1224,7 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1225
1224
  request: string;
1226
1225
  produces: "context.indexer.tool-snapshot/v1";
1227
1226
  };
1227
+ provider_layer_id: string;
1228
1228
  }[];
1229
1229
  logical_units: {
1230
1230
  id: string;