@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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +37 -22
  3. package/package.json +2 -2
package/LICENSE CHANGED
@@ -6,7 +6,7 @@ FSL-1.1-MIT
6
6
 
7
7
  ## Notice
8
8
 
9
- Copyright 2026 Bas Milius
9
+ Copyright 2026 - present Bas Milius
10
10
 
11
11
  ## Terms and Conditions
12
12
 
package/README.md CHANGED
@@ -1,33 +1,48 @@
1
1
  # @adecore/agents
2
2
 
3
- Agent chat hosting for Node and Bun, including an Electron utility process. Claude Code and Codex backends share a session/thread model, streamed events, persisted chats, provider accounts, usage, and durable coordination modules. A consumer supplies permissions, transport ownership, placement, context commands, and application lifecycle policy.
3
+ [![npm](https://img.shields.io/npm/v/@adecore/agents)](https://www.npmjs.com/package/@adecore/agents)
4
+ [![Docs](https://img.shields.io/badge/docs-adecore.dev-blue)](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
- A chat starts a CLI on its first prompt. Choose its runtime mode explicitly: the plain core defaults to `full-access`. Install/authenticate provider CLIs separately. For checks without real providers, inject `spawn` and `detect` and use the complete [fake-provider walkthrough](https://adecore.dev/agents/getting-started).
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
- The [documentation](https://adecore.dev/agents/) covers [transport](https://adecore.dev/agents/transport), [host hooks](https://adecore.dev/agents/host-integration), [providers/models](https://adecore.dev/agents/providers-and-models), [turns/requests](https://adecore.dev/agents/turns-and-requests), [accounts/environment](https://adecore.dev/agents/accounts-and-environment), [outbox/tasks/messages](https://adecore.dev/agents/coordination), [context commands](https://adecore.dev/agents/context-commands), [persistence/helpers](https://adecore.dev/agents/persistence-and-helpers), [testing](https://adecore.dev/agents/testing-and-troubleshooting), [subpaths](https://adecore.dev/agents/entrypoints), and [migration](https://adecore.dev/agents/migration).
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
- `wireAgents` supplies the same services and handlers for a host protocol of your own. `ChatCore` is extensible through admission, instructions, environment, prompt notes, folders, policy, persistence, and recovery hooks. A plain host refuses placement-dependent fork/continuation requests and installs no task/message context endpoint.
31
+ ## Documentation
28
32
 
29
- Import per module, `@adecore/agents/<path under src>` without an extension; there is no root export. Existing helper and coordination subpaths remain supported. [examples/agent-port](../../examples/agent-port) checks host, React transport/client, scope, and locale loading with fakes. Run its `test` script for source exports or `test:dist` after building for Node default exports.
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
- Build `@adecore/agent-contracts` first, then run this package's `typecheck`, `test`, and `build` scripts. Default exports use compiled JavaScript/declarations; `source` selects TypeScript. No production source requires a Bun API.
46
+ ## License
32
47
 
33
- This package is private at `0.0.0`, pending publication setup, and retains FSL-1.1-MIT. See [LICENSE](./LICENSE).
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.1",
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.1",
23
+ "@adecore/agent-contracts": "0.17.0-beta.2",
24
24
  "zod": "^4.6.5"
25
25
  },
26
26
  "devDependencies": {