@fenglimg/fabric-shared 1.5.2 → 1.7.0

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.
@@ -1,22 +1,41 @@
1
1
  type AgentsLayer = "L0" | "L1" | "L2";
2
- type AgentsTopologyType = "mirror" | "cross-cutting";
2
+ type AgentsTopologyType = "mirror" | "cross-cutting" | "domain" | "local" | "global";
3
3
  type AgentsActivationTier = "always" | "path" | "description";
4
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
+ }
13
+ interface RuleDescriptionIndexItem {
14
+ stable_id: string;
15
+ level: AgentsLayer;
16
+ required: boolean;
17
+ selectable: boolean;
18
+ description: RuleDescription;
19
+ }
5
20
  interface AgentsMetaNodeActivation {
6
21
  tier: AgentsActivationTier;
7
22
  description?: string;
8
23
  }
9
24
  interface AgentsMetaNode {
10
25
  file: string;
26
+ content_ref?: string;
11
27
  scope_glob: string;
12
28
  deps: string[];
13
29
  priority: "high" | "medium" | "low";
30
+ level?: AgentsLayer;
14
31
  layer: AgentsLayer;
15
32
  topology_type: AgentsTopologyType;
16
33
  hash: string;
17
34
  stable_id?: string;
18
35
  identity_source?: AgentsIdentitySource;
19
36
  activation?: AgentsMetaNodeActivation;
37
+ description?: RuleDescription;
38
+ sections?: string[];
20
39
  }
21
40
  interface AgentsMeta {
22
41
  revision: string;
@@ -68,4 +87,4 @@ interface FabricConfig {
68
87
  audit_mode?: AuditMode;
69
88
  }
70
89
 
71
- export type { AgentsActivationTier, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsMetaNodeActivation, AgentsTopologyType, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, HumanLockEntry, LedgerEntry };
90
+ export type { AgentsActivationTier, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsMetaNodeActivation, AgentsTopologyType, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, HumanLockEntry, LedgerEntry, RuleDescription, RuleDescriptionIndexItem };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fenglimg/fabric-shared",
3
- "version": "1.5.2",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",