@ampcode/plugin 0.0.0-20260728002927-g60f34f5 → 0.0.0-20260729002615-g8a974c9

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 +11 -11
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -111,11 +111,9 @@ declare module '@ampcode/plugin' {
111
111
  /**
112
112
  * Register a callback that runs before this plugin instance is stopped.
113
113
  *
114
- * Dispose callbacks run when the plugin is unloaded, when a modified plugin
115
- * is reloaded (the old instance's callbacks complete before the new instance
116
- * is activated), and on graceful host shutdown. Use them to release resources
117
- * the plugin owns outside its own process, such as child processes, remote
118
- * sessions, or temporary files.
114
+ * Dispose callbacks run when the plugin is unloaded or reloaded and on graceful
115
+ * host shutdown. Use them to release resources the plugin owns outside its own
116
+ * process, such as child processes, remote sessions, or temporary files.
119
117
  *
120
118
  * The host bounds cleanup time: all of a plugin's dispose callbacks together
121
119
  * get about 3 seconds. After they settle or the budget elapses, the plugin
@@ -148,7 +146,6 @@ declare module '@ampcode/plugin' {
148
146
  * before durable consumption is recorded. Handlers have 30 seconds to complete;
149
147
  * `ctx.signal` is aborted when that deadline elapses, and the event is retried.
150
148
  *
151
- * @experimental
152
149
  * @example
153
150
  * ```ts
154
151
  * const { url } = await amp.createWebhook({
@@ -310,7 +307,11 @@ declare module '@ampcode/plugin' {
310
307
  }
311
308
 
312
309
  export interface CreateAgentConfig {
313
- /** Optional stable identifier for logs, UI, and persisted run metadata. */
310
+ /**
311
+ * Optional agent identity. Amp includes this name in the base system prompt as
312
+ * `You are <name>, a custom agent running in Amp.` It is also used for logs, UI,
313
+ * and persisted run metadata. Omit it to avoid adding a named identity to the prompt.
314
+ */
314
315
  name?: string
315
316
  /**
316
317
  * Model identifier in `provider/model` format, such as `anthropic/claude-sonnet-4-6`.
@@ -392,11 +393,10 @@ declare module '@ampcode/plugin' {
392
393
  /** Show the created thread and make it active in the client when supported. */
393
394
  show?: boolean
394
395
  /**
395
- * Serving speed for the new thread. When omitted, the thread inherits the
396
- * creating thread's speed. Fast mode uses faster serving for supported
397
- * models and is billed at a premium.
396
+ * Features for the new thread. Omit to inherit the creating thread's features;
397
+ * pass an empty array to clear them.
398
398
  */
399
- speed?: 'standard' | 'fast'
399
+ features?: readonly 'fast'[]
400
400
  /**
401
401
  * Enable multiplayer for this many seconds. Multiplayer threads must run in an
402
402
  * Orb and belong to a workspace. Valid values range from 5 minutes to 7 days.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260728002927-g60f34f5",
3
+ "version": "0.0.0-20260729002615-g8a974c9",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/manual/plugin-api",
6
6
  "author": {