@ampcode/plugin 0.0.0-20260430003013-g03bdb0e → 0.0.0-20260501003203-gcbffc58

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
@@ -46,6 +46,7 @@ declare module '@ampcode/plugin' {
46
46
  shellCommandFromToolCall: ShellCommandFromToolCall
47
47
  toolCallsInMessages: ToolCallsInMessages
48
48
  filesModifiedByToolCall: FilesModifiedByToolCall
49
+ filePathFromURI: FilePathFromURI
49
50
  }
50
51
 
51
52
  /**
@@ -715,6 +716,11 @@ declare module '@ampcode/plugin' {
715
716
  */
716
717
  export type FilesModifiedByToolCall = (event: ToolCall | ToolResult) => URI[] | null
717
718
 
719
+ /**
720
+ * Converts a file URI returned by helper APIs to a local filesystem path.
721
+ */
722
+ export type FilePathFromURI = (uri: URI) => string
723
+
718
724
  /**
719
725
  * Options for registering a command.
720
726
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260430003013-g03bdb0e",
3
+ "version": "0.0.0-20260501003203-gcbffc58",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/manual/plugin-api",
6
6
  "author": {