@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
package/dist/bin/exe-forget.js
CHANGED
|
@@ -1066,40 +1066,11 @@ function findPackageRoot() {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
return null;
|
|
1068
1068
|
}
|
|
1069
|
-
function getAvailableMemoryGB() {
|
|
1070
|
-
if (process.platform === "darwin") {
|
|
1071
|
-
try {
|
|
1072
|
-
const { execSync: execSync4 } = __require("child_process");
|
|
1073
|
-
const vmstat = execSync4("vm_stat", { encoding: "utf8" });
|
|
1074
|
-
const pageSize = 16384;
|
|
1075
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1076
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1077
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1078
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1079
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1080
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1081
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1082
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1083
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1084
|
-
} catch {
|
|
1085
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1089
|
-
}
|
|
1090
1069
|
function spawnDaemon() {
|
|
1091
|
-
const freeGB = getAvailableMemoryGB();
|
|
1092
1070
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1093
1071
|
if (totalGB <= 8) {
|
|
1094
1072
|
process.stderr.write(
|
|
1095
1073
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1096
|
-
`
|
|
1097
|
-
);
|
|
1098
|
-
return;
|
|
1099
|
-
}
|
|
1100
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1101
|
-
process.stderr.write(
|
|
1102
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1103
1074
|
`
|
|
1104
1075
|
);
|
|
1105
1076
|
return;
|
package/dist/bin/exe-gateway.js
CHANGED
|
@@ -1792,40 +1792,11 @@ function findPackageRoot() {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
|
-
function getAvailableMemoryGB() {
|
|
1796
|
-
if (process.platform === "darwin") {
|
|
1797
|
-
try {
|
|
1798
|
-
const { execSync: execSync9 } = __require("child_process");
|
|
1799
|
-
const vmstat = execSync9("vm_stat", { encoding: "utf8" });
|
|
1800
|
-
const pageSize = 16384;
|
|
1801
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1802
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1803
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1804
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1805
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1806
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1807
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1808
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1809
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1810
|
-
} catch {
|
|
1811
|
-
return os5.freemem() / (1024 * 1024 * 1024);
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
return os5.freemem() / (1024 * 1024 * 1024);
|
|
1815
|
-
}
|
|
1816
1795
|
function spawnDaemon() {
|
|
1817
|
-
const freeGB = getAvailableMemoryGB();
|
|
1818
1796
|
const totalGB = os5.totalmem() / (1024 * 1024 * 1024);
|
|
1819
1797
|
if (totalGB <= 8) {
|
|
1820
1798
|
process.stderr.write(
|
|
1821
1799
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1822
|
-
`
|
|
1823
|
-
);
|
|
1824
|
-
return;
|
|
1825
|
-
}
|
|
1826
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1827
|
-
process.stderr.write(
|
|
1828
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1829
1800
|
`
|
|
1830
1801
|
);
|
|
1831
1802
|
return;
|
|
@@ -1105,40 +1105,11 @@ function findPackageRoot() {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return null;
|
|
1107
1107
|
}
|
|
1108
|
-
function getAvailableMemoryGB() {
|
|
1109
|
-
if (process.platform === "darwin") {
|
|
1110
|
-
try {
|
|
1111
|
-
const { execSync: execSync6 } = __require("child_process");
|
|
1112
|
-
const vmstat = execSync6("vm_stat", { encoding: "utf8" });
|
|
1113
|
-
const pageSize = 16384;
|
|
1114
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1115
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1116
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1117
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1118
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1119
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1120
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1121
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1122
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1123
|
-
} catch {
|
|
1124
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1128
|
-
}
|
|
1129
1108
|
function spawnDaemon() {
|
|
1130
|
-
const freeGB = getAvailableMemoryGB();
|
|
1131
1109
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1132
1110
|
if (totalGB <= 8) {
|
|
1133
1111
|
process.stderr.write(
|
|
1134
1112
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1135
|
-
`
|
|
1136
|
-
);
|
|
1137
|
-
return;
|
|
1138
|
-
}
|
|
1139
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1140
|
-
process.stderr.write(
|
|
1141
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1142
1113
|
`
|
|
1143
1114
|
);
|
|
1144
1115
|
return;
|
package/dist/bin/exe-kill.js
CHANGED
|
@@ -1066,40 +1066,11 @@ function findPackageRoot() {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
return null;
|
|
1068
1068
|
}
|
|
1069
|
-
function getAvailableMemoryGB() {
|
|
1070
|
-
if (process.platform === "darwin") {
|
|
1071
|
-
try {
|
|
1072
|
-
const { execSync: execSync5 } = __require("child_process");
|
|
1073
|
-
const vmstat = execSync5("vm_stat", { encoding: "utf8" });
|
|
1074
|
-
const pageSize = 16384;
|
|
1075
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1076
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1077
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1078
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1079
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1080
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1081
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1082
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1083
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1084
|
-
} catch {
|
|
1085
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1089
|
-
}
|
|
1090
1069
|
function spawnDaemon() {
|
|
1091
|
-
const freeGB = getAvailableMemoryGB();
|
|
1092
1070
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1093
1071
|
if (totalGB <= 8) {
|
|
1094
1072
|
process.stderr.write(
|
|
1095
1073
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1096
|
-
`
|
|
1097
|
-
);
|
|
1098
|
-
return;
|
|
1099
|
-
}
|
|
1100
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1101
|
-
process.stderr.write(
|
|
1102
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1103
1074
|
`
|
|
1104
1075
|
);
|
|
1105
1076
|
return;
|
|
@@ -1164,40 +1164,11 @@ function findPackageRoot() {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
return null;
|
|
1166
1166
|
}
|
|
1167
|
-
function getAvailableMemoryGB() {
|
|
1168
|
-
if (process.platform === "darwin") {
|
|
1169
|
-
try {
|
|
1170
|
-
const { execSync: execSync8 } = __require("child_process");
|
|
1171
|
-
const vmstat = execSync8("vm_stat", { encoding: "utf8" });
|
|
1172
|
-
const pageSize = 16384;
|
|
1173
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1174
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1175
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1176
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1177
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1178
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1179
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1180
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1181
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1182
|
-
} catch {
|
|
1183
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1187
|
-
}
|
|
1188
1167
|
function spawnDaemon() {
|
|
1189
|
-
const freeGB = getAvailableMemoryGB();
|
|
1190
1168
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1191
1169
|
if (totalGB <= 8) {
|
|
1192
1170
|
process.stderr.write(
|
|
1193
1171
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1194
|
-
`
|
|
1195
|
-
);
|
|
1196
|
-
return;
|
|
1197
|
-
}
|
|
1198
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1199
|
-
process.stderr.write(
|
|
1200
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1201
1172
|
`
|
|
1202
1173
|
);
|
|
1203
1174
|
return;
|
|
@@ -1076,40 +1076,11 @@ function findPackageRoot() {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
return null;
|
|
1078
1078
|
}
|
|
1079
|
-
function getAvailableMemoryGB() {
|
|
1080
|
-
if (process.platform === "darwin") {
|
|
1081
|
-
try {
|
|
1082
|
-
const { execSync: execSync6 } = __require("child_process");
|
|
1083
|
-
const vmstat = execSync6("vm_stat", { encoding: "utf8" });
|
|
1084
|
-
const pageSize = 16384;
|
|
1085
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1086
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1087
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1088
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1089
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1090
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1091
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1092
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1093
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1094
|
-
} catch {
|
|
1095
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1099
|
-
}
|
|
1100
1079
|
function spawnDaemon() {
|
|
1101
|
-
const freeGB = getAvailableMemoryGB();
|
|
1102
1080
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1103
1081
|
if (totalGB <= 8) {
|
|
1104
1082
|
process.stderr.write(
|
|
1105
1083
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1106
|
-
`
|
|
1107
|
-
);
|
|
1108
|
-
return;
|
|
1109
|
-
}
|
|
1110
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1111
|
-
process.stderr.write(
|
|
1112
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1113
1084
|
`
|
|
1114
1085
|
);
|
|
1115
1086
|
return;
|
|
@@ -1077,40 +1077,11 @@ function findPackageRoot() {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
return null;
|
|
1079
1079
|
}
|
|
1080
|
-
function getAvailableMemoryGB() {
|
|
1081
|
-
if (process.platform === "darwin") {
|
|
1082
|
-
try {
|
|
1083
|
-
const { execSync: execSync6 } = __require("child_process");
|
|
1084
|
-
const vmstat = execSync6("vm_stat", { encoding: "utf8" });
|
|
1085
|
-
const pageSize = 16384;
|
|
1086
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1087
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1088
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1089
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1090
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1091
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1092
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1093
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1094
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1095
|
-
} catch {
|
|
1096
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1100
|
-
}
|
|
1101
1080
|
function spawnDaemon() {
|
|
1102
|
-
const freeGB = getAvailableMemoryGB();
|
|
1103
1081
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1104
1082
|
if (totalGB <= 8) {
|
|
1105
1083
|
process.stderr.write(
|
|
1106
1084
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1107
|
-
`
|
|
1108
|
-
);
|
|
1109
|
-
return;
|
|
1110
|
-
}
|
|
1111
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1112
|
-
process.stderr.write(
|
|
1113
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1114
1085
|
`
|
|
1115
1086
|
);
|
|
1116
1087
|
return;
|
|
@@ -1077,40 +1077,11 @@ function findPackageRoot() {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
return null;
|
|
1079
1079
|
}
|
|
1080
|
-
function getAvailableMemoryGB() {
|
|
1081
|
-
if (process.platform === "darwin") {
|
|
1082
|
-
try {
|
|
1083
|
-
const { execSync: execSync6 } = __require("child_process");
|
|
1084
|
-
const vmstat = execSync6("vm_stat", { encoding: "utf8" });
|
|
1085
|
-
const pageSize = 16384;
|
|
1086
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1087
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1088
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1089
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1090
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1091
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1092
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1093
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1094
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1095
|
-
} catch {
|
|
1096
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1100
|
-
}
|
|
1101
1080
|
function spawnDaemon() {
|
|
1102
|
-
const freeGB = getAvailableMemoryGB();
|
|
1103
1081
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1104
1082
|
if (totalGB <= 8) {
|
|
1105
1083
|
process.stderr.write(
|
|
1106
1084
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1107
|
-
`
|
|
1108
|
-
);
|
|
1109
|
-
return;
|
|
1110
|
-
}
|
|
1111
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1112
|
-
process.stderr.write(
|
|
1113
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1114
1085
|
`
|
|
1115
1086
|
);
|
|
1116
1087
|
return;
|
package/dist/bin/exe-rename.js
CHANGED
|
@@ -1125,40 +1125,11 @@ function findPackageRoot() {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
return null;
|
|
1127
1127
|
}
|
|
1128
|
-
function getAvailableMemoryGB() {
|
|
1129
|
-
if (process.platform === "darwin") {
|
|
1130
|
-
try {
|
|
1131
|
-
const { execSync: execSync5 } = __require("child_process");
|
|
1132
|
-
const vmstat = execSync5("vm_stat", { encoding: "utf8" });
|
|
1133
|
-
const pageSize = 16384;
|
|
1134
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1135
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1136
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1137
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1138
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1139
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1140
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1141
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1142
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1143
|
-
} catch {
|
|
1144
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1148
|
-
}
|
|
1149
1128
|
function spawnDaemon() {
|
|
1150
|
-
const freeGB = getAvailableMemoryGB();
|
|
1151
1129
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1152
1130
|
if (totalGB <= 8) {
|
|
1153
1131
|
process.stderr.write(
|
|
1154
1132
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1155
|
-
`
|
|
1156
|
-
);
|
|
1157
|
-
return;
|
|
1158
|
-
}
|
|
1159
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1160
|
-
process.stderr.write(
|
|
1161
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1162
1133
|
`
|
|
1163
1134
|
);
|
|
1164
1135
|
return;
|
package/dist/bin/exe-review.js
CHANGED
|
@@ -1080,40 +1080,11 @@ function findPackageRoot() {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
return null;
|
|
1082
1082
|
}
|
|
1083
|
-
function getAvailableMemoryGB() {
|
|
1084
|
-
if (process.platform === "darwin") {
|
|
1085
|
-
try {
|
|
1086
|
-
const { execSync: execSync4 } = __require("child_process");
|
|
1087
|
-
const vmstat = execSync4("vm_stat", { encoding: "utf8" });
|
|
1088
|
-
const pageSize = 16384;
|
|
1089
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1090
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1091
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1092
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1093
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1094
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1095
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1096
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1097
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1098
|
-
} catch {
|
|
1099
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1103
|
-
}
|
|
1104
1083
|
function spawnDaemon() {
|
|
1105
|
-
const freeGB = getAvailableMemoryGB();
|
|
1106
1084
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1107
1085
|
if (totalGB <= 8) {
|
|
1108
1086
|
process.stderr.write(
|
|
1109
1087
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1110
|
-
`
|
|
1111
|
-
);
|
|
1112
|
-
return;
|
|
1113
|
-
}
|
|
1114
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1115
|
-
process.stderr.write(
|
|
1116
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1117
1088
|
`
|
|
1118
1089
|
);
|
|
1119
1090
|
return;
|
package/dist/bin/exe-search.js
CHANGED
|
@@ -1120,40 +1120,11 @@ function findPackageRoot() {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
return null;
|
|
1122
1122
|
}
|
|
1123
|
-
function getAvailableMemoryGB() {
|
|
1124
|
-
if (process.platform === "darwin") {
|
|
1125
|
-
try {
|
|
1126
|
-
const { execSync: execSync6 } = __require("child_process");
|
|
1127
|
-
const vmstat = execSync6("vm_stat", { encoding: "utf8" });
|
|
1128
|
-
const pageSize = 16384;
|
|
1129
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1130
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1131
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1132
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1133
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1134
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1135
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1136
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1137
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1138
|
-
} catch {
|
|
1139
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1143
|
-
}
|
|
1144
1123
|
function spawnDaemon() {
|
|
1145
|
-
const freeGB = getAvailableMemoryGB();
|
|
1146
1124
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1147
1125
|
if (totalGB <= 8) {
|
|
1148
1126
|
process.stderr.write(
|
|
1149
1127
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1150
|
-
`
|
|
1151
|
-
);
|
|
1152
|
-
return;
|
|
1153
|
-
}
|
|
1154
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1155
|
-
process.stderr.write(
|
|
1156
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1157
1128
|
`
|
|
1158
1129
|
);
|
|
1159
1130
|
return;
|
|
@@ -1164,40 +1164,11 @@ function findPackageRoot() {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
return null;
|
|
1166
1166
|
}
|
|
1167
|
-
function getAvailableMemoryGB() {
|
|
1168
|
-
if (process.platform === "darwin") {
|
|
1169
|
-
try {
|
|
1170
|
-
const { execSync: execSync12 } = __require("child_process");
|
|
1171
|
-
const vmstat = execSync12("vm_stat", { encoding: "utf8" });
|
|
1172
|
-
const pageSize = 16384;
|
|
1173
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1174
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1175
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1176
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1177
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1178
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1179
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1180
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1181
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1182
|
-
} catch {
|
|
1183
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1187
|
-
}
|
|
1188
1167
|
function spawnDaemon() {
|
|
1189
|
-
const freeGB = getAvailableMemoryGB();
|
|
1190
1168
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1191
1169
|
if (totalGB <= 8) {
|
|
1192
1170
|
process.stderr.write(
|
|
1193
1171
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1194
|
-
`
|
|
1195
|
-
);
|
|
1196
|
-
return;
|
|
1197
|
-
}
|
|
1198
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1199
|
-
process.stderr.write(
|
|
1200
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1201
1172
|
`
|
|
1202
1173
|
);
|
|
1203
1174
|
return;
|
|
@@ -1142,40 +1142,11 @@ function findPackageRoot() {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
return null;
|
|
1144
1144
|
}
|
|
1145
|
-
function getAvailableMemoryGB() {
|
|
1146
|
-
if (process.platform === "darwin") {
|
|
1147
|
-
try {
|
|
1148
|
-
const { execSync: execSync7 } = __require("child_process");
|
|
1149
|
-
const vmstat = execSync7("vm_stat", { encoding: "utf8" });
|
|
1150
|
-
const pageSize = 16384;
|
|
1151
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1152
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1153
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1154
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1155
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1156
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1157
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1158
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1159
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1160
|
-
} catch {
|
|
1161
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1165
|
-
}
|
|
1166
1145
|
function spawnDaemon() {
|
|
1167
|
-
const freeGB = getAvailableMemoryGB();
|
|
1168
1146
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1169
1147
|
if (totalGB <= 8) {
|
|
1170
1148
|
process.stderr.write(
|
|
1171
1149
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1172
|
-
`
|
|
1173
|
-
);
|
|
1174
|
-
return;
|
|
1175
|
-
}
|
|
1176
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1177
|
-
process.stderr.write(
|
|
1178
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1179
1150
|
`
|
|
1180
1151
|
);
|
|
1181
1152
|
return;
|
|
@@ -1142,40 +1142,11 @@ function findPackageRoot() {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
return null;
|
|
1144
1144
|
}
|
|
1145
|
-
function getAvailableMemoryGB() {
|
|
1146
|
-
if (process.platform === "darwin") {
|
|
1147
|
-
try {
|
|
1148
|
-
const { execSync: execSync7 } = __require("child_process");
|
|
1149
|
-
const vmstat = execSync7("vm_stat", { encoding: "utf8" });
|
|
1150
|
-
const pageSize = 16384;
|
|
1151
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1152
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1153
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1154
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1155
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1156
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1157
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1158
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1159
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1160
|
-
} catch {
|
|
1161
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1165
|
-
}
|
|
1166
1145
|
function spawnDaemon() {
|
|
1167
|
-
const freeGB = getAvailableMemoryGB();
|
|
1168
1146
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1169
1147
|
if (totalGB <= 8) {
|
|
1170
1148
|
process.stderr.write(
|
|
1171
1149
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1172
|
-
`
|
|
1173
|
-
);
|
|
1174
|
-
return;
|
|
1175
|
-
}
|
|
1176
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1177
|
-
process.stderr.write(
|
|
1178
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1179
1150
|
`
|
|
1180
1151
|
);
|
|
1181
1152
|
return;
|
package/dist/bin/exe-status.js
CHANGED
|
@@ -1088,40 +1088,11 @@ function findPackageRoot() {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
return null;
|
|
1090
1090
|
}
|
|
1091
|
-
function getAvailableMemoryGB() {
|
|
1092
|
-
if (process.platform === "darwin") {
|
|
1093
|
-
try {
|
|
1094
|
-
const { execSync: execSync7 } = __require("child_process");
|
|
1095
|
-
const vmstat = execSync7("vm_stat", { encoding: "utf8" });
|
|
1096
|
-
const pageSize = 16384;
|
|
1097
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1098
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1099
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1100
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1101
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1102
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1103
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1104
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1105
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1106
|
-
} catch {
|
|
1107
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1111
|
-
}
|
|
1112
1091
|
function spawnDaemon() {
|
|
1113
|
-
const freeGB = getAvailableMemoryGB();
|
|
1114
1092
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1115
1093
|
if (totalGB <= 8) {
|
|
1116
1094
|
process.stderr.write(
|
|
1117
1095
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1118
|
-
`
|
|
1119
|
-
);
|
|
1120
|
-
return;
|
|
1121
|
-
}
|
|
1122
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1123
|
-
process.stderr.write(
|
|
1124
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1125
1096
|
`
|
|
1126
1097
|
);
|
|
1127
1098
|
return;
|
package/dist/bin/exe-team.js
CHANGED
|
@@ -1077,40 +1077,11 @@ function findPackageRoot() {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
return null;
|
|
1079
1079
|
}
|
|
1080
|
-
function getAvailableMemoryGB() {
|
|
1081
|
-
if (process.platform === "darwin") {
|
|
1082
|
-
try {
|
|
1083
|
-
const { execSync: execSync4 } = __require("child_process");
|
|
1084
|
-
const vmstat = execSync4("vm_stat", { encoding: "utf8" });
|
|
1085
|
-
const pageSize = 16384;
|
|
1086
|
-
const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
|
|
1087
|
-
const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
|
|
1088
|
-
const free = vmstat.match(/Pages free:\s+(\d+)/);
|
|
1089
|
-
const inactive = vmstat.match(/Pages inactive:\s+(\d+)/);
|
|
1090
|
-
const speculative = vmstat.match(/Pages speculative:\s+(\d+)/);
|
|
1091
|
-
const freePages = free ? parseInt(free[1], 10) : 0;
|
|
1092
|
-
const inactivePages = inactive ? parseInt(inactive[1], 10) : 0;
|
|
1093
|
-
const speculativePages = speculative ? parseInt(speculative[1], 10) : 0;
|
|
1094
|
-
return (freePages + inactivePages + speculativePages) * actualPageSize / (1024 * 1024 * 1024);
|
|
1095
|
-
} catch {
|
|
1096
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
return os4.freemem() / (1024 * 1024 * 1024);
|
|
1100
|
-
}
|
|
1101
1080
|
function spawnDaemon() {
|
|
1102
|
-
const freeGB = getAvailableMemoryGB();
|
|
1103
1081
|
const totalGB = os4.totalmem() / (1024 * 1024 * 1024);
|
|
1104
1082
|
if (totalGB <= 8) {
|
|
1105
1083
|
process.stderr.write(
|
|
1106
1084
|
`[exed-client] SKIP: ${totalGB.toFixed(0)}GB system \u2014 embedding daemon disabled. Using keyword search only. Minimum 16GB recommended for vector search.
|
|
1107
|
-
`
|
|
1108
|
-
);
|
|
1109
|
-
return;
|
|
1110
|
-
}
|
|
1111
|
-
if (totalGB <= 16 && freeGB < 2) {
|
|
1112
|
-
process.stderr.write(
|
|
1113
|
-
`[exed-client] SKIP: low memory (${freeGB.toFixed(1)}GB available / ${totalGB.toFixed(0)}GB total). Embedding daemon not started \u2014 using keyword search only.
|
|
1114
1085
|
`
|
|
1115
1086
|
);
|
|
1116
1087
|
return;
|