openclaw-cortex 3.0.0 → 3.0.1
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/README.md +7 -4
- package/dist/{accounts-6btx_LVr.js → accounts-B3MIBUxY.js} +14 -14
- package/dist/{accounts-Cg6z7lKw.js → accounts-Doecg-Pe.js} +1 -1
- package/dist/{accounts-BOYxuJ9C.js → accounts-X5YWm9b7.js} +1 -1
- package/dist/{active-listener-BhL5jMd9.js → active-listener-DI-5r3l7.js} +1 -1
- package/dist/{agent-scope-BLYwrEEA.js → agent-scope-DgSbJ6PA.js} +3 -3
- package/dist/{audio-preflight-CJMYPxgz.js → audio-preflight-CketII1D.js} +4 -4
- package/dist/{audio-preflight-DrLN-6C1.js → audio-preflight-EwgV_X7F.js} +30 -30
- package/dist/{bindings-DWtXcdc8.js → bindings-ZzFXeSUF.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-LT3oBvO7.js → channel-activity-By7mU0Ld.js} +1 -1
- package/dist/{chrome-jiKls1lm.js → chrome-7PNldBIY.js} +7 -7
- package/dist/{chrome-DBmAGMTR.js → chrome-BwkFC1Kp.js} +20 -20
- package/dist/{chunk-TRVny4T1.js → chunk-DoTNWpve.js} +1 -1
- package/dist/{command-format-D1Crrvey.js → command-format--87BbJbN.js} +1 -1
- package/dist/{commands-registry-B6FYKIxi.js → commands-registry-C1TEcrP2.js} +3 -3
- package/dist/{plugin-sdk/common-CCPGi5xr.js → common-B7QyEEac.js} +2 -2
- package/dist/{config-qfEsodS7.js → config-DnorUs_i.js} +12 -12
- package/dist/control-ui/_app/immutable/chunks/CB9985Nn.js +1 -0
- package/dist/control-ui/_app/immutable/entry/{app.BJyZBQUh.js → app.gjdkTR50.js} +2 -2
- package/dist/control-ui/_app/immutable/entry/start.B5atPhn7.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{0.CJT0Xxdx.js → 0.DZBLEJTo.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{1.BUWlSfxE.js → 1.El_L1H2f.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{14.DOWskc3T.js → 14.ApTZ29I1.js} +1 -1
- package/dist/control-ui/_app/version.json +1 -1
- package/dist/control-ui/index.html +6 -6
- package/dist/{deliver-DXKF_Nu0.js → deliver-CFSxoz2_.js} +1 -1
- package/dist/{deliver-miQ_b14_.js → deliver-DotE8uPe.js} +20 -20
- package/dist/{diagnostic-CoT2YQH4.js → diagnostic-D8zLma7p.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-BT4H5SZG.js → frontmatter-D07uaEbx.js} +2 -2
- package/dist/{fs-safe-B8-WkEXM.js → fs-safe-DD7nl1O-.js} +1 -1
- package/dist/{gemini-auth-B32PFjFy.js → gemini-auth-prEOLMZr.js} +1 -1
- package/dist/{github-copilot-token-BQ98eazZ.js → github-copilot-token-Bu5FPDAY.js} +7 -7
- package/dist/{image-Bnzq6Ut_.js → image-D-wXbQEl.js} +4 -4
- package/dist/{image-DChVqMFC.js → image-DafeVSso.js} +1 -1
- package/dist/{ir-CRTCIHIG.js → ir-D4AIeS28.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-tMzVEQD2.js → local-roots-B9HIz81e.js} +5 -5
- package/dist/{login-DGwFcNWz.js → login-CHBdSags.js} +7 -7
- package/dist/{login-qr-IWLbGrDP.js → login-qr-Ch834jRc.js} +12 -12
- package/dist/{manager-KxfmY55A.js → manager-B8MDZuUH.js} +13 -13
- package/dist/{manifest-registry-Dovhiqzt.js → manifest-registry-CpMEl7vN.js} +19 -19
- package/dist/{markdown-tables-DO9qAEKa.js → markdown-tables-1wSxjPR8.js} +1 -1
- package/dist/{message-channel-BDlvrUZF.js → message-channel-CW_Jr8qx.js} +1 -1
- package/dist/{model-auth-Dm1uOof6.js → model-auth-BlsavKKY.js} +9 -9
- package/dist/{normalize-D5KCCgTX.js → normalize-DsdAOxp0.js} +9 -9
- package/dist/{outbound-CthSjSDV.js → outbound-BI27cc0j.js} +7 -7
- package/dist/{outbound-attachment-BChLBLPg.js → outbound-attachment-Ba6Ea-zP.js} +2 -2
- package/dist/{paths-gnW-md4M.js → paths-B4zRLe0K.js} +1 -1
- package/dist/{paths-CyR9Pa1R.js → paths-CkkDESQ2.js} +5 -5
- package/dist/{pi-auth-json-mTixxeol.js → pi-auth-json-gQa8k4FW.js} +8 -8
- package/dist/{pi-embedded-D0HD9Cfc.js → pi-embedded-DzV18Sl5.js} +158 -158
- package/dist/{pi-embedded-DPsT4Vb4.js → pi-embedded-Ig1YOX5t.js} +16 -16
- package/dist/{pi-embedded-helpers-f1wpGfIT.js → pi-embedded-helpers-B4V6-8TA.js} +52 -52
- package/dist/{pi-embedded-helpers--8pQ_5Ix.js → pi-embedded-helpers-C-3FQnQz.js} +4 -4
- package/dist/plugin-sdk/{accounts-uAqOguyH.js → accounts-LxMkgia0.js} +1 -1
- package/dist/plugin-sdk/{accounts-b1Cok6r_.js → accounts-iN-dbgw4.js} +3 -3
- package/dist/plugin-sdk/{accounts-CRs7kbLB.js → accounts-vV5Gfd26.js} +1 -1
- package/dist/plugin-sdk/{active-listener-BdVTYHTN.js → active-listener-Bh0LXjEI.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-OWMdRegz.js → agent-scope-BS_vck4W.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-DedcgBOR.js → api-key-rotation-LkecAWT_.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-EYVIo5wC.js → audio-preflight-Bs1SkEb1.js} +25 -25
- package/dist/plugin-sdk/{bindings-LROfNV1W.js → bindings-CTCkMENc.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-DHI8R5Xg.js → channel-activity-PV3vhwo2.js} +1 -1
- package/dist/plugin-sdk/{channel-web-CGp1_ZH4.js → channel-web-C1Hsjdgf.js} +22 -22
- package/dist/plugin-sdk/{chrome-BS8LYp6z.js → chrome-cWvSiZw3.js} +3 -3
- package/dist/plugin-sdk/{chunk-C9J4kyVw.js → chunk-CyOBR4uk.js} +1 -1
- package/dist/plugin-sdk/{command-format-BTciq6Gg.js → command-format-C5kdEGEu.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-pHxVP_Zd.js → commands-registry-Bvksrm0n.js} +3 -3
- package/dist/{common-y9ALHdVZ.js → plugin-sdk/common-CJo4CK5_.js} +2 -2
- package/dist/plugin-sdk/{config-DemNgb7Z.js → config-B8Nc1zrG.js} +9 -9
- package/dist/plugin-sdk/{deliver-BCvqh6o3.js → deliver-Dut_1pt2.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-oBxO5N68.js → diagnostic-DFXnVf2I.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-CGcLaY9D.js → fs-safe-CdpuSWry.js} +1 -1
- package/dist/plugin-sdk/{image-BHSeZfna.js → image-B3tSrFDE.js} +4 -4
- package/dist/plugin-sdk/index.js +52 -52
- package/dist/plugin-sdk/{ir-JSGKj1e6.js → ir-05vuco_v.js} +4 -4
- package/dist/plugin-sdk/{local-roots-jpNoUngc.js → local-roots-DlmKIABh.js} +3 -3
- package/dist/plugin-sdk/{login-Ckh0Yz4j.js → login-_t6d0RBi.js} +7 -7
- package/dist/plugin-sdk/{login-qr-DRY27T-V.js → login-qr-Czq6nBnB.js} +9 -9
- package/dist/plugin-sdk/{manager-B9XMF8DU.js → manager-DEOMAxd_.js} +8 -8
- package/dist/plugin-sdk/{manifest-registry-Lzj-fZNH.js → manifest-registry-BgkX6ON4.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-CgnPuqk-.js → markdown-tables-FF81O4MP.js} +1 -1
- package/dist/plugin-sdk/{message-channel-C3OrO29D.js → message-channel-DxNExIdv.js} +1 -1
- package/dist/plugin-sdk/{model-selection-BQiSfqzh.js → model-selection-Bj-E4zbc.js} +4 -4
- package/dist/plugin-sdk/{normalize-raRH8X3d.js → normalize-DWmWs1Oq.js} +4 -4
- package/dist/plugin-sdk/{outbound-CtRrsxZT.js → outbound-D2-05wUl.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-BD9q-xgD.js → outbound-attachment-DmbQx_Vk.js} +2 -2
- package/dist/plugin-sdk/{pi-auth-json-BlIDGSl5.js → pi-auth-json-D-qvsSpX.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-0qu1zxwF.js → pi-embedded-helpers-C1u6XyK5.js} +17 -17
- package/dist/plugin-sdk/{plugins-BJciHbYr.js → plugins-0PB0IWJL.js} +3 -3
- package/dist/plugin-sdk/{pw-ai-DkUDisr8.js → pw-ai-BIyeKPJF.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-kPD4Wyie.js → qmd-manager-DeQxerRp.js} +4 -4
- package/dist/plugin-sdk/{registry-C8pj8ctW.js → registry-BECEtj9n.js} +2 -2
- package/dist/{replies-BJH3pQXJ.js → plugin-sdk/replies-DnGHvUeV.js} +3 -3
- package/dist/plugin-sdk/{reply-BUzGHOJ7.js → reply-Due6Dl-a.js} +78 -78
- package/dist/plugin-sdk/{reply-prefix-YUOHz1rF.js → reply-prefix-UgReuQSG.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-DudlMKs4.js → resolve-route-BaFHJbum.js} +3 -3
- package/dist/plugin-sdk/{retry-B8Oq5mgi.js → retry-Bkj1k1me.js} +1 -1
- package/dist/plugin-sdk/{runner-BkD3LLSl.js → runner-Bq1wBell.js} +9 -9
- package/dist/plugin-sdk/{send-CpfmIaxP.js → send-By-dm-fT.js} +11 -11
- package/dist/plugin-sdk/{send-A_uouj00.js → send-D4HKCCvV.js} +7 -7
- package/dist/plugin-sdk/{send-Di1hHvf2.js → send-M99nJHP9.js} +11 -11
- package/dist/plugin-sdk/{send-9i1KJYhJ.js → send-MrY4gJ_w.js} +7 -7
- package/dist/plugin-sdk/{send-DREpPboJ.js → send-NUKqMNZh.js} +6 -6
- package/dist/plugin-sdk/{session-CpS-Mhnp.js → session-DGLRioDC.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-CTB7AZXn.js → skill-commands-Cw-IRPUz.js} +5 -5
- package/dist/plugin-sdk/{skills-BCD1hFBZ.js → skills-D0-IpJne.js} +7 -7
- package/dist/plugin-sdk/{sqlite-Yn48izJ_.js → sqlite-DtIiUWZr.js} +1 -1
- package/dist/plugin-sdk/{store-BJRhX9Bi.js → store-BcTI1iBS.js} +2 -2
- package/dist/plugin-sdk/{subsystem-BfLMZ8kW.js → subsystem-Ck27y_6W.js} +1 -1
- package/dist/plugin-sdk/{tables-D5aPNTF6.js → tables-B6ajREI6.js} +1 -1
- package/dist/plugin-sdk/{thinking-BACprzA0.js → thinking-D81fexfE.js} +5 -5
- package/dist/plugin-sdk/{tokens-D1LxPszt.js → tokens-B6GWdF_0.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-CYSptBsl.js → tool-loop-detection-CbPwu1_R.js} +2 -2
- package/dist/plugin-sdk/web-BfmMxgKj.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-CGuheX42.js → whatsapp-actions-B8IYO5sc.js} +20 -20
- package/dist/{plugins-CJYXNO4s.js → plugins-CLJ0iOl0.js} +1 -1
- package/dist/{pw-ai-D6PxL0UG.js → pw-ai-CNp2t_EO.js} +1 -1
- package/dist/{pw-ai-BJE3mkCf.js → pw-ai-Db7y7La-.js} +11 -11
- package/dist/{qmd-manager-4-VYqNeC.js → qmd-manager-3KfZrilm.js} +7 -7
- package/dist/{registry-BmY4gNy6.js → registry-CXBAJGac.js} +17 -17
- package/dist/{plugin-sdk/replies-0BFlZXJ5.js → replies-C3QP8Fs6.js} +3 -3
- package/dist/{reply-prefix-BaCBHwi7.js → reply-prefix-DhPco1Lk.js} +1 -1
- package/dist/{resolve-route-ClURVRZM.js → resolve-route-BQouUsWd.js} +4 -4
- package/dist/{retry-BxB_D6Pn.js → retry-BwVcNQB0.js} +1 -1
- package/dist/{runner-CRUcM4a1.js → runner-BN1T_Ne4.js} +1 -1
- package/dist/{runner-BmfMAciA.js → runner-cxIcSp2C.js} +9 -9
- package/dist/{send-DvBDdcQr.js → send-2sCLgOVr.js} +6 -6
- package/dist/{send-D6tzL2Tv.js → send-3ea6pkzH.js} +10 -10
- package/dist/{send-BNdapfcg.js → send-ByKJYHWg.js} +19 -19
- package/dist/{send-C1F31aYA.js → send-CPUILfmc.js} +6 -6
- package/dist/{send-B6BrpfcR.js → send-DNUVC_tJ.js} +7 -7
- package/dist/{session-BH5NTora.js → session-C0_85REJ.js} +8 -8
- package/dist/{skill-commands-DVss6_wi.js → skill-commands-IxgOIsIT.js} +9 -9
- package/dist/{skills-Ci_2Mah4.js → skills-CwAZv64I.js} +21 -21
- package/dist/{sqlite-DJh2xLr6.js → sqlite-BY19hYgD.js} +4 -4
- package/dist/{store-Be0QxLPZ.js → store-CDqpQLub.js} +2 -2
- package/dist/{subsystem-B5g771Td.js → subsystem-BFaeHXzD.js} +1 -1
- package/dist/{tables-xDr7OSBa.js → tables-z72GfOJY.js} +1 -1
- package/dist/{thinking-wiChP3LK.js → thinking-BzWAkN2b.js} +5 -5
- package/dist/{tokens-BRx7o_ZS.js → tokens-CC-Nd7t2.js} +1 -1
- package/dist/{tool-loop-detection-BjQsVGUc.js → tool-loop-detection-DDnbw1kC.js} +3 -3
- package/dist/{web-C0-NYLoG.js → web-CXDGlE3A.js} +57 -57
- package/dist/{web-QGqe0Uj4.js → web-ComVBhjb.js} +6 -6
- package/dist/{whatsapp-actions-CgowK4CW.js → whatsapp-actions-CLGSXEPl.js} +23 -23
- package/dist/{workspace-D9IzNnST.js → workspace-CGgFZdqw.js} +6 -6
- package/package.json +4 -2
- package/dist/control-ui/_app/immutable/chunks/BiSHrnLa.js +0 -1
- package/dist/control-ui/_app/immutable/entry/start.CWF4Qm2D.js +0 -1
- package/dist/plugin-sdk/web-DNugKZLo.js +0 -65
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-CgcjHuX_.js";
|
|
2
|
-
import { M as normalizeE164 } from "./registry-
|
|
3
|
-
import { m as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { M as normalizeE164 } from "./registry-CXBAJGac.js";
|
|
3
|
+
import { m as createAccountListHelpers } from "./accounts-B3MIBUxY.js";
|
|
4
4
|
import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
|
|
5
|
-
import { r as isTruthyEnvValue } from "./command-format
|
|
6
|
-
import { n as listBoundAccountIds, r as resolveDefaultAgentBoundAccountId } from "./bindings-
|
|
7
|
-
import
|
|
5
|
+
import { r as isTruthyEnvValue } from "./command-format--87BbJbN.js";
|
|
6
|
+
import { n as listBoundAccountIds, r as resolveDefaultAgentBoundAccountId } from "./bindings-ZzFXeSUF.js";
|
|
7
|
+
import fsSync from "node:fs";
|
|
8
8
|
|
|
9
9
|
//#region src/channels/plugins/account-action-gate.ts
|
|
10
10
|
function createAccountActionGate(params) {
|
|
@@ -186,7 +186,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
186
186
|
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
187
187
|
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
188
188
|
if (accountTokenFile) {
|
|
189
|
-
if (!
|
|
189
|
+
if (!fsSync.existsSync(accountTokenFile)) {
|
|
190
190
|
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
191
191
|
return {
|
|
192
192
|
token: "",
|
|
@@ -194,7 +194,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
try {
|
|
197
|
-
const token =
|
|
197
|
+
const token = fsSync.readFileSync(accountTokenFile, "utf-8").trim();
|
|
198
198
|
if (token) return {
|
|
199
199
|
token,
|
|
200
200
|
source: "tokenFile"
|
|
@@ -219,7 +219,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
219
219
|
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
220
220
|
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
221
221
|
if (tokenFile && allowEnv) {
|
|
222
|
-
if (!
|
|
222
|
+
if (!fsSync.existsSync(tokenFile)) {
|
|
223
223
|
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
224
224
|
return {
|
|
225
225
|
token: "",
|
|
@@ -227,7 +227,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
try {
|
|
230
|
-
const token =
|
|
230
|
+
const token = fsSync.readFileSync(tokenFile, "utf-8").trim();
|
|
231
231
|
if (token) return {
|
|
232
232
|
token,
|
|
233
233
|
source: "tokenFile"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
6
|
-
import { a as loadWebMedia } from "./ir-
|
|
2
|
+
import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-CXBAJGac.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BFaeHXzD.js";
|
|
4
|
+
import { n as loadConfig } from "./config-DnorUs_i.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-1wSxjPR8.js";
|
|
6
|
+
import { a as loadWebMedia } from "./ir-D4AIeS28.js";
|
|
7
7
|
import { n as normalizePollInput } from "./polls-BX3wB_EC.js";
|
|
8
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
9
|
-
import { n as requireActiveWebListener } from "./active-listener-
|
|
8
|
+
import { t as convertMarkdownTables } from "./tables-z72GfOJY.js";
|
|
9
|
+
import { n as requireActiveWebListener } from "./active-listener-DI-5r3l7.js";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
|
|
12
12
|
//#region src/markdown/whatsapp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as saveMediaBuffer } from "./store-
|
|
2
|
-
import { a as loadWebMedia } from "./ir-
|
|
1
|
+
import { r as saveMediaBuffer } from "./store-CDqpQLub.js";
|
|
2
|
+
import { a as loadWebMedia } from "./ir-D4AIeS28.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/outbound-attachment.ts
|
|
5
5
|
async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-
|
|
1
|
+
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-CkkDESQ2.js";
|
|
2
2
|
import { l as normalizeAgentId, n as DEFAULT_AGENT_ID } from "./session-key-CgcjHuX_.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import fsSync from "node:fs";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/home-dir.ts
|
|
6
6
|
function normalize(value) {
|
|
@@ -93,10 +93,10 @@ function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
|
|
|
93
93
|
if (override) return resolveUserPath(override, env, effectiveHomedir);
|
|
94
94
|
const newDir = newStateDir(effectiveHomedir);
|
|
95
95
|
const legacyDirs = legacyStateDirs(effectiveHomedir);
|
|
96
|
-
if (
|
|
96
|
+
if (fsSync.existsSync(newDir)) return newDir;
|
|
97
97
|
const existingLegacy = legacyDirs.find((dir) => {
|
|
98
98
|
try {
|
|
99
|
-
return
|
|
99
|
+
return fsSync.existsSync(dir);
|
|
100
100
|
} catch {
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
@@ -135,7 +135,7 @@ function resolveCanonicalConfigPath(env = process.env, stateDir = resolveStateDi
|
|
|
135
135
|
function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)) {
|
|
136
136
|
const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
|
|
137
137
|
try {
|
|
138
|
-
return
|
|
138
|
+
return fsSync.existsSync(candidate);
|
|
139
139
|
} catch {
|
|
140
140
|
return false;
|
|
141
141
|
}
|
|
@@ -152,7 +152,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
|
|
|
152
152
|
const stateOverride = env.OPENCLAW_STATE_DIR?.trim();
|
|
153
153
|
const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
|
|
154
154
|
try {
|
|
155
|
-
return
|
|
155
|
+
return fsSync.existsSync(candidate);
|
|
156
156
|
} catch {
|
|
157
157
|
return false;
|
|
158
158
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
1
|
+
import "./paths-CkkDESQ2.js";
|
|
2
|
+
import "./registry-CXBAJGac.js";
|
|
3
|
+
import "./agent-scope-DgSbJ6PA.js";
|
|
4
|
+
import "./subsystem-BFaeHXzD.js";
|
|
5
|
+
import "./workspace-CGgFZdqw.js";
|
|
6
6
|
import "./boolean-B8-BqKGQ.js";
|
|
7
|
-
import "./command-format
|
|
8
|
-
import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-
|
|
9
|
-
import "./github-copilot-token-
|
|
7
|
+
import "./command-format--87BbJbN.js";
|
|
8
|
+
import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-BlsavKKY.js";
|
|
9
|
+
import "./github-copilot-token-Bu5FPDAY.js";
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
|