@adecore/agents 0.17.0-beta.1 → 0.17.0-beta.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.
- package/LICENSE +1 -1
- package/README.md +37 -22
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,33 +1,48 @@
|
|
|
1
1
|
# @adecore/agents
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@adecore/agents)
|
|
4
|
+
[](https://adecore.dev/agents/)
|
|
5
|
+
|
|
6
|
+
A host for agent chats in Node, Bun or an Electron utility process. It runs Claude Code and Codex as chat backends, keeps every thread on disk, streams it to its clients, and manages the CLIs' accounts and usage. It answers the requests of [`@adecore/agent-contracts`](https://adecore.dev/agent-contracts/) over a port you hand it, and registers no channel of its own.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
bun add @adecore/agents @adecore/agent-contracts
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The package brings no CLI: install Claude Code or Codex and sign in with it.
|
|
15
|
+
|
|
16
|
+
## Use
|
|
4
17
|
|
|
5
18
|
```ts
|
|
6
19
|
import { AgentHost } from '@adecore/agents/host/agent-host';
|
|
7
|
-
import { cliEnvironment } from '@adecore/agents/host/environment';
|
|
8
|
-
import type { FramePort } from '@adecore/agent-contracts';
|
|
9
|
-
|
|
10
|
-
export async function openHost(dataDir: string, port: FramePort) {
|
|
11
|
-
const host = await AgentHost.open({ dataDir, env: cliEnvironment(process.env, { sessionPrefixes: ['APP'] }) });
|
|
12
|
-
const disconnect = host.connect(port);
|
|
13
|
-
return {
|
|
14
|
-
host,
|
|
15
|
-
async close(): Promise<void> {
|
|
16
|
-
disconnect();
|
|
17
|
-
await host.close();
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
const host = await AgentHost.open({ dataDir });
|
|
22
|
+
const disconnect = host.connect(port);
|
|
23
|
+
|
|
24
|
+
// later
|
|
25
|
+
disconnect();
|
|
26
|
+
await host.close();
|
|
27
|
+
```
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
Every module has its own subpath, `@adecore/agents/<path>`; there is no root import. A new chat runs in `full-access` unless it names a runtime mode, so name one.
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
## Documentation
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
| Page | What it covers |
|
|
34
|
+
|---|---|
|
|
35
|
+
| [Getting started](https://adecore.dev/agents/getting-started) | A whole turn against a fake CLI, in one file |
|
|
36
|
+
| [Host](https://adecore.dev/agents/host) | `AgentHost`, its options, `wireAgents`, the hooks of `ChatCore` and Electron |
|
|
37
|
+
| [Chats and turns](https://adecore.dev/agents/chats) | Sending, queuing, approvals, stopping and restarts |
|
|
38
|
+
| [Providers](https://adecore.dev/agents/providers) | The CLIs, their model catalogs and the runtime modes |
|
|
39
|
+
| [Accounts and usage](https://adecore.dev/agents/accounts) | Config folders, secrets, the environment and usage |
|
|
40
|
+
| [Coordination](https://adecore.dev/agents/coordination) | The outbox, tasks between chats, lineage and messages |
|
|
41
|
+
| [Context commands](https://adecore.dev/agents/context-commands) | A command line your agents call back into |
|
|
42
|
+
| [Storage](https://adecore.dev/agents/storage) | What is written where, and the file helpers |
|
|
43
|
+
| [Testing](https://adecore.dev/agents/testing) | The fakes and the error codes |
|
|
44
|
+
| [Modules](https://adecore.dev/agents/reference) | Every subpath of the package |
|
|
30
45
|
|
|
31
|
-
|
|
46
|
+
## License
|
|
32
47
|
|
|
33
|
-
|
|
48
|
+
FSL-1.1-MIT. See [LICENSE](./LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agents",
|
|
3
|
-
"version": "0.17.0-beta.
|
|
3
|
+
"version": "0.17.0-beta.2",
|
|
4
4
|
"description": "Node-compatible agent chat hosts, providers, accounts, usage and durable task coordination.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test": "bun --conditions=source test"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@adecore/agent-contracts": "0.17.0-beta.
|
|
23
|
+
"@adecore/agent-contracts": "0.17.0-beta.2",
|
|
24
24
|
"zod": "^4.6.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|