@askexenow/exe-os 0.9.326 → 0.9.327
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/{anthropic-auth-EIGM3FAZ.js → anthropic-auth-S7HEBGUG.js} +1 -1
- package/dist/{backfill-metadata-CE35JGTX.js → backfill-metadata-G4NYR2AR.js} +1 -1
- package/dist/{behaviors-HZ6BIOGX.js → behaviors-MJHQQHA3.js} +2 -2
- 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 +3 -3
- package/dist/bin/cleanup-stale-review-tasks.js +4 -4
- package/dist/bin/cli.js +6 -6
- package/dist/bin/deferred-daemon-restart.js +36 -36
- package/dist/bin/exe-assign.js +1 -1
- package/dist/bin/exe-boot.js +8 -8
- package/dist/bin/exe-cloud.js +3 -3
- package/dist/bin/exe-dispatch.js +4 -4
- package/dist/bin/exe-doctor.js +3 -3
- package/dist/bin/exe-export-behaviors.js +4 -4
- package/dist/bin/exe-forget.js +3 -3
- package/dist/bin/exe-gateway.js +5 -5
- package/dist/bin/exe-heartbeat.js +4 -4
- package/dist/bin/exe-kill.js +6 -6
- package/dist/bin/exe-launch-agent.js +7 -7
- package/dist/bin/exe-pending-messages.js +5 -5
- package/dist/bin/exe-pending-notifications.js +4 -4
- package/dist/bin/exe-pending-reviews.js +4 -4
- package/dist/bin/exe-review.js +5 -5
- package/dist/bin/exe-search.js +2 -2
- package/dist/bin/exe-session-cleanup.js +7 -7
- package/dist/bin/exe-settings.js +3 -3
- package/dist/bin/exe-start-codex.js +4 -4
- package/dist/bin/exe-start-opencode.js +3 -3
- package/dist/bin/exe-status.js +5 -5
- 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/install.js +59 -38
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +1 -1
- package/dist/bin/scan-tasks.js +4 -4
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +1 -1
- package/dist/{capacity-monitor-HVWEYDCG.js → capacity-monitor-VMKR23KP.js} +5 -5
- package/dist/{catchup-brief-YYEVWAZN.js → catchup-brief-VKI6KS2Y.js} +5 -5
- package/dist/{chunk-VCQNILOK.js → chunk-26MWYEOV.js} +3 -3
- package/dist/{chunk-SG6N2YPV.js → chunk-2STMA5XS.js} +1 -1
- package/dist/{chunk-E6TB5MMR.js → chunk-3ZM6ETUZ.js} +3 -3
- package/dist/{chunk-VDHLCILZ.js → chunk-4C6HNTC3.js} +4 -4
- package/dist/{chunk-7A3E5ZWF.js → chunk-4MHWV4OP.js} +1 -1
- package/dist/{chunk-O4FGIGAS.js → chunk-4RRSCGBI.js} +1 -1
- package/dist/{chunk-6APWOKOT.js → chunk-4TATUT6T.js} +1 -1
- package/dist/{chunk-LFRFAGV2.js → chunk-5BVVHNYL.js} +1 -1
- package/dist/{chunk-RULJKRL7.js → chunk-5H46HNHN.js} +7 -7
- package/dist/{chunk-5QYY6QIP.js → chunk-6NM5LLKK.js} +2 -2
- package/dist/{chunk-MDMYOY6A.js → chunk-6PFVY2IQ.js} +40 -6
- package/dist/{chunk-3COTSHKH.js → chunk-7V5EBDP4.js} +1 -1
- package/dist/{chunk-4YDFTZTH.js → chunk-B2GZO7GQ.js} +1 -1
- package/dist/{chunk-FDNYBZPT.js → chunk-CFWPUWBR.js} +1 -1
- package/dist/{chunk-AKQJILJK.js → chunk-CVQLACEJ.js} +1 -1
- package/dist/{chunk-WA6X7HFB.js → chunk-D6WLF65C.js} +2 -2
- package/dist/{chunk-MPF33E6Q.js → chunk-DQBB4E5A.js} +6 -6
- package/dist/{chunk-RXMYEWEC.js → chunk-E2ZJFHUE.js} +1 -1
- package/dist/{chunk-ZDPQTWYD.js → chunk-HNWJAA6M.js} +5 -5
- package/dist/{chunk-4O7Y6WQX.js → chunk-I5P6HMIR.js} +55 -55
- package/dist/{chunk-V4HBRYKM.js → chunk-JE3LZC4F.js} +1 -1
- package/dist/{chunk-3EA2MF23.js → chunk-JKUG5ENJ.js} +7 -7
- package/dist/{chunk-HAQUN74P.js → chunk-K5VC65BV.js} +2 -2
- package/dist/{chunk-I5YP6SUP.js → chunk-KDIX5B6B.js} +1 -1
- package/dist/{chunk-F4PFF7ZI.js → chunk-KXEGPANT.js} +1 -1
- package/dist/{chunk-H6WYBKVG.js → chunk-NAWS3DP6.js} +56 -0
- package/dist/{chunk-POAG6MGC.js → chunk-OA7JEC62.js} +1 -1
- package/dist/{chunk-LBG3TRZX.js → chunk-Q34ZIJDB.js} +1 -1
- package/dist/{chunk-HO5VLDK4.js → chunk-Q5H6BGUN.js} +1 -1
- package/dist/{chunk-YUFM7I7D.js → chunk-QRWK4SCC.js} +2 -2
- package/dist/{chunk-2G7MNOP2.js → chunk-RDRZYP2F.js} +1 -1
- package/dist/{chunk-F7DI6PDD.js → chunk-SSIW3H6B.js} +1 -1
- package/dist/{chunk-4IVWTJDR.js → chunk-TFR447JP.js} +1 -1
- package/dist/{chunk-BNCE4226.js → chunk-TTXESWLS.js} +37 -15
- package/dist/{chunk-CF2PNIN2.js → chunk-UA6BK6MR.js} +2 -2
- package/dist/{chunk-4TXRUGPA.js → chunk-VGMACSEV.js} +4 -1
- package/dist/{chunk-6QTLUPXB.js → chunk-WBOMQSIL.js} +1 -1
- package/dist/{chunk-FYWV3S2F.js → chunk-WFWAGITG.js} +1 -1
- package/dist/{chunk-FKE5HFPR.js → chunk-X23SNB2L.js} +2 -2
- package/dist/{chunk-KYWTZG2U.js → chunk-X4PBMDEL.js} +2 -2
- package/dist/{chunk-ZOMG6FSE.js → chunk-X4QOQGKK.js} +1 -1
- package/dist/{chunk-MMGYRA3H.js → chunk-Z5YHUF4U.js} +1 -1
- package/dist/{cleanup-graph-garbage-IGWP3WQY.js → cleanup-graph-garbage-BIHVTX6G.js} +1 -1
- package/dist/{crm-webhook-QSZYCR6W.js → crm-webhook-JAPAWSFX.js} +2 -2
- package/dist/{cto-delegation-gate-7WG3YIKI.js → cto-delegation-gate-HUYNJDR3.js} +3 -3
- package/dist/{daemon-orchestration-TPZS2O7J.js → daemon-orchestration-2C3IFP24.js} +7 -7
- package/dist/{documents-HTJ5JWXT.js → documents-KD4P3KK3.js} +2 -2
- package/dist/{dreaming-Q3C57VM7.js → dreaming-IILRKU2T.js} +4 -4
- package/dist/{exe-export-OEXUIYKT.js → exe-export-25LGMRBD.js} +3 -3
- package/dist/{exe-import-GEBZ6BIU.js → exe-import-OZRUFUCZ.js} +3 -3
- package/dist/{exe-key-HUYZOUI6.js → exe-key-22QBJYEZ.js} +36 -36
- package/dist/{exe-snapshot-PZ2IFXI6.js → exe-snapshot-XQHMEKWY.js} +6 -6
- package/dist/{fast-db-init-RQLJQFJG.js → fast-db-init-YMAULA2T.js} +1 -1
- package/dist/gateway/index.js +6 -6
- 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 +6 -6
- 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 +4 -4
- package/dist/hooks/post-tool-combined.js +2 -2
- package/dist/hooks/pre-compact.js +5 -5
- package/dist/hooks/pre-tool-use.js +64 -14
- package/dist/hooks/prompt-submit.js +15 -15
- package/dist/hooks/session-end.js +7 -7
- package/dist/hooks/session-start.js +15 -10
- package/dist/hooks/stop.js +7 -7
- package/dist/hooks/subagent-stop.js +41 -17
- package/dist/hooks/summary-worker.js +7 -7
- package/dist/index.js +11 -11
- package/dist/{intercom-queue-4B2S5UR5.js → intercom-queue-ICTUFK7B.js} +3 -3
- package/dist/lib/cloud-sync.js +3 -3
- package/dist/lib/consolidation.js +3 -3
- package/dist/lib/exe-daemon.js +34 -34
- package/dist/lib/hybrid-search.js +2 -2
- package/dist/lib/messaging.js +4 -4
- package/dist/lib/schedules.js +2 -2
- package/dist/lib/skill-learning.js +3 -3
- package/dist/lib/store.js +1 -1
- package/dist/lib/tasks.js +5 -5
- package/dist/lib/tmux-routing.js +3 -3
- package/dist/mcp/register-tools.js +35 -35
- package/dist/mcp/server.js +36 -36
- package/dist/mcp/tools/create-task.js +6 -6
- package/dist/mcp/tools/deactivate-behavior.js +3 -3
- package/dist/mcp/tools/list-tasks.js +6 -6
- package/dist/mcp/tools/send-message.js +5 -5
- package/dist/mcp/tools/update-task.js +6 -6
- package/dist/{memory-cards-NCNSZRNK.js → memory-cards-LUEGLUID.js} +1 -1
- package/dist/{memory-pressure-watchdog-UX4XMMP6.js → memory-pressure-watchdog-TW64VHUL.js} +4 -4
- package/dist/{notifications-O2GZIMSH.js → notifications-EASXB2JE.js} +3 -3
- package/dist/{orchestrator-5JIQZQ5G.js → orchestrator-4SXBCLQV.js} +4 -4
- package/dist/{pipeline-router-JMKG24IL.js → pipeline-router-3SFCDHEK.js} +1 -1
- package/dist/{projection-worker-UCMUBSR3.js → projection-worker-G7RGIGRS.js} +1 -1
- package/dist/{reranker-NDRQJ3W6.js → reranker-CSBCUD3K.js} +1 -1
- package/dist/{retrieval-health-RWWVBLYS.js → retrieval-health-CIGIAIPO.js} +2 -2
- package/dist/{review-polling-3XGQGAZT.js → review-polling-TT7AJ5G3.js} +4 -4
- package/dist/runtime/index.js +5 -5
- package/dist/{self-query-router-EJ3ZWUOK.js → self-query-router-TWBB22QR.js} +2 -2
- package/dist/{session-events-RYV6U25T.js → session-events-XFBSFPQ4.js} +4 -4
- package/dist/{session-kill-telemetry-PDV5AT74.js → session-kill-telemetry-F3U42ZOH.js} +4 -4
- package/dist/{session-scope-EWPUHO7C.js → session-scope-SFJKNTYS.js} +3 -3
- package/dist/{setup-wizard-ZZUNU3YM.js → setup-wizard-J6IU42MO.js} +1 -1
- package/dist/{skill-refinement-TU54OAT7.js → skill-refinement-32URPZ6C.js} +1 -1
- package/dist/{task-enforcement-BIOCLX7K.js → task-enforcement-H7PIZQ32.js} +4 -4
- package/dist/{task-scope-SUWJ7NLW.js → task-scope-TJKJNOIY.js} +3 -3
- package/dist/{tasks-crud-ZFTYVPD3.js → tasks-crud-DH7KNBNH.js} +3 -3
- package/dist/{tasks-notify-VXHGONXH.js → tasks-notify-MXKDKJCJ.js} +4 -4
- package/dist/{tasks-review-MUHMWDLT.js → tasks-review-YWYNSD7S.js} +3 -3
- package/dist/{telemetry-upload-4NCZC5IX.js → telemetry-upload-6NWWX5TW.js} +1 -1
- package/dist/tui/App.js +9 -9
- package/dist/{tui-data-235ICHCM.js → tui-data-AURSEMGY.js} +3 -3
- package/dist/{worker-gate-CEVF4IZZ.js → worker-gate-TKGFTWNW.js} +1 -1
- package/dist/{workflow-engine-AGYTVD5E.js → workflow-engine-5GGI26XG.js} +2 -2
- package/dist/{worktree-B6YQISX7.js → worktree-XZRXYDOZ.js} +1 -1
- package/dist/{worktree-sweep-SEYVSPLG.js → worktree-sweep-PRRFGQD4.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +20 -22
- /package/dist/{chunk-WN5XF24Y.js → chunk-EXWHDHHZ.js} +0 -0
- /package/dist/{chunk-QGJAR4HP.js → chunk-IE2R3NJO.js} +0 -0
- /package/dist/{chunk-O5JGX347.js → chunk-LUNBOAYW.js} +0 -0
- /package/dist/{chunk-4WAJZ2HV.js → chunk-MPIYQUJS.js} +0 -0
- /package/dist/{chunk-XFMHIDL4.js → chunk-TADPFDZ4.js} +0 -0
- /package/dist/{chunk-NUVHBQM3.js → chunk-XZBQ6QJB.js} +0 -0
- /package/dist/{core-memory-3PQC5CJG.js → core-memory-MIS5DKJ4.js} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exportOrchestration,
|
|
3
3
|
importOrchestration,
|
|
4
4
|
validatePackage
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KDIX5B6B.js";
|
|
6
6
|
import {
|
|
7
7
|
runDriftProbes
|
|
8
8
|
} from "./chunk-OVHMZ2MP.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
ingestDocument,
|
|
15
15
|
listDocumentsByWorkspace,
|
|
16
16
|
updateChunksImportance
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WFWAGITG.js";
|
|
18
18
|
import {
|
|
19
19
|
analyzeBlastRadius,
|
|
20
20
|
buildCodeContextIndex,
|
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
} from "./chunk-3NGQ35WZ.js";
|
|
30
30
|
import {
|
|
31
31
|
DreamingEngine
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TFR447JP.js";
|
|
33
33
|
import {
|
|
34
34
|
isRerankerAvailable,
|
|
35
35
|
rerankWithScores
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-IE2R3NJO.js";
|
|
37
37
|
import {
|
|
38
38
|
getEntityByName,
|
|
39
39
|
getEntityNeighbors,
|
|
@@ -44,10 +44,10 @@ import {
|
|
|
44
44
|
} from "./chunk-CRCB5S7I.js";
|
|
45
45
|
import {
|
|
46
46
|
AUTO_WAKE_MAX_RETRIES
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5H46HNHN.js";
|
|
48
48
|
import {
|
|
49
49
|
listRecentSessionEvents
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-KXEGPANT.js";
|
|
51
51
|
import {
|
|
52
52
|
DEFAULT_EXPLORE_DURATION_MS,
|
|
53
53
|
getPlayMode,
|
|
@@ -74,10 +74,10 @@ import {
|
|
|
74
74
|
} from "./chunk-32SXNM3G.js";
|
|
75
75
|
import {
|
|
76
76
|
createOrRefreshResumeTask
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-X4PBMDEL.js";
|
|
78
78
|
import {
|
|
79
79
|
registerUpdateTask
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-K5VC65BV.js";
|
|
81
81
|
import {
|
|
82
82
|
registerCreateReminder
|
|
83
83
|
} from "./chunk-ZMVYTOFT.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
} from "./chunk-QITLEPNC.js";
|
|
90
90
|
import {
|
|
91
91
|
registerDeactivateBehavior
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-2STMA5XS.js";
|
|
93
93
|
import {
|
|
94
94
|
completeReminder,
|
|
95
95
|
createReminder,
|
|
@@ -97,28 +97,28 @@ import {
|
|
|
97
97
|
} from "./chunk-L7NKIZCZ.js";
|
|
98
98
|
import {
|
|
99
99
|
registerSendMessage
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-Q5H6BGUN.js";
|
|
101
101
|
import {
|
|
102
102
|
registerCreateTask
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-26MWYEOV.js";
|
|
104
104
|
import {
|
|
105
105
|
registerListTasks
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-CVQLACEJ.js";
|
|
107
107
|
import {
|
|
108
108
|
TOKENS_PER_IDLE_MINUTE,
|
|
109
109
|
countKillsSince,
|
|
110
110
|
sumTokensSavedSince
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-X4QOQGKK.js";
|
|
112
112
|
import {
|
|
113
113
|
registerImportConversations
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-5BVVHNYL.js";
|
|
115
115
|
import {
|
|
116
116
|
createSchedule,
|
|
117
117
|
parseHumanCron
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-CFWPUWBR.js";
|
|
119
119
|
import {
|
|
120
120
|
status
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-QRWK4SCC.js";
|
|
122
122
|
import {
|
|
123
123
|
getAgentSpend
|
|
124
124
|
} from "./chunk-7YWGURD6.js";
|
|
@@ -140,11 +140,11 @@ import {
|
|
|
140
140
|
formatReport,
|
|
141
141
|
runAudit,
|
|
142
142
|
shouldFixShards
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-3ZM6ETUZ.js";
|
|
144
144
|
import {
|
|
145
145
|
formatDegradations,
|
|
146
146
|
getRetrievalHealth
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-B2GZO7GQ.js";
|
|
148
148
|
import {
|
|
149
149
|
hasFailures,
|
|
150
150
|
runHealth,
|
|
@@ -174,14 +174,14 @@ import {
|
|
|
174
174
|
cloudSync,
|
|
175
175
|
getCloudReuploadRequired,
|
|
176
176
|
markCloudReuploadRequired
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-4TATUT6T.js";
|
|
178
178
|
import {
|
|
179
179
|
createARecord
|
|
180
180
|
} from "./chunk-X2Z5GT3V.js";
|
|
181
181
|
import {
|
|
182
182
|
findSimilarTrajectories,
|
|
183
183
|
hashSignature
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-7V5EBDP4.js";
|
|
185
185
|
import {
|
|
186
186
|
GHOST_BEHAVIOR_SQL,
|
|
187
187
|
deactivateBehavior,
|
|
@@ -190,13 +190,13 @@ import {
|
|
|
190
190
|
reactivateBehavior,
|
|
191
191
|
storeBehavior,
|
|
192
192
|
storeReflexBehavior
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-RDRZYP2F.js";
|
|
194
194
|
import {
|
|
195
195
|
countUnconsolidated,
|
|
196
196
|
groupMemories,
|
|
197
197
|
runConsolidation,
|
|
198
198
|
selectUnconsolidated
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-HNWJAA6M.js";
|
|
200
200
|
import {
|
|
201
201
|
entityId,
|
|
202
202
|
mergeEntities
|
|
@@ -213,17 +213,17 @@ import {
|
|
|
213
213
|
} from "./chunk-5RACW3LX.js";
|
|
214
214
|
import {
|
|
215
215
|
updateTask
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-DQBB4E5A.js";
|
|
217
217
|
import {
|
|
218
218
|
fastDbInit
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-LUNBOAYW.js";
|
|
220
220
|
import {
|
|
221
221
|
MAX_CONCURRENT_WORKERS
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-Q34ZIJDB.js";
|
|
223
223
|
import {
|
|
224
224
|
hybridSearch,
|
|
225
225
|
recentRecords
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-JKUG5ENJ.js";
|
|
227
227
|
import {
|
|
228
228
|
buildFtsMatch,
|
|
229
229
|
tokenizeForFts
|
|
@@ -233,7 +233,7 @@ import {
|
|
|
233
233
|
flushBatch,
|
|
234
234
|
initStore,
|
|
235
235
|
writeMemory
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-JE3LZC4F.js";
|
|
237
237
|
import {
|
|
238
238
|
getActiveAgent
|
|
239
239
|
} from "./chunk-PQ5Y34JU.js";
|
|
@@ -245,7 +245,7 @@ import {
|
|
|
245
245
|
sessionScopeFilter,
|
|
246
246
|
updateTaskStatus,
|
|
247
247
|
writeCheckpoint
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-6PFVY2IQ.js";
|
|
249
249
|
import {
|
|
250
250
|
listSessions
|
|
251
251
|
} from "./chunk-KG77M4XU.js";
|
|
@@ -287,7 +287,7 @@ import {
|
|
|
287
287
|
isScheduledTrigger,
|
|
288
288
|
loadTriggers,
|
|
289
289
|
sanitizeParam
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-TADPFDZ4.js";
|
|
291
291
|
import {
|
|
292
292
|
pushConversationToCRM
|
|
293
293
|
} from "./chunk-ML4S5SHZ.js";
|
|
@@ -514,7 +514,7 @@ function registerRecallMyMemory(server) {
|
|
|
514
514
|
}) => {
|
|
515
515
|
try {
|
|
516
516
|
if (!isInitialized()) {
|
|
517
|
-
const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-
|
|
517
|
+
const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-YMAULA2T.js");
|
|
518
518
|
await fastDbInit2();
|
|
519
519
|
}
|
|
520
520
|
if (!recent && !query) {
|
|
@@ -1961,7 +1961,7 @@ function registerMemory(server) {
|
|
|
1961
1961
|
if (action === "core_get" || action === "core_set" || action === "core_delete") {
|
|
1962
1962
|
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-3X5P2EOX.js");
|
|
1963
1963
|
const { agentId } = getActiveAgent2();
|
|
1964
|
-
const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-
|
|
1964
|
+
const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-MIS5DKJ4.js");
|
|
1965
1965
|
if (action === "core_get") {
|
|
1966
1966
|
const entries = await getCoreMemory(agentId);
|
|
1967
1967
|
const block = formatCoreMemoryBlock(entries);
|
|
@@ -2013,7 +2013,7 @@ function registerMemory(server) {
|
|
|
2013
2013
|
if (!storeTrigger || !storeTriggerAction) {
|
|
2014
2014
|
return errorResult('memory action "store" with kind="reflex" requires trigger and trigger_action fields');
|
|
2015
2015
|
}
|
|
2016
|
-
const { formatReflexContent, storeReflexBehavior: storeReflexBehavior2 } = await import("./behaviors-
|
|
2016
|
+
const { formatReflexContent, storeReflexBehavior: storeReflexBehavior2 } = await import("./behaviors-MJHQQHA3.js");
|
|
2017
2017
|
const reflexText = formatReflexContent(storeTrigger, storeTriggerAction);
|
|
2018
2018
|
legacyArgs.text ??= reflexText;
|
|
2019
2019
|
legacyArgs.query ??= reflexText;
|
|
@@ -2555,8 +2555,8 @@ ${preflightWarnings.join("\n")}`;
|
|
|
2555
2555
|
if (mergeNote) text5 += mergeNote;
|
|
2556
2556
|
if (status2 === "closed" && assignee) {
|
|
2557
2557
|
try {
|
|
2558
|
-
const { cleanupAgentWorktree } = await import("./worktree-sweep-
|
|
2559
|
-
const { getGitRoot } = await import("./worktree-
|
|
2558
|
+
const { cleanupAgentWorktree } = await import("./worktree-sweep-PRRFGQD4.js");
|
|
2559
|
+
const { getGitRoot } = await import("./worktree-XZRXYDOZ.js");
|
|
2560
2560
|
const repoRoot = getGitRoot(baseDir);
|
|
2561
2561
|
if (repoRoot) {
|
|
2562
2562
|
const cleanupNotes = cleanupAgentWorktree(repoRoot, assignee);
|
|
@@ -2605,8 +2605,8 @@ ${preflightWarnings.join("\n")}`;
|
|
|
2605
2605
|
} catch {
|
|
2606
2606
|
}
|
|
2607
2607
|
try {
|
|
2608
|
-
const { cleanupAgentWorktree } = await import("./worktree-sweep-
|
|
2609
|
-
const { getGitRoot } = await import("./worktree-
|
|
2608
|
+
const { cleanupAgentWorktree } = await import("./worktree-sweep-PRRFGQD4.js");
|
|
2609
|
+
const { getGitRoot } = await import("./worktree-XZRXYDOZ.js");
|
|
2610
2610
|
const root = getGitRoot(_baseDir);
|
|
2611
2611
|
if (root) {
|
|
2612
2612
|
const notes = cleanupAgentWorktree(root, _assignee);
|
|
@@ -2709,7 +2709,7 @@ function registerResumeEmployee(server) {
|
|
|
2709
2709
|
},
|
|
2710
2710
|
async ({ agent_id, project_name }) => {
|
|
2711
2711
|
if (!isInitialized()) {
|
|
2712
|
-
const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-
|
|
2712
|
+
const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-YMAULA2T.js");
|
|
2713
2713
|
await fastDbInit2();
|
|
2714
2714
|
}
|
|
2715
2715
|
const client = getClient();
|
|
@@ -2735,7 +2735,7 @@ function registerResumeEmployee(server) {
|
|
|
2735
2735
|
};
|
|
2736
2736
|
}
|
|
2737
2737
|
try {
|
|
2738
|
-
const { isTmuxSessionAlive } = await import("./tasks-crud-
|
|
2738
|
+
const { isTmuxSessionAlive } = await import("./tasks-crud-DH7KNBNH.js");
|
|
2739
2739
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
2740
2740
|
for (const row of openTasks.rows) {
|
|
2741
2741
|
const status2 = String(row.status);
|
|
@@ -2763,7 +2763,7 @@ function registerResumeEmployee(server) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
let checkpointInfo = "";
|
|
2765
2765
|
try {
|
|
2766
|
-
const { readLatestCheckpoint } = await import("./tasks-crud-
|
|
2766
|
+
const { readLatestCheckpoint } = await import("./tasks-crud-DH7KNBNH.js");
|
|
2767
2767
|
const checkpoint = await readLatestCheckpoint(agent_id);
|
|
2768
2768
|
if (checkpoint) {
|
|
2769
2769
|
const filesTouched = checkpoint.files_touched?.length > 0 ? checkpoint.files_touched.join(", ") : "none";
|
|
@@ -3179,7 +3179,7 @@ function registerTask(server) {
|
|
|
3179
3179
|
const missing2 = missingRequiredFields2(args, REQUIRED_FIELDS2.create_group);
|
|
3180
3180
|
if (missing2.length > 0) return errorResult2(`task action "create_group" missing required field(s): ${missing2.join(", ")}`);
|
|
3181
3181
|
try {
|
|
3182
|
-
const { createTaskGroup } = await import("./tasks-crud-
|
|
3182
|
+
const { createTaskGroup } = await import("./tasks-crud-DH7KNBNH.js");
|
|
3183
3183
|
const group = await createTaskGroup({
|
|
3184
3184
|
title: args.title,
|
|
3185
3185
|
coordinator: args.coordinator,
|
|
@@ -3198,7 +3198,7 @@ function registerTask(server) {
|
|
|
3198
3198
|
const missing2 = missingRequiredFields2(args, REQUIRED_FIELDS2.group_status);
|
|
3199
3199
|
if (missing2.length > 0) return errorResult2(`task action "group_status" missing required field(s): ${missing2.join(", ")}`);
|
|
3200
3200
|
try {
|
|
3201
|
-
const { getGroupStatus } = await import("./tasks-crud-
|
|
3201
|
+
const { getGroupStatus } = await import("./tasks-crud-DH7KNBNH.js");
|
|
3202
3202
|
const status2 = await getGroupStatus(args.group_id);
|
|
3203
3203
|
return { content: [{ type: "text", text: JSON.stringify(status2, null, 2) }] };
|
|
3204
3204
|
} catch (err) {
|
|
@@ -3210,7 +3210,7 @@ function registerTask(server) {
|
|
|
3210
3210
|
const missing2 = missingRequiredFields2(args, REQUIRED_FIELDS2.group_results);
|
|
3211
3211
|
if (missing2.length > 0) return errorResult2(`task action "group_results" missing required field(s): ${missing2.join(", ")}`);
|
|
3212
3212
|
try {
|
|
3213
|
-
const { getGroupResults } = await import("./tasks-crud-
|
|
3213
|
+
const { getGroupResults } = await import("./tasks-crud-DH7KNBNH.js");
|
|
3214
3214
|
const results = await getGroupResults(args.group_id);
|
|
3215
3215
|
return { content: [{ type: "text", text: JSON.stringify(results, null, 2) }] };
|
|
3216
3216
|
} catch (err) {
|
|
@@ -4101,7 +4101,7 @@ function registerDocument(server) {
|
|
|
4101
4101
|
const { action: _action, ...legacyArgs } = input;
|
|
4102
4102
|
if (action === "list" && (legacyArgs.workspace_id === void 0 || legacyArgs.workspace_id === null || legacyArgs.workspace_id === "")) {
|
|
4103
4103
|
try {
|
|
4104
|
-
const { resolveDefaultWorkspaceId, listWorkspaces } = await import("./documents-
|
|
4104
|
+
const { resolveDefaultWorkspaceId, listWorkspaces } = await import("./documents-KD4P3KK3.js");
|
|
4105
4105
|
const defaultId = await resolveDefaultWorkspaceId();
|
|
4106
4106
|
if (defaultId) {
|
|
4107
4107
|
legacyArgs.workspace_id = defaultId;
|
|
@@ -5128,7 +5128,7 @@ async function handleTrigger(limit) {
|
|
|
5128
5128
|
if (rows.rows.length === 0) {
|
|
5129
5129
|
return text3("No conversations found to re-process.");
|
|
5130
5130
|
}
|
|
5131
|
-
const { ingest } = await import("./pipeline-router-
|
|
5131
|
+
const { ingest } = await import("./pipeline-router-3SFCDHEK.js");
|
|
5132
5132
|
const results = [];
|
|
5133
5133
|
for (const row of rows.rows) {
|
|
5134
5134
|
const r = row;
|
|
@@ -5995,7 +5995,7 @@ async function handleCleanupGarbage(args) {
|
|
|
5995
5995
|
const doMerge = !garbageOnly;
|
|
5996
5996
|
let mod;
|
|
5997
5997
|
try {
|
|
5998
|
-
mod = await import("./cleanup-graph-garbage-
|
|
5998
|
+
mod = await import("./cleanup-graph-garbage-BIHVTX6G.js");
|
|
5999
5999
|
} catch (err) {
|
|
6000
6000
|
return errorResult7(`cleanup_garbage: failed to load cleanup module \u2014 ${err instanceof Error ? err.message : String(err)}`);
|
|
6001
6001
|
}
|
|
@@ -6578,7 +6578,7 @@ function registerGetDaemonHealth(server) {
|
|
|
6578
6578
|
lines.push(`| CPU steal | n/a (${cpuSteal.message.slice(0, 60)}) |`);
|
|
6579
6579
|
}
|
|
6580
6580
|
try {
|
|
6581
|
-
const { getQueryCacheStats } = await import("./self-query-router-
|
|
6581
|
+
const { getQueryCacheStats } = await import("./self-query-router-TWBB22QR.js");
|
|
6582
6582
|
const cache = getQueryCacheStats();
|
|
6583
6583
|
lines.push(`| Query cache size | ${cache.size} / ${cache.maxSize} |`);
|
|
6584
6584
|
lines.push(`| Query cache hit rate | ${cache.hitRate} |`);
|
|
@@ -6854,7 +6854,7 @@ async function getAgentSessionLoad() {
|
|
|
6854
6854
|
return { sessions: [], totalLive: 0, busySessions: 0, idleSessions: 0 };
|
|
6855
6855
|
}
|
|
6856
6856
|
const { getClient: getClient2 } = await import("./lib/database.js");
|
|
6857
|
-
const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-
|
|
6857
|
+
const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-TJKJNOIY.js");
|
|
6858
6858
|
const client = getClient2();
|
|
6859
6859
|
const scope = sessionScopeFilter2();
|
|
6860
6860
|
for (const s of liveAgentSessions) {
|
|
@@ -7220,7 +7220,7 @@ async function cloudStatusText() {
|
|
|
7220
7220
|
if (lastReuploadedAt) lines.push(`- Last re-upload: ${lastReuploadedAt}`);
|
|
7221
7221
|
lines.push("");
|
|
7222
7222
|
try {
|
|
7223
|
-
const { getRetrievalHealth: getRetrievalHealth2, formatDegradations: formatDegradations2 } = await import("./retrieval-health-
|
|
7223
|
+
const { getRetrievalHealth: getRetrievalHealth2, formatDegradations: formatDegradations2 } = await import("./retrieval-health-CIGIAIPO.js");
|
|
7224
7224
|
const h = await getRetrievalHealth2();
|
|
7225
7225
|
lines.push(formatDegradations2(h.degradations, "Health / Degradations"));
|
|
7226
7226
|
lines.push("");
|
|
@@ -9685,7 +9685,7 @@ function buildHandlers5() {
|
|
|
9685
9685
|
}
|
|
9686
9686
|
async function handleDreaming(action, args) {
|
|
9687
9687
|
try {
|
|
9688
|
-
const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-
|
|
9688
|
+
const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-IILRKU2T.js");
|
|
9689
9689
|
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-3X5P2EOX.js");
|
|
9690
9690
|
const { getClient: getClient2 } = await import("./lib/database.js");
|
|
9691
9691
|
const agentId = args.agent_id ?? getActiveAgent2().agentId;
|
|
@@ -9844,7 +9844,7 @@ function registerConfig(server) {
|
|
|
9844
9844
|
}
|
|
9845
9845
|
if (action === "closeout") {
|
|
9846
9846
|
try {
|
|
9847
|
-
const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-
|
|
9847
|
+
const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-IILRKU2T.js");
|
|
9848
9848
|
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-3X5P2EOX.js");
|
|
9849
9849
|
const { writeMemory: writeMemory2, flushBatch: flushBatch2 } = await import("./lib/store.js");
|
|
9850
9850
|
const { randomUUID: randomUUID2 } = await import("crypto");
|
|
@@ -10816,7 +10816,7 @@ Use /exe-forget to remove any that this supersedes.`;
|
|
|
10816
10816
|
}]
|
|
10817
10817
|
};
|
|
10818
10818
|
}
|
|
10819
|
-
const { bulkPurgeGhostBehaviors } = await import("./behaviors-
|
|
10819
|
+
const { bulkPurgeGhostBehaviors } = await import("./behaviors-MJHQQHA3.js");
|
|
10820
10820
|
const res = await bulkPurgeGhostBehaviors({ batchSize: 5e3, vacuum: true });
|
|
10821
10821
|
return {
|
|
10822
10822
|
content: [{
|
|
@@ -10927,7 +10927,7 @@ Use /exe-forget to remove any that this supersedes.`;
|
|
|
10927
10927
|
return { content: [{ type: "text", text: `Behavior not found: ${behavior_id}` }], isError: true };
|
|
10928
10928
|
}
|
|
10929
10929
|
const row2 = result4.rows[0];
|
|
10930
|
-
const { reactivateBehavior: reactivateBehavior2 } = await import("./behaviors-
|
|
10930
|
+
const { reactivateBehavior: reactivateBehavior2 } = await import("./behaviors-MJHQQHA3.js");
|
|
10931
10931
|
const wasReactivated = await reactivateBehavior2(behavior_id);
|
|
10932
10932
|
if (!wasReactivated) {
|
|
10933
10933
|
return { content: [{ type: "text", text: `Behavior ${behavior_id} is already active.` }] };
|
|
@@ -11448,7 +11448,7 @@ function registerWorkflowTool(server) {
|
|
|
11448
11448
|
getWorkflowInstance,
|
|
11449
11449
|
listWorkflowInstances,
|
|
11450
11450
|
approveWorkflowStep
|
|
11451
|
-
} = await import("./workflow-engine-
|
|
11451
|
+
} = await import("./workflow-engine-5GGI26XG.js");
|
|
11452
11452
|
try {
|
|
11453
11453
|
switch (input.action) {
|
|
11454
11454
|
case "create_workflow": {
|
|
@@ -13009,7 +13009,7 @@ function registerCliParityTools(server) {
|
|
|
13009
13009
|
const out = await runCommand("exe-os", ["cloud", "status"], 45e3);
|
|
13010
13010
|
let healthSection = "";
|
|
13011
13011
|
try {
|
|
13012
|
-
const { getRetrievalHealth: getRetrievalHealth2, formatDegradations: formatDegradations2 } = await import("./retrieval-health-
|
|
13012
|
+
const { getRetrievalHealth: getRetrievalHealth2, formatDegradations: formatDegradations2 } = await import("./retrieval-health-CIGIAIPO.js");
|
|
13013
13013
|
const h = await getRetrievalHealth2();
|
|
13014
13014
|
const lines = [
|
|
13015
13015
|
"",
|
|
@@ -14348,7 +14348,7 @@ async function handleOrchestrationHealth() {
|
|
|
14348
14348
|
async function handleWorkMap() {
|
|
14349
14349
|
try {
|
|
14350
14350
|
const { getAgentLivenessReport } = await import("./agent-heartbeat-I5UPGXAU.js");
|
|
14351
|
-
const { classifyRole } = await import("./session-kill-telemetry-
|
|
14351
|
+
const { classifyRole } = await import("./session-kill-telemetry-F3U42ZOH.js");
|
|
14352
14352
|
const { buildSessionDeathSummary } = await import("./orchestration-health-read-EJWVUARG.js");
|
|
14353
14353
|
const { getPaneCwd } = await import("./lib/tmux-status.js");
|
|
14354
14354
|
const live = getAgentLivenessReport();
|
|
@@ -486,7 +486,7 @@ async function flushBatch() {
|
|
|
486
486
|
}
|
|
487
487
|
_nextVersion = baseVersion;
|
|
488
488
|
try {
|
|
489
|
-
const { insertMemoryCardsForBatch } = await import("./memory-cards-
|
|
489
|
+
const { insertMemoryCardsForBatch } = await import("./memory-cards-LUEGLUID.js");
|
|
490
490
|
await insertMemoryCardsForBatch(batch);
|
|
491
491
|
} catch (e) {
|
|
492
492
|
logStoreWarn("catch", e);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
buildStatusFilter,
|
|
9
9
|
buildWikiScopeFilter,
|
|
10
10
|
searchMemories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JE3LZC4F.js";
|
|
12
12
|
import {
|
|
13
13
|
blobToVector
|
|
14
14
|
} from "./chunk-OTVEIJUQ.js";
|
|
@@ -323,7 +323,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
323
323
|
let inferredTerms = [];
|
|
324
324
|
if (config.selfQueryRouter) {
|
|
325
325
|
try {
|
|
326
|
-
const { routeQuery } = await import("./self-query-router-
|
|
326
|
+
const { routeQuery } = await import("./self-query-router-TWBB22QR.js");
|
|
327
327
|
const routed = await routeQuery(queryText, config.selfQueryModel, agentId);
|
|
328
328
|
effectiveQuery = routed.semanticQuery;
|
|
329
329
|
_isBroadQuery = routed.isBroadQuery;
|
|
@@ -359,7 +359,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
359
359
|
let rerankerAvailable = false;
|
|
360
360
|
if (process.env.EXE_IS_DAEMON === "1") {
|
|
361
361
|
try {
|
|
362
|
-
const { isRerankerAvailable } = await import("./reranker-
|
|
362
|
+
const { isRerankerAvailable } = await import("./reranker-CSBCUD3K.js");
|
|
363
363
|
rerankerAvailable = isRerankerAvailable();
|
|
364
364
|
} catch {
|
|
365
365
|
}
|
|
@@ -427,7 +427,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
427
427
|
]).catch(() => []),
|
|
428
428
|
includeStructuredCards ? (async () => {
|
|
429
429
|
try {
|
|
430
|
-
const { searchMemoryCards } = await import("./memory-cards-
|
|
430
|
+
const { searchMemoryCards } = await import("./memory-cards-LUEGLUID.js");
|
|
431
431
|
return await searchMemoryCards(effectiveQuery, agentId, fetchOptions);
|
|
432
432
|
} catch {
|
|
433
433
|
return [];
|
|
@@ -561,7 +561,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
561
561
|
try {
|
|
562
562
|
let rerankedRecords;
|
|
563
563
|
if (graphContextMap.size > 0) {
|
|
564
|
-
const { rerankWithContext } = await import("./reranker-
|
|
564
|
+
const { rerankWithContext } = await import("./reranker-CSBCUD3K.js");
|
|
565
565
|
const candidates = merged.map((m) => ({
|
|
566
566
|
text: m.raw_text,
|
|
567
567
|
context: graphContextMap.get(m.id)
|
|
@@ -569,7 +569,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
569
569
|
const scored = await rerankWithContext(effectiveQuery, candidates, rerankReturnLimit);
|
|
570
570
|
rerankedRecords = scored.map((s) => merged[s.index]);
|
|
571
571
|
} else {
|
|
572
|
-
const { rerank } = await import("./reranker-
|
|
572
|
+
const { rerank } = await import("./reranker-CSBCUD3K.js");
|
|
573
573
|
rerankedRecords = await rerank(effectiveQuery, merged, rerankReturnLimit);
|
|
574
574
|
}
|
|
575
575
|
if (rerankedRecords.length > 0) {
|
|
@@ -939,7 +939,7 @@ async function lightweightSearch(queryText, agentId, options) {
|
|
|
939
939
|
}
|
|
940
940
|
if (options?.includeStructuredCards !== true) return results;
|
|
941
941
|
try {
|
|
942
|
-
const { searchMemoryCards } = await import("./memory-cards-
|
|
942
|
+
const { searchMemoryCards } = await import("./memory-cards-LUEGLUID.js");
|
|
943
943
|
const cardResults = await searchMemoryCards(queryText, agentId, options);
|
|
944
944
|
if (cardResults.length > 0) {
|
|
945
945
|
return rrfMergeMulti([results, cardResults], limit, RRF_K, [1, 0.85]);
|
|
@@ -59,6 +59,49 @@ function ensureWorktree(projectDir, employeeName, instance) {
|
|
|
59
59
|
const wtPath = worktreePath(repoRoot, employeeName, instance);
|
|
60
60
|
const branch = worktreeBranch(employeeName, instance);
|
|
61
61
|
if (existsSync(path.join(wtPath, ".git"))) {
|
|
62
|
+
const currentBranch = getWorktreeCurrentBranch(wtPath);
|
|
63
|
+
if (currentBranch !== branch) {
|
|
64
|
+
recordOrchestrationEventBestEffort({
|
|
65
|
+
eventType: "worktree.branch_mismatch",
|
|
66
|
+
source: "worktree.ensureWorktree",
|
|
67
|
+
severity: "warn",
|
|
68
|
+
agentId: employeeName,
|
|
69
|
+
instanceId: instance != null ? String(instance) : null,
|
|
70
|
+
payload: { expectedBranch: branch, actualBranch: currentBranch }
|
|
71
|
+
});
|
|
72
|
+
if (isWorktreeDirty(wtPath)) {
|
|
73
|
+
process.stderr.write(
|
|
74
|
+
`[worktree] Refusing to reuse ${wtPath}: expected branch ${branch}, found ${currentBranch ?? "unknown"} with uncommitted changes
|
|
75
|
+
`
|
|
76
|
+
);
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
try {
|
|
80
|
+
execSync(`git worktree remove "${wtPath}"`, {
|
|
81
|
+
cwd: repoRoot,
|
|
82
|
+
encoding: "utf-8",
|
|
83
|
+
timeout: GIT_TIMEOUT_MS,
|
|
84
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
85
|
+
});
|
|
86
|
+
} catch (err) {
|
|
87
|
+
process.stderr.write(
|
|
88
|
+
`[worktree] Failed to repair branch mismatch for ${employeeName}: ${err instanceof Error ? err.message : String(err)}
|
|
89
|
+
`
|
|
90
|
+
);
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
recordOrchestrationEventBestEffort({
|
|
95
|
+
eventType: "worktree.reused",
|
|
96
|
+
source: "worktree.ensureWorktree",
|
|
97
|
+
agentId: employeeName,
|
|
98
|
+
instanceId: instance != null ? String(instance) : null,
|
|
99
|
+
payload: { branch }
|
|
100
|
+
});
|
|
101
|
+
return wtPath;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (existsSync(path.join(wtPath, ".git")) && getWorktreeCurrentBranch(wtPath) === branch) {
|
|
62
105
|
recordOrchestrationEventBestEffort({
|
|
63
106
|
eventType: "worktree.reused",
|
|
64
107
|
source: "worktree.ensureWorktree",
|
|
@@ -234,6 +277,19 @@ function branchExistsLocally(repoRoot, branch) {
|
|
|
234
277
|
return false;
|
|
235
278
|
}
|
|
236
279
|
}
|
|
280
|
+
function getWorktreeCurrentBranch(wtPath) {
|
|
281
|
+
try {
|
|
282
|
+
const branch = execSync("git branch --show-current", {
|
|
283
|
+
cwd: wtPath,
|
|
284
|
+
encoding: "utf-8",
|
|
285
|
+
timeout: GIT_TIMEOUT_MS,
|
|
286
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
287
|
+
}).trim();
|
|
288
|
+
return branch.length > 0 ? branch : null;
|
|
289
|
+
} catch {
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
237
293
|
function detectMainBranch(repoRoot) {
|
|
238
294
|
for (const candidate of ["main", "master"]) {
|
|
239
295
|
if (branchExistsLocally(repoRoot, candidate)) return candidate;
|
|
@@ -119,7 +119,7 @@ function releaseBackfillLock() {
|
|
|
119
119
|
}
|
|
120
120
|
async function getTaskAwareCapacity() {
|
|
121
121
|
const { getClient } = await import("./lib/database.js");
|
|
122
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
122
|
+
const { sessionScopeFilter } = await import("./task-scope-TJKJNOIY.js");
|
|
123
123
|
const client = getClient();
|
|
124
124
|
const scope = sessionScopeFilter();
|
|
125
125
|
const result = await client.execute({
|