@ampcode/plugin 0.0.0-20260919001729-g2c73376 → 0.0.0-20260921001857-g6fa23da

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 +19 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -310,7 +310,7 @@ declare module '@ampcode/plugin' {
310
310
  | 'max'
311
311
 
312
312
  /** Features that plugin agents can enable on threads they create. */
313
- export type AgentFeature = 'fast' | 'pro' | string
313
+ export type AgentFeature = 'fast' | 'plaid' | 'pro' | string
314
314
 
315
315
  /**
316
316
  * Amp built-in agent modes available to plugins. The `smart`, `deep`, and
@@ -661,7 +661,9 @@ declare module '@ampcode/plugin' {
661
661
  | 'google-vertex'
662
662
  | 'meta'
663
663
  | 'minimax'
664
+ | 'moonshotai'
664
665
  | 'openai'
666
+ | 'thinkingmachines'
665
667
  | 'xai'
666
668
  | 'zhipuai'
667
669
 
@@ -1265,6 +1267,22 @@ declare module '@ampcode/plugin' {
1265
1267
 
1266
1268
  /** Text for the submit button (default: "Submit") */
1267
1269
  submitButtonText?: string
1270
+
1271
+ /**
1272
+ * Treat the entered text as a secret such as an API key or password. Clients present the
1273
+ * text as sensitive (the TUI masks it; the web dialog lets the user hide it), and the value
1274
+ * is returned only to the requester: it is never echoed in settled request state, thread
1275
+ * history, or the model's transcript.
1276
+ */
1277
+ secret?: boolean
1278
+
1279
+ /**
1280
+ * Stable machine-readable name for what the input holds, such as an environment variable
1281
+ * or API key name (`OPENAI_API_KEY`). The dialog uses it as the input's `name`, `id`,
1282
+ * `placeholder`, and `data-secret-name`, which password managers such as 1Password and
1283
+ * Bitwarden read to recognize the field and label the saved item.
1284
+ */
1285
+ fieldName?: string
1268
1286
  }
1269
1287
 
1270
1288
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260919001729-g2c73376",
3
+ "version": "0.0.0-20260921001857-g6fa23da",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/docs/plugin-api",
6
6
  "author": {