@deeplake/hivemind 0.7.79 → 0.7.81
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/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/bundle/cli.js +140 -94
- package/codex/bundle/capture.js +232 -72
- package/codex/bundle/commands/auth-login.js +14 -10
- package/codex/bundle/embeddings/embed-daemon.js +9 -5
- package/codex/bundle/graph-on-stop.js +32 -28
- package/codex/bundle/graph-pull-worker.js +27 -23
- package/codex/bundle/pre-tool-use.js +366 -123
- package/codex/bundle/session-start-setup.js +18 -14
- package/codex/bundle/session-start.js +26 -22
- package/codex/bundle/shell/deeplake-shell.js +30 -26
- package/codex/bundle/skillify-worker.js +14 -10
- package/codex/bundle/skillopt-worker.js +2061 -0
- package/codex/bundle/stop.js +50 -45
- package/codex/bundle/wiki-worker.js +18 -14
- package/cursor/bundle/capture.js +71 -44
- package/cursor/bundle/commands/auth-login.js +14 -10
- package/cursor/bundle/embeddings/embed-daemon.js +9 -5
- package/cursor/bundle/graph-on-stop.js +32 -28
- package/cursor/bundle/graph-pull-worker.js +27 -23
- package/cursor/bundle/pre-tool-use.js +28 -24
- package/cursor/bundle/session-end.js +40 -36
- package/cursor/bundle/session-start.js +39 -35
- package/cursor/bundle/shell/deeplake-shell.js +30 -26
- package/cursor/bundle/skillify-worker.js +14 -10
- package/cursor/bundle/wiki-worker.js +18 -14
- package/hermes/bundle/capture.js +235 -85
- package/hermes/bundle/commands/auth-login.js +14 -10
- package/hermes/bundle/embeddings/embed-daemon.js +9 -5
- package/hermes/bundle/graph-on-stop.js +32 -28
- package/hermes/bundle/graph-pull-worker.js +27 -23
- package/hermes/bundle/pre-tool-use.js +298 -74
- package/hermes/bundle/session-end.js +40 -36
- package/hermes/bundle/session-start.js +39 -35
- package/hermes/bundle/shell/deeplake-shell.js +30 -26
- package/hermes/bundle/skillify-worker.js +14 -10
- package/hermes/bundle/skillopt-worker.js +2061 -0
- package/hermes/bundle/wiki-worker.js +18 -14
- package/mcp/bundle/server.js +15 -11
- package/openclaw/dist/index.js +11 -7
- package/openclaw/dist/skillify-worker.js +14 -10
- package/openclaw/openclaw.plugin.json +1 -1
- package/openclaw/package.json +1 -1
- package/package.json +1 -1
- package/pi/extension-source/hivemind.ts +93 -0
|
@@ -5,8 +5,8 @@ import { readFileSync as readFileSync3, writeFileSync as writeFileSync3, existsS
|
|
|
5
5
|
import { join as join7 } from "node:path";
|
|
6
6
|
|
|
7
7
|
// dist/src/utils/debug.js
|
|
8
|
-
import { appendFileSync } from "node:fs";
|
|
9
|
-
import { join } from "node:path";
|
|
8
|
+
import { appendFileSync, mkdirSync } from "node:fs";
|
|
9
|
+
import { dirname, join } from "node:path";
|
|
10
10
|
import { homedir } from "node:os";
|
|
11
11
|
var LOG = join(homedir(), ".deeplake", "hook-debug.log");
|
|
12
12
|
function isDebug() {
|
|
@@ -18,8 +18,12 @@ function utcTimestamp(d = /* @__PURE__ */ new Date()) {
|
|
|
18
18
|
function log(tag, msg) {
|
|
19
19
|
if (!isDebug())
|
|
20
20
|
return;
|
|
21
|
-
|
|
21
|
+
try {
|
|
22
|
+
mkdirSync(dirname(LOG), { recursive: true });
|
|
23
|
+
appendFileSync(LOG, `${(/* @__PURE__ */ new Date()).toISOString()} [${tag}] ${msg}
|
|
22
24
|
`);
|
|
25
|
+
} catch {
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
// dist/src/utils/client-header.js
|
|
@@ -63,7 +67,7 @@ function extractPairs(rows) {
|
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
// dist/src/skillify/skill-writer.js
|
|
66
|
-
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
70
|
+
import { existsSync, mkdirSync as mkdirSync2, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
67
71
|
import { homedir as homedir2 } from "node:os";
|
|
68
72
|
import { join as join2 } from "node:path";
|
|
69
73
|
function assertValidSkillName(name) {
|
|
@@ -165,7 +169,7 @@ function writeNewSkill(args) {
|
|
|
165
169
|
if (existsSync(path)) {
|
|
166
170
|
throw new Error(`skill already exists at ${path}; use mergeSkill`);
|
|
167
171
|
}
|
|
168
|
-
|
|
172
|
+
mkdirSync2(dir, { recursive: true });
|
|
169
173
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
170
174
|
const author = args.author && args.author.length > 0 ? args.author : void 0;
|
|
171
175
|
const contributors = author ? [author] : [];
|
|
@@ -754,7 +758,7 @@ function resolveRecordScope(args) {
|
|
|
754
758
|
}
|
|
755
759
|
|
|
756
760
|
// dist/src/skillify/state.js
|
|
757
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, writeSync, mkdirSync as
|
|
761
|
+
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, writeSync, mkdirSync as mkdirSync3, renameSync as renameSync2, rmdirSync, existsSync as existsSync4, lstatSync, unlinkSync, openSync, closeSync } from "node:fs";
|
|
758
762
|
import { join as join6 } from "node:path";
|
|
759
763
|
|
|
760
764
|
// dist/src/utils/repo-identity.js
|
|
@@ -764,7 +768,7 @@ import { basename, resolve } from "node:path";
|
|
|
764
768
|
|
|
765
769
|
// dist/src/skillify/legacy-migration.js
|
|
766
770
|
import { existsSync as existsSync3, renameSync } from "node:fs";
|
|
767
|
-
import { dirname, join as join5 } from "node:path";
|
|
771
|
+
import { dirname as dirname2, join as join5 } from "node:path";
|
|
768
772
|
|
|
769
773
|
// dist/src/skillify/state-dir.js
|
|
770
774
|
import { homedir as homedir4 } from "node:os";
|
|
@@ -784,7 +788,7 @@ function migrateLegacyStateDir() {
|
|
|
784
788
|
return;
|
|
785
789
|
attempted = true;
|
|
786
790
|
const current = getStateDir();
|
|
787
|
-
const legacy = join5(
|
|
791
|
+
const legacy = join5(dirname2(current), "skilify");
|
|
788
792
|
if (!existsSync3(legacy))
|
|
789
793
|
return;
|
|
790
794
|
if (existsSync3(current))
|
|
@@ -828,7 +832,7 @@ function readState(projectKey) {
|
|
|
828
832
|
}
|
|
829
833
|
function writeState(projectKey, state) {
|
|
830
834
|
migrateLegacyStateDir();
|
|
831
|
-
|
|
835
|
+
mkdirSync3(getStateDir(), { recursive: true });
|
|
832
836
|
const p = statePath(projectKey);
|
|
833
837
|
const tmp = `${p}.${process.pid}.${Date.now()}.tmp`;
|
|
834
838
|
writeFileSync2(tmp, JSON.stringify(state, null, 2));
|
|
@@ -836,7 +840,7 @@ function writeState(projectKey, state) {
|
|
|
836
840
|
}
|
|
837
841
|
function withRmwLock(projectKey, fn) {
|
|
838
842
|
migrateLegacyStateDir();
|
|
839
|
-
|
|
843
|
+
mkdirSync3(getStateDir(), { recursive: true });
|
|
840
844
|
const rmw = lockPath(projectKey) + ".rmw";
|
|
841
845
|
const deadline = Date.now() + 2e3;
|
|
842
846
|
let fd = null;
|