@dyyz1993/pi-coding-agent 0.74.6 → 0.74.7
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/dist/core/agent-session.d.ts +10 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +14 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts +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/dist/modes/rpc/rpc-types.d.ts +22 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- 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/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/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
|
@@ -570,6 +570,20 @@ export class AgentSession {
|
|
|
570
570
|
this._eventListeners = [];
|
|
571
571
|
cleanupSessionResources(this.sessionId);
|
|
572
572
|
}
|
|
573
|
+
getMcpConnections() {
|
|
574
|
+
if (!this._mcpManager)
|
|
575
|
+
return [];
|
|
576
|
+
return this._mcpManager.getConnections().map((c) => ({
|
|
577
|
+
name: c.name,
|
|
578
|
+
status: c.status,
|
|
579
|
+
error: c.error,
|
|
580
|
+
tools: c.tools.map((t) => ({
|
|
581
|
+
originalName: t.originalName,
|
|
582
|
+
fullName: t.fullName,
|
|
583
|
+
description: t.description,
|
|
584
|
+
})),
|
|
585
|
+
}));
|
|
586
|
+
}
|
|
573
587
|
// =========================================================================
|
|
574
588
|
// Read-only State Access
|
|
575
589
|
// =========================================================================
|