@askexenow/exe-os 0.9.277 → 0.9.278
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.customer.example +7 -1
- package/deploy/compose/docker-compose.yml +101 -3
- package/deploy/compose/generate-env.ts +15 -1
- package/deploy/stack-manifests/v0.9.json +10 -1
- package/dist/active-agent-5EEYT2TE.js +27 -0
- package/dist/active-agent-BYJKV76X.js +27 -0
- package/dist/active-agent-EZYHPCST.js +27 -0
- package/dist/active-agent-MPL6V6XS.js +26 -0
- package/dist/active-agent-URILMEDD.js +26 -0
- package/dist/active-agent-UY52QRI3.js +26 -0
- package/dist/agentic-ontology-5VGMSNAJ.js +25 -0
- package/dist/agentic-ontology-SJMJ5YZF.js +25 -0
- package/dist/agentic-ontology-YRIBZ5WG.js +25 -0
- package/dist/backfill-metadata-6ZWW4M7H.js +599 -0
- package/dist/backfill-metadata-B6WU3MZI.js +599 -0
- package/dist/backfill-metadata-ELH7WG2M.js +598 -0
- package/dist/backfill-metadata-MKHNOYCY.js +599 -0
- package/dist/backfill-metadata-MLXZCZYY.js +599 -0
- package/dist/backfill-metadata-T46CBFOR.js +599 -0
- package/dist/backfill-metadata-UERHT4FO.js +599 -0
- package/dist/background-jobs-MO44YETB.js +25 -0
- package/dist/behaviors-3XOGHWHJ.js +39 -0
- package/dist/behaviors-6FTJ2MIS.js +39 -0
- package/dist/behaviors-AMABGD5P.js +39 -0
- package/dist/behaviors-DCLKGAEV.js +39 -0
- package/dist/behaviors-EPPOMBKH.js +32 -0
- package/dist/behaviors-NTIOVMUF.js +39 -0
- package/dist/behaviors-QTEHBMEJ.js +39 -0
- package/dist/bin/age-ontology-load.js +2 -2
- package/dist/bin/agentic-ontology-backfill.js +8 -7
- package/dist/bin/agentic-reflection-backfill.js +9 -8
- package/dist/bin/agentic-semantic-label.js +8 -7
- package/dist/bin/backfill-conversations.js +8 -7
- package/dist/bin/backfill-responses.js +8 -7
- package/dist/bin/backfill-vectors.js +11 -10
- package/dist/bin/bulk-sync-postgres.js +9 -8
- package/dist/bin/cc-doctor.js +7 -6
- package/dist/bin/cleanup-stale-review-tasks.js +13 -12
- package/dist/bin/cli.js +75 -23
- package/dist/bin/exe-agent-config.js +5 -4
- package/dist/bin/exe-agent.js +10 -9
- package/dist/bin/exe-assign.js +10 -9
- package/dist/bin/exe-boot.js +21 -20
- package/dist/bin/exe-call.js +7 -6
- package/dist/bin/exe-cloud.js +8 -7
- package/dist/bin/exe-dispatch.js +13 -12
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +9 -8
- package/dist/bin/exe-forget.js +8 -7
- package/dist/bin/exe-gateway.js +9 -8
- package/dist/bin/exe-healthcheck.js +7 -6
- package/dist/bin/exe-heartbeat.js +13 -12
- package/dist/bin/exe-kill.js +16 -15
- package/dist/bin/exe-launch-agent.js +21 -20
- package/dist/bin/exe-new-employee.js +15 -12
- package/dist/bin/exe-pending-messages.js +14 -13
- package/dist/bin/exe-pending-notifications.js +13 -12
- package/dist/bin/exe-pending-reviews.js +13 -12
- package/dist/bin/exe-rename.js +7 -6
- package/dist/bin/exe-review.js +15 -14
- package/dist/bin/exe-search.js +7 -6
- package/dist/bin/exe-session-cleanup.js +18 -17
- package/dist/bin/exe-settings.js +8 -7
- package/dist/bin/exe-start-codex.js +13 -12
- package/dist/bin/exe-start-opencode.js +10 -9
- package/dist/bin/exe-status.js +14 -13
- package/dist/bin/exe-support.js +3 -3
- package/dist/bin/exe-team.js +5 -4
- package/dist/bin/exe-watchdog.js +126 -0
- package/dist/bin/git-sweep.js +14 -13
- package/dist/bin/graph-backfill.js +9 -8
- package/dist/bin/graph-export.js +7 -6
- package/dist/bin/import-history.js +11 -10
- package/dist/bin/install.js +81 -7
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +6 -5
- package/dist/bin/postgres-agentic-reflection-backfill.js +4 -4
- package/dist/bin/postgres-agentic-semantic-backfill.js +3 -3
- package/dist/bin/pre-publish.js +1 -1
- package/dist/bin/registry-proxy.js +6 -1
- package/dist/bin/scan-tasks.js +13 -12
- package/dist/bin/setup.js +2 -2
- package/dist/bin/shard-migrate.js +7 -6
- package/dist/bin/stack-update.js +33 -6
- package/dist/bin/update.js +30 -11
- package/dist/bin/verify-stack.js +1 -1
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/branding-NH36C3NT.js +97 -0
- package/dist/capability-cards-5OVVQFSG.js +88 -0
- package/dist/capability-cards-XTW7GS2S.js +88 -0
- package/dist/capacity-monitor-DHEFNQKQ.js +50 -0
- package/dist/capacity-monitor-KGERCH3E.js +50 -0
- package/dist/capacity-monitor-LN3MGVV2.js +50 -0
- package/dist/capacity-monitor-QSK3WFVR.js +49 -0
- package/dist/capacity-monitor-RHLLVXM2.js +50 -0
- package/dist/capacity-monitor-S4TFIQ3K.js +50 -0
- package/dist/capacity-monitor-YAMHRVQW.js +50 -0
- package/dist/catchup-brief-3FH3JU6I.js +154 -0
- package/dist/catchup-brief-7IEGU3TG.js +154 -0
- package/dist/catchup-brief-AVI2YEW6.js +154 -0
- package/dist/catchup-brief-L7JBWHSL.js +154 -0
- package/dist/catchup-brief-OFWBGN5K.js +153 -0
- package/dist/catchup-brief-OOJQ3IIU.js +154 -0
- package/dist/catchup-brief-ZGD2I7DQ.js +154 -0
- package/dist/catchup-brief-ZZWHYI3N.js +153 -0
- package/dist/chunk-26PLDPHD.js +712 -0
- package/dist/chunk-27L6DDYQ.js +1352 -0
- package/dist/chunk-2B2BPBA7.js +58 -0
- package/dist/chunk-2JHTGJO2.js +1094 -0
- package/dist/chunk-2JJHH2SH.js +181 -0
- package/dist/chunk-2KRZWFQD.js +230 -0
- package/dist/chunk-2KXJPQ2M.js +1352 -0
- package/dist/chunk-2O4HVPXA.js +103 -0
- package/dist/chunk-2VN6NRV2.js +54 -0
- package/dist/chunk-2WYKCROR.js +210 -0
- package/dist/chunk-2XXRXUB7.js +58 -0
- package/dist/chunk-2YFSGW7O.js +551 -0
- package/dist/chunk-34DYLKZT.js +3208 -0
- package/dist/chunk-35QBHS6B.js +97 -0
- package/dist/chunk-35RECM5W.js +348 -0
- package/dist/chunk-3747I55U.js +76 -0
- package/dist/chunk-3AYLGI7Y.js +214 -0
- package/dist/chunk-3BD55ZJF.js +227 -0
- package/dist/chunk-3CQQFYA3.js +203 -0
- package/dist/chunk-3DCQWUDP.js +85 -0
- package/dist/chunk-3EXB6T5H.js +539 -0
- package/dist/chunk-3G2Z5PJB.js +389 -0
- package/dist/chunk-3O5LAX22.js +250 -0
- package/dist/chunk-3RMCQW7X.js +197 -0
- package/dist/chunk-3SWYZGJG.js +127 -0
- package/dist/chunk-3WD3JUQK.js +75 -0
- package/dist/chunk-3WUAL3CR.js +836 -0
- package/dist/chunk-3WXEEQ3T.js +1068 -0
- package/dist/chunk-3WYLHL45.js +562 -0
- package/dist/chunk-3WYTSIOX.js +244 -0
- package/dist/chunk-42MZJF65.js +362 -0
- package/dist/chunk-44T4AOVK.js +38 -0
- package/dist/chunk-45RX4DPW.js +85 -0
- package/dist/chunk-466TZNCB.js +14126 -0
- package/dist/chunk-46KWEXRX.js +604 -0
- package/dist/chunk-4B36JN52.js +128 -0
- package/dist/chunk-4C7AHQQA.js +54 -0
- package/dist/chunk-4IAYYT3J.js +731 -0
- package/dist/chunk-4J356RKL.js +284 -0
- package/dist/chunk-4J3YVJWX.js +369 -0
- package/dist/chunk-4JRANQMB.js +448 -0
- package/dist/chunk-4NB6LQF3.js +333 -0
- package/dist/chunk-4NZXKDVR.js +299 -0
- package/dist/chunk-4PNJJ5A4.js +363 -0
- package/dist/chunk-4UJNNWJE.js +422 -0
- package/dist/chunk-4VZ6VSNU.js +97 -0
- package/dist/chunk-4XUUXIBE.js +58 -0
- package/dist/chunk-5A7JQHEM.js +1345 -0
- package/dist/chunk-5DNJPRDW.js +793 -0
- package/dist/chunk-5DTWEBG5.js +394 -0
- package/dist/chunk-5F33RNAP.js +185 -0
- package/dist/chunk-5FPHOPJQ.js +240 -0
- package/dist/chunk-5NFRSV6H.js +1076 -0
- package/dist/chunk-5PZW44VY.js +204 -0
- package/dist/chunk-5Q7ZM5IT.js +240 -0
- package/dist/chunk-5VZYDXXX.js +362 -0
- package/dist/chunk-5Y2ZXR3I.js +128 -0
- package/dist/chunk-5ZO3WY4Y.js +510 -0
- package/dist/chunk-62ZKLCYD.js +456 -0
- package/dist/chunk-64QZVAA4.js +50 -0
- package/dist/chunk-6CGG2QJX.js +50 -0
- package/dist/chunk-6LVDSPZV.js +1352 -0
- package/dist/chunk-6MV34DJ7.js +307 -0
- package/dist/chunk-6OJTDZJM.js +167 -0
- package/dist/chunk-6VLTBIIH.js +333 -0
- package/dist/chunk-6WP5DRQ6.js +4318 -0
- package/dist/chunk-6X7FV7KY.js +668 -0
- package/dist/chunk-72TCJIM3.js +85 -0
- package/dist/chunk-73ACJERB.js +362 -0
- package/dist/chunk-7756TMPY.js +97 -0
- package/dist/chunk-7AAIWYHD.js +167 -0
- package/dist/chunk-7ANZUBUT.js +377 -0
- package/dist/chunk-7AWSQU5B.js +284 -0
- package/dist/chunk-7CYEAH4S.js +271 -0
- package/dist/chunk-7ERL6LDP.js +836 -0
- package/dist/chunk-7HAEQUIE.js +82 -0
- package/dist/chunk-7KH2IGCQ.js +1345 -0
- package/dist/chunk-7N6GNLO6.js +1119 -0
- package/dist/chunk-7QYZ4FSV.js +127 -0
- package/dist/chunk-7SBYQTUF.js +1705 -0
- package/dist/chunk-A3CXVZPR.js +333 -0
- package/dist/chunk-A4XSCPDW.js +127 -0
- package/dist/chunk-AE4MOVKX.js +333 -0
- package/dist/chunk-AEUBSJFO.js +456 -0
- package/dist/chunk-AFSU2SV5.js +836 -0
- package/dist/chunk-AKNXSCFY.js +197 -0
- package/dist/chunk-AVUD5IEG.js +244 -0
- package/dist/chunk-AW3WBG6C.js +128 -0
- package/dist/chunk-AWYFEVRL.js +128 -0
- package/dist/chunk-AXGMU6BG.js +230 -0
- package/dist/chunk-B2LASFPU.js +333 -0
- package/dist/chunk-B365RDWM.js +290 -0
- package/dist/chunk-BBRV5476.js +81 -0
- package/dist/chunk-BDOFLNTB.js +448 -0
- package/dist/chunk-BE63NPKQ.js +214 -0
- package/dist/chunk-BEXDLB5N.js +448 -0
- package/dist/chunk-BT7KAB3P.js +271 -0
- package/dist/chunk-BX4MQXRX.js +81 -0
- package/dist/chunk-BYZSAGQS.js +227 -0
- package/dist/chunk-C22LWKW2.js +97 -0
- package/dist/chunk-C2TWAOVD.js +731 -0
- package/dist/chunk-C64UXZZ6.js +231 -0
- package/dist/chunk-C7KI7JKX.js +36 -0
- package/dist/chunk-CBDRH5DQ.js +402 -0
- package/dist/chunk-CFJGIQVQ.js +394 -0
- package/dist/chunk-CGGCB6BU.js +150 -0
- package/dist/chunk-CGP5NHTY.js +50 -0
- package/dist/chunk-CIGGH767.js +128 -0
- package/dist/chunk-CKFBAOOK.js +54 -0
- package/dist/chunk-CMHBRTWE.js +97 -0
- package/dist/chunk-COW3PMAJ.js +89 -0
- package/dist/chunk-CQTNY366.js +4318 -0
- package/dist/chunk-CTPFXMD3.js +81 -0
- package/dist/chunk-CTVEWPCC.js +290 -0
- package/dist/chunk-CUJCC4PH.js +712 -0
- package/dist/chunk-DGGQQ7RD.js +30 -0
- package/dist/chunk-DHCTX6XK.js +712 -0
- package/dist/chunk-DIDAIRZ7.js +4318 -0
- package/dist/chunk-DQA4LDNB.js +89 -0
- package/dist/chunk-DQGSKVKU.js +836 -0
- package/dist/chunk-DQJA5EIT.js +89 -0
- package/dist/chunk-DS56GRKO.js +171 -0
- package/dist/chunk-DUA2YZWQ.js +394 -0
- package/dist/chunk-E2TPEHVI.js +1094 -0
- package/dist/chunk-E3G3ITOE.js +1119 -0
- package/dist/chunk-EAP3L4QR.js +128 -0
- package/dist/chunk-EK66FMOX.js +1094 -0
- package/dist/chunk-ELHVCCY6.js +33 -0
- package/dist/chunk-ELI5VD5Q.js +297 -0
- package/dist/chunk-ENDSVJNG.js +1352 -0
- package/dist/chunk-F5HRB5VO.js +54 -0
- package/dist/chunk-F5U5A6YV.js +363 -0
- package/dist/chunk-F7WZICIK.js +151 -0
- package/dist/chunk-FB5GOSRI.js +1076 -0
- package/dist/chunk-FBDHMXOP.js +214 -0
- package/dist/chunk-FDDSWNLO.js +81 -0
- package/dist/chunk-FETEYP4G.js +333 -0
- package/dist/chunk-FJ4H6FOA.js +76 -0
- package/dist/chunk-FNWULFJI.js +14217 -0
- package/dist/chunk-FOKABS3L.js +448 -0
- package/dist/chunk-FQGFPLFM.js +348 -0
- package/dist/chunk-FWXU5HYA.js +363 -0
- package/dist/chunk-G232L3Q5.js +280 -0
- package/dist/chunk-G4TPWA7H.js +240 -0
- package/dist/chunk-G6CXMDA2.js +58 -0
- package/dist/chunk-GAXR7ABE.js +382 -0
- package/dist/chunk-GEANSIRR.js +712 -0
- package/dist/chunk-GGFJ6MSU.js +129 -0
- package/dist/chunk-GGMIQZI4.js +30 -0
- package/dist/chunk-GH6DXQTK.js +262 -0
- package/dist/chunk-GI6D3MLE.js +1119 -0
- package/dist/chunk-GKOZ5UG2.js +244 -0
- package/dist/chunk-GLZMMIQX.js +89 -0
- package/dist/chunk-GMBCNJDU.js +1345 -0
- package/dist/chunk-GPBC7GMA.js +221 -0
- package/dist/chunk-GPXNI3EX.js +510 -0
- package/dist/chunk-GQBTW5AE.js +231 -0
- package/dist/chunk-GQWBE6IU.js +30 -0
- package/dist/chunk-GSSD4X5D.js +382 -0
- package/dist/chunk-GULEZKU4.js +377 -0
- package/dist/chunk-GYEK3AMF.js +668 -0
- package/dist/chunk-GYOLVJRS.js +244 -0
- package/dist/chunk-GYSMFE55.js +81 -0
- package/dist/chunk-H7DJ4AJG.js +719 -0
- package/dist/chunk-HBTAQA7G.js +284 -0
- package/dist/chunk-HDYKW5NV.js +127 -0
- package/dist/chunk-HFZJAI6P.js +81 -0
- package/dist/chunk-HOVLH2JR.js +76 -0
- package/dist/chunk-HWP54J5Y.js +382 -0
- package/dist/chunk-HZG6FKF2.js +3208 -0
- package/dist/chunk-I2VGB3DB.js +197 -0
- package/dist/chunk-I53UEJQT.js +127 -0
- package/dist/chunk-I6F4NPZ4.js +345 -0
- package/dist/chunk-I7GRBEFS.js +690 -0
- package/dist/chunk-ICME72PJ.js +382 -0
- package/dist/chunk-IFTAGSG4.js +128 -0
- package/dist/chunk-IK47YAXM.js +362 -0
- package/dist/chunk-IKFPD4SL.js +271 -0
- package/dist/chunk-IKIJOQRJ.js +731 -0
- package/dist/chunk-IMCTPGHP.js +2113 -0
- package/dist/chunk-IN3Q5WMY.js +668 -0
- package/dist/chunk-INH3WNKK.js +1094 -0
- package/dist/chunk-IQ2KMRAT.js +284 -0
- package/dist/chunk-IRC4MHIN.js +280 -0
- package/dist/chunk-IS7ND4DN.js +1345 -0
- package/dist/chunk-IU5J35BA.js +4318 -0
- package/dist/chunk-IV5EBQ3A.js +1076 -0
- package/dist/chunk-IVGUIZ2J.js +345 -0
- package/dist/chunk-J4ASJIQ3.js +197 -0
- package/dist/chunk-J5ATXGU5.js +185 -0
- package/dist/chunk-JBRZLQMV.js +214 -0
- package/dist/chunk-JFDGS2SZ.js +157 -0
- package/dist/chunk-JHMA7CMX.js +50 -0
- package/dist/chunk-JKMVHGBJ.js +244 -0
- package/dist/chunk-JLCZPVZL.js +1352 -0
- package/dist/chunk-JLKBCZDU.js +197 -0
- package/dist/chunk-JNPH46JY.js +54 -0
- package/dist/chunk-JRLIQNNX.js +284 -0
- package/dist/chunk-K5HO53KF.js +76 -0
- package/dist/chunk-K5ZFXXWF.js +668 -0
- package/dist/chunk-KCJ5NMAV.js +14217 -0
- package/dist/chunk-KCLFSLPR.js +89 -0
- package/dist/chunk-KCSLEYLJ.js +271 -0
- package/dist/chunk-KDSVJUVQ.js +836 -0
- package/dist/chunk-KSR2EJWE.js +204 -0
- package/dist/chunk-KT4KUVEJ.js +448 -0
- package/dist/chunk-KTDHR2AS.js +157 -0
- package/dist/chunk-KUOBRPT6.js +210 -0
- package/dist/chunk-KXX2CFRT.js +54 -0
- package/dist/chunk-KYWG5PUZ.js +1352 -0
- package/dist/chunk-L2JVKG4T.js +280 -0
- package/dist/chunk-L2XAUWQE.js +2113 -0
- package/dist/chunk-L3XNGJ3U.js +75 -0
- package/dist/chunk-L6JL5UVJ.js +47 -0
- package/dist/chunk-LAVJSFSR.js +58 -0
- package/dist/chunk-LBGOENQA.js +197 -0
- package/dist/chunk-LBT2FANK.js +167 -0
- package/dist/chunk-LEBORBV2.js +204 -0
- package/dist/chunk-LEQX7SCN.js +377 -0
- package/dist/chunk-LGEJ4DUW.js +58 -0
- package/dist/chunk-LITHAITJ.js +1345 -0
- package/dist/chunk-LKRMNK7T.js +284 -0
- package/dist/chunk-LL3BHPVQ.js +231 -0
- package/dist/chunk-LM3AP2GU.js +4318 -0
- package/dist/chunk-LQBOJUPS.js +89 -0
- package/dist/chunk-LQGCWYRK.js +2078 -0
- package/dist/chunk-LRY6QF3L.js +129 -0
- package/dist/chunk-LTBVEUC6.js +262 -0
- package/dist/chunk-LV3JU5GJ.js +123 -0
- package/dist/chunk-M4FOJ6IV.js +377 -0
- package/dist/chunk-MB4ICO7N.js +382 -0
- package/dist/chunk-MCUUHFIX.js +41 -0
- package/dist/chunk-MGJESUP3.js +106 -0
- package/dist/chunk-MHBZ4LNE.js +167 -0
- package/dist/chunk-MLYJVHJN.js +539 -0
- package/dist/chunk-MR46MEGO.js +290 -0
- package/dist/chunk-MTXK2XPB.js +402 -0
- package/dist/chunk-MUG4HTT7.js +167 -0
- package/dist/chunk-MYGIOBW3.js +128 -0
- package/dist/chunk-N2BBZTDL.js +210 -0
- package/dist/chunk-NA3TMKEM.js +621 -0
- package/dist/chunk-NHJBDWJ7.js +510 -0
- package/dist/chunk-NKUYBPUC.js +128 -0
- package/dist/chunk-NM6MMMJX.js +2078 -0
- package/dist/chunk-NNF6HLWC.js +836 -0
- package/dist/chunk-NPXROARB.js +70 -0
- package/dist/chunk-NTUJZ6CY.js +197 -0
- package/dist/chunk-NWAETGEP.js +539 -0
- package/dist/chunk-NX34DZQB.js +668 -0
- package/dist/chunk-NZEWCXE2.js +486 -0
- package/dist/chunk-O5FHNPQ6.js +345 -0
- package/dist/chunk-O6MRZNAE.js +103 -0
- package/dist/chunk-OBYHZT6Q.js +731 -0
- package/dist/chunk-OCIXUO4S.js +50 -0
- package/dist/chunk-OF4MHIE6.js +70 -0
- package/dist/chunk-OFNEGXLK.js +510 -0
- package/dist/chunk-OG4NX4VY.js +363 -0
- package/dist/chunk-OGUHMHVO.js +54 -0
- package/dist/chunk-ONESJWK5.js +167 -0
- package/dist/chunk-OUMHUAB6.js +123 -0
- package/dist/chunk-OWVYNHH2.js +1076 -0
- package/dist/chunk-OY76F2XU.js +345 -0
- package/dist/chunk-OYQZGBSG.js +448 -0
- package/dist/chunk-OZ5QM773.js +1352 -0
- package/dist/chunk-P2C7MLTV.js +85 -0
- package/dist/chunk-P5E7QIHN.js +1076 -0
- package/dist/chunk-P5R6YV36.js +2078 -0
- package/dist/chunk-P6QYO2O6.js +2078 -0
- package/dist/chunk-PBFCH7CB.js +510 -0
- package/dist/chunk-PBOAEURR.js +363 -0
- package/dist/chunk-PD3Q525F.js +357 -0
- package/dist/chunk-PG72GEFB.js +382 -0
- package/dist/chunk-PMVOUPTY.js +133 -0
- package/dist/chunk-PNH4KZSF.js +214 -0
- package/dist/chunk-PO477YKG.js +2078 -0
- package/dist/chunk-PPVXWLC4.js +345 -0
- package/dist/chunk-PQE3TVEE.js +539 -0
- package/dist/chunk-PU66RURY.js +630 -0
- package/dist/chunk-PW76CFBY.js +181 -0
- package/dist/chunk-PXBIZMGP.js +271 -0
- package/dist/chunk-Q2EVCXHO.js +284 -0
- package/dist/chunk-Q3T3Q6BO.js +127 -0
- package/dist/chunk-QBS4INHY.js +348 -0
- package/dist/chunk-QE6MAIIX.js +13982 -0
- package/dist/chunk-QENJ5KEH.js +333 -0
- package/dist/chunk-QEO23T34.js +362 -0
- package/dist/chunk-QEUGB4B7.js +244 -0
- package/dist/chunk-QFY7UGKA.js +85 -0
- package/dist/chunk-QGQ7Q5Y4.js +1119 -0
- package/dist/chunk-QLCBHYD5.js +1807 -0
- package/dist/chunk-QLUZP5RF.js +731 -0
- package/dist/chunk-QMNEOLI5.js +290 -0
- package/dist/chunk-QQ7LYLRH.js +42 -0
- package/dist/chunk-QTKD4KTZ.js +75 -0
- package/dist/chunk-QXKZS3RL.js +1068 -0
- package/dist/chunk-RDCKIB7C.js +171 -0
- package/dist/chunk-RLWQDKHA.js +630 -0
- package/dist/chunk-RMRVED7U.js +103 -0
- package/dist/chunk-RMYYIN2L.js +1076 -0
- package/dist/chunk-RNQBB7TP.js +299 -0
- package/dist/chunk-RQ46FBWE.js +181 -0
- package/dist/chunk-RS7DQZAR.js +630 -0
- package/dist/chunk-RXYDOWX3.js +14169 -0
- package/dist/chunk-RYCAHAQJ.js +362 -0
- package/dist/chunk-RZAVHXAG.js +668 -0
- package/dist/chunk-S43BWJGN.js +85 -0
- package/dist/chunk-S5YTHERU.js +97 -0
- package/dist/chunk-SGGIWHFE.js +299 -0
- package/dist/chunk-SM4OJJKE.js +58 -0
- package/dist/chunk-SOHCAIHD.js +204 -0
- package/dist/chunk-SUPI5DVG.js +221 -0
- package/dist/chunk-SW2FZCXP.js +14217 -0
- package/dist/chunk-SYG52WYD.js +1119 -0
- package/dist/chunk-T35DRR22.js +14217 -0
- package/dist/chunk-T3B5RK4H.js +381 -0
- package/dist/chunk-T4Z4U7RP.js +204 -0
- package/dist/chunk-TCLJ66MK.js +362 -0
- package/dist/chunk-TCPM33RC.js +377 -0
- package/dist/chunk-TCQYEEWU.js +230 -0
- package/dist/chunk-TFDJVKGW.js +1094 -0
- package/dist/chunk-TGWUFZKB.js +190 -0
- package/dist/chunk-TJBJUNMJ.js +76 -0
- package/dist/chunk-TJEO3CQT.js +150 -0
- package/dist/chunk-TLCSCMMI.js +75 -0
- package/dist/chunk-TMBJIGDM.js +167 -0
- package/dist/chunk-TN5SIQQA.js +409 -0
- package/dist/chunk-TNY2OJUA.js +836 -0
- package/dist/chunk-TOJO2FCK.js +75 -0
- package/dist/chunk-TPALDZWC.js +76 -0
- package/dist/chunk-TTXIA35P.js +244 -0
- package/dist/chunk-TU4LBBUN.js +214 -0
- package/dist/chunk-TVSN3PAB.js +377 -0
- package/dist/chunk-U5YW7223.js +171 -0
- package/dist/chunk-UBH6GGRJ.js +129 -0
- package/dist/chunk-UDYKU4S4.js +2078 -0
- package/dist/chunk-UE5HILI3.js +75 -0
- package/dist/chunk-UFTMECNU.js +33 -0
- package/dist/chunk-UFYF4ID3.js +3208 -0
- package/dist/chunk-UKFGFVWX.js +712 -0
- package/dist/chunk-UUFCO5U6.js +171 -0
- package/dist/chunk-UV23TP73.js +58 -0
- package/dist/chunk-UWPWFL5H.js +38 -0
- package/dist/chunk-V3SBSF7M.js +1345 -0
- package/dist/chunk-V7HP3GZB.js +1345 -0
- package/dist/chunk-V7NCCUUI.js +731 -0
- package/dist/chunk-VCPM6F5Q.js +1076 -0
- package/dist/chunk-VCQ2KSCO.js +2078 -0
- package/dist/chunk-VFNXAK42.js +363 -0
- package/dist/chunk-VGZD5TO6.js +1094 -0
- package/dist/chunk-VK52D4GL.js +89 -0
- package/dist/chunk-VKMWIDHM.js +448 -0
- package/dist/chunk-VKXKZTB3.js +402 -0
- package/dist/chunk-VO2ZLPQD.js +150 -0
- package/dist/chunk-VPG2E7IY.js +377 -0
- package/dist/chunk-VPK3YIUL.js +204 -0
- package/dist/chunk-VPTLV2HU.js +271 -0
- package/dist/chunk-VSFYPN37.js +382 -0
- package/dist/chunk-VTJUSUWW.js +290 -0
- package/dist/chunk-VTKQ6SXR.js +731 -0
- package/dist/chunk-VUH67PT4.js +307 -0
- package/dist/chunk-VVVLEZOO.js +510 -0
- package/dist/chunk-W35JJK4K.js +1094 -0
- package/dist/chunk-W3RXTEKG.js +76 -0
- package/dist/chunk-W6K3MY24.js +539 -0
- package/dist/chunk-WDEPYICB.js +14217 -0
- package/dist/chunk-WNNDPW4V.js +539 -0
- package/dist/chunk-WOR5JLT2.js +456 -0
- package/dist/chunk-WOXZBDWE.js +363 -0
- package/dist/chunk-WPROO5CU.js +50 -0
- package/dist/chunk-WPTMAYKT.js +204 -0
- package/dist/chunk-WR2EVKGJ.js +1807 -0
- package/dist/chunk-WWMNP5AS.js +668 -0
- package/dist/chunk-WWTPWYVQ.js +214 -0
- package/dist/chunk-WXUVL7K6.js +55 -0
- package/dist/chunk-WYOMSJK4.js +70 -0
- package/dist/chunk-X4TE5NLM.js +157 -0
- package/dist/chunk-X5Z6BS4Y.js +171 -0
- package/dist/chunk-XA2EJVGS.js +13977 -0
- package/dist/chunk-XGRBB4OA.js +38 -0
- package/dist/chunk-XJR3KGJ7.js +539 -0
- package/dist/chunk-XQ4N5R7P.js +4318 -0
- package/dist/chunk-XQNNB5GY.js +74 -0
- package/dist/chunk-XT43IS2S.js +97 -0
- package/dist/chunk-XUVH5MRR.js +171 -0
- package/dist/chunk-XZISQWUA.js +290 -0
- package/dist/chunk-YBTAVLYF.js +1352 -0
- package/dist/chunk-YCHN7CXX.js +171 -0
- package/dist/chunk-YGEU5XUR.js +97 -0
- package/dist/chunk-YGYIUST4.js +221 -0
- package/dist/chunk-YHILZC7L.js +1068 -0
- package/dist/chunk-YJFEE624.js +81 -0
- package/dist/chunk-YKSP4O6F.js +75 -0
- package/dist/chunk-YOBR26PR.js +1119 -0
- package/dist/chunk-YQEKACX2.js +127 -0
- package/dist/chunk-YRH7VAIU.js +123 -0
- package/dist/chunk-YYQBZ7BY.js +712 -0
- package/dist/chunk-Z3526UUK.js +4318 -0
- package/dist/chunk-Z3UI3X4H.js +85 -0
- package/dist/chunk-Z3YF7FTE.js +159 -0
- package/dist/chunk-Z4C2QHSG.js +128 -0
- package/dist/chunk-Z4TASJGH.js +290 -0
- package/dist/chunk-Z5M5E5JJ.js +50 -0
- package/dist/chunk-Z6EVTNDX.js +345 -0
- package/dist/chunk-Z72EQDL6.js +345 -0
- package/dist/chunk-ZA6U6BUW.js +262 -0
- package/dist/chunk-ZBBZ7LMP.js +97 -0
- package/dist/chunk-ZBHVFHTQ.js +510 -0
- package/dist/chunk-ZFU7WG75.js +2113 -0
- package/dist/chunk-ZKVO5FA6.js +33 -0
- package/dist/chunk-ZLZRRZKI.js +227 -0
- package/dist/chunk-ZMZHEK7Y.js +1119 -0
- package/dist/chunk-ZQSWOPHM.js +97 -0
- package/dist/chunk-ZW3J4K6I.js +185 -0
- package/dist/co-activation-3LANSRYU.js +73 -0
- package/dist/co-activation-FDMMECU3.js +73 -0
- package/dist/co-activation-T3W3LP6B.js +73 -0
- package/dist/co-occurrence-DKMXPQ63.js +94 -0
- package/dist/co-occurrence-MDPAKPK5.js +94 -0
- package/dist/co-occurrence-W6RID3WA.js +94 -0
- package/dist/code-context-index-UJKWBUOV.js +30 -0
- package/dist/conversation-entity-extractor-5OI2L4JD.js +114 -0
- package/dist/conversation-wiki-populator-ZOIIW3H3.js +105 -0
- package/dist/core-memory-A4MKRY33.js +110 -0
- package/dist/core-memory-BFYBQO5H.js +110 -0
- package/dist/core-memory-U6I7QUPV.js +110 -0
- package/dist/core-memory-VCZGO5UN.js +110 -0
- package/dist/core-memory-WLUCUDS7.js +110 -0
- package/dist/core-memory-X5C6NDDK.js +110 -0
- package/dist/core-memory-XU7U7QBW.js +110 -0
- package/dist/crdt-sync-GL5GUK6V.js +33 -0
- package/dist/crdt-sync-VBMGULNR.js +33 -0
- package/dist/crdt-sync-XWRPYLFM.js +33 -0
- package/dist/crm-webhook-CU3BQNKR.js +10 -0
- package/dist/crm-webhook-FLMW7ZX4.js +10 -0
- package/dist/crm-webhook-HMLMNNKS.js +10 -0
- package/dist/crm-webhook-LFCNNDIQ.js +10 -0
- package/dist/crm-webhook-PDGMOHVN.js +10 -0
- package/dist/crm-webhook-UDI5JU6X.js +10 -0
- package/dist/crm-webhook-UEYGRQ62.js +10 -0
- package/dist/cto-delegation-gate-573DOLSY.js +279 -0
- package/dist/cto-delegation-gate-6FPNELLM.js +279 -0
- package/dist/cto-delegation-gate-JLW4WHUC.js +278 -0
- package/dist/cto-delegation-gate-JQVZ5AL6.js +279 -0
- package/dist/cto-delegation-gate-MHSZGUWW.js +279 -0
- package/dist/cto-delegation-gate-OTYX4NRT.js +279 -0
- package/dist/cto-delegation-gate-TMKGPZWS.js +279 -0
- package/dist/daemon-auth-7NCYE666.js +13 -0
- package/dist/daemon-orchestration-4AWB7ZIF.js +138 -0
- package/dist/daemon-orchestration-E5FEPS2N.js +137 -0
- package/dist/daemon-orchestration-NIIM5FX6.js +138 -0
- package/dist/daemon-orchestration-OVAGG3DL.js +138 -0
- package/dist/daemon-orchestration-S7PLAGIE.js +138 -0
- package/dist/daemon-orchestration-VB3VXTAU.js +138 -0
- package/dist/daemon-orchestration-W5GISAQU.js +138 -0
- package/dist/db-backup-K2LXHQYX.js +33 -0
- package/dist/db-backup-PSLEVJIE.js +33 -0
- package/dist/db-backup-VPUCUFQ4.js +33 -0
- package/dist/doc-graph-extractor-KMOEZ64V.js +132 -0
- package/dist/dreaming-77N4JLNJ.js +32 -0
- package/dist/dreaming-KVNZTBSR.js +33 -0
- package/dist/dreaming-NX3WUQOW.js +33 -0
- package/dist/dreaming-OUB6NHG5.js +33 -0
- package/dist/dreaming-PBYB7DUV.js +33 -0
- package/dist/dreaming-YAX6RLRE.js +33 -0
- package/dist/dreaming-ZRCVPVN4.js +33 -0
- package/dist/entity-boost-6Z2GLGZW.js +375 -0
- package/dist/exe-drift-FRKU7DSE.js +69 -0
- package/dist/exe-drift-Q6GBRT33.js +69 -0
- package/dist/exe-drift-WTENA2RN.js +69 -0
- package/dist/exe-export-JHGCHHXI.js +74 -0
- package/dist/exe-export-MQZBTZ4V.js +75 -0
- package/dist/exe-export-Q2MAKOQK.js +75 -0
- package/dist/exe-export-SVVMUIQY.js +75 -0
- package/dist/exe-export-T4C2RHFX.js +75 -0
- package/dist/exe-export-USLJFK6G.js +75 -0
- package/dist/exe-export-Y5IDMLQ5.js +75 -0
- package/dist/exe-import-2DIELY4X.js +78 -0
- package/dist/exe-import-2NB2X24W.js +78 -0
- package/dist/exe-import-46L4UOIK.js +78 -0
- package/dist/exe-import-MTDWMGUQ.js +78 -0
- package/dist/exe-import-UBRXPYTC.js +78 -0
- package/dist/exe-import-V5W4DT6C.js +78 -0
- package/dist/exe-import-Z6NFRLOY.js +77 -0
- package/dist/exe-key-7BGC2YYP.js +580 -0
- package/dist/exe-key-DNZBINIY.js +580 -0
- package/dist/exe-key-LTXI5OKH.js +580 -0
- package/dist/exe-key-MREDF4M5.js +580 -0
- package/dist/exe-key-MTAP2A2O.js +579 -0
- package/dist/exe-key-QL3256S5.js +580 -0
- package/dist/exe-key-UXS4ZDAB.js +580 -0
- package/dist/exe-org-BVUJXHOC.js +73 -0
- package/dist/exe-snapshot-CL23TI6X.js +337 -0
- package/dist/exe-snapshot-DG5V75PO.js +337 -0
- package/dist/exe-snapshot-JFMB2674.js +337 -0
- package/dist/exe-snapshot-JZYRJ2W6.js +337 -0
- package/dist/exe-snapshot-M5CDYL4P.js +337 -0
- package/dist/exe-snapshot-O6H4VDLQ.js +337 -0
- package/dist/exe-snapshot-ZOHU2GSE.js +336 -0
- package/dist/fast-db-init-4GT4KPU7.js +7 -0
- package/dist/fast-db-init-65LHD5SZ.js +7 -0
- package/dist/fast-db-init-ICXRWLIQ.js +7 -0
- package/dist/fast-db-init-NTPUVNUB.js +7 -0
- package/dist/fast-db-init-NUQPLVFK.js +7 -0
- package/dist/fast-db-init-QHQVHS5C.js +7 -0
- package/dist/fast-db-init-WRBV3Q7M.js +7 -0
- package/dist/founder-context-KQYHEE46.js +96 -0
- package/dist/gateway/index.js +13 -12
- package/dist/git-staleness-5HYSZ23A.js +111 -0
- package/dist/git-staleness-6OOEFP5I.js +111 -0
- package/dist/git-staleness-UBO4M5MH.js +111 -0
- package/dist/git-task-sweep-32TDWLGY.js +41 -0
- package/dist/git-task-sweep-5EKDETAY.js +41 -0
- package/dist/git-task-sweep-5LQCUKCN.js +40 -0
- package/dist/git-task-sweep-7VY6YQGS.js +41 -0
- package/dist/git-task-sweep-K2FRRID4.js +41 -0
- package/dist/git-task-sweep-PLA6YUN3.js +41 -0
- package/dist/git-task-sweep-WH7XR5BE.js +41 -0
- package/dist/global-procedures-HT3LN6QY.js +21 -0
- package/dist/global-procedures-I2UE2HTZ.js +21 -0
- package/dist/global-procedures-MJMYMK57.js +21 -0
- package/dist/global-procedures-POPGEMPS.js +20 -0
- package/dist/global-procedures-PTW5RXFI.js +21 -0
- package/dist/global-procedures-SSODJX2L.js +21 -0
- package/dist/global-procedures-XXCGCBCQ.js +21 -0
- package/dist/graph-auto-extract-E77ES5J3.js +182 -0
- package/dist/graph-auto-extract-OL7RXF4B.js +182 -0
- package/dist/graph-auto-extract-TCF7PWNX.js +182 -0
- package/dist/graph-rag-GBXGUPWB.js +31 -0
- package/dist/hook-integrity-SQWYYWNU.js +89 -0
- package/dist/hooks/bug-report-worker.js +15 -14
- package/dist/hooks/codex-stop-task-finalizer.js +15 -14
- package/dist/hooks/commit-complete.js +16 -15
- package/dist/hooks/error-recall.js +9 -8
- package/dist/hooks/exe-heartbeat-hook.js +6 -5
- package/dist/hooks/ingest-worker.js +5 -5
- package/dist/hooks/ingest.js +13 -12
- package/dist/hooks/instructions-loaded.js +7 -6
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +7 -6
- package/dist/hooks/post-compact.js +15 -14
- package/dist/hooks/post-tool-combined.js +7 -7
- package/dist/hooks/pre-compact.js +20 -19
- package/dist/hooks/pre-tool-use.js +19 -18
- package/dist/hooks/prompt-submit.js +116 -34
- package/dist/hooks/session-end.js +25 -24
- package/dist/hooks/session-start.js +76 -14
- package/dist/hooks/stop.js +22 -21
- package/dist/hooks/subagent-stop.js +15 -14
- package/dist/hooks/summary-worker.js +22 -21
- package/dist/index.js +21 -20
- package/dist/installer-2KW3RJ7Q.js +343 -0
- package/dist/installer-2PYYLSMV.js +297 -0
- package/dist/installer-5HJDJ4MU.js +297 -0
- package/dist/installer-5RCMRPFB.js +39 -0
- package/dist/installer-H4G7FUYV.js +343 -0
- package/dist/installer-PFHOAUWN.js +39 -0
- package/dist/installer-TMAR5YOH.js +297 -0
- package/dist/installer-V24AZVSE.js +39 -0
- package/dist/installer-VUFD4VYZ.js +343 -0
- package/dist/key-backup-status-ZHP6YTT6.js +39 -0
- package/dist/lib/agent-config.js +2 -2
- package/dist/lib/cloud-sync.js +7 -6
- package/dist/lib/config.js +1 -1
- package/dist/lib/consolidation.js +9 -8
- package/dist/lib/database.js +4 -3
- package/dist/lib/db-daemon-client.js +3 -3
- package/dist/lib/db.js +4 -3
- package/dist/lib/device-registry.js +1 -1
- package/dist/lib/embed-worker.js +1 -1
- package/dist/lib/embedder.js +4 -4
- package/dist/lib/employee-templates.js +7 -6
- package/dist/lib/employees.js +4 -3
- package/dist/lib/exe-daemon-client.js +3 -3
- package/dist/lib/exe-daemon.js +81 -59
- package/dist/lib/hybrid-search.js +7 -6
- package/dist/lib/identity-templates.js +18 -643
- package/dist/lib/identity.js +4 -3
- package/dist/lib/license.js +2 -2
- package/dist/lib/messaging.js +13 -12
- package/dist/lib/reminders.js +5 -4
- package/dist/lib/schedules.js +7 -6
- package/dist/lib/session-registry.js +6 -5
- package/dist/lib/skill-learning.js +8 -7
- package/dist/lib/store.js +6 -5
- package/dist/lib/task-router.js +5 -4
- package/dist/lib/tasks.js +14 -13
- package/dist/lib/tmux-routing.js +12 -11
- package/dist/lib/token-spend.js +5 -4
- package/dist/license-gate-KX5JHP6Q.js +14 -0
- package/dist/mcp/register-tools.js +72 -69
- package/dist/mcp/server.js +73 -70
- package/dist/mcp/tools/complete-reminder.js +6 -5
- package/dist/mcp/tools/create-reminder.js +6 -5
- package/dist/mcp/tools/create-task.js +16 -15
- package/dist/mcp/tools/deactivate-behavior.js +9 -8
- package/dist/mcp/tools/list-reminders.js +6 -5
- package/dist/mcp/tools/list-tasks.js +16 -15
- package/dist/mcp/tools/send-message.js +15 -14
- package/dist/mcp/tools/update-task.js +15 -14
- package/dist/mcp-health-U7QRASEA.js +17 -0
- package/dist/mcp-http-config-AZPIUZPW.js +28 -0
- package/dist/mcp-http-config-QITSBWNJ.js +28 -0
- package/dist/mcp-http-config-RJJ2PLDN.js +28 -0
- package/dist/memory-cards-H55EXUIP.js +179 -0
- package/dist/memory-cards-Q2WXVRP4.js +179 -0
- package/dist/memory-cards-VN7RQKND.js +179 -0
- package/dist/memory-graph-extractor-TTZBIRCM.js +21 -0
- package/dist/memory-graph-extractor-UD6EVRZ5.js +21 -0
- package/dist/memory-graph-extractor-UM3MDRAM.js +21 -0
- package/dist/memory-poisoning-defense-2WVU572Q.js +223 -0
- package/dist/memory-poisoning-defense-O7MQK65X.js +223 -0
- package/dist/memory-poisoning-defense-YZZVDK3X.js +223 -0
- package/dist/memory-queue-H3ELYP7B.js +19 -0
- package/dist/memory-queue-client-RM7QWD44.js +16 -0
- package/dist/memory-reflection-C4DPD5WB.js +243 -0
- package/dist/memory-reflection-RGF7Y4LL.js +243 -0
- package/dist/memory-reflection-SITCHK6Y.js +243 -0
- package/dist/message-queue-client-ONRGEH2K.js +92 -0
- package/dist/notifications-2Z42DSG7.js +46 -0
- package/dist/notifications-ISCYW5LT.js +46 -0
- package/dist/notifications-JPRFW4HU.js +45 -0
- package/dist/notifications-SK4WF67T.js +46 -0
- package/dist/notifications-THFX6FZ5.js +46 -0
- package/dist/notifications-USU6ETGD.js +46 -0
- package/dist/notifications-X5OJMWTX.js +46 -0
- package/dist/oauth-server-X4SDRKV6.js +437 -0
- package/dist/orchestration-events-OBHHXKYT.js +26 -0
- package/dist/orchestration-events-S3IW46Z4.js +26 -0
- package/dist/orchestration-events-XCP4GAD3.js +26 -0
- package/dist/orchestration-phase-IEKN2JS2.js +23 -0
- package/dist/orchestrator-BHHJDKK4.js +34 -0
- package/dist/orchestrator-DLEDH6NI.js +34 -0
- package/dist/orchestrator-GHXRMCLR.js +34 -0
- package/dist/orchestrator-GSCNLABJ.js +34 -0
- package/dist/orchestrator-TDDGCHAY.js +34 -0
- package/dist/orchestrator-WN7THHJQ.js +33 -0
- package/dist/orchestrator-XYUXPQBJ.js +34 -0
- package/dist/pipeline-router-FMUNXK5Y.js +13 -0
- package/dist/pipeline-router-HQ7O6LMU.js +14 -0
- package/dist/pipeline-router-K76K55FM.js +14 -0
- package/dist/pipeline-router-QDVPBCE2.js +14 -0
- package/dist/pipeline-router-TX6BNBNZ.js +14 -0
- package/dist/pipeline-router-VTIZO5E6.js +14 -0
- package/dist/pipeline-router-ZVFNUZR6.js +14 -0
- package/dist/plan-limits-NSG2A52E.js +27 -0
- package/dist/plan-limits-RSPHVRCS.js +27 -0
- package/dist/plan-limits-SXWPLHNX.js +27 -0
- package/dist/project-boot-7VGHSGEB.js +299 -0
- package/dist/project-boot-GOXQMBEW.js +299 -0
- package/dist/project-boot-WCYTGJK6.js +299 -0
- package/dist/projection-worker-2NBU7O6J.js +964 -0
- package/dist/projection-worker-6WFAQNPR.js +964 -0
- package/dist/projection-worker-BM5OFE7C.js +964 -0
- package/dist/push-notifications-YEOXI2AK.js +15 -0
- package/dist/reranker-4Z2CGV66.js +19 -0
- package/dist/reranker-6GOZWO22.js +19 -0
- package/dist/reranker-7UDIWILK.js +19 -0
- package/dist/reranker-BTDELPPD.js +19 -0
- package/dist/reranker-DN73VJUL.js +19 -0
- package/dist/reranker-H2BZ22KT.js +19 -0
- package/dist/reranker-UQLJ54VJ.js +19 -0
- package/dist/reranker-YREHHQ2Y.js +19 -0
- package/dist/retrieval-health-CSHY2ENU.js +7 -0
- package/dist/retrieval-health-MKYJN7SY.js +7 -0
- package/dist/retrieval-health-T2RVVE7T.js +7 -0
- package/dist/review-polling-CFTK5L4L.js +125 -0
- package/dist/review-polling-DUNB3KZB.js +125 -0
- package/dist/review-polling-JTSMHJPW.js +125 -0
- package/dist/review-polling-LBWEI5DD.js +125 -0
- package/dist/review-polling-LJQLGSRH.js +125 -0
- package/dist/review-polling-ONMHMC2O.js +124 -0
- package/dist/review-polling-U7OM4WWH.js +125 -0
- package/dist/runtime/index.js +15 -14
- package/dist/session-events-DUWGYDQS.js +37 -0
- package/dist/session-events-FOEXBDYS.js +37 -0
- package/dist/session-events-GY62XCDT.js +37 -0
- package/dist/session-events-IXNMKVGU.js +36 -0
- package/dist/session-events-PJYPZXZG.js +37 -0
- package/dist/session-events-UMEACD5I.js +37 -0
- package/dist/session-events-Y7VSSYWI.js +37 -0
- package/dist/session-kill-telemetry-KO2VBORY.js +30 -0
- package/dist/session-kill-telemetry-SY5DOUPG.js +30 -0
- package/dist/session-kill-telemetry-USFJQSUE.js +30 -0
- package/dist/session-scope-3MGDNR7D.js +87 -0
- package/dist/session-scope-3R5NMUI7.js +87 -0
- package/dist/session-scope-FJGDD2Z3.js +87 -0
- package/dist/session-scope-OBA2LP5M.js +87 -0
- package/dist/session-scope-PTP3HJPH.js +87 -0
- package/dist/session-scope-U65OE4EF.js +86 -0
- package/dist/session-scope-VYELVUME.js +87 -0
- package/dist/session-summary-LKWCL7CX.js +126 -0
- package/dist/session-summary-RQW6CSUA.js +128 -0
- package/dist/setup-wizard-54BJQUYJ.js +12 -0
- package/dist/setup-wizard-A5X2TMM4.js +12 -0
- package/dist/setup-wizard-GIVB72MJ.js +12 -0
- package/dist/setup-wizard-M6BLTFAD.js +12 -0
- package/dist/setup-wizard-ONGHCOII.js +12 -0
- package/dist/setup-wizard-SGRJ2QVH.js +12 -0
- package/dist/setup-wizard-SWMXKLDW.js +12 -0
- package/dist/shard-manager-CIIYXJYX.js +30 -0
- package/dist/skill-refinement-5QT2XVCC.js +158 -0
- package/dist/skill-refinement-6F4FGVLJ.js +158 -0
- package/dist/skill-refinement-7U6OPPIY.js +157 -0
- package/dist/skill-refinement-FRX2AWPI.js +158 -0
- package/dist/skill-refinement-GRHS3MLT.js +158 -0
- package/dist/skill-refinement-VLKOJTCV.js +158 -0
- package/dist/skill-refinement-WWBMYIBZ.js +158 -0
- package/dist/stack-release-GU4MUZIN.js +740 -0
- package/dist/stack-update-6HXLV3JN.js +56 -0
- package/dist/stack-update-AAKNEKKN.js +64 -0
- package/dist/stack-update-D37RZIB6.js +64 -0
- package/dist/steward-gate-7WAPOM43.js +14 -0
- package/dist/steward-gate-OA7AGJF6.js +14 -0
- package/dist/steward-gate-QNECLR2J.js +14 -0
- package/dist/task-enforcement-3YTIFA4D.js +439 -0
- package/dist/task-enforcement-6ZB2JLRS.js +439 -0
- package/dist/task-enforcement-NUAKJTN5.js +439 -0
- package/dist/task-enforcement-PVILX4IN.js +439 -0
- package/dist/task-enforcement-SY7YMUS3.js +439 -0
- package/dist/task-enforcement-YKCJASFN.js +438 -0
- package/dist/task-enforcement-ZBGLXLAS.js +439 -0
- package/dist/task-scope-2G24XM4U.js +36 -0
- package/dist/task-scope-5DQ7E2OI.js +36 -0
- package/dist/task-scope-AYUPMMUG.js +36 -0
- package/dist/task-scope-KXDNHQ5Y.js +36 -0
- package/dist/task-scope-PHGRGUG5.js +35 -0
- package/dist/task-scope-VUZQJHA4.js +36 -0
- package/dist/task-scope-Z4M2A5SV.js +36 -0
- package/dist/tasks-crud-4VWQR3QV.js +78 -0
- package/dist/tasks-crud-GJM3AUTG.js +78 -0
- package/dist/tasks-crud-RUXTEAQO.js +77 -0
- package/dist/tasks-crud-T2GZSNHC.js +78 -0
- package/dist/tasks-crud-U6NZDYAG.js +78 -0
- package/dist/tasks-crud-UVDKDRPG.js +78 -0
- package/dist/tasks-crud-XEV3JLRV.js +78 -0
- package/dist/tasks-notify-3DWMSUQD.js +39 -0
- package/dist/tasks-notify-CJS5W22J.js +38 -0
- package/dist/tasks-notify-FLCJHJS6.js +39 -0
- package/dist/tasks-notify-MYMK667T.js +39 -0
- package/dist/tasks-notify-UY3GPF2G.js +39 -0
- package/dist/tasks-notify-YO6EV6VJ.js +39 -0
- package/dist/tasks-notify-ZPL3S4ST.js +39 -0
- package/dist/tasks-review-27DSHFTD.js +48 -0
- package/dist/tasks-review-ACRPOJ6F.js +48 -0
- package/dist/tasks-review-CRPHDPEF.js +48 -0
- package/dist/tasks-review-EMMM2BNQ.js +48 -0
- package/dist/tasks-review-MILNLI4A.js +47 -0
- package/dist/tasks-review-NMYQLBMD.js +48 -0
- package/dist/tasks-review-W2R73BZO.js +48 -0
- package/dist/telemetry-upload-5OYK5IPG.js +740 -0
- package/dist/telemetry-upload-7CYHIEZQ.js +740 -0
- package/dist/telemetry-upload-NLIWRTUP.js +740 -0
- package/dist/telemetry-upload-OYTMGGHP.js +740 -0
- package/dist/telemetry-upload-SGMT2DFX.js +739 -0
- package/dist/telemetry-upload-TOMVX4K5.js +740 -0
- package/dist/telemetry-upload-ZGZLZZLU.js +740 -0
- package/dist/token-budget-HATVW76M.js +85 -0
- package/dist/token-budget-KE5PIQ7A.js +85 -0
- package/dist/token-budget-KITSLKAH.js +85 -0
- package/dist/tool-capability-index-QOIXMYJ5.js +10 -0
- package/dist/tool-telemetry-2VL4PAFL.js +17 -0
- package/dist/tool-telemetry-I37ZZ7GM.js +17 -0
- package/dist/tool-telemetry-ZRMW73IZ.js +17 -0
- package/dist/tui/App.js +26 -25
- package/dist/tui-data-DMHUBU3E.js +259 -0
- package/dist/tui-data-E555G6DQ.js +259 -0
- package/dist/tui-data-JEV6QHUW.js +258 -0
- package/dist/tui-data-JY4BSXWZ.js +259 -0
- package/dist/tui-data-KJYHX2PA.js +259 -0
- package/dist/tui-data-TGVM6NKK.js +259 -0
- package/dist/tui-data-WU4QBI2U.js +259 -0
- package/dist/update-check-HV5CANPG.js +15 -0
- package/dist/webhook-pipe-QLXIHTWT.js +114 -0
- package/dist/wiki-acl-2UC5KF2Q.js +111 -0
- package/dist/wiki-acl-OPTBSSHY.js +111 -0
- package/dist/wiki-acl-ZXEQCUM2.js +111 -0
- package/dist/wiki-client-TU7MRFR2.js +157 -0
- package/dist/worker-gate-3INBT2QJ.js +21 -0
- package/dist/worker-gate-AL2H4X6J.js +21 -0
- package/dist/worker-gate-BPRAE3SL.js +21 -0
- package/dist/worker-gate-DEPH3XOT.js +21 -0
- package/dist/worker-gate-DTIPUP24.js +21 -0
- package/dist/worker-gate-HIGPFIC5.js +21 -0
- package/dist/worker-gate-RDQJA75Y.js +21 -0
- package/dist/workflow-engine-4SKKETLG.js +28 -0
- package/dist/workflow-engine-4VLEDHEF.js +28 -0
- package/dist/workflow-engine-FPX5ADPM.js +28 -0
- package/dist/workflow-engine-IUXZR6DW.js +28 -0
- package/dist/workflow-engine-M4JR5NPS.js +28 -0
- package/dist/workflow-engine-MNQB324A.js +28 -0
- package/dist/workflow-engine-OLVP7VS2.js +28 -0
- package/dist/worktree-P35YMJLR.js +27 -0
- package/dist/worktree-YAXQ2HPY.js +27 -0
- package/dist/worktree-ZTFFDGBN.js +27 -0
- package/dist/worktree-sweep-5GYFJCOL.js +20 -0
- package/dist/worktree-sweep-H6CKSNTO.js +20 -0
- package/dist/worktree-sweep-KLTVHBPH.js +20 -0
- package/package.json +2 -2
- package/release-notes.json +39 -20
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
disposeStore,
|
|
4
|
+
initStore
|
|
5
|
+
} from "./chunk-3WUAL3CR.js";
|
|
6
|
+
import "./chunk-CHCA3ZM2.js";
|
|
7
|
+
import "./chunk-OTVEIJUQ.js";
|
|
8
|
+
import "./chunk-N2BBZTDL.js";
|
|
9
|
+
import "./chunk-Y25OJWOQ.js";
|
|
10
|
+
import "./chunk-MP2AFCGL.js";
|
|
11
|
+
import {
|
|
12
|
+
getClient,
|
|
13
|
+
getEmployeeNamesByRole,
|
|
14
|
+
loadEmployeesSync
|
|
15
|
+
} from "./chunk-HZG6FKF2.js";
|
|
16
|
+
import "./chunk-2I23RPSI.js";
|
|
17
|
+
import "./chunk-RNQBB7TP.js";
|
|
18
|
+
import "./chunk-H7DJ4AJG.js";
|
|
19
|
+
import "./chunk-FXU7JOXK.js";
|
|
20
|
+
import "./chunk-WVWJB7BT.js";
|
|
21
|
+
import "./chunk-LAAB5EOU.js";
|
|
22
|
+
import "./chunk-LYH5HE24.js";
|
|
23
|
+
import {
|
|
24
|
+
isMainModule
|
|
25
|
+
} from "./chunk-6Y4B3QF6.js";
|
|
26
|
+
import "./chunk-SIAA4J6H.js";
|
|
27
|
+
|
|
28
|
+
// src/bin/backfill-metadata.ts
|
|
29
|
+
var VALID_INTENTS = /* @__PURE__ */ new Set(["decision", "question", "correction", "report", "discovery", "implementation"]);
|
|
30
|
+
var VALID_OUTCOMES = /* @__PURE__ */ new Set(["success", "failure", "partial", "superseded"]);
|
|
31
|
+
var VALID_DOMAINS = /* @__PURE__ */ new Set(["code", "architecture", "marketing", "operations", "customer", "research"]);
|
|
32
|
+
var VALID_AUDIENCES = /* @__PURE__ */ new Set(["founder", "team", "self"]);
|
|
33
|
+
var VALID_LANGUAGE_TYPES = /* @__PURE__ */ new Set(["code", "prose", "mixed", "json", "sql"]);
|
|
34
|
+
var MAX_TEXT_LENGTH = 2e3;
|
|
35
|
+
var BATCH_SLEEP_MS = 1e3;
|
|
36
|
+
function roleAgentMarkers(role) {
|
|
37
|
+
try {
|
|
38
|
+
const employees = loadEmployeesSync();
|
|
39
|
+
const names = getEmployeeNamesByRole(employees, role).map((n) => n.toLowerCase().trim()).filter(Boolean);
|
|
40
|
+
if (names.length > 0) return names;
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
var MARKETING_AGENT_MARKERS = roleAgentMarkers("CMO");
|
|
46
|
+
var RESEARCH_AGENT_MARKERS = roleAgentMarkers("AI Product Lead");
|
|
47
|
+
function mentionsAgentMarker(text, markers) {
|
|
48
|
+
return markers.some(
|
|
49
|
+
(marker) => text.includes(`/${marker}/`) || text.includes(`agent_id: ${marker}`)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function classifyMemoryHeuristic(rawText, toolName) {
|
|
53
|
+
const t = rawText.toLowerCase();
|
|
54
|
+
let intent;
|
|
55
|
+
if (toolName === "store_decision" || t.includes("decided") || t.includes("decision:")) {
|
|
56
|
+
intent = "decision";
|
|
57
|
+
} else if (toolName === "store_memory" || toolName === "commit_to_long_term_memory" || toolName === "update_task" || toolName === "store_behavior" || t.startsWith("stored memory") || t.startsWith("task updated") || t.startsWith("auto-summary")) {
|
|
58
|
+
intent = "report";
|
|
59
|
+
} else if (t.includes("fix ") || t.includes("fixed") || t.includes("correction") || t.includes("bug") || t.includes("revert") || t.includes("hotfix")) {
|
|
60
|
+
intent = "correction";
|
|
61
|
+
} else if (toolName === "Edit" || toolName === "Write" || toolName === "NotebookEdit" || toolName === "Bash" && (t.includes("npm run build") || t.includes("git commit") || t.includes("npm install") || t.includes("npx "))) {
|
|
62
|
+
intent = "implementation";
|
|
63
|
+
} else if (toolName === "Read" || toolName === "Grep" || toolName === "Glob" || toolName === "Agent" || t.includes("?") || t.includes("search")) {
|
|
64
|
+
intent = "question";
|
|
65
|
+
} else if (t.includes("found") || t.includes("discovered") || t.includes("noticed") || t.includes("interesting") || t.includes("realized")) {
|
|
66
|
+
intent = "discovery";
|
|
67
|
+
} else if (toolName === "Bash") {
|
|
68
|
+
intent = "implementation";
|
|
69
|
+
} else {
|
|
70
|
+
intent = "report";
|
|
71
|
+
}
|
|
72
|
+
let outcome;
|
|
73
|
+
if (t.includes("error") || t.includes("failed") || t.includes("failure") || t.includes("exit code 1") || t.includes("exception") || t.includes("crash") || t.includes("rejected") || t.includes("\u274C")) {
|
|
74
|
+
outcome = "failure";
|
|
75
|
+
} else if (t.includes("success") || t.includes("passed") || t.includes("\u2713") || t.includes("complete") || t.includes("done") || t.includes("shipped") || t.includes("merged") || t.includes("build success")) {
|
|
76
|
+
outcome = "success";
|
|
77
|
+
} else if (t.includes("superseded") || t.includes("deprecated") || t.includes("replaced by") || t.includes("archived")) {
|
|
78
|
+
outcome = "superseded";
|
|
79
|
+
} else {
|
|
80
|
+
outcome = "partial";
|
|
81
|
+
}
|
|
82
|
+
let domain;
|
|
83
|
+
if (t.includes("marketing") || t.includes("campaign") || t.includes("brand") || t.includes("carousel") || t.includes("seo") || t.includes("content strategy") || mentionsAgentMarker(t, MARKETING_AGENT_MARKERS)) {
|
|
84
|
+
domain = "marketing";
|
|
85
|
+
} else if (t.includes("architecture") || t.includes("adr") || t.includes("design doc") || t.includes("system design") || t.includes("ARCHITECTURE.md") || t.includes("schema") && t.includes("migration")) {
|
|
86
|
+
domain = "architecture";
|
|
87
|
+
} else if (t.includes("customer") || t.includes("onboarding") || t.includes("install") || t.includes("setup wizard") || t.includes("license") || t.includes("stripe") || t.includes("user feedback")) {
|
|
88
|
+
domain = "customer";
|
|
89
|
+
} else if (t.includes("deploy") || t.includes("ci/cd") || t.includes("docker") || t.includes("nginx") || t.includes("cron") || t.includes("schedule") || t.includes("task management") || t.includes("roster") || toolName === "update_task" || toolName === "create_task") {
|
|
90
|
+
domain = "operations";
|
|
91
|
+
} else if (t.includes("research") || t.includes("competitor") || t.includes("benchmark") || t.includes("comparison") || t.includes("analysis") || t.includes("evaluate") || mentionsAgentMarker(t, RESEARCH_AGENT_MARKERS)) {
|
|
92
|
+
domain = "research";
|
|
93
|
+
} else {
|
|
94
|
+
domain = "code";
|
|
95
|
+
}
|
|
96
|
+
let audience;
|
|
97
|
+
if (toolName === "send_message" || toolName === "ask_team_memory" || toolName === "create_task" || toolName === "update_task" || t.includes("dispatched") || t.includes("assigned to")) {
|
|
98
|
+
audience = "team";
|
|
99
|
+
} else if (toolName === "store_memory" || toolName === "commit_to_long_term_memory" || toolName === "store_decision" || toolName === "store_behavior" || t.includes("summary") || t.includes("report") || t.includes("audit") || t.startsWith("stored memory")) {
|
|
100
|
+
audience = "founder";
|
|
101
|
+
} else {
|
|
102
|
+
audience = "self";
|
|
103
|
+
}
|
|
104
|
+
let languageType;
|
|
105
|
+
const jsonIndicators = (t.match(/[{}[\]]/g) || []).length;
|
|
106
|
+
const codeIndicators = (t.match(/\b(function|const|let|var|import|export|return|if|else|class|async|await)\b/g) || []).length;
|
|
107
|
+
const sqlIndicators = (t.match(/\b(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|FROM|WHERE|JOIN)\b/gi) || []).length;
|
|
108
|
+
if (sqlIndicators >= 2) {
|
|
109
|
+
languageType = "sql";
|
|
110
|
+
} else if (jsonIndicators > 6 && jsonIndicators > codeIndicators) {
|
|
111
|
+
languageType = "json";
|
|
112
|
+
} else if (codeIndicators >= 3) {
|
|
113
|
+
languageType = codeIndicators > 5 ? "code" : "mixed";
|
|
114
|
+
} else if (jsonIndicators > 3) {
|
|
115
|
+
languageType = "mixed";
|
|
116
|
+
} else {
|
|
117
|
+
languageType = "prose";
|
|
118
|
+
}
|
|
119
|
+
return { intent, outcome, domain, audience, language_type: languageType };
|
|
120
|
+
}
|
|
121
|
+
async function classifyMemory(_anthropic, rawText) {
|
|
122
|
+
const truncated = rawText.length > MAX_TEXT_LENGTH ? rawText.slice(0, MAX_TEXT_LENGTH) : rawText;
|
|
123
|
+
const baseUrl = process.env.ANTHROPIC_BASE_URL ?? "https://api.anthropic.com";
|
|
124
|
+
const apiKey = process.env.ANTHROPIC_API_KEY ?? "";
|
|
125
|
+
const model = process.env.BACKFILL_MODEL ?? "claude-haiku-4-5-20251001";
|
|
126
|
+
try {
|
|
127
|
+
const res = await fetch(`${baseUrl}/v1/messages`, {
|
|
128
|
+
method: "POST",
|
|
129
|
+
headers: {
|
|
130
|
+
"x-api-key": apiKey,
|
|
131
|
+
"anthropic-version": "2023-06-01",
|
|
132
|
+
"content-type": "application/json"
|
|
133
|
+
},
|
|
134
|
+
body: JSON.stringify({
|
|
135
|
+
model,
|
|
136
|
+
max_tokens: 100,
|
|
137
|
+
system: "You are a JSON classifier. Output ONLY valid JSON. No explanation, no markdown, no text before or after the JSON object.",
|
|
138
|
+
messages: [
|
|
139
|
+
{
|
|
140
|
+
role: "user",
|
|
141
|
+
content: `{"task":"classify","categories":{"intent":["decision","question","correction","report","discovery","implementation"],"outcome":["success","failure","partial","superseded"],"domain":["code","architecture","marketing","operations","customer","research"],"audience":["founder","team","self"],"language_type":["code","prose","mixed","json","sql"]},"text":"${truncated.replace(/"/g, '\\"').replace(/\n/g, " ").slice(0, 500)}"}`
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
role: "assistant",
|
|
145
|
+
content: "{"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
})
|
|
149
|
+
});
|
|
150
|
+
if (!res.ok) {
|
|
151
|
+
const errText = await res.text();
|
|
152
|
+
throw new Error(`${res.status} ${errText.slice(0, 200)}`);
|
|
153
|
+
}
|
|
154
|
+
const data = await res.json();
|
|
155
|
+
const textBlock = data.content.find((b) => b.type === "text");
|
|
156
|
+
if (!textBlock?.text) return null;
|
|
157
|
+
const jsonText = "{" + textBlock.text.trim();
|
|
158
|
+
const parsed = JSON.parse(jsonText);
|
|
159
|
+
if (!VALID_INTENTS.has(parsed.intent)) return null;
|
|
160
|
+
if (!VALID_OUTCOMES.has(parsed.outcome)) return null;
|
|
161
|
+
if (!VALID_DOMAINS.has(parsed.domain)) return null;
|
|
162
|
+
if (!VALID_AUDIENCES.has(parsed.audience)) return null;
|
|
163
|
+
if (!VALID_LANGUAGE_TYPES.has(parsed.language_type)) return null;
|
|
164
|
+
return parsed;
|
|
165
|
+
} catch (err) {
|
|
166
|
+
process.stderr.write(
|
|
167
|
+
`[backfill-metadata] LLM error: ${err instanceof Error ? err.message : String(err)}
|
|
168
|
+
`
|
|
169
|
+
);
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
async function backfillHeuristic(options) {
|
|
174
|
+
const client = getClient();
|
|
175
|
+
const countResult = await client.execute({
|
|
176
|
+
sql: "SELECT COUNT(*) as cnt FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL",
|
|
177
|
+
args: []
|
|
178
|
+
});
|
|
179
|
+
const totalUnclassified = Number(countResult.rows[0]?.cnt ?? 0);
|
|
180
|
+
if (totalUnclassified === 0) {
|
|
181
|
+
process.stderr.write("[backfill-metadata] All memories already classified.\n");
|
|
182
|
+
return { classified: 0, skipped: 0, remaining: 0 };
|
|
183
|
+
}
|
|
184
|
+
const toProcess = options.limit > 0 ? Math.min(options.limit, totalUnclassified) : totalUnclassified;
|
|
185
|
+
process.stderr.write(`[backfill-metadata] ${totalUnclassified} unclassified. Heuristic-classifying ${toProcess}.
|
|
186
|
+
`);
|
|
187
|
+
if (options.dryRun) {
|
|
188
|
+
process.stderr.write("[backfill-metadata] Dry run \u2014 would classify " + toProcess + " memories.\n");
|
|
189
|
+
return { classified: 0, skipped: 0, remaining: totalUnclassified };
|
|
190
|
+
}
|
|
191
|
+
let classified = 0;
|
|
192
|
+
let skipped = 0;
|
|
193
|
+
while (classified + skipped < toProcess) {
|
|
194
|
+
const batch = await client.execute({
|
|
195
|
+
sql: `SELECT id, raw_text, tool_name FROM memories
|
|
196
|
+
WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL
|
|
197
|
+
ORDER BY rowid LIMIT ?`,
|
|
198
|
+
args: [options.batchSize]
|
|
199
|
+
});
|
|
200
|
+
if (batch.rows.length === 0) break;
|
|
201
|
+
for (const row of batch.rows) {
|
|
202
|
+
const rawText = row.raw_text;
|
|
203
|
+
const toolName = row.tool_name;
|
|
204
|
+
if (!rawText || rawText.length < 10) {
|
|
205
|
+
await client.execute({
|
|
206
|
+
sql: "UPDATE memories SET intent = 'report', outcome = 'partial', domain = 'code', audience = 'self', language_type = 'prose' WHERE id = ?",
|
|
207
|
+
args: [row.id]
|
|
208
|
+
});
|
|
209
|
+
skipped++;
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
const result = classifyMemoryHeuristic(rawText, toolName);
|
|
213
|
+
await client.execute({
|
|
214
|
+
sql: "UPDATE memories SET intent = ?, outcome = ?, domain = ?, audience = ?, language_type = ? WHERE id = ?",
|
|
215
|
+
args: [result.intent, result.outcome, result.domain, result.audience, result.language_type, row.id]
|
|
216
|
+
});
|
|
217
|
+
classified++;
|
|
218
|
+
}
|
|
219
|
+
if (classified % 5e3 < options.batchSize) {
|
|
220
|
+
process.stderr.write(`[backfill-metadata] Heuristic progress: ${classified} classified, ${skipped} skipped
|
|
221
|
+
`);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
const remainResult = await client.execute({
|
|
225
|
+
sql: "SELECT COUNT(*) as cnt FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL",
|
|
226
|
+
args: []
|
|
227
|
+
});
|
|
228
|
+
const remaining = Number(remainResult.rows[0]?.cnt ?? 0);
|
|
229
|
+
process.stderr.write(
|
|
230
|
+
`[backfill-metadata] Heuristic complete. Classified: ${classified}, Skipped: ${skipped}, Remaining: ${remaining}
|
|
231
|
+
`
|
|
232
|
+
);
|
|
233
|
+
return { classified, skipped, remaining };
|
|
234
|
+
}
|
|
235
|
+
async function backfillClassifications(options) {
|
|
236
|
+
const Anthropic = (await import("@anthropic-ai/sdk")).default;
|
|
237
|
+
const client = getClient();
|
|
238
|
+
const anthropic = new Anthropic();
|
|
239
|
+
let classified = 0;
|
|
240
|
+
let skipped = 0;
|
|
241
|
+
let failed = 0;
|
|
242
|
+
const countResult = await client.execute({
|
|
243
|
+
sql: "SELECT COUNT(*) as cnt FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL",
|
|
244
|
+
args: []
|
|
245
|
+
});
|
|
246
|
+
const totalUnclassified = Number(countResult.rows[0]?.cnt ?? 0);
|
|
247
|
+
if (totalUnclassified === 0) {
|
|
248
|
+
process.stderr.write("[backfill-metadata] All memories already classified.\n");
|
|
249
|
+
return { classified: 0, skipped: 0, failed: 0, remaining: 0 };
|
|
250
|
+
}
|
|
251
|
+
const toProcess = options.limit > 0 ? Math.min(options.limit, totalUnclassified) : totalUnclassified;
|
|
252
|
+
process.stderr.write(`[backfill-metadata] ${totalUnclassified} unclassified memories. Processing ${toProcess}.
|
|
253
|
+
`);
|
|
254
|
+
if (options.dryRun) {
|
|
255
|
+
const sample = await client.execute({
|
|
256
|
+
sql: "SELECT id, SUBSTR(raw_text, 1, 80) as preview FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL ORDER BY timestamp DESC LIMIT 10",
|
|
257
|
+
args: []
|
|
258
|
+
});
|
|
259
|
+
process.stderr.write("[backfill-metadata] Dry run \u2014 sample of unclassified memories:\n");
|
|
260
|
+
for (const row of sample.rows) {
|
|
261
|
+
process.stderr.write(` ${row.id} \u2014 ${row.preview}...
|
|
262
|
+
`);
|
|
263
|
+
}
|
|
264
|
+
return { classified: 0, skipped: 0, failed: 0, remaining: totalUnclassified };
|
|
265
|
+
}
|
|
266
|
+
while (classified + skipped + failed < toProcess) {
|
|
267
|
+
const batch = await client.execute({
|
|
268
|
+
sql: "SELECT id, raw_text FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL ORDER BY timestamp DESC LIMIT ?",
|
|
269
|
+
args: [options.batchSize]
|
|
270
|
+
});
|
|
271
|
+
if (batch.rows.length === 0) break;
|
|
272
|
+
for (const row of batch.rows) {
|
|
273
|
+
const id = row.id;
|
|
274
|
+
const rawText = row.raw_text;
|
|
275
|
+
if (!rawText || rawText.length < 10) {
|
|
276
|
+
skipped++;
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
const result = await classifyMemory(anthropic, rawText);
|
|
280
|
+
if (!result) {
|
|
281
|
+
failed++;
|
|
282
|
+
process.stderr.write(`[backfill-metadata] Failed to classify ${id}
|
|
283
|
+
`);
|
|
284
|
+
await client.execute({
|
|
285
|
+
sql: "UPDATE memories SET intent = 'unknown' WHERE id = ?",
|
|
286
|
+
args: [id]
|
|
287
|
+
});
|
|
288
|
+
continue;
|
|
289
|
+
}
|
|
290
|
+
await client.execute({
|
|
291
|
+
sql: "UPDATE memories SET intent = ?, outcome = ?, domain = ?, audience = ?, language_type = ? WHERE id = ?",
|
|
292
|
+
args: [result.intent, result.outcome, result.domain, result.audience, result.language_type, id]
|
|
293
|
+
});
|
|
294
|
+
classified++;
|
|
295
|
+
}
|
|
296
|
+
const total = classified + skipped + failed;
|
|
297
|
+
if (total % 100 < options.batchSize) {
|
|
298
|
+
process.stderr.write(`[backfill-metadata] Progress: ${classified} classified, ${failed} failed, ${skipped} skipped (${total}/${toProcess})
|
|
299
|
+
`);
|
|
300
|
+
}
|
|
301
|
+
if (classified + skipped + failed < toProcess) {
|
|
302
|
+
await new Promise((resolve) => setTimeout(resolve, BATCH_SLEEP_MS));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
const remainResult = await client.execute({
|
|
306
|
+
sql: "SELECT COUNT(*) as cnt FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL",
|
|
307
|
+
args: []
|
|
308
|
+
});
|
|
309
|
+
const remaining = Number(remainResult.rows[0]?.cnt ?? 0);
|
|
310
|
+
process.stderr.write(
|
|
311
|
+
`[backfill-metadata] Classification complete. Classified: ${classified}, Failed: ${failed}, Skipped: ${skipped}, Remaining: ${remaining}
|
|
312
|
+
`
|
|
313
|
+
);
|
|
314
|
+
return { classified, skipped, failed, remaining };
|
|
315
|
+
}
|
|
316
|
+
async function backfillEntities(options) {
|
|
317
|
+
const client = getClient();
|
|
318
|
+
let populated = 0;
|
|
319
|
+
const countResult = await client.execute({
|
|
320
|
+
sql: "SELECT COUNT(*) as cnt FROM memories WHERE referenced_entities IS NULL",
|
|
321
|
+
args: []
|
|
322
|
+
});
|
|
323
|
+
const totalNull = Number(countResult.rows[0]?.cnt ?? 0);
|
|
324
|
+
if (totalNull === 0) {
|
|
325
|
+
process.stderr.write("[backfill-metadata] All memories already have referenced_entities.\n");
|
|
326
|
+
return 0;
|
|
327
|
+
}
|
|
328
|
+
const toProcess = options.limit > 0 ? Math.min(options.limit, totalNull) : totalNull;
|
|
329
|
+
process.stderr.write(`[backfill-metadata] ${totalNull} memories without referenced_entities. Processing ${toProcess}.
|
|
330
|
+
`);
|
|
331
|
+
if (options.dryRun) {
|
|
332
|
+
process.stderr.write("[backfill-metadata] Dry run \u2014 would populate referenced_entities for up to " + toProcess + " memories.\n");
|
|
333
|
+
return 0;
|
|
334
|
+
}
|
|
335
|
+
const entityRows = await client.execute({
|
|
336
|
+
sql: "SELECT DISTINCT name FROM entities",
|
|
337
|
+
args: []
|
|
338
|
+
});
|
|
339
|
+
const knownEntities = new Set(entityRows.rows.map((r) => r.name));
|
|
340
|
+
let processed = 0;
|
|
341
|
+
while (processed < toProcess) {
|
|
342
|
+
const batch = await client.execute({
|
|
343
|
+
sql: `SELECT m.id, m.raw_text, GROUP_CONCAT(e.name) as entities
|
|
344
|
+
FROM memories m
|
|
345
|
+
LEFT JOIN entity_memories em ON em.memory_id = m.id
|
|
346
|
+
LEFT JOIN entities e ON e.id = em.entity_id
|
|
347
|
+
WHERE m.referenced_entities IS NULL
|
|
348
|
+
GROUP BY m.id
|
|
349
|
+
LIMIT ?`,
|
|
350
|
+
args: [options.batchSize]
|
|
351
|
+
});
|
|
352
|
+
if (batch.rows.length === 0) break;
|
|
353
|
+
for (const row of batch.rows) {
|
|
354
|
+
const id = row.id;
|
|
355
|
+
const rawText = row.raw_text;
|
|
356
|
+
const graphEntities = row.entities;
|
|
357
|
+
let entityList;
|
|
358
|
+
if (graphEntities) {
|
|
359
|
+
entityList = graphEntities.split(",").filter(Boolean);
|
|
360
|
+
} else {
|
|
361
|
+
entityList = extractEntitiesHeuristic(rawText, knownEntities);
|
|
362
|
+
}
|
|
363
|
+
const jsonArray = JSON.stringify(entityList);
|
|
364
|
+
await client.execute({
|
|
365
|
+
sql: "UPDATE memories SET referenced_entities = ? WHERE id = ?",
|
|
366
|
+
args: [jsonArray, id]
|
|
367
|
+
});
|
|
368
|
+
populated++;
|
|
369
|
+
}
|
|
370
|
+
processed += batch.rows.length;
|
|
371
|
+
if (processed % 100 < options.batchSize) {
|
|
372
|
+
process.stderr.write(`[backfill-metadata] Entity progress: ${populated} populated (${processed}/${toProcess})
|
|
373
|
+
`);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
process.stderr.write(`[backfill-metadata] Entity extraction complete. Populated: ${populated}
|
|
377
|
+
`);
|
|
378
|
+
return populated;
|
|
379
|
+
}
|
|
380
|
+
function extractEntitiesHeuristic(rawText, knownEntities) {
|
|
381
|
+
const entities = /* @__PURE__ */ new Set();
|
|
382
|
+
for (const name of knownEntities) {
|
|
383
|
+
if (name.length >= 3 && rawText.toLowerCase().includes(name.toLowerCase())) {
|
|
384
|
+
entities.add(name);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
const filePathPattern = /(?:\/[\w.-]+){2,}/g;
|
|
388
|
+
const paths = rawText.match(filePathPattern);
|
|
389
|
+
if (paths) {
|
|
390
|
+
for (const p of paths.slice(0, 5)) {
|
|
391
|
+
entities.add(p);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
const toolPattern = /\b(Read|Write|Edit|Bash|Grep|Glob|Agent|mcp__\w+)\b/g;
|
|
395
|
+
const tools = rawText.match(toolPattern);
|
|
396
|
+
if (tools) {
|
|
397
|
+
for (const t of new Set(tools)) {
|
|
398
|
+
entities.add(t);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return [...entities];
|
|
402
|
+
}
|
|
403
|
+
async function showStats() {
|
|
404
|
+
const client = getClient();
|
|
405
|
+
const fields = ["intent", "outcome", "domain", "audience", "language_type"];
|
|
406
|
+
const totalResult = await client.execute({ sql: "SELECT COUNT(*) as cnt FROM memories", args: [] });
|
|
407
|
+
const total = Number(totalResult.rows[0]?.cnt ?? 0);
|
|
408
|
+
const unclassResult = await client.execute({
|
|
409
|
+
sql: "SELECT COUNT(*) as cnt FROM memories WHERE intent IS NULL",
|
|
410
|
+
args: []
|
|
411
|
+
});
|
|
412
|
+
const unclassified = Number(unclassResult.rows[0]?.cnt ?? 0);
|
|
413
|
+
process.stdout.write(`Total memories: ${total}
|
|
414
|
+
Classified: ${total - unclassified}
|
|
415
|
+
Unclassified: ${unclassified}
|
|
416
|
+
|
|
417
|
+
`);
|
|
418
|
+
for (const field of fields) {
|
|
419
|
+
const dist = await client.execute({
|
|
420
|
+
sql: `SELECT ${field} as val, COUNT(*) as cnt FROM memories WHERE ${field} IS NOT NULL GROUP BY ${field} ORDER BY cnt DESC`,
|
|
421
|
+
args: []
|
|
422
|
+
});
|
|
423
|
+
process.stdout.write(`${field}:
|
|
424
|
+
`);
|
|
425
|
+
for (const row of dist.rows) {
|
|
426
|
+
const pct = (Number(row.cnt) / (total - unclassified) * 100).toFixed(1);
|
|
427
|
+
process.stdout.write(` ${String(row.val).padEnd(20)} ${String(row.cnt).padStart(7)} (${pct}%)
|
|
428
|
+
`);
|
|
429
|
+
}
|
|
430
|
+
process.stdout.write("\n");
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
async function exportBatches(options) {
|
|
434
|
+
const fs = await import("fs");
|
|
435
|
+
const path = await import("path");
|
|
436
|
+
const client = getClient();
|
|
437
|
+
const outDir = path.join(process.cwd(), "exe/output/classifications/input");
|
|
438
|
+
fs.mkdirSync(outDir, { recursive: true });
|
|
439
|
+
const countResult = await client.execute({
|
|
440
|
+
sql: "SELECT COUNT(*) as cnt FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL",
|
|
441
|
+
args: []
|
|
442
|
+
});
|
|
443
|
+
const total = Number(countResult.rows[0]?.cnt ?? 0);
|
|
444
|
+
process.stderr.write(`[backfill-metadata] ${total} unclassified memories to export.
|
|
445
|
+
`);
|
|
446
|
+
if (total === 0) return 0;
|
|
447
|
+
const toProcess = options.limit > 0 ? Math.min(options.limit, total) : total;
|
|
448
|
+
let offset = 0;
|
|
449
|
+
let batchNum = 1;
|
|
450
|
+
let exported = 0;
|
|
451
|
+
while (offset < toProcess) {
|
|
452
|
+
const batch = await client.execute({
|
|
453
|
+
sql: "SELECT id, SUBSTR(raw_text, 1, 500) as text FROM memories WHERE intent IS NULL AND outcome IS NULL AND domain IS NULL ORDER BY rowid LIMIT ? OFFSET ?",
|
|
454
|
+
args: [options.batchSize, offset]
|
|
455
|
+
});
|
|
456
|
+
if (batch.rows.length === 0) break;
|
|
457
|
+
const lines = batch.rows.map((row) => {
|
|
458
|
+
const text = String(row.text || "").replace(/\n/g, " ");
|
|
459
|
+
return JSON.stringify({ id: row.id, text });
|
|
460
|
+
});
|
|
461
|
+
const batchFile = path.join(outDir, `batch-${String(batchNum).padStart(4, "0")}.jsonl`);
|
|
462
|
+
fs.writeFileSync(batchFile, lines.join("\n") + "\n");
|
|
463
|
+
exported += batch.rows.length;
|
|
464
|
+
offset += options.batchSize;
|
|
465
|
+
batchNum++;
|
|
466
|
+
if ((batchNum - 1) % 50 === 0) {
|
|
467
|
+
process.stderr.write(`[backfill-metadata] Exported ${exported}/${toProcess}
|
|
468
|
+
`);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
process.stderr.write(`[backfill-metadata] Export complete: ${batchNum - 1} batch files, ${exported} memories.
|
|
472
|
+
`);
|
|
473
|
+
return exported;
|
|
474
|
+
}
|
|
475
|
+
async function importClassifications(importDir) {
|
|
476
|
+
const fs = await import("fs");
|
|
477
|
+
const path = await import("path");
|
|
478
|
+
const client = getClient();
|
|
479
|
+
const files = fs.readdirSync(importDir).filter((f) => f.endsWith(".jsonl")).sort();
|
|
480
|
+
process.stderr.write(`[backfill-metadata] Found ${files.length} JSONL files to import from ${importDir}
|
|
481
|
+
`);
|
|
482
|
+
let imported = 0;
|
|
483
|
+
let invalid = 0;
|
|
484
|
+
for (const file of files) {
|
|
485
|
+
const lines = fs.readFileSync(path.join(importDir, file), "utf-8").split("\n").filter(Boolean);
|
|
486
|
+
for (const line of lines) {
|
|
487
|
+
try {
|
|
488
|
+
const rec = JSON.parse(line);
|
|
489
|
+
if (!rec.id || !VALID_INTENTS.has(rec.intent) || !VALID_OUTCOMES.has(rec.outcome) || !VALID_DOMAINS.has(rec.domain) || !VALID_AUDIENCES.has(rec.audience) || !VALID_LANGUAGE_TYPES.has(rec.language_type)) {
|
|
490
|
+
invalid++;
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
await client.execute({
|
|
494
|
+
sql: "UPDATE memories SET intent = ?, outcome = ?, domain = ?, audience = ?, language_type = ? WHERE id = ?",
|
|
495
|
+
args: [rec.intent, rec.outcome, rec.domain, rec.audience, rec.language_type, rec.id]
|
|
496
|
+
});
|
|
497
|
+
imported++;
|
|
498
|
+
} catch {
|
|
499
|
+
invalid++;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
if (imported % 1e3 < 200) {
|
|
503
|
+
process.stderr.write(`[backfill-metadata] Imported ${imported} (${invalid} invalid)
|
|
504
|
+
`);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
process.stderr.write(`[backfill-metadata] Import complete: ${imported} updated, ${invalid} invalid.
|
|
508
|
+
`);
|
|
509
|
+
return { imported, invalid };
|
|
510
|
+
}
|
|
511
|
+
function parseArgs(argv) {
|
|
512
|
+
let batchSize = 50;
|
|
513
|
+
let limit = 0;
|
|
514
|
+
let dryRun = false;
|
|
515
|
+
let entities = false;
|
|
516
|
+
let exportBatchesFlag = false;
|
|
517
|
+
let importDir = "";
|
|
518
|
+
let heuristic = false;
|
|
519
|
+
let stats = false;
|
|
520
|
+
for (let i = 0; i < argv.length; i++) {
|
|
521
|
+
const arg = argv[i];
|
|
522
|
+
if (arg.startsWith("--batch-size=")) {
|
|
523
|
+
batchSize = parseInt(arg.split("=")[1], 10) || 50;
|
|
524
|
+
} else if (arg === "--batch-size" && argv[i + 1]) {
|
|
525
|
+
batchSize = parseInt(argv[++i], 10) || 50;
|
|
526
|
+
} else if (arg.startsWith("--limit=")) {
|
|
527
|
+
limit = parseInt(arg.split("=")[1], 10) || 0;
|
|
528
|
+
} else if (arg === "--limit" && argv[i + 1]) {
|
|
529
|
+
limit = parseInt(argv[++i], 10) || 0;
|
|
530
|
+
} else if (arg === "--dry-run") {
|
|
531
|
+
dryRun = true;
|
|
532
|
+
} else if (arg === "--entities") {
|
|
533
|
+
entities = true;
|
|
534
|
+
} else if (arg === "--heuristic") {
|
|
535
|
+
heuristic = true;
|
|
536
|
+
} else if (arg === "--stats") {
|
|
537
|
+
stats = true;
|
|
538
|
+
} else if (arg === "--export") {
|
|
539
|
+
exportBatchesFlag = true;
|
|
540
|
+
} else if (arg.startsWith("--import=")) {
|
|
541
|
+
importDir = arg.split("=")[1];
|
|
542
|
+
} else if (arg === "--import" && argv[i + 1]) {
|
|
543
|
+
importDir = argv[++i];
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
return { batchSize, limit, dryRun, entities, exportBatches: exportBatchesFlag, importDir, heuristic, stats };
|
|
547
|
+
}
|
|
548
|
+
async function backfillMetadata(options) {
|
|
549
|
+
await initStore();
|
|
550
|
+
let classified = 0;
|
|
551
|
+
let skipped = 0;
|
|
552
|
+
let failed = 0;
|
|
553
|
+
let remaining = 0;
|
|
554
|
+
let entitiesPopulated = 0;
|
|
555
|
+
if (options.stats) {
|
|
556
|
+
await showStats();
|
|
557
|
+
await disposeStore();
|
|
558
|
+
return { classified: 0, skipped: 0, failed: 0, entitiesPopulated: 0, remaining: 0 };
|
|
559
|
+
}
|
|
560
|
+
if (options.exportBatches) {
|
|
561
|
+
const exported = await exportBatches(options);
|
|
562
|
+
await disposeStore();
|
|
563
|
+
return { classified: 0, skipped: 0, failed: 0, entitiesPopulated: 0, remaining: exported };
|
|
564
|
+
}
|
|
565
|
+
if (options.importDir) {
|
|
566
|
+
const { imported, invalid } = await importClassifications(options.importDir);
|
|
567
|
+
await disposeStore();
|
|
568
|
+
return { classified: imported, skipped: 0, failed: invalid, entitiesPopulated: 0, remaining: 0 };
|
|
569
|
+
}
|
|
570
|
+
if (options.heuristic) {
|
|
571
|
+
const result = await backfillHeuristic(options);
|
|
572
|
+
await disposeStore();
|
|
573
|
+
return { classified: result.classified, skipped: result.skipped, failed: 0, entitiesPopulated: 0, remaining: result.remaining };
|
|
574
|
+
}
|
|
575
|
+
if (options.entities) {
|
|
576
|
+
entitiesPopulated = await backfillEntities(options);
|
|
577
|
+
} else {
|
|
578
|
+
const result = await backfillClassifications(options);
|
|
579
|
+
classified = result.classified;
|
|
580
|
+
skipped = result.skipped;
|
|
581
|
+
failed = result.failed;
|
|
582
|
+
remaining = result.remaining;
|
|
583
|
+
}
|
|
584
|
+
await disposeStore();
|
|
585
|
+
return { classified, skipped, failed, entitiesPopulated, remaining };
|
|
586
|
+
}
|
|
587
|
+
if (isMainModule(import.meta.url)) {
|
|
588
|
+
const options = parseArgs(process.argv.slice(2));
|
|
589
|
+
backfillMetadata(options).then((result) => {
|
|
590
|
+
console.log(JSON.stringify(result, null, 2));
|
|
591
|
+
process.exit(result.failed > 0 ? 1 : 0);
|
|
592
|
+
}).catch((err) => {
|
|
593
|
+
console.error("[backfill-metadata] Fatal:", err instanceof Error ? err.message : String(err));
|
|
594
|
+
process.exit(1);
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
export {
|
|
598
|
+
backfillMetadata
|
|
599
|
+
};
|