@fenglimg/fabric-shared 2.0.0-rc.1 → 2.0.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.
package/dist/index.js CHANGED
@@ -6,33 +6,44 @@ import {
6
6
  enMessages,
7
7
  normalizeLocale,
8
8
  zhCNMessages
9
- } from "./chunk-KHIM6MWS.js";
9
+ } from "./chunk-U2SR2M4L.js";
10
10
  import {
11
+ FabExtractKnowledgeInputSchema,
12
+ FabExtractKnowledgeInputShape,
13
+ FabExtractKnowledgeOutputSchema,
14
+ FabReviewInputSchema,
15
+ FabReviewOutputSchema,
11
16
  KNOWLEDGE_TYPE_CODES,
12
17
  KnowledgeEntryFrontmatterSchema,
13
18
  KnowledgeTypeSchema,
14
19
  LayerSchema,
15
20
  MaturitySchema,
21
+ PROPOSED_REASON_DESCRIPTIONS,
22
+ ProposedReasonSchema,
16
23
  StableIdSchema,
17
24
  annotateIntentRequestSchema,
25
+ fabExtractKnowledgeAnnotations,
26
+ fabReviewAnnotations,
18
27
  formatKnowledgeId,
19
- getRulesAnnotations,
20
- getRulesInputSchema,
21
- getRulesOutputSchema,
28
+ getKnowledgeAnnotations,
29
+ getKnowledgeInputSchema,
30
+ getKnowledgeOutputSchema,
22
31
  historyStateQuerySchema,
23
32
  humanLockApproveRequestSchema,
24
33
  humanLockFileParamsSchema,
34
+ knowledgeSectionsAnnotations,
35
+ knowledgeSectionsInputSchema,
36
+ knowledgeSectionsOutputSchema,
25
37
  ledgerQuerySchema,
26
38
  ledgerSourceSchema,
27
39
  parseKnowledgeId,
28
40
  planContextAnnotations,
41
+ planContextHintNarrowEntrySchema,
42
+ planContextHintOutputSchema,
29
43
  planContextInputSchema,
30
44
  planContextOutputSchema,
31
- ruleSectionsAnnotations,
32
- ruleSectionsInputSchema,
33
- ruleSectionsOutputSchema,
34
45
  structuredWarningSchema
35
- } from "./chunk-HACPXMLL.js";
46
+ } from "./chunk-VQDCDCJA.js";
36
47
  import "./chunk-LXNCAKJZ.js";
37
48
 
38
49
  // src/schemas/agents-meta.ts
@@ -59,7 +70,13 @@ var ruleDescriptionSchema = z.object({
59
70
  layer_reason: z.string().optional(),
60
71
  created_at: z.string().optional(),
61
72
  // v2/rc.2: flat flow-style YAML array; populated by init-scan from forensic tech stack and editable by user. Used by rc.3 review skill for tag-filter search.
62
- tags: z.array(z.string()).default([]).optional()
73
+ tags: z.array(z.string()).default([]).optional(),
74
+ // v2.0-rc.5 (C1): relevance scope/paths drive plan-context-hint narrowing.
75
+ // Defaults applied so existing entries lacking these fields parse cleanly:
76
+ // relevance_scope → 'broad' (always-surface, safe default)
77
+ // relevance_paths → [] (no path anchors)
78
+ relevance_scope: z.enum(["narrow", "broad"]).default("broad"),
79
+ relevance_paths: z.array(z.string()).default([])
63
80
  }).strict();
