@ampcode/plugin 0.0.0-20260708002750-gee09e57 → 0.0.0-20260710003335-gaf98d42
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/index.d.ts +17 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -120,9 +120,11 @@ declare module '@ampcode/plugin' {
|
|
|
120
120
|
createAgent(config: CreateAgentConfig): Agent
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Get an agent handle for one of Amp's built-in agent modes (`
|
|
124
|
-
* `
|
|
125
|
-
* mode's prompt and tools, like a thread the user started in that
|
|
123
|
+
* Get an agent handle for one of Amp's built-in agent modes (`low`,
|
|
124
|
+
* `medium`, `high`, or `ultra`). Threads spawned from the handle run the
|
|
125
|
+
* built-in mode's prompt and tools, like a thread the user started in that
|
|
126
|
+
* mode. Deprecated modes (`smart`, `deep`, `rush`) are accepted for
|
|
127
|
+
* backward compatibility and spawn threads in their replacement mode.
|
|
126
128
|
*/
|
|
127
129
|
getBuiltinAgent(mode: BuiltinAgentMode, options?: GetBuiltinAgentOptions): Agent
|
|
128
130
|
|
|
@@ -179,9 +181,11 @@ declare module '@ampcode/plugin' {
|
|
|
179
181
|
createAgent(config: CreateAgentConfig): Agent
|
|
180
182
|
|
|
181
183
|
/**
|
|
182
|
-
* Get an agent handle for one of Amp's built-in agent modes (`
|
|
183
|
-
* `
|
|
184
|
-
* mode's prompt and tools, like a thread the user started in that
|
|
184
|
+
* Get an agent handle for one of Amp's built-in agent modes (`low`,
|
|
185
|
+
* `medium`, `high`, or `ultra`). Threads spawned from the handle run the
|
|
186
|
+
* built-in mode's prompt and tools, like a thread the user started in that
|
|
187
|
+
* mode. Deprecated modes (`smart`, `deep`, `rush`) are accepted for
|
|
188
|
+
* backward compatibility and spawn threads in their replacement mode.
|
|
185
189
|
*/
|
|
186
190
|
getBuiltinAgent(mode: BuiltinAgentMode, options?: GetBuiltinAgentOptions): Agent
|
|
187
191
|
|
|
@@ -231,8 +235,13 @@ declare module '@ampcode/plugin' {
|
|
|
231
235
|
| 'xhigh'
|
|
232
236
|
| 'max'
|
|
233
237
|
|
|
234
|
-
/**
|
|
235
|
-
|
|
238
|
+
/**
|
|
239
|
+
* Amp built-in agent modes available to plugins. The `smart`, `deep`, and
|
|
240
|
+
* `rush` modes are deprecated: existing threads in those modes keep working,
|
|
241
|
+
* but new threads spawned from them start in the replacement mode
|
|
242
|
+
* (`rush` → `low`; `smart`/`deep` → `medium`).
|
|
243
|
+
*/
|
|
244
|
+
export type BuiltinAgentMode = 'low' | 'medium' | 'high' | 'ultra' | 'smart' | 'deep' | 'rush'
|
|
236
245
|
|
|
237
246
|
export type AgentToolSelection =
|
|
238
247
|
| readonly string[]
|