@ampcode/plugin 0.0.0-20260623023715-g6a0df08 → 0.0.0-20260624023801-gf6a0633

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 +14 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -126,7 +126,13 @@ declare module '@ampcode/plugin' {
126
126
  */
127
127
  getBuiltinAgent(mode: BuiltinAgentMode, options?: GetBuiltinAgentOptions): Agent
128
128
 
129
- /** Register a custom agent mode that clients may show alongside built-in modes. */
129
+ /**
130
+ * Register a custom agent mode that clients may show alongside built-in modes.
131
+ *
132
+ * Web clients discover plugin modes from `// @amp-agent-mode ...` metadata
133
+ * comments without executing plugin code. Include one comment for each
134
+ * registered mode; multiple mode comments in one plugin file are supported.
135
+ */
130
136
  registerAgentMode(definition: PluginAgentModeDefinition): Subscription
131
137
 
132
138
  /**
@@ -177,7 +183,13 @@ declare module '@ampcode/plugin' {
177
183
  */
178
184
  getBuiltinAgent(mode: BuiltinAgentMode, options?: GetBuiltinAgentOptions): Agent
179
185
 
180
- /** Register a custom agent mode that clients may show alongside built-in modes. */
186
+ /**
187
+ * Register a custom agent mode that clients may show alongside built-in modes.
188
+ *
189
+ * Web clients discover plugin modes from `// @amp-agent-mode ...` metadata
190
+ * comments without executing plugin code. Include one comment for each
191
+ * registered mode; multiple mode comments in one plugin file are supported.
192
+ */
181
193
  registerAgentMode(definition: PluginAgentModeDefinition): Subscription
182
194
 
183
195
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260623023715-g6a0df08",
3
+ "version": "0.0.0-20260624023801-gf6a0633",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/manual/plugin-api",
6
6
  "author": {