@5h0ov/paseo-quick-chat 0.2.0 → 0.3.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/OVERVIEW.md CHANGED
@@ -10,7 +10,7 @@ Agents started there get a short system note saying there's no project, so they
10
10
 
11
11
  ## Setup
12
12
 
13
- Requires Paseo 0.15 or later and at least one agent provider (Claude Code, Codex, OpenCode or another) on the host. Tested on Windows.
13
+ Requires Paseo 0.17.1 or later and at least one agent provider (Claude Code, Codex, OpenCode or another) on the host. Tested on Windows.
14
14
 
15
15
  Preferences:
16
16
 
package/README.md CHANGED
@@ -11,7 +11,7 @@ Talk to an agent in [Paseo](https://paseo.sh) without picking a project first, a
11
11
 
12
12
  Requirements:
13
13
 
14
- - Paseo 0.15 or later, with plugins enabled (**Settings → Plugins → Enable plugins**).
14
+ - Paseo 0.17.1 or later, with plugins enabled (**Settings → Plugins → Enable plugins**).
15
15
  - At least one agent provider (Claude Code, Codex, OpenCode, …) installed where the daemon runs.
16
16
 
17
17
  In the app, open **Settings → Plugins**, paste `npm:@5h0ov/paseo-quick-chat` as the plugin source, and install. Or, on the daemon host:
@@ -50,7 +50,7 @@ An agent can't change folders, so connecting a chat starts a new agent in the pr
50
50
 
51
51
  - The new agent in the project gets the chat as text, not the original session: tool output and reasoning aren't carried over.
52
52
  - Files a chat wrote are in the scratch folder, not in the project. The hand-off message says so.
53
- - Tested on Windows with Paseo 0.16.
53
+ - Tested on Windows with Paseo 0.19.
54
54
 
55
55
  ## Development
56
56
 
Binary file
Binary file
package/index.server.ts CHANGED
@@ -16,12 +16,13 @@ export default function contribute(server: PluginServerContext) {
16
16
  void settings.read().then(apply, (error: unknown) => console.error("[Quick Chat] could not read preferences", error));
17
17
  const stopSettings = settings.subscribe(apply);
18
18
 
19
- // Chats start in Paseo's own new-agent tab, so the "no project" note is added here, whatever
20
- // provider or model was picked.
21
- server.addHook("agent.create.before", async ({ request }) => {
22
- if (!current.noProjectNote) return undefined;
23
- const config = chats.withSystemPrompt(request.config);
24
- return config ? { ...request, config } : undefined;
19
+ // Added each time a chat's session opens, through Paseo's own instructions for plugins, so it
20
+ // isn't saved on the agent: turning the preference off applies to existing chats too, and it
21
+ // reaches resumed sessions and chats switched to another provider.
22
+ server.addHook("agent.open.before", async ({ request }) => {
23
+ const note = current.noProjectNote ? chats.noteFor(request.cwd) : null;
24
+ if (!note) return undefined;
25
+ return { ...request, appendSystemPrompt: [...(request.appendSystemPrompt ?? []), note] };
25
26
  });
26
27
 
27
28
  server.handle(openChats, async (_input, { paseo }) => ({ workspaceId: await chats.openWorkspace(paseo), directory: chats.directory }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5h0ov/paseo-quick-chat",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Chat with an agent without picking a project, and connect the chat to a project later.",
5
5
  "keywords": [
6
6
  "paseo",
@@ -38,9 +38,9 @@
38
38
  "test": "vitest run"
39
39
  },
40
40
  "devDependencies": {
41
- "@getpaseo/client": "^0.16.2",
42
- "@getpaseo/plugin": "^0.16.2",
43
- "@getpaseo/protocol": "^0.16.2",
41
+ "@getpaseo/client": "^0.19.1",
42
+ "@getpaseo/plugin": "^0.19.1",
43
+ "@getpaseo/protocol": "^0.19.1",
44
44
  "@types/node": "^22.20.4",
45
45
  "@types/react": "~19.2.0",
46
46
  "esbuild": "^0.28.2",
package/paseo-plugin.json CHANGED
@@ -3,10 +3,10 @@
3
3
  "name": "Quick Chat",
4
4
  "description": "Chat with an agent without picking a project, and connect the chat to a project later.",
5
5
  "requirements": {
6
- "paseo": ">=0.15.0"
6
+ "paseo": ">=0.17.1"
7
7
  },
8
8
  "media": [
9
- "images/1-chat.png",
10
- "images/2-connect.png"
9
+ "images/1-chat.webp",
10
+ "images/2-connect.webp"
11
11
  ]
12
12
  }
package/server/chats.ts CHANGED
@@ -85,14 +85,12 @@ export class Chats {
85
85
  }
86
86
 
87
87
  /** Adds the "no project" note to an agent started in the chats folder. */
88
- withSystemPrompt<Config extends { cwd: string; systemPrompt?: string }>(config: Config): Config | null {
89
- if (!this.isChat(config.cwd) || config.systemPrompt?.includes(SYSTEM_PROMPT)) return null;
90
- this.log(`Added the no-project note to a new chat in ${config.cwd}`);
91
- return { ...config, systemPrompt: config.systemPrompt?.trim() ? `${config.systemPrompt.trim()}
92
-
93
- ${SYSTEM_PROMPT}` : SYSTEM_PROMPT };
88
+ /** The no-project note for a session opening in the chats folder, or null anywhere else. */
89
+ noteFor(cwd: string): string | null {
90
+ return this.isChat(cwd) ? SYSTEM_PROMPT : null;
94
91
  }
95
92
 
93
+
96
94
  async projects(paseo: PaseoApi): Promise<ProjectChoice[]> {
97
95
  return (await listWorkspaces(paseo))
98
96
  .filter((workspace) => !workspace.archivingAt && !workspace.internal && !samePath(workspaceDir(workspace), this.scratchDir))
package/images/1-chat.png DELETED
Binary file
Binary file