@logicseek/hello-cc 0.1.7 → 0.1.9

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/CHANGELOG.md CHANGED
@@ -16,6 +16,113 @@ the release description from the current changelog section. Use
16
16
  `npm run release:github` with `GH_TOKEN` or `GITHUB_TOKEN` only for local
17
17
  backfills.
18
18
 
19
+ ## 0.1.9
20
+
21
+ ### Summary
22
+
23
+ hello-cc 0.1.9 publishes the post-0.1.8 Web runtime and provider shim
24
+ hardening work. It tightens Web peer action identity, makes runtime cleanup
25
+ safer, and keeps Claude/Codex shims from attaching unrelated projects to a
26
+ global Web runtime.
27
+
28
+ ### Highlights
29
+
30
+ - Hardened Web runtime cleanup so starting `hcc web` from a wrapper shell does
31
+ not terminate the current parent process chain while still removing stale
32
+ orphan runtimes for the same project.
33
+ - Returned structured `BAD_REQUEST` JSON for malformed Web API request bodies
34
+ instead of surfacing raw JSON parse failures.
35
+ - Replaced Web-runtime-token reuse for mutating peer actions with independent
36
+ per-session action tokens.
37
+ - Changed provider shims to fall back to the real Claude/Codex CLI when no
38
+ current-project Web runtime is available.
39
+ - Made provider shims use only the current project's `.hello-cc/runtime.json`
40
+ during managed launches, avoiding accidental attachment through a global Web
41
+ runtime from another project.
42
+ - Kept shim-only environment variables out of restarted provider sessions.
43
+
44
+ ### Compatibility Notes
45
+
46
+ - No breaking CLI command changes are intended in this release.
47
+ - `hcc web --local` is still Web mode; use `hcc up` when you only want local
48
+ coordination commands without the Web console or shims.
49
+ - Starting `claude` or `codex` in a directory without a local
50
+ `.hello-cc/runtime.json` now runs the real provider CLI instead of implicitly
51
+ using a global hello-cc Web runtime.
52
+
53
+ ### Validation
54
+
55
+ The 0.1.9 release should be validated with:
56
+
57
+ ```bash
58
+ git diff --check
59
+ node --check bin/hcc.mjs
60
+ find lib -name '*.mjs' -print0 | xargs -0 -n1 node --check
61
+ node --check scripts/github-release.mjs
62
+ node --check scripts/regression.mjs
63
+ node --check scripts/release-notes.mjs
64
+ npm run release:check
65
+ npm run release:github:dry-run -- --version 0.1.9
66
+ npm pack --dry-run --json
67
+ npm publish --dry-run --registry=https://registry.npmjs.org/ --access public
68
+ npm test
69
+ ```
70
+
71
+ The expected full regression marker is:
72
+
73
+ ```text
74
+ FULL_REGRESSION_OK
75
+ ```
76
+
77
+ ## 0.1.8
78
+
79
+ ### Summary
80
+
81
+ hello-cc 0.1.8 is a targeted patch release for Claude/Codex shim
82
+ self-repair. It fixes generated shims that could stay pinned to a removed
83
+ provider binary after Claude or Codex was reinstalled.
84
+
85
+ ### Highlights
86
+
87
+ - Fixed `hcc shim ensure` so it only reuses an existing `# Real binary:` path
88
+ when that binary still exists.
89
+ - Preserved the existing fast path for valid generated shims while falling back
90
+ to the requested binary or rediscovering the provider from `PATH` when the
91
+ recorded path is stale.
92
+ - Added regression coverage for the reinstall case where a generated shim
93
+ points at a deleted provider binary but a working provider is available on
94
+ `PATH`.
95
+
96
+ ### Compatibility Notes
97
+
98
+ - No CLI command or package surface changes are intended in this release.
99
+ - Existing generated shims will self-heal on the next `hcc shim ensure` or shim
100
+ launch when their recorded provider binary has disappeared.
101
+
102
+ ### Validation
103
+
104
+ The 0.1.8 release should be validated with:
105
+
106
+ ```bash
107
+ git diff --check
108
+ node --check bin/hcc.mjs
109
+ find lib -name '*.mjs' -print0 | xargs -0 -n1 node --check
110
+ node --check scripts/github-release.mjs
111
+ node --check scripts/regression.mjs
112
+ node --check scripts/release-notes.mjs
113
+ npm run release:check
114
+ npm run release:github:dry-run -- --version 0.1.8
115
+ npm pack --dry-run --json
116
+ npm publish --dry-run --registry=https://registry.npmjs.org/ --access public
117
+ npm test
118
+ ```
119
+
120
+ The expected full regression marker is:
121
+
122
+ ```text
123
+ FULL_REGRESSION_OK
124
+ ```
125
+
19
126
  ## 0.1.7
20
127
 
21
128
  ### Summary
package/README.md CHANGED
@@ -49,7 +49,12 @@ doing.
49
49
 
50
50
  ## Install And Manage
51
51
 
