@fased/fased 0.1.55 → 0.1.57
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/config/capability-catalog.json +12 -0
- package/dist/agents/authenticated-model-catalog.js +3 -2
- package/dist/agents/bash-tools.exec-host-node.js +1 -1
- package/dist/agents/bash-tools.exec.js +1 -1
- package/dist/agents/copilot-dynamic-headers.js +37 -0
- package/dist/agents/current-model-catalog.js +6 -3
- package/dist/agents/model-catalog-snapshot.js +124 -0
- package/dist/agents/model-catalog-source.js +2 -2
- package/dist/agents/model-catalog.js +1 -1
- package/dist/agents/model-metadata.js +34 -6
- package/dist/agents/openai-codex-app-server.js +524 -0
- package/dist/agents/openai-codex-runtime-component.js +39 -0
- package/dist/agents/pi-embedded-runner/compact.js +3 -3
- package/dist/agents/pi-embedded-runner/extra-params.js +170 -94
- package/dist/agents/pi-embedded-runner/model.js +62 -1
- package/dist/agents/pi-embedded-runner/moonshot-stream-wrappers.js +46 -0
- package/dist/agents/pi-embedded-runner/openai-stream-wrappers.js +221 -0
- package/dist/agents/pi-embedded-runner/run/attempt.js +6 -4
- package/dist/agents/pi-embedded-runner/run.js +5 -2
- package/dist/agents/pi-embedded-runner/utils.js +1 -1
- package/dist/agents/pi-embedded-runner.js +1 -1
- package/dist/agents/pi-tools.js +2 -2
- package/dist/agents/tools/discord-actions-messaging.js +1 -1
- package/dist/agents/tools/message-tool.js +1 -1
- package/dist/agents/tools/session-status-tool.js +3 -3
- package/dist/agents/tools/slack-actions.js +1 -1
- package/dist/agents/tools/tts-tool.js +1 -1
- package/dist/auto-reply/reply/commands-models.js +1 -1
- package/dist/auto-reply/reply/directive-handling.impl.js +4 -1
- package/dist/auto-reply/reply/dispatch-acp.js +1 -1
- package/dist/auto-reply/reply/dispatch-from-config.js +1 -1
- package/dist/auto-reply/reply/get-reply-run.js +20 -2
- package/dist/auto-reply/reply/model-selection.js +1 -1
- package/dist/auto-reply/reply/session-reset-model.js +1 -1
- package/dist/auto-reply/status.js +1 -1
- package/dist/auto-reply/thinking.js +1 -1
- package/dist/brand.js +1 -1
- package/dist/browser/cdp.helpers.js +2 -2
- package/dist/browser/chrome.js +2 -2
- package/dist/browser/extension-relay.js +7 -7
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/capabilities/install.js +43 -0
- package/dist/cli/components-cli.js +9 -31
- package/dist/cli/cron-cli/register.cron-add.js +1 -1
- package/dist/cli/hooks-cli.js +1 -1
- package/dist/cli/plugins-cli.js +3 -3
- package/dist/cli/program/register.agent.js +1 -1
- package/dist/cli/update-cli/update-command.js +50 -12
- package/dist/commands/agent.js +22 -3
- package/dist/commands/auth-choice.apply.openai.js +9 -0
- package/dist/commands/auth-choice.apply.plugin-provider.js +1 -1
- package/dist/commands/doctor-config-flow.js +1 -1
- package/dist/commands/hosted-dashboard-probe.js +3 -3
- package/dist/commands/model-picker.js +4 -3
- package/dist/commands/models/list.probe.js +1 -1
- package/dist/commands/models/list.registry.js +3 -2
- package/dist/commands/models/list.status-command.js +2 -2
- package/dist/commands/onboard-channels.js +1 -1
- package/dist/commands/onboarding/plugin-install.js +2 -2
- package/dist/commands/openai-codex-model-default.js +3 -2
- 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-D2RaTXoV.js → app-DltSyY4Y.js} +1723 -1716
- package/dist/control-ui/assets/chat-model-ref-Djkv93yn.js +2 -0
- package/dist/control-ui/assets/{index-D2nC6I-9.js → index-D5JlBp7f.js} +3 -3
- package/dist/control-ui/assets/{providers-CyjiG5Jw.js → providers-Cc89iMdx.js} +3 -3
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/version.json +1 -1
- package/dist/cron/isolated-agent/run.js +6 -2
- package/dist/cron/service/jobs.js +11 -1
- package/dist/discord/monitor/gateway-plugin.js +2 -2
- package/dist/discord/voice/manager.js +1 -1
- package/dist/gateway/client.js +4 -4
- package/dist/gateway/protocol/schema/agents-models-skills.js +106 -5
- package/dist/gateway/server-methods/hooks.js +1 -1
- package/dist/gateway/server-methods/models.js +15 -7
- package/dist/gateway/server-methods/plugins-marketplace.js +3 -3
- package/dist/gateway/server-methods/services.js +1 -1
- package/dist/gateway/server-methods/sessions.js +1 -1
- package/dist/gateway/server-methods/tts.js +2 -2
- package/dist/gateway/server-model-catalog.js +1 -1
- package/dist/gateway/sessions-patch.js +27 -24
- package/dist/light-update-status.js +11 -11
- package/dist/plugin-sdk/{accounts-CeRNo5Ae.js → accounts-CmMwe9Dt.js} +1 -1
- package/dist/plugin-sdk/{actions-OMRHtXPj.js → actions-DYViFQiX.js} +4 -4
- package/dist/plugin-sdk/{active-listener-BlIkS3iR.js → active-listener-DVbpcisf.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-BbgPlhtw.js → agent-scope-CCjfjKoO.js} +1 -1
- package/dist/plugin-sdk/{allow-list-BYeKk0Sy.js → allow-list-DyAxs4yw.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-B2n3a2Tj.js → audio-preflight-D-Mfay8i.js} +44 -48
- package/dist/plugin-sdk/{audit-Ppg6dR_b.js → audit-JImYFOzJ.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-B6IAGlE0.js → channel-access-configure-B_qYjml8.js} +1 -1
- package/dist/plugin-sdk/{channel-access-af8dWWRv.js → channel-access-cxCK2mci.js} +1 -1
- package/dist/plugin-sdk/{channel-adapters.discord-IOZP8Cv5.js → channel-adapters.discord-BS4S4Svh.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.d.ts +3 -3
- package/dist/plugin-sdk/channel-plugin-common.js +5 -5
- package/dist/plugin-sdk/{chunk-CD76Byie.js → chunk-CF8nvZNj.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-Bu19zrYH.js → chunk-items-yLFoO571.js} +1 -1
- package/dist/plugin-sdk/command-status.d.ts +2 -2
- package/dist/plugin-sdk/command-status.js +44 -48
- package/dist/plugin-sdk/{commands-registry-DgS55tNj.js → commands-registry-CK4KmMG0.js} +2 -2
- package/dist/plugin-sdk/{common-CWvfeiX0.js → common-Cky4hpqr.js} +1 -1
- package/dist/plugin-sdk/{config-CYDETqcF.js → config-Dbxj_jUP.js} +1153 -17
- package/dist/plugin-sdk/{config-schema-CQ4EVcQG.js → config-schema-aKPMn6ML.js} +96084 -81132
- package/dist/plugin-sdk/device-pair.d.ts +1 -1
- package/dist/plugin-sdk/device-pair.js +2 -3
- package/dist/plugin-sdk/{diagnostic-Dfn1iERm.js → diagnostic-DLL_zekv.js} +3 -3
- package/dist/plugin-sdk/{directory-live-DatqU-eS.js → directory-live-CSuYxdwk.js} +1 -1
- package/dist/plugin-sdk/{directory-live-ClwN5KKq.js → directory-live-Dw7ZgC9_.js} +1 -1
- package/dist/plugin-sdk/discord.d.ts +6 -6
- package/dist/plugin-sdk/discord.js +32 -33
- package/dist/plugin-sdk/{draft-stream-controls-D4Tb_iS_.js → draft-stream-controls-BqchW1vi.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-BuYrl6q2.js → fetch-guard-CeG6u6ld.js} +1 -1
- package/dist/plugin-sdk/{filesystem-manager-B9DDPgfU.js → filesystem-manager-ZoHU8oA7.js} +3 -3
- package/dist/plugin-sdk/{fs-safe-BG-VzVkL.js → fs-safe-g4g7GT02.js} +2 -2
- package/dist/plugin-sdk/{group-mentions-BxDgHCgj.d.ts → group-mentions-BHRff6j8.d.ts} +1 -1
- package/dist/plugin-sdk/{guilds-BeT3iHHJ.js → guilds-CDhRIX57.js} +1 -1
- package/dist/plugin-sdk/{handle-action-B75UVKxF.js → handle-action-BSNDD2Vc.js} +25 -26
- package/dist/plugin-sdk/{helpers-BuEwju6y.js → helpers-CDo2XBSr.js} +1 -1
- package/dist/plugin-sdk/{image-ops-C66HPeAZ.js → image-ops-DbeBxbn4.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +18 -18
- package/dist/plugin-sdk/index.js +48 -52
- package/dist/plugin-sdk/{login-Amr2DpKU.js → login-CWXvFTd8.js} +3 -3
- package/dist/plugin-sdk/{login-qr-DMQNEi9m.js → login-qr-CJB2zjmM.js} +4 -4
- package/dist/plugin-sdk/{manager-Bvpq49BI.js → manager-CbiFFLKS.js} +8 -8
- package/dist/plugin-sdk/{markdown-tables-DmQ7oXOm.js → markdown-tables-Bskt9r8i.js} +1 -1
- package/dist/plugin-sdk/{media-ByLQbEwJ.js → media-B3aAg5rh.js} +5 -5
- package/dist/plugin-sdk/{memory-search-C3C0bD2H.js → memory-search-DTjIMw8J.js} +1 -1
- package/dist/plugin-sdk/{monitor-K_u6daGa.js → monitor-BJs6z7AT.js} +52 -56
- package/dist/plugin-sdk/{monitor-S_7LrvSj.js → monitor-BYGbTI5V.js} +62 -66
- package/dist/plugin-sdk/{openresponses-http-BrDJUZXR.js → openresponses-http-BGCl2dS2.js} +44 -48
- package/dist/plugin-sdk/{optional-runtime-dependency-CbYjAC2b.js → optional-runtime-dependency-BlTVkcAg.js} +1 -1
- package/dist/plugin-sdk/{outbound-BuDafBBI.js → outbound-CIemga5_.js} +9 -9
- package/dist/plugin-sdk/{outbound-attachment-DmZmUqFP.js → outbound-attachment-2RckWqrk.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-D0-UWGFJ.d.ts → pairing-message-C403mq4K.d.ts} +2 -2
- package/dist/plugin-sdk/{pairing-message-e4D4eBDA.js → pairing-message-r-VQfhFB.js} +1 -1
- package/dist/plugin-sdk/{pairing-store-T3IGoGZg.js → pairing-store-uPnLfGgB.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-Dg3gU-MA.js → path-alias-guards-DjgDArrp.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-DvAG_Png.js → pi-model-discovery-BpEilAym.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-NjkUgjIf.js → pi-model-discovery-runtime-DwNdFaz-.js} +3 -3
- package/dist/plugin-sdk/{probe-Dlk0Jxpw.js → probe-BFroeK3g.js} +1 -1
- package/dist/plugin-sdk/{probe-Cyb-DGA3.js → probe-CJb5uR8B.js} +2 -2
- package/dist/plugin-sdk/{probe-D8JAILir.js → probe-l_whvGLY.js} +1 -1
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +2 -2
- package/dist/plugin-sdk/{pw-ai-D7eW43DL.js → pw-ai-H7UgunQQ.js} +7 -9
- package/dist/plugin-sdk/{qmd-manager-DCUE21Kj.js → qmd-manager-DSyx77KY.js} +4 -4
- package/dist/plugin-sdk/{query-expansion-Zr9qQixm.js → query-expansion-CAI2kKLQ.js} +1 -1
- package/dist/plugin-sdk/{replies-BMIPmEoP.js → replies-CKMwkH4G.js} +4 -4
- package/dist/plugin-sdk/{reply-prefix-Bqzm6DC1.js → reply-prefix-CeVw7Mn2.js} +1 -1
- package/dist/plugin-sdk/{resolve-channels-ChWKWtA9.js → resolve-channels-87LZrFk_.js} +2 -2
- package/dist/plugin-sdk/{resolve-channels-zEnvugag.js → resolve-channels-_-nV-EK2.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-CXCqUUPV.js → resolve-outbound-target-B68fSoGi.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-DJN-SUSt.js → resolve-route-B8fOfihG.js} +2 -2
- package/dist/plugin-sdk/{resolve-users-BTvjQuui.js → resolve-users-DN9VQBwv.js} +1 -1
- package/dist/plugin-sdk/{resolve-users-CTzoruIZ.js → resolve-users-V6dHh_2B.js} +2 -2
- package/dist/plugin-sdk/{retry-policy-CY1qY6d7.js → retry-policy-B6GQldxB.js} +1 -1
- package/dist/plugin-sdk/{runtime-dependency-DvdRNMvs.js → runtime-dependency-DlqVSsSs.js} +124 -16
- package/dist/plugin-sdk/{runtime-CgOkQe0w.js → runtime-nVJl3PlS.js} +4 -4
- package/dist/plugin-sdk/{sandbox-paths-lj7_EVuA.js → sandbox-paths-Dx2lUqCu.js} +2 -2
- package/dist/plugin-sdk/sat-runtime.d.ts +3 -3
- package/dist/plugin-sdk/sat-runtime.js +45 -11
- package/dist/plugin-sdk/{send-2ITqny2W.js → send-BCJ4hi3t.js} +10 -10
- package/dist/plugin-sdk/{send-Cr-dj6S-.js → send-BHokB4TR.js} +6 -6
- package/dist/plugin-sdk/{send-BAz22RZr.js → send-CPK_HlYW.js} +9 -9
- package/dist/plugin-sdk/{send-eTxqFFsw.js → send-D3DQOg2a.js} +8 -8
- package/dist/plugin-sdk/{send-BG3RWyil.js → send-hSu1HWms.js} +13 -13
- package/dist/plugin-sdk/{session-C8nJmmVE.js → session-DQ4Dr-mf.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-Rm5by9S8.js → skill-commands-CmdoKLh_.js} +103 -103
- package/dist/plugin-sdk/{slack-xvIVvyEM.js → slack-B70NHpMF.js} +65 -69
- package/dist/plugin-sdk/{slack-actions-BNIALJTA.js → slack-actions-fSmP981b.js} +21 -22
- package/dist/plugin-sdk/slack.d.ts +6 -6
- package/dist/plugin-sdk/slack.js +14 -14
- package/dist/plugin-sdk/{ssrf-BZG8Ztod.js → ssrf-fG4UHKBw.js} +180 -2
- package/dist/plugin-sdk/{sticker-cache-D3oDiu2u.js → sticker-cache-B4dG2sKU.js} +3 -3
- package/dist/plugin-sdk/{tables-DS5L7lCA.js → tables-EX4Hy-a-.js} +2 -2
- package/dist/plugin-sdk/{device-pairing-D2Yq-_U6.js → tailscale-status-DwpNdO3Z.js} +104 -2
- package/dist/plugin-sdk/{targets-D6lUomJc.js → targets-BeGUCGWK.js} +2 -2
- package/dist/plugin-sdk/{telegram-actions-MSFkDn0m.js → telegram-actions-CM8SJgc9.js} +49 -53
- package/dist/plugin-sdk/telegram.d.ts +6 -6
- package/dist/plugin-sdk/telegram.js +12 -12
- package/dist/plugin-sdk/{thread-bindings.lifecycle-Ry6Vcgw3.js → thread-bindings.lifecycle-tHK_1mvp.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-C0stmvNk.js → thread-bindings.state-D7xG1GHu.js} +2 -2
- package/dist/plugin-sdk/{tmp-fased-dir-D91GExk4.d.ts → tmp-fased-dir-Ouj58axY.d.ts} +2 -2
- package/dist/plugin-sdk/{types-DVTIpopt.d.ts → types-B4hj6HgR.d.ts} +2 -2
- package/dist/plugin-sdk/{types-BzadOItY.d.ts → types-DyhXnYUr.d.ts} +1 -1
- package/dist/plugin-sdk/{types-DKvBJHfH.d.ts → types-dWZFX1fk.d.ts} +28 -3
- package/dist/plugin-sdk/{types.plugin-BiHPaDTF.d.ts → types.plugin-_fbu40Re.d.ts} +7 -5
- package/dist/plugin-sdk/{web-DRNJxHXA.js → web-BFolfZ3i.js} +53 -57
- package/dist/plugin-sdk/{whatsapp-actions-BDXZF2R5.js → whatsapp-actions-CYmleHCz.js} +19 -20
- package/dist/plugin-sdk/{whatsapp-heartbeat-CKgmwCGr.js → whatsapp-heartbeat-BEwm4GK3.js} +2 -2
- package/dist/plugin-sdk/whatsapp.d.ts +11 -11
- package/dist/plugin-sdk/whatsapp.js +15 -15
- package/dist/plugin-sdk/{wsl-Biw7Mj39.js → wsl-BtMDzMv5.js} +53 -53
- package/dist/plugin-sdk/{zod-schema.providers-core-CIzCjXH9.d.ts → zod-schema.providers-core-FaYR6KdD.d.ts} +61 -61
- package/dist/plugins/lifecycle.js +1 -1
- package/dist/plugins/manifest-registry.js +26 -0
- package/dist/plugins/manifest.js +2 -0
- package/dist/plugins/marketplace.js +1 -1
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/plugins/update.js +1 -1
- package/dist/providers/github-copilot-model-discovery.js +51 -0
- package/dist/providers/openai-codex-model-discovery.js +176 -0
- package/dist/providers/refresh.js +116 -34
- package/dist/providers/registry.js +2 -2
- package/dist/providers/runtime-model-catalog.js +97 -28
- package/dist/shared/model-thinking.js +13 -2
- package/dist/telegram/bot-message-context.js +1 -1
- package/dist/wizard/onboarding.finalize.js +1 -1
- 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 +2 -1
- package/dist/control-ui/assets/chat-model-ref-BZFblCeY.js +0 -2
- package/dist/plugin-sdk/ip-C70a-YlD.js +0 -181
- package/dist/plugin-sdk/tailscale-status-ClsquRGs.js +0 -104
- package/dist/plugin-sdk/wallet-status-f0HagNeO.js +0 -11947
- package/dist/plugin-sdk/ws-CocpWGhl.js +0 -114
- /package/dist/plugin-sdk/{blocks-input-Dcitfh7h.js → blocks-input-Bg-8S2pl.js} +0 -0
- /package/dist/plugin-sdk/{channel-activity-Cg1xRoc2.js → channel-activity-DBDMQ3yI.js} +0 -0
- /package/dist/plugin-sdk/{channel-core-BOkyXXLa.js → channel-core-CFRs8LPy.js} +0 -0
- /package/dist/plugin-sdk/{client-D2N7hqVu.js → client-pI228AVT.js} +0 -0
- /package/dist/plugin-sdk/{command-poll-backoff-NAePk3eL.js → command-poll-backoff-yJU83wEq.js} +0 -0
- /package/dist/plugin-sdk/{date-time-CE3Uer3C.js → date-time-uUevHscU.js} +0 -0
- /package/dist/plugin-sdk/{diagnostic-session-state-HO94DMou.js → diagnostic-session-state-DqgfGYqZ.js} +0 -0
- /package/dist/plugin-sdk/{draft-stream-loop-CKyHn8IX.js → draft-stream-loop-CrOPfV3F.js} +0 -0
- /package/dist/plugin-sdk/{fetch-Cu-ahkie.js → fetch-BtmoPIlf.js} +0 -0
- /package/dist/plugin-sdk/{gateway-registry-DFsoY6C0.js → gateway-registry-DZDsqicG.js} +0 -0
- /package/dist/plugin-sdk/{inbound-context-BFnIdcqI.js → inbound-context-DrAcXE0y.js} +0 -0
- /package/dist/plugin-sdk/{internal-qo16nNU1.js → internal-CG_nHo-2.js} +0 -0
- /package/dist/plugin-sdk/{pairing-token-N_6Jbt1L.js → pairing-token-Cs3BRKc0.js} +0 -0
- /package/dist/plugin-sdk/{polls-DQrR-qT3.js → polls-DKQXVfJp.js} +0 -0
- /package/dist/plugin-sdk/{proxy-7xs_rsnV.js → proxy-DWpYcsvR.js} +0 -0
- /package/dist/plugin-sdk/{qmd-scope-D1sSG_Rx.js → qmd-scope-CdX34VCV.js} +0 -0
- /package/dist/plugin-sdk/{redact-identifier-Q3tkvxhm.js → redact-identifier-Lt7t3l7S.js} +0 -0
- /package/dist/plugin-sdk/{redact-sensitive-url-dPvnFFsK.js → redact-sensitive-url-g-ukZjwA.js} +0 -0
- /package/dist/plugin-sdk/{render-Bwu_WxwA.js → render-e7fENCYH.js} +0 -0
- /package/dist/plugin-sdk/{reply-reference-BkbK_DWT.js → reply-reference-Bqk-7HXE.js} +0 -0
- /package/dist/plugin-sdk/{secure-random-Bl-AVLVb.js → secure-random-BIkG-k4s.js} +0 -0
- /package/dist/plugin-sdk/{shared-clhhbWN3.js → shared-CBgp_GBw.js} +0 -0
- /package/dist/plugin-sdk/{target-errors-C_SVKoEv.js → target-errors-Ckufe179.js} +0 -0
- /package/dist/plugin-sdk/{targets-BDvvnlph.js → targets-CoMJ1ry1.js} +0 -0
- /package/dist/plugin-sdk/{tokens-BvtlOzVP.js → tokens-BbnqfVuu.js} +0 -0
- /package/dist/plugin-sdk/{tool-loop-detection-CWphm1k_.js → tool-loop-detection-Bp8bPJLs.js} +0 -0
- /package/dist/plugin-sdk/{ui-e020ouhJ.js → ui-Be8cLHIS.js} +0 -0
- /package/dist/plugin-sdk/{with-timeout-BYrRAYFV.js → with-timeout-ckWB8rTo.js} +0 -0
|
@@ -1,23 +1,57 @@
|
|
|
1
|
+
import { getProviderBrandManifestForRoute } from "./registry.js";
|
|
1
2
|
import { buildModelCatalogMergeKey } from "../agents/model-catalog-normalized.js";
|
|
2
3
|
import { deriveModelMetadata } from "../agents/model-metadata.js";
|
|
3
4
|
import { buildProviderRefreshEnvFromCredentials, fetchProviderRefreshSnapshotForRoutes } from "./refresh.js";
|
|
5
|
+
import { discoverGitHubCopilotModels } from "./github-copilot-model-discovery.js";
|
|
6
|
+
import { discoverOpenAICodexModels } from "./openai-codex-model-discovery.js";
|
|
4
7
|
import { createHash } from "node:crypto";
|
|
5
8
|
|
|
6
9
|
//#region src/providers/runtime-model-catalog.ts
|
|
7
10
|
const DISCOVERY_TTL_MS = 5 * 6e4;
|
|
8
11
|
let cache = null;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
const SPECIALIZED_DISCOVERY_ROUTES = new Set(["openai-codex", "github-copilot"]);
|
|
13
|
+
function authModeForProfileType(type) {
|
|
14
|
+
return type === "api_key" ? "api-key" : type;
|
|
15
|
+
}
|
|
16
|
+
function methodMatchesAuthMode(method, authMode) {
|
|
17
|
+
const methodMode = method.kind === "api-key" || method.kind === "manual" ? "api-key" : method.kind === "token" ? "token" : "oauth";
|
|
18
|
+
return methodMode === authMode;
|
|
19
|
+
}
|
|
20
|
+
function methodRouteIds(method) {
|
|
21
|
+
return [
|
|
22
|
+
method.route,
|
|
23
|
+
method.statusRoute,
|
|
24
|
+
method.configProviderId
|
|
25
|
+
].map((value) => value?.trim().toLowerCase()).filter((value) => Boolean(value));
|
|
26
|
+
}
|
|
27
|
+
function credentialRoutesForProvider(store, route) {
|
|
28
|
+
const normalizedRoute = route.trim().toLowerCase();
|
|
29
|
+
const manifest = getProviderBrandManifestForRoute(normalizedRoute);
|
|
30
|
+
const routes = [];
|
|
31
|
+
const seen = new Set();
|
|
32
|
+
for (const profile of Object.values(store.profiles ?? {})) {
|
|
33
|
+
const profileProvider = profile.provider.trim().toLowerCase();
|
|
34
|
+
if (!profileProvider) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (profileProvider !== normalizedRoute) {
|
|
14
38
|
continue;
|
|
15
39
|
}
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
40
|
+
const authMode = authModeForProfileType(profile.type);
|
|
41
|
+
const method = manifest?.methods.find((candidate) => methodMatchesAuthMode(candidate, authMode) && (methodRouteIds(candidate).includes(profileProvider) || methodRouteIds(candidate).includes(normalizedRoute)));
|
|
42
|
+
const id = method?.id ?? `${normalizedRoute}:${authMode}`;
|
|
43
|
+
const key = `${id}:${authMode}`;
|
|
44
|
+
if (seen.has(key)) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
seen.add(key);
|
|
48
|
+
routes.push({
|
|
49
|
+
id,
|
|
50
|
+
label: method?.label ?? manifest?.label ?? normalizedRoute,
|
|
51
|
+
authMode
|
|
52
|
+
});
|
|
19
53
|
}
|
|
20
|
-
return
|
|
54
|
+
return routes;
|
|
21
55
|
}
|
|
22
56
|
function resetRuntimeProviderModelCatalogCache() {
|
|
23
57
|
cache = null;
|
|
@@ -66,6 +100,24 @@ async function loadSnapshot(params) {
|
|
|
66
100
|
throw error;
|
|
67
101
|
}
|
|
68
102
|
}
|
|
103
|
+
async function discoverInteractiveRoutes(params) {
|
|
104
|
+
const discovered = new Map();
|
|
105
|
+
if (params.routes.has("openai-codex")) {
|
|
106
|
+
discovered.set("openai-codex", await discoverOpenAICodexModels({
|
|
107
|
+
cfg: params.cfg,
|
|
108
|
+
store: params.store,
|
|
109
|
+
agentDir: params.agentDir
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
if (params.routes.has("github-copilot")) {
|
|
113
|
+
discovered.set("github-copilot", await discoverGitHubCopilotModels({
|
|
114
|
+
cfg: params.cfg,
|
|
115
|
+
store: params.store,
|
|
116
|
+
agentDir: params.agentDir
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
return discovered;
|
|
120
|
+
}
|
|
69
121
|
function snapshotCapabilities(model) {
|
|
70
122
|
return {
|
|
71
123
|
...model.tools !== undefined ? { tools: model.tools } : {},
|
|
@@ -94,12 +146,13 @@ function snapshotRoutes(snapshot) {
|
|
|
94
146
|
function mergeDiscoveredRoute(params) {
|
|
95
147
|
const baseByKey = new Map(params.catalog.map((model) => [buildModelCatalogMergeKey(model.provider, model.id), model]));
|
|
96
148
|
const providerConfig = params.cfg.models?.providers?.[params.route];
|
|
149
|
+
const credentialRoutes = credentialRoutesForProvider(params.store, params.route);
|
|
97
150
|
return params.discovered.map((model) => {
|
|
98
151
|
const base = baseByKey.get(buildModelCatalogMergeKey(params.route, model.id));
|
|
99
152
|
const capabilities = snapshotCapabilities(model);
|
|
100
153
|
const entry = {
|
|
101
154
|
id: model.id,
|
|
102
|
-
name: base?.name ?? model.id,
|
|
155
|
+
name: model.name ?? base?.name ?? model.id,
|
|
103
156
|
provider: params.route,
|
|
104
157
|
...model.contextWindow ?? base?.contextWindow ? { contextWindow: model.contextWindow ?? base?.contextWindow } : {},
|
|
105
158
|
...model.maxTokens ?? base?.maxTokens ? { maxTokens: model.maxTokens ?? base?.maxTokens } : {},
|
|
@@ -107,16 +160,23 @@ function mergeDiscoveredRoute(params) {
|
|
|
107
160
|
input: model.input ?? base?.input ?? ["text"],
|
|
108
161
|
...base?.baseUrl ?? providerConfig?.baseUrl ? { baseUrl: base?.baseUrl ?? providerConfig?.baseUrl } : {},
|
|
109
162
|
...base?.api ?? providerConfig?.api ? { api: base?.api ?? providerConfig?.api } : {},
|
|
163
|
+
...model.price ?? base?.cost ? { cost: model.price ?? base?.cost } : {},
|
|
110
164
|
...Object.keys(capabilities).length > 0 ? { capabilities } : {},
|
|
165
|
+
...model.responsesLite !== undefined ? { compat: {
|
|
166
|
+
...base?.compat,
|
|
167
|
+
responsesLite: model.responsesLite
|
|
168
|
+
} } : base?.compat ? { compat: base.compat } : {},
|
|
111
169
|
catalogSource: "provider-api"
|
|
112
170
|
};
|
|
113
171
|
return {
|
|
114
172
|
...entry,
|
|
115
173
|
metadata: {
|
|
174
|
+
...base?.metadata,
|
|
116
175
|
...deriveModelMetadata({
|
|
117
176
|
model: entry,
|
|
118
177
|
cfg: params.cfg,
|
|
119
178
|
providerConfig,
|
|
179
|
+
...credentialRoutes.length > 0 ? { credentialRoutes } : {},
|
|
120
180
|
...snapshotHasCapabilityMetadata(model) ? {
|
|
121
181
|
capabilitySource: "provider-api",
|
|
122
182
|
capabilityRetrievedAt: params.retrievedAt
|
|
@@ -132,35 +192,43 @@ async function applyRuntimeProviderModelDiscovery(params) {
|
|
|
132
192
|
if (requestedRoutes.size === 0) {
|
|
133
193
|
return [];
|
|
134
194
|
}
|
|
135
|
-
const
|
|
136
|
-
const providerApiRoutes = [...requestedRoutes].filter((route) => !
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
195
|
+
const specializedRoutes = new Set([...requestedRoutes].filter((route) => SPECIALIZED_DISCOVERY_ROUTES.has(route)));
|
|
196
|
+
const providerApiRoutes = [...requestedRoutes].filter((route) => !specializedRoutes.has(route));
|
|
197
|
+
const interactiveRoutes = await discoverInteractiveRoutes({
|
|
198
|
+
routes: requestedRoutes,
|
|
199
|
+
cfg: params.cfg,
|
|
200
|
+
store: params.store,
|
|
201
|
+
agentDir: params.agentDir
|
|
202
|
+
}).catch(() => new Map());
|
|
203
|
+
let discoveredRoutes = new Map(interactiveRoutes);
|
|
204
|
+
if (providerApiRoutes.length > 0) {
|
|
205
|
+
try {
|
|
206
|
+
const snapshot = await loadSnapshot({
|
|
207
|
+
...params,
|
|
208
|
+
routes: providerApiRoutes
|
|
209
|
+
});
|
|
210
|
+
discoveredRoutes = new Map([...discoveredRoutes, ...snapshotRoutes(snapshot)]);
|
|
211
|
+
} catch {}
|
|
148
212
|
}
|
|
149
|
-
const discoveredRoutes = snapshotRoutes(snapshot);
|
|
150
213
|
const retrievedAt = new Date().toISOString();
|
|
151
214
|
const authoritativeRoutes = new Set([...discoveredRoutes.keys()].filter((route) => requestedRoutes.has(route)));
|
|
152
|
-
const
|
|
215
|
+
const replacedRoutes = new Set(providerApiRoutes);
|
|
216
|
+
for (const route of specializedRoutes) {
|
|
217
|
+
replacedRoutes.add(route);
|
|
218
|
+
}
|
|
219
|
+
const retained = params.catalog.filter((model) => !replacedRoutes.has(model.provider.trim().toLowerCase()));
|
|
153
220
|
const discovered = [...authoritativeRoutes].flatMap((route) => mergeDiscoveredRoute({
|
|
154
221
|
route,
|
|
155
222
|
discovered: discoveredRoutes.get(route) ?? [],
|
|
156
223
|
catalog: params.catalog,
|
|
157
224
|
cfg: params.cfg,
|
|
225
|
+
store: params.store,
|
|
158
226
|
retrievedAt
|
|
159
227
|
}));
|
|
160
228
|
return [...retained, ...discovered].toSorted((left, right) => left.provider.localeCompare(right.provider) || (left.metadata?.recommendationRank ?? Number.MAX_SAFE_INTEGER) - (right.metadata?.recommendationRank ?? Number.MAX_SAFE_INTEGER) || left.name.localeCompare(right.name));
|
|
161
229
|
}
|
|
162
230
|
function filterCatalogToAuthoritativeAvailability(catalog, store) {
|
|
163
|
-
const
|
|
231
|
+
const specializedProviders = store ? new Set(Object.values(store.profiles ?? {}).map((profile) => profile.provider.trim().toLowerCase()).filter((provider) => SPECIALIZED_DISCOVERY_ROUTES.has(provider))) : new Set();
|
|
164
232
|
const byProvider = new Map();
|
|
165
233
|
for (const model of catalog) {
|
|
166
234
|
const provider = model.provider.trim().toLowerCase();
|
|
@@ -170,12 +238,13 @@ function filterCatalogToAuthoritativeAvailability(catalog, store) {
|
|
|
170
238
|
if (models.some((model) => model.catalogSource === "provider-api")) {
|
|
171
239
|
return models.filter((model) => model.catalogSource === "provider-api");
|
|
172
240
|
}
|
|
173
|
-
if (
|
|
174
|
-
return models.filter((model) => model.catalogSource === "runtime");
|
|
241
|
+
if (specializedProviders.has(provider)) {
|
|
242
|
+
return models.filter((model) => model.catalogSource === "runtime" || model.catalogSource === "provider-api");
|
|
175
243
|
}
|
|
176
244
|
return models;
|
|
177
245
|
});
|
|
178
246
|
}
|
|
247
|
+
const testing = { credentialRoutesForProvider };
|
|
179
248
|
|
|
180
249
|
//#endregion
|
|
181
250
|
export { applyRuntimeProviderModelDiscovery, filterCatalogToAuthoritativeAvailability, resetRuntimeProviderModelCatalogCache };
|
|
@@ -15,6 +15,7 @@ const MAX_THINKING_LEVELS = [
|
|
|
15
15
|
"xhigh",
|
|
16
16
|
"max"
|
|
17
17
|
];
|
|
18
|
+
const ULTRA_THINKING_LEVELS = [...MAX_THINKING_LEVELS, "ultra"];
|
|
18
19
|
const XHIGH_MODEL_REFS = [
|
|
19
20
|
"openai/gpt-5.6",
|
|
20
21
|
"openai/gpt-5.6-terra",
|
|
@@ -77,6 +78,9 @@ function normalizeThinkLevel(raw) {
|
|
|
77
78
|
if (key === "max") {
|
|
78
79
|
return "max";
|
|
79
80
|
}
|
|
81
|
+
if (key === "ultra") {
|
|
82
|
+
return "ultra";
|
|
83
|
+
}
|
|
80
84
|
if (key === "off") {
|
|
81
85
|
return "off";
|
|
82
86
|
}
|
|
@@ -110,7 +114,6 @@ function normalizeThinkLevel(raw) {
|
|
|
110
114
|
}
|
|
111
115
|
if ([
|
|
112
116
|
"high",
|
|
113
|
-
"ultra",
|
|
114
117
|
"ultrathink",
|
|
115
118
|
"think-hard",
|
|
116
119
|
"thinkhardest",
|
|
@@ -159,6 +162,11 @@ function normalizeThinkingLevels(values) {
|
|
|
159
162
|
return levels;
|
|
160
163
|
}
|
|
161
164
|
function listGenericThinkingLevels(provider, model) {
|
|
165
|
+
const normalizedProvider = normalizeProviderId(provider);
|
|
166
|
+
const normalizedModel = model?.trim().toLowerCase();
|
|
167
|
+
if (normalizedProvider === "openai-codex" && (normalizedModel === "gpt-5.6-sol" || normalizedModel === "gpt-5.6-terra")) {
|
|
168
|
+
return [...ULTRA_THINKING_LEVELS];
|
|
169
|
+
}
|
|
162
170
|
if (supportsMaxThinking(provider, model)) {
|
|
163
171
|
return [...MAX_THINKING_LEVELS];
|
|
164
172
|
}
|
|
@@ -283,6 +291,9 @@ function listThinkingLevels(provider, model) {
|
|
|
283
291
|
function listThinkingLevelLabels(provider, model) {
|
|
284
292
|
return listThinkingLevels(provider, model);
|
|
285
293
|
}
|
|
294
|
+
function supportsThinkingLevel(provider, model, level) {
|
|
295
|
+
return listThinkingLevels(provider, model).includes(level);
|
|
296
|
+
}
|
|
286
297
|
function formatThinkingLevels(provider, model, separator = ", ") {
|
|
287
298
|
return listThinkingLevelLabels(provider, model).join(separator);
|
|
288
299
|
}
|
|
@@ -301,4 +312,4 @@ function formatXHighModelHint() {
|
|
|
301
312
|
}
|
|
302
313
|
|
|
303
314
|
//#endregion
|
|
304
|
-
export { BASE_THINKING_LEVELS, XHIGH_THINKING_LEVELS, formatThinkingLevels, formatXHighModelHint, isBinaryThinkingProvider, listThinkingLevelLabels, listThinkingLevels, normalizeThinkLevel, resolveModelThinkingCapability, supportsXHighThinking };
|
|
315
|
+
export { BASE_THINKING_LEVELS, XHIGH_THINKING_LEVELS, formatThinkingLevels, formatXHighModelHint, isBinaryThinkingProvider, listThinkingLevelLabels, listThinkingLevels, normalizeThinkLevel, resolveModelThinkingCapability, supportsThinkingLevel, supportsXHighThinking };
|
|
@@ -22,9 +22,9 @@ import { resolveAgentRoute } from "../routing/resolve-route.js";
|
|
|
22
22
|
import { recordChannelActivity } from "../infra/channel-activity.js";
|
|
23
23
|
import { formatLocationText, toLocationContext } from "../channels/location.js";
|
|
24
24
|
import { resolveMentionGatingWithBypass } from "../channels/mention-gating.js";
|
|
25
|
+
import { findModelInCatalog, loadModelCatalog, modelSupportsVision } from "../agents/model-catalog.js";
|
|
25
26
|
import { isSenderAllowed, normalizeAllowFrom, normalizeDmAllowFromWithStore } from "./bot-access.js";
|
|
26
27
|
import { buildGroupLabel, buildSenderLabel, buildSenderName, buildTelegramGroupFrom, buildTelegramGroupPeerId, buildTelegramParentPeer, buildTypingThreadParams, describeReplyTarget, expandTextLinks, extractTelegramLocation, hasBotMention, normalizeForwardedContext, resolveTelegramMediaPlaceholder, resolveTelegramThreadSpec } from "./bot/helpers.js";
|
|
27
|
-
import { findModelInCatalog, loadModelCatalog, modelSupportsVision } from "../agents/model-catalog.js";
|
|
28
28
|
import { withTelegramApiErrorLogging } from "./api-logging.js";
|
|
29
29
|
import { createStatusReactionController } from "../channels/status-reactions.js";
|
|
30
30
|
import { enforceTelegramDmAccess } from "./dm-access.js";
|
|
@@ -8,6 +8,7 @@ import { readWalletProviderRegistry } from "../wallet/wallet-provider-registry.j
|
|
|
8
8
|
import { loadPersistedFederationToken } from "../federation/access-token.js";
|
|
9
9
|
import { normalizeControlUiBasePath } from "../gateway/control-ui-shared.js";
|
|
10
10
|
import { detectBrowserOpenSupport, formatControlUiSshHint, openUrl, probeGatewayReachable, resolveControlUiLinks, waitForGatewayReachable } from "../commands/onboard-helpers.js";
|
|
11
|
+
import { buildCapabilityReadinessReport, formatCapabilityReadinessSummary } from "../capabilities/catalog.js";
|
|
11
12
|
import { runFederationAutoConnectOnce } from "../federation/auto-connect.js";
|
|
12
13
|
import { waitForHostedDashboardBrowserPath } from "../commands/hosted-dashboard-probe.js";
|
|
13
14
|
import { buildSystemdUnit } from "../daemon/systemd-unit.js";
|
|
@@ -21,7 +22,6 @@ import { resolveGatewayMaxOldSpaceMb } from "../daemon/service-env.js";
|
|
|
21
22
|
import { buildGatewayInstallPlan, gatewayInstallErrorHint, resolveGatewayStartupMode, resolveHostedOnboardingGatewayStartupMode } from "../commands/daemon-install-helpers.js";
|
|
22
23
|
import { DEFAULT_GATEWAY_DAEMON_RUNTIME, GATEWAY_DAEMON_RUNTIME_OPTIONS } from "../commands/daemon-runtime.js";
|
|
23
24
|
import { SERVICE_AUDIT_CODES, auditGatewayServiceConfig } from "../daemon/service-audit.js";
|
|
24
|
-
import { buildCapabilityReadinessReport, formatCapabilityReadinessSummary } from "../capabilities/catalog.js";
|
|
25
25
|
import { noteBullet, noteCommand, noteCommands, noteHeading, noteLabel, noteMuted, noteSuccess, noteWarn } from "./onboarding-note-format.js";
|
|
26
26
|
import { describeOperatorReadinessChecklist } from "../operator/operator-readiness.js";
|
|
27
27
|
import { runTui } from "../tui/tui.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fased/memory-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.57",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "FasedAgent core memory search plugin",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@fased/fased": "^0.1.
|
|
8
|
+
"@fased/fased": "^0.1.57"
|
|
9
9
|
},
|
|
10
10
|
"fased": {
|
|
11
11
|
"extensions": [
|