@terminal-research/aion 0.1.2 → 0.2.1
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 +59 -52
- package/bin/aion-chat +4 -1
- package/dist/cli.mjs +39878 -68137
- package/package.json +28 -7
- package/src/graphql/chat-client-schema.graphql +460 -0
- package/src/graphql/generated/graphql.ts +60 -0
- package/src/graphql/operations/auth.graphql +7 -0
- package/src/graphql/operations/registry.graphql +60 -0
package/README.md
CHANGED
|
@@ -1,83 +1,90 @@
|
|
|
1
|
-
# aion
|
|
1
|
+
# @terminal-research/aion
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@terminal-research/aion)
|
|
4
|
+
[](https://nodejs.org)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
`aio` is the terminal client for Aion agents: chat with them, call them from
|
|
7
|
+
scripts, and install your workspace's skills for coding agents. It works with
|
|
8
|
+
agents hosted on Aion and with any A2A agent, such as one you run locally with
|
|
9
|
+
the Aion Python SDK.
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
12
|
npm install -g @terminal-research/aion
|
|
11
|
-
aio https://agent.example.com
|
|
12
|
-
aio --agent-id my-agent --url http://localhost:8000
|
|
13
|
-
aion-chat --agent-id my-agent --url http://localhost:8000
|
|
14
13
|
```
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
Requires Node.js 22 or later.
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
| Command | What for |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| `aio login` | Sign in to Aion. |
|
|
20
|
+
| `aio chat` | Chat with an agent in the terminal. |
|
|
21
|
+
| `aio run` | Send one message and print the reply. |
|
|
22
|
+
| `aio skills` | Install and update skills for coding agents. |
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
## Chat with your workspace's agents
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
```bash
|
|
27
|
+
aio login
|
|
28
|
+
aio chat
|
|
29
|
+
```
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
Type `@` to choose an agent, and `/` for commands such as `/workspace` and
|
|
32
|
+
`/clear`. Up and Down recall the messages and commands you sent before, in any
|
|
33
|
+
chat.
|
|
28
34
|
|
|
29
35
|
```bash
|
|
30
|
-
|
|
31
|
-
npm run stage:python
|
|
36
|
+
aio chat --workspace "Terminal Research" # the agents of another workspace
|
|
32
37
|
```
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
## Try an agent you run locally
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
Start the Aion Python SDK server in your agent project, then open the chat in
|
|
42
|
+
another terminal:
|
|
37
43
|
|
|
38
44
|
```bash
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
npm run stage:python
|
|
45
|
+
aion serve # serves your agents at http://localhost:8000
|
|
46
|
+
aio chat # lists them, and your workspace's agents once you are signed in
|
|
42
47
|
```
|
|
43
48
|
|
|
44
|
-
|
|
45
|
-
- `npm run compile` additionally produces macOS Bun executables.
|
|
46
|
-
- `npm run stage:python` copies any available build artifacts into `libs/aion-cli/src/aion/cli/bin/` for packaging and local launch tests.
|
|
47
|
-
|
|
48
|
-
## Release Flow
|
|
49
|
+
To talk to one endpoint only:
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
```bash
|
|
52
|
+
aio chat --url http://localhost:8001 # an agent or a proxy on another port
|
|
53
|
+
aio chat --url http://localhost:8000 --agent-id my-agent # one agent behind the proxy
|
|
54
|
+
aio chat --url https://agent.example.com --token <token> # an endpoint with a bearer token
|
|
55
|
+
```
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
## Call an agent from a script
|
|
53
58
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
```bash
|
|
60
|
+
aio run --agent @team-agent "Summarize the latest status"
|
|
61
|
+
cat prompt.txt | aio run --agent @team-agent -
|
|
62
|
+
aio run --agent @team-agent --response-mode a2a "Hello" # raw A2A JSON
|
|
63
|
+
```
|
|
58
64
|
|
|
59
|
-
|
|
65
|
+
The reply goes to standard output and progress to standard error.
|
|
60
66
|
|
|
61
|
-
|
|
67
|
+
## Add skills to Codex, Claude Code or Deep Agents
|
|
62
68
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
```bash
|
|
70
|
+
aio skills install <skill> -a codex -a claude-code # into the current project
|
|
71
|
+
aio skills install <skill> -a claude-code -g # for your user
|
|
72
|
+
aio skills update # update the installed skills
|
|
73
|
+
```
|
|
67
74
|
|
|
68
|
-
|
|
75
|
+
Name a skill by its catalog name or ID.
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
- prereleases publish to npm with the `next` dist-tag
|
|
77
|
+
## Environment variables
|
|
72
78
|
|
|
73
|
-
|
|
79
|
+
| Variable | Effect |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| `AION_CHAT_UPDATE_CHECK=0` | Turns off the update check `aio chat` runs at startup. |
|
|
82
|
+
| `AION_CHAT_HISTORY=0` | Keeps no history of what you send in `aio chat`. |
|
|
83
|
+
| `AION_USER_API_KEY` | Lets `aio skills` install without signing in; pass the workspace ID with `--workspace`. |
|
|
84
|
+
| `AION_CODEX_SKILLS_DIR`, `AION_CLAUDE_CODE_SKILLS_DIR`, `AION_DEEPAGENTS_SKILLS_DIR` | Install a host's skills into another directory. |
|
|
74
85
|
|
|
75
|
-
|
|
86
|
+
## Documentation
|
|
76
87
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
npm test
|
|
81
|
-
npm run build
|
|
82
|
-
npm pack --dry-run
|
|
83
|
-
```
|
|
88
|
+
Every command and option is on [docs.aion.to](https://docs.aion.to/sdk/typescript);
|
|
89
|
+
`aio --help`, `aio run --help` and `aio skills --help` list them in the terminal.
|
|
90
|
+
Changes are in the [changelog](https://github.com/Terminal-Research/aion-python-sdk/blob/main/libs/aion-chat-ui/CHANGELOG.md).
|