@byteplus/ark-cli-linux-x64 1.0.62 → 1.0.66

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.
Files changed (35) hide show
  1. package/bin/arkcli-linux-amd64 +2 -2
  2. package/manifest.json +23 -23
  3. package/package.json +1 -1
  4. package/skills/arkcli-auth/SKILL.md +3 -0
  5. package/skills/arkcli-auth/references/arkcli-auth-login.md +2 -0
  6. package/skills/arkcli-auth/references/auth-modes.md +2 -0
  7. package/skills/arkcli-billing/SKILL.md +1 -1
  8. package/skills/arkcli-gen/SKILL.md +1 -0
  9. package/skills/arkcli-helper/SKILL.md +9 -7
  10. package/skills/arkcli-helper/references/arkcli-helper.md +11 -16
  11. package/skills/arkcli-helper/references/evals.md +10 -0
  12. package/skills/arkcli-infer-endpoint/SKILL.md +12 -2
  13. package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-update.md +96 -17
  14. package/skills/arkcli-infer-endpoint/references/evals.md +32 -0
  15. package/skills/arkcli-plans/SKILL.md +44 -110
  16. package/skills/arkcli-plans/references/arkcli-plans-buy.md +28 -21
  17. package/skills/arkcli-plans/references/arkcli-plans-get.md +5 -3
  18. package/skills/arkcli-plans/references/arkcli-plans-model-apply.md +3 -3
  19. package/skills/arkcli-plans/references/arkcli-plans-model-list.md +6 -4
  20. package/skills/arkcli-plans/references/arkcli-plans-renew.md +25 -20
  21. package/skills/arkcli-plans/references/arkcli-plans-team-rotate-apikey.md +17 -46
  22. package/skills/arkcli-plans/references/arkcli-plans-team-seat-assign.md +2 -2
  23. package/skills/arkcli-plans/references/arkcli-plans-team-seat-list.md +2 -2
  24. package/skills/arkcli-plans/references/evals.md +27 -5
  25. package/skills/arkcli-pricing/SKILL.md +39 -93
  26. package/skills/arkcli-pricing/references/arkcli-pricing-plans.md +32 -123
  27. package/skills/arkcli-profile/SKILL.md +13 -9
  28. package/skills/arkcli-profile/references/arkcli-profile-create.md +6 -1
  29. package/skills/arkcli-profile/references/arkcli-profile-keys.md +4 -0
  30. package/skills/arkcli-profile/references/evals.md +9 -0
  31. package/skills/arkcli-shared/references/profile-defaults.md +4 -0
  32. package/skills/arkcli-usage/SKILL.md +34 -100
  33. package/skills/arkcli-usage/references/arkcli-usage-balance.md +1 -1
  34. package/skills/arkcli-usage/references/arkcli-usage-plan.md +4 -0
  35. package/skills/arkcli-usage/references/arkcli-usage-seats.md +2 -2
@@ -1,5 +1,7 @@
1
1
  # `arkcli profile create`
2
2
 
3
+ > **Agent Plan Team shared package:** use `profile create --type agent-plan-team-shared-pool --project <project> --default-api-key <pool-key>` or the interactive `arkcli helper` picker. Use a concrete Project and the administrator-distributed Pool Key; never replace it with ordinary or seat Key pools. Helper can read an administrator's console-visible Pool Key; missing or ambiguous keys fall back to the masked manual prompt. Regular personal/team Agent Plan creation remains supported.
4
+
3
5
  Read [`../SKILL.md`](../SKILL.md) first.
4
6
 
5
7
  Profile creation writes local BytePlus configuration and may query the control
@@ -11,8 +13,11 @@ does not replace BytePlus SSO.
11
13
  | Type | Requirements |
12
14
  |---|---|
13
15
  | `platform` | A BytePlus identity; an API key is optional at creation time. |
16
+ | `agent-plan` | Active personal Agent Plan; dedicated API Key, not an ordinary pool Key. |
17
+ | `agent-plan-team` | Assigned Running Agent Plan Team seat; use its seat-specific Key. |
14
18
  | `coding-plan` | An active personal Coding Plan subscription, detected automatically unless `--plan-tier` is supplied. |
15
19
  | `coding-plan-team` | An active Coding Plan Team seat. |
