@askexenow/exe-os 0.9.216 → 0.9.218
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/deploy/compose/docker-compose.yml +1 -1
- package/deploy/stack-manifests/v0.9.json +4 -4
- package/dist/{backfill-metadata-PZTWTG35.js → backfill-metadata-I6VR7JZ2.js} +1 -1
- package/dist/{behaviors-KL2G7ZJ7.js → behaviors-YJ3HEQED.js} +3 -1
- package/dist/bin/agentic-ontology-backfill.js +1 -1
- package/dist/bin/agentic-reflection-backfill.js +1 -1
- package/dist/bin/agentic-semantic-label.js +1 -1
- package/dist/bin/backfill-conversations.js +1 -1
- package/dist/bin/backfill-responses.js +1 -1
- package/dist/bin/backfill-vectors.js +2 -2
- package/dist/bin/bulk-sync-postgres.js +1 -1
- package/dist/bin/cleanup-stale-review-tasks.js +2 -2
- package/dist/bin/cli.js +4 -4
- package/dist/bin/exe-assign.js +1 -1
- package/dist/bin/exe-boot.js +3 -3
- package/dist/bin/exe-dispatch.js +2 -2
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +4 -4
- package/dist/bin/exe-forget.js +3 -3
- package/dist/bin/exe-gateway.js +4 -4
- package/dist/bin/exe-heartbeat.js +2 -2
- package/dist/bin/exe-kill.js +3 -3
- package/dist/bin/exe-launch-agent.js +5 -5
- package/dist/bin/exe-pending-messages.js +3 -3
- package/dist/bin/exe-pending-notifications.js +2 -2
- package/dist/bin/exe-pending-reviews.js +2 -2
- package/dist/bin/exe-review.js +3 -3
- package/dist/bin/exe-search.js +2 -2
- package/dist/bin/exe-session-cleanup.js +5 -5
- package/dist/bin/exe-start-codex.js +3 -3
- package/dist/bin/exe-start-opencode.js +3 -3
- package/dist/bin/exe-status.js +3 -3
- package/dist/bin/exe-team.js +1 -1
- package/dist/bin/git-sweep.js +2 -2
- package/dist/bin/graph-backfill.js +1 -1
- package/dist/bin/graph-export.js +2 -2
- package/dist/bin/import-history.js +1 -1
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +1 -1
- package/dist/bin/scan-tasks.js +2 -2
- package/dist/bin/shard-migrate.js +1 -1
- package/dist/{capacity-monitor-2BQAYPLD.js → capacity-monitor-XFMZSJDB.js} +2 -2
- package/dist/{catchup-brief-WJ7CNOQH.js → catchup-brief-D5IZFZDO.js} +3 -3
- package/dist/{chunk-TBNDW7US.js → chunk-2DRWIXOO.js} +1 -1
- package/dist/{chunk-VNP3SECD.js → chunk-4ANCHFE2.js} +1 -1
- package/dist/{chunk-YWLO73DO.js → chunk-5G643UWZ.js} +14 -4
- package/dist/{chunk-JFH5WWP7.js → chunk-64DYFA5X.js} +2 -2
- package/dist/{chunk-YXYJG5JX.js → chunk-6UY62EGD.js} +4 -4
- package/dist/{chunk-PUGYDZ4H.js → chunk-7X6QKJGM.js} +2 -2
- package/dist/{chunk-NJTIAI5G.js → chunk-BFLBZGPZ.js} +10 -1
- package/dist/{chunk-HZB5RFJI.js → chunk-BN3HRSEU.js} +1 -1
- package/dist/{chunk-NUMRCSLX.js → chunk-CUKIMXQ7.js} +1 -1
- package/dist/{chunk-34QPI5EB.js → chunk-FXD53Q32.js} +2 -2
- package/dist/{chunk-CCKNE7II.js → chunk-GEFZHKEN.js} +1 -1
- package/dist/{chunk-545RHWVW.js → chunk-GKNYEJQ3.js} +1 -1
- package/dist/{chunk-6GSACZON.js → chunk-HW46Q4AR.js} +4 -4
- package/dist/{chunk-IN5UEMCT.js → chunk-IFSAR5IX.js} +3 -3
- package/dist/{chunk-47N7BTNW.js → chunk-NEGJAEZ7.js} +1 -1
- package/dist/{chunk-F6T67NYS.js → chunk-O6LFXATW.js} +1 -1
- package/dist/{chunk-5U6UANGP.js → chunk-PKIOJQ2N.js} +1 -1
- package/dist/{chunk-NWLHYYHG.js → chunk-QOY6CTHV.js} +1 -1
- package/dist/{chunk-J7GQ24E3.js → chunk-R2MZDZTQ.js} +1 -1
- package/dist/{chunk-755ADH4S.js → chunk-RSHVFBKD.js} +4 -4
- package/dist/{chunk-AJJKDHAD.js → chunk-RTGN42GD.js} +1 -1
- package/dist/{chunk-AI4WYA6P.js → chunk-S2T7CE4P.js} +1 -1
- package/dist/{chunk-MUPXVKIR.js → chunk-SDQSOQOE.js} +2 -2
- package/dist/{chunk-XDDBA7QE.js → chunk-T43SC2XX.js} +1 -1
- package/dist/{chunk-47ASPR6R.js → chunk-UO3IEPSY.js} +675 -586
- package/dist/{chunk-GSBNSF67.js → chunk-WEJ45ZFF.js} +1 -1
- package/dist/{chunk-H6IQFGIG.js → chunk-XPKACO5A.js} +3 -3
- package/dist/{chunk-3FBZNRRS.js → chunk-YJNRRQOG.js} +2 -2
- package/dist/{crm-webhook-6EPM6GCJ.js → crm-webhook-WMAW6ZT2.js} +2 -2
- package/dist/{cto-delegation-gate-BU6HH4CY.js → cto-delegation-gate-YNWMQEQB.js} +1 -1
- package/dist/{daemon-orchestration-R2MVQ4CF.js → daemon-orchestration-5KUKQOZ4.js} +3 -3
- package/dist/{exe-export-KEL4ZR25.js → exe-export-RAYK76SO.js} +1 -1
- package/dist/{exe-import-ICJYV22F.js → exe-import-SAJBGUN5.js} +1 -1
- package/dist/{fast-db-init-6D433NQO.js → fast-db-init-5VDTKVKX.js} +1 -1
- package/dist/gateway/index.js +5 -5
- package/dist/{git-task-sweep-VIGVG2RY.js → git-task-sweep-GED54WTZ.js} +2 -2
- package/dist/hooks/bug-report-worker.js +3 -3
- package/dist/hooks/codex-stop-task-finalizer.js +3 -3
- package/dist/hooks/commit-complete.js +4 -4
- package/dist/hooks/error-recall.js +2 -2
- package/dist/hooks/ingest.js +2 -2
- package/dist/hooks/instructions-loaded.js +1 -1
- package/dist/hooks/manifest.json +18 -18
- package/dist/hooks/notification.js +1 -1
- package/dist/hooks/post-compact.js +2 -2
- package/dist/hooks/post-tool-combined.js +2 -2
- package/dist/hooks/pre-compact.js +3 -3
- package/dist/hooks/pre-tool-use.js +6 -6
- package/dist/hooks/prompt-submit.js +10 -10
- package/dist/hooks/session-end.js +152 -20
- package/dist/hooks/session-start.js +4 -4
- package/dist/hooks/stop.js +5 -5
- package/dist/hooks/subagent-stop.js +2 -2
- package/dist/hooks/summary-worker.js +5 -5
- package/dist/index.js +8 -8
- package/dist/lib/consolidation.js +2 -2
- package/dist/lib/exe-daemon.js +24 -14
- package/dist/lib/hybrid-search.js +2 -2
- package/dist/lib/messaging.js +2 -2
- package/dist/lib/schedules.js +2 -2
- package/dist/lib/skill-learning.js +2 -2
- package/dist/lib/store.js +1 -1
- package/dist/lib/tasks.js +2 -2
- package/dist/lib/tmux-routing.js +1 -1
- package/dist/mcp/register-tools.js +24 -24
- package/dist/mcp/server.js +25 -25
- package/dist/mcp/tools/create-task.js +3 -3
- package/dist/mcp/tools/deactivate-behavior.js +2 -2
- package/dist/mcp/tools/list-tasks.js +3 -3
- package/dist/mcp/tools/send-message.js +3 -3
- package/dist/mcp/tools/update-task.js +3 -3
- package/dist/{notifications-TNSU4SCZ.js → notifications-SCHILQCQ.js} +1 -1
- package/dist/{orchestrator-EYAPHOOD.js → orchestrator-NCEFZF32.js} +2 -2
- package/dist/{reranker-UMCHVO3A.js → reranker-QFLVGVRT.js} +1 -1
- package/dist/{review-polling-5ZEWTFQL.js → review-polling-ZKYFETP3.js} +2 -2
- package/dist/runtime/index.js +3 -3
- package/dist/{session-events-ZYNOWIQL.js → session-events-XCNQDXF4.js} +2 -2
- package/dist/{session-scope-UCFA2CJP.js → session-scope-FEZQJMD4.js} +1 -1
- package/dist/{task-enforcement-XYQN7VBA.js → task-enforcement-HVY36QRD.js} +1 -1
- package/dist/{task-scope-52IDTSYX.js → task-scope-ODSOEGTH.js} +1 -1
- package/dist/{tasks-crud-ZRB2UNNB.js → tasks-crud-RIUHZJGR.js} +1 -1
- package/dist/{tasks-review-DZGRPBMN.js → tasks-review-EBUVFQUJ.js} +1 -1
- package/dist/tui/App.js +7 -7
- package/dist/{tui-data-XLI7YZ75.js → tui-data-UM6LR4EQ.js} +1 -1
- package/dist/{worker-gate-ZS6IY5HM.js → worker-gate-K5YTO2H5.js} +1 -1
- package/dist/{workflow-engine-KWRAUF7M.js → workflow-engine-WUU5OZ3N.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +74 -74
- /package/dist/{chunk-Z3O6UJUX.js → chunk-2IMUAL3X.js} +0 -0
- /package/dist/{chunk-6457MEIK.js → chunk-4AJYZFDE.js} +0 -0
- /package/dist/{chunk-2333X7A7.js → chunk-DXB3CB2O.js} +0 -0
- /package/dist/{chunk-WELKUXEL.js → chunk-KVOTLCAX.js} +0 -0
- /package/dist/{chunk-COGICIAL.js → chunk-MQA6K7DH.js} +0 -0
- /package/dist/{core-memory-LN22LDJA.js → core-memory-NZOLAIOE.js} +0 -0
- /package/dist/{exe-key-ZJMUM57I.js → exe-key-W3CME65M.js} +0 -0
- /package/dist/{skill-refinement-CYK53LCM.js → skill-refinement-QHOS6CGQ.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4AJYZFDE.js";
|
|
5
5
|
import "../chunk-MLKGABMK.js";
|
|
6
6
|
|
|
7
7
|
// src/bin/intercom-check.ts
|
|
@@ -17,7 +17,7 @@ async function main() {
|
|
|
17
17
|
}
|
|
18
18
|
if (isCoordinator) {
|
|
19
19
|
try {
|
|
20
|
-
const { listPendingReviews, cleanupOrphanedReviews, formatAge, isStale } = await import("../tasks-review-
|
|
20
|
+
const { listPendingReviews, cleanupOrphanedReviews, formatAge, isStale } = await import("../tasks-review-EBUVFQUJ.js");
|
|
21
21
|
const { extractRootExe } = await import("../lib/tmux-routing.js");
|
|
22
22
|
let sessionScope = process.env.EXE_SESSION ? extractRootExe(process.env.EXE_SESSION) ?? void 0 : void 0;
|
|
23
23
|
if (!sessionScope) {
|
|
@@ -94,7 +94,7 @@ async function main() {
|
|
|
94
94
|
}
|
|
95
95
|
if (!isCoordinator) {
|
|
96
96
|
try {
|
|
97
|
-
const { listBehaviors } = await import("../behaviors-
|
|
97
|
+
const { listBehaviors } = await import("../behaviors-YJ3HEQED.js");
|
|
98
98
|
const sessionStart = process.env.EXE_SESSION_START_ISO ?? "";
|
|
99
99
|
if (sessionStart) {
|
|
100
100
|
const behaviors = await listBehaviors(agent);
|
|
@@ -113,7 +113,7 @@ async function main() {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
try {
|
|
116
|
-
const { readUnreadNotifications, markAsRead } = await import("../notifications-
|
|
116
|
+
const { readUnreadNotifications, markAsRead } = await import("../notifications-SCHILQCQ.js");
|
|
117
117
|
const { resolveExeSession } = await import("../lib/tmux-routing.js");
|
|
118
118
|
const sessionScope = resolveExeSession();
|
|
119
119
|
const notifications = await readUnreadNotifications(agent, sessionScope);
|
package/dist/bin/mcp-sessions.js
CHANGED
|
@@ -45,10 +45,10 @@ async function collectSessions() {
|
|
|
45
45
|
const registryMap = new Map(registry.map((r) => [r.windowName, r]));
|
|
46
46
|
const taskMap = /* @__PURE__ */ new Map();
|
|
47
47
|
try {
|
|
48
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
48
|
+
const { fastDbInit } = await import("../fast-db-init-5VDTKVKX.js");
|
|
49
49
|
await fastDbInit();
|
|
50
50
|
const { getClient } = await import("../lib/database.js");
|
|
51
|
-
const { sessionScopeFilter } = await import("../task-scope-
|
|
51
|
+
const { sessionScopeFilter } = await import("../task-scope-ODSOEGTH.js");
|
|
52
52
|
const client = getClient();
|
|
53
53
|
const scope = sessionScopeFilter();
|
|
54
54
|
const result = await client.execute({
|
package/dist/bin/scan-tasks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
queryTaskRows
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-HW46Q4AR.js";
|
|
5
5
|
import "../chunk-ACOW43IN.js";
|
|
6
6
|
import "../chunk-QI4IXJN7.js";
|
|
7
7
|
import "../chunk-B7NO5U7H.js";
|
|
@@ -72,7 +72,7 @@ function checkMcpHealth() {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
async function scanFromDb(agentId, tmuxSession, projectName) {
|
|
75
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
75
|
+
const { fastDbInit } = await import("../fast-db-init-5VDTKVKX.js");
|
|
76
76
|
try {
|
|
77
77
|
await fastDbInit();
|
|
78
78
|
} catch (err) {
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
isAtCapacity,
|
|
9
9
|
isWithinRelaunchCooldown,
|
|
10
10
|
pollCapacityDead
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GEFZHKEN.js";
|
|
12
12
|
import "./chunk-W7OCXE2L.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HW46Q4AR.js";
|
|
14
14
|
import "./chunk-ACOW43IN.js";
|
|
15
15
|
import "./chunk-QI4IXJN7.js";
|
|
16
16
|
import "./chunk-B7NO5U7H.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lightweightSearch
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RSHVFBKD.js";
|
|
4
|
+
import "./chunk-2IMUAL3X.js";
|
|
5
5
|
import "./chunk-CHCA3ZM2.js";
|
|
6
6
|
import "./chunk-Y2B6MB3J.js";
|
|
7
7
|
import "./chunk-F7LU65PQ.js";
|
|
8
8
|
import {
|
|
9
9
|
sessionScopeFilter,
|
|
10
10
|
strictSessionScopeFilter
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HW46Q4AR.js";
|
|
12
12
|
import "./chunk-ACOW43IN.js";
|
|
13
13
|
import "./chunk-QI4IXJN7.js";
|
|
14
14
|
import "./chunk-B7NO5U7H.js";
|
|
@@ -111,7 +111,7 @@ function releaseBackfillLock() {
|
|
|
111
111
|
}
|
|
112
112
|
async function getTaskAwareCapacity() {
|
|
113
113
|
const { getClient } = await import("./lib/database.js");
|
|
114
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
114
|
+
const { sessionScopeFilter } = await import("./task-scope-ODSOEGTH.js");
|
|
115
115
|
const client = getClient();
|
|
116
116
|
const scope = sessionScopeFilter();
|
|
117
117
|
const result = await client.execute({
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-W7OCXE2L.js";
|
|
4
4
|
import {
|
|
5
5
|
updateTask
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IFSAR5IX.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureEmployee,
|
|
9
9
|
extractRootExe,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
sessionScopeFilter,
|
|
15
15
|
strictSessionScopeFilter,
|
|
16
16
|
writeNotification
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HW46Q4AR.js";
|
|
18
18
|
import {
|
|
19
19
|
queueIntercom
|
|
20
20
|
} from "./chunk-QI4IXJN7.js";
|
|
@@ -1265,6 +1265,14 @@ var HOOK_PROCESS_PATTERNS = [
|
|
|
1265
1265
|
"intercom-check.js",
|
|
1266
1266
|
"exe-heartbeat-hook.js"
|
|
1267
1267
|
];
|
|
1268
|
+
var AGENT_CLI_EXECUTABLES = /* @__PURE__ */ new Set(["claude", "codex", "opencode"]);
|
|
1269
|
+
function getProcessExecutable(args) {
|
|
1270
|
+
const first = args.trim().split(/\s+/)[0] ?? "";
|
|
1271
|
+
return first.split("/").pop() ?? first;
|
|
1272
|
+
}
|
|
1273
|
+
function getProcessCommandPrefix(args) {
|
|
1274
|
+
return args.split(/\s+--system-prompt\b/)[0] ?? args;
|
|
1275
|
+
}
|
|
1268
1276
|
var ZOMBIE_AGENT_MAX_AGE_SECS = 300;
|
|
1269
1277
|
function reapZombieAgentProcesses(deps) {
|
|
1270
1278
|
let liveSessions;
|
|
@@ -1490,9 +1498,11 @@ function reapOrphanedMcpProcesses(deps) {
|
|
|
1490
1498
|
const etime = match[3];
|
|
1491
1499
|
const args = match[4];
|
|
1492
1500
|
if (pid === deps.selfPid) continue;
|
|
1493
|
-
|
|
1501
|
+
if (AGENT_CLI_EXECUTABLES.has(getProcessExecutable(args))) continue;
|
|
1502
|
+
const matchScope = getProcessCommandPrefix(args);
|
|
1503
|
+
const isPpid1Orphan = ppid === 1 && ORPHAN_PATTERNS.some((pat) => matchScope.includes(pat));
|
|
1494
1504
|
const ageSecs = parseEtime(etime);
|
|
1495
|
-
const isAgedHookOrphan = ageSecs > ORPHAN_MAX_AGE_SECS && HOOK_PROCESS_PATTERNS.some((pat) =>
|
|
1505
|
+
const isAgedHookOrphan = ageSecs > ORPHAN_MAX_AGE_SECS && HOOK_PROCESS_PATTERNS.some((pat) => matchScope.includes(pat));
|
|
1496
1506
|
if (!isPpid1Orphan && !isAgedHookOrphan) continue;
|
|
1497
1507
|
try {
|
|
1498
1508
|
deps.killProcess(pid, "SIGTERM");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MultiAgentOrchestrator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O6LFXATW.js";
|
|
4
4
|
import {
|
|
5
5
|
createQuietRenderer,
|
|
6
6
|
createTerminalRenderer,
|
|
@@ -206,7 +206,7 @@ function createExeOSHooks(config) {
|
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { listBehaviors } = await import("./behaviors-
|
|
209
|
+
const { listBehaviors } = await import("./behaviors-YJ3HEQED.js");
|
|
210
210
|
const behaviors = await listBehaviors(config.agentId, config.projectName, 12);
|
|
211
211
|
if (behaviors.length > 0) {
|
|
212
212
|
process.stderr.write(
|
|
@@ -327,7 +327,7 @@ function createExeOSHooks(config) {
|
|
|
327
327
|
async onSubagentStop(_reason) {
|
|
328
328
|
try {
|
|
329
329
|
const { getClient } = await import("./lib/database.js");
|
|
330
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
330
|
+
const { sessionScopeFilter } = await import("./task-scope-ODSOEGTH.js");
|
|
331
331
|
const client = getClient();
|
|
332
332
|
const ehScope = sessionScopeFilter();
|
|
333
333
|
const tasks = await client.execute({
|
|
@@ -419,7 +419,7 @@ function createExeOSHooks(config) {
|
|
|
419
419
|
try {
|
|
420
420
|
const { writeMemory, flushBatch } = await import("./lib/store.js");
|
|
421
421
|
const { getClient } = await import("./lib/database.js");
|
|
422
|
-
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-
|
|
422
|
+
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-ODSOEGTH.js");
|
|
423
423
|
const client = getClient();
|
|
424
424
|
const cpScope = cpScopeFilter();
|
|
425
425
|
const tasks = await client.execute({
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
createCRMWebhookHandler,
|
|
15
15
|
parseTwentyWebhook
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-S2T7CE4P.js";
|
|
17
17
|
import {
|
|
18
18
|
WhatsAppAdapter
|
|
19
19
|
} from "./chunk-ECSNSHZ7.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
retryWithBackoff,
|
|
50
50
|
routeMessage,
|
|
51
51
|
validateGatewayConfig
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-T43SC2XX.js";
|
|
53
53
|
import {
|
|
54
54
|
getAccountByName,
|
|
55
55
|
getAccountByPhoneNumberId,
|
|
@@ -224,6 +224,14 @@ async function deactivateBehavior(id) {
|
|
|
224
224
|
});
|
|
225
225
|
return (result.rowsAffected ?? 0) > 0;
|
|
226
226
|
}
|
|
227
|
+
async function reactivateBehavior(id) {
|
|
228
|
+
const client = getClient();
|
|
229
|
+
const result = await client.execute({
|
|
230
|
+
sql: `UPDATE behaviors SET active = 1, updated_at = ? WHERE id = ? AND active = 0`,
|
|
231
|
+
args: [(/* @__PURE__ */ new Date()).toISOString(), id]
|
|
232
|
+
});
|
|
233
|
+
return (result.rowsAffected ?? 0) > 0;
|
|
234
|
+
}
|
|
227
235
|
|
|
228
236
|
export {
|
|
229
237
|
storeBehavior,
|
|
@@ -231,5 +239,6 @@ export {
|
|
|
231
239
|
listBehaviorsByDomain,
|
|
232
240
|
listBehaviorsSince,
|
|
233
241
|
listSharedSkills,
|
|
234
|
-
deactivateBehavior
|
|
242
|
+
deactivateBehavior,
|
|
243
|
+
reactivateBehavior
|
|
235
244
|
};
|
|
@@ -490,7 +490,7 @@ async function createTaskCore(input) {
|
|
|
490
490
|
if (isCoordinatorSession) {
|
|
491
491
|
earlySessionScope = resolved;
|
|
492
492
|
} else {
|
|
493
|
-
const { getSessionProject } = await import("./session-scope-
|
|
493
|
+
const { getSessionProject } = await import("./session-scope-FEZQJMD4.js");
|
|
494
494
|
const sessionProject = getSessionProject(resolved);
|
|
495
495
|
if (sessionProject && sessionProject !== input.projectName) {
|
|
496
496
|
scopeMismatchWarning = `session/project mismatch: session "${resolved}" owns "${sessionProject}" but task targets "${input.projectName}". Routed to default scope.`;
|
|
@@ -947,7 +947,7 @@ async function updateTaskStatus(input) {
|
|
|
947
947
|
} catch {
|
|
948
948
|
}
|
|
949
949
|
try {
|
|
950
|
-
const { writeNotification: writeNotification2 } = await import("./notifications-
|
|
950
|
+
const { writeNotification: writeNotification2 } = await import("./notifications-SCHILQCQ.js");
|
|
951
951
|
await writeNotification2({
|
|
952
952
|
agentId: reviewer,
|
|
953
953
|
agentRole: isCoordinatorName(reviewer) ? "COO" : "manager",
|
|
@@ -1334,7 +1334,7 @@ ${input.result}` : `\u26A0\uFE0F ${warning}`;
|
|
|
1334
1334
|
}
|
|
1335
1335
|
if (input.status === "done" || input.status === "needs_review") {
|
|
1336
1336
|
try {
|
|
1337
|
-
const { incrementSkillSuccess } = await import("./skill-refinement-
|
|
1337
|
+
const { incrementSkillSuccess } = await import("./skill-refinement-QHOS6CGQ.js");
|
|
1338
1338
|
await incrementSkillSuccess(
|
|
1339
1339
|
String(row.assigned_to),
|
|
1340
1340
|
row.project_name ? String(row.project_name) : null
|
|
@@ -2463,7 +2463,7 @@ async function verifyPaneAtCapacity(sessionName) {
|
|
|
2463
2463
|
reason: `capture-pane failed: ${err instanceof Error ? err.message : String(err)}`
|
|
2464
2464
|
};
|
|
2465
2465
|
}
|
|
2466
|
-
const { isAtCapacity } = await import("./capacity-monitor-
|
|
2466
|
+
const { isAtCapacity } = await import("./capacity-monitor-XFMZSJDB.js");
|
|
2467
2467
|
if (!isAtCapacity(pane)) {
|
|
2468
2468
|
return {
|
|
2469
2469
|
atCapacity: false,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
sessionScopeFilter,
|
|
12
12
|
updateTaskStatus,
|
|
13
13
|
writeNotification
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HW46Q4AR.js";
|
|
15
15
|
import {
|
|
16
16
|
getTransport
|
|
17
17
|
} from "./chunk-MVW62NIZ.js";
|
|
@@ -159,7 +159,7 @@ async function dispatchTaskToEmployee(input) {
|
|
|
159
159
|
let crossProject = false;
|
|
160
160
|
if (input.projectName) {
|
|
161
161
|
try {
|
|
162
|
-
const { assertSessionScope } = await import("./session-scope-
|
|
162
|
+
const { assertSessionScope } = await import("./session-scope-FEZQJMD4.js");
|
|
163
163
|
const check = assertSessionScope("dispatch_task", input.projectName);
|
|
164
164
|
if (check.reason === "cross_session_denied") {
|
|
165
165
|
crossProject = true;
|
|
@@ -500,7 +500,7 @@ async function updateTask(input) {
|
|
|
500
500
|
await markTaskNotificationsRead(taskFile);
|
|
501
501
|
if (input.status === "needs_review" && !isCoordinator) {
|
|
502
502
|
try {
|
|
503
|
-
const { writeNotification: writeNotification2 } = await import("./notifications-
|
|
503
|
+
const { writeNotification: writeNotification2 } = await import("./notifications-SCHILQCQ.js");
|
|
504
504
|
await writeNotification2({
|
|
505
505
|
agentId: String(row.assigned_to),
|
|
506
506
|
agentRole: String(row.assigned_to),
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildRawVisibilityFilter,
|
|
4
4
|
buildWikiScopeFilter,
|
|
5
5
|
searchMemories
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2IMUAL3X.js";
|
|
7
7
|
import {
|
|
8
8
|
getClient
|
|
9
9
|
} from "./chunk-4GXXYDNU.js";
|
|
@@ -237,7 +237,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
237
237
|
let rerankerAvailable = false;
|
|
238
238
|
if (process.env.EXE_IS_DAEMON === "1") {
|
|
239
239
|
try {
|
|
240
|
-
const { isRerankerAvailable } = await import("./reranker-
|
|
240
|
+
const { isRerankerAvailable } = await import("./reranker-QFLVGVRT.js");
|
|
241
241
|
rerankerAvailable = isRerankerAvailable();
|
|
242
242
|
} catch {
|
|
243
243
|
}
|
|
@@ -401,7 +401,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
401
401
|
try {
|
|
402
402
|
let rerankedRecords;
|
|
403
403
|
if (graphContextMap.size > 0) {
|
|
404
|
-
const { rerankWithContext } = await import("./reranker-
|
|
404
|
+
const { rerankWithContext } = await import("./reranker-QFLVGVRT.js");
|
|
405
405
|
const candidates = merged.map((m) => ({
|
|
406
406
|
text: m.raw_text,
|
|
407
407
|
context: graphContextMap.get(m.id)
|
|
@@ -409,7 +409,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
409
409
|
const scored = await rerankWithContext(effectiveQuery, candidates, rerankReturnLimit);
|
|
410
410
|
rerankedRecords = scored.map((s) => merged[s.index]);
|
|
411
411
|
} else {
|
|
412
|
-
const { rerank } = await import("./reranker-
|
|
412
|
+
const { rerank } = await import("./reranker-QFLVGVRT.js");
|
|
413
413
|
rerankedRecords = await rerank(effectiveQuery, merged, rerankReturnLimit);
|
|
414
414
|
}
|
|
415
415
|
if (rerankedRecords.length > 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionScopeFilter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HW46Q4AR.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/git-task-sweep.ts
|
|
6
6
|
import { execSync } from "child_process";
|
|
@@ -178,7 +178,7 @@ async function sweepTasks(projectName, options = {}) {
|
|
|
178
178
|
}
|
|
179
179
|
if (!dryRun) {
|
|
180
180
|
try {
|
|
181
|
-
const { updateTaskStatus } = await import("./tasks-crud-
|
|
181
|
+
const { updateTaskStatus } = await import("./tasks-crud-RIUHZJGR.js");
|
|
182
182
|
await updateTaskStatus({
|
|
183
183
|
taskId: task.id,
|
|
184
184
|
status: "needs_review",
|