@action-intelligence/cli 0.3.0 → 0.3.2

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 (75) hide show
  1. package/README.md +38 -5
  2. package/action.mjs +86 -85
  3. package/bin/darwin-arm64/action-api +0 -0
  4. package/bin/darwin-arm64/dependencies.json +15 -15
  5. package/bin/darwin-x64/action-api +0 -0
  6. package/bin/darwin-x64/dependencies.json +15 -15
  7. package/bin/linux-arm64/action-api +0 -0
  8. package/bin/linux-arm64/dependencies.json +60 -60
  9. package/bin/linux-x64/action-api +0 -0
  10. package/bin/linux-x64/dependencies.json +335 -335
  11. package/bin/windows-arm64/action-api.exe +0 -0
  12. package/bin/windows-arm64/dependencies.json +15 -15
  13. package/bin/windows-x64/action-api.exe +0 -0
  14. package/bin/windows-x64/dependencies.json +15 -15
  15. package/package.json +1 -1
  16. /package/bin/darwin-arm64/licenses/{mio-1.2.1 → mio-1.2.4}/LICENSE +0 -0
  17. /package/bin/darwin-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-APACHE +0 -0
  18. /package/bin/darwin-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-ISC +0 -0
  19. /package/bin/darwin-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-MIT +0 -0
  20. /package/bin/darwin-arm64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.16}/LICENSE +0 -0
  21. /package/bin/darwin-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
  22. /package/bin/darwin-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
  23. /package/bin/darwin-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-APACHE +0 -0
  24. /package/bin/darwin-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-BSD +0 -0
  25. /package/bin/darwin-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-MIT +0 -0
  26. /package/bin/darwin-x64/licenses/{mio-1.2.1 → mio-1.2.4}/LICENSE +0 -0
  27. /package/bin/darwin-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-APACHE +0 -0
  28. /package/bin/darwin-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-ISC +0 -0
  29. /package/bin/darwin-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-MIT +0 -0
  30. /package/bin/darwin-x64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.16}/LICENSE +0 -0
  31. /package/bin/darwin-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
  32. /package/bin/darwin-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
  33. /package/bin/darwin-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-APACHE +0 -0
  34. /package/bin/darwin-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-BSD +0 -0
  35. /package/bin/darwin-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-MIT +0 -0
  36. /package/bin/linux-arm64/licenses/{mio-1.2.1 → mio-1.2.4}/LICENSE +0 -0
  37. /package/bin/linux-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-APACHE +0 -0
  38. /package/bin/linux-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-ISC +0 -0
  39. /package/bin/linux-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-MIT +0 -0
  40. /package/bin/linux-arm64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.16}/LICENSE +0 -0
  41. /package/bin/linux-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
  42. /package/bin/linux-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
  43. /package/bin/linux-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-APACHE +0 -0
  44. /package/bin/linux-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-BSD +0 -0
  45. /package/bin/linux-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-MIT +0 -0
  46. /package/bin/linux-x64/licenses/{mio-1.2.1 → mio-1.2.4}/LICENSE +0 -0
  47. /package/bin/linux-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-APACHE +0 -0
  48. /package/bin/linux-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-ISC +0 -0
  49. /package/bin/linux-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-MIT +0 -0
  50. /package/bin/linux-x64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.16}/LICENSE +0 -0
  51. /package/bin/linux-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
  52. /package/bin/linux-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
  53. /package/bin/linux-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-APACHE +0 -0
  54. /package/bin/linux-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-BSD +0 -0
  55. /package/bin/linux-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-MIT +0 -0
  56. /package/bin/windows-arm64/licenses/{mio-1.2.1 → mio-1.2.4}/LICENSE +0 -0
  57. /package/bin/windows-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-APACHE +0 -0
  58. /package/bin/windows-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-ISC +0 -0
  59. /package/bin/windows-arm64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-MIT +0 -0
  60. /package/bin/windows-arm64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.16}/LICENSE +0 -0
  61. /package/bin/windows-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
  62. /package/bin/windows-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
  63. /package/bin/windows-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-APACHE +0 -0
  64. /package/bin/windows-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-BSD +0 -0
  65. /package/bin/windows-arm64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-MIT +0 -0
  66. /package/bin/windows-x64/licenses/{mio-1.2.1 → mio-1.2.4}/LICENSE +0 -0
  67. /package/bin/windows-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-APACHE +0 -0
  68. /package/bin/windows-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-ISC +0 -0
  69. /package/bin/windows-x64/licenses/{rustls-0.23.41 → rustls-0.23.46}/LICENSE-MIT +0 -0
  70. /package/bin/windows-x64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.16}/LICENSE +0 -0
  71. /package/bin/windows-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
  72. /package/bin/windows-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
  73. /package/bin/windows-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-APACHE +0 -0
  74. /package/bin/windows-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-BSD +0 -0
  75. /package/bin/windows-x64/licenses/{zerocopy-0.8.52 → zerocopy-0.8.63}/LICENSE-MIT +0 -0
