@feynmanzhang/open-party 0.1.0 → 0.1.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/dist/cli/index.js +21 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/hook-handler.js +7 -0
- package/dist/hook-handler.js.map +1 -1
- package/dist/mcp-server.js +97 -13
- package/dist/mcp-server.js.map +1 -1
- package/dist/party-server.js.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -5073,10 +5073,10 @@ import { join as join3, dirname, resolve } from "path";
|
|
|
5073
5073
|
import { homedir as homedir2 } from "os";
|
|
5074
5074
|
function findPluginDist() {
|
|
5075
5075
|
const possiblePaths = [
|
|
5076
|
-
// When installed
|
|
5077
|
-
resolve(import.meta.dirname ?? ".", "..", "
|
|
5078
|
-
// When running from source
|
|
5079
|
-
resolve(import.meta.dirname ?? ".", "..", "
|
|
5076
|
+
// When installed globally: <pkg-root>/dist/cli/index.js → <pkg-root>/dist/
|
|
5077
|
+
resolve(import.meta.dirname ?? ".", "..", "party-server.js"),
|
|
5078
|
+
// When running from source: <project>/dist/cli/index.js → <project>/dist/
|
|
5079
|
+
resolve(import.meta.dirname ?? ".", "..", "mcp-server.js")
|
|
5080
5080
|
];
|
|
5081
5081
|
for (const p of possiblePaths) {
|
|
5082
5082
|
if (existsSync3(p)) return dirname(p);
|
|
@@ -5108,7 +5108,7 @@ function getPluginCommand() {
|
|
|
5108
5108
|
return { command: "node", args: [serverPath] };
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
|
-
return { command: "npx", args: ["open-party", "mcp"] };
|
|
5111
|
+
return { command: "npx", args: ["@feynmanzhang/open-party", "mcp"] };
|
|
5112
5112
|
}
|
|
5113
5113
|
function getMcpServerConfig() {
|
|
5114
5114
|
const cmd = getPluginCommand();
|
|
@@ -5376,9 +5376,23 @@ async function setupCommand() {
|
|
|
5376
5376
|
await stepTailscale();
|
|
5377
5377
|
await stepAgentPlugin();
|
|
5378
5378
|
console.log(`
|
|
5379
|
+
${bold(cyan("\u{1F680} Starting Party Server..."))}`);
|
|
5380
|
+
const { spawn: spawn2 } = await import("child_process");
|
|
5381
|
+
const { resolve: resolve2, dirname: dirname2 } = await import("path");
|
|
5382
|
+
const { fileURLToPath } = await import("url");
|
|
5383
|
+
const __dirname = dirname2(fileURLToPath(import.meta.url));
|
|
5384
|
+
const serverScript = resolve2(__dirname, "..", "party-server.js");
|
|
5385
|
+
const serverProc = spawn2(process.execPath, [serverScript], {
|
|
5386
|
+
detached: true,
|
|
5387
|
+
stdio: "ignore",
|
|
5388
|
+
windowsHide: true
|
|
5389
|
+
});
|
|
5390
|
+
serverProc.unref();
|
|
5391
|
+
await new Promise((r) => setTimeout(r, 2e3));
|
|
5392
|
+
console.log(`
|
|
5379
5393
|
${bold(green("\u{1F389} Setup complete!"))}`);
|
|
5380
|
-
console.log(
|
|
5381
|
-
console.log(" Other agents can join with: npx open-party setup\n");
|
|
5394
|
+
console.log(` Dashboard: http://127.0.0.1:8000/dashboard`);
|
|
5395
|
+
console.log(" Other agents can join with: npx @feynmanzhang/open-party setup\n");
|
|
5382
5396
|
rl.close();
|
|
5383
5397
|
}
|
|
5384
5398
|
|