@getpaseo/plugin 0.11.3 → 0.12.0-beta.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.
@@ -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 = process.cwd()) {
422
- const response = await this.call(this.connection.newSession({ cwd, mcpServers: [] }));
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 ?? [];
@@ -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",
3
+ "version": "0.12.0-beta.1",
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.3",
74
- "@getpaseo/protocol": "0.11.3",
73
+ "@getpaseo/client": "0.12.0-beta.1",
74
+ "@getpaseo/protocol": "0.12.0-beta.1",
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.3",
85
- "@getpaseo/protocol": "0.11.3",
84
+ "@getpaseo/client": "0.12.0-beta.1",
85
+ "@getpaseo/protocol": "0.12.0-beta.1",
86
86
  "react": "~19.1.0",
87
87
  "react-native": ">=0.81.5",
88
88
  "zod": "^4.4.3"