@askexenow/exe-os 0.9.159 → 0.9.161
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-XAA2YRRH.js → active-agent-SLC7NBGT.js} +2 -2
- package/dist/{active-agent-JCODH6ZT.js → active-agent-UKVJCFEF.js} +2 -2
- package/dist/{agentic-ontology-5EIAHTR4.js → agentic-ontology-F4B4DH7M.js} +1 -1
- package/dist/{backfill-metadata-2JEFIROE.js → backfill-metadata-SMFH4EJX.js} +3 -3
- package/dist/{behaviors-IFNDKKZG.js → behaviors-6CNOKKLR.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 +5 -5
- package/dist/bin/backfill-responses.js +5 -5
- package/dist/bin/backfill-vectors.js +6 -6
- package/dist/bin/bulk-sync-postgres.js +5 -5
- package/dist/bin/cleanup-stale-review-tasks.js +5 -5
- package/dist/bin/cli.js +13 -13
- package/dist/bin/customer-readiness.js +3 -3
- package/dist/bin/deferred-daemon-restart.js +102 -0
- package/dist/bin/exe-agent-config.js +1 -1
- package/dist/bin/exe-agent.js +7 -7
- package/dist/bin/exe-assign.js +7 -7
- package/dist/bin/exe-boot.js +12 -12
- package/dist/bin/exe-call.js +3 -3
- package/dist/bin/exe-cloud.js +3 -3
- package/dist/bin/exe-dispatch.js +5 -5
- 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-heartbeat.js +5 -5
- package/dist/bin/exe-kill.js +8 -8
- package/dist/bin/exe-launch-agent.js +24 -9
- package/dist/bin/exe-new-employee.js +5 -5
- package/dist/bin/exe-pending-messages.js +6 -6
- package/dist/bin/exe-pending-notifications.js +5 -5
- package/dist/bin/exe-pending-reviews.js +5 -5
- package/dist/bin/exe-rename.js +3 -3
- package/dist/bin/exe-review.js +7 -7
- package/dist/bin/exe-search.js +4 -4
- package/dist/bin/exe-session-cleanup.js +9 -9
- 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 +6 -6
- package/dist/bin/exe-team.js +2 -2
- package/dist/bin/git-sweep.js +5 -5
- package/dist/bin/graph-backfill.js +3 -3
- package/dist/bin/graph-export.js +4 -4
- package/dist/bin/install.js +70 -207
- 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 +5 -5
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +3 -3
- package/dist/{capacity-monitor-MSQGHO27.js → capacity-monitor-ORRMNHT5.js} +6 -6
- package/dist/{catchup-brief-TSMPWHXT.js → catchup-brief-MTPBB3KF.js} +7 -7
- package/dist/{chunk-VKCFXOWQ.js → chunk-2UO3QD7V.js} +1 -1
- package/dist/{chunk-KUEUXXO4.js → chunk-3U3UYYKE.js} +2 -2
- package/dist/{chunk-XFA26MHB.js → chunk-5G7BZIY3.js} +1 -1
- package/dist/{chunk-UHAED3MM.js → chunk-5OD3AFRW.js} +1 -1
- package/dist/{chunk-7WXL6XVN.js → chunk-5RWZNONS.js} +8 -8
- package/dist/{chunk-GP436PAK.js → chunk-72IIQLQ6.js} +1 -1
- package/dist/{chunk-HI5LPCAS.js → chunk-7OTFGJDW.js} +1 -1
- package/dist/{chunk-AGBFY64D.js → chunk-7RD4YGGJ.js} +1 -1
- package/dist/{chunk-BQMG77YQ.js → chunk-7SGJUQBZ.js} +1 -1
- package/dist/{chunk-SNTCGJAE.js → chunk-7X7HKWH7.js} +36 -15
- package/dist/{chunk-FVQ7BELN.js → chunk-A7HLWPKK.js} +2 -2
- package/dist/{chunk-37KXWPTL.js → chunk-A7SYUJ2W.js} +2 -2
- package/dist/{chunk-IKDK7NXN.js → chunk-BZYHF63H.js} +377 -30
- package/dist/{chunk-IJXYCSUR.js → chunk-CUQGNC3J.js} +2 -2
- package/dist/{chunk-GHB33FOB.js → chunk-D34YDPQA.js} +2 -2
- package/dist/{chunk-5HVWTVZI.js → chunk-DIRYKGUR.js} +3 -3
- package/dist/{chunk-CCOSYMVU.js → chunk-DQMGSEAJ.js} +1 -1
- package/dist/{chunk-PZWRXJBJ.js → chunk-E7HUZQ4W.js} +1 -1
- package/dist/{chunk-TLTQGQCX.js → chunk-FEP36D2I.js} +1 -1
- package/dist/{chunk-BOAP6EJD.js → chunk-FPBEJ2JV.js} +6 -6
- package/dist/{chunk-COUXA2IQ.js → chunk-FRH7EY2Z.js} +1 -1
- package/dist/{chunk-56N5BCXQ.js → chunk-G4FDG3LK.js} +3 -3
- package/dist/{chunk-ARTF7DMV.js → chunk-GFEXQ4NU.js} +2 -2
- package/dist/{chunk-CSTCUDVM.js → chunk-H3KFLVPW.js} +6 -6
- package/dist/{chunk-PQFTZDR4.js → chunk-HWVG6QXM.js} +1 -1
- package/dist/{chunk-SCZJGD2G.js → chunk-I3MRITK2.js} +1 -1
- package/dist/{chunk-H4FB7LB4.js → chunk-I67W2JMW.js} +1 -1
- package/dist/{chunk-NABY2RI6.js → chunk-IH6TK5HJ.js} +2 -2
- package/dist/{chunk-D5PHT3JX.js → chunk-J2Y7UEXH.js} +3 -3
- package/dist/{chunk-SI7P22A5.js → chunk-JKMM7UZH.js} +2 -2
- package/dist/{chunk-PWNIKVDA.js → chunk-KOJIL4NH.js} +1 -1
- package/dist/{chunk-NV3WVFZ2.js → chunk-KOO56JVC.js} +1 -1
- package/dist/{chunk-ACRIYPBC.js → chunk-KZ4AAXWM.js} +6 -6
- package/dist/{chunk-CQFBWHQT.js → chunk-LHLEFNFW.js} +1 -1
- package/dist/{chunk-2PI3WQ47.js → chunk-LJS2OZKR.js} +3 -3
- package/dist/{chunk-F6LDN5XB.js → chunk-MPCICOVG.js} +4 -4
- package/dist/{chunk-3J4AJLED.js → chunk-N27BYKRB.js} +5 -5
- package/dist/{chunk-VLQKYNIO.js → chunk-NOY424XX.js} +3 -3
- package/dist/{chunk-SPG7BS6Y.js → chunk-NP55D5Q6.js} +205 -105
- package/dist/{chunk-RUOLDPIR.js → chunk-O4HT7CKC.js} +1 -1
- package/dist/{chunk-SZERVMKQ.js → chunk-ODN7E7HJ.js} +1 -1
- package/dist/{chunk-TYOB34ZF.js → chunk-OSG4O5TU.js} +1 -1
- package/dist/{chunk-VUBQUWJH.js → chunk-PGXG2JUF.js} +1 -1
- package/dist/{chunk-3H4VU65X.js → chunk-PWMMIGVQ.js} +124 -1
- package/dist/{chunk-EWNH5O2J.js → chunk-QK5MFN77.js} +1 -1
- package/dist/{chunk-EEH5SNIW.js → chunk-S3R2FC6P.js} +3 -3
- package/dist/{chunk-OYQHH5SX.js → chunk-SARHW2CG.js} +109 -58
- package/dist/{chunk-2TKJQR7H.js → chunk-U2KFQTM5.js} +1 -1
- package/dist/{chunk-RSNIF5FB.js → chunk-UXEDBUVW.js} +5 -5
- package/dist/{chunk-7WZXLY52.js → chunk-WY2QFHBB.js} +1 -1
- package/dist/{chunk-VV6X2DRX.js → chunk-YL36L2SN.js} +1 -1
- package/dist/{chunk-RJTIEXYH.js → chunk-Z5OGXSXA.js} +2 -2
- package/dist/{chunk-5ICBFFSQ.js → chunk-Z734KCEG.js} +1 -1
- package/dist/{code-context-index-MPDSDOEL.js → code-context-index-B6VIWPSF.js} +3 -3
- package/dist/{conversation-wiki-populator-HVROKOEU.js → conversation-wiki-populator-YMNIDI4F.js} +1 -1
- package/dist/{crdt-sync-4PA3L6CQ.js → crdt-sync-6BT3YLUU.js} +1 -1
- package/dist/{crm-webhook-5RIOZV43.js → crm-webhook-YVGNLWJH.js} +2 -2
- package/dist/{cto-delegation-gate-WPYOYKCC.js → cto-delegation-gate-ACVGMP5V.js} +4 -4
- package/dist/{daemon-orchestration-WZ3ITBAJ.js → daemon-orchestration-47D3OQQV.js} +21 -7
- package/dist/{exe-drift-6U5ENBOQ.js → exe-drift-ZVZDRDN6.js} +2 -2
- package/dist/{exe-export-CJFBFOBQ.js → exe-export-E6SXUIOV.js} +4 -4
- package/dist/{exe-import-HWP2FOVB.js → exe-import-2ESJXCG6.js} +4 -4
- package/dist/{exe-key-S3Q3Q2LE.js → exe-key-FSNRXDEN.js} +1 -1
- package/dist/{fast-db-init-43JVJVVH.js → fast-db-init-FLMQJFDI.js} +1 -1
- package/dist/gateway/index.js +9 -9
- package/dist/{git-staleness-7PVIPSJZ.js → git-staleness-QSOOMGX3.js} +1 -1
- package/dist/{git-task-sweep-GXSLBPEQ.js → git-task-sweep-A4N5VNCJ.js} +5 -5
- package/dist/{global-procedures-3HLEPJTB.js → global-procedures-A2YYQL6Q.js} +2 -2
- package/dist/{graph-auto-extract-3TBVEMSM.js → graph-auto-extract-WKBJY3NQ.js} +1 -1
- 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 +35 -10
- package/dist/hooks/error-recall.js +5 -5
- package/dist/hooks/exe-heartbeat-hook.js +2 -2
- package/dist/hooks/ingest-worker.js +3 -3
- 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 +6 -6
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +10 -10
- package/dist/hooks/pre-tool-use.js +10 -10
- package/dist/hooks/prompt-submit.js +16 -16
- package/dist/hooks/session-end.js +15 -15
- package/dist/hooks/session-start.js +6 -6
- package/dist/hooks/stop.js +13 -13
- package/dist/hooks/subagent-stop.js +6 -6
- package/dist/hooks/summary-worker.js +13 -13
- package/dist/index.js +14 -14
- package/dist/{installer-ZRARTRW6.js → installer-77L2ACSQ.js} +4 -4
- package/dist/{installer-BX3C5MT7.js → installer-IITLB3YS.js} +4 -4
- package/dist/{installer-STP2Z37F.js → installer-NZGIE6L4.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-daemon-client.js +2 -2
- package/dist/lib/db.js +1 -1
- package/dist/lib/embedder.js +3 -3
- package/dist/lib/employee-templates.js +3 -3
- package/dist/lib/employees.js +1 -1
- package/dist/lib/exe-daemon-client.js +2 -2
- package/dist/lib/exe-daemon.js +79 -26
- package/dist/lib/hybrid-search.js +4 -4
- package/dist/lib/identity.js +1 -1
- package/dist/lib/messaging.js +5 -5
- 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 +5 -5
- package/dist/lib/tmux-routing.js +4 -4
- package/dist/lib/token-spend.js +2 -2
- package/dist/mcp/register-tools.js +46 -46
- package/dist/mcp/server.js +47 -47
- 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 +7 -7
- 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 +7 -7
- package/dist/mcp/tools/send-message.js +7 -7
- package/dist/mcp/tools/update-task.js +6 -6
- package/dist/{mcp-http-config-F7K3FSWG.js → mcp-http-config-GU7ANGPH.js} +2 -2
- package/dist/{memory-cards-B6I5ZGXM.js → memory-cards-MRF3JHTD.js} +1 -1
- package/dist/{memory-poisoning-defense-3ETR5HJJ.js → memory-poisoning-defense-UJ36FZ2U.js} +1 -1
- package/dist/{memory-queue-client-Z4Q3IX77.js → memory-queue-client-LFPZPPQA.js} +3 -3
- package/dist/{memory-reflection-B75N4BRO.js → memory-reflection-6QCSB2MQ.js} +1 -1
- package/dist/{notifications-WNSNHFH6.js → notifications-CSVHULU2.js} +4 -4
- package/dist/{orchestrator-KGIIN4BA.js → orchestrator-PWP2CALB.js} +6 -6
- package/dist/{plan-limits-LTAD6MZH.js → plan-limits-D3VGVCWX.js} +2 -2
- package/dist/{projection-worker-IEDLDFKB.js → projection-worker-QZCUNRFZ.js} +141 -2
- package/dist/{review-polling-MQ3AXSTB.js → review-polling-QH3X4ZGX.js} +5 -5
- package/dist/runtime/index.js +11 -11
- package/dist/{session-events-DUWUFNSD.js → session-events-4GDMLNBG.js} +5 -5
- package/dist/{session-kill-telemetry-SZPQAZS7.js → session-kill-telemetry-XNKGQYME.js} +2 -2
- package/dist/{session-scope-TU7M4FAA.js → session-scope-754VZARX.js} +4 -4
- package/dist/{setup-wizard-B5F7C765.js → setup-wizard-FBWZQGR4.js} +1 -1
- package/dist/{skill-refinement-RRSHVVV7.js → skill-refinement-65EE332E.js} +1 -1
- package/dist/{task-enforcement-6AAUCRFV.js → task-enforcement-Y4BZBB7O.js} +4 -4
- package/dist/{task-scope-3UOAF4QQ.js → task-scope-LMSSAAAY.js} +4 -4
- package/dist/{tasks-crud-NQLF7DVV.js → tasks-crud-GZLBSTH3.js} +4 -4
- package/dist/{tasks-review-K52CYJ3R.js → tasks-review-4MSMRTDM.js} +4 -4
- package/dist/{token-budget-6KUZD2BC.js → token-budget-6YGB6AVB.js} +1 -1
- package/dist/{tool-capability-index-4TT2VIQ2.js → tool-capability-index-6JJN6ZRC.js} +1 -1
- package/dist/{tool-telemetry-TOPP535O.js → tool-telemetry-SYTSDQBL.js} +1 -1
- package/dist/tui/App.js +17 -17
- package/dist/{tui-data-E3XA3HLZ.js → tui-data-XNWZBTZB.js} +4 -4
- package/dist/{wiki-client-NZR7RW4I.js → wiki-client-S6JKY7GG.js} +22 -1
- package/dist/{worker-gate-J5RRT27H.js → worker-gate-ULTQ3WTD.js} +1 -1
- package/dist/{workflow-engine-4U4H4V6K.js → workflow-engine-GKT7HTAK.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +142 -142
- /package/dist/{chunk-5UPBAAPS.js → chunk-2M3CULM3.js} +0 -0
- /package/dist/{chunk-PJI6UVFG.js → chunk-6IUZZMWD.js} +0 -0
- /package/dist/{chunk-33KYUOK2.js → chunk-6NSFB3JH.js} +0 -0
- /package/dist/{chunk-XMYY65PG.js → chunk-ESRI7MFI.js} +0 -0
- /package/dist/{chunk-JTS3IDOY.js → chunk-JYETM4KT.js} +0 -0
- /package/dist/{chunk-MJSWLLSM.js → chunk-KVXP2W2N.js} +0 -0
- /package/dist/{chunk-DHNTMNKR.js → chunk-MGRHSBXO.js} +0 -0
- /package/dist/{chunk-JC7GZZVA.js → chunk-X4X3J6FE.js} +0 -0
- /package/dist/{chunk-NGVIZCGB.js → chunk-ZKALIEHB.js} +0 -0
- /package/dist/{core-memory-TFPUGGWO.js → core-memory-EXKPFVIR.js} +0 -0
- /package/dist/{entity-boost-B7IGG24X.js → entity-boost-GHFPE6A2.js} +0 -0
- /package/dist/{message-queue-client-EMQYHDBK.js → message-queue-client-CHRQYBH5.js} +0 -0
- /package/dist/{wiki-acl-JDBEB5GL.js → wiki-acl-VC237WGO.js} +0 -0
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
flushBatch,
|
|
4
4
|
initStore,
|
|
5
5
|
writeMemory
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-H3KFLVPW.js";
|
|
7
|
+
import "../chunk-2M3CULM3.js";
|
|
8
8
|
import {
|
|
9
9
|
sessionScopeFilter,
|
|
10
10
|
updateTaskStatus
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-7X7HKWH7.js";
|
|
12
12
|
import "../chunk-LOQCOHEW.js";
|
|
13
13
|
import "../chunk-TXSJ2L5O.js";
|
|
14
14
|
import "../chunk-64WZEXXA.js";
|
|
@@ -18,18 +18,18 @@ import "../chunk-GZIAQYGI.js";
|
|
|
18
18
|
import "../chunk-ZQX6UOP6.js";
|
|
19
19
|
import "../chunk-H2CFBUGF.js";
|
|
20
20
|
import "../chunk-NGP6LSV2.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-72IIQLQ6.js";
|
|
22
22
|
import {
|
|
23
23
|
getProjectName
|
|
24
24
|
} from "../chunk-OPU3NYOO.js";
|
|
25
25
|
import "../chunk-CVYC6DUW.js";
|
|
26
26
|
import "../chunk-GJV3WDWM.js";
|
|
27
27
|
import "../chunk-MP2AFCGL.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-2UO3QD7V.js";
|
|
29
29
|
import "../chunk-HYZV25LY.js";
|
|
30
30
|
import {
|
|
31
31
|
getClient
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-JYETM4KT.js";
|
|
33
33
|
import "../chunk-RVSGXGWG.js";
|
|
34
34
|
import "../chunk-FXU7JOXK.js";
|
|
35
35
|
import "../chunk-6D23UNXU.js";
|
|
@@ -138,7 +138,7 @@ try {
|
|
|
138
138
|
`
|
|
139
139
|
);
|
|
140
140
|
try {
|
|
141
|
-
const { createReviewForCompletedTask } = await import("../tasks-review-
|
|
141
|
+
const { createReviewForCompletedTask } = await import("../tasks-review-4MSMRTDM.js");
|
|
142
142
|
await createReviewForCompletedTask(
|
|
143
143
|
{
|
|
144
144
|
id: String(dt.id),
|
|
@@ -175,7 +175,7 @@ try {
|
|
|
175
175
|
if (result.rows.length === 0) process.exit(0);
|
|
176
176
|
let commits = [];
|
|
177
177
|
try {
|
|
178
|
-
const { getRecentCommits } = await import("../git-task-sweep-
|
|
178
|
+
const { getRecentCommits } = await import("../git-task-sweep-A4N5VNCJ.js");
|
|
179
179
|
commits = getRecentCommits(30);
|
|
180
180
|
} catch {
|
|
181
181
|
}
|
|
@@ -188,7 +188,7 @@ try {
|
|
|
188
188
|
const context = row.context ? String(row.context) : void 0;
|
|
189
189
|
if (commits.length > 0) {
|
|
190
190
|
try {
|
|
191
|
-
const { findBestMatch } = await import("../git-task-sweep-
|
|
191
|
+
const { findBestMatch } = await import("../git-task-sweep-A4N5VNCJ.js");
|
|
192
192
|
const match = findBestMatch({ id: taskId, title, context }, commits);
|
|
193
193
|
if (match) {
|
|
194
194
|
try {
|
package/dist/bin/exe-settings.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertSecureEndpoint
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-SARHW2CG.js";
|
|
4
|
+
import "../chunk-KVXP2W2N.js";
|
|
5
5
|
import "../chunk-HOKOOBDL.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_MODELS,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../chunk-NGP6LSV2.js";
|
|
17
17
|
import {
|
|
18
18
|
loadEmployeesSync
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-JYETM4KT.js";
|
|
20
20
|
import "../chunk-RVSGXGWG.js";
|
|
21
21
|
import "../chunk-FXU7JOXK.js";
|
|
22
22
|
import "../chunk-MVMMULOJ.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exportBehaviorsForAgent
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-I67W2JMW.js";
|
|
5
|
+
import "../chunk-7SGJUQBZ.js";
|
|
6
6
|
import {
|
|
7
7
|
disposeStore,
|
|
8
8
|
initStore
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-H3KFLVPW.js";
|
|
10
|
+
import "../chunk-2M3CULM3.js";
|
|
11
11
|
import {
|
|
12
12
|
RUNTIME_TABLE
|
|
13
13
|
} from "../chunk-NGP6LSV2.js";
|
|
@@ -15,7 +15,7 @@ import "../chunk-MP2AFCGL.js";
|
|
|
15
15
|
import {
|
|
16
16
|
baseAgentName,
|
|
17
17
|
loadEmployeesSync
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-JYETM4KT.js";
|
|
19
19
|
import "../chunk-RVSGXGWG.js";
|
|
20
20
|
import "../chunk-FXU7JOXK.js";
|
|
21
21
|
import "../chunk-6D23UNXU.js";
|
|
@@ -206,7 +206,7 @@ async function main() {
|
|
|
206
206
|
await initStore();
|
|
207
207
|
behaviorsPath = await exportBehaviorsForAgent(baseAgent, "");
|
|
208
208
|
try {
|
|
209
|
-
const { loadGlobalProcedures, getGlobalProceduresBlock } = await import("../global-procedures-
|
|
209
|
+
const { loadGlobalProcedures, getGlobalProceduresBlock } = await import("../global-procedures-A2YYQL6Q.js");
|
|
210
210
|
await loadGlobalProcedures();
|
|
211
211
|
const block = getGlobalProceduresBlock();
|
|
212
212
|
if (block) globalProcedures = block;
|
|
@@ -255,8 +255,8 @@ async function main() {
|
|
|
255
255
|
let codexProfileName = null;
|
|
256
256
|
if (exeSessionName) {
|
|
257
257
|
try {
|
|
258
|
-
const { readOrCreateDaemonToken } = await import("../mcp-http-config-
|
|
259
|
-
const { mcpHttpUrl } = await import("../mcp-http-config-
|
|
258
|
+
const { readOrCreateDaemonToken } = await import("../mcp-http-config-GU7ANGPH.js");
|
|
259
|
+
const { mcpHttpUrl } = await import("../mcp-http-config-GU7ANGPH.js");
|
|
260
260
|
const token = readOrCreateDaemonToken();
|
|
261
261
|
const profileContent = [
|
|
262
262
|
`# Auto-generated per-session MCP config for ${memoryAgent} in ${exeSessionName}`,
|
|
@@ -285,12 +285,12 @@ async function main() {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
try {
|
|
288
|
-
const { writeActiveAgent } = await import("../active-agent-
|
|
288
|
+
const { writeActiveAgent } = await import("../active-agent-SLC7NBGT.js");
|
|
289
289
|
writeActiveAgent(memoryAgent, empRole);
|
|
290
290
|
} catch {
|
|
291
291
|
}
|
|
292
292
|
try {
|
|
293
|
-
const { verifyCodexHooks, runCodexInstaller } = await import("../installer-
|
|
293
|
+
const { verifyCodexHooks, runCodexInstaller } = await import("../installer-77L2ACSQ.js");
|
|
294
294
|
if (!verifyCodexHooks()) {
|
|
295
295
|
process.stderr.write("[exe-start-codex] hooks missing \u2014 registering now\n");
|
|
296
296
|
await runCodexInstaller();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exportBehaviorsForAgent
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-I67W2JMW.js";
|
|
5
|
+
import "../chunk-7SGJUQBZ.js";
|
|
6
6
|
import {
|
|
7
7
|
disposeStore,
|
|
8
8
|
initStore
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-H3KFLVPW.js";
|
|
10
|
+
import "../chunk-2M3CULM3.js";
|
|
11
11
|
import {
|
|
12
12
|
RUNTIME_TABLE
|
|
13
13
|
} from "../chunk-NGP6LSV2.js";
|
|
@@ -15,7 +15,7 @@ import "../chunk-MP2AFCGL.js";
|
|
|
15
15
|
import {
|
|
16
16
|
baseAgentName,
|
|
17
17
|
loadEmployeesSync
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-JYETM4KT.js";
|
|
19
19
|
import "../chunk-RVSGXGWG.js";
|
|
20
20
|
import "../chunk-FXU7JOXK.js";
|
|
21
21
|
import "../chunk-6D23UNXU.js";
|
|
@@ -174,12 +174,12 @@ async function main() {
|
|
|
174
174
|
})();
|
|
175
175
|
process.env.AGENT_ROLE = empRole;
|
|
176
176
|
try {
|
|
177
|
-
const { writeActiveAgent } = await import("../active-agent-
|
|
177
|
+
const { writeActiveAgent } = await import("../active-agent-SLC7NBGT.js");
|
|
178
178
|
writeActiveAgent(memoryAgent, empRole);
|
|
179
179
|
} catch {
|
|
180
180
|
}
|
|
181
181
|
try {
|
|
182
|
-
const { verifyOpenCodeHooks, runOpenCodeInstaller } = await import("../installer-
|
|
182
|
+
const { verifyOpenCodeHooks, runOpenCodeInstaller } = await import("../installer-NZGIE6L4.js");
|
|
183
183
|
if (!verifyOpenCodeHooks()) {
|
|
184
184
|
process.stderr.write("[exe-start-opencode] hooks missing \u2014 registering now\n");
|
|
185
185
|
await runOpenCodeInstaller();
|
package/dist/bin/exe-status.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
status
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-LJS2OZKR.js";
|
|
5
|
+
import "../chunk-ZKALIEHB.js";
|
|
6
|
+
import "../chunk-7X7HKWH7.js";
|
|
7
7
|
import "../chunk-LOQCOHEW.js";
|
|
8
8
|
import "../chunk-TXSJ2L5O.js";
|
|
9
9
|
import "../chunk-64WZEXXA.js";
|
|
@@ -13,14 +13,14 @@ import "../chunk-GZIAQYGI.js";
|
|
|
13
13
|
import "../chunk-ZQX6UOP6.js";
|
|
14
14
|
import "../chunk-H2CFBUGF.js";
|
|
15
15
|
import "../chunk-NGP6LSV2.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-72IIQLQ6.js";
|
|
17
17
|
import "../chunk-OPU3NYOO.js";
|
|
18
18
|
import "../chunk-CVYC6DUW.js";
|
|
19
19
|
import "../chunk-GJV3WDWM.js";
|
|
20
20
|
import "../chunk-MP2AFCGL.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-2UO3QD7V.js";
|
|
22
22
|
import "../chunk-HYZV25LY.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-JYETM4KT.js";
|
|
24
24
|
import "../chunk-RVSGXGWG.js";
|
|
25
25
|
import "../chunk-FXU7JOXK.js";
|
|
26
26
|
import "../chunk-MVMMULOJ.js";
|
package/dist/bin/exe-team.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZKALIEHB.js";
|
|
5
5
|
import {
|
|
6
6
|
getClient,
|
|
7
7
|
loadEmployees
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-JYETM4KT.js";
|
|
9
9
|
import "../chunk-RVSGXGWG.js";
|
|
10
10
|
import "../chunk-FXU7JOXK.js";
|
|
11
11
|
import "../chunk-4GXRETYL.js";
|
package/dist/bin/git-sweep.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sweepTasks
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-Z5OGXSXA.js";
|
|
5
|
+
import "../chunk-7X7HKWH7.js";
|
|
6
6
|
import "../chunk-LOQCOHEW.js";
|
|
7
7
|
import "../chunk-TXSJ2L5O.js";
|
|
8
8
|
import "../chunk-64WZEXXA.js";
|
|
@@ -12,14 +12,14 @@ import "../chunk-GZIAQYGI.js";
|
|
|
12
12
|
import "../chunk-ZQX6UOP6.js";
|
|
13
13
|
import "../chunk-H2CFBUGF.js";
|
|
14
14
|
import "../chunk-NGP6LSV2.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-72IIQLQ6.js";
|
|
16
16
|
import "../chunk-OPU3NYOO.js";
|
|
17
17
|
import "../chunk-CVYC6DUW.js";
|
|
18
18
|
import "../chunk-GJV3WDWM.js";
|
|
19
19
|
import "../chunk-MP2AFCGL.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-2UO3QD7V.js";
|
|
21
21
|
import "../chunk-HYZV25LY.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-JYETM4KT.js";
|
|
23
23
|
import "../chunk-RVSGXGWG.js";
|
|
24
24
|
import "../chunk-FXU7JOXK.js";
|
|
25
25
|
import "../chunk-MVMMULOJ.js";
|
|
@@ -11,12 +11,12 @@ import "../chunk-I7AW4237.js";
|
|
|
11
11
|
import {
|
|
12
12
|
disposeStore,
|
|
13
13
|
initStore
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-H3KFLVPW.js";
|
|
15
|
+
import "../chunk-2M3CULM3.js";
|
|
16
16
|
import "../chunk-MP2AFCGL.js";
|
|
17
17
|
import {
|
|
18
18
|
getClient
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-JYETM4KT.js";
|
|
20
20
|
import "../chunk-RVSGXGWG.js";
|
|
21
21
|
import "../chunk-FXU7JOXK.js";
|
|
22
22
|
import "../chunk-6D23UNXU.js";
|
package/dist/bin/graph-export.js
CHANGED
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "../chunk-46SQTBQW.js";
|
|
6
6
|
import {
|
|
7
7
|
fastDbInit
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ZKALIEHB.js";
|
|
9
9
|
import {
|
|
10
10
|
disposeStore
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-H3KFLVPW.js";
|
|
12
|
+
import "../chunk-2M3CULM3.js";
|
|
13
13
|
import "../chunk-MP2AFCGL.js";
|
|
14
14
|
import {
|
|
15
15
|
getClient
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-JYETM4KT.js";
|
|
17
17
|
import "../chunk-RVSGXGWG.js";
|
|
18
18
|
import "../chunk-FXU7JOXK.js";
|
|
19
19
|
import "../chunk-6D23UNXU.js";
|
package/dist/bin/install.js
CHANGED
|
@@ -6,16 +6,20 @@ import {
|
|
|
6
6
|
setupGhostty,
|
|
7
7
|
setupTmux,
|
|
8
8
|
setupWezterm
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-D34YDPQA.js";
|
|
10
10
|
import "../chunk-GNHN5HRQ.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-U2KFQTM5.js";
|
|
12
12
|
import {
|
|
13
13
|
generateSessionWrappers
|
|
14
14
|
} from "../chunk-ZHMQDTGE.js";
|
|
15
15
|
import "../chunk-L3TB7CC3.js";
|
|
16
|
-
import
|
|
16
|
+
import {
|
|
17
|
+
requestDeployRestart,
|
|
18
|
+
updateMcpVersionMarker
|
|
19
|
+
} from "../chunk-PWMMIGVQ.js";
|
|
20
|
+
import "../chunk-2UO3QD7V.js";
|
|
17
21
|
import "../chunk-HYZV25LY.js";
|
|
18
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-JYETM4KT.js";
|
|
19
23
|
import "../chunk-RVSGXGWG.js";
|
|
20
24
|
import "../chunk-FXU7JOXK.js";
|
|
21
25
|
import "../chunk-4GXRETYL.js";
|
|
@@ -23,234 +27,93 @@ import "../chunk-LYH5HE24.js";
|
|
|
23
27
|
import "../chunk-MLKGABMK.js";
|
|
24
28
|
|
|
25
29
|
// src/bin/install.ts
|
|
26
|
-
import { existsSync,
|
|
30
|
+
import { existsSync, openSync, closeSync } from "fs";
|
|
27
31
|
import { spawn, execSync } from "child_process";
|
|
28
32
|
import path from "path";
|
|
29
33
|
import os from "os";
|
|
30
34
|
var homedir = os.homedir;
|
|
31
35
|
var EXE_DIR = path.join(homedir(), ".exe-os");
|
|
32
|
-
function
|
|
36
|
+
function spawnDaemonInline(pkgRoot) {
|
|
37
|
+
const totalGB = os.totalmem() / (1024 * 1024 * 1024);
|
|
38
|
+
if (totalGB <= 8) {
|
|
39
|
+
process.stderr.write(`exe-os: ${totalGB.toFixed(0)}GB system \u2014 skipping daemon spawn
|
|
40
|
+
`);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const daemonPath = path.join(pkgRoot, "dist", "lib", "exe-daemon.js");
|
|
44
|
+
if (!existsSync(daemonPath)) {
|
|
45
|
+
process.stderr.write(`exe-os: daemon not found at ${daemonPath} \u2014 skipping
|
|
46
|
+
`);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const logPath = path.join(EXE_DIR, "exed.log");
|
|
33
50
|
const pidPath = path.join(EXE_DIR, "exed.pid");
|
|
34
51
|
const sockPath = path.join(EXE_DIR, "exed.sock");
|
|
35
|
-
|
|
36
|
-
const restartMarkerPath = path.join(EXE_DIR, "last-daemon-restart");
|
|
52
|
+
let stderrFd = "ignore";
|
|
37
53
|
try {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const existing = JSON.parse(readFileSync(spawnLockPath, "utf8"));
|
|
50
|
-
const age = Date.now() - existing.ts;
|
|
51
|
-
let pidAlive = false;
|
|
52
|
-
try {
|
|
53
|
-
process.kill(existing.pid, 0);
|
|
54
|
-
pidAlive = true;
|
|
55
|
-
} catch {
|
|
56
|
-
}
|
|
57
|
-
isStale = !pidAlive || age >= 6e4;
|
|
58
|
-
} catch {
|
|
59
|
-
isStale = true;
|
|
60
|
-
}
|
|
61
|
-
if (isStale) {
|
|
62
|
-
const tmpName = `${spawnLockPath}.stale-${process.pid}-${Date.now()}`;
|
|
63
|
-
try {
|
|
64
|
-
renameSync(spawnLockPath, tmpName);
|
|
65
|
-
try {
|
|
66
|
-
unlinkSync(tmpName);
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
writeFileSync(spawnLockPath, lockData);
|
|
70
|
-
lockAcquired = true;
|
|
71
|
-
} catch {
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
if (!lockAcquired) {
|
|
75
|
-
process.stderr.write("exe-os: spawn lock held by another process, waiting...\n");
|
|
76
|
-
try {
|
|
77
|
-
execSync("sleep 2");
|
|
78
|
-
} catch {
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
try {
|
|
84
|
-
writeFileSync(restartMarkerPath, String(Date.now()));
|
|
85
|
-
} catch {
|
|
86
|
-
}
|
|
87
|
-
if (existsSync(pidPath)) {
|
|
88
|
-
const pid = parseInt(readFileSync(pidPath, "utf8").trim(), 10);
|
|
89
|
-
if (!isNaN(pid) && pid > 0) {
|
|
90
|
-
try {
|
|
91
|
-
process.kill(pid, "SIGTERM");
|
|
92
|
-
} catch {
|
|
93
|
-
}
|
|
94
|
-
try {
|
|
95
|
-
execSync("sleep 1");
|
|
96
|
-
} catch {
|
|
97
|
-
}
|
|
98
|
-
try {
|
|
99
|
-
process.kill(pid, 0);
|
|
100
|
-
process.kill(pid, "SIGKILL");
|
|
101
|
-
} catch {
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
try {
|
|
105
|
-
unlinkSync(pidPath);
|
|
106
|
-
} catch {
|
|
107
|
-
}
|
|
108
|
-
try {
|
|
109
|
-
unlinkSync(pidPath + ".lock");
|
|
110
|
-
} catch {
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
try {
|
|
114
|
-
const pids = execSync("pgrep -f 'exe-daemon.js' 2>/dev/null || true", { encoding: "utf8" }).trim().split("\n").filter(Boolean).map(Number).filter((n) => !isNaN(n) && n !== process.pid);
|
|
115
|
-
for (const pid of pids) {
|
|
116
|
-
try {
|
|
117
|
-
process.kill(pid, "SIGTERM");
|
|
118
|
-
} catch {
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
if (pids.length > 0) {
|
|
122
|
-
try {
|
|
123
|
-
execSync("sleep 1");
|
|
124
|
-
} catch {
|
|
125
|
-
}
|
|
126
|
-
for (const pid of pids) {
|
|
127
|
-
try {
|
|
128
|
-
process.kill(pid, 0);
|
|
129
|
-
process.kill(pid, "SIGKILL");
|
|
130
|
-
} catch {
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
process.stderr.write(`exe-os: killed ${pids.length} orphaned daemon(s)
|
|
134
|
-
`);
|
|
135
|
-
}
|
|
136
|
-
} catch {
|
|
137
|
-
}
|
|
54
|
+
stderrFd = openSync(logPath, "a");
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
const heapCapMB = Math.max(2048, Math.round(totalGB * 0.33 * 1024));
|
|
58
|
+
const child = spawn(process.execPath, [`--max-old-space-size=${heapCapMB}`, daemonPath], {
|
|
59
|
+
detached: true,
|
|
60
|
+
stdio: ["ignore", "ignore", stderrFd],
|
|
61
|
+
env: { ...process.env, EXE_DAEMON_SOCK: sockPath, EXE_DAEMON_PID: pidPath }
|
|
62
|
+
});
|
|
63
|
+
child.unref();
|
|
64
|
+
if (typeof stderrFd === "number") {
|
|
138
65
|
try {
|
|
139
|
-
|
|
140
|
-
for (const pid of pids) {
|
|
141
|
-
try {
|
|
142
|
-
process.kill(pid, "SIGKILL");
|
|
143
|
-
} catch {
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if (pids.length > 0) {
|
|
147
|
-
process.stderr.write(`exe-os: killed ${pids.length} orphaned backfill worker(s)
|
|
148
|
-
`);
|
|
149
|
-
}
|
|
66
|
+
closeSync(stderrFd);
|
|
150
67
|
} catch {
|
|
151
68
|
}
|
|
69
|
+
}
|
|
70
|
+
const DAEMON_PORT = 48739;
|
|
71
|
+
let healthy = false;
|
|
72
|
+
for (let i = 1; i <= 10; i++) {
|
|
152
73
|
try {
|
|
153
|
-
|
|
154
|
-
writeFileSync(versionPath, `deploy-${Date.now()}`);
|
|
155
|
-
process.stderr.write(`exe-os: MCP version marker updated \u2014 servers will hot-reload within 10s
|
|
156
|
-
`);
|
|
74
|
+
execSync("sleep 1");
|
|
157
75
|
} catch {
|
|
158
76
|
}
|
|
159
77
|
try {
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
unlinkSync(path.join(wpDir, f));
|
|
165
|
-
} catch {
|
|
166
|
-
}
|
|
167
|
-
}
|
|
78
|
+
const resp = execSync(`curl -sf http://127.0.0.1:${DAEMON_PORT}/health 2>/dev/null`, { encoding: "utf8", timeout: 3e3 });
|
|
79
|
+
if (resp.includes("ok") || resp.includes("healthy")) {
|
|
80
|
+
healthy = true;
|
|
81
|
+
break;
|
|
168
82
|
}
|
|
169
83
|
} catch {
|
|
170
84
|
}
|
|
171
|
-
try {
|
|
172
|
-
unlinkSync(sockPath);
|
|
173
|
-
} catch {
|
|
174
|
-
}
|
|
175
|
-
try {
|
|
176
|
-
unlinkSync(spawnLockPath);
|
|
177
|
-
} catch {
|
|
178
|
-
}
|
|
179
|
-
try {
|
|
180
|
-
execSync("sleep 0.5");
|
|
181
|
-
} catch {
|
|
182
|
-
}
|
|
183
|
-
} catch {
|
|
184
85
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
86
|
+
process.stderr.write(healthy ? "exe-os: daemon restarted and healthy\n" : "exe-os: daemon spawned but health check pending\n");
|
|
87
|
+
}
|
|
88
|
+
function restartDaemon() {
|
|
89
|
+
updateMcpVersionMarker();
|
|
90
|
+
const pkgRoot = resolvePackageRoot();
|
|
91
|
+
const deferredScript = path.join(pkgRoot, "dist", "bin", "deferred-daemon-restart.js");
|
|
92
|
+
if (!existsSync(deferredScript)) {
|
|
93
|
+
process.stderr.write("exe-os: deferred restart script not found \u2014 falling back to synchronous restart\n");
|
|
94
|
+
requestDeployRestart("deploy-sync-fallback");
|
|
95
|
+
spawnDaemonInline(pkgRoot);
|
|
191
96
|
return;
|
|
192
97
|
}
|
|
98
|
+
const logPath = path.join(EXE_DIR, "exed.log");
|
|
99
|
+
let stderrFd = "ignore";
|
|
193
100
|
try {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
101
|
+
stderrFd = openSync(logPath, "a");
|
|
102
|
+
} catch {
|
|
103
|
+
}
|
|
104
|
+
const child = spawn(process.execPath, [deferredScript], {
|
|
105
|
+
detached: true,
|
|
106
|
+
stdio: ["ignore", "ignore", stderrFd],
|
|
107
|
+
env: { ...process.env }
|
|
108
|
+
});
|
|
109
|
+
child.unref();
|
|
110
|
+
if (typeof stderrFd === "number") {
|
|
203
111
|
try {
|
|
204
|
-
stderrFd
|
|
112
|
+
closeSync(stderrFd);
|
|
205
113
|
} catch {
|
|
206
114
|
}
|
|
207
|
-
const heapCapMB = totalGB <= 8 ? 256 : Math.max(2048, Math.round(totalGB * 0.33 * 1024));
|
|
208
|
-
const child = spawn(process.execPath, [`--max-old-space-size=${heapCapMB}`, daemonPath], {
|
|
209
|
-
detached: true,
|
|
210
|
-
stdio: ["ignore", "ignore", stderrFd],
|
|
211
|
-
env: {
|
|
212
|
-
...process.env,
|
|
213
|
-
EXE_DAEMON_SOCK: sockPath,
|
|
214
|
-
EXE_DAEMON_PID: pidPath
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
child.unref();
|
|
218
|
-
if (typeof stderrFd === "number") {
|
|
219
|
-
try {
|
|
220
|
-
closeSync(stderrFd);
|
|
221
|
-
} catch {
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
const DAEMON_PORT = 48739;
|
|
225
|
-
let daemonHealthy = false;
|
|
226
|
-
for (let attempt = 1; attempt <= 10; attempt++) {
|
|
227
|
-
try {
|
|
228
|
-
execSync("sleep 1");
|
|
229
|
-
} catch {
|
|
230
|
-
}
|
|
231
|
-
try {
|
|
232
|
-
const healthResp = execSync(
|
|
233
|
-
`curl -sf http://127.0.0.1:${DAEMON_PORT}/health 2>/dev/null`,
|
|
234
|
-
{ encoding: "utf8", timeout: 3e3 }
|
|
235
|
-
);
|
|
236
|
-
if (healthResp.includes("ok") || healthResp.includes("healthy")) {
|
|
237
|
-
daemonHealthy = true;
|
|
238
|
-
break;
|
|
239
|
-
}
|
|
240
|
-
} catch {
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
if (daemonHealthy) {
|
|
244
|
-
process.stderr.write(`exe-os: daemon restarted and healthy
|
|
245
|
-
`);
|
|
246
|
-
} else {
|
|
247
|
-
process.stderr.write(`exe-os: daemon spawned but health check did not pass (may still be starting)
|
|
248
|
-
`);
|
|
249
|
-
}
|
|
250
|
-
} catch (err) {
|
|
251
|
-
process.stderr.write(`exe-os: daemon respawn failed: ${err instanceof Error ? err.message : String(err)}
|
|
252
|
-
`);
|
|
253
115
|
}
|
|
116
|
+
process.stderr.write("exe-os: daemon restart deferred to background (3s delay)\n");
|
|
254
117
|
}
|
|
255
118
|
var args = process.argv.slice(2);
|
|
256
119
|
if (args.includes("--commands-only")) {
|
|
@@ -297,7 +160,7 @@ if (args.includes("--commands-only")) {
|
|
|
297
160
|
}
|
|
298
161
|
try {
|
|
299
162
|
execSync("which codex", { encoding: "utf8", timeout: 5e3 });
|
|
300
|
-
const { runCodexInstaller } = await import("../installer-
|
|
163
|
+
const { runCodexInstaller } = await import("../installer-77L2ACSQ.js");
|
|
301
164
|
await runCodexInstaller();
|
|
302
165
|
} catch {
|
|
303
166
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZKALIEHB.js";
|
|
5
5
|
import "../chunk-MLKGABMK.js";
|
|
6
6
|
|
|
7
7
|
// src/bin/intercom-check.ts
|
|
@@ -17,7 +17,7 @@ async function main() {
|
|
|
17
17
|
}
|
|
18
18
|
if (isCoordinator) {
|
|
19
19
|
try {
|
|
20
|
-
const { listPendingReviews, cleanupOrphanedReviews, formatAge, isStale } = await import("../tasks-review-
|
|
20
|
+
const { listPendingReviews, cleanupOrphanedReviews, formatAge, isStale } = await import("../tasks-review-4MSMRTDM.js");
|
|
21
21
|
const { extractRootExe } = await import("../lib/tmux-routing.js");
|
|
22
22
|
let sessionScope = process.env.EXE_SESSION ? extractRootExe(process.env.EXE_SESSION) ?? void 0 : void 0;
|
|
23
23
|
if (!sessionScope) {
|
|
@@ -96,7 +96,7 @@ async function main() {
|
|
|
96
96
|
}
|
|
97
97
|
if (!isCoordinator) {
|
|
98
98
|
try {
|
|
99
|
-
const { listBehaviors } = await import("../behaviors-
|
|
99
|
+
const { listBehaviors } = await import("../behaviors-6CNOKKLR.js");
|
|
100
100
|
const sessionStart = process.env.EXE_SESSION_START_ISO ?? "";
|
|
101
101
|
if (sessionStart) {
|
|
102
102
|
const behaviors = await listBehaviors(agent);
|
|
@@ -115,7 +115,7 @@ async function main() {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
try {
|
|
118
|
-
const { readUnreadNotifications, markAsRead } = await import("../notifications-
|
|
118
|
+
const { readUnreadNotifications, markAsRead } = await import("../notifications-CSVHULU2.js");
|
|
119
119
|
const { resolveExeSession } = await import("../lib/tmux-routing.js");
|
|
120
120
|
const sessionScope = resolveExeSession();
|
|
121
121
|
const notifications = await readUnreadNotifications(agent, sessionScope);
|