@1agents/acp-service 0.3.0 → 0.5.0
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 +69 -33
- package/dist/bin/acp-service.js +2 -2
- package/dist/src/bridge.d.ts +2 -2
- package/dist/src/bridge.js +1 -1
- package/dist/src/catalog.js +20 -3
- package/dist/src/dsh.d.ts +6 -0
- package/dist/src/dsh.js +9 -0
- package/dist/src/manifest.js +1 -1
- package/dist/src/package.d.ts +3 -0
- package/dist/src/package.js +3 -0
- package/package.json +65 -13
- package/vendor/dsh/LICENSE +21 -0
- package/vendor/dsh/README.md +101 -0
- package/vendor/dsh/adapter.d.ts +82 -0
- package/vendor/dsh/adapter.js +449 -0
- package/vendor/dsh/client.js +207 -0
- package/vendor/dsh/cordis.patch.yml +10 -0
- package/vendor/dsh/discovery.d.ts +4 -0
- package/vendor/dsh/discovery.js +20 -0
- package/vendor/dsh/imports.d.ts +54 -0
- package/vendor/dsh/imports.js +133 -0
- package/vendor/dsh/index.d.ts +5 -0
- package/vendor/dsh/index.js +84 -0
- package/vendor/dsh/preset.d.ts +7 -0
- package/vendor/dsh/preset.js +10 -0
- package/vendor/dsh/service-process.d.ts +10 -0
- package/vendor/dsh/service-process.js +150 -0
- package/vendor/dsh/service-worker.d.ts +1 -0
- package/vendor/dsh/service-worker.js +43 -0
- package/vendor/dsh/state.d.ts +22 -0
- package/vendor/dsh/state.js +47 -0
- package/vendor/dsh/transport.d.ts +18 -0
- package/vendor/dsh/transport.js +71 -0
- package/vendor/runtime/LICENSE +21 -0
- package/vendor/runtime/README.md +115 -0
- package/vendor/runtime/dist/agent-registry-CMg8LHKY.js +806 -0
- package/vendor/runtime/dist/agent-registry-CMg8LHKY.js.map +1 -0
- package/vendor/runtime/dist/agent-registry.d.ts +70 -0
- package/vendor/runtime/dist/agent-registry.d.ts.map +1 -0
- package/vendor/runtime/dist/agent-registry.js +2 -0
- package/vendor/runtime/dist/cli-DUHyAADv.js +182 -0
- package/vendor/runtime/dist/cli-DUHyAADv.js.map +1 -0
- package/vendor/runtime/dist/cli.d.ts +12 -0
- package/vendor/runtime/dist/cli.d.ts.map +1 -0
- package/vendor/runtime/dist/cli.js +2632 -0
- package/vendor/runtime/dist/cli.js.map +1 -0
- package/vendor/runtime/dist/client-DjkWknf7.d.ts +262 -0
- package/vendor/runtime/dist/client-DjkWknf7.d.ts.map +1 -0
- package/vendor/runtime/dist/docs-site/.nojekyll +0 -0
- package/vendor/runtime/dist/docs-site/CLI.html +832 -0
- package/vendor/runtime/dist/docs-site/CNAME +1 -0
- package/vendor/runtime/dist/docs-site/VISION.html +415 -0
- package/vendor/runtime/dist/docs-site/agents.html +391 -0
- package/vendor/runtime/dist/docs-site/compare.html +359 -0
- package/vendor/runtime/dist/docs-site/config.html +450 -0
- package/vendor/runtime/dist/docs-site/custom-agents.html +408 -0
- package/vendor/runtime/dist/docs-site/exit-codes.html +347 -0
- package/vendor/runtime/dist/docs-site/favicon.svg +21 -0
- package/vendor/runtime/dist/docs-site/flows.html +497 -0
- package/vendor/runtime/dist/docs-site/index.html +367 -0
- package/vendor/runtime/dist/docs-site/install.html +386 -0
- package/vendor/runtime/dist/docs-site/llms.txt +35 -0
- package/vendor/runtime/dist/docs-site/output-formats.html +403 -0
- package/vendor/runtime/dist/docs-site/permissions.html +413 -0
- package/vendor/runtime/dist/docs-site/prompting.html +460 -0
- package/vendor/runtime/dist/docs-site/proof-2026-07-18-grok-ext-methods/index.html +336 -0
- package/vendor/runtime/dist/docs-site/quickstart.html +382 -0
- package/vendor/runtime/dist/docs-site/runtime-environment.html +329 -0
- package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +335 -0
- package/vendor/runtime/dist/docs-site/session-control.html +406 -0
- package/vendor/runtime/dist/docs-site/session-watch.html +354 -0
- package/vendor/runtime/dist/docs-site/sessions.html +486 -0
- package/vendor/runtime/dist/docs-site/shared-sessions.html +377 -0
- package/vendor/runtime/dist/flows-CiJSCy4D.js +2474 -0
- package/vendor/runtime/dist/flows-CiJSCy4D.js.map +1 -0
- package/vendor/runtime/dist/flows.d.ts +334 -0
- package/vendor/runtime/dist/flows.d.ts.map +1 -0
- package/vendor/runtime/dist/flows.js +2 -0
- package/vendor/runtime/dist/invocation-options-BlIySxIw.js +345 -0
- package/vendor/runtime/dist/invocation-options-BlIySxIw.js.map +1 -0
- package/vendor/runtime/dist/ipc-BlljKR2b.js +5336 -0
- package/vendor/runtime/dist/ipc-BlljKR2b.js.map +1 -0
- package/vendor/runtime/dist/output-BzXQKArM.js +1012 -0
- package/vendor/runtime/dist/output-BzXQKArM.js.map +1 -0
- package/vendor/runtime/dist/queue-owner-runtime-DSFdsS_y.js +8867 -0
- package/vendor/runtime/dist/queue-owner-runtime-DSFdsS_y.js.map +1 -0
- package/vendor/runtime/dist/runtime.d.ts +1156 -0
- package/vendor/runtime/dist/runtime.d.ts.map +1 -0
- package/vendor/runtime/dist/runtime.js +3675 -0
- package/vendor/runtime/dist/runtime.js.map +1 -0
- package/vendor/runtime/dist/session-options-ORCchZGk.d.ts +426 -0
- package/vendor/runtime/dist/session-options-ORCchZGk.d.ts.map +1 -0
- package/vendor/runtime/dist/session-watch-BiBTBMz4.js +76 -0
- package/vendor/runtime/dist/session-watch-BiBTBMz4.js.map +1 -0
- package/vendor/runtime/dist/watch-iYiP-lOo.js +85 -0
- package/vendor/runtime/dist/watch-iYiP-lOo.js.map +1 -0
- package/vendor/runtime/package.json +46 -0
- package/vendor/runtime/skills/acpx/SKILL.md +688 -0
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# @1agents/acp-service
|
|
2
2
|
|
|
3
|
-
ACP Agent Runtime Service for Codex, Grok Build, Claude Code and other Agents supported by
|
|
3
|
+
ACP Agent Runtime Service for Codex, Grok Build, Claude Code and other Agents supported by its embedded 1ACP runtime. Version 0.2 uses **ACP v1 JSON-RPC 2.0 over WebSocket**. Each connection selects one Agent; each session keeps that Agent and its workspace when reconnected.
|
|
4
4
|
|
|
5
5
|
## Run
|
|
6
6
|
|
|
7
|
-
Requires Node.js 22.13 or later
|
|
7
|
+
Requires Node.js 22.13 or later. Version 0.5 includes the 1ACP runtime, CLI, service, DSH plugin, browser controls, skills and licenses; installing a separate `@scottzx/1acp` package is unnecessary. The runtime and service retain their respective ACP SDK versions.
|
|
8
|
+
|
|
9
|
+
The runtime's per-session launch argv and transient credentials APIs support Provider Profiles. Public runtime APIs and flow authoring are available as `@1agents/acp-service/runtime` and `@1agents/acp-service/flows`. The `acp-service` command forwards runtime commands alongside its `serve` command.
|
|
8
10
|
|
|
9
11
|
Run from the monorepo root:
|
|
10
12
|
|
|
@@ -17,11 +19,15 @@ pnpm start:service serve --host 127.0.0.1 --port 36812 --no-report
|
|
|
17
19
|
|
|
18
20
|
The default port is 36812. Without `--no-report`, the service reports to the local DreamMate node. Agent executables and their authentication must be available to the service process. `ACP_STATE_DIR` overrides the default `~/.1agents/acpx-state` directory for runtime records, turn journals and ACP replay data.
|
|
19
21
|
|
|
22
|
+
For npm-backed agents, the service first uses an adapter package installed in its package search roots, then the runtime's adapter executable on PATH or in user-local binary directories. JavaScript adapters run with the service's Node interpreter. Only when an adapter is absent does launch fall back to npx; discovery itself never downloads packages. Installing the native `codex` CLI does not replace installing the `codex-acp` adapter.
|
|
23
|
+
|
|
24
|
+
If startup reports npm `ENOTEMPTY` inside `_npx`, upgrade npm and move the affected cache directory aside once no installation is using it, then retry. The diagnostic preserves npm's failing path. This error concerns npm's cache directory replacement rather than macOS device permissions.
|
|
25
|
+
|
|
20
26
|
The standalone HTTP/WebSocket service does not read standard input and keeps running when it is closed or redirected from `/dev/null`. Stop the service with `SIGINT` or `SIGTERM`; both clean up managed Agent sessions before exiting.
|
|
21
27
|
|
|
22
28
|
```ts
|
|
23
|
-
import { serveAcpService } from
|
|
24
|
-
const service = await serveAcpService({ host:
|
|
29
|
+
import { serveAcpService } from "@1agents/acp-service";
|
|
30
|
+
const service = await serveAcpService({ host: "127.0.0.1", port: 36812, report: false });
|
|
25
31
|
// Later: await service.close();
|
|
26
32
|
```
|
|
27
33
|
|
|
@@ -31,6 +37,18 @@ HTTP endpoints:
|
|
|
31
37
|
- `GET /manifest`: DreamMate service discovery, ACP version, custom transport and Agent endpoint paths. Profiles listed here describe registered launch configurations, not a successful installation/authentication probe.
|
|
32
38
|
- `GET /services`: current service/session counts.
|
|
33
39
|
|
|
40
|
+
## DSH installation
|
|
41
|
+
|
|
42
|
+
The same npm package can be installed as a DSH bundle:
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
pnpm dsh plugin --profile web add @1agents/acp-service
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
DSH reads the package's bundle patch and browser metadata; the CLI uses its `bin` entry. There is no installation-time mode switch, and both uses can coexist. The package root retains the service API and exposes Cordis metadata plus a lazy `apply`; merely importing it starts no plugin or process. `/service` is the service API, while `/dsh`, `/dsh/preset` and `/dsh/imports` provide the typed plugin interfaces. DSH host dependencies are supplied by DSH rather than installed with the CLI.
|
|
49
|
+
|
|
50
|
+
The plugin starts or reuses a local service when activated. See [DSH plugin usage](vendor/dsh/README.md) for presets, browser controls, configuration and lifecycle. Before migrating, stop DSH and remove `@1agents/dsh-acp`, then add the unified package; keep session bindings and preserve custom row configuration. Plugin and preset IDs are unchanged.
|
|
51
|
+
|
|
34
52
|
## ACP connections
|
|
35
53
|
|
|
36
54
|
Connect to `ws://127.0.0.1:36812/agents/codex`, `/agents/grok-build`, `/agents/claude`, or another registered Agent name. `/` selects Codex. Each WebSocket text message contains one UTF-8 JSON-RPC object. Batch messages and the former `action/event` envelopes are rejected. WebSocket is a custom transport permitted by ACP, not the standard stdio transport.
|
|
@@ -38,36 +56,54 @@ Connect to `ws://127.0.0.1:36812/agents/codex`, `/agents/grok-build`, `/agents/c
|
|
|
38
56
|
Initialize before sending session requests:
|
|
39
57
|
|
|
40
58
|
```json
|
|
41
|
-
{
|
|
59
|
+
{
|
|
60
|
+
"jsonrpc": "2.0",
|
|
61
|
+
"id": 1,
|
|
62
|
+
"method": "initialize",
|
|
63
|
+
"params": { "protocolVersion": 1, "clientCapabilities": {} }
|
|
64
|
+
}
|
|
42
65
|
```
|
|
43
66
|
|
|
44
67
|
Create a session using an absolute existing directory:
|
|
45
68
|
|
|
46
69
|
```json
|
|
47
|
-
{
|
|
70
|
+
{
|
|
71
|
+
"jsonrpc": "2.0",
|
|
72
|
+
"id": 2,
|
|
73
|
+
"method": "session/new",
|
|
74
|
+
"params": { "cwd": "/absolute/project", "mcpServers": [] }
|
|
75
|
+
}
|
|
48
76
|
```
|
|
49
77
|
|
|
50
78
|
Use the **returned service session ID** for subsequent requests. Native Agent IDs are distinct and may appear in `_meta["1agents"].agentSessionId`; they must not replace the service ID.
|
|
51
79
|
|
|
52
80
|
```json
|
|
53
|
-
{
|
|
81
|
+
{
|
|
82
|
+
"jsonrpc": "2.0",
|
|
83
|
+
"id": 3,
|
|
84
|
+
"method": "session/prompt",
|
|
85
|
+
"params": {
|
|
86
|
+
"sessionId": "returned-session-id",
|
|
87
|
+
"prompt": [{ "type": "text", "text": "Explain this project" }]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
54
90
|
```
|
|
55
91
|
|
|
56
92
|
Output arrives as `session/update` notifications. The prompt request receives its response only when the turn settles, with a standard `stopReason`. Runtime failures return JSON-RPC errors. `session/cancel` is a notification; cancellation settles the original prompt request.
|
|
57
93
|
|
|
58
|
-
| Method
|
|
59
|
-
|
|
|
60
|
-
| `session/new`
|
|
61
|
-
| `session/load`
|
|
62
|
-
| `session/resume`
|
|
63
|
-
| `session/prompt`
|
|
64
|
-
| `session/cancel`
|
|
65
|
-
| `session/close`
|
|
66
|
-
| `session/list`
|
|
67
|
-
| `session/delete`
|
|
68
|
-
| `session/set_mode`
|
|
69
|
-
| `session/set_config_option`
|
|
70
|
-
| `session/request_permission` | Server-to-client request; the client returns an advertised option ID or a cancelled outcome.
|
|
94
|
+
| Method | Behavior |
|
|
95
|
+
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| `session/new` | Creates a new persistent session with a server-generated ID. |
|
|
97
|
+
| `session/load` | Attaches an existing session and replays its complete recorded ACP conversation before responding. |
|
|
98
|
+
| `session/resume` | Attaches without replaying conversation history. |
|
|
99
|
+
| `session/prompt` | Runs a turn; ordinary overlapping prompts are rejected as busy. |
|
|
100
|
+
| `session/cancel` | Cancels the current turn; has no RPC response. |
|
|
101
|
+
| `session/close` | Cancels work and releases live resources while retaining persistent history. |
|
|
102
|
+
| `session/list` | Lists this endpoint's bound, resumable sessions, optionally filtered by cwd. Returns the complete list without a next cursor. |
|
|
103
|
+
| `session/delete` | Closes live resources and tombstones the service session so it cannot be resumed or listed. Runtime history retention follows the runtime's deletion behavior. |
|
|
104
|
+
| `session/set_mode` | Selects an advertised native Agent mode. |
|
|
105
|
+
| `session/set_config_option` | Changes an advertised native option and returns the resulting configuration options. |
|
|
106
|
+
| `session/request_permission` | Server-to-client request; the client returns an advertised option ID or a cancelled outcome. |
|
|
71
107
|
|
|
72
108
|
Methods and content remain subject to the selected Agent's capabilities. The installed runtime supports text followed by image/audio attachments. Resource blocks and text interleaved after attachments are rejected explicitly rather than reordered. Modes/configuration are returned from the Agent, not synthesized as universal choices. Session creation and loading return the original ACP config options, including select tags and grouped choices; loading also republishes the current advertised slash commands even when the runtime emits no new command event.
|
|
73
109
|
|
|
@@ -91,18 +127,18 @@ Clients opt in using `clientCapabilities._meta["1agents"] = { "version": 1 }` du
|
|
|
91
127
|
|
|
92
128
|
Custom launch/session options are carried only in `_meta["1agents"]`, including `systemContext`, `permissionMode`, `responsePolicy`, explicitly supplied child `env`, and the trusted provider-profile `launch` descriptor. Launch argv/environment validation and transient credential handling are preserved from the 1agents provider-profile integration. Credentials are not copied into ACP bindings or transcript metadata.
|
|
93
129
|
|
|
94
|
-
| Extension
|
|
95
|
-
|
|
|
96
|
-
| `_1agents/session/import`
|
|
97
|
-
| `_1agents/session/history`
|
|
98
|
-
| `_1agents/session/permission_mode`
|
|
99
|
-
| `_1agents/session/cancel_queued`
|
|
100
|
-
| `_1agents/session/fork`
|
|
101
|
-
| `_1agents/session/authenticate`, `_1agents/session/logout` | Native session authentication controls.
|
|
102
|
-
| `_1agents/sessions/close_all`
|
|
103
|
-
| `_1agents/session/meta`
|
|
104
|
-
| `_1agents/events/<name>`
|
|
105
|
-
| `_x.ai/ask_user_question`, `_x.ai/exit_plan_mode`
|
|
130
|
+
| Extension | Purpose |
|
|
131
|
+
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
132
|
+
| `_1agents/session/import` | Explicitly resumes a pre-migration native session ID and returns a new service session ID. |
|
|
133
|
+
| `_1agents/session/history` | Returns the runtime/native history projection used by existing chat views. |
|
|
134
|
+
| `_1agents/session/permission_mode` | Changes the service permission policy, independently of native Agent mode. |
|
|
135
|
+
| `_1agents/session/cancel_queued` | Cancels a queued managed request by its durable request ID. |
|
|
136
|
+
| `_1agents/session/fork` | Uses the runtime's optional fork capability. Imported/forked native history is not advertised as complete ACP replay. |
|
|
137
|
+
| `_1agents/session/authenticate`, `_1agents/session/logout` | Native session authentication controls. |
|
|
138
|
+
| `_1agents/sessions/close_all` | Closes all managed sessions. |
|
|
139
|
+
| `_1agents/session/meta` | Notification containing native models, modes and other UI capabilities. |
|
|
140
|
+
| `_1agents/events/<name>` | Application notifications such as `turn_sync`, `turn_state`, `turn_terminal`, `history_response`, `session_taken_over`, background tasks and interaction timeouts. |
|
|
141
|
+
| `_x.ai/ask_user_question`, `_x.ai/exit_plan_mode` | Server-to-client requests preserving Grok-specific questionnaire/plan semantics. Clients answer with the corresponding JSON-RPC result. |
|
|
106
142
|
|
|
107
143
|
Nonstandard metadata is namespaced; standard `session/update` content is still available without knowing the application view fields. `responsePolicy: "summary"` suppresses incremental conversation output while preserving the replay log and live permission/questions. The final prompt response carries the summary in `_meta["1agents"]`, and opted-in clients receive `turn_complete`. Managed turn IDs, idempotency keys and queue state are application extensions, not replacements for JSON-RPC request IDs.
|
|
108
144
|
|
|
@@ -110,7 +146,7 @@ Nonstandard metadata is namespaced; standard `session/update` content is still a
|
|
|
110
146
|
|
|
111
147
|
Upgrade the service and 1agents Go client together. Old `action/event` WebSocket clients are not supported by 0.2. The Go `internal/acpwire` client converts existing chat view messages to standard ACP and negotiated extensions; frontend view state can remain unchanged. It stores the returned service session ID for future reconnects and explicitly imports older native IDs when needed.
|
|
112
148
|
|
|
113
|
-
The npm `@1agents/acp-bridge`
|
|
149
|
+
The npm `@1agents/acp-bridge` launcher must use a dependency range that accepts service 0.5 to adopt this release. There is one public package; the DSH plugin is embedded and needs no separate release. Install from the workspace root with `pnpm install --frozen-lockfile`; build runtime, then service. Development supervision locates `services/1acp/packages/service`.
|
|
114
150
|
|
|
115
151
|
## Verify
|
|
116
152
|
|
package/dist/bin/acp-service.js
CHANGED
|
@@ -8,7 +8,7 @@ const require = createRequire(import.meta.url);
|
|
|
8
8
|
const rawArgs = process.argv.slice(2);
|
|
9
9
|
const invokedBin = 'acp-service';
|
|
10
10
|
function getAcpxCliPath() {
|
|
11
|
-
return require.resolve('@
|
|
11
|
+
return require.resolve('@1agents/acp-service/runtime-cli');
|
|
12
12
|
}
|
|
13
13
|
function getPackageVersion() {
|
|
14
14
|
try {
|
|
@@ -153,7 +153,7 @@ async function main() {
|
|
|
153
153
|
await runServer({});
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
-
// 6. Any other subcommand or arguments -> forward directly to
|
|
156
|
+
// 6. Any other subcommand or arguments -> forward directly to the embedded runtime CLI
|
|
157
157
|
forwardToCli(rawArgs);
|
|
158
158
|
}
|
|
159
159
|
await main();
|
package/dist/src/bridge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function resolveResponsePolicy(explicitPolicy: any, sessionPolicy: any): any;
|
|
2
2
|
export function attachBridgeServer(serverOrOptions?: {}): {
|
|
3
3
|
wss: WebSocketServer;
|
|
4
|
-
runtime: import("@
|
|
4
|
+
runtime: import("@1agents/acp-service/runtime").AcpxRuntime;
|
|
5
5
|
activeSessions: Map<any, any>;
|
|
6
6
|
close: typeof killAllManagedAgents;
|
|
7
7
|
};
|
|
@@ -14,7 +14,7 @@ export function readRuntimeRecord(id: any): Promise<any>;
|
|
|
14
14
|
export let wss: import("ws").WebSocketServer | null;
|
|
15
15
|
import { WebSocketServer } from "ws";
|
|
16
16
|
export function killAllManagedAgents(): Promise<void>;
|
|
17
|
-
export const runtime: import("@
|
|
17
|
+
export const runtime: import("@1agents/acp-service/runtime").AcpxRuntime;
|
|
18
18
|
export const activeSessions: Map<any, any>;
|
|
19
19
|
export const sessionBackgroundTasks: Map<any, any>;
|
|
20
20
|
export function gracefulExit(source: any): Promise<void>;
|
package/dist/src/bridge.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as path from "node:path";
|
|
|
5
5
|
import { WebSocketServer } from "ws";
|
|
6
6
|
import { attachAcpConnection } from "./acp-connection.js";
|
|
7
7
|
import { createServiceAgentRegistry } from "./catalog.js";
|
|
8
|
-
import { createAcpRuntime, createRuntimeStore, createTurnJournal, } from "@
|
|
8
|
+
import { createAcpRuntime, createRuntimeStore, createTurnJournal, } from "@1agents/acp-service/runtime";
|
|
9
9
|
import { historyToolInput, resolveRuntimeTurnId, stampHistoryTurnIds, } from "./history-turn-ids.js";
|
|
10
10
|
// ----------------------------------------------------
|
|
11
11
|
// Configurations
|
package/dist/src/catalog.js
CHANGED
|
@@ -3,11 +3,11 @@ import { accessSync, closeSync, constants, openSync, readSync, readFileSync, sta
|
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
4
|
import { homedir } from 'node:os';
|
|
5
5
|
import { delimiter, dirname, isAbsolute, join, resolve } from 'node:path';
|
|
6
|
-
import { createAgentRegistry } from '@
|
|
6
|
+
import { createAgentRegistry } from '@1agents/acp-service/runtime';
|
|
7
7
|
import { catalogDescriptors } from './catalog-descriptors.js';
|
|
8
8
|
const registry = createAgentRegistry();
|
|
9
9
|
const require = createRequire(import.meta.url);
|
|
10
|
-
const runtimeRoot = dirname(require.resolve('@
|
|
10
|
+
const runtimeRoot = dirname(dirname(require.resolve('@1agents/acp-service/runtime-cli')));
|
|
11
11
|
/** Resolve an executable on PATH, then in user-local harness directories. */
|
|
12
12
|
export function findAgentBinary(binary, options = {}) {
|
|
13
13
|
const env = options.env ?? process.env;
|
|
@@ -83,7 +83,24 @@ function localLaunch(id, options) {
|
|
|
83
83
|
return undefined;
|
|
84
84
|
if (argv[0] === 'npx') {
|
|
85
85
|
const index = argv.findIndex((arg, i) => i > 0 && !arg.startsWith('-'));
|
|
86
|
-
|
|
86
|
+
if (index < 0)
|
|
87
|
+
return undefined;
|
|
88
|
+
const extraArgs = argv.slice(index + 1);
|
|
89
|
+
const packaged = packageLaunch(argv[index], extraArgs, options);
|
|
90
|
+
if (packaged)
|
|
91
|
+
return packaged;
|
|
92
|
+
// Use the runtime's adapter entrypoint, rather than the display/native CLI.
|
|
93
|
+
// Package lookup above honors the service's explicit search roots.
|
|
94
|
+
const inspection = createAgentRegistry({
|
|
95
|
+
resolveExecutable: command => findAgentBinary(command, options),
|
|
96
|
+
resolvePackageRoot: () => undefined,
|
|
97
|
+
}).inspect(id);
|
|
98
|
+
if (inspection?.launch.kind !== 'installed')
|
|
99
|
+
return undefined;
|
|
100
|
+
const [binary, ...args] = inspection.launch.argv;
|
|
101
|
+
return isNodeLauncher(binary)
|
|
102
|
+
? [process.execPath, binary, ...args]
|
|
103
|
+
: [binary, ...args];
|
|
87
104
|
}
|
|
88
105
|
// A package runner alone does not demonstrate an installed harness.
|
|
89
106
|
if (argv[0] === 'uvx')
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Host services are requested only when DSH activates this package as a plugin. */
|
|
2
|
+
export declare const name = "oneagents-acp";
|
|
3
|
+
export declare const inject: string[];
|
|
4
|
+
/** Keep the service API usable without loading plugin code or DSH declarations.
|
|
5
|
+
* The fully typed plugin entry is available from /dsh. */
|
|
6
|
+
export declare function apply(ctx: unknown, input?: Record<string, unknown>): Promise<void>;
|
package/dist/src/dsh.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Host services are requested only when DSH activates this package as a plugin. */
|
|
2
|
+
export const name = 'oneagents-acp';
|
|
3
|
+
export const inject = ['llm', 'agents', 'approval', 'userQuestions', 'commands', 'sessionProjections', 'webServer', 'sessionController', 'agentPresets', 'sessions', 'sessionPersistence', 'workspaceRegistry'];
|
|
4
|
+
/** Keep the service API usable without loading plugin code or DSH declarations.
|
|
5
|
+
* The fully typed plugin entry is available from /dsh. */
|
|
6
|
+
export async function apply(ctx, input = {}) {
|
|
7
|
+
const plugin = await import(new URL('../../vendor/dsh/index.js', import.meta.url).href);
|
|
8
|
+
await plugin.apply(ctx, input);
|
|
9
|
+
}
|
package/dist/src/manifest.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 节点身份来自 `@1agents/dreammate-node`(优先 tailnet,回退本地),
|
|
5
5
|
* 保证整台机器上的所有服务共享同一个 node_id 与 name。
|
|
6
6
|
*/
|
|
7
|
-
import { createAgentRegistry } from '@
|
|
7
|
+
import { createAgentRegistry } from '@1agents/acp-service/runtime';
|
|
8
8
|
import { nodeIdentity } from '@1agents/dreammate-node';
|
|
9
9
|
import { PROTOCOL_VERSION, } from '@1agents/dreammate-network';
|
|
10
10
|
export { nodeIdentity, PROTOCOL_VERSION };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1agents/acp-service",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "ACP runtime, CLI, HTTP/WebSocket service and DeepSeek Harness plugin in one package.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dreammate",
|
|
7
7
|
"acp",
|
|
@@ -21,21 +21,53 @@
|
|
|
21
21
|
"registry": "https://registry.npmjs.org"
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
|
-
"main": "./dist/src/
|
|
25
|
-
"types": "./dist/src/
|
|
24
|
+
"main": "./dist/src/package.js",
|
|
25
|
+
"types": "./dist/src/package.d.ts",
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
|
+
"types": "./dist/src/package.d.ts",
|
|
29
|
+
"import": "./dist/src/package.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json",
|
|
32
|
+
"./runtime": {
|
|
33
|
+
"types": "./vendor/runtime/dist/runtime.d.ts",
|
|
34
|
+
"import": "./vendor/runtime/dist/runtime.js"
|
|
35
|
+
},
|
|
36
|
+
"./flows": {
|
|
37
|
+
"types": "./vendor/runtime/dist/flows.d.ts",
|
|
38
|
+
"import": "./vendor/runtime/dist/flows.js"
|
|
39
|
+
},
|
|
40
|
+
"./runtime-cli": "./vendor/runtime/dist/cli.js",
|
|
41
|
+
"./agent-registry": {
|
|
42
|
+
"types": "./vendor/runtime/dist/agent-registry.d.ts",
|
|
43
|
+
"import": "./vendor/runtime/dist/agent-registry.js"
|
|
44
|
+
},
|
|
45
|
+
"./service": {
|
|
28
46
|
"types": "./dist/src/index.d.ts",
|
|
29
47
|
"import": "./dist/src/index.js"
|
|
30
48
|
},
|
|
31
|
-
"./
|
|
49
|
+
"./dsh": {
|
|
50
|
+
"types": "./vendor/dsh/index.d.ts",
|
|
51
|
+
"import": "./vendor/dsh/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./dsh/preset": {
|
|
54
|
+
"types": "./vendor/dsh/preset.d.ts",
|
|
55
|
+
"import": "./vendor/dsh/preset.js"
|
|
56
|
+
},
|
|
57
|
+
"./dsh/imports": {
|
|
58
|
+
"types": "./vendor/dsh/imports.d.ts",
|
|
59
|
+
"import": "./vendor/dsh/imports.js"
|
|
60
|
+
},
|
|
61
|
+
"./client": "./vendor/dsh/client.js",
|
|
62
|
+
"./cordis.patch.yml": "./vendor/dsh/cordis.patch.yml"
|
|
32
63
|
},
|
|
33
64
|
"bin": {
|
|
34
65
|
"acp-service": "dist/bin/acp-service.js"
|
|
35
66
|
},
|
|
36
67
|
"files": [
|
|
37
68
|
"dist",
|
|
38
|
-
"README.md"
|
|
69
|
+
"README.md",
|
|
70
|
+
"vendor"
|
|
39
71
|
],
|
|
40
72
|
"engines": {
|
|
41
73
|
"node": ">=22.13.0"
|
|
@@ -44,19 +76,39 @@
|
|
|
44
76
|
"@1agents/dreammate-network": "^0.3.1",
|
|
45
77
|
"@1agents/dreammate-node": "^0.4.0",
|
|
46
78
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
79
|
+
"ws": "^8.18.0",
|
|
80
|
+
"@1agents/acp-runtime-sdk": "npm:@agentclientprotocol/sdk@^1.5.0",
|
|
81
|
+
"@openclaw/fs-safe": "^0.20.0",
|
|
82
|
+
"commander": "^15.0.0",
|
|
83
|
+
"skillflag": "^0.2.1",
|
|
84
|
+
"tsx": "^4.23.15",
|
|
85
|
+
"zod": "^4.6.5"
|
|
49
86
|
},
|
|
50
87
|
"devDependencies": {
|
|
51
88
|
"@types/node": "^22.10.2",
|
|
52
89
|
"@types/ws": "^8.5.14",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
90
|
+
"typescript": "^5.7.2",
|
|
91
|
+
"@scottzx/1acp": "0.16.0"
|
|
92
|
+
},
|
|
93
|
+
"dsh": {
|
|
94
|
+
"bundle": {
|
|
95
|
+
"patch": "./vendor/dsh/cordis.patch.yml"
|
|
96
|
+
},
|
|
97
|
+
"client": {
|
|
98
|
+
"platform": "web",
|
|
99
|
+
"inject": [
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-commands",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
102
|
+
"@deepseek-ai/dsh-client-locale",
|
|
103
|
+
"@deepseek-ai/dsh-api-remotes"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
55
106
|
},
|
|
56
107
|
"scripts": {
|
|
57
|
-
"build": "tsc -p tsconfig.build.json",
|
|
108
|
+
"build": "node ../../scripts/embed-runtime.mjs && tsc -p tsconfig.build.json",
|
|
58
109
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
59
|
-
"test": "npm run build &&
|
|
60
|
-
"start": "tsx bin/acp-service.ts"
|
|
110
|
+
"test": "npm run build && npm run test:only",
|
|
111
|
+
"start": "tsx bin/acp-service.ts",
|
|
112
|
+
"test:only": "node --import tsx --test test/*.test.ts"
|
|
61
113
|
}
|
|
62
114
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 OpenClaw Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# DSH plugin in @1agents/acp-service
|
|
2
|
+
|
|
3
|
+
An out-of-tree DeepSeek Harness plugin for persistent external ACP Agent sessions. It requires the local DSH plugin and preset APIs available in 0.1.7-rc.2 and is embedded with the runtime and service in the single public `@1agents/acp-service` 0.5 package. This directory is a private source module, not a separately installable npm package. No DSH source files are modified.
|
|
4
|
+
|
|
5
|
+
## Use
|
|
6
|
+
|
|
7
|
+
For an existing `@1agents/dsh-acp` installation, stop DSH, remove that bundle and add `@1agents/acp-service`. Keep existing binding files and copy any custom row configuration. The same plugin and preset IDs preserve session identity. Custom preset rows now load `@1agents/acp-service/dsh/preset`.
|
|
8
|
+
|
|
9
|
+
Install the published bundles from your DSH checkout:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm dsh plugin --profile web add @1agents/acp-service @1agents/session-reader
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
If pnpm pauses the first install for the transitive `esbuild` build script, set `allowBuilds: { esbuild: false }` in that profile's `pnpm-workspace.yaml` and repeat the install. Automatic ACP startup uses published JavaScript and works without running that install script.
|
|
16
|
+
|
|
17
|
+
The package declares `dsh.bundle.patch` and its browser entry, so installation selects the bundle automatically. Restart `pnpm dsh web` after updating packages. If you use an installed `dsh` executable, omit the leading `pnpm`. Replace `web` with `desktop` for the desktop profile.
|
|
18
|
+
|
|
19
|
+
The plugin starts its bundled ACP service on `127.0.0.1:36812` when no service is listening. An existing healthy ACP service is reused. Start DSH normally; no separate service command is needed. To manage the service yourself, set `serviceMode: external` and run:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npx --yes @1agents/acp-service@^0.5.0 serve --host 127.0.0.1 --port 36812 --no-report
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The service requires each native Agent’s CLI and credentials. Installing the package alone starts no process; activating the plugin starts the service. For local development, install the built checkout with `pnpm dsh plugin --profile web add /absolute/path/1acp/packages/service`.
|
|
26
|
+
|
|
27
|
+
Choose a discovered **ACP · Agent** in the new-session Agent preset picker, choose a workspace, then send a message. ACP routes are not listed as ordinary DSH models, and the adapter rejects requests from ordinary presets, including previously saved ACP routes. Before the first turn, switching the Agent preset replaces the discovery connection and its native commands. Once a turn starts, the session keeps its remote Agent and workspace; start a new session to change Agent. Native Agent binaries and authentication belong to acp-service.
|
|
28
|
+
|
|
29
|
+
The bundle registers an ACP adapter through DSH's public streaming extension and routes the ACP presets to it. It sends newly admitted messages whose source is `user` to `session/prompt`, not to `subagent-acp`; there is no coordinating DeepSeek model call. DSH-generated workspace instructions and runtime-context messages are excluded. The external Agent owns its model, prompt, tools and native history, including any project instructions it discovers itself. DSH owns its UI and local user/assistant transcript. External tool progress appears in the thinking stream; it is never dispatched as a DSH tool call.
|
|
30
|
+
|
|
31
|
+
## Continue imported native sessions
|
|
32
|
+
|
|
33
|
+
With `@1agents/session-reader` installed, choose **在 DSH 中继续原会话** on a Claude, Codex or Grok history. The original workspace must still exist. The plugin restores the native session through acp-service's `_1agents/session/import`, creates DSH history under the matching ACP preset, and attaches it to that workspace. Importing sends no prompt. Subsequent messages go to the original Agent; imported messages are never resent, including an unfinished trailing user message. Unsupported sources stay readable in session-reader.
|
|
34
|
+
|
|
35
|
+
Imported bindings use `session/resume` because the service does not own a complete ACP replay of earlier native history. Existing ordinary ACP bindings continue using `session/load`. Endpoint, source provider and native ID identify an import; repeated admission reuses its DSH session without refreshing or replacing history. Old history-only DSH copies are not adopted. Original Agent history can continue changing outside DSH; the imported DSH history is a snapshot.
|
|
36
|
+
|
|
37
|
+
The service ID is saved before DSH creation. A failed local creation or workspace attachment can be retried after restart without importing again. Native restoration and authentication failures are reported, never replaced by a new empty session. If the transport is lost before the import response reaches the plugin, the plugin cannot know the service ID and does not automatically retry that RPC.
|
|
38
|
+
|
|
39
|
+
### Plugin service API
|
|
40
|
+
|
|
41
|
+
`ctx.oneagentsAcpSessions` is a Cordis service owned by this plugin; consumers may declare it optional so history browsing works without ACP. Its TypeScript declarations are exported from `@1agents/acp-service/dsh/imports`. Consumers call the service from the Host and must not instantiate it or write its binding files.
|
|
42
|
+
|
|
43
|
+
- `availability(provider)` returns `{ available, agent?, reason? }` without restoring a session. It checks configuration and the service inventory; successful native restoration remains the final capability/authentication check.
|
|
44
|
+
- `importSession({ provider, nativeSessionId, cwd, events })` accepts current DSH events starting at sequence zero. It returns `{ success: true, dshSessionId, workspace, workspaceId, agent, continuation: 'native' }` only after restoration, DSH creation and workspace attachment succeed.
|
|
45
|
+
|
|
46
|
+
Provider mapping is `claude → claude`, `codex → codex`, `grok → grok-build`. The service validates history through DSH before restoring a new native binding. No DSH Session format changes are required.
|
|
47
|
+
|
|
48
|
+
## Native commands and configuration
|
|
49
|
+
|
|
50
|
+
Opening an ACP session initializes or restores its remote session without sending a prompt. The plugin consumes `available_commands_update`, `config_option_update`, and mode updates. Advertised slash commands with names accepted by DSH (`[a-z][a-z0-9_-]*`) are registered in that session and forwarded verbatim through `session/prompt`, including their arguments. `/model` opens the model options advertised by the remote Agent. Choosing a model or reasoning setting uses `session/set_config_option`; choosing a mode uses `session/set_mode`. Unsupported options are not invented. Configuration changes are rejected while a turn runs.
|
|
51
|
+
|
|
52
|
+
The bundle disables the stock `ui-model-selection` row and supplies a session-aware model selector using DSH's existing UI slot and command contribution APIs. Ordinary sessions still select their DSH provider/model and reasoning effort; ACP sessions select only native Agent options. The Agent's additional options appear under **ACP 设置**. An idle ACP connection is retained so metadata updates and controls share the same session owner. The visible browser refreshes its capability snapshot every five seconds.
|
|
53
|
+
|
|
54
|
+
The bundle registers `oneagents-acp-*` presets with DSH's preset registry. Older filesystem presets remain untouched; DSH 0.1.7 uses registry declarations instead of scanning those files. ACP bindings are stored separately under `$DSH_HOME/plugins/1agents-acp/sessions`.
|
|
55
|
+
|
|
56
|
+
## Interactions and reconnection
|
|
57
|
+
|
|
58
|
+
ACP one-shot tool permissions use DSH's approval UI and policy. Grok questions and plan approval use its question UI. Persistent grants are not synthesized. Read operations follow acp-service's `approve-reads` policy; operations requiring permission are presented to the user.
|
|
59
|
+
|
|
60
|
+
Transport reconnects load the same service session and replay the current managed turn. Stable request IDs prevent duplicate execution, and update sequence numbers suppress duplicate output. A browser refresh leaves the Host request running. Stopping a DSH turn sends ACP cancellation. Provider errors fail the turn without automatic resubmission.
|
|
61
|
+
|
|
62
|
+
This plugin supports **text prompts**. Attachments and specialized external-tool cards are not implemented. Auxiliary DSH title/compaction calls cannot use this adapter; an advertised native compaction command runs in the external Agent. Existing standard-preset sessions that selected an old ACP route must choose a normal DSH model or start a new ACP-preset session.
|
|
63
|
+
|
|
64
|
+
## Configuration
|
|
65
|
+
|
|
66
|
+
The bundle's `oneagents-acp` row accepts `serviceUrl`, `serviceMode`, `serviceStartupTimeoutMs`, `serviceShutdownTimeoutMs`, `agents`, `stateDirectory`, `reconnectAttempts` and `reconnectDelayMs`. Change it through the profile's `cordis.patch.yml`, not the DSH repository. Use a new session after changing endpoint or workspace. When `agents` is omitted, plugin startup fetches `GET /agents` from acp-service and registers presets for entries with `chat_ready: true`, using their service-provided names. Discovery runs on the service host. Restart the plugin after installing or removing a harness. An explicit `agents` list bypasses discovery and preserves manual registry selection; `[]` registers no presets. Service startup, connection errors and invalid inventory responses fail plugin initialization instead of selecting fallback agents.
|
|
67
|
+
|
|
68
|
+
### Local service lifecycle
|
|
69
|
+
|
|
70
|
+
`serviceMode` defaults to `auto`. Only plain HTTP root URLs on `127.0.0.1`, `localhost` or `[::1]` can start a process. Remote URLs, HTTPS and URLs with a path or credentials remain external connections. `external` disables process management for every address. Use a stable nonzero port: native session bindings include the endpoint.
|
|
71
|
+
|
|
72
|
+
Before spawning, the plugin validates `/health`. Connection refusal permits startup; HTTP errors, authentication failures, timeouts and another application occupying the port fail explicitly. Startup waits for the child to listen and pass its health check before discovering Agent presets. `serviceStartupTimeoutMs` defaults to 15000 for each startup/health phase; `serviceShutdownTimeoutMs` defaults to 5000 before forced process exit.
|
|
73
|
+
|
|
74
|
+
Plugin disposal closes ACP connections before shutting down its owned service and awaiting process exit. Concurrent plugin instances in the same DSH process share an owned service until the last instance disposes. An existing service is never stopped. A worker also exits if its DSH parent crashes or is killed. If the worker itself crashes, requests fail through the normal ACP connection errors; restart the plugin to start a replacement. A service shared by separate DSH processes should be managed externally so stopping its owning DSH instance does not interrupt the others.
|
|
75
|
+
|
|
76
|
+
The child inherits DSH's environment, including native Agent configuration and credentials, and uses the service's existing state directory (`ACP_STATE_DIR` or `~/.1agents/acpx-state`). It starts with node reporting disabled. The plugin neither downloads executables at startup nor launches native Agents until a session needs one.
|
|
77
|
+
|
|
78
|
+
## Development and removal
|
|
79
|
+
|
|
80
|
+
Install and build from the repository root:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
pnpm install --frozen-lockfile
|
|
84
|
+
pnpm link:dsh /absolute/path/DSH
|
|
85
|
+
pnpm build
|
|
86
|
+
pnpm test:integration
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
The DSH checkout must already have its dependencies installed and declaration outputs built. Development type checking links its matching packages into `node_modules/@deepseek-ai`; generated JavaScript has no runtime imports of those packages and uses the Host's provided services. Tests cover real-WebSocket streaming, permissions, questions, cancellation, reconnection and saved bindings.
|
|
90
|
+
|
|
91
|
+
For manual service debugging on this machine, start it from `../service` with:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
CODEX_PATH=/Applications/ChatGPT.app/Contents/Resources/codex \
|
|
95
|
+
npm_config_cache="$HOME/.dsh/plugins/1agents-acp/npm-cache" \
|
|
96
|
+
node dist/bin/acp-service.js serve --host 127.0.0.1 --port 36812 --no-report
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
For automatic startup, set these environment variables on the DSH process instead. `CODEX_PATH` selects the installed app's newer Codex runtime; the global CLI on this machine rejects its configured `gpt-6-astra` model. The separate npm cache avoids a broken pre-existing npx cache. Neither setting changes the global Codex configuration.
|
|
100
|
+
|
|
101
|
+
Remove using `pnpm dsh plugin --profile web remove @1agents/acp-service`, then restart DSH; removing the bundle also restores the stock model-selection row. The preset registrations are removed with the bundle. Keep binding files if sessions may be reattached later.
|