@askexenow/exe-os 0.9.153 → 0.9.155
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/deploy/compose/.env.example +25 -39
- package/deploy/compose/cloudflared/config.yml.example +29 -0
- package/deploy/compose/docker-compose.yml +94 -0
- package/deploy/compose/gateway.json +11 -1
- package/deploy/compose/generate-env.ts +18 -4
- package/deploy/compose/init-db.sql +55 -0
- package/dist/{active-agent-HDUT3T3I.js → active-agent-GHJBTJRF.js} +4 -4
- package/dist/{active-agent-XHERKXH6.js → active-agent-RY74REEW.js} +4 -4
- package/dist/{agentic-ontology-GMK3MB3U.js → agentic-ontology-FP67RCR6.js} +1 -1
- package/dist/{backfill-metadata-PPI5QFYW.js → backfill-metadata-W7FUQRD7.js} +5 -5
- package/dist/{background-jobs-IUB22CRF.js → background-jobs-XYVQT4HN.js} +2 -2
- package/dist/{behaviors-JG75DNG3.js → behaviors-KA64SSPT.js} +4 -4
- package/dist/bin/age-ontology-load.js +2 -2
- package/dist/bin/agentic-ontology-backfill.js +7 -7
- package/dist/bin/agentic-reflection-backfill.js +8 -8
- package/dist/bin/agentic-semantic-label.js +7 -7
- package/dist/bin/backfill-conversations.js +7 -7
- package/dist/bin/backfill-responses.js +7 -7
- package/dist/bin/backfill-vectors.js +9 -9
- package/dist/bin/bulk-sync-postgres.js +8 -8
- package/dist/bin/cc-doctor.js +3 -3
- package/dist/bin/cleanup-stale-review-tasks.js +11 -11
- package/dist/bin/cli.js +18 -18
- package/dist/bin/exe-agent-config.js +4 -4
- package/dist/bin/exe-agent.js +9 -9
- package/dist/bin/exe-assign.js +9 -9
- package/dist/bin/exe-boot.js +18 -18
- package/dist/bin/exe-call.js +5 -5
- package/dist/bin/exe-cloud.js +7 -7
- package/dist/bin/exe-dispatch.js +11 -11
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +8 -8
- package/dist/bin/exe-forget.js +7 -7
- package/dist/bin/exe-gateway.js +8 -8
- package/dist/bin/exe-healthcheck.js +3 -3
- package/dist/bin/exe-heartbeat.js +11 -11
- package/dist/bin/exe-kill.js +14 -14
- package/dist/bin/exe-launch-agent.js +12 -12
- package/dist/bin/exe-new-employee.js +8 -8
- package/dist/bin/exe-pending-messages.js +12 -12
- package/dist/bin/exe-pending-notifications.js +11 -11
- package/dist/bin/exe-pending-reviews.js +11 -11
- package/dist/bin/exe-rename.js +5 -5
- package/dist/bin/exe-review.js +13 -13
- package/dist/bin/exe-search.js +6 -6
- package/dist/bin/exe-session-cleanup.js +17 -18
- package/dist/bin/exe-settings.js +7 -7
- package/dist/bin/exe-start-codex.js +12 -12
- package/dist/bin/exe-start-opencode.js +9 -9
- package/dist/bin/exe-status.js +12 -12
- package/dist/bin/exe-support.js +3 -3
- package/dist/bin/exe-team.js +4 -4
- package/dist/bin/git-sweep.js +11 -11
- package/dist/bin/graph-backfill.js +6 -6
- package/dist/bin/graph-export.js +6 -6
- package/dist/bin/install.js +7 -7
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/postgres-agentic-reflection-backfill.js +4 -4
- package/dist/bin/postgres-agentic-semantic-backfill.js +3 -3
- package/dist/bin/scan-tasks.js +11 -11
- package/dist/bin/setup.js +2 -2
- package/dist/bin/shard-migrate.js +6 -6
- package/dist/bin/stack-update.js +2 -2
- package/dist/{branding-EHDA3CCK.js → branding-YUEILP4B.js} +1 -1
- package/dist/{capacity-monitor-5IVGAQ34.js → capacity-monitor-WAZTZAR5.js} +12 -12
- package/dist/{catchup-brief-HFJR32Q3.js → catchup-brief-PKETW4ND.js} +13 -13
- package/dist/{chunk-HZNQYDAN.js → chunk-23UPL4NU.js} +3 -3
- package/dist/{chunk-ZGKU4PMY.js → chunk-2X5G7F5C.js} +3 -3
- package/dist/{chunk-EYQ3DHHI.js → chunk-3AN3RTUT.js} +8 -8
- package/dist/{chunk-SGLVCPZP.js → chunk-452JBQHH.js} +1 -1
- package/dist/{chunk-TOWAZ5IV.js → chunk-4GXRETYL.js} +16 -1
- package/dist/{chunk-SFV2XRPY.js → chunk-4ZQDR3MI.js} +1 -1
- package/dist/{chunk-DW6P7UVY.js → chunk-66QQPSWI.js} +2 -2
- package/dist/{chunk-PMCXWAVQ.js → chunk-6F46227N.js} +6 -6
- package/dist/{chunk-UHL4QL5E.js → chunk-77QEF6FR.js} +2 -2
- package/dist/{chunk-Q7GVSS2J.js → chunk-7G44AU2D.js} +1 -1
- package/dist/{chunk-LIJC4CRF.js → chunk-7VIH6LOQ.js} +2 -2
- package/dist/{chunk-L5WTOR3T.js → chunk-7XRGVVG6.js} +3 -3
- package/dist/{chunk-AFMQR776.js → chunk-A6LSJC2O.js} +1 -1
- package/dist/{chunk-3TXOH3SJ.js → chunk-A7KEWR6S.js} +1 -1
- package/dist/{chunk-4RKL53PD.js → chunk-AK7S4GRC.js} +25 -18
- package/dist/{chunk-4IEQIUBZ.js → chunk-BRHV6CJT.js} +2 -2
- package/dist/{chunk-BPBUSSYF.js → chunk-CGLSVN6N.js} +9 -9
- package/dist/{chunk-GJMHN45Z.js → chunk-CK5ZKW25.js} +1 -1
- package/dist/{chunk-K4KAPZC7.js → chunk-CMFLJNP6.js} +1 -1
- package/dist/{chunk-6YUACQQA.js → chunk-CTOQYEKJ.js} +1 -1
- package/dist/{chunk-UPAEAL6K.js → chunk-CXGOW4EJ.js} +3 -3
- package/dist/{chunk-6HFZ2KUC.js → chunk-DH65L4XI.js} +1 -1
- package/dist/{chunk-W6SKR3HZ.js → chunk-E2O7YYDS.js} +2 -2
- package/dist/{chunk-MBYJEE3B.js → chunk-EVB53OQD.js} +23 -11
- package/dist/{chunk-H5STRY47.js → chunk-F7ITFLVR.js} +1 -1
- package/dist/{chunk-WPNWFI4A.js → chunk-FOG7AEEO.js} +2 -2
- package/dist/{chunk-OEPEY47B.js → chunk-G2RRAFCH.js} +1 -1
- package/dist/{chunk-EYQIEK5M.js → chunk-GUCKE3GK.js} +1 -1
- package/dist/{chunk-KIUU4PNX.js → chunk-H2CFBUGF.js} +1 -1
- package/dist/{chunk-VB23RNNI.js → chunk-HBPFK6AO.js} +1 -1
- package/dist/{chunk-WZMS6X56.js → chunk-HDQJMTBG.js} +2 -2
- package/dist/{chunk-JUM3EUB2.js → chunk-HF6TVN2J.js} +6 -6
- package/dist/{chunk-M37FGM3X.js → chunk-HH6ZCDZH.js} +2 -2
- package/dist/{chunk-YOH3ABTS.js → chunk-INWPOOB6.js} +1 -1
- package/dist/{chunk-CBLNQNWT.js → chunk-IRVLV6C5.js} +1 -1
- package/dist/{chunk-EHXOWGQG.js → chunk-IXJ4SLKR.js} +2 -2
- package/dist/{chunk-ODEGQCWW.js → chunk-J73N5EJ6.js} +5 -5
- package/dist/{chunk-UQE5R5PM.js → chunk-JFEFVLLD.js} +7 -7
- package/dist/{chunk-LM7TQYLW.js → chunk-JTHPKHKC.js} +1 -1
- package/dist/{chunk-VJW3E5KW.js → chunk-JYYWHPQC.js} +8 -8
- package/dist/{chunk-RAMU6E5T.js → chunk-KL5VDEBT.js} +1 -1
- package/dist/{chunk-BV2JVO2U.js → chunk-KPB5SN3Q.js} +1 -1
- package/dist/{chunk-OQYZQR24.js → chunk-KZXC3G3P.js} +2 -2
- package/dist/{chunk-MNIJA5BL.js → chunk-LVWXGZER.js} +1 -1
- package/dist/{chunk-JJA6F6NA.js → chunk-LWABYGNF.js} +1 -1
- package/dist/{chunk-SJKOILTX.js → chunk-MBXAWOYB.js} +1 -1
- package/dist/{chunk-4PDXCEXT.js → chunk-OCFYT3LE.js} +50 -9
- package/dist/{chunk-GCNWCYJI.js → chunk-ONKIWA3R.js} +2 -2
- package/dist/{chunk-WLSSSDAR.js → chunk-PELAHAJR.js} +1 -1
- package/dist/{chunk-IWGGTD5D.js → chunk-PY7QM2C7.js} +3 -3
- package/dist/{chunk-YABPRFBT.js → chunk-Q46X2YPY.js} +4 -4
- package/dist/{chunk-PC6Y4ATU.js → chunk-Q55XPOXU.js} +1 -1
- package/dist/{chunk-25NSQUZ3.js → chunk-RTNRPBQP.js} +10 -10
- package/dist/{chunk-EOO32RJZ.js → chunk-RVSGXGWG.js} +1 -1
- package/dist/{chunk-CF4DZKKE.js → chunk-RZE4KMRO.js} +2 -2
- package/dist/{chunk-V4MKR32F.js → chunk-S6DDN7IS.js} +2 -2
- package/dist/{chunk-BR5UVRA2.js → chunk-SEENMPG7.js} +2 -2
- package/dist/{chunk-EOU4ZLRZ.js → chunk-SNN634YS.js} +1 -1
- package/dist/{chunk-LWJ4AMMY.js → chunk-T5YT64SZ.js} +1 -1
- package/dist/{chunk-NNT2ZNMC.js → chunk-TJEETRHD.js} +1 -1
- package/dist/{chunk-3ZU7RTMF.js → chunk-TM3WWKNB.js} +42 -29
- package/dist/{chunk-AMVDQ7HH.js → chunk-U56WZR5E.js} +6 -6
- package/dist/{chunk-U3B3TVLQ.js → chunk-U5GTF2JP.js} +1 -1
- package/dist/{chunk-XQC5BNCJ.js → chunk-UWUF5NWA.js} +7 -7
- package/dist/{chunk-CO2SF5SB.js → chunk-V5Y323LO.js} +1 -1
- package/dist/{chunk-XMRDT4PB.js → chunk-WZTQUBIE.js} +1 -1
- package/dist/{chunk-RLCZBSUB.js → chunk-X347L57O.js} +12 -0
- package/dist/{chunk-ICKEGWWP.js → chunk-X5O3FKRU.js} +1 -1
- package/dist/{chunk-4MN44ORL.js → chunk-XIGJOVTD.js} +1 -1
- package/dist/{chunk-5U5MI4VH.js → chunk-XIZR2YLR.js} +88 -90
- package/dist/{chunk-7WEVNBV2.js → chunk-ZIJR3H2O.js} +2 -2
- package/dist/{chunk-5NSTNICM.js → chunk-ZPM2RMK2.js} +3 -3
- package/dist/{code-context-index-I5A7I4JQ.js → code-context-index-XZ22G57G.js} +4 -4
- package/dist/{conversation-wiki-populator-RSJ44BRO.js → conversation-wiki-populator-HVROKOEU.js} +1 -1
- package/dist/{crdt-sync-3VQP2ISB.js → crdt-sync-5JERNXAI.js} +1 -1
- package/dist/{crm-bridge-4QZRMOF7.js → crm-bridge-BVTB6LZK.js} +1 -1
- package/dist/{crm-webhook-SOUYMO3X.js → crm-webhook-DGL6XEOQ.js} +2 -2
- package/dist/{cto-delegation-gate-UGCMXYAO.js → cto-delegation-gate-UFSXT2CA.js} +10 -10
- package/dist/{daemon-auth-F47P6HTC.js → daemon-auth-H4EJ7KAQ.js} +2 -2
- package/dist/{daemon-orchestration-MD34RKQZ.js → daemon-orchestration-IP2LHJJK.js} +13 -13
- package/dist/{db-backup-W56YOLMC.js → db-backup-7UOCAPHO.js} +2 -2
- package/dist/{exe-drift-L5ZHO3CZ.js → exe-drift-FNK7OXMY.js} +4 -4
- package/dist/{exe-export-UDQU7MMM.js → exe-export-LLKDWX7F.js} +6 -6
- package/dist/{exe-import-OY42LQL4.js → exe-import-XVAR7ZVC.js} +6 -6
- package/dist/{exe-key-FC67RNXI.js → exe-key-E3YOJ2ME.js} +3 -3
- package/dist/{exe-org-OOO7KJVZ.js → exe-org-FEX66BTG.js} +2 -2
- package/dist/{fast-db-init-TLOT2K43.js → fast-db-init-SMQC6S3C.js} +1 -1
- package/dist/gateway/index.js +12 -12
- package/dist/{git-staleness-MSTOMG55.js → git-staleness-HE6QCRSC.js} +3 -3
- package/dist/{git-task-sweep-D4IKRGCV.js → git-task-sweep-NWHG3FWG.js} +11 -11
- package/dist/{global-procedures-ISPSC4B5.js → global-procedures-KNA62DIE.js} +4 -4
- package/dist/{graph-auto-extract-D4I7DF2S.js → graph-auto-extract-4EZVBWQN.js} +3 -3
- package/dist/{hook-integrity-SA7S2SNI.js → hook-integrity-P3Z3HKMR.js} +1 -1
- package/dist/hooks/bug-report-worker.js +12 -12
- package/dist/hooks/codex-stop-task-finalizer.js +12 -12
- package/dist/hooks/commit-complete.js +13 -13
- package/dist/hooks/error-recall.js +7 -7
- package/dist/hooks/exe-heartbeat-hook.js +4 -4
- package/dist/hooks/ingest-worker.js +5 -5
- package/dist/hooks/ingest.js +12 -12
- package/dist/hooks/instructions-loaded.js +5 -5
- package/dist/hooks/notification.js +5 -5
- package/dist/hooks/post-compact.js +12 -12
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +17 -17
- package/dist/hooks/pre-tool-use.js +38 -16
- package/dist/hooks/prompt-submit.js +61 -22
- package/dist/hooks/session-end.js +21 -21
- package/dist/hooks/session-start.js +9 -9
- package/dist/hooks/stop.js +19 -19
- package/dist/hooks/subagent-stop.js +12 -12
- package/dist/hooks/summary-worker.js +20 -20
- package/dist/index.js +21 -21
- package/dist/{installer-SPQDAGPW.js → installer-4GPRFPIU.js} +6 -6
- package/dist/{installer-4YIOBAFV.js → installer-MMXK6EHQ.js} +6 -6
- package/dist/{installer-3YHQ5DJZ.js → installer-TAFFG7WH.js} +6 -6
- package/dist/{key-backup-status-ORNMJEEA.js → key-backup-status-KQUGSNVJ.js} +1 -1
- package/dist/lib/agent-config.js +2 -2
- package/dist/lib/cloud-sync.js +6 -6
- package/dist/lib/config.js +1 -1
- package/dist/lib/consolidation.js +6 -6
- package/dist/lib/database.js +3 -3
- package/dist/lib/db-daemon-client.js +3 -3
- package/dist/lib/db.js +3 -3
- package/dist/lib/device-registry.js +1 -1
- package/dist/lib/embedder.js +4 -4
- package/dist/lib/employee-templates.js +5 -5
- package/dist/lib/employees.js +3 -3
- package/dist/lib/exe-daemon-client.js +3 -3
- package/dist/lib/exe-daemon.js +63 -38
- package/dist/lib/hybrid-search.js +6 -6
- package/dist/lib/identity.js +3 -3
- package/dist/lib/license.js +2 -2
- package/dist/lib/messaging.js +11 -11
- package/dist/lib/reminders.js +4 -4
- package/dist/lib/schedules.js +6 -6
- package/dist/lib/skill-learning.js +5 -5
- package/dist/lib/store.js +5 -5
- package/dist/lib/task-router.js +4 -4
- package/dist/lib/tasks.js +11 -11
- package/dist/lib/tmux-routing.js +10 -10
- package/dist/lib/tmux-transport.js +1 -1
- package/dist/lib/token-spend.js +4 -4
- package/dist/lib/transport.js +2 -2
- package/dist/{license-gate-J5YN264E.js → license-gate-OAPGTQXF.js} +3 -3
- package/dist/mcp/register-tools.js +59 -59
- package/dist/mcp/server.js +60 -60
- package/dist/mcp/tools/complete-reminder.js +5 -5
- package/dist/mcp/tools/create-reminder.js +5 -5
- package/dist/mcp/tools/create-task.js +13 -13
- package/dist/mcp/tools/deactivate-behavior.js +6 -6
- package/dist/mcp/tools/list-reminders.js +5 -5
- package/dist/mcp/tools/list-tasks.js +13 -13
- package/dist/mcp/tools/send-message.js +13 -13
- package/dist/mcp/tools/update-task.js +12 -12
- package/dist/{mcp-http-config-JBNX3DAR.js → mcp-http-config-FPHVLE3N.js} +4 -4
- package/dist/{memory-cards-SYVGSLXW.js → memory-cards-VYZSCHZR.js} +3 -3
- package/dist/{memory-poisoning-defense-T7AC4LZN.js → memory-poisoning-defense-NGJ63VZE.js} +3 -3
- package/dist/{memory-queue-NYIGZNCG.js → memory-queue-2SHTE6GU.js} +2 -2
- package/dist/{memory-queue-client-YJOLYALV.js → memory-queue-client-M7NHD4GY.js} +5 -5
- package/dist/{memory-reflection-FNJU7VFC.js → memory-reflection-XXN375ZD.js} +3 -3
- package/dist/{notifications-76XXO4Q7.js → notifications-Z6Q2SEHP.js} +10 -10
- package/dist/{orchestration-phase-FXKZYK6R.js → orchestration-phase-D3PNCSUY.js} +2 -2
- package/dist/{orchestrator-XAT2JSBT.js → orchestrator-RHJGFMAS.js} +12 -12
- package/dist/{plan-limits-IAUNTZUW.js → plan-limits-GCKK3L6F.js} +5 -5
- package/dist/{projection-worker-S6LYSY22.js → projection-worker-GHWA6NEA.js} +2 -2
- package/dist/{push-notifications-NSYLKFXR.js → push-notifications-VJZFCUFZ.js} +2 -2
- package/dist/{reranker-OMADCS3D.js → reranker-JJRY3V3V.js} +2 -2
- package/dist/{review-polling-E24XBNSI.js → review-polling-XUIKH7HF.js} +11 -11
- package/dist/runtime/index.js +17 -17
- package/dist/{session-events-CCXFQRFW.js → session-events-KURSY7LK.js} +11 -11
- package/dist/{session-kill-telemetry-TX5NCPUV.js → session-kill-telemetry-PD4UM5FM.js} +4 -4
- package/dist/{session-scope-7QCZF3MJ.js → session-scope-5MOCMTAM.js} +10 -10
- package/dist/{setup-wizard-FA6YEYER.js → setup-wizard-6SW2ND2B.js} +2 -2
- package/dist/{shard-manager-SP4YL5JQ.js → shard-manager-6JBG2K5X.js} +2 -2
- package/dist/skill-refinement-JBZRPZKW.js +156 -0
- package/dist/{task-enforcement-NITY7TBM.js → task-enforcement-2WCWSZQ3.js} +10 -10
- package/dist/{task-scope-YZDSPORL.js → task-scope-HW6BE2PI.js} +10 -10
- package/dist/{tasks-crud-W5BFKNUS.js → tasks-crud-WACRTPQK.js} +10 -10
- package/dist/{tasks-review-VXMELVLA.js → tasks-review-LIWD4PGN.js} +10 -10
- package/dist/{token-budget-LJC7HHKB.js → token-budget-5QD4ZSDX.js} +3 -3
- package/dist/{tool-capability-index-OBZXORBP.js → tool-capability-index-LBDYUK6L.js} +1 -1
- package/dist/{tool-telemetry-L3WQDRMH.js → tool-telemetry-2VGSVV3J.js} +1 -1
- package/dist/tui/App.js +23 -23
- package/dist/{tui-data-FQYUPCYX.js → tui-data-UKFAWSNP.js} +10 -10
- package/dist/{worker-gate-OZCNSASA.js → worker-gate-NJRW5QYT.js} +2 -2
- package/dist/{workflow-engine-DA3AWD45.js → workflow-engine-ICAQJSYT.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +190 -190
- package/stack.release.json +2 -2
- /package/dist/{chunk-YH7VB655.js → chunk-E5PVJXIP.js} +0 -0
- /package/dist/{chunk-J2OPV5FE.js → chunk-FMBRO3D7.js} +0 -0
- /package/dist/{chunk-VN6UUZNO.js → chunk-J2KP4ZDX.js} +0 -0
- /package/dist/{chunk-OU7SLHNA.js → chunk-LKKKOWTH.js} +0 -0
- /package/dist/{chunk-BRXDLJBU.js → chunk-LZLXG7TK.js} +0 -0
- /package/dist/{chunk-UIOTTKLS.js → chunk-PYDL42BL.js} +0 -0
- /package/dist/{chunk-PJCTBGWN.js → chunk-RES22KSZ.js} +0 -0
- /package/dist/{core-memory-ONZIJYGR.js → core-memory-QRQ62AZY.js} +0 -0
- /package/dist/{entity-boost-LIBVNNXO.js → entity-boost-MDWFYORT.js} +0 -0
- /package/dist/{message-queue-client-NTLKYGVO.js → message-queue-client-BJZEA6RV.js} +0 -0
- /package/dist/{oauth-server-TOWAZR4K.js → oauth-server-UM2TQJLJ.js} +0 -0
- /package/dist/{webhook-pipe-PJOFVBD3.js → webhook-pipe-VSLEA26V.js} +0 -0
- /package/dist/{wiki-acl-UE3CRAPQ.js → wiki-acl-RZCXSF5O.js} +0 -0
- /package/dist/{wiki-client-MMVRPTPK.js → wiki-client-NZR7RW4I.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateTask
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JYYWHPQC.js";
|
|
4
4
|
import {
|
|
5
5
|
TASK_ALREADY_CLAIMED_PREFIX
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OCFYT3LE.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/tools/update-task.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -23,7 +23,7 @@ function registerUpdateTask(server) {
|
|
|
23
23
|
const status = rawStatus;
|
|
24
24
|
let callerAgentId;
|
|
25
25
|
try {
|
|
26
|
-
const { getActiveAgent: getAgent } = await import("./active-agent-
|
|
26
|
+
const { getActiveAgent: getAgent } = await import("./active-agent-GHJBTJRF.js");
|
|
27
27
|
callerAgentId = getAgent().agentId;
|
|
28
28
|
} catch {
|
|
29
29
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
storeBehavior
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SNN634YS.js";
|
|
4
4
|
import {
|
|
5
5
|
getClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EVB53OQD.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4GXRETYL.js";
|
|
10
10
|
|
|
11
11
|
// src/lib/skill-learning.ts
|
|
12
12
|
import crypto from "crypto";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MultiAgentOrchestrator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PY7QM2C7.js";
|
|
4
4
|
import {
|
|
5
5
|
createQuietRenderer,
|
|
6
6
|
createTerminalRenderer,
|
|
7
7
|
renderAgentEvents
|
|
8
8
|
} from "./chunk-YZFZDJWZ.js";
|
|
9
|
-
import {
|
|
10
|
-
checkDangerousPatterns,
|
|
11
|
-
hasCriticalPattern
|
|
12
|
-
} from "./chunk-AVE2B4DQ.js";
|
|
13
9
|
import {
|
|
14
10
|
checkPathSafety,
|
|
15
11
|
checkReadPathSafety,
|
|
16
12
|
containsPathTraversal
|
|
17
13
|
} from "./chunk-NGVOA6ZQ.js";
|
|
14
|
+
import {
|
|
15
|
+
checkDangerousPatterns,
|
|
16
|
+
hasCriticalPattern
|
|
17
|
+
} from "./chunk-AVE2B4DQ.js";
|
|
18
18
|
import {
|
|
19
19
|
ContextManager,
|
|
20
20
|
agentLoop,
|
|
@@ -206,7 +206,7 @@ function createExeOSHooks(config) {
|
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { listBehaviors } = await import("./behaviors-
|
|
209
|
+
const { listBehaviors } = await import("./behaviors-KA64SSPT.js");
|
|
210
210
|
const behaviors = await listBehaviors(config.agentId, config.projectName, 12);
|
|
211
211
|
if (behaviors.length > 0) {
|
|
212
212
|
process.stderr.write(
|
|
@@ -327,7 +327,7 @@ function createExeOSHooks(config) {
|
|
|
327
327
|
async onSubagentStop(_reason) {
|
|
328
328
|
try {
|
|
329
329
|
const { getClient } = await import("./lib/database.js");
|
|
330
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
330
|
+
const { sessionScopeFilter } = await import("./task-scope-HW6BE2PI.js");
|
|
331
331
|
const client = getClient();
|
|
332
332
|
const ehScope = sessionScopeFilter();
|
|
333
333
|
const tasks = await client.execute({
|
|
@@ -419,7 +419,7 @@ function createExeOSHooks(config) {
|
|
|
419
419
|
try {
|
|
420
420
|
const { writeMemory, flushBatch } = await import("./lib/store.js");
|
|
421
421
|
const { getClient } = await import("./lib/database.js");
|
|
422
|
-
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-
|
|
422
|
+
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-HW6BE2PI.js");
|
|
423
423
|
const client = getClient();
|
|
424
424
|
const cpScope = cpScopeFilter();
|
|
425
425
|
const tasks = await client.execute({
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
|
|
6
6
|
// src/lib/config.ts
|
|
7
7
|
import { readFile, writeFile } from "fs/promises";
|
|
8
|
-
import { readFileSync, existsSync, renameSync } from "fs";
|
|
8
|
+
import { readFileSync, writeFileSync, existsSync, renameSync } from "fs";
|
|
9
9
|
import path from "path";
|
|
10
10
|
import os from "os";
|
|
11
11
|
function resolveDataDir() {
|
|
@@ -183,6 +183,21 @@ function normalizeCloudEndpoint(raw) {
|
|
|
183
183
|
process.stderr.write(
|
|
184
184
|
"[config] Auto-migrated cloud endpoint: cloud.askexe.com \u2192 api.askexe.com\n"
|
|
185
185
|
);
|
|
186
|
+
} else {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
try {
|
|
190
|
+
const cfgDir = process.env.EXE_OS_DIR ?? process.env.EXE_MEM_DIR ?? EXE_AI_DIR;
|
|
191
|
+
const cfgPath = path.join(cfgDir, "config.json");
|
|
192
|
+
if (existsSync(cfgPath)) {
|
|
193
|
+
const onDisk = JSON.parse(readFileSync(cfgPath, "utf8"));
|
|
194
|
+
const diskCloud = onDisk.cloud;
|
|
195
|
+
if (diskCloud) {
|
|
196
|
+
diskCloud.endpoint = "https://api.askexe.com";
|
|
197
|
+
writeFileSync(cfgPath, JSON.stringify(onDisk, null, 2) + "\n", "utf8");
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
} catch {
|
|
186
201
|
}
|
|
187
202
|
}
|
|
188
203
|
async function loadConfig() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadLicense,
|
|
3
3
|
readCachedLicenseToken
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TJEETRHD.js";
|
|
5
5
|
import {
|
|
6
6
|
EXE_AI_DIR,
|
|
7
7
|
loadConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4GXRETYL.js";
|
|
9
9
|
|
|
10
10
|
// src/bin/exe-support.ts
|
|
11
11
|
import { mkdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
|
|
@@ -589,7 +589,7 @@ function auditHookOwnership() {
|
|
|
589
589
|
}
|
|
590
590
|
async function auditShards() {
|
|
591
591
|
try {
|
|
592
|
-
const { auditShardHealth } = await import("./shard-manager-
|
|
592
|
+
const { auditShardHealth } = await import("./shard-manager-6JBG2K5X.js");
|
|
593
593
|
const report = await auditShardHealth();
|
|
594
594
|
return {
|
|
595
595
|
total: report.total,
|
|
@@ -605,7 +605,7 @@ async function auditShards() {
|
|
|
605
605
|
async function auditKeyHealth() {
|
|
606
606
|
try {
|
|
607
607
|
const { getMasterKey } = await import("./lib/keychain.js");
|
|
608
|
-
const { getKeyBackupStatus } = await import("./key-backup-status-
|
|
608
|
+
const { getKeyBackupStatus } = await import("./key-backup-status-KQUGSNVJ.js");
|
|
609
609
|
const key = await getMasterKey();
|
|
610
610
|
const backup = getKeyBackupStatus();
|
|
611
611
|
return {
|
|
@@ -830,7 +830,7 @@ function formatReport(report, flags) {
|
|
|
830
830
|
return lines.join("\n");
|
|
831
831
|
}
|
|
832
832
|
async function fixNullVectors() {
|
|
833
|
-
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-
|
|
833
|
+
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-NJRW5QYT.js");
|
|
834
834
|
if (!tryAcquireWorkerSlot()) {
|
|
835
835
|
process.stderr.write("[exe-doctor] Worker gate full \u2014 waiting for existing backfill workers to finish\n");
|
|
836
836
|
await new Promise((r) => setTimeout(r, 5e3));
|
|
@@ -914,7 +914,7 @@ async function fixBloated(client, bloated, dryRun) {
|
|
|
914
914
|
return chunksCreated;
|
|
915
915
|
}
|
|
916
916
|
async function fixShards(dryRun) {
|
|
917
|
-
const { auditShardHealth } = await import("./shard-manager-
|
|
917
|
+
const { auditShardHealth } = await import("./shard-manager-6JBG2K5X.js");
|
|
918
918
|
const report = await auditShardHealth({ repair: true, dryRun });
|
|
919
919
|
return {
|
|
920
920
|
total: report.total,
|
|
@@ -951,7 +951,7 @@ function splitAtSentences(text, maxChunkSize) {
|
|
|
951
951
|
}
|
|
952
952
|
async function main(argv = process.argv.slice(2)) {
|
|
953
953
|
const flags = parseFlags(argv);
|
|
954
|
-
const { fastDbInit } = await import("./fast-db-init-
|
|
954
|
+
const { fastDbInit } = await import("./fast-db-init-SMQC6S3C.js");
|
|
955
955
|
const client = await fastDbInit();
|
|
956
956
|
const report = await runAudit(client, flags);
|
|
957
957
|
console.log(formatReport(report, flags));
|
|
@@ -962,7 +962,7 @@ ${mode} Applying repairs...
|
|
|
962
962
|
`);
|
|
963
963
|
if (!flags.dryRun) {
|
|
964
964
|
try {
|
|
965
|
-
const { createBackup } = await import("./db-backup-
|
|
965
|
+
const { createBackup } = await import("./db-backup-7UOCAPHO.js");
|
|
966
966
|
const backupPath = createBackup("pre-fix");
|
|
967
967
|
if (backupPath) {
|
|
968
968
|
console.log(` Backup created: ${backupPath.split("/").pop()}`);
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
getCoordinatorEmployee,
|
|
10
10
|
getEmployee,
|
|
11
11
|
loadEmployeesSync
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EVB53OQD.js";
|
|
13
13
|
import {
|
|
14
14
|
EXE_AI_DIR
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4GXRETYL.js";
|
|
16
16
|
|
|
17
17
|
// src/lib/active-agent.ts
|
|
18
18
|
import { readFileSync, writeFileSync, mkdirSync, unlinkSync, readdirSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EXE_AI_DIR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4GXRETYL.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/worker-gate.ts
|
|
6
6
|
import { readdirSync, writeFileSync, unlinkSync, mkdirSync, existsSync, readFileSync } from "fs";
|
|
@@ -111,7 +111,7 @@ function releaseBackfillLock() {
|
|
|
111
111
|
}
|
|
112
112
|
async function getTaskAwareCapacity() {
|
|
113
113
|
const { getClient } = await import("./lib/database.js");
|
|
114
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
114
|
+
const { sessionScopeFilter } = await import("./task-scope-HW6BE2PI.js");
|
|
115
115
|
const client = getClient();
|
|
116
116
|
const scope = sessionScopeFilter();
|
|
117
117
|
const result = await client.execute({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fastDbInit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PYDL42BL.js";
|
|
4
4
|
import {
|
|
5
5
|
sessionScopeFilter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OCFYT3LE.js";
|
|
7
7
|
import {
|
|
8
8
|
formatStatusAll,
|
|
9
9
|
formatStatusDeep,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getClient,
|
|
15
15
|
isCoordinatorRole,
|
|
16
16
|
loadEmployees
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EVB53OQD.js";
|
|
18
18
|
import {
|
|
19
19
|
isMainModule
|
|
20
20
|
} from "./chunk-6Y4B3QF6.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
recordSessionKill
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5Y323LO.js";
|
|
4
4
|
import {
|
|
5
5
|
sessionScopeFilter,
|
|
6
6
|
verifyPaneAtCapacity,
|
|
7
7
|
writeNotification
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OCFYT3LE.js";
|
|
9
9
|
import {
|
|
10
10
|
listSessions
|
|
11
11
|
} from "./chunk-64WZEXXA.js";
|
|
12
12
|
import {
|
|
13
13
|
getTransport
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A7KEWR6S.js";
|
|
15
15
|
import {
|
|
16
16
|
getClient,
|
|
17
17
|
isCoordinatorName
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EVB53OQD.js";
|
|
19
19
|
|
|
20
20
|
// src/lib/capacity-monitor.ts
|
|
21
21
|
var CAPACITY_PATTERNS = [
|
|
@@ -111,9 +111,9 @@ function _resetPendingCapacityKills() {
|
|
|
111
111
|
function _resetLastRelaunchCache() {
|
|
112
112
|
_lastRelaunch.clear();
|
|
113
113
|
}
|
|
114
|
-
async function lastResumeCreatedAtMs(agentId) {
|
|
114
|
+
async function lastResumeCreatedAtMs(agentId, sessionScope) {
|
|
115
115
|
const client = getClient();
|
|
116
|
-
const cmScope = sessionScopeFilter(null);
|
|
116
|
+
const cmScope = sessionScopeFilter(sessionScope ?? null);
|
|
117
117
|
const result = await client.execute({
|
|
118
118
|
sql: `SELECT MAX(created_at) AS last_created_at
|
|
119
119
|
FROM tasks
|
|
@@ -125,20 +125,21 @@ async function lastResumeCreatedAtMs(agentId) {
|
|
|
125
125
|
const parsed = Date.parse(String(raw));
|
|
126
126
|
return Number.isNaN(parsed) ? null : parsed;
|
|
127
127
|
}
|
|
128
|
-
async function isWithinRelaunchCooldown(agentId, now = Date.now()) {
|
|
129
|
-
const
|
|
128
|
+
async function isWithinRelaunchCooldown(agentId, now = Date.now(), sessionScope) {
|
|
129
|
+
const cacheKey = sessionScope ? `${agentId}::${sessionScope}` : agentId;
|
|
130
|
+
const cached = _lastRelaunch.get(cacheKey);
|
|
130
131
|
if (cached !== void 0) return now - cached < RELAUNCH_COOLDOWN_MS;
|
|
131
|
-
const persisted = await lastResumeCreatedAtMs(agentId);
|
|
132
|
+
const persisted = await lastResumeCreatedAtMs(agentId, sessionScope);
|
|
132
133
|
if (persisted === null) return false;
|
|
133
134
|
if (now - persisted >= RELAUNCH_COOLDOWN_MS) return false;
|
|
134
|
-
_lastRelaunch.set(
|
|
135
|
+
_lastRelaunch.set(cacheKey, persisted);
|
|
135
136
|
return true;
|
|
136
137
|
}
|
|
137
|
-
async function createOrRefreshResumeTask(agentId, projectDir, openTasks) {
|
|
138
|
+
async function createOrRefreshResumeTask(agentId, projectDir, openTasks, sessionScope) {
|
|
138
139
|
const client = getClient();
|
|
139
140
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
140
141
|
const context = buildResumeContext(agentId, openTasks);
|
|
141
|
-
const rdScope = sessionScopeFilter(null);
|
|
142
|
+
const rdScope = sessionScopeFilter(sessionScope ?? null);
|
|
142
143
|
const existing = await client.execute({
|
|
143
144
|
sql: `SELECT id FROM tasks
|
|
144
145
|
WHERE assigned_to = ?
|
|
@@ -182,7 +183,9 @@ async function pollCapacityDead() {
|
|
|
182
183
|
for (const entry of registered) {
|
|
183
184
|
const { windowName, agentId, projectDir } = entry;
|
|
184
185
|
if (!liveSessions.includes(windowName)) continue;
|
|
185
|
-
|
|
186
|
+
const cmDashIdx = windowName.indexOf("-");
|
|
187
|
+
const cmDerivedScope = cmDashIdx >= 0 ? windowName.slice(cmDashIdx + 1) : null;
|
|
188
|
+
if (await isWithinRelaunchCooldown(agentId, Date.now(), cmDerivedScope)) continue;
|
|
186
189
|
let pane;
|
|
187
190
|
try {
|
|
188
191
|
pane = transport.capturePane(windowName, 15);
|
|
@@ -246,7 +249,8 @@ async function pollCapacityDead() {
|
|
|
246
249
|
}
|
|
247
250
|
transport.kill(windowName);
|
|
248
251
|
void recordSessionKill({ sessionName: windowName, agentId, reason: "capacity" });
|
|
249
|
-
|
|
252
|
+
const coordCacheKey = cmDerivedScope ? `${agentId}::${cmDerivedScope}` : agentId;
|
|
253
|
+
_lastRelaunch.set(coordCacheKey, Date.now());
|
|
250
254
|
relaunched.push(agentId);
|
|
251
255
|
} catch (err) {
|
|
252
256
|
process.stderr.write(
|
|
@@ -264,8 +268,9 @@ async function pollCapacityDead() {
|
|
|
264
268
|
reason: "capacity"
|
|
265
269
|
});
|
|
266
270
|
const client = getClient();
|
|
267
|
-
const
|
|
268
|
-
const
|
|
271
|
+
const dashIdx = windowName.indexOf("-");
|
|
272
|
+
const derivedScope = dashIdx >= 0 ? windowName.slice(dashIdx + 1) : null;
|
|
273
|
+
const rlScope = sessionScopeFilter(derivedScope);
|
|
269
274
|
const openTasks = await client.execute({
|
|
270
275
|
sql: `SELECT id, title, priority, task_file, status
|
|
271
276
|
FROM tasks
|
|
@@ -286,7 +291,8 @@ async function pollCapacityDead() {
|
|
|
286
291
|
const { created } = await createOrRefreshResumeTask(
|
|
287
292
|
agentId,
|
|
288
293
|
projectDir,
|
|
289
|
-
openTasks.rows
|
|
294
|
+
openTasks.rows,
|
|
295
|
+
derivedScope
|
|
290
296
|
);
|
|
291
297
|
if (created) {
|
|
292
298
|
await writeNotification({
|
|
@@ -297,7 +303,8 @@ async function pollCapacityDead() {
|
|
|
297
303
|
summary: `${agentId} hit context capacity. Auto-relaunched with ${openTasks.rows.length} open task(s).`
|
|
298
304
|
});
|
|
299
305
|
}
|
|
300
|
-
|
|
306
|
+
const cacheKey = derivedScope ? `${agentId}::${derivedScope}` : agentId;
|
|
307
|
+
_lastRelaunch.set(cacheKey, Date.now());
|
|
301
308
|
if (created) relaunched.push(agentId);
|
|
302
309
|
} catch (err) {
|
|
303
310
|
process.stderr.write(
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
buildRawVisibilityFilter,
|
|
4
4
|
buildWikiScopeFilter,
|
|
5
5
|
searchMemories
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RTNRPBQP.js";
|
|
7
7
|
import {
|
|
8
8
|
getClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EVB53OQD.js";
|
|
10
10
|
|
|
11
11
|
// src/lib/hybrid-search.ts
|
|
12
12
|
var RRF_K = 60;
|
|
@@ -152,7 +152,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
152
152
|
let rerankerAvailable = false;
|
|
153
153
|
if (process.env.EXE_IS_DAEMON === "1") {
|
|
154
154
|
try {
|
|
155
|
-
const { isRerankerAvailable } = await import("./reranker-
|
|
155
|
+
const { isRerankerAvailable } = await import("./reranker-JJRY3V3V.js");
|
|
156
156
|
rerankerAvailable = isRerankerAvailable();
|
|
157
157
|
} catch {
|
|
158
158
|
}
|
|
@@ -196,7 +196,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
196
196
|
queryVector ? searchMemories(queryVector, agentId, fetchOptions) : Promise.resolve([]),
|
|
197
197
|
includeStructuredCards ? (async () => {
|
|
198
198
|
try {
|
|
199
|
-
const { searchMemoryCards } = await import("./memory-cards-
|
|
199
|
+
const { searchMemoryCards } = await import("./memory-cards-VYZSCHZR.js");
|
|
200
200
|
return await searchMemoryCards(effectiveQuery, agentId, fetchOptions);
|
|
201
201
|
} catch {
|
|
202
202
|
return [];
|
|
@@ -205,7 +205,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
205
205
|
// Reflection insights: patterns, contradictions, summaries across sessions
|
|
206
206
|
includeStructuredCards ? (async () => {
|
|
207
207
|
try {
|
|
208
|
-
const { searchReflections } = await import("./memory-reflection-
|
|
208
|
+
const { searchReflections } = await import("./memory-reflection-XXN375ZD.js");
|
|
209
209
|
const insights = await searchReflections(effectiveQuery, agentId, 5);
|
|
210
210
|
return insights.map((ins) => ({
|
|
211
211
|
id: ins.id,
|
|
@@ -259,7 +259,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
259
259
|
let entityBoostRan = false;
|
|
260
260
|
if (merged.length > 0) {
|
|
261
261
|
try {
|
|
262
|
-
const { applyEntityBoost } = await import("./entity-boost-
|
|
262
|
+
const { applyEntityBoost } = await import("./entity-boost-MDWFYORT.js");
|
|
263
263
|
const boosted = await applyEntityBoost(merged, effectiveQuery, getClient());
|
|
264
264
|
merged = boosted.results;
|
|
265
265
|
graphContextMap = boosted.graphContext;
|
|
@@ -283,7 +283,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
283
283
|
try {
|
|
284
284
|
let rerankedRecords;
|
|
285
285
|
if (graphContextMap.size > 0) {
|
|
286
|
-
const { rerankWithContext } = await import("./reranker-
|
|
286
|
+
const { rerankWithContext } = await import("./reranker-JJRY3V3V.js");
|
|
287
287
|
const candidates = merged.map((m) => ({
|
|
288
288
|
text: m.raw_text,
|
|
289
289
|
context: graphContextMap.get(m.id)
|
|
@@ -291,7 +291,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
291
291
|
const scored = await rerankWithContext(effectiveQuery, candidates, rerankReturnLimit);
|
|
292
292
|
rerankedRecords = scored.map((s) => merged[s.index]);
|
|
293
293
|
} else {
|
|
294
|
-
const { rerank } = await import("./reranker-
|
|
294
|
+
const { rerank } = await import("./reranker-JJRY3V3V.js");
|
|
295
295
|
rerankedRecords = await rerank(effectiveQuery, merged, rerankReturnLimit);
|
|
296
296
|
}
|
|
297
297
|
if (rerankedRecords.length > 0) {
|
|
@@ -581,7 +581,7 @@ async function lightweightSearch(queryText, agentId, options) {
|
|
|
581
581
|
}
|
|
582
582
|
if (options?.includeStructuredCards !== true) return results;
|
|
583
583
|
try {
|
|
584
|
-
const { searchMemoryCards } = await import("./memory-cards-
|
|
584
|
+
const { searchMemoryCards } = await import("./memory-cards-VYZSCHZR.js");
|
|
585
585
|
const cardResults = await searchMemoryCards(queryText, agentId, options);
|
|
586
586
|
if (cardResults.length > 0) {
|
|
587
587
|
return rrfMergeMulti([results, cardResults], limit, RRF_K, [1, 0.85]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deactivateBehavior
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SNN634YS.js";
|
|
4
4
|
import {
|
|
5
5
|
getActiveAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-77QEF6FR.js";
|
|
7
7
|
import {
|
|
8
8
|
canCoordinate,
|
|
9
9
|
getClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EVB53OQD.js";
|
|
11
11
|
|
|
12
12
|
// src/mcp/tools/deactivate-behavior.ts
|
|
13
13
|
import { z } from "zod";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonToken,
|
|
6
6
|
readDaemonToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CMFLJNP6.js";
|
|
8
8
|
import {
|
|
9
9
|
EXE_AI_DIR
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4GXRETYL.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/exe-daemon-client.ts
|
|
13
13
|
import net from "net";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listBackups
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RVSGXGWG.js";
|
|
4
4
|
import {
|
|
5
5
|
EMBEDDING_DIM
|
|
6
6
|
} from "./chunk-FXU7JOXK.js";
|
|
7
7
|
import {
|
|
8
8
|
EXE_AI_DIR,
|
|
9
9
|
loadConfigSync
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4GXRETYL.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteJson
|
|
13
13
|
} from "./chunk-LYH5HE24.js";
|
|
@@ -468,15 +468,15 @@ import path3 from "path";
|
|
|
468
468
|
import { createRequire } from "module";
|
|
469
469
|
import { pathToFileURL } from "url";
|
|
470
470
|
var VIEW_MAPPINGS = [
|
|
471
|
-
{ view: "memories", source: "
|
|
472
|
-
{ view: "tasks", source: "
|
|
473
|
-
{ view: "behaviors", source: "
|
|
474
|
-
{ view: "entities", source: "
|
|
475
|
-
{ view: "relationships", source: "
|
|
476
|
-
{ view: "entity_memories", source: "
|
|
477
|
-
{ view: "entity_aliases", source: "
|
|
478
|
-
{ view: "notifications", source: "
|
|
479
|
-
{ view: "messages", source: "
|
|
471
|
+
{ view: "memories", source: "graph.memory_records" },
|
|
472
|
+
{ view: "tasks", source: "graph.tasks" },
|
|
473
|
+
{ view: "behaviors", source: "graph.behaviors" },
|
|
474
|
+
{ view: "entities", source: "graph.entities" },
|
|
475
|
+
{ view: "relationships", source: "graph.relationships" },
|
|
476
|
+
{ view: "entity_memories", source: "graph.entity_memories" },
|
|
477
|
+
{ view: "entity_aliases", source: "graph.entity_aliases" },
|
|
478
|
+
{ view: "notifications", source: "graph.notifications" },
|
|
479
|
+
{ view: "messages", source: "graph.messages" },
|
|
480
480
|
{ view: "users", source: "wiki.users" },
|
|
481
481
|
{ view: "workspaces", source: "wiki.workspaces" },
|
|
482
482
|
{ view: "workspace_users", source: "wiki.workspace_users" },
|
|
@@ -3099,6 +3099,18 @@ async function ensureSchema() {
|
|
|
3099
3099
|
} catch (e) {
|
|
3100
3100
|
logCatchDebug("migration", e);
|
|
3101
3101
|
}
|
|
3102
|
+
for (const col of [
|
|
3103
|
+
"use_count INTEGER DEFAULT 0",
|
|
3104
|
+
"success_count INTEGER DEFAULT 0",
|
|
3105
|
+
"last_used_at TEXT",
|
|
3106
|
+
"last_refined_at TEXT"
|
|
3107
|
+
]) {
|
|
3108
|
+
try {
|
|
3109
|
+
await client.execute({ sql: `ALTER TABLE behaviors ADD COLUMN ${col}`, args: [] });
|
|
3110
|
+
} catch (e) {
|
|
3111
|
+
logCatchDebug("migration", e);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3102
3114
|
}
|
|
3103
3115
|
var disposeTurso = disposeDatabase;
|
|
3104
3116
|
async function disposeDatabase() {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
resolveExeSession,
|
|
5
5
|
sendIntercom,
|
|
6
6
|
strictSessionScopeFilter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OCFYT3LE.js";
|
|
8
8
|
import {
|
|
9
9
|
getClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EVB53OQD.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/messaging.ts
|
|
13
13
|
import crypto from "crypto";
|