@fenglimg/fabric-shared 1.0.0 → 1.1.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.
@@ -36,6 +36,19 @@ var enMessages = {
36
36
  "cli.config.install.no-config-path": "Skipping {client}: no config path detected.",
37
37
  "cli.config.install.dry-run": "[dry-run] {client}: would write {path}",
38
38
  "cli.config.install.wrote": "{client}: wrote {path}",
39
+ "cli.doctor.description": "Run Fabric doctor checks and optional compliance audit reporting.",
40
+ "cli.doctor.args.target.description": "Target project path. Defaults to CLI arg, EXTERNAL_FIXTURE_PATH, fabric.config.json, then cwd.",
41
+ "cli.doctor.args.audit.description": "Print fab_get_rules compliance violations for AI edit intents.",
42
+ "cli.doctor.args.window-minutes.description": "Audit lookback window in minutes for matching fab_get_rules calls. Default 5.",
43
+ "cli.doctor.errors.invalid-window": "Invalid audit window: {value}",
44
+ "cli.doctor.audit.preview-only": "auditMode is off in fabric.config.json; running fab doctor --audit as a manual preview only.",
45
+ "cli.doctor.audit.none": "No AI edit intents recorded yet for compliance audit.",
46
+ "cli.doctor.audit.clean": "All {count} audited edit paths have a preceding fab_get_rules call within {window}.",
47
+ "cli.doctor.audit.violations": "{count} audited edit paths are missing a preceding fab_get_rules call within {window}.",
48
+ "cli.doctor.audit.table.path": "Path",
49
+ "cli.doctor.audit.table.edit": "Edit time",
50
+ "cli.doctor.audit.table.rules": "Last rules",
51
+ "cli.doctor.audit.table.intent": "Intent",
39
52
  "cli.hooks.description": "Manage Fabric Git hook templates.",
40
53
  "cli.hooks.install.description": "Install the Fabric Husky pre-commit hook template.",
41
54
  "cli.hooks.install.args.target.description": "Target project path, default is the current working directory.",
@@ -299,6 +312,19 @@ var zhCNMessages = {
299
312
  "cli.config.install.no-config-path": "\u8DF3\u8FC7 {client}\uFF1A\u672A\u68C0\u6D4B\u5230\u914D\u7F6E\u8DEF\u5F84\u3002",
300
313
  "cli.config.install.dry-run": "[dry-run] {client}\uFF1A\u5C06\u5199\u5165 {path}",
301
314
  "cli.config.install.wrote": "{client}\uFF1A\u5DF2\u5199\u5165 {path}",
315
+ "cli.doctor.description": "\u8FD0\u884C Fabric doctor \u68C0\u67E5\uFF0C\u5E76\u53EF\u9009\u8F93\u51FA\u5408\u89C4\u5BA1\u8BA1\u62A5\u544A\u3002",
316
+ "cli.doctor.args.target.description": "\u76EE\u6807\u9879\u76EE\u8DEF\u5F84\u3002\u9ED8\u8BA4\u4F9D\u6B21\u4F7F\u7528 CLI \u53C2\u6570\u3001EXTERNAL_FIXTURE_PATH\u3001fabric.config.json\u3001\u5F53\u524D\u76EE\u5F55\u3002",
317
+ "cli.doctor.args.audit.description": "\u8F93\u51FA AI \u7F16\u8F91\u610F\u56FE\u7F3A\u5C11 fab_get_rules \u524D\u7F6E\u8C03\u7528\u7684\u8FDD\u89C4\u9879\u3002",
318
+ "cli.doctor.args.window-minutes.description": "\u5339\u914D fab_get_rules \u8C03\u7528\u7684\u56DE\u770B\u65F6\u95F4\u7A97\u53E3\uFF0C\u5355\u4F4D\u4E3A\u5206\u949F\u3002\u9ED8\u8BA4 5 \u5206\u949F\u3002",
319
+ "cli.doctor.errors.invalid-window": "\u65E0\u6548\u7684\u5BA1\u8BA1\u65F6\u95F4\u7A97\u53E3\uFF1A{value}",
320
+ "cli.doctor.audit.preview-only": "fabric.config.json \u4E2D auditMode \u4E3A off\uFF1B\u5F53\u524D fab doctor --audit \u4EC5\u6267\u884C\u624B\u52A8\u9884\u89C8\uFF0C\u4E0D\u4F1A\u6539\u53D8\u9000\u51FA\u7801\u3002",
321
+ "cli.doctor.audit.none": "\u5F53\u524D\u8FD8\u6CA1\u6709\u53EF\u7528\u4E8E\u5408\u89C4\u5BA1\u8BA1\u7684 AI \u7F16\u8F91\u610F\u56FE\u8BB0\u5F55\u3002",
322
+ "cli.doctor.audit.clean": "\u5DF2\u5BA1\u8BA1\u7684 {count} \u4E2A\u7F16\u8F91\u8DEF\u5F84\u90FD\u5728 {window} \u5185\u5B58\u5728\u524D\u7F6E fab_get_rules \u8C03\u7528\u3002",
323
+ "cli.doctor.audit.violations": "\u6709 {count} \u4E2A\u5DF2\u5BA1\u8BA1\u7F16\u8F91\u8DEF\u5F84\u5728 {window} \u5185\u7F3A\u5C11\u524D\u7F6E fab_get_rules \u8C03\u7528\u3002",
324
+ "cli.doctor.audit.table.path": "\u8DEF\u5F84",
325
+ "cli.doctor.audit.table.edit": "\u7F16\u8F91\u65F6\u95F4",
326
+ "cli.doctor.audit.table.rules": "\u6700\u8FD1\u89C4\u5219\u8C03\u7528",
327
+ "cli.doctor.audit.table.intent": "\u610F\u56FE",
302
328
  "cli.hooks.description": "\u7BA1\u7406 Fabric Git \u94A9\u5B50\u6A21\u677F\u3002",
303
329
  "cli.hooks.install.description": "\u5B89\u88C5 Fabric Husky pre-commit \u94A9\u5B50\u6A21\u677F\u3002",
304
330
  "cli.hooks.install.args.target.description": "\u76EE\u6807\u9879\u76EE\u8DEF\u5F84\uFF0C\u9ED8\u8BA4\u4E3A\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55\u3002",
@@ -582,12 +608,16 @@ var PROTECTED_TOKENS = [
582
608
  "agent_meta",
583
609
  "AGENTS.md",
584
610
  "FABRIC.md",
611
+ ".fabric/agents/",
612
+ ".fabric/agents/_cross/",
585
613
  ".fabric/agents.meta.json",
586
614
  ".fabric/human-lock.json",
587
615
  ".fabric/init-context.json",
588
616
  ".fabric/forensic.json",
589
617
  ".intent-ledger.jsonl",
590
618
  "@HUMAN",
619
+ "shadow constraints",
620
+ "Shadow Mirroring",
591
621
  "CORE RULES",
592
622
  "DO NOT TRANSLATE",
593
623
  "MUST",
@@ -12,7 +12,7 @@ declare function detectNodeLocale(): Locale;
12
12
 
13
13
  declare function normalizeLocale(raw: string | null | undefined): Locale;
14
14
 
15
- declare const PROTECTED_TOKENS: readonly ["fab_get_rules", "fab_append_intent", "fab_update_registry", "fabric_rules", "ledger_entry", "ledger_entry_id", "agent_meta", "AGENTS.md", "FABRIC.md", ".fabric/agents.meta.json", ".fabric/human-lock.json", ".fabric/init-context.json", ".fabric/forensic.json", ".intent-ledger.jsonl", "@HUMAN", "CORE RULES", "DO NOT TRANSLATE", "MUST", "NEVER"];
15
+ declare const PROTECTED_TOKENS: readonly ["fab_get_rules", "fab_append_intent", "fab_update_registry", "fabric_rules", "ledger_entry", "ledger_entry_id", "agent_meta", "AGENTS.md", "FABRIC.md", ".fabric/agents/", ".fabric/agents/_cross/", ".fabric/agents.meta.json", ".fabric/human-lock.json", ".fabric/init-context.json", ".fabric/forensic.json", ".intent-ledger.jsonl", "@HUMAN", "shadow constraints", "Shadow Mirroring", "CORE RULES", "DO NOT TRANSLATE", "MUST", "NEVER"];
16
16
  type ProtectedToken = (typeof PROTECTED_TOKENS)[number];
17
17
 
18
18
  declare const enMessages: Messages;
@@ -6,7 +6,7 @@ import {
6
6
  enMessages,
7
7
  normalizeLocale,
8
8
  zhCNMessages
9
- } from "../chunk-2MXNG23L.js";
9
+ } from "../chunk-WAVM556O.js";
10
10
  export {
11
11
  PROTECTED_TOKENS,
12
12
  createTranslator,