@fased/fased 0.1.53 → 0.1.55
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/agents/authenticated-model-catalog.js +27 -0
- package/dist/agents/current-model-catalog.js +30 -10
- package/dist/agents/model-catalog-normalized.js +1 -0
- package/dist/agents/model-catalog-source.js +4 -4
- package/dist/agents/model-forward-compat.js +19 -1
- package/dist/agents/model-metadata.js +37 -8
- package/dist/agents/pi-embedded-runner/agent-messages.js +15 -0
- package/dist/agents/pi-embedded-runner/compact.js +2 -1
- package/dist/agents/pi-embedded-runner/extra-params.js +25 -0
- package/dist/agents/pi-embedded-runner/model.js +2 -7
- package/dist/agents/pi-embedded-runner/run/attempt.js +4 -5
- package/dist/agents/pi-embedded-runner/utils.js +1 -1
- package/dist/brand.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/cli/program/register.agent.js +17 -0
- package/dist/cli/providers-cli.js +3 -2
- package/dist/commands/agents.commands.models.js +63 -0
- package/dist/commands/agents.js +1 -0
- package/dist/commands/auth-choice.apply.api-providers.js +3 -8
- package/dist/commands/auth-choice.apply.openai.js +13 -7
- package/dist/commands/auth-choice.model-check.js +1 -2
- package/dist/commands/configure.gateway-auth.js +14 -16
- package/dist/commands/model-picker.js +25 -7
- package/dist/commands/models/list.registry.js +13 -18
- package/dist/commands/onboard-auth.config-core.js +1 -1
- package/dist/commands/onboard-auth.config-litellm.js +21 -21
- package/dist/commands/onboard-auth.credentials.js +0 -1
- package/dist/commands/onboard-auth.js +0 -1
- package/dist/commands/openai-codex-model-default.js +26 -4
- package/dist/config/defaults.js +1 -1
- package/dist/config/zod-schema.agent-defaults.js +4 -2
- package/dist/config/zod-schema.agent-runtime.js +4 -2
- package/dist/config/zod-schema.core.js +4 -2
- package/dist/control-ui/assets/{app-WIDYwhr-.js → app-D2RaTXoV.js} +1788 -1755
- package/dist/control-ui/assets/chat-model-ref-BZFblCeY.js +2 -0
- package/dist/control-ui/assets/{index-K3ysLeTN.js → index-D2nC6I-9.js} +3 -3
- package/dist/control-ui/assets/{providers-rQMhp1fb.js → providers-CyjiG5Jw.js} +4 -4
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/version.json +1 -0
- package/dist/cron/isolated-agent/run.js +9 -3
- package/dist/cron/normalize.js +10 -0
- package/dist/gateway/control-ui.js +2 -0
- package/dist/gateway/protocol/schema/agents-models-skills.js +6 -2
- package/dist/gateway/protocol/schema/cron.js +7 -0
- package/dist/gateway/server-methods/models.js +8 -9
- package/dist/gateway/server-model-catalog.js +3 -0
- package/dist/infra/update-runner.js +31 -3
- package/dist/light-update-status.js +10 -10
- package/dist/memory/inventory.js +19 -2
- package/dist/plugin-sdk/{accounts-BZrfqJmO.js → accounts-CeRNo5Ae.js} +1 -1
- package/dist/plugin-sdk/{actions-7_zTh8zC.js → actions-OMRHtXPj.js} +2 -2
- package/dist/plugin-sdk/{active-listener-D8NVRD8J.js → active-listener-BlIkS3iR.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BrVWUkoP.js → audio-preflight-B2n3a2Tj.js} +26 -26
- package/dist/plugin-sdk/{audit-2iRlVyQF.js → audit-Ppg6dR_b.js} +1 -1
- package/dist/plugin-sdk/{channel-access-BCf1rJsn.js → channel-access-af8dWWRv.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-B-Z51Qsd.js → channel-access-configure-B6IAGlE0.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.d.ts +3 -3
- package/dist/plugin-sdk/channel-plugin-common.js +4 -4
- package/dist/plugin-sdk/{chunk-BREC9ijl.js → chunk-CD76Byie.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-BLRCltGL.js → chunk-items-Bu19zrYH.js} +1 -1
- package/dist/plugin-sdk/command-status.d.ts +2 -2
- package/dist/plugin-sdk/command-status.js +26 -26
- package/dist/plugin-sdk/{commands-registry-D3-bFLsz.js → commands-registry-DgS55tNj.js} +2 -2
- package/dist/plugin-sdk/{common-BlqMqEqn.js → common-CWvfeiX0.js} +1 -1
- package/dist/plugin-sdk/{config-442EDe7Z.js → config-CYDETqcF.js} +130 -134
- package/dist/plugin-sdk/{config-schema-DV0zctd2.js → config-schema-CQ4EVcQG.js} +164 -78
- package/dist/plugin-sdk/device-pair.d.ts +1 -1
- package/dist/plugin-sdk/discord.d.ts +5 -5
- package/dist/plugin-sdk/discord.js +19 -19
- package/dist/plugin-sdk/{group-mentions-DLOOve8d.d.ts → group-mentions-BxDgHCgj.d.ts} +1 -1
- package/dist/plugin-sdk/{handle-action-pNaP87Dr.js → handle-action-B75UVKxF.js} +13 -13
- package/dist/plugin-sdk/{helpers-B994qqVW.js → helpers-BuEwju6y.js} +1 -1
- package/dist/plugin-sdk/{image-ops-Doq8nZQw.js → image-ops-C66HPeAZ.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +8 -8
- package/dist/plugin-sdk/index.js +28 -28
- package/dist/plugin-sdk/{login-CK2zTIJA.js → login-Amr2DpKU.js} +3 -3
- package/dist/plugin-sdk/{login-qr-u8Mn1mCp.js → login-qr-DMQNEi9m.js} +3 -3
- package/dist/plugin-sdk/{manager-CeJNf2bH.js → manager-Bvpq49BI.js} +2 -2
- package/dist/plugin-sdk/{markdown-tables-DeZztrY6.js → markdown-tables-DmQ7oXOm.js} +1 -1
- package/dist/plugin-sdk/{media-CgUAEfhs.js → media-ByLQbEwJ.js} +2 -2
- package/dist/plugin-sdk/{monitor-CEtMJuFX.js → monitor-K_u6daGa.js} +30 -30
- package/dist/plugin-sdk/{monitor-D-APtCpn.js → monitor-S_7LrvSj.js} +31 -31
- package/dist/plugin-sdk/{openresponses-http-g1Iz0xB2.js → openresponses-http-BrDJUZXR.js} +26 -26
- package/dist/plugin-sdk/{optional-runtime-dependency-D0BdXz1C.js → optional-runtime-dependency-CbYjAC2b.js} +1 -1
- package/dist/plugin-sdk/{outbound-DXGuFrdx.js → outbound-BuDafBBI.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-oxhGO33g.js → outbound-attachment-DmZmUqFP.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-D3WPVg_j.d.ts → pairing-message-D0-UWGFJ.d.ts} +2 -2
- package/dist/plugin-sdk/{pairing-message-C29ixrvn.js → pairing-message-e4D4eBDA.js} +1 -1
- package/dist/plugin-sdk/{pairing-store-1kcsOWRs.js → pairing-store-T3IGoGZg.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-l-xqaEd0.js → pi-model-discovery-DvAG_Png.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-CibV8F8G.js → pi-model-discovery-runtime-NjkUgjIf.js} +2 -2
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +2 -2
- package/dist/plugin-sdk/{pw-ai-9qEBW5-k.js → pw-ai-D7eW43DL.js} +3 -3
- package/dist/plugin-sdk/{replies-BX3L8fX7.js → replies-BMIPmEoP.js} +2 -2
- package/dist/plugin-sdk/{resolve-outbound-target-D0AK10E7.js → resolve-outbound-target-CXCqUUPV.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-UO6XLYH3.js → resolve-route-DJN-SUSt.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-C5N8JiHL.js → retry-policy-CY1qY6d7.js} +1 -1
- package/dist/plugin-sdk/{runtime-Dnzwux3G.js → runtime-CgOkQe0w.js} +3 -3
- package/dist/plugin-sdk/{runtime-dependency-BDDpVKBO.js → runtime-dependency-DvdRNMvs.js} +2 -2
- package/dist/plugin-sdk/sat-runtime.d.ts +3 -3
- package/dist/plugin-sdk/sat-runtime.js +5 -5
- package/dist/plugin-sdk/{send-bcKv8F5E.js → send-2ITqny2W.js} +8 -8
- package/dist/plugin-sdk/{send-DGEgo_6f.js → send-BAz22RZr.js} +5 -5
- package/dist/plugin-sdk/{send-DcsYRH2f.js → send-BG3RWyil.js} +7 -7
- package/dist/plugin-sdk/{send-D5rgCP1r.js → send-Cr-dj6S-.js} +6 -6
- package/dist/plugin-sdk/{send-B4XLsTL0.js → send-eTxqFFsw.js} +6 -6
- package/dist/plugin-sdk/{session-BoGNOlwv.js → session-C8nJmmVE.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-Be8s4TGQ.js → skill-commands-Rm5by9S8.js} +2 -2
- package/dist/plugin-sdk/{slack-actions-TNnAXiUx.js → slack-actions-BNIALJTA.js} +11 -11
- package/dist/plugin-sdk/{slack-74qForpW.js → slack-xvIVvyEM.js} +38 -38
- package/dist/plugin-sdk/slack.d.ts +5 -5
- package/dist/plugin-sdk/slack.js +9 -9
- package/dist/plugin-sdk/{sticker-cache-CrYayLff.js → sticker-cache-D3oDiu2u.js} +3 -3
- package/dist/plugin-sdk/{tables-Ch4js2qy.js → tables-DS5L7lCA.js} +1 -1
- package/dist/plugin-sdk/{targets-BGfRUJPE.js → targets-D6lUomJc.js} +1 -1
- package/dist/plugin-sdk/{telegram-actions-BGy4AEvF.js → telegram-actions-MSFkDn0m.js} +29 -29
- package/dist/plugin-sdk/telegram.d.ts +5 -5
- package/dist/plugin-sdk/telegram.js +8 -8
- package/dist/plugin-sdk/{thread-bindings.lifecycle-_uQ2EF17.js → thread-bindings.lifecycle-Ry6Vcgw3.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-DUg0s_1X.js → thread-bindings.state-C0stmvNk.js} +2 -2
- package/dist/plugin-sdk/{tmp-fased-dir-BrbXGSkl.d.ts → tmp-fased-dir-D91GExk4.d.ts} +2 -2
- package/dist/plugin-sdk/{types-CBCtqtMn.d.ts → types-BzadOItY.d.ts} +1 -1
- package/dist/plugin-sdk/{types-DlKIHIqA.d.ts → types-DKvBJHfH.d.ts} +16 -6
- package/dist/plugin-sdk/{types-BJdDoTQF.d.ts → types-DVTIpopt.d.ts} +2 -2
- package/dist/plugin-sdk/{types.plugin-CvUiB3Kh.d.ts → types.plugin-BiHPaDTF.d.ts} +2 -1
- package/dist/plugin-sdk/{wallet-status-M6aK3abH.js → wallet-status-f0HagNeO.js} +31 -13
- package/dist/plugin-sdk/{web-r1KFR44s.js → web-DRNJxHXA.js} +31 -31
- package/dist/plugin-sdk/{whatsapp-actions-CID_tqAX.js → whatsapp-actions-BDXZF2R5.js} +13 -13
- package/dist/plugin-sdk/{whatsapp-heartbeat-Bk-aZVMa.js → whatsapp-heartbeat-CKgmwCGr.js} +2 -2
- package/dist/plugin-sdk/whatsapp.d.ts +5 -5
- package/dist/plugin-sdk/whatsapp.js +12 -12
- package/dist/plugin-sdk/{wsl-C_STtED7.js → wsl-Biw7Mj39.js} +3 -3
- package/dist/providers/huggingface-models.js +0 -30
- package/dist/providers/litellm-models.js +1 -1
- package/dist/providers/opencode-zen-shared.js +0 -1
- package/dist/providers/refresh.js +221 -62
- package/dist/providers/registry.js +31 -7
- package/dist/providers/runtime-model-catalog.js +181 -0
- package/dist/providers/vercel-ai-gateway-models.js +0 -35
- package/dist/shared/model-thinking.js +44 -2
- package/dist/wizard/onboarding.js +24 -6
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/fased-federation/package.json +1 -1
- package/extensions/google-gemini-cli-auth/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 +12 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +2 -2
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/control-ui/assets/chat-model-ref-NT82zapt.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Fr as normalizePluginsConfig, Ir as resolveEffectiveEnableState, Lr as resolveMemorySlotDecision, Mr as parseBooleanValue, Tr as isDangerousHostEnvVarName, Vn as loadPluginManifestRegistry, gr as MANIFEST_KEY } from "./config-CYDETqcF.js";
|
|
5
5
|
import { D as resolveFasedAgentPackageRootSync, K as normalizeStringEntries, R as resolveEffectiveAgentSkillFilter, l as resolveAgentWorkspaceDir, r as listAgentIds, z as normalizeSkillFilter } from "./agent-scope-BbgPlhtw.js";
|
|
6
6
|
import { o as createAsyncLock } from "./pairing-token-N_6Jbt1L.js";
|
|
7
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
7
|
+
import { a as listChatCommands } from "./commands-registry-DgS55tNj.js";
|
|
8
8
|
import { i as resolveSandboxPath } from "./sandbox-paths-lj7_EVuA.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { bt as parseSlackTarget, xt as resolveSlackChannelId } from "./runtime-
|
|
1
|
+
import { bt as parseSlackTarget, xt as resolveSlackChannelId } from "./runtime-CgOkQe0w.js";
|
|
2
2
|
import "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import "./globals-B_jjtAje.js";
|
|
4
4
|
import "./paths-BEmvSyOV.js";
|
|
5
5
|
import "./utils-CYk9EKoq.js";
|
|
6
|
-
import "./config-
|
|
6
|
+
import "./config-CYDETqcF.js";
|
|
7
7
|
import "./agent-scope-BbgPlhtw.js";
|
|
8
8
|
import "./accounts-RHZyaB73.js";
|
|
9
9
|
import { i as resolveSlackAccount } from "./accounts-CuqIKU8X.js";
|
|
10
10
|
import "./logger-BbFvCoKk.js";
|
|
11
11
|
import "./exec-DQ8j4Fm3.js";
|
|
12
|
-
import "./accounts-
|
|
12
|
+
import "./accounts-CeRNo5Ae.js";
|
|
13
13
|
import "./redact-Bm8vu_ju.js";
|
|
14
14
|
import "./github-copilot-token-CUK__1s1.js";
|
|
15
15
|
import "./retry-DstNBhDW.js";
|
|
@@ -17,21 +17,21 @@ import "./paths-CTZ2RS_E.js";
|
|
|
17
17
|
import "./ip-C70a-YlD.js";
|
|
18
18
|
import "./ssrf-BZG8Ztod.js";
|
|
19
19
|
import "./fetch-guard-BuYrl6q2.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-CD76Byie.js";
|
|
21
21
|
import "./tokens-BvtlOzVP.js";
|
|
22
|
-
import "./optional-runtime-dependency-
|
|
23
|
-
import "./image-ops-
|
|
22
|
+
import "./optional-runtime-dependency-CbYjAC2b.js";
|
|
23
|
+
import "./image-ops-C66HPeAZ.js";
|
|
24
24
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
25
25
|
import "./fs-safe-BG-VzVkL.js";
|
|
26
|
-
import "./markdown-tables-
|
|
27
|
-
import "./media-
|
|
28
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-
|
|
26
|
+
import "./markdown-tables-DmQ7oXOm.js";
|
|
27
|
+
import "./media-ByLQbEwJ.js";
|
|
28
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-CWvfeiX0.js";
|
|
29
29
|
import { i as withNormalizedTimestamp } from "./date-time-CE3Uer3C.js";
|
|
30
30
|
import "./render-Bwu_WxwA.js";
|
|
31
31
|
import { t as parseSlackBlocksInput } from "./blocks-input-Dcitfh7h.js";
|
|
32
|
-
import "./send-
|
|
32
|
+
import "./send-BAz22RZr.js";
|
|
33
33
|
import "./client-D2N7hqVu.js";
|
|
34
|
-
import { a as listSlackPins, c as reactSlackMessage, d as removeSlackReaction, f as sendSlackMessage, i as listSlackEmojis, l as readSlackMessages, n as editSlackMessage, o as listSlackReactions, p as unpinSlackMessage, r as getSlackMemberInfo, s as pinSlackMessage, t as deleteSlackMessage, u as removeOwnSlackReactions } from "./actions-
|
|
34
|
+
import { a as listSlackPins, c as reactSlackMessage, d as removeSlackReaction, f as sendSlackMessage, i as listSlackEmojis, l as readSlackMessages, n as editSlackMessage, o as listSlackReactions, p as unpinSlackMessage, r as getSlackMemberInfo, s as pinSlackMessage, t as deleteSlackMessage, u as removeOwnSlackReactions } from "./actions-OMRHtXPj.js";
|
|
35
35
|
|
|
36
36
|
//#region src/agents/tools/slack-actions.ts
|
|
37
37
|
const messagingActions = new Set([
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as clearHistoryEntriesIfEnabled, At as allowListMatches, F as issuePairingChallenge, Ft as resolveSlackUserAllowed, G as logTypingFailure, Ht as enqueueSystemEvent, I as createTypingCallbacks, Ir as resolveCommandAuthorizedFromAuthorizers, Lr as resolveControlCommandGate, Mr as readStoreAllowFromForDmPolicy, Mt as normalizeAllowListLower, Nt as normalizeSlackSlug, Pn as installRequestBodyLimitGuard, Pt as resolveSlackAllowListMatch, R as resolveMentionGatingWithBypass, U as logAckFailure, Ut as resolveChannelConfigWrites, W as logInboundDrop, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, at as shouldAckReaction, c as addAllowlistUserEntriesFromConfigEntry, d as mergeAllowlist, dt as resolveInboundDebounceMs, f as patchAllowlistUsersInConfigEntries, fn as buildMentionRegexes, ft as formatInboundEnvelope, gt as createReplyDispatcherWithTyping, ht as dispatchInboundMessage, it as removeAckReactionAfterReply, jt as normalizeAllowList, l as buildAllowlistResolutionSummary, ln as hasControlCommand, mt as resolveEnvelopeFormatOptions, nt as recordPendingHistoryEntryIfEnabled, or as createDedupeCache, p as summarizeMapping, pn as matchesMentionWithExplicit, ri as formatAllowlistMatchMeta, rt as recordInboundSession, sr as pruneMapToMaxSize, ut as createInboundDebouncer, x as isDangerousNameMatchingEnabled } from "./config-schema-
|
|
2
|
-
import { K as resolveSessionKey, S as readSessionUpdatedAt, w as updateLastRoute } from "./runtime-
|
|
1
|
+
import { $ as clearHistoryEntriesIfEnabled, At as allowListMatches, F as issuePairingChallenge, Ft as resolveSlackUserAllowed, G as logTypingFailure, Ht as enqueueSystemEvent, I as createTypingCallbacks, Ir as resolveCommandAuthorizedFromAuthorizers, Lr as resolveControlCommandGate, Mr as readStoreAllowFromForDmPolicy, Mt as normalizeAllowListLower, Nt as normalizeSlackSlug, Pn as installRequestBodyLimitGuard, Pt as resolveSlackAllowListMatch, R as resolveMentionGatingWithBypass, U as logAckFailure, Ut as resolveChannelConfigWrites, W as logInboundDrop, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, at as shouldAckReaction, c as addAllowlistUserEntriesFromConfigEntry, d as mergeAllowlist, dt as resolveInboundDebounceMs, f as patchAllowlistUsersInConfigEntries, fn as buildMentionRegexes, ft as formatInboundEnvelope, gt as createReplyDispatcherWithTyping, ht as dispatchInboundMessage, it as removeAckReactionAfterReply, jt as normalizeAllowList, l as buildAllowlistResolutionSummary, ln as hasControlCommand, mt as resolveEnvelopeFormatOptions, nt as recordPendingHistoryEntryIfEnabled, or as createDedupeCache, p as summarizeMapping, pn as matchesMentionWithExplicit, ri as formatAllowlistMatchMeta, rt as recordInboundSession, sr as pruneMapToMaxSize, ut as createInboundDebouncer, x as isDangerousNameMatchingEnabled } from "./config-schema-CQ4EVcQG.js";
|
|
2
|
+
import { K as resolveSessionKey, S as readSessionUpdatedAt, w as updateLastRoute } from "./runtime-CgOkQe0w.js";
|
|
3
3
|
import { r as createNonExitingRuntime } from "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import { i as logVerbose, l as warn, p as getChildLogger, s as shouldLogVerbose, t as danger } from "./globals-B_jjtAje.js";
|
|
5
5
|
import "./paths-BEmvSyOV.js";
|
|
6
6
|
import "./utils-CYk9EKoq.js";
|
|
7
|
-
import { Nt as resolveSlackNativeStreaming, Pt as resolveSlackStreamingMode, jt as mapStreamingModeToSlackLegacyDraftStreamMode, n as loadConfig, s as writeConfigFile } from "./config-
|
|
7
|
+
import { Nt as resolveSlackNativeStreaming, Pt as resolveSlackStreamingMode, jt as mapStreamingModeToSlackLegacyDraftStreamMode, n as loadConfig, s as writeConfigFile } from "./config-CYDETqcF.js";
|
|
8
8
|
import "./agent-scope-BbgPlhtw.js";
|
|
9
9
|
import { n as resolveConversationLabel } from "./conversation-label-BoVqak2R.js";
|
|
10
10
|
import { c as normalizeMainKey, p as normalizeAccountId, u as resolveThreadSessionKeys } from "./session-key-HSJ2KQTc.js";
|
|
@@ -12,7 +12,7 @@ import "./accounts-RHZyaB73.js";
|
|
|
12
12
|
import { i as resolveSlackAccount, n as listSlackAccountIds, o as resolveSlackAppToken, r as resolveDefaultSlackAccountId, s as resolveSlackBotToken, t as listEnabledSlackAccounts } from "./accounts-CuqIKU8X.js";
|
|
13
13
|
import "./logger-BbFvCoKk.js";
|
|
14
14
|
import "./exec-DQ8j4Fm3.js";
|
|
15
|
-
import "./accounts-
|
|
15
|
+
import "./accounts-CeRNo5Ae.js";
|
|
16
16
|
import { S as resolveChannelEntryMatchWithFallback, v as applyChannelMatchMeta, y as buildChannelKeyCandidates } from "./allow-list-BYeKk0Sy.js";
|
|
17
17
|
import "./redact-Bm8vu_ju.js";
|
|
18
18
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -21,11 +21,11 @@ import { l as resolveStorePath } from "./paths-CTZ2RS_E.js";
|
|
|
21
21
|
import "./ip-C70a-YlD.js";
|
|
22
22
|
import { c as normalizeHostname } from "./ssrf-BZG8Ztod.js";
|
|
23
23
|
import "./fetch-guard-BuYrl6q2.js";
|
|
24
|
-
import "./send-
|
|
25
|
-
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-
|
|
26
|
-
import "./wsl-
|
|
27
|
-
import { a as upsertChannelPairingRequest } from "./pairing-store-
|
|
28
|
-
import { l as resolveTextChunkLimit } from "./chunk-
|
|
24
|
+
import "./send-Cr-dj6S-.js";
|
|
25
|
+
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-BuEwju6y.js";
|
|
26
|
+
import "./wsl-Biw7Mj39.js";
|
|
27
|
+
import { a as upsertChannelPairingRequest } from "./pairing-store-T3IGoGZg.js";
|
|
28
|
+
import { l as resolveTextChunkLimit } from "./chunk-CD76Byie.js";
|
|
29
29
|
import "./tailscale-status-ClsquRGs.js";
|
|
30
30
|
import { a as resolveAckReaction, c as resolveHumanDelayConfig, n as createReplyPrefixOptions } from "./reply-prefix-Bqzm6DC1.js";
|
|
31
31
|
import "./tokens-BvtlOzVP.js";
|
|
@@ -34,42 +34,42 @@ import "./pairing-token-N_6Jbt1L.js";
|
|
|
34
34
|
import { t as generateSecureToken } from "./secure-random-Bl-AVLVb.js";
|
|
35
35
|
import "./diagnostic-Dfn1iERm.js";
|
|
36
36
|
import "./diagnostic-session-state-HO94DMou.js";
|
|
37
|
-
import "./optional-runtime-dependency-
|
|
38
|
-
import "./image-ops-
|
|
39
|
-
import "./wallet-status-
|
|
40
|
-
import "./pi-model-discovery-
|
|
41
|
-
import "./runtime-dependency-
|
|
37
|
+
import "./optional-runtime-dependency-CbYjAC2b.js";
|
|
38
|
+
import "./image-ops-C66HPeAZ.js";
|
|
39
|
+
import "./wallet-status-f0HagNeO.js";
|
|
40
|
+
import "./pi-model-discovery-DvAG_Png.js";
|
|
41
|
+
import "./runtime-dependency-DvdRNMvs.js";
|
|
42
42
|
import "./ws-CocpWGhl.js";
|
|
43
43
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
44
44
|
import "./fs-safe-BG-VzVkL.js";
|
|
45
|
-
import "./markdown-tables-
|
|
46
|
-
import { a as fetchRemoteMedia } from "./media-
|
|
47
|
-
import "./send-
|
|
48
|
-
import { a as saveMediaBuffer } from "./outbound-attachment-
|
|
45
|
+
import "./markdown-tables-DmQ7oXOm.js";
|
|
46
|
+
import { a as fetchRemoteMedia } from "./media-ByLQbEwJ.js";
|
|
47
|
+
import "./send-eTxqFFsw.js";
|
|
48
|
+
import { a as saveMediaBuffer } from "./outbound-attachment-DmZmUqFP.js";
|
|
49
49
|
import "./fetch-Cu-ahkie.js";
|
|
50
|
-
import "./thread-bindings.state-
|
|
50
|
+
import "./thread-bindings.state-C0stmvNk.js";
|
|
51
51
|
import "./memory-search-C3C0bD2H.js";
|
|
52
|
-
import "./manager-
|
|
52
|
+
import "./manager-Bvpq49BI.js";
|
|
53
53
|
import "./query-expansion-Zr9qQixm.js";
|
|
54
|
-
import "./common-
|
|
55
|
-
import { E as resolveNativeSkillsEnabled, T as resolveNativeCommandsEnabled, g as shouldHandleTextCommands } from "./commands-registry-
|
|
56
|
-
import "./skill-commands-
|
|
54
|
+
import "./common-CWvfeiX0.js";
|
|
55
|
+
import { E as resolveNativeSkillsEnabled, T as resolveNativeCommandsEnabled, g as shouldHandleTextCommands } from "./commands-registry-DgS55tNj.js";
|
|
56
|
+
import "./skill-commands-Rm5by9S8.js";
|
|
57
57
|
import { t as finalizeInboundContext } from "./inbound-context-BFnIdcqI.js";
|
|
58
58
|
import "./directory-live-DatqU-eS.js";
|
|
59
|
-
import "./targets-
|
|
59
|
+
import "./targets-D6lUomJc.js";
|
|
60
60
|
import "./sandbox-paths-lj7_EVuA.js";
|
|
61
|
-
import { n as resolveAgentRoute } from "./resolve-route-
|
|
61
|
+
import { n as resolveAgentRoute } from "./resolve-route-DJN-SUSt.js";
|
|
62
62
|
import "./render-Bwu_WxwA.js";
|
|
63
|
-
import "./tables-
|
|
63
|
+
import "./tables-DS5L7lCA.js";
|
|
64
64
|
import "./shared-clhhbWN3.js";
|
|
65
|
-
import { t as sendMessageSlack } from "./send-
|
|
65
|
+
import { t as sendMessageSlack } from "./send-BAz22RZr.js";
|
|
66
66
|
import { r as resolveSlackWebClientOptions } from "./client-D2N7hqVu.js";
|
|
67
|
-
import { a as listSlackPins, c as reactSlackMessage, d as removeSlackReaction, f as sendSlackMessage, i as listSlackEmojis, l as readSlackMessages, n as editSlackMessage, o as listSlackReactions, p as unpinSlackMessage, r as getSlackMemberInfo, s as pinSlackMessage, t as deleteSlackMessage, u as removeOwnSlackReactions } from "./actions-
|
|
68
|
-
import { n as buildUntrustedChannelMetadata, t as chunkItems } from "./chunk-items-
|
|
67
|
+
import { a as listSlackPins, c as reactSlackMessage, d as removeSlackReaction, f as sendSlackMessage, i as listSlackEmojis, l as readSlackMessages, n as editSlackMessage, o as listSlackReactions, p as unpinSlackMessage, r as getSlackMemberInfo, s as pinSlackMessage, t as deleteSlackMessage, u as removeOwnSlackReactions } from "./actions-OMRHtXPj.js";
|
|
68
|
+
import { n as buildUntrustedChannelMetadata, t as chunkItems } from "./chunk-items-Bu19zrYH.js";
|
|
69
69
|
import { t as createDraftStreamLoop } from "./draft-stream-loop-CKyHn8IX.js";
|
|
70
70
|
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-zEnvugag.js";
|
|
71
71
|
import { t as resolveSlackUserAllowlist } from "./resolve-users-BTvjQuui.js";
|
|
72
|
-
import { i as resolveSlackThreadTs, n as deliverReplies, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
72
|
+
import { i as resolveSlackThreadTs, n as deliverReplies, t as createSlackReplyDeliveryPlan } from "./replies-BMIPmEoP.js";
|
|
73
73
|
import { probeSlack } from "./probe-Cyb-DGA3.js";
|
|
74
74
|
import SlackBolt from "@slack/bolt";
|
|
75
75
|
|
|
@@ -2918,7 +2918,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
2918
2918
|
}
|
|
2919
2919
|
let commandsRegistry;
|
|
2920
2920
|
async function getCommandsRegistry() {
|
|
2921
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
2921
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-DgS55tNj.js").then((n) => n.n);
|
|
2922
2922
|
return commandsRegistry;
|
|
2923
2923
|
}
|
|
2924
2924
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -3242,14 +3242,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
3242
3242
|
const channelName = channelInfo?.name;
|
|
3243
3243
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
3244
3244
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
3245
|
-
import("./resolve-route-
|
|
3245
|
+
import("./resolve-route-DJN-SUSt.js").then((n) => n.r),
|
|
3246
3246
|
import("./inbound-context-BFnIdcqI.js").then((n) => n.n),
|
|
3247
|
-
import("./config-schema-
|
|
3247
|
+
import("./config-schema-CQ4EVcQG.js").then((n) => n.lt)
|
|
3248
3248
|
]);
|
|
3249
3249
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordSessionMetaFromInbound, resolveStorePath }] = await Promise.all([
|
|
3250
3250
|
import("./conversation-label-BoVqak2R.js").then((n) => n.t),
|
|
3251
3251
|
import("./reply-prefix-Bqzm6DC1.js").then((n) => n.r),
|
|
3252
|
-
import("./runtime-
|
|
3252
|
+
import("./runtime-CgOkQe0w.js").then((n) => n.m)
|
|
3253
3253
|
]);
|
|
3254
3254
|
const route = resolveAgentRoute({
|
|
3255
3255
|
cfg,
|
|
@@ -3317,9 +3317,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
3317
3317
|
});
|
|
3318
3318
|
const deliverSlashPayloads = async (replies) => {
|
|
3319
3319
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
3320
|
-
import("./replies-
|
|
3321
|
-
import("./chunk-
|
|
3322
|
-
import("./markdown-tables-
|
|
3320
|
+
import("./replies-BMIPmEoP.js").then((n) => n.r),
|
|
3321
|
+
import("./chunk-CD76Byie.js").then((n) => n.s),
|
|
3322
|
+
import("./markdown-tables-DmQ7oXOm.js").then((n) => n.t)
|
|
3323
3323
|
]);
|
|
3324
3324
|
await deliverSlackSlashReplies({
|
|
3325
3325
|
replies,
|
|
@@ -3372,7 +3372,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
3372
3372
|
let nativeCommands = [];
|
|
3373
3373
|
if (nativeEnabled) {
|
|
3374
3374
|
reg = await getCommandsRegistry();
|
|
3375
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
3375
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-Rm5by9S8.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
3376
3376
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
3377
3377
|
skillCommands,
|
|
3378
3378
|
provider: "slack"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as DEFAULT_ACCOUNT_ID, r as normalizeAccountId } from "./session-key--_1zVBRB.js";
|
|
2
|
-
import { At as FasedAgentConfig, J as ChannelMessageActionAdapter, Y as ChannelMessageActionContext, ct as ChannelThreadingToolContext, lt as ChannelToolSend, n as ChannelPlugin, qt as SlackAccountConfig, r as ChannelOnboardingAdapter, st as ChannelThreadingContext, u as ChannelMessageActionName, ut as getChatChannelMeta } from "./types.plugin-
|
|
3
|
-
import { Bt as resolveDefaultGroupPolicy, Cn as readStringParam, Gt as listSlackDirectoryGroupsFromConfig, Jt as listTelegramDirectoryPeersFromConfig, Kt as listSlackDirectoryPeersFromConfig, Ut as listDiscordDirectoryGroupsFromConfig, Vt as resolveOpenProviderRuntimeGroupPolicy, Wt as listDiscordDirectoryPeersFromConfig, Xt as listWhatsAppDirectoryPeersFromConfig, Yt as listWhatsAppDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, qt as listTelegramDirectoryGroupsFromConfig, t as PluginRuntime, yn as createActionGate, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-
|
|
4
|
-
import { D as normalizeE164 } from "./types-
|
|
5
|
-
import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-
|
|
6
|
-
import { _ as buildTokenChannelStatusSummary, l as resolveSlackGroupRequireMention, u as resolveSlackGroupToolPolicy } from "./group-mentions-
|
|
2
|
+
import { At as FasedAgentConfig, J as ChannelMessageActionAdapter, Y as ChannelMessageActionContext, ct as ChannelThreadingToolContext, lt as ChannelToolSend, n as ChannelPlugin, qt as SlackAccountConfig, r as ChannelOnboardingAdapter, st as ChannelThreadingContext, u as ChannelMessageActionName, ut as getChatChannelMeta } from "./types.plugin-BiHPaDTF.js";
|
|
3
|
+
import { Bt as resolveDefaultGroupPolicy, Cn as readStringParam, Gt as listSlackDirectoryGroupsFromConfig, Jt as listTelegramDirectoryPeersFromConfig, Kt as listSlackDirectoryPeersFromConfig, Ut as listDiscordDirectoryGroupsFromConfig, Vt as resolveOpenProviderRuntimeGroupPolicy, Wt as listDiscordDirectoryPeersFromConfig, Xt as listWhatsAppDirectoryPeersFromConfig, Yt as listWhatsAppDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, qt as listTelegramDirectoryGroupsFromConfig, t as PluginRuntime, yn as createActionGate, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-DVTIpopt.js";
|
|
4
|
+
import { D as normalizeE164 } from "./types-DKvBJHfH.js";
|
|
5
|
+
import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-D0-UWGFJ.js";
|
|
6
|
+
import { _ as buildTokenChannelStatusSummary, l as resolveSlackGroupRequireMention, u as resolveSlackGroupToolPolicy } from "./group-mentions-BxDgHCgj.js";
|
|
7
7
|
import { o as SlackConfigSchema } from "./zod-schema.providers-core-CIzCjXH9.js";
|
|
8
8
|
import { AgentToolResult } from "@mariozechner/pi-agent-core";
|
|
9
9
|
|
package/dist/plugin-sdk/slack.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Jt as resolveSlackGroupRequireMention, Nn as getChatChannelMeta, Yt as resolveSlackGroupToolPolicy, _t as listWhatsAppDirectoryPeersFromConfig, cn as buildSlackThreadingToolContext, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, mt as listTelegramDirectoryGroupsFromConfig, pt as listSlackDirectoryPeersFromConfig, ut as listDiscordDirectoryGroupsFromConfig, vt as looksLikeSlackTargetId, yt as normalizeSlackMessagingTarget } from "./runtime-
|
|
1
|
+
import { Jt as resolveSlackGroupRequireMention, Nn as getChatChannelMeta, Yt as resolveSlackGroupToolPolicy, _t as listWhatsAppDirectoryPeersFromConfig, cn as buildSlackThreadingToolContext, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, mt as listTelegramDirectoryGroupsFromConfig, pt as listSlackDirectoryPeersFromConfig, ut as listDiscordDirectoryGroupsFromConfig, vt as looksLikeSlackTargetId, yt as normalizeSlackMessagingTarget } from "./runtime-CgOkQe0w.js";
|
|
2
2
|
import "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import "./globals-B_jjtAje.js";
|
|
4
4
|
import "./paths-BEmvSyOV.js";
|
|
5
5
|
import { d as normalizeE164 } from "./utils-CYk9EKoq.js";
|
|
6
|
-
import { h as SlackConfigSchema } from "./config-
|
|
6
|
+
import { h as SlackConfigSchema } from "./config-CYDETqcF.js";
|
|
7
7
|
import "./agent-scope-BbgPlhtw.js";
|
|
8
8
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
9
9
|
import "./accounts-RHZyaB73.js";
|
|
10
10
|
import { a as resolveSlackReplyToMode, i as resolveSlackAccount, n as listSlackAccountIds, r as resolveDefaultSlackAccountId, t as listEnabledSlackAccounts } from "./accounts-CuqIKU8X.js";
|
|
11
11
|
import "./logger-BbFvCoKk.js";
|
|
12
12
|
import "./exec-DQ8j4Fm3.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-CeRNo5Ae.js";
|
|
14
14
|
import "./redact-Bm8vu_ju.js";
|
|
15
15
|
import "./github-copilot-token-CUK__1s1.js";
|
|
16
16
|
import "./retry-DstNBhDW.js";
|
|
17
17
|
import "./paths-CTZ2RS_E.js";
|
|
18
|
-
import { a as deleteAccountFromConfigSection, c as formatPairingApproveHint, n as applyAccountNameToChannelSection, o as setAccountEnabledInConfigSection, r as migrateBaseNameToDefaultAccount, s as buildChannelConfigSchema, t as PAIRING_APPROVED_MESSAGE, u as emptyPluginConfigSchema } from "./pairing-message-
|
|
19
|
-
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, _ as setAccountGroupPolicyForChannel, a as noteChannelLookupFailure, b as setOnboardingChannelEnabled, d as promptLegacyChannelAllowFrom, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, l as patchChannelConfigForAccount, o as noteChannelLookupSummary, s as parseMentionOrPrefixedId, w as buildTokenChannelStatusSummary, y as setLegacyChannelDmPolicyWithAllowFrom } from "./helpers-
|
|
20
|
-
import "./optional-runtime-dependency-
|
|
21
|
-
import "./image-ops-
|
|
22
|
-
import { d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-
|
|
18
|
+
import { a as deleteAccountFromConfigSection, c as formatPairingApproveHint, n as applyAccountNameToChannelSection, o as setAccountEnabledInConfigSection, r as migrateBaseNameToDefaultAccount, s as buildChannelConfigSchema, t as PAIRING_APPROVED_MESSAGE, u as emptyPluginConfigSchema } from "./pairing-message-e4D4eBDA.js";
|
|
19
|
+
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, _ as setAccountGroupPolicyForChannel, a as noteChannelLookupFailure, b as setOnboardingChannelEnabled, d as promptLegacyChannelAllowFrom, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, l as patchChannelConfigForAccount, o as noteChannelLookupSummary, s as parseMentionOrPrefixedId, w as buildTokenChannelStatusSummary, y as setLegacyChannelDmPolicyWithAllowFrom } from "./helpers-BuEwju6y.js";
|
|
20
|
+
import "./optional-runtime-dependency-CbYjAC2b.js";
|
|
21
|
+
import "./image-ops-C66HPeAZ.js";
|
|
22
|
+
import { d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-CWvfeiX0.js";
|
|
23
23
|
import "./channel-core-BOkyXXLa.js";
|
|
24
|
-
import { t as configureChannelAccessWithAllowlist } from "./channel-access-configure-
|
|
24
|
+
import { t as configureChannelAccessWithAllowlist } from "./channel-access-configure-B6IAGlE0.js";
|
|
25
25
|
import { t as parseSlackBlocksInput } from "./blocks-input-Dcitfh7h.js";
|
|
26
26
|
|
|
27
27
|
//#region src/slack/message-actions.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as findModelInCatalog, N as loadModelCatalog, P as modelSupportsVision, qt as resolveAutoImageModel } from "./config-schema-
|
|
1
|
+
import { M as findModelInCatalog, N as loadModelCatalog, P as modelSupportsVision, qt as resolveAutoImageModel } from "./config-schema-CQ4EVcQG.js";
|
|
2
2
|
import { i as logVerbose } from "./globals-B_jjtAje.js";
|
|
3
3
|
import { t as STATE_DIR } from "./paths-BEmvSyOV.js";
|
|
4
|
-
import { Yt as resolveDefaultModelForAgent, cn as resolveApiKeyForProvider } from "./config-
|
|
4
|
+
import { Yt as resolveDefaultModelForAgent, cn as resolveApiKeyForProvider } from "./config-CYDETqcF.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-CUK__1s1.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -147,7 +147,7 @@ async function describeStickerImage(params) {
|
|
|
147
147
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
148
148
|
try {
|
|
149
149
|
const buffer = await fs.readFile(imagePath);
|
|
150
|
-
const { describeImageWithModel } = await import("./config-schema-
|
|
150
|
+
const { describeImageWithModel } = await import("./config-schema-CQ4EVcQG.js").then((n) => n.on);
|
|
151
151
|
return (await describeImageWithModel({
|
|
152
152
|
buffer,
|
|
153
153
|
fileName: "sticker.webp",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as ensureTargetId, Et as requireTargetKind, St as buildMessagingTarget, Tt as parseTargetPrefixes, wt as parseTargetMention } from "./runtime-
|
|
1
|
+
import { Ct as ensureTargetId, Et as requireTargetKind, St as buildMessagingTarget, Tt as parseTargetPrefixes, wt as parseTargetMention } from "./runtime-CgOkQe0w.js";
|
|
2
2
|
import { n as listDiscordDirectoryPeersLive } from "./directory-live-DatqU-eS.js";
|
|
3
3
|
|
|
4
4
|
//#region src/discord/targets.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { nr as resolveTelegramInlineButtonsScope, tr as resolveTelegramReactionLevel } from "./config-schema-
|
|
2
|
-
import { an as resolveTelegramToken, en as createTelegramActionGate } from "./runtime-
|
|
1
|
+
import { nr as resolveTelegramInlineButtonsScope, tr as resolveTelegramReactionLevel } from "./config-schema-CQ4EVcQG.js";
|
|
2
|
+
import { an as resolveTelegramToken, en as createTelegramActionGate } from "./runtime-CgOkQe0w.js";
|
|
3
3
|
import "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import "./globals-B_jjtAje.js";
|
|
5
5
|
import "./paths-BEmvSyOV.js";
|
|
6
6
|
import "./utils-CYk9EKoq.js";
|
|
7
|
-
import "./config-
|
|
7
|
+
import "./config-CYDETqcF.js";
|
|
8
8
|
import "./agent-scope-BbgPlhtw.js";
|
|
9
9
|
import "./accounts-RHZyaB73.js";
|
|
10
10
|
import "./accounts-CuqIKU8X.js";
|
|
11
11
|
import "./logger-BbFvCoKk.js";
|
|
12
12
|
import "./exec-DQ8j4Fm3.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-CeRNo5Ae.js";
|
|
14
14
|
import "./allow-list-BYeKk0Sy.js";
|
|
15
15
|
import "./redact-Bm8vu_ju.js";
|
|
16
16
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -19,11 +19,11 @@ import "./paths-CTZ2RS_E.js";
|
|
|
19
19
|
import "./ip-C70a-YlD.js";
|
|
20
20
|
import "./ssrf-BZG8Ztod.js";
|
|
21
21
|
import "./fetch-guard-BuYrl6q2.js";
|
|
22
|
-
import "./send-
|
|
23
|
-
import "./helpers-
|
|
24
|
-
import "./wsl-
|
|
25
|
-
import "./pairing-store-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
import "./send-Cr-dj6S-.js";
|
|
23
|
+
import "./helpers-BuEwju6y.js";
|
|
24
|
+
import "./wsl-Biw7Mj39.js";
|
|
25
|
+
import "./pairing-store-T3IGoGZg.js";
|
|
26
|
+
import "./chunk-CD76Byie.js";
|
|
27
27
|
import "./tailscale-status-ClsquRGs.js";
|
|
28
28
|
import "./reply-prefix-Bqzm6DC1.js";
|
|
29
29
|
import "./tokens-BvtlOzVP.js";
|
|
@@ -32,37 +32,37 @@ import "./pairing-token-N_6Jbt1L.js";
|
|
|
32
32
|
import "./diagnostic-Dfn1iERm.js";
|
|
33
33
|
import "./diagnostic-session-state-HO94DMou.js";
|
|
34
34
|
import { i as resolveTelegramTargetChatType } from "./targets-BDvvnlph.js";
|
|
35
|
-
import "./optional-runtime-dependency-
|
|
36
|
-
import "./image-ops-
|
|
37
|
-
import "./wallet-status-
|
|
38
|
-
import "./pi-model-discovery-
|
|
39
|
-
import "./runtime-dependency-
|
|
35
|
+
import "./optional-runtime-dependency-CbYjAC2b.js";
|
|
36
|
+
import "./image-ops-C66HPeAZ.js";
|
|
37
|
+
import "./wallet-status-f0HagNeO.js";
|
|
38
|
+
import "./pi-model-discovery-DvAG_Png.js";
|
|
39
|
+
import "./runtime-dependency-DvdRNMvs.js";
|
|
40
40
|
import "./ws-CocpWGhl.js";
|
|
41
41
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
42
42
|
import "./fs-safe-BG-VzVkL.js";
|
|
43
|
-
import "./markdown-tables-
|
|
44
|
-
import "./media-
|
|
45
|
-
import "./send-
|
|
46
|
-
import "./outbound-attachment-
|
|
43
|
+
import "./markdown-tables-DmQ7oXOm.js";
|
|
44
|
+
import "./media-ByLQbEwJ.js";
|
|
45
|
+
import "./send-eTxqFFsw.js";
|
|
46
|
+
import "./outbound-attachment-DmZmUqFP.js";
|
|
47
47
|
import "./fetch-Cu-ahkie.js";
|
|
48
|
-
import "./thread-bindings.state-
|
|
48
|
+
import "./thread-bindings.state-C0stmvNk.js";
|
|
49
49
|
import "./memory-search-C3C0bD2H.js";
|
|
50
|
-
import "./manager-
|
|
50
|
+
import "./manager-Bvpq49BI.js";
|
|
51
51
|
import "./query-expansion-Zr9qQixm.js";
|
|
52
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, s as readNumberParam, u as readStringOrNumberParam } from "./common-
|
|
53
|
-
import "./commands-registry-
|
|
54
|
-
import "./skill-commands-
|
|
52
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, s as readNumberParam, u as readStringOrNumberParam } from "./common-CWvfeiX0.js";
|
|
53
|
+
import "./commands-registry-DgS55tNj.js";
|
|
54
|
+
import "./skill-commands-Rm5by9S8.js";
|
|
55
55
|
import "./directory-live-DatqU-eS.js";
|
|
56
|
-
import "./targets-
|
|
56
|
+
import "./targets-D6lUomJc.js";
|
|
57
57
|
import "./sandbox-paths-lj7_EVuA.js";
|
|
58
|
-
import "./resolve-route-
|
|
58
|
+
import "./resolve-route-DJN-SUSt.js";
|
|
59
59
|
import "./render-Bwu_WxwA.js";
|
|
60
|
-
import "./tables-
|
|
60
|
+
import "./tables-DS5L7lCA.js";
|
|
61
61
|
import "./shared-clhhbWN3.js";
|
|
62
|
-
import "./retry-policy-
|
|
63
|
-
import { a as reactMessageTelegram, i as editMessageTelegram, n as createForumTopicTelegram, o as sendMessageTelegram, r as deleteMessageTelegram, s as sendStickerTelegram } from "./send-
|
|
62
|
+
import "./retry-policy-CY1qY6d7.js";
|
|
63
|
+
import { a as reactMessageTelegram, i as editMessageTelegram, n as createForumTopicTelegram, o as sendMessageTelegram, r as deleteMessageTelegram, s as sendStickerTelegram } from "./send-BG3RWyil.js";
|
|
64
64
|
import "./proxy-7xs_rsnV.js";
|
|
65
|
-
import { a as searchStickers, r as getCacheStats } from "./sticker-cache-
|
|
65
|
+
import { a as searchStickers, r as getCacheStats } from "./sticker-cache-D3oDiu2u.js";
|
|
66
66
|
|
|
67
67
|
//#region src/agents/tools/telegram-actions.ts
|
|
68
68
|
const TELEGRAM_BUTTON_STYLES = [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as DEFAULT_ACCOUNT_ID, r as normalizeAccountId } from "./session-key--_1zVBRB.js";
|
|
2
|
-
import { At as FasedAgentConfig, F as ChannelAccountSnapshot, Gt as TelegramAccountConfig, J as ChannelMessageActionAdapter, it as ChannelStatusIssue, n as ChannelPlugin, r as ChannelOnboardingAdapter, u as ChannelMessageActionName, ut as getChatChannelMeta } from "./types.plugin-
|
|
3
|
-
import { Bt as resolveDefaultGroupPolicy, Cn as readStringParam, Gt as listSlackDirectoryGroupsFromConfig, Jt as listTelegramDirectoryPeersFromConfig, Kt as listSlackDirectoryPeersFromConfig, Lt as TelegramProbe, Ut as listDiscordDirectoryGroupsFromConfig, Vt as resolveOpenProviderRuntimeGroupPolicy, Wt as listDiscordDirectoryPeersFromConfig, Xt as listWhatsAppDirectoryPeersFromConfig, Yt as listWhatsAppDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, qt as listTelegramDirectoryGroupsFromConfig, t as PluginRuntime, yn as createActionGate, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-
|
|
4
|
-
import { D as normalizeE164 } from "./types-
|
|
5
|
-
import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-
|
|
6
|
-
import { _ as buildTokenChannelStatusSummary, d as resolveTelegramGroupRequireMention, f as resolveTelegramGroupToolPolicy } from "./group-mentions-
|
|
2
|
+
import { At as FasedAgentConfig, F as ChannelAccountSnapshot, Gt as TelegramAccountConfig, J as ChannelMessageActionAdapter, it as ChannelStatusIssue, n as ChannelPlugin, r as ChannelOnboardingAdapter, u as ChannelMessageActionName, ut as getChatChannelMeta } from "./types.plugin-BiHPaDTF.js";
|
|
3
|
+
import { Bt as resolveDefaultGroupPolicy, Cn as readStringParam, Gt as listSlackDirectoryGroupsFromConfig, Jt as listTelegramDirectoryPeersFromConfig, Kt as listSlackDirectoryPeersFromConfig, Lt as TelegramProbe, Ut as listDiscordDirectoryGroupsFromConfig, Vt as resolveOpenProviderRuntimeGroupPolicy, Wt as listDiscordDirectoryPeersFromConfig, Xt as listWhatsAppDirectoryPeersFromConfig, Yt as listWhatsAppDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, qt as listTelegramDirectoryGroupsFromConfig, t as PluginRuntime, yn as createActionGate, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-DVTIpopt.js";
|
|
4
|
+
import { D as normalizeE164 } from "./types-DKvBJHfH.js";
|
|
5
|
+
import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-D0-UWGFJ.js";
|
|
6
|
+
import { _ as buildTokenChannelStatusSummary, d as resolveTelegramGroupRequireMention, f as resolveTelegramGroupToolPolicy } from "./group-mentions-BxDgHCgj.js";
|
|
7
7
|
import { s as TelegramConfigSchema } from "./zod-schema.providers-core-CIzCjXH9.js";
|
|
8
8
|
|
|
9
9
|
//#region src/telegram/accounts.d.ts
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Nn as getChatChannelMeta, Xt as resolveTelegramGroupRequireMention, Zt as resolveTelegramGroupToolPolicy, _t as listWhatsAppDirectoryPeersFromConfig, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, in as resolveTelegramAccount, mt as listTelegramDirectoryGroupsFromConfig, nn as listTelegramAccountIds, pt as listSlackDirectoryPeersFromConfig, rn as resolveDefaultTelegramAccountId, ut as listDiscordDirectoryGroupsFromConfig } from "./runtime-
|
|
1
|
+
import { Nn as getChatChannelMeta, Xt as resolveTelegramGroupRequireMention, Zt as resolveTelegramGroupToolPolicy, _t as listWhatsAppDirectoryPeersFromConfig, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, in as resolveTelegramAccount, mt as listTelegramDirectoryGroupsFromConfig, nn as listTelegramAccountIds, pt as listSlackDirectoryPeersFromConfig, rn as resolveDefaultTelegramAccountId, ut as listDiscordDirectoryGroupsFromConfig } from "./runtime-CgOkQe0w.js";
|
|
2
2
|
import "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import "./globals-B_jjtAje.js";
|
|
4
4
|
import "./paths-BEmvSyOV.js";
|
|
5
5
|
import { c as isRecord, d as normalizeE164 } from "./utils-CYk9EKoq.js";
|
|
6
|
-
import {
|
|
6
|
+
import { g as TelegramConfigSchema, kr as formatCliCommand } from "./config-CYDETqcF.js";
|
|
7
7
|
import "./agent-scope-BbgPlhtw.js";
|
|
8
8
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
9
9
|
import "./accounts-RHZyaB73.js";
|
|
10
10
|
import "./accounts-CuqIKU8X.js";
|
|
11
11
|
import "./logger-BbFvCoKk.js";
|
|
12
12
|
import "./exec-DQ8j4Fm3.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-CeRNo5Ae.js";
|
|
14
14
|
import "./redact-Bm8vu_ju.js";
|
|
15
15
|
import "./github-copilot-token-CUK__1s1.js";
|
|
16
16
|
import "./retry-DstNBhDW.js";
|
|
17
17
|
import "./paths-CTZ2RS_E.js";
|
|
18
|
-
import { a as deleteAccountFromConfigSection, c as formatPairingApproveHint, n as applyAccountNameToChannelSection, o as setAccountEnabledInConfigSection, r as migrateBaseNameToDefaultAccount, s as buildChannelConfigSchema, t as PAIRING_APPROVED_MESSAGE, u as emptyPluginConfigSchema } from "./pairing-message-
|
|
19
|
-
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, b as setOnboardingChannelEnabled, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, l as patchChannelConfigForAccount, m as promptSingleChannelToken, n as applySingleTokenPromptResult, p as promptResolvedAllowFrom, v as setChannelDmPolicyWithAllowFrom, w as buildTokenChannelStatusSummary, x as splitOnboardingEntries } from "./helpers-
|
|
18
|
+
import { a as deleteAccountFromConfigSection, c as formatPairingApproveHint, n as applyAccountNameToChannelSection, o as setAccountEnabledInConfigSection, r as migrateBaseNameToDefaultAccount, s as buildChannelConfigSchema, t as PAIRING_APPROVED_MESSAGE, u as emptyPluginConfigSchema } from "./pairing-message-e4D4eBDA.js";
|
|
19
|
+
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, b as setOnboardingChannelEnabled, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, l as patchChannelConfigForAccount, m as promptSingleChannelToken, n as applySingleTokenPromptResult, p as promptResolvedAllowFrom, v as setChannelDmPolicyWithAllowFrom, w as buildTokenChannelStatusSummary, x as splitOnboardingEntries } from "./helpers-BuEwju6y.js";
|
|
20
20
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget } from "./targets-BDvvnlph.js";
|
|
21
|
-
import "./optional-runtime-dependency-
|
|
22
|
-
import "./image-ops-
|
|
23
|
-
import { d as readStringParam, n as createActionGate } from "./common-
|
|
21
|
+
import "./optional-runtime-dependency-CbYjAC2b.js";
|
|
22
|
+
import "./image-ops-C66HPeAZ.js";
|
|
23
|
+
import { d as readStringParam, n as createActionGate } from "./common-CWvfeiX0.js";
|
|
24
24
|
import { i as resolveEnabledConfiguredAccountId, n as asString, t as appendMatchMetadata } from "./shared-clhhbWN3.js";
|
|
25
25
|
import "./channel-core-BOkyXXLa.js";
|
|
26
26
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { i as logVerbose } from "./globals-B_jjtAje.js";
|
|
3
3
|
import { l as resolveAgentIdFromSessionKey, p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
4
|
-
import { A as DEFAULT_THREAD_BINDING_MAX_AGE_MS, C as resolveThreadBindingMaxAgeMs, D as shouldPersistBindingMutations, E as shouldDefaultPersist, F as resolveThreadBindingIntroText, H as unregisterSessionBindingAdapter, I as resolveThreadBindingThreadName, L as SYSTEM_MARK, M as THREAD_BINDINGS_SWEEP_INTERVAL_MS, O as toReusableWebhookKey, P as resolveThreadBindingFarewellText, S as resolveThreadBindingMaxAgeExpiresAt, T as setBindingRecord, V as registerSessionBindingAdapter, W as readAcpSessionEntry, _ as removeBindingRecord, a as THREAD_BINDING_TOUCH_PERSIST_MIN_INTERVAL_MS, b as resolveThreadBindingIdleTimeoutMs, d as normalizeTargetKind, f as normalizeThreadBindingDurationMs, g as rememberThreadBindingToken, h as rememberReusableWebhook, i as REUSABLE_WEBHOOKS_BY_ACCOUNT_CHANNEL, j as DISCORD_UNKNOWN_CHANNEL_ERROR_CODE, k as DEFAULT_THREAD_BINDING_IDLE_TIMEOUT_MS, l as getThreadBindingToken, m as rememberRecentUnboundWebhookEcho, n as MANAGERS_BY_ACCOUNT_ID, o as ensureBindingsLoaded, p as normalizeThreadId, r as PERSIST_BY_ACCOUNT_ID, s as forgetThreadBindingToken, t as BINDINGS_BY_THREAD_ID, v as resolveBindingIdsForSession, w as saveBindingsToDisk, x as resolveThreadBindingInactivityExpiresAt, y as resolveBindingRecordKey } from "./thread-bindings.state-
|
|
5
|
-
import { t as parseDiscordTarget } from "./targets-
|
|
6
|
-
import { b as sendWebhookMessageDiscord, g as sendMessageDiscord, nt as createDiscordRestClient, x as createThreadDiscord } from "./send-
|
|
4
|
+
import { A as DEFAULT_THREAD_BINDING_MAX_AGE_MS, C as resolveThreadBindingMaxAgeMs, D as shouldPersistBindingMutations, E as shouldDefaultPersist, F as resolveThreadBindingIntroText, H as unregisterSessionBindingAdapter, I as resolveThreadBindingThreadName, L as SYSTEM_MARK, M as THREAD_BINDINGS_SWEEP_INTERVAL_MS, O as toReusableWebhookKey, P as resolveThreadBindingFarewellText, S as resolveThreadBindingMaxAgeExpiresAt, T as setBindingRecord, V as registerSessionBindingAdapter, W as readAcpSessionEntry, _ as removeBindingRecord, a as THREAD_BINDING_TOUCH_PERSIST_MIN_INTERVAL_MS, b as resolveThreadBindingIdleTimeoutMs, d as normalizeTargetKind, f as normalizeThreadBindingDurationMs, g as rememberThreadBindingToken, h as rememberReusableWebhook, i as REUSABLE_WEBHOOKS_BY_ACCOUNT_CHANNEL, j as DISCORD_UNKNOWN_CHANNEL_ERROR_CODE, k as DEFAULT_THREAD_BINDING_IDLE_TIMEOUT_MS, l as getThreadBindingToken, m as rememberRecentUnboundWebhookEcho, n as MANAGERS_BY_ACCOUNT_ID, o as ensureBindingsLoaded, p as normalizeThreadId, r as PERSIST_BY_ACCOUNT_ID, s as forgetThreadBindingToken, t as BINDINGS_BY_THREAD_ID, v as resolveBindingIdsForSession, w as saveBindingsToDisk, x as resolveThreadBindingInactivityExpiresAt, y as resolveBindingRecordKey } from "./thread-bindings.state-C0stmvNk.js";
|
|
5
|
+
import { t as parseDiscordTarget } from "./targets-D6lUomJc.js";
|
|
6
|
+
import { b as sendWebhookMessageDiscord, g as sendMessageDiscord, nt as createDiscordRestClient, x as createThreadDiscord } from "./send-2ITqny2W.js";
|
|
7
7
|
import { ChannelType, Routes } from "discord-api-types/v10";
|
|
8
8
|
|
|
9
9
|
//#region src/discord/monitor/thread-bindings.persona.ts
|
package/dist/plugin-sdk/{thread-bindings.state-DUg0s_1X.js → thread-bindings.state-C0stmvNk.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as mergeSessionEntry, T as updateSessionStore, x as loadSessionStore } from "./runtime-
|
|
1
|
+
import { $ as mergeSessionEntry, T as updateSessionStore, x as loadSessionStore } from "./runtime-CgOkQe0w.js";
|
|
2
2
|
import { s as resolveStateDir } from "./paths-BEmvSyOV.js";
|
|
3
|
-
import { n as loadConfig } from "./config-
|
|
3
|
+
import { n as loadConfig } from "./config-CYDETqcF.js";
|
|
4
4
|
import { S as parseAgentSessionKey, l as resolveAgentIdFromSessionKey, p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-CUK__1s1.js";
|
|
6
6
|
import { l as resolveStorePath } from "./paths-CTZ2RS_E.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as FasedAgentConfig, l as AgentDefaultsConfig } from "./types.plugin-
|
|
2
|
-
import { M as LookupFn, P as SsrFPolicy } from "./types-
|
|
1
|
+
import { At as FasedAgentConfig, l as AgentDefaultsConfig } from "./types.plugin-BiHPaDTF.js";
|
|
2
|
+
import { M as LookupFn, P as SsrFPolicy } from "./types-DKvBJHfH.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/agent-scope.d.ts
|
|
5
5
|
type AgentEntry = NonNullable<NonNullable<FasedAgentConfig["agents"]>["list"]>[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as FasedAgentConfig, Bt as WalletRuntimeKind, Ct as RuntimeEnv, F as ChannelAccountSnapshot, Ft as ModelThinkingMode, G as ChannelId, Ht as WalletToolAccessMode, Mt as ModelProviderAuthMode, Ot as sendMessageDiscord, Pt as ModelThinkingLevel, St as sendMessageIMessage, Ut as CronConfig, Vt as WalletRuntimeMode, bt as sendMessageSlack, gt as sendMessageWhatsApp, jt as ModelCapabilityConfig, o as WizardPrompter, vt as sendMessageTelegram, xn as SecretRef, xt as sendMessageSignal, zt as WalletProviderId } from "./types.plugin-
|
|
1
|
+
import { At as FasedAgentConfig, Bt as WalletRuntimeKind, Ct as RuntimeEnv, F as ChannelAccountSnapshot, Ft as ModelThinkingMode, G as ChannelId, Ht as WalletToolAccessMode, Mt as ModelProviderAuthMode, Ot as sendMessageDiscord, Pt as ModelThinkingLevel, St as sendMessageIMessage, Ut as CronConfig, Vt as WalletRuntimeMode, bt as sendMessageSlack, gt as sendMessageWhatsApp, jt as ModelCapabilityConfig, o as WizardPrompter, vt as sendMessageTelegram, xn as SecretRef, xt as sendMessageSignal, zt as WalletProviderId } from "./types.plugin-BiHPaDTF.js";
|
|
2
2
|
import { Api, Model, OAuthCredentials } from "@mariozechner/pi-ai";
|
|
3
3
|
import * as _sinclair_typebox0 from "@sinclair/typebox";
|
|
4
4
|
import { Static } from "@sinclair/typebox";
|
|
@@ -168,13 +168,13 @@ declare const ConnectParamsSchema: _sinclair_typebox0.TObject<{
|
|
|
168
168
|
minProtocol: _sinclair_typebox0.TInteger;
|
|
169
169
|
maxProtocol: _sinclair_typebox0.TInteger;
|
|
170
170
|
client: _sinclair_typebox0.TObject<{
|
|
171
|
-
id: _sinclair_typebox0.TUnion<_sinclair_typebox0.TLiteral<"webchat" | "
|
|
171
|
+
id: _sinclair_typebox0.TUnion<_sinclair_typebox0.TLiteral<"webchat-ui" | "fased-control-ui" | "webchat" | "cli" | "gateway-client" | "fased-macos" | "fased-ios" | "fased-android" | "node-host" | "test" | "fingerprint" | "fased-probe">[]>;
|
|
172
172
|
displayName: _sinclair_typebox0.TOptional<_sinclair_typebox0.TString>;
|
|
173
173
|
version: _sinclair_typebox0.TString;
|
|
174
174
|
platform: _sinclair_typebox0.TString;
|
|
175
175
|
deviceFamily: _sinclair_typebox0.TOptional<_sinclair_typebox0.TString>;
|
|
176
176
|
modelIdentifier: _sinclair_typebox0.TOptional<_sinclair_typebox0.TString>;
|
|
177
|
-
mode: _sinclair_typebox0.TUnion<_sinclair_typebox0.TLiteral<"ui" | "webchat" | "cli" | "
|
|
177
|
+
mode: _sinclair_typebox0.TUnion<_sinclair_typebox0.TLiteral<"ui" | "webchat" | "cli" | "test" | "backend" | "node" | "probe">[]>;
|
|
178
178
|
instanceId: _sinclair_typebox0.TOptional<_sinclair_typebox0.TString>;
|
|
179
179
|
}>;
|
|
180
180
|
caps: _sinclair_typebox0.TOptional<_sinclair_typebox0.TArray<_sinclair_typebox0.TString>>;
|
|
@@ -341,17 +341,20 @@ type OnboardOptions = {
|
|
|
341
341
|
};
|
|
342
342
|
//#endregion
|
|
343
343
|
//#region src/agents/model-catalog-normalized.d.ts
|
|
344
|
-
type ModelCatalogSource = "configured" | "runtime" | "current-preview" | "provider-index" | "manifest";
|
|
344
|
+
type ModelCatalogSource = "configured" | "runtime" | "provider-api" | "current-preview" | "provider-index" | "manifest";
|
|
345
345
|
//#endregion
|
|
346
346
|
//#region src/agents/model-metadata.d.ts
|
|
347
347
|
type ModelFeature = "text" | "vision" | "reasoning" | "tools" | "json" | "audio" | "video" | "speech";
|
|
348
|
-
type ModelCapabilityConfidence = "declared" | "unknown";
|
|
348
|
+
type ModelCapabilityConfidence = "verified" | "declared" | "inferred" | "unknown";
|
|
349
|
+
type ModelAvailabilitySource = "provider-api" | "runtime-catalog" | "configured" | "provider-plugin" | "reviewed-catalog" | "curated-recommendation";
|
|
350
|
+
type ModelCapabilitySource = "provider-api" | "official-docs" | "runtime" | "configured" | "inferred" | "unknown";
|
|
349
351
|
type ModelMetadata = {
|
|
350
352
|
provider: string;
|
|
351
353
|
model: string;
|
|
352
354
|
label: string;
|
|
353
355
|
contextWindow?: number;
|
|
354
356
|
maxTokens?: number;
|
|
357
|
+
apiRoute?: string;
|
|
355
358
|
features: ModelFeature[];
|
|
356
359
|
thinkingLevels?: ModelThinkingLevel[];
|
|
357
360
|
defaultThinkingLevel?: ModelThinkingLevel;
|
|
@@ -359,10 +362,16 @@ type ModelMetadata = {
|
|
|
359
362
|
reasoningBudgetSupported?: boolean;
|
|
360
363
|
streaming: boolean;
|
|
361
364
|
capabilityConfidence: ModelCapabilityConfidence;
|
|
365
|
+
capabilitySource: ModelCapabilitySource;
|
|
366
|
+
capabilityRetrievedAt?: string;
|
|
367
|
+
retrievedAt: string;
|
|
368
|
+
availabilitySource: ModelAvailabilitySource;
|
|
369
|
+
authRoute: string;
|
|
362
370
|
authMode: ModelProviderAuthMode;
|
|
363
371
|
privateNetwork: boolean;
|
|
364
372
|
privateNetworkAllowed: boolean;
|
|
365
373
|
recommended?: boolean;
|
|
374
|
+
recommendationRank?: number;
|
|
366
375
|
default?: boolean;
|
|
367
376
|
};
|
|
368
377
|
//#endregion
|
|
@@ -543,6 +552,7 @@ type CronTaskMemoryScope = "none" | "session-summary" | "pinned" | "search" | "a
|
|
|
543
552
|
type CronTaskSkillScope = "none" | "selected" | "agent-default";
|
|
544
553
|
type CronTaskModelPolicy = {
|
|
545
554
|
mode?: "agent-default" | "task-override" | "auto" | "none";
|
|
555
|
+
role?: "cheapCheck" | "strong" | "escalation" | "coding" | "summarizer";
|
|
546
556
|
model?: string;
|
|
547
557
|
thinking?: string;
|
|
548
558
|
escalationModel?: string;
|
|
@@ -1407,7 +1417,7 @@ declare class CronService {
|
|
|
1407
1417
|
} | {
|
|
1408
1418
|
readonly ok: true;
|
|
1409
1419
|
readonly ran: false;
|
|
1410
|
-
readonly reason: "
|
|
1420
|
+
readonly reason: "running" | "queued";
|
|
1411
1421
|
readonly runId: string;
|
|
1412
1422
|
readonly detail: string | undefined;
|
|
1413
1423
|
} | {
|