@termix-it/cryptoclaw 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-7nNRr4R3.js → accounts-4l7ba973.js} +1 -1
- package/dist/{accounts-CKpnUMZd.js → accounts-CAjupeYV.js} +16 -16
- package/dist/{accounts-BIr_ieyH.js → accounts-k5nTdi32.js} +1 -1
- package/dist/{active-listener-ClXqZUsD.js → active-listener-D9FARjMd.js} +1 -1
- package/dist/{api-key-rotation-CUJC6xSi.js → api-key-rotation-C-Q6XdUW.js} +2 -2
- package/dist/{audio-preflight--MDRrrlB.js → audio-preflight-C7kt2vOu.js} +33 -33
- package/dist/{audio-transcription-runner-CgLX4N3r.js → audio-transcription-runner-CawngPvE.js} +12 -12
- package/dist/{audit-membership-runtime-Ch2lLD_u.js → audit-membership-runtime-C6dnIaXJ.js} +5 -5
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +52 -52
- package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +52 -52
- package/dist/bundled/soul-evil/handler.js +5 -5
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-Crd0PQwN.js → channel-account-context-BAivtK8t.js} +1 -1
- package/dist/{channel-account-context-DPRR3rFq.js → channel-account-context-DptVE7IR.js} +1 -1
- package/dist/{channel-activity-32lmgAZH.js → channel-activity-Hho38eZq.js} +3 -3
- package/dist/{chrome-CtEQV_6p.js → chrome-palWvTtp.js} +18 -18
- package/dist/{command-registry-CBfNNhgy.js → command-registry-BEFHpoCL.js} +5 -5
- package/dist/{commands-registry-FnGtnvb0.js → commands-registry-A3LstXeY.js} +4 -4
- package/dist/{completion-cli-FP9HAEQ3.js → completion-cli-BxbU_lYn.js} +2 -2
- package/dist/{completion-cli-Bai3pUlw.js → completion-cli-rNt-qwSw.js} +1 -1
- package/dist/{deliver-32OxViWG.js → deliver-JkYjt9Qz.js} +20 -20
- package/dist/deliver-runtime-BvTbrDXE.js +37 -0
- package/dist/deps-send-discord.runtime-1mqY0Pn3.js +27 -0
- package/dist/deps-send-imessage.runtime-NAKUx6Vy.js +26 -0
- package/dist/deps-send-signal.runtime-CHqnnRXO.js +25 -0
- package/dist/deps-send-slack.runtime-CbGlCNTX.js +23 -0
- package/dist/deps-send-telegram.runtime-CgApeKta.js +28 -0
- package/dist/deps-send-whatsapp.runtime-CAPjqcnc.js +61 -0
- package/dist/{diagnostic-UO82MQjo.js → diagnostic-BGtFj4tU.js} +2 -2
- package/dist/{doctor-completion-CCNHTpp9.js → doctor-completion--S9fsNQo.js} +1 -1
- package/dist/{doctor-completion-BQBZQyQq.js → doctor-completion-BAJbdzsD.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{errors-BwBpGOBV.js → errors-C1YF712P.js} +1 -1
- package/dist/{fetch-DozurFmr.js → fetch-_iocPLV2.js} +5 -5
- package/dist/{fetch-guard-XtFb6zM7.js → fetch-guard-CiQUuV0r.js} +2 -2
- package/dist/{frontmatter-Cy6ESb-O.js → frontmatter-Dn68lQ_o.js} +5 -5
- package/dist/{fs-safe-YxZ8RAEw.js → fs-safe-BLpOReWZ.js} +4 -4
- package/dist/{gateway-cli-CyeZq5AC.js → gateway-cli-HRo8JRRd.js} +5 -5
- package/dist/{gateway-cli-DLWVlNsd.js → gateway-cli-LhABh8fD.js} +5 -5
- package/dist/{github-copilot-token-D7knylDF.js → github-copilot-token-DDa7O18e.js} +7 -7
- package/dist/{image-B2LPzwKF.js → image-BlRI3dXw.js} +6 -6
- package/dist/{image-ops-gm8VfGiD.js → image-ops-D7mq-4y1.js} +2 -2
- package/dist/image-runtime-Cp3I725X.js +30 -0
- package/dist/index.js +1 -1
- package/dist/{ir-B7IR3m4T.js → ir-Dpg87zYv.js} +7 -7
- package/dist/{legacy-names-TrN6kryB.js → legacy-names-BAiRv0I2.js} +1 -1
- package/dist/llm-slug-generator.js +52 -52
- package/dist/{logger-CV2IWsAW.js → logger-C53B395N.js} +1 -1
- package/dist/{login-C6CkDgLi.js → login-CHsCISh4.js} +5 -5
- package/dist/{login-qr-WEr1WQvg.js → login-qr-BEW3jIOt.js} +11 -11
- package/dist/{manager-BWh3BVp1.js → manager-Dfrejf6z.js} +13 -13
- package/dist/manager-runtime-DacMHR37.js +19 -0
- package/dist/{model-selection-BiqOlgFe.js → model-selection-e9hodq0l.js} +48 -48
- package/dist/{onboard-BCnqRDky.js → onboard-BgQUk8KO.js} +2 -2
- package/dist/{onboard-CQ-YoTSl.js → onboard-CukHmJnb.js} +2 -2
- package/dist/{onboard-config-DWnlWcjI.js → onboard-config-C06y4K2b.js} +1 -1
- package/dist/{onboard-config-oUKoFfFB.js → onboard-config-DzpTyHer.js} +1 -1
- package/dist/{onboarding-DR-2kdRy.js → onboarding-BjkMcLV3.js} +2 -2
- package/dist/{onboarding-BY3YZMkn.js → onboarding-Dl2vyZrH.js} +2 -2
- package/dist/{onboarding.finalize-B_gI9SXJ.js → onboarding.finalize-D5Wmhsa1.js} +4 -4
- package/dist/{onboarding.finalize-CEgugO0l.js → onboarding.finalize-DPeb5UKU.js} +3 -3
- package/dist/{outbound-DSVwKSv4.js → outbound-BZqL8UdJ.js} +6 -6
- package/dist/{outbound-attachment-CcY_Rg0-.js → outbound-attachment-wzHGF-Is.js} +2 -2
- package/dist/{path-alias-guards-Gzq1eAOo.js → path-alias-guards-It4BBRdm.js} +1 -1
- package/dist/{paths-Cvc9EM8Y.js → paths-C6TxBCvO.js} +5 -5
- package/dist/{paths-BWg7M5Yy.js → paths-CZ0nrg7g.js} +3 -3
- package/dist/{pi-embedded-DkdNpxSe.js → pi-embedded-BNcbv6lg.js} +161 -161
- package/dist/{pi-embedded-helpers-B_qa7ikD.js → pi-embedded-helpers-CE9KKP1Q.js} +52 -52
- package/dist/{pi-model-discovery-FwBV8Q5J.js → pi-model-discovery-32EFg27L.js} +7 -7
- package/dist/pi-model-discovery-runtime-C8SNNnEN.js +12 -0
- package/dist/{pi-tools.before-tool-call.runtime-2r6sdUt5.js → pi-tools.before-tool-call.runtime-BfjlGXIc.js} +10 -10
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/slack.js +2 -2
- package/dist/{plugins-Burzc1_i.js → plugins-rc2l4VJe.js} +10 -10
- package/dist/{program-Rna_eew4.js → program-IR_GbPYL.js} +2 -2
- package/dist/{program-context-BfnHzkXT.js → program-context-CqbW3Ozx.js} +7 -7
- package/dist/{prompt-select-styled-1nWCPZKF.js → prompt-select-styled-4VXtaC_Y.js} +3 -3
- package/dist/{prompt-select-styled-BDi5UBUn.js → prompt-select-styled-CDVjf5nV.js} +3 -3
- package/dist/{proxy-env-C05eD8Tt.js → proxy-env-C2sbN0UU.js} +1 -1
- package/dist/{proxy-fetch-C_2Ejh5T.js → proxy-fetch-CVSmQMZt.js} +1 -1
- package/dist/{pw-ai-BbxaV2Cy.js → pw-ai-CWE0qzH7.js} +15 -15
- package/dist/{qmd-manager-JjGGwn8R.js → qmd-manager-DMSLC2iu.js} +11 -11
- package/dist/{query-expansion-DkXzaUOH.js → query-expansion-MI1dZ5Nj.js} +6 -6
- package/dist/{redact-C-aJRv5O.js → redact-BXURioma.js} +1 -1
- package/dist/{register.maintenance-BoigTo1u.js → register.maintenance-CxSE7-Kl.js} +6 -6
- package/dist/{register.maintenance-RJM2wCjj.js → register.maintenance-DwOfJhoP.js} +7 -7
- package/dist/{register.onboard--1jxOBJy.js → register.onboard-CvYvmVAO.js} +2 -2
- package/dist/{register.onboard-BtBM_7Qe.js → register.onboard-D336Th_C.js} +2 -2
- package/dist/{register.setup-B_O283DR.js → register.setup-B43LcoaE.js} +2 -2
- package/dist/{register.setup-o2PFpqW-.js → register.setup-DaJKzoTH.js} +2 -2
- package/dist/{register.status-health-sessions-CVjLnoAQ.js → register.status-health-sessions-BteqJ3fo.js} +3 -3
- package/dist/{register.status-health-sessions-ByZDjDZf.js → register.status-health-sessions-DYYi2rkn.js} +3 -3
- package/dist/{register.subclis-Cm8zQPce.js → register.subclis-Cjl06Zry.js} +3 -3
- package/dist/{run-main-Bcwtj17t.js → run-main-DM79Bp3w.js} +4 -4
- package/dist/{run-with-concurrency-CYTs7gPY.js → run-with-concurrency-C5E9gJhP.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-BhVxslsH.js +14 -0
- package/dist/runtime-whatsapp-outbound.runtime-CFivqxoq.js +23 -0
- package/dist/{send-DDKqu28r.js → send-BWySsurX.js} +7 -7
- package/dist/{send-ChW15YPB.js → send-BlTVCcYd.js} +27 -27
- package/dist/{send-Cj0LCSvd.js → send-C87tIqIn.js} +7 -7
- package/dist/{send-q-l5fncb.js → send-Cpja8Q1N.js} +5 -5
- package/dist/{send-hOoCA9jX.js → send-OP60RbsK.js} +6 -6
- package/dist/{session-BzKpA5X4.js → session-DmXsj3JD.js} +8 -8
- package/dist/{skill-commands-CIcvUo1A.js → skill-commands-DEsgUSH3.js} +9 -9
- package/dist/{skills-DU6_fNPx.js → skills-OklkZyI1.js} +22 -22
- package/dist/slash-commands.runtime-gtQnheWz.js +17 -0
- package/dist/slash-dispatch.runtime-w1y_0I6t.js +57 -0
- package/dist/slash-skill-commands.runtime-CA_oN4df.js +21 -0
- package/dist/{status-CKWYXIIT.js → status-B-T9Cvvn.js} +2 -2
- package/dist/{status-CZ9ThIxK.js → status-XxtmLZrL.js} +2 -2
- package/dist/{status.update-CoOEUoUN.js → status.update-CY3ejLFL.js} +1 -1
- package/dist/{status.update-CO_hSO5b.js → status.update-mgzBYrgy.js} +1 -1
- package/dist/{store-DcxsUE2f.js → store-BNhebBGr.js} +2 -2
- package/dist/subagent-registry-runtime-HYpWtFUu.js +57 -0
- package/dist/{subsystem-CEiApUN8.js → subsystem-W834z9Wa.js} +16 -16
- package/dist/{tables-DTb5mzup.js → tables-XtcH-BaF.js} +1 -1
- package/dist/{target-errors-jNfnUab4.js → target-errors-CNzteBWz.js} +2 -2
- package/dist/{thinking-BJkp7vCP.js → thinking-X8yYhVf1.js} +6 -6
- package/dist/{tokens-tz04P2cO.js → tokens-DxcVnNVJ.js} +1 -1
- package/dist/{tool-images-DRyUUf-X.js → tool-images-B-4ixjYn.js} +2 -2
- package/dist/{update-cli-C1DALvzD.js → update-cli-CNBvXpVS.js} +8 -8
- package/dist/{update-cli-BDOF9xoT.js → update-cli-PgA0bnyk.js} +7 -7
- package/dist/{update-runner-C7Ixr_Ti.js → update-runner-BACLkDvl.js} +3 -3
- package/dist/{update-runner-Bw1MljLh.js → update-runner-D7HCCtTd.js} +3 -3
- package/dist/{utils-BFS4zK3g.js → utils-D2oM4XHm.js} +7 -7
- package/dist/{web-fbVaDaVW.js → web-B8rFiLYw.js} +56 -56
- package/dist/{whatsapp-actions-CMHMrQzp.js → whatsapp-actions-BPIXiPAR.js} +22 -22
- package/dist/{workspace-D6GL2anS.js → workspace-ZgWjBCAm.js} +21 -21
- package/package.json +1 -1
- package/dist/deliver-runtime-DGYhS7K1.js +0 -37
- package/dist/deps-send-discord.runtime-BJmezHoH.js +0 -27
- package/dist/deps-send-imessage.runtime-Dsq-J7FK.js +0 -26
- package/dist/deps-send-signal.runtime-2kRNCAkm.js +0 -25
- package/dist/deps-send-slack.runtime-DoM54spr.js +0 -23
- package/dist/deps-send-telegram.runtime-DGtmyBk2.js +0 -28
- package/dist/deps-send-whatsapp.runtime-B_ZiouDf.js +0 -61
- package/dist/image-runtime-BL3D208M.js +0 -30
- package/dist/manager-runtime-CJHBIXOb.js +0 -19
- package/dist/pi-model-discovery-runtime-BozG-CtU.js +0 -12
- package/dist/runtime-whatsapp-login.runtime-BU92rhCA.js +0 -14
- package/dist/runtime-whatsapp-outbound.runtime-DZy-sAPP.js +0 -23
- package/dist/slash-commands.runtime-CXJJf0jq.js +0 -17
- package/dist/slash-dispatch.runtime-CnDWfnhw.js +0 -57
- package/dist/slash-skill-commands.runtime-NPMuDGFx.js +0 -21
- package/dist/subagent-registry-runtime-R6EArAuY.js +0 -57
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-
|
|
2
|
-
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-
|
|
3
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-C5E9gJhP.js";
|
|
2
|
+
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
4
4
|
import { c as normalizeAgentId, g as normalizeOptionalAccountId, l as normalizeMainKey, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey } from "./session-key-DgdmD4k7.js";
|
|
5
|
-
import { S as truncateUtf16Safe, d as normalizeE164, h as resolveUserPath } from "./utils-
|
|
6
|
-
import { T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-
|
|
7
|
-
import { Bt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, ar as resolveProcessScopedMap, cr as formatCliCommand, et as writeConfigFile, ft as secretRefKey, gr as resolveSecretInputRef, mt as parseByteSize, or as getProcessStartTime, pt as getBlockedNetworkModeReason, sr as isPidAlive } from "./model-selection-
|
|
8
|
-
import { c as parseBooleanValue } from "./legacy-names-
|
|
5
|
+
import { S as truncateUtf16Safe, d as normalizeE164, h as resolveUserPath } from "./utils-D2oM4XHm.js";
|
|
6
|
+
import { T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-ZgWjBCAm.js";
|
|
7
|
+
import { Bt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, ar as resolveProcessScopedMap, cr as formatCliCommand, et as writeConfigFile, ft as secretRefKey, gr as resolveSecretInputRef, mt as parseByteSize, or as getProcessStartTime, pt as getBlockedNetworkModeReason, sr as isPidAlive } from "./model-selection-e9hodq0l.js";
|
|
8
|
+
import { c as parseBooleanValue } from "./legacy-names-BAiRv0I2.js";
|
|
9
9
|
import { t as parseDurationMs } from "./parse-duration-D8SaZ9Wv.js";
|
|
10
|
-
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-
|
|
11
|
-
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-
|
|
10
|
+
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-X8yYhVf1.js";
|
|
11
|
+
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-rc2l4VJe.js";
|
|
12
12
|
import { t as generateSecureToken } from "./secure-random-xpZo1jCG.js";
|
|
13
|
-
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
14
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
15
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
16
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
17
|
-
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-
|
|
18
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
19
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
13
|
+
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-D7mq-4y1.js";
|
|
14
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-palWvTtp.js";
|
|
15
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-OklkZyI1.js";
|
|
16
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-It4BBRdm.js";
|
|
17
|
+
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-C1YF712P.js";
|
|
18
|
+
import { n as SsrFBlockedError } from "./proxy-env-C2sbN0UU.js";
|
|
19
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-BNhebBGr.js";
|
|
20
20
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-CjNYeBcQ.js";
|
|
21
21
|
import { i as writeTextAtomic, r as writeJsonAtomic } from "./json-files-D2dc4Wmw.js";
|
|
22
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
22
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-CZ0nrg7g.js";
|
|
23
23
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-Db-3GZzv.js";
|
|
24
|
-
import { t as sanitizeContentBlocksImages } from "./tool-images-
|
|
24
|
+
import { t as sanitizeContentBlocksImages } from "./tool-images-B-4ixjYn.js";
|
|
25
25
|
import fs from "node:fs/promises";
|
|
26
26
|
import os from "node:os";
|
|
27
27
|
import path, { posix } from "node:path";
|
|
28
|
-
import
|
|
28
|
+
import syncFs, { existsSync } from "node:fs";
|
|
29
29
|
import { spawn } from "node:child_process";
|
|
30
30
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
31
31
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -1280,7 +1280,7 @@ function isModuleNotFoundError(err) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
async function loadPwAiModule(mode) {
|
|
1282
1282
|
try {
|
|
1283
|
-
return await import("./pw-ai-
|
|
1283
|
+
return await import("./pw-ai-CWE0qzH7.js");
|
|
1284
1284
|
} catch (err) {
|
|
1285
1285
|
if (mode === "soft") return null;
|
|
1286
1286
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3057,11 +3057,11 @@ async function movePathToTrash(targetPath) {
|
|
|
3057
3057
|
return targetPath;
|
|
3058
3058
|
} catch {
|
|
3059
3059
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
3060
|
-
|
|
3060
|
+
syncFs.mkdirSync(trashDir, { recursive: true });
|
|
3061
3061
|
const base = path.basename(targetPath);
|
|
3062
3062
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
3063
|
-
if (
|
|
3064
|
-
|
|
3063
|
+
if (syncFs.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${generateSecureToken(6)}`);
|
|
3064
|
+
syncFs.renameSync(targetPath, dest);
|
|
3065
3065
|
return dest;
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
@@ -3148,7 +3148,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
3148
3148
|
} catch {}
|
|
3149
3149
|
const userDataDir = resolveOpenClawUserDataDir(name);
|
|
3150
3150
|
const profileDir = path.dirname(userDataDir);
|
|
3151
|
-
if (
|
|
3151
|
+
if (syncFs.existsSync(profileDir)) {
|
|
3152
3152
|
await movePathToTrash(profileDir);
|
|
3153
3153
|
deleted = true;
|
|
3154
3154
|
}
|
|
@@ -3646,7 +3646,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3646
3646
|
//#region src/browser/server-context.reset.ts
|
|
3647
3647
|
async function closePlaywrightBrowserConnection() {
|
|
3648
3648
|
try {
|
|
3649
|
-
await (await import("./pw-ai-
|
|
3649
|
+
await (await import("./pw-ai-CWE0qzH7.js")).closePlaywrightBrowserConnection();
|
|
3650
3650
|
} catch {}
|
|
3651
3651
|
}
|
|
3652
3652
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -3664,7 +3664,7 @@ function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, i
|
|
|
3664
3664
|
if (await isHttpReachable(300) && !profileState.running) await closePlaywrightBrowserConnection();
|
|
3665
3665
|
if (profileState.running) await stopRunningBrowser();
|
|
3666
3666
|
await closePlaywrightBrowserConnection();
|
|
3667
|
-
if (!
|
|
3667
|
+
if (!syncFs.existsSync(userDataDir)) return {
|
|
3668
3668
|
moved: false,
|
|
3669
3669
|
from: userDataDir
|
|
3670
3670
|
};
|
|
@@ -4412,7 +4412,7 @@ function releaseAllLocksSync() {
|
|
|
4412
4412
|
if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
|
|
4413
4413
|
} catch {}
|
|
4414
4414
|
try {
|
|
4415
|
-
|
|
4415
|
+
syncFs.rmSync(held.lockPath, { force: true });
|
|
4416
4416
|
} catch {}
|
|
4417
4417
|
HELD_LOCKS.delete(sessionFile);
|
|
4418
4418
|
}
|
|
@@ -6010,7 +6010,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6010
6010
|
if (guarded.reason !== "path") {
|
|
6011
6011
|
if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
|
|
6012
6012
|
}
|
|
6013
|
-
} else
|
|
6013
|
+
} else syncFs.closeSync(guarded.fd);
|
|
6014
6014
|
const canonicalContainerPath = await this.resolveCanonicalContainerPath({
|
|
6015
6015
|
containerPath: target.containerPath,
|
|
6016
6016
|
allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
|
|
@@ -6021,7 +6021,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6021
6021
|
}
|
|
6022
6022
|
pathIsExistingDirectory(hostPath) {
|
|
6023
6023
|
try {
|
|
6024
|
-
return
|
|
6024
|
+
return syncFs.statSync(hostPath).isDirectory();
|
|
6025
6025
|
} catch {
|
|
6026
6026
|
return false;
|
|
6027
6027
|
}
|
|
@@ -6822,14 +6822,14 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
6822
6822
|
function canonicalizePathForComparison$1(filePath) {
|
|
6823
6823
|
const resolved = path.resolve(filePath);
|
|
6824
6824
|
try {
|
|
6825
|
-
return
|
|
6825
|
+
return syncFs.realpathSync(resolved);
|
|
6826
6826
|
} catch {
|
|
6827
6827
|
return resolved;
|
|
6828
6828
|
}
|
|
6829
6829
|
}
|
|
6830
6830
|
function archiveFileOnDisk(filePath, reason) {
|
|
6831
6831
|
const archived = `${filePath}.${reason}.${formatSessionArchiveTimestamp()}`;
|
|
6832
|
-
|
|
6832
|
+
syncFs.renameSync(filePath, archived);
|
|
6833
6833
|
return archived;
|
|
6834
6834
|
}
|
|
6835
6835
|
/**
|
|
@@ -6845,7 +6845,7 @@ function archiveSessionTranscripts(opts) {
|
|
|
6845
6845
|
const relative = path.relative(storeDir, candidatePath);
|
|
6846
6846
|
if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) continue;
|
|
6847
6847
|
}
|
|
6848
|
-
if (!
|
|
6848
|
+
if (!syncFs.existsSync(candidatePath)) continue;
|
|
6849
6849
|
try {
|
|
6850
6850
|
archived.push(archiveFileOnDisk(candidatePath, opts.reason));
|
|
6851
6851
|
} catch {}
|
|
@@ -6863,15 +6863,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
|
|
|
6863
6863
|
let removed = 0;
|
|
6864
6864
|
let scanned = 0;
|
|
6865
6865
|
for (const dir of directories) {
|
|
6866
|
-
const entries = await
|
|
6866
|
+
const entries = await syncFs.promises.readdir(dir).catch(() => []);
|
|
6867
6867
|
for (const entry of entries) {
|
|
6868
6868
|
const timestamp = parseSessionArchiveTimestamp(entry, reason);
|
|
6869
6869
|
if (timestamp == null) continue;
|
|
6870
6870
|
scanned += 1;
|
|
6871
6871
|
if (now - timestamp <= opts.olderThanMs) continue;
|
|
6872
6872
|
const fullPath = path.join(dir, entry);
|
|
6873
|
-
if (!(await
|
|
6874
|
-
await
|
|
6873
|
+
if (!(await syncFs.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
|
|
6874
|
+
await syncFs.promises.rm(fullPath).catch(() => void 0);
|
|
6875
6875
|
removed += 1;
|
|
6876
6876
|
}
|
|
6877
6877
|
}
|
|
@@ -7001,7 +7001,7 @@ function isCacheEnabled(ttlMs) {
|
|
|
7001
7001
|
}
|
|
7002
7002
|
function getFileStatSnapshot(filePath) {
|
|
7003
7003
|
try {
|
|
7004
|
-
const stats =
|
|
7004
|
+
const stats = syncFs.statSync(filePath);
|
|
7005
7005
|
return {
|
|
7006
7006
|
mtimeMs: stats.mtimeMs,
|
|
7007
7007
|
sizeBytes: stats.size
|
|
@@ -7020,7 +7020,7 @@ const NOOP_LOGGER = {
|
|
|
7020
7020
|
function canonicalizePathForComparison(filePath) {
|
|
7021
7021
|
const resolved = path.resolve(filePath);
|
|
7022
7022
|
try {
|
|
7023
|
-
return
|
|
7023
|
+
return syncFs.realpathSync(resolved);
|
|
7024
7024
|
} catch {
|
|
7025
7025
|
return resolved;
|
|
7026
7026
|
}
|
|
@@ -7078,12 +7078,12 @@ function resolveReferencedSessionTranscriptPaths(params) {
|
|
|
7078
7078
|
return referenced;
|
|
7079
7079
|
}
|
|
7080
7080
|
async function readSessionsDirFiles(sessionsDir) {
|
|
7081
|
-
const dirEntries = await
|
|
7081
|
+
const dirEntries = await syncFs.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
7082
7082
|
const files = [];
|
|
7083
7083
|
for (const dirent of dirEntries) {
|
|
7084
7084
|
if (!dirent.isFile()) continue;
|
|
7085
7085
|
const filePath = path.join(sessionsDir, dirent.name);
|
|
7086
|
-
const stat = await
|
|
7086
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
7087
7087
|
if (!stat?.isFile()) continue;
|
|
7088
7088
|
files.push({
|
|
7089
7089
|
path: filePath,
|
|
@@ -7096,9 +7096,9 @@ async function readSessionsDirFiles(sessionsDir) {
|
|
|
7096
7096
|
return files;
|
|
7097
7097
|
}
|
|
7098
7098
|
async function removeFileIfExists(filePath) {
|
|
7099
|
-
const stat = await
|
|
7099
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
7100
7100
|
if (!stat?.isFile()) return 0;
|
|
7101
|
-
await
|
|
7101
|
+
await syncFs.promises.rm(filePath, { force: true }).catch(() => void 0);
|
|
7102
7102
|
return stat.size;
|
|
7103
7103
|
}
|
|
7104
7104
|
async function removeFileForBudget(params) {
|
|
@@ -7457,7 +7457,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
|
|
|
7457
7457
|
}
|
|
7458
7458
|
async function getSessionFileSize(storePath) {
|
|
7459
7459
|
try {
|
|
7460
|
-
return (await
|
|
7460
|
+
return (await syncFs.promises.stat(storePath)).size;
|
|
7461
7461
|
} catch {
|
|
7462
7462
|
return null;
|
|
7463
7463
|
}
|
|
@@ -7474,7 +7474,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7474
7474
|
if (fileSize <= maxBytes) return false;
|
|
7475
7475
|
const backupPath = `${storePath}.bak.${Date.now()}`;
|
|
7476
7476
|
try {
|
|
7477
|
-
await
|
|
7477
|
+
await syncFs.promises.rename(storePath, backupPath);
|
|
7478
7478
|
log$2.info("rotated session store file", {
|
|
7479
7479
|
backupPath: path.basename(backupPath),
|
|
7480
7480
|
sizeBytes: fileSize
|
|
@@ -7485,11 +7485,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7485
7485
|
try {
|
|
7486
7486
|
const dir = path.dirname(storePath);
|
|
7487
7487
|
const baseName = path.basename(storePath);
|
|
7488
|
-
const backups = (await
|
|
7488
|
+
const backups = (await syncFs.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
|
|
7489
7489
|
const maxBackups = 3;
|
|
7490
7490
|
if (backups.length > maxBackups) {
|
|
7491
7491
|
const toDelete = backups.slice(maxBackups);
|
|
7492
|
-
for (const old of toDelete) await
|
|
7492
|
+
for (const old of toDelete) await syncFs.promises.unlink(path.join(dir, old)).catch(() => void 0);
|
|
7493
7493
|
log$2.info("cleaned up old session store backups", { deleted: toDelete.length });
|
|
7494
7494
|
}
|
|
7495
7495
|
} catch {}
|
|
@@ -7612,7 +7612,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
7612
7612
|
const maxReadAttempts = process.platform === "win32" ? 3 : 1;
|
|
7613
7613
|
const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
|
|
7614
7614
|
for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
|
|
7615
|
-
const raw =
|
|
7615
|
+
const raw = syncFs.readFileSync(storePath, "utf-8");
|
|
7616
7616
|
if (raw.length === 0 && attempt < maxReadAttempts - 1) {
|
|
7617
7617
|
Atomics.wait(retryBuf, 0, 0, 50);
|
|
7618
7618
|
continue;
|
|
@@ -7766,7 +7766,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
7766
7766
|
});
|
|
7767
7767
|
}
|
|
7768
7768
|
}
|
|
7769
|
-
await
|
|
7769
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
7770
7770
|
const json = JSON.stringify(store, null, 2);
|
|
7771
7771
|
if (getSerializedSessionStore(storePath) === json) {
|
|
7772
7772
|
updateSessionStoreWriteCaches({
|
|
@@ -8103,8 +8103,8 @@ function resolveMirroredTranscriptText(params) {
|
|
|
8103
8103
|
return trimmed ? trimmed : null;
|
|
8104
8104
|
}
|
|
8105
8105
|
async function ensureSessionHeader(params) {
|
|
8106
|
-
if (
|
|
8107
|
-
await
|
|
8106
|
+
if (syncFs.existsSync(params.sessionFile)) return;
|
|
8107
|
+
await syncFs.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
|
|
8108
8108
|
const header = {
|
|
8109
8109
|
type: "session",
|
|
8110
8110
|
version: CURRENT_SESSION_VERSION,
|
|
@@ -8112,7 +8112,7 @@ async function ensureSessionHeader(params) {
|
|
|
8112
8112
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8113
8113
|
cwd: process.cwd()
|
|
8114
8114
|
};
|
|
8115
|
-
await
|
|
8115
|
+
await syncFs.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
8116
8116
|
encoding: "utf-8",
|
|
8117
8117
|
mode: 384
|
|
8118
8118
|
});
|
|
@@ -8347,13 +8347,13 @@ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
|
|
|
8347
8347
|
});
|
|
8348
8348
|
if (!opened.ok) continue;
|
|
8349
8349
|
try {
|
|
8350
|
-
const content =
|
|
8350
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
8351
8351
|
await fs.writeFile(dest, content, {
|
|
8352
8352
|
encoding: "utf-8",
|
|
8353
8353
|
flag: "wx"
|
|
8354
8354
|
});
|
|
8355
8355
|
} finally {
|
|
8356
|
-
|
|
8356
|
+
syncFs.closeSync(opened.fd);
|
|
8357
8357
|
}
|
|
8358
8358
|
} catch {}
|
|
8359
8359
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as normalizeProviderId, tr as ensureAuthProfileStore } from "./model-selection-
|
|
2
|
+
import { c as normalizeProviderId, tr as ensureAuthProfileStore } from "./model-selection-e9hodq0l.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.OPENCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(syncFs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
syncFs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
syncFs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./run-with-concurrency-C5E9gJhP.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./utils-D2oM4XHm.js";
|
|
5
|
+
import "./workspace-ZgWjBCAm.js";
|
|
6
|
+
import "./logger-C53B395N.js";
|
|
7
|
+
import "./model-selection-e9hodq0l.js";
|
|
8
|
+
import "./github-copilot-token-DDa7O18e.js";
|
|
9
|
+
import "./legacy-names-BAiRv0I2.js";
|
|
10
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-32EFg27L.js";
|
|
11
|
+
|
|
12
|
+
export { discoverAuthStorage, discoverModels };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { C as isPlainObject } from "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import "./legacy-names-
|
|
10
|
-
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-
|
|
1
|
+
import "./run-with-concurrency-C5E9gJhP.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
4
|
+
import { C as isPlainObject } from "./utils-D2oM4XHm.js";
|
|
5
|
+
import "./workspace-ZgWjBCAm.js";
|
|
6
|
+
import "./logger-C53B395N.js";
|
|
7
|
+
import "./model-selection-e9hodq0l.js";
|
|
8
|
+
import "./github-copilot-token-DDa7O18e.js";
|
|
9
|
+
import "./legacy-names-BAiRv0I2.js";
|
|
10
|
+
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-BGtFj4tU.js";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
12
|
|
|
13
13
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -4,7 +4,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
4
4
|
import fs, { constants, createWriteStream } from "node:fs";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
6
|
import os from "node:os";
|
|
7
|
-
import
|
|
7
|
+
import json5 from "json5";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import fs$1 from "node:fs/promises";
|
|
10
10
|
import "@clack/prompts";
|
|
@@ -766,7 +766,7 @@ function readLoggingConfig() {
|
|
|
766
766
|
try {
|
|
767
767
|
if (!fs.existsSync(configPath)) return;
|
|
768
768
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
769
|
-
const logging =
|
|
769
|
+
const logging = json5.parse(raw)?.logging;
|
|
770
770
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
771
771
|
return logging;
|
|
772
772
|
} catch {
|
package/dist/plugin-sdk/slack.js
CHANGED
|
@@ -4,7 +4,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
6
|
import os from "node:os";
|
|
7
|
-
import
|
|
7
|
+
import JSON5 from "json5";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import fs$1 from "node:fs/promises";
|
|
10
10
|
import { execFile, spawn } from "node:child_process";
|
|
@@ -758,7 +758,7 @@ function readLoggingConfig() {
|
|
|
758
758
|
try {
|
|
759
759
|
if (!fs.existsSync(configPath)) return;
|
|
760
760
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
761
|
-
const logging =
|
|
761
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
762
762
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
763
763
|
return logging;
|
|
764
764
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as resolveDefaultAgentId } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { l as resolveDefaultAgentId } from "./run-with-concurrency-C5E9gJhP.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
3
3
|
import { c as normalizeAgentId, g as normalizeOptionalAccountId, h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DgdmD4k7.js";
|
|
4
|
-
import { d as normalizeE164 } from "./utils-
|
|
5
|
-
import { Kt as normalizeChatChannelId, Vt as CHAT_CHANNEL_ORDER, Wt as normalizeAnyChannelId, Xn as isTruthyEnvValue, Xt as requireActivePluginRegistry, Yt as getActivePluginRegistryVersion, hr as normalizeResolvedSecretInputString } from "./model-selection-
|
|
6
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
7
|
-
import
|
|
4
|
+
import { d as normalizeE164 } from "./utils-D2oM4XHm.js";
|
|
5
|
+
import { Kt as normalizeChatChannelId, Vt as CHAT_CHANNEL_ORDER, Wt as normalizeAnyChannelId, Xn as isTruthyEnvValue, Xt as requireActivePluginRegistry, Yt as getActivePluginRegistryVersion, hr as normalizeResolvedSecretInputString } from "./model-selection-e9hodq0l.js";
|
|
6
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-CAjupeYV.js";
|
|
7
|
+
import syncFs from "node:fs";
|
|
8
8
|
import util from "node:util";
|
|
9
9
|
|
|
10
10
|
//#region src/channels/plugins/account-action-gate.ts
|
|
@@ -317,7 +317,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
317
317
|
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
318
318
|
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
319
319
|
if (accountTokenFile) {
|
|
320
|
-
if (!
|
|
320
|
+
if (!syncFs.existsSync(accountTokenFile)) {
|
|
321
321
|
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
322
322
|
return {
|
|
323
323
|
token: "",
|
|
@@ -325,7 +325,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
try {
|
|
328
|
-
const token =
|
|
328
|
+
const token = syncFs.readFileSync(accountTokenFile, "utf-8").trim();
|
|
329
329
|
if (token) return {
|
|
330
330
|
token,
|
|
331
331
|
source: "tokenFile"
|
|
@@ -353,7 +353,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
353
353
|
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
354
354
|
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
355
355
|
if (tokenFile) {
|
|
356
|
-
if (!
|
|
356
|
+
if (!syncFs.existsSync(tokenFile)) {
|
|
357
357
|
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
358
358
|
return {
|
|
359
359
|
token: "",
|
|
@@ -361,7 +361,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
363
|
try {
|
|
364
|
-
const token =
|
|
364
|
+
const token = syncFs.readFileSync(tokenFile, "utf-8").trim();
|
|
365
365
|
if (token) return {
|
|
366
366
|
token,
|
|
367
367
|
source: "tokenFile"
|
|
@@ -115,8 +115,8 @@ import "./help-format-B7MhJztF.js";
|
|
|
115
115
|
import "./progress-BdIQDPeC.js";
|
|
116
116
|
import "./plugin-registry-B8gsdjW8.js";
|
|
117
117
|
import { n as resolveCliChannelOptions } from "./channel-options-COkismPi.js";
|
|
118
|
-
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-
|
|
119
|
-
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-
|
|
118
|
+
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-Cjl06Zry.js";
|
|
119
|
+
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-BEFHpoCL.js";
|
|
120
120
|
import { r as setProgramContext } from "./program-context-BwKunb5X.js";
|
|
121
121
|
import { t as forceFreePort } from "./ports-tNwRP0LA.js";
|
|
122
122
|
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-CxQq-XAy.js";
|
|
@@ -58,7 +58,7 @@ const entries = [
|
|
|
58
58
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
59
59
|
hasSubcommands: true,
|
|
60
60
|
register: async (program) => {
|
|
61
|
-
(await import("./gateway-cli-
|
|
61
|
+
(await import("./gateway-cli-HRo8JRRd.js")).registerGatewayCli(program);
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
{
|
|
@@ -262,7 +262,7 @@ const entries = [
|
|
|
262
262
|
description: "Update OpenClaw and inspect update channel status",
|
|
263
263
|
hasSubcommands: true,
|
|
264
264
|
register: async (program) => {
|
|
265
|
-
(await import("./update-cli-
|
|
265
|
+
(await import("./update-cli-PgA0bnyk.js")).registerUpdateCli(program);
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
{
|
|
@@ -270,7 +270,7 @@ const entries = [
|
|
|
270
270
|
description: "Generate shell completion script",
|
|
271
271
|
hasSubcommands: false,
|
|
272
272
|
register: async (program) => {
|
|
273
|
-
(await import("./completion-cli-
|
|
273
|
+
(await import("./completion-cli-rNt-qwSw.js").then((n) => n.n)).registerCompletionCli(program);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
];
|
|
@@ -327,7 +327,7 @@ const coreEntries = [
|
|
|
327
327
|
hasSubcommands: false
|
|
328
328
|
}],
|
|
329
329
|
register: async ({ program }) => {
|
|
330
|
-
(await import("./register.setup-
|
|
330
|
+
(await import("./register.setup-B43LcoaE.js")).registerSetupCommand(program);
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
{
|
|
@@ -337,7 +337,7 @@ const coreEntries = [
|
|
|
337
337
|
hasSubcommands: false
|
|
338
338
|
}],
|
|
339
339
|
register: async ({ program }) => {
|
|
340
|
-
(await import("./register.onboard
|
|
340
|
+
(await import("./register.onboard-CvYvmVAO.js")).registerOnboardCommand(program);
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
{
|
|
@@ -384,7 +384,7 @@ const coreEntries = [
|
|
|
384
384
|
}
|
|
385
385
|
],
|
|
386
386
|
register: async ({ program }) => {
|
|
387
|
-
(await import("./register.maintenance-
|
|
387
|
+
(await import("./register.maintenance-CxSE7-Kl.js")).registerMaintenanceCommands(program);
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
390
|
{
|
|
@@ -440,7 +440,7 @@ const coreEntries = [
|
|
|
440
440
|
}
|
|
441
441
|
],
|
|
442
442
|
register: async ({ program }) => {
|
|
443
|
-
(await import("./register.status-health-sessions-
|
|
443
|
+
(await import("./register.status-health-sessions-DYYi2rkn.js")).registerStatusHealthSessionsCommands(program);
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
446
|
{
|
|
@@ -40,14 +40,14 @@ import { t as readLastGatewayErrorLine } from "./diagnostics-B9N9Gclp.js";
|
|
|
40
40
|
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-DCCTTM2p.js";
|
|
41
41
|
import { r as healthCommand } from "./health-DD6PJgN8.js";
|
|
42
42
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-C08JRwwL.js";
|
|
43
|
-
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-
|
|
44
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
43
|
+
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-BAivtK8t.js";
|
|
44
|
+
import { t as runGatewayUpdate } from "./update-runner-D7HCCtTd.js";
|
|
45
45
|
import { n as logConfigUpdated } from "./logging-4zSchJ5n.js";
|
|
46
46
|
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-CN_hFkSO.js";
|
|
47
47
|
import { n as noteOpenAIOAuthTlsPrerequisites } from "./oauth-tls-preflight-gumxl5c_.js";
|
|
48
48
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-SLVqtYjz.js";
|
|
49
49
|
import { t as formatHealthCheckFailure } from "./health-format-GTeknL_T.js";
|
|
50
|
-
import { n as doctorShellCompletion } from "./doctor-completion
|
|
50
|
+
import { n as doctorShellCompletion } from "./doctor-completion--S9fsNQo.js";
|
|
51
51
|
import { execFile } from "node:child_process";
|
|
52
52
|
import os from "node:os";
|
|
53
53
|
import path from "node:path";
|
|
@@ -40,14 +40,14 @@ import { t as readLastGatewayErrorLine } from "./diagnostics-DoUuiJKe.js";
|
|
|
40
40
|
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-BYE4mzc2.js";
|
|
41
41
|
import { r as healthCommand } from "./health-DL7YyJbv.js";
|
|
42
42
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-C-HAB1VB.js";
|
|
43
|
-
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-
|
|
44
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
43
|
+
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-DptVE7IR.js";
|
|
44
|
+
import { t as runGatewayUpdate } from "./update-runner-BACLkDvl.js";
|
|
45
45
|
import { n as logConfigUpdated } from "./logging-C9DZ91kl.js";
|
|
46
46
|
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-Ca3UIhdu.js";
|
|
47
47
|
import { n as noteOpenAIOAuthTlsPrerequisites } from "./oauth-tls-preflight-B0lQ1X82.js";
|
|
48
48
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-BOo3XOLT.js";
|
|
49
49
|
import { t as formatHealthCheckFailure } from "./health-format-Dbc6Wesr.js";
|
|
50
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
50
|
+
import { n as doctorShellCompletion } from "./doctor-completion-BAJbdzsD.js";
|
|
51
51
|
import fs from "node:fs";
|
|
52
52
|
import os from "node:os";
|
|
53
53
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tt as parseLooseIpAddress, _t as isBlockedSpecialUseIpv6Address, bt as isLegacyIpv4Literal, gt as isBlockedSpecialUseIpv4Address, ht as extractEmbeddedIpv4FromIpv6, vt as isCanonicalDottedDecimalIPv4, wt as parseCanonicalIpAddress, yt as isIpv4Address } from "./model-selection-
|
|
1
|
+
import { Tt as parseLooseIpAddress, _t as isBlockedSpecialUseIpv6Address, bt as isLegacyIpv4Literal, gt as isBlockedSpecialUseIpv4Address, ht as extractEmbeddedIpv4FromIpv6, vt as isCanonicalDottedDecimalIPv4, wt as parseCanonicalIpAddress, yt as isIpv4Address } from "./model-selection-e9hodq0l.js";
|
|
2
2
|
import { lookup } from "node:dns";
|
|
3
3
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
4
4
|
import { Agent } from "undici";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import { cr as formatCliCommand } from "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import "./legacy-names-
|
|
10
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
11
|
-
import "./path-alias-guards-
|
|
12
|
-
import "./redact-
|
|
13
|
-
import { r as formatErrorMessage } from "./errors-
|
|
14
|
-
import { s as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
15
|
-
import "./proxy-env-
|
|
1
|
+
import "./run-with-concurrency-C5E9gJhP.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./utils-D2oM4XHm.js";
|
|
5
|
+
import "./workspace-ZgWjBCAm.js";
|
|
6
|
+
import "./logger-C53B395N.js";
|
|
7
|
+
import { cr as formatCliCommand } from "./model-selection-e9hodq0l.js";
|
|
8
|
+
import "./github-copilot-token-DDa7O18e.js";
|
|
9
|
+
import "./legacy-names-BAiRv0I2.js";
|
|
10
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-palWvTtp.js";
|
|
11
|
+
import "./path-alias-guards-It4BBRdm.js";
|
|
12
|
+
import "./redact-BXURioma.js";
|
|
13
|
+
import { r as formatErrorMessage } from "./errors-C1YF712P.js";
|
|
14
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-BLpOReWZ.js";
|
|
15
|
+
import "./proxy-env-C2sbN0UU.js";
|
|
16
16
|
import fs from "node:fs/promises";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import crypto from "node:crypto";
|