@getpaseo/plugin 0.11.3 → 0.11.4
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.
|
@@ -418,8 +418,11 @@ class AcpRuntime {
|
|
|
418
418
|
this.emit({ type: "session.ready", requestId: input.requestId, sessionId: input.sessionId });
|
|
419
419
|
return sessionCapabilities;
|
|
420
420
|
}
|
|
421
|
-
async discover(cwd
|
|
422
|
-
|
|
421
|
+
async discover(cwd) {
|
|
422
|
+
if (cwd === undefined && this.options.options.acpOptions?.workspaceOnlyCatalog) {
|
|
423
|
+
return { models: [], modes: [] };
|
|
424
|
+
}
|
|
425
|
+
const response = await this.call(this.connection.newSession({ cwd: cwd ?? process.cwd(), mcpServers: [] }));
|
|
423
426
|
this.nativeSessionId = response.sessionId;
|
|
424
427
|
this.modes = response.modes;
|
|
425
428
|
this.configOptions = response.configOptions ?? [];
|
package/dist/server/acp.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export type AcpConnector = () => AcpStream | Promise<AcpStream>;
|
|
|
45
45
|
export interface AcpOptions {
|
|
46
46
|
protocol?: "auto" | "v1";
|
|
47
47
|
startupTimeoutMs?: number;
|
|
48
|
+
/** Global discovery initializes ACP but returns an empty catalog without opening a session. */
|
|
49
|
+
workspaceOnlyCatalog?: boolean;
|
|
48
50
|
waitForInitialCommands?: boolean;
|
|
49
51
|
initialCommandsTimeoutMs?: number;
|
|
50
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/plugin",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "Paseo plugin SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"use-sync-external-store": "^1.6.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@getpaseo/client": "0.11.
|
|
74
|
-
"@getpaseo/protocol": "0.11.
|
|
73
|
+
"@getpaseo/client": "0.11.4",
|
|
74
|
+
"@getpaseo/protocol": "0.11.4",
|
|
75
75
|
"@types/node": "^20.9.0",
|
|
76
76
|
"@types/react": "~19.2.0",
|
|
77
77
|
"react": "19.1.0",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"zod": "^4.4.3"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@getpaseo/client": "0.11.
|
|
85
|
-
"@getpaseo/protocol": "0.11.
|
|
84
|
+
"@getpaseo/client": "0.11.4",
|
|
85
|
+
"@getpaseo/protocol": "0.11.4",
|
|
86
86
|
"react": "~19.1.0",
|
|
87
87
|
"react-native": ">=0.81.5",
|
|
88
88
|
"zod": "^4.4.3"
|