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 { X as loadConfig } from "./model-selection-
|
|
1
|
+
import { X as loadConfig } from "./model-selection-CHnojCCK.js";
|
|
2
2
|
import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
|
|
3
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
4
|
-
import { E as kindFromMime } from "./image-ops-
|
|
3
|
+
import { n as resolveSignalAccount } from "./accounts-s5e9zidf.js";
|
|
4
|
+
import { E as kindFromMime } from "./image-ops-BoN1E_WZ.js";
|
|
5
5
|
import { n as fetchWithTimeout } from "./fetch-timeout-Wgx3OXYj.js";
|
|
6
|
-
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-Dut0zXyS.js";
|
|
7
7
|
import { t as resolveFetch } from "./fetch-tZXOZ9FV.js";
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-rlW7G5df.js";
|
|
9
9
|
|
|
10
10
|
//#region src/signal/format.ts
|
|
11
11
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as logVerbose } from "./subsystem-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
3
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
4
|
-
import { g as resolveSlackBotToken, p as resolveSlackAccount } from "./plugins-
|
|
1
|
+
import { u as logVerbose } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-CHnojCCK.js";
|
|
3
|
+
import { i as isSilentReplyText } from "./tokens-D2XhLqIz.js";
|
|
4
|
+
import { g as resolveSlackBotToken, p as resolveSlackAccount } from "./plugins-AqsVZZk3.js";
|
|
5
5
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-Bhj5bO-0.js";
|
|
6
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-D16tjNsZ.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-Dut0zXyS.js";
|
|
8
8
|
import { t as renderMarkdownWithMarkers } from "./render-DW7AcFdD.js";
|
|
9
9
|
import { WebClient } from "@slack/web-api";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h as normalizeE164, y as resolveUserPath } from "./logger-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
3
|
-
import { E as kindFromMime } from "./image-ops-
|
|
4
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
5
|
-
import { s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
1
|
+
import { h as normalizeE164, y as resolveUserPath } from "./logger-oGKcCLZ5.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-CHnojCCK.js";
|
|
3
|
+
import { E as kindFromMime } from "./image-ops-BoN1E_WZ.js";
|
|
4
|
+
import { t as resolveIMessageAccount } from "./accounts-Bkb-J8V6.js";
|
|
5
|
+
import { s as resolveMarkdownTableMode } from "./ir-Dut0zXyS.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-BRYYxYs7.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-rlW7G5df.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { a as CONFIG_DIR, b as safeParseJson } from "./logger-
|
|
5
|
-
import { Hn as resolveTelegramPreviewStreamMode, Q as readConfigFileSnapshotForWrite, X as loadConfig, Zn as isTruthyEnvValue, ar as withFileLock$1, et as writeConfigFile } from "./model-selection-
|
|
6
|
-
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
1
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-CSdAWKDO.js";
|
|
2
|
+
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-TqfVSQuO.js";
|
|
4
|
+
import { a as CONFIG_DIR, b as safeParseJson } from "./logger-oGKcCLZ5.js";
|
|
5
|
+
import { Hn as resolveTelegramPreviewStreamMode, Q as readConfigFileSnapshotForWrite, X as loadConfig, Zn as isTruthyEnvValue, ar as withFileLock$1, et as writeConfigFile } from "./model-selection-CHnojCCK.js";
|
|
6
|
+
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-AqsVZZk3.js";
|
|
7
7
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget, t as normalizeTelegramChatId } from "./targets-BiE9e9-P.js";
|
|
8
|
-
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-
|
|
9
|
-
import { t as redactSensitiveText } from "./redact-
|
|
10
|
-
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-
|
|
11
|
-
import { t as hasProxyEnvConfigured } from "./proxy-env-
|
|
8
|
+
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-BoN1E_WZ.js";
|
|
9
|
+
import { t as redactSensitiveText } from "./redact-NmPEVjIo.js";
|
|
10
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-DfgAh2Ml.js";
|
|
11
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-DXXfs2WL.js";
|
|
12
12
|
import { r as writeJsonAtomic } from "./json-files-D7-rxoSr.js";
|
|
13
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
14
|
-
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
13
|
+
import { t as makeProxyFetch } from "./proxy-fetch-C2v-Utgg.js";
|
|
14
|
+
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-Dut0zXyS.js";
|
|
15
15
|
import { t as renderMarkdownWithMarkers } from "./render-DW7AcFdD.js";
|
|
16
16
|
import { t as resolveFetch } from "./fetch-tZXOZ9FV.js";
|
|
17
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
17
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-CxJbx4sD.js";
|
|
18
18
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BFUunM8u.js";
|
|
19
19
|
import { n as normalizePollInput } from "./polls-CYTwXmA1.js";
|
|
20
20
|
import fs from "node:fs/promises";
|
|
21
21
|
import os from "node:os";
|
|
22
22
|
import path from "node:path";
|
|
23
|
-
import
|
|
23
|
+
import fs$1, { readFileSync } from "node:fs";
|
|
24
24
|
import JSON5 from "json5";
|
|
25
25
|
import process$1 from "node:process";
|
|
26
26
|
import crypto, { randomBytes } from "node:crypto";
|
|
@@ -81,7 +81,7 @@ function getPairingAdapter(channelId) {
|
|
|
81
81
|
//#region src/plugin-sdk/json-store.ts
|
|
82
82
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
83
83
|
try {
|
|
84
|
-
const parsed = safeParseJson(await
|
|
84
|
+
const parsed = safeParseJson(await fs$1.promises.readFile(filePath, "utf-8"));
|
|
85
85
|
if (parsed == null) return {
|
|
86
86
|
value: fallback,
|
|
87
87
|
exists: true
|
|
@@ -168,7 +168,7 @@ async function readPairingRequests(filePath) {
|
|
|
168
168
|
}
|
|
169
169
|
async function ensureJsonFile(filePath, fallback) {
|
|
170
170
|
try {
|
|
171
|
-
await
|
|
171
|
+
await fs$1.promises.access(filePath);
|
|
172
172
|
} catch {
|
|
173
173
|
await writeJsonFile(filePath, fallback);
|
|
174
174
|
}
|
|
@@ -324,7 +324,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
324
324
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
325
325
|
let stat = null;
|
|
326
326
|
try {
|
|
327
|
-
stat = await
|
|
327
|
+
stat = await fs$1.promises.stat(filePath);
|
|
328
328
|
} catch (err) {
|
|
329
329
|
if (err.code !== "ENOENT") throw err;
|
|
330
330
|
}
|
|
@@ -367,7 +367,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
367
367
|
});
|
|
368
368
|
let stat = null;
|
|
369
369
|
try {
|
|
370
|
-
stat = await
|
|
370
|
+
stat = await fs$1.promises.stat(filePath);
|
|
371
371
|
} catch {}
|
|
372
372
|
setAllowFromReadCache(filePath, {
|
|
373
373
|
exists: true,
|
|
@@ -974,7 +974,7 @@ function resolveCronStorePath(storePath) {
|
|
|
974
974
|
}
|
|
975
975
|
async function loadCronStore(storePath) {
|
|
976
976
|
try {
|
|
977
|
-
const raw = await
|
|
977
|
+
const raw = await fs$1.promises.readFile(storePath, "utf-8");
|
|
978
978
|
let parsed;
|
|
979
979
|
try {
|
|
980
980
|
parsed = JSON5.parse(raw);
|
|
@@ -1000,13 +1000,13 @@ async function loadCronStore(storePath) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
async function saveCronStore(storePath, store) {
|
|
1003
|
-
await
|
|
1003
|
+
await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1004
1004
|
const json = JSON.stringify(store, null, 2);
|
|
1005
1005
|
const cached = serializedStoreCache.get(storePath);
|
|
1006
1006
|
if (cached === json) return;
|
|
1007
1007
|
let previous = cached ?? null;
|
|
1008
1008
|
if (previous === null) try {
|
|
1009
|
-
previous = await
|
|
1009
|
+
previous = await fs$1.promises.readFile(storePath, "utf-8");
|
|
1010
1010
|
} catch (err) {
|
|
1011
1011
|
if (err.code !== "ENOENT") throw err;
|
|
1012
1012
|
}
|
|
@@ -1015,9 +1015,9 @@ async function saveCronStore(storePath, store) {
|
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
1017
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1018
|
-
await
|
|
1018
|
+
await fs$1.promises.writeFile(tmp, json, "utf-8");
|
|
1019
1019
|
if (previous !== null) try {
|
|
1020
|
-
await
|
|
1020
|
+
await fs$1.promises.copyFile(storePath, `${storePath}.bak`);
|
|
1021
1021
|
} catch {}
|
|
1022
1022
|
await renameWithRetry(tmp, storePath);
|
|
1023
1023
|
serializedStoreCache.set(storePath, json);
|
|
@@ -1026,7 +1026,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1026
1026
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1027
1027
|
async function renameWithRetry(src, dest) {
|
|
1028
1028
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1029
|
-
await
|
|
1029
|
+
await fs$1.promises.rename(src, dest);
|
|
1030
1030
|
return;
|
|
1031
1031
|
} catch (err) {
|
|
1032
1032
|
const code = err.code;
|
|
@@ -1035,8 +1035,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1035
1035
|
continue;
|
|
1036
1036
|
}
|
|
1037
1037
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1038
|
-
await
|
|
1039
|
-
await
|
|
1038
|
+
await fs$1.promises.copyFile(src, dest);
|
|
1039
|
+
await fs$1.promises.unlink(src).catch(() => {});
|
|
1040
1040
|
return;
|
|
1041
1041
|
}
|
|
1042
1042
|
throw err;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { w as resolvePreferredSquidClawTmpDir } from "./subsystem-
|
|
2
|
-
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
3
|
-
import { S as retryAsync, X as loadConfig, x as resolveRetryConfig } from "./model-selection-
|
|
4
|
-
import { b as resolveDiscordAccount, x as normalizeDiscordToken } from "./plugins-
|
|
1
|
+
import { w as resolvePreferredSquidClawTmpDir } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-TqfVSQuO.js";
|
|
3
|
+
import { S as retryAsync, X as loadConfig, x as resolveRetryConfig } from "./model-selection-CHnojCCK.js";
|
|
4
|
+
import { b as resolveDiscordAccount, x as normalizeDiscordToken } from "./plugins-AqsVZZk3.js";
|
|
5
5
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-Bhj5bO-0.js";
|
|
6
|
-
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
+
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-BoN1E_WZ.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-Dut0zXyS.js";
|
|
8
8
|
import { t as resolveFetch } from "./fetch-tZXOZ9FV.js";
|
|
9
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-
|
|
9
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-CxJbx4sD.js";
|
|
10
10
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BFUunM8u.js";
|
|
11
11
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-CYTwXmA1.js";
|
|
12
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
+
import { t as convertMarkdownTables } from "./tables-BRYYxYs7.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { promisify } from "node:util";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-
|
|
2
|
-
import { l as ensureDir, y as resolveUserPath } from "./logger-
|
|
3
|
-
import { lr as formatCliCommand, qn as VERSION } from "./model-selection-
|
|
4
|
-
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-
|
|
5
|
-
import
|
|
1
|
+
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { l as ensureDir, y as resolveUserPath } from "./logger-oGKcCLZ5.js";
|
|
3
|
+
import { lr as formatCliCommand, qn as VERSION } from "./model-selection-CHnojCCK.js";
|
|
4
|
+
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-B6F_XCgS.js";
|
|
5
|
+
import fs from "node:fs";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
8
8
|
import qrcode from "qrcode-terminal";
|
|
@@ -21,16 +21,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
21
21
|
const raw = readCredsJsonRaw(credsPath);
|
|
22
22
|
if (raw) try {
|
|
23
23
|
JSON.parse(raw);
|
|
24
|
-
|
|
24
|
+
fs.copyFileSync(credsPath, backupPath);
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
fs.chmodSync(backupPath, 384);
|
|
27
27
|
} catch {}
|
|
28
28
|
} catch {}
|
|
29
29
|
} catch {}
|
|
30
30
|
try {
|
|
31
31
|
await Promise.resolve(saveCreds());
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
fs.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
34
34
|
} catch {}
|
|
35
35
|
} catch (err) {
|
|
36
36
|
logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
4
|
-
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-CSdAWKDO.js";
|
|
3
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-oGKcCLZ5.js";
|
|
5
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-B9N2bqKU.js";
|
|
6
6
|
import { t as createAsyncLock } from "./json-files-D7-rxoSr.js";
|
|
7
|
-
import { i as listChatCommands } from "./commands-registry-
|
|
7
|
+
import { i as listChatCommands } from "./commands-registry-B44COZFz.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
13
13
|
|
|
@@ -241,13 +241,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
241
241
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
242
242
|
for (const agentId of agentIds) {
|
|
243
243
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
244
|
-
if (!
|
|
244
|
+
if (!fs.existsSync(workspaceDir)) {
|
|
245
245
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
246
246
|
continue;
|
|
247
247
|
}
|
|
248
248
|
let canonicalDir;
|
|
249
249
|
try {
|
|
250
|
-
canonicalDir =
|
|
250
|
+
canonicalDir = fs.realpathSync(workspaceDir);
|
|
251
251
|
} catch {
|
|
252
252
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
253
253
|
continue;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as normalizeSkillFilter } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger, w as resolvePreferredSquidClawTmpDir } from "./subsystem-
|
|
3
|
-
import { O as isPathInside, h as resolveSquidClawPackageRootSync } from "./workspace-
|
|
4
|
-
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { Bt as resolveMemorySlotDecision, Nt as loadPluginManifestRegistry, Rt as normalizePluginsConfig, Un as isPathInsideWithRealpath, Xn as isDangerousHostEnvVarName, gr as normalizeResolvedSecretInputString, zt as resolveEffectiveEnableState } from "./model-selection-
|
|
6
|
-
import { a as resolveSquidClawManifestBlock, c as resolveSquidClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseSquidClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveSquidClawManifestInstall, r as parseFrontmatterBool, s as resolveSquidClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
7
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { m as normalizeSkillFilter } from "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { t as createSubsystemLogger, w as resolvePreferredSquidClawTmpDir } from "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { O as isPathInside, h as resolveSquidClawPackageRootSync } from "./workspace-TqfVSQuO.js";
|
|
4
|
+
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-oGKcCLZ5.js";
|
|
5
|
+
import { Bt as resolveMemorySlotDecision, Nt as loadPluginManifestRegistry, Rt as normalizePluginsConfig, Un as isPathInsideWithRealpath, Xn as isDangerousHostEnvVarName, gr as normalizeResolvedSecretInputString, zt as resolveEffectiveEnableState } from "./model-selection-CHnojCCK.js";
|
|
6
|
+
import { a as resolveSquidClawManifestBlock, c as resolveSquidClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseSquidClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveSquidClawManifestInstall, r as parseFrontmatterBool, s as resolveSquidClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-CjKtFduT.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-Cpsiv2KL.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
12
12
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
13
13
|
|
|
@@ -543,13 +543,13 @@ function shortPath(value) {
|
|
|
543
543
|
//#region src/agents/skills/bundled-dir.ts
|
|
544
544
|
function looksLikeSkillsDir(dir) {
|
|
545
545
|
try {
|
|
546
|
-
const entries =
|
|
546
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
547
547
|
for (const entry of entries) {
|
|
548
548
|
if (entry.name.startsWith(".")) continue;
|
|
549
549
|
const fullPath = path.join(dir, entry.name);
|
|
550
550
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
551
551
|
if (entry.isDirectory()) {
|
|
552
|
-
if (
|
|
552
|
+
if (fs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
} catch {
|
|
@@ -564,7 +564,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
564
564
|
const execPath = opts.execPath ?? process.execPath;
|
|
565
565
|
const execDir = path.dirname(execPath);
|
|
566
566
|
const sibling = path.join(execDir, "skills");
|
|
567
|
-
if (
|
|
567
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
568
568
|
} catch {}
|
|
569
569
|
try {
|
|
570
570
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -627,7 +627,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
627
627
|
const trimmed = raw.trim();
|
|
628
628
|
if (!trimmed) continue;
|
|
629
629
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
630
|
-
if (!
|
|
630
|
+
if (!fs.existsSync(candidate)) {
|
|
631
631
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
632
632
|
continue;
|
|
633
633
|
}
|
|
@@ -658,7 +658,7 @@ async function serializeByKey(key, task) {
|
|
|
658
658
|
|
|
659
659
|
//#endregion
|
|
660
660
|
//#region src/agents/skills/workspace.ts
|
|
661
|
-
const fsp =
|
|
661
|
+
const fsp = fs.promises;
|
|
662
662
|
const skillsLogger = createSubsystemLogger("skills");
|
|
663
663
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
664
664
|
/**
|
|
@@ -735,7 +735,7 @@ function resolveSkillsLimits(config) {
|
|
|
735
735
|
}
|
|
736
736
|
function listChildDirectories(dir) {
|
|
737
737
|
try {
|
|
738
|
-
const entries =
|
|
738
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
739
739
|
const dirs = [];
|
|
740
740
|
for (const entry of entries) {
|
|
741
741
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -746,7 +746,7 @@ function listChildDirectories(dir) {
|
|
|
746
746
|
continue;
|
|
747
747
|
}
|
|
748
748
|
if (entry.isSymbolicLink()) try {
|
|
749
|
-
if (
|
|
749
|
+
if (fs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
750
750
|
} catch {}
|
|
751
751
|
}
|
|
752
752
|
return dirs;
|
|
@@ -757,7 +757,7 @@ function listChildDirectories(dir) {
|
|
|
757
757
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
758
758
|
const nested = path.join(dir, "skills");
|
|
759
759
|
try {
|
|
760
|
-
if (!
|
|
760
|
+
if (!fs.existsSync(nested) || !fs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
761
761
|
} catch {
|
|
762
762
|
return { baseDir: dir };
|
|
763
763
|
}
|
|
@@ -766,7 +766,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
766
766
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
767
767
|
for (const name of toScan) {
|
|
768
768
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
769
|
-
if (
|
|
769
|
+
if (fs.existsSync(skillMd)) return {
|
|
770
770
|
baseDir: nested,
|
|
771
771
|
note: `Detected nested skills root at ${nested}`
|
|
772
772
|
};
|
|
@@ -786,9 +786,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
786
786
|
const loadSkills = (params) => {
|
|
787
787
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
788
788
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
789
|
-
if (
|
|
789
|
+
if (fs.existsSync(rootSkillMd)) {
|
|
790
790
|
try {
|
|
791
|
-
const size =
|
|
791
|
+
const size = fs.statSync(rootSkillMd).size;
|
|
792
792
|
if (size > limits.maxSkillFileBytes) {
|
|
793
793
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
794
794
|
dir: baseDir,
|
|
@@ -827,9 +827,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
827
827
|
for (const name of limitedChildren) {
|
|
828
828
|
const skillDir = path.join(baseDir, name);
|
|
829
829
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
830
|
-
if (!
|
|
830
|
+
if (!fs.existsSync(skillMd)) continue;
|
|
831
831
|
try {
|
|
832
|
-
const size =
|
|
832
|
+
const size = fs.statSync(skillMd).size;
|
|
833
833
|
if (size > limits.maxSkillFileBytes) {
|
|
834
834
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
835
835
|
skill: name,
|
|
@@ -897,7 +897,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
897
897
|
return Array.from(merged.values()).map((skill) => {
|
|
898
898
|
let frontmatter = {};
|
|
899
899
|
try {
|
|
900
|
-
frontmatter = parseFrontmatter(
|
|
900
|
+
frontmatter = parseFrontmatter(fs.readFileSync(skill.filePath, "utf-8"));
|
|
901
901
|
} catch {}
|
|
902
902
|
return {
|
|
903
903
|
skill,
|
|
@@ -0,0 +1,16 @@
|
|
|
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 "./accounts-Bkb-J8V6.js";
|
|
14
|
+
import { f as resolveCommandArgMenu, n as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-B44COZFz.js";
|
|
15
|
+
|
|
16
|
+
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { I as finalizeInboundContext, S as dispatchReplyWithDispatcher, k as resolveAgentRoute, n as recordInboundSessionMetaSafe, r as deliverSlackSlashReplies, s as createReplyPrefixOptions } 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 { kt as resolveConversationLabel } 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 "./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 { m as resolveChunkMode, s as resolveMarkdownTableMode } from "./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
|
+
|
|
56
|
+
export { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
|
@@ -0,0 +1,20 @@
|
|
|
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 "./frontmatter-CjKtFduT.js";
|
|
14
|
+
import "./skills-B9N2bqKU.js";
|
|
15
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
16
|
+
import "./accounts-Bkb-J8V6.js";
|
|
17
|
+
import "./commands-registry-B44COZFz.js";
|
|
18
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-BwTLQRR8.js";
|
|
19
|
+
|
|
20
|
+
export { listSkillCommandsForAgents };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as resolveConfigDir } from "./logger-
|
|
2
|
-
import { b as detectMime, x as extensionForMime } from "./image-ops-
|
|
1
|
+
import { _ as resolveConfigDir } from "./logger-oGKcCLZ5.js";
|
|
2
|
+
import { b as detectMime, x as extensionForMime } from "./image-ops-BoN1E_WZ.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { G as resolveRequesterForChildSession, H as countPendingDescendantRuns, U as countPendingDescendantRunsExcludingRun, V as countActiveDescendantRuns, W as isSubagentSessionRunActive } 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 "./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
|
+
|
|
56
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, resolveRequesterForChildSession };
|