@bitseek/claw 1.1.0-beta.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
- package/dist/{accounts-DZqwa5NK.js → accounts-CFz9Jc5d.js} +1 -1
- package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
- package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
- package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
- package/dist/{api-key-rotation-BTSy5kZN.js → api-key-rotation-WzOC5dTW.js} +2 -2
- package/dist/{audio-preflight-DZWb0ozj.js → audio-preflight-BWOdDA2n.js} +39 -39
- package/dist/{audio-transcription-runner-2dp0SxL3.js → audio-transcription-runner-DaoqvWoi.js} +11 -11
- package/dist/{bindings-Daa-Etag.js → bindings-CsIiIjqN.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +65 -65
- 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 +65 -65
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-Btz1t5_1.js → channel-activity-D81g48kD.js} +3 -3
- package/dist/{chrome-DX1blHAJ.js → chrome-CjTE-vWv.js} +18 -18
- package/dist/{chunk-DEkdXze6.js → chunk-DtYb6TYl.js} +1 -1
- package/dist/{commands-registry-BQkQRhEo.js → commands-registry-NIsv9Z4R.js} +5 -5
- package/dist/{deliver-C82Egs0W.js → deliver-xY3h9X6N.js} +22 -22
- package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
- package/dist/{dock-DWqb4ufG.js → dock-Cr9V9V1V.js} +6 -6
- package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
- package/dist/{errors-azBrKJmF.js → errors-DEkWxItM.js} +1 -1
- package/dist/{fetch-B82CeaHJ.js → fetch--iXu7oa7.js} +5 -5
- package/dist/{fetch-guard-CCLWHwu7.js → fetch-guard-CNvY0vzQ.js} +2 -2
- package/dist/{frontmatter-5U1LYLH9.js → frontmatter-DIRc-IR1.js} +2 -2
- package/dist/{fs-safe-BDR6eQAw.js → fs-safe-D8x_nIIA.js} +4 -4
- package/dist/{github-copilot-token-CPjAmbfr.js → github-copilot-token-DLGN-8YS.js} +7 -7
- package/dist/{image-BQ1JgwZu.js → image-DCyaYY2d.js} +6 -6
- package/dist/{image-ops-jvmQoiyw.js → image-ops-DCpyia_K.js} +1 -1
- package/dist/{internal-hooks-oLQ2m8YT.js → internal-hooks-yQe6H47q.js} +1 -1
- package/dist/{ir-BODD8g-I.js → ir-BZUjdf-6.js} +6 -6
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{logger-DelEB7MK.js → logger-BlH5MJiV.js} +1 -1
- package/dist/{login-Cm2zDfEU.js → login-CgEHUE7h.js} +6 -6
- package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
- package/dist/{manager-DdzkWOvc.js → manager-BNuB9clC.js} +15 -15
- package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
- package/dist/{message-channel-POuk6EOq.js → message-channel-Dl8dSs0T.js} +1 -1
- package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
- package/dist/{outbound-4q4mbU-Z.js → outbound-DOVV_R6m.js} +7 -7
- package/dist/{outbound-attachment-CBCp1oVQ.js → outbound-attachment-C7sJLSnv.js} +2 -2
- package/dist/{path-alias-guards-DfQIjfhB.js → path-alias-guards-CKjKIhQ3.js} +1 -1
- package/dist/{paths-BZO1jkK2.js → paths-Cpu0XgUj.js} +3 -3
- package/dist/{paths-DKuX7-1L.js → paths-aGRLvQx9.js} +5 -5
- package/dist/{pi-embedded-DiUmkZyz.js → pi-embedded-DE3hb87F.js} +178 -178
- package/dist/{pi-embedded-helpers-CuwhW4u9.js → pi-embedded-helpers-CMTVhLjq.js} +29 -29
- package/dist/{pi-model-discovery-COjkql-U.js → pi-model-discovery-DCIw1y1c.js} +7 -7
- package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
- package/dist/{proxy-jINniQBi.js → proxy-DfJJLvch.js} +1 -1
- package/dist/{proxy-env-vYAjKL5q.js → proxy-env-BnDt8j9F.js} +1 -1
- package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-xlbVQYN_.js} +1 -1
- package/dist/{pw-ai-BLNiRUPI.js → pw-ai-DGwA7iCM.js} +17 -17
- package/dist/{qmd-manager-BBKfRzj-.js → qmd-manager-CeN3N992.js} +11 -11
- package/dist/{query-expansion-2BrixCA2.js → query-expansion-CGnW4Mk_.js} +5 -5
- package/dist/{redact-uUggP88O.js → redact-ScShueoF.js} +1 -1
- package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
- package/dist/{replies-yAf6dFeT.js → replies-BFYGUEKu.js} +3 -3
- package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-DK1i6bCJ.js} +1 -1
- package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
- package/dist/{retry-Ayb7e4XG.js → retry-DTeP7C3h.js} +1 -1
- package/dist/{send-Bclgg0Ur.js → send-B4pSMBHk.js} +8 -8
- package/dist/{send-Bjaa69Cy.js → send-BqKSZyIb.js} +27 -27
- package/dist/{send-DYY51FOR.js → send-CN0f1Yst.js} +6 -6
- package/dist/{send-Cp0yQi_p.js → send-V3fEVmLq.js} +10 -10
- package/dist/{send-DQ7hIAIK.js → send-XAO1mk64.js} +7 -7
- package/dist/{session-meta-CyQWVUk4.js → session-meta-Cqv55kSk.js} +2 -2
- package/dist/{session-TVb8hgJP.js → session-xKPVUYQP.js} +9 -9
- package/dist/{sessions-3jroJwu7.js → sessions-CA_BydGA.js} +31 -31
- package/dist/{skill-commands-CSr9_48V.js → skill-commands-CZFmIM-s.js} +9 -9
- package/dist/{skills-B82IjVxn.js → skills-DMmr25nW.js} +22 -22
- package/dist/{store-DhC72KqW.js → store-C8KgeMt2.js} +2 -2
- package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
- package/dist/{tables-Bfh_TnCf.js → tables-BKnPZssn.js} +1 -1
- package/dist/{target-errors-CGYXYvSZ.js → target-errors-B9Jzop3d.js} +2 -2
- package/dist/{tokens-BvzZdrVJ.js → tokens-B9EDT4jv.js} +1 -1
- package/dist/{tool-images-CqsWnc1k.js → tool-images-ffdfBx0b.js} +2 -2
- package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
- package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
- package/dist/{web-DsAoa63g.js → web-B2_c07KN.js} +69 -69
- package/dist/{whatsapp-actions-DXjy9m41.js → whatsapp-actions-CHt12z-f.js} +28 -28
- package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
- package/package.json +1 -1
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-
|
|
1
|
+
import "./agent-scope-C6hps0r3.js";
|
|
2
|
+
import "./paths-aGRLvQx9.js";
|
|
3
|
+
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-BRjuJbbM.js";
|
|
4
4
|
import { a as buildGroupHistoryKey, c as normalizeAgentId, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import { d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import "./logger-
|
|
8
|
-
import { H as loadConfig } from "./model-selection-
|
|
9
|
-
import "./github-copilot-token-
|
|
10
|
-
import { n as formatCliCommand } from "./env-
|
|
5
|
+
import { d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-BFZnl-5N.js";
|
|
6
|
+
import "./workspace-D6mrCnXi.js";
|
|
7
|
+
import "./logger-BlH5MJiV.js";
|
|
8
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
9
|
+
import "./github-copilot-token-DLGN-8YS.js";
|
|
10
|
+
import { n as formatCliCommand } from "./env-DNMZEG57.js";
|
|
11
11
|
import "./boolean-mcn6kL0s.js";
|
|
12
|
-
import "./internal-hooks-
|
|
13
|
-
import "./registry-
|
|
14
|
-
import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-
|
|
15
|
-
import "./tokens-
|
|
16
|
-
import { A as enqueueSystemEvent, C as resolveInboundDebounceMs, D as normalizeGroupActivation, E as getReplyFromConfig, M as shouldComputeCommandAuthorized, N as buildMentionRegexes, O as parseActivationCommand, P as normalizeMentionText, S as createInboundDebouncer, T as createDedupeCache, _ as resolveDmGroupAccessWithLists, b as dispatchReplyWithBufferedBlockDispatcher, c as resolveMentionGating, d as recordPendingHistoryEntryIfEnabled, f as resolveDefaultGroupPolicy, g as resolveDmGroupAccessWithCommandGate, h as readStoreAllowFromForDmPolicy, i as sleepWithAbort, j as hasControlCommand, k as formatDurationPrecise, l as DEFAULT_GROUP_HISTORY_LIMIT, m as warnMissingProviderGroupPolicyFallbackOnce, n as resolveInboundSessionEnvelopeContext, p as resolveOpenProviderRuntimeGroupPolicy, r as computeBackoff, s as buildPairingReply, u as buildHistoryContextFromEntries, v as resolvePinnedMainDmOwnerFromAllowlist, w as formatInboundEnvelope, y as shouldAckReactionForWhatsApp } from "./pi-embedded-
|
|
17
|
-
import "./plugins-
|
|
18
|
-
import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-
|
|
19
|
-
import "./bindings-
|
|
20
|
-
import "./send-
|
|
21
|
-
import "./send-
|
|
22
|
-
import "./deliver-
|
|
23
|
-
import "./diagnostic-
|
|
12
|
+
import "./internal-hooks-yQe6H47q.js";
|
|
13
|
+
import "./registry-CJCkqTms.js";
|
|
14
|
+
import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-Cr9V9V1V.js";
|
|
15
|
+
import "./tokens-B9EDT4jv.js";
|
|
16
|
+
import { A as enqueueSystemEvent, C as resolveInboundDebounceMs, D as normalizeGroupActivation, E as getReplyFromConfig, M as shouldComputeCommandAuthorized, N as buildMentionRegexes, O as parseActivationCommand, P as normalizeMentionText, S as createInboundDebouncer, T as createDedupeCache, _ as resolveDmGroupAccessWithLists, b as dispatchReplyWithBufferedBlockDispatcher, c as resolveMentionGating, d as recordPendingHistoryEntryIfEnabled, f as resolveDefaultGroupPolicy, g as resolveDmGroupAccessWithCommandGate, h as readStoreAllowFromForDmPolicy, i as sleepWithAbort, j as hasControlCommand, k as formatDurationPrecise, l as DEFAULT_GROUP_HISTORY_LIMIT, m as warnMissingProviderGroupPolicyFallbackOnce, n as resolveInboundSessionEnvelopeContext, p as resolveOpenProviderRuntimeGroupPolicy, r as computeBackoff, s as buildPairingReply, u as buildHistoryContextFromEntries, v as resolvePinnedMainDmOwnerFromAllowlist, w as formatInboundEnvelope, y as shouldAckReactionForWhatsApp } from "./pi-embedded-DE3hb87F.js";
|
|
17
|
+
import "./plugins-CJoaoIHc.js";
|
|
18
|
+
import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-ubG6irXZ.js";
|
|
19
|
+
import "./bindings-CsIiIjqN.js";
|
|
20
|
+
import "./send-B4pSMBHk.js";
|
|
21
|
+
import "./send-V3fEVmLq.js";
|
|
22
|
+
import "./deliver-xY3h9X6N.js";
|
|
23
|
+
import "./diagnostic-BO1GQJJf.js";
|
|
24
24
|
import "./diagnostic-session-state-DBPrVBk3.js";
|
|
25
|
-
import "./accounts-
|
|
26
|
-
import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-
|
|
27
|
-
import "./image-ops-
|
|
28
|
-
import "./pi-model-discovery-
|
|
29
|
-
import "./message-channel-
|
|
30
|
-
import "./pi-embedded-helpers-
|
|
31
|
-
import "./chrome-
|
|
32
|
-
import "./frontmatter-
|
|
33
|
-
import "./skills-
|
|
34
|
-
import "./path-alias-guards-
|
|
35
|
-
import "./redact-
|
|
36
|
-
import "./errors-
|
|
37
|
-
import "./fs-safe-
|
|
38
|
-
import "./proxy-env-
|
|
39
|
-
import { i as saveMediaBuffer } from "./store-
|
|
40
|
-
import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-
|
|
41
|
-
import "./accounts-
|
|
42
|
-
import { s as resolveStorePath } from "./paths-
|
|
43
|
-
import "./tool-images-
|
|
25
|
+
import "./accounts-BTexwKe8.js";
|
|
26
|
+
import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-BqKSZyIb.js";
|
|
27
|
+
import "./image-ops-DCpyia_K.js";
|
|
28
|
+
import "./pi-model-discovery-DCIw1y1c.js";
|
|
29
|
+
import "./message-channel-Dl8dSs0T.js";
|
|
30
|
+
import "./pi-embedded-helpers-CMTVhLjq.js";
|
|
31
|
+
import "./chrome-CjTE-vWv.js";
|
|
32
|
+
import "./frontmatter-DIRc-IR1.js";
|
|
33
|
+
import "./skills-DMmr25nW.js";
|
|
34
|
+
import "./path-alias-guards-CKjKIhQ3.js";
|
|
35
|
+
import "./redact-ScShueoF.js";
|
|
36
|
+
import "./errors-DEkWxItM.js";
|
|
37
|
+
import "./fs-safe-D8x_nIIA.js";
|
|
38
|
+
import "./proxy-env-BnDt8j9F.js";
|
|
39
|
+
import { i as saveMediaBuffer } from "./store-C8KgeMt2.js";
|
|
40
|
+
import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-CA_BydGA.js";
|
|
41
|
+
import "./accounts-CFz9Jc5d.js";
|
|
42
|
+
import { s as resolveStorePath } from "./paths-Cpu0XgUj.js";
|
|
43
|
+
import "./tool-images-ffdfBx0b.js";
|
|
44
44
|
import "./thinking-FnAYAFD8.js";
|
|
45
|
-
import "./image-
|
|
46
|
-
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
47
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch
|
|
48
|
-
import "./fetch-guard-
|
|
49
|
-
import "./api-key-rotation-
|
|
50
|
-
import "./proxy-fetch-
|
|
51
|
-
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
52
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
53
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
54
|
-
import { a as loadWebMedia } from "./ir-
|
|
45
|
+
import "./image-DCyaYY2d.js";
|
|
46
|
+
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-DaoqvWoi.js";
|
|
47
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch--iXu7oa7.js";
|
|
48
|
+
import "./fetch-guard-CNvY0vzQ.js";
|
|
49
|
+
import "./api-key-rotation-WzOC5dTW.js";
|
|
50
|
+
import "./proxy-fetch-xlbVQYN_.js";
|
|
51
|
+
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-DK1i6bCJ.js";
|
|
52
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-DtYb6TYl.js";
|
|
53
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
54
|
+
import { a as loadWebMedia } from "./ir-BZUjdf-6.js";
|
|
55
55
|
import "./render-flG67HhW.js";
|
|
56
|
-
import "./target-errors-
|
|
57
|
-
import "./commands-registry-
|
|
58
|
-
import "./skill-commands-
|
|
56
|
+
import "./target-errors-B9Jzop3d.js";
|
|
57
|
+
import "./commands-registry-NIsv9Z4R.js";
|
|
58
|
+
import "./skill-commands-CZFmIM-s.js";
|
|
59
59
|
import { t as finalizeInboundContext } from "./inbound-context-D4jdbLFJ.js";
|
|
60
60
|
import "./fetch-CIXnD4u2.js";
|
|
61
|
-
import "./retry-
|
|
62
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
63
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
64
|
-
import "./send-
|
|
65
|
-
import "./outbound-attachment-
|
|
66
|
-
import "./send-
|
|
67
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
68
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
69
|
-
import "./proxy-
|
|
70
|
-
import "./replies-
|
|
71
|
-
import "./session-meta-
|
|
72
|
-
import "./manager-
|
|
73
|
-
import "./query-expansion-
|
|
74
|
-
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
75
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
76
|
-
import { t as loginWeb } from "./login-
|
|
61
|
+
import "./retry-DTeP7C3h.js";
|
|
62
|
+
import { n as recordChannelActivity } from "./channel-activity-D81g48kD.js";
|
|
63
|
+
import { t as convertMarkdownTables } from "./tables-BKnPZssn.js";
|
|
64
|
+
import "./send-CN0f1Yst.js";
|
|
65
|
+
import "./outbound-attachment-C7sJLSnv.js";
|
|
66
|
+
import "./send-XAO1mk64.js";
|
|
67
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-C5hVstLo.js";
|
|
68
|
+
import { r as setActiveWebListener } from "./active-listener-Hd9sOu9T.js";
|
|
69
|
+
import "./proxy-DfJJLvch.js";
|
|
70
|
+
import "./replies-BFYGUEKu.js";
|
|
71
|
+
import "./session-meta-Cqv55kSk.js";
|
|
72
|
+
import "./manager-BNuB9clC.js";
|
|
73
|
+
import "./query-expansion-CGnW4Mk_.js";
|
|
74
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-DOVV_R6m.js";
|
|
75
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-xKPVUYQP.js";
|
|
76
|
+
import { t as loginWeb } from "./login-CgEHUE7h.js";
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
79
79
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import "./env-
|
|
1
|
+
import "./agent-scope-C6hps0r3.js";
|
|
2
|
+
import "./paths-aGRLvQx9.js";
|
|
3
|
+
import "./subsystem-BRjuJbbM.js";
|
|
4
|
+
import "./utils-BFZnl-5N.js";
|
|
5
|
+
import "./workspace-D6mrCnXi.js";
|
|
6
|
+
import "./logger-BlH5MJiV.js";
|
|
7
|
+
import "./model-selection-D_Si2Ict.js";
|
|
8
|
+
import "./github-copilot-token-DLGN-8YS.js";
|
|
9
|
+
import "./env-DNMZEG57.js";
|
|
10
10
|
import "./boolean-mcn6kL0s.js";
|
|
11
|
-
import "./internal-hooks-
|
|
12
|
-
import "./registry-
|
|
13
|
-
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-
|
|
14
|
-
import { n as resolveWhatsAppAccount } from "./accounts-
|
|
15
|
-
import "./bindings-
|
|
16
|
-
import "./image-ops-
|
|
17
|
-
import "./message-channel-
|
|
18
|
-
import "./path-alias-guards-
|
|
19
|
-
import "./fs-safe-
|
|
20
|
-
import "./proxy-env-
|
|
21
|
-
import "./tool-images-
|
|
22
|
-
import "./fetch
|
|
23
|
-
import "./fetch-guard-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./markdown-tables-
|
|
26
|
-
import "./ir-
|
|
11
|
+
import "./internal-hooks-yQe6H47q.js";
|
|
12
|
+
import "./registry-CJCkqTms.js";
|
|
13
|
+
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-CJoaoIHc.js";
|
|
14
|
+
import { n as resolveWhatsAppAccount } from "./accounts-ubG6irXZ.js";
|
|
15
|
+
import "./bindings-CsIiIjqN.js";
|
|
16
|
+
import "./image-ops-DCpyia_K.js";
|
|
17
|
+
import "./message-channel-Dl8dSs0T.js";
|
|
18
|
+
import "./path-alias-guards-CKjKIhQ3.js";
|
|
19
|
+
import "./fs-safe-D8x_nIIA.js";
|
|
20
|
+
import "./proxy-env-BnDt8j9F.js";
|
|
21
|
+
import "./tool-images-ffdfBx0b.js";
|
|
22
|
+
import "./fetch--iXu7oa7.js";
|
|
23
|
+
import "./fetch-guard-CNvY0vzQ.js";
|
|
24
|
+
import "./chunk-DtYb6TYl.js";
|
|
25
|
+
import "./markdown-tables-BHONoo6S.js";
|
|
26
|
+
import "./ir-BZUjdf-6.js";
|
|
27
27
|
import "./render-flG67HhW.js";
|
|
28
|
-
import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-
|
|
29
|
-
import "./tables-
|
|
30
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
28
|
+
import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-B9Jzop3d.js";
|
|
29
|
+
import "./tables-BKnPZssn.js";
|
|
30
|
+
import { r as sendReactionWhatsApp } from "./outbound-DOVV_R6m.js";
|
|
31
31
|
|
|
32
32
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
33
33
|
function resolveWhatsAppOutboundTarget(params) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
-
import { c as danger, p as shouldLogVerbose } from "./subsystem-
|
|
1
|
+
import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
|
|
2
|
+
import { c as danger, p as shouldLogVerbose } from "./subsystem-BRjuJbbM.js";
|
|
3
3
|
import { b as isCronSessionKey, x as isSubagentSessionKey } from "./session-key-a6av96Fj.js";
|
|
4
|
-
import { f as pathExists$1, h as resolveUserPath } from "./utils-
|
|
5
|
-
import { n as logError, t as logDebug } from "./logger-
|
|
4
|
+
import { f as pathExists$1, h as resolveUserPath } from "./utils-BFZnl-5N.js";
|
|
5
|
+
import { n as logError, t as logDebug } from "./logger-BlH5MJiV.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import syncFs from "node:fs";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
import { execFile, spawn } from "node:child_process";
|
|
12
12
|
import process$1 from "node:process";
|
|
@@ -314,7 +314,7 @@ function resolveBoundaryPathLexicalSync(params) {
|
|
|
314
314
|
rootCanonicalPath: params.rootCanonicalPath,
|
|
315
315
|
resolveParams: params.params,
|
|
316
316
|
absolutePath: params.absolutePath,
|
|
317
|
-
read: (cursor) =>
|
|
317
|
+
read: (cursor) => syncFs.lstatSync(cursor)
|
|
318
318
|
});
|
|
319
319
|
if (isPromiseLike(maybeStat)) throw new Error("Unexpected async lexical stat");
|
|
320
320
|
const stat = maybeStat;
|
|
@@ -460,15 +460,15 @@ function resolvePathViaExistingAncestorSync(targetPath) {
|
|
|
460
460
|
const normalized = path.resolve(targetPath);
|
|
461
461
|
let cursor = normalized;
|
|
462
462
|
const missingSuffix = [];
|
|
463
|
-
while (!isFilesystemRoot(cursor) && !
|
|
463
|
+
while (!isFilesystemRoot(cursor) && !syncFs.existsSync(cursor)) {
|
|
464
464
|
missingSuffix.unshift(path.basename(cursor));
|
|
465
465
|
const parent = path.dirname(cursor);
|
|
466
466
|
if (parent === cursor) break;
|
|
467
467
|
cursor = parent;
|
|
468
468
|
}
|
|
469
|
-
if (!
|
|
469
|
+
if (!syncFs.existsSync(cursor)) return normalized;
|
|
470
470
|
try {
|
|
471
|
-
const resolvedAncestor = path.resolve(
|
|
471
|
+
const resolvedAncestor = path.resolve(syncFs.realpathSync(cursor));
|
|
472
472
|
if (missingSuffix.length === 0) return resolvedAncestor;
|
|
473
473
|
return path.resolve(resolvedAncestor, ...missingSuffix);
|
|
474
474
|
} catch {
|
|
@@ -493,7 +493,7 @@ function getPathKindSync(absolutePath, preserveFinalSymlink) {
|
|
|
493
493
|
try {
|
|
494
494
|
return {
|
|
495
495
|
exists: true,
|
|
496
|
-
kind: toResolvedKind(preserveFinalSymlink ?
|
|
496
|
+
kind: toResolvedKind(preserveFinalSymlink ? syncFs.lstatSync(absolutePath) : syncFs.statSync(absolutePath))
|
|
497
497
|
};
|
|
498
498
|
} catch (error) {
|
|
499
499
|
if (isNotFoundPathError(error)) return {
|
|
@@ -553,10 +553,10 @@ async function resolveSymlinkHopPath(symlinkPath) {
|
|
|
553
553
|
}
|
|
554
554
|
function resolveSymlinkHopPathSync(symlinkPath) {
|
|
555
555
|
try {
|
|
556
|
-
return path.resolve(
|
|
556
|
+
return path.resolve(syncFs.realpathSync(symlinkPath));
|
|
557
557
|
} catch (error) {
|
|
558
558
|
if (!isNotFoundPathError(error)) throw error;
|
|
559
|
-
const linkTarget =
|
|
559
|
+
const linkTarget = syncFs.readlinkSync(symlinkPath);
|
|
560
560
|
return resolvePathViaExistingAncestorSync(path.resolve(path.dirname(symlinkPath), linkTarget));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
@@ -582,7 +582,7 @@ function sameFileIdentity(left, right) {
|
|
|
582
582
|
return sameFileIdentity$1(left, right);
|
|
583
583
|
}
|
|
584
584
|
function openVerifiedFileSync(params) {
|
|
585
|
-
const ioFs = params.ioFs ??
|
|
585
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
586
586
|
const allowedType = params.allowedType ?? "file";
|
|
587
587
|
const openReadFlags = ioFs.constants.O_RDONLY | (typeof ioFs.constants.O_NOFOLLOW === "number" ? ioFs.constants.O_NOFOLLOW : 0);
|
|
588
588
|
let fd = null;
|
|
@@ -659,7 +659,7 @@ function canUseBoundaryFileOpen(ioFs) {
|
|
|
659
659
|
return typeof ioFs.openSync === "function" && typeof ioFs.closeSync === "function" && typeof ioFs.fstatSync === "function" && typeof ioFs.lstatSync === "function" && typeof ioFs.realpathSync === "function" && typeof ioFs.readFileSync === "function" && typeof ioFs.constants === "object" && ioFs.constants !== null;
|
|
660
660
|
}
|
|
661
661
|
function openBoundaryFileSync(params) {
|
|
662
|
-
const ioFs = params.ioFs ??
|
|
662
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
663
663
|
const resolved = resolveBoundaryFilePathGeneric({
|
|
664
664
|
absolutePath: params.absolutePath,
|
|
665
665
|
resolve: (absolutePath) => resolveBoundaryPathSync({
|
|
@@ -710,7 +710,7 @@ function finalizeBoundaryFileOpen(params) {
|
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
async function openBoundaryFile(params) {
|
|
713
|
-
const ioFs = params.ioFs ??
|
|
713
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
714
714
|
const maybeResolved = resolveBoundaryFilePathGeneric({
|
|
715
715
|
absolutePath: params.absolutePath,
|
|
716
716
|
resolve: (absolutePath) => resolveBoundaryPath({
|
|
@@ -859,7 +859,7 @@ function resolveNpmArgvForWindows(argv) {
|
|
|
859
859
|
if (!cliName) return null;
|
|
860
860
|
const nodeDir = path.dirname(process$1.execPath);
|
|
861
861
|
const cliPath = path.join(nodeDir, "node_modules", "npm", "bin", cliName);
|
|
862
|
-
if (!
|
|
862
|
+
if (!syncFs.existsSync(cliPath)) return null;
|
|
863
863
|
return [
|
|
864
864
|
process$1.execPath,
|
|
865
865
|
cliPath,
|
|
@@ -1065,7 +1065,7 @@ async function readPackageName(dir) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
function readPackageNameSync(dir) {
|
|
1067
1067
|
try {
|
|
1068
|
-
const raw =
|
|
1068
|
+
const raw = syncFs.readFileSync(path.join(dir, "package.json"), "utf-8");
|
|
1069
1069
|
const parsed = JSON.parse(raw);
|
|
1070
1070
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
1071
1071
|
} catch {
|
|
@@ -1099,7 +1099,7 @@ function candidateDirsFromArgv1(argv1) {
|
|
|
1099
1099
|
const normalized = path.resolve(argv1);
|
|
1100
1100
|
const candidates = [path.dirname(normalized)];
|
|
1101
1101
|
try {
|
|
1102
|
-
const resolved =
|
|
1102
|
+
const resolved = syncFs.realpathSync(normalized);
|
|
1103
1103
|
if (resolved !== normalized) candidates.push(path.dirname(resolved));
|
|
1104
1104
|
} catch {}
|
|
1105
1105
|
const parts = normalized.split(path.sep);
|
|
@@ -1208,14 +1208,14 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
1208
1208
|
const identity = workspaceFileIdentity(opened.stat, opened.path);
|
|
1209
1209
|
const cached = workspaceFileCache.get(params.filePath);
|
|
1210
1210
|
if (cached && cached.identity === identity) {
|
|
1211
|
-
|
|
1211
|
+
syncFs.closeSync(opened.fd);
|
|
1212
1212
|
return {
|
|
1213
1213
|
ok: true,
|
|
1214
1214
|
content: cached.content
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
1217
|
try {
|
|
1218
|
-
const content =
|
|
1218
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
1219
1219
|
workspaceFileCache.set(params.filePath, {
|
|
1220
1220
|
content,
|
|
1221
1221
|
identity
|
|
@@ -1232,7 +1232,7 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
1232
1232
|
error
|
|
1233
1233
|
};
|
|
1234
1234
|
} finally {
|
|
1235
|
-
|
|
1235
|
+
syncFs.closeSync(opened.fd);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
function stripFrontMatter(content) {
|
package/package.json
CHANGED