@mariozechner/pi-coding-agent 0.52.7 → 0.52.8
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/CHANGELOG.md +27 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +1 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/package-manager.d.ts +1 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +21 -2
- package/dist/core/package-manager.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +165 -72
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +10 -3
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +4 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/docs/extensions.md +3 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/custom-provider-qwen-cli/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
|
@@ -222,6 +222,9 @@ export class InteractiveMode {
|
|
|
222
222
|
// Setup autocomplete
|
|
223
223
|
this.autocompleteProvider = new CombinedAutocompleteProvider([...slashCommands, ...templateCommands, ...extensionCommands, ...skillCommandList], process.cwd(), fdPath);
|
|
224
224
|
this.defaultEditor.setAutocompleteProvider(this.autocompleteProvider);
|
|
225
|
+
if (this.editor !== this.defaultEditor) {
|
|
226
|
+
this.editor.setAutocompleteProvider?.(this.autocompleteProvider);
|
|
227
|
+
}
|
|
225
228
|
}
|
|
226
229
|
async init() {
|
|
227
230
|
if (this.isInitialized)
|
|
@@ -813,6 +816,9 @@ export class InteractiveMode {
|
|
|
813
816
|
},
|
|
814
817
|
shutdownHandler: () => {
|
|
815
818
|
this.shutdownRequested = true;
|
|
819
|
+
if (!this.session.isStreaming) {
|
|
820
|
+
void this.shutdown();
|
|
821
|
+
}
|
|
816
822
|
},
|
|
817
823
|
onError: (error) => {
|
|
818
824
|
this.showExtensionError(error.extensionPath, error.error, error.stack);
|
|
@@ -1085,6 +1091,7 @@ export class InteractiveMode {
|
|
|
1085
1091
|
setHeader: (factory) => this.setExtensionHeader(factory),
|
|
1086
1092
|
setTitle: (title) => this.ui.terminal.setTitle(title),
|
|
1087
1093
|
custom: (factory, options) => this.showExtensionCustom(factory, options),
|
|
1094
|
+
pasteToEditor: (text) => this.editor.handleInput(`\x1b[200~${text}\x1b[201~`),
|
|
1088
1095
|
setEditorText: (text) => this.editor.setText(text),
|
|
1089
1096
|
getEditorText: () => this.editor.getText(),
|
|
1090
1097
|
editor: (title, prefill) => this.showExtensionEditor(title, prefill),
|
|
@@ -1256,9 +1263,9 @@ export class InteractiveMode {
|
|
|
1256
1263
|
// Use duck typing since instanceof fails across jiti module boundaries
|
|
1257
1264
|
const customEditor = newEditor;
|
|
1258
1265
|
if ("actionHandlers" in customEditor && customEditor.actionHandlers instanceof Map) {
|
|
1259
|
-
customEditor.onEscape = this.defaultEditor.onEscape;
|
|
1260
|
-
customEditor.onCtrlD = this.defaultEditor.onCtrlD;
|
|
1261
|
-
customEditor.onPasteImage = this.defaultEditor.onPasteImage;
|
|
1266
|
+
customEditor.onEscape = () => this.defaultEditor.onEscape?.();
|
|
1267
|
+
customEditor.onCtrlD = () => this.defaultEditor.onCtrlD?.();
|
|
1268
|
+
customEditor.onPasteImage = () => this.defaultEditor.onPasteImage?.();
|
|
1262
1269
|
customEditor.onExtensionShortcut = (data) => this.defaultEditor.onExtensionShortcut?.(data);
|
|
1263
1270
|
// Copy action handlers (clear, suspend, model switching, etc.)
|
|
1264
1271
|
for (const [action, handler] of this.defaultEditor.actionHandlers) {
|