@ampcode/plugin 0.0.0-20260429003027-g6a41824 → 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.
- package/index.d.ts +9 -0
- 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
|
/**
|
|
@@ -394,6 +395,9 @@ declare module '@ampcode/plugin' {
|
|
|
394
395
|
/** Dialog title */
|
|
395
396
|
title: string
|
|
396
397
|
|
|
398
|
+
/** Message body shown below the title */
|
|
399
|
+
message?: string
|
|
400
|
+
|
|
397
401
|
/** Entries to display as choices */
|
|
398
402
|
options: string[]
|
|
399
403
|
}
|
|
@@ -712,6 +716,11 @@ declare module '@ampcode/plugin' {
|
|
|
712
716
|
*/
|
|
713
717
|
export type FilesModifiedByToolCall = (event: ToolCall | ToolResult) => URI[] | null
|
|
714
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
|
+
|
|
715
724
|
/**
|
|
716
725
|
* Options for registering a command.
|
|
717
726
|
*/
|