@principles/install-layout 0.4.0 → 0.4.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/index.d.ts +15 -0
- package/dist/index.js +10 -0
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,14 @@ export interface InstallLayoutPaths {
|
|
|
72
72
|
* the same way the Codex hook resolves the canonical runtime.
|
|
73
73
|
*/
|
|
74
74
|
workbuddyAdapterDir: string;
|
|
75
|
+
/**
|
|
76
|
+
* Gate 4 (PRI-1071): the shared read-only MCP server component (payload dir
|
|
77
|
+
* pd-mcp-server/, npm name @principles/pd-mcp-server). This is the Install
|
|
78
|
+
* Layout SSoT for the canonical server entry OpenClaw/WorkBuddy launchers
|
|
79
|
+
* bind to; Codex keeps its plugin-data runtime layout and records that dir
|
|
80
|
+
* in its own binding.
|
|
81
|
+
*/
|
|
82
|
+
mcpServerDir: string;
|
|
75
83
|
}
|
|
76
84
|
export interface LayoutResolution {
|
|
77
85
|
mode: InstallLayoutMode | 'missing';
|
|
@@ -111,6 +119,13 @@ export declare function parseInstallManifest(value: unknown): {
|
|
|
111
119
|
error?: string;
|
|
112
120
|
};
|
|
113
121
|
export declare function getInstallLayoutPaths(homeDir: string): InstallLayoutPaths;
|
|
122
|
+
/**
|
|
123
|
+
* Canonical installed MCP server entry for the shared runtime layout
|
|
124
|
+
* (~/.pd/runtime/pd-mcp-server/dist/index.js). Launchers, binding writers and
|
|
125
|
+
* health diagnostics derive the path from this single owner instead of each
|
|
126
|
+
* repeating the segment list.
|
|
127
|
+
*/
|
|
128
|
+
export declare function getMcpServerEntry(paths: InstallLayoutPaths): string;
|
|
114
129
|
/**
|
|
115
130
|
* WorkBuddy governance workspace (SPEC workbuddy-host-adapter §4.1 OD-07,
|
|
116
131
|
* frozen by Phase 0 probe P06 2026-10-12): an explicit user-level directory
|
package/dist/index.js
CHANGED
|
@@ -140,8 +140,18 @@ export function getInstallLayoutPaths(homeDir) {
|
|
|
140
140
|
releaseManagerDir: path.join(runtimeDir, 'release-manager'),
|
|
141
141
|
codexAdapterDir: path.join(runtimeDir, 'codex-adapter'),
|
|
142
142
|
workbuddyAdapterDir: path.join(runtimeDir, 'workbuddy-adapter'),
|
|
143
|
+
mcpServerDir: path.join(runtimeDir, 'pd-mcp-server'),
|
|
143
144
|
};
|
|
144
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Canonical installed MCP server entry for the shared runtime layout
|
|
148
|
+
* (~/.pd/runtime/pd-mcp-server/dist/index.js). Launchers, binding writers and
|
|
149
|
+
* health diagnostics derive the path from this single owner instead of each
|
|
150
|
+
* repeating the segment list.
|
|
151
|
+
*/
|
|
152
|
+
export function getMcpServerEntry(paths) {
|
|
153
|
+
return path.join(paths.mcpServerDir, 'dist', 'index.js');
|
|
154
|
+
}
|
|
145
155
|
/**
|
|
146
156
|
* WorkBuddy governance workspace (SPEC workbuddy-host-adapter §4.1 OD-07,
|
|
147
157
|
* frozen by Phase 0 probe P06 2026-10-12): an explicit user-level directory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/install-layout",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,5 +33,6 @@
|
|
|
33
33
|
"@types/node": "^26.4.1",
|
|
34
34
|
"typescript": "^7.0.2",
|
|
35
35
|
"vitest": "^5.0.0"
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"gitHead": "d3355465b090daf098581cdb4c174634fe1e5279"
|
|
37
38
|
}
|