@fenglimg/fabric-shared 2.0.1 → 2.1.0-rc.2

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.
@@ -79,6 +79,7 @@ var BOOTSTRAP_CANONICAL = `# Fabric Bootstrap
79
79
 
80
80
  - **\u89E6\u53D1**: \u505A edit / decide / propose plan \u4E4B\u524D,**\u56DE\u590D\u9996\u884C**\u5FC5\u987B\u5199 \`KB: <id> (<\u22648\u5B57 \u7528\u6CD5>) [applied|dismissed:<reason>]\` \u6216 \`KB: none [<reason>]\`\u3002
81
81
  - **\`[applied]\` \u9A8C\u8BC1\u4E49\u52A1**: \u5F15\u7528\u4EFB\u4F55 id \u524D\u5FC5\u987B\u5148\u7528 fab_recall (\u6216\u4E24\u6B65 fab_plan_context \u2192 fab_get_knowledge_sections) \u5B9E\u9645\u6293 KB body, \u9632\u6B62\u7F16\u9020 id\u3002\u9A8C\u8BC1\u4E0D\u901A\u8FC7 = \u4E0D\u80FD cite\u3002
82
+ - **store \u524D\u7F00 (v2.1, \u591A store)**: \u5F53 read-set \u542B\u591A\u4E2A store \u4E14\u540C\u4E00 local id \u5728\u591A store \u95F4 shadow \u65F6,cite \u5FC5\u987B store-qualified: \`KB: <store-alias>:<id> ...\`(\u5982 \`KB: team:KT-DEC-0001 (auth) [applied]\`);alias \u7528\u6237\u81EA\u5B9A/canonical,\u5E95\u5C42 UUID\u3002\u5355 store \u6216\u65E0\u6B67\u4E49\u65F6\u88F8 \`KB: <id>\` \u4ECD valid\u3002personal-only \u6761\u76EE cite \u8FDB\u56E2\u961F\u4EA7\u7269=\u5F3A warning(\u63A5 P2 \u5199\u8DEF\u5F84\u9632\u6CC4\u6F0F R5#3)\u3002
82
83
  - **contract \u8BED\u6CD5**: decisions/pitfalls \u7C7B \`[applied]\` cite \u5C3E\u6BB5\u52A0 contract: \`\u2192 <operator> [<operator> ...]\`,operator \u2208 {\`edit:<glob>\` \`!edit:<glob>\` \`require:<symbol>\` \`forbid:<symbol>\` \`skip:<reason>\`}\u3002\u4F8B:\`KB: K-001 (auth) [applied] \u2192 edit:src/auth/**/*.ts !edit:src/legacy/**\`\u3002
83
84
  - **skip reason \u8BCD\u5178**: \`sequencing | conditional | semantic | aesthetic | architectural | other:<text>\`\u3002
84
85
  - **type \u8DEF\u7531**: models \u7C7B\u5F15\u7528\u4E3A reference cite,\u4E0D\u9700\u8981 contract;guidelines/processes \u7C7B\u6682\u4E0D\u5F3A\u5236,\u63A8\u540E LLM-judge\u3002
@@ -110,7 +110,7 @@ var enMessages = {
110
110
  "doctor.cite.warning.justActivated": "Cite policy activated on this run; no historical data yet.",
111
111
  "doctor.cite.metric.editsTouched": "Edits touched",
112
112
  "doctor.cite.metric.qualifyingCites": "Qualifying cites",
113
- "doctor.cite.metric.recalledUnverified": "Recalled but not verified",
113
+ "doctor.cite.metric.recalledUnverified": "Applied but not verified",
114
114
  "doctor.cite.metric.expectedButMissed": "Expected cite missing",
115
115
  "doctor.cite.metric.totalTurns": "Total turns",
116
116
  "doctor.cite.metric.complianceRate": "cite compliance rate (incl. KB:none[reason])",
@@ -1068,7 +1068,7 @@ var zhCNMessages = {
1068
1068
  "doctor.cite.warning.justActivated": "\u672C\u6B21\u9996\u6B21\u6FC0\u6D3B Cite policy,\u6682\u65E0\u5386\u53F2\u6570\u636E\u3002",
1069
1069
  "doctor.cite.metric.editsTouched": "Edit \u89E6\u8FBE\u6570",
1070
1070
  "doctor.cite.metric.qualifyingCites": "\u5408\u683C cite",
1071
- "doctor.cite.metric.recalledUnverified": "recalled \u4F46\u672A\u9A8C\u8BC1",
1071
+ "doctor.cite.metric.recalledUnverified": "applied \u4F46\u672A\u9A8C\u8BC1",
1072
1072
  "doctor.cite.metric.expectedButMissed": "\u5E94\u67E5\u6CA1\u67E5",
1073
1073
  "doctor.cite.metric.totalTurns": "\u603B\u56DE\u5408\u6570",
1074
1074
  "doctor.cite.metric.complianceRate": "cite \u5408\u89C4\u7387 (\u542B KB:none[reason])",
@@ -7,7 +7,7 @@ import {
7
7
  normalizeLocale,
8
8
  resolveFabricLocale,
9
9
  zhCNMessages
10
- } from "../chunk-7CX32MYL.js";
10
+ } from "../chunk-R2J7DAED.js";
11
11
  export {
12
12
  PROTECTED_TOKENS,
13
13
  createTranslator,
@@ -135,6 +135,18 @@ declare const fabricConfigSchema: z.ZodObject<{
135
135
  cursor?: string | undefined;
136
136
  codexCLI?: string | undefined;
137
137
  }>>;
138
+ project_id: z.ZodOptional<z.ZodString>;
139
+ required_stores: z.ZodOptional<z.ZodArray<z.ZodObject<{
140
+ id: z.ZodString;
141
+ suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ id: string;
144
+ suggested_remote?: string | undefined;
145
+ }, {
146
+ id: string;
147
+ suggested_remote?: string | undefined;
148
+ }>, "many">>;
149
+ active_write_store: z.ZodOptional<z.ZodString>;
138
150
  scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
139
151
  audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
140
152
  mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
@@ -222,6 +234,12 @@ declare const fabricConfigSchema: z.ZodObject<{
222
234
  cursor?: string | undefined;
223
235
  codexCLI?: string | undefined;
224
236
  } | undefined;
237
+ project_id?: string | undefined;
238
+ required_stores?: {
239
+ id: string;
240
+ suggested_remote?: string | undefined;
241
+ }[] | undefined;
242
+ active_write_store?: string | undefined;
225
243
  scanIgnores?: string[] | undefined;
226
244
  audit_mode?: "strict" | "warn" | "off" | undefined;
227
245
  mcpPayloadLimits?: {
@@ -241,6 +259,12 @@ declare const fabricConfigSchema: z.ZodObject<{
241
259
  cursor?: string | undefined;
242
260
  codexCLI?: string | undefined;
243
261
  } | undefined;
262
+ project_id?: string | undefined;
263
+ required_stores?: {
264
+ id: string;
265
+ suggested_remote?: string | undefined;
266
+ }[] | undefined;
267
+ active_write_store?: string | undefined;
244
268
  scanIgnores?: string[] | undefined;
245
269
  audit_mode?: "strict" | "warn" | "off" | undefined;
246
270
  mcpPayloadLimits?: {