64
81
  var ruleDescriptionIndexItemSchema = z.object({
65
82
  stable_id: z.string(),
@@ -72,11 +89,6 @@ var agentsMetaNodeBaseSchema = z.object({
72
89
  file: z.string(),
73
90
  content_ref: z.string().optional(),
74
91
  scope_glob: z.string(),
75
- deps: z.array(z.string()),
76
- priority: z.enum(["high", "medium", "low"]),
77
- level: agentsLayerSchema.optional(),
78
- layer: agentsLayerSchema,
79
- topology_type: agentsTopologyTypeSchema,
80
92
  hash: z.string(),
81
93
  stable_id: z.string().optional(),
82
94
  identity_source: agentsIdentitySourceSchema.optional(),
@@ -86,7 +98,7 @@ var agentsMetaNodeBaseSchema = z.object({
86
98
  }).optional(),
87
99
  description: ruleDescriptionSchema.optional(),
88
100
  sections: z.array(z.string()).optional()
89
- });
101
+ }).passthrough();
90
102
  var agentsMetaNodeSchema = z.preprocess((value) => {
91
103
  if (!isRecord(value) || typeof value.file !== "string") {
92
104
  return value;
@@ -205,11 +217,11 @@ function isRecord(value) {
205
217
  return typeof value === "object" && value !== null;
206
218
  }
207
219
 
208
- // src/schemas/rule-test-index.ts
220
+ // src/schemas/knowledge-test-index.ts
209
221
  import { z as z2 } from "zod";
210
- var RULE_TEST_INDEX_SCHEMA_VERSION = 1;
222
+ var KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION = 1;
211
223
  var hashSchema = z2.string().min(1);
212
- var ruleTestLinkSchema = z2.object({
224
+ var knowledgeTestLinkSchema = z2.object({
213
225
  rule_stable_id: z2.string().min(1),
214
226
  rule_file: z2.string().min(1),
215
227
  rule_hash: hashSchema,
@@ -219,20 +231,20 @@ var ruleTestLinkSchema = z2.object({
219
231
  previous_test_hash: hashSchema.optional(),
220
232
  annotation_line: z2.number().int().positive()
221
233
  }).strict();
222
- var ruleTestOrphanAnnotationSchema = z2.object({
234
+ var knowledgeTestOrphanAnnotationSchema = z2.object({
223
235
  rule_stable_id: z2.string().min(1),
224
236
  test_file: z2.string().min(1),
225
237
  test_hash: hashSchema,
226
238
  previous_test_hash: hashSchema.optional(),
227
239
  annotation_line: z2.number().int().positive()
228
240
  }).strict();
229
- var ruleTestIndexSchema = z2.object({
230
- schema_version: z2.literal(RULE_TEST_INDEX_SCHEMA_VERSION),
241
+ var knowledgeTestIndexSchema = z2.object({
242
+ schema_version: z2.literal(KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION),
231
243
  generated_at: z2.string().datetime({ offset: true }),
232
244
  revision: z2.string().min(1).optional(),
233
245
  previous_revision: z2.string().min(1).optional(),
234
- links: z2.array(ruleTestLinkSchema),
235
- orphan_annotations: z2.array(ruleTestOrphanAnnotationSchema)
246
+ links: z2.array(knowledgeTestLinkSchema),
247
+ orphan_annotations: z2.array(knowledgeTestOrphanAnnotationSchema)
236
248
  }).strict();
237
249
 
238
250
  // src/schemas/ledger-entry.ts
@@ -292,13 +304,74 @@ var mcpPayloadLimitsSchema = z5.object({
292
304
  warnBytes: z5.number().int().positive().optional(),
293
305
  hardBytes: z5.number().int().positive().optional()
294
306
  }).optional();
307
+ var knowledgeLanguageSchema = z5.enum(["match-existing", "zh-CN", "en"]);
308
+ var defaultLayerFilterSchema = z5.enum(["team", "personal", "both"]);
295
309
  var fabricConfigSchema = z5.object({
296
310
  clientPaths: clientPathsSchema.optional(),
297
311
  externalFixturePath: z5.string().optional(),
298
312
  scanIgnores: z5.array(z5.string()).optional(),
299
313
  auditMode: auditModeSchema.optional(),
300
314
  audit_mode: auditModeSchema.optional(),
301
- mcpPayloadLimits: mcpPayloadLimitsSchema
315
+ mcpPayloadLimits: mcpPayloadLimitsSchema,
316
+ // Backward-compat: both fields are optional with defaults so existing
317
+ // fabric-config.json files (pre-grill-followup) parse unchanged. The default
318
+ // values themselves are load-bearing — see docs/data-schema.md.
319
+ knowledge_language: knowledgeLanguageSchema.optional().default("match-existing"),
320
+ default_layer_filter: defaultLayerFilterSchema.optional().default("both"),
321
+ // Cooldown for the fabric-hint Stop hook (formerly archive-hint, renamed in
322
+ // rc.5 TASK-010). After ANY of the three signals (archive / review / import)
323
+ // fires, that signal stays silent for this many hours regardless of state
324
+ // drift — purely a reminder throttle. Default 12 means "at most twice per
325
+ // day if the user keeps ignoring it." Set to 24 to align with the archive
326
+ // trigger threshold. The legacy `archive_hint_` key is retained for backward
327
+ // compat with existing user fabric-config.json files.
328
+ archive_hint_cooldown_hours: z5.number().int().positive().optional().default(12),
329
+ // Underseed-node threshold for the fabric-hint Stop hook's import signal
330
+ // (rc.5 TASK-010). When the canonical knowledge node count is strictly less
331
+ // than this value AND a successful `init_scan_completed` event happened at
332
+ // least 24h ago AND no `knowledge_proposed` event has fired in the last 24h,
333
+ // the hook recommends running the fabric-import skill. Default 10 reflects
334
+ // the rule-of-thumb that a workspace with fewer than ten knowledge entries
335
+ // is below the floor for plan_context retrieval to be meaningful. Also
336
+ // consumed by `doctor` lint #22 (knowledge_underseeded).
337
+ underseed_node_threshold: z5.number().int().positive().optional().default(10),
338
+ // Edit-count threshold for the fabric-hint Stop hook's Signal A
339
+ // (rc.6 TASK-022 / E5). Signal A fires when EITHER (a) >=24h have elapsed
340
+ // since the last `knowledge_proposed` event, OR (b) >=archive_edit_threshold
341
+ // PreToolUse fires have been recorded in `.fabric/.cache/edit-counter` since
342
+ // the last `knowledge_proposed` event. The edit-counter sidecar is populated
343
+ // by the rc.6 PreToolUse hook (TASK-020 / E4) — one ISO-8601 line per fire.
344
+ // Default 20 reflects the rule-of-thumb "after ~20 Edit/Write operations
345
+ // there is probably something worth archiving"; lowered values nag more
346
+ // aggressively, higher values rely on the 24h fallback. Missing or absent
347
+ // edit-counter file degrades safely to the 24h-only path.
348
+ archive_edit_threshold: z5.number().int().positive().optional().default(20),
349
+ // rc.7 T7: hours-since-last-knowledge_proposed cutoff for Signal A's
350
+ // time branch. Was hardcoded as 24 in fabric-hint.cjs's THRESHOLD_HOURS;
351
+ // externalized so chatty workspaces can lower the bar and quiet ones can
352
+ // raise it. Default 24 preserves rc.6 behavior. See docs/configuration.md.
353
+ archive_hint_hours: z5.number().int().positive().optional().default(24),
354
+ // rc.7 T7: pending-count cutoff for Signal B (review skill). Was
355
+ // hardcoded as 10 in fabric-hint.cjs's THRESHOLD_PENDING_COUNT.
356
+ // Default 10 preserves rc.6 behavior. See docs/configuration.md for
357
+ // small/medium/large repo recommendations.
358
+ review_hint_pending_count: z5.number().int().positive().optional().default(10),
359
+ // rc.7 T7: pending-age cutoff (in days) for Signal B (review skill).
360
+ // Was hardcoded as 7 in fabric-hint.cjs's THRESHOLD_PENDING_AGE_DAYS.
361
+ // Default 7 preserves rc.6 behavior. See docs/configuration.md.
362
+ review_hint_pending_age_days: z5.number().int().positive().optional().default(7),
363
+ // rc.7 T7 + T10 pre-wiring: days-since-last-doctor cutoff for the future
364
+ // Signal D (maintenance hint). T10 will consume this to decide when the
365
+ // fabric-hint Stop hook surfaces a "run `fabric doctor`" reminder.
366
+ // Default 14 reflects a fortnightly cadence — long enough to avoid nag,
367
+ // short enough to catch index drift before it compounds.
368
+ maintenance_hint_days: z5.number().int().positive().optional().default(14),
369
+ // rc.7 T7 + T10 pre-wiring: cooldown between Signal D reminders, in
370
+ // days. Once Signal D fires, it stays silent for this many days even if
371
+ // the user doesn't run doctor. Default 7 keeps the reminder weekly at
372
+ // worst — pairing 14d trigger + 7d cooldown means at most ~2 reminders
373
+ // per month for a workspace that ignores them.
374
+ maintenance_hint_cooldown_days: z5.number().int().positive().optional().default(7)
302
375
  });
303
376
 
304
377
  // src/schemas/forensic-report.ts
@@ -569,7 +642,7 @@ var metaReconciledOnStartupEventSchema = z9.object({
569
642
  event_type: z9.literal("meta_reconciled_on_startup"),
570
643
  reconciled_files: z9.array(z9.string()),
571
644
  duration_ms: z9.number().int().nonnegative(),
572
- source: z9.literal("reconcileRules")
645
+ source: z9.literal("reconcileKnowledge")
573
646
  });
574
647
  var metaReconciledEventSchema = z9.object({
575
648
  ...eventLedgerEnvelopeSchema,
@@ -577,7 +650,7 @@ var metaReconciledEventSchema = z9.object({
577
650
  reconciled_files: z9.array(z9.string()),
578
651
  duration_ms: z9.number().int().nonnegative(),
579
652
  trigger: z9.enum(["doctor", "manual"]),
580
- source: z9.literal("reconcileRules")
653
+ source: z9.literal("reconcileKnowledge")
581
654
  });
582
655
  var claudeSkillPathMigratedEventSchema = z9.object({
583
656
  ...eventLedgerEnvelopeSchema,
@@ -604,6 +677,125 @@ var initScanCompletedEventSchema = z9.object({
604
677
  duration_ms: z9.number().int().nonnegative(),
605
678
  source: z9.enum(["init", "scan", "doctor_fix"]).optional()
606
679
  });
680
+ var knowledgeProposedEventSchema = z9.object({
681
+ ...eventLedgerEnvelopeSchema,
682
+ event_type: z9.literal("knowledge_proposed"),
683
+ stable_id: z9.string().optional(),
684
+ timestamp: z9.string().datetime(),
685
+ reason: z9.string().optional()
686
+ });
687
+ var knowledgePromoteStartedEventSchema = z9.object({
688
+ ...eventLedgerEnvelopeSchema,
689
+ event_type: z9.literal("knowledge_promote_started"),
690
+ stable_id: z9.string().optional(),
691
+ timestamp: z9.string().datetime(),
692
+ reason: z9.string().optional()
693
+ });
694
+ var knowledgePromotedEventSchema = z9.object({
695
+ ...eventLedgerEnvelopeSchema,
696
+ event_type: z9.literal("knowledge_promoted"),
697
+ stable_id: z9.string().optional(),
698
+ timestamp: z9.string().datetime(),
699
+ reason: z9.string().optional()
700
+ });
701
+ var knowledgePromoteFailedEventSchema = z9.object({
702
+ ...eventLedgerEnvelopeSchema,
703
+ event_type: z9.literal("knowledge_promote_failed"),
704
+ stable_id: z9.string().optional(),
705
+ timestamp: z9.string().datetime(),
706
+ reason: z9.string()
707
+ });
708
+ var knowledgeLayerChangedEventSchema = z9.object({
709
+ ...eventLedgerEnvelopeSchema,
710
+ event_type: z9.literal("knowledge_layer_changed"),
711
+ stable_id: z9.string().optional(),
712
+ timestamp: z9.string().datetime(),
713
+ reason: z9.string().optional(),
714
+ from_layer: z9.enum(["team", "personal"]),
715
+ to_layer: z9.enum(["team", "personal"])
716
+ });
717
+ var knowledgeSlugRenamedEventSchema = z9.object({
718
+ ...eventLedgerEnvelopeSchema,
719
+ event_type: z9.literal("knowledge_slug_renamed"),
720
+ stable_id: z9.string().optional(),
721
+ timestamp: z9.string().datetime(),
722
+ reason: z9.string().optional(),
723
+ from_slug: z9.string(),
724
+ to_slug: z9.string()
725
+ });
726
+ var knowledgeDemotedEventSchema = z9.object({
727
+ ...eventLedgerEnvelopeSchema,
728
+ event_type: z9.literal("knowledge_demoted"),
729
+ stable_id: z9.string().optional(),
730
+ timestamp: z9.string().datetime(),
731
+ reason: z9.string().optional()
732
+ });
733
+ var knowledgeArchivedEventSchema = z9.object({
734
+ ...eventLedgerEnvelopeSchema,
735
+ event_type: z9.literal("knowledge_archived"),
736
+ stable_id: z9.string().optional(),
737
+ timestamp: z9.string().datetime(),
738
+ reason: z9.string().optional()
739
+ });
740
+ var knowledgeArchiveAttemptedEventSchema = z9.object({
741
+ ...eventLedgerEnvelopeSchema,
742
+ event_type: z9.literal("knowledge_archive_attempted"),
743
+ stable_id: z9.string().optional(),
744
+ timestamp: z9.string().datetime(),
745
+ reason: z9.string().optional()
746
+ });
747
+ var knowledgeDeferredEventSchema = z9.object({
748
+ ...eventLedgerEnvelopeSchema,
749
+ event_type: z9.literal("knowledge_deferred"),
750
+ stable_id: z9.string().optional(),
751
+ timestamp: z9.string().datetime(),
752
+ reason: z9.string().optional(),
753
+ until: z9.string().datetime().optional()
754
+ });
755
+ var knowledgeRejectedEventSchema = z9.object({
756
+ ...eventLedgerEnvelopeSchema,
757
+ event_type: z9.literal("knowledge_rejected"),
758
+ stable_id: z9.string().optional(),
759
+ timestamp: z9.string().datetime(),
760
+ reason: z9.string()
761
+ });
762
+ var knowledgeConsumedEventSchema = z9.object({
763
+ ...eventLedgerEnvelopeSchema,
764
+ event_type: z9.literal("knowledge_consumed"),
765
+ stable_id: z9.string(),
766
+ consumed_at: z9.string().datetime(),
767
+ client_hash: z9.string()
768
+ });
769
+ var knowledgeScopeDegradedEventSchema = z9.object({
770
+ ...eventLedgerEnvelopeSchema,
771
+ event_type: z9.literal("knowledge_scope_degraded"),
772
+ stable_id: z9.string(),
773
+ timestamp: z9.string().datetime(),
774
+ from_scope: z9.enum(["narrow", "broad"]),
775
+ to_scope: z9.enum(["narrow", "broad"]),
776
+ reason: z9.string()
777
+ });
778
+ var doctorRunEventSchema = z9.object({
779
+ ...eventLedgerEnvelopeSchema,
780
+ event_type: z9.literal("doctor_run"),
781
+ mode: z9.enum(["lint", "apply-lint"]),
782
+ issues: z9.number().int().nonnegative(),
783
+ mutations: z9.number().int().nonnegative().optional(),
784
+ timestamp: z9.string().datetime()
785
+ });
786
+ var knowledgePathDangledEventSchema = z9.object({
787
+ ...eventLedgerEnvelopeSchema,
788
+ event_type: z9.literal("knowledge_path_dangled"),
789
+ stable_id: z9.string(),
790
+ removed_glob: z9.string()
791
+ });
792
+ var pendingAutoArchivedEventSchema = z9.object({
793
+ ...eventLedgerEnvelopeSchema,
794
+ event_type: z9.literal("pending_auto_archived"),
795
+ pending_path: z9.string(),
796
+ archived_to: z9.string(),
797
+ reason: z9.string()
798
+ });
607
799
  var eventLedgerEventSchema = z9.discriminatedUnion("event_type", [
608
800
  knowledgeContextPlannedEventSchema,
609
801
  knowledgeSelectionEventSchema,
@@ -619,20 +811,51 @@ var eventLedgerEventSchema = z9.discriminatedUnion("event_type", [
619
811
  claudeSkillPathMigratedEventSchema,
620
812
  claudeHookPathMigratedEventSchema,
621
813
  codexSkillPathMigratedEventSchema,
622
- initScanCompletedEventSchema
814
+ initScanCompletedEventSchema,
815
+ // v2.0 rc.2 grill-followup TASK-004: knowledge.* lifecycle pre-registration
816
+ knowledgeProposedEventSchema,
817
+ knowledgePromoteStartedEventSchema,
818
+ knowledgePromotedEventSchema,
819
+ knowledgePromoteFailedEventSchema,
820
+ knowledgeLayerChangedEventSchema,
821
+ knowledgeSlugRenamedEventSchema,
822
+ knowledgeDemotedEventSchema,
823
+ knowledgeArchivedEventSchema,
824
+ knowledgeArchiveAttemptedEventSchema,
825
+ knowledgeDeferredEventSchema,
826
+ knowledgeRejectedEventSchema,
827
+ // v2.0 rc.5 TASK-014: knowledge_consumed (consumption tracking)
828
+ knowledgeConsumedEventSchema,
829
+ // v2.0 rc.5 TASK-012 (C3): knowledge_scope_degraded — narrow→broad auto-degrade
830
+ knowledgeScopeDegradedEventSchema,
831
+ // v2.0 rc.5 TASK-009 (B2): pending_auto_archived — doctor --apply-lint moves
832
+ // pending entries >30d old into the .archive/pending/ subtree.
833
+ pendingAutoArchivedEventSchema,
834
+ // v2.0 rc.5 TASK-013 (C4): knowledge_path_dangled — emitted by doctor lint
835
+ // #24 when a glob in relevance_paths resolves to zero filesystem matches.
836
+ knowledgePathDangledEventSchema,
837
+ // v2.0.0-rc.7 T10: doctor_run — emitted by `fabric doctor` to drive Signal D.
838
+ doctorRunEventSchema
623
839
  ]);
624
840
  export {
625
841
  AGENTS_META_IDENTITY_SOURCES,
626
842
  AGENTS_META_LAYERS,
627
843
  AGENTS_META_TOPOLOGY_TYPES,
628
844
  AgentsMetaCountersSchema,
845
+ FabExtractKnowledgeInputSchema,
846
+ FabExtractKnowledgeInputShape,
847
+ FabExtractKnowledgeOutputSchema,
848
+ FabReviewInputSchema,
849
+ FabReviewOutputSchema,
850
+ KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION,
629
851
  KNOWLEDGE_TYPE_CODES,
630
852
  KnowledgeEntryFrontmatterSchema,
631
853
  KnowledgeTypeSchema,
632
854
  LayerSchema,
633
855
  MaturitySchema,
856
+ PROPOSED_REASON_DESCRIPTIONS,
634
857
  PROTECTED_TOKENS,
635
- RULE_TEST_INDEX_SCHEMA_VERSION,
858
+ ProposedReasonSchema,
636
859
  StableIdSchema,
637
860
  agentsIdentitySourceSchema,
638
861
  agentsLayerSchema,
@@ -650,17 +873,21 @@ export {
650
873
  codexSkillPathMigratedEventSchema,
651
874
  createTranslator,
652
875
  defaultAgentsMetaCounters,
876
+ defaultLayerFilterSchema,
653
877
  defaultMessages,
654
878
  deriveAgentsMetaIdentitySource,
655
879
  deriveAgentsMetaLayer,
656
880
  deriveAgentsMetaStableId,
657
881
  deriveAgentsMetaTopologyType,
658
882
  detectNodeLocale,
883
+ doctorRunEventSchema,
659
884
  driftDetectedEventSchema,
660
885
  editIntentCheckedEventSchema,
661
886
  enMessages,
662
887
  eventLedgerEventSchema,
663
888
  eventLedgerTruncatedEventSchema,
889
+ fabExtractKnowledgeAnnotations,
890
+ fabReviewAnnotations,
664
891
  fabricConfigSchema,
665
892
  fabricEventSchema,
666
893
  forensicAssertionCoverageSchema,
@@ -674,9 +901,9 @@ export {
674
901
  forensicSamplingBudgetSchema,
675
902
  forensicTopologySchema,
676
903
  formatKnowledgeId,
677
- getRulesAnnotations,
678
- getRulesInputSchema,
679
- getRulesOutputSchema,
904
+ getKnowledgeAnnotations,
905
+ getKnowledgeInputSchema,
906
+ getKnowledgeOutputSchema,
680
907
  historyStateQuerySchema,
681
908
  humanLedgerEntrySchema,
682
909
  humanLockApproveRequestSchema,
@@ -692,10 +919,31 @@ export {
692
919
  initContextSourceEvidenceSchema,
693
920
  initScanCompletedEventSchema,
694
921
  isKnowledgeStableId,
922
+ knowledgeArchiveAttemptedEventSchema,
923
+ knowledgeArchivedEventSchema,
924
+ knowledgeConsumedEventSchema,
695
925
  knowledgeContextPlannedEventSchema,
926
+ knowledgeDeferredEventSchema,
927
+ knowledgeDemotedEventSchema,
696
928
  knowledgeDriftDetectedEventSchema,
929
+ knowledgeLanguageSchema,
930
+ knowledgeLayerChangedEventSchema,
931
+ knowledgePathDangledEventSchema,
932
+ knowledgePromoteFailedEventSchema,
933
+ knowledgePromoteStartedEventSchema,
934
+ knowledgePromotedEventSchema,
935
+ knowledgeProposedEventSchema,
936
+ knowledgeRejectedEventSchema,
937
+ knowledgeScopeDegradedEventSchema,
938
+ knowledgeSectionsAnnotations,
697
939
  knowledgeSectionsFetchedEventSchema,
940
+ knowledgeSectionsInputSchema,
941
+ knowledgeSectionsOutputSchema,
698
942
  knowledgeSelectionEventSchema,
943
+ knowledgeSlugRenamedEventSchema,
944
+ knowledgeTestIndexSchema,
945
+ knowledgeTestLinkSchema,
946
+ knowledgeTestOrphanAnnotationSchema,
699
947
  ledgerAppendedEventSchema,
700
948
  ledgerEntrySchema,
701
949
  ledgerQuerySchema,
@@ -710,18 +958,15 @@ export {
710
958
  metaUpdatedEventSchema,
711
959
  normalizeLocale,
712
960
  parseKnowledgeId,
961
+ pendingAutoArchivedEventSchema,
713
962
  planContextAnnotations,
963
+ planContextHintNarrowEntrySchema,
964
+ planContextHintOutputSchema,
714
965
  planContextInputSchema,
715
966
  planContextOutputSchema,
716
967
  reapplyCompletedEventSchema,
717
968
  ruleDescriptionIndexItemSchema,
718
969
  ruleDescriptionSchema,
719
- ruleSectionsAnnotations,
720
- ruleSectionsInputSchema,
721
- ruleSectionsOutputSchema,
722
- ruleTestIndexSchema,
723
- ruleTestLinkSchema,
724
- ruleTestOrphanAnnotationSchema,
725
970
  structuredWarningSchema,
726
971
  withDerivedAgentsMetaNodeDefaults,
727
972
  zhCNMessages