@viceme-ai/cli 0.41.0 → 0.42.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,41 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.42.0] - 2026-09-14
4
+
5
+ ### Features
6
+
7
+ - 支持网站提示词发布与已购版本下载 (`8de6af6`)
8
+ - 支持独立管理作品说明与在线视频教程 (`4e32c71`)
9
+ - 试用支付呈现按调用平台分支并抽出共享环境探测(重提评审) (`a5e14d0`)
10
+ - 豆包工作平台探测与支付呈现分支 (`4a66c74`)
11
+ - 接入做同款逐级再分发与授权告知 (`4004990`)
12
+ - 支持创作者申请可选个人信息 (`d5b4b9f`)
13
+ - 接通个人主页制作与发布 (`ca1b572`)
14
+ - 关联网站同款邀请启动与原单安装回执 (`1356034`)
15
+
16
+ ### Fixes
17
+
18
+ - 统一托管支付展示并保护付款后的恢复 (`6bac769`)
19
+ - 按宿主实际能力选择试用支付展示通道 (`c8a4da2`)
20
+ - 随包支付指引与平台分支对齐并隔离测试环境标记 (`4c7d734`)
21
+ - 分离原站入口修改并简化做同款发布步骤 (`0495990`)
22
+ - 将预览刷新限定为做同款 (`d3b44c2`)
23
+ - 完善 WorkBuddy 本地预览刷新规则 (`f4925d9`)
24
+ - trial-purchase 耗尽 hint 接入平台分支 (`7949b81`)
25
+ - 试用支付呈现按调用平台分支并抽出共享环境探测 (`abc8261`)
26
+ - 去重软链重合的 Agent 安装目标 (`5af8cc3`)
27
+ - 消除申请资料能力探测冲突 (`a9eaa66`)
28
+ - 对齐创作者资料兼容边界 (`c720aa7`)
29
+ - 规范创作者用户名中的 @ (`31288ce`)
30
+ - 独立保存埋点以兼容旧版原单恢复 (`4fcd05b`)
31
+ - 锁定 npm launcher 安装前缀 (`ea21ae2`)
32
+
33
+ ### Other Changes
34
+
35
+ - 补充提示词发布购买指引并更新技能清单 (`93d095d`)
36
+ - 撤回未经评审合并的试用支付分平台分支 (`20ae6e8`)
37
+ - 跳过 Windows POSIX 前缀断言 (`4ca9bf3`)
38
+
3
39
  ## [0.41.0] - 2026-09-11
4
40
 
5
41
  ### 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 every creator workflow. |
178
- | `customize-your-profile-page` | use AI to create, preview, publish, update, or roll back a creator profile page. |
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
- 502cddd6ccb6ae366df825202c9ba8bc1028c8169f41468af53d5f1cd03a7b26 viceme_0.41.0_darwin_amd64
2
- ee19f99f8fc38b61172252bdfd872e7c23d739ef890624c581848b2fe29851be viceme_0.41.0_darwin_arm64
3
- 208e1570a1da085410c8b817928a4d30f839b30bfffe8bcd4f3c2c0d3d1e83e9 viceme_0.41.0_linux_amd64
4
- 6535fcbc9ea449feaf27566fa4aa478aaba884d8ca3f3fef49013380f244a272 viceme_0.41.0_linux_arm64
5
- 2b4f2406d43724718b8657c7effa8dcb6670ad47db9bcfdaa95dc9f7d39975ea viceme_0.41.0_windows_amd64.exe
6
- c06c567bba9a3ac4c6e0463b309b98b8e6c180ea241efcb642d841db99992e0f viceme_0.41.0_windows_arm64.exe
1
+ dffb44831d3ff81361fb98962a5d41107ac1f102c2c6c5fb7876c450997f9839 viceme_0.42.0_darwin_amd64
2
+ 65d3651434dfe5250b57adaa5be04fef4aad2c5216dd18e45da34857dc9a4db3 viceme_0.42.0_darwin_arm64
3
+ 1618aba2721d3ae8cce3d01d77828334ead3c719ebe52e52a1b9902e3387a227 viceme_0.42.0_linux_amd64
4
+ 62346947012236d3cd074f2d5be364c20e565bc12ac556b147e3774e351b01aa viceme_0.42.0_linux_arm64
5
+ cd193fe6089eedf169c4689e389fd19a7163b3ead87de919cd022ee028978b4a viceme_0.42.0_windows_amd64.exe
6
+ dfb044876c7a1d003e8f44a162fdcae6f7cc19c3f4c093c174ca42881f3d3c33 viceme_0.42.0_windows_arm64.exe
@@ -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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viceme-ai/cli",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "Install the ViceMe creator CLI and official Agent Skills",
5
5
  "type": "module",
6
6
  "bin": {