@mariozechner/pi-coding-agent 0.50.0 → 0.50.1
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 +11 -0
- package/dist/core/agent-session.d.ts +7 -3
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +10 -2
- package/dist/core/agent-session.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 +30 -1
- package/dist/core/package-manager.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +12 -13
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +26 -29
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +27 -32
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/docs/extensions.md +2 -0
- package/docs/packages.md +9 -4
- 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/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
|
@@ -741,12 +741,6 @@ export class InteractiveMode {
|
|
|
741
741
|
* Initialize the extension system with TUI-based UI context.
|
|
742
742
|
*/
|
|
743
743
|
async initExtensions() {
|
|
744
|
-
const extensionRunner = this.session.extensionRunner;
|
|
745
|
-
if (!extensionRunner) {
|
|
746
|
-
this.showLoadedResources({ extensionPaths: [], force: false });
|
|
747
|
-
return;
|
|
748
|
-
}
|
|
749
|
-
// Create extension UI context
|
|
750
744
|
const uiContext = this.createExtensionUIContext();
|
|
751
745
|
await this.session.bindExtensions({
|
|
752
746
|
uiContext,
|
|
@@ -758,21 +752,20 @@ export class InteractiveMode {
|
|
|
758
752
|
this.loadingAnimation = undefined;
|
|
759
753
|
}
|
|
760
754
|
this.statusContainer.clear();
|
|
761
|
-
|
|
755
|
+
// Delegate to AgentSession (handles setup + agent state sync)
|
|
756
|
+
const success = await this.session.newSession(options);
|
|
762
757
|
if (!success) {
|
|
763
758
|
return { cancelled: true };
|
|
764
759
|
}
|
|
765
|
-
|
|
766
|
-
await options.setup(this.sessionManager);
|
|
767
|
-
}
|
|
760
|
+
// Clear UI state
|
|
768
761
|
this.chatContainer.clear();
|
|
769
762
|
this.pendingMessagesContainer.clear();
|
|
770
763
|
this.compactionQueuedMessages = [];
|
|
771
764
|
this.streamingComponent = undefined;
|
|
772
765
|
this.streamingMessage = undefined;
|
|
773
766
|
this.pendingTools.clear();
|
|
774
|
-
|
|
775
|
-
this.
|
|
767
|
+
// Render any messages added via setup, or show empty session
|
|
768
|
+
this.renderInitialMessages();
|
|
776
769
|
this.ui.requestRender();
|
|
777
770
|
return { cancelled: false };
|
|
778
771
|
},
|
|
@@ -813,6 +806,11 @@ export class InteractiveMode {
|
|
|
813
806
|
this.showExtensionError(error.extensionPath, error.error, error.stack);
|
|
814
807
|
},
|
|
815
808
|
});
|
|
809
|
+
const extensionRunner = this.session.extensionRunner;
|
|
810
|
+
if (!extensionRunner) {
|
|
811
|
+
this.showLoadedResources({ extensionPaths: [], force: false });
|
|
812
|
+
return;
|
|
813
|
+
}
|
|
816
814
|
this.setupExtensionShortcuts(extensionRunner);
|
|
817
815
|
this.showLoadedResources({ extensionPaths: extensionRunner.getExtensionPaths(), force: false });
|
|
818
816
|
}
|
|
@@ -3394,7 +3392,8 @@ export class InteractiveMode {
|
|
|
3394
3392
|
`;
|
|
3395
3393
|
for (const [key, shortcut] of shortcuts) {
|
|
3396
3394
|
const description = shortcut.description ?? shortcut.extensionPath;
|
|
3397
|
-
|
|
3395
|
+
const keyDisplay = key.replace(/\b\w/g, (c) => c.toUpperCase());
|
|
3396
|
+
hotkeys += `| \`${keyDisplay}\` | ${description} |\n`;
|
|
3398
3397
|
}
|
|
3399
3398
|
}
|
|
3400
3399
|
}
|