@actionway/cli 0.4.0-staging.17d7a5a
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/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@actionway/cli",
|
|
3
|
+
"version": "0.4.0-staging.17d7a5a",
|
|
4
|
+
"description": "Actionway CLI for local coding agents.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"homepage": "https://actionway.ai/onboarding",
|
|
7
|
+
"bin": {
|
|
8
|
+
"actionway": "actionway.mjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"actionway.mjs",
|
|
12
|
+
"skills/"
|
|
13
|
+
],
|
|
14
|
+
"pi": {
|
|
15
|
+
"skills": [
|
|
16
|
+
"./skills"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20.0.0"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"registry": "https://registry.npmjs.org",
|
|
24
|
+
"access": "public"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: actionway
|
|
3
|
+
description: Use the local Actionway CLI for supported image, video, audio, transcription, search, analysis, and media-processing work. Trigger when a task may be completed with an installed `actionway` command, when an Actionway asynchronous `job_ref` must be checked, or when the user asks to use Actionway capabilities from a local Agent.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Actionway
|
|
7
|
+
|
|
8
|
+
Use the installed `actionway` CLI as the capability source of truth. Do not memorize or reproduce its complete command list, schemas, prices, or provider parameters in this Skill.
|
|
9
|
+
|
|
10
|
+
## Discover and prepare
|
|
11
|
+
|
|
12
|
+
1. Run `actionway whoami`. If it reports that no Actionway login exists, stop and ask the user to run `actionway login`.
|
|
13
|
+
2. Run `actionway --help` to find an appropriate capability.
|
|
14
|
+
3. Before the first use of a command, run `actionway <command> --help` and, when offered, `actionway <command> --print-schema`.
|
|
15
|
+
4. Validate required local files and ask for user approval before an operation that incurs a charge.
|
|
16
|
+
|
|
17
|
+
## Execute
|
|
18
|
+
|
|
19
|
+
- Run one `actionway` command at a time.
|
|
20
|
+
- Parse stdout as structured JSON. Treat a non-zero exit or `{ "ok": false }` as failure and preserve its `code`, `error`, and `hint` when reporting it.
|
|
21
|
+
- Never print, copy, or expose Actionway credentials.
|
|
22
|
+
- Use only commands present in this Actionway package. Do not call product-internal binaries or invent unsupported flags.
|
|
23
|
+
|
|
24
|
+
## Handle asynchronous jobs
|
|
25
|
+
|
|
26
|
+
1. Preserve the full UUID `job_ref` returned by submit.
|
|
27
|
+
2. If the result is pending, end the current tool call.
|
|
28
|
+
3. In a later Agent turn, run exactly one `actionway poll --job-ref=<uuid>` call.
|
|
29
|
+
4. If it remains pending, repeat step 2. Do not create a background process or a shell `sleep`, `for`, or `while` polling loop.
|
|
30
|
+
5. Consume the terminal payload returned by `actionway poll` as the result. Do not wait for a server callback or for a prior Agent session to be resumed.
|
|
31
|
+
|
|
32
|
+
Do not resubmit the original generation command merely because a job is still pending. Keep using its original `job_ref`.
|