@miadi/tide 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -65,7 +65,7 @@ is deferred to the runtime + a guarded route.
65
65
  | Layer | Status |
66
66
  |---|---|
67
67
  | One-shot CLI (`tide … --format json`, `execFile` arg-arrays, no shell) | **implemented** |
68
- | Daemon + Unix-domain-socket transport (`hermes.navigator.daemon.v1`) | **implemented** (`src/socket.ts`) |
68
+ | Daemon + Unix-domain-socket transport (`miadi.tide.daemon.v2`) | **implemented** (`src/socket.ts`) |
69
69
  | Schema-first contract (`tide-api.schema.json` → generated types) | planned |
70
70
 
71
71
  ### How transport selection works
@@ -85,7 +85,7 @@ actions — verb signatures are the stable surface; only the transport underneat
85
85
  ### Wire protocol (mirrors `tide_runtime/daemon.py`)
86
86
 
87
87
  Newline-delimited JSON over a Unix socket. Request
88
- `{contract_version:"hermes.navigator.daemon.v1", request_id, action, payload}` →
88
+ `{contract_version:"miadi.tide.daemon.v2", request_id, action, payload}` →
89
89
  `{contract_version, request_id, ok:true, data}` (or `ok:false, error:{code,message,retryable}}`).
90
90
 
91
91
  ### Socket path resolution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miadi/tide",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Typed client boundary for the ironsilk `tide` runtime. Daemon Unix-socket transport with CLI fallback.",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/client.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // Two transports behind one verb surface:
4
4
  // • DAEMON — newline-delimited JSON over the `tide daemon` Unix socket
5
- // (hermes.navigator.daemon.v1). Preferred for `getContext` when up.
5
+ // (miadi.tide.daemon.v2). Preferred for `getContext` when up.
6
6
  // • CLI — one-shot `tide <verb> --format json` via `execFile` with ARGUMENT
7
7
  // ARRAYS (no shell). Always the fallback; the only path for the
8
8
  // operator verbs (`peek`/`steerProposal`/`send`), which the daemon
package/src/socket.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // without paying a Python interpreter spawn per request.
4
4
  //
5
5
  // Wire protocol (mirrors tide_runtime/daemon.py):
6
- // contract: "hermes.navigator.daemon.v1"
6
+ // contract: "miadi.tide.daemon.v2"
7
7
  // transport: newline-delimited JSON over a Unix domain socket
8
8
  // request: {contract_version, request_id, action, payload}
9
9
  // response: {contract_version, request_id, ok, data} (success)
@@ -23,7 +23,7 @@ import { statSync } from "node:fs"
23
23
  import { homedir } from "node:os"
24
24
  import { join } from "node:path"
25
25
 
26
- export const DAEMON_CONTRACT_VERSION = "hermes.navigator.daemon.v1"
26
+ export const DAEMON_CONTRACT_VERSION = "miadi.tide.daemon.v2"
27
27
 
28
28
  const DEFAULT_DAEMON_TIMEOUT_MS = 5_000
29
29