@askexenow/exe-os 0.9.271 → 0.9.272
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/active-agent-BDYXURXQ.js +26 -0
- package/dist/active-agent-YWBGAKGU.js +25 -0
- package/dist/agentic-ontology-56VHSVS3.js +25 -0
- package/dist/backfill-metadata-G46ABBVR.js +597 -0
- package/dist/backfill-metadata-VAV27KJK.js +597 -0
- package/dist/behaviors-USUTDXVA.js +25 -0
- package/dist/bin/agentic-ontology-backfill.js +5 -5
- package/dist/bin/agentic-reflection-backfill.js +6 -6
- package/dist/bin/agentic-semantic-label.js +5 -5
- package/dist/bin/backfill-conversations.js +4 -4
- package/dist/bin/backfill-responses.js +4 -4
- package/dist/bin/backfill-vectors.js +5 -5
- package/dist/bin/bulk-sync-postgres.js +6 -6
- package/dist/bin/cc-doctor.js +4 -4
- package/dist/bin/cleanup-stale-review-tasks.js +10 -10
- package/dist/bin/cli.js +16 -16
- package/dist/bin/exe-agent-config.js +3 -3
- package/dist/bin/exe-agent.js +4 -4
- package/dist/bin/exe-assign.js +5 -5
- package/dist/bin/exe-boot.js +17 -17
- package/dist/bin/exe-call.js +4 -4
- package/dist/bin/exe-cloud.js +4 -4
- package/dist/bin/exe-dispatch.js +10 -10
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +7 -7
- package/dist/bin/exe-forget.js +6 -6
- package/dist/bin/exe-gateway.js +7 -7
- package/dist/bin/exe-healthcheck.js +4 -4
- package/dist/bin/exe-heartbeat.js +10 -10
- package/dist/bin/exe-kill.js +13 -13
- package/dist/bin/exe-launch-agent.js +37 -19
- package/dist/bin/exe-new-employee.js +6 -6
- package/dist/bin/exe-pending-messages.js +11 -11
- package/dist/bin/exe-pending-notifications.js +10 -10
- package/dist/bin/exe-pending-reviews.js +10 -10
- package/dist/bin/exe-rename.js +4 -4
- package/dist/bin/exe-review.js +12 -12
- package/dist/bin/exe-search.js +5 -5
- package/dist/bin/exe-session-cleanup.js +15 -15
- package/dist/bin/exe-settings.js +5 -5
- package/dist/bin/exe-start-codex.js +11 -11
- package/dist/bin/exe-start-opencode.js +8 -8
- package/dist/bin/exe-status.js +11 -11
- package/dist/bin/exe-team.js +3 -3
- package/dist/bin/git-sweep.js +11 -11
- package/dist/bin/graph-backfill.js +4 -4
- package/dist/bin/graph-export.js +5 -5
- package/dist/bin/import-history.js +7 -7
- package/dist/bin/install.js +6 -6
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +4 -4
- package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
- package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
- package/dist/bin/scan-tasks.js +10 -10
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +4 -4
- package/dist/capacity-monitor-IFVRCIM7.js +49 -0
- package/dist/capacity-monitor-Q47GBDSY.js +49 -0
- package/dist/catchup-brief-RP4QHXNT.js +151 -0
- package/dist/catchup-brief-TKA6TEK4.js +151 -0
- package/dist/chunk-23KJ2LXY.js +58 -0
- package/dist/chunk-2NQQP3FF.js +630 -0
- package/dist/chunk-3FU5I3KV.js +526 -0
- package/dist/chunk-46IEEKPU.js +13696 -0
- package/dist/chunk-57UAFTO2.js +3958 -0
- package/dist/chunk-5AS622MM.js +3958 -0
- package/dist/chunk-62DEE65H.js +371 -0
- package/dist/chunk-64T6DFSS.js +447 -0
- package/dist/chunk-6BWDP63Z.js +197 -0
- package/dist/chunk-6GPYL7TX.js +214 -0
- package/dist/chunk-6KWLUVFL.js +54 -0
- package/dist/chunk-6N5ISWBF.js +1148 -0
- package/dist/chunk-6OD7PVMC.js +333 -0
- package/dist/chunk-7ET5CYTD.js +382 -0
- package/dist/chunk-7IWLKR6N.js +76 -0
- package/dist/chunk-7OEUOJL5.js +1021 -0
- package/dist/chunk-AIRJTKDK.js +204 -0
- package/dist/chunk-ATJ3NXDP.js +244 -0
- package/dist/chunk-B5IS7LE4.js +128 -0
- package/dist/chunk-BKINEQVI.js +244 -0
- package/dist/chunk-BOJV6NI3.js +128 -0
- package/dist/chunk-BPHWI6N2.js +284 -0
- package/dist/chunk-BXCQWWJP.js +185 -0
- package/dist/chunk-BZ6K7AY3.js +50 -0
- package/dist/chunk-C54KIFLS.js +214 -0
- package/dist/chunk-C6OYEJJI.js +260 -0
- package/dist/chunk-CHBHR5W6.js +3556 -0
- package/dist/chunk-D2T3272U.js +171 -0
- package/dist/chunk-DCHEIVGT.js +221 -0
- package/dist/chunk-DHIBLMSP.js +30 -0
- package/dist/chunk-E2AF2WYY.js +346 -0
- package/dist/chunk-E2KZEZZW.js +1090 -0
- package/dist/chunk-E4KWB4WM.js +348 -0
- package/dist/chunk-ENU7URWK.js +1073 -0
- package/dist/chunk-EZ7KAZMC.js +132 -0
- package/dist/chunk-F4FSSHR4.js +1073 -0
- package/dist/chunk-FPXU56FG.js +346 -0
- package/dist/chunk-FY7HHR5I.js +128 -0
- package/dist/chunk-G2S2UMU4.js +159 -0
- package/dist/chunk-G33BHQCO.js +70 -0
- package/dist/chunk-GJQTL7RX.js +127 -0
- package/dist/chunk-GLCKDEM2.js +97 -0
- package/dist/chunk-GMA34SXV.js +240 -0
- package/dist/chunk-GVAVEBYR.js +2091 -0
- package/dist/chunk-HOSJTLBQ.js +513 -0
- package/dist/chunk-IC6HVAS3.js +56 -0
- package/dist/chunk-IDFJNO44.js +1051 -0
- package/dist/chunk-ILFJMEY5.js +97 -0
- package/dist/chunk-ISQAOSL3.js +1921 -0
- package/dist/chunk-J6V2DCZK.js +382 -0
- package/dist/chunk-JP4CLFLR.js +1148 -0
- package/dist/chunk-JTIOZHWG.js +58 -0
- package/dist/chunk-KDICWAYV.js +1345 -0
- package/dist/chunk-KOBIB6WG.js +159 -0
- package/dist/chunk-KQFDDQB6.js +13696 -0
- package/dist/chunk-KZNSOHCB.js +280 -0
- package/dist/chunk-LVMBYP3C.js +171 -0
- package/dist/chunk-M2WQW5NC.js +227 -0
- package/dist/chunk-MY6SP5NZ.js +551 -0
- package/dist/chunk-N2ACW2ZG.js +363 -0
- package/dist/chunk-NSMJDATI.js +495 -0
- package/dist/chunk-NSQ5JE23.js +1090 -0
- package/dist/chunk-NZL567WG.js +81 -0
- package/dist/chunk-O5OMH6LI.js +244 -0
- package/dist/chunk-OBUV3W7L.js +163 -0
- package/dist/chunk-OLDS7LJN.js +495 -0
- package/dist/chunk-OO2I22RX.js +38 -0
- package/dist/chunk-OPUUT33V.js +447 -0
- package/dist/chunk-OT3VMTKB.js +50 -0
- package/dist/chunk-P6RVIOVA.js +157 -0
- package/dist/chunk-PUA5564C.js +210 -0
- package/dist/chunk-PUQLKLQX.js +731 -0
- package/dist/chunk-QROKS65G.js +76 -0
- package/dist/chunk-R54I2N2T.js +818 -0
- package/dist/chunk-RCFYQHUP.js +818 -0
- package/dist/chunk-RJTND4YS.js +284 -0
- package/dist/chunk-SBLHQMMZ.js +81 -0
- package/dist/chunk-SG2ANG5C.js +123 -0
- package/dist/chunk-SVFNKSZV.js +333 -0
- package/dist/chunk-TAQT2DC7.js +330 -0
- package/dist/chunk-TB7HFW7M.js +127 -0
- package/dist/chunk-UUKDAIH2.js +731 -0
- package/dist/chunk-V6VEFEEH.js +1345 -0
- package/dist/chunk-VIO2ALGH.js +290 -0
- package/dist/chunk-VKCUSNJW.js +377 -0
- package/dist/chunk-VRPPJFIQ.js +1921 -0
- package/dist/chunk-WP3PVBBP.js +204 -0
- package/dist/chunk-WQEUY7DC.js +129 -0
- package/dist/chunk-WXMXUKCA.js +262 -0
- package/dist/chunk-X2WBH2IO.js +297 -0
- package/dist/chunk-X33TSJNO.js +394 -0
- package/dist/chunk-X7MMI2UI.js +89 -0
- package/dist/chunk-XG3BQZIK.js +85 -0
- package/dist/chunk-XIKBIAOS.js +75 -0
- package/dist/chunk-XPEB545Q.js +54 -0
- package/dist/chunk-XWH2MLWS.js +330 -0
- package/dist/chunk-YH7V73XW.js +89 -0
- package/dist/chunk-YMLM5D65.js +135 -0
- package/dist/chunk-YNJPRQ6J.js +377 -0
- package/dist/chunk-YSNEHBI6.js +551 -0
- package/dist/chunk-ZD6BMW2K.js +33 -0
- package/dist/chunk-ZKG5IYCG.js +668 -0
- package/dist/chunk-ZU4K7ZNX.js +197 -0
- package/dist/co-activation-HZMJC34P.js +72 -0
- package/dist/co-occurrence-AVYXRV4L.js +74 -0
- package/dist/core-memory-NPJCVUMF.js +110 -0
- package/dist/core-memory-OKGXL33Z.js +110 -0
- package/dist/crdt-sync-ZCH55JNR.js +33 -0
- package/dist/crm-webhook-6OMVUUGR.js +10 -0
- package/dist/crm-webhook-UCWF3XDB.js +10 -0
- package/dist/cto-delegation-gate-JFZFZGC2.js +206 -0
- package/dist/cto-delegation-gate-K32M4GVM.js +206 -0
- package/dist/daemon-orchestration-2Q7BYOHC.js +135 -0
- package/dist/daemon-orchestration-4RJ2CZJL.js +135 -0
- package/dist/db-backup-5GA2YFDX.js +33 -0
- package/dist/dreaming-I6KXO6E2.js +32 -0
- package/dist/dreaming-NJBK5ILR.js +32 -0
- package/dist/exe-drift-VSMIMHL4.js +68 -0
- package/dist/exe-export-DVHHIA6Y.js +73 -0
- package/dist/exe-export-GIVQDENS.js +73 -0
- package/dist/exe-import-7N46LSMQ.js +76 -0
- package/dist/exe-import-FINYUV5T.js +76 -0
- package/dist/exe-key-H45JY44F.js +579 -0
- package/dist/exe-key-MAEQGTB7.js +579 -0
- package/dist/exe-snapshot-3TEM3BFD.js +164 -0
- package/dist/exe-snapshot-HECGUHL3.js +164 -0
- package/dist/fast-db-init-3CNTADVO.js +7 -0
- package/dist/fast-db-init-HXCS2AP5.js +7 -0
- package/dist/gateway/index.js +8 -8
- package/dist/git-staleness-YCEBBIVK.js +110 -0
- package/dist/git-task-sweep-H34STRNT.js +40 -0
- package/dist/git-task-sweep-YL7NLDCK.js +40 -0
- package/dist/global-procedures-IHZM6C2K.js +20 -0
- package/dist/graph-auto-extract-RZQ3MHP2.js +162 -0
- package/dist/hooks/bug-report-worker.js +12 -12
- package/dist/hooks/codex-stop-task-finalizer.js +12 -12
- package/dist/hooks/commit-complete.js +12 -12
- package/dist/hooks/error-recall.js +6 -6
- package/dist/hooks/exe-heartbeat-hook.js +3 -3
- package/dist/hooks/ingest.js +6 -6
- package/dist/hooks/instructions-loaded.js +4 -4
- package/dist/hooks/manifest.json +19 -19
- package/dist/hooks/notification.js +4 -4
- package/dist/hooks/post-compact.js +11 -11
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +12 -12
- package/dist/hooks/pre-tool-use.js +15 -15
- package/dist/hooks/prompt-submit.js +21 -21
- package/dist/hooks/session-end.js +16 -16
- package/dist/hooks/session-start.js +10 -10
- package/dist/hooks/stop.js +15 -15
- package/dist/hooks/subagent-stop.js +11 -11
- package/dist/hooks/summary-worker.js +15 -15
- package/dist/index.js +18 -18
- package/dist/installer-4EW5ZDGD.js +296 -0
- package/dist/installer-B2JTQO55.js +38 -0
- package/dist/installer-MIL352T7.js +342 -0
- package/dist/lib/agent-config.js +9 -3
- package/dist/lib/cloud-sync.js +4 -4
- package/dist/lib/consolidation.js +5 -5
- package/dist/lib/database.js +2 -2
- package/dist/lib/db.js +2 -2
- package/dist/lib/employee-templates.js +4 -4
- package/dist/lib/employees.js +2 -2
- package/dist/lib/exe-daemon.js +34 -34
- package/dist/lib/hybrid-search.js +5 -5
- package/dist/lib/identity.js +2 -2
- package/dist/lib/messaging.js +10 -10
- package/dist/lib/reminders.js +3 -3
- package/dist/lib/schedules.js +5 -5
- package/dist/lib/session-registry.js +4 -4
- package/dist/lib/skill-learning.js +4 -4
- package/dist/lib/store.js +4 -4
- package/dist/lib/task-router.js +3 -3
- package/dist/lib/tasks.js +11 -11
- package/dist/lib/tmux-routing.js +9 -9
- package/dist/lib/token-spend.js +3 -3
- package/dist/mcp/register-tools.js +54 -54
- package/dist/mcp/server.js +55 -55
- package/dist/mcp/tools/complete-reminder.js +4 -4
- package/dist/mcp/tools/create-reminder.js +4 -4
- package/dist/mcp/tools/create-task.js +13 -13
- package/dist/mcp/tools/deactivate-behavior.js +5 -5
- package/dist/mcp/tools/list-reminders.js +4 -4
- package/dist/mcp/tools/list-tasks.js +13 -13
- package/dist/mcp/tools/send-message.js +12 -12
- package/dist/mcp/tools/update-task.js +12 -12
- package/dist/mcp-http-config-OJQR246S.js +27 -0
- package/dist/memory-cards-IPULSQFA.js +174 -0
- package/dist/memory-graph-extractor-3TZZOKHY.js +17 -0
- package/dist/memory-poisoning-defense-SGUGR5YJ.js +225 -0
- package/dist/memory-reflection-H3WGCEM6.js +238 -0
- package/dist/notifications-VWPO6NJF.js +45 -0
- package/dist/notifications-WCSRQN2V.js +45 -0
- package/dist/orchestration-events-O5PSDEIO.js +25 -0
- package/dist/orchestrator-RAPEJUOI.js +33 -0
- package/dist/orchestrator-XPG6LJAI.js +33 -0
- package/dist/pipeline-router-5NT6FUC3.js +13 -0
- package/dist/pipeline-router-KSUXONDT.js +13 -0
- package/dist/plan-limits-53NXLNDQ.js +26 -0
- package/dist/project-boot-ITN3FZMM.js +299 -0
- package/dist/projection-worker-27XX5M2W.js +964 -0
- package/dist/reranker-GU7L2PJX.js +19 -0
- package/dist/reranker-TZEXIJAN.js +19 -0
- package/dist/review-polling-FA2J2Q5O.js +124 -0
- package/dist/review-polling-MLS4BQ3N.js +124 -0
- package/dist/runtime/index.js +12 -12
- package/dist/session-events-WWGF3B2N.js +36 -0
- package/dist/session-events-ZHXXAH6B.js +36 -0
- package/dist/session-kill-telemetry-O4TJHHOZ.js +29 -0
- package/dist/session-scope-CQXB7VMH.js +86 -0
- package/dist/session-scope-HHUMJYF6.js +86 -0
- package/dist/setup-wizard-UM2RHSBJ.js +12 -0
- package/dist/skill-refinement-MJPOHYD5.js +157 -0
- package/dist/skill-refinement-NVUBRK22.js +157 -0
- package/dist/stack-release-BAPCXMXW.js +713 -0
- package/dist/stack-release-W4TWTEZP.js +731 -0
- package/dist/steward-gate-VLE7OCKO.js +13 -0
- package/dist/task-enforcement-FUHDL6UR.js +391 -0
- package/dist/task-enforcement-QL3K4N3F.js +391 -0
- package/dist/task-scope-TZYMB634.js +35 -0
- package/dist/task-scope-ZVLUBS4C.js +35 -0
- package/dist/tasks-crud-4MSLJWXE.js +77 -0
- package/dist/tasks-crud-HIPXKRKX.js +77 -0
- package/dist/tasks-notify-7JBUNE7R.js +38 -0
- package/dist/tasks-notify-UPIJ3L4O.js +38 -0
- package/dist/tasks-review-5SJSFTUB.js +47 -0
- package/dist/tasks-review-JHSYBR5I.js +47 -0
- package/dist/telemetry-upload-BSGOXGUP.js +739 -0
- package/dist/telemetry-upload-LTX3C5HZ.js +739 -0
- package/dist/token-budget-2CDWQU3Q.js +84 -0
- package/dist/tool-telemetry-7YS7EN7B.js +17 -0
- package/dist/tui/App.js +17 -17
- package/dist/tui-data-GDGBOS6G.js +258 -0
- package/dist/tui-data-VXF2RBVM.js +258 -0
- package/dist/wiki-acl-MJIMXRQV.js +111 -0
- package/dist/worker-gate-WQGTZOSM.js +21 -0
- package/dist/worker-gate-X2YDTKTL.js +21 -0
- package/dist/workflow-engine-CYXRZXBM.js +28 -0
- package/dist/workflow-engine-KMLAXVA4.js +28 -0
- package/dist/worktree-NLSKVRNC.js +26 -0
- package/dist/worktree-sweep-44TMEPLE.js +19 -0
- package/package.json +1 -1
- package/release-notes.json +24 -19
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sendIntercom,
|
|
3
|
+
updateTaskStatus
|
|
4
|
+
} from "./chunk-57UAFTO2.js";
|
|
5
|
+
import "./chunk-SD6UFZRH.js";
|
|
6
|
+
import "./chunk-5CHYEKMH.js";
|
|
7
|
+
import "./chunk-4JERP7NT.js";
|
|
8
|
+
import "./chunk-GQ2XYRG3.js";
|
|
9
|
+
import "./chunk-MVW62NIZ.js";
|
|
10
|
+
import "./chunk-OYNKIAVW.js";
|
|
11
|
+
import "./chunk-CX6GL3ZJ.js";
|
|
12
|
+
import {
|
|
13
|
+
recordOrchestrationEventBestEffort
|
|
14
|
+
} from "./chunk-JP45GCVR.js";
|
|
15
|
+
import "./chunk-XJUUWHVN.js";
|
|
16
|
+
import "./chunk-NGP6LSV2.js";
|
|
17
|
+
import "./chunk-7SLLNRR3.js";
|
|
18
|
+
import "./chunk-CVYC6DUW.js";
|
|
19
|
+
import "./chunk-OPU3NYOO.js";
|
|
20
|
+
import "./chunk-GJV3WDWM.js";
|
|
21
|
+
import "./chunk-MP2AFCGL.js";
|
|
22
|
+
import "./chunk-TN45CTOI.js";
|
|
23
|
+
import "./chunk-HYZV25LY.js";
|
|
24
|
+
import "./chunk-UNCGZXPU.js";
|
|
25
|
+
import "./chunk-2I23RPSI.js";
|
|
26
|
+
import "./chunk-VGYL7CN2.js";
|
|
27
|
+
import "./chunk-FXU7JOXK.js";
|
|
28
|
+
import "./chunk-MOZ2YQ54.js";
|
|
29
|
+
import "./chunk-VXIMSRTO.js";
|
|
30
|
+
import "./chunk-LYH5HE24.js";
|
|
31
|
+
import "./chunk-MLKGABMK.js";
|
|
32
|
+
|
|
33
|
+
// src/lib/task-enforcement.ts
|
|
34
|
+
import { appendFile } from "fs/promises";
|
|
35
|
+
import path from "path";
|
|
36
|
+
var TASK_ENFORCEMENT_INTERVAL_MS = 6e4;
|
|
37
|
+
var TASK_ENFORCEMENT_DEBOUNCE_MS = 18e4;
|
|
38
|
+
var MANAGER_GRACE_PERIOD_MS = 6e5;
|
|
39
|
+
var IDLE_PATTERNS = [
|
|
40
|
+
"Standing by",
|
|
41
|
+
"All tasks complete",
|
|
42
|
+
"No tasks found",
|
|
43
|
+
"Anything else?",
|
|
44
|
+
"What do you need?"
|
|
45
|
+
];
|
|
46
|
+
var NUDGE_ECHO_PATTERNS = [
|
|
47
|
+
"You have pending notifications",
|
|
48
|
+
"You have open tasks. Run list_tasks",
|
|
49
|
+
"You have more open tasks to dispatch",
|
|
50
|
+
"Run list_tasks to check for assigned work",
|
|
51
|
+
"Run list_tasks to find them"
|
|
52
|
+
];
|
|
53
|
+
var MCP_ZOMBIE_PATTERNS = [
|
|
54
|
+
"session expired",
|
|
55
|
+
"MCP server disconnected",
|
|
56
|
+
"MCP server is not connected",
|
|
57
|
+
'MCP server "exe-os" is not connected',
|
|
58
|
+
"MCP connection lost",
|
|
59
|
+
"MCP error",
|
|
60
|
+
"MCP_UNHEALTHY"
|
|
61
|
+
];
|
|
62
|
+
var MANAGER_ROLES = ["COO", "CTO"];
|
|
63
|
+
var AUDIT_LOG_PATH = path.join(
|
|
64
|
+
process.env.HOME ?? process.env.USERPROFILE ?? "/tmp",
|
|
65
|
+
".exe-os",
|
|
66
|
+
"enforcement-audit.jsonl"
|
|
67
|
+
);
|
|
68
|
+
function writeAuditEntry(entry) {
|
|
69
|
+
const line = JSON.stringify(entry) + "\n";
|
|
70
|
+
appendFile(AUDIT_LOG_PATH, line).catch(() => {
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function decideManagerAction(counts, isIdle, withinGracePeriod, nudgeEcho) {
|
|
74
|
+
if (counts.openTasks === 0) return "skip";
|
|
75
|
+
if (withinGracePeriod) return "grace_period";
|
|
76
|
+
if (!isIdle) return "active";
|
|
77
|
+
if (nudgeEcho) return "active";
|
|
78
|
+
if ((counts.inProgressTasks ?? 0) > 0) return "active";
|
|
79
|
+
if (counts.activeSubtasks === 0) return "nudge";
|
|
80
|
+
return "soft_nudge";
|
|
81
|
+
}
|
|
82
|
+
function decideWorkerAction(taskCount, isIdle, nudgeEcho) {
|
|
83
|
+
if (taskCount === 0) return "skip";
|
|
84
|
+
if (nudgeEcho) return "idle";
|
|
85
|
+
return isIdle ? "nudge" : "idle";
|
|
86
|
+
}
|
|
87
|
+
function isIdlePane(paneText) {
|
|
88
|
+
return IDLE_PATTERNS.some((p) => paneText.includes(p));
|
|
89
|
+
}
|
|
90
|
+
function isCurrentlyIdle(paneText) {
|
|
91
|
+
const nonEmptyLines = paneText.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
92
|
+
const lastLine = nonEmptyLines.at(-1) ?? "";
|
|
93
|
+
if (/(?:^|[>❯$#])\s*\/mcp\s*$/.test(lastLine)) return true;
|
|
94
|
+
if (IDLE_PATTERNS.some((p) => lastLine.includes(p))) return true;
|
|
95
|
+
if (lineHasMcpZombiePattern(lastLine)) return true;
|
|
96
|
+
const currentLines = nonEmptyLines.slice(-3);
|
|
97
|
+
return tailHasMcpZombieContext(currentLines) && lineLooksLikeMcpReconnectPrompt(lastLine);
|
|
98
|
+
}
|
|
99
|
+
function isNudgeEcho(paneText) {
|
|
100
|
+
return NUDGE_ECHO_PATTERNS.some((p) => paneText.includes(p));
|
|
101
|
+
}
|
|
102
|
+
function lineHasMcpZombiePattern(line) {
|
|
103
|
+
const lower = line.toLowerCase();
|
|
104
|
+
if (lower.includes("not connected") && !lower.includes("mcp server")) return false;
|
|
105
|
+
return MCP_ZOMBIE_PATTERNS.some((p) => lower.includes(p.toLowerCase()));
|
|
106
|
+
}
|
|
107
|
+
function tailHasMcpZombieContext(lines) {
|
|
108
|
+
return lines.some(lineHasMcpZombiePattern);
|
|
109
|
+
}
|
|
110
|
+
function lineLooksLikeMcpReconnectPrompt(line) {
|
|
111
|
+
const lower = line.toLowerCase();
|
|
112
|
+
return lower.includes("/mcp") && (lower.includes("reconnect") || lower.includes("connect") || lower.includes("run") || lower.includes("try"));
|
|
113
|
+
}
|
|
114
|
+
function isMcpZombiePane(paneText, paneCurrentlyIdle) {
|
|
115
|
+
if (!paneCurrentlyIdle) return false;
|
|
116
|
+
const nonEmptyLines = paneText.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
117
|
+
const lastLine = nonEmptyLines.at(-1) ?? "";
|
|
118
|
+
if (/(?:^|[>❯$#])\s*\/mcp\s*$/.test(lastLine)) return true;
|
|
119
|
+
if (lineHasMcpZombiePattern(lastLine)) return true;
|
|
120
|
+
const currentLines = nonEmptyLines.slice(-3);
|
|
121
|
+
return tailHasMcpZombieContext(currentLines) && lineLooksLikeMcpReconnectPrompt(lastLine);
|
|
122
|
+
}
|
|
123
|
+
function sendNudge(transport, session, runtime, action) {
|
|
124
|
+
const message = action === "nudge" ? "You have open tasks. Run list_tasks to find them." : "You have more open tasks to dispatch. Run list_tasks.";
|
|
125
|
+
if (transport.sendKeysLiteral) {
|
|
126
|
+
transport.sendKeysLiteral(session, message);
|
|
127
|
+
} else {
|
|
128
|
+
transport.sendKeys(session, message);
|
|
129
|
+
}
|
|
130
|
+
process.stderr.write(
|
|
131
|
+
`[enforcement-audit] SENT nudge to ${session} (${runtime}, ${action})
|
|
132
|
+
`
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
function _resetNudgeState() {
|
|
136
|
+
}
|
|
137
|
+
async function runTaskEnforcementTick(deps) {
|
|
138
|
+
const { transport, employees, client, scopeFilter } = deps;
|
|
139
|
+
const now = deps.now ?? Date.now();
|
|
140
|
+
const tickStartedAt = Date.now();
|
|
141
|
+
const sessions = transport.listSessions();
|
|
142
|
+
let processedAnyEmployee = false;
|
|
143
|
+
let processedSessions = 0;
|
|
144
|
+
let nudgesSent = 0;
|
|
145
|
+
recordOrchestrationEventBestEffort({
|
|
146
|
+
eventType: "daemon.tick.started",
|
|
147
|
+
source: "task-enforcement.runTaskEnforcementTick",
|
|
148
|
+
payload: { sessionCount: sessions.length }
|
|
149
|
+
});
|
|
150
|
+
for (const session of sessions) {
|
|
151
|
+
if (!session.includes("-")) continue;
|
|
152
|
+
const agentName = session.split("-")[0]?.replace(/\d+$/, "");
|
|
153
|
+
if (!agentName) continue;
|
|
154
|
+
if ("isAlive" in transport && typeof transport.isAlive === "function") {
|
|
155
|
+
if (!transport.isAlive(session)) continue;
|
|
156
|
+
}
|
|
157
|
+
const employee = employees.find((e) => e.name === agentName);
|
|
158
|
+
if (!employee) continue;
|
|
159
|
+
processedAnyEmployee = true;
|
|
160
|
+
processedSessions++;
|
|
161
|
+
let effectiveScope = scopeFilter;
|
|
162
|
+
const dashIndex = session.indexOf("-");
|
|
163
|
+
if (dashIndex > 0) {
|
|
164
|
+
const coordinatorSession = session.slice(dashIndex + 1);
|
|
165
|
+
if (coordinatorSession) {
|
|
166
|
+
effectiveScope = {
|
|
167
|
+
sql: " AND (session_scope IS NULL OR session_scope = ?)",
|
|
168
|
+
args: [coordinatorSession]
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const isManager = MANAGER_ROLES.includes(employee.role);
|
|
173
|
+
try {
|
|
174
|
+
let action = "skip";
|
|
175
|
+
let reason = "";
|
|
176
|
+
let openTasks = 0;
|
|
177
|
+
let activeSubtasks = 0;
|
|
178
|
+
let paneIdle;
|
|
179
|
+
if (isManager) {
|
|
180
|
+
const openResult = await client.execute({
|
|
181
|
+
sql: `SELECT COUNT(*) as cnt FROM tasks WHERE assigned_to = ? AND status = 'open'${effectiveScope.sql}`,
|
|
182
|
+
args: [agentName, ...effectiveScope.args]
|
|
183
|
+
});
|
|
184
|
+
openTasks = Number(openResult.rows[0]?.cnt ?? 0);
|
|
185
|
+
if (openTasks > 0) {
|
|
186
|
+
const subtaskResult = await client.execute({
|
|
187
|
+
sql: `SELECT COUNT(*) as cnt FROM tasks WHERE assigned_by = ? AND status = 'in_progress'${scopeFilter.sql}`,
|
|
188
|
+
args: [agentName, ...scopeFilter.args]
|
|
189
|
+
});
|
|
190
|
+
activeSubtasks = Number(subtaskResult.rows[0]?.cnt ?? 0);
|
|
191
|
+
}
|
|
192
|
+
let withinGracePeriod = false;
|
|
193
|
+
let graceRemaining = 0;
|
|
194
|
+
if (openTasks > 0) {
|
|
195
|
+
const newestResult = await client.execute({
|
|
196
|
+
sql: `SELECT created_at FROM tasks WHERE assigned_to = ? AND status = 'open'${scopeFilter.sql} ORDER BY created_at DESC LIMIT 1`,
|
|
197
|
+
args: [agentName, ...scopeFilter.args]
|
|
198
|
+
});
|
|
199
|
+
const newestCreatedAt = newestResult.rows[0]?.created_at;
|
|
200
|
+
if (newestCreatedAt) {
|
|
201
|
+
const taskAge = now - new Date(newestCreatedAt).getTime();
|
|
202
|
+
if (taskAge < MANAGER_GRACE_PERIOD_MS) {
|
|
203
|
+
withinGracePeriod = true;
|
|
204
|
+
graceRemaining = Math.round((MANAGER_GRACE_PERIOD_MS - taskAge) / 1e3);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
let inProgressTasks = 0;
|
|
209
|
+
if (openTasks > 0) {
|
|
210
|
+
const ipResult = await client.execute({
|
|
211
|
+
sql: `SELECT COUNT(*) as cnt FROM tasks WHERE assigned_to = ? AND status = 'in_progress'${effectiveScope.sql}`,
|
|
212
|
+
args: [agentName, ...effectiveScope.args]
|
|
213
|
+
});
|
|
214
|
+
inProgressTasks = Number(ipResult.rows[0]?.cnt ?? 0);
|
|
215
|
+
}
|
|
216
|
+
const pane = deps.paneCache?.get(session) ?? (deps.capturePaneAsync ? await deps.capturePaneAsync(session, 20) : transport.capturePane(session, 20));
|
|
217
|
+
paneIdle = isIdlePane(pane);
|
|
218
|
+
const nudgeEcho = isNudgeEcho(pane);
|
|
219
|
+
action = decideManagerAction({ openTasks, activeSubtasks, inProgressTasks }, paneIdle, withinGracePeriod, nudgeEcho);
|
|
220
|
+
if (action === "skip") reason = "no open tasks";
|
|
221
|
+
else if (action === "grace_period") reason = `task assigned <10min ago (${graceRemaining}s remaining)`;
|
|
222
|
+
else if (action === "active") reason = nudgeEcho ? "pane shows previous nudge (anti-loop)" : inProgressTasks > 0 ? `${inProgressTasks} tasks in_progress` : "pane shows active work";
|
|
223
|
+
else if (action === "nudge") reason = `${openTasks} open tasks, 0 delegated, pane idle`;
|
|
224
|
+
else if (action === "soft_nudge") reason = `${openTasks} open tasks, ${activeSubtasks} delegated, pane idle`;
|
|
225
|
+
writeAuditEntry({
|
|
226
|
+
timestamp: new Date(now).toISOString(),
|
|
227
|
+
session,
|
|
228
|
+
agent: agentName,
|
|
229
|
+
role: "manager",
|
|
230
|
+
action,
|
|
231
|
+
reason,
|
|
232
|
+
openTasks,
|
|
233
|
+
activeSubtasks,
|
|
234
|
+
paneIdle,
|
|
235
|
+
graceRemaining: withinGracePeriod ? graceRemaining : void 0
|
|
236
|
+
});
|
|
237
|
+
process.stderr.write(
|
|
238
|
+
`[exed] Task enforcement: ${agentName} (manager) ${openTasks} open, ${activeSubtasks} delegated, pane=${paneIdle ? "idle" : "active"}. Action: ${action} (${reason})
|
|
239
|
+
`
|
|
240
|
+
);
|
|
241
|
+
} else {
|
|
242
|
+
const taskResult = await client.execute({
|
|
243
|
+
sql: `SELECT COUNT(*) as cnt FROM tasks WHERE assigned_to = ? AND status IN ('open', 'in_progress')${effectiveScope.sql}`,
|
|
244
|
+
args: [agentName, ...effectiveScope.args]
|
|
245
|
+
});
|
|
246
|
+
const taskCount = Number(taskResult.rows[0]?.cnt ?? 0);
|
|
247
|
+
openTasks = taskCount;
|
|
248
|
+
if (taskCount > 0) {
|
|
249
|
+
const pane = deps.paneCache?.get(session) ?? (deps.capturePaneAsync ? await deps.capturePaneAsync(session, 20) : transport.capturePane(session, 20));
|
|
250
|
+
paneIdle = isIdlePane(pane);
|
|
251
|
+
const workerNudgeEcho = isNudgeEcho(pane);
|
|
252
|
+
const paneCurrentlyIdle = isCurrentlyIdle(pane);
|
|
253
|
+
if (isMcpZombiePane(pane, paneCurrentlyIdle) && deps.zombieWorkerRecover) {
|
|
254
|
+
const reason2 = "pane shows dead MCP client";
|
|
255
|
+
await deps.zombieWorkerRecover(session, agentName, effectiveScope.args[0] ? String(effectiveScope.args[0]) : "", reason2);
|
|
256
|
+
writeAuditEntry({
|
|
257
|
+
timestamp: new Date(now).toISOString(),
|
|
258
|
+
session,
|
|
259
|
+
agent: agentName,
|
|
260
|
+
role: "worker",
|
|
261
|
+
action: "active",
|
|
262
|
+
reason: reason2,
|
|
263
|
+
openTasks: taskCount,
|
|
264
|
+
paneIdle
|
|
265
|
+
});
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
action = decideWorkerAction(taskCount, paneIdle, workerNudgeEcho);
|
|
269
|
+
}
|
|
270
|
+
if (action === "skip") reason = "no tasks";
|
|
271
|
+
else if (action === "idle") reason = `${taskCount} tasks but pane active`;
|
|
272
|
+
else if (action === "nudge") reason = `${taskCount} tasks, pane idle`;
|
|
273
|
+
writeAuditEntry({
|
|
274
|
+
timestamp: new Date(now).toISOString(),
|
|
275
|
+
session,
|
|
276
|
+
agent: agentName,
|
|
277
|
+
role: "worker",
|
|
278
|
+
action,
|
|
279
|
+
reason,
|
|
280
|
+
openTasks: taskCount,
|
|
281
|
+
paneIdle
|
|
282
|
+
});
|
|
283
|
+
process.stderr.write(
|
|
284
|
+
`[exed] Task enforcement: ${agentName} (worker) ${taskCount} tasks, pane=${paneIdle ?? "n/a"}. Action: ${action} (${reason})
|
|
285
|
+
`
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
if (action === "skip" || action === "idle" || action === "grace_period" || action === "active") continue;
|
|
289
|
+
nudgesSent++;
|
|
290
|
+
sendIntercom(session);
|
|
291
|
+
} catch {
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (processedAnyEmployee) {
|
|
295
|
+
try {
|
|
296
|
+
const staleBlocked = await client.execute({
|
|
297
|
+
sql: `SELECT t.id, t.title, b.status as blocker_status
|
|
298
|
+
FROM tasks t
|
|
299
|
+
JOIN tasks b ON t.blocked_by = b.id
|
|
300
|
+
WHERE t.status = 'blocked'
|
|
301
|
+
AND b.status IN ('done', 'cancelled', 'closed')${scopeFilter.sql}`,
|
|
302
|
+
args: [...scopeFilter.args]
|
|
303
|
+
});
|
|
304
|
+
const nowIso = new Date(now).toISOString();
|
|
305
|
+
for (const row of staleBlocked.rows) {
|
|
306
|
+
try {
|
|
307
|
+
await updateTaskStatus({ taskId: String(row.id), status: "open" });
|
|
308
|
+
} catch {
|
|
309
|
+
await client.execute({
|
|
310
|
+
sql: `UPDATE tasks SET status = 'open', updated_at = ? WHERE id = ?`,
|
|
311
|
+
args: [nowIso, String(row.id)]
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
await client.execute({
|
|
315
|
+
sql: `UPDATE tasks SET blocked_by = NULL WHERE id = ?`,
|
|
316
|
+
args: [String(row.id)]
|
|
317
|
+
});
|
|
318
|
+
process.stderr.write(
|
|
319
|
+
`[exed] Auto-unblocked "${String(row.title)}" \u2014 blocker already ${String(row.blocker_status)}
|
|
320
|
+
`
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
} catch {
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
if (processedAnyEmployee && deps.reviewerSpawn) {
|
|
327
|
+
try {
|
|
328
|
+
const reviewerRows = await client.execute({
|
|
329
|
+
sql: `SELECT DISTINCT reviewer, session_scope FROM tasks
|
|
330
|
+
WHERE status = 'needs_review'
|
|
331
|
+
AND reviewer IS NOT NULL
|
|
332
|
+
AND reviewer != ''${scopeFilter.sql}`,
|
|
333
|
+
args: [...scopeFilter.args]
|
|
334
|
+
});
|
|
335
|
+
const liveSessionSet = new Set(sessions);
|
|
336
|
+
for (const row of reviewerRows.rows) {
|
|
337
|
+
const reviewerName = String(row.reviewer ?? "");
|
|
338
|
+
const sessionScope = row.session_scope ? String(row.session_scope) : null;
|
|
339
|
+
if (!reviewerName || !sessionScope) continue;
|
|
340
|
+
const reviewerSession = `${reviewerName}-${sessionScope}`;
|
|
341
|
+
if (liveSessionSet.has(reviewerSession)) continue;
|
|
342
|
+
try {
|
|
343
|
+
const result = deps.reviewerSpawn(reviewerName, sessionScope);
|
|
344
|
+
if (!result) continue;
|
|
345
|
+
if (result.status === "spawned") {
|
|
346
|
+
process.stderr.write(
|
|
347
|
+
`[exed] Reviewer auto-spawn: spawned ${reviewerName} in ${sessionScope} (has needs_review tasks)
|
|
348
|
+
`
|
|
349
|
+
);
|
|
350
|
+
} else if (result.status === "failed") {
|
|
351
|
+
process.stderr.write(
|
|
352
|
+
`[exed] Reviewer auto-spawn: failed to spawn ${reviewerName} in ${sessionScope}: ${result.error ?? "unknown"}
|
|
353
|
+
`
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
} catch (spawnErr) {
|
|
357
|
+
process.stderr.write(
|
|
358
|
+
`[exed] Reviewer auto-spawn error for ${reviewerName}: ${spawnErr instanceof Error ? spawnErr.message : String(spawnErr)}
|
|
359
|
+
`
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
} catch {
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
recordOrchestrationEventBestEffort({
|
|
367
|
+
eventType: "daemon.tick.completed",
|
|
368
|
+
source: "task-enforcement.runTaskEnforcementTick",
|
|
369
|
+
durationMs: Date.now() - tickStartedAt,
|
|
370
|
+
result: processedAnyEmployee ? "processed" : "no_employee_sessions",
|
|
371
|
+
payload: { sessionCount: sessions.length, processedSessions, nudgesSent }
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
export {
|
|
375
|
+
IDLE_PATTERNS,
|
|
376
|
+
MANAGER_GRACE_PERIOD_MS,
|
|
377
|
+
MANAGER_ROLES,
|
|
378
|
+
MCP_ZOMBIE_PATTERNS,
|
|
379
|
+
NUDGE_ECHO_PATTERNS,
|
|
380
|
+
TASK_ENFORCEMENT_DEBOUNCE_MS,
|
|
381
|
+
TASK_ENFORCEMENT_INTERVAL_MS,
|
|
382
|
+
_resetNudgeState,
|
|
383
|
+
decideManagerAction,
|
|
384
|
+
decideWorkerAction,
|
|
385
|
+
isCurrentlyIdle,
|
|
386
|
+
isIdlePane,
|
|
387
|
+
isMcpZombiePane,
|
|
388
|
+
isNudgeEcho,
|
|
389
|
+
runTaskEnforcementTick,
|
|
390
|
+
sendNudge
|
|
391
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCurrentSessionScope,
|
|
3
|
+
sessionScopeFilter,
|
|
4
|
+
strictSessionScopeFilter
|
|
5
|
+
} from "./chunk-5AS622MM.js";
|
|
6
|
+
import "./chunk-KZNSOHCB.js";
|
|
7
|
+
import "./chunk-5CHYEKMH.js";
|
|
8
|
+
import "./chunk-4JERP7NT.js";
|
|
9
|
+
import "./chunk-OBUV3W7L.js";
|
|
10
|
+
import "./chunk-MVW62NIZ.js";
|
|
11
|
+
import "./chunk-OYNKIAVW.js";
|
|
12
|
+
import "./chunk-CX6GL3ZJ.js";
|
|
13
|
+
import "./chunk-2NQQP3FF.js";
|
|
14
|
+
import "./chunk-EZ7KAZMC.js";
|
|
15
|
+
import "./chunk-NGP6LSV2.js";
|
|
16
|
+
import "./chunk-WQEUY7DC.js";
|
|
17
|
+
import "./chunk-CVYC6DUW.js";
|
|
18
|
+
import "./chunk-OPU3NYOO.js";
|
|
19
|
+
import "./chunk-GJV3WDWM.js";
|
|
20
|
+
import "./chunk-MP2AFCGL.js";
|
|
21
|
+
import "./chunk-G33BHQCO.js";
|
|
22
|
+
import "./chunk-HYZV25LY.js";
|
|
23
|
+
import "./chunk-CHBHR5W6.js";
|
|
24
|
+
import "./chunk-2I23RPSI.js";
|
|
25
|
+
import "./chunk-C6OYEJJI.js";
|
|
26
|
+
import "./chunk-FXU7JOXK.js";
|
|
27
|
+
import "./chunk-MOZ2YQ54.js";
|
|
28
|
+
import "./chunk-VXIMSRTO.js";
|
|
29
|
+
import "./chunk-LYH5HE24.js";
|
|
30
|
+
import "./chunk-MLKGABMK.js";
|
|
31
|
+
export {
|
|
32
|
+
getCurrentSessionScope,
|
|
33
|
+
sessionScopeFilter,
|
|
34
|
+
strictSessionScopeFilter
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCurrentSessionScope,
|
|
3
|
+
sessionScopeFilter,
|
|
4
|
+
strictSessionScopeFilter
|
|
5
|
+
} from "./chunk-57UAFTO2.js";
|
|
6
|
+
import "./chunk-SD6UFZRH.js";
|
|
7
|
+
import "./chunk-5CHYEKMH.js";
|
|
8
|
+
import "./chunk-4JERP7NT.js";
|
|
9
|
+
import "./chunk-GQ2XYRG3.js";
|
|
10
|
+
import "./chunk-MVW62NIZ.js";
|
|
11
|
+
import "./chunk-OYNKIAVW.js";
|
|
12
|
+
import "./chunk-CX6GL3ZJ.js";
|
|
13
|
+
import "./chunk-JP45GCVR.js";
|
|
14
|
+
import "./chunk-XJUUWHVN.js";
|
|
15
|
+
import "./chunk-NGP6LSV2.js";
|
|
16
|
+
import "./chunk-7SLLNRR3.js";
|
|
17
|
+
import "./chunk-CVYC6DUW.js";
|
|
18
|
+
import "./chunk-OPU3NYOO.js";
|
|
19
|
+
import "./chunk-GJV3WDWM.js";
|
|
20
|
+
import "./chunk-MP2AFCGL.js";
|
|
21
|
+
import "./chunk-TN45CTOI.js";
|
|
22
|
+
import "./chunk-HYZV25LY.js";
|
|
23
|
+
import "./chunk-UNCGZXPU.js";
|
|
24
|
+
import "./chunk-2I23RPSI.js";
|
|
25
|
+
import "./chunk-VGYL7CN2.js";
|
|
26
|
+
import "./chunk-FXU7JOXK.js";
|
|
27
|
+
import "./chunk-MOZ2YQ54.js";
|
|
28
|
+
import "./chunk-VXIMSRTO.js";
|
|
29
|
+
import "./chunk-LYH5HE24.js";
|
|
30
|
+
import "./chunk-MLKGABMK.js";
|
|
31
|
+
export {
|
|
32
|
+
getCurrentSessionScope,
|
|
33
|
+
sessionScopeFilter,
|
|
34
|
+
strictSessionScopeFilter
|
|
35
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TASK_ALREADY_CLAIMED_PREFIX,
|
|
3
|
+
buildTaskCompletionReport,
|
|
4
|
+
checkAndFireBarriers,
|
|
5
|
+
checkStaleCompletion,
|
|
6
|
+
checkTaskFileConsistency,
|
|
7
|
+
cleanOrphanedTaskFiles,
|
|
8
|
+
createTaskCore,
|
|
9
|
+
createTaskGroup,
|
|
10
|
+
deleteTaskCore,
|
|
11
|
+
ensureArchitectureDoc,
|
|
12
|
+
ensureGitignoreExe,
|
|
13
|
+
extractParentFromContext,
|
|
14
|
+
getAggregatedGroupResults,
|
|
15
|
+
getGroupResults,
|
|
16
|
+
getGroupStatus,
|
|
17
|
+
isStructuredTaskCompletionReport,
|
|
18
|
+
isTmuxSessionAlive,
|
|
19
|
+
listTasks,
|
|
20
|
+
queryTaskRows,
|
|
21
|
+
readLatestCheckpoint,
|
|
22
|
+
resolveTask,
|
|
23
|
+
slugify,
|
|
24
|
+
updateTaskStatus,
|
|
25
|
+
writeCheckpoint
|
|
26
|
+
} from "./chunk-57UAFTO2.js";
|
|
27
|
+
import "./chunk-SD6UFZRH.js";
|
|
28
|
+
import "./chunk-5CHYEKMH.js";
|
|
29
|
+
import "./chunk-4JERP7NT.js";
|
|
30
|
+
import "./chunk-GQ2XYRG3.js";
|
|
31
|
+
import "./chunk-MVW62NIZ.js";
|
|
32
|
+
import "./chunk-OYNKIAVW.js";
|
|
33
|
+
import "./chunk-CX6GL3ZJ.js";
|
|
34
|
+
import "./chunk-JP45GCVR.js";
|
|
35
|
+
import "./chunk-XJUUWHVN.js";
|
|
36
|
+
import "./chunk-NGP6LSV2.js";
|
|
37
|
+
import "./chunk-7SLLNRR3.js";
|
|
38
|
+
import "./chunk-CVYC6DUW.js";
|
|
39
|
+
import "./chunk-OPU3NYOO.js";
|
|
40
|
+
import "./chunk-GJV3WDWM.js";
|
|
41
|
+
import "./chunk-MP2AFCGL.js";
|
|
42
|
+
import "./chunk-TN45CTOI.js";
|
|
43
|
+
import "./chunk-HYZV25LY.js";
|
|
44
|
+
import "./chunk-UNCGZXPU.js";
|
|
45
|
+
import "./chunk-2I23RPSI.js";
|
|
46
|
+
import "./chunk-VGYL7CN2.js";
|
|
47
|
+
import "./chunk-FXU7JOXK.js";
|
|
48
|
+
import "./chunk-MOZ2YQ54.js";
|
|
49
|
+
import "./chunk-VXIMSRTO.js";
|
|
50
|
+
import "./chunk-LYH5HE24.js";
|
|
51
|
+
import "./chunk-MLKGABMK.js";
|
|
52
|
+
export {
|
|
53
|
+
TASK_ALREADY_CLAIMED_PREFIX,
|
|
54
|
+
buildTaskCompletionReport,
|
|
55
|
+
checkAndFireBarriers,
|
|
56
|
+
checkStaleCompletion,
|
|
57
|
+
checkTaskFileConsistency,
|
|
58
|
+
cleanOrphanedTaskFiles,
|
|
59
|
+
createTaskCore,
|
|
60
|
+
createTaskGroup,
|
|
61
|
+
deleteTaskCore,
|
|
62
|
+
ensureArchitectureDoc,
|
|
63
|
+
ensureGitignoreExe,
|
|
64
|
+
extractParentFromContext,
|
|
65
|
+
getAggregatedGroupResults,
|
|
66
|
+
getGroupResults,
|
|
67
|
+
getGroupStatus,
|
|
68
|
+
isStructuredTaskCompletionReport,
|
|
69
|
+
isTmuxSessionAlive,
|
|
70
|
+
listTasks,
|
|
71
|
+
queryTaskRows,
|
|
72
|
+
readLatestCheckpoint,
|
|
73
|
+
resolveTask,
|
|
74
|
+
slugify,
|
|
75
|
+
updateTaskStatus,
|
|
76
|
+
writeCheckpoint
|
|
77
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TASK_ALREADY_CLAIMED_PREFIX,
|
|
3
|
+
buildTaskCompletionReport,
|
|
4
|
+
checkAndFireBarriers,
|
|
5
|
+
checkStaleCompletion,
|
|
6
|
+
checkTaskFileConsistency,
|
|
7
|
+
cleanOrphanedTaskFiles,
|
|
8
|
+
createTaskCore,
|
|
9
|
+
createTaskGroup,
|
|
10
|
+
deleteTaskCore,
|
|
11
|
+
ensureArchitectureDoc,
|
|
12
|
+
ensureGitignoreExe,
|
|
13
|
+
extractParentFromContext,
|
|
14
|
+
getAggregatedGroupResults,
|
|
15
|
+
getGroupResults,
|
|
16
|
+
getGroupStatus,
|
|
17
|
+
isStructuredTaskCompletionReport,
|
|
18
|
+
isTmuxSessionAlive,
|
|
19
|
+
listTasks,
|
|
20
|
+
queryTaskRows,
|
|
21
|
+
readLatestCheckpoint,
|
|
22
|
+
resolveTask,
|
|
23
|
+
slugify,
|
|
24
|
+
updateTaskStatus,
|
|
25
|
+
writeCheckpoint
|
|
26
|
+
} from "./chunk-5AS622MM.js";
|
|
27
|
+
import "./chunk-KZNSOHCB.js";
|
|
28
|
+
import "./chunk-5CHYEKMH.js";
|
|
29
|
+
import "./chunk-4JERP7NT.js";
|
|
30
|
+
import "./chunk-OBUV3W7L.js";
|
|
31
|
+
import "./chunk-MVW62NIZ.js";
|
|
32
|
+
import "./chunk-OYNKIAVW.js";
|
|
33
|
+
import "./chunk-CX6GL3ZJ.js";
|
|
34
|
+
import "./chunk-2NQQP3FF.js";
|
|
35
|
+
import "./chunk-EZ7KAZMC.js";
|
|
36
|
+
import "./chunk-NGP6LSV2.js";
|
|
37
|
+
import "./chunk-WQEUY7DC.js";
|
|
38
|
+
import "./chunk-CVYC6DUW.js";
|
|
39
|
+
import "./chunk-OPU3NYOO.js";
|
|
40
|
+
import "./chunk-GJV3WDWM.js";
|
|
41
|
+
import "./chunk-MP2AFCGL.js";
|
|
42
|
+
import "./chunk-G33BHQCO.js";
|
|
43
|
+
import "./chunk-HYZV25LY.js";
|
|
44
|
+
import "./chunk-CHBHR5W6.js";
|
|
45
|
+
import "./chunk-2I23RPSI.js";
|
|
46
|
+
import "./chunk-C6OYEJJI.js";
|
|
47
|
+
import "./chunk-FXU7JOXK.js";
|
|
48
|
+
import "./chunk-MOZ2YQ54.js";
|
|
49
|
+
import "./chunk-VXIMSRTO.js";
|
|
50
|
+
import "./chunk-LYH5HE24.js";
|
|
51
|
+
import "./chunk-MLKGABMK.js";
|
|
52
|
+
export {
|
|
53
|
+
TASK_ALREADY_CLAIMED_PREFIX,
|
|
54
|
+
buildTaskCompletionReport,
|
|
55
|
+
checkAndFireBarriers,
|
|
56
|
+
checkStaleCompletion,
|
|
57
|
+
checkTaskFileConsistency,
|
|
58
|
+
cleanOrphanedTaskFiles,
|
|
59
|
+
createTaskCore,
|
|
60
|
+
createTaskGroup,
|
|
61
|
+
deleteTaskCore,
|
|
62
|
+
ensureArchitectureDoc,
|
|
63
|
+
ensureGitignoreExe,
|
|
64
|
+
extractParentFromContext,
|
|
65
|
+
getAggregatedGroupResults,
|
|
66
|
+
getGroupResults,
|
|
67
|
+
getGroupStatus,
|
|
68
|
+
isStructuredTaskCompletionReport,
|
|
69
|
+
isTmuxSessionAlive,
|
|
70
|
+
listTasks,
|
|
71
|
+
queryTaskRows,
|
|
72
|
+
readLatestCheckpoint,
|
|
73
|
+
resolveTask,
|
|
74
|
+
slugify,
|
|
75
|
+
updateTaskStatus,
|
|
76
|
+
writeCheckpoint
|
|
77
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dispatchTaskToEmployee,
|
|
3
|
+
markTaskNotificationsRead,
|
|
4
|
+
notifyTaskDone,
|
|
5
|
+
verifyDispatch
|
|
6
|
+
} from "./chunk-BKINEQVI.js";
|
|
7
|
+
import "./chunk-5AS622MM.js";
|
|
8
|
+
import "./chunk-KZNSOHCB.js";
|
|
9
|
+
import "./chunk-5CHYEKMH.js";
|
|
10
|
+
import "./chunk-4JERP7NT.js";
|
|
11
|
+
import "./chunk-OBUV3W7L.js";
|
|
12
|
+
import "./chunk-MVW62NIZ.js";
|
|
13
|
+
import "./chunk-OYNKIAVW.js";
|
|
14
|
+
import "./chunk-CX6GL3ZJ.js";
|
|
15
|
+
import "./chunk-2NQQP3FF.js";
|
|
16
|
+
import "./chunk-EZ7KAZMC.js";
|
|
17
|
+
import "./chunk-NGP6LSV2.js";
|
|
18
|
+
import "./chunk-WQEUY7DC.js";
|
|
19
|
+
import "./chunk-CVYC6DUW.js";
|
|
20
|
+
import "./chunk-OPU3NYOO.js";
|
|
21
|
+
import "./chunk-GJV3WDWM.js";
|
|
22
|
+
import "./chunk-MP2AFCGL.js";
|
|
23
|
+
import "./chunk-G33BHQCO.js";
|
|
24
|
+
import "./chunk-HYZV25LY.js";
|
|
25
|
+
import "./chunk-CHBHR5W6.js";
|
|
26
|
+
import "./chunk-2I23RPSI.js";
|
|
27
|
+
import "./chunk-C6OYEJJI.js";
|
|
28
|
+
import "./chunk-FXU7JOXK.js";
|
|
29
|
+
import "./chunk-MOZ2YQ54.js";
|
|
30
|
+
import "./chunk-VXIMSRTO.js";
|
|
31
|
+
import "./chunk-LYH5HE24.js";
|
|
32
|
+
import "./chunk-MLKGABMK.js";
|
|
33
|
+
export {
|
|
34
|
+
dispatchTaskToEmployee,
|
|
35
|
+
markTaskNotificationsRead,
|
|
36
|
+
notifyTaskDone,
|
|
37
|
+
verifyDispatch
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dispatchTaskToEmployee,
|
|
3
|
+
markTaskNotificationsRead,
|
|
4
|
+
notifyTaskDone,
|
|
5
|
+
verifyDispatch
|
|
6
|
+
} from "./chunk-ATJ3NXDP.js";
|
|
7
|
+
import "./chunk-57UAFTO2.js";
|
|
8
|
+
import "./chunk-SD6UFZRH.js";
|
|
9
|
+
import "./chunk-5CHYEKMH.js";
|
|
10
|
+
import "./chunk-4JERP7NT.js";
|
|
11
|
+
import "./chunk-GQ2XYRG3.js";
|
|
12
|
+
import "./chunk-MVW62NIZ.js";
|
|
13
|
+
import "./chunk-OYNKIAVW.js";
|
|
14
|
+
import "./chunk-CX6GL3ZJ.js";
|
|
15
|
+
import "./chunk-JP45GCVR.js";
|
|
16
|
+
import "./chunk-XJUUWHVN.js";
|
|
17
|
+
import "./chunk-NGP6LSV2.js";
|
|
18
|
+
import "./chunk-7SLLNRR3.js";
|
|
19
|
+
import "./chunk-CVYC6DUW.js";
|
|
20
|
+
import "./chunk-OPU3NYOO.js";
|
|
21
|
+
import "./chunk-GJV3WDWM.js";
|
|
22
|
+
import "./chunk-MP2AFCGL.js";
|
|
23
|
+
import "./chunk-TN45CTOI.js";
|
|
24
|
+
import "./chunk-HYZV25LY.js";
|
|
25
|
+
import "./chunk-UNCGZXPU.js";
|
|
26
|
+
import "./chunk-2I23RPSI.js";
|
|
27
|
+
import "./chunk-VGYL7CN2.js";
|
|
28
|
+
import "./chunk-FXU7JOXK.js";
|
|
29
|
+
import "./chunk-MOZ2YQ54.js";
|
|
30
|
+
import "./chunk-VXIMSRTO.js";
|
|
31
|
+
import "./chunk-LYH5HE24.js";
|
|
32
|
+
import "./chunk-MLKGABMK.js";
|
|
33
|
+
export {
|
|
34
|
+
dispatchTaskToEmployee,
|
|
35
|
+
markTaskNotificationsRead,
|
|
36
|
+
notifyTaskDone,
|
|
37
|
+
verifyDispatch
|
|
38
|
+
};
|