@askexenow/exe-os 0.9.96 → 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
|
@@ -1363,40 +1363,11 @@ function findPackageRoot() {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
return null;
|
|
1365
1365
|
}
|
|
1366
|
-
function getAvailableMemoryGB() {
|
|
1367
|
-
if (process.platform === "darwin") {
|
|
1368
|
-
try {
|
|
1369
|
-
const { execSync: execSync7 } = __require("child_process");
|
|
1370
|
-
const vmstat = execSync7("vm_stat", { encoding: "utf8" });
|
|
1371
|
-
const pageSize = 16384;
|
|
1372
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1373
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1374
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1375
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1376
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1377
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1378
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1379
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1380
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1381
|
-
} catch {
|
|
1382
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1386
|
-
}
|
|
1387
1366
|
function spawnDaemon() {
|
|
1388
|
-
const freeGB = getAvailableMemoryGB();
|
|
1389
1367
|
const totalGB = os6.totalmem() / (1024 * 1024 * 1024);
|
|
1390
1368
|
if (totalGB <= 8) {
|
|
1391
1369
|
process.stderr.write(
|
|
1392
1370
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1393
|
-
`
|
|
1394
|
-
);
|
|
1395
|
-
return;
|
|
1396
|
-
}
|
|
1397
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1398
|
-
process.stderr.write(
|
|
1399
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1400
1371
|
`
|
|
1401
1372
|
);
|
|
1402
1373
|
return;
|
|
@@ -1319,40 +1319,11 @@ function findPackageRoot() {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
return null;
|
|
1321
1321
|
}
|
|
1322
|
-
function getAvailableMemoryGB() {
|
|
1323
|
-
if (process.platform === "darwin") {
|
|
1324
|
-
try {
|
|
1325
|
-
const { execSync: execSync9 } = __require("child_process");
|
|
1326
|
-
const vmstat = execSync9("vm_stat", { encoding: "utf8" });
|
|
1327
|
-
const pageSize = 16384;
|
|
1328
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1329
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1330
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1331
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1332
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1333
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1334
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1335
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1336
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1337
|
-
} catch {
|
|
1338
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1342
|
-
}
|
|
1343
1322
|
function spawnDaemon() {
|
|
1344
|
-
const freeGB = getAvailableMemoryGB();
|
|
1345
1323
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1346
1324
|
if (totalGB <= 8) {
|
|
1347
1325
|
process.stderr.write(
|
|
1348
1326
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1349
|
-
`
|
|
1350
|
-
);
|
|
1351
|
-
return;
|
|
1352
|
-
}
|
|
1353
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1354
|
-
process.stderr.write(
|
|
1355
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1356
1327
|
`
|
|
1357
1328
|
);
|
|
1358
1329
|
return;
|
|
@@ -1654,40 +1654,11 @@ function findPackageRoot() {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
return null;
|
|
1656
1656
|
}
|
|
1657
|
-
function getAvailableMemoryGB() {
|
|
1658
|
-
if (process.platform === "darwin") {
|
|
1659
|
-
try {
|
|
1660
|
-
const { execSync: execSync10 } = __require("child_process");
|
|
1661
|
-
const vmstat = execSync10("vm_stat", { encoding: "utf8" });
|
|
1662
|
-
const pageSize = 16384;
|
|
1663
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1664
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1665
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1666
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1667
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1668
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1669
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1670
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1671
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1672
|
-
} catch {
|
|
1673
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1677
|
-
}
|
|
1678
1657
|
function spawnDaemon() {
|
|
1679
|
-
const freeGB = getAvailableMemoryGB();
|
|
1680
1658
|
const totalGB = os6.totalmem() / (1024 * 1024 * 1024);
|
|
1681
1659
|
if (totalGB <= 8) {
|
|
1682
1660
|
process.stderr.write(
|
|
1683
1661
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1684
|
-
`
|
|
1685
|
-
);
|
|
1686
|
-
return;
|
|
1687
|
-
}
|
|
1688
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1689
|
-
process.stderr.write(
|
|
1690
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1691
1662
|
`
|
|
1692
1663
|
);
|
|
1693
1664
|
return;
|
|
@@ -1650,40 +1650,11 @@ function findPackageRoot() {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
return null;
|
|
1652
1652
|
}
|
|
1653
|
-
function getAvailableMemoryGB() {
|
|
1654
|
-
if (process.platform === "darwin") {
|
|
1655
|
-
try {
|
|
1656
|
-
const { execSync: execSync9 } = __require("child_process");
|
|
1657
|
-
const vmstat = execSync9("vm_stat", { encoding: "utf8" });
|
|
1658
|
-
const pageSize = 16384;
|
|
1659
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1660
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1661
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1662
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1663
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1664
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1665
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1666
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1667
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1668
|
-
} catch {
|
|
1669
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1673
|
-
}
|
|
1674
1653
|
function spawnDaemon() {
|
|
1675
|
-
const freeGB = getAvailableMemoryGB();
|
|
1676
1654
|
const totalGB = os6.totalmem() / (1024 * 1024 * 1024);
|
|
1677
1655
|
if (totalGB <= 8) {
|
|
1678
1656
|
process.stderr.write(
|
|
1679
1657
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1680
|
-
`
|
|
1681
|
-
);
|
|
1682
|
-
return;
|
|
1683
|
-
}
|
|
1684
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1685
|
-
process.stderr.write(
|
|
1686
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1687
1658
|
`
|
|
1688
1659
|
);
|
|
1689
1660
|
return;
|
|
@@ -1476,40 +1476,11 @@ function findPackageRoot() {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
return null;
|
|
1478
1478
|
}
|
|
1479
|
-
function getAvailableMemoryGB() {
|
|
1480
|
-
if (process.platform === "darwin") {
|
|
1481
|
-
try {
|
|
1482
|
-
const { execSync: execSync12 } = __require("child_process");
|
|
1483
|
-
const vmstat = execSync12("vm_stat", { encoding: "utf8" });
|
|
1484
|
-
const pageSize = 16384;
|
|
1485
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1486
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1487
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1488
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1489
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1490
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1491
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1492
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1493
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1494
|
-
} catch {
|
|
1495
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1499
|
-
}
|
|
1500
1479
|
function spawnDaemon() {
|
|
1501
|
-
const freeGB = getAvailableMemoryGB();
|
|
1502
1480
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1503
1481
|
if (totalGB <= 8) {
|
|
1504
1482
|
process.stderr.write(
|
|
1505
1483
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1506
|
-
`
|
|
1507
|
-
);
|
|
1508
|
-
return;
|
|
1509
|
-
}
|
|
1510
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1511
|
-
process.stderr.write(
|
|
1512
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1513
1484
|
`
|
|
1514
1485
|
);
|
|
1515
1486
|
return;
|
|
@@ -1657,40 +1657,11 @@ function findPackageRoot() {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
return null;
|
|
1659
1659
|
}
|
|
1660
|
-
function getAvailableMemoryGB() {
|
|
1661
|
-
if (process.platform === "darwin") {
|
|
1662
|
-
try {
|
|
1663
|
-
const { execSync: execSync12 } = __require("child_process");
|
|
1664
|
-
const vmstat = execSync12("vm_stat", { encoding: "utf8" });
|
|
1665
|
-
const pageSize = 16384;
|
|
1666
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1667
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1668
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1669
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1670
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1671
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1672
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1673
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1674
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1675
|
-
} catch {
|
|
1676
|
-
return os7.freemem() / (1024 * 1024 * 1024);
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
return os7.freemem() / (1024 * 1024 * 1024);
|
|
1680
|
-
}
|
|
1681
1660
|
function spawnDaemon() {
|
|
1682
|
-
const freeGB = getAvailableMemoryGB();
|
|
1683
1661
|
const totalGB = os7.totalmem() / (1024 * 1024 * 1024);
|
|
1684
1662
|
if (totalGB <= 8) {
|
|
1685
1663
|
process.stderr.write(
|
|
1686
1664
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1687
|
-
`
|
|
1688
|
-
);
|
|
1689
|
-
return;
|
|
1690
|
-
}
|
|
1691
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1692
|
-
process.stderr.write(
|
|
1693
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1694
1665
|
`
|
|
1695
1666
|
);
|
|
1696
1667
|
return;
|
|
@@ -1476,40 +1476,11 @@ function findPackageRoot() {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
return null;
|
|
1478
1478
|
}
|
|
1479
|
-
function getAvailableMemoryGB() {
|
|
1480
|
-
if (process.platform === "darwin") {
|
|
1481
|
-
try {
|
|
1482
|
-
const { execSync: execSync11 } = __require("child_process");
|
|
1483
|
-
const vmstat = execSync11("vm_stat", { encoding: "utf8" });
|
|
1484
|
-
const pageSize = 16384;
|
|
1485
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1486
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1487
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1488
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1489
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1490
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1491
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1492
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1493
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1494
|
-
} catch {
|
|
1495
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1499
|
-
}
|
|
1500
1479
|
function spawnDaemon() {
|
|
1501
|
-
const freeGB = getAvailableMemoryGB();
|
|
1502
1480
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1503
1481
|
if (totalGB <= 8) {
|
|
1504
1482
|
process.stderr.write(
|
|
1505
1483
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1506
|
-
`
|
|
1507
|
-
);
|
|
1508
|
-
return;
|
|
1509
|
-
}
|
|
1510
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1511
|
-
process.stderr.write(
|
|
1512
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1513
1484
|
`
|
|
1514
1485
|
);
|
|
1515
1486
|
return;
|
package/dist/hooks/stop.js
CHANGED
|
@@ -1398,40 +1398,11 @@ function findPackageRoot() {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
return null;
|
|
1400
1400
|
}
|
|
1401
|
-
function getAvailableMemoryGB() {
|
|
1402
|
-
if (process.platform === "darwin") {
|
|
1403
|
-
try {
|
|
1404
|
-
const { execSync: execSync8 } = __require("child_process");
|
|
1405
|
-
const vmstat = execSync8("vm_stat", { encoding: "utf8" });
|
|
1406
|
-
const pageSize = 16384;
|
|
1407
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1408
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1409
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1410
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1411
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1412
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1413
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1414
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1415
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1416
|
-
} catch {
|
|
1417
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1421
|
-
}
|
|
1422
1401
|
function spawnDaemon() {
|
|
1423
|
-
const freeGB = getAvailableMemoryGB();
|
|
1424
1402
|
const totalGB = os6.totalmem() / (1024 * 1024 * 1024);
|
|
1425
1403
|
if (totalGB <= 8) {
|
|
1426
1404
|
process.stderr.write(
|
|
1427
1405
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1428
|
-
`
|
|
1429
|
-
);
|
|
1430
|
-
return;
|
|
1431
|
-
}
|
|
1432
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1433
|
-
process.stderr.write(
|
|
1434
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1435
1406
|
`
|
|
1436
1407
|
);
|
|
1437
1408
|
return;
|
|
@@ -1370,40 +1370,11 @@ function findPackageRoot() {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
return null;
|
|
1372
1372
|
}
|
|
1373
|
-
function getAvailableMemoryGB() {
|
|
1374
|
-
if (process.platform === "darwin") {
|
|
1375
|
-
try {
|
|
1376
|
-
const { execSync: execSync7 } = __require("child_process");
|
|
1377
|
-
const vmstat = execSync7("vm_stat", { encoding: "utf8" });
|
|
1378
|
-
const pageSize = 16384;
|
|
1379
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1380
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1381
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1382
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1383
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1384
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1385
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1386
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1387
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1388
|
-
} catch {
|
|
1389
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
return os6.freemem() / (1024 * 1024 * 1024);
|
|
1393
|
-
}
|
|
1394
1373
|
function spawnDaemon() {
|
|
1395
|
-
const freeGB = getAvailableMemoryGB();
|
|
1396
1374
|
const totalGB = os6.totalmem() / (1024 * 1024 * 1024);
|
|
1397
1375
|
if (totalGB <= 8) {
|
|
1398
1376
|
process.stderr.write(
|
|
1399
1377
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1400
|
-
`
|
|
1401
|
-
);
|
|
1402
|
-
return;
|
|
1403
|
-
}
|
|
1404
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1405
|
-
process.stderr.write(
|
|
1406
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1407
1378
|
`
|
|
1408
1379
|
);
|
|
1409
1380
|
return;
|
|
@@ -1192,40 +1192,11 @@ function findPackageRoot() {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
return null;
|
|
1194
1194
|
}
|
|
1195
|
-
function getAvailableMemoryGB() {
|
|
1196
|
-
if (process.platform === "darwin") {
|
|
1197
|
-
try {
|
|
1198
|
-
const { execSync: execSync7 } = __require("child_process");
|
|
1199
|
-
const vmstat = execSync7("vm_stat", { encoding: "utf8" });
|
|
1200
|
-
const pageSize = 16384;
|
|
1201
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1202
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1203
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1204
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1205
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1206
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1207
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1208
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1209
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1210
|
-
} catch {
|
|
1211
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1215
|
-
}
|
|
1216
1195
|
function spawnDaemon() {
|
|
1217
|
-
const freeGB = getAvailableMemoryGB();
|
|
1218
1196
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1219
1197
|
if (totalGB <= 8) {
|
|
1220
1198
|
process.stderr.write(
|
|
1221
1199
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1222
|
-
`
|
|
1223
|
-
);
|
|
1224
|
-
return;
|
|
1225
|
-
}
|
|
1226
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1227
|
-
process.stderr.write(
|
|
1228
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1229
1200
|
`
|
|
1230
1201
|
);
|
|
1231
1202
|
return;
|
package/dist/index.js
CHANGED
|
@@ -1930,40 +1930,11 @@ function findPackageRoot() {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
return null;
|
|
1932
1932
|
}
|
|
1933
|
-
function getAvailableMemoryGB() {
|
|
1934
|
-
if (process.platform === "darwin") {
|
|
1935
|
-
try {
|
|
1936
|
-
const { execSync: execSync10 } = __require("child_process");
|
|
1937
|
-
const vmstat = execSync10("vm_stat", { encoding: "utf8" });
|
|
1938
|
-
const pageSize = 16384;
|
|
1939
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1940
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1941
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1942
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1943
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1944
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1945
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1946
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1947
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1948
|
-
} catch {
|
|
1949
|
-
return os7.freemem() / (1024 * 1024 * 1024);
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
return os7.freemem() / (1024 * 1024 * 1024);
|
|
1953
|
-
}
|
|
1954
1933
|
function spawnDaemon() {
|
|
1955
|
-
const freeGB = getAvailableMemoryGB();
|
|
1956
1934
|
const totalGB = os7.totalmem() / (1024 * 1024 * 1024);
|
|
1957
1935
|
if (totalGB <= 8) {
|
|
1958
1936
|
process.stderr.write(
|
|
1959
1937
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1960
|
-
`
|
|
1961
|
-
);
|
|
1962
|
-
return;
|
|
1963
|
-
}
|
|
1964
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1965
|
-
process.stderr.write(
|
|
1966
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1967
1938
|
`
|
|
1968
1939
|
);
|
|
1969
1940
|
return;
|
package/dist/lib/cloud-sync.js
CHANGED
|
@@ -993,40 +993,11 @@ function findPackageRoot() {
|
|
|
993
993
|
}
|
|
994
994
|
return null;
|
|
995
995
|
}
|
|
996
|
-
function getAvailableMemoryGB() {
|
|
997
|
-
if (process.platform === "darwin") {
|
|
998
|
-
try {
|
|
999
|
-
const { execSync: execSync4 } = __require("child_process");
|
|
1000
|
-
const vmstat = execSync4("vm_stat", { encoding: "utf8" });
|
|
1001
|
-
const pageSize = 16384;
|
|
1002
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1003
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1004
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1005
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1006
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1007
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1008
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1009
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1010
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1011
|
-
} catch {
|
|
1012
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1016
|
-
}
|
|
1017
996
|
function spawnDaemon() {
|
|
1018
|
-
const freeGB = getAvailableMemoryGB();
|
|
1019
997
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1020
998
|
if (totalGB <= 8) {
|
|
1021
999
|
process.stderr.write(
|
|
1022
1000
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1023
|
-
`
|
|
1024
|
-
);
|
|
1025
|
-
return;
|
|
1026
|
-
}
|
|
1027
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1028
|
-
process.stderr.write(
|
|
1029
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1030
1001
|
`
|
|
1031
1002
|
);
|
|
1032
1003
|
return;
|
package/dist/lib/database.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
|
};
|
|
@@ -252,40 +246,11 @@ function findPackageRoot() {
|
|
|
252
246
|
}
|
|
253
247
|
return null;
|
|
254
248
|
}
|
|
255
|
-
function getAvailableMemoryGB() {
|
|
256
|
-
if (process.platform === "darwin") {
|
|
257
|
-
try {
|
|
258
|
-
const { execSync: execSync3 } = __require("child_process");
|
|
259
|
-
const vmstat = execSync3("vm_stat", { encoding: "utf8" });
|
|
260
|
-
const pageSize = 16384;
|
|
261
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
262
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
263
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
264
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
265
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
266
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
267
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
268
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
269
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
270
|
-
} catch {
|
|
271
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
275
|
-
}
|
|
276
249
|
function spawnDaemon() {
|
|
277
|
-
const freeGB = getAvailableMemoryGB();
|
|
278
250
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
279
251
|
if (totalGB <= 8) {
|
|
280
252
|
process.stderr.write(
|
|
281
253
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
282
|
-
`
|
|
283
|
-
);
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
287
|
-
process.stderr.write(
|
|
288
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
289
254
|
`
|
|
290
255
|
);
|
|
291
256
|
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";
|
|
@@ -238,40 +231,11 @@ function findPackageRoot() {
|
|
|
238
231
|
}
|
|
239
232
|
return null;
|
|
240
233
|
}
|
|
241
|
-
function getAvailableMemoryGB() {
|
|
242
|
-
if (process.platform === "darwin") {
|
|
243
|
-
try {
|
|
244
|
-
const { execSync: execSync2 } = __require("child_process");
|
|
245
|
-
const vmstat = execSync2("vm_stat", { encoding: "utf8" });
|
|
246
|
-
const pageSize = 16384;
|
|
247
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
248
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
249
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
250
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
251
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
252
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
253
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
254
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
255
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
256
|
-
} catch {
|
|
257
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
return os2.freemem() / (1024 * 1024 * 1024);
|
|
261
|
-
}
|
|
262
234
|
function spawnDaemon() {
|
|
263
|
-
const freeGB = getAvailableMemoryGB();
|
|
264
235
|
const totalGB = os2.totalmem() / (1024 * 1024 * 1024);
|
|
265
236
|
if (totalGB <= 8) {
|
|
266
237
|
process.stderr.write(
|
|
267
238
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
268
|
-
`
|
|
269
|
-
);
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
273
|
-
process.stderr.write(
|
|
274
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
275
239
|
`
|
|
276
240
|
);
|
|
277
241
|
return;
|
package/dist/lib/db.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
|
};
|
|
@@ -252,40 +246,11 @@ function findPackageRoot() {
|
|
|
252
246
|
}
|
|
253
247
|
return null;
|
|
254
248
|
}
|
|
255
|
-
function getAvailableMemoryGB() {
|
|
256
|
-
if (process.platform === "darwin") {
|
|
257
|
-
try {
|
|
258
|
-
const { execSync: execSync3 } = __require("child_process");
|
|
259
|
-
const vmstat = execSync3("vm_stat", { encoding: "utf8" });
|
|
260
|
-
const pageSize = 16384;
|
|
261
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
262
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
263
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
264
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
265
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
266
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
267
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
268
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
269
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
270
|
-
} catch {
|
|
271
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
275
|
-
}
|
|
276
249
|
function spawnDaemon() {
|
|
277
|
-
const freeGB = getAvailableMemoryGB();
|
|
278
250
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
279
251
|
if (totalGB <= 8) {
|
|
280
252
|
process.stderr.write(
|
|
281
253
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
282
|
-
`
|
|
283
|
-
);
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
287
|
-
process.stderr.write(
|
|
288
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
289
254
|
`
|
|
290
255
|
);
|
|
291
256
|
return;
|