52
- Node.js 24 or newer is required.
52
+ hello-cc supports Linux and macOS. Node.js 24 or newer is required, and
53
+ browser-controllable terminals require `tmux`. Native Windows shells are not
54
+ currently supported; use WSL for a Linux-like environment.
55
+
56
+ Linux has richer process auto-discovery through `/proc`. On macOS, use
57
+ hello-cc shims or `hcc peer start` for reliable tmux-managed terminal sessions.
53
58
 
54
59
  ```bash
55
60
  npm install -g @logicseek/hello-cc
@@ -67,7 +72,7 @@ Or run it without a global install:
67
72
  npx @logicseek/hello-cc web
68
73
  ```
69
74
 
70
- Remove hooks and shims from this machine:
75
+ Remove hooks, shims, and the shell PATH entry from this machine:
71
76
 
72
77
  ```bash
73
78
  hcc uninstall
@@ -102,12 +107,16 @@ local: http://127.0.0.1:8787/?token=<saved-token>&project=/path/to/project
102
107
  Use `--local` to bind only to `127.0.0.1`, or `--port N` to request a specific
103
108
  port. `hcc web` initializes the project bus, installs Claude/Codex hooks and
104
109
  shims, starts or reuses the Web console, and returns the terminal to you.
110
+ `hcc web --local` is still Web mode; it only limits the listener to loopback.
111
+ Use `hcc up` when you want local coordination commands without the Web console
112
+ or shims.
105
113
 
106
- After the first shim install, open a new terminal or reload your shell:
114
+ After the first shim install, open a new terminal or reload the rc file for
115
+ your shell:
107
116
 
108
- ```bash
109
- source ~/.bashrc
110
- ```
117
+ - bash: `source ~/.bashrc`
118
+ - zsh: `source ~/.zshrc`
119
+ - fish: `source ~/.config/fish/config.fish`
111
120
 
112
121
  Start normal agent sessions from the project:
113
122
 
@@ -119,7 +128,11 @@ codex resume <session-id>
119
128
  ```
120
129
 
121
130
  Those sessions become tmux-backed peers that can be seen and controlled from
122
- Web while remaining usable from the local terminal.
131
+ Web while remaining usable from the local terminal. The shims only use the
132
+ current project's runtime file. If you start `claude` or `codex` in a directory
133
+ where `hcc web` has not created `.hello-cc/runtime.json`, the shim falls back to
134
+ the real provider CLI instead of using the global Web runtime or creating a new
135
+ project database.
123
136
 
124
137
  ## Basic Workflow
125
138
 
package/README.zh-CN.md CHANGED
@@ -38,7 +38,11 @@
38
38
 
39
39
  ## 安装和维护
40
40
 
41
- 需要 Node.js 24 或更新版本。
41
+ hello-cc 支持 Linux 和 macOS。需要 Node.js 24 或更新版本;可被浏览器控制的
42
+ 终端需要 `tmux`。当前不支持原生 Windows shell;Windows 用户建议使用 WSL。
43
+
44
+ Linux 可以通过 `/proc` 做更完整的进程自动发现。macOS 上建议通过 hello-cc
45
+ shim 或 `hcc peer start` 启动会话,以获得可靠的 tmux 托管终端。
42
46
 
43
47
  ```bash
44
48
  npm install -g @logicseek/hello-cc
@@ -56,7 +60,7 @@ hcc update
56
60
  npx @logicseek/hello-cc web
57
61
  ```
58
62
 
59
- 移除本机 hooks 和 shims:
63
+ 移除本机 hooks、shims 和 shell PATH 配置:
60
64
 
61
65
  ```bash
62
66
  hcc uninstall
@@ -90,12 +94,14 @@ local: http://127.0.0.1:8787/?token=<saved-token>&project=/path/to/project
90
94
  使用 `--local` 可以只绑定 `127.0.0.1`,使用 `--port N` 可以指定请求端口。
91
95
  `hcc web` 会初始化项目总线,安装 Claude/Codex hooks 和 shims,启动或复用 Web
92
96
  控制台,然后把终端还给你。
97
+ `hcc web --local` 仍然是 Web 模式,只是限制监听在本机 loopback。只想使用本地
98
+ 协作命令、不启动 Web 控制台、不安装 shims 时,使用 `hcc up`。
93
99
 
94
- 第一次安装 shim 后,打开新终端或重新加载 shell:
100
+ 第一次安装 shim 后,打开新终端,或根据当前 shell 重新加载配置:
95
101
 
96
- ```bash
97
- source ~/.bashrc
98
- ```
102
+ - bash: `source ~/.bashrc`
103
+ - zsh: `source ~/.zshrc`
104
+ - fish: `source ~/.config/fish/config.fish`
99
105
 
100
106
  在项目目录中正常启动 agent:
101
107
 
@@ -107,6 +113,9 @@ codex resume <session-id>
107
113
  ```
108
114
 
109
115
  这些会话会成为 tmux-backed peer,可以继续在本地终端里使用,也可以被 Web 控制台观察和操作。
116
+ shim 只使用当前项目自己的 runtime 文件。如果你在没有通过 `hcc web` 创建
117
+ `.hello-cc/runtime.json` 的目录里启动 `claude` 或 `codex`,shim 会回退到真实
118
+ provider CLI,不会使用全局 Web runtime,也不会为这个目录新建项目数据库。
110
119
 
111
120
  ## 基本流程
112
121