@yinaoxiong/paseo-plugin 0.17.5-personal.1 → 0.18.2-personal.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.
package/build-info.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "upstreamVersion": "0.17.5",
3
+ "upstreamVersion": "0.18.2",
4
4
  "revision": 1,
5
- "version": "0.17.5-personal.1",
6
- "appVersion": "0.17.5",
7
- "androidVersionCode": 17005001,
8
- "iosBuildNumber": "17005999",
9
- "sourceSha": "fdb43457c22ed0d8840d43293658c9d52c91656a",
10
- "lockSha256": "fb4275da1035777cd2835a85a31189c633da3f70aae9e9172ff1672b2051fcf4",
5
+ "version": "0.18.2-personal.1",
6
+ "appVersion": "0.18.2",
7
+ "androidVersionCode": 18002001,
8
+ "iosBuildNumber": "18002999",
9
+ "sourceSha": "35a005da22b19f1f747c07787b4a779e6d9a3708",
10
+ "lockSha256": "8bcf4983ccfa57cfa444ec7ecbad301c8fef0fcc2c495df5176758cf1e2f2faa",
11
11
  "nodeVersion": "v24.21.0",
12
12
  "npmVersion": "11.19.0",
13
13
  "platform": "linux",
14
14
  "arch": "x64",
15
15
  "signature": "unsigned",
16
16
  "packageName": "@yinaoxiong/paseo-plugin",
17
- "desktopVersion": "0.17.5+personal.1"
17
+ "desktopVersion": "0.18.2+personal.1"
18
18
  }
