@demicodes/host-local 0.11.0 → 0.13.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.
Files changed (2) hide show
  1. package/README.md +13 -4
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,16 +1,25 @@
1
1
  # @demicodes/host-local
2
2
 
3
3
  The Node reference implementation of the `@demicodes/shell` `Host` contract: real
4
- filesystem, process spawning, and a temp-dir-backed JSON store. Use it to run
5
- Demi against the local machine, or as the template for a remote/container/sandbox
6
- `Host`.
4
+ filesystem, process spawning, and a durable JSON store under the platform data
5
+ directory (`…/demi/host-local/…`). Also owns open-box local agent assembly
6
+ command bridge **on by default**.
7
7
 
8
8
  ```ts
9
- import { LocalHost } from '@demicodes/host-local'
9
+ import { LocalHost, createLocalAgentServer } from '@demicodes/host-local'
10
10
 
11
11
  const host = new LocalHost(process.cwd())
12
+
13
+ // Prefer createLocalAgentServer for local products: it wires the command-bridge
14
+ // UDS listener and PATH shims instead of hand-assembling AgentServer.
15
+ const server = createLocalAgentServer({ agent: harness, providers })
12
16
  ```
13
17
 
18
+ - `LocalHost` — `Host` with full local `fs` / `process` / `store`.
19
+ - `createLocalAgentServer` — local `AgentServer` factory with command bridge
20
+ defaults (see [docs/command-bridge.md](../../docs/command-bridge.md)).
21
+ - Command-bridge state under `~/.demi` / `$DEMI_HOME`: `bridges/`, `bridge-bin/`.
22
+
14
23
  > `LocalHost` grants full local filesystem and process access. For untrusted
15
24
  > agents, supply a sandboxing `Host` instead — see
16
25
  > [Implement a Host](../../docs/guides/implement-a-host.md).
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.11.0",
4
+ "version": "0.13.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.11.0",
15
- "@demicodes/provider": "^0.11.0",
16
- "@demicodes/shell": "^0.11.0",
17
- "@demicodes/utils": "^0.11.0"
14
+ "@demicodes/agent": "^0.13.0",
15
+ "@demicodes/provider": "^0.13.0",
16
+ "@demicodes/shell": "^0.13.0",
17
+ "@demicodes/utils": "^0.13.0"
18
18
  },
19
19
  "license": "Apache-2.0",
20
20
  "main": "./dist/index.mjs",