@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,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LVEOCWPL.js";
|
|
5
5
|
import "../chunk-CVYC6DUW.js";
|
|
6
6
|
import "../chunk-GJV3WDWM.js";
|
|
7
7
|
import {
|
|
8
8
|
getIdentityInjection
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-2G2KOWBI.js";
|
|
10
10
|
import "../chunk-EOO32RJZ.js";
|
|
11
11
|
import "../chunk-FXU7JOXK.js";
|
|
12
12
|
import "../chunk-TOWAZ5IV.js";
|
|
@@ -49,7 +49,7 @@ process.stdin.on("end", async () => {
|
|
|
49
49
|
pass = false;
|
|
50
50
|
}
|
|
51
51
|
try {
|
|
52
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
52
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
53
53
|
await fastDbInit();
|
|
54
54
|
const { getClient } = await import("../lib/database.js");
|
|
55
55
|
const client = getClient();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LVEOCWPL.js";
|
|
5
5
|
import "../chunk-CVYC6DUW.js";
|
|
6
6
|
import "../chunk-GJV3WDWM.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-2G2KOWBI.js";
|
|
8
8
|
import "../chunk-EOO32RJZ.js";
|
|
9
9
|
import "../chunk-FXU7JOXK.js";
|
|
10
10
|
import "../chunk-TOWAZ5IV.js";
|
|
@@ -36,7 +36,7 @@ process.stdin.on("end", async () => {
|
|
|
36
36
|
process.exit(0);
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
39
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
40
40
|
await fastDbInit();
|
|
41
41
|
const { getClient } = await import("../lib/database.js");
|
|
42
42
|
const { randomUUID } = await import("crypto");
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LVEOCWPL.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-OC7Q4LOK.js";
|
|
8
8
|
import "../chunk-LOQCOHEW.js";
|
|
9
9
|
import "../chunk-TXSJ2L5O.js";
|
|
10
10
|
import "../chunk-64WZEXXA.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-A7KEWR6S.js";
|
|
12
|
+
import "../chunk-X347L57O.js";
|
|
13
13
|
import "../chunk-GZIAQYGI.js";
|
|
14
14
|
import "../chunk-ZQX6UOP6.js";
|
|
15
15
|
import "../chunk-KIUU4PNX.js";
|
|
16
16
|
import "../chunk-NGP6LSV2.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-3OGN523Z.js";
|
|
18
18
|
import "../chunk-OPU3NYOO.js";
|
|
19
19
|
import "../chunk-CVYC6DUW.js";
|
|
20
20
|
import "../chunk-GJV3WDWM.js";
|
|
21
21
|
import "../chunk-MP2AFCGL.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-IWSXQKSB.js";
|
|
23
23
|
import "../chunk-HYZV25LY.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-2G2KOWBI.js";
|
|
25
25
|
import "../chunk-EOO32RJZ.js";
|
|
26
26
|
import "../chunk-FXU7JOXK.js";
|
|
27
27
|
import "../chunk-NNT2ZNMC.js";
|
|
@@ -67,7 +67,7 @@ ${identity}`);
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
try {
|
|
70
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
70
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
71
71
|
await fastDbInit();
|
|
72
72
|
const { getClient } = await import("../lib/database.js");
|
|
73
73
|
const client = getClient();
|
|
@@ -47,7 +47,7 @@ ${context}`
|
|
|
47
47
|
try {
|
|
48
48
|
const payload = JSON.parse(input);
|
|
49
49
|
const toolName = String(payload.tool_name ?? "");
|
|
50
|
-
const { getActiveAgent } = await import("../active-agent-
|
|
50
|
+
const { getActiveAgent } = await import("../active-agent-JN7A2D2E.js");
|
|
51
51
|
const driftAgent = getActiveAgent();
|
|
52
52
|
if (driftAgent.agentId !== "default" && toolName) {
|
|
53
53
|
const { existsSync: driftExists, readFileSync: driftRead, writeFileSync: driftWrite, mkdirSync: driftMkdir } = await import("fs");
|
|
@@ -106,12 +106,12 @@ You are **${driftAgent.agentId}** (${driftAgent.agentRole}). You've used ${misma
|
|
|
106
106
|
}
|
|
107
107
|
try {
|
|
108
108
|
const data = JSON.parse(input);
|
|
109
|
-
const { getActiveAgent } = await import("../active-agent-
|
|
109
|
+
const { getActiveAgent } = await import("../active-agent-JN7A2D2E.js");
|
|
110
110
|
const { detectError } = await import("../lib/error-detector.js");
|
|
111
111
|
const agent = getActiveAgent();
|
|
112
112
|
try {
|
|
113
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
114
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
113
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
114
|
+
const { recordSessionEvent } = await import("../session-events-NYMENC3B.js");
|
|
115
115
|
const client = await fastDbInit();
|
|
116
116
|
const toolName = String(data.tool_name ?? "unknown");
|
|
117
117
|
const toolInput = JSON.stringify(data.tool_input ?? {});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LVEOCWPL.js";
|
|
5
5
|
import {
|
|
6
6
|
checkpointActiveTask,
|
|
7
7
|
writeContinuityCheckpoint
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-UJ2KUF4C.js";
|
|
9
9
|
import "../chunk-EHXOWGQG.js";
|
|
10
10
|
import "../chunk-EYQIEK5M.js";
|
|
11
11
|
import "../chunk-W6SKR3HZ.js";
|
|
@@ -13,24 +13,24 @@ import "../chunk-3H4VU65X.js";
|
|
|
13
13
|
import "../chunk-K4KAPZC7.js";
|
|
14
14
|
import {
|
|
15
15
|
sessionScopeFilter
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-OC7Q4LOK.js";
|
|
17
17
|
import "../chunk-LOQCOHEW.js";
|
|
18
18
|
import "../chunk-TXSJ2L5O.js";
|
|
19
19
|
import "../chunk-64WZEXXA.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-A7KEWR6S.js";
|
|
21
|
+
import "../chunk-X347L57O.js";
|
|
22
22
|
import "../chunk-GZIAQYGI.js";
|
|
23
23
|
import "../chunk-ZQX6UOP6.js";
|
|
24
24
|
import "../chunk-KIUU4PNX.js";
|
|
25
25
|
import "../chunk-NGP6LSV2.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-3OGN523Z.js";
|
|
27
27
|
import "../chunk-OPU3NYOO.js";
|
|
28
28
|
import "../chunk-CVYC6DUW.js";
|
|
29
29
|
import "../chunk-GJV3WDWM.js";
|
|
30
30
|
import "../chunk-MP2AFCGL.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-IWSXQKSB.js";
|
|
32
32
|
import "../chunk-HYZV25LY.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-2G2KOWBI.js";
|
|
34
34
|
import "../chunk-EOO32RJZ.js";
|
|
35
35
|
import "../chunk-FXU7JOXK.js";
|
|
36
36
|
import "../chunk-NNT2ZNMC.js";
|
|
@@ -60,7 +60,7 @@ process.stdin.on("end", async () => {
|
|
|
60
60
|
const agent = getActiveAgent();
|
|
61
61
|
const sections = [];
|
|
62
62
|
try {
|
|
63
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
63
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
64
64
|
const client = await fastDbInit();
|
|
65
65
|
const projectName = process.cwd().split("/").pop() ?? "unknown";
|
|
66
66
|
const pcScope = sessionScopeFilter();
|
|
@@ -2,32 +2,32 @@ import "../chunk-YSU7JB7H.js";
|
|
|
2
2
|
import "../chunk-SH45SJQW.js";
|
|
3
3
|
import {
|
|
4
4
|
getActiveAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-LVEOCWPL.js";
|
|
6
6
|
import {
|
|
7
7
|
sessionScopeFilter
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-OC7Q4LOK.js";
|
|
9
9
|
import "../chunk-LOQCOHEW.js";
|
|
10
10
|
import "../chunk-TXSJ2L5O.js";
|
|
11
11
|
import "../chunk-64WZEXXA.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-A7KEWR6S.js";
|
|
13
|
+
import "../chunk-X347L57O.js";
|
|
14
14
|
import "../chunk-GZIAQYGI.js";
|
|
15
15
|
import "../chunk-ZQX6UOP6.js";
|
|
16
16
|
import "../chunk-KIUU4PNX.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-3OGN523Z.js";
|
|
19
19
|
import "../chunk-OPU3NYOO.js";
|
|
20
20
|
import {
|
|
21
21
|
getSessionKey
|
|
22
22
|
} from "../chunk-CVYC6DUW.js";
|
|
23
23
|
import "../chunk-GJV3WDWM.js";
|
|
24
24
|
import "../chunk-MP2AFCGL.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-IWSXQKSB.js";
|
|
26
26
|
import "../chunk-HYZV25LY.js";
|
|
27
27
|
import {
|
|
28
28
|
canCoordinate,
|
|
29
29
|
loadEmployeesSync
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-2G2KOWBI.js";
|
|
31
31
|
import "../chunk-EOO32RJZ.js";
|
|
32
32
|
import "../chunk-FXU7JOXK.js";
|
|
33
33
|
import "../chunk-NNT2ZNMC.js";
|
|
@@ -121,6 +121,28 @@ If MCP is down, tell the user: "MCP disconnected. Run /mcp to reconnect."`
|
|
|
121
121
|
process.exit(0);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
+
if (data.tool_name === "Bash") {
|
|
125
|
+
const command = data.tool_input?.command ?? "";
|
|
126
|
+
const killMatch = command.match(/tmux\s+kill-session\s+-t\s+["']?([^\s"']+)/);
|
|
127
|
+
if (killMatch) {
|
|
128
|
+
const targetSession = killMatch[1];
|
|
129
|
+
if (targetSession.includes("-")) {
|
|
130
|
+
const targetScope = targetSession.slice(targetSession.lastIndexOf("-") + 1);
|
|
131
|
+
try {
|
|
132
|
+
const mySession = process.env.EXE_SESSION_NAME ?? "";
|
|
133
|
+
const myScope = mySession.includes("-") ? mySession.slice(mySession.lastIndexOf("-") + 1) : mySession;
|
|
134
|
+
if (myScope && targetScope !== myScope) {
|
|
135
|
+
const output = JSON.stringify({
|
|
136
|
+
systemMessage: `\u{1F6AB} BLOCKED: Cannot kill ${targetSession} \u2014 it belongs to scope ${targetScope}, you are in ${myScope}. Session isolation: you can only kill sessions in your own scope.`
|
|
137
|
+
});
|
|
138
|
+
process.stdout.write(output);
|
|
139
|
+
process.exit(0);
|
|
140
|
+
}
|
|
141
|
+
} catch {
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
124
146
|
if (data.tool_name === "Bash") {
|
|
125
147
|
const command = data.tool_input?.command ?? "";
|
|
126
148
|
const cdMatch = command.match(/\bcd\s+(?:~\/|\/Users\/\w+\/)([\w-]+)/);
|
|
@@ -163,15 +185,15 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
163
185
|
process.exit(0);
|
|
164
186
|
}
|
|
165
187
|
}
|
|
166
|
-
const { getGatedAgent } = await import("../cto-delegation-gate-
|
|
188
|
+
const { getGatedAgent } = await import("../cto-delegation-gate-JDDOHVQL.js");
|
|
167
189
|
const gatedAgent = getGatedAgent();
|
|
168
190
|
if (agent.agentId === gatedAgent && /^(Write|Edit)$/.test(data.tool_name)) {
|
|
169
191
|
const filePath = data.tool_input?.file_path ?? "";
|
|
170
192
|
if (filePath) {
|
|
171
193
|
try {
|
|
172
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
194
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
173
195
|
await fastDbInit();
|
|
174
|
-
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-
|
|
196
|
+
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-JDDOHVQL.js");
|
|
175
197
|
const decision = await evaluateDelegationGate({
|
|
176
198
|
agentId: agent.agentId,
|
|
177
199
|
toolName: data.tool_name,
|
|
@@ -216,7 +238,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
216
238
|
const isUpdateTaskDone = (data.tool_name === "mcp__exe-os__update_task" || data.tool_name === "mcp__exe-mem__update_task") && toolInput.status === "done" && CTO_ROLES.includes(agent.agentRole);
|
|
217
239
|
if (isUpdateTaskDone) {
|
|
218
240
|
try {
|
|
219
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
241
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
220
242
|
const client = await fastDbInit();
|
|
221
243
|
const taskId = String(toolInput.task_id ?? "");
|
|
222
244
|
const ptScope = sessionScopeFilter();
|
|
@@ -274,7 +296,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
274
296
|
}
|
|
275
297
|
if (CTO_ROLES.includes(agent.agentRole) && !hasDelegationFired()) {
|
|
276
298
|
try {
|
|
277
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
299
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
278
300
|
const client = await fastDbInit();
|
|
279
301
|
const dlScope = sessionScopeFilter();
|
|
280
302
|
const result = await client.execute({
|
|
@@ -5,28 +5,28 @@ import "../chunk-YSU7JB7H.js";
|
|
|
5
5
|
import {
|
|
6
6
|
hybridSearch,
|
|
7
7
|
lightweightSearch
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-KSOPUPQX.js";
|
|
9
9
|
import "../chunk-SH45SJQW.js";
|
|
10
10
|
import {
|
|
11
11
|
getActiveAgent
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-LVEOCWPL.js";
|
|
13
13
|
import {
|
|
14
14
|
initStore
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-DWLDYEGO.js";
|
|
16
|
+
import "../chunk-LYMBXTEO.js";
|
|
17
17
|
import {
|
|
18
18
|
isExeSession
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-OC7Q4LOK.js";
|
|
20
20
|
import "../chunk-LOQCOHEW.js";
|
|
21
21
|
import "../chunk-TXSJ2L5O.js";
|
|
22
22
|
import "../chunk-64WZEXXA.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-A7KEWR6S.js";
|
|
24
|
+
import "../chunk-X347L57O.js";
|
|
25
25
|
import "../chunk-GZIAQYGI.js";
|
|
26
26
|
import "../chunk-ZQX6UOP6.js";
|
|
27
27
|
import "../chunk-KIUU4PNX.js";
|
|
28
28
|
import "../chunk-NGP6LSV2.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-3OGN523Z.js";
|
|
30
30
|
import {
|
|
31
31
|
getProjectName
|
|
32
32
|
} from "../chunk-OPU3NYOO.js";
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
} from "../chunk-CVYC6DUW.js";
|
|
36
36
|
import "../chunk-GJV3WDWM.js";
|
|
37
37
|
import "../chunk-MP2AFCGL.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-IWSXQKSB.js";
|
|
39
39
|
import "../chunk-HYZV25LY.js";
|
|
40
40
|
import {
|
|
41
41
|
canCoordinate
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-2G2KOWBI.js";
|
|
43
43
|
import "../chunk-EOO32RJZ.js";
|
|
44
44
|
import "../chunk-FXU7JOXK.js";
|
|
45
45
|
import "../chunk-6D23UNXU.js";
|
|
@@ -269,7 +269,7 @@ ${fresh.map(
|
|
|
269
269
|
atomicWriteSync(counterPath, String(count));
|
|
270
270
|
const BEHAVIOR_REINJECT_INTERVAL = 50;
|
|
271
271
|
if (count === 1 || count % BEHAVIOR_REINJECT_INTERVAL === 0) {
|
|
272
|
-
const { listBehaviors } = await import("../behaviors-
|
|
272
|
+
const { listBehaviors } = await import("../behaviors-4USTCRU7.js");
|
|
273
273
|
const behaviors = await listBehaviors(agent.agentId);
|
|
274
274
|
const active = behaviors.filter((b) => b.active !== 0).sort((a, b) => (a.priority === "p0" ? -1 : 1) - (b.priority === "p0" ? -1 : 1)).slice(0, 15);
|
|
275
275
|
if (active.length > 0) {
|
|
@@ -294,7 +294,7 @@ ${lines.join("\n")}`;
|
|
|
294
294
|
if (!lastCheckedAt) {
|
|
295
295
|
lastCheckedAt = "1970-01-01T00:00:00.000Z";
|
|
296
296
|
}
|
|
297
|
-
const { listBehaviorsSince } = await import("../behaviors-
|
|
297
|
+
const { listBehaviorsSince } = await import("../behaviors-4USTCRU7.js");
|
|
298
298
|
const newBehaviors = await listBehaviorsSince(agent.agentId, lastCheckedAt);
|
|
299
299
|
if (newBehaviors.length > 0) {
|
|
300
300
|
const lines = newBehaviors.map(
|
|
@@ -347,7 +347,7 @@ ${body}`;
|
|
|
347
347
|
let reviewContext = "";
|
|
348
348
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
349
349
|
try {
|
|
350
|
-
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-
|
|
350
|
+
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-IPOWGI4L.js");
|
|
351
351
|
const sessionKey = getSessionKey();
|
|
352
352
|
const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
|
|
353
353
|
let sessionScope;
|
|
@@ -405,7 +405,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
|
|
|
405
405
|
let coreMemoryContext = "";
|
|
406
406
|
if (!IS_CODEX_RUNTIME && agent.agentId !== "default") {
|
|
407
407
|
try {
|
|
408
|
-
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-
|
|
408
|
+
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-KL5BOUXU.js");
|
|
409
409
|
const entries = await getCoreMemory(agent.agentId);
|
|
410
410
|
const block = formatCoreMemoryBlock(entries);
|
|
411
411
|
if (block) coreMemoryContext = block;
|
|
@@ -561,8 +561,8 @@ async function writePromptMemory(prompt, sessionId, agent) {
|
|
|
561
561
|
return;
|
|
562
562
|
}
|
|
563
563
|
try {
|
|
564
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
565
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
564
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
565
|
+
const { recordSessionEvent } = await import("../session-events-NYMENC3B.js");
|
|
566
566
|
const client = await fastDbInit();
|
|
567
567
|
await recordSessionEvent(client, {
|
|
568
568
|
agentId: agent.agentId,
|
|
@@ -6,10 +6,10 @@ import "../chunk-SH45SJQW.js";
|
|
|
6
6
|
import {
|
|
7
7
|
clearActiveAgent,
|
|
8
8
|
getActiveAgent
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-LVEOCWPL.js";
|
|
10
10
|
import {
|
|
11
11
|
writeContinuityCheckpoint
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-UJ2KUF4C.js";
|
|
13
13
|
import "../chunk-EHXOWGQG.js";
|
|
14
14
|
import "../chunk-EYQIEK5M.js";
|
|
15
15
|
import "../chunk-W6SKR3HZ.js";
|
|
@@ -17,28 +17,28 @@ import "../chunk-3H4VU65X.js";
|
|
|
17
17
|
import "../chunk-K4KAPZC7.js";
|
|
18
18
|
import {
|
|
19
19
|
strictSessionScopeFilter
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-OC7Q4LOK.js";
|
|
21
21
|
import "../chunk-LOQCOHEW.js";
|
|
22
22
|
import "../chunk-TXSJ2L5O.js";
|
|
23
23
|
import "../chunk-64WZEXXA.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-A7KEWR6S.js";
|
|
25
|
+
import "../chunk-X347L57O.js";
|
|
26
26
|
import "../chunk-GZIAQYGI.js";
|
|
27
27
|
import "../chunk-ZQX6UOP6.js";
|
|
28
28
|
import "../chunk-KIUU4PNX.js";
|
|
29
29
|
import "../chunk-NGP6LSV2.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-3OGN523Z.js";
|
|
31
31
|
import "../chunk-OPU3NYOO.js";
|
|
32
32
|
import {
|
|
33
33
|
getSessionKey
|
|
34
34
|
} from "../chunk-CVYC6DUW.js";
|
|
35
35
|
import "../chunk-GJV3WDWM.js";
|
|
36
36
|
import "../chunk-MP2AFCGL.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-IWSXQKSB.js";
|
|
38
38
|
import "../chunk-HYZV25LY.js";
|
|
39
39
|
import {
|
|
40
40
|
canCoordinate
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-2G2KOWBI.js";
|
|
42
42
|
import "../chunk-EOO32RJZ.js";
|
|
43
43
|
import "../chunk-FXU7JOXK.js";
|
|
44
44
|
import "../chunk-NNT2ZNMC.js";
|
|
@@ -72,7 +72,7 @@ process.stdin.on("end", async () => {
|
|
|
72
72
|
const agent = getActiveAgent();
|
|
73
73
|
if (agent.agentId !== "default") {
|
|
74
74
|
try {
|
|
75
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
75
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
76
76
|
const client = await fastDbInit();
|
|
77
77
|
const seScope = strictSessionScopeFilter();
|
|
78
78
|
const orphanResult = await client.execute({
|
|
@@ -147,7 +147,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
147
147
|
extraSections
|
|
148
148
|
});
|
|
149
149
|
try {
|
|
150
|
-
const { clearSessionFileReads } = await import("../git-staleness-
|
|
150
|
+
const { clearSessionFileReads } = await import("../git-staleness-SVUTMS2F.js");
|
|
151
151
|
await clearSessionFileReads(data.session_id);
|
|
152
152
|
} catch {
|
|
153
153
|
}
|
|
@@ -161,7 +161,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
161
161
|
);
|
|
162
162
|
let commits = [];
|
|
163
163
|
try {
|
|
164
|
-
const { getRecentCommits } = await import("../git-task-sweep-
|
|
164
|
+
const { getRecentCommits } = await import("../git-task-sweep-EQHX4LXT.js");
|
|
165
165
|
commits = getRecentCommits(30);
|
|
166
166
|
} catch {
|
|
167
167
|
}
|
|
@@ -171,7 +171,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
171
171
|
const title = String(row.title);
|
|
172
172
|
try {
|
|
173
173
|
if (commits.length > 0) {
|
|
174
|
-
const { findBestMatch } = await import("../git-task-sweep-
|
|
174
|
+
const { findBestMatch } = await import("../git-task-sweep-EQHX4LXT.js");
|
|
175
175
|
let context;
|
|
176
176
|
try {
|
|
177
177
|
const ctxResult = await client.execute({
|
|
@@ -215,7 +215,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
215
215
|
parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
|
|
216
216
|
}
|
|
217
217
|
try {
|
|
218
|
-
const { writeNotification } = await import("../notifications-
|
|
218
|
+
const { writeNotification } = await import("../notifications-SF2XN5JE.js");
|
|
219
219
|
await writeNotification({
|
|
220
220
|
agentId: agent.agentId,
|
|
221
221
|
agentRole: agent.agentRole,
|
|
@@ -31,9 +31,9 @@ process.stdin.on("end", async () => {
|
|
|
31
31
|
try {
|
|
32
32
|
const { getClient } = await import("../lib/database.js");
|
|
33
33
|
const { lightweightSearch } = await import("../lib/hybrid-search.js");
|
|
34
|
-
const { getActiveAgent } = await import("../active-agent-
|
|
34
|
+
const { getActiveAgent } = await import("../active-agent-JN7A2D2E.js");
|
|
35
35
|
const { getProjectName } = await import("../project-name-EWG5KAZP.js");
|
|
36
|
-
const { getCurrentSessionScope } = await import("../task-scope-
|
|
36
|
+
const { getCurrentSessionScope } = await import("../task-scope-XXPTORGS.js");
|
|
37
37
|
const { canCoordinate } = await import("../lib/employees.js");
|
|
38
38
|
const data = JSON.parse(input);
|
|
39
39
|
const projectName = getProjectName(data.cwd || void 0);
|
|
@@ -50,7 +50,7 @@ process.stdin.on("end", async () => {
|
|
|
50
50
|
} catch {
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
53
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
54
54
|
await fastDbInit();
|
|
55
55
|
const agent = getActiveAgent();
|
|
56
56
|
const agentId = agent.agentId;
|
|
@@ -64,7 +64,7 @@ process.stdin.on("end", async () => {
|
|
|
64
64
|
if (existsSync(markerPath)) {
|
|
65
65
|
const marker = JSON.parse(readFileSync(markerPath, "utf-8"));
|
|
66
66
|
if (marker.taskId) {
|
|
67
|
-
const { queryTaskRows } = await import("../tasks-crud-
|
|
67
|
+
const { queryTaskRows } = await import("../tasks-crud-3UCNTXKQ.js");
|
|
68
68
|
const markerRows = await queryTaskRows({
|
|
69
69
|
columns: "status",
|
|
70
70
|
sessionScope: sessionScope ?? null,
|
|
@@ -108,7 +108,7 @@ process.stdin.on("end", async () => {
|
|
|
108
108
|
query = `last actions on ${projectName}`;
|
|
109
109
|
header = "## Resuming Session\nHere's where you left off:";
|
|
110
110
|
try {
|
|
111
|
-
const { buildCatchupBrief } = await import("../catchup-brief-
|
|
111
|
+
const { buildCatchupBrief } = await import("../catchup-brief-T2RPTOTZ.js");
|
|
112
112
|
const brief = await buildCatchupBrief(
|
|
113
113
|
agentId,
|
|
114
114
|
projectName,
|
|
@@ -120,7 +120,7 @@ process.stdin.on("end", async () => {
|
|
|
120
120
|
} catch {
|
|
121
121
|
}
|
|
122
122
|
try {
|
|
123
|
-
const { detectStaleFiles } = await import("../git-staleness-
|
|
123
|
+
const { detectStaleFiles } = await import("../git-staleness-SVUTMS2F.js");
|
|
124
124
|
const staleFiles = await detectStaleFiles(agentId, data.cwd || process.cwd());
|
|
125
125
|
if (staleFiles.length > 0) {
|
|
126
126
|
extraContext += `${extraContext.length > 0 ? "\n\n" : ""}## \u26A0\uFE0F Stale File Warning
|
|
@@ -140,7 +140,7 @@ The following files have been modified since you last read them:
|
|
|
140
140
|
);
|
|
141
141
|
let taskBrief = "";
|
|
142
142
|
try {
|
|
143
|
-
const { queryTaskRows } = await import("../tasks-crud-
|
|
143
|
+
const { queryTaskRows } = await import("../tasks-crud-3UCNTXKQ.js");
|
|
144
144
|
const taskResult = await queryTaskRows({
|
|
145
145
|
assignedTo: agentId,
|
|
146
146
|
status: ["open", "in_progress"],
|
package/dist/hooks/stop.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LVEOCWPL.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-OC7Q4LOK.js";
|
|
8
8
|
import "../chunk-LOQCOHEW.js";
|
|
9
9
|
import "../chunk-TXSJ2L5O.js";
|
|
10
10
|
import "../chunk-64WZEXXA.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-A7KEWR6S.js";
|
|
12
|
+
import "../chunk-X347L57O.js";
|
|
13
13
|
import "../chunk-GZIAQYGI.js";
|
|
14
14
|
import "../chunk-ZQX6UOP6.js";
|
|
15
15
|
import "../chunk-KIUU4PNX.js";
|
|
16
16
|
import "../chunk-NGP6LSV2.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-3OGN523Z.js";
|
|
18
18
|
import "../chunk-OPU3NYOO.js";
|
|
19
19
|
import "../chunk-CVYC6DUW.js";
|
|
20
20
|
import "../chunk-GJV3WDWM.js";
|
|
21
21
|
import "../chunk-MP2AFCGL.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-IWSXQKSB.js";
|
|
23
23
|
import "../chunk-HYZV25LY.js";
|
|
24
24
|
import {
|
|
25
25
|
canCoordinate
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-2G2KOWBI.js";
|
|
27
27
|
import "../chunk-EOO32RJZ.js";
|
|
28
28
|
import "../chunk-FXU7JOXK.js";
|
|
29
29
|
import "../chunk-NNT2ZNMC.js";
|
|
@@ -118,8 +118,8 @@ process.stdin.on("end", async () => {
|
|
|
118
118
|
process.exit(0);
|
|
119
119
|
}
|
|
120
120
|
try {
|
|
121
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
122
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
121
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
122
|
+
const { recordSessionEvent } = await import("../session-events-NYMENC3B.js");
|
|
123
123
|
const client = await fastDbInit();
|
|
124
124
|
await recordSessionEvent(client, {
|
|
125
125
|
agentId: agent.agentId,
|
|
@@ -137,7 +137,7 @@ process.stdin.on("end", async () => {
|
|
|
137
137
|
if (existsSync(taskCachePath)) {
|
|
138
138
|
const cached = JSON.parse(readFileSync(taskCachePath, "utf8"));
|
|
139
139
|
if (cached.taskId) {
|
|
140
|
-
const { createTokenBudgetMiddleware } = await import("../token-budget-
|
|
140
|
+
const { createTokenBudgetMiddleware } = await import("../token-budget-NP22DW2M.js");
|
|
141
141
|
const middleware = createTokenBudgetMiddleware(cached.taskId);
|
|
142
142
|
const estimatedOutputTokens = Math.ceil(message.length / 4);
|
|
143
143
|
const result = await middleware.onTokenUsed(0, estimatedOutputTokens);
|
|
@@ -155,7 +155,7 @@ process.stdin.on("end", async () => {
|
|
|
155
155
|
}
|
|
156
156
|
const CAPACITY_SIGNALS = /context[- ]?full|hit capacity|conversation is too long|maximum context length|context window.*(?:limit|exceed|full)/i;
|
|
157
157
|
if (!canCoordinate(agent.agentId, agent.agentRole) && CAPACITY_SIGNALS.test(message)) {
|
|
158
|
-
import("../fast-db-init-
|
|
158
|
+
import("../fast-db-init-5DTYG5FZ.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
159
159
|
const stScope = sessionScopeFilter();
|
|
160
160
|
const tasks = await client.execute({
|
|
161
161
|
sql: `SELECT title, status, task_file FROM tasks
|
|
@@ -248,7 +248,7 @@ ${msgs.slice(-15).join("\n")}`;
|
|
|
248
248
|
} catch {
|
|
249
249
|
}
|
|
250
250
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
251
|
-
import("../fast-db-init-
|
|
251
|
+
import("../fast-db-init-5DTYG5FZ.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
252
252
|
const orScope = sessionScopeFilter();
|
|
253
253
|
return client.execute({
|
|
254
254
|
sql: `SELECT title, status FROM tasks
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LVEOCWPL.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-OC7Q4LOK.js";
|
|
8
8
|
import "../chunk-LOQCOHEW.js";
|
|
9
9
|
import "../chunk-TXSJ2L5O.js";
|
|
10
10
|
import "../chunk-64WZEXXA.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-A7KEWR6S.js";
|
|
12
|
+
import "../chunk-X347L57O.js";
|
|
13
13
|
import "../chunk-GZIAQYGI.js";
|
|
14
14
|
import "../chunk-ZQX6UOP6.js";
|
|
15
15
|
import "../chunk-KIUU4PNX.js";
|
|
16
16
|
import "../chunk-NGP6LSV2.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-3OGN523Z.js";
|
|
18
18
|
import "../chunk-OPU3NYOO.js";
|
|
19
19
|
import "../chunk-CVYC6DUW.js";
|
|
20
20
|
import "../chunk-GJV3WDWM.js";
|
|
21
21
|
import "../chunk-MP2AFCGL.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-IWSXQKSB.js";
|
|
23
23
|
import "../chunk-HYZV25LY.js";
|
|
24
24
|
import {
|
|
25
25
|
canCoordinate
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-2G2KOWBI.js";
|
|
27
27
|
import "../chunk-EOO32RJZ.js";
|
|
28
28
|
import "../chunk-FXU7JOXK.js";
|
|
29
29
|
import "../chunk-NNT2ZNMC.js";
|
|
@@ -55,7 +55,7 @@ process.stdin.on("end", async () => {
|
|
|
55
55
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
56
56
|
process.exit(0);
|
|
57
57
|
}
|
|
58
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
58
|
+
const { fastDbInit } = await import("../fast-db-init-5DTYG5FZ.js");
|
|
59
59
|
const client = await fastDbInit();
|
|
60
60
|
const saScope = sessionScopeFilter();
|
|
61
61
|
const pendingResult = await client.execute({
|