@noxsoft/anima 5.0.2 → 5.0.3
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-CSCVz9k9.js → accounts-DjjQHOIW.js} +11 -11
- package/dist/{accounts-CVmv61PJ.js → accounts-Dzi6Ld7X.js} +2 -2
- package/dist/{acp-cli-C8aBckv5.js → acp-cli-I-yv1f5O.js} +15 -15
- package/dist/{acp-cli-DyVMXQS8.js → acp-cli-QBd9GLqD.js} +4 -4
- package/dist/{agent-DiEXJmhj.js → agent-B3KeHK1A.js} +12 -12
- package/dist/{agent-CWQdTmzC.js → agent-fG1PVmNy.js} +16 -16
- package/dist/{agent-scope-DICrDp7Y.js → agent-scope-BHR6uOLT.js} +2 -2
- package/dist/{agent-scope-BLiq3nK_.js → agent-scope-ryeVDUKe.js} +2 -2
- package/dist/{agents-rAIsxGuA.js → agents-DY5ZtGB2.js} +11 -11
- package/dist/{agents.config-Bqr5rrkV.js → agents.config-DmF0fsB6.js} +1 -1
- package/dist/{anthropic-direct-runner-_uCPWuBb.js → anthropic-direct-runner-BJosFvVm.js} +203 -215
- package/dist/{anthropic-direct-runner--MPTWkYA.js → anthropic-direct-runner-BXb24VJt.js} +208 -220
- package/dist/{audit-DqjWCAbO.js → audit-BTMmL_HS.js} +9 -9
- package/dist/{audit-DegswVkZ.js → audit-qHMf9jWY.js} +16 -16
- package/dist/{auth-Cs_c5TKt.js → auth-DQfFqQBz.js} +3 -3
- package/dist/{auth-choice-o5GHtPGA.js → auth-choice-BoyT3ahK.js} +5 -5
- package/dist/{auth-health-D0VUH0FQ.js → auth-health-BcABdgUT.js} +1 -1
- package/dist/{auth-profiles-k5IOWaG2.js → auth-profiles-BF5x9Ej0.js} +1 -1
- package/dist/{auth-profiles-BhZX2spm.js → auth-profiles-C_LmTbMb.js} +5 -5
- package/dist/{auth-profiles-DriJ4HU5.js → auth-profiles-Da39zGOD.js} +4 -4
- package/dist/{auth-store-D0vDEvCx.js → auth-store-CXZzirrJ.js} +3 -3
- package/dist/{auth-store-BMwyg-WK.js → auth-store-DTpDRu--.js} +3 -3
- package/dist/{banner-Gtp-FQrx.js → banner-CJVa8aiZ.js} +1 -1
- package/dist/{bonjour-discovery-DaCmsB4i.js → bonjour-discovery-B3IeIN1u.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +20 -20
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/session-memory/handler.js +17 -17
- package/dist/{call-Z_GCO8CL.js → call-BKsdSTVf.js} +1 -1
- package/dist/{call-BOwaQIXo.js → call-C3CH9PNK.js} +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-B-pfqu76.js → catalog-3hzXhHxJ.js} +2 -2
- package/dist/{channel-web-Dz0XZNjP.js → channel-web-Df3Ay9v7.js} +18 -18
- package/dist/{channels-status-issues-Dqd_vE0e.js → channels-status-issues-BlmAMBCg.js} +2 -2
- package/dist/{channels-status-issues-DenKLCLq.js → channels-status-issues-D5XAOSaj.js} +4 -4
- package/dist/{chrome-CB6uZMvl.js → chrome-B2-33FWf.js} +1 -1
- package/dist/{chrome-C3-muxXb.js → chrome-CLhrEjgx.js} +4 -4
- package/dist/{chrome-CKvch3UL.js → chrome-CkSIMI7j.js} +9 -9
- package/dist/{chunk-DGg8zCWl.js → chunk-Dq7ILx_r.js} +2 -2
- package/dist/{chunk-DFCmYqgJ.js → chunk-fcLG1hME.js} +1 -1
- package/dist/{clack-prompter-OFy356QZ.js → clack-prompter-DmD_A7en.js} +5 -5
- package/dist/{clack-prompter-BRLXmV52.js → clack-prompter-bl-Zsxpq.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-BZz5MnAE.js → cli-0-FvuyBX.js} +35 -35
- package/dist/cli-CLVEx1Po.js +104 -0
- package/dist/{cli-session-8PeURiwF.js → cli-session-CmX1oA1T.js} +11 -11
- package/dist/{cli-session-CczB2Dni.js → cli-session-gR2abU0g.js} +16 -16
- package/dist/{client-BObcTF_9.js → client-BT3pbXCv.js} +3 -3
- package/dist/{command-registry-C9kvlc67.js → command-registry-C3SmyTQU.js} +12 -12
- package/dist/{common-k1Cu8adj.js → common-Bi43BlMQ.js} +2 -2
- package/dist/{common-Cd7BmlCQ.js → common-CSTOiddD.js} +2 -2
- package/dist/{common-C5mWuFve.js → common-FlJ-8clz.js} +2 -2
- package/dist/{completion-cli-Ci_MzRm6.js → completion-cli-308M08su.js} +2 -2
- package/dist/{completion-cli-DhbIrk13.js → completion-cli-D7gWcWEj.js} +3 -3
- package/dist/{config-DezP7V65.js → config-BfhpauV9.js} +6 -6
- package/dist/{config-CG7uuHNE.js → config-Dk-5Mb_G.js} +6 -6
- package/dist/{config-D6D_ieel.js → config-Ofh9gKvs.js} +1 -1
- package/dist/config-cli-CajDGi9m.js +15 -0
- package/dist/{config-cli-ePL5ncye.js → config-cli-De0z7mvk.js} +3 -3
- package/dist/{config-guard-BT3OoaEu.js → config-guard-BnkobgvR.js} +21 -21
- package/dist/{config-guard-CCOBZ77Q.js → config-guard-DlOs5hMU.js} +2 -2
- package/dist/{configure-DxKMnCHX.js → configure-BXK8YRUD.js} +48 -48
- package/dist/{configure-KP7q9c7h.js → configure-Caf6yI_m.js} +24 -24
- package/dist/{configure-D-9Ezgal.js → configure-DS9oQW51.js} +78 -78
- package/dist/{configure-CkGsX5z9.js → configure-DgXRL7Uz.js} +12 -12
- package/dist/{context-Cau0zD3W.js → context-BZV-msqG.js} +1 -1
- package/dist/{control-service-DMoq3DpT.js → control-service-BFYEuU-S.js} +5 -5
- package/dist/{control-service-D3rS-Yd1.js → control-service-DUF4hGd3.js} +4 -4
- package/dist/{cron-cli-3QY_K0l_.js → cron-cli-BglUapfu.js} +5 -5
- package/dist/{cron-cli-ybIqf_95.js → cron-cli-OHSsCpVe.js} +16 -16
- package/dist/{daemon-cli-C5Tosclk.js → daemon-cli-B2UGyc5z.js} +19 -19
- package/dist/{daemon-cli-NZ84KRN8.js → daemon-cli-CO-1GTE_.js} +7 -7
- package/dist/daemon-cli.js +58 -1
- package/dist/{daemon-runtime-B9AywEma.js → daemon-runtime-BsUCg0Nr.js} +3 -3
- package/dist/{daemon-runtime-DpY6Y5qE.js → daemon-runtime-cGQoReHT.js} +1 -1
- package/dist/{deliver-BhezvxNA.js → deliver-CoAOvyW0.js} +4 -4
- package/dist/{deliver-BJn4EmMZ.js → deliver-DhQSpWQA.js} +4 -4
- package/dist/{deliver-B2p9Fke_.js → deliver-DvbZ8dp4.js} +6 -6
- package/dist/{deps-CBLy0fqA.js → deps-CCbWMWT4.js} +1 -1
- package/dist/{diagnostics-TXSvtpaq.js → diagnostics-CtqVmSaZ.js} +1 -1
- package/dist/{dispatcher-DG44QJKz.js → dispatcher-C4k9ABOv.js} +2 -2
- package/dist/{dispatcher-Bk0gFz4b.js → dispatcher-N_4IYF9I.js} +1 -1
- package/dist/{dns-cli-BklOUsrX.js → dns-cli-DJ8mwzgA.js} +2 -2
- package/dist/{dns-cli-Dq98107U.js → dns-cli-Dk48S2y7.js} +13 -13
- package/dist/{docs-cli-CehJ2v5M.js → docs-cli-BvBEqoCl.js} +7 -7
- package/dist/{doctor-Bto-K3wL.js → doctor-9cbiXykn.js} +24 -24
- package/dist/{doctor-DsRSWr6B.js → doctor-C_1WNQix.js} +40 -40
- package/dist/{doctor-completion-OQXTo6RG.js → doctor-completion-B1cKYcZj.js} +1 -1
- package/dist/{doctor-completion-B-SFdu-f.js → doctor-completion-D7uvGhAv.js} +3 -3
- package/dist/{doctor-config-flow-D0GgdMmi.js → doctor-config-flow-Bno6wZvG.js} +7 -7
- package/dist/{doctor-config-flow-CEkHIHe5.js → doctor-config-flow-rshwu4JS.js} +3 -3
- package/dist/entry.js +59 -2
- package/dist/{env-T3-raV4i.js → env-CLiKFfXU.js} +1 -1
- package/dist/{exec-DbnX_71w.js → exec-Bo7Vwe77.js} +1 -1
- package/dist/{exec-DnanRQle.js → exec-CEFTijVj.js} +1 -1
- package/dist/{exec-approvals-cli-B7hQEhGe.js → exec-approvals-cli-CRqO-FRn.js} +19 -19
- package/dist/{exec-approvals-cli-CcY7IQWQ.js → exec-approvals-cli-i_Bmu0zE.js} +4 -4
- package/dist/extensionAPI.js +227 -127
- package/dist/{gateway-cli-Buxz8Y2n.js → gateway-cli-CBmfvcpr.js} +99 -99
- package/dist/{gateway-cli-CEGPCQ_C.js → gateway-cli-CufIzw2K.js} +61 -61
- package/dist/{gateway-rpc-LkRV5joR.js → gateway-rpc-BX-Pz0j8.js} +3 -3
- package/dist/{gateway-rpc-De-TWFvD.js → gateway-rpc-BvqpdNqp.js} +1 -1
- package/dist/{gmail-setup-utils-B4oMbrOI.js → gmail-setup-utils-B-LgbK-5.js} +3 -3
- package/dist/{health-CMIY7xAI.js → health-BVBoq6jM.js} +14 -14
- package/dist/{health-DoGFlPcq.js → health-DKC8u4W8.js} +18 -18
- package/dist/{health-format-Ojy0hLp3.js → health-format-DHYaqzgj.js} +2 -2
- package/dist/{heartbeat-visibility-DuRmIKOk.js → heartbeat-visibility-CF3WzMM0.js} +1 -1
- package/dist/{heartbeat-visibility-BOyU9ccw.js → heartbeat-visibility-CUKC8xqZ.js} +1 -1
- package/dist/{help-format-BZ7j9sHT.js → help-format-mLYxJ3oD.js} +1 -1
- package/dist/{hooks-cli-B1NXXLxe.js → hooks-cli-BHO_BQFY.js} +36 -36
- package/dist/{hooks-cli-BuIU6v0Q.js → hooks-cli-kLrFK7pV.js} +57 -57
- package/dist/{hooks-status-DR_WkhpR.js → hooks-status-CfvVr6eJ.js} +3 -3
- package/dist/{image-ops-B7tKwzpV.js → image-ops-C_aRXc-7.js} +1 -1
- package/dist/index.js +69 -69
- package/dist/{installs-Drds9RDI.js → installs-DBvIs2By.js} +1 -1
- package/dist/{installs-BxZFjTKY.js → installs-DW-ErO4y.js} +5 -5
- package/dist/{lanes-4_8h1ZQO.js → lanes-CrNcoc6P.js} +208 -153
- package/dist/{lifecycle-core-CHv9wUhV.js → lifecycle-core-DWESti3N.js} +6 -6
- package/dist/{links-CziCxopc.js → links-C4Hwnnc9.js} +1 -1
- package/dist/llm-slug-generator.js +15 -15
- package/dist/{logging-Dwz0XtXm.js → logging-CnEuyIPZ.js} +1 -1
- package/dist/{login-BvRe8YZ9.js → login-CY9_XaLc.js} +7 -7
- package/dist/{login-DwP4KleZ.js → login-Dj6hCAFK.js} +5 -5
- package/dist/{login-DevThvtW.js → login-Ga69_Kio.js} +2 -2
- package/dist/{login-qr-FDWY-tu5.js → login-qr-BYeWGzxI.js} +12 -12
- package/dist/{login-qr-wnynuvLt.js → login-qr-DD1apkdT.js} +9 -9
- package/dist/{login-qr-BkpIGqae.js → login-qr-swgX7elR.js} +3 -3
- package/dist/{logs-cli-CiMRc2qL.js → logs-cli-D02oahhw.js} +4 -4
- package/dist/{logs-cli-CsfmPUwa.js → logs-cli-DAVu9h8p.js} +16 -16
- package/dist/{manager-ibNP7jE3.js → manager-CLAy-qOR.js} +10 -10
- package/dist/{manager-v4S80Br3.js → manager-DQPfk6Ea.js} +12 -12
- package/dist/{manager-j0ghUvcW.js → manager-yWxV2UI_.js} +5 -5
- package/dist/{manifest-registry-BiGCvMJ8.js → manifest-registry-BJat2nhC.js} +1 -1
- package/dist/{media-BLVMhFB3.js → media-IIqSkFpd.js} +2 -2
- package/dist/{memory-cli-DSWsPuub.js → memory-cli-B8AsIRG3.js} +7 -7
- package/dist/{memory-cli-Cl2n9UtH.js → memory-cli-bA70cVlm.js} +12 -12
- package/dist/{message-channel-DuxJGOJz.js → message-channel-C5I8UgGH.js} +1 -1
- package/dist/{model-auth-Ja4oelNH.js → model-auth-Be3_KahV.js} +2 -2
- package/dist/{model-auth-DVG37yXU.js → model-auth-DBHvPqaY.js} +4 -4
- package/dist/{model-auth-BKf-GZVK.js → model-auth-DYHjH-Oh.js} +3 -3
- package/dist/{model-selection-DT-L7bjC.js → model-selection-BuMFehML.js} +5 -2
- package/dist/{model-selection-BKFF7fDb.js → model-selection-DFbDH9o2.js} +4 -1
- package/dist/{model-selection-C2dAUmK_.js → model-selection-DRIxw3do.js} +5 -2
- package/dist/{models-BU0CytAy.js → models-B9jYbX5H.js} +39 -39
- package/dist/{node-cli-DcwOFcxq.js → node-cli-C_efNJ2B.js} +11 -11
- package/dist/{node-cli-CZuWFgpO.js → node-cli-ScPCT6uD.js} +28 -28
- package/dist/{node-service-Ds1r16VN.js → node-service-BCfZtWK_.js} +1 -1
- package/dist/{note-Daao-cv8.js → note-DjzS4Am4.js} +2 -2
- package/dist/{npm-registry-spec-fJIJ8GG5.js → npm-registry-spec-Opq9qQXl.js} +1 -1
- package/dist/{onboard-Dd5wJkeU.js → onboard-C7ZSJNCe.js} +10 -10
- package/dist/{onboard-c84IExbH.js → onboard-CJOJPctL.js} +17 -17
- package/dist/{onboard-channels-CCoMzCXV.js → onboard-channels-DSlUCvl1.js} +4 -4
- package/dist/{onboard-channels-DYr7fQZq.js → onboard-channels-DwPNXSwW.js} +9 -9
- package/dist/{onboard-helpers-BgsHO6fO.js → onboard-helpers-CU_S0_Kf.js} +10 -10
- package/dist/{onboard-helpers-BRp_xJvW.js → onboard-helpers-tkuUrdCB.js} +3 -3
- package/dist/{onboarding-192Oe9K6.js → onboarding-Caiq91Yz.js} +11 -11
- package/dist/{onboarding-BINruD5r.js → onboarding-DP2NlqhA.js} +20 -20
- package/dist/{outbound-RxegsVGB.js → outbound-B84phlQU.js} +4 -4
- package/dist/{outbound-BVSyNp-t.js → outbound-CKmmCVxJ.js} +2 -2
- package/dist/{outbound-BaBDhLp1.js → outbound-DKM-JeSH.js} +5 -5
- package/dist/{parse-timeout-C1INlSUG.js → parse-timeout-C59j-ev4.js} +2 -2
- package/dist/{parse-timeout-C8t_lmnL.js → parse-timeout-aZGyXXFz.js} +3 -3
- package/dist/{path-env-CsgLP0dy.js → path-env-cFxXrXB1.js} +1 -1
- package/dist/{paths-DybdJi5a.js → paths-CLxC7m0Z.js} +1 -1
- package/dist/{pi-auth-json-MH7vz0HI.js → pi-auth-json-DPoqstQN.js} +7 -7
- package/dist/{pi-auth-json-BY6wRDm0.js → pi-auth-json-DjxzPUt3.js} +2 -2
- package/dist/{pi-auth-json-BSLIRI41.js → pi-auth-json-hMxhauJ8.js} +6 -6
- package/dist/{pi-embedded-DJF_gfcQ.js → pi-embedded-JUmNmkTK.js} +218 -175
- package/dist/{pi-embedded-helpers-iju5zIIA.js → pi-embedded-helpers-B6wVA0hU.js} +1 -1
- package/dist/{tokens-DXjI-TIV.js → pi-embedded-helpers-B_Sx4G6d.js} +40 -30
- package/dist/{pi-tools.policy-Dtytaq21.js → pi-tools.policy-Bn9S3ywB.js} +3 -3
- package/dist/{pi-tools.policy-CN78I2yN.js → pi-tools.policy-ChzY9kW7.js} +7 -7
- package/dist/{plugin-auto-enable-DLrgOd4y.js → plugin-auto-enable-UE1XVFcw.js} +1 -1
- package/dist/{plugin-auto-enable-DIWd94Po.js → plugin-auto-enable-f05JE-GF.js} +5 -5
- package/dist/{plugin-registry-B0k-53-_.js → plugin-registry-BeB2L6Qe.js} +2 -2
- package/dist/{plugin-registry-CqUo-PU_.js → plugin-registry-DIXcynua.js} +4 -4
- package/dist/plugin-sdk/agents/anthropic-direct-runner.d.ts +1 -1
- package/dist/plugin-sdk/agents/tools/browser-tool.schema.d.ts +2 -2
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +22 -22
- package/dist/plugin-sdk/index.js +75 -8
- package/dist/{plugins-C_GedoUi.js → plugins-DCXdhkeB.js} +2 -2
- package/dist/{plugins-BmYfBGLM.js → plugins-NbldDVJs.js} +1 -1
- package/dist/{plugins-cli-YjM8IsVo.js → plugins-cli-CzUD-ewi.js} +58 -58
- package/dist/{plugins-cli-BYLUFsjH.js → plugins-cli-Dk2W0fBT.js} +39 -39
- package/dist/{polls-Cuv4dsX_.js → polls-OzE9fR2s.js} +6 -6
- package/dist/{ports-Bv3sZ3bd.js → ports-COy7Yg_k.js} +1 -1
- package/dist/{ports-DOiSDgNp.js → ports-CWvYU8j6.js} +4 -4
- package/dist/{ports-BQ0cAsGj.js → ports-Cgow804e.js} +2 -2
- package/dist/{ports-BmSDzOHm.js → ports-DyX87qKc.js} +1 -1
- package/dist/{program-CG5u1KAB.js → program-DxItv_Ts.js} +42 -42
- package/dist/{program-context-Co2gkUS0.js → program-context-cgh8PMPD.js} +33 -33
- package/dist/{progress-BZZa-fXr.js → progress-DzZ_4Z4f.js} +1 -1
- package/dist/{prompt-style-1bwj7IzZ.js → prompt-style-C7WfXowC.js} +1 -1
- package/dist/{prompts-NvPXbNVc.js → prompts-BfHxhlF9.js} +1 -1
- package/dist/{prompts-DjKZfP5R.js → prompts-DH_nIROF.js} +5 -5
- package/dist/{pw-ai-CvxTpFmB.js → pw-ai-A7vggLw8.js} +3 -3
- package/dist/{pw-ai-BhoKfvvM.js → pw-ai-Bigm0Qwh.js} +7 -7
- package/dist/{pw-ai-C3j5kV3T.js → pw-ai-CsODxGt8.js} +3 -3
- package/dist/{qmd-manager-BGob_1OP.js → qmd-manager-C3z8LWKx.js} +6 -6
- package/dist/{qmd-manager-BDq5_dd6.js → qmd-manager-DQsAtmK7.js} +2 -2
- package/dist/{qmd-manager-BmGj4bZk.js → qmd-manager-lfhigvUf.js} +6 -6
- package/dist/{register.agent-WAjZHuZe.js → register.agent-BVwbjkKx.js} +45 -45
- package/dist/{register.agent-PbAKdlNK.js → register.agent-D0FKVD_s.js} +70 -70
- package/dist/{register.anima-CZNjkwJH.js → register.anima-Dc7OI2Nh.js} +4 -4
- package/dist/{register.anima-CDcnWfQF.js → register.anima-bys_cyEd.js} +4 -4
- package/dist/{register.configure-C2zfgyp9.js → register.configure-BrRG_RtB.js} +47 -47
- package/dist/register.configure-CXKr61Ka.js +108 -0
- package/dist/register.maintenance-BToHjam6.js +103 -0
- package/dist/{register.maintenance-DkF1Nu_y.js → register.maintenance-DXL3L0ip.js} +49 -49
- package/dist/{register.onboard-DiZzjEwz.js → register.onboard-B3hbdfaQ.js} +71 -71
- package/dist/{register.onboard-xOXNrMu-.js → register.onboard-Bg5zEb3f.js} +48 -48
- package/dist/{register.setup-BmbpgUVU.js → register.setup-CZqwphif.js} +48 -48
- package/dist/{register.setup-QAjNkIZr.js → register.setup-Cq8nqbrU.js} +71 -71
- package/dist/{register.status-health-sessions-RZxaVSa6.js → register.status-health-sessions-D1kjQUAc.js} +67 -67
- package/dist/{register.status-health-sessions-Cm-lxcT6.js → register.status-health-sessions-mdLJbfPN.js} +43 -43
- package/dist/{register.subclis-DCljHJ5a.js → register.subclis-mbYw7H-_.js} +20 -20
- package/dist/{reply-Dd3EmI4M.js → reply-CwV-5jE0.js} +56 -52
- package/dist/{reply-Bw4torMz.js → reply-DAGmjvs-.js} +44 -40
- package/dist/{reply-prefix-DIoRETAD.js → reply-prefix-BRsV1Eof.js} +2 -2
- package/dist/{reply-prefix-Dy_yxyCq.js → reply-prefix-CAsFNEP7.js} +2 -2
- package/dist/{routes-C2EyUA9x.js → routes-CYHrkIjB.js} +6 -6
- package/dist/{routes-CNSdZAkl.js → routes-cdfVFYMI.js} +4 -4
- package/dist/{run-DgtaDzEe.js → run-DE6EaeE3.js} +70 -70
- package/dist/{run--R4y3YlU.js → run-S0Cw3Fyy.js} +47 -47
- package/dist/{run-main-eUWh86lF.js → run-main-CCxXEvb7.js} +55 -55
- package/dist/{runtime-guard-B40AREJ_.js → runtime-guard-CNnLK4pn.js} +1 -1
- package/dist/{sandbox-BwUo1b0I.js → sandbox-B4-dXpqZ.js} +6 -6
- package/dist/{sandbox-BoNWDo4X.js → sandbox-DhcoWMaN.js} +2 -2
- package/dist/{sandbox-cli-D9-wZJ9M.js → sandbox-cli-DQMWPCOh.js} +24 -24
- package/dist/{sandbox-cli-lbp0TV67.js → sandbox-cli-TAuv3mTO.js} +12 -12
- package/dist/{security-cli-CX5uciKz.js → security-cli-Da-3YxZ4.js} +29 -29
- package/dist/{security-cli-CfvP5VqT.js → security-cli-Dc-NwTC2.js} +16 -16
- package/dist/{semantic-Buqqx7gZ.js → semantic-BlQgdb3-.js} +1 -1
- package/dist/{semantic-B4TOg4CK.js → semantic-VlSmVCfb.js} +1 -1
- package/dist/{server-context-IfJbmK25.js → server-context-C-usQ5Np.js} +7 -7
- package/dist/{server-context-efO1YgXk.js → server-context-r7wPe4ZD.js} +9 -9
- package/dist/{server-node-events-CFCwOP0n.js → server-node-events-3KeQAwUo.js} +23 -23
- package/dist/{server-node-events-BG4e9Ws7.js → server-node-events-GTSQEd_U.js} +36 -36
- package/dist/{service-D1idQeBv.js → service-DCVAkKlN.js} +1 -1
- package/dist/{service-audit-BzwV-IOi.js → service-audit-Crw1cAbj.js} +1 -1
- package/dist/{service-audit-BbwXAhsr.js → service-audit-DRIpsryX.js} +3 -3
- package/dist/{session-Dvwwi-Eb.js → session-CrGApVik.js} +1 -1
- package/dist/{session-skOcrvF2.js → session-D3BNUwtH.js} +1 -1
- package/dist/{session-DCGAvNG9.js → session-DKCUYHCS.js} +1 -1
- package/dist/{session-cost-usage-6bDLU9Pb.js → session-cost-usage-LvsvRW5g.js} +1 -1
- package/dist/{session-cost-usage-lLyz71EH.js → session-cost-usage-vltn5akf.js} +1 -1
- package/dist/{session-BjPdEBPh.js → session-mpOb9zFL.js} +5 -5
- package/dist/{sessions-kJgmpWtv.js → sessions-BduC6sZj.js} +78 -68
- package/dist/{sessions-C3bteMLZ.js → sessions-CAiEkTKb.js} +21 -11
- package/dist/{sessions-BZgIAOwH.js → sessions-DLPN62LD.js} +5 -5
- package/dist/{settings-cli-C9TMl9Ye.js → settings-cli-BgGYdH4N.js} +77 -77
- package/dist/{settings-cli-Cf0LCRjt.js → settings-cli-f0O0FUVO.js} +48 -48
- package/dist/{setup-token-DBwe6GDq.js → setup-token-lcjrc9sO.js} +28 -28
- package/dist/{setup-token-DTgSXfj7.js → setup-token-ykp60QVx.js} +18 -18
- package/dist/{shared-DC8lQHCt.js → shared-Ca0NTTF0.js} +3 -3
- package/dist/{shell-env-JzaPTLKV.js → shell-env-BZ_fIIlm.js} +1 -1
- package/dist/{shell-env-V934Ymrk.js → shell-env-DaSbgZYX.js} +1 -1
- package/dist/{skill-scanner-DPQDhVEr.js → skill-scanner--TxpCSNF.js} +1 -1
- package/dist/{skill-scanner-HQwt_KRF.js → skill-scanner-BzOYLFR8.js} +1 -1
- package/dist/{skills-cli-OYZS-U1f.js → skills-cli-BpyTvFkg.js} +16 -16
- package/dist/{skills-cli-CSMzc9am.js → skills-cli-Tm326cFx.js} +2 -2
- package/dist/{skills-install-BKz5WLq4.js → skills-install-B2m10oTm.js} +5 -5
- package/dist/{skills-install-CC63dOs4.js → skills-install-D_bxdc-6.js} +2 -2
- package/dist/{skills-status-B_umZ78Q.js → skills-status-D14GZ5WN.js} +3 -3
- package/dist/{skills-ppB3qrZU.js → skills-wS8aRGeO.js} +3 -3
- package/dist/{soul-DpWsWxOa.js → soul-CAEpnUkv.js} +1 -1
- package/dist/{soul-aZoR6Ctt.js → soul-D9EtC35X.js} +1 -1
- package/dist/{sqlite-CnVGUfhz.js → sqlite-B0rfPL8q.js} +2 -2
- package/dist/{sqlite-Duz1QJIT.js → sqlite-CR0WDTae.js} +2 -2
- package/dist/{sqlite-Co_lF3s-.js → sqlite-jyjat2Yt.js} +1 -1
- package/dist/start-DYq7cNRG.js +157 -0
- package/dist/{start-CHLGEHeF.js → start-Y69GZPdX.js} +58 -58
- package/dist/{status-BsCeWiLS.js → status-BplZv8_T.js} +2 -2
- package/dist/{status-D_FTGxBZ.js → status-K3LGPZeT.js} +4 -4
- package/dist/{status-CwjUrZ7a.js → status-Uzlo7BvY.js} +27 -27
- package/dist/{status-C4ZTdSwA.js → status-rt3tIYmL.js} +18 -18
- package/dist/{status.update-P6xyBet8.js → status.update-B61Emp_r.js} +3 -3
- package/dist/{status.update-Cx5l38lC.js → status.update-yjbKzlMn.js} +2 -2
- package/dist/{subagent-registry-7qo93ip8.js → subagent-registry-DfCDq9hk.js} +14 -14
- package/dist/{subagent-registry-EoZxIEKl.js → subagent-registry-ZIpC5W-9.js} +11 -11
- package/dist/{subagent-registry-hRt-aJnL.js → subagent-registry-xp5sYYzS.js} +16 -16
- package/dist/{subsystem-Cn6bJV8Z.js → subsystem-BMsbqSb4.js} +58 -1
- package/dist/{subsystem-WFp78xn1.js → subsystem-BP2l3SHn.js} +58 -1
- package/dist/{system-cli-Dbn4_ed8.js → system-cli-D-eyDWD6.js} +4 -4
- package/dist/{system-cli-lmslA_Ox.js → system-cli-Dy2Pwnbg.js} +15 -15
- package/dist/{systemd-DYPdTwok.js → systemd-DXo2A9_S.js} +2 -2
- package/dist/{systemd-hints-E8yYE8Q1.js → systemd-hints-DIjCA1An.js} +1 -1
- package/dist/{systemd-linger-CpWguZ4b.js → systemd-linger-DgB-ow-D.js} +2 -2
- package/dist/{table-B991ZwKi.js → table-C-GNQABy.js} +2 -2
- package/dist/{timeout-B0mCaCG5.js → timeout-Cl8rWNWO.js} +79 -24
- package/dist/{tokens-k_R7Y792.js → tokens-FGW_JgKz.js} +1 -1
- package/dist/{tool-images-DJZPwGqm.js → tool-images-Df50dvpv.js} +2 -2
- package/dist/{tool-images-BehEzEZF.js → tool-images-RiPaL7wQ.js} +2 -2
- package/dist/{tool-images-09hnvylP.js → tool-images-y_Ribdl6.js} +1 -1
- package/dist/{tui-PCTDV7Ct.js → tui-NlR4LFBm.js} +9 -9
- package/dist/{tui-LRoQ5xyx.js → tui-YsmTyq58.js} +4 -4
- package/dist/{tui-cli-DO_6-GWy.js → tui-cli-CSudxVpO.js} +17 -17
- package/dist/{tui-cli-D39zC_Ew.js → tui-cli-QnKj1We8.js} +28 -28
- package/dist/{update-tjMvDUCw.js → update-B2O46V_t.js} +3 -3
- package/dist/{update-DmVSt9s3.js → update-VFbS9X5L.js} +1 -1
- package/dist/{update-cli-CnYFvEud.js → update-cli-BXKL-v-n.js} +86 -86
- package/dist/{update-cli-jEzmvaqS.js → update-cli-BgQUtlLg.js} +54 -54
- package/dist/{update-runner-OPbRGUfX.js → update-runner-U2WcWGfd.js} +5 -5
- package/dist/{update-runner-IARYjXbS.js → update-runner-fvdM_Hip.js} +2 -2
- package/dist/{usage-BTc8TK3f.js → usage-CM-NiwBA.js} +9 -9
- package/dist/{utils-dWKYjULE.js → utils-B60lF9Wq.js} +1 -1
- package/dist/{web-kEraFv8s.js → web-B8r6MvXh.js} +41 -41
- package/dist/web-BzFhL5WI.js +67 -0
- package/dist/{web-Honf40Cm.js → web-eoSM6P0a.js} +39 -39
- package/dist/{webhooks-cli-CYbIJJF6.js → webhooks-cli-24A2CbXR.js} +2 -2
- package/dist/{webhooks-cli-oRmSfYdd.js → webhooks-cli-CgkxWcH5.js} +13 -13
- package/dist/{whatsapp-actions-I9RXDK_k.js → whatsapp-actions-BVlqbVgY.js} +8 -8
- package/dist/{whatsapp-actions-_BrQebuX.js → whatsapp-actions-BYxKWK0A.js} +12 -12
- package/dist/{whatsapp-actions-BB-Leqn2.js → whatsapp-actions-DagVwYC6.js} +17 -17
- package/dist/{widearea-dns-CkuHFBQy.js → widearea-dns-B1TTb1v5.js} +1 -1
- package/dist/{workspace-DOJssemp.js → workspace-Cvio8QlZ.js} +1 -1
- package/dist/{ws-log-B-xsUQys.js → ws-log-De7GACYn.js} +1 -1
- package/dist/{ws-CQYP0dWu.js → ws-sdRTa2sP.js} +1 -1
- package/package.json +1 -1
- package/dist/cli-CJfwHH_z.js +0 -104
- package/dist/config-cli-uk9vdQZH.js +0 -15
- package/dist/register.configure-CNhagtHN.js +0 -108
- package/dist/register.maintenance-DWJjWsIl.js +0 -103
- package/dist/start-B2DQAmEK.js +0 -157
- package/dist/web-u554zkLK.js +0 -67
- /package/dist/{auth-DK-0XxZU.js → auth-DuBZWd74.js} +0 -0
- /package/dist/{command-format-B1WxXbeU.js → command-format-UwAvxtMC.js} +0 -0
- /package/dist/{config-Qw5FwfRK.js → config-COtiNNtV.js} +0 -0
- /package/dist/{errors-B9FgVZ2s.js → errors-D6Vj_xs4.js} +0 -0
- /package/dist/{errors-DjZBTJJ3.js → errors-l_q3lLBC.js} +0 -0
- /package/dist/{file-lock-BRW4LeL0.js → file-lock-BFQVGKm5.js} +0 -0
- /package/dist/{image-ops-BsXjYj1e.js → image-ops-BVtm-rU-.js} +0 -0
- /package/dist/{input-provenance-B0pwc6mp.js → input-provenance-sPbZYo89.js} +0 -0
- /package/dist/{internal-hooks-CZOlj8zG.js → internal-hooks-CWw3Hgeu.js} +0 -0
- /package/dist/{paths-CxBUgtZS.js → paths-B_RPJLsn.js} +0 -0
- /package/dist/{paths-BvY3CbW0.js → paths-CnuAkdfx.js} +0 -0
- /package/dist/{pi-embedded-helpers-CWl0I3Qm.js → pi-embedded-helpers-Cxzk0pra.js} +0 -0
- /package/dist/{plugins-BDSP0cT6.js → plugins-CFBEoAN4.js} +0 -0
- /package/dist/{tailnet-CjJJHjPU.js → tailnet-CabhakZ7.js} +0 -0
- /package/dist/{tokens-QjoPADtG.js → tokens-DLpZ8RFH.js} +0 -0
- /package/dist/{transcript-events-DUQC5hbS.js → transcript-events-C1hdue6u.js} +0 -0
- /package/dist/{transcript-events-DdnTeoR1.js → transcript-events-CJRvASY_.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { N as logVerbose, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { b as resolveUserPath, f as isRecord, l as escapeRegExp, t as CONFIG_DIR } from "./utils-
|
|
3
|
-
import { d as resolveBootstrapMaxChars, f as resolveBootstrapTotalMaxChars, u as buildBootstrapContextFiles } from "./pi-embedded-helpers-
|
|
1
|
+
import { N as logVerbose, t as createSubsystemLogger } from "./subsystem-BMsbqSb4.js";
|
|
2
|
+
import { b as resolveUserPath, f as isRecord, l as escapeRegExp, t as CONFIG_DIR } from "./utils-B60lF9Wq.js";
|
|
3
|
+
import { d as resolveBootstrapMaxChars, f as resolveBootstrapTotalMaxChars, u as buildBootstrapContextFiles } from "./pi-embedded-helpers-B6wVA0hU.js";
|
|
4
4
|
import { d as resolveAgentIdFromSessionKey, l as normalizeAgentId, n as DEFAULT_AGENT_ID, s as classifySessionKeyShape, x as parseAgentSessionKey } from "./session-key-DxcgHezu.js";
|
|
5
|
-
import { n as runExec } from "./exec-
|
|
5
|
+
import { n as runExec } from "./exec-Bo7Vwe77.js";
|
|
6
6
|
import { t as resolveAnimaPackageRoot } from "./anima-root-Bot0EbzI.js";
|
|
7
|
-
import { C as loadWorkspaceBootstrapFiles, S as filterBootstrapFilesForSession, c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir, u as resolveSessionAgentIds } from "./agent-scope-
|
|
8
|
-
import { f as resolveDefaultModelForAgent, m as resolveModelRefFromString, r as buildModelAliasIndex } from "./model-selection-
|
|
9
|
-
import { c as getFileExtension, f as normalizeMimeType } from "./image-ops-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { C as loadWorkspaceBootstrapFiles, S as filterBootstrapFilesForSession, c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir, u as resolveSessionAgentIds } from "./agent-scope-ryeVDUKe.js";
|
|
8
|
+
import { f as resolveDefaultModelForAgent, m as resolveModelRefFromString, r as buildModelAliasIndex } from "./model-selection-DRIxw3do.js";
|
|
9
|
+
import { c as getFileExtension, f as normalizeMimeType } from "./image-ops-C_aRXc-7.js";
|
|
10
|
+
import { c as listDeliverableMessageChannels } from "./message-channel-C5I8UgGH.js";
|
|
11
|
+
import { r as normalizeChannelId } from "./plugins-NbldDVJs.js";
|
|
12
|
+
import { r as requireApiKey, t as getApiKeyForModel } from "./model-auth-DBHvPqaY.js";
|
|
13
|
+
import { n as SILENT_REPLY_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-FGW_JgKz.js";
|
|
14
14
|
import fs, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
15
15
|
import os, { tmpdir } from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
@@ -20,69 +20,123 @@ import crypto from "node:crypto";
|
|
|
20
20
|
import { completeSimple } from "@mariozechner/pi-ai";
|
|
21
21
|
import { EdgeTTS } from "node-edge-tts";
|
|
22
22
|
|
|
23
|
-
//#region src/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
//#region src/auto-reply/heartbeat.ts
|
|
24
|
+
const HEARTBEAT_PROMPT = "Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.";
|
|
25
|
+
const DEFAULT_HEARTBEAT_EVERY = "30m";
|
|
26
|
+
const DEFAULT_HEARTBEAT_ACK_MAX_CHARS = 300;
|
|
27
|
+
/**
|
|
28
|
+
* Check if HEARTBEAT.md content is "effectively empty" - meaning it has no actionable tasks.
|
|
29
|
+
* This allows skipping heartbeat API calls when no tasks are configured.
|
|
30
|
+
*
|
|
31
|
+
* A file is considered effectively empty if it contains only:
|
|
32
|
+
* - Whitespace
|
|
33
|
+
* - Comment lines (lines starting with #)
|
|
34
|
+
* - Empty lines
|
|
35
|
+
*
|
|
36
|
+
* Note: A missing file returns false (not effectively empty) so the LLM can still
|
|
37
|
+
* decide what to do. This function is only for when the file exists but has no content.
|
|
38
|
+
*/
|
|
39
|
+
function isHeartbeatContentEffectivelyEmpty(content) {
|
|
40
|
+
if (content === void 0 || content === null) return false;
|
|
41
|
+
if (typeof content !== "string") return false;
|
|
42
|
+
const lines = content.split("\n");
|
|
43
|
+
for (const line of lines) {
|
|
44
|
+
const trimmed = line.trim();
|
|
45
|
+
if (!trimmed) continue;
|
|
46
|
+
if (/^#+(\s|$)/.test(trimmed)) continue;
|
|
47
|
+
if (/^[-*+]\s*(\[[\sXx]?\]\s*)?$/.test(trimmed)) continue;
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
27
51
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
if (!trimmed) return "-";
|
|
31
|
-
return `sha256:${sha256HexPrefix(trimmed, opts?.len ?? 12)}`;
|
|
52
|
+
function resolveHeartbeatPrompt(raw) {
|
|
53
|
+
return (typeof raw === "string" ? raw.trim() : "") || HEARTBEAT_PROMPT;
|
|
32
54
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const shape = classifySessionKeyShape(rawSessionKey);
|
|
39
|
-
if (shape === "malformed_agent") throw new Error("Malformed agent session key; refusing workspace resolution.");
|
|
40
|
-
const explicit = typeof params.agentId === "string" && params.agentId.trim() ? normalizeAgentId(params.agentId) : void 0;
|
|
41
|
-
if (explicit) return {
|
|
42
|
-
agentId: explicit,
|
|
43
|
-
agentIdSource: "explicit"
|
|
44
|
-
};
|
|
45
|
-
const defaultAgentId = resolveDefaultAgentId(params.config ?? {});
|
|
46
|
-
if (shape === "missing" || shape === "legacy_or_alias") return {
|
|
47
|
-
agentId: defaultAgentId || DEFAULT_AGENT_ID,
|
|
48
|
-
agentIdSource: "default"
|
|
55
|
+
function stripTokenAtEdges(raw) {
|
|
56
|
+
let text = raw.trim();
|
|
57
|
+
if (!text) return {
|
|
58
|
+
text: "",
|
|
59
|
+
didStrip: false
|
|
49
60
|
};
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
const token = HEARTBEAT_TOKEN;
|
|
62
|
+
const tokenAtEndWithOptionalTrailingPunctuation = new RegExp(`${escapeRegExp(token)}[^\\w]{0,4}$`);
|
|
63
|
+
if (!text.includes(token)) return {
|
|
64
|
+
text,
|
|
65
|
+
didStrip: false
|
|
54
66
|
};
|
|
67
|
+
let didStrip = false;
|
|
68
|
+
let changed = true;
|
|
69
|
+
while (changed) {
|
|
70
|
+
changed = false;
|
|
71
|
+
const next = text.trim();
|
|
72
|
+
if (next.startsWith(token)) {
|
|
73
|
+
text = next.slice(token.length).trimStart();
|
|
74
|
+
didStrip = true;
|
|
75
|
+
changed = true;
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
if (tokenAtEndWithOptionalTrailingPunctuation.test(next)) {
|
|
79
|
+
const idx = next.lastIndexOf(token);
|
|
80
|
+
const before = next.slice(0, idx).trimEnd();
|
|
81
|
+
if (!before) text = "";
|
|
82
|
+
else text = `${before}${next.slice(idx + token.length).trimStart()}`.trimEnd();
|
|
83
|
+
didStrip = true;
|
|
84
|
+
changed = true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
55
87
|
return {
|
|
56
|
-
|
|
57
|
-
|
|
88
|
+
text: text.replace(/\s+/g, " ").trim(),
|
|
89
|
+
didStrip
|
|
58
90
|
};
|
|
59
91
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
92
|
+
function stripHeartbeatToken(raw, opts = {}) {
|
|
93
|
+
if (!raw) return {
|
|
94
|
+
shouldSkip: true,
|
|
95
|
+
text: "",
|
|
96
|
+
didStrip: false
|
|
97
|
+
};
|
|
98
|
+
const trimmed = raw.trim();
|
|
99
|
+
if (!trimmed) return {
|
|
100
|
+
shouldSkip: true,
|
|
101
|
+
text: "",
|
|
102
|
+
didStrip: false
|
|
103
|
+
};
|
|
104
|
+
const mode = opts.mode ?? "message";
|
|
105
|
+
const maxAckCharsRaw = opts.maxAckChars;
|
|
106
|
+
const parsedAckChars = typeof maxAckCharsRaw === "string" ? Number(maxAckCharsRaw) : maxAckCharsRaw;
|
|
107
|
+
const maxAckChars = Math.max(0, typeof parsedAckChars === "number" && Number.isFinite(parsedAckChars) ? parsedAckChars : DEFAULT_HEARTBEAT_ACK_MAX_CHARS);
|
|
108
|
+
const stripMarkup = (text) => text.replace(/<[^>]*>/g, " ").replace(/ /gi, " ").replace(/^[*`~_]+/, "").replace(/[*`~_]+$/, "");
|
|
109
|
+
const trimmedNormalized = stripMarkup(trimmed);
|
|
110
|
+
if (!(trimmed.includes(HEARTBEAT_TOKEN) || trimmedNormalized.includes(HEARTBEAT_TOKEN))) return {
|
|
111
|
+
shouldSkip: false,
|
|
112
|
+
text: trimmed,
|
|
113
|
+
didStrip: false
|
|
114
|
+
};
|
|
115
|
+
const strippedOriginal = stripTokenAtEdges(trimmed);
|
|
116
|
+
const strippedNormalized = stripTokenAtEdges(trimmedNormalized);
|
|
117
|
+
const picked = strippedOriginal.didStrip && strippedOriginal.text ? strippedOriginal : strippedNormalized;
|
|
118
|
+
if (!picked.didStrip) return {
|
|
119
|
+
shouldSkip: false,
|
|
120
|
+
text: trimmed,
|
|
121
|
+
didStrip: false
|
|
122
|
+
};
|
|
123
|
+
if (!picked.text) return {
|
|
124
|
+
shouldSkip: true,
|
|
125
|
+
text: "",
|
|
126
|
+
didStrip: true
|
|
127
|
+
};
|
|
128
|
+
const rest = picked.text.trim();
|
|
129
|
+
if (mode === "heartbeat") {
|
|
130
|
+
if (rest.length <= maxAckChars) return {
|
|
131
|
+
shouldSkip: true,
|
|
132
|
+
text: "",
|
|
133
|
+
didStrip: true
|
|
77
134
|
};
|
|
78
135
|
}
|
|
79
|
-
const fallbackReason = requested == null ? "missing" : typeof requested === "string" ? "blank" : "invalid_type";
|
|
80
136
|
return {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
agentId,
|
|
85
|
-
agentIdSource
|
|
137
|
+
shouldSkip: false,
|
|
138
|
+
text: rest,
|
|
139
|
+
didStrip: true
|
|
86
140
|
};
|
|
87
141
|
}
|
|
88
142
|
|
|
@@ -208,145 +262,6 @@ async function resolveBootstrapContextForRun(params) {
|
|
|
208
262
|
};
|
|
209
263
|
}
|
|
210
264
|
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/auto-reply/heartbeat.ts
|
|
213
|
-
const HEARTBEAT_PROMPT = "Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.";
|
|
214
|
-
const DEFAULT_HEARTBEAT_EVERY = "30m";
|
|
215
|
-
const DEFAULT_HEARTBEAT_ACK_MAX_CHARS = 300;
|
|
216
|
-
/**
|
|
217
|
-
* Check if HEARTBEAT.md content is "effectively empty" - meaning it has no actionable tasks.
|
|
218
|
-
* This allows skipping heartbeat API calls when no tasks are configured.
|
|
219
|
-
*
|
|
220
|
-
* A file is considered effectively empty if it contains only:
|
|
221
|
-
* - Whitespace
|
|
222
|
-
* - Comment lines (lines starting with #)
|
|
223
|
-
* - Empty lines
|
|
224
|
-
*
|
|
225
|
-
* Note: A missing file returns false (not effectively empty) so the LLM can still
|
|
226
|
-
* decide what to do. This function is only for when the file exists but has no content.
|
|
227
|
-
*/
|
|
228
|
-
function isHeartbeatContentEffectivelyEmpty(content) {
|
|
229
|
-
if (content === void 0 || content === null) return false;
|
|
230
|
-
if (typeof content !== "string") return false;
|
|
231
|
-
const lines = content.split("\n");
|
|
232
|
-
for (const line of lines) {
|
|
233
|
-
const trimmed = line.trim();
|
|
234
|
-
if (!trimmed) continue;
|
|
235
|
-
if (/^#+(\s|$)/.test(trimmed)) continue;
|
|
236
|
-
if (/^[-*+]\s*(\[[\sXx]?\]\s*)?$/.test(trimmed)) continue;
|
|
237
|
-
return false;
|
|
238
|
-
}
|
|
239
|
-
return true;
|
|
240
|
-
}
|
|
241
|
-
function resolveHeartbeatPrompt(raw) {
|
|
242
|
-
return (typeof raw === "string" ? raw.trim() : "") || HEARTBEAT_PROMPT;
|
|
243
|
-
}
|
|
244
|
-
function stripTokenAtEdges(raw) {
|
|
245
|
-
let text = raw.trim();
|
|
246
|
-
if (!text) return {
|
|
247
|
-
text: "",
|
|
248
|
-
didStrip: false
|
|
249
|
-
};
|
|
250
|
-
const token = HEARTBEAT_TOKEN;
|
|
251
|
-
const tokenAtEndWithOptionalTrailingPunctuation = new RegExp(`${escapeRegExp(token)}[^\\w]{0,4}$`);
|
|
252
|
-
if (!text.includes(token)) return {
|
|
253
|
-
text,
|
|
254
|
-
didStrip: false
|
|
255
|
-
};
|
|
256
|
-
let didStrip = false;
|
|
257
|
-
let changed = true;
|
|
258
|
-
while (changed) {
|
|
259
|
-
changed = false;
|
|
260
|
-
const next = text.trim();
|
|
261
|
-
if (next.startsWith(token)) {
|
|
262
|
-
text = next.slice(token.length).trimStart();
|
|
263
|
-
didStrip = true;
|
|
264
|
-
changed = true;
|
|
265
|
-
continue;
|
|
266
|
-
}
|
|
267
|
-
if (tokenAtEndWithOptionalTrailingPunctuation.test(next)) {
|
|
268
|
-
const idx = next.lastIndexOf(token);
|
|
269
|
-
const before = next.slice(0, idx).trimEnd();
|
|
270
|
-
if (!before) text = "";
|
|
271
|
-
else text = `${before}${next.slice(idx + token.length).trimStart()}`.trimEnd();
|
|
272
|
-
didStrip = true;
|
|
273
|
-
changed = true;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return {
|
|
277
|
-
text: text.replace(/\s+/g, " ").trim(),
|
|
278
|
-
didStrip
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
function stripHeartbeatToken(raw, opts = {}) {
|
|
282
|
-
if (!raw) return {
|
|
283
|
-
shouldSkip: true,
|
|
284
|
-
text: "",
|
|
285
|
-
didStrip: false
|
|
286
|
-
};
|
|
287
|
-
const trimmed = raw.trim();
|
|
288
|
-
if (!trimmed) return {
|
|
289
|
-
shouldSkip: true,
|
|
290
|
-
text: "",
|
|
291
|
-
didStrip: false
|
|
292
|
-
};
|
|
293
|
-
const mode = opts.mode ?? "message";
|
|
294
|
-
const maxAckCharsRaw = opts.maxAckChars;
|
|
295
|
-
const parsedAckChars = typeof maxAckCharsRaw === "string" ? Number(maxAckCharsRaw) : maxAckCharsRaw;
|
|
296
|
-
const maxAckChars = Math.max(0, typeof parsedAckChars === "number" && Number.isFinite(parsedAckChars) ? parsedAckChars : DEFAULT_HEARTBEAT_ACK_MAX_CHARS);
|
|
297
|
-
const stripMarkup = (text) => text.replace(/<[^>]*>/g, " ").replace(/ /gi, " ").replace(/^[*`~_]+/, "").replace(/[*`~_]+$/, "");
|
|
298
|
-
const trimmedNormalized = stripMarkup(trimmed);
|
|
299
|
-
if (!(trimmed.includes(HEARTBEAT_TOKEN) || trimmedNormalized.includes(HEARTBEAT_TOKEN))) return {
|
|
300
|
-
shouldSkip: false,
|
|
301
|
-
text: trimmed,
|
|
302
|
-
didStrip: false
|
|
303
|
-
};
|
|
304
|
-
const strippedOriginal = stripTokenAtEdges(trimmed);
|
|
305
|
-
const strippedNormalized = stripTokenAtEdges(trimmedNormalized);
|
|
306
|
-
const picked = strippedOriginal.didStrip && strippedOriginal.text ? strippedOriginal : strippedNormalized;
|
|
307
|
-
if (!picked.didStrip) return {
|
|
308
|
-
shouldSkip: false,
|
|
309
|
-
text: trimmed,
|
|
310
|
-
didStrip: false
|
|
311
|
-
};
|
|
312
|
-
if (!picked.text) return {
|
|
313
|
-
shouldSkip: true,
|
|
314
|
-
text: "",
|
|
315
|
-
didStrip: true
|
|
316
|
-
};
|
|
317
|
-
const rest = picked.text.trim();
|
|
318
|
-
if (mode === "heartbeat") {
|
|
319
|
-
if (rest.length <= maxAckChars) return {
|
|
320
|
-
shouldSkip: true,
|
|
321
|
-
text: "",
|
|
322
|
-
didStrip: true
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
return {
|
|
326
|
-
shouldSkip: false,
|
|
327
|
-
text: rest,
|
|
328
|
-
didStrip: true
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
//#endregion
|
|
333
|
-
//#region src/agents/docs-path.ts
|
|
334
|
-
async function resolveAnimaDocsPath(params) {
|
|
335
|
-
const workspaceDir = params.workspaceDir?.trim();
|
|
336
|
-
if (workspaceDir) {
|
|
337
|
-
const workspaceDocs = path.join(workspaceDir, "docs");
|
|
338
|
-
if (fs.existsSync(workspaceDocs)) return workspaceDocs;
|
|
339
|
-
}
|
|
340
|
-
const packageRoot = await resolveAnimaPackageRoot({
|
|
341
|
-
cwd: params.cwd,
|
|
342
|
-
argv1: params.argv1,
|
|
343
|
-
moduleUrl: params.moduleUrl
|
|
344
|
-
});
|
|
345
|
-
if (!packageRoot) return null;
|
|
346
|
-
const packageDocs = path.join(packageRoot, "docs");
|
|
347
|
-
return fs.existsSync(packageDocs) ? packageDocs : null;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
265
|
//#endregion
|
|
351
266
|
//#region src/media/audio.ts
|
|
352
267
|
const TELEGRAM_VOICE_AUDIO_EXTENSIONS = new Set([
|
|
@@ -2578,20 +2493,93 @@ function buildCliArgs(params) {
|
|
|
2578
2493
|
return args;
|
|
2579
2494
|
}
|
|
2580
2495
|
|
|
2496
|
+
//#endregion
|
|
2497
|
+
//#region src/agents/docs-path.ts
|
|
2498
|
+
async function resolveAnimaDocsPath(params) {
|
|
2499
|
+
const workspaceDir = params.workspaceDir?.trim();
|
|
2500
|
+
if (workspaceDir) {
|
|
2501
|
+
const workspaceDocs = path.join(workspaceDir, "docs");
|
|
2502
|
+
if (fs.existsSync(workspaceDocs)) return workspaceDocs;
|
|
2503
|
+
}
|
|
2504
|
+
const packageRoot = await resolveAnimaPackageRoot({
|
|
2505
|
+
cwd: params.cwd,
|
|
2506
|
+
argv1: params.argv1,
|
|
2507
|
+
moduleUrl: params.moduleUrl
|
|
2508
|
+
});
|
|
2509
|
+
if (!packageRoot) return null;
|
|
2510
|
+
const packageDocs = path.join(packageRoot, "docs");
|
|
2511
|
+
return fs.existsSync(packageDocs) ? packageDocs : null;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
//#endregion
|
|
2515
|
+
//#region src/logging/redact-identifier.ts
|
|
2516
|
+
function sha256HexPrefix(value, len = 12) {
|
|
2517
|
+
const safeLen = Number.isFinite(len) ? Math.max(1, Math.floor(len)) : 12;
|
|
2518
|
+
return crypto.createHash("sha256").update(value).digest("hex").slice(0, safeLen);
|
|
2519
|
+
}
|
|
2520
|
+
function redactIdentifier(value, opts) {
|
|
2521
|
+
const trimmed = value?.trim();
|
|
2522
|
+
if (!trimmed) return "-";
|
|
2523
|
+
return `sha256:${sha256HexPrefix(trimmed, opts?.len ?? 12)}`;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
//#endregion
|
|
2527
|
+
//#region src/agents/workspace-run.ts
|
|
2528
|
+
function resolveRunAgentId(params) {
|
|
2529
|
+
const rawSessionKey = params.sessionKey?.trim() ?? "";
|
|
2530
|
+
const shape = classifySessionKeyShape(rawSessionKey);
|
|
2531
|
+
if (shape === "malformed_agent") throw new Error("Malformed agent session key; refusing workspace resolution.");
|
|
2532
|
+
const explicit = typeof params.agentId === "string" && params.agentId.trim() ? normalizeAgentId(params.agentId) : void 0;
|
|
2533
|
+
if (explicit) return {
|
|
2534
|
+
agentId: explicit,
|
|
2535
|
+
agentIdSource: "explicit"
|
|
2536
|
+
};
|
|
2537
|
+
const defaultAgentId = resolveDefaultAgentId(params.config ?? {});
|
|
2538
|
+
if (shape === "missing" || shape === "legacy_or_alias") return {
|
|
2539
|
+
agentId: defaultAgentId || DEFAULT_AGENT_ID,
|
|
2540
|
+
agentIdSource: "default"
|
|
2541
|
+
};
|
|
2542
|
+
const parsed = parseAgentSessionKey(rawSessionKey);
|
|
2543
|
+
if (parsed?.agentId) return {
|
|
2544
|
+
agentId: normalizeAgentId(parsed.agentId),
|
|
2545
|
+
agentIdSource: "session_key"
|
|
2546
|
+
};
|
|
2547
|
+
return {
|
|
2548
|
+
agentId: defaultAgentId || DEFAULT_AGENT_ID,
|
|
2549
|
+
agentIdSource: "default"
|
|
2550
|
+
};
|
|
2551
|
+
}
|
|
2552
|
+
function redactRunIdentifier(value) {
|
|
2553
|
+
return redactIdentifier(value, { len: 12 });
|
|
2554
|
+
}
|
|
2555
|
+
function resolveRunWorkspaceDir(params) {
|
|
2556
|
+
const requested = params.workspaceDir;
|
|
2557
|
+
const { agentId, agentIdSource } = resolveRunAgentId({
|
|
2558
|
+
sessionKey: params.sessionKey,
|
|
2559
|
+
agentId: params.agentId,
|
|
2560
|
+
config: params.config
|
|
2561
|
+
});
|
|
2562
|
+
if (typeof requested === "string") {
|
|
2563
|
+
const trimmed = requested.trim();
|
|
2564
|
+
if (trimmed) return {
|
|
2565
|
+
workspaceDir: resolveUserPath(trimmed),
|
|
2566
|
+
usedFallback: false,
|
|
2567
|
+
agentId,
|
|
2568
|
+
agentIdSource
|
|
2569
|
+
};
|
|
2570
|
+
}
|
|
2571
|
+
const fallbackReason = requested == null ? "missing" : typeof requested === "string" ? "blank" : "invalid_type";
|
|
2572
|
+
return {
|
|
2573
|
+
workspaceDir: resolveUserPath(resolveAgentWorkspaceDir(params.config ?? {}, agentId)),
|
|
2574
|
+
usedFallback: true,
|
|
2575
|
+
fallbackReason,
|
|
2576
|
+
agentId,
|
|
2577
|
+
agentIdSource
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
2581
|
//#endregion
|
|
2582
2582
|
//#region src/agents/anthropic-direct-runner.ts
|
|
2583
|
-
/**
|
|
2584
|
-
* Anthropic Direct API Runner
|
|
2585
|
-
*
|
|
2586
|
-
* Makes calls directly to api.anthropic.com without needing the claude CLI
|
|
2587
|
-
* binary to be installed or logged in. Works with any valid token:
|
|
2588
|
-
*
|
|
2589
|
-
* sk-ant-api01-... (Console API key)
|
|
2590
|
-
* sk-ant-oat01-... (Claude Code OAuth access token)
|
|
2591
|
-
*
|
|
2592
|
-
* This runner is automatically used when an `anthropic:default` token credential
|
|
2593
|
-
* is present in the auth store and the claude CLI is unavailable or not logged in.
|
|
2594
|
-
*/
|
|
2595
2583
|
const log = createSubsystemLogger("agent/anthropic-direct");
|
|
2596
2584
|
const MODEL_MAP = {
|
|
2597
2585
|
opus: "claude-opus-4-5",
|
|
@@ -2762,10 +2750,10 @@ async function runAnthropicDirectAgent(params) {
|
|
|
2762
2750
|
provider: "anthropic",
|
|
2763
2751
|
model: resolvedModel,
|
|
2764
2752
|
usage: {
|
|
2765
|
-
inputTokens,
|
|
2766
|
-
outputTokens,
|
|
2767
|
-
|
|
2768
|
-
|
|
2753
|
+
input: inputTokens,
|
|
2754
|
+
output: outputTokens,
|
|
2755
|
+
cacheWrite: 0,
|
|
2756
|
+
cacheRead: 0
|
|
2769
2757
|
}
|
|
2770
2758
|
}
|
|
2771
2759
|
}
|
|
@@ -2825,4 +2813,4 @@ async function testAnthropicToken(token) {
|
|
|
2825
2813
|
}
|
|
2826
2814
|
|
|
2827
2815
|
//#endregion
|
|
2828
|
-
export {
|
|
2816
|
+
export { resolveBootstrapContextForRun as $, getTtsMaxLength as A, resolveTtsPrefsPath as B, resolveUserTimeFormat as C, sanitizeBinaryOutput as D, killProcessTree as E, maybeApplyTtsToPayload as F, setTtsMaxLength as G, setLastTtsAttempt as H, normalizeTtsAutoMode as I, textToSpeechTelephony as J, setTtsProvider as K, resolveTtsApiKey as L, isSummarizationEnabled as M, isTtsEnabled as N, buildTtsSystemPromptHint as O, isTtsProviderConfigured as P, makeBootstrapWarn as Q, resolveTtsAutoMode as R, formatUserTime as S, getShellConfig as T, setSummarizationEnabled as U, resolveTtsProviderOrder as V, setTtsEnabled as W, OPENAI_TTS_VOICES as X, OPENAI_TTS_MODELS as Y, isVoiceCompatibleAudio as Z, resolveSessionIdToSend as _, sha256HexPrefix as a, DEFAULT_HEARTBEAT_EVERY as at, buildAgentSystemPrompt as b, buildCliArgs as c, stripHeartbeatToken as ct, cleanupSuspendedCliProcesses as d, clearInternalHooks as et, enqueueCliRun as f, resolvePromptInput as g, parseCliJsonl as h, resolveRunWorkspaceDir as i, DEFAULT_HEARTBEAT_ACK_MAX_CHARS as it, getTtsProvider as j, getLastTtsAttempt as k, buildSystemPrompt as l, parseCliJson as m, testAnthropicToken as n, registerInternalHook as nt, resolveAnimaDocsPath as o, isHeartbeatContentEffectivelyEmpty as ot, normalizeCliModel as p, textToSpeech as q, redactRunIdentifier as r, triggerInternalHook as rt, appendImagePathsToPrompt as s, resolveHeartbeatPrompt as st, runAnthropicDirectAgent as t, createInternalHookEvent as tt, cleanupResumeProcesses as u, resolveSystemPromptUsage as v, resolveUserTimezone as w, buildSystemPromptParams as x, writeCliImages as y, resolveTtsConfig as z };
|
|
@@ -5,20 +5,20 @@ import { n as runExec } from "./exec-BtBJICHE.js";
|
|
|
5
5
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-Dm8IL1Ks.js";
|
|
6
6
|
import { i as loadWorkspaceSkillEntries } from "./skills-DtoVe1dS.js";
|
|
7
7
|
import { p as MANIFEST_KEY, s as normalizePluginsConfig } from "./manifest-registry-W_OfCIRP.js";
|
|
8
|
-
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-
|
|
8
|
+
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-Ofh9gKvs.js";
|
|
9
9
|
import { t as GatewayClient } from "./client-tKWDYo7c.js";
|
|
10
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
10
|
+
import { t as buildGatewayConnectionDetails } from "./call-BKsdSTVf.js";
|
|
11
11
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DdOBO6Qm.js";
|
|
12
|
-
import { _ as resolveToolProfilePolicy, c as resolveSandboxConfigForAgent, u as resolveSandboxToolPolicyForAgent } from "./sandbox-
|
|
13
|
-
import { i as resolveGatewayAuth } from "./auth-
|
|
14
|
-
import { a as resolveBrowserConfig, h as resolveBrowserControlAuth, o as resolveProfile } from "./server-context-
|
|
15
|
-
import { n as formatErrorMessage } from "./errors-
|
|
16
|
-
import { n as listChannelPlugins, r as normalizeChannelId } from "./plugins-
|
|
17
|
-
import { l as readChannelAllowFromStore, n as isToolAllowedByPolicies } from "./pi-tools.policy-
|
|
12
|
+
import { _ as resolveToolProfilePolicy, c as resolveSandboxConfigForAgent, u as resolveSandboxToolPolicyForAgent } from "./sandbox-DhcoWMaN.js";
|
|
13
|
+
import { i as resolveGatewayAuth } from "./auth-DuBZWd74.js";
|
|
14
|
+
import { a as resolveBrowserConfig, h as resolveBrowserControlAuth, o as resolveProfile } from "./server-context-C-usQ5Np.js";
|
|
15
|
+
import { n as formatErrorMessage } from "./errors-l_q3lLBC.js";
|
|
16
|
+
import { n as listChannelPlugins, r as normalizeChannelId } from "./plugins-CFBEoAN4.js";
|
|
17
|
+
import { l as readChannelAllowFromStore, n as isToolAllowedByPolicies } from "./pi-tools.policy-Bn9S3ywB.js";
|
|
18
18
|
import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-CqD9pFDt.js";
|
|
19
19
|
import { t as resolveChannelDefaultAccountId } from "./helpers-tQqXkvd_.js";
|
|
20
20
|
import { t as inferParamBFromIdOrName } from "./model-param-b-BfsIoEc_.js";
|
|
21
|
-
import { n as extensionUsesSkippedScannerPath, r as isPathInside, t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
21
|
+
import { n as extensionUsesSkippedScannerPath, r as isPathInside, t as scanDirectoryWithSummary } from "./skill-scanner-BzOYLFR8.js";
|
|
22
22
|
import os from "node:os";
|
|
23
23
|
import path from "node:path";
|
|
24
24
|
import JSON5 from "json5";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { f as resolveOAuthDir, m as resolveStateDir, o as resolveConfigPath } from "./paths-zhVksOvm.js";
|
|
2
2
|
import { l as normalizeAgentId } from "./session-key-DxcgHezu.js";
|
|
3
|
-
import { n as runExec } from "./exec-
|
|
4
|
-
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-
|
|
6
|
-
import { a as MANIFEST_KEY, l as normalizePluginsConfig } from "./manifest-registry-
|
|
7
|
-
import {
|
|
8
|
-
import { t as formatCliCommand } from "./command-format-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-
|
|
14
|
-
import { n as listChannelPlugins, r as normalizeChannelId } from "./plugins-
|
|
15
|
-
import { l as readChannelAllowFromStore, n as isToolAllowedByPolicies } from "./pi-tools.policy-
|
|
16
|
-
import { t as GatewayClient } from "./client-
|
|
17
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
3
|
+
import { n as runExec } from "./exec-Bo7Vwe77.js";
|
|
4
|
+
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-ryeVDUKe.js";
|
|
5
|
+
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-Dk-5Mb_G.js";
|
|
6
|
+
import { a as MANIFEST_KEY, l as normalizePluginsConfig } from "./manifest-registry-BJat2nhC.js";
|
|
7
|
+
import { _ as resolveToolProfilePolicy, c as resolveSandboxConfigForAgent, u as resolveSandboxToolPolicyForAgent } from "./sandbox-B4-dXpqZ.js";
|
|
8
|
+
import { t as formatCliCommand } from "./command-format-UwAvxtMC.js";
|
|
9
|
+
import { i as resolveGatewayAuth } from "./auth-DQfFqQBz.js";
|
|
10
|
+
import { a as resolveBrowserConfig, h as resolveBrowserControlAuth, o as resolveProfile } from "./server-context-r7wPe4ZD.js";
|
|
11
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-wS8aRGeO.js";
|
|
12
|
+
import { n as formatErrorMessage } from "./errors-D6Vj_xs4.js";
|
|
13
|
+
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-C5I8UgGH.js";
|
|
14
|
+
import { n as listChannelPlugins, r as normalizeChannelId } from "./plugins-NbldDVJs.js";
|
|
15
|
+
import { l as readChannelAllowFromStore, n as isToolAllowedByPolicies } from "./pi-tools.policy-ChzY9kW7.js";
|
|
16
|
+
import { t as GatewayClient } from "./client-BT3pbXCv.js";
|
|
17
|
+
import { t as buildGatewayConnectionDetails } from "./call-C3CH9PNK.js";
|
|
18
18
|
import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-55Gvzb6E.js";
|
|
19
19
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BI1K0a4D.js";
|
|
20
|
-
import { n as extensionUsesSkippedScannerPath, r as isPathInside, t as scanDirectoryWithSummary } from "./skill-scanner
|
|
20
|
+
import { n as extensionUsesSkippedScannerPath, r as isPathInside, t as scanDirectoryWithSummary } from "./skill-scanner--TxpCSNF.js";
|
|
21
21
|
import os from "node:os";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import JSON5 from "json5";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as isYes, N as logVerbose, d as defaultRuntime, j as isVerbose } from "./subsystem-
|
|
2
|
-
import { n as runExec } from "./exec-
|
|
3
|
-
import { a as isTrustedProxyAddress, n as isLoopbackAddress, s as parseForwardedForClientIp, u as resolveGatewayClientIp } from "./ws-
|
|
1
|
+
import { M as isYes, N as logVerbose, d as defaultRuntime, j as isVerbose } from "./subsystem-BMsbqSb4.js";
|
|
2
|
+
import { n as runExec } from "./exec-Bo7Vwe77.js";
|
|
3
|
+
import { a as isTrustedProxyAddress, n as isLoopbackAddress, s as parseForwardedForClientIp, u as resolveGatewayClientIp } from "./ws-sdRTa2sP.js";
|
|
4
4
|
import { stdin, stdout } from "node:process";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import { createHash, timingSafeEqual } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as readCodexCliCredentialsCached, l as ensureAuthProfileStore, s as listProfilesForProvider } from "./auth-profiles-
|
|
1
|
+
import { g as readCodexCliCredentialsCached, l as ensureAuthProfileStore, s as listProfilesForProvider } from "./auth-profiles-BF5x9Ej0.js";
|
|
2
2
|
import { a as resolveAgentModelPrimary } from "./agent-scope-Dm8IL1Ks.js";
|
|
3
|
-
import { _ as DEFAULT_MODEL, c as normalizeProviderId, d as resolveConfiguredModelRef, o as modelKey, r as buildModelAliasIndex, t as buildAllowedModelSet, v as DEFAULT_PROVIDER } from "./model-selection-
|
|
4
|
-
import { n as getCustomProviderApiKey, o as resolveEnvApiKey } from "./model-auth-
|
|
3
|
+
import { _ as DEFAULT_MODEL, c as normalizeProviderId, d as resolveConfiguredModelRef, o as modelKey, r as buildModelAliasIndex, t as buildAllowedModelSet, v as DEFAULT_PROVIDER } from "./model-selection-DFbDH9o2.js";
|
|
4
|
+
import { n as getCustomProviderApiKey, o as resolveEnvApiKey } from "./model-auth-Be3_KahV.js";
|
|
5
5
|
import { r as ensureAuthenticated } from "./noxsoft-auth-By_nLRaY.js";
|
|
6
|
-
import { dt as loadModelCatalog } from "./cli-session-
|
|
7
|
-
import { c as setAnthropicApiKey, i as formatTokenK, l as setGeminiApiKey, s as applyAuthProfileConfig, u as writeOAuthCredentials } from "./prompts-
|
|
6
|
+
import { dt as loadModelCatalog } from "./cli-session-CmX1oA1T.js";
|
|
7
|
+
import { c as setAnthropicApiKey, i as formatTokenK, l as setGeminiApiKey, s as applyAuthProfileConfig, u as writeOAuthCredentials } from "./prompts-BfHxhlF9.js";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/auth-choice-options.ts
|
|
10
10
|
const AUTH_CHOICE_GROUP_DEFS = [
|
|
@@ -2,7 +2,7 @@ import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
|
2
2
|
import { Q as resolveOAuthPath, o as createSubsystemLogger } from "./entry.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-kLw3YIIu.js";
|
|
4
4
|
import { y as resolveUserPath } from "./utils-D1VGbO3C.js";
|
|
5
|
-
import { c as normalizeProviderId } from "./model-selection-
|
|
5
|
+
import { c as normalizeProviderId } from "./model-selection-DFbDH9o2.js";
|
|
6
6
|
import { t as withFileLock } from "./file-lock-CxXn285m.js";
|
|
7
7
|
import { t as resolveAnimaAgentDir } from "./agent-paths-niQrLbGc.js";
|
|
8
8
|
import { execFileSync, execSync } from "node:child_process";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
2
|
import { m as resolveStateDir, p as resolveOAuthPath } from "./paths-zhVksOvm.js";
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { b as resolveUserPath } from "./utils-
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BMsbqSb4.js";
|
|
4
|
+
import { b as resolveUserPath } from "./utils-B60lF9Wq.js";
|
|
5
5
|
import { n as DEFAULT_AGENT_ID } from "./session-key-DxcgHezu.js";
|
|
6
|
-
import { c as normalizeProviderId } from "./model-selection-
|
|
7
|
-
import { t as formatCliCommand } from "./command-format-
|
|
8
|
-
import { t as withFileLock } from "./file-lock-
|
|
6
|
+
import { c as normalizeProviderId } from "./model-selection-DRIxw3do.js";
|
|
7
|
+
import { t as formatCliCommand } from "./command-format-UwAvxtMC.js";
|
|
8
|
+
import { t as withFileLock } from "./file-lock-BFQVGKm5.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { execFileSync, execSync } from "node:child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
2
|
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-B-AkG5FD.js";
|
|
3
|
-
import { _ as DEFAULT_AGENT_ID } from "./workspace-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { w as resolveUserPath } from "./exec-
|
|
6
|
-
import { s as normalizeProviderId } from "./model-selection-
|
|
3
|
+
import { _ as DEFAULT_AGENT_ID } from "./workspace-Cvio8QlZ.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-BP2l3SHn.js";
|
|
5
|
+
import { w as resolveUserPath } from "./exec-CEFTijVj.js";
|
|
6
|
+
import { s as normalizeProviderId } from "./model-selection-BuMFehML.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-GLYKXXl-.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { f as resolveOAuthDir } from "./paths-zhVksOvm.js";
|
|
2
|
-
import { A as info, H as getChildLogger, L as success, d as defaultRuntime } from "./subsystem-
|
|
3
|
-
import { b as resolveUserPath, m as jidToE164 } from "./utils-
|
|
2
|
+
import { A as info, H as getChildLogger, L as success, d as defaultRuntime } from "./subsystem-BMsbqSb4.js";
|
|
3
|
+
import { b as resolveUserPath, m as jidToE164 } from "./utils-B60lF9Wq.js";
|
|
4
4
|
import { t as DEFAULT_ACCOUNT_ID } from "./session-key-DxcgHezu.js";
|
|
5
|
-
import { t as formatCliCommand } from "./command-format-
|
|
5
|
+
import { t as formatCliCommand } from "./command-format-UwAvxtMC.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs$1 from "node:fs/promises";
|