@n-dx/core 0.1.0 → 0.1.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/gateway-rules.json +50 -0
- package/package.json +2 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Authoritative source of gateway file paths and allowed import patterns. Consumed by ci.js (checkGatewayImports) and domain-isolation.test.js (gateway enforcement tests) to enforce the gateway pattern consistently — both load this file directly, so adding or changing a rule here automatically updates both enforcement paths. Domain-tier packages (rex, sourcevision) are not listed here because they do not import from sibling or upper-tier packages — their isolation is enforced by domain-isolation.test.js instead. Foundation-tier imports (@n-dx/llm-client) are gated in hench via llm-gateway.ts; other tiers may import directly.",
|
|
3
|
+
"gateways": [
|
|
4
|
+
{
|
|
5
|
+
"consumer": "packages/hench/src",
|
|
6
|
+
"externalPackage": "@n-dx/llm-client",
|
|
7
|
+
"gatewayFiles": ["packages/hench/src/prd/llm-gateway.ts"]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"consumer": "packages/hench/src",
|
|
11
|
+
"externalPackage": "rex",
|
|
12
|
+
"gatewayFiles": ["packages/hench/src/prd/rex-gateway.ts"]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"consumer": "packages/web/src",
|
|
16
|
+
"externalPackage": "rex",
|
|
17
|
+
"gatewayFiles": ["packages/web/src/server/rex-gateway.ts"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"consumer": "packages/web/src",
|
|
21
|
+
"externalPackage": "sourcevision",
|
|
22
|
+
"gatewayFiles": ["packages/web/src/server/domain-gateway.ts"]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"internalBarrels": [
|
|
26
|
+
{
|
|
27
|
+
"file": "packages/web/src/viewer/messaging/index.ts",
|
|
28
|
+
"description": "Sole public surface for the viewer messaging subsystem — must remain re-export-only"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"file": "packages/web/src/viewer/crash/index.ts",
|
|
32
|
+
"description": "Sole public surface for the crash recovery sub-zone — cross-zone consumers must import from this barrel, not crash internals"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"file": "packages/web/src/viewer/external.ts",
|
|
36
|
+
"description": "Viewer outbound gateway — concentrates all viewer-side imports from schema/, shared/, and messaging/"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"file": "packages/web/src/viewer/api.ts",
|
|
40
|
+
"description": "Viewer inbound API barrel — sanctioned import surface for sibling zones (crash, route, performance, usage)"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"boundaries": [
|
|
44
|
+
{
|
|
45
|
+
"sourceDir": "packages/web/src/server",
|
|
46
|
+
"forbiddenImportPattern": "from\\s+[\"']\\.\\.\/viewer\/",
|
|
47
|
+
"message": "server/ must not import from viewer/ (use gateway or shared types)"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.1",
|
|
7
7
|
"description": "AI-powered development toolkit — analyze a codebase, build a PRD, and execute tasks autonomously",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"keywords": [
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"ci.js",
|
|
49
49
|
"web.js",
|
|
50
50
|
"help.js",
|
|
51
|
+
"gateway-rules.json",
|
|
51
52
|
"refresh-plan.js",
|
|
52
53
|
"refresh-artifacts.js",
|
|
53
54
|
"export.js",
|