@sesamespace/hivemind 0.8.8 → 0.8.10

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Cognitive architecture for AI agents with multi-layered memory, context isolation, and multi-machine fleet distribution.
4
4
 
5
+ _Updated by Caitlin 2026-03-01_
6
+
5
7
  ## Quick Start
6
8
 
7
9
  ### One-Command Install (recommended)
@@ -6,7 +6,7 @@ import {
6
6
  PRIMARY_ROUTES,
7
7
  SesameClient2 as SesameClient,
8
8
  WORKER_ROUTES
9
- } from "./chunk-2LGU4ZLA.js";
9
+ } from "./chunk-OG6GPQDK.js";
10
10
 
11
11
  // packages/runtime/src/watchdog.ts
12
12
  import { execSync } from "child_process";
@@ -1048,4 +1048,4 @@ export {
1048
1048
  WorkerMemorySync,
1049
1049
  PrimaryMemorySync
1050
1050
  };
1051
- //# sourceMappingURL=chunk-PSOS7GMS.js.map
1051
+ //# sourceMappingURL=chunk-A5LMEJIN.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Watchdog
3
- } from "./chunk-PSOS7GMS.js";
3
+ } from "./chunk-A5LMEJIN.js";
4
4
  import {
5
5
  defaultSentinelConfig,
6
6
  loadConfig
7
- } from "./chunk-2LGU4ZLA.js";
7
+ } from "./chunk-OG6GPQDK.js";
8
8
 
9
9
  // packages/cli/src/commands/watchdog.ts
10
10
  import { resolve } from "path";
@@ -76,4 +76,4 @@ Options:
76
76
  export {
77
77
  runWatchdogCommand
78
78
  };
79
- //# sourceMappingURL=chunk-SEL5726C.js.map
79
+ //# sourceMappingURL=chunk-F6EMICWP.js.map
@@ -3927,7 +3927,7 @@ function registerShellTool(registry, workspaceDir) {
3927
3927
  maxBuffer: 10 * 1024 * 1024,
3928
3928
  // 10MB
3929
3929
  shell: "/bin/sh",
3930
- env: { ...process.env, PATH: `/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:${process.env.PATH}` }
3930
+ env: { ...process.env, PATH: `${process.env.HOME || "/root"}/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:${process.env.PATH}` }
3931
3931
  });
3932
3932
  const trimmed = output.length > MAX_OUTPUT ? output.slice(0, MAX_OUTPUT) + `
3933
3933
  ... (truncated, ${output.length} total chars)` : output;
@@ -6307,8 +6307,10 @@ function registerCodingAgentTools(registry, workspaceDir) {
6307
6307
  const task = params.task;
6308
6308
  const timeoutSeconds = params.timeout || 300;
6309
6309
  const cwd = params.workdir ? resolve16(workspaceDir, params.workdir) : workspaceDir;
6310
+ const homedir = process.env.HOME || "/root";
6311
+ const extendedPath = `${homedir}/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:${process.env.PATH}`;
6310
6312
  try {
6311
- execSync8("which claude", { stdio: "ignore" });
6313
+ execSync8("which claude", { stdio: "ignore", env: { ...process.env, PATH: extendedPath } });
6312
6314
  } catch {
6313
6315
  return "Error: 'claude' CLI not found. Install Claude Code first: https://docs.anthropic.com/en/docs/claude-code";
6314
6316
  }
@@ -6324,7 +6326,7 @@ function registerCodingAgentTools(registry, workspaceDir) {
6324
6326
  shell: "/bin/sh",
6325
6327
  env: {
6326
6328
  ...process.env,
6327
- PATH: `/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:${process.env.PATH}`
6329
+ PATH: extendedPath
6328
6330
  }
6329
6331
  });
6330
6332
  const trimmed = output.length > MAX_OUTPUT6 ? output.slice(0, MAX_OUTPUT6) + `
@@ -6609,6 +6611,17 @@ function startHealthServer(port) {
6609
6611
  res.end();
6610
6612
  }
6611
6613
  });
6614
+ server.on("error", (err) => {
6615
+ if (err.code === "EADDRINUSE") {
6616
+ console.warn(`[hivemind] Health port ${port} in use \u2014 retrying in 2s`);
6617
+ setTimeout(() => {
6618
+ server.close();
6619
+ server.listen(port, "127.0.0.1");
6620
+ }, 2e3);
6621
+ } else {
6622
+ console.error("[hivemind] Health server error:", err.message);
6623
+ }
6624
+ });
6612
6625
  server.listen(port, "127.0.0.1", () => {
6613
6626
  console.log(`[hivemind] Health endpoint listening on http://127.0.0.1:${port}${HEALTH_PATH}`);
6614
6627
  });
@@ -7398,4 +7411,4 @@ smol-toml/dist/index.js:
7398
7411
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7399
7412
  *)
7400
7413
  */
7401
- //# sourceMappingURL=chunk-2LGU4ZLA.js.map
7414
+ //# sourceMappingURL=chunk-OG6GPQDK.js.map