@symerian/symi 2.6.10 → 2.6.11
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-BRw8yhIW.js → accounts-D1r2dq1t.js} +21 -21
- package/dist/{accounts-3dCrO3oZ.js → accounts-dRUMQQrB.js} +1 -1
- package/dist/{accounts-BuZxOb3B.js → accounts-wSphH5gv.js} +1 -1
- package/dist/{acp-cli-DT0rEuUE.js → acp-cli-Cu4icbJT.js} +2 -2
- package/dist/{active-listener-CfHHV2SU.js → active-listener-DFUTUjxt.js} +1 -1
- package/dist/{agent-scope-CpEJ0B88.js → agent-scope-D68_xfTL.js} +3 -3
- package/dist/{agents-DDqXWXbP.js → agents-DRRBdgqz.js} +4 -4
- package/dist/{agents.config-CEt-ES9z.js → agents.config-BO1N5Z_6.js} +1 -1
- package/dist/{agents.config-Bu_N-bn_.js → agents.config-GCucbcBy.js} +1 -1
- package/dist/{audio-preflight-C40mKAp7.js → audio-preflight-CPBOQV4I.js} +4 -4
- package/dist/{audio-preflight-BcSzL_0I.js → audio-preflight-CWnxkaac.js} +8 -8
- package/dist/{audio-preflight-BVaaZWkg.js → audio-preflight-CjV36MUe.js} +29 -29
- package/dist/{audit-BIE9JAxf.js → audit-CrITRV6w.js} +5 -5
- package/dist/{auth-choice-Bmd-rbuU.js → auth-choice-C1sul2-I.js} +1 -1
- package/dist/{auth-choice-Djy_YmfW.js → auth-choice-i7tTgbDd.js} +4 -4
- package/dist/{auth-profiles-DdK1Hxaa.js → auth-profiles-Bl9aU7fc.js} +17 -17
- package/dist/{banner-BNkhjU8E.js → banner-VbhMdl-b.js} +1 -1
- package/dist/{bindings-BsHoBLIE.js → bindings-Bat2RnAR.js} +2 -2
- package/dist/{browser-cli-nNQ60Koh.js → browser-cli-BG4qPxpM.js} +3 -3
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/{call-7djMRPgl.js → call-CJaS1iRF.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-B6G1jnQT.js → channel-activity-DK0AV-r9.js} +1 -1
- package/dist/{channel-options-NLrg-j_d.js → channel-options-CsXOvqAc.js} +1 -1
- package/dist/{channel-options-D8ByM6g0.js → channel-options-Esf0QB4M.js} +1 -1
- package/dist/{channel-web-BUQWBln9.js → channel-web-DDC84nZg.js} +2 -2
- package/dist/{channels-cli-qBgicVqp.js → channels-cli-C989dAD4.js} +19 -19
- package/dist/{channels-cli-C5DWcDDG.js → channels-cli-DomEe8uI.js} +4 -4
- package/dist/{chrome-CDJYxX5a.js → chrome-D2SKJnR7.js} +7 -7
- package/dist/{chrome-DkaXoP36.js → chrome-DRHvMBbb.js} +14 -14
- package/dist/{chrome-DBKZkx0x.js → chrome-DtPkPq9T.js} +7 -7
- package/dist/{chunk-09egQapi.js → chunk-DR8ukp6r.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-Bx78WeyO.js → cli-CPRCkEdK.js} +1 -1
- package/dist/{cli-UHMMUbWL.js → cli-RXswESw1.js} +16 -16
- package/dist/{client-Z6SFrwob.js → client-CQSyCS4M.js} +3 -3
- package/dist/{command-registry-BSGsNY71.js → command-registry-DwBw5-nh.js} +9 -9
- package/dist/{commands-registry-Bfc7Uz0o.js → commands-registry-DIakZUZb.js} +4 -4
- package/dist/{completion-cli-B915TqN4.js → completion-cli-C43sjF75.js} +2 -2
- package/dist/{completion-cli-CajQzz5J.js → completion-cli-Cwx8MtF9.js} +1 -1
- package/dist/{config-5SdHIcHU.js → config-CvmE3Yx1.js} +12 -12
- package/dist/{config-cli-CeErUiHR.js → config-cli-CkkIU7AY.js} +1 -1
- package/dist/{config-cli-BM9FX48b.js → config-cli-DG0xBZhs.js} +1 -1
- package/dist/{configure-DggNPSKd.js → configure-DlVtomYJ.js} +3 -3
- package/dist/{configure-CbiNzEIk.js → configure-nxnXIUVI.js} +8 -8
- package/dist/{control-service-DdeFa44u.js → control-service-Bz7rxLWq.js} +3 -3
- package/dist/{cron-cli-C_1RndRW.js → cron-cli-DBIlCvp3.js} +3 -3
- package/dist/{daemon-cli-C2fkpr13.js → daemon-cli-DscwlsKW.js} +2 -2
- package/dist/{deliver-BH0l3UKW.js → deliver-C-37cZUe.js} +1 -1
- package/dist/{deliver-Bu624MY6.js → deliver-CWR_98sK.js} +1 -1
- package/dist/{deliver-C46-vyqg.js → deliver-UMgfGLxW.js} +20 -20
- package/dist/{devices-cli-ERMql8Dq.js → devices-cli-Dds-25Ve.js} +2 -2
- package/dist/{diagnostic-rPhsBoZz.js → diagnostic-spWOtH_g.js} +1 -1
- package/dist/{doctor-completion-BP_qD5Bt.js → doctor-completion-CWr51Q4O.js} +1 -1
- package/dist/{doctor-completion-BfLDfA98.js → doctor-completion-Dd5P0i9L.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-BDXYbTKj.js → env-xmBFQPBP.js} +1 -1
- package/dist/{exec-approvals-cli-BEU-xJFu.js → exec-approvals-cli-BliRl8VB.js} +4 -4
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-CTR5f_Ez.js → frontmatter-CV0YkjoY.js} +2 -2
- package/dist/{gateway-cli-LmMxDk7B.js → gateway-cli-B1h1FhD-.js} +28 -28
- package/dist/{gateway-cli-qMBjCmLH.js → gateway-cli-BBJjWKyu.js} +9 -9
- package/dist/{gateway-rpc-BWZzo3L9.js → gateway-rpc-BxkKeCZ0.js} +1 -1
- package/dist/{gemini-auth-Dy12ZAH3.js → gemini-auth-C6Z-2T42.js} +1 -1
- package/dist/{github-copilot-token-cCYzSU9h.js → github-copilot-token-B8B2pmph.js} +7 -7
- package/dist/{glass-ui-ws-CXpW0epd.js → glass-ui-ws-Bk01KSVI.js} +7 -7
- package/dist/{glass-ui-ws-DbV46Nrg.js → glass-ui-ws-UewDPjVh.js} +23 -23
- package/dist/{health-BctmvDJ0.js → health-BiipZUOd.js} +1 -1
- package/dist/{health-pukFTT09.js → health-Dzi6letr.js} +3 -3
- package/dist/{hooks-cli-DcQN6UeT.js → hooks-cli-BdelOAPH.js} +2 -2
- package/dist/{hooks-cli-BMQOn6QU.js → hooks-cli-DxRXaSHR.js} +17 -17
- package/dist/{image-CuzFLQWC.js → image-CK4oZUJJ.js} +4 -4
- package/dist/{image-CtCUVPCD.js → image-D9uvDTrc.js} +1 -1
- package/dist/{image-CHzdaNJ4.js → image-DcpMiprB.js} +1 -1
- package/dist/{image-ops-C7CauEK8.js → image-ops-M5agStZn.js} +16 -16
- package/dist/index.js +21 -21
- package/dist/{ir-CTiz95Vb.js → ir-B-XXcYFe.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-DhZz0Ybs.js → local-roots-CdXg5-Cx.js} +5 -5
- package/dist/{login-ul8zaw_S.js → login-BHUrERYo.js} +7 -7
- package/dist/{login-qr-AP9agO-i.js → login-qr-BKIOHn1V.js} +12 -12
- package/dist/{logs-cli-V5qUbmVy.js → logs-cli-xOzIPrHm.js} +3 -3
- package/dist/{manager-PprhCvO_.js → manager-DW3JqFpY.js} +22 -22
- package/dist/{manifest-registry-yb7sAlu4.js → manifest-registry-0J48biqr.js} +19 -19
- package/dist/{markdown-tables-C-BmIap8.js → markdown-tables-tW9bGjLM.js} +1 -1
- package/dist/{message-channel-OlFBYAw8.js → message-channel-DwDSKGn4.js} +1 -1
- package/dist/{model-catalog-Da6fXK5K.js → model-catalog-DvBJ8pMD.js} +1 -1
- package/dist/{model-picker-B6QoK7pe.js → model-picker-Ddo3jHe-.js} +1 -1
- package/dist/{models-yF2XRbPQ.js → models-DUrbBEOU.js} +2 -2
- package/dist/{models-cli-DAKvip7R.js → models-cli-CF0KZtK4.js} +18 -18
- package/dist/{models-cli-DHOMkJmd.js → models-cli-D5KE-evn.js} +3 -3
- package/dist/{node-cli-r5-MNz9_.js → node-cli-C_G-Q3h-.js} +6 -6
- package/dist/{nodes-cli-DQed-Snk.js → nodes-cli-BcnuJajV.js} +3 -3
- package/dist/{onboard-BafMA6T9.js → onboard-Bizq_LAS.js} +5 -5
- package/dist/{onboard-BhqTlAS0.js → onboard-DK-oOqRl.js} +2 -2
- package/dist/{onboard-channels-CHe-XSLv.js → onboard-channels-B6yLPqH5.js} +1 -1
- package/dist/{onboard-channels-CZB5bhSJ.js → onboard-channels-DSZzjOo1.js} +1 -1
- package/dist/{onboard-custom-BduhuM_4.js → onboard-custom-C7O-zfQ1.js} +1 -1
- package/dist/{onboard-helpers-CiLCJJVQ.js → onboard-helpers-ZmZYzlq3.js} +1 -1
- package/dist/{onboard-remote-C1nRkyWo.js → onboard-remote-zUjD7UtM.js} +1 -1
- package/dist/{onboard-skills-9GLwG44a.js → onboard-skills-BB0YhUmF.js} +1 -1
- package/dist/{onboarding-BXVYtRYj.js → onboarding-CkWWIQA7.js} +3 -3
- package/dist/{onboarding-D5yCx7Yb.js → onboarding-DGSCNnGY.js} +9 -9
- package/dist/{onboarding.finalize-DF5Zx0Zc.js → onboarding.finalize-BMGwhjIR.js} +6 -6
- package/dist/{onboarding.finalize-BX4DUaoK.js → onboarding.finalize-Dj0noUgo.js} +21 -21
- package/dist/{onboarding.gateway-config-TSh7IejG.js → onboarding.gateway-config-CJUgDC6Y.js} +3 -3
- package/dist/{outbound-CtMCmwxR.js → outbound-CIVsLpJK.js} +7 -7
- package/dist/{outbound-attachment-DJldbweZ.js → outbound-attachment-CHcmlip8.js} +2 -2
- package/dist/paths-CYmyCDsE.js +212 -0
- package/dist/{paths-CbQV9WEg.js → paths-DEuVuViW.js} +1 -1
- package/dist/{pi-auth-json-Bk8ERadJ.js → pi-auth-json-BYuCWAs0.js} +8 -8
- package/dist/{pi-auth-json-Tqz9D47K.js → pi-auth-json-DayrlDg_.js} +1 -1
- package/dist/{pi-embedded-DV6dp0BP.js → pi-embedded-DLma-HLn.js} +57 -16
- package/dist/{pi-embedded-helpers-lgx_U5KS.js → pi-embedded-helpers-B8kqLWns.js} +4 -4
- package/dist/{pi-embedded-helpers-CfqDGQ9J.js → pi-embedded-helpers-BU8EZuwx.js} +73 -73
- package/dist/{pi-embedded-helpers-D-dUrQOR.js → pi-embedded-helpers-CNPyv_ax.js} +1 -1
- package/dist/{pi-tools.policy-CgGK6Jq8.js → pi-tools.policy-CIDBbw6x.js} +1 -1
- package/dist/{plugin-registry-BSmy8tIV.js → plugin-registry-BcgpVdtC.js} +1 -1
- package/dist/{plugin-registry-BwnzEvIz.js → plugin-registry-D8PAS3Sx.js} +1 -1
- package/dist/plugin-sdk/{channel-web-BdY2z7lg.js → channel-web-DgNOPxkV.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-BvxntA3R.js → reply-DJN8Xcq2.js} +43 -2
- package/dist/plugin-sdk/{web-CorFnJCI.js → web-HkDBSFef.js} +2 -2
- package/dist/{plugins-BzmbgY7s.js → plugins-Bkr5ZdYs.js} +9 -9
- package/dist/{plugins-cli-BMmiYArH.js → plugins-cli-B_ln22KG.js} +17 -17
- package/dist/{plugins-cli-CrN718uZ.js → plugins-cli-Bcmq1fs1.js} +2 -2
- package/dist/{program-NGbjPxJh.js → program-C_rxRb1M.js} +7 -7
- package/dist/{program-context-BqxG0w61.js → program-context-BqH8IVSK.js} +30 -30
- package/dist/{prompt-select-styled-B7SzTPf7.js → prompt-select-styled-D8WAeDQY.js} +8 -8
- package/dist/{prompt-select-styled-B1LZVYl0.js → prompt-select-styled-DMRbQO0q.js} +4 -4
- package/dist/{provider-auth-helpers--A-4LKUl.js → provider-auth-helpers-DiuVmtmQ.js} +1 -1
- package/dist/{provider-auth-helpers-CNEhLjMl.js → provider-auth-helpers-DstpUAya.js} +1 -1
- package/dist/{push-apns-DgT_gz_P.js → push-apns-DKU4DgbI.js} +1 -1
- package/dist/{push-apns-Cem8OlK7.js → push-apns-be2xWY22.js} +1 -1
- package/dist/{pw-ai-De-KR9_s.js → pw-ai-1htA-NnS.js} +1 -1
- package/dist/{pw-ai-m0mj2KWK.js → pw-ai-BTgmcNVp.js} +11 -11
- package/dist/{pw-ai-CC0xm0TY.js → pw-ai-DqL87js3.js} +1 -1
- package/dist/{qmd-manager-iDLSiI4Z.js → qmd-manager-BKu9rOuB.js} +7 -7
- package/dist/{register.agent-vP7gkHzk.js → register.agent-Dcd_oFsG.js} +6 -6
- package/dist/{register.agent-DT0doE92.js → register.agent-k7WxtPOd.js} +21 -21
- package/dist/{register.configure-BnkkCig3.js → register.configure-BOgCp-h4.js} +25 -25
- package/dist/{register.configure-B_W1y_ag.js → register.configure-DMHVPA-T.js} +6 -6
- package/dist/{register.maintenance-Br5q9f-j.js → register.maintenance-BdBlQQ6G.js} +8 -8
- package/dist/{register.maintenance-C0akYVa2.js → register.maintenance-Bsbgpe-Z.js} +22 -22
- package/dist/{register.message-mCGVBJsU.js → register.message-BE0gDUQZ.js} +17 -17
- package/dist/{register.message-CRaEakG_.js → register.message-DAyubW1M.js} +2 -2
- package/dist/{register.onboard-BvsYOovb.js → register.onboard-CTKa4O9W.js} +21 -21
- package/dist/{register.onboard-CV_3MiHm.js → register.onboard-CqavyaNa.js} +4 -4
- package/dist/{register.setup-BQqw49hm.js → register.setup-BO3CD8Pz.js} +21 -21
- package/dist/{register.setup-DFcMhPAd.js → register.setup-DpkI2F6r.js} +4 -4
- package/dist/{register.status-health-sessions-DlgKRa9S.js → register.status-health-sessions-C5Qa-DmU.js} +3 -3
- package/dist/{register.status-health-sessions-SAm9yGnr.js → register.status-health-sessions-ClDUpT3j.js} +19 -19
- package/dist/{register.subclis-CdANuuHY.js → register.subclis-Bvil7KuO.js} +9 -9
- package/dist/{registry-DYq1AYOv.js → registry-UkL38jvt.js} +17 -17
- package/dist/{replies-LSmuwOhA.js → replies-mfnbLu2p.js} +3 -3
- package/dist/{reply-CiPQDsZl.js → reply-4ilKYVzu.js} +64 -23
- package/dist/{reply-prefix-DpqZu44Z.js → reply-prefix-DkGsdyBm.js} +1 -1
- package/dist/{resolve-route-C4_I4GFI.js → resolve-route-q8AFnU5c.js} +4 -4
- package/dist/{retry-BBVXkKBV.js → retry-CqMeDhyp.js} +1 -1
- package/dist/{routes-BO8eMYxn.js → routes-Ba9CUQ8M.js} +2 -2
- package/dist/{rpc-BcyzUwtC.js → rpc-BfhojW8g.js} +1 -1
- package/dist/{run-main-z8u07ybv.js → run-main-D1n_tgGX.js} +14 -14
- package/dist/{runner-DUBExAb5.js → runner-BcQ0sF9T.js} +1 -1
- package/dist/{runner-CU9l0uJh.js → runner-CKYly94z.js} +22 -22
- package/dist/{runner-DxdRmWfW.js → runner-CUglpiFP.js} +2 -2
- package/dist/{sandbox-B7qoYkRl.js → sandbox-C-T6hOMv.js} +3 -3
- package/dist/{sandbox-cli-C-hbJJWM.js → sandbox-cli-BllVdQzR.js} +4 -4
- package/dist/{security-cli-CNzBZn7V.js → security-cli-BFLtWWHy.js} +8 -8
- package/dist/{send-DYj_o4_F.js → send-B7z8CDbr.js} +18 -18
- package/dist/{send-CQAKg_12.js → send-Cd81AY_Z.js} +7 -7
- package/dist/{send-CvhXrdgS.js → send-D3zDmQim.js} +10 -10
- package/dist/{send-DAN9hA5h.js → send-XRUYukww.js} +6 -6
- package/dist/{send-CVMyYPQw.js → send-qItpAHcI.js} +6 -6
- package/dist/{server-context-B-ra1emS.js → server-context-CEpFjqSk.js} +4 -4
- package/dist/{server-methods-Dwsrsy7D.js → server-methods-BRdl4pcP.js} +7 -7
- package/dist/{server-methods-D9jBWl7O.js → server-methods-VC0ahxUh.js} +14 -14
- package/dist/{server-node-events-9T-Sm9Q4.js → server-node-events-Bq2fr8Z3.js} +17 -17
- package/dist/{server-node-events-CUKIb7Xq.js → server-node-events-Y5xFGvsj.js} +2 -2
- package/dist/{session-DSU1vxxi.js → session-Dh2wWQkD.js} +8 -8
- package/dist/{skill-commands-DcVwOafC.js → skill-commands-B_f8uGi7.js} +16 -16
- package/dist/{skills-Bs0AW1g3.js → skills-CGHRETGF.js} +24 -24
- package/dist/{sqlite-D_mz1_-y.js → sqlite-Bv87EXeg.js} +16 -16
- package/dist/{status-DPk2qV91.js → status-BxNHXm7T.js} +1 -1
- package/dist/{status-Dqm_DV3z.js → status-CRCD2RpZ.js} +2 -2
- package/dist/{status-CB6N6XaA.js → status-DNJBoKuu.js} +1 -1
- package/dist/{status-UWWMuety.js → status-DOCg6R55.js} +5 -5
- package/dist/{store-01F_JM7O.js → store-Ea3zM6xK.js} +6 -6
- package/dist/{subagent-registry-DTIudfq4.js → subagent-registry-7wPEZQKK.js} +43 -2
- package/dist/{subsystem-BjyjJF-d.js → subsystem-DN75fnEF.js} +1 -1
- package/dist/{system-cli-_0h_FSPB.js → system-cli-UMsMEurS.js} +3 -3
- package/dist/{tables-qMwbq29u.js → tables-BX7_aBvN.js} +1 -1
- package/dist/{target-errors-Bbr9rlzN.js → target-errors-7KhTCTdS.js} +2 -2
- package/dist/{thinking-BprCy23Z.js → thinking-C9-JAUzD.js} +5 -5
- package/dist/{tokens-Bux9Y_xD.js → tokens-BZGy4v--.js} +1 -1
- package/dist/{tool-images-SqqWIT22.js → tool-images-B1qVCntj.js} +2 -2
- package/dist/{tool-loop-detection-DR_rrIA1.js → tool-loop-detection-C8FBZVVx.js} +3 -3
- package/dist/{tui-D0s_9S8b.js → tui-CriznorL.js} +3 -3
- package/dist/{tui-cli-gm9fv3M8.js → tui-cli-CSIdfCTR.js} +8 -8
- package/dist/{unified-runner-DdeRGc1w.js → unified-runner-quomT1T-.js} +261 -220
- package/dist/{update-cli-C55vGnoj.js → update-cli-CcyCWvCB.js} +8 -8
- package/dist/{update-cli-D8jX4yKe.js → update-cli-FOE23Lo4.js} +23 -23
- package/dist/{update-runner-B0ORHPYT.js → update-runner-CJg-OANA.js} +1 -1
- package/dist/{update-runner-CGsqW9Gu.js → update-runner-Dcjlf0aY.js} +1 -1
- package/dist/{web-DsGfc1GN.js → web-BTmqdXgt.js} +17 -17
- package/dist/{web-CRFt1vNo.js → web-CuNZExQK.js} +1 -1
- package/dist/{web-BC4kDUZw.js → web-DPBfrIzo.js} +6 -6
- package/dist/{web-nKQzj7wJ.js → web-DcHxbz2H.js} +57 -57
- package/dist/{whatsapp-actions-BIeSWsCF.js → whatsapp-actions-SXenaJIn.js} +23 -23
- package/dist/{with-timeout-BFdGltxb.js → with-timeout-gmK6RciS.js} +1 -1
- package/dist/{workspace-DscDraUb.js → workspace-DqJ5h-ZB.js} +27 -27
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as resolveOAuthDir } from "./paths-
|
|
1
|
+
import { a as resolveOAuthDir } from "./paths-CYmyCDsE.js";
|
|
2
2
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { I as resolveUserPath, K as info, Q as success, j as jidToE164, rt as getChildLogger } from "./registry-
|
|
4
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
5
|
-
import { n as formatCliCommand } from "./env-
|
|
3
|
+
import { I as resolveUserPath, K as info, Q as success, j as jidToE164, rt as getChildLogger } from "./registry-UkL38jvt.js";
|
|
4
|
+
import { r as defaultRuntime } from "./subsystem-DN75fnEF.js";
|
|
5
|
+
import { n as formatCliCommand } from "./env-xmBFQPBP.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
8
|
-
import fs
|
|
7
|
+
import fsSync from "node:fs";
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/channels/plugins/account-helpers.ts
|
|
11
11
|
function createAccountListHelpers(channelKey) {
|
|
@@ -45,10 +45,10 @@ function resolveWebCredsBackupPath(authDir) {
|
|
|
45
45
|
}
|
|
46
46
|
function readCredsJsonRaw(filePath) {
|
|
47
47
|
try {
|
|
48
|
-
if (!
|
|
49
|
-
const stats =
|
|
48
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
49
|
+
const stats = fsSync.statSync(filePath);
|
|
50
50
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
51
|
-
return
|
|
51
|
+
return fsSync.readFileSync(filePath, "utf-8");
|
|
52
52
|
} catch {
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
@@ -66,9 +66,9 @@ function maybeRestoreCredsFromBackup(authDir) {
|
|
|
66
66
|
const backupRaw = readCredsJsonRaw(backupPath);
|
|
67
67
|
if (!backupRaw) return;
|
|
68
68
|
JSON.parse(backupRaw);
|
|
69
|
-
|
|
69
|
+
fsSync.copyFileSync(backupPath, credsPath);
|
|
70
70
|
try {
|
|
71
|
-
|
|
71
|
+
fsSync.chmodSync(credsPath, 384);
|
|
72
72
|
} catch {}
|
|
73
73
|
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
74
74
|
} catch {}
|
|
@@ -78,14 +78,14 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
78
78
|
maybeRestoreCredsFromBackup(resolvedAuthDir);
|
|
79
79
|
const credsPath = resolveWebCredsPath(resolvedAuthDir);
|
|
80
80
|
try {
|
|
81
|
-
await fs
|
|
81
|
+
await fs.access(resolvedAuthDir);
|
|
82
82
|
} catch {
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
try {
|
|
86
|
-
const stats = await fs
|
|
86
|
+
const stats = await fs.stat(credsPath);
|
|
87
87
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
88
|
-
const raw = await fs
|
|
88
|
+
const raw = await fs.readFile(credsPath, "utf-8");
|
|
89
89
|
JSON.parse(raw);
|
|
90
90
|
return true;
|
|
91
91
|
} catch {
|
|
@@ -93,7 +93,7 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
async function clearLegacyBaileysAuthState(authDir) {
|
|
96
|
-
const entries = await fs
|
|
96
|
+
const entries = await fs.readdir(authDir, { withFileTypes: true });
|
|
97
97
|
const shouldDelete = (name) => {
|
|
98
98
|
if (name === "oauth.json") return false;
|
|
99
99
|
if (name === "creds.json" || name === "creds.json.bak") return true;
|
|
@@ -103,7 +103,7 @@ async function clearLegacyBaileysAuthState(authDir) {
|
|
|
103
103
|
await Promise.all(entries.map(async (entry) => {
|
|
104
104
|
if (!entry.isFile()) return;
|
|
105
105
|
if (!shouldDelete(entry.name)) return;
|
|
106
|
-
await fs
|
|
106
|
+
await fs.rm(path.join(authDir, entry.name), { force: true });
|
|
107
107
|
}));
|
|
108
108
|
}
|
|
109
109
|
async function logoutWeb(params) {
|
|
@@ -114,7 +114,7 @@ async function logoutWeb(params) {
|
|
|
114
114
|
return false;
|
|
115
115
|
}
|
|
116
116
|
if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
|
|
117
|
-
else await fs
|
|
117
|
+
else await fs.rm(resolvedAuthDir, {
|
|
118
118
|
recursive: true,
|
|
119
119
|
force: true
|
|
120
120
|
});
|
|
@@ -124,11 +124,11 @@ async function logoutWeb(params) {
|
|
|
124
124
|
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
125
125
|
try {
|
|
126
126
|
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
127
|
-
if (!
|
|
127
|
+
if (!fsSync.existsSync(credsPath)) return {
|
|
128
128
|
e164: null,
|
|
129
129
|
jid: null
|
|
130
130
|
};
|
|
131
|
-
const raw =
|
|
131
|
+
const raw = fsSync.readFileSync(credsPath, "utf-8");
|
|
132
132
|
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
133
133
|
return {
|
|
134
134
|
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
@@ -147,7 +147,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
|
147
147
|
*/
|
|
148
148
|
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
149
149
|
try {
|
|
150
|
-
const stats =
|
|
150
|
+
const stats = fsSync.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
151
151
|
return Date.now() - stats.mtimeMs;
|
|
152
152
|
} catch {
|
|
153
153
|
return null;
|
|
@@ -182,7 +182,7 @@ function resolveLegacyAuthDir() {
|
|
|
182
182
|
}
|
|
183
183
|
function legacyAuthExists(authDir) {
|
|
184
184
|
try {
|
|
185
|
-
return
|
|
185
|
+
return fsSync.existsSync(path.join(authDir, "creds.json"));
|
|
186
186
|
} catch {
|
|
187
187
|
return false;
|
|
188
188
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { m as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { m as createAccountListHelpers } from "./accounts-D1r2dq1t.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { m as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { m as createAccountListHelpers } from "./accounts-D1r2dq1t.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -13,8 +13,8 @@ import { H as VERSION, i as loadConfig } from "./config-CHwyw6l5.js";
|
|
|
13
13
|
import "./manifest-registry-C4BxOMWX.js";
|
|
14
14
|
import "./tailscale-D5dKabOc.js";
|
|
15
15
|
import { a as resolveGatewayAuth } from "./auth-B741uFtk.js";
|
|
16
|
-
import { t as GatewayClient } from "./client-
|
|
17
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
16
|
+
import { t as GatewayClient } from "./client-CQSyCS4M.js";
|
|
17
|
+
import { t as buildGatewayConnectionDetails } from "./call-CJaS1iRF.js";
|
|
18
18
|
import "./pairing-token-CX3NN_qj.js";
|
|
19
19
|
import { t as formatDocsLink } from "./links-3i1eUga4.js";
|
|
20
20
|
import { t as isMainModule } from "./is-main-DrpmTCqv.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as DEFAULT_ACCOUNT_ID } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { n as formatCliCommand } from "./env-
|
|
2
|
+
import { n as formatCliCommand } from "./env-xmBFQPBP.js";
|
|
3
3
|
|
|
4
4
|
//#region src/web/active-listener.ts
|
|
5
5
|
const listeners = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as resolveStateDir } from "./paths-
|
|
1
|
+
import { s as resolveStateDir } from "./paths-CYmyCDsE.js";
|
|
2
2
|
import { s as normalizeAgentId, t as DEFAULT_AGENT_ID, y as parseAgentSessionKey } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { I as resolveUserPath } from "./registry-
|
|
4
|
-
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-
|
|
3
|
+
import { I as resolveUserPath } from "./registry-UkL38jvt.js";
|
|
4
|
+
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-DqJ5h-ZB.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/skills/filter.ts
|
|
@@ -5,19 +5,19 @@ import { t as formatCliCommand } from "./command-format-BtYOfWxC.js";
|
|
|
5
5
|
import { m as DEFAULT_ACCOUNT_ID, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-DjZ7Z1hW.js";
|
|
6
6
|
import { c as resolveAgentWorkspaceDir, g as DEFAULT_IDENTITY_FILENAME, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-D-jRCY0d.js";
|
|
7
7
|
import { l as writeConfigFile } from "./config-DHBLS1Hl.js";
|
|
8
|
-
import { j as parseIdentityMarkdown, k as identityHasValues } from "./subagent-registry-
|
|
8
|
+
import { j as parseIdentityMarkdown, k as identityHasValues } from "./subagent-registry-7wPEZQKK.js";
|
|
9
9
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CwSlLxM8.js";
|
|
10
10
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DNdWAq7b.js";
|
|
11
11
|
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-_pit1NZW.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-m1IJwIAx.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-B1aVoXd5.js";
|
|
14
14
|
import { t as resolveChannelDefaultAccountId } from "./helpers-cLP5YLeQ.js";
|
|
15
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
15
|
+
import { r as setupChannels } from "./onboard-channels-B6yLPqH5.js";
|
|
16
16
|
import { t as requireValidConfigSnapshot } from "./config-validation-BITwrsxY.js";
|
|
17
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
17
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-BO1N5Z_6.js";
|
|
18
18
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
19
19
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-DVcYPG2v.js";
|
|
20
|
-
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-
|
|
20
|
+
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-C1sul2-I.js";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
import fs from "node:fs/promises";
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as normalizeAgentId } from "./session-key-DjZ7Z1hW.js";
|
|
2
2
|
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-D-jRCY0d.js";
|
|
3
|
-
import { A as loadAgentIdentityFromWorkspace, k as identityHasValues } from "./subagent-registry-
|
|
3
|
+
import { A as loadAgentIdentityFromWorkspace, k as identityHasValues } from "./subagent-registry-7wPEZQKK.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as loadAgentIdentityFromWorkspace, Zt as identityHasValues } from "./reply-
|
|
1
|
+
import { Qt as loadAgentIdentityFromWorkspace, Zt as identityHasValues } from "./reply-4ilKYVzu.js";
|
|
2
2
|
import { s as normalizeAgentId } from "./session-key-DCt45XZa.js";
|
|
3
3
|
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-CgUHAtCo.js";
|
|
4
4
|
|
|
@@ -12,10 +12,10 @@ import "./accounts-8zZqL37v.js";
|
|
|
12
12
|
import "./image-ops-ByaQt43P.js";
|
|
13
13
|
import "./pi-model-discovery-j5tVLINv.js";
|
|
14
14
|
import "./message-channel-BQINJQIT.js";
|
|
15
|
-
import "./pi-embedded-helpers-
|
|
15
|
+
import "./pi-embedded-helpers-B8kqLWns.js";
|
|
16
16
|
import "./config-BmV60pPT.js";
|
|
17
17
|
import "./manifest-registry-D-mTF1cj.js";
|
|
18
|
-
import "./chrome-
|
|
18
|
+
import "./chrome-D2SKJnR7.js";
|
|
19
19
|
import "./skills-BNpGMnp-.js";
|
|
20
20
|
import "./redact-1NGYV_8p.js";
|
|
21
21
|
import "./errors-CPfngF0S.js";
|
|
@@ -25,10 +25,10 @@ import "./thinking-W85Rb32m.js";
|
|
|
25
25
|
import "./accounts-DImOt9jX.js";
|
|
26
26
|
import "./paths-DkMamAQ-.js";
|
|
27
27
|
import "./tool-images-ChC2CXaN.js";
|
|
28
|
-
import "./image-
|
|
28
|
+
import "./image-DcpMiprB.js";
|
|
29
29
|
import "./gemini-auth-CSlZZ1Pw.js";
|
|
30
30
|
import "./local-roots-CC8jiKDk.js";
|
|
31
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
31
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-BcQ0sF9T.js";
|
|
32
32
|
|
|
33
33
|
//#region src/media-understanding/audio-preflight.ts
|
|
34
34
|
/**
|
|
@@ -12,19 +12,19 @@ import "./env-DPCHYPeH.js";
|
|
|
12
12
|
import "./message-channel-aT-I_DTX.js";
|
|
13
13
|
import "./config-CHwyw6l5.js";
|
|
14
14
|
import "./manifest-registry-C4BxOMWX.js";
|
|
15
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, s as isAudioAttachment, t as buildProviderRegistry } from "./runner-
|
|
16
|
-
import "./image-
|
|
15
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, s as isAudioAttachment, t as buildProviderRegistry } from "./runner-CUglpiFP.js";
|
|
16
|
+
import "./image-D9uvDTrc.js";
|
|
17
17
|
import "./models-config-qyOXrOli.js";
|
|
18
18
|
import "./pi-model-discovery-4uUnLc3n.js";
|
|
19
|
-
import "./pi-embedded-helpers-
|
|
20
|
-
import "./sandbox-
|
|
21
|
-
import "./chrome-
|
|
19
|
+
import "./pi-embedded-helpers-CNPyv_ax.js";
|
|
20
|
+
import "./sandbox-C-T6hOMv.js";
|
|
21
|
+
import "./chrome-DtPkPq9T.js";
|
|
22
22
|
import "./tailscale-D5dKabOc.js";
|
|
23
23
|
import "./auth-B741uFtk.js";
|
|
24
|
-
import "./server-context-
|
|
24
|
+
import "./server-context-CEpFjqSk.js";
|
|
25
25
|
import "./frontmatter-DWQhtOo7.js";
|
|
26
26
|
import "./skills-6jdJQ5ZL.js";
|
|
27
|
-
import "./routes-
|
|
27
|
+
import "./routes-Ba9CUQ8M.js";
|
|
28
28
|
import "./redact-f-Q-hFt_.js";
|
|
29
29
|
import "./errors-BF3TeRH2.js";
|
|
30
30
|
import "./fs-safe-CUjO1ca2.js";
|
|
@@ -48,7 +48,7 @@ import "./tool-display-D8N3rsYt.js";
|
|
|
48
48
|
import "./fetch-guard-DOPkVbh3.js";
|
|
49
49
|
import "./api-key-rotation-CzuPlV2t.js";
|
|
50
50
|
import "./local-roots-aAFLQGkY.js";
|
|
51
|
-
import "./model-catalog-
|
|
51
|
+
import "./model-catalog-DvBJ8pMD.js";
|
|
52
52
|
|
|
53
53
|
//#region src/media-understanding/audio-preflight.ts
|
|
54
54
|
/**
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { J as logVerbose, Z as shouldLogVerbose } from "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./paths-
|
|
7
|
-
import "./auth-profiles-
|
|
8
|
-
import "./env-
|
|
9
|
-
import "./github-copilot-token-
|
|
1
|
+
import "./paths-CYmyCDsE.js";
|
|
2
|
+
import { J as logVerbose, Z as shouldLogVerbose } from "./registry-UkL38jvt.js";
|
|
3
|
+
import "./agent-scope-D68_xfTL.js";
|
|
4
|
+
import "./subsystem-DN75fnEF.js";
|
|
5
|
+
import "./workspace-DqJ5h-ZB.js";
|
|
6
|
+
import "./paths-DEuVuViW.js";
|
|
7
|
+
import "./auth-profiles-Bl9aU7fc.js";
|
|
8
|
+
import "./env-xmBFQPBP.js";
|
|
9
|
+
import "./github-copilot-token-B8B2pmph.js";
|
|
10
10
|
import "./boolean-CE7i9tBR.js";
|
|
11
|
-
import "./pi-embedded-helpers-
|
|
12
|
-
import "./config-
|
|
13
|
-
import "./manifest-registry-
|
|
14
|
-
import "./chrome-
|
|
15
|
-
import "./frontmatter-
|
|
16
|
-
import "./skills-
|
|
11
|
+
import "./pi-embedded-helpers-BU8EZuwx.js";
|
|
12
|
+
import "./config-CvmE3Yx1.js";
|
|
13
|
+
import "./manifest-registry-0J48biqr.js";
|
|
14
|
+
import "./chrome-DRHvMBbb.js";
|
|
15
|
+
import "./frontmatter-CV0YkjoY.js";
|
|
16
|
+
import "./skills-CGHRETGF.js";
|
|
17
17
|
import "./redact-BDMXB06K.js";
|
|
18
18
|
import "./errors-XIsvXeC-.js";
|
|
19
|
-
import "./image-ops-
|
|
19
|
+
import "./image-ops-M5agStZn.js";
|
|
20
20
|
import "./ssrf-DpUUUgkK.js";
|
|
21
|
-
import "./store-
|
|
22
|
-
import "./thinking-
|
|
23
|
-
import "./message-channel-
|
|
24
|
-
import "./plugins-
|
|
25
|
-
import "./accounts-
|
|
26
|
-
import "./accounts-
|
|
27
|
-
import "./accounts-
|
|
28
|
-
import "./bindings-
|
|
29
|
-
import "./tool-images-
|
|
30
|
-
import "./image-
|
|
21
|
+
import "./store-Ea3zM6xK.js";
|
|
22
|
+
import "./thinking-C9-JAUzD.js";
|
|
23
|
+
import "./message-channel-DwDSKGn4.js";
|
|
24
|
+
import "./plugins-Bkr5ZdYs.js";
|
|
25
|
+
import "./accounts-D1r2dq1t.js";
|
|
26
|
+
import "./accounts-dRUMQQrB.js";
|
|
27
|
+
import "./accounts-wSphH5gv.js";
|
|
28
|
+
import "./bindings-Bat2RnAR.js";
|
|
29
|
+
import "./tool-images-B1qVCntj.js";
|
|
30
|
+
import "./image-CK4oZUJJ.js";
|
|
31
31
|
import "./pi-model-discovery-Bv5YDJc8.js";
|
|
32
|
-
import "./gemini-auth-
|
|
33
|
-
import "./local-roots-
|
|
34
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
32
|
+
import "./gemini-auth-C6Z-2T42.js";
|
|
33
|
+
import "./local-roots-CdXg5-Cx.js";
|
|
34
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-CKYly94z.js";
|
|
35
35
|
|
|
36
36
|
//#region src/media-understanding/audio-preflight.ts
|
|
37
37
|
/**
|
|
@@ -7,19 +7,19 @@ import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-
|
|
|
7
7
|
import { I as INCLUDE_KEY, L as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-CHwyw6l5.js";
|
|
8
8
|
import { u as normalizePluginsConfig } from "./manifest-registry-C4BxOMWX.js";
|
|
9
9
|
import { i as isPathInside, n as MANIFEST_KEY, r as extensionUsesSkippedScannerPath } from "./legacy-names-Be3msDZo.js";
|
|
10
|
-
import { S as resolveToolProfilePolicy, f as resolveSandboxConfigForAgent, k as SANDBOX_BROWSER_SECURITY_HASH_EPOCH, l as execDockerRaw, m as resolveSandboxToolPolicyForAgent, u as getBlockedBindReason } from "./sandbox-
|
|
10
|
+
import { S as resolveToolProfilePolicy, f as resolveSandboxConfigForAgent, k as SANDBOX_BROWSER_SECURITY_HASH_EPOCH, l as execDockerRaw, m as resolveSandboxToolPolicyForAgent, u as getBlockedBindReason } from "./sandbox-C-T6hOMv.js";
|
|
11
11
|
import { a as resolveGatewayAuth } from "./auth-B741uFtk.js";
|
|
12
|
-
import { a as resolveProfile, i as resolveBrowserConfig, m as resolveBrowserControlAuth } from "./server-context-
|
|
12
|
+
import { a as resolveProfile, i as resolveBrowserConfig, m as resolveBrowserControlAuth } from "./server-context-CEpFjqSk.js";
|
|
13
13
|
import { i as loadWorkspaceSkillEntries } from "./skills-6jdJQ5ZL.js";
|
|
14
14
|
import { n as formatErrorMessage } from "./errors-BF3TeRH2.js";
|
|
15
15
|
import { l as normalizeStringEntries } from "./dock-BhS32F6E.js";
|
|
16
16
|
import { n as listChannelPlugins } from "./plugins-DKDeQZF0.js";
|
|
17
17
|
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled } from "./commands-BNLCWX6e.js";
|
|
18
|
-
import { t as GatewayClient } from "./client-
|
|
19
|
-
import { c as READ_SCOPE, t as buildGatewayConnectionDetails } from "./call-
|
|
18
|
+
import { t as GatewayClient } from "./client-CQSyCS4M.js";
|
|
19
|
+
import { c as READ_SCOPE, t as buildGatewayConnectionDetails } from "./call-CJaS1iRF.js";
|
|
20
20
|
import { i as readChannelAllowFromStore } from "./pairing-store-CK726Dzq.js";
|
|
21
21
|
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-GpkFi6Kw.js";
|
|
22
|
-
import { n as isToolAllowedByPolicies, o as pickSandboxToolPolicy } from "./pi-tools.policy-
|
|
22
|
+
import { n as isToolAllowedByPolicies, o as pickSandboxToolPolicy } from "./pi-tools.policy-CIDBbw6x.js";
|
|
23
23
|
import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-BL-M3lPt.js";
|
|
24
24
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BcGbMZD1.js";
|
|
25
25
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-CLs8u6vQ.js";
|
|
@@ -6,7 +6,7 @@ import { n as loadModelCatalog } from "./model-catalog-CqCsARJX.js";
|
|
|
6
6
|
import { f as openUrl } from "./onboard-helpers-_pit1NZW.js";
|
|
7
7
|
import { t as enablePluginInConfig } from "./enable-CknE1f0w.js";
|
|
8
8
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, C as applyQianfanProviderConfig, D as applyTogetherProviderConfig, E as applyTogetherConfig, F as applyZaiProviderConfig, G as OPENROUTER_DEFAULT_MODEL_REF, H as applyAgentDefaultModelPrimary, I as applyLitellmConfig, J as XIAOMI_DEFAULT_MODEL_REF, K as TOGETHER_DEFAULT_MODEL_REF, L as applyLitellmProviderConfig, M as applyXiaomiConfig, N as applyXiaomiProviderConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, T as applySyntheticProviderConfig, U as HUGGINGFACE_DEFAULT_MODEL_REF, V as applyVercelAiGatewayProviderConfig, W as LITELLM_DEFAULT_MODEL_REF, X as setAnthropicApiKey, Y as ZAI_DEFAULT_MODEL_REF, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, _t as QIANFAN_DEFAULT_MODEL_REF, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, c as applyMinimaxApiProviderConfigCn, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, ft as setXiaomiApiKey, g as applyMoonshotConfig, gt as MOONSHOT_DEFAULT_MODEL_REF, h as applyKimiCodeProviderConfig, ht as KIMI_CODING_MODEL_REF, i as applyOpencodeZenProviderConfig, it as setOpencodeZenApiKey, j as applyXaiProviderConfig, k as applyVeniceProviderConfig, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, mt as writeOAuthCredentials, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, p as applyHuggingfaceProviderConfig, pt as setZaiApiKey, q as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, s as applyMinimaxApiProviderConfig, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, u as applyMinimaxProviderConfig, ut as setVercelAiGatewayApiKey, v as applyMoonshotProviderConfig, vt as XAI_DEFAULT_MODEL_REF, w as applySyntheticConfig, x as applyOpenrouterProviderConfig, y as applyMoonshotProviderConfigCn, z as applyCloudflareAiGatewayProviderConfig } from "./auth-token-Cmrk2TPo.js";
|
|
9
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
9
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-DstpUAya.js";
|
|
10
10
|
import { a as detectZaiEndpoint, c as ensureModelAllowlistEntry, i as upsertSharedEnvVar, n as applyOpenAIConfig, o as GOOGLE_GEMINI_DEFAULT_MODEL, r as applyOpenAIProviderConfig, s as applyGoogleGeminiModelDefault, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-DAwnTUcK.js";
|
|
11
11
|
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-D5nCutGW.js";
|
|
12
12
|
import { loginOpenAICodex } from "@mariozechner/pi-ai";
|
|
@@ -2,13 +2,13 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { D as resolveDefaultAgentWorkspaceDir, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, o as resolveAgentModelPrimary } from "./agent-scope-CgUHAtCo.js";
|
|
3
3
|
import { At as ensureAuthProfileStore, Ft as resolveSymiAgentDir, G as getCustomProviderApiKey, Gt as DEFAULT_MODEL, Kt as DEFAULT_PROVIDER, M as VENICE_DEFAULT_MODEL_REF, Ot as upsertAuthProfile, St as parseOAuthCallbackInput, Tt as listProfilesForProvider, Y as resolveEnvApiKey, bt as exchangeChutesCodeForTokens, ct as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, ft as resolveAuthProfileOrder, ot as discoverHuggingfaceModels, p as resolveConfiguredModelRef, st as isHuggingfacePolicyLocked, xt as generateChutesPkce, yt as CHUTES_AUTHORIZE_ENDPOINT, z as SYNTHETIC_DEFAULT_MODEL_REF } from "./model-selection-CyFvYcRt.js";
|
|
4
4
|
import { r as isLoopbackHost } from "./ws-C7EXRv8z.js";
|
|
5
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
6
|
-
import { f as openUrl } from "./onboard-helpers-
|
|
5
|
+
import { n as loadModelCatalog } from "./model-catalog-DvBJ8pMD.js";
|
|
6
|
+
import { f as openUrl } from "./onboard-helpers-ZmZYzlq3.js";
|
|
7
7
|
import { t as enablePluginInConfig } from "./enable-HSYin9n7.js";
|
|
8
8
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, C as applyQianfanProviderConfig, D as applyTogetherProviderConfig, E as applyTogetherConfig, F as applyZaiProviderConfig, G as OPENROUTER_DEFAULT_MODEL_REF, H as applyAgentDefaultModelPrimary, I as applyLitellmConfig, J as XIAOMI_DEFAULT_MODEL_REF, K as TOGETHER_DEFAULT_MODEL_REF, L as applyLitellmProviderConfig, M as applyXiaomiConfig, N as applyXiaomiProviderConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, T as applySyntheticProviderConfig, U as HUGGINGFACE_DEFAULT_MODEL_REF, V as applyVercelAiGatewayProviderConfig, W as LITELLM_DEFAULT_MODEL_REF, X as setAnthropicApiKey, Y as ZAI_DEFAULT_MODEL_REF, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, _t as QIANFAN_DEFAULT_MODEL_REF, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, c as applyMinimaxApiProviderConfigCn, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, ft as setXiaomiApiKey, g as applyMoonshotConfig, gt as MOONSHOT_DEFAULT_MODEL_REF, h as applyKimiCodeProviderConfig, ht as KIMI_CODING_MODEL_REF, i as applyOpencodeZenProviderConfig, it as setOpencodeZenApiKey, j as applyXaiProviderConfig, k as applyVeniceProviderConfig, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, mt as writeOAuthCredentials, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, p as applyHuggingfaceProviderConfig, pt as setZaiApiKey, q as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, s as applyMinimaxApiProviderConfig, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, u as applyMinimaxProviderConfig, ut as setVercelAiGatewayApiKey, v as applyMoonshotProviderConfig, vt as XAI_DEFAULT_MODEL_REF, w as applySyntheticConfig, x as applyOpenrouterProviderConfig, y as applyMoonshotProviderConfigCn, z as applyCloudflareAiGatewayProviderConfig } from "./auth-token-BnOynwk4.js";
|
|
9
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers
|
|
9
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-DiuVmtmQ.js";
|
|
10
10
|
import { a as detectZaiEndpoint, c as ensureModelAllowlistEntry, i as upsertSharedEnvVar, n as applyOpenAIConfig, o as GOOGLE_GEMINI_DEFAULT_MODEL, r as applyOpenAIProviderConfig, s as applyGoogleGeminiModelDefault, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-DMjQRsb1.js";
|
|
11
|
-
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-
|
|
11
|
+
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-Ddo3jHe-.js";
|
|
12
12
|
import { randomBytes } from "node:crypto";
|
|
13
13
|
import { loginOpenAICodex } from "@mariozechner/pi-ai";
|
|
14
14
|
import { createServer } from "node:http";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-
|
|
2
|
+
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-CYmyCDsE.js";
|
|
3
3
|
import { t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { I as resolveUserPath } from "./registry-
|
|
5
|
-
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { n as formatCliCommand, t as isTruthyEnvValue } from "./env-
|
|
8
|
-
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-
|
|
4
|
+
import { I as resolveUserPath } from "./registry-UkL38jvt.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-D68_xfTL.js";
|
|
6
|
+
import { t as createSubsystemLogger } from "./subsystem-DN75fnEF.js";
|
|
7
|
+
import { n as formatCliCommand, t as isTruthyEnvValue } from "./env-xmBFQPBP.js";
|
|
8
|
+
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-B8B2pmph.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
11
|
-
import fs
|
|
10
|
+
import fsSync from "node:fs";
|
|
11
|
+
import fs from "node:fs/promises";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
13
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
14
14
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
@@ -2957,7 +2957,7 @@ function computeDelayMs(retries, attempt) {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
async function readLockPayload(lockPath) {
|
|
2959
2959
|
try {
|
|
2960
|
-
const raw = await fs
|
|
2960
|
+
const raw = await fs.readFile(lockPath, "utf8");
|
|
2961
2961
|
const parsed = JSON.parse(raw);
|
|
2962
2962
|
if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") return null;
|
|
2963
2963
|
return {
|
|
@@ -2971,9 +2971,9 @@ async function readLockPayload(lockPath) {
|
|
|
2971
2971
|
async function resolveNormalizedFilePath(filePath) {
|
|
2972
2972
|
const resolved = path.resolve(filePath);
|
|
2973
2973
|
const dir = path.dirname(resolved);
|
|
2974
|
-
await fs
|
|
2974
|
+
await fs.mkdir(dir, { recursive: true });
|
|
2975
2975
|
try {
|
|
2976
|
-
const realDir = await fs
|
|
2976
|
+
const realDir = await fs.realpath(dir);
|
|
2977
2977
|
return path.join(realDir, path.basename(resolved));
|
|
2978
2978
|
} catch {
|
|
2979
2979
|
return resolved;
|
|
@@ -2987,7 +2987,7 @@ async function isStaleLock(lockPath, staleMs) {
|
|
|
2987
2987
|
if (!Number.isFinite(createdAt) || Date.now() - createdAt > staleMs) return true;
|
|
2988
2988
|
}
|
|
2989
2989
|
try {
|
|
2990
|
-
const stat = await fs
|
|
2990
|
+
const stat = await fs.stat(lockPath);
|
|
2991
2991
|
return Date.now() - stat.mtimeMs > staleMs;
|
|
2992
2992
|
} catch {
|
|
2993
2993
|
return true;
|
|
@@ -3000,7 +3000,7 @@ async function releaseHeldLock(normalizedFile) {
|
|
|
3000
3000
|
if (current.count > 0) return;
|
|
3001
3001
|
HELD_LOCKS.delete(normalizedFile);
|
|
3002
3002
|
await current.handle.close().catch(() => void 0);
|
|
3003
|
-
await fs
|
|
3003
|
+
await fs.rm(current.lockPath, { force: true }).catch(() => void 0);
|
|
3004
3004
|
}
|
|
3005
3005
|
async function acquireFileLock(filePath, options) {
|
|
3006
3006
|
const normalizedFile = await resolveNormalizedFilePath(filePath);
|
|
@@ -3015,7 +3015,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3015
3015
|
}
|
|
3016
3016
|
const attempts = Math.max(1, options.retries.retries + 1);
|
|
3017
3017
|
for (let attempt = 0; attempt < attempts; attempt += 1) try {
|
|
3018
|
-
const handle = await fs
|
|
3018
|
+
const handle = await fs.open(lockPath, "wx");
|
|
3019
3019
|
await handle.writeFile(JSON.stringify({
|
|
3020
3020
|
pid: process.pid,
|
|
3021
3021
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -3032,7 +3032,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3032
3032
|
} catch (err) {
|
|
3033
3033
|
if (err.code !== "EEXIST") throw err;
|
|
3034
3034
|
if (await isStaleLock(lockPath, options.stale)) {
|
|
3035
|
-
await fs
|
|
3035
|
+
await fs.rm(lockPath, { force: true }).catch(() => void 0);
|
|
3036
3036
|
continue;
|
|
3037
3037
|
}
|
|
3038
3038
|
if (attempt >= attempts - 1) break;
|
|
@@ -3186,7 +3186,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
|
|
|
3186
3186
|
return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
|
|
3187
3187
|
}
|
|
3188
3188
|
function ensureAuthStoreFile(pathname) {
|
|
3189
|
-
if (
|
|
3189
|
+
if (fsSync.existsSync(pathname)) return;
|
|
3190
3190
|
saveJsonFile(pathname, {
|
|
3191
3191
|
version: AUTH_STORE_VERSION,
|
|
3192
3192
|
profiles: {}
|
|
@@ -3355,7 +3355,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
|
|
|
3355
3355
|
if (shouldWrite && legacy !== null) {
|
|
3356
3356
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
3357
3357
|
try {
|
|
3358
|
-
|
|
3358
|
+
fsSync.unlinkSync(legacyPath);
|
|
3359
3359
|
} catch (err) {
|
|
3360
3360
|
if (err?.code !== "ENOENT") log$1.warn("failed to delete legacy auth.json after migration", {
|
|
3361
3361
|
err,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dt as theme, Et as isRich, h as visibleWidth, ln as hasRootVersionAlias } from "./entry.js";
|
|
2
|
-
import { un as resolveCommitHash } from "./subagent-registry-
|
|
2
|
+
import { un as resolveCommitHash } from "./subagent-registry-7wPEZQKK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/tagline.ts
|
|
5
5
|
const DEFAULT_TAGLINE = "All your chats, one Symi.";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as normalizeAccountId, s as normalizeAgentId } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { s as normalizeChatChannelId } from "./registry-
|
|
3
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
+
import { s as normalizeChatChannelId } from "./registry-UkL38jvt.js";
|
|
3
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-D68_xfTL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/routing/bindings.ts
|
|
6
6
|
function normalizeBindingChannelId(raw) {
|
|
@@ -17,15 +17,15 @@ import "./errors-BF3TeRH2.js";
|
|
|
17
17
|
import "./fs-safe-CUjO1ca2.js";
|
|
18
18
|
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-BBm9fwuG.js";
|
|
19
19
|
import { t as movePathToTrash } from "./trash-DcMh1i4B.js";
|
|
20
|
-
import "./client-
|
|
21
|
-
import "./call-
|
|
20
|
+
import "./client-CQSyCS4M.js";
|
|
21
|
+
import "./call-CJaS1iRF.js";
|
|
22
22
|
import "./pairing-token-CX3NN_qj.js";
|
|
23
23
|
import { t as formatDocsLink } from "./links-3i1eUga4.js";
|
|
24
24
|
import { n as runCommandWithRuntime } from "./cli-utils-DN_hM6ov.js";
|
|
25
25
|
import { t as formatHelpExamples } from "./help-format-B_-M23wP.js";
|
|
26
26
|
import "./progress-jIePzvGA.js";
|
|
27
27
|
import { n as inheritOptionFromParent } from "./command-options-BtDai3oC.js";
|
|
28
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
28
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BxkKeCZ0.js";
|
|
29
29
|
import { t as copyToClipboard } from "./clipboard-Cg3cin13.js";
|
|
30
30
|
import { fileURLToPath } from "node:url";
|
|
31
31
|
import fs from "node:fs";
|
package/dist/build-info.json
CHANGED