remoteclaw 0.1.0-next.d54da3b → 0.1.0-next.e183536
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-D14FruTh.js → accounts-BvXnQloJ.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-hL4KZrCz.js → channel-activity-BZtWpdKA.js} +2 -2
- package/dist/command-logger/handler.js +1 -1
- package/dist/daemon-cli.js +6 -6
- package/dist/{fetch-DfIkzQUf.js → fetch-1v6uP2tC.js} +1 -1
- package/dist/{media-CL_yeclZ.js → media-BeBx3iHu.js} +6 -6
- package/dist/{outbound-attachment-IiFdwCgL.js → outbound-attachment-CvF-d7SO.js} +2 -2
- package/dist/{retry-BMUvSHT-.js → retry-bFj4k6Ii.js} +1 -1
- package/dist/{secure-random-CEvvWsIn.js → secure-random-BJve6bb_.js} +1 -1
- package/dist/{send-5MHyaMbs.js → send-B1iHZJdx.js} +6 -6
- package/dist/{send-BoBSao7-.js → send-BHlgcDpz.js} +3 -3
- package/dist/{send-HgAUzRGX.js → send-BNHQKlx7.js} +7 -7
- package/dist/{send-DoHcAZmG.js → send-Cf2gNkoT.js} +4 -4
- package/dist/{send-2FSGylak.js → send-DkTW0Swe.js} +7 -7
- package/dist/send-mVVMFwmx.js +11 -0
- package/dist/{store-CpMmpJi6.js → store-C_Dj8ASh.js} +2 -2
- package/dist/{subsystem-SgROXN1v.js → subsystem-rxNDBm7l.js} +2 -2
- package/dist/{tables-DkzyK4SP.js → tables-HN31BKCH.js} +1 -1
- package/dist/{targets-CGN4l86v.js → targets-BlVk-r3Q.js} +3 -3
- package/dist/{usage-DGwcP_BH.js → usage-CAM9Q3bX.js} +4 -4
- package/dist/{web-BQ8-x7rj.js → web-BnhT_Tfr.js} +14 -14
- package/package.json +1 -1
- package/dist/send-B6vbtrno.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-BeBx3iHu.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 { 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-
|
|
2
|
-
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-
|
|
3
|
-
import { A as loadSessionStore, B as resolveSessionTranscriptPath, C as setCliSessionId, D as appendAssistantMessageToSessionTranscript, E as parseSessionThreadInfo, F as evaluateSessionFreshness, G as ensureAuthProfileStore, H as resolveAgentMainSessionKey, I as resolveChannelResetConfig, K as SILENT_REPLY_TOKEN, L as resolveSessionResetPolicy, M as normalizeAccountId$1, O as resolveMirroredTranscriptText, P as resolveSessionKey, R as resolveSessionResetType, S as getCliSessionId, T as clearSessionAuthProfileOverride, U as resolveExplicitAgentSessionKey, V as resolveStorePath, W as resolveMainSessionKey, _ as emitAgentEvent, a as parseReplyDirectives, b as normalizeVerboseLevel, c as AGENT_LANE_NESTED, d as ChannelBridge, f as resolveCliRuntimeArgs, g as clearAgentRunContext, h as getGlobalHookRunner, i as shouldSuppressReasoningPayload, j as updateSessionStore, k as resolveAndPersistSessionFile, l as resolveSendPolicy, m as resolveCliRuntimeProvider, n as hasNonzeroUsage, o as resolveOutboundTarget, p as resolveCliRuntimeEnv, r as isRenderablePayload, s as resolveSessionDeliveryTarget, t as deriveSessionTotalTokens, u as applyVerboseOverride, v as registerAgentRunContext, w as resolveChannelMessageToolHints, x as ensureAgentWorkspace, y as resolveGatewayCredentialsFromConfig, z as resolveSessionFilePathOptions } from "../usage-
|
|
1
|
+
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-rxNDBm7l.js";
|
|
2
|
+
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-BeBx3iHu.js";
|
|
3
|
+
import { A as loadSessionStore, B as resolveSessionTranscriptPath, C as setCliSessionId, D as appendAssistantMessageToSessionTranscript, E as parseSessionThreadInfo, F as evaluateSessionFreshness, G as ensureAuthProfileStore, H as resolveAgentMainSessionKey, I as resolveChannelResetConfig, K as SILENT_REPLY_TOKEN, L as resolveSessionResetPolicy, M as normalizeAccountId$1, O as resolveMirroredTranscriptText, P as resolveSessionKey, R as resolveSessionResetType, S as getCliSessionId, T as clearSessionAuthProfileOverride, U as resolveExplicitAgentSessionKey, V as resolveStorePath, W as resolveMainSessionKey, _ as emitAgentEvent, a as parseReplyDirectives, b as normalizeVerboseLevel, c as AGENT_LANE_NESTED, d as ChannelBridge, f as resolveCliRuntimeArgs, g as clearAgentRunContext, h as getGlobalHookRunner, i as shouldSuppressReasoningPayload, j as updateSessionStore, k as resolveAndPersistSessionFile, l as resolveSendPolicy, m as resolveCliRuntimeProvider, n as hasNonzeroUsage, o as resolveOutboundTarget, p as resolveCliRuntimeEnv, r as isRenderablePayload, s as resolveSessionDeliveryTarget, t as deriveSessionTotalTokens, u as applyVerboseOverride, v as registerAgentRunContext, w as resolveChannelMessageToolHints, x as ensureAgentWorkspace, y as resolveGatewayCredentialsFromConfig, z as resolveSessionFilePathOptions } from "../usage-CAM9Q3bX.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-BvXnQloJ.js";
|
|
6
|
+
import { t as generateSecureUuid } from "../secure-random-BJve6bb_.js";
|
|
7
|
+
import "../fetch-1v6uP2tC.js";
|
|
8
|
+
import "../retry-bFj4k6Ii.js";
|
|
9
|
+
import "../targets-BlVk-r3Q.js";
|
|
10
|
+
import { n as markdownToSignalTextChunks, t as sendMessageSignal } from "../send-Cf2gNkoT.js";
|
|
11
|
+
import "../store-C_Dj8ASh.js";
|
|
12
|
+
import "../outbound-attachment-CvF-d7SO.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-BnhT_Tfr.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-DkTW0Swe.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-mVVMFwmx.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-BHlgcDpz.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-BNHQKlx7.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-B1iHZJdx.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-08T07:
|
|
2
|
+
"version": "0.1.0-next.e183536",
|
|
3
|
+
"commit": "e1835361aef101b3e4167660f5f2ad513643e1e4",
|
|
4
|
+
"builtAt": "2026-03-08T07:15:09.998Z"
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
dca3b091069d3b1a83665450bb68a966b98736fb43428e002b12754de94319a4
|
|
@@ -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-rxNDBm7l.js";
|
|
2
|
+
import { n as retryAsync, t as resolveRetryConfig } from "./retry-bFj4k6Ii.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-rxNDBm7l.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import fs from "node:fs/promises";
|
package/dist/daemon-cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
|
-
import
|
|
6
|
+
import json5 from "json5";
|
|
7
7
|
import chalk, { Chalk } from "chalk";
|
|
8
8
|
import fs$1 from "node:fs/promises";
|
|
9
9
|
import { execFile, execFileSync, spawn } from "node:child_process";
|
|
@@ -298,7 +298,7 @@ function readLoggingConfig() {
|
|
|
298
298
|
try {
|
|
299
299
|
if (!fs.existsSync(configPath)) return;
|
|
300
300
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
301
|
-
const logging =
|
|
301
|
+
const logging = json5.parse(raw)?.logging;
|
|
302
302
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
303
303
|
return logging;
|
|
304
304
|
} catch {
|
|
@@ -3036,7 +3036,7 @@ function safeRealpath(target) {
|
|
|
3036
3036
|
}
|
|
3037
3037
|
const defaultResolver = {
|
|
3038
3038
|
readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
3039
|
-
parseJson: (raw) =>
|
|
3039
|
+
parseJson: (raw) => json5.parse(raw)
|
|
3040
3040
|
};
|
|
3041
3041
|
/**
|
|
3042
3042
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -8292,7 +8292,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
8292
8292
|
function normalizeDeps(overrides = {}) {
|
|
8293
8293
|
return {
|
|
8294
8294
|
fs: overrides.fs ?? fs,
|
|
8295
|
-
json5: overrides.json5 ??
|
|
8295
|
+
json5: overrides.json5 ?? json5,
|
|
8296
8296
|
env: overrides.env ?? process.env,
|
|
8297
8297
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
8298
8298
|
configPath: overrides.configPath ?? "",
|
|
@@ -8303,11 +8303,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
8303
8303
|
if (env !== process.env) return;
|
|
8304
8304
|
loadDotEnv({ quiet: true });
|
|
8305
8305
|
}
|
|
8306
|
-
function parseConfigJson5(raw, json5 =
|
|
8306
|
+
function parseConfigJson5(raw, json5$1 = json5) {
|
|
8307
8307
|
try {
|
|
8308
8308
|
return {
|
|
8309
8309
|
ok: true,
|
|
8310
|
-
parsed: json5.parse(raw)
|
|
8310
|
+
parsed: json5$1.parse(raw)
|
|
8311
8311
|
};
|
|
8312
8312
|
} catch (err) {
|
|
8313
8313
|
return {
|
|
@@ -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-rxNDBm7l.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";
|
|
@@ -2215,7 +2215,7 @@ function safeRealpath(target) {
|
|
|
2215
2215
|
}
|
|
2216
2216
|
const defaultResolver = {
|
|
2217
2217
|
readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
2218
|
-
parseJson: (raw) =>
|
|
2218
|
+
parseJson: (raw) => json5.parse(raw)
|
|
2219
2219
|
};
|
|
2220
2220
|
/**
|
|
2221
2221
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -7445,7 +7445,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
7445
7445
|
function normalizeDeps(overrides = {}) {
|
|
7446
7446
|
return {
|
|
7447
7447
|
fs: overrides.fs ?? fs,
|
|
7448
|
-
json5: overrides.json5 ??
|
|
7448
|
+
json5: overrides.json5 ?? json5,
|
|
7449
7449
|
env: overrides.env ?? process.env,
|
|
7450
7450
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
7451
7451
|
configPath: overrides.configPath ?? "",
|
|
@@ -7456,11 +7456,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
7456
7456
|
if (env !== process.env) return;
|
|
7457
7457
|
loadDotEnv({ quiet: true });
|
|
7458
7458
|
}
|
|
7459
|
-
function parseConfigJson5(raw, json5 =
|
|
7459
|
+
function parseConfigJson5(raw, json5$1 = json5) {
|
|
7460
7460
|
try {
|
|
7461
7461
|
return {
|
|
7462
7462
|
ok: true,
|
|
7463
|
-
parsed: json5.parse(raw)
|
|
7463
|
+
parsed: json5$1.parse(raw)
|
|
7464
7464
|
};
|
|
7465
7465
|
} catch (err) {
|
|
7466
7466
|
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-BeBx3iHu.js";
|
|
2
|
+
import { t as saveMediaBuffer } from "./store-C_Dj8ASh.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-BeBx3iHu.js";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m as resolveUserPath } from "./subsystem-
|
|
2
|
-
import { p as resolveMarkdownTableMode, s as mediaKindFromMime, x as loadConfig } from "./media-
|
|
3
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
4
|
-
import "./store-
|
|
5
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
1
|
+
import { m as resolveUserPath } from "./subsystem-rxNDBm7l.js";
|
|
2
|
+
import { p as resolveMarkdownTableMode, s as mediaKindFromMime, x as loadConfig } from "./media-BeBx3iHu.js";
|
|
3
|
+
import { t as resolveIMessageAccount } from "./accounts-BvXnQloJ.js";
|
|
4
|
+
import "./store-C_Dj8ASh.js";
|
|
5
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-CvF-d7SO.js";
|
|
6
6
|
import "./render-6ahYfPwj.js";
|
|
7
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
+
import { t as convertMarkdownTables } from "./tables-HN31BKCH.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { y as logVerbose } from "./subsystem-
|
|
2
|
-
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-
|
|
1
|
+
import { y as logVerbose } from "./subsystem-rxNDBm7l.js";
|
|
2
|
+
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-BeBx3iHu.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-BNHQKlx7.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 "./subsystem-
|
|
2
|
-
import "./media-
|
|
3
|
-
import "./secure-random-
|
|
4
|
-
import "./fetch-
|
|
5
|
-
import { t as sendMessageSignal } from "./send-
|
|
6
|
-
import "./store-
|
|
7
|
-
import "./outbound-attachment-
|
|
1
|
+
import "./subsystem-rxNDBm7l.js";
|
|
2
|
+
import "./media-BeBx3iHu.js";
|
|
3
|
+
import "./secure-random-BJve6bb_.js";
|
|
4
|
+
import "./fetch-1v6uP2tC.js";
|
|
5
|
+
import { t as sendMessageSignal } from "./send-Cf2gNkoT.js";
|
|
6
|
+
import "./store-C_Dj8ASh.js";
|
|
7
|
+
import "./outbound-attachment-CvF-d7SO.js";
|
|
8
8
|
import { WebClient } from "@slack/web-api";
|
|
9
9
|
|
|
10
10
|
//#region src/slack/client.ts
|
|
@@ -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-BeBx3iHu.js";
|
|
2
|
+
import { n as resolveSignalAccount, t as generateSecureUuid } from "./secure-random-BJve6bb_.js";
|
|
3
|
+
import { t as resolveFetch } from "./fetch-1v6uP2tC.js";
|
|
4
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-CvF-d7SO.js";
|
|
5
5
|
|
|
6
6
|
//#region src/signal/format.ts
|
|
7
7
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { F as expandHomePrefix, l as CONFIG_DIR, t as createSubsystemLogger, v as danger, y as logVerbose } from "./subsystem-
|
|
2
|
-
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-
|
|
1
|
+
import { F as expandHomePrefix, l as CONFIG_DIR, t as createSubsystemLogger, v as danger, y as logVerbose } from "./subsystem-rxNDBm7l.js";
|
|
2
|
+
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-BeBx3iHu.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-1v6uP2tC.js";
|
|
5
|
+
import "./retry-bFj4k6Ii.js";
|
|
6
|
+
import { a as formatErrorMessage, i as extractErrorCode, o as formatUncaughtError, r as createTelegramRetryRunner, s as redactSensitiveText, t as recordChannelActivity } from "./channel-activity-BZtWpdKA.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
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./subsystem-rxNDBm7l.js";
|
|
2
|
+
import "./media-BeBx3iHu.js";
|
|
3
|
+
import "./fetch-1v6uP2tC.js";
|
|
4
|
+
import "./retry-bFj4k6Ii.js";
|
|
5
|
+
import "./targets-BlVk-r3Q.js";
|
|
6
|
+
import "./channel-activity-BZtWpdKA.js";
|
|
7
|
+
import "./render-6ahYfPwj.js";
|
|
8
|
+
import "./tables-HN31BKCH.js";
|
|
9
|
+
import { n as DiscordSendError, r as fetchChannelPermissionsDiscord, t as sendMessageDiscord } from "./web-BnhT_Tfr.js";
|
|
10
|
+
|
|
11
|
+
export { sendMessageDiscord };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as resolveConfigDir } from "./subsystem-
|
|
2
|
-
import { n as detectMime, r as extensionForMime } from "./media-
|
|
1
|
+
import { p as resolveConfigDir } from "./subsystem-rxNDBm7l.js";
|
|
2
|
+
import { n as detectMime, r as extensionForMime } from "./media-BeBx3iHu.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-BeBx3iHu.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-1v6uP2tC.js";
|
|
4
|
+
import { n as retryAsync, t as resolveRetryConfig } from "./retry-bFj4k6Ii.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 { 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-
|
|
2
|
-
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, 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-
|
|
1
|
+
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-rxNDBm7l.js";
|
|
2
|
+
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, 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-BeBx3iHu.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-BvXnQloJ.js";
|
|
5
|
+
import { n as resolveSignalAccount } from "./secure-random-BJve6bb_.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 { C as getChildLogger, g as toWhatsappJid, i as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-
|
|
2
|
-
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-
|
|
3
|
-
import { N as INPUT_PROVENANCE_KIND_VALUES } from "./usage-
|
|
1
|
+
import { C as getChildLogger, g as toWhatsappJid, i as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-rxNDBm7l.js";
|
|
2
|
+
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-BeBx3iHu.js";
|
|
3
|
+
import { N as INPUT_PROVENANCE_KIND_VALUES } from "./usage-CAM9Q3bX.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-BvXnQloJ.js";
|
|
6
|
+
import { t as generateSecureUuid } from "./secure-random-BJve6bb_.js";
|
|
7
|
+
import "./fetch-1v6uP2tC.js";
|
|
8
|
+
import "./retry-bFj4k6Ii.js";
|
|
9
|
+
import { n as resolveDiscordTarget, t as parseDiscordTarget } from "./targets-BlVk-r3Q.js";
|
|
10
|
+
import "./store-C_Dj8ASh.js";
|
|
11
|
+
import "./send-BNHQKlx7.js";
|
|
12
|
+
import { n as createDiscordRetryRunner, t as recordChannelActivity } from "./channel-activity-BZtWpdKA.js";
|
|
13
13
|
import "./render-6ahYfPwj.js";
|
|
14
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
15
|
-
import "./send-
|
|
14
|
+
import { t as convertMarkdownTables } from "./tables-HN31BKCH.js";
|
|
15
|
+
import "./send-DkTW0Swe.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-B6vbtrno.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "./subsystem-SgROXN1v.js";
|
|
2
|
-
import "./media-CL_yeclZ.js";
|
|
3
|
-
import "./fetch-DfIkzQUf.js";
|
|
4
|
-
import "./retry-BMUvSHT-.js";
|
|
5
|
-
import "./targets-CGN4l86v.js";
|
|
6
|
-
import "./channel-activity-hL4KZrCz.js";
|
|
7
|
-
import "./render-6ahYfPwj.js";
|
|
8
|
-
import "./tables-DkzyK4SP.js";
|
|
9
|
-
import { n as DiscordSendError, r as fetchChannelPermissionsDiscord, t as sendMessageDiscord } from "./web-BQ8-x7rj.js";
|
|
10
|
-
|
|
11
|
-
export { sendMessageDiscord };
|