@ampcode/plugin 0.0.0-20261102001236-gf10f41a → 0.0.0-20261104001221-gc8c68be

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 +29 -1
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -199,6 +199,10 @@ declare module '@ampcode/plugin' {
199
199
  * at 5 minutes. Amp drops an event after 1 hour of handler failures, and later events
200
200
  * can run while an earlier event is waiting to retry.
201
201
  *
202
+ * For callbacks that do not require an executor, use `createWebhook` in an
203
+ * `@ampcode/plugin/omni` plugin installed on a thread, user, or workspace actor.
204
+ * User and workspace actor registrations do not depend on a thread staying alive.
205
+ *
202
206
  * @example
203
207
  * ```ts
204
208
  * const { url } = await amp.createWebhook({
@@ -367,7 +371,17 @@ declare module '@ampcode/plugin' {
367
371
  exclude?: readonly string[]
368
372
  }
369
373
 
374
+ /** Execution identity requested by an agent, not its display name or prompt persona. */
375
+ export type PluginAgentOwner = { type: 'user' } | { type: 'service-account'; userID: string }
376
+
370
377
  export interface CreateAgentConfig {
378
+ /**
379
+ * Defaults to the launching user. `user` uses the webhook's saved execution user.
380
+ * Service accounts are supported by workspace-owned omni webhook agents only. The server
381
+ * requires a current workspace admin and an enabled account in that workspace at launch
382
+ * and append. This selects existing account access and credentials, not a new secret grant.
383
+ */
384
+ owner?: PluginAgentOwner
371
385
  /**
372
386
  * Optional agent identity. Amp includes this name in the base system prompt as
373
387
  * `You are <name>, a custom agent running in Amp.` It is also used for logs, UI,
@@ -399,6 +413,13 @@ declare module '@ampcode/plugin' {
399
413
  * prompt when `extends` is set. Required unless `extends` is set.
400
414
  */
401
415
  instructions?: string
416
+ /**
417
+ * Set true to use `instructions` verbatim as the entire system prompt, without Amp's
418
+ * base prompt, identity, environment, or workspace guidance. Defaults to false.
419
+ * Overrides the prompt inherited through `extends`, but not its model or tools.
420
+ * Tool definitions and conversation messages are unaffected.
421
+ */
422
+ omitDefaultSystemPrompt?: boolean
402
423
  /**
403
424
  * Tools available to this agent. Use 'all' for its provider-appropriate built-in tools
404
425
  * plus plugin, MCP, and remote tools available in its runtime.
@@ -635,7 +656,7 @@ declare module '@ampcode/plugin' {
635
656
  * Defaults to the agent definition's `display.color`.
636
657
  */
637
658
  color?: string
638
- /** Agent definition used when creating a thread with this mode selected. */
659
+ /** Agent definition, including its execution owner, used when creating a thread. */
639
660
  agent: AgentDefinition
640
661
  }
641
662
 
@@ -2589,6 +2610,13 @@ declare module '@ampcode/plugin' {
2589
2610
  * for the built-in mode do not change its model.
2590
2611
  */
2591
2612
  extends?: 'low' | 'medium' | 'high' | 'ultra'
2613
+ /**
2614
+ * Set true to use `instructions.md` verbatim as the entire system prompt, without
2615
+ * Amp's base prompt, identity, environment, workspace, or MCP server guidance.
2616
+ * Defaults to false. Overrides the prompt inherited through `extends`, but not its
2617
+ * model or tools. Tool definitions and conversation messages are unaffected.
2618
+ */
2619
+ omitDefaultSystemPrompt?: boolean
2592
2620
  /**
2593
2621
  * Model identifier in `provider/model` format, such as `anthropic/claude-sonnet-4-6`.
2594
2622
  * Omit to use the default model, or the extended mode's model when `extends` is set.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20261102001236-gf10f41a",
3
+ "version": "0.0.0-20261104001221-gc8c68be",
4
4
  "description": "Amp Plugin API",
5
5
  "license": "Amp Commercial License",
6
6
  "homepage": "https://ampcode.com/docs/plugin-api",
@@ -30,9 +30,9 @@
30
30
  "sideEffects": false,
31
31
  "scripts": {
32
32
  "build": "tsgo -b",
33
- "format:check": "bun fmt --check index.d.ts",
33
+ "format:check": "bun fmt --check index.d.ts omni.d.ts",
34
34
  "test": "echo 'No tests'",
35
- "lint": "biome check --config-path=../.. index.d.ts",
35
+ "lint": "biome check --config-path=../.. index.d.ts omni.d.ts",
36
36
  "typecheck": "tsgo -b"
37
37
  },
38
38
  "devDependencies": {