@askexenow/exe-os 0.9.153 → 0.9.154
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-HDUT3T3I.js → active-agent-IVY5D7DJ.js} +2 -2
- package/dist/{active-agent-XHERKXH6.js → active-agent-JN7A2D2E.js} +2 -2
- package/dist/{agentic-ontology-GMK3MB3U.js → agentic-ontology-NU5FACOX.js} +1 -1
- package/dist/{backfill-metadata-PPI5QFYW.js → backfill-metadata-XBWBPBN2.js} +3 -3
- package/dist/{behaviors-JG75DNG3.js → behaviors-4USTCRU7.js} +2 -2
- package/dist/bin/agentic-ontology-backfill.js +4 -4
- package/dist/bin/agentic-reflection-backfill.js +5 -5
- package/dist/bin/agentic-semantic-label.js +4 -4
- package/dist/bin/backfill-conversations.js +3 -3
- package/dist/bin/backfill-responses.js +3 -3
- package/dist/bin/backfill-vectors.js +4 -4
- package/dist/bin/bulk-sync-postgres.js +5 -5
- package/dist/bin/cc-doctor.js +1 -1
- package/dist/bin/cleanup-stale-review-tasks.js +7 -7
- package/dist/bin/cli.js +12 -12
- package/dist/bin/exe-agent-config.js +1 -1
- package/dist/bin/exe-agent.js +7 -7
- package/dist/bin/exe-assign.js +4 -4
- package/dist/bin/exe-boot.js +14 -14
- package/dist/bin/exe-call.js +3 -3
- package/dist/bin/exe-cloud.js +3 -3
- package/dist/bin/exe-dispatch.js +7 -7
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +6 -6
- package/dist/bin/exe-forget.js +5 -5
- package/dist/bin/exe-gateway.js +5 -5
- package/dist/bin/exe-healthcheck.js +1 -1
- package/dist/bin/exe-heartbeat.js +7 -7
- package/dist/bin/exe-kill.js +10 -10
- package/dist/bin/exe-launch-agent.js +9 -9
- package/dist/bin/exe-new-employee.js +5 -5
- package/dist/bin/exe-pending-messages.js +8 -8
- package/dist/bin/exe-pending-notifications.js +7 -7
- package/dist/bin/exe-pending-reviews.js +7 -7
- package/dist/bin/exe-rename.js +3 -3
- package/dist/bin/exe-review.js +9 -9
- package/dist/bin/exe-search.js +4 -4
- package/dist/bin/exe-session-cleanup.js +13 -14
- package/dist/bin/exe-settings.js +3 -3
- package/dist/bin/exe-start-codex.js +10 -10
- package/dist/bin/exe-start-opencode.js +7 -7
- package/dist/bin/exe-status.js +8 -8
- package/dist/bin/exe-team.js +2 -2
- package/dist/bin/git-sweep.js +7 -7
- package/dist/bin/graph-backfill.js +3 -3
- package/dist/bin/graph-export.js +4 -4
- package/dist/bin/install.js +5 -5
- package/dist/bin/intercom-check.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 +7 -7
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +3 -3
- package/dist/{capacity-monitor-5IVGAQ34.js → capacity-monitor-VJLRBE7S.js} +8 -8
- package/dist/{catchup-brief-HFJR32Q3.js → catchup-brief-T2RPTOTZ.js} +9 -9
- package/dist/{chunk-EYQ3DHHI.js → chunk-23H5ZURC.js} +8 -8
- package/dist/{chunk-5U5MI4VH.js → chunk-2BTXFKAV.js} +71 -72
- package/dist/{chunk-MBYJEE3B.js → chunk-2G2KOWBI.js} +12 -0
- package/dist/{chunk-WLSSSDAR.js → chunk-2GUTGEFX.js} +1 -1
- package/dist/{chunk-M37FGM3X.js → chunk-3CZBCOYI.js} +2 -2
- package/dist/{chunk-WZMS6X56.js → chunk-3I44JXWH.js} +2 -2
- package/dist/{chunk-5NSTNICM.js → chunk-3OGN523Z.js} +1 -1
- package/dist/{chunk-LIJC4CRF.js → chunk-3RJBXMWJ.js} +1 -1
- package/dist/{chunk-AMVDQ7HH.js → chunk-3S2HQUP6.js} +6 -6
- package/dist/{chunk-3ZU7RTMF.js → chunk-45APPAB2.js} +41 -28
- package/dist/{chunk-L5WTOR3T.js → chunk-5KUJDZ3J.js} +3 -3
- package/dist/{chunk-JUM3EUB2.js → chunk-66RYFM6Z.js} +5 -5
- package/dist/{chunk-4IEQIUBZ.js → chunk-6M65LFNM.js} +2 -2
- package/dist/{chunk-3TXOH3SJ.js → chunk-A7KEWR6S.js} +1 -1
- package/dist/{chunk-7WEVNBV2.js → chunk-ABVCJBON.js} +2 -2
- package/dist/{chunk-SFV2XRPY.js → chunk-AL7JZARP.js} +1 -1
- package/dist/{chunk-4RKL53PD.js → chunk-DMUNYW65.js} +25 -18
- package/dist/{chunk-CBLNQNWT.js → chunk-DTT4TRFR.js} +1 -1
- package/dist/{chunk-25NSQUZ3.js → chunk-DWLDYEGO.js} +6 -6
- package/dist/{chunk-MNIJA5BL.js → chunk-F2WGMIFZ.js} +1 -1
- package/dist/{chunk-SJKOILTX.js → chunk-G7IQNOSY.js} +1 -1
- package/dist/{chunk-EOU4ZLRZ.js → chunk-GCB4MHTG.js} +1 -1
- package/dist/{chunk-JJA6F6NA.js → chunk-HYRYMZRT.js} +1 -1
- package/dist/{chunk-LM7TQYLW.js → chunk-IWSXQKSB.js} +1 -1
- package/dist/{chunk-ODEGQCWW.js → chunk-K23KJITV.js} +3 -3
- package/dist/{chunk-BPBUSSYF.js → chunk-KSOPUPQX.js} +5 -5
- package/dist/{chunk-VJW3E5KW.js → chunk-KUPUTWQX.js} +5 -5
- package/dist/{chunk-OQYZQR24.js → chunk-L3JRSHHU.js} +2 -2
- package/dist/{chunk-PMCXWAVQ.js → chunk-LHMOPUZE.js} +2 -2
- package/dist/{chunk-UHL4QL5E.js → chunk-LVEOCWPL.js} +1 -1
- package/dist/{chunk-XQC5BNCJ.js → chunk-MLL5ICNL.js} +3 -3
- package/dist/{chunk-AFMQR776.js → chunk-NL4YO6I2.js} +1 -1
- package/dist/{chunk-4PDXCEXT.js → chunk-OC7Q4LOK.js} +16 -6
- package/dist/{chunk-UQE5R5PM.js → chunk-OHYMA6C3.js} +2 -2
- package/dist/{chunk-HZNQYDAN.js → chunk-OSPZOCPU.js} +3 -3
- package/dist/{chunk-PC6Y4ATU.js → chunk-PE6NCL7A.js} +1 -1
- package/dist/{chunk-GJMHN45Z.js → chunk-Q7TTJD4A.js} +1 -1
- package/dist/{chunk-RAMU6E5T.js → chunk-SE2DYYVB.js} +1 -1
- package/dist/{chunk-WPNWFI4A.js → chunk-SFZUC72J.js} +2 -2
- package/dist/{chunk-OEPEY47B.js → chunk-T2B7637C.js} +1 -1
- package/dist/{chunk-BR5UVRA2.js → chunk-TH2OFEQH.js} +1 -1
- package/dist/{chunk-ZGKU4PMY.js → chunk-TME75K53.js} +2 -2
- package/dist/{chunk-CF4DZKKE.js → chunk-UIAYIZNR.js} +2 -2
- package/dist/{chunk-BV2JVO2U.js → chunk-ULFBLCIP.js} +1 -1
- package/dist/{chunk-UPAEAL6K.js → chunk-UREIHGOQ.js} +3 -3
- package/dist/{chunk-Q7GVSS2J.js → chunk-VRKPBY6D.js} +1 -1
- package/dist/{chunk-IWGGTD5D.js → chunk-VZDPV32D.js} +3 -3
- package/dist/{chunk-RLCZBSUB.js → chunk-X347L57O.js} +12 -0
- package/dist/{chunk-CO2SF5SB.js → chunk-XEN5RMGU.js} +1 -1
- package/dist/{chunk-SGLVCPZP.js → chunk-XYFPCAA2.js} +1 -1
- package/dist/{chunk-YOH3ABTS.js → chunk-Y3Z6QHUR.js} +1 -1
- package/dist/{crdt-sync-3VQP2ISB.js → crdt-sync-B7IUR3BR.js} +1 -1
- package/dist/{crm-webhook-SOUYMO3X.js → crm-webhook-YU7PDS7U.js} +2 -2
- package/dist/{cto-delegation-gate-UGCMXYAO.js → cto-delegation-gate-JDDOHVQL.js} +6 -6
- package/dist/{daemon-orchestration-MD34RKQZ.js → daemon-orchestration-5OYKXYSR.js} +9 -9
- package/dist/{exe-drift-L5ZHO3CZ.js → exe-drift-DXRU4SXJ.js} +2 -2
- package/dist/{exe-export-UDQU7MMM.js → exe-export-X3AWJONG.js} +4 -4
- package/dist/{exe-import-OY42LQL4.js → exe-import-GC5HO3TD.js} +4 -4
- package/dist/{exe-key-FC67RNXI.js → exe-key-R3ER4MYY.js} +1 -1
- package/dist/{fast-db-init-TLOT2K43.js → fast-db-init-5DTYG5FZ.js} +1 -1
- package/dist/gateway/index.js +9 -9
- package/dist/{git-staleness-MSTOMG55.js → git-staleness-SVUTMS2F.js} +1 -1
- package/dist/{git-task-sweep-D4IKRGCV.js → git-task-sweep-EQHX4LXT.js} +7 -7
- package/dist/{global-procedures-ISPSC4B5.js → global-procedures-P7VOE476.js} +2 -2
- package/dist/{graph-auto-extract-D4I7DF2S.js → graph-auto-extract-UI374EYL.js} +1 -1
- package/dist/hooks/bug-report-worker.js +8 -8
- package/dist/hooks/codex-stop-task-finalizer.js +8 -8
- package/dist/hooks/commit-complete.js +9 -9
- package/dist/hooks/error-recall.js +5 -5
- package/dist/hooks/exe-heartbeat-hook.js +2 -2
- package/dist/hooks/ingest.js +5 -5
- package/dist/hooks/instructions-loaded.js +3 -3
- package/dist/hooks/notification.js +3 -3
- package/dist/hooks/post-compact.js +8 -8
- package/dist/hooks/post-tool-combined.js +4 -4
- package/dist/hooks/pre-compact.js +9 -9
- package/dist/hooks/pre-tool-use.js +34 -12
- package/dist/hooks/prompt-submit.js +16 -16
- package/dist/hooks/session-end.js +13 -13
- package/dist/hooks/session-start.js +7 -7
- package/dist/hooks/stop.js +12 -12
- package/dist/hooks/subagent-stop.js +8 -8
- package/dist/hooks/summary-worker.js +12 -12
- package/dist/index.js +16 -16
- package/dist/{installer-SPQDAGPW.js → installer-L72MRJPI.js} +4 -4
- package/dist/{installer-3YHQ5DJZ.js → installer-LX2TU7RS.js} +4 -4
- package/dist/{installer-4YIOBAFV.js → installer-SLJ3YCHB.js} +4 -4
- package/dist/lib/cloud-sync.js +3 -3
- package/dist/lib/consolidation.js +4 -4
- package/dist/lib/database.js +1 -1
- package/dist/lib/db.js +1 -1
- package/dist/lib/employee-templates.js +3 -3
- package/dist/lib/employees.js +1 -1
- package/dist/lib/exe-daemon.js +45 -20
- package/dist/lib/hybrid-search.js +4 -4
- package/dist/lib/identity.js +1 -1
- package/dist/lib/messaging.js +7 -7
- package/dist/lib/reminders.js +2 -2
- package/dist/lib/schedules.js +4 -4
- package/dist/lib/skill-learning.js +3 -3
- package/dist/lib/store.js +3 -3
- package/dist/lib/task-router.js +2 -2
- package/dist/lib/tasks.js +7 -7
- package/dist/lib/tmux-routing.js +6 -6
- package/dist/lib/tmux-transport.js +1 -1
- package/dist/lib/token-spend.js +2 -2
- package/dist/lib/transport.js +2 -2
- package/dist/mcp/register-tools.js +45 -45
- package/dist/mcp/server.js +46 -46
- package/dist/mcp/tools/complete-reminder.js +3 -3
- package/dist/mcp/tools/create-reminder.js +3 -3
- package/dist/mcp/tools/create-task.js +9 -9
- package/dist/mcp/tools/deactivate-behavior.js +4 -4
- package/dist/mcp/tools/list-reminders.js +3 -3
- package/dist/mcp/tools/list-tasks.js +9 -9
- package/dist/mcp/tools/send-message.js +9 -9
- package/dist/mcp/tools/update-task.js +8 -8
- package/dist/{mcp-http-config-JBNX3DAR.js → mcp-http-config-T76QB243.js} +2 -2
- package/dist/{memory-cards-SYVGSLXW.js → memory-cards-NTRYLVOU.js} +1 -1
- package/dist/{memory-poisoning-defense-T7AC4LZN.js → memory-poisoning-defense-OJ2DEGBA.js} +1 -1
- package/dist/{memory-reflection-FNJU7VFC.js → memory-reflection-4YOUTIMO.js} +1 -1
- package/dist/{notifications-76XXO4Q7.js → notifications-SF2XN5JE.js} +6 -6
- package/dist/{orchestrator-XAT2JSBT.js → orchestrator-2W3VNAKG.js} +8 -8
- package/dist/{plan-limits-IAUNTZUW.js → plan-limits-LEM76SOQ.js} +2 -2
- package/dist/{projection-worker-S6LYSY22.js → projection-worker-RQHV4VIR.js} +1 -1
- package/dist/{review-polling-E24XBNSI.js → review-polling-HD26LRW2.js} +7 -7
- package/dist/runtime/index.js +13 -13
- package/dist/{session-events-CCXFQRFW.js → session-events-NYMENC3B.js} +7 -7
- package/dist/{session-kill-telemetry-TX5NCPUV.js → session-kill-telemetry-LJU2MMZC.js} +2 -2
- package/dist/{session-scope-7QCZF3MJ.js → session-scope-QIDIKKFB.js} +6 -6
- package/dist/{setup-wizard-FA6YEYER.js → setup-wizard-ANL7CVWX.js} +1 -1
- package/dist/skill-refinement-3W3CIIG3.js +156 -0
- package/dist/{task-enforcement-NITY7TBM.js → task-enforcement-YXEOTTUG.js} +6 -6
- package/dist/{task-scope-YZDSPORL.js → task-scope-XXPTORGS.js} +6 -6
- package/dist/{tasks-crud-W5BFKNUS.js → tasks-crud-3UCNTXKQ.js} +6 -6
- package/dist/{tasks-review-VXMELVLA.js → tasks-review-IPOWGI4L.js} +6 -6
- package/dist/{token-budget-LJC7HHKB.js → token-budget-NP22DW2M.js} +1 -1
- package/dist/{tool-telemetry-L3WQDRMH.js → tool-telemetry-5JF2OAHG.js} +1 -1
- package/dist/tui/App.js +14 -14
- package/dist/{tui-data-FQYUPCYX.js → tui-data-Z7FCER3K.js} +6 -6
- package/dist/{worker-gate-OZCNSASA.js → worker-gate-PJYHXNUB.js} +1 -1
- package/dist/{workflow-engine-DA3AWD45.js → workflow-engine-GA7JS7X2.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +104 -104
- /package/dist/{chunk-UIOTTKLS.js → chunk-7E6ZBXO7.js} +0 -0
- /package/dist/{chunk-PJCTBGWN.js → chunk-7U664OM4.js} +0 -0
- /package/dist/{chunk-BRXDLJBU.js → chunk-LYMBXTEO.js} +0 -0
- /package/dist/{chunk-VN6UUZNO.js → chunk-NQND3GFO.js} +0 -0
- /package/dist/{chunk-OU7SLHNA.js → chunk-PBBIAKN5.js} +0 -0
- /package/dist/{chunk-U3B3TVLQ.js → chunk-UJ2KUF4C.js} +0 -0
- /package/dist/{chunk-YABPRFBT.js → chunk-Z6UYJ7HZ.js} +0 -0
- /package/dist/{chunk-YH7VB655.js → chunk-ZYETFCDX.js} +0 -0
- /package/dist/{core-memory-ONZIJYGR.js → core-memory-KL5BOUXU.js} +0 -0
- /package/dist/{wiki-acl-UE3CRAPQ.js → wiki-acl-ZRCU7XYC.js} +0 -0
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getToolCapabilityIndex
|
|
3
|
+
} from "./chunk-J2OPV5FE.js";
|
|
1
4
|
import {
|
|
2
5
|
getCachedLicenseGate
|
|
3
6
|
} from "./chunk-VB23RNNI.js";
|
|
4
7
|
import {
|
|
5
8
|
getToolUsageStats
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7U664OM4.js";
|
|
7
10
|
import {
|
|
8
11
|
AUTO_WAKE_MAX_RETRIES
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-45APPAB2.js";
|
|
10
13
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
listRecentSessionEvents
|
|
15
|
+
} from "./chunk-G7IQNOSY.js";
|
|
13
16
|
import {
|
|
14
17
|
isRerankerAvailable,
|
|
15
18
|
rerankWithScores
|
|
@@ -26,9 +29,6 @@ import {
|
|
|
26
29
|
isToolAllowed,
|
|
27
30
|
isToolAllowedForPlan
|
|
28
31
|
} from "./chunk-E6ORBQHP.js";
|
|
29
|
-
import {
|
|
30
|
-
listRecentSessionEvents
|
|
31
|
-
} from "./chunk-SJKOILTX.js";
|
|
32
32
|
import {
|
|
33
33
|
analyzeBlastRadius,
|
|
34
34
|
buildCodeContextIndex,
|
|
@@ -40,63 +40,63 @@ import {
|
|
|
40
40
|
} from "./chunk-V4MKR32F.js";
|
|
41
41
|
import {
|
|
42
42
|
runDriftProbes
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ULFBLCIP.js";
|
|
44
44
|
import {
|
|
45
45
|
exportOrchestration,
|
|
46
46
|
importOrchestration,
|
|
47
47
|
validatePackage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-HYRYMZRT.js";
|
|
49
49
|
import {
|
|
50
50
|
loadOrchestrationPhase,
|
|
51
51
|
setOrchestrationPhase
|
|
52
52
|
} from "./chunk-6HFZ2KUC.js";
|
|
53
53
|
import {
|
|
54
54
|
createOrRefreshResumeTask
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-DMUNYW65.js";
|
|
56
56
|
import {
|
|
57
57
|
registerCompleteReminder
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-T2B7637C.js";
|
|
59
59
|
import {
|
|
60
60
|
registerDeactivateBehavior
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-UREIHGOQ.js";
|
|
62
62
|
import {
|
|
63
63
|
registerSendMessage
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-3I44JXWH.js";
|
|
65
65
|
import {
|
|
66
66
|
registerCreateTask
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-3S2HQUP6.js";
|
|
68
68
|
import {
|
|
69
69
|
registerListTasks
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-UIAYIZNR.js";
|
|
71
71
|
import {
|
|
72
72
|
registerUpdateTask
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-OSPZOCPU.js";
|
|
74
74
|
import {
|
|
75
75
|
registerCreateReminder
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-AL7JZARP.js";
|
|
77
77
|
import {
|
|
78
78
|
registerListReminders
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-Q7TTJD4A.js";
|
|
80
80
|
import {
|
|
81
81
|
completeReminder,
|
|
82
82
|
createReminder,
|
|
83
83
|
listReminders
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-VRKPBY6D.js";
|
|
85
85
|
import {
|
|
86
86
|
status
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-5KUJDZ3J.js";
|
|
88
88
|
import {
|
|
89
89
|
TOKENS_PER_IDLE_MINUTE,
|
|
90
90
|
countKillsSince,
|
|
91
91
|
sumTokensSavedSince
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-XEN5RMGU.js";
|
|
93
93
|
import {
|
|
94
94
|
getAgentSpend
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-2GUTGEFX.js";
|
|
96
96
|
import {
|
|
97
97
|
createSchedule,
|
|
98
98
|
parseHumanCron
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-L3JRSHHU.js";
|
|
100
100
|
import {
|
|
101
101
|
exportGraphHTML,
|
|
102
102
|
generateGraphReport
|
|
@@ -108,10 +108,10 @@ import {
|
|
|
108
108
|
import {
|
|
109
109
|
formatReport,
|
|
110
110
|
runAudit
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-LHMOPUZE.js";
|
|
112
112
|
import {
|
|
113
113
|
runHealthCheck
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-K23KJITV.js";
|
|
115
115
|
import {
|
|
116
116
|
hasFailures,
|
|
117
117
|
runHealth,
|
|
@@ -120,27 +120,27 @@ import {
|
|
|
120
120
|
import {
|
|
121
121
|
findSimilarTrajectories,
|
|
122
122
|
hashSignature
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-TME75K53.js";
|
|
124
124
|
import {
|
|
125
125
|
deactivateBehavior,
|
|
126
126
|
listBehaviorsByDomain,
|
|
127
127
|
listSharedSkills,
|
|
128
128
|
storeBehavior
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-GCB4MHTG.js";
|
|
130
130
|
import {
|
|
131
131
|
countUnconsolidated,
|
|
132
132
|
groupMemories,
|
|
133
133
|
runConsolidation,
|
|
134
134
|
selectUnconsolidated
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-6M65LFNM.js";
|
|
136
136
|
import {
|
|
137
137
|
renderClientCOOTemplate
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-PE6NCL7A.js";
|
|
139
139
|
import {
|
|
140
140
|
deactivateGlobalProcedure,
|
|
141
141
|
loadGlobalProcedures,
|
|
142
142
|
storeGlobalProcedure
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-Y3Z6QHUR.js";
|
|
144
144
|
import {
|
|
145
145
|
PLATFORM_PROCEDURES
|
|
146
146
|
} from "./chunk-MWRHXGAB.js";
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
cloudSync,
|
|
150
150
|
getCloudReuploadRequired,
|
|
151
151
|
markCloudReuploadRequired
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-MLL5ICNL.js";
|
|
153
153
|
import {
|
|
154
154
|
encryptSyncBlob,
|
|
155
155
|
isSyncCryptoInitialized
|
|
@@ -167,20 +167,20 @@ import {
|
|
|
167
167
|
} from "./chunk-LWJ4AMMY.js";
|
|
168
168
|
import {
|
|
169
169
|
updateTask
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-KUPUTWQX.js";
|
|
171
171
|
import {
|
|
172
172
|
fastDbInit
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-7E6ZBXO7.js";
|
|
174
174
|
import {
|
|
175
175
|
MAX_CONCURRENT_WORKERS
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-3RJBXMWJ.js";
|
|
177
177
|
import {
|
|
178
178
|
hybridSearch,
|
|
179
179
|
recentRecords
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-KSOPUPQX.js";
|
|
181
181
|
import {
|
|
182
182
|
getActiveAgent
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-LVEOCWPL.js";
|
|
184
184
|
import {
|
|
185
185
|
attachDocumentMetadata,
|
|
186
186
|
flushBatch,
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
reserveVersions,
|
|
189
189
|
vectorToBlob,
|
|
190
190
|
writeMemory
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-DWLDYEGO.js";
|
|
192
192
|
import {
|
|
193
193
|
getMySession,
|
|
194
194
|
resolveExeSession,
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
sessionScopeFilter,
|
|
197
197
|
updateTaskStatus,
|
|
198
198
|
writeCheckpoint
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-OC7Q4LOK.js";
|
|
200
200
|
import {
|
|
201
201
|
listSessions
|
|
202
202
|
} from "./chunk-64WZEXXA.js";
|
|
@@ -216,7 +216,7 @@ import {
|
|
|
216
216
|
assertEmployeeLimit,
|
|
217
217
|
assertFeature,
|
|
218
218
|
assertMemoryLimit
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-3OGN523Z.js";
|
|
220
220
|
import {
|
|
221
221
|
getProjectName
|
|
222
222
|
} from "./chunk-OPU3NYOO.js";
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
isScheduledTrigger,
|
|
230
230
|
loadTriggers,
|
|
231
231
|
sanitizeParam
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-ZYETFCDX.js";
|
|
233
233
|
import {
|
|
234
234
|
pushConversationToCRM
|
|
235
235
|
} from "./chunk-GCNWCYJI.js";
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
loadEmployeesSync,
|
|
250
250
|
saveEmployees,
|
|
251
251
|
updateIdentity
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-2G2KOWBI.js";
|
|
253
253
|
import {
|
|
254
254
|
getMasterKey
|
|
255
255
|
} from "./chunk-6D23UNXU.js";
|
|
@@ -1453,7 +1453,7 @@ async function handleSupersede(input) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
try {
|
|
1455
1455
|
const { getClient: getClient2 } = await import("./lib/database.js");
|
|
1456
|
-
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-
|
|
1456
|
+
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-IVY5D7DJ.js");
|
|
1457
1457
|
const { writeMemory: writeMemory2, flushBatch: flushBatch2 } = await import("./lib/store.js");
|
|
1458
1458
|
const { randomUUID: randomUUID2 } = await import("crypto");
|
|
1459
1459
|
const client = getClient2();
|
|
@@ -1562,9 +1562,9 @@ function registerMemory(server) {
|
|
|
1562
1562
|
return handleSupersede(input);
|
|
1563
1563
|
}
|
|
1564
1564
|
if (action === "core_get" || action === "core_set" || action === "core_delete") {
|
|
1565
|
-
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-
|
|
1565
|
+
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-IVY5D7DJ.js");
|
|
1566
1566
|
const { agentId } = getActiveAgent2();
|
|
1567
|
-
const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-
|
|
1567
|
+
const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-KL5BOUXU.js");
|
|
1568
1568
|
if (action === "core_get") {
|
|
1569
1569
|
const entries = await getCoreMemory(agentId);
|
|
1570
1570
|
const block = formatCoreMemoryBlock(entries);
|
|
@@ -2173,7 +2173,7 @@ function registerResumeEmployee(server) {
|
|
|
2173
2173
|
};
|
|
2174
2174
|
}
|
|
2175
2175
|
try {
|
|
2176
|
-
const { isTmuxSessionAlive } = await import("./tasks-crud-
|
|
2176
|
+
const { isTmuxSessionAlive } = await import("./tasks-crud-3UCNTXKQ.js");
|
|
2177
2177
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
2178
2178
|
for (const row of openTasks.rows) {
|
|
2179
2179
|
const status2 = String(row.status);
|
|
@@ -3214,8 +3214,8 @@ function registerIngestDocument(server) {
|
|
|
3214
3214
|
},
|
|
3215
3215
|
async (input) => {
|
|
3216
3216
|
try {
|
|
3217
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
3218
|
-
const { assertMemoryLimit: assertMemoryLimit2 } = await import("./plan-limits-
|
|
3217
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-LEM76SOQ.js");
|
|
3218
|
+
const { assertMemoryLimit: assertMemoryLimit2 } = await import("./plan-limits-LEM76SOQ.js");
|
|
3219
3219
|
await assertFeature2("wiki");
|
|
3220
3220
|
await assertMemoryLimit2();
|
|
3221
3221
|
const result3 = await ingestDocument(input);
|
|
@@ -5335,7 +5335,7 @@ async function getAgentSessionLoad() {
|
|
|
5335
5335
|
return { sessions: [], totalLive: 0, busySessions: 0, idleSessions: 0 };
|
|
5336
5336
|
}
|
|
5337
5337
|
const { getClient: getClient2 } = await import("./lib/database.js");
|
|
5338
|
-
const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-
|
|
5338
|
+
const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-XXPTORGS.js");
|
|
5339
5339
|
const client = getClient2();
|
|
5340
5340
|
const scope = sessionScopeFilter2();
|
|
5341
5341
|
for (const s of liveAgentSessions) {
|
|
@@ -6928,7 +6928,7 @@ function registerCreateTrigger(server) {
|
|
|
6928
6928
|
}
|
|
6929
6929
|
},
|
|
6930
6930
|
async ({ name, event, conditions, actions, project, enabled, schedule, query }) => {
|
|
6931
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
6931
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-LEM76SOQ.js");
|
|
6932
6932
|
const gatedActions = {
|
|
6933
6933
|
send_whatsapp: "external_agents",
|
|
6934
6934
|
update_wiki: "wiki"
|
|
@@ -7832,7 +7832,7 @@ function registerConfig(server) {
|
|
|
7832
7832
|
const existing = loadEmployeesSync2();
|
|
7833
7833
|
if (existing.some((e) => e.name === employeeName)) return errorResult8(`Employee "${employeeName}" already exists.`);
|
|
7834
7834
|
try {
|
|
7835
|
-
const { assertEmployeeLimit: assertEmployeeLimit2 } = await import("./plan-limits-
|
|
7835
|
+
const { assertEmployeeLimit: assertEmployeeLimit2 } = await import("./plan-limits-LEM76SOQ.js");
|
|
7836
7836
|
await assertEmployeeLimit2();
|
|
7837
7837
|
} catch (e) {
|
|
7838
7838
|
return errorResult8(e instanceof Error ? e.message : "Employee limit reached.");
|
|
@@ -7847,12 +7847,12 @@ function registerConfig(server) {
|
|
|
7847
7847
|
try {
|
|
7848
7848
|
const { getTemplate: getIdentityTemplate, getTemplateForTitle } = await import("./lib/identity-templates.js");
|
|
7849
7849
|
const { identityPath } = await import("./lib/identity.js");
|
|
7850
|
-
const { existsSync:
|
|
7850
|
+
const { existsSync: existsSync11, mkdirSync: mkdirSync4, writeFileSync: writeFileSync5 } = await import("fs");
|
|
7851
7851
|
const path18 = await import("path");
|
|
7852
7852
|
const template = getIdentityTemplate(role) ?? getTemplateForTitle(role);
|
|
7853
7853
|
const idPath = identityPath(employeeName);
|
|
7854
7854
|
const dir = path18.dirname(idPath);
|
|
7855
|
-
if (!
|
|
7855
|
+
if (!existsSync11(dir)) mkdirSync4(dir, { recursive: true });
|
|
7856
7856
|
if (template) {
|
|
7857
7857
|
writeFileSync5(idPath, template.replace(/^agent_id: \w+/m, `agent_id: ${employeeName}`), "utf-8");
|
|
7858
7858
|
} else {
|
|
@@ -7873,7 +7873,7 @@ You are ${employeeName}. Role: ${role}.`, "utf-8");
|
|
|
7873
7873
|
}
|
|
7874
7874
|
try {
|
|
7875
7875
|
const { generateSessionWrappers } = await import("./lib/session-wrappers.js");
|
|
7876
|
-
const { resolvePackageRoot } = await import("./installer-
|
|
7876
|
+
const { resolvePackageRoot } = await import("./installer-L72MRJPI.js");
|
|
7877
7877
|
generateSessionWrappers(resolvePackageRoot());
|
|
7878
7878
|
} catch {
|
|
7879
7879
|
}
|
|
@@ -7909,7 +7909,7 @@ function registerListWikiPages(server) {
|
|
|
7909
7909
|
}
|
|
7910
7910
|
},
|
|
7911
7911
|
async ({ workspace, folder }) => {
|
|
7912
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
7912
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-LEM76SOQ.js");
|
|
7913
7913
|
await assertFeature2("wiki");
|
|
7914
7914
|
const apiUrl = process.env.EXE_WIKI_API_URL;
|
|
7915
7915
|
const apiKey = process.env.EXE_WIKI_API_KEY;
|
|
@@ -8009,7 +8009,7 @@ function registerGetWikiPage(server) {
|
|
|
8009
8009
|
}
|
|
8010
8010
|
},
|
|
8011
8011
|
async ({ workspace, document_id, title }) => {
|
|
8012
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
8012
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-LEM76SOQ.js");
|
|
8013
8013
|
await assertFeature2("wiki");
|
|
8014
8014
|
const apiUrl = process.env.EXE_WIKI_API_URL;
|
|
8015
8015
|
const apiKey = process.env.EXE_WIKI_API_KEY;
|
|
@@ -8204,7 +8204,7 @@ function registerWiki(server) {
|
|
|
8204
8204
|
if (!legacyToolName) return errorResult9(`Unknown wiki action: ${String(input.action)}`);
|
|
8205
8205
|
const { action: _action, user_id, ...legacyArgs } = input;
|
|
8206
8206
|
if (user_id && legacyArgs.workspace) {
|
|
8207
|
-
const { checkWikiAccess } = await import("./wiki-acl-
|
|
8207
|
+
const { checkWikiAccess } = await import("./wiki-acl-ZRCU7XYC.js");
|
|
8208
8208
|
const { allowed } = await checkWikiAccess(
|
|
8209
8209
|
String(user_id),
|
|
8210
8210
|
String(legacyArgs.workspace),
|
|
@@ -9375,7 +9375,7 @@ function registerWorkflowTool(server) {
|
|
|
9375
9375
|
getWorkflowInstance,
|
|
9376
9376
|
listWorkflowInstances,
|
|
9377
9377
|
approveWorkflowStep
|
|
9378
|
-
} = await import("./workflow-engine-
|
|
9378
|
+
} = await import("./workflow-engine-GA7JS7X2.js");
|
|
9379
9379
|
try {
|
|
9380
9380
|
switch (input.action) {
|
|
9381
9381
|
case "create_workflow": {
|
|
@@ -10256,8 +10256,20 @@ function registerSupportTools(server) {
|
|
|
10256
10256
|
|
|
10257
10257
|
// src/mcp/tools/cli-parity.ts
|
|
10258
10258
|
import { execFile as execFile2 } from "child_process";
|
|
10259
|
+
import { existsSync as existsSync10 } from "fs";
|
|
10260
|
+
import { dirname, join as join2, parse as pathParse } from "path";
|
|
10261
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
10259
10262
|
import { promisify as promisify2 } from "util";
|
|
10260
10263
|
import { z as z87 } from "zod";
|
|
10264
|
+
function findPackageRoot() {
|
|
10265
|
+
let dir = dirname(fileURLToPath2(import.meta.url));
|
|
10266
|
+
const { root } = pathParse(dir);
|
|
10267
|
+
while (dir !== root) {
|
|
10268
|
+
if (existsSync10(join2(dir, "package.json"))) return dir;
|
|
10269
|
+
dir = dirname(dir);
|
|
10270
|
+
}
|
|
10271
|
+
throw new Error("Cannot find package root");
|
|
10272
|
+
}
|
|
10261
10273
|
var execFileAsync2 = promisify2(execFile2);
|
|
10262
10274
|
async function runCommand(command, args, timeout = 6e4) {
|
|
10263
10275
|
const printable = [command, ...args].join(" ");
|
|
@@ -10372,20 +10384,7 @@ function registerCliParityTools(server) {
|
|
|
10372
10384
|
description: "Check npm for an available exe-os update without installing it.",
|
|
10373
10385
|
inputSchema: {}
|
|
10374
10386
|
}, async () => {
|
|
10375
|
-
|
|
10376
|
-
const { existsSync: existsSync10 } = await import("fs");
|
|
10377
|
-
const { dirname, join: join2, parse } = await import("path");
|
|
10378
|
-
if (!existsSync10(join2(packageRoot, "package.json"))) {
|
|
10379
|
-
let dir = dirname(new URL(import.meta.url).pathname);
|
|
10380
|
-
const { root } = parse(dir);
|
|
10381
|
-
while (dir !== root) {
|
|
10382
|
-
if (existsSync10(join2(dir, "package.json"))) {
|
|
10383
|
-
packageRoot = dir;
|
|
10384
|
-
break;
|
|
10385
|
-
}
|
|
10386
|
-
dir = dirname(dir);
|
|
10387
|
-
}
|
|
10388
|
-
}
|
|
10387
|
+
const packageRoot = findPackageRoot();
|
|
10389
10388
|
const info = checkForUpdate(packageRoot);
|
|
10390
10389
|
const text3 = info.error ? `Update check failed: ${info.error}` : info.updateAvailable ? `Update available: v${info.localVersion} \u2192 v${info.remoteVersion}` : `exe-os is up to date (v${info.localVersion})`;
|
|
10391
10390
|
return result2(text3, { ok: !info.error, ...info }, Boolean(info.error));
|
|
@@ -10555,7 +10554,7 @@ function registerCodeContext(server) {
|
|
|
10555
10554
|
const index = buildCodeContextIndex(opts);
|
|
10556
10555
|
let graphExtract;
|
|
10557
10556
|
try {
|
|
10558
|
-
const { autoExtractGraphEntities } = await import("./graph-auto-extract-
|
|
10557
|
+
const { autoExtractGraphEntities } = await import("./graph-auto-extract-UI374EYL.js");
|
|
10559
10558
|
graphExtract = await autoExtractGraphEntities(opts.projectRoot);
|
|
10560
10559
|
} catch {
|
|
10561
10560
|
}
|
|
@@ -3099,6 +3099,18 @@ async function ensureSchema() {
|
|
|
3099
3099
|
} catch (e) {
|
|
3100
3100
|
logCatchDebug("migration", e);
|
|
3101
3101
|
}
|
|
3102
|
+
for (const col of [
|
|
3103
|
+
"use_count INTEGER DEFAULT 0",
|
|
3104
|
+
"success_count INTEGER DEFAULT 0",
|
|
3105
|
+
"last_used_at TEXT",
|
|
3106
|
+
"last_refined_at TEXT"
|
|
3107
|
+
]) {
|
|
3108
|
+
try {
|
|
3109
|
+
await client.execute({ sql: `ALTER TABLE behaviors ADD COLUMN ${col}`, args: [] });
|
|
3110
|
+
} catch (e) {
|
|
3111
|
+
logCatchDebug("migration", e);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3102
3114
|
}
|
|
3103
3115
|
var disposeTurso = disposeDatabase;
|
|
3104
3116
|
async function disposeDatabase() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionScopeFilter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OC7Q4LOK.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/git-task-sweep.ts
|
|
6
6
|
import { execSync } from "child_process";
|
|
@@ -178,7 +178,7 @@ async function sweepTasks(projectName, options = {}) {
|
|
|
178
178
|
}
|
|
179
179
|
if (!dryRun) {
|
|
180
180
|
try {
|
|
181
|
-
const { updateTaskStatus } = await import("./tasks-crud-
|
|
181
|
+
const { updateTaskStatus } = await import("./tasks-crud-3UCNTXKQ.js");
|
|
182
182
|
await updateTaskStatus({
|
|
183
183
|
taskId: task.id,
|
|
184
184
|
status: "needs_review",
|
|
@@ -111,7 +111,7 @@ function releaseBackfillLock() {
|
|
|
111
111
|
}
|
|
112
112
|
async function getTaskAwareCapacity() {
|
|
113
113
|
const { getClient } = await import("./lib/database.js");
|
|
114
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
114
|
+
const { sessionScopeFilter } = await import("./task-scope-XXPTORGS.js");
|
|
115
115
|
const client = getClient();
|
|
116
116
|
const scope = sessionScopeFilter();
|
|
117
117
|
const result = await client.execute({
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./chunk-MLXJ5EZG.js";
|
|
4
4
|
import {
|
|
5
5
|
createTask
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KUPUTWQX.js";
|
|
7
7
|
import {
|
|
8
8
|
getActiveAgent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LVEOCWPL.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureEmployee,
|
|
12
12
|
logTaskDispatch,
|
|
13
13
|
resolveExeSession
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OC7Q4LOK.js";
|
|
15
15
|
import {
|
|
16
16
|
getLicenseSync
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3OGN523Z.js";
|
|
18
18
|
import {
|
|
19
19
|
getAgentContext
|
|
20
20
|
} from "./chunk-GJV3WDWM.js";
|
|
21
21
|
import {
|
|
22
22
|
isCoordinatorName
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2G2KOWBI.js";
|
|
24
24
|
|
|
25
25
|
// src/mcp/tools/create-task.ts
|
|
26
26
|
import { z } from "zod";
|
|
@@ -185,7 +185,7 @@ function registerCreateTask(server) {
|
|
|
185
185
|
let projectConflictOpts = {};
|
|
186
186
|
try {
|
|
187
187
|
const { getClient } = await import("./lib/database.js");
|
|
188
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
188
|
+
const { sessionScopeFilter } = await import("./task-scope-XXPTORGS.js");
|
|
189
189
|
const client = getClient();
|
|
190
190
|
const scope = sessionScopeFilter();
|
|
191
191
|
const existing = await client.execute({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
recordSessionKill
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XEN5RMGU.js";
|
|
4
4
|
import {
|
|
5
5
|
updateTask
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KUPUTWQX.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureEmployee,
|
|
9
9
|
extractRootExe,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
sessionScopeFilter,
|
|
15
15
|
strictSessionScopeFilter,
|
|
16
16
|
writeNotification
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OC7Q4LOK.js";
|
|
18
18
|
import {
|
|
19
19
|
queueIntercom
|
|
20
20
|
} from "./chunk-TXSJ2L5O.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-64WZEXXA.js";
|
|
24
24
|
import {
|
|
25
25
|
getTransport
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A7KEWR6S.js";
|
|
27
27
|
import {
|
|
28
28
|
listTmuxSessions,
|
|
29
29
|
parseContextPercentage
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
baseAgentName,
|
|
33
33
|
isCoordinatorName,
|
|
34
34
|
shouldAutoInstance
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2G2KOWBI.js";
|
|
36
36
|
import {
|
|
37
37
|
loadConfigSync
|
|
38
38
|
} from "./chunk-TOWAZ5IV.js";
|
|
@@ -518,17 +518,14 @@ async function pollOrphanedTasks(deps, nowMs = Date.now()) {
|
|
|
518
518
|
process.stderr.write("[daemon-orch] list tmux sessions for orphan poll: " + (e instanceof Error ? e.message : String(e)) + "\n");
|
|
519
519
|
return [];
|
|
520
520
|
}
|
|
521
|
-
const
|
|
522
|
-
const liveAgentScopeCounts = /* @__PURE__ */ new Map();
|
|
521
|
+
const liveAgentScopedCounts = /* @__PURE__ */ new Map();
|
|
523
522
|
for (const session of liveSessions) {
|
|
524
523
|
const agent = deps.parseAgentFromSession(session);
|
|
525
524
|
if (agent) {
|
|
526
|
-
|
|
527
|
-
const scope =
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
liveAgentScopeCounts.set(scopeKey, (liveAgentScopeCounts.get(scopeKey) ?? 0) + 1);
|
|
531
|
-
}
|
|
525
|
+
const dashIdx = session.indexOf("-");
|
|
526
|
+
const scope = dashIdx >= 0 ? session.slice(dashIdx + 1) : session;
|
|
527
|
+
const scopedKey = `${agent}::${scope}`;
|
|
528
|
+
liveAgentScopedCounts.set(scopedKey, (liveAgentScopedCounts.get(scopedKey) ?? 0) + 1);
|
|
532
529
|
}
|
|
533
530
|
}
|
|
534
531
|
const coordinatorSessions = liveSessions.filter((s) => isExeSession(s));
|
|
@@ -560,15 +557,13 @@ async function pollOrphanedTasks(deps, nowMs = Date.now()) {
|
|
|
560
557
|
for (const [key, tasks] of agentTasks) {
|
|
561
558
|
const agentId = key.split("::")[0];
|
|
562
559
|
const sessionScope = tasks[0].sessionScope;
|
|
563
|
-
const scopeKey = `${agentId}::${sessionScope}`;
|
|
564
|
-
const scopedRunning = liveAgentScopeCounts.get(scopeKey) ?? 0;
|
|
565
560
|
if (!shouldAutoWake({
|
|
566
561
|
agentId,
|
|
567
|
-
hasRunningSession:
|
|
562
|
+
hasRunningSession: liveAgentScopedCounts.has(key),
|
|
568
563
|
lastSpawnMs: _autoWakeLastSpawn.get(key) ?? 0,
|
|
569
564
|
nowMs,
|
|
570
565
|
cooldownMs: AUTO_WAKE_COOLDOWN_MS,
|
|
571
|
-
runningInstances:
|
|
566
|
+
runningInstances: liveAgentScopedCounts.get(key) ?? 0,
|
|
572
567
|
pendingTaskGroups: tasks.length
|
|
573
568
|
})) {
|
|
574
569
|
continue;
|
|
@@ -764,18 +759,36 @@ async function cleanupStaleReviews(deps) {
|
|
|
764
759
|
function createStaleReviewRealDeps(getClient) {
|
|
765
760
|
return {
|
|
766
761
|
queryStaleReviews: async (thresholdDays) => {
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
projectName: null,
|
|
773
|
-
orderBy: "updated_at ASC",
|
|
774
|
-
limit: 1e3,
|
|
775
|
-
extraConditions: ["updated_at < datetime('now', '-' || ? || ' days')"],
|
|
776
|
-
extraArgs: [String(thresholdDays)]
|
|
762
|
+
const client = getClient();
|
|
763
|
+
const scopeRows = await client.execute({
|
|
764
|
+
sql: `SELECT DISTINCT session_scope FROM tasks
|
|
765
|
+
WHERE session_scope IS NOT NULL AND status NOT IN ('closed', 'cancelled')`,
|
|
766
|
+
args: []
|
|
777
767
|
});
|
|
778
|
-
|
|
768
|
+
const scopes = scopeRows.rows.map((r) => r.session_scope ? String(r.session_scope) : null);
|
|
769
|
+
scopes.push(null);
|
|
770
|
+
const allRows = [];
|
|
771
|
+
for (const scope of scopes) {
|
|
772
|
+
const rows = await queryTaskRows({
|
|
773
|
+
status: "needs_review",
|
|
774
|
+
columns: "id, title, assigned_to, updated_at",
|
|
775
|
+
sessionScope: scope,
|
|
776
|
+
strictSession: scope !== null,
|
|
777
|
+
projectName: null,
|
|
778
|
+
orderBy: "updated_at ASC",
|
|
779
|
+
limit: 1e3,
|
|
780
|
+
extraConditions: ["updated_at < datetime('now', '-' || ? || ' days')"],
|
|
781
|
+
extraArgs: [String(thresholdDays)]
|
|
782
|
+
});
|
|
783
|
+
allRows.push(...rows);
|
|
784
|
+
}
|
|
785
|
+
const seen = /* @__PURE__ */ new Set();
|
|
786
|
+
return allRows.filter((r) => {
|
|
787
|
+
const id = String(r.id);
|
|
788
|
+
if (seen.has(id)) return false;
|
|
789
|
+
seen.add(id);
|
|
790
|
+
return true;
|
|
791
|
+
}).map((r) => ({
|
|
779
792
|
taskId: String(r.id),
|
|
780
793
|
title: String(r.title),
|
|
781
794
|
assignedTo: String(r.assigned_to),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fastDbInit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7E6ZBXO7.js";
|
|
4
4
|
import {
|
|
5
5
|
sessionScopeFilter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OC7Q4LOK.js";
|
|
7
7
|
import {
|
|
8
8
|
formatStatusAll,
|
|
9
9
|
formatStatusDeep,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getClient,
|
|
15
15
|
isCoordinatorRole,
|
|
16
16
|
loadEmployees
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2G2KOWBI.js";
|
|
18
18
|
import {
|
|
19
19
|
isMainModule
|
|
20
20
|
} from "./chunk-6Y4B3QF6.js";
|