@deeplake/hivemind 0.7.47 → 0.7.48

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.
@@ -6,18 +6,18 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Cloud-backed persistent shared memory for AI agents powered by Deeplake",
9
- "version": "0.7.47"
9
+ "version": "0.7.48"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "hivemind",
14
14
  "description": "Persistent shared memory powered by Deeplake — captures all session activity and provides cross-session, cross-agent memory search",
15
- "version": "0.7.47",
15
+ "version": "0.7.48",
16
16
  "source": {
17
17
  "source": "git-subdir",
18
18
  "url": "https://github.com/activeloopai/hivemind.git",
19
19
  "path": "claude-code",
20
- "sha": "7a1da7ab040d42d7164f29ee0bad353bee2769aa"
20
+ "sha": "304d5e21d39301b1941d167abdfac1b68401f15a"
21
21
  },
22
22
  "homepage": "https://github.com/activeloopai/hivemind"
23
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hivemind",
3
3
  "description": "Cloud-backed persistent memory powered by Deeplake — read, write, and share memory across Claude Code sessions and agents",
4
- "version": "0.7.47",
4
+ "version": "0.7.48",
5
5
  "author": {
6
6
  "name": "Activeloop",
7
7
  "url": "https://deeplake.ai"
package/bundle/cli.js CHANGED
@@ -40,7 +40,7 @@ __export(index_marker_store_exports, {
40
40
  hasFreshIndexMarker: () => hasFreshIndexMarker,
41
41
  writeIndexMarker: () => writeIndexMarker
42
42
  });
43
- import { existsSync as existsSync14, mkdirSync as mkdirSync6, readFileSync as readFileSync14, writeFileSync as writeFileSync10 } from "node:fs";
43
+ import { existsSync as existsSync14, mkdirSync as mkdirSync6, readFileSync as readFileSync14, writeFileSync as writeFileSync11 } from "node:fs";
44
44
  import { join as join19 } from "node:path";
45
45
  import { tmpdir } from "node:os";
46
46
  function getIndexMarkerDir() {
@@ -65,7 +65,7 @@ function hasFreshIndexMarker(markerPath) {
65
65
  }
66
66
  function writeIndexMarker(markerPath) {
67
67
  mkdirSync6(getIndexMarkerDir(), { recursive: true });
68
- writeFileSync10(markerPath, JSON.stringify({ updatedAt: (/* @__PURE__ */ new Date()).toISOString() }), "utf-8");
68
+ writeFileSync11(markerPath, JSON.stringify({ updatedAt: (/* @__PURE__ */ new Date()).toISOString() }), "utf-8");
69
69
  }
70
70
  var INDEX_MARKER_TTL_MS;
71
71
  var init_index_marker_store = __esm({
@@ -11543,7 +11543,7 @@ function uninstallClaude() {
11543
11543
  }
11544
11544
 
11545
11545
  // dist/src/cli/install-codex.js
11546
- import { existsSync as existsSync3, readFileSync as readFileSync4, unlinkSync as unlinkSync2 } from "node:fs";
11546
+ import { existsSync as existsSync3, readFileSync as readFileSync4, unlinkSync as unlinkSync2, writeFileSync as writeFileSync3 } from "node:fs";
11547
11547
  import { execFileSync as execFileSync2 } from "node:child_process";
11548
11548
  import { join as join4 } from "node:path";
11549
11549
 
@@ -11677,8 +11677,24 @@ function reportForeignHivemindHooks(existing) {
11677
11677
  warn(` (these were probably leftover from a local dev clone \u2014 re-add them manually if intentional)`);
11678
11678
  }
11679
11679
  function tryEnableCodexHooks() {
11680
+ let enabled = false;
11680
11681
  try {
11681
- execFileSync2("codex", ["features", "enable", "codex_hooks"], { stdio: "ignore" });
11682
+ execFileSync2("codex", ["features", "enable", "hooks"], { stdio: "ignore" });
11683
+ enabled = true;
11684
+ } catch {
11685
+ }
11686
+ if (enabled)
11687
+ stripLegacyCodexHooksKey();
11688
+ }
11689
+ function stripLegacyCodexHooksKey() {
11690
+ const cfgPath = join4(CODEX_HOME, "config.toml");
11691
+ if (!existsSync3(cfgPath))
11692
+ return;
11693
+ try {
11694
+ const original = readFileSync4(cfgPath, "utf-8");
11695
+ const cleaned = original.replace(/^[ \t]*codex_hooks[ \t]*=[^\n]*\r?\n?/gm, "");
11696
+ if (cleaned !== original)
11697
+ writeFileSync3(cfgPath, cleaned);
11682
11698
  } catch {
11683
11699
  }
11684
11700
  }
@@ -11741,7 +11757,7 @@ import { existsSync as existsSync5, copyFileSync, rmSync } from "node:fs";
11741
11757
  import { join as join6 } from "node:path";
11742
11758
 
11743
11759
  // dist/openclaw/src/setup-config.js
11744
- import { existsSync as existsSync4, readFileSync as readFileSync5, writeFileSync as writeFileSync3, renameSync } from "node:fs";
11760
+ import { existsSync as existsSync4, readFileSync as readFileSync5, writeFileSync as writeFileSync4, renameSync } from "node:fs";
11745
11761
  import { homedir as homedir3 } from "node:os";
11746
11762
  import { join as join5 } from "node:path";
11747
11763
  var HIVEMIND_TOOL_NAMES = ["hivemind_search", "hivemind_read", "hivemind_index"];
@@ -11809,8 +11825,8 @@ function ensureHivemindAllowlisted() {
11809
11825
  const backupPath = `${configPath2}.bak-hivemind-${Date.now()}`;
11810
11826
  const tmpPath = `${configPath2}.tmp-hivemind-${process.pid}`;
11811
11827
  try {
11812
- writeFileSync3(backupPath, readFileSync5(configPath2, "utf-8"));
11813
- writeFileSync3(tmpPath, JSON.stringify(updated, null, 2) + "\n");
11828
+ writeFileSync4(backupPath, readFileSync5(configPath2, "utf-8"));
11829
+ writeFileSync4(tmpPath, JSON.stringify(updated, null, 2) + "\n");
11814
11830
  renameSync(tmpPath, configPath2);
11815
11831
  } catch (e) {
11816
11832
  return { status: "error", configPath: configPath2, error: `could not write config: ${e instanceof Error ? e.message : String(e)}` };
@@ -11980,7 +11996,7 @@ function uninstallCursor() {
11980
11996
  }
11981
11997
 
11982
11998
  // dist/src/cli/install-hermes.js
11983
- import { existsSync as existsSync8, writeFileSync as writeFileSync4, readFileSync as readFileSync6, rmSync as rmSync2, unlinkSync as unlinkSync4 } from "node:fs";
11999
+ import { existsSync as existsSync8, writeFileSync as writeFileSync5, readFileSync as readFileSync6, rmSync as rmSync2, unlinkSync as unlinkSync4 } from "node:fs";
11984
12000
  import { join as join9 } from "node:path";
11985
12001
 
11986
12002
  // node_modules/js-yaml/dist/js-yaml.mjs
@@ -14710,11 +14726,11 @@ function readConfig() {
14710
14726
  function writeConfig(cfg) {
14711
14727
  ensureDir(HERMES_HOME);
14712
14728
  const dumped = dump(cfg, { lineWidth: 100, noRefs: true });
14713
- writeFileSync4(CONFIG_PATH, dumped);
14729
+ writeFileSync5(CONFIG_PATH, dumped);
14714
14730
  }
14715
14731
  function installHermes() {
14716
14732
  ensureDir(SKILLS_DIR);
14717
- writeFileSync4(join9(SKILLS_DIR, "SKILL.md"), SKILL_BODY);
14733
+ writeFileSync5(join9(SKILLS_DIR, "SKILL.md"), SKILL_BODY);
14718
14734
  writeVersionStamp(SKILLS_DIR, getVersion());
14719
14735
  log(` Hermes skill installed -> ${SKILLS_DIR}`);
14720
14736
  const srcBundle = join9(pkgRoot(), "hermes", "bundle");
@@ -14780,7 +14796,7 @@ function uninstallHermes() {
14780
14796
  }
14781
14797
 
14782
14798
  // dist/src/cli/install-pi.js
14783
- import { existsSync as existsSync9, writeFileSync as writeFileSync5, rmSync as rmSync3, readFileSync as readFileSync7, copyFileSync as copyFileSync2 } from "node:fs";
14799
+ import { existsSync as existsSync9, writeFileSync as writeFileSync6, rmSync as rmSync3, readFileSync as readFileSync7, copyFileSync as copyFileSync2 } from "node:fs";
14784
14800
  import { join as join10 } from "node:path";
14785
14801
  var PI_AGENT_DIR = join10(HOME, ".pi", "agent");
14786
14802
  var AGENTS_MD = join10(PI_AGENT_DIR, "AGENTS.md");
@@ -14864,7 +14880,7 @@ function installPi() {
14864
14880
  }
14865
14881
  const prior = existsSync9(AGENTS_MD) ? readFileSync7(AGENTS_MD, "utf-8") : null;
14866
14882
  const next = upsertHivemindBlock(prior);
14867
- writeFileSync5(AGENTS_MD, next);
14883
+ writeFileSync6(AGENTS_MD, next);
14868
14884
  const srcExtension = join10(pkgRoot(), "pi", "extension-source", "hivemind.ts");
14869
14885
  if (!existsSync9(srcExtension)) {
14870
14886
  throw new Error(`pi extension source missing at ${srcExtension}. Reinstall the @deeplake/hivemind package.`);
@@ -14920,7 +14936,7 @@ function uninstallPi() {
14920
14936
  rmSync3(AGENTS_MD, { force: true });
14921
14937
  log(` pi removed empty ${AGENTS_MD}`);
14922
14938
  } else {
14923
- writeFileSync5(AGENTS_MD, stripped);
14939
+ writeFileSync6(AGENTS_MD, stripped);
14924
14940
  log(` pi stripped hivemind block from ${AGENTS_MD}`);
14925
14941
  }
14926
14942
  }
@@ -14946,7 +14962,7 @@ function pidPathFor(uid, dir = DEFAULT_SOCKET_DIR) {
14946
14962
  }
14947
14963
 
14948
14964
  // dist/src/user-config.js
14949
- import { existsSync as existsSync10, mkdirSync as mkdirSync2, readFileSync as readFileSync8, renameSync as renameSync2, writeFileSync as writeFileSync6 } from "node:fs";
14965
+ import { existsSync as existsSync10, mkdirSync as mkdirSync2, readFileSync as readFileSync8, renameSync as renameSync2, writeFileSync as writeFileSync7 } from "node:fs";
14950
14966
  import { homedir as homedir4 } from "node:os";
14951
14967
  import { dirname as dirname2, join as join11 } from "node:path";
14952
14968
  var _configPath = () => process.env.HIVEMIND_CONFIG_PATH ?? join11(homedir4(), ".deeplake", "config.json");
@@ -14977,7 +14993,7 @@ function writeUserConfig(patch) {
14977
14993
  if (!existsSync10(dir))
14978
14994
  mkdirSync2(dir, { recursive: true });
14979
14995
  const tmp = `${path5}.tmp.${process.pid}`;
14980
- writeFileSync6(tmp, JSON.stringify(merged, null, 2) + "\n", "utf-8");
14996
+ writeFileSync7(tmp, JSON.stringify(merged, null, 2) + "\n", "utf-8");
14981
14997
  renameSync2(tmp, path5);
14982
14998
  _cache = merged;
14983
14999
  return merged;
@@ -15285,7 +15301,7 @@ function deeplakeClientHeader() {
15285
15301
  }
15286
15302
 
15287
15303
  // dist/src/commands/install-id.js
15288
- import { readFileSync as readFileSync10, writeFileSync as writeFileSync7, mkdirSync as mkdirSync3 } from "node:fs";
15304
+ import { readFileSync as readFileSync10, writeFileSync as writeFileSync8, mkdirSync as mkdirSync3 } from "node:fs";
15289
15305
  import { join as join13 } from "node:path";
15290
15306
  import { homedir as homedir5 } from "node:os";
15291
15307
  import { randomUUID } from "node:crypto";
@@ -15306,7 +15322,7 @@ function getOrCreateInstallID() {
15306
15322
  const id = randomUUID();
15307
15323
  try {
15308
15324
  mkdirSync3(configDir(), { recursive: true, mode: 448 });
15309
- writeFileSync7(installIDPath(), id, { mode: 384 });
15325
+ writeFileSync8(installIDPath(), id, { mode: 384 });
15310
15326
  return id;
15311
15327
  } catch {
15312
15328
  return "";
@@ -15320,7 +15336,7 @@ function hivemindInstallIDHeader() {
15320
15336
  }
15321
15337
 
15322
15338
  // dist/src/commands/auth-creds.js
15323
- import { readFileSync as readFileSync11, writeFileSync as writeFileSync8, mkdirSync as mkdirSync4, unlinkSync as unlinkSync6 } from "node:fs";
15339
+ import { readFileSync as readFileSync11, writeFileSync as writeFileSync9, mkdirSync as mkdirSync4, unlinkSync as unlinkSync6 } from "node:fs";
15324
15340
  import { join as join14 } from "node:path";
15325
15341
  import { homedir as homedir6 } from "node:os";
15326
15342
  function configDir2() {
@@ -15338,7 +15354,7 @@ function loadCredentials() {
15338
15354
  }
15339
15355
  function saveCredentials(creds) {
15340
15356
  mkdirSync4(configDir2(), { recursive: true, mode: 448 });
15341
- writeFileSync8(credsPath(), JSON.stringify({ ...creds, savedAt: (/* @__PURE__ */ new Date()).toISOString() }, null, 2), { mode: 384 });
15357
+ writeFileSync9(credsPath(), JSON.stringify({ ...creds, savedAt: (/* @__PURE__ */ new Date()).toISOString() }, null, 2), { mode: 384 });
15342
15358
  }
15343
15359
  function deleteCredentials() {
15344
15360
  try {
@@ -15924,7 +15940,7 @@ function isMissingTableError(message) {
15924
15940
  }
15925
15941
 
15926
15942
  // dist/src/notifications/queue.js
15927
- import { readFileSync as readFileSync13, writeFileSync as writeFileSync9, renameSync as renameSync3, mkdirSync as mkdirSync5, openSync, closeSync, unlinkSync as unlinkSync7, statSync as statSync2 } from "node:fs";
15943
+ import { readFileSync as readFileSync13, writeFileSync as writeFileSync10, renameSync as renameSync3, mkdirSync as mkdirSync5, openSync, closeSync, unlinkSync as unlinkSync7, statSync as statSync2 } from "node:fs";
15928
15944
  import { join as join18, resolve } from "node:path";
15929
15945
  import { homedir as homedir9 } from "node:os";
15930
15946
  import { setTimeout as sleep } from "node:timers/promises";
@@ -15964,7 +15980,7 @@ function writeQueue(q) {
15964
15980
  }
15965
15981
  mkdirSync5(join18(home, ".deeplake"), { recursive: true, mode: 448 });
15966
15982
  const tmp = `${path5}.${process.pid}.tmp`;
15967
- writeFileSync9(tmp, JSON.stringify(q, null, 2), { mode: 384 });
15983
+ writeFileSync10(tmp, JSON.stringify(q, null, 2), { mode: 384 });
15968
15984
  renameSync3(tmp, path5);
15969
15985
  }
15970
15986
  async function withQueueLock(fn) {
@@ -16887,7 +16903,7 @@ import { createHash as createHash6 } from "node:crypto";
16887
16903
 
16888
16904
  // dist/src/graph/cache.js
16889
16905
  import { createHash } from "node:crypto";
16890
- import { existsSync as existsSync15, mkdirSync as mkdirSync7, readFileSync as readFileSync15, renameSync as renameSync4, writeFileSync as writeFileSync11 } from "node:fs";
16906
+ import { existsSync as existsSync15, mkdirSync as mkdirSync7, readFileSync as readFileSync15, renameSync as renameSync4, writeFileSync as writeFileSync12 } from "node:fs";
16891
16907
  import { dirname as dirname3, join as join20 } from "node:path";
16892
16908
  var CACHE_SCHEMA_VERSION = 1;
16893
16909
  function fileContentHash(contents) {
@@ -16990,7 +17006,7 @@ function writeCache(baseDir, contentSha256, extraction) {
16990
17006
  try {
16991
17007
  mkdirSync7(dirname3(path5), { recursive: true });
16992
17008
  const tmp = `${path5}.tmp.${process.pid}.${Date.now()}`;
16993
- writeFileSync11(tmp, JSON.stringify(entry));
17009
+ writeFileSync12(tmp, JSON.stringify(entry));
16994
17010
  renameSync4(tmp, path5);
16995
17011
  } catch {
16996
17012
  }
@@ -17121,7 +17137,7 @@ function canonicalJSON(value) {
17121
17137
  // dist/src/graph/deeplake-pull.js
17122
17138
  import { execFileSync as execFileSync4 } from "node:child_process";
17123
17139
  import { createHash as createHash5 } from "node:crypto";
17124
- import { existsSync as existsSync18, mkdirSync as mkdirSync11, renameSync as renameSync7, writeFileSync as writeFileSync14 } from "node:fs";
17140
+ import { existsSync as existsSync18, mkdirSync as mkdirSync11, renameSync as renameSync7, writeFileSync as writeFileSync15 } from "node:fs";
17125
17141
  import { dirname as dirname7, join as join24 } from "node:path";
17126
17142
 
17127
17143
  // dist/src/utils/repo-identity.js
@@ -17172,7 +17188,7 @@ function deriveProjectKey(cwd) {
17172
17188
  }
17173
17189
 
17174
17190
  // dist/src/graph/last-build.js
17175
- import { existsSync as existsSync16, mkdirSync as mkdirSync8, readFileSync as readFileSync16, renameSync as renameSync5, writeFileSync as writeFileSync12 } from "node:fs";
17191
+ import { existsSync as existsSync16, mkdirSync as mkdirSync8, readFileSync as readFileSync16, renameSync as renameSync5, writeFileSync as writeFileSync13 } from "node:fs";
17176
17192
  import { dirname as dirname4, join as join21 } from "node:path";
17177
17193
  function lastBuildPath(baseDir, worktreeId) {
17178
17194
  if (worktreeId !== void 0) {
@@ -17185,7 +17201,7 @@ function writeLastBuild(baseDir, state, worktreeId) {
17185
17201
  try {
17186
17202
  mkdirSync8(dirname4(path5), { recursive: true });
17187
17203
  const tmp = `${path5}.tmp.${process.pid}.${Date.now()}`;
17188
- writeFileSync12(tmp, JSON.stringify(state));
17204
+ writeFileSync13(tmp, JSON.stringify(state));
17189
17205
  renameSync5(tmp, path5);
17190
17206
  } catch {
17191
17207
  }
@@ -17319,7 +17335,7 @@ function parseLine(line) {
17319
17335
 
17320
17336
  // dist/src/graph/snapshot.js
17321
17337
  import { createHash as createHash4 } from "node:crypto";
17322
- import { mkdirSync as mkdirSync10, renameSync as renameSync6, writeFileSync as writeFileSync13 } from "node:fs";
17338
+ import { mkdirSync as mkdirSync10, renameSync as renameSync6, writeFileSync as writeFileSync14 } from "node:fs";
17323
17339
  import { homedir as homedir10 } from "node:os";
17324
17340
  import { dirname as dirname6, join as join23 } from "node:path";
17325
17341
  function graphsRoot() {
@@ -17419,7 +17435,7 @@ function writeSnapshot(snapshot, baseDir, trigger = "unknown", worktreeId) {
17419
17435
  function writeFileAtomic(filePath, contents) {
17420
17436
  mkdirSync10(dirname6(filePath), { recursive: true });
17421
17437
  const tmp = `${filePath}.tmp.${process.pid}.${Date.now()}`;
17422
- writeFileSync13(tmp, contents);
17438
+ writeFileSync14(tmp, contents);
17423
17439
  renameSync6(tmp, filePath);
17424
17440
  }
17425
17441
 
@@ -17564,7 +17580,7 @@ function coerceSnapshotPayload(raw) {
17564
17580
  function writeFileAtomic2(filePath, contents) {
17565
17581
  mkdirSync11(dirname7(filePath), { recursive: true });
17566
17582
  const tmp = `${filePath}.tmp.${process.pid}.${Date.now()}`;
17567
- writeFileSync14(tmp, contents);
17583
+ writeFileSync15(tmp, contents);
17568
17584
  renameSync7(tmp, filePath);
17569
17585
  }
17570
17586
  function errorOutcome2(stage, err) {
@@ -18034,7 +18050,7 @@ function firstNamedChildOfTypes(node, types) {
18034
18050
  }
18035
18051
 
18036
18052
  // dist/src/graph/git-hook-install.js
18037
- import { chmodSync as chmodSync2, existsSync as existsSync20, mkdirSync as mkdirSync12, readFileSync as readFileSync19, unlinkSync as unlinkSync8, writeFileSync as writeFileSync15 } from "node:fs";
18053
+ import { chmodSync as chmodSync2, existsSync as existsSync20, mkdirSync as mkdirSync12, readFileSync as readFileSync19, unlinkSync as unlinkSync8, writeFileSync as writeFileSync16 } from "node:fs";
18038
18054
  import { dirname as dirname8, join as join26, resolve as resolve3 } from "node:path";
18039
18055
  import { execFileSync as execFileSync5 } from "node:child_process";
18040
18056
  var HOOK_BEGIN_MARKER = "# HIVEMIND_GRAPH_HOOK_BEGIN \u2014 managed by `hivemind graph init`";
@@ -18128,7 +18144,7 @@ function installPostCommitHook(cwd, opts = {}) {
18128
18144
  };
18129
18145
  }
18130
18146
  mkdirSync12(dirname8(path5), { recursive: true });
18131
- writeFileSync15(path5, buildHookFile(hivemindPath), { mode: 493 });
18147
+ writeFileSync16(path5, buildHookFile(hivemindPath), { mode: 493 });
18132
18148
  try {
18133
18149
  chmodSync2(path5, 493);
18134
18150
  } catch {
@@ -18169,7 +18185,7 @@ function uninstallPostCommitHook(cwd) {
18169
18185
  unlinkSync8(path5);
18170
18186
  return { kind: "removed", path: path5, wholeFileDeleted: true };
18171
18187
  }
18172
- writeFileSync15(path5, stripped);
18188
+ writeFileSync16(path5, stripped);
18173
18189
  return { kind: "removed", path: path5, wholeFileDeleted: false };
18174
18190
  }
18175
18191
  function containsOurMarkers(content) {
@@ -18734,7 +18750,7 @@ function readGitBranch(cwd) {
18734
18750
  }
18735
18751
 
18736
18752
  // dist/src/commands/dashboard.js
18737
- import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync18 } from "node:fs";
18753
+ import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync19 } from "node:fs";
18738
18754
  import { homedir as homedir15 } from "node:os";
18739
18755
  import { dirname as dirname12, join as join35, resolve as resolve5 } from "node:path";
18740
18756
 
@@ -18744,7 +18760,7 @@ import { homedir as homedir14 } from "node:os";
18744
18760
  import { join as join33 } from "node:path";
18745
18761
 
18746
18762
  // dist/src/notifications/sources/org-stats.js
18747
- import { existsSync as existsSync21, mkdirSync as mkdirSync13, readFileSync as readFileSync21, writeFileSync as writeFileSync16 } from "node:fs";
18763
+ import { existsSync as existsSync21, mkdirSync as mkdirSync13, readFileSync as readFileSync21, writeFileSync as writeFileSync17 } from "node:fs";
18748
18764
  import { homedir as homedir11 } from "node:os";
18749
18765
  import { dirname as dirname9, join as join28 } from "node:path";
18750
18766
  var log5 = (msg) => log2("notifications-org-stats", msg);
@@ -18796,7 +18812,7 @@ function writeCache2(scopeKey, data) {
18796
18812
  try {
18797
18813
  mkdirSync13(dirname9(cacheFilePath()), { recursive: true });
18798
18814
  const body = { fetchedAt: Date.now(), scopeKey, data };
18799
- writeFileSync16(cacheFilePath(), JSON.stringify(body), "utf-8");
18815
+ writeFileSync17(cacheFilePath(), JSON.stringify(body), "utf-8");
18800
18816
  } catch (e) {
18801
18817
  log5(`cache write failed: ${e?.message ?? String(e)}`);
18802
18818
  }
@@ -18914,7 +18930,7 @@ function countUserGeneratedSkills(userName) {
18914
18930
  }
18915
18931
 
18916
18932
  // dist/src/skillify/state.js
18917
- import { readFileSync as readFileSync23, writeFileSync as writeFileSync17, writeSync, mkdirSync as mkdirSync15, renameSync as renameSync9, rmdirSync, existsSync as existsSync24, lstatSync as lstatSync3, unlinkSync as unlinkSync9, openSync as openSync2, closeSync as closeSync2 } from "node:fs";
18933
+ import { readFileSync as readFileSync23, writeFileSync as writeFileSync18, writeSync, mkdirSync as mkdirSync15, renameSync as renameSync9, rmdirSync, existsSync as existsSync24, lstatSync as lstatSync3, unlinkSync as unlinkSync9, openSync as openSync2, closeSync as closeSync2 } from "node:fs";
18918
18934
  import { join as join32 } from "node:path";
18919
18935
 
18920
18936
  // dist/src/skillify/legacy-migration.js
@@ -19672,7 +19688,7 @@ async function runDashboardCommand(rawArgs, runOpts = {}) {
19672
19688
  const absOut = resolve5(finalOut);
19673
19689
  try {
19674
19690
  mkdirSync16(dirname12(absOut), { recursive: true });
19675
- writeFileSync18(absOut, html, "utf-8");
19691
+ writeFileSync19(absOut, html, "utf-8");
19676
19692
  } catch (e) {
19677
19693
  err(`hivemind dashboard: failed to write ${absOut}: ${e?.message ?? String(e)}
19678
19694
  `);
@@ -19756,7 +19772,7 @@ import { homedir as homedir24 } from "node:os";
19756
19772
  import { dirname as dirname17, join as join46 } from "node:path";
19757
19773
 
19758
19774
  // dist/src/skillify/scope-config.js
19759
- import { existsSync as existsSync26, mkdirSync as mkdirSync17, readFileSync as readFileSync25, writeFileSync as writeFileSync19 } from "node:fs";
19775
+ import { existsSync as existsSync26, mkdirSync as mkdirSync17, readFileSync as readFileSync25, writeFileSync as writeFileSync20 } from "node:fs";
19760
19776
  import { join as join36 } from "node:path";
19761
19777
  function configPath() {
19762
19778
  return join36(getStateDir(), "config.json");
@@ -19780,16 +19796,16 @@ function loadScopeConfig() {
19780
19796
  function saveScopeConfig(cfg) {
19781
19797
  migrateLegacyStateDir();
19782
19798
  mkdirSync17(getStateDir(), { recursive: true });
19783
- writeFileSync19(configPath(), JSON.stringify(cfg, null, 2));
19799
+ writeFileSync20(configPath(), JSON.stringify(cfg, null, 2));
19784
19800
  }
19785
19801
 
19786
19802
  // dist/src/skillify/pull.js
19787
- import { existsSync as existsSync30, readFileSync as readFileSync28, writeFileSync as writeFileSync22, mkdirSync as mkdirSync20, renameSync as renameSync11, lstatSync as lstatSync5, readlinkSync as readlinkSync2, symlinkSync as symlinkSync2, unlinkSync as unlinkSync11 } from "node:fs";
19803
+ import { existsSync as existsSync30, readFileSync as readFileSync28, writeFileSync as writeFileSync23, mkdirSync as mkdirSync20, renameSync as renameSync11, lstatSync as lstatSync5, readlinkSync as readlinkSync2, symlinkSync as symlinkSync2, unlinkSync as unlinkSync11 } from "node:fs";
19788
19804
  import { homedir as homedir18 } from "node:os";
19789
19805
  import { dirname as dirname14, join as join40 } from "node:path";
19790
19806
 
19791
19807
  // dist/src/skillify/skill-writer.js
19792
- import { existsSync as existsSync27, mkdirSync as mkdirSync18, readFileSync as readFileSync26, readdirSync as readdirSync5, statSync as statSync5, writeFileSync as writeFileSync20 } from "node:fs";
19808
+ import { existsSync as existsSync27, mkdirSync as mkdirSync18, readFileSync as readFileSync26, readdirSync as readdirSync5, statSync as statSync5, writeFileSync as writeFileSync21 } from "node:fs";
19793
19809
  import { homedir as homedir16 } from "node:os";
19794
19810
  import { join as join37 } from "node:path";
19795
19811
  function assertValidSkillName(name) {
@@ -19911,7 +19927,7 @@ function writeNewSkill(args) {
19911
19927
 
19912
19928
  ${args.body.trim()}
19913
19929
  `;
19914
- writeFileSync20(path5, text);
19930
+ writeFileSync21(path5, text);
19915
19931
  return {
19916
19932
  path: path5,
19917
19933
  action: "created",
@@ -19942,7 +19958,7 @@ function resolveSkillsRoot(install, cwd) {
19942
19958
  }
19943
19959
 
19944
19960
  // dist/src/skillify/manifest.js
19945
- import { existsSync as existsSync28, lstatSync as lstatSync4, mkdirSync as mkdirSync19, readFileSync as readFileSync27, renameSync as renameSync10, unlinkSync as unlinkSync10, writeFileSync as writeFileSync21 } from "node:fs";
19961
+ import { existsSync as existsSync28, lstatSync as lstatSync4, mkdirSync as mkdirSync19, readFileSync as readFileSync27, renameSync as renameSync10, unlinkSync as unlinkSync10, writeFileSync as writeFileSync22 } from "node:fs";
19946
19962
  import { dirname as dirname13, join as join38 } from "node:path";
19947
19963
  function emptyManifest() {
19948
19964
  return { version: 1, entries: [] };
@@ -20005,7 +20021,7 @@ function saveManifest(m, path5 = manifestPath()) {
20005
20021
  migrateLegacyStateDir();
20006
20022
  mkdirSync19(dirname13(path5), { recursive: true });
20007
20023
  const tmp = `${path5}.tmp`;
20008
- writeFileSync21(tmp, JSON.stringify(m, null, 2) + "\n", { mode: 384 });
20024
+ writeFileSync22(tmp, JSON.stringify(m, null, 2) + "\n", { mode: 384 });
20009
20025
  renameSync10(tmp, path5);
20010
20026
  }
20011
20027
  function recordPull(entry, path5 = manifestPath()) {
@@ -20403,7 +20419,7 @@ async function runPull(opts) {
20403
20419
  } catch {
20404
20420
  }
20405
20421
  }
20406
- writeFileSync22(skillFile, renderSkillFile(row));
20422
+ writeFileSync23(skillFile, renderSkillFile(row));
20407
20423
  const symlinks = opts.install === "global" ? fanOutSymlinks(skillDir2, dirName, detectAgentSkillsRoots(root)) : [];
20408
20424
  try {
20409
20425
  recordPull({
@@ -20614,7 +20630,7 @@ function decideTargetForManifestEntry(entry, opts, userFilter, haveUserFilter) {
20614
20630
 
20615
20631
  // dist/src/commands/mine-local.js
20616
20632
  import { spawn as spawn2 } from "node:child_process";
20617
- import { existsSync as existsSync35, mkdirSync as mkdirSync22, readFileSync as readFileSync31, writeFileSync as writeFileSync24 } from "node:fs";
20633
+ import { existsSync as existsSync35, mkdirSync as mkdirSync22, readFileSync as readFileSync31, writeFileSync as writeFileSync25 } from "node:fs";
20618
20634
  import { homedir as homedir23 } from "node:os";
20619
20635
  import { basename as basename2, dirname as dirname16, join as join45 } from "node:path";
20620
20636
 
@@ -20924,7 +20940,7 @@ function extractJsonBlock(s) {
20924
20940
  }
20925
20941
 
20926
20942
  // dist/src/skillify/local-manifest.js
20927
- import { existsSync as existsSync34, mkdirSync as mkdirSync21, readFileSync as readFileSync30, writeFileSync as writeFileSync23 } from "node:fs";
20943
+ import { existsSync as existsSync34, mkdirSync as mkdirSync21, readFileSync as readFileSync30, writeFileSync as writeFileSync24 } from "node:fs";
20928
20944
  import { homedir as homedir22 } from "node:os";
20929
20945
  import { dirname as dirname15, join as join44 } from "node:path";
20930
20946
  var LOCAL_MANIFEST_PATH = join44(homedir22(), ".claude", "hivemind", "local-mined.json");
@@ -20940,7 +20956,7 @@ function readLocalManifest(path5 = LOCAL_MANIFEST_PATH) {
20940
20956
  }
20941
20957
  function writeLocalManifest(m, path5 = LOCAL_MANIFEST_PATH) {
20942
20958
  mkdirSync21(dirname15(path5), { recursive: true });
20943
- writeFileSync23(path5, JSON.stringify(m, null, 2));
20959
+ writeFileSync24(path5, JSON.stringify(m, null, 2));
20944
20960
  }
20945
20961
  var LATEST_RUN_WINDOW_MS = 5 * 60 * 1e3;
20946
20962
 
@@ -21346,12 +21362,12 @@ async function runMineLocalImpl(args) {
21346
21362
  mkdirSync22(sessionTmp, { recursive: true });
21347
21363
  const verdictPath = join45(sessionTmp, "verdict.json");
21348
21364
  const prompt = buildSessionPrompt(tail, s, verdictPath);
21349
- writeFileSync24(join45(sessionTmp, "prompt.txt"), prompt);
21365
+ writeFileSync25(join45(sessionTmp, "prompt.txt"), prompt);
21350
21366
  const gate = await runGateViaStdin({ agent: gateAgent, bin: gateBin, prompt, timeoutMs: GATE_TIMEOUT_MS });
21351
21367
  try {
21352
- writeFileSync24(join45(sessionTmp, "gate-stdout.txt"), gate.stdout);
21368
+ writeFileSync25(join45(sessionTmp, "gate-stdout.txt"), gate.stdout);
21353
21369
  if (gate.stderr)
21354
- writeFileSync24(join45(sessionTmp, "gate-stderr.txt"), gate.stderr);
21370
+ writeFileSync25(join45(sessionTmp, "gate-stderr.txt"), gate.stderr);
21355
21371
  } catch {
21356
21372
  }
21357
21373
  if (gate.errored) {
@@ -1793,7 +1793,7 @@ function extractLatestVersion(body) {
1793
1793
  return typeof v === "string" && v.length > 0 ? v : null;
1794
1794
  }
1795
1795
  function getInstalledVersion() {
1796
- return "0.7.47".length > 0 ? "0.7.47" : null;
1796
+ return "0.7.48".length > 0 ? "0.7.48" : null;
1797
1797
  }
1798
1798
  function isNewer(latest, current) {
1799
1799
  const parse = (v) => v.replace(/-.*$/, "").split(".").map(Number);
@@ -54,5 +54,5 @@
54
54
  }
55
55
  }
56
56
  },
57
- "version": "0.7.47"
57
+ "version": "0.7.48"
58
58
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hivemind",
3
- "version": "0.7.47",
3
+ "version": "0.7.48",
4
4
  "type": "module",
5
5
  "description": "Hivemind — cloud-backed persistent shared memory for AI agents, powered by DeepLake",
6
6
  "license": "Apache-2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deeplake/hivemind",
3
- "version": "0.7.47",
3
+ "version": "0.7.48",
4
4
  "description": "Cloud-backed persistent shared memory for AI agents powered by Deeplake",
5
5
  "type": "module",
6
6
  "repository": {