package/README.md CHANGED
@@ -10,6 +10,7 @@ Node.js 20 or newer is required for the npm installation:
10
10
  ```sh
11
11
  npm install --global @action-intelligence/cli
12
12
  action auth login
13
+ action whoami
13
14
  action context list
14
15
  action context use <space-id-or-key>
15
16
  ```
@@ -24,6 +25,12 @@ action auth status
24
25
  action auth logout
25
26
  ```
26
27
 
28
+ `action whoami` verifies the active credential with the API and shows its display name, ID, type,
29
+ and organization alongside the profile, API URL, and selected space. It works before selecting
30
+ a space and supports human sessions and machine credentials. Use `action whoami --format json` for
31
+ structured output. Add `--verbose` to include credential and organization scopes in either text or
32
+ JSON output. The selected space is the configured ID or key, not a check of space access.
33
+
27
34
  Human credentials stay in macOS Keychain, Linux Secret Service, or Windows Credential Manager.
28
35
  Linux requires a working Secret Service and `secret-tool`. Profile files contain non-secret settings
29
36
  only. Credentials are bound to the API origin used during login.
@@ -33,7 +40,7 @@ For enabled machine access, supply `ACTION_TOKEN` or `ACTION_API_KEY` through a
33
40
 
34
41
  ## Conversations and cases
35
42
 
36
- Copilot is available directly; the agent does not need to discover an automation or version:
43
+ Copilot is available directly; the caller does not need to discover an agent or version:
37
44
 
38
45
  ```sh
39
46
  action copilot "Summarize my open cases"
@@ -64,7 +71,7 @@ action cases list --help
64
71
  action cases list --schema
65
72
  action cases list --limit 10
66
73
  action cases get --case-id-or-identifier <id-or-identifier>
67
- action automations list
74
+ action agents list
68
75
  action sessions list
69
76
  action knowledge list-folders
70
77
  action knowledge search --json '{"question":"How do I request VPN access?"}'
@@ -87,8 +94,12 @@ both `sessions:read` and `cases:read`; escalation requires `cases:write`. Intake
87
94
  routing as the in-product help desk, and escalation uses the same assignment and muting settings.
88
95
 
89
96
  The legacy Case, Automation, Form, Skill, and Workflow Builder sessions are retired. Use Copilot
90
- for authoring; existing Builder conversations remain readable. Workflow Suggestion sessions remain
91
- available.
97
+ for authoring; existing Builder and Workflow Suggestion conversations remain readable.
98
+
99
+ Agents are exposed as `agents`, with `agentId` path parameters and `agents:*` scopes. The earlier
100
+ `action automations` commands, `/automations` paths and `automations:*` scopes keep working as
101
+ deprecated aliases, as do `sessions mute-automation`, `sessions unmute-automation`,
102
+ `applications list-application-automations` and `skills list-automations`.
92
103
 
93
104
  Conversations are exposed as `sessions`, with `sessionId` fields and `sessions:read/write` scopes.
94
105
  Existing Cases wire fields retain their previously published names. Stored pre-release service
@@ -223,7 +234,7 @@ as required fields, enums, minimum array sizes, and forbidden properties.
223
234
 
224
235
  ### Helpdesk requests
225
236
 
226
- The agent can open a request by space name without looking up automation IDs:
237
+ The agent can open a request by space name without looking up agent IDs:
227
238
 
228
239
  ```sh
229
240
  action requests destinations
@@ -242,3 +253,25 @@ participation, and pause policies determine whether the helpdesk agent responds.
242
253
  an agent reply is expected; it does not force a response or unmute the agent. `sessions reply`
243
254
  continues to wait by default. Messages can also come from `--input-file` or stdin, and receipts
244
255
  retain session/message IDs for recovery. The longer generated commands remain available.
256
+
257
+ ## Building standalone binaries
258
+
259
+ From the repository root, `bun run --cwd apps/action-cli release:binaries` builds the native
260
+ Rust API sidecar and a bytecode-cached Action CLI shell. Release CI uses this default.
261
+ Archives go to `apps/action-cli/dist/release/`.
262
+
263
+ To try native AOT, install an experimental Bun that supports
264
+ [`--aot`](https://github.com/oven-sh/bun/pull/45631) and `--trim` separately from the pinned team version,
265
+ then invoke that binary directly:
266
+
267
+ ```sh
268
+ /path/to/experimental/bun apps/action-cli/scripts/build-binaries.ts --aot
269
+ ```
270
+
271
+ This requires the same native Rust toolchain as a normal release build. It compiles on the host
272
+ platform with `--trim`, without bytecode or a cross-compilation target. Trimming removes unused
273
+ runtime APIs. Unsupported Bun versions fail before
274
+ building the sidecar. AOT packages go to `dist/aot/paired/<platform>/` and archives to
275
+ `dist/aot/release/action-<platform>-aot.tar.gz` under `apps/action-cli`, separate from release
276
+ artifacts. The Rust sidecar is unchanged. The current prototype has only been exercised here
277
+ on Linux x64; it is not part of the release matrix.