@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,16 +1,16 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-C5E9gJhP.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
4
4
|
import { C as parseAgentSessionKey } from "./session-key-DgdmD4k7.js";
|
|
5
|
-
import "./utils-
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import "./logger-
|
|
8
|
-
import "./path-alias-guards-
|
|
9
|
-
import "./redact-
|
|
10
|
-
import { c as writeFileWithinRoot } from "./fs-safe-
|
|
5
|
+
import "./utils-D2oM4XHm.js";
|
|
6
|
+
import "./workspace-ZgWjBCAm.js";
|
|
7
|
+
import "./logger-C53B395N.js";
|
|
8
|
+
import "./path-alias-guards-It4BBRdm.js";
|
|
9
|
+
import "./redact-BXURioma.js";
|
|
10
|
+
import { c as writeFileWithinRoot } from "./fs-safe-BLpOReWZ.js";
|
|
11
11
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-CjNYeBcQ.js";
|
|
12
|
-
import "./paths-
|
|
13
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
12
|
+
import "./paths-CZ0nrg7g.js";
|
|
13
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-MI1dZ5Nj.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as runTasksWithConcurrency } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { t as redactSensitiveText } from "./redact-
|
|
4
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
1
|
+
import { t as runTasksWithConcurrency } from "./run-with-concurrency-C5E9gJhP.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { t as redactSensitiveText } from "./redact-BXURioma.js";
|
|
4
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-CZ0nrg7g.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import syncFs from "node:fs";
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/memory/fs-utils.ts
|
|
@@ -31,7 +31,7 @@ async function statRegularFile(absPath) {
|
|
|
31
31
|
//#region src/memory/internal.ts
|
|
32
32
|
function ensureDir(dir) {
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
syncFs.mkdirSync(dir, { recursive: true });
|
|
35
35
|
} catch {}
|
|
36
36
|
return dir;
|
|
37
37
|
}
|
|
@@ -112,13 +112,13 @@ import "./progress-DBV-o6Lq.js";
|
|
|
112
112
|
import "./server-lifecycle-DzdQa-qA.js";
|
|
113
113
|
import "./stagger-RKJcYQbS.js";
|
|
114
114
|
import "./runtime-guard-CxmMRXpH.js";
|
|
115
|
-
import "./program-context-
|
|
115
|
+
import "./program-context-CqbW3Ozx.js";
|
|
116
116
|
import "./skills-status-B58W_wKv.js";
|
|
117
117
|
import { t as copyToClipboard } from "./clipboard-CDXoMxwB.js";
|
|
118
118
|
import "./note-CaYZpgbP.js";
|
|
119
119
|
import "./issue-format-DoB2_lFD.js";
|
|
120
120
|
import "./channels-status-issues-BYk4ZEFs.js";
|
|
121
|
-
import "./completion-cli-
|
|
121
|
+
import "./completion-cli-rNt-qwSw.js";
|
|
122
122
|
import "./daemon-install-helpers-DEnwl2jx.js";
|
|
123
123
|
import "./systemd-D5fH7kIo.js";
|
|
124
124
|
import { t as resolveGatewayService } from "./service-EtPC23pr.js";
|
|
@@ -126,15 +126,15 @@ import "./systemd-hints-CzTSOI5g.js";
|
|
|
126
126
|
import "./diagnostics-DoUuiJKe.js";
|
|
127
127
|
import "./health-DL7YyJbv.js";
|
|
128
128
|
import "./control-ui-assets-C-HAB1VB.js";
|
|
129
|
-
import "./channel-account-context-
|
|
130
|
-
import "./update-runner-
|
|
129
|
+
import "./channel-account-context-DptVE7IR.js";
|
|
130
|
+
import "./update-runner-BACLkDvl.js";
|
|
131
131
|
import "./logging-C9DZ91kl.js";
|
|
132
132
|
import "./doctor-config-flow-Ca3UIhdu.js";
|
|
133
133
|
import "./oauth-tls-preflight-B0lQ1X82.js";
|
|
134
134
|
import "./systemd-linger-BOo3XOLT.js";
|
|
135
135
|
import "./health-format-Dbc6Wesr.js";
|
|
136
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
137
|
-
import "./doctor-completion-
|
|
136
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-CDVjf5nV.js";
|
|
137
|
+
import "./doctor-completion-BAJbdzsD.js";
|
|
138
138
|
import path from "node:path";
|
|
139
139
|
import fs from "node:fs/promises";
|
|
140
140
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -117,9 +117,9 @@ import { t as copyToClipboard } from "./clipboard-CP82SC7k.js";
|
|
|
117
117
|
import "./note-51HX9rr7.js";
|
|
118
118
|
import "./issue-format-D_dmhPpa.js";
|
|
119
119
|
import "./channels-status-issues-e73oAXc5.js";
|
|
120
|
-
import "./completion-cli-
|
|
121
|
-
import "./register.subclis-
|
|
122
|
-
import "./command-registry-
|
|
120
|
+
import "./completion-cli-BxbU_lYn.js";
|
|
121
|
+
import "./register.subclis-Cjl06Zry.js";
|
|
122
|
+
import "./command-registry-BEFHpoCL.js";
|
|
123
123
|
import "./program-context-BwKunb5X.js";
|
|
124
124
|
import "./daemon-install-helpers-DoeVkj6M.js";
|
|
125
125
|
import "./runtime-guard-FQfkfkx0.js";
|
|
@@ -129,15 +129,15 @@ import "./systemd-hints-D9XaooZC.js";
|
|
|
129
129
|
import "./diagnostics-B9N9Gclp.js";
|
|
130
130
|
import "./health-DD6PJgN8.js";
|
|
131
131
|
import "./control-ui-assets-C08JRwwL.js";
|
|
132
|
-
import "./channel-account-context-
|
|
133
|
-
import "./update-runner-
|
|
132
|
+
import "./channel-account-context-BAivtK8t.js";
|
|
133
|
+
import "./update-runner-D7HCCtTd.js";
|
|
134
134
|
import "./logging-4zSchJ5n.js";
|
|
135
135
|
import "./doctor-config-flow-CN_hFkSO.js";
|
|
136
136
|
import "./oauth-tls-preflight-gumxl5c_.js";
|
|
137
137
|
import "./systemd-linger-SLVqtYjz.js";
|
|
138
138
|
import "./health-format-GTeknL_T.js";
|
|
139
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
140
|
-
import "./doctor-completion
|
|
139
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-4VXtaC_Y.js";
|
|
140
|
+
import "./doctor-completion--S9fsNQo.js";
|
|
141
141
|
import path from "node:path";
|
|
142
142
|
import fsPromises from "node:fs/promises";
|
|
143
143
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -41,11 +41,11 @@ import "./runtime-guard-CxmMRXpH.js";
|
|
|
41
41
|
import "./note-CaYZpgbP.js";
|
|
42
42
|
import "./clack-prompter-BlGLxxZu.js";
|
|
43
43
|
import "./onboarding.secret-input-CcXojTI0.js";
|
|
44
|
-
import "./onboarding-
|
|
44
|
+
import "./onboarding-BjkMcLV3.js";
|
|
45
45
|
import "./logging-C9DZ91kl.js";
|
|
46
46
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-Bjhg0RRG.js";
|
|
47
47
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-_tdr--R5.js";
|
|
48
|
-
import { t as onboardCommand } from "./onboard-
|
|
48
|
+
import { t as onboardCommand } from "./onboard-BgQUk8KO.js";
|
|
49
49
|
|
|
50
50
|
//#region src/cli/program/register.onboard.ts
|
|
51
51
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -41,11 +41,11 @@ import "./note-51HX9rr7.js";
|
|
|
41
41
|
import "./clack-prompter-C4bd12RJ.js";
|
|
42
42
|
import "./runtime-guard-FQfkfkx0.js";
|
|
43
43
|
import "./onboarding.secret-input-B92nv1e5.js";
|
|
44
|
-
import "./onboarding-
|
|
44
|
+
import "./onboarding-Dl2vyZrH.js";
|
|
45
45
|
import "./logging-4zSchJ5n.js";
|
|
46
46
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-BlYkJpb7.js";
|
|
47
47
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-CzAEYHvu.js";
|
|
48
|
-
import { t as onboardCommand } from "./onboard-
|
|
48
|
+
import { t as onboardCommand } from "./onboard-CukHmJnb.js";
|
|
49
49
|
|
|
50
50
|
//#region src/cli/program/register.onboard.ts
|
|
51
51
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -42,9 +42,9 @@ import { t as hasExplicitOptions } from "./command-options-BVmaCunF.js";
|
|
|
42
42
|
import "./note-CaYZpgbP.js";
|
|
43
43
|
import "./clack-prompter-BlGLxxZu.js";
|
|
44
44
|
import "./onboarding.secret-input-CcXojTI0.js";
|
|
45
|
-
import "./onboarding-
|
|
45
|
+
import "./onboarding-BjkMcLV3.js";
|
|
46
46
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-C9DZ91kl.js";
|
|
47
|
-
import { t as onboardCommand } from "./onboard-
|
|
47
|
+
import { t as onboardCommand } from "./onboard-BgQUk8KO.js";
|
|
48
48
|
import JSON5 from "json5";
|
|
49
49
|
import fs from "node:fs/promises";
|
|
50
50
|
|
|
@@ -42,9 +42,9 @@ import "./note-51HX9rr7.js";
|
|
|
42
42
|
import "./clack-prompter-C4bd12RJ.js";
|
|
43
43
|
import "./runtime-guard-FQfkfkx0.js";
|
|
44
44
|
import "./onboarding.secret-input-B92nv1e5.js";
|
|
45
|
-
import "./onboarding-
|
|
45
|
+
import "./onboarding-Dl2vyZrH.js";
|
|
46
46
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-4zSchJ5n.js";
|
|
47
|
-
import { t as onboardCommand } from "./onboard-
|
|
47
|
+
import { t as onboardCommand } from "./onboard-CukHmJnb.js";
|
|
48
48
|
import JSON5 from "json5";
|
|
49
49
|
import fsPromises from "node:fs/promises";
|
|
50
50
|
|
|
@@ -122,12 +122,12 @@ import "./service-CC8D6AOn.js";
|
|
|
122
122
|
import "./diagnostics-B9N9Gclp.js";
|
|
123
123
|
import "./table-CRCMNso3.js";
|
|
124
124
|
import "./audit-B-SXg-Xk.js";
|
|
125
|
-
import { n as statusCommand } from "./status-
|
|
125
|
+
import { n as statusCommand } from "./status-B-T9Cvvn.js";
|
|
126
126
|
import { r as healthCommand } from "./health-DD6PJgN8.js";
|
|
127
|
-
import "./channel-account-context-
|
|
127
|
+
import "./channel-account-context-BAivtK8t.js";
|
|
128
128
|
import "./node-command-policy-CEkzpJ-E.js";
|
|
129
129
|
import "./node-service-DoeR9Tg_.js";
|
|
130
|
-
import "./status.update-
|
|
130
|
+
import "./status.update-mgzBYrgy.js";
|
|
131
131
|
import { a as SESSION_MODEL_PAD, c as formatSessionKeyCell, d as resolveSessionDisplayModel, f as toSessionDisplayRows, i as SESSION_KEY_PAD, l as formatSessionModelCell, o as formatSessionAgeCell, p as resolveSessionStoreTargetsOrExit, r as SESSION_AGE_PAD, s as formatSessionFlagsCell, t as sessionsCommand, u as resolveSessionDisplayDefaults } from "./sessions-eRTHXGkn.js";
|
|
132
132
|
import fs from "node:fs";
|
|
133
133
|
|
|
@@ -123,12 +123,12 @@ import "./service-EtPC23pr.js";
|
|
|
123
123
|
import "./diagnostics-DoUuiJKe.js";
|
|
124
124
|
import "./table-pWUK29AU.js";
|
|
125
125
|
import "./audit-ks5icq3f.js";
|
|
126
|
-
import { t as statusCommand } from "./status-
|
|
126
|
+
import { t as statusCommand } from "./status-XxtmLZrL.js";
|
|
127
127
|
import { r as healthCommand } from "./health-DL7YyJbv.js";
|
|
128
|
-
import "./channel-account-context-
|
|
128
|
+
import "./channel-account-context-DptVE7IR.js";
|
|
129
129
|
import "./node-command-policy-KWP9NeqA.js";
|
|
130
130
|
import "./node-service-CVTI28Kr.js";
|
|
131
|
-
import "./status.update-
|
|
131
|
+
import "./status.update-CY3ejLFL.js";
|
|
132
132
|
import fs from "node:fs";
|
|
133
133
|
|
|
134
134
|
//#region src/commands/session-store-targets.ts
|
|
@@ -65,7 +65,7 @@ const entries = [
|
|
|
65
65
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
66
66
|
hasSubcommands: true,
|
|
67
67
|
register: async (program) => {
|
|
68
|
-
(await import("./gateway-cli-
|
|
68
|
+
(await import("./gateway-cli-LhABh8fD.js")).registerGatewayCli(program);
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -269,7 +269,7 @@ const entries = [
|
|
|
269
269
|
description: "Update OpenClaw and inspect update channel status",
|
|
270
270
|
hasSubcommands: true,
|
|
271
271
|
register: async (program) => {
|
|
272
|
-
(await import("./update-cli-
|
|
272
|
+
(await import("./update-cli-CNBvXpVS.js")).registerUpdateCli(program);
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
{
|
|
@@ -277,7 +277,7 @@ const entries = [
|
|
|
277
277
|
description: "Generate shell completion script",
|
|
278
278
|
hasSubcommands: false,
|
|
279
279
|
register: async (program) => {
|
|
280
|
-
(await import("./completion-cli-
|
|
280
|
+
(await import("./completion-cli-BxbU_lYn.js").then((n) => n.n)).registerCompletionCli(program);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
];
|
|
@@ -152,7 +152,7 @@ const routeStatus = {
|
|
|
152
152
|
const verbose = getVerboseFlag(argv, { includeDebug: true });
|
|
153
153
|
const timeoutMs = getPositiveIntFlagValue(argv, "--timeout");
|
|
154
154
|
if (timeoutMs === null) return false;
|
|
155
|
-
const { statusCommand } = await import("./status-
|
|
155
|
+
const { statusCommand } = await import("./status-B-T9Cvvn.js").then((n) => n.t);
|
|
156
156
|
await statusCommand({
|
|
157
157
|
json,
|
|
158
158
|
deep,
|
|
@@ -401,7 +401,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
401
401
|
assertSupportedRuntime();
|
|
402
402
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
403
403
|
enableConsoleCapture();
|
|
404
|
-
const { buildProgram } = await import("./program-
|
|
404
|
+
const { buildProgram } = await import("./program-IR_GbPYL.js");
|
|
405
405
|
const program = buildProgram();
|
|
406
406
|
installUnhandledRejectionHandler();
|
|
407
407
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -414,10 +414,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
414
414
|
const { getProgramContext } = await import("./program-context-BwKunb5X.js").then((n) => n.n);
|
|
415
415
|
const ctx = getProgramContext(program);
|
|
416
416
|
if (ctx) {
|
|
417
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
417
|
+
const { registerCoreCliByName } = await import("./command-registry-BEFHpoCL.js").then((n) => n.t);
|
|
418
418
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
419
419
|
}
|
|
420
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
420
|
+
const { registerSubCliByName } = await import("./register.subclis-Cjl06Zry.js").then((n) => n.a);
|
|
421
421
|
await registerSubCliByName(program, primary);
|
|
422
422
|
}
|
|
423
423
|
if (!shouldSkipPluginCommandRegistration({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
3
3
|
import { C as parseAgentSessionKey, c as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey } from "./session-key-DgdmD4k7.js";
|
|
4
|
-
import { h as resolveUserPath } from "./utils-
|
|
5
|
-
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-
|
|
4
|
+
import { h as resolveUserPath } from "./utils-D2oM4XHm.js";
|
|
5
|
+
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-ZgWjBCAm.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/config/model-input.ts
|
|
@@ -0,0 +1,14 @@
|
|
|
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 "./accounts-CAjupeYV.js";
|
|
11
|
+
import "./session-DmXsj3JD.js";
|
|
12
|
+
import { t as loginWeb } from "./login-CHsCISh4.js";
|
|
13
|
+
|
|
14
|
+
export { loginWeb };
|
|
@@ -0,0 +1,23 @@
|
|
|
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 "./plugins-rc2l4VJe.js";
|
|
11
|
+
import "./accounts-CAjupeYV.js";
|
|
12
|
+
import "./image-ops-D7mq-4y1.js";
|
|
13
|
+
import "./path-alias-guards-It4BBRdm.js";
|
|
14
|
+
import "./fs-safe-BLpOReWZ.js";
|
|
15
|
+
import "./proxy-env-C2sbN0UU.js";
|
|
16
|
+
import "./fetch-_iocPLV2.js";
|
|
17
|
+
import "./fetch-guard-CiQUuV0r.js";
|
|
18
|
+
import "./ir-Dpg87zYv.js";
|
|
19
|
+
import "./render-BZdJrUxT.js";
|
|
20
|
+
import "./tables-XtcH-BaF.js";
|
|
21
|
+
import { n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./outbound-BZqL8UdJ.js";
|
|
22
|
+
|
|
23
|
+
export { sendMessageWhatsApp, sendPollWhatsApp };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
1
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
|
|
2
2
|
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DgdmD4k7.js";
|
|
3
|
-
import { S as retryAsync, X as loadConfig, x as resolveRetryConfig } from "./model-selection-
|
|
4
|
-
import { b as resolveDiscordAccount, x as normalizeDiscordToken } from "./plugins-
|
|
3
|
+
import { S as retryAsync, X as loadConfig, x as resolveRetryConfig } from "./model-selection-e9hodq0l.js";
|
|
4
|
+
import { b as resolveDiscordAccount, x as normalizeDiscordToken } from "./plugins-rc2l4VJe.js";
|
|
5
5
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CNJ368e8.js";
|
|
6
|
-
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
+
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-D7mq-4y1.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-Dpg87zYv.js";
|
|
8
8
|
import { t as resolveFetch } from "./fetch-CTN5ATFT.js";
|
|
9
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-
|
|
9
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-Hho38eZq.js";
|
|
10
10
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BXqJ6gxm.js";
|
|
11
11
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-CVGKOEN8.js";
|
|
12
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
+
import { t as convertMarkdownTables } from "./tables-XtcH-BaF.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { promisify } from "node:util";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
1
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-C6TxBCvO.js";
|
|
2
|
+
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
3
3
|
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DgdmD4k7.js";
|
|
4
|
-
import { g as safeParseJson, t as CONFIG_DIR } from "./utils-
|
|
5
|
-
import { Q as readConfigFileSnapshotForWrite, Vn as resolveTelegramPreviewStreamMode, X as loadConfig, Xn as isTruthyEnvValue, et as writeConfigFile, ir as withFileLock$1 } from "./model-selection-
|
|
6
|
-
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
4
|
+
import { g as safeParseJson, t as CONFIG_DIR } from "./utils-D2oM4XHm.js";
|
|
5
|
+
import { Q as readConfigFileSnapshotForWrite, Vn as resolveTelegramPreviewStreamMode, X as loadConfig, Xn as isTruthyEnvValue, et as writeConfigFile, ir as withFileLock$1 } from "./model-selection-e9hodq0l.js";
|
|
6
|
+
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-rc2l4VJe.js";
|
|
7
7
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget, t as normalizeTelegramChatId } from "./targets-yNvvUZit.js";
|
|
8
|
-
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-
|
|
9
|
-
import { t as redactSensitiveText } from "./redact-
|
|
10
|
-
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-
|
|
11
|
-
import { t as hasProxyEnvConfigured } from "./proxy-env-
|
|
8
|
+
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-D7mq-4y1.js";
|
|
9
|
+
import { t as redactSensitiveText } from "./redact-BXURioma.js";
|
|
10
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-C1YF712P.js";
|
|
11
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-C2sbN0UU.js";
|
|
12
12
|
import { r as writeJsonAtomic } from "./json-files-D2dc4Wmw.js";
|
|
13
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
14
|
-
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
13
|
+
import { t as makeProxyFetch } from "./proxy-fetch-CVSmQMZt.js";
|
|
14
|
+
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-Dpg87zYv.js";
|
|
15
15
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
16
16
|
import { t as resolveFetch } from "./fetch-CTN5ATFT.js";
|
|
17
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
17
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-Hho38eZq.js";
|
|
18
18
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BXqJ6gxm.js";
|
|
19
19
|
import { n as normalizePollInput } from "./polls-CVGKOEN8.js";
|
|
20
20
|
import fs from "node:fs/promises";
|
|
21
21
|
import os from "node:os";
|
|
22
22
|
import path from "node:path";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
23
|
+
import syncFs, { readFileSync } from "node:fs";
|
|
24
|
+
import JSON5 from "json5";
|
|
25
25
|
import process$1 from "node:process";
|
|
26
26
|
import crypto, { randomBytes } from "node:crypto";
|
|
27
27
|
import * as net$1 from "node:net";
|
|
@@ -81,7 +81,7 @@ function getPairingAdapter(channelId) {
|
|
|
81
81
|
//#region src/plugin-sdk/json-store.ts
|
|
82
82
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
83
83
|
try {
|
|
84
|
-
const parsed = safeParseJson(await
|
|
84
|
+
const parsed = safeParseJson(await syncFs.promises.readFile(filePath, "utf-8"));
|
|
85
85
|
if (parsed == null) return {
|
|
86
86
|
value: fallback,
|
|
87
87
|
exists: true
|
|
@@ -168,7 +168,7 @@ async function readPairingRequests(filePath) {
|
|
|
168
168
|
}
|
|
169
169
|
async function ensureJsonFile(filePath, fallback) {
|
|
170
170
|
try {
|
|
171
|
-
await
|
|
171
|
+
await syncFs.promises.access(filePath);
|
|
172
172
|
} catch {
|
|
173
173
|
await writeJsonFile(filePath, fallback);
|
|
174
174
|
}
|
|
@@ -324,7 +324,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
324
324
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
325
325
|
let stat = null;
|
|
326
326
|
try {
|
|
327
|
-
stat = await
|
|
327
|
+
stat = await syncFs.promises.stat(filePath);
|
|
328
328
|
} catch (err) {
|
|
329
329
|
if (err.code !== "ENOENT") throw err;
|
|
330
330
|
}
|
|
@@ -367,7 +367,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
367
367
|
});
|
|
368
368
|
let stat = null;
|
|
369
369
|
try {
|
|
370
|
-
stat = await
|
|
370
|
+
stat = await syncFs.promises.stat(filePath);
|
|
371
371
|
} catch {}
|
|
372
372
|
setAllowFromReadCache(filePath, {
|
|
373
373
|
exists: true,
|
|
@@ -974,10 +974,10 @@ function resolveCronStorePath(storePath) {
|
|
|
974
974
|
}
|
|
975
975
|
async function loadCronStore(storePath) {
|
|
976
976
|
try {
|
|
977
|
-
const raw = await
|
|
977
|
+
const raw = await syncFs.promises.readFile(storePath, "utf-8");
|
|
978
978
|
let parsed;
|
|
979
979
|
try {
|
|
980
|
-
parsed =
|
|
980
|
+
parsed = JSON5.parse(raw);
|
|
981
981
|
} catch (err) {
|
|
982
982
|
throw new Error(`Failed to parse cron store at ${storePath}: ${String(err)}`, { cause: err });
|
|
983
983
|
}
|
|
@@ -1000,13 +1000,13 @@ async function loadCronStore(storePath) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
async function saveCronStore(storePath, store) {
|
|
1003
|
-
await
|
|
1003
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1004
1004
|
const json = JSON.stringify(store, null, 2);
|
|
1005
1005
|
const cached = serializedStoreCache.get(storePath);
|
|
1006
1006
|
if (cached === json) return;
|
|
1007
1007
|
let previous = cached ?? null;
|
|
1008
1008
|
if (previous === null) try {
|
|
1009
|
-
previous = await
|
|
1009
|
+
previous = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1010
1010
|
} catch (err) {
|
|
1011
1011
|
if (err.code !== "ENOENT") throw err;
|
|
1012
1012
|
}
|
|
@@ -1015,9 +1015,9 @@ async function saveCronStore(storePath, store) {
|
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
1017
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1018
|
-
await
|
|
1018
|
+
await syncFs.promises.writeFile(tmp, json, "utf-8");
|
|
1019
1019
|
if (previous !== null) try {
|
|
1020
|
-
await
|
|
1020
|
+
await syncFs.promises.copyFile(storePath, `${storePath}.bak`);
|
|
1021
1021
|
} catch {}
|
|
1022
1022
|
await renameWithRetry(tmp, storePath);
|
|
1023
1023
|
serializedStoreCache.set(storePath, json);
|
|
@@ -1026,7 +1026,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1026
1026
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1027
1027
|
async function renameWithRetry(src, dest) {
|
|
1028
1028
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1029
|
-
await
|
|
1029
|
+
await syncFs.promises.rename(src, dest);
|
|
1030
1030
|
return;
|
|
1031
1031
|
} catch (err) {
|
|
1032
1032
|
const code = err.code;
|
|
@@ -1035,8 +1035,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1035
1035
|
continue;
|
|
1036
1036
|
}
|
|
1037
1037
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1038
|
-
await
|
|
1039
|
-
await
|
|
1038
|
+
await syncFs.promises.copyFile(src, dest);
|
|
1039
|
+
await syncFs.promises.unlink(src).catch(() => {});
|
|
1040
1040
|
return;
|
|
1041
1041
|
}
|
|
1042
1042
|
throw err;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as normalizeE164, h as resolveUserPath } from "./utils-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
3
|
-
import { E as kindFromMime } from "./image-ops-
|
|
4
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
5
|
-
import { s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
1
|
+
import { d as normalizeE164, h as resolveUserPath } from "./utils-D2oM4XHm.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-e9hodq0l.js";
|
|
3
|
+
import { E as kindFromMime } from "./image-ops-D7mq-4y1.js";
|
|
4
|
+
import { t as resolveIMessageAccount } from "./accounts-k5nTdi32.js";
|
|
5
|
+
import { s as resolveMarkdownTableMode } from "./ir-Dpg87zYv.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-XtcH-BaF.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-wzHGF-Is.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as loadConfig } from "./model-selection-
|
|
1
|
+
import { X as loadConfig } from "./model-selection-e9hodq0l.js";
|
|
2
2
|
import { n as generateSecureUuid } from "./secure-random-xpZo1jCG.js";
|
|
3
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
4
|
-
import { E as kindFromMime } from "./image-ops-
|
|
3
|
+
import { n as resolveSignalAccount } from "./accounts-4l7ba973.js";
|
|
4
|
+
import { E as kindFromMime } from "./image-ops-D7mq-4y1.js";
|
|
5
5
|
import { n as fetchWithTimeout } from "./fetch-timeout-CSrVj6X7.js";
|
|
6
|
-
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-Dpg87zYv.js";
|
|
7
7
|
import { t as resolveFetch } from "./fetch-CTN5ATFT.js";
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-wzHGF-Is.js";
|
|
9
9
|
|
|
10
10
|
//#region src/signal/format.ts
|
|
11
11
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as logVerbose } from "./subsystem-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
3
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
4
|
-
import { g as resolveSlackBotToken, p as resolveSlackAccount } from "./plugins-
|
|
1
|
+
import { u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-e9hodq0l.js";
|
|
3
|
+
import { i as isSilentReplyText } from "./tokens-DxcVnNVJ.js";
|
|
4
|
+
import { g as resolveSlackBotToken, p as resolveSlackAccount } from "./plugins-rc2l4VJe.js";
|
|
5
5
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CNJ368e8.js";
|
|
6
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CiQUuV0r.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-Dpg87zYv.js";
|
|
8
8
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
9
9
|
import { WebClient } from "@slack/web-api";
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-
|
|
2
|
-
import { a as ensureDir, h as resolveUserPath } from "./utils-
|
|
3
|
-
import { Kn as VERSION, cr as formatCliCommand } from "./model-selection-
|
|
4
|
-
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-
|
|
5
|
-
import
|
|
1
|
+
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { a as ensureDir, h as resolveUserPath } from "./utils-D2oM4XHm.js";
|
|
3
|
+
import { Kn as VERSION, cr as formatCliCommand } from "./model-selection-e9hodq0l.js";
|
|
4
|
+
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-CAjupeYV.js";
|
|
5
|
+
import syncFs from "node:fs";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
8
8
|
import qrcode from "qrcode-terminal";
|
|
@@ -21,16 +21,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
21
21
|
const raw = readCredsJsonRaw(credsPath);
|
|
22
22
|
if (raw) try {
|
|
23
23
|
JSON.parse(raw);
|
|
24
|
-
|
|
24
|
+
syncFs.copyFileSync(credsPath, backupPath);
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
syncFs.chmodSync(backupPath, 384);
|
|
27
27
|
} catch {}
|
|
28
28
|
} catch {}
|
|
29
29
|
} catch {}
|
|
30
30
|
try {
|
|
31
31
|
await Promise.resolve(saveCreds());
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
syncFs.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
34
34
|
} catch {}
|
|
35
35
|
} catch (err) {
|
|
36
36
|
logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
|