@drakonkat/ai-helper 1.1.1 → 1.2.3

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/ARCHITECTURE.md CHANGED
@@ -91,10 +91,21 @@ Uses `ps -eo pid,command` to match command line strings and extract active PIDs.
91
91
 
92
92
  ---
93
93
 
94
- ## 5. Zero-Dependency & Cross-Runtime Design
94
+ ## 5. Runtime Design
95
95
 
96
- `ai-helper` relies solely on standard built-in modules:
96
+ The service manager uses standard built-in modules:
97
97
  - `node:child_process` & `node:fs`
98
- - Works out of the box on **Node.js (>= 18.0.0)** and **Bun (>= 1.0.0)**.
98
+ - The CLI runs on **Node.js (>= 20.19.0)** and **Bun**.
99
99
  - Standalone binaries can be generated with `bun build --compile`.
100
100
 
101
+ The interceptor proxy uses Node's HTTP/HTTPS streams and the `ws` package.
102
+ Its worker always runs on Node, including when launched by Bun: Bun's compatibility
103
+ layers do not preserve all required WebSocket handshake and HTTP cancellation
104
+ behavior. `scripts/build.js` embeds a bundled Node worker in the compiled CLI;
105
+ on startup it is written to `AIH_HOME/proxy-worker.mjs`. Build with `bun run build`
106
+ to include this worker. Node must remain available on PATH.
107
+
108
+ The manager spawns the worker directly, without a shell, and waits for an IPC
109
+ ready/error message before saving its PID and configuration. Proxy stop targets
110
+ that PID only; it does not kill other processes by listening port. Interceptors
111
+ are loaded in the worker and use the same code path in source and compiled builds.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to **`ai-helper` (`aih`)** are documented in this file.
4
4
 
5
5
  ---
6
6
 
7
+ ## [Unreleased]
8
+
9
+ ### Added
10
+ - Explicit managed-service updates with `aih <service> update`, `aih update [services...]`, and the live dashboard's `u` shortcut. Includes clean JSON results, target validation, running-service restart/recovery, and version-cache invalidation; automatic checks remain read-only.
11
+ - GitHub `REPO` column in plain status and the live dashboard, `repositoryUrl` in JSON, and repository opening with `g` or `aih open <service> --repo`.
12
+ - Automatic Codex proxy URL configuration on managed proxy start/restart and ocx start/restart with an active proxy, including actual bound ports, ocx readiness checks, TOML-preserving edits, first-write backups, and `AIH_CODEX_AUTOCONFIG=0` opt-out.
13
+
14
+ ---
15
+
7
16
  ## [1.1.1] - 2026-08-27
8
17
 
9
18
  ### Updates