@dyyz1993/pi-coding-agent 0.74.4 → 0.74.6
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 +12 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +30 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/settings-manager.d.ts +1 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +3 -0
- package/dist/core/settings-manager.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
|
@@ -80,6 +80,16 @@ export type AgentSessionEvent = AgentEvent | {
|
|
|
80
80
|
type: "session_rename";
|
|
81
81
|
oldName: string | undefined;
|
|
82
82
|
newName: string;
|
|
83
|
+
} | {
|
|
84
|
+
type: "mcp_connection_change";
|
|
85
|
+
name: string;
|
|
86
|
+
status: "connecting" | "connected" | "error" | "disconnected";
|
|
87
|
+
error?: string;
|
|
88
|
+
tools: Array<{
|
|
89
|
+
originalName: string;
|
|
90
|
+
fullName: string;
|
|
91
|
+
description: string;
|
|
92
|
+
}>;
|
|
83
93
|
};
|
|
84
94
|
/** Listener function for agent session events */
|
|
85
95
|
export type AgentSessionEventListener = (event: AgentSessionEvent) => void;
|
|
@@ -208,6 +218,7 @@ export declare class AgentSession {
|
|
|
208
218
|
private _backgroundTasks;
|
|
209
219
|
private _modelRegistry;
|
|
210
220
|
private _fileSnapshotManager;
|
|
221
|
+
private _mcpManager;
|
|
211
222
|
private _tierModels;
|
|
212
223
|
private _toolRegistry;
|
|
213
224
|
private _toolDefinitions;
|
|
@@ -220,6 +231,7 @@ export declare class AgentSession {
|
|
|
220
231
|
get modelRegistry(): ModelRegistry;
|
|
221
232
|
get fileSnapshotManager(): FileSnapshotManager | null;
|
|
222
233
|
private _initFileSnapshotManager;
|
|
234
|
+
private _initMcpServers;
|
|
223
235
|
private _getRequiredRequestAuth;
|
|
224
236
|
/**
|
|
225
237
|
* Install tool hooks once on the Agent instance.
|