@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/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
  /**