@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
package/dist/types/index.d.ts
CHANGED
|
@@ -1,122 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type AgentsActivationTier = "always" | "path" | "description";
|
|
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
|
-
layer_reason?: string;
|
|
17
|
-
created_at?: string;
|
|
18
|
-
tags?: string[];
|
|
19
|
-
relevance_scope?: "narrow" | "broad";
|
|
20
|
-
relevance_paths?: string[];
|
|
21
|
-
}
|
|
22
|
-
interface RuleDescriptionIndexItem {
|
|
23
|
-
stable_id: string;
|
|
24
|
-
level: AgentsLayer;
|
|
25
|
-
required: boolean;
|
|
26
|
-
selectable: boolean;
|
|
27
|
-
description: RuleDescription;
|
|
28
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
29
|
-
maturity?: "draft" | "verified" | "proven";
|
|
30
|
-
layer?: "personal" | "team";
|
|
31
|
-
layer_reason?: string;
|
|
32
|
-
relevance_scope?: "narrow" | "broad";
|
|
33
|
-
relevance_paths?: string[];
|
|
34
|
-
}
|
|
35
|
-
interface AgentsMetaNodeActivation {
|
|
36
|
-
tier: AgentsActivationTier;
|
|
37
|
-
description?: string;
|
|
38
|
-
}
|
|
39
|
-
interface AgentsMetaNode {
|
|
40
|
-
file: string;
|
|
41
|
-
content_ref?: string;
|
|
42
|
-
scope_glob: string;
|
|
43
|
-
hash: string;
|
|
44
|
-
stable_id?: string;
|
|
45
|
-
identity_source?: AgentsIdentitySource;
|
|
46
|
-
activation?: AgentsMetaNodeActivation;
|
|
47
|
-
description?: RuleDescription;
|
|
48
|
-
sections?: string[];
|
|
49
|
-
deps?: string[];
|
|
50
|
-
priority?: "high" | "medium" | "low";
|
|
51
|
-
level?: AgentsLayer;
|
|
52
|
-
layer?: AgentsLayer;
|
|
53
|
-
topology_type?: AgentsTopologyType;
|
|
54
|
-
}
|
|
55
|
-
interface AgentsMetaKnowledgeTypeCounters {
|
|
56
|
-
MOD: number;
|
|
57
|
-
DEC: number;
|
|
58
|
-
GLD: number;
|
|
59
|
-
PIT: number;
|
|
60
|
-
PRO: number;
|
|
61
|
-
}
|
|
62
|
-
interface AgentsMetaCountersEnvelope {
|
|
63
|
-
KP: AgentsMetaKnowledgeTypeCounters;
|
|
64
|
-
KT: AgentsMetaKnowledgeTypeCounters;
|
|
65
|
-
}
|
|
66
|
-
interface AgentsMeta {
|
|
67
|
-
revision: string;
|
|
68
|
-
nodes: Record<string, AgentsMetaNode>;
|
|
69
|
-
counters?: AgentsMetaCountersEnvelope;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface AiLedgerEntry {
|
|
73
|
-
id?: string;
|
|
74
|
-
ts: number;
|
|
75
|
-
source: "ai";
|
|
76
|
-
commit_sha?: string;
|
|
77
|
-
intent: string;
|
|
78
|
-
affected_paths: string[];
|
|
79
|
-
}
|
|
80
|
-
interface HumanLedgerEntry {
|
|
81
|
-
id?: string;
|
|
82
|
-
ts: number;
|
|
83
|
-
source: "human";
|
|
84
|
-
parent_sha: string;
|
|
85
|
-
parent_ledger_entry_id?: string;
|
|
86
|
-
intent: string;
|
|
87
|
-
affected_paths: string[];
|
|
88
|
-
diff_stat: string;
|
|
89
|
-
annotation?: string;
|
|
90
|
-
}
|
|
91
|
-
type LedgerEntry = AiLedgerEntry | HumanLedgerEntry;
|
|
92
|
-
interface HumanLockEntry {
|
|
93
|
-
file: string;
|
|
94
|
-
start_line: number;
|
|
95
|
-
end_line: number;
|
|
96
|
-
hash: string;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
interface ClientPaths {
|
|
100
|
-
claudeCodeCLI?: string;
|
|
101
|
-
claudeCodeDesktop?: string;
|
|
102
|
-
cursor?: string;
|
|
103
|
-
codexCLI?: string;
|
|
104
|
-
}
|
|
105
|
-
type AuditMode = "strict" | "warn" | "off";
|
|
106
|
-
interface McpPayloadLimits {
|
|
107
|
-
warnBytes?: number;
|
|
108
|
-
hardBytes?: number;
|
|
109
|
-
}
|
|
110
|
-
type FabricLanguage = "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
|
|
111
|
-
type DefaultLayerFilter = "team" | "personal" | "both";
|
|
112
|
-
interface FabricConfig {
|
|
113
|
-
clientPaths?: ClientPaths;
|
|
114
|
-
scanIgnores?: string[];
|
|
115
|
-
audit_mode?: AuditMode;
|
|
116
|
-
mcpPayloadLimits?: McpPayloadLimits;
|
|
117
|
-
fabric_language?: FabricLanguage;
|
|
118
|
-
default_layer_filter?: DefaultLayerFilter;
|
|
119
|
-
selection_token_ttl_ms?: number;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export type { AgentsActivationTier, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTypeCounters, AgentsMetaNode, AgentsMetaNodeActivation, AgentsTopologyType, AiLedgerEntry, AuditMode, ClientPaths, DefaultLayerFilter, FabricConfig, FabricLanguage, HumanLedgerEntry, HumanLockEntry, LedgerEntry, McpPayloadLimits, RuleDescription, RuleDescriptionIndexItem };
|
|
1
|
+
export { e as AgentsActivationTier, a as AgentsIdentitySource, b as AgentsLayer, d as AgentsMeta, g as AgentsMetaCountersEnvelope, h as AgentsMetaKnowledgeTypeCounters, A as AgentsMetaNode, i as AgentsMetaNodeActivation, c as AgentsTopologyType, j as AiLedgerEntry, k as AuditMode, C as ClientPaths, D as DefaultLayerFilter, F as FabricConfig, l as FabricLanguage, m as HumanLedgerEntry, H as HumanLockEntry, L as LedgerEntry, M as McpPayloadLimits, R as RuleDescription, n as RuleDescriptionIndexItem } from '../index-DkXJGQCD.js';
|
|
2
|
+
import 'zod';
|