@deeplake/hivemind 0.7.26 → 0.7.28
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 +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/bundle/cli.js +1086 -93
- package/codex/bundle/capture.js +10 -5
- package/codex/bundle/commands/auth-login.js +10 -5
- package/codex/bundle/embeddings/embed-daemon.js +4 -2
- package/codex/bundle/pre-tool-use.js +10 -5
- package/codex/bundle/session-start-setup.js +10 -5
- package/codex/bundle/session-start.js +233 -136
- package/codex/bundle/shell/deeplake-shell.js +10 -5
- package/codex/bundle/skillify-worker.js +60 -21
- package/codex/bundle/stop.js +66 -25
- package/codex/bundle/wiki-worker.js +4 -2
- package/codex/skills/deeplake-memory/SKILL.md +33 -0
- package/cursor/bundle/capture.js +63 -22
- package/cursor/bundle/commands/auth-login.js +10 -5
- package/cursor/bundle/embeddings/embed-daemon.js +4 -2
- package/cursor/bundle/pre-tool-use.js +10 -5
- package/cursor/bundle/session-end.js +57 -19
- package/cursor/bundle/session-start.js +238 -87
- package/cursor/bundle/shell/deeplake-shell.js +10 -5
- package/cursor/bundle/skillify-worker.js +60 -21
- package/cursor/bundle/wiki-worker.js +4 -2
- package/hermes/bundle/capture.js +63 -22
- package/hermes/bundle/commands/auth-login.js +10 -5
- package/hermes/bundle/embeddings/embed-daemon.js +4 -2
- package/hermes/bundle/pre-tool-use.js +10 -5
- package/hermes/bundle/session-end.js +57 -19
- package/hermes/bundle/session-start.js +239 -87
- package/hermes/bundle/shell/deeplake-shell.js +10 -5
- package/hermes/bundle/skillify-worker.js +60 -21
- package/hermes/bundle/wiki-worker.js +4 -2
- package/mcp/bundle/server.js +10 -5
- package/openclaw/dist/chunks/{auth-creds-AEKS6D3P.js → auth-creds-KKTYIP27.js} +2 -1
- package/openclaw/dist/chunks/{chunk-SRCBBT4H.js → chunk-OSD5GJJ5.js} +2 -0
- package/openclaw/dist/chunks/{config-ZLH6JFJS.js → config-XEK4MJJS.js} +2 -0
- package/openclaw/dist/chunks/{index-marker-store-PGT5CW6T.js → index-marker-store-CPGF2BI7.js} +4 -2
- package/openclaw/dist/chunks/{setup-config-C35UK4LP.js → setup-config-VI54GEUM.js} +2 -0
- package/openclaw/dist/index.js +68 -19
- package/openclaw/dist/skillify-worker.js +67 -27
- package/openclaw/openclaw.plugin.json +1 -1
- package/openclaw/package.json +1 -1
- package/package.json +1 -1
- package/pi/extension-source/hivemind.ts +157 -19
package/codex/bundle/capture.js
CHANGED
|
@@ -109,13 +109,15 @@ import { randomUUID } from "node:crypto";
|
|
|
109
109
|
import { appendFileSync } from "node:fs";
|
|
110
110
|
import { join as join2 } from "node:path";
|
|
111
111
|
import { homedir as homedir2 } from "node:os";
|
|
112
|
-
var DEBUG = process.env.HIVEMIND_DEBUG === "1";
|
|
113
112
|
var LOG = join2(homedir2(), ".deeplake", "hook-debug.log");
|
|
113
|
+
function isDebug() {
|
|
114
|
+
return process.env.HIVEMIND_DEBUG === "1";
|
|
115
|
+
}
|
|
114
116
|
function utcTimestamp(d = /* @__PURE__ */ new Date()) {
|
|
115
117
|
return d.toISOString().replace("T", " ").slice(0, 19) + " UTC";
|
|
116
118
|
}
|
|
117
119
|
function log(tag, msg) {
|
|
118
|
-
if (!
|
|
120
|
+
if (!isDebug())
|
|
119
121
|
return;
|
|
120
122
|
appendFileSync(LOG, `${(/* @__PURE__ */ new Date()).toISOString()} [${tag}] ${msg}
|
|
121
123
|
`);
|
|
@@ -170,7 +172,9 @@ var RETRYABLE_CODES = /* @__PURE__ */ new Set([429, 500, 502, 503, 504]);
|
|
|
170
172
|
var MAX_RETRIES = 3;
|
|
171
173
|
var BASE_DELAY_MS = 500;
|
|
172
174
|
var MAX_CONCURRENCY = 5;
|
|
173
|
-
|
|
175
|
+
function getQueryTimeoutMs() {
|
|
176
|
+
return Number(process.env.HIVEMIND_QUERY_TIMEOUT_MS ?? 1e4);
|
|
177
|
+
}
|
|
174
178
|
function sleep(ms) {
|
|
175
179
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
176
180
|
}
|
|
@@ -251,8 +255,9 @@ var DeeplakeApi = class {
|
|
|
251
255
|
let lastError;
|
|
252
256
|
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
|
253
257
|
let resp;
|
|
258
|
+
const timeoutMs = getQueryTimeoutMs();
|
|
254
259
|
try {
|
|
255
|
-
const signal = AbortSignal.timeout(
|
|
260
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
256
261
|
resp = await fetch(`${this.apiUrl}/workspaces/${this.workspaceId}/tables/query`, {
|
|
257
262
|
method: "POST",
|
|
258
263
|
headers: {
|
|
@@ -266,7 +271,7 @@ var DeeplakeApi = class {
|
|
|
266
271
|
});
|
|
267
272
|
} catch (e) {
|
|
268
273
|
if (isTimeoutError(e)) {
|
|
269
|
-
lastError = new Error(`Query timeout after ${
|
|
274
|
+
lastError = new Error(`Query timeout after ${timeoutMs}ms`);
|
|
270
275
|
throw lastError;
|
|
271
276
|
}
|
|
272
277
|
lastError = e instanceof Error ? e : new Error(String(e));
|
|
@@ -311,10 +311,12 @@ import { randomUUID } from "node:crypto";
|
|
|
311
311
|
import { appendFileSync } from "node:fs";
|
|
312
312
|
import { join as join3 } from "node:path";
|
|
313
313
|
import { homedir as homedir3 } from "node:os";
|
|
314
|
-
var DEBUG = process.env.HIVEMIND_DEBUG === "1";
|
|
315
314
|
var LOG = join3(homedir3(), ".deeplake", "hook-debug.log");
|
|
315
|
+
function isDebug() {
|
|
316
|
+
return process.env.HIVEMIND_DEBUG === "1";
|
|
317
|
+
}
|
|
316
318
|
function log(tag, msg) {
|
|
317
|
-
if (!
|
|
319
|
+
if (!isDebug())
|
|
318
320
|
return;
|
|
319
321
|
appendFileSync(LOG, `${(/* @__PURE__ */ new Date()).toISOString()} [${tag}] ${msg}
|
|
320
322
|
`);
|
|
@@ -360,7 +362,9 @@ var RETRYABLE_CODES = /* @__PURE__ */ new Set([429, 500, 502, 503, 504]);
|
|
|
360
362
|
var MAX_RETRIES = 3;
|
|
361
363
|
var BASE_DELAY_MS = 500;
|
|
362
364
|
var MAX_CONCURRENCY = 5;
|
|
363
|
-
|
|
365
|
+
function getQueryTimeoutMs() {
|
|
366
|
+
return Number(process.env.HIVEMIND_QUERY_TIMEOUT_MS ?? 1e4);
|
|
367
|
+
}
|
|
364
368
|
function sleep(ms) {
|
|
365
369
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
366
370
|
}
|
|
@@ -441,8 +445,9 @@ var DeeplakeApi = class {
|
|
|
441
445
|
let lastError;
|
|
442
446
|
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
|
443
447
|
let resp;
|
|
448
|
+
const timeoutMs = getQueryTimeoutMs();
|
|
444
449
|
try {
|
|
445
|
-
const signal = AbortSignal.timeout(
|
|
450
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
446
451
|
resp = await fetch(`${this.apiUrl}/workspaces/${this.workspaceId}/tables/query`, {
|
|
447
452
|
method: "POST",
|
|
448
453
|
headers: {
|
|
@@ -456,7 +461,7 @@ var DeeplakeApi = class {
|
|
|
456
461
|
});
|
|
457
462
|
} catch (e) {
|
|
458
463
|
if (isTimeoutError(e)) {
|
|
459
|
-
lastError = new Error(`Query timeout after ${
|
|
464
|
+
lastError = new Error(`Query timeout after ${timeoutMs}ms`);
|
|
460
465
|
throw lastError;
|
|
461
466
|
}
|
|
462
467
|
lastError = e instanceof Error ? e : new Error(String(e));
|
|
@@ -96,10 +96,12 @@ var NomicEmbedder = class {
|
|
|
96
96
|
import { appendFileSync } from "node:fs";
|
|
97
97
|
import { join } from "node:path";
|
|
98
98
|
import { homedir } from "node:os";
|
|
99
|
-
var DEBUG = process.env.HIVEMIND_DEBUG === "1";
|
|
100
99
|
var LOG = join(homedir(), ".deeplake", "hook-debug.log");
|
|
100
|
+
function isDebug() {
|
|
101
|
+
return process.env.HIVEMIND_DEBUG === "1";
|
|
102
|
+
}
|
|
101
103
|
function log(tag, msg) {
|
|
102
|
-
if (!
|
|
104
|
+
if (!isDebug())
|
|
103
105
|
return;
|
|
104
106
|
appendFileSync(LOG, `${(/* @__PURE__ */ new Date()).toISOString()} [${tag}] ${msg}
|
|
105
107
|
`);
|
|
@@ -115,10 +115,12 @@ import { randomUUID } from "node:crypto";
|
|
|
115
115
|
import { appendFileSync } from "node:fs";
|
|
116
116
|
import { join as join2 } from "node:path";
|
|
117
117
|
import { homedir as homedir2 } from "node:os";
|
|
118
|
-
var DEBUG = process.env.HIVEMIND_DEBUG === "1";
|
|
119
118
|
var LOG = join2(homedir2(), ".deeplake", "hook-debug.log");
|
|
119
|
+
function isDebug() {
|
|
120
|
+
return process.env.HIVEMIND_DEBUG === "1";
|
|
121
|
+
}
|
|
120
122
|
function log(tag, msg) {
|
|
121
|
-
if (!
|
|
123
|
+
if (!isDebug())
|
|
122
124
|
return;
|
|
123
125
|
appendFileSync(LOG, `${(/* @__PURE__ */ new Date()).toISOString()} [${tag}] ${msg}
|
|
124
126
|
`);
|
|
@@ -176,7 +178,9 @@ var RETRYABLE_CODES = /* @__PURE__ */ new Set([429, 500, 502, 503, 504]);
|
|
|
176
178
|
var MAX_RETRIES = 3;
|
|
177
179
|
var BASE_DELAY_MS = 500;
|
|
178
180
|
var MAX_CONCURRENCY = 5;
|
|
179
|
-
|
|
181
|
+
function getQueryTimeoutMs() {
|
|
182
|
+
return Number(process.env.HIVEMIND_QUERY_TIMEOUT_MS ?? 1e4);
|
|
183
|
+
}
|
|
180
184
|
function sleep(ms) {
|
|
181
185
|
return new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
182
186
|
}
|
|
@@ -257,8 +261,9 @@ var DeeplakeApi = class {
|
|
|
257
261
|
let lastError;
|
|
258
262
|
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
|
259
263
|
let resp;
|
|
264
|
+
const timeoutMs = getQueryTimeoutMs();
|
|
260
265
|
try {
|
|
261
|
-
const signal = AbortSignal.timeout(
|
|
266
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
262
267
|
resp = await fetch(`${this.apiUrl}/workspaces/${this.workspaceId}/tables/query`, {
|
|
263
268
|
method: "POST",
|
|
264
269
|
headers: {
|
|
@@ -272,7 +277,7 @@ var DeeplakeApi = class {
|
|
|
272
277
|
});
|
|
273
278
|
} catch (e) {
|
|
274
279
|
if (isTimeoutError(e)) {
|
|
275
|
-
lastError = new Error(`Query timeout after ${
|
|
280
|
+
lastError = new Error(`Query timeout after ${timeoutMs}ms`);
|
|
276
281
|
throw lastError;
|
|
277
282
|
}
|
|
278
283
|
lastError = e instanceof Error ? e : new Error(String(e));
|
|
@@ -131,13 +131,15 @@ import { randomUUID } from "node:crypto";
|
|
|
131
131
|
import { appendFileSync } from "node:fs";
|
|
132
132
|
import { join as join3 } from "node:path";
|
|
133
133
|
import { homedir as homedir3 } from "node:os";
|
|
134
|
-
var DEBUG = process.env.HIVEMIND_DEBUG === "1";
|
|
135
134
|
var LOG = join3(homedir3(), ".deeplake", "hook-debug.log");
|
|
135
|
+
function isDebug() {
|
|
136
|
+
return process.env.HIVEMIND_DEBUG === "1";
|
|
137
|
+
}
|
|
136
138
|
function utcTimestamp(d = /* @__PURE__ */ new Date()) {
|
|
137
139
|
return d.toISOString().replace("T", " ").slice(0, 19) + " UTC";
|
|
138
140
|
}
|
|
139
141
|
function log(tag, msg) {
|
|
140
|
-
if (!
|
|
142
|
+
if (!isDebug())
|
|
141
143
|
return;
|
|
142
144
|
appendFileSync(LOG, `${(/* @__PURE__ */ new Date()).toISOString()} [${tag}] ${msg}
|
|
143
145
|
`);
|
|
@@ -183,7 +185,9 @@ var RETRYABLE_CODES = /* @__PURE__ */ new Set([429, 500, 502, 503, 504]);
|
|
|
183
185
|
var MAX_RETRIES = 3;
|
|
184
186
|
var BASE_DELAY_MS = 500;
|
|
185
187
|
var MAX_CONCURRENCY = 5;
|
|
186
|
-
|
|
188
|
+
function getQueryTimeoutMs() {
|
|
189
|
+
return Number(process.env.HIVEMIND_QUERY_TIMEOUT_MS ?? 1e4);
|
|
190
|
+
}
|
|
187
191
|
function sleep(ms) {
|
|
188
192
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
189
193
|
}
|
|
@@ -264,8 +268,9 @@ var DeeplakeApi = class {
|
|
|
264
268
|
let lastError;
|
|
265
269
|
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
|
266
270
|
let resp;
|
|
271
|
+
const timeoutMs = getQueryTimeoutMs();
|
|
267
272
|
try {
|
|
268
|
-
const signal = AbortSignal.timeout(
|
|
273
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
269
274
|
resp = await fetch(`${this.apiUrl}/workspaces/${this.workspaceId}/tables/query`, {
|
|
270
275
|
method: "POST",
|
|
271
276
|
headers: {
|
|
@@ -279,7 +284,7 @@ var DeeplakeApi = class {
|
|
|
279
284
|
});
|
|
280
285
|
} catch (e) {
|
|
281
286
|
if (isTimeoutError(e)) {
|
|
282
|
-
lastError = new Error(`Query timeout after ${
|
|
287
|
+
lastError = new Error(`Query timeout after ${timeoutMs}ms`);
|
|
283
288
|
throw lastError;
|
|
284
289
|
}
|
|
285
290
|
lastError = e instanceof Error ? e : new Error(String(e));
|