@terminal-research/aion 0.1.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 +83 -0
- package/bin/aio +3 -0
- package/bin/aion-chat +3 -0
- package/dist/cli.mjs +93738 -0
- package/package.json +64 -0
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# aion-chat-ui
|
|
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.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
`aio` is the standalone Node entrypoint. `aion-chat` is available as an alias.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
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
|
+
```
|
|
15
|
+
|
|
16
|
+
## Development
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install
|
|
20
|
+
npm run dev -- --url http://localhost:8000
|
|
21
|
+
```
|
|
22
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm run build
|
|
31
|
+
npm run stage:python
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then in the agent project, run `poetry run aion chat2`.
|
|
35
|
+
|
|
36
|
+
## Build
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm run build
|
|
40
|
+
npm run compile
|
|
41
|
+
npm run stage:python
|
|
42
|
+
```
|
|
43
|
+
|
|
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
|
+
|
|
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
|
+
|
|
52
|
+
### One-time setup
|
|
53
|
+
|
|
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.
|
|
58
|
+
|
|
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.
|
|
60
|
+
|
|
61
|
+
### Release steps
|
|
62
|
+
|
|
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.
|
|
67
|
+
|
|
68
|
+
When the release is published:
|
|
69
|
+
|
|
70
|
+
- normal releases publish to npm with the `latest` dist-tag
|
|
71
|
+
- prereleases publish to npm with the `next` dist-tag
|
|
72
|
+
|
|
73
|
+
That gives you a simple update channel split without changing the package name.
|
|
74
|
+
|
|
75
|
+
### Local verification before cutting a release
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
cd libs/aion-chat-ui
|
|
79
|
+
npm ci
|
|
80
|
+
npm test
|
|
81
|
+
npm run build
|
|
82
|
+
npm pack --dry-run
|
|
83
|
+
```
|
package/bin/aio
ADDED
package/bin/aion-chat
ADDED