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,11 +1,11 @@
|
|
|
1
|
-
import { o as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { i as defaultRuntime, l as info, m as success, y as getChildLogger } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, K as normalizeOptionalAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { m as jidToE164, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { lr as formatCliCommand } from "./model-selection-
|
|
1
|
+
import { o as resolveOAuthDir } from "./paths-CSdAWKDO.js";
|
|
2
|
+
import { i as defaultRuntime, l as info, m as success, y as getChildLogger } from "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { G as normalizeAccountId, K as normalizeOptionalAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-TqfVSQuO.js";
|
|
4
|
+
import { m as jidToE164, y as resolveUserPath } from "./logger-oGKcCLZ5.js";
|
|
5
|
+
import { lr as formatCliCommand } from "./model-selection-CHnojCCK.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fs$1 from "node:fs";
|
|
9
9
|
|
|
10
10
|
//#region src/channels/plugins/account-helpers.ts
|
|
11
11
|
function createAccountListHelpers(channelKey) {
|
|
@@ -63,7 +63,7 @@ function resolveWebCredsBackupPath(authDir) {
|
|
|
63
63
|
}
|
|
64
64
|
function hasWebCredsSync(authDir) {
|
|
65
65
|
try {
|
|
66
|
-
const stats =
|
|
66
|
+
const stats = fs$1.statSync(resolveWebCredsPath(authDir));
|
|
67
67
|
return stats.isFile() && stats.size > 1;
|
|
68
68
|
} catch {
|
|
69
69
|
return false;
|
|
@@ -71,10 +71,10 @@ function hasWebCredsSync(authDir) {
|
|
|
71
71
|
}
|
|
72
72
|
function readCredsJsonRaw(filePath) {
|
|
73
73
|
try {
|
|
74
|
-
if (!
|
|
75
|
-
const stats =
|
|
74
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
75
|
+
const stats = fs$1.statSync(filePath);
|
|
76
76
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
77
|
-
return
|
|
77
|
+
return fs$1.readFileSync(filePath, "utf-8");
|
|
78
78
|
} catch {
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
@@ -92,9 +92,9 @@ function maybeRestoreCredsFromBackup(authDir) {
|
|
|
92
92
|
const backupRaw = readCredsJsonRaw(backupPath);
|
|
93
93
|
if (!backupRaw) return;
|
|
94
94
|
JSON.parse(backupRaw);
|
|
95
|
-
|
|
95
|
+
fs$1.copyFileSync(backupPath, credsPath);
|
|
96
96
|
try {
|
|
97
|
-
|
|
97
|
+
fs$1.chmodSync(credsPath, 384);
|
|
98
98
|
} catch {}
|
|
99
99
|
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
100
100
|
} catch {}
|
|
@@ -150,11 +150,11 @@ async function logoutWeb(params) {
|
|
|
150
150
|
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
151
151
|
try {
|
|
152
152
|
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
153
|
-
if (!
|
|
153
|
+
if (!fs$1.existsSync(credsPath)) return {
|
|
154
154
|
e164: null,
|
|
155
155
|
jid: null
|
|
156
156
|
};
|
|
157
|
-
const raw =
|
|
157
|
+
const raw = fs$1.readFileSync(credsPath, "utf-8");
|
|
158
158
|
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
159
159
|
return {
|
|
160
160
|
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
@@ -173,7 +173,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
|
173
173
|
*/
|
|
174
174
|
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
175
175
|
try {
|
|
176
|
-
const stats =
|
|
176
|
+
const stats = fs$1.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
177
177
|
return Date.now() - stats.mtimeMs;
|
|
178
178
|
} catch {
|
|
179
179
|
return null;
|
|
@@ -205,7 +205,7 @@ function listWhatsAppAuthDirs(cfg) {
|
|
|
205
205
|
accountId
|
|
206
206
|
}).authDir);
|
|
207
207
|
try {
|
|
208
|
-
const entries =
|
|
208
|
+
const entries = fs$1.readdirSync(whatsappDir, { withFileTypes: true });
|
|
209
209
|
for (const entry of entries) {
|
|
210
210
|
if (!entry.isDirectory()) continue;
|
|
211
211
|
authDirs.add(path.join(whatsappDir, entry.name));
|
|
@@ -227,7 +227,7 @@ function resolveLegacyAuthDir() {
|
|
|
227
227
|
}
|
|
228
228
|
function legacyAuthExists(authDir) {
|
|
229
229
|
try {
|
|
230
|
-
return
|
|
230
|
+
return fs$1.existsSync(path.join(authDir, "creds.json"));
|
|
231
231
|
} catch {
|
|
232
232
|
return false;
|
|
233
233
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-TqfVSQuO.js";
|
|
2
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-B6F_XCgS.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-TqfVSQuO.js";
|
|
2
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-B6F_XCgS.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
2
|
-
import { lr as formatCliCommand } from "./model-selection-
|
|
1
|
+
import { W as DEFAULT_ACCOUNT_ID } from "./workspace-TqfVSQuO.js";
|
|
2
|
+
import { lr as formatCliCommand } from "./model-selection-CHnojCCK.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/logging/redact-identifier.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as normalizeProviderId } from "./model-selection-
|
|
2
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { c as normalizeProviderId } from "./model-selection-CHnojCCK.js";
|
|
2
|
+
import { r as formatErrorMessage } from "./errors-DfgAh2Ml.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/gemini-auth.ts
|
|
5
5
|
/**
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./thinking-
|
|
10
|
-
import "./plugins-
|
|
11
|
-
import "./accounts-
|
|
12
|
-
import "./accounts-
|
|
13
|
-
import "./image-ops-
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
16
|
-
import "./frontmatter-
|
|
17
|
-
import "./skills-
|
|
18
|
-
import "./path-alias-guards-
|
|
19
|
-
import "./redact-
|
|
20
|
-
import "./errors-
|
|
21
|
-
import "./fs-safe-
|
|
22
|
-
import "./proxy-env-
|
|
23
|
-
import "./store-
|
|
24
|
-
import "./accounts-
|
|
25
|
-
import "./paths-
|
|
26
|
-
import "./tool-images-
|
|
27
|
-
import "./image-
|
|
28
|
-
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
29
|
-
import "./fetch-
|
|
30
|
-
import "./fetch-guard-
|
|
31
|
-
import "./api-key-rotation-
|
|
32
|
-
import "./proxy-fetch-
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./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 "./image-ByqExb8z.js";
|
|
28
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-C3N9eAGM.js";
|
|
29
|
+
import "./fetch-b8tSR7_e.js";
|
|
30
|
+
import "./fetch-guard-D16tjNsZ.js";
|
|
31
|
+
import "./api-key-rotation-TRwuCWbu.js";
|
|
32
|
+
import "./proxy-fetch-C2v-Utgg.js";
|
|
33
33
|
|
|
34
34
|
//#region src/media-understanding/audio-preflight.ts
|
|
35
35
|
/**
|
package/dist/{audio-transcription-runner-Cv0Q47cM.js → audio-transcription-runner-C3N9eAGM.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-
|
|
2
|
-
import { p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, w as resolvePreferredSquidClawTmpDir } from "./subsystem-
|
|
3
|
-
import { _ as runExec } from "./workspace-
|
|
4
|
-
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveSquidClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-
|
|
5
|
-
import { _ as normalizeChatType } from "./plugins-
|
|
6
|
-
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-
|
|
7
|
-
import { t as describeImageWithModel, w as ensureSquidClawModelsJson } from "./image-
|
|
8
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
1
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, w as resolvePreferredSquidClawTmpDir } from "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { _ as runExec } from "./workspace-TqfVSQuO.js";
|
|
4
|
+
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveSquidClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-CHnojCCK.js";
|
|
5
|
+
import { _ as normalizeChatType } from "./plugins-AqsVZZk3.js";
|
|
6
|
+
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-BoN1E_WZ.js";
|
|
7
|
+
import { t as describeImageWithModel, w as ensureSquidClawModelsJson } from "./image-ByqExb8z.js";
|
|
8
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-b8tSR7_e.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-Wgx3OXYj.js";
|
|
10
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
11
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
12
|
-
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-
|
|
10
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-D16tjNsZ.js";
|
|
11
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-TRwuCWbu.js";
|
|
12
|
+
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-C2v-Utgg.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import os from "node:os";
|
|
15
15
|
import path from "node:path";
|
|
@@ -22,7 +22,7 @@ import crypto from "node:crypto";
|
|
|
22
22
|
const log = createSubsystemLogger("model-catalog");
|
|
23
23
|
let modelCatalogPromise = null;
|
|
24
24
|
let hasLoggedModelCatalogError = false;
|
|
25
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
25
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-o-WX5w2t.js").then((n) => n.r);
|
|
26
26
|
let importPiSdk = defaultImportPiSdk;
|
|
27
27
|
const CODEX_PROVIDER = "openai-codex";
|
|
28
28
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import { f as isRecord } from "./logger-
|
|
1
|
+
import "./paths-CSdAWKDO.js";
|
|
2
|
+
import "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { f as isRecord } from "./logger-oGKcCLZ5.js";
|
|
4
4
|
import { n as fetchWithTimeout } from "./fetch-timeout-Wgx3OXYj.js";
|
|
5
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
5
|
+
import { t as makeProxyFetch } from "./proxy-fetch-C2v-Utgg.js";
|
|
6
6
|
import "./proxy-CecQTx_Z.js";
|
|
7
7
|
|
|
8
8
|
//#region src/telegram/audit-membership-runtime.ts
|
package/dist/build-info.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, r as listAgentIds } from "../../run-with-concurrency-
|
|
2
|
-
import "../../paths-
|
|
3
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import { B as resolveAgentIdFromSessionKey } from "../../workspace-
|
|
5
|
-
import "../../logger-
|
|
6
|
-
import "../../model-selection-
|
|
7
|
-
import "../../github-copilot-token-
|
|
8
|
-
import { a as isGatewayStartupEvent } from "../../legacy-names-
|
|
9
|
-
import "../../thinking-
|
|
10
|
-
import { n as SILENT_REPLY_TOKEN } from "../../tokens-
|
|
11
|
-
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-
|
|
12
|
-
import "../../plugins-
|
|
13
|
-
import "../../accounts-
|
|
14
|
-
import "../../send-
|
|
15
|
-
import "../../send-
|
|
16
|
-
import "../../deliver-
|
|
17
|
-
import "../../diagnostic-
|
|
18
|
-
import "../../accounts-
|
|
19
|
-
import "../../image-ops-
|
|
20
|
-
import "../../send-
|
|
21
|
-
import "../../pi-model-discovery-
|
|
22
|
-
import { Dt as resolveMainSessionKey, J as updateSessionStore, Tt as resolveAgentMainSessionKey, W as loadSessionStore } from "../../pi-embedded-helpers-
|
|
23
|
-
import "../../chrome-
|
|
24
|
-
import "../../frontmatter-
|
|
25
|
-
import "../../skills-
|
|
26
|
-
import "../../path-alias-guards-
|
|
27
|
-
import "../../redact-
|
|
28
|
-
import "../../errors-
|
|
29
|
-
import "../../fs-safe-
|
|
30
|
-
import "../../proxy-env-
|
|
31
|
-
import "../../store-
|
|
32
|
-
import "../../accounts-
|
|
33
|
-
import { s as resolveStorePath } from "../../paths-
|
|
34
|
-
import "../../tool-images-
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
37
|
-
import "../../fetch-
|
|
38
|
-
import "../../fetch-guard-
|
|
39
|
-
import "../../api-key-rotation-
|
|
40
|
-
import "../../proxy-fetch-
|
|
41
|
-
import "../../ir-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir, r as listAgentIds } from "../../run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "../../paths-CSdAWKDO.js";
|
|
3
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-BaLYRf7D.js";
|
|
4
|
+
import { B as resolveAgentIdFromSessionKey } from "../../workspace-TqfVSQuO.js";
|
|
5
|
+
import "../../logger-oGKcCLZ5.js";
|
|
6
|
+
import "../../model-selection-CHnojCCK.js";
|
|
7
|
+
import "../../github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import { a as isGatewayStartupEvent } from "../../legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "../../thinking-B-A99X3F.js";
|
|
10
|
+
import { n as SILENT_REPLY_TOKEN } from "../../tokens-D2XhLqIz.js";
|
|
11
|
+
import { a as agentCommand, o as createDefaultDeps } from "../../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 { Dt as resolveMainSessionKey, J as updateSessionStore, Tt as resolveAgentMainSessionKey, W as loadSessionStore } from "../../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 { s as resolveStorePath } from "../../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
42
|
import "../../render-DW7AcFdD.js";
|
|
43
|
-
import "../../target-errors-
|
|
44
|
-
import "../../commands-registry-
|
|
45
|
-
import "../../skill-commands-
|
|
43
|
+
import "../../target-errors-D0ZJUbbf.js";
|
|
44
|
+
import "../../commands-registry-B44COZFz.js";
|
|
45
|
+
import "../../skill-commands-BwTLQRR8.js";
|
|
46
46
|
import "../../fetch-tZXOZ9FV.js";
|
|
47
|
-
import "../../channel-activity-
|
|
48
|
-
import "../../tables-
|
|
49
|
-
import "../../send-
|
|
50
|
-
import "../../outbound-attachment-
|
|
51
|
-
import "../../send-
|
|
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
52
|
import "../../proxy-CecQTx_Z.js";
|
|
53
|
-
import "../../manager-
|
|
54
|
-
import "../../query-expansion-
|
|
53
|
+
import "../../manager-BPGhs30n.js";
|
|
54
|
+
import "../../query-expansion-DlQOkf-g.js";
|
|
55
55
|
import fs from "node:fs/promises";
|
|
56
56
|
import path from "node:path";
|
|
57
57
|
import crypto from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
3
|
-
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-
|
|
4
|
-
import "../../logger-
|
|
5
|
-
import { i as isAgentBootstrapEvent } from "../../legacy-names-
|
|
6
|
-
import "../../frontmatter-
|
|
1
|
+
import "../../paths-CSdAWKDO.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "../../subsystem-BaLYRf7D.js";
|
|
3
|
+
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-TqfVSQuO.js";
|
|
4
|
+
import "../../logger-oGKcCLZ5.js";
|
|
5
|
+
import { i as isAgentBootstrapEvent } from "../../legacy-names-B0wgIP0Q.js";
|
|
6
|
+
import "../../frontmatter-CjKtFduT.js";
|
|
7
7
|
import { t as resolveHookConfig } from "../../config-DWRgGn0l.js";
|
|
8
8
|
|
|
9
9
|
//#region src/hooks/bundled/bootstrap-extra-files/handler.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
1
|
+
import { c as resolveStateDir } from "../../paths-CSdAWKDO.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "../../subsystem-BaLYRf7D.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { a as resolveAgentDir, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary } from "../../run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "../../paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import { B as resolveAgentIdFromSessionKey } from "../../workspace-
|
|
5
|
-
import "../../logger-
|
|
6
|
-
import { br as DEFAULT_MODEL, l as parseModelRef, xr as DEFAULT_PROVIDER } from "../../model-selection-
|
|
7
|
-
import "../../github-copilot-token-
|
|
8
|
-
import "../../legacy-names-
|
|
9
|
-
import "../../thinking-
|
|
10
|
-
import "../../tokens-
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "../../pi-embedded-
|
|
12
|
-
import "../../plugins-
|
|
13
|
-
import "../../accounts-
|
|
14
|
-
import "../../send-
|
|
15
|
-
import "../../send-
|
|
16
|
-
import "../../deliver-
|
|
17
|
-
import "../../diagnostic-
|
|
18
|
-
import "../../accounts-
|
|
19
|
-
import "../../image-ops-
|
|
20
|
-
import "../../send-
|
|
21
|
-
import "../../pi-model-discovery-
|
|
22
|
-
import { dt as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-
|
|
23
|
-
import "../../chrome-
|
|
24
|
-
import "../../frontmatter-
|
|
25
|
-
import "../../skills-
|
|
26
|
-
import "../../path-alias-guards-
|
|
27
|
-
import "../../redact-
|
|
28
|
-
import "../../errors-
|
|
29
|
-
import { c as writeFileWithinRoot } from "../../fs-safe-
|
|
30
|
-
import "../../proxy-env-
|
|
31
|
-
import "../../store-
|
|
32
|
-
import "../../accounts-
|
|
33
|
-
import "../../paths-
|
|
34
|
-
import "../../tool-images-
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
37
|
-
import "../../fetch-
|
|
38
|
-
import "../../fetch-guard-
|
|
39
|
-
import "../../api-key-rotation-
|
|
40
|
-
import "../../proxy-fetch-
|
|
41
|
-
import "../../ir-
|
|
1
|
+
import { a as resolveAgentDir, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary } from "../../run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { c as resolveStateDir } from "../../paths-CSdAWKDO.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "../../subsystem-BaLYRf7D.js";
|
|
4
|
+
import { B as resolveAgentIdFromSessionKey } from "../../workspace-TqfVSQuO.js";
|
|
5
|
+
import "../../logger-oGKcCLZ5.js";
|
|
6
|
+
import { br as DEFAULT_MODEL, l as parseModelRef, xr as DEFAULT_PROVIDER } from "../../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 { t as runEmbeddedPiAgent } from "../../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 { dt as hasInterSessionUserProvenance } from "../../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 { c as writeFileWithinRoot } from "../../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
42
|
import "../../render-DW7AcFdD.js";
|
|
43
|
-
import "../../target-errors-
|
|
44
|
-
import "../../commands-registry-
|
|
45
|
-
import "../../skill-commands-
|
|
43
|
+
import "../../target-errors-D0ZJUbbf.js";
|
|
44
|
+
import "../../commands-registry-B44COZFz.js";
|
|
45
|
+
import "../../skill-commands-BwTLQRR8.js";
|
|
46
46
|
import "../../fetch-tZXOZ9FV.js";
|
|
47
|
-
import "../../channel-activity-
|
|
48
|
-
import "../../tables-
|
|
49
|
-
import "../../send-
|
|
50
|
-
import "../../outbound-attachment-
|
|
51
|
-
import "../../send-
|
|
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
52
|
import "../../proxy-CecQTx_Z.js";
|
|
53
|
-
import "../../manager-
|
|
54
|
-
import "../../query-expansion-
|
|
53
|
+
import "../../manager-BPGhs30n.js";
|
|
54
|
+
import "../../query-expansion-DlQOkf-g.js";
|
|
55
55
|
import { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
56
56
|
import { t as resolveHookConfig } from "../../config-DWRgGn0l.js";
|
|
57
57
|
import fs from "node:fs/promises";
|
|
58
58
|
import os from "node:os";
|
|
59
59
|
import path from "node:path";
|
|
60
|
-
import
|
|
60
|
+
import fs$1 from "node:fs";
|
|
61
61
|
import { DatabaseSync } from "node:sqlite";
|
|
62
62
|
|
|
63
63
|
//#region src/memory/long-term/schema.ts
|
|
@@ -257,7 +257,7 @@ var MemoryManager = class {
|
|
|
257
257
|
this.agentId = params.agentId;
|
|
258
258
|
this.userId = params.userId;
|
|
259
259
|
const dir = path.dirname(params.dbPath);
|
|
260
|
-
if (!
|
|
260
|
+
if (!fs$1.existsSync(dir)) fs$1.mkdirSync(dir, { recursive: true });
|
|
261
261
|
this.db = new DatabaseSync(params.dbPath);
|
|
262
262
|
this.initSchema();
|
|
263
263
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { S as retryAsync, x as resolveRetryConfig } from "./model-selection-
|
|
3
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { S as retryAsync, x as resolveRetryConfig } from "./model-selection-CHnojCCK.js";
|
|
3
|
+
import { r as formatErrorMessage } from "./errors-DfgAh2Ml.js";
|
|
4
4
|
import { RateLimitError } from "@buape/carbon";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/retry-policy.ts
|