@getpaseo/plugin 0.5.2 → 0.6.0

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.
@@ -61,10 +61,15 @@ export interface PluginAgentSnapshot {
61
61
  readonly parentAgentId: string | null;
62
62
  readonly labels: Readonly<Record<string, string>>;
63
63
  }
64
+ export type PluginPanelLocation = "workspace" | "explorer";
65
+ export interface PluginOpenPanelOptions {
66
+ location?: PluginPanelLocation;
67
+ }
64
68
  interface PluginWorkspacePanelBase {
65
69
  id: string;
66
70
  title: string;
67
71
  icon: string;
72
+ locations?: readonly PluginPanelLocation[];
68
73
  }
69
74
  export interface PluginWorkspacePanelProps extends PluginHostProps {
70
75
  context: "workspace";
@@ -127,13 +132,13 @@ export interface PluginGlobalCommandContext extends PluginCommandCapabilities {
127
132
  export interface PluginWorkspaceCommandContext extends PluginCommandCapabilities {
128
133
  context: "workspace";
129
134
  workspace: PluginWorkspaceSnapshot;
130
- openPanel(id: string): void;
135
+ openPanel(id: string, options?: PluginOpenPanelOptions): void;
131
136
  }
132
137
  export interface PluginAgentCommandContext extends PluginCommandCapabilities {
133
138
  context: "agent";
134
139
  workspace: PluginWorkspaceSnapshot;
135
140
  agent: PluginAgentSnapshot;
136
- openPanel(id: string): void;
141
+ openPanel(id: string, options?: PluginOpenPanelOptions): void;
137
142
  }
138
143
  interface PluginCommandCenterItemBase {
139
144
  id: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { PluginAttachmentItemSchema, PluginAttachmentSearchPayloadSchema, defineAttachmentSource, defineRpc, type PluginAttachmentItem, type PluginAttachmentSearchPayload, type PluginRpcContract, } from "./server.js";
2
- export type { PluginAttachmentSourceContribution, PluginAgentCommandContext, PluginAgentPanelProps, PluginAgentSnapshot, PluginCleanup, PluginCommandCapabilities, PluginCommandCenterItemContribution, PluginContribution, PluginContext, PluginGlobalCommandContext, PluginHandlerContext, PluginHostProps, PluginTheme, PluginSidebarContribution, PluginSurfaceContribution, PluginSurfaceProps, PluginThemeColors, PluginThemeContribution, PluginWorkspaceCommandContext, PluginWorkspacePanelContribution, PluginWorkspacePanelProps, PluginWorkspaceSnapshot, } from "./contracts.js";
2
+ export type { PluginAttachmentSourceContribution, PluginAgentCommandContext, PluginAgentPanelProps, PluginAgentSnapshot, PluginCleanup, PluginCommandCapabilities, PluginCommandCenterItemContribution, PluginContribution, PluginContext, PluginGlobalCommandContext, PluginHandlerContext, PluginHostProps, PluginOpenPanelOptions, PluginPanelLocation, PluginTheme, PluginSidebarContribution, PluginSurfaceContribution, PluginSurfaceProps, PluginThemeColors, PluginThemeContribution, PluginWorkspaceCommandContext, PluginWorkspacePanelContribution, PluginWorkspacePanelProps, PluginWorkspaceSnapshot, } from "./contracts.js";
3
3
  export { usePaseo } from "./paseo-context.js";
4
4
  export { useAgent, useWorkspace } from "./client-state.js";
5
5
  export { useRpc } from "./rpc-context.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/plugin",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Paseo plugin SDK package",
5
5
  "files": [
6
6
  "dist",
@@ -39,7 +39,7 @@
39
39
  "use-sync-external-store": "^1.6.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@getpaseo/client": "0.5.2",
42
+ "@getpaseo/client": "0.6.0",
43
43
  "@types/node": "^20.9.0",
44
44
  "@types/react": "~19.2.0",
45
45
  "react": "19.1.0",
@@ -48,7 +48,7 @@
48
48
  "zod": "^4.4.3"
49
49
  },
50
50
  "peerDependencies": {
51
- "@getpaseo/client": "0.5.2",
51
+ "@getpaseo/client": "0.6.0",
52
52
  "react": "19.1.0",
53
53
  "zod": "^4.4.3"
54
54
  }