20
+ | `agent-plan-team-shared-pool` | A concrete Project and administrator-distributed Pool API Key; no seat tier. |
16
21
 
17
22
  No other profile type is supported by the BytePlus build.
18
23
 
@@ -60,7 +65,7 @@ The Region is fixed to `ap-southeast-1`; it normally does not need to be passed.
60
65
  | `--name` | No | Internal profile name; otherwise Ark CLI derives one. |
61
66
  | `--default-api-key` | No | API key to bind as the profile default. |
62
67
  | `--owner-trn` | No | Optional owner TRN; normally left empty for identity self-healing. |
63
- | `--plan-tier` | No | Personal Coding Plan override: `lite` or `pro`. |
68
+ | `--plan-tier` | No | Personal subscription override only: Agent Plan `small/medium/large/max`, Coding Plan `lite/pro`. |
64
69
  | `--set-default` | No | Make the new profile the local default. |
65
70
  | `--no-interactive` | No | Disable prompts and fail on missing required input. |
66
71
 
@@ -77,6 +77,8 @@ and masked `new_default`.
77
77
 
78
78
  ## Refresh keys
79
79
 
80
+ Key lookup uses the target profile's raw project scope, never its display label. Team account-wide scope resolves to the `default` project; concrete project scope is preserved. Missing/non-Running seats and empty seat Keys fail without using the ordinary Key pool. Shared-package Keys remain manual and cannot be refreshed from a pool.
81
+
80
82
  ```bash
81
83
  arkcli profile apikey refresh
82
84
  arkcli profile apikey refresh --profile <profile-name>
@@ -89,6 +91,8 @@ by its type:
89
91
  |---|---|
90
92
  | `platform` | Platform API key inventory |
91
93
  | `coding-plan` | Platform API key inventory used by personal Coding Plan |
94
+ | `agent-plan` | Dedicated active API Keys with scene `RealAgentPlanPersonal`; never ordinary keys |
95
+ | `agent-plan-team` | `GetSeatInfo.Result.ApiKey` from the assigned Running Agent Plan Team seat (`Scene=agent_plan_enterprise`) |
92
96
  | `coding-plan-team` | `GetSeatInfo.Result.ApiKey` from the assigned Running Coding Plan Team seat |
93
97
 
94
98
  It does not rotate, create, or revoke a backend key.
@@ -1,5 +1,14 @@
1
1
  # BytePlus profile evaluation cases
2
2
 
3
+ ## Agent Plan personal/team profiles
4
+
5
+ - Create `agent-plan`: detect the personal subscription and dedicated Key; do not pull ordinary keys.
6
+ - Create `agent-plan-team`: detect a Running seat and use its Key.
7
+ - Project switch: refresh all four Plan types, preserving BytePlus identity/region.
8
+ - Missing personal dedicated Key: explain type-specific recovery; ordinary `auth apikey` is not a repair.
9
+ - Shared-package type: `profile create` does not create it; hand off to interactive Helper masked-Key flow. Existing shared-package profiles remain selectable, isolated by project and Key, without ordinary/seat reconciliation.
10
+
11
+
3
12
  These cases validate routing, product boundaries, and write guards for
4
13
  `arkcli-profile`.
5
14
 
@@ -12,6 +12,10 @@ Profiles may store a default resource per modality:
12
12
  The default may be a model ID or an Endpoint ID depending on the active
13
13
  profile and the capability contract. Never infer one form from the other.
14
14
 
15
+ `agent-plan-team-shared-pool` profiles use the administrator-distributed
16
+ shared-package API key and the shared-package `/api/plan/v3` data plane. They do
17
+ not inherit ordinary or coding-plan seat keys.
18
+
15
19
  ## Selection rules
16
20
 
17
21
  1. If the user passes `--model` or `--endpoint`, use the explicit value after
@@ -1,123 +1,57 @@
1
1
  ---
2
2
  name: arkcli-usage
3
3
  version: 1.3.3
4
- description: "ARK usage queries: `usage stats` (tokens/requests, 5–30 minute delay), `usage plan` / `usage balance --type plan` (plan quota snapshots), `usage balance` (free quota/media asset/plan balances), and `usage seats --with-usage` (team usage by seat). Trigger for usage, consumed amount, remaining quota, plan percentage, in-plan/out-of-plan, or per-seat consumption. Seat listing/binding/assignment is management and routes to arkcli-plans; this skill answers usage only. Verb routing: use/consume/how much → here; list/bind/assign → arkcli-plans. Anti-trigger: TTS/ASR/voice model usage is unsupported."
4
+ description: "Query BytePlus inference Token/request usage, Agent Plan or Coding Plan personal/team quotas, Agent Plan model usage details, free quota, media capacity, and per-seat usage. Use for consumption, AFP, remaining quotas, reset dates and trends. Seat assignment belongs to arkcli-plans, prices to arkcli-pricing and settled bills to arkcli-billing. Shared-package monthly AFP and model details require administrator permission and a concrete project; dedicated TTS/ASR usage queries are unsupported."
5
5
  metadata:
6
6
  requires:
7
7
  bins: ["arkcli"]
8
- cliHelp: "arkcli usage stats --help"
8
+ cliHelp: "arkcli usage --help"
9
9
  ---
10
10
 
11
- # arkcli usage
11
+ # BytePlus usage
12
12
 
13
- **CRITICAL — Before starting, you MUST use Read to open [`../arkcli-shared/SKILL.md`](../arkcli-shared/SKILL.md), which contains authentication gates, configuration troubleshooting, and shared safety rules.**
14
- **CRITICAL — Before executing `usage stats`, use Read to open [`references/arkcli-usage-stats.md`](references/arkcli-usage-stats.md); do not invoke blindly.**
15
- **CRITICAL — Before executing `usage plan`, use Read to open [`references/arkcli-usage-plan.md`](references/arkcli-usage-plan.md); do not invoke blindly.**
16
- **CRITICAL — Before executing `usage balance`, use Read to open [`references/arkcli-usage-balance.md`](references/arkcli-usage-balance.md); do not invoke blindly.**
17
- **CRITICAL — Before executing `usage seats`, use Read to open [`references/arkcli-usage-seats.md`](references/arkcli-usage-seats.md); do not invoke blindly.**
13
+ Read [`../arkcli-shared/SKILL.md`](../arkcli-shared/SKILL.md) first and the applicable reference before querying.
18
14
 
19
- > **Data freshness (Must read first): `usage stats` uses an upstream BFF aggregation pipeline and has a 5–30 minute delay. It is intended for daily/aggregate analysis.** Do not use it for real-time budget monitoring, rate limiting, or alerts requiring second-level precision. For those scenarios, read per-request `.usage` returned by inference commands such as `+chat` / `+gen` (zero delay; see [arkcli-chat](../arkcli-chat/SKILL.md) and [arkcli-gen](../arkcli-gen/SKILL.md)).
15
+ ## Choose the metric and scope
20
16
 
21
- > **Agent Plan boundary**: BytePlus does not offer Agent Plan (`agent-plan` / `agent-plan-team`). When a user asks about **Agent Plan** quota, remaining, reset date, or per-seat usage, respond with "Agent Plan is not offered on BytePlus" and stop — do not silently answer with Coding Plan numbers and do not attempt any Agent Plan flag combination as a probe.
17
+ | Question | Command | Contract |
18
+ |---|---|---|
19
+ | Platform Tokens/requests | `usage stats --start <YYYY-MM-DD> --mine` | 5-30 minute aggregation delay, not real-time budget monitoring |
20
+ | Current Plan quota / AFP / reset | `usage plan --product <plan>` | Agent Plan or Coding Plan, personal/team |
21
+ | Shared-package AFP | `usage plan --product agent-plan-team-shared-pool` | Monthly only; administrator and concrete project required |
22
+ | Plan model consumption by time | `usage plan-details --product agent-plan|agent-plan-team --start <YYYY-MM-DD>` | Day/Hour, range at most 31 days, history at most six months |
23
+ | Free inference quota | `usage balance --type free-quota` | Not subscription AFP |
24
+ | Media capacity | `usage balance --type media-asset` | Not Plan quota |
25
+ | Concise Plan balance | `usage balance --type plan --product <plan>` | Same source as `usage plan` |
26
+ | Admin per-seat consumption | `usage seats --product agent-plan-team|coding-plan-team --with-usage` | Requires admin permission; not seat assignment |
22
27
 
23
- > **Voice model boundary**: TTS / ASR / dubbing / reading / podcast / voice / real-time voice interaction are currently unsupported in arkcli. Do not answer their usage with `usage stats --model` or plan/balance commands; state directly that arkcli does not support querying voice model pricing or usage.
28
+ Regular Plan products are `agent-plan`, `agent-plan-team`, `coding-plan`, and `coding-plan-team`; shared-package queries use `agent-plan-team-shared-pool`. Without `--product`, discovery includes authorized shared-package data only in a concrete project. `--all` does not bypass visibility and cannot be combined with `--product`.
24
29
 
25
- > **Difference among stats / plan / balance:**
26
- > - `stats`: token-billed inference usage (any identity, 5–30 minute delay).
27
- > - `plan`: subscription quota snapshot (CodingPlan personal + team: percentage used / reset date).
28
- > - `balance`: "how much X remains" from a balance perspective (`--type free-quota / media-asset / plan`).
29
- > - `seats`: admin view of team-seat **usage** (per-seat usage / plan percentage; **usage only**). Seat listing/binding/assignment uses [`arkcli-plans`](../arkcli-plans/SKILL.md): `plans team seat-list / seat-assign`.
30
- >
31
- > "How much plan quota remains?" → `plan` or concise `balance --type plan`; "How many tokens did I use today?" → `stats`; "How much free quota/media capacity remains?" → `balance`; "**How much did each seat use / team-seat usage distribution?**" → `seats --with-usage`. Pure management ("who is bound / list seats / assign seats") → `arkcli-plans`.
30
+ Agent Plan returns AFP windows with used/total/percent/reset; Coding Plan returns percentages and does not support `plan-details`. Do not sum AFP, percentage and Tokens or substitute platform stats for missing Plan details.
32
31
 
33
- ## Step 0: choose the metric, then verify the identity
32
+ For team `usage plan`, omitted `--seat` resolves the current identity's seat; admins can specify one SeatID. For `plan-details`, repeat `--seat` for explicit team IDs or use `--all-seats` for the admin view. Keep the exact scope the user requested.
34
33
 
35
- - Explicit Coding Plan quota questions use `usage plan --product coding-plan|coding-plan-team`. Subscription ownership belongs to the account/user, not the active profile type; a platform profile does not prove there is no subscription.
36
- - Platform Token/request usage uses `usage stats --start <YYYY-MM-DD>`; personal scope must retain `--mine`, including when adding grouping. Only query both buckets when the user asks for both; label them separately and do not sum quota percentages and Tokens.
37
- - Coding Plan has quota snapshots, not per-model/Harness or Endpoint/API Key attribution. State this boundary; do not append platform stats as a substitute. Agent Plan is not offered on BytePlus.
38
- - If "my usage" is ambiguous, clarify the metric from the current context before querying. Do not switch Profile, Key, Project or account scope to fill gaps. Reuse known identity context; when a missing summary is needed, use `arkcli auth whoami --format json`. Ordinary admission does not run `profile show/list/keys list`, which can synchronize and write back keys.
39
- - Stats require explicit `--start`; derive dates from the request and disclose a today-only default. Split long ranges according to the reference instead of silently shortening them.
40
- - Distinguish failed queries, successful empty records and nonempty zero totals. Check time range, aggregation delay, metric, identity and filters before concluding no usage. Recent missing records do not prove no call occurred.
41
- - Report metric, identity/scope, dates and freshness. Platform attribution uses actual `ModelEndpoint` / masked `AuthToken` evidence; do not retrieve plaintext keys merely to identify usage.
34
+ ## Identity and results
42
35
 
43
- ## Applicable scenarios
36
+ Reuse established identity context. If a missing summary is needed, use `arkcli auth whoami --format json`. Do not run `profile show/list/keys list` for ordinary admission; they can synchronize keys and write back local key inventory/default state. Never switch account, product, project or Key to fill a missing result.
44
37
 
45
- - View inference usage for today or a date range (**accepting 5–30 minute delay**).
46
- - View subscription plan quota consumption / reset time.
47
- - Group stats by model, endpoint, or API Key.
48
- - Analyze token trends and produce reconciliation reports.
49
- - **Not for voice model usage**: for TTS / ASR / voice-model usage, remaining quota, or calls, do not run this skill; state that it is unsupported.
38
+ For personal Platform usage, retain `--mine` even with grouping. If endpoint-based `--mine` returns `data_count=0`, retry with `--mine --mine-by=apikey`, never an account-wide query. Require explicit `--start`, disclose inferred dates, and split long ranges instead of silently shortening them.
50
39
 
51
- ## Business positioning
40
+ Distinguish errors, empty records, unsubscribed rows and nonempty zero totals. Per-bucket `error` does not invalidate successful sibling rows. Report metric, identity/scope, date range and freshness. Per-request inference `.usage` is the source for immediate request-level accounting.
52
41
 
53
- - This skill handles existing invocation results and consumption; it is an **offline / near-real-time** analysis entry.
54
- - It normally follows:
55
- - An existing Endpoint whose usage is queried.
56
- - A model already being called, analyzed by model / API Key.
57
- - A subscribed plan whose remaining quota is queried.
58
- - It is not an Endpoint creation entry or a model trial entry.
59
- - **It is not a data source for real-time budget/rate-limit/alert controls**; use per-request `.usage`.
42
+ ## Boundaries
60
43
 
61
- ## Quick decisions
62
-
63
- - "How much plan quota remains / percentage used / reset date / how many plans":
64
- - `arkcli usage plan` (probes all two SKUs; only subscribed buckets issue usage requests).
65
- - `arkcli usage plan --all`: query both buckets without subscription probing (diagnostics/Excel).
66
- - `arkcli usage plan --product=X`: skip probing and query one.
67
- - **This is the same data as `balance --type plan`**. `usage plan` provides the complete output (`subscribed` / `updated_at`), while `balance --type plan` provides a concise projection without metadata. Prefer `usage plan`; use `balance --type plan` only when reconciling plan balances together with free quota or media-asset capacity.
68
- - "My usage / tokens today / endpoint consumption":
69
- - First choose the requested metric using Step 0. An explicit platform/Endpoint request does not need a plan query first.
70
- - If the user names a voice model/TTS/ASR → **do not query usage**. Currently arkcli doesn't support querying the usage of audio models.
71
- - **BytePlus:** first run `arkcli usage stats --start <YYYY-MM-DD> --mine` (endpoint dimension).
72
- - `data_count > 0` → use `totals`.
73
- - `data_count=0` (the user has no Endpoint or has not invoked models through an Endpoint recently) → immediately retry `arkcli usage stats --start <YYYY-MM-DD> --mine --mine-by=apikey`.
74
- - **⛔ Never degrade to an account-wide query without `--mine`**. Whole-account data is not "my usage".
75
- - "How much did each APIKey use?": `arkcli usage stats --start <YYYY-MM-DD> --mine --mine-by=apikey`; split by `records[].AuthToken`.
76
- - "Remaining free tokens/model free quota/media capacity":
77
- - `arkcli usage balance --type free-quota`.
78
- - `arkcli usage balance --type media-asset`.
79
- - "How much team seats used / per-seat consumption / plan percentage by seat" (admin usage view):
80
- - `arkcli usage seats --product coding-plan-team --with-usage`.
81
- - Without `--with-usage`, only metadata is returned.
82
- - Routing: this command answers only usage. "**List seats / inspect seat bindings / assign seats to employees**" routes to [`arkcli-plans`](../arkcli-plans/SKILL.md) and its `plans team seat-list / seat-assign` commands. Verbs "used/consumed/how much" stay here; "bind/list/assign" goes to plans.
83
- - If data looks wrong, check authentication/profile before questioning the data.
84
-
85
- ## Agent quick execution order
86
-
87
- 1. Confirm authentication; if uncertain, run `arkcli auth status`.
88
- 2. Start with the smallest query, then add date ranges and grouping.
89
- 3. For abnormal results, first check profile / region / API Key source.
90
- 4. For endpoint usage, preferably confirm endpoint-id first.
91
-
92
- ## Common fallbacks
93
-
94
- - Authentication error: [`../arkcli-auth/SKILL.md`](../arkcli-auth/SKILL.md).
95
- - Wrong query environment: [`../arkcli-config/SKILL.md`](../arkcli-config/SKILL.md).
96
- - No Endpoint and preparing integration: [`../arkcli-deploy/SKILL.md`](../arkcli-deploy/SKILL.md).
97
- - Plan **price**, not usage: [`../arkcli-pricing/SKILL.md`](../arkcli-pricing/SKILL.md). `pricing plans` returns catalog pricing, while `usage plan` returns quota snapshots; they are different views.
98
- - **Settlement amount/bill/money spent**, not tokens: [`../arkcli-billing/SKILL.md`](../arkcli-billing/SKILL.md). Its data source is the BytePlus billing center and is posted at T+1; `usage stats` uses near-real-time BFF inference aggregation.
99
- - Agent Plan quota, remaining balance, or per-seat usage: clearly state that Agent Plan is not supported, take no action, and do not use any Coding Plan commands as a substitute.
100
- - Voice/TTS/ASR usage or quota: state that arkcli does not support it; do not route to pricing/billing.
101
-
102
- ## Command overview
103
-
104
- | Command | Description |
105
- |------|------|
106
- | [`usage stats`](references/arkcli-usage-stats.md) | Inference usage (tokens/requests, daily/hourly aggregation; token-billed inference view) |
107
- | [`usage plan`](references/arkcli-usage-plan.md) | Subscription quota snapshots (CodingPlan; usage, remaining quota, and reset time for 5h / weekly / monthly / session windows). Probes both SKUs by default |
108
- | [`usage balance`](references/arkcli-usage-balance.md) | Unified balance entry through `--type free-quota / media-asset / plan` (model free inference quota / media-asset capacity / plan balance) |
109
- | [`usage seats`](references/arkcli-usage-seats.md) | **Admin view** listing all enterprise plan seats (SeatID / bound sub-user / billing status). Sub-users normally receive `AccessDenied` |
110
-
111
- ## Natural-language triggers
112
-
113
- | User says | Command |
114
- |---|---|
115
- | "remaining quota / balance / how much remains / percentage used / plan quota" | `arkcli usage plan` or `arkcli usage balance --type plan` |
116
- | "remaining free quota / model free quota / free tokens" | `arkcli usage balance --type free-quota` |
117
- | "my usage / tokens today / inference usage / token consumption" | `arkcli usage stats --start <YYYY-MM-DD> --mine` |
44
+ - Shared-package quota uses `usage plan --product agent-plan-team-shared-pool` or `usage balance --type plan --product agent-plan-team-shared-pool`. It resolves only the current project's shared-package configuration and presents monthly AFP. Non-admin automatic discovery omits the row; explicit unauthorized requests fail. Do not pass normal SeatIDs or substitute regular seat figures.
45
+ - Shared-package model details use `usage plan-details --product agent-plan-team-shared-pool --start <date>` without SeatIDs. The current project and administrator visibility determine the target; not `--all-seats`.
46
+ - Dedicated TTS/ASR usage is unsupported; do not use an unrelated model or platform bucket as a proxy.
47
+ - Prices: [`arkcli-pricing`](../arkcli-pricing/SKILL.md).
48
+ - Settled money/bills: [`arkcli-billing`](../arkcli-billing/SKILL.md), not AFP quota.
49
+ - Seat listing/assignment/bindings: [`arkcli-plans`](../arkcli-plans/SKILL.md).
50
+ - Usage queries do not register `--dry-run`; execute the read-only command with the agreed filters.
118
51
 
119
52
  ## References
120
53
 
121
- - [arkcli-deploy](../arkcli-deploy/SKILL.md) -- Create Endpoint first, then inspect endpoint usage
122
- - [arkcli-pricing](../arkcli-pricing/SKILL.md) -- Catalog pricing from `pricing plans` complements `usage plan` quota snapshots
123
- - [arkcli-shared](../arkcli-shared/SKILL.md) -- Authentication and global parameters
54
+ - [Platform stats](references/arkcli-usage-stats.md)
55
+ - [Plan quotas and details](references/arkcli-usage-plan.md)
56
+ - [Balances](references/arkcli-usage-balance.md)
57
+ - [Per-seat usage](references/arkcli-usage-seats.md)
@@ -155,7 +155,7 @@ arkcli usage balance --type plan --all
155
155
  **Key definitions**:
156
156
 
157
157
  - **Top-level `viewer`**: identity summary for distinguishing the sub-user's own view, the root-account view, and another identity's view across SSO / AK/SK / API Key authentication. See the [`usage plan` viewer section](arkcli-usage-plan.md#viewer-fields-identity-summary).
158
- - **Probes both SKUs by default** (personal × 1 + team × 1), retrieving every plan balance under the account in one operation. Pass `--product=X` to query only one.
158
+ - **Probes all four Plan products by default** (Agent Plan/Coding Plan, personal and team), retrieving every plan balance under the account in one operation. Pass `--product=X` to query only one.
159
159
  - This output is **more concise than `usage plan`**: it removes the `subscribed` / `update_timestamp` metadata fields but retains `error` to distinguish "not subscribed", `AccessDenied`, and "no seat bound".
160
160
  - `error: "not subscribed"` is a balance-layer hint. The raw backend response is `Subscribed=false` with empty periods, which is not sufficiently clear for users.
161
161
  - **Team plans automatically resolve the caller's seat**: when `--seat` is omitted, the service calls `GetSeatInfo` to find the bound seat. If the plan is subscribed but no seat is assigned, it returns `error: "no seat bound to caller for ..."` to distinguish this case from "not subscribed".
@@ -1,5 +1,7 @@
1
1
  # usage plan
2
2
 
3
+ > **Agent Plan Team shared package:** use `--plan agent-plan-team --type agent-plan-team-shared-pool` (the legacy `--product agent-plan-team-shared-pool` remains accepted). The CLI resolves the project-wide `BizInfo=shared` shadow seat through `ListSeatInfos`, then calls `GetSeatAFPUsage`. Only the `monthly` period is presented. Shared packages are administrator-only: automatic discovery and `--all` omit the row for non-admins, and an explicit shared-package request returns `access_denied` instead of relying on backend read permissions.
4
+
3
5
  > **Prerequisite:** Read [`../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) first to understand authentication, global parameters, and safety rules.
