@fenglimg/fabric-shared 2.0.0-rc.21 → 2.0.0-rc.23
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/chunk-GDYPVGWT.js +671 -0
- package/dist/{chunk-VKCXD6CI.js → chunk-GYIALPMW.js} +21 -2
- package/dist/{chunk-QZNUUIL3.js → chunk-IP6VWOVE.js} +7 -6
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +316 -9
- package/dist/index.js +105 -13
- package/dist/node/atomic-write.d.ts +16 -0
- package/dist/node/atomic-write.js +19 -10
- package/dist/schemas/api-contracts.d.ts +276 -238
- package/dist/schemas/api-contracts.js +1 -7
- package/dist/templates/bootstrap-canonical.d.ts +1 -1
- package/dist/templates/bootstrap-canonical.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-NNDFOOBO.js +0 -626
|
@@ -114,13 +114,16 @@ var enMessages = {
|
|
|
114
114
|
"doctor.cite.dismissed.not-applicable": "Not applicable",
|
|
115
115
|
"doctor.cite.dismissed.other": "Other",
|
|
116
116
|
"doctor.cite.dismissed.unspecified": "Unspecified",
|
|
117
|
+
"doctor.cite.section.noneReasons": "KB: none reasons",
|
|
118
|
+
"doctor.cite.none.no-relevant": "No relevant entry",
|
|
119
|
+
"doctor.cite.none.not-applicable": "Not applicable",
|
|
120
|
+
"doctor.cite.none.unspecified": "Unspecified",
|
|
117
121
|
"doctor.cite.status.skipped": "Cite policy not yet activated for this workspace.",
|
|
118
122
|
"cli.doctor.args.target.description": "Target project path. Defaults to --target, then EXTERNAL_FIXTURE_PATH, then cwd.",
|
|
119
123
|
"cli.doctor.args.fix.description": "Repair derived Fabric state (meta + indexes).",
|
|
120
124
|
"cli.doctor.args.json.description": "Print the doctor report as JSON.",
|
|
121
125
|
"cli.doctor.args.strict.description": "Treat warnings as failures.",
|
|
122
126
|
"cli.doctor.args.fix-knowledge.description": "Apply knowledge lint mutations: demote orphaned canonical entries, archive stale drafts, and bump drifted index counters. Default doctor run remains report-only.",
|
|
123
|
-
"cli.doctor.args.rescan.description": "Re-run the init scan to rebuild .fabric/agents.meta.json forensic state before doctor checks.",
|
|
124
127
|
"cli.doctor.args.yes.description": "Skip the --fix-knowledge safety confirm. Required for non-tty invocations unless FABRIC_NONINTERACTIVE=1 is set in the environment.",
|
|
125
128
|
"cli.doctor.errors.fix-knowledge-fix-mutually-exclusive": "--fix-knowledge and --fix cannot be combined. --fix-knowledge mutates user knowledge state (demote/archive); --fix repairs derived state (meta/index). Run them separately.",
|
|
126
129
|
// rc.20 TASK-05: --cite-coverage report flags. Read-only; mutually exclusive with --fix/--fix-knowledge.
|
|
@@ -130,6 +133,13 @@ var enMessages = {
|
|
|
130
133
|
"cli.doctor.errors.cite-coverage-mutex": "--cite-coverage cannot be combined with --fix or --fix-knowledge",
|
|
131
134
|
"cli.doctor.errors.invalid-since": "Invalid --since value: {input}. Expected duration like 7d, 24h, 30m or epoch ms.",
|
|
132
135
|
"cli.doctor.errors.invalid-client": "Invalid --client value: {input}. Expected cc, codex, cursor, or all.",
|
|
136
|
+
// rc.23 TASK-007 (a-C2): --enrich-descriptions flag set. Back-fills the
|
|
137
|
+
// four description-grade frontmatter fields on canonical knowledge entries.
|
|
138
|
+
"cli.doctor.args.enrich-descriptions.description": "Back-fill missing intent_clues / tech_stack / impact / must_read_if on canonical knowledge entries (read-only by default; pair with --auto to write stubs).",
|
|
139
|
+
"cli.doctor.args.auto.description": "With --enrich-descriptions: write deterministic stub values for missing fields. Without --auto, the run is read-only.",
|
|
140
|
+
"cli.doctor.args.dry-run.description": "With --enrich-descriptions --auto: preview the would-be changes without writing to disk.",
|
|
141
|
+
"cli.doctor.errors.enrich-descriptions-mutex": "--enrich-descriptions cannot be combined with --fix, --fix-knowledge, or --cite-coverage. Run them separately.",
|
|
142
|
+
"doctor.enrich.allComplete": "All canonical knowledge entries already declare intent_clues / tech_stack / impact / must_read_if.",
|
|
133
143
|
"cli.hooks.description": "Manage Fabric Git hook templates.",
|
|
134
144
|
"cli.hooks.install.description": "Install the Fabric Husky pre-commit hook template.",
|
|
135
145
|
"cli.hooks.install.args.target.description": "Target project path, default is the current working directory.",
|
|
@@ -654,13 +664,16 @@ var zhCNMessages = {
|
|
|
654
664
|
"doctor.cite.dismissed.not-applicable": "\u4E0D\u9002\u7528",
|
|
655
665
|
"doctor.cite.dismissed.other": "\u5176\u4ED6",
|
|
656
666
|
"doctor.cite.dismissed.unspecified": "\u672A\u6CE8\u660E",
|
|
667
|
+
"doctor.cite.section.noneReasons": "KB: none \u539F\u56E0\u5206\u5E03",
|
|
668
|
+
"doctor.cite.none.no-relevant": "\u5DF2\u67E5\u65E0\u53EF\u7528",
|
|
669
|
+
"doctor.cite.none.not-applicable": "\u4E0D\u5728\u8303\u56F4",
|
|
670
|
+
"doctor.cite.none.unspecified": "\u672A\u6CE8\u660E",
|
|
657
671
|
"doctor.cite.status.skipped": "\u672C\u5DE5\u4F5C\u533A Cite policy \u5C1A\u672A\u6FC0\u6D3B\u3002",
|
|
658
672
|
"cli.doctor.args.target.description": "\u76EE\u6807\u9879\u76EE\u8DEF\u5F84\u3002\u9ED8\u8BA4\u4F9D\u6B21\u4F7F\u7528 --target\u3001EXTERNAL_FIXTURE_PATH\u3001\u5F53\u524D\u76EE\u5F55\u3002",
|
|
659
673
|
"cli.doctor.args.fix.description": "\u4FEE\u590D Fabric \u6D3E\u751F\u72B6\u6001\uFF08meta + \u7D22\u5F15\uFF09\u3002",
|
|
660
674
|
"cli.doctor.args.json.description": "\u4EE5 JSON \u8F93\u51FA doctor \u62A5\u544A\u3002",
|
|
661
675
|
"cli.doctor.args.strict.description": "\u5C06 warning \u4E5F\u89C6\u4E3A\u5931\u8D25\u3002",
|
|
662
676
|
"cli.doctor.args.fix-knowledge.description": "\u5E94\u7528\u77E5\u8BC6\u5E93 lint \u53D8\u66F4\uFF1A\u964D\u7EA7\u5B64\u7ACB\u7684\u89C4\u8303\u6761\u76EE\u3001\u5F52\u6863\u9648\u65E7 draft\u3001\u4FEE\u6B63\u6F02\u79FB\u7684\u7D22\u5F15\u8BA1\u6570\u5668\u3002\u9ED8\u8BA4 doctor \u8FD0\u884C\u4ECD\u7136\u53EA\u8BFB\u3002",
|
|
663
|
-
"cli.doctor.args.rescan.description": "\u5728 doctor \u68C0\u67E5\u4E4B\u524D\u91CD\u65B0\u8FD0\u884C init scan\uFF0C\u4EE5\u91CD\u5EFA .fabric/agents.meta.json \u7684\u53D6\u8BC1\u72B6\u6001\u3002",
|
|
664
677
|
"cli.doctor.args.yes.description": "\u8DF3\u8FC7 --fix-knowledge \u7684\u5B89\u5168\u786E\u8BA4\uFF1B\u975E tty \u8C03\u7528\u5FC5\u987B\u663E\u5F0F\u8BBE\u7F6E\u8BE5\u6807\u8BB0\uFF0C\u6216\u5728\u73AF\u5883\u53D8\u91CF\u4E2D\u8BBE\u7F6E FABRIC_NONINTERACTIVE=1\u3002",
|
|
665
678
|
"cli.doctor.errors.fix-knowledge-fix-mutually-exclusive": "--fix-knowledge \u4E0E --fix \u4E0D\u53EF\u540C\u65F6\u4F7F\u7528\u3002--fix-knowledge \u4FEE\u6539\u7528\u6237\u77E5\u8BC6\u72B6\u6001\uFF08\u964D\u7EA7/\u5F52\u6863\uFF09\uFF1B--fix \u4FEE\u590D\u6D3E\u751F\u72B6\u6001\uFF08meta/\u7D22\u5F15\uFF09\u3002\u8BF7\u5206\u522B\u8FD0\u884C\u3002",
|
|
666
679
|
// rc.20 TASK-05: --cite-coverage 报告参数;只读,与 --fix/--fix-knowledge 互斥。
|
|
@@ -670,6 +683,12 @@ var zhCNMessages = {
|
|
|
670
683
|
"cli.doctor.errors.cite-coverage-mutex": "--cite-coverage \u4E0D\u80FD\u4E0E --fix \u6216 --fix-knowledge \u540C\u65F6\u4F7F\u7528",
|
|
671
684
|
"cli.doctor.errors.invalid-since": "--since \u53D6\u503C\u65E0\u6548: {input}\u3002\u9884\u671F\u683C\u5F0F 7d / 24h / 30m \u6216 epoch ms\u3002",
|
|
672
685
|
"cli.doctor.errors.invalid-client": "--client \u53D6\u503C\u65E0\u6548: {input}\u3002\u9884\u671F cc / codex / cursor / all\u3002",
|
|
686
|
+
// rc.23 TASK-007 (a-C2): --enrich-descriptions 回填四个 description 字段。
|
|
687
|
+
"cli.doctor.args.enrich-descriptions.description": "\u56DE\u586B\u6B63\u5F0F\u77E5\u8BC6\u6761\u76EE\u7F3A\u5931\u7684 intent_clues / tech_stack / impact / must_read_if \u5B57\u6BB5\uFF08\u9ED8\u8BA4\u53EA\u8BFB;\u642D\u914D --auto \u5199\u5165 stub\uFF09\u3002",
|
|
688
|
+
"cli.doctor.args.auto.description": "\u4E0E --enrich-descriptions \u642D\u914D\uFF1A\u4E3A\u7F3A\u5931\u5B57\u6BB5\u5199\u5165\u786E\u5B9A\u6027 stub \u503C\u3002\u4E0D\u52A0 --auto \u4EC5\u505A\u53EA\u8BFB\u626B\u63CF\u3002",
|
|
689
|
+
"cli.doctor.args.dry-run.description": "\u4E0E --enrich-descriptions --auto \u642D\u914D\uFF1A\u4EC5\u9884\u89C8\u6539\u52A8\u8BA1\u5212,\u4E0D\u5199\u5165\u78C1\u76D8\u3002",
|
|
690
|
+
"cli.doctor.errors.enrich-descriptions-mutex": "--enrich-descriptions \u4E0D\u80FD\u4E0E --fix / --fix-knowledge / --cite-coverage \u540C\u65F6\u4F7F\u7528,\u8BF7\u5206\u522B\u8FD0\u884C\u3002",
|
|
691
|
+
"doctor.enrich.allComplete": "\u6240\u6709\u6B63\u5F0F\u77E5\u8BC6\u6761\u76EE\u5747\u5DF2\u5305\u542B intent_clues / tech_stack / impact / must_read_if\u3002",
|
|
673
692
|
"cli.hooks.description": "\u7BA1\u7406 Fabric Git \u94A9\u5B50\u6A21\u677F\u3002",
|
|
674
693
|
"cli.hooks.install.description": "\u5B89\u88C5 Fabric Husky pre-commit \u94A9\u5B50\u6A21\u677F\u3002",
|
|
675
694
|
"cli.hooks.install.args.target.description": "\u76EE\u6807\u9879\u76EE\u8DEF\u5F84\uFF0C\u9ED8\u8BA4\u4E3A\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55\u3002",
|
|
@@ -10,22 +10,23 @@ var BOOTSTRAP_CANONICAL = `# Fabric Bootstrap
|
|
|
10
10
|
\u672C\u9879\u76EE\u4F7F\u7528 Fabric \u7BA1\u7406\u8DE8\u5BA2\u6237\u7AEF AI \u77E5\u8BC6\u4E0E\u884C\u4E3A\u89C4\u5219\u3002\u672C\u6587\u4EF6\u7531 \`fab install\` \u540C\u6B65\u5230\u4E09\u7AEF managed block,**\u4E0D\u8981\u624B\u52A8\u7F16\u8F91\u4E09\u7AEF\u7684 block**,\u53EA\u6539\u8FD9\u91CC + \u91CD\u8DD1 \`fab install\`\u3002
|
|
11
11
|
|
|
12
12
|
## \u884C\u4E3A\u89C4\u5219
|
|
13
|
-
- **\u4FEE\u6539\u4EFB\u4F55\u6587\u4EF6\u524D**:\
|
|
14
|
-
- **\`.fabric/agents.meta.json\` \u4E25\u7981\u624B\u52A8\u7F16\u8F91
|
|
13
|
+
- **\u4FEE\u6539\u4EFB\u4F55\u6587\u4EF6\u524D**:\u4E24\u6B65\u8C03\u7528\u2014\u2014\u5148 \`fab_plan_context(paths=[<\u88AB\u6539\u6587\u4EF6>])\` \u62FF\u5230 \`selection_token\` \u4E0E\u5019\u9009 \`entries\`(\u6311 \`selectable===true\` \u7684 \`stable_id\`),\u518D \`fab_get_knowledge_sections({ selection_token, ai_selected_stable_ids: [<id>...] })\` \u53D6\u89C4\u5219\u6B63\u6587\u3002
|
|
14
|
+
- **\`.fabric/agents.meta.json\` \u4E25\u7981\u624B\u52A8\u7F16\u8F91**;engine \u4F1A\u81EA\u52A8\u540C\u6B65\u6D3E\u751F\u72B6\u6001,\u663E\u5F0F reconcile \u8DD1 \`fab doctor --fix\`\u3002
|
|
15
15
|
|
|
16
16
|
## \u77E5\u8BC6\u5E93(KB)
|
|
17
17
|
- **Discovery**:SessionStart hook \u5217 broad-scoped \u6761\u76EE;edit \u6587\u4EF6\u65F6 PreToolUse hook \u53EF\u80FD\u89E6\u53D1 narrow hint\u3002
|
|
18
|
-
- **Usage**:\
|
|
18
|
+
- **Usage**:\u4E24\u6B65\u5F0F\u2014\u2014\`fab_plan_context(paths=[...])\` \u8FD4\u56DE \`selection_token\` + \u5019\u9009 entries,\u518D \`fab_get_knowledge_sections({ selection_token, ai_selected_stable_ids: [<id>...] })\` \u62C9\u5168\u6587;\`selection_token\` \u5FC5\u987B\u6765\u81EA\u6700\u8FD1\u4E00\u6B21 \`fab_plan_context\`,\u4E0D\u53EF\u51ED\u7A7A\u7F16\u9020\u3002
|
|
19
19
|
- **Write flows**:\`fabric-archive\` / \`fabric-review\` / \`fabric-import\` \u4E09\u4E2A Skills\u3002
|
|
20
20
|
- **Language**:\u6E32\u67D3\u6309 \`.fabric/fabric-config.json\` \u7684 \`fabric_language\` \u5B57\u6BB5\u3002
|
|
21
21
|
|
|
22
22
|
## Cite policy
|
|
23
23
|
|
|
24
|
-
- **\u89E6\u53D1**: \u505A edit / decide / propose plan \u4E4B\u524D,**\u56DE\u590D\u9996\u884C**\u5FC5\u987B\u5199 \`KB: <id> (<\u22648\u5B57 \u7528\u6CD5>) [planned|recalled|chained-from <id>|dismissed:<reason>]\` \u6216 \`KB: none\`\u3002
|
|
25
|
-
- **\`[recalled]\` \u9A8C\u8BC1**: \u5FC5\u987B\u7D27\u8DDF\
|
|
24
|
+
- **\u89E6\u53D1**: \u505A edit / decide / propose plan \u4E4B\u524D,**\u56DE\u590D\u9996\u884C**\u5FC5\u987B\u5199 \`KB: <id> (<\u22648\u5B57 \u7528\u6CD5>) [planned|recalled|chained-from <id>|dismissed:<reason>]\` \u6216 \`KB: none [<reason>]\`\u3002
|
|
25
|
+
- **\`[recalled]\` \u9A8C\u8BC1**: \u5FC5\u987B\u7D27\u8DDF\u4E24\u6B65\u8C03\u7528\u2014\u2014\u5148 \`fab_plan_context(paths=[...])\` \u62FF \`selection_token\`,\u518D \`fab_get_knowledge_sections({ selection_token, ai_selected_stable_ids: [<id>] })\`,\u9632\u6B62\u7F16\u9020 id\u3002
|
|
26
26
|
- **\u7528\u6237\u53E3\u5934\u63D0\u89C4\u5219\u6CA1\u7ED9 id**: \u5148\u8C03 \`fab_extract_knowledge\` \u6216 \`search_context\` \u53CD\u67E5\u3002
|
|
27
27
|
- **dismissed reason**: \u679A\u4E3E \`scope-mismatch | outdated | not-applicable | other:<text>\`\u3002
|
|
28
|
-
-
|
|
28
|
+
- **\`KB: none\` sentinel**: \u679A\u4E3E\u4E24\u79CD\u5408\u89C4\u7406\u7531\u2014\u2014\`[no-relevant]\` \u5DF2\u8C03 \`fab_plan_context\`(\u6216 hook \u8F93\u51FA\u53EF\u89C1)\u4F46\u65E0\u53EF\u7528\u6761\u76EE;\`[not-applicable]\` \u5F53\u524D\u52A8\u4F5C\u4E0D\u5728 cite \u8303\u56F4(\u7EAF\u63A2\u7D22 / Bash \u53EA\u8BFB / \u7528\u6237\u95EE\u7B54)\u3002\u88F8 \`KB: none\`(\u65E0\u540E\u7F00)\u4ECD\u7136 valid,\u5F52\u7C7B\u4E3A \`[unspecified]\`(legacy \u517C\u5BB9,\u9F13\u52B1\u540E\u7EED\u8865\u6CE8)\u3002
|
|
29
|
+
- **\u7A3D\u6838**: \`fab doctor --cite-coverage [--since=7d] [--client=cc|codex|all]\` \u8F93\u51FA cite \u8986\u76D6\u7387,\u542B \`KB: none\` sentinel \u62C6\u5206\u3002\u672C\u89C4\u5219\u4E0D\u963B\u65AD\u4F60\u5DE5\u4F5C,\u53EA\u8BB0\u5F55\u3002
|
|
29
30
|
`;
|
|
30
31
|
|
|
31
32
|
export {
|
package/dist/i18n/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,14 @@ export { AgentsActivationTier, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTy
|
|
|
3
3
|
export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, zhCNMessages } from './i18n/index.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
|
|
6
|
-
export { FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewInputShape, FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId,
|
|
6
|
+
export { FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewInputShape, FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
|
|
7
7
|
export { BOOTSTRAP_CANONICAL, BOOTSTRAP_MARKER_BEGIN, BOOTSTRAP_MARKER_END, BOOTSTRAP_REGEX, LEGACY_KB_MARKER_BEGIN, LEGACY_KB_MARKER_END, LEGACY_KB_REGEX } from './templates/bootstrap-canonical.js';
|
|
8
8
|
|
|
9
|
+
declare const ONBOARD_SLOT_NAMES: readonly ["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"];
|
|
10
|
+
type OnboardSlot = (typeof ONBOARD_SLOT_NAMES)[number];
|
|
11
|
+
declare const onboardSlotSchema: z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>;
|
|
12
|
+
declare const ONBOARD_SLOT_TOTAL: 5;
|
|
13
|
+
|
|
9
14
|
declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
|
|
10
15
|
declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
|
|
11
16
|
declare const AGENTS_META_IDENTITY_SOURCES: readonly ["declared", "derived"];
|
|
@@ -1387,6 +1392,8 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1387
1392
|
archive_digest_max_sessions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1388
1393
|
review_topic_result_cap: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1389
1394
|
review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1395
|
+
fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
|
|
1396
|
+
onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1390
1397
|
}, "strip", z.ZodTypeAny, {
|
|
1391
1398
|
fabric_language: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
1392
1399
|
default_layer_filter: "personal" | "team" | "both";
|
|
@@ -1408,6 +1415,7 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1408
1415
|
archive_digest_max_sessions: number;
|
|
1409
1416
|
review_topic_result_cap: number;
|
|
1410
1417
|
review_stale_pending_days: number;
|
|
1418
|
+
onboard_slots_opted_out: string[];
|
|
1411
1419
|
clientPaths?: {
|
|
1412
1420
|
claudeCodeCLI?: string | undefined;
|
|
1413
1421
|
claudeCodeDesktop?: string | undefined;
|
|
@@ -1420,6 +1428,7 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1420
1428
|
warnBytes?: number | undefined;
|
|
1421
1429
|
hardBytes?: number | undefined;
|
|
1422
1430
|
} | undefined;
|
|
1431
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
1423
1432
|
}, {
|
|
1424
1433
|
clientPaths?: {
|
|
1425
1434
|
claudeCodeCLI?: string | undefined;
|
|
@@ -1453,6 +1462,8 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1453
1462
|
archive_digest_max_sessions?: number | undefined;
|
|
1454
1463
|
review_topic_result_cap?: number | undefined;
|
|
1455
1464
|
review_stale_pending_days?: number | undefined;
|
|
1465
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
1466
|
+
onboard_slots_opted_out?: string[] | undefined;
|
|
1456
1467
|
}>;
|
|
1457
1468
|
|
|
1458
1469
|
type FabricConfigSchemaShape = z.infer<typeof fabricConfigSchema>;
|
|
@@ -5469,8 +5480,9 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
5469
5480
|
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
5470
5481
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
5471
5482
|
duration_ms: z.ZodNumber;
|
|
5472
|
-
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
5483
|
+
trigger: z.ZodEnum<["doctor", "manual", "auto-heal-description"]>;
|
|
5473
5484
|
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
5485
|
+
force_write_reason: z.ZodOptional<z.ZodEnum<["revision_drift"]>>;
|
|
5474
5486
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5475
5487
|
id: z.ZodString;
|
|
5476
5488
|
ts: z.ZodNumber;
|
|
@@ -5486,9 +5498,10 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
5486
5498
|
event_type: "meta_reconciled";
|
|
5487
5499
|
reconciled_files: string[];
|
|
5488
5500
|
duration_ms: number;
|
|
5489
|
-
trigger: "manual" | "doctor";
|
|
5501
|
+
trigger: "manual" | "doctor" | "auto-heal-description";
|
|
5490
5502
|
correlation_id?: string | undefined;
|
|
5491
5503
|
session_id?: string | undefined;
|
|
5504
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
5492
5505
|
}, {
|
|
5493
5506
|
id: string;
|
|
5494
5507
|
source: "reconcileKnowledge";
|
|
@@ -5498,9 +5511,10 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
5498
5511
|
event_type: "meta_reconciled";
|
|
5499
5512
|
reconciled_files: string[];
|
|
5500
5513
|
duration_ms: number;
|
|
5501
|
-
trigger: "manual" | "doctor";
|
|
5514
|
+
trigger: "manual" | "doctor" | "auto-heal-description";
|
|
5502
5515
|
correlation_id?: string | undefined;
|
|
5503
5516
|
session_id?: string | undefined;
|
|
5517
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
5504
5518
|
}>;
|
|
5505
5519
|
declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
5506
5520
|
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
@@ -6305,6 +6319,151 @@ declare const citePolicyActivatedEventSchema: z.ZodObject<{
|
|
|
6305
6319
|
correlation_id?: string | undefined;
|
|
6306
6320
|
session_id?: string | undefined;
|
|
6307
6321
|
}>;
|
|
6322
|
+
declare const eventsRotatedEventSchema: z.ZodObject<{
|
|
6323
|
+
event_type: z.ZodLiteral<"events_rotated">;
|
|
6324
|
+
cutoff_ts: z.ZodString;
|
|
6325
|
+
archived_count: z.ZodNumber;
|
|
6326
|
+
kept_count: z.ZodNumber;
|
|
6327
|
+
archive_path: z.ZodString;
|
|
6328
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6329
|
+
id: z.ZodString;
|
|
6330
|
+
ts: z.ZodNumber;
|
|
6331
|
+
schema_version: z.ZodLiteral<1>;
|
|
6332
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6333
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6334
|
+
}, "strip", z.ZodTypeAny, {
|
|
6335
|
+
id: string;
|
|
6336
|
+
ts: number;
|
|
6337
|
+
schema_version: 1;
|
|
6338
|
+
kind: "fabric-event";
|
|
6339
|
+
event_type: "events_rotated";
|
|
6340
|
+
cutoff_ts: string;
|
|
6341
|
+
archived_count: number;
|
|
6342
|
+
kept_count: number;
|
|
6343
|
+
archive_path: string;
|
|
6344
|
+
correlation_id?: string | undefined;
|
|
6345
|
+
session_id?: string | undefined;
|
|
6346
|
+
}, {
|
|
6347
|
+
id: string;
|
|
6348
|
+
ts: number;
|
|
6349
|
+
schema_version: 1;
|
|
6350
|
+
kind: "fabric-event";
|
|
6351
|
+
event_type: "events_rotated";
|
|
6352
|
+
cutoff_ts: string;
|
|
6353
|
+
archived_count: number;
|
|
6354
|
+
kept_count: number;
|
|
6355
|
+
archive_path: string;
|
|
6356
|
+
correlation_id?: string | undefined;
|
|
6357
|
+
session_id?: string | undefined;
|
|
6358
|
+
}>;
|
|
6359
|
+
declare const knowledgeMetaAutoHealedEventSchema: z.ZodObject<{
|
|
6360
|
+
event_type: z.ZodLiteral<"knowledge_meta_auto_healed">;
|
|
6361
|
+
previous_revision_hash: z.ZodString;
|
|
6362
|
+
revision_hash: z.ZodString;
|
|
6363
|
+
trigger: z.ZodLiteral<"read">;
|
|
6364
|
+
caller: z.ZodOptional<z.ZodEnum<["planContext", "getKnowledgeSections", "getKnowledge", "extractKnowledge"]>>;
|
|
6365
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6366
|
+
id: z.ZodString;
|
|
6367
|
+
ts: z.ZodNumber;
|
|
6368
|
+
schema_version: z.ZodLiteral<1>;
|
|
6369
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6370
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6371
|
+
}, "strip", z.ZodTypeAny, {
|
|
6372
|
+
id: string;
|
|
6373
|
+
revision_hash: string;
|
|
6374
|
+
previous_revision_hash: string;
|
|
6375
|
+
ts: number;
|
|
6376
|
+
schema_version: 1;
|
|
6377
|
+
kind: "fabric-event";
|
|
6378
|
+
event_type: "knowledge_meta_auto_healed";
|
|
6379
|
+
trigger: "read";
|
|
6380
|
+
correlation_id?: string | undefined;
|
|
6381
|
+
session_id?: string | undefined;
|
|
6382
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
6383
|
+
}, {
|
|
6384
|
+
id: string;
|
|
6385
|
+
revision_hash: string;
|
|
6386
|
+
previous_revision_hash: string;
|
|
6387
|
+
ts: number;
|
|
6388
|
+
schema_version: 1;
|
|
6389
|
+
kind: "fabric-event";
|
|
6390
|
+
event_type: "knowledge_meta_auto_healed";
|
|
6391
|
+
trigger: "read";
|
|
6392
|
+
correlation_id?: string | undefined;
|
|
6393
|
+
session_id?: string | undefined;
|
|
6394
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
6395
|
+
}>;
|
|
6396
|
+
declare const serveLockClearedEventSchema: z.ZodObject<{
|
|
6397
|
+
event_type: z.ZodLiteral<"serve_lock_cleared">;
|
|
6398
|
+
pid: z.ZodNumber;
|
|
6399
|
+
age_ms: z.ZodNumber;
|
|
6400
|
+
timestamp: z.ZodString;
|
|
6401
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6402
|
+
id: z.ZodString;
|
|
6403
|
+
ts: z.ZodNumber;
|
|
6404
|
+
schema_version: z.ZodLiteral<1>;
|
|
6405
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6406
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6407
|
+
}, "strip", z.ZodTypeAny, {
|
|
6408
|
+
id: string;
|
|
6409
|
+
ts: number;
|
|
6410
|
+
schema_version: 1;
|
|
6411
|
+
kind: "fabric-event";
|
|
6412
|
+
event_type: "serve_lock_cleared";
|
|
6413
|
+
timestamp: string;
|
|
6414
|
+
pid: number;
|
|
6415
|
+
age_ms: number;
|
|
6416
|
+
correlation_id?: string | undefined;
|
|
6417
|
+
session_id?: string | undefined;
|
|
6418
|
+
}, {
|
|
6419
|
+
id: string;
|
|
6420
|
+
ts: number;
|
|
6421
|
+
schema_version: 1;
|
|
6422
|
+
kind: "fabric-event";
|
|
6423
|
+
event_type: "serve_lock_cleared";
|
|
6424
|
+
timestamp: string;
|
|
6425
|
+
pid: number;
|
|
6426
|
+
age_ms: number;
|
|
6427
|
+
correlation_id?: string | undefined;
|
|
6428
|
+
session_id?: string | undefined;
|
|
6429
|
+
}>;
|
|
6430
|
+
declare const knowledgeEnrichedEventSchema: z.ZodObject<{
|
|
6431
|
+
event_type: z.ZodLiteral<"knowledge_enriched">;
|
|
6432
|
+
path: z.ZodString;
|
|
6433
|
+
added_fields: z.ZodArray<z.ZodEnum<["intent_clues", "tech_stack", "impact", "must_read_if"]>, "many">;
|
|
6434
|
+
mode: z.ZodEnum<["auto", "interactive"]>;
|
|
6435
|
+
timestamp: z.ZodString;
|
|
6436
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6437
|
+
id: z.ZodString;
|
|
6438
|
+
ts: z.ZodNumber;
|
|
6439
|
+
schema_version: z.ZodLiteral<1>;
|
|
6440
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6441
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6442
|
+
}, "strip", z.ZodTypeAny, {
|
|
6443
|
+
path: string;
|
|
6444
|
+
id: string;
|
|
6445
|
+
ts: number;
|
|
6446
|
+
schema_version: 1;
|
|
6447
|
+
kind: "fabric-event";
|
|
6448
|
+
event_type: "knowledge_enriched";
|
|
6449
|
+
timestamp: string;
|
|
6450
|
+
mode: "auto" | "interactive";
|
|
6451
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
6452
|
+
correlation_id?: string | undefined;
|
|
6453
|
+
session_id?: string | undefined;
|
|
6454
|
+
}, {
|
|
6455
|
+
path: string;
|
|
6456
|
+
id: string;
|
|
6457
|
+
ts: number;
|
|
6458
|
+
schema_version: 1;
|
|
6459
|
+
kind: "fabric-event";
|
|
6460
|
+
event_type: "knowledge_enriched";
|
|
6461
|
+
timestamp: string;
|
|
6462
|
+
mode: "auto" | "interactive";
|
|
6463
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
6464
|
+
correlation_id?: string | undefined;
|
|
6465
|
+
session_id?: string | undefined;
|
|
6466
|
+
}>;
|
|
6308
6467
|
declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
6309
6468
|
event_type: z.ZodLiteral<"knowledge_context_planned">;
|
|
6310
6469
|
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
@@ -6778,8 +6937,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6778
6937
|
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
6779
6938
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
6780
6939
|
duration_ms: z.ZodNumber;
|
|
6781
|
-
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
6940
|
+
trigger: z.ZodEnum<["doctor", "manual", "auto-heal-description"]>;
|
|
6782
6941
|
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
6942
|
+
force_write_reason: z.ZodOptional<z.ZodEnum<["revision_drift"]>>;
|
|
6783
6943
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6784
6944
|
id: z.ZodString;
|
|
6785
6945
|
ts: z.ZodNumber;
|
|
@@ -6795,9 +6955,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6795
6955
|
event_type: "meta_reconciled";
|
|
6796
6956
|
reconciled_files: string[];
|
|
6797
6957
|
duration_ms: number;
|
|
6798
|
-
trigger: "manual" | "doctor";
|
|
6958
|
+
trigger: "manual" | "doctor" | "auto-heal-description";
|
|
6799
6959
|
correlation_id?: string | undefined;
|
|
6800
6960
|
session_id?: string | undefined;
|
|
6961
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
6801
6962
|
}, {
|
|
6802
6963
|
id: string;
|
|
6803
6964
|
source: "reconcileKnowledge";
|
|
@@ -6807,9 +6968,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6807
6968
|
event_type: "meta_reconciled";
|
|
6808
6969
|
reconciled_files: string[];
|
|
6809
6970
|
duration_ms: number;
|
|
6810
|
-
trigger: "manual" | "doctor";
|
|
6971
|
+
trigger: "manual" | "doctor" | "auto-heal-description";
|
|
6811
6972
|
correlation_id?: string | undefined;
|
|
6812
6973
|
session_id?: string | undefined;
|
|
6974
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
6813
6975
|
}>, z.ZodObject<{
|
|
6814
6976
|
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
6815
6977
|
from: z.ZodString;
|
|
@@ -7590,6 +7752,147 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7590
7752
|
policy_version: string;
|
|
7591
7753
|
correlation_id?: string | undefined;
|
|
7592
7754
|
session_id?: string | undefined;
|
|
7755
|
+
}>, z.ZodObject<{
|
|
7756
|
+
event_type: z.ZodLiteral<"knowledge_meta_auto_healed">;
|
|
7757
|
+
previous_revision_hash: z.ZodString;
|
|
7758
|
+
revision_hash: z.ZodString;
|
|
7759
|
+
trigger: z.ZodLiteral<"read">;
|
|
7760
|
+
caller: z.ZodOptional<z.ZodEnum<["planContext", "getKnowledgeSections", "getKnowledge", "extractKnowledge"]>>;
|
|
7761
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7762
|
+
id: z.ZodString;
|
|
7763
|
+
ts: z.ZodNumber;
|
|
7764
|
+
schema_version: z.ZodLiteral<1>;
|
|
7765
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7766
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7767
|
+
}, "strip", z.ZodTypeAny, {
|
|
7768
|
+
id: string;
|
|
7769
|
+
revision_hash: string;
|
|
7770
|
+
previous_revision_hash: string;
|
|
7771
|
+
ts: number;
|
|
7772
|
+
schema_version: 1;
|
|
7773
|
+
kind: "fabric-event";
|
|
7774
|
+
event_type: "knowledge_meta_auto_healed";
|
|
7775
|
+
trigger: "read";
|
|
7776
|
+
correlation_id?: string | undefined;
|
|
7777
|
+
session_id?: string | undefined;
|
|
7778
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
7779
|
+
}, {
|
|
7780
|
+
id: string;
|
|
7781
|
+
revision_hash: string;
|
|
7782
|
+
previous_revision_hash: string;
|
|
7783
|
+
ts: number;
|
|
7784
|
+
schema_version: 1;
|
|
7785
|
+
kind: "fabric-event";
|
|
7786
|
+
event_type: "knowledge_meta_auto_healed";
|
|
7787
|
+
trigger: "read";
|
|
7788
|
+
correlation_id?: string | undefined;
|
|
7789
|
+
session_id?: string | undefined;
|
|
7790
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
7791
|
+
}>, z.ZodObject<{
|
|
7792
|
+
event_type: z.ZodLiteral<"events_rotated">;
|
|
7793
|
+
cutoff_ts: z.ZodString;
|
|
7794
|
+
archived_count: z.ZodNumber;
|
|
7795
|
+
kept_count: z.ZodNumber;
|
|
7796
|
+
archive_path: z.ZodString;
|
|
7797
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7798
|
+
id: z.ZodString;
|
|
7799
|
+
ts: z.ZodNumber;
|
|
7800
|
+
schema_version: z.ZodLiteral<1>;
|
|
7801
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7802
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7803
|
+
}, "strip", z.ZodTypeAny, {
|
|
7804
|
+
id: string;
|
|
7805
|
+
ts: number;
|
|
7806
|
+
schema_version: 1;
|
|
7807
|
+
kind: "fabric-event";
|
|
7808
|
+
event_type: "events_rotated";
|
|
7809
|
+
cutoff_ts: string;
|
|
7810
|
+
archived_count: number;
|
|
7811
|
+
kept_count: number;
|
|
7812
|
+
archive_path: string;
|
|
7813
|
+
correlation_id?: string | undefined;
|
|
7814
|
+
session_id?: string | undefined;
|
|
7815
|
+
}, {
|
|
7816
|
+
id: string;
|
|
7817
|
+
ts: number;
|
|
7818
|
+
schema_version: 1;
|
|
7819
|
+
kind: "fabric-event";
|
|
7820
|
+
event_type: "events_rotated";
|
|
7821
|
+
cutoff_ts: string;
|
|
7822
|
+
archived_count: number;
|
|
7823
|
+
kept_count: number;
|
|
7824
|
+
archive_path: string;
|
|
7825
|
+
correlation_id?: string | undefined;
|
|
7826
|
+
session_id?: string | undefined;
|
|
7827
|
+
}>, z.ZodObject<{
|
|
7828
|
+
event_type: z.ZodLiteral<"serve_lock_cleared">;
|
|
7829
|
+
pid: z.ZodNumber;
|
|
7830
|
+
age_ms: z.ZodNumber;
|
|
7831
|
+
timestamp: z.ZodString;
|
|
7832
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7833
|
+
id: z.ZodString;
|
|
7834
|
+
ts: z.ZodNumber;
|
|
7835
|
+
schema_version: z.ZodLiteral<1>;
|
|
7836
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7837
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7838
|
+
}, "strip", z.ZodTypeAny, {
|
|
7839
|
+
id: string;
|
|
7840
|
+
ts: number;
|
|
7841
|
+
schema_version: 1;
|
|
7842
|
+
kind: "fabric-event";
|
|
7843
|
+
event_type: "serve_lock_cleared";
|
|
7844
|
+
timestamp: string;
|
|
7845
|
+
pid: number;
|
|
7846
|
+
age_ms: number;
|
|
7847
|
+
correlation_id?: string | undefined;
|
|
7848
|
+
session_id?: string | undefined;
|
|
7849
|
+
}, {
|
|
7850
|
+
id: string;
|
|
7851
|
+
ts: number;
|
|
7852
|
+
schema_version: 1;
|
|
7853
|
+
kind: "fabric-event";
|
|
7854
|
+
event_type: "serve_lock_cleared";
|
|
7855
|
+
timestamp: string;
|
|
7856
|
+
pid: number;
|
|
7857
|
+
age_ms: number;
|
|
7858
|
+
correlation_id?: string | undefined;
|
|
7859
|
+
session_id?: string | undefined;
|
|
7860
|
+
}>, z.ZodObject<{
|
|
7861
|
+
event_type: z.ZodLiteral<"knowledge_enriched">;
|
|
7862
|
+
path: z.ZodString;
|
|
7863
|
+
added_fields: z.ZodArray<z.ZodEnum<["intent_clues", "tech_stack", "impact", "must_read_if"]>, "many">;
|
|
7864
|
+
mode: z.ZodEnum<["auto", "interactive"]>;
|
|
7865
|
+
timestamp: z.ZodString;
|
|
7866
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7867
|
+
id: z.ZodString;
|
|
7868
|
+
ts: z.ZodNumber;
|
|
7869
|
+
schema_version: z.ZodLiteral<1>;
|
|
7870
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7871
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7872
|
+
}, "strip", z.ZodTypeAny, {
|
|
7873
|
+
path: string;
|
|
7874
|
+
id: string;
|
|
7875
|
+
ts: number;
|
|
7876
|
+
schema_version: 1;
|
|
7877
|
+
kind: "fabric-event";
|
|
7878
|
+
event_type: "knowledge_enriched";
|
|
7879
|
+
timestamp: string;
|
|
7880
|
+
mode: "auto" | "interactive";
|
|
7881
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
7882
|
+
correlation_id?: string | undefined;
|
|
7883
|
+
session_id?: string | undefined;
|
|
7884
|
+
}, {
|
|
7885
|
+
path: string;
|
|
7886
|
+
id: string;
|
|
7887
|
+
ts: number;
|
|
7888
|
+
schema_version: 1;
|
|
7889
|
+
kind: "fabric-event";
|
|
7890
|
+
event_type: "knowledge_enriched";
|
|
7891
|
+
timestamp: string;
|
|
7892
|
+
mode: "auto" | "interactive";
|
|
7893
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
7894
|
+
correlation_id?: string | undefined;
|
|
7895
|
+
session_id?: string | undefined;
|
|
7593
7896
|
}>]>;
|
|
7594
7897
|
type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
|
|
7595
7898
|
type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
|
|
@@ -7626,9 +7929,13 @@ type DoctorRunEvent = z.infer<typeof doctorRunEventSchema>;
|
|
|
7626
7929
|
type RelevanceMigrationRunEvent = z.infer<typeof relevanceMigrationRunEventSchema>;
|
|
7627
7930
|
type AssistantTurnObservedEvent = z.infer<typeof assistantTurnObservedEventSchema>;
|
|
7628
7931
|
type CitePolicyActivatedEvent = z.infer<typeof citePolicyActivatedEventSchema>;
|
|
7629
|
-
type
|
|
7932
|
+
type KnowledgeMetaAutoHealedEvent = z.infer<typeof knowledgeMetaAutoHealedEventSchema>;
|
|
7933
|
+
type EventsRotatedEvent = z.infer<typeof eventsRotatedEventSchema>;
|
|
7934
|
+
type ServeLockClearedEvent = z.infer<typeof serveLockClearedEventSchema>;
|
|
7935
|
+
type KnowledgeEnrichedEvent = z.infer<typeof knowledgeEnrichedEventSchema>;
|
|
7936
|
+
type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent | ServeLockClearedEvent | KnowledgeEnrichedEvent;
|
|
7630
7937
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
7631
7938
|
type EventLedgerEventInputFor<T extends EventLedgerEvent> = T extends EventLedgerEvent ? Omit<T, "kind" | "id" | "ts" | "schema_version" | "correlation_id" | "session_id"> & Partial<Pick<T, "id" | "ts" | "correlation_id" | "session_id">> : never;
|
|
7632
7939
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
7633
7940
|
|
|
7634
|
-
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CitePolicyActivatedEvent, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type FabricConfigSchemaShape, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeLayerChangedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type PanelFieldGroup, type PanelFieldMeta, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, auditModeSchema, bootstrapMarkerMigratedEventSchema, candidateFileEntrySchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, defaultLayerFilterSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, fabricConfigSchema, fabricEventSchema, fabricLanguageSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, getPanelFieldByKey, getPanelFields, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeLayerChangedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, withDerivedAgentsMetaNodeDefaults };
|
|
7941
|
+
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CitePolicyActivatedEvent, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, type PanelFieldGroup, type PanelFieldMeta, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type ServeLockClearedEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, auditModeSchema, bootstrapMarkerMigratedEventSchema, candidateFileEntrySchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, defaultLayerFilterSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, fabricConfigSchema, fabricEventSchema, fabricLanguageSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, getPanelFieldByKey, getPanelFields, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, onboardSlotSchema, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, serveLockClearedEventSchema, withDerivedAgentsMetaNodeDefaults };
|