@askexenow/exe-os 0.9.7 → 0.9.8
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/backfill-conversations.js +754 -79
- package/dist/bin/backfill-responses.js +752 -77
- package/dist/bin/backfill-vectors.js +752 -77
- package/dist/bin/cleanup-stale-review-tasks.js +657 -35
- package/dist/bin/cli.js +1388 -605
- package/dist/bin/exe-agent-config.js +123 -95
- package/dist/bin/exe-agent.js +41 -25
- package/dist/bin/exe-assign.js +732 -57
- package/dist/bin/exe-boot.js +784 -153
- package/dist/bin/exe-call.js +209 -138
- package/dist/bin/exe-cloud.js +35 -12
- package/dist/bin/exe-dispatch.js +692 -70
- package/dist/bin/exe-doctor.js +648 -26
- package/dist/bin/exe-export-behaviors.js +650 -20
- package/dist/bin/exe-forget.js +635 -13
- package/dist/bin/exe-gateway.js +1053 -271
- package/dist/bin/exe-heartbeat.js +665 -43
- package/dist/bin/exe-kill.js +646 -16
- package/dist/bin/exe-launch-agent.js +887 -97
- package/dist/bin/exe-link.js +658 -43
- package/dist/bin/exe-new-employee.js +378 -177
- package/dist/bin/exe-pending-messages.js +656 -34
- package/dist/bin/exe-pending-notifications.js +635 -13
- package/dist/bin/exe-pending-reviews.js +659 -37
- package/dist/bin/exe-rename.js +645 -30
- package/dist/bin/exe-review.js +635 -13
- package/dist/bin/exe-search.js +771 -88
- package/dist/bin/exe-session-cleanup.js +834 -150
- package/dist/bin/exe-settings.js +127 -91
- package/dist/bin/exe-start-codex.js +729 -94
- package/dist/bin/exe-start-opencode.js +717 -82
- package/dist/bin/exe-status.js +657 -35
- package/dist/bin/exe-team.js +635 -13
- package/dist/bin/git-sweep.js +720 -89
- package/dist/bin/graph-backfill.js +643 -13
- package/dist/bin/graph-export.js +646 -16
- package/dist/bin/install.js +596 -193
- package/dist/bin/scan-tasks.js +724 -93
- package/dist/bin/setup.js +1038 -210
- package/dist/bin/shard-migrate.js +645 -15
- package/dist/bin/wiki-sync.js +646 -16
- package/dist/gateway/index.js +1027 -245
- package/dist/hooks/bug-report-worker.js +891 -170
- package/dist/hooks/commit-complete.js +718 -87
- package/dist/hooks/error-recall.js +776 -93
- package/dist/hooks/exe-heartbeat-hook.js +85 -71
- package/dist/hooks/ingest-worker.js +840 -156
- package/dist/hooks/ingest.js +90 -73
- package/dist/hooks/instructions-loaded.js +669 -38
- package/dist/hooks/notification.js +661 -30
- package/dist/hooks/post-compact.js +674 -43
- package/dist/hooks/pre-compact.js +718 -87
- package/dist/hooks/pre-tool-use.js +872 -125
- package/dist/hooks/prompt-ingest-worker.js +758 -83
- package/dist/hooks/prompt-submit.js +1060 -319
- package/dist/hooks/response-ingest-worker.js +758 -83
- package/dist/hooks/session-end.js +721 -90
- package/dist/hooks/session-start.js +1031 -207
- package/dist/hooks/stop.js +680 -49
- package/dist/hooks/subagent-stop.js +674 -43
- package/dist/hooks/summary-worker.js +816 -132
- package/dist/index.js +1015 -232
- package/dist/lib/cloud-sync.js +663 -48
- package/dist/lib/consolidation.js +26 -3
- package/dist/lib/database.js +626 -18
- package/dist/lib/db.js +2261 -0
- package/dist/lib/device-registry.js +640 -25
- package/dist/lib/embedder.js +96 -43
- package/dist/lib/employee-templates.js +16 -0
- package/dist/lib/employees.js +259 -83
- package/dist/lib/exe-daemon-client.js +101 -63
- package/dist/lib/exe-daemon.js +894 -162
- package/dist/lib/hybrid-search.js +771 -88
- package/dist/lib/identity.js +27 -7
- package/dist/lib/messaging.js +55 -28
- package/dist/lib/reminders.js +21 -1
- package/dist/lib/schedules.js +636 -14
- package/dist/lib/skill-learning.js +21 -1
- package/dist/lib/store.js +643 -13
- package/dist/lib/task-router.js +82 -71
- package/dist/lib/tasks.js +98 -71
- package/dist/lib/tmux-routing.js +87 -60
- package/dist/lib/token-spend.js +26 -6
- package/dist/mcp/server.js +1784 -458
- package/dist/mcp/tools/complete-reminder.js +21 -1
- package/dist/mcp/tools/create-reminder.js +21 -1
- package/dist/mcp/tools/create-task.js +290 -164
- package/dist/mcp/tools/deactivate-behavior.js +24 -4
- package/dist/mcp/tools/list-reminders.js +21 -1
- package/dist/mcp/tools/list-tasks.js +195 -38
- package/dist/mcp/tools/send-message.js +58 -31
- package/dist/mcp/tools/update-task.js +75 -48
- package/dist/runtime/index.js +720 -89
- package/dist/tui/App.js +853 -123
- package/package.json +3 -2
|
@@ -111,14 +111,34 @@ import { execSync } from "child_process";
|
|
|
111
111
|
import path2 from "path";
|
|
112
112
|
import os2 from "os";
|
|
113
113
|
var EMPLOYEES_PATH = path2.join(EXE_AI_DIR, "exe-employees.json");
|
|
114
|
+
var IDENTITY_DIR = path2.join(EXE_AI_DIR, "identity");
|
|
115
|
+
|
|
116
|
+
// src/lib/database-adapter.ts
|
|
117
|
+
import os3 from "os";
|
|
118
|
+
import path3 from "path";
|
|
119
|
+
import { createRequire } from "module";
|
|
120
|
+
import { pathToFileURL } from "url";
|
|
121
|
+
var BOOLEAN_COLUMNS_BY_TABLE = {
|
|
122
|
+
memories: /* @__PURE__ */ new Set(["has_error", "draft"]),
|
|
123
|
+
behaviors: /* @__PURE__ */ new Set(["active"]),
|
|
124
|
+
notifications: /* @__PURE__ */ new Set(["read"]),
|
|
125
|
+
users: /* @__PURE__ */ new Set(["has_personal_memory"])
|
|
126
|
+
};
|
|
127
|
+
var BOOLEAN_COLUMN_NAMES = new Set(
|
|
128
|
+
Object.values(BOOLEAN_COLUMNS_BY_TABLE).flatMap((cols) => [...cols])
|
|
129
|
+
);
|
|
114
130
|
|
|
115
131
|
// src/lib/database.ts
|
|
116
132
|
var _resilientClient = null;
|
|
117
133
|
var _daemonClient = null;
|
|
134
|
+
var _adapterClient = null;
|
|
118
135
|
function getClient() {
|
|
119
|
-
if (!
|
|
136
|
+
if (!_adapterClient) {
|
|
120
137
|
throw new Error("Database client not initialized. Call initDatabase() first.");
|
|
121
138
|
}
|
|
139
|
+
if (process.env.DATABASE_URL) {
|
|
140
|
+
return _adapterClient;
|
|
141
|
+
}
|
|
122
142
|
if (process.env.EXE_IS_DAEMON === "1") {
|
|
123
143
|
return _resilientClient;
|
|
124
144
|
}
|
|
@@ -111,14 +111,34 @@ import { execSync } from "child_process";
|
|
|
111
111
|
import path2 from "path";
|
|
112
112
|
import os2 from "os";
|
|
113
113
|
var EMPLOYEES_PATH = path2.join(EXE_AI_DIR, "exe-employees.json");
|
|
114
|
+
var IDENTITY_DIR = path2.join(EXE_AI_DIR, "identity");
|
|
115
|
+
|
|
116
|
+
// src/lib/database-adapter.ts
|
|
117
|
+
import os3 from "os";
|
|
118
|
+
import path3 from "path";
|
|
119
|
+
import { createRequire } from "module";
|
|
120
|
+
import { pathToFileURL } from "url";
|
|
121
|
+
var BOOLEAN_COLUMNS_BY_TABLE = {
|
|
122
|
+
memories: /* @__PURE__ */ new Set(["has_error", "draft"]),
|
|
123
|
+
behaviors: /* @__PURE__ */ new Set(["active"]),
|
|
124
|
+
notifications: /* @__PURE__ */ new Set(["read"]),
|
|
125
|
+
users: /* @__PURE__ */ new Set(["has_personal_memory"])
|
|
126
|
+
};
|
|
127
|
+
var BOOLEAN_COLUMN_NAMES = new Set(
|
|
128
|
+
Object.values(BOOLEAN_COLUMNS_BY_TABLE).flatMap((cols) => [...cols])
|
|
129
|
+
);
|
|
114
130
|
|
|
115
131
|
// src/lib/database.ts
|
|
116
132
|
var _resilientClient = null;
|
|
117
133
|
var _daemonClient = null;
|
|
134
|
+
var _adapterClient = null;
|
|
118
135
|
function getClient() {
|
|
119
|
-
if (!
|
|
136
|
+
if (!_adapterClient) {
|
|
120
137
|
throw new Error("Database client not initialized. Call initDatabase() first.");
|
|
121
138
|
}
|
|
139
|
+
if (process.env.DATABASE_URL) {
|
|
140
|
+
return _adapterClient;
|
|
141
|
+
}
|
|
122
142
|
if (process.env.EXE_IS_DAEMON === "1") {
|
|
123
143
|
return _resilientClient;
|
|
124
144
|
}
|