@viceme-ai/cli 0.40.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,52 @@
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
+
39
+ ## [0.41.0] - 2026-09-11
40
+
41
+ ### Features
42
+
43
+ - 支持国际站美元免费做同款 (`b340424`)
44
+ - 支持自主收入提现与原单恢复 (`37f3495`)
45
+
46
+ ### Fixes
47
+
48
+ - 简化 Windows Agent 安装与定位 (`66dc16d`)
49
+
3
50
  ## [0.40.0] - 2026-09-10
4
51
 
5
52
  ### 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. |
@@ -439,3 +442,34 @@ make release-manifest
439
442
  The CLI and official Agent Skills are versioned and released together. GitHub,
440
443
  npm, `s3.viceme.cn`, and `s3.viceme.ai` artifacts come from the same reviewed
441
444
  commit.
445
+
446
+ ## 创作者收入提现
447
+
448
+ 国内站登录后,可由 Agent 调用官方 `withdraw-income` Skill 自主提现;旧凭证首次使用时重新运行 `viceme auth login`。
449
+
450
+ ```sh
451
+ viceme withdraw context
452
+ viceme withdraw create --request-id <稳定任务标识>
453
+ viceme withdraw create --request-id <稳定任务标识> --amount 100.00
454
+ viceme withdraw status --request-id <原任务标识>
455
+ ```
456
+
457
+ `--amount` 的单位是人民币元;省略时按可提现收入、渠道上限和剩余当日额度选择金额。
458
+ 每个新任务使用新请求标识;首次办理、重新登录和网络失败后沿用原标识及原参数恢复。
459
+ CLI 在当前账号与 Profile 下保存请求,确保恢复时不会重新选额或换账户。
460
+ 渠道需要本人实名签约、绑定或确认收款时,Skill 展示现有网站入口,完成后继续原单。
461
+ `PENDING` 与 `ACTION_REQUIRED` 均不代表到账;只有 `SUCCEEDED` 表示全部提现成功。
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
- e7f2c5fb390468526f1861ba35b9b6da18ae3e40d1e5a3ef7d6c88672c3caf57 viceme_0.40.0_darwin_amd64
2
- 5de6c7279e51339c40e74dc57ce0b559442a46f85e9eaf47834926bf6455acab viceme_0.40.0_darwin_arm64
3
- 5c9d01e1d2ba9ea1539d7aa107037bd5f1fe044be351c9412b2340935432469c viceme_0.40.0_linux_amd64
4
- 801c2c5b4011cc9c54180b176f6b68093d70974cd9bc6de380b36977d562f7a6 viceme_0.40.0_linux_arm64
5
- 8ba24e4d3e565cf7ffd2a7e5b24e94b83ebfa4fb6b9ee493b5ff32cfb4e5ed42 viceme_0.40.0_windows_amd64.exe
6
- 6e5861071c9563bd50399d6112812eac1c2465c270a6e636b194d991123e467b viceme_0.40.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
package/docs/releasing.md CHANGED
@@ -159,8 +159,11 @@ Every release renders two public Agent contracts with the exact stable version:
159
159
 
160
160
  - `release/agent-install.md.tmpl` is the narrow CLI Runtime bootstrap. It
161
161
  installs or updates one verified CLI plus official-Skill generation, runs
162
- `viceme doctor`, and then returns control to its caller. It does not know a
163
- Product stable name or install a merchant Product Skill.
162
+ `viceme doctor`, and then returns control to its caller. Windows Agents verify
163
+ the Manifest-selected executable and invoke the executable's own
164
+ `bootstrap activate` entrypoint directly, so a POSIX-only host such as WorkBuddy does not need to
165
+ escape into PowerShell or npm. It does not know a Product stable name or
166
+ install a merchant Product Skill.
164
167
  - `release/commerce-skill-install.md.tmpl` is the generic Product Skill
165
168
  activation contract. It first uses an already healthy Commerce Runtime and
166
169
  delegates to the same-region `agent-install.md` only when the Runtime is
@@ -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.40.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": {