@mariozechner/pi-coding-agent 0.56.2 → 0.56.3

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 (32) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/dist/core/agent-session.d.ts +1 -0
  4. package/dist/core/agent-session.d.ts.map +1 -1
  5. package/dist/core/agent-session.js +50 -17
  6. package/dist/core/agent-session.js.map +1 -1
  7. package/dist/core/auth-storage.d.ts +1 -0
  8. package/dist/core/auth-storage.d.ts.map +1 -1
  9. package/dist/core/auth-storage.js +25 -1
  10. package/dist/core/auth-storage.js.map +1 -1
  11. package/dist/core/compaction/utils.d.ts +3 -0
  12. package/dist/core/compaction/utils.d.ts.map +1 -1
  13. package/dist/core/compaction/utils.js +16 -1
  14. package/dist/core/compaction/utils.js.map +1 -1
  15. package/dist/core/settings-manager.d.ts +1 -0
  16. package/dist/core/settings-manager.d.ts.map +1 -1
  17. package/dist/core/settings-manager.js +26 -2
  18. package/dist/core/settings-manager.js.map +1 -1
  19. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  20. package/dist/modes/interactive/interactive-mode.js +13 -4
  21. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  22. package/docs/compaction.md +2 -0
  23. package/docs/extensions.md +13 -1
  24. package/docs/tmux.md +39 -0
  25. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  26. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  27. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  28. package/examples/extensions/custom-provider-qwen-cli/package.json +1 -1
  29. package/examples/extensions/with-deps/index.ts +1 -5
  30. package/examples/extensions/with-deps/package-lock.json +2 -2
  31. package/examples/extensions/with-deps/package.json +1 -1
  32. package/package.json +4 -4
@@ -1289,10 +1289,18 @@ export class InteractiveMode {
1289
1289
  // Use duck typing since instanceof fails across jiti module boundaries
1290
1290
  const customEditor = newEditor;
1291
1291
  if ("actionHandlers" in customEditor && customEditor.actionHandlers instanceof Map) {
1292
- customEditor.onEscape = () => this.defaultEditor.onEscape?.();
1293
- customEditor.onCtrlD = () => this.defaultEditor.onCtrlD?.();
1294
- customEditor.onPasteImage = () => this.defaultEditor.onPasteImage?.();
1295
- customEditor.onExtensionShortcut = (data) => this.defaultEditor.onExtensionShortcut?.(data);
1292
+ if (!customEditor.onEscape) {
1293
+ customEditor.onEscape = () => this.defaultEditor.onEscape?.();
1294
+ }
1295
+ if (!customEditor.onCtrlD) {
1296
+ customEditor.onCtrlD = () => this.defaultEditor.onCtrlD?.();
1297
+ }
1298
+ if (!customEditor.onPasteImage) {
1299
+ customEditor.onPasteImage = () => this.defaultEditor.onPasteImage?.();
1300
+ }
1301
+ if (!customEditor.onExtensionShortcut) {
1302
+ customEditor.onExtensionShortcut = (data) => this.defaultEditor.onExtensionShortcut?.(data);
1303
+ }
1296
1304
  // Copy action handlers (clear, suspend, model switching, etc.)
1297
1305
  for (const [action, handler] of this.defaultEditor.actionHandlers) {
1298
1306
  customEditor.actionHandlers.set(action, handler);
@@ -3531,6 +3539,7 @@ export class InteractiveMode {
3531
3539
  // New session via session (emits extension session events)
3532
3540
  await this.session.newSession();
3533
3541
  // Clear UI state
3542
+ this.headerContainer.clear();
3534
3543
  this.chatContainer.clear();
3535
3544
  this.pendingMessagesContainer.clear();
3536
3545
  this.compactionQueuedMessages = [];