@feynmanzhang/open-party 0.1.5 → 0.1.6

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.
Files changed (22) hide show
  1. package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/.claude-plugin/plugin.json +1 -1
  2. package/dist/claude-code/open-party-0.1.6/BUILD_INFO.json +6 -0
  3. package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/dist/mcp-server.js +1 -1
  4. package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/package.json +1 -1
  5. package/dist/cli/index.js +52 -3
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/openclaw/open-party-0.1.5/BUILD_INFO.json +1 -1
  8. package/dist/openclaw/open-party-0.1.5/dist/party-server.js +5502 -0
  9. package/dist/openclaw/open-party-0.1.6/BUILD_INFO.json +6 -0
  10. package/dist/openclaw/open-party-0.1.6/SKILL.md +127 -0
  11. package/dist/openclaw/open-party-0.1.6/dist/index.js +550 -0
  12. package/dist/openclaw/open-party-0.1.6/dist/party-server.js +5502 -0
  13. package/dist/openclaw/open-party-0.1.6/openclaw.plugin.json +28 -0
  14. package/dist/openclaw/open-party-0.1.6/package.json +12 -0
  15. package/dist/openclaw/open-party-0.1.6/skills/open-party/SKILL.md +90 -0
  16. package/package.json +1 -1
  17. package/dist/claude-code/open-party-0.1.5/BUILD_INFO.json +0 -6
  18. /package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/.mcp.json +0 -0
  19. /package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/dist/hook-handler.js +0 -0
  20. /package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/dist/party-server.js +0 -0
  21. /package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/hooks/hooks.json +0 -0
  22. /package/dist/claude-code/{open-party-0.1.5 → open-party-0.1.6}/skills/open-party/SKILL.md +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "open-party",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Decentralized Agent communication network for Claude Code"
5
5
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": "0.1.6",
3
+ "git_commit": "0cf1dfc",
4
+ "build_timestamp": "2026-05-31T15:23:22.538Z",
5
+ "source_path": "src/client/claude-code/"
6
+ }
@@ -21408,7 +21408,7 @@ function startHeartbeat() {
21408
21408
  }
21409
21409
  }, HEARTBEAT_INTERVAL_MS);
21410
21410
  }
21411
- var server = new McpServer({ name: "open-party", version: "0.1.5" });
21411
+ var server = new McpServer({ name: "open-party", version: "0.1.6" });
21412
21412
  server.tool(
21413
21413
  "list_agents",
21414
21414
  "List all agents currently online in the network.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-party",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "private": true
6
6
  }
package/dist/cli/index.js CHANGED
@@ -3352,7 +3352,7 @@ var init_config = __esm({
3352
3352
  });
3353
3353
 
3354
3354
  // src/server/logger.ts
3355
- import { existsSync as existsSync5, mkdirSync as mkdirSync3, appendFileSync, readdirSync as readdirSync2, unlinkSync as unlinkSync2, statSync } from "fs";
3355
+ import { existsSync as existsSync5, mkdirSync as mkdirSync3, appendFileSync, readdirSync as readdirSync2, unlinkSync as unlinkSync2, statSync as statSync2 } from "fs";
3356
3356
  import { join as join5 } from "path";
3357
3357
  import { homedir as homedir4 } from "os";
3358
3358
  function getEffectiveLevel() {
@@ -3372,7 +3372,7 @@ function initLogFile() {
3372
3372
  for (const f of files) {
3373
3373
  if (!f.endsWith("-open-party.log")) continue;
3374
3374
  try {
3375
- const stat = statSync(join5(LOG_DIR, f));
3375
+ const stat = statSync2(join5(LOG_DIR, f));
3376
3376
  if (stat.mtimeMs < cutoff) {
3377
3377
  unlinkSync2(join5(LOG_DIR, f));
3378
3378
  }
@@ -5794,7 +5794,8 @@ function detectAgents() {
5794
5794
  }
5795
5795
 
5796
5796
  // src/cli/agent-installer.ts
5797
- import { existsSync as existsSync3, readFileSync, writeFileSync, mkdirSync, cpSync, rmSync, readdirSync } from "fs";
5797
+ import { existsSync as existsSync3, readFileSync, writeFileSync, mkdirSync, cpSync, rmSync, readdirSync, statSync } from "fs";
5798
+ import { createHash } from "crypto";
5798
5799
  import { join as join3, dirname, resolve } from "path";
5799
5800
  import { homedir as homedir2 } from "os";
5800
5801
  function ensureDir(filePath) {
@@ -6032,7 +6033,55 @@ function installOpenClaw() {
6032
6033
  heartbeatInterval: 3e4
6033
6034
  }
6034
6035
  };
6036
+ const pluginsConfig = config.plugins;
6037
+ if (!Array.isArray(pluginsConfig.allow)) {
6038
+ pluginsConfig.allow = [];
6039
+ }
6040
+ const allowList = pluginsConfig.allow;
6041
+ if (!allowList.includes("open-party")) {
6042
+ allowList.push("open-party");
6043
+ }
6035
6044
  writeJsonFile(configPath, config);
6045
+ const installsPath = join3(homedir2(), ".openclaw", "plugins", "installs.json");
6046
+ const manifestPath = join3(extensionDir, "openclaw.plugin.json");
6047
+ const entrySource = join3(extensionDir, "dist", "index.js");
6048
+ let manifestHash = "";
6049
+ try {
6050
+ const manifestContent = readFileSync(manifestPath, "utf-8");
6051
+ manifestHash = createHash("sha256").update(manifestContent).digest("hex");
6052
+ } catch {
6053
+ }
6054
+ const stat = (filePath) => {
6055
+ try {
6056
+ return statSync(filePath);
6057
+ } catch {
6058
+ return void 0;
6059
+ }
6060
+ };
6061
+ const mStat = stat(manifestPath);
6062
+ const installs = readJsonFile(installsPath, { plugins: {} });
6063
+ if (!installs.plugins) installs.plugins = {};
6064
+ installs.plugins["open-party"] = [{
6065
+ pluginId: "open-party",
6066
+ manifestPath,
6067
+ manifestHash,
6068
+ manifestFile: mStat ? { size: mStat.size, mtimeMs: mStat.mtimeMs, ctimeMs: mStat.ctimeMs } : void 0,
6069
+ source: entrySource,
6070
+ rootDir: extensionDir,
6071
+ origin: "local",
6072
+ enabled: true,
6073
+ startup: {
6074
+ sidecar: false,
6075
+ memory: false,
6076
+ deferConfiguredChannelFullLoadUntilAfterListen: false,
6077
+ agentHarnesses: []
6078
+ },
6079
+ compat: [],
6080
+ enabledByDefault: true,
6081
+ packageName: "@feynmanzhang/open-party-openclaw",
6082
+ packageVersion: getPluginVersion()
6083
+ }];
6084
+ writeJsonFile(installsPath, installs);
6036
6085
  return { success: true, configPath };
6037
6086
  }
6038
6087
  async function installPluginToAgent(agentType) {