@ampcode/plugin 0.0.0-20261019001835-g91990d5 → 0.0.0-20261020001645-gf9bc6c0

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 +5 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2077,7 +2077,11 @@ declare module '@ampcode/plugin' {
2077
2077
  export type FilePathFromURI = (uri: URI) => string
2078
2078
 
2079
2079
  /**
2080
- * Determines whether an instance of Error indicates that no Plugin UI is available.
2080
+ * Determines whether an error thrown by `ui.input`, `ui.confirm`, or `ui.select` means the
2081
+ * dialog could not be shown to anyone, as opposed to being shown and dismissed. This happens
2082
+ * when the client has no UI (for example `amp -x`) and when the tool was called from inside
2083
+ * code_exec, which cannot wait for a person. A dismissed dialog never throws; it resolves to
2084
+ * `undefined` or `false`.
2081
2085
  */
2082
2086
  export type IsPluginUINotAvailableError = (error: Error) => boolean
2083
2087
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20261019001835-g91990d5",
3
+ "version": "0.0.0-20261020001645-gf9bc6c0",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/docs/plugin-api",
6
6
  "author": {