@viceme-ai/cli 0.13.3 → 0.15.0

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
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.15.0] - 2026-08-16
4
+
5
+ ### Features
6
+
7
+ - 增加 Owner Preview 展示意图 (`0d5225f`)
8
+
9
+ ### Fixes
10
+
11
+ - 修复 Agent 安装文档 UTF-8 响应头 (`ad1f9d5`)
12
+ - 登录流程始终等待浏览器授权 (`3738239`)
13
+
14
+ ### Other Changes
15
+
16
+ - 统一浏览器登录措辞 (`87e432b`)
17
+
18
+ ## [0.14.2] - 2026-08-15
19
+
20
+ ### Fixes
21
+
22
+ - 修复发布契约恢复流程 (`1d07412`)
23
+
24
+ ## [0.14.1] - 2026-08-15
25
+
26
+ ### Fixes
27
+
28
+ - 对齐 CDN 发布环境 (`914dbc5`)
29
+
30
+ ### Other Changes
31
+
32
+ - 兼容 Windows 工作流换行 (`1b57a43`)
33
+
34
+ ## [0.14.0] - 2026-08-15
35
+
36
+ ### Features
37
+
38
+ - 发布签名 Agent 安装协议 (`14939ae`)
39
+ - 实现稳定 Skill 来源身份与恢复 (`28957ab`)
40
+
41
+ ### Fixes
42
+
43
+ - 修复发布工作流代理校验 (`37534e6`)
44
+ - 保持旧发布合同不可变恢复 (`aaaef54`)
45
+
3
46
  ## [0.13.3] - 2026-08-13
4
47
 
5
48
  ### Other Changes
package/README.md CHANGED
@@ -87,6 +87,9 @@ viceme auth login
87
87
  # Inspect without uploading anything.
88
88
  viceme skill inspect --path ./my-skill
89
89
 
90
+ # Create or recover the stable private owner preview before pricing
91
+ viceme skill listing prepare --path ./my-skill
92
+
90
93
  # Preview the exact package and CNY 1.00 price plan.
91
94
  viceme skill publish --path ./my-skill --price-minor 100 --dry-run
92
95
  ```
@@ -146,7 +149,7 @@ Select a target explicitly with `viceme install --agent codex`, `claude`,
146
149
 
147
150
  | Skill | Use it when you want to... |
148
151
  | --- | --- |
149
- | `viceme-shared` | install ViceMe, sign in with a device code, manage Profiles, update, diagnose, or repair the local setup. |
152
+ | `viceme-shared` | install ViceMe, sign in through the browser, manage Profiles, update, diagnose, or repair the local setup. |
150
153
  | `viceme-publish` | validate, upload, review, resume, or publish a local Skill directory or ZIP as a paid ViceMe listing. |
151
154
  | `viceme-danmaku` | build or adapt the bundled production React and Tailwind CSS v4 danmaku component in an existing project. |
152
155
 
@@ -212,15 +215,12 @@ Remote custom endpoints require HTTPS; only localhost and loopback development
212
215
  may use HTTP. Credentials are isolated by Profile and API origin, and an Agent
213
216
  must never switch to another Profile merely because it is already signed in.
214
217
 
215
- For an Agent that cannot wait in one turn:
216
-
217
- ```bash
218
- viceme auth login --no-wait
219
- viceme auth login --device-code <device-code>
220
- ```
221
-
222
- The user completes authorization in the browser. Never copy an access token
223
- into the conversation.
218
+ `viceme auth login` intentionally keeps running until browser authorization
219
+ finishes or its bounded timeout expires. Keep the command active, show the
220
+ one-time complete URL to the user, and wait for the final result. The page signs
221
+ the user in when necessary and authorizes the CLI automatically; the user never
222
+ types a device code. If the wait expires, start a fresh `viceme auth login`.
223
+ Never copy an access token into the conversation.
224
224
 
225
225
  ## Command reference
226
226
 
@@ -231,6 +231,9 @@ into the conversation.
231
231
  | `viceme auth status` | Show whether the active Profile is signed in. |
232
232
  | `viceme profile list` | Show Profiles and their effective API endpoints. |
233
233
  | `viceme skill inspect --path <path>` | Validate a local Skill without side effects. |
234
+ | `viceme skill listing prepare --path <path>` | Create or recover the stable private owner preview and persist the local binding. |
235
+ | `viceme skill listing get <listing-id>` | Read the authoritative private Listing state. |
236
+ | `viceme skill listing bind <listing-id> --path <path>` | Explicitly bind a source to a selected owned Listing. |
234
237
  | `viceme skill publish --path <path> --price-minor <fen> --dry-run` | Preview the exact deterministic package and price. |
235
238
  | `viceme skill publish --path <path> --price-minor <fen>` | Upload the package and start listing analysis. |
236
239
  | `viceme publication wait <id>` | Wait for background analysis without re-uploading. |
package/README.zh.md CHANGED
@@ -74,12 +74,15 @@ Agent 会先检查登录状态,在整个流程中固定使用同一个 Profile
74
74
  viceme doctor
75
75
  viceme auth status
76
76
 
77
- # 仅在未登录时发起设备码登录。
77
+ # 仅在未登录时发起浏览器登录。
78
78
  viceme auth login
79
79
 
80
80
  # 只读校验,不上传任何内容。
81
81
  viceme skill inspect --path ./my-skill
82
82
 
83
+ # 定价前先创建或恢复稳定的创作者私有预览
84
+ viceme skill listing prepare --path ./my-skill
85
+
83
86
  # 预览确定性发布包与人民币 1 元的价格计划。
84
87
  viceme skill publish --path ./my-skill --price-minor 100 --dry-run
85
88
  ```