@@ -11,6 +11,7 @@ import type { PluginRpcContract, PluginSubscribeOptions, PluginSubscriptionContr
11
11
  import type { PluginButtonRegistration, PluginHeaderButtonContribution, PluginComposerPillContribution } from "./buttons.js";
12
12
  import type { PluginTheme, PluginWorkspaceSnapshot, PluginAgentSnapshot, PluginThemeContribution, PluginAttachmentSourceContribution, PluginTimelineTransformResult, PluginCleanup } from "../contracts.js";
13
13
  import type { PluginIconProps, PluginSerializableIcon } from "../icons.js";
14
+ import type { PluginNotificationOpenHandler } from "./notifications.js";
14
15
  export interface PluginHostProps {
15
16
  theme: PluginTheme;
16
17
  host: {
@@ -24,9 +25,23 @@ export interface PluginHostProps {
24
25
  platform: "ios" | "android" | "web";
25
26
  };
26
27
  }
28
+ export interface PluginHostNavigationActions {
29
+ readonly openAgent: (input: {
30
+ readonly agentId: string;
31
+ readonly serverId?: string;
32
+ /** Select only the destination host in the sidebar and clear project/label filters. */
33
+ readonly focusHost?: boolean;
34
+ }) => void;
35
+ readonly openWorkspace: (input: {
36
+ readonly workspaceId: string;
37
+ readonly serverId?: string;
38
+ /** Select only the destination host in the sidebar and clear project/label filters. */
39
+ readonly focusHost?: boolean;
40
+ }) => void;
41
+ }
27
42
  interface PluginNavigableHostProps extends PluginHostProps {
28
43
  /** Client-owned navigation. Undefined on older hosts; hide dependent affordances when absent. */
29
- readonly navigation?: {
44
+ readonly navigation?: PluginHostNavigationActions & {
30
45
  /** This client supports the focusHost option on agent/workspace navigation. */
31
46
  readonly supportsFocusHost?: boolean;
32
47
  /** Present only on Electron. The browser runs locally; serverId selects workspace ownership. */
@@ -35,18 +50,6 @@ interface PluginNavigableHostProps extends PluginHostProps {
35
50
  readonly workspaceId: string;
36
51
  readonly serverId?: string;
37
52
  }) => void;
38
- readonly openAgent: (input: {
39
- readonly agentId: string;
40
- readonly serverId?: string;
41
- /** Select only the destination host in the sidebar and clear project/label filters. */
42
- readonly focusHost?: boolean;
43
- }) => void;
44
- readonly openWorkspace: (input: {
45
- readonly workspaceId: string;
46
- readonly serverId?: string;
47
- /** Select only the destination host in the sidebar and clear project/label filters. */
48
- readonly focusHost?: boolean;
49
- }) => void;
50
53
  };
51
54
  }
52
55
  /** String keys and values: params travel in the screen's URL. */
@@ -215,6 +218,7 @@ export interface PluginClientContext extends PluginCommandCapabilities, PluginCl
215
218
  addFilePanel(contribution: PluginFilePanelContribution<PluginText>): PluginCleanup;
216
219
  addTimelineTransformer<ItemType extends AgentTimelineItem["type"]>(contribution: PluginTimelineTransformerContribution<ItemType>): PluginCleanup;
217
220
  addTimelineRenderer<Schema extends ZodType>(contribution: PluginTimelineRendererContribution<Schema>): PluginCleanup;
221
+ onNotificationOpen(handler: PluginNotificationOpenHandler): PluginCleanup;
218
222
  openPanel(id: string, options: PluginClientOpenPanelOptions): void;
219
223
  /**
220
224
  * Subscribes to a plugin subscription on this client's host. Paseo re-subscribes after a
@@ -1,5 +1,6 @@
1
1
  export type { PaseoSideChatActions } from "@getpaseo/client";
2
- export type { PluginHostProps, PluginTab, PluginPanelProps, PluginWorkspacePanelParams, PluginAgentPanelParams, PluginFilePanelParams, PluginAgentPanelContribution, PluginFilePanelContribution, PluginFilePanelProps, PluginSurfaceProps, PluginScreenProps, PluginPopoverProps, PluginScreenParams, PluginOpenScreenInput, PluginScreenLocation, PluginSidebarItemProps, PluginSidebarViewProps, PluginSidebarViewContribution, PluginSidebarItemContribution, PluginWorkspaceRowBadgeItemProps, PluginWorkspaceRowBadgeItemContribution, PluginIcon, PluginPanelLocation, PluginOpenPanelOptions, PluginWorkspacePanelProps, PluginAgentPanelProps, PluginClientOpenPanelOptions, PluginClientContext, PluginClientContribution, PluginWorkspacePanelContribution, PluginSettingsScreenContribution, PluginSurfaceContribution, PluginScreenContribution, PluginScreenTitle, PluginSidebarContribution, PluginTimelineTransformerContribution, PluginTimelineItemProps, PluginTimelineRendererContribution, PluginCommandCapabilities, PluginGlobalCommandContext, PluginWorkspaceCommandContext, PluginAgentCommandContext, PluginCommandCenterItemContribution, PluginClientSlashCommandContribution, SettingsState, } from "./contracts.js";
2
+ export type { PluginHostProps, PluginHostNavigationActions, PluginTab, PluginPanelProps, PluginWorkspacePanelParams, PluginAgentPanelParams, PluginFilePanelParams, PluginAgentPanelContribution, PluginFilePanelContribution, PluginFilePanelProps, PluginSurfaceProps, PluginScreenProps, PluginPopoverProps, PluginScreenParams, PluginOpenScreenInput, PluginScreenLocation, PluginSidebarItemProps, PluginSidebarViewProps, PluginSidebarViewContribution, PluginSidebarItemContribution, PluginWorkspaceRowBadgeItemProps, PluginWorkspaceRowBadgeItemContribution, PluginIcon, PluginPanelLocation, PluginOpenPanelOptions, PluginWorkspacePanelProps, PluginAgentPanelProps, PluginClientOpenPanelOptions, PluginClientContext, PluginClientContribution, PluginWorkspacePanelContribution, PluginSettingsScreenContribution, PluginSurfaceContribution, PluginScreenContribution, PluginScreenTitle, PluginSidebarContribution, PluginTimelineTransformerContribution, PluginTimelineItemProps, PluginTimelineRendererContribution, PluginCommandCapabilities, PluginGlobalCommandContext, PluginWorkspaceCommandContext, PluginAgentCommandContext, PluginCommandCenterItemContribution, PluginClientSlashCommandContribution, SettingsState, } from "./contracts.js";
3
+ export type { PluginNotificationOpenEvent, PluginNotificationOpenContext, PluginNotificationOpenHandler, } from "./notifications.js";
3
4
  export type { PluginButton, PluginButtonBehavior, PluginButtonContentProps, PluginButtonContext, PluginButtonIcon, PluginButtonIconProps, PluginButtonMenuEntry, PluginButtonRegistration, PluginComposerPillContribution, PluginHeaderButtonContribution, } from "./buttons.js";
4
5
  export type { PluginIconProps, PluginSerializableIcon, PluginSvgIcon } from "../icons.js";
5
6
  export type { PluginFile, PluginFileBytesState, PluginFileEvent, PluginFileTextState, PluginFileUrlState, PluginFileWriteOptions, } from "./file.js";
@@ -0,0 +1,13 @@
1
+ import type { JsonValue } from "@getpaseo/protocol/agent-types";
2
+ import type { PluginCommandCapabilities, PluginHostNavigationActions } from "./contracts.js";
3
+ export interface PluginNotificationOpenEvent {
4
+ readonly type: "opened";
5
+ readonly notificationId: string;
6
+ readonly data: Readonly<Record<string, JsonValue>> | undefined;
7
+ }
8
+ export interface PluginNotificationOpenContext extends PluginCommandCapabilities {
9
+ readonly event: PluginNotificationOpenEvent;
10
+ readonly navigation: PluginHostNavigationActions;
11
+ }
12
+ export type PluginNotificationOpenHandler = (context: PluginNotificationOpenContext) => void | Promise<void>;
13
+ //# sourceMappingURL=notifications.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notifications.js.map
@@ -55,6 +55,8 @@ export interface PluginWorkspaceSnapshot {
55
55
  readonly additions: number;
56
56
  readonly deletions: number;
57
57
  } | null;
58
+ /** Structured data stored on the workspace. */
59
+ readonly metadata: Readonly<Record<string, JsonValue>>;
58
60
  }
59
61
  export interface PluginAgentSnapshot {
60
62
  readonly ref: AgentRef;