@askexenow/exe-os 0.9.97 → 0.9.98
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/dist/bin/agentic-ontology-backfill.js +0 -29
- package/dist/bin/agentic-reflection-backfill.js +0 -29
- package/dist/bin/agentic-semantic-label.js +0 -29
- package/dist/bin/backfill-conversations.js +0 -29
- package/dist/bin/backfill-responses.js +0 -29
- package/dist/bin/backfill-vectors.js +0 -29
- package/dist/bin/bulk-sync-postgres.js +0 -29
- package/dist/bin/cleanup-stale-review-tasks.js +0 -29
- package/dist/bin/cli.js +4 -33
- package/dist/bin/exe-assign.js +0 -29
- package/dist/bin/exe-boot.js +0 -29
- package/dist/bin/exe-cloud.js +0 -29
- package/dist/bin/exe-dispatch.js +0 -29
- package/dist/bin/exe-doctor.js +0 -29
- package/dist/bin/exe-export-behaviors.js +0 -29
- package/dist/bin/exe-forget.js +0 -29
- package/dist/bin/exe-gateway.js +0 -29
- package/dist/bin/exe-heartbeat.js +0 -29
- package/dist/bin/exe-kill.js +0 -29
- package/dist/bin/exe-launch-agent.js +0 -29
- package/dist/bin/exe-pending-messages.js +0 -29
- package/dist/bin/exe-pending-notifications.js +0 -29
- package/dist/bin/exe-pending-reviews.js +0 -29
- package/dist/bin/exe-rename.js +0 -29
- package/dist/bin/exe-review.js +0 -29
- package/dist/bin/exe-search.js +0 -29
- package/dist/bin/exe-session-cleanup.js +0 -29
- package/dist/bin/exe-start-codex.js +0 -29
- package/dist/bin/exe-start-opencode.js +0 -29
- package/dist/bin/exe-status.js +0 -29
- package/dist/bin/exe-team.js +0 -29
- package/dist/bin/git-sweep.js +0 -29
- package/dist/bin/graph-backfill.js +0 -29
- package/dist/bin/graph-export.js +0 -29
- package/dist/bin/intercom-check.js +0 -29
- package/dist/bin/scan-tasks.js +0 -29
- package/dist/bin/setup.js +4 -33
- package/dist/bin/shard-migrate.js +0 -29
- package/dist/gateway/index.js +0 -29
- package/dist/hooks/bug-report-worker.js +0 -29
- package/dist/hooks/codex-stop-task-finalizer.js +0 -29
- package/dist/hooks/commit-complete.js +0 -29
- package/dist/hooks/error-recall.js +0 -29
- package/dist/hooks/ingest.js +0 -29
- package/dist/hooks/instructions-loaded.js +0 -29
- package/dist/hooks/notification.js +0 -29
- package/dist/hooks/post-compact.js +0 -29
- package/dist/hooks/post-tool-combined.js +0 -29
- package/dist/hooks/pre-compact.js +0 -29
- package/dist/hooks/pre-tool-use.js +0 -29
- package/dist/hooks/prompt-submit.js +0 -29
- package/dist/hooks/session-end.js +0 -29
- package/dist/hooks/session-start.js +0 -29
- package/dist/hooks/stop.js +0 -29
- package/dist/hooks/subagent-stop.js +0 -29
- package/dist/hooks/summary-worker.js +0 -29
- package/dist/index.js +0 -29
- package/dist/lib/cloud-sync.js +0 -29
- package/dist/lib/database.js +0 -35
- package/dist/lib/db-daemon-client.js +0 -36
- package/dist/lib/db.js +0 -35
- package/dist/lib/device-registry.js +0 -35
- package/dist/lib/embedder.js +0 -35
- package/dist/lib/exe-daemon-client.js +0 -36
- package/dist/lib/exe-daemon.js +0 -29
- package/dist/lib/hybrid-search.js +0 -29
- package/dist/lib/schedules.js +0 -29
- package/dist/lib/skill-learning.js +0 -35
- package/dist/lib/store.js +0 -29
- package/dist/lib/tasks.js +0 -29
- package/dist/lib/tmux-routing.js +0 -29
- package/dist/mcp/server.js +0 -29
- package/dist/mcp/tools/create-task.js +0 -29
- package/dist/mcp/tools/update-task.js +0 -29
- package/dist/runtime/index.js +0 -29
- package/dist/tui/App.js +0 -29
- package/package.json +1 -1
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
3
|
var __esm = (fn, res) => function __init() {
|
|
10
4
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
5
|
};
|
|
@@ -938,40 +932,11 @@ function findPackageRoot() {
|
|
|
938
932
|
}
|
|
939
933
|
return null;
|
|
940
934
|
}
|
|
941
|
-
function getAvailableMemoryGB() {
|
|
942
|
-
if (process.platform === "darwin") {
|
|
943
|
-
try {
|
|
944
|
-
const { execSync: execSync3 } = __require("child_process");
|
|
945
|
-
const vmstat = execSync3("vm_stat", { encoding: "utf8" });
|
|
946
|
-
const pageSize = 16384;
|
|
947
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
948
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
949
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
950
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
951
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
952
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
953
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
954
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
955
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
956
|
-
} catch {
|
|
957
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
961
|
-
}
|
|
962
935
|
function spawnDaemon() {
|
|
963
|
-
const freeGB = getAvailableMemoryGB();
|
|
964
936
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
965
937
|
if (totalGB <= 8) {
|
|
966
938
|
process.stderr.write(
|
|
967
939
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
968
|
-
`
|
|
969
|
-
);
|
|
970
|
-
return;
|
|
971
|
-
}
|
|
972
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
973
|
-
process.stderr.write(
|
|
974
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
975
940
|
`
|
|
976
941
|
);
|
|
977
942
|
return;
|
package/dist/lib/embedder.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
3
|
var __esm = (fn, res) => function __init() {
|
|
10
4
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
5
|
};
|
|
@@ -451,40 +445,11 @@ function findPackageRoot() {
|
|
|
451
445
|
}
|
|
452
446
|
return null;
|
|
453
447
|
}
|
|
454
|
-
function getAvailableMemoryGB() {
|
|
455
|
-
if (process.platform === "darwin") {
|
|
456
|
-
try {
|
|
457
|
-
const { execSync: execSync2 } = __require("child_process");
|
|
458
|
-
const vmstat = execSync2("vm_stat", { encoding: "utf8" });
|
|
459
|
-
const pageSize = 16384;
|
|
460
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
461
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
462
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
463
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
464
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
465
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
466
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
467
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
468
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
469
|
-
} catch {
|
|
470
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
474
|
-
}
|
|
475
448
|
function spawnDaemon() {
|
|
476
|
-
const freeGB = getAvailableMemoryGB();
|
|
477
449
|
const totalGB = os2.totalmem() / (1024 * 1024 * 1024);
|
|
478
450
|
if (totalGB <= 8) {
|
|
479
451
|
process.stderr.write(
|
|
480
452
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
481
|
-
`
|
|
482
|
-
);
|
|
483
|
-
return;
|
|
484
|
-
}
|
|
485
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
486
|
-
process.stderr.write(
|
|
487
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
488
453
|
`
|
|
489
454
|
);
|
|
490
455
|
return;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
-
}) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
-
});
|
|
7
|
-
|
|
8
1
|
// src/lib/exe-daemon-client.ts
|
|
9
2
|
import net from "net";
|
|
10
3
|
import os2 from "os";
|
|
@@ -244,40 +237,11 @@ function findPackageRoot() {
|
|
|
244
237
|
}
|
|
245
238
|
return null;
|
|
246
239
|
}
|
|
247
|
-
function getAvailableMemoryGB() {
|
|
248
|
-
if (process.platform === "darwin") {
|
|
249
|
-
try {
|
|
250
|
-
const { execSync: execSync2 } = __require("child_process");
|
|
251
|
-
const vmstat = execSync2("vm_stat", { encoding: "utf8" });
|
|
252
|
-
const pageSize = 16384;
|
|
253
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
254
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
255
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
256
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
257
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
258
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
259
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
260
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
261
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
262
|
-
} catch {
|
|
263
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
267
|
-
}
|
|
268
240
|
function spawnDaemon() {
|
|
269
|
-
const freeGB = getAvailableMemoryGB();
|
|
270
241
|
const totalGB = os2.totalmem() / (1024 * 1024 * 1024);
|
|
271
242
|
if (totalGB <= 8) {
|
|
272
243
|
process.stderr.write(
|
|
273
244
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
274
|
-
`
|
|
275
|
-
);
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
279
|
-
process.stderr.write(
|
|
280
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
281
245
|
`
|
|
282
246
|
);
|
|
283
247
|
return;
|
package/dist/lib/exe-daemon.js
CHANGED
|
@@ -1575,40 +1575,11 @@ function findPackageRoot() {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
return null;
|
|
1577
1577
|
}
|
|
1578
|
-
function getAvailableMemoryGB() {
|
|
1579
|
-
if (process.platform === "darwin") {
|
|
1580
|
-
try {
|
|
1581
|
-
const { execSync: execSync18 } = __require("child_process");
|
|
1582
|
-
const vmstat = execSync18("vm_stat", { encoding: "utf8" });
|
|
1583
|
-
const pageSize = 16384;
|
|
1584
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1585
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1586
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1587
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1588
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1589
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1590
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1591
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1592
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1593
|
-
} catch {
|
|
1594
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1598
|
-
}
|
|
1599
1578
|
function spawnDaemon() {
|
|
1600
|
-
const freeGB = getAvailableMemoryGB();
|
|
1601
1579
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1602
1580
|
if (totalGB <= 8) {
|
|
1603
1581
|
process.stderr.write(
|
|
1604
1582
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1605
|
-
`
|
|
1606
|
-
);
|
|
1607
|
-
return;
|
|
1608
|
-
}
|
|
1609
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1610
|
-
process.stderr.write(
|
|
1611
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1612
1583
|
`
|
|
1613
1584
|
);
|
|
1614
1585
|
return;
|
|
@@ -1119,40 +1119,11 @@ function findPackageRoot() {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
return null;
|
|
1121
1121
|
}
|
|
1122
|
-
function getAvailableMemoryGB() {
|
|
1123
|
-
if (process.platform === "darwin") {
|
|
1124
|
-
try {
|
|
1125
|
-
const { execSync: execSync6 } = __require("child_process");
|
|
1126
|
-
const vmstat = execSync6("vm_stat", { encoding: "utf8" });
|
|
1127
|
-
const pageSize = 16384;
|
|
1128
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1129
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1130
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1131
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1132
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1133
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1134
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1135
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1136
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1137
|
-
} catch {
|
|
1138
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1142
|
-
}
|
|
1143
1122
|
function spawnDaemon() {
|
|
1144
|
-
const freeGB = getAvailableMemoryGB();
|
|
1145
1123
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1146
1124
|
if (totalGB <= 8) {
|
|
1147
1125
|
process.stderr.write(
|
|
1148
1126
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1149
|
-
`
|
|
1150
|
-
);
|
|
1151
|
-
return;
|
|
1152
|
-
}
|
|
1153
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1154
|
-
process.stderr.write(
|
|
1155
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1156
1127
|
`
|
|
1157
1128
|
);
|
|
1158
1129
|
return;
|
package/dist/lib/schedules.js
CHANGED
|
@@ -1054,40 +1054,11 @@ function findPackageRoot() {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return null;
|
|
1056
1056
|
}
|
|
1057
|
-
function getAvailableMemoryGB() {
|
|
1058
|
-
if (process.platform === "darwin") {
|
|
1059
|
-
try {
|
|
1060
|
-
const { execSync: execSync5 } = __require("child_process");
|
|
1061
|
-
const vmstat = execSync5("vm_stat", { encoding: "utf8" });
|
|
1062
|
-
const pageSize = 16384;
|
|
1063
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1064
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1065
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1066
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1067
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1068
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1069
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1070
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1071
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1072
|
-
} catch {
|
|
1073
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1077
|
-
}
|
|
1078
1057
|
function spawnDaemon() {
|
|
1079
|
-
const freeGB = getAvailableMemoryGB();
|
|
1080
1058
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1081
1059
|
if (totalGB <= 8) {
|
|
1082
1060
|
process.stderr.write(
|
|
1083
1061
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1084
|
-
`
|
|
1085
|
-
);
|
|
1086
|
-
return;
|
|
1087
|
-
}
|
|
1088
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1089
|
-
process.stderr.write(
|
|
1090
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1091
1062
|
`
|
|
1092
1063
|
);
|
|
1093
1064
|
return;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
3
|
var __esm = (fn, res) => function __init() {
|
|
10
4
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
5
|
};
|
|
@@ -442,40 +436,11 @@ function findPackageRoot() {
|
|
|
442
436
|
}
|
|
443
437
|
return null;
|
|
444
438
|
}
|
|
445
|
-
function getAvailableMemoryGB() {
|
|
446
|
-
if (process.platform === "darwin") {
|
|
447
|
-
try {
|
|
448
|
-
const { execSync: execSync3 } = __require("child_process");
|
|
449
|
-
const vmstat = execSync3("vm_stat", { encoding: "utf8" });
|
|
450
|
-
const pageSize = 16384;
|
|
451
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
452
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
453
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
454
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
455
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
456
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
457
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
458
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
459
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
460
|
-
} catch {
|
|
461
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
465
|
-
}
|
|
466
439
|
function spawnDaemon() {
|
|
467
|
-
const freeGB = getAvailableMemoryGB();
|
|
468
440
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
469
441
|
if (totalGB <= 8) {
|
|
470
442
|
process.stderr.write(
|
|
471
443
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
472
|
-
`
|
|
473
|
-
);
|
|
474
|
-
return;
|
|
475
|
-
}
|
|
476
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
477
|
-
process.stderr.write(
|
|
478
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
479
444
|
`
|
|
480
445
|
);
|
|
481
446
|
return;
|
package/dist/lib/store.js
CHANGED
|
@@ -1054,40 +1054,11 @@ function findPackageRoot() {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return null;
|
|
1056
1056
|
}
|
|
1057
|
-
function getAvailableMemoryGB() {
|
|
1058
|
-
if (process.platform === "darwin") {
|
|
1059
|
-
try {
|
|
1060
|
-
const { execSync: execSync4 } = __require("child_process");
|
|
1061
|
-
const vmstat = execSync4("vm_stat", { encoding: "utf8" });
|
|
1062
|
-
const pageSize = 16384;
|
|
1063
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1064
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1065
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1066
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1067
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1068
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1069
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1070
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1071
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1072
|
-
} catch {
|
|
1073
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1077
|
-
}
|
|
1078
1057
|
function spawnDaemon() {
|
|
1079
|
-
const freeGB = getAvailableMemoryGB();
|
|
1080
1058
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1081
1059
|
if (totalGB <= 8) {
|
|
1082
1060
|
process.stderr.write(
|
|
1083
1061
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1084
|
-
`
|
|
1085
|
-
);
|
|
1086
|
-
return;
|
|
1087
|
-
}
|
|
1088
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1089
|
-
process.stderr.write(
|
|
1090
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1091
1062
|
`
|
|
1092
1063
|
);
|
|
1093
1064
|
return;
|
package/dist/lib/tasks.js
CHANGED
|
@@ -3761,40 +3761,11 @@ function findPackageRoot() {
|
|
|
3761
3761
|
}
|
|
3762
3762
|
return null;
|
|
3763
3763
|
}
|
|
3764
|
-
function getAvailableMemoryGB() {
|
|
3765
|
-
if (process.platform === "darwin") {
|
|
3766
|
-
try {
|
|
3767
|
-
const { execSync: execSync8 } = __require("child_process");
|
|
3768
|
-
const vmstat = execSync8("vm_stat", { encoding: "utf8" });
|
|
3769
|
-
const pageSize = 16384;
|
|
3770
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
3771
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
3772
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
3773
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
3774
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
3775
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
3776
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
3777
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
3778
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
3779
|
-
} catch {
|
|
3780
|
-
return os11.freemem() / (1024 * 1024 * 1024);
|
|
3781
|
-
}
|
|
3782
|
-
}
|
|
3783
|
-
return os11.freemem() / (1024 * 1024 * 1024);
|
|
3784
|
-
}
|
|
3785
3764
|
function spawnDaemon() {
|
|
3786
|
-
const freeGB = getAvailableMemoryGB();
|
|
3787
3765
|
const totalGB = os11.totalmem() / (1024 * 1024 * 1024);
|
|
3788
3766
|
if (totalGB <= 8) {
|
|
3789
3767
|
process.stderr.write(
|
|
3790
3768
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
3791
|
-
`
|
|
3792
|
-
);
|
|
3793
|
-
return;
|
|
3794
|
-
}
|
|
3795
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
3796
|
-
process.stderr.write(
|
|
3797
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
3798
3769
|
`
|
|
3799
3770
|
);
|
|
3800
3771
|
return;
|
package/dist/lib/tmux-routing.js
CHANGED
|
@@ -2611,40 +2611,11 @@ function findPackageRoot() {
|
|
|
2611
2611
|
}
|
|
2612
2612
|
return null;
|
|
2613
2613
|
}
|
|
2614
|
-
function getAvailableMemoryGB() {
|
|
2615
|
-
if (process.platform === "darwin") {
|
|
2616
|
-
try {
|
|
2617
|
-
const { execSync: execSync8 } = __require("child_process");
|
|
2618
|
-
const vmstat = execSync8("vm_stat", { encoding: "utf8" });
|
|
2619
|
-
const pageSize = 16384;
|
|
2620
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
2621
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
2622
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
2623
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
2624
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
2625
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
2626
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
2627
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
2628
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
2629
|
-
} catch {
|
|
2630
|
-
return os10.freemem() / (1024 * 1024 * 1024);
|
|
2631
|
-
}
|
|
2632
|
-
}
|
|
2633
|
-
return os10.freemem() / (1024 * 1024 * 1024);
|
|
2634
|
-
}
|
|
2635
2614
|
function spawnDaemon() {
|
|
2636
|
-
const freeGB = getAvailableMemoryGB();
|
|
2637
2615
|
const totalGB = os10.totalmem() / (1024 * 1024 * 1024);
|
|
2638
2616
|
if (totalGB <= 8) {
|
|
2639
2617
|
process.stderr.write(
|
|
2640
2618
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
2641
|
-
`
|
|
2642
|
-
);
|
|
2643
|
-
return;
|
|
2644
|
-
}
|
|
2645
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
2646
|
-
process.stderr.write(
|
|
2647
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
2648
2619
|
`
|
|
2649
2620
|
);
|
|
2650
2621
|
return;
|
package/dist/mcp/server.js
CHANGED
|
@@ -464,40 +464,11 @@ function findPackageRoot() {
|
|
|
464
464
|
}
|
|
465
465
|
return null;
|
|
466
466
|
}
|
|
467
|
-
function getAvailableMemoryGB() {
|
|
468
|
-
if (process.platform === "darwin") {
|
|
469
|
-
try {
|
|
470
|
-
const { execSync: execSync16 } = __require("child_process");
|
|
471
|
-
const vmstat = execSync16("vm_stat", { encoding: "utf8" });
|
|
472
|
-
const pageSize = 16384;
|
|
473
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
474
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
475
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
476
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
477
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
478
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
479
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
480
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
481
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
482
|
-
} catch {
|
|
483
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
487
|
-
}
|
|
488
467
|
function spawnDaemon() {
|
|
489
|
-
const freeGB = getAvailableMemoryGB();
|
|
490
468
|
const totalGB = os2.totalmem() / (1024 * 1024 * 1024);
|
|
491
469
|
if (totalGB <= 8) {
|
|
492
470
|
process.stderr.write(
|
|
493
471
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
494
|
-
`
|
|
495
|
-
);
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
499
|
-
process.stderr.write(
|
|
500
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
501
472
|
`
|
|
502
473
|
);
|
|
503
474
|
return;
|
|
@@ -4001,40 +4001,11 @@ function findPackageRoot() {
|
|
|
4001
4001
|
}
|
|
4002
4002
|
return null;
|
|
4003
4003
|
}
|
|
4004
|
-
function getAvailableMemoryGB() {
|
|
4005
|
-
if (process.platform === "darwin") {
|
|
4006
|
-
try {
|
|
4007
|
-
const { execSync: execSync9 } = __require("child_process");
|
|
4008
|
-
const vmstat = execSync9("vm_stat", { encoding: "utf8" });
|
|
4009
|
-
const pageSize = 16384;
|
|
4010
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
4011
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
4012
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
4013
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
4014
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
4015
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
4016
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
4017
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
4018
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
4019
|
-
} catch {
|
|
4020
|
-
return os11.freemem() / (1024 * 1024 * 1024);
|
|
4021
|
-
}
|
|
4022
|
-
}
|
|
4023
|
-
return os11.freemem() / (1024 * 1024 * 1024);
|
|
4024
|
-
}
|
|
4025
4004
|
function spawnDaemon() {
|
|
4026
|
-
const freeGB = getAvailableMemoryGB();
|
|
4027
4005
|
const totalGB = os11.totalmem() / (1024 * 1024 * 1024);
|
|
4028
4006
|
if (totalGB <= 8) {
|
|
4029
4007
|
process.stderr.write(
|
|
4030
4008
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
4031
|
-
`
|
|
4032
|
-
);
|
|
4033
|
-
return;
|
|
4034
|
-
}
|
|
4035
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
4036
|
-
process.stderr.write(
|
|
4037
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
4038
4009
|
`
|
|
4039
4010
|
);
|
|
4040
4011
|
return;
|
|
@@ -3764,40 +3764,11 @@ function findPackageRoot() {
|
|
|
3764
3764
|
}
|
|
3765
3765
|
return null;
|
|
3766
3766
|
}
|
|
3767
|
-
function getAvailableMemoryGB() {
|
|
3768
|
-
if (process.platform === "darwin") {
|
|
3769
|
-
try {
|
|
3770
|
-
const { execSync: execSync9 } = __require("child_process");
|
|
3771
|
-
const vmstat = execSync9("vm_stat", { encoding: "utf8" });
|
|
3772
|
-
const pageSize = 16384;
|
|
3773
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
3774
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
3775
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
3776
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
3777
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
3778
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
3779
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
3780
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
3781
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
3782
|
-
} catch {
|
|
3783
|
-
return os11.freemem() / (1024 * 1024 * 1024);
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
return os11.freemem() / (1024 * 1024 * 1024);
|
|
3787
|
-
}
|
|
3788
3767
|
function spawnDaemon() {
|
|
3789
|
-
const freeGB = getAvailableMemoryGB();
|
|
3790
3768
|
const totalGB = os11.totalmem() / (1024 * 1024 * 1024);
|
|
3791
3769
|
if (totalGB <= 8) {
|
|
3792
3770
|
process.stderr.write(
|
|
3793
3771
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
3794
|
-
`
|
|
3795
|
-
);
|
|
3796
|
-
return;
|
|
3797
|
-
}
|
|
3798
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
3799
|
-
process.stderr.write(
|
|
3800
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
3801
3772
|
`
|
|
3802
3773
|
);
|
|
3803
3774
|
return;
|
package/dist/runtime/index.js
CHANGED
|
@@ -1690,40 +1690,11 @@ function findPackageRoot() {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
return null;
|
|
1692
1692
|
}
|
|
1693
|
-
function getAvailableMemoryGB() {
|
|
1694
|
-
if (process.platform === "darwin") {
|
|
1695
|
-
try {
|
|
1696
|
-
const { execSync: execSync10 } = __require("child_process");
|
|
1697
|
-
const vmstat = execSync10("vm_stat", { encoding: "utf8" });
|
|
1698
|
-
const pageSize = 16384;
|
|
1699
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1700
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1701
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1702
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1703
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1704
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1705
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1706
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1707
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1708
|
-
} catch {
|
|
1709
|
-
return os7.freemem() / (1024 * 1024 * 1024);
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
return os7.freemem() / (1024 * 1024 * 1024);
|
|
1713
|
-
}
|
|
1714
1693
|
function spawnDaemon() {
|
|
1715
|
-
const freeGB = getAvailableMemoryGB();
|
|
1716
1694
|
const totalGB = os7.totalmem() / (1024 * 1024 * 1024);
|
|
1717
1695
|
if (totalGB <= 8) {
|
|
1718
1696
|
process.stderr.write(
|
|
1719
1697
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1720
|
-
`
|
|
1721
|
-
);
|
|
1722
|
-
return;
|
|
1723
|
-
}
|
|
1724
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1725
|
-
process.stderr.write(
|
|
1726
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1727
1698
|
`
|
|
1728
1699
|
);
|
|
1729
1700
|
return;
|
package/dist/tui/App.js
CHANGED
|
@@ -1942,40 +1942,11 @@ function findPackageRoot() {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
return null;
|
|
1944
1944
|
}
|
|
1945
|
-
function getAvailableMemoryGB() {
|
|
1946
|
-
if (process.platform === "darwin") {
|
|
1947
|
-
try {
|
|
1948
|
-
const { execSync: execSync12 } = __require("child_process");
|
|
1949
|
-
const vmstat = execSync12("vm_stat", { encoding: "utf8" });
|
|
1950
|
-
const pageSize = 16384;
|
|
1951
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1952
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1953
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1954
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1955
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1956
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1957
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1958
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1959
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1960
|
-
} catch {
|
|
1961
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1962
|
-
}
|
|
1963
|
-
}
|
|
1964
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1965
|
-
}
|
|
1966
1945
|
function spawnDaemon() {
|
|
1967
|
-
const freeGB = getAvailableMemoryGB();
|
|
1968
1946
|
const totalGB = os6.totalmem() / (1024 * 1024 * 1024);
|
|
1969
1947
|
if (totalGB <= 8) {
|
|
1970
1948
|
process.stderr.write(
|
|
1971
1949
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1972
|
-
`
|
|
1973
|
-
);
|
|
1974
|
-
return;
|
|
1975
|
-
}
|
|
1976
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1977
|
-
process.stderr.write(
|
|
1978
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1979
1950
|
`
|
|
1980
1951
|
);
|
|
1981
1952
|
return;
|