@@ -137,7 +140,7 @@ npx --yes @viceme-ai/cli@latest install
137
140
 
138
141
  | Skill | 适用场景 |
139
142
  | --- | --- |
140
- | `viceme-shared` | 安装 ViceMe、设备码登录、管理 Profile、更新、诊断或修复本地环境。 |
143
+ | `viceme-shared` | 安装 ViceMe、通过浏览器登录、管理 Profile、更新、诊断或修复本地环境。 |
141
144
  | `viceme-publish` | 把本地 Skill 目录或 ZIP 校验、上传、审核、恢复或发布为 ViceMe 付费商品。 |
142
145
  | `viceme-danmaku` | 在已有项目中构建或适配随包提供的生产级 React 与 Tailwind CSS v4 弹幕组件。 |
143
146
 
@@ -195,14 +198,10 @@ viceme auth login
195
198
  Endpoint 必须使用 HTTPS;只有 localhost 和 loopback 本地开发可以使用 HTTP。
196
199
  凭据按 Profile 和 API Origin 隔离;Agent 不能因为另一个 Profile 已登录就擅自切换。
197
200
 
198
- Agent 无法在同一回合等待浏览器授权时使用分段流程:
199
-
200
- ```bash
201
- viceme auth login --no-wait
202
- viceme auth login --device-code <device-code>
203
- ```
204
-
205
- 用户在浏览器完成授权。不要在对话中复制 Access Token。
201
+ `viceme auth login` 会一直等待,直到浏览器授权完成或达到有界超时。Agent 必须保持
202
+ 命令运行,向用户展示一次性完整链接并等待最终结果。页面会在必要时先完成登录,随后
203
+ 自动授权 CLI;用户不需要输入设备码。等待超时后重新运行 `viceme auth login` 发起新
204
+ 流程。不要在对话中复制 Access Token。
206
205
 
207
206
  ## 命令参考
208
207
 
@@ -213,6 +212,9 @@ viceme auth login --device-code <device-code>
213
212
  | `viceme auth status` | 显示当前 Profile 是否已登录。 |
214
213
  | `viceme profile list` | 显示 Profile 及其实际 API Endpoint。 |
