@agentproto/cli 0.1.0 → 0.1.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/dist/cli.mjs +807 -171
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.mjs +706 -94
- package/dist/index.mjs.map +1 -1
- package/dist/registry/builtins.mjs +78 -54
- 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.mjs +1 -1
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,11 @@ declare function runServe(args: readonly string[]): Promise<number>;
|
|
|
91
91
|
* supports MD-source authoring end to end.
|
|
92
92
|
*/
|
|
93
93
|
|
|
94
|
+
/** Slash-command declared in an adapter manifest (AIP-45 `commands[]`). */
|
|
95
|
+
interface AgentCliCommand {
|
|
96
|
+
name: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
}
|
|
94
99
|
interface ResolvedAdapter {
|
|
95
100
|
readonly slug: string;
|
|
96
101
|
readonly handle: AgentCliHandle;
|
|
@@ -118,6 +123,15 @@ interface AdapterInfo {
|
|
|
118
123
|
streaming: boolean;
|
|
119
124
|
/** npm package name (for install hints / "open in npmjs.com" links). */
|
|
120
125
|
packageName: string;
|
|
126
|
+
/** Slash-commands the agent CLI accepts as ordinary text turns.
|
|
127
|
+
* Empty when the adapter doesn't declare any. */
|
|
128
|
+
commands: AgentCliCommand[];
|
|
129
|
+
/** Known-valid model identifiers for this adapter, drawn from the
|
|
130
|
+
* adapter manifest's `models.allowed` field. Empty when the adapter
|
|
131
|
+
* doesn't declare a model list (accepts whatever the underlying
|
|
132
|
+
* binary accepts). Pass one of these as `model` in `start_agent_session`
|
|
133
|
+
* to avoid trial-and-error validation errors. */
|
|
134
|
+
models: string[];
|
|
121
135
|
}
|
|
122
136
|
declare function resolveAdapter(slug: string): Promise<ResolvedAdapter>;
|
|
123
137
|
/**
|