@go-hare/claude-code 2.7.2 → 2.7.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 +2 -2
- package/install.cjs +30 -0
- package/package.json +12 -189
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
仓库里**没有**独立的 `src/core` / `src/hosts` / `src/runtime` 包级 Agent Core 分层;旧文档里的 `createAgent from 'claude/core'`、`./core` 子路径描述已过时,请勿依赖。
|
|
45
45
|
|
|
46
|
-
近期主线在对齐 **densable 2.1.211** 的 agent / 会话 / 队列 / inbox / daemon 行为(git tag `v2.8.5` 合入前、`v2.8.6` 合入后)。**npm 包版本以 `package.json` / npm 为准**(当前发布线 **2.7.
|
|
46
|
+
近期主线在对齐 **densable 2.1.211** 的 agent / 会话 / 队列 / inbox / daemon 行为(git tag `v2.8.5` 合入前、`v2.8.6` 合入后)。**npm 包版本以 `package.json` / npm 为准**(当前发布线 **2.7.4**),与 git tag 可能不同步。
|
|
47
47
|
|
|
48
48
|
---
|
|
49
49
|
|
|
@@ -68,7 +68,7 @@ CLAUDE_BRIDGE_OAUTH_TOKEN=your-token \
|
|
|
68
68
|
claude --remote-control
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
安装失败时:`npm rm -g @go-hare/claude-code` 后再装 `@latest`(可钉版本 `@2.7.
|
|
71
|
+
安装失败时:`npm rm -g @go-hare/claude-code` 后再装 `@latest`(可钉版本 `@2.7.4`)。
|
|
72
72
|
旧文档里的全局包名 `claude-code` **不再**对应本仓库发布流。
|
|
73
73
|
|
|
74
74
|
---
|
package/install.cjs
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
const { spawnSync } = require('child_process')
|
|
11
11
|
const {
|
|
12
12
|
copyFileSync,
|
|
13
|
+
cpSync,
|
|
13
14
|
existsSync,
|
|
14
15
|
linkSync,
|
|
15
16
|
unlinkSync,
|
|
@@ -18,6 +19,7 @@ const {
|
|
|
18
19
|
writeFileSync,
|
|
19
20
|
statSync,
|
|
20
21
|
readdirSync,
|
|
22
|
+
mkdirSync,
|
|
21
23
|
} = require('fs')
|
|
22
24
|
const { arch } = require('os')
|
|
23
25
|
const path = require('path')
|
|
@@ -211,7 +213,12 @@ function main() {
|
|
|
211
213
|
|
|
212
214
|
try {
|
|
213
215
|
placeBinary(src, dest)
|
|
216
|
+
// Bundled claude.exe resolves vendored rg next to process.execPath
|
|
217
|
+
// (bin/vendor/ripgrep/<platform>/rg[.exe]). Copy platform-package vendor
|
|
218
|
+
// tree beside the placed binary so Grep/Glob work without system rg.
|
|
219
|
+
copyVendorBesideBinary(pkgDir, dest)
|
|
214
220
|
ensureVendorBinariesExecutable(pkgDir)
|
|
221
|
+
ensureVendorBinariesExecutable(path.dirname(dest))
|
|
215
222
|
} catch (err) {
|
|
216
223
|
console.error(
|
|
217
224
|
`[${WRAPPER_NAME} postinstall] Failed to place binary: ${err.message}`,
|
|
@@ -221,4 +228,27 @@ function main() {
|
|
|
221
228
|
}
|
|
222
229
|
}
|
|
223
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Copy platform package `vendor/` next to the installed native binary.
|
|
233
|
+
* Required on Windows (and useful elsewhere) so builtin ripgrep is found at:
|
|
234
|
+
* <dir of claude.exe>/vendor/ripgrep/<arch>-win32/rg.exe
|
|
235
|
+
*/
|
|
236
|
+
function copyVendorBesideBinary(pkgDir, destBinary) {
|
|
237
|
+
const srcVendor = path.join(pkgDir, 'vendor')
|
|
238
|
+
if (!existsSync(srcVendor)) return
|
|
239
|
+
|
|
240
|
+
const destVendor = path.join(path.dirname(destBinary), 'vendor')
|
|
241
|
+
try {
|
|
242
|
+
mkdirSync(path.dirname(destVendor), { recursive: true })
|
|
243
|
+
cpSync(srcVendor, destVendor, { recursive: true, force: true })
|
|
244
|
+
} catch (err) {
|
|
245
|
+
console.error(
|
|
246
|
+
`[${WRAPPER_NAME} postinstall] Warning: could not copy vendor helpers: ${err.message}`,
|
|
247
|
+
)
|
|
248
|
+
console.error(
|
|
249
|
+
' Grep/Glob may fall back to system ripgrep if available.',
|
|
250
|
+
)
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
224
254
|
main()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@go-hare/claude-code",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4",
|
|
4
4
|
"description": "Source restoration / engineering rebuild of Anthropic Claude Code CLI — multi-provider models, self-hosted Remote Control, ACP, daemon sessions, MCP, plugins, and terminal automation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "DeQiang",
|
|
@@ -32,56 +32,25 @@
|
|
|
32
32
|
"bin": {
|
|
33
33
|
"claude": "bin/claude.exe"
|
|
34
34
|
},
|
|
35
|
-
"workspaces": [
|
|
36
|
-
"packages/*",
|
|
37
|
-
"packages/@ant/*",
|
|
38
|
-
"packages/@anthropic-ai/*",
|
|
39
|
-
"packages/@go-hare/*"
|
|
40
|
-
],
|
|
41
35
|
"files": [
|
|
42
36
|
"bin/claude.exe",
|
|
43
37
|
"install.cjs",
|
|
44
|
-
"cli-wrapper.cjs"
|
|
38
|
+
"cli-wrapper.cjs",
|
|
39
|
+
"README.md"
|
|
45
40
|
],
|
|
46
41
|
"optionalDependencies": {
|
|
47
|
-
"@go-hare/claude-code-darwin-arm64": ">=2.7.
|
|
48
|
-
"@go-hare/claude-code-darwin-x64": ">=2.7.
|
|
49
|
-
"@go-hare/claude-code-linux-x64": ">=2.7.
|
|
50
|
-
"@go-hare/claude-code-linux-arm64": ">=2.7.
|
|
51
|
-
"@go-hare/claude-code-linux-x64-musl": ">=2.7.
|
|
52
|
-
"@go-hare/claude-code-linux-arm64-musl": ">=2.7.
|
|
53
|
-
"@go-hare/claude-code-win32-x64": ">=2.7.
|
|
54
|
-
"@go-hare/claude-code-win32-arm64": ">=2.7.
|
|
42
|
+
"@go-hare/claude-code-darwin-arm64": ">=2.7.4",
|
|
43
|
+
"@go-hare/claude-code-darwin-x64": ">=2.7.4",
|
|
44
|
+
"@go-hare/claude-code-linux-x64": ">=2.7.4",
|
|
45
|
+
"@go-hare/claude-code-linux-arm64": ">=2.7.4",
|
|
46
|
+
"@go-hare/claude-code-linux-x64-musl": ">=2.7.4",
|
|
47
|
+
"@go-hare/claude-code-linux-arm64-musl": ">=2.7.4",
|
|
48
|
+
"@go-hare/claude-code-win32-x64": ">=2.7.4",
|
|
49
|
+
"@go-hare/claude-code-win32-arm64": ">=2.7.4",
|
|
55
50
|
"doubaoime-asr": "^0.1.0"
|
|
56
51
|
},
|
|
57
52
|
"scripts": {
|
|
58
|
-
"
|
|
59
|
-
"build:vite": "vite build && bun run scripts/post-build.ts",
|
|
60
|
-
"build:vite:only": "vite build",
|
|
61
|
-
"build:bun": "bun run build.ts",
|
|
62
|
-
"build:compile": "bun run scripts/publish.ts --build-only",
|
|
63
|
-
"dev": "bun run scripts/dev.ts",
|
|
64
|
-
"dev:inspect": "bun run scripts/dev-debug.ts",
|
|
65
|
-
"prepublishOnly": "echo 'Use: bun run scripts/publish.ts'",
|
|
66
|
-
"lint": "biome lint .",
|
|
67
|
-
"lint:fix": "biome lint --fix .",
|
|
68
|
-
"format": "biome format --write .",
|
|
69
|
-
"check": "biome check .",
|
|
70
|
-
"check:fix": "biome check --fix .",
|
|
71
|
-
"prepare": "husky",
|
|
72
|
-
"test": "bun test",
|
|
73
|
-
"test:production": "bun run scripts/production-test.ts",
|
|
74
|
-
"test:production:offline": "bun run scripts/production-test.ts --offline",
|
|
75
|
-
"test:production:verbose": "bun run scripts/production-test.ts --verbose",
|
|
76
|
-
"test:production:bun": "bun run scripts/production-test.ts --bun",
|
|
77
|
-
"check:bundle": "bun run scripts/check-bundle-integrity.ts",
|
|
78
|
-
"check:unused": "knip-bun",
|
|
79
|
-
"health": "bun run scripts/health-check.ts",
|
|
80
|
-
"postinstall": "node install.cjs",
|
|
81
|
-
"docs:dev": "npx mintlify dev",
|
|
82
|
-
"typecheck": "tsc --noEmit",
|
|
83
|
-
"precheck": "bun run typecheck && bun run check:fix && bun test",
|
|
84
|
-
"rcs": "bun run scripts/rcs.ts"
|
|
53
|
+
"postinstall": "node install.cjs"
|
|
85
54
|
},
|
|
86
55
|
"dependencies": {
|
|
87
56
|
"@agentclientprotocol/sdk": "^0.19.0",
|
|
@@ -89,152 +58,6 @@
|
|
|
89
58
|
"highlight.js": "^11.11.1",
|
|
90
59
|
"ws": "^8.20.0"
|
|
91
60
|
},
|
|
92
|
-
"devDependencies": {
|
|
93
|
-
"@alcalzone/ansi-tokenize": "^0.3.0",
|
|
94
|
-
"@ant/claude-for-chrome-mcp": "workspace:*",
|
|
95
|
-
"@ant/computer-use-input": "workspace:*",
|
|
96
|
-
"@ant/computer-use-mcp": "workspace:*",
|
|
97
|
-
"@ant/computer-use-swift": "workspace:*",
|
|
98
|
-
"@ant/model-provider": "workspace:*",
|
|
99
|
-
"@anthropic-ai/bedrock-sdk": "^0.29.0",
|
|
100
|
-
"@anthropic-ai/claude-agent-sdk": "^0.2.114",
|
|
101
|
-
"@anthropic-ai/foundry-sdk": "^0.2.3",
|
|
102
|
-
"@anthropic-ai/mcpb": "^2.1.2",
|
|
103
|
-
"@anthropic-ai/sandbox-runtime": "^0.0.44",
|
|
104
|
-
"@anthropic-ai/sdk": "^0.81.0",
|
|
105
|
-
"@anthropic-ai/vertex-sdk": "^0.16.0",
|
|
106
|
-
"@anthropic/ink": "workspace:*",
|
|
107
|
-
"@aws-sdk/client-bedrock": "^3.1037.0",
|
|
108
|
-
"@aws-sdk/client-bedrock-runtime": "^3.1037.0",
|
|
109
|
-
"@aws-sdk/client-sts": "^3.1037.0",
|
|
110
|
-
"@aws-sdk/credential-provider-node": "^3.972.36",
|
|
111
|
-
"@aws-sdk/credential-providers": "^3.1037.0",
|
|
112
|
-
"@azure/identity": "^4.13.1",
|
|
113
|
-
"@biomejs/biome": "^2.4.12",
|
|
114
|
-
"@claude-code/agent-tools": "workspace:*",
|
|
115
|
-
"@claude-code/builtin-tools": "workspace:*",
|
|
116
|
-
"@claude-code/mcp-client": "workspace:*",
|
|
117
|
-
"@claude-code/weixin": "workspace:*",
|
|
118
|
-
"@claude-code/workflow-engine": "workspace:*",
|
|
119
|
-
"@commander-js/extra-typings": "^14.0.0",
|
|
120
|
-
"@growthbook/growthbook": "^1.6.5",
|
|
121
|
-
"@langfuse/otel": "^5.1.0",
|
|
122
|
-
"@langfuse/tracing": "^5.1.0",
|
|
123
|
-
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
124
|
-
"@opentelemetry/api": "^1.9.1",
|
|
125
|
-
"@opentelemetry/api-logs": "^0.215.0",
|
|
126
|
-
"@opentelemetry/core": "^2.7.0",
|
|
127
|
-
"@opentelemetry/exporter-logs-otlp-grpc": "^0.215.0",
|
|
128
|
-
"@opentelemetry/exporter-logs-otlp-http": "^0.215.0",
|
|
129
|
-
"@opentelemetry/exporter-logs-otlp-proto": "^0.215.0",
|
|
130
|
-
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.215.0",
|
|
131
|
-
"@opentelemetry/exporter-metrics-otlp-http": "^0.215.0",
|
|
132
|
-
"@opentelemetry/exporter-metrics-otlp-proto": "^0.215.0",
|
|
133
|
-
"@opentelemetry/exporter-prometheus": "^0.215.0",
|
|
134
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.215.0",
|
|
135
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.215.0",
|
|
136
|
-
"@opentelemetry/exporter-trace-otlp-proto": "^0.215.0",
|
|
137
|
-
"@opentelemetry/resources": "^2.7.0",
|
|
138
|
-
"@opentelemetry/sdk-logs": "^0.215.0",
|
|
139
|
-
"@opentelemetry/sdk-metrics": "^2.7.0",
|
|
140
|
-
"@opentelemetry/sdk-trace-base": "^2.7.0",
|
|
141
|
-
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
142
|
-
"@sentry/node": "^10.49.0",
|
|
143
|
-
"@smithy/core": "^3.23.15",
|
|
144
|
-
"@smithy/node-http-handler": "^4.5.3",
|
|
145
|
-
"@types/bun": "^1.3.12",
|
|
146
|
-
"@types/cacache": "^20.0.1",
|
|
147
|
-
"@types/he": "^1.2.3",
|
|
148
|
-
"@types/lodash-es": "^4.17.12",
|
|
149
|
-
"@types/node": "^25.6.0",
|
|
150
|
-
"@types/picomatch": "^4.0.3",
|
|
151
|
-
"@types/plist": "^3.0.5",
|
|
152
|
-
"@types/proper-lockfile": "^4.1.4",
|
|
153
|
-
"@types/qrcode": "^1.5.6",
|
|
154
|
-
"@types/react": "^19.2.14",
|
|
155
|
-
"@types/react-reconciler": "^0.33.0",
|
|
156
|
-
"@types/semver": "^7.7.1",
|
|
157
|
-
"@types/sharp": "^0.32.0",
|
|
158
|
-
"@types/shell-quote": "^1.7.5",
|
|
159
|
-
"@types/stack-utils": "^2.0.3",
|
|
160
|
-
"@types/turndown": "^5.0.6",
|
|
161
|
-
"@types/ws": "^8.18.1",
|
|
162
|
-
"ajv": "^8.18.0",
|
|
163
|
-
"asciichart": "^1.5.25",
|
|
164
|
-
"audio-capture-napi": "workspace:*",
|
|
165
|
-
"auto-bind": "^5.0.1",
|
|
166
|
-
"axios": "^1.15.2",
|
|
167
|
-
"bidi-js": "^1.0.3",
|
|
168
|
-
"cacache": "^20.0.4",
|
|
169
|
-
"chalk": "^5.6.2",
|
|
170
|
-
"chokidar": "^5.0.0",
|
|
171
|
-
"cli-boxes": "^4.0.1",
|
|
172
|
-
"cli-highlight": "^2.1.11",
|
|
173
|
-
"code-excerpt": "^4.0.0",
|
|
174
|
-
"color-diff-napi": "workspace:*",
|
|
175
|
-
"diff": "^8.0.4",
|
|
176
|
-
"emoji-regex": "^10.6.0",
|
|
177
|
-
"env-paths": "^4.0.0",
|
|
178
|
-
"execa": "^9.6.1",
|
|
179
|
-
"fflate": "^0.8.2",
|
|
180
|
-
"figures": "^6.1.0",
|
|
181
|
-
"fuse.js": "^7.3.0",
|
|
182
|
-
"get-east-asian-width": "^1.5.0",
|
|
183
|
-
"google-auth-library": "^10.6.2",
|
|
184
|
-
"he": "^1.2.0",
|
|
185
|
-
"https-proxy-agent": "^8.0.0",
|
|
186
|
-
"husky": "^9.1.7",
|
|
187
|
-
"ignore": "^7.0.5",
|
|
188
|
-
"image-processor-napi": "workspace:*",
|
|
189
|
-
"indent-string": "^5.0.0",
|
|
190
|
-
"jsonc-parser": "^3.3.1",
|
|
191
|
-
"knip": "^6.4.1",
|
|
192
|
-
"lint-staged": "^16.4.0",
|
|
193
|
-
"lodash-es": "^4.18.1",
|
|
194
|
-
"lru-cache": "^11.3.5",
|
|
195
|
-
"marked": "^17.0.6",
|
|
196
|
-
"modifiers-napi": "workspace:*",
|
|
197
|
-
"openai": "^6.34.0",
|
|
198
|
-
"p-map": "^7.0.4",
|
|
199
|
-
"picomatch": "^4.0.4",
|
|
200
|
-
"plist": "^3.1.0",
|
|
201
|
-
"proper-lockfile": "^4.1.2",
|
|
202
|
-
"qrcode": "^1.5.4",
|
|
203
|
-
"react": "^19.2.5",
|
|
204
|
-
"react-compiler-runtime": "^1.0.0",
|
|
205
|
-
"react-reconciler": "^0.33.0",
|
|
206
|
-
"rollup": "^4.60.2",
|
|
207
|
-
"semver": "^7.7.4",
|
|
208
|
-
"sharp": "^0.34.5",
|
|
209
|
-
"shell-quote": "^1.8.3",
|
|
210
|
-
"signal-exit": "^4.1.0",
|
|
211
|
-
"stack-utils": "^2.0.6",
|
|
212
|
-
"strip-ansi": "^7.2.0",
|
|
213
|
-
"supports-hyperlinks": "^4.4.0",
|
|
214
|
-
"tree-kill": "^1.2.2",
|
|
215
|
-
"turndown": "^7.2.4",
|
|
216
|
-
"type-fest": "^5.6.0",
|
|
217
|
-
"typescript": "^6.0.3",
|
|
218
|
-
"undici": "^7.25.0",
|
|
219
|
-
"url-handler-napi": "workspace:*",
|
|
220
|
-
"usehooks-ts": "^3.1.1",
|
|
221
|
-
"vite": "^8.0.8",
|
|
222
|
-
"vscode-jsonrpc": "^8.2.1",
|
|
223
|
-
"vscode-languageserver-protocol": "^3.17.5",
|
|
224
|
-
"vscode-languageserver-types": "^3.17.5",
|
|
225
|
-
"wrap-ansi": "^10.0.0",
|
|
226
|
-
"xss": "^1.0.15",
|
|
227
|
-
"yaml": "^2.8.3",
|
|
228
|
-
"zod": "^4.3.6"
|
|
229
|
-
},
|
|
230
|
-
"overrides": {
|
|
231
|
-
"@inquirer/prompts": "8.4.2",
|
|
232
|
-
"@xmldom/xmldom": "0.8.13",
|
|
233
|
-
"follow-redirects": "1.16.0",
|
|
234
|
-
"hono": "4.12.15",
|
|
235
|
-
"postcss": "8.5.10",
|
|
236
|
-
"uuid": "14.0.0"
|
|
237
|
-
},
|
|
238
61
|
"lint-staged": {
|
|
239
62
|
"*.{ts,tsx,js,mjs,jsx}": [
|
|
240
63
|
"biome check --fix --no-errors-on-unmatched"
|