@hanzo/bot 2026.3.8 → 2026.3.9
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-Cp7zE1zb.js → accounts-B-9Bhdn6.js} +17 -17
- package/dist/{accounts-B4Cft76I.js → accounts-C2vo5fEt.js} +2 -2
- package/dist/{accounts-C_LXSS3x.js → accounts-DNligSyz.js} +2 -2
- package/dist/{active-listener-BR7vpJxr.js → active-listener-zLV9i9LQ.js} +2 -2
- package/dist/{api-key-rotation-iYITGuLK.js → api-key-rotation-BENZC8ep.js} +2 -2
- package/dist/{audio-preflight-BEc8i-bS.js → audio-preflight-Bd44yEnM.js} +32 -32
- package/dist/{audio-transcription-runner-X1KzI7dF.js → audio-transcription-runner-CsXaWVup.js} +12 -12
- package/dist/{audit-membership-runtime-CVVxrZ7j.js → audit-membership-runtime-BJ149bTU.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 +51 -51
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-DR4SiHcg.js → channel-activity-DO-d_jr4.js} +3 -3
- package/dist/{chrome-C7OwLtx9.js → chrome-hkgY24uS.js} +26 -26
- package/dist/{commands-registry-Ce7SJnAP.js → commands-registry-C6INZSSX.js} +4 -4
- package/dist/{deliver-D8dBbzpu.js → deliver-B1PE5Kmq.js} +21 -21
- package/dist/deliver-runtime-L42k3QaI.js +36 -0
- package/dist/deps-send-discord.runtime-DSqcSnN3.js +26 -0
- package/dist/deps-send-imessage.runtime-Ch2ZcE2r.js +25 -0
- package/dist/deps-send-signal.runtime-c-v7bD8y.js +24 -0
- package/dist/deps-send-slack.runtime-xA-JRpSq.js +22 -0
- package/dist/deps-send-telegram.runtime-CO2npp7q.js +27 -0
- package/dist/deps-send-whatsapp.runtime-wvdxQphB.js +60 -0
- package/dist/{diagnostic-D1IbJfJM.js → diagnostic-Do7hUiao.js} +2 -2
- package/dist/entry.js +14 -7
- package/dist/{errors-CHd6Q-vF.js → errors-DDrhcWHi.js} +1 -1
- package/dist/{fetch-C6doVJxZ.js → fetch-BETRLmK8.js} +5 -5
- package/dist/{fetch-guard-C-neMX4E.js → fetch-guard-pwJ-F5aP.js} +2 -2
- package/dist/{frontmatter-B6XNqDx2.js → frontmatter-BFHzrAY7.js} +3 -3
- package/dist/{fs-safe-DmeSz0Nd.js → fs-safe-CeZ_BXcn.js} +4 -4
- package/dist/{github-copilot-token-BDioPmd6.js → github-copilot-token-D13V9YBz.js} +7 -7
- package/dist/{image-BOybyCis.js → image-DJo3nF6e.js} +6 -6
- package/dist/{image-ops-C-QWxnVw.js → image-ops-CLQ9abCf.js} +2 -2
- package/dist/image-runtime-Bd2-_2Fa.js +29 -0
- package/dist/{ir-B0iARYlT.js → ir-9Bn85Mqy.js} +8 -8
- package/dist/{legacy-names-DZdACm3t.js → legacy-names-Bkl4tjN-.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-LCC1m_20.js → logger-D4RcXHR-.js} +7 -7
- package/dist/{login-BbBqhgOM.js → login-nNeuyFrd.js} +5 -5
- package/dist/{login-qr-AAX0vgZR.js → login-qr-BEawmd_E.js} +10 -10
- package/dist/{manager-BOyc7q1-.js → manager-Bq6y1TH8.js} +13 -13
- package/dist/manager-runtime-DNkH2nza.js +18 -0
- package/dist/{model-selection-BNMWRHZu.js → model-selection-DQ5NblsF.js} +43 -43
- package/dist/{outbound-C72ULCcI.js → outbound-CPL9ID8o.js} +6 -6
- package/dist/{outbound-attachment-BF1JVcCB.js → outbound-attachment-BmiVeNLr.js} +2 -2
- package/dist/{path-alias-guards-BCv18tKc.js → path-alias-guards-DBVdJRcc.js} +1 -1
- package/dist/{paths-Cvc9EM8Y.js → paths-C6TxBCvO.js} +5 -5
- package/dist/{paths-l8GkNRRD.js → paths-Cgd1FfOW.js} +4 -4
- package/dist/{pi-embedded-BHXPs-Ix.js → pi-embedded-BYfpUcIY.js} +168 -168
- package/dist/{pi-embedded-helpers-xIXwvwuE.js → pi-embedded-helpers-_OL4yNw0.js} +52 -52
- package/dist/{pi-model-discovery-Cucu_uXw.js → pi-model-discovery-DANpv7pw.js} +7 -7
- package/dist/pi-model-discovery-runtime-Dr5-MM2j.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-DQ2d5nM_.js → pi-tools.before-tool-call.runtime-CLb1M0uM.js} +9 -9
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/{plugins-YJZX7mvv.js → plugins-CeflwBVL.js} +13 -13
- package/dist/{proxy-env-CreSu2Ej.js → proxy-env-zUD967XQ.js} +1 -1
- package/dist/{proxy-fetch-lxJGuoUa.js → proxy-fetch-ChfJDZwG.js} +1 -1
- package/dist/{pw-ai-DsYmOxCp.js → pw-ai-yR5naMge.js} +14 -14
- package/dist/{qmd-manager-5C5L5YNn.js → qmd-manager-CWAXF3Vk.js} +10 -10
- package/dist/{query-expansion-BeRz7_bo.js → query-expansion-Cbd21KuP.js} +6 -6
- package/dist/{redact-DqlKR0-n.js → redact-DGz6yigq.js} +1 -1
- package/dist/{run-with-concurrency-ffnO0KnQ.js → run-with-concurrency-kEFC1Fle.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-BKnJdTKn.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-DZYgfcRc.js +22 -0
- package/dist/{send-CmVj590_.js → send-Bi_r7Hno.js} +7 -7
- package/dist/{send-BrlM68Dd.js → send-C4kartXc.js} +6 -6
- package/dist/{send-Cp6dmr2f.js → send-CisFoCif.js} +28 -28
- package/dist/{send-BXQ1U9Zk.js → send-DKjV2v4c.js} +5 -5
- package/dist/{send-CKIMBFLs.js → send-DqQOo6dv.js} +8 -8
- package/dist/{session-DoD05Mm8.js → session-U4Hk8Woy.js} +8 -8
- package/dist/{skill-commands-DGy6Juvb.js → skill-commands-BN9qtrxT.js} +9 -9
- package/dist/{skills-BDJUqEFI.js → skills-DgwotBrr.js} +22 -22
- package/dist/slash-commands.runtime-iBi9rbmg.js +16 -0
- package/dist/slash-dispatch.runtime-8okSdt7k.js +56 -0
- package/dist/slash-skill-commands.runtime-a4qnxIQp.js +20 -0
- package/dist/{store-cJlS-gR6.js → store-CNWtYorN.js} +2 -2
- package/dist/subagent-registry-runtime-C4H5Ofm0.js +56 -0
- package/dist/{subsystem-CdFYjh2k.js → subsystem-W834z9Wa.js} +14 -14
- package/dist/{tables-CgcFNr6G.js → tables-DBZFzS9x.js} +1 -1
- package/dist/{target-errors-DPj6Es2y.js → target-errors-CxUP9L6c.js} +2 -2
- package/dist/{thinking-C3b10cHs.js → thinking-Xlbm5WNq.js} +7 -7
- package/dist/{tokens-mtgzW7UN.js → tokens-Cyi-NbsV.js} +1 -1
- package/dist/{tool-images-D9pdW1gE.js → tool-images-D217wDXi.js} +2 -2
- package/dist/{web-CREcqhe9.js → web-o9PMPEDK.js} +55 -55
- package/dist/{whatsapp-actions-nZnQ4BwK.js → whatsapp-actions-DmKZmCkz.js} +21 -21
- package/dist/{workspace-BC5WA0Th.js → workspace-CPNwHoy5.js} +20 -20
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/ci-fix-loop/package.json +1 -1
- package/extensions/continuous-learning/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/flow/package.json +1 -1
- package/extensions/google-antigravity-auth/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +5 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +5 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +5 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/self-improvement/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +5 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +5 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +5 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +5 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +2 -1
- package/dist/deliver-runtime-C76IMU4W.js +0 -36
- package/dist/deps-send-discord.runtime-BM3uHet5.js +0 -26
- package/dist/deps-send-imessage.runtime-CBlUhUeN.js +0 -25
- package/dist/deps-send-signal.runtime-DnH0lazO.js +0 -24
- package/dist/deps-send-slack.runtime-Dmq0lsvR.js +0 -22
- package/dist/deps-send-telegram.runtime-33sbp3Ol.js +0 -27
- package/dist/deps-send-whatsapp.runtime-Cv_awFtm.js +0 -60
- package/dist/image-runtime-y4msd5bn.js +0 -29
- package/dist/manager-runtime-20Upetpf.js +0 -18
- package/dist/pi-model-discovery-runtime-BcJAGnf4.js +0 -11
- package/dist/runtime-whatsapp-login.runtime-BcbYtLph.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-MIKcURpN.js +0 -22
- package/dist/slash-commands.runtime-2kptrdDi.js +0 -16
- package/dist/slash-dispatch.runtime-D28-UnsO.js +0 -56
- package/dist/slash-skill-commands.runtime-6jUbSMOW.js +0 -20
- package/dist/subagent-registry-runtime-Bt-LYyrB.js +0 -56
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./run-with-concurrency-kEFC1Fle.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./workspace-CPNwHoy5.js";
|
|
5
|
+
import "./logger-D4RcXHR-.js";
|
|
6
|
+
import "./model-selection-DQ5NblsF.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import "./accounts-B-9Bhdn6.js";
|
|
10
|
+
import "./plugins-CeflwBVL.js";
|
|
11
|
+
import "./image-ops-CLQ9abCf.js";
|
|
12
|
+
import "./path-alias-guards-DBVdJRcc.js";
|
|
13
|
+
import "./fs-safe-CeZ_BXcn.js";
|
|
14
|
+
import "./proxy-env-zUD967XQ.js";
|
|
15
|
+
import "./fetch-BETRLmK8.js";
|
|
16
|
+
import "./fetch-guard-pwJ-F5aP.js";
|
|
17
|
+
import "./ir-9Bn85Mqy.js";
|
|
18
|
+
import "./render-DW7AcFdD.js";
|
|
19
|
+
import "./tables-DBZFzS9x.js";
|
|
20
|
+
import { n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./outbound-CPL9ID8o.js";
|
|
21
|
+
|
|
22
|
+
export { sendMessageWhatsApp, sendPollWhatsApp };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h as normalizeE164, y as resolveUserPath } from "./logger-
|
|
2
|
-
import { Z 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-D4RcXHR-.js";
|
|
2
|
+
import { Z as loadConfig } from "./model-selection-DQ5NblsF.js";
|
|
3
|
+
import { E as kindFromMime } from "./image-ops-CLQ9abCf.js";
|
|
4
|
+
import { t as resolveIMessageAccount } from "./accounts-C2vo5fEt.js";
|
|
5
|
+
import { s as resolveMarkdownTableMode } from "./ir-9Bn85Mqy.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-DBZFzS9x.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-BmiVeNLr.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as logVerbose } from "./subsystem-
|
|
2
|
-
import { Z as loadConfig } from "./model-selection-
|
|
3
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
4
|
-
import { _ as resolveSlackAccount, b as resolveSlackBotToken } from "./plugins-
|
|
1
|
+
import { u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { Z as loadConfig } from "./model-selection-DQ5NblsF.js";
|
|
3
|
+
import { i as isSilentReplyText } from "./tokens-Cyi-NbsV.js";
|
|
4
|
+
import { _ as resolveSlackAccount, b as resolveSlackBotToken } from "./plugins-CeflwBVL.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-pwJ-F5aP.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-9Bn85Mqy.js";
|
|
8
8
|
import { t as renderMarkdownWithMarkers } from "./render-DW7AcFdD.js";
|
|
9
9
|
import { WebClient } from "@slack/web-api";
|
|
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 { $ as readConfigFileSnapshotForWrite, Gn as resolveTelegramPreviewStreamMode, Z as loadConfig, cr as withFileLock$1, er as isTruthyEnvValue, tt as writeConfigFile } from "./model-selection-
|
|
6
|
-
import { n as listChannelPlugins, t as getChannelPlugin, u as resolveTelegramAccount } from "./plugins-
|
|
1
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-C6TxBCvO.js";
|
|
2
|
+
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-CPNwHoy5.js";
|
|
4
|
+
import { a as CONFIG_DIR, b as safeParseJson } from "./logger-D4RcXHR-.js";
|
|
5
|
+
import { $ as readConfigFileSnapshotForWrite, Gn as resolveTelegramPreviewStreamMode, Z as loadConfig, cr as withFileLock$1, er as isTruthyEnvValue, tt as writeConfigFile } from "./model-selection-DQ5NblsF.js";
|
|
6
|
+
import { n as listChannelPlugins, t as getChannelPlugin, u as resolveTelegramAccount } from "./plugins-CeflwBVL.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-CLQ9abCf.js";
|
|
9
|
+
import { t as redactSensitiveText } from "./redact-DGz6yigq.js";
|
|
10
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-DDrhcWHi.js";
|
|
11
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-zUD967XQ.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-ChfJDZwG.js";
|
|
14
|
+
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-9Bn85Mqy.js";
|
|
15
15
|
import { t as renderMarkdownWithMarkers } from "./render-DW7AcFdD.js";
|
|
16
16
|
import { t as resolveFetch } from "./fetch-BfuG8uZ8.js";
|
|
17
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
17
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-DO-d_jr4.js";
|
|
18
18
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BFUunM8u.js";
|
|
19
19
|
import { n as normalizePollInput } from "./polls-C_BruSkP.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 syncFs, { 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 syncFs.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 syncFs.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 syncFs.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 syncFs.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 syncFs.promises.readFile(storePath, "utf-8");
|
|
978
978
|
let parsed;
|
|
979
979
|
try {
|
|
980
980
|
parsed = JSON5.parse(raw);
|
|
@@ -1000,21 +1000,21 @@ async function loadCronStore(storePath) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
async function setSecureFileMode(filePath) {
|
|
1003
|
-
await
|
|
1003
|
+
await syncFs.promises.chmod(filePath, 384).catch(() => void 0);
|
|
1004
1004
|
}
|
|
1005
1005
|
async function saveCronStore(storePath, store, opts) {
|
|
1006
1006
|
const storeDir = path.dirname(storePath);
|
|
1007
|
-
await
|
|
1007
|
+
await syncFs.promises.mkdir(storeDir, {
|
|
1008
1008
|
recursive: true,
|
|
1009
1009
|
mode: 448
|
|
1010
1010
|
});
|
|
1011
|
-
await
|
|
1011
|
+
await syncFs.promises.chmod(storeDir, 448).catch(() => void 0);
|
|
1012
1012
|
const json = JSON.stringify(store, null, 2);
|
|
1013
1013
|
const cached = serializedStoreCache.get(storePath);
|
|
1014
1014
|
if (cached === json) return;
|
|
1015
1015
|
let previous = cached ?? null;
|
|
1016
1016
|
if (previous === null) try {
|
|
1017
|
-
previous = await
|
|
1017
|
+
previous = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1018
1018
|
} catch (err) {
|
|
1019
1019
|
if (err.code !== "ENOENT") throw err;
|
|
1020
1020
|
}
|
|
@@ -1023,14 +1023,14 @@ async function saveCronStore(storePath, store, opts) {
|
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1026
|
-
await
|
|
1026
|
+
await syncFs.promises.writeFile(tmp, json, {
|
|
1027
1027
|
encoding: "utf-8",
|
|
1028
1028
|
mode: 384
|
|
1029
1029
|
});
|
|
1030
1030
|
await setSecureFileMode(tmp);
|
|
1031
1031
|
if (previous !== null && !opts?.skipBackup) try {
|
|
1032
1032
|
const backupPath = `${storePath}.bak`;
|
|
1033
|
-
await
|
|
1033
|
+
await syncFs.promises.copyFile(storePath, backupPath);
|
|
1034
1034
|
await setSecureFileMode(backupPath);
|
|
1035
1035
|
} catch {}
|
|
1036
1036
|
await renameWithRetry(tmp, storePath);
|
|
@@ -1041,7 +1041,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1041
1041
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1042
1042
|
async function renameWithRetry(src, dest) {
|
|
1043
1043
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1044
|
-
await
|
|
1044
|
+
await syncFs.promises.rename(src, dest);
|
|
1045
1045
|
return;
|
|
1046
1046
|
} catch (err) {
|
|
1047
1047
|
const code = err.code;
|
|
@@ -1050,8 +1050,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1050
1050
|
continue;
|
|
1051
1051
|
}
|
|
1052
1052
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1053
|
-
await
|
|
1054
|
-
await
|
|
1053
|
+
await syncFs.promises.copyFile(src, dest);
|
|
1054
|
+
await syncFs.promises.unlink(src).catch(() => {});
|
|
1055
1055
|
return;
|
|
1056
1056
|
}
|
|
1057
1057
|
throw err;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Z as loadConfig } from "./model-selection-
|
|
1
|
+
import { Z as loadConfig } from "./model-selection-DQ5NblsF.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-DNligSyz.js";
|
|
4
|
+
import { E as kindFromMime } from "./image-ops-CLQ9abCf.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-9Bn85Mqy.js";
|
|
7
7
|
import { t as resolveFetch } from "./fetch-BfuG8uZ8.js";
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-BmiVeNLr.js";
|
|
9
9
|
|
|
10
10
|
//#region src/signal/format.ts
|
|
11
11
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
2
|
-
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
3
|
-
import { S as retryAsync, Z as loadConfig, x as resolveRetryConfig } from "./model-selection-
|
|
4
|
-
import { E as normalizeDiscordToken, T as resolveDiscordAccount } from "./plugins-
|
|
1
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-CPNwHoy5.js";
|
|
3
|
+
import { S as retryAsync, Z as loadConfig, x as resolveRetryConfig } from "./model-selection-DQ5NblsF.js";
|
|
4
|
+
import { E as normalizeDiscordToken, T as resolveDiscordAccount } from "./plugins-CeflwBVL.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-CLQ9abCf.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-9Bn85Mqy.js";
|
|
8
8
|
import { t as resolveFetch } from "./fetch-BfuG8uZ8.js";
|
|
9
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-
|
|
9
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-DO-d_jr4.js";
|
|
10
10
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BFUunM8u.js";
|
|
11
11
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-C_BruSkP.js";
|
|
12
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
+
import { t as convertMarkdownTables } from "./tables-DBZFzS9x.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 { Xn as VERSION, fr as formatCliCommand } 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-W834z9Wa.js";
|
|
2
|
+
import { l as ensureDir, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
3
|
+
import { Xn as VERSION, fr as formatCliCommand } from "./model-selection-DQ5NblsF.js";
|
|
4
|
+
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-B-9Bhdn6.js";
|
|
5
|
+
import syncFs 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
|
+
syncFs.copyFileSync(credsPath, backupPath);
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
syncFs.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
|
+
syncFs.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-kEFC1Fle.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
4
|
+
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
5
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-DgwotBrr.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-C6INZSSX.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import syncFs from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
13
13
|
|
|
@@ -252,13 +252,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
252
252
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
253
253
|
for (const agentId of agentIds) {
|
|
254
254
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
255
|
-
if (!
|
|
255
|
+
if (!syncFs.existsSync(workspaceDir)) {
|
|
256
256
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
257
257
|
continue;
|
|
258
258
|
}
|
|
259
259
|
let canonicalDir;
|
|
260
260
|
try {
|
|
261
|
-
canonicalDir =
|
|
261
|
+
canonicalDir = syncFs.realpathSync(workspaceDir);
|
|
262
262
|
} catch {
|
|
263
263
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
264
264
|
continue;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as normalizeSkillFilter } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { O as isPathInside, h as resolveOpenClawPackageRootSync } from "./workspace-
|
|
4
|
-
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { $n as isDangerousHostEnvVarName, Bt as resolveEffectiveEnableState, Kn as isPathInsideWithRealpath, Pt as loadPluginManifestRegistry, Vt as resolveMemorySlotDecision, yr as normalizeResolvedSecretInputString, zt as normalizePluginsConfig } from "./model-selection-
|
|
6
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, 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-kEFC1Fle.js";
|
|
2
|
+
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { O as isPathInside, h as resolveOpenClawPackageRootSync } from "./workspace-CPNwHoy5.js";
|
|
4
|
+
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
5
|
+
import { $n as isDangerousHostEnvVarName, Bt as resolveEffectiveEnableState, Kn as isPathInsideWithRealpath, Pt as loadPluginManifestRegistry, Vt as resolveMemorySlotDecision, yr as normalizeResolvedSecretInputString, zt as normalizePluginsConfig } from "./model-selection-DQ5NblsF.js";
|
|
6
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-BFHzrAY7.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-DBVdJRcc.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import syncFs 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 = syncFs.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 (syncFs.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 (syncFs.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 (!syncFs.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 = syncFs.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 = syncFs.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 (syncFs.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 (!syncFs.existsSync(nested) || !syncFs.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 (syncFs.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 (syncFs.existsSync(rootSkillMd)) {
|
|
790
790
|
try {
|
|
791
|
-
const size =
|
|
791
|
+
const size = syncFs.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 (!syncFs.existsSync(skillMd)) continue;
|
|
831
831
|
try {
|
|
832
|
-
const size =
|
|
832
|
+
const size = syncFs.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(syncFs.readFileSync(skill.filePath, "utf-8"));
|
|
901
901
|
} catch {}
|
|
902
902
|
return {
|
|
903
903
|
skill,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./run-with-concurrency-kEFC1Fle.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./workspace-CPNwHoy5.js";
|
|
5
|
+
import "./logger-D4RcXHR-.js";
|
|
6
|
+
import "./model-selection-DQ5NblsF.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import "./thinking-Xlbm5WNq.js";
|
|
10
|
+
import "./accounts-B-9Bhdn6.js";
|
|
11
|
+
import "./plugins-CeflwBVL.js";
|
|
12
|
+
import "./accounts-DNligSyz.js";
|
|
13
|
+
import "./accounts-C2vo5fEt.js";
|
|
14
|
+
import { f as resolveCommandArgMenu, n as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-C6INZSSX.js";
|
|
15
|
+
|
|
16
|
+
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import "./run-with-concurrency-kEFC1Fle.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./workspace-CPNwHoy5.js";
|
|
5
|
+
import "./logger-D4RcXHR-.js";
|
|
6
|
+
import "./model-selection-DQ5NblsF.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import "./thinking-Xlbm5WNq.js";
|
|
10
|
+
import "./tokens-Cyi-NbsV.js";
|
|
11
|
+
import { C as dispatchReplyWithDispatcher, I as resolveAgentRoute, L as finalizeInboundContext, i as deliverSlackSlashReplies, r as recordInboundSessionMetaSafe, u as createReplyPrefixOptions } from "./pi-embedded-BYfpUcIY.js";
|
|
12
|
+
import "./accounts-B-9Bhdn6.js";
|
|
13
|
+
import "./plugins-CeflwBVL.js";
|
|
14
|
+
import "./send-C4kartXc.js";
|
|
15
|
+
import "./send-DqQOo6dv.js";
|
|
16
|
+
import "./deliver-B1PE5Kmq.js";
|
|
17
|
+
import "./diagnostic-Do7hUiao.js";
|
|
18
|
+
import "./accounts-DNligSyz.js";
|
|
19
|
+
import "./image-ops-CLQ9abCf.js";
|
|
20
|
+
import "./send-CisFoCif.js";
|
|
21
|
+
import "./pi-model-discovery-DANpv7pw.js";
|
|
22
|
+
import { kt as resolveConversationLabel } from "./pi-embedded-helpers-_OL4yNw0.js";
|
|
23
|
+
import "./chrome-hkgY24uS.js";
|
|
24
|
+
import "./frontmatter-BFHzrAY7.js";
|
|
25
|
+
import "./skills-DgwotBrr.js";
|
|
26
|
+
import "./path-alias-guards-DBVdJRcc.js";
|
|
27
|
+
import "./redact-DGz6yigq.js";
|
|
28
|
+
import "./errors-DDrhcWHi.js";
|
|
29
|
+
import "./fs-safe-CeZ_BXcn.js";
|
|
30
|
+
import "./proxy-env-zUD967XQ.js";
|
|
31
|
+
import "./store-CNWtYorN.js";
|
|
32
|
+
import "./accounts-C2vo5fEt.js";
|
|
33
|
+
import "./paths-Cgd1FfOW.js";
|
|
34
|
+
import "./tool-images-D217wDXi.js";
|
|
35
|
+
import "./image-DJo3nF6e.js";
|
|
36
|
+
import "./audio-transcription-runner-CsXaWVup.js";
|
|
37
|
+
import "./fetch-BETRLmK8.js";
|
|
38
|
+
import "./fetch-guard-pwJ-F5aP.js";
|
|
39
|
+
import "./api-key-rotation-BENZC8ep.js";
|
|
40
|
+
import "./proxy-fetch-ChfJDZwG.js";
|
|
41
|
+
import { m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-9Bn85Mqy.js";
|
|
42
|
+
import "./render-DW7AcFdD.js";
|
|
43
|
+
import "./target-errors-CxUP9L6c.js";
|
|
44
|
+
import "./commands-registry-C6INZSSX.js";
|
|
45
|
+
import "./skill-commands-BN9qtrxT.js";
|
|
46
|
+
import "./fetch-BfuG8uZ8.js";
|
|
47
|
+
import "./channel-activity-DO-d_jr4.js";
|
|
48
|
+
import "./tables-DBZFzS9x.js";
|
|
49
|
+
import "./send-DKjV2v4c.js";
|
|
50
|
+
import "./outbound-attachment-BmiVeNLr.js";
|
|
51
|
+
import "./send-Bi_r7Hno.js";
|
|
52
|
+
import "./proxy-CecQTx_Z.js";
|
|
53
|
+
import "./manager-Bq6y1TH8.js";
|
|
54
|
+
import "./query-expansion-Cbd21KuP.js";
|
|
55
|
+
|
|
56
|
+
export { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./run-with-concurrency-kEFC1Fle.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./workspace-CPNwHoy5.js";
|
|
5
|
+
import "./logger-D4RcXHR-.js";
|
|
6
|
+
import "./model-selection-DQ5NblsF.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import "./thinking-Xlbm5WNq.js";
|
|
10
|
+
import "./accounts-B-9Bhdn6.js";
|
|
11
|
+
import "./plugins-CeflwBVL.js";
|
|
12
|
+
import "./accounts-DNligSyz.js";
|
|
13
|
+
import "./frontmatter-BFHzrAY7.js";
|
|
14
|
+
import "./skills-DgwotBrr.js";
|
|
15
|
+
import "./path-alias-guards-DBVdJRcc.js";
|
|
16
|
+
import "./accounts-C2vo5fEt.js";
|
|
17
|
+
import "./commands-registry-C6INZSSX.js";
|
|
18
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-BN9qtrxT.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-D4RcXHR-.js";
|
|
2
|
+
import { b as detectMime, x as extensionForMime } from "./image-ops-CLQ9abCf.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-kEFC1Fle.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./workspace-CPNwHoy5.js";
|
|
5
|
+
import "./logger-D4RcXHR-.js";
|
|
6
|
+
import "./model-selection-DQ5NblsF.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import "./thinking-Xlbm5WNq.js";
|
|
10
|
+
import "./tokens-Cyi-NbsV.js";
|
|
11
|
+
import { G as isSubagentSessionRunActive, H as countActiveDescendantRuns, J as resolveRequesterForChildSession, K as listSubagentRunsForRequester, U as countPendingDescendantRuns, W as countPendingDescendantRunsExcludingRun, Y as shouldIgnorePostCompletionAnnounceForSession, q as replaceSubagentRunAfterSteer } from "./pi-embedded-BYfpUcIY.js";
|
|
12
|
+
import "./accounts-B-9Bhdn6.js";
|
|
13
|
+
import "./plugins-CeflwBVL.js";
|
|
14
|
+
import "./send-C4kartXc.js";
|
|
15
|
+
import "./send-DqQOo6dv.js";
|
|
16
|
+
import "./deliver-B1PE5Kmq.js";
|
|
17
|
+
import "./diagnostic-Do7hUiao.js";
|
|
18
|
+
import "./accounts-DNligSyz.js";
|
|
19
|
+
import "./image-ops-CLQ9abCf.js";
|
|
20
|
+
import "./send-CisFoCif.js";
|
|
21
|
+
import "./pi-model-discovery-DANpv7pw.js";
|
|
22
|
+
import "./pi-embedded-helpers-_OL4yNw0.js";
|
|
23
|
+
import "./chrome-hkgY24uS.js";
|
|
24
|
+
import "./frontmatter-BFHzrAY7.js";
|
|
25
|
+
import "./skills-DgwotBrr.js";
|
|
26
|
+
import "./path-alias-guards-DBVdJRcc.js";
|
|
27
|
+
import "./redact-DGz6yigq.js";
|
|
28
|
+
import "./errors-DDrhcWHi.js";
|
|
29
|
+
import "./fs-safe-CeZ_BXcn.js";
|
|
30
|
+
import "./proxy-env-zUD967XQ.js";
|
|
31
|
+
import "./store-CNWtYorN.js";
|
|
32
|
+
import "./accounts-C2vo5fEt.js";
|
|
33
|
+
import "./paths-Cgd1FfOW.js";
|
|
34
|
+
import "./tool-images-D217wDXi.js";
|
|
35
|
+
import "./image-DJo3nF6e.js";
|
|
36
|
+
import "./audio-transcription-runner-CsXaWVup.js";
|
|
37
|
+
import "./fetch-BETRLmK8.js";
|
|
38
|
+
import "./fetch-guard-pwJ-F5aP.js";
|
|
39
|
+
import "./api-key-rotation-BENZC8ep.js";
|
|
40
|
+
import "./proxy-fetch-ChfJDZwG.js";
|
|
41
|
+
import "./ir-9Bn85Mqy.js";
|
|
42
|
+
import "./render-DW7AcFdD.js";
|
|
43
|
+
import "./target-errors-CxUP9L6c.js";
|
|
44
|
+
import "./commands-registry-C6INZSSX.js";
|
|
45
|
+
import "./skill-commands-BN9qtrxT.js";
|
|
46
|
+
import "./fetch-BfuG8uZ8.js";
|
|
47
|
+
import "./channel-activity-DO-d_jr4.js";
|
|
48
|
+
import "./tables-DBZFzS9x.js";
|
|
49
|
+
import "./send-DKjV2v4c.js";
|
|
50
|
+
import "./outbound-attachment-BmiVeNLr.js";
|
|
51
|
+
import "./send-Bi_r7Hno.js";
|
|
52
|
+
import "./proxy-CecQTx_Z.js";
|
|
53
|
+
import "./manager-Bq6y1TH8.js";
|
|
54
|
+
import "./query-expansion-Cbd21KuP.js";
|
|
55
|
+
|
|
56
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, listSubagentRunsForRequester, replaceSubagentRunAfterSteer, resolveRequesterForChildSession, shouldIgnorePostCompletionAnnounceForSession };
|