@koinzhang/paseo-plugin-inbox 0.1.0 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -5,7 +5,13 @@ All notable changes to `@koinzhang/paseo-plugin-inbox` are documented in this fi
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [Unreleased]
8
+ ## [0.2.0] - 2026-11-05
9
+
10
+ Requires Paseo **>= 0.15.0**.
11
+
12
+ ### Changed
13
+
14
+ - Align with Paseo 0.15: the Inbox page is a screen with a sidebar header row (replacing the deprecated `addSurface` / `addSidebarItem`), the Command Center items open it through `openScreen`, the daemon connection uses `@getpaseo/client@0.15.1`, and UI components import from `@getpaseo/plugin/client/ui`.
9
15
 
10
16
  ## [0.1.0] - 2026-09-30
11
17
 
@@ -26,5 +32,6 @@ Requires Paseo **>= 0.9.0**.
26
32
  - Empty notes are never kept: a new note is saved only once it has a title or text, and a note left empty is removed.
27
33
  - Items grouped by project: git remote URL, falling back to the repository root path.
28
34
 
29
- [Unreleased]: https://github.com/koinzhang/paseo-plugins/compare/inbox-v0.1.0...HEAD
35
+ [Unreleased]: https://github.com/koinzhang/paseo-plugins/compare/inbox-v0.2.0...HEAD
36
+ [0.2.0]: https://github.com/koinzhang/paseo-plugins/releases/tag/inbox-v0.2.0
30
37
  [0.1.0]: https://github.com/koinzhang/paseo-plugins/releases/tag/inbox-v0.1.0
package/README.md CHANGED
@@ -13,7 +13,7 @@ A personal inbox for Paseo: star agents, keep notes per project, and capture scr
13
13
  - **Projects**: items are grouped by the git remote URL (`origin`, else the first remote), falling back to the repository root, then the directory. Worktrees of one repository share a project.
14
14
  - **Hosts**: data lives on each daemon in `~/.paseo/plugin-data/inbox/inbox.db`. With several hosts connected, the Inbox host picker switches between them.
15
15
 
16
- Requires Paseo >= 0.9.0 and a daemon Node runtime with `node:sqlite`.
16
+ Requires Paseo >= 0.15.0 and a daemon Node runtime with `node:sqlite`.
17
17
 
18
18
  ## Install
19
19
 
@@ -21,7 +21,7 @@ Requires Paseo >= 0.9.0 and a daemon Node runtime with `node:sqlite`.
21
21
  paseo plugin add npm:@koinzhang/paseo-plugin-inbox
