@whalent/agent 0.3.83 → 0.3.88

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
@@ -19,14 +19,31 @@ npm install -g @whalent/agent --prefer-online --registry=https://registry.npmjs.
19
19
  ```
20
20
 
21
21
  Node.js 20 LTS is still the safest choice on older Linux hosts. Newer Node.js
22
- releases can force native `node-pty` / `better-sqlite3` fallback builds that need
23
- newer C++ compilers when prebuilt binaries are unavailable.
22
+ releases can force native `node-pty` fallback builds that need newer C++
23
+ compilers when prebuilt binaries are unavailable.
24
+
25
+ `better-sqlite3` is optional. When its prebuilt binary is unavailable and local
26
+ compilation fails, npm may print warnings, but the agent can still install and
27
+ falls back to Codex `history.jsonl` where available.
28
+
29
+ Codex SQLite history reads can use the Whalent sqlite helper when installed.
30
+ The helper is a small Go binary cached under `~/.whalent-agent/helpers/sqlite`;
31
+ if it is missing or cannot run, the agent falls back to optional
32
+ `better-sqlite3`, then to `history.jsonl`. Set
33
+ `WHALENT_SQLITE_HELPER_BASE_URL` to a release/CDN directory containing
34
+ `sqlite-helper-0.1.2-manifest.json`, or set `WHALENT_SQLITE_HELPER_MANIFEST_URL`
35
+ directly.
36
+
37
+ By default the daemon asks Platform's release API whether `sqlite-helper` has a
38
+ newer published version, then downloads the returned manifest. Helper releases
39
+ are independent from daemon/npm releases and are tagged as
40
+ `sqlite-helper-vX.Y.Z`.
24
41
 
25
42
  ### Pin `better-sqlite3` to v11
26
43
 
27
- `@whalent/agent` uses `better-sqlite3@12` by default so Node.js 20/22/24 are all
28
- in the supported range. If a specific host needs the older v11 native package,
29
- you can replace it after the global install:
44
+ `@whalent/agent` uses optional `better-sqlite3@12` by default so Node.js
45
+ 20/22/24 are all in the supported range. If a specific host needs the older v11
46
+ native package, you can replace it after the global install:
30
47
 
31
48
  ```bash
32
49
  ROOT="$(npm root -g)"