@qlairoslabs/acp-client 0.6.0 → 0.7.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/CONSUMER_GUIDE.md +618 -291
- package/README.md +25 -0
- package/package.json +1 -1
- package/src/agent-session.ts +2188 -96
- package/src/cli/index.ts +33 -5
- package/src/cli/managed.ts +220 -0
- package/src/command-descriptors.ts +22 -0
- package/src/controller.ts +87 -37
- package/src/index.ts +229 -3
- package/src/metering/engine.ts +9 -1
- package/src/metering/record.ts +2 -1
- package/src/persistence/activity-projection.ts +71 -0
- package/src/persistence/audit-log-reader.ts +506 -0
- package/src/persistence/audit-runtime.ts +162 -0
- package/src/persistence/checkpoint.ts +304 -0
- package/src/persistence/config.ts +538 -0
- package/src/persistence/configuration-state.ts +191 -0
- package/src/persistence/deletion.ts +227 -0
- package/src/persistence/file-registry-store.ts +740 -0
- package/src/persistence/integrity.ts +147 -0
- package/src/persistence/legacy-registry-import.ts +240 -0
- package/src/persistence/managed-checkpoint.ts +81 -0
- package/src/persistence/managed-creation.ts +456 -0
- package/src/persistence/managed-load.ts +172 -0
- package/src/persistence/managed-registry.ts +57 -0
- package/src/persistence/migration.ts +298 -0
- package/src/persistence/paths.ts +172 -0
- package/src/persistence/projection.ts +373 -0
- package/src/persistence/reconfiguration.ts +453 -0
- package/src/persistence/records.ts +873 -0
- package/src/persistence/reducer.ts +498 -0
- package/src/persistence/registry.ts +446 -0
- package/src/persistence/restoration.ts +689 -0
- package/src/persistence/session-log-writer.ts +480 -0
- package/src/persistence/state-runtime.ts +176 -0
- package/src/persistence/transcript-reader.ts +980 -0
- package/src/persistence/transcript-runtime.ts +667 -0
- package/src/persistence/transcript-scanner.ts +385 -0
- package/src/persistence/truncation.ts +276 -0
- package/src/repl/agent-session-commands.ts +74 -1
- package/src/repl/commands.ts +1 -1
- package/src/repl/index.ts +7 -1
- package/src/session-manager.ts +257 -7
- package/src/transcript.ts +3 -3
package/README.md
CHANGED
|
@@ -484,6 +484,31 @@ acp-client chat -v | -d # verbose lifecycle / debug payloads
|
|
|
484
484
|
acp-client chat --wire[=FILE] # dump every raw protocol line (stderr, or ndjson to FILE)
|
|
485
485
|
```
|
|
486
486
|
|
|
487
|
+
The managed CLI is the opinionated `SessionManager` consumer. `create`, `open` (also
|
|
488
|
+
`load`/`resume`), and `restore` acquire one stable logical `AgentSession` and enter its
|
|
489
|
+
REPL; `/...` controls that logical session and `//...` explicitly targets the active
|
|
490
|
+
harness thread. Lifecycle and offline inspection remain available as separate commands:
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
acp-client create [AGENT_SESSION_ID] --adapter opencode
|
|
494
|
+
acp-client open AGENT_SESSION_ID
|
|
495
|
+
acp-client sessions [--all] [--json]
|
|
496
|
+
acp-client info AGENT_SESSION_ID [--include-deleted] [--json]
|
|
497
|
+
acp-client checkpoint AGENT_SESSION_ID [--registry-projection]
|
|
498
|
+
acp-client maintenance [AGENT_SESSION_ID] [--json]
|
|
499
|
+
acp-client restore AGENT_SESSION_ID
|
|
500
|
+
acp-client reconfigure AGENT_SESSION_ID --replace-transcript --preset detailed --yes
|
|
501
|
+
acp-client delete AGENT_SESSION_ID --delete-transcript --yes
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
All managed commands accept `--root`; otherwise the manager uses `ACP_CLIENT_HOME` and
|
|
505
|
+
then `~/.acp-client`. A recorded built-in adapter is resolved automatically on open or
|
|
506
|
+
restore. Supply `--adapter-command` again for a custom adapter. Use `--no-repl` when a
|
|
507
|
+
create/open/restore command should only acquire, report, checkpoint, and stop the session.
|
|
508
|
+
|
|
509
|
+
The older `chat` command remains the direct `AgentController` CLI for compatibility. It
|
|
510
|
+
manipulates one provider thread and is deliberately separate from the managed catalog.
|
|
511
|
+
|
|
487
512
|
Activity markers (thinking/tool) show by default; `--no-activity` disables them.
|
|
488
513
|
|
|
489
514
|
Presets are launch shortcuts, not provider definitions. For a custom harness,
|