@ampcode/plugin 0.0.0-20260902001824-gcbd038f → 0.0.0-20260904001652-g2bd7889
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 +10 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -369,6 +369,12 @@ declare module '@ampcode/plugin' {
|
|
|
369
369
|
* Tools available to this agent. Use 'all' for its provider-appropriate built-in tools
|
|
370
370
|
* plus plugin, MCP, and remote tools available in its runtime.
|
|
371
371
|
*
|
|
372
|
+
* Explicit tool lists (arrays and `include`/`exclude` entries) match tool names as
|
|
373
|
+
* glob patterns: `mcp__*` matches all MCP tools (named `mcp__<server>__<tool>`), and
|
|
374
|
+
* `plugin__*` matches all plugin tools (also matched as `plugin__<pluginName>__<toolName>`
|
|
375
|
+
* even though plugin tools are registered under their bare names). Include such an entry
|
|
376
|
+
* in explicit lists so the user's plugin and MCP tools stay available.
|
|
377
|
+
*
|
|
372
378
|
* Run `amp plugins show-agent-options --json` for built-in tool names intended for
|
|
373
379
|
* plugin agents.
|
|
374
380
|
*/
|
|
@@ -641,6 +647,7 @@ declare module '@ampcode/plugin' {
|
|
|
641
647
|
| 'deepseek'
|
|
642
648
|
| 'fireworks-ai'
|
|
643
649
|
| 'google-vertex'
|
|
650
|
+
| 'meta'
|
|
644
651
|
| 'minimax'
|
|
645
652
|
| 'openai'
|
|
646
653
|
| 'xai'
|
|
@@ -1859,7 +1866,9 @@ declare module '@ampcode/plugin' {
|
|
|
1859
1866
|
* Built-in tools available to this agent: 'all' for all tools available in its runtime,
|
|
1860
1867
|
* a list of tool names with `*` suffix wildcards, or an object that adjusts the default
|
|
1861
1868
|
* list (`add` unions extra tools into it; `exclude` removes tools). Use `add` with
|
|
1862
|
-
* `extends` to add tools on top of the built-in mode's tool list.
|
|
1869
|
+
* `extends` to add tools on top of the built-in mode's tool list. `mcp__*` matches all
|
|
1870
|
+
* MCP tools and `plugin__*` matches all plugin tools (also matched as
|
|
1871
|
+
* `plugin__<pluginName>__<toolName>`).
|
|
1863
1872
|
*/
|
|
1864
1873
|
tools?:
|
|
1865
1874
|
| 'all'
|