215
214
  | `viceme skill inspect --path <path>` | 无副作用校验本地 Skill。 |
215
+ | `viceme skill listing prepare --path <path>` | 创建或恢复稳定的创作者私有预览,并保存本地绑定。 |
216
+ | `viceme skill listing get <listing-id>` | 读取权威的私有 Listing 状态。 |
217
+ | `viceme skill listing bind <listing-id> --path <path>` | 将来源明确绑定到用户选定且拥有的 Listing。 |
216
218
  | `viceme skill publish --path <path> --price-minor <fen> --dry-run` | 预览确定性发布包与价格。 |
217
219
  | `viceme skill publish --path <path> --price-minor <fen>` | 上传发布包并启动 Listing 分析。 |
218
220
  | `viceme publication wait <id>` | 等待后台分析,不重复上传。 |
package/checksums.txt CHANGED
@@ -1,6 +1,6 @@
1
- ee90f715e854583ee7de0b52781efc0ed874b2f585eda35ffe7d0f2dfb88c41c viceme_0.13.3_darwin_amd64
2
- 219127b27b84175e10fc0e715d1a2d85e29490e2c1d5094dcaba68983afaf62b viceme_0.13.3_darwin_arm64
3
- 7132d24f754d1f4ee297d25f637d9400d30f3d41ea52989709cfdfc0ab552f3c viceme_0.13.3_linux_amd64
4
- 7f132d392cf1f61e2ba07ab487251d3a9b9ae95ea31d6119f3e810bbdf7cd9a4 viceme_0.13.3_linux_arm64
5
- fbea228d82623c7496de8ffc3bb1473931c37ac9f908380b1bc2f6bb91cdd3ab viceme_0.13.3_windows_amd64.exe
6
- f58dcf648cd69f9c45741c2c54e8d3ffa424cc97415d223c27c44c92ee8be97e viceme_0.13.3_windows_arm64.exe
1
+ b71fb51997b02123a4b037c138ccaeb94541c3f3a79330d8752c805eba7c2a81 viceme_0.15.0_darwin_amd64
2
+ 2161a55792565efa14baa402c30cdaecd97c331ff89d07b10ec1eed342fda6f4 viceme_0.15.0_darwin_arm64
3
+ 7aefb24616c39798cd8a1efb95b26a3c89cd320dbba141cadba51f2b618b84f5 viceme_0.15.0_linux_amd64
4
+ 8c34bd131249448cd17b892d6b241fa5507dfd231f4e3bc955b71d735e9ce3bd viceme_0.15.0_linux_arm64
5
+ 54c80ac055b7c46e6644a769dea381bef0a5108c90dc9e35cdf9c2b67b0566a0 viceme_0.15.0_windows_amd64.exe
6
+ a51945e2b57a25132181578f70b9d01964a86b2855f71cc1cbef562fac3907d3 viceme_0.15.0_windows_arm64.exe
package/docs/releasing.md CHANGED
@@ -31,7 +31,9 @@ files, create tags, write changelog entries, or run npm commands locally.
31
31
  repository-owned `dev` to `main` PR, then tags the exact reviewed `dev`
32
32
  head, reruns the quality gates, builds six platform binaries and six
33
33
  checksums, creates the GitHub Release, bundles those exact checksums into
34
- the npm launcher, publishes it, and then sends an
34
+ the npm launcher, signs the exact-version Agent installation Manifest with
35
+ GitHub OIDC, publishes the identical installation contract to the CN and
36
+ Global `start` buckets, publishes npm, and then sends an
35
37
  AI-generated release summary to the release notification group in Feishu.
36
38
 
37
39
  ## One-time repository setup
@@ -71,6 +73,11 @@ required for merging: that workflow starts only after the release PR has been
71
73
  merged and performs the tag, binary, GitHub Release, npm, and notification
72
74
  steps.
73
75
 
