@leemat/atlas 2026.2.6-3
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/CHANGELOG.md +1580 -0
- package/LICENSE +21 -0
- package/README.md +544 -0
- package/atlas.mjs +33 -0
- package/dist/accounts-B2CFjnU4.js +250 -0
- package/dist/accounts-CvZ72HMT.js +251 -0
- package/dist/acp-cli-B_NsEPUF.js +923 -0
- package/dist/acp-cli-Dm8_74Su.js +926 -0
- package/dist/agent-B1KyGOLc.js +704 -0
- package/dist/agent-CO7AGlj3.js +704 -0
- package/dist/agent-scope-BKOcVvmS.js +370 -0
- package/dist/agent-scope-CUMjEpma.js +612 -0
- package/dist/agent-scope-DbPV-klD.js +370 -0
- package/dist/archive-D0z3LZDK.js +85 -0
- package/dist/archive-Dy3Ezb-5.js +85 -0
- package/dist/atlas-root-DPjGhx7U.js +84 -0
- package/dist/atlas-root-F1I7aUzD.js +84 -0
- package/dist/audit-4IbU_Yq6.js +1853 -0
- package/dist/audit-B3-IhtiV.js +1853 -0
- package/dist/auth-B9k363u6.js +192 -0
- package/dist/auth-DZMv_djK.js +192 -0
- package/dist/auth-health-B5WXeaXo.js +149 -0
- package/dist/auth-health-CkS5AU7V.js +149 -0
- package/dist/auth-profiles-DVuTc3KD.js +2982 -0
- package/dist/boolean-BgXe2hyu.js +30 -0
- package/dist/brew-CAcErcKz.js +46 -0
- package/dist/brew-CcZV0dSS.js +46 -0
- package/dist/build-info.json +5 -0
- package/dist/call-B-YgfFca.js +278 -0
- package/dist/call-Ct_Pe8S_.js +278 -0
- package/dist/channel-options-DMkSEj2S.js +32 -0
- package/dist/channel-options-DNbHaxTc.js +62 -0
- package/dist/channel-selection-CiBb_0sf.js +51 -0
- package/dist/channel-selection-D6g27acA.js +51 -0
- package/dist/channel-summary-CVBxRY-m.js +1120 -0
- package/dist/channel-summary-Cii0qyXD.js +1120 -0
- package/dist/channels-cli-CcPXhyBw.js +1413 -0
- package/dist/channels-cli-D8W1-24C.js +1415 -0
- package/dist/channels-status-issues-B482aNiB.js +18 -0
- package/dist/channels-status-issues-DmUlNR2O.js +18 -0
- package/dist/chrome--o2SN4MI.js +1953 -0
- package/dist/chrome-DVA0NdqA.js +1973 -0
- package/dist/clack-prompter-DuBVnTKy.js +92 -0
- package/dist/clack-prompter-lan2z6rF.js +92 -0
- package/dist/cli/daemon-cli.js +2 -0
- package/dist/cli-2Nb0qAN-.js +89 -0
- package/dist/cli-D3dtxIjI.js +86 -0
- package/dist/cli-utils-BkRQdAoC.js +43 -0
- package/dist/cli-utils-ByANh4Sp.js +43 -0
- package/dist/client-B2vWxO-_.js +1629 -0
- package/dist/client-D74ONBvb.js +1629 -0
- package/dist/command-format-CBU5jCY8.js +52 -0
- package/dist/command-format-C_-Q-_o3.js +38 -0
- package/dist/command-format-DxY_r9MK.js +52 -0
- package/dist/command-options-DHtNt4I-.js +33 -0
- package/dist/commands-B7i6KXd8.js +233 -0
- package/dist/completion-cli-BfwMsZop.js +773 -0
- package/dist/completion-cli-BiGWNIxh.js +434 -0
- package/dist/config-BJMUdu-Q.js +5665 -0
- package/dist/config-BgzNMb8g.js +4924 -0
- package/dist/config-Cj3AMovm.js +4925 -0
- package/dist/config-guard-CATld9BC.js +5774 -0
- package/dist/configure-CfMz3i3p.js +896 -0
- package/dist/configure-DGI01ZDv.js +895 -0
- package/dist/constants-C2bzsGRk.js +65 -0
- package/dist/constants-Kx9rkT-e.js +65 -0
- package/dist/control-service-BguMnv1a.js +61 -0
- package/dist/control-service-DQdSjtFR.js +61 -0
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/index-Bnuib5Ip.css +1 -0
- package/dist/control-ui/assets/index-CJDa-e45.js +7742 -0
- package/dist/control-ui/assets/index-CJDa-e45.js.map +1 -0
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +10 -0
- package/dist/control-ui/index.html +17 -0
- package/dist/cron-cli-DxOHRJeP.js +457 -0
- package/dist/cron-cli-DyHq7PPn.js +454 -0
- package/dist/daemon-cli-DnG7hXBG.js +758 -0
- package/dist/daemon-cli-DtX6mLa3.js +757 -0
- package/dist/daemon-runtime-BBa_-tjq.js +517 -0
- package/dist/daemon-runtime-CFgWpGVG.js +517 -0
- package/dist/deliver-2RpZLJla.js +2557 -0
- package/dist/deliver-BqXGjEEH.js +2587 -0
- package/dist/deliver-CbpK_oAa.js +2587 -0
- package/dist/deps-BwQdWZ3T.js +27 -0
- package/dist/deps-xXApNuyT.js +27 -0
- package/dist/devices-cli-C9eUNH2s.js +207 -0
- package/dist/devices-cli-D1sHyAon.js +204 -0
- package/dist/directory-cli-CgzoxCDb.js +244 -0
- package/dist/directory-cli-ZaH0pGCD.js +247 -0
- package/dist/dispatcher-ah_Eqs3t.js +160 -0
- package/dist/dns-cli-DErlWHgR.js +198 -0
- package/dist/dns-cli-DGxOs29X.js +201 -0
- package/dist/docs-cli-CnFX3PTv.js +161 -0
- package/dist/docs-cli-DeharIH5.js +159 -0
- package/dist/doctor-DCce0xHW.js +2583 -0
- package/dist/doctor-DtfQuH6c.js +2581 -0
- package/dist/entry.js +1330 -0
- package/dist/env-zsgpOYKj.js +32 -0
- package/dist/errors--RNLFyOF.js +1952 -0
- package/dist/exec-B8JKbXKW.js +246 -0
- package/dist/exec-BxiGO6W4.js +1099 -0
- package/dist/exec-COj3548p.js +246 -0
- package/dist/exec-approvals-PnTNl5mV.js +1043 -0
- package/dist/exec-approvals-cli-9XZbw7c9.js +385 -0
- package/dist/exec-approvals-cli-DxN1xzt-.js +388 -0
- package/dist/exec-approvals-odA-6DHi.js +1043 -0
- package/dist/extensionAPI.js +69586 -0
- package/dist/format-B7OjpGnt.js +34 -0
- package/dist/format-CS7EI0xF.js +34 -0
- package/dist/gateway-cli-CBAh850v.js +17866 -0
- package/dist/gateway-cli-vdk_agft.js +17865 -0
- package/dist/gateway-rpc-DndVngdH.js +28 -0
- package/dist/gateway-rpc-gHTR5Cbc.js +28 -0
- package/dist/github-copilot-auth-Bk0_Aas5.js +1256 -0
- package/dist/github-copilot-auth-dtaSQ01h.js +1256 -0
- package/dist/github-copilot-token-BxyQgqz1.js +103 -0
- package/dist/github-copilot-token-C2AL0eDG.js +103 -0
- package/dist/github-copilot-token-SLWintYd.js +103 -0
- package/dist/gmail-setup-utils-Abq1qvuX.js +428 -0
- package/dist/gmail-setup-utils-CuUkI2Ka.js +428 -0
- package/dist/health-format-CKki6loN.js +1383 -0
- package/dist/health-format-DH676psg.js +1382 -0
- package/dist/help-format-CfZ94KRN.js +17 -0
- package/dist/help-format-Dds-jhO5.js +17 -0
- package/dist/helpers-5yebzF4C.js +25 -0
- package/dist/helpers-CSZtxHTa.js +10 -0
- package/dist/helpers-CeoEYUfW.js +10 -0
- package/dist/helpers-EKm3X92T.js +25 -0
- package/dist/hooks/bundled/audit-logger/HOOK.md +85 -0
- package/dist/hooks/bundled/boot-md/HOOK.md +19 -0
- package/dist/hooks/bundled/command-logger/HOOK.md +122 -0
- package/dist/hooks/bundled/hitl-approval/HOOK.md +42 -0
- package/dist/hooks/bundled/nightly-tasks/HOOK.md +114 -0
- package/dist/hooks/bundled/session-memory/HOOK.md +113 -0
- package/dist/hooks/bundled/soul-evil/HOOK.md +71 -0
- package/dist/hooks-cli-D8-spWPB.js +1058 -0
- package/dist/hooks-cli-_j8DNyo5.js +1061 -0
- package/dist/hooks-status-CajbXcRo.js +443 -0
- package/dist/hooks-status-f-U4xgPN.js +443 -0
- package/dist/image-4yiJAo6y.js +629 -0
- package/dist/image-BUFB_k8W.js +629 -0
- package/dist/image-CtVDEUHM.js +1421 -0
- package/dist/index.js +5957 -0
- package/dist/installs-BsauMWpx.js +425 -0
- package/dist/installs-iZIPKzVi.js +425 -0
- package/dist/is-main-B6kCyqsv.js +25 -0
- package/dist/is-main-qJ675wPV.js +25 -0
- package/dist/links-BfoNPOuN.js +15 -0
- package/dist/links-DlwSizsh.js +15 -0
- package/dist/loader-DdUyx3c8.js +66254 -0
- package/dist/logging-BCrQ_N_j.js +15 -0
- package/dist/logging-BWRYHvLp.js +1 -0
- package/dist/logging-CfEk_PnX.js +1 -0
- package/dist/logging-CoF0Bv_T.js +15 -0
- package/dist/login-qr-CQdQH62t.js +478 -0
- package/dist/login-qr-CvKDGUF4.js +478 -0
- package/dist/login-qr-Dl9dL1Jz.js +475 -0
- package/dist/logs-cli-BhrRuyRb.js +227 -0
- package/dist/logs-cli-DH4iwFU8.js +230 -0
- package/dist/manager-B27YqwcM.js +3218 -0
- package/dist/manager-BmM47v6p.js +3216 -0
- package/dist/manager-gS0CHyDA.js +3216 -0
- package/dist/manifest-registry-CxTVtFfj.js +668 -0
- package/dist/manifest-registry-DKY_KYIv.js +668 -0
- package/dist/message-channel-D1csMRHE.js +110 -0
- package/dist/message-channel-W5qX04Mh.js +110 -0
- package/dist/model-selection-Cgf5GXnY.js +2735 -0
- package/dist/model-selection-RJ94H_Fa.js +2984 -0
- package/dist/models-cli-Bh4XtEkb.js +2542 -0
- package/dist/models-cli-DQYDyH9_.js +2545 -0
- package/dist/net-C8YRVt16.js +137 -0
- package/dist/net-CWMMy37F.js +137 -0
- package/dist/node-cli-DiH4CzR7.js +1456 -0
- package/dist/node-cli-bOO40ezZ.js +1459 -0
- package/dist/node-service-BVHVpuzk.js +67 -0
- package/dist/node-service-CaoJUlNT.js +67 -0
- package/dist/nodes-cli-BLLUSaWc.js +1210 -0
- package/dist/nodes-cli-CH_5YF_E.js +1207 -0
- package/dist/nodes-screen-B9A3nMu0.js +157 -0
- package/dist/nodes-screen-aL7-_Dam.js +157 -0
- package/dist/note-Ci08TSbV.js +73 -0
- package/dist/note-tn_4OWcK.js +73 -0
- package/dist/onboard-channels-BEEU2UNU.js +671 -0
- package/dist/onboard-channels-ynCeHHwi.js +671 -0
- package/dist/onboard-skills-BLeO8BvO.js +3485 -0
- package/dist/onboard-skills-CFdpqxR-.js +3485 -0
- package/dist/onboarding-akYka8kO.js +3269 -0
- package/dist/pairing-cli-BYSP__d_.js +114 -0
- package/dist/pairing-cli-Dd11XK72.js +117 -0
- package/dist/pairing-labels-CaExZlyX.js +9 -0
- package/dist/pairing-labels-DpgaWX0-.js +9 -0
- package/dist/pairing-store-DeCzJbHE.js +391 -0
- package/dist/pairing-store-Dz8WHpyx.js +391 -0
- package/dist/parse-BZz5lHzQ.js +23 -0
- package/dist/parse-gTOGQPH6.js +23 -0
- package/dist/parse-log-line-C6szvNBZ.js +44 -0
- package/dist/parse-log-line-CARp5QyJ.js +44 -0
- package/dist/parse-timeout-CbVKLZ4B.js +16 -0
- package/dist/parse-timeout-Du-wHHNi.js +16 -0
- package/dist/path-env-CBt42KJm.js +77 -0
- package/dist/path-env-DBBZ3NDs.js +77 -0
- package/dist/paths-BhxDUiio.js +43 -0
- package/dist/paths-C2XPptKL.js +180 -0
- package/dist/paths-DHpqOQPB.js +43 -0
- package/dist/paths-DUxER0e-.js +40 -0
- package/dist/paths-Dnm60cBZ.js +164 -0
- package/dist/pi-embedded-helpers-BkBhYNNX.js +8957 -0
- package/dist/pi-embedded-helpers-DUeZHoPx.js +1298 -0
- package/dist/pi-embedded-helpers-DlQnQJyX.js +1298 -0
- package/dist/pi-model-discovery-BzaLYg2f.js +20 -0
- package/dist/pi-model-discovery-loGhFDjp.js +20 -0
- package/dist/pi-model-discovery-tRscuQ7_.js +20 -0
- package/dist/pi-tools.policy-D_N14UDS.js +233 -0
- package/dist/plugin-auto-enable-BZHGEtVT.js +460 -0
- package/dist/plugin-auto-enable-V8wa0pT5.js +460 -0
- package/dist/plugin-sdk/agents/agent-paths.d.ts +2 -0
- package/dist/plugin-sdk/agents/agent-scope.d.ts +37 -0
- package/dist/plugin-sdk/agents/anthropic-payload-log.d.ts +16 -0
- package/dist/plugin-sdk/agents/apply-patch-update.d.ts +8 -0
- package/dist/plugin-sdk/agents/apply-patch.d.ts +24 -0
- package/dist/plugin-sdk/agents/atlas-tools.d.ts +44 -0
- package/dist/plugin-sdk/agents/audit-log.d.ts +48 -0
- package/dist/plugin-sdk/agents/auth-profiles/constants.d.ts +20 -0
- package/dist/plugin-sdk/agents/auth-profiles/display.d.ts +7 -0
- package/dist/plugin-sdk/agents/auth-profiles/doctor.d.ts +8 -0
- package/dist/plugin-sdk/agents/auth-profiles/external-cli-sync.d.ts +7 -0
- package/dist/plugin-sdk/agents/auth-profiles/oauth.d.ts +12 -0
- package/dist/plugin-sdk/agents/auth-profiles/order.d.ts +8 -0
- package/dist/plugin-sdk/agents/auth-profiles/paths.d.ts +4 -0
- package/dist/plugin-sdk/agents/auth-profiles/profiles.d.ts +18 -0
- package/dist/plugin-sdk/agents/auth-profiles/repair.d.ts +14 -0
- package/dist/plugin-sdk/agents/auth-profiles/session-override.d.ts +18 -0
- package/dist/plugin-sdk/agents/auth-profiles/store.d.ts +10 -0
- package/dist/plugin-sdk/agents/auth-profiles/types.d.ts +60 -0
- package/dist/plugin-sdk/agents/auth-profiles/usage.d.ts +47 -0
- package/dist/plugin-sdk/agents/auth-profiles.d.ts +11 -0
- package/dist/plugin-sdk/agents/bash-process-registry.d.ts +68 -0
- package/dist/plugin-sdk/agents/bash-tools.d.ts +4 -0
- package/dist/plugin-sdk/agents/bash-tools.exec.d.ts +54 -0
- package/dist/plugin-sdk/agents/bash-tools.process.d.ts +7 -0
- package/dist/plugin-sdk/agents/bash-tools.shared.d.ts +46 -0
- package/dist/plugin-sdk/agents/bedrock-discovery.d.ts +9 -0
- package/dist/plugin-sdk/agents/bootstrap-files.d.ts +25 -0
- package/dist/plugin-sdk/agents/bootstrap-hooks.d.ts +10 -0
- package/dist/plugin-sdk/agents/cache-trace.d.ts +51 -0
- package/dist/plugin-sdk/agents/channel-tools.d.ts +27 -0
- package/dist/plugin-sdk/agents/chutes-oauth.d.ts +46 -0
- package/dist/plugin-sdk/agents/cli-backends.d.ts +8 -0
- package/dist/plugin-sdk/agents/cli-credentials.d.ts +82 -0
- package/dist/plugin-sdk/agents/cli-runner/helpers.d.ts +76 -0
- package/dist/plugin-sdk/agents/cli-runner.d.ts +41 -0
- package/dist/plugin-sdk/agents/cli-session.d.ts +3 -0
- package/dist/plugin-sdk/agents/cloudflare-ai-gateway.d.ts +22 -0
- package/dist/plugin-sdk/agents/context-window-guard.d.ts +24 -0
- package/dist/plugin-sdk/agents/context.d.ts +1 -0
- package/dist/plugin-sdk/agents/date-time.d.ts +13 -0
- package/dist/plugin-sdk/agents/defaults.d.ts +3 -0
- package/dist/plugin-sdk/agents/docs-path.d.ts +6 -0
- package/dist/plugin-sdk/agents/failover-error.d.ts +33 -0
- package/dist/plugin-sdk/agents/identity.d.ts +25 -0
- package/dist/plugin-sdk/agents/lanes.d.ts +3 -0
- package/dist/plugin-sdk/agents/memory-search.d.ts +66 -0
- package/dist/plugin-sdk/agents/minimax-vlm.d.ts +7 -0
- package/dist/plugin-sdk/agents/model-auth.d.ts +36 -0
- package/dist/plugin-sdk/agents/model-catalog.d.ts +25 -0
- package/dist/plugin-sdk/agents/model-compat.d.ts +2 -0
- package/dist/plugin-sdk/agents/model-fallback.d.ts +49 -0
- package/dist/plugin-sdk/agents/model-selection.d.ts +93 -0
- package/dist/plugin-sdk/agents/models-config.d.ts +5 -0
- package/dist/plugin-sdk/agents/models-config.providers.d.ts +26 -0
- package/dist/plugin-sdk/agents/pi-embedded-block-chunker.d.ts +19 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/bootstrap.d.ts +28 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/errors.d.ts +47 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/google.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/images.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/messaging-dedupe.d.ts +10 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/openai.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/thinking.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/turns.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/types.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers.d.ts +11 -0
- package/dist/plugin-sdk/agents/pi-embedded-messaging.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/abort.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/cache-ttl.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/compact.d.ts +50 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/extensions.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/extra-params.d.ts +22 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/google.d.ts +39 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/history.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/lanes.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/logger.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/model.d.ts +22 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/attempt.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/images.d.ts +83 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/params.d.ts +116 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/payloads.d.ts +34 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/types.d.ts +133 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/runs.d.ts +14 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/sandbox-info.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/session-manager-cache.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/session-manager-init.d.ts +17 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/system-prompt.d.ts +51 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/tool-split.d.ts +17 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/types.d.ts +70 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/utils.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.lifecycle.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.messages.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.tools.d.ts +18 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.types.d.ts +108 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.raw-stream.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.tools.d.ts +6 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.types.d.ts +44 -0
- package/dist/plugin-sdk/agents/pi-embedded-utils.d.ts +38 -0
- package/dist/plugin-sdk/agents/pi-embedded.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-extensions/compaction-safeguard-runtime.d.ts +6 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/runtime.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/settings.d.ts +44 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/tools.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-model-discovery.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-settings.d.ts +19 -0
- package/dist/plugin-sdk/agents/pi-tool-definition-adapter.d.ts +21 -0
- package/dist/plugin-sdk/agents/pi-tools.abort.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-tools.before-tool-call.d.ts +25 -0
- package/dist/plugin-sdk/agents/pi-tools.d.ts +69 -0
- package/dist/plugin-sdk/agents/pi-tools.policy.d.ts +38 -0
- package/dist/plugin-sdk/agents/pi-tools.read.d.ts +35 -0
- package/dist/plugin-sdk/agents/pi-tools.schema.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-tools.types.d.ts +2 -0
- package/dist/plugin-sdk/agents/pty-dsr.d.ts +5 -0
- package/dist/plugin-sdk/agents/pty-keys.d.ts +13 -0
- package/dist/plugin-sdk/agents/sandbox/browser-bridges.d.ts +5 -0
- package/dist/plugin-sdk/agents/sandbox/browser.d.ts +8 -0
- package/dist/plugin-sdk/agents/sandbox/config-hash.d.ts +9 -0
- package/dist/plugin-sdk/agents/sandbox/config.d.ts +22 -0
- package/dist/plugin-sdk/agents/sandbox/constants.d.ts +19 -0
- package/dist/plugin-sdk/agents/sandbox/context.d.ts +12 -0
- package/dist/plugin-sdk/agents/sandbox/docker.d.ts +28 -0
- package/dist/plugin-sdk/agents/sandbox/manage.d.ts +13 -0
- package/dist/plugin-sdk/agents/sandbox/prune.d.ts +3 -0
- package/dist/plugin-sdk/agents/sandbox/registry.d.ts +30 -0
- package/dist/plugin-sdk/agents/sandbox/runtime-status.d.ts +18 -0
- package/dist/plugin-sdk/agents/sandbox/shared.d.ts +4 -0
- package/dist/plugin-sdk/agents/sandbox/tool-policy.d.ts +4 -0
- package/dist/plugin-sdk/agents/sandbox/types.d.ts +73 -0
- package/dist/plugin-sdk/agents/sandbox/types.docker.d.ts +25 -0
- package/dist/plugin-sdk/agents/sandbox/workspace.d.ts +1 -0
- package/dist/plugin-sdk/agents/sandbox-paths.d.ts +21 -0
- package/dist/plugin-sdk/agents/sandbox.d.ts +8 -0
- package/dist/plugin-sdk/agents/schema/clean-for-gemini.d.ts +2 -0
- package/dist/plugin-sdk/agents/schema/typebox.d.ts +14 -0
- package/dist/plugin-sdk/agents/session-file-repair.d.ts +11 -0
- package/dist/plugin-sdk/agents/session-slug.d.ts +1 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard-wrapper.d.ts +14 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard.d.ts +21 -0
- package/dist/plugin-sdk/agents/session-transcript-repair.d.ts +26 -0
- package/dist/plugin-sdk/agents/session-write-lock.d.ts +21 -0
- package/dist/plugin-sdk/agents/shell-utils.d.ts +6 -0
- package/dist/plugin-sdk/agents/skills/bundled-dir.d.ts +7 -0
- package/dist/plugin-sdk/agents/skills/config.d.ts +14 -0
- package/dist/plugin-sdk/agents/skills/conflict-detector.d.ts +5 -0
- package/dist/plugin-sdk/agents/skills/dependency-manager.d.ts +47 -0
- package/dist/plugin-sdk/agents/skills/env-overrides.d.ts +10 -0
- package/dist/plugin-sdk/agents/skills/frontmatter.d.ts +6 -0
- package/dist/plugin-sdk/agents/skills/plugin-skills.d.ts +5 -0
- package/dist/plugin-sdk/agents/skills/refresh.d.ts +19 -0
- package/dist/plugin-sdk/agents/skills/serialize.d.ts +1 -0
- package/dist/plugin-sdk/agents/skills/types.d.ts +135 -0
- package/dist/plugin-sdk/agents/skills/workspace.d.ts +49 -0
- package/dist/plugin-sdk/agents/skills.d.ts +11 -0
- package/dist/plugin-sdk/agents/subagent-announce-queue.d.ts +22 -0
- package/dist/plugin-sdk/agents/subagent-announce.d.ts +28 -0
- package/dist/plugin-sdk/agents/subagent-registry.d.ts +35 -0
- package/dist/plugin-sdk/agents/subagent-registry.store.d.ts +5 -0
- package/dist/plugin-sdk/agents/synthetic-models.d.ts +153 -0
- package/dist/plugin-sdk/agents/system-prompt-params.d.ts +29 -0
- package/dist/plugin-sdk/agents/system-prompt-report.d.ts +20 -0
- package/dist/plugin-sdk/agents/system-prompt.d.ts +75 -0
- package/dist/plugin-sdk/agents/task-planner/engine.d.ts +24 -0
- package/dist/plugin-sdk/agents/task-planner/store.d.ts +6 -0
- package/dist/plugin-sdk/agents/task-planner/types.d.ts +38 -0
- package/dist/plugin-sdk/agents/timeout.d.ts +8 -0
- package/dist/plugin-sdk/agents/tool-call-id.d.ts +17 -0
- package/dist/plugin-sdk/agents/tool-display.d.ts +15 -0
- package/dist/plugin-sdk/agents/tool-images.d.ts +19 -0
- package/dist/plugin-sdk/agents/tool-policy.d.ts +39 -0
- package/dist/plugin-sdk/agents/tool-summaries.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/agent-step.d.ts +12 -0
- package/dist/plugin-sdk/agents/tools/agents-list-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/browser-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/browser-tool.schema.d.ts +50 -0
- package/dist/plugin-sdk/agents/tools/canvas-tool.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/common.d.ts +52 -0
- package/dist/plugin-sdk/agents/tools/cron-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-guild.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-messaging.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-moderation.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-presence.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions.d.ts +3 -0
- package/dist/plugin-sdk/agents/tools/document-tool.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/file-edit-tool.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/gateway-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/gateway.d.ts +14 -0
- package/dist/plugin-sdk/agents/tools/image-tool.d.ts +26 -0
- package/dist/plugin-sdk/agents/tools/image-tool.helpers.d.ts +21 -0
- package/dist/plugin-sdk/agents/tools/memory-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/message-tool.d.ts +18 -0
- package/dist/plugin-sdk/agents/tools/nodes-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/nodes-utils.d.ts +20 -0
- package/dist/plugin-sdk/agents/tools/session-status-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/sessions-announce-target.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-helpers.d.ts +90 -0
- package/dist/plugin-sdk/agents/tools/sessions-history-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-list-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-helpers.d.ts +34 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-tool.a2a.d.ts +12 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-tool.d.ts +7 -0
- package/dist/plugin-sdk/agents/tools/sessions-spawn-tool.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/slack-actions.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/task-planner-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/telegram-actions.d.ts +9 -0
- package/dist/plugin-sdk/agents/tools/tts-tool.d.ts +7 -0
- package/dist/plugin-sdk/agents/tools/web-fetch-utils.d.ts +18 -0
- package/dist/plugin-sdk/agents/tools/web-fetch.d.ts +25 -0
- package/dist/plugin-sdk/agents/tools/web-search.d.ts +22 -0
- package/dist/plugin-sdk/agents/tools/web-shared.d.ts +17 -0
- package/dist/plugin-sdk/agents/tools/web-tools.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/whatsapp-actions.d.ts +3 -0
- package/dist/plugin-sdk/agents/transcript-policy.d.ts +23 -0
- package/dist/plugin-sdk/agents/usage.d.ts +35 -0
- package/dist/plugin-sdk/agents/venice-models.d.ts +238 -0
- package/dist/plugin-sdk/agents/workspace-run.d.ts +18 -0
- package/dist/plugin-sdk/agents/workspace-templates.d.ts +6 -0
- package/dist/plugin-sdk/agents/workspace.d.ts +33 -0
- package/dist/plugin-sdk/auto-reply/chunk.d.ts +45 -0
- package/dist/plugin-sdk/auto-reply/command-auth.d.ts +17 -0
- package/dist/plugin-sdk/auto-reply/command-detection.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/commands-args.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.d.ts +54 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.data.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.types.d.ts +66 -0
- package/dist/plugin-sdk/auto-reply/dispatch.d.ts +27 -0
- package/dist/plugin-sdk/auto-reply/envelope.d.ts +59 -0
- package/dist/plugin-sdk/auto-reply/group-activation.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/heartbeat.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/inbound-debounce.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/media-note.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/model.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/abort.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-execution.d.ts +49 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-helpers.d.ts +17 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-memory.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-payloads.d.ts +25 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-utils.d.ts +30 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner.d.ts +38 -0
- package/dist/plugin-sdk/auto-reply/reply/bash-command.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/block-reply-coalescer.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/block-reply-pipeline.d.ts +31 -0
- package/dist/plugin-sdk/auto-reply/reply/block-streaming.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/body.d.ts +11 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-allowlist.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-approve.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-bash.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-compact.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-config.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-context-report.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-context.d.ts +12 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-core.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-info.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-models.d.ts +23 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-plugin.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-session.d.ts +7 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-status.d.ts +24 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-subagents.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-tts.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-types.d.ts +60 -0
- package/dist/plugin-sdk/auto-reply/reply/commands.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/config-commands.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/config-value.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/debug-commands.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.auth.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.fast-lane.d.ts +47 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.impl.d.ts +36 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.model-picker.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.model.d.ts +42 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.parse.d.ts +62 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.persist.d.ts +37 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.queue-validation.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.shared.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/directives.d.ts +38 -0
- package/dist/plugin-sdk/auto-reply/reply/dispatch-from-config.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/exec/directive.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/exec.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/followup-runner.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-apply.d.ts +64 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-utils.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives.d.ts +91 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-inline-actions.d.ts +59 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-run.d.ts +69 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/groups.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/history.d.ts +72 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-context.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-dedupe.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-sender-meta.d.ts +5 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-text.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/line-directives.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/memory-flush.d.ts +23 -0
- package/dist/plugin-sdk/auto-reply/reply/mentions.d.ts +18 -0
- package/dist/plugin-sdk/auto-reply/reply/model-selection.d.ts +61 -0
- package/dist/plugin-sdk/auto-reply/reply/normalize-reply.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/provider-dispatcher.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/cleanup.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/directive.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/drain.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/enqueue.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/normalize.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/settings.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/state.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/types.d.ts +84 -0
- package/dist/plugin-sdk/auto-reply/reply/queue.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-directives.d.ts +14 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-dispatcher.d.ts +51 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-elevated.d.ts +23 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-inline.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-payloads.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-reference.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-tags.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-threading.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/response-prefix-template.d.ts +51 -0
- package/dist/plugin-sdk/auto-reply/reply/route-reply.d.ts +56 -0
- package/dist/plugin-sdk/auto-reply/reply/session-reset-model.d.ts +24 -0
- package/dist/plugin-sdk/auto-reply/reply/session-updates.d.ts +34 -0
- package/dist/plugin-sdk/auto-reply/reply/session-usage.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/session.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/stage-sandbox-media.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/streaming-directives.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/subagents-utils.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/typing-mode.d.ts +27 -0
- package/dist/plugin-sdk/auto-reply/reply/typing.d.ts +18 -0
- package/dist/plugin-sdk/auto-reply/reply/untrusted-context.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/send-policy.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/skill-commands.d.ts +18 -0
- package/dist/plugin-sdk/auto-reply/status.d.ts +53 -0
- package/dist/plugin-sdk/auto-reply/templating.d.ts +140 -0
- package/dist/plugin-sdk/auto-reply/thinking.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/tokens.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/tool-meta.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/types.d.ts +57 -0
- package/dist/plugin-sdk/browser/bridge-server.d.ts +17 -0
- package/dist/plugin-sdk/browser/cdp.d.ts +123 -0
- package/dist/plugin-sdk/browser/cdp.helpers.d.ts +11 -0
- package/dist/plugin-sdk/browser/chrome.d.ts +20 -0
- package/dist/plugin-sdk/browser/chrome.executables.d.ts +9 -0
- package/dist/plugin-sdk/browser/chrome.profile-decoration.d.ts +10 -0
- package/dist/plugin-sdk/browser/client-actions-core.d.ts +143 -0
- package/dist/plugin-sdk/browser/client-actions-observe.d.ts +68 -0
- package/dist/plugin-sdk/browser/client-actions-state.d.ts +90 -0
- package/dist/plugin-sdk/browser/client-actions-types.d.ts +18 -0
- package/dist/plugin-sdk/browser/client-actions.d.ts +4 -0
- package/dist/plugin-sdk/browser/client-fetch.d.ts +3 -0
- package/dist/plugin-sdk/browser/client.d.ts +147 -0
- package/dist/plugin-sdk/browser/config.d.ts +39 -0
- package/dist/plugin-sdk/browser/constants.d.ts +8 -0
- package/dist/plugin-sdk/browser/control-service.d.ts +5 -0
- package/dist/plugin-sdk/browser/extension-relay.d.ts +15 -0
- package/dist/plugin-sdk/browser/profiles-service.d.ts +25 -0
- package/dist/plugin-sdk/browser/profiles.d.ts +30 -0
- package/dist/plugin-sdk/browser/pw-ai-module.d.ts +6 -0
- package/dist/plugin-sdk/browser/pw-ai.d.ts +2 -0
- package/dist/plugin-sdk/browser/pw-role-snapshot.d.ts +35 -0
- package/dist/plugin-sdk/browser/pw-session.d.ts +135 -0
- package/dist/plugin-sdk/browser/pw-tools-core.activity.d.ts +21 -0
- package/dist/plugin-sdk/browser/pw-tools-core.d.ts +8 -0
- package/dist/plugin-sdk/browser/pw-tools-core.downloads.d.ts +34 -0
- package/dist/plugin-sdk/browser/pw-tools-core.interactions.d.ts +112 -0
- package/dist/plugin-sdk/browser/pw-tools-core.responses.d.ts +13 -0
- package/dist/plugin-sdk/browser/pw-tools-core.shared.d.ts +6 -0
- package/dist/plugin-sdk/browser/pw-tools-core.snapshot.d.ts +64 -0
- package/dist/plugin-sdk/browser/pw-tools-core.state.d.ts +46 -0
- package/dist/plugin-sdk/browser/pw-tools-core.storage.d.ts +47 -0
- package/dist/plugin-sdk/browser/pw-tools-core.trace.d.ts +12 -0
- package/dist/plugin-sdk/browser/routes/agent.act.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.act.shared.d.ts +10 -0
- package/dist/plugin-sdk/browser/routes/agent.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.debug.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.shared.d.ts +9 -0
- package/dist/plugin-sdk/browser/routes/agent.snapshot.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.storage.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/basic.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/dispatcher.d.ts +15 -0
- package/dist/plugin-sdk/browser/routes/index.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/tabs.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/types.d.ts +15 -0
- package/dist/plugin-sdk/browser/routes/utils.d.ts +15 -0
- package/dist/plugin-sdk/browser/screenshot.d.ts +9 -0
- package/dist/plugin-sdk/browser/server-context.d.ts +3 -0
- package/dist/plugin-sdk/browser/server-context.types.d.ts +78 -0
- package/dist/plugin-sdk/browser/target-id.d.ts +11 -0
- package/dist/plugin-sdk/browser/trash.d.ts +1 -0
- package/dist/plugin-sdk/channel-web.d.ts +6 -0
- package/dist/plugin-sdk/channels/ack-reactions.d.ts +29 -0
- package/dist/plugin-sdk/channels/allowlist-match.d.ts +10 -0
- package/dist/plugin-sdk/channels/allowlists/resolve-utils.d.ts +6 -0
- package/dist/plugin-sdk/channels/channel-config.d.ts +39 -0
- package/dist/plugin-sdk/channels/chat-type.d.ts +2 -0
- package/dist/plugin-sdk/channels/command-gating.d.ts +20 -0
- package/dist/plugin-sdk/channels/conversation-label.d.ts +2 -0
- package/dist/plugin-sdk/channels/dock.d.ts +36 -0
- package/dist/plugin-sdk/channels/location.d.ts +21 -0
- package/dist/plugin-sdk/channels/logging.d.ts +20 -0
- package/dist/plugin-sdk/channels/mention-gating.d.ts +27 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord/handle-action.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord/handle-action.guild-admin.d.ts +9 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/actions/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/actions/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/agent-tools/whatsapp-login.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/allowlist-match.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/bluebubbles-actions.d.ts +48 -0
- package/dist/plugin-sdk/channels/plugins/channel-config.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/config-helpers.d.ts +14 -0
- package/dist/plugin-sdk/channels/plugins/config-schema.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/config-writes.d.ts +7 -0
- package/dist/plugin-sdk/channels/plugins/directory-config.d.ts +16 -0
- package/dist/plugin-sdk/channels/plugins/group-mentions.d.ts +28 -0
- package/dist/plugin-sdk/channels/plugins/helpers.d.ts +8 -0
- package/dist/plugin-sdk/channels/plugins/index.d.ts +8 -0
- package/dist/plugin-sdk/channels/plugins/media-limits.d.ts +9 -0
- package/dist/plugin-sdk/channels/plugins/message-action-names.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/message-actions.d.ts +7 -0
- package/dist/plugin-sdk/channels/plugins/normalize/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/imessage.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/slack.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/channel-access.d.ts +31 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/helpers.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/imessage.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/slack.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding-types.d.ts +77 -0
- package/dist/plugin-sdk/channels/plugins/outbound/load.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/pairing-message.d.ts +1 -0
- package/dist/plugin-sdk/channels/plugins/pairing.d.ts +16 -0
- package/dist/plugin-sdk/channels/plugins/setup-helpers.d.ts +13 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/bluebubbles.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/shared.d.ts +10 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/types.adapters.d.ts +294 -0
- package/dist/plugin-sdk/channels/plugins/types.core.d.ts +311 -0
- package/dist/plugin-sdk/channels/plugins/types.d.ts +6 -0
- package/dist/plugin-sdk/channels/plugins/types.plugin.d.ts +53 -0
- package/dist/plugin-sdk/channels/plugins/whatsapp-heartbeat.d.ts +11 -0
- package/dist/plugin-sdk/channels/registry.d.ts +16 -0
- package/dist/plugin-sdk/channels/reply-prefix.d.ts +24 -0
- package/dist/plugin-sdk/channels/sender-label.d.ts +9 -0
- package/dist/plugin-sdk/channels/session.d.ts +18 -0
- package/dist/plugin-sdk/channels/targets.d.ts +25 -0
- package/dist/plugin-sdk/channels/typing.d.ts +12 -0
- package/dist/plugin-sdk/channels/web/index.d.ts +1 -0
- package/dist/plugin-sdk/cli/cli-name.d.ts +3 -0
- package/dist/plugin-sdk/cli/cli-utils.d.ts +18 -0
- package/dist/plugin-sdk/cli/command-format.d.ts +1 -0
- package/dist/plugin-sdk/cli/deps.d.ts +18 -0
- package/dist/plugin-sdk/cli/memory-cli.d.ts +12 -0
- package/dist/plugin-sdk/cli/nodes-camera.d.ts +26 -0
- package/dist/plugin-sdk/cli/nodes-canvas.d.ts +10 -0
- package/dist/plugin-sdk/cli/nodes-run.d.ts +3 -0
- package/dist/plugin-sdk/cli/nodes-screen.d.ts +18 -0
- package/dist/plugin-sdk/cli/parse-duration.d.ts +4 -0
- package/dist/plugin-sdk/cli/parse-timeout.d.ts +1 -0
- package/dist/plugin-sdk/cli/profile-utils.d.ts +2 -0
- package/dist/plugin-sdk/cli/progress.d.ts +24 -0
- package/dist/plugin-sdk/cli/wait.d.ts +1 -0
- package/dist/plugin-sdk/commands/agent/types.d.ts +75 -0
- package/dist/plugin-sdk/commands/daemon-runtime.d.ts +8 -0
- package/dist/plugin-sdk/commands/health.d.ts +63 -0
- package/dist/plugin-sdk/commands/oauth-flow.d.ts +21 -0
- package/dist/plugin-sdk/commands/onboard-helpers.d.ts +81 -0
- package/dist/plugin-sdk/commands/onboard-types.d.ts +67 -0
- package/dist/plugin-sdk/commands/signal-install.d.ts +8 -0
- package/dist/plugin-sdk/compat/legacy-names.d.ts +8 -0
- package/dist/plugin-sdk/config/agent-dirs.d.ts +14 -0
- package/dist/plugin-sdk/config/agent-limits.d.ts +5 -0
- package/dist/plugin-sdk/config/cache-utils.d.ts +6 -0
- package/dist/plugin-sdk/config/channel-capabilities.d.ts +6 -0
- package/dist/plugin-sdk/config/commands.d.ts +16 -0
- package/dist/plugin-sdk/config/config-paths.d.ts +10 -0
- package/dist/plugin-sdk/config/config.d.ts +7 -0
- package/dist/plugin-sdk/config/defaults.d.ts +18 -0
- package/dist/plugin-sdk/config/env-substitution.d.ts +35 -0
- package/dist/plugin-sdk/config/env-vars.d.ts +2 -0
- package/dist/plugin-sdk/config/group-policy.d.ts +44 -0
- package/dist/plugin-sdk/config/includes.d.ts +32 -0
- package/dist/plugin-sdk/config/io.d.ts +36 -0
- package/dist/plugin-sdk/config/legacy-migrate.d.ts +5 -0
- package/dist/plugin-sdk/config/legacy.d.ts +6 -0
- package/dist/plugin-sdk/config/legacy.migrations.d.ts +1 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-1.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-2.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-3.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.rules.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.shared.d.ts +18 -0
- package/dist/plugin-sdk/config/markdown-tables.d.ts +7 -0
- package/dist/plugin-sdk/config/merge-config.d.ts +7 -0
- package/dist/plugin-sdk/config/normalize-paths.d.ts +8 -0
- package/dist/plugin-sdk/config/paths.d.ts +57 -0
- package/dist/plugin-sdk/config/port-defaults.d.ts +13 -0
- package/dist/plugin-sdk/config/runtime-overrides.d.ts +15 -0
- package/dist/plugin-sdk/config/sessions/group.d.ts +11 -0
- package/dist/plugin-sdk/config/sessions/main-session.d.ts +43 -0
- package/dist/plugin-sdk/config/sessions/metadata.d.ts +16 -0
- package/dist/plugin-sdk/config/sessions/paths.d.ts +11 -0
- package/dist/plugin-sdk/config/sessions/reset.d.ts +43 -0
- package/dist/plugin-sdk/config/sessions/session-key.d.ts +8 -0
- package/dist/plugin-sdk/config/sessions/store.d.ts +38 -0
- package/dist/plugin-sdk/config/sessions/transcript.d.ts +18 -0
- package/dist/plugin-sdk/config/sessions/types.d.ts +146 -0
- package/dist/plugin-sdk/config/sessions.d.ts +9 -0
- package/dist/plugin-sdk/config/talk.d.ts +11 -0
- package/dist/plugin-sdk/config/telegram-custom-commands.d.ts +24 -0
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +254 -0
- package/dist/plugin-sdk/config/types.agents.d.ts +77 -0
- package/dist/plugin-sdk/config/types.approvals.d.ts +26 -0
- package/dist/plugin-sdk/config/types.atlas.d.ts +108 -0
- package/dist/plugin-sdk/config/types.auth.d.ts +28 -0
- package/dist/plugin-sdk/config/types.base.d.ts +149 -0
- package/dist/plugin-sdk/config/types.browser.d.ts +41 -0
- package/dist/plugin-sdk/config/types.channels.d.ts +34 -0
- package/dist/plugin-sdk/config/types.cron.d.ts +5 -0
- package/dist/plugin-sdk/config/types.d.ts +29 -0
- package/dist/plugin-sdk/config/types.discord.d.ts +151 -0
- package/dist/plugin-sdk/config/types.gateway.d.ts +224 -0
- package/dist/plugin-sdk/config/types.googlechat.d.ts +100 -0
- package/dist/plugin-sdk/config/types.hooks.d.ts +106 -0
- package/dist/plugin-sdk/config/types.imessage.d.ts +71 -0
- package/dist/plugin-sdk/config/types.memory.d.ts +39 -0
- package/dist/plugin-sdk/config/types.messages.d.ts +106 -0
- package/dist/plugin-sdk/config/types.models.d.ts +47 -0
- package/dist/plugin-sdk/config/types.msteams.d.ts +101 -0
- package/dist/plugin-sdk/config/types.node-host.d.ts +10 -0
- package/dist/plugin-sdk/config/types.plugins.d.ts +32 -0
- package/dist/plugin-sdk/config/types.queue.d.ts +13 -0
- package/dist/plugin-sdk/config/types.sandbox.d.ts +76 -0
- package/dist/plugin-sdk/config/types.signal.d.ts +86 -0
- package/dist/plugin-sdk/config/types.skills.d.ts +28 -0
- package/dist/plugin-sdk/config/types.slack.d.ts +138 -0
- package/dist/plugin-sdk/config/types.telegram.d.ts +160 -0
- package/dist/plugin-sdk/config/types.tools.d.ts +477 -0
- package/dist/plugin-sdk/config/types.tts.d.ts +78 -0
- package/dist/plugin-sdk/config/types.whatsapp.d.ts +157 -0
- package/dist/plugin-sdk/config/validation.d.ts +17 -0
- package/dist/plugin-sdk/config/version.d.ts +8 -0
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +245 -0
- package/dist/plugin-sdk/config/zod-schema.agent-runtime.d.ts +831 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +494 -0
- package/dist/plugin-sdk/config/zod-schema.approvals.d.ts +15 -0
- package/dist/plugin-sdk/config/zod-schema.channels.d.ts +6 -0
- package/dist/plugin-sdk/config/zod-schema.core.d.ts +647 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +3092 -0
- package/dist/plugin-sdk/config/zod-schema.hooks.d.ts +78 -0
- package/dist/plugin-sdk/config/zod-schema.providers-core.d.ts +2761 -0
- package/dist/plugin-sdk/config/zod-schema.providers-whatsapp.d.ts +231 -0
- package/dist/plugin-sdk/config/zod-schema.providers.d.ts +1662 -0
- package/dist/plugin-sdk/config/zod-schema.session.d.ts +183 -0
- package/dist/plugin-sdk/cron/delivery.d.ts +9 -0
- package/dist/plugin-sdk/cron/normalize.d.ts +9 -0
- package/dist/plugin-sdk/cron/parse.d.ts +1 -0
- package/dist/plugin-sdk/cron/payload-migration.d.ts +3 -0
- package/dist/plugin-sdk/cron/schedule.d.ts +2 -0
- package/dist/plugin-sdk/cron/service/jobs.d.ts +13 -0
- package/dist/plugin-sdk/cron/service/locked.d.ts +2 -0
- package/dist/plugin-sdk/cron/service/normalize.d.ts +17 -0
- package/dist/plugin-sdk/cron/service/ops.d.ts +43 -0
- package/dist/plugin-sdk/cron/service/state.d.ts +96 -0
- package/dist/plugin-sdk/cron/service/store.d.ts +9 -0
- package/dist/plugin-sdk/cron/service/timer.d.ts +23 -0
- package/dist/plugin-sdk/cron/service.d.ts +48 -0
- package/dist/plugin-sdk/cron/store.d.ts +6 -0
- package/dist/plugin-sdk/cron/types.d.ts +91 -0
- package/dist/plugin-sdk/daemon/constants.d.ts +30 -0
- package/dist/plugin-sdk/discord/accounts.d.ts +17 -0
- package/dist/plugin-sdk/discord/api.d.ts +11 -0
- package/dist/plugin-sdk/discord/audit.d.ts +29 -0
- package/dist/plugin-sdk/discord/chunk.d.ts +20 -0
- package/dist/plugin-sdk/discord/directory-live.d.ts +4 -0
- package/dist/plugin-sdk/discord/gateway-logging.d.ts +8 -0
- package/dist/plugin-sdk/discord/monitor/allow-list.d.ts +137 -0
- package/dist/plugin-sdk/discord/monitor/exec-approvals.d.ts +70 -0
- package/dist/plugin-sdk/discord/monitor/format.d.ts +13 -0
- package/dist/plugin-sdk/discord/monitor/gateway-registry.d.ts +9 -0
- package/dist/plugin-sdk/discord/monitor/listeners.d.ts +49 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.d.ts +26 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.preflight.d.ts +3 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.preflight.types.d.ts +86 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.process.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/message-utils.d.ts +31 -0
- package/dist/plugin-sdk/discord/monitor/native-command.d.ts +20 -0
- package/dist/plugin-sdk/discord/monitor/presence-cache.d.ts +9 -0
- package/dist/plugin-sdk/discord/monitor/provider.d.ts +13 -0
- package/dist/plugin-sdk/discord/monitor/reply-context.d.ts +13 -0
- package/dist/plugin-sdk/discord/monitor/reply-delivery.d.ts +18 -0
- package/dist/plugin-sdk/discord/monitor/sender-identity.d.ts +31 -0
- package/dist/plugin-sdk/discord/monitor/system-events.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/threading.d.ts +101 -0
- package/dist/plugin-sdk/discord/monitor/typing.d.ts +5 -0
- package/dist/plugin-sdk/discord/monitor.d.ts +10 -0
- package/dist/plugin-sdk/discord/monitor.gateway.d.ts +12 -0
- package/dist/plugin-sdk/discord/pluralkit.d.ts +26 -0
- package/dist/plugin-sdk/discord/probe.d.ts +29 -0
- package/dist/plugin-sdk/discord/resolve-channels.d.ts +15 -0
- package/dist/plugin-sdk/discord/resolve-users.d.ts +14 -0
- package/dist/plugin-sdk/discord/send.channels.d.ts +17 -0
- package/dist/plugin-sdk/discord/send.d.ts +8 -0
- package/dist/plugin-sdk/discord/send.emojis-stickers.d.ts +4 -0
- package/dist/plugin-sdk/discord/send.guild.d.ts +24 -0
- package/dist/plugin-sdk/discord/send.messages.d.ts +18 -0
- package/dist/plugin-sdk/discord/send.outbound.d.ts +22 -0
- package/dist/plugin-sdk/discord/send.permissions.d.ts +4 -0
- package/dist/plugin-sdk/discord/send.reactions.d.ts +15 -0
- package/dist/plugin-sdk/discord/send.shared.d.ts +69 -0
- package/dist/plugin-sdk/discord/send.types.d.ts +130 -0
- package/dist/plugin-sdk/discord/targets.d.ts +18 -0
- package/dist/plugin-sdk/discord/token.d.ts +11 -0
- package/dist/plugin-sdk/documents/document-log.d.ts +18 -0
- package/dist/plugin-sdk/documents/extractor.d.ts +13 -0
- package/dist/plugin-sdk/documents/file-editor.d.ts +72 -0
- package/dist/plugin-sdk/documents/key-fields.d.ts +11 -0
- package/dist/plugin-sdk/gateway/call.d.ts +51 -0
- package/dist/plugin-sdk/gateway/chat-abort.d.ts +44 -0
- package/dist/plugin-sdk/gateway/chat-sanitize.d.ts +3 -0
- package/dist/plugin-sdk/gateway/client.d.ts +61 -0
- package/dist/plugin-sdk/gateway/control-ui-shared.d.ts +9 -0
- package/dist/plugin-sdk/gateway/device-auth.d.ts +12 -0
- package/dist/plugin-sdk/gateway/node-registry.d.ts +60 -0
- package/dist/plugin-sdk/gateway/protocol/client-info.d.ts +58 -0
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +635 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agent.d.ts +72 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agents-models-skills.d.ts +120 -0
- package/dist/plugin-sdk/gateway/protocol/schema/channels.d.ts +105 -0
- package/dist/plugin-sdk/gateway/protocol/schema/config.d.ts +51 -0
- package/dist/plugin-sdk/gateway/protocol/schema/cron.d.ts +348 -0
- package/dist/plugin-sdk/gateway/protocol/schema/devices.d.ts +38 -0
- package/dist/plugin-sdk/gateway/protocol/schema/error-codes.d.ts +14 -0
- package/dist/plugin-sdk/gateway/protocol/schema/exec-approvals.d.ts +162 -0
- package/dist/plugin-sdk/gateway/protocol/schema/frames.d.ts +163 -0
- package/dist/plugin-sdk/gateway/protocol/schema/logs-chat.d.ts +45 -0
- package/dist/plugin-sdk/gateway/protocol/schema/nodes.d.ts +64 -0
- package/dist/plugin-sdk/gateway/protocol/schema/primitives.d.ts +4 -0
- package/dist/plugin-sdk/gateway/protocol/schema/protocol-schemas.d.ts +3 -0
- package/dist/plugin-sdk/gateway/protocol/schema/sessions.d.ts +74 -0
- package/dist/plugin-sdk/gateway/protocol/schema/snapshot.d.ts +63 -0
- package/dist/plugin-sdk/gateway/protocol/schema/types.d.ts +116 -0
- package/dist/plugin-sdk/gateway/protocol/schema/wizard.d.ts +86 -0
- package/dist/plugin-sdk/gateway/protocol/schema.d.ts +16 -0
- package/dist/plugin-sdk/gateway/server/ws-types.d.ts +9 -0
- package/dist/plugin-sdk/gateway/server-channels.d.ts +24 -0
- package/dist/plugin-sdk/gateway/server-methods/types.d.ts +96 -0
- package/dist/plugin-sdk/gateway/server-shared.d.ts +7 -0
- package/dist/plugin-sdk/gateway/session-utils.d.ts +53 -0
- package/dist/plugin-sdk/gateway/session-utils.fs.d.ts +11 -0
- package/dist/plugin-sdk/gateway/session-utils.types.d.ts +83 -0
- package/dist/plugin-sdk/globals.d.ts +11 -0
- package/dist/plugin-sdk/hooks/internal-hooks.d.ts +95 -0
- package/dist/plugin-sdk/hooks/types.d.ts +62 -0
- package/dist/plugin-sdk/imessage/accounts.d.ts +16 -0
- package/dist/plugin-sdk/imessage/client.d.ts +46 -0
- package/dist/plugin-sdk/imessage/constants.d.ts +2 -0
- package/dist/plugin-sdk/imessage/monitor/deliver.d.ts +17 -0
- package/dist/plugin-sdk/imessage/monitor/monitor-provider.d.ts +2 -0
- package/dist/plugin-sdk/imessage/monitor/runtime.d.ts +4 -0
- package/dist/plugin-sdk/imessage/monitor/types.d.ts +37 -0
- package/dist/plugin-sdk/imessage/monitor.d.ts +2 -0
- package/dist/plugin-sdk/imessage/probe.d.ts +18 -0
- package/dist/plugin-sdk/imessage/send.d.ts +18 -0
- package/dist/plugin-sdk/imessage/targets.d.ts +39 -0
- package/dist/plugin-sdk/index.d.ts +1 -0
- package/dist/plugin-sdk/index.js +24585 -0
- package/dist/plugin-sdk/infra/agent-events.d.ts +21 -0
- package/dist/plugin-sdk/infra/atlas-root.d.ts +10 -0
- package/dist/plugin-sdk/infra/backoff.d.ts +8 -0
- package/dist/plugin-sdk/infra/channel-activity.d.ts +18 -0
- package/dist/plugin-sdk/infra/channel-summary.d.ts +7 -0
- package/dist/plugin-sdk/infra/dedupe.d.ts +11 -0
- package/dist/plugin-sdk/infra/device-auth-store.d.ts +23 -0
- package/dist/plugin-sdk/infra/device-identity.d.ts +11 -0
- package/dist/plugin-sdk/infra/diagnostic-events.d.ts +121 -0
- package/dist/plugin-sdk/infra/diagnostic-flags.d.ts +4 -0
- package/dist/plugin-sdk/infra/env.d.ts +11 -0
- package/dist/plugin-sdk/infra/errors.d.ts +3 -0
- package/dist/plugin-sdk/infra/exec-approvals.d.ts +155 -0
- package/dist/plugin-sdk/infra/exec-safety.d.ts +1 -0
- package/dist/plugin-sdk/infra/fetch.d.ts +2 -0
- package/dist/plugin-sdk/infra/format-duration.d.ts +10 -0
- package/dist/plugin-sdk/infra/git-commit.d.ts +4 -0
- package/dist/plugin-sdk/infra/heartbeat-events.d.ts +21 -0
- package/dist/plugin-sdk/infra/heartbeat-runner.d.ts +44 -0
- package/dist/plugin-sdk/infra/heartbeat-visibility.d.ts +17 -0
- package/dist/plugin-sdk/infra/heartbeat-wake.d.ts +20 -0
- package/dist/plugin-sdk/infra/json-file.d.ts +2 -0
- package/dist/plugin-sdk/infra/machine-name.d.ts +1 -0
- package/dist/plugin-sdk/infra/net/fetch-guard.d.ts +20 -0
- package/dist/plugin-sdk/infra/net/ssrf.d.ts +31 -0
- package/dist/plugin-sdk/infra/node-pairing.d.ts +62 -0
- package/dist/plugin-sdk/infra/node-shell.d.ts +1 -0
- package/dist/plugin-sdk/infra/outbound/channel-adapters.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/channel-selection.d.ts +11 -0
- package/dist/plugin-sdk/infra/outbound/channel-target.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/deliver.d.ts +69 -0
- package/dist/plugin-sdk/infra/outbound/directory-cache.d.ts +21 -0
- package/dist/plugin-sdk/infra/outbound/message-action-runner.d.ts +74 -0
- package/dist/plugin-sdk/infra/outbound/message-action-spec.d.ts +5 -0
- package/dist/plugin-sdk/infra/outbound/message.d.ts +76 -0
- package/dist/plugin-sdk/infra/outbound/outbound-policy.d.ts +31 -0
- package/dist/plugin-sdk/infra/outbound/outbound-send-service.d.ts +58 -0
- package/dist/plugin-sdk/infra/outbound/outbound-session.d.ts +31 -0
- package/dist/plugin-sdk/infra/outbound/payloads.d.ts +16 -0
- package/dist/plugin-sdk/infra/outbound/target-errors.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/target-normalization.d.ts +4 -0
- package/dist/plugin-sdk/infra/outbound/target-resolver.d.ts +53 -0
- package/dist/plugin-sdk/infra/outbound/targets.d.ts +65 -0
- package/dist/plugin-sdk/infra/ports-format.d.ts +5 -0
- package/dist/plugin-sdk/infra/ports-inspect.d.ts +2 -0
- package/dist/plugin-sdk/infra/ports-lsof.d.ts +2 -0
- package/dist/plugin-sdk/infra/ports-types.d.ts +17 -0
- package/dist/plugin-sdk/infra/ports.d.ts +14 -0
- package/dist/plugin-sdk/infra/provider-usage.auth.d.ts +11 -0
- package/dist/plugin-sdk/infra/provider-usage.d.ts +4 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.antigravity.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.claude.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.codex.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.copilot.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.d.ts +7 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.gemini.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.minimax.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.shared.d.ts +1 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.zai.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.format.d.ts +13 -0
- package/dist/plugin-sdk/infra/provider-usage.load.d.ts +12 -0
- package/dist/plugin-sdk/infra/provider-usage.shared.d.ts +8 -0
- package/dist/plugin-sdk/infra/provider-usage.types.d.ts +17 -0
- package/dist/plugin-sdk/infra/restart-sentinel.d.ts +50 -0
- package/dist/plugin-sdk/infra/restart.d.ts +28 -0
- package/dist/plugin-sdk/infra/retry-policy.d.ts +25 -0
- package/dist/plugin-sdk/infra/retry.d.ts +21 -0
- package/dist/plugin-sdk/infra/session-cost-usage.d.ts +160 -0
- package/dist/plugin-sdk/infra/shell-env.d.ts +33 -0
- package/dist/plugin-sdk/infra/skills-remote.d.ts +24 -0
- package/dist/plugin-sdk/infra/system-events.d.ts +16 -0
- package/dist/plugin-sdk/infra/tailnet.d.ts +7 -0
- package/dist/plugin-sdk/infra/tls/fingerprint.d.ts +1 -0
- package/dist/plugin-sdk/infra/tls/gateway.d.ts +16 -0
- package/dist/plugin-sdk/infra/transport-ready.d.ts +16 -0
- package/dist/plugin-sdk/infra/unhandled-rejections.d.ts +15 -0
- package/dist/plugin-sdk/infra/warnings.d.ts +1 -0
- package/dist/plugin-sdk/infra/ws.d.ts +2 -0
- package/dist/plugin-sdk/infra/wsl.d.ts +2 -0
- package/dist/plugin-sdk/line/accounts.d.ts +10 -0
- package/dist/plugin-sdk/line/auto-reply-delivery.d.ts +49 -0
- package/dist/plugin-sdk/line/bot-access.d.ts +15 -0
- package/dist/plugin-sdk/line/bot-handlers.d.ts +13 -0
- package/dist/plugin-sdk/line/bot-message-context.d.ts +102 -0
- package/dist/plugin-sdk/line/bot.d.ts +24 -0
- package/dist/plugin-sdk/line/config-schema.d.ts +64 -0
- package/dist/plugin-sdk/line/download.d.ts +7 -0
- package/dist/plugin-sdk/line/flex-templates.d.ts +195 -0
- package/dist/plugin-sdk/line/markdown-to-line.d.ts +72 -0
- package/dist/plugin-sdk/line/monitor.d.ts +28 -0
- package/dist/plugin-sdk/line/probe.d.ts +2 -0
- package/dist/plugin-sdk/line/reply-chunks.d.ts +24 -0
- package/dist/plugin-sdk/line/send.d.ts +118 -0
- package/dist/plugin-sdk/line/signature.d.ts +1 -0
- package/dist/plugin-sdk/line/template-messages.d.ts +119 -0
- package/dist/plugin-sdk/line/types.d.ts +125 -0
- package/dist/plugin-sdk/line/webhook.d.ts +19 -0
- package/dist/plugin-sdk/link-understanding/apply.d.ts +10 -0
- package/dist/plugin-sdk/link-understanding/defaults.d.ts +2 -0
- package/dist/plugin-sdk/link-understanding/detect.d.ts +3 -0
- package/dist/plugin-sdk/link-understanding/format.d.ts +4 -0
- package/dist/plugin-sdk/link-understanding/runner.d.ts +11 -0
- package/dist/plugin-sdk/logger.d.ts +6 -0
- package/dist/plugin-sdk/logging/config.d.ts +4 -0
- package/dist/plugin-sdk/logging/console.d.ts +19 -0
- package/dist/plugin-sdk/logging/diagnostic.d.ts +58 -0
- package/dist/plugin-sdk/logging/levels.d.ts +4 -0
- package/dist/plugin-sdk/logging/logger.d.ts +42 -0
- package/dist/plugin-sdk/logging/redact-identifier.d.ts +4 -0
- package/dist/plugin-sdk/logging/redact.d.ts +9 -0
- package/dist/plugin-sdk/logging/state.d.ts +17 -0
- package/dist/plugin-sdk/logging/subsystem.d.ts +16 -0
- package/dist/plugin-sdk/logging.d.ts +10 -0
- package/dist/plugin-sdk/markdown/code-spans.d.ts +10 -0
- package/dist/plugin-sdk/markdown/fences.d.ts +10 -0
- package/dist/plugin-sdk/markdown/frontmatter.d.ts +2 -0
- package/dist/plugin-sdk/markdown/ir.d.ts +32 -0
- package/dist/plugin-sdk/markdown/render.d.ts +18 -0
- package/dist/plugin-sdk/markdown/tables.d.ts +2 -0
- package/dist/plugin-sdk/media/audio-tags.d.ts +10 -0
- package/dist/plugin-sdk/media/audio.d.ts +4 -0
- package/dist/plugin-sdk/media/constants.d.ts +7 -0
- package/dist/plugin-sdk/media/fetch.d.ts +23 -0
- package/dist/plugin-sdk/media/image-ops.d.ts +39 -0
- package/dist/plugin-sdk/media/input-files.d.ts +76 -0
- package/dist/plugin-sdk/media/mime.d.ts +15 -0
- package/dist/plugin-sdk/media/parse.d.ts +8 -0
- package/dist/plugin-sdk/media/store.d.ts +18 -0
- package/dist/plugin-sdk/media-understanding/apply.d.ts +19 -0
- package/dist/plugin-sdk/media-understanding/attachments.d.ts +43 -0
- package/dist/plugin-sdk/media-understanding/concurrency.d.ts +1 -0
- package/dist/plugin-sdk/media-understanding/defaults.d.ts +10 -0
- package/dist/plugin-sdk/media-understanding/errors.d.ts +6 -0
- package/dist/plugin-sdk/media-understanding/format.d.ts +7 -0
- package/dist/plugin-sdk/media-understanding/providers/anthropic/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/deepgram/audio.d.ts +4 -0
- package/dist/plugin-sdk/media-understanding/providers/deepgram/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/google/audio.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/google/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/google/video.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/groq/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/image.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/index.d.ts +4 -0
- package/dist/plugin-sdk/media-understanding/providers/minimax/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/openai/audio.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/openai/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/shared.d.ts +10 -0
- package/dist/plugin-sdk/media-understanding/resolve.d.ts +44 -0
- package/dist/plugin-sdk/media-understanding/runner.d.ts +34 -0
- package/dist/plugin-sdk/media-understanding/scope.d.ts +9 -0
- package/dist/plugin-sdk/media-understanding/types.d.ts +92 -0
- package/dist/plugin-sdk/media-understanding/video.d.ts +2 -0
- package/dist/plugin-sdk/memory/backend-config.d.ts +44 -0
- package/dist/plugin-sdk/memory/batch-gemini.d.ts +55 -0
- package/dist/plugin-sdk/memory/batch-openai.d.ts +45 -0
- package/dist/plugin-sdk/memory/batch-voyage.d.ts +46 -0
- package/dist/plugin-sdk/memory/embeddings-gemini.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings-openai.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings-voyage.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings.d.ts +39 -0
- package/dist/plugin-sdk/memory/hybrid.d.ts +34 -0
- package/dist/plugin-sdk/memory/index.d.ts +3 -0
- package/dist/plugin-sdk/memory/internal.d.ts +27 -0
- package/dist/plugin-sdk/memory/manager-search.d.ts +60 -0
- package/dist/plugin-sdk/memory/manager.d.ts +136 -0
- package/dist/plugin-sdk/memory/memory-schema.d.ts +10 -0
- package/dist/plugin-sdk/memory/node-llama.d.ts +8 -0
- package/dist/plugin-sdk/memory/qmd-manager.d.ts +78 -0
- package/dist/plugin-sdk/memory/search-manager.d.ts +10 -0
- package/dist/plugin-sdk/memory/session-files.d.ts +12 -0
- package/dist/plugin-sdk/memory/sqlite-vec.d.ts +9 -0
- package/dist/plugin-sdk/memory/sqlite.d.ts +1 -0
- package/dist/plugin-sdk/memory/types.d.ts +94 -0
- package/dist/plugin-sdk/pairing/pairing-labels.d.ts +2 -0
- package/dist/plugin-sdk/pairing/pairing-messages.d.ts +6 -0
- package/dist/plugin-sdk/pairing/pairing-store.d.ts +46 -0
- package/dist/plugin-sdk/pi-model-discovery-BKdHZoFR.js +37 -0
- package/dist/plugin-sdk/plugin-sdk/index.d.ts +100 -0
- package/dist/plugin-sdk/plugins/bundled-dir.d.ts +1 -0
- package/dist/plugin-sdk/plugins/commands.d.ts +78 -0
- package/dist/plugin-sdk/plugins/config-schema.d.ts +2 -0
- package/dist/plugin-sdk/plugins/config-state.d.ts +33 -0
- package/dist/plugin-sdk/plugins/discovery.d.ts +22 -0
- package/dist/plugin-sdk/plugins/hook-runner-global.d.ts +31 -0
- package/dist/plugin-sdk/plugins/hooks.d.ts +41 -0
- package/dist/plugin-sdk/plugins/http-path.d.ts +1 -0
- package/dist/plugin-sdk/plugins/http-registry.d.ts +13 -0
- package/dist/plugin-sdk/plugins/loader.d.ts +14 -0
- package/dist/plugin-sdk/plugins/manifest-registry.d.ts +33 -0
- package/dist/plugin-sdk/plugins/manifest.d.ts +64 -0
- package/dist/plugin-sdk/plugins/registry.d.ts +130 -0
- package/dist/plugin-sdk/plugins/runtime/index.d.ts +3 -0
- package/dist/plugin-sdk/plugins/runtime/native-deps.d.ts +8 -0
- package/dist/plugin-sdk/plugins/runtime/types.d.ts +314 -0
- package/dist/plugin-sdk/plugins/runtime.d.ts +5 -0
- package/dist/plugin-sdk/plugins/schema-validator.d.ts +10 -0
- package/dist/plugin-sdk/plugins/slots.d.ts +24 -0
- package/dist/plugin-sdk/plugins/tools.d.ts +13 -0
- package/dist/plugin-sdk/plugins/types.d.ts +381 -0
- package/dist/plugin-sdk/polls.d.ts +21 -0
- package/dist/plugin-sdk/process/command-queue.d.ts +12 -0
- package/dist/plugin-sdk/process/exec.d.ts +22 -0
- package/dist/plugin-sdk/process/lanes.d.ts +6 -0
- package/dist/plugin-sdk/process/spawn-utils.d.ts +26 -0
- package/dist/plugin-sdk/providers/github-copilot-token.d.ts +19 -0
- package/dist/plugin-sdk/providers/qwen-portal-oauth.d.ts +2 -0
- package/dist/plugin-sdk/routing/bindings.d.ts +11 -0
- package/dist/plugin-sdk/routing/resolve-route.d.ts +38 -0
- package/dist/plugin-sdk/routing/session-key.d.ts +47 -0
- package/dist/plugin-sdk/runtime.d.ts +6 -0
- package/dist/plugin-sdk/security/channel-metadata.d.ts +6 -0
- package/dist/plugin-sdk/security/external-content.d.ts +67 -0
- package/dist/plugin-sdk/sessions/level-overrides.d.ts +10 -0
- package/dist/plugin-sdk/sessions/model-overrides.d.ts +14 -0
- package/dist/plugin-sdk/sessions/send-policy.d.ts +11 -0
- package/dist/plugin-sdk/sessions/session-key-utils.d.ts +8 -0
- package/dist/plugin-sdk/sessions/session-label.d.ts +9 -0
- package/dist/plugin-sdk/sessions/transcript-events.d.ts +7 -0
- package/dist/plugin-sdk/shared/text/reasoning-tags.d.ts +6 -0
- package/dist/plugin-sdk/signal/accounts.d.ts +17 -0
- package/dist/plugin-sdk/signal/client.d.ts +32 -0
- package/dist/plugin-sdk/signal/daemon.d.ts +18 -0
- package/dist/plugin-sdk/signal/format.d.ts +17 -0
- package/dist/plugin-sdk/signal/identity.d.ts +23 -0
- package/dist/plugin-sdk/signal/index.d.ts +5 -0
- package/dist/plugin-sdk/signal/monitor/event-handler.d.ts +5 -0
- package/dist/plugin-sdk/signal/monitor/event-handler.types.d.ts +117 -0
- package/dist/plugin-sdk/signal/monitor.d.ts +23 -0
- package/dist/plugin-sdk/signal/probe.d.ts +8 -0
- package/dist/plugin-sdk/signal/reaction-level.d.ts +24 -0
- package/dist/plugin-sdk/signal/send-reactions.d.ts +32 -0
- package/dist/plugin-sdk/signal/send.d.ts +24 -0
- package/dist/plugin-sdk/signal/sse-reconnect.d.ts +13 -0
- package/dist/plugin-sdk/slack/accounts.d.ts +32 -0
- package/dist/plugin-sdk/slack/actions.d.ts +53 -0
- package/dist/plugin-sdk/slack/channel-migration.d.ts +20 -0
- package/dist/plugin-sdk/slack/client.d.ts +4 -0
- package/dist/plugin-sdk/slack/directory-live.d.ts +4 -0
- package/dist/plugin-sdk/slack/format.d.ts +7 -0
- package/dist/plugin-sdk/slack/http/index.d.ts +1 -0
- package/dist/plugin-sdk/slack/http/registry.d.ts +12 -0
- package/dist/plugin-sdk/slack/index.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/allow-list.d.ts +20 -0
- package/dist/plugin-sdk/slack/monitor/auth.d.ts +10 -0
- package/dist/plugin-sdk/slack/monitor/channel-config.d.ts +40 -0
- package/dist/plugin-sdk/slack/monitor/commands.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/context.d.ts +109 -0
- package/dist/plugin-sdk/slack/monitor/events/channels.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/members.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/messages.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/events/pins.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/reactions.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events.d.ts +8 -0
- package/dist/plugin-sdk/slack/monitor/media.d.ts +29 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/dispatch.d.ts +2 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/prepare.d.ts +13 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/types.d.ts +22 -0
- package/dist/plugin-sdk/slack/monitor/message-handler.d.ts +11 -0
- package/dist/plugin-sdk/slack/monitor/policy.d.ts +5 -0
- package/dist/plugin-sdk/slack/monitor/provider.d.ts +2 -0
- package/dist/plugin-sdk/slack/monitor/replies.d.ts +50 -0
- package/dist/plugin-sdk/slack/monitor/slash.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/thread-resolution.d.ts +12 -0
- package/dist/plugin-sdk/slack/monitor/types.d.ts +97 -0
- package/dist/plugin-sdk/slack/monitor.d.ts +5 -0
- package/dist/plugin-sdk/slack/probe.d.ts +15 -0
- package/dist/plugin-sdk/slack/resolve-channels.d.ts +19 -0
- package/dist/plugin-sdk/slack/resolve-users.d.ts +26 -0
- package/dist/plugin-sdk/slack/send.d.ts +14 -0
- package/dist/plugin-sdk/slack/targets.d.ts +7 -0
- package/dist/plugin-sdk/slack/threading-tool-context.d.ts +10 -0
- package/dist/plugin-sdk/slack/threading.d.ts +20 -0
- package/dist/plugin-sdk/slack/token.d.ts +3 -0
- package/dist/plugin-sdk/slack/types.d.ts +36 -0
- package/dist/plugin-sdk/telegram/accounts.d.ts +17 -0
- package/dist/plugin-sdk/telegram/allowed-updates.d.ts +4 -0
- package/dist/plugin-sdk/telegram/api-logging.d.ts +11 -0
- package/dist/plugin-sdk/telegram/audit.d.ts +29 -0
- package/dist/plugin-sdk/telegram/bot/delivery.d.ts +34 -0
- package/dist/plugin-sdk/telegram/bot/helpers.d.ts +93 -0
- package/dist/plugin-sdk/telegram/bot/types.d.ts +28 -0
- package/dist/plugin-sdk/telegram/bot-access.d.ts +24 -0
- package/dist/plugin-sdk/telegram/bot-handlers.d.ts +2 -0
- package/dist/plugin-sdk/telegram/bot-message-context.d.ts +130 -0
- package/dist/plugin-sdk/telegram/bot-message-dispatch.d.ts +21 -0
- package/dist/plugin-sdk/telegram/bot-message.d.ts +21 -0
- package/dist/plugin-sdk/telegram/bot-native-commands.d.ts +59 -0
- package/dist/plugin-sdk/telegram/bot-updates.d.ts +27 -0
- package/dist/plugin-sdk/telegram/bot.d.ts +54 -0
- package/dist/plugin-sdk/telegram/caption.d.ts +5 -0
- package/dist/plugin-sdk/telegram/draft-chunking.d.ts +6 -0
- package/dist/plugin-sdk/telegram/draft-stream.d.ts +17 -0
- package/dist/plugin-sdk/telegram/fetch.d.ts +4 -0
- package/dist/plugin-sdk/telegram/format.d.ts +16 -0
- package/dist/plugin-sdk/telegram/group-migration.d.ts +20 -0
- package/dist/plugin-sdk/telegram/inline-buttons.d.ts +11 -0
- package/dist/plugin-sdk/telegram/model-buttons.d.ts +63 -0
- package/dist/plugin-sdk/telegram/monitor.d.ts +18 -0
- package/dist/plugin-sdk/telegram/network-config.d.ts +12 -0
- package/dist/plugin-sdk/telegram/network-errors.d.ts +5 -0
- package/dist/plugin-sdk/telegram/probe.d.ts +18 -0
- package/dist/plugin-sdk/telegram/proxy.d.ts +1 -0
- package/dist/plugin-sdk/telegram/reaction-level.d.ts +18 -0
- package/dist/plugin-sdk/telegram/send.d.ts +96 -0
- package/dist/plugin-sdk/telegram/sent-message-cache.d.ts +16 -0
- package/dist/plugin-sdk/telegram/sticker-cache.d.ts +46 -0
- package/dist/plugin-sdk/telegram/targets.d.ts +14 -0
- package/dist/plugin-sdk/telegram/token.d.ts +13 -0
- package/dist/plugin-sdk/telegram/update-offset-store.d.ts +9 -0
- package/dist/plugin-sdk/telegram/voice.d.ts +20 -0
- package/dist/plugin-sdk/telegram/webhook.d.ts +20 -0
- package/dist/plugin-sdk/terminal/ansi.d.ts +2 -0
- package/dist/plugin-sdk/terminal/links.d.ts +6 -0
- package/dist/plugin-sdk/terminal/palette.d.ts +10 -0
- package/dist/plugin-sdk/terminal/progress-line.d.ts +3 -0
- package/dist/plugin-sdk/terminal/prompt-style.d.ts +3 -0
- package/dist/plugin-sdk/terminal/restore.d.ts +1 -0
- package/dist/plugin-sdk/terminal/theme.d.ts +15 -0
- package/dist/plugin-sdk/tts/tts.d.ts +198 -0
- package/dist/plugin-sdk/tui/tui-formatters.d.ts +31 -0
- package/dist/plugin-sdk/utils/account-id.d.ts +1 -0
- package/dist/plugin-sdk/utils/boolean.d.ts +5 -0
- package/dist/plugin-sdk/utils/delivery-context.d.ts +29 -0
- package/dist/plugin-sdk/utils/directive-tags.d.ts +16 -0
- package/dist/plugin-sdk/utils/message-channel.d.ts +27 -0
- package/dist/plugin-sdk/utils/provider-utils.d.ts +9 -0
- package/dist/plugin-sdk/utils/queue-helpers.d.ts +41 -0
- package/dist/plugin-sdk/utils/shell-argv.d.ts +1 -0
- package/dist/plugin-sdk/utils/transcript-tools.d.ts +8 -0
- package/dist/plugin-sdk/utils/usage-format.d.ts +26 -0
- package/dist/plugin-sdk/utils.d.ts +43 -0
- package/dist/plugin-sdk/version.d.ts +4 -0
- package/dist/plugin-sdk/web/accounts.d.ts +39 -0
- package/dist/plugin-sdk/web/active-listener.d.ts +24 -0
- package/dist/plugin-sdk/web/auth-store.d.ts +25 -0
- package/dist/plugin-sdk/web/auto-reply/constants.d.ts +1 -0
- package/dist/plugin-sdk/web/auto-reply/deliver-reply.d.ts +18 -0
- package/dist/plugin-sdk/web/auto-reply/heartbeat-runner.d.ts +20 -0
- package/dist/plugin-sdk/web/auto-reply/loggers.d.ts +4 -0
- package/dist/plugin-sdk/web/auto-reply/mentions.d.ts +19 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/ack-reaction.d.ts +13 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/broadcast.d.ts +16 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/commands.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/echo.d.ts +17 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-activation.d.ts +9 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-gating.d.ts +29 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-members.d.ts +6 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/last-route.d.ts +15 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/message-line.d.ts +11 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/on-message.d.ts +24 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/peer.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/process-message.d.ts +40 -0
- package/dist/plugin-sdk/web/auto-reply/monitor.d.ts +5 -0
- package/dist/plugin-sdk/web/auto-reply/session-snapshot.d.ts +17 -0
- package/dist/plugin-sdk/web/auto-reply/types.d.ts +28 -0
- package/dist/plugin-sdk/web/auto-reply/util.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply.d.ts +1 -0
- package/dist/plugin-sdk/web/auto-reply.impl.d.ts +6 -0
- package/dist/plugin-sdk/web/inbound/access-control.d.ts +24 -0
- package/dist/plugin-sdk/web/inbound/dedupe.d.ts +2 -0
- package/dist/plugin-sdk/web/inbound/extract.d.ts +13 -0
- package/dist/plugin-sdk/web/inbound/media.d.ts +6 -0
- package/dist/plugin-sdk/web/inbound/monitor.d.ts +30 -0
- package/dist/plugin-sdk/web/inbound/send-api.d.ts +22 -0
- package/dist/plugin-sdk/web/inbound/types.d.ts +40 -0
- package/dist/plugin-sdk/web/inbound.d.ts +4 -0
- package/dist/plugin-sdk/web/login-qr.d.ts +19 -0
- package/dist/plugin-sdk/web/login.d.ts +3 -0
- package/dist/plugin-sdk/web/media.d.ts +25 -0
- package/dist/plugin-sdk/web/outbound.d.ts +23 -0
- package/dist/plugin-sdk/web/qr-image.d.ts +4 -0
- package/dist/plugin-sdk/web/reconnect.d.ts +12 -0
- package/dist/plugin-sdk/web/session.d.ts +14 -0
- package/dist/plugin-sdk/web/vcard.d.ts +6 -0
- package/dist/plugin-sdk/whatsapp/normalize.d.ts +6 -0
- package/dist/plugin-sdk/wizard/prompts.d.ts +42 -0
- package/dist/plugin-sdk/wizard/session.d.ts +42 -0
- package/dist/plugins-CK_wLC2r.js +495 -0
- package/dist/plugins-DSznjxmW.js +496 -0
- package/dist/plugins-cli-BmjLl7Cd.js +441 -0
- package/dist/plugins-cli-D9QNFbou.js +444 -0
- package/dist/ports-BiqbeCmv.js +96 -0
- package/dist/program-DId0vhaP.js +191 -0
- package/dist/progress-Da1ehW-x.js +133 -0
- package/dist/progress-Dt7sIoYI.js +133 -0
- package/dist/prompt-style-DRiVu2Qi.js +9 -0
- package/dist/prompt-style-Dc0C5HC9.js +9 -0
- package/dist/prompts-CXLLIBwP.js +10 -0
- package/dist/prompts-FbZThK8w.js +10 -0
- package/dist/pw-ai-B2s3PF-5.js +1649 -0
- package/dist/pw-ai-BH1WNBfo.js +1649 -0
- package/dist/pw-ai-DzC4QEcy.js +1651 -0
- package/dist/qmd-manager-BYeATj9H.js +617 -0
- package/dist/qmd-manager-CP6WOZee.js +615 -0
- package/dist/qmd-manager-DBylkq-O.js +618 -0
- package/dist/redact-B8YiFlwn.js +97 -0
- package/dist/redact-BIMJ3ntQ.js +94 -0
- package/dist/redact-DJCFY628.js +97 -0
- package/dist/register.subclis-h-lG6x5M.js +348 -0
- package/dist/reply-BQIY73Cp.js +66257 -0
- package/dist/rolldown-runtime-Cbj13DAv.js +20 -0
- package/dist/routes-5IglAVwZ.js +2410 -0
- package/dist/routes-NYlqzYFF.js +2410 -0
- package/dist/rpc-B3CddYuS.js +95 -0
- package/dist/rpc-DRfHHhH_.js +95 -0
- package/dist/run-main-CR3Giw5f.js +194 -0
- package/dist/sandbox-C6Az-1Fp.js +2945 -0
- package/dist/sandbox-VThHZ3Io.js +2944 -0
- package/dist/sandbox-cli-Bh7RS4EG.js +463 -0
- package/dist/sandbox-cli-DcifF-r8.js +460 -0
- package/dist/security-cli-BnKsSbcE.js +508 -0
- package/dist/security-cli-vvOe7Qcs.js +505 -0
- package/dist/server-context-B69ff6gq.js +740 -0
- package/dist/server-context-D-t-yRD6.js +740 -0
- package/dist/server-node-events-BT3emtUC.js +216 -0
- package/dist/server-node-events-UI4hiEIP.js +219 -0
- package/dist/service-BbblpUT5.js +680 -0
- package/dist/service-CYGfiAk2.js +680 -0
- package/dist/service-audit-CzKtNPb1.js +542 -0
- package/dist/service-audit-D4kVQ6jb.js +542 -0
- package/dist/session-cost-usage-C9bgCj2T.js +692 -0
- package/dist/session-cost-usage-DMWtcNjU.js +692 -0
- package/dist/session-key-Dk6vSAOv.js +183 -0
- package/dist/session-key-ezJ78bLC.js +183 -0
- package/dist/shared-BsJRU_sz.js +74 -0
- package/dist/shared-CNGm66Fx.js +74 -0
- package/dist/shared-DveRmOGn.js +150 -0
- package/dist/shared-JRNT7BtY.js +150 -0
- package/dist/skill-scanner-BoGjHXUZ.js +255 -0
- package/dist/skill-scanner-Bp1D9gra.js +255 -0
- package/dist/skills-DQK2ES0C.js +1163 -0
- package/dist/skills-cli-BqioQX95.js +290 -0
- package/dist/skills-cli-DCHeTofx.js +287 -0
- package/dist/skills-kM758c46.js +1164 -0
- package/dist/skills-status-BAchqVPC.js +187 -0
- package/dist/skills-status-CwN0cYYM.js +187 -0
- package/dist/sqlite-B-AYr9M_.js +239 -0
- package/dist/sqlite-DODNHWJb.js +221 -0
- package/dist/sqlite-bgADxnjM.js +239 -0
- package/dist/status-CLnFDZ0P.js +3177 -0
- package/dist/status-CRIEi8Mc.js +21 -0
- package/dist/status-CZfTuv4-.js +27 -0
- package/dist/status-VGh-G-xY.js +27 -0
- package/dist/status-tCu4RWZH.js +21 -0
- package/dist/subsystem-1-F6BAP-.js +834 -0
- package/dist/system-cli-CMP-tiCD.js +80 -0
- package/dist/system-cli-DIxhGFML.js +83 -0
- package/dist/systemd-CZB6clek.js +438 -0
- package/dist/systemd-DD8I7Soi.js +438 -0
- package/dist/systemd-hints-DJT0NgJe.js +19 -0
- package/dist/systemd-hints-kufV4gRh.js +19 -0
- package/dist/systemd-linger-BWRVs7kt.js +75 -0
- package/dist/systemd-linger-BfYGJJmy.js +75 -0
- package/dist/table-C9J8xCsv.js +279 -0
- package/dist/table-DBNjIT3r.js +279 -0
- package/dist/tailnet-Byp3obcc.js +42 -0
- package/dist/tailnet-DLDGNuH2.js +42 -0
- package/dist/tailscale-9MusRvOi.js +225 -0
- package/dist/tailscale-He1MuXiT.js +252 -0
- package/dist/tool-display-DDoVBYci.js +795 -0
- package/dist/tool-display-DFNshYEl.js +795 -0
- package/dist/transcript-events-CZ8CG4ht.js +17 -0
- package/dist/transcript-events-ChU6IQwp.js +17 -0
- package/dist/transcript-events-JLH5W4He.js +17 -0
- package/dist/tui-2fdbEHPX.js +2671 -0
- package/dist/tui-cli-Bqmv8mRp.js +55 -0
- package/dist/tui-cli-COxv8x_5.js +58 -0
- package/dist/tui-sZ_d1-Qt.js +2672 -0
- package/dist/update-CWO51A3N.js +317 -0
- package/dist/update-DoYnQeHo.js +317 -0
- package/dist/update-cli-Bjvc3Fis.js +1036 -0
- package/dist/update-cli-BqFpAE13.js +1034 -0
- package/dist/update-runner-BOArPXbA.js +1458 -0
- package/dist/update-runner-BfODZHQY.js +1458 -0
- package/dist/usage-format-DvowRSs-.js +36 -0
- package/dist/usage-format-E3bMcUMV.js +36 -0
- package/dist/utils-BcIVMaVq.js +192 -0
- package/dist/utils-C1qSQAOk.js +188 -0
- package/dist/webhooks-cli-BgpTUeM3.js +312 -0
- package/dist/webhooks-cli-DVvvhSqu.js +309 -0
- package/dist/widearea-dns-CvO8xXPV.js +127 -0
- package/dist/widearea-dns-DP9Nk9OR.js +127 -0
- package/dist/ws-CEcdsnN9.js +13 -0
- package/dist/ws-D091yo4M.js +13 -0
- package/dist/ws-log-CPCss-ho.js +267 -0
- package/dist/ws-log-Dv6iRbCu.js +267 -0
- package/dist/wsl-DNY0CRR9.js +160 -0
- package/extensions/bluebubbles/README.md +45 -0
- package/extensions/bluebubbles/atlas.plugin.json +9 -0
- package/extensions/bluebubbles/index.ts +19 -0
- package/extensions/bluebubbles/node_modules/.bin/atlas +22 -0
- package/extensions/bluebubbles/package.json +36 -0
- package/extensions/bluebubbles/src/accounts.ts +88 -0
- package/extensions/bluebubbles/src/actions.test.ts +650 -0
- package/extensions/bluebubbles/src/actions.ts +438 -0
- package/extensions/bluebubbles/src/attachments.test.ts +345 -0
- package/extensions/bluebubbles/src/attachments.ts +302 -0
- package/extensions/bluebubbles/src/channel.ts +414 -0
- package/extensions/bluebubbles/src/chat.test.ts +461 -0
- package/extensions/bluebubbles/src/chat.ts +382 -0
- package/extensions/bluebubbles/src/config-schema.ts +51 -0
- package/extensions/bluebubbles/src/media-send.ts +174 -0
- package/extensions/bluebubbles/src/monitor.test.ts +2384 -0
- package/extensions/bluebubbles/src/monitor.ts +2517 -0
- package/extensions/bluebubbles/src/onboarding.ts +352 -0
- package/extensions/bluebubbles/src/probe.ts +144 -0
- package/extensions/bluebubbles/src/reactions.test.ts +392 -0
- package/extensions/bluebubbles/src/reactions.ts +188 -0
- package/extensions/bluebubbles/src/runtime.ts +14 -0
- package/extensions/bluebubbles/src/send.test.ts +889 -0
- package/extensions/bluebubbles/src/send.ts +474 -0
- package/extensions/bluebubbles/src/targets.test.ts +183 -0
- package/extensions/bluebubbles/src/targets.ts +422 -0
- package/extensions/bluebubbles/src/types.ts +127 -0
- package/extensions/copilot-proxy/README.md +24 -0
- package/extensions/copilot-proxy/atlas.plugin.json +9 -0
- package/extensions/copilot-proxy/index.ts +149 -0
- package/extensions/copilot-proxy/node_modules/.bin/atlas +22 -0
- package/extensions/copilot-proxy/package.json +14 -0
- package/extensions/diagnostics-otel/atlas.plugin.json +8 -0
- package/extensions/diagnostics-otel/index.ts +15 -0
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +22 -0
- package/extensions/diagnostics-otel/node_modules/.bin/atlas +22 -0
- package/extensions/diagnostics-otel/package.json +27 -0
- package/extensions/diagnostics-otel/src/service.test.ts +226 -0
- package/extensions/diagnostics-otel/src/service.ts +635 -0
- package/extensions/discord/atlas.plugin.json +9 -0
- package/extensions/discord/index.ts +17 -0
- package/extensions/discord/node_modules/.bin/atlas +22 -0
- package/extensions/discord/package.json +14 -0
- package/extensions/discord/src/channel.ts +422 -0
- package/extensions/discord/src/runtime.ts +14 -0
- package/extensions/feishu/atlas.plugin.json +10 -0
- package/extensions/feishu/index.ts +63 -0
- package/extensions/feishu/node_modules/.bin/atlas +22 -0
- package/extensions/feishu/package.json +37 -0
- package/extensions/feishu/skills/feishu-doc/SKILL.md +105 -0
- package/extensions/feishu/skills/feishu-doc/references/block-types.md +103 -0
- package/extensions/feishu/skills/feishu-drive/SKILL.md +97 -0
- package/extensions/feishu/skills/feishu-perm/SKILL.md +119 -0
- package/extensions/feishu/skills/feishu-wiki/SKILL.md +111 -0
- package/extensions/feishu/src/accounts.ts +144 -0
- package/extensions/feishu/src/bitable.ts +459 -0
- package/extensions/feishu/src/bot.ts +871 -0
- package/extensions/feishu/src/channel.ts +341 -0
- package/extensions/feishu/src/client.ts +118 -0
- package/extensions/feishu/src/config-schema.ts +172 -0
- package/extensions/feishu/src/directory.ts +177 -0
- package/extensions/feishu/src/doc-schema.ts +47 -0
- package/extensions/feishu/src/docx.ts +521 -0
- package/extensions/feishu/src/drive-schema.ts +46 -0
- package/extensions/feishu/src/drive.ts +227 -0
- package/extensions/feishu/src/media.ts +527 -0
- package/extensions/feishu/src/mention.ts +126 -0
- package/extensions/feishu/src/monitor.ts +190 -0
- package/extensions/feishu/src/onboarding.ts +356 -0
- package/extensions/feishu/src/outbound.ts +40 -0
- package/extensions/feishu/src/perm-schema.ts +52 -0
- package/extensions/feishu/src/perm.ts +173 -0
- package/extensions/feishu/src/policy.ts +104 -0
- package/extensions/feishu/src/probe.ts +44 -0
- package/extensions/feishu/src/reactions.ts +160 -0
- package/extensions/feishu/src/reply-dispatcher.ts +184 -0
- package/extensions/feishu/src/runtime.ts +14 -0
- package/extensions/feishu/src/send.ts +358 -0
- package/extensions/feishu/src/targets.ts +78 -0
- package/extensions/feishu/src/tools-config.ts +21 -0
- package/extensions/feishu/src/types.ts +75 -0
- package/extensions/feishu/src/typing.ts +80 -0
- package/extensions/feishu/src/wiki-schema.ts +55 -0
- package/extensions/feishu/src/wiki.ts +232 -0
- package/extensions/google-antigravity-auth/README.md +24 -0
- package/extensions/google-antigravity-auth/atlas.plugin.json +9 -0
- package/extensions/google-antigravity-auth/index.ts +458 -0
- package/extensions/google-antigravity-auth/node_modules/.bin/atlas +22 -0
- package/extensions/google-antigravity-auth/package.json +14 -0
- package/extensions/google-gemini-cli-auth/README.md +35 -0
- package/extensions/google-gemini-cli-auth/atlas.plugin.json +9 -0
- package/extensions/google-gemini-cli-auth/index.ts +88 -0
- package/extensions/google-gemini-cli-auth/node_modules/.bin/atlas +22 -0
- package/extensions/google-gemini-cli-auth/oauth.test.ts +240 -0
- package/extensions/google-gemini-cli-auth/oauth.ts +662 -0
- package/extensions/google-gemini-cli-auth/package.json +14 -0
- package/extensions/googlechat/atlas.plugin.json +9 -0
- package/extensions/googlechat/index.ts +19 -0
- package/extensions/googlechat/node_modules/.bin/atlas +22 -0
- package/extensions/googlechat/package.json +39 -0
- package/extensions/googlechat/src/accounts.ts +147 -0
- package/extensions/googlechat/src/actions.ts +181 -0
- package/extensions/googlechat/src/api.test.ts +61 -0
- package/extensions/googlechat/src/api.ts +282 -0
- package/extensions/googlechat/src/auth.ts +137 -0
- package/extensions/googlechat/src/channel.ts +583 -0
- package/extensions/googlechat/src/monitor.test.ts +22 -0
- package/extensions/googlechat/src/monitor.ts +960 -0
- package/extensions/googlechat/src/onboarding.ts +269 -0
- package/extensions/googlechat/src/runtime.ts +14 -0
- package/extensions/googlechat/src/targets.test.ts +32 -0
- package/extensions/googlechat/src/targets.ts +65 -0
- package/extensions/googlechat/src/types.config.ts +3 -0
- package/extensions/googlechat/src/types.ts +73 -0
- package/extensions/imessage/atlas.plugin.json +9 -0
- package/extensions/imessage/index.ts +17 -0
- package/extensions/imessage/node_modules/.bin/atlas +22 -0
- package/extensions/imessage/package.json +14 -0
- package/extensions/imessage/src/channel.ts +294 -0
- package/extensions/imessage/src/runtime.ts +14 -0
- package/extensions/line/atlas.plugin.json +9 -0
- package/extensions/line/index.ts +19 -0
- package/extensions/line/node_modules/.bin/atlas +22 -0
- package/extensions/line/package.json +29 -0
- package/extensions/line/src/card-command.ts +344 -0
- package/extensions/line/src/channel.logout.test.ts +99 -0
- package/extensions/line/src/channel.sendPayload.test.ts +306 -0
- package/extensions/line/src/channel.ts +780 -0
- package/extensions/line/src/runtime.ts +14 -0
- package/extensions/llm-task/README.md +97 -0
- package/extensions/llm-task/atlas.plugin.json +21 -0
- package/extensions/llm-task/index.ts +6 -0
- package/extensions/llm-task/node_modules/.bin/atlas +22 -0
- package/extensions/llm-task/package.json +14 -0
- package/extensions/llm-task/src/llm-task-tool.test.ts +138 -0
- package/extensions/llm-task/src/llm-task-tool.ts +245 -0
- package/extensions/lobster/README.md +75 -0
- package/extensions/lobster/SKILL.md +97 -0
- package/extensions/lobster/atlas.plugin.json +10 -0
- package/extensions/lobster/index.ts +14 -0
- package/extensions/lobster/node_modules/.bin/atlas +22 -0
- package/extensions/lobster/package.json +14 -0
- package/extensions/lobster/src/lobster-tool.test.ts +247 -0
- package/extensions/lobster/src/lobster-tool.ts +328 -0
- package/extensions/matrix/CHANGELOG.md +111 -0
- package/extensions/matrix/atlas.plugin.json +9 -0
- package/extensions/matrix/index.ts +17 -0
- package/extensions/matrix/node_modules/.bin/atlas +22 -0
- package/extensions/matrix/node_modules/.bin/markdown-it +22 -0
- package/extensions/matrix/package.json +36 -0
- package/extensions/matrix/src/actions.ts +195 -0
- package/extensions/matrix/src/channel.directory.test.ts +64 -0
- package/extensions/matrix/src/channel.ts +439 -0
- package/extensions/matrix/src/config-schema.ts +63 -0
- package/extensions/matrix/src/directory-live.ts +188 -0
- package/extensions/matrix/src/group-mentions.ts +66 -0
- package/extensions/matrix/src/matrix/accounts.test.ts +82 -0
- package/extensions/matrix/src/matrix/accounts.ts +65 -0
- package/extensions/matrix/src/matrix/actions/client.ts +57 -0
- package/extensions/matrix/src/matrix/actions/messages.ts +128 -0
- package/extensions/matrix/src/matrix/actions/pins.ts +76 -0
- package/extensions/matrix/src/matrix/actions/reactions.ts +96 -0
- package/extensions/matrix/src/matrix/actions/room.ts +85 -0
- package/extensions/matrix/src/matrix/actions/summary.ts +75 -0
- package/extensions/matrix/src/matrix/actions/types.ts +84 -0
- package/extensions/matrix/src/matrix/actions.ts +15 -0
- package/extensions/matrix/src/matrix/active-client.ts +11 -0
- package/extensions/matrix/src/matrix/client/config.ts +160 -0
- package/extensions/matrix/src/matrix/client/create-client.ts +123 -0
- package/extensions/matrix/src/matrix/client/logging.ts +36 -0
- package/extensions/matrix/src/matrix/client/runtime.ts +4 -0
- package/extensions/matrix/src/matrix/client/shared.ts +170 -0
- package/extensions/matrix/src/matrix/client/storage.ts +131 -0
- package/extensions/matrix/src/matrix/client/types.ts +34 -0
- package/extensions/matrix/src/matrix/client.test.ts +56 -0
- package/extensions/matrix/src/matrix/client.ts +5 -0
- package/extensions/matrix/src/matrix/credentials.ts +105 -0
- package/extensions/matrix/src/matrix/deps.ts +60 -0
- package/extensions/matrix/src/matrix/format.test.ts +33 -0
- package/extensions/matrix/src/matrix/format.ts +22 -0
- package/extensions/matrix/src/matrix/index.ts +11 -0
- package/extensions/matrix/src/matrix/monitor/allowlist.test.ts +45 -0
- package/extensions/matrix/src/matrix/monitor/allowlist.ts +103 -0
- package/extensions/matrix/src/matrix/monitor/auto-join.ts +71 -0
- package/extensions/matrix/src/matrix/monitor/direct.ts +104 -0
- package/extensions/matrix/src/matrix/monitor/events.ts +101 -0
- package/extensions/matrix/src/matrix/monitor/handler.ts +665 -0
- package/extensions/matrix/src/matrix/monitor/index.ts +338 -0
- package/extensions/matrix/src/matrix/monitor/location.ts +100 -0
- package/extensions/matrix/src/matrix/monitor/media.test.ts +102 -0
- package/extensions/matrix/src/matrix/monitor/media.ts +113 -0
- package/extensions/matrix/src/matrix/monitor/mentions.ts +31 -0
- package/extensions/matrix/src/matrix/monitor/replies.ts +97 -0
- package/extensions/matrix/src/matrix/monitor/room-info.ts +55 -0
- package/extensions/matrix/src/matrix/monitor/rooms.test.ts +39 -0
- package/extensions/matrix/src/matrix/monitor/rooms.ts +47 -0
- package/extensions/matrix/src/matrix/monitor/threads.ts +68 -0
- package/extensions/matrix/src/matrix/monitor/types.ts +39 -0
- package/extensions/matrix/src/matrix/poll-types.test.ts +21 -0
- package/extensions/matrix/src/matrix/poll-types.ts +166 -0
- package/extensions/matrix/src/matrix/probe.ts +70 -0
- package/extensions/matrix/src/matrix/send/client.ts +66 -0
- package/extensions/matrix/src/matrix/send/formatting.ts +89 -0
- package/extensions/matrix/src/matrix/send/media.ts +229 -0
- package/extensions/matrix/src/matrix/send/targets.test.ts +98 -0
- package/extensions/matrix/src/matrix/send/targets.ts +147 -0
- package/extensions/matrix/src/matrix/send/types.ts +109 -0
- package/extensions/matrix/src/matrix/send.test.ts +171 -0
- package/extensions/matrix/src/matrix/send.ts +260 -0
- package/extensions/matrix/src/onboarding.ts +449 -0
- package/extensions/matrix/src/outbound.ts +52 -0
- package/extensions/matrix/src/resolve-targets.test.ts +48 -0
- package/extensions/matrix/src/resolve-targets.ts +135 -0
- package/extensions/matrix/src/runtime.ts +14 -0
- package/extensions/matrix/src/tool-actions.ts +164 -0
- package/extensions/matrix/src/types.ts +97 -0
- package/extensions/mattermost/atlas.plugin.json +9 -0
- package/extensions/mattermost/index.ts +17 -0
- package/extensions/mattermost/node_modules/.bin/atlas +22 -0
- package/extensions/mattermost/package.json +28 -0
- package/extensions/mattermost/src/channel.test.ts +72 -0
- package/extensions/mattermost/src/channel.ts +337 -0
- package/extensions/mattermost/src/config-schema.ts +56 -0
- package/extensions/mattermost/src/group-mentions.ts +15 -0
- package/extensions/mattermost/src/mattermost/accounts.ts +128 -0
- package/extensions/mattermost/src/mattermost/client.ts +220 -0
- package/extensions/mattermost/src/mattermost/index.ts +9 -0
- package/extensions/mattermost/src/mattermost/monitor-helpers.ts +166 -0
- package/extensions/mattermost/src/mattermost/monitor.ts +991 -0
- package/extensions/mattermost/src/mattermost/probe.ts +74 -0
- package/extensions/mattermost/src/mattermost/send.ts +231 -0
- package/extensions/mattermost/src/normalize.ts +46 -0
- package/extensions/mattermost/src/onboarding-helpers.ts +44 -0
- package/extensions/mattermost/src/onboarding.ts +186 -0
- package/extensions/mattermost/src/runtime.ts +14 -0
- package/extensions/mattermost/src/types.ts +52 -0
- package/extensions/memory-core/atlas.plugin.json +9 -0
- package/extensions/memory-core/index.ts +38 -0
- package/extensions/memory-core/node_modules/.bin/atlas +22 -0
- package/extensions/memory-core/package.json +17 -0
- package/extensions/memory-lancedb/atlas.plugin.json +60 -0
- package/extensions/memory-lancedb/config.ts +139 -0
- package/extensions/memory-lancedb/index.test.ts +295 -0
- package/extensions/memory-lancedb/index.ts +622 -0
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +22 -0
- package/extensions/memory-lancedb/node_modules/.bin/atlas +22 -0
- package/extensions/memory-lancedb/node_modules/.bin/openai +22 -0
- package/extensions/memory-lancedb/package.json +19 -0
- package/extensions/minimax-portal-auth/README.md +33 -0
- package/extensions/minimax-portal-auth/atlas.plugin.json +9 -0
- package/extensions/minimax-portal-auth/index.ts +155 -0
- package/extensions/minimax-portal-auth/node_modules/.bin/atlas +22 -0
- package/extensions/minimax-portal-auth/oauth.ts +247 -0
- package/extensions/minimax-portal-auth/package.json +14 -0
- package/extensions/msteams/CHANGELOG.md +107 -0
- package/extensions/msteams/atlas.plugin.json +9 -0
- package/extensions/msteams/index.ts +17 -0
- package/extensions/msteams/node_modules/.bin/atlas +22 -0
- package/extensions/msteams/package.json +39 -0
- package/extensions/msteams/src/attachments/download.ts +283 -0
- package/extensions/msteams/src/attachments/graph.ts +353 -0
- package/extensions/msteams/src/attachments/html.ts +90 -0
- package/extensions/msteams/src/attachments/payload.ts +22 -0
- package/extensions/msteams/src/attachments/shared.ts +291 -0
- package/extensions/msteams/src/attachments/types.ts +37 -0
- package/extensions/msteams/src/attachments.test.ts +459 -0
- package/extensions/msteams/src/attachments.ts +18 -0
- package/extensions/msteams/src/channel.directory.test.ts +48 -0
- package/extensions/msteams/src/channel.ts +459 -0
- package/extensions/msteams/src/conversation-store-fs.test.ts +88 -0
- package/extensions/msteams/src/conversation-store-fs.ts +165 -0
- package/extensions/msteams/src/conversation-store-memory.ts +47 -0
- package/extensions/msteams/src/conversation-store.ts +41 -0
- package/extensions/msteams/src/directory-live.ts +205 -0
- package/extensions/msteams/src/errors.test.ts +45 -0
- package/extensions/msteams/src/errors.ts +190 -0
- package/extensions/msteams/src/file-consent-helpers.test.ts +243 -0
- package/extensions/msteams/src/file-consent-helpers.ts +73 -0
- package/extensions/msteams/src/file-consent.ts +126 -0
- package/extensions/msteams/src/graph-chat.ts +53 -0
- package/extensions/msteams/src/graph-upload.ts +453 -0
- package/extensions/msteams/src/inbound.test.ts +66 -0
- package/extensions/msteams/src/inbound.ts +48 -0
- package/extensions/msteams/src/index.ts +4 -0
- package/extensions/msteams/src/media-helpers.test.ts +189 -0
- package/extensions/msteams/src/media-helpers.ts +86 -0
- package/extensions/msteams/src/messenger.test.ts +248 -0
- package/extensions/msteams/src/messenger.ts +495 -0
- package/extensions/msteams/src/monitor-handler/inbound-media.ts +128 -0
- package/extensions/msteams/src/monitor-handler/message-handler.ts +641 -0
- package/extensions/msteams/src/monitor-handler.ts +162 -0
- package/extensions/msteams/src/monitor-types.ts +5 -0
- package/extensions/msteams/src/monitor.ts +295 -0
- package/extensions/msteams/src/onboarding.ts +431 -0
- package/extensions/msteams/src/outbound.ts +46 -0
- package/extensions/msteams/src/pending-uploads.ts +89 -0
- package/extensions/msteams/src/policy.test.ts +209 -0
- package/extensions/msteams/src/policy.ts +273 -0
- package/extensions/msteams/src/polls-store-memory.ts +32 -0
- package/extensions/msteams/src/polls-store.test.ts +38 -0
- package/extensions/msteams/src/polls.test.ts +72 -0
- package/extensions/msteams/src/polls.ts +315 -0
- package/extensions/msteams/src/probe.test.ts +58 -0
- package/extensions/msteams/src/probe.ts +107 -0
- package/extensions/msteams/src/reply-dispatcher.ts +132 -0
- package/extensions/msteams/src/resolve-allowlist.ts +297 -0
- package/extensions/msteams/src/runtime.ts +14 -0
- package/extensions/msteams/src/sdk-types.ts +19 -0
- package/extensions/msteams/src/sdk.ts +33 -0
- package/extensions/msteams/src/send-context.ts +164 -0
- package/extensions/msteams/src/send.ts +519 -0
- package/extensions/msteams/src/sent-message-cache.test.ts +15 -0
- package/extensions/msteams/src/sent-message-cache.ts +47 -0
- package/extensions/msteams/src/storage.ts +25 -0
- package/extensions/msteams/src/store-fs.ts +83 -0
- package/extensions/msteams/src/token.ts +19 -0
- package/extensions/nextcloud-talk/atlas.plugin.json +9 -0
- package/extensions/nextcloud-talk/index.ts +17 -0
- package/extensions/nextcloud-talk/node_modules/.bin/atlas +22 -0
- package/extensions/nextcloud-talk/package.json +33 -0
- package/extensions/nextcloud-talk/src/accounts.ts +174 -0
- package/extensions/nextcloud-talk/src/channel.ts +409 -0
- package/extensions/nextcloud-talk/src/config-schema.ts +79 -0
- package/extensions/nextcloud-talk/src/format.ts +79 -0
- package/extensions/nextcloud-talk/src/inbound.ts +327 -0
- package/extensions/nextcloud-talk/src/monitor.ts +246 -0
- package/extensions/nextcloud-talk/src/normalize.ts +39 -0
- package/extensions/nextcloud-talk/src/onboarding.ts +343 -0
- package/extensions/nextcloud-talk/src/policy.test.ts +33 -0
- package/extensions/nextcloud-talk/src/policy.ts +180 -0
- package/extensions/nextcloud-talk/src/room-info.ts +125 -0
- package/extensions/nextcloud-talk/src/runtime.ts +14 -0
- package/extensions/nextcloud-talk/src/send.ts +215 -0
- package/extensions/nextcloud-talk/src/signature.ts +72 -0
- package/extensions/nextcloud-talk/src/types.ts +181 -0
- package/extensions/nostr/CHANGELOG.md +98 -0
- package/extensions/nostr/README.md +136 -0
- package/extensions/nostr/atlas.plugin.json +9 -0
- package/extensions/nostr/index.ts +68 -0
- package/extensions/nostr/node_modules/.bin/atlas +22 -0
- package/extensions/nostr/node_modules/.bin/tsc +22 -0
- package/extensions/nostr/node_modules/.bin/tsserver +22 -0
- package/extensions/nostr/package.json +34 -0
- package/extensions/nostr/src/channel.test.ts +151 -0
- package/extensions/nostr/src/channel.ts +353 -0
- package/extensions/nostr/src/config-schema.ts +90 -0
- package/extensions/nostr/src/metrics.ts +478 -0
- package/extensions/nostr/src/nostr-bus.fuzz.test.ts +533 -0
- package/extensions/nostr/src/nostr-bus.integration.test.ts +448 -0
- package/extensions/nostr/src/nostr-bus.test.ts +199 -0
- package/extensions/nostr/src/nostr-bus.ts +715 -0
- package/extensions/nostr/src/nostr-profile-http.test.ts +378 -0
- package/extensions/nostr/src/nostr-profile-http.ts +546 -0
- package/extensions/nostr/src/nostr-profile-import.test.ts +119 -0
- package/extensions/nostr/src/nostr-profile-import.ts +262 -0
- package/extensions/nostr/src/nostr-profile.fuzz.test.ts +477 -0
- package/extensions/nostr/src/nostr-profile.test.ts +410 -0
- package/extensions/nostr/src/nostr-profile.ts +277 -0
- package/extensions/nostr/src/nostr-state-store.test.ts +131 -0
- package/extensions/nostr/src/nostr-state-store.ts +226 -0
- package/extensions/nostr/src/runtime.ts +14 -0
- package/extensions/nostr/src/seen-tracker.ts +303 -0
- package/extensions/nostr/src/types.test.ts +157 -0
- package/extensions/nostr/src/types.ts +101 -0
- package/extensions/nostr/test/setup.ts +5 -0
- package/extensions/open-prose/README.md +25 -0
- package/extensions/open-prose/atlas.plugin.json +11 -0
- package/extensions/open-prose/index.ts +5 -0
- package/extensions/open-prose/node_modules/.bin/atlas +22 -0
- package/extensions/open-prose/package.json +14 -0
- package/extensions/open-prose/skills/prose/LICENSE +21 -0
- package/extensions/open-prose/skills/prose/SKILL.md +323 -0
- package/extensions/open-prose/skills/prose/alt-borges.md +141 -0
- package/extensions/open-prose/skills/prose/alts/arabian-nights.md +358 -0
- package/extensions/open-prose/skills/prose/alts/borges.md +360 -0
- package/extensions/open-prose/skills/prose/alts/folk.md +322 -0
- package/extensions/open-prose/skills/prose/alts/homer.md +346 -0
- package/extensions/open-prose/skills/prose/alts/kafka.md +373 -0
- package/extensions/open-prose/skills/prose/compiler.md +2971 -0
- package/extensions/open-prose/skills/prose/examples/01-hello-world.prose +4 -0
- package/extensions/open-prose/skills/prose/examples/02-research-and-summarize.prose +6 -0
- package/extensions/open-prose/skills/prose/examples/03-code-review.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/04-write-and-refine.prose +14 -0
- package/extensions/open-prose/skills/prose/examples/05-debug-issue.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/06-explain-codebase.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/07-refactor.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/08-blog-post.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/09-research-with-agents.prose +25 -0
- package/extensions/open-prose/skills/prose/examples/10-code-review-agents.prose +32 -0
- package/extensions/open-prose/skills/prose/examples/11-skills-and-imports.prose +27 -0
- package/extensions/open-prose/skills/prose/examples/12-secure-agent-permissions.prose +43 -0
- package/extensions/open-prose/skills/prose/examples/13-variables-and-context.prose +51 -0
- package/extensions/open-prose/skills/prose/examples/14-composition-blocks.prose +48 -0
- package/extensions/open-prose/skills/prose/examples/15-inline-sequences.prose +23 -0
- package/extensions/open-prose/skills/prose/examples/16-parallel-reviews.prose +19 -0
- package/extensions/open-prose/skills/prose/examples/17-parallel-research.prose +19 -0
- package/extensions/open-prose/skills/prose/examples/18-mixed-parallel-sequential.prose +36 -0
- package/extensions/open-prose/skills/prose/examples/19-advanced-parallel.prose +71 -0
- package/extensions/open-prose/skills/prose/examples/20-fixed-loops.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/21-pipeline-operations.prose +35 -0
- package/extensions/open-prose/skills/prose/examples/22-error-handling.prose +51 -0
- package/extensions/open-prose/skills/prose/examples/23-retry-with-backoff.prose +63 -0
- package/extensions/open-prose/skills/prose/examples/24-choice-blocks.prose +86 -0
- package/extensions/open-prose/skills/prose/examples/25-conditionals.prose +114 -0
- package/extensions/open-prose/skills/prose/examples/26-parameterized-blocks.prose +100 -0
- package/extensions/open-prose/skills/prose/examples/27-string-interpolation.prose +105 -0
- package/extensions/open-prose/skills/prose/examples/28-automated-pr-review.prose +37 -0
- package/extensions/open-prose/skills/prose/examples/28-gas-town.prose +1572 -0
- package/extensions/open-prose/skills/prose/examples/29-captains-chair.prose +218 -0
- package/extensions/open-prose/skills/prose/examples/30-captains-chair-simple.prose +42 -0
- package/extensions/open-prose/skills/prose/examples/31-captains-chair-with-memory.prose +145 -0
- package/extensions/open-prose/skills/prose/examples/33-pr-review-autofix.prose +168 -0
- package/extensions/open-prose/skills/prose/examples/34-content-pipeline.prose +204 -0
- package/extensions/open-prose/skills/prose/examples/35-feature-factory.prose +296 -0
- package/extensions/open-prose/skills/prose/examples/36-bug-hunter.prose +237 -0
- package/extensions/open-prose/skills/prose/examples/37-the-forge.prose +1474 -0
- package/extensions/open-prose/skills/prose/examples/38-skill-scan.prose +455 -0
- package/extensions/open-prose/skills/prose/examples/39-architect-by-simulation.prose +277 -0
- package/extensions/open-prose/skills/prose/examples/40-rlm-self-refine.prose +32 -0
- package/extensions/open-prose/skills/prose/examples/41-rlm-divide-conquer.prose +38 -0
- package/extensions/open-prose/skills/prose/examples/42-rlm-filter-recurse.prose +46 -0
- package/extensions/open-prose/skills/prose/examples/43-rlm-pairwise.prose +50 -0
- package/extensions/open-prose/skills/prose/examples/44-run-endpoint-ux-test.prose +261 -0
- package/extensions/open-prose/skills/prose/examples/45-plugin-release.prose +159 -0
- package/extensions/open-prose/skills/prose/examples/45-run-endpoint-ux-test-with-remediation.prose +637 -0
- package/extensions/open-prose/skills/prose/examples/46-run-endpoint-ux-test-fast.prose +148 -0
- package/extensions/open-prose/skills/prose/examples/46-workflow-crystallizer.prose +225 -0
- package/extensions/open-prose/skills/prose/examples/47-language-self-improvement.prose +356 -0
- package/extensions/open-prose/skills/prose/examples/48-habit-miner.prose +445 -0
- package/extensions/open-prose/skills/prose/examples/49-prose-run-retrospective.prose +210 -0
- package/extensions/open-prose/skills/prose/examples/README.md +391 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/README.md +22 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/iterative-refinement.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/parallel-review.prose +18 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/simple-pipeline.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/syntax/open-prose-syntax.prose +223 -0
- package/extensions/open-prose/skills/prose/guidance/antipatterns.md +951 -0
- package/extensions/open-prose/skills/prose/guidance/patterns.md +700 -0
- package/extensions/open-prose/skills/prose/guidance/system-prompt.md +180 -0
- package/extensions/open-prose/skills/prose/help.md +144 -0
- package/extensions/open-prose/skills/prose/lib/README.md +108 -0
- package/extensions/open-prose/skills/prose/lib/calibrator.prose +215 -0
- package/extensions/open-prose/skills/prose/lib/cost-analyzer.prose +174 -0
- package/extensions/open-prose/skills/prose/lib/error-forensics.prose +250 -0
- package/extensions/open-prose/skills/prose/lib/inspector.prose +196 -0
- package/extensions/open-prose/skills/prose/lib/profiler.prose +460 -0
- package/extensions/open-prose/skills/prose/lib/program-improver.prose +275 -0
- package/extensions/open-prose/skills/prose/lib/project-memory.prose +118 -0
- package/extensions/open-prose/skills/prose/lib/user-memory.prose +93 -0
- package/extensions/open-prose/skills/prose/lib/vm-improver.prose +243 -0
- package/extensions/open-prose/skills/prose/primitives/session.md +593 -0
- package/extensions/open-prose/skills/prose/prose.md +1237 -0
- package/extensions/open-prose/skills/prose/state/filesystem.md +498 -0
- package/extensions/open-prose/skills/prose/state/in-context.md +384 -0
- package/extensions/open-prose/skills/prose/state/postgres.md +880 -0
- package/extensions/open-prose/skills/prose/state/sqlite.md +574 -0
- package/extensions/qwen-portal-auth/README.md +24 -0
- package/extensions/qwen-portal-auth/atlas.plugin.json +9 -0
- package/extensions/qwen-portal-auth/index.ts +130 -0
- package/extensions/qwen-portal-auth/oauth.ts +190 -0
- package/extensions/signal/atlas.plugin.json +9 -0
- package/extensions/signal/index.ts +17 -0
- package/extensions/signal/node_modules/.bin/atlas +22 -0
- package/extensions/signal/package.json +14 -0
- package/extensions/signal/src/channel.ts +315 -0
- package/extensions/signal/src/runtime.ts +14 -0
- package/extensions/slack/atlas.plugin.json +9 -0
- package/extensions/slack/index.ts +17 -0
- package/extensions/slack/node_modules/.bin/atlas +22 -0
- package/extensions/slack/package.json +14 -0
- package/extensions/slack/src/channel.ts +604 -0
- package/extensions/slack/src/runtime.ts +14 -0
- package/extensions/telegram/atlas.plugin.json +9 -0
- package/extensions/telegram/index.ts +17 -0
- package/extensions/telegram/node_modules/.bin/atlas +22 -0
- package/extensions/telegram/package.json +14 -0
- package/extensions/telegram/src/channel.ts +482 -0
- package/extensions/telegram/src/runtime.ts +14 -0
- package/extensions/tlon/README.md +5 -0
- package/extensions/tlon/atlas.plugin.json +9 -0
- package/extensions/tlon/index.ts +17 -0
- package/extensions/tlon/node_modules/.bin/atlas +22 -0
- package/extensions/tlon/package.json +33 -0
- package/extensions/tlon/src/channel.ts +392 -0
- package/extensions/tlon/src/config-schema.test.ts +31 -0
- package/extensions/tlon/src/config-schema.ts +45 -0
- package/extensions/tlon/src/monitor/discovery.ts +76 -0
- package/extensions/tlon/src/monitor/history.ts +90 -0
- package/extensions/tlon/src/monitor/index.ts +580 -0
- package/extensions/tlon/src/monitor/processed-messages.test.ts +23 -0
- package/extensions/tlon/src/monitor/processed-messages.ts +46 -0
- package/extensions/tlon/src/monitor/utils.ts +106 -0
- package/extensions/tlon/src/onboarding.ts +214 -0
- package/extensions/tlon/src/runtime.ts +14 -0
- package/extensions/tlon/src/targets.ts +89 -0
- package/extensions/tlon/src/types.ts +92 -0
- package/extensions/tlon/src/urbit/auth.ts +18 -0
- package/extensions/tlon/src/urbit/http-api.ts +38 -0
- package/extensions/tlon/src/urbit/send.test.ts +38 -0
- package/extensions/tlon/src/urbit/send.ts +131 -0
- package/extensions/tlon/src/urbit/sse-client.test.ts +40 -0
- package/extensions/tlon/src/urbit/sse-client.ts +395 -0
- package/extensions/twitch/CHANGELOG.md +69 -0
- package/extensions/twitch/README.md +89 -0
- package/extensions/twitch/atlas.plugin.json +9 -0
- package/extensions/twitch/index.ts +20 -0
- package/extensions/twitch/node_modules/.bin/atlas +22 -0
- package/extensions/twitch/package.json +20 -0
- package/extensions/twitch/src/access-control.test.ts +489 -0
- package/extensions/twitch/src/access-control.ts +166 -0
- package/extensions/twitch/src/actions.ts +173 -0
- package/extensions/twitch/src/client-manager-registry.ts +115 -0
- package/extensions/twitch/src/config-schema.ts +84 -0
- package/extensions/twitch/src/config.test.ts +87 -0
- package/extensions/twitch/src/config.ts +116 -0
- package/extensions/twitch/src/monitor.ts +272 -0
- package/extensions/twitch/src/onboarding.test.ts +311 -0
- package/extensions/twitch/src/onboarding.ts +417 -0
- package/extensions/twitch/src/outbound.test.ts +373 -0
- package/extensions/twitch/src/outbound.ts +184 -0
- package/extensions/twitch/src/plugin.test.ts +39 -0
- package/extensions/twitch/src/plugin.ts +274 -0
- package/extensions/twitch/src/probe.test.ts +195 -0
- package/extensions/twitch/src/probe.ts +120 -0
- package/extensions/twitch/src/resolver.ts +137 -0
- package/extensions/twitch/src/runtime.ts +14 -0
- package/extensions/twitch/src/send.test.ts +289 -0
- package/extensions/twitch/src/send.ts +136 -0
- package/extensions/twitch/src/status.test.ts +270 -0
- package/extensions/twitch/src/status.ts +178 -0
- package/extensions/twitch/src/token.test.ts +171 -0
- package/extensions/twitch/src/token.ts +91 -0
- package/extensions/twitch/src/twitch-client.test.ts +589 -0
- package/extensions/twitch/src/twitch-client.ts +277 -0
- package/extensions/twitch/src/types.ts +143 -0
- package/extensions/twitch/src/utils/markdown.ts +98 -0
- package/extensions/twitch/src/utils/twitch.ts +78 -0
- package/extensions/twitch/test/setup.ts +7 -0
- package/extensions/voice-call/CHANGELOG.md +133 -0
- package/extensions/voice-call/README.md +139 -0
- package/extensions/voice-call/atlas.plugin.json +559 -0
- package/extensions/voice-call/index.ts +493 -0
- package/extensions/voice-call/node_modules/.bin/atlas +22 -0
- package/extensions/voice-call/package.json +19 -0
- package/extensions/voice-call/src/allowlist.ts +19 -0
- package/extensions/voice-call/src/cli.ts +279 -0
- package/extensions/voice-call/src/config.test.ts +234 -0
- package/extensions/voice-call/src/config.ts +523 -0
- package/extensions/voice-call/src/core-bridge.ts +159 -0
- package/extensions/voice-call/src/manager/context.ts +21 -0
- package/extensions/voice-call/src/manager/events.ts +188 -0
- package/extensions/voice-call/src/manager/lookup.ts +35 -0
- package/extensions/voice-call/src/manager/outbound.ts +275 -0
- package/extensions/voice-call/src/manager/state.ts +48 -0
- package/extensions/voice-call/src/manager/store.ts +91 -0
- package/extensions/voice-call/src/manager/timers.ts +89 -0
- package/extensions/voice-call/src/manager/twiml.ts +9 -0
- package/extensions/voice-call/src/manager.test.ts +224 -0
- package/extensions/voice-call/src/manager.ts +887 -0
- package/extensions/voice-call/src/media-stream.test.ts +96 -0
- package/extensions/voice-call/src/media-stream.ts +411 -0
- package/extensions/voice-call/src/providers/base.ts +67 -0
- package/extensions/voice-call/src/providers/index.ts +10 -0
- package/extensions/voice-call/src/providers/mock.ts +165 -0
- package/extensions/voice-call/src/providers/plivo.test.ts +27 -0
- package/extensions/voice-call/src/providers/plivo.ts +515 -0
- package/extensions/voice-call/src/providers/stt-openai-realtime.ts +311 -0
- package/extensions/voice-call/src/providers/telnyx.ts +371 -0
- package/extensions/voice-call/src/providers/tts-openai.ts +259 -0
- package/extensions/voice-call/src/providers/twilio/api.ts +42 -0
- package/extensions/voice-call/src/providers/twilio/webhook.ts +32 -0
- package/extensions/voice-call/src/providers/twilio.test.ts +60 -0
- package/extensions/voice-call/src/providers/twilio.ts +626 -0
- package/extensions/voice-call/src/response-generator.ts +158 -0
- package/extensions/voice-call/src/runtime.ts +212 -0
- package/extensions/voice-call/src/telephony-audio.ts +90 -0
- package/extensions/voice-call/src/telephony-tts.ts +104 -0
- package/extensions/voice-call/src/tunnel.ts +314 -0
- package/extensions/voice-call/src/types.ts +272 -0
- package/extensions/voice-call/src/utils.ts +14 -0
- package/extensions/voice-call/src/voice-mapping.ts +67 -0
- package/extensions/voice-call/src/webhook-security.test.ts +377 -0
- package/extensions/voice-call/src/webhook-security.ts +689 -0
- package/extensions/voice-call/src/webhook.ts +516 -0
- package/extensions/whatsapp/atlas.plugin.json +9 -0
- package/extensions/whatsapp/index.ts +17 -0
- package/extensions/whatsapp/node_modules/.bin/atlas +22 -0
- package/extensions/whatsapp/package.json +14 -0
- package/extensions/whatsapp/src/channel.ts +508 -0
- package/extensions/whatsapp/src/runtime.ts +14 -0
- package/extensions/zalo/CHANGELOG.md +113 -0
- package/extensions/zalo/README.md +50 -0
- package/extensions/zalo/atlas.plugin.json +9 -0
- package/extensions/zalo/index.ts +19 -0
- package/extensions/zalo/node_modules/.bin/atlas +22 -0
- package/extensions/zalo/package.json +36 -0
- package/extensions/zalo/src/accounts.ts +80 -0
- package/extensions/zalo/src/actions.ts +67 -0
- package/extensions/zalo/src/api.ts +208 -0
- package/extensions/zalo/src/channel.directory.test.ts +43 -0
- package/extensions/zalo/src/channel.ts +414 -0
- package/extensions/zalo/src/config-schema.ts +25 -0
- package/extensions/zalo/src/monitor.ts +764 -0
- package/extensions/zalo/src/monitor.webhook.test.ts +73 -0
- package/extensions/zalo/src/onboarding.ts +401 -0
- package/extensions/zalo/src/probe.ts +46 -0
- package/extensions/zalo/src/proxy.ts +21 -0
- package/extensions/zalo/src/runtime.ts +14 -0
- package/extensions/zalo/src/send.ts +124 -0
- package/extensions/zalo/src/status-issues.ts +53 -0
- package/extensions/zalo/src/token.ts +63 -0
- package/extensions/zalo/src/types.ts +44 -0
- package/extensions/zalouser/CHANGELOG.md +85 -0
- package/extensions/zalouser/README.md +225 -0
- package/extensions/zalouser/atlas.plugin.json +9 -0
- package/extensions/zalouser/index.ts +31 -0
- package/extensions/zalouser/node_modules/.bin/atlas +22 -0
- package/extensions/zalouser/package.json +36 -0
- package/extensions/zalouser/src/accounts.ts +135 -0
- package/extensions/zalouser/src/channel.test.ts +18 -0
- package/extensions/zalouser/src/channel.ts +686 -0
- package/extensions/zalouser/src/config-schema.ts +28 -0
- package/extensions/zalouser/src/monitor.ts +601 -0
- package/extensions/zalouser/src/onboarding.ts +504 -0
- package/extensions/zalouser/src/probe.ts +28 -0
- package/extensions/zalouser/src/runtime.ts +14 -0
- package/extensions/zalouser/src/send.ts +160 -0
- package/extensions/zalouser/src/status-issues.test.ts +57 -0
- package/extensions/zalouser/src/status-issues.ts +89 -0
- package/extensions/zalouser/src/tool.ts +164 -0
- package/extensions/zalouser/src/types.ts +110 -0
- package/extensions/zalouser/src/zca.ts +202 -0
- package/package.json +225 -0
- package/skills/1password/SKILL.md +70 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/apple-notes/SKILL.md +77 -0
- package/skills/apple-reminders/SKILL.md +96 -0
- package/skills/bear-notes/SKILL.md +107 -0
- package/skills/blogwatcher/SKILL.md +69 -0
- package/skills/blucli/SKILL.md +47 -0
- package/skills/bluebubbles/SKILL.md +131 -0
- package/skills/camsnap/SKILL.md +45 -0
- package/skills/canvas/SKILL.md +198 -0
- package/skills/clawhub/SKILL.md +77 -0
- package/skills/coding-agent/SKILL.md +284 -0
- package/skills/discord/SKILL.md +578 -0
- package/skills/document-processor/SKILL.md +124 -0
- package/skills/eightctl/SKILL.md +50 -0
- package/skills/file-editor/SKILL.md +153 -0
- package/skills/food-order/SKILL.md +48 -0
- package/skills/gemini/SKILL.md +43 -0
- package/skills/gifgrep/SKILL.md +79 -0
- package/skills/github/SKILL.md +77 -0
- package/skills/gog/SKILL.md +116 -0
- package/skills/goplaces/SKILL.md +52 -0
- package/skills/healthcheck/SKILL.md +245 -0
- package/skills/himalaya/SKILL.md +257 -0
- package/skills/himalaya/references/configuration.md +184 -0
- package/skills/himalaya/references/message-composition.md +199 -0
- package/skills/imsg/SKILL.md +74 -0
- package/skills/local-places/SERVER_README.md +101 -0
- package/skills/local-places/SKILL.md +102 -0
- package/skills/local-places/pyproject.toml +21 -0
- package/skills/local-places/src/local_places/__init__.py +2 -0
- package/skills/local-places/src/local_places/google_places.py +314 -0
- package/skills/local-places/src/local_places/main.py +65 -0
- package/skills/local-places/src/local_places/schemas.py +107 -0
- package/skills/mcporter/SKILL.md +61 -0
- package/skills/model-usage/SKILL.md +69 -0
- package/skills/model-usage/references/codexbar-cli.md +33 -0
- package/skills/model-usage/scripts/model_usage.py +310 -0
- package/skills/nano-banana-pro/SKILL.md +58 -0
- package/skills/nano-banana-pro/scripts/generate_image.py +184 -0
- package/skills/nano-pdf/SKILL.md +38 -0
- package/skills/notion/SKILL.md +172 -0
- package/skills/obsidian/SKILL.md +81 -0
- package/skills/openai-image-gen/SKILL.md +89 -0
- package/skills/openai-image-gen/scripts/gen.py +240 -0
- package/skills/openai-whisper/SKILL.md +38 -0
- package/skills/openai-whisper-api/SKILL.md +52 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +85 -0
- package/skills/openhue/SKILL.md +51 -0
- package/skills/oracle/SKILL.md +125 -0
- package/skills/ordercli/SKILL.md +78 -0
- package/skills/peekaboo/SKILL.md +190 -0
- package/skills/sag/SKILL.md +87 -0
- package/skills/session-logs/SKILL.md +115 -0
- package/skills/sherpa-onnx-tts/SKILL.md +103 -0
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
- package/skills/skill-creator/SKILL.md +370 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +111 -0
- package/skills/skill-creator/scripts/quick_validate.py +101 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/songsee/SKILL.md +49 -0
- package/skills/sonoscli/SKILL.md +46 -0
- package/skills/spotify-player/SKILL.md +64 -0
- package/skills/summarize/SKILL.md +87 -0
- package/skills/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +135 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +95 -0
- package/skills/video-frames/SKILL.md +46 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/voice-call/SKILL.md +45 -0
- package/skills/wacli/SKILL.md +72 -0
- package/skills/weather/SKILL.md +54 -0
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
import { a as parseBooleanValue, o as createSubsystemLogger } from "./entry.js";
|
|
2
|
+
import { m as resolveUserPath, t as CONFIG_DIR } from "./utils-C1qSQAOk.js";
|
|
3
|
+
import { n as resolveAtlasPackageRootSync } from "./atlas-root-F1I7aUzD.js";
|
|
4
|
+
import { a as MANIFEST_KEY, c as resolveEnableState, i as LEGACY_MANIFEST_KEYS, l as resolveMemorySlotDecision, s as normalizePluginsConfig, t as loadPluginManifestRegistry } from "./manifest-registry-CxTVtFfj.js";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import JSON5 from "json5";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
import { formatSkillsForPrompt, loadSkillsFromDir } from "@earendil-works/pi-coding-agent";
|
|
10
|
+
import YAML from "yaml";
|
|
11
|
+
|
|
12
|
+
//#region src/markdown/frontmatter.ts
|
|
13
|
+
function stripQuotes(value) {
|
|
14
|
+
if (value.startsWith("\"") && value.endsWith("\"") || value.startsWith("'") && value.endsWith("'")) return value.slice(1, -1);
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
function coerceFrontmatterValue(value) {
|
|
18
|
+
if (value === null || value === void 0) return;
|
|
19
|
+
if (typeof value === "string") return value.trim();
|
|
20
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
21
|
+
if (typeof value === "object") try {
|
|
22
|
+
return JSON.stringify(value);
|
|
23
|
+
} catch {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function parseYamlFrontmatter(block) {
|
|
28
|
+
try {
|
|
29
|
+
const parsed = YAML.parse(block);
|
|
30
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
|
|
31
|
+
const result = {};
|
|
32
|
+
for (const [rawKey, value] of Object.entries(parsed)) {
|
|
33
|
+
const key = rawKey.trim();
|
|
34
|
+
if (!key) continue;
|
|
35
|
+
const coerced = coerceFrontmatterValue(value);
|
|
36
|
+
if (coerced === void 0) continue;
|
|
37
|
+
result[key] = coerced;
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
} catch {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function extractMultiLineValue(lines, startIndex) {
|
|
45
|
+
const match = lines[startIndex].match(/^([\w-]+):\s*(.*)$/);
|
|
46
|
+
if (!match) return {
|
|
47
|
+
value: "",
|
|
48
|
+
linesConsumed: 1
|
|
49
|
+
};
|
|
50
|
+
const inlineValue = match[2].trim();
|
|
51
|
+
if (inlineValue) return {
|
|
52
|
+
value: inlineValue,
|
|
53
|
+
linesConsumed: 1
|
|
54
|
+
};
|
|
55
|
+
const valueLines = [];
|
|
56
|
+
let i = startIndex + 1;
|
|
57
|
+
while (i < lines.length) {
|
|
58
|
+
const line = lines[i];
|
|
59
|
+
if (line.length > 0 && !line.startsWith(" ") && !line.startsWith(" ")) break;
|
|
60
|
+
valueLines.push(line);
|
|
61
|
+
i++;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
value: valueLines.join("\n").trim(),
|
|
65
|
+
linesConsumed: i - startIndex
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function parseLineFrontmatter(block) {
|
|
69
|
+
const frontmatter = {};
|
|
70
|
+
const lines = block.split("\n");
|
|
71
|
+
let i = 0;
|
|
72
|
+
while (i < lines.length) {
|
|
73
|
+
const match = lines[i].match(/^([\w-]+):\s*(.*)$/);
|
|
74
|
+
if (!match) {
|
|
75
|
+
i++;
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
const key = match[1];
|
|
79
|
+
const inlineValue = match[2].trim();
|
|
80
|
+
if (!key) {
|
|
81
|
+
i++;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (!inlineValue && i + 1 < lines.length) {
|
|
85
|
+
const nextLine = lines[i + 1];
|
|
86
|
+
if (nextLine.startsWith(" ") || nextLine.startsWith(" ")) {
|
|
87
|
+
const { value, linesConsumed } = extractMultiLineValue(lines, i);
|
|
88
|
+
if (value) frontmatter[key] = value;
|
|
89
|
+
i += linesConsumed;
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const value = stripQuotes(inlineValue);
|
|
94
|
+
if (value) frontmatter[key] = value;
|
|
95
|
+
i++;
|
|
96
|
+
}
|
|
97
|
+
return frontmatter;
|
|
98
|
+
}
|
|
99
|
+
function parseFrontmatterBlock(content) {
|
|
100
|
+
const normalized = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
101
|
+
if (!normalized.startsWith("---")) return {};
|
|
102
|
+
const endIndex = normalized.indexOf("\n---", 3);
|
|
103
|
+
if (endIndex === -1) return {};
|
|
104
|
+
const block = normalized.slice(4, endIndex);
|
|
105
|
+
const lineParsed = parseLineFrontmatter(block);
|
|
106
|
+
const yamlParsed = parseYamlFrontmatter(block);
|
|
107
|
+
if (yamlParsed === null) return lineParsed;
|
|
108
|
+
const merged = { ...yamlParsed };
|
|
109
|
+
for (const [key, value] of Object.entries(lineParsed)) if (value.startsWith("{") || value.startsWith("[")) merged[key] = value;
|
|
110
|
+
return merged;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/agents/skills/frontmatter.ts
|
|
115
|
+
function parseFrontmatter(content) {
|
|
116
|
+
return parseFrontmatterBlock(content);
|
|
117
|
+
}
|
|
118
|
+
function normalizeStringList(input) {
|
|
119
|
+
if (!input) return [];
|
|
120
|
+
if (Array.isArray(input)) return input.map((value) => String(value).trim()).filter(Boolean);
|
|
121
|
+
if (typeof input === "string") return input.split(",").map((value) => value.trim()).filter(Boolean);
|
|
122
|
+
return [];
|
|
123
|
+
}
|
|
124
|
+
function parseInstallSpec(input) {
|
|
125
|
+
if (!input || typeof input !== "object") return;
|
|
126
|
+
const raw = input;
|
|
127
|
+
const kind = (typeof raw.kind === "string" ? raw.kind : typeof raw.type === "string" ? raw.type : "").trim().toLowerCase();
|
|
128
|
+
if (kind !== "brew" && kind !== "node" && kind !== "go" && kind !== "uv" && kind !== "download") return;
|
|
129
|
+
const spec = { kind };
|
|
130
|
+
if (typeof raw.id === "string") spec.id = raw.id;
|
|
131
|
+
if (typeof raw.label === "string") spec.label = raw.label;
|
|
132
|
+
const bins = normalizeStringList(raw.bins);
|
|
133
|
+
if (bins.length > 0) spec.bins = bins;
|
|
134
|
+
const osList = normalizeStringList(raw.os);
|
|
135
|
+
if (osList.length > 0) spec.os = osList;
|
|
136
|
+
if (typeof raw.formula === "string") spec.formula = raw.formula;
|
|
137
|
+
if (typeof raw.package === "string") spec.package = raw.package;
|
|
138
|
+
if (typeof raw.module === "string") spec.module = raw.module;
|
|
139
|
+
if (typeof raw.url === "string") spec.url = raw.url;
|
|
140
|
+
if (typeof raw.archive === "string") spec.archive = raw.archive;
|
|
141
|
+
if (typeof raw.extract === "boolean") spec.extract = raw.extract;
|
|
142
|
+
if (typeof raw.stripComponents === "number") spec.stripComponents = raw.stripComponents;
|
|
143
|
+
if (typeof raw.targetDir === "string") spec.targetDir = raw.targetDir;
|
|
144
|
+
return spec;
|
|
145
|
+
}
|
|
146
|
+
function getFrontmatterValue(frontmatter, key) {
|
|
147
|
+
const raw = frontmatter[key];
|
|
148
|
+
return typeof raw === "string" ? raw : void 0;
|
|
149
|
+
}
|
|
150
|
+
function parseFrontmatterBool(value, fallback) {
|
|
151
|
+
const parsed = parseBooleanValue(value);
|
|
152
|
+
return parsed === void 0 ? fallback : parsed;
|
|
153
|
+
}
|
|
154
|
+
function resolveAtlasMetadata(frontmatter) {
|
|
155
|
+
const raw = getFrontmatterValue(frontmatter, "metadata");
|
|
156
|
+
if (!raw) return;
|
|
157
|
+
try {
|
|
158
|
+
const parsed = JSON5.parse(raw);
|
|
159
|
+
if (!parsed || typeof parsed !== "object") return;
|
|
160
|
+
const metadataRawCandidates = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
161
|
+
let metadataRaw;
|
|
162
|
+
for (const key of metadataRawCandidates) {
|
|
163
|
+
const candidate = parsed[key];
|
|
164
|
+
if (candidate && typeof candidate === "object") {
|
|
165
|
+
metadataRaw = candidate;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (!metadataRaw || typeof metadataRaw !== "object") return;
|
|
170
|
+
const metadataObj = metadataRaw;
|
|
171
|
+
const requiresRaw = typeof metadataObj.requires === "object" && metadataObj.requires !== null ? metadataObj.requires : void 0;
|
|
172
|
+
const install = (Array.isArray(metadataObj.install) ? metadataObj.install : []).map((entry) => parseInstallSpec(entry)).filter((entry) => Boolean(entry));
|
|
173
|
+
const osRaw = normalizeStringList(metadataObj.os);
|
|
174
|
+
const dependsOnRaw = normalizeStringList(metadataObj.dependsOn);
|
|
175
|
+
const providesRaw = normalizeStringList(metadataObj.provides);
|
|
176
|
+
let exclusive;
|
|
177
|
+
if (typeof metadataObj.exclusive === "boolean") exclusive = metadataObj.exclusive;
|
|
178
|
+
else if (Array.isArray(metadataObj.exclusive)) {
|
|
179
|
+
const exclusiveList = normalizeStringList(metadataObj.exclusive);
|
|
180
|
+
if (exclusiveList.length > 0) exclusive = exclusiveList;
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
always: typeof metadataObj.always === "boolean" ? metadataObj.always : void 0,
|
|
184
|
+
emoji: typeof metadataObj.emoji === "string" ? metadataObj.emoji : void 0,
|
|
185
|
+
homepage: typeof metadataObj.homepage === "string" ? metadataObj.homepage : void 0,
|
|
186
|
+
skillKey: typeof metadataObj.skillKey === "string" ? metadataObj.skillKey : void 0,
|
|
187
|
+
primaryEnv: typeof metadataObj.primaryEnv === "string" ? metadataObj.primaryEnv : void 0,
|
|
188
|
+
os: osRaw.length > 0 ? osRaw : void 0,
|
|
189
|
+
requires: requiresRaw ? {
|
|
190
|
+
bins: normalizeStringList(requiresRaw.bins),
|
|
191
|
+
anyBins: normalizeStringList(requiresRaw.anyBins),
|
|
192
|
+
env: normalizeStringList(requiresRaw.env),
|
|
193
|
+
config: normalizeStringList(requiresRaw.config)
|
|
194
|
+
} : void 0,
|
|
195
|
+
install: install.length > 0 ? install : void 0,
|
|
196
|
+
dependsOn: dependsOnRaw.length > 0 ? dependsOnRaw : void 0,
|
|
197
|
+
provides: providesRaw.length > 0 ? providesRaw : void 0,
|
|
198
|
+
exclusive
|
|
199
|
+
};
|
|
200
|
+
} catch {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function resolveSkillInvocationPolicy(frontmatter) {
|
|
205
|
+
return {
|
|
206
|
+
userInvocable: parseFrontmatterBool(getFrontmatterValue(frontmatter, "user-invocable"), true),
|
|
207
|
+
disableModelInvocation: parseFrontmatterBool(getFrontmatterValue(frontmatter, "disable-model-invocation"), false)
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
function resolveSkillKey(skill, entry) {
|
|
211
|
+
return entry?.metadata?.skillKey ?? skill.name;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/agents/skills/config.ts
|
|
216
|
+
const DEFAULT_CONFIG_VALUES = {
|
|
217
|
+
"browser.enabled": true,
|
|
218
|
+
"browser.evaluateEnabled": true
|
|
219
|
+
};
|
|
220
|
+
function isTruthy(value) {
|
|
221
|
+
if (value === void 0 || value === null) return false;
|
|
222
|
+
if (typeof value === "boolean") return value;
|
|
223
|
+
if (typeof value === "number") return value !== 0;
|
|
224
|
+
if (typeof value === "string") return value.trim().length > 0;
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
function resolveConfigPath(config, pathStr) {
|
|
228
|
+
const parts = pathStr.split(".").filter(Boolean);
|
|
229
|
+
let current = config;
|
|
230
|
+
for (const part of parts) {
|
|
231
|
+
if (typeof current !== "object" || current === null) return;
|
|
232
|
+
current = current[part];
|
|
233
|
+
}
|
|
234
|
+
return current;
|
|
235
|
+
}
|
|
236
|
+
function isConfigPathTruthy(config, pathStr) {
|
|
237
|
+
const value = resolveConfigPath(config, pathStr);
|
|
238
|
+
if (value === void 0 && pathStr in DEFAULT_CONFIG_VALUES) return DEFAULT_CONFIG_VALUES[pathStr];
|
|
239
|
+
return isTruthy(value);
|
|
240
|
+
}
|
|
241
|
+
function resolveSkillConfig(config, skillKey) {
|
|
242
|
+
const skills = config?.skills?.entries;
|
|
243
|
+
if (!skills || typeof skills !== "object") return;
|
|
244
|
+
const entry = skills[skillKey];
|
|
245
|
+
if (!entry || typeof entry !== "object") return;
|
|
246
|
+
return entry;
|
|
247
|
+
}
|
|
248
|
+
function resolveRuntimePlatform() {
|
|
249
|
+
return process.platform;
|
|
250
|
+
}
|
|
251
|
+
function normalizeAllowlist(input) {
|
|
252
|
+
if (!input) return;
|
|
253
|
+
if (!Array.isArray(input)) return;
|
|
254
|
+
const normalized = input.map((entry) => String(entry).trim()).filter(Boolean);
|
|
255
|
+
return normalized.length > 0 ? normalized : void 0;
|
|
256
|
+
}
|
|
257
|
+
const BUNDLED_SOURCES = new Set(["atlas-bundled"]);
|
|
258
|
+
function isBundledSkill(entry) {
|
|
259
|
+
return BUNDLED_SOURCES.has(entry.skill.sourceInfo.source);
|
|
260
|
+
}
|
|
261
|
+
function resolveBundledAllowlist(config) {
|
|
262
|
+
return normalizeAllowlist(config?.skills?.allowBundled);
|
|
263
|
+
}
|
|
264
|
+
function isBundledSkillAllowed(entry, allowlist) {
|
|
265
|
+
if (!allowlist || allowlist.length === 0) return true;
|
|
266
|
+
if (!isBundledSkill(entry)) return true;
|
|
267
|
+
const key = resolveSkillKey(entry.skill, entry);
|
|
268
|
+
return allowlist.includes(key) || allowlist.includes(entry.skill.name);
|
|
269
|
+
}
|
|
270
|
+
function hasBinary(bin) {
|
|
271
|
+
const parts = (process.env.PATH ?? "").split(path.delimiter).filter(Boolean);
|
|
272
|
+
for (const part of parts) {
|
|
273
|
+
const candidate = path.join(part, bin);
|
|
274
|
+
try {
|
|
275
|
+
fs.accessSync(candidate, fs.constants.X_OK);
|
|
276
|
+
return true;
|
|
277
|
+
} catch {}
|
|
278
|
+
}
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
function shouldIncludeSkill(params) {
|
|
282
|
+
const { entry, config, eligibility } = params;
|
|
283
|
+
const skillConfig = resolveSkillConfig(config, resolveSkillKey(entry.skill, entry));
|
|
284
|
+
const allowBundled = normalizeAllowlist(config?.skills?.allowBundled);
|
|
285
|
+
const osList = entry.metadata?.os ?? [];
|
|
286
|
+
const remotePlatforms = eligibility?.remote?.platforms ?? [];
|
|
287
|
+
if (skillConfig?.enabled === false) return false;
|
|
288
|
+
if (!isBundledSkillAllowed(entry, allowBundled)) return false;
|
|
289
|
+
if (osList.length > 0 && !osList.includes(resolveRuntimePlatform()) && !remotePlatforms.some((platform) => osList.includes(platform))) return false;
|
|
290
|
+
if (entry.metadata?.always === true) return true;
|
|
291
|
+
const requiredBins = entry.metadata?.requires?.bins ?? [];
|
|
292
|
+
if (requiredBins.length > 0) for (const bin of requiredBins) {
|
|
293
|
+
if (hasBinary(bin)) continue;
|
|
294
|
+
if (eligibility?.remote?.hasBin?.(bin)) continue;
|
|
295
|
+
return false;
|
|
296
|
+
}
|
|
297
|
+
const requiredAnyBins = entry.metadata?.requires?.anyBins ?? [];
|
|
298
|
+
if (requiredAnyBins.length > 0) {
|
|
299
|
+
if (!(requiredAnyBins.some((bin) => hasBinary(bin)) || eligibility?.remote?.hasAnyBin?.(requiredAnyBins))) return false;
|
|
300
|
+
}
|
|
301
|
+
const requiredEnv = entry.metadata?.requires?.env ?? [];
|
|
302
|
+
if (requiredEnv.length > 0) for (const envName of requiredEnv) {
|
|
303
|
+
if (process.env[envName]) continue;
|
|
304
|
+
if (skillConfig?.env?.[envName]) continue;
|
|
305
|
+
if (skillConfig?.apiKey && entry.metadata?.primaryEnv === envName) continue;
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
const requiredConfig = entry.metadata?.requires?.config ?? [];
|
|
309
|
+
if (requiredConfig.length > 0) {
|
|
310
|
+
for (const configPath of requiredConfig) if (!isConfigPathTruthy(config, configPath)) return false;
|
|
311
|
+
}
|
|
312
|
+
return true;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/agents/skills/env-overrides.ts
|
|
317
|
+
function applySkillEnvOverrides(params) {
|
|
318
|
+
const { skills, config } = params;
|
|
319
|
+
const updates = [];
|
|
320
|
+
for (const entry of skills) {
|
|
321
|
+
const skillConfig = resolveSkillConfig(config, resolveSkillKey(entry.skill, entry));
|
|
322
|
+
if (!skillConfig) continue;
|
|
323
|
+
if (skillConfig.env) for (const [envKey, envValue] of Object.entries(skillConfig.env)) {
|
|
324
|
+
if (!envValue || process.env[envKey]) continue;
|
|
325
|
+
updates.push({
|
|
326
|
+
key: envKey,
|
|
327
|
+
prev: process.env[envKey]
|
|
328
|
+
});
|
|
329
|
+
process.env[envKey] = envValue;
|
|
330
|
+
}
|
|
331
|
+
const primaryEnv = entry.metadata?.primaryEnv;
|
|
332
|
+
if (primaryEnv && skillConfig.apiKey && !process.env[primaryEnv]) {
|
|
333
|
+
updates.push({
|
|
334
|
+
key: primaryEnv,
|
|
335
|
+
prev: process.env[primaryEnv]
|
|
336
|
+
});
|
|
337
|
+
process.env[primaryEnv] = skillConfig.apiKey;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return () => {
|
|
341
|
+
for (const update of updates) if (update.prev === void 0) delete process.env[update.key];
|
|
342
|
+
else process.env[update.key] = update.prev;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
function applySkillEnvOverridesFromSnapshot(params) {
|
|
346
|
+
const { snapshot, config } = params;
|
|
347
|
+
if (!snapshot) return () => {};
|
|
348
|
+
const updates = [];
|
|
349
|
+
for (const skill of snapshot.skills) {
|
|
350
|
+
const skillConfig = resolveSkillConfig(config, skill.name);
|
|
351
|
+
if (!skillConfig) continue;
|
|
352
|
+
if (skillConfig.env) for (const [envKey, envValue] of Object.entries(skillConfig.env)) {
|
|
353
|
+
if (!envValue || process.env[envKey]) continue;
|
|
354
|
+
updates.push({
|
|
355
|
+
key: envKey,
|
|
356
|
+
prev: process.env[envKey]
|
|
357
|
+
});
|
|
358
|
+
process.env[envKey] = envValue;
|
|
359
|
+
}
|
|
360
|
+
if (skill.primaryEnv && skillConfig.apiKey && !process.env[skill.primaryEnv]) {
|
|
361
|
+
updates.push({
|
|
362
|
+
key: skill.primaryEnv,
|
|
363
|
+
prev: process.env[skill.primaryEnv]
|
|
364
|
+
});
|
|
365
|
+
process.env[skill.primaryEnv] = skillConfig.apiKey;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return () => {
|
|
369
|
+
for (const update of updates) if (update.prev === void 0) delete process.env[update.key];
|
|
370
|
+
else process.env[update.key] = update.prev;
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/agents/skills/bundled-dir.ts
|
|
376
|
+
function looksLikeSkillsDir(dir) {
|
|
377
|
+
try {
|
|
378
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
379
|
+
for (const entry of entries) {
|
|
380
|
+
if (entry.name.startsWith(".")) continue;
|
|
381
|
+
const fullPath = path.join(dir, entry.name);
|
|
382
|
+
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
383
|
+
if (entry.isDirectory()) {
|
|
384
|
+
if (fs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
} catch {
|
|
388
|
+
return false;
|
|
389
|
+
}
|
|
390
|
+
return false;
|
|
391
|
+
}
|
|
392
|
+
function resolveBundledSkillsDir(opts = {}) {
|
|
393
|
+
const override = process.env.ATLAS_BUNDLED_SKILLS_DIR?.trim();
|
|
394
|
+
if (override) return override;
|
|
395
|
+
try {
|
|
396
|
+
const execPath = opts.execPath ?? process.execPath;
|
|
397
|
+
const execDir = path.dirname(execPath);
|
|
398
|
+
const sibling = path.join(execDir, "skills");
|
|
399
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
400
|
+
} catch {}
|
|
401
|
+
try {
|
|
402
|
+
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
403
|
+
const moduleDir = path.dirname(fileURLToPath(moduleUrl));
|
|
404
|
+
const packageRoot = resolveAtlasPackageRootSync({
|
|
405
|
+
argv1: opts.argv1 ?? process.argv[1],
|
|
406
|
+
moduleUrl,
|
|
407
|
+
cwd: opts.cwd ?? process.cwd()
|
|
408
|
+
});
|
|
409
|
+
if (packageRoot) {
|
|
410
|
+
const candidate = path.join(packageRoot, "skills");
|
|
411
|
+
if (looksLikeSkillsDir(candidate)) return candidate;
|
|
412
|
+
}
|
|
413
|
+
let current = moduleDir;
|
|
414
|
+
for (let depth = 0; depth < 6; depth += 1) {
|
|
415
|
+
const candidate = path.join(current, "skills");
|
|
416
|
+
if (looksLikeSkillsDir(candidate)) return candidate;
|
|
417
|
+
const next = path.dirname(current);
|
|
418
|
+
if (next === current) break;
|
|
419
|
+
current = next;
|
|
420
|
+
}
|
|
421
|
+
} catch {}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/agents/skills/plugin-skills.ts
|
|
426
|
+
const log$2 = createSubsystemLogger("skills");
|
|
427
|
+
function resolvePluginSkillDirs(params) {
|
|
428
|
+
const workspaceDir = params.workspaceDir.trim();
|
|
429
|
+
if (!workspaceDir) return [];
|
|
430
|
+
const registry = loadPluginManifestRegistry({
|
|
431
|
+
workspaceDir,
|
|
432
|
+
config: params.config
|
|
433
|
+
});
|
|
434
|
+
if (registry.plugins.length === 0) return [];
|
|
435
|
+
const normalizedPlugins = normalizePluginsConfig(params.config?.plugins);
|
|
436
|
+
const memorySlot = normalizedPlugins.slots.memory;
|
|
437
|
+
let selectedMemoryPluginId = null;
|
|
438
|
+
const seen = /* @__PURE__ */ new Set();
|
|
439
|
+
const resolved = [];
|
|
440
|
+
for (const record of registry.plugins) {
|
|
441
|
+
if (!record.skills || record.skills.length === 0) continue;
|
|
442
|
+
if (!resolveEnableState(record.id, record.origin, normalizedPlugins).enabled) continue;
|
|
443
|
+
const memoryDecision = resolveMemorySlotDecision({
|
|
444
|
+
id: record.id,
|
|
445
|
+
kind: record.kind,
|
|
446
|
+
slot: memorySlot,
|
|
447
|
+
selectedId: selectedMemoryPluginId
|
|
448
|
+
});
|
|
449
|
+
if (!memoryDecision.enabled) continue;
|
|
450
|
+
if (memoryDecision.selected && record.kind === "memory") selectedMemoryPluginId = record.id;
|
|
451
|
+
for (const raw of record.skills) {
|
|
452
|
+
const trimmed = raw.trim();
|
|
453
|
+
if (!trimmed) continue;
|
|
454
|
+
const candidate = path.resolve(record.rootDir, trimmed);
|
|
455
|
+
if (!fs.existsSync(candidate)) {
|
|
456
|
+
log$2.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
if (seen.has(candidate)) continue;
|
|
460
|
+
seen.add(candidate);
|
|
461
|
+
resolved.push(candidate);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
return resolved;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/agents/skills/serialize.ts
|
|
469
|
+
const SKILLS_SYNC_QUEUE = /* @__PURE__ */ new Map();
|
|
470
|
+
async function serializeByKey(key, task) {
|
|
471
|
+
const next = (SKILLS_SYNC_QUEUE.get(key) ?? Promise.resolve()).then(task, task);
|
|
472
|
+
SKILLS_SYNC_QUEUE.set(key, next);
|
|
473
|
+
try {
|
|
474
|
+
return await next;
|
|
475
|
+
} finally {
|
|
476
|
+
if (SKILLS_SYNC_QUEUE.get(key) === next) SKILLS_SYNC_QUEUE.delete(key);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/agents/skills/workspace.ts
|
|
482
|
+
const fsp = fs.promises;
|
|
483
|
+
const skillsLogger = createSubsystemLogger("skills");
|
|
484
|
+
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
485
|
+
function debugSkillCommandOnce(messageKey, message, meta) {
|
|
486
|
+
if (skillCommandDebugOnce.has(messageKey)) return;
|
|
487
|
+
skillCommandDebugOnce.add(messageKey);
|
|
488
|
+
skillsLogger.debug(message, meta);
|
|
489
|
+
}
|
|
490
|
+
function filterSkillEntries(entries, config, skillFilter, eligibility) {
|
|
491
|
+
let filtered = entries.filter((entry) => shouldIncludeSkill({
|
|
492
|
+
entry,
|
|
493
|
+
config,
|
|
494
|
+
eligibility
|
|
495
|
+
}));
|
|
496
|
+
if (skillFilter !== void 0) {
|
|
497
|
+
const normalized = skillFilter.map((entry) => String(entry).trim()).filter(Boolean);
|
|
498
|
+
const label = normalized.length > 0 ? normalized.join(", ") : "(none)";
|
|
499
|
+
console.log(`[skills] Applying skill filter: ${label}`);
|
|
500
|
+
filtered = normalized.length > 0 ? filtered.filter((entry) => normalized.includes(entry.skill.name)) : [];
|
|
501
|
+
console.log(`[skills] After filter: ${filtered.map((entry) => entry.skill.name).join(", ")}`);
|
|
502
|
+
}
|
|
503
|
+
return filtered;
|
|
504
|
+
}
|
|
505
|
+
const SKILL_COMMAND_MAX_LENGTH$1 = 32;
|
|
506
|
+
const SKILL_COMMAND_FALLBACK$1 = "skill";
|
|
507
|
+
const SKILL_COMMAND_DESCRIPTION_MAX_LENGTH = 100;
|
|
508
|
+
function sanitizeSkillCommandName(raw) {
|
|
509
|
+
return raw.toLowerCase().replace(/[^a-z0-9_]+/g, "_").replace(/_+/g, "_").replace(/^_+|_+$/g, "").slice(0, SKILL_COMMAND_MAX_LENGTH$1) || SKILL_COMMAND_FALLBACK$1;
|
|
510
|
+
}
|
|
511
|
+
function resolveUniqueSkillCommandName(base, used) {
|
|
512
|
+
const normalizedBase = base.toLowerCase();
|
|
513
|
+
if (!used.has(normalizedBase)) return base;
|
|
514
|
+
for (let index = 2; index < 1e3; index += 1) {
|
|
515
|
+
const suffix = `_${index}`;
|
|
516
|
+
const maxBaseLength = Math.max(1, SKILL_COMMAND_MAX_LENGTH$1 - suffix.length);
|
|
517
|
+
const candidate = `${base.slice(0, maxBaseLength)}${suffix}`;
|
|
518
|
+
const candidateKey = candidate.toLowerCase();
|
|
519
|
+
if (!used.has(candidateKey)) return candidate;
|
|
520
|
+
}
|
|
521
|
+
return `${base.slice(0, Math.max(1, SKILL_COMMAND_MAX_LENGTH$1 - 2))}_x`;
|
|
522
|
+
}
|
|
523
|
+
function loadSkillEntries(workspaceDir, opts) {
|
|
524
|
+
const loadSkills = (params) => {
|
|
525
|
+
const loaded = loadSkillsFromDir(params);
|
|
526
|
+
if (Array.isArray(loaded)) return loaded;
|
|
527
|
+
if (loaded && typeof loaded === "object" && "skills" in loaded && Array.isArray(loaded.skills)) return loaded.skills;
|
|
528
|
+
return [];
|
|
529
|
+
};
|
|
530
|
+
const managedSkillsDir = opts?.managedSkillsDir ?? path.join(CONFIG_DIR, "skills");
|
|
531
|
+
const workspaceSkillsDir = path.join(workspaceDir, "skills");
|
|
532
|
+
const bundledSkillsDir = opts?.bundledSkillsDir ?? resolveBundledSkillsDir();
|
|
533
|
+
const extraDirs = (opts?.config?.skills?.load?.extraDirs ?? []).map((d) => typeof d === "string" ? d.trim() : "").filter(Boolean);
|
|
534
|
+
const pluginSkillDirs = resolvePluginSkillDirs({
|
|
535
|
+
workspaceDir,
|
|
536
|
+
config: opts?.config
|
|
537
|
+
});
|
|
538
|
+
const mergedExtraDirs = [...extraDirs, ...pluginSkillDirs];
|
|
539
|
+
const bundledSkills = bundledSkillsDir ? loadSkills({
|
|
540
|
+
dir: bundledSkillsDir,
|
|
541
|
+
source: "atlas-bundled"
|
|
542
|
+
}) : [];
|
|
543
|
+
const extraSkills = mergedExtraDirs.flatMap((dir) => {
|
|
544
|
+
return loadSkills({
|
|
545
|
+
dir: resolveUserPath(dir),
|
|
546
|
+
source: "atlas-extra"
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
const managedSkills = loadSkills({
|
|
550
|
+
dir: managedSkillsDir,
|
|
551
|
+
source: "atlas-managed"
|
|
552
|
+
});
|
|
553
|
+
const workspaceSkills = loadSkills({
|
|
554
|
+
dir: workspaceSkillsDir,
|
|
555
|
+
source: "atlas-workspace"
|
|
556
|
+
});
|
|
557
|
+
const merged = /* @__PURE__ */ new Map();
|
|
558
|
+
for (const skill of extraSkills) merged.set(skill.name, skill);
|
|
559
|
+
for (const skill of bundledSkills) merged.set(skill.name, skill);
|
|
560
|
+
for (const skill of managedSkills) merged.set(skill.name, skill);
|
|
561
|
+
for (const skill of workspaceSkills) merged.set(skill.name, skill);
|
|
562
|
+
return Array.from(merged.values()).map((skill) => {
|
|
563
|
+
let frontmatter = {};
|
|
564
|
+
try {
|
|
565
|
+
frontmatter = parseFrontmatter(fs.readFileSync(skill.filePath, "utf-8"));
|
|
566
|
+
} catch {}
|
|
567
|
+
return {
|
|
568
|
+
skill,
|
|
569
|
+
frontmatter,
|
|
570
|
+
metadata: resolveAtlasMetadata(frontmatter),
|
|
571
|
+
invocation: resolveSkillInvocationPolicy(frontmatter)
|
|
572
|
+
};
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
function buildWorkspaceSkillSnapshot(workspaceDir, opts) {
|
|
576
|
+
const eligible = filterSkillEntries(opts?.entries ?? loadSkillEntries(workspaceDir, opts), opts?.config, opts?.skillFilter, opts?.eligibility);
|
|
577
|
+
const resolvedSkills = eligible.filter((entry) => entry.invocation?.disableModelInvocation !== true).map((entry) => entry.skill);
|
|
578
|
+
return {
|
|
579
|
+
prompt: [opts?.eligibility?.remote?.note?.trim(), formatSkillsForPrompt(resolvedSkills)].filter(Boolean).join("\n"),
|
|
580
|
+
skills: eligible.map((entry) => ({
|
|
581
|
+
name: entry.skill.name,
|
|
582
|
+
primaryEnv: entry.metadata?.primaryEnv
|
|
583
|
+
})),
|
|
584
|
+
resolvedSkills,
|
|
585
|
+
version: opts?.snapshotVersion
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
function buildWorkspaceSkillsPrompt(workspaceDir, opts) {
|
|
589
|
+
const promptEntries = filterSkillEntries(opts?.entries ?? loadSkillEntries(workspaceDir, opts), opts?.config, opts?.skillFilter, opts?.eligibility).filter((entry) => entry.invocation?.disableModelInvocation !== true);
|
|
590
|
+
return [opts?.eligibility?.remote?.note?.trim(), formatSkillsForPrompt(promptEntries.map((entry) => entry.skill))].filter(Boolean).join("\n");
|
|
591
|
+
}
|
|
592
|
+
function resolveSkillsPromptForRun(params) {
|
|
593
|
+
const snapshotPrompt = params.skillsSnapshot?.prompt?.trim();
|
|
594
|
+
if (snapshotPrompt) return snapshotPrompt;
|
|
595
|
+
if (params.entries && params.entries.length > 0) {
|
|
596
|
+
const prompt = buildWorkspaceSkillsPrompt(params.workspaceDir, {
|
|
597
|
+
entries: params.entries,
|
|
598
|
+
config: params.config
|
|
599
|
+
});
|
|
600
|
+
return prompt.trim() ? prompt : "";
|
|
601
|
+
}
|
|
602
|
+
return "";
|
|
603
|
+
}
|
|
604
|
+
function loadWorkspaceSkillEntries(workspaceDir, opts) {
|
|
605
|
+
return loadSkillEntries(workspaceDir, opts);
|
|
606
|
+
}
|
|
607
|
+
async function syncSkillsToWorkspace(params) {
|
|
608
|
+
const sourceDir = resolveUserPath(params.sourceWorkspaceDir);
|
|
609
|
+
const targetDir = resolveUserPath(params.targetWorkspaceDir);
|
|
610
|
+
if (sourceDir === targetDir) return;
|
|
611
|
+
await serializeByKey(`syncSkills:${targetDir}`, async () => {
|
|
612
|
+
const targetSkillsDir = path.join(targetDir, "skills");
|
|
613
|
+
const entries = loadSkillEntries(sourceDir, {
|
|
614
|
+
config: params.config,
|
|
615
|
+
managedSkillsDir: params.managedSkillsDir,
|
|
616
|
+
bundledSkillsDir: params.bundledSkillsDir
|
|
617
|
+
});
|
|
618
|
+
await fsp.rm(targetSkillsDir, {
|
|
619
|
+
recursive: true,
|
|
620
|
+
force: true
|
|
621
|
+
});
|
|
622
|
+
await fsp.mkdir(targetSkillsDir, { recursive: true });
|
|
623
|
+
for (const entry of entries) {
|
|
624
|
+
const dest = path.join(targetSkillsDir, entry.skill.name);
|
|
625
|
+
try {
|
|
626
|
+
await fsp.cp(entry.skill.baseDir, dest, {
|
|
627
|
+
recursive: true,
|
|
628
|
+
force: true
|
|
629
|
+
});
|
|
630
|
+
} catch (error) {
|
|
631
|
+
const message = error instanceof Error ? error.message : JSON.stringify(error);
|
|
632
|
+
console.warn(`[skills] Failed to copy ${entry.skill.name} to sandbox: ${message}`);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
function buildWorkspaceSkillCommandSpecs(workspaceDir, opts) {
|
|
638
|
+
const userInvocable = filterSkillEntries(opts?.entries ?? loadSkillEntries(workspaceDir, opts), opts?.config, opts?.skillFilter, opts?.eligibility).filter((entry) => entry.invocation?.userInvocable !== false);
|
|
639
|
+
const used = /* @__PURE__ */ new Set();
|
|
640
|
+
for (const reserved of opts?.reservedNames ?? []) used.add(reserved.toLowerCase());
|
|
641
|
+
const specs = [];
|
|
642
|
+
for (const entry of userInvocable) {
|
|
643
|
+
const rawName = entry.skill.name;
|
|
644
|
+
const base = sanitizeSkillCommandName(rawName);
|
|
645
|
+
if (base !== rawName) debugSkillCommandOnce(`sanitize:${rawName}:${base}`, `Sanitized skill command name "${rawName}" to "/${base}".`, {
|
|
646
|
+
rawName,
|
|
647
|
+
sanitized: `/${base}`
|
|
648
|
+
});
|
|
649
|
+
const unique = resolveUniqueSkillCommandName(base, used);
|
|
650
|
+
if (unique !== base) debugSkillCommandOnce(`dedupe:${rawName}:${unique}`, `De-duplicated skill command name for "${rawName}" to "/${unique}".`, {
|
|
651
|
+
rawName,
|
|
652
|
+
deduped: `/${unique}`
|
|
653
|
+
});
|
|
654
|
+
used.add(unique.toLowerCase());
|
|
655
|
+
const rawDescription = entry.skill.description?.trim() || rawName;
|
|
656
|
+
const description = rawDescription.length > SKILL_COMMAND_DESCRIPTION_MAX_LENGTH ? rawDescription.slice(0, SKILL_COMMAND_DESCRIPTION_MAX_LENGTH - 1) + "…" : rawDescription;
|
|
657
|
+
const dispatch = (() => {
|
|
658
|
+
const kindRaw = (entry.frontmatter?.["command-dispatch"] ?? entry.frontmatter?.["command_dispatch"] ?? "").trim().toLowerCase();
|
|
659
|
+
if (!kindRaw) return;
|
|
660
|
+
if (kindRaw !== "tool") return;
|
|
661
|
+
const toolName = (entry.frontmatter?.["command-tool"] ?? entry.frontmatter?.["command_tool"] ?? "").trim();
|
|
662
|
+
if (!toolName) {
|
|
663
|
+
debugSkillCommandOnce(`dispatch:missingTool:${rawName}`, `Skill command "/${unique}" requested tool dispatch but did not provide command-tool. Ignoring dispatch.`, {
|
|
664
|
+
skillName: rawName,
|
|
665
|
+
command: unique
|
|
666
|
+
});
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
const argModeRaw = (entry.frontmatter?.["command-arg-mode"] ?? entry.frontmatter?.["command_arg_mode"] ?? "").trim().toLowerCase();
|
|
670
|
+
if (!(!argModeRaw || argModeRaw === "raw" ? "raw" : null)) debugSkillCommandOnce(`dispatch:badArgMode:${rawName}:${argModeRaw}`, `Skill command "/${unique}" requested tool dispatch but has unknown command-arg-mode. Falling back to raw.`, {
|
|
671
|
+
skillName: rawName,
|
|
672
|
+
command: unique,
|
|
673
|
+
argMode: argModeRaw
|
|
674
|
+
});
|
|
675
|
+
return {
|
|
676
|
+
kind: "tool",
|
|
677
|
+
toolName,
|
|
678
|
+
argMode: "raw"
|
|
679
|
+
};
|
|
680
|
+
})();
|
|
681
|
+
specs.push({
|
|
682
|
+
name: unique,
|
|
683
|
+
skillName: rawName,
|
|
684
|
+
description,
|
|
685
|
+
...dispatch ? { dispatch } : {}
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
return specs;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
//#endregion
|
|
692
|
+
//#region src/agents/skills/dependency-manager.ts
|
|
693
|
+
const log$1 = createSubsystemLogger("skills/deps");
|
|
694
|
+
function resolveInstallId(spec, index) {
|
|
695
|
+
return (spec.id ?? `${spec.kind}-${index}`).trim();
|
|
696
|
+
}
|
|
697
|
+
function buildSkillMap(entries) {
|
|
698
|
+
const map = /* @__PURE__ */ new Map();
|
|
699
|
+
for (const entry of entries) {
|
|
700
|
+
map.set(entry.skill.name, entry);
|
|
701
|
+
const key = resolveSkillKey(entry.skill, entry);
|
|
702
|
+
if (key !== entry.skill.name) map.set(key, entry);
|
|
703
|
+
}
|
|
704
|
+
return map;
|
|
705
|
+
}
|
|
706
|
+
function detectCircularDependencies(entries) {
|
|
707
|
+
const skillMap = buildSkillMap(entries);
|
|
708
|
+
const cycles = [];
|
|
709
|
+
const visited = /* @__PURE__ */ new Set();
|
|
710
|
+
const inStack = /* @__PURE__ */ new Set();
|
|
711
|
+
function dfs(name, stack) {
|
|
712
|
+
if (inStack.has(name)) {
|
|
713
|
+
const cycleStart = stack.indexOf(name);
|
|
714
|
+
if (cycleStart !== -1) cycles.push({ cycle: [...stack.slice(cycleStart), name] });
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
if (visited.has(name)) return;
|
|
718
|
+
visited.add(name);
|
|
719
|
+
inStack.add(name);
|
|
720
|
+
stack.push(name);
|
|
721
|
+
const deps = skillMap.get(name)?.metadata?.dependsOn ?? [];
|
|
722
|
+
for (const dep of deps) dfs(dep, stack);
|
|
723
|
+
stack.pop();
|
|
724
|
+
inStack.delete(name);
|
|
725
|
+
}
|
|
726
|
+
for (const entry of entries) dfs(entry.skill.name, []);
|
|
727
|
+
return cycles;
|
|
728
|
+
}
|
|
729
|
+
function resolveSkillDependencyOrder(entries) {
|
|
730
|
+
const skillMap = buildSkillMap(entries);
|
|
731
|
+
const inDegree = /* @__PURE__ */ new Map();
|
|
732
|
+
const adjacency = /* @__PURE__ */ new Map();
|
|
733
|
+
for (const entry of entries) {
|
|
734
|
+
const name = entry.skill.name;
|
|
735
|
+
if (!inDegree.has(name)) inDegree.set(name, 0);
|
|
736
|
+
if (!adjacency.has(name)) adjacency.set(name, []);
|
|
737
|
+
}
|
|
738
|
+
for (const entry of entries) {
|
|
739
|
+
const name = entry.skill.name;
|
|
740
|
+
const deps = entry.metadata?.dependsOn ?? [];
|
|
741
|
+
for (const dep of deps) {
|
|
742
|
+
if (!skillMap.has(dep)) continue;
|
|
743
|
+
const neighbors = adjacency.get(dep) ?? [];
|
|
744
|
+
neighbors.push(name);
|
|
745
|
+
adjacency.set(dep, neighbors);
|
|
746
|
+
inDegree.set(name, (inDegree.get(name) ?? 0) + 1);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
const queue = [];
|
|
750
|
+
for (const [name, degree] of inDegree.entries()) if (degree === 0) queue.push(name);
|
|
751
|
+
const order = [];
|
|
752
|
+
while (queue.length > 0) {
|
|
753
|
+
const current = queue.shift();
|
|
754
|
+
order.push(current);
|
|
755
|
+
for (const neighbor of adjacency.get(current) ?? []) {
|
|
756
|
+
const newDegree = (inDegree.get(neighbor) ?? 1) - 1;
|
|
757
|
+
inDegree.set(neighbor, newDegree);
|
|
758
|
+
if (newDegree === 0) queue.push(neighbor);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
const remaining = entries.map((e) => e.skill.name).filter((name) => !order.includes(name));
|
|
762
|
+
return [...order, ...remaining];
|
|
763
|
+
}
|
|
764
|
+
function checkSkillDependencies(entry, opts = {}) {
|
|
765
|
+
const { config, availableSkills, remote } = opts;
|
|
766
|
+
const skillName = entry.skill.name;
|
|
767
|
+
const skillConfig = resolveSkillConfig(config, resolveSkillKey(entry.skill, entry));
|
|
768
|
+
const missing = [];
|
|
769
|
+
const requiredBins = entry.metadata?.requires?.bins ?? [];
|
|
770
|
+
for (const bin of requiredBins) if (!(hasBinary(bin) || remote?.hasBin(bin) === true)) missing.push({
|
|
771
|
+
kind: "bin",
|
|
772
|
+
name: bin
|
|
773
|
+
});
|
|
774
|
+
const anyBins = entry.metadata?.requires?.anyBins ?? [];
|
|
775
|
+
if (anyBins.length > 0) {
|
|
776
|
+
if (!(anyBins.some((bin) => hasBinary(bin)) || remote?.hasAnyBin(anyBins) === true)) missing.push({
|
|
777
|
+
kind: "anyBin",
|
|
778
|
+
names: anyBins
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
const requiredEnv = entry.metadata?.requires?.env ?? [];
|
|
782
|
+
for (const envName of requiredEnv) if (!(Boolean(process.env[envName]) || Boolean(skillConfig?.env?.[envName]) || Boolean(skillConfig?.apiKey) && entry.metadata?.primaryEnv === envName)) missing.push({
|
|
783
|
+
kind: "env",
|
|
784
|
+
name: envName
|
|
785
|
+
});
|
|
786
|
+
const requiredConfig = entry.metadata?.requires?.config ?? [];
|
|
787
|
+
for (const configPath of requiredConfig) if (!isConfigPathTruthy(config, configPath)) missing.push({
|
|
788
|
+
kind: "config",
|
|
789
|
+
path: configPath
|
|
790
|
+
});
|
|
791
|
+
const dependsOn = entry.metadata?.dependsOn ?? [];
|
|
792
|
+
for (const depSkillName of dependsOn) if (!(availableSkills?.has(depSkillName) ?? false)) missing.push({
|
|
793
|
+
kind: "skill",
|
|
794
|
+
name: depSkillName
|
|
795
|
+
});
|
|
796
|
+
return {
|
|
797
|
+
skillName,
|
|
798
|
+
missing,
|
|
799
|
+
installable: (entry.metadata?.install ?? []).filter((spec) => {
|
|
800
|
+
if (spec.os && spec.os.length > 0 && !spec.os.includes(process.platform)) return false;
|
|
801
|
+
return true;
|
|
802
|
+
}),
|
|
803
|
+
satisfied: missing.length === 0
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
function resolveSkillInstallPlan(entries, prefs, opts = {}) {
|
|
807
|
+
const order = resolveSkillDependencyOrder(entries);
|
|
808
|
+
const skillByName = buildSkillMap(entries);
|
|
809
|
+
const plan = [];
|
|
810
|
+
const seen = /* @__PURE__ */ new Set();
|
|
811
|
+
for (const skillName of order) {
|
|
812
|
+
const entry = skillByName.get(skillName);
|
|
813
|
+
if (!entry) continue;
|
|
814
|
+
const status = checkSkillDependencies(entry, opts);
|
|
815
|
+
if (status.satisfied) continue;
|
|
816
|
+
if (!status.missing.some((m) => m.kind === "bin" || m.kind === "anyBin")) continue;
|
|
817
|
+
const specs = entry.metadata?.install ?? [];
|
|
818
|
+
for (const [index, spec] of specs.entries()) {
|
|
819
|
+
if (spec.os && spec.os.length > 0 && !spec.os.includes(process.platform)) continue;
|
|
820
|
+
if (spec.kind === "brew" && !prefs.preferBrew && hasBinary("brew")) continue;
|
|
821
|
+
const installId = resolveInstallId(spec, index);
|
|
822
|
+
const dedupeKey = `${skillName}:${installId}`;
|
|
823
|
+
if (seen.has(dedupeKey)) continue;
|
|
824
|
+
seen.add(dedupeKey);
|
|
825
|
+
const missingBins = spec.bins?.filter((bin) => !hasBinary(bin) && opts.remote?.hasBin(bin) !== true) ?? [];
|
|
826
|
+
const reason = missingBins.length > 0 ? `missing: ${missingBins.join(", ")}` : `install spec for ${skillName}`;
|
|
827
|
+
plan.push({
|
|
828
|
+
skillName,
|
|
829
|
+
spec,
|
|
830
|
+
installId,
|
|
831
|
+
reason
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
return plan;
|
|
836
|
+
}
|
|
837
|
+
async function runSkillDependencyManager(entries, opts) {
|
|
838
|
+
const { config, prefs, autoInstall = false, remote, onProgress, installSkillDep } = opts;
|
|
839
|
+
const cycles = detectCircularDependencies(entries);
|
|
840
|
+
if (cycles.length > 0) for (const cycle of cycles) log$1.warn(`Circular skill dependency detected: ${cycle.cycle.join(" → ")}`);
|
|
841
|
+
const order = resolveSkillDependencyOrder(entries);
|
|
842
|
+
const availableSkills = new Set(entries.map((e) => e.skill.name));
|
|
843
|
+
const skillByName = buildSkillMap(entries);
|
|
844
|
+
const statuses = order.map((name) => skillByName.get(name)).filter((entry) => Boolean(entry)).map((entry) => checkSkillDependencies(entry, {
|
|
845
|
+
config,
|
|
846
|
+
availableSkills,
|
|
847
|
+
remote
|
|
848
|
+
}));
|
|
849
|
+
const plan = resolveSkillInstallPlan(entries, prefs, {
|
|
850
|
+
config,
|
|
851
|
+
availableSkills,
|
|
852
|
+
remote
|
|
853
|
+
});
|
|
854
|
+
const report = {
|
|
855
|
+
order,
|
|
856
|
+
cycles,
|
|
857
|
+
statuses,
|
|
858
|
+
plan,
|
|
859
|
+
hasIssues: cycles.length > 0 || statuses.some((s) => !s.satisfied && s.installable.length === 0)
|
|
860
|
+
};
|
|
861
|
+
const installed = [];
|
|
862
|
+
if (!autoInstall || !installSkillDep || plan.length === 0) return {
|
|
863
|
+
report,
|
|
864
|
+
installed
|
|
865
|
+
};
|
|
866
|
+
for (const item of plan) {
|
|
867
|
+
onProgress?.(`Installing ${item.reason} for skill "${item.skillName}"…`);
|
|
868
|
+
log$1.info(`Auto-installing dependency for skill "${item.skillName}" (${item.installId}): ${item.reason}`);
|
|
869
|
+
try {
|
|
870
|
+
const result = await installSkillDep({
|
|
871
|
+
skillName: item.skillName,
|
|
872
|
+
installId: item.installId
|
|
873
|
+
});
|
|
874
|
+
installed.push({
|
|
875
|
+
skillName: item.skillName,
|
|
876
|
+
installId: item.installId,
|
|
877
|
+
ok: result.ok,
|
|
878
|
+
message: result.message
|
|
879
|
+
});
|
|
880
|
+
if (result.ok) {
|
|
881
|
+
log$1.info(`Installed "${item.installId}" for skill "${item.skillName}": ${result.message}`);
|
|
882
|
+
onProgress?.(`✓ Installed ${item.installId} for "${item.skillName}"`);
|
|
883
|
+
} else {
|
|
884
|
+
log$1.warn(`Failed to install "${item.installId}" for skill "${item.skillName}": ${result.message}`);
|
|
885
|
+
onProgress?.(`✗ Failed to install ${item.installId} for "${item.skillName}": ${result.message}`);
|
|
886
|
+
}
|
|
887
|
+
} catch (err) {
|
|
888
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
889
|
+
log$1.error(`Unexpected error installing "${item.installId}" for skill "${item.skillName}": ${message}`);
|
|
890
|
+
installed.push({
|
|
891
|
+
skillName: item.skillName,
|
|
892
|
+
installId: item.installId,
|
|
893
|
+
ok: false,
|
|
894
|
+
message
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
return {
|
|
899
|
+
report,
|
|
900
|
+
installed
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
function formatDependencyReport(report) {
|
|
904
|
+
const lines = [];
|
|
905
|
+
if (report.cycles.length > 0) {
|
|
906
|
+
lines.push("Circular dependencies detected:");
|
|
907
|
+
for (const { cycle } of report.cycles) lines.push(` ⚠ ${cycle.join(" → ")}`);
|
|
908
|
+
lines.push("");
|
|
909
|
+
}
|
|
910
|
+
const unsatisfied = report.statuses.filter((s) => !s.satisfied);
|
|
911
|
+
if (unsatisfied.length === 0) {
|
|
912
|
+
lines.push("All skill dependencies are satisfied.");
|
|
913
|
+
return lines.join("\n");
|
|
914
|
+
}
|
|
915
|
+
lines.push(`${unsatisfied.length} skill(s) have unmet dependencies:`);
|
|
916
|
+
for (const status of unsatisfied) {
|
|
917
|
+
lines.push(` ${status.skillName}:`);
|
|
918
|
+
for (const dep of status.missing) switch (dep.kind) {
|
|
919
|
+
case "bin":
|
|
920
|
+
lines.push(` • missing binary: ${dep.name}`);
|
|
921
|
+
break;
|
|
922
|
+
case "anyBin":
|
|
923
|
+
lines.push(` • missing one of: ${dep.names.join(", ")}`);
|
|
924
|
+
break;
|
|
925
|
+
case "env":
|
|
926
|
+
lines.push(` • missing env var: ${dep.name}`);
|
|
927
|
+
break;
|
|
928
|
+
case "config":
|
|
929
|
+
lines.push(` • missing config: ${dep.path}`);
|
|
930
|
+
break;
|
|
931
|
+
case "skill":
|
|
932
|
+
lines.push(` • depends on missing skill: ${dep.name}`);
|
|
933
|
+
break;
|
|
934
|
+
}
|
|
935
|
+
if (status.installable.length > 0) lines.push(` → installable via: ${status.installable.map((s) => s.kind).join(", ")}`);
|
|
936
|
+
else lines.push(` → no install spec available`);
|
|
937
|
+
}
|
|
938
|
+
if (report.plan.length > 0) {
|
|
939
|
+
lines.push("");
|
|
940
|
+
lines.push(`Install plan (${report.plan.length} item(s)):`);
|
|
941
|
+
for (const item of report.plan) lines.push(` [${item.skillName}] ${item.installId} (${item.spec.kind}): ${item.reason}`);
|
|
942
|
+
}
|
|
943
|
+
return lines.join("\n");
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
//#endregion
|
|
947
|
+
//#region src/agents/skills/conflict-detector.ts
|
|
948
|
+
const log = createSubsystemLogger("skills/conflicts");
|
|
949
|
+
const SKILL_COMMAND_MAX_LENGTH = 32;
|
|
950
|
+
const SKILL_COMMAND_FALLBACK = "skill";
|
|
951
|
+
function sanitizeCommandName(raw) {
|
|
952
|
+
return raw.toLowerCase().replace(/[^a-z0-9_]+/g, "_").replace(/_+/g, "_").replace(/^_+|_+$/g, "").slice(0, SKILL_COMMAND_MAX_LENGTH) || SKILL_COMMAND_FALLBACK;
|
|
953
|
+
}
|
|
954
|
+
function getExclusiveCapabilities(entry) {
|
|
955
|
+
const provides = entry.metadata?.provides ?? [];
|
|
956
|
+
const exclusive = entry.metadata?.exclusive;
|
|
957
|
+
if (!exclusive || provides.length === 0) return /* @__PURE__ */ new Set();
|
|
958
|
+
if (exclusive === true) return new Set(provides);
|
|
959
|
+
if (Array.isArray(exclusive)) return new Set(exclusive.filter((cap) => provides.includes(cap)));
|
|
960
|
+
return /* @__PURE__ */ new Set();
|
|
961
|
+
}
|
|
962
|
+
function getCommandDispatchTool(frontmatter) {
|
|
963
|
+
if ((frontmatter["command-dispatch"] ?? frontmatter["command_dispatch"] ?? "").trim().toLowerCase() !== "tool") return;
|
|
964
|
+
return (frontmatter["command-tool"] ?? frontmatter["command_tool"] ?? "").trim() || void 0;
|
|
965
|
+
}
|
|
966
|
+
function detectCapabilityOverlap(entries) {
|
|
967
|
+
const conflicts = [];
|
|
968
|
+
const capabilityMap = /* @__PURE__ */ new Map();
|
|
969
|
+
for (const entry of entries) {
|
|
970
|
+
const name = entry.skill.name;
|
|
971
|
+
for (const cap of entry.metadata?.provides ?? []) {
|
|
972
|
+
const existing = capabilityMap.get(cap) ?? [];
|
|
973
|
+
existing.push(name);
|
|
974
|
+
capabilityMap.set(cap, existing);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
for (const [capability, skillNames] of capabilityMap.entries()) {
|
|
978
|
+
if (skillNames.length < 2) continue;
|
|
979
|
+
const exclusiveSkills = skillNames.filter((skillName) => {
|
|
980
|
+
const entry = entries.find((e) => e.skill.name === skillName);
|
|
981
|
+
return entry ? getExclusiveCapabilities(entry).has(capability) : false;
|
|
982
|
+
});
|
|
983
|
+
if (exclusiveSkills.length > 0) conflicts.push({
|
|
984
|
+
kind: "EXCLUSIVE_CAPABILITY_CONFLICT",
|
|
985
|
+
severity: "error",
|
|
986
|
+
skillNames,
|
|
987
|
+
resource: capability,
|
|
988
|
+
message: `Skill "${exclusiveSkills[0]}" claims exclusive ownership of capability "${capability}" but ${skillNames.filter((n) => n !== exclusiveSkills[0]).map((n) => `"${n}"`).join(", ")} also provide it. Only one skill may exclusively own a capability.`
|
|
989
|
+
});
|
|
990
|
+
else conflicts.push({
|
|
991
|
+
kind: "CAPABILITY_OVERLAP",
|
|
992
|
+
severity: "warn",
|
|
993
|
+
skillNames,
|
|
994
|
+
resource: capability,
|
|
995
|
+
message: `Multiple skills provide the "${capability}" capability: ${skillNames.map((n) => `"${n}"`).join(", ")}. The model may use any of them ambiguously. Consider disabling all but one.`
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
return conflicts;
|
|
999
|
+
}
|
|
1000
|
+
function detectCommandNameCollisions(entries) {
|
|
1001
|
+
const conflicts = [];
|
|
1002
|
+
const commandMap = /* @__PURE__ */ new Map();
|
|
1003
|
+
for (const entry of entries) {
|
|
1004
|
+
if (entry.invocation?.userInvocable === false) continue;
|
|
1005
|
+
const sanitized = sanitizeCommandName(entry.skill.name);
|
|
1006
|
+
const existing = commandMap.get(sanitized) ?? [];
|
|
1007
|
+
existing.push(entry.skill.name);
|
|
1008
|
+
commandMap.set(sanitized, existing);
|
|
1009
|
+
}
|
|
1010
|
+
for (const [command, skillNames] of commandMap.entries()) {
|
|
1011
|
+
if (skillNames.length < 2) continue;
|
|
1012
|
+
conflicts.push({
|
|
1013
|
+
kind: "COMMAND_NAME_COLLISION",
|
|
1014
|
+
severity: "warn",
|
|
1015
|
+
skillNames,
|
|
1016
|
+
resource: `/${command}`,
|
|
1017
|
+
message: `Skills ${skillNames.map((n) => `"${n}"`).join(", ")} all map to the same command "/${command}". Atlas will auto-rename duplicates (e.g. "/${command}_2"), which may confuse users. Consider renaming one of these skills.`
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
return conflicts;
|
|
1021
|
+
}
|
|
1022
|
+
function detectToolDispatchCollisions(entries) {
|
|
1023
|
+
const conflicts = [];
|
|
1024
|
+
const toolMap = /* @__PURE__ */ new Map();
|
|
1025
|
+
for (const entry of entries) {
|
|
1026
|
+
const toolName = getCommandDispatchTool(entry.frontmatter);
|
|
1027
|
+
if (!toolName) continue;
|
|
1028
|
+
const existing = toolMap.get(toolName) ?? [];
|
|
1029
|
+
existing.push(entry.skill.name);
|
|
1030
|
+
toolMap.set(toolName, existing);
|
|
1031
|
+
}
|
|
1032
|
+
for (const [toolName, skillNames] of toolMap.entries()) {
|
|
1033
|
+
if (skillNames.length < 2) continue;
|
|
1034
|
+
conflicts.push({
|
|
1035
|
+
kind: "TOOL_DISPATCH_COLLISION",
|
|
1036
|
+
severity: "error",
|
|
1037
|
+
skillNames,
|
|
1038
|
+
resource: toolName,
|
|
1039
|
+
message: `Skills ${skillNames.map((n) => `"${n}"`).join(", ")} all dispatch commands to the same tool "${toolName}". Only one skill may own a tool dispatch target. The last one registered will silently shadow the others.`
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
return conflicts;
|
|
1043
|
+
}
|
|
1044
|
+
function detectEnvCollisions(entries) {
|
|
1045
|
+
const conflicts = [];
|
|
1046
|
+
const byPrimaryEnv = /* @__PURE__ */ new Map();
|
|
1047
|
+
for (const entry of entries) {
|
|
1048
|
+
const env = entry.metadata?.primaryEnv;
|
|
1049
|
+
if (!env) continue;
|
|
1050
|
+
const existing = byPrimaryEnv.get(env) ?? [];
|
|
1051
|
+
existing.push(entry);
|
|
1052
|
+
byPrimaryEnv.set(env, existing);
|
|
1053
|
+
}
|
|
1054
|
+
for (const [envVar, envEntries] of byPrimaryEnv.entries()) {
|
|
1055
|
+
if (envEntries.length < 2) continue;
|
|
1056
|
+
const capSets = envEntries.map((e) => new Set(e.metadata?.provides ?? []));
|
|
1057
|
+
const overlapPairs = [];
|
|
1058
|
+
for (let i = 0; i < envEntries.length; i++) for (let j = i + 1; j < envEntries.length; j++) {
|
|
1059
|
+
const shared = [...capSets[i]].filter((cap) => capSets[j].has(cap));
|
|
1060
|
+
if (shared.length > 0) overlapPairs.push([
|
|
1061
|
+
envEntries[i].skill.name,
|
|
1062
|
+
envEntries[j].skill.name,
|
|
1063
|
+
shared
|
|
1064
|
+
]);
|
|
1065
|
+
}
|
|
1066
|
+
if (overlapPairs.length > 0) for (const [nameA, nameB, sharedCaps] of overlapPairs) conflicts.push({
|
|
1067
|
+
kind: "ENV_COLLISION",
|
|
1068
|
+
severity: "warn",
|
|
1069
|
+
skillNames: [nameA, nameB],
|
|
1070
|
+
resource: envVar,
|
|
1071
|
+
message: `Skills "${nameA}" and "${nameB}" both use "${envVar}" and provide the same capabilities: ${sharedCaps.map((c) => `"${c}"`).join(", ")}. They are competing providers of the same functionality via the same API key.`
|
|
1072
|
+
});
|
|
1073
|
+
else conflicts.push({
|
|
1074
|
+
kind: "ENV_COLLISION",
|
|
1075
|
+
severity: "warn",
|
|
1076
|
+
skillNames: envEntries.map((e) => e.skill.name),
|
|
1077
|
+
resource: envVar,
|
|
1078
|
+
message: `Multiple skills share the primary env var "${envVar}": ${envEntries.map((e) => `"${e.skill.name}"`).join(", ")}. Rotating or revoking this key will affect all of them simultaneously.`
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
return conflicts;
|
|
1082
|
+
}
|
|
1083
|
+
function detectOsChainMismatches(entries) {
|
|
1084
|
+
const conflicts = [];
|
|
1085
|
+
const entryMap = /* @__PURE__ */ new Map();
|
|
1086
|
+
for (const entry of entries) {
|
|
1087
|
+
entryMap.set(entry.skill.name, entry);
|
|
1088
|
+
const key = resolveSkillKey(entry.skill, entry);
|
|
1089
|
+
if (key !== entry.skill.name) entryMap.set(key, entry);
|
|
1090
|
+
}
|
|
1091
|
+
for (const entry of entries) {
|
|
1092
|
+
const parentOs = entry.metadata?.os ?? [];
|
|
1093
|
+
if (parentOs.length === 0) continue;
|
|
1094
|
+
const deps = entry.metadata?.dependsOn ?? [];
|
|
1095
|
+
for (const depName of deps) {
|
|
1096
|
+
const dep = entryMap.get(depName);
|
|
1097
|
+
if (!dep) continue;
|
|
1098
|
+
const depOs = dep.metadata?.os ?? [];
|
|
1099
|
+
if (depOs.length === 0) continue;
|
|
1100
|
+
if (!parentOs.some((os) => depOs.includes(os))) conflicts.push({
|
|
1101
|
+
kind: "OS_CHAIN_MISMATCH",
|
|
1102
|
+
severity: "error",
|
|
1103
|
+
skillNames: [entry.skill.name, depName],
|
|
1104
|
+
resource: `os:${parentOs.join(",")}↔${depOs.join(",")}`,
|
|
1105
|
+
message: `Skill "${entry.skill.name}" runs on [${parentOs.join(", ")}] but depends on "${depName}" which only runs on [${depOs.join(", ")}]. This dependency can never be satisfied and "${entry.skill.name}" will always fail to load.`
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
return conflicts;
|
|
1110
|
+
}
|
|
1111
|
+
function detectSkillConflicts(entries) {
|
|
1112
|
+
const allConflicts = [
|
|
1113
|
+
...detectCapabilityOverlap(entries),
|
|
1114
|
+
...detectCommandNameCollisions(entries),
|
|
1115
|
+
...detectToolDispatchCollisions(entries),
|
|
1116
|
+
...detectEnvCollisions(entries),
|
|
1117
|
+
...detectOsChainMismatches(entries)
|
|
1118
|
+
];
|
|
1119
|
+
for (const conflict of allConflicts) if (conflict.severity === "error") log.error(`[${conflict.kind}] ${conflict.message}`, {
|
|
1120
|
+
skills: conflict.skillNames,
|
|
1121
|
+
resource: conflict.resource
|
|
1122
|
+
});
|
|
1123
|
+
else log.warn(`[${conflict.kind}] ${conflict.message}`, {
|
|
1124
|
+
skills: conflict.skillNames,
|
|
1125
|
+
resource: conflict.resource
|
|
1126
|
+
});
|
|
1127
|
+
return {
|
|
1128
|
+
conflicts: allConflicts,
|
|
1129
|
+
hasErrors: allConflicts.some((c) => c.severity === "error"),
|
|
1130
|
+
hasWarnings: allConflicts.some((c) => c.severity === "warn")
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
function formatConflictReport(report) {
|
|
1134
|
+
if (report.conflicts.length === 0) return "No skill conflicts detected.";
|
|
1135
|
+
const lines = [];
|
|
1136
|
+
const errors = report.conflicts.filter((c) => c.severity === "error");
|
|
1137
|
+
const warnings = report.conflicts.filter((c) => c.severity === "warn");
|
|
1138
|
+
if (errors.length > 0) {
|
|
1139
|
+
lines.push(`${errors.length} conflict error(s) found:`);
|
|
1140
|
+
for (const conflict of errors) lines.push(` ✗ [${conflict.kind}] ${conflict.message}`);
|
|
1141
|
+
}
|
|
1142
|
+
if (warnings.length > 0) {
|
|
1143
|
+
if (lines.length > 0) lines.push("");
|
|
1144
|
+
lines.push(`${warnings.length} conflict warning(s):`);
|
|
1145
|
+
for (const conflict of warnings) lines.push(` ⚠ [${conflict.kind}] ${conflict.message}`);
|
|
1146
|
+
}
|
|
1147
|
+
return lines.join("\n");
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
//#endregion
|
|
1151
|
+
//#region src/agents/skills.ts
|
|
1152
|
+
function resolveSkillsInstallPreferences(config) {
|
|
1153
|
+
const raw = config?.skills?.install;
|
|
1154
|
+
const preferBrew = raw?.preferBrew ?? true;
|
|
1155
|
+
const manager = (typeof raw?.nodeManager === "string" ? raw.nodeManager.trim() : "").toLowerCase();
|
|
1156
|
+
return {
|
|
1157
|
+
preferBrew,
|
|
1158
|
+
nodeManager: manager === "pnpm" || manager === "yarn" || manager === "bun" || manager === "npm" ? manager : "npm"
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
//#endregion
|
|
1163
|
+
export { parseFrontmatterBlock as S, isConfigPathTruthy as _, runSkillDependencyManager as a, resolveSkillConfig as b, loadWorkspaceSkillEntries as c, resolvePluginSkillDirs as d, resolveBundledSkillsDir as f, isBundledSkillAllowed as g, hasBinary as h, formatDependencyReport as i, resolveSkillsPromptForRun as l, applySkillEnvOverridesFromSnapshot as m, detectSkillConflicts as n, buildWorkspaceSkillCommandSpecs as o, applySkillEnvOverrides as p, formatConflictReport as r, buildWorkspaceSkillSnapshot as s, resolveSkillsInstallPreferences as t, syncSkillsToWorkspace as u, resolveBundledAllowlist as v, resolveSkillKey as x, resolveConfigPath as y };
|