4
6
 
5
7
  > **Difference from `stats` / `billing`:**
@@ -37,8 +39,10 @@ arkcli usage plan --product coding-plan-team --seat seat-001
37
39
  | Parameter | Required | Type | Description |
38
40
  |------|------|------|------|
39
41
  | `--product` | No | string | Explicit product ID: `coding-plan` / `coding-plan-team`; omitted means automatic subscription discovery |
42
+ | `--plan` | No | string | PRD-compatible alias of `--product`; mutually exclusive with `--product` |
40
43
  | `--all` | No | bool | Force both products, including unsubscribed buckets. **Mutually exclusive with `--product`** |
41
44
  | `--seat` | No | string | Team product only. Omitted: service calls `GetSeatInfo` to find caller seat; provided: skip RPC and use this SeatID (admin view) |
45
+ | `--seat-ids` | No | string | PRD-compatible alias of `--seat`; mutually exclusive with `--seat`. Accepts exactly one SeatID because `usage plan` queries one seat at a time |
42
46
  | `--render` | No | bool | Print only the human-readable quota card, never JSON. Uses color on a TTY and plain Unicode bars in pipes; cannot be combined with explicit `--format` or `--transform` |
43
47
 
44
48
  ## Default behavior (no `--product` / `--all`)
@@ -48,8 +48,8 @@ arkcli usage seats --product coding-plan-team --with-usage # Percent only (Codi
48
48
 
49
49
  | Parameter | Required | Type | Description |
50
50
  |---|---|---|---|
51
- | `--product` | Yes | string | Team plan ID: `coding-plan-team`. **Personal plans are unsupported** because they have no seat concept |
52
- | `--biz-info` | No | string | Tier filter: `lite/pro` (CodingPlan) |
51
+ | `--product` | Yes | string | Team plan ID: `agent-plan-team` or `coding-plan-team`. **Personal plans are unsupported** because they have no seat concept |
52
+ | `--biz-info` | No | string | Tier filter: `small/medium/large/max` (Agent Plan), `lite/pro` (Coding Plan) |
53
53
  | `--billing-status` | No | string slice | Billing status filter (repeatable): `Pending` / `Running` / `Expired` / `Reclaimed` |
54
54
  | `--seat-status` | No | string | Seat status: `Idle` / `Active`. `Idle` means unbound and available; `Active` means bound |
55
55
  | `--user-id` | No | string slice | Filter by sub-user ID (repeatable; more than one value triggers client-side parallel fan-out) |