@nikolasp98/minion 2026.6.16-dev.20260703022951 → 2026.7.2-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-BuvRfQ9w.js → accounts-BXfCjq1s.js} +1 -1
- package/dist/{accounts-ZaxCwsI7.js → accounts-CgVj_ZvT.js} +1 -1
- package/dist/{accounts-BXGQwBCy.js → accounts-D0IauaHf.js} +1 -1
- package/dist/{accounts-D085lEm1.js → accounts-xwGx4GiG.js} +1 -1
- package/dist/{acp-cli-B33pR8aO.js → acp-cli-BofVv1S4.js} +3 -3
- package/dist/{acp-cli-B4TQ6ceB.js → acp-cli-KgewsPtq.js} +3 -3
- package/dist/{agent-ZEu8LatG.js → agent-h6HcO0Nb.js} +12 -12
- package/dist/{agent-step-GW1K3X_z.js → agent-step-CW6Vc9VA.js} +3 -3
- package/dist/{agent-step-CIwF1fe4.js → agent-step-DIqiZqN6.js} +3 -3
- package/dist/{agents-B-tnV6jT.js → agents-CRuMaUxh.js} +8 -8
- package/dist/{agents-list-tool-CpeEmvE6.js → agents-list-tool-DHrkIYwP.js} +3 -3
- package/dist/{agents-list-tool-C4DN0VKm.js → agents-list-tool-mV9-nOC8.js} +2 -2
- package/dist/{agents-list-tool-B1yRv0qo.js → agents-list-tool-qgS6iC-S.js} +3 -3
- package/dist/{agents.config-DU05dCcQ.js → agents.config-D6xx-kCm.js} +11 -11
- package/dist/{audit-Ck8w3i0g.js → audit-C4vWcnRT.js} +10 -10
- package/dist/{audit-BlADGCfR.js → audit-yMw0xC1H.js} +10 -10
- package/dist/{auth-choice-_HdhC1Ax.js → auth-choice-B3sdr0yr.js} +4 -4
- package/dist/{auth-choice-DXK-xwEZ.js → auth-choice-wAcjEzAw.js} +4 -4
- package/dist/{banner-DyN6sF2C.js → banner-XDf4LEG4.js} +1 -1
- package/dist/booking-cancel-tool-BQ4a7cOG.js +34 -0
- package/dist/booking-cancel-tool-D5WT2e71.js +34 -0
- package/dist/booking-cancel-tool-T0j0NEYJ.js +34 -0
- package/dist/booking-create-tool-B9OhlsCV.js +50 -0
- package/dist/booking-create-tool-C4mnxn4s.js +50 -0
- package/dist/booking-create-tool-DoK1URaw.js +50 -0
- package/dist/booking-reschedule-tool-BBRT8BeA.js +54 -0
- package/dist/booking-reschedule-tool-BbCUsgsS.js +54 -0
- package/dist/booking-reschedule-tool-szF6zAV5.js +54 -0
- package/dist/bookings-query-tool-BeUjMBd7.js +39 -0
- package/dist/bookings-query-tool-C82uomRU.js +39 -0
- package/dist/bookings-query-tool-CKBaEz6v.js +39 -0
- package/dist/brain-remember-tool-5GpyMh2L.js +54 -0
- package/dist/brain-remember-tool-C0NYC-xc.js +54 -0
- package/dist/brain-remember-tool-C6nzb0DB.js +54 -0
- package/dist/brain-search-tool-CISjpiVH.js +37 -0
- package/dist/brain-search-tool-CroWlajo.js +37 -0
- package/dist/brain-search-tool-D8benSIw.js +37 -0
- package/dist/brains-list-tool-CgKa84V3.js +27 -0
- package/dist/brains-list-tool-D6S8eSfu.js +27 -0
- package/dist/brains-list-tool-QygvDpW2.js +27 -0
- package/dist/{browser-cli-B61sRYcg.js → browser-cli-ChMgod93.js} +4 -4
- package/dist/{browser-cli-CmTcAyLB.js → browser-cli-DAsazj7c.js} +4 -4
- package/dist/{browser-tool-DcFsvT1U.js → browser-tool-CMPuFbvY.js} +6 -6
- package/dist/{browser-tool-BssHihtr.js → browser-tool-Ed0u_AOB.js} +7 -7
- package/dist/{browser-tool-BkX_TrBo.js → browser-tool-fWwWyaEp.js} +7 -7
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1566 -11
- package/dist/bundled/kg-message-sync/handler.js +1 -1
- package/dist/{call-ByUO9iKO.js → call-BEIi33qI.js} +1 -1
- package/dist/{call-DtlNtNVA.js → call-BPWvRjRm.js} +2 -2
- package/dist/{call-_kPuw-vU.js → call-BtA9WrCC.js} +2 -2
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{canvas-tool-WyTrg2j9.js → canvas-tool-CRjzdRXW.js} +2 -2
- package/dist/{canvas-tool-DEtMG6i2.js → canvas-tool-Ctyu2how.js} +2 -2
- package/dist/{canvas-tool-CzpnmWAn.js → canvas-tool-ftxzYBaK.js} +2 -2
- package/dist/{channel-options-Cnz3IGd9.js → channel-options-CQYFDEhv.js} +2 -2
- package/dist/{channel-options-DopXFSyZ.js → channel-options-ax7LAM0A.js} +2 -2
- package/dist/{channel-selection-CYImJUQg.js → channel-selection-CEx__vtW.js} +1 -1
- package/dist/{channel-selection-iTEcjxYC.js → channel-selection-SE_1hB_M.js} +1 -1
- package/dist/{channel-web-C61ymAAy.js → channel-web-BBuKa6h3.js} +11 -11
- package/dist/{channels-cli-CG1PrWEi.js → channels-cli-B9G06Fmo.js} +13 -13
- package/dist/{channels-cli-B5AFLqYY.js → channels-cli-CMytcEwb.js} +13 -13
- package/dist/{channels-status-issues-CruUpZ5_.js → channels-status-issues-2UslYkyj.js} +1 -1
- package/dist/{channels-status-issues-DQudmpKi.js → channels-status-issues-D-Uign2B.js} +1 -1
- package/dist/{chrome-SXjxMlpf.js → chrome-8ypx9Y_Q.js} +2 -2
- package/dist/{chrome-BXvOfh_S.js → chrome-Bm0i3JJ5.js} +1 -1
- package/dist/{chrome-BiJw-KLb.js → chrome-CKpv4Nqu.js} +2 -2
- package/dist/{clawbot-cli-BqIjHYyO.js → clawbot-cli-B0dcEO3n.js} +1 -1
- package/dist/{clawbot-cli-DEFNc0eF.js → clawbot-cli-BhkD8jAi.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-BOOG9rRa.js → cli-Bb8BwFKn.js} +3 -3
- package/dist/{cli-XfQlZlkf.js → cli-BkYzSkm4.js} +3 -3
- package/dist/{client-CS7cx9Im.js → client-CFTzdF7N.js} +4 -4
- package/dist/{client-BWtnXqf6.js → client-Ct-X1nzk.js} +4 -4
- package/dist/{client-0oQQSzns.js → client-DkJ5jqsl.js} +4 -4
- package/dist/{command-registry-JmDW6Nn6.js → command-registry-DYwO0GeY.js} +14 -14
- package/dist/{commands-registry-BAl7QGCh.js → commands-registry-CTh_zaQh.js} +2 -2
- package/dist/{commands-registry-apXzRQIt.js → commands-registry-eYNgWaeM.js} +2 -2
- package/dist/{completion-cli-CLXHz8g6.js → completion-cli-BR3ceW8A.js} +2 -2
- package/dist/{completion-cli-hYHXI1uh.js → completion-cli-DF_9tlQG.js} +1 -1
- package/dist/{config-D0cZAiW5.js → config-DKbC00-8.js} +1 -1
- package/dist/{config-C4ygZaLQ.js → config-GA90_ZLO.js} +1 -1
- package/dist/{config-cli-WVl6fLmt.js → config-cli-BFBb_KPM.js} +3 -3
- package/dist/{config-cli-a6kX0DWm.js → config-cli-DqrSBbB0.js} +3 -3
- package/dist/{config-guard-CLHcu3Wq.js → config-guard-CUaqhHD3.js} +3 -3
- package/dist/config-guard-CljBFSot.js +2 -0
- package/dist/{config-validation-uXqheWDj.js → config-validation-B7WbrARG.js} +2 -2
- package/dist/{config-validation-BUM-4lnJ.js → config-validation-BLe1mTWt.js} +2 -2
- package/dist/{config-UjWeYUCv.js → config-yRiIX18Z.js} +1 -1
- package/dist/{configure-DqZ20Fm1.js → configure-BVS7Uoe1.js} +16 -16
- package/dist/{configure-W7doYXjc.js → configure-Y4orl1oO.js} +16 -16
- package/dist/contact-tag-tool-B2IwH12w.js +43 -0
- package/dist/contact-tag-tool-BCTLI9AF.js +43 -0
- package/dist/contact-tag-tool-D-ow4Isv.js +43 -0
- package/dist/contact-update-tool-BUqDMu6g.js +48 -0
- package/dist/contact-update-tool-BtNz3sPT.js +48 -0
- package/dist/contact-update-tool-CuE27eki.js +48 -0
- package/dist/{cron-cli-D8dfzuy8.js → cron-cli-CMq19JHd.js} +3 -3
- package/dist/{cron-cli-abqQP_b7.js → cron-cli-DnZ4sbsM.js} +2 -2
- package/dist/{cron-tool-DT-Juzd0.js → cron-tool-BwIsBYaw.js} +5 -5
- package/dist/{cron-tool-CfZIJWk_.js → cron-tool-CsOKL3c2.js} +4 -4
- package/dist/{cron-tool-CvjJ7eWq.js → cron-tool-DyEs4iFg.js} +5 -5
- package/dist/{daemon-cli-LfpGMPoH.js → daemon-cli-CueUsD00.js} +9 -9
- package/dist/{daemon-cli-Dk4HnYpN.js → daemon-cli-of4aZf7x.js} +9 -9
- package/dist/daemon-cli.js +1 -1
- package/dist/daemon-install-helpers-BTrwyLn2.js +2 -0
- package/dist/daemon-install-helpers-DrlG4q0g.js +2 -0
- package/dist/{daemon-runtime-CWwiPJlC.js → daemon-runtime-Bc1wF1kV.js} +1 -1
- package/dist/{daemon-runtime-CYbnHdnj.js → daemon-runtime-DDr_cMqE.js} +1 -1
- package/dist/{deliver-BL-x0LSd.js → deliver-9LL4m3Lu.js} +6 -6
- package/dist/{deliver-W1AG1DOn.js → deliver-BQbh88Tj.js} +4 -4
- package/dist/{deliver-Cl_KmOId.js → deliver-UZw-uP-N.js} +5 -5
- package/dist/{deps-nXmpIQZI.js → deps-BDdvdX9C.js} +7 -7
- package/dist/{devices-cli-DnCpjN6g.js → devices-cli-C4beZBw0.js} +1 -1
- package/dist/{devices-cli-BRK10uvX.js → devices-cli-DLos0jsr.js} +1 -1
- package/dist/{diagnostic-BzRwZgem.js → diagnostic-VfvbQ5fw.js} +2 -2
- package/dist/{diagnostic-session-state-DxmmFAAh.js → diagnostic-session-state-CBHZ89g9.js} +1 -1
- package/dist/{directory-cli-C5N6RWl4.js → directory-cli-Bnn8FmVY.js} +4 -4
- package/dist/{directory-cli-BL_qihxU.js → directory-cli-DqwjijGj.js} +4 -4
- package/dist/{dispatcher-D1AyKtq_.js → dispatcher-D0-a_KPL.js} +7 -7
- package/dist/{dispatcher-zNWlur8g.js → dispatcher-DiHR8NYb.js} +7 -7
- package/dist/{dm-policy-shared-ClqzKx9w.js → dm-policy-shared-COFFISSw.js} +2 -2
- package/dist/{dm-policy-shared-C48I2hKE.js → dm-policy-shared-Db1R5Al0.js} +2 -2
- package/dist/{dns-cli-6CZeX7fy.js → dns-cli-BLIp6tn8.js} +2 -2
- package/dist/{dns-cli-C1Zhq42E.js → dns-cli-DU4VfG3C.js} +2 -2
- package/dist/{doctor-completion-Bpn4-Oq7.js → doctor-completion-8taj147x.js} +1 -1
- package/dist/doctor-completion-Bu80Av1s.js +2 -0
- package/dist/doctor-completion-BzTZPUY3.js +2 -0
- package/dist/{doctor-completion-DvFl76Xq.js → doctor-completion-lFqnioUo.js} +1 -1
- package/dist/{doctor-config-flow-CR7fJOuO.js → doctor-config-flow-3lyK6GXd.js} +5 -5
- package/dist/{doctor-config-flow-B_rg9smn.js → doctor-config-flow-DPD_mReb.js} +5 -5
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-CgGc4dVa.js → exec-approvals-cli-BfC19d1o.js} +2 -2
- package/dist/{exec-approvals-cli-BHbQggLt.js → exec-approvals-cli-CljRgEuO.js} +2 -2
- package/dist/extensionAPI.js +2 -2
- package/dist/finance-query-tool-7NGJzyjQ.js +43 -0
- package/dist/finance-query-tool-Bc-nST7-.js +43 -0
- package/dist/finance-query-tool-DEh-8uf3.js +43 -0
- package/dist/{gateway-CDqi7AYG.js → gateway-CrExAmqV.js} +2 -2
- package/dist/{gateway-DnQbLapC.js → gateway-DE7-sAMu.js} +3 -3
- package/dist/{gateway-BZ_rGbzx.js → gateway-Dt8tSFHA.js} +3 -3
- package/dist/{gateway-cli-DHMb1UuP.js → gateway-cli-BNdl5ETB.js} +40 -40
- package/dist/{gateway-cli-C5N07CtU.js → gateway-cli-avHq5s28.js} +44 -44
- package/dist/{gateway-rpc-BbkbWt3G.js → gateway-rpc-14Q1TtPH.js} +1 -1
- package/dist/{gateway-rpc-D4kSkkPS.js → gateway-rpc-l0Ix-6Kp.js} +1 -1
- package/dist/{gateway-tool-z8-vPF0-.js → gateway-tool-BWSVz3lE.js} +3 -3
- package/dist/{gateway-tool-koliixkR.js → gateway-tool-CX6hKwWR.js} +3 -3
- package/dist/{gateway-tool-D_6Uf9GQ.js → gateway-tool-CavUON8u.js} +3 -3
- package/dist/{github-copilot-auth-DXRIXhwE.js → github-copilot-auth-BVranXiA.js} +2 -2
- package/dist/{github-copilot-auth-vZIh62h7.js → github-copilot-auth-LevK6DQr.js} +2 -2
- package/dist/{gmail-C67NcH03.js → gmail-C1xWwBqt.js} +1 -1
- package/dist/{gmail-CKdlz_2l.js → gmail-rJdWhPq_.js} +1 -1
- package/dist/{health-B68NlCPU.js → health-CmEEKiew.js} +8 -8
- package/dist/{health-BH4SZIqw.js → health-DPusbWbK.js} +8 -8
- package/dist/{helpers-DX7IrTxf.js → helpers-DrKNVVVu.js} +1 -1
- package/dist/{helpers-DfUDP_7P.js → helpers-v9HeNa7s.js} +1 -1
- package/dist/{hooks-cli-fogVtYj5.js → hooks-cli-Di-nx8CI.js} +2 -2
- package/dist/{hooks-cli-C2Wx1UBL.js → hooks-cli-DqnwazMm.js} +2 -2
- package/dist/hub-common-BXMO3y1A.js +58 -0
- package/dist/hub-common-D7t3vbq1.js +58 -0
- package/dist/hub-pages-tool-CcT1qxV9.js +27 -0
- package/dist/hub-pages-tool-D-3FEFsZ.js +27 -0
- package/dist/hub-pages-tool-DoDvLDFh.js +27 -0
- package/dist/{image-tool-DrPrAhPE.js → image-tool-BjcTww_z.js} +2 -2
- package/dist/{image-tool-BjwEfIHS.js → image-tool-CZln47nw.js} +2 -2
- package/dist/{image-tool-t2URJv9Q.js → image-tool-CqG2fJgM.js} +2 -2
- package/dist/index.js +10 -10
- package/dist/{io-D6HAGfRj.js → io-CUOJNJs6.js} +1 -1
- package/dist/{io-e4Yx5ZqN.js → io-DsXKMvz3.js} +1 -1
- package/dist/{ir-CRQw8rC-.js → ir-B5YPvQFJ.js} +1 -1
- package/dist/{ir-Dw5why5w.js → ir-D89aqXPf.js} +4 -4
- package/dist/{ir-CXYhC_s0.js → ir-Dc6AWYIi.js} +1 -1
- package/dist/{knowledge-graph-DY3hX2id.js → knowledge-graph-MfRaP31I.js} +1 -1
- package/dist/{lifecycle-core-DodDF7fD.js → lifecycle-core-B5yxpQrN.js} +3 -3
- package/dist/{lifecycle-core-eActrcsn.js → lifecycle-core-BgBdMtfY.js} +3 -3
- package/dist/{logs-cli-BOKzwD3q.js → logs-cli-DCwto3gl.js} +2 -2
- package/dist/{logs-cli-Dogt71JB.js → logs-cli-DhL544qw.js} +2 -2
- package/dist/{manager-BEO63FwF.js → manager-DaF7qlnz.js} +1 -1
- package/dist/{memory-cli-DYHzddiH.js → memory-cli-BnAPYY9h.js} +2 -2
- package/dist/{memory-cli-QIIevuLL.js → memory-cli-DcenbgYg.js} +2 -2
- package/dist/{message-action-runner-BHH2obtO.js → message-action-runner-B_XqOBWe.js} +10 -10
- package/dist/{message-action-runner-BZPZrbfZ.js → message-action-runner-Dg2rHhif.js} +10 -10
- package/dist/{message-ledger-wjhcg6Ko.js → message-ledger-BeuUbcUn.js} +6 -6
- package/dist/{message-tool-Dx0lcq57.js → message-tool-BtCKP0ZG.js} +6 -6
- package/dist/{message-tool-BqzlpxAL.js → message-tool-CXE6QSaq.js} +8 -8
- package/dist/{message-tool-BdZMbP-_.js → message-tool-fWXuQrLW.js} +6 -6
- package/dist/{minion-tools-BCsEknBS.js → minion-tools-CExlnRRN.js} +438 -48
- package/dist/{model-catalog-BzwXHdrf.js → model-catalog-BUOrFywx.js} +3 -3
- package/dist/{model-catalog-C6s-YmOC.js → model-catalog-DAHly2DA.js} +3 -3
- package/dist/{model-fallback-CItMxzEx.js → model-fallback-BFGscvIF.js} +2 -2
- package/dist/{model-fallback-rLmQ9WJ2.js → model-fallback-Bu5IXWCs.js} +2 -2
- package/dist/{model-fallback-CSdDdf18.js → model-fallback-D7bL5w9a.js} +3 -3
- package/dist/{model-picker-Jl9cR9lZ.js → model-picker-BXHv9gwd.js} +2 -2
- package/dist/{model-picker-B-XiL2OH.js → model-picker-BlVeWarh.js} +2 -2
- package/dist/{models-CzO1PoHi.js → models-DrdU8zCR.js} +11 -11
- package/dist/{models-cli-DDqRod8M.js → models-cli-ClloOmLf.js} +11 -11
- package/dist/{models-cli-CJZPgBfF.js → models-cli-Cs1chbdr.js} +2 -2
- package/dist/{models-config-BNdF-IMY.js → models-config-CYz1Jl9f.js} +2 -2
- package/dist/{models-config-gGtRsN8J.js → models-config-DYWSuEYm.js} +2 -2
- package/dist/{node-cli-C07JlIhT.js → node-cli-DfNXXKfW.js} +7 -7
- package/dist/{node-cli-KTuDPtLV.js → node-cli-DuTW318s.js} +7 -7
- package/dist/{nodes-cli-D2NSRkr9.js → nodes-cli-C4DbIhxT.js} +4 -4
- package/dist/{nodes-cli-CtuZ7NoK.js → nodes-cli-dNo0GV28.js} +4 -4
- package/dist/{nodes-tool-DEEg33kl.js → nodes-tool-BMyerIV8.js} +3 -3
- package/dist/{nodes-tool-C64_5SUR.js → nodes-tool-CdRBRg3n.js} +2 -2
- package/dist/{nodes-tool-DytMlT0G.js → nodes-tool-xWih4JM4.js} +2 -2
- package/dist/{nodes-utils-CPn-ghlx.js → nodes-utils-CufLKNGe.js} +1 -1
- package/dist/{nodes-utils-BCfYRkSd.js → nodes-utils-DVWS0DJm.js} +1 -1
- package/dist/{nodes-utils-BTHUGnyH.js → nodes-utils-DsbuELKY.js} +1 -1
- package/dist/notify-user-tool-BQ9QLglp.js +41 -0
- package/dist/notify-user-tool-BuELqNes.js +41 -0
- package/dist/notify-user-tool-DLae7l_c.js +41 -0
- package/dist/{onboard-DUvfso4l.js → onboard-B-avLisX.js} +8 -8
- package/dist/{onboard-DofGeN8U.js → onboard-SJUelwfO.js} +8 -8
- package/dist/{onboard-channels-Bt9VQkRB.js → onboard-channels-2zt_gaYa.js} +3 -3
- package/dist/{onboard-channels-0yScPK4U.js → onboard-channels-B4YkPT_I.js} +1 -1
- package/dist/{onboard-channels-Vjny7vl1.js → onboard-channels-BfdH44jV.js} +1 -1
- package/dist/{onboard-channels-DaLKz8R4.js → onboard-channels-PE0DJeP3.js} +3 -3
- package/dist/{onboard-custom-rWmaWITc.js → onboard-custom-AFW2y9Fw.js} +2 -2
- package/dist/{onboard-custom-BDGt1kja.js → onboard-custom-DiGxyF1W.js} +2 -2
- package/dist/{onboard-custom-BysGgJiB.js → onboard-custom-sOaQBqZH.js} +1 -1
- package/dist/{onboard-custom-C3f0dVEB.js → onboard-custom-zDWUbUye.js} +1 -1
- package/dist/{onboard-helpers-BrndIk2N.js → onboard-helpers-0Ck3IoqE.js} +4 -4
- package/dist/{onboard-helpers-BAGJ5Lo1.js → onboard-helpers-Bat8F04f.js} +1 -1
- package/dist/{onboard-helpers-Dd4P1QbH.js → onboard-helpers-Bt6lH884.js} +4 -4
- package/dist/{onboard-helpers-DV9yuQ1d.js → onboard-helpers-CGpNOsa3.js} +1 -1
- package/dist/{onboard-remote-DRzZ9kQN.js → onboard-remote-CGoat8Ht.js} +1 -1
- package/dist/{onboard-remote-JIG7iYFa.js → onboard-remote-fxQZypsD.js} +1 -1
- package/dist/{onboard-skills-Ce5HO8VV.js → onboard-skills-CLrW7_vF.js} +1 -1
- package/dist/{onboard-skills-DMVLngVN.js → onboard-skills-GK6OUUuS.js} +1 -1
- package/dist/{onboarding-wYvukFyg.js → onboarding-C7aodLA2.js} +12 -12
- package/dist/{onboarding-CbhR0emG.js → onboarding-lIh5Eq03.js} +12 -12
- package/dist/{onboarding.finalize-DcDS7RiE.js → onboarding.finalize-Cpr_6eTb.js} +9 -9
- package/dist/{onboarding.finalize-nhs02n-T.js → onboarding.finalize-Wqrm-aWj.js} +9 -9
- package/dist/{onboarding.gateway-config-Bn1-Rp-H.js → onboarding.gateway-config-Bxm6nU1u.js} +2 -2
- package/dist/{onboarding.gateway-config-CtPOA3D5.js → onboarding.gateway-config-DKCE85Y-.js} +2 -2
- package/dist/order-update-status-tool-CMFqE714.js +43 -0
- package/dist/order-update-status-tool-CNX4uu2U.js +43 -0
- package/dist/order-update-status-tool-Dkv-jcX1.js +43 -0
- package/dist/orders-query-tool-Cox-HkmB.js +40 -0
- package/dist/orders-query-tool-CrWjRlWq.js +40 -0
- package/dist/orders-query-tool-DoTV3it7.js +40 -0
- package/dist/{outbound-send-deps-B6gAQhTt.js → outbound-send-deps-BaQy-H2c.js} +7 -7
- package/dist/{outbound-session-DRsIRtcz.js → outbound-session-CQu7MwtX.js} +6 -6
- package/dist/{outbound-session-Bw7QohlD.js → outbound-session-CX_XRDHU.js} +6 -6
- package/dist/{pairing-cli-Dgd0Wbso.js → pairing-cli-Y4cWvmqV.js} +4 -4
- package/dist/{pairing-cli-DNxLtDAs.js → pairing-cli-YKXsh9qq.js} +4 -4
- package/dist/{pairing-store-Dt3zHbxc.js → pairing-store-Cw5GsbNo.js} +2 -2
- package/dist/{pairing-store-BOjF78Ox.js → pairing-store-Da_7uUr_.js} +2 -2
- package/dist/{pi-embedded-helpers-CEkySDxp.js → pi-embedded-helpers-CDWmWyvU.js} +1 -1
- package/dist/{pi-embedded-helpers-DscGMv73.js → pi-embedded-helpers-CHtXwjlA.js} +27 -4
- package/dist/{pi-embedded-helpers-DL7FHGmT.js → pi-embedded-helpers-CwDskpRg.js} +1 -1
- package/dist/{pi-embedded-utils-kgdOppBK.js → pi-embedded-utils-BNN3Mb-q.js} +1 -1
- package/dist/{pi-embedded-utils-ByF51tTS.js → pi-embedded-utils-Cb_StxCN.js} +1 -1
- package/dist/{pi-embedded-utils-CbID52rD.js → pi-embedded-utils-MWdH9ypO.js} +1 -1
- package/dist/{pi-model-discovery-p8TFZjTo.js → pi-model-discovery-CKRiDFp0.js} +1 -1
- package/dist/{pi-tools.policy-BGMUkXoJ.js → pi-tools.policy-BJl7_IWm.js} +3 -3
- package/dist/{plugin-auto-enable-DDudeIWk.js → plugin-auto-enable-BuWdv2za.js} +1 -1
- package/dist/{plugin-auto-enable-3NRefTC0.js → plugin-auto-enable-DmQbCYAk.js} +1 -1
- package/dist/{plugin-registry-BsmJvnZM.js → plugin-registry-6dOOzi3y.js} +3 -3
- package/dist/{plugin-registry-5x3uvlGH.js → plugin-registry-CC5mfGuh.js} +3 -3
- package/dist/plugin-sdk/agents/tools/hub/booking-cancel-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/booking-create-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/hub/booking-reschedule-tool.d.ts +12 -0
- package/dist/plugin-sdk/agents/tools/hub/bookings-query-tool.d.ts +9 -0
- package/dist/plugin-sdk/agents/tools/hub/brain-remember-tool.d.ts +14 -0
- package/dist/plugin-sdk/agents/tools/hub/brain-search-tool.d.ts +9 -0
- package/dist/plugin-sdk/agents/tools/hub/brains-list-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/hub/contact-tag-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/contact-update-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/hub/finance-query-tool.d.ts +11 -0
- package/dist/plugin-sdk/agents/tools/hub/hub-common.d.ts +17 -0
- package/dist/plugin-sdk/agents/tools/hub/hub-pages-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/hub/notify-user-tool.d.ts +11 -0
- package/dist/plugin-sdk/agents/tools/hub/order-update-status-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/orders-query-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/projects-query-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/stock-entry-create-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/hub/stock-query-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/task-create-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/task-update-tool.d.ts +9 -0
- package/dist/plugin-sdk/agents/tools/hub/ticket-comment-tool.d.ts +9 -0
- package/dist/plugin-sdk/agents/tools/hub/ticket-create-tool.d.ts +8 -0
- package/dist/plugin-sdk/agents/tools/hub/ticket-update-tool.d.ts +9 -0
- package/dist/plugin-sdk/agents/tools/hub/tickets-query-tool.d.ts +8 -0
- package/dist/plugin-sdk/channels/discord.js +1566 -11
- package/dist/plugin-sdk/channels/imessage.js +1566 -11
- package/dist/plugin-sdk/channels/line.js +1566 -11
- package/dist/plugin-sdk/channels/signal.js +1566 -11
- package/dist/plugin-sdk/channels/slack.js +1566 -11
- package/dist/plugin-sdk/channels/telegram.js +1566 -11
- package/dist/plugin-sdk/channels/whatsapp.js +1566 -11
- package/dist/plugin-sdk/core.js +1 -1
- package/dist/plugin-sdk/index.js +1566 -11
- package/dist/{plugins-C3wcf7MF.js → plugins-C_QBgBKj.js} +1 -1
- package/dist/{plugins-B3EcsJ93.js → plugins-D6vuz-44.js} +1 -1
- package/dist/{plugins-BL_DwVqV.js → plugins-Dt-7Y5wv.js} +1 -1
- package/dist/{plugins-cli-BmazY7y6.js → plugins-cli-BYANyisq.js} +3 -3
- package/dist/{plugins-cli-CbT4Ivfy.js → plugins-cli-z-gXEkiv.js} +3 -3
- package/dist/{program-DbljxDPq.js → program-D_3DwSCA.js} +7 -7
- package/dist/{program-context-DiDgk5Zh.js → program-context-DRlcBXyK.js} +42 -42
- package/dist/projects-query-tool-BMFyd6JA.js +36 -0
- package/dist/projects-query-tool-BfpS0jf3.js +36 -0
- package/dist/projects-query-tool-DDIbxa_y.js +36 -0
- package/dist/{prompt-select-styled-CBtk-g6b.js → prompt-select-styled-2x3TaE5T.js} +18 -18
- package/dist/{prompt-select-styled-DQkPX023.js → prompt-select-styled-CkFtjmG1.js} +18 -18
- package/dist/{push-apns-BOeMCPZo.js → push-apns-BYXttBeJ.js} +1 -1
- package/dist/{push-apns-DpoIe7e2.js → push-apns-D879xbRP.js} +1 -1
- package/dist/{pw-ai-BJyHhYQF.js → pw-ai-BXS_o6SX.js} +2 -2
- package/dist/{pw-ai-BEWrwUFs.js → pw-ai-CfC7b26r.js} +2 -2
- package/dist/{pw-ai-HlMa6FG6.js → pw-ai-D9HAap-o.js} +2 -2
- package/dist/{pw-session-CWDEi5Nc.js → pw-session-ClplWKdd.js} +1 -1
- package/dist/{pw-session-CwWxQG1I.js → pw-session-FNaJjvLM.js} +1 -1
- package/dist/{pw-session-CGsc7KWi.js → pw-session-m7067XiE.js} +1 -1
- package/dist/{qr-cli-Dhlzz33G.js → qr-cli-CReHqOud.js} +2 -2
- package/dist/{qr-cli-Dldb8C1U.js → qr-cli-CdiCMQGN.js} +2 -2
- package/dist/{register.agent-_wkQQgzp.js → register.agent-BhnXw_dx.js} +8 -8
- package/dist/{register.agent-DnR7m134.js → register.agent-gVjDby1v.js} +12 -12
- package/dist/{register.channel-DtMJW1B2.js → register.channel-BWFep3ht.js} +2 -2
- package/dist/{register.channel-ByOxBY8q.js → register.channel-Cs5mrRZK.js} +2 -2
- package/dist/{register.configure-nrRrsu0C.js → register.configure-BeA7rzcV.js} +1 -1
- package/dist/{register.configure-BPniagxi.js → register.configure-CfW9D0gg.js} +1 -1
- package/dist/{register.drone-Cf5hsWJV.js → register.drone-C3ko3f4m.js} +1 -1
- package/dist/{register.drone-GMUhMhB4.js → register.drone-N_X5a2wS.js} +1 -1
- package/dist/{register.maintenance-BgfUvt-j.js → register.maintenance-BdJvIKSK.js} +5 -5
- package/dist/{register.maintenance-1tmxCGJO.js → register.maintenance-CEXQ4BMG.js} +5 -5
- package/dist/{register.message-sfK4pC7Q.js → register.message-CSdDkTF6.js} +9 -9
- package/dist/{register.message-o5rsaNxX.js → register.message-D4L-RQzY.js} +8 -8
- package/dist/{register.onboard-Dyb6qoBi.js → register.onboard-CYI56giZ.js} +1 -1
- package/dist/{register.onboard-Q56EmCd1.js → register.onboard-DEsoSYVM.js} +1 -1
- package/dist/{register.setup-LmUXe-fJ.js → register.setup-ChlFvsQj.js} +4 -4
- package/dist/{register.setup-DFN-ma50.js → register.setup-CpMcHooI.js} +4 -4
- package/dist/{register.status-health-sessions-ChRIvGGx.js → register.status-health-sessions-CESGadbE.js} +6 -6
- package/dist/{register.status-health-sessions-CH55XELQ.js → register.status-health-sessions-CIBXSHl0.js} +4 -4
- package/dist/{register.subclis-BV7bN9SK.js → register.subclis-BFXE6TvY.js} +29 -29
- package/dist/{reply-BvB01BRa.js → reply-Dy4Gl8EU.js} +436 -46
- package/dist/{reply-payloads-BxIDP7AE.js → reply-payloads-haUxLKio.js} +6 -6
- package/dist/{reply-prefix-Caipj1Jf.js → reply-prefix-BQo8iEBd.js} +1 -1
- package/dist/{reply-prefix-DY3LhS4c.js → reply-prefix-CUl0tQo3.js} +1 -1
- package/dist/{resolve-route-_uEmZcg2.js → resolve-route-CQNeFCbt.js} +4 -4
- package/dist/{resolve-route-DMoFSOUO.js → resolve-route-Cm40tM17.js} +2 -2
- package/dist/{routes-BsjQsdNd.js → routes-B3alP22i.js} +5 -5
- package/dist/{routes-BzfGuFnh.js → routes-DLBS9sHq.js} +5 -5
- package/dist/{rpc-gxwxRHlK.js → rpc-CtI1iVqG.js} +1 -1
- package/dist/{rpc-LOiW9xrJ.js → rpc-DZXtmnqh.js} +1 -1
- package/dist/{run-main-BiEp_qc-.js → run-main-De6Qk8Ng.js} +20 -20
- package/dist/{sandbox-0BpaF17S.js → sandbox-Co0HrQB2.js} +29 -6
- package/dist/{sandbox-opcHUJfc.js → sandbox-Dh_zn6nH.js} +29 -6
- package/dist/{sandbox-cli-Ca6I34Pd.js → sandbox-cli-DXUvqdbh.js} +4 -4
- package/dist/{sandbox-cli-B3hI0p9M.js → sandbox-cli-LZRCHMKQ.js} +4 -4
- package/dist/{security-cli-B1FLTWRz.js → security-cli-BlgNK6T8.js} +4 -4
- package/dist/{security-cli-wN-U3m9U.js → security-cli-COv-kz1U.js} +4 -4
- package/dist/{send-rKIFHSnf.js → send-B-l_LQjz.js} +6 -6
- package/dist/{send-ucLRBq08.js → send-BI100vN5.js} +4 -4
- package/dist/{send-BYUhkXPy.js → send-Bo3iRRV4.js} +5 -5
- package/dist/{send-CdgyDwpI.js → send-C1WQ3CSg.js} +5 -5
- package/dist/{send-mMi3QyjT.js → send-D3OXHEbY.js} +6 -6
- package/dist/{send-x8u-elit.js → send-DWGmd1lt.js} +5 -5
- package/dist/{send-DYI3wQww.js → send-Dnl8Mt0b.js} +5 -5
- package/dist/{send-B3692clO.js → send-nbmNq53I.js} +4 -4
- package/dist/{send-CGfg9v0J.js → send-oPMRcy46.js} +6 -6
- package/dist/{server-context-BQP316jT.js → server-context-BeBZl8zi.js} +7 -7
- package/dist/{server-context-BphUkFsU.js → server-context-DagQm3En.js} +22 -13
- package/dist/{server-context-B-cxcvtx.js → server-context-DecHp93O.js} +7 -7
- package/dist/{server-node-events-OgwlQNLw.js → server-node-events-Bo8YlLSF.js} +11 -11
- package/dist/{server-node-events-D5Xh_Y3M.js → server-node-events-uT9otrnW.js} +9 -9
- package/dist/{session-status-tool-BNOPtPyp.js → session-status-tool-CORFonZM.js} +6 -6
- package/dist/{session-status-tool-fkINR0b7.js → session-status-tool-DOqbETnH.js} +4 -4
- package/dist/{session-status-tool-Bsup3FG3.js → session-status-tool-DWSIlGFt.js} +7 -7
- package/dist/{session-utils-BhtdagqA.js → session-utils-Csw9JX2F.js} +4 -4
- package/dist/{sessions-Xhs8V4aT.js → sessions-BdTwFSod.js} +5 -5
- package/dist/{sessions-Cnxo_ndD.js → sessions-Bxcso1A4.js} +4 -4
- package/dist/{sessions-helpers-B5BjpGie.js → sessions-helpers-BpXiixPk.js} +3 -3
- package/dist/{sessions-helpers-BscA64r4.js → sessions-helpers-CmL5of8k.js} +3 -3
- package/dist/{sessions-helpers-C08Phzso.js → sessions-helpers-DcPYyi87.js} +3 -3
- package/dist/{sessions-history-tool-D3gAndpg.js → sessions-history-tool-BQOJ7xuQ.js} +5 -5
- package/dist/{sessions-history-tool-Br3I5NQV.js → sessions-history-tool-ClVtna5z.js} +4 -4
- package/dist/{sessions-history-tool-BS2CEMeV.js → sessions-history-tool-wBp39NZW.js} +5 -5
- package/dist/{sessions-list-tool-D9haQlmB.js → sessions-list-tool-C0O6mqWz.js} +5 -5
- package/dist/{sessions-list-tool-BqcU9vby.js → sessions-list-tool-CH113G82.js} +5 -5
- package/dist/{sessions-list-tool-D0ZSfep3.js → sessions-list-tool-DWfvM5MD.js} +4 -4
- package/dist/{sessions-F6cK8l_1.js → sessions-lzLAfYqN.js} +2 -2
- package/dist/{sessions-send-tool-BOQTRsUE.js → sessions-send-tool-BIN3x_Tj.js} +4 -4
- package/dist/{sessions-send-tool-Bfg4pkkA.js → sessions-send-tool-BIoLJtEy.js} +6 -6
- package/dist/{sessions-send-tool-endz3GxW.js → sessions-send-tool-dV7l6L-a.js} +6 -6
- package/dist/{sessions-spawn-tool-CzR5BUIZ.js → sessions-spawn-tool-BtjzxdZj.js} +1 -1
- package/dist/{sessions-spawn-tool-DaJfWSEQ.js → sessions-spawn-tool-C5XN2MAW.js} +1 -1
- package/dist/{sessions-spawn-tool-OkqKciwd.js → sessions-spawn-tool-DXkgQ1c1.js} +1 -1
- package/dist/{sessions-DQF8fZS5.js → sessions-wZjDzkQG.js} +5 -5
- package/dist/{shared-B1dSlQWp.js → shared-B6M3Crny.js} +2 -2
- package/dist/{shared-CTyE2G7t.js → shared-D-22sIu6.js} +2 -2
- package/dist/{skills-cli-DV341ngV.js → skills-cli-Bz3cwPj_.js} +2 -2
- package/dist/{skills-cli-Mxzv9u2e.js → skills-cli-CmaLyEtb.js} +2 -2
- package/dist/{status-BTlLe0ON.js → status-B4sO93X3.js} +13 -13
- package/dist/{status-DJTNPoQJ.js → status-CHylpoRy.js} +3 -3
- package/dist/{status-BJ4KXOo4.js → status-CjmAMIhE.js} +3 -3
- package/dist/{status-_f9Uj4h_.js → status-DowOkHsW.js} +14 -14
- package/dist/{status.update-C0dSEZaW.js → status.update-BvmD1bXY.js} +1 -1
- package/dist/{status.update-BLkpPZhg.js → status.update-D8oMtrQX.js} +1 -1
- package/dist/stock-entry-create-tool-DfNIrQzF.js +65 -0
- package/dist/stock-entry-create-tool-DkDA256U.js +65 -0
- package/dist/stock-entry-create-tool-JrqollnX.js +65 -0
- package/dist/stock-query-tool-3bjENU9A.js +40 -0
- package/dist/stock-query-tool-B2OY0tLg.js +40 -0
- package/dist/stock-query-tool-Bsr6eYmx.js +40 -0
- package/dist/{subagent-registry-Dctvgiur.js → subagent-registry-Ii11UQhV.js} +437 -47
- package/dist/{subagents-tool-MpxHOawd.js → subagents-tool-DTZpiDFG.js} +6 -6
- package/dist/{subagents-tool-ByM5O-ce.js → subagents-tool-DdprLwOY.js} +6 -6
- package/dist/{subagents-tool-BCrHvFRR.js → subagents-tool-QLFj9isA.js} +5 -5
- package/dist/{system-cli-COUy2PIL.js → system-cli-B6ybt64_.js} +1 -1
- package/dist/{system-cli-cLZOHCpV.js → system-cli-CMB9gLS1.js} +1 -1
- package/dist/{systemd-hints-BX82rgwJ.js → systemd-hints-BzOt_XFu.js} +1 -1
- package/dist/{systemd-hints-BmHO3vGm.js → systemd-hints-DmsFHA7q.js} +1 -1
- package/dist/{tables-BoNY2PMq.js → tables-CvGD4xT4.js} +1 -1
- package/dist/{tables-CnpzK-sx.js → tables-s_KxXF6r.js} +1 -1
- package/dist/{targets-vjobqKDT.js → targets-DbWZn0md.js} +1 -1
- package/dist/{targets-CJj3TAfL.js → targets-j9B_CT6R.js} +2 -2
- package/dist/{targets-CeBejFtg.js → targets-mUIc5_ub.js} +1 -1
- package/dist/task-create-tool-B-wyPaLW.js +57 -0
- package/dist/task-create-tool-CfhgqDpn.js +57 -0
- package/dist/task-create-tool-R0RYIlSC.js +57 -0
- package/dist/task-update-tool-B_ujDPoz.js +60 -0
- package/dist/task-update-tool-CyCYpo5t.js +60 -0
- package/dist/task-update-tool-DI5TYHQT.js +60 -0
- package/dist/ticket-comment-tool-BgSUbC6T.js +37 -0
- package/dist/ticket-comment-tool-BtjOiFwD.js +37 -0
- package/dist/ticket-comment-tool-DRqPzvJk.js +37 -0
- package/dist/ticket-create-tool-CPO6AKPb.js +47 -0
- package/dist/ticket-create-tool-DWQBJHsn.js +47 -0
- package/dist/ticket-create-tool-lWSiDlYL.js +47 -0
- package/dist/ticket-update-tool-BeD2z9ZY.js +58 -0
- package/dist/ticket-update-tool-CjpJcT7m.js +58 -0
- package/dist/ticket-update-tool-eCjmYW_F.js +58 -0
- package/dist/tickets-query-tool-6MsgLSkO.js +48 -0
- package/dist/tickets-query-tool-C3YCslkG.js +48 -0
- package/dist/tickets-query-tool-D0y1ebEc.js +48 -0
- package/dist/{tools-cli-Drw57lNT.js → tools-cli-BcqfTXH3.js} +3 -3
- package/dist/{tools-cli-Da3xpL2N.js → tools-cli-CsSY7v2U.js} +3 -3
- package/dist/trash-CAuria7l.js +30 -0
- package/dist/trash-MreuHnUR.js +30 -0
- package/dist/{tts-DOuWQCl0.js → tts-BID2aWnP.js} +1 -1
- package/dist/{tts-C8sci73b.js → tts-C3AwA748.js} +1 -1
- package/dist/{tts-DT16K-Mg.js → tts-DCwuFqIs.js} +1 -1
- package/dist/{tts-tool-D1xTgy6g.js → tts-tool-93YXtjYQ.js} +3 -3
- package/dist/{tts-tool-0BxHJ75w.js → tts-tool-Dp3bbxji.js} +3 -3
- package/dist/{tts-tool-D9A3NRZE.js → tts-tool-mOELbBEX.js} +2 -2
- package/dist/{tui-CICAogKo.js → tui-BblnJk5A.js} +5 -5
- package/dist/{tui-CW99vGjf.js → tui-Dqvb7RGr.js} +5 -5
- package/dist/{tui-cli-Bz_Y0kQF.js → tui-cli-DTuLv6YU.js} +1 -1
- package/dist/{tui-cli-Bde9FKc6.js → tui-cli-iijuUo1d.js} +1 -1
- package/dist/{update-cli-D6WNU0LC.js → update-cli-Bxtp7C-D.js} +8 -8
- package/dist/{update-cli-LVqEOX8z.js → update-cli-kEGnxFk2.js} +8 -8
- package/dist/{web-yADrkaRA.js → web-B95TAk7m.js} +12 -12
- package/dist/web-BAY_a6tU.js +2 -0
- package/dist/{web-search-B7JFlIV1.js → web-search-BR1c-hlF.js} +3 -3
- package/dist/{web-search-CcsH3zdM.js → web-search-CgNIDJss.js} +4 -4
- package/dist/{web-search-CotaJGI9.js → web-search-DKL6hJzo.js} +4 -4
- package/dist/{webhooks-cli-DEXYEmNX.js → webhooks-cli-Do-F-mnF.js} +3 -3
- package/dist/{webhooks-cli-BJgyjOoC.js → webhooks-cli-DqngLhaB.js} +3 -3
- package/dist/{workspace-dirs-0d7swJWd.js → workspace-dirs-CG9EsWKG.js} +3 -3
- package/package.json +1 -1
- package/dist/config-guard-B_1VhFji.js +0 -2
- package/dist/daemon-install-helpers-CHeRULJH.js +0 -2
- package/dist/daemon-install-helpers-CMbh4Lp7.js +0 -2
- package/dist/doctor-completion-FuFJd6IQ.js +0 -2
- package/dist/doctor-completion-KAdCjzsy.js +0 -2
- package/dist/trash-DPd6fFGH.js +0 -21
- package/dist/trash-DYakNGQh.js +0 -21
- package/dist/web-OUk9Is6v.js +0 -2
|
@@ -5342,7 +5342,7 @@ var init_shell_env = __esmMin((() => {
|
|
|
5342
5342
|
//#region src/version.ts
|
|
5343
5343
|
var VERSION;
|
|
5344
5344
|
var init_version$1 = __esmMin((() => {
|
|
5345
|
-
VERSION = "2026.
|
|
5345
|
+
VERSION = "2026.7.2-dev";
|
|
5346
5346
|
}));
|
|
5347
5347
|
//#endregion
|
|
5348
5348
|
//#region src/config/agent-dirs.ts
|
|
@@ -25910,29 +25910,52 @@ var init__groups_generated = __esmMin((() => {
|
|
|
25910
25910
|
"group:minion": [
|
|
25911
25911
|
"agents_list",
|
|
25912
25912
|
"architect_pipeline",
|
|
25913
|
+
"booking_cancel",
|
|
25914
|
+
"booking_create",
|
|
25915
|
+
"booking_reschedule",
|
|
25916
|
+
"bookings_query",
|
|
25917
|
+
"brain_remember",
|
|
25918
|
+
"brain_search",
|
|
25919
|
+
"brains_list",
|
|
25913
25920
|
"browser",
|
|
25914
25921
|
"canvas",
|
|
25922
|
+
"contact_tag",
|
|
25923
|
+
"contact_update",
|
|
25915
25924
|
"crm_insight",
|
|
25916
25925
|
"crm_query",
|
|
25917
25926
|
"crm_search",
|
|
25918
25927
|
"cron",
|
|
25928
|
+
"finance_query",
|
|
25919
25929
|
"gateway",
|
|
25920
25930
|
"gws_auth_revoke",
|
|
25921
25931
|
"gws_auth_start",
|
|
25922
25932
|
"gws_auth_status",
|
|
25923
25933
|
"gws_exec",
|
|
25934
|
+
"hub_pages",
|
|
25924
25935
|
"image",
|
|
25925
25936
|
"knowledge_graph",
|
|
25926
25937
|
"message",
|
|
25927
25938
|
"nodes",
|
|
25939
|
+
"notify_user",
|
|
25940
|
+
"order_update_status",
|
|
25941
|
+
"orders_query",
|
|
25942
|
+
"projects_query",
|
|
25928
25943
|
"session_status",
|
|
25929
25944
|
"sessions_history",
|
|
25930
25945
|
"sessions_list",
|
|
25931
25946
|
"sessions_send",
|
|
25932
25947
|
"sessions_spawn",
|
|
25933
25948
|
"skill_view",
|
|
25949
|
+
"stock_entry_create",
|
|
25950
|
+
"stock_query",
|
|
25934
25951
|
"subagents",
|
|
25935
25952
|
"summarize",
|
|
25953
|
+
"task_create",
|
|
25954
|
+
"task_update",
|
|
25955
|
+
"ticket_comment",
|
|
25956
|
+
"ticket_create",
|
|
25957
|
+
"ticket_update",
|
|
25958
|
+
"tickets_query",
|
|
25936
25959
|
"tts",
|
|
25937
25960
|
"update_behaviour",
|
|
25938
25961
|
"venture_studio",
|
|
@@ -32777,16 +32800,26 @@ async function movePathToTrash(targetPath) {
|
|
|
32777
32800
|
await runExec("trash", [targetPath], { timeoutMs: 1e4 });
|
|
32778
32801
|
return targetPath;
|
|
32779
32802
|
} catch {
|
|
32780
|
-
|
|
32781
|
-
|
|
32782
|
-
|
|
32783
|
-
|
|
32784
|
-
|
|
32785
|
-
|
|
32786
|
-
|
|
32803
|
+
try {
|
|
32804
|
+
const trashDir = path.join(os.homedir(), ".Trash");
|
|
32805
|
+
fs.mkdirSync(trashDir, { recursive: true });
|
|
32806
|
+
const base = path.basename(targetPath);
|
|
32807
|
+
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
32808
|
+
if (fs.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
|
|
32809
|
+
fs.renameSync(targetPath, dest);
|
|
32810
|
+
return dest;
|
|
32811
|
+
} catch {
|
|
32812
|
+
logWarn(`trash: falling back to fs.rm for "${targetPath}" (trash and rename both failed)`);
|
|
32813
|
+
await fs.promises.rm(targetPath, {
|
|
32814
|
+
recursive: true,
|
|
32815
|
+
force: true
|
|
32816
|
+
});
|
|
32817
|
+
return targetPath;
|
|
32818
|
+
}
|
|
32787
32819
|
}
|
|
32788
32820
|
}
|
|
32789
32821
|
var init_trash = __esmMin((() => {
|
|
32822
|
+
init_logger$2();
|
|
32790
32823
|
init_exec();
|
|
32791
32824
|
}));
|
|
32792
32825
|
//#endregion
|
|
@@ -80604,6 +80637,1138 @@ var init_hub_rest_registry = __esmMin((() => {
|
|
|
80604
80637
|
rest = null;
|
|
80605
80638
|
}));
|
|
80606
80639
|
//#endregion
|
|
80640
|
+
//#region src/agents/tools/hub/hub-common.ts
|
|
80641
|
+
/**
|
|
80642
|
+
* Shared plumbing for the hub module tool pack (finance/bookings/tickets/
|
|
80643
|
+
* orders/projects/pages read tools + booking/ticket/order/task/contact/notify
|
|
80644
|
+
* write tools). Mirrors crm_insight/crm_query's gate + fetch shape — do not
|
|
80645
|
+
* invent a new one. Gated on (a) a resolved hub REST link and (b) a personal
|
|
80646
|
+
* agent id: the hub derives the owning user (and org membership) from
|
|
80647
|
+
* `personal-<uuid>`, so a non-personal agent can't use these.
|
|
80648
|
+
*/
|
|
80649
|
+
function hubToolsAvailable(agentId) {
|
|
80650
|
+
return !!agentId && agentId.startsWith("personal-") && !!getHubRest();
|
|
80651
|
+
}
|
|
80652
|
+
async function parseResponse(res) {
|
|
80653
|
+
const body = await res.json().catch(() => void 0);
|
|
80654
|
+
if (!res.ok) return { error: (body && typeof body === "object" ? body.error : void 0) ?? `request failed: ${res.status}` };
|
|
80655
|
+
return body ?? {};
|
|
80656
|
+
}
|
|
80657
|
+
/** GET a `/api/gateway/<path>` endpoint with the trusted agentId + optional orgId. */
|
|
80658
|
+
async function hubGet(path, agentId, query = {}) {
|
|
80659
|
+
const rest = getHubRest();
|
|
80660
|
+
if (!rest) return { error: "hub is not connected." };
|
|
80661
|
+
const qs = new URLSearchParams({ agentId });
|
|
80662
|
+
for (const [key, value] of Object.entries(query)) if (value !== void 0) qs.set(key, value);
|
|
80663
|
+
try {
|
|
80664
|
+
return await parseResponse(await fetch(`${rest.hubUrl.replace(/\/$/, "")}/api/gateway/${path}?${qs}`, {
|
|
80665
|
+
method: "GET",
|
|
80666
|
+
headers: { Authorization: `Bearer ${rest.serverToken}` }
|
|
80667
|
+
}));
|
|
80668
|
+
} catch (err) {
|
|
80669
|
+
return { error: err instanceof Error ? err.message : String(err) };
|
|
80670
|
+
}
|
|
80671
|
+
}
|
|
80672
|
+
/** POST to a `/api/gateway/<path>` endpoint with the trusted agentId + optional orgId. */
|
|
80673
|
+
async function hubPost(path, agentId, body, orgId) {
|
|
80674
|
+
const rest = getHubRest();
|
|
80675
|
+
if (!rest) return { error: "hub is not connected." };
|
|
80676
|
+
const qs = new URLSearchParams({ agentId });
|
|
80677
|
+
if (orgId) qs.set("orgId", orgId);
|
|
80678
|
+
try {
|
|
80679
|
+
return await parseResponse(await fetch(`${rest.hubUrl.replace(/\/$/, "")}/api/gateway/${path}?${qs}`, {
|
|
80680
|
+
method: "POST",
|
|
80681
|
+
headers: {
|
|
80682
|
+
Authorization: `Bearer ${rest.serverToken}`,
|
|
80683
|
+
"content-type": "application/json"
|
|
80684
|
+
},
|
|
80685
|
+
body: JSON.stringify(body)
|
|
80686
|
+
}));
|
|
80687
|
+
} catch (err) {
|
|
80688
|
+
return { error: err instanceof Error ? err.message : String(err) };
|
|
80689
|
+
}
|
|
80690
|
+
}
|
|
80691
|
+
var CONFIRM_FIELD, ORG_ID_FIELD;
|
|
80692
|
+
var init_hub_common = __esmMin((() => {
|
|
80693
|
+
init_hub_rest_registry();
|
|
80694
|
+
CONFIRM_FIELD = Type.Boolean({ description: "Required. First present the exact action (entity, fields, effect) to the user and ask for confirmation. Only call with confirm=true after the user explicitly agrees. Calls with confirm=false return a preview, not a mutation." });
|
|
80695
|
+
ORG_ID_FIELD = Type.Optional(Type.String({ description: "Organization id to scope to, ONLY when the page-context envelope gave you an active_org_id and the user has more than one org. Omit otherwise — the hub defaults to the user's primary org. The hub rejects any org the user isn't a member of." }));
|
|
80696
|
+
}));
|
|
80697
|
+
//#endregion
|
|
80698
|
+
//#region src/agents/tools/hub/booking-cancel-tool.ts
|
|
80699
|
+
var booking_cancel_tool_exports = /* @__PURE__ */ __exportAll({ createBookingCancelTool: () => createBookingCancelTool });
|
|
80700
|
+
/**
|
|
80701
|
+
* Cancel an existing booking. WRITE — confirm contract: confirm=false
|
|
80702
|
+
* returns a preview, confirm=true only after the user explicitly agrees.
|
|
80703
|
+
*/
|
|
80704
|
+
function createBookingCancelTool(options) {
|
|
80705
|
+
const agentId = options.agentId;
|
|
80706
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
80707
|
+
return wrapToolWithTracking({
|
|
80708
|
+
label: "Booking Cancel",
|
|
80709
|
+
name: "booking_cancel",
|
|
80710
|
+
description: "Cancel an existing booking. First present the exact action (which booking) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees.",
|
|
80711
|
+
parameters: BookingCancelSchema,
|
|
80712
|
+
execute: async (_toolCallId, args) => {
|
|
80713
|
+
const params = args;
|
|
80714
|
+
const orgId = readStringParam(params, "orgId");
|
|
80715
|
+
return jsonResult(await hubPost("actions/booking-cancel", agentId, {
|
|
80716
|
+
bookingId: readStringParam(params, "bookingId", { required: true }),
|
|
80717
|
+
confirm: params.confirm === true
|
|
80718
|
+
}, orgId));
|
|
80719
|
+
}
|
|
80720
|
+
}, "builtin:booking_cancel");
|
|
80721
|
+
}
|
|
80722
|
+
var BookingCancelSchema;
|
|
80723
|
+
var init_booking_cancel_tool = __esmMin((() => {
|
|
80724
|
+
init_tool_tracking();
|
|
80725
|
+
init_common();
|
|
80726
|
+
init_hub_common();
|
|
80727
|
+
BookingCancelSchema = Type.Object({
|
|
80728
|
+
bookingId: Type.String({ description: "The booking to cancel." }),
|
|
80729
|
+
confirm: CONFIRM_FIELD,
|
|
80730
|
+
orgId: ORG_ID_FIELD
|
|
80731
|
+
});
|
|
80732
|
+
}));
|
|
80733
|
+
//#endregion
|
|
80734
|
+
//#region src/agents/tools/hub/booking-create-tool.ts
|
|
80735
|
+
var booking_create_tool_exports = /* @__PURE__ */ __exportAll({ createBookingCreateTool: () => createBookingCreateTool });
|
|
80736
|
+
/**
|
|
80737
|
+
* Create a scheduling booking. WRITE — confirm contract: call with
|
|
80738
|
+
* confirm=false first to get a preview of what would be created; only call
|
|
80739
|
+
* with confirm=true after the user has explicitly agreed to the exact
|
|
80740
|
+
* booking (attendee, time, service).
|
|
80741
|
+
*/
|
|
80742
|
+
function createBookingCreateTool(options) {
|
|
80743
|
+
const agentId = options.agentId;
|
|
80744
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
80745
|
+
return wrapToolWithTracking({
|
|
80746
|
+
label: "Booking Create",
|
|
80747
|
+
name: "booking_create",
|
|
80748
|
+
description: "Create a new appointment/booking. First present the exact action (attendee, service, start time) to the user and ask for confirmation. Call with confirm=false to get a validated preview (no write); only call with confirm=true after the user explicitly agrees. On success, present the result with a deep link like [booking](/scheduling/bookings?contact={contactId}).",
|
|
80749
|
+
parameters: BookingCreateSchema,
|
|
80750
|
+
execute: async (_toolCallId, args) => {
|
|
80751
|
+
const params = args;
|
|
80752
|
+
const orgId = readStringParam(params, "orgId");
|
|
80753
|
+
return jsonResult(await hubPost("actions/booking-create", agentId, {
|
|
80754
|
+
eventTypeId: readStringParam(params, "eventTypeId", { required: true }),
|
|
80755
|
+
start: readStringParam(params, "start", { required: true }),
|
|
80756
|
+
crmContactId: readStringParam(params, "crmContactId"),
|
|
80757
|
+
attendeeName: readStringParam(params, "attendeeName"),
|
|
80758
|
+
attendeeEmail: readStringParam(params, "attendeeEmail"),
|
|
80759
|
+
attendeePhone: readStringParam(params, "attendeePhone"),
|
|
80760
|
+
resourceId: readStringParam(params, "resourceId"),
|
|
80761
|
+
notes: readStringParam(params, "notes"),
|
|
80762
|
+
confirm: params.confirm === true
|
|
80763
|
+
}, orgId));
|
|
80764
|
+
}
|
|
80765
|
+
}, "builtin:booking_create");
|
|
80766
|
+
}
|
|
80767
|
+
var BookingCreateSchema;
|
|
80768
|
+
var init_booking_create_tool = __esmMin((() => {
|
|
80769
|
+
init_tool_tracking();
|
|
80770
|
+
init_common();
|
|
80771
|
+
init_hub_common();
|
|
80772
|
+
BookingCreateSchema = Type.Object({
|
|
80773
|
+
eventTypeId: Type.String({ description: "Which scheduling event type/service to book (required)." }),
|
|
80774
|
+
start: Type.String({ description: "ISO 8601 start time, e.g. 2026-07-10T15:00:00-05:00." }),
|
|
80775
|
+
crmContactId: Type.Optional(Type.String({ description: "CRM contact id, if the attendee is a known contact." })),
|
|
80776
|
+
attendeeName: Type.Optional(Type.String({ description: "Attendee name, required if crmContactId is not known." })),
|
|
80777
|
+
attendeeEmail: Type.Optional(Type.String({ description: "Attendee email address." })),
|
|
80778
|
+
attendeePhone: Type.Optional(Type.String({ description: "Attendee phone number." })),
|
|
80779
|
+
resourceId: Type.Optional(Type.String({ description: "Specific resource/staff id to book, if not left to auto-assign." })),
|
|
80780
|
+
notes: Type.Optional(Type.String({ description: "Free-text booking notes." })),
|
|
80781
|
+
confirm: CONFIRM_FIELD,
|
|
80782
|
+
orgId: ORG_ID_FIELD
|
|
80783
|
+
});
|
|
80784
|
+
}));
|
|
80785
|
+
//#endregion
|
|
80786
|
+
//#region src/agents/tools/hub/booking-reschedule-tool.ts
|
|
80787
|
+
var booking_reschedule_tool_exports = /* @__PURE__ */ __exportAll({ createBookingRescheduleTool: () => createBookingRescheduleTool });
|
|
80788
|
+
/**
|
|
80789
|
+
* Reschedule an existing booking. The hub implements this as cancel-old +
|
|
80790
|
+
* create-new (no atomic "move" service call exists), so this tool must send
|
|
80791
|
+
* the FULL new-slot payload — same shape as booking_create — plus the
|
|
80792
|
+
* bookingId being cancelled. WRITE — confirm contract: confirm=false returns
|
|
80793
|
+
* a preview (cancels + new start), confirm=true only after the user
|
|
80794
|
+
* explicitly agrees.
|
|
80795
|
+
*/
|
|
80796
|
+
function createBookingRescheduleTool(options) {
|
|
80797
|
+
const agentId = options.agentId;
|
|
80798
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
80799
|
+
return wrapToolWithTracking({
|
|
80800
|
+
label: "Booking Reschedule",
|
|
80801
|
+
name: "booking_reschedule",
|
|
80802
|
+
description: "Move an existing booking to a new time. Under the hood the hub cancels the old booking and creates a new one, so this needs the full new-slot details (event type, start time, attendee), not just a new time. First present the exact change (which booking, old time → new time) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Present the result with a deep link like [booking](/scheduling/bookings?contact={contactId}).",
|
|
80803
|
+
parameters: BookingRescheduleSchema,
|
|
80804
|
+
execute: async (_toolCallId, args) => {
|
|
80805
|
+
const params = args;
|
|
80806
|
+
const orgId = readStringParam(params, "orgId");
|
|
80807
|
+
return jsonResult(await hubPost("actions/booking-reschedule", agentId, {
|
|
80808
|
+
bookingId: readStringParam(params, "bookingId", { required: true }),
|
|
80809
|
+
eventTypeId: readStringParam(params, "eventTypeId", { required: true }),
|
|
80810
|
+
start: readStringParam(params, "start", { required: true }),
|
|
80811
|
+
crmContactId: readStringParam(params, "crmContactId"),
|
|
80812
|
+
attendeeName: readStringParam(params, "attendeeName"),
|
|
80813
|
+
attendeeEmail: readStringParam(params, "attendeeEmail"),
|
|
80814
|
+
attendeePhone: readStringParam(params, "attendeePhone"),
|
|
80815
|
+
resourceId: readStringParam(params, "resourceId"),
|
|
80816
|
+
notes: readStringParam(params, "notes"),
|
|
80817
|
+
confirm: params.confirm === true
|
|
80818
|
+
}, orgId));
|
|
80819
|
+
}
|
|
80820
|
+
}, "builtin:booking_reschedule");
|
|
80821
|
+
}
|
|
80822
|
+
var BookingRescheduleSchema;
|
|
80823
|
+
var init_booking_reschedule_tool = __esmMin((() => {
|
|
80824
|
+
init_tool_tracking();
|
|
80825
|
+
init_common();
|
|
80826
|
+
init_hub_common();
|
|
80827
|
+
BookingRescheduleSchema = Type.Object({
|
|
80828
|
+
bookingId: Type.String({ description: "The booking to reschedule (will be cancelled)." }),
|
|
80829
|
+
eventTypeId: Type.String({ description: "Event type/service for the new slot (required)." }),
|
|
80830
|
+
start: Type.String({ description: "New ISO 8601 start time, e.g. 2026-07-10T15:00:00-05:00." }),
|
|
80831
|
+
crmContactId: Type.Optional(Type.String({ description: "CRM contact id, if the attendee is a known contact." })),
|
|
80832
|
+
attendeeName: Type.Optional(Type.String({ description: "Attendee name, required if crmContactId is not known." })),
|
|
80833
|
+
attendeeEmail: Type.Optional(Type.String({ description: "Attendee email address." })),
|
|
80834
|
+
attendeePhone: Type.Optional(Type.String({ description: "Attendee phone number." })),
|
|
80835
|
+
resourceId: Type.Optional(Type.String({ description: "Specific resource/staff id to book, if not left to auto-assign." })),
|
|
80836
|
+
notes: Type.Optional(Type.String({ description: "Free-text booking notes for the new slot." })),
|
|
80837
|
+
confirm: CONFIRM_FIELD,
|
|
80838
|
+
orgId: ORG_ID_FIELD
|
|
80839
|
+
});
|
|
80840
|
+
}));
|
|
80841
|
+
//#endregion
|
|
80842
|
+
//#region src/agents/tools/hub/bookings-query-tool.ts
|
|
80843
|
+
var bookings_query_tool_exports = /* @__PURE__ */ __exportAll({ createBookingsQueryTool: () => createBookingsQueryTool });
|
|
80844
|
+
/**
|
|
80845
|
+
* Scheduling module read: upcoming/past bookings, optionally filtered by
|
|
80846
|
+
* contact or date range. Calls the hub's /api/gateway/query/bookings with
|
|
80847
|
+
* the session's personal agent id (org + membership resolved server-side).
|
|
80848
|
+
*/
|
|
80849
|
+
function createBookingsQueryTool(options) {
|
|
80850
|
+
const agentId = options.agentId;
|
|
80851
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
80852
|
+
return wrapToolWithTracking({
|
|
80853
|
+
label: "Bookings Query",
|
|
80854
|
+
name: "bookings_query",
|
|
80855
|
+
description: "List appointments/bookings — upcoming, past, or a date range, optionally filtered to one contact. Use for 'what's on the schedule today', 'when is X's next appointment'. To create/change/cancel a booking use booking_create/booking_reschedule/booking_cancel. Present results with a deep link like [bookings](/scheduling/bookings) or, for one contact, [bookings](/scheduling/bookings?contact={contactId}).",
|
|
80856
|
+
parameters: BookingsQuerySchema,
|
|
80857
|
+
execute: async (_toolCallId, args) => {
|
|
80858
|
+
const params = args;
|
|
80859
|
+
return jsonResult(await hubGet("query/bookings", agentId, {
|
|
80860
|
+
status: readStringParam(params, "status"),
|
|
80861
|
+
contact: readStringParam(params, "contactId"),
|
|
80862
|
+
from: readStringParam(params, "dateFrom"),
|
|
80863
|
+
to: readStringParam(params, "dateTo"),
|
|
80864
|
+
orgId: readStringParam(params, "orgId")
|
|
80865
|
+
}));
|
|
80866
|
+
}
|
|
80867
|
+
}, "builtin:bookings_query");
|
|
80868
|
+
}
|
|
80869
|
+
var BookingsQuerySchema;
|
|
80870
|
+
var init_bookings_query_tool = __esmMin((() => {
|
|
80871
|
+
init_tool_tracking();
|
|
80872
|
+
init_common();
|
|
80873
|
+
init_hub_common();
|
|
80874
|
+
BookingsQuerySchema = Type.Object({
|
|
80875
|
+
status: Type.Optional(Type.String({ description: "Comma-separated booking status filter, e.g. 'accepted,pending'. Valid values: accepted | pending | cancelled | rejected | completed | no_show. Omit for all statuses." })),
|
|
80876
|
+
contactId: Type.Optional(Type.String({ description: "Filter to one CRM contact's bookings." })),
|
|
80877
|
+
dateFrom: Type.Optional(Type.String({ description: "ISO date/time, inclusive lower bound on start time." })),
|
|
80878
|
+
dateTo: Type.Optional(Type.String({ description: "ISO date/time, inclusive upper bound on start time." })),
|
|
80879
|
+
orgId: ORG_ID_FIELD
|
|
80880
|
+
});
|
|
80881
|
+
}));
|
|
80882
|
+
//#endregion
|
|
80883
|
+
//#region src/agents/tools/hub/brain-remember-tool.ts
|
|
80884
|
+
var brain_remember_tool_exports = /* @__PURE__ */ __exportAll({ createBrainRememberTool: () => createBrainRememberTool });
|
|
80885
|
+
/**
|
|
80886
|
+
* Knowledge-brain module write: add a `note` document to a brain.
|
|
80887
|
+
* WRITE — confirm contract: confirm=false returns a preview, confirm=true
|
|
80888
|
+
* only after the user explicitly agrees.
|
|
80889
|
+
*
|
|
80890
|
+
* The hub's /api/gateway/brain-remember endpoint is a plain, idempotent-per-
|
|
80891
|
+
* call write with no confirm/preview support of its own (by design — see the
|
|
80892
|
+
* hub handler's docstring), so the preview gate is enforced here rather than
|
|
80893
|
+
* forwarded like the other write tools.
|
|
80894
|
+
*/
|
|
80895
|
+
function createBrainRememberTool(options) {
|
|
80896
|
+
const agentId = options.agentId;
|
|
80897
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
80898
|
+
return wrapToolWithTracking({
|
|
80899
|
+
label: "Brain Remember",
|
|
80900
|
+
name: "brain_remember",
|
|
80901
|
+
description: "Save a note into a knowledge brain. First present the exact action (brain, title, content) and ask for confirmation. Call with confirm=false for a preview (no write); only call with confirm=true after the user explicitly agrees. If you don't already know the brainId, call brains_list first.",
|
|
80902
|
+
parameters: BrainRememberSchema,
|
|
80903
|
+
execute: async (_toolCallId, args) => {
|
|
80904
|
+
const params = args;
|
|
80905
|
+
const brainId = readStringParam(params, "brainId", { required: true });
|
|
80906
|
+
const title = readStringParam(params, "title", { required: true });
|
|
80907
|
+
const contentMd = readStringParam(params, "contentMd", { required: true });
|
|
80908
|
+
const orgId = readStringParam(params, "orgId");
|
|
80909
|
+
if (params.confirm !== true) return jsonResult({
|
|
80910
|
+
preview: {
|
|
80911
|
+
brainId,
|
|
80912
|
+
title,
|
|
80913
|
+
contentMd
|
|
80914
|
+
},
|
|
80915
|
+
note: "Preview only — not written. Call again with confirm=true after the user agrees."
|
|
80916
|
+
});
|
|
80917
|
+
return jsonResult(await hubPost("brain-remember", agentId, {
|
|
80918
|
+
brainId,
|
|
80919
|
+
title,
|
|
80920
|
+
contentMd
|
|
80921
|
+
}, orgId));
|
|
80922
|
+
}
|
|
80923
|
+
}, "builtin:brain_remember");
|
|
80924
|
+
}
|
|
80925
|
+
var BrainRememberSchema;
|
|
80926
|
+
var init_brain_remember_tool = __esmMin((() => {
|
|
80927
|
+
init_tool_tracking();
|
|
80928
|
+
init_common();
|
|
80929
|
+
init_hub_common();
|
|
80930
|
+
BrainRememberSchema = Type.Object({
|
|
80931
|
+
brainId: Type.String({ description: "Brain to write to. If unknown, call brains_list first — do not guess." }),
|
|
80932
|
+
title: Type.String({ description: "Short title for the note document." }),
|
|
80933
|
+
contentMd: Type.String({ description: "Note body, markdown." }),
|
|
80934
|
+
confirm: CONFIRM_FIELD,
|
|
80935
|
+
orgId: ORG_ID_FIELD
|
|
80936
|
+
});
|
|
80937
|
+
}));
|
|
80938
|
+
//#endregion
|
|
80939
|
+
//#region src/agents/tools/hub/brain-search-tool.ts
|
|
80940
|
+
var brain_search_tool_exports = /* @__PURE__ */ __exportAll({ createBrainSearchTool: () => createBrainSearchTool });
|
|
80941
|
+
/**
|
|
80942
|
+
* Knowledge-brain module read: semantic search over one brain's chunks.
|
|
80943
|
+
* Calls the hub's /api/gateway/brain-search with the session's personal
|
|
80944
|
+
* agent id; per-brain access is enforced again on the hub (fail-closed).
|
|
80945
|
+
*/
|
|
80946
|
+
function createBrainSearchTool(options) {
|
|
80947
|
+
const agentId = options.agentId;
|
|
80948
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
80949
|
+
return wrapToolWithTracking({
|
|
80950
|
+
label: "Brain Search",
|
|
80951
|
+
name: "brain_search",
|
|
80952
|
+
description: "Semantic search over one knowledge brain's documents. Requires brainId — if you're not sure which brain to target, call brains_list first rather than guessing. Use for 'what does the X brain say about...' style questions.",
|
|
80953
|
+
parameters: BrainSearchSchema,
|
|
80954
|
+
execute: async (_toolCallId, args) => {
|
|
80955
|
+
const params = args;
|
|
80956
|
+
const orgId = readStringParam(params, "orgId");
|
|
80957
|
+
return jsonResult(await hubPost("brain-search", agentId, {
|
|
80958
|
+
brainId: readStringParam(params, "brainId", { required: true }),
|
|
80959
|
+
query: readStringParam(params, "query", { required: true }),
|
|
80960
|
+
limit: readNumberParam(params, "limit")
|
|
80961
|
+
}, orgId));
|
|
80962
|
+
}
|
|
80963
|
+
}, "builtin:brain_search");
|
|
80964
|
+
}
|
|
80965
|
+
var BrainSearchSchema;
|
|
80966
|
+
var init_brain_search_tool = __esmMin((() => {
|
|
80967
|
+
init_tool_tracking();
|
|
80968
|
+
init_common();
|
|
80969
|
+
init_hub_common();
|
|
80970
|
+
BrainSearchSchema = Type.Object({
|
|
80971
|
+
brainId: Type.String({ description: "Brain to search. If unknown, call brains_list first — do not guess." }),
|
|
80972
|
+
query: Type.String({ description: "Natural-language search query." }),
|
|
80973
|
+
limit: Type.Optional(Type.Number({ description: "Max hits to return. Hub default applies." })),
|
|
80974
|
+
orgId: ORG_ID_FIELD
|
|
80975
|
+
});
|
|
80976
|
+
}));
|
|
80977
|
+
//#endregion
|
|
80978
|
+
//#region src/agents/tools/hub/brains-list-tool.ts
|
|
80979
|
+
var brains_list_tool_exports = /* @__PURE__ */ __exportAll({ createBrainsListTool: () => createBrainsListTool });
|
|
80980
|
+
/**
|
|
80981
|
+
* Knowledge-brain module read: list the brains the calling agent's owner can
|
|
80982
|
+
* access. Calls the hub's /api/gateway/brains with the session's personal
|
|
80983
|
+
* agent id. Call this before brain_search/brain_remember whenever the target
|
|
80984
|
+
* brainId isn't already known.
|
|
80985
|
+
*/
|
|
80986
|
+
function createBrainsListTool(options) {
|
|
80987
|
+
const agentId = options.agentId;
|
|
80988
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
80989
|
+
return wrapToolWithTracking({
|
|
80990
|
+
label: "Brains List",
|
|
80991
|
+
name: "brains_list",
|
|
80992
|
+
description: "List the knowledge brains available to the current user (id, name, access). Call this first whenever you don't already know which brainId to target for brain_search or brain_remember — do not guess a brainId.",
|
|
80993
|
+
parameters: BrainsListSchema,
|
|
80994
|
+
execute: async (_toolCallId, args) => {
|
|
80995
|
+
return jsonResult(await hubGet("brains", agentId, { orgId: readStringParam(args, "orgId") }));
|
|
80996
|
+
}
|
|
80997
|
+
}, "builtin:brains_list");
|
|
80998
|
+
}
|
|
80999
|
+
var BrainsListSchema;
|
|
81000
|
+
var init_brains_list_tool = __esmMin((() => {
|
|
81001
|
+
init_tool_tracking();
|
|
81002
|
+
init_common();
|
|
81003
|
+
init_hub_common();
|
|
81004
|
+
BrainsListSchema = Type.Object({ orgId: ORG_ID_FIELD });
|
|
81005
|
+
}));
|
|
81006
|
+
//#endregion
|
|
81007
|
+
//#region src/agents/tools/hub/contact-tag-tool.ts
|
|
81008
|
+
var contact_tag_tool_exports = /* @__PURE__ */ __exportAll({ createContactTagTool: () => createContactTagTool });
|
|
81009
|
+
/**
|
|
81010
|
+
* Add or remove a CRM contact tag. WRITE — confirm contract: confirm=false
|
|
81011
|
+
* returns a preview, confirm=true only after the user explicitly agrees.
|
|
81012
|
+
*/
|
|
81013
|
+
function createContactTagTool(options) {
|
|
81014
|
+
const agentId = options.agentId;
|
|
81015
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81016
|
+
return wrapToolWithTracking({
|
|
81017
|
+
label: "Contact Tag",
|
|
81018
|
+
name: "contact_tag",
|
|
81019
|
+
description: "Add or remove a tag on a CRM contact by tag NAME (preferred; the hub resolves or creates it) or exact tagId. First present the exact action (contact, tag, add or remove) and ask for confirmation. Call with confirm=false for a validated preview (no write; preview.willCreateTag tells you if a new tag would be created); only call with confirm=true after the user explicitly agrees. Present the result with a deep link like [contact](/crm/{contactId}).",
|
|
81020
|
+
parameters: ContactTagSchema,
|
|
81021
|
+
execute: async (_toolCallId, args) => {
|
|
81022
|
+
const params = args;
|
|
81023
|
+
const orgId = readStringParam(params, "orgId");
|
|
81024
|
+
const tag = readStringParam(params, "tag");
|
|
81025
|
+
const tagId = readStringParam(params, "tagId");
|
|
81026
|
+
if (!tag && !tagId) return jsonResult({ error: "tag (name) or tagId is required" });
|
|
81027
|
+
return jsonResult(await hubPost("actions/contact-tag", agentId, {
|
|
81028
|
+
contactId: readStringParam(params, "contactId", { required: true }),
|
|
81029
|
+
...tag ? { tag } : {},
|
|
81030
|
+
...tagId ? { tagId } : {},
|
|
81031
|
+
op: readStringParam(params, "op") ?? "add",
|
|
81032
|
+
confirm: params.confirm === true
|
|
81033
|
+
}, orgId));
|
|
81034
|
+
}
|
|
81035
|
+
}, "builtin:contact_tag");
|
|
81036
|
+
}
|
|
81037
|
+
var ContactTagSchema;
|
|
81038
|
+
var init_contact_tag_tool = __esmMin((() => {
|
|
81039
|
+
init_tool_tracking();
|
|
81040
|
+
init_common();
|
|
81041
|
+
init_hub_common();
|
|
81042
|
+
ContactTagSchema = Type.Object({
|
|
81043
|
+
contactId: Type.String({ description: "The CRM contact to tag." }),
|
|
81044
|
+
tag: Type.Optional(Type.String({ description: "Tag NAME (case-insensitive). The hub resolves it to an existing tag, or creates a manual tag on 'add'. Preferred over tagId." })),
|
|
81045
|
+
tagId: Type.Optional(Type.String({ description: "Exact tag id — only when you already have it (e.g. from a prior result)." })),
|
|
81046
|
+
op: Type.Optional(Type.Union([Type.Literal("add"), Type.Literal("remove")], { description: "'add' (default) or 'remove'." })),
|
|
81047
|
+
confirm: CONFIRM_FIELD,
|
|
81048
|
+
orgId: ORG_ID_FIELD
|
|
81049
|
+
});
|
|
81050
|
+
}));
|
|
81051
|
+
//#endregion
|
|
81052
|
+
//#region src/agents/tools/hub/contact-update-tool.ts
|
|
81053
|
+
var contact_update_tool_exports = /* @__PURE__ */ __exportAll({ createContactUpdateTool: () => createContactUpdateTool });
|
|
81054
|
+
/**
|
|
81055
|
+
* Update a CRM contact's name/phone/email/funnel stage/notes. WRITE —
|
|
81056
|
+
* confirm contract: confirm=false returns a preview, confirm=true only
|
|
81057
|
+
* after the user explicitly agrees. Only whitelisted fields are accepted;
|
|
81058
|
+
* use contact_tag for tags, not this tool.
|
|
81059
|
+
*/
|
|
81060
|
+
function createContactUpdateTool(options) {
|
|
81061
|
+
const agentId = options.agentId;
|
|
81062
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81063
|
+
return wrapToolWithTracking({
|
|
81064
|
+
label: "Contact Update",
|
|
81065
|
+
name: "contact_update",
|
|
81066
|
+
description: "Update a CRM contact's name, phone, email, funnel stage, or notes (at least one required). First present the exact change (which field, old → new value) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Pass expectedUpdatedAt from the last read to avoid clobbering a concurrent edit (returns {error:'stale',current} on conflict). Use contact_tag to add/remove tags instead. Present the result with a deep link like [contact](/crm/{contactId}).",
|
|
81067
|
+
parameters: ContactUpdateSchema,
|
|
81068
|
+
execute: async (_toolCallId, args) => {
|
|
81069
|
+
const params = args;
|
|
81070
|
+
const orgId = readStringParam(params, "orgId");
|
|
81071
|
+
return jsonResult(await hubPost("actions/contact-update", agentId, {
|
|
81072
|
+
contactId: readStringParam(params, "contactId", { required: true }),
|
|
81073
|
+
name: readStringParam(params, "name"),
|
|
81074
|
+
phone: readStringParam(params, "phone"),
|
|
81075
|
+
email: readStringParam(params, "email"),
|
|
81076
|
+
funnelStage: readStringParam(params, "funnelStage"),
|
|
81077
|
+
notes: readStringParam(params, "notes"),
|
|
81078
|
+
expectedUpdatedAt: readStringParam(params, "expectedUpdatedAt"),
|
|
81079
|
+
confirm: params.confirm === true
|
|
81080
|
+
}, orgId));
|
|
81081
|
+
}
|
|
81082
|
+
}, "builtin:contact_update");
|
|
81083
|
+
}
|
|
81084
|
+
var ContactUpdateSchema;
|
|
81085
|
+
var init_contact_update_tool = __esmMin((() => {
|
|
81086
|
+
init_tool_tracking();
|
|
81087
|
+
init_common();
|
|
81088
|
+
init_hub_common();
|
|
81089
|
+
ContactUpdateSchema = Type.Object({
|
|
81090
|
+
contactId: Type.String({ description: "The CRM contact to update." }),
|
|
81091
|
+
name: Type.Optional(Type.String({ description: "New display name." })),
|
|
81092
|
+
phone: Type.Optional(Type.String({ description: "New phone number." })),
|
|
81093
|
+
email: Type.Optional(Type.String({ description: "New email address." })),
|
|
81094
|
+
funnelStage: Type.Optional(Type.String({ description: "New CRM funnel/lifecycle stage." })),
|
|
81095
|
+
notes: Type.Optional(Type.String({ description: "New/appended free-text notes." })),
|
|
81096
|
+
expectedUpdatedAt: Type.Optional(Type.String({ description: "The contact's updatedAt you last read. Used for optimistic concurrency — the hub rejects the write (409) if the contact changed since." })),
|
|
81097
|
+
confirm: CONFIRM_FIELD,
|
|
81098
|
+
orgId: ORG_ID_FIELD
|
|
81099
|
+
});
|
|
81100
|
+
}));
|
|
81101
|
+
//#endregion
|
|
81102
|
+
//#region src/agents/tools/hub/finance-query-tool.ts
|
|
81103
|
+
var finance_query_tool_exports = /* @__PURE__ */ __exportAll({ createFinanceQueryTool: () => createFinanceQueryTool });
|
|
81104
|
+
/**
|
|
81105
|
+
* Finance module summary (invoices/payments) for a date range, optionally
|
|
81106
|
+
* grouped by product or contact. Calls the hub's Bearer-authed
|
|
81107
|
+
* /api/gateway/query/finance with the session's personal agent id; the hub
|
|
81108
|
+
* derives the owning user, scopes to their org (membership-checked), and
|
|
81109
|
+
* respects the same masking/owner rules the human finance dashboard uses.
|
|
81110
|
+
*/
|
|
81111
|
+
function createFinanceQueryTool(options) {
|
|
81112
|
+
const agentId = options.agentId;
|
|
81113
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81114
|
+
return wrapToolWithTracking({
|
|
81115
|
+
label: "Finance Query",
|
|
81116
|
+
name: "finance_query",
|
|
81117
|
+
description: "Summarize invoices/payments for a date range — totals, payment status, a revenue time series, and top products/clients (always included, no separate breakdown toggle). Use for 'how much revenue this month', 'unpaid invoices', 'top products by revenue in Q1'. For per-customer ranking questions use crm_insight/crm_query instead. Present figures with a deep link like [invoices](/finances/invoices) or, for one contact, [invoices](/finances/invoices?contact={contactId}).",
|
|
81118
|
+
parameters: FinanceQuerySchema,
|
|
81119
|
+
execute: async (_toolCallId, args) => {
|
|
81120
|
+
const params = args;
|
|
81121
|
+
return jsonResult(await hubGet("query/finance", agentId, {
|
|
81122
|
+
from: readStringParam(params, "dateFrom"),
|
|
81123
|
+
to: readStringParam(params, "dateTo"),
|
|
81124
|
+
bucket: readStringParam(params, "bucket"),
|
|
81125
|
+
orgId: readStringParam(params, "orgId")
|
|
81126
|
+
}));
|
|
81127
|
+
}
|
|
81128
|
+
}, "builtin:finance_query");
|
|
81129
|
+
}
|
|
81130
|
+
var FinanceQuerySchema;
|
|
81131
|
+
var init_finance_query_tool = __esmMin((() => {
|
|
81132
|
+
init_tool_tracking();
|
|
81133
|
+
init_common();
|
|
81134
|
+
init_hub_common();
|
|
81135
|
+
FinanceQuerySchema = Type.Object({
|
|
81136
|
+
dateFrom: Type.Optional(Type.String({ description: "ISO date, inclusive lower bound." })),
|
|
81137
|
+
dateTo: Type.Optional(Type.String({ description: "ISO date, inclusive upper bound." })),
|
|
81138
|
+
bucket: Type.Optional(Type.Union([
|
|
81139
|
+
Type.Literal("day"),
|
|
81140
|
+
Type.Literal("week"),
|
|
81141
|
+
Type.Literal("month")
|
|
81142
|
+
], { description: "Granularity of the revenue time series. Defaults to 'month'." })),
|
|
81143
|
+
orgId: ORG_ID_FIELD
|
|
81144
|
+
});
|
|
81145
|
+
}));
|
|
81146
|
+
//#endregion
|
|
81147
|
+
//#region src/agents/tools/hub/hub-pages-tool.ts
|
|
81148
|
+
var hub_pages_tool_exports = /* @__PURE__ */ __exportAll({ createHubPagesTool: () => createHubPagesTool });
|
|
81149
|
+
/**
|
|
81150
|
+
* Discovery tool: fetches the hub's route-hint map from
|
|
81151
|
+
* /api/gateway/pages (route, title, what the page shows, accepted query
|
|
81152
|
+
* params) so the agent can generate accurate, navigable deep links instead
|
|
81153
|
+
* of guessing paths.
|
|
81154
|
+
*/
|
|
81155
|
+
function createHubPagesTool(options) {
|
|
81156
|
+
const agentId = options.agentId;
|
|
81157
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81158
|
+
return wrapToolWithTracking({
|
|
81159
|
+
label: "Hub Pages",
|
|
81160
|
+
name: "hub_pages",
|
|
81161
|
+
description: "List the hub's pages — route, title, what it shows, and query params it accepts. Call this before linking to a page you're not sure about, then present the link as e.g. [invoices](/finances/invoices?contact={contactId}) using the exact path + param names returned here.",
|
|
81162
|
+
parameters: HubPagesSchema,
|
|
81163
|
+
execute: async () => {
|
|
81164
|
+
return jsonResult(await hubGet("pages", agentId));
|
|
81165
|
+
}
|
|
81166
|
+
}, "builtin:hub_pages");
|
|
81167
|
+
}
|
|
81168
|
+
var HubPagesSchema;
|
|
81169
|
+
var init_hub_pages_tool = __esmMin((() => {
|
|
81170
|
+
init_tool_tracking();
|
|
81171
|
+
init_common();
|
|
81172
|
+
init_hub_common();
|
|
81173
|
+
HubPagesSchema = Type.Object({});
|
|
81174
|
+
}));
|
|
81175
|
+
//#endregion
|
|
81176
|
+
//#region src/agents/tools/hub/notify-user-tool.ts
|
|
81177
|
+
var notify_user_tool_exports = /* @__PURE__ */ __exportAll({ createNotifyUserTool: () => createNotifyUserTool });
|
|
81178
|
+
/**
|
|
81179
|
+
* Send a free-text email to an org member. WRITE — confirm contract:
|
|
81180
|
+
* confirm=false returns a preview, confirm=true only after the user
|
|
81181
|
+
* explicitly agrees. The hub verifies the target is an org member (and has
|
|
81182
|
+
* an email on file) before sending; there is no template system and no
|
|
81183
|
+
* internal messaging channel — this always sends via email.
|
|
81184
|
+
*/
|
|
81185
|
+
function createNotifyUserTool(options) {
|
|
81186
|
+
const agentId = options.agentId;
|
|
81187
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81188
|
+
return wrapToolWithTracking({
|
|
81189
|
+
label: "Notify User",
|
|
81190
|
+
name: "notify_user",
|
|
81191
|
+
description: "Email a fellow org member (not an external customer) — there is no in-app/SMS channel, this always sends a capped free-text email. First present the exact message and recipient and ask for confirmation. Call with confirm=false for a validated preview (no send); only call with confirm=true after the user explicitly agrees.",
|
|
81192
|
+
parameters: NotifyUserSchema,
|
|
81193
|
+
execute: async (_toolCallId, args) => {
|
|
81194
|
+
const params = args;
|
|
81195
|
+
const orgId = readStringParam(params, "orgId");
|
|
81196
|
+
return jsonResult(await hubPost("actions/notify-user", agentId, {
|
|
81197
|
+
recipientProfileId: readStringParam(params, "recipientProfileId", { required: true }),
|
|
81198
|
+
subject: readStringParam(params, "subject"),
|
|
81199
|
+
body: readStringParam(params, "body", { required: true }),
|
|
81200
|
+
confirm: params.confirm === true
|
|
81201
|
+
}, orgId));
|
|
81202
|
+
}
|
|
81203
|
+
}, "builtin:notify_user");
|
|
81204
|
+
}
|
|
81205
|
+
var NotifyUserSchema;
|
|
81206
|
+
var init_notify_user_tool = __esmMin((() => {
|
|
81207
|
+
init_tool_tracking();
|
|
81208
|
+
init_common();
|
|
81209
|
+
init_hub_common();
|
|
81210
|
+
NotifyUserSchema = Type.Object({
|
|
81211
|
+
recipientProfileId: Type.String({ description: "The org member/profile id to notify (must be a member of the org)." }),
|
|
81212
|
+
subject: Type.Optional(Type.String({ description: "Email subject line." })),
|
|
81213
|
+
body: Type.String({ description: "Message body (1-2000 chars). Sent as a capped free-text email." }),
|
|
81214
|
+
confirm: CONFIRM_FIELD,
|
|
81215
|
+
orgId: ORG_ID_FIELD
|
|
81216
|
+
});
|
|
81217
|
+
}));
|
|
81218
|
+
//#endregion
|
|
81219
|
+
//#region src/agents/tools/hub/order-update-status-tool.ts
|
|
81220
|
+
var order_update_status_tool_exports = /* @__PURE__ */ __exportAll({ createOrderUpdateStatusTool: () => createOrderUpdateStatusTool });
|
|
81221
|
+
/**
|
|
81222
|
+
* Change a sales order's status. WRITE — confirm contract: confirm=false
|
|
81223
|
+
* returns a preview, confirm=true only after the user explicitly agrees.
|
|
81224
|
+
*/
|
|
81225
|
+
function createOrderUpdateStatusTool(options) {
|
|
81226
|
+
const agentId = options.agentId;
|
|
81227
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81228
|
+
return wrapToolWithTracking({
|
|
81229
|
+
label: "Order Update Status",
|
|
81230
|
+
name: "order_update_status",
|
|
81231
|
+
description: "Change a sales order's status to draft, confirmed, invoiced, or cancelled. First present the exact change (which order, old → new status) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Pass expectedUpdatedAt from the last read to avoid clobbering a concurrent edit. Present the result with a deep link like [order](/sales/{orderId}).",
|
|
81232
|
+
parameters: OrderUpdateStatusSchema,
|
|
81233
|
+
execute: async (_toolCallId, args) => {
|
|
81234
|
+
const params = args;
|
|
81235
|
+
const orgId = readStringParam(params, "orgId");
|
|
81236
|
+
return jsonResult(await hubPost("actions/order-update-status", agentId, {
|
|
81237
|
+
orderId: readStringParam(params, "orderId", { required: true }),
|
|
81238
|
+
status: readStringParam(params, "status", { required: true }),
|
|
81239
|
+
expectedUpdatedAt: readStringParam(params, "expectedUpdatedAt"),
|
|
81240
|
+
confirm: params.confirm === true
|
|
81241
|
+
}, orgId));
|
|
81242
|
+
}
|
|
81243
|
+
}, "builtin:order_update_status");
|
|
81244
|
+
}
|
|
81245
|
+
var OrderUpdateStatusSchema;
|
|
81246
|
+
var init_order_update_status_tool = __esmMin((() => {
|
|
81247
|
+
init_tool_tracking();
|
|
81248
|
+
init_common();
|
|
81249
|
+
init_hub_common();
|
|
81250
|
+
OrderUpdateStatusSchema = Type.Object({
|
|
81251
|
+
orderId: Type.String({ description: "The sales order to update." }),
|
|
81252
|
+
status: Type.Union([
|
|
81253
|
+
Type.Literal("draft"),
|
|
81254
|
+
Type.Literal("confirmed"),
|
|
81255
|
+
Type.Literal("invoiced"),
|
|
81256
|
+
Type.Literal("cancelled")
|
|
81257
|
+
], { description: "New order status." }),
|
|
81258
|
+
expectedUpdatedAt: Type.Optional(Type.String({ description: "The order's updatedAt you last read (from orders_query). Used for optimistic concurrency — the hub rejects the write (409) if the order changed since." })),
|
|
81259
|
+
confirm: CONFIRM_FIELD,
|
|
81260
|
+
orgId: ORG_ID_FIELD
|
|
81261
|
+
});
|
|
81262
|
+
}));
|
|
81263
|
+
//#endregion
|
|
81264
|
+
//#region src/agents/tools/hub/orders-query-tool.ts
|
|
81265
|
+
var orders_query_tool_exports = /* @__PURE__ */ __exportAll({ createOrdersQueryTool: () => createOrdersQueryTool });
|
|
81266
|
+
/**
|
|
81267
|
+
* Sales module read: orders by status/date range. Calls the hub's
|
|
81268
|
+
* /api/gateway/query/orders with the session's personal agent id.
|
|
81269
|
+
*/
|
|
81270
|
+
function createOrdersQueryTool(options) {
|
|
81271
|
+
const agentId = options.agentId;
|
|
81272
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81273
|
+
return wrapToolWithTracking({
|
|
81274
|
+
label: "Orders Query",
|
|
81275
|
+
name: "orders_query",
|
|
81276
|
+
description: "List sales orders, filterable by status or CRM contact (no date-range filter). Use for 'pending orders', 'open orders'. To change an order's status use order_update_status. Present results with a deep link like [order](/sales/{orderId}).",
|
|
81277
|
+
parameters: OrdersQuerySchema,
|
|
81278
|
+
execute: async (_toolCallId, args) => {
|
|
81279
|
+
const params = args;
|
|
81280
|
+
return jsonResult(await hubGet("query/orders", agentId, {
|
|
81281
|
+
status: readStringParam(params, "status"),
|
|
81282
|
+
contact: readStringParam(params, "contactId"),
|
|
81283
|
+
orgId: readStringParam(params, "orgId")
|
|
81284
|
+
}));
|
|
81285
|
+
}
|
|
81286
|
+
}, "builtin:orders_query");
|
|
81287
|
+
}
|
|
81288
|
+
var OrdersQuerySchema;
|
|
81289
|
+
var init_orders_query_tool = __esmMin((() => {
|
|
81290
|
+
init_tool_tracking();
|
|
81291
|
+
init_common();
|
|
81292
|
+
init_hub_common();
|
|
81293
|
+
OrdersQuerySchema = Type.Object({
|
|
81294
|
+
status: Type.Optional(Type.Union([
|
|
81295
|
+
Type.Literal("open"),
|
|
81296
|
+
Type.Literal("draft"),
|
|
81297
|
+
Type.Literal("confirmed"),
|
|
81298
|
+
Type.Literal("invoiced"),
|
|
81299
|
+
Type.Literal("cancelled")
|
|
81300
|
+
], { description: "'open' covers all non-terminal statuses (matches the human sales dashboard default)." })),
|
|
81301
|
+
contactId: Type.Optional(Type.String({ description: "Filter to one CRM contact's orders." })),
|
|
81302
|
+
orgId: ORG_ID_FIELD
|
|
81303
|
+
});
|
|
81304
|
+
}));
|
|
81305
|
+
//#endregion
|
|
81306
|
+
//#region src/agents/tools/hub/projects-query-tool.ts
|
|
81307
|
+
var projects_query_tool_exports = /* @__PURE__ */ __exportAll({ createProjectsQueryTool: () => createProjectsQueryTool });
|
|
81308
|
+
/**
|
|
81309
|
+
* Projects module read: projects + tasks by status/assignee. Calls the hub's
|
|
81310
|
+
* /api/gateway/query/projects with the session's personal agent id.
|
|
81311
|
+
*/
|
|
81312
|
+
function createProjectsQueryTool(options) {
|
|
81313
|
+
const agentId = options.agentId;
|
|
81314
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81315
|
+
return wrapToolWithTracking({
|
|
81316
|
+
label: "Projects Query",
|
|
81317
|
+
name: "projects_query",
|
|
81318
|
+
description: "List projects and their tasks, filterable by project, status, or assignee. Use for 'what's overdue', 'my open tasks', 'status of project X'. To create/update a task use task_create/task_update. Present results with a deep link like [project](/work).",
|
|
81319
|
+
parameters: ProjectsQuerySchema,
|
|
81320
|
+
execute: async (_toolCallId, args) => {
|
|
81321
|
+
const params = args;
|
|
81322
|
+
return jsonResult(await hubGet("query/projects", agentId, {
|
|
81323
|
+
projectId: readStringParam(params, "projectId"),
|
|
81324
|
+
status: readStringParam(params, "status"),
|
|
81325
|
+
assignee: readStringParam(params, "assignee"),
|
|
81326
|
+
orgId: readStringParam(params, "orgId")
|
|
81327
|
+
}));
|
|
81328
|
+
}
|
|
81329
|
+
}, "builtin:projects_query");
|
|
81330
|
+
}
|
|
81331
|
+
var ProjectsQuerySchema;
|
|
81332
|
+
var init_projects_query_tool = __esmMin((() => {
|
|
81333
|
+
init_tool_tracking();
|
|
81334
|
+
init_common();
|
|
81335
|
+
init_hub_common();
|
|
81336
|
+
ProjectsQuerySchema = Type.Object({
|
|
81337
|
+
projectId: Type.Optional(Type.String({ description: "Filter tasks to one project." })),
|
|
81338
|
+
status: Type.Optional(Type.String({ description: "Project status (open|active|on_hold|completed|cancelled) or task status (backlog|todo|in_progress|in_review|done|blocked|cancelled) filter — applied to whichever list it matches." })),
|
|
81339
|
+
assignee: Type.Optional(Type.String({ description: "Filter tasks by assignee party id." })),
|
|
81340
|
+
orgId: ORG_ID_FIELD
|
|
81341
|
+
});
|
|
81342
|
+
}));
|
|
81343
|
+
//#endregion
|
|
81344
|
+
//#region src/agents/tools/hub/stock-entry-create-tool.ts
|
|
81345
|
+
var stock_entry_create_tool_exports = /* @__PURE__ */ __exportAll({ createStockEntryCreateTool: () => createStockEntryCreateTool });
|
|
81346
|
+
function readLines(params) {
|
|
81347
|
+
return (Array.isArray(params.lines) ? params.lines : []).map((l) => ({
|
|
81348
|
+
itemId: typeof l.itemId === "string" ? l.itemId : "",
|
|
81349
|
+
qty: typeof l.qty === "number" ? l.qty : Number(l.qty),
|
|
81350
|
+
uom: typeof l.uom === "string" ? l.uom : null,
|
|
81351
|
+
rate: typeof l.rate === "number" ? l.rate : l.rate == null ? null : Number(l.rate),
|
|
81352
|
+
fromWarehouseId: typeof l.fromWarehouseId === "string" ? l.fromWarehouseId : null,
|
|
81353
|
+
toWarehouseId: typeof l.toWarehouseId === "string" ? l.toWarehouseId : null
|
|
81354
|
+
}));
|
|
81355
|
+
}
|
|
81356
|
+
/**
|
|
81357
|
+
* Create a DRAFT stock entry. WRITE — confirm contract: confirm=false returns
|
|
81358
|
+
* a preview, confirm=true only after the user explicitly agrees. This never
|
|
81359
|
+
* submits/posts the entry (that would move stock and write the ledger) —
|
|
81360
|
+
* submission is a deliberate separate step done from the hub's /stock UI.
|
|
81361
|
+
*/
|
|
81362
|
+
function createStockEntryCreateTool(options) {
|
|
81363
|
+
const agentId = options.agentId;
|
|
81364
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81365
|
+
return wrapToolWithTracking({
|
|
81366
|
+
label: "Stock Entry Create",
|
|
81367
|
+
name: "stock_entry_create",
|
|
81368
|
+
description: "Create a DRAFT stock entry (receipt, issue, transfer, or adjustment) with its lines. This only creates a draft — it does NOT submit/post the entry, so stock levels and the ledger are unaffected until a human submits it from the hub /stock UI. First present the exact action (type, lines, party) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Present the result with a deep link like [stock entry](/stock/entries/{entryId}).",
|
|
81369
|
+
parameters: StockEntryCreateSchema,
|
|
81370
|
+
execute: async (_toolCallId, args) => {
|
|
81371
|
+
const params = args;
|
|
81372
|
+
const orgId = readStringParam(params, "orgId");
|
|
81373
|
+
return jsonResult(await hubPost("actions/stock-entry-create", agentId, {
|
|
81374
|
+
type: readStringParam(params, "type", { required: true }),
|
|
81375
|
+
partyId: readStringParam(params, "partyId"),
|
|
81376
|
+
note: readStringParam(params, "note"),
|
|
81377
|
+
lines: readLines(params),
|
|
81378
|
+
confirm: params.confirm === true
|
|
81379
|
+
}, orgId));
|
|
81380
|
+
}
|
|
81381
|
+
}, "builtin:stock_entry_create");
|
|
81382
|
+
}
|
|
81383
|
+
var StockEntryLineSchema, StockEntryCreateSchema;
|
|
81384
|
+
var init_stock_entry_create_tool = __esmMin((() => {
|
|
81385
|
+
init_tool_tracking();
|
|
81386
|
+
init_common();
|
|
81387
|
+
init_hub_common();
|
|
81388
|
+
StockEntryLineSchema = Type.Object({
|
|
81389
|
+
itemId: Type.String({ description: "Stock item id." }),
|
|
81390
|
+
qty: Type.Number({ description: "Quantity for this line. Must be positive." }),
|
|
81391
|
+
uom: Type.Optional(Type.String({ description: "Unit of measure override." })),
|
|
81392
|
+
rate: Type.Optional(Type.Number({ description: "Per-unit valuation rate. Required for receipt lines and positive adjustments." })),
|
|
81393
|
+
fromWarehouseId: Type.Optional(Type.String({ description: "Source warehouse. Required for issue and transfer lines." })),
|
|
81394
|
+
toWarehouseId: Type.Optional(Type.String({ description: "Destination warehouse. Required for receipt and transfer lines." }))
|
|
81395
|
+
});
|
|
81396
|
+
StockEntryCreateSchema = Type.Object({
|
|
81397
|
+
type: Type.Union([
|
|
81398
|
+
Type.Literal("receipt"),
|
|
81399
|
+
Type.Literal("issue"),
|
|
81400
|
+
Type.Literal("transfer"),
|
|
81401
|
+
Type.Literal("adjustment")
|
|
81402
|
+
], { description: "Entry type." }),
|
|
81403
|
+
partyId: Type.Optional(Type.String({ description: "Supplier/customer party id this entry is for, if known." })),
|
|
81404
|
+
note: Type.Optional(Type.String({ description: "Free-text note." })),
|
|
81405
|
+
lines: Type.Array(StockEntryLineSchema, { description: "One or more entry lines." }),
|
|
81406
|
+
confirm: CONFIRM_FIELD,
|
|
81407
|
+
orgId: ORG_ID_FIELD
|
|
81408
|
+
});
|
|
81409
|
+
}));
|
|
81410
|
+
//#endregion
|
|
81411
|
+
//#region src/agents/tools/hub/stock-query-tool.ts
|
|
81412
|
+
var stock_query_tool_exports = /* @__PURE__ */ __exportAll({ createStockQueryTool: () => createStockQueryTool });
|
|
81413
|
+
/**
|
|
81414
|
+
* Stock module read: bin levels, ledger movements, or valuation totals. Calls
|
|
81415
|
+
* the hub's /api/gateway/query/stock with the session's personal agent id.
|
|
81416
|
+
*/
|
|
81417
|
+
function createStockQueryTool(options) {
|
|
81418
|
+
const agentId = options.agentId;
|
|
81419
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81420
|
+
return wrapToolWithTracking({
|
|
81421
|
+
label: "Stock Query",
|
|
81422
|
+
name: "stock_query",
|
|
81423
|
+
description: "Read stock levels, movement history (ledger), or valuation. Use mode='levels' for 'how much of X do we have', mode='movements' with itemId for an item's movement history, mode='valuation' for total stock value. To create a stock entry use stock_entry_create. Present results with a deep link like [stock](/stock).",
|
|
81424
|
+
parameters: StockQuerySchema,
|
|
81425
|
+
execute: async (_toolCallId, args) => {
|
|
81426
|
+
const params = args;
|
|
81427
|
+
return jsonResult(await hubGet("query/stock", agentId, {
|
|
81428
|
+
mode: readStringParam(params, "mode"),
|
|
81429
|
+
itemId: readStringParam(params, "itemId"),
|
|
81430
|
+
warehouseId: readStringParam(params, "warehouseId"),
|
|
81431
|
+
orgId: readStringParam(params, "orgId")
|
|
81432
|
+
}));
|
|
81433
|
+
}
|
|
81434
|
+
}, "builtin:stock_query");
|
|
81435
|
+
}
|
|
81436
|
+
var StockQuerySchema;
|
|
81437
|
+
var init_stock_query_tool = __esmMin((() => {
|
|
81438
|
+
init_tool_tracking();
|
|
81439
|
+
init_common();
|
|
81440
|
+
init_hub_common();
|
|
81441
|
+
StockQuerySchema = Type.Object({
|
|
81442
|
+
mode: Type.Optional(Type.Union([
|
|
81443
|
+
Type.Literal("levels"),
|
|
81444
|
+
Type.Literal("movements"),
|
|
81445
|
+
Type.Literal("valuation")
|
|
81446
|
+
], { description: "'levels' (default) — current bin quantities. 'movements' — ledger history for one item (itemId required). 'valuation' — bin levels plus the summed stock value." })),
|
|
81447
|
+
itemId: Type.Optional(Type.String({ description: "Filter to one item. Required when mode='movements'." })),
|
|
81448
|
+
warehouseId: Type.Optional(Type.String({ description: "Filter to one warehouse." })),
|
|
81449
|
+
orgId: ORG_ID_FIELD
|
|
81450
|
+
});
|
|
81451
|
+
}));
|
|
81452
|
+
//#endregion
|
|
81453
|
+
//#region src/agents/tools/hub/task-create-tool.ts
|
|
81454
|
+
var task_create_tool_exports = /* @__PURE__ */ __exportAll({ createTaskCreateTool: () => createTaskCreateTool });
|
|
81455
|
+
/**
|
|
81456
|
+
* Create a project task. WRITE — confirm contract: confirm=false returns a
|
|
81457
|
+
* preview, confirm=true only after the user explicitly agrees.
|
|
81458
|
+
*/
|
|
81459
|
+
function createTaskCreateTool(options) {
|
|
81460
|
+
const agentId = options.agentId;
|
|
81461
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81462
|
+
return wrapToolWithTracking({
|
|
81463
|
+
label: "Task Create",
|
|
81464
|
+
name: "task_create",
|
|
81465
|
+
description: "Create a new task under a project. First present the exact action (project, title, assignee, status) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Present the result with a deep link like [task](/work).",
|
|
81466
|
+
parameters: TaskCreateSchema,
|
|
81467
|
+
execute: async (_toolCallId, args) => {
|
|
81468
|
+
const params = args;
|
|
81469
|
+
const orgId = readStringParam(params, "orgId");
|
|
81470
|
+
return jsonResult(await hubPost("actions/task-create", agentId, {
|
|
81471
|
+
projectId: readStringParam(params, "projectId", { required: true }),
|
|
81472
|
+
title: readStringParam(params, "title", { required: true }),
|
|
81473
|
+
description: readStringParam(params, "description"),
|
|
81474
|
+
status: readStringParam(params, "status"),
|
|
81475
|
+
priority: readStringParam(params, "priority"),
|
|
81476
|
+
assigneePartyId: readStringParam(params, "assigneePartyId"),
|
|
81477
|
+
confirm: params.confirm === true
|
|
81478
|
+
}, orgId));
|
|
81479
|
+
}
|
|
81480
|
+
}, "builtin:task_create");
|
|
81481
|
+
}
|
|
81482
|
+
var TaskCreateSchema;
|
|
81483
|
+
var init_task_create_tool = __esmMin((() => {
|
|
81484
|
+
init_tool_tracking();
|
|
81485
|
+
init_common();
|
|
81486
|
+
init_hub_common();
|
|
81487
|
+
TaskCreateSchema = Type.Object({
|
|
81488
|
+
projectId: Type.String({ description: "The project this task belongs to." }),
|
|
81489
|
+
title: Type.String({ description: "Task title." }),
|
|
81490
|
+
description: Type.Optional(Type.String({ description: "Task description." })),
|
|
81491
|
+
status: Type.Optional(Type.Union([
|
|
81492
|
+
Type.Literal("backlog"),
|
|
81493
|
+
Type.Literal("todo"),
|
|
81494
|
+
Type.Literal("in_progress"),
|
|
81495
|
+
Type.Literal("in_review"),
|
|
81496
|
+
Type.Literal("done"),
|
|
81497
|
+
Type.Literal("blocked"),
|
|
81498
|
+
Type.Literal("cancelled")
|
|
81499
|
+
], { description: "Initial status. Defaults to 'backlog'." })),
|
|
81500
|
+
priority: Type.Optional(Type.Union([
|
|
81501
|
+
Type.Literal("low"),
|
|
81502
|
+
Type.Literal("medium"),
|
|
81503
|
+
Type.Literal("high"),
|
|
81504
|
+
Type.Literal("urgent")
|
|
81505
|
+
], { description: "Task priority." })),
|
|
81506
|
+
assigneePartyId: Type.Optional(Type.String({ description: "Assignee party id." })),
|
|
81507
|
+
confirm: CONFIRM_FIELD,
|
|
81508
|
+
orgId: ORG_ID_FIELD
|
|
81509
|
+
});
|
|
81510
|
+
}));
|
|
81511
|
+
//#endregion
|
|
81512
|
+
//#region src/agents/tools/hub/task-update-tool.ts
|
|
81513
|
+
var task_update_tool_exports = /* @__PURE__ */ __exportAll({ createTaskUpdateTool: () => createTaskUpdateTool });
|
|
81514
|
+
/**
|
|
81515
|
+
* Update a project task's status/assignee. WRITE — confirm contract:
|
|
81516
|
+
* confirm=false returns a preview, confirm=true only after the user
|
|
81517
|
+
* explicitly agrees.
|
|
81518
|
+
*/
|
|
81519
|
+
function createTaskUpdateTool(options) {
|
|
81520
|
+
const agentId = options.agentId;
|
|
81521
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81522
|
+
return wrapToolWithTracking({
|
|
81523
|
+
label: "Task Update",
|
|
81524
|
+
name: "task_update",
|
|
81525
|
+
description: "Change a task's title, description, status, priority, or assignee. First present the exact change (which task, field, old → new value) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Pass expectedUpdatedAt from the last read to avoid clobbering a concurrent edit. Present the result with a deep link like [task](/work).",
|
|
81526
|
+
parameters: TaskUpdateSchema,
|
|
81527
|
+
execute: async (_toolCallId, args) => {
|
|
81528
|
+
const params = args;
|
|
81529
|
+
const orgId = readStringParam(params, "orgId");
|
|
81530
|
+
return jsonResult(await hubPost("actions/task-update", agentId, {
|
|
81531
|
+
taskId: readStringParam(params, "taskId", { required: true }),
|
|
81532
|
+
title: readStringParam(params, "title"),
|
|
81533
|
+
description: readStringParam(params, "description"),
|
|
81534
|
+
status: readStringParam(params, "status"),
|
|
81535
|
+
priority: readStringParam(params, "priority"),
|
|
81536
|
+
assigneePartyId: readStringParam(params, "assigneePartyId"),
|
|
81537
|
+
expectedUpdatedAt: readStringParam(params, "expectedUpdatedAt"),
|
|
81538
|
+
confirm: params.confirm === true
|
|
81539
|
+
}, orgId));
|
|
81540
|
+
}
|
|
81541
|
+
}, "builtin:task_update");
|
|
81542
|
+
}
|
|
81543
|
+
var TaskUpdateSchema;
|
|
81544
|
+
var init_task_update_tool = __esmMin((() => {
|
|
81545
|
+
init_tool_tracking();
|
|
81546
|
+
init_common();
|
|
81547
|
+
init_hub_common();
|
|
81548
|
+
TaskUpdateSchema = Type.Object({
|
|
81549
|
+
taskId: Type.String({ description: "The task to update." }),
|
|
81550
|
+
title: Type.Optional(Type.String({ description: "New title." })),
|
|
81551
|
+
description: Type.Optional(Type.String({ description: "New description." })),
|
|
81552
|
+
status: Type.Optional(Type.Union([
|
|
81553
|
+
Type.Literal("backlog"),
|
|
81554
|
+
Type.Literal("todo"),
|
|
81555
|
+
Type.Literal("in_progress"),
|
|
81556
|
+
Type.Literal("in_review"),
|
|
81557
|
+
Type.Literal("done"),
|
|
81558
|
+
Type.Literal("blocked"),
|
|
81559
|
+
Type.Literal("cancelled")
|
|
81560
|
+
], { description: "New status." })),
|
|
81561
|
+
priority: Type.Optional(Type.Union([
|
|
81562
|
+
Type.Literal("low"),
|
|
81563
|
+
Type.Literal("medium"),
|
|
81564
|
+
Type.Literal("high"),
|
|
81565
|
+
Type.Literal("urgent")
|
|
81566
|
+
], { description: "New priority." })),
|
|
81567
|
+
assigneePartyId: Type.Optional(Type.String({ description: "New assignee party id." })),
|
|
81568
|
+
expectedUpdatedAt: Type.Optional(Type.String({ description: "The task's updatedAt you last read (from projects_query). Used for optimistic concurrency — the hub rejects the write (409) if the task changed since." })),
|
|
81569
|
+
confirm: CONFIRM_FIELD,
|
|
81570
|
+
orgId: ORG_ID_FIELD
|
|
81571
|
+
});
|
|
81572
|
+
}));
|
|
81573
|
+
//#endregion
|
|
81574
|
+
//#region src/agents/tools/hub/ticket-comment-tool.ts
|
|
81575
|
+
var ticket_comment_tool_exports = /* @__PURE__ */ __exportAll({ createTicketCommentTool: () => createTicketCommentTool });
|
|
81576
|
+
/**
|
|
81577
|
+
* Add a comment to a support ticket's activity log. WRITE — confirm
|
|
81578
|
+
* contract: confirm=false returns a preview, confirm=true only after the
|
|
81579
|
+
* user explicitly agrees.
|
|
81580
|
+
*/
|
|
81581
|
+
function createTicketCommentTool(options) {
|
|
81582
|
+
const agentId = options.agentId;
|
|
81583
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81584
|
+
return wrapToolWithTracking({
|
|
81585
|
+
label: "Ticket Comment",
|
|
81586
|
+
name: "ticket_comment",
|
|
81587
|
+
description: "Add a comment to a support ticket's activity log. First present the exact comment text and which ticket it goes on, and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Present the result with a deep link like [ticket](/support/{ticketId}).",
|
|
81588
|
+
parameters: TicketCommentSchema,
|
|
81589
|
+
execute: async (_toolCallId, args) => {
|
|
81590
|
+
const params = args;
|
|
81591
|
+
const orgId = readStringParam(params, "orgId");
|
|
81592
|
+
return jsonResult(await hubPost("actions/ticket-comment", agentId, {
|
|
81593
|
+
issueId: readStringParam(params, "issueId", { required: true }),
|
|
81594
|
+
body: readStringParam(params, "body", { required: true }),
|
|
81595
|
+
confirm: params.confirm === true
|
|
81596
|
+
}, orgId));
|
|
81597
|
+
}
|
|
81598
|
+
}, "builtin:ticket_comment");
|
|
81599
|
+
}
|
|
81600
|
+
var TicketCommentSchema;
|
|
81601
|
+
var init_ticket_comment_tool = __esmMin((() => {
|
|
81602
|
+
init_tool_tracking();
|
|
81603
|
+
init_common();
|
|
81604
|
+
init_hub_common();
|
|
81605
|
+
TicketCommentSchema = Type.Object({
|
|
81606
|
+
issueId: Type.String({ description: "The ticket to comment on." }),
|
|
81607
|
+
body: Type.String({ description: "Comment body to add to the ticket's activity log." }),
|
|
81608
|
+
confirm: CONFIRM_FIELD,
|
|
81609
|
+
orgId: ORG_ID_FIELD
|
|
81610
|
+
});
|
|
81611
|
+
}));
|
|
81612
|
+
//#endregion
|
|
81613
|
+
//#region src/agents/tools/hub/ticket-create-tool.ts
|
|
81614
|
+
var ticket_create_tool_exports = /* @__PURE__ */ __exportAll({ createTicketCreateTool: () => createTicketCreateTool });
|
|
81615
|
+
/**
|
|
81616
|
+
* Create a support ticket. WRITE — confirm contract: confirm=false returns
|
|
81617
|
+
* a preview, confirm=true only after the user explicitly agrees.
|
|
81618
|
+
*/
|
|
81619
|
+
function createTicketCreateTool(options) {
|
|
81620
|
+
const agentId = options.agentId;
|
|
81621
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81622
|
+
return wrapToolWithTracking({
|
|
81623
|
+
label: "Ticket Create",
|
|
81624
|
+
name: "ticket_create",
|
|
81625
|
+
description: "Open a new support ticket. First present the exact action (subject, description, contact, priority) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Present the result with a deep link like [ticket](/support/{ticketId}).",
|
|
81626
|
+
parameters: TicketCreateSchema,
|
|
81627
|
+
execute: async (_toolCallId, args) => {
|
|
81628
|
+
const params = args;
|
|
81629
|
+
const orgId = readStringParam(params, "orgId");
|
|
81630
|
+
return jsonResult(await hubPost("actions/ticket-create", agentId, {
|
|
81631
|
+
subject: readStringParam(params, "subject", { required: true }),
|
|
81632
|
+
description: readStringParam(params, "description"),
|
|
81633
|
+
crmContactId: readStringParam(params, "crmContactId"),
|
|
81634
|
+
partyId: readStringParam(params, "partyId"),
|
|
81635
|
+
priority: readStringParam(params, "priority"),
|
|
81636
|
+
confirm: params.confirm === true
|
|
81637
|
+
}, orgId));
|
|
81638
|
+
}
|
|
81639
|
+
}, "builtin:ticket_create");
|
|
81640
|
+
}
|
|
81641
|
+
var TicketCreateSchema;
|
|
81642
|
+
var init_ticket_create_tool = __esmMin((() => {
|
|
81643
|
+
init_tool_tracking();
|
|
81644
|
+
init_common();
|
|
81645
|
+
init_hub_common();
|
|
81646
|
+
TicketCreateSchema = Type.Object({
|
|
81647
|
+
subject: Type.String({ description: "Short ticket subject/title." }),
|
|
81648
|
+
description: Type.Optional(Type.String({ description: "Full issue description." })),
|
|
81649
|
+
crmContactId: Type.Optional(Type.String({ description: "CRM contact this ticket is for, if known." })),
|
|
81650
|
+
partyId: Type.Optional(Type.String({ description: "Party (org member/staff) this ticket is for, if known." })),
|
|
81651
|
+
priority: Type.Optional(Type.Union([
|
|
81652
|
+
Type.Literal("urgent"),
|
|
81653
|
+
Type.Literal("high"),
|
|
81654
|
+
Type.Literal("medium"),
|
|
81655
|
+
Type.Literal("low")
|
|
81656
|
+
], { description: "Priority. Defaults to 'medium'." })),
|
|
81657
|
+
confirm: CONFIRM_FIELD,
|
|
81658
|
+
orgId: ORG_ID_FIELD
|
|
81659
|
+
});
|
|
81660
|
+
}));
|
|
81661
|
+
//#endregion
|
|
81662
|
+
//#region src/agents/tools/hub/ticket-update-tool.ts
|
|
81663
|
+
var ticket_update_tool_exports = /* @__PURE__ */ __exportAll({ createTicketUpdateTool: () => createTicketUpdateTool });
|
|
81664
|
+
/**
|
|
81665
|
+
* Update a support ticket's status/assignee/priority. WRITE — confirm
|
|
81666
|
+
* contract: confirm=false returns a preview, confirm=true only after the
|
|
81667
|
+
* user explicitly agrees.
|
|
81668
|
+
*/
|
|
81669
|
+
function createTicketUpdateTool(options) {
|
|
81670
|
+
const agentId = options.agentId;
|
|
81671
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81672
|
+
return wrapToolWithTracking({
|
|
81673
|
+
label: "Ticket Update",
|
|
81674
|
+
name: "ticket_update",
|
|
81675
|
+
description: "Change a support ticket's subject, description, status, owner, or priority. First present the exact change (which ticket, field, old → new value) and ask for confirmation. Call with confirm=false for a validated preview (no write); only call with confirm=true after the user explicitly agrees. Pass expectedUpdatedAt from the last read to avoid clobbering a concurrent edit. Present the result with a deep link like [ticket](/support/{ticketId}).",
|
|
81676
|
+
parameters: TicketUpdateSchema,
|
|
81677
|
+
execute: async (_toolCallId, args) => {
|
|
81678
|
+
const params = args;
|
|
81679
|
+
const orgId = readStringParam(params, "orgId");
|
|
81680
|
+
return jsonResult(await hubPost("actions/ticket-update", agentId, {
|
|
81681
|
+
issueId: readStringParam(params, "issueId", { required: true }),
|
|
81682
|
+
subject: readStringParam(params, "subject"),
|
|
81683
|
+
description: readStringParam(params, "description"),
|
|
81684
|
+
status: readStringParam(params, "status"),
|
|
81685
|
+
ownerId: readStringParam(params, "ownerId"),
|
|
81686
|
+
priority: readStringParam(params, "priority"),
|
|
81687
|
+
expectedUpdatedAt: readStringParam(params, "expectedUpdatedAt"),
|
|
81688
|
+
confirm: params.confirm === true
|
|
81689
|
+
}, orgId));
|
|
81690
|
+
}
|
|
81691
|
+
}, "builtin:ticket_update");
|
|
81692
|
+
}
|
|
81693
|
+
var TicketUpdateSchema;
|
|
81694
|
+
var init_ticket_update_tool = __esmMin((() => {
|
|
81695
|
+
init_tool_tracking();
|
|
81696
|
+
init_common();
|
|
81697
|
+
init_hub_common();
|
|
81698
|
+
TicketUpdateSchema = Type.Object({
|
|
81699
|
+
issueId: Type.String({ description: "The ticket to update." }),
|
|
81700
|
+
subject: Type.Optional(Type.String({ description: "New subject/title." })),
|
|
81701
|
+
description: Type.Optional(Type.String({ description: "New description." })),
|
|
81702
|
+
status: Type.Optional(Type.Union([
|
|
81703
|
+
Type.Literal("open"),
|
|
81704
|
+
Type.Literal("replied"),
|
|
81705
|
+
Type.Literal("on_hold"),
|
|
81706
|
+
Type.Literal("resolved"),
|
|
81707
|
+
Type.Literal("closed")
|
|
81708
|
+
], { description: "New status." })),
|
|
81709
|
+
ownerId: Type.Optional(Type.String({ description: "New owner/assignee party id." })),
|
|
81710
|
+
priority: Type.Optional(Type.Union([
|
|
81711
|
+
Type.Literal("urgent"),
|
|
81712
|
+
Type.Literal("high"),
|
|
81713
|
+
Type.Literal("medium"),
|
|
81714
|
+
Type.Literal("low")
|
|
81715
|
+
], { description: "New priority." })),
|
|
81716
|
+
expectedUpdatedAt: Type.Optional(Type.String({ description: "The ticket's updatedAt you last read (from tickets_query). Used for optimistic concurrency — the hub rejects the write if the ticket changed since." })),
|
|
81717
|
+
confirm: CONFIRM_FIELD,
|
|
81718
|
+
orgId: ORG_ID_FIELD
|
|
81719
|
+
});
|
|
81720
|
+
}));
|
|
81721
|
+
//#endregion
|
|
81722
|
+
//#region src/agents/tools/hub/tickets-query-tool.ts
|
|
81723
|
+
var tickets_query_tool_exports = /* @__PURE__ */ __exportAll({ createTicketsQueryTool: () => createTicketsQueryTool });
|
|
81724
|
+
/**
|
|
81725
|
+
* Support module read: tickets by status/assignee/contact. Calls the hub's
|
|
81726
|
+
* /api/gateway/query/tickets with the session's personal agent id.
|
|
81727
|
+
*/
|
|
81728
|
+
function createTicketsQueryTool(options) {
|
|
81729
|
+
const agentId = options.agentId;
|
|
81730
|
+
if (!hubToolsAvailable(agentId)) return null;
|
|
81731
|
+
return wrapToolWithTracking({
|
|
81732
|
+
label: "Tickets Query",
|
|
81733
|
+
name: "tickets_query",
|
|
81734
|
+
description: "List support tickets, filterable by status, priority, or contact. 'Tickets assigned to me' is applied automatically server-side for owner-scoped roles, not via a parameter. Use for 'what's open right now', 'X's open tickets'. To create/update a ticket or add a comment use ticket_create/ticket_update/ticket_comment. Present results with a deep link like [ticket](/support/{ticketId}) or [tickets](/support?contact={contactId}).",
|
|
81735
|
+
parameters: TicketsQuerySchema,
|
|
81736
|
+
execute: async (_toolCallId, args) => {
|
|
81737
|
+
const params = args;
|
|
81738
|
+
return jsonResult(await hubGet("query/tickets", agentId, {
|
|
81739
|
+
status: readStringParam(params, "status"),
|
|
81740
|
+
priority: readStringParam(params, "priority"),
|
|
81741
|
+
contact: readStringParam(params, "contactId"),
|
|
81742
|
+
orgId: readStringParam(params, "orgId")
|
|
81743
|
+
}));
|
|
81744
|
+
}
|
|
81745
|
+
}, "builtin:tickets_query");
|
|
81746
|
+
}
|
|
81747
|
+
var TicketsQuerySchema;
|
|
81748
|
+
var init_tickets_query_tool = __esmMin((() => {
|
|
81749
|
+
init_tool_tracking();
|
|
81750
|
+
init_common();
|
|
81751
|
+
init_hub_common();
|
|
81752
|
+
TicketsQuerySchema = Type.Object({
|
|
81753
|
+
status: Type.Optional(Type.Union([
|
|
81754
|
+
Type.Literal("open"),
|
|
81755
|
+
Type.Literal("replied"),
|
|
81756
|
+
Type.Literal("on_hold"),
|
|
81757
|
+
Type.Literal("resolved"),
|
|
81758
|
+
Type.Literal("closed"),
|
|
81759
|
+
Type.Literal("open_all")
|
|
81760
|
+
], { description: "'open_all' covers open+replied+on_hold in one call. Defaults to 'open_all'." })),
|
|
81761
|
+
priority: Type.Optional(Type.Union([
|
|
81762
|
+
Type.Literal("low"),
|
|
81763
|
+
Type.Literal("medium"),
|
|
81764
|
+
Type.Literal("high"),
|
|
81765
|
+
Type.Literal("urgent")
|
|
81766
|
+
], { description: "Priority filter." })),
|
|
81767
|
+
contactId: Type.Optional(Type.String({ description: "Filter to one CRM contact's tickets." })),
|
|
81768
|
+
orgId: ORG_ID_FIELD
|
|
81769
|
+
});
|
|
81770
|
+
}));
|
|
81771
|
+
//#endregion
|
|
80607
81772
|
//#region src/agents/tools/knowledge/crm-insight-tool.ts
|
|
80608
81773
|
var crm_insight_tool_exports = /* @__PURE__ */ __exportAll({ createCrmInsightTool: () => createCrmInsightTool });
|
|
80609
81774
|
/**
|
|
@@ -93389,6 +94554,349 @@ var init__registry_generated = __esmMin((() => {
|
|
|
93389
94554
|
},
|
|
93390
94555
|
load: () => Promise.resolve().then(() => (init_gateway_tool(), gateway_tool_exports))
|
|
93391
94556
|
},
|
|
94557
|
+
booking_cancel: {
|
|
94558
|
+
meta: {
|
|
94559
|
+
id: "booking_cancel",
|
|
94560
|
+
factory: "createBookingCancelTool",
|
|
94561
|
+
groups: ["group:minion"],
|
|
94562
|
+
display: {
|
|
94563
|
+
emoji: "❌",
|
|
94564
|
+
title: "Booking Cancel",
|
|
94565
|
+
detailKeys: ["bookingId", "confirm"]
|
|
94566
|
+
},
|
|
94567
|
+
mcpExport: true
|
|
94568
|
+
},
|
|
94569
|
+
load: () => Promise.resolve().then(() => (init_booking_cancel_tool(), booking_cancel_tool_exports))
|
|
94570
|
+
},
|
|
94571
|
+
booking_create: {
|
|
94572
|
+
meta: {
|
|
94573
|
+
id: "booking_create",
|
|
94574
|
+
factory: "createBookingCreateTool",
|
|
94575
|
+
groups: ["group:minion"],
|
|
94576
|
+
display: {
|
|
94577
|
+
emoji: "📅",
|
|
94578
|
+
title: "Booking Create",
|
|
94579
|
+
detailKeys: ["start", "confirm"]
|
|
94580
|
+
},
|
|
94581
|
+
mcpExport: true
|
|
94582
|
+
},
|
|
94583
|
+
load: () => Promise.resolve().then(() => (init_booking_create_tool(), booking_create_tool_exports))
|
|
94584
|
+
},
|
|
94585
|
+
booking_reschedule: {
|
|
94586
|
+
meta: {
|
|
94587
|
+
id: "booking_reschedule",
|
|
94588
|
+
factory: "createBookingRescheduleTool",
|
|
94589
|
+
groups: ["group:minion"],
|
|
94590
|
+
display: {
|
|
94591
|
+
emoji: "🔁",
|
|
94592
|
+
title: "Booking Reschedule",
|
|
94593
|
+
detailKeys: ["bookingId", "confirm"]
|
|
94594
|
+
},
|
|
94595
|
+
mcpExport: true
|
|
94596
|
+
},
|
|
94597
|
+
load: () => Promise.resolve().then(() => (init_booking_reschedule_tool(), booking_reschedule_tool_exports))
|
|
94598
|
+
},
|
|
94599
|
+
bookings_query: {
|
|
94600
|
+
meta: {
|
|
94601
|
+
id: "bookings_query",
|
|
94602
|
+
factory: "createBookingsQueryTool",
|
|
94603
|
+
groups: ["group:minion"],
|
|
94604
|
+
display: {
|
|
94605
|
+
emoji: "📅",
|
|
94606
|
+
title: "Bookings Query",
|
|
94607
|
+
detailKeys: ["status", "contactId"]
|
|
94608
|
+
},
|
|
94609
|
+
mcpExport: true
|
|
94610
|
+
},
|
|
94611
|
+
load: () => Promise.resolve().then(() => (init_bookings_query_tool(), bookings_query_tool_exports))
|
|
94612
|
+
},
|
|
94613
|
+
brain_remember: {
|
|
94614
|
+
meta: {
|
|
94615
|
+
id: "brain_remember",
|
|
94616
|
+
factory: "createBrainRememberTool",
|
|
94617
|
+
groups: ["group:minion"],
|
|
94618
|
+
display: {
|
|
94619
|
+
emoji: "🧠",
|
|
94620
|
+
title: "Brain Remember",
|
|
94621
|
+
detailKeys: [
|
|
94622
|
+
"brainId",
|
|
94623
|
+
"title",
|
|
94624
|
+
"confirm"
|
|
94625
|
+
]
|
|
94626
|
+
},
|
|
94627
|
+
mcpExport: true
|
|
94628
|
+
},
|
|
94629
|
+
load: () => Promise.resolve().then(() => (init_brain_remember_tool(), brain_remember_tool_exports))
|
|
94630
|
+
},
|
|
94631
|
+
brain_search: {
|
|
94632
|
+
meta: {
|
|
94633
|
+
id: "brain_search",
|
|
94634
|
+
factory: "createBrainSearchTool",
|
|
94635
|
+
groups: ["group:minion"],
|
|
94636
|
+
display: {
|
|
94637
|
+
emoji: "🔎",
|
|
94638
|
+
title: "Brain Search",
|
|
94639
|
+
detailKeys: ["brainId", "query"]
|
|
94640
|
+
},
|
|
94641
|
+
mcpExport: true
|
|
94642
|
+
},
|
|
94643
|
+
load: () => Promise.resolve().then(() => (init_brain_search_tool(), brain_search_tool_exports))
|
|
94644
|
+
},
|
|
94645
|
+
brains_list: {
|
|
94646
|
+
meta: {
|
|
94647
|
+
id: "brains_list",
|
|
94648
|
+
factory: "createBrainsListTool",
|
|
94649
|
+
groups: ["group:minion"],
|
|
94650
|
+
display: {
|
|
94651
|
+
emoji: "🧠",
|
|
94652
|
+
title: "Brains List",
|
|
94653
|
+
detailKeys: ["orgId"]
|
|
94654
|
+
},
|
|
94655
|
+
mcpExport: true
|
|
94656
|
+
},
|
|
94657
|
+
load: () => Promise.resolve().then(() => (init_brains_list_tool(), brains_list_tool_exports))
|
|
94658
|
+
},
|
|
94659
|
+
contact_tag: {
|
|
94660
|
+
meta: {
|
|
94661
|
+
id: "contact_tag",
|
|
94662
|
+
factory: "createContactTagTool",
|
|
94663
|
+
groups: ["group:minion"],
|
|
94664
|
+
display: {
|
|
94665
|
+
emoji: "🏷️",
|
|
94666
|
+
title: "Contact Tag",
|
|
94667
|
+
detailKeys: [
|
|
94668
|
+
"contactId",
|
|
94669
|
+
"tag",
|
|
94670
|
+
"tagId",
|
|
94671
|
+
"confirm"
|
|
94672
|
+
]
|
|
94673
|
+
},
|
|
94674
|
+
mcpExport: true
|
|
94675
|
+
},
|
|
94676
|
+
load: () => Promise.resolve().then(() => (init_contact_tag_tool(), contact_tag_tool_exports))
|
|
94677
|
+
},
|
|
94678
|
+
contact_update: {
|
|
94679
|
+
meta: {
|
|
94680
|
+
id: "contact_update",
|
|
94681
|
+
factory: "createContactUpdateTool",
|
|
94682
|
+
groups: ["group:minion"],
|
|
94683
|
+
display: {
|
|
94684
|
+
emoji: "📇",
|
|
94685
|
+
title: "Contact Update",
|
|
94686
|
+
detailKeys: ["contactId", "confirm"]
|
|
94687
|
+
},
|
|
94688
|
+
mcpExport: true
|
|
94689
|
+
},
|
|
94690
|
+
load: () => Promise.resolve().then(() => (init_contact_update_tool(), contact_update_tool_exports))
|
|
94691
|
+
},
|
|
94692
|
+
finance_query: {
|
|
94693
|
+
meta: {
|
|
94694
|
+
id: "finance_query",
|
|
94695
|
+
factory: "createFinanceQueryTool",
|
|
94696
|
+
groups: ["group:minion"],
|
|
94697
|
+
display: {
|
|
94698
|
+
emoji: "💰",
|
|
94699
|
+
title: "Finance Query",
|
|
94700
|
+
detailKeys: ["dateFrom", "dateTo"]
|
|
94701
|
+
},
|
|
94702
|
+
mcpExport: true
|
|
94703
|
+
},
|
|
94704
|
+
load: () => Promise.resolve().then(() => (init_finance_query_tool(), finance_query_tool_exports))
|
|
94705
|
+
},
|
|
94706
|
+
hub_pages: {
|
|
94707
|
+
meta: {
|
|
94708
|
+
id: "hub_pages",
|
|
94709
|
+
factory: "createHubPagesTool",
|
|
94710
|
+
groups: ["group:minion"],
|
|
94711
|
+
display: {
|
|
94712
|
+
emoji: "🧭",
|
|
94713
|
+
title: "Hub Pages",
|
|
94714
|
+
detailKeys: []
|
|
94715
|
+
},
|
|
94716
|
+
mcpExport: true
|
|
94717
|
+
},
|
|
94718
|
+
load: () => Promise.resolve().then(() => (init_hub_pages_tool(), hub_pages_tool_exports))
|
|
94719
|
+
},
|
|
94720
|
+
notify_user: {
|
|
94721
|
+
meta: {
|
|
94722
|
+
id: "notify_user",
|
|
94723
|
+
factory: "createNotifyUserTool",
|
|
94724
|
+
groups: ["group:minion"],
|
|
94725
|
+
display: {
|
|
94726
|
+
emoji: "🔔",
|
|
94727
|
+
title: "Notify User",
|
|
94728
|
+
detailKeys: ["recipientProfileId", "confirm"]
|
|
94729
|
+
},
|
|
94730
|
+
mcpExport: true
|
|
94731
|
+
},
|
|
94732
|
+
load: () => Promise.resolve().then(() => (init_notify_user_tool(), notify_user_tool_exports))
|
|
94733
|
+
},
|
|
94734
|
+
order_update_status: {
|
|
94735
|
+
meta: {
|
|
94736
|
+
id: "order_update_status",
|
|
94737
|
+
factory: "createOrderUpdateStatusTool",
|
|
94738
|
+
groups: ["group:minion"],
|
|
94739
|
+
display: {
|
|
94740
|
+
emoji: "🛒",
|
|
94741
|
+
title: "Order Update Status",
|
|
94742
|
+
detailKeys: [
|
|
94743
|
+
"orderId",
|
|
94744
|
+
"status",
|
|
94745
|
+
"confirm"
|
|
94746
|
+
]
|
|
94747
|
+
},
|
|
94748
|
+
mcpExport: true
|
|
94749
|
+
},
|
|
94750
|
+
load: () => Promise.resolve().then(() => (init_order_update_status_tool(), order_update_status_tool_exports))
|
|
94751
|
+
},
|
|
94752
|
+
orders_query: {
|
|
94753
|
+
meta: {
|
|
94754
|
+
id: "orders_query",
|
|
94755
|
+
factory: "createOrdersQueryTool",
|
|
94756
|
+
groups: ["group:minion"],
|
|
94757
|
+
display: {
|
|
94758
|
+
emoji: "🛒",
|
|
94759
|
+
title: "Orders Query",
|
|
94760
|
+
detailKeys: ["status"]
|
|
94761
|
+
},
|
|
94762
|
+
mcpExport: true
|
|
94763
|
+
},
|
|
94764
|
+
load: () => Promise.resolve().then(() => (init_orders_query_tool(), orders_query_tool_exports))
|
|
94765
|
+
},
|
|
94766
|
+
projects_query: {
|
|
94767
|
+
meta: {
|
|
94768
|
+
id: "projects_query",
|
|
94769
|
+
factory: "createProjectsQueryTool",
|
|
94770
|
+
groups: ["group:minion"],
|
|
94771
|
+
display: {
|
|
94772
|
+
emoji: "🗂️",
|
|
94773
|
+
title: "Projects Query",
|
|
94774
|
+
detailKeys: ["status", "assignee"]
|
|
94775
|
+
},
|
|
94776
|
+
mcpExport: true
|
|
94777
|
+
},
|
|
94778
|
+
load: () => Promise.resolve().then(() => (init_projects_query_tool(), projects_query_tool_exports))
|
|
94779
|
+
},
|
|
94780
|
+
stock_entry_create: {
|
|
94781
|
+
meta: {
|
|
94782
|
+
id: "stock_entry_create",
|
|
94783
|
+
factory: "createStockEntryCreateTool",
|
|
94784
|
+
groups: ["group:minion"],
|
|
94785
|
+
display: {
|
|
94786
|
+
emoji: "📦",
|
|
94787
|
+
title: "Stock Entry Create",
|
|
94788
|
+
detailKeys: ["type", "confirm"]
|
|
94789
|
+
},
|
|
94790
|
+
mcpExport: true
|
|
94791
|
+
},
|
|
94792
|
+
load: () => Promise.resolve().then(() => (init_stock_entry_create_tool(), stock_entry_create_tool_exports))
|
|
94793
|
+
},
|
|
94794
|
+
stock_query: {
|
|
94795
|
+
meta: {
|
|
94796
|
+
id: "stock_query",
|
|
94797
|
+
factory: "createStockQueryTool",
|
|
94798
|
+
groups: ["group:minion"],
|
|
94799
|
+
display: {
|
|
94800
|
+
emoji: "📦",
|
|
94801
|
+
title: "Stock Query",
|
|
94802
|
+
detailKeys: ["mode", "itemId"]
|
|
94803
|
+
},
|
|
94804
|
+
mcpExport: true
|
|
94805
|
+
},
|
|
94806
|
+
load: () => Promise.resolve().then(() => (init_stock_query_tool(), stock_query_tool_exports))
|
|
94807
|
+
},
|
|
94808
|
+
task_create: {
|
|
94809
|
+
meta: {
|
|
94810
|
+
id: "task_create",
|
|
94811
|
+
factory: "createTaskCreateTool",
|
|
94812
|
+
groups: ["group:minion"],
|
|
94813
|
+
display: {
|
|
94814
|
+
emoji: "✅",
|
|
94815
|
+
title: "Task Create",
|
|
94816
|
+
detailKeys: ["title", "confirm"]
|
|
94817
|
+
},
|
|
94818
|
+
mcpExport: true
|
|
94819
|
+
},
|
|
94820
|
+
load: () => Promise.resolve().then(() => (init_task_create_tool(), task_create_tool_exports))
|
|
94821
|
+
},
|
|
94822
|
+
task_update: {
|
|
94823
|
+
meta: {
|
|
94824
|
+
id: "task_update",
|
|
94825
|
+
factory: "createTaskUpdateTool",
|
|
94826
|
+
groups: ["group:minion"],
|
|
94827
|
+
display: {
|
|
94828
|
+
emoji: "✅",
|
|
94829
|
+
title: "Task Update",
|
|
94830
|
+
detailKeys: [
|
|
94831
|
+
"taskId",
|
|
94832
|
+
"status",
|
|
94833
|
+
"confirm"
|
|
94834
|
+
]
|
|
94835
|
+
},
|
|
94836
|
+
mcpExport: true
|
|
94837
|
+
},
|
|
94838
|
+
load: () => Promise.resolve().then(() => (init_task_update_tool(), task_update_tool_exports))
|
|
94839
|
+
},
|
|
94840
|
+
ticket_comment: {
|
|
94841
|
+
meta: {
|
|
94842
|
+
id: "ticket_comment",
|
|
94843
|
+
factory: "createTicketCommentTool",
|
|
94844
|
+
groups: ["group:minion"],
|
|
94845
|
+
display: {
|
|
94846
|
+
emoji: "💬",
|
|
94847
|
+
title: "Ticket Comment",
|
|
94848
|
+
detailKeys: ["issueId", "confirm"]
|
|
94849
|
+
},
|
|
94850
|
+
mcpExport: true
|
|
94851
|
+
},
|
|
94852
|
+
load: () => Promise.resolve().then(() => (init_ticket_comment_tool(), ticket_comment_tool_exports))
|
|
94853
|
+
},
|
|
94854
|
+
ticket_create: {
|
|
94855
|
+
meta: {
|
|
94856
|
+
id: "ticket_create",
|
|
94857
|
+
factory: "createTicketCreateTool",
|
|
94858
|
+
groups: ["group:minion"],
|
|
94859
|
+
display: {
|
|
94860
|
+
emoji: "🎫",
|
|
94861
|
+
title: "Ticket Create",
|
|
94862
|
+
detailKeys: ["subject", "confirm"]
|
|
94863
|
+
},
|
|
94864
|
+
mcpExport: true
|
|
94865
|
+
},
|
|
94866
|
+
load: () => Promise.resolve().then(() => (init_ticket_create_tool(), ticket_create_tool_exports))
|
|
94867
|
+
},
|
|
94868
|
+
ticket_update: {
|
|
94869
|
+
meta: {
|
|
94870
|
+
id: "ticket_update",
|
|
94871
|
+
factory: "createTicketUpdateTool",
|
|
94872
|
+
groups: ["group:minion"],
|
|
94873
|
+
display: {
|
|
94874
|
+
emoji: "✏️",
|
|
94875
|
+
title: "Ticket Update",
|
|
94876
|
+
detailKeys: [
|
|
94877
|
+
"issueId",
|
|
94878
|
+
"status",
|
|
94879
|
+
"confirm"
|
|
94880
|
+
]
|
|
94881
|
+
},
|
|
94882
|
+
mcpExport: true
|
|
94883
|
+
},
|
|
94884
|
+
load: () => Promise.resolve().then(() => (init_ticket_update_tool(), ticket_update_tool_exports))
|
|
94885
|
+
},
|
|
94886
|
+
tickets_query: {
|
|
94887
|
+
meta: {
|
|
94888
|
+
id: "tickets_query",
|
|
94889
|
+
factory: "createTicketsQueryTool",
|
|
94890
|
+
groups: ["group:minion"],
|
|
94891
|
+
display: {
|
|
94892
|
+
emoji: "🎫",
|
|
94893
|
+
title: "Tickets Query",
|
|
94894
|
+
detailKeys: ["status", "priority"]
|
|
94895
|
+
},
|
|
94896
|
+
mcpExport: true
|
|
94897
|
+
},
|
|
94898
|
+
load: () => Promise.resolve().then(() => (init_tickets_query_tool(), tickets_query_tool_exports))
|
|
94899
|
+
},
|
|
93392
94900
|
crm_insight: {
|
|
93393
94901
|
meta: {
|
|
93394
94902
|
id: "crm_insight",
|
|
@@ -94345,6 +95853,29 @@ function buildToolOptions(id, ctx) {
|
|
|
94345
95853
|
agentId: ctx.agentId
|
|
94346
95854
|
};
|
|
94347
95855
|
case "crm_query": return { agentId: ctx.agentId };
|
|
95856
|
+
case "finance_query":
|
|
95857
|
+
case "bookings_query":
|
|
95858
|
+
case "tickets_query":
|
|
95859
|
+
case "orders_query":
|
|
95860
|
+
case "projects_query":
|
|
95861
|
+
case "hub_pages":
|
|
95862
|
+
case "stock_query":
|
|
95863
|
+
case "booking_create":
|
|
95864
|
+
case "booking_reschedule":
|
|
95865
|
+
case "booking_cancel":
|
|
95866
|
+
case "ticket_create":
|
|
95867
|
+
case "ticket_update":
|
|
95868
|
+
case "ticket_comment":
|
|
95869
|
+
case "order_update_status":
|
|
95870
|
+
case "task_create":
|
|
95871
|
+
case "task_update":
|
|
95872
|
+
case "contact_update":
|
|
95873
|
+
case "contact_tag":
|
|
95874
|
+
case "notify_user":
|
|
95875
|
+
case "stock_entry_create":
|
|
95876
|
+
case "brains_list":
|
|
95877
|
+
case "brain_search":
|
|
95878
|
+
case "brain_remember": return { agentId: ctx.agentId };
|
|
94348
95879
|
default: return;
|
|
94349
95880
|
}
|
|
94350
95881
|
}
|
|
@@ -94450,7 +95981,30 @@ var init_minion_tools = __esmMin((() => {
|
|
|
94450
95981
|
"summarize",
|
|
94451
95982
|
"crm_search",
|
|
94452
95983
|
"crm_insight",
|
|
94453
|
-
"crm_query"
|
|
95984
|
+
"crm_query",
|
|
95985
|
+
"finance_query",
|
|
95986
|
+
"bookings_query",
|
|
95987
|
+
"tickets_query",
|
|
95988
|
+
"orders_query",
|
|
95989
|
+
"projects_query",
|
|
95990
|
+
"hub_pages",
|
|
95991
|
+
"stock_query",
|
|
95992
|
+
"booking_create",
|
|
95993
|
+
"booking_reschedule",
|
|
95994
|
+
"booking_cancel",
|
|
95995
|
+
"ticket_create",
|
|
95996
|
+
"ticket_update",
|
|
95997
|
+
"ticket_comment",
|
|
95998
|
+
"order_update_status",
|
|
95999
|
+
"task_create",
|
|
96000
|
+
"task_update",
|
|
96001
|
+
"contact_update",
|
|
96002
|
+
"contact_tag",
|
|
96003
|
+
"notify_user",
|
|
96004
|
+
"stock_entry_create",
|
|
96005
|
+
"brains_list",
|
|
96006
|
+
"brain_search",
|
|
96007
|
+
"brain_remember"
|
|
94454
96008
|
];
|
|
94455
96009
|
}));
|
|
94456
96010
|
//#endregion
|
|
@@ -101976,7 +103530,8 @@ function loadOpenClawPlugins(options = {}) {
|
|
|
101976
103530
|
config: cfg,
|
|
101977
103531
|
pluginConfig: validatedConfig.value
|
|
101978
103532
|
});
|
|
101979
|
-
const
|
|
103533
|
+
const manifestDeclaredChannelLinkMode = record.channelLink?.mode;
|
|
103534
|
+
const manifestDeclaredChannelLink = Boolean(manifestDeclaredChannelLinkMode);
|
|
101980
103535
|
try {
|
|
101981
103536
|
const result = register(api);
|
|
101982
103537
|
if (result && typeof result.then === "function") {
|
|
@@ -101991,7 +103546,7 @@ function loadOpenClawPlugins(options = {}) {
|
|
|
101991
103546
|
});
|
|
101992
103547
|
}
|
|
101993
103548
|
const codeRegisteredChannelLink = Boolean(record.channelLinkRegistered);
|
|
101994
|
-
if (manifestDeclaredChannelLink && !codeRegisteredChannelLink) registry.diagnostics.push({
|
|
103549
|
+
if (manifestDeclaredChannelLink && manifestDeclaredChannelLinkMode !== "managed" && !codeRegisteredChannelLink) registry.diagnostics.push({
|
|
101995
103550
|
level: "warn",
|
|
101996
103551
|
pluginId: record.id,
|
|
101997
103552
|
source: record.source,
|