@bitseek/claw 1.2.8 → 1.3.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/{agents-BCJbDk2P.js → agents-Sp-v-_mR.js} +4 -4
- package/dist/{agents.config-DoxV5m9v.js → agents.config-C6zkqXkX.js} +1 -1
- package/dist/{agents.config-DQBEXhzA.js → agents.config-rRQ8xZUr.js} +1 -1
- package/dist/{auth-choice-CdsMUqKA.js → auth-choice-eimtfK0N.js} +1 -1
- package/dist/{auth-choice-CP6K5htW.js → auth-choice-lzACBXDv.js} +1 -1
- package/dist/{banner-V_1v329B.js → banner-CYVM4p3E.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-Dsjb-V1F.js → channel-options-Cn6pNgzb.js} +1 -1
- package/dist/{channel-options-Bnnem_wD.js → channel-options-uEYF4WRA.js} +1 -1
- package/dist/{channel-web-KY6EP9HT.js → channel-web-BJJUEEKO.js} +1 -1
- package/dist/{channel-web-wuxrfEJh.js → channel-web-TsD9bdWt.js} +1 -1
- package/dist/{channels-cli-OZeQkPMG.js → channels-cli-DA8sLqQk.js} +7 -7
- package/dist/{channels-cli-tJkvzsqO.js → channels-cli-GwM8DZvP.js} +6 -6
- package/dist/{cli-DOS1lPNs.js → cli-BLZW83kS.js} +1 -1
- package/dist/{cli-YeYpjq2c.js → cli-DIs0fL3W.js} +2 -2
- package/dist/{command-registry-Keal8P25.js → command-registry-By6zKf98.js} +9 -9
- package/dist/{completion-cli-B_pSnPVY.js → completion-cli-BuLkcc9o.js} +1 -1
- package/dist/{completion-cli-BWcHEWr6.js → completion-cli-CV7dNv8l.js} +2 -2
- package/dist/{config-cli-DZpbwWvz.js → config-cli-D4EnfBqh.js} +1 -1
- package/dist/{config-cli-hwawfBlS.js → config-cli-Dh9rvUxe.js} +1 -1
- package/dist/{configure-l-lM74c1.js → configure-BYFIF9Sz.js} +3 -3
- package/dist/{configure-CLMtWGiL.js → configure-CBB1YbMN.js} +3 -3
- package/dist/control-ui/assets/{index-puDi2eTY.js → index-CBxamjSz.js} +80 -80
- package/dist/control-ui/assets/index-CBxamjSz.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/{doctor-completion-sKCaOE5l.js → doctor-completion-BIt5xBwC.js} +1 -1
- package/dist/{doctor-completion-leOuoRMt.js → doctor-completion-T9CxDBUR.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/extensionAPI.js +1 -1
- package/dist/{gateway-cli-jL3MSRHB.js → gateway-cli-CanylfLh.js} +8 -8
- package/dist/{gateway-cli-BlVNebTw.js → gateway-cli-gzemofET.js} +9 -9
- package/dist/{health-Du8dO3vn.js → health-BX20asqJ.js} +1 -1
- package/dist/{health-CDEXWvnu.js → health-CWmeMvVp.js} +1 -1
- package/dist/{hooks-cli-DUIQuGjr.js → hooks-cli-Cs2Ovk-O.js} +2 -2
- package/dist/{hooks-cli-Deo01lF6.js → hooks-cli-DzvdmY1Z.js} +3 -3
- package/dist/index.js +6 -6
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{models-CgguB_MH.js → models-C21qhHIB.js} +2 -2
- package/dist/{models-cli-CHUbcM_y.js → models-cli-C-FMLbe_.js} +2 -2
- package/dist/{models-cli-BEb0DHSP.js → models-cli-CMETQ9Wy.js} +4 -4
- package/dist/{npm-resolution-T8SphiP5.js → npm-resolution-BAwDXgj5.js} +1 -1
- package/dist/{npm-resolution-Dv7nYiaP.js → npm-resolution-oBSNTx2S.js} +1 -1
- package/dist/{onboard-KHObANUh.js → onboard-B-f5pmgG.js} +2 -2
- package/dist/{onboard-BCcjGKBR.js → onboard-CLUldVpr.js} +2 -2
- package/dist/{onboard-channels-BLZ8FdVP.js → onboard-channels-B59K9VZH.js} +1 -1
- package/dist/{onboard-channels-CRpmgX82.js → onboard-channels-Bbzz_NPd.js} +1 -1
- package/dist/{onboarding-BTXvw1Ro.js → onboarding-DHqNGWCb.js} +3 -3
- package/dist/{onboarding-DQNTd5J7.js → onboarding-Kp0zZunD.js} +3 -3
- package/dist/{onboarding.finalize-CHYENeNO.js → onboarding.finalize-CJ23anMx.js} +5 -5
- package/dist/{onboarding.finalize-D0qfP3rB.js → onboarding.finalize-D_n9fly-.js} +7 -7
- package/dist/{pi-embedded-Bacc2S0h.js → pi-embedded-BgVoy_Nm.js} +42 -6
- package/dist/{pi-embedded-Claxav22.js → pi-embedded-DdMbqfLM.js} +42 -6
- package/dist/{plugin-registry-CxFikiLF.js → plugin-registry-CA1t0UeN.js} +1 -1
- package/dist/{plugin-registry-TOEmbMc4.js → plugin-registry-pa6LjTdT.js} +1 -1
- package/dist/plugin-sdk/{accounts-AbI8uETR.js → accounts-BZrkOo6-.js} +1 -1
- package/dist/plugin-sdk/{accounts-4WE2wtsW.js → accounts-COLYAAOx.js} +1 -1
- package/dist/plugin-sdk/{accounts-BYcizTXn.js → accounts-D_pT5EjF.js} +3 -3
- package/dist/plugin-sdk/{active-listener-pnqLAUOh.js → active-listener-DxBXcWm_.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-_j3fIYCK.js → agent-scope-DT5pxpJB.js} +3 -3
- package/dist/plugin-sdk/agents/context.d.ts +2 -0
- package/dist/plugin-sdk/{api-key-rotation-CYI51U_M.js → api-key-rotation-Dl6Ad7Nj.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-BTRRjPew.js → audio-preflight-CkPj4OVY.js} +33 -33
- package/dist/plugin-sdk/{audio-transcription-runner-DFZS7uCO.js → audio-transcription-runner-BBn9jEMg.js} +10 -10
- package/dist/plugin-sdk/{bindings-CxxzC7gn.js → bindings-BSfhEjKN.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-B3yZ-f-m.js → channel-activity-DAEbma-o.js} +3 -3
- package/dist/plugin-sdk/{channel-web-D2q54sK-.js → channel-web-BaFUnG0F.js} +23 -23
- package/dist/plugin-sdk/{chrome-oPevdeh5.js → chrome-Dn0G4NoF.js} +7 -7
- package/dist/plugin-sdk/{chunk-BPyPeheZ.js → chunk-cvtXztAT.js} +1 -1
- package/dist/plugin-sdk/{command-format-DvyMEXQo.js → command-format-BOJz3y1v.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-Dk8re8Lz.js → commands-registry-CZWv_JwZ.js} +5 -5
- package/dist/plugin-sdk/{config-D7I2_X4P.js → config-DAwOhnVF.js} +10 -10
- package/dist/plugin-sdk/{deliver-NrIHn0__.js → deliver-PdH-MCq8.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-DL3k_wRi.js → diagnostic-BZvj-qNu.js} +2 -2
- package/dist/plugin-sdk/{dock-CjdkiLH7.js → dock-BdR3OYZn.js} +6 -6
- package/dist/plugin-sdk/{errors-DFTN4h2I.js → errors-jusxdu7M.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-BivEyA4v.js → fetch-guard-Dary6WwJ.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-B256n7Ff.js → fs-safe-DMCE0ej9.js} +3 -3
- package/dist/plugin-sdk/{image-CkPzr3XN.js → image-B3A2l2ep.js} +6 -6
- package/dist/plugin-sdk/{image-ops-C9GXWF3o.js → image-ops-DulHE5Qc.js} +1 -1
- package/dist/plugin-sdk/index.js +64 -64
- package/dist/plugin-sdk/{ir-BIm-jvIK.js → ir-BFXiJrsN.js} +6 -6
- package/dist/plugin-sdk/{local-roots-2AOXGUXW.js → local-roots-DssN60r6.js} +4 -4
- package/dist/plugin-sdk/{logger-CNhs9eKJ.js → logger-Cr-x0vMf.js} +1 -1
- package/dist/plugin-sdk/{login-BcLiF9tC.js → login-D0ul3-6C.js} +6 -6
- package/dist/plugin-sdk/{login-qr-GyPUodKJ.js → login-qr-XWKTFBuI.js} +9 -9
- package/dist/plugin-sdk/{manager-DYLqNUb4.js → manager-DGx_cF54.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-D9mmqMKi.js → markdown-tables-CsQpDNU5.js} +1 -1
- package/dist/plugin-sdk/{message-channel-_CEZcqxE.js → message-channel-CvNq-esz.js} +1 -1
- package/dist/plugin-sdk/{outbound-DdTsUaXa.js → outbound-D29FHlQl.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment--hkuIDR1.js → outbound-attachment-DRHrZUOx.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-BqUCBfUg.js → path-alias-guards-DpKV1B5p.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CTfvZz83.js → pi-embedded-helpers-CKEUWckk.js} +17 -17
- package/dist/plugin-sdk/{pi-model-discovery-CK3Ih_kq.js → pi-model-discovery-BPeQq9XM.js} +1 -1
- package/dist/plugin-sdk/{plugins-BpHAMNJ1.js → plugins-DF_dKXTR.js} +6 -6
- package/dist/plugin-sdk/{proxy-BJdRZOnJ.js → proxy-BfmEDoun.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-jmbopGcm.js → proxy-fetch-BpHIgvBk.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-D0Kx7w1D.js → pw-ai-BmmXDjtm.js} +13 -13
- package/dist/plugin-sdk/{qmd-manager-BDcutPp9.js → qmd-manager-3hQbqkm5.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-C_X8SyEA.js → query-expansion-BOGLUWB7.js} +2 -2
- package/dist/plugin-sdk/{redact-DH8u23pF.js → redact-BOuKZWXa.js} +1 -1
- package/dist/plugin-sdk/{registry-HF8_S7QO.js → registry-Cv-oHUj1.js} +2 -2
- package/dist/plugin-sdk/{replies-DbjvV4gf.js → replies-CddwWBTJ.js} +3 -3
- package/dist/plugin-sdk/{reply-Cs_Ks2Mr.js → reply-BCRC0yeW.js} +133 -97
- package/dist/plugin-sdk/{reply-prefix-KODsMNJ-.js → reply-prefix-DXthVxCx.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-BPT4aNiD.js → resolve-outbound-target-D3Y4F2Le.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-De2B5QY_.js → resolve-route-DuwYYn4a.js} +4 -4
- package/dist/plugin-sdk/{retry-pZ8iKytf.js → retry-BMcrIz7L.js} +1 -1
- package/dist/plugin-sdk/{send-C-Rd2stz.js → send-B0ztz6QC.js} +6 -6
- package/dist/plugin-sdk/{send-BoNw1Bki.js → send-C5USYGq7.js} +8 -8
- package/dist/plugin-sdk/{send-1uW-uqPf.js → send-D0AaWnIj.js} +7 -7
- package/dist/plugin-sdk/{send-wCqsQs_s.js → send-DEyQJTzd.js} +10 -10
- package/dist/plugin-sdk/{send-CZIN8SDx.js → send-DJzwu8kk.js} +15 -15
- package/dist/plugin-sdk/{session-ooYcB82T.js → session-BA7tVDpV.js} +5 -5
- package/dist/plugin-sdk/{session-meta-7J-uHiM_.js → session-meta-ChWvKVWj.js} +1 -1
- package/dist/plugin-sdk/{sessions-lAIo5l8W.js → sessions-BXps6YzJ.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-D1Q6hGS4.js → skill-commands-B20uUsji.js} +5 -5
- package/dist/plugin-sdk/{skills-BWSDv2F_.js → skills-DXOTei42.js} +8 -8
- package/dist/plugin-sdk/{ssrf-JKDwTi8i.js → ssrf-Doxv9M7Q.js} +1 -1
- package/dist/plugin-sdk/{store-BMeqzQAf.js → store-BZbE1V-C.js} +2 -2
- package/dist/plugin-sdk/{subsystem-B0V8LFBA.js → subsystem-CM1s2lDT.js} +2 -2
- package/dist/plugin-sdk/{tables-DCSeBGBz.js → tables-BhH8EIqU.js} +1 -1
- package/dist/plugin-sdk/{target-errors-0u6pegQv.js → target-errors-QZay02Cv.js} +2 -2
- package/dist/plugin-sdk/{tokens-DF2_VTJy.js → tokens-DIE-Bf72.js} +1 -1
- package/dist/plugin-sdk/{tool-images-BbsgbHMZ.js → tool-images-heXfaJdb.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-JkCpGrfk.js → tool-loop-detection-CygMSQUK.js} +2 -2
- package/dist/plugin-sdk/{utils-BfVxx6bk.js → utils-BcL6KGZf.js} +1 -1
- package/dist/plugin-sdk/web-BDHHRoXS.js +72 -0
- package/dist/plugin-sdk/{whatsapp-actions-tVcrGNQc.js → whatsapp-actions-CRean1yN.js} +25 -25
- package/dist/{plugins-cli-bHHZzKd-.js → plugins-cli-Cidq7nJb.js} +3 -3
- package/dist/{plugins-cli-Clo_uyvq.js → plugins-cli-CqDquUh9.js} +2 -2
- package/dist/{program-BI6W1Gll.js → program-C0yxnClq.js} +8 -8
- package/dist/{program-context-D2D7wH7Q.js → program-context-D2U9PEv9.js} +17 -17
- package/dist/{prompt-select-styled-CdBJ0FWT.js → prompt-select-styled-Bir77erd.js} +4 -4
- package/dist/{prompt-select-styled-FGF3Su20.js → prompt-select-styled-Da_XCcz7.js} +4 -4
- package/dist/{provider-auth-helpers-BFsLtU8g.js → provider-auth-helpers-B4nCFlNS.js} +1 -1
- package/dist/{provider-auth-helpers-D_akOb8A.js → provider-auth-helpers-fK9RpOiF.js} +1 -1
- package/dist/{push-apns-BSlKJa83.js → push-apns-BSwx-wiI.js} +1 -1
- package/dist/{push-apns-DvNRo3EQ.js → push-apns-C7oC1J4F.js} +1 -1
- package/dist/{register.agent-DowGjvNc.js → register.agent-DVy4TdwU.js} +6 -6
- package/dist/{register.agent-C-OmdJMe.js → register.agent-kmdjftAP.js} +8 -8
- package/dist/{register.configure-BZLa_c3k.js → register.configure-BzG1EPPb.js} +7 -7
- package/dist/{register.configure-CaSRlI6h.js → register.configure-CZqcKxCG.js} +8 -8
- package/dist/{register.maintenance-f8NCHf6u.js → register.maintenance-CaDyvPmk.js} +9 -9
- package/dist/{register.maintenance-DTx6vUDv.js → register.maintenance-ClYMbiJl.js} +7 -7
- package/dist/{register.message-DE-eKss6.js → register.message-BkAe3KaX.js} +2 -2
- package/dist/{register.message-5hKmcWaB.js → register.message-DJc4mrgz.js} +3 -3
- package/dist/{register.onboard-DmymXZNT.js → register.onboard-BUBCEjZ_.js} +2 -2
- package/dist/{register.onboard-tT7keiju.js → register.onboard-a-TEy7gB.js} +2 -2
- package/dist/{register.setup-DjHaiqnA.js → register.setup-9Je9b17j.js} +2 -2
- package/dist/{register.setup-D9AvFexw.js → register.setup-Dlmt8cdD.js} +2 -2
- package/dist/{register.status-health-sessions-Cbva8fTK.js → register.status-health-sessions-BfIwzFQw.js} +3 -3
- package/dist/{register.status-health-sessions-lOM_lb6H.js → register.status-health-sessions-CxepWnj5.js} +5 -5
- package/dist/{register.subclis-pmPhNoRB.js → register.subclis-D2hfRpSx.js} +9 -9
- package/dist/{reply-D8Yu6-Ie.js → reply-BOAv4F33.js} +42 -6
- package/dist/{run-main-D5C2p24j.js → run-main-D9foK80m.js} +16 -16
- package/dist/{server-node-events-yFZiE04b.js → server-node-events-B3SyIWEd.js} +3 -3
- package/dist/{server-node-events-nakjzVDn.js → server-node-events-DAuQ0Pk2.js} +2 -2
- package/dist/{session-utils-BncMg1bn.js → session-utils-BUkGcYpv.js} +40 -4
- package/dist/{sessions-C2Xfck_9.js → sessions-DVvNhGXX.js} +1 -1
- package/dist/{status-mS4bWnIW.js → status-Bor8v_Ab.js} +3 -3
- package/dist/{status-CQYA6EJN.js → status-C6WYtjMU.js} +2 -2
- package/dist/{subagent-registry-CXBreqUP.js → subagent-registry-CukgiXMW.js} +3 -3
- package/dist/{update-cli-C2EagLTi.js → update-cli-BDRni489.js} +9 -9
- package/dist/{update-cli-DiT2fFEK.js → update-cli-CWNpH8nb.js} +7 -7
- package/dist/{update-runner-C9noXbfV.js → update-runner-BAPahND7.js} +1 -1
- package/dist/{update-runner-DO6RodZW.js → update-runner-CE9BNhOu.js} +1 -1
- package/dist/{web-CDHXvGxm.js → web-C1PpWeXj.js} +1 -1
- package/dist/{web-DbdjX4Hg.js → web-C_RqjNux.js} +2 -2
- package/dist/{web-DJKitOpu.js → web-DBuATjw6.js} +1 -1
- package/dist/{web-BKrNiKsU.js → web-D_nYCn4Q.js} +3 -3
- package/package.json +1 -1
- package/dist/control-ui/assets/index-puDi2eTY.js.map +0 -1
- package/dist/plugin-sdk/web-B35hdNQ-.js +0 -72
|
@@ -41,9 +41,9 @@ import { t as hasExplicitOptions } from "./command-options-DIuz7LzE.js";
|
|
|
41
41
|
import "./note-BuhsMSuP.js";
|
|
42
42
|
import "./clack-prompter-B2lC_BWr.js";
|
|
43
43
|
import "./runtime-guard-lQH3Hjre.js";
|
|
44
|
-
import "./onboarding-
|
|
44
|
+
import "./onboarding-DHqNGWCb.js";
|
|
45
45
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-DsLC1iR-.js";
|
|
46
|
-
import { t as onboardCommand } from "./onboard-
|
|
46
|
+
import { t as onboardCommand } from "./onboard-CLUldVpr.js";
|
|
47
47
|
import JSON5 from "json5";
|
|
48
48
|
import fs from "node:fs/promises";
|
|
49
49
|
|
|
@@ -41,9 +41,9 @@ import "./runtime-guard-p6l4jDOj.js";
|
|
|
41
41
|
import { t as hasExplicitOptions } from "./command-options-D4YE45pL.js";
|
|
42
42
|
import "./note-CLcV1fjx.js";
|
|
43
43
|
import "./clack-prompter-CgCD3NZ8.js";
|
|
44
|
-
import "./onboarding-
|
|
44
|
+
import "./onboarding-Kp0zZunD.js";
|
|
45
45
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-yFV4aFrN.js";
|
|
46
|
-
import { t as onboardCommand } from "./onboard-
|
|
46
|
+
import { t as onboardCommand } from "./onboard-B-f5pmgG.js";
|
|
47
47
|
import JSON5 from "json5";
|
|
48
48
|
import fs from "node:fs/promises";
|
|
49
49
|
|
|
@@ -2,7 +2,7 @@ import "./paths-BYr-iJJ9.js";
|
|
|
2
2
|
import { f as isRich, n as info, p as theme, s as setVerbose } from "./globals-uLeGcRW1.js";
|
|
3
3
|
import "./utils-CP51tiAi.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import { S as classifySessionKey, k as resolveSessionModelRef, qt as lookupContextTokens } from "./reply-
|
|
5
|
+
import { S as classifySessionKey, k as resolveSessionModelRef, qt as lookupContextTokens } from "./reply-BOAv4F33.js";
|
|
6
6
|
import { d as resolveDefaultAgentId, r as listAgentIds } from "./agent-scope-CiBV1K6b.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-BT74-yyS.js";
|
|
8
8
|
import { T as parseAgentSessionKey, c as normalizeAgentId } from "./session-key-C9z4VQtw.js";
|
|
@@ -131,8 +131,8 @@ import "./service-DqxfCr8y.js";
|
|
|
131
131
|
import "./diagnostics-BHQgZbuI.js";
|
|
132
132
|
import "./table-DZBPnHSy.js";
|
|
133
133
|
import "./audit-1YVlVmk7.js";
|
|
134
|
-
import { t as statusCommand } from "./status-
|
|
135
|
-
import { r as healthCommand } from "./health-
|
|
134
|
+
import { t as statusCommand } from "./status-C6WYtjMU.js";
|
|
135
|
+
import { r as healthCommand } from "./health-BX20asqJ.js";
|
|
136
136
|
import "./status.update-HwSPC5ZX.js";
|
|
137
137
|
import "./channel-account-context-C6rIxLzo.js";
|
|
138
138
|
import "./node-command-policy-BKUs_pS2.js";
|
|
@@ -31,7 +31,7 @@ import "./accounts-DTfEeXyO.js";
|
|
|
31
31
|
import "./bindings-Hx6KNJeg.js";
|
|
32
32
|
import "./send-Cpaj_bKB.js";
|
|
33
33
|
import "./send-BpXRh0BM.js";
|
|
34
|
-
import "./subagent-registry-
|
|
34
|
+
import "./subagent-registry-CukgiXMW.js";
|
|
35
35
|
import { n as resolveSessionFilePath, r as resolveSessionFilePathOptions } from "./paths-CTtLmER4.js";
|
|
36
36
|
import "./chat-envelope-D3RSz140.js";
|
|
37
37
|
import "./client-BvL3EdiZ.js";
|
|
@@ -89,7 +89,7 @@ import "./pairing-store-BfzlN-z9.js";
|
|
|
89
89
|
import "./exec-approvals-HRn5F9dF.js";
|
|
90
90
|
import "./nodes-screen-DcxCMjOs.js";
|
|
91
91
|
import "./system-run-command-GKGzGztn.js";
|
|
92
|
-
import "./session-utils-
|
|
92
|
+
import "./session-utils-BUkGcYpv.js";
|
|
93
93
|
import "./session-cost-usage-BCEcVVJ6.js";
|
|
94
94
|
import "./skill-commands-CYucDd3C.js";
|
|
95
95
|
import "./workspace-dirs-BOgNOBjy.js";
|
|
@@ -130,13 +130,13 @@ import "./service-Bjqlh_fF.js";
|
|
|
130
130
|
import "./diagnostics-ABz8E7c-.js";
|
|
131
131
|
import "./table-CqULNDay.js";
|
|
132
132
|
import "./audit-Bgu8Ommg.js";
|
|
133
|
-
import { n as statusCommand } from "./status-
|
|
134
|
-
import { r as healthCommand } from "./health-
|
|
133
|
+
import { n as statusCommand } from "./status-Bor8v_Ab.js";
|
|
134
|
+
import { r as healthCommand } from "./health-CWmeMvVp.js";
|
|
135
135
|
import "./status.update-YC9VNJxl.js";
|
|
136
136
|
import "./channel-account-context-BV3Q0XnD.js";
|
|
137
137
|
import "./node-command-policy-pJ6IPNBA.js";
|
|
138
138
|
import "./node-service-DUUObpwl.js";
|
|
139
|
-
import { a as SESSION_MODEL_PAD, c as formatSessionKeyCell, d as resolveSessionDisplayModel, f as toSessionDisplayRows, i as SESSION_KEY_PAD, l as formatSessionModelCell, o as formatSessionAgeCell, p as resolveSessionStoreTargetsOrExit, r as SESSION_AGE_PAD, s as formatSessionFlagsCell, t as sessionsCommand, u as resolveSessionDisplayDefaults } from "./sessions-
|
|
139
|
+
import { a as SESSION_MODEL_PAD, c as formatSessionKeyCell, d as resolveSessionDisplayModel, f as toSessionDisplayRows, i as SESSION_KEY_PAD, l as formatSessionModelCell, o as formatSessionAgeCell, p as resolveSessionStoreTargetsOrExit, r as SESSION_AGE_PAD, s as formatSessionFlagsCell, t as sessionsCommand, u as resolveSessionDisplayDefaults } from "./sessions-DVvNhGXX.js";
|
|
140
140
|
import fs from "node:fs";
|
|
141
141
|
|
|
142
142
|
//#region src/commands/sessions-cleanup.ts
|
|
@@ -65,7 +65,7 @@ const entries = [
|
|
|
65
65
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
66
66
|
hasSubcommands: true,
|
|
67
67
|
register: async (program) => {
|
|
68
|
-
(await import("./gateway-cli-
|
|
68
|
+
(await import("./gateway-cli-gzemofET.js")).registerGatewayCli(program);
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -97,7 +97,7 @@ const entries = [
|
|
|
97
97
|
description: "Discover, scan, and configure models",
|
|
98
98
|
hasSubcommands: true,
|
|
99
99
|
register: async (program) => {
|
|
100
|
-
(await import("./models-cli-
|
|
100
|
+
(await import("./models-cli-CMETQ9Wy.js")).registerModelsCli(program);
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
{
|
|
@@ -177,7 +177,7 @@ const entries = [
|
|
|
177
177
|
description: "Manage internal agent hooks",
|
|
178
178
|
hasSubcommands: true,
|
|
179
179
|
register: async (program) => {
|
|
180
|
-
(await import("./hooks-cli-
|
|
180
|
+
(await import("./hooks-cli-DzvdmY1Z.js")).registerHooksCli(program);
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
{
|
|
@@ -209,7 +209,7 @@ const entries = [
|
|
|
209
209
|
description: "Secure DM pairing (approve inbound requests)",
|
|
210
210
|
hasSubcommands: true,
|
|
211
211
|
register: async (program) => {
|
|
212
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
212
|
+
const { registerPluginCliCommands } = await import("./cli-DIs0fL3W.js");
|
|
213
213
|
registerPluginCliCommands(program, await loadConfig());
|
|
214
214
|
(await import("./pairing-cli-DiKgOlKC.js")).registerPairingCli(program);
|
|
215
215
|
}
|
|
@@ -219,8 +219,8 @@ const entries = [
|
|
|
219
219
|
description: "Manage OpenClaw plugins and extensions",
|
|
220
220
|
hasSubcommands: true,
|
|
221
221
|
register: async (program) => {
|
|
222
|
-
(await import("./plugins-cli-
|
|
223
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
222
|
+
(await import("./plugins-cli-Cidq7nJb.js")).registerPluginsCli(program);
|
|
223
|
+
const { registerPluginCliCommands } = await import("./cli-DIs0fL3W.js");
|
|
224
224
|
registerPluginCliCommands(program, await loadConfig());
|
|
225
225
|
}
|
|
226
226
|
},
|
|
@@ -229,7 +229,7 @@ const entries = [
|
|
|
229
229
|
description: "Manage connected chat channels (Telegram, Discord, etc.)",
|
|
230
230
|
hasSubcommands: true,
|
|
231
231
|
register: async (program) => {
|
|
232
|
-
(await import("./channels-cli-
|
|
232
|
+
(await import("./channels-cli-DA8sLqQk.js")).registerChannelsCli(program);
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
235
|
{
|
|
@@ -269,7 +269,7 @@ const entries = [
|
|
|
269
269
|
description: "Update OpenClaw and inspect update channel status",
|
|
270
270
|
hasSubcommands: true,
|
|
271
271
|
register: async (program) => {
|
|
272
|
-
(await import("./update-cli-
|
|
272
|
+
(await import("./update-cli-BDRni489.js")).registerUpdateCli(program);
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
{
|
|
@@ -277,7 +277,7 @@ const entries = [
|
|
|
277
277
|
description: "Generate shell completion script",
|
|
278
278
|
hasSubcommands: false,
|
|
279
279
|
register: async (program) => {
|
|
280
|
-
(await import("./completion-cli-
|
|
280
|
+
(await import("./completion-cli-CV7dNv8l.js").then((n) => n.n)).registerCompletionCli(program);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
];
|
|
@@ -30890,16 +30890,38 @@ async function resolveSessionAuthProfileOverride(params) {
|
|
|
30890
30890
|
//#region src/agents/context.ts
|
|
30891
30891
|
const ANTHROPIC_1M_MODEL_PREFIXES$1 = ["claude-opus-4", "claude-sonnet-4"];
|
|
30892
30892
|
const ANTHROPIC_CONTEXT_1M_TOKENS = 1048576;
|
|
30893
|
+
function resolveBareModelId(modelId) {
|
|
30894
|
+
const trimmed = modelId.trim();
|
|
30895
|
+
if (!trimmed) return "";
|
|
30896
|
+
const slash = trimmed.lastIndexOf("/");
|
|
30897
|
+
return slash >= 0 ? trimmed.slice(slash + 1).trim() : trimmed;
|
|
30898
|
+
}
|
|
30899
|
+
function cacheContextWindow(params) {
|
|
30900
|
+
const { cache, bareCache, modelId, contextWindow, preferSmaller } = params;
|
|
30901
|
+
const existing = cache.get(modelId);
|
|
30902
|
+
if (existing === void 0 || (preferSmaller ? contextWindow < existing : contextWindow !== existing)) cache.set(modelId, contextWindow);
|
|
30903
|
+
const bareModelId = resolveBareModelId(modelId);
|
|
30904
|
+
if (!bareModelId) return;
|
|
30905
|
+
const existingBare = bareCache.get(bareModelId);
|
|
30906
|
+
if (existingBare === void 0 || contextWindow < existingBare) bareCache.set(bareModelId, contextWindow);
|
|
30907
|
+
}
|
|
30893
30908
|
function applyDiscoveredContextWindows(params) {
|
|
30909
|
+
const bareCache = params.bareCache ?? /* @__PURE__ */ new Map();
|
|
30894
30910
|
for (const model of params.models) {
|
|
30895
30911
|
if (!model?.id) continue;
|
|
30896
30912
|
const contextWindow = typeof model.contextWindow === "number" ? Math.trunc(model.contextWindow) : void 0;
|
|
30897
30913
|
if (!contextWindow || contextWindow <= 0) continue;
|
|
30898
|
-
|
|
30899
|
-
|
|
30914
|
+
cacheContextWindow({
|
|
30915
|
+
cache: params.cache,
|
|
30916
|
+
bareCache,
|
|
30917
|
+
modelId: model.id,
|
|
30918
|
+
contextWindow,
|
|
30919
|
+
preferSmaller: true
|
|
30920
|
+
});
|
|
30900
30921
|
}
|
|
30901
30922
|
}
|
|
30902
30923
|
function applyConfiguredContextWindows(params) {
|
|
30924
|
+
const bareCache = params.bareCache ?? /* @__PURE__ */ new Map();
|
|
30903
30925
|
const providers = params.modelsConfig?.providers;
|
|
30904
30926
|
if (!providers || typeof providers !== "object") return;
|
|
30905
30927
|
for (const provider of Object.values(providers)) {
|
|
@@ -30908,11 +30930,18 @@ function applyConfiguredContextWindows(params) {
|
|
|
30908
30930
|
const modelId = typeof model?.id === "string" ? model.id : void 0;
|
|
30909
30931
|
const contextWindow = typeof model?.contextWindow === "number" ? model.contextWindow : void 0;
|
|
30910
30932
|
if (!modelId || !contextWindow || contextWindow <= 0) continue;
|
|
30911
|
-
|
|
30933
|
+
cacheContextWindow({
|
|
30934
|
+
cache: params.cache,
|
|
30935
|
+
bareCache,
|
|
30936
|
+
modelId,
|
|
30937
|
+
contextWindow,
|
|
30938
|
+
preferSmaller: false
|
|
30939
|
+
});
|
|
30912
30940
|
}
|
|
30913
30941
|
}
|
|
30914
30942
|
}
|
|
30915
30943
|
const MODEL_CACHE = /* @__PURE__ */ new Map();
|
|
30944
|
+
const BARE_MODEL_CACHE = /* @__PURE__ */ new Map();
|
|
30916
30945
|
let loadPromise = null;
|
|
30917
30946
|
let configuredWindowsPrimed = false;
|
|
30918
30947
|
function getCommandPathFromArgv(argv) {
|
|
@@ -30943,6 +30972,7 @@ function primeConfiguredContextWindows() {
|
|
|
30943
30972
|
const cfg = loadConfig();
|
|
30944
30973
|
applyConfiguredContextWindows({
|
|
30945
30974
|
cache: MODEL_CACHE,
|
|
30975
|
+
bareCache: BARE_MODEL_CACHE,
|
|
30946
30976
|
modelsConfig: cfg.models
|
|
30947
30977
|
});
|
|
30948
30978
|
return cfg;
|
|
@@ -30964,11 +30994,13 @@ function ensureContextWindowCacheLoaded() {
|
|
|
30964
30994
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
30965
30995
|
applyDiscoveredContextWindows({
|
|
30966
30996
|
cache: MODEL_CACHE,
|
|
30997
|
+
bareCache: BARE_MODEL_CACHE,
|
|
30967
30998
|
models: typeof modelRegistry.getAvailable === "function" ? modelRegistry.getAvailable() : modelRegistry.getAll()
|
|
30968
30999
|
});
|
|
30969
31000
|
} catch {}
|
|
30970
31001
|
applyConfiguredContextWindows({
|
|
30971
31002
|
cache: MODEL_CACHE,
|
|
31003
|
+
bareCache: BARE_MODEL_CACHE,
|
|
30972
31004
|
modelsConfig: cfg.models
|
|
30973
31005
|
});
|
|
30974
31006
|
})().catch(() => {});
|
|
@@ -30977,7 +31009,11 @@ function ensureContextWindowCacheLoaded() {
|
|
|
30977
31009
|
function lookupContextTokens(modelId) {
|
|
30978
31010
|
if (!modelId) return;
|
|
30979
31011
|
ensureContextWindowCacheLoaded();
|
|
30980
|
-
|
|
31012
|
+
const direct = MODEL_CACHE.get(modelId);
|
|
31013
|
+
if (direct !== void 0) return direct;
|
|
31014
|
+
const bareModelId = resolveBareModelId(modelId);
|
|
31015
|
+
if (!bareModelId) return;
|
|
31016
|
+
return BARE_MODEL_CACHE.get(bareModelId);
|
|
30981
31017
|
}
|
|
30982
31018
|
if (!shouldSkipEagerContextWindowWarmup()) ensureContextWindowCacheLoaded();
|
|
30983
31019
|
function resolveConfiguredModelParams(cfg, provider, model) {
|
|
@@ -35984,7 +36020,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
35984
36020
|
function createDefaultDeps() {
|
|
35985
36021
|
return {
|
|
35986
36022
|
sendMessageWhatsApp: async (...args) => {
|
|
35987
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
36023
|
+
const { sendMessageWhatsApp } = await import("./web-C_RqjNux.js");
|
|
35988
36024
|
return await sendMessageWhatsApp(...args);
|
|
35989
36025
|
},
|
|
35990
36026
|
sendMessageTelegram: async (...args) => {
|
|
@@ -56689,7 +56725,7 @@ function loadWebLoginQr() {
|
|
|
56689
56725
|
return webLoginQrPromise;
|
|
56690
56726
|
}
|
|
56691
56727
|
function loadWebChannel() {
|
|
56692
|
-
webChannelPromise ??= import("./web-
|
|
56728
|
+
webChannelPromise ??= import("./web-C_RqjNux.js");
|
|
56693
56729
|
return webChannelPromise;
|
|
56694
56730
|
}
|
|
56695
56731
|
function loadWhatsAppActions() {
|
|
@@ -31,7 +31,7 @@ import "./accounts-DTfEeXyO.js";
|
|
|
31
31
|
import "./bindings-Hx6KNJeg.js";
|
|
32
32
|
import "./send-Cpaj_bKB.js";
|
|
33
33
|
import "./send-BpXRh0BM.js";
|
|
34
|
-
import "./subagent-registry-
|
|
34
|
+
import "./subagent-registry-CukgiXMW.js";
|
|
35
35
|
import "./paths-CTtLmER4.js";
|
|
36
36
|
import "./chat-envelope-D3RSz140.js";
|
|
37
37
|
import "./client-BvL3EdiZ.js";
|
|
@@ -89,7 +89,7 @@ import "./pairing-store-BfzlN-z9.js";
|
|
|
89
89
|
import "./exec-approvals-HRn5F9dF.js";
|
|
90
90
|
import "./nodes-screen-DcxCMjOs.js";
|
|
91
91
|
import "./system-run-command-GKGzGztn.js";
|
|
92
|
-
import "./session-utils-
|
|
92
|
+
import "./session-utils-BUkGcYpv.js";
|
|
93
93
|
import "./session-cost-usage-BCEcVVJ6.js";
|
|
94
94
|
import "./skill-commands-CYucDd3C.js";
|
|
95
95
|
import "./workspace-dirs-BOgNOBjy.js";
|
|
@@ -123,9 +123,9 @@ import "./context-window-guard-ejUBbmnW.js";
|
|
|
123
123
|
import { t as ensureOpenClawCliOnPath } from "./path-env-DDJ70PDB.js";
|
|
124
124
|
import "./note-BuhsMSuP.js";
|
|
125
125
|
import "./issue-format-DF2YB-kZ.js";
|
|
126
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
126
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-CA1t0UeN.js";
|
|
127
127
|
import { t as assertSupportedRuntime } from "./runtime-guard-lQH3Hjre.js";
|
|
128
|
-
import { t as emitCliBanner } from "./banner-
|
|
128
|
+
import { t as emitCliBanner } from "./banner-CYVM4p3E.js";
|
|
129
129
|
import "./doctor-config-flow-BrXA2e34.js";
|
|
130
130
|
import { n as ensureConfigReady } from "./config-guard-CcE0LvHm.js";
|
|
131
131
|
import process$1 from "node:process";
|
|
@@ -140,7 +140,7 @@ const routeHealth = {
|
|
|
140
140
|
const verbose = getVerboseFlag(argv, { includeDebug: true });
|
|
141
141
|
const timeoutMs = getPositiveIntFlagValue(argv, "--timeout");
|
|
142
142
|
if (timeoutMs === null) return false;
|
|
143
|
-
const { healthCommand } = await import("./health-
|
|
143
|
+
const { healthCommand } = await import("./health-CWmeMvVp.js").then((n) => n.i);
|
|
144
144
|
await healthCommand({
|
|
145
145
|
json,
|
|
146
146
|
timeoutMs,
|
|
@@ -160,7 +160,7 @@ const routeStatus = {
|
|
|
160
160
|
const verbose = getVerboseFlag(argv, { includeDebug: true });
|
|
161
161
|
const timeoutMs = getPositiveIntFlagValue(argv, "--timeout");
|
|
162
162
|
if (timeoutMs === null) return false;
|
|
163
|
-
const { statusCommand } = await import("./status-
|
|
163
|
+
const { statusCommand } = await import("./status-Bor8v_Ab.js").then((n) => n.t);
|
|
164
164
|
await statusCommand({
|
|
165
165
|
json,
|
|
166
166
|
deep,
|
|
@@ -183,7 +183,7 @@ const routeSessions = {
|
|
|
183
183
|
if (store === null) return false;
|
|
184
184
|
const active = getFlagValue(argv, "--active");
|
|
185
185
|
if (active === null) return false;
|
|
186
|
-
const { sessionsCommand } = await import("./sessions-
|
|
186
|
+
const { sessionsCommand } = await import("./sessions-DVvNhGXX.js").then((n) => n.n);
|
|
187
187
|
await sessionsCommand({
|
|
188
188
|
json,
|
|
189
189
|
store,
|
|
@@ -199,7 +199,7 @@ const routeAgentsList = {
|
|
|
199
199
|
run: async (argv) => {
|
|
200
200
|
const json = hasFlag(argv, "--json");
|
|
201
201
|
const bindings = hasFlag(argv, "--bindings");
|
|
202
|
-
const { agentsListCommand } = await import("./agents-
|
|
202
|
+
const { agentsListCommand } = await import("./agents-Sp-v-_mR.js").then((n) => n.t);
|
|
203
203
|
await agentsListCommand({
|
|
204
204
|
json,
|
|
205
205
|
bindings
|
|
@@ -265,7 +265,7 @@ const routes = [
|
|
|
265
265
|
const pathArg = positionals[0];
|
|
266
266
|
if (!pathArg) return false;
|
|
267
267
|
const json = hasFlag(argv, "--json");
|
|
268
|
-
const { runConfigGet } = await import("./config-cli-
|
|
268
|
+
const { runConfigGet } = await import("./config-cli-Dh9rvUxe.js");
|
|
269
269
|
await runConfigGet({
|
|
270
270
|
path: pathArg,
|
|
271
271
|
json
|
|
@@ -280,7 +280,7 @@ const routes = [
|
|
|
280
280
|
if (!positionals || positionals.length !== 1) return false;
|
|
281
281
|
const pathArg = positionals[0];
|
|
282
282
|
if (!pathArg) return false;
|
|
283
|
-
const { runConfigUnset } = await import("./config-cli-
|
|
283
|
+
const { runConfigUnset } = await import("./config-cli-Dh9rvUxe.js");
|
|
284
284
|
await runConfigUnset({ path: pathArg });
|
|
285
285
|
return true;
|
|
286
286
|
}
|
|
@@ -294,7 +294,7 @@ const routes = [
|
|
|
294
294
|
const local = hasFlag(argv, "--local");
|
|
295
295
|
const json = hasFlag(argv, "--json");
|
|
296
296
|
const plain = hasFlag(argv, "--plain");
|
|
297
|
-
const { modelsListCommand } = await import("./models-
|
|
297
|
+
const { modelsListCommand } = await import("./models-C21qhHIB.js").then((n) => n.t);
|
|
298
298
|
await modelsListCommand({
|
|
299
299
|
all,
|
|
300
300
|
local,
|
|
@@ -325,7 +325,7 @@ const routes = [
|
|
|
325
325
|
const plain = hasFlag(argv, "--plain");
|
|
326
326
|
const check = hasFlag(argv, "--check");
|
|
327
327
|
const probe = hasFlag(argv, "--probe");
|
|
328
|
-
const { modelsStatusCommand } = await import("./models-
|
|
328
|
+
const { modelsStatusCommand } = await import("./models-C21qhHIB.js").then((n) => n.t);
|
|
329
329
|
await modelsStatusCommand({
|
|
330
330
|
json,
|
|
331
331
|
plain,
|
|
@@ -410,7 +410,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
410
410
|
assertSupportedRuntime();
|
|
411
411
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
412
412
|
enableConsoleCapture();
|
|
413
|
-
const { buildProgram } = await import("./program-
|
|
413
|
+
const { buildProgram } = await import("./program-C0yxnClq.js");
|
|
414
414
|
const program = buildProgram();
|
|
415
415
|
installUnhandledRejectionHandler();
|
|
416
416
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -423,10 +423,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
423
423
|
const { getProgramContext } = await import("./program-context-Cy6hM1zR.js").then((n) => n.n);
|
|
424
424
|
const ctx = getProgramContext(program);
|
|
425
425
|
if (ctx) {
|
|
426
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
426
|
+
const { registerCoreCliByName } = await import("./command-registry-By6zKf98.js").then((n) => n.t);
|
|
427
427
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
428
428
|
}
|
|
429
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
429
|
+
const { registerSubCliByName } = await import("./register.subclis-D2hfRpSx.js").then((n) => n.a);
|
|
430
430
|
await registerSubCliByName(program, primary);
|
|
431
431
|
}
|
|
432
432
|
if (!shouldSkipPluginCommandRegistration({
|
|
@@ -434,7 +434,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
434
434
|
primary,
|
|
435
435
|
hasBuiltinPrimary: primary !== null && program.commands.some((command) => command.name() === primary)
|
|
436
436
|
})) {
|
|
437
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
437
|
+
const { registerPluginCliCommands } = await import("./cli-DIs0fL3W.js");
|
|
438
438
|
const { loadConfig } = await import("./auth-profiles-D_x1_5v_.js").then((n) => n.O);
|
|
439
439
|
registerPluginCliCommands(program, loadConfig());
|
|
440
440
|
}
|
|
@@ -31,7 +31,7 @@ import "./accounts-DTfEeXyO.js";
|
|
|
31
31
|
import "./bindings-Hx6KNJeg.js";
|
|
32
32
|
import "./send-Cpaj_bKB.js";
|
|
33
33
|
import "./send-BpXRh0BM.js";
|
|
34
|
-
import { A as agentCommandFromIngress, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Rn as requestHeartbeatNow, bt as resolveOutboundTarget, ln as buildOutboundSessionContext } from "./subagent-registry-
|
|
34
|
+
import { A as agentCommandFromIngress, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Rn as requestHeartbeatNow, bt as resolveOutboundTarget, ln as buildOutboundSessionContext } from "./subagent-registry-CukgiXMW.js";
|
|
35
35
|
import "./paths-CTtLmER4.js";
|
|
36
36
|
import "./chat-envelope-D3RSz140.js";
|
|
37
37
|
import "./client-BvL3EdiZ.js";
|
|
@@ -89,7 +89,7 @@ import "./pairing-store-BfzlN-z9.js";
|
|
|
89
89
|
import "./exec-approvals-HRn5F9dF.js";
|
|
90
90
|
import "./nodes-screen-DcxCMjOs.js";
|
|
91
91
|
import "./system-run-command-GKGzGztn.js";
|
|
92
|
-
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-
|
|
92
|
+
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-BUkGcYpv.js";
|
|
93
93
|
import "./session-cost-usage-BCEcVVJ6.js";
|
|
94
94
|
import "./skill-commands-CYucDd3C.js";
|
|
95
95
|
import "./workspace-dirs-BOgNOBjy.js";
|
|
@@ -120,7 +120,7 @@ import "./help-format-B3bKmDqF.js";
|
|
|
120
120
|
import "./progress-CwQKn0ae.js";
|
|
121
121
|
import "./constants-SKxh9Cou.js";
|
|
122
122
|
import "./context-window-guard-ejUBbmnW.js";
|
|
123
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
123
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-BSwx-wiI.js";
|
|
124
124
|
import { randomUUID } from "node:crypto";
|
|
125
125
|
|
|
126
126
|
//#region src/gateway/server-node-events.ts
|
|
@@ -2,7 +2,7 @@ import "./paths-BYr-iJJ9.js";
|
|
|
2
2
|
import "./globals-uLeGcRW1.js";
|
|
3
3
|
import "./utils-CP51tiAi.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import { Ar as enqueueSystemEvent, D as pruneLegacyStoreKeys, E as loadSessionEntry, Ft as createOutboundSendDeps, Jn as buildOutboundSessionContext, O as resolveGatewaySessionStoreTarget, Pr as requestHeartbeatNow, jt as agentCommandFromIngress, kn as resolveOutboundTarget } from "./reply-
|
|
5
|
+
import { Ar as enqueueSystemEvent, D as pruneLegacyStoreKeys, E as loadSessionEntry, Ft as createOutboundSendDeps, Jn as buildOutboundSessionContext, O as resolveGatewaySessionStoreTarget, Pr as requestHeartbeatNow, jt as agentCommandFromIngress, kn as resolveOutboundTarget } from "./reply-BOAv4F33.js";
|
|
6
6
|
import "./agent-scope-CiBV1K6b.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-BT74-yyS.js";
|
|
8
8
|
import { l as normalizeMainKey } from "./session-key-C9z4VQtw.js";
|
|
@@ -119,7 +119,7 @@ import "./server-lifecycle-B7aXKxY3.js";
|
|
|
119
119
|
import "./stagger-C-R8Eo-4.js";
|
|
120
120
|
import "./constants-BJiQF5Ae.js";
|
|
121
121
|
import "./context-window-guard-BNuaId5E.js";
|
|
122
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
122
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-C7oC1J4F.js";
|
|
123
123
|
import { randomUUID } from "node:crypto";
|
|
124
124
|
|
|
125
125
|
//#region src/gateway/server-node-events.ts
|
|
@@ -13,16 +13,38 @@ import fs from "node:fs";
|
|
|
13
13
|
//#region src/agents/context.ts
|
|
14
14
|
const ANTHROPIC_1M_MODEL_PREFIXES = ["claude-opus-4", "claude-sonnet-4"];
|
|
15
15
|
const ANTHROPIC_CONTEXT_1M_TOKENS = 1048576;
|
|
16
|
+
function resolveBareModelId(modelId) {
|
|
17
|
+
const trimmed = modelId.trim();
|
|
18
|
+
if (!trimmed) return "";
|
|
19
|
+
const slash = trimmed.lastIndexOf("/");
|
|
20
|
+
return slash >= 0 ? trimmed.slice(slash + 1).trim() : trimmed;
|
|
21
|
+
}
|
|
22
|
+
function cacheContextWindow(params) {
|
|
23
|
+
const { cache, bareCache, modelId, contextWindow, preferSmaller } = params;
|
|
24
|
+
const existing = cache.get(modelId);
|
|
25
|
+
if (existing === void 0 || (preferSmaller ? contextWindow < existing : contextWindow !== existing)) cache.set(modelId, contextWindow);
|
|
26
|
+
const bareModelId = resolveBareModelId(modelId);
|
|
27
|
+
if (!bareModelId) return;
|
|
28
|
+
const existingBare = bareCache.get(bareModelId);
|
|
29
|
+
if (existingBare === void 0 || contextWindow < existingBare) bareCache.set(bareModelId, contextWindow);
|
|
30
|
+
}
|
|
16
31
|
function applyDiscoveredContextWindows(params) {
|
|
32
|
+
const bareCache = params.bareCache ?? /* @__PURE__ */ new Map();
|
|
17
33
|
for (const model of params.models) {
|
|
18
34
|
if (!model?.id) continue;
|
|
19
35
|
const contextWindow = typeof model.contextWindow === "number" ? Math.trunc(model.contextWindow) : void 0;
|
|
20
36
|
if (!contextWindow || contextWindow <= 0) continue;
|
|
21
|
-
|
|
22
|
-
|
|
37
|
+
cacheContextWindow({
|
|
38
|
+
cache: params.cache,
|
|
39
|
+
bareCache,
|
|
40
|
+
modelId: model.id,
|
|
41
|
+
contextWindow,
|
|
42
|
+
preferSmaller: true
|
|
43
|
+
});
|
|
23
44
|
}
|
|
24
45
|
}
|
|
25
46
|
function applyConfiguredContextWindows(params) {
|
|
47
|
+
const bareCache = params.bareCache ?? /* @__PURE__ */ new Map();
|
|
26
48
|
const providers = params.modelsConfig?.providers;
|
|
27
49
|
if (!providers || typeof providers !== "object") return;
|
|
28
50
|
for (const provider of Object.values(providers)) {
|
|
@@ -31,11 +53,18 @@ function applyConfiguredContextWindows(params) {
|
|
|
31
53
|
const modelId = typeof model?.id === "string" ? model.id : void 0;
|
|
32
54
|
const contextWindow = typeof model?.contextWindow === "number" ? model.contextWindow : void 0;
|
|
33
55
|
if (!modelId || !contextWindow || contextWindow <= 0) continue;
|
|
34
|
-
|
|
56
|
+
cacheContextWindow({
|
|
57
|
+
cache: params.cache,
|
|
58
|
+
bareCache,
|
|
59
|
+
modelId,
|
|
60
|
+
contextWindow,
|
|
61
|
+
preferSmaller: false
|
|
62
|
+
});
|
|
35
63
|
}
|
|
36
64
|
}
|
|
37
65
|
}
|
|
38
66
|
const MODEL_CACHE = /* @__PURE__ */ new Map();
|
|
67
|
+
const BARE_MODEL_CACHE = /* @__PURE__ */ new Map();
|
|
39
68
|
let loadPromise = null;
|
|
40
69
|
let configuredWindowsPrimed = false;
|
|
41
70
|
function getCommandPathFromArgv(argv) {
|
|
@@ -66,6 +95,7 @@ function primeConfiguredContextWindows() {
|
|
|
66
95
|
const cfg = loadConfig();
|
|
67
96
|
applyConfiguredContextWindows({
|
|
68
97
|
cache: MODEL_CACHE,
|
|
98
|
+
bareCache: BARE_MODEL_CACHE,
|
|
69
99
|
modelsConfig: cfg.models
|
|
70
100
|
});
|
|
71
101
|
return cfg;
|
|
@@ -87,11 +117,13 @@ function ensureContextWindowCacheLoaded() {
|
|
|
87
117
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
88
118
|
applyDiscoveredContextWindows({
|
|
89
119
|
cache: MODEL_CACHE,
|
|
120
|
+
bareCache: BARE_MODEL_CACHE,
|
|
90
121
|
models: typeof modelRegistry.getAvailable === "function" ? modelRegistry.getAvailable() : modelRegistry.getAll()
|
|
91
122
|
});
|
|
92
123
|
} catch {}
|
|
93
124
|
applyConfiguredContextWindows({
|
|
94
125
|
cache: MODEL_CACHE,
|
|
126
|
+
bareCache: BARE_MODEL_CACHE,
|
|
95
127
|
modelsConfig: cfg.models
|
|
96
128
|
});
|
|
97
129
|
})().catch(() => {});
|
|
@@ -100,7 +132,11 @@ function ensureContextWindowCacheLoaded() {
|
|
|
100
132
|
function lookupContextTokens(modelId) {
|
|
101
133
|
if (!modelId) return;
|
|
102
134
|
ensureContextWindowCacheLoaded();
|
|
103
|
-
|
|
135
|
+
const direct = MODEL_CACHE.get(modelId);
|
|
136
|
+
if (direct !== void 0) return direct;
|
|
137
|
+
const bareModelId = resolveBareModelId(modelId);
|
|
138
|
+
if (!bareModelId) return;
|
|
139
|
+
return BARE_MODEL_CACHE.get(bareModelId);
|
|
104
140
|
}
|
|
105
141
|
if (!shouldSkipEagerContextWindowWarmup()) ensureContextWindowCacheLoaded();
|
|
106
142
|
function resolveConfiguredModelParams(cfg, provider, model) {
|
|
@@ -6,7 +6,7 @@ import { T as parseAgentSessionKey, c as normalizeAgentId } from "./session-key-
|
|
|
6
6
|
import { X as resolveFreshSessionTotalTokens, o as loadSessionStore } from "./sessions-B2mnwD21.js";
|
|
7
7
|
import { c as resolveStorePath } from "./paths-CTtLmER4.js";
|
|
8
8
|
import { n as formatTimeAgo } from "./format-relative-DlCMhQXD.js";
|
|
9
|
-
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-
|
|
9
|
+
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-BUkGcYpv.js";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/session-store-targets.ts
|
|
12
12
|
function dedupeTargetsByStorePath(targets) {
|
|
@@ -11,14 +11,14 @@ import { t as VERSION } from "./version-CGDNfh5C.js";
|
|
|
11
11
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DG-bH5mO.js";
|
|
12
12
|
import { X as resolveFreshSessionTotalTokens, o as loadSessionStore, tt as resolveMainSessionKey } from "./sessions-B2mnwD21.js";
|
|
13
13
|
import { n as listChannelPlugins } from "./plugins-vsjS_m58.js";
|
|
14
|
-
import { An as formatChannelAllowFrom, Cn as formatUsageReportLines, Ln as peekSystemEvents, Mn as resolveChannelAccountEnabled, Mt as summarizeRestartSentinel, On as buildChannelSummary, Sn as loadProviderUsageSummary, jn as resolveChannelAccountConfigured, jt as readRestartSentinel, kn as buildChannelAccountSnapshot } from "./subagent-registry-
|
|
14
|
+
import { An as formatChannelAllowFrom, Cn as formatUsageReportLines, Ln as peekSystemEvents, Mn as resolveChannelAccountEnabled, Mt as summarizeRestartSentinel, On as buildChannelSummary, Sn as loadProviderUsageSummary, jn as resolveChannelAccountConfigured, jt as readRestartSentinel, kn as buildChannelAccountSnapshot } from "./subagent-registry-CukgiXMW.js";
|
|
15
15
|
import { c as resolveStorePath } from "./paths-CTtLmER4.js";
|
|
16
16
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-CzoM7hPS.js";
|
|
17
17
|
import { o as getTailnetHostname, s as readTailscaleStatusJson } from "./tailscale-D3xGoMdQ.js";
|
|
18
18
|
import { n as inspectPortUsage, o as formatPortDiagnostics } from "./ports-sCOQUaAP.js";
|
|
19
19
|
import { n as formatTimeAgo } from "./format-relative-DlCMhQXD.js";
|
|
20
20
|
import { r as formatDurationPrecise } from "./format-duration-B8vujEIl.js";
|
|
21
|
-
import { d as resolveContextTokensForModel, l as resolveSessionModelRef, n as classifySessionKey, r as listAgentsForGateway } from "./session-utils-
|
|
21
|
+
import { d as resolveContextTokensForModel, l as resolveSessionModelRef, n as classifySessionKey, r as listAgentsForGateway } from "./session-utils-BUkGcYpv.js";
|
|
22
22
|
import { o as getRemoteSkillEligibility } from "./skill-commands-CYucDd3C.js";
|
|
23
23
|
import { a as sha256HexPrefix } from "./active-listener-DNm8Tp5o.js";
|
|
24
24
|
import { C as normalizeControlUiBasePath, g as resolveControlUiLinks } from "./onboard-helpers-CczYNQDJ.js";
|
|
@@ -32,7 +32,7 @@ import { t as formatRuntimeStatusWithDetails } from "./runtime-status-t6wRP4gf.j
|
|
|
32
32
|
import { t as readLastGatewayErrorLine } from "./diagnostics-ABz8E7c-.js";
|
|
33
33
|
import { t as renderTable } from "./table-CqULNDay.js";
|
|
34
34
|
import { a as probeGateway, i as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-Bgu8Ommg.js";
|
|
35
|
-
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-
|
|
35
|
+
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-CWmeMvVp.js";
|
|
36
36
|
import { a as shouldShowUpdateStatus, i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-YC9VNJxl.js";
|
|
37
37
|
import { _ as resolveUpdateChannelDisplay, a as formatGitInstallLabel, h as normalizeUpdateChannel, n as checkUpdateStatus, t as resolveDefaultChannelAccountContext } from "./channel-account-context-BV3Q0XnD.js";
|
|
38
38
|
import { t as resolveNodeService } from "./node-service-DUUObpwl.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-BYr-iJJ9.js";
|
|
2
2
|
import { f as isRich, n as info, p as theme } from "./globals-uLeGcRW1.js";
|
|
3
|
-
import { C as listAgentsForGateway, Jt as resolveContextTokensForModel, Nr as peekSystemEvents, S as classifySessionKey, U as readRestartSentinel, W as summarizeRestartSentinel, _t as formatUsageReportLines, c as buildChannelSummary, d as resolveChannelAccountConfigured, f as resolveChannelAccountEnabled, gt as loadProviderUsageSummary, k as resolveSessionModelRef, l as buildChannelAccountSnapshot, u as formatChannelAllowFrom } from "./reply-
|
|
3
|
+
import { C as listAgentsForGateway, Jt as resolveContextTokensForModel, Nr as peekSystemEvents, S as classifySessionKey, U as readRestartSentinel, W as summarizeRestartSentinel, _t as formatUsageReportLines, c as buildChannelSummary, d as resolveChannelAccountConfigured, f as resolveChannelAccountEnabled, gt as loadProviderUsageSummary, k as resolveSessionModelRef, l as buildChannelAccountSnapshot, u as formatChannelAllowFrom } from "./reply-BOAv4F33.js";
|
|
4
4
|
import { u as resolveAgentWorkspaceDir } from "./agent-scope-CiBV1K6b.js";
|
|
5
5
|
import { T as parseAgentSessionKey } from "./session-key-C9z4VQtw.js";
|
|
6
6
|
import { y as resolveOpenClawPackageRoot } from "./workspace-CRdln__H.js";
|
|
@@ -30,7 +30,7 @@ import { t as formatRuntimeStatusWithDetails } from "./runtime-status-FmZCZXmg.j
|
|
|
30
30
|
import { t as readLastGatewayErrorLine } from "./diagnostics-BHQgZbuI.js";
|
|
31
31
|
import { t as renderTable } from "./table-DZBPnHSy.js";
|
|
32
32
|
import { a as probeGateway, i as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-1YVlVmk7.js";
|
|
33
|
-
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-
|
|
33
|
+
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-BX20asqJ.js";
|
|
34
34
|
import { a as shouldShowUpdateStatus, i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-HwSPC5ZX.js";
|
|
35
35
|
import { _ as resolveUpdateChannelDisplay, a as formatGitInstallLabel, h as normalizeUpdateChannel, n as checkUpdateStatus, t as resolveDefaultChannelAccountContext } from "./channel-account-context-C6rIxLzo.js";
|
|
36
36
|
import { t as resolveNodeService } from "./node-service-6W3vqgVv.js";
|
|
@@ -94,7 +94,7 @@ import { t as killProcessTree$1 } from "./kill-tree-BI7OGmGb.js";
|
|
|
94
94
|
import { t as formatExecCommand } from "./system-run-command-GKGzGztn.js";
|
|
95
95
|
import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-DCXbzdeZ.js";
|
|
96
96
|
import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-B8vujEIl.js";
|
|
97
|
-
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, u as lookupContextTokens } from "./session-utils-
|
|
97
|
+
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, u as lookupContextTokens } from "./session-utils-BUkGcYpv.js";
|
|
98
98
|
import { c as hasNonzeroUsage, l as makeZeroUsageSnapshot, n as loadCostUsageSummary, o as derivePromptTokens, r as loadSessionCostSummary, s as deriveSessionTotalTokens, u as normalizeUsage } from "./session-cost-usage-BCEcVVJ6.js";
|
|
99
99
|
import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-JlIz56oG.js";
|
|
100
100
|
import { b as ensureSkillsWatcher, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, x as getSkillsSnapshotVersion } from "./skill-commands-CYucDd3C.js";
|
|
@@ -53795,7 +53795,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
53795
53795
|
function createDefaultDeps() {
|
|
53796
53796
|
return {
|
|
53797
53797
|
sendMessageWhatsApp: async (...args) => {
|
|
53798
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
53798
|
+
const { sendMessageWhatsApp } = await import("./web-D_nYCn4Q.js");
|
|
53799
53799
|
return await sendMessageWhatsApp(...args);
|
|
53800
53800
|
},
|
|
53801
53801
|
sendMessageTelegram: async (...args) => {
|
|
@@ -72047,7 +72047,7 @@ function loadWebLoginQr() {
|
|
|
72047
72047
|
return webLoginQrPromise;
|
|
72048
72048
|
}
|
|
72049
72049
|
function loadWebChannel() {
|
|
72050
|
-
webChannelPromise ??= import("./web-
|
|
72050
|
+
webChannelPromise ??= import("./web-D_nYCn4Q.js");
|
|
72051
72051
|
return webChannelPromise;
|
|
72052
72052
|
}
|
|
72053
72053
|
function loadWhatsAppActions() {
|