@actionway/cli 0.18.4 → 0.18.5
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/README.md +2 -0
- package/assets/skill/actionway/SKILL.md +3 -2
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,7 @@ actionway init
|
|
|
33
33
|
- **命令面 = 明码写出的注册表**(无 profile flag、无运行期分叉):
|
|
34
34
|
- `tools search / inspect / call` 是长尾 capability 的规范发现与执行面;
|
|
35
35
|
- 高频 typed command 继续提供参数与文件 UX,但投影到同一个 Tool Call;
|
|
36
|
+
- `account invitation` 获取或首次创建当前账户的永久邀请码、链接和服务端本地化分享文案;
|
|
36
37
|
- `account usage / wallet / transactions` 只读 Actionway Business 数据;
|
|
37
38
|
- 本壳另有 `init` / `doctor` / `update` / `login` / `logout` / `whoami`,cli-core
|
|
38
39
|
继续提供 wait/poll 与已冻结的共享 typed commands。
|
|
@@ -63,6 +64,7 @@ pnpm cli logout # 删除本机凭据;重复执行也是成功的幂
|
|
|
63
64
|
pnpm cli update --check # 查新版(24h 缓存)
|
|
64
65
|
pnpm cli -- tools search "generate a product image"
|
|
65
66
|
pnpm cli -- tools inspect media.image.generate
|
|
67
|
+
pnpm cli -- account invitation --locale zh-cn
|
|
66
68
|
pnpm cli -- account usage
|
|
67
69
|
pnpm cli -- account usage --from 2026-08-01 --to 2026-09-01 --service generate-image
|
|
68
70
|
pnpm cli -- account transactions --from 2026-08-01 --kind top_up
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: actionway
|
|
3
|
-
description: Use the local Actionway CLI to discover, inspect, price, and call Actionway capabilities; continue asynchronous jobs or confirmed calls;
|
|
3
|
+
description: Use the local Actionway CLI to discover, inspect, price, and call Actionway capabilities; continue asynchronous jobs or confirmed calls; get the signed-in user's Actionway invitation, account usage, wallet, and transactions; authenticate; or update the CLI. Trigger when a local Agent can complete a task through `actionway`, when a `job_ref` or `call_ref` must be continued, or when the user asks about Actionway tools or account data.
|
|
4
4
|
metadata:
|
|
5
5
|
version: "0.0.0-dev"
|
|
6
6
|
---
|
|
@@ -23,7 +23,8 @@ Use the installed `actionway` CLI and its server-backed Capability Registry as t
|
|
|
23
23
|
- If Search returns `clarification_required`, ask its bounded question. If it returns candidates, choose only a supported `tool_ref` and run `actionway tools inspect <tool_ref>` before the generic call. Inspect is the authority for the current input Schema, variants, effects, guidance, and Actionway USD price.
|
|
24
24
|
- `actionway search` is the Web Search business capability. Capability discovery is always `actionway tools search`.
|
|
25
25
|
- Use a high-frequency typed command only when `actionway --help` exposes an exact fit. Read `actionway <command> --help` and, when available, `--print-schema`; typed commands are parameter/file conveniences over the same Tool Call, confirmation, billing, and Job path.
|
|
26
|
-
-
|
|
26
|
+
- When the signed-in user asks to generate, show, copy, or share their invitation, run `actionway account invitation --locale <zh-cn|zh-tw|en|ja>` using the conversation language. Return the server-provided `code`, `url`, and `message`; do not invent reward amounts or rewrite promotion terms. The first request creates one permanent code and later requests return that same code.
|
|
27
|
+
- For other account questions, use only the requested read command: `actionway account usage`, `actionway account wallet`, or `actionway account transactions`.
|
|
27
28
|
|
|
28
29
|
## Inspect and call
|
|
29
30
|
|
package/dist/index.js
CHANGED
|
@@ -13015,6 +13015,10 @@ function failAccount(error) {
|
|
|
13015
13015
|
}
|
|
13016
13016
|
fail({ code: "E_BACKEND", message: error instanceof Error ? error.message : String(error) });
|
|
13017
13017
|
}
|
|
13018
|
+
function invitationEndpoint(locale = "en") {
|
|
13019
|
+
const parameters = new URLSearchParams({ locale });
|
|
13020
|
+
return `v1/account/invitation?${parameters.toString()}`;
|
|
13021
|
+
}
|
|
13018
13022
|
function accountEndpoint(path, options) {
|
|
13019
13023
|
const parameters = new URLSearchParams();
|
|
13020
13024
|
for (const [name, value] of [
|
|
@@ -13040,7 +13044,8 @@ async function read(endpoint, getTransport3) {
|
|
|
13040
13044
|
}
|
|
13041
13045
|
}
|
|
13042
13046
|
function registerAccountCommands(program2, getTransport3) {
|
|
13043
|
-
const account = program2.command("account").description("
|
|
13047
|
+
const account = program2.command("account").description("Access your Actionway invitation, USD wallet, service usage, and wallet transactions.");
|
|
13048
|
+
account.command("invitation").description("Get or create your permanent invitation code, link, and localized share message.").option("--locale <locale>", "Share-message locale: zh-cn, zh-tw, en, or ja.", "en").action((options) => read(invitationEndpoint(options.locale), getTransport3));
|
|
13044
13049
|
account.command("usage").description("Query held, charged, released, and free capability calls.").option("--limit <count>", "Maximum records in this page (1-100).").option("--cursor <cursor>", "Opaque nextCursor returned by the previous page.").option("--from <date>", "Inclusive ISO date or timestamp (UTC for date-only values).").option("--to <date>", "Exclusive ISO date or timestamp (UTC for date-only values).").option("--status <status>", "held, settled, or expired.").option("--service <service-id>", "Exact public serviceId.").option("--pricing-kind <kind>", "priced or free.").action((options) => read(accountEndpoint("usage", options), getTransport3));
|
|
13045
13050
|
account.command("wallet").description("Show the current available and held Actionway USD wallet balance.").action(() => read("v1/account/wallet", getTransport3));
|
|
13046
13051
|
account.command("transactions").description("Query wallet top-ups, charges, promotions, refunds, and other fund movements.").option("--limit <count>", "Maximum records in this page (1-50).").option("--cursor <cursor>", "Opaque nextCursor returned by the previous page.").option("--from <date>", "Inclusive ISO date or timestamp (UTC for date-only values).").option("--to <date>", "Exclusive ISO date or timestamp (UTC for date-only values).").option("--status <status>", "pending, succeeded, or failed.").option("--kind <kind>", "top_up, charge, refund, dispute, or promotion kind.").action((options) => read(accountEndpoint("transactions", options), getTransport3));
|
package/package.json
CHANGED