opc-agent 4.1.2 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/channels/dingtalk.d.ts.map +1 -0
- package/dist/channels/dingtalk.js.map +1 -0
- package/dist/channels/discord.d.ts.map +1 -0
- package/dist/channels/discord.js.map +1 -0
- package/dist/channels/email.d.ts.map +1 -0
- package/dist/channels/email.js.map +1 -0
- package/dist/channels/feishu.d.ts.map +1 -0
- package/dist/channels/feishu.js.map +1 -0
- package/dist/channels/googlechat.d.ts.map +1 -0
- package/dist/channels/googlechat.js.map +1 -0
- package/dist/channels/imessage.d.ts.map +1 -0
- package/dist/channels/imessage.js.map +1 -0
- package/dist/channels/index.d.ts.map +1 -0
- package/dist/channels/index.js.map +1 -0
- package/dist/channels/irc.d.ts.map +1 -0
- package/dist/channels/irc.js.map +1 -0
- package/dist/channels/line.d.ts.map +1 -0
- package/dist/channels/line.js.map +1 -0
- package/dist/channels/matrix.d.ts.map +1 -0
- package/dist/channels/matrix.js.map +1 -0
- package/dist/channels/mattermost.d.ts.map +1 -0
- package/dist/channels/mattermost.js.map +1 -0
- package/dist/channels/msteams.d.ts.map +1 -0
- package/dist/channels/msteams.js.map +1 -0
- package/dist/channels/nostr.d.ts.map +1 -0
- package/dist/channels/nostr.js.map +1 -0
- package/dist/channels/qq.d.ts.map +1 -0
- package/dist/channels/qq.js.map +1 -0
- package/dist/channels/signal.d.ts.map +1 -0
- package/dist/channels/signal.js.map +1 -0
- package/dist/channels/slack.d.ts.map +1 -0
- package/dist/channels/slack.js.map +1 -0
- package/dist/channels/sms.d.ts.map +1 -0
- package/dist/channels/sms.js.map +1 -0
- package/dist/channels/telegram.d.ts.map +1 -0
- package/dist/channels/telegram.js.map +1 -0
- package/dist/channels/twitch.d.ts.map +1 -0
- package/dist/channels/twitch.js.map +1 -0
- package/dist/channels/voice-call.d.ts.map +1 -0
- package/dist/channels/voice-call.js.map +1 -0
- package/dist/channels/voice.d.ts.map +1 -0
- package/dist/channels/voice.js.map +1 -0
- package/dist/channels/web.d.ts.map +1 -0
- package/dist/channels/web.js.map +1 -0
- package/dist/channels/webhook.d.ts.map +1 -0
- package/dist/channels/webhook.js.map +1 -0
- package/dist/channels/websocket.d.ts.map +1 -0
- package/dist/channels/websocket.js.map +1 -0
- package/dist/channels/wechat.d.ts.map +1 -0
- package/dist/channels/wechat.js.map +1 -0
- package/dist/channels/whatsapp.d.ts.map +1 -0
- package/dist/channels/whatsapp.js.map +1 -0
- package/dist/cli/chat.d.ts.map +1 -0
- package/dist/cli/chat.js.map +1 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +108 -11
- package/dist/cli.js.map +1 -0
- package/dist/core/a2a.d.ts.map +1 -0
- package/dist/core/a2a.js.map +1 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js.map +1 -0
- package/dist/core/analytics-engine.d.ts.map +1 -0
- package/dist/core/analytics-engine.js.map +1 -0
- package/dist/core/api-server.d.ts.map +1 -0
- package/dist/core/api-server.js.map +1 -0
- package/dist/core/audio.d.ts.map +1 -0
- package/dist/core/audio.js.map +1 -0
- package/dist/core/auth.d.ts.map +1 -0
- package/dist/core/auth.js.map +1 -0
- package/dist/core/cache.d.ts.map +1 -0
- package/dist/core/cache.js.map +1 -0
- package/dist/core/collaboration.d.ts.map +1 -0
- package/dist/core/collaboration.js.map +1 -0
- package/dist/core/compose.d.ts.map +1 -0
- package/dist/core/compose.js.map +1 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/context-discovery.d.ts.map +1 -0
- package/dist/core/context-discovery.js.map +1 -0
- package/dist/core/context-refs.d.ts.map +1 -0
- package/dist/core/context-refs.js.map +1 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/gateway.d.ts.map +1 -0
- package/dist/core/gateway.js.map +1 -0
- package/dist/core/heartbeat.d.ts.map +1 -0
- package/dist/core/heartbeat.js.map +1 -0
- package/dist/core/hitl.d.ts.map +1 -0
- package/dist/core/hitl.js.map +1 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/ide-bridge.d.ts.map +1 -0
- package/dist/core/ide-bridge.js.map +1 -0
- package/dist/core/knowledge.d.ts.map +1 -0
- package/dist/core/knowledge.js.map +1 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/model-recommender.d.ts +40 -0
- package/dist/core/model-recommender.d.ts.map +1 -0
- package/dist/core/model-recommender.js +186 -0
- package/dist/core/model-recommender.js.map +1 -0
- package/dist/core/node-network.d.ts.map +1 -0
- package/dist/core/node-network.js.map +1 -0
- package/dist/core/orchestrator.d.ts.map +1 -0
- package/dist/core/orchestrator.js.map +1 -0
- package/dist/core/performance.d.ts.map +1 -0
- package/dist/core/performance.js.map +1 -0
- package/dist/core/profiles.d.ts.map +1 -0
- package/dist/core/profiles.js.map +1 -0
- package/dist/core/rate-limiter.d.ts.map +1 -0
- package/dist/core/rate-limiter.js.map +1 -0
- package/dist/core/room.d.ts.map +1 -0
- package/dist/core/room.js.map +1 -0
- package/dist/core/runtime.d.ts.map +1 -0
- package/dist/core/runtime.js.map +1 -0
- package/dist/core/sandbox.d.ts.map +1 -0
- package/dist/core/sandbox.js.map +1 -0
- package/dist/core/scheduler.d.ts.map +1 -0
- package/dist/core/scheduler.js.map +1 -0
- package/dist/core/security.d.ts.map +1 -0
- package/dist/core/security.js.map +1 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/streaming.d.ts.map +1 -0
- package/dist/core/streaming.js.map +1 -0
- package/dist/core/subagent.d.ts.map +1 -0
- package/dist/core/subagent.js.map +1 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/versioning.d.ts.map +1 -0
- package/dist/core/versioning.js.map +1 -0
- package/dist/core/vision.d.ts.map +1 -0
- package/dist/core/vision.js.map +1 -0
- package/dist/core/watch.d.ts.map +1 -0
- package/dist/core/watch.js.map +1 -0
- package/dist/core/workflow-graph.d.ts.map +1 -0
- package/dist/core/workflow-graph.js.map +1 -0
- package/dist/core/workflow.d.ts.map +1 -0
- package/dist/core/workflow.js.map +1 -0
- package/dist/daemon.d.ts.map +1 -0
- package/dist/daemon.js.map +1 -0
- package/dist/deploy/hermes.d.ts.map +1 -0
- package/dist/deploy/hermes.js.map +1 -0
- package/dist/deploy/index.d.ts.map +1 -0
- package/dist/deploy/index.js.map +1 -0
- package/dist/deploy/openclaw.d.ts.map +1 -0
- package/dist/deploy/openclaw.js.map +1 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js.map +1 -0
- package/dist/eval/index.d.ts.map +1 -0
- package/dist/eval/index.js.map +1 -0
- package/dist/hub/brain-seed.d.ts.map +1 -0
- package/dist/hub/brain-seed.js.map +1 -0
- package/dist/hub/client.d.ts.map +1 -0
- package/dist/hub/client.js.map +1 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -0
- package/dist/mcp/servers/calculator-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/calculator-mcp.js.map +1 -0
- package/dist/mcp/servers/crypto-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/crypto-mcp.js.map +1 -0
- package/dist/mcp/servers/database-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/database-mcp.js.map +1 -0
- package/dist/mcp/servers/datetime-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/datetime-mcp.js.map +1 -0
- package/dist/mcp/servers/filesystem.d.ts.map +1 -0
- package/dist/mcp/servers/filesystem.js.map +1 -0
- package/dist/mcp/servers/github-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/github-mcp.js.map +1 -0
- package/dist/mcp/servers/index.d.ts.map +1 -0
- package/dist/mcp/servers/index.js.map +1 -0
- package/dist/mcp/servers/json-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/json-mcp.js.map +1 -0
- package/dist/mcp/servers/memory-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/memory-mcp.js.map +1 -0
- package/dist/mcp/servers/regex-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/regex-mcp.js.map +1 -0
- package/dist/mcp/servers/web-mcp.d.ts.map +1 -0
- package/dist/mcp/servers/web-mcp.js.map +1 -0
- package/dist/memory/context-compressor.d.ts.map +1 -0
- package/dist/memory/context-compressor.js.map +1 -0
- package/dist/memory/deepbrain.d.ts.map +1 -0
- package/dist/memory/deepbrain.js.map +1 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/seed-loader.d.ts.map +1 -0
- package/dist/memory/seed-loader.js.map +1 -0
- package/dist/memory/user-profiler.d.ts.map +1 -0
- package/dist/memory/user-profiler.js.map +1 -0
- package/dist/plugins/content-filter.d.ts.map +1 -0
- package/dist/plugins/content-filter.js.map +1 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/logger.d.ts.map +1 -0
- package/dist/plugins/logger.js.map +1 -0
- package/dist/plugins/rate-limiter.d.ts.map +1 -0
- package/dist/plugins/rate-limiter.js.map +1 -0
- package/dist/protocols/a2a/client.d.ts.map +1 -0
- package/dist/protocols/a2a/client.js.map +1 -0
- package/dist/protocols/a2a/index.d.ts.map +1 -0
- package/dist/protocols/a2a/index.js.map +1 -0
- package/dist/protocols/a2a/server.d.ts.map +1 -0
- package/dist/protocols/a2a/server.js.map +1 -0
- package/dist/protocols/a2a/types.d.ts.map +1 -0
- package/dist/protocols/a2a/types.js.map +1 -0
- package/dist/protocols/a2a/utils.d.ts.map +1 -0
- package/dist/protocols/a2a/utils.js.map +1 -0
- package/dist/protocols/agui/client.d.ts.map +1 -0
- package/dist/protocols/agui/client.js.map +1 -0
- package/dist/protocols/agui/index.d.ts.map +1 -0
- package/dist/protocols/agui/index.js.map +1 -0
- package/dist/protocols/agui/server.d.ts.map +1 -0
- package/dist/protocols/agui/server.js.map +1 -0
- package/dist/protocols/agui/types.d.ts.map +1 -0
- package/dist/protocols/agui/types.js.map +1 -0
- package/dist/protocols/index.d.ts.map +1 -0
- package/dist/protocols/index.js.map +1 -0
- package/dist/protocols/mcp/agent-tools.d.ts.map +1 -0
- package/dist/protocols/mcp/agent-tools.js.map +1 -0
- package/dist/protocols/mcp/index.d.ts.map +1 -0
- package/dist/protocols/mcp/index.js.map +1 -0
- package/dist/protocols/mcp/server.d.ts.map +1 -0
- package/dist/protocols/mcp/server.js.map +1 -0
- package/dist/protocols/mcp/types.d.ts.map +1 -0
- package/dist/protocols/mcp/types.js.map +1 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/publish/index.d.ts.map +1 -0
- package/dist/publish/index.js.map +1 -0
- package/dist/scheduler/cron-engine.d.ts.map +1 -0
- package/dist/scheduler/cron-engine.js.map +1 -0
- package/dist/scheduler/index.d.ts.map +1 -0
- package/dist/scheduler/index.js.map +1 -0
- package/dist/schema/oad.d.ts.map +1 -0
- package/dist/schema/oad.js.map +1 -0
- package/dist/security/approval.d.ts.map +1 -0
- package/dist/security/approval.js.map +1 -0
- package/dist/security/approvals.d.ts.map +1 -0
- package/dist/security/approvals.js.map +1 -0
- package/dist/security/elevated.d.ts.map +1 -0
- package/dist/security/elevated.js.map +1 -0
- package/dist/security/guardrails.d.ts.map +1 -0
- package/dist/security/guardrails.js.map +1 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/keys.d.ts.map +1 -0
- package/dist/security/keys.js.map +1 -0
- package/dist/security/secrets.d.ts.map +1 -0
- package/dist/security/secrets.js.map +1 -0
- package/dist/skills/auto-learn.d.ts.map +1 -0
- package/dist/skills/auto-learn.js.map +1 -0
- package/dist/skills/base.d.ts.map +1 -0
- package/dist/skills/base.js.map +1 -0
- package/dist/skills/builtin/index.d.ts.map +1 -0
- package/dist/skills/builtin/index.js.map +1 -0
- package/dist/skills/document.d.ts.map +1 -0
- package/dist/skills/document.js.map +1 -0
- package/dist/skills/http.d.ts.map +1 -0
- package/dist/skills/http.js.map +1 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/marketplace.d.ts.map +1 -0
- package/dist/skills/marketplace.js.map +1 -0
- package/dist/skills/scheduler.d.ts.map +1 -0
- package/dist/skills/scheduler.js.map +1 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/skills/webhook-trigger.d.ts.map +1 -0
- package/dist/skills/webhook-trigger.js.map +1 -0
- package/dist/studio/server.d.ts.map +1 -0
- package/dist/studio/server.js.map +1 -0
- package/dist/studio/templates-data.d.ts.map +1 -0
- package/dist/studio/templates-data.js.map +1 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/templates/code-reviewer.d.ts.map +1 -0
- package/dist/templates/code-reviewer.js.map +1 -0
- package/dist/templates/content-writer.d.ts.map +1 -0
- package/dist/templates/content-writer.js.map +1 -0
- package/dist/templates/customer-service.d.ts.map +1 -0
- package/dist/templates/customer-service.js.map +1 -0
- package/dist/templates/data-analyst.d.ts.map +1 -0
- package/dist/templates/data-analyst.js.map +1 -0
- package/dist/templates/executive-assistant.d.ts.map +1 -0
- package/dist/templates/executive-assistant.js.map +1 -0
- package/dist/templates/financial-advisor.d.ts.map +1 -0
- package/dist/templates/financial-advisor.js.map +1 -0
- package/dist/templates/hr-recruiter.d.ts.map +1 -0
- package/dist/templates/hr-recruiter.js.map +1 -0
- package/dist/templates/knowledge-base.d.ts.map +1 -0
- package/dist/templates/knowledge-base.js.map +1 -0
- package/dist/templates/legal-assistant.d.ts.map +1 -0
- package/dist/templates/legal-assistant.js.map +1 -0
- package/dist/templates/project-manager.d.ts.map +1 -0
- package/dist/templates/project-manager.js.map +1 -0
- package/dist/templates/sales-assistant.d.ts.map +1 -0
- package/dist/templates/sales-assistant.js.map +1 -0
- package/dist/templates/teacher.d.ts.map +1 -0
- package/dist/templates/teacher.js.map +1 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/tools/builtin/browser.d.ts.map +1 -0
- package/dist/tools/builtin/browser.js.map +1 -0
- package/dist/tools/builtin/datetime.d.ts.map +1 -0
- package/dist/tools/builtin/datetime.js.map +1 -0
- package/dist/tools/builtin/file.d.ts.map +1 -0
- package/dist/tools/builtin/file.js.map +1 -0
- package/dist/tools/builtin/home-assistant.d.ts.map +1 -0
- package/dist/tools/builtin/home-assistant.js.map +1 -0
- package/dist/tools/builtin/index.d.ts.map +1 -0
- package/dist/tools/builtin/index.js.map +1 -0
- package/dist/tools/builtin/rl-tools.d.ts.map +1 -0
- package/dist/tools/builtin/rl-tools.js.map +1 -0
- package/dist/tools/builtin/shell.d.ts.map +1 -0
- package/dist/tools/builtin/shell.js.map +1 -0
- package/dist/tools/builtin/vision.d.ts.map +1 -0
- package/dist/tools/builtin/vision.js.map +1 -0
- package/dist/tools/builtin/web-search.d.ts.map +1 -0
- package/dist/tools/builtin/web-search.js.map +1 -0
- package/dist/tools/builtin/web.d.ts.map +1 -0
- package/dist/tools/builtin/web.js.map +1 -0
- package/dist/tools/calculator.d.ts.map +1 -0
- package/dist/tools/calculator.js.map +1 -0
- package/dist/tools/datetime.d.ts.map +1 -0
- package/dist/tools/datetime.js.map +1 -0
- package/dist/tools/document-processor.d.ts.map +1 -0
- package/dist/tools/document-processor.js.map +1 -0
- package/dist/tools/gateway.d.ts.map +1 -0
- package/dist/tools/gateway.js.map +1 -0
- package/dist/tools/image-generator.d.ts.map +1 -0
- package/dist/tools/image-generator.js.map +1 -0
- package/dist/tools/integrations/calendar.d.ts.map +1 -0
- package/dist/tools/integrations/calendar.js.map +1 -0
- package/dist/tools/integrations/code-exec.d.ts.map +1 -0
- package/dist/tools/integrations/code-exec.js.map +1 -0
- package/dist/tools/integrations/csv-analyzer.d.ts.map +1 -0
- package/dist/tools/integrations/csv-analyzer.js.map +1 -0
- package/dist/tools/integrations/database.d.ts.map +1 -0
- package/dist/tools/integrations/database.js.map +1 -0
- package/dist/tools/integrations/email-send.d.ts.map +1 -0
- package/dist/tools/integrations/email-send.js.map +1 -0
- package/dist/tools/integrations/git-tool.d.ts.map +1 -0
- package/dist/tools/integrations/git-tool.js.map +1 -0
- package/dist/tools/integrations/github-tool.d.ts.map +1 -0
- package/dist/tools/integrations/github-tool.js.map +1 -0
- package/dist/tools/integrations/image-gen.d.ts.map +1 -0
- package/dist/tools/integrations/image-gen.js.map +1 -0
- package/dist/tools/integrations/index.d.ts.map +1 -0
- package/dist/tools/integrations/index.js.map +1 -0
- package/dist/tools/integrations/jira.d.ts.map +1 -0
- package/dist/tools/integrations/jira.js.map +1 -0
- package/dist/tools/integrations/notion.d.ts.map +1 -0
- package/dist/tools/integrations/notion.js.map +1 -0
- package/dist/tools/integrations/npm-tool.d.ts.map +1 -0
- package/dist/tools/integrations/npm-tool.js.map +1 -0
- package/dist/tools/integrations/pdf-reader.d.ts.map +1 -0
- package/dist/tools/integrations/pdf-reader.js.map +1 -0
- package/dist/tools/integrations/slack.d.ts.map +1 -0
- package/dist/tools/integrations/slack.js.map +1 -0
- package/dist/tools/integrations/summarizer.d.ts.map +1 -0
- package/dist/tools/integrations/summarizer.js.map +1 -0
- package/dist/tools/integrations/translator.d.ts.map +1 -0
- package/dist/tools/integrations/translator.js.map +1 -0
- package/dist/tools/integrations/trello.d.ts.map +1 -0
- package/dist/tools/integrations/trello.js.map +1 -0
- package/dist/tools/integrations/vector-search.d.ts.map +1 -0
- package/dist/tools/integrations/vector-search.js.map +1 -0
- package/dist/tools/integrations/web-scraper.d.ts.map +1 -0
- package/dist/tools/integrations/web-scraper.js.map +1 -0
- package/dist/tools/integrations/web-search.d.ts.map +1 -0
- package/dist/tools/integrations/web-search.js.map +1 -0
- package/dist/tools/integrations/webhook.d.ts.map +1 -0
- package/dist/tools/integrations/webhook.js.map +1 -0
- package/dist/tools/json-transform.d.ts.map +1 -0
- package/dist/tools/json-transform.js.map +1 -0
- package/dist/tools/mcp-client.d.ts.map +1 -0
- package/dist/tools/mcp-client.js.map +1 -0
- package/dist/tools/mcp.d.ts.map +1 -0
- package/dist/tools/mcp.js.map +1 -0
- package/dist/tools/text-analysis.d.ts.map +1 -0
- package/dist/tools/text-analysis.js.map +1 -0
- package/dist/tools/web-scraper.d.ts.map +1 -0
- package/dist/tools/web-scraper.js.map +1 -0
- package/dist/tools/web-search.d.ts.map +1 -0
- package/dist/tools/web-search.js.map +1 -0
- package/dist/traces/index.d.ts.map +1 -0
- package/dist/traces/index.js.map +1 -0
- package/dist/ui/components.d.ts.map +1 -0
- package/dist/ui/components.js.map +1 -0
- package/models.json +164 -0
- package/package.json +1 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -20
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -14
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -13
- package/.github/workflows/ci.yml +0 -24
- package/USABILITY-ISSUES.md +0 -73
- package/docs/.vitepress/config.ts +0 -103
- package/docs/api/cli.md +0 -48
- package/docs/api/oad-schema.md +0 -64
- package/docs/api/sdk.md +0 -80
- package/docs/guide/concepts.md +0 -51
- package/docs/guide/configuration.md +0 -79
- package/docs/guide/deployment.md +0 -42
- package/docs/guide/getting-started.md +0 -44
- package/docs/guide/templates.md +0 -28
- package/docs/guide/testing.md +0 -84
- package/docs/index.md +0 -27
- package/docs/zh/api/cli.md +0 -54
- package/docs/zh/api/oad-schema.md +0 -87
- package/docs/zh/api/sdk.md +0 -102
- package/docs/zh/guide/concepts.md +0 -104
- package/docs/zh/guide/configuration.md +0 -135
- package/docs/zh/guide/deployment.md +0 -81
- package/docs/zh/guide/getting-started.md +0 -82
- package/docs/zh/guide/templates.md +0 -84
- package/docs/zh/guide/testing.md +0 -88
- package/docs/zh/index.md +0 -27
- package/fix-sidebar.mjs +0 -188
- package/serve-studio.js +0 -13
- package/serve-test.js +0 -25
- package/src/analytics/index.ts +0 -66
- package/src/channels/dingtalk.ts +0 -46
- package/src/channels/discord.ts +0 -192
- package/src/channels/email.ts +0 -351
- package/src/channels/feishu.ts +0 -349
- package/src/channels/googlechat.ts +0 -42
- package/src/channels/imessage.ts +0 -32
- package/src/channels/index.ts +0 -15
- package/src/channels/irc.ts +0 -82
- package/src/channels/line.ts +0 -33
- package/src/channels/matrix.ts +0 -34
- package/src/channels/mattermost.ts +0 -57
- package/src/channels/msteams.ts +0 -33
- package/src/channels/nostr.ts +0 -33
- package/src/channels/qq.ts +0 -34
- package/src/channels/signal.ts +0 -33
- package/src/channels/slack.ts +0 -217
- package/src/channels/sms.ts +0 -34
- package/src/channels/telegram.ts +0 -616
- package/src/channels/twitch.ts +0 -65
- package/src/channels/voice-call.ts +0 -100
- package/src/channels/voice.ts +0 -471
- package/src/channels/web.ts +0 -638
- package/src/channels/webhook.ts +0 -199
- package/src/channels/websocket.ts +0 -399
- package/src/channels/wechat.ts +0 -329
- package/src/channels/whatsapp.ts +0 -33
- package/src/cli/chat.ts +0 -99
- package/src/cli/setup.ts +0 -314
- package/src/cli.ts +0 -2826
- package/src/core/a2a.ts +0 -203
- package/src/core/agent.ts +0 -476
- package/src/core/analytics-engine.ts +0 -186
- package/src/core/api-server.ts +0 -277
- package/src/core/audio.ts +0 -98
- package/src/core/auth.ts +0 -57
- package/src/core/cache.ts +0 -141
- package/src/core/collaboration.ts +0 -275
- package/src/core/compose.ts +0 -77
- package/src/core/config.ts +0 -14
- package/src/core/context-discovery.ts +0 -85
- package/src/core/context-refs.ts +0 -140
- package/src/core/errors.ts +0 -148
- package/src/core/gateway.ts +0 -106
- package/src/core/heartbeat.ts +0 -51
- package/src/core/hitl.ts +0 -138
- package/src/core/hooks.ts +0 -105
- package/src/core/ide-bridge.ts +0 -133
- package/src/core/knowledge.ts +0 -255
- package/src/core/logger.ts +0 -57
- package/src/core/node-network.ts +0 -86
- package/src/core/orchestrator.ts +0 -215
- package/src/core/performance.ts +0 -187
- package/src/core/profiles.ts +0 -122
- package/src/core/rate-limiter.ts +0 -128
- package/src/core/room.ts +0 -109
- package/src/core/runtime.ts +0 -435
- package/src/core/sandbox.ts +0 -344
- package/src/core/scheduler.ts +0 -187
- package/src/core/security.ts +0 -171
- package/src/core/session-manager.ts +0 -137
- package/src/core/streaming.ts +0 -195
- package/src/core/subagent.ts +0 -98
- package/src/core/types.ts +0 -68
- package/src/core/versioning.ts +0 -106
- package/src/core/vision.ts +0 -180
- package/src/core/watch.ts +0 -178
- package/src/core/workflow-graph.ts +0 -365
- package/src/core/workflow.ts +0 -235
- package/src/daemon.ts +0 -96
- package/src/deploy/hermes.ts +0 -156
- package/src/deploy/index.ts +0 -255
- package/src/deploy/openclaw.ts +0 -190
- package/src/doctor.ts +0 -243
- package/src/eval/index.ts +0 -211
- package/src/eval/suites/basic.json +0 -16
- package/src/eval/suites/memory.json +0 -12
- package/src/eval/suites/safety.json +0 -14
- package/src/hub/brain-seed.ts +0 -54
- package/src/hub/client.ts +0 -60
- package/src/i18n/index.ts +0 -216
- package/src/index.ts +0 -283
- package/src/mcp/servers/calculator-mcp.ts +0 -65
- package/src/mcp/servers/crypto-mcp.ts +0 -73
- package/src/mcp/servers/database-mcp.ts +0 -72
- package/src/mcp/servers/datetime-mcp.ts +0 -69
- package/src/mcp/servers/filesystem.ts +0 -66
- package/src/mcp/servers/github-mcp.ts +0 -58
- package/src/mcp/servers/index.ts +0 -63
- package/src/mcp/servers/json-mcp.ts +0 -102
- package/src/mcp/servers/memory-mcp.ts +0 -56
- package/src/mcp/servers/regex-mcp.ts +0 -53
- package/src/mcp/servers/web-mcp.ts +0 -49
- package/src/memory/context-compressor.ts +0 -189
- package/src/memory/deepbrain.ts +0 -202
- package/src/memory/index.ts +0 -41
- package/src/memory/seed-loader.ts +0 -212
- package/src/memory/user-profiler.ts +0 -215
- package/src/plugins/content-filter.ts +0 -23
- package/src/plugins/index.ts +0 -339
- package/src/plugins/logger.ts +0 -18
- package/src/plugins/rate-limiter.ts +0 -38
- package/src/protocols/a2a/client.ts +0 -132
- package/src/protocols/a2a/index.ts +0 -8
- package/src/protocols/a2a/server.ts +0 -333
- package/src/protocols/a2a/types.ts +0 -88
- package/src/protocols/a2a/utils.ts +0 -50
- package/src/protocols/agui/client.ts +0 -83
- package/src/protocols/agui/index.ts +0 -4
- package/src/protocols/agui/server.ts +0 -218
- package/src/protocols/agui/types.ts +0 -153
- package/src/protocols/index.ts +0 -2
- package/src/protocols/mcp/agent-tools.ts +0 -134
- package/src/protocols/mcp/index.ts +0 -8
- package/src/protocols/mcp/server.ts +0 -262
- package/src/protocols/mcp/types.ts +0 -69
- package/src/providers/index.ts +0 -632
- package/src/publish/index.ts +0 -376
- package/src/scheduler/cron-engine.ts +0 -191
- package/src/scheduler/index.ts +0 -2
- package/src/schema/oad.ts +0 -217
- package/src/security/approval.ts +0 -131
- package/src/security/approvals.ts +0 -143
- package/src/security/elevated.ts +0 -105
- package/src/security/guardrails.ts +0 -248
- package/src/security/index.ts +0 -9
- package/src/security/keys.ts +0 -87
- package/src/security/secrets.ts +0 -129
- package/src/skills/auto-learn.ts +0 -262
- package/src/skills/base.ts +0 -16
- package/src/skills/builtin/index.ts +0 -408
- package/src/skills/document.ts +0 -100
- package/src/skills/http.ts +0 -35
- package/src/skills/index.ts +0 -27
- package/src/skills/marketplace.ts +0 -113
- package/src/skills/scheduler.ts +0 -80
- package/src/skills/types.ts +0 -42
- package/src/skills/webhook-trigger.ts +0 -59
- package/src/studio/server.ts +0 -1791
- package/src/studio/templates-data.ts +0 -178
- package/src/studio-ui/index.html +0 -3076
- package/src/telemetry/index.ts +0 -324
- package/src/templates/code-reviewer.ts +0 -30
- package/src/templates/content-writer.ts +0 -58
- package/src/templates/customer-service.ts +0 -76
- package/src/templates/data-analyst.ts +0 -66
- package/src/templates/executive-assistant.ts +0 -71
- package/src/templates/financial-advisor.ts +0 -60
- package/src/templates/hr-recruiter.ts +0 -58
- package/src/templates/knowledge-base.ts +0 -27
- package/src/templates/legal-assistant.ts +0 -71
- package/src/templates/project-manager.ts +0 -58
- package/src/templates/sales-assistant.ts +0 -75
- package/src/templates/teacher.ts +0 -75
- package/src/testing/index.ts +0 -181
- package/src/tools/builtin/browser.ts +0 -299
- package/src/tools/builtin/datetime.ts +0 -41
- package/src/tools/builtin/file.ts +0 -107
- package/src/tools/builtin/home-assistant.ts +0 -116
- package/src/tools/builtin/index.ts +0 -37
- package/src/tools/builtin/rl-tools.ts +0 -243
- package/src/tools/builtin/shell.ts +0 -43
- package/src/tools/builtin/vision.ts +0 -64
- package/src/tools/builtin/web-search.ts +0 -126
- package/src/tools/builtin/web.ts +0 -35
- package/src/tools/calculator.ts +0 -73
- package/src/tools/datetime.ts +0 -149
- package/src/tools/document-processor.ts +0 -213
- package/src/tools/gateway.ts +0 -220
- package/src/tools/image-generator.ts +0 -150
- package/src/tools/integrations/calendar.ts +0 -73
- package/src/tools/integrations/code-exec.ts +0 -39
- package/src/tools/integrations/csv-analyzer.ts +0 -92
- package/src/tools/integrations/database.ts +0 -44
- package/src/tools/integrations/email-send.ts +0 -76
- package/src/tools/integrations/git-tool.ts +0 -42
- package/src/tools/integrations/github-tool.ts +0 -76
- package/src/tools/integrations/image-gen.ts +0 -56
- package/src/tools/integrations/index.ts +0 -92
- package/src/tools/integrations/jira.ts +0 -83
- package/src/tools/integrations/notion.ts +0 -71
- package/src/tools/integrations/npm-tool.ts +0 -48
- package/src/tools/integrations/pdf-reader.ts +0 -58
- package/src/tools/integrations/slack.ts +0 -65
- package/src/tools/integrations/summarizer.ts +0 -49
- package/src/tools/integrations/translator.ts +0 -48
- package/src/tools/integrations/trello.ts +0 -60
- package/src/tools/integrations/vector-search.ts +0 -42
- package/src/tools/integrations/web-scraper.ts +0 -47
- package/src/tools/integrations/web-search.ts +0 -58
- package/src/tools/integrations/webhook.ts +0 -38
- package/src/tools/json-transform.ts +0 -187
- package/src/tools/mcp-client.ts +0 -131
- package/src/tools/mcp.ts +0 -76
- package/src/tools/text-analysis.ts +0 -116
- package/src/tools/web-scraper.ts +0 -179
- package/src/tools/web-search.ts +0 -180
- package/src/traces/index.ts +0 -132
- package/src/types/agent-workstation.d.ts +0 -2
- package/src/ui/components.ts +0 -127
- package/srv-err.txt +0 -0
- package/srv-out.txt +0 -1
- package/test-agent/Dockerfile +0 -9
- package/test-agent/README.md +0 -50
- package/test-agent/agent.yaml +0 -23
- package/test-agent/docker-compose.yml +0 -11
- package/test-agent/oad.yaml +0 -31
- package/test-agent/package-lock.json +0 -1492
- package/test-agent/package.json +0 -18
- package/test-agent/src/index.ts +0 -24
- package/test-agent/src/skills/echo.ts +0 -15
- package/test-agent/tsconfig.json +0 -25
- package/test-full.js +0 -43
- package/test-sidebar.js +0 -22
- package/test-studio3.js +0 -75
- package/test-studio4.js +0 -41
- package/tests/a2a-protocol.test.ts +0 -285
- package/tests/a2a.test.ts +0 -66
- package/tests/agent.test.ts +0 -72
- package/tests/agui-protocol.test.ts +0 -246
- package/tests/analytics.test.ts +0 -50
- package/tests/api-server.test.ts +0 -148
- package/tests/approvals.test.ts +0 -89
- package/tests/audio.test.ts +0 -40
- package/tests/auto-learn.test.ts +0 -105
- package/tests/brain-seed-extended.test.ts +0 -490
- package/tests/brain-seed.test.ts +0 -239
- package/tests/browser.test.ts +0 -179
- package/tests/builtin-tools.test.ts +0 -83
- package/tests/channel.test.ts +0 -39
- package/tests/channels/discord.test.ts +0 -79
- package/tests/channels/email.test.ts +0 -148
- package/tests/channels/feishu.test.ts +0 -123
- package/tests/channels/telegram.test.ts +0 -129
- package/tests/channels/websocket.test.ts +0 -53
- package/tests/channels/wechat.test.ts +0 -170
- package/tests/channels-extra.test.ts +0 -45
- package/tests/chat-cli.test.ts +0 -160
- package/tests/cli.test.ts +0 -46
- package/tests/collaboration.test.ts +0 -319
- package/tests/context-compressor.test.ts +0 -172
- package/tests/context-refs.test.ts +0 -121
- package/tests/cron-engine.test.ts +0 -101
- package/tests/daemon.test.ts +0 -135
- package/tests/deepbrain-wire.test.ts +0 -234
- package/tests/deploy-and-dag.test.ts +0 -196
- package/tests/doctor.test.ts +0 -38
- package/tests/document-processor.test.ts +0 -69
- package/tests/e2e-nocode.test.ts +0 -442
- package/tests/e2e.test.ts +0 -134
- package/tests/elevated.test.ts +0 -69
- package/tests/errors.test.ts +0 -83
- package/tests/eval.test.ts +0 -173
- package/tests/gateway.test.ts +0 -63
- package/tests/guardrails.test.ts +0 -177
- package/tests/hitl.test.ts +0 -71
- package/tests/home-assistant.test.ts +0 -40
- package/tests/hooks.test.ts +0 -79
- package/tests/i18n.test.ts +0 -41
- package/tests/ide-bridge.test.ts +0 -38
- package/tests/image-generator.test.ts +0 -84
- package/tests/init-role.test.ts +0 -124
- package/tests/integrations.test.ts +0 -249
- package/tests/mcp-client.test.ts +0 -92
- package/tests/mcp-server.test.ts +0 -178
- package/tests/mcp-servers.test.ts +0 -260
- package/tests/mcp.test.ts +0 -54
- package/tests/node-network.test.ts +0 -74
- package/tests/oad.test.ts +0 -68
- package/tests/performance.test.ts +0 -115
- package/tests/plugin-a2a-enhanced.test.ts +0 -230
- package/tests/plugin.test.ts +0 -74
- package/tests/profiles.test.ts +0 -61
- package/tests/publish.test.ts +0 -231
- package/tests/rl-tools.test.ts +0 -93
- package/tests/room.test.ts +0 -106
- package/tests/runtime.test.ts +0 -42
- package/tests/sandbox-manager.test.ts +0 -46
- package/tests/sandbox.test.ts +0 -46
- package/tests/scheduler.test.ts +0 -200
- package/tests/secrets.test.ts +0 -107
- package/tests/security-enhanced.test.ts +0 -233
- package/tests/security.test.ts +0 -60
- package/tests/settings-api.test.ts +0 -148
- package/tests/setup.test.ts +0 -73
- package/tests/skill-learner.test.ts +0 -161
- package/tests/streaming.test.ts +0 -109
- package/tests/studio.test.ts +0 -402
- package/tests/subagent.test.ts +0 -193
- package/tests/telegram-discord.test.ts +0 -60
- package/tests/telemetry.test.ts +0 -186
- package/tests/templates.test.ts +0 -77
- package/tests/tools/builtin-extended.test.ts +0 -138
- package/tests/user-profiler.test.ts +0 -169
- package/tests/v070.test.ts +0 -76
- package/tests/v090-features.test.ts +0 -254
- package/tests/versioning.test.ts +0 -75
- package/tests/vision.test.ts +0 -61
- package/tests/voice-call.test.ts +0 -47
- package/tests/voice-enhanced.test.ts +0 -169
- package/tests/voice-interaction.test.ts +0 -38
- package/tests/voice.test.ts +0 -61
- package/tests/web-search.test.ts +0 -155
- package/tests/webhook.test.ts +0 -29
- package/tests/workflow-graph.test.ts +0 -279
- package/tests/workflow.test.ts +0 -143
- package/tmp-js-test.js +0 -1532
- package/tmp-sc.js +0 -1716
- package/tutorial/customer-service-agent/README.md +0 -612
- package/tutorial/customer-service-agent/SOUL.md +0 -26
- package/tutorial/customer-service-agent/agent.yaml +0 -63
- package/tutorial/customer-service-agent/package.json +0 -19
- package/tutorial/customer-service-agent/src/index.ts +0 -69
- package/tutorial/customer-service-agent/src/skills/faq.ts +0 -27
- package/tutorial/customer-service-agent/src/skills/ticket.ts +0 -22
- package/tutorial/customer-service-agent/tsconfig.json +0 -14
- package/vitest.config.ts +0 -9
package/src/i18n/index.ts
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internationalization (i18n) support for OPC Agent.
|
|
3
|
-
* Supports English, Chinese, and Japanese.
|
|
4
|
-
*/
|
|
5
|
-
export type Locale = 'en' | 'zh-CN' | 'ja';
|
|
6
|
-
|
|
7
|
-
export interface I18nMessages {
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const messages: Record<Locale, I18nMessages> = {
|
|
12
|
-
'en': {
|
|
13
|
-
'agent.started': 'Agent "{name}" started successfully',
|
|
14
|
-
'agent.stopped': 'Agent "{name}" stopped',
|
|
15
|
-
'agent.error': 'An error occurred: {error}',
|
|
16
|
-
'agent.greeting': 'Hello! How can I help you?',
|
|
17
|
-
'agent.farewell': 'Goodbye! Have a great day.',
|
|
18
|
-
'agent.notUnderstood': 'I\'m not sure I understand. Could you rephrase?',
|
|
19
|
-
'agent.handoff': 'Let me connect you with a human agent.',
|
|
20
|
-
'cli.init.success': 'Created agent project: {name}',
|
|
21
|
-
'cli.init.prompt.name': 'Agent name:',
|
|
22
|
-
'cli.init.prompt.template': 'Choose a template:',
|
|
23
|
-
'cli.init.prompt.provider': 'Choose an LLM provider:',
|
|
24
|
-
'cli.build.success': 'Build successful: {name} v{version}',
|
|
25
|
-
'cli.test.pass': 'All tests passed',
|
|
26
|
-
'cli.test.fail': '{count} test(s) failed',
|
|
27
|
-
'cli.run.starting': 'Starting agent "{name}"...',
|
|
28
|
-
'cli.run.listening': 'Agent "{name}" is running at http://localhost:{port}',
|
|
29
|
-
'cli.deploy.success': 'Deployed "{name}" to {target}',
|
|
30
|
-
'cli.deploy.error': 'Deploy failed: {error}',
|
|
31
|
-
'cli.validate.success': 'OAD validation passed',
|
|
32
|
-
'cli.validate.error': 'OAD validation failed: {error}',
|
|
33
|
-
'cli.analytics.title': 'Agent Analytics',
|
|
34
|
-
'cli.analytics.noData': 'No analytics data yet',
|
|
35
|
-
'cli.stats.title': 'Agent Analytics',
|
|
36
|
-
'cli.stats.messages': 'Messages Processed',
|
|
37
|
-
'cli.stats.avgTime': 'Avg Response Time',
|
|
38
|
-
'cli.stats.errors': 'Errors',
|
|
39
|
-
'cli.stats.uptime': 'Uptime',
|
|
40
|
-
'cli.chat.welcome': 'Chat with your agent. Type "exit" to quit.',
|
|
41
|
-
'cli.dev.watching': 'Watching for changes...',
|
|
42
|
-
'cli.publish.success': 'Published "{name}" v{version}',
|
|
43
|
-
'plugin.loaded': 'Plugin "{name}" loaded',
|
|
44
|
-
'plugin.error': 'Plugin "{name}" failed: {error}',
|
|
45
|
-
'kb.added': 'Added "{file}" to knowledge base',
|
|
46
|
-
'kb.searchResults': '{count} results found',
|
|
47
|
-
'kb.noResults': 'No results found',
|
|
48
|
-
'web.title': 'OPC Agent',
|
|
49
|
-
'web.chat.placeholder': 'Type a message...',
|
|
50
|
-
'web.chat.send': 'Send',
|
|
51
|
-
'web.nav.chat': 'Chat',
|
|
52
|
-
'web.nav.dashboard': 'Dashboard',
|
|
53
|
-
'web.nav.settings': 'Settings',
|
|
54
|
-
'web.dashboard.title': 'Dashboard',
|
|
55
|
-
'web.dashboard.messages': 'Messages',
|
|
56
|
-
'web.dashboard.tokens': 'Tokens Used',
|
|
57
|
-
'web.dashboard.errors': 'Errors',
|
|
58
|
-
'web.dashboard.avgLatency': 'Avg Latency',
|
|
59
|
-
'web.settings.title': 'Settings',
|
|
60
|
-
'web.settings.language': 'Language',
|
|
61
|
-
'web.settings.theme': 'Theme',
|
|
62
|
-
'web.settings.save': 'Save',
|
|
63
|
-
'cache.hit': 'Cache hit',
|
|
64
|
-
'cache.miss': 'Cache miss',
|
|
65
|
-
'rateLimit.exceeded': 'Rate limit exceeded. Please wait.',
|
|
66
|
-
},
|
|
67
|
-
'zh-CN': {
|
|
68
|
-
'agent.started': '智能体 "{name}" 启动成功',
|
|
69
|
-
'agent.stopped': '智能体 "{name}" 已停止',
|
|
70
|
-
'agent.error': '发生错误:{error}',
|
|
71
|
-
'agent.greeting': '你好!有什么可以帮你的?',
|
|
72
|
-
'agent.farewell': '再见!祝你愉快。',
|
|
73
|
-
'agent.notUnderstood': '抱歉,我没太理解你的意思。能换个方式描述一下吗?',
|
|
74
|
-
'agent.handoff': '我来帮你转接人工客服。',
|
|
75
|
-
'cli.init.success': '已创建智能体项目:{name}',
|
|
76
|
-
'cli.init.prompt.name': '智能体名称:',
|
|
77
|
-
'cli.init.prompt.template': '选择一个模板:',
|
|
78
|
-
'cli.init.prompt.provider': '选择大语言模型供应商:',
|
|
79
|
-
'cli.build.success': '构建成功:{name} v{version}',
|
|
80
|
-
'cli.test.pass': '所有测试通过',
|
|
81
|
-
'cli.test.fail': '{count} 个测试失败',
|
|
82
|
-
'cli.run.starting': '正在启动智能体 "{name}"...',
|
|
83
|
-
'cli.run.listening': '智能体 "{name}" 已在 http://localhost:{port} 上运行',
|
|
84
|
-
'cli.deploy.success': '已将 "{name}" 部署到 {target}',
|
|
85
|
-
'cli.deploy.error': '部署失败:{error}',
|
|
86
|
-
'cli.validate.success': 'OAD 配置校验通过',
|
|
87
|
-
'cli.validate.error': 'OAD 配置校验失败:{error}',
|
|
88
|
-
'cli.analytics.title': '智能体数据分析',
|
|
89
|
-
'cli.analytics.noData': '暂无分析数据',
|
|
90
|
-
'cli.stats.title': '智能体数据分析',
|
|
91
|
-
'cli.stats.messages': '已处理消息',
|
|
92
|
-
'cli.stats.avgTime': '平均响应时间',
|
|
93
|
-
'cli.stats.errors': '错误数',
|
|
94
|
-
'cli.stats.uptime': '运行时间',
|
|
95
|
-
'cli.chat.welcome': '开始和智能体对话吧。输入 "exit" 退出。',
|
|
96
|
-
'cli.dev.watching': '正在监听文件变更...',
|
|
97
|
-
'cli.publish.success': '已发布 "{name}" v{version}',
|
|
98
|
-
'plugin.loaded': '插件 "{name}" 已加载',
|
|
99
|
-
'plugin.error': '插件 "{name}" 出错:{error}',
|
|
100
|
-
'kb.added': '已将 "{file}" 添加到知识库',
|
|
101
|
-
'kb.searchResults': '找到 {count} 条结果',
|
|
102
|
-
'kb.noResults': '未找到相关结果',
|
|
103
|
-
'web.title': 'OPC 智能体',
|
|
104
|
-
'web.chat.placeholder': '输入消息...',
|
|
105
|
-
'web.chat.send': '发送',
|
|
106
|
-
'web.nav.chat': '对话',
|
|
107
|
-
'web.nav.dashboard': '仪表盘',
|
|
108
|
-
'web.nav.settings': '设置',
|
|
109
|
-
'web.dashboard.title': '仪表盘',
|
|
110
|
-
'web.dashboard.messages': '消息数',
|
|
111
|
-
'web.dashboard.tokens': '已用 Token',
|
|
112
|
-
'web.dashboard.errors': '错误数',
|
|
113
|
-
'web.dashboard.avgLatency': '平均延迟',
|
|
114
|
-
'web.settings.title': '设置',
|
|
115
|
-
'web.settings.language': '语言',
|
|
116
|
-
'web.settings.theme': '主题',
|
|
117
|
-
'web.settings.save': '保存',
|
|
118
|
-
'cache.hit': '缓存命中',
|
|
119
|
-
'cache.miss': '缓存未命中',
|
|
120
|
-
'rateLimit.exceeded': '请求过于频繁,请稍候。',
|
|
121
|
-
},
|
|
122
|
-
'ja': {
|
|
123
|
-
'agent.started': 'エージェント「{name}」が正常に起動しました',
|
|
124
|
-
'agent.stopped': 'エージェント「{name}」が停止しました',
|
|
125
|
-
'agent.error': 'エラーが発生しました: {error}',
|
|
126
|
-
'agent.greeting': 'こんにちは!何かお手伝いできますか?',
|
|
127
|
-
'agent.farewell': 'さようなら!良い一日を。',
|
|
128
|
-
'agent.notUnderstood': '申し訳ございません、理解できませんでした。別の言い方でお願いできますか?',
|
|
129
|
-
'agent.handoff': 'オペレーターにおつなぎします。',
|
|
130
|
-
'cli.init.success': 'エージェントプロジェクトを作成しました: {name}',
|
|
131
|
-
'cli.init.prompt.name': 'エージェント名:',
|
|
132
|
-
'cli.init.prompt.template': 'テンプレートを選択:',
|
|
133
|
-
'cli.init.prompt.provider': 'LLMプロバイダーを選択:',
|
|
134
|
-
'cli.build.success': 'ビルド成功: {name} v{version}',
|
|
135
|
-
'cli.test.pass': '全テスト合格',
|
|
136
|
-
'cli.test.fail': '{count} 件のテストが失敗しました',
|
|
137
|
-
'cli.run.starting': 'エージェント「{name}」を起動中...',
|
|
138
|
-
'cli.run.listening': 'エージェント「{name}」が http://localhost:{port} で稼働中',
|
|
139
|
-
'cli.deploy.success': '「{name}」を {target} にデプロイしました',
|
|
140
|
-
'cli.deploy.error': 'デプロイ失敗: {error}',
|
|
141
|
-
'cli.validate.success': 'OADバリデーション成功',
|
|
142
|
-
'cli.validate.error': 'OADバリデーション失敗: {error}',
|
|
143
|
-
'cli.analytics.title': 'エージェント分析',
|
|
144
|
-
'cli.analytics.noData': '分析データがありません',
|
|
145
|
-
'cli.stats.title': 'エージェント分析',
|
|
146
|
-
'cli.stats.messages': '処理済みメッセージ',
|
|
147
|
-
'cli.stats.avgTime': '平均応答時間',
|
|
148
|
-
'cli.stats.errors': 'エラー数',
|
|
149
|
-
'cli.stats.uptime': '稼働時間',
|
|
150
|
-
'cli.chat.welcome': 'エージェントとチャットしましょう。"exit"で終了。',
|
|
151
|
-
'cli.dev.watching': 'ファイル変更を監視中...',
|
|
152
|
-
'cli.publish.success': '「{name}」v{version} を公開しました',
|
|
153
|
-
'plugin.loaded': 'プラグイン「{name}」を読み込みました',
|
|
154
|
-
'plugin.error': 'プラグイン「{name}」でエラー: {error}',
|
|
155
|
-
'kb.added': '「{file}」をナレッジベースに追加しました',
|
|
156
|
-
'kb.searchResults': '{count} 件の結果が見つかりました',
|
|
157
|
-
'kb.noResults': '結果が見つかりませんでした',
|
|
158
|
-
'web.title': 'OPC エージェント',
|
|
159
|
-
'web.chat.placeholder': 'メッセージを入力...',
|
|
160
|
-
'web.chat.send': '送信',
|
|
161
|
-
'web.nav.chat': 'チャット',
|
|
162
|
-
'web.nav.dashboard': 'ダッシュボード',
|
|
163
|
-
'web.nav.settings': '設定',
|
|
164
|
-
'web.dashboard.title': 'ダッシュボード',
|
|
165
|
-
'web.dashboard.messages': 'メッセージ数',
|
|
166
|
-
'web.dashboard.tokens': '使用トークン',
|
|
167
|
-
'web.dashboard.errors': 'エラー数',
|
|
168
|
-
'web.dashboard.avgLatency': '平均レイテンシ',
|
|
169
|
-
'web.settings.title': '設定',
|
|
170
|
-
'web.settings.language': '言語',
|
|
171
|
-
'web.settings.theme': 'テーマ',
|
|
172
|
-
'web.settings.save': '保存',
|
|
173
|
-
'cache.hit': 'キャッシュヒット',
|
|
174
|
-
'cache.miss': 'キャッシュミス',
|
|
175
|
-
'rateLimit.exceeded': 'リクエスト制限を超えました。しばらくお待ちください。',
|
|
176
|
-
},
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
let currentLocale: Locale = 'en';
|
|
180
|
-
|
|
181
|
-
export function setLocale(locale: Locale): void {
|
|
182
|
-
currentLocale = locale;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export function getLocale(): Locale {
|
|
186
|
-
return currentLocale;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export function getSupportedLocales(): { code: Locale; label: string }[] {
|
|
190
|
-
return [
|
|
191
|
-
{ code: 'en', label: 'English' },
|
|
192
|
-
{ code: 'zh-CN', label: '中文' },
|
|
193
|
-
{ code: 'ja', label: '日本語' },
|
|
194
|
-
];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export function t(key: string, params?: Record<string, string>): string {
|
|
198
|
-
let msg = messages[currentLocale]?.[key] ?? messages['en']?.[key] ?? key;
|
|
199
|
-
if (params) {
|
|
200
|
-
for (const [k, v] of Object.entries(params)) {
|
|
201
|
-
msg = msg.replace(new RegExp(`\\{${k}\\}`, 'g'), v);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return msg;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export function detectLocale(): Locale {
|
|
208
|
-
const env = process.env.LANG ?? process.env.LC_ALL ?? process.env.LANGUAGE ?? '';
|
|
209
|
-
if (env.startsWith('zh')) return 'zh-CN';
|
|
210
|
-
if (env.startsWith('ja')) return 'ja';
|
|
211
|
-
return 'en';
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export function addMessages(locale: Locale, newMessages: I18nMessages): void {
|
|
215
|
-
messages[locale] = { ...messages[locale], ...newMessages };
|
|
216
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
// OPC Agent — Open Agent Framework
|
|
2
|
-
export { BaseAgent } from './core/agent';
|
|
3
|
-
export { AgentRuntime, truncateOutput } from './core/runtime';
|
|
4
|
-
export { Logger } from './core/logger';
|
|
5
|
-
export { loadOAD, validateOAD } from './core/config';
|
|
6
|
-
export { OADSchema } from './schema/oad';
|
|
7
|
-
export type { OADDocument, Metadata, Spec } from './schema/oad';
|
|
8
|
-
export type { IAgent, IChannel, ISkill, Message, AgentContext, SkillResult, MemoryStore, AgentState } from './core/types';
|
|
9
|
-
export { BaseChannel } from './channels';
|
|
10
|
-
export { WebChannel } from './channels/web';
|
|
11
|
-
export { TelegramChannel } from './channels/telegram';
|
|
12
|
-
export { WebSocketChannel } from './channels/websocket';
|
|
13
|
-
export { BaseSkill } from './skills/base';
|
|
14
|
-
export { SkillRegistry } from './skills';
|
|
15
|
-
export { InMemoryStore } from './memory';
|
|
16
|
-
export { DeepBrainMemoryStore } from './memory/deepbrain';
|
|
17
|
-
export { createProvider, SUPPORTED_PROVIDERS } from './providers';
|
|
18
|
-
|
|
19
|
-
// v0.3.0 new modules
|
|
20
|
-
export { Room } from './core/room';
|
|
21
|
-
export type { RoomMessage } from './core/room';
|
|
22
|
-
export { MCPToolRegistry, createMCPTool } from './tools/mcp';
|
|
23
|
-
export type { MCPTool, MCPToolDefinition, MCPToolResult } from './tools/mcp';
|
|
24
|
-
export { PluginManager } from './plugins';
|
|
25
|
-
export type { IPlugin, PluginHooks } from './plugins';
|
|
26
|
-
export { Sandbox } from './core/sandbox';
|
|
27
|
-
export type { SandboxConfig, SandboxRestrictions, ValidationResult, SandboxStatus } from './core/sandbox';
|
|
28
|
-
export { ApprovalManager } from './security/approval';
|
|
29
|
-
export type { ApprovalPolicy, ApprovalRequest as SecurityApprovalRequest } from './security/approval';
|
|
30
|
-
export { KeyManager } from './security/keys';
|
|
31
|
-
export { Analytics } from './analytics';
|
|
32
|
-
|
|
33
|
-
// v0.4.0 modules
|
|
34
|
-
export { WorkflowEngine } from './core/workflow';
|
|
35
|
-
export type { WorkflowDefinition, WorkflowStep, WorkflowResult, StepResult } from './core/workflow';
|
|
36
|
-
export { GraphWorkflowEngine, WorkflowBuilder, parseOADWorkflow } from './core/workflow-graph';
|
|
37
|
-
export type { WorkflowContext, GraphWorkflowStep, GraphWorkflow, GraphWorkflowResult, OADWorkflowDef, OADWorkflowStepDef } from './core/workflow-graph';
|
|
38
|
-
export { AgentRegistry, AgentCardRegistry } from './core/a2a';
|
|
39
|
-
export type { A2ARequest, A2AResponse, AgentCapability, AgentRegistration, AgentCard } from './core/a2a';
|
|
40
|
-
export { HITLManager } from './core/hitl';
|
|
41
|
-
export type { ApprovalRequest, ApprovalResponse, HITLConfig } from './core/hitl';
|
|
42
|
-
export { VoiceChannel } from './channels/voice';
|
|
43
|
-
export type { VoiceChannelConfig, STTProvider, TTSProvider, VoiceConfig } from './channels/voice';
|
|
44
|
-
export { WhisperSTTProvider, DeepgramSTTProvider, EdgeTTSProvider, OpenAITTSProvider, ElevenLabsTTSProvider, createVoiceProviders } from './channels/voice';
|
|
45
|
-
export { WebhookChannel } from './channels/webhook';
|
|
46
|
-
export type { WebhookConfig, WebhookPayload } from './channels/webhook';
|
|
47
|
-
export { VersionManager } from './core/versioning';
|
|
48
|
-
export type { VersionEntry, Migration } from './core/versioning';
|
|
49
|
-
export { ConnectionPool, RequestBatcher, LazyLoader } from './core/performance';
|
|
50
|
-
export type { AnalyticsSnapshot } from './analytics';
|
|
51
|
-
export { t, setLocale, getLocale, detectLocale, addMessages } from './i18n';
|
|
52
|
-
export type { Locale } from './i18n';
|
|
53
|
-
|
|
54
|
-
// v0.5.0+ modules
|
|
55
|
-
export { KnowledgeBase } from './core/knowledge';
|
|
56
|
-
export { deployToHermes } from './deploy/hermes';
|
|
57
|
-
export type { HermesDeployOptions, HermesDeployResult } from './deploy/hermes';
|
|
58
|
-
|
|
59
|
-
// v0.7.0 modules
|
|
60
|
-
export { createAuthMiddleware, getActiveSessions } from './core/auth';
|
|
61
|
-
export type { AuthConfig, AuthSession } from './core/auth';
|
|
62
|
-
// v0.8.0 modules
|
|
63
|
-
export { Orchestrator } from './core/orchestrator';
|
|
64
|
-
export type { AgentNode, OrchestratorWorkflow, OrchestratorConfig, HandoffRequest } from './core/orchestrator';
|
|
65
|
-
export { AgentPipeline, compose } from './core/compose';
|
|
66
|
-
export type { ComposableAgent, ComposeOptions } from './core/compose';
|
|
67
|
-
export { EmailChannel } from './channels/email';
|
|
68
|
-
export type { EmailChannelConfig, EmailMessage } from './channels/email';
|
|
69
|
-
export { SlackChannel } from './channels/slack';
|
|
70
|
-
export type { SlackChannelConfig, SlashCommandConfig, SlashCommandPayload } from './channels/slack';
|
|
71
|
-
export { WeChatChannel } from './channels/wechat';
|
|
72
|
-
export type { WeChatChannelConfig, WeChatMessage, TemplateMessageData } from './channels/wechat';
|
|
73
|
-
export { CalculatorTool } from './tools/calculator';
|
|
74
|
-
export { DateTimeTool } from './tools/datetime';
|
|
75
|
-
export { JsonTransformTool } from './tools/json-transform';
|
|
76
|
-
export { TextAnalysisTool } from './tools/text-analysis';
|
|
77
|
-
|
|
78
|
-
export { HttpSkill } from './skills/http';
|
|
79
|
-
export { WebhookTriggerSkill } from './skills/webhook-trigger';
|
|
80
|
-
export type { WebhookTarget } from './skills/webhook-trigger';
|
|
81
|
-
|
|
82
|
-
// v0.9.0 channels
|
|
83
|
-
export { DingTalkChannel } from './channels/dingtalk';
|
|
84
|
-
export type { DingTalkChannelConfig } from './channels/dingtalk';
|
|
85
|
-
export { MattermostChannel } from './channels/mattermost';
|
|
86
|
-
export type { MattermostChannelConfig } from './channels/mattermost';
|
|
87
|
-
export { GoogleChatChannel } from './channels/googlechat';
|
|
88
|
-
export type { GoogleChatChannelConfig } from './channels/googlechat';
|
|
89
|
-
export { TwitchChannel } from './channels/twitch';
|
|
90
|
-
export type { TwitchChannelConfig } from './channels/twitch';
|
|
91
|
-
export { IRCChannel } from './channels/irc';
|
|
92
|
-
export type { IRCChannelConfig } from './channels/irc';
|
|
93
|
-
|
|
94
|
-
// v0.9.0 core
|
|
95
|
-
export { ContextDiscovery } from './core/context-discovery';
|
|
96
|
-
export type { ContextFile } from './core/context-discovery';
|
|
97
|
-
export { SessionManager } from './core/session-manager';
|
|
98
|
-
export type { Session } from './core/session-manager';
|
|
99
|
-
export { HeartbeatManager } from './core/heartbeat';
|
|
100
|
-
export type { HeartbeatConfig } from './core/heartbeat';
|
|
101
|
-
export { SchedulerSkill } from './skills/scheduler';
|
|
102
|
-
export type { ScheduledTask } from './skills/scheduler';
|
|
103
|
-
export { DocumentSkill } from './skills/document';
|
|
104
|
-
export type { DocumentChunk } from './skills/document';
|
|
105
|
-
export { SkillLearner, skillToMarkdown, parseSkillMarkdown } from './skills/auto-learn';
|
|
106
|
-
export type { LearnedSkill } from './skills/auto-learn';
|
|
107
|
-
|
|
108
|
-
// v0.9.0 modules
|
|
109
|
-
export { runTests, loadTestCases, formatReport } from './testing';
|
|
110
|
-
export type { TestCase, TestResult, TestReport } from './testing';
|
|
111
|
-
export { AnalyticsEngine } from './core/analytics-engine';
|
|
112
|
-
export type { AnalyticsEvent, AnalyticsStats } from './core/analytics-engine';
|
|
113
|
-
export { RateLimiter } from './core/rate-limiter';
|
|
114
|
-
export { LLMCache } from './core/cache';
|
|
115
|
-
export type { CacheConfig, CacheEntry } from './core/cache';
|
|
116
|
-
export { getSupportedLocales } from './i18n';
|
|
117
|
-
export { createDataAnalystConfig } from './templates/data-analyst';
|
|
118
|
-
export { createTeacherConfig } from './templates/teacher';
|
|
119
|
-
|
|
120
|
-
// v1.0.0 modules
|
|
121
|
-
export { OPCError, ProviderError, ValidationError, ConfigError, ChannelError, PluginError, RateLimitError, SecurityError, TimeoutError, wrapError, formatErrorForUser } from './core/errors';
|
|
122
|
-
export { sanitizeInput, detectInjection, securityHeaders, corsMiddleware, APIKeyManager, inputValidation } from './core/security';
|
|
123
|
-
export type { SecurityHeadersConfig, CORSConfig, APIKeyEntry } from './core/security';
|
|
124
|
-
export { createLoggingPlugin, createAnalyticsPlugin, createRateLimitPlugin } from './plugins';
|
|
125
|
-
export type { PluginManifest, Plugin } from './plugins';
|
|
126
|
-
export { loggerPlugin } from './plugins/logger';
|
|
127
|
-
export { rateLimiterPlugin, createRateLimiterPlugin as createEnhancedRateLimiterPlugin } from './plugins/rate-limiter';
|
|
128
|
-
export { contentFilterPlugin, createContentFilterPlugin } from './plugins/content-filter';
|
|
129
|
-
|
|
130
|
-
// v2.1.0 — Guardrails
|
|
131
|
-
export { GuardrailManager, createGuardrailsFromConfig } from './security/guardrails';
|
|
132
|
-
export type { GuardrailConfig, GuardrailRule, GuardrailResult, GuardrailViolation } from './security/guardrails';
|
|
133
|
-
|
|
134
|
-
// v3.1.0 — Exec Approvals + Elevated + Secrets
|
|
135
|
-
export { ExecApprovalManager } from './security/approvals';
|
|
136
|
-
export type { ExecApprovalPolicy, ExecApprovalRequest, ExecApprovalHistory, ApprovalRequestCallback } from './security/approvals';
|
|
137
|
-
export { ElevatedManager } from './security/elevated';
|
|
138
|
-
export type { ElevationMode, ElevationAuditEntry } from './security/elevated';
|
|
139
|
-
export { SecretsManager } from './security/secrets';
|
|
140
|
-
export type { SecretsStore } from './security/secrets';
|
|
141
|
-
|
|
142
|
-
// v3.1.0 — Hooks + Audio
|
|
143
|
-
export { HookManager, ALL_HOOK_EVENTS } from './core/hooks';
|
|
144
|
-
export type { HookEvent, HookContext, HookHandler } from './core/hooks';
|
|
145
|
-
export { AudioProcessor } from './core/audio';
|
|
146
|
-
export type { AudioFormat, TranscribeOptions, SynthesizeOptions, TranscribeResult, SynthesizeResult } from './core/audio';
|
|
147
|
-
|
|
148
|
-
// v1.1.0 modules
|
|
149
|
-
export { FeishuChannel } from './channels/feishu';
|
|
150
|
-
export type { FeishuChannelConfig } from './channels/feishu';
|
|
151
|
-
export { DiscordChannel } from './channels/discord';
|
|
152
|
-
export type { DiscordChannelConfig } from './channels/discord';
|
|
153
|
-
export { ProcessWatcher } from './core/watch';
|
|
154
|
-
export type { WatchPattern, WatchMatch, WatchOptions } from './core/watch';
|
|
155
|
-
|
|
156
|
-
// v1.2.0 modules
|
|
157
|
-
export { ToolGateway } from './tools/gateway';
|
|
158
|
-
export type { ToolGatewayConfig, GatewayToolName } from './tools/gateway';
|
|
159
|
-
export { StreamingManager, StreamableResponse } from './core/streaming';
|
|
160
|
-
export type { StreamChunk, StreamOptions } from './core/streaming';
|
|
161
|
-
|
|
162
|
-
// v1.3.0 modules
|
|
163
|
-
export { TraceCollector, ConsoleExporter as TraceConsoleExporter, DeepBrainExporter } from './traces';
|
|
164
|
-
export type { Span as TraceSpan, SpanEvent as TraceSpanEvent, TraceExporter as ITraceExporter } from './traces';
|
|
165
|
-
|
|
166
|
-
// v1.8.0 — Telemetry (OTel-compatible)
|
|
167
|
-
export { Tracer, ConsoleExporter, FileExporter, OTLPHttpExporter, generateTraceId, generateSpanId } from './telemetry';
|
|
168
|
-
export type { Span, SpanEvent, Metric, TraceExporter } from './telemetry';
|
|
169
|
-
|
|
170
|
-
// v1.3.1 — Sub-agent management
|
|
171
|
-
export { SubAgentManager } from './core/subagent';
|
|
172
|
-
export type { SubAgentConfig, SubAgentResult } from './core/subagent';
|
|
173
|
-
|
|
174
|
-
// v1.4.0 modules
|
|
175
|
-
export { Scheduler, parseCron, cronMatches } from './core/scheduler';
|
|
176
|
-
export type { CronJob, JobHandler } from './core/scheduler';
|
|
177
|
-
|
|
178
|
-
// v1.5.0 — built-in tools + MCP client
|
|
179
|
-
export { getBuiltinTools, getBuiltinToolsByName, rlTools, homeAssistantTools, configureHomeAssistant, webSearchTools, webSearchTool, webReadTool } from './tools/builtin';
|
|
180
|
-
export { webSearch, parseDuckDuckGoHTML, type SearchResult as WebSearchResult, type WebSearchConfig, type SearchEngine } from './tools/web-search';
|
|
181
|
-
export { scrapeUrl, extractReadableContent, type ScrapedContent } from './tools/web-scraper';
|
|
182
|
-
export { MCPClient } from './tools/mcp-client';
|
|
183
|
-
export type { MCPServerConfig } from './tools/mcp-client';
|
|
184
|
-
|
|
185
|
-
// v1.6.0 — publish/pack/install
|
|
186
|
-
export { AgentPackager, AgentPublisher, AgentInstaller } from './publish';
|
|
187
|
-
export type { PackageManifest, PublishOptions } from './publish';
|
|
188
|
-
|
|
189
|
-
// v1.7.0 - Studio
|
|
190
|
-
export { StudioServer } from './studio/server';
|
|
191
|
-
export type { StudioConfig } from './studio/server';
|
|
192
|
-
|
|
193
|
-
// v1.9.0 — Google A2A Protocol
|
|
194
|
-
export { A2AServer, A2AClient, oadToAgentCard, JSON_RPC_ERRORS } from './protocols/a2a';
|
|
195
|
-
export type {
|
|
196
|
-
A2AAgentCard, A2AAgentSkill, A2ATask, A2ATaskStatus, A2ATaskState,
|
|
197
|
-
A2AMessage, A2AMessagePart, A2AArtifact,
|
|
198
|
-
} from './protocols/a2a';
|
|
199
|
-
|
|
200
|
-
// v1.9.0 — MCP Server (expose agents as MCP tools)
|
|
201
|
-
export { MCPServer } from './protocols/mcp/server';
|
|
202
|
-
export type { MCPServerConfig as MCPServerConf, MCPServerToolDefinition, MCPResourceDefinition, MCPPromptDefinition } from './protocols/mcp/types';
|
|
203
|
-
export { agentToMCPTools, agentToMCPResources } from './protocols/mcp/agent-tools';
|
|
204
|
-
|
|
205
|
-
// v1.8.0 - Eval
|
|
206
|
-
export { AgentEvaluator } from './eval';
|
|
207
|
-
export type { EvalCase, EvalResult, EvalSuite, EvalReport } from './eval';
|
|
208
|
-
|
|
209
|
-
// v1.9.0 — AG-UI Protocol (Agent-User Interaction)
|
|
210
|
-
export { AGUIServer, AGUIEventEmitter, AGUIClient } from './protocols/agui';
|
|
211
|
-
export { AGUI_EVENT_TYPES, isValidEventType } from './protocols/agui';
|
|
212
|
-
// v2.0.0 - Multi-agent collaboration patterns
|
|
213
|
-
export { DebatePattern, VotingPattern, PipelinePattern, HierarchyPattern, SharedContext, ConversationProtocol } from './core/collaboration';
|
|
214
|
-
export type { DebateResult, DebateArgument, VoteResult, VoteEntry, PipelineResult, PipelineStageResult, HierarchyResult, WorkerResult } from './core/collaboration';
|
|
215
|
-
|
|
216
|
-
export type {
|
|
217
|
-
AGUIEvent, AGUIEventType, AGUIMessage, AGUIRunRequest, AGUIToolCall,
|
|
218
|
-
AGUIToolDefinition, TextMessageStartEvent, TextMessageContentEvent,
|
|
219
|
-
TextMessageEndEvent, ToolCallStartEvent, ToolCallArgsEvent, ToolCallEndEvent,
|
|
220
|
-
StateSnapshotEvent, StateDeltaEvent, MessagesSnapshotEvent,
|
|
221
|
-
RunStartedEvent, RunFinishedEvent, RunErrorEvent,
|
|
222
|
-
StepStartedEvent, StepFinishedEvent, CustomEvent,
|
|
223
|
-
} from './protocols/agui';
|
|
224
|
-
|
|
225
|
-
// v2.1.0 — API Server + Context References
|
|
226
|
-
export { APIServer } from './core/api-server';
|
|
227
|
-
export type { APIServerConfig } from './core/api-server';
|
|
228
|
-
export { ContextRefResolver } from './core/context-refs';
|
|
229
|
-
export type { ContextRef, RefType } from './core/context-refs';
|
|
230
|
-
|
|
231
|
-
// v2.2.0 — Vision
|
|
232
|
-
export { VisionManager, detectMimeType } from './core/vision';
|
|
233
|
-
export type { ImageInput, VisionResult, VisionManagerConfig } from './core/vision';
|
|
234
|
-
export { visionTools, visionAnalyzeTool, visionExtractTextTool, visionCompareTool } from './tools/builtin/vision';
|
|
235
|
-
|
|
236
|
-
// v2.2.0 — Additional channels
|
|
237
|
-
export { WhatsAppChannel } from './channels/whatsapp';
|
|
238
|
-
export type { WhatsAppChannelConfig } from './channels/whatsapp';
|
|
239
|
-
export { SignalChannel } from './channels/signal';
|
|
240
|
-
export type { SignalChannelConfig } from './channels/signal';
|
|
241
|
-
export { MatrixChannel } from './channels/matrix';
|
|
242
|
-
export type { MatrixChannelConfig } from './channels/matrix';
|
|
243
|
-
export { IMessageChannel } from './channels/imessage';
|
|
244
|
-
export type { IMessageChannelConfig } from './channels/imessage';
|
|
245
|
-
export { LINEChannel } from './channels/line';
|
|
246
|
-
export type { LINEChannelConfig } from './channels/line';
|
|
247
|
-
export { MSTeamsChannel } from './channels/msteams';
|
|
248
|
-
export type { MSTeamsChannelConfig } from './channels/msteams';
|
|
249
|
-
export { QQChannel } from './channels/qq';
|
|
250
|
-
export type { QQChannelConfig } from './channels/qq';
|
|
251
|
-
export { NostrChannel } from './channels/nostr';
|
|
252
|
-
export type { NostrChannelConfig } from './channels/nostr';
|
|
253
|
-
export { SMSChannel } from './channels/sms';
|
|
254
|
-
export type { SMSChannelConfig } from './channels/sms';
|
|
255
|
-
|
|
256
|
-
// v2.3.0 — Voice Calls + IDE + Node Network + Gateway
|
|
257
|
-
export { VoiceCallManager } from './channels/voice-call';
|
|
258
|
-
export type { VoiceCallConfig } from './channels/voice-call';
|
|
259
|
-
export { IDEBridge } from './core/ide-bridge';
|
|
260
|
-
export type { IDEConfig, Diagnostic, TextEdit, Range, SearchOptions, SearchResult as IDESearchResult } from './core/ide-bridge';
|
|
261
|
-
export { NodeNetwork } from './core/node-network';
|
|
262
|
-
export type { RemoteNode } from './core/node-network';
|
|
263
|
-
export { Gateway } from './core/gateway';
|
|
264
|
-
export type { AgentConfig as GatewayAgentConfig, ChannelConfig as GatewayChannelConfig, GatewayConfig } from './core/gateway';
|
|
265
|
-
|
|
266
|
-
// v2.2.0 — Remote Sandbox
|
|
267
|
-
export { SandboxManager } from './core/sandbox';
|
|
268
|
-
export type { RemoteSandboxConfig, ExecResult } from './core/sandbox';
|
|
269
|
-
|
|
270
|
-
// v2.2.0 — Profiles
|
|
271
|
-
export { ProfileManager } from './core/profiles';
|
|
272
|
-
export type { Profile, ProfileConfig } from './core/profiles';
|
|
273
|
-
|
|
274
|
-
// v2.0.0 - Pre-built tool integrations (20 tools)
|
|
275
|
-
export {
|
|
276
|
-
SlackTool, EmailSendTool, WebhookTool,
|
|
277
|
-
NotionTool, GitHubTool, JiraTool, CalendarTool, TrelloTool,
|
|
278
|
-
WebSearchTool, WebScraperTool, DatabaseTool, VectorSearchTool,
|
|
279
|
-
CodeExecutionTool, GitTool, NpmTool,
|
|
280
|
-
ImageGenerationTool, PDFReaderTool, CSVAnalyzerTool,
|
|
281
|
-
SummarizerTool, TranslatorTool,
|
|
282
|
-
getAllIntegrationTools, getIntegrationTool,
|
|
283
|
-
} from './tools/integrations';
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { MCPServerConfig } from '../../protocols/mcp/types';
|
|
2
|
-
|
|
3
|
-
const UNITS: Record<string, Record<string, number>> = {
|
|
4
|
-
length: { m: 1, km: 1000, cm: 0.01, mm: 0.001, in: 0.0254, ft: 0.3048, yd: 0.9144, mi: 1609.344 },
|
|
5
|
-
weight: { kg: 1, g: 0.001, mg: 0.000001, lb: 0.453592, oz: 0.0283495, ton: 1000 },
|
|
6
|
-
temperature: {}, // special
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
function convertTemp(value: number, from: string, to: string): number {
|
|
10
|
-
let celsius = from === 'C' ? value : from === 'F' ? (value - 32) * 5/9 : value - 273.15;
|
|
11
|
-
return to === 'C' ? celsius : to === 'F' ? celsius * 9/5 + 32 : celsius + 273.15;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function createCalculatorServer(): MCPServerConfig {
|
|
15
|
-
return {
|
|
16
|
-
name: 'calculator',
|
|
17
|
-
version: '1.0.0',
|
|
18
|
-
tools: [
|
|
19
|
-
{
|
|
20
|
-
name: 'calc_evaluate',
|
|
21
|
-
description: 'Evaluate a mathematical expression (safe eval with Math functions)',
|
|
22
|
-
inputSchema: { type: 'object', properties: { expression: { type: 'string', description: 'Math expression, e.g. "sqrt(16) + pow(2,3)"' } }, required: ['expression'] },
|
|
23
|
-
handler: async (args: { expression: string }) => {
|
|
24
|
-
const safe = args.expression.replace(/[^0-9+\-*/().,%\s]/g, (m) => {
|
|
25
|
-
const allowed = ['Math','PI','E','sqrt','pow','abs','sin','cos','tan','log','log2','log10','ceil','floor','round','min','max','random'];
|
|
26
|
-
return allowed.some(a => m.includes(a)) ? m : '';
|
|
27
|
-
});
|
|
28
|
-
const fn = new Function('Math', `"use strict"; return (${args.expression})`);
|
|
29
|
-
const result = fn(Math);
|
|
30
|
-
return { expression: args.expression, result };
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'calc_convert',
|
|
35
|
-
description: 'Convert between units (length, weight, temperature)',
|
|
36
|
-
inputSchema: { type: 'object', properties: { value: { type: 'number' }, from: { type: 'string' }, to: { type: 'string' }, category: { type: 'string', enum: ['length', 'weight', 'temperature'] } }, required: ['value', 'from', 'to'] },
|
|
37
|
-
handler: async (args: { value: number; from: string; to: string; category?: string }) => {
|
|
38
|
-
if (['C', 'F', 'K'].includes(args.from) && ['C', 'F', 'K'].includes(args.to)) {
|
|
39
|
-
return { value: args.value, from: args.from, to: args.to, result: convertTemp(args.value, args.from, args.to) };
|
|
40
|
-
}
|
|
41
|
-
for (const [, units] of Object.entries(UNITS)) {
|
|
42
|
-
if (units[args.from] && units[args.to]) {
|
|
43
|
-
const base = args.value * units[args.from];
|
|
44
|
-
return { value: args.value, from: args.from, to: args.to, result: base / units[args.to] };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
throw new Error(`Cannot convert ${args.from} to ${args.to}`);
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'calc_percentage',
|
|
52
|
-
description: 'Calculate percentages: what is X% of Y, X is what % of Y, % change',
|
|
53
|
-
inputSchema: { type: 'object', properties: { operation: { type: 'string', enum: ['of', 'is_what_percent', 'change'] }, x: { type: 'number' }, y: { type: 'number' } }, required: ['operation', 'x', 'y'] },
|
|
54
|
-
handler: async (args: { operation: string; x: number; y: number }) => {
|
|
55
|
-
switch (args.operation) {
|
|
56
|
-
case 'of': return { result: (args.x / 100) * args.y, description: `${args.x}% of ${args.y}` };
|
|
57
|
-
case 'is_what_percent': return { result: (args.x / args.y) * 100, description: `${args.x} is ${((args.x / args.y) * 100).toFixed(2)}% of ${args.y}` };
|
|
58
|
-
case 'change': return { result: ((args.y - args.x) / args.x) * 100, description: `Change from ${args.x} to ${args.y}` };
|
|
59
|
-
default: throw new Error('Unknown operation');
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as crypto from 'crypto';
|
|
2
|
-
import type { MCPServerConfig } from '../../protocols/mcp/types';
|
|
3
|
-
|
|
4
|
-
export function createCryptoServer(): MCPServerConfig {
|
|
5
|
-
return {
|
|
6
|
-
name: 'crypto',
|
|
7
|
-
version: '1.0.0',
|
|
8
|
-
tools: [
|
|
9
|
-
{
|
|
10
|
-
name: 'crypto_hash',
|
|
11
|
-
description: 'Generate hash of input text (md5, sha1, sha256, sha512)',
|
|
12
|
-
inputSchema: { type: 'object', properties: { text: { type: 'string' }, algorithm: { type: 'string', enum: ['md5', 'sha1', 'sha256', 'sha512'], default: 'sha256' } }, required: ['text'] },
|
|
13
|
-
handler: async (args: { text: string; algorithm?: string }) => {
|
|
14
|
-
const hash = crypto.createHash(args.algorithm || 'sha256').update(args.text).digest('hex');
|
|
15
|
-
return { hash, algorithm: args.algorithm || 'sha256' };
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'crypto_hmac',
|
|
20
|
-
description: 'Generate HMAC signature',
|
|
21
|
-
inputSchema: { type: 'object', properties: { text: { type: 'string' }, key: { type: 'string' }, algorithm: { type: 'string', default: 'sha256' } }, required: ['text', 'key'] },
|
|
22
|
-
handler: async (args: { text: string; key: string; algorithm?: string }) => {
|
|
23
|
-
const hmac = crypto.createHmac(args.algorithm || 'sha256', args.key).update(args.text).digest('hex');
|
|
24
|
-
return { hmac, algorithm: args.algorithm || 'sha256' };
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'crypto_random',
|
|
29
|
-
description: 'Generate random bytes, UUID, or random number',
|
|
30
|
-
inputSchema: { type: 'object', properties: { type: { type: 'string', enum: ['bytes', 'uuid', 'number'], default: 'uuid' }, length: { type: 'number', default: 32 }, min: { type: 'number' }, max: { type: 'number' } }, required: [] },
|
|
31
|
-
handler: async (args: { type?: string; length?: number; min?: number; max?: number }) => {
|
|
32
|
-
switch (args.type || 'uuid') {
|
|
33
|
-
case 'bytes': return { value: crypto.randomBytes(args.length || 32).toString('hex') };
|
|
34
|
-
case 'uuid': return { value: crypto.randomUUID() };
|
|
35
|
-
case 'number': {
|
|
36
|
-
const min = args.min ?? 0;
|
|
37
|
-
const max = args.max ?? 100;
|
|
38
|
-
return { value: min + Math.floor(Math.random() * (max - min + 1)) };
|
|
39
|
-
}
|
|
40
|
-
default: throw new Error('Unknown type');
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'crypto_encrypt',
|
|
46
|
-
description: 'Encrypt text with AES-256-GCM',
|
|
47
|
-
inputSchema: { type: 'object', properties: { text: { type: 'string' }, password: { type: 'string' } }, required: ['text', 'password'] },
|
|
48
|
-
handler: async (args: { text: string; password: string }) => {
|
|
49
|
-
const key = crypto.scryptSync(args.password, 'opc-salt', 32);
|
|
50
|
-
const iv = crypto.randomBytes(16);
|
|
51
|
-
const cipher = crypto.createCipheriv('aes-256-gcm', key, iv);
|
|
52
|
-
let encrypted = cipher.update(args.text, 'utf8', 'hex');
|
|
53
|
-
encrypted += cipher.final('hex');
|
|
54
|
-
const tag = cipher.getAuthTag().toString('hex');
|
|
55
|
-
return { encrypted, iv: iv.toString('hex'), tag };
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: 'crypto_decrypt',
|
|
60
|
-
description: 'Decrypt AES-256-GCM encrypted text',
|
|
61
|
-
inputSchema: { type: 'object', properties: { encrypted: { type: 'string' }, password: { type: 'string' }, iv: { type: 'string' }, tag: { type: 'string' } }, required: ['encrypted', 'password', 'iv', 'tag'] },
|
|
62
|
-
handler: async (args: { encrypted: string; password: string; iv: string; tag: string }) => {
|
|
63
|
-
const key = crypto.scryptSync(args.password, 'opc-salt', 32);
|
|
64
|
-
const decipher = crypto.createDecipheriv('aes-256-gcm', key, Buffer.from(args.iv, 'hex'));
|
|
65
|
-
decipher.setAuthTag(Buffer.from(args.tag, 'hex'));
|
|
66
|
-
let decrypted = decipher.update(args.encrypted, 'hex', 'utf8');
|
|
67
|
-
decrypted += decipher.final('utf8');
|
|
68
|
-
return { decrypted };
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
};
|
|
73
|
-
}
|