@ampcode/plugin 0.0.0-20260925001753-g49e7366 → 0.0.0-20260926001730-geeadb15

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 +18 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -184,6 +184,11 @@ declare module '@ampcode/plugin' {
184
184
  * idempotency key because an executor can stop after the handler succeeds but
185
185
  * before durable consumption is recorded. Handlers have 30 seconds to complete;
186
186
  * `ctx.signal` is aborted when that deadline elapses, and the event is retried.
187
+ * A request to an unarchived owner wakes or resumes its Orb. Archiving the owning
188
+ * thread makes the URL unavailable and pauses queued delivery until the thread is
189
+ * restored. Handler failures retry after 5 seconds with exponential backoff capped
190
+ * at 5 minutes. Amp drops an event after 1 hour of handler failures, and later events
191
+ * can run while an earlier event is waiting to retry.
187
192
  *
188
193
  * @example
189
194
  * ```ts
@@ -2038,6 +2043,12 @@ declare module '@ampcode/plugin' {
2038
2043
  model?: PluginAIModel
2039
2044
  /** Run entirely on Amp's thread actor without creating or attaching an executor. */
2040
2045
  serverOnly?: boolean
2046
+ /**
2047
+ * Marks a work-in-progress agent. Drafts are hidden from agent pickers but still start
2048
+ * threads by key, so the author can try them. The agent builder sets this while an agent
2049
+ * is being shaped and clears it when the author is done.
2050
+ */
2051
+ draft?: boolean
2041
2052
  /**
2042
2053
  * Built-in tools available to this agent: 'all' for all tools available in its runtime,
2043
2054
  * a list of tool names with `*` suffix wildcards, or an object that adjusts the default
@@ -2071,6 +2082,13 @@ declare module '@ampcode/plugin' {
2071
2082
  subagents?: AgentSubagentPin
2072
2083
  /** Features required on threads created from this agent. */
2073
2084
  features?: readonly AgentFeature[]
2085
+ /**
2086
+ * IDs (slugs) of the remote MCP servers this agent works with, as shown in Settings →
2087
+ * MCP Servers. They are named in the agent's rendered instructions so the model knows to
2088
+ * reach them through code mode (`tool_search`/`code_exec`). They do not restrict which
2089
+ * servers the thread can reach.
2090
+ */
2091
+ mcpServers?: readonly string[]
2074
2092
  }
2075
2093
 
2076
2094
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260925001753-g49e7366",
3
+ "version": "0.0.0-20260926001730-geeadb15",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/docs/plugin-api",
6
6
  "author": {