22
22
  ```
23
23
 
24
- To install from GitHub, use `paseo plugin add koinzhang/paseo-plugins --path inbox`.
24
+ To install from GitHub, use `paseo plugin add github:koinzhang/paseo-plugins:inbox`.
25
25
 
26
26
  ## Development
27
27
 
@@ -1,5 +1,5 @@
1
1
  import type { PluginTheme } from "@getpaseo/plugin";
2
- import { Icon } from "@getpaseo/plugin/client/react-native";
2
+ import { Icon } from "@getpaseo/plugin/client/ui";
3
3
  import { useEffect, useRef } from "react";
4
4
  import { Animated, Easing, Text, View } from "react-native";
5
5
  import type { AgentLive, AgentState } from "../shared/contracts.ts";
@@ -1,6 +1,6 @@
1
1
  import type { PluginTheme } from "@getpaseo/plugin";
2
2
  import { type PluginSurfaceProps, usePaseo, useRpc } from "@getpaseo/plugin/client";
3
- import { Icon, ScrollView, TextInput, useToast } from "@getpaseo/plugin/client/react-native";
3
+ import { Icon, ScrollView, TextInput, useToast } from "@getpaseo/plugin/client/ui";
4
4
  import { keepPreviousData, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
5
5
  import {
6
6
  type ComponentProps,
@@ -0,0 +1,2 @@
1
+ /** Plugin-local screen and sidebar item id (Paseo 0.11+ screens). */
2
+ export const INBOX_SCREEN_ID = "inbox";
@@ -6,7 +6,7 @@ export interface DraftTags {
6
6
  projectOfWorkspace?: string;
7
7
  }
8
8
 
9
- /** What the Inbox surface should open next; set by commands before `openSurface`. */
9
+ /** What the Inbox screen should open next; set by commands before `openScreen`. */
10
10
  export type SelectionRequest = { itemId: string } | { draft: DraftTags };
11
11
 
12
12
  let pending: SelectionRequest | null = null;
@@ -0,0 +1,14 @@
1
+ import type { PluginSidebarItemProps } from "@getpaseo/plugin/client";
2
+ import { SidebarRow } from "@getpaseo/plugin/client/ui";
3
+ import { INBOX_SCREEN_ID } from "./screen-id.ts";
4
+
5
+ /** Sidebar header row that opens the Inbox screen. */
6
+ export function InboxSidebarItem({ currentScreen, openScreen }: PluginSidebarItemProps) {
7
+ return (
8
+ <SidebarRow
9
+ icon="Inbox"
10
+ active={currentScreen?.screenId === INBOX_SCREEN_ID}
11
+ onPress={() => openScreen({ screenId: INBOX_SCREEN_ID })}
12
+ />
13
+ );
14
+ }
@@ -1,5 +1,5 @@
1
1
  import { useSettings } from "@getpaseo/plugin/client";
2
- import { useToast } from "@getpaseo/plugin/client/react-native";
2
+ import { useToast } from "@getpaseo/plugin/client/ui";
3
3
  import { useEffect, useMemo, useRef, useState } from "react";
4
4
  import {
5
5
  INBOX_FILTER_DEFAULTS,
package/index.client.tsx CHANGED
@@ -1,17 +1,21 @@
1
1
  import type { PluginClientContext } from "@getpaseo/plugin/client";
2
2
  import { contributeHeaderButtons } from "./client/header-button.ts";
3
3
  import { InboxSurface } from "./client/inbox-surface.tsx";
4
+ import { INBOX_SCREEN_ID } from "./client/screen-id.ts";
5
+ import { InboxSidebarItem } from "./client/sidebar-item.tsx";
4
6
  import { notifyItemsChanged, requestDraft, requestSelection } from "./client/selection.ts";
5
7
  import { WorkspaceInboxPanel } from "./client/workspace-panel.tsx";
6
8
  import { saveNote, starAgent } from "./shared/contracts.ts";
7
9
  import { parseInboxCommand } from "./shared/slash-command.ts";
8
10
 
9
- const SURFACE = "inbox";
10
-
11
11
  export default function contribute(client: PluginClientContext) {
12
12
  const removers = [
13
- client.addSurface(SURFACE, InboxSurface),
14
- client.addSidebarItem({ id: SURFACE, title: "Inbox", icon: "Inbox", surface: SURFACE }),
13
+ client.addScreen({ id: INBOX_SCREEN_ID, title: "Inbox", Component: InboxSurface }),
14
+ client.addSidebarHeaderItem({
15
+ id: INBOX_SCREEN_ID,
16
+ title: "Inbox",
17
+ Component: InboxSidebarItem,
18
+ }),
15
19
  client.addWorkspacePanel({
16
20
  id: "workspace-inbox",
17
21
  title: "Inbox",
@@ -26,7 +30,7 @@ export default function contribute(client: PluginClientContext) {
26
30
  icon: "Inbox",
27
31
  keywords: ["open"],
28
32
  context: "global",
29
- onSelect: ({ openSurface }) => openSurface(SURFACE),
33
+ onSelect: ({ openScreen }) => openScreen({ screenId: INBOX_SCREEN_ID }),
30
34
  }),
31
35
  client.addCommandCenterItem({
32
36
  id: "star-agent",
@@ -34,10 +38,10 @@ export default function contribute(client: PluginClientContext) {
34
38
  icon: "Star",
35
39
  keywords: ["star", "favorite", "bookmark", "inbox"],
36
40
  context: "agent",
37
- async onSelect({ agent, rpc, openSurface }) {
41
+ async onSelect({ agent, rpc, openScreen }) {
38
42
  const { item } = await rpc(starAgent, { agentId: agent.id });
39
43
  requestSelection(item.id);
40
- openSurface(SURFACE);
44
+ openScreen({ screenId: INBOX_SCREEN_ID });
41
45
  },
42
46
  }),
43
47
  client.addCommandCenterItem({
@@ -46,9 +50,9 @@ export default function contribute(client: PluginClientContext) {
46
50
  icon: "NotebookPen",
47
51
  keywords: ["note", "inbox", "capture"],
48
52
  context: "workspace",
49
- onSelect({ workspace, openSurface }) {
53
+ onSelect({ workspace, openScreen }) {
50
54
  requestDraft({ projectOfWorkspace: workspace.id });
51
- openSurface(SURFACE);
55
+ openScreen({ screenId: INBOX_SCREEN_ID });
52
56
  },
53
57
  }),
54
58
  client.addSlashCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koinzhang/paseo-plugin-inbox",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Personal inbox for Paseo: star agents, keep notes per project, and capture scratch text.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,11 +26,11 @@
26
26
  "test": "node --experimental-strip-types --test shared/*.test.ts server/*.test.ts client/*.test.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@getpaseo/client": "0.9.2",
29
+ "@getpaseo/client": "0.15.1",
30
30
  "ws": "^8.18.3"
31
31
  },
32
32
  "devDependencies": {
33
- "@getpaseo/plugin": "0.9.2",
33
+ "@getpaseo/plugin": "0.15.1",
34
34
  "@tanstack/react-query": "^5.90.11",
35
35
  "@types/node": "^24.13.5",
36
36
  "@types/react": "~19.2.0",
package/paseo-plugin.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "id": "inbox",
3
3
  "description": "Personal inbox: starred agents, notes, project records, and quick scratch captures",
4
4
  "requirements": {
5
- "paseo": ">=0.9.0"
5
+ "paseo": ">=0.15.0"
6
6
  }
7
7
  }