@askexenow/exe-os 0.9.233 → 0.9.235
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/{backfill-metadata-DQ7CJSYU.js → backfill-metadata-42OHVO74.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 +6 -6
- 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 +5 -5
- package/dist/bin/exe-heartbeat.js +5 -5
- package/dist/bin/exe-kill.js +6 -6
- package/dist/bin/exe-launch-agent.js +6 -6
- 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 +2 -2
- package/dist/bin/intercom-check.js +3 -3
- package/dist/bin/mcp-sessions.js +2 -2
- 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-4EFUNBHQ.js → capacity-monitor-S5VVRWNX.js} +5 -5
- package/dist/{catchup-brief-AREGE4U6.js → catchup-brief-QHZWZPDK.js} +6 -6
- package/dist/{chunk-3L4A54VE.js → chunk-2GFZSEST.js} +5 -5
- package/dist/{chunk-J5MOKLCJ.js → chunk-2UD2P2LO.js} +1 -1
- package/dist/{chunk-FOP5EAJZ.js → chunk-2V3TDLQ2.js} +6 -6
- package/dist/{chunk-HIWXAE6E.js → chunk-3I2EA54D.js} +1 -1
- package/dist/{chunk-G5WLNJSC.js → chunk-4CPXB27E.js} +1 -1
- package/dist/{chunk-CGBH7RVU.js → chunk-4TFOQEM7.js} +3 -3
- package/dist/{chunk-B4KT7ZX4.js → chunk-5GN363L5.js} +32 -32
- package/dist/{chunk-WJV6N65Y.js → chunk-5XAAMTTY.js} +2 -2
- package/dist/{chunk-WKVBGGSZ.js → chunk-65AEKCC2.js} +1 -1
- package/dist/{chunk-WD7JP4LN.js → chunk-ALVMBSU3.js} +1 -1
- package/dist/{chunk-AVICWQYY.js → chunk-CFHTPEIC.js} +1 -1
- package/dist/{chunk-OHCRCEPG.js → chunk-ERZDN63F.js} +4 -4
- package/dist/{chunk-C36GJWKH.js → chunk-EYMTIOBH.js} +1 -1
- package/dist/{chunk-5UH67CWJ.js → chunk-G2Q2QELX.js} +1 -1
- package/dist/{chunk-3HH4YLLN.js → chunk-HLWU3NEV.js} +2 -2
- package/dist/{chunk-JFUVMMBE.js → chunk-IJCGZ36F.js} +2 -2
- package/dist/{chunk-QRHVGJOB.js → chunk-JQUFMZHI.js} +80 -31
- package/dist/{chunk-O4MTX7JR.js → chunk-KZU2ZG6R.js} +2 -2
- package/dist/{chunk-35AKID7J.js → chunk-LNH5BL3I.js} +3 -3
- package/dist/{chunk-LQZULPXV.js → chunk-LSD6SHBJ.js} +1 -1
- package/dist/{chunk-WDSSDXXM.js → chunk-LWCQXP6U.js} +2 -2
- package/dist/{chunk-YXRY4LH2.js → chunk-MJMJMHFC.js} +3 -0
- package/dist/{chunk-LEK3ANCA.js → chunk-MQVA77HS.js} +1 -1
- package/dist/{chunk-GQHV2QYL.js → chunk-RP7BANLZ.js} +4 -4
- package/dist/{chunk-RJAKV7GY.js → chunk-SAVQLE3L.js} +1 -1
- package/dist/{chunk-5O5NXKDM.js → chunk-T7NGFQNB.js} +2 -2
- package/dist/{chunk-MOMOSSS3.js → chunk-TN4H5D45.js} +2 -2
- package/dist/{chunk-DIO7YUAT.js → chunk-XORJOW4J.js} +1 -1
- package/dist/{chunk-F4CQKTVZ.js → chunk-ZKFW6ZV3.js} +1 -1
- package/dist/{crm-webhook-RMHBLDL4.js → crm-webhook-MMMSL3YF.js} +2 -2
- package/dist/{cto-delegation-gate-D3TEAQGU.js → cto-delegation-gate-VBGJULVJ.js} +4 -4
- package/dist/{daemon-orchestration-Y7SJSLBI.js → daemon-orchestration-V7THLPEZ.js} +6 -6
- package/dist/{exe-export-4A74HNYL.js → exe-export-6YZOWOON.js} +1 -1
- package/dist/{exe-import-UZSWB6RS.js → exe-import-6SLISBOQ.js} +1 -1
- package/dist/{exe-snapshot-EMYU745D.js → exe-snapshot-3BUMC3XW.js} +1 -1
- package/dist/{fast-db-init-IXMJATO6.js → fast-db-init-L66PVC3N.js} +1 -1
- package/dist/gateway/index.js +6 -6
- package/dist/{git-task-sweep-5MTDROCJ.js → git-task-sweep-2QZU6PCS.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 +12 -12
- package/dist/hooks/session-end.js +8 -8
- package/dist/hooks/session-start.js +7 -7
- 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 +12 -12
- package/dist/lib/consolidation.js +2 -2
- package/dist/lib/exe-daemon.js +50 -27
- 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 +2 -2
- 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 +25 -25
- package/dist/mcp/server.js +26 -26
- 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-A3OLWT3R.js → notifications-KAZF7SNO.js} +4 -4
- package/dist/{orchestration-events-CLOS2654.js → orchestration-events-PCGTHJ67.js} +1 -1
- package/dist/{orchestrator-H7PCVWFN.js → orchestrator-GHAI42OK.js} +5 -5
- package/dist/{pipeline-router-EXS46KX2.js → pipeline-router-4JKKNJI2.js} +1 -1
- package/dist/{project-boot-2NFMLUZ3.js → project-boot-QYOQXRZ2.js} +54 -19
- package/dist/{reranker-7IPGFTAV.js → reranker-EHMLOVRA.js} +1 -1
- package/dist/{review-polling-CFLEDNJ6.js → review-polling-YEA52GYB.js} +5 -5
- package/dist/runtime/index.js +6 -6
- package/dist/{session-events-DLHFZHDF.js → session-events-HMGXVXSQ.js} +5 -5
- package/dist/{session-scope-EHSZJLAT.js → session-scope-WKK56DKR.js} +4 -4
- package/dist/{task-enforcement-YXMYVVLM.js → task-enforcement-CIFQHHKV.js} +4 -4
- package/dist/{task-scope-7TDJLRUR.js → task-scope-EX7IDCJU.js} +4 -4
- package/dist/{tasks-crud-CHPEFXSN.js → tasks-crud-IEKYIELP.js} +4 -4
- package/dist/{tasks-review-OID7RS2I.js → tasks-review-2Y35RIEG.js} +4 -4
- package/dist/{telemetry-upload-ZBGLL62D.js → telemetry-upload-QTBI5CFE.js} +1 -1
- package/dist/tui/App.js +10 -10
- package/dist/{tui-data-MVYA3OR6.js → tui-data-ZTHWN4TU.js} +4 -4
- package/dist/{worker-gate-42USIUF6.js → worker-gate-PJMTVOTJ.js} +1 -1
- package/dist/{workflow-engine-6UBYDBVR.js → workflow-engine-4G2GSWJZ.js} +2 -2
- package/dist/{worktree-Q6Y5IHSI.js → worktree-W6OAHIBE.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-ZEYDN4ER.js → chunk-KTIV2FSO.js} +0 -0
- /package/dist/{chunk-HBJZ5QZI.js → chunk-KTZSPK6P.js} +0 -0
- /package/dist/{chunk-C2D37S73.js → chunk-NUYXOC4J.js} +0 -0
- /package/dist/{chunk-TFYTFEPR.js → chunk-QRW3HU7V.js} +0 -0
- /package/dist/{chunk-EMOIEQ4A.js → chunk-WI7DZU5G.js} +0 -0
- /package/dist/{core-memory-2BTZ2RKT.js → core-memory-VWEANH4H.js} +0 -0
- /package/dist/{exe-key-VRUDYTN5.js → exe-key-PZBD646Y.js} +0 -0
- /package/dist/{skill-refinement-ALEPGNC6.js → skill-refinement-OJVGVSNP.js} +0 -0
|
@@ -859,7 +859,7 @@ function formatReport(report, flags) {
|
|
|
859
859
|
return lines.join("\n");
|
|
860
860
|
}
|
|
861
861
|
async function fixNullVectors() {
|
|
862
|
-
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-
|
|
862
|
+
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-PJMTVOTJ.js");
|
|
863
863
|
if (!tryAcquireWorkerSlot()) {
|
|
864
864
|
process.stderr.write("[exe-doctor] Worker gate full \u2014 waiting for existing backfill workers to finish\n");
|
|
865
865
|
await new Promise((r) => setTimeout(r, 5e3));
|
|
@@ -982,7 +982,7 @@ function splitAtSentences(text, maxChunkSize) {
|
|
|
982
982
|
}
|
|
983
983
|
async function main(argv = process.argv.slice(2)) {
|
|
984
984
|
const flags = parseFlags(argv);
|
|
985
|
-
const { fastDbInit } = await import("./fast-db-init-
|
|
985
|
+
const { fastDbInit } = await import("./fast-db-init-L66PVC3N.js");
|
|
986
986
|
const client = await fastDbInit();
|
|
987
987
|
const report = await runAudit(client, flags);
|
|
988
988
|
console.log(formatReport(report, flags));
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveExeSession,
|
|
5
5
|
sendIntercom,
|
|
6
6
|
strictSessionScopeFilter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JQUFMZHI.js";
|
|
8
8
|
import {
|
|
9
9
|
parseMessage,
|
|
10
10
|
serializeMessage
|
|
11
11
|
} from "./chunk-4JERP7NT.js";
|
|
12
12
|
import {
|
|
13
13
|
recordOrchestrationEventBestEffort
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MJMJMHFC.js";
|
|
15
15
|
import {
|
|
16
16
|
getClient
|
|
17
17
|
} from "./chunk-VTLUUTWI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureWorktree
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XORJOW4J.js";
|
|
4
4
|
import {
|
|
5
5
|
queueIntercom
|
|
6
6
|
} from "./chunk-QI4IXJN7.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-4JERP7NT.js";
|
|
11
11
|
import {
|
|
12
12
|
registerSession
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2UD2P2LO.js";
|
|
14
14
|
import {
|
|
15
15
|
getTransport
|
|
16
16
|
} from "./chunk-MVW62NIZ.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CX6GL3ZJ.js";
|
|
20
20
|
import {
|
|
21
21
|
recordOrchestrationEventBestEffort
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MJMJMHFC.js";
|
|
23
23
|
import {
|
|
24
24
|
getAgentRuntime,
|
|
25
25
|
normalizeCcModelName
|
|
@@ -459,6 +459,30 @@ async function resolveTask(client, identifier, scopeSession) {
|
|
|
459
459
|
}
|
|
460
460
|
throw new Error(`Task not found: ${identifier}`);
|
|
461
461
|
}
|
|
462
|
+
function renderTaskMarkdown(f) {
|
|
463
|
+
return `# ${f.title}
|
|
464
|
+
|
|
465
|
+
## MANDATORY: When done
|
|
466
|
+
|
|
467
|
+
You MUST call update_task with status "done" and a result summary when finished.
|
|
468
|
+
If you skip this, your reviewer will not know you're done and your work won't be reviewed.
|
|
469
|
+
Do NOT let a failed commit or any error prevent you from calling update_task(done).
|
|
470
|
+
|
|
471
|
+
**ID:** ${f.id}
|
|
472
|
+
**Status:** ${f.status}
|
|
473
|
+
**Priority:** ${f.priority}
|
|
474
|
+
**Assigned by:** ${f.assignedBy}
|
|
475
|
+
**Assigned to:** ${f.assignedTo}
|
|
476
|
+
**Project:** ${f.projectName}
|
|
477
|
+
**Created:** ${f.created}${f.parentTaskId ? `
|
|
478
|
+
**Parent task:** ${f.parentTaskId}` : ""}
|
|
479
|
+
**Reviewer:** ${f.reviewer}
|
|
480
|
+
|
|
481
|
+
## Context
|
|
482
|
+
|
|
483
|
+
${f.context}
|
|
484
|
+
`;
|
|
485
|
+
}
|
|
462
486
|
async function createTaskCore(input) {
|
|
463
487
|
const client = getClient();
|
|
464
488
|
const id = crypto.randomUUID();
|
|
@@ -503,7 +527,7 @@ async function createTaskCore(input) {
|
|
|
503
527
|
if (isCoordinatorSession) {
|
|
504
528
|
earlySessionScope = resolved;
|
|
505
529
|
} else {
|
|
506
|
-
const { getSessionProject } = await import("./session-scope-
|
|
530
|
+
const { getSessionProject } = await import("./session-scope-WKK56DKR.js");
|
|
507
531
|
const sessionProject = getSessionProject(resolved);
|
|
508
532
|
if (sessionProject && sessionProject !== input.projectName) {
|
|
509
533
|
scopeMismatchWarning = `session/project mismatch: session "${resolved}" owns "${sessionProject}" but task targets "${input.projectName}". Routed to default scope.`;
|
|
@@ -659,28 +683,19 @@ ${scopeMismatchWarning}` : scopeMismatchWarning;
|
|
|
659
683
|
const mdDir = path2.dirname(mdPath);
|
|
660
684
|
if (!existsSync2(mdDir)) await mkdir(mdDir, { recursive: true });
|
|
661
685
|
const reviewer = input.reviewer ?? input.assignedBy;
|
|
662
|
-
const mdContent =
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
**Project:** ${input.projectName}
|
|
676
|
-
**Created:** ${now.split("T")[0]}${parentTaskId ? `
|
|
677
|
-
**Parent task:** ${parentTaskId}` : ""}
|
|
678
|
-
**Reviewer:** ${reviewer}
|
|
679
|
-
|
|
680
|
-
## Context
|
|
681
|
-
|
|
682
|
-
${input.context}
|
|
683
|
-
`;
|
|
686
|
+
const mdContent = renderTaskMarkdown({
|
|
687
|
+
id,
|
|
688
|
+
title: input.title,
|
|
689
|
+
status: initialStatus,
|
|
690
|
+
priority: input.priority,
|
|
691
|
+
assignedBy: input.assignedBy,
|
|
692
|
+
assignedTo: input.assignedTo,
|
|
693
|
+
projectName: input.projectName,
|
|
694
|
+
created: now.split("T")[0],
|
|
695
|
+
reviewer,
|
|
696
|
+
context: input.context,
|
|
697
|
+
parentTaskId
|
|
698
|
+
});
|
|
684
699
|
await writeFile(mdPath, mdContent, "utf-8");
|
|
685
700
|
} catch (err) {
|
|
686
701
|
process.stderr.write(
|
|
@@ -970,7 +985,7 @@ async function updateTaskStatus(input) {
|
|
|
970
985
|
} catch {
|
|
971
986
|
}
|
|
972
987
|
try {
|
|
973
|
-
const { writeNotification: writeNotification2 } = await import("./notifications-
|
|
988
|
+
const { writeNotification: writeNotification2 } = await import("./notifications-KAZF7SNO.js");
|
|
974
989
|
await writeNotification2({
|
|
975
990
|
agentId: reviewer,
|
|
976
991
|
agentRole: isCoordinatorName(reviewer) ? "COO" : "manager",
|
|
@@ -1479,7 +1494,7 @@ ${input.result ?? ""}`;
|
|
|
1479
1494
|
}
|
|
1480
1495
|
if (input.status === "done" || input.status === "needs_review") {
|
|
1481
1496
|
try {
|
|
1482
|
-
const { incrementSkillSuccess } = await import("./skill-refinement-
|
|
1497
|
+
const { incrementSkillSuccess } = await import("./skill-refinement-OJVGVSNP.js");
|
|
1483
1498
|
await incrementSkillSuccess(
|
|
1484
1499
|
String(row.assigned_to),
|
|
1485
1500
|
row.project_name ? String(row.project_name) : null
|
|
@@ -1929,7 +1944,8 @@ async function checkTaskFileConsistency() {
|
|
|
1929
1944
|
let mismatches = 0;
|
|
1930
1945
|
try {
|
|
1931
1946
|
const result = await client.execute({
|
|
1932
|
-
sql: `SELECT id, title, task_file, status, assigned_to,
|
|
1947
|
+
sql: `SELECT id, title, task_file, status, priority, assigned_to, assigned_by,
|
|
1948
|
+
reviewer, context, parent_task_id, created_at, session_scope, project_name
|
|
1933
1949
|
FROM tasks
|
|
1934
1950
|
WHERE status IN ('open', 'in_progress', 'needs_review', 'blocked')
|
|
1935
1951
|
AND task_file IS NOT NULL AND task_file != ''`,
|
|
@@ -1939,7 +1955,40 @@ async function checkTaskFileConsistency() {
|
|
|
1939
1955
|
const taskFile = String(row.task_file ?? "");
|
|
1940
1956
|
if (!taskFile) continue;
|
|
1941
1957
|
const fullPath = taskFile.startsWith("/") ? taskFile : path2.join(os2.homedir(), ".exe-os", taskFile);
|
|
1942
|
-
if (
|
|
1958
|
+
if (existsSync2(fullPath)) continue;
|
|
1959
|
+
let repaired = false;
|
|
1960
|
+
try {
|
|
1961
|
+
const dir = path2.dirname(fullPath);
|
|
1962
|
+
if (!existsSync2(dir)) await mkdir(dir, { recursive: true });
|
|
1963
|
+
const mdContent = renderTaskMarkdown({
|
|
1964
|
+
id: String(row.id),
|
|
1965
|
+
title: String(row.title ?? ""),
|
|
1966
|
+
status: String(row.status ?? ""),
|
|
1967
|
+
priority: String(row.priority ?? ""),
|
|
1968
|
+
assignedBy: String(row.assigned_by ?? ""),
|
|
1969
|
+
assignedTo: String(row.assigned_to ?? ""),
|
|
1970
|
+
projectName: String(row.project_name ?? ""),
|
|
1971
|
+
created: String(row.created_at ?? "").split("T")[0] || "",
|
|
1972
|
+
reviewer: row.reviewer ? String(row.reviewer) : row.assigned_by ? String(row.assigned_by) : "",
|
|
1973
|
+
context: String(row.context ?? ""),
|
|
1974
|
+
parentTaskId: row.parent_task_id ? String(row.parent_task_id) : null
|
|
1975
|
+
});
|
|
1976
|
+
await writeFile(fullPath, mdContent, "utf-8");
|
|
1977
|
+
repaired = true;
|
|
1978
|
+
} catch {
|
|
1979
|
+
}
|
|
1980
|
+
if (repaired) {
|
|
1981
|
+
recordOrchestrationEventBestEffort({
|
|
1982
|
+
eventType: "consistency.repaired",
|
|
1983
|
+
source: "tasks-crud.checkTaskFileConsistency",
|
|
1984
|
+
severity: "info",
|
|
1985
|
+
taskId: String(row.id),
|
|
1986
|
+
agentId: row.assigned_to ? String(row.assigned_to) : null,
|
|
1987
|
+
sessionScope: row.session_scope ? String(row.session_scope) : null,
|
|
1988
|
+
projectName: row.project_name ? String(row.project_name) : null,
|
|
1989
|
+
payload: { taskFile, status: String(row.status), type: "db_row_missing_file_regenerated" }
|
|
1990
|
+
});
|
|
1991
|
+
} else {
|
|
1943
1992
|
mismatches++;
|
|
1944
1993
|
recordOrchestrationEventBestEffort({
|
|
1945
1994
|
eventType: "consistency.mismatch",
|
|
@@ -2913,7 +2962,7 @@ async function verifyPaneAtCapacity(sessionName) {
|
|
|
2913
2962
|
reason: `capture-pane failed: ${err instanceof Error ? err.message : String(err)}`
|
|
2914
2963
|
};
|
|
2915
2964
|
}
|
|
2916
|
-
const { isAtCapacity } = await import("./capacity-monitor-
|
|
2965
|
+
const { isAtCapacity } = await import("./capacity-monitor-S5VVRWNX.js");
|
|
2917
2966
|
if (!isAtCapacity(pane)) {
|
|
2918
2967
|
return {
|
|
2919
2968
|
atCapacity: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MultiAgentOrchestrator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EYMTIOBH.js";
|
|
4
4
|
import {
|
|
5
5
|
createQuietRenderer,
|
|
6
6
|
createTerminalRenderer,
|
|
@@ -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-EX7IDCJU.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-EX7IDCJU.js");
|
|
423
423
|
const client = getClient();
|
|
424
424
|
const cpScope = cpScopeFilter();
|
|
425
425
|
const tasks = await client.execute({
|
|
@@ -43,6 +43,7 @@ var ORCHESTRATION_COUNTER_KEYS = [
|
|
|
43
43
|
"tmuxSpawnAttempted",
|
|
44
44
|
"tmuxSpawnCompleted",
|
|
45
45
|
"consistencyMismatches",
|
|
46
|
+
"consistencyRepaired",
|
|
46
47
|
"fileRowsResynced",
|
|
47
48
|
"fileOrphansCleaned",
|
|
48
49
|
"worktreeCreated",
|
|
@@ -251,6 +252,7 @@ async function getOrchestrationMetrics(input = {}) {
|
|
|
251
252
|
tmuxSpawnAttempted: 0,
|
|
252
253
|
tmuxSpawnCompleted: 0,
|
|
253
254
|
consistencyMismatches: 0,
|
|
255
|
+
consistencyRepaired: 0,
|
|
254
256
|
fileRowsResynced: 0,
|
|
255
257
|
fileOrphansCleaned: 0,
|
|
256
258
|
worktreeCreated: 0,
|
|
@@ -311,6 +313,7 @@ async function getOrchestrationMetrics(input = {}) {
|
|
|
311
313
|
if (type === "tmux.spawn.attempted") counts.tmuxSpawnAttempted++;
|
|
312
314
|
if (type === "tmux.spawn.completed") counts.tmuxSpawnCompleted++;
|
|
313
315
|
if (type === "consistency.mismatch") counts.consistencyMismatches++;
|
|
316
|
+
if (type === "consistency.repaired") counts.consistencyRepaired++;
|
|
314
317
|
if (type === "task_file.resynced") counts.fileRowsResynced++;
|
|
315
318
|
if (type === "task_file.orphan_cleaned") counts.fileOrphansCleaned++;
|
|
316
319
|
if (type === "worktree.created") counts.worktreeCreated++;
|
|
@@ -65,7 +65,7 @@ function recordShardFailure(project, error) {
|
|
|
65
65
|
`[store] Shard circuit OPEN for "${project}" after ${state.failures} consecutive failures. Will retry in ${SHARD_CB_COOLDOWN_MS / 6e4}min. Last error: ${error}
|
|
66
66
|
`
|
|
67
67
|
);
|
|
68
|
-
void import("./orchestration-events-
|
|
68
|
+
void import("./orchestration-events-PCGTHJ67.js").then(({ recordOrchestrationEventBestEffort }) => {
|
|
69
69
|
recordOrchestrationEventBestEffort({
|
|
70
70
|
eventType: "shard.circuit_open",
|
|
71
71
|
source: "store.recordShardFailure",
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
sessionScopeFilter,
|
|
12
12
|
updateTaskStatus,
|
|
13
13
|
writeNotification
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JQUFMZHI.js";
|
|
15
15
|
import {
|
|
16
16
|
getTransport
|
|
17
17
|
} from "./chunk-MVW62NIZ.js";
|
|
18
18
|
import {
|
|
19
19
|
recordOrchestrationEventBestEffort
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MJMJMHFC.js";
|
|
21
21
|
import {
|
|
22
22
|
getAgentRuntime
|
|
23
23
|
} from "./chunk-6OJJF4WP.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-WKK56DKR.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-KAZF7SNO.js");
|
|
504
504
|
await writeNotification2({
|
|
505
505
|
agentId: String(row.assigned_to),
|
|
506
506
|
agentRole: String(row.assigned_to),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ingest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NUYXOC4J.js";
|
|
4
4
|
import {
|
|
5
5
|
listWorkflowDefinitions,
|
|
6
6
|
runWorkflow,
|
|
7
7
|
startWorkflow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CFHTPEIC.js";
|
|
9
9
|
import {
|
|
10
10
|
initCRMBridge
|
|
11
11
|
} from "./chunk-ONKIWA3R.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
createCRMWebhookHandler,
|
|
21
21
|
parseTwentyWebhook
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-G2Q2QELX.js";
|
|
23
23
|
import {
|
|
24
24
|
OllamaProvider
|
|
25
25
|
} from "./chunk-FWFFZGSC.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
retryWithBackoff,
|
|
50
50
|
routeMessage,
|
|
51
51
|
validateGatewayConfig
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-T7NGFQNB.js";
|
|
53
53
|
import {
|
|
54
54
|
getAccountByName,
|
|
55
55
|
getAccountByPhoneNumberId,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionScopeFilter
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JQUFMZHI.js";
|
|
4
|
+
import "./chunk-XORJOW4J.js";
|
|
5
5
|
import "./chunk-QI4IXJN7.js";
|
|
6
6
|
import "./chunk-4JERP7NT.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-2UD2P2LO.js";
|
|
8
8
|
import "./chunk-MVW62NIZ.js";
|
|
9
9
|
import "./chunk-OYNKIAVW.js";
|
|
10
10
|
import "./chunk-CX6GL3ZJ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-MJMJMHFC.js";
|
|
12
12
|
import "./chunk-6OJJF4WP.js";
|
|
13
13
|
import "./chunk-NGP6LSV2.js";
|
|
14
14
|
import "./chunk-VXVI75ED.js";
|
|
@@ -50,18 +50,18 @@ import {
|
|
|
50
50
|
shouldKillIdleSession,
|
|
51
51
|
shouldKillSession,
|
|
52
52
|
shouldNudgeEmployee
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2V3TDLQ2.js";
|
|
54
54
|
import "./chunk-5NIUTWV4.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-RP7BANLZ.js";
|
|
56
|
+
import "./chunk-JQUFMZHI.js";
|
|
57
|
+
import "./chunk-XORJOW4J.js";
|
|
58
58
|
import "./chunk-QI4IXJN7.js";
|
|
59
59
|
import "./chunk-4JERP7NT.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-2UD2P2LO.js";
|
|
61
61
|
import "./chunk-MVW62NIZ.js";
|
|
62
62
|
import "./chunk-OYNKIAVW.js";
|
|
63
63
|
import "./chunk-CX6GL3ZJ.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-MJMJMHFC.js";
|
|
65
65
|
import "./chunk-6OJJF4WP.js";
|
|
66
66
|
import "./chunk-NGP6LSV2.js";
|
|
67
67
|
import "./chunk-VXVI75ED.js";
|
package/dist/gateway/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createSignupBot,
|
|
12
12
|
ensureCRMContact,
|
|
13
13
|
formatAlert
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-TN4H5D45.js";
|
|
15
15
|
import {
|
|
16
16
|
WhatsAppAdapter
|
|
17
17
|
} from "../chunk-ECSNSHZ7.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
createCRMWebhookHandler,
|
|
35
35
|
parseTwentyWebhook
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-G2Q2QELX.js";
|
|
37
37
|
import {
|
|
38
38
|
OllamaProvider
|
|
39
39
|
} from "../chunk-FWFFZGSC.js";
|
|
@@ -63,16 +63,16 @@ import {
|
|
|
63
63
|
retryWithBackoff,
|
|
64
64
|
routeMessage,
|
|
65
65
|
validateGatewayConfig
|
|
66
|
-
} from "../chunk-
|
|
67
|
-
import "../chunk-
|
|
68
|
-
import "../chunk-
|
|
66
|
+
} from "../chunk-T7NGFQNB.js";
|
|
67
|
+
import "../chunk-NUYXOC4J.js";
|
|
68
|
+
import "../chunk-CFHTPEIC.js";
|
|
69
69
|
import {
|
|
70
70
|
getAccountByName,
|
|
71
71
|
getAccountByPhoneNumberId,
|
|
72
72
|
getDefaultAccount,
|
|
73
73
|
loadAccounts
|
|
74
74
|
} from "../chunk-YGAAZN3E.js";
|
|
75
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-QRW3HU7V.js";
|
|
76
76
|
import {
|
|
77
77
|
createPerson,
|
|
78
78
|
findPersonByContact,
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
getRecentCommits,
|
|
5
5
|
matchScore,
|
|
6
6
|
sweepTasks
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5XAAMTTY.js";
|
|
8
|
+
import "./chunk-JQUFMZHI.js";
|
|
9
|
+
import "./chunk-XORJOW4J.js";
|
|
10
10
|
import "./chunk-QI4IXJN7.js";
|
|
11
11
|
import "./chunk-4JERP7NT.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-2UD2P2LO.js";
|
|
13
13
|
import "./chunk-MVW62NIZ.js";
|
|
14
14
|
import "./chunk-OYNKIAVW.js";
|
|
15
15
|
import "./chunk-CX6GL3ZJ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-MJMJMHFC.js";
|
|
17
17
|
import "./chunk-6OJJF4WP.js";
|
|
18
18
|
import "./chunk-NGP6LSV2.js";
|
|
19
19
|
import "./chunk-VXVI75ED.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTask
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RP7BANLZ.js";
|
|
4
4
|
import {
|
|
5
5
|
fastDbInit
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-WI7DZU5G.js";
|
|
7
|
+
import "../chunk-JQUFMZHI.js";
|
|
8
|
+
import "../chunk-XORJOW4J.js";
|
|
9
9
|
import "../chunk-QI4IXJN7.js";
|
|
10
10
|
import "../chunk-4JERP7NT.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-2UD2P2LO.js";
|
|
12
12
|
import "../chunk-MVW62NIZ.js";
|
|
13
13
|
import "../chunk-OYNKIAVW.js";
|
|
14
14
|
import "../chunk-CX6GL3ZJ.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-MJMJMHFC.js";
|
|
16
16
|
import "../chunk-6OJJF4WP.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
18
|
import "../chunk-VXVI75ED.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateTask
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RP7BANLZ.js";
|
|
4
4
|
import {
|
|
5
5
|
fastDbInit
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-WI7DZU5G.js";
|
|
7
7
|
import {
|
|
8
8
|
listTasks
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-JQUFMZHI.js";
|
|
10
|
+
import "../chunk-XORJOW4J.js";
|
|
11
11
|
import "../chunk-QI4IXJN7.js";
|
|
12
12
|
import "../chunk-4JERP7NT.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-2UD2P2LO.js";
|
|
14
14
|
import "../chunk-MVW62NIZ.js";
|
|
15
15
|
import "../chunk-OYNKIAVW.js";
|
|
16
16
|
import "../chunk-CX6GL3ZJ.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-MJMJMHFC.js";
|
|
18
18
|
import "../chunk-6OJJF4WP.js";
|
|
19
19
|
import "../chunk-NGP6LSV2.js";
|
|
20
20
|
import "../chunk-VXVI75ED.js";
|