@fenglimg/fabric-shared 1.7.0 → 1.8.0-rc.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/dist/chunk-3SZRB42B.js +90 -0
- package/dist/{chunk-5H2PVNB2.js → chunk-7A3RSITZ.js} +26 -6
- package/dist/chunk-GI6L6VTT.js +176 -0
- package/dist/chunk-KV27CZH3.js +223 -0
- package/dist/errors/index.d.ts +65 -0
- package/dist/errors/index.js +30 -0
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +656 -254
- package/dist/index.js +346 -309
- package/dist/node/atomic-write.d.ts +14 -0
- package/dist/node/atomic-write.js +60 -0
- package/dist/node/bootstrap-guide.d.ts +12 -0
- package/dist/node/bootstrap-guide.js +52 -0
- package/dist/node/mcp-payload-guard.d.ts +16 -0
- package/dist/node/mcp-payload-guard.js +40 -0
- package/dist/node.js +3 -172
- package/dist/schemas/api-contracts.d.ts +883 -0
- package/dist/schemas/api-contracts.js +36 -0
- package/dist/types/index.d.ts +6 -4
- package/package.json +28 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
annotateIntentRequestSchema,
|
|
3
|
+
getRulesAnnotations,
|
|
4
|
+
getRulesInputSchema,
|
|
5
|
+
getRulesOutputSchema,
|
|
6
|
+
historyStateQuerySchema,
|
|
7
|
+
humanLockApproveRequestSchema,
|
|
8
|
+
humanLockFileParamsSchema,
|
|
9
|
+
ledgerQuerySchema,
|
|
10
|
+
ledgerSourceSchema,
|
|
11
|
+
planContextAnnotations,
|
|
12
|
+
planContextInputSchema,
|
|
13
|
+
planContextOutputSchema,
|
|
14
|
+
ruleSectionsAnnotations,
|
|
15
|
+
ruleSectionsInputSchema,
|
|
16
|
+
ruleSectionsOutputSchema,
|
|
17
|
+
structuredWarningSchema
|
|
18
|
+
} from "../chunk-KV27CZH3.js";
|
|
19
|
+
export {
|
|
20
|
+
annotateIntentRequestSchema,
|
|
21
|
+
getRulesAnnotations,
|
|
22
|
+
getRulesInputSchema,
|
|
23
|
+
getRulesOutputSchema,
|
|
24
|
+
historyStateQuerySchema,
|
|
25
|
+
humanLockApproveRequestSchema,
|
|
26
|
+
humanLockFileParamsSchema,
|
|
27
|
+
ledgerQuerySchema,
|
|
28
|
+
ledgerSourceSchema,
|
|
29
|
+
planContextAnnotations,
|
|
30
|
+
planContextInputSchema,
|
|
31
|
+
planContextOutputSchema,
|
|
32
|
+
ruleSectionsAnnotations,
|
|
33
|
+
ruleSectionsInputSchema,
|
|
34
|
+
ruleSectionsOutputSchema,
|
|
35
|
+
structuredWarningSchema
|
|
36
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -73,18 +73,20 @@ interface ClientPaths {
|
|
|
73
73
|
claudeCodeCLI?: string;
|
|
74
74
|
claudeCodeDesktop?: string;
|
|
75
75
|
cursor?: string;
|
|
76
|
-
windsurf?: string;
|
|
77
|
-
rooCode?: string;
|
|
78
|
-
geminiCLI?: string;
|
|
79
76
|
codexCLI?: string;
|
|
80
77
|
}
|
|
81
78
|
type AuditMode = "strict" | "warn" | "off";
|
|
79
|
+
interface McpPayloadLimits {
|
|
80
|
+
warnBytes?: number;
|
|
81
|
+
hardBytes?: number;
|
|
82
|
+
}
|
|
82
83
|
interface FabricConfig {
|
|
83
84
|
clientPaths?: ClientPaths;
|
|
84
85
|
externalFixturePath?: string;
|
|
85
86
|
scanIgnores?: string[];
|
|
86
87
|
auditMode?: AuditMode;
|
|
87
88
|
audit_mode?: AuditMode;
|
|
89
|
+
mcpPayloadLimits?: McpPayloadLimits;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
export type { AgentsActivationTier, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsMetaNodeActivation, AgentsTopologyType, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, HumanLockEntry, LedgerEntry, RuleDescription, RuleDescriptionIndexItem };
|
|
92
|
+
export type { AgentsActivationTier, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsMetaNodeActivation, AgentsTopologyType, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, HumanLockEntry, LedgerEntry, McpPayloadLimits, RuleDescription, RuleDescriptionIndexItem };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fenglimg/fabric-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0-rc.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,6 +20,26 @@
|
|
|
20
20
|
"./node": {
|
|
21
21
|
"types": "./dist/node.d.ts",
|
|
22
22
|
"import": "./dist/node.js"
|
|
23
|
+
},
|
|
24
|
+
"./node/atomic-write": {
|
|
25
|
+
"types": "./dist/node/atomic-write.d.ts",
|
|
26
|
+
"import": "./dist/node/atomic-write.js"
|
|
27
|
+
},
|
|
28
|
+
"./node/mcp-payload-guard": {
|
|
29
|
+
"types": "./dist/node/mcp-payload-guard.d.ts",
|
|
30
|
+
"import": "./dist/node/mcp-payload-guard.js"
|
|
31
|
+
},
|
|
32
|
+
"./node/bootstrap-guide": {
|
|
33
|
+
"types": "./dist/node/bootstrap-guide.d.ts",
|
|
34
|
+
"import": "./dist/node/bootstrap-guide.js"
|
|
35
|
+
},
|
|
36
|
+
"./errors": {
|
|
37
|
+
"types": "./dist/errors/index.d.ts",
|
|
38
|
+
"import": "./dist/errors/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./schemas/api-contracts": {
|
|
41
|
+
"types": "./dist/schemas/api-contracts.d.ts",
|
|
42
|
+
"import": "./dist/schemas/api-contracts.js"
|
|
23
43
|
}
|
|
24
44
|
},
|
|
25
45
|
"files": [
|
|
@@ -29,12 +49,16 @@
|
|
|
29
49
|
"zod": "^3.25.0"
|
|
30
50
|
},
|
|
31
51
|
"devDependencies": {
|
|
52
|
+
"@fast-check/vitest": "^0.3.0",
|
|
32
53
|
"@types/node": "^22.15.0",
|
|
33
54
|
"tsup": "^8.5.0",
|
|
34
|
-
"typescript": "^5.8.3"
|
|
55
|
+
"typescript": "^5.8.3",
|
|
56
|
+
"vitest": "^3.2.4"
|
|
35
57
|
},
|
|
36
58
|
"scripts": {
|
|
37
|
-
"build": "tsup src/index.ts src/i18n/index.ts src/types/index.ts src/node.ts --format esm --dts --clean",
|
|
38
|
-
"dev": "tsup src/index.ts src/i18n/index.ts src/types/index.ts src/node.ts --format esm --dts --watch"
|
|
59
|
+
"build": "tsup src/index.ts src/i18n/index.ts src/types/index.ts src/node.ts src/node/atomic-write.ts src/node/mcp-payload-guard.ts src/node/bootstrap-guide.ts src/errors/index.ts src/schemas/api-contracts.ts --format esm --dts --clean",
|
|
60
|
+
"dev": "tsup src/index.ts src/i18n/index.ts src/types/index.ts src/node.ts src/node/atomic-write.ts src/node/mcp-payload-guard.ts src/node/bootstrap-guide.ts src/errors/index.ts src/schemas/api-contracts.ts --format esm --dts --watch",
|
|
61
|
+
"test": "vitest run",
|
|
62
|
+
"test:coverage": "vitest run --coverage"
|
|
39
63
|
}
|
|
40
64
|
}
|