@agentproto/cli 0.4.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/dist/cli.mjs +21791 -15739
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.mjs +9361 -1374
- package/dist/index.mjs.map +1 -1
- package/dist/registry/builtins.mjs +22 -14
- package/dist/registry/builtins.mjs.map +1 -1
- package/dist/registry/manifest.mjs +1 -1
- package/dist/registry/plugins.mjs +1 -1
- package/dist/registry/runtime.mjs +1 -1
- package/dist/util/credentials.d.ts +4 -2
- package/dist/util/credentials.mjs +3 -1
- package/dist/util/credentials.mjs.map +1 -1
- package/package.json +19 -17
- package/skill/agentproto/SKILL.md +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentCliHandle } from '@agentproto/driver-agent-cli';
|
|
1
|
+
import { AgentCliMode, AgentCliHandle } from '@agentproto/driver-agent-cli';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `agentproto install <slug>`
|
|
@@ -102,6 +102,17 @@ interface ResolvedAdapter {
|
|
|
102
102
|
readonly source: "npm" | "file" | "bundled";
|
|
103
103
|
readonly packageName?: string;
|
|
104
104
|
}
|
|
105
|
+
/** Mode metadata surfaced in `adapter_list` — the UI-safe subset of an
|
|
106
|
+
* AIP-45 `modes[]` entry. Omits the spawn internals (`bin_args_*`, `env`)
|
|
107
|
+
* since those aren't information a picker needs; carries the honest
|
|
108
|
+
* `status`/`status_note` so a declared-but-no-op mode is visible. */
|
|
109
|
+
interface AdapterMode {
|
|
110
|
+
id: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
/** Absent in the manifest ⇒ normalised to "active" here. */
|
|
113
|
+
status: NonNullable<AgentCliMode["status"]>;
|
|
114
|
+
status_note?: string;
|
|
115
|
+
}
|
|
105
116
|
/**
|
|
106
117
|
* Compact metadata about an installed adapter — the shape returned
|
|
107
118
|
* by `listInstalledAdapters()` and exposed via the daemon's
|
|
@@ -132,6 +143,11 @@ interface AdapterInfo {
|
|
|
132
143
|
* binary accepts). Pass one of these as `model` in `agent_start`
|
|
133
144
|
* to avoid trial-and-error validation errors. */
|
|
134
145
|
models: string[];
|
|
146
|
+
/** AIP-45 `modes[]` the adapter declares, projected to the UI-safe
|
|
147
|
+
* subset (id + description + honest status). Empty when the adapter
|
|
148
|
+
* declares no modes. `status` defaults to "active" when the manifest
|
|
149
|
+
* omits it, so a declared mode is never silently statusless. */
|
|
150
|
+
modes: AdapterMode[];
|
|
135
151
|
}
|
|
136
152
|
declare function resolveAdapter(slug: string): Promise<ResolvedAdapter>;
|
|
137
153
|
/**
|