wednesdayai 0.4.12-dev.721 → 0.4.12-dev.722
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/{agent-scope-cbxkoURo.js → agent-scope-DxKPMu8w.js} +3 -3
- package/dist/{agent-turn-runner-CXf6g-6f.js → agent-turn-runner-LlrD6k2x.js} +5 -5
- package/dist/{api-key-rotation-BMnyfyGD.js → api-key-rotation-Br7_jaAV.js} +2 -2
- package/dist/{artifacts-DUhYSSmK.js → artifacts-QHme-vnS.js} +4 -4
- package/dist/{audio-preflight-ifCgpG3c.js → audio-preflight-B_5sTSyb.js} +27 -27
- package/dist/{audio-transcription-runner-ipSQoPp8.js → audio-transcription-runner-XFfvRPXl.js} +11 -11
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +58 -58
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +58 -58
- package/dist/bundled/session-memory/handler.js +58 -58
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-BJHm_pDV.js → channel-activity-DNq7LYjU.js} +3 -3
- package/dist/{chrome-DTJprCGv.js → chrome-FHxGdLnd.js} +15 -15
- package/dist/{chunk-eNEsWhab.js → chunk-BhntPUH_.js} +3 -3
- package/dist/{command-queue-smA8JaO_.js → command-queue-CkNuNlmY.js} +1 -1
- package/dist/{commands-registry-DdQg21ct.js → commands-registry-DC0fovy_.js} +2 -2
- package/dist/config.js +9 -9
- package/dist/daemon-cli.js +7 -7
- package/dist/{deliver-CVWbwPkb.js → deliver-CXqNQ8yi.js} +24 -24
- package/dist/{diagnostic-DI-K8155.js → diagnostic-Bbg-zObh.js} +5 -5
- package/dist/{fetch-BzXaK9px.js → fetch-BoHKSk-O.js} +8 -8
- package/dist/{fetch-guard-0mkjBgri.js → fetch-guard-TJjLK0FV.js} +3 -3
- package/dist/{frontmatter-PMByWrfP.js → frontmatter-saAwiKEb.js} +5 -5
- package/dist/{fs-safe-DwICJjkN.js → fs-safe-LRpYbPaA.js} +4 -4
- package/dist/{github-copilot-token-WSjo05vB.js → github-copilot-token-zGOMIGSh.js} +7 -7
- package/dist/{image-ops-O8pHxo7i.js → image-ops-D_fm2PuR.js} +1 -1
- package/dist/{ir-fzpdYPWw.js → ir-C4MMLUJr.js} +5 -5
- package/dist/{legacy-names-CLlrMq8r.js → legacy-names-vLJrYADD.js} +1 -1
- package/dist/llm-slug-generator.js +58 -58
- package/dist/{logger-DNehzD_s.js → logger-a0-zAY5a.js} +1 -1
- package/dist/{manager-DH-MILAU.js → manager-DdA_cy40.js} +12 -12
- package/dist/{markdown-tables-UWspJNAH.js → markdown-tables-Dd7jV1JF.js} +2 -2
- package/dist/{model-selection-9qbqwsOT.js → model-selection-CdZITU0t.js} +86 -86
- package/dist/{outbound-attachment-DVKqk30B.js → outbound-attachment-CqtMGpsJ.js} +2 -2
- package/dist/{outbound-message-hooks-S_VhlJs3.js → outbound-message-hooks-RBQbGzGm.js} +4 -4
- package/dist/{path-alias-guards-Cd5yHmTq.js → path-alias-guards-Zj-NwKjV.js} +1 -1
- package/dist/{paths-Cvc9EM8Y.js → paths-C6TxBCvO.js} +5 -5
- package/dist/{pi-embedded-maiK_yr9.js → pi-embedded-COs_yO7U.js} +169 -169
- package/dist/{pi-embedded-helpers-5JApWu7A.js → pi-embedded-helpers-BYLOFsUc.js} +24 -24
- package/dist/{pi-embedded-utils-kHMmP2Xh.js → pi-embedded-utils-DOtaZ7KV.js} +3 -3
- package/dist/{pi-model-discovery-CsC6yTDG.js → pi-model-discovery-B9KKtGuw.js} +7 -7
- package/dist/plugin-sdk/{agent-scope-BQYVQxfQ.js → agent-scope-DU8uJiiv.js} +2 -2
- package/dist/plugin-sdk/agent-turn-execute-DoRgVKVO.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-CqIBwx4o.js → agent-turn-runner-pU0RGvg6.js} +6 -6
- package/dist/plugin-sdk/{api-key-rotation-BW3rq9Tg.js → api-key-rotation-Oe0hkmVQ.js} +2 -2
- package/dist/plugin-sdk/{artifacts-C8xK4Y3e.js → artifacts-Dk-7TtTn.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BVO3xBbT.js → audio-preflight-8hRbl8Io.js} +22 -22
- package/dist/plugin-sdk/{audio-transcription-runner-DXiOiQMw.js → audio-transcription-runner-CUsZFiEA.js} +11 -11
- package/dist/plugin-sdk/{auth-profiles-CIKTWees.js → auth-profiles-OgKl-vr-.js} +5 -5
- package/dist/plugin-sdk/{channel-activity-Ck83U_es.js → channel-activity-OIauZrkN.js} +3 -3
- package/dist/plugin-sdk/{chrome-DDIL8pIX.js → chrome-VZ0Zuu2w.js} +12 -12
- package/dist/plugin-sdk/{chunk-D6yDhUpF.js → chunk-BWz-lIzS.js} +4 -4
- package/dist/plugin-sdk/{command-queue-Cveon04f.js → command-queue-CbgNIrv6.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-DuwlD_aI.js → commands-registry-XW2hmbAE.js} +3 -3
- package/dist/plugin-sdk/{deliver-BD3gpFAY.js → deliver-B7W4NNsR.js} +11 -11
- package/dist/plugin-sdk/deliver-CJP9TznW.js +32 -0
- package/dist/plugin-sdk/{diagnostic-BhLorIrS.js → diagnostic-BRUM6uNI.js} +7 -7
- package/dist/plugin-sdk/{diagnostic-session-state-BjuWxrAM.js → diagnostic-session-state-BsHrQ7U3.js} +1 -1
- package/dist/plugin-sdk/{fetch-D1jXg-ju.js → fetch-C1vgNaXJ.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-DnwfMurj.js → fetch-guard-B2Wnl9Vi.js} +4 -4
- package/dist/plugin-sdk/{fetch-DFZXuu3W.js → fetch-hEreHolP.js} +7 -7
- package/dist/plugin-sdk/{fetch-timeout-D7XVWfxj.js → fetch-timeout-A1m6BOhm.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-BQ5cHy9G.js → fs-safe-ClebEeLz.js} +3 -3
- package/dist/plugin-sdk/{image-ops-0TjWNKUx.js → image-ops-Bm03YsK2.js} +1 -1
- package/dist/plugin-sdk/{inbound-context-Bfr5DkdO.js → inbound-context-Cmgtf5my.js} +1 -1
- package/dist/plugin-sdk/{ir-CbL0sVL2.js → ir-1CthVxHv.js} +5 -5
- package/dist/plugin-sdk/{logger-D5s3kiib.js → logger-BkzoyfHW.js} +1 -1
- package/dist/plugin-sdk/{manager-CHBt3PC-.js → manager-C4CJpRd9.js} +8 -8
- package/dist/plugin-sdk/manager-CPcI0Fhz.js +16 -0
- package/dist/plugin-sdk/{markdown-tables-CBGsimjo.js → markdown-tables-DZM4NfLU.js} +3 -3
- package/dist/plugin-sdk/{outbound-attachment-C5x2htXW.js → outbound-attachment-GMgXpDQm.js} +2 -2
- package/dist/plugin-sdk/{outbound-message-hooks-2YmJP9k-.js → outbound-message-hooks-BUHUdpjM.js} +3 -3
- package/dist/plugin-sdk/{path-alias-guards-BIPHhakQ.js → path-alias-guards-Dft7g-_v.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-D74AHWBs.js → pi-embedded-helpers-B-OOYT64.js} +11 -11
- package/dist/plugin-sdk/{pi-embedded-utils-DQaOun1y.js → pi-embedded-utils-BoSGTbYO.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-C37z3zkx.js → pi-model-discovery-DF6l-F8s.js} +2 -2
- package/dist/plugin-sdk/provider-dispatcher-CNLIHg-v.js +61 -0
- package/dist/plugin-sdk/provider-image-L_SRDPHU.js +22 -0
- package/dist/plugin-sdk/{provider-image-Cy9HRMER.js → provider-image-zNa1Cccq.js} +5 -5
- package/dist/plugin-sdk/{proxy-CjNR_U3u.js → proxy-CXI1ycJj.js} +2 -2
- package/dist/plugin-sdk/{proxy-env-ubutfW07.js → proxy-env-B3rQCyUO.js} +2 -2
- package/dist/plugin-sdk/{proxy-fetch-Cv4b428x.js → proxy-fetch-CNBkczcW.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DlM8D_uP.js → pw-ai-JJrE-B1e.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-Bv5B9pi9.js → qmd-manager-CkQhKIXI.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-CWwH9pqd.js → query-expansion-DjZsVofz.js} +3 -3
- package/dist/plugin-sdk/{recorder-C3qdhG-p.js → recorder-BU_faNrp.js} +4 -4
- package/dist/{redact-BOHmCPP_.js → plugin-sdk/redact-CdcLrd0n.js} +1 -1
- package/dist/plugin-sdk/{registry-BXmLBUZj.js → registry-tm0HFWKN.js} +7 -7
- package/dist/plugin-sdk/replies-BFjGWAPs.js +25 -0
- package/dist/plugin-sdk/{replies-CjeAGcJx.js → replies-CS2GXrd-.js} +4 -4
- package/dist/plugin-sdk/{reply-directives-OuX5Mba_.js → reply-directives-hfOVgXpA.js} +2 -2
- package/dist/plugin-sdk/{reply-prefix-C83iSHUo.js → reply-prefix-BKQgC6Vj.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-BLBv69wV.js → resolve-route-tqQv32nr.js} +5 -5
- package/dist/plugin-sdk/runs-CPA1-H-2.js +25 -0
- package/dist/plugin-sdk/{runs-B4G4Txj3.js → runs-H2FY7UEk.js} +8 -8
- package/dist/plugin-sdk/{send-BwoWjRrJ.js → send-BMhuEEtY.js} +9 -9
- package/dist/plugin-sdk/{send-BUAw8fe4.js → send-BjR1QHnz.js} +7 -7
- package/dist/plugin-sdk/{send-B2Kip2qd.js → send-CEtGyK32.js} +8 -8
- package/dist/plugin-sdk/{send-Tg5PT6ci.js → send-CF3PEjRy.js} +14 -14
- package/dist/plugin-sdk/send-CRtSAH8I.js +25 -0
- package/dist/plugin-sdk/send-CzxwgKvR.js +27 -0
- package/dist/plugin-sdk/{send-D_2cxLLi.js → send-DUJMd2d7.js} +20 -20
- package/dist/plugin-sdk/{send-CfSEKKlU.js → send-DdPdUcD0.js} +6 -6
- package/dist/plugin-sdk/send-DuCB2xbl.js +23 -0
- package/dist/plugin-sdk/send-DyYaWr3E.js +24 -0
- package/dist/plugin-sdk/{session-meta-D3W538Wj.js → session-meta-oR-S9C5J.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-ByVQek_m.js → skill-commands-Bh43SlDc.js} +6 -6
- package/dist/plugin-sdk/{skills-BGgry_YW.js → skills-CatBv8W4.js} +6 -6
- package/dist/plugin-sdk/{store-C6ZLKWUS.js → store-6JKvp2Zu.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-CAdT47aY.js +61 -0
- package/dist/plugin-sdk/{subsystem-0F3fEqJW.js → subsystem-CchgWuXK.js} +4 -4
- package/dist/plugin-sdk/{tables-BCSRuiq_.js → tables-BPCP4CpE.js} +1 -1
- package/dist/plugin-sdk/testing.js +55 -55
- package/dist/plugin-sdk/{tokens-O0pGqOuf.js → tokens-Cioh8xR5.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-BG8uP1aD.js → tool-loop-detection-BN0lIxLx.js} +1 -1
- package/dist/plugin-sdk/{tools-Sk-IqHBP.js → tools-3raTfdu5.js} +102 -102
- package/dist/plugin-sdk/{user-run-recording-iS-qLIN9.js → user-run-recording-DlpzQk0X.js} +3 -3
- package/dist/{provider-image-Cb4z6zUu.js → provider-image-BllyLBJM.js} +5 -5
- package/dist/{proxy-env-i0jn5uxB.js → proxy-env-CzGKpJY_.js} +2 -2
- package/dist/{proxy-C9sq6M-h.js → proxy-fWL7CKDP.js} +1 -1
- package/dist/{proxy-fetch-CK5AQAYw.js → proxy-fetch-DCI0KuH6.js} +1 -1
- package/dist/{pw-ai-DziGw6Jy.js → pw-ai-CXSJw34w.js} +14 -14
- package/dist/{qmd-manager-p036XU01.js → qmd-manager-BwZ0V5fL.js} +10 -10
- package/dist/{query-expansion-30x7RlZY.js → query-expansion-31VWpPCz.js} +5 -5
- package/dist/{recorder-C_ViZLf1.js → recorder-DNRxe9C8.js} +4 -4
- package/dist/{plugin-sdk/redact-BEcZiZI1.js → redact-DZne_lu8.js} +1 -1
- package/dist/{replies-BsctLhfp.js → replies-NkETqb6B.js} +4 -4
- package/dist/{reply-directives-D9wYtPPy.js → reply-directives-DGITtNUL.js} +2 -2
- package/dist/{reply-prefix-C7WlN3qm.js → reply-prefix-DVkNDBNe.js} +1 -1
- package/dist/{resolve-route-BV8k5qjX.js → resolve-route-jDAjkfZE.js} +5 -5
- package/dist/{runs-ucQd8Fc-.js → runs-DGWNXyKA.js} +8 -8
- package/dist/{send-Tx-ew59_.js → send-CNLmncRW.js} +6 -6
- package/dist/{send-TscXeVY8.js → send-DEFcgo-1.js} +27 -27
- package/dist/{send-BGps2i_C.js → send-Do1AlhD5.js} +8 -8
- package/dist/{send-BiDcVZSc.js → send-Dq8ChBfS.js} +6 -6
- package/dist/{send-Ba3pDq6E.js → send-ENMm5qbW.js} +7 -7
- package/dist/{session-meta-DH__PMKt.js → session-meta-DuK_BrWT.js} +2 -2
- package/dist/{skill-commands-CRZajtK_.js → skill-commands-BhMQp_i8.js} +9 -9
- package/dist/{skills-DOc6uEd1.js → skills-ckuLxkyg.js} +21 -21
- package/dist/{store-xxN6qyAh.js → store-gQ6FSjVk.js} +2 -2
- package/dist/{subsystem-BCjklMkJ.js → subsystem-CPYnUTN4.js} +64 -64
- package/dist/{tables-o3ZpyPWV.js → tables-DEyD0zuy.js} +1 -1
- package/dist/{tokens-9Mla_HDp.js → tokens-9BPY4SaX.js} +1 -1
- package/dist/{tool-loop-detection-8uvf8mSd.js → tool-loop-detection-C1fqyXXD.js} +2 -2
- package/dist/{user-run-recording-CAk1Ketk.js → user-run-recording-B0XAAUwL.js} +2 -2
- package/dist/{workspace-Dbn4gFdH.js → workspace-B707AGIc.js} +9 -9
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/elevenlabs/src/streaming-speech-provider-faults.test.ts +2 -2
- package/extensions/elevenlabs/src/streaming-speech-provider.test.ts +19 -5
- package/extensions/elevenlabs/src/streaming-speech-provider.ts +3 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/agent-turn-execute-BRJa_EBt.js +0 -61
- package/dist/plugin-sdk/deliver-DZoYhDxC.js +0 -32
- package/dist/plugin-sdk/manager-Bqpqu2GS.js +0 -16
- package/dist/plugin-sdk/provider-dispatcher-NB8R-FyS.js +0 -61
- package/dist/plugin-sdk/provider-image-g3vmjlkZ.js +0 -22
- package/dist/plugin-sdk/replies-0gHRQjbA.js +0 -25
- package/dist/plugin-sdk/runs-Dzlj-BO5.js +0 -25
- package/dist/plugin-sdk/send-COofA0BG.js +0 -23
- package/dist/plugin-sdk/send-DHNKlQPv.js +0 -27
- package/dist/plugin-sdk/send-NUHfC-G_.js +0 -25
- package/dist/plugin-sdk/send-Tm5-7bLz.js +0 -24
- package/dist/plugin-sdk/subagent-registry-B5xaoVWq.js +0 -61
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { U as loadConfig, _t as normalizeIpAddress, ft as isIpInCidr, gt as isPrivateOrLoopbackIpAddress, ht as isLoopbackIpAddress } from "./model-selection-
|
|
3
|
-
import { c as resolvePinnedHostnameWithPolicy, g as isErrno, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
4
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
1
|
+
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
2
|
+
import { U as loadConfig, _t as normalizeIpAddress, ft as isIpInCidr, gt as isPrivateOrLoopbackIpAddress, ht as isLoopbackIpAddress } from "./model-selection-CdZITU0t.js";
|
|
3
|
+
import { c as resolvePinnedHostnameWithPolicy, g as isErrno, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-CzGKpJY_.js";
|
|
4
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-LRpYbPaA.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import syncFs from "node:fs";
|
|
9
9
|
import { execFileSync, spawn } from "node:child_process";
|
|
10
10
|
import { createHmac } from "node:crypto";
|
|
11
11
|
import net from "node:net";
|
|
@@ -1649,7 +1649,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1649
1649
|
]);
|
|
1650
1650
|
function exists$1(filePath) {
|
|
1651
1651
|
try {
|
|
1652
|
-
return
|
|
1652
|
+
return syncFs.existsSync(filePath);
|
|
1653
1653
|
} catch {
|
|
1654
1654
|
return false;
|
|
1655
1655
|
}
|
|
@@ -1792,7 +1792,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
function readDesktopExecLine(desktopPath) {
|
|
1794
1794
|
try {
|
|
1795
|
-
const lines =
|
|
1795
|
+
const lines = syncFs.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1796
1796
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1797
1797
|
} catch {}
|
|
1798
1798
|
return null;
|
|
@@ -2050,7 +2050,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
2050
2050
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
2051
2051
|
function resolveLsofCommandSync() {
|
|
2052
2052
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
2053
|
-
|
|
2053
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
2054
2054
|
return candidate;
|
|
2055
2055
|
} catch {}
|
|
2056
2056
|
return "lsof";
|
|
@@ -2095,8 +2095,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
function safeReadJson(filePath) {
|
|
2097
2097
|
try {
|
|
2098
|
-
if (!
|
|
2099
|
-
const raw =
|
|
2098
|
+
if (!syncFs.existsSync(filePath)) return null;
|
|
2099
|
+
const raw = syncFs.readFileSync(filePath, "utf-8");
|
|
2100
2100
|
const parsed = JSON.parse(raw);
|
|
2101
2101
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2102
2102
|
return parsed;
|
|
@@ -2105,8 +2105,8 @@ function safeReadJson(filePath) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
2107
|
function safeWriteJson(filePath, data) {
|
|
2108
|
-
|
|
2109
|
-
|
|
2108
|
+
syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2109
|
+
syncFs.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2110
2110
|
}
|
|
2111
2111
|
function setDeep(obj, keys, value) {
|
|
2112
2112
|
let node = obj;
|
|
@@ -2233,7 +2233,7 @@ function decorateOpenClawProfile(userDataDir, opts) {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
safeWriteJson(preferencesPath, prefs);
|
|
2235
2235
|
try {
|
|
2236
|
-
|
|
2236
|
+
syncFs.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2237
2237
|
} catch {}
|
|
2238
2238
|
}
|
|
2239
2239
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2249,7 +2249,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2249
2249
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2250
2250
|
function exists(filePath) {
|
|
2251
2251
|
try {
|
|
2252
|
-
return
|
|
2252
|
+
return syncFs.existsSync(filePath);
|
|
2253
2253
|
} catch {
|
|
2254
2254
|
return false;
|
|
2255
2255
|
}
|
|
@@ -2347,7 +2347,7 @@ async function launchOpenClawChrome(resolved, profile) {
|
|
|
2347
2347
|
const exe = resolveBrowserExecutable(resolved);
|
|
2348
2348
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2349
2349
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
2350
|
-
|
|
2350
|
+
syncFs.mkdirSync(userDataDir, { recursive: true });
|
|
2351
2351
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_OPENCLAW_BROWSER_COLOR).toUpperCase());
|
|
2352
2352
|
const spawnOnce = () => {
|
|
2353
2353
|
const args = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { L as normalizeAccountId } from "./workspace-
|
|
4
|
-
import { gi as resolveAccountEntry, vi as INTERNAL_MESSAGE_CHANNEL } from "./model-selection-
|
|
2
|
+
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { L as normalizeAccountId } from "./workspace-B707AGIc.js";
|
|
4
|
+
import { gi as resolveAccountEntry, vi as INTERNAL_MESSAGE_CHANNEL } from "./model-selection-CdZITU0t.js";
|
|
5
5
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-DHXKaTRv.js";
|
|
6
6
|
|
|
7
7
|
//#region src/auto-reply/chunk.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
2
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-Bbg-zObh.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DTaUAkeG.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { tt as escapeRegExp } from "./subsystem-
|
|
2
|
+
import { tt as escapeRegExp } from "./subsystem-CPYnUTN4.js";
|
|
3
3
|
import { t as isPlainObject } from "./plain-object-CLm2c5Nu.js";
|
|
4
|
-
import { Gt as getActivePluginRegistry, Vr as listChannelDocks, co as DEFAULT_PROVIDER, so as DEFAULT_MODEL, u as resolveConfiguredModelRef, zr as normalizeChannelId } from "./model-selection-
|
|
4
|
+
import { Gt as getActivePluginRegistry, Vr as listChannelDocks, co as DEFAULT_PROVIDER, so as DEFAULT_MODEL, u as resolveConfiguredModelRef, zr as normalizeChannelId } from "./model-selection-CdZITU0t.js";
|
|
5
5
|
import { r as listThinkingLevels } from "./thinking-CwmtMy_H.js";
|
|
6
6
|
|
|
7
7
|
//#region src/config/commands.ts
|
package/dist/config.js
CHANGED
|
@@ -7,7 +7,7 @@ import { isDeepStrictEqual, promisify } from "node:util";
|
|
|
7
7
|
import JSON5 from "json5";
|
|
8
8
|
import dotenv from "dotenv";
|
|
9
9
|
import { Logger } from "tslog";
|
|
10
|
-
import
|
|
10
|
+
import fs$1 from "node:fs/promises";
|
|
11
11
|
import zlib from "node:zlib";
|
|
12
12
|
import chalk, { Chalk } from "chalk";
|
|
13
13
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -6130,7 +6130,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
|
|
|
6130
6130
|
await held.handle.close();
|
|
6131
6131
|
} catch {}
|
|
6132
6132
|
try {
|
|
6133
|
-
await
|
|
6133
|
+
await fs$1.rm(held.lockPath, { force: true });
|
|
6134
6134
|
} catch {}
|
|
6135
6135
|
})();
|
|
6136
6136
|
try {
|
|
@@ -6209,7 +6209,7 @@ function registerCleanupHandlers() {
|
|
|
6209
6209
|
}
|
|
6210
6210
|
async function readLockPayload(lockPath) {
|
|
6211
6211
|
try {
|
|
6212
|
-
const raw = await
|
|
6212
|
+
const raw = await fs$1.readFile(lockPath, "utf8");
|
|
6213
6213
|
const parsed = JSON.parse(raw);
|
|
6214
6214
|
const payload = {};
|
|
6215
6215
|
if (isValidLockNumber(parsed.pid) && parsed.pid > 0) payload.pid = parsed.pid;
|
|
@@ -6253,7 +6253,7 @@ async function shouldReclaimContendedLockFile(lockPath, details, staleMs, nowMs)
|
|
|
6253
6253
|
if (!details.stale) return false;
|
|
6254
6254
|
if (!lockInspectionNeedsMtimeStaleFallback(details)) return true;
|
|
6255
6255
|
try {
|
|
6256
|
-
const stat = await
|
|
6256
|
+
const stat = await fs$1.stat(lockPath);
|
|
6257
6257
|
return Math.max(0, nowMs - stat.mtimeMs) > staleMs;
|
|
6258
6258
|
} catch (error) {
|
|
6259
6259
|
return error?.code !== "ENOENT";
|
|
@@ -6271,10 +6271,10 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
6271
6271
|
const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
|
|
6272
6272
|
const sessionFile = path.resolve(params.sessionFile);
|
|
6273
6273
|
const sessionDir = path.dirname(sessionFile);
|
|
6274
|
-
await
|
|
6274
|
+
await fs$1.mkdir(sessionDir, { recursive: true });
|
|
6275
6275
|
let normalizedDir = sessionDir;
|
|
6276
6276
|
try {
|
|
6277
|
-
normalizedDir = await
|
|
6277
|
+
normalizedDir = await fs$1.realpath(sessionDir);
|
|
6278
6278
|
} catch {}
|
|
6279
6279
|
const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
|
|
6280
6280
|
const lockPath = `${normalizedSessionFile}.lock`;
|
|
@@ -6292,7 +6292,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
6292
6292
|
attempt += 1;
|
|
6293
6293
|
let handle = null;
|
|
6294
6294
|
try {
|
|
6295
|
-
handle = await
|
|
6295
|
+
handle = await fs$1.open(lockPath, "wx");
|
|
6296
6296
|
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
6297
6297
|
const starttime = processIdentity.getProcessStartTime(process.pid);
|
|
6298
6298
|
const lockPayload = {
|
|
@@ -6318,7 +6318,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
6318
6318
|
await handle.close();
|
|
6319
6319
|
} catch {}
|
|
6320
6320
|
try {
|
|
6321
|
-
await
|
|
6321
|
+
await fs$1.rm(lockPath, { force: true });
|
|
6322
6322
|
} catch {}
|
|
6323
6323
|
}
|
|
6324
6324
|
if (err.code !== "EEXIST") throw err;
|
|
@@ -6333,7 +6333,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
6333
6333
|
stale: true,
|
|
6334
6334
|
staleReasons: inspected.staleReasons.includes("orphan-self-pid") ? inspected.staleReasons : [...inspected.staleReasons, "orphan-self-pid"]
|
|
6335
6335
|
} : inspected, staleMs, nowMs)) {
|
|
6336
|
-
await
|
|
6336
|
+
await fs$1.rm(lockPath, { force: true });
|
|
6337
6337
|
continue;
|
|
6338
6338
|
}
|
|
6339
6339
|
const delay = Math.min(1e3, 50 * attempt);
|
package/dist/daemon-cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
|
|
3
3
|
import os, { userInfo } from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
|
-
import
|
|
6
|
+
import json5 from "json5";
|
|
7
7
|
import fs$1 from "node:fs/promises";
|
|
8
8
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
9
9
|
import zlib from "node:zlib";
|
|
@@ -1432,7 +1432,7 @@ const defaultResolver = {
|
|
|
1432
1432
|
resolvedPath,
|
|
1433
1433
|
rootRealDir
|
|
1434
1434
|
}),
|
|
1435
|
-
parseJson: (raw) =>
|
|
1435
|
+
parseJson: (raw) => json5.parse(raw)
|
|
1436
1436
|
};
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -1489,14 +1489,14 @@ function readLoggingConfig() {
|
|
|
1489
1489
|
try {
|
|
1490
1490
|
if (!fs.existsSync(configPath)) return;
|
|
1491
1491
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
1492
|
-
const resolvedIncludes = resolveConfigIncludes(
|
|
1492
|
+
const resolvedIncludes = resolveConfigIncludes(json5.parse(raw), configPath, {
|
|
1493
1493
|
readFile: (candidate) => fs.readFileSync(candidate, "utf-8"),
|
|
1494
1494
|
readFileWithGuards: ({ includePath, resolvedPath, rootRealDir }) => readConfigIncludeFileWithGuards({
|
|
1495
1495
|
includePath,
|
|
1496
1496
|
resolvedPath,
|
|
1497
1497
|
rootRealDir
|
|
1498
1498
|
}),
|
|
1499
|
-
parseJson: (includeRaw) =>
|
|
1499
|
+
parseJson: (includeRaw) => json5.parse(includeRaw)
|
|
1500
1500
|
});
|
|
1501
1501
|
if (resolvedIncludes && typeof resolvedIncludes === "object" && "env" in resolvedIncludes) applyConfigEnvVars(resolvedIncludes);
|
|
1502
1502
|
const resolvedConfig = resolveConfigEnvVars(resolvedIncludes);
|
|
@@ -14858,7 +14858,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
14858
14858
|
function normalizeDeps(overrides = {}) {
|
|
14859
14859
|
return {
|
|
14860
14860
|
fs: overrides.fs ?? fs,
|
|
14861
|
-
json5: overrides.json5 ??
|
|
14861
|
+
json5: overrides.json5 ?? json5,
|
|
14862
14862
|
env: overrides.env ?? process.env,
|
|
14863
14863
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
14864
14864
|
configPath: overrides.configPath ?? "",
|
|
@@ -14869,11 +14869,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
14869
14869
|
if (env !== process.env) return;
|
|
14870
14870
|
loadDotEnv({ quiet: true });
|
|
14871
14871
|
}
|
|
14872
|
-
function parseConfigJson5(raw, json5 =
|
|
14872
|
+
function parseConfigJson5(raw, json5$1 = json5) {
|
|
14873
14873
|
try {
|
|
14874
14874
|
return {
|
|
14875
14875
|
ok: true,
|
|
14876
|
-
parsed: json5.parse(raw)
|
|
14876
|
+
parsed: json5$1.parse(raw)
|
|
14877
14877
|
};
|
|
14878
14878
|
} catch (err) {
|
|
14879
14879
|
return {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { L as normalizeAccountId, R as normalizeOptionalAccountId } from "./workspace-
|
|
5
|
-
import { An as parseInlineDirectives, Br as getChannelDock, Gt as getActivePluginRegistry, Hn as appendAssistantMessageToSessionTranscript, Lr as getChannelPlugin, Un as resolveMirroredTranscriptText, qt as getActivePluginRegistryVersion, zr as normalizeChannelId } from "./model-selection-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import { L as normalizeAccountId, R as normalizeOptionalAccountId } from "./workspace-B707AGIc.js";
|
|
5
|
+
import { An as parseInlineDirectives, Br as getChannelDock, Gt as getActivePluginRegistry, Hn as appendAssistantMessageToSessionTranscript, Lr as getChannelPlugin, Un as resolveMirroredTranscriptText, qt as getActivePluginRegistryVersion, zr as normalizeChannelId } from "./model-selection-CdZITU0t.js";
|
|
6
6
|
import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
|
|
7
|
-
import { d as resolveOutboundSessionId, f as getGlobalHookRunner, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-
|
|
8
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
9
|
-
import { h as hasErrnoCode } from "./proxy-env-
|
|
10
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
11
|
-
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-
|
|
12
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
13
|
-
import { t as parseReplyDirectives } from "./reply-directives-
|
|
14
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
7
|
+
import { d as resolveOutboundSessionId, f as getGlobalHookRunner, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-RBQbGzGm.js";
|
|
8
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-BYLOFsUc.js";
|
|
9
|
+
import { h as hasErrnoCode } from "./proxy-env-CzGKpJY_.js";
|
|
10
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-BoHKSk-O.js";
|
|
11
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-BhntPUH_.js";
|
|
12
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Dd7jV1JF.js";
|
|
13
|
+
import { t as parseReplyDirectives } from "./reply-directives-DGITtNUL.js";
|
|
14
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-Dq8ChBfS.js";
|
|
15
15
|
import path from "node:path";
|
|
16
|
-
import
|
|
16
|
+
import syncFs from "node:fs";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
19
|
//#region src/infra/outbound/target-normalization.ts
|
|
@@ -304,11 +304,11 @@ function resolveFailedDir(stateDir) {
|
|
|
304
304
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
305
305
|
async function ensureQueueDir(stateDir) {
|
|
306
306
|
const queueDir = resolveQueueDir(stateDir);
|
|
307
|
-
await
|
|
307
|
+
await syncFs.promises.mkdir(queueDir, {
|
|
308
308
|
recursive: true,
|
|
309
309
|
mode: 448
|
|
310
310
|
});
|
|
311
|
-
await
|
|
311
|
+
await syncFs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
312
312
|
recursive: true,
|
|
313
313
|
mode: 448
|
|
314
314
|
});
|
|
@@ -338,18 +338,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
338
338
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
339
339
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
340
340
|
const json = JSON.stringify(entry, null, 2);
|
|
341
|
-
await
|
|
341
|
+
await syncFs.promises.writeFile(tmp, json, {
|
|
342
342
|
encoding: "utf-8",
|
|
343
343
|
mode: 384
|
|
344
344
|
});
|
|
345
|
-
await
|
|
345
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
346
346
|
return id;
|
|
347
347
|
}
|
|
348
348
|
/** Remove a successfully delivered entry from the queue. */
|
|
349
349
|
async function ackDelivery(id, stateDir) {
|
|
350
350
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
351
351
|
try {
|
|
352
|
-
await
|
|
352
|
+
await syncFs.promises.unlink(filePath);
|
|
353
353
|
} catch (err) {
|
|
354
354
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
355
355
|
}
|
|
@@ -376,22 +376,22 @@ async function failDelivery(id, error, stateDir) {
|
|
|
376
376
|
return serializeByKey(filePath, () => failDeliveryWrite(filePath, error));
|
|
377
377
|
}
|
|
378
378
|
async function failDeliveryWrite(filePath, error) {
|
|
379
|
-
const raw = await
|
|
379
|
+
const raw = await syncFs.promises.readFile(filePath, "utf-8");
|
|
380
380
|
const entry = JSON.parse(raw);
|
|
381
381
|
entry.retryCount += 1;
|
|
382
382
|
entry.lastAttemptAt = Date.now();
|
|
383
383
|
entry.lastError = error;
|
|
384
384
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
385
|
-
await
|
|
385
|
+
await syncFs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
386
386
|
encoding: "utf-8",
|
|
387
387
|
mode: 384
|
|
388
388
|
});
|
|
389
|
-
await
|
|
389
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
390
390
|
}
|
|
391
391
|
/** Read a queue entry raw; null when the file is missing. */
|
|
392
392
|
async function readEntryFile(filePath) {
|
|
393
393
|
try {
|
|
394
|
-
const raw = await
|
|
394
|
+
const raw = await syncFs.promises.readFile(filePath, "utf-8");
|
|
395
395
|
return JSON.parse(raw);
|
|
396
396
|
} catch (err) {
|
|
397
397
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
@@ -413,11 +413,11 @@ function markDeliveryPhase(filePath, transition) {
|
|
|
413
413
|
const next = transition(entry);
|
|
414
414
|
if (!next.advanced) return next;
|
|
415
415
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
416
|
-
await
|
|
416
|
+
await syncFs.promises.writeFile(tmp, JSON.stringify(next.entry, null, 2), {
|
|
417
417
|
encoding: "utf-8",
|
|
418
418
|
mode: 384
|
|
419
419
|
});
|
|
420
|
-
await
|
|
420
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
421
421
|
return next;
|
|
422
422
|
});
|
|
423
423
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { k as resolveAgentIdFromSessionKey } from "./workspace-
|
|
4
|
-
import { U as loadConfig, pr as emitDiagnosticEvent } from "./model-selection-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { k as resolveAgentIdFromSessionKey } from "./workspace-B707AGIc.js";
|
|
4
|
+
import { U as loadConfig, pr as emitDiagnosticEvent } from "./model-selection-CdZITU0t.js";
|
|
5
5
|
import { a as recordSessionChannelCorrelation, i as pruneDiagnosticSessionStates, o as recordTurnDuration, r as getDiagnosticSessionState, s as redactChannelCorrelation, t as diagnosticSessionStates } from "./diagnostic-session-state-Bnyx-w0F.js";
|
|
6
6
|
import { t as redactIdentifier } from "./redact-identifier-WYElxwAZ.js";
|
|
7
|
-
import { t as redactSensitiveText } from "./redact-
|
|
7
|
+
import { t as redactSensitiveText } from "./redact-DZne_lu8.js";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
9
9
|
|
|
10
10
|
//#region src/agents/command-poll-backoff.ts
|
|
@@ -836,7 +836,7 @@ function startDiagnosticHeartbeat(config) {
|
|
|
836
836
|
if (ageMs > stuckSessionAbortMs && state.queueDepth > 0 && !state.capturedEnd && !state.abortDispatched && state.sessionId) {
|
|
837
837
|
state.abortDispatched = true;
|
|
838
838
|
diag.warn(`stuck-session abort: sessionId=${state.sessionId} progressAge=${Math.round(ageMs / 1e3)}s threshold=${Math.round(stuckSessionAbortMs / 1e3)}s queueDepth=${state.queueDepth}`);
|
|
839
|
-
import("./runs-
|
|
839
|
+
import("./runs-DGWNXyKA.js").then((n) => n.c).then(({ abortEmbeddedPiRun }) => {
|
|
840
840
|
if (state.sessionId && state.abortDispatched) abortEmbeddedPiRun(state.sessionId);
|
|
841
841
|
}).catch((err) => {
|
|
842
842
|
diag.warn(`stuck-session abort import failed: ${String(err)}`);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import { U as loadConfig } from "./model-selection-
|
|
5
|
-
import { t as redactSensitiveText } from "./redact-
|
|
6
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
7
|
-
import { f as formatErrorChainMessage } from "./proxy-env-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-DxKPMu8w.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import { U as loadConfig } from "./model-selection-CdZITU0t.js";
|
|
5
|
+
import { t as redactSensitiveText } from "./redact-DZne_lu8.js";
|
|
6
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-D_fm2PuR.js";
|
|
7
|
+
import { f as formatErrorChainMessage } from "./proxy-env-CzGKpJY_.js";
|
|
8
8
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CNiEVKpL.js";
|
|
9
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-TJjLK0FV.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
|
|
12
12
|
//#region src/media/local-roots.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as logWarn, r as logInfo } from "./logger-
|
|
2
|
-
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { i as logWarn, r as logInfo } from "./logger-a0-zAY5a.js";
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-CzGKpJY_.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-BfPtlUW6.js";
|
|
4
|
-
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-DCI0KuH6.js";
|
|
5
5
|
import { EnvHttpProxyAgent, FormData, fetch } from "undici";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/net/form-data.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-
|
|
1
|
+
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-vLJrYADD.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import syncFs from "node:fs";
|
|
4
|
+
import json5 from "json5";
|
|
5
5
|
import YAML from "yaml";
|
|
6
6
|
|
|
7
7
|
//#region src/shared/config-eval.ts
|
|
@@ -92,7 +92,7 @@ function hasBinary(bin) {
|
|
|
92
92
|
for (const part of parts) for (const ext of extensions) {
|
|
93
93
|
const candidate = path.join(part, bin + ext);
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
96
96
|
hasBinaryCache.set(bin, true);
|
|
97
97
|
return true;
|
|
98
98
|
} catch {}
|
|
@@ -258,7 +258,7 @@ function resolveOpenClawManifestBlock(params) {
|
|
|
258
258
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
259
259
|
if (!raw) return;
|
|
260
260
|
try {
|
|
261
|
-
const parsed =
|
|
261
|
+
const parsed = json5.parse(raw);
|
|
262
262
|
if (!parsed || typeof parsed !== "object") return;
|
|
263
263
|
return readManifestNamespace(parsed);
|
|
264
264
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as expandHomePrefix } from "./paths-
|
|
2
|
-
import { B as hasNodeErrorCode, H as isPathInside, I as sameFileIdentity, U as isSymlinkOpenError, V as isNotFoundPathError } from "./subsystem-
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { l as expandHomePrefix } from "./paths-C6TxBCvO.js";
|
|
2
|
+
import { B as hasNodeErrorCode, H as isPathInside, I as sameFileIdentity, U as isSymlinkOpenError, V as isNotFoundPathError } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { i as logWarn } from "./logger-a0-zAY5a.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-Zj-NwKjV.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/json-file.ts
|
|
7
7
|
function loadJsonFile(pathname) {
|
|
8
8
|
try {
|
|
9
|
-
if (!
|
|
10
|
-
const raw =
|
|
9
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
10
|
+
const raw = syncFs.readFileSync(pathname, "utf8");
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
} catch {
|
|
13
13
|
return;
|
|
@@ -15,12 +15,12 @@ function loadJsonFile(pathname) {
|
|
|
15
15
|
}
|
|
16
16
|
function saveJsonFile(pathname, data) {
|
|
17
17
|
const dir = path.dirname(pathname);
|
|
18
|
-
if (!
|
|
18
|
+
if (!syncFs.existsSync(dir)) syncFs.mkdirSync(dir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
mode: 448
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
23
|
+
syncFs.chmodSync(pathname, 384);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as logVerbose, h as shouldLogVerbose, st as resolveUserPath } from "./subsystem-
|
|
2
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
3
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
4
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
5
|
-
import { a as chunkText } from "./chunk-
|
|
1
|
+
import { f as logVerbose, h as shouldLogVerbose, st as resolveUserPath } from "./subsystem-CPYnUTN4.js";
|
|
2
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-D_fm2PuR.js";
|
|
3
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-LRpYbPaA.js";
|
|
4
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-BoHKSk-O.js";
|
|
5
|
+
import { a as chunkText } from "./chunk-BhntPUH_.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|