@demicodes/host-local 0.14.2 → 0.16.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.
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +4 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -48,9 +48,12 @@ declare function defaultBridgeSocketPath(stateDir: string, serverId?: string): s
|
|
|
48
48
|
//#region src/local-host.d.ts
|
|
49
49
|
interface LocalHostOptions {
|
|
50
50
|
storeRoot?: string;
|
|
51
|
+
/** Where command artifacts land as plain files; defaults next to the store. */
|
|
52
|
+
commandArtifactsDir?: string;
|
|
51
53
|
}
|
|
52
54
|
declare class LocalHost implements Host {
|
|
53
55
|
readonly defaultCwd: string;
|
|
56
|
+
readonly commandArtifactsDir: string;
|
|
54
57
|
readonly fs: HostFileSystem;
|
|
55
58
|
readonly process: HostProcess;
|
|
56
59
|
readonly store: HostStore;
|
package/dist/index.mjs
CHANGED
|
@@ -333,14 +333,17 @@ function validateHostStoreKey(key) {
|
|
|
333
333
|
//#region src/local-host.ts
|
|
334
334
|
var LocalHost = class {
|
|
335
335
|
defaultCwd;
|
|
336
|
+
commandArtifactsDir;
|
|
336
337
|
fs;
|
|
337
338
|
process;
|
|
338
339
|
store;
|
|
339
340
|
constructor(defaultCwd, options = {}) {
|
|
340
341
|
this.defaultCwd = resolve(defaultCwd);
|
|
342
|
+
const storeRoot = options.storeRoot ?? defaultStoreRoot(this.defaultCwd);
|
|
343
|
+
this.commandArtifactsDir = resolve(options.commandArtifactsDir ?? join(storeRoot, "command-artifacts"));
|
|
341
344
|
this.fs = new LocalHostFileSystem(this.defaultCwd);
|
|
342
345
|
this.process = new LocalHostProcess(this.defaultCwd);
|
|
343
|
-
this.store = new LocalHostStore(
|
|
346
|
+
this.store = new LocalHostStore(storeRoot);
|
|
344
347
|
}
|
|
345
348
|
};
|
|
346
349
|
var LocalHostProcess = class {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@demicodes/host-local",
|
|
3
3
|
"description": "Node LocalHost and open-box local AgentServer assembly (command bridge on by default).",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.16.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@demicodes/agent": "^0.
|
|
15
|
-
"@demicodes/provider": "^0.
|
|
16
|
-
"@demicodes/shell": "^0.
|
|
17
|
-
"@demicodes/utils": "^0.
|
|
14
|
+
"@demicodes/agent": "^0.16.0",
|
|
15
|
+
"@demicodes/provider": "^0.16.0",
|
|
16
|
+
"@demicodes/shell": "^0.16.0",
|
|
17
|
+
"@demicodes/utils": "^0.16.0"
|
|
18
18
|
},
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"main": "./dist/index.mjs",
|