@askexenow/exe-os 0.9.384 → 0.9.389
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.askexe-control-plane.example +6 -0
- package/deploy/compose/.env.customer.example +1 -1
- package/deploy/compose/.env.example +1 -1
- package/deploy/compose/docker-compose.yml +16 -0
- package/deploy/compose/generate-env.ts +1 -1
- package/deploy/compose/sso-edge/sso-redirect.conf +18 -3
- package/deploy/stack-manifests/v0.9.json +1160 -1
- package/dist/.dist-verified.json +3 -3
- package/dist/{active-agent-F5V4E4UL.js → active-agent-RZ24KSJN.js} +8 -6
- package/dist/{active-agent-YTBB4ZQM.js → active-agent-YWSWPIEA.js} +8 -6
- package/dist/{agent-defs-generator-7TFISIJQ.js → agent-defs-generator-GY3UBREJ.js} +8 -6
- package/dist/{agent-heartbeat-CQPGJIFF.js → agent-heartbeat-GUVUUQVM.js} +1 -1
- package/dist/{agent-loop-EZ7LDAGD.js → agent-loop-HPNCH3HK.js} +1 -1
- package/dist/{agentic-ontology-XVTUVV7W.js → agentic-ontology-RHYNXEKE.js} +1 -1
- package/dist/{artifact-backup-TF6YWQT2.js → artifact-backup-HGUFSIJH.js} +19 -6
- package/dist/{backfill-metadata-J6MXIDCW.js → backfill-metadata-XLFASEOD.js} +11 -9
- package/dist/{backup-verify-6DVBQMDP.js → backup-verify-TUQEICWA.js} +1 -1
- package/dist/{behavior-injection-XDA7ZCYN.js → behavior-injection-GXO7ERGN.js} +14 -12
- package/dist/{behavior-promotion-4VLQ7LXK.js → behavior-promotion-V63WIZ4N.js} +13 -11
- package/dist/{behaviors-SCCZP7RZ.js → behaviors-RMLDPLOF.js} +18 -11
- package/dist/bin/agentic-ontology-backfill.js +12 -10
- package/dist/bin/agentic-reflection-backfill.js +13 -11
- package/dist/bin/agentic-semantic-label.js +12 -10
- package/dist/bin/backfill-conversations.js +11 -9
- package/dist/bin/backfill-responses.js +11 -9
- package/dist/bin/backfill-vectors.js +13 -11
- package/dist/bin/bulk-sync-postgres.js +20 -18
- package/dist/bin/cc-doctor.js +15 -13
- package/dist/bin/cleanup-stale-review-tasks.js +44 -32
- package/dist/bin/cli.js +109 -30
- package/dist/bin/customer-readiness.js +55 -25
- package/dist/bin/deferred-daemon-restart.js +111 -108
- package/dist/bin/exe-actions.js +7 -1
- package/dist/bin/exe-agent-config.js +8 -6
- package/dist/bin/exe-agent.js +18 -16
- package/dist/bin/exe-assign.js +13 -11
- package/dist/bin/exe-boot.js +49 -47
- package/dist/bin/exe-call.js +9 -7
- package/dist/bin/exe-cicd.js +19 -8
- package/dist/bin/exe-cloud.js +59 -25
- package/dist/bin/exe-config-dump.js +8 -6
- package/dist/bin/exe-dispatch.js +23 -21
- package/dist/bin/exe-doctor.js +11 -8
- package/dist/bin/exe-export-behaviors.js +16 -14
- package/dist/bin/exe-forget.js +14 -12
- package/dist/bin/exe-gateway.js +12 -10
- package/dist/bin/exe-grant.js +6 -6
- package/dist/bin/exe-healthcheck.js +15 -13
- package/dist/bin/exe-heartbeat.js +28 -26
- package/dist/bin/exe-kill.js +28 -26
- package/dist/bin/exe-launch-agent.js +35 -33
- package/dist/bin/exe-mcp.js +9 -7
- package/dist/bin/exe-memory-reads.js +11 -9
- package/dist/bin/exe-new-employee.js +13 -11
- package/dist/bin/exe-os-mcp-proxy.js +9 -7
- package/dist/bin/exe-pending-messages.js +23 -21
- package/dist/bin/exe-pending-notifications.js +22 -20
- package/dist/bin/exe-pending-reviews.js +23 -21
- package/dist/bin/exe-preflight.js +1 -1
- package/dist/bin/exe-rename.js +9 -7
- package/dist/bin/exe-review.js +59 -55
- package/dist/bin/exe-search-quality.js +16 -3
- package/dist/bin/exe-search.js +13 -11
- package/dist/bin/exe-session-cleanup.js +29 -27
- package/dist/bin/exe-settings.js +22 -20
- package/dist/bin/exe-start-codex.js +23 -21
- package/dist/bin/exe-start-opencode.js +21 -19
- package/dist/bin/exe-status.js +24 -22
- package/dist/bin/exe-support.js +3 -3
- package/dist/bin/exe-team.js +8 -6
- package/dist/bin/exe-verify-running-images.js +644 -17
- package/dist/bin/git-sweep.js +24 -22
- package/dist/bin/graph-backfill.js +12 -10
- package/dist/bin/graph-export.js +12 -10
- package/dist/bin/hooks-cli.js +4 -4
- package/dist/bin/import-history.js +16 -14
- package/dist/bin/install.js +113 -110
- package/dist/bin/intercom-check.js +5 -5
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +8 -6
- package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
- package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
- package/dist/bin/pre-build-guard.js +55 -16
- package/dist/bin/pre-publish.js +1 -1
- package/dist/bin/prune-orphan-chunks.js +154 -28
- package/dist/bin/reconcile-backlog.js +5 -3
- package/dist/bin/registry-proxy.js +1 -1
- package/dist/bin/repair-document-chunks.js +11 -9
- package/dist/bin/scan-tasks.js +23 -21
- package/dist/bin/setup.js +3 -3
- package/dist/bin/shard-migrate.js +12 -10
- package/dist/bin/stack-update.js +622 -43
- package/dist/bin/verify-stack.js +2 -2
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{boot-generation-Q7LGQ3AO.js → boot-generation-VCQXVYGT.js} +7 -5
- package/dist/{boot-review-sections-G5774FR5.js → boot-review-sections-3QO6Q7MP.js} +21 -19
- package/dist/{branch-hygiene-44WLSOZR.js → branch-hygiene-DDXXI6ZA.js} +59 -21
- package/dist/bug-landed-reconciler-TQVNOUCU.js +353 -0
- package/dist/build-manifest.json +1269 -1194
- package/dist/{capability-cards-I3RHCF4F.js → capability-cards-XPDLT6LU.js} +6 -4
- package/dist/{capacity-monitor-7I7GDONU.js → capacity-monitor-N3AW242L.js} +23 -21
- package/dist/{catchup-brief-3T5PARIR.js → catchup-brief-3PKX7FUP.js} +29 -27
- package/dist/{chunk-C5ISP5FO.js → chunk-2BKJAOO4.js} +11 -1
- package/dist/{chunk-JJTPPAZY.js → chunk-2CUQHG6H.js} +1609 -1356
- package/dist/{chunk-HU3VD4MQ.js → chunk-2Q2GGYBX.js} +1 -1
- package/dist/{chunk-CHIUS5QB.js → chunk-36LMIOVU.js} +9 -9
- package/dist/{chunk-46VSBDUW.js → chunk-3DCBDG4T.js} +2 -2
- package/dist/{chunk-W3KPQE7H.js → chunk-3GL3E4TD.js} +3 -3
- package/dist/{chunk-GL47M7NY.js → chunk-3UD3OF3X.js} +202 -117
- package/dist/{chunk-WNBZJSQT.js → chunk-3VW5ZP2F.js} +1 -1
- package/dist/{chunk-JDDM6C57.js → chunk-3X74IQBU.js} +1 -1
- package/dist/{chunk-NVFNADTX.js → chunk-3ZL4MDQ6.js} +18 -4
- package/dist/{chunk-R5E7WNAC.js → chunk-4ESNDGMB.js} +3 -3
- package/dist/{chunk-CYCIX7AW.js → chunk-4FLLIQRQ.js} +2 -2
- package/dist/{chunk-3RGTLZNO.js → chunk-4GAKF7KR.js} +99 -74
- package/dist/{chunk-RVO5O5SR.js → chunk-4S3A52AV.js} +38 -10
- package/dist/{chunk-7J2ZQ4XN.js → chunk-4VQ3QR6B.js} +29 -28
- package/dist/{chunk-MROSARM5.js → chunk-5BJBTFFQ.js} +7 -1
- package/dist/chunk-5LQZABW5.js +6 -0
- package/dist/chunk-5ONMHTNI.js +236 -0
- package/dist/{chunk-APL7HUE3.js → chunk-5QQJUO3F.js} +200 -31
- package/dist/{chunk-UOPCVFVR.js → chunk-5RK75SWH.js} +205 -278
- package/dist/{chunk-T5FEAQES.js → chunk-5TYJYGS5.js} +1 -1
- package/dist/{chunk-P3QQ52QK.js → chunk-5U6EOTZV.js} +3 -3
- package/dist/{chunk-ALRHGEAJ.js → chunk-637FL62O.js} +1 -1
- package/dist/{chunk-PUBA5B4M.js → chunk-6L4VIYLZ.js} +33 -19
- package/dist/{chunk-VF2KRROX.js → chunk-754P2UXM.js} +1 -1
- package/dist/{chunk-CM7N5MBY.js → chunk-7FZG7WP4.js} +5 -5
- package/dist/{chunk-NYLJQ2M2.js → chunk-7NEBFB3L.js} +4 -4
- package/dist/{chunk-E7C2WNR5.js → chunk-AEIOFFFX.js} +5 -5
- package/dist/{chunk-VOVFUKEB.js → chunk-AIB2EWO2.js} +5 -5
- package/dist/{chunk-EGOEB42T.js → chunk-AP2C4OGS.js} +3 -3
- package/dist/{chunk-MPZ2AVNS.js → chunk-ATNV3BVZ.js} +1 -1
- package/dist/{chunk-F4BBMIPG.js → chunk-B4XJQBQB.js} +2 -2
- package/dist/{chunk-BPVFZ6Q4.js → chunk-B5EGDNG6.js} +2 -2
- package/dist/{chunk-AGC2V7JS.js → chunk-B6CBN6EF.js} +1 -1
- package/dist/{chunk-KTKIFXIP.js → chunk-B7FDRN7G.js} +1 -1
- package/dist/{chunk-C5HUMAA7.js → chunk-B7WVYLAQ.js} +67 -15
- package/dist/chunk-BGVP5RMT.js +185 -0
- package/dist/{chunk-FVLNNNH6.js → chunk-BNI4LIU5.js} +35 -4
- package/dist/{chunk-P4XLIPB7.js → chunk-BU5JRLZT.js} +1 -1
- package/dist/{chunk-PHUHIVD5.js → chunk-C6U7XWOC.js} +34 -5
- package/dist/chunk-C7GHNJPW.js +8 -0
- package/dist/{chunk-4AR5XKCH.js → chunk-CL2MU3OX.js} +1 -1
- package/dist/{chunk-ZPP63JSQ.js → chunk-CL3AB7Z2.js} +1 -1
- package/dist/{chunk-FHIFTSPL.js → chunk-CP7XUSOF.js} +8 -3
- package/dist/{chunk-3OX34OC3.js → chunk-CUDNRHHT.js} +30 -10
- package/dist/chunk-CYUUNIEL.js +21 -0
- package/dist/{chunk-P2UY34XE.js → chunk-D4C57S2H.js} +5 -5
- package/dist/{chunk-XSUALA32.js → chunk-DDYFNBYV.js} +3 -3
- package/dist/{chunk-LSNBTGW4.js → chunk-DPYZW42H.js} +1 -1
- package/dist/{chunk-FMIYFHLE.js → chunk-E2PRXEZK.js} +9 -3
- package/dist/{chunk-L63V25HS.js → chunk-E54SPUYJ.js} +3 -3
- package/dist/{chunk-DMUOTCDN.js → chunk-E5CKRHIZ.js} +1 -1
- package/dist/{chunk-BV2IET6B.js → chunk-EVMOKRBC.js} +15 -2
- package/dist/{chunk-YLFCH3VA.js → chunk-FDWI3T6I.js} +133 -31
- package/dist/{chunk-PWC3C5ME.js → chunk-FNJTCJGY.js} +4 -4
- package/dist/{chunk-TNS63ATU.js → chunk-FWRPDSO3.js} +350 -50
- package/dist/{chunk-JA3Y5TV6.js → chunk-GDLB6BPM.js} +141 -74
- package/dist/{chunk-IGJMS7C5.js → chunk-GOVGG7HU.js} +2 -2
- package/dist/{chunk-MB47DRF5.js → chunk-GP7CTIUK.js} +2 -2
- package/dist/{chunk-L5EPGGDP.js → chunk-GWAN2BDB.js} +4 -4
- package/dist/{chunk-YRQ26MNP.js → chunk-H3YF7X4J.js} +12 -5
- package/dist/{chunk-VLBHZ6TF.js → chunk-H6PLIFUE.js} +2 -2
- package/dist/{chunk-GSLFH4AI.js → chunk-HRNM3N4Y.js} +6 -15
- package/dist/chunk-IG2ISRTF.js +48 -0
- package/dist/{chunk-MWEIBVBS.js → chunk-IJCWBYA5.js} +14 -1
- package/dist/{chunk-NKEFYE4R.js → chunk-IPTUKX3N.js} +1 -1
- package/dist/{chunk-RB3J2WYQ.js → chunk-IVE7H6KA.js} +1 -1
- package/dist/{chunk-HA63SH5W.js → chunk-IWY2OGQG.js} +1 -1
- package/dist/{chunk-BQEZPRUC.js → chunk-IZWMWJZT.js} +64 -46
- package/dist/{chunk-AHESD3KW.js → chunk-J4UVI652.js} +1 -1
- package/dist/{chunk-PLII76NJ.js → chunk-JBUCA4OX.js} +33 -6
- package/dist/{chunk-2PZTMSMG.js → chunk-JOF4HQDF.js} +5 -5
- package/dist/{chunk-OBBO6EJR.js → chunk-JQN3QGSF.js} +1 -1
- package/dist/{chunk-P4PIZOL2.js → chunk-JWYIH5DR.js} +3 -3
- package/dist/{chunk-3XY57PKT.js → chunk-KZLKE7I3.js} +210 -48
- package/dist/{chunk-DYVLEMKS.js → chunk-L3GXMYBK.js} +1 -1
- package/dist/{chunk-72V3S44T.js → chunk-LUA4SLJY.js} +46 -19
- package/dist/{chunk-ZT4LFTUJ.js → chunk-LW3JCBXP.js} +20 -3
- package/dist/{chunk-YLB365YX.js → chunk-M5XHN4OM.js} +3 -3
- package/dist/{chunk-VHHX4UCP.js → chunk-MDTWARSF.js} +22 -93
- package/dist/{chunk-JFJP6ATJ.js → chunk-MWKXQSF6.js} +3 -2
- package/dist/{chunk-VJEJ7JNB.js → chunk-N32DVIKY.js} +1 -1
- package/dist/{chunk-MUCNYSJP.js → chunk-NRLJOV7M.js} +32 -4
- package/dist/{chunk-PL4CFSQ7.js → chunk-NSXJOSH7.js} +1 -1
- package/dist/{chunk-NF5FOSLD.js → chunk-NVTG66CK.js} +1 -1
- package/dist/chunk-O45GBJEH.js +1500 -0
- package/dist/{chunk-4AAMFWJT.js → chunk-OHZSTZXN.js} +4 -2
- package/dist/chunk-OSIS7ZQW.js +344 -0
- package/dist/{chunk-E3ZM32LF.js → chunk-P22VFGFK.js} +14 -5
- package/dist/{chunk-KILR4FBR.js → chunk-PAFLR7WD.js} +3 -3
- package/dist/{chunk-R3CZWFFC.js → chunk-PEYQ6MWO.js} +15 -3
- package/dist/{chunk-RDWIKDMY.js → chunk-PZR54BEI.js} +8 -20
- package/dist/{chunk-2FKU4ZEO.js → chunk-QDBKMEYY.js} +9 -9
- package/dist/{chunk-7UHZBVP3.js → chunk-QDVLVLXP.js} +97 -31
- package/dist/{chunk-PRDDPQLC.js → chunk-QLXEQRHD.js} +5 -5
- package/dist/{chunk-MUAWCFW6.js → chunk-QNPDXV5V.js} +5 -2
- package/dist/{chunk-LR5O2XWZ.js → chunk-QUZYLDNJ.js} +5 -5
- package/dist/chunk-RBQUXHYK.js +48 -0
- package/dist/{chunk-3SUPEE6H.js → chunk-RDMBSHGG.js} +3 -3
- package/dist/{chunk-I5XIW2BP.js → chunk-RGUM474V.js} +7 -7
- package/dist/{chunk-OAFENIHN.js → chunk-RJ67XAJU.js} +76 -28
- package/dist/{chunk-LFUBEHFW.js → chunk-RT57D7C4.js} +39 -1
- package/dist/{chunk-MKM6D7JM.js → chunk-RWG7DLOG.js} +42 -5
- package/dist/{chunk-P3UX5EH4.js → chunk-RWKAHHIX.js} +3 -3
- package/dist/{chunk-XEBKIWI7.js → chunk-RYNT3HB7.js} +12 -12
- package/dist/{chunk-EUGEFBGV.js → chunk-S2V272KJ.js} +3 -3
- package/dist/{chunk-W6BZ4UGA.js → chunk-SGYEM2PD.js} +1 -1
- package/dist/{chunk-VROK4X2L.js → chunk-SJP57MQM.js} +1 -1
- package/dist/{chunk-5MVKTNZP.js → chunk-SL4JWAMQ.js} +54 -4
- package/dist/{chunk-MOANZQXF.js → chunk-SLMKLEU6.js} +1 -1
- package/dist/{chunk-RZN2LEAK.js → chunk-SQA7XCYI.js} +3 -3
- package/dist/{chunk-4YNA3CM6.js → chunk-SSFS4NCH.js} +262 -56
- package/dist/{chunk-6FIC57PH.js → chunk-T4P2G3PO.js} +1 -1
- package/dist/{chunk-5U2IJBFV.js → chunk-TA3B4N24.js} +1 -1
- package/dist/{chunk-ZOTTYCP5.js → chunk-TEWWBVQP.js} +40 -4
- package/dist/{chunk-SDYWZRPN.js → chunk-TLSFGXXE.js} +1 -1
- package/dist/{chunk-L3VUW5M4.js → chunk-TQS2YHLB.js} +1 -1
- package/dist/{chunk-KXYKSLW4.js → chunk-TU4M757W.js} +399 -116
- package/dist/{chunk-MC4IM2CC.js → chunk-TYD4F4XU.js} +6 -6
- package/dist/{chunk-TKS5GMYA.js → chunk-U44Y7RC7.js} +2 -0
- package/dist/{chunk-B7AMNZTC.js → chunk-UKBPEEEQ.js} +2 -2
- package/dist/{chunk-ZBPZDADW.js → chunk-UWVXQEQQ.js} +467 -78
- package/dist/{chunk-P2VVMGMI.js → chunk-V4WH3FV7.js} +35 -16
- package/dist/{worktree-ownership-guard-O6JQF2CL.js → chunk-V6F4I2XY.js} +13 -14
- package/dist/{chunk-JFTUAV4J.js → chunk-VBKUESIW.js} +1 -1
- package/dist/{chunk-AZSTIAVL.js → chunk-VBPYYJPC.js} +1 -1
- package/dist/{chunk-LKTN22L6.js → chunk-VIP4LKLO.js} +57 -24
- package/dist/{chunk-L5CGXEZC.js → chunk-WAAGVFFN.js} +63 -71
- package/dist/{chunk-D3LXVAIQ.js → chunk-WC7AE3PT.js} +244 -103
- package/dist/{chunk-EOTZSAQL.js → chunk-WUCUDHKR.js} +1 -1
- package/dist/{chunk-VF3BZOZK.js → chunk-X7HZHKY4.js} +50 -3
- package/dist/{chunk-LFBLQE2P.js → chunk-XCAKYVKI.js} +1 -1
- package/dist/{chunk-UXN4BICC.js → chunk-XMX5J52Z.js} +1 -1
- package/dist/{chunk-6YDY6ZTD.js → chunk-XTCXGWTV.js} +9 -4
- package/dist/{chunk-XUZK23V7.js → chunk-XW2FW6LS.js} +2 -2
- package/dist/{chunk-CH7BUBP3.js → chunk-XWVHUDEK.js} +5 -4
- package/dist/{chunk-S26CV7BE.js → chunk-YA5LK6KB.js} +45 -8
- package/dist/{chunk-ELCRJGCH.js → chunk-YMRQIENV.js} +2 -2
- package/dist/{chunk-QNZ4562V.js → chunk-Z3LXWCB7.js} +1 -1
- package/dist/{chunk-EYMFVITZ.js → chunk-Z7I6NQMA.js} +2 -2
- package/dist/{chunk-6BJCDWSM.js → chunk-ZB4FS2EG.js} +1 -1
- package/dist/{chunk-ZAEUEDTN.js → chunk-ZD6FZ3WL.js} +1 -1
- package/dist/{chunk-FEU6QEEL.js → chunk-ZM6EZAVY.js} +1 -0
- package/dist/{chunk-2KY7WZZF.js → chunk-ZPA4R2UI.js} +1 -1
- package/dist/chunk-ZPPPHVSU.js +285 -0
- package/dist/{chunk-ELEGH4DX.js → chunk-ZUGQPYUY.js} +51 -4
- package/dist/{chunk-UX2EO653.js → chunk-ZZWFZ46U.js} +66 -8
- package/dist/{cleanup-graph-garbage-VQAJ2RBT.js → cleanup-graph-garbage-HFUD5ZQT.js} +12 -10
- package/dist/{cloud-sync-command-J7NEFUY7.js → cloud-sync-command-3JHJJKPN.js} +25 -3
- package/dist/{cloud-sync-db-init-KWEMNMGA.js → cloud-sync-db-init-2LHIQOSF.js} +1 -1
- package/dist/{cloud-sync-shutdown-P63AUTUI.js → cloud-sync-shutdown-ZXAXA3Z7.js} +6 -4
- package/dist/{cloud-sync-state-QF3TMMJ4.js → cloud-sync-state-VSQFGPP6.js} +1 -1
- package/dist/{co-activation-7IHRPBZN.js → co-activation-NX4EH4AP.js} +6 -4
- package/dist/{co-occurrence-R5AG4OAU.js → co-occurrence-5LBYCW3U.js} +10 -8
- package/dist/{consent-passphrase-5ZBDJ5G7.js → consent-passphrase-65W3DJIJ.js} +2 -2
- package/dist/{content-extractor-ZLXC6GNR.js → content-extractor-OGXETBOX.js} +2 -2
- package/dist/{conversation-entity-extractor-7FRKLLBD.js → conversation-entity-extractor-FQCOAH4F.js} +5 -4
- package/dist/conversations-retention-XTBFJBUM.js +166 -0
- package/dist/{crdt-sync-IFRZOEIS.js → crdt-sync-7TDUBTLH.js} +4 -4
- package/dist/{crm-webhook-L2S63ASV.js → crm-webhook-776JTY55.js} +2 -2
- package/dist/{cto-delegation-gate-3WU7OHX7.js → cto-delegation-gate-ZNUWVYCN.js} +25 -23
- package/dist/{daemon-orchestration-3VQYKLOR.js → daemon-orchestration-76BOFDEP.js} +30 -24
- package/dist/{doc-graph-extractor-YIR5E7OF.js → doc-graph-extractor-F724KZJX.js} +10 -8
- package/dist/{documents-QEHPTYIY.js → documents-Q24V4GRD.js} +13 -11
- package/dist/{dreaming-LNFE7DTN.js → dreaming-IY6NQTSP.js} +27 -25
- package/dist/{employee-boot-brief-ZTXDYNWM.js → employee-boot-brief-CCTXO5DQ.js} +35 -29
- package/dist/{entity-boost-R5N6JWXD.js → entity-boost-XGOB7HDM.js} +1 -1
- package/dist/{exe-drift-WYSJVZFO.js → exe-drift-NEPXLNGP.js} +7 -5
- package/dist/{exe-export-GOLNAEAV.js → exe-export-ZHJQFKR2.js} +14 -12
- package/dist/{exe-import-U4BSI6OH.js → exe-import-7SVNI4FW.js} +14 -12
- package/dist/{exe-key-V42G3NGO.js → exe-key-QJKU56WZ.js} +119 -108
- package/dist/{exe-org-U4GLQ6OP.js → exe-org-SJXHLV6K.js} +76 -51
- package/dist/{exe-snapshot-U7ONBYNY.js → exe-snapshot-EFWPXTXE.js} +45 -36
- package/dist/{fast-db-init-W3NGKAEU.js → fast-db-init-BQZOQNT3.js} +1 -1
- package/dist/{founder-context-ZSIBRVDM.js → founder-context-KG2ZAOXY.js} +2 -2
- package/dist/{founder-monitor-envelope-L3IWZLFY.js → founder-monitor-envelope-NYB5LLU4.js} +4 -4
- package/dist/gateway/index.js +20 -18
- package/dist/{gateway-client-DJFCVIPT.js → gateway-client-ODMUXUL3.js} +1 -1
- package/dist/{git-staleness-OF24QXFZ.js → git-staleness-OPGEAJA7.js} +6 -4
- package/dist/{global-procedures-WSIOWO43.js → global-procedures-3KXY4LL6.js} +8 -6
- package/dist/{graph-auto-extract-IEVVN3L3.js → graph-auto-extract-I7H2F5NJ.js} +10 -8
- package/dist/{graph-query-JDZWAVCU.js → graph-query-E7JBSNY5.js} +1 -1
- package/dist/{graph-rag-BKAD2XQA.js → graph-rag-H24CMFP2.js} +5 -4
- package/dist/{hook-integrity-TPWDGX2M.js → hook-integrity-PGQ3OX4S.js} +1 -1
- package/dist/{hook-prefetch-FD6VGJJA.js → hook-prefetch-7AZJER6Z.js} +23 -21
- package/dist/hook-registration-liveness-NGQRFKAA.js +11 -0
- package/dist/hooks/bug-report-worker.js +26 -24
- package/dist/hooks/codex-stop-task-finalizer.js +28 -26
- package/dist/hooks/commit-complete.js +26 -24
- package/dist/hooks/error-recall.js +16 -14
- package/dist/hooks/exe-heartbeat-hook.js +9 -7
- package/dist/hooks/ingest-worker.js +12 -10
- package/dist/hooks/ingest.js +22 -17
- package/dist/hooks/instructions-loaded.js +11 -9
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +10 -8
- package/dist/hooks/post-compact.js +9 -7
- package/dist/hooks/post-tool-combined.js +14 -14
- package/dist/hooks/pre-compact.js +26 -24
- package/dist/hooks/pre-tool-use.js +2 -2
- package/dist/hooks/prompt-submit.js +47 -41
- package/dist/hooks/session-end.js +38 -42
- package/dist/hooks/session-start.js +26 -18
- package/dist/hooks/stop.js +29 -27
- package/dist/hooks/subagent-stop.js +29 -27
- package/dist/hooks/summary-worker.js +32 -30
- package/dist/index.js +37 -35
- package/dist/{installer-OTI5SA43.js → installer-2ZS3LHCU.js} +12 -9
- package/dist/{installer-NMOBSEZ2.js → installer-NH3A3HWC.js} +14 -9
- package/dist/{installer-SRJGE4GU.js → installer-UJ73PGRD.js} +21 -9
- package/dist/{intercom-queue-4FFXCBHO.js → intercom-queue-OE25GJF2.js} +21 -19
- package/dist/lib/agent-config.js +2 -2
- package/dist/lib/cloud-sync.js +24 -18
- package/dist/lib/consolidation.js +13 -11
- package/dist/lib/crypto.js +3 -3
- package/dist/lib/database.js +6 -4
- package/dist/lib/db-backup.js +1 -1
- package/dist/lib/db-write-worker-client.js +3 -1
- package/dist/lib/db-write-worker.js +65 -89
- package/dist/lib/db.js +6 -4
- package/dist/lib/delivery-truth.js +5 -1
- package/dist/lib/device-registry.js +1 -1
- package/dist/lib/embedder.js +2 -2
- package/dist/lib/employee-templates.js +9 -7
- package/dist/lib/employees.js +6 -4
- package/dist/lib/exe-daemon.js +425 -314
- package/dist/lib/file-grep.js +15 -21
- package/dist/lib/hybrid-search.js +19 -13
- package/dist/lib/identity-templates.js +1 -1
- package/dist/lib/identity.js +6 -4
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +22 -6
- package/dist/lib/messaging.js +22 -20
- package/dist/lib/post-tool-memory.js +10 -8
- package/dist/lib/registry-proxy.js +1 -1
- package/dist/lib/reminders.js +7 -5
- package/dist/lib/runtime-table.js +1 -1
- package/dist/lib/schedules.js +12 -10
- package/dist/lib/session-registry.js +8 -6
- package/dist/lib/skill-learning.js +13 -11
- package/dist/lib/status-brief.js +2 -2
- package/dist/lib/store.js +17 -9
- package/dist/lib/task-router.js +7 -5
- package/dist/lib/tasks.js +23 -21
- package/dist/lib/tmux-routing.js +21 -19
- package/dist/lib/tmux-status.js +4 -1
- package/dist/lib/token-spend.js +7 -5
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-R4JWTWM4.js → license-gate-XQ2KN5I5.js} +3 -3
- package/dist/{license-recheck-3MBJ4IJX.js → license-recheck-IIBKR2V5.js} +1 -1
- package/dist/{license-sync-BVSG3WMW.js → license-sync-76JVI2M5.js} +151 -8
- package/dist/{local-secret-inventory-JWNBHZZ4.js → local-secret-inventory-MJT7NJLY.js} +2 -2
- package/dist/{mailbox-inbox-MTAT4MXX.js → mailbox-inbox-BPZP4GIZ.js} +1 -1
- package/dist/maintenance-worker-54VZTFIK.js +371 -0
- package/dist/mcp/register-tools.js +110 -107
- package/dist/mcp/server.js +113 -110
- package/dist/mcp/tools/complete-reminder.js +8 -6
- package/dist/mcp/tools/create-reminder.js +8 -6
- package/dist/mcp/tools/create-task.js +26 -24
- package/dist/mcp/tools/deactivate-behavior.js +15 -13
- package/dist/mcp/tools/list-reminders.js +8 -6
- package/dist/mcp/tools/list-tasks.js +26 -24
- package/dist/mcp/tools/send-message.js +25 -23
- package/dist/mcp/tools/update-task.js +24 -22
- package/dist/{mcp-child-registry-TIZERM7O.js → mcp-child-registry-5VUG5ATZ.js} +1 -1
- package/dist/{mcp-http-config-VUMSFWFH.js → mcp-http-config-SKXESWHA.js} +9 -7
- package/dist/{mcp-session-identity-DZHWEJRV.js → mcp-session-identity-HYMLJXXA.js} +21 -19
- package/dist/{memory-cards-JVXTMSAT.js → memory-cards-PAZDUQ3B.js} +16 -32
- package/dist/{memory-graph-extractor-PPBJMYFJ.js → memory-graph-extractor-BC6QKBY6.js} +11 -9
- package/dist/{memory-poisoning-defense-K5Q74XQ4.js → memory-poisoning-defense-BRGIHF6J.js} +9 -7
- package/dist/{memory-pressure-watchdog-YMJH5CSA.js → memory-pressure-watchdog-HR6TPOMT.js} +22 -20
- package/dist/{memory-reflection-7BZWIHRE.js → memory-reflection-LO7VFBL3.js} +38 -59
- package/dist/memory-write-repository-J25USX63.js +16 -0
- package/dist/{monitor-grants-Q7X3MYQP.js → monitor-grants-YQTO6NWR.js} +3 -3
- package/dist/{monitor-identity-ZQB4IXEE.js → monitor-identity-POVTG76Y.js} +2 -2
- package/dist/{notification-ledger-XRAXL5OI.js → notification-ledger-KLD6GZTG.js} +22 -20
- package/dist/{notifications-JE3PX55X.js → notifications-3R6HNHDR.js} +21 -19
- package/dist/{orchestration-events-JCQ5F5IJ.js → orchestration-events-CHY3GOJD.js} +7 -5
- package/dist/{orchestrator-X65INDTR.js → orchestrator-GAL3HOAD.js} +23 -21
- package/dist/{org-brief-session-3PQ22UIX.js → org-brief-session-LQ2DBYVF.js} +17 -15
- package/dist/{org-consent-policy-VGELJ7K7.js → org-consent-policy-KFUP7QPG.js} +5 -5
- package/dist/{org-join-6TO5ZYUZ.js → org-join-MXZCIQWX.js} +8 -8
- package/dist/{org-key-admin-XHYVRRAZ.js → org-key-admin-4UK6QUT7.js} +9 -9
- package/dist/{org-key-pin-TTTYGTQL.js → org-key-pin-ZOX4OM3O.js} +3 -3
- package/dist/{org-membership-Y7T2BS57.js → org-membership-D5TPN45F.js} +4 -4
- package/dist/{org-partner-config-OP4NEUNF.js → org-partner-config-3FXSYPQA.js} +7 -7
- package/dist/{org-partner-runtime-YNVUNT2R.js → org-partner-runtime-TH3LMPII.js} +20 -16
- package/dist/{org-row-visibility-JBBXNYXD.js → org-row-visibility-Y5R33C5U.js} +1 -1
- package/dist/{pipeline-router-EIBB7QNG.js → pipeline-router-E2JZLDK6.js} +7 -5
- package/dist/{plan-limits-MEWXYLEN.js → plan-limits-NYI6R4IK.js} +9 -7
- package/dist/{platform-procedures-Z7ZGBJWN.js → platform-procedures-RTD5E3BD.js} +5 -3
- package/dist/{pre-tool-use-impl-C6KJY22W.js → pre-tool-use-impl-LT4FRXBP.js} +127 -83
- package/dist/{project-boot-VEYFCCSL.js → project-boot-LIMXQKAF.js} +25 -17
- package/dist/{project-name-UYORSNGE.js → project-name-V62GWALX.js} +7 -5
- package/dist/{projection-worker-WYFDWS57.js → projection-worker-KLE3IZQ2.js} +5 -2
- package/dist/{prospective-memory-E6XBQFJA.js → prospective-memory-HRN7JFT2.js} +6 -4
- package/dist/{push-notifications-M7YU63FY.js → push-notifications-XC6EQEXF.js} +22 -20
- package/dist/{reproject-worktree-memories-B5XMGJSD.js → reproject-worktree-memories-4CAVZSFE.js} +21 -19
- package/dist/{reranker-SRA4BR7N.js → reranker-2RU6IIX2.js} +1 -1
- package/dist/{retrieval-health-P2JPZUPV.js → retrieval-health-4Q5TOV2S.js} +1 -1
- package/dist/{review-polling-KQPN7IQE.js → review-polling-WOWIMBCL.js} +22 -20
- package/dist/runtime/index.js +30 -28
- package/dist/{session-events-6LDDKKY3.js → session-events-OPMS2C5F.js} +22 -20
- package/dist/{session-kill-telemetry-5DSRGWCL.js → session-kill-telemetry-3GWATSIX.js} +22 -20
- package/dist/{session-scope-XG5R3P3D.js → session-scope-TIRGR4MH.js} +21 -19
- package/dist/{setup-wizard-7QFLZIKT.js → setup-wizard-B2JBVGNH.js} +3 -3
- package/dist/{shard-manager-HHHHV2KZ.js → shard-manager-C7LYX6E4.js} +5 -1
- package/dist/{skill-refinement-I5RMAHSC.js → skill-refinement-FWQFYNBI.js} +7 -5
- package/dist/skill-retrieval-PPLFC5RY.js +166 -0
- package/dist/skill-usage-NDB67PU2.js +25 -0
- package/dist/{stack-generate-manifest-AKMZ3AUX.js → stack-generate-manifest-AXI55MEQ.js} +6 -6
- package/dist/{stack-promote-34CE2HHF.js → stack-promote-6N23OGZY.js} +6 -6
- package/dist/stack-release-2CXFYVWM.js +2770 -0
- package/dist/{stack-update-ZQQ5YYPJ.js → stack-update-U53FBVCQ.js} +13 -5
- package/dist/{steward-gate-AQJ6KT2C.js → steward-gate-TUA3QCN7.js} +7 -5
- package/dist/{subagent-brief-injection-3GU7YAWY.js → subagent-brief-injection-N52RWYFZ.js} +34 -32
- package/dist/{subagent-spawn-ledger-52I66CLW.js → subagent-spawn-ledger-OI23OT4I.js} +1 -1
- package/dist/support-bug-actions-XWCJI6S5.js +30 -0
- package/dist/support-inbox-MMVTCXRX.js +77 -0
- package/dist/{support-outbox-KNI3FR3G.js → support-outbox-2TG2UV6J.js} +2 -2
- package/dist/{task-enforcement-CAA6D2MH.js → task-enforcement-JDMBAAOY.js} +22 -20
- package/dist/{task-request-inbox-QBZVU66E.js → task-request-inbox-PKJCYKJV.js} +9 -5
- package/dist/{task-scope-NHXB4ZRN.js → task-scope-32HQEV6W.js} +27 -19
- package/dist/{tasks-crud-JHSWL5NM.js → tasks-crud-CYKUKS3F.js} +21 -19
- package/dist/{tasks-notify-7PBE4U7T.js → tasks-notify-YND5MKWJ.js} +22 -20
- package/dist/{tasks-review-PPPVEE62.js → tasks-review-CG2A5GM3.js} +23 -19
- package/dist/{telemetry-upload-YU2VRNHX.js → telemetry-upload-WLUMEFAB.js} +11 -9
- package/dist/{token-budget-QCMWKG3K.js → token-budget-3YHAY5LL.js} +7 -5
- package/dist/{tool-capability-index-7AWQAJRP.js → tool-capability-index-2ADOWH43.js} +2 -2
- package/dist/{tool-gates-5Q3RSQEG.js → tool-gates-7ENOOYMR.js} +5 -3
- package/dist/{tool-gates-QD26D2NE.js → tool-gates-EKJTLVGN.js} +1 -1
- package/dist/{tool-telemetry-LTOIC64I.js → tool-telemetry-VUP7S6HC.js} +1 -1
- package/dist/tui/App.js +59 -35
- package/dist/{tui-data-NDBXD6U7.js → tui-data-BOQTOW2G.js} +25 -23
- package/dist/{update-support-BMJM4NG7.js → update-support-WT3S3AQ4.js} +21 -21
- package/dist/{whatsapp-QQLDAHUX.js → whatsapp-OZGIF2EM.js} +2 -2
- package/dist/{wiki-acl-W6WDCVCP.js → wiki-acl-LTEQJVDA.js} +1 -1
- package/dist/{work-claims-6DM32MGO.js → work-claims-CMV2GWIW.js} +8 -6
- package/dist/{work-state-heartbeat-HG7D4AWJ.js → work-state-heartbeat-S45TXK4M.js} +1 -1
- package/dist/{worker-gate-FTMW7GBB.js → worker-gate-7Z6NMM3G.js} +1 -1
- package/dist/{workflow-engine-ZWC6CCXE.js → workflow-engine-ZSQDXZQ7.js} +2 -2
- package/dist/{worktree-EMQCPGFE.js → worktree-NMWDVT6N.js} +8 -6
- package/dist/worktree-ownership-guard-ZVIWJAOP.js +35 -0
- package/dist/{worktree-sweep-XVUJZBXV.js → worktree-sweep-Q62ZIT3U.js} +9 -7
- package/package.json +14 -8
- package/release-notes.json +7 -41
- package/src/commands/exe/afk.md +6 -0
- package/src/commands/exe/call.md +6 -0
- package/src/commands/exe/employee-heartbeat.md +6 -0
- package/src/commands/exe/intercom.md +6 -0
- package/src/commands/exe/kill.md +6 -0
- package/src/commands/exe/launch.md +6 -0
- package/src/commands/exe/logs.md +1 -1
- package/src/commands/exe/sessions.md +6 -0
- package/src/commands/exe/setup.md +7 -3
- package/src/commands/exe/status.md +6 -0
- package/src/commands/exe-reference.md +25 -36
- package/src/commands/exe.md +19 -28
- package/stack.release.json +11 -11
- package/dist/chunk-3B6FLNLV.js +0 -30
- package/dist/chunk-FXU7JOXK.js +0 -6
- package/dist/chunk-QFAFKEB5.js +0 -820
- package/dist/conversations-retention-C4BLKFEL.js +0 -54
- package/dist/stack-release-5PGWV5D4.js +0 -1607
- package/dist/support-inbox-NY5TB3FN.js +0 -51
- /package/dist/{chunk-U2D6PJ5T.js → chunk-65G7ZTGE.js} +0 -0
- /package/dist/{chunk-DN3ZR3UE.js → chunk-CP7Z35MJ.js} +0 -0
- /package/dist/{chunk-XDVOGDBC.js → chunk-KBBWALJV.js} +0 -0
- /package/dist/{chunk-JRIH6I7D.js → chunk-LZXYPTY4.js} +0 -0
- /package/dist/{chunk-GIRD7O5X.js → chunk-MCWEW2SG.js} +0 -0
- /package/dist/{chunk-TKAU7IJ2.js → chunk-MQHUJLCA.js} +0 -0
- /package/dist/{chunk-M4XY4JRK.js → chunk-O53LTOXK.js} +0 -0
- /package/dist/{chunk-DZN7SDY2.js → chunk-OSVTH3SG.js} +0 -0
- /package/dist/{chunk-AJK2PVQW.js → chunk-QXXEXGX3.js} +0 -0
- /package/dist/{chunk-AWWDKF22.js → chunk-SFWNTO2F.js} +0 -0
- /package/dist/{chunk-2Q2CD6CD.js → chunk-WC5HF2FN.js} +0 -0
- /package/dist/{core-memory-O6D5UC3T.js → core-memory-MMMW3TF3.js} +0 -0
- /package/dist/{memory-isolation-EBFFC6HF.js → memory-isolation-67ACKQ2M.js} +0 -0
- /package/dist/{oauth-server-ZKBUHDFI.js → oauth-server-OILIKR7D.js} +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGlobalProceduresBlock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z7I6NQMA.js";
|
|
4
|
+
import {
|
|
5
|
+
writePlatformReferenceFile
|
|
6
|
+
} from "./chunk-IZWMWJZT.js";
|
|
4
7
|
|
|
5
8
|
// src/lib/employee-templates.ts
|
|
6
9
|
var BASE_OPERATING_PROCEDURES = `
|
|
@@ -85,17 +88,15 @@ DO NOT keep working degraded. Instead:
|
|
|
85
88
|
Format the text as: "CONTEXT CHECKPOINT [<task-id>]: <summary>"
|
|
86
89
|
Include: task ID + title, what you completed, what's left, open decisions or blockers, key file paths.
|
|
87
90
|
|
|
88
|
-
3.
|
|
89
|
-
|
|
90
|
-
EXE_SESSION="\${MY_SESSION#\${AGENT_ID}-}"
|
|
91
|
-
tmux send-keys -t "$EXE_SESSION" "context-full: \${AGENT_ID} hit capacity. Checkpoint saved. Resume task <task-id>." Enter
|
|
91
|
+
3. Report the checkpoint on the task row: update_task with the task id, what is done,
|
|
92
|
+
what remains, and the checkpoint memory id \u2014 that row is what the next context reads.
|
|
92
93
|
|
|
93
94
|
4. Stop working immediately. Do not attempt to continue with degraded context.
|
|
94
95
|
|
|
95
96
|
COMMUNICATION CHAIN \u2014 who you talk to:
|
|
96
97
|
- You report to the COO. Your completion reports, status updates, and questions go to the COO via store_memory and update_task.
|
|
97
98
|
- Do NOT address the human user directly for decisions, permissions, or status updates. That's the COO's job. The user talks to the COO; the COO talks to you.
|
|
98
|
-
- Exception: if the user
|
|
99
|
+
- Exception: if the user speaks to you directly, respond to them. But default to reporting through exe.
|
|
99
100
|
|
|
100
101
|
SKILL CAPTURE (encouraged, not mandatory):
|
|
101
102
|
After completing a complex multi-step task (5+ tool calls), consider whether the approach
|
|
@@ -104,28 +105,27 @@ or a workflow that would help future sessions, use store_behavior with domain='s
|
|
|
104
105
|
Format: "SKILL: [name] \u2014 Step 1: ... Step 2: ... Pitfalls: ..."
|
|
105
106
|
Skip for simple one-offs. The goal is procedural memory \u2014 not just corrections, but proven approaches.
|
|
106
107
|
|
|
107
|
-
DELEGATING WORK \u2014 the dispatch ladder (stop at the
|
|
108
|
+
DELEGATING WORK \u2014 the dispatch ladder (two rungs, stop at the lower one that fits):
|
|
108
109
|
1. Do it yourself \u2014 trivial, in-scope work in your main context.
|
|
109
|
-
2. Named
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
- ALWAYS use create_task with execution_mode='durable_tmux'. NEVER write .md files directly to exe/{name}/.
|
|
110
|
+
2. Named subagent \u2014 Agent(subagent_type='<employee>'). The ONLY delegation path:
|
|
111
|
+
worktree isolation for code work, a brief carrying the file fence, acceptance
|
|
112
|
+
criteria and the guardrails. Bounded well-specified work; parallel research;
|
|
113
|
+
isolated fixes; verbose throwaway exploration. Cap 2-3 concurrent. MANDATORY:
|
|
114
|
+
persist the subagent's result and lessons into the task checklist row + memory
|
|
115
|
+
BEFORE you finish \u2014 subagent output must never die in a context window.
|
|
116
|
+
|
|
117
|
+
DELEGATION RULES (mandatory \u2014 never bypass):
|
|
118
|
+
Background employee sessions are retired. There is no way to start one and no
|
|
119
|
+
reason to want one: a subagent returns its result to you, which is what makes you
|
|
120
|
+
responsible for reading and recording it.
|
|
121
|
+
NEVER dispatch a subagent without a written brief \u2014 an unscoped subagent edits
|
|
122
|
+
things you did not ask for.
|
|
123
|
+
NEVER refuse work assigned to you claiming "not in scope" \u2014 if it's yours, do it.
|
|
124
|
+
|
|
125
|
+
TRACKING WORK FOR OTHER EMPLOYEES:
|
|
126
|
+
create_task records a DURABLE CHECKLIST ROW. It never dispatches anyone \u2014 dispatch
|
|
127
|
+
is Agent(subagent_type='<employee>'), and the row is where the result lands.
|
|
128
|
+
- ALWAYS use create_task for the row. NEVER write .md files directly to exe/{name}/.
|
|
129
129
|
- Direct .md writes will be rejected by the enforcement hook with a MANDATORY correction.
|
|
130
130
|
- create_task creates both the .md file AND the DB row atomically.
|
|
131
131
|
- Include: title, assignedTo, priority, context, projectName.
|
|
@@ -166,6 +166,7 @@ You are **${title}** (specialist). `;
|
|
|
166
166
|
}
|
|
167
167
|
const rolePrompt = withoutProcedures.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/, "").replace(/<!--[\s\S]*?-->/g, "").trimStart();
|
|
168
168
|
const globalBlock = getGlobalProceduresBlock();
|
|
169
|
+
writePlatformReferenceFile();
|
|
169
170
|
return `${globalBlock}${titlePrefix}${rolePrompt}
|
|
170
171
|
${BASE_OPERATING_PROCEDURES}`;
|
|
171
172
|
}
|
|
@@ -462,7 +463,7 @@ Your core job: audit code, find bugs, verify fixes, and ensure customer-readines
|
|
|
462
463
|
|
|
463
464
|
The 7 Audit Patterns (MANDATORY \u2014 apply to EVERY audit):
|
|
464
465
|
1. "Works on dev, breaks on user install" \u2014 verify scoped paths, npm resolution, dependencies
|
|
465
|
-
2. "Two code paths, one untested" \u2014
|
|
466
|
+
2. "Two code paths, one untested" \u2014 CLI vs MCP, hook vs tool \u2014 verify BOTH
|
|
466
467
|
3. "Case sensitivity kills non-technical users" \u2014 normalize all user inputs
|
|
467
468
|
4. "Hardcoded names leak into user-facing content" \u2014 grep for employee names in runtime logic
|
|
468
469
|
5. "Installer doesn't self-heal on update" \u2014 npm update must auto-fix stale hooks/paths
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3UD3OF3X.js";
|
|
4
4
|
import {
|
|
5
5
|
loadConfigSync
|
|
6
6
|
} from "./chunk-MMS2HBRT.js";
|
|
@@ -130,6 +130,12 @@ function evaluateSpendCapAlert(previousLevel, status) {
|
|
|
130
130
|
return { shouldAlert: false, level: currentLevel, summary: null };
|
|
131
131
|
}
|
|
132
132
|
var MODEL_PRICING = {
|
|
133
|
+
// Sonnet 5 / Opus 5 / Fable 5 (current generation). Prices are the tier
|
|
134
|
+
// assumption (same tier as Opus 4.5+ / Sonnet 4.x) and should be confirmed
|
|
135
|
+
// against Anthropic's published pricing once generation-5 pricing is public.
|
|
136
|
+
"claude-sonnet-5": { input: 3 / 1e6, output: 15 / 1e6, cacheRead: 0.3 / 1e6, cacheWrite: 3.75 / 1e6 },
|
|
137
|
+
"claude-opus-5": { input: 5 / 1e6, output: 25 / 1e6, cacheRead: 0.5 / 1e6, cacheWrite: 6.25 / 1e6 },
|
|
138
|
+
"claude-fable-5": { input: 5 / 1e6, output: 25 / 1e6, cacheRead: 0.5 / 1e6, cacheWrite: 6.25 / 1e6 },
|
|
133
139
|
// Opus 4.5+ ($5/$25 — Anthropic price drop from original Opus 4)
|
|
134
140
|
"claude-opus-4-7": { input: 5 / 1e6, output: 25 / 1e6, cacheRead: 0.5 / 1e6, cacheWrite: 6.25 / 1e6 },
|
|
135
141
|
"claude-opus-4-6": { input: 5 / 1e6, output: 25 / 1e6, cacheRead: 0.5 / 1e6, cacheWrite: 6.25 / 1e6 },
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MEMORY_SCOPED_HASH_INDEX_SQL,
|
|
3
|
+
memoryDuplicatePredicate,
|
|
4
|
+
memoryScopePredicate,
|
|
5
|
+
memoryWriteScope
|
|
6
|
+
} from "./chunk-RBQUXHYK.js";
|
|
7
|
+
import {
|
|
8
|
+
isPostgresBackendEnabled
|
|
9
|
+
} from "./chunk-YYB5PMTK.js";
|
|
10
|
+
import {
|
|
11
|
+
PROJECTION_KINDS
|
|
12
|
+
} from "./chunk-C7GHNJPW.js";
|
|
13
|
+
|
|
14
|
+
// src/lib/projection-outbox.ts
|
|
15
|
+
import { randomUUID } from "crypto";
|
|
16
|
+
var MEMORY_PROJECTION_OUTBOX_TABLE_SQL = `CREATE TABLE IF NOT EXISTS memory_projection_outbox (
|
|
17
|
+
id TEXT PRIMARY KEY,
|
|
18
|
+
memory_id TEXT NOT NULL,
|
|
19
|
+
memory_version INTEGER NOT NULL,
|
|
20
|
+
projection TEXT NOT NULL,
|
|
21
|
+
enqueued_at TEXT NOT NULL,
|
|
22
|
+
attempts INTEGER NOT NULL DEFAULT 0,
|
|
23
|
+
last_attempt_at TEXT,
|
|
24
|
+
last_error TEXT,
|
|
25
|
+
applied_at TEXT,
|
|
26
|
+
status TEXT NOT NULL DEFAULT 'pending'
|
|
27
|
+
)`;
|
|
28
|
+
var MEMORY_PROJECTION_OUTBOX_INDEX_SQL = `CREATE INDEX IF NOT EXISTS idx_memory_projection_outbox_projection_status_seq
|
|
29
|
+
ON memory_projection_outbox(projection, status, memory_version)`;
|
|
30
|
+
var MEMORY_PROJECTION_OUTBOX_UNIQUE_INDEX_SQL = `CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_projection_outbox_unique_seq
|
|
31
|
+
ON memory_projection_outbox(memory_id, memory_version, projection)`;
|
|
32
|
+
var PROJECTION_CHECKPOINT_TABLE_SQL = `CREATE TABLE IF NOT EXISTS projection_checkpoint (
|
|
33
|
+
projection TEXT PRIMARY KEY,
|
|
34
|
+
last_applied_sequence INTEGER NOT NULL DEFAULT 0,
|
|
35
|
+
last_applied_at TEXT,
|
|
36
|
+
updated_at TEXT NOT NULL
|
|
37
|
+
)`;
|
|
38
|
+
function buildProjectionOutboxInserts(row, enqueuedAt, projections = PROJECTION_KINDS) {
|
|
39
|
+
return projections.map((projection) => ({
|
|
40
|
+
sql: `INSERT OR IGNORE INTO memory_projection_outbox (id, memory_id, memory_version, projection, enqueued_at, status)
|
|
41
|
+
SELECT ?, m.id, m.version, ?, ?, 'pending'
|
|
42
|
+
FROM memories m WHERE m.id = ? AND m.content_hash = ?
|
|
43
|
+
AND COALESCE(m.memory_type, 'raw') = ?
|
|
44
|
+
AND COALESCE(m.supersedes_id, '') = COALESCE(?, '')
|
|
45
|
+
AND COALESCE(m.draft, 0) = ?
|
|
46
|
+
AND COALESCE(m.quarantined, 0) = 0`,
|
|
47
|
+
args: [
|
|
48
|
+
randomUUID(),
|
|
49
|
+
projection,
|
|
50
|
+
enqueuedAt,
|
|
51
|
+
row.id,
|
|
52
|
+
row.content_hash ?? null,
|
|
53
|
+
row.memory_type ?? "raw",
|
|
54
|
+
row.supersedes_id ?? null,
|
|
55
|
+
Number(row.draft ?? 0)
|
|
56
|
+
]
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// src/lib/memory-write-repository.ts
|
|
61
|
+
async function ensureMemoryWriteIndex(client) {
|
|
62
|
+
const existing = await client.execute("SELECT sql FROM sqlite_master WHERE type = 'index' AND name = 'idx_memories_unique_scoped_hash'");
|
|
63
|
+
const normalize = (sql) => sql.replace(/ IF NOT EXISTS/gi, "").replace(/\s+/g, " ").trim();
|
|
64
|
+
if (normalize(String(existing.rows[0]?.sql ?? "")) === normalize(MEMORY_SCOPED_HASH_INDEX_SQL)) return;
|
|
65
|
+
await client.batch(["DROP INDEX IF EXISTS idx_memories_unique_scoped_hash", MEMORY_SCOPED_HASH_INDEX_SQL], "write");
|
|
66
|
+
}
|
|
67
|
+
function buildMemoryInsert(row, replica = false) {
|
|
68
|
+
const values = {
|
|
69
|
+
id: row.id,
|
|
70
|
+
agent_id: row.agent_id,
|
|
71
|
+
agent_role: row.agent_role,
|
|
72
|
+
session_id: row.session_id,
|
|
73
|
+
timestamp: row.timestamp,
|
|
74
|
+
tool_name: row.tool_name,
|
|
75
|
+
project_name: row.project_name,
|
|
76
|
+
has_error: row.has_error,
|
|
77
|
+
raw_text: row.raw_text,
|
|
78
|
+
vector: row.vector === null ? null : JSON.stringify(Array.from(row.vector)),
|
|
79
|
+
task_id: row.task_id ?? null,
|
|
80
|
+
importance: row.importance ?? 5,
|
|
81
|
+
status: row.status ?? "active",
|
|
82
|
+
confidence: row.confidence ?? 0.7,
|
|
83
|
+
last_accessed: row.last_accessed ?? row.timestamp,
|
|
84
|
+
workspace_id: row.workspace_id ?? null,
|
|
85
|
+
document_id: row.document_id ?? null,
|
|
86
|
+
user_id: row.user_id ?? null,
|
|
87
|
+
char_offset: row.char_offset ?? null,
|
|
88
|
+
page_number: row.page_number ?? null,
|
|
89
|
+
source_path: row.source_path ?? null,
|
|
90
|
+
source_type: row.source_type ?? null,
|
|
91
|
+
tier: row.tier ?? 3,
|
|
92
|
+
supersedes_id: row.supersedes_id ?? null,
|
|
93
|
+
valid_from: row.valid_from ?? row.timestamp,
|
|
94
|
+
invalid_at: row.invalid_at ?? null,
|
|
95
|
+
draft: row.draft ? 1 : 0,
|
|
96
|
+
memory_type: row.memory_type ?? "raw",
|
|
97
|
+
trajectory: row.trajectory ?? null,
|
|
98
|
+
content_hash: row.content_hash ?? null,
|
|
99
|
+
intent: row.intent ?? null,
|
|
100
|
+
outcome: row.outcome ?? null,
|
|
101
|
+
domain: row.domain ?? null,
|
|
102
|
+
referenced_entities: row.referenced_entities ?? null,
|
|
103
|
+
retrieval_count: row.retrieval_count ?? 0,
|
|
104
|
+
chain_position: row.chain_position ?? null,
|
|
105
|
+
review_status: row.review_status ?? null,
|
|
106
|
+
context_window_pct: row.context_window_pct ?? null,
|
|
107
|
+
file_paths: row.file_paths ?? null,
|
|
108
|
+
commit_hash: row.commit_hash ?? null,
|
|
109
|
+
duration_ms: row.duration_ms ?? null,
|
|
110
|
+
token_cost: row.token_cost ?? null,
|
|
111
|
+
audience: row.audience ?? null,
|
|
112
|
+
language_type: row.language_type ?? null,
|
|
113
|
+
parent_memory_id: row.parent_memory_id ?? null,
|
|
114
|
+
procedure_for: row.procedure_for ?? null,
|
|
115
|
+
session_scope: row.session_scope ?? null,
|
|
116
|
+
keywords: row.keywords ?? "",
|
|
117
|
+
founder_id: row.founder_id ?? null,
|
|
118
|
+
quarantined: row.quarantined ?? 0,
|
|
119
|
+
quarantine_reason: row.quarantine_reason ?? null,
|
|
120
|
+
embedding_model: row.embedding_model ?? null,
|
|
121
|
+
// The grandfathered uniqueness index is local to the SQLite schema.
|
|
122
|
+
...!isPostgresBackendEnabled() ? { write_contract_version: 1 } : {},
|
|
123
|
+
// Keep the expression-only sequence last so adapter boolean bindings retain
|
|
124
|
+
// the same positions as their columns. All preceding values bind once.
|
|
125
|
+
version: row.version
|
|
126
|
+
};
|
|
127
|
+
const columns = Object.keys(values), args = [];
|
|
128
|
+
const expressions = columns.map((column) => {
|
|
129
|
+
if (column === "version" && !replica) {
|
|
130
|
+
return "(SELECT COALESCE(MAX(version), 0) + 1 FROM memories)";
|
|
131
|
+
}
|
|
132
|
+
args.push(values[column]);
|
|
133
|
+
return column === "vector" && row.vector !== null ? "vector32(?)" : "?";
|
|
134
|
+
});
|
|
135
|
+
let predicate = "1 = 1";
|
|
136
|
+
if (!replica) {
|
|
137
|
+
const duplicate = memoryDuplicatePredicate(row);
|
|
138
|
+
predicate += ` AND NOT EXISTS (SELECT 1 FROM memories WHERE ${duplicate.sql})`;
|
|
139
|
+
args.push(...duplicate.args);
|
|
140
|
+
if (row.supersedes_id) {
|
|
141
|
+
const owner = memoryScopePredicate(memoryWriteScope(row));
|
|
142
|
+
predicate += ` AND EXISTS (SELECT 1 FROM memories WHERE id = ? AND ${owner.sql}
|
|
143
|
+
AND invalid_at IS NULL AND COALESCE(status, 'active') = 'active'
|
|
144
|
+
AND COALESCE(quarantined, 0) = 0)`;
|
|
145
|
+
args.push(row.supersedes_id, ...owner.args);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
sql: `INSERT OR IGNORE INTO memories (${columns.join(", ")})
|
|
150
|
+
SELECT ${expressions.join(", ")} WHERE ${predicate}`,
|
|
151
|
+
args
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function receiptStatement(row) {
|
|
155
|
+
const scope = memoryScopePredicate(memoryWriteScope(row));
|
|
156
|
+
const duplicate = memoryDuplicatePredicate(row);
|
|
157
|
+
return {
|
|
158
|
+
sql: `SELECT id, version, content_hash, memory_type, supersedes_id, draft, quarantined
|
|
159
|
+
FROM memories WHERE ${scope.sql} AND (id = ? OR (${duplicate.sql}))
|
|
160
|
+
ORDER BY CASE WHEN id = ? THEN 0 ELSE 1 END, timestamp DESC, id DESC LIMIT 1`,
|
|
161
|
+
args: [...scope.args, row.id, ...duplicate.args, row.id]
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function receipt(row, saved) {
|
|
165
|
+
if (!saved) return { outcome: "rejected", id: row.id, reason: "No eligible record was committed; ownership or predecessor state did not match." };
|
|
166
|
+
if (saved.content_hash !== row.content_hash || (saved.memory_type ?? "raw") !== (row.memory_type ?? "raw") || (saved.supersedes_id ?? null) !== (row.supersedes_id ?? null) || Number(saved.draft ?? 0) !== Number(row.draft ?? 0)) {
|
|
167
|
+
return { outcome: "rejected", id: row.id, reason: "Memory command id is already used by a different payload." };
|
|
168
|
+
}
|
|
169
|
+
return {
|
|
170
|
+
outcome: Number(saved.quarantined ?? 0) ? "quarantined" : saved.id === row.id ? "committed" : "duplicate",
|
|
171
|
+
id: String(saved.id),
|
|
172
|
+
version: Number(saved.version)
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
async function readMemoryWriteOutcome(client, row) {
|
|
176
|
+
const result = await client.execute(receiptStatement(row));
|
|
177
|
+
return receipt(row, result.rows[0]);
|
|
178
|
+
}
|
|
179
|
+
async function persistMemoryBatch(client, rows) {
|
|
180
|
+
const statements = [];
|
|
181
|
+
const enqueuedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
182
|
+
const positions = rows.map((row) => {
|
|
183
|
+
const insert = statements.length;
|
|
184
|
+
statements.push(buildMemoryInsert(row));
|
|
185
|
+
if (row.supersedes_id) {
|
|
186
|
+
const scope = memoryScopePredicate(memoryWriteScope(row));
|
|
187
|
+
const replacement = memoryScopePredicate(memoryWriteScope(row), "replacement.");
|
|
188
|
+
statements.push({
|
|
189
|
+
sql: `UPDATE memories SET invalid_at = ?, status = 'archived',
|
|
190
|
+
version = (SELECT COALESCE(MAX(version), 0) + 1 FROM memories)
|
|
191
|
+
WHERE id = ? AND ${scope.sql} AND invalid_at IS NULL
|
|
192
|
+
AND EXISTS (SELECT 1 FROM memories replacement WHERE replacement.id = ?
|
|
193
|
+
AND replacement.supersedes_id = ? AND ${replacement.sql}
|
|
194
|
+
AND replacement.content_hash = ? AND replacement.memory_type = ?
|
|
195
|
+
AND COALESCE(replacement.quarantined, 0) = 0)`,
|
|
196
|
+
args: [
|
|
197
|
+
row.valid_from ?? row.timestamp,
|
|
198
|
+
row.supersedes_id,
|
|
199
|
+
...scope.args,
|
|
200
|
+
row.id,
|
|
201
|
+
row.supersedes_id,
|
|
202
|
+
...replacement.args,
|
|
203
|
+
row.content_hash ?? null,
|
|
204
|
+
row.memory_type ?? "raw"
|
|
205
|
+
]
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
statements.push(...buildProjectionOutboxInserts(row, enqueuedAt));
|
|
209
|
+
const read = statements.length;
|
|
210
|
+
statements.push(receiptStatement(row));
|
|
211
|
+
return { insert, read };
|
|
212
|
+
});
|
|
213
|
+
const results = await client.batch(statements, "write");
|
|
214
|
+
const inserted = [];
|
|
215
|
+
const outcomes = rows.map((row, index) => {
|
|
216
|
+
const position = positions[index];
|
|
217
|
+
const outcome = receipt(row, results[position.read]?.rows[0]);
|
|
218
|
+
if (Number(results[position.insert]?.rowsAffected ?? 0) > 0 && "version" in outcome) {
|
|
219
|
+
row.version = outcome.version;
|
|
220
|
+
inserted.push(row);
|
|
221
|
+
}
|
|
222
|
+
return outcome;
|
|
223
|
+
});
|
|
224
|
+
return { outcomes, inserted };
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export {
|
|
228
|
+
MEMORY_PROJECTION_OUTBOX_TABLE_SQL,
|
|
229
|
+
MEMORY_PROJECTION_OUTBOX_INDEX_SQL,
|
|
230
|
+
MEMORY_PROJECTION_OUTBOX_UNIQUE_INDEX_SQL,
|
|
231
|
+
PROJECTION_CHECKPOINT_TABLE_SQL,
|
|
232
|
+
ensureMemoryWriteIndex,
|
|
233
|
+
buildMemoryInsert,
|
|
234
|
+
readMemoryWriteOutcome,
|
|
235
|
+
persistMemoryBatch
|
|
236
|
+
};
|