mancode 0.3.3 → 0.3.5
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 +22 -9
- package/README.zh-CN.md +18 -6
- package/dist/cli.js +1434 -617
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="License: AGPL-3.0" /></a>
|
|
19
19
|
<a href="https://www.npmjs.com/package/mancode"><img src="https://img.shields.io/npm/v/mancode?style=flat-square" alt="npm version" /></a>
|
|
20
|
-
<img src="https://img.shields.io/badge/status-stable%20v0.3.
|
|
20
|
+
<img src="https://img.shields.io/badge/status-stable%20v0.3.5-green?style=flat-square" alt="Status: stable v0.3.5" />
|
|
21
21
|
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="Platforms: Claude Code, Cursor, Codex in ChatGPT desktop and CLI, GitHub Copilot, ZCode" />
|
|
22
22
|
<img src="https://img.shields.io/badge/tests-381%20passed-brightgreen?style=flat-square" alt="Tests: 381 passed" />
|
|
23
23
|
</p>
|
|
@@ -67,6 +67,13 @@ cd your-project
|
|
|
67
67
|
mancode init
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
+
`init` guides you through the agent choice and marks a detected agent as a hint;
|
|
71
|
+
it never silently installs every adapter. Choose one or more adapters, or choose
|
|
72
|
+
**All platforms**. In a brand-new empty folder it asks whether to initialize a
|
|
73
|
+
generic project, so users do not need to know `git init` or `npm init -y` first.
|
|
74
|
+
Adding Git or a manifest later is safe; run `mancode refresh-project` to update
|
|
75
|
+
the detected project facts and installed static adapters.
|
|
76
|
+
|
|
70
77
|
##
|
|
71
78
|
|
|
72
79
|
After initialization, keep using your coding agent normally. `solo` mode runs by
|
|
@@ -285,7 +292,7 @@ it should behave, and why previous decisions were made.
|
|
|
285
292
|
|
|
286
293
|
## Installation
|
|
287
294
|
|
|
288
|
-
**Status**: stable v0.3.
|
|
295
|
+
**Status**: stable v0.3.5. Claude Code, Cursor, Codex in the ChatGPT desktop app
|
|
289
296
|
and CLI, and GitHub Copilot are supported. ZCode adapter support is included,
|
|
290
297
|
with project skill discovery kept behind a verification gate before release.
|
|
291
298
|
|
|
@@ -299,6 +306,8 @@ npm install -g mancode
|
|
|
299
306
|
cd your-project
|
|
300
307
|
mancode init
|
|
301
308
|
mancode init --platform cursor
|
|
309
|
+
mancode init --platform codex,cursor
|
|
310
|
+
mancode init --platform all
|
|
302
311
|
```
|
|
303
312
|
|
|
304
313
|
Supported platforms:
|
|
@@ -317,11 +326,14 @@ Supported platforms:
|
|
|
317
326
|
|
|
318
327
|
```bash
|
|
319
328
|
mancode init --force # Reinstall while preserving scanned tokens
|
|
320
|
-
mancode init --yes # Skip
|
|
329
|
+
mancode init --yes # Skip generic-project confirmation (use --platform in CI)
|
|
321
330
|
mancode init --team # Force-enable team mode
|
|
322
331
|
mancode init --no-team # Force-disable team mode
|
|
323
332
|
mancode init --style NAME # Save a default style preference
|
|
324
|
-
mancode init --platform
|
|
333
|
+
mancode init --platform PLATFORMS # One or more: claude-code,cursor,codex,copilot,zcode, or all
|
|
334
|
+
mancode init --empty # Allow a safe empty directory in non-interactive scripts
|
|
335
|
+
mancode init --lang zh-CN # Explicit initialization language (zh-CN or en)
|
|
336
|
+
mancode refresh-project # Refresh facts after Git or project files are added
|
|
325
337
|
mancode install --force # Reinstall adapter while preserving scanned tokens
|
|
326
338
|
mancode install --minimal # Install only solo-mode essentials
|
|
327
339
|
```
|
|
@@ -373,7 +385,7 @@ mancode version
|
|
|
373
385
|
Example output for a UI project (not a default stack):
|
|
374
386
|
|
|
375
387
|
```text
|
|
376
|
-
mancode v0.3.
|
|
388
|
+
mancode v0.3.5
|
|
377
389
|
|
|
378
390
|
Project: my-app (React + TypeScript + Tailwind)
|
|
379
391
|
Mode: solo (default)
|
|
@@ -542,10 +554,11 @@ mancode/
|
|
|
542
554
|
|
|
543
555
|
### `mancode init` says "not a project directory"
|
|
544
556
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
557
|
+
In an interactive terminal, an empty directory is offered as a new generic
|
|
558
|
+
project. No Git or package command is required. To protect existing files,
|
|
559
|
+
non-empty unrecognized directories are rejected; enter the project directory
|
|
560
|
+
instead. For scripts, use `mancode init --empty --platform <platform>` only for
|
|
561
|
+
a deliberately empty directory.
|
|
549
562
|
|
|
550
563
|
### Claude Code hooks not triggering
|
|
551
564
|
|
package/README.zh-CN.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="许可证:AGPL-3.0" /></a>
|
|
19
19
|
<a href="https://www.npmjs.com/package/mancode"><img src="https://img.shields.io/npm/v/mancode?style=flat-square" alt="npm 版本" /></a>
|
|
20
|
-
<img src="https://img.shields.io/badge/status-stable%20v0.3.
|
|
20
|
+
<img src="https://img.shields.io/badge/status-stable%20v0.3.5-green?style=flat-square" alt="状态:稳定版 v0.3.5" />
|
|
21
21
|
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="平台:Claude Code、Cursor、ChatGPT 桌面端 Codex、Codex CLI、GitHub Copilot、ZCode" />
|
|
22
22
|
<img src="https://img.shields.io/badge/tests-381%20passed-brightgreen?style=flat-square" alt="测试:381 通过" />
|
|
23
23
|
</p>
|
|
@@ -63,6 +63,11 @@ cd your-project
|
|
|
63
63
|
mancode init
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
`init` 会引导选择 Agent,并把检测到的 Agent 仅作为提示;不会悄悄安装全部适配器。
|
|
67
|
+
可以选择一个、多个或“全部平台”。全新空目录会询问是否初始化为通用项目,因此用户不必
|
|
68
|
+
先知道 `git init` 或 `npm init -y`。之后再加入 Git 或项目 manifest 也安全,执行
|
|
69
|
+
`mancode refresh-project` 即可刷新项目事实和已安装的静态适配器。
|
|
70
|
+
|
|
66
71
|
|
|
67
72
|
|
|
68
73
|
初始化后,继续正常使用你的编码代理。`solo` 默认自动生效:日常训练,零仪式感。遇到需要
|
|
@@ -248,7 +253,7 @@ src/components/
|
|
|
248
253
|
|
|
249
254
|
## 安装
|
|
250
255
|
|
|
251
|
-
**状态**:稳定版 v0.3.
|
|
256
|
+
**状态**:稳定版 v0.3.5。Claude Code、Cursor、ChatGPT 桌面端中的 Codex、
|
|
252
257
|
Codex CLI 和 GitHub Copilot 均已支持。ZCode adapter 已接入,但项目级 skill
|
|
253
258
|
发现路径在发布前仍作为验证门禁。
|
|
254
259
|
|
|
@@ -261,6 +266,8 @@ npm install -g mancode
|
|
|
261
266
|
cd your-project
|
|
262
267
|
mancode init
|
|
263
268
|
mancode init --platform cursor
|
|
269
|
+
mancode init --platform codex,cursor
|
|
270
|
+
mancode init --platform all
|
|
264
271
|
```
|
|
265
272
|
|
|
266
273
|
平台支持:
|
|
@@ -278,11 +285,14 @@ mancode init --platform cursor
|
|
|
278
285
|
|
|
279
286
|
```bash
|
|
280
287
|
mancode init --force # 重装并保留已扫描 token
|
|
281
|
-
mancode init --yes # CI
|
|
288
|
+
mancode init --yes # 跳过通用项目确认(CI 中仍需 --platform)
|
|
282
289
|
mancode init --team # 强制启用团队模式
|
|
283
290
|
mancode init --no-team # 强制禁用团队模式
|
|
284
291
|
mancode init --style NAME # 保存默认审美偏好
|
|
285
|
-
mancode init --platform
|
|
292
|
+
mancode init --platform PLATFORMS # 一个或多个:claude-code,cursor,codex,copilot,zcode,或 all
|
|
293
|
+
mancode init --empty # 非交互脚本中允许安全的空目录
|
|
294
|
+
mancode init --lang zh-CN # 显式指定初始化语言(zh-CN 或 en)
|
|
295
|
+
mancode refresh-project # 后续加入 Git 或项目文件后刷新项目事实
|
|
286
296
|
mancode install --force # 重装适配并保留已扫描 token
|
|
287
297
|
mancode install --minimal # 只安装 solo 必需文件
|
|
288
298
|
```
|
|
@@ -334,7 +344,7 @@ mancode version
|
|
|
334
344
|
以下是 UI 项目的输出示例,并非默认技术栈:
|
|
335
345
|
|
|
336
346
|
```text
|
|
337
|
-
mancode v0.3.
|
|
347
|
+
mancode v0.3.5
|
|
338
348
|
|
|
339
349
|
Project: my-app (React + TypeScript + Tailwind)
|
|
340
350
|
Mode: solo (default)
|
|
@@ -492,7 +502,9 @@ mancode/
|
|
|
492
502
|
|
|
493
503
|
### `mancode init` 提示"not a project directory"
|
|
494
504
|
|
|
495
|
-
|
|
505
|
+
交互式终端中的空目录会询问是否初始化为通用项目,不需要 Git 或 npm 命令。为了保护已有
|
|
506
|
+
文件,未识别且非空的目录仍会被拒绝;请进入真正的项目目录。脚本里只应针对明确为空的
|
|
507
|
+
目录使用 `mancode init --empty --platform <platform>`。
|
|
496
508
|
|
|
497
509
|
### Claude Code hooks 不生效
|
|
498
510
|
|