@fenglimg/fabric-shared 2.0.0 → 2.0.1
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/LICENSE +21 -0
- package/README.md +13 -0
- package/dist/chunk-7CX32MYL.js +2043 -0
- package/dist/chunk-LTDB2UDN.js +100 -0
- package/dist/chunk-WVPDH4BF.js +952 -0
- package/dist/i18n/index.d.ts +22 -2
- package/dist/i18n/index.js +3 -1
- package/dist/index-UBqD9F0b.d.ts +304 -0
- package/dist/index.d.ts +1440 -458
- package/dist/index.js +1058 -350
- package/dist/node/atomic-write.d.ts +16 -0
- package/dist/node/atomic-write.js +19 -10
- package/dist/node/mcp-payload-guard.d.ts +3 -1
- package/dist/node/mcp-payload-guard.js +6 -2
- package/dist/schemas/api-contracts.d.ts +1561 -814
- package/dist/schemas/api-contracts.js +23 -7
- package/dist/templates/bootstrap-canonical.d.ts +56 -0
- package/dist/templates/bootstrap-canonical.js +18 -0
- package/dist/types/index.d.ts +2 -123
- package/package.json +32 -4
- package/dist/chunk-U2SR2M4L.js +0 -958
- package/dist/chunk-VQDCDCJA.js +0 -555
package/dist/i18n/index.d.ts
CHANGED
|
@@ -10,13 +10,33 @@ declare function createTranslator(locale: Locale, messages?: Record<Locale, Mess
|
|
|
10
10
|
|
|
11
11
|
declare function detectNodeLocale(): Locale;
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Resolve the effective runtime locale for a given project root.
|
|
15
|
+
*
|
|
16
|
+
* Resolution order (rc.26 — closes KT-DEC-9004 runtime gap):
|
|
17
|
+
* 1. Read `<projectRoot>/.fabric/fabric-config.json` and inspect
|
|
18
|
+
* `fabric_language`.
|
|
19
|
+
* 2. If the value is `"en"` or `"zh-CN"` (the two concrete Locale members),
|
|
20
|
+
* return it verbatim — this is the eager-resolved value `fabric init` is
|
|
21
|
+
* supposed to write back per KT-DEC-9004.
|
|
22
|
+
* 3. If the value is `"match-existing"` or `"zh-CN-hybrid"` (placeholders
|
|
23
|
+
* that should NEVER survive `fabric init` per KT-DEC-9004's invariant),
|
|
24
|
+
* emit a `console.warn` and fall through to `detectNodeLocale()`.
|
|
25
|
+
* 4. If the file is missing, unreadable, malformed JSON, or `fabric_language`
|
|
26
|
+
* is absent / has any other shape, silently fall through to
|
|
27
|
+
* `detectNodeLocale()` (env-driven: `FAB_LANG` → `LANG` → `"en"`).
|
|
28
|
+
*
|
|
29
|
+
* Never throws — all failure paths degrade to `detectNodeLocale()`.
|
|
30
|
+
*/
|
|
31
|
+
declare function resolveFabricLocale(projectRoot: string): Locale;
|
|
32
|
+
|
|
13
33
|
declare function normalizeLocale(raw: string | null | undefined): Locale;
|
|
14
34
|
|
|
15
|
-
declare const PROTECTED_TOKENS: readonly ["fab_plan_context", "fab_get_knowledge_sections", "fab_extract_knowledge", "fab_review", "AGENTS.md", ".fabric/agents/", ".fabric/agents/_cross/", ".fabric/agents.meta.json", ".fabric/human-lock.json", ".fabric/events.jsonl", ".fabric/knowledge/", "knowledge_proposed", "@HUMAN", "MUST", "NEVER"];
|
|
35
|
+
declare const PROTECTED_TOKENS: readonly ["fab_plan_context", "fab_get_knowledge_sections", "fab_extract_knowledge", "fab_review", "AGENTS.md", ".fabric/agents/", ".fabric/agents/_cross/", ".fabric/agents.meta.json", ".fabric/human-lock.json", ".fabric/events.jsonl", ".fabric/knowledge/", "knowledge_proposed", "relevance_scope", "relevance_paths", "narrow", "broad", "source_sessions", "proposed_reason", "session_context", "layer", "team", "personal", "pending_path", "knowledge_scope_degraded", "@HUMAN", "MUST", "NEVER"];
|
|
16
36
|
type ProtectedToken = (typeof PROTECTED_TOKENS)[number];
|
|
17
37
|
|
|
18
38
|
declare const enMessages: Messages;
|
|
19
39
|
|
|
20
40
|
declare const zhCNMessages: Messages;
|
|
21
41
|
|
|
22
|
-
export { type Locale, type Messages, PROTECTED_TOKENS, type ProtectedToken, type TranslationKey, type Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, zhCNMessages };
|
|
42
|
+
export { type Locale, type Messages, PROTECTED_TOKENS, type ProtectedToken, type TranslationKey, type Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, resolveFabricLocale, zhCNMessages };
|
package/dist/i18n/index.js
CHANGED
|
@@ -5,8 +5,9 @@ import {
|
|
|
5
5
|
detectNodeLocale,
|
|
6
6
|
enMessages,
|
|
7
7
|
normalizeLocale,
|
|
8
|
+
resolveFabricLocale,
|
|
8
9
|
zhCNMessages
|
|
9
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-7CX32MYL.js";
|
|
10
11
|
export {
|
|
11
12
|
PROTECTED_TOKENS,
|
|
12
13
|
createTranslator,
|
|
@@ -14,5 +15,6 @@ export {
|
|
|
14
15
|
detectNodeLocale,
|
|
15
16
|
enMessages,
|
|
16
17
|
normalizeLocale,
|
|
18
|
+
resolveFabricLocale,
|
|
17
19
|
zhCNMessages
|
|
18
20
|
};
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
type AgentsLayer = "L0" | "L1" | "L2";
|
|
4
|
+
type AgentsTopologyType = "mirror" | "cross-cutting" | "domain" | "local" | "global";
|
|
5
|
+
type AgentsActivationTier = "always" | "path" | "description";
|
|
6
|
+
type AgentsIdentitySource = "declared" | "derived";
|
|
7
|
+
interface RuleDescription {
|
|
8
|
+
summary: string;
|
|
9
|
+
intent_clues: string[];
|
|
10
|
+
tech_stack: string[];
|
|
11
|
+
impact: string[];
|
|
12
|
+
must_read_if: string;
|
|
13
|
+
entities?: string[];
|
|
14
|
+
id?: string;
|
|
15
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
16
|
+
maturity?: "draft" | "verified" | "proven";
|
|
17
|
+
knowledge_layer?: "personal" | "team";
|
|
18
|
+
layer_reason?: string;
|
|
19
|
+
created_at?: string;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
relevance_scope?: "narrow" | "broad";
|
|
22
|
+
relevance_paths?: string[];
|
|
23
|
+
}
|
|
24
|
+
interface RuleDescriptionIndexItem {
|
|
25
|
+
stable_id: string;
|
|
26
|
+
description: RuleDescription;
|
|
27
|
+
}
|
|
28
|
+
interface AgentsMetaNodeActivation {
|
|
29
|
+
tier: AgentsActivationTier;
|
|
30
|
+
description?: string;
|
|
31
|
+
}
|
|
32
|
+
interface AgentsMetaNode {
|
|
33
|
+
file: string;
|
|
34
|
+
content_ref?: string;
|
|
35
|
+
scope_glob: string;
|
|
36
|
+
hash: string;
|
|
37
|
+
stable_id?: string;
|
|
38
|
+
identity_source?: AgentsIdentitySource;
|
|
39
|
+
activation?: AgentsMetaNodeActivation;
|
|
40
|
+
description?: RuleDescription;
|
|
41
|
+
sections?: string[];
|
|
42
|
+
deps?: string[];
|
|
43
|
+
priority?: "high" | "medium" | "low";
|
|
44
|
+
level?: AgentsLayer;
|
|
45
|
+
topology_type?: AgentsTopologyType;
|
|
46
|
+
}
|
|
47
|
+
interface AgentsMetaKnowledgeTypeCounters {
|
|
48
|
+
MOD: number;
|
|
49
|
+
DEC: number;
|
|
50
|
+
GLD: number;
|
|
51
|
+
PIT: number;
|
|
52
|
+
PRO: number;
|
|
53
|
+
}
|
|
54
|
+
interface AgentsMetaCountersEnvelope {
|
|
55
|
+
KP: AgentsMetaKnowledgeTypeCounters;
|
|
56
|
+
KT: AgentsMetaKnowledgeTypeCounters;
|
|
57
|
+
}
|
|
58
|
+
interface AgentsMeta {
|
|
59
|
+
revision: string;
|
|
60
|
+
nodes: Record<string, AgentsMetaNode>;
|
|
61
|
+
counters?: AgentsMetaCountersEnvelope;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface AiLedgerEntry {
|
|
65
|
+
id?: string;
|
|
66
|
+
ts: number;
|
|
67
|
+
source: "ai";
|
|
68
|
+
commit_sha?: string;
|
|
69
|
+
intent: string;
|
|
70
|
+
affected_paths: string[];
|
|
71
|
+
}
|
|
72
|
+
interface HumanLedgerEntry {
|
|
73
|
+
id?: string;
|
|
74
|
+
ts: number;
|
|
75
|
+
source: "human";
|
|
76
|
+
parent_sha: string;
|
|
77
|
+
parent_ledger_entry_id?: string;
|
|
78
|
+
intent: string;
|
|
79
|
+
affected_paths: string[];
|
|
80
|
+
diff_stat: string;
|
|
81
|
+
annotation?: string;
|
|
82
|
+
}
|
|
83
|
+
type LedgerEntry = AiLedgerEntry | HumanLedgerEntry;
|
|
84
|
+
interface HumanLockEntry {
|
|
85
|
+
file: string;
|
|
86
|
+
start_line: number;
|
|
87
|
+
end_line: number;
|
|
88
|
+
hash: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare const auditModeSchema: z.ZodEnum<["strict", "warn", "off"]>;
|
|
92
|
+
declare const clientPathsSchema: z.ZodObject<{
|
|
93
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
94
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
95
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
96
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, "strict", z.ZodTypeAny, {
|
|
98
|
+
claudeCodeCLI?: string | undefined;
|
|
99
|
+
claudeCodeDesktop?: string | undefined;
|
|
100
|
+
cursor?: string | undefined;
|
|
101
|
+
codexCLI?: string | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
claudeCodeCLI?: string | undefined;
|
|
104
|
+
claudeCodeDesktop?: string | undefined;
|
|
105
|
+
cursor?: string | undefined;
|
|
106
|
+
codexCLI?: string | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
warnBytes?: number | undefined;
|
|
113
|
+
hardBytes?: number | undefined;
|
|
114
|
+
}, {
|
|
115
|
+
warnBytes?: number | undefined;
|
|
116
|
+
hardBytes?: number | undefined;
|
|
117
|
+
}>>;
|
|
118
|
+
declare const selectionTokenTtlMsSchema: z.ZodNumber;
|
|
119
|
+
declare const fabricLanguageSchema: z.ZodEnum<["match-existing", "zh-CN", "en", "zh-CN-hybrid"]>;
|
|
120
|
+
declare const defaultLayerFilterSchema: z.ZodEnum<["team", "personal", "both"]>;
|
|
121
|
+
declare const fabricConfigSchema: z.ZodObject<{
|
|
122
|
+
clientPaths: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
124
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
125
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
126
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, "strict", z.ZodTypeAny, {
|
|
128
|
+
claudeCodeCLI?: string | undefined;
|
|
129
|
+
claudeCodeDesktop?: string | undefined;
|
|
130
|
+
cursor?: string | undefined;
|
|
131
|
+
codexCLI?: string | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
claudeCodeCLI?: string | undefined;
|
|
134
|
+
claudeCodeDesktop?: string | undefined;
|
|
135
|
+
cursor?: string | undefined;
|
|
136
|
+
codexCLI?: string | undefined;
|
|
137
|
+
}>>;
|
|
138
|
+
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
139
|
+
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
140
|
+
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
warnBytes?: number | undefined;
|
|
145
|
+
hardBytes?: number | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
warnBytes?: number | undefined;
|
|
148
|
+
hardBytes?: number | undefined;
|
|
149
|
+
}>>;
|
|
150
|
+
fabric_language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["match-existing", "zh-CN", "en", "zh-CN-hybrid"]>>>;
|
|
151
|
+
default_layer_filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>>;
|
|
152
|
+
archive_hint_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
153
|
+
underseed_node_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
154
|
+
archive_edit_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
155
|
+
archive_hint_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
156
|
+
review_hint_pending_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
157
|
+
review_hint_pending_age_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
158
|
+
maintenance_hint_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
159
|
+
maintenance_hint_cooldown_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
160
|
+
import_window_first_run_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
161
|
+
import_window_rerun_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
162
|
+
import_max_pending_per_run: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
163
|
+
import_max_commits_scan: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
164
|
+
import_skip_canonical_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
165
|
+
archive_max_candidates_per_batch: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
166
|
+
archive_max_recent_paths: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
167
|
+
archive_digest_max_sessions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
168
|
+
review_topic_result_cap: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
169
|
+
review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
170
|
+
reverse_unarchive_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
171
|
+
reverse_unarchive_dry_run: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
172
|
+
cite_evict_interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
173
|
+
fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
|
|
174
|
+
onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
175
|
+
hint_broad_top_k: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
176
|
+
hint_dismiss_signals: z.ZodOptional<z.ZodArray<z.ZodEnum<["archive", "review", "import", "maintenance"]>, "many">>;
|
|
177
|
+
hint_narrow_top_k: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
178
|
+
hint_narrow_dedup_window_turns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
179
|
+
hint_broad_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
180
|
+
hint_narrow_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
181
|
+
orphan_demote_stable_days: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
orphan_demote_endorsed_days: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
orphan_demote_draft_days: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
hint_summary_max_len: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
185
|
+
hint_reminder_to_context: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
186
|
+
selection_token_ttl_ms: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
fabric_language: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
189
|
+
default_layer_filter: "personal" | "team" | "both";
|
|
190
|
+
archive_hint_cooldown_hours: number;
|
|
191
|
+
underseed_node_threshold: number;
|
|
192
|
+
archive_edit_threshold: number;
|
|
193
|
+
archive_hint_hours: number;
|
|
194
|
+
review_hint_pending_count: number;
|
|
195
|
+
review_hint_pending_age_days: number;
|
|
196
|
+
maintenance_hint_days: number;
|
|
197
|
+
maintenance_hint_cooldown_days: number;
|
|
198
|
+
import_window_first_run_months: number;
|
|
199
|
+
import_window_rerun_months: number;
|
|
200
|
+
import_max_pending_per_run: number;
|
|
201
|
+
import_max_commits_scan: number;
|
|
202
|
+
import_skip_canonical_threshold: number;
|
|
203
|
+
archive_max_candidates_per_batch: number;
|
|
204
|
+
archive_max_recent_paths: number;
|
|
205
|
+
archive_digest_max_sessions: number;
|
|
206
|
+
review_topic_result_cap: number;
|
|
207
|
+
review_stale_pending_days: number;
|
|
208
|
+
reverse_unarchive_enabled: boolean;
|
|
209
|
+
reverse_unarchive_dry_run: boolean;
|
|
210
|
+
cite_evict_interval: number;
|
|
211
|
+
onboard_slots_opted_out: string[];
|
|
212
|
+
hint_broad_top_k: number;
|
|
213
|
+
hint_narrow_top_k: number;
|
|
214
|
+
hint_narrow_dedup_window_turns: number;
|
|
215
|
+
hint_broad_cooldown_hours: number;
|
|
216
|
+
hint_narrow_cooldown_hours: number;
|
|
217
|
+
hint_summary_max_len: number;
|
|
218
|
+
hint_reminder_to_context: boolean;
|
|
219
|
+
clientPaths?: {
|
|
220
|
+
claudeCodeCLI?: string | undefined;
|
|
221
|
+
claudeCodeDesktop?: string | undefined;
|
|
222
|
+
cursor?: string | undefined;
|
|
223
|
+
codexCLI?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
scanIgnores?: string[] | undefined;
|
|
226
|
+
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
227
|
+
mcpPayloadLimits?: {
|
|
228
|
+
warnBytes?: number | undefined;
|
|
229
|
+
hardBytes?: number | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
232
|
+
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
233
|
+
orphan_demote_stable_days?: number | undefined;
|
|
234
|
+
orphan_demote_endorsed_days?: number | undefined;
|
|
235
|
+
orphan_demote_draft_days?: number | undefined;
|
|
236
|
+
selection_token_ttl_ms?: number | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
clientPaths?: {
|
|
239
|
+
claudeCodeCLI?: string | undefined;
|
|
240
|
+
claudeCodeDesktop?: string | undefined;
|
|
241
|
+
cursor?: string | undefined;
|
|
242
|
+
codexCLI?: string | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
scanIgnores?: string[] | undefined;
|
|
245
|
+
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
246
|
+
mcpPayloadLimits?: {
|
|
247
|
+
warnBytes?: number | undefined;
|
|
248
|
+
hardBytes?: number | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
fabric_language?: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid" | undefined;
|
|
251
|
+
default_layer_filter?: "personal" | "team" | "both" | undefined;
|
|
252
|
+
archive_hint_cooldown_hours?: number | undefined;
|
|
253
|
+
underseed_node_threshold?: number | undefined;
|
|
254
|
+
archive_edit_threshold?: number | undefined;
|
|
255
|
+
archive_hint_hours?: number | undefined;
|
|
256
|
+
review_hint_pending_count?: number | undefined;
|
|
257
|
+
review_hint_pending_age_days?: number | undefined;
|
|
258
|
+
maintenance_hint_days?: number | undefined;
|
|
259
|
+
maintenance_hint_cooldown_days?: number | undefined;
|
|
260
|
+
import_window_first_run_months?: number | undefined;
|
|
261
|
+
import_window_rerun_months?: number | undefined;
|
|
262
|
+
import_max_pending_per_run?: number | undefined;
|
|
263
|
+
import_max_commits_scan?: number | undefined;
|
|
264
|
+
import_skip_canonical_threshold?: number | undefined;
|
|
265
|
+
archive_max_candidates_per_batch?: number | undefined;
|
|
266
|
+
archive_max_recent_paths?: number | undefined;
|
|
267
|
+
archive_digest_max_sessions?: number | undefined;
|
|
268
|
+
review_topic_result_cap?: number | undefined;
|
|
269
|
+
review_stale_pending_days?: number | undefined;
|
|
270
|
+
reverse_unarchive_enabled?: boolean | undefined;
|
|
271
|
+
reverse_unarchive_dry_run?: boolean | undefined;
|
|
272
|
+
cite_evict_interval?: number | undefined;
|
|
273
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
274
|
+
onboard_slots_opted_out?: string[] | undefined;
|
|
275
|
+
hint_broad_top_k?: number | undefined;
|
|
276
|
+
hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
|
|
277
|
+
hint_narrow_top_k?: number | undefined;
|
|
278
|
+
hint_narrow_dedup_window_turns?: number | undefined;
|
|
279
|
+
hint_broad_cooldown_hours?: number | undefined;
|
|
280
|
+
hint_narrow_cooldown_hours?: number | undefined;
|
|
281
|
+
orphan_demote_stable_days?: number | undefined;
|
|
282
|
+
orphan_demote_endorsed_days?: number | undefined;
|
|
283
|
+
orphan_demote_draft_days?: number | undefined;
|
|
284
|
+
hint_summary_max_len?: number | undefined;
|
|
285
|
+
hint_reminder_to_context?: boolean | undefined;
|
|
286
|
+
selection_token_ttl_ms?: number | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
|
|
289
|
+
interface ClientPaths {
|
|
290
|
+
claudeCodeCLI?: string;
|
|
291
|
+
claudeCodeDesktop?: string;
|
|
292
|
+
cursor?: string;
|
|
293
|
+
codexCLI?: string;
|
|
294
|
+
}
|
|
295
|
+
type AuditMode = "strict" | "warn" | "off";
|
|
296
|
+
interface McpPayloadLimits {
|
|
297
|
+
warnBytes?: number;
|
|
298
|
+
hardBytes?: number;
|
|
299
|
+
}
|
|
300
|
+
type FabricLanguage = "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
301
|
+
type DefaultLayerFilter = "team" | "personal" | "both";
|
|
302
|
+
type FabricConfig = z.input<typeof fabricConfigSchema>;
|
|
303
|
+
|
|
304
|
+
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, selectionTokenTtlMsSchema as t };
|