@fenglimg/fabric-shared 2.0.0-rc.1 → 2.0.0-rc.10

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