@deeplake/hivemind 0.7.68 → 0.7.70

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.68"
9
+ "version": "0.7.70"
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.68",
15
+ "version": "0.7.70",
16
16
  "source": {
17
17
  "source": "git-subdir",
18
18
  "url": "https://github.com/activeloopai/hivemind.git",
19
19
  "path": "claude-code",
20
- "sha": "f0e0e28e1f3687c42c7b46ad1af6379120eab37d"
20
+ "sha": "b90aadd1f9d2f959a2c9800a14a4b9131bdb75d8"
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.68",
4
+ "version": "0.7.70",
5
5
  "author": {
6
6
  "name": "Activeloop",
7
7
  "url": "https://deeplake.ai"
package/README.md CHANGED
@@ -173,6 +173,20 @@ git clone https://github.com/activeloopai/hivemind.git ~/.codex/hivemind
173
173
  ```
174
174
 
175
175
  Restart Codex to activate.
176
+
177
+ **First launch — trust the hooks.** Codex shows a **"Hooks need review"** prompt before it will run hivemind's hooks:
178
+
179
+ ```text
180
+ Hooks need review
181
+ 2 hooks are new or changed.
182
+ Hooks can run outside the sandbox after you trust them.
183
+
184
+ 1. Review hooks
185
+ › 2. Trust all and continue
186
+ 3. Continue without trusting (hooks won't run)
187
+ ```
188
+
189
+ Choose **`2. Trust all and continue`** — otherwise the hooks won't run and hivemind stays inactive.
176
190
  </details>
177
191
 
178
192
  <details>
package/bundle/cli.js CHANGED
@@ -114,6 +114,19 @@ function writeJson(path, obj) {
114
114
  ensureDir(dirname(path));
115
115
  writeFileSync(path, JSON.stringify(obj, null, 2) + "\n");
116
116
  }
117
+ function writeJsonIfChanged(path, obj) {
118
+ const next = JSON.stringify(obj, null, 2) + "\n";
119
+ if (existsSync(path)) {
120
+ try {
121
+ if (readFileSync(path, "utf-8") === next)
122
+ return false;
123
+ } catch {
124
+ }
125
+ }
126
+ ensureDir(dirname(path));
127
+ writeFileSync(path, next);
128
+ return true;
129
+ }
117
130
  function writeVersionStamp(dir, version) {
118
131
  ensureDir(dir);
119
132
  writeFileSync(join(dir, ".hivemind_version"), version);
@@ -486,7 +499,9 @@ function installCodex() {
486
499
  if (existsSync3(srcSkills))
487
500
  copyDir(srcSkills, join4(PLUGIN_DIR, "skills"));
488
501
  tryEnableCodexHooks();
489
- writeJson(HOOKS_PATH, mergeHooksJson(buildHooksJson()));
502
+ if (!writeJsonIfChanged(HOOKS_PATH, mergeHooksJson(buildHooksJson()))) {
503
+ log(` Codex hooks.json unchanged \u2014 skipped rewrite (no re-trust prompt)`);
504
+ }
490
505
  ensureDir(AGENTS_SKILLS_DIR);
491
506
  const skillTarget = join4(PLUGIN_DIR, "skills", "deeplake-memory");
492
507
  if (existsSync3(skillTarget)) {
@@ -753,7 +768,7 @@ function installCursor() {
753
768
  copyDir(srcBundle, join7(PLUGIN_DIR3, "bundle"));
754
769
  const existing = readJson(HOOKS_PATH2);
755
770
  const merged = mergeHooks2(existing);
756
- writeJson(HOOKS_PATH2, merged);
771
+ writeJsonIfChanged(HOOKS_PATH2, merged);
757
772
  writeVersionStamp(PLUGIN_DIR3, getVersion());
758
773
  log(` Cursor installed -> ${PLUGIN_DIR3}`);
759
774
  }
@@ -69313,6 +69313,10 @@ var DeeplakeFs = class _DeeplakeFs {
69313
69313
  const rows = await client.query(sql);
69314
69314
  for (const row of rows) {
69315
69315
  const p22 = row["path"];
69316
+ const kind = classifyPath(p22);
69317
+ if (kind === "goal" && fs3.goalsTable || kind === "kpi" && fs3.kpisTable) {
69318
+ continue;
69319
+ }
69316
69320
  fs3.files.set(p22, null);
69317
69321
  fs3.meta.set(p22, {
69318
69322
  size: Number(row["size_bytes"] ?? 0),
@@ -69313,6 +69313,10 @@ var DeeplakeFs = class _DeeplakeFs {
69313
69313
  const rows = await client.query(sql);
69314
69314
  for (const row of rows) {
69315
69315
  const p22 = row["path"];
69316
+ const kind = classifyPath(p22);
69317
+ if (kind === "goal" && fs3.goalsTable || kind === "kpi" && fs3.kpisTable) {
69318
+ continue;
69319
+ }
69316
69320
  fs3.files.set(p22, null);
69317
69321
  fs3.meta.set(p22, {
69318
69322
  size: Number(row["size_bytes"] ?? 0),
@@ -69313,6 +69313,10 @@ var DeeplakeFs = class _DeeplakeFs {
69313
69313
  const rows = await client.query(sql);
69314
69314
  for (const row of rows) {
69315
69315
  const p22 = row["path"];
69316
+ const kind = classifyPath(p22);
69317
+ if (kind === "goal" && fs3.goalsTable || kind === "kpi" && fs3.kpisTable) {
69318
+ continue;
69319
+ }
69316
69320
  fs3.files.set(p22, null);
69317
69321
  fs3.meta.set(p22, {
69318
69322
  size: Number(row["size_bytes"] ?? 0),
@@ -1799,7 +1799,7 @@ function extractLatestVersion(body) {
1799
1799
  return typeof v === "string" && v.length > 0 ? v : null;
1800
1800
  }
1801
1801
  function getInstalledVersion() {
1802
- return "0.7.68".length > 0 ? "0.7.68" : null;
1802
+ return "0.7.70".length > 0 ? "0.7.70" : null;
1803
1803
  }
1804
1804
  function isNewer(latest, current) {
1805
1805
  const parse = (v) => v.replace(/-.*$/, "").split(".").map(Number);
@@ -54,5 +54,5 @@
54
54
  }
55
55
  }
56
56
  },
57
- "version": "0.7.68"
57
+ "version": "0.7.70"
58
58
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hivemind",
3
- "version": "0.7.68",
3
+ "version": "0.7.70",
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.68",
3
+ "version": "0.7.70",
4
4
  "description": "Cloud-backed persistent shared memory for AI agents powered by Deeplake",
5
5
  "type": "module",
6
6
  "repository": {