@icode-js/icode 3.0.2 → 3.0.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.
Files changed (2) hide show
  1. package/README.md +17 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # icode-js v3
1
+ # @icode-js/icode v3
2
2
 
3
- `icode-js` 是一个面向 Git 日常操作的命令行工具。
3
+ `@icode-js/icode` 是一个面向 Git 日常操作的命令行工具,安装后可直接使用 `icode` 命令。
4
4
 
5
- 这次版本是重写级重构,不复用旧的 `lerna + packages/*` 逻辑,目标是:
5
+ 目标:
6
6
 
7
7
  - 更稳定地处理复杂 Git 场景
8
8
  - 更好支持 `husky/git hooks` 校验链路
@@ -12,7 +12,7 @@
12
12
  ## 安装
13
13
 
14
14
  ```bash
15
- npm i -g icode-js
15
+ npm i -g @icode-js/icode
16
16
  ```
17
17
 
18
18
  ## 快速开始
@@ -127,7 +127,7 @@ icode push release test -m "feat: batch publish" -y # 默认本地 merge 推送
127
127
  - `[targetBranch...]`:目标分支列表(可多个,空则默认当前分支)
128
128
  - `-m, --message <msg>`:提交信息(未填会提示输入)
129
129
  - `-y, --yes`:自动确认(跳过确认提示)
130
- - `--local-merge`:使用本地 merge 模式(默认,会切换分支并生成 merge commit)
130
+ - `--local-merge`:显式声明使用本地 merge 模式(当前为默认行为,会切换分支并生成 merge commit)
131
131
  - `--ai-commit`:push 前自动执行 AI commit
132
132
  - `--ai-profile <name>`:指定 AI profile(用于 `--ai-commit`)
133
133
  - `--pull-main`:提交前同步主分支到当前分支
@@ -339,8 +339,16 @@ node bin/icode.js help
339
339
  node bin/icode.js undo
340
340
  ```
341
341
 
342
- ## 迁移说明(v2 -> v3)
342
+ ## 发布
343
343
 
344
- - 移除了旧版远程平台 API 合并流程(GitHub/GitLab/Gitee Token 管理)
345
- - 统一聚焦本地 Git 工作流自动化
346
- - 部分旧参数仍做兼容映射(如 `-pm`)
344
+ 当前 npm 包名:
345
+
346
+ ```bash
347
+ @icode-js/icode
348
+ ```
349
+
350
+ 首次发布 scoped 包请显式指定公开访问权限:
351
+
352
+ ```bash
353
+ npm publish --access public
354
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icode-js/icode",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Modern git workflow CLI with robust parent-repo and hook handling",
5
5
  "type": "module",
6
6
  "author": "C",