wednesdayai 0.5.1-dev.36 → 0.5.1-dev.37
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/{agent-scope-cTY4-zRz.js → agent-scope-CoIdVzmg.js} +3 -3
- package/dist/{agent-turn-runner-JxDS9bU_.js → agent-turn-runner-CiEPY6RO.js} +2 -2
- package/dist/{agent-turn-runner-7LQU6Fut.js → agent-turn-runner-DKwd_tAc.js} +6 -6
- package/dist/{api-key-rotation-BCh_J5f6.js → api-key-rotation-CoKWzuyV.js} +2 -2
- package/dist/{audio-preflight-C9EHsVrE.js → audio-preflight-BV83ctbI.js} +23 -23
- package/dist/{audio-preflight-Cxyte-N3.js → audio-preflight-CKFGJslr.js} +3 -3
- package/dist/{audio-transcription-runner-CoyogVcx.js → audio-transcription-runner-B-MEt_yD.js} +1 -1
- package/dist/{audio-transcription-runner-DXlkPfwW.js → audio-transcription-runner-DRUTJgZh.js} +25 -25
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +50 -50
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +50 -50
- package/dist/bundled/session-memory/handler.js +50 -50
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chat-content-Cafge7N8.js → chat-content-01nUeO9I.js} +3 -3
- package/dist/{chat-content-Csm95kDY.js → chat-content-B2kNxQ3a.js} +39 -39
- package/dist/{chrome-H5-7mQ4m.js → chrome-DgDNUC2A.js} +4 -4
- package/dist/{chrome-D-DfD0Cv.js → chrome-kwiyU0Mr.js} +31 -31
- package/dist/{chunk-zortZzCP.js → chunk-BRJHaAd6.js} +3 -3
- package/dist/{command-queue-DfL4YmGb.js → command-queue-CRm1AADE.js} +1 -1
- package/dist/{commands-registry-Vo5C1XbD.js → commands-registry-D3lOVOa7.js} +2 -2
- package/dist/{deliver-BKt_OVTK.js → deliver-BoOCdGXY.js} +28 -28
- package/dist/{deliver-x22mTRDq.js → deliver-CgFkiA4Z.js} +1 -1
- package/dist/{diagnostic-8jsvSbYs.js → diagnostic-BSnQ1U_E.js} +3 -3
- package/dist/{errors-muW4vMSB.js → errors-CgPgYfWg.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{fetch-Ciq99DHJ.js → fetch-BBi5dEoV.js} +8 -8
- package/dist/{fetch-B9Tca1cY.js → fetch-BrwJHFZR.js} +1 -1
- package/dist/{fetch-guard-DaJwMbcY.js → fetch-guard-BcLYPGi1.js} +2 -2
- package/dist/{frontmatter-BzlMEBkz.js → frontmatter-DQTIIgFI.js} +5 -5
- package/dist/{fs-safe-CDfp5e8Q.js → fs-safe-CRbowDkj.js} +26 -26
- package/dist/{ir-BczXO28b.js → ir-D___VWlp.js} +4 -4
- package/dist/{json-files-CNVg1Wi5.js → json-files-CurKd8gy.js} +28 -28
- package/dist/{legacy-names-CRCLZarD.js → legacy-names-D7ywm6_7.js} +1 -1
- package/dist/llm-slug-generator.js +50 -50
- package/dist/{manager-ywiQQ5nv.js → manager-yAtdyPwQ.js} +18 -18
- package/dist/{markdown-tables-CmGUH7Wy.js → markdown-tables-DfqPFbkZ.js} +2 -2
- package/dist/{model-selection-BJZFC8fA.js → model-selection-B7FYf8Fo.js} +83 -83
- package/dist/{outbound-attachment-BXAhY7Q6.js → outbound-attachment-BJq1brbB.js} +2 -2
- package/dist/{outbound-message-hooks-CjfNIFcN.js → outbound-message-hooks-Dl2zci3u.js} +5 -5
- package/dist/{path-alias-guards-BV6CR8H3.js → path-alias-guards-nWrE5acE.js} +1 -1
- package/dist/{pi-embedded-BzjQS2tl.js → pi-embedded-BAKd4NmP.js} +18 -18
- package/dist/{pi-embedded-D6Ti_RiY.js → pi-embedded-_YhHvi3M.js} +258 -258
- package/dist/{pi-model-discovery-PH-bhX7g.js → pi-model-discovery-CusLASy5.js} +7 -7
- package/dist/plugin-sdk/provider-media-understanding.js +7 -7
- package/dist/{proxy-env-DXcKRnns.js → proxy-env-DrmTb0QW.js} +1 -1
- package/dist/{pw-ai-ByUzz5o2.js → pw-ai-BKN66RLi.js} +13 -13
- package/dist/{pw-ai-qlENNDHC.js → pw-ai-CPIjXEgJ.js} +1 -1
- package/dist/{qmd-manager-CPPURYfg.js → qmd-manager-BYC9bX-E.js} +12 -12
- package/dist/{qmd-scope-dd_YbPG-.js → qmd-scope-D6tMcgqR.js} +1 -1
- package/dist/{query-expansion-0S2l-J2-.js → query-expansion-CnQI0IeV.js} +13 -13
- package/dist/{recorder-CrrhLZt5.js → recorder-B7dhxQ62.js} +2 -2
- package/dist/{redact-BkE4uRXu.js → redact-CysJDryP.js} +1 -1
- package/dist/{replies-j6q2EArA.js → replies-CP8xbTSR.js} +5 -5
- package/dist/{reply-prefix-BCu_i91I.js → reply-prefix-C7r81KLS.js} +1 -1
- package/dist/{resolve-route-WUZ7lH6L.js → resolve-route-BvD1w4_v.js} +4 -4
- package/dist/{send-lY0a6iA2.js → send-4WdiWuFu.js} +8 -8
- package/dist/{send-CFG2EYja.js → send-BZv91SjC.js} +6 -6
- package/dist/{send-80rMjd6V.js → send-CjR30q4U.js} +8 -8
- package/dist/{send-D1aXT71a.js → send-bmlVFiBl.js} +7 -7
- package/dist/{session-meta-BjRAI6ON.js → session-meta-BeqTuIFU.js} +1 -1
- package/dist/{sessions-B6iaKddN.js → sessions-BjSGNjb0.js} +5 -5
- package/dist/{skill-commands-BG0ravVA.js → skill-commands-CcrQquVr.js} +8 -8
- package/dist/{store-BXWb__DD.js → store-DniD8E6a.js} +7 -7
- package/dist/{tables-CBpS5G91.js → tables-BbmkAuhA.js} +1 -1
- package/dist/{tokens-Q7TMdIpT.js → tokens-C2ll8wSq.js} +1 -1
- package/dist/{tool-loop-detection-CVIDnpv_.js → tool-loop-detection-B0Jj6y2H.js} +2 -2
- package/dist/{user-run-recording-DNsWtMOn.js → user-run-recording-COpooN64.js} +2 -2
- package/dist/{workspace-D8z8s1Xz.js → workspace-xnzx7wEV.js} +26 -26
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/kokoro/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/ui-surfaces/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/github-copilot-token-DrVydgnY.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
- package/dist/subsystem-BOg9wqSC.js +0 -2777
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as normalizeProviderId, da as ensureAuthProfileStore } from "./model-selection-
|
|
2
|
+
import { c as normalizeProviderId, da as ensureAuthProfileStore } from "./model-selection-B7FYf8Fo.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.OPENCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(syncFs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
syncFs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
syncFs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -4,7 +4,7 @@ import fs, { constants } from "node:fs";
|
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
6
|
import os, { userInfo } from "node:os";
|
|
7
|
-
import
|
|
7
|
+
import json5 from "json5";
|
|
8
8
|
import fs$1 from "node:fs/promises";
|
|
9
9
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
10
10
|
import zlib from "node:zlib";
|
|
@@ -1455,7 +1455,7 @@ const defaultResolver = {
|
|
|
1455
1455
|
resolvedPath,
|
|
1456
1456
|
rootRealDir
|
|
1457
1457
|
}),
|
|
1458
|
-
parseJson: (raw) =>
|
|
1458
|
+
parseJson: (raw) => json5.parse(raw)
|
|
1459
1459
|
};
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -1512,14 +1512,14 @@ function readLoggingConfig() {
|
|
|
1512
1512
|
try {
|
|
1513
1513
|
if (!fs.existsSync(configPath)) return;
|
|
1514
1514
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
1515
|
-
const resolvedIncludes = resolveConfigIncludes(
|
|
1515
|
+
const resolvedIncludes = resolveConfigIncludes(json5.parse(raw), configPath, {
|
|
1516
1516
|
readFile: (candidate) => fs.readFileSync(candidate, "utf-8"),
|
|
1517
1517
|
readFileWithGuards: ({ includePath, resolvedPath, rootRealDir }) => readConfigIncludeFileWithGuards({
|
|
1518
1518
|
includePath,
|
|
1519
1519
|
resolvedPath,
|
|
1520
1520
|
rootRealDir
|
|
1521
1521
|
}),
|
|
1522
|
-
parseJson: (includeRaw) =>
|
|
1522
|
+
parseJson: (includeRaw) => json5.parse(includeRaw)
|
|
1523
1523
|
});
|
|
1524
1524
|
if (resolvedIncludes && typeof resolvedIncludes === "object" && "env" in resolvedIncludes) applyConfigEnvVars(resolvedIncludes);
|
|
1525
1525
|
const resolvedConfig = resolveConfigEnvVars(resolvedIncludes);
|
|
@@ -18734,7 +18734,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
18734
18734
|
function normalizeDeps(overrides = {}) {
|
|
18735
18735
|
return {
|
|
18736
18736
|
fs: overrides.fs ?? fs,
|
|
18737
|
-
json5: overrides.json5 ??
|
|
18737
|
+
json5: overrides.json5 ?? json5,
|
|
18738
18738
|
env: overrides.env ?? process.env,
|
|
18739
18739
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
18740
18740
|
configPath: overrides.configPath ?? "",
|
|
@@ -18745,11 +18745,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
18745
18745
|
if (env !== process.env) return;
|
|
18746
18746
|
loadDotEnv({ quiet: true });
|
|
18747
18747
|
}
|
|
18748
|
-
function parseConfigJson5(raw, json5 =
|
|
18748
|
+
function parseConfigJson5(raw, json5$1 = json5) {
|
|
18749
18749
|
try {
|
|
18750
18750
|
return {
|
|
18751
18751
|
ok: true,
|
|
18752
|
-
parsed: json5.parse(raw)
|
|
18752
|
+
parsed: json5$1.parse(raw)
|
|
18753
18753
|
};
|
|
18754
18754
|
} catch (err) {
|
|
18755
18755
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as ipMatchesAnyCidr, ct as isCanonicalDottedDecimalIPv4, ht as parseLooseIpAddress, it as extractEmbeddedIpv4FromIpv6, lt as isIpv4Address, mt as parseCanonicalIpAddress, ot as isBlockedSpecialUseIpv4Address, st as isBlockedSpecialUseIpv6Address, ut as isLegacyIpv4Literal } from "./model-selection-
|
|
1
|
+
import { at as ipMatchesAnyCidr, ct as isCanonicalDottedDecimalIPv4, ht as parseLooseIpAddress, it as extractEmbeddedIpv4FromIpv6, lt as isIpv4Address, mt as parseCanonicalIpAddress, ot as isBlockedSpecialUseIpv4Address, st as isBlockedSpecialUseIpv6Address, ut as isLegacyIpv4Literal } from "./model-selection-B7FYf8Fo.js";
|
|
2
2
|
import { lookup } from "node:dns";
|
|
3
3
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
4
4
|
import { Agent } from "undici";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import { vr as formatCliCommand } from "./model-selection-
|
|
6
|
-
import "./github-copilot-token-
|
|
7
|
-
import "./legacy-names-
|
|
8
|
-
import "./redact-
|
|
9
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
10
|
-
import "./path-alias-guards-
|
|
11
|
-
import { r as formatErrorMessage } from "./errors-
|
|
12
|
-
import { s as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
13
|
-
import "./proxy-env-
|
|
1
|
+
import "./agent-scope-CoIdVzmg.js";
|
|
2
|
+
import "./paths-B_gs59ga.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-DynBFcQj.js";
|
|
4
|
+
import "./workspace-xnzx7wEV.js";
|
|
5
|
+
import { vr as formatCliCommand } from "./model-selection-B7FYf8Fo.js";
|
|
6
|
+
import "./github-copilot-token-BJeEWDJb.js";
|
|
7
|
+
import "./legacy-names-D7ywm6_7.js";
|
|
8
|
+
import "./redact-CysJDryP.js";
|
|
9
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-DgDNUC2A.js";
|
|
10
|
+
import "./path-alias-guards-nWrE5acE.js";
|
|
11
|
+
import { r as formatErrorMessage } from "./errors-CgPgYfWg.js";
|
|
12
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-CRbowDkj.js";
|
|
13
|
+
import "./proxy-env-DrmTb0QW.js";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import fs from "node:fs/promises";
|
|
16
16
|
import crypto from "node:crypto";
|
|
@@ -4,7 +4,7 @@ import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-DynBFcQj.js";
|
|
|
4
4
|
import { Sr as formatCliCommand } from "./model-selection-DZBq95qz.js";
|
|
5
5
|
import "./github-copilot-token-BJeEWDJb.js";
|
|
6
6
|
import "./redact-DsVjtfGq.js";
|
|
7
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
7
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-kwiyU0Mr.js";
|
|
8
8
|
import "./path-alias-guards-DQnGmIZb.js";
|
|
9
9
|
import { r as formatErrorMessage } from "./errors-CwBnqLdW.js";
|
|
10
10
|
import { s as writeFileFromPathWithinRoot } from "./fs-safe-C3HfjrHy.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { l as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./model-selection-
|
|
6
|
-
import "./github-copilot-token-
|
|
7
|
-
import "./legacy-names-
|
|
8
|
-
import "./redact-
|
|
9
|
-
import "./path-alias-guards-
|
|
10
|
-
import { c as writeFileWithinRoot } from "./fs-safe-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-CoIdVzmg.js";
|
|
2
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
4
|
+
import "./workspace-xnzx7wEV.js";
|
|
5
|
+
import "./model-selection-B7FYf8Fo.js";
|
|
6
|
+
import "./github-copilot-token-BJeEWDJb.js";
|
|
7
|
+
import "./legacy-names-D7ywm6_7.js";
|
|
8
|
+
import "./redact-CysJDryP.js";
|
|
9
|
+
import "./path-alias-guards-nWrE5acE.js";
|
|
10
|
+
import { c as writeFileWithinRoot } from "./fs-safe-CRbowDkj.js";
|
|
11
11
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-Dxm0ejq_.js";
|
|
12
|
-
import { a as resolveSessionMemoryStores, i as listSessionMemoryRows, n as requireNodeSqlite, o as sessionMemorySourceId, r as buildSessionMemoryEntry, t as extractKeywords, v as isFileMissingError, y as statRegularFile } from "./query-expansion-
|
|
13
|
-
import { t as isQmdScopeAllowed } from "./qmd-scope-
|
|
12
|
+
import { a as resolveSessionMemoryStores, i as listSessionMemoryRows, n as requireNodeSqlite, o as sessionMemorySourceId, r as buildSessionMemoryEntry, t as extractKeywords, v as isFileMissingError, y as statRegularFile } from "./query-expansion-CnQI0IeV.js";
|
|
13
|
+
import { t as isQmdScopeAllowed } from "./qmd-scope-D6tMcgqR.js";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import fs from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { et as isSubagentSessionKey, rt as stripAgentSessionKeyPrefix } from "./workspace-
|
|
1
|
+
import { et as isSubagentSessionKey, rt as stripAgentSessionKeyPrefix } from "./workspace-xnzx7wEV.js";
|
|
2
2
|
|
|
3
3
|
//#region src/memory/qmd-scope.ts
|
|
4
4
|
function isQmdScopeAllowed(scope, sessionKey, identity) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ln as DEFAULT_SESSION_UPDATED_AFTER_PAGE_SIZE, ta as runTasksWithConcurrency, vn as getConfiguredSessionStorageRuntime } from "./model-selection-
|
|
2
|
-
import { t as redactSensitiveText } from "./redact-
|
|
1
|
+
import { Ln as DEFAULT_SESSION_UPDATED_AFTER_PAGE_SIZE, ta as runTasksWithConcurrency, vn as getConfiguredSessionStorageRuntime } from "./model-selection-B7FYf8Fo.js";
|
|
2
|
+
import { t as redactSensitiveText } from "./redact-CysJDryP.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
6
|
-
import fs
|
|
5
|
+
import syncFs from "node:fs";
|
|
6
|
+
import fs from "node:fs/promises";
|
|
7
7
|
import crypto from "node:crypto";
|
|
8
8
|
|
|
9
9
|
//#region src/memory/fs-utils.ts
|
|
@@ -13,7 +13,7 @@ function isFileMissingError(err) {
|
|
|
13
13
|
async function statRegularFile(absPath) {
|
|
14
14
|
let stat;
|
|
15
15
|
try {
|
|
16
|
-
stat = await fs
|
|
16
|
+
stat = await fs.lstat(absPath);
|
|
17
17
|
} catch (err) {
|
|
18
18
|
if (isFileMissingError(err)) return { missing: true };
|
|
19
19
|
throw err;
|
|
@@ -29,7 +29,7 @@ async function statRegularFile(absPath) {
|
|
|
29
29
|
//#region src/memory/internal.ts
|
|
30
30
|
function ensureDir(dir) {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
syncFs.mkdirSync(dir, { recursive: true });
|
|
33
33
|
} catch {}
|
|
34
34
|
return dir;
|
|
35
35
|
}
|
|
@@ -48,7 +48,7 @@ function isMemoryPath(relPath) {
|
|
|
48
48
|
return normalized.startsWith("memory/");
|
|
49
49
|
}
|
|
50
50
|
async function walkDir(dir, files) {
|
|
51
|
-
const entries = await fs
|
|
51
|
+
const entries = await fs.readdir(dir, { withFileTypes: true });
|
|
52
52
|
for (const entry of entries) {
|
|
53
53
|
const full = path.join(dir, entry.name);
|
|
54
54
|
if (entry.isSymbolicLink()) continue;
|
|
@@ -68,7 +68,7 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
68
68
|
const memoryDir = path.join(workspaceDir, "memory");
|
|
69
69
|
const addMarkdownFile = async (absPath) => {
|
|
70
70
|
try {
|
|
71
|
-
const stat = await fs
|
|
71
|
+
const stat = await fs.lstat(absPath);
|
|
72
72
|
if (stat.isSymbolicLink() || !stat.isFile()) return;
|
|
73
73
|
if (!absPath.endsWith(".md")) return;
|
|
74
74
|
result.push(absPath);
|
|
@@ -77,12 +77,12 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
77
77
|
await addMarkdownFile(memoryFile);
|
|
78
78
|
await addMarkdownFile(altMemoryFile);
|
|
79
79
|
try {
|
|
80
|
-
const dirStat = await fs
|
|
80
|
+
const dirStat = await fs.lstat(memoryDir);
|
|
81
81
|
if (!dirStat.isSymbolicLink() && dirStat.isDirectory()) await walkDir(memoryDir, result);
|
|
82
82
|
} catch {}
|
|
83
83
|
const normalizedExtraPaths = normalizeExtraMemoryPaths(workspaceDir, extraPaths);
|
|
84
84
|
if (normalizedExtraPaths.length > 0) for (const inputPath of normalizedExtraPaths) try {
|
|
85
|
-
const stat = await fs
|
|
85
|
+
const stat = await fs.lstat(inputPath);
|
|
86
86
|
if (stat.isSymbolicLink()) continue;
|
|
87
87
|
if (stat.isDirectory()) {
|
|
88
88
|
await walkDir(inputPath, result);
|
|
@@ -96,7 +96,7 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
96
96
|
for (const entry of result) {
|
|
97
97
|
let key = entry;
|
|
98
98
|
try {
|
|
99
|
-
key = await fs
|
|
99
|
+
key = await fs.realpath(entry);
|
|
100
100
|
} catch {}
|
|
101
101
|
if (seen.has(key)) continue;
|
|
102
102
|
seen.add(key);
|
|
@@ -110,14 +110,14 @@ function hashText(value) {
|
|
|
110
110
|
async function buildFileEntry(absPath, workspaceDir) {
|
|
111
111
|
let stat;
|
|
112
112
|
try {
|
|
113
|
-
stat = await fs
|
|
113
|
+
stat = await fs.stat(absPath);
|
|
114
114
|
} catch (err) {
|
|
115
115
|
if (isFileMissingError(err)) return null;
|
|
116
116
|
throw err;
|
|
117
117
|
}
|
|
118
118
|
let content;
|
|
119
119
|
try {
|
|
120
|
-
content = await fs
|
|
120
|
+
content = await fs.readFile(absPath, "utf-8");
|
|
121
121
|
} catch (err) {
|
|
122
122
|
if (isFileMissingError(err)) return null;
|
|
123
123
|
throw err;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { pn as SessionStorageUnavailableError, vn as getConfiguredSessionStorageRuntime } from "./model-selection-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
2
|
+
import { pn as SessionStorageUnavailableError, vn as getConfiguredSessionStorageRuntime } from "./model-selection-B7FYf8Fo.js";
|
|
3
3
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-BTSwhIfk.js";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
3
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
4
|
-
import { Nt as getGlobalHookRunner } from "./sessions-
|
|
5
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
6
|
-
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-
|
|
2
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-bmlVFiBl.js";
|
|
3
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-C2ll8wSq.js";
|
|
4
|
+
import { Nt as getGlobalHookRunner } from "./sessions-BjSGNjb0.js";
|
|
5
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-BRJHaAd6.js";
|
|
6
|
+
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-Dl2zci3u.js";
|
|
7
7
|
|
|
8
8
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
9
9
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { r as resolveAgentConfig } from "./agent-scope-CoIdVzmg.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
-
import { h as shouldLogVerbose } from "./subsystem-
|
|
4
|
-
import { C as DEFAULT_AGENT_ID, D as buildAgentMainSessionKey, F as normalizeAgentId, G as normalizeAccountId, O as buildAgentPeerSessionKey, R as resolveCanonicalIdentity, V as sanitizeAgentId, W as DEFAULT_ACCOUNT_ID, w as DEFAULT_MAIN_KEY, y as logDebug } from "./workspace-
|
|
5
|
-
import { St as listBindings } from "./model-selection-
|
|
2
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-CoIdVzmg.js";
|
|
3
|
+
import { h as shouldLogVerbose } from "./subsystem-DynBFcQj.js";
|
|
4
|
+
import { C as DEFAULT_AGENT_ID, D as buildAgentMainSessionKey, F as normalizeAgentId, G as normalizeAccountId, O as buildAgentPeerSessionKey, R as resolveCanonicalIdentity, V as sanitizeAgentId, W as DEFAULT_ACCOUNT_ID, w as DEFAULT_MAIN_KEY, y as logDebug } from "./workspace-xnzx7wEV.js";
|
|
5
|
+
import { St as listBindings } from "./model-selection-B7FYf8Fo.js";
|
|
6
6
|
import { r as normalizeChatType } from "./conversation-label-Ckfze_uK.js";
|
|
7
7
|
|
|
8
8
|
//#region src/routing/resolve-route.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { Cr as resolveDiscordAccount, U as loadConfig, b as resolveRetryConfig, wr as normalizeDiscordToken, x as retryAsync } from "./model-selection-
|
|
2
|
+
import { mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
3
|
+
import { Cr as resolveDiscordAccount, U as loadConfig, b as resolveRetryConfig, wr as normalizeDiscordToken, x as retryAsync } from "./model-selection-B7FYf8Fo.js";
|
|
4
4
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CaO0zksh.js";
|
|
5
|
-
import { m as extensionForMime, x as maxBytesForKind } from "./fetch-
|
|
6
|
-
import { i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-
|
|
9
|
-
import { t as resolveFetch } from "./fetch-
|
|
5
|
+
import { m as extensionForMime, x as maxBytesForKind } from "./fetch-BBi5dEoV.js";
|
|
6
|
+
import { i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-BRJHaAd6.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DfqPFbkZ.js";
|
|
8
|
+
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-D___VWlp.js";
|
|
9
|
+
import { t as resolveFetch } from "./fetch-BrwJHFZR.js";
|
|
10
10
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BFUunM8u.js";
|
|
11
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
11
|
+
import { t as convertMarkdownTables } from "./tables-BbmkAuhA.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import { promisify } from "node:util";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { it as normalizeE164, st as resolveUserPath } from "./subsystem-
|
|
3
|
-
import { U as loadConfig, br as resolveIMessageAccount } from "./model-selection-
|
|
4
|
-
import { v as kindFromMime } from "./fetch-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
2
|
+
import { it as normalizeE164, st as resolveUserPath } from "./subsystem-DynBFcQj.js";
|
|
3
|
+
import { U as loadConfig, br as resolveIMessageAccount } from "./model-selection-B7FYf8Fo.js";
|
|
4
|
+
import { v as kindFromMime } from "./fetch-BBi5dEoV.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DfqPFbkZ.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-BbmkAuhA.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-BJq1brbB.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as avoidTrailingHighSurrogateBreak } from "./subsystem-
|
|
3
|
-
import { U as loadConfig, pr as resolveSignalAccount } from "./model-selection-
|
|
2
|
+
import { r as avoidTrailingHighSurrogateBreak } from "./subsystem-DynBFcQj.js";
|
|
3
|
+
import { U as loadConfig, pr as resolveSignalAccount } from "./model-selection-B7FYf8Fo.js";
|
|
4
4
|
import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
|
|
5
|
-
import { v as kindFromMime } from "./fetch-
|
|
6
|
-
import { o as fetchWithTimeout } from "./fetch-guard-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
9
|
-
import { t as resolveFetch } from "./fetch-
|
|
10
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
5
|
+
import { v as kindFromMime } from "./fetch-BBi5dEoV.js";
|
|
6
|
+
import { o as fetchWithTimeout } from "./fetch-guard-BcLYPGi1.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DfqPFbkZ.js";
|
|
8
|
+
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-D___VWlp.js";
|
|
9
|
+
import { t as resolveFetch } from "./fetch-BrwJHFZR.js";
|
|
10
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-BJq1brbB.js";
|
|
11
11
|
|
|
12
12
|
//#region src/signal/format.ts
|
|
13
13
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { f as logVerbose } from "./subsystem-
|
|
3
|
-
import { U as loadConfig, cr as resolveSlackAccount, dr as resolveSlackBotToken } from "./model-selection-
|
|
2
|
+
import { f as logVerbose } from "./subsystem-DynBFcQj.js";
|
|
3
|
+
import { U as loadConfig, cr as resolveSlackAccount, dr as resolveSlackBotToken } from "./model-selection-B7FYf8Fo.js";
|
|
4
4
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CaO0zksh.js";
|
|
5
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
6
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
7
|
-
import { d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
5
|
+
import { i as isSilentReplyText } from "./tokens-C2ll8wSq.js";
|
|
6
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BcLYPGi1.js";
|
|
7
|
+
import { d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-BRJHaAd6.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DfqPFbkZ.js";
|
|
9
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-D___VWlp.js";
|
|
10
10
|
import { t as renderMarkdownWithMarkers } from "./render-TpKSK5RV.js";
|
|
11
11
|
import { WebClient } from "@slack/web-api";
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Kn as resolveStorePath, wn as recordSessionMetaFromInbound } from "./model-selection-
|
|
2
|
+
import { Kn as resolveStorePath, wn as recordSessionMetaFromInbound } from "./model-selection-B7FYf8Fo.js";
|
|
3
3
|
|
|
4
4
|
//#region src/channels/session-meta.ts
|
|
5
5
|
var session_meta_exports = /* @__PURE__ */ __exportAll({ recordInboundSessionMetaSafe: () => recordInboundSessionMetaSafe });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as resolveStateDir } from "./paths-
|
|
2
|
-
import { ft as sliceUtf16Safe, it as normalizeE164, pt as truncateUtf16Safe, t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
2
|
+
import { ft as sliceUtf16Safe, it as normalizeE164, pt as truncateUtf16Safe, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { $ as isCronTriggerSessionKey, A as computeIdentityLinkMatchKeys, C as DEFAULT_AGENT_ID, D as buildAgentMainSessionKey, E as RAW_PEER_KEY_PREFIX, F as normalizeAgentId, I as normalizeMainKey, J as HEARTBEAT_SESSION_KEY_SEGMENT, R as resolveCanonicalIdentity, Y as WAKE_GATE_SESSION_KEY_SEGMENT, j as computeIdentityLinkScopedMatchKey, q as BACKGROUND_SESSION_KEY_SEGMENT, tt as parseAgentSessionKey, z as resolveConfiguredCanonicalIdentity } from "./workspace-
|
|
5
|
-
import { $r as parseRetryPolicy, Bn as SESSION_RUN_STORE_FILE_NAME, Br as normalizeMessageChannel, Dn as updateSessionStore, Hn as resolveSessionFilePath, In as serializeSessionIndexRecordKey, Jn as resolveGroupSessionKey, Kn as resolveStorePath, Qr as isRetryExhausted, Rn as resolveUpdatedAfterPageSize, U as loadConfig, Vn as resolveDefaultSessionStorePath, Yr as CtxProjectionCorruptionError, Zr as computeNextAvailableAtMs, bn as loadSessionStore, ei as serializeRetryPolicy, fn as getConversationReadQuery, kn as DEFAULT_IDLE_MINUTES, mn as requireSessionStorageRuntime, vn as getConfiguredSessionStorageRuntime } from "./model-selection-
|
|
4
|
+
import { $ as isCronTriggerSessionKey, A as computeIdentityLinkMatchKeys, C as DEFAULT_AGENT_ID, D as buildAgentMainSessionKey, E as RAW_PEER_KEY_PREFIX, F as normalizeAgentId, I as normalizeMainKey, J as HEARTBEAT_SESSION_KEY_SEGMENT, R as resolveCanonicalIdentity, Y as WAKE_GATE_SESSION_KEY_SEGMENT, j as computeIdentityLinkScopedMatchKey, q as BACKGROUND_SESSION_KEY_SEGMENT, tt as parseAgentSessionKey, z as resolveConfiguredCanonicalIdentity } from "./workspace-xnzx7wEV.js";
|
|
5
|
+
import { $r as parseRetryPolicy, Bn as SESSION_RUN_STORE_FILE_NAME, Br as normalizeMessageChannel, Dn as updateSessionStore, Hn as resolveSessionFilePath, In as serializeSessionIndexRecordKey, Jn as resolveGroupSessionKey, Kn as resolveStorePath, Qr as isRetryExhausted, Rn as resolveUpdatedAfterPageSize, U as loadConfig, Vn as resolveDefaultSessionStorePath, Yr as CtxProjectionCorruptionError, Zr as computeNextAvailableAtMs, bn as loadSessionStore, ei as serializeRetryPolicy, fn as getConversationReadQuery, kn as DEFAULT_IDLE_MINUTES, mn as requireSessionStorageRuntime, vn as getConfiguredSessionStorageRuntime } from "./model-selection-B7FYf8Fo.js";
|
|
6
6
|
import { r as normalizeChatType } from "./conversation-label-Ckfze_uK.js";
|
|
7
7
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-BTSwhIfk.js";
|
|
8
8
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-C2lcxc6-.js";
|
|
9
|
-
import { n as formatErrorChainMessage } from "./errors-
|
|
9
|
+
import { n as formatErrorChainMessage } from "./errors-CgPgYfWg.js";
|
|
10
10
|
import { a as guardVerificationStoreInputs, i as clientResumeRecordArtifactId, n as VERIFICATION_STORE_ERROR_CODES, r as VerificationStoreError, t as CLIENT_RESUME_RECORD_KIND } from "./verification-store-CNZTSFlK.js";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import path, { join } from "node:path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveAgentWorkspaceDir, n as listAgentIds, s as resolveAgentSkillsFilter } from "./agent-scope-
|
|
3
|
-
import { l as resolveStateDir } from "./paths-
|
|
4
|
-
import { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, n as listAgentIds, s as resolveAgentSkillsFilter } from "./agent-scope-CoIdVzmg.js";
|
|
3
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
4
|
+
import { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
5
5
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
6
|
-
import { i as buildWorkspaceSkillCommandSpecs, t as createAsyncLock, u as resolvePluginSkillDirs } from "./json-files-
|
|
7
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
6
|
+
import { i as buildWorkspaceSkillCommandSpecs, t as createAsyncLock, u as resolvePluginSkillDirs } from "./json-files-CurKd8gy.js";
|
|
7
|
+
import { a as listChatCommands } from "./commands-registry-D3lOVOa7.js";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import syncFs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
@@ -248,13 +248,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
248
248
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
249
249
|
for (const agentId of agentIds) {
|
|
250
250
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
251
|
-
if (!
|
|
251
|
+
if (!syncFs.existsSync(workspaceDir)) {
|
|
252
252
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
253
253
|
continue;
|
|
254
254
|
}
|
|
255
255
|
let canonicalDir;
|
|
256
256
|
try {
|
|
257
|
-
canonicalDir =
|
|
257
|
+
canonicalDir = syncFs.realpathSync(workspaceDir);
|
|
258
258
|
} catch {
|
|
259
259
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
260
260
|
continue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ot as resolveConfigDir } from "./subsystem-
|
|
2
|
-
import { m as extensionForMime, p as detectMime } from "./fetch-
|
|
1
|
+
import { ot as resolveConfigDir } from "./subsystem-DynBFcQj.js";
|
|
2
|
+
import { m as extensionForMime, p as detectMime } from "./fetch-BBi5dEoV.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import fs
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ const MEDIA_FILE_MODE = 420;
|
|
|
14
14
|
async function setMediaFileMode(filePath) {
|
|
15
15
|
if (process.platform === "win32") return;
|
|
16
16
|
try {
|
|
17
|
-
await fs
|
|
17
|
+
await fs.chmod(filePath, MEDIA_FILE_MODE);
|
|
18
18
|
} catch (err) {
|
|
19
19
|
const code = err && typeof err === "object" && "code" in err ? String(err.code) : "";
|
|
20
20
|
if ([
|
|
@@ -41,7 +41,7 @@ function getMediaDir() {
|
|
|
41
41
|
}
|
|
42
42
|
async function ensureMediaDir() {
|
|
43
43
|
const mediaDir = resolveMediaDir();
|
|
44
|
-
await fs
|
|
44
|
+
await fs.mkdir(mediaDir, {
|
|
45
45
|
recursive: true,
|
|
46
46
|
mode: 448
|
|
47
47
|
});
|
|
@@ -50,7 +50,7 @@ async function ensureMediaDir() {
|
|
|
50
50
|
async function saveMediaBuffer(buffer, contentType, subdir = "inbound", maxBytes = MAX_BYTES, originalFilename) {
|
|
51
51
|
if (buffer.byteLength > maxBytes) throw new Error(`Media exceeds ${(maxBytes / (1024 * 1024)).toFixed(0)}MB limit`);
|
|
52
52
|
const dir = path.join(resolveMediaDir(), subdir);
|
|
53
|
-
await fs
|
|
53
|
+
await fs.mkdir(dir, {
|
|
54
54
|
recursive: true,
|
|
55
55
|
mode: 448
|
|
56
56
|
});
|
|
@@ -70,7 +70,7 @@ async function saveMediaBuffer(buffer, contentType, subdir = "inbound", maxBytes
|
|
|
70
70
|
id = sanitized ? `${sanitized}---${uuid}${ext}` : `${uuid}${ext}`;
|
|
71
71
|
} else id = ext ? `${uuid}${ext}` : uuid;
|
|
72
72
|
const dest = path.join(dir, id);
|
|
73
|
-
await fs
|
|
73
|
+
await fs.writeFile(dest, buffer, { mode: MEDIA_FILE_MODE });
|
|
74
74
|
await setMediaFileMode(dest);
|
|
75
75
|
return {
|
|
76
76
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import "./paths-B_gs59ga.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
3
3
|
import { t as isPlainObject } from "./plain-object-Doc_YkH1.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DBBnME5O.js";
|
|
4
|
-
import { i as summarizeSessionRunPrompt, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-
|
|
4
|
+
import { i as summarizeSessionRunPrompt, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-B7dhxQ62.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/lanes.ts
|