@viceme-ai/cli 0.41.0 → 0.42.1
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 +48 -0
- package/README.md +18 -2
- package/checksums.txt +6 -6
- package/docs/releasing.md +7 -4
- package/npm/lib/launcher-environment.mjs +39 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.42.1] - 2026-09-14
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- 避免 Windows 并发购买写码失败 (`3a81362`)
|
|
8
|
+
- 修复试用并发计次与安装恢复边界 (`f8024e0`)
|
|
9
|
+
- 按响应头决定是否跳过稳定 S3 对象 (`7118e70`)
|
|
10
|
+
- 并行加速 CN/Global S3 发布 (`71b8738`)
|
|
11
|
+
- 将 Bonjour 模板目录升至 1.0.3 (`e4f9a4b`)
|
|
12
|
+
- 停用入口时同时校验市场归属 (`028d661`)
|
|
13
|
+
- 统一试用正文交付与耗尽停用流程 (`4152a76`)
|
|
14
|
+
|
|
15
|
+
## [0.42.0] - 2026-09-14
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- 支持网站提示词发布与已购版本下载 (`8de6af6`)
|
|
20
|
+
- 支持独立管理作品说明与在线视频教程 (`4e32c71`)
|
|
21
|
+
- 试用支付呈现按调用平台分支并抽出共享环境探测(重提评审) (`a5e14d0`)
|
|
22
|
+
- 豆包工作平台探测与支付呈现分支 (`4a66c74`)
|
|
23
|
+
- 接入做同款逐级再分发与授权告知 (`4004990`)
|
|
24
|
+
- 支持创作者申请可选个人信息 (`d5b4b9f`)
|
|
25
|
+
- 接通个人主页制作与发布 (`ca1b572`)
|
|
26
|
+
- 关联网站同款邀请启动与原单安装回执 (`1356034`)
|
|
27
|
+
|
|
28
|
+
### Fixes
|
|
29
|
+
|
|
30
|
+
- 统一托管支付展示并保护付款后的恢复 (`6bac769`)
|
|
31
|
+
- 按宿主实际能力选择试用支付展示通道 (`c8a4da2`)
|
|
32
|
+
- 随包支付指引与平台分支对齐并隔离测试环境标记 (`4c7d734`)
|
|
33
|
+
- 分离原站入口修改并简化做同款发布步骤 (`0495990`)
|
|
34
|
+
- 将预览刷新限定为做同款 (`d3b44c2`)
|
|
35
|
+
- 完善 WorkBuddy 本地预览刷新规则 (`f4925d9`)
|
|
36
|
+
- trial-purchase 耗尽 hint 接入平台分支 (`7949b81`)
|
|
37
|
+
- 试用支付呈现按调用平台分支并抽出共享环境探测 (`abc8261`)
|
|
38
|
+
- 去重软链重合的 Agent 安装目标 (`5af8cc3`)
|
|
39
|
+
- 消除申请资料能力探测冲突 (`a9eaa66`)
|
|
40
|
+
- 对齐创作者资料兼容边界 (`c720aa7`)
|
|
41
|
+
- 规范创作者用户名中的 @ (`31288ce`)
|
|
42
|
+
- 独立保存埋点以兼容旧版原单恢复 (`4fcd05b`)
|
|
43
|
+
- 锁定 npm launcher 安装前缀 (`ea21ae2`)
|
|
44
|
+
|
|
45
|
+
### Other Changes
|
|
46
|
+
|
|
47
|
+
- 补充提示词发布购买指引并更新技能清单 (`93d095d`)
|
|
48
|
+
- 撤回未经评审合并的试用支付分平台分支 (`20ae6e8`)
|
|
49
|
+
- 跳过 Windows POSIX 前缀断言 (`4ca9bf3`)
|
|
50
|
+
|
|
3
51
|
## [0.41.0] - 2026-09-11
|
|
4
52
|
|
|
5
53
|
### Features
|
package/README.md
CHANGED
|
@@ -174,8 +174,8 @@ Select a target explicitly with `viceme install --agent codex`, `claude`,
|
|
|
174
174
|
| Skill | Use it when you want to... |
|
|
175
175
|
| --- | --- |
|
|
176
176
|
| `creator-tools` | install ViceMe, sign in through the browser, manage Profiles, update, diagnose, or repair the local setup. |
|
|
177
|
-
| `become-a-creator` | apply for or check creator qualification for
|
|
178
|
-
| `customize-your-profile-page` | use AI to create, preview, publish, update, or roll back
|
|
177
|
+
| `become-a-creator` | apply for or check creator qualification for merchant-only workflows; personal profile publishing stays independent. |
|
|
178
|
+
| `customize-your-profile-page` | use AI to create, locally preview, publish, update, or roll back any signed-in user's personal profile page. |
|
|
179
179
|
| `customize-your-work-page` | use AI to redesign or import a downloadable Skill work page, including its visible actions and final preview. |
|
|
180
180
|
| `sell-a-skill` | publish or update a paid or free downloadable Skill; websites, services, and generic goods are out of scope. |
|
|
181
181
|
| `use-a-skill` | resolve free, purchased, or purchase-required access, install the selected Skill, and continue the original task. |
|
|
@@ -275,6 +275,9 @@ Never copy an access token into the conversation.
|
|
|
275
275
|
| `viceme doctor` | Check the CLI, active Profile, credentials, API readiness, and installed official Skills. |
|
|
276
276
|
| `viceme auth status` | Show whether the active Profile is signed in. |
|
|
277
277
|
| `viceme profile list` | Show Profiles and their API, Web, and market authorities. |
|
|
278
|
+
| `viceme profile page describe` | Resolve the signed-in user's server-authoritative personal profile URL and supported page capabilities. |
|
|
279
|
+
| `viceme profile page upload ...` | Validate and upload a static personal profile bundle together with its owner-only editable source, without Merchant or an online preview. |
|
|
280
|
+
| `viceme profile page status/source/publish/activate ...` | Inspect, restore, publish, or roll back the current user's immutable personal profile releases with concurrency protection. |
|
|
278
281
|
| `viceme skill inspect --path <path>` | Validate a local Skill without side effects. |
|
|
279
282
|
| `viceme skill listing prepare --path <path>` | Create or recover the stable private owner preview and persist the local binding. |
|
|
280
283
|
| `viceme skill listing get <listing-id>` | Read the authoritative private Listing state. |
|
|
@@ -457,3 +460,16 @@ CLI 在当前账号与 Profile 下保存请求,确保恢复时不会重新选
|
|
|
457
460
|
渠道需要本人实名签约、绑定或确认收款时,Skill 展示现有网站入口,完成后继续原单。
|
|
458
461
|
`PENDING` 与 `ACTION_REQUIRED` 均不代表到账;只有 `SUCCEEDED` 表示全部提现成功。
|
|
459
462
|
定期触发和长时间跟踪由上层 Agent 负责。
|
|
463
|
+
|
|
464
|
+
## 网站创作提示词教程
|
|
465
|
+
|
|
466
|
+
`merchant work tutorial publish <work-id>` 从 `--input tutorial.json` 发布教程;必填 `--merchant`、`--request-id`、`--expected-version`、`--preview-steps`、`--price-cents`。重试复用原请求 ID 和完整输入,价格 0 表示全文公开。教程与网站源码分别授权,版本发布后不可修改。
|
|
467
|
+
|
|
468
|
+
```bash
|
|
469
|
+
viceme tutorial preview <work-id>
|
|
470
|
+
viceme tutorial read <work-id> --version 1
|
|
471
|
+
viceme tutorial buy <work-id> --version 1
|
|
472
|
+
viceme tutorial download <work-id> --version 1 --output tutorial-v1.json
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
预览无需登录;读取、购买入口和下载使用当前 CLI 账号。`buy` 返回网站结账入口,需在网站使用相同账号完成支付;不自动扣款。下载仅导出已解锁的指定版本 JSON,拒绝覆盖已有文件。网站托管预览沿用 `replica publish --page-dir ... --page-entry ...`,无需新增上传机制。需要先部署 Shop 的教程 API,再使用这些命令。
|
package/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
6e625d5497674bc696e4b3b4507b29d86c6af34f613592507bb5ea7cf218bb15 viceme_0.42.1_darwin_amd64
|
|
2
|
+
4c9fd2e84afb64696ac0c7b4c7a314ffe19e84c1843db3151b4bc54e51aa263f viceme_0.42.1_darwin_arm64
|
|
3
|
+
ebc8db427c7bceb83e948a915c77a3092e300f2a4bab96d8fc300ba4aa5cd2a3 viceme_0.42.1_linux_amd64
|
|
4
|
+
06ef42311d255a1844519e6c03735ad3a29982e0627d8b96a778534d2869e091 viceme_0.42.1_linux_arm64
|
|
5
|
+
f7ff2a4fd085ed78daecac75e5befddb357c3fad5f3962d691abd32b048c05f4 viceme_0.42.1_windows_amd64.exe
|
|
6
|
+
17364e612936efce698147771147ae27af3f4875fd76e7cceb8d302f299ece50 viceme_0.42.1_windows_arm64.exe
|
package/docs/releasing.md
CHANGED
|
@@ -150,10 +150,13 @@ the public `/-/binary/viceme-cli/` mirror; it does not create another npm
|
|
|
150
150
|
package.
|
|
151
151
|
|
|
152
152
|
The CN and Global release mirrors are S3-compatible origins rather than Amazon
|
|
153
|
-
S3 itself.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
S3 itself. `cmd/s3-publish` always runs from the GitHub Actions workflow
|
|
154
|
+
revision that is executing (so recovering an older tag still uses the current
|
|
155
|
+
publisher) and reads the immutable `dist` artifact assembled for that release.
|
|
156
|
+
The publisher and workflow set request and response checksum calculation to
|
|
157
|
+
`WHEN_REQUIRED`: immutable artifacts are still compared byte-for-byte on
|
|
158
|
+
recovery, while optional AWS streaming checksum trailers that the origins do
|
|
159
|
+
not implement are not sent.
|
|
157
160
|
|
|
158
161
|
Every release renders two public Agent contracts with the exact stable version:
|
|
159
162
|
|
|
@@ -1,6 +1,45 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
|
|
3
|
+
export function installedNPMPrefix(launcherPath, platform = process.platform) {
|
|
4
|
+
if (typeof launcherPath !== "string" || launcherPath === "") {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
// A POSIX global npm package has one unambiguous layout. Derive the prefix
|
|
8
|
+
// from the launcher that is actually executing so a foreign Node/npm on PATH
|
|
9
|
+
// cannot redirect an update into another global installation. npx caches do
|
|
10
|
+
// not include lib/node_modules and intentionally keep npm's configured
|
|
11
|
+
// global prefix for activation and re-execution.
|
|
12
|
+
if (platform === "win32") {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
const normalized = path.posix.normalize(launcherPath);
|
|
16
|
+
const suffix = path.posix.join(
|
|
17
|
+
"lib",
|
|
18
|
+
"node_modules",
|
|
19
|
+
"@viceme-ai",
|
|
20
|
+
"cli",
|
|
21
|
+
"npm",
|
|
22
|
+
"bin",
|
|
23
|
+
"viceme.mjs",
|
|
24
|
+
);
|
|
25
|
+
const marker = `${path.posix.sep}${suffix}`;
|
|
26
|
+
if (!path.posix.isAbsolute(normalized) || !normalized.endsWith(marker)) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const prefix = normalized.slice(0, -marker.length);
|
|
30
|
+
return prefix || path.posix.sep;
|
|
31
|
+
}
|
|
32
|
+
|
|
1
33
|
export function launcherEnvironment(environment, launcherPath, launcherRuntime) {
|
|
34
|
+
const npmPrefix = installedNPMPrefix(launcherPath);
|
|
2
35
|
return {
|
|
3
36
|
...environment,
|
|
37
|
+
...(npmPrefix
|
|
38
|
+
? {
|
|
39
|
+
NPM_CONFIG_PREFIX: npmPrefix,
|
|
40
|
+
npm_config_prefix: npmPrefix,
|
|
41
|
+
}
|
|
42
|
+
: {}),
|
|
4
43
|
VICEME_INSTALL_METHOD:
|
|
5
44
|
environment.VICEME_INSTALL_METHOD === "npm"
|
|
6
45
|
? "npm"
|