squidclaw 3.0.21 → 3.0.23
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-DwGoZKGm.js → accounts-B6F_XCgS.js} +17 -17
- package/dist/{accounts-DjhBQg_8.js → accounts-Bkb-J8V6.js} +2 -2
- package/dist/{accounts-C7pGQPcS.js → accounts-s5e9zidf.js} +2 -2
- package/dist/{active-listener-DPc_PGsA.js → active-listener-6-Svu8Dx.js} +2 -2
- package/dist/{api-key-rotation-DVyYtQxC.js → api-key-rotation-TRwuCWbu.js} +2 -2
- package/dist/{audio-preflight-BUCBED7N.js → audio-preflight-1KULThhV.js} +32 -32
- package/dist/{audio-transcription-runner-Cv0Q47cM.js → audio-transcription-runner-C3N9eAGM.js} +12 -12
- package/dist/{audit-membership-runtime-DyLj-uhz.js → audit-membership-runtime-w23FnNAN.js} +4 -4
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/{channel-activity-CPpt4XaL.js → channel-activity-CxJbx4sD.js} +3 -3
- package/dist/{chrome-OgCChbC_.js → chrome-Qbvnl6so.js} +18 -18
- package/dist/{commands-registry-BJjv8_oR.js → commands-registry-B44COZFz.js} +4 -4
- package/dist/{deliver-DMTUTpTM.js → deliver-BC5egJvm.js} +21 -21
- package/dist/deliver-runtime-B6NtHUuv.js +36 -0
- package/dist/deps-send-discord.runtime-CUTAK2hy.js +26 -0
- package/dist/deps-send-imessage.runtime-CQOiEIuA.js +25 -0
- package/dist/deps-send-signal.runtime-wN7MkzLw.js +24 -0
- package/dist/deps-send-slack.runtime-HEEwW4uU.js +22 -0
- package/dist/deps-send-telegram.runtime-DHlcnjQO.js +27 -0
- package/dist/deps-send-whatsapp.runtime-C2x2R2Ow.js +60 -0
- package/dist/{diagnostic-CnVwZNbm.js → diagnostic-C2lklhkn.js} +2 -2
- package/dist/{errors-kkRuS2Cs.js → errors-DfgAh2Ml.js} +1 -1
- package/dist/{fetch-DP-JjB6Z.js → fetch-b8tSR7_e.js} +5 -5
- package/dist/{fetch-guard-BDy975wP.js → fetch-guard-D16tjNsZ.js} +2 -2
- package/dist/{frontmatter-Cq1TcIQ2.js → frontmatter-CjKtFduT.js} +3 -3
- package/dist/{fs-safe-BoB4X3GD.js → fs-safe-CwHbZdFH.js} +4 -4
- package/dist/{github-copilot-token-B5cPlwaz.js → github-copilot-token-Cw3tAXM9.js} +7 -7
- package/dist/{image-kKMG59st.js → image-ByqExb8z.js} +6 -6
- package/dist/{image-ops-Dg8iraUV.js → image-ops-BoN1E_WZ.js} +2 -2
- package/dist/image-runtime-BSVF52oe.js +29 -0
- package/dist/{ir-CKK03mBV.js → ir-Dut0zXyS.js} +8 -8
- package/dist/{legacy-names-aGJJuzM_.js → legacy-names-B0wgIP0Q.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-CnTSBL7T.js → logger-oGKcCLZ5.js} +7 -7
- package/dist/{login-CeKDrz6_.js → login-DJ357UQV.js} +5 -5
- package/dist/{login-qr-KbOpR0GQ.js → login-qr-C0fDBnpM.js} +10 -10
- package/dist/{manager-DINhLnMi.js → manager-BPGhs30n.js} +13 -13
- package/dist/manager-runtime-BB9lcoFR.js +18 -0
- package/dist/{model-selection-DuNLFQPR.js → model-selection-CHnojCCK.js} +43 -43
- package/dist/{outbound-attachment-DwupUxYF.js → outbound-attachment-rlW7G5df.js} +2 -2
- package/dist/{outbound-C9svt6RH.js → outbound-qTioiTJg.js} +6 -6
- package/dist/{path-alias-guards-DORgbZ1w.js → path-alias-guards-Cpsiv2KL.js} +1 -1
- package/dist/{paths-DA5srn0U.js → paths-CSdAWKDO.js} +5 -5
- package/dist/{paths-DSd911Oe.js → paths-CXClY8zC.js} +4 -4
- package/dist/{pi-embedded-BiC4tIJ8.js → pi-embedded-DUtpCH0X.js} +162 -162
- package/dist/{pi-embedded-helpers-Di58J7Eh.js → pi-embedded-helpers-CYR1UemI.js} +52 -52
- package/dist/{pi-model-discovery-V-InbjOM.js → pi-model-discovery-o-WX5w2t.js} +7 -7
- package/dist/pi-model-discovery-runtime-DBkQoIJw.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-Bpk4qTgV.js → pi-tools.before-tool-call.runtime-B_LUttg1.js} +9 -9
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/{plugins-DvejjZnJ.js → plugins-AqsVZZk3.js} +11 -11
- package/dist/{proxy-env-D-fike7s.js → proxy-env-DXXfs2WL.js} +1 -1
- package/dist/{proxy-fetch-lH6RsRTE.js → proxy-fetch-C2v-Utgg.js} +1 -1
- package/dist/{pw-ai-B8ymIYub.js → pw-ai-1NQPuno2.js} +14 -14
- package/dist/{qmd-manager-BN0siR2Z.js → qmd-manager-CO-shcLU.js} +10 -10
- package/dist/{query-expansion-Dzxt6kXo.js → query-expansion-DlQOkf-g.js} +6 -6
- package/dist/{redact-DvzicBMu.js → redact-NmPEVjIo.js} +1 -1
- package/dist/{run-with-concurrency-BFR3ReeF.js → run-with-concurrency-FczpX8ng.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-DumUjKRz.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Cgu2MfqR.js +22 -0
- package/dist/{send-dTQd-IyJ.js → send-B5QEmMJ4.js} +5 -5
- package/dist/{send-DdBbRpTP.js → send-B9H0BkfO.js} +6 -6
- package/dist/{send-4nRsZJXH.js → send-Bx9CqcZr.js} +7 -7
- package/dist/{send-BGlcHjUD.js → send-D5D0ZGht.js} +26 -26
- package/dist/{send-BTUU1jWM.js → send-DtHQ7_6Z.js} +8 -8
- package/dist/{session-CnCwDJke.js → session-DLTCuoUD.js} +8 -8
- package/dist/{skill-commands-Cz45_nme.js → skill-commands-BwTLQRR8.js} +9 -9
- package/dist/{skills-CdCS1HeL.js → skills-B9N2bqKU.js} +22 -22
- package/dist/slash-commands.runtime-CjBXruwG.js +16 -0
- package/dist/slash-dispatch.runtime-CGd3HarH.js +56 -0
- package/dist/slash-skill-commands.runtime-DYK20Lxf.js +20 -0
- package/dist/{store-D9z0dn7D.js → store-CvQ41zCV.js} +2 -2
- package/dist/subagent-registry-runtime-m9bFJFix.js +56 -0
- package/dist/{subsystem-6v7sWnAD.js → subsystem-BaLYRf7D.js} +14 -14
- package/dist/{tables-BTFiZyRU.js → tables-BRYYxYs7.js} +1 -1
- package/dist/{target-errors-DgNRx3Nr.js → target-errors-D0ZJUbbf.js} +2 -2
- package/dist/{thinking-B75CXkTT.js → thinking-B-A99X3F.js} +7 -7
- package/dist/{tokens-DfbMVF9y.js → tokens-D2XhLqIz.js} +1 -1
- package/dist/{tool-images-Dp5OiXeA.js → tool-images-Zn6jVmkX.js} +2 -2
- package/dist/{web-QsxgXbNK.js → web-CEdWU_u3.js} +55 -55
- package/dist/{whatsapp-actions-CzqsuSGx.js → whatsapp-actions-Cuy0qeQK.js} +21 -21
- package/dist/{workspace-kVMIaBrV.js → workspace-TqfVSQuO.js} +20 -20
- package/docs/reference/templates/IDENTITY.md +14 -0
- package/docs/reference/templates/MEMORY.md +3 -0
- package/docs/reference/templates/USER.md +9 -0
- package/package.json +1 -1
- package/dist/deliver-runtime-B80olQwJ.js +0 -36
- package/dist/deps-send-discord.runtime-GIuvX7Xw.js +0 -26
- package/dist/deps-send-imessage.runtime-B3TC7G80.js +0 -25
- package/dist/deps-send-signal.runtime-CuVJyw7n.js +0 -24
- package/dist/deps-send-slack.runtime-cbfFoLZ4.js +0 -22
- package/dist/deps-send-telegram.runtime-CRyP-xDQ.js +0 -27
- package/dist/deps-send-whatsapp.runtime-4aOUBP2J.js +0 -60
- package/dist/image-runtime-BqIv7p_K.js +0 -29
- package/dist/manager-runtime-D6ckUNSs.js +0 -18
- package/dist/pi-model-discovery-runtime--t6tAlar.js +0 -11
- package/dist/runtime-whatsapp-login.runtime-DxV9iv6l.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-DQqIlwhS.js +0 -22
- package/dist/slash-commands.runtime-CZz6v6b3.js +0 -16
- package/dist/slash-dispatch.runtime-SO7HOe8q.js +0 -56
- package/dist/slash-skill-commands.runtime-Bawt7j0r.js +0 -20
- package/dist/subagent-registry-runtime-D2rUxU5J.js +0 -56
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as createSubsystemLogger, w as resolvePreferredSquidClawTmpDir } from "./subsystem-
|
|
2
|
-
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-
|
|
3
|
-
import { a as CONFIG_DIR } from "./logger-
|
|
4
|
-
import { Ct as isPrivateOrLoopbackIpAddress, St as isLoopbackIpAddress, X as loadConfig, wt as normalizeIpAddress } from "./model-selection-
|
|
5
|
-
import { a as isErrno } from "./errors-
|
|
6
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
7
|
-
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { t as createSubsystemLogger, w as resolvePreferredSquidClawTmpDir } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-TqfVSQuO.js";
|
|
3
|
+
import { a as CONFIG_DIR } from "./logger-oGKcCLZ5.js";
|
|
4
|
+
import { Ct as isPrivateOrLoopbackIpAddress, St as isLoopbackIpAddress, X as loadConfig, wt as normalizeIpAddress } from "./model-selection-CHnojCCK.js";
|
|
5
|
+
import { a as isErrno } from "./errors-DfgAh2Ml.js";
|
|
6
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-CwHbZdFH.js";
|
|
7
|
+
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-DXXfs2WL.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fs$1 from "node:fs";
|
|
12
12
|
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import { createHmac } from "node:crypto";
|
|
14
14
|
import net from "node:net";
|
|
@@ -1595,7 +1595,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1595
1595
|
]);
|
|
1596
1596
|
function exists$1(filePath) {
|
|
1597
1597
|
try {
|
|
1598
|
-
return
|
|
1598
|
+
return fs$1.existsSync(filePath);
|
|
1599
1599
|
} catch {
|
|
1600
1600
|
return false;
|
|
1601
1601
|
}
|
|
@@ -1738,7 +1738,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
function readDesktopExecLine(desktopPath) {
|
|
1740
1740
|
try {
|
|
1741
|
-
const lines =
|
|
1741
|
+
const lines = fs$1.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1742
1742
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1743
1743
|
} catch {}
|
|
1744
1744
|
return null;
|
|
@@ -1996,7 +1996,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
1996
1996
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
1997
1997
|
function resolveLsofCommandSync() {
|
|
1998
1998
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
1999
|
-
|
|
1999
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
2000
2000
|
return candidate;
|
|
2001
2001
|
} catch {}
|
|
2002
2002
|
return "lsof";
|
|
@@ -2041,8 +2041,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
function safeReadJson(filePath) {
|
|
2043
2043
|
try {
|
|
2044
|
-
if (!
|
|
2045
|
-
const raw =
|
|
2044
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
2045
|
+
const raw = fs$1.readFileSync(filePath, "utf-8");
|
|
2046
2046
|
const parsed = JSON.parse(raw);
|
|
2047
2047
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2048
2048
|
return parsed;
|
|
@@ -2051,8 +2051,8 @@ function safeReadJson(filePath) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
function safeWriteJson(filePath, data) {
|
|
2054
|
-
|
|
2055
|
-
|
|
2054
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2055
|
+
fs$1.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2056
2056
|
}
|
|
2057
2057
|
function setDeep(obj, keys, value) {
|
|
2058
2058
|
let node = obj;
|
|
@@ -2179,7 +2179,7 @@ function decorateSquidClawProfile(userDataDir, opts) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
safeWriteJson(preferencesPath, prefs);
|
|
2181
2181
|
try {
|
|
2182
|
-
|
|
2182
|
+
fs$1.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2183
2183
|
} catch {}
|
|
2184
2184
|
}
|
|
2185
2185
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2195,7 +2195,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2195
2195
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2196
2196
|
function exists(filePath) {
|
|
2197
2197
|
try {
|
|
2198
|
-
return
|
|
2198
|
+
return fs$1.existsSync(filePath);
|
|
2199
2199
|
} catch {
|
|
2200
2200
|
return false;
|
|
2201
2201
|
}
|
|
@@ -2293,7 +2293,7 @@ async function launchSquidClawChrome(resolved, profile) {
|
|
|
2293
2293
|
const exe = resolveBrowserExecutable(resolved);
|
|
2294
2294
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2295
2295
|
const userDataDir = resolveSquidClawUserDataDir(profile.name);
|
|
2296
|
-
|
|
2296
|
+
fs$1.mkdirSync(userDataDir, { recursive: true });
|
|
2297
2297
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_SQUIDCLAW_BROWSER_COLOR).toUpperCase());
|
|
2298
2298
|
const spawnOnce = () => {
|
|
2299
2299
|
const args = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as isPlainObject, u as escapeRegExp } from "./logger-
|
|
2
|
-
import { Jt as getActivePluginRegistry, br as DEFAULT_MODEL, u as resolveConfiguredModelRef, xr as DEFAULT_PROVIDER } from "./model-selection-
|
|
3
|
-
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
1
|
+
import { D as isPlainObject, u as escapeRegExp } from "./logger-oGKcCLZ5.js";
|
|
2
|
+
import { Jt as getActivePluginRegistry, br as DEFAULT_MODEL, u as resolveConfiguredModelRef, xr as DEFAULT_PROVIDER } from "./model-selection-CHnojCCK.js";
|
|
3
|
+
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-B-A99X3F.js";
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins-AqsVZZk3.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
7
7
|
function resolveAutoDefault(providerId) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, K as normalizeOptionalAccountId } from "./workspace-
|
|
4
|
-
import { Jt as getActivePluginRegistry, Xt as getActivePluginRegistryVersion } from "./model-selection-
|
|
5
|
-
import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-
|
|
6
|
-
import { d as getChannelDock } from "./thinking-
|
|
7
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
8
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
1
|
+
import { c as resolveStateDir } from "./paths-CSdAWKDO.js";
|
|
2
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { G as normalizeAccountId, K as normalizeOptionalAccountId } from "./workspace-TqfVSQuO.js";
|
|
4
|
+
import { Jt as getActivePluginRegistry, Xt as getActivePluginRegistryVersion } from "./model-selection-CHnojCCK.js";
|
|
5
|
+
import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-B0wgIP0Q.js";
|
|
6
|
+
import { d as getChannelDock } from "./thinking-B-A99X3F.js";
|
|
7
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-D2XhLqIz.js";
|
|
8
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-AqsVZZk3.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
|
|
10
10
|
import { r as parseTelegramTarget } from "./targets-BiE9e9-P.js";
|
|
11
|
-
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
12
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
13
|
-
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-
|
|
14
|
-
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
11
|
+
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-CYR1UemI.js";
|
|
12
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-b8tSR7_e.js";
|
|
13
|
+
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-Dut0zXyS.js";
|
|
14
|
+
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-B5QEmMJ4.js";
|
|
15
15
|
import path from "node:path";
|
|
16
|
-
import
|
|
16
|
+
import fs from "node:fs";
|
|
17
17
|
|
|
18
18
|
//#region src/plugins/hooks.ts
|
|
19
19
|
/**
|
|
@@ -1081,11 +1081,11 @@ function resolveFailedDir(stateDir) {
|
|
|
1081
1081
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
1082
1082
|
async function ensureQueueDir(stateDir) {
|
|
1083
1083
|
const queueDir = resolveQueueDir(stateDir);
|
|
1084
|
-
await
|
|
1084
|
+
await fs.promises.mkdir(queueDir, {
|
|
1085
1085
|
recursive: true,
|
|
1086
1086
|
mode: 448
|
|
1087
1087
|
});
|
|
1088
|
-
await
|
|
1088
|
+
await fs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
1089
1089
|
recursive: true,
|
|
1090
1090
|
mode: 448
|
|
1091
1091
|
});
|
|
@@ -1112,18 +1112,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
1112
1112
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
1113
1113
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1114
1114
|
const json = JSON.stringify(entry, null, 2);
|
|
1115
|
-
await
|
|
1115
|
+
await fs.promises.writeFile(tmp, json, {
|
|
1116
1116
|
encoding: "utf-8",
|
|
1117
1117
|
mode: 384
|
|
1118
1118
|
});
|
|
1119
|
-
await
|
|
1119
|
+
await fs.promises.rename(tmp, filePath);
|
|
1120
1120
|
return id;
|
|
1121
1121
|
}
|
|
1122
1122
|
/** Remove a successfully delivered entry from the queue. */
|
|
1123
1123
|
async function ackDelivery(id, stateDir) {
|
|
1124
1124
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1125
1125
|
try {
|
|
1126
|
-
await
|
|
1126
|
+
await fs.promises.unlink(filePath);
|
|
1127
1127
|
} catch (err) {
|
|
1128
1128
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
1129
1129
|
}
|
|
@@ -1131,17 +1131,17 @@ async function ackDelivery(id, stateDir) {
|
|
|
1131
1131
|
/** Update a queue entry after a failed delivery attempt. */
|
|
1132
1132
|
async function failDelivery(id, error, stateDir) {
|
|
1133
1133
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1134
|
-
const raw = await
|
|
1134
|
+
const raw = await fs.promises.readFile(filePath, "utf-8");
|
|
1135
1135
|
const entry = JSON.parse(raw);
|
|
1136
1136
|
entry.retryCount += 1;
|
|
1137
1137
|
entry.lastAttemptAt = Date.now();
|
|
1138
1138
|
entry.lastError = error;
|
|
1139
1139
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1140
|
-
await
|
|
1140
|
+
await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
1141
1141
|
encoding: "utf-8",
|
|
1142
1142
|
mode: 384
|
|
1143
1143
|
});
|
|
1144
|
-
await
|
|
1144
|
+
await fs.promises.rename(tmp, filePath);
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
//#endregion
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./thinking-B-A99X3F.js";
|
|
10
|
+
import "./tokens-D2XhLqIz.js";
|
|
11
|
+
import "./plugins-AqsVZZk3.js";
|
|
12
|
+
import "./accounts-B6F_XCgS.js";
|
|
13
|
+
import { t as deliverOutboundPayloads } from "./deliver-BC5egJvm.js";
|
|
14
|
+
import "./accounts-s5e9zidf.js";
|
|
15
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
16
|
+
import "./pi-embedded-helpers-CYR1UemI.js";
|
|
17
|
+
import "./chrome-Qbvnl6so.js";
|
|
18
|
+
import "./frontmatter-CjKtFduT.js";
|
|
19
|
+
import "./skills-B9N2bqKU.js";
|
|
20
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
21
|
+
import "./redact-NmPEVjIo.js";
|
|
22
|
+
import "./errors-DfgAh2Ml.js";
|
|
23
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
24
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
25
|
+
import "./store-CvQ41zCV.js";
|
|
26
|
+
import "./accounts-Bkb-J8V6.js";
|
|
27
|
+
import "./paths-CXClY8zC.js";
|
|
28
|
+
import "./tool-images-Zn6jVmkX.js";
|
|
29
|
+
import "./fetch-b8tSR7_e.js";
|
|
30
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
31
|
+
import "./ir-Dut0zXyS.js";
|
|
32
|
+
import "./fetch-tZXOZ9FV.js";
|
|
33
|
+
import "./send-B5QEmMJ4.js";
|
|
34
|
+
import "./outbound-attachment-rlW7G5df.js";
|
|
35
|
+
|
|
36
|
+
export { deliverOutboundPayloads };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./plugins-AqsVZZk3.js";
|
|
10
|
+
import "./accounts-B6F_XCgS.js";
|
|
11
|
+
import { h as sendMessageDiscord } from "./send-DtHQ7_6Z.js";
|
|
12
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
13
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
+
import "./redact-NmPEVjIo.js";
|
|
15
|
+
import "./errors-DfgAh2Ml.js";
|
|
16
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
17
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
18
|
+
import "./fetch-b8tSR7_e.js";
|
|
19
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
20
|
+
import "./ir-Dut0zXyS.js";
|
|
21
|
+
import "./render-DW7AcFdD.js";
|
|
22
|
+
import "./fetch-tZXOZ9FV.js";
|
|
23
|
+
import "./channel-activity-CxJbx4sD.js";
|
|
24
|
+
import "./tables-BRYYxYs7.js";
|
|
25
|
+
|
|
26
|
+
export { sendMessageDiscord };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./plugins-AqsVZZk3.js";
|
|
10
|
+
import "./accounts-B6F_XCgS.js";
|
|
11
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
12
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
13
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
14
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
15
|
+
import "./store-CvQ41zCV.js";
|
|
16
|
+
import "./accounts-Bkb-J8V6.js";
|
|
17
|
+
import "./fetch-b8tSR7_e.js";
|
|
18
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
19
|
+
import "./ir-Dut0zXyS.js";
|
|
20
|
+
import "./render-DW7AcFdD.js";
|
|
21
|
+
import "./tables-BRYYxYs7.js";
|
|
22
|
+
import "./outbound-attachment-rlW7G5df.js";
|
|
23
|
+
import { t as sendMessageIMessage } from "./send-Bx9CqcZr.js";
|
|
24
|
+
|
|
25
|
+
export { sendMessageIMessage };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./plugins-AqsVZZk3.js";
|
|
10
|
+
import "./accounts-B6F_XCgS.js";
|
|
11
|
+
import "./accounts-s5e9zidf.js";
|
|
12
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
13
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
15
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
16
|
+
import "./store-CvQ41zCV.js";
|
|
17
|
+
import "./fetch-b8tSR7_e.js";
|
|
18
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
19
|
+
import "./ir-Dut0zXyS.js";
|
|
20
|
+
import "./fetch-tZXOZ9FV.js";
|
|
21
|
+
import { t as sendMessageSignal } from "./send-B5QEmMJ4.js";
|
|
22
|
+
import "./outbound-attachment-rlW7G5df.js";
|
|
23
|
+
|
|
24
|
+
export { sendMessageSignal };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./tokens-D2XhLqIz.js";
|
|
10
|
+
import "./plugins-AqsVZZk3.js";
|
|
11
|
+
import "./accounts-B6F_XCgS.js";
|
|
12
|
+
import { t as sendMessageSlack } from "./send-B9H0BkfO.js";
|
|
13
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
14
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
15
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
16
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
17
|
+
import "./fetch-b8tSR7_e.js";
|
|
18
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
19
|
+
import "./ir-Dut0zXyS.js";
|
|
20
|
+
import "./render-DW7AcFdD.js";
|
|
21
|
+
|
|
22
|
+
export { sendMessageSlack };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./plugins-AqsVZZk3.js";
|
|
10
|
+
import "./accounts-B6F_XCgS.js";
|
|
11
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
12
|
+
import { o as sendMessageTelegram } from "./send-D5D0ZGht.js";
|
|
13
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
+
import "./redact-NmPEVjIo.js";
|
|
15
|
+
import "./errors-DfgAh2Ml.js";
|
|
16
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
17
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
18
|
+
import "./fetch-b8tSR7_e.js";
|
|
19
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
20
|
+
import "./proxy-fetch-C2v-Utgg.js";
|
|
21
|
+
import "./ir-Dut0zXyS.js";
|
|
22
|
+
import "./render-DW7AcFdD.js";
|
|
23
|
+
import "./fetch-tZXOZ9FV.js";
|
|
24
|
+
import "./channel-activity-CxJbx4sD.js";
|
|
25
|
+
import "./proxy-CecQTx_Z.js";
|
|
26
|
+
|
|
27
|
+
export { sendMessageTelegram };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./thinking-B-A99X3F.js";
|
|
10
|
+
import "./tokens-D2XhLqIz.js";
|
|
11
|
+
import "./pi-embedded-DUtpCH0X.js";
|
|
12
|
+
import "./plugins-AqsVZZk3.js";
|
|
13
|
+
import "./accounts-B6F_XCgS.js";
|
|
14
|
+
import "./send-B9H0BkfO.js";
|
|
15
|
+
import "./send-DtHQ7_6Z.js";
|
|
16
|
+
import "./deliver-BC5egJvm.js";
|
|
17
|
+
import "./diagnostic-C2lklhkn.js";
|
|
18
|
+
import "./accounts-s5e9zidf.js";
|
|
19
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
20
|
+
import "./send-D5D0ZGht.js";
|
|
21
|
+
import "./pi-model-discovery-o-WX5w2t.js";
|
|
22
|
+
import "./pi-embedded-helpers-CYR1UemI.js";
|
|
23
|
+
import "./chrome-Qbvnl6so.js";
|
|
24
|
+
import "./frontmatter-CjKtFduT.js";
|
|
25
|
+
import "./skills-B9N2bqKU.js";
|
|
26
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
27
|
+
import "./redact-NmPEVjIo.js";
|
|
28
|
+
import "./errors-DfgAh2Ml.js";
|
|
29
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
30
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
31
|
+
import "./store-CvQ41zCV.js";
|
|
32
|
+
import "./accounts-Bkb-J8V6.js";
|
|
33
|
+
import "./paths-CXClY8zC.js";
|
|
34
|
+
import "./tool-images-Zn6jVmkX.js";
|
|
35
|
+
import "./image-ByqExb8z.js";
|
|
36
|
+
import "./audio-transcription-runner-C3N9eAGM.js";
|
|
37
|
+
import "./fetch-b8tSR7_e.js";
|
|
38
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
39
|
+
import "./api-key-rotation-TRwuCWbu.js";
|
|
40
|
+
import "./proxy-fetch-C2v-Utgg.js";
|
|
41
|
+
import "./ir-Dut0zXyS.js";
|
|
42
|
+
import "./render-DW7AcFdD.js";
|
|
43
|
+
import "./target-errors-D0ZJUbbf.js";
|
|
44
|
+
import "./commands-registry-B44COZFz.js";
|
|
45
|
+
import "./skill-commands-BwTLQRR8.js";
|
|
46
|
+
import "./fetch-tZXOZ9FV.js";
|
|
47
|
+
import "./channel-activity-CxJbx4sD.js";
|
|
48
|
+
import "./tables-BRYYxYs7.js";
|
|
49
|
+
import "./send-B5QEmMJ4.js";
|
|
50
|
+
import "./outbound-attachment-rlW7G5df.js";
|
|
51
|
+
import "./send-Bx9CqcZr.js";
|
|
52
|
+
import "./proxy-CecQTx_Z.js";
|
|
53
|
+
import "./manager-BPGhs30n.js";
|
|
54
|
+
import "./query-expansion-DlQOkf-g.js";
|
|
55
|
+
import { t as sendMessageWhatsApp } from "./outbound-qTioiTJg.js";
|
|
56
|
+
import "./session-DLTCuoUD.js";
|
|
57
|
+
import "./login-DJ357UQV.js";
|
|
58
|
+
import "./web-CEdWU_u3.js";
|
|
59
|
+
|
|
60
|
+
export { sendMessageWhatsApp };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-CHnojCCK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/diagnostic-events.ts
|
|
5
5
|
function getDiagnosticEventsState() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { w as resolvePreferredSquidClawTmpDir } from "./subsystem-
|
|
4
|
-
import { b as detectMime, x as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-CSdAWKDO.js";
|
|
3
|
+
import { w as resolvePreferredSquidClawTmpDir } from "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import { b as detectMime, x as extensionForMime } from "./image-ops-BoN1E_WZ.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-D16tjNsZ.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/local-roots.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as logWarn } from "./logger-
|
|
2
|
-
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { i as logWarn } from "./logger-oGKcCLZ5.js";
|
|
2
|
+
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-DXXfs2WL.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Wgx3OXYj.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as parseBooleanValue, n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-
|
|
1
|
+
import { c as parseBooleanValue, n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-B0wgIP0Q.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import fs from "node:fs";
|
|
4
4
|
import JSON5 from "json5";
|
|
5
5
|
import YAML from "yaml";
|
|
6
6
|
|
|
@@ -92,7 +92,7 @@ function hasBinary(bin) {
|
|
|
92
92
|
for (const part of parts) for (const ext of extensions) {
|
|
93
93
|
const candidate = path.join(part, bin + ext);
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
fs.accessSync(candidate, fs.constants.X_OK);
|
|
96
96
|
hasBinaryCache.set(bin, true);
|
|
97
97
|
return true;
|
|
98
98
|
} catch {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as expandHomePrefix } from "./paths-
|
|
2
|
-
import { D as isNotFoundPathError, E as hasNodeErrorCode, O as isPathInside, S as sameFileIdentity, k as isSymlinkOpenError } from "./workspace-
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { l as expandHomePrefix } from "./paths-CSdAWKDO.js";
|
|
2
|
+
import { D as isNotFoundPathError, E as hasNodeErrorCode, O as isPathInside, S as sameFileIdentity, k as isSymlinkOpenError } from "./workspace-TqfVSQuO.js";
|
|
3
|
+
import { i as logWarn } from "./logger-oGKcCLZ5.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-Cpsiv2KL.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-CSdAWKDO.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/json-file.ts
|
|
7
7
|
function loadJsonFile(pathname) {
|
|
8
8
|
try {
|
|
9
|
-
if (!
|
|
10
|
-
const raw =
|
|
9
|
+
if (!fs.existsSync(pathname)) return;
|
|
10
|
+
const raw = fs.readFileSync(pathname, "utf8");
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
} catch {
|
|
13
13
|
return;
|
|
@@ -15,12 +15,12 @@ function loadJsonFile(pathname) {
|
|
|
15
15
|
}
|
|
16
16
|
function saveJsonFile(pathname, data) {
|
|
17
17
|
const dir = path.dirname(pathname);
|
|
18
|
-
if (!
|
|
18
|
+
if (!fs.existsSync(dir)) fs.mkdirSync(dir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
mode: 448
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
fs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
23
|
+
fs.chmodSync(pathname, 384);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-
|
|
2
|
-
import { f as isRecord, x as shortenHomeInString } from "./logger-
|
|
3
|
-
import { Wn as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, ir as resolveSquidClawAgentDir, j as requireApiKey, k as getApiKeyForModel, pr as normalizeSecretInput, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
5
|
-
import { n as redactToolDetail } from "./redact-
|
|
1
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { f as isRecord, x as shortenHomeInString } from "./logger-oGKcCLZ5.js";
|
|
3
|
+
import { Wn as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, ir as resolveSquidClawAgentDir, j as requireApiKey, k as getApiKeyForModel, pr as normalizeSecretInput, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-CHnojCCK.js";
|
|
4
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-CYR1UemI.js";
|
|
5
|
+
import { n as redactToolDetail } from "./redact-NmPEVjIo.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { complete } from "@mariozechner/pi-ai";
|
|
@@ -2254,7 +2254,7 @@ function resolveProviderVisionModelFromConfig(params) {
|
|
|
2254
2254
|
//#region src/media-understanding/providers/image.ts
|
|
2255
2255
|
let piModelDiscoveryRuntimePromise = null;
|
|
2256
2256
|
function loadPiModelDiscoveryRuntime() {
|
|
2257
|
-
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime
|
|
2257
|
+
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-DBkQoIJw.js");
|
|
2258
2258
|
return piModelDiscoveryRuntimePromise;
|
|
2259
2259
|
}
|
|
2260
2260
|
async function describeImageWithModel(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as runExec } from "./workspace-
|
|
2
|
-
import { Jt as getActivePluginRegistry, Vt as CHANNEL_IDS, qt as normalizeChatChannelId } from "./model-selection-
|
|
1
|
+
import { _ as runExec } from "./workspace-TqfVSQuO.js";
|
|
2
|
+
import { Jt as getActivePluginRegistry, Vt as CHANNEL_IDS, qt as normalizeChatChannelId } from "./model-selection-CHnojCCK.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./thinking-B-A99X3F.js";
|
|
10
|
+
import "./plugins-AqsVZZk3.js";
|
|
11
|
+
import "./accounts-B6F_XCgS.js";
|
|
12
|
+
import "./accounts-s5e9zidf.js";
|
|
13
|
+
import "./image-ops-BoN1E_WZ.js";
|
|
14
|
+
import "./pi-embedded-helpers-CYR1UemI.js";
|
|
15
|
+
import "./chrome-Qbvnl6so.js";
|
|
16
|
+
import "./frontmatter-CjKtFduT.js";
|
|
17
|
+
import "./skills-B9N2bqKU.js";
|
|
18
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
19
|
+
import "./redact-NmPEVjIo.js";
|
|
20
|
+
import "./errors-DfgAh2Ml.js";
|
|
21
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
22
|
+
import "./proxy-env-DXXfs2WL.js";
|
|
23
|
+
import "./store-CvQ41zCV.js";
|
|
24
|
+
import "./accounts-Bkb-J8V6.js";
|
|
25
|
+
import "./paths-CXClY8zC.js";
|
|
26
|
+
import "./tool-images-Zn6jVmkX.js";
|
|
27
|
+
import { t as describeImageWithModel } from "./image-ByqExb8z.js";
|
|
28
|
+
|
|
29
|
+
export { describeImageWithModel };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
2
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
3
|
-
import { y as resolveUserPath } from "./logger-
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
5
|
-
import { h as resolveAccountEntry } from "./accounts-
|
|
6
|
-
import { E as kindFromMime, a as hasAlphaChannel, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, k as maxBytesForKind, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, x as extensionForMime } from "./image-ops-
|
|
7
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
8
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
1
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { G as normalizeAccountId } from "./workspace-TqfVSQuO.js";
|
|
3
|
+
import { y as resolveUserPath } from "./logger-oGKcCLZ5.js";
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins-AqsVZZk3.js";
|
|
5
|
+
import { h as resolveAccountEntry } from "./accounts-B6F_XCgS.js";
|
|
6
|
+
import { E as kindFromMime, a as hasAlphaChannel, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, k as maxBytesForKind, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, x as extensionForMime } from "./image-ops-BoN1E_WZ.js";
|
|
7
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-CwHbZdFH.js";
|
|
8
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-b8tSR7_e.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|