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.
Files changed (26) hide show
  1. package/dist/{accounts-D14FruTh.js → accounts-BvXnQloJ.js} +1 -1
  2. package/dist/boot/handler.js +17 -17
  3. package/dist/build-info.json +3 -3
  4. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  5. package/dist/{channel-activity-hL4KZrCz.js → channel-activity-BZtWpdKA.js} +2 -2
  6. package/dist/command-logger/handler.js +1 -1
  7. package/dist/daemon-cli.js +6 -6
  8. package/dist/{fetch-DfIkzQUf.js → fetch-1v6uP2tC.js} +1 -1
  9. package/dist/{media-CL_yeclZ.js → media-BeBx3iHu.js} +6 -6
  10. package/dist/{outbound-attachment-IiFdwCgL.js → outbound-attachment-CvF-d7SO.js} +2 -2
  11. package/dist/{retry-BMUvSHT-.js → retry-bFj4k6Ii.js} +1 -1
  12. package/dist/{secure-random-CEvvWsIn.js → secure-random-BJve6bb_.js} +1 -1
  13. package/dist/{send-5MHyaMbs.js → send-B1iHZJdx.js} +6 -6
  14. package/dist/{send-BoBSao7-.js → send-BHlgcDpz.js} +3 -3
  15. package/dist/{send-HgAUzRGX.js → send-BNHQKlx7.js} +7 -7
  16. package/dist/{send-DoHcAZmG.js → send-Cf2gNkoT.js} +4 -4
  17. package/dist/{send-2FSGylak.js → send-DkTW0Swe.js} +7 -7
  18. package/dist/send-mVVMFwmx.js +11 -0
  19. package/dist/{store-CpMmpJi6.js → store-C_Dj8ASh.js} +2 -2
  20. package/dist/{subsystem-SgROXN1v.js → subsystem-rxNDBm7l.js} +2 -2
  21. package/dist/{tables-DkzyK4SP.js → tables-HN31BKCH.js} +1 -1
  22. package/dist/{targets-CGN4l86v.js → targets-BlVk-r3Q.js} +3 -3
  23. package/dist/{usage-DGwcP_BH.js → usage-CAM9Q3bX.js} +4 -4
  24. package/dist/{web-BQ8-x7rj.js → web-BnhT_Tfr.js} +14 -14
  25. package/package.json +1 -1
  26. package/dist/send-B6vbtrno.js +0 -11
@@ -1,4 +1,4 @@
1
- import { B as createAccountListHelpers, V as resolveAccountEntry, ft as normalizeAccountId } from "./media-CL_yeclZ.js";
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");
@@ -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-SgROXN1v.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-CL_yeclZ.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-DGwcP_BH.js";
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-D14FruTh.js";
6
- import { t as generateSecureUuid } from "../secure-random-CEvvWsIn.js";
7
- import "../fetch-DfIkzQUf.js";
8
- import "../retry-BMUvSHT-.js";
9
- import "../targets-CGN4l86v.js";
10
- import { n as markdownToSignalTextChunks, t as sendMessageSignal } from "../send-DoHcAZmG.js";
11
- import "../store-CpMmpJi6.js";
12
- import "../outbound-attachment-IiFdwCgL.js";
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-BQ8-x7rj.js");
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-2FSGylak.js");
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-B6vbtrno.js");
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-BoBSao7-.js");
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-HgAUzRGX.js");
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-5MHyaMbs.js");
55
+ const { sendMessageIMessage } = await import("../send-B1iHZJdx.js");
56
56
  return await sendMessageIMessage(...args);
57
57
  }
58
58
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0-next.d54da3b",
3
- "commit": "d54da3b6109be1f4e3233fe491b52a7cf6e18fc6",
4
- "builtAt": "2026-03-08T07:32:16.029Z"
2
+ "version": "0.1.0-next.e183536",
3
+ "commit": "e1835361aef101b3e4167660f5f2ad513643e1e4",
4
+ "builtAt": "2026-03-08T07:15:09.998Z"
5
5
  }
