@fenglimg/fabric-shared 2.3.0-rc.1 → 2.3.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.
- package/dist/{chunk-D7HUHWBI.js → chunk-7PS7LB5T.js} +20 -1
- package/dist/{chunk-2GLIAZ5M.js → chunk-ANUDBQBK.js} +17 -6
- package/dist/{chunk-SQKWD7X6.js → chunk-OAYQHN6J.js} +1 -1
- package/dist/{chunk-IFMFEX3V.js → chunk-ZYBWITH7.js} +150 -17
- package/dist/i18n/index.js +2 -2
- package/dist/index-BO7itJ8e.d.ts +892 -0
- package/dist/index.d.ts +22 -236
- package/dist/index.js +87 -15
- package/dist/schemas/api-contracts.d.ts +73 -0
- package/dist/schemas/api-contracts.js +1 -1
- package/dist/templates/bootstrap-canonical.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-BqsM1bzx.d.ts +0 -389
|
@@ -0,0 +1,892 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
type AgentsTopologyType = "mirror" | "cross-cutting" | "domain" | "local" | "global";
|
|
4
|
+
type AgentsIdentitySource = "declared" | "derived";
|
|
5
|
+
interface RuleDescription {
|
|
6
|
+
summary: string;
|
|
7
|
+
intent_clues: string[];
|
|
8
|
+
tech_stack: string[];
|
|
9
|
+
impact: string[];
|
|
10
|
+
must_read_if: string;
|
|
11
|
+
entities?: string[];
|
|
12
|
+
id?: string;
|
|
13
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
14
|
+
maturity?: "draft" | "verified" | "proven";
|
|
15
|
+
knowledge_layer?: "personal" | "team";
|
|
16
|
+
semantic_scope?: string;
|
|
17
|
+
layer_reason?: string;
|
|
18
|
+
created_at?: string;
|
|
19
|
+
tags?: string[];
|
|
20
|
+
relevance_scope?: "narrow" | "broad";
|
|
21
|
+
relevance_paths?: string[];
|
|
22
|
+
related?: string[];
|
|
23
|
+
}
|
|
24
|
+
interface RuleDescriptionIndexItem {
|
|
25
|
+
stable_id: string;
|
|
26
|
+
description: RuleDescription;
|
|
27
|
+
always_active?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface RecallScore {
|
|
30
|
+
score: number;
|
|
31
|
+
score_breakdown: RecallScoreBreakdown;
|
|
32
|
+
}
|
|
33
|
+
interface RecallScoreBreakdown {
|
|
34
|
+
final: number;
|
|
35
|
+
bm25?: number;
|
|
36
|
+
bm25_rank?: number;
|
|
37
|
+
vector?: number;
|
|
38
|
+
vector_rank?: number;
|
|
39
|
+
salience: number;
|
|
40
|
+
recency: number;
|
|
41
|
+
locality: number;
|
|
42
|
+
}
|
|
43
|
+
interface AgentsMetaNode {
|
|
44
|
+
file: string;
|
|
45
|
+
content_ref?: string;
|
|
46
|
+
scope_glob: string;
|
|
47
|
+
hash: string;
|
|
48
|
+
stable_id?: string;
|
|
49
|
+
identity_source?: AgentsIdentitySource;
|
|
50
|
+
description?: RuleDescription;
|
|
51
|
+
sections?: string[];
|
|
52
|
+
deps?: string[];
|
|
53
|
+
priority?: "high" | "medium" | "low";
|
|
54
|
+
topology_type?: AgentsTopologyType;
|
|
55
|
+
}
|
|
56
|
+
interface AgentsMetaKnowledgeTypeCounters {
|
|
57
|
+
MOD: number;
|
|
58
|
+
DEC: number;
|
|
59
|
+
GLD: number;
|
|
60
|
+
PIT: number;
|
|
61
|
+
PRO: number;
|
|
62
|
+
}
|
|
63
|
+
interface AgentsMetaCountersEnvelope {
|
|
64
|
+
KP: AgentsMetaKnowledgeTypeCounters;
|
|
65
|
+
KT: AgentsMetaKnowledgeTypeCounters;
|
|
66
|
+
}
|
|
67
|
+
interface AgentsMeta {
|
|
68
|
+
revision: string;
|
|
69
|
+
nodes: Record<string, AgentsMetaNode>;
|
|
70
|
+
counters?: AgentsMetaCountersEnvelope;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface AiLedgerEntry {
|
|
74
|
+
id?: string;
|
|
75
|
+
ts: number;
|
|
76
|
+
source: "ai";
|
|
77
|
+
commit_sha?: string;
|
|
78
|
+
intent: string;
|
|
79
|
+
affected_paths: string[];
|
|
80
|
+
}
|
|
81
|
+
interface HumanLedgerEntry {
|
|
82
|
+
id?: string;
|
|
83
|
+
ts: number;
|
|
84
|
+
source: "human";
|
|
85
|
+
parent_sha: string;
|
|
86
|
+
parent_ledger_entry_id?: string;
|
|
87
|
+
intent: string;
|
|
88
|
+
affected_paths: string[];
|
|
89
|
+
diff_stat: string;
|
|
90
|
+
annotation?: string;
|
|
91
|
+
}
|
|
92
|
+
type LedgerEntry = AiLedgerEntry | HumanLedgerEntry;
|
|
93
|
+
interface HumanLockEntry {
|
|
94
|
+
file: string;
|
|
95
|
+
start_line: number;
|
|
96
|
+
end_line: number;
|
|
97
|
+
hash: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare const STORE_UUID_PATTERN: RegExp;
|
|
101
|
+
declare const storeUuidSchema: z.ZodString;
|
|
102
|
+
declare const STORE_ALIAS_PATTERN: RegExp;
|
|
103
|
+
declare const storeAliasSchema: z.ZodString;
|
|
104
|
+
declare const PERSONAL_STORE_SENTINEL: "$personal";
|
|
105
|
+
declare const storeIdentitySchema: z.ZodObject<{
|
|
106
|
+
store_uuid: z.ZodString;
|
|
107
|
+
created_at: z.ZodString;
|
|
108
|
+
canonical_alias: z.ZodOptional<z.ZodString>;
|
|
109
|
+
description: z.ZodOptional<z.ZodString>;
|
|
110
|
+
allowed_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
111
|
+
}, "strict", z.ZodTypeAny, {
|
|
112
|
+
store_uuid: string;
|
|
113
|
+
created_at: string;
|
|
114
|
+
canonical_alias?: string | undefined;
|
|
115
|
+
description?: string | undefined;
|
|
116
|
+
allowed_scopes?: string[] | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
store_uuid: string;
|
|
119
|
+
created_at: string;
|
|
120
|
+
canonical_alias?: string | undefined;
|
|
121
|
+
description?: string | undefined;
|
|
122
|
+
allowed_scopes?: string[] | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
type StoreIdentity = z.infer<typeof storeIdentitySchema>;
|
|
125
|
+
declare const STORE_PROJECT_ID_PATTERN: RegExp;
|
|
126
|
+
declare const STORE_MOUNT_NAME_PATTERN: RegExp;
|
|
127
|
+
declare const storeMountNameSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
128
|
+
declare const storeProjectSchema: z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
name: z.ZodOptional<z.ZodString>;
|
|
131
|
+
created_at: z.ZodString;
|
|
132
|
+
}, "strict", z.ZodTypeAny, {
|
|
133
|
+
created_at: string;
|
|
134
|
+
id: string;
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
created_at: string;
|
|
138
|
+
id: string;
|
|
139
|
+
name?: string | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
type StoreProject = z.infer<typeof storeProjectSchema>;
|
|
142
|
+
declare const storeProjectsFileSchema: z.ZodObject<{
|
|
143
|
+
projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
name: z.ZodOptional<z.ZodString>;
|
|
146
|
+
created_at: z.ZodString;
|
|
147
|
+
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
created_at: string;
|
|
149
|
+
id: string;
|
|
150
|
+
name?: string | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
created_at: string;
|
|
153
|
+
id: string;
|
|
154
|
+
name?: string | undefined;
|
|
155
|
+
}>, "many">>;
|
|
156
|
+
}, "strict", z.ZodTypeAny, {
|
|
157
|
+
projects: {
|
|
158
|
+
created_at: string;
|
|
159
|
+
id: string;
|
|
160
|
+
name?: string | undefined;
|
|
161
|
+
}[];
|
|
162
|
+
}, {
|
|
163
|
+
projects?: {
|
|
164
|
+
created_at: string;
|
|
165
|
+
id: string;
|
|
166
|
+
name?: string | undefined;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
}>;
|
|
169
|
+
type StoreProjectsFile = z.infer<typeof storeProjectsFileSchema>;
|
|
170
|
+
declare const requiredStoreEntrySchema: z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
|
|
173
|
+
}, "strict", z.ZodTypeAny, {
|
|
174
|
+
id: string;
|
|
175
|
+
suggested_remote?: string | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
id: string;
|
|
178
|
+
suggested_remote?: string | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
type RequiredStoreEntry = z.infer<typeof requiredStoreEntrySchema>;
|
|
181
|
+
declare const STORE_KNOWLEDGE_TYPE_DIRS: readonly ["models", "decisions", "guidelines", "pitfalls", "processes"];
|
|
182
|
+
declare const STORE_LAYOUT: {
|
|
183
|
+
readonly identityFile: "store.json";
|
|
184
|
+
readonly projectsFile: "projects.json";
|
|
185
|
+
readonly countersFile: "counters.json";
|
|
186
|
+
readonly knowledgeDir: "knowledge";
|
|
187
|
+
readonly bindingsDir: "bindings";
|
|
188
|
+
readonly stateDir: "state";
|
|
189
|
+
};
|
|
190
|
+
type StoreLayout = typeof STORE_LAYOUT;
|
|
191
|
+
declare const STORES_ROOT_DIR = "stores";
|
|
192
|
+
declare const GLOBAL_STATE_DIR = "state";
|
|
193
|
+
declare const GLOBAL_BINDINGS_DIR = "bindings";
|
|
194
|
+
declare function storeKnowledgeTypeDir(type: (typeof STORE_KNOWLEDGE_TYPE_DIRS)[number]): string;
|
|
195
|
+
declare function storeRelativePath(storeUuid: string): string;
|
|
196
|
+
declare const STORE_MOUNT_GROUPS: readonly ["personal", "team"];
|
|
197
|
+
type StoreMountGroup = (typeof STORE_MOUNT_GROUPS)[number];
|
|
198
|
+
declare function storeMountGroup(store: {
|
|
199
|
+
personal?: boolean;
|
|
200
|
+
}): StoreMountGroup;
|
|
201
|
+
declare function storeMountSubPath(store: {
|
|
202
|
+
store_uuid: string;
|
|
203
|
+
mount_name?: string;
|
|
204
|
+
personal?: boolean;
|
|
205
|
+
}): string;
|
|
206
|
+
declare function storeRelativePathForMount(store: {
|
|
207
|
+
store_uuid: string;
|
|
208
|
+
mount_name?: string;
|
|
209
|
+
personal?: boolean;
|
|
210
|
+
}): string;
|
|
211
|
+
declare function deriveMountLabel(input: {
|
|
212
|
+
remote?: string;
|
|
213
|
+
alias?: string;
|
|
214
|
+
store_uuid: string;
|
|
215
|
+
}): string;
|
|
216
|
+
declare const mountedStoreSchema: z.ZodObject<{
|
|
217
|
+
store_uuid: z.ZodString;
|
|
218
|
+
mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
219
|
+
alias: z.ZodString;
|
|
220
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
221
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
222
|
+
personal: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
writable: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
}, "strict", z.ZodTypeAny, {
|
|
225
|
+
store_uuid: string;
|
|
226
|
+
alias: string;
|
|
227
|
+
personal?: boolean | undefined;
|
|
228
|
+
mount_name?: string | undefined;
|
|
229
|
+
display_name?: string | undefined;
|
|
230
|
+
remote?: string | undefined;
|
|
231
|
+
writable?: boolean | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
store_uuid: string;
|
|
234
|
+
alias: string;
|
|
235
|
+
personal?: boolean | undefined;
|
|
236
|
+
mount_name?: string | undefined;
|
|
237
|
+
display_name?: string | undefined;
|
|
238
|
+
remote?: string | undefined;
|
|
239
|
+
writable?: boolean | undefined;
|
|
240
|
+
}>;
|
|
241
|
+
type MountedStore = z.infer<typeof mountedStoreSchema>;
|
|
242
|
+
declare const globalConfigSchema: z.ZodObject<{
|
|
243
|
+
uid: z.ZodString;
|
|
244
|
+
language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
|
|
245
|
+
stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
246
|
+
store_uuid: z.ZodString;
|
|
247
|
+
mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
248
|
+
alias: z.ZodString;
|
|
249
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
250
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
251
|
+
personal: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
writable: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
}, "strict", z.ZodTypeAny, {
|
|
254
|
+
store_uuid: string;
|
|
255
|
+
alias: string;
|
|
256
|
+
personal?: boolean | undefined;
|
|
257
|
+
mount_name?: string | undefined;
|
|
258
|
+
display_name?: string | undefined;
|
|
259
|
+
remote?: string | undefined;
|
|
260
|
+
writable?: boolean | undefined;
|
|
261
|
+
}, {
|
|
262
|
+
store_uuid: string;
|
|
263
|
+
alias: string;
|
|
264
|
+
personal?: boolean | undefined;
|
|
265
|
+
mount_name?: string | undefined;
|
|
266
|
+
display_name?: string | undefined;
|
|
267
|
+
remote?: string | undefined;
|
|
268
|
+
writable?: boolean | undefined;
|
|
269
|
+
}>, "many">>>;
|
|
270
|
+
active_personal_store: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
272
|
+
uid: z.ZodString;
|
|
273
|
+
language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
|
|
274
|
+
stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
275
|
+
store_uuid: z.ZodString;
|
|
276
|
+
mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
277
|
+
alias: z.ZodString;
|
|
278
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
279
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
280
|
+
personal: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
writable: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
}, "strict", z.ZodTypeAny, {
|
|
283
|
+
store_uuid: string;
|
|
284
|
+
alias: string;
|
|
285
|
+
personal?: boolean | undefined;
|
|
286
|
+
mount_name?: string | undefined;
|
|
287
|
+
display_name?: string | undefined;
|
|
288
|
+
remote?: string | undefined;
|
|
289
|
+
writable?: boolean | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
store_uuid: string;
|
|
292
|
+
alias: string;
|
|
293
|
+
personal?: boolean | undefined;
|
|
294
|
+
mount_name?: string | undefined;
|
|
295
|
+
display_name?: string | undefined;
|
|
296
|
+
remote?: string | undefined;
|
|
297
|
+
writable?: boolean | undefined;
|
|
298
|
+
}>, "many">>>;
|
|
299
|
+
active_personal_store: z.ZodOptional<z.ZodString>;
|
|
300
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
301
|
+
uid: z.ZodString;
|
|
302
|
+
language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
|
|
303
|
+
stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
304
|
+
store_uuid: z.ZodString;
|
|
305
|
+
mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
306
|
+
alias: z.ZodString;
|
|
307
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
308
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
309
|
+
personal: z.ZodOptional<z.ZodBoolean>;
|
|
310
|
+
writable: z.ZodOptional<z.ZodBoolean>;
|
|
311
|
+
}, "strict", z.ZodTypeAny, {
|
|
312
|
+
store_uuid: string;
|
|
313
|
+
alias: string;
|
|
314
|
+
personal?: boolean | undefined;
|
|
315
|
+
mount_name?: string | undefined;
|
|
316
|
+
display_name?: string | undefined;
|
|
317
|
+
remote?: string | undefined;
|
|
318
|
+
writable?: boolean | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
store_uuid: string;
|
|
321
|
+
alias: string;
|
|
322
|
+
personal?: boolean | undefined;
|
|
323
|
+
mount_name?: string | undefined;
|
|
324
|
+
display_name?: string | undefined;
|
|
325
|
+
remote?: string | undefined;
|
|
326
|
+
writable?: boolean | undefined;
|
|
327
|
+
}>, "many">>>;
|
|
328
|
+
active_personal_store: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
330
|
+
type GlobalConfig = z.infer<typeof globalConfigSchema>;
|
|
331
|
+
|
|
332
|
+
declare function isNonPersonalRequiredStore(entry: RequiredStoreEntry): boolean;
|
|
333
|
+
declare function migrateRequiredStores(config: {
|
|
334
|
+
required_stores?: RequiredStoreEntry[];
|
|
335
|
+
active_write_store?: string;
|
|
336
|
+
}): {
|
|
337
|
+
required_stores?: RequiredStoreEntry[];
|
|
338
|
+
active_write_store?: string;
|
|
339
|
+
};
|
|
340
|
+
declare const auditModeSchema: z.ZodEnum<["strict", "warn", "off"]>;
|
|
341
|
+
declare const clientPathsSchema: z.ZodObject<{
|
|
342
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
343
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
344
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, "strict", z.ZodTypeAny, {
|
|
346
|
+
claudeCodeCLI?: string | undefined;
|
|
347
|
+
claudeCodeDesktop?: string | undefined;
|
|
348
|
+
codexCLI?: string | undefined;
|
|
349
|
+
}, {
|
|
350
|
+
claudeCodeCLI?: string | undefined;
|
|
351
|
+
claudeCodeDesktop?: string | undefined;
|
|
352
|
+
codexCLI?: string | undefined;
|
|
353
|
+
}>;
|
|
354
|
+
declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
warnBytes?: number | undefined;
|
|
359
|
+
hardBytes?: number | undefined;
|
|
360
|
+
}, {
|
|
361
|
+
warnBytes?: number | undefined;
|
|
362
|
+
hardBytes?: number | undefined;
|
|
363
|
+
}>>;
|
|
364
|
+
declare const selectionTokenTtlMsSchema: z.ZodNumber;
|
|
365
|
+
declare const planContextTopKSchema: z.ZodNumber;
|
|
366
|
+
declare const fabricLanguageSchema: z.ZodEnum<["zh-CN", "en"]>;
|
|
367
|
+
declare const defaultLayerFilterSchema: z.ZodEnum<["team", "personal", "both"]>;
|
|
368
|
+
declare const nudgeModeSchema: z.ZodEnum<["silent", "minimal", "normal", "verbose"]>;
|
|
369
|
+
declare const observeConfigSchema: z.ZodObject<{
|
|
370
|
+
session_start: z.ZodOptional<z.ZodBoolean>;
|
|
371
|
+
pre_tool_use: z.ZodOptional<z.ZodBoolean>;
|
|
372
|
+
stop: z.ZodOptional<z.ZodBoolean>;
|
|
373
|
+
}, "strict", z.ZodTypeAny, {
|
|
374
|
+
session_start?: boolean | undefined;
|
|
375
|
+
pre_tool_use?: boolean | undefined;
|
|
376
|
+
stop?: boolean | undefined;
|
|
377
|
+
}, {
|
|
378
|
+
session_start?: boolean | undefined;
|
|
379
|
+
pre_tool_use?: boolean | undefined;
|
|
380
|
+
stop?: boolean | undefined;
|
|
381
|
+
}>;
|
|
382
|
+
declare const writeRouteSchema: z.ZodObject<{
|
|
383
|
+
scope: z.ZodString;
|
|
384
|
+
store: z.ZodString;
|
|
385
|
+
}, "strict", z.ZodTypeAny, {
|
|
386
|
+
scope: string;
|
|
387
|
+
store: string;
|
|
388
|
+
}, {
|
|
389
|
+
scope: string;
|
|
390
|
+
store: string;
|
|
391
|
+
}>;
|
|
392
|
+
declare const fabricConfigSchema: z.ZodObject<{
|
|
393
|
+
clientPaths: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
395
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
396
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
397
|
+
}, "strict", z.ZodTypeAny, {
|
|
398
|
+
claudeCodeCLI?: string | undefined;
|
|
399
|
+
claudeCodeDesktop?: string | undefined;
|
|
400
|
+
codexCLI?: string | undefined;
|
|
401
|
+
}, {
|
|
402
|
+
claudeCodeCLI?: string | undefined;
|
|
403
|
+
claudeCodeDesktop?: string | undefined;
|
|
404
|
+
codexCLI?: string | undefined;
|
|
405
|
+
}>>;
|
|
406
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
407
|
+
workspace_binding_id: z.ZodOptional<z.ZodString>;
|
|
408
|
+
required_stores: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
409
|
+
id: z.ZodString;
|
|
410
|
+
suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
|
|
411
|
+
}, "strict", z.ZodTypeAny, {
|
|
412
|
+
id: string;
|
|
413
|
+
suggested_remote?: string | undefined;
|
|
414
|
+
}, {
|
|
415
|
+
id: string;
|
|
416
|
+
suggested_remote?: string | undefined;
|
|
417
|
+
}>, "many">, {
|
|
418
|
+
id: string;
|
|
419
|
+
suggested_remote?: string | undefined;
|
|
420
|
+
}[], {
|
|
421
|
+
id: string;
|
|
422
|
+
suggested_remote?: string | undefined;
|
|
423
|
+
}[]>>;
|
|
424
|
+
active_write_store: z.ZodOptional<z.ZodString>;
|
|
425
|
+
active_project: z.ZodOptional<z.ZodString>;
|
|
426
|
+
write_routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
427
|
+
scope: z.ZodString;
|
|
428
|
+
store: z.ZodString;
|
|
429
|
+
}, "strict", z.ZodTypeAny, {
|
|
430
|
+
scope: string;
|
|
431
|
+
store: string;
|
|
432
|
+
}, {
|
|
433
|
+
scope: string;
|
|
434
|
+
store: string;
|
|
435
|
+
}>, "many">>;
|
|
436
|
+
default_write_store: z.ZodOptional<z.ZodString>;
|
|
437
|
+
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
438
|
+
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
439
|
+
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
440
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
441
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
442
|
+
}, "strip", z.ZodTypeAny, {
|
|
443
|
+
warnBytes?: number | undefined;
|
|
444
|
+
hardBytes?: number | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
warnBytes?: number | undefined;
|
|
447
|
+
hardBytes?: number | undefined;
|
|
448
|
+
}>>;
|
|
449
|
+
default_layer_filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>>;
|
|
450
|
+
nudge_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["silent", "minimal", "normal", "verbose"]>>>;
|
|
451
|
+
observe: z.ZodOptional<z.ZodObject<{
|
|
452
|
+
session_start: z.ZodOptional<z.ZodBoolean>;
|
|
453
|
+
pre_tool_use: z.ZodOptional<z.ZodBoolean>;
|
|
454
|
+
stop: z.ZodOptional<z.ZodBoolean>;
|
|
455
|
+
}, "strict", z.ZodTypeAny, {
|
|
456
|
+
session_start?: boolean | undefined;
|
|
457
|
+
pre_tool_use?: boolean | undefined;
|
|
458
|
+
stop?: boolean | undefined;
|
|
459
|
+
}, {
|
|
460
|
+
session_start?: boolean | undefined;
|
|
461
|
+
pre_tool_use?: boolean | undefined;
|
|
462
|
+
stop?: boolean | undefined;
|
|
463
|
+
}>>;
|
|
464
|
+
archive_hint_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
465
|
+
underseed_node_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
466
|
+
archive_edit_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
467
|
+
archive_hint_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
468
|
+
review_hint_pending_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
469
|
+
review_hint_pending_age_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
470
|
+
maintenance_hint_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
471
|
+
maintenance_hint_cooldown_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
472
|
+
review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
473
|
+
cite_recall_nudge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
474
|
+
cite_recall_window_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
475
|
+
cite_nudge_ignore_globs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
476
|
+
conflict_lint_similarity_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
477
|
+
fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
|
|
478
|
+
onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
479
|
+
broad_index_backstop: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
480
|
+
hint_dismiss_signals: z.ZodOptional<z.ZodArray<z.ZodEnum<["archive", "review", "import", "maintenance"]>, "many">>;
|
|
481
|
+
cite_policy_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
482
|
+
self_archive_policy_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
483
|
+
hint_narrow_top_k: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
484
|
+
hint_narrow_dedup_window_turns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
485
|
+
hint_broad_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
486
|
+
hint_narrow_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
487
|
+
orphan_demote_proven_days: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
orphan_demote_verified_days: z.ZodOptional<z.ZodNumber>;
|
|
489
|
+
orphan_demote_draft_days: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
broad_review_recheck_days: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
hint_summary_max_len: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
492
|
+
hint_reminder_to_context: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
493
|
+
selection_token_ttl_ms: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
plan_context_top_k: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
recall_relevance_ratio: z.ZodOptional<z.ZodNumber>;
|
|
496
|
+
embed_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
497
|
+
embed_weight: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
498
|
+
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"]>>>;
|
|
499
|
+
fusion: z.ZodDefault<z.ZodOptional<z.ZodEnum<["additive", "rrf"]>>>;
|
|
500
|
+
}, "strip", z.ZodTypeAny, {
|
|
501
|
+
default_layer_filter: "personal" | "team" | "both";
|
|
502
|
+
nudge_mode: "silent" | "minimal" | "normal" | "verbose";
|
|
503
|
+
archive_hint_cooldown_hours: number;
|
|
504
|
+
underseed_node_threshold: number;
|
|
505
|
+
archive_edit_threshold: number;
|
|
506
|
+
archive_hint_hours: number;
|
|
507
|
+
review_hint_pending_count: number;
|
|
508
|
+
review_hint_pending_age_days: number;
|
|
509
|
+
maintenance_hint_days: number;
|
|
510
|
+
maintenance_hint_cooldown_days: number;
|
|
511
|
+
review_stale_pending_days: number;
|
|
512
|
+
cite_recall_nudge: boolean;
|
|
513
|
+
cite_recall_window_minutes: number;
|
|
514
|
+
conflict_lint_similarity_threshold: number;
|
|
515
|
+
onboard_slots_opted_out: string[];
|
|
516
|
+
broad_index_backstop: number;
|
|
517
|
+
cite_policy_enabled: boolean;
|
|
518
|
+
self_archive_policy_enabled: boolean;
|
|
519
|
+
hint_narrow_top_k: number;
|
|
520
|
+
hint_narrow_dedup_window_turns: number;
|
|
521
|
+
hint_broad_cooldown_hours: number;
|
|
522
|
+
hint_narrow_cooldown_hours: number;
|
|
523
|
+
hint_summary_max_len: number;
|
|
524
|
+
hint_reminder_to_context: boolean;
|
|
525
|
+
embed_enabled: boolean;
|
|
526
|
+
embed_weight: number;
|
|
527
|
+
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";
|
|
528
|
+
fusion: "additive" | "rrf";
|
|
529
|
+
clientPaths?: {
|
|
530
|
+
claudeCodeCLI?: string | undefined;
|
|
531
|
+
claudeCodeDesktop?: string | undefined;
|
|
532
|
+
codexCLI?: string | undefined;
|
|
533
|
+
} | undefined;
|
|
534
|
+
project_id?: string | undefined;
|
|
535
|
+
workspace_binding_id?: string | undefined;
|
|
536
|
+
required_stores?: {
|
|
537
|
+
id: string;
|
|
538
|
+
suggested_remote?: string | undefined;
|
|
539
|
+
}[] | undefined;
|
|
540
|
+
active_write_store?: string | undefined;
|
|
541
|
+
active_project?: string | undefined;
|
|
542
|
+
write_routes?: {
|
|
543
|
+
scope: string;
|
|
544
|
+
store: string;
|
|
545
|
+
}[] | undefined;
|
|
546
|
+
default_write_store?: string | undefined;
|
|
547
|
+
scanIgnores?: string[] | undefined;
|
|
548
|
+
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
549
|
+
mcpPayloadLimits?: {
|
|
550
|
+
warnBytes?: number | undefined;
|
|
551
|
+
hardBytes?: number | undefined;
|
|
552
|
+
} | undefined;
|
|
553
|
+
observe?: {
|
|
554
|
+
session_start?: boolean | undefined;
|
|
555
|
+
pre_tool_use?: boolean | undefined;
|
|
556
|
+
stop?: boolean | undefined;
|
|
557
|
+
} | undefined;
|
|
558
|
+
cite_nudge_ignore_globs?: string[] | undefined;
|
|
559
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
560
|
+
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
561
|
+
orphan_demote_proven_days?: number | undefined;
|
|
562
|
+
orphan_demote_verified_days?: number | undefined;
|
|
563
|
+
orphan_demote_draft_days?: number | undefined;
|
|
564
|
+
broad_review_recheck_days?: number | undefined;
|
|
565
|
+
selection_token_ttl_ms?: number | undefined;
|
|
566
|
+
plan_context_top_k?: number | undefined;
|
|
567
|
+
recall_relevance_ratio?: number | undefined;
|
|
568
|
+
}, {
|
|
569
|
+
clientPaths?: {
|
|
570
|
+
claudeCodeCLI?: string | undefined;
|
|
571
|
+
claudeCodeDesktop?: string | undefined;
|
|
572
|
+
codexCLI?: string | undefined;
|
|
573
|
+
} | undefined;
|
|
574
|
+
project_id?: string | undefined;
|
|
575
|
+
workspace_binding_id?: string | undefined;
|
|
576
|
+
required_stores?: {
|
|
577
|
+
id: string;
|
|
578
|
+
suggested_remote?: string | undefined;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
active_write_store?: string | undefined;
|
|
581
|
+
active_project?: string | undefined;
|
|
582
|
+
write_routes?: {
|
|
583
|
+
scope: string;
|
|
584
|
+
store: string;
|
|
585
|
+
}[] | undefined;
|
|
586
|
+
default_write_store?: string | undefined;
|
|
587
|
+
scanIgnores?: string[] | undefined;
|
|
588
|
+
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
589
|
+
mcpPayloadLimits?: {
|
|
590
|
+
warnBytes?: number | undefined;
|
|
591
|
+
hardBytes?: number | undefined;
|
|
592
|
+
} | undefined;
|
|
593
|
+
default_layer_filter?: "personal" | "team" | "both" | undefined;
|
|
594
|
+
nudge_mode?: "silent" | "minimal" | "normal" | "verbose" | undefined;
|
|
595
|
+
observe?: {
|
|
596
|
+
session_start?: boolean | undefined;
|
|
597
|
+
pre_tool_use?: boolean | undefined;
|
|
598
|
+
stop?: boolean | undefined;
|
|
599
|
+
} | undefined;
|
|
600
|
+
archive_hint_cooldown_hours?: number | undefined;
|
|
601
|
+
underseed_node_threshold?: number | undefined;
|
|
602
|
+
archive_edit_threshold?: number | undefined;
|
|
603
|
+
archive_hint_hours?: number | undefined;
|
|
604
|
+
review_hint_pending_count?: number | undefined;
|
|
605
|
+
review_hint_pending_age_days?: number | undefined;
|
|
606
|
+
maintenance_hint_days?: number | undefined;
|
|
607
|
+
maintenance_hint_cooldown_days?: number | undefined;
|
|
608
|
+
review_stale_pending_days?: number | undefined;
|
|
609
|
+
cite_recall_nudge?: boolean | undefined;
|
|
610
|
+
cite_recall_window_minutes?: number | undefined;
|
|
611
|
+
cite_nudge_ignore_globs?: string[] | undefined;
|
|
612
|
+
conflict_lint_similarity_threshold?: number | undefined;
|
|
613
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
614
|
+
onboard_slots_opted_out?: string[] | undefined;
|
|
615
|
+
broad_index_backstop?: number | undefined;
|
|
616
|
+
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
617
|
+
cite_policy_enabled?: boolean | undefined;
|
|
618
|
+
self_archive_policy_enabled?: boolean | undefined;
|
|
619
|
+
hint_narrow_top_k?: number | undefined;
|
|
620
|
+
hint_narrow_dedup_window_turns?: number | undefined;
|
|
621
|
+
hint_broad_cooldown_hours?: number | undefined;
|
|
622
|
+
hint_narrow_cooldown_hours?: number | undefined;
|
|
623
|
+
orphan_demote_proven_days?: number | undefined;
|
|
624
|
+
orphan_demote_verified_days?: number | undefined;
|
|
625
|
+
orphan_demote_draft_days?: number | undefined;
|
|
626
|
+
broad_review_recheck_days?: number | undefined;
|
|
627
|
+
hint_summary_max_len?: number | undefined;
|
|
628
|
+
hint_reminder_to_context?: boolean | undefined;
|
|
629
|
+
selection_token_ttl_ms?: number | undefined;
|
|
630
|
+
plan_context_top_k?: number | undefined;
|
|
631
|
+
recall_relevance_ratio?: number | undefined;
|
|
632
|
+
embed_enabled?: boolean | undefined;
|
|
633
|
+
embed_weight?: number | undefined;
|
|
634
|
+
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;
|
|
635
|
+
fusion?: "additive" | "rrf" | undefined;
|
|
636
|
+
}>;
|
|
637
|
+
declare const fabricConfigLoadSchema: z.ZodObject<{
|
|
638
|
+
clientPaths: z.ZodOptional<z.ZodObject<{
|
|
639
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
640
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
641
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
642
|
+
}, "strict", z.ZodTypeAny, {
|
|
643
|
+
claudeCodeCLI?: string | undefined;
|
|
644
|
+
claudeCodeDesktop?: string | undefined;
|
|
645
|
+
codexCLI?: string | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
claudeCodeCLI?: string | undefined;
|
|
648
|
+
claudeCodeDesktop?: string | undefined;
|
|
649
|
+
codexCLI?: string | undefined;
|
|
650
|
+
}>>;
|
|
651
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
652
|
+
workspace_binding_id: z.ZodOptional<z.ZodString>;
|
|
653
|
+
active_write_store: z.ZodOptional<z.ZodString>;
|
|
654
|
+
active_project: z.ZodOptional<z.ZodString>;
|
|
655
|
+
write_routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
656
|
+
scope: z.ZodString;
|
|
657
|
+
store: z.ZodString;
|
|
658
|
+
}, "strict", z.ZodTypeAny, {
|
|
659
|
+
scope: string;
|
|
660
|
+
store: string;
|
|
661
|
+
}, {
|
|
662
|
+
scope: string;
|
|
663
|
+
store: string;
|
|
664
|
+
}>, "many">>;
|
|
665
|
+
default_write_store: z.ZodOptional<z.ZodString>;
|
|
666
|
+
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
667
|
+
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
668
|
+
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
669
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
671
|
+
}, "strip", z.ZodTypeAny, {
|
|
672
|
+
warnBytes?: number | undefined;
|
|
673
|
+
hardBytes?: number | undefined;
|
|
674
|
+
}, {
|
|
675
|
+
warnBytes?: number | undefined;
|
|
676
|
+
hardBytes?: number | undefined;
|
|
677
|
+
}>>;
|
|
678
|
+
default_layer_filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>>;
|
|
679
|
+
nudge_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["silent", "minimal", "normal", "verbose"]>>>;
|
|
680
|
+
observe: z.ZodOptional<z.ZodObject<{
|
|
681
|
+
session_start: z.ZodOptional<z.ZodBoolean>;
|
|
682
|
+
pre_tool_use: z.ZodOptional<z.ZodBoolean>;
|
|
683
|
+
stop: z.ZodOptional<z.ZodBoolean>;
|
|
684
|
+
}, "strict", z.ZodTypeAny, {
|
|
685
|
+
session_start?: boolean | undefined;
|
|
686
|
+
pre_tool_use?: boolean | undefined;
|
|
687
|
+
stop?: boolean | undefined;
|
|
688
|
+
}, {
|
|
689
|
+
session_start?: boolean | undefined;
|
|
690
|
+
pre_tool_use?: boolean | undefined;
|
|
691
|
+
stop?: boolean | undefined;
|
|
692
|
+
}>>;
|
|
693
|
+
archive_hint_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
694
|
+
underseed_node_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
695
|
+
archive_edit_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
696
|
+
archive_hint_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
697
|
+
review_hint_pending_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
698
|
+
review_hint_pending_age_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
699
|
+
maintenance_hint_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
700
|
+
maintenance_hint_cooldown_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
701
|
+
review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
702
|
+
cite_recall_nudge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
703
|
+
cite_recall_window_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
704
|
+
cite_nudge_ignore_globs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
705
|
+
conflict_lint_similarity_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
706
|
+
fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
|
|
707
|
+
onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
708
|
+
broad_index_backstop: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
709
|
+
hint_dismiss_signals: z.ZodOptional<z.ZodArray<z.ZodEnum<["archive", "review", "import", "maintenance"]>, "many">>;
|
|
710
|
+
cite_policy_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
711
|
+
self_archive_policy_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
712
|
+
hint_narrow_top_k: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
713
|
+
hint_narrow_dedup_window_turns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
714
|
+
hint_broad_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
715
|
+
hint_narrow_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
716
|
+
orphan_demote_proven_days: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
orphan_demote_verified_days: z.ZodOptional<z.ZodNumber>;
|
|
718
|
+
orphan_demote_draft_days: z.ZodOptional<z.ZodNumber>;
|
|
719
|
+
broad_review_recheck_days: z.ZodOptional<z.ZodNumber>;
|
|
720
|
+
hint_summary_max_len: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
721
|
+
hint_reminder_to_context: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
722
|
+
selection_token_ttl_ms: z.ZodOptional<z.ZodNumber>;
|
|
723
|
+
plan_context_top_k: z.ZodOptional<z.ZodNumber>;
|
|
724
|
+
recall_relevance_ratio: z.ZodOptional<z.ZodNumber>;
|
|
725
|
+
embed_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
726
|
+
embed_weight: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
727
|
+
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"]>>>;
|
|
728
|
+
fusion: z.ZodDefault<z.ZodOptional<z.ZodEnum<["additive", "rrf"]>>>;
|
|
729
|
+
} & {
|
|
730
|
+
required_stores: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
731
|
+
id: z.ZodString;
|
|
732
|
+
suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
|
|
733
|
+
}, "strict", z.ZodTypeAny, {
|
|
734
|
+
id: string;
|
|
735
|
+
suggested_remote?: string | undefined;
|
|
736
|
+
}, {
|
|
737
|
+
id: string;
|
|
738
|
+
suggested_remote?: string | undefined;
|
|
739
|
+
}>, "many">>;
|
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
|
741
|
+
default_layer_filter: "personal" | "team" | "both";
|
|
742
|
+
nudge_mode: "silent" | "minimal" | "normal" | "verbose";
|
|
743
|
+
archive_hint_cooldown_hours: number;
|
|
744
|
+
underseed_node_threshold: number;
|
|
745
|
+
archive_edit_threshold: number;
|
|
746
|
+
archive_hint_hours: number;
|
|
747
|
+
review_hint_pending_count: number;
|
|
748
|
+
review_hint_pending_age_days: number;
|
|
749
|
+
maintenance_hint_days: number;
|
|
750
|
+
maintenance_hint_cooldown_days: number;
|
|
751
|
+
review_stale_pending_days: number;
|
|
752
|
+
cite_recall_nudge: boolean;
|
|
753
|
+
cite_recall_window_minutes: number;
|
|
754
|
+
conflict_lint_similarity_threshold: number;
|
|
755
|
+
onboard_slots_opted_out: string[];
|
|
756
|
+
broad_index_backstop: number;
|
|
757
|
+
cite_policy_enabled: boolean;
|
|
758
|
+
self_archive_policy_enabled: boolean;
|
|
759
|
+
hint_narrow_top_k: number;
|
|
760
|
+
hint_narrow_dedup_window_turns: number;
|
|
761
|
+
hint_broad_cooldown_hours: number;
|
|
762
|
+
hint_narrow_cooldown_hours: number;
|
|
763
|
+
hint_summary_max_len: number;
|
|
764
|
+
hint_reminder_to_context: boolean;
|
|
765
|
+
embed_enabled: boolean;
|
|
766
|
+
embed_weight: number;
|
|
767
|
+
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";
|
|
768
|
+
fusion: "additive" | "rrf";
|
|
769
|
+
clientPaths?: {
|
|
770
|
+
claudeCodeCLI?: string | undefined;
|
|
771
|
+
claudeCodeDesktop?: string | undefined;
|
|
772
|
+
codexCLI?: string | undefined;
|
|
773
|
+
} | undefined;
|
|
774
|
+
project_id?: string | undefined;
|
|
775
|
+
workspace_binding_id?: string | undefined;
|
|
776
|
+
required_stores?: {
|
|
777
|
+
id: string;
|
|
778
|
+
suggested_remote?: string | undefined;
|
|
779
|
+
}[] | undefined;
|
|
780
|
+
active_write_store?: string | undefined;
|
|
781
|
+
active_project?: string | undefined;
|
|
782
|
+
write_routes?: {
|
|
783
|
+
scope: string;
|
|
784
|
+
store: string;
|
|
785
|
+
}[] | undefined;
|
|
786
|
+
default_write_store?: string | undefined;
|
|
787
|
+
scanIgnores?: string[] | undefined;
|
|
788
|
+
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
789
|
+
mcpPayloadLimits?: {
|
|
790
|
+
warnBytes?: number | undefined;
|
|
791
|
+
hardBytes?: number | undefined;
|
|
792
|
+
} | undefined;
|
|
793
|
+
observe?: {
|
|
794
|
+
session_start?: boolean | undefined;
|
|
795
|
+
pre_tool_use?: boolean | undefined;
|
|
796
|
+
stop?: boolean | undefined;
|
|
797
|
+
} | undefined;
|
|
798
|
+
cite_nudge_ignore_globs?: string[] | undefined;
|
|
799
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
800
|
+
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
801
|
+
orphan_demote_proven_days?: number | undefined;
|
|
802
|
+
orphan_demote_verified_days?: number | undefined;
|
|
803
|
+
orphan_demote_draft_days?: number | undefined;
|
|
804
|
+
broad_review_recheck_days?: number | undefined;
|
|
805
|
+
selection_token_ttl_ms?: number | undefined;
|
|
806
|
+
plan_context_top_k?: number | undefined;
|
|
807
|
+
recall_relevance_ratio?: number | undefined;
|
|
808
|
+
}, {
|
|
809
|
+
clientPaths?: {
|
|
810
|
+
claudeCodeCLI?: string | undefined;
|
|
811
|
+
claudeCodeDesktop?: string | undefined;
|
|
812
|
+
codexCLI?: string | undefined;
|
|
813
|
+
} | undefined;
|
|
814
|
+
project_id?: string | undefined;
|
|
815
|
+
workspace_binding_id?: string | undefined;
|
|
816
|
+
required_stores?: {
|
|
817
|
+
id: string;
|
|
818
|
+
suggested_remote?: string | undefined;
|
|
819
|
+
}[] | undefined;
|
|
820
|
+
active_write_store?: string | undefined;
|
|
821
|
+
active_project?: string | undefined;
|
|
822
|
+
write_routes?: {
|
|
823
|
+
scope: string;
|
|
824
|
+
store: string;
|
|
825
|
+
}[] | undefined;
|
|
826
|
+
default_write_store?: string | undefined;
|
|
827
|
+
scanIgnores?: string[] | undefined;
|
|
828
|
+
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
829
|
+
mcpPayloadLimits?: {
|
|
830
|
+
warnBytes?: number | undefined;
|
|
831
|
+
hardBytes?: number | undefined;
|
|
832
|
+
} | undefined;
|
|
833
|
+
default_layer_filter?: "personal" | "team" | "both" | undefined;
|
|
834
|
+
nudge_mode?: "silent" | "minimal" | "normal" | "verbose" | undefined;
|
|
835
|
+
observe?: {
|
|
836
|
+
session_start?: boolean | undefined;
|
|
837
|
+
pre_tool_use?: boolean | undefined;
|
|
838
|
+
stop?: boolean | undefined;
|
|
839
|
+
} | undefined;
|
|
840
|
+
archive_hint_cooldown_hours?: number | undefined;
|
|
841
|
+
underseed_node_threshold?: number | undefined;
|
|
842
|
+
archive_edit_threshold?: number | undefined;
|
|
843
|
+
archive_hint_hours?: number | undefined;
|
|
844
|
+
review_hint_pending_count?: number | undefined;
|
|
845
|
+
review_hint_pending_age_days?: number | undefined;
|
|
846
|
+
maintenance_hint_days?: number | undefined;
|
|
847
|
+
maintenance_hint_cooldown_days?: number | undefined;
|
|
848
|
+
review_stale_pending_days?: number | undefined;
|
|
849
|
+
cite_recall_nudge?: boolean | undefined;
|
|
850
|
+
cite_recall_window_minutes?: number | undefined;
|
|
851
|
+
cite_nudge_ignore_globs?: string[] | undefined;
|
|
852
|
+
conflict_lint_similarity_threshold?: number | undefined;
|
|
853
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
854
|
+
onboard_slots_opted_out?: string[] | undefined;
|
|
855
|
+
broad_index_backstop?: number | undefined;
|
|
856
|
+
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
857
|
+
cite_policy_enabled?: boolean | undefined;
|
|
858
|
+
self_archive_policy_enabled?: boolean | undefined;
|
|
859
|
+
hint_narrow_top_k?: number | undefined;
|
|
860
|
+
hint_narrow_dedup_window_turns?: number | undefined;
|
|
861
|
+
hint_broad_cooldown_hours?: number | undefined;
|
|
862
|
+
hint_narrow_cooldown_hours?: number | undefined;
|
|
863
|
+
orphan_demote_proven_days?: number | undefined;
|
|
864
|
+
orphan_demote_verified_days?: number | undefined;
|
|
865
|
+
orphan_demote_draft_days?: number | undefined;
|
|
866
|
+
broad_review_recheck_days?: number | undefined;
|
|
867
|
+
hint_summary_max_len?: number | undefined;
|
|
868
|
+
hint_reminder_to_context?: boolean | undefined;
|
|
869
|
+
selection_token_ttl_ms?: number | undefined;
|
|
870
|
+
plan_context_top_k?: number | undefined;
|
|
871
|
+
recall_relevance_ratio?: number | undefined;
|
|
872
|
+
embed_enabled?: boolean | undefined;
|
|
873
|
+
embed_weight?: number | undefined;
|
|
874
|
+
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;
|
|
875
|
+
fusion?: "additive" | "rrf" | undefined;
|
|
876
|
+
}>;
|
|
877
|
+
|
|
878
|
+
interface ClientPaths {
|
|
879
|
+
claudeCodeCLI?: string;
|
|
880
|
+
claudeCodeDesktop?: string;
|
|
881
|
+
codexCLI?: string;
|
|
882
|
+
}
|
|
883
|
+
type AuditMode = "strict" | "warn" | "off";
|
|
884
|
+
interface McpPayloadLimits {
|
|
885
|
+
warnBytes?: number;
|
|
886
|
+
hardBytes?: number;
|
|
887
|
+
}
|
|
888
|
+
type FabricLanguage = "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
889
|
+
type DefaultLayerFilter = "team" | "personal" | "both";
|
|
890
|
+
type FabricConfig = z.input<typeof fabricConfigSchema>;
|
|
891
|
+
|
|
892
|
+
export { planContextTopKSchema as $, type AgentsMetaNode as A, type StoreLayout as B, type ClientPaths as C, type DefaultLayerFilter as D, type StoreMountGroup as E, type FabricConfig as F, type GlobalConfig as G, type HumanLockEntry as H, type StoreProjectsFile as I, auditModeSchema as J, clientPathsSchema as K, type LedgerEntry as L, type MountedStore as M, defaultLayerFilterSchema as N, deriveMountLabel as O, PERSONAL_STORE_SENTINEL as P, fabricConfigLoadSchema as Q, type RequiredStoreEntry as R, type StoreIdentity as S, fabricLanguageSchema as T, globalConfigSchema as U, isNonPersonalRequiredStore as V, mcpPayloadLimitsSchema as W, migrateRequiredStores as X, mountedStoreSchema as Y, nudgeModeSchema as Z, observeConfigSchema as _, type AgentsIdentitySource as a, requiredStoreEntrySchema as a0, selectionTokenTtlMsSchema as a1, storeAliasSchema as a2, storeIdentitySchema as a3, storeKnowledgeTypeDir as a4, storeMountGroup as a5, storeMountNameSchema as a6, storeMountSubPath as a7, storeProjectSchema as a8, storeProjectsFileSchema as a9, storeRelativePath as aa, storeRelativePathForMount as ab, storeUuidSchema as ac, writeRouteSchema as ad, type AgentsTopologyType as b, type StoreProject as c, type AgentsMeta as d, type AgentsMetaCountersEnvelope as e, fabricConfigSchema as f, type AgentsMetaKnowledgeTypeCounters as g, type AiLedgerEntry as h, type AuditMode as i, type FabricLanguage as j, GLOBAL_BINDINGS_DIR as k, GLOBAL_STATE_DIR as l, type HumanLedgerEntry as m, type McpPayloadLimits as n, type RecallScore as o, type RecallScoreBreakdown as p, type RuleDescription as q, type RuleDescriptionIndexItem as r, STORES_ROOT_DIR as s, STORE_ALIAS_PATTERN as t, STORE_KNOWLEDGE_TYPE_DIRS as u, STORE_LAYOUT as v, STORE_MOUNT_GROUPS as w, STORE_MOUNT_NAME_PATTERN as x, STORE_PROJECT_ID_PATTERN as y, STORE_UUID_PATTERN as z };
|