@xopcai/xopc 0.0.231 → 0.0.233
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/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/schema/config-schema.d.ts +3 -3
- package/dist/extensions/telegram/src/config-schema.d.ts +4 -4
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/config-schema.d.ts +3 -3
- package/dist/gateway/static/root/assets/{activity-store-M0nAY5XB.js → activity-store-DQ5L3PTi.js} +1 -1
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-Bps8fvBp.js +1 -0
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-JrK80PvP.js +1 -0
- package/dist/gateway/static/root/assets/agents-CJYEnz94.js +1 -0
- package/dist/gateway/static/root/assets/api-DE6tZKG0.js +1 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-DP7YVRPn.js → app-management-settings-panel-BryzDVod.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-CVQ5n7y6.js → appearance-settings-BoweLBDm.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-Bt8_sWtU.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-7_DXaMTP.js → archive-plugin-DyujzZNu.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-mmr_mHRr.js → attachment-load-DmXGUWve.js} +1 -1
- package/dist/gateway/static/root/assets/attachment-preview-renderer-BDTD8YUe.js +12 -0
- package/dist/gateway/static/root/assets/{automations-page-DfY-T6Ga.js → automations-page-DrTVSK7o.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-86UTesz3.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CO9QMEh2.js → binary-plugins-mFyeC74W.js} +2 -2
- package/dist/gateway/static/root/assets/{block-editor-CE14CVOy.js → block-editor-D5yMFrgH.js} +4 -4
- package/dist/gateway/static/root/assets/browser-settings-page-DfMU7yXv.js +8 -0
- package/dist/gateway/static/root/assets/browser-workflow-inputs-B6rLBtua.js +1 -0
- package/dist/gateway/static/root/assets/{browser-workflows-page-1wgXyoSO.js → browser-workflows-page-C74sg50f.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-lsHRuBlX.js +7 -0
- package/dist/gateway/static/root/assets/channels-settings-CxR_clkO.js +1 -0
- package/dist/gateway/static/root/assets/{channel-recipient-api-C5ABr73b.js → channels-status-swr-DowVNjNw.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CdRW6Euc.js → chat-terminal-dock-BO6_BgjE.js} +2 -2
- package/dist/gateway/static/root/assets/{code-editor-dFzqyDXS.js → code-editor-D4_k-6QN.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-CpNLyKB4.js +2 -0
- package/dist/gateway/static/root/assets/cron-expression-CYMXfk4M.js +2 -0
- package/dist/gateway/static/root/assets/date-picker-DIM_OkQP.js +1 -0
- package/dist/gateway/static/root/assets/dependency-picker-Cp8I6rsL.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-settings-MmOR4A3u.js → desktop-pet-settings-NjPiz3M_.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-CMO-J3cG.js → desktop-pet-wzSzZ6S8.js} +1 -1
- package/dist/gateway/static/root/assets/dist-DqPZM2MH2.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DdH0dG2_.js → extension-debug-page-CoMl13ET.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Clg-KktN.js → extension-page-CXc1Lc8x.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-CfEWpgjl.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-api-DEHnF4Wm.js → gateway-config-api-yH4KAEkK.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-config-swr-YyZJKvFf.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-settings-DKkEXXj9.js → gateway-settings-BmjJIiKh.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-B_zrtccP.js → gateway-startup-retry-Dnrl91pU.js} +1 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-DGq9q4b6.js +1 -0
- package/dist/gateway/static/root/assets/home-page-Dj4B1wb3.js +1 -0
- package/dist/gateway/static/root/assets/html-workspace-editor-C3DKAkMc.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-YKP2me5Z.js → image-generation-api-BNzAAw4Y.js} +1 -1
- package/dist/gateway/static/root/assets/index-BGf-TiZj.js +70 -0
- package/dist/gateway/static/root/assets/index-BTUuTnc9.css +2 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BvpEeHnm.js → keyboard-shortcuts-settings-CfNV1ysF.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-IJg75WaN.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-Bzvn99eH.js → local-apps-page-MPd4Fl_l.js} +1 -1
- package/dist/gateway/static/root/assets/locale-store-D_dq_0LV.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-NsfoazgK.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-DeIjN4e0.js +1 -0
- package/dist/gateway/static/root/assets/markdown-editor-nDLmA_LF.js +2 -0
- package/dist/gateway/static/root/assets/markdown-split-BUAVv6Gu.js +1 -0
- package/dist/gateway/static/root/assets/markdown-view-CPkBOY3h.js +201 -0
- package/dist/gateway/static/root/assets/{media-plugins-D8I7OGnT.js → media-plugins-DFsVnOY-.js} +1 -1
- package/dist/gateway/static/root/assets/messages-D4qOHT4D.js +3 -0
- package/dist/gateway/static/root/assets/mobile-device-api-D9JevyCE.js +1 -0
- package/dist/gateway/static/root/assets/models-hub-cache-C5y2gzMU.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-EpgG-OQc.js → notes-api-BWSfTP1w.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-CCvjGMhN.js → notes-page-CV8UJj7g.js} +1 -1
- package/dist/gateway/static/root/assets/notes-workbench-DrjMVgEI.js +4 -0
- package/dist/gateway/static/root/assets/{oauth-api-BwNLwbI8.js → oauth-api-DnanEBsf.js} +1 -1
- package/dist/gateway/static/root/assets/popover-select-3E24E65N.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-MmMswmOU.js → product-open-page-zNg1KOy2.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-tfcGYL-O.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-BkjnXLdJ.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-BFZrVYfy.js → registry-api-BeVzfRvs.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-BXn-3n2d.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-Dx6o7sLu.js → runtime-tools-settings-panel-BxoioSvT.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-Cdd9c4vt.js → schema-form-vzbmscrE.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-MLNjrOkw.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-ByNLBY2q.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-D0YxMnhm.js → settings-form-section-x9k7MWD3.js} +1 -1
- package/dist/gateway/static/root/assets/settings-loading-skeleton-BLFOD9h9.js +1 -0
- package/dist/gateway/static/root/assets/settings-page-CwgTooar.js +1 -0
- package/dist/gateway/static/root/assets/settings-shell-layer-context-DCp6ykjQ.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-bnueBZg8.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-DiqBn-oE.js → share-preview-page-COTrPAd-.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-D-v_psqL.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-DJICr4wh.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-CZwhWiRl.js → skills-page-D9wM6_Jn.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page.utils-kBGr8opZ.js → skills-page.utils-PtlQLM5a.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-CPBs6lWi.js → system-settings-panel-BR74mNEK.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-B-rmeE8t.js +1 -0
- package/dist/gateway/static/root/assets/{theme-store-Qgvo0Ga7.js → theme-store-Bud54q9e.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-C4YcEiP9.js → use-autosave-DH47MH7s.js} +1 -1
- package/dist/gateway/static/root/assets/user-context-page-B6eyxxOT.js +1 -0
- package/dist/gateway/static/root/assets/{vendor-codemirror-DRr7hFaD.js → vendor-codemirror--gTq3YAI.js} +16 -16
- package/dist/gateway/static/root/assets/voice-api-key-field-B59GaqRa.js +1 -0
- package/dist/gateway/static/root/assets/voice-config-api-C0ahrZ0e.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-CKIdPEen.js → work-discovery-overlay-DTn4RCcx.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-BK44Vm5W.js → workflow-run-setup-panel-yDFoEX06.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-BOwSbfWm.js +5 -0
- package/dist/gateway/static/root/index.html +16 -16
- package/dist/package.js +1 -1
- package/dist/packages/endpoint-tools-protocol/src/index.js +162 -2
- package/dist/packages/gateway-contract/src/product-delivery.js +6 -2
- package/dist/packages/gateway-contract/src/turn-outcome.js +77 -1
- package/dist/src/agent/agent-manager.d.ts +1 -2
- package/dist/src/agent/agent-manager.js +29 -44
- package/dist/src/agent/background-review/run-background-review.js +10 -15
- package/dist/src/agent/capabilities/definitions.d.ts +1 -1
- package/dist/src/agent/capabilities/definitions.js +2 -1
- package/dist/src/agent/embedded/run-for-session.js +1 -1
- package/dist/src/agent/external-tools/endpoint-provider.js +5 -1
- package/dist/src/agent/external-tools/mcp-provider.js +3 -13
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +13 -14
- package/dist/src/agent/mcp/bundle-mcp-policy.d.ts +0 -9
- package/dist/src/agent/mcp/bundle-mcp-policy.js +1 -13
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +1 -1
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/media-generation/runtime-shared.d.ts +1 -1
- package/dist/src/agent/media-generation/runtime-shared.js +1 -1
- package/dist/src/agent/memory/create-memory-manager.js +1 -1
- package/dist/src/agent/memory/manager.d.ts +1 -1
- package/dist/src/{agent-runtime/memory-runtime.d.ts → agent/memory/runtime.d.ts} +1 -1
- package/dist/src/{agent-runtime/memory-runtime.js → agent/memory/runtime.js} +2 -3
- package/dist/src/agent/orchestration/agent-orchestrator.d.ts +0 -3
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -3
- package/dist/src/agent/orchestration/run-agent-turn-with-timeout.js +2 -2
- package/dist/src/agent/prompt/sections/tooling.js +5 -0
- package/dist/src/agent/service.js +0 -1
- package/dist/src/agent/starter-agents.js +1 -8
- package/dist/src/agent/tools/create-share-tool.js +2 -1
- package/dist/src/agent/tools/exec-command.js +2 -1
- package/dist/src/agent/tools/executor.d.ts +1 -1
- package/dist/src/agent/tools/factory.js +2 -0
- package/dist/src/agent/tools/index.d.ts +1 -0
- package/dist/src/agent/tools/index.js +2 -1
- package/dist/src/agent/tools/publish-artifacts.d.ts +2 -0
- package/dist/src/agent/tools/publish-artifacts.js +82 -0
- package/dist/src/agent/tools/send-media.js +2 -1
- package/dist/src/agent/tools/workflow-tool.js +1 -5
- package/dist/src/agent-config/index.d.ts +2 -0
- package/dist/src/agent-config/index.js +11 -0
- package/dist/src/agent-config/resolver.d.ts +11 -0
- package/dist/src/agent-config/resolver.js +113 -0
- package/dist/src/agent-config/schema.d.ts +491 -0
- package/dist/src/agent-config/schema.js +172 -0
- package/dist/src/chat-commands/builtins/config.js +2 -2
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/config-paths.js +1 -1
- package/dist/src/cli/command-catalog.js +4 -0
- package/dist/src/cli/command-loaders.js +1 -0
- package/dist/src/cli/command-manifest.js +4 -0
- package/dist/src/cli/commands/agents.js +2 -1
- package/dist/src/cli/commands/auth.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +12 -4
- package/dist/src/cli/commands/image.js +3 -4
- package/dist/src/cli/commands/models.js +9 -3
- package/dist/src/cli/commands/onboard/model.js +13 -12
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/providers.js +1 -1
- package/dist/src/cli/commands/support.d.ts +1 -0
- package/dist/src/cli/commands/support.js +51 -0
- package/dist/src/cli/commands/tunnel.js +3 -18
- package/dist/src/cli/utils/init-workspace-core.d.ts +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/commands/agents.config.d.ts +1 -3
- package/dist/src/commands/agents.config.js +9 -26
- package/dist/src/config/agent-model-intents.d.ts +10 -0
- package/dist/src/config/agent-model-intents.js +39 -0
- package/dist/src/config/agent-profile.d.ts +7 -9
- package/dist/src/config/agent-profile.js +30 -28
- package/dist/src/config/default-model.d.ts +1 -11
- package/dist/src/config/default-model.js +3 -11
- package/dist/src/config/index.js +3 -3
- package/dist/src/config/integration.d.ts +1 -1
- package/dist/src/config/reload.js +1 -1
- package/dist/src/config/rules.js +3 -3
- package/dist/src/config/schema.d.ts +187 -452
- package/dist/src/config/schema.js +53 -131
- package/dist/src/endpoint-tools/binding-service.d.ts +22 -0
- package/dist/src/endpoint-tools/binding-service.js +45 -0
- package/dist/src/endpoint-tools/index.d.ts +1 -0
- package/dist/src/endpoint-tools/index.js +2 -1
- package/dist/src/endpoint-tools/invocation-service.d.ts +1 -0
- package/dist/src/endpoint-tools/invocation-service.js +8 -0
- package/dist/src/endpoint-tools/policy.d.ts +4 -1
- package/dist/src/endpoint-tools/policy.js +68 -5
- package/dist/src/endpoint-tools/registry.js +1 -1
- package/dist/src/endpoint-tools/runtime.d.ts +2 -0
- package/dist/src/endpoint-tools/runtime.js +8 -0
- package/dist/src/extensions/activation-context.js +7 -11
- package/dist/src/files/file-service.js +14 -5
- package/dist/src/gateway/agent-builtin-tools.d.ts +250 -6
- package/dist/src/gateway/agent-builtin-tools.js +284 -46
- package/dist/src/gateway/agents-admin.d.ts +20 -62
- package/dist/src/gateway/agents-admin.js +36 -228
- package/dist/src/gateway/chat-stream/turn-outcome-collector.js +41 -6
- package/dist/src/gateway/device-routes.d.ts +3 -0
- package/dist/src/gateway/device-routes.js +47 -0
- package/dist/src/gateway/global-defaults-admin.d.ts +6 -20
- package/dist/src/gateway/global-defaults-admin.js +20 -120
- package/dist/src/gateway/heartbeat/service.js +1 -1
- package/dist/src/gateway/hono/app.js +4 -2
- package/dist/src/gateway/hono/lib/config-payload.d.ts +54 -137
- package/dist/src/gateway/hono/lib/config-payload.js +2 -4
- package/dist/src/gateway/hono/middleware/auth.js +36 -3
- package/dist/src/gateway/hono/middleware/scopes.d.ts +2 -12
- package/dist/src/gateway/hono/middleware/scopes.js +9 -18
- package/dist/src/gateway/hono/routes/agents.js +64 -100
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/device-push.d.ts +2 -0
- package/dist/src/gateway/hono/routes/{mobile.js → device-push.js} +40 -18
- package/dist/src/gateway/hono/routes/devices.d.ts +4 -0
- package/dist/src/gateway/hono/routes/devices.js +214 -0
- package/dist/src/gateway/hono/routes/endpoint-tools.js +68 -1
- package/dist/src/gateway/hono/routes/files.js +12 -1
- package/dist/src/gateway/hono/routes/global-defaults.js +5 -9
- package/dist/src/gateway/hono/routes/index.js +4 -2
- package/dist/src/gateway/hono/routes/lazy-bundles.js +12 -20
- package/dist/src/gateway/hono/routes/media.js +46 -2
- package/dist/src/gateway/hono/routes/models.js +2 -2
- package/dist/src/gateway/hono/routes/realtime.js +8 -1
- package/dist/src/gateway/hono/routes/status.js +9 -16
- package/dist/src/gateway/hono/routes/support.d.ts +3 -0
- package/dist/src/gateway/hono/routes/support.js +28 -0
- package/dist/src/gateway/hono/routes/tunnel.d.ts +0 -2
- package/dist/src/gateway/hono/routes/tunnel.js +10 -199
- package/dist/src/gateway/hono/routes/you.js +24 -0
- package/dist/src/gateway/image-generation-setup.d.ts +2 -2
- package/dist/src/gateway/image-generation-setup.js +8 -7
- package/dist/src/gateway/public-url.d.ts +1 -1
- package/dist/src/gateway/security/gateway-principal.d.ts +11 -0
- package/dist/src/gateway/security/gateway-principal.js +12 -0
- package/dist/src/gateway/security/gateway-scopes.d.ts +7 -0
- package/dist/src/gateway/security/gateway-scopes.js +66 -0
- package/dist/src/gateway/security/index.d.ts +2 -1
- package/dist/src/gateway/security/index.js +3 -2
- package/dist/src/gateway/service.js +7 -7
- package/dist/src/gateway/xopc-cloud-capability-setup.js +19 -21
- package/dist/src/heartbeat/index.js +1 -1
- package/dist/src/media/store.js +9 -0
- package/dist/src/migrations/index.d.ts +0 -1
- package/dist/src/migrations/index.js +1 -2
- package/dist/src/migrations/runner.js +1 -2
- package/dist/src/notifications/device-store.d.ts +1 -1
- package/dist/src/notifications/device-store.js +11 -11
- package/dist/src/notifications/store.js +3 -3
- package/dist/src/providers/index.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +14 -9
- package/dist/src/realtime/runtime.d.ts +2 -0
- package/dist/src/realtime/runtime.js +27 -3
- package/dist/src/realtime/tickets.d.ts +6 -1
- package/dist/src/realtime/tickets.js +2 -1
- package/dist/src/remote-access/exposure-manager.js +3 -3
- package/dist/src/share/share-url.js +2 -2
- package/dist/src/storage/sqlite/device-access-repository.d.ts +54 -0
- package/dist/src/storage/sqlite/device-access-repository.js +194 -0
- package/dist/src/storage/sqlite/device-pairing-repository.d.ts +22 -0
- package/dist/src/storage/sqlite/device-pairing-repository.js +86 -0
- package/dist/src/storage/sqlite/endpoint-session-binding-repository.d.ts +8 -0
- package/dist/src/storage/sqlite/endpoint-session-binding-repository.js +32 -0
- package/dist/src/storage/sqlite/gateway-identity-repository.d.ts +10 -0
- package/dist/src/storage/sqlite/gateway-identity-repository.js +50 -0
- package/dist/src/storage/sqlite/index.d.ts +4 -0
- package/dist/src/storage/sqlite/index.js +5 -1
- package/dist/src/storage/sqlite/migrations/138_device_access.sql +96 -0
- package/dist/src/storage/sqlite/migrations/139_turn_outcome_artifact_backfill.sql +231 -0
- package/dist/src/storage/sqlite/migrations/140_endpoint_session_bindings.sql +8 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/migrations/runner.ts +1 -1
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/support/build-support-investigation-prompt.d.ts +2 -0
- package/dist/src/support/build-support-investigation-prompt.js +29 -0
- package/dist/src/support/collect-support-report.d.ts +16 -0
- package/dist/src/support/collect-support-report.js +216 -0
- package/dist/src/support/redact-support-report.d.ts +16 -0
- package/dist/src/support/redact-support-report.js +89 -0
- package/dist/src/support/types.d.ts +76 -0
- package/dist/src/support/types.js +18 -0
- package/dist/src/tunnel/consent.d.ts +1 -1
- package/dist/src/tunnel/consent.js +1 -1
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/tunnel/index.d.ts +1 -4
- package/dist/src/tunnel/index.js +3 -5
- package/dist/src/tunnel/tunnel-audit.d.ts +1 -1
- package/dist/src/tunnel/tunnel-config.js +1 -1
- package/dist/src/tunnel/tunnel-service.d.ts +2 -3
- package/dist/src/tunnel/tunnel-service.js +1 -20
- package/dist/src/tunnel/tunnel-types.d.ts +0 -6
- package/dist/src/user-context/user-avatar.d.ts +17 -0
- package/dist/src/user-context/user-avatar.js +116 -0
- package/dist/src/workflows/draft/workflow-draft-service.js +2 -2
- package/dist/src/workflows/service/workflow-run-service.js +3 -3
- package/package.json +4 -4
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-CBqUnlvL.js +0 -1
- package/dist/gateway/static/root/assets/agents-7YO6znTT.js +0 -68
- package/dist/gateway/static/root/assets/api-BywYxpaS.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-DSCia0DT.js +0 -1
- package/dist/gateway/static/root/assets/attachment-preview-renderer-Cmo-5BP5.js +0 -11
- package/dist/gateway/static/root/assets/automations-workspace-BpvD54D6.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-CeESA4Oj.js +0 -8
- package/dist/gateway/static/root/assets/browser-workflow-inputs-8NC2qDRF.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-B_OXTojB.js +0 -7
- package/dist/gateway/static/root/assets/capability-presets-api-o0y9WgAI.js +0 -1
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-D5nZecxV.js +0 -3
- package/dist/gateway/static/root/assets/channels-settings-BzmnWx6X.js +0 -1
- package/dist/gateway/static/root/assets/channels-status-swr-38FsOnR0.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-DX6OkwFQ.js +0 -2
- package/dist/gateway/static/root/assets/cron-expression-DYSMZsms.js +0 -2
- package/dist/gateway/static/root/assets/date-picker-DGCfX4tK.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-DHDa4ht1.js +0 -1
- package/dist/gateway/static/root/assets/directory-picker-path-field-B9qoxDcn.js +0 -1
- package/dist/gateway/static/root/assets/dist-J_ySZvz0.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-eP3fJ2M6.js +0 -1
- package/dist/gateway/static/root/assets/file-code-corner-byQA1VfD.js +0 -1
- package/dist/gateway/static/root/assets/gateway-config-swr-BWGjnmDl.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-DlBPNubY.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BnOrLRfs.js +0 -1
- package/dist/gateway/static/root/assets/html-workspace-editor-bXK5tq64.js +0 -1
- package/dist/gateway/static/root/assets/index-0xQO5B_Q.js +0 -70
- package/dist/gateway/static/root/assets/index-CCyIdGuQ.css +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-Ch1rdUo8.js +0 -2
- package/dist/gateway/static/root/assets/locale-store-CXhjfe4q.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-zxx2ExlY.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-BQaeyOYm.js +0 -1
- package/dist/gateway/static/root/assets/markdown-editor-TWGaF7Xa.js +0 -2
- package/dist/gateway/static/root/assets/markdown-split-D9tmIiEm.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-RxNHwlNo.js +0 -201
- package/dist/gateway/static/root/assets/messages-BMdD0LWk.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-cache-0RjEwafI.js +0 -1
- package/dist/gateway/static/root/assets/notes-workbench-9cgh77VH.js +0 -4
- package/dist/gateway/static/root/assets/popover-select-CccGri5Y.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-hf6pmH4p.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-By2U-Wdh.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CUcpp7CQ.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-ByI82xS1.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BCoI5IJ8.js +0 -1
- package/dist/gateway/static/root/assets/settings-loading-skeleton-y53gEKsF.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-BoE_tToG.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BQmyb5KC.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-Bf3VpZ-R.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-CXHlbuGS.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-Bo0KSZ2v.js +0 -1
- package/dist/gateway/static/root/assets/typed-models-lib-q5-Vfqd8.js +0 -1
- package/dist/gateway/static/root/assets/user-context-page-Cnj7gMX2.js +0 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-BML8zCwZ.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-CB98MTwG.js +0 -5
- package/dist/src/agent-manifest/index.d.ts +0 -5
- package/dist/src/agent-manifest/index.js +0 -10
- package/dist/src/agent-manifest/preset-chain.d.ts +0 -10
- package/dist/src/agent-manifest/preset-chain.js +0 -30
- package/dist/src/agent-manifest/prompt.d.ts +0 -2
- package/dist/src/agent-manifest/prompt.js +0 -49
- package/dist/src/agent-manifest/resolver.d.ts +0 -32
- package/dist/src/agent-manifest/resolver.js +0 -114
- package/dist/src/agent-manifest/schema.d.ts +0 -695
- package/dist/src/agent-manifest/schema.js +0 -226
- package/dist/src/agent-manifest/validator.d.ts +0 -25
- package/dist/src/agent-manifest/validator.js +0 -74
- package/dist/src/agent-runtime/boundary-guard.d.ts +0 -12
- package/dist/src/agent-runtime/boundary-guard.js +0 -21
- package/dist/src/agent-runtime/index.d.ts +0 -7
- package/dist/src/agent-runtime/index.js +0 -8
- package/dist/src/agent-runtime/model-router.d.ts +0 -11
- package/dist/src/agent-runtime/model-router.js +0 -14
- package/dist/src/agent-runtime/run-trace.d.ts +0 -27
- package/dist/src/agent-runtime/run-trace.js +0 -51
- package/dist/src/agent-runtime/runtime-profile.d.ts +0 -26
- package/dist/src/agent-runtime/runtime-profile.js +0 -42
- package/dist/src/agent-runtime/tool-registry.d.ts +0 -28
- package/dist/src/agent-runtime/tool-registry.js +0 -50
- package/dist/src/agent-runtime/workflow-runtime.d.ts +0 -31
- package/dist/src/agent-runtime/workflow-runtime.js +0 -32
- package/dist/src/config/agent-typed-models.d.ts +0 -13
- package/dist/src/config/agent-typed-models.js +0 -48
- package/dist/src/gateway/capability-presets-admin.d.ts +0 -88
- package/dist/src/gateway/capability-presets-admin.js +0 -303
- package/dist/src/gateway/hono/lib/agent-model.d.ts +0 -35
- package/dist/src/gateway/hono/lib/agent-model.js +0 -97
- package/dist/src/gateway/hono/routes/capability-presets.d.ts +0 -3
- package/dist/src/gateway/hono/routes/capability-presets.js +0 -187
- package/dist/src/gateway/hono/routes/mobile.d.ts +0 -3
- package/dist/src/gateway/security/operator-scopes.d.ts +0 -37
- package/dist/src/gateway/security/operator-scopes.js +0 -147
- package/dist/src/migrations/config/default-capability-preset.d.ts +0 -10
- package/dist/src/migrations/config/default-capability-preset.js +0 -133
- package/dist/src/tunnel/enable-lan-pairing.d.ts +0 -8
- package/dist/src/tunnel/enable-lan-pairing.js +0 -41
- package/dist/src/tunnel/pair-context.d.ts +0 -36
- package/dist/src/tunnel/pair-context.js +0 -77
- package/dist/src/tunnel/pair-url.d.ts +0 -43
- package/dist/src/tunnel/pair-url.js +0 -117
- package/dist/src/tunnel/pairing-rate-limit.d.ts +0 -12
- package/dist/src/tunnel/pairing-rate-limit.js +0 -28
- package/dist/src/tunnel/pairing.d.ts +0 -21
- package/dist/src/tunnel/pairing.js +0 -103
- package/dist/src/tunnel/tunnel-qr.d.ts +0 -9
- package/dist/src/tunnel/tunnel-qr.js +0 -29
|
@@ -1,6 +1,250 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export type GatewayBuiltinToolSummary = {
|
|
2
|
+
id: string;
|
|
3
|
+
description: {
|
|
4
|
+
en: string;
|
|
5
|
+
zh: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
/** Built-in agent tools exposed by the gateway configuration UI. */
|
|
9
|
+
export declare const GATEWAY_BUILTIN_TOOLS: readonly [{
|
|
10
|
+
readonly id: "read_file";
|
|
11
|
+
readonly description: {
|
|
12
|
+
readonly en: "Read file contents from the workspace.";
|
|
13
|
+
readonly zh: "读取工作区中的文件内容。";
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "write_file";
|
|
17
|
+
readonly description: {
|
|
18
|
+
readonly en: "Create or replace a file in the workspace.";
|
|
19
|
+
readonly zh: "在工作区中创建或覆盖文件。";
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: "apply_patch";
|
|
23
|
+
readonly description: {
|
|
24
|
+
readonly en: "Apply precise, reviewable changes to workspace files.";
|
|
25
|
+
readonly zh: "对工作区文件应用精确且便于审查的修改。";
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
readonly id: "list_dir";
|
|
29
|
+
readonly description: {
|
|
30
|
+
readonly en: "List files and folders in a directory.";
|
|
31
|
+
readonly zh: "列出目录中的文件和文件夹。";
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "grep";
|
|
35
|
+
readonly description: {
|
|
36
|
+
readonly en: "Search file contents for text or patterns.";
|
|
37
|
+
readonly zh: "在文件内容中搜索文本或模式。";
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
readonly id: "find";
|
|
41
|
+
readonly description: {
|
|
42
|
+
readonly en: "Find files and folders by name or path.";
|
|
43
|
+
readonly zh: "按名称或路径查找文件和文件夹。";
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
readonly id: "exec_command";
|
|
47
|
+
readonly description: {
|
|
48
|
+
readonly en: "Run shell commands in the workspace.";
|
|
49
|
+
readonly zh: "在工作区中运行终端命令。";
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
readonly id: "update_plan";
|
|
53
|
+
readonly description: {
|
|
54
|
+
readonly en: "Create and update the progress plan for a task.";
|
|
55
|
+
readonly zh: "创建并更新任务的执行计划。";
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
readonly id: "session_status";
|
|
59
|
+
readonly description: {
|
|
60
|
+
readonly en: "Inspect the current session status and usage.";
|
|
61
|
+
readonly zh: "查看当前会话状态和用量。";
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
readonly id: "dreaming";
|
|
65
|
+
readonly description: {
|
|
66
|
+
readonly en: "Run configured background reflection and consolidation.";
|
|
67
|
+
readonly zh: "运行已配置的后台反思与信息整理。";
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
readonly id: "tool_manual";
|
|
71
|
+
readonly description: {
|
|
72
|
+
readonly en: "Open detailed usage guidance for supported tools.";
|
|
73
|
+
readonly zh: "查看受支持工具的详细使用说明。";
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
readonly id: "clarify";
|
|
77
|
+
readonly description: {
|
|
78
|
+
readonly en: "Ask the user a structured clarification question.";
|
|
79
|
+
readonly zh: "向用户提出结构化的澄清问题。";
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
readonly id: "todo";
|
|
83
|
+
readonly description: {
|
|
84
|
+
readonly en: "Manage the task checklist for the current session.";
|
|
85
|
+
readonly zh: "管理当前会话的任务清单。";
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
readonly id: "skills_list";
|
|
89
|
+
readonly description: {
|
|
90
|
+
readonly en: "List skills available to the current agent.";
|
|
91
|
+
readonly zh: "列出当前 Agent 可使用的技能。";
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
readonly id: "skill_view";
|
|
95
|
+
readonly description: {
|
|
96
|
+
readonly en: "Read the instructions for a selected skill.";
|
|
97
|
+
readonly zh: "读取指定技能的使用说明。";
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
readonly id: "skill_manage";
|
|
101
|
+
readonly description: {
|
|
102
|
+
readonly en: "Create, update, or remove managed skills.";
|
|
103
|
+
readonly zh: "创建、更新或移除托管技能。";
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
readonly id: "skills_marketplace_search";
|
|
107
|
+
readonly description: {
|
|
108
|
+
readonly en: "Search the skills marketplace.";
|
|
109
|
+
readonly zh: "搜索技能市场中的可用技能。";
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
readonly id: "skill_install";
|
|
113
|
+
readonly description: {
|
|
114
|
+
readonly en: "Install a skill from an approved source.";
|
|
115
|
+
readonly zh: "从受支持的来源安装技能。";
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
readonly id: "web_search";
|
|
119
|
+
readonly description: {
|
|
120
|
+
readonly en: "Search the web for current information.";
|
|
121
|
+
readonly zh: "搜索互联网中的最新信息。";
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
readonly id: "web_fetch";
|
|
125
|
+
readonly description: {
|
|
126
|
+
readonly en: "Fetch readable content from a web address.";
|
|
127
|
+
readonly zh: "获取网页地址中的可读内容。";
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
readonly id: "web_extract";
|
|
131
|
+
readonly description: {
|
|
132
|
+
readonly en: "Extract structured information from web pages.";
|
|
133
|
+
readonly zh: "从网页中提取结构化信息。";
|
|
134
|
+
};
|
|
135
|
+
}, {
|
|
136
|
+
readonly id: "send_message";
|
|
137
|
+
readonly description: {
|
|
138
|
+
readonly en: "Send a message through the current channel.";
|
|
139
|
+
readonly zh: "通过当前渠道发送消息。";
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
readonly id: "send_media";
|
|
143
|
+
readonly description: {
|
|
144
|
+
readonly en: "Send an image, audio, video, or file.";
|
|
145
|
+
readonly zh: "发送图片、音频、视频或文件。";
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
readonly id: "read_media";
|
|
149
|
+
readonly description: {
|
|
150
|
+
readonly en: "Inspect attached images, audio, video, or files.";
|
|
151
|
+
readonly zh: "读取和分析附加的图片、音频、视频或文件。";
|
|
152
|
+
};
|
|
153
|
+
}, {
|
|
154
|
+
readonly id: "create_share";
|
|
155
|
+
readonly description: {
|
|
156
|
+
readonly en: "Create a shareable link for supported content.";
|
|
157
|
+
readonly zh: "为受支持的内容创建分享链接。";
|
|
158
|
+
};
|
|
159
|
+
}, {
|
|
160
|
+
readonly id: "text_to_speech";
|
|
161
|
+
readonly description: {
|
|
162
|
+
readonly en: "Convert text into spoken audio.";
|
|
163
|
+
readonly zh: "将文本转换为语音音频。";
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
readonly id: "memory_search";
|
|
167
|
+
readonly description: {
|
|
168
|
+
readonly en: "Search long-term memory for relevant context.";
|
|
169
|
+
readonly zh: "在长期记忆中搜索相关上下文。";
|
|
170
|
+
};
|
|
171
|
+
}, {
|
|
172
|
+
readonly id: "memory_get";
|
|
173
|
+
readonly description: {
|
|
174
|
+
readonly en: "Read a specific item from long-term memory.";
|
|
175
|
+
readonly zh: "读取一条指定的长期记忆。";
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
readonly id: "session_search";
|
|
179
|
+
readonly description: {
|
|
180
|
+
readonly en: "Search previous conversation sessions.";
|
|
181
|
+
readonly zh: "搜索过去的对话会话。";
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
readonly id: "automation";
|
|
185
|
+
readonly description: {
|
|
186
|
+
readonly en: "Create and manage scheduled or recurring automations.";
|
|
187
|
+
readonly zh: "创建和管理定时或重复执行的自动化。";
|
|
188
|
+
};
|
|
189
|
+
}, {
|
|
190
|
+
readonly id: "workflow";
|
|
191
|
+
readonly description: {
|
|
192
|
+
readonly en: "Start and interact with configured workflows.";
|
|
193
|
+
readonly zh: "启动并操作已配置的工作流。";
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
readonly id: "delegate_task";
|
|
197
|
+
readonly description: {
|
|
198
|
+
readonly en: "Delegate a focused subtask to another agent.";
|
|
199
|
+
readonly zh: "将明确的子任务委派给其他 Agent。";
|
|
200
|
+
};
|
|
201
|
+
}, {
|
|
202
|
+
readonly id: "execute_code";
|
|
203
|
+
readonly description: {
|
|
204
|
+
readonly en: "Run code in a managed execution environment.";
|
|
205
|
+
readonly zh: "在托管的运行环境中执行代码。";
|
|
206
|
+
};
|
|
207
|
+
}, {
|
|
208
|
+
readonly id: "image";
|
|
209
|
+
readonly description: {
|
|
210
|
+
readonly en: "Analyze images with a vision-capable model.";
|
|
211
|
+
readonly zh: "使用视觉模型分析图片。";
|
|
212
|
+
};
|
|
213
|
+
}, {
|
|
214
|
+
readonly id: "image_generate";
|
|
215
|
+
readonly description: {
|
|
216
|
+
readonly en: "Generate or edit images from instructions.";
|
|
217
|
+
readonly zh: "根据指令生成或编辑图片。";
|
|
218
|
+
};
|
|
219
|
+
}, {
|
|
220
|
+
readonly id: "create_desktop_pet";
|
|
221
|
+
readonly description: {
|
|
222
|
+
readonly en: "Create and install a custom desktop pet.";
|
|
223
|
+
readonly zh: "创建并安装自定义桌面宠物。";
|
|
224
|
+
};
|
|
225
|
+
}, {
|
|
226
|
+
readonly id: "browser_use";
|
|
227
|
+
readonly description: {
|
|
228
|
+
readonly en: "Navigate and interact with websites in a browser.";
|
|
229
|
+
readonly zh: "在浏览器中访问并操作网站。";
|
|
230
|
+
};
|
|
231
|
+
}, {
|
|
232
|
+
readonly id: "xopc_tool_search";
|
|
233
|
+
readonly description: {
|
|
234
|
+
readonly en: "Search connected apps, MCP servers, and extension tools.";
|
|
235
|
+
readonly zh: "搜索连接器、MCP 服务和扩展提供的工具。";
|
|
236
|
+
};
|
|
237
|
+
}, {
|
|
238
|
+
readonly id: "xopc_tool_describe";
|
|
239
|
+
readonly description: {
|
|
240
|
+
readonly en: "Load the exact contract for an external tool.";
|
|
241
|
+
readonly zh: "读取外部工具的完整调用约定。";
|
|
242
|
+
};
|
|
243
|
+
}, {
|
|
244
|
+
readonly id: "xopc_tool_execute";
|
|
245
|
+
readonly description: {
|
|
246
|
+
readonly en: "Execute a selected external tool with validated input.";
|
|
247
|
+
readonly zh: "使用已验证的参数执行选定的外部工具。";
|
|
248
|
+
};
|
|
249
|
+
}];
|
|
250
|
+
export declare const GATEWAY_BUILTIN_TOOL_IDS: ("automation" | "workflow" | "find" | "todo" | "image" | "clarify" | "dreaming" | "memory_search" | "memory_get" | "web_search" | "web_fetch" | "browser_use" | "grep" | "session_search" | "read_file" | "list_dir" | "write_file" | "apply_patch" | "exec_command" | "update_plan" | "xopc_tool_search" | "xopc_tool_describe" | "xopc_tool_execute" | "web_extract" | "image_generate" | "skills_list" | "skill_view" | "skill_manage" | "skills_marketplace_search" | "send_message" | "send_media" | "read_media" | "create_share" | "session_status" | "tool_manual" | "delegate_task" | "skill_install" | "text_to_speech" | "execute_code" | "create_desktop_pet")[];
|
|
@@ -1,51 +1,289 @@
|
|
|
1
1
|
import { EXTERNAL_TOOL_NAMES } from "../agent/external-tools/gateway-tools.js";
|
|
2
2
|
import "../agent/external-tools/index.js";
|
|
3
3
|
//#region src/gateway/agent-builtin-tools.ts
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
4
|
+
/** Built-in agent tools exposed by the gateway configuration UI. */
|
|
5
|
+
const GATEWAY_BUILTIN_TOOLS = [
|
|
6
|
+
{
|
|
7
|
+
id: "read_file",
|
|
8
|
+
description: {
|
|
9
|
+
en: "Read file contents from the workspace.",
|
|
10
|
+
zh: "读取工作区中的文件内容。"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "write_file",
|
|
15
|
+
description: {
|
|
16
|
+
en: "Create or replace a file in the workspace.",
|
|
17
|
+
zh: "在工作区中创建或覆盖文件。"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "apply_patch",
|
|
22
|
+
description: {
|
|
23
|
+
en: "Apply precise, reviewable changes to workspace files.",
|
|
24
|
+
zh: "对工作区文件应用精确且便于审查的修改。"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "list_dir",
|
|
29
|
+
description: {
|
|
30
|
+
en: "List files and folders in a directory.",
|
|
31
|
+
zh: "列出目录中的文件和文件夹。"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "grep",
|
|
36
|
+
description: {
|
|
37
|
+
en: "Search file contents for text or patterns.",
|
|
38
|
+
zh: "在文件内容中搜索文本或模式。"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: "find",
|
|
43
|
+
description: {
|
|
44
|
+
en: "Find files and folders by name or path.",
|
|
45
|
+
zh: "按名称或路径查找文件和文件夹。"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "exec_command",
|
|
50
|
+
description: {
|
|
51
|
+
en: "Run shell commands in the workspace.",
|
|
52
|
+
zh: "在工作区中运行终端命令。"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "update_plan",
|
|
57
|
+
description: {
|
|
58
|
+
en: "Create and update the progress plan for a task.",
|
|
59
|
+
zh: "创建并更新任务的执行计划。"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "session_status",
|
|
64
|
+
description: {
|
|
65
|
+
en: "Inspect the current session status and usage.",
|
|
66
|
+
zh: "查看当前会话状态和用量。"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "dreaming",
|
|
71
|
+
description: {
|
|
72
|
+
en: "Run configured background reflection and consolidation.",
|
|
73
|
+
zh: "运行已配置的后台反思与信息整理。"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "tool_manual",
|
|
78
|
+
description: {
|
|
79
|
+
en: "Open detailed usage guidance for supported tools.",
|
|
80
|
+
zh: "查看受支持工具的详细使用说明。"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: "clarify",
|
|
85
|
+
description: {
|
|
86
|
+
en: "Ask the user a structured clarification question.",
|
|
87
|
+
zh: "向用户提出结构化的澄清问题。"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "todo",
|
|
92
|
+
description: {
|
|
93
|
+
en: "Manage the task checklist for the current session.",
|
|
94
|
+
zh: "管理当前会话的任务清单。"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: "skills_list",
|
|
99
|
+
description: {
|
|
100
|
+
en: "List skills available to the current agent.",
|
|
101
|
+
zh: "列出当前 Agent 可使用的技能。"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "skill_view",
|
|
106
|
+
description: {
|
|
107
|
+
en: "Read the instructions for a selected skill.",
|
|
108
|
+
zh: "读取指定技能的使用说明。"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: "skill_manage",
|
|
113
|
+
description: {
|
|
114
|
+
en: "Create, update, or remove managed skills.",
|
|
115
|
+
zh: "创建、更新或移除托管技能。"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "skills_marketplace_search",
|
|
120
|
+
description: {
|
|
121
|
+
en: "Search the skills marketplace.",
|
|
122
|
+
zh: "搜索技能市场中的可用技能。"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: "skill_install",
|
|
127
|
+
description: {
|
|
128
|
+
en: "Install a skill from an approved source.",
|
|
129
|
+
zh: "从受支持的来源安装技能。"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: "web_search",
|
|
134
|
+
description: {
|
|
135
|
+
en: "Search the web for current information.",
|
|
136
|
+
zh: "搜索互联网中的最新信息。"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
id: "web_fetch",
|
|
141
|
+
description: {
|
|
142
|
+
en: "Fetch readable content from a web address.",
|
|
143
|
+
zh: "获取网页地址中的可读内容。"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: "web_extract",
|
|
148
|
+
description: {
|
|
149
|
+
en: "Extract structured information from web pages.",
|
|
150
|
+
zh: "从网页中提取结构化信息。"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: "send_message",
|
|
155
|
+
description: {
|
|
156
|
+
en: "Send a message through the current channel.",
|
|
157
|
+
zh: "通过当前渠道发送消息。"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: "send_media",
|
|
162
|
+
description: {
|
|
163
|
+
en: "Send an image, audio, video, or file.",
|
|
164
|
+
zh: "发送图片、音频、视频或文件。"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "read_media",
|
|
169
|
+
description: {
|
|
170
|
+
en: "Inspect attached images, audio, video, or files.",
|
|
171
|
+
zh: "读取和分析附加的图片、音频、视频或文件。"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: "create_share",
|
|
176
|
+
description: {
|
|
177
|
+
en: "Create a shareable link for supported content.",
|
|
178
|
+
zh: "为受支持的内容创建分享链接。"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: "text_to_speech",
|
|
183
|
+
description: {
|
|
184
|
+
en: "Convert text into spoken audio.",
|
|
185
|
+
zh: "将文本转换为语音音频。"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: "memory_search",
|
|
190
|
+
description: {
|
|
191
|
+
en: "Search long-term memory for relevant context.",
|
|
192
|
+
zh: "在长期记忆中搜索相关上下文。"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: "memory_get",
|
|
197
|
+
description: {
|
|
198
|
+
en: "Read a specific item from long-term memory.",
|
|
199
|
+
zh: "读取一条指定的长期记忆。"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: "session_search",
|
|
204
|
+
description: {
|
|
205
|
+
en: "Search previous conversation sessions.",
|
|
206
|
+
zh: "搜索过去的对话会话。"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: "automation",
|
|
211
|
+
description: {
|
|
212
|
+
en: "Create and manage scheduled or recurring automations.",
|
|
213
|
+
zh: "创建和管理定时或重复执行的自动化。"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
id: "workflow",
|
|
218
|
+
description: {
|
|
219
|
+
en: "Start and interact with configured workflows.",
|
|
220
|
+
zh: "启动并操作已配置的工作流。"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: "delegate_task",
|
|
225
|
+
description: {
|
|
226
|
+
en: "Delegate a focused subtask to another agent.",
|
|
227
|
+
zh: "将明确的子任务委派给其他 Agent。"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: "execute_code",
|
|
232
|
+
description: {
|
|
233
|
+
en: "Run code in a managed execution environment.",
|
|
234
|
+
zh: "在托管的运行环境中执行代码。"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "image",
|
|
239
|
+
description: {
|
|
240
|
+
en: "Analyze images with a vision-capable model.",
|
|
241
|
+
zh: "使用视觉模型分析图片。"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: "image_generate",
|
|
246
|
+
description: {
|
|
247
|
+
en: "Generate or edit images from instructions.",
|
|
248
|
+
zh: "根据指令生成或编辑图片。"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: "create_desktop_pet",
|
|
253
|
+
description: {
|
|
254
|
+
en: "Create and install a custom desktop pet.",
|
|
255
|
+
zh: "创建并安装自定义桌面宠物。"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
id: "browser_use",
|
|
260
|
+
description: {
|
|
261
|
+
en: "Navigate and interact with websites in a browser.",
|
|
262
|
+
zh: "在浏览器中访问并操作网站。"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: EXTERNAL_TOOL_NAMES.search,
|
|
267
|
+
description: {
|
|
268
|
+
en: "Search connected apps, MCP servers, and extension tools.",
|
|
269
|
+
zh: "搜索连接器、MCP 服务和扩展提供的工具。"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: EXTERNAL_TOOL_NAMES.describe,
|
|
274
|
+
description: {
|
|
275
|
+
en: "Load the exact contract for an external tool.",
|
|
276
|
+
zh: "读取外部工具的完整调用约定。"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: EXTERNAL_TOOL_NAMES.execute,
|
|
281
|
+
description: {
|
|
282
|
+
en: "Execute a selected external tool with validated input.",
|
|
283
|
+
zh: "使用已验证的参数执行选定的外部工具。"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
49
286
|
];
|
|
287
|
+
const GATEWAY_BUILTIN_TOOL_IDS = GATEWAY_BUILTIN_TOOLS.map(({ id }) => id);
|
|
50
288
|
//#endregion
|
|
51
|
-
export { GATEWAY_BUILTIN_TOOL_IDS };
|
|
289
|
+
export { GATEWAY_BUILTIN_TOOLS, GATEWAY_BUILTIN_TOOL_IDS };
|