@fenglimg/fabric-shared 2.1.0-rc.2 → 2.2.0-rc.3
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-WVPDH4BF.js → chunk-355LUDLW.js} +123 -10
- package/dist/{chunk-MDWTGOAY.js → chunk-AFT7DB4P.js} +7 -5
- package/dist/{chunk-R2J7DAED.js → chunk-QSD4PN4W.js} +145 -5
- package/dist/{chunk-3SZRB42B.js → chunk-VW5QGPIN.js} +4 -0
- package/dist/errors/index.d.ts +4 -1
- package/dist/errors/index.js +5 -3
- package/dist/i18n/index.js +1 -1
- package/dist/{index-GQpaWTm-.d.ts → index-Dm4IJWwB.d.ts} +48 -4
- package/dist/index.d.ts +1885 -712
- package/dist/index.js +520 -29
- package/dist/node/atomic-write.d.ts +26 -1
- package/dist/node/atomic-write.js +60 -2
- package/dist/node/mcp-payload-guard.d.ts +32 -1
- package/dist/node/mcp-payload-guard.js +16 -2
- package/dist/schemas/api-contracts.d.ts +187 -18
- package/dist/schemas/api-contracts.js +1 -1
- package/dist/templates/bootstrap-canonical.d.ts +1 -1
- package/dist/templates/bootstrap-canonical.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ interface RuleDescription {
|
|
|
20
20
|
tags?: string[];
|
|
21
21
|
relevance_scope?: "narrow" | "broad";
|
|
22
22
|
relevance_paths?: string[];
|
|
23
|
+
related?: string[];
|
|
23
24
|
}
|
|
24
25
|
interface RuleDescriptionIndexItem {
|
|
25
26
|
stable_id: string;
|
|
@@ -116,6 +117,7 @@ declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
116
117
|
hardBytes?: number | undefined;
|
|
117
118
|
}>>;
|
|
118
119
|
declare const selectionTokenTtlMsSchema: z.ZodNumber;
|
|
120
|
+
declare const planContextTopKSchema: z.ZodNumber;
|
|
119
121
|
declare const fabricLanguageSchema: z.ZodEnum<["match-existing", "zh-CN", "en", "zh-CN-hybrid"]>;
|
|
120
122
|
declare const defaultLayerFilterSchema: z.ZodEnum<["team", "personal", "both"]>;
|
|
121
123
|
declare const fabricConfigSchema: z.ZodObject<{
|
|
@@ -182,20 +184,34 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
182
184
|
reverse_unarchive_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
183
185
|
reverse_unarchive_dry_run: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
184
186
|
cite_evict_interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
187
|
+
cite_recall_nudge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
188
|
+
cite_recall_window_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
189
|
+
cite_nudge_ignore_globs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
190
|
+
conflict_lint_similarity_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
185
191
|
fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
|
|
186
192
|
onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
187
193
|
hint_broad_top_k: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
194
|
+
hint_broad_budget_chars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
188
195
|
hint_dismiss_signals: z.ZodOptional<z.ZodArray<z.ZodEnum<["archive", "review", "import", "maintenance"]>, "many">>;
|
|
196
|
+
cite_policy_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
197
|
+
self_archive_policy_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
189
198
|
hint_narrow_top_k: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
190
199
|
hint_narrow_dedup_window_turns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
191
200
|
hint_broad_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
192
201
|
hint_narrow_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
202
|
+
orphan_demote_proven_days: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
orphan_demote_verified_days: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
orphan_demote_draft_days: z.ZodOptional<z.ZodNumber>;
|
|
193
205
|
orphan_demote_stable_days: z.ZodOptional<z.ZodNumber>;
|
|
194
206
|
orphan_demote_endorsed_days: z.ZodOptional<z.ZodNumber>;
|
|
195
|
-
orphan_demote_draft_days: z.ZodOptional<z.ZodNumber>;
|
|
196
207
|
hint_summary_max_len: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
197
208
|
hint_reminder_to_context: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
198
209
|
selection_token_ttl_ms: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
plan_context_top_k: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
retrieval_budget_profile: z.ZodOptional<z.ZodEnum<["conservative", "balanced", "generous"]>>;
|
|
212
|
+
embed_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
213
|
+
embed_weight: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
214
|
+
embed_model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["fast-bge-small-zh-v1.5", "fast-multilingual-e5-large", "fast-bge-small-en-v1.5", "fast-bge-small-en", "fast-bge-base-en-v1.5", "fast-bge-base-en", "fast-all-MiniLM-L6-v2"]>>>;
|
|
199
215
|
}, "strip", z.ZodTypeAny, {
|
|
200
216
|
fabric_language: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
201
217
|
default_layer_filter: "personal" | "team" | "both";
|
|
@@ -220,14 +236,23 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
220
236
|
reverse_unarchive_enabled: boolean;
|
|
221
237
|
reverse_unarchive_dry_run: boolean;
|
|
222
238
|
cite_evict_interval: number;
|
|
239
|
+
cite_recall_nudge: boolean;
|
|
240
|
+
cite_recall_window_minutes: number;
|
|
241
|
+
conflict_lint_similarity_threshold: number;
|
|
223
242
|
onboard_slots_opted_out: string[];
|
|
224
243
|
hint_broad_top_k: number;
|
|
244
|
+
hint_broad_budget_chars: number;
|
|
245
|
+
cite_policy_enabled: boolean;
|
|
246
|
+
self_archive_policy_enabled: boolean;
|
|
225
247
|
hint_narrow_top_k: number;
|
|
226
248
|
hint_narrow_dedup_window_turns: number;
|
|
227
249
|
hint_broad_cooldown_hours: number;
|
|
228
250
|
hint_narrow_cooldown_hours: number;
|
|
229
251
|
hint_summary_max_len: number;
|
|
230
252
|
hint_reminder_to_context: boolean;
|
|
253
|
+
embed_enabled: boolean;
|
|
254
|
+
embed_weight: number;
|
|
255
|
+
embed_model: "fast-bge-small-zh-v1.5" | "fast-multilingual-e5-large" | "fast-bge-small-en-v1.5" | "fast-bge-small-en" | "fast-bge-base-en-v1.5" | "fast-bge-base-en" | "fast-all-MiniLM-L6-v2";
|
|
231
256
|
clientPaths?: {
|
|
232
257
|
claudeCodeCLI?: string | undefined;
|
|
233
258
|
claudeCodeDesktop?: string | undefined;
|
|
@@ -246,12 +271,17 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
246
271
|
warnBytes?: number | undefined;
|
|
247
272
|
hardBytes?: number | undefined;
|
|
248
273
|
} | undefined;
|
|
274
|
+
cite_nudge_ignore_globs?: string[] | undefined;
|
|
249
275
|
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
250
276
|
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
277
|
+
orphan_demote_proven_days?: number | undefined;
|
|
278
|
+
orphan_demote_verified_days?: number | undefined;
|
|
279
|
+
orphan_demote_draft_days?: number | undefined;
|
|
251
280
|
orphan_demote_stable_days?: number | undefined;
|
|
252
281
|
orphan_demote_endorsed_days?: number | undefined;
|
|
253
|
-
orphan_demote_draft_days?: number | undefined;
|
|
254
282
|
selection_token_ttl_ms?: number | undefined;
|
|
283
|
+
plan_context_top_k?: number | undefined;
|
|
284
|
+
retrieval_budget_profile?: "conservative" | "balanced" | "generous" | undefined;
|
|
255
285
|
}, {
|
|
256
286
|
clientPaths?: {
|
|
257
287
|
claudeCodeCLI?: string | undefined;
|
|
@@ -294,20 +324,34 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
294
324
|
reverse_unarchive_enabled?: boolean | undefined;
|
|
295
325
|
reverse_unarchive_dry_run?: boolean | undefined;
|
|
296
326
|
cite_evict_interval?: number | undefined;
|
|
327
|
+
cite_recall_nudge?: boolean | undefined;
|
|
328
|
+
cite_recall_window_minutes?: number | undefined;
|
|
329
|
+
cite_nudge_ignore_globs?: string[] | undefined;
|
|
330
|
+
conflict_lint_similarity_threshold?: number | undefined;
|
|
297
331
|
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
298
332
|
onboard_slots_opted_out?: string[] | undefined;
|
|
299
333
|
hint_broad_top_k?: number | undefined;
|
|
334
|
+
hint_broad_budget_chars?: number | undefined;
|
|
300
335
|
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
336
|
+
cite_policy_enabled?: boolean | undefined;
|
|
337
|
+
self_archive_policy_enabled?: boolean | undefined;
|
|
301
338
|
hint_narrow_top_k?: number | undefined;
|
|
302
339
|
hint_narrow_dedup_window_turns?: number | undefined;
|
|
303
340
|
hint_broad_cooldown_hours?: number | undefined;
|
|
304
341
|
hint_narrow_cooldown_hours?: number | undefined;
|
|
342
|
+
orphan_demote_proven_days?: number | undefined;
|
|
343
|
+
orphan_demote_verified_days?: number | undefined;
|
|
344
|
+
orphan_demote_draft_days?: number | undefined;
|
|
305
345
|
orphan_demote_stable_days?: number | undefined;
|
|
306
346
|
orphan_demote_endorsed_days?: number | undefined;
|
|
307
|
-
orphan_demote_draft_days?: number | undefined;
|
|
308
347
|
hint_summary_max_len?: number | undefined;
|
|
309
348
|
hint_reminder_to_context?: boolean | undefined;
|
|
310
349
|
selection_token_ttl_ms?: number | undefined;
|
|
350
|
+
plan_context_top_k?: number | undefined;
|
|
351
|
+
retrieval_budget_profile?: "conservative" | "balanced" | "generous" | undefined;
|
|
352
|
+
embed_enabled?: boolean | undefined;
|
|
353
|
+
embed_weight?: number | undefined;
|
|
354
|
+
embed_model?: "fast-bge-small-zh-v1.5" | "fast-multilingual-e5-large" | "fast-bge-small-en-v1.5" | "fast-bge-small-en" | "fast-bge-base-en-v1.5" | "fast-bge-base-en" | "fast-all-MiniLM-L6-v2" | undefined;
|
|
311
355
|
}>;
|
|
312
356
|
|
|
313
357
|
interface ClientPaths {
|
|
@@ -325,4 +369,4 @@ type FabricLanguage = "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
|
325
369
|
type DefaultLayerFilter = "team" | "personal" | "both";
|
|
326
370
|
type FabricConfig = z.input<typeof fabricConfigSchema>;
|
|
327
371
|
|
|
328
|
-
export { type AgentsMetaNode as A, type ClientPaths as C, type DefaultLayerFilter as D, type FabricConfig as F, type HumanLockEntry as H, type LedgerEntry as L, type McpPayloadLimits as M, type RuleDescription as R, type AgentsIdentitySource as a, type AgentsLayer as b, type AgentsTopologyType as c, type AgentsMeta as d, type AgentsActivationTier as e, fabricConfigSchema as f, type AgentsMetaCountersEnvelope as g, type AgentsMetaKnowledgeTypeCounters as h, type AgentsMetaNodeActivation as i, type AiLedgerEntry as j, type AuditMode as k, type FabricLanguage as l, type HumanLedgerEntry as m, type RuleDescriptionIndexItem as n, auditModeSchema as o, clientPathsSchema as p, defaultLayerFilterSchema as q, fabricLanguageSchema as r, mcpPayloadLimitsSchema as s,
|
|
372
|
+
export { type AgentsMetaNode as A, type ClientPaths as C, type DefaultLayerFilter as D, type FabricConfig as F, type HumanLockEntry as H, type LedgerEntry as L, type McpPayloadLimits as M, type RuleDescription as R, type AgentsIdentitySource as a, type AgentsLayer as b, type AgentsTopologyType as c, type AgentsMeta as d, type AgentsActivationTier as e, fabricConfigSchema as f, type AgentsMetaCountersEnvelope as g, type AgentsMetaKnowledgeTypeCounters as h, type AgentsMetaNodeActivation as i, type AiLedgerEntry as j, type AuditMode as k, type FabricLanguage as l, type HumanLedgerEntry as m, type RuleDescriptionIndexItem as n, auditModeSchema as o, clientPathsSchema as p, defaultLayerFilterSchema as q, fabricLanguageSchema as r, mcpPayloadLimitsSchema as s, planContextTopKSchema as t, selectionTokenTtlMsSchema as u };
|