@volcengine/ark-cli-darwin-x64 1.0.59-prerelease.9abfd7059045 → 1.0.60-prerelease.f5f7f7a9f84b

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.
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/bin/arkcli-darwin-amd64
3
- size: 42578400 bytes
4
- sha256: ea704e0c3ebd2fa64109d4ddaa7b583b5cf6aea668525e34cf27a25dbf148ad4
3
+ size: 42824592 bytes
4
+ sha256: 8a3711ebca05eaefb28bcc38f9935e0d10b9e1ae4301017d71c3f95a422eb0d7
package/manifest.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
- "version": "1.0.59-prerelease.9abfd7059045",
2
+ "version": "1.0.60-prerelease.f5f7f7a9f84b",
3
3
  "platforms": {
4
4
  "darwin-amd64": {
5
- "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.59-prerelease.9abfd7059045/arkcli-1.0.59-prerelease.9abfd7059045-darwin-amd64",
6
- "sha256": "ea704e0c3ebd2fa64109d4ddaa7b583b5cf6aea668525e34cf27a25dbf148ad4"
5
+ "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.60-prerelease.f5f7f7a9f84b/arkcli-1.0.60-prerelease.f5f7f7a9f84b-darwin-amd64",
6
+ "sha256": "8a3711ebca05eaefb28bcc38f9935e0d10b9e1ae4301017d71c3f95a422eb0d7"
7
7
  },
8
8
  "darwin-arm64": {
9
- "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.59-prerelease.9abfd7059045/arkcli-1.0.59-prerelease.9abfd7059045-darwin-arm64",
10
- "sha256": "8277ff426022680be339ccbba5a3a32b38d60672d77d3f9b23a3d93ddd546147"
9
+ "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.60-prerelease.f5f7f7a9f84b/arkcli-1.0.60-prerelease.f5f7f7a9f84b-darwin-arm64",
10
+ "sha256": "255dda927ceffba2ce4efe4945e4b347dd3a0e865322f10cc6a8ac4084323e64"
11
11
  },
12
12
  "linux-amd64": {
13
- "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.59-prerelease.9abfd7059045/arkcli-1.0.59-prerelease.9abfd7059045-linux-amd64",
14
- "sha256": "b7caea26557fe32d9a7b96d4ef816c5ae20d603aff73ad95b1b894952d0623c7"
13
+ "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.60-prerelease.f5f7f7a9f84b/arkcli-1.0.60-prerelease.f5f7f7a9f84b-linux-amd64",
14
+ "sha256": "9abf230288bf16c8bda6886d16a679d589dab41097ea46e928c9db577f83981d"
15
15
  },
16
16
  "linux-arm64": {
17
- "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.59-prerelease.9abfd7059045/arkcli-1.0.59-prerelease.9abfd7059045-linux-arm64",
18
- "sha256": "ab5bca5cb61af1ec75baef22cf02d01a0d2a85bed4537e3055b5e035ce8f77dc"
17
+ "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.60-prerelease.f5f7f7a9f84b/arkcli-1.0.60-prerelease.f5f7f7a9f84b-linux-arm64",
18
+ "sha256": "1ad34447572a82483aa71ab344a83098292fa009d275ea55df82df28ca63f3c9"
19
19
  },
20
20
  "windows-amd64": {
21
- "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.59-prerelease.9abfd7059045/arkcli-1.0.59-prerelease.9abfd7059045-windows-amd64.exe",
22
- "sha256": "0190fdc45a0a12d5b07d57b227ff86f1e3fa35759bc886765ce2ec0f064bc09f"
21
+ "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.60-prerelease.f5f7f7a9f84b/arkcli-1.0.60-prerelease.f5f7f7a9f84b-windows-amd64.exe",
22
+ "sha256": "22bbe6ecbfd6680ceaf59d61d06d384de9842592b65b11c7b7cb5e80438d2b92"
23
23
  },
24
24
  "windows-arm64": {
25
- "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.59-prerelease.9abfd7059045/arkcli-1.0.59-prerelease.9abfd7059045-windows-arm64.exe",
26
- "sha256": "88605789890563a813caef2b777a1c68884d687e9167d25d712d17e4ae496e85"
25
+ "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.60-prerelease.f5f7f7a9f84b/arkcli-1.0.60-prerelease.f5f7f7a9f84b-windows-arm64.exe",
26
+ "sha256": "058e28b4ad5a9b077dbc9ea42cba42b30e312745e75f826c754811c4f34be869"
27
27
  }
28
28
  },
