@askexenow/exe-os 0.9.203 → 0.9.204
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/init-db.sql +162 -0
- package/deploy/stack-manifests/v0.9.json +45 -1
- package/dist/{backfill-metadata-PTACRLYK.js → backfill-metadata-U4KABXKR.js} +1 -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 +5 -5
- package/dist/bin/cli.js +4 -4
- package/dist/bin/exe-assign.js +1 -1
- package/dist/bin/exe-boot.js +6 -6
- package/dist/bin/exe-dispatch.js +5 -5
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +2 -2
- package/dist/bin/exe-forget.js +3 -3
- package/dist/bin/exe-gateway.js +4 -4
- package/dist/bin/exe-heartbeat.js +5 -5
- package/dist/bin/exe-kill.js +6 -6
- package/dist/bin/exe-launch-agent.js +2 -2
- package/dist/bin/exe-pending-messages.js +6 -6
- package/dist/bin/exe-pending-notifications.js +5 -5
- package/dist/bin/exe-pending-reviews.js +5 -5
- package/dist/bin/exe-review.js +6 -6
- package/dist/bin/exe-search.js +2 -2
- package/dist/bin/exe-session-cleanup.js +9 -9
- package/dist/bin/exe-start-codex.js +1 -1
- package/dist/bin/exe-start-opencode.js +1 -1
- package/dist/bin/exe-status.js +6 -6
- package/dist/bin/exe-team.js +1 -1
- package/dist/bin/git-sweep.js +5 -5
- 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 +3 -3
- package/dist/bin/orchestration-metrics.js +2 -2
- package/dist/bin/scan-tasks.js +5 -5
- package/dist/bin/shard-migrate.js +1 -1
- package/dist/{capacity-monitor-TGSIL7W4.js → capacity-monitor-AXBGVDJ5.js} +5 -5
- package/dist/{catchup-brief-ABL4NSAE.js → catchup-brief-TX4ODBPO.js} +6 -6
- package/dist/{chunk-USQF2GGF.js → chunk-25AH7NZ3.js} +79 -3
- package/dist/{chunk-AH6MV6CC.js → chunk-2Y6WKJGO.js} +1 -1
- package/dist/{chunk-DAFEIA2M.js → chunk-3KHQUA5W.js} +70 -28
- package/dist/{chunk-WGMHQVGX.js → chunk-4NT6K4Y3.js} +82 -5
- package/dist/chunk-6LMP2A62.js +561 -0
- package/dist/chunk-6UZKN2QW.js +137 -0
- package/dist/{chunk-XXHDXAZV.js → chunk-7DJW7POW.js} +1 -1
- package/dist/{chunk-IXFE5R6T.js → chunk-E2HLBCC4.js} +1 -1
- package/dist/{chunk-5POKNLFV.js → chunk-E4NC3YVQ.js} +1 -1
- package/dist/{chunk-FMI7SCZJ.js → chunk-EAE6ZMDU.js} +1 -1
- package/dist/{chunk-BGOQFJ2H.js → chunk-GMWKV22N.js} +2 -2
- package/dist/{chunk-FFECDA24.js → chunk-ILZSBMC3.js} +1 -1
- package/dist/{chunk-XWM23YJO.js → chunk-JXOJL72T.js} +2 -2
- package/dist/{chunk-RJCZY4BY.js → chunk-KW6NZNGB.js} +83 -7
- package/dist/{chunk-ZQMOF6E7.js → chunk-N3JRT57X.js} +1 -1
- package/dist/{chunk-K62M5FIM.js → chunk-N5GVXBX2.js} +3 -3
- package/dist/{chunk-RN6XYY7U.js → chunk-NLXNO5OH.js} +71 -0
- package/dist/{chunk-HXYL4QX6.js → chunk-O5PFOMQC.js} +1 -1
- package/dist/{chunk-6FJ2TJYB.js → chunk-PTY37LIC.js} +1 -1
- package/dist/{chunk-GPNUPCTZ.js → chunk-PZRIFSHY.js} +2 -2
- package/dist/{chunk-QLKRYO7O.js → chunk-Q3SJ6VIB.js} +1 -1
- package/dist/{chunk-3K2BCD5Y.js → chunk-U2QASWL6.js} +19 -2
- package/dist/{chunk-25K6KNZ5.js → chunk-WGRHKPVG.js} +56 -4
- package/dist/{chunk-Y2W54BET.js → chunk-WKM3BSNL.js} +4 -4
- package/dist/{chunk-PVVA5SY5.js → chunk-XS2VAJCH.js} +13 -2
- package/dist/{chunk-DEGQESR7.js → chunk-XTTLF54S.js} +2 -2
- package/dist/{chunk-AUPGTF7I.js → chunk-YIHUUNNV.js} +2 -2
- package/dist/{chunk-P4JQGT4Q.js → chunk-Z6SH44AM.js} +1 -1
- package/dist/{crm-webhook-FBENY6FW.js → crm-webhook-BD5AUIZB.js} +2 -2
- package/dist/{cto-delegation-gate-A53RLTJZ.js → cto-delegation-gate-3H77F7FY.js} +4 -4
- package/dist/{daemon-orchestration-3U3XXFG7.js → daemon-orchestration-C7HD7UZT.js} +6 -6
- package/dist/{exe-export-AFXTJ63F.js → exe-export-LIHHQVOV.js} +1 -1
- package/dist/{exe-import-QRZBTBBG.js → exe-import-3SOERMSY.js} +1 -1
- package/dist/{fast-db-init-YVJD4JT2.js → fast-db-init-5W2GJH7H.js} +1 -1
- package/dist/gateway/index.js +5 -5
- package/dist/{git-task-sweep-O5CH3MKA.js → git-task-sweep-T5MVS6C4.js} +5 -5
- package/dist/hooks/bug-report-worker.js +6 -6
- package/dist/hooks/codex-stop-task-finalizer.js +6 -6
- package/dist/hooks/commit-complete.js +7 -7
- 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 +5 -5
- package/dist/hooks/post-tool-combined.js +2 -2
- package/dist/hooks/pre-compact.js +6 -6
- package/dist/hooks/pre-tool-use.js +9 -9
- package/dist/hooks/prompt-submit.js +22 -11
- package/dist/hooks/session-end.js +8 -8
- package/dist/hooks/session-start.js +27 -4
- package/dist/hooks/stop.js +8 -8
- package/dist/hooks/subagent-stop.js +5 -5
- package/dist/hooks/summary-worker.js +8 -8
- package/dist/index.js +11 -11
- package/dist/lib/consolidation.js +2 -2
- package/dist/lib/exe-daemon.js +63 -15
- package/dist/lib/hybrid-search.js +2 -2
- package/dist/lib/messaging.js +5 -5
- package/dist/lib/schedules.js +2 -2
- package/dist/lib/session-registry.js +9 -1
- package/dist/lib/store.js +1 -1
- package/dist/lib/tasks.js +5 -5
- package/dist/lib/tmux-routing.js +4 -4
- package/dist/mcp/register-tools.js +24 -24
- package/dist/mcp/server.js +25 -25
- package/dist/mcp/tools/create-task.js +6 -6
- package/dist/mcp/tools/list-tasks.js +6 -6
- package/dist/mcp/tools/send-message.js +6 -6
- package/dist/mcp/tools/update-task.js +6 -6
- package/dist/{notifications-GHNYYITD.js → notifications-RJDXR4QD.js} +4 -4
- package/dist/{orchestration-events-2SVPXMK2.js → orchestration-events-HWP5PNAO.js} +5 -1
- package/dist/{orchestrator-3BDZ6OUC.js → orchestrator-FAEMTK23.js} +5 -5
- package/dist/{reranker-B3BOGR3A.js → reranker-H4UNQZZW.js} +1 -1
- package/dist/{review-polling-RUXU45AK.js → review-polling-NQQMIRJJ.js} +5 -5
- package/dist/runtime/index.js +6 -6
- package/dist/{session-events-ICZPUGJN.js → session-events-Z3TESQCV.js} +5 -5
- package/dist/{session-scope-UJI35BLD.js → session-scope-6JGI2SG7.js} +4 -4
- package/dist/{task-enforcement-AYHKGR45.js → task-enforcement-DGH4LSEM.js} +4 -4
- package/dist/{task-scope-EYAOY6YX.js → task-scope-2BQEKJ75.js} +4 -4
- package/dist/{tasks-crud-K3UGPCPT.js → tasks-crud-VOHJZCDP.js} +6 -4
- package/dist/{tasks-review-J6LTVVO5.js → tasks-review-5ZKFYZSG.js} +4 -4
- package/dist/telemetry-upload-ZLPFXJSB.js +119 -0
- package/dist/tui/App.js +10 -10
- package/dist/{tui-data-32OEC3DH.js → tui-data-IP3B6E26.js} +4 -4
- package/dist/{worker-gate-UIGQCEUE.js → worker-gate-K64XRRCJ.js} +1 -1
- package/dist/{workflow-engine-IY7KO7DU.js → workflow-engine-GFFMXXKF.js} +2 -2
- package/dist/{worktree-VIXR2Z4J.js → worktree-37F624QU.js} +7 -1
- package/package.json +1 -1
- package/release-notes.json +58 -58
- package/dist/chunk-64WZEXXA.js +0 -64
- package/dist/chunk-ZGQH3V2F.js +0 -254
- /package/dist/{chunk-L63IOJ5N.js → chunk-IWHGEUPC.js} +0 -0
- /package/dist/{chunk-3GFR2TX6.js → chunk-OLYRY66P.js} +0 -0
- /package/dist/{chunk-KCWIOR55.js → chunk-OMJHJQQK.js} +0 -0
- /package/dist/{chunk-QQN7MHQG.js → chunk-XBRGHHIY.js} +0 -0
- /package/dist/{core-memory-VZ4YJVMA.js → core-memory-PMQ5PJ4U.js} +0 -0
- /package/dist/{exe-key-BXN7WPOX.js → exe-key-DKNILIT6.js} +0 -0
- /package/dist/{skill-refinement-WZL35CMY.js → skill-refinement-HYEGUXAX.js} +0 -0
package/dist/bin/exe-review.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IWHGEUPC.js";
|
|
5
5
|
import {
|
|
6
6
|
flushBatch,
|
|
7
7
|
writeMemory
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-Q3SJ6VIB.js";
|
|
9
9
|
import "../chunk-CHCA3ZM2.js";
|
|
10
10
|
import "../chunk-RH5NYRQH.js";
|
|
11
11
|
import {
|
|
12
12
|
getCurrentSessionScope,
|
|
13
13
|
strictSessionScopeFilter
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-KW6NZNGB.js";
|
|
15
|
+
import "../chunk-NLXNO5OH.js";
|
|
16
16
|
import "../chunk-QI4IXJN7.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-6UZKN2QW.js";
|
|
18
18
|
import "../chunk-5YDHBZCO.js";
|
|
19
19
|
import "../chunk-G4QFC45N.js";
|
|
20
20
|
import "../chunk-GZIAQYGI.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-6LMP2A62.js";
|
|
22
22
|
import "../chunk-ZQX6UOP6.js";
|
|
23
23
|
import "../chunk-6RX2XEET.js";
|
|
24
24
|
import "../chunk-NGP6LSV2.js";
|
package/dist/bin/exe-search.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
hybridSearch,
|
|
4
4
|
lightweightSearch
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-WKM3BSNL.js";
|
|
6
6
|
import {
|
|
7
7
|
initStore
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-Q3SJ6VIB.js";
|
|
9
9
|
import "../chunk-CHCA3ZM2.js";
|
|
10
10
|
import "../chunk-RH5NYRQH.js";
|
|
11
11
|
import "../chunk-MP2AFCGL.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
flushBatch,
|
|
4
4
|
initStore,
|
|
5
5
|
writeMemory
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-Q3SJ6VIB.js";
|
|
7
7
|
import "../chunk-CHCA3ZM2.js";
|
|
8
8
|
import "../chunk-RH5NYRQH.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionScopeFilter,
|
|
11
11
|
updateTaskStatus
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-KW6NZNGB.js";
|
|
13
|
+
import "../chunk-NLXNO5OH.js";
|
|
14
14
|
import "../chunk-QI4IXJN7.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-6UZKN2QW.js";
|
|
16
16
|
import "../chunk-5YDHBZCO.js";
|
|
17
17
|
import "../chunk-G4QFC45N.js";
|
|
18
18
|
import "../chunk-GZIAQYGI.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-6LMP2A62.js";
|
|
20
20
|
import "../chunk-ZQX6UOP6.js";
|
|
21
21
|
import "../chunk-6RX2XEET.js";
|
|
22
22
|
import "../chunk-NGP6LSV2.js";
|
|
@@ -140,7 +140,7 @@ try {
|
|
|
140
140
|
`
|
|
141
141
|
);
|
|
142
142
|
try {
|
|
143
|
-
const { createReviewForCompletedTask } = await import("../tasks-review-
|
|
143
|
+
const { createReviewForCompletedTask } = await import("../tasks-review-5ZKFYZSG.js");
|
|
144
144
|
await createReviewForCompletedTask(
|
|
145
145
|
{
|
|
146
146
|
id: String(dt.id),
|
|
@@ -177,7 +177,7 @@ try {
|
|
|
177
177
|
if (result.rows.length === 0) process.exit(0);
|
|
178
178
|
let commits = [];
|
|
179
179
|
try {
|
|
180
|
-
const { getRecentCommits } = await import("../git-task-sweep-
|
|
180
|
+
const { getRecentCommits } = await import("../git-task-sweep-T5MVS6C4.js");
|
|
181
181
|
commits = getRecentCommits(30);
|
|
182
182
|
} catch {
|
|
183
183
|
}
|
|
@@ -190,7 +190,7 @@ try {
|
|
|
190
190
|
const context = row.context ? String(row.context) : void 0;
|
|
191
191
|
if (commits.length > 0) {
|
|
192
192
|
try {
|
|
193
|
-
const { findBestMatch } = await import("../git-task-sweep-
|
|
193
|
+
const { findBestMatch } = await import("../git-task-sweep-T5MVS6C4.js");
|
|
194
194
|
const match = findBestMatch({ id: taskId, title, context }, commits);
|
|
195
195
|
if (match) {
|
|
196
196
|
try {
|
|
@@ -316,7 +316,7 @@ try {
|
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
try {
|
|
319
|
-
const { cleanupWorktree } = await import("../worktree-
|
|
319
|
+
const { cleanupWorktree } = await import("../worktree-37F624QU.js");
|
|
320
320
|
const cleanup = cleanupWorktree(process.cwd(), agentName);
|
|
321
321
|
if (cleanup.cleaned) {
|
|
322
322
|
process.stderr.write(`[session-cleanup] worktree cleaned: ${cleanup.reason}
|
package/dist/bin/exe-status.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
status
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-GMWKV22N.js";
|
|
5
|
+
import "../chunk-IWHGEUPC.js";
|
|
6
|
+
import "../chunk-KW6NZNGB.js";
|
|
7
|
+
import "../chunk-NLXNO5OH.js";
|
|
8
8
|
import "../chunk-QI4IXJN7.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-6UZKN2QW.js";
|
|
10
10
|
import "../chunk-5YDHBZCO.js";
|
|
11
11
|
import "../chunk-G4QFC45N.js";
|
|
12
12
|
import "../chunk-GZIAQYGI.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-6LMP2A62.js";
|
|
14
14
|
import "../chunk-ZQX6UOP6.js";
|
|
15
15
|
import "../chunk-6RX2XEET.js";
|
|
16
16
|
import "../chunk-NGP6LSV2.js";
|
package/dist/bin/exe-team.js
CHANGED
package/dist/bin/git-sweep.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sweepTasks
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-YIHUUNNV.js";
|
|
5
|
+
import "../chunk-KW6NZNGB.js";
|
|
6
|
+
import "../chunk-NLXNO5OH.js";
|
|
7
7
|
import "../chunk-QI4IXJN7.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6UZKN2QW.js";
|
|
9
9
|
import "../chunk-5YDHBZCO.js";
|
|
10
10
|
import "../chunk-G4QFC45N.js";
|
|
11
11
|
import "../chunk-GZIAQYGI.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-6LMP2A62.js";
|
|
13
13
|
import "../chunk-ZQX6UOP6.js";
|
|
14
14
|
import "../chunk-6RX2XEET.js";
|
|
15
15
|
import "../chunk-NGP6LSV2.js";
|
package/dist/bin/graph-export.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "../chunk-46SQTBQW.js";
|
|
6
6
|
import {
|
|
7
7
|
fastDbInit
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-IWHGEUPC.js";
|
|
9
9
|
import {
|
|
10
10
|
disposeStore
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-Q3SJ6VIB.js";
|
|
12
12
|
import "../chunk-CHCA3ZM2.js";
|
|
13
13
|
import "../chunk-RH5NYRQH.js";
|
|
14
14
|
import "../chunk-MP2AFCGL.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IWHGEUPC.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-5ZKFYZSG.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) {
|
|
@@ -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-RJDXR4QD.js");
|
|
117
117
|
const { resolveExeSession } = await import("../lib/tmux-routing.js");
|
|
118
118
|
const sessionScope = resolveExeSession();
|
|
119
119
|
const notifications = await readUnreadNotifications(agent, sessionScope);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IWHGEUPC.js";
|
|
5
5
|
import {
|
|
6
6
|
formatOrchestrationMetrics,
|
|
7
7
|
getOrchestrationMetrics
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-6LMP2A62.js";
|
|
9
9
|
import "../chunk-K3O4MWMS.js";
|
|
10
10
|
import "../chunk-HHECGHFW.js";
|
|
11
11
|
import "../chunk-FXU7JOXK.js";
|
package/dist/bin/scan-tasks.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
queryTaskRows
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KW6NZNGB.js";
|
|
5
|
+
import "../chunk-NLXNO5OH.js";
|
|
6
6
|
import "../chunk-QI4IXJN7.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6UZKN2QW.js";
|
|
8
8
|
import "../chunk-5YDHBZCO.js";
|
|
9
9
|
import "../chunk-G4QFC45N.js";
|
|
10
10
|
import "../chunk-GZIAQYGI.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-6LMP2A62.js";
|
|
12
12
|
import "../chunk-ZQX6UOP6.js";
|
|
13
13
|
import "../chunk-6RX2XEET.js";
|
|
14
14
|
import "../chunk-NGP6LSV2.js";
|
|
@@ -73,7 +73,7 @@ function checkMcpHealth() {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function scanFromDb(agentId, tmuxSession, projectName) {
|
|
76
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
76
|
+
const { fastDbInit } = await import("../fast-db-init-5W2GJH7H.js");
|
|
77
77
|
try {
|
|
78
78
|
await fastDbInit();
|
|
79
79
|
} catch (err) {
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
isAtCapacity,
|
|
9
9
|
isWithinRelaunchCooldown,
|
|
10
10
|
pollCapacityDead
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U2QASWL6.js";
|
|
12
12
|
import "./chunk-CGM6BIK3.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-KW6NZNGB.js";
|
|
14
|
+
import "./chunk-NLXNO5OH.js";
|
|
15
15
|
import "./chunk-QI4IXJN7.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6UZKN2QW.js";
|
|
17
17
|
import "./chunk-5YDHBZCO.js";
|
|
18
18
|
import "./chunk-G4QFC45N.js";
|
|
19
19
|
import "./chunk-GZIAQYGI.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-6LMP2A62.js";
|
|
21
21
|
import "./chunk-ZQX6UOP6.js";
|
|
22
22
|
import "./chunk-6RX2XEET.js";
|
|
23
23
|
import "./chunk-NGP6LSV2.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lightweightSearch
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-WKM3BSNL.js";
|
|
4
|
+
import "./chunk-Q3SJ6VIB.js";
|
|
5
5
|
import "./chunk-CHCA3ZM2.js";
|
|
6
6
|
import "./chunk-RH5NYRQH.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionScopeFilter,
|
|
9
9
|
strictSessionScopeFilter
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-KW6NZNGB.js";
|
|
11
|
+
import "./chunk-NLXNO5OH.js";
|
|
12
12
|
import "./chunk-QI4IXJN7.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-6UZKN2QW.js";
|
|
14
14
|
import "./chunk-5YDHBZCO.js";
|
|
15
15
|
import "./chunk-G4QFC45N.js";
|
|
16
16
|
import "./chunk-GZIAQYGI.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6LMP2A62.js";
|
|
18
18
|
import "./chunk-ZQX6UOP6.js";
|
|
19
19
|
import "./chunk-6RX2XEET.js";
|
|
20
20
|
import "./chunk-NGP6LSV2.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MLXJ5EZG.js";
|
|
4
4
|
import {
|
|
5
5
|
createTask
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4NT6K4Y3.js";
|
|
7
7
|
import {
|
|
8
8
|
getActiveAgent
|
|
9
9
|
} from "./chunk-UY6RQK5F.js";
|
|
@@ -11,7 +11,13 @@ import {
|
|
|
11
11
|
ensureEmployee,
|
|
12
12
|
logTaskDispatch,
|
|
13
13
|
resolveExeSession
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KW6NZNGB.js";
|
|
15
|
+
import {
|
|
16
|
+
recordOrchestrationEventBestEffort
|
|
17
|
+
} from "./chunk-6LMP2A62.js";
|
|
18
|
+
import {
|
|
19
|
+
getAgentRuntime
|
|
20
|
+
} from "./chunk-6RX2XEET.js";
|
|
15
21
|
import {
|
|
16
22
|
getLicenseSync
|
|
17
23
|
} from "./chunk-SN6Z3CBF.js";
|
|
@@ -27,6 +33,14 @@ import { z } from "zod";
|
|
|
27
33
|
import { existsSync, writeFileSync, mkdirSync } from "fs";
|
|
28
34
|
import { join } from "path";
|
|
29
35
|
import { homedir } from "os";
|
|
36
|
+
function resolveDispatchRuntime(agentId, override) {
|
|
37
|
+
if (override) return override;
|
|
38
|
+
try {
|
|
39
|
+
return getAgentRuntime(agentId).runtime ?? null;
|
|
40
|
+
} catch {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
30
44
|
async function resolveProjectDir(projectName, callerSession) {
|
|
31
45
|
const home = homedir();
|
|
32
46
|
if (callerSession) {
|
|
@@ -197,19 +211,39 @@ function registerCreateTask(server) {
|
|
|
197
211
|
session_scope: sessionScope,
|
|
198
212
|
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
199
213
|
}), "utf-8");
|
|
214
|
+
const { recordOrchestrationEventBestEffort: recordOE } = await import("./orchestration-events-HWP5PNAO.js");
|
|
215
|
+
recordOE({
|
|
216
|
+
eventType: "signal.created",
|
|
217
|
+
source: "create-task.mcp",
|
|
218
|
+
taskId: task.id,
|
|
219
|
+
agentId: assigned_to,
|
|
220
|
+
sessionScope,
|
|
221
|
+
payload: { priority }
|
|
222
|
+
});
|
|
200
223
|
} catch {
|
|
201
224
|
}
|
|
202
225
|
let dispatchStatus = "";
|
|
203
226
|
if (task.status !== "blocked" && !process.env.VITEST) {
|
|
204
227
|
try {
|
|
205
228
|
const exeSession = callerRoot || resolveExeSession();
|
|
229
|
+
const dispatchRuntime = resolveDispatchRuntime(assigned_to, spawn_runtime ?? null);
|
|
230
|
+
recordOrchestrationEventBestEffort({
|
|
231
|
+
eventType: "dispatch.attempted",
|
|
232
|
+
source: "create-task.mcp",
|
|
233
|
+
taskId: task.id,
|
|
234
|
+
agentId: assigned_to,
|
|
235
|
+
sessionScope: task.sessionScope || callerRoot || exeSession || null,
|
|
236
|
+
projectName: project_name,
|
|
237
|
+
runtime: dispatchRuntime,
|
|
238
|
+
payload: { priority }
|
|
239
|
+
});
|
|
206
240
|
if (exeSession) {
|
|
207
241
|
const { shouldAutoInstance } = await import("./lib/employees.js");
|
|
208
242
|
const autoOpts = shouldAutoInstance(assigned_to);
|
|
209
243
|
let projectConflictOpts = {};
|
|
210
244
|
try {
|
|
211
245
|
const { getClient } = await import("./lib/database.js");
|
|
212
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
246
|
+
const { sessionScopeFilter } = await import("./task-scope-2BQEKJ75.js");
|
|
213
247
|
const client = getClient();
|
|
214
248
|
const scope = sessionScopeFilter();
|
|
215
249
|
const existing = await client.execute({
|
|
@@ -243,6 +277,10 @@ function registerCreateTask(server) {
|
|
|
243
277
|
dispatchStatus = `
|
|
244
278
|
Dispatched: intercom sent to ${result.sessionName}`;
|
|
245
279
|
break;
|
|
280
|
+
case "intercom_unprocessed":
|
|
281
|
+
dispatchStatus = `
|
|
282
|
+
Dispatched: intercom delivered to ${result.sessionName}`;
|
|
283
|
+
break;
|
|
246
284
|
case "spawned":
|
|
247
285
|
dispatchStatus = `
|
|
248
286
|
Dispatched: spawned ${result.sessionName}`;
|
|
@@ -252,6 +290,20 @@ Dispatched: spawned ${result.sessionName}`;
|
|
|
252
290
|
Dispatch failed: ${result.error ?? "unknown"}`;
|
|
253
291
|
break;
|
|
254
292
|
}
|
|
293
|
+
recordOrchestrationEventBestEffort({
|
|
294
|
+
eventType: result.status === "failed" ? "dispatch.failed" : "dispatch.completed",
|
|
295
|
+
source: "create-task.mcp",
|
|
296
|
+
severity: result.status === "failed" ? "warn" : "info",
|
|
297
|
+
taskId: task.id,
|
|
298
|
+
agentId: assigned_to,
|
|
299
|
+
sessionScope: task.sessionScope || callerRoot || exeSession,
|
|
300
|
+
projectName: project_name,
|
|
301
|
+
tmuxSession: result.sessionName || null,
|
|
302
|
+
runtime: dispatchRuntime,
|
|
303
|
+
result: result.status,
|
|
304
|
+
errorCode: result.status === "failed" ? "ensure_employee_failed" : null,
|
|
305
|
+
payload: { priority, error: result.error ?? null }
|
|
306
|
+
});
|
|
255
307
|
try {
|
|
256
308
|
const { sendIntercom: si } = await import("./lib/tmux-routing.js");
|
|
257
309
|
const { listTmuxSessions } = await import("./lib/tmux-status.js");
|
|
@@ -287,8 +339,32 @@ Dispatch failed: ${result.error ?? "unknown"}`;
|
|
|
287
339
|
sessionName: result.sessionName,
|
|
288
340
|
error: result.error
|
|
289
341
|
});
|
|
342
|
+
} else {
|
|
343
|
+
recordOrchestrationEventBestEffort({
|
|
344
|
+
eventType: "dispatch.failed",
|
|
345
|
+
source: "create-task.mcp",
|
|
346
|
+
severity: "warn",
|
|
347
|
+
taskId: task.id,
|
|
348
|
+
agentId: assigned_to,
|
|
349
|
+
sessionScope: task.sessionScope || callerRoot || null,
|
|
350
|
+
projectName: project_name,
|
|
351
|
+
runtime: dispatchRuntime,
|
|
352
|
+
errorCode: "no_exe_session",
|
|
353
|
+
payload: { priority }
|
|
354
|
+
});
|
|
290
355
|
}
|
|
291
356
|
} catch (dispatchErr) {
|
|
357
|
+
recordOrchestrationEventBestEffort({
|
|
358
|
+
eventType: "dispatch.failed",
|
|
359
|
+
source: "create-task.mcp",
|
|
360
|
+
severity: "warn",
|
|
361
|
+
taskId: task.id,
|
|
362
|
+
agentId: assigned_to,
|
|
363
|
+
sessionScope: task.sessionScope || callerRoot || null,
|
|
364
|
+
projectName: project_name,
|
|
365
|
+
runtime: resolveDispatchRuntime(assigned_to, spawn_runtime ?? null),
|
|
366
|
+
errorCode: "exception"
|
|
367
|
+
});
|
|
292
368
|
process.stderr.write(`[create-task] dispatch error for ${assigned_to}: ${dispatchErr instanceof Error ? dispatchErr.message : String(dispatchErr)}
|
|
293
369
|
${dispatchErr instanceof Error ? dispatchErr.stack : ""}
|
|
294
370
|
`);
|