@symerian/symi 2.6.41 → 2.7.0
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-DDuIpcln.js → accounts-Cd816n6l.js} +7 -7
- package/dist/{accounts-bK-Yqdwx.js → accounts-CokRskCl.js} +1 -1
- package/dist/{accounts-DyJN4_vR.js → accounts-mN_EcgxC.js} +1 -1
- package/dist/{acp-cli-CrEIx-c7.js → acp-cli-COzlJi3B.js} +6 -6
- package/dist/{agent-scope-CgUHAtCo.js → agent-scope-BRwEc2pG.js} +18 -18
- package/dist/{agents-B4RNdKQ3.js → agents-Cu2bthAX.js} +4 -4
- package/dist/{agents.config-CA31c0kN.js → agents.config-5PTwsijs.js} +1 -1
- package/dist/{agents.config-CG2klYOg.js → agents.config-Dib8Uo2P.js} +2 -2
- package/dist/{api-key-rotation-CzuPlV2t.js → api-key-rotation-CEr3lKih.js} +1 -1
- package/dist/{audio-preflight-K-s65jbB.js → audio-preflight-COaFw917.js} +4 -4
- package/dist/{audio-preflight-CIiS5cfP.js → audio-preflight-mj-z_vQ6.js} +28 -28
- package/dist/{audit-DB9YkTVX.js → audit-Djfdh06o.js} +23 -23
- package/dist/{auth-choice-CCGIgXvF.js → auth-choice-5gul6jy2.js} +1 -1
- package/dist/{auth-choice-CiMf3Pjp.js → auth-choice-CmSUU3t8.js} +8 -8
- package/dist/{auth-token-Cay2jwzn.js → auth-token-83A2btbE.js} +1 -1
- package/dist/{banner-BNsB_A87.js → banner-B4vQpMIJ.js} +1 -1
- package/dist/{bindings-DFaVVCsf.js → bindings-ChzePa8q.js} +1 -1
- package/dist/{browser-cli-Ctn9do4z.js → browser-cli-BTD0NlrA.js} +9 -9
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-DwpGquzW.js → call-tmHtVCkn.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-BMQlkUDX.js → channel-options-DVf4CJIu.js} +1 -1
- package/dist/{channel-options-pAH4A-xX.js → channel-options-DsWGc55A.js} +2 -2
- package/dist/{channel-selection-V2xDgw16.js → channel-selection-DaJDux-Q.js} +1 -1
- package/dist/{channel-web-Dwuj48T5.js → channel-web-vGC-WJXi.js} +17 -17
- package/dist/{channels-cli-rmDzxb0W.js → channels-cli-COayA28A.js} +76 -76
- package/dist/{channels-cli-CuExxB0U.js → channels-cli-CSv05N3q.js} +4 -4
- package/dist/{channels-status-issues-CJ0Vb_9z.js → channels-status-issues-B_PI3nEE.js} +1 -1
- package/dist/{chrome-DU2ZysN3.js → chrome-CSJzpT9Z.js} +2 -2
- package/dist/{chrome-BYOhnxTr.js → chrome-CbA-qnhp.js} +7 -7
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-Mcq2pPI0.js → cli-B-g79xPe.js} +1 -1
- package/dist/{cli-BPGZalMg.js → cli-DJjOxip6.js} +63 -63
- package/dist/{client-jI1oE0_k.js → client-Bj_vTpri.js} +1 -1
- package/dist/{command-registry-BoEw2RzH.js → command-registry-BvpLfzl7.js} +9 -9
- package/dist/{commands-BNLCWX6e.js → commands-CtocZ4Lg.js} +1 -1
- package/dist/{commands-registry-BT0-zzs3.js → commands-registry-BZ0ZSQpM.js} +3 -3
- package/dist/{completion-cli-CQVZGJPg.js → completion-cli-CfRZ-7QF.js} +2 -2
- package/dist/{completion-cli-CE9Xqlyx.js → completion-cli-DtQcXg1N.js} +12 -12
- package/dist/{config-cli-mU_ckD4l.js → config-cli-D9Z78raJ.js} +4 -4
- package/dist/{config-cli-BucNvr-c.js → config-cli-DL2RdfLM.js} +1 -1
- package/dist/{config-guard-CEkSg4hl.js → config-guard-4oRmpR0a.js} +12 -12
- package/dist/{config-Dz95lSBW.js → config-tNauHpdq.js} +2 -2
- package/dist/{config-validation-HDVDlMSV.js → config-validation-BoDWiwe3.js} +1 -1
- package/dist/{configure-CxnBcN95.js → configure-Dq4f8WPa.js} +3 -3
- package/dist/{configure-CDOF87Fk.js → configure-jDpF8lmx.js} +15 -15
- package/dist/{control-service-BYKXzY4f.js → control-service-BBnhN7aZ.js} +4 -4
- package/dist/control-ui/css/style.css +51 -0
- package/dist/control-ui/js/app.js +39 -0
- package/dist/control-ui/js/gateway.js +2 -0
- package/dist/control-ui/js/settings.js +71 -8
- package/dist/{control-ui-assets-B7moDVHX.js → control-ui-assets-6n-YayeS.js} +1 -1
- package/dist/{cron-cli-DCpsXkrw.js → cron-cli-D165ecaj.js} +10 -10
- package/dist/{daemon-cli-DSDcmWOi.js → daemon-cli-BccZzUb0.js} +11 -11
- package/dist/{daemon-runtime-mE1b-Q48.js → daemon-runtime-u01h46bE.js} +10 -10
- package/dist/{deliver-B4KZ6-oZ.js → deliver-BYdNAEqj.js} +7 -7
- package/dist/{deliver-C1HRkzPJ.js → deliver-C7NePF9Z.js} +1 -1
- package/dist/{devices-cli-x3jIP4Ih.js → devices-cli-D0N71nqX.js} +6 -6
- package/dist/{diagnostics-BRwihzJG.js → diagnostics-BrUo0gqs.js} +5 -5
- package/dist/{directory-cli-KgsAVTA0.js → directory-cli-aj7aXIBM.js} +7 -7
- package/dist/{dm-policy-shared-DlDAGtZL.js → dm-policy-shared-epgkayyq.js} +2 -2
- package/dist/{dns-cli-Cwr92Aiq.js → dns-cli-Dit09wbu.js} +3 -3
- package/dist/{dock-BhS32F6E.js → dock-BYiRZSgZ.js} +4 -4
- package/dist/{docs-cli-qE-blOLC.js → docs-cli-CyWGMA-e.js} +1 -1
- package/dist/{doctor-completion-CoftKlUX.js → doctor-completion-Ccb83Wl5.js} +2 -2
- package/dist/{doctor-completion-CHF_TwGQ.js → doctor-completion-oQemZItC.js} +1 -1
- package/dist/{doctor-config-flow-iIzSEQxb.js → doctor-config-flow-BXmHd2bb.js} +10 -10
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-BSgxsdMt.js → exec-approvals-cli-CZ-iTtNO.js} +13 -13
- package/dist/extensionAPI.js +1 -1
- package/dist/{fs-safe-CUjO1ca2.js → fs-safe-CTDvb1DF.js} +6 -6
- package/dist/{gateway-cli-SNaqDM7f.js → gateway-cli-C1zPKZ7B.js} +137 -121
- package/dist/{gateway-cli-G7fiXsQ6.js → gateway-cli-zbVm1MBQ.js} +32 -16
- package/dist/{gateway-rpc-5fREQe9Q.js → gateway-rpc-B1Wzoj99.js} +1 -1
- package/dist/{glass-ui-ws-CF0__vuO.js → glass-ui-ws-CvUFd4C6.js} +28 -9
- package/dist/{glass-ui-ws-he25wGFt.js → glass-ui-ws-D3tAmqKX.js} +104 -85
- package/dist/{health-q7706M36.js → health-DQEqLYg1.js} +1 -1
- package/dist/{health-en2N_Kqc.js → health-o847FIt1.js} +13 -13
- package/dist/{hooks-cli-ChQbBpyb.js → hooks-cli-D_UW9fc8.js} +2 -2
- package/dist/{hooks-cli-C4rVaLzZ.js → hooks-cli-sYjbF4I6.js} +77 -77
- package/dist/{image-CbyTdMd5.js → image-C3ugMkb5.js} +1 -1
- package/dist/{image-BWmcNF8N.js → image-lCS3o9xj.js} +3 -3
- package/dist/{image-ops-1OJMSAUX.js → image-ops-DYbDWaIA.js} +10 -10
- package/dist/index.js +73 -73
- package/dist/{inspect-CvbbCuoa.js → inspect-CNYyHVfH.js} +4 -4
- package/dist/{install-safe-path-D3Uz77u7.js → install-safe-path-D3mg1DMG.js} +11 -11
- package/dist/{installs-DQcRVF1U.js → installs-CYTVYWH_.js} +10 -10
- package/dist/{ir-DZam9q5M.js → ir-Dt4hOzxG.js} +6 -6
- package/dist/{lifecycle-core-C4HzGXA1.js → lifecycle-core-DxmxQdhS.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{local-roots-aAFLQGkY.js → local-roots-BBeKX7PX.js} +2 -2
- package/dist/{login-DODfJ3Dn.js → login-CnjdNmGD.js} +3 -3
- package/dist/{login-qr-CBRxijIg.js → login-qr-DUf6CM0M.js} +5 -5
- package/dist/{logs-cli-CfGj-dOg.js → logs-cli-BVd6h2-Q.js} +7 -7
- package/dist/{manager-D4LJSRyZ.js → manager-C1CfGzZ2.js} +13 -13
- package/dist/{markdown-tables-CEbN0fEm.js → markdown-tables-ZwP14ydw.js} +1 -1
- package/dist/{memory-cli-DDumUksr.js → memory-cli-DhkRAIdT.js} +14 -14
- package/dist/{model-tWhwnFf8.js → model-CeeOcylL.js} +1 -1
- package/dist/{model-catalog-8Son0J4O.js → model-catalog-CvbwxWuC.js} +4 -4
- package/dist/{model-picker-CAm2Bftd.js → model-picker-C2MqloOs.js} +3 -3
- package/dist/{model-selection-CyFvYcRt.js → model-selection-X1oLh3CE.js} +9 -9
- package/dist/{models-DOTpfa7b.js → models-Zol34e73.js} +2 -2
- package/dist/{models-cli-MJAY_Wg4.js → models-cli-BzcEA9oa.js} +3 -3
- package/dist/{models-cli-CBl45f7R.js → models-cli-DnMUzr15.js} +72 -72
- package/dist/{models-config-CFFjJPe7.js → models-config-CEMioDUi.js} +7 -7
- package/dist/{node-cli-DnfDOh1d.js → node-cli-BVJid4L_.js} +28 -28
- package/dist/{node-service-CD47Qpf1.js → node-service-CXzMs782.js} +1 -1
- package/dist/{nodes-cli-Ci3oxw8k.js → nodes-cli-BN2Nslim.js} +10 -10
- package/dist/{nodes-screen-8Bq7DiSa.js → nodes-screen-Cd49cSPb.js} +4 -4
- package/dist/{npm-registry-spec-C0CPT3vr.js → npm-registry-spec-DchndI6P.js} +9 -9
- package/dist/{onboard-DQdGJ1lE.js → onboard-CSseK0Co.js} +13 -13
- package/dist/{onboard-Bx02XPb1.js → onboard-CxOT_xD4.js} +2 -2
- package/dist/{onboard-channels-Bp89ZT6Q.js → onboard-channels-CUlITipG.js} +5 -5
- package/dist/{onboard-channels-Ct2eNYUC.js → onboard-channels-D-lh_Vh1.js} +1 -1
- package/dist/{onboard-custom-XiomtQr7.js → onboard-custom-DTcLdtA9.js} +3 -3
- package/dist/{onboard-helpers-DFvWPFhU.js → onboard-helpers-CdPNw25E.js} +8 -8
- package/dist/{onboard-hooks-C3ok8kqB.js → onboard-hooks-C_2_jpWg.js} +1 -1
- package/dist/{onboard-remote-BURDxwoE.js → onboard-remote-v6QMnyJD.js} +1 -1
- package/dist/{onboard-skills-CbzgBT1W.js → onboard-skills-CQtkRP20.js} +4 -4
- package/dist/{onboarding-Dnn_0VTy.js → onboarding-DktESmTv.js} +3 -3
- package/dist/{onboarding-DxUcsrKV.js → onboarding-Dn5agNG_.js} +13 -13
- package/dist/{onboarding.finalize-1kzzMLFM.js → onboarding.finalize-Bm-1Kdnh.js} +6 -6
- package/dist/{onboarding.finalize-Dwr-jEtL.js → onboarding.finalize-CTIZ1zvV.js} +75 -75
- package/dist/{onboarding.gateway-config-DKwJ5bWd.js → onboarding.gateway-config-CwnQkyO0.js} +14 -14
- package/dist/{openai-model-default-WqcGxyFM.js → openai-model-default-4kBA1_78.js} +2 -2
- package/dist/{outbound-wnv03tb3.js → outbound-_Ir3M05f.js} +4 -4
- package/dist/{outbound-attachment-Bw-c5Cdp.js → outbound-attachment-Qfh5dlsg.js} +2 -2
- package/dist/{pairing-cli-DSM82gJG.js → pairing-cli-C8UXBJ_A.js} +8 -8
- package/dist/{pairing-labels-DyXoD1DS.js → pairing-labels-Dxb898X5.js} +1 -1
- package/dist/{pairing-store-CK726Dzq.js → pairing-store-B8ktu-6j.js} +2 -2
- package/dist/{pairing-token-CX3NN_qj.js → pairing-token-AV-MMfVE.js} +7 -7
- package/dist/{paths-BBm9fwuG.js → paths-CT6jsi4E.js} +1 -1
- package/dist/{pi-auth-json-zHckislA.js → pi-auth-json-FpfHyEcu.js} +5 -5
- package/dist/{pi-embedded-BfEg6Wwb.js → pi-embedded-CYDMb5q0.js} +79 -3
- package/dist/{pi-embedded-helpers-GaCyI2oH.js → pi-embedded-helpers-BgRcgoC9.js} +4 -4
- package/dist/{pi-embedded-helpers-BgdB5kvy.js → pi-embedded-helpers-Bs4eMaNo.js} +6 -6
- package/dist/{pi-tools.policy-DRWb_Cax.js → pi-tools.policy-BBxnqCay.js} +4 -4
- package/dist/{plugin-auto-enable-CP0nONRL.js → plugin-auto-enable-DwIrzVOA.js} +2 -2
- package/dist/{plugin-registry-BMFEJ4FA.js → plugin-registry-CJGPW1-k.js} +1 -1
- package/dist/{plugin-registry-wAQeBSeD.js → plugin-registry-d0oZLl6y.js} +3 -3
- package/dist/plugin-sdk/agents/pi-embedded-runner/long-task-prompt.d.ts +5 -0
- package/dist/plugin-sdk/{channel-web-Ba27v-Om.js → channel-web-Dm-CzA1O.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-Bok_WQGW.js → reply-4HEU7aDS.js} +79 -3
- package/dist/plugin-sdk/{web-BoOAa0Xn.js → web-Cclb7FTq.js} +2 -2
- package/dist/{plugins-DKDeQZF0.js → plugins-BAyxWQSz.js} +2 -2
- package/dist/{plugins-cli-B36YKKla.js → plugins-cli-BWgjIJQL.js} +72 -72
- package/dist/{plugins-cli-DoJbbST7.js → plugins-cli-CL0tzkMo.js} +2 -2
- package/dist/{ports-BOmtxoTv.js → ports-OZQlocB7.js} +2 -2
- package/dist/{ports-DtW62rqS.js → ports-u9lWy2Jt.js} +1 -1
- package/dist/{program-4f7W2RMs.js → program-BHjH97Q_.js} +7 -7
- package/dist/{program-context-Y4KnAKNT.js → program-context-CXZHSZ4D.js} +39 -39
- package/dist/{prompt-select-styled-D0sLJ4TD.js → prompt-select-styled-BUFEoSlM.js} +38 -38
- package/dist/{prompt-select-styled-Dql_0SI0.js → prompt-select-styled-D8LXSUR7.js} +4 -4
- package/dist/{provider-auth-helpers-GSv3namf.js → provider-auth-helpers-BFHctF2f.js} +1 -1
- package/dist/{provider-auth-helpers-CJbHC_mv.js → provider-auth-helpers-CeAbh3lv.js} +5 -5
- package/dist/{push-apns-giplY7u-.js → push-apns-BylbQyP9.js} +1 -1
- package/dist/{push-apns-sxB8QxSj.js → push-apns-DqFdzIkc.js} +4 -4
- package/dist/{pw-ai-pQoxTh-a.js → pw-ai--LDjnyuN.js} +1 -1
- package/dist/{pw-ai-DQohWnzT.js → pw-ai-CfrnAHwA.js} +7 -7
- package/dist/{qmd-manager-CCUK1xoc.js → qmd-manager-DUNbG4Qr.js} +18 -18
- package/dist/{qr-cli-CejYwqsj.js → qr-cli-BZYa2gvF.js} +3 -3
- package/dist/{register.agent-_2tVQLMK.js → register.agent-DxAqRAt3.js} +6 -6
- package/dist/{register.agent-vd2BSsyE.js → register.agent-bzSGKS-l.js} +82 -82
- package/dist/register.configure-Boyfir72.js +148 -0
- package/dist/{register.configure-BVKwTrz8.js → register.configure-WS1nlSp8.js} +6 -6
- package/dist/{register.maintenance-XySU31jf.js → register.maintenance-B1QcUr38.js} +85 -85
- package/dist/{register.maintenance-BqYR2fop.js → register.maintenance-D_qMTrgD.js} +8 -8
- package/dist/{register.message-CCfWNWs3.js → register.message-CJF8gLAN.js} +64 -64
- package/dist/{register.message-DOyREWdG.js → register.message-zu3HGGff.js} +2 -2
- package/dist/{register.onboard-Dy_D_uMj.js → register.onboard-9dwNqCe6.js} +4 -4
- package/dist/{register.onboard-zmF-euog.js → register.onboard-CswoaT7q.js} +75 -75
- package/dist/{register.setup-DiGPa1Fw.js → register.setup-CvomtGGu.js} +78 -78
- package/dist/{register.setup-cE7gPp2m.js → register.setup-TcjUu6HC.js} +4 -4
- package/dist/{register.status-health-sessions-ksv1WnIs.js → register.status-health-sessions-CM1SX81r.js} +3 -3
- package/dist/{register.status-health-sessions-DWKL1rkz.js → register.status-health-sessions-CQMvbwr6.js} +76 -76
- package/dist/{register.subclis-Crt_IYK0.js → register.subclis-CVQASXaL.js} +9 -9
- package/dist/{replies-BMqtgBhh.js → replies-Dy92jzrz.js} +1 -1
- package/dist/{reply-CjYJHt_H.js → reply-CpNWtuU4.js} +216 -140
- package/dist/{reply-prefix-CE2YmmsD.js → reply-prefix-BLOOs1aW.js} +1 -1
- package/dist/{resolve-route-BMoTaVAH.js → resolve-route-BcnaXYvh.js} +2 -2
- package/dist/{routes-BAZTZNuQ.js → routes-CVwRcA9D.js} +8 -8
- package/dist/{rpc-Co5PQ3IJ.js → rpc-CZFfee1J.js} +1 -1
- package/dist/{run-main-bOlPbL7t.js → run-main-Dq6tfDry.js} +14 -14
- package/dist/{runner-DRv0uCK_.js → runner-BAVs-p6Z.js} +20 -20
- package/dist/{runner-B0AbN8wV.js → runner-cJ3m-bxK.js} +1 -1
- package/dist/{sandbox-B6N8cV4d.js → sandbox-HZ_uilsn.js} +18 -18
- package/dist/{sandbox-cli-DwzaNjIJ.js → sandbox-cli-wZtiyo8g.js} +20 -20
- package/dist/{security-cli-D5BWzqEJ.js → security-cli-BESmRIrl.js} +36 -36
- package/dist/{send-CQVnyJyF.js → send-BVBCh27_.js} +13 -13
- package/dist/{send-DVm0du0_.js → send-CXFTeD_J.js} +4 -4
- package/dist/{send-B3RdXvjC.js → send-DT-5buW5.js} +6 -6
- package/dist/{send-9SapUCg7.js → send-DsSI8z3F.js} +6 -6
- package/dist/{send-Bm4ULEzh.js → send-JWV62VbW.js} +6 -6
- package/dist/{server-context-CCBZN8a0.js → server-context-VlF1_hYj.js} +5 -5
- package/dist/{server-methods-VimYvcpY.js → server-methods-B0pdetGJ.js} +130 -64
- package/dist/{server-methods-CiwWwj6K.js → server-methods-IBEaQXPX.js} +177 -111
- package/dist/{server-node-events-DYC45lKC.js → server-node-events-BACmfyjo.js} +64 -64
- package/dist/{server-node-events-CHmLiFNV.js → server-node-events-CyDj7Txd.js} +2 -2
- package/dist/{service-osK70kTZ.js → service-D80PyJxB.js} +15 -15
- package/dist/{session-DsJGtM7g.js → session-6Qyc4cBQ.js} +2 -2
- package/dist/{session-dirs-Dgz7kkUM.js → session-dirs-DPzjjra2.js} +2 -2
- package/dist/{sessions-Cpgnq0pA.js → sessions-jTAGYjWl.js} +13 -13
- package/dist/{shared-DnmJ0ABB.js → shared-BV7WhIkY.js} +1 -1
- package/dist/{shared-73T9fyuK.js → shared-BfhtOZAz.js} +3 -3
- package/dist/{skill-commands-Cxw-jNxU.js → skill-commands-ZXbEITKi.js} +5 -5
- package/dist/{skill-scanner-hMtQbWPV.js → skill-scanner-w3DJvw1Q.js} +5 -5
- package/dist/{skills-6jdJQ5ZL.js → skills-DqQUtOph.js} +4 -4
- package/dist/{skills-cli-DXkx4vNV.js → skills-cli-D3lePXkf.js} +7 -7
- package/dist/{skills-install-CWVdJkLn.js → skills-install-HGYidhrv.js} +3 -3
- package/dist/{skills-status-C3ptXwnh.js → skills-status-Cjsh8we0.js} +1 -1
- package/dist/{sqlite-Dx3J_aSE.js → sqlite-BV5ILFtC.js} +12 -12
- package/dist/{status-DxhtJtzE.js → status-BJtbD-cG.js} +2 -2
- package/dist/{status-Dt_MXoNa.js → status-DUeTrQSz.js} +1 -1
- package/dist/{status-CA5wJHMj.js → status-DzHL-eVu.js} +3 -3
- package/dist/{status-DEpM69Pd.js → status-nzJEZmNT.js} +25 -25
- package/dist/{status.update-CG0ciGaf.js → status.update-TlYwuzTa.js} +3 -3
- package/dist/{store-r1DJSDq-.js → store-DvtcmOKj.js} +5 -5
- package/dist/{subagent-registry-BPwn3Qm7.js → subagent-registry-CzS4CfnV.js} +79 -3
- package/dist/{symi-root-CrGJbkzf.js → symi-root-MF6_6SCS.js} +2 -2
- package/dist/{system-cli-DFZNGx0i.js → system-cli-C2yhGP4C.js} +7 -7
- package/dist/{systemd-DT6SbCim.js → systemd-CevHlgD4.js} +5 -5
- package/dist/{systemd-hints-xYZbFny_.js → systemd-hints-DmgRnw1L.js} +6 -6
- package/dist/{systemd-linger-DCskIKcx.js → systemd-linger-ScxQ1_H4.js} +1 -1
- package/dist/{tables-BEzT0Da4.js → tables-C38rzF6E.js} +1 -1
- package/dist/{target-errors-7AvoVa10.js → target-errors-CCz79CmV.js} +4 -4
- package/dist/{tool-images-DvUBlqjX.js → tool-images-B-pqX3nX.js} +1 -1
- package/dist/{tui-DjPsMdL6.js → tui-D2MOx3Kx.js} +7 -7
- package/dist/{tui-cli-pWD_NrUR.js → tui-cli-B2ii7u23.js} +28 -28
- package/dist/{unified-runner-CVkyzT1I.js → unified-runner-BtO3UQSd.js} +93 -17
- package/dist/{update-Ya0e-JnM.js → update-Don6XTH9.js} +3 -3
- package/dist/{update-check-7EzEjSzb.js → update-check-DCo5RtKp.js} +5 -5
- package/dist/{update-cli-Dh_dfprI.js → update-cli-DRODEMSI.js} +8 -8
- package/dist/{update-cli-Dv4c5Gup.js → update-cli-gKtjyXlD.js} +95 -95
- package/dist/{update-runner-MMFI1UZ0.js → update-runner-AsKAxe31.js} +15 -15
- package/dist/{update-runner-CG_kbbGR.js → update-runner-JcdOHr71.js} +1 -1
- package/dist/{web-DCBOD-Vj.js → web-BIzWZFiN.js} +1 -1
- package/dist/{web-BUc-ts5b.js → web-DGo16lWn.js} +6 -6
- package/dist/{web-CJk-lv93.js → web-DKwOxo8E.js} +1 -1
- package/dist/web-sefqR11J.js +110 -0
- package/dist/{webhooks-cli-BRxe4uCg.js → webhooks-cli-DbnQ2BVE.js} +4 -4
- package/dist/{whatsapp-actions-ChO_shrk.js → whatsapp-actions-CqXxtCoj.js} +15 -15
- package/dist/{with-timeout-CtVdu_1U.js → with-timeout-Cm5EhxG_.js} +1 -1
- package/dist/{workspace-dirs-GpkFi6Kw.js → workspace-dirs-DKu48umx.js} +1 -1
- package/dist/{wsl-q8spwrME.js → wsl-xNOi_Ch8.js} +2 -2
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/google-antigravity-auth/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/learning-loop/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +12 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/outlook/package.json +1 -1
- package/extensions/pipeline/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/skills/long-task/SKILL.md +57 -0
- package/skills/long-task/scripts/detach-task.sh +135 -0
- package/dist/register.configure-D-XV6_Nb.js +0 -148
- package/dist/web-CfVd3Mhp.js +0 -110
|
@@ -7,7 +7,7 @@ import { t as ensurePiAuthJsonFromAuthProfiles } from "./pi-auth-json-LXkL5WS_.j
|
|
|
7
7
|
import { i as resolveForwardCompatModel, r as ANTIGRAVITY_OPUS_46_FORWARD_COMPAT_CANDIDATES } from "./model-DiCH8rkE.js";
|
|
8
8
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Do3xMEtM.js";
|
|
9
9
|
import { C as parseDurationMs, i as loadConfig } from "./config-BNTB6qj8.js";
|
|
10
|
-
import { J as runAgentTurn, _n as DEFAULT_OAUTH_WARN_MS, _t as describeFailoverError, an as formatUsageWindowSummary, gn as maskApiKey, on as resolveUsageProviderId, rn as loadProviderUsageSummary, vn as buildAuthHealthSummary, yn as formatRemainingShort } from "./subagent-registry-
|
|
10
|
+
import { J as runAgentTurn, _n as DEFAULT_OAUTH_WARN_MS, _t as describeFailoverError, an as formatUsageWindowSummary, gn as maskApiKey, on as resolveUsageProviderId, rn as loadProviderUsageSummary, vn as buildAuthHealthSummary, yn as formatRemainingShort } from "./subagent-registry-CzS4CfnV.js";
|
|
11
11
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DNdWAq7b.js";
|
|
12
12
|
import { t as ensureSymiModelsJson } from "./models-config-Be8DRFkB.js";
|
|
13
13
|
import { n as loadModelCatalog } from "./model-catalog-DNvgFPZn.js";
|
|
@@ -21,7 +21,7 @@ import { n as redactSecrets } from "./format-DVLB9DNB.js";
|
|
|
21
21
|
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-DdxPzyOH.js";
|
|
22
22
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-Cmrk2TPo.js";
|
|
23
23
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
24
|
-
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
24
|
+
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-BFHctF2f.js";
|
|
25
25
|
import path from "node:path";
|
|
26
26
|
import fs from "node:fs/promises";
|
|
27
27
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
@@ -14,7 +14,7 @@ import "./client-T3qcxXru.js";
|
|
|
14
14
|
import "./call-DKi-hnaF.js";
|
|
15
15
|
import "./message-channel-C9dERklz.js";
|
|
16
16
|
import "./pairing-token-Byh6drgn.js";
|
|
17
|
-
import "./subagent-registry-
|
|
17
|
+
import "./subagent-registry-CzS4CfnV.js";
|
|
18
18
|
import "./sessions-Cfa6JEB3.js";
|
|
19
19
|
import "./tokens-Csntmwwn.js";
|
|
20
20
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -104,8 +104,8 @@ import "./table-D01d2GuY.js";
|
|
|
104
104
|
import "./shared-DdxPzyOH.js";
|
|
105
105
|
import "./auth-token-Cmrk2TPo.js";
|
|
106
106
|
import "./logging-BGewRZy0.js";
|
|
107
|
-
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-
|
|
108
|
-
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-
|
|
107
|
+
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-BFHctF2f.js";
|
|
108
|
+
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-Zol34e73.js";
|
|
109
109
|
|
|
110
110
|
//#region src/cli/models-cli.ts
|
|
111
111
|
function runModelsCommand(action) {
|
|
@@ -1,119 +1,119 @@
|
|
|
1
1
|
import { t as CONFIG_PATH } from "./paths-Cqn-zk3M.js";
|
|
2
2
|
import { B as theme, R as colorize, S as shortenHomePath, z as isRich$1 } from "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { Yt as describeFailoverError, _r as formatRemainingShort, gr as buildAuthHealthSummary, gt as loadProviderUsageSummary, hr as DEFAULT_OAUTH_WARN_MS, mr as maskApiKey, vt as formatUsageWindowSummary, yt as resolveUsageProviderId, zt as runAgentTurn } from "./reply-
|
|
4
|
+
import { Yt as describeFailoverError, _r as formatRemainingShort, gr as buildAuthHealthSummary, gt as loadProviderUsageSummary, hr as DEFAULT_OAUTH_WARN_MS, mr as maskApiKey, vt as formatUsageWindowSummary, yt as resolveUsageProviderId, zt as runAgentTurn } from "./reply-CpNWtuU4.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
8
|
-
import { D as resolveDefaultAgentWorkspaceDir, a as resolveAgentModelFallbacksOverride, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, o as resolveAgentModelPrimary } from "./agent-scope-
|
|
9
|
-
import { At as ensureAuthProfileStore, Dt as setAuthProfileOrder, Ft as resolveSymiAgentDir, G as getCustomProviderApiKey, Gt as DEFAULT_MODEL, J as resolveAwsSdkEnvVarName, Kt as DEFAULT_PROVIDER, Ot as upsertAuthProfile, Pt as resolveAuthStorePathForDisplay, Tt as listProfilesForProvider, Vt as resolveAuthProfileDisplayLabel, Y as resolveEnvApiKey, Z as getShellEnvAppliedKeys, _t as resolveProfileUnusableUntilForDisplay, ft as resolveAuthProfileOrder, g as resolveModelRefFromString, i as findNormalizedProviderValue, l as normalizeProviderId, m as resolveDefaultModelForAgent, nt as shouldEnableShellEnvFallback, p as resolveConfiguredModelRef, q as resolveApiKeyForProvider, r as buildModelAliasIndex, s as modelKey, u as parseModelRef } from "./model-selection-
|
|
8
|
+
import { D as resolveDefaultAgentWorkspaceDir, a as resolveAgentModelFallbacksOverride, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, o as resolveAgentModelPrimary } from "./agent-scope-BRwEc2pG.js";
|
|
9
|
+
import { At as ensureAuthProfileStore, Dt as setAuthProfileOrder, Ft as resolveSymiAgentDir, G as getCustomProviderApiKey, Gt as DEFAULT_MODEL, J as resolveAwsSdkEnvVarName, Kt as DEFAULT_PROVIDER, Ot as upsertAuthProfile, Pt as resolveAuthStorePathForDisplay, Tt as listProfilesForProvider, Vt as resolveAuthProfileDisplayLabel, Y as resolveEnvApiKey, Z as getShellEnvAppliedKeys, _t as resolveProfileUnusableUntilForDisplay, ft as resolveAuthProfileOrder, g as resolveModelRefFromString, i as findNormalizedProviderValue, l as normalizeProviderId, m as resolveDefaultModelForAgent, nt as shouldEnableShellEnvFallback, p as resolveConfiguredModelRef, q as resolveApiKeyForProvider, r as buildModelAliasIndex, s as modelKey, u as parseModelRef } from "./model-selection-X1oLh3CE.js";
|
|
10
10
|
import "./github-copilot-token-DAu1a6BX.js";
|
|
11
11
|
import { t as formatCliCommand } from "./command-format-COaS-S7B.js";
|
|
12
12
|
import "./boolean-BsqeuxE6.js";
|
|
13
13
|
import "./env-DPCHYPeH.js";
|
|
14
14
|
import "./message-channel-aT-I_DTX.js";
|
|
15
|
-
import "./send-
|
|
16
|
-
import { C as parseDurationMs, i as loadConfig } from "./config-
|
|
15
|
+
import "./send-BVBCh27_.js";
|
|
16
|
+
import { C as parseDurationMs, i as loadConfig } from "./config-tNauHpdq.js";
|
|
17
17
|
import "./manifest-registry-C4BxOMWX.js";
|
|
18
|
-
import "./runner-
|
|
19
|
-
import "./image-
|
|
20
|
-
import { t as ensureSymiModelsJson } from "./models-config-
|
|
18
|
+
import "./runner-BAVs-p6Z.js";
|
|
19
|
+
import "./image-lCS3o9xj.js";
|
|
20
|
+
import { t as ensureSymiModelsJson } from "./models-config-CEMioDUi.js";
|
|
21
21
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-4uUnLc3n.js";
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./sandbox-
|
|
24
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers-Bs4eMaNo.js";
|
|
23
|
+
import "./sandbox-HZ_uilsn.js";
|
|
24
|
+
import "./chrome-CSJzpT9Z.js";
|
|
25
25
|
import "./tailscale-D5dKabOc.js";
|
|
26
26
|
import "./auth-B741uFtk.js";
|
|
27
|
-
import "./server-context-
|
|
27
|
+
import "./server-context-VlF1_hYj.js";
|
|
28
28
|
import "./frontmatter-DWQhtOo7.js";
|
|
29
|
-
import "./skills-
|
|
30
|
-
import "./routes-
|
|
29
|
+
import "./skills-DqQUtOph.js";
|
|
30
|
+
import "./routes-CVwRcA9D.js";
|
|
31
31
|
import "./redact-f-Q-hFt_.js";
|
|
32
32
|
import "./errors-BF3TeRH2.js";
|
|
33
|
-
import "./fs-safe-
|
|
34
|
-
import "./paths-
|
|
33
|
+
import "./fs-safe-CTDvb1DF.js";
|
|
34
|
+
import "./paths-CT6jsi4E.js";
|
|
35
35
|
import "./ssrf-BCYMnxkM.js";
|
|
36
|
-
import "./image-ops-
|
|
37
|
-
import "./store-
|
|
38
|
-
import "./ports-
|
|
36
|
+
import "./image-ops-DYbDWaIA.js";
|
|
37
|
+
import "./store-DvtcmOKj.js";
|
|
38
|
+
import "./ports-OZQlocB7.js";
|
|
39
39
|
import "./trash-DcMh1i4B.js";
|
|
40
|
-
import "./sessions-
|
|
41
|
-
import "./dock-
|
|
42
|
-
import "./plugins-
|
|
43
|
-
import "./accounts-
|
|
44
|
-
import "./accounts-
|
|
45
|
-
import "./accounts-
|
|
46
|
-
import "./bindings-
|
|
40
|
+
import "./sessions-jTAGYjWl.js";
|
|
41
|
+
import "./dock-BYiRZSgZ.js";
|
|
42
|
+
import "./plugins-BAyxWQSz.js";
|
|
43
|
+
import "./accounts-Cd816n6l.js";
|
|
44
|
+
import "./accounts-CokRskCl.js";
|
|
45
|
+
import "./accounts-mN_EcgxC.js";
|
|
46
|
+
import "./bindings-ChzePa8q.js";
|
|
47
47
|
import "./logging-w5jq5901.js";
|
|
48
|
-
import "./send-
|
|
48
|
+
import "./send-CXFTeD_J.js";
|
|
49
49
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-CyhzMxFA.js";
|
|
50
|
-
import "./tool-images-
|
|
50
|
+
import "./tool-images-B-pqX3nX.js";
|
|
51
51
|
import "./tool-display-D8N3rsYt.js";
|
|
52
52
|
import "./fetch-guard-DOPkVbh3.js";
|
|
53
|
-
import "./api-key-rotation-
|
|
54
|
-
import "./local-roots-
|
|
55
|
-
import "./sqlite-
|
|
56
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
53
|
+
import "./api-key-rotation-CEr3lKih.js";
|
|
54
|
+
import "./local-roots-BBeKX7PX.js";
|
|
55
|
+
import "./sqlite-BV5ILFtC.js";
|
|
56
|
+
import { n as loadModelCatalog } from "./model-catalog-CvbwxWuC.js";
|
|
57
57
|
import "./tokens-BuceUQDl.js";
|
|
58
|
-
import "./with-timeout-
|
|
59
|
-
import "./deliver-
|
|
58
|
+
import "./with-timeout-Cm5EhxG_.js";
|
|
59
|
+
import "./deliver-BYdNAEqj.js";
|
|
60
60
|
import "./diagnostic-CH0skkp6.js";
|
|
61
61
|
import "./diagnostic-session-state-CUslJyKP.js";
|
|
62
|
-
import "./send-
|
|
63
|
-
import { i as resolveForwardCompatModel, r as ANTIGRAVITY_OPUS_46_FORWARD_COMPAT_CANDIDATES } from "./model-
|
|
64
|
-
import "./reply-prefix-
|
|
65
|
-
import "./memory-cli-
|
|
66
|
-
import "./manager-
|
|
62
|
+
import "./send-DT-5buW5.js";
|
|
63
|
+
import { i as resolveForwardCompatModel, r as ANTIGRAVITY_OPUS_46_FORWARD_COMPAT_CANDIDATES } from "./model-CeeOcylL.js";
|
|
64
|
+
import "./reply-prefix-BLOOs1aW.js";
|
|
65
|
+
import "./memory-cli-DhkRAIdT.js";
|
|
66
|
+
import "./manager-C1CfGzZ2.js";
|
|
67
67
|
import "./retry-BoS4e4X_.js";
|
|
68
|
-
import "./target-errors-
|
|
68
|
+
import "./target-errors-CCz79CmV.js";
|
|
69
69
|
import "./chunk-1dhPX1NK.js";
|
|
70
|
-
import "./markdown-tables-
|
|
71
|
-
import "./ir-
|
|
70
|
+
import "./markdown-tables-ZwP14ydw.js";
|
|
71
|
+
import "./ir-Dt4hOzxG.js";
|
|
72
72
|
import "./render-CXDO_kgw.js";
|
|
73
|
-
import "./commands-
|
|
74
|
-
import "./commands-registry-
|
|
75
|
-
import "./client-
|
|
76
|
-
import "./call-
|
|
77
|
-
import "./pairing-token-
|
|
73
|
+
import "./commands-CtocZ4Lg.js";
|
|
74
|
+
import "./commands-registry-BZ0ZSQpM.js";
|
|
75
|
+
import "./client-Bj_vTpri.js";
|
|
76
|
+
import "./call-tmHtVCkn.js";
|
|
77
|
+
import "./pairing-token-AV-MMfVE.js";
|
|
78
78
|
import "./channel-activity-BOiuJS3t.js";
|
|
79
79
|
import "./fetch-DTNGXEzX.js";
|
|
80
|
-
import "./tables-
|
|
81
|
-
import "./send-
|
|
82
|
-
import "./pairing-store-
|
|
80
|
+
import "./tables-C38rzF6E.js";
|
|
81
|
+
import "./send-JWV62VbW.js";
|
|
82
|
+
import "./pairing-store-B8ktu-6j.js";
|
|
83
83
|
import "./proxy-DU7W9XSc.js";
|
|
84
84
|
import { t as formatDocsLink } from "./links-3i1eUga4.js";
|
|
85
85
|
import { n as runCommandWithRuntime, t as resolveOptionFromCommand } from "./cli-utils-DN_hM6ov.js";
|
|
86
86
|
import "./help-format-B_-M23wP.js";
|
|
87
87
|
import { r as withProgressTotals } from "./progress-jIePzvGA.js";
|
|
88
|
-
import "./resolve-route-
|
|
89
|
-
import "./replies-
|
|
90
|
-
import "./skill-commands-
|
|
91
|
-
import "./workspace-dirs-
|
|
92
|
-
import { t as ensurePiAuthJsonFromAuthProfiles } from "./pi-auth-json-
|
|
88
|
+
import "./resolve-route-BcnaXYvh.js";
|
|
89
|
+
import "./replies-Dy92jzrz.js";
|
|
90
|
+
import "./skill-commands-ZXbEITKi.js";
|
|
91
|
+
import "./workspace-dirs-DKu48umx.js";
|
|
92
|
+
import { t as ensurePiAuthJsonFromAuthProfiles } from "./pi-auth-json-FpfHyEcu.js";
|
|
93
93
|
import "./session-cost-usage-BXAI7CNH.js";
|
|
94
|
-
import "./outbound-attachment-
|
|
94
|
+
import "./outbound-attachment-Qfh5dlsg.js";
|
|
95
95
|
import "./delivery-queue-CAxX6nGq.js";
|
|
96
|
-
import "./send-
|
|
97
|
-
import { f as openUrl } from "./onboard-helpers-
|
|
96
|
+
import "./send-DsSI8z3F.js";
|
|
97
|
+
import { f as openUrl } from "./onboard-helpers-CdPNw25E.js";
|
|
98
98
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CnkMpSXt.js";
|
|
99
|
-
import "./pairing-labels-
|
|
99
|
+
import "./pairing-labels-Dxb898X5.js";
|
|
100
100
|
import "./exec-approvals-DXM2pQYL.js";
|
|
101
|
-
import "./nodes-screen-
|
|
102
|
-
import "./pi-tools.policy-
|
|
103
|
-
import "./control-service-
|
|
101
|
+
import "./nodes-screen-Cd49cSPb.js";
|
|
102
|
+
import "./pi-tools.policy-BBxnqCay.js";
|
|
103
|
+
import "./control-service-BBnhN7aZ.js";
|
|
104
104
|
import "./stagger-CvFURHzt.js";
|
|
105
|
-
import "./channel-selection-
|
|
105
|
+
import "./channel-selection-DaJDux-Q.js";
|
|
106
106
|
import "./note-DQ9BvHF2.js";
|
|
107
107
|
import { t as createClackPrompter } from "./clack-prompter-DMuVyYP2.js";
|
|
108
108
|
import { t as renderTable } from "./table-BKlH0YlA.js";
|
|
109
109
|
import { t as inferParamBFromIdOrName } from "./model-param-b-Cp9d4e-0.js";
|
|
110
110
|
import { n as redactSecrets } from "./format-B0yJsjEo.js";
|
|
111
|
-
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-
|
|
112
|
-
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-
|
|
111
|
+
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-BfhtOZAz.js";
|
|
112
|
+
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-83A2btbE.js";
|
|
113
113
|
import { n as logConfigUpdated } from "./logging-KpicI3yD.js";
|
|
114
|
-
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-
|
|
114
|
+
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-CeAbh3lv.js";
|
|
115
115
|
import path from "node:path";
|
|
116
|
-
import
|
|
116
|
+
import fsPromises from "node:fs/promises";
|
|
117
117
|
import crypto from "node:crypto";
|
|
118
118
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
119
119
|
import { Type } from "@sinclair/typebox";
|
|
@@ -947,8 +947,8 @@ function printModelTable(rows, runtime, opts = {}) {
|
|
|
947
947
|
//#region src/commands/models/list.list-command.ts
|
|
948
948
|
async function modelsListCommand(opts, runtime) {
|
|
949
949
|
ensureFlagCompatibility(opts);
|
|
950
|
-
const { loadConfig } = await import("./config-
|
|
951
|
-
const { ensureAuthProfileStore } = await import("./model-selection-
|
|
950
|
+
const { loadConfig } = await import("./config-tNauHpdq.js").then((n) => n.t);
|
|
951
|
+
const { ensureAuthProfileStore } = await import("./model-selection-X1oLh3CE.js").then((n) => n.dt);
|
|
952
952
|
const cfg = loadConfig();
|
|
953
953
|
const authStore = ensureAuthProfileStore();
|
|
954
954
|
const providerFilter = (() => {
|
|
@@ -1008,7 +1008,7 @@ async function modelsListCommand(opts, runtime) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
if (!model) {
|
|
1011
|
-
const { resolveModel } = await import("./model-
|
|
1011
|
+
const { resolveModel } = await import("./model-CeeOcylL.js").then((n) => n.t);
|
|
1012
1012
|
model = resolveModel(entry.ref.provider, entry.ref.model, void 0, cfg).model;
|
|
1013
1013
|
}
|
|
1014
1014
|
if (opts.local && model && !isLocalBaseUrl(model.baseUrl)) continue;
|
|
@@ -1265,7 +1265,7 @@ async function probeTarget(params) {
|
|
|
1265
1265
|
error: "No model available for probe"
|
|
1266
1266
|
};
|
|
1267
1267
|
const sessionId = `probe-${target.provider}-${crypto.randomUUID()}`;
|
|
1268
|
-
await
|
|
1268
|
+
await fsPromises.mkdir(sessionDir, { recursive: true });
|
|
1269
1269
|
const start = Date.now();
|
|
1270
1270
|
try {
|
|
1271
1271
|
await runAgentTurn({
|
|
@@ -1320,7 +1320,7 @@ async function runTargetsWithConcurrency(params) {
|
|
|
1320
1320
|
const agentDir = resolveSymiAgentDir();
|
|
1321
1321
|
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
1322
1322
|
const sessionDir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
1323
|
-
await
|
|
1323
|
+
await fsPromises.mkdir(workspaceDir, { recursive: true });
|
|
1324
1324
|
let completed = 0;
|
|
1325
1325
|
const results = Array.from({ length: targets.length });
|
|
1326
1326
|
let cursor = 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as isRecord } from "./utils-B-0b9bGM.js";
|
|
2
|
-
import { A as resolveImplicitProviders, D as normalizeProviders, Ft as resolveSymiAgentDir, O as resolveImplicitBedrockProvider, k as resolveImplicitCopilotProvider } from "./model-selection-
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
2
|
+
import { A as resolveImplicitProviders, D as normalizeProviders, Ft as resolveSymiAgentDir, O as resolveImplicitBedrockProvider, k as resolveImplicitCopilotProvider } from "./model-selection-X1oLh3CE.js";
|
|
3
|
+
import { i as loadConfig } from "./config-tNauHpdq.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsPromises from "node:fs/promises";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/models-config.ts
|
|
8
8
|
const DEFAULT_MODE = "merge";
|
|
@@ -44,7 +44,7 @@ function mergeProviders(params) {
|
|
|
44
44
|
}
|
|
45
45
|
async function readJson(pathname) {
|
|
46
46
|
try {
|
|
47
|
-
const raw = await
|
|
47
|
+
const raw = await fsPromises.readFile(pathname, "utf8");
|
|
48
48
|
return JSON.parse(raw);
|
|
49
49
|
} catch {
|
|
50
50
|
return null;
|
|
@@ -92,7 +92,7 @@ async function ensureSymiModelsJson(config, agentDirOverride) {
|
|
|
92
92
|
});
|
|
93
93
|
const next = `${JSON.stringify({ providers: normalizedProviders }, null, 2)}\n`;
|
|
94
94
|
try {
|
|
95
|
-
existingRaw = await
|
|
95
|
+
existingRaw = await fsPromises.readFile(targetPath, "utf8");
|
|
96
96
|
} catch {
|
|
97
97
|
existingRaw = "";
|
|
98
98
|
}
|
|
@@ -100,11 +100,11 @@ async function ensureSymiModelsJson(config, agentDirOverride) {
|
|
|
100
100
|
agentDir,
|
|
101
101
|
wrote: false
|
|
102
102
|
};
|
|
103
|
-
await
|
|
103
|
+
await fsPromises.mkdir(agentDir, {
|
|
104
104
|
recursive: true,
|
|
105
105
|
mode: 448
|
|
106
106
|
});
|
|
107
|
-
await
|
|
107
|
+
await fsPromises.writeFile(targetPath, next, { mode: 384 });
|
|
108
108
|
return {
|
|
109
109
|
agentDir,
|
|
110
110
|
wrote: true
|
|
@@ -3,51 +3,51 @@ import { B as theme, R as colorize } from "./utils-B-0b9bGM.js";
|
|
|
3
3
|
import "./registry-Cja8eT7G.js";
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
|
|
5
5
|
import "./exec-CWkblSrI.js";
|
|
6
|
-
import { r as resolveAgentConfig } from "./agent-scope-
|
|
7
|
-
import "./model-selection-
|
|
6
|
+
import { r as resolveAgentConfig } from "./agent-scope-BRwEc2pG.js";
|
|
7
|
+
import "./model-selection-X1oLh3CE.js";
|
|
8
8
|
import "./github-copilot-token-DAu1a6BX.js";
|
|
9
9
|
import { t as formatCliCommand } from "./command-format-COaS-S7B.js";
|
|
10
10
|
import "./boolean-BsqeuxE6.js";
|
|
11
11
|
import "./env-DPCHYPeH.js";
|
|
12
12
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-aT-I_DTX.js";
|
|
13
|
-
import { H as VERSION, i as loadConfig } from "./config-
|
|
13
|
+
import { H as VERSION, i as loadConfig } from "./config-tNauHpdq.js";
|
|
14
14
|
import { _ as sanitizeHostExecEnv } from "./manifest-registry-C4BxOMWX.js";
|
|
15
|
-
import "./chrome-
|
|
15
|
+
import "./chrome-CSJzpT9Z.js";
|
|
16
16
|
import "./tailscale-D5dKabOc.js";
|
|
17
17
|
import "./auth-B741uFtk.js";
|
|
18
|
-
import { i as resolveBrowserConfig } from "./server-context-
|
|
19
|
-
import "./routes-
|
|
18
|
+
import { i as resolveBrowserConfig } from "./server-context-VlF1_hYj.js";
|
|
19
|
+
import "./routes-CVwRcA9D.js";
|
|
20
20
|
import "./redact-f-Q-hFt_.js";
|
|
21
21
|
import "./errors-BF3TeRH2.js";
|
|
22
|
-
import "./fs-safe-
|
|
23
|
-
import "./paths-
|
|
22
|
+
import "./fs-safe-CTDvb1DF.js";
|
|
23
|
+
import "./paths-CT6jsi4E.js";
|
|
24
24
|
import "./ssrf-BCYMnxkM.js";
|
|
25
|
-
import { c as detectMime } from "./image-ops-
|
|
26
|
-
import "./store-
|
|
27
|
-
import "./ports-
|
|
25
|
+
import { c as detectMime } from "./image-ops-DYbDWaIA.js";
|
|
26
|
+
import "./store-DvtcmOKj.js";
|
|
27
|
+
import "./ports-OZQlocB7.js";
|
|
28
28
|
import "./trash-DcMh1i4B.js";
|
|
29
29
|
import "./logging-w5jq5901.js";
|
|
30
|
-
import { n as createBrowserRouteDispatcher, r as getMachineDisplayName, t as withTimeout } from "./with-timeout-
|
|
31
|
-
import { Zt as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-
|
|
32
|
-
import "./pairing-token-
|
|
30
|
+
import { n as createBrowserRouteDispatcher, r as getMachineDisplayName, t as withTimeout } from "./with-timeout-Cm5EhxG_.js";
|
|
31
|
+
import { Zt as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-Bj_vTpri.js";
|
|
32
|
+
import "./pairing-token-AV-MMfVE.js";
|
|
33
33
|
import { t as formatDocsLink } from "./links-3i1eUga4.js";
|
|
34
34
|
import { t as formatHelpExamples } from "./help-format-B_-M23wP.js";
|
|
35
35
|
import { _ as getTrustedSafeBinDirs, a as mergeExecApprovalsSocketDefaults, c as readExecApprovalsSnapshot, d as resolveExecApprovals, g as resolveSafeBins, h as evaluateShellAllowlist, l as recordAllowlistUse, m as evaluateExecAllowlist, n as addAllowlistEntry, p as saveExecApprovals, r as ensureExecApprovals, s as normalizeExecApprovals, u as requiresExecApproval, v as analyzeArgvCommand, x as requestJsonlSocket } from "./exec-approvals-DXM2pQYL.js";
|
|
36
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
36
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-BBnhN7aZ.js";
|
|
37
37
|
import { g as resolveNodeWindowsTaskName, h as resolveNodeSystemdServiceName, m as resolveNodeLaunchAgentLabel, s as formatNodeServiceDescription } from "./constants-CafH8-8D.js";
|
|
38
38
|
import { t as ensureSymiCliOnPath } from "./path-env-BaQ2E7uD.js";
|
|
39
39
|
import "./runtime-guard-Dik20CVM.js";
|
|
40
|
-
import { c as buildNodeServiceEnvironment, g as resolveNodeProgramArguments, o as resolveGatewayDevMode, p as resolvePreferredNodePath, r as isGatewayDaemonRuntime, s as emitNodeRuntimeWarning, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
41
|
-
import "./systemd-
|
|
42
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
43
|
-
import { a as createCliStatusTextStyles, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, m as buildDaemonServiceSnapshot, r as runServiceStop, t as runServiceRestart } from "./lifecycle-core-
|
|
44
|
-
import { s as formatRuntimeStatus } from "./systemd-hints-
|
|
40
|
+
import { c as buildNodeServiceEnvironment, g as resolveNodeProgramArguments, o as resolveGatewayDevMode, p as resolvePreferredNodePath, r as isGatewayDaemonRuntime, s as emitNodeRuntimeWarning, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-u01h46bE.js";
|
|
41
|
+
import "./systemd-CevHlgD4.js";
|
|
42
|
+
import { s as resolveGatewayLogPaths } from "./service-D80PyJxB.js";
|
|
43
|
+
import { a as createCliStatusTextStyles, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, m as buildDaemonServiceSnapshot, r as runServiceStop, t as runServiceRestart } from "./lifecycle-core-DxmxQdhS.js";
|
|
44
|
+
import { s as formatRuntimeStatus } from "./systemd-hints-DmgRnw1L.js";
|
|
45
45
|
import { t as parsePort } from "./parse-port-DnJYkByg.js";
|
|
46
|
-
import { t as resolveNodeService } from "./node-service-
|
|
46
|
+
import { t as resolveNodeService } from "./node-service-CXzMs782.js";
|
|
47
47
|
import { t as resolveSystemRunCommand } from "./system-run-command-B_qw8CXP.js";
|
|
48
48
|
import fs from "node:fs";
|
|
49
49
|
import path from "node:path";
|
|
50
|
-
import
|
|
50
|
+
import fsPromises from "node:fs/promises";
|
|
51
51
|
import { spawn } from "node:child_process";
|
|
52
52
|
import crypto from "node:crypto";
|
|
53
53
|
|
|
@@ -71,7 +71,7 @@ function normalizeConfig(config) {
|
|
|
71
71
|
async function loadNodeHostConfig() {
|
|
72
72
|
const filePath = resolveNodeHostConfigPath();
|
|
73
73
|
try {
|
|
74
|
-
const raw = await
|
|
74
|
+
const raw = await fsPromises.readFile(filePath, "utf8");
|
|
75
75
|
return normalizeConfig(JSON.parse(raw));
|
|
76
76
|
} catch {
|
|
77
77
|
return null;
|
|
@@ -79,11 +79,11 @@ async function loadNodeHostConfig() {
|
|
|
79
79
|
}
|
|
80
80
|
async function saveNodeHostConfig(config) {
|
|
81
81
|
const filePath = resolveNodeHostConfigPath();
|
|
82
|
-
await
|
|
82
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
83
83
|
const payload = JSON.stringify(config, null, 2);
|
|
84
|
-
await
|
|
84
|
+
await fsPromises.writeFile(filePath, `${payload}\n`, { mode: 384 });
|
|
85
85
|
try {
|
|
86
|
-
await
|
|
86
|
+
await fsPromises.chmod(filePath, 384);
|
|
87
87
|
} catch {}
|
|
88
88
|
}
|
|
89
89
|
async function ensureNodeHostConfig() {
|
|
@@ -173,10 +173,10 @@ function collectBrowserProxyPaths(payload) {
|
|
|
173
173
|
return [...paths];
|
|
174
174
|
}
|
|
175
175
|
async function readBrowserProxyFile(filePath) {
|
|
176
|
-
const stat = await
|
|
176
|
+
const stat = await fsPromises.stat(filePath).catch(() => null);
|
|
177
177
|
if (!stat || !stat.isFile()) return null;
|
|
178
178
|
if (stat.size > BROWSER_PROXY_MAX_FILE_BYTES) throw new Error(`browser proxy file exceeds ${Math.round(BROWSER_PROXY_MAX_FILE_BYTES / (1024 * 1024))}MB`);
|
|
179
|
-
const buffer = await
|
|
179
|
+
const buffer = await fsPromises.readFile(filePath);
|
|
180
180
|
const mimeType = await detectMime({
|
|
181
181
|
buffer,
|
|
182
182
|
filePath
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as NODE_SERVICE_MARKER, g as resolveNodeWindowsTaskName, h as resolveNodeSystemdServiceName, i as NODE_SERVICE_KIND, m as resolveNodeLaunchAgentLabel, o as NODE_WINDOWS_TASK_SCRIPT_NAME } from "./constants-CafH8-8D.js";
|
|
2
|
-
import { t as resolveGatewayService } from "./service-
|
|
2
|
+
import { t as resolveGatewayService } from "./service-D80PyJxB.js";
|
|
3
3
|
|
|
4
4
|
//#region src/daemon/node-service.ts
|
|
5
5
|
function withNodeServiceEnv(env) {
|
|
@@ -3,31 +3,31 @@ import { B as theme, S as shortenHomePath, x as shortenHomeInString, z as isRich
|
|
|
3
3
|
import "./registry-Cja8eT7G.js";
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
|
|
5
5
|
import "./exec-CWkblSrI.js";
|
|
6
|
-
import { l as resolveDefaultAgentId, r as resolveAgentConfig } from "./agent-scope-
|
|
7
|
-
import "./model-selection-
|
|
6
|
+
import { l as resolveDefaultAgentId, r as resolveAgentConfig } from "./agent-scope-BRwEc2pG.js";
|
|
7
|
+
import "./model-selection-X1oLh3CE.js";
|
|
8
8
|
import "./github-copilot-token-DAu1a6BX.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
10
|
import "./env-DPCHYPeH.js";
|
|
11
11
|
import "./message-channel-aT-I_DTX.js";
|
|
12
|
-
import { C as parseDurationMs, i as loadConfig } from "./config-
|
|
12
|
+
import { C as parseDurationMs, i as loadConfig } from "./config-tNauHpdq.js";
|
|
13
13
|
import "./manifest-registry-C4BxOMWX.js";
|
|
14
14
|
import "./redact-f-Q-hFt_.js";
|
|
15
15
|
import "./errors-BF3TeRH2.js";
|
|
16
|
-
import "./client-
|
|
17
|
-
import { a as randomIdempotencyKey } from "./call-
|
|
18
|
-
import "./pairing-token-
|
|
16
|
+
import "./client-Bj_vTpri.js";
|
|
17
|
+
import { a as randomIdempotencyKey } from "./call-tmHtVCkn.js";
|
|
18
|
+
import "./pairing-token-AV-MMfVE.js";
|
|
19
19
|
import { n as formatTimeAgo } from "./format-relative-BXoxEQVN.js";
|
|
20
20
|
import { t as formatDocsLink } from "./links-3i1eUga4.js";
|
|
21
21
|
import { n as runCommandWithRuntime } from "./cli-utils-DN_hM6ov.js";
|
|
22
22
|
import { t as formatHelpExamples } from "./help-format-B_-M23wP.js";
|
|
23
23
|
import "./progress-jIePzvGA.js";
|
|
24
24
|
import { f as resolveExecApprovalsFromFile, i as maxAsk, o as minSecurity, t as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS } from "./exec-approvals-DXM2pQYL.js";
|
|
25
|
-
import { a as canvasSnapshotTempPath, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeUrlToFile, i as parseEnvPairs, l as parseCameraSnapPayload, m as applyPathPrepend, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as buildNodeShellCommand, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile } from "./nodes-screen-
|
|
25
|
+
import { a as canvasSnapshotTempPath, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeUrlToFile, i as parseEnvPairs, l as parseCameraSnapPayload, m as applyPathPrepend, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as buildNodeShellCommand, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile } from "./nodes-screen-Cd49cSPb.js";
|
|
26
26
|
import { n as parseNodeList, r as parsePairingList } from "./node-match-CdUiymRU.js";
|
|
27
27
|
import { t as parseTimeoutMs } from "./parse-timeout-2S5vp0-9.js";
|
|
28
28
|
import { t as renderTable } from "./table-BKlH0YlA.js";
|
|
29
|
-
import { a as unauthorizedHintForMessage, i as resolveNodeId, n as callGatewayCli, o as formatPermissions, r as nodesCallOpts, t as buildNodeInvokeParams } from "./rpc-
|
|
30
|
-
import
|
|
29
|
+
import { a as unauthorizedHintForMessage, i as resolveNodeId, n as callGatewayCli, o as formatPermissions, r as nodesCallOpts, t as buildNodeInvokeParams } from "./rpc-CZFfee1J.js";
|
|
30
|
+
import fsPromises from "node:fs/promises";
|
|
31
31
|
|
|
32
32
|
//#region src/cli/nodes-cli/cli-utils.ts
|
|
33
33
|
function getNodesTheme() {
|
|
@@ -369,7 +369,7 @@ function registerNodesCanvasCommands(nodes) {
|
|
|
369
369
|
const hasJsonl = Boolean(opts.jsonl);
|
|
370
370
|
const hasText = typeof opts.text === "string";
|
|
371
371
|
if (hasJsonl === hasText) throw new Error("provide exactly one of --jsonl or --text");
|
|
372
|
-
const jsonl = hasText ? buildA2UITextJsonl(String(opts.text ?? "")) : await
|
|
372
|
+
const jsonl = hasText ? buildA2UITextJsonl(String(opts.text ?? "")) : await fsPromises.readFile(String(opts.jsonl), "utf8");
|
|
373
373
|
const { version, messageCount } = validateA2UIJsonl(jsonl);
|
|
374
374
|
if (version === "v0.9") throw new Error("Detected A2UI v0.9 JSONL (createSurface). Symi currently supports v0.8 only.");
|
|
375
375
|
await invokeCanvas(opts, "canvas.a2ui.pushJSONL", { jsonl });
|
|
@@ -3,7 +3,7 @@ import { r as resolveCliName } from "./command-format-COaS-S7B.js";
|
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import * as fs$
|
|
6
|
+
import * as fs$1 from "node:fs/promises";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
|
|
9
9
|
//#region src/infra/path-prepend.ts
|
|
@@ -138,7 +138,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
138
138
|
if (typeof contentLength === "number" && Number.isFinite(contentLength) && contentLength > MAX_CAMERA_URL_DOWNLOAD_BYTES) throw new Error(`writeUrlToFile: content-length ${contentLength} exceeds max ${MAX_CAMERA_URL_DOWNLOAD_BYTES}`);
|
|
139
139
|
const body = res.body;
|
|
140
140
|
if (!body) throw new Error(`failed to download ${url}: empty response body`);
|
|
141
|
-
const fileHandle = await fs$
|
|
141
|
+
const fileHandle = await fs$1.open(filePath, "w");
|
|
142
142
|
let bytes = 0;
|
|
143
143
|
let thrown;
|
|
144
144
|
try {
|
|
@@ -157,7 +157,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
157
157
|
await fileHandle.close();
|
|
158
158
|
}
|
|
159
159
|
if (thrown) {
|
|
160
|
-
await fs$
|
|
160
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
161
161
|
throw thrown;
|
|
162
162
|
}
|
|
163
163
|
return {
|
|
@@ -167,7 +167,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
167
167
|
}
|
|
168
168
|
async function writeBase64ToFile(filePath, base64) {
|
|
169
169
|
const buf = Buffer.from(base64, "base64");
|
|
170
|
-
await fs$
|
|
170
|
+
await fs$1.writeFile(filePath, buf);
|
|
171
171
|
return {
|
|
172
172
|
path: filePath,
|
|
173
173
|
bytes: buf.length
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { y as resolveUserPath } from "./utils-B-0b9bGM.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-CWkblSrI.js";
|
|
3
|
-
import { c as resolveArchiveKind, o as fileExists } from "./install-safe-path-
|
|
3
|
+
import { c as resolveArchiveKind, o as fileExists } from "./install-safe-path-D3mg1DMG.js";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import fsPromises from "node:fs/promises";
|
|
7
7
|
|
|
8
8
|
//#region src/infra/install-package-dir.ts
|
|
9
9
|
async function installPackageDir(params) {
|
|
@@ -11,18 +11,18 @@ async function installPackageDir(params) {
|
|
|
11
11
|
let backupDir = null;
|
|
12
12
|
if (params.mode === "update" && await fileExists(params.targetDir)) {
|
|
13
13
|
backupDir = `${params.targetDir}.backup-${Date.now()}`;
|
|
14
|
-
await
|
|
14
|
+
await fsPromises.rename(params.targetDir, backupDir);
|
|
15
15
|
}
|
|
16
16
|
const rollback = async () => {
|
|
17
17
|
if (!backupDir) return;
|
|
18
|
-
await
|
|
18
|
+
await fsPromises.rm(params.targetDir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
force: true
|
|
21
21
|
}).catch(() => void 0);
|
|
22
|
-
await
|
|
22
|
+
await fsPromises.rename(backupDir, params.targetDir).catch(() => void 0);
|
|
23
23
|
};
|
|
24
24
|
try {
|
|
25
|
-
await
|
|
25
|
+
await fsPromises.cp(params.sourceDir, params.targetDir, { recursive: true });
|
|
26
26
|
} catch (err) {
|
|
27
27
|
await rollback();
|
|
28
28
|
return {
|
|
@@ -59,7 +59,7 @@ async function installPackageDir(params) {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
if (backupDir) await
|
|
62
|
+
if (backupDir) await fsPromises.rm(backupDir, {
|
|
63
63
|
recursive: true,
|
|
64
64
|
force: true
|
|
65
65
|
}).catch(() => void 0);
|
|
@@ -69,11 +69,11 @@ async function installPackageDir(params) {
|
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/infra/install-source-utils.ts
|
|
71
71
|
async function withTempDir(prefix, fn) {
|
|
72
|
-
const tmpDir = await
|
|
72
|
+
const tmpDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), prefix));
|
|
73
73
|
try {
|
|
74
74
|
return await fn(tmpDir);
|
|
75
75
|
} finally {
|
|
76
|
-
await
|
|
76
|
+
await fsPromises.rm(tmpDir, {
|
|
77
77
|
recursive: true,
|
|
78
78
|
force: true
|
|
79
79
|
}).catch(() => void 0);
|