29
29
  "skills": {
30
30
  "primary": {
31
- "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.59-prerelease.9abfd7059045/skills.tar.gz",
32
- "sha256": "230e1c5c0e08ea8ab26c9c8eeb4a6aca12b364f1e9410587a59153a8bfc1f11a",
31
+ "url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.60-prerelease.f5f7f7a9f84b/skills.tar.gz",
32
+ "sha256": "c6a2bc28f4ea7b7298453c7d6b3c45f63990227ff4648f01c57706bc7c261249",
33
33
  "kind": "cdn"
34
34
  },
35
- "tag": "v1.0.59-prerelease.9abfd7059045"
35
+ "tag": "v1.0.60-prerelease.f5f7f7a9f84b"
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volcengine/ark-cli-darwin-x64",
3
- "version": "1.0.59-prerelease.9abfd7059045",
3
+ "version": "1.0.60-prerelease.f5f7f7a9f84b",
4
4
  "description": "ArkCLI volc binary and Skills for darwin-amd64",
5
5
  "os": [
6
6
  "darwin"
@@ -493,3 +493,18 @@ arkcli helper reset <harness>
493
493
  完整移除 arkcli 注入的 provider/env/model + 内置 MCP server;Volc 还会移除 arkcli 托管的路由 hook/tool/plugin,并恢复 ArkCLI 拥有且未被外部修改的原生 WebSearch 字段(保留用户其它配置)。**该命令不是“只恢复搜索”**。Trae 项目级 MCP 注入用 `arkcli helper reset trae --scope project` 移除;原生搜索 Hook 始终按当前项目根恢复。Codex profile 注入用 `arkcli helper reset codex --codex-profile <name>` 移除;全局注入用 `arkcli helper reset codex --codex-config-scope global` 移除;原生搜索配置始终位于当前项目根 `.codex/config.toml`,与该 flag 独立。
494
494
 
495
495
  Desktop 原生写入回归:configure 后验证原生条目、appliedId、deploymentMode 和 ArkCLI receipt;连接或选择漂移不认领;无关偏好不影响;reset 恢复旧选择、保留用户修改、两端隔离且可重复;坏元数据整事务回滚。
496
+
497
+ ## Agent Plan Team 共享包
498
+
499
+ - 若本机还没有 `agent-plan-team-shared-pool` profile,交互式 profile 选择器会提供“新建共享包 profile”入口。
500
+ - 管理员身份下,Helper 会按**共享包 profile 自身的 Project** 从 Ark 控制台影子席位自动读取 Pool API Key 并写回 profile,不需要手工粘贴;已有共享包 profile 也会自动刷新。非管理员才回退到掩码输入管理员分发的专用 Key。
501
+ - Helper 不为该类型实时拉取普通 Key 池、席位 Key,也不执行 read reconcile;写入 Harness 的 Key 就是 profile 中保存的 Pool Key 原值。
502
+ - 模型清单使用 `Edition=enterprise` / `BizInfo=shared`。一期共享包不走智能路由写控制面,向导只让用户选择可直接写入本地配置的具体模型。
503
+ - 共享包 profile 不注入 OpenViking / Supabase,也不会因为存在共享包影子席位而生成普通团队席位 profile。
504
+ - 若管理员已提供共享包 Key,也可以先显式执行:
505
+
506
+ ```bash
507
+ arkcli profile create --type agent-plan-team-shared-pool
508
+ ```
509
+
510
+ 然后再运行 `arkcli helper`。
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: arkcli-plans
3
3
  version: 1.2.4
4
- description: "ARK 套餐管理(Agent Plan / Coding Plan,个人版 + 企业版):查询持有 / 购买 / 续费 / 模型清单 / 轮换 APIKey,**以及企业版席位的全部管理操作**:列出席位(`plans team seat-list`)、给员工分配席位(`plans team seat-assign`)、查谁绑了哪个 seat、轮换席位 APIKey(`plans team rotate-apikey`)。也负责购买参数的逐步澄清,以及 `payment_failed` + Order ID 后回到已有订单补单/取消,禁止重新 buy。命中关键词:套餐 / 买 / 续费 / 列席位 / 看 seat 绑定 / 谁绑了哪个 seat / 给员工分席位 / 解绑 / 团队席位 admin 视图 / 轮换 APIKey。反触发:Token 额度包/资源包不是 Agent Plan/Coding Plan,应走 arkcli-profile 判断 platform 切面。**用量类问题(还剩多少额度 / 用了几成 / 每个 seat 用了多少)走 [arkcli-usage](../arkcli-usage/SKILL.md)。**动词路由:**列 / 绑 / 分 / 轮换 / 解绑** → 这里;**用 / 消耗 / 多少** → arkcli-usage。另含 harness-status:只读查看本机 AI Agent(claude-code/codex/opencode/openclaw/trae)上 Agent Plan 内置 MCP(豆包搜索/dataPro/OpenViking)装没装、key 就没就绪;命中:我的 MCP 装好了吗 / 查 MCP 安装状态 / 看 agent 上的 MCP / harness 状态。"
4
+ description: "ARK 套餐管理(Agent Plan / Coding Plan,个人版 + 企业版;Coding Plan 企业版仅存量/白名单管理,不再支持 CLI 购买/续费):查询持有 / 购买 / 续费 / 模型清单 / 轮换 APIKey,**以及企业版席位的全部管理操作**:列出席位(`plans team seat-list`)、给员工分配席位(`plans team seat-assign`)、查谁绑了哪个 seat、轮换席位 APIKey(`plans team rotate-apikey`)。也负责购买参数的逐步澄清,以及 `payment_failed` + Order ID 后回到已有订单补单/取消,禁止重新 buy。命中关键词:套餐 / 买 / 续费 / 列席位 / 看 seat 绑定 / 谁绑了哪个 seat / 给员工分席位 / 解绑 / 团队席位 admin 视图 / 轮换 APIKey。反触发:Token 额度包/资源包不是 Agent Plan/Coding Plan,应走 arkcli-profile 判断 platform 切面。**用量类问题(还剩多少额度 / 用了几成 / 每个 seat 用了多少)走 [arkcli-usage](../arkcli-usage/SKILL.md)。**动词路由:**列 / 绑 / 分 / 轮换 / 解绑** → 这里;**用 / 消耗 / 多少** → arkcli-usage。另含 harness-status:只读查看本机 AI Agent(claude-code/codex/opencode/openclaw/trae)上 Agent Plan 内置 MCP(豆包搜索/dataPro/OpenViking)装没装、key 就没就绪;命中:我的 MCP 装好了吗 / 查 MCP 安装状态 / 看 agent 上的 MCP / harness 状态。"
5
5
  metadata:
6
6
  requires:
7
7
  bins: ["arkcli"]
@@ -42,9 +42,9 @@ metadata:
42
42
 
43
43
  购买信息缺失时按固定顺序逐个收敛,不把所有问题堆在同一轮:
44
44
 
45
- 1. 先问套餐家族:`Agent Plan` 还是 `Coding Plan`。
46
- 2. 再问版本与档位:只列已选家族的个人版档位及一个企业/团队版入口。个人版选择同时确定 `--plan` 与 `--type`;企业入口只确定团队 `--plan`。
47
- 3. 选择企业/团队版后,再单问同家族档位 `--type`,然后单问席位数 `--quantity`。Agent Plan 档位为 `small/medium/large/max`,Coding Plan 为 `lite/pro`。
45
+ 1. 先问套餐家族:`Agent Plan` 还是 `Coding Plan`(Coding Plan 企业版不再通过 CLI 销售,只有个人版可购买)。
46
+ 2. 再问版本与档位:只列已选家族的个人版档位,或 `Agent Plan 企业版` 入口。个人版选择同时确定 `--plan` 与 `--type`;企业入口只确定 `agent-plan-team`。
47
+ 3. 选择 Agent Plan 企业版后,再单问档位 `--type`,然后单问席位数 `--quantity`。Agent Plan 档位为 `small/medium/large/max`。用户明确要购买或续费 `coding-plan-team` 时,不进入收参,直接说明该能力仅对白名单客户开放、请联系销售开白,并推荐 `agent-plan-team`。
48
48
  4. 最后问时长 `--duration`,收齐后进入协议确认。
49
49
 
50
50
  档位选项必须说明当前价格、典型场景和关键限制,按 [buy 的档位说明](references/arkcli-plans-buy.md#档位选项的业务说明) 核对来源,不只显示裸档位名;未知价格/权益明确标未确认。时长可提供 1 / 3 / 6 / 12 月快捷选项,但仍接受 1–12 内的其他合法整数。
@@ -57,13 +57,13 @@ metadata:
57
57
 
58
58
  `ProductStockNotEnough` 表示库存不足,不是参数错误;不重试、不重问已确认参数、不换档或拆单,按 [buy 的失败语义](references/arkcli-plans-buy.md#失败语义) 交付对应套餐控制台处理入口。transport error 同样保留本轮参数,不能重新开始购买向导。
59
59
 
60
- 续费不重新选档位:先确认 `--plan` 与续费月数,团队版从当前席位清单选择 `--seat-ids`;沿用原订阅/席位档位,不传购买专用的 `--type` 或 `--quantity`。用户已说清的参数不重复追问。仅询价走 `pricing plans` 或对应命令的 `--estimate`,不下单。
60
+ 续费不重新选档位:先确认 `--plan` 与续费月数,团队版从当前席位清单选择 `--seat-ids`;沿用原订阅/席位档位,不传购买专用的 `--quantity`。共享包是 Team 下的 `agent-plan-team-shared-pool` type,需要 `--type`;Project 默认 `default`,用户无需显式传入。用户已说清的参数不重复追问。只做本地计划预览用 `--dry-run`;真实价格由协议闸门内部的在线询价返回。
61
61
 
62
62
  协议闸门返回后,把本次套餐、档位、时长、席位范围、实付价 `total_amount_cny` 与原价(如有)一起交付;价格和权益以当前返回为准,不用历史示例价承诺优惠、视频资格或有效期。超时/连接中断不能证明“未下单、未扣款”:保留错误和已有订单/席位 ID,先核对订单状态,不自动重放计费写操作。
63
63
 
64
64
  ## 🔒 协议闸门(plans buy / plans renew 强制流程)
65
65
 
66
- `plans buy` / `plans renew` 是**计费写操作**,加 `--yes` 才真扣款。**不传 `--yes` 不传 `--estimate` 时**, CLI 不下单, 而是返回:
66
+ `plans buy` / `plans renew` 是**计费写操作**,加 `--yes` 才真扣款。**不传 `--yes` 时**, CLI 不下单, 而是返回:
67
67
 
68
68
  ```json
69
69
  {
@@ -82,14 +82,14 @@ metadata:
82
82
 
83
83
  **违反这条流程 = 帮用户跳过法律合规步骤**。这跟 frontend 购买面板的 "我已阅读并同意《...》" checkbox 等价 — 必须真人看过才能勾。
84
84
 
85
- `--estimate` 是在线询价路径,不下单也不需要协议确认;它不是 Client Preview。用户最终走 `--yes` 真下单时仍需先看协议。
85
+ `--dry-run` 是本地 Client Preview,只输出执行计划,不联网、不询价、不下单。真实价格由协议闸门内部的在线询价返回;用户最终走 `--yes` 真下单时仍需先看协议。
86
86
 
87
87
  ## 业务定位
88
88
 
89
89
  `arkcli plans` 管理两类 ARK 套餐:
90
90
 
91
- - **Agent Plan**(agent-plan / agent-plan-team):智能体调用套餐,按 tier 划档(small/medium/large/max)
92
- - **Coding Plan**(coding-plan / coding-plan-team):编程辅助套餐,按 tier 划档(lite/pro)
91
+ - **Agent Plan**:智能体调用套餐。Agent Plan Team 席位套餐按 tier 划档;共享包是 Agent Plan Team 下的 `shared-pool` 类型,按 Project 共享额度池,没有 tier
92
+ - **Coding Plan**(coding-plan / coding-plan-team):编程辅助套餐,按 tier 划档(lite/pro)。`coding-plan-team` 仅存量/白名单客户管理,Volc 已停止 CLI 购买和续费。
93
93
 
94
94
  两类套餐都有个人订阅与企业/团队席位,但 **Key 来源不能按 personal/team 一刀切**:
95
95
 
@@ -98,10 +98,13 @@ metadata:
98
98
  | `agent-plan` 个人版 | 个人订阅 | `Scene=RealAgentPlanPersonal` 专属 Key;仅此类型可用 `plans personal rotate-apikey` | `/api/plan/v3` |
99
99
  | `coding-plan` 个人版 | 个人订阅 | 与 `platform` 共用普通 API Key 池;在普通 Key 管理入口处理,**没有 Coding Plan 个人版专属 Key** | `/api/coding/v3` |
100
100
  | `agent-plan-team` | 企业席位 | 当前 Running 席位的 Key;用 `plans team rotate-apikey` 管理 | `/api/plan/v3` |
101
+ | `agent-plan-team` + `agent-plan-team-shared-pool` | Project 共享额度池 | 管理员手工分发的共享包专用 Key;不自动刷新、不走席位轮换;无 tier | `/api/plan/v3` |
101
102
  | `coding-plan-team` | 企业席位 | 当前 Running 席位的 Key;用 `plans team rotate-apikey` 管理 | `/api/coding/v3` |
102
103
 
103
104
  > personal 一个账号下一份订阅;team 是按席位(SeatID)粒度管理,每个席位绑一个子用户。
104
105
 
106
+ > **Coding Plan 企业版(coding-plan-team):** Volc 已停止 CLI 新购和续费。`plans buy/renew --plan coding-plan-team` 会在参数阶段返回 `coding_plan_team_whitelist_only`,不会询价、下单或发起 API 请求;如需购买请联系销售开白,推荐改买 `--plan agent-plan-team`。存量/白名单客户仍可用 `plans get`、`plans model-list/model-apply`、`plans team seat-list/seat-assign/rotate-apikey` 和 usage 查询。
107
+
105
108
  > **本 skill 不含套餐用量 / 配额查询**("用了多少 / 还剩多少 / 几号刷新 / 按模型拆分")。`plans get` 只回答"我**持有**哪些套餐 + 状态(Effective/Running)",不回答"用了多少"。配额视图在 [`../arkcli-usage/`](../arkcli-usage/SKILL.md) — 详见下方"快速决策"分流表。
106
109
 
107
110
  ## 套餐资源与接入配置的证据边界
@@ -143,8 +146,8 @@ metadata:
143
146
  - "团队席位的用量" → `arkcli usage seats --product agent-plan-team --with-usage`
144
147
  - 用户问 "Agent Plan / Coding Plan 支持什么模型 / 上下文多长 / 最大输入输出多少 / 是否支持图片或视频输入":`arkcli plans model-list --plan <plan>`;只需要直接 ModelName 时加 `--mode direct`,只需要 `ark-code-latest` 路由候选时加 `--mode routing`,需要对照两类清单时使用默认 `--mode all`。`models[]` 是路由候选,`direct_models[].model_name` 才是可直接配置/调用的 ModelName,两类条目都可读取 `context_window` / `max_input_tokens` / `max_completion_tokens` / `input_modalities` / `load`
145
148
  - 用户要 "切换 ark-code-latest 底层模型 / 改成 Auto 智能调度 / 锁定某个模型":`arkcli plans model-apply --plan <plan> --model <model-id|output-name|auto>`(**写操作**,与控制台联动;可选项先用 `plans model-list --mode routing` 确认)
146
- - 用户要“买套餐”:读 [buy.md](references/arkcli-plans-buy.md),收齐 `--plan`、`--type`、`--duration`,团队版另收 `--quantity`,不要替用户做选择
147
- - 用户要“续套餐”:读 [renew.md](references/arkcli-plans-renew.md),确认 `--plan`、续费月数,团队版另选已有 `--seat-ids`;保持原档位,不传 `--type` / `--quantity`
149
+ - 用户要“买套餐”:读 [buy.md](references/arkcli-plans-buy.md),收齐 `--plan`、`--type`、`--duration`,Agent Plan 企业版另收 `--quantity`,不要替用户做选择。`coding-plan-team` 不可购买:说明白名单限制并推荐 `agent-plan-team`
150
+ - 用户要“续套餐”:读 [renew.md](references/arkcli-plans-renew.md),确认 `--plan`、续费月数,Agent Plan 企业版另选已有 `--seat-ids`;保持原档位,不传 `--type` / `--quantity`。`coding-plan-team` 不可通过 CLI 续费:说明白名单限制并联系销售
148
151
  - 使用 plan 时被拦 `plan_agreement_required`(三方渠道订单首用签署):见 [references/arkcli-plans-agreement-signing.md](references/arkcli-plans-agreement-signing.md);**禁止**擅自设 `ARKCLI_ALLOW_HEADLESS_PLAN_AGREEMENT` 替用户签署,引导用户在交互式终端完成签署
149
152
  - 使用 plan 时返回 `plan_agreement_status_unavailable`:签署状态尚未确认,检查网络与登录状态后重试;`--yes` 和 `ARKCLI_ALLOW_HEADLESS_PLAN_AGREEMENT` 都不能绕过该错误
150
153
  - 用户要 "重置 / 轮换 APIKey":分清个人版还是企业版,参考对应 reference;**写操作,原 APIKey 立即失效**,必须按 reference 走二次确认(除非用户明确要 `--yes` 跳过)
@@ -166,8 +169,8 @@ metadata:
166
169
 
167
170
  | 命令 | 风险 | 必做项 |
168
171
  |---|---|---|
169
- | `plans buy` | **计费**,`IsAutoPay=true` 自动扣款 | 必须先不带 `--yes` 走协议闸门 → 把 agreements 展示给用户 → 用户明确同意后加 `--yes`。详见 [协议闸门流程](#-协议闸门plans-buy--plans-renew-强制流程) |
170
- | `plans renew` | **计费**,自动扣款 | 同 buy 协议闸门;团队版必传 `--seat-ids` |
172
+ | `plans buy` | **计费**:个人版/席位套餐/共享包全部 `IsAutoPay=true` / `AutoPay=true` 自动扣款 | 必须先不带 `--yes` 走协议闸门 → 把 agreements 展示给用户 → 用户明确同意后加 `--yes`。成功以 `order_number` 为准;支付失败按 `payment_failed` 处理。详见 [协议闸门流程](#-协议闸门plans-buy--plans-renew-强制流程) |
173
+ | `plans renew` | **计费**:个人版/席位套餐/共享包全部自动扣款 | 同 buy 协议闸门;团队版必传 `--seat-ids`;共享包不能传 `--seat-ids` |
171
174
  | `plans personal rotate-apikey` | **原 APIKey 立即失效** | 默认走 [Y/N] 确认;提醒用户同步替换 harness 配置 |
172
175
  | `plans model-apply` | 改变套餐请求路由指向(立即生效、与控制台联动) | 非交互必须显式 `--model`;先用 `plans model-list --mode routing` 确认可选目标;团队版无席位会报错 |
173
176
  | `plans team seat-assign` | 修改席位绑定关系 | 显式 `--bind seat-id=user-id`,自动调 IAM 反查 UserName |
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **前置条件:** 先阅读 [`../../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) 了解认证、全局参数和安全规则。
4
4
 
5
- > **⚠️ 写操作 + 计费:** `plans buy` 强制 `IsAutoPay=true`,加 `--yes` 调用成功即真实扣款。**不要替用户做选择**:`--plan`、`--type`、`--duration`、团队版 `--quantity` 必须由用户明确给出。
5
+ > **⚠️ 写操作 + 计费:** 个人版/席位套餐/共享包 `plans buy` 全部使用自动扣款(`IsAutoPay=true` / `AutoPay=true`);成功以 `order_number` 为准,自动支付未完成时返回 `payment_failed`。**不要替用户做选择**:`--plan`、`--type`、`--duration`、团队版/共享包 `--quantity` 必须由用户明确给出。
6
6
 
7
7
  > **🔒 协议闸门 (强制流程,agent 必须遵守):** 不传 `--yes` 时,本命令**不下单**,只返协议清单。Agent **必须**:
8
8
  > 1. 拿到 `agreements` 数组后,把每条协议的 `title` 和 `url` **逐条**展示给最终用户
@@ -11,15 +11,17 @@
11
11
  >
12
12
  > **禁止**在用户没看过协议的情况下直接补 `--yes`。这是合规要求,跟 frontend 购买面板的 "我已阅读并同意《...》" checkbox 等价。
13
13
 
14
+ > **⛔ Coding Plan 企业版(coding-plan-team):** Volc 已停止 CLI 新购。传 `--plan coding-plan-team` 会在参数校验阶段返回 `coding_plan_team_whitelist_only`,不会询价、下单或发起任何 API 请求。该套餐仅存量/白名单客户使用;如需购买请联系销售开白,推荐改用 `--plan agent-plan-team`。存量客户仍可查询和做席位管理,但不要再引导新购。
15
+
14
16
  ## 三种调用形态
15
17
 
16
18
  | 形态 | 行为 | 何时用 |
17
19
  |---|---|---|
18
- | 不传 `--yes` 不传 `--estimate` | **协议闸门**:返协议清单 + **价格** + `next_step`,内部走 EstimatePrice,**不下单** | 默认引导步骤;agent 走这个一次拿"协议 + 价格" |
19
- | `--estimate` (无论是否带 `--yes`) | **在线询价**:调 EstimatePrice,返价格,**不下单** | 跟闸门重叠,留作脚本"只询价不看协议"的快捷出口 |
20
- | `--yes` 不带 `--estimate` | **真下单**:`IsAutoPay=true` 自动扣款 | 用户已确认协议 + 价格,真下单 |
20
+ | 不传 `--yes` | **协议闸门**:返协议清单 + **价格** + `next_step`,内部走 EstimatePrice,**不下单** | 默认引导步骤;agent 走这个一次拿"协议 + 价格" |
21
+ | `--dry-run` | **Client Preview**:只输出本地执行计划,不联网、不询价、不下单 | 用户只想知道会执行什么;价格仍需走协议闸门 |
22
+ | `--yes` | **真下单**:个人版/席位套餐/共享包全部自动扣款(`IsAutoPay=true` / `AutoPay=true`);成功返回 `order_number` | 用户已确认协议 + 价格,真下单 |
21
23
 
22
- > **闸门里已经包含价格** — 不需要先 `--estimate` 再看协议。一次调用同时拿到 `agreements` + `total_amount_cny` + `original_amount_cny`;展示后等待明确同意,再走 `next_step`。
24
+ > **闸门里已经包含价格** — 不需要单独询价。一次调用同时拿到 `agreements` + `total_amount_cny` + `original_amount_cny`;展示后等待明确同意,再走 `next_step`。`--dry-run` 是本地计划预览,不提供服务端价格。
23
25
 
24
26
  ## 收参与协议披露模板
25
27
 
@@ -27,11 +29,13 @@
27
29
 
28
30
  一次只问一个尚未确定的决策;已提供的值不重复问。按以下顺序展开,不能在家族未定时混列两家的档位:
29
31
 
30
- 1. 家族:Agent Plan(智能体任务)/Coding Plan(AI 编程工具)。
31
- 2. 版本与档位:已选家族的个人版合法档位,或一个团队版入口。个人版一次选择确定版本和档位;选团队版后,再单问同家族档位,然后单问席位数,不同时把后续层选项堆进当前问题。
32
+ 1. 家族:Agent Plan(智能体任务)/Coding Plan(AI 编程工具)。Coding Plan 仅个人版可购买;企业版不可通过 CLI 购买。
33
+ 2. 版本与档位:已选家族的个人版合法档位,或 `Agent Plan 企业版` 入口。个人版一次选择确定版本和档位;选 Agent Plan 企业版后,再单问 `small/medium/large/max` 档位,然后单问席位数,不同时把后续层选项堆进当前问题。
32
34
  3. 时长:提供 1/3/6/12 个月快捷选项;用户明确给出其他 1–12 的整数仍合法,不能强改为快捷值。
33
35
  4. 收齐参数后进入协议闸门。续费使用 [renew](arkcli-plans-renew.md) 的短决策链,不重新询问档位或购买数量。
34
36
 
37
+ 用户明确要买 `coding-plan-team` 时,不进入上表收参;直接说明该能力仅对白名单客户开放、请联系销售开白,并推荐 `agent-plan-team`。不要先询价或展示协议。
38
+
35
39
  每个档位选项的说明必须包含当前价格、典型场景及关键限制,按下文权益说明填充;团队数量是席位数,不是月份。没有可靠当前权益数据就明确标注未知,不捏造价格或资格。
36
40
 
37
41
  协议披露使用以下结构,**所有占位符都取本次返回值**,不要复用历史询价或把协议缩写为“相关条款”:
@@ -56,15 +60,20 @@
56
60
  # 第 1 步: 引导 (不传 --yes) — 拿到协议清单
57
61
  arkcli plans buy --plan agent-plan --type small --duration 1
58
62
 
59
- # 第 2 步 (可选): 询价
60
- arkcli plans buy --plan agent-plan --type small --duration 1 --estimate
63
+ # 第 2 步 (可选): 本地预览执行计划
64
+ arkcli plans buy --plan agent-plan --type small --duration 1 --dry-run
61
65
 
62
66
  # 第 3 步: 用户阅读并同意全部协议后, 真下单
63
67
  arkcli plans buy --plan agent-plan --type small --duration 1 --yes
64
68
 
65
69
  # 团队版各档位示例
66
70
  arkcli plans buy --plan agent-plan-team --type medium --duration 2 --quantity 5 --yes
67
- arkcli plans buy --plan coding-plan-team --type pro --quantity 10 --yes
71
+
72
+ # 不可购买(Volc):coding-plan-team 会在参数阶段返回 coding_plan_team_whitelist_only
73
+
74
+ # Agent Plan Team 共享包:--type 表示 team 下的 shared-pool 类型,--quantity 表示共享包个数
75
+ arkcli plans buy --plan agent-plan-team --type agent-plan-team-shared-pool --quantity 4 --duration 1
76
+ arkcli plans buy --plan agent-plan-team --type agent-plan-team-shared-pool --quantity 4 --duration 1 --yes
68
77
  ```
69
78
 
70
79
  ## 参数
@@ -96,22 +105,27 @@ arkcli plans buy --plan coding-plan-team --type pro --quantity 10 --yes
96
105
 
97
106
  | 参数 | 必填 | 类型 | 说明 |
98
107
  |------|------|------|------|
99
- | `--plan` | 是 | string | `agent-plan` / `coding-plan` / `agent-plan-team` / `coding-plan-team` |
100
- | `--type` | 是 | string | tier 档位:agent-plan* 取 `small/medium/large/max`;coding-plan* 取 `lite/pro` |
108
+ | `--plan` | 是 | string | `agent-plan` / `coding-plan` / `agent-plan-team`;`coding-plan-team` 仅存量/白名单,不可购买 |
109
+ | `--type` | 是 | string | 席位套餐传 tier:agent-plan* 取 `small/medium/large/max`;coding-plan* 取 `lite/pro`。共享包传 `agent-plan-team-shared-pool` |
101
110
  | `--duration` | 否 | int | 订阅时长(月),1-12,默认 1 |
102
- | `--quantity` | 团队版 必填 | int | 席位数量(≥1);个人版传了会被忽略 |
103
- | `--yes` | 否 | bool | 跳过协议闸门,真下单 (`IsAutoPay=true`) |
111
+ | `--quantity` | 团队版/共享包必填 | int | 团队版为席位数量;共享包为共享包个数(≥1) |
112
+ | `--project-name` | 否 | string | 共享包所属 Project;默认 `default`,通常无需传入 |
113
+ | `--dry-run` | 否 | bool | 本地 Client Preview;不联网、不下单 |
114
+
115
+ > **Agent Plan Team 共享包:** 使用 `--plan agent-plan-team --type agent-plan-team-shared-pool`。共享包是 team 下的类型,不是独立 plan,也没有 tier;按 Project 聚合为一个 billing instance,`--quantity` 表示一次购买的共享包个数。同一 Project 已有 Running 共享包时应使用 `plans renew`,不要在生效期内重复新购。共享包与个人版/席位套餐一致,固定 `AutoPay=true` 自动扣款;成功以 `order_number` 为准,自动支付未完成时返回 `payment_failed`。共享包只有月额度,购买/续费协议包含《火山方舟大模型订阅套餐服务专用条款》。
116
+ | `--yes` | 否 | bool | 跳过协议闸门,真下单。个人版/席位套餐/共享包全部自动扣款;成功返回 `order_number` |
104
117
 
105
118
  `--plan` 与 `--type` 兼容性:
106
119
 
107
120
  | Plan 系 | 合法 tier |
108
121
  |---|---|
109
122
  | agent-plan / agent-plan-team | small, medium, large, max |
110
- | coding-plan / coding-plan-team | lite, pro |
123
+ | coding-plan | lite, pro |
124
+ | coding-plan-team | 不进入购买流程(`coding_plan_team_whitelist_only`) |
111
125
 
112
126
  ## 返回值 (协议闸门, 默认形态)
113
127
 
114
- 不传 `--yes` 不传 `--estimate` 时:
128
+ 不传 `--yes` 时:
115
129
 
116
130
  ```json
117
131
  {
@@ -132,10 +146,27 @@ arkcli plans buy --plan coding-plan-team --type pro --quantity 10 --yes
132
146
  "total_amount_cny": 99.5,
133
147
  "original_amount_cny": 100.0,
134
148
  "confirm_text": "下单将立即扣款 (IsAutoPay=true)。请把上述协议链接展示给最终用户...",
149
+ "payment_mode": "auto",
135
150
  "next_step": "arkcli plans buy --plan agent-plan --type small --duration 1 --yes"
136
151
  }
137
152
  ```
138
153
 
154
+ **`payment_mode` 决定后续语义:** `auto` = 自动扣款(个人版/席位套餐/共享包);`web` = BytePlus 引导到浏览器完成支付。共享包与个人版/席位套餐一致,`--yes` 会真实扣款,成功以 `order_number` 为准。
155
+
156
+ 共享包真下单返回示例:
157
+
158
+ ```json
159
+ {
160
+ "status": "success",
161
+ "plan": "agent-plan-team",
162
+ "type": "agent-plan-team-shared-pool",
163
+ "quantity": 1,
164
+ "duration": 1,
165
+ "order_number": "ORD-...",
166
+ "shared_package_id": "sp-..."
167
+ }
168
+ ```
169
+
139
170
  **闸门同时返回价格**:`total_amount_cny`(实付)+ `original_amount_cny`(原价,有折扣时低于原价)。Agent 应该把价格 + 协议一起展示给用户。
140
171
 
141
172
  **`agreements` 数组按 plan 类型不同**(agent-plan 系含 Harness 协议;团队版多一条对应套餐专用条款,不带《数据授权协议》)。**直接用返回值里的清单**,不要替换或省略。
@@ -187,7 +218,8 @@ transport error、库存不足、支付失败都保留本轮已确认参数。
187
218
 
188
219
  | 错误 | 原因 | 处理 |
189
220
  |------|------|------|
190
- | `--plan must be one of ...` | 拼错 plan key | 严格用 4 选 1 |
221
+ | `--plan must be one of ...` | 拼错 plan key | 购买用 `agent-plan` / `coding-plan` / `agent-plan-team`;`coding-plan-team` 走白名单提示 |
222
+ | `coding_plan_team_whitelist_only` | 请求购买/续费 Coding Plan 企业版 | 不重试;说明仅白名单客户开放,联系销售开白,推荐 `agent-plan-team` |
191
223
  | `--type %q not allowed for --plan %q` | tier 跟 plan 不兼容 | 见上方表格 |
192
224
  | `--quantity is required for team plans` | 团队版漏传 | 加 `--quantity N` |
193
225
  | `--duration must be 1..12` | 越界 | 1-12 之间 |
@@ -196,7 +228,7 @@ transport error、库存不足、支付失败都保留本轮已确认参数。
196
228
 
197
229
  ## 注意事项
198
230
 
199
- - **真实扣款**:CLI 没有 "下单不支付" 模式;要询价用 `--estimate`,不得为了验证流程擅自换轻档位真实试买
231
+ - **真实扣款**:个人版/席位套餐/共享包都没有 "下单不支付" 模式;共享包固定 `AutoPay=true`,`--yes` 会真实扣款。`--dry-run` 只做本地计划预览,不得为了验证流程擅自换轻档位真实试买
200
232
  - 团队版下单后席位会以 `BillingStatus=Running` 状态出现,但**没绑定子用户**;后续走 [`plans team seat-assign`](arkcli-plans-team-seat-assign.md) 分配
201
233
  - 重试要谨慎:`payment_failed` 的订单**已经在服务端**,重跑会再开一单
202
234
 
@@ -9,7 +9,7 @@
9
9
  >
10
10
  > 详见 [`../../arkcli-usage/SKILL.md`](../../arkcli-usage/SKILL.md)。
11
11
 
12
- 一次性返回当前账号下**实际持有**的套餐:Agent Plan / Coding Plan 的个人版 + 团队版聚合。读操作,无副作用。
12
+ 一次性返回当前账号下**实际持有**的套餐:Agent Plan / Coding Plan 的个人版 + 团队版,以及管理员可见的 Agent Plan Team 共享包。读操作,无副作用。
13
13
 
14
14
  ## 命令
15
15
 
@@ -19,7 +19,9 @@ arkcli plans get
19
19
 
20
20
  ## 参数
21
21
 
22
- 零参数。所有 4 路 plan(agent-plan / agent-plan-team / coding-plan / coding-plan-team)一次并发拉取。
22
+ 共享包所属 Project 默认使用 `default`;`--project-name` 可选,仅操作其他 Project 时传入。各 plan 一次并发拉取。
23
+
24
+ `coding-plan-team` 仅用于存量/白名单客户查询;Volc 已停止 CLI 购买和续费。
23
25
 
24
26
  ## 返回值
25
27
 
@@ -40,6 +42,16 @@ arkcli plans get
40
42
  "tier": "medium",
41
43
  "status": "Running",
42
44
  "seat_id": "seat-..."
45
+ },
46
+ {
47
+ "key": "agent-plan-team-shared-pool",
48
+ "plan": "agent-plan-team",
49
+ "type": "agent-plan-team-shared-pool",
50
+ "name": "Agent Plan Team Shared Pool",
51
+ "scope": "team",
52
+ "status": "Running",
53
+ "quantity": 4,
54
+ "project_name": "default"
43
55
  }
44
56
  ]
45
57
  }
@@ -47,20 +59,24 @@ arkcli plans get
47
59
 
48
60
  | 字段 | 出现条件 | 含义 |
49
61
  |------|---------|------|
50
- | `key` | always | 稳定标识:agent-plan / agent-plan-team / coding-plan / coding-plan-team |
62
+ | `key` | always | 稳定标识:agent-plan / agent-plan-team / agent-plan-team-shared-pool / coding-plan / coding-plan-team |
51
63
  | `scope` | always | personal / team |
52
- | `tier` | 持有时 | 个人版:small/medium/large/max(agent)或 lite/pro(coding);团队版:当前用户席位的 tier |
64
+ | `tier` | 席位套餐持有时 | 个人版:small/medium/large/max(agent)或 lite/pro(coding);团队席位版:当前用户席位的 tier。共享包没有 tier |
53
65
  | `status` | 持有时 | 个人版:Effective / Pending / Expired 等;团队版:Running |
54
66
  | `seat_id` | 团队版独有 | 当前用户在该 Scene 下的席位 ID(团队版才有) |
67
+ | `plan` / `type` | 共享包独有 | `plan=agent-plan-team`、`type=agent-plan-team-shared-pool`,表示 shared-pool 是 team 下的类型 |
68
+ | `quantity` | 共享包独有 | 当前 Project 的共享包个数;同一 Project 只有一个 billing instance |
55
69
  | `error` | 调用失败时 | API 透出诊断信息;跟 tier/status 互斥 |
56
70
 
57
- **没持有的套餐 / Reclaimed 历史订阅 / 团队版无席位** 会被过滤掉,不出现在数组里。
71
+ **没持有的套餐 / Reclaimed 历史订阅 / 团队版无席位** 会被过滤掉,不出现在数组里。共享包仅企业管理员可见:CLI 会先解析管理员身份,非管理员直接不请求 `ListSeatInfos`、不输出共享包行(不能只依赖后端 AccessDenied,QA 环境子用户可能保留只读权限)。共享包默认按 `default` Project 展示;account-wide profile 也使用该默认值,不会合并多个 Project。
58
72
 
59
73
  ## 行为细节
60
74
 
61
75
  - 内部并发拉 `ListSubscribeTrade`(个人版)+ `GetSeatInfo`(团队版)
76
+ - 共享包先通过 `ListSeatInfos(BizInfo=shared, BillingStatus=[Running])` 验证影子席位,再按 `SeatID` 调用 `GetSharedPackageInfo` 读取 `NextPeriodQuota`、`OrderTime`、`ExpiredTime`;交易 `InstanceID` 仅内部使用,不输出
62
77
  - 任一 plan 失败不阻塞其它 plan:失败项保留在数组里,带 `error` 字段
63
78
  - 团队版仅识别 `BillingStatus=Running` 的有效席位,历史席位(Pending/Expired/Reclaimed)会被过滤
79
+ - `tier=shared` 的影子席位不会被识别为普通 Agent Plan Team 席位
64
80
 
65
81
  ## 到期时间 / 还剩多少天
66
82
 
@@ -13,6 +13,7 @@ arkcli plans model-apply --plan agent-plan
13
13
  # 非交互 / agent:必须显式 --model(model id / output name / auto 均可)
14
14
  arkcli plans model-apply --plan agent-plan --model auto
15
15
  arkcli plans model-apply --plan coding-plan --model doubao-seed-code
16
+ # 存量 Coding Plan 团队版(仅白名单)
16
17
  arkcli plans model-apply --plan coding-plan-team --model doubao-seed-code-251028
17
18
  ```
18
19
 
@@ -23,6 +24,8 @@ arkcli plans model-apply --plan coding-plan-team --model doubao-seed-code-251028
23
24
  | `--plan` | 否 | string | `agent-plan` / `coding-plan` / `agent-plan-team` / `coding-plan-team`,默认 `agent-plan-team` |
24
25
  | `--model` | 非交互必填 | string | 路由目标:模型 `model_id`、`output_name` 或 `auto`;交互终端可省略进入选择器 |
25
26
 
27
+ `coding-plan-team` 仅用于存量/白名单客户的模型路由管理;Volc 已停止 CLI 购买和续费。
28
+
26
29
  ## 返回值
27
30
 
28
31
  ```json
@@ -19,7 +19,7 @@ arkcli plans model-list
19
19
  # 看 Agent Plan 个人版模型
20
20
  arkcli plans model-list --plan agent-plan
21
21
 
22
- # 看 Coding Plan 团队版模型
22
+ # 看存量 Coding Plan 团队版模型(仅白名单)
23
23
  arkcli plans model-list --plan coding-plan-team
24
24
 
25
25
  # 只查可以直接配置/调用的 ModelName(只请求 VirtualModelID)
@@ -34,13 +34,19 @@ arkcli plans model-list --plan coding-plan --mode routing
34
34
  | 参数 | 必填 | 类型 | 说明 |
35
35
  |------|------|------|------|
36
36
  | `--plan` | 否 | string | `agent-plan` / `coding-plan` / `agent-plan-team` / `coding-plan-team`;省略时自动识别当前身份唯一持有的有效套餐,持有多个时要求显式指定 |
37
+ | `--type` | 否 | string | 共享包传 `agent-plan-team-shared-pool`,且必须与 `--plan agent-plan-team` 搭配 |
38
+ | `--project-name` | 否 | string | 共享包所属 Project;默认 `default`,通常无需传入 |
37
39
  | `--mode` | 否 | string | `all` / `direct` / `routing`,默认 `all`;`direct` 只请求直接 ModelName,`routing` 只请求智能路由候选 |
38
40
 
39
- 只有 `--plan` 一个业务筛选参数,不接受 `--type` / `--tier` / `--product` / `--edition`。套餐模型目录按 plan 查询,不按购买档位查询;同一家族的档位共享模型目录,价格、配额与其他权益另查 [buy](arkcli-plans-buy.md) 和 [pricing](../../arkcli-pricing/SKILL.md),不能把“模型列出来了”推导为某个档位已获全部权益。
41
+ 除共享包的 `--type` 外,不接受 `--tier` / `--product` / `--edition`。套餐模型目录按 plan 查询,不按购买档位查询;同一家族的档位共享模型目录,价格、配额与其他权益另查 [buy](arkcli-plans-buy.md) 和 [pricing](../../arkcli-pricing/SKILL.md),不能把“模型列出来了”推导为某个档位已获全部权益。
42
+
43
+ `coding-plan-team` 仅用于存量/白名单客户;Volc 已停止 CLI 购买和续费。
40
44
 
41
45
  例如 `arkcli plans model-list --plan coding-plan --type pro` 会报未知 flag;应使用 `arkcli plans model-list --plan coding-plan`。需要 vendor、模态或基础模型版本元信息时,把返回的 `model_id`(不是友好展示名 `model_name`)交给 [models get](../../arkcli-models/references/arkcli-models-get.md),不要从名字推断。
42
46
 
43
- 未传 `--plan` 时,CLI 会查询当前身份实际持有的四类套餐。只有一个有效个人订阅或 Running 团队席位时自动使用其 `Edition + BizInfo`;存在多个有效套餐时不按顺序猜选,而是报出候选并要求重新传 `--plan`。任一套餐状态查询失败时也不会根据不完整结果自动选择。
47
+ 未传 `--plan` 时,CLI 会查询当前身份实际持有的全部套餐(含共享包)。只有一个有效套餐或 Running 团队席位时自动使用其 `Edition + BizInfo`;存在多个有效套餐时不按顺序猜选,而是报出候选并要求重新传 `--plan`。任一套餐状态查询失败时也不会根据不完整结果自动选择。
48
+
49
+ Agent Plan Team 共享包使用 `--plan agent-plan-team --type agent-plan-team-shared-pool`,请求固定为 `Edition=enterprise` / `BizInfo=shared`。共享包是 team 下的类型,不是独立 plan,也没有 tier;仅企业管理员可查,非管理员在本地返回 `access_denied`,默认使用 `default` Project。共享包一期的 `plans model-apply` 不支持控制面路由写入。
44
50
 
45
51
  ## 返回值
46
52
 
@@ -107,6 +113,7 @@ arkcli plans model-list --plan coding-plan --mode routing
107
113
  - 个人版与团队版的 ark-code-latest 当前选择来源不同:
108
114
  - 个人版:服务端按订阅维度返回模型清单 + Enabled flag
109
115
  - 团队版:从用户席位 `ExtraConfig.ArkCodeLatestMappingModelID` 字段读
116
+ - 共享包:从 `BizInfo=shared` 的影子席位读取当前路由目标;无影子席位权限时不阻塞只读模型清单
110
117
  - 不要把路由候选与直接 ModelName 混用:切换 `ark-code-latest` 只看 `models[]`;直接配置/调用只看 `direct_models[].model_name`。
111
118
  - 模型规格直接来自套餐模型接口的 `ModelCapability`;缺失字段会省略,不能按模型名猜测或用其它目录数据覆盖
112
119
  - 数据是订阅期内允许调用的模型,不等同于全局可调用模型;试用模型用 [`../arkcli-models/`](../../arkcli-models/SKILL.md)
@@ -2,15 +2,18 @@
2
2
 
3
3
  > **前置条件:** 先阅读 [`../../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) 了解认证、全局参数和安全规则。
4
4
 
5
- > **⚠️ 写操作 + 计费:** 跟 `plans buy` 同样 `IsAutoPay=true`,加 `--yes` 后自动扣款。失败语义(payment_failed envelope)也跟 buy 一致。
5
+ > **⚠️ 写操作 + 计费:** 个人版/席位套餐/共享包跟 `plans buy` 一样使用自动扣款(`IsAutoPay=true` / `AutoPay=true`),加 `--yes` 后真实扣款。成功以 `order_number` 为准;自动支付未完成时返回 `payment_failed`,失败语义跟 buy 一致。
6
6
 
7
7
  > **🔒 协议闸门 (强制流程,跟 `plans buy` 完全同套路):** 不传 `--yes` 时,本命令**不续费**,只返协议清单。Agent **必须**先把 `agreements` 数组逐条展示给用户,等用户**明确同意**全部协议后才能加 `--yes` 重跑 `next_step`。详见 [`plans buy` 协议闸门说明](arkcli-plans-buy.md)。续费走的是跟新购完全一样的协议清单 (frontend BuyWindow 同时承载 buy + upgrade)。
8
8
 
9
+ > **⛔ Coding Plan 企业版(coding-plan-team):** Volc 已停止 CLI 续费。传 `--plan coding-plan-team` 会在参数校验阶段返回 `coding_plan_team_whitelist_only`,不会询价或发起 API 请求。该套餐仅存量/白名单客户使用;如需续费请联系销售或控制台处理,推荐新购/续费改用 `--plan agent-plan-team`。
10
+
9
11
  续费已有套餐。个人版自动从 `ListSubscribeTrade` 反查 InstanceID;团队版按 `--seat-ids` 拼 `Items` 一次走 `RenewAgentPlanEnterpriseTrade`。
10
12
 
11
13
  ## 选择续费对象
12
14
 
13
15
  - 复用本轮持有列表;只有一个与用户目标相符的套餐时直接复述并沿用,不再要求用户选同一个对象。多个套餐/席位仍可能匹配时,让用户选目标,不默认第一条。
16
+ - 如果目标套餐是 `coding-plan-team`,不要进入续费收参:说明 CLI 已停止续费、仅白名单客户可用,并引导联系销售或控制台。
14
17
  - 选项应带套餐家族、个人/团队、当前档位、真实席位 ID(团队版)与已确认的到期时间;到期时间按 [get 的有效期规则](arkcli-plans-get.md#到期时间--还剩多少天) 转北京时间,未查到就标“到期时间未知”,不伪造。
15
18
  - 只补缺少的续费月数或目标席位,每轮一个决策。1 / 3 / 6 / 12 个月可作快捷选项,但 CLI 合法范围是 1–12,不能拒绝用户明确给出的 2、4 等合法月份。
16
19
  - 保持原档位;不询问新购档位,不传 `--type` / `--quantity`。参数完整也不能跳过下述本轮协议与价格披露。
@@ -21,9 +24,9 @@
21
24
 
22
25
  | 形态 | 行为 |
23
26
  |---|---|
24
- | 不传 `--yes` 不传 `--estimate` | 协议闸门,返协议清单 + **价格** + `next_step`,内部走 EstimatePrice (IsRenew=true / Scene=RENEW),不下单 |
25
- | `--estimate` | 在线询价,不带协议清单 (脚本"只询价"出口) |
26
- | `--yes` | 真续费,自动扣款 |
27
+ | 不传 `--yes` | 协议闸门,返协议清单 + **价格** + `next_step`,内部走 EstimatePrice (IsRenew=true / Scene=RENEW),不下单 |
28
+ | `--dry-run` | 本地 Client Preview,不联网、不询价、不下单 |
29
+ | `--yes` | 真续费:个人版/席位套餐/共享包全部自动扣款;成功返回 `order_number` |
27
30
 
28
31
  > 闸门返回值会**反查 tier**填回:个人版从 `ListSubscribeTrade.InfoList[0].BizInfo` 来,团队版从 `ListSeatInfos` 用 SeatIDs[0] 反查。`echo.tier` 字段供 agent 跟用户确认"还是续这个档位吗"。
29
32
 
@@ -34,30 +37,39 @@
34
37
  arkcli plans renew --plan agent-plan
35
38
  arkcli plans renew --plan agent-plan-team --duration 3 --seat-ids seat-001,seat-002
36
39
 
37
- # 第 2 步: 询价 (可选)
38
- arkcli plans renew --plan agent-plan --duration 6 --estimate
40
+ # 第 2 步: 本地预览执行计划 (可选)
41
+ arkcli plans renew --plan agent-plan --duration 6 --dry-run
39
42
 
40
43
  # 第 3 步: 用户同意协议后, 真续费
41
44
  arkcli plans renew --plan agent-plan --yes
42
45
  arkcli plans renew --plan coding-plan --duration 6 --yes
43
46
  arkcli plans renew --plan agent-plan-team --duration 3 --seat-ids seat-001,seat-002 --yes
44
- arkcli plans renew --plan coding-plan-team --seat-ids seat-aaa --yes
47
+
48
+ # 不可续费(Volc):coding-plan-team 会返回 coding_plan_team_whitelist_only
49
+
50
+ # Agent Plan Team 共享包:--type 表示 shared-pool;不要传 --seat-ids
51
+ arkcli plans renew --plan agent-plan-team --type agent-plan-team-shared-pool --duration 1
45
52
  ```
46
53
 
47
54
  ## 参数
48
55
 
49
56
  | 参数 | 必填 | 类型 | 说明 |
50
57
  |------|------|------|------|
51
- | `--plan` | 是 | string | `agent-plan` / `coding-plan` / `agent-plan-team` / `coding-plan-team` |
58
+ | `--plan` | 是 | string | `agent-plan` / `coding-plan` / `agent-plan-team`;`coding-plan-team` 仅存量/白名单,不可通过 CLI 续费 |
59
+ | `--type` | 共享包必填 | string | 席位续费不需要;共享包传 `agent-plan-team-shared-pool` |
52
60
  | `--duration` | 否 | int | 续费时长(月),1-12,默认 1 |
53
- | `--seat-ids` | 团队版 必填 | string | 逗号分隔,要续费的席位 ID(个人版**不允许**传) |
54
- | `--yes` | 否 | bool | 跳过协议闸门,真续费 (`IsAutoPay=true`) |
61
+ | `--seat-ids` | 团队版 必填 | string | 逗号分隔,要续费的席位 ID(个人版、共享包**不允许**传) |
62
+ | `--project-name` | 否 | string | 共享包所属 Project;默认 `default`,通常无需传入 |
63
+ | `--dry-run` | 否 | bool | 本地 Client Preview;不联网、不下单 |
64
+ | `--yes` | 否 | bool | 跳过协议闸门,真续费。个人版/席位套餐/共享包全部自动扣款;成功返回 `order_number` |
55
65
 
56
- > **关键差异**:跟 `plans buy` 不同,`renew` 不需要 `--type` —— 续费保持原档位。也不需要 `--quantity` —— 续费数量由 `--seat-ids` 个数决定。
66
+ > **关键差异**:席位续费不需要 `--type`,保持原档位;共享包必须传 `--type agent-plan-team-shared-pool`。都不需要 `--quantity` —— 团队版数量由 `--seat-ids` 个数决定;共享包数量由当前 instance 固定,续费时不能变配。
67
+
68
+ > **共享包:** 必须使用管理员身份,并在具体 Project profile 下执行。CLI 只在该 Project 内通过 `ListSeatInfos(BizInfo=shared, BillingStatus=[Running])` 找唯一影子席位,再调用 `GetSharedPackageInfo({SeatID})` 在内部解析交易 `InstanceID`,并按 `NextPeriodQuota` 询价。`InstanceID` 不出现在 CLI 输出,也不需要用户传入。account-wide profile 会 fail closed,不会把多个 Project 的影子席位混成一个列表。共享包与个人版/席位套餐一致,固定 `AutoPay=true` 自动扣款;成功以 `order_number` 为准,自动支付未完成时返回 `payment_failed`。共享包只展示 monthly 用量;协议清单包含《火山方舟大模型订阅套餐服务专用条款》。
57
69
 
58
70
  ## 返回值 (协议闸门, 默认形态)
59
71
 
60
- 不传 `--yes` 不传 `--estimate` 时:
72
+ 不传 `--yes` 时:
61
73
 
62
74
  ```json
63
75
  {
@@ -73,10 +85,13 @@ arkcli plans renew --plan coding-plan-team --seat-ids seat-aaa --yes
73
85
  "total_amount_cny": 99.5,
74
86
  "original_amount_cny": 100.0,
75
87
  "confirm_text": "续费将立即扣款 (IsAutoPay=true)。请把上述协议链接展示给最终用户...",
88
+ "payment_mode": "auto",
76
89
  "next_step": "arkcli plans renew --plan agent-plan --duration 1 --yes"
77
90
  }
78
91
  ```
79
92
 
93
+ **`payment_mode`:** `auto` = 自动扣款(个人版/席位套餐/共享包);`web` = BytePlus 引导到浏览器完成支付。共享包的 `confirm_text` 与个人版/席位套餐一致,`--yes` 会真实扣款。
94
+
80
95
  `tier` / `echo.tier`:从已有订阅 / 席位反查的当前档位 — agent 拿这个跟用户确认续费档位。
81
96
 
82
97
  团队版 `next_step` 会带上 `--seat-ids seat-001,seat-002`,`echo.seat_ids` 也会列出 — 直接抄给用户即可。
@@ -112,11 +127,12 @@ arkcli plans renew --plan coding-plan-team --seat-ids seat-aaa --yes
112
127
 
113
128
  | 错误 | 原因 | 处理 |
114
129
  |------|------|------|
115
- | `--plan must be one of ...` | 拼错 plan key | 严格用 4 选 1 |
130
+ | `--plan must be one of ...` | 拼错 plan key | 续费用 `agent-plan` / `coding-plan` / `agent-plan-team` / `agent-plan-team-shared-pool`;`coding-plan-team` 走白名单提示 |
116
131
  | `--seat-ids is required for team plans` | 团队版漏传 | 列出要续费的席位 ID |
117
132
  | `--seat-ids only applies to team plans` | 个人版多传了 | 删掉 `--seat-ids`,个人版不需要 |
118
133
  | `--seat-ids must contain at least one non-empty seat ID` | 给了空串 / 全是逗号 | 检查输入 |
119
134
  | `--duration must be 1..12` | 越界 | 1-12 之间 |
135
+ | `coding_plan_team_whitelist_only` | 请求续费 Coding Plan 企业版 | 不重试;说明仅白名单客户开放,联系销售或走控制台 |
120
136
  | `payment_failed` envelope | 余额不足 | console 手动补单 |
121
137
 
122
138
  ## 注意事项
@@ -6,6 +6,8 @@
6
6
 
7
7
  轮换 Agent Plan / Coding Plan **企业版** 席位的 APIKey。一次调用 `RegenerateEnterpriseCodingPlanApikey`,可批量;服务端 per-item 状态。
8
8
 
9
+ > **存量/白名单:** Coding Plan 企业版仅存量/白名单客户可轮换席位 APIKey;Volc 已停止 CLI 购买和续费。
10
+
9
11
  支持两种使用场景:
10
12
 
11
13
  - **self-rotate**:不传 `--seat-ids` 时,自动反查 "我的 agent-plan-team 席位"(`GetSeatInfo` Scene=`agent_plan_enterprise`),轮换该席位 APIKey
@@ -6,6 +6,8 @@
6
6
 
7
7
  把 Agent Plan / Coding Plan 企业版席位绑定到 IAM 子用户。同一 Action 同时支持两种企业版(agent-plan-team / coding-plan-team),服务端按 SeatID 反推套餐线,**不需要 Scene**。
8
8
 
9
+ > **存量/白名单:** Coding Plan 企业版仅存量/白名单客户可分配席位;Volc 已停止 CLI 购买和续费。
10
+
9
11
  ## 不知道员工的精确 UserID 怎么办
10
12
 
11
13
  如果你只知道员工用户名(或前缀),先用 `arkcli iam userid` 反查:
@@ -4,6 +4,8 @@
4
4
 
5
5
  列出 Agent Plan / Coding Plan **企业版** 席位,支持 7 种过滤维度 + 分页。读操作。
6
6
 
7
+ > **存量/白名单:** Coding Plan 企业版仅存量/白名单客户可查询和管理;Volc 已停止 CLI 购买和续费。
8
+
7
9
  ## 命令
8
10
 
9
11
  ```bash
@@ -64,16 +64,16 @@
64
64
 
65
65
  ## 2c) 参数映射回归 — 家族 × 个人/团队 × 档位
66
66
 
67
- 以下每个档位分别作为用例,不以一个成功组合代表全部;仅验证收参、协议闸门或 `--estimate`,不为回归真实扣款。
67
+ 以下每个档位分别作为用例,不以一个成功组合代表全部;仅验证收参、协议闸门或 `--dry-run`,不为回归真实扣款。
68
68
 
69
69
  | 家族 | 形态 | 档位逐项覆盖 | 预期参数 |
70
70
  | --- | --- | --- | --- |
71
71
  | Agent Plan | 个人 | small / medium / large / max | `--plan agent-plan --type <档位>` |
72
72
  | Agent Plan | 团队 | small / medium / large / max | `--plan agent-plan-team --type <档位> --quantity <席位数>` |
73
73
  | Coding Plan | 个人 | lite / pro | `--plan coding-plan --type <档位>` |
74
- | Coding Plan | 团队 | lite / pro | `--plan coding-plan-team --type <档位> --quantity <席位数>` |
74
+ | Coding Plan | 团队(Volc) | — | 不进入收参;预期 `coding_plan_team_whitelist_only`,说明白名单限制并推荐 `agent-plan-team` |
75
75
 
76
- 共同断言:首条命令前读取 buy reference;只使用 help 声明的 flags;不把个人/团队塞入 `--type`,不造 `--tier`;每个选项解释价格、场景、限制。再覆盖参数已全给、只给家族、给团队但缺数量、非法档位、2 个月合法非快捷时长、0/13 月不合法、取消/拒绝/未答协议。所有协议逐条披露且用本次价格;没有明确同意就没有下单。
76
+ 共同断言:首条命令前读取 buy reference;只使用 help 声明的 flags;不把个人/团队塞入 `--type`,不造 `--tier`;每个选项解释价格、场景、限制。Coding Plan 团队用例不得询价或下单,必须直接说明仅白名单客户可用并推荐 Agent Plan 企业版。再覆盖参数已全给、只给家族、给团队但缺数量、非法档位、2 个月合法非快捷时长、0/13 月不合法、取消/拒绝/未答协议。所有协议逐条披露且用本次价格;没有明确同意就没有下单。
77
77
 
78
78
  续费覆盖:单订阅跳过选择、多订阅选项带北京时间到期值、团队从真实席位选择;保留原档位,不传 `--type` / `--quantity`。失败覆盖:库存不足不重问/不重试,payment_failed 保留原订单而不是再开单,网络结果未知先查证。模型清单覆盖:不带档位 flag,展示读 `model_name`,配置读 `output_name`,精确查询读 `model_id`。
79
79
 
@@ -222,3 +222,30 @@
222
222
 
223
223
  - 执行 `arkcli plans model-list --plan coding-plan --mode routing`,避免请求无关的 VirtualModelID 接口
224
224
  - 只从 `models[]` 读取路由候选和当前 `selected` 状态
225
+
226
+ ## 共享包计费与可见性
227
+
228
+ 输入:
229
+
230
+ - "帮我续费共享包" / "买一个共享包"
231
+
232
+ 期望行为:
233
+
234
+ - 先走协议闸门并展示协议与价格;用户明确同意后才加 `--yes`
235
+ - 共享包与个人版/席位套餐一致,`confirm_text` 明确写 `IsAutoPay=true`,`payment_mode` 为 `auto`
236
+ - `--yes` 成功时返回 `order_number`,应表述为已扣款/已续费;只有 `PreOrderNumbers` 时按 `payment_failed` 处理
237
+
238
+ 反例(失败):
239
+
240
+ - 把共享包说成“只创建预订单、需要手工支付”
241
+ - 返回 `payment_failed` 后声称购买/续费已完成
242
+ - 非管理员身份下展示共享包行或尝试用共享包数据回答
243
+
244
+ 输入:
245
+
246
+ - 子用户询问"我有哪些套餐"或"共享包用了多少"
247
+
248
+ 期望行为:
249
+
250
+ - `plans get` / `usage plan` / `usage plan-details` 不展示共享包
251
+ - 显式 `--product agent-plan-team-shared-pool` 返回 `access_denied` 时如实说明需要企业管理员,不重试、不换身份猜测数据
@@ -27,7 +27,7 @@ metadata:
27
27
  - profile 写操作(create / use / set-default / keys / models / delete / rename)一律走 `arkcli profile <verb>`;旧的 `arkcli config init/list/show/switch/delete` 已 deprecated,不要再引导用户用
28
28
  - 普通身份准入使用 `arkcli auth status` / `arkcli auth whoami`,默认资源与路由检查使用 `arkcli resources list`;不要为业务准入自动进入 Profile 管理
29
29
  - 用户明确要查看或管理 Profile 时才运行 `profile show/list/keys list`,执行前先说明它们可能在线同步并回写 Key;脱敏 stdout 不代表本地配置无副作用
30
- - ProfileType 五种:`platform` / `agent-plan` / `agent-plan-team` / `coding-plan` / `coding-plan-team`;其 text/image/video 所需的数据面、凭证与资源不同
30
+ - ProfileType 六种:`platform` / `agent-plan` / `agent-plan-team` / `agent-plan-team-shared-pool` / `coding-plan` / `coding-plan-team`。Pool 是 Agent Plan Team 下的类型,不是独立 plan;其 `plan=agent-plan-team`、`plan_tier` 为空,凭证是管理员分发的 Pool API Key。登录类型菜单不默认展示 Pool;有 Key 的用户通过 `profile create --type agent-plan-team-shared-pool --default-api-key <pool-key>` 或 helper 显式配置
31
31
  - 用户只想临时传 API Key / Base URL / Endpoint 时,不要创建、切换或修改 profile;先读 [`../arkcli-shared/references/execution-context.md`](../arkcli-shared/references/execution-context.md)
32
32
 
33
33
  ## 适用场景
@@ -129,6 +129,7 @@ Agent 行为约定:
129
129
  | `agent-plan` | 火山方舟 Agent Plan 订阅(个人版) | `/api/plan/v3` | OpenTOP + Plan API | ✓ tier 目录按 `OutputModalities` 动态过滤 |
130
130
  | `coding-plan` | 火山方舟 Coding Plan 订阅(个人版) | `/api/coding/v3` | OpenTOP + CodingPlan API | text: 套餐内文本模型;image/video: 借道 platform 数据面 + 用户 +deploy 的 endpoint id (S10, commit f69be53) |
131
131
  | `agent-plan-team` | Agent Plan 团队席位 | `/api/plan/v3` | OpenTOP + Plan API | text/image/video 都用套餐模型 + 团队席位 Key |
132
+ | `agent-plan-team` + `shared-pool` | Agent Plan Team 共享包 | `/api/plan/v3` | OpenTOP + Plan API | text 走共享包模型;Key 由管理员手工分发,不自动刷新;无 tier |
132
133
  | `coding-plan-team` | Coding Plan 团队席位 | `/api/coding/v3` | OpenTOP + CodingPlan API | text 用套餐模型 + 团队席位 Key;image/video 用 platform Endpoint + 后付费 API Key |
133
134
 
134
135
  > Coding Plan 个人版的 text lane 使用后付费 API Key;Coding Plan Team 只有 text
@@ -24,6 +24,13 @@ arkcli profile create --type coding-plan --plan-tier lite --set-default
24
24
  arkcli profile create --type agent-plan-team --no-interactive
25
25
  arkcli profile create --type coding-plan-team --no-interactive
26
26
 
27
+ # Agent Plan Team 共享包:Plan 仍是 Team,type 是 Pool;Key 由管理员线下分发
28
+ arkcli profile create \
29
+ --type agent-plan-team-shared-pool \
30
+ --project default \
31
+ --default-api-key <pool-api-key> \
32
+ --no-interactive
33
+
27
34
  # 完全 inline(CI 友好,所有必填字段都给)
28
35
  arkcli profile create \
29
36
  --type platform \
@@ -38,11 +45,11 @@ arkcli profile create \
38
45
 
39
46
  | 参数 | 必填 | 说明 |
40
47
  |------|------|------|
41
- | `--type` | 是(除非 interactive) | `platform` / `agent-plan` / `coding-plan` / `agent-plan-team` / `coding-plan-team` |
48
+ | `--type` | 是(除非 interactive) | `platform` / `agent-plan` / `coding-plan` / `agent-plan-team` / `agent-plan-team-shared-pool` / `coding-plan-team` |
42
49
  | `--region` | 否 | 默认 `cn-beijing` |
43
50
  | `--project` | 否 | 默认 `default`;0.1.16 起 Project 进 profile 切面 |
44
51
  | `--name` | 否 | 默认 `{type}_{region}_{project}` 派生;显式传跳过派生 |
45
- | `--default-api-key` | 否 | 显式指定绑定的 default API Key;默认按 type 取普通池、Agent Plan 专属池或团队席位 Key,不可跨池替代 |
52
+ | `--default-api-key` | 否 | 显式指定 default API Key;`agent-plan-team-shared-pool` 时必须传管理员分发的 Pool API Key |
46
53
  | `--owner-trn` | 否 | 火山 IAM trn;通常留空(SSO 登录场景下由 `sso.Switch` 从 IDToken `claims.Trn` 直接写入;0.1.16 起不再走 self-heal 回填) |
47
54
  | `--plan-tier` | 否 | **仅个人版手动声明**:agent-plan 取 `small`/`medium`/`large`/`max`,coding-plan 取 `lite`/`pro`;跳过个人订阅 Detect,不绕过权限/协议/余额。团队版仍查询真实席位,并以其档位为准 |
48
55
  | `--set-default` | 否 | 创建后立即设为 default profile |
@@ -83,10 +90,12 @@ Agent Plan 订阅已回收, 请前往 console 续费:
83
90
  | --- | --- | --- |
84
91
  | `agent-plan-team` | `GetSeatInfo` 的 Agent Plan 企业 Scene;真实 `SeatID`、Running 状态、`BizInfo` 与席位 Key | Agent Plan 清单 |
85
92
  | `coding-plan-team` | `GetSeatInfo` 的 Coding Plan Scene;同样要求当前身份的 Running 席位 | Coding Plan 清单,需要当前 AccountID |
93
+ | `agent-plan-team-shared-pool` | 不探测席位;使用管理员分发的 Pool API Key,`plan_tier` 为空 | Agent Plan enterprise/shared 清单 |
86
94
 
87
95
  - 缺席位、非 Running、身份不符或接口错误时停止;“团队已购买”不等于“当前子用户已绑定席位”。需要分配席位时转 Plans,并另行确认具体目标。
88
96
  - `--plan-tier` 不能制造席位、绕过 `GetSeatInfo` 或恢复已过期席位;不要改成个人版、普通池 Key 或另一个账号重试。
89
97
  - 团队 Key 来自该席位,不能把 `auth apikey` 成功或普通池非空当团队凭证已就绪;反馈只报脱敏信息。
98
+ - 共享包 Profile 的 `profile keys refresh` / read reconcile 不工作:Key 是手工生命周期,不能被普通 Key 池覆盖。需要换 Key 时显式重跑 `profile create --type agent-plan-team-shared-pool --default-api-key <pool-key>`,或重新走 `arkcli helper`。
90
99
 
91
100
  ## 跟旧 `config init` 的差异
92
101
 
@@ -8,6 +8,7 @@ profile.yaml 在 `resources.<modality>.default` 字段存用户对每个 modalit
8
8
  - **agent-plan profile**:默认值是火山预置 model id(如 `doubao-seed-2-0-pro-260215` / `doubao-seedream-5.0-pro` / `doubao-seedance-2.5`)
9
9
  - **coding-plan profile**:text modality 用 `ark-code-latest` 这类套餐内文本模型;image / video 借道 platform 数据面 — 字段存的是用户在 platform 上 `+deploy` 出来的 endpoint id(`ep-xxx`),arkcli 会在 `+gen` 时自动把数据面切到 `/api/v3`。不再要求切 profile
10
10
  - **`agent-plan-team` profile**:text/image/video 都走 Agent Plan 数据面与套餐模型,凭证为团队席位 Key。
11
+ - **`agent-plan-team-shared-pool` profile**:走 Agent Plan 数据面 `/api/plan/v3`,凭证为管理员手工分发的共享包专用 Key;不自动拉取普通/席位 Key 池。
11
12
  - **`coding-plan-team` profile**:text 走 Coding Plan 数据面与套餐模型,凭证为团队席位 Key;image/video 切到 platform Endpoint,必须使用**后付费 API Key**,不能复用团队席位 Key。Endpoint default 可以保存在该 profile,但它不等于已经具备可调用凭证。
12
13
 
13
14
  每次帮用户跑 `+chat` / `+gen`:
@@ -45,6 +46,7 @@ S10 改造后, arkcli 不再因为 active profile 是 `coding-plan` 就阻断 `+
45
46
  - **active=agent-plan**: 走 agent-plan 数据面 + 预置模型 (image=`doubao-seedream-5.0-pro`, video=`doubao-seedance-2.5`)
46
47
  - **active=coding-plan + modality=image|video**: arkcli 自动借道 platform 数据面 `/api/v3` + 用户在 platform 控制面 `+deploy` 出的 endpoint id (cfg 临时 clone, 不污染 factory cache). 用户体感不需要切 profile
47
48
  - **active=agent-plan-team**:走 Agent Plan 数据面 + 团队席位 Key + 预置 image/video 模型。
49
+ - **active=agent-plan-team-shared-pool**:走 Agent Plan 数据面 + 手工共享包 Key;文本模型按 `Edition=enterprise/BizInfo=shared` 查询。
48
50
  - **active=coding-plan-team**:image/video 使用 platform Endpoint,但团队席位 Key 不兼容。提交前必须由用户显式授权兼容的后付费凭证:选择 Platform/Coding Plan 个人版 `--profile`,或提供 `--api-key`(需要时同时提供 `--base-url`)。CLI 不枚举、不借用 sibling profile;缺少显式授权时在真实请求前失败。
49
51
 
50
52
  资源发现 / default 设置链路也对齐:
@@ -40,7 +40,7 @@ metadata:
40
40
  - **模型 / 套餐目录多少钱、每 Token 单价**:读取 Pricing 做询价,不查个人账单或用量。
41
41
  - **明确要求目录单价估算 / 预算预测**:才读取 Pricing,与用户指定范围的调用量组合;结果标“估算”,披露免费额度、折扣、缓存及结算差异。已有实际费用问题遇到 T+1 未出账时,报告未结算部分,不自动改成估算金额。
42
42
 
43
- 用户已明确套餐名称时,直接用 `usage plan --product <plan>`;Agent Plan 按模型明细用 `usage plan-details --product <agent-plan|agent-plan-team> --start <日期>`。订阅属于账号/子用户,**不是由 active profile.type 决定**;platform profile 不等于没有套餐,也不需要为查询先切成 plan profile。
43
+ 用户已明确套餐名称时,直接用 `usage plan --product <plan>`;Agent Plan 按模型明细用 `usage plan-details --product <agent-plan|agent-plan-team> --start <日期>`。Agent Plan Team 共享包用 `--plan agent-plan-team --type agent-plan-team-shared-pool`,它不是独立 plan,也没有 tier。订阅属于账号/子用户,**不是由 active profile.type 决定**;platform profile 不等于没有套餐,也不需要为查询先切成 plan profile。
44
44
 
45
45
  - 平台 Token / 请求数 → `usage stats --start <日期>`;用户说“我的”时首条就带 `--mine`,追加 `--by model|endpoint|apikey` 不能删掉范围限制。
46
46
  - 套餐额度 → `usage plan` / `usage balance --type plan`;Agent Plan 明细 → `plan-details`;Coding Plan 只有 quota 快照,解释限制后停止,不补查平台桶冒充套餐明细。
@@ -103,6 +103,7 @@ metadata:
103
103
  - 用户问"我哪个模型用得最多 / 套餐内套餐外各占多少 / 团队某个子用户用得多":
104
104
  - `arkcli usage plan-details --start <YYYY-MM-DD>`(Day 粒度,Agent Plan personal;显式补日期)
105
105
  - `arkcli usage plan-details --product=agent-plan-team`(团队版,自动找 caller seat 或显式 `--seat <id>`)
106
+ - `arkcli usage plan-details --plan agent-plan-team --type agent-plan-team-shared-pool --start <日期>`(共享包,当前 Project 唯一影子 seat,不支持 `--all-seats`)
106
107
  - **Coding Plan 例外**:不执行 `plan-details` 或 `stats`;只执行 `arkcli usage plan --product coding-plan`(团队版用 `coding-plan-team`),并明确该结果只是 quota 快照、不是本周按模型明细,然后停止。用户未另行要求 platform / Endpoint 用量时,不主动补跑 `usage stats`。
107
108
  - 用户问"我的用量 / 我今天用了多少 token / 我的 endpoint 消耗":
108
109
  - 先按 Step 0 确定口径;明确的平台 Token / Endpoint 问题直接查下述平台桶,不因 profile.type 自动追加套餐查询。
@@ -144,7 +145,7 @@ metadata:
144
145
  |------|------|
145
146
  | [`usage stats`](references/arkcli-usage-stats.md) | 查询推理用量(Token / 请求数,按日 / 小时聚合,按 token 计费的 inference 视角) |
146
147
  | [`usage plan`](references/arkcli-usage-plan.md) | 查询订阅套餐的额度快照(AgentPlan / CodingPlan,5h / weekly / monthly / session 周期的"用了多少 / 还剩多少 / 几号刷新")。默认探所有 4 个 SKU |
147
- | [`usage plan-details`](references/arkcli-usage-plan-details.md) | 查询 AgentPlan **个人版 + 团队版** 按模型 / Harness 的时间序列调用明细(套餐内 vs 套餐外拆分)。必传 `--start`,`--product=agent-plan-team` 切团队版 |
148
+ | [`usage plan-details`](references/arkcli-usage-plan-details.md) | 查询 AgentPlan **个人版 + 团队版 + 共享包** 按模型 / Harness 的时间序列调用明细(套餐内 vs 套餐外拆分)。必传 `--start` |
148
149
  | [`usage balance`](references/arkcli-usage-balance.md) | 余额视角统一入口 `--type free-quota / media-asset / plan`(模型免费推理额度 / 素材库容量 / 套餐余额) |
149
150
  | [`usage seats`](references/arkcli-usage-seats.md) | **Admin 视角** 列举企业版套餐下所有席位(SeatID / 绑定子用户 / billing 状态)。子用户调通常 AccessDenied |
150
151
 
@@ -1,6 +1,6 @@
1
1
  # usage plan-details
2
2
 
3
- > **硬边界:本命令仅支持 `agent-plan` / `agent-plan-team`。Coding Plan 问题不得调本命令,也不得改跑 `usage stats` 后把 platform / Endpoint Token 统计表述成 Coding Plan 套餐明细;只能用 `arkcli usage plan --product coding-plan`(团队版用 `--product coding-plan-team`)返回 quota 快照,并向用户说明当前没有按模型时序明细能力。**
3
+ > **硬边界:本命令仅支持 `agent-plan` / `agent-plan-team` / `agent-plan-team-shared-pool`。Coding Plan 问题不得调本命令,也不得改跑 `usage stats` 后把 platform / Endpoint Token 统计表述成 Coding Plan 套餐明细;只能用 `arkcli usage plan --product coding-plan`(团队版用 `--product coding-plan-team`)返回 quota 快照,并向用户说明当前没有按模型时序明细能力。**
4
4
 
5
5
  > **前置条件:** 先阅读 [`../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) 了解认证、全局参数和安全规则。
6
6
 
@@ -11,7 +11,7 @@
11
11
  >
12
12
  > 用户问「我哪个模型用得最多 / 套餐内用了多少 / 套餐外又用了多少」走 plan-details;问"还剩多少额度"走 plan。
13
13
 
14
- 查询 AgentPlan 套餐的 Model / Harness 调用明细时间序列。**支持个人版 (默认) + 团队版**(`--product=agent-plan-team`)。CodingPlan 后端没暴露按模型的明细 API,传 `coding-plan` 类 product 直接 ErrValidation。
14
+ 查询 AgentPlan 套餐的 Model / Harness 调用明细时间序列。**支持个人版 (默认) + 团队版 + 共享包**。CodingPlan 后端没暴露按模型的明细 API,传 `coding-plan` 类 product 直接 ErrValidation。
15
15
 
16
16
  ## 命令
17
17
 
@@ -42,6 +42,12 @@ arkcli usage plan-details --product agent-plan-team --all-seats
42
42
  # Admin server-side 按子用户过滤 (后端 Filter,跟 --all-seats 配套用最方便)
43
43
  arkcli usage plan-details --product agent-plan-team --all-seats --seat-user-name alice
44
44
  arkcli usage plan-details --product agent-plan-team --all-seats --seat-user-id 12345
45
+
46
+ # Agent Plan Team 共享包(当前 Project 的影子席位,不支持 --all-seats)
47
+ arkcli usage plan-details --plan agent-plan-team --type agent-plan-team-shared-pool --start 2026-11-01
48
+
49
+ # PRD 兼容写法 (--plan / --seat-ids 分别是 --product / --seat 的互斥别名)
50
+ arkcli usage plan-details --plan agent-plan-team --seat-ids seat-001,seat-002
45
51
  ```
46
52
 
47
53
  ## 参数
@@ -52,9 +58,15 @@ arkcli usage plan-details --product agent-plan-team --all-seats --seat-user-id 1
52
58
  | `--end` | 否 | string | 结束日期(`YYYY-MM-DD`,闭区间)。默认今天 |
53
59
  | `--interval` | 否 | string | 查询粒度: `Day`(默认) / `Hour`。大小写不敏感 |
54
60
  | `--model` | 否 | []string | 对客模型 / Harness 名称,可重复 |
55
- | `--product` | 否 | string | `agent-plan`(默认,个人版,OpenAPI)\| `agent-plan-team`(团队版,**OpenAPI**,AK/SK + SSO 都行) |
61
+ | `--product` | 否 | string | 显式 product id;共享包兼容值 `agent-plan-team-shared-pool` |
62
+ | `--plan` | 否 | string | Plan family;共享包使用 `agent-plan-team`,与 `--type` 搭配 |
63
+ | `--type` | 否 | string | 共享包传 `agent-plan-team-shared-pool`;没有 tier |
64
+ | `--project-name` | 否 | string | 共享包所属 Project;默认 `default`,通常无需传入 |
56
65
  | `--seat` | 否 | []string | **仅团队版**;SeatID 可重复(单次最多 1000)。不传时默认 `GetSeatInfo` 找 caller 单 seat |
66
+ | `--seat-ids` | 否 | []string | `--seat` 的 PRD 兼容别名,二者互斥;逗号分隔或重复传入均可 |
57
67
  | `--all-seats` | 否 | bool | **仅团队版,admin 视角**;先 `ListSeatInfos` 列全队 SeatIDs 再批量查。`--seat` 显式给值时优先,`--all-seats` 被覆盖 |
68
+
69
+ > **共享包:** 使用 `--plan agent-plan-team --type agent-plan-team-shared-pool` 时只查询当前 Project 的唯一共享包影子席位,不接受 `--all-seats`。共享包仅企业管理员可见;显式请求也走本地 IAM 管理员闸门,非管理员返回 `access_denied`;account-wide profile 会 fail closed。
58
70
  | `--seat-user-id` | 否 | []string | **仅团队版,admin 视角**;server-side 按子用户 ID 过滤(可重复) |
59
71
  | `--seat-user-name` | 否 | []string | **仅团队版,admin 视角**;server-side 按子用户名过滤(可重复) |
60
72
 
@@ -27,6 +27,7 @@ arkcli usage plan --render
27
27
  arkcli usage plan --product agent-plan
28
28
  arkcli usage plan --product coding-plan
29
29
  arkcli usage plan --product agent-plan-team
30
+ arkcli usage plan --plan agent-plan-team --type agent-plan-team-shared-pool
30
31
  arkcli usage plan --product coding-plan-team
31
32
 
32
33
  # 强制查所有 4 个桶 (personal + team), 不管订阅与否 (诊断 / Excel 视角)
@@ -34,34 +35,43 @@ arkcli usage plan --all
34
35
 
35
36
  # Team 版查指定席位 (绕过 GetSeatInfo 的自动 caller seat 解析)
36
37
  arkcli usage plan --product agent-plan-team --seat seat-001
38
+
39
+ # PRD 兼容写法 (--plan / --seat-ids 分别是 --product / --seat 的互斥别名)
40
+ arkcli usage plan --plan agent-plan-team --type agent-plan-team-shared-pool
37
41
  ```
38
42
 
39
43
  ## 参数
40
44
 
41
45
  | 参数 | 必填 | 类型 | 说明 |
42
46
  |------|------|------|------|
43
- | `--product` | 否 | string | 显式 product id: `agent-plan` / `coding-plan` / `agent-plan-team` / `coding-plan-team`。不传则默认走自动探订阅 |
44
- | `--all` | 否 | bool | 强制查所有 4 个 product,没订阅的桶 endpoint 自己返 subscribed=false 行。**跟 `--product` 互斥** |
47
+ | `--product` | 否 | string | 显式 product id;共享包兼容值 `agent-plan-team-shared-pool`,新写法优先用 `--plan agent-plan-team --type agent-plan-team-shared-pool`。共享包仅企业管理员可用 |
48
+ | `--type` | 否 | string | 共享包传 `agent-plan-team-shared-pool`,必须与 `--plan agent-plan-team` 搭配;共享包没有 tier |
49
+ | `--project-name` | 否 | string | 共享包所属 Project;默认 `default`,通常无需传入 |
50
+ | `--plan` | 否 | string | `--product` 的 PRD 兼容别名,二者互斥。语义与 `--product` 完全相同 |
51
+ | `--all` | 否 | bool | 强制查所有 product,没订阅的桶 endpoint 自己返 subscribed=false 行。**跟 `--product` 互斥** |
45
52
  | `--seat` | 否 | string | 仅 team product 有意义。不传时 service 层自动调 `GetSeatInfo` 找 caller 绑定的 seat;传了则跳过该 RPC,直接用提供的 SeatID(管理员视角查别人的 seat) |
53
+ | `--seat-ids` | 否 | string | `--seat` 的 PRD 兼容别名,二者互斥。`usage plan` 一次只查一个 seat,因此只接受单个 SeatID(逗号分隔多个值会报错,批量请用 `usage plan-details --seat-ids`) |
46
54
  | `--render` | 否 | bool | 只输出人读额度卡片,不输出 JSON。TTY 下彩色,管道/重定向下保留 Unicode 进度条但去 ANSI;不能与显式 `--format` / `--transform` 混用 |
47
55
 
48
56
  ## 默认行为(无 `--product` / `--all`)
49
57
 
50
58
  不传任何 product 时,**默认行为统一**(profile.Type 不再参与派生 — 历史版本曾按 profile 单桶查,V2 起改为统一探所有订阅,因为同一身份常常同时订了多个 product):
51
59
 
52
- 1. 4 桶并发探订阅状态:
60
+ 1. 并发探订阅状态:
53
61
  - **Personal × 2** 走 `ListSubscribeTrade`(`ResourceNames=[RealAgentPlanPersonal]` / `[""]`)
54
62
  - **Team × 2** 走 `GetSeatInfo(Scene="agent_plan_enterprise" / "")`(企业版不在 ListSubscribeTrade 暴露,实测返 null;改通过 caller seat 绑定状态探)
63
+ - **Shared pool** 仅企业管理员:先解析管理员身份,再走 `ListSeatInfos(BizInfo=shared, BillingStatus=[Running])` 找 Project 影子席位;非管理员不探测、不展示
55
64
  2. 探到的桶下发对应 usage RPC:
56
65
  - `agent-plan` (personal) → `GetAFPUsage`
57
66
  - `coding-plan` (personal) → `GetCodingPlanUsage`
58
67
  - `agent-plan-team` → 已经拿到 SeatID → `GetSeatAFPUsage(SeatIDs=[id])`
59
68
  - `coding-plan-team` → 已经拿到 SeatID → `GetSeatInfoUsage(SeatID=id, Scene="")`
69
+ - `agent-plan-team` + `agent-plan-team-shared-pool` → 当前 Project 唯一影子 SeatID → `GetSeatAFPUsage(SeatIDs=[id])`,只输出 `monthly`
60
70
  3. 一桶失败不挡其它桶 (per-bucket error isolation)
61
71
 
62
72
  > **多 1 次 RPC 换零 flag 体验**:`ListSubscribeTrade × 2 + GetSeatInfo × 2` 并发约 ~50ms,远低于循环逐 product 查的成本。要跳过这个探测就传具体 `--product`。
63
73
  >
64
- > **Team 桶静默规则**:caller 没绑 seat 时,team 桶在默认探测里**不出现**(避免 admin 没买企业版还看到 "no seat bound" 误导)。要看完整 4 桶(包括 "no seat bound" error 行)用 `--all` 强制。
74
+ > **Team 桶静默规则**:caller 没绑 seat 时,team 桶在默认探测里**不出现**(避免 admin 没买企业版还看到 "no seat bound" 误导)。共享包是管理员专属视图:默认探测、`--all` 和显式 `--product agent-plan-team-shared-pool` 都走本地 IAM 管理员闸门;非管理员返回 `access_denied`,不依赖后端只读权限。
65
75
 
66
76
  ## 返回值
67
77