@ampcode/plugin 0.0.0-20260902001824-gcbd038f → 0.0.0-20260903001817-g400a7f3

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -1
  2. 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
  */
@@ -1859,7 +1865,9 @@ declare module '@ampcode/plugin' {
1859
1865
  * Built-in tools available to this agent: 'all' for all tools available in its runtime,
1860
1866
  * a list of tool names with `*` suffix wildcards, or an object that adjusts the default
1861
1867
  * 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.
1868
+ * `extends` to add tools on top of the built-in mode's tool list. `mcp__*` matches all
1869
+ * MCP tools and `plugin__*` matches all plugin tools (also matched as
1870
+ * `plugin__<pluginName>__<toolName>`).
1863
1871
  */
1864
1872
  tools?:
1865
1873
  | 'all'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260902001824-gcbd038f",
3
+ "version": "0.0.0-20260903001817-g400a7f3",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/docs/plugin-api",
6
6
  "author": {