paseo-follow-up 2.6.0-beta.7 → 2.6.0-beta.8
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/package.json +5 -1
- package/server/daemon.ts +2 -1
- package/server/mcp-source.ts +16 -1
- package/server/mcp.mjs +2 -1
- package/shared/daemon-url.d.mts +2 -0
- package/shared/daemon-url.mjs +12 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paseo-follow-up",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.6.0-beta.
|
|
4
|
+
"version": "2.6.0-beta.8",
|
|
5
5
|
"description": "Every agent, one inbox. Follow-up brings what all your coding agents need from you into one ranked list, and follows their work through merge, deploy and after.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"typescript": "^5.9.3",
|
|
66
66
|
"zod": "^4.4.3"
|
|
67
67
|
},
|
|
68
|
+
"allowScripts": {
|
|
69
|
+
"esbuild": false,
|
|
70
|
+
"fsevents": false
|
|
71
|
+
},
|
|
68
72
|
"license": "MIT",
|
|
69
73
|
"author": "Tom Gringauz",
|
|
70
74
|
"repository": {
|
package/server/daemon.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { daemonUrl } from "../shared/daemon-url.mjs";
|
|
1
2
|
import { imageSupport, imagesLeftOff } from "./image-support";
|
|
2
3
|
import { taskAgentStates } from "../shared/task-status";
|
|
3
4
|
import { settleWithin, type Deadline } from "./teardown";
|
|
@@ -118,7 +119,7 @@ export async function daemonOptions(): Promise<Record<string, unknown>> {
|
|
|
118
119
|
let url = process.env.PASEO_DAEMON_URL;
|
|
119
120
|
if (!url) {
|
|
120
121
|
const config = JSON.parse(await readFile(join(paseoHome, "config.json"), "utf8"));
|
|
121
|
-
url =
|
|
122
|
+
url = daemonUrl(config);
|
|
122
123
|
}
|
|
123
124
|
return { url, clientId: "follow-up-worker", clientType: "cli", reconnect: { enabled: false }, connectTimeoutMs: 10_000, suppressSendErrors: true, ...(password ? { password } : {}) };
|
|
124
125
|
}
|
package/server/mcp-source.ts
CHANGED
|
@@ -9,6 +9,21 @@ export const mcpSource: string = [
|
|
|
9
9
|
"import { join, delimiter } from \"node:path\";",
|
|
10
10
|
"import { homedir } from \"node:os\";",
|
|
11
11
|
"// Follow-up's words live in one place; scripts/build.mjs inlines them into mcp-source.ts (the bridge runs as one file).",
|
|
12
|
+
"// ---- inlined from shared/daemon-url.mjs by scripts/build.mjs ----",
|
|
13
|
+
"/**",
|
|
14
|
+
" * One config-to-URL rule for the worker and standalone bridge (inlined by scripts/build.mjs).",
|
|
15
|
+
" * Match Paseo's getMainListenAddress: socket/pipe paths are literal; TCP lists use the trimmed first entry.",
|
|
16
|
+
" */",
|
|
17
|
+
"export function daemonUrl(config, override) {",
|
|
18
|
+
" if (override) return override;",
|
|
19
|
+
" const listen = config.daemon?.listen ?? \"127.0.0.1:6767\";",
|
|
20
|
+
" if (listen.startsWith(\"pipe://\") || listen.startsWith(\"unix://\")) return `ws+unix://${listen.slice(7)}:/ws`;",
|
|
21
|
+
" if (listen.startsWith(\"\\\\\\\\.\\\\pipe\\\\\") || listen.startsWith(\"/\") || listen.startsWith(\"~\")) return `ws+unix://${listen}:/ws`;",
|
|
22
|
+
" const main = listen.split(\",\", 1)[0].trim();",
|
|
23
|
+
" return `ws://${/^\\d+$/.test(main) ? `127.0.0.1:${main}` : main}/ws`;",
|
|
24
|
+
"}",
|
|
25
|
+
"",
|
|
26
|
+
"// ---- end of shared/daemon-url.mjs ----",
|
|
12
27
|
"// ---- inlined from shared/agent-text.mjs by scripts/build.mjs ----",
|
|
13
28
|
"/**",
|
|
14
29
|
" * Everything Follow-up says to an agent, in one place (one-place-for-agent-text): the workspace instructions, the role",
|
|
@@ -567,7 +582,7 @@ export const mcpSource: string = [
|
|
|
567
582
|
" let password = process.env.PASEO_PASSWORD;",
|
|
568
583
|
" if (!password && process.env.PASEO_PASSWORD_FILE) password = (await readFile(process.env.PASEO_PASSWORD_FILE, \"utf8\")).trim();",
|
|
569
584
|
" if (!password && home === join(homedir(), \".paseo\")) password = await readFile(join(homedir(), \"paseo-hub/secrets/daemon-password\"), \"utf8\").then(s => s.trim()).catch(() => undefined);",
|
|
570
|
-
" const client = new DaemonClient({ url: process.env.PASEO_DAEMON_URL
|
|
585
|
+
" const client = new DaemonClient({ url: daemonUrl(config, process.env.PASEO_DAEMON_URL), clientId: \"follow-up-mcp\", clientType: \"cli\", reconnect: { enabled: false }, connectTimeoutMs: 10000, suppressSendErrors: true, ...(password ? { password } : {}) });",
|
|
571
586
|
" try {",
|
|
572
587
|
" await client.connect();",
|
|
573
588
|
" let last;",
|
package/server/mcp.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import { existsSync, realpathSync } from "node:fs";
|
|
|
7
7
|
import { join, delimiter } from "node:path";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
// Follow-up's words live in one place; scripts/build.mjs inlines them into mcp-source.ts (the bridge runs as one file).
|
|
10
|
+
import { daemonUrl } from "../shared/daemon-url.mjs";
|
|
10
11
|
import { bridgeInstructions } from "../shared/agent-text.mjs";
|
|
11
12
|
|
|
12
13
|
/** Set by the worker's prelude (shared/legacy.ts withRuntimePrelude); absent when a test imports this file. */
|
|
@@ -430,7 +431,7 @@ async function call(method, input) {
|
|
|
430
431
|
let password = process.env.PASEO_PASSWORD;
|
|
431
432
|
if (!password && process.env.PASEO_PASSWORD_FILE) password = (await readFile(process.env.PASEO_PASSWORD_FILE, "utf8")).trim();
|
|
432
433
|
if (!password && home === join(homedir(), ".paseo")) password = await readFile(join(homedir(), "paseo-hub/secrets/daemon-password"), "utf8").then(s => s.trim()).catch(() => undefined);
|
|
433
|
-
const client = new DaemonClient({ url: process.env.PASEO_DAEMON_URL
|
|
434
|
+
const client = new DaemonClient({ url: daemonUrl(config, process.env.PASEO_DAEMON_URL), clientId: "follow-up-mcp", clientType: "cli", reconnect: { enabled: false }, connectTimeoutMs: 10000, suppressSendErrors: true, ...(password ? { password } : {}) });
|
|
434
435
|
try {
|
|
435
436
|
await client.connect();
|
|
436
437
|
let last;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One config-to-URL rule for the worker and standalone bridge (inlined by scripts/build.mjs).
|
|
3
|
+
* Match Paseo's getMainListenAddress: socket/pipe paths are literal; TCP lists use the trimmed first entry.
|
|
4
|
+
*/
|
|
5
|
+
export function daemonUrl(config, override) {
|
|
6
|
+
if (override) return override;
|
|
7
|
+
const listen = config.daemon?.listen ?? "127.0.0.1:6767";
|
|
8
|
+
if (listen.startsWith("pipe://") || listen.startsWith("unix://")) return `ws+unix://${listen.slice(7)}:/ws`;
|
|
9
|
+
if (listen.startsWith("\\\\.\\pipe\\") || listen.startsWith("/") || listen.startsWith("~")) return `ws+unix://${listen}:/ws`;
|
|
10
|
+
const main = listen.split(",", 1)[0].trim();
|
|
11
|
+
return `ws://${/^\d+$/.test(main) ? `127.0.0.1:${main}` : main}/ws`;
|
|
12
|
+
}
|