@actionway/cli-dev 0.0.0-dev.32125409769.2fb55653fddd → 0.0.0-dev.32213228151.61e6f8a3f10c
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 +4 -4
package/README.md
CHANGED
|
@@ -46,6 +46,7 @@ actionway-dev status
|
|
|
46
46
|
- **命令面 = 明码写出的注册表**(无 capability profile flag;production/development 只切换包、命令、状态、Skill、更新源与 Gateway):
|
|
47
47
|
- `tools search / inspect / call` 是长尾 capability 的规范发现与执行面;
|
|
48
48
|
- 高频 typed command 继续提供参数与文件 UX,但投影到同一个 Tool Call;
|
|
49
|
+
- `account invitation` 获取或首次创建当前账户的永久邀请码、链接和服务端本地化分享文案;
|
|
49
50
|
- `account usage / wallet / transactions` 只读 Actionway Business 数据;
|
|
50
51
|
- 本壳另有 `init` / `doctor` / `update` / `login` / `logout` / `whoami`,cli-core
|
|
51
52
|
继续提供 wait/poll 与已冻结的共享 typed commands。
|
|
@@ -76,6 +77,7 @@ pnpm cli logout # 删除本机凭据;重复执行也是成功的幂
|
|
|
76
77
|
pnpm cli update --check # 查新版(24h 缓存)
|
|
77
78
|
pnpm cli -- tools search "generate a product image"
|
|
78
79
|
pnpm cli -- tools inspect media.image.generate
|
|
80
|
+
pnpm cli -- account invitation --locale zh-cn
|
|
79
81
|
pnpm cli -- account usage
|
|
80
82
|
pnpm cli -- account usage --from 2026-08-01 --to 2026-09-01 --service generate-image
|
|
81
83
|
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
|
@@ -13071,6 +13071,10 @@ function failAccount(error) {
|
|
|
13071
13071
|
}
|
|
13072
13072
|
fail({ code: "E_BACKEND", message: error instanceof Error ? error.message : String(error) });
|
|
13073
13073
|
}
|
|
13074
|
+
function invitationEndpoint(locale = "en") {
|
|
13075
|
+
const parameters = new URLSearchParams({ locale });
|
|
13076
|
+
return `v1/account/invitation?${parameters.toString()}`;
|
|
13077
|
+
}
|
|
13074
13078
|
function accountEndpoint(path, options) {
|
|
13075
13079
|
const parameters = new URLSearchParams();
|
|
13076
13080
|
for (const [name, value] of [
|
|
@@ -13096,7 +13100,8 @@ async function read(endpoint, getTransport3) {
|
|
|
13096
13100
|
}
|
|
13097
13101
|
}
|
|
13098
13102
|
function registerAccountCommands(program2, getTransport3) {
|
|
13099
|
-
const account = program2.command("account").description("
|
|
13103
|
+
const account = program2.command("account").description("Access your Actionway invitation, USD wallet, service usage, and wallet transactions.");
|
|
13104
|
+
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));
|
|
13100
13105
|
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));
|
|
13101
13106
|
account.command("wallet").description("Show the current available and held Actionway USD wallet balance.").action(() => read("v1/account/wallet", getTransport3));
|
|
13102
13107
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actionway/cli-dev",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.32213228151.61e6f8a3f10c",
|
|
4
4
|
"description": "Actionway development CLI for dev.actionway.ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"actionway": {
|
|
38
38
|
"channel": "development",
|
|
39
|
-
"source_sha": "
|
|
40
|
-
"run_id":
|
|
41
|
-
"run_url": "https://github.com/PawLogic/actionway/actions/runs/
|
|
39
|
+
"source_sha": "61e6f8a3f10ca569c6e376806153aac06b5b9429",
|
|
40
|
+
"run_id": 32213228151,
|
|
41
|
+
"run_url": "https://github.com/PawLogic/actionway/actions/runs/32213228151",
|
|
42
42
|
"gateway_url": "https://dev.actionway.ai"
|
|
43
43
|
}
|
|
44
44
|
}
|