@ampcode/plugin 0.0.0-20260923001649-g009f5d9 → 0.0.0-20260924001720-g7fda6e0
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 +15 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1276,11 +1276,14 @@ declare module '@ampcode/plugin' {
|
|
|
1276
1276
|
*/
|
|
1277
1277
|
export interface PluginDialogOptions {
|
|
1278
1278
|
/**
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
1282
|
-
*
|
|
1283
|
-
*
|
|
1279
|
+
* Require a human response rather than an agent response. The thread owner can answer these
|
|
1280
|
+
* dialogs. While multiplayer is active, human contributors can also answer interactive
|
|
1281
|
+
* selections, confirmations, and non-secret inputs, including dialogs with `requireHuman: true`.
|
|
1282
|
+
* Secret inputs (`secret: true`) remain owner-only and always require a human. Dialogs targeted
|
|
1283
|
+
* to a specific connection are not shared with contributors.
|
|
1284
|
+
*
|
|
1285
|
+
* Use this for approval and permission prompts. It does not grant agents access to dialogs
|
|
1286
|
+
* or enable them to answer on the owner's behalf.
|
|
1284
1287
|
*/
|
|
1285
1288
|
requireHuman?: boolean
|
|
1286
1289
|
}
|
|
@@ -1983,7 +1986,13 @@ declare module '@ampcode/plugin' {
|
|
|
1983
1986
|
[key: string]: unknown
|
|
1984
1987
|
}
|
|
1985
1988
|
|
|
1986
|
-
/**
|
|
1989
|
+
/**
|
|
1990
|
+
* Execute the tool with the given input and return a result.
|
|
1991
|
+
*
|
|
1992
|
+
* Returning nothing is allowed and is shown to the model as `(no tool output)`. Throw an
|
|
1993
|
+
* error to report a failure; the model then sees a tool error instead of a successful
|
|
1994
|
+
* empty result.
|
|
1995
|
+
*/
|
|
1987
1996
|
execute: (
|
|
1988
1997
|
input: Record<string, unknown>,
|
|
1989
1998
|
ctx: PluginToolContext,
|