@ampcode/plugin 0.0.0-20260505003009-gecb28b5 → 0.0.0-20260506002930-gb6c251f

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 +6 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -47,6 +47,7 @@ declare module '@ampcode/plugin' {
47
47
  toolCallsInMessages: ToolCallsInMessages
48
48
  filesModifiedByToolCall: FilesModifiedByToolCall
49
49
  filePathFromURI: FilePathFromURI
50
+ isPluginUINotAvailableError: IsPluginUINotAvailableError
50
51
  }
51
52
 
52
53
  /**
@@ -727,6 +728,11 @@ declare module '@ampcode/plugin' {
727
728
  */
728
729
  export type FilePathFromURI = (uri: URI) => string
729
730
 
731
+ /**
732
+ * Determines whether an instance of Error indicates that no Plugin UI is available.
733
+ */
734
+ export type IsPluginUINotAvailableError = (error: Error) => boolean
735
+
730
736
  /**
731
737
  * Options for registering a command.
732
738
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260505003009-gecb28b5",
3
+ "version": "0.0.0-20260506002930-gb6c251f",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/manual/plugin-api",
6
6
  "author": {