76
+ Create a GitHub Actions Environment named `cdn` and restrict deployments to
77
+ protected branches. The S3 publication job is the only release job that uses
78
+ this Environment, matching the SDK release boundary; npm Trusted Publisher
79
+ remains token-free and does not use a GitHub Environment restriction.
80
+
74
81
  Configure npm trusted publishing for:
75
82
 
76
83
  - npm package: `@viceme-ai/cli`;
@@ -95,6 +102,29 @@ calculation to `WHEN_REQUIRED`: immutable artifacts are still compared
95
102
  byte-for-byte on recovery, while optional AWS streaming checksum trailers that
96
103
  the origins do not implement are not sent.
97
104
 
105
+ Every release renders `release/agent-install.md.tmpl` with the exact stable
106
+ version. The same bytes are published as the immutable
107
+ `cli/releases/vX.Y.Z/agent-install.md` object in both regions. Only the highest
108
+ stable version updates the public root `agent-install.md`, `install.sh`, and
109
+ `install.ps1` pointers. The separate `agent-release-manifest.json` contains the six platform asset
110
+ digests, bundled Skill digests, installer digests, and Sigstore verification
111
+ identity. Its detached `agent-release-manifest.sigstore.json` bundle is created with
112
+ the Release Workflow's GitHub OIDC identity and verified before publication;
113
+ recovery reuses an existing immutable bundle byte-for-byte. A recovery tag
114
+ that predates this contract keeps its original `release-manifest.json`
115
+ unchanged and uses the trusted current workflow generator only to add the new
116
+ Agent Manifest, signature bundle, and document.
117
+
118
+ The publication job verifies both public origins after upload. It compares the
119
+ versioned document, Manifest, and signature bundle with the release artifacts,
120
+ checks immutable and root cache policies, requires the public root Agent
121
+ document to use `text/markdown; charset=utf-8`, compares the CN and Global root
122
+ documents, and proves that an uploaded object outside the installation
123
+ allowlist is not anonymously readable. Anonymous bucket listing must also stay
124
+ disabled. The allowlist is limited to `agent-install.md`, the existing root
125
+ installers, and the versioned `cli/releases` installation objects; Skill ZIPs,
126
+ user uploads, and business media never belong in this bucket or policy.
127
+
98
128
  Configure the repository secret `CN_S3_HTTPS_PROXY` with the authenticated
99
129
  HTTPS forward-proxy URL used by GitHub Actions to reach the CN S3 endpoint.
100
130
  The release job applies it only inside the CN publication subshell; Global S3
@@ -128,9 +158,13 @@ must have the same registry integrity as the locally packed artifact; otherwise
128
158
  the workflow fails closed. A rerun of an older version cannot move the npm
129
159
  `latest` tag behind a newer release.
130
160
 
131
- If the tag and GitHub Release succeeded but npm publication did not, a
132
- maintainer may manually dispatch `CLI release publication` with that exact
133
- stable tag. Recovery refuses missing tags, version mismatches, draft or missing
134
- GitHub Releases, changed release assets, and npm integrity mismatches. It cannot
135
- create a new release identity. Normal production releases still originate only
136
- from merging the repository-owned `dev` Release PR into `main`.
161
+ If a publication failed after creating the immutable tag, a maintainer may
162
+ manually dispatch `CLI release publication` with that exact stable tag. This
163
+ also covers failures before the GitHub Release was created: recovery may create
164
+ the missing Release from regenerated and verified artifacts. If the Release
165
+ already exists, it must be non-draft and every existing asset must match
166
+ byte-for-byte before a missing asset is uploaded. Recovery still refuses
167
+ missing tags, version mismatches, changed release assets, and npm integrity
168
+ mismatches. It cannot create a new release identity. Normal production releases
169
+ still originate only from merging the repository-owned `dev` Release PR into
170
+ `main`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viceme-ai/cli",
3
- "version": "0.13.3",
3
+ "version": "0.15.0",
4
4
  "description": "Install the ViceMe creator CLI and official Agent Skills",
5
5
  "type": "module",
6
6
  "bin": {