@@ -1 +1 @@
1
- 9e4cfbe98927e3313bac55ca2dfc5afd3c932d55075023aa159d9156e62fc770
1
+ dca3b091069d3b1a83665450bb68a966b98736fb43428e002b12754de94319a4
@@ -1,5 +1,5 @@
1
- import { T as resolveNodeRequireFromMeta, t as createSubsystemLogger } from "./subsystem-SgROXN1v.js";
2
- import { n as retryAsync, t as resolveRetryConfig } from "./retry-BMUvSHT-.js";
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-SgROXN1v.js";
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";
@@ -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 JSON5 from "json5";
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 = JSON5.parse(raw)?.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) => JSON5.parse(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 ?? 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 = 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,4 +1,4 @@
1
- import { y as bindAbortRelay } from "./media-CL_yeclZ.js";
1
+ import { y as bindAbortRelay } from "./media-BeBx3iHu.js";
2
2
 
3
3
  //#region src/infra/fetch.ts
4
4
  const wrapFetchWithAbortSignalMarker = Symbol.for("remoteclaw.fetch.abort-signal-wrapped");
@@ -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-SgROXN1v.js";
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 JSON5 from "json5";
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) => JSON5.parse(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 ?? 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 = 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-CL_yeclZ.js";
2
- import { t as saveMediaBuffer } from "./store-CpMmpJi6.js";
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 { h as sleep } from "./subsystem-SgROXN1v.js";
1
+ import { h as sleep } from "./subsystem-rxNDBm7l.js";
2
2
 
3
3
  //#region src/infra/retry.ts
4
4
  const DEFAULT_RETRY_CONFIG = {
@@ -1,4 +1,4 @@
1
- import { B as createAccountListHelpers, V as resolveAccountEntry, ft as normalizeAccountId } from "./media-CL_yeclZ.js";
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-SgROXN1v.js";
2
- import { p as resolveMarkdownTableMode, s as mediaKindFromMime, x as loadConfig } from "./media-CL_yeclZ.js";
3
- import { t as resolveIMessageAccount } from "./accounts-D14FruTh.js";
4
- import "./store-CpMmpJi6.js";
5
- import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-IiFdwCgL.js";
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-DkzyK4SP.js";
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-SgROXN1v.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-CL_yeclZ.js";
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-HgAUzRGX.js";
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-SgROXN1v.js";
2
- import "./media-CL_yeclZ.js";
3
- import "./secure-random-CEvvWsIn.js";
4
- import "./fetch-DfIkzQUf.js";
5
- import { t as sendMessageSignal } from "./send-DoHcAZmG.js";
6
- import "./store-CpMmpJi6.js";
7
- import "./outbound-attachment-IiFdwCgL.js";
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-CL_yeclZ.js";
2
- import { n as resolveSignalAccount, t as generateSecureUuid } from "./secure-random-CEvvWsIn.js";
3
- import { t as resolveFetch } from "./fetch-DfIkzQUf.js";
4
- import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-IiFdwCgL.js";
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-SgROXN1v.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-CL_yeclZ.js";
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-DfIkzQUf.js";
5
- import "./retry-BMUvSHT-.js";
6
- import { a as formatErrorMessage, i as extractErrorCode, o as formatUncaughtError, r as createTelegramRetryRunner, s as redactSensitiveText, t as recordChannelActivity } from "./channel-activity-hL4KZrCz.js";
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 JSON5 from "json5";
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 = JSON5.parse(raw);
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-SgROXN1v.js";
2
- import { n as detectMime, r as extensionForMime } from "./media-CL_yeclZ.js";
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 JSON5 from "json5";
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 = JSON5.parse(raw)?.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,4 +1,4 @@
1
- import { u as markdownToIRWithMeta } from "./media-CL_yeclZ.js";
1
+ import { u as markdownToIRWithMeta } from "./media-BeBx3iHu.js";
2
2
  import { t as renderMarkdownWithMarkers } from "./render-6ahYfPwj.js";
3
3
 
4
4
  //#region src/markdown/tables.ts
@@ -1,7 +1,7 @@
1
- import { R as resolveDiscordAccount, z as normalizeDiscordToken } from "./media-CL_yeclZ.js";
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-DfIkzQUf.js";
4
- import { n as retryAsync, t as resolveRetryConfig } from "./retry-BMUvSHT-.js";
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-SgROXN1v.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-CL_yeclZ.js";
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-D14FruTh.js";
5
- import { n as resolveSignalAccount } from "./secure-random-CEvvWsIn.js";
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-SgROXN1v.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-CL_yeclZ.js";
3
- import { N as INPUT_PROVENANCE_KIND_VALUES } from "./usage-DGwcP_BH.js";
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-D14FruTh.js";
6
- import { t as generateSecureUuid } from "./secure-random-CEvvWsIn.js";
7
- import "./fetch-DfIkzQUf.js";
8
- import "./retry-BMUvSHT-.js";
9
- import { n as resolveDiscordTarget, t as parseDiscordTarget } from "./targets-CGN4l86v.js";
10
- import "./store-CpMmpJi6.js";
11
- import "./send-HgAUzRGX.js";
12
- import { n as createDiscordRetryRunner, t as recordChannelActivity } from "./channel-activity-hL4KZrCz.js";
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-DkzyK4SP.js";
15
- import "./send-2FSGylak.js";
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 JSON5 from "json5";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remoteclaw",
3
- "version": "0.1.0-next.d54da3b",
3
+ "version": "0.1.0-next.e183536",
4
4
  "description": "Multi-channel AI gateway with extensible messaging integrations",
5
5
  "keywords": [
6
6
  "agent",
@@ -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 };