remoteclaw 0.1.0-next.5ed82dd → 0.1.0-next.6cbde32
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-CyaVe4qI.js → accounts-DesSv1wD.js} +1 -1
- package/dist/boot/handler.js +17 -17
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-BazS9P1y.js → channel-activity-hPfValKp.js} +2 -2
- package/dist/command-logger/handler.js +1 -1
- package/dist/{fetch-BJdT3l2F.js → fetch-DMmdxAp3.js} +1 -1
- package/dist/{media-BobbEF_S.js → media-DHIjuVaq.js} +6 -6
- package/dist/{outbound-attachment-CTZqPUXZ.js → outbound-attachment-D0PBuR8U.js} +2 -2
- package/dist/{retry-BLH2JEr_.js → retry-C81p7BZU.js} +1 -1
- package/dist/{secure-random-Be7VzV0O.js → secure-random-C8Siev1-.js} +1 -1
- package/dist/{send-BzxTTi-P.js → send-1l8en2au.js} +3 -3
- package/dist/{send-D6pAaq_t.js → send-B8r5IJ7q.js} +6 -6
- package/dist/send-BG2Pp61E.js +11 -0
- package/dist/{send-BFfa_Jyi.js → send-BdYZ_7sw.js} +7 -7
- package/dist/{send-Cri0B_M3.js → send-Bt4yJ4_Z.js} +7 -7
- package/dist/{send-D3XbNZoG.js → send-DAJqND45.js} +4 -4
- package/dist/{store-D_giQ5mr.js → store-C6xUjjK-.js} +2 -2
- package/dist/{subsystem-DjIrbjJ0.js → subsystem-CDhxwtDd.js} +2 -2
- package/dist/{tables-D691GfQb.js → tables-DoSY1jjh.js} +1 -1
- package/dist/{targets-CLuJTqzf.js → targets-BDsqoJet.js} +3 -3
- package/dist/{usage-BDey052P.js → usage-DmcVK-99.js} +4 -4
- package/dist/{web-CTRYCdtN.js → web-I2UxxP1y.js} +14 -14
- package/package.json +1 -1
- package/dist/send-DsV6SxWI.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as createAccountListHelpers, V as resolveAccountEntry, ft as normalizeAccountId } from "./media-
|
|
1
|
+
import { B as createAccountListHelpers, V as resolveAccountEntry, ft as normalizeAccountId } from "./media-DHIjuVaq.js";
|
|
2
2
|
|
|
3
3
|
//#region src/imessage/accounts.ts
|
|
4
4
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
package/dist/boot/handler.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as normalizeModelRef, A as normalizeChannelId, G as isGatewayMessageChannel, J as normalizeMessageChannel, K as isInternalMessageChannel, O as getChannelPlugin, Q as isCliProvider, U as INTERNAL_MESSAGE_CHANNEL, W as isDeliverableMessageChannel, Y as resolveMessageChannel, _ as resolveTextChunkLimit, at as resolveSessionAgentId, ct as normalizeAgentId, d as getAgentScopedMediaLocalRoots, ft as normalizeAccountId, g as resolveChunkMode, h as chunkMarkdownTextWithMode, it as resolveAgentWorkspaceDir, k as listChannelPlugins, lt as normalizeMainKey, m as chunkByParagraph, nt as listAgentIds, p as resolveMarkdownTableMode, q as listDeliverableMessageChannels, rt as resolveAgentConfig, tt as formatCliCommand, ut as resolveAgentIdFromSessionKey, x as loadConfig } from "../media-
|
|
2
|
-
import { D as createInternalHookEvent, M as resolveGatewayPort, O as isGatewayStartupEvent, P as resolveStateDir, k as triggerInternalHook, n as defaultRuntime, s as getActivePluginRegistry, t as createSubsystemLogger } from "../subsystem-
|
|
3
|
-
import { A as clearSessionAuthProfileOverride, B as evaluateSessionFreshness, C as ensureAgentWorkspace, D as getCliSessionId, E as DEFAULT_PROVIDER, F as loadSessionStore, G as resolveSessionFilePathOptions, H as resolveSessionResetPolicy, I as updateSessionStore, J as resolveAgentMainSessionKey, K as resolveSessionTranscriptPath, L as normalizeAccountId$1, M as appendAssistantMessageToSessionTranscript, N as resolveMirroredTranscriptText, O as setCliSessionId, P as resolveAndPersistSessionFile, Q as SILENT_REPLY_TOKEN, S as supportsXHighThinking, T as DEFAULT_MODEL, U as resolveSessionResetType, V as resolveChannelResetConfig, W as setSessionRuntimeModel, X as resolveMainSessionKey, Y as resolveExplicitAgentSessionKey, Z as ensureAuthProfileStore, _ as resolveGatewayCredentialsFromConfig, a as parseReplyDirectives, b as normalizeThinkLevel, c as AGENT_LANE_NESTED, d as ChannelBridge, f as resolveCliRuntimeProvider, g as registerAgentRunContext, h as emitAgentEvent, i as shouldSuppressReasoningPayload, j as parseSessionThreadInfo, k as resolveChannelMessageToolHints, l as resolveSendPolicy, m as clearAgentRunContext, n as hasNonzeroUsage, o as resolveOutboundTarget, p as getGlobalHookRunner, q as resolveStorePath, r as isRenderablePayload, s as resolveSessionDeliveryTarget, t as deriveSessionTotalTokens, u as applyVerboseOverride, v as formatThinkingLevels, w as DEFAULT_CONTEXT_TOKENS, x as normalizeVerboseLevel, y as formatXHighModelHint, z as resolveSessionKey } from "../usage-
|
|
1
|
+
import { $ as normalizeModelRef, A as normalizeChannelId, G as isGatewayMessageChannel, J as normalizeMessageChannel, K as isInternalMessageChannel, O as getChannelPlugin, Q as isCliProvider, U as INTERNAL_MESSAGE_CHANNEL, W as isDeliverableMessageChannel, Y as resolveMessageChannel, _ as resolveTextChunkLimit, at as resolveSessionAgentId, ct as normalizeAgentId, d as getAgentScopedMediaLocalRoots, ft as normalizeAccountId, g as resolveChunkMode, h as chunkMarkdownTextWithMode, it as resolveAgentWorkspaceDir, k as listChannelPlugins, lt as normalizeMainKey, m as chunkByParagraph, nt as listAgentIds, p as resolveMarkdownTableMode, q as listDeliverableMessageChannels, rt as resolveAgentConfig, tt as formatCliCommand, ut as resolveAgentIdFromSessionKey, x as loadConfig } from "../media-DHIjuVaq.js";
|
|
2
|
+
import { D as createInternalHookEvent, M as resolveGatewayPort, O as isGatewayStartupEvent, P as resolveStateDir, k as triggerInternalHook, n as defaultRuntime, s as getActivePluginRegistry, t as createSubsystemLogger } from "../subsystem-CDhxwtDd.js";
|
|
3
|
+
import { A as clearSessionAuthProfileOverride, B as evaluateSessionFreshness, C as ensureAgentWorkspace, D as getCliSessionId, E as DEFAULT_PROVIDER, F as loadSessionStore, G as resolveSessionFilePathOptions, H as resolveSessionResetPolicy, I as updateSessionStore, J as resolveAgentMainSessionKey, K as resolveSessionTranscriptPath, L as normalizeAccountId$1, M as appendAssistantMessageToSessionTranscript, N as resolveMirroredTranscriptText, O as setCliSessionId, P as resolveAndPersistSessionFile, Q as SILENT_REPLY_TOKEN, S as supportsXHighThinking, T as DEFAULT_MODEL, U as resolveSessionResetType, V as resolveChannelResetConfig, W as setSessionRuntimeModel, X as resolveMainSessionKey, Y as resolveExplicitAgentSessionKey, Z as ensureAuthProfileStore, _ as resolveGatewayCredentialsFromConfig, a as parseReplyDirectives, b as normalizeThinkLevel, c as AGENT_LANE_NESTED, d as ChannelBridge, f as resolveCliRuntimeProvider, g as registerAgentRunContext, h as emitAgentEvent, i as shouldSuppressReasoningPayload, j as parseSessionThreadInfo, k as resolveChannelMessageToolHints, l as resolveSendPolicy, m as clearAgentRunContext, n as hasNonzeroUsage, o as resolveOutboundTarget, p as getGlobalHookRunner, q as resolveStorePath, r as isRenderablePayload, s as resolveSessionDeliveryTarget, t as deriveSessionTotalTokens, u as applyVerboseOverride, v as formatThinkingLevels, w as DEFAULT_CONTEXT_TOKENS, x as normalizeVerboseLevel, y as formatXHighModelHint, z as resolveSessionKey } from "../usage-DmcVK-99.js";
|
|
4
4
|
import "../targets-JCISV-hS.js";
|
|
5
|
-
import "../accounts-
|
|
6
|
-
import { t as generateSecureUuid } from "../secure-random-
|
|
7
|
-
import "../fetch-
|
|
8
|
-
import "../retry-
|
|
9
|
-
import "../targets-
|
|
10
|
-
import { n as markdownToSignalTextChunks, t as sendMessageSignal } from "../send-
|
|
11
|
-
import "../store-
|
|
12
|
-
import "../outbound-attachment-
|
|
5
|
+
import "../accounts-DesSv1wD.js";
|
|
6
|
+
import { t as generateSecureUuid } from "../secure-random-C8Siev1-.js";
|
|
7
|
+
import "../fetch-DMmdxAp3.js";
|
|
8
|
+
import "../retry-C81p7BZU.js";
|
|
9
|
+
import "../targets-BDsqoJet.js";
|
|
10
|
+
import { n as markdownToSignalTextChunks, t as sendMessageSignal } from "../send-DAJqND45.js";
|
|
11
|
+
import "../store-C6xUjjK-.js";
|
|
12
|
+
import "../outbound-attachment-D0PBuR8U.js";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import fs from "node:fs";
|
|
15
15
|
import fs$1 from "node:fs/promises";
|
|
@@ -32,27 +32,27 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
32
32
|
function createDefaultDeps() {
|
|
33
33
|
return {
|
|
34
34
|
sendMessageWhatsApp: async (...args) => {
|
|
35
|
-
const { sendMessageWhatsApp } = await import("../web-
|
|
35
|
+
const { sendMessageWhatsApp } = await import("../web-I2UxxP1y.js");
|
|
36
36
|
return await sendMessageWhatsApp(...args);
|
|
37
37
|
},
|
|
38
38
|
sendMessageTelegram: async (...args) => {
|
|
39
|
-
const { sendMessageTelegram } = await import("../send-
|
|
39
|
+
const { sendMessageTelegram } = await import("../send-Bt4yJ4_Z.js");
|
|
40
40
|
return await sendMessageTelegram(...args);
|
|
41
41
|
},
|
|
42
42
|
sendMessageDiscord: async (...args) => {
|
|
43
|
-
const { sendMessageDiscord } = await import("../send-
|
|
43
|
+
const { sendMessageDiscord } = await import("../send-BG2Pp61E.js");
|
|
44
44
|
return await sendMessageDiscord(...args);
|
|
45
45
|
},
|
|
46
46
|
sendMessageSlack: async (...args) => {
|
|
47
|
-
const { sendMessageSlack } = await import("../send-
|
|
47
|
+
const { sendMessageSlack } = await import("../send-1l8en2au.js");
|
|
48
48
|
return await sendMessageSlack(...args);
|
|
49
49
|
},
|
|
50
50
|
sendMessageSignal: async (...args) => {
|
|
51
|
-
const { sendMessageSignal } = await import("../send-
|
|
51
|
+
const { sendMessageSignal } = await import("../send-BdYZ_7sw.js");
|
|
52
52
|
return await sendMessageSignal(...args);
|
|
53
53
|
},
|
|
54
54
|
sendMessageIMessage: async (...args) => {
|
|
55
|
-
const { sendMessageIMessage } = await import("../send-
|
|
55
|
+
const { sendMessageIMessage } = await import("../send-B8r5IJ7q.js");
|
|
56
56
|
return await sendMessageIMessage(...args);
|
|
57
57
|
}
|
|
58
58
|
};
|
package/dist/build-info.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.0-next.
|
|
3
|
-
"commit": "
|
|
4
|
-
"builtAt": "2026-03-07T19:
|
|
2
|
+
"version": "0.1.0-next.6cbde32",
|
|
3
|
+
"commit": "6cbde325e131f997c40ca55a536a7e79282bc244",
|
|
4
|
+
"builtAt": "2026-03-07T19:31:25.607Z"
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ef224a6876c547d28da9684888aa7ace3c3eade29679e92050e67c9c075410c3
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as resolveNodeRequireFromMeta, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { n as retryAsync, t as resolveRetryConfig } from "./retry-
|
|
1
|
+
import { T as resolveNodeRequireFromMeta, t as createSubsystemLogger } from "./subsystem-CDhxwtDd.js";
|
|
2
|
+
import { n as retryAsync, t as resolveRetryConfig } from "./retry-C81p7BZU.js";
|
|
3
3
|
import { RateLimitError } from "@buape/carbon";
|
|
4
4
|
|
|
5
5
|
//#region src/security/safe-regex.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as resolveStateDir, t as createSubsystemLogger } from "../subsystem-
|
|
1
|
+
import { P as resolveStateDir, t as createSubsystemLogger } from "../subsystem-CDhxwtDd.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as resolveConfigPath, E as resolvePreferredRemoteClawTmpDir, I as resolveRequiredHomeDir, N as resolveOAuthDir, P as resolveStateDir, S as warn, _ as isPlainObject$2, a as normalizeAnyChannelId, b as logVerboseConsole, c as requireActivePluginRegistry, d as isRecord, f as normalizeE164, i as CHAT_CHANNEL_ORDER, j as resolveDefaultConfigCandidates, m as resolveUserPath, n as defaultRuntime, o as normalizeChatChannelId, p as resolveConfigDir, r as CHANNEL_IDS, s as getActivePluginRegistry, t as createSubsystemLogger, v as danger, w as getLogger, x as shouldLogVerbose, y as logVerbose } from "./subsystem-
|
|
1
|
+
import { A as resolveConfigPath, E as resolvePreferredRemoteClawTmpDir, I as resolveRequiredHomeDir, N as resolveOAuthDir, P as resolveStateDir, S as warn, _ as isPlainObject$2, a as normalizeAnyChannelId, b as logVerboseConsole, c as requireActivePluginRegistry, d as isRecord, f as normalizeE164, i as CHAT_CHANNEL_ORDER, j as resolveDefaultConfigCandidates, m as resolveUserPath, n as defaultRuntime, o as normalizeChatChannelId, p as resolveConfigDir, r as CHANNEL_IDS, s as getActivePluginRegistry, t as createSubsystemLogger, v as danger, w as getLogger, x as shouldLogVerbose, y as logVerbose } from "./subsystem-CDhxwtDd.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs, { constants } from "node:fs";
|
|
5
5
|
import os from "node:os";
|
|
6
|
-
import
|
|
6
|
+
import JSON5 from "json5";
|
|
7
7
|
import util, { isDeepStrictEqual, promisify } from "node:util";
|
|
8
8
|
import fs$1 from "node:fs/promises";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -2240,7 +2240,7 @@ function safeRealpath(target) {
|
|
|
2240
2240
|
}
|
|
2241
2241
|
const defaultResolver = {
|
|
2242
2242
|
readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
2243
|
-
parseJson: (raw) =>
|
|
2243
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
2244
2244
|
};
|
|
2245
2245
|
/**
|
|
2246
2246
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -7500,7 +7500,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
7500
7500
|
function normalizeDeps(overrides = {}) {
|
|
7501
7501
|
return {
|
|
7502
7502
|
fs: overrides.fs ?? fs,
|
|
7503
|
-
json5: overrides.json5 ??
|
|
7503
|
+
json5: overrides.json5 ?? JSON5,
|
|
7504
7504
|
env: overrides.env ?? process.env,
|
|
7505
7505
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
7506
7506
|
configPath: overrides.configPath ?? "",
|
|
@@ -7511,11 +7511,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
7511
7511
|
if (env !== process.env) return;
|
|
7512
7512
|
loadDotEnv({ quiet: true });
|
|
7513
7513
|
}
|
|
7514
|
-
function parseConfigJson5(raw, json5
|
|
7514
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
7515
7515
|
try {
|
|
7516
7516
|
return {
|
|
7517
7517
|
ok: true,
|
|
7518
|
-
parsed: json5
|
|
7518
|
+
parsed: json5.parse(raw)
|
|
7519
7519
|
};
|
|
7520
7520
|
} catch (err) {
|
|
7521
7521
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as loadWebMedia } from "./media-
|
|
2
|
-
import { t as saveMediaBuffer } from "./store-
|
|
1
|
+
import { t as loadWebMedia } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { t as saveMediaBuffer } from "./store-C6xUjjK-.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 { B as createAccountListHelpers, V as resolveAccountEntry, ft as normalizeAccountId } from "./media-
|
|
1
|
+
import { B as createAccountListHelpers, V as resolveAccountEntry, ft as normalizeAccountId } from "./media-DHIjuVaq.js";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as resolveSlackAccount, L as resolveSlackBotToken, _ as resolveTextChunkLimit, c as chunkMarkdownIR, g as resolveChunkMode, h as chunkMarkdownTextWithMode, l as markdownToIR, p as resolveMarkdownTableMode, t as loadWebMedia, x as loadConfig } from "./media-
|
|
2
|
-
import { y as logVerbose } from "./subsystem-
|
|
1
|
+
import { F as resolveSlackAccount, L as resolveSlackBotToken, _ as resolveTextChunkLimit, c as chunkMarkdownIR, g as resolveChunkMode, h as chunkMarkdownTextWithMode, l as markdownToIR, p as resolveMarkdownTableMode, t as loadWebMedia, x as loadConfig } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { y as logVerbose } from "./subsystem-CDhxwtDd.js";
|
|
3
3
|
import { t as parseSlackTarget } from "./targets-CcTME3bp.js";
|
|
4
|
-
import { t as createSlackWebClient } from "./send-
|
|
4
|
+
import { t as createSlackWebClient } from "./send-BdYZ_7sw.js";
|
|
5
5
|
import { t as renderMarkdownWithMarkers } from "./render-6ahYfPwj.js";
|
|
6
6
|
|
|
7
7
|
//#region src/slack/blocks-fallback.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { p as resolveMarkdownTableMode, s as mediaKindFromMime, x as loadConfig } from "./media-
|
|
2
|
-
import { m as resolveUserPath } from "./subsystem-
|
|
3
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
4
|
-
import "./store-
|
|
5
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
1
|
+
import { p as resolveMarkdownTableMode, s as mediaKindFromMime, x as loadConfig } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { m as resolveUserPath } from "./subsystem-CDhxwtDd.js";
|
|
3
|
+
import { t as resolveIMessageAccount } from "./accounts-DesSv1wD.js";
|
|
4
|
+
import "./store-C6xUjjK-.js";
|
|
5
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-D0PBuR8U.js";
|
|
6
6
|
import "./render-6ahYfPwj.js";
|
|
7
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
+
import { t as convertMarkdownTables } from "./tables-DoSY1jjh.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./media-DHIjuVaq.js";
|
|
2
|
+
import "./subsystem-CDhxwtDd.js";
|
|
3
|
+
import "./fetch-DMmdxAp3.js";
|
|
4
|
+
import "./retry-C81p7BZU.js";
|
|
5
|
+
import "./targets-BDsqoJet.js";
|
|
6
|
+
import "./channel-activity-hPfValKp.js";
|
|
7
|
+
import "./render-6ahYfPwj.js";
|
|
8
|
+
import "./tables-DoSY1jjh.js";
|
|
9
|
+
import { n as DiscordSendError, r as fetchChannelPermissionsDiscord, t as sendMessageDiscord } from "./web-I2UxxP1y.js";
|
|
10
|
+
|
|
11
|
+
export { sendMessageDiscord };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./media-
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import "./secure-random-
|
|
4
|
-
import "./fetch-
|
|
5
|
-
import { t as sendMessageSignal } from "./send-
|
|
6
|
-
import "./store-
|
|
7
|
-
import "./outbound-attachment-
|
|
1
|
+
import "./media-DHIjuVaq.js";
|
|
2
|
+
import "./subsystem-CDhxwtDd.js";
|
|
3
|
+
import "./secure-random-C8Siev1-.js";
|
|
4
|
+
import "./fetch-DMmdxAp3.js";
|
|
5
|
+
import { t as sendMessageSignal } from "./send-DAJqND45.js";
|
|
6
|
+
import "./store-C6xUjjK-.js";
|
|
7
|
+
import "./outbound-attachment-D0PBuR8U.js";
|
|
8
8
|
import { WebClient } from "@slack/web-api";
|
|
9
9
|
|
|
10
10
|
//#region src/slack/client.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { C as writeConfigFile, N as resolveTelegramAccount, P as isTruthyEnvValue, S as readConfigFileSnapshotForWrite, a as isGifMedia, i as getFileExtension, l as markdownToIR, o as normalizeMimeType, p as resolveMarkdownTableMode, s as mediaKindFromMime, t as loadWebMedia, x as loadConfig } from "./media-
|
|
2
|
-
import { F as expandHomePrefix, l as CONFIG_DIR, t as createSubsystemLogger, v as danger, y as logVerbose } from "./subsystem-
|
|
1
|
+
import { C as writeConfigFile, N as resolveTelegramAccount, P as isTruthyEnvValue, S as readConfigFileSnapshotForWrite, a as isGifMedia, i as getFileExtension, l as markdownToIR, o as normalizeMimeType, p as resolveMarkdownTableMode, s as mediaKindFromMime, t as loadWebMedia, x as loadConfig } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { F as expandHomePrefix, l as CONFIG_DIR, t as createSubsystemLogger, v as danger, y as logVerbose } from "./subsystem-CDhxwtDd.js";
|
|
3
3
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget, t as normalizeTelegramChatId } from "./targets-JCISV-hS.js";
|
|
4
|
-
import { t as resolveFetch } from "./fetch-
|
|
5
|
-
import "./retry-
|
|
6
|
-
import { a as formatErrorMessage, i as extractErrorCode, o as formatUncaughtError, r as createTelegramRetryRunner, s as redactSensitiveText, t as recordChannelActivity } from "./channel-activity-
|
|
4
|
+
import { t as resolveFetch } from "./fetch-DMmdxAp3.js";
|
|
5
|
+
import "./retry-C81p7BZU.js";
|
|
6
|
+
import { a as formatErrorMessage, i as extractErrorCode, o as formatUncaughtError, r as createTelegramRetryRunner, s as redactSensitiveText, t as recordChannelActivity } from "./channel-activity-hPfValKp.js";
|
|
7
7
|
import { t as renderMarkdownWithMarkers } from "./render-6ahYfPwj.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs, { readFileSync } from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
|
-
import
|
|
11
|
+
import JSON5 from "json5";
|
|
12
12
|
import fs$1 from "node:fs/promises";
|
|
13
13
|
import crypto from "node:crypto";
|
|
14
14
|
import * as dns from "node:dns";
|
|
@@ -643,7 +643,7 @@ async function loadCronStore(storePath) {
|
|
|
643
643
|
const raw = await fs.promises.readFile(storePath, "utf-8");
|
|
644
644
|
let parsed;
|
|
645
645
|
try {
|
|
646
|
-
parsed =
|
|
646
|
+
parsed = JSON5.parse(raw);
|
|
647
647
|
} catch (err) {
|
|
648
648
|
throw new Error(`Failed to parse cron store at ${storePath}: ${String(err)}`, { cause: err });
|
|
649
649
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as fetchWithTimeout, c as chunkMarkdownIR, l as markdownToIR, p as resolveMarkdownTableMode, s as mediaKindFromMime, x as loadConfig } from "./media-
|
|
2
|
-
import { n as resolveSignalAccount, t as generateSecureUuid } from "./secure-random-
|
|
3
|
-
import { t as resolveFetch } from "./fetch-
|
|
4
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
1
|
+
import { b as fetchWithTimeout, c as chunkMarkdownIR, l as markdownToIR, p as resolveMarkdownTableMode, s as mediaKindFromMime, x as loadConfig } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { n as resolveSignalAccount, t as generateSecureUuid } from "./secure-random-C8Siev1-.js";
|
|
3
|
+
import { t as resolveFetch } from "./fetch-DMmdxAp3.js";
|
|
4
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-D0PBuR8U.js";
|
|
5
5
|
|
|
6
6
|
//#region src/signal/format.ts
|
|
7
7
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as detectMime, r as extensionForMime } from "./media-
|
|
2
|
-
import { p as resolveConfigDir } from "./subsystem-
|
|
1
|
+
import { n as detectMime, r as extensionForMime } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { p as resolveConfigDir } from "./subsystem-CDhxwtDd.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs$1 from "node:fs/promises";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import chalk, { Chalk } from "chalk";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
|
-
import
|
|
6
|
+
import JSON5 from "json5";
|
|
7
7
|
import util from "node:util";
|
|
8
8
|
|
|
9
9
|
//#region src/infra/home-dir.ts
|
|
@@ -335,7 +335,7 @@ function readLoggingConfig() {
|
|
|
335
335
|
try {
|
|
336
336
|
if (!fs.existsSync(configPath)) return;
|
|
337
337
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
338
|
-
const logging =
|
|
338
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
339
339
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
340
340
|
return logging;
|
|
341
341
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as resolveDiscordAccount, z as normalizeDiscordToken } from "./media-
|
|
1
|
+
import { R as resolveDiscordAccount, z as normalizeDiscordToken } from "./media-DHIjuVaq.js";
|
|
2
2
|
import { i as parseTargetPrefixes, n as ensureTargetId, r as parseTargetMention, t as buildMessagingTarget } from "./targets-BMenhVHg.js";
|
|
3
|
-
import { t as resolveFetch } from "./fetch-
|
|
4
|
-
import { n as retryAsync, t as resolveRetryConfig } from "./retry-
|
|
3
|
+
import { t as resolveFetch } from "./fetch-DMmdxAp3.js";
|
|
4
|
+
import { n as retryAsync, t as resolveRetryConfig } from "./retry-C81p7BZU.js";
|
|
5
5
|
|
|
6
6
|
//#region src/discord/api.ts
|
|
7
7
|
const DISCORD_API_BASE = "https://discord.com/api/v10";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as parseByteSize, E as parseDurationMs, F as resolveSlackAccount, H as normalizeChatType, I as resolveSlackReplyToMode, J as normalizeMessageChannel, M as resolveWhatsAppAccount, N as resolveTelegramAccount, O as getChannelPlugin, R as resolveDiscordAccount, U as INTERNAL_MESSAGE_CHANNEL, V as resolveAccountEntry, W as isDeliverableMessageChannel, ct as normalizeAgentId, et as normalizeProviderId$1, ft as normalizeAccountId$1, j as normalizeWhatsAppTarget, lt as normalizeMainKey, mt as deriveSessionChatType, ot as DEFAULT_AGENT_ID, pt as normalizeOptionalAccountId, q as listDeliverableMessageChannels, st as buildAgentMainSessionKey, tt as formatCliCommand, v as parseFenceSpans, x as loadConfig } from "./media-
|
|
2
|
-
import { F as expandHomePrefix, I as resolveRequiredHomeDir, P as resolveStateDir, a as normalizeAnyChannelId, c as requireActivePluginRegistry, f as normalizeE164, m as resolveUserPath, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-
|
|
1
|
+
import { D as parseByteSize, E as parseDurationMs, F as resolveSlackAccount, H as normalizeChatType, I as resolveSlackReplyToMode, J as normalizeMessageChannel, M as resolveWhatsAppAccount, N as resolveTelegramAccount, O as getChannelPlugin, R as resolveDiscordAccount, U as INTERNAL_MESSAGE_CHANNEL, V as resolveAccountEntry, W as isDeliverableMessageChannel, ct as normalizeAgentId, et as normalizeProviderId$1, ft as normalizeAccountId$1, j as normalizeWhatsAppTarget, lt as normalizeMainKey, mt as deriveSessionChatType, ot as DEFAULT_AGENT_ID, pt as normalizeOptionalAccountId, q as listDeliverableMessageChannels, st as buildAgentMainSessionKey, tt as formatCliCommand, v as parseFenceSpans, x as loadConfig } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { F as expandHomePrefix, I as resolveRequiredHomeDir, P as resolveStateDir, a as normalizeAnyChannelId, c as requireActivePluginRegistry, f as normalizeE164, m as resolveUserPath, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-CDhxwtDd.js";
|
|
3
3
|
import { a as isPidAlive, i as resolveProcessScopedMap, r as parseTelegramTarget } from "./targets-JCISV-hS.js";
|
|
4
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
5
|
-
import { n as resolveSignalAccount } from "./secure-random-
|
|
4
|
+
import { t as resolveIMessageAccount } from "./accounts-DesSv1wD.js";
|
|
5
|
+
import { n as resolveSignalAccount } from "./secure-random-C8Siev1-.js";
|
|
6
6
|
import path, { join } from "node:path";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import os, { homedir, tmpdir } from "node:os";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { R as resolveDiscordAccount, T as mergeInboundPathRoots, U as INTERNAL_MESSAGE_CHANNEL, X as GATEWAY_CLIENT_IDS, Z as GATEWAY_CLIENT_MODES, dt as DEFAULT_ACCOUNT_ID, f as getDefaultMediaLocalRoots, ft as normalizeAccountId, g as resolveChunkMode, h as chunkMarkdownTextWithMode, p as resolveMarkdownTableMode, t as loadWebMedia, tt as formatCliCommand, w as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, x as loadConfig, z as normalizeDiscordToken } from "./media-
|
|
2
|
-
import { C as getChildLogger, g as toWhatsappJid, i as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-
|
|
3
|
-
import { R as INPUT_PROVENANCE_KIND_VALUES } from "./usage-
|
|
1
|
+
import { R as resolveDiscordAccount, T as mergeInboundPathRoots, U as INTERNAL_MESSAGE_CHANNEL, X as GATEWAY_CLIENT_IDS, Z as GATEWAY_CLIENT_MODES, dt as DEFAULT_ACCOUNT_ID, f as getDefaultMediaLocalRoots, ft as normalizeAccountId, g as resolveChunkMode, h as chunkMarkdownTextWithMode, p as resolveMarkdownTableMode, t as loadWebMedia, tt as formatCliCommand, w as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, x as loadConfig, z as normalizeDiscordToken } from "./media-DHIjuVaq.js";
|
|
2
|
+
import { C as getChildLogger, g as toWhatsappJid, i as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-CDhxwtDd.js";
|
|
3
|
+
import { R as INPUT_PROVENANCE_KIND_VALUES } from "./usage-DmcVK-99.js";
|
|
4
4
|
import "./targets-JCISV-hS.js";
|
|
5
|
-
import "./accounts-
|
|
6
|
-
import { t as generateSecureUuid } from "./secure-random-
|
|
7
|
-
import "./fetch-
|
|
8
|
-
import "./retry-
|
|
9
|
-
import { n as resolveDiscordTarget, t as parseDiscordTarget } from "./targets-
|
|
10
|
-
import "./store-
|
|
11
|
-
import "./send-
|
|
12
|
-
import { n as createDiscordRetryRunner, t as recordChannelActivity } from "./channel-activity-
|
|
5
|
+
import "./accounts-DesSv1wD.js";
|
|
6
|
+
import { t as generateSecureUuid } from "./secure-random-C8Siev1-.js";
|
|
7
|
+
import "./fetch-DMmdxAp3.js";
|
|
8
|
+
import "./retry-C81p7BZU.js";
|
|
9
|
+
import { n as resolveDiscordTarget, t as parseDiscordTarget } from "./targets-BDsqoJet.js";
|
|
10
|
+
import "./store-C6xUjjK-.js";
|
|
11
|
+
import "./send-BdYZ_7sw.js";
|
|
12
|
+
import { n as createDiscordRetryRunner, t as recordChannelActivity } from "./channel-activity-hPfValKp.js";
|
|
13
13
|
import "./render-6ahYfPwj.js";
|
|
14
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
15
|
-
import "./send-
|
|
14
|
+
import { t as convertMarkdownTables } from "./tables-DoSY1jjh.js";
|
|
15
|
+
import "./send-Bt4yJ4_Z.js";
|
|
16
16
|
import path, { join } from "node:path";
|
|
17
17
|
import fs, { constants, readFileSync } from "node:fs";
|
|
18
18
|
import os, { homedir } from "node:os";
|
|
19
|
-
import
|
|
19
|
+
import JSON5 from "json5";
|
|
20
20
|
import { promisify } from "node:util";
|
|
21
21
|
import fs$1 from "node:fs/promises";
|
|
22
22
|
import crypto, { randomUUID } from "node:crypto";
|
package/package.json
CHANGED
package/dist/send-DsV6SxWI.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "./media-BobbEF_S.js";
|
|
2
|
-
import "./subsystem-DjIrbjJ0.js";
|
|
3
|
-
import "./fetch-BJdT3l2F.js";
|
|
4
|
-
import "./retry-BLH2JEr_.js";
|
|
5
|
-
import "./targets-CLuJTqzf.js";
|
|
6
|
-
import "./channel-activity-BazS9P1y.js";
|
|
7
|
-
import "./render-6ahYfPwj.js";
|
|
8
|
-
import "./tables-D691GfQb.js";
|
|
9
|
-
import { n as DiscordSendError, r as fetchChannelPermissionsDiscord, t as sendMessageDiscord } from "./web-CTRYCdtN.js";
|
|
10
|
-
|
|
11
|
-
export { sendMessageDiscord };
|