@terminal-research/aion 0.1.1 → 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 CHANGED
@@ -1,83 +1,90 @@
1
- # aion-chat-ui
1
+ # @terminal-research/aion
2
2
 
3
- Standalone terminal chat UI for Aion agents. This subproject is published to npm as `@terminal-research/aion` and installs the `aio` executable with an `aion-chat` alias.
3
+ [![npm](https://img.shields.io/npm/v/@terminal-research/aion)](https://www.npmjs.com/package/@terminal-research/aion)
4
+ [![node](https://img.shields.io/node/v/@terminal-research/aion)](https://nodejs.org)
4
5
 
5
- ## Install
6
-
7
- `aio` is the standalone Node entrypoint. `aion-chat` is available as an alias.
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
- ## Development
15
+ Requires Node.js 22 or later.
17
16
 
18
- ```bash
19
- npm install
20
- npm run dev -- --url http://localhost:8000
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
- Run the UI directly from `libs/aion-chat-ui` when you want to work on the Ink/React interface itself. The default endpoint is `http://localhost:8000`, but you can pass a different endpoint with `--url`.
24
+ ## Chat with your workspace's agents
24
25
 
25
- Use `npm run dev`, not `node src/cli.tsx` or `node src/app.tsx`. The source tree uses TypeScript files with `.js` import specifiers, so it must be run through `tsx` in development or through the built `dist/cli.mjs` bundle.
26
+ ```bash
27
+ aio login
28
+ aio chat
29
+ ```
26
30
 
27
- If you want to test the integrated Python entrypoint instead, run `aion chat2` from an agent project that depends on your local editable `aion-cli`. In that flow, the Python launcher uses `libs/aion-chat-ui/dist/cli.mjs`, so rebuild after UI changes:
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
- npm run build
31
- npm run stage:python
36
+ aio chat --workspace "Terminal Research" # the agents of another workspace
32
37
  ```
33
38
 
34
- Then in the agent project, run `poetry run aion chat2`.
39
+ ## Try an agent you run locally
35
40
 
36
- ## Build
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
- npm run build
40
- npm run compile
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
- - `npm run build` produces a Node-compatible bundle in `dist/cli.mjs`.
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
- The package is published by GitHub Actions when a GitHub release is published for the repository. The workflow lives at `.github/workflows/publish-aion.yml` and works from `libs/aion-chat-ui`.
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
- ### One-time setup
57
+ ## Call an agent from a script
53
58
 
54
- 1. Create or confirm the npm organization scope `@terminal-research`.
55
- 2. If npm requires the package record to exist before you can attach the trusted publisher, seed `@terminal-research/aion` once with a maintainer-owned manual publish, then switch publishing over to GitHub Actions.
56
- 3. In npm package settings for `@terminal-research/aion`, configure a trusted publisher for this GitHub repository and the `publish-aion.yml` workflow.
57
- 4. Keep the workflow's `id-token: write` permission enabled so GitHub Actions can mint the OIDC token during publish.
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
- Trusted publishing removes the need for an `NPM_TOKEN` secret and enables provenance on publish. The workflow upgrades to `npm@^11.5.1` because current npm trusted publishing requires npm 11.5.1 or newer.
65
+ The reply goes to standard output and progress to standard error.
60
66
 
61
- ### Release steps
67
+ ## Add skills to Codex, Claude Code or Deep Agents
62
68
 
63
- 1. Update `libs/aion-chat-ui/package.json` with the next version.
64
- 2. Merge the version change to the branch you release from.
65
- 3. Create a GitHub release whose tag matches the package version, for example `v0.2.0`.
66
- 4. Publish the release.
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
- When the release is published:
75
+ Name a skill by its catalog name or ID.
69
76
 
70
- - normal releases publish to npm with the `latest` dist-tag
71
- - prereleases publish to npm with the `next` dist-tag
77
+ ## Environment variables
72
78
 
73
- That gives you a simple update channel split without changing the package name.
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
- ### Local verification before cutting a release
86
+ ## Documentation
76
87
 
77
- ```bash
78
- cd libs/aion-chat-ui
79
- npm ci
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).
package/bin/aion-chat CHANGED
@@ -1,3 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import "../dist/cli.mjs";
3
+ if (process.argv.length === 2) {
4
+ process.argv.push("chat");
5
+ }
6
+ await import("../dist/cli.mjs");