@fenglimg/fabric-shared 2.0.0-rc.29 → 2.0.0-rc.30
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/index-DkXJGQCD.d.ts +271 -0
- package/dist/index.d.ts +7 -163
- package/dist/index.js +11 -12
- package/dist/schemas/api-contracts.d.ts +84 -84
- package/dist/types/index.d.ts +2 -122
- package/package.json +1 -1
|
@@ -0,0 +1,271 @@
|
|
|
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
|
+
level: AgentsLayer;
|
|
27
|
+
required: boolean;
|
|
28
|
+
selectable: boolean;
|
|
29
|
+
description: RuleDescription;
|
|
30
|
+
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
31
|
+
maturity?: "draft" | "verified" | "proven";
|
|
32
|
+
layer?: "personal" | "team";
|
|
33
|
+
layer_reason?: string;
|
|
34
|
+
relevance_scope?: "narrow" | "broad";
|
|
35
|
+
relevance_paths?: string[];
|
|
36
|
+
}
|
|
37
|
+
interface AgentsMetaNodeActivation {
|
|
38
|
+
tier: AgentsActivationTier;
|
|
39
|
+
description?: string;
|
|
40
|
+
}
|
|
41
|
+
interface AgentsMetaNode {
|
|
42
|
+
file: string;
|
|
43
|
+
content_ref?: string;
|
|
44
|
+
scope_glob: string;
|
|
45
|
+
hash: string;
|
|
46
|
+
stable_id?: string;
|
|
47
|
+
identity_source?: AgentsIdentitySource;
|
|
48
|
+
activation?: AgentsMetaNodeActivation;
|
|
49
|
+
description?: RuleDescription;
|
|
50
|
+
sections?: string[];
|
|
51
|
+
deps?: string[];
|
|
52
|
+
priority?: "high" | "medium" | "low";
|
|
53
|
+
level?: AgentsLayer;
|
|
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 auditModeSchema: z.ZodEnum<["strict", "warn", "off"]>;
|
|
101
|
+
declare const clientPathsSchema: z.ZodObject<{
|
|
102
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
103
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
104
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
105
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, "strict", z.ZodTypeAny, {
|
|
107
|
+
claudeCodeCLI?: string | undefined;
|
|
108
|
+
claudeCodeDesktop?: string | undefined;
|
|
109
|
+
cursor?: string | undefined;
|
|
110
|
+
codexCLI?: string | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
claudeCodeCLI?: string | undefined;
|
|
113
|
+
claudeCodeDesktop?: string | undefined;
|
|
114
|
+
cursor?: string | undefined;
|
|
115
|
+
codexCLI?: string | undefined;
|
|
116
|
+
}>;
|
|
117
|
+
declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
warnBytes?: number | undefined;
|
|
122
|
+
hardBytes?: number | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
warnBytes?: number | undefined;
|
|
125
|
+
hardBytes?: number | undefined;
|
|
126
|
+
}>>;
|
|
127
|
+
declare const selectionTokenTtlMsSchema: z.ZodNumber;
|
|
128
|
+
declare const fabricLanguageSchema: z.ZodEnum<["match-existing", "zh-CN", "en", "zh-CN-hybrid"]>;
|
|
129
|
+
declare const defaultLayerFilterSchema: z.ZodEnum<["team", "personal", "both"]>;
|
|
130
|
+
declare const fabricConfigSchema: z.ZodObject<{
|
|
131
|
+
clientPaths: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
133
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
134
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
135
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, "strict", z.ZodTypeAny, {
|
|
137
|
+
claudeCodeCLI?: string | undefined;
|
|
138
|
+
claudeCodeDesktop?: string | undefined;
|
|
139
|
+
cursor?: string | undefined;
|
|
140
|
+
codexCLI?: string | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
claudeCodeCLI?: string | undefined;
|
|
143
|
+
claudeCodeDesktop?: string | undefined;
|
|
144
|
+
cursor?: string | undefined;
|
|
145
|
+
codexCLI?: string | undefined;
|
|
146
|
+
}>>;
|
|
147
|
+
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
148
|
+
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
149
|
+
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
warnBytes?: number | undefined;
|
|
154
|
+
hardBytes?: number | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
warnBytes?: number | undefined;
|
|
157
|
+
hardBytes?: number | undefined;
|
|
158
|
+
}>>;
|
|
159
|
+
fabric_language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["match-existing", "zh-CN", "en", "zh-CN-hybrid"]>>>;
|
|
160
|
+
default_layer_filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>>;
|
|
161
|
+
archive_hint_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
162
|
+
underseed_node_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
163
|
+
archive_edit_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
164
|
+
archive_hint_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
165
|
+
review_hint_pending_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
166
|
+
review_hint_pending_age_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
167
|
+
maintenance_hint_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
168
|
+
maintenance_hint_cooldown_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
169
|
+
import_window_first_run_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
170
|
+
import_window_rerun_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
171
|
+
import_max_pending_per_run: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
172
|
+
import_max_commits_scan: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
173
|
+
import_skip_canonical_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
174
|
+
archive_max_candidates_per_batch: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
175
|
+
archive_max_recent_paths: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
176
|
+
archive_digest_max_sessions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
177
|
+
review_topic_result_cap: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
178
|
+
review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
179
|
+
fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
|
|
180
|
+
onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
181
|
+
selection_token_ttl_ms: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
fabric_language: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
184
|
+
default_layer_filter: "personal" | "team" | "both";
|
|
185
|
+
archive_hint_cooldown_hours: number;
|
|
186
|
+
underseed_node_threshold: number;
|
|
187
|
+
archive_edit_threshold: number;
|
|
188
|
+
archive_hint_hours: number;
|
|
189
|
+
review_hint_pending_count: number;
|
|
190
|
+
review_hint_pending_age_days: number;
|
|
191
|
+
maintenance_hint_days: number;
|
|
192
|
+
maintenance_hint_cooldown_days: number;
|
|
193
|
+
import_window_first_run_months: number;
|
|
194
|
+
import_window_rerun_months: number;
|
|
195
|
+
import_max_pending_per_run: number;
|
|
196
|
+
import_max_commits_scan: number;
|
|
197
|
+
import_skip_canonical_threshold: number;
|
|
198
|
+
archive_max_candidates_per_batch: number;
|
|
199
|
+
archive_max_recent_paths: number;
|
|
200
|
+
archive_digest_max_sessions: number;
|
|
201
|
+
review_topic_result_cap: number;
|
|
202
|
+
review_stale_pending_days: number;
|
|
203
|
+
onboard_slots_opted_out: string[];
|
|
204
|
+
clientPaths?: {
|
|
205
|
+
claudeCodeCLI?: string | undefined;
|
|
206
|
+
claudeCodeDesktop?: string | undefined;
|
|
207
|
+
cursor?: string | undefined;
|
|
208
|
+
codexCLI?: string | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
scanIgnores?: string[] | undefined;
|
|
211
|
+
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
212
|
+
mcpPayloadLimits?: {
|
|
213
|
+
warnBytes?: number | undefined;
|
|
214
|
+
hardBytes?: number | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
217
|
+
selection_token_ttl_ms?: number | undefined;
|
|
218
|
+
}, {
|
|
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_language?: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid" | undefined;
|
|
232
|
+
default_layer_filter?: "personal" | "team" | "both" | undefined;
|
|
233
|
+
archive_hint_cooldown_hours?: number | undefined;
|
|
234
|
+
underseed_node_threshold?: number | undefined;
|
|
235
|
+
archive_edit_threshold?: number | undefined;
|
|
236
|
+
archive_hint_hours?: number | undefined;
|
|
237
|
+
review_hint_pending_count?: number | undefined;
|
|
238
|
+
review_hint_pending_age_days?: number | undefined;
|
|
239
|
+
maintenance_hint_days?: number | undefined;
|
|
240
|
+
maintenance_hint_cooldown_days?: number | undefined;
|
|
241
|
+
import_window_first_run_months?: number | undefined;
|
|
242
|
+
import_window_rerun_months?: number | undefined;
|
|
243
|
+
import_max_pending_per_run?: number | undefined;
|
|
244
|
+
import_max_commits_scan?: number | undefined;
|
|
245
|
+
import_skip_canonical_threshold?: number | undefined;
|
|
246
|
+
archive_max_candidates_per_batch?: number | undefined;
|
|
247
|
+
archive_max_recent_paths?: number | undefined;
|
|
248
|
+
archive_digest_max_sessions?: number | undefined;
|
|
249
|
+
review_topic_result_cap?: number | undefined;
|
|
250
|
+
review_stale_pending_days?: number | undefined;
|
|
251
|
+
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
252
|
+
onboard_slots_opted_out?: string[] | undefined;
|
|
253
|
+
selection_token_ttl_ms?: number | undefined;
|
|
254
|
+
}>;
|
|
255
|
+
|
|
256
|
+
interface ClientPaths {
|
|
257
|
+
claudeCodeCLI?: string;
|
|
258
|
+
claudeCodeDesktop?: string;
|
|
259
|
+
cursor?: string;
|
|
260
|
+
codexCLI?: string;
|
|
261
|
+
}
|
|
262
|
+
type AuditMode = "strict" | "warn" | "off";
|
|
263
|
+
interface McpPayloadLimits {
|
|
264
|
+
warnBytes?: number;
|
|
265
|
+
hardBytes?: number;
|
|
266
|
+
}
|
|
267
|
+
type FabricLanguage = "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
268
|
+
type DefaultLayerFilter = "team" | "personal" | "both";
|
|
269
|
+
type FabricConfig = z.input<typeof fabricConfigSchema>;
|
|
270
|
+
|
|
271
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AgentsMetaNode, AgentsIdentitySource, AgentsLayer, AgentsTopologyType, HumanLockEntry, AgentsMeta, LedgerEntry } from './
|
|
2
|
-
export { AgentsActivationTier, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTypeCounters, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, DefaultLayerFilter, FabricConfig, FabricLanguage, HumanLedgerEntry, McpPayloadLimits, RuleDescription, RuleDescriptionIndexItem } from './
|
|
1
|
+
import { A as AgentsMetaNode, a as AgentsIdentitySource, b as AgentsLayer, c as AgentsTopologyType, H as HumanLockEntry, f as fabricConfigSchema, d as AgentsMeta, L as LedgerEntry } from './index-DkXJGQCD.js';
|
|
2
|
+
export { e as AgentsActivationTier, g as AgentsMetaCountersEnvelope, h as AgentsMetaKnowledgeTypeCounters, i as AgentsMetaNodeActivation, j as AiLedgerEntry, k as AuditMode, C as ClientPaths, D as DefaultLayerFilter, F as FabricConfig, l as FabricLanguage, m as HumanLedgerEntry, M as McpPayloadLimits, R as RuleDescription, n as RuleDescriptionIndexItem, o as auditModeSchema, p as clientPathsSchema, q as defaultLayerFilterSchema, r as fabricLanguageSchema, s as mcpPayloadLimitsSchema, t as selectionTokenTtlMsSchema } from './index-DkXJGQCD.js';
|
|
3
3
|
export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, resolveFabricLocale, zhCNMessages } from './i18n/index.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
|
|
@@ -1314,162 +1314,6 @@ declare const humanLockFileSchema: z.ZodObject<{
|
|
|
1314
1314
|
}[] | undefined;
|
|
1315
1315
|
}>;
|
|
1316
1316
|
|
|
1317
|
-
declare const auditModeSchema: z.ZodEnum<["strict", "warn", "off"]>;
|
|
1318
|
-
declare const clientPathsSchema: z.ZodObject<{
|
|
1319
|
-
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
1320
|
-
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
1321
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1322
|
-
codexCLI: z.ZodOptional<z.ZodString>;
|
|
1323
|
-
}, "strict", z.ZodTypeAny, {
|
|
1324
|
-
cursor?: string | undefined;
|
|
1325
|
-
claudeCodeCLI?: string | undefined;
|
|
1326
|
-
claudeCodeDesktop?: string | undefined;
|
|
1327
|
-
codexCLI?: string | undefined;
|
|
1328
|
-
}, {
|
|
1329
|
-
cursor?: string | undefined;
|
|
1330
|
-
claudeCodeCLI?: string | undefined;
|
|
1331
|
-
claudeCodeDesktop?: string | undefined;
|
|
1332
|
-
codexCLI?: string | undefined;
|
|
1333
|
-
}>;
|
|
1334
|
-
declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
1335
|
-
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
1336
|
-
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
1337
|
-
}, "strip", z.ZodTypeAny, {
|
|
1338
|
-
warnBytes?: number | undefined;
|
|
1339
|
-
hardBytes?: number | undefined;
|
|
1340
|
-
}, {
|
|
1341
|
-
warnBytes?: number | undefined;
|
|
1342
|
-
hardBytes?: number | undefined;
|
|
1343
|
-
}>>;
|
|
1344
|
-
declare const selectionTokenTtlMsSchema: z.ZodNumber;
|
|
1345
|
-
declare const fabricLanguageSchema: z.ZodEnum<["match-existing", "zh-CN", "en", "zh-CN-hybrid"]>;
|
|
1346
|
-
declare const defaultLayerFilterSchema: z.ZodEnum<["team", "personal", "both"]>;
|
|
1347
|
-
declare const fabricConfigSchema: z.ZodObject<{
|
|
1348
|
-
clientPaths: z.ZodOptional<z.ZodObject<{
|
|
1349
|
-
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
1350
|
-
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
1351
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1352
|
-
codexCLI: z.ZodOptional<z.ZodString>;
|
|
1353
|
-
}, "strict", z.ZodTypeAny, {
|
|
1354
|
-
cursor?: string | undefined;
|
|
1355
|
-
claudeCodeCLI?: string | undefined;
|
|
1356
|
-
claudeCodeDesktop?: string | undefined;
|
|
1357
|
-
codexCLI?: string | undefined;
|
|
1358
|
-
}, {
|
|
1359
|
-
cursor?: string | undefined;
|
|
1360
|
-
claudeCodeCLI?: string | undefined;
|
|
1361
|
-
claudeCodeDesktop?: string | undefined;
|
|
1362
|
-
codexCLI?: string | undefined;
|
|
1363
|
-
}>>;
|
|
1364
|
-
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1365
|
-
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
1366
|
-
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
1367
|
-
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
1368
|
-
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
-
}, "strip", z.ZodTypeAny, {
|
|
1370
|
-
warnBytes?: number | undefined;
|
|
1371
|
-
hardBytes?: number | undefined;
|
|
1372
|
-
}, {
|
|
1373
|
-
warnBytes?: number | undefined;
|
|
1374
|
-
hardBytes?: number | undefined;
|
|
1375
|
-
}>>;
|
|
1376
|
-
fabric_language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["match-existing", "zh-CN", "en", "zh-CN-hybrid"]>>>;
|
|
1377
|
-
default_layer_filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>>;
|
|
1378
|
-
archive_hint_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1379
|
-
underseed_node_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1380
|
-
archive_edit_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1381
|
-
archive_hint_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1382
|
-
review_hint_pending_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1383
|
-
review_hint_pending_age_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1384
|
-
maintenance_hint_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1385
|
-
maintenance_hint_cooldown_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1386
|
-
import_window_first_run_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1387
|
-
import_window_rerun_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1388
|
-
import_max_pending_per_run: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1389
|
-
import_max_commits_scan: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1390
|
-
import_skip_canonical_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1391
|
-
archive_max_candidates_per_batch: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1392
|
-
archive_max_recent_paths: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1393
|
-
archive_digest_max_sessions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1394
|
-
review_topic_result_cap: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1395
|
-
review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1396
|
-
fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
|
|
1397
|
-
onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1398
|
-
selection_token_ttl_ms: z.ZodOptional<z.ZodNumber>;
|
|
1399
|
-
}, "strip", z.ZodTypeAny, {
|
|
1400
|
-
fabric_language: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
1401
|
-
default_layer_filter: "personal" | "team" | "both";
|
|
1402
|
-
archive_hint_cooldown_hours: number;
|
|
1403
|
-
underseed_node_threshold: number;
|
|
1404
|
-
archive_edit_threshold: number;
|
|
1405
|
-
archive_hint_hours: number;
|
|
1406
|
-
review_hint_pending_count: number;
|
|
1407
|
-
review_hint_pending_age_days: number;
|
|
1408
|
-
maintenance_hint_days: number;
|
|
1409
|
-
maintenance_hint_cooldown_days: number;
|
|
1410
|
-
import_window_first_run_months: number;
|
|
1411
|
-
import_window_rerun_months: number;
|
|
1412
|
-
import_max_pending_per_run: number;
|
|
1413
|
-
import_max_commits_scan: number;
|
|
1414
|
-
import_skip_canonical_threshold: number;
|
|
1415
|
-
archive_max_candidates_per_batch: number;
|
|
1416
|
-
archive_max_recent_paths: number;
|
|
1417
|
-
archive_digest_max_sessions: number;
|
|
1418
|
-
review_topic_result_cap: number;
|
|
1419
|
-
review_stale_pending_days: number;
|
|
1420
|
-
onboard_slots_opted_out: string[];
|
|
1421
|
-
clientPaths?: {
|
|
1422
|
-
cursor?: string | undefined;
|
|
1423
|
-
claudeCodeCLI?: string | undefined;
|
|
1424
|
-
claudeCodeDesktop?: string | undefined;
|
|
1425
|
-
codexCLI?: string | undefined;
|
|
1426
|
-
} | undefined;
|
|
1427
|
-
scanIgnores?: string[] | undefined;
|
|
1428
|
-
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
1429
|
-
mcpPayloadLimits?: {
|
|
1430
|
-
warnBytes?: number | undefined;
|
|
1431
|
-
hardBytes?: number | undefined;
|
|
1432
|
-
} | undefined;
|
|
1433
|
-
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
1434
|
-
selection_token_ttl_ms?: number | undefined;
|
|
1435
|
-
}, {
|
|
1436
|
-
clientPaths?: {
|
|
1437
|
-
cursor?: string | undefined;
|
|
1438
|
-
claudeCodeCLI?: string | undefined;
|
|
1439
|
-
claudeCodeDesktop?: string | undefined;
|
|
1440
|
-
codexCLI?: string | undefined;
|
|
1441
|
-
} | undefined;
|
|
1442
|
-
scanIgnores?: string[] | undefined;
|
|
1443
|
-
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
1444
|
-
mcpPayloadLimits?: {
|
|
1445
|
-
warnBytes?: number | undefined;
|
|
1446
|
-
hardBytes?: number | undefined;
|
|
1447
|
-
} | undefined;
|
|
1448
|
-
fabric_language?: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid" | undefined;
|
|
1449
|
-
default_layer_filter?: "personal" | "team" | "both" | undefined;
|
|
1450
|
-
archive_hint_cooldown_hours?: number | undefined;
|
|
1451
|
-
underseed_node_threshold?: number | undefined;
|
|
1452
|
-
archive_edit_threshold?: number | undefined;
|
|
1453
|
-
archive_hint_hours?: number | undefined;
|
|
1454
|
-
review_hint_pending_count?: number | undefined;
|
|
1455
|
-
review_hint_pending_age_days?: number | undefined;
|
|
1456
|
-
maintenance_hint_days?: number | undefined;
|
|
1457
|
-
maintenance_hint_cooldown_days?: number | undefined;
|
|
1458
|
-
import_window_first_run_months?: number | undefined;
|
|
1459
|
-
import_window_rerun_months?: number | undefined;
|
|
1460
|
-
import_max_pending_per_run?: number | undefined;
|
|
1461
|
-
import_max_commits_scan?: number | undefined;
|
|
1462
|
-
import_skip_canonical_threshold?: number | undefined;
|
|
1463
|
-
archive_max_candidates_per_batch?: number | undefined;
|
|
1464
|
-
archive_max_recent_paths?: number | undefined;
|
|
1465
|
-
archive_digest_max_sessions?: number | undefined;
|
|
1466
|
-
review_topic_result_cap?: number | undefined;
|
|
1467
|
-
review_stale_pending_days?: number | undefined;
|
|
1468
|
-
fabric_event_retention_days?: 7 | 30 | 90 | undefined;
|
|
1469
|
-
onboard_slots_opted_out?: string[] | undefined;
|
|
1470
|
-
selection_token_ttl_ms?: number | undefined;
|
|
1471
|
-
}>;
|
|
1472
|
-
|
|
1473
1317
|
type FabricConfigSchemaShape = z.infer<typeof fabricConfigSchema>;
|
|
1474
1318
|
type PanelFieldGroup = "A_locale" | "B_hint_threshold" | "C_audit";
|
|
1475
1319
|
type ValidateResult = {
|
|
@@ -6340,7 +6184,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
|
|
|
6340
6184
|
turn_id: string;
|
|
6341
6185
|
correlation_id?: string | undefined;
|
|
6342
6186
|
session_id?: string | undefined;
|
|
6343
|
-
client?: "
|
|
6187
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
6344
6188
|
envelope_index?: number | undefined;
|
|
6345
6189
|
}, {
|
|
6346
6190
|
id: string;
|
|
@@ -6362,7 +6206,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
|
|
|
6362
6206
|
}[];
|
|
6363
6207
|
skip_reason: string | null;
|
|
6364
6208
|
}[] | undefined;
|
|
6365
|
-
client?: "
|
|
6209
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
6366
6210
|
envelope_index?: number | undefined;
|
|
6367
6211
|
}>;
|
|
6368
6212
|
declare const citePolicyActivatedEventSchema: z.ZodObject<{
|
|
@@ -7909,7 +7753,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7909
7753
|
turn_id: string;
|
|
7910
7754
|
correlation_id?: string | undefined;
|
|
7911
7755
|
session_id?: string | undefined;
|
|
7912
|
-
client?: "
|
|
7756
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
7913
7757
|
envelope_index?: number | undefined;
|
|
7914
7758
|
}, {
|
|
7915
7759
|
id: string;
|
|
@@ -7931,7 +7775,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7931
7775
|
}[];
|
|
7932
7776
|
skip_reason: string | null;
|
|
7933
7777
|
}[] | undefined;
|
|
7934
|
-
client?: "
|
|
7778
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
7935
7779
|
envelope_index?: number | undefined;
|
|
7936
7780
|
}>, z.ZodObject<{
|
|
7937
7781
|
event_type: z.ZodLiteral<"cite_policy_activated">;
|
|
@@ -8242,4 +8086,4 @@ interface ParseCiteLineResult {
|
|
|
8242
8086
|
*/
|
|
8243
8087
|
declare function parseCiteLine(raw: string): ParseCiteLineResult;
|
|
8244
8088
|
|
|
8245
|
-
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, type InstallDiffAppliedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, type PanelFieldGroup, type PanelFieldMeta, type ParseCiteLineResult, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema,
|
|
8089
|
+
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, type InstallDiffAppliedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, type PanelFieldGroup, type PanelFieldMeta, type ParseCiteLineResult, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, bootstrapMarkerMigratedEventSchema, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, getPanelFieldByKey, getPanelFields, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, installDiffAppliedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, onboardSlotSchema, parseCiteLine, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, withDerivedAgentsMetaNodeDefaults };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
BOOTSTRAP_CANONICAL,
|
|
3
|
+
BOOTSTRAP_MARKER_BEGIN,
|
|
4
|
+
BOOTSTRAP_MARKER_END,
|
|
5
|
+
BOOTSTRAP_REGEX,
|
|
6
|
+
LEGACY_KB_MARKER_BEGIN,
|
|
7
|
+
LEGACY_KB_MARKER_END,
|
|
8
|
+
LEGACY_KB_REGEX
|
|
9
|
+
} from "./chunk-4OQXR6JW.js";
|
|
2
10
|
import {
|
|
3
11
|
PROTECTED_TOKENS,
|
|
4
12
|
createTranslator,
|
|
@@ -51,15 +59,7 @@ import {
|
|
|
51
59
|
planContextOutputSchema,
|
|
52
60
|
structuredWarningSchema
|
|
53
61
|
} from "./chunk-Y2YBFL2G.js";
|
|
54
|
-
import
|
|
55
|
-
BOOTSTRAP_CANONICAL,
|
|
56
|
-
BOOTSTRAP_MARKER_BEGIN,
|
|
57
|
-
BOOTSTRAP_MARKER_END,
|
|
58
|
-
BOOTSTRAP_REGEX,
|
|
59
|
-
LEGACY_KB_MARKER_BEGIN,
|
|
60
|
-
LEGACY_KB_MARKER_END,
|
|
61
|
-
LEGACY_KB_REGEX
|
|
62
|
-
} from "./chunk-4OQXR6JW.js";
|
|
62
|
+
import "./chunk-LXNCAKJZ.js";
|
|
63
63
|
|
|
64
64
|
// src/schemas/agents-meta.ts
|
|
65
65
|
import { z } from "zod";
|
|
@@ -149,8 +149,7 @@ function withDerivedAgentsMetaNodeDefaults(node) {
|
|
|
149
149
|
const identitySource = isKnowledgeEntry ? "declared" : deriveAgentsMetaIdentitySource(node);
|
|
150
150
|
return {
|
|
151
151
|
...node,
|
|
152
|
-
|
|
153
|
-
level: node.level ?? node.layer ?? deriveAgentsMetaLayer(node.file),
|
|
152
|
+
level: node.level ?? deriveAgentsMetaLayer(node.file),
|
|
154
153
|
topology_type: node.topology_type ?? deriveAgentsMetaTopologyType(node.file),
|
|
155
154
|
stable_id: stableId,
|
|
156
155
|
identity_source: identitySource
|