wunderland 0.72.2 → 0.82.0
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 +6 -8
- package/dist/agents/builder/AgentManifest.d.ts +1 -1
- package/dist/agents/builder/AgentManifest.d.ts.map +1 -1
- package/dist/agents/builder/NaturalLanguageAgentBuilder.d.ts +2 -2
- package/dist/agents/builder/NaturalLanguageAgentBuilder.d.ts.map +1 -1
- package/dist/agents/builder/WunderlandSeed.d.ts +3 -3
- package/dist/agents/builder/WunderlandSeed.d.ts.map +1 -1
- package/dist/agents/builder/WunderlandSeed.js +1 -1
- package/dist/agents/builder/WunderlandSeed.js.map +1 -1
- package/dist/agents/builder/validation.d.ts +2 -2
- package/dist/agents/builder/validation.d.ts.map +1 -1
- package/dist/agents/builder/validation.js +1 -1
- package/dist/agents/builder/validation.js.map +1 -1
- package/dist/agents/lifecycle/AgentBootstrap.d.ts +8 -8
- package/dist/agents/lifecycle/AgentBootstrap.d.ts.map +1 -1
- package/dist/agents/lifecycle/AgentBootstrap.js +21 -21
- package/dist/agents/lifecycle/AgentBootstrap.js.map +1 -1
- package/dist/agents/lifecycle/SeedNetworkManager.d.ts +1 -1
- package/dist/agents/lifecycle/SeedNetworkManager.d.ts.map +1 -1
- package/dist/agents/presets/PresetLoader.d.ts +1 -1
- package/dist/agents/presets/PresetLoader.d.ts.map +1 -1
- package/dist/agents/presets/resolve-skill-context.d.ts +23 -0
- package/dist/agents/presets/resolve-skill-context.d.ts.map +1 -0
- package/dist/agents/presets/resolve-skill-context.js +165 -0
- package/dist/agents/presets/resolve-skill-context.js.map +1 -0
- package/dist/agents/prompts/PromptBuilder.d.ts +1 -1
- package/dist/agents/prompts/PromptBuilder.d.ts.map +1 -1
- package/dist/autonomy/jobs/JobEvaluator.d.ts +1 -1
- package/dist/autonomy/jobs/JobEvaluator.d.ts.map +1 -1
- package/dist/autonomy/jobs/JobMemoryService.d.ts +1 -1
- package/dist/autonomy/jobs/JobMemoryService.d.ts.map +1 -1
- package/dist/autonomy/orchestration/mission-tools.d.ts +10 -0
- package/dist/autonomy/orchestration/mission-tools.d.ts.map +1 -0
- package/dist/autonomy/orchestration/mission-tools.js +32 -0
- package/dist/autonomy/orchestration/mission-tools.js.map +1 -0
- package/dist/autonomy/orchestration/yaml-compiler.d.ts +1 -0
- package/dist/autonomy/orchestration/yaml-compiler.d.ts.map +1 -1
- package/dist/autonomy/orchestration/yaml-compiler.js +3 -0
- package/dist/autonomy/orchestration/yaml-compiler.js.map +1 -1
- package/dist/autonomy/scheduling/CronScheduler.d.ts +27 -2
- package/dist/autonomy/scheduling/CronScheduler.d.ts.map +1 -1
- package/dist/autonomy/scheduling/CronScheduler.js +95 -27
- package/dist/autonomy/scheduling/CronScheduler.js.map +1 -1
- package/dist/autonomy/social/BrowsingEngine.d.ts +1 -1
- package/dist/autonomy/social/BrowsingEngine.d.ts.map +1 -1
- package/dist/autonomy/social/DynamicVoiceProfile.d.ts +1 -1
- package/dist/autonomy/social/DynamicVoiceProfile.d.ts.map +1 -1
- package/dist/autonomy/social/InputManifest.d.ts +2 -2
- package/dist/autonomy/social/InputManifest.d.ts.map +1 -1
- package/dist/autonomy/social/InputManifest.js +1 -1
- package/dist/autonomy/social/InputManifest.js.map +1 -1
- package/dist/autonomy/social/MoodEngine.d.ts +1 -1
- package/dist/autonomy/social/MoodEngine.d.ts.map +1 -1
- package/dist/autonomy/social/NewsroomAgency.d.ts +1 -1
- package/dist/autonomy/social/NewsroomAgency.d.ts.map +1 -1
- package/dist/autonomy/social/NewsroomAgency.js +2 -2
- package/dist/autonomy/social/NewsroomAgency.js.map +1 -1
- package/dist/autonomy/social/PostDecisionEngine.d.ts +1 -1
- package/dist/autonomy/social/PostDecisionEngine.d.ts.map +1 -1
- package/dist/autonomy/social/ToolAccessProfiles.d.ts +2 -2
- package/dist/autonomy/social/ToolAccessProfiles.d.ts.map +1 -1
- package/dist/autonomy/social/ToolAccessProfiles.js +13 -4
- package/dist/autonomy/social/ToolAccessProfiles.js.map +1 -1
- package/dist/autonomy/social/TraitEvolution.d.ts +1 -1
- package/dist/autonomy/social/TraitEvolution.d.ts.map +1 -1
- package/dist/autonomy/social/TrustEngine.d.ts +1 -1
- package/dist/autonomy/social/TrustEngine.d.ts.map +1 -1
- package/dist/autonomy/social/WonderlandNetwork.js +1 -1
- package/dist/autonomy/social/WonderlandNetwork.js.map +1 -1
- package/dist/autonomy/social/types.d.ts +1 -1
- package/dist/autonomy/social/types.d.ts.map +1 -1
- package/dist/bootstrap/index.d.ts +4 -4
- package/dist/bootstrap/index.d.ts.map +1 -1
- package/dist/bootstrap/index.js +4 -4
- package/dist/bootstrap/index.js.map +1 -1
- package/dist/channels/api/api-index.d.ts.map +1 -0
- package/dist/channels/api/api-index.js.map +1 -0
- package/dist/channels/api/chat-runtime.d.ts +68 -0
- package/dist/channels/api/chat-runtime.d.ts.map +1 -0
- package/dist/channels/api/chat-runtime.js +123 -0
- package/dist/channels/api/chat-runtime.js.map +1 -0
- package/dist/channels/api/index.d.ts.map +1 -0
- package/dist/channels/api/index.js.map +1 -0
- package/dist/channels/api/rate-limiter.d.ts.map +1 -0
- package/dist/channels/api/rate-limiter.js.map +1 -0
- package/dist/channels/api/routes/agents.d.ts.map +1 -0
- package/dist/channels/api/routes/agents.js.map +1 -0
- package/dist/channels/api/routes/chat.d.ts.map +1 -0
- package/dist/channels/api/routes/chat.js +287 -0
- package/dist/channels/api/routes/chat.js.map +1 -0
- package/dist/channels/api/routes/config.d.ts.map +1 -0
- package/dist/channels/api/routes/config.js.map +1 -0
- package/dist/channels/api/routes/health.d.ts.map +1 -0
- package/dist/channels/api/routes/health.js.map +1 -0
- package/dist/channels/api/routes/index.d.ts.map +1 -0
- package/dist/channels/api/routes/index.js.map +1 -0
- package/dist/channels/api/routes/social.d.ts.map +1 -0
- package/dist/channels/api/routes/social.js.map +1 -0
- package/dist/channels/api/routes/types.d.ts +85 -0
- package/dist/channels/api/routes/types.d.ts.map +1 -0
- package/dist/channels/api/routes/types.js.map +1 -0
- package/dist/channels/api/server-helpers.d.ts +32 -0
- package/dist/channels/api/server-helpers.d.ts.map +1 -0
- package/dist/channels/api/server-helpers.js.map +1 -0
- package/dist/channels/api/server.d.ts +97 -0
- package/dist/channels/api/server.d.ts.map +1 -0
- package/dist/channels/api/server.js +1065 -0
- package/dist/channels/api/server.js.map +1 -0
- package/dist/channels/api/types.d.ts +527 -0
- package/dist/channels/api/types.d.ts.map +1 -0
- package/dist/channels/api/types.js.map +1 -0
- package/dist/channels/browser/BrowserClient.d.ts.map +1 -0
- package/dist/channels/browser/BrowserClient.js.map +1 -0
- package/dist/channels/browser/BrowserInteractions.d.ts.map +1 -0
- package/dist/channels/browser/BrowserInteractions.js.map +1 -0
- package/dist/channels/browser/BrowserSession.d.ts.map +1 -0
- package/dist/channels/browser/BrowserSession.js.map +1 -0
- package/dist/channels/browser/browser-index.d.ts.map +1 -0
- package/dist/channels/browser/browser-index.js.map +1 -0
- package/dist/channels/browser/index.d.ts.map +1 -0
- package/dist/channels/browser/index.js.map +1 -0
- package/dist/channels/browser/types.d.ts.map +1 -0
- package/dist/channels/browser/types.js.map +1 -0
- package/dist/channels/chat/ChatTaskResponder.d.ts +22 -0
- package/dist/channels/chat/ChatTaskResponder.d.ts.map +1 -1
- package/dist/channels/chat/ChatTaskResponder.js +37 -5
- package/dist/channels/chat/ChatTaskResponder.js.map +1 -1
- package/dist/channels/chat/types.d.ts +10 -0
- package/dist/channels/chat/types.d.ts.map +1 -1
- package/dist/channels/voice/call-client.d.ts.map +1 -0
- package/dist/channels/voice/call-client.js.map +1 -0
- package/dist/channels/voice/index.d.ts.map +1 -0
- package/dist/channels/voice/index.js.map +1 -0
- package/dist/channels/voice/speech-catalog.d.ts.map +1 -0
- package/dist/channels/voice/speech-catalog.js.map +1 -0
- package/dist/channels/voice/streaming-pipeline.d.ts.map +1 -0
- package/dist/channels/voice/streaming-pipeline.js +305 -0
- package/dist/channels/voice/streaming-pipeline.js.map +1 -0
- package/dist/channels/voice/telephony-webhook-server.d.ts.map +1 -0
- package/dist/channels/voice/telephony-webhook-server.js.map +1 -0
- package/dist/channels/voice/voice-index.d.ts.map +1 -0
- package/dist/channels/voice/voice-index.js.map +1 -0
- package/dist/channels/voice/ws-server.d.ts.map +1 -0
- package/dist/channels/voice/ws-server.js +187 -0
- package/dist/channels/voice/ws-server.js.map +1 -0
- package/dist/cli/commands/ChatREPL.d.ts +1 -1
- package/dist/cli/commands/ChatREPL.d.ts.map +1 -1
- package/dist/cli/commands/ChatREPL.js +1 -1
- package/dist/cli/commands/ChatREPL.js.map +1 -1
- package/dist/cli/commands/ChatStreamRenderer.d.ts +1 -1
- package/dist/cli/commands/ChatStreamRenderer.d.ts.map +1 -1
- package/dist/cli/commands/ChatStreamRenderer.js +1 -1
- package/dist/cli/commands/ChatStreamRenderer.js.map +1 -1
- package/dist/cli/commands/agency.js +1 -1
- package/dist/cli/commands/agency.js.map +1 -1
- package/dist/cli/commands/agent/serve.js +1 -1
- package/dist/cli/commands/agent/serve.js.map +1 -1
- package/dist/cli/commands/ai/audio.js +2 -2
- package/dist/cli/commands/ai/audio.js.map +1 -1
- package/dist/cli/commands/ai/image.js +1 -1
- package/dist/cli/commands/ai/image.js.map +1 -1
- package/dist/cli/commands/ai/structured.js +1 -1
- package/dist/cli/commands/ai/structured.js.map +1 -1
- package/dist/cli/commands/ai/video.js +1 -1
- package/dist/cli/commands/ai/video.js.map +1 -1
- package/dist/cli/commands/batch-create.js +1 -1
- package/dist/cli/commands/batch-create.js.map +1 -1
- package/dist/cli/commands/chat-ui.d.ts +1 -1
- package/dist/cli/commands/chat-ui.d.ts.map +1 -1
- package/dist/cli/commands/chat.js +23 -23
- package/dist/cli/commands/chat.js.map +1 -1
- package/dist/cli/commands/create.js +1 -1
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/cron.d.ts.map +1 -1
- package/dist/cli/commands/cron.js +5 -4
- package/dist/cli/commands/cron.js.map +1 -1
- package/dist/cli/commands/dashboard/routes/index.js +1 -1
- package/dist/cli/commands/dashboard/routes/index.js.map +1 -1
- package/dist/cli/commands/export-session.js +2 -2
- package/dist/cli/commands/export-session.js.map +1 -1
- package/dist/cli/commands/list-personas.js +1 -1
- package/dist/cli/commands/list-personas.js.map +1 -1
- package/dist/cli/commands/mission-model-flags.d.ts +52 -0
- package/dist/cli/commands/mission-model-flags.d.ts.map +1 -0
- package/dist/cli/commands/mission-model-flags.js +90 -0
- package/dist/cli/commands/mission-model-flags.js.map +1 -0
- package/dist/cli/commands/mission.d.ts.map +1 -1
- package/dist/cli/commands/mission.js +38 -16
- package/dist/cli/commands/mission.js.map +1 -1
- package/dist/cli/commands/new.js +1 -1
- package/dist/cli/commands/new.js.map +1 -1
- package/dist/cli/commands/provenance.js +1 -1
- package/dist/cli/commands/provenance.js.map +1 -1
- package/dist/cli/commands/rag.js +2 -2
- package/dist/cli/commands/rag.js.map +1 -1
- package/dist/cli/commands/spawn.js +1 -1
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/cli/commands/start/adaptive-runtime-init.js +2 -2
- package/dist/cli/commands/start/adaptive-runtime-init.js.map +1 -1
- package/dist/cli/commands/start/agent-turn.d.ts +38 -0
- package/dist/cli/commands/start/agent-turn.d.ts.map +1 -0
- package/dist/cli/commands/start/agent-turn.js +110 -0
- package/dist/cli/commands/start/agent-turn.js.map +1 -0
- package/dist/cli/commands/start/channel-handler.d.ts +1 -1
- package/dist/cli/commands/start/channel-handler.d.ts.map +1 -1
- package/dist/cli/commands/start/channel-handler.js +5 -5
- package/dist/cli/commands/start/channel-handler.js.map +1 -1
- package/dist/cli/commands/start/config-loader.js +1 -1
- package/dist/cli/commands/start/config-loader.js.map +1 -1
- package/dist/cli/commands/start/extension-loader.js +8 -8
- package/dist/cli/commands/start/extension-loader.js.map +1 -1
- package/dist/cli/commands/start/http-server.js +1 -1
- package/dist/cli/commands/start/http-server.js.map +1 -1
- package/dist/cli/commands/start/llm-provider-setup.js +2 -2
- package/dist/cli/commands/start/llm-provider-setup.js.map +1 -1
- package/dist/cli/commands/start/local-memory-tool.d.ts +1 -1
- package/dist/cli/commands/start/local-memory-tool.d.ts.map +1 -1
- package/dist/cli/commands/start/local-memory-tool.js +2 -2
- package/dist/cli/commands/start/local-memory-tool.js.map +1 -1
- package/dist/cli/commands/start/routes/chat.js +4 -4
- package/dist/cli/commands/start/routes/chat.js.map +1 -1
- package/dist/cli/commands/start/routes/index.d.ts +2 -0
- package/dist/cli/commands/start/routes/index.d.ts.map +1 -1
- package/dist/cli/commands/start/routes/index.js +30 -0
- package/dist/cli/commands/start/routes/index.js.map +1 -1
- package/dist/cli/commands/start/routes/types.d.ts +1 -1
- package/dist/cli/commands/start/routes/types.d.ts.map +1 -1
- package/dist/cli/commands/start/routes/webhooks.d.ts +44 -0
- package/dist/cli/commands/start/routes/webhooks.d.ts.map +1 -0
- package/dist/cli/commands/start/routes/webhooks.js +106 -0
- package/dist/cli/commands/start/routes/webhooks.js.map +1 -0
- package/dist/cli/commands/start/seed-initializer.js +4 -4
- package/dist/cli/commands/start/seed-initializer.js.map +1 -1
- package/dist/cli/commands/start/skills-discovery-setup.js +2 -2
- package/dist/cli/commands/start/skills-discovery-setup.js.map +1 -1
- package/dist/cli/commands/start/storage-init.js +1 -1
- package/dist/cli/commands/start/storage-init.js.map +1 -1
- package/dist/cli/commands/status.js +2 -2
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/voice.js +1 -1
- package/dist/cli/commands/voice.js.map +1 -1
- package/dist/cli/commands/workflows.d.ts +1 -1
- package/dist/cli/commands/workflows.d.ts.map +1 -1
- package/dist/cli/commands/workflows.js +3 -3
- package/dist/cli/commands/workflows.js.map +1 -1
- package/dist/cli/constants.d.ts +1 -1
- package/dist/cli/constants.js +1 -1
- package/dist/cli/constants.js.map +1 -1
- package/dist/cli/daemon/daemon-state.js +1 -1
- package/dist/cli/daemon/daemon-state.js.map +1 -1
- package/dist/cli/export/report-export.d.ts +47 -0
- package/dist/cli/export/report-export.d.ts.map +1 -0
- package/dist/cli/export/report-export.js +120 -0
- package/dist/cli/export/report-export.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +13 -10
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/tui/views/discovery-view.js +1 -1
- package/dist/cli/tui/views/discovery-view.js.map +1 -1
- package/dist/cli/tui/views/rag-view.js +1 -1
- package/dist/cli/tui/views/rag-view.js.map +1 -1
- package/dist/cli/tui/views/status-view.js +3 -3
- package/dist/cli/tui/views/status-view.js.map +1 -1
- package/dist/cli/tui/views/voice-view.js +1 -1
- package/dist/cli/tui/views/voice-view.js.map +1 -1
- package/dist/cli/wizards/setup-wizard.js +1 -1
- package/dist/cli/wizards/setup-wizard.js.map +1 -1
- package/dist/cli/wizards/voice-wizard.js +1 -1
- package/dist/cli/wizards/voice-wizard.js.map +1 -1
- package/dist/core/index.d.ts +6 -18
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +6 -35
- package/dist/core/index.js.map +1 -1
- package/dist/memory/auto-ingest/MemoryAutoIngestPipeline.d.ts +68 -0
- package/dist/memory/auto-ingest/MemoryAutoIngestPipeline.d.ts.map +1 -0
- package/dist/memory/auto-ingest/MemoryAutoIngestPipeline.js.map +1 -0
- package/dist/memory/auto-ingest/index.d.ts.map +1 -0
- package/dist/memory/auto-ingest/index.js.map +1 -0
- package/dist/memory/index.d.ts +5 -3
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +5 -3
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/initialization/CognitiveMemoryInitializer.d.ts.map +1 -0
- package/dist/memory/initialization/CognitiveMemoryInitializer.js +98 -0
- package/dist/memory/initialization/CognitiveMemoryInitializer.js.map +1 -0
- package/dist/memory/initialization/MemorySystemInitializer.d.ts.map +1 -0
- package/dist/memory/initialization/MemorySystemInitializer.js.map +1 -0
- package/dist/memory/initialization/index.d.ts.map +1 -0
- package/dist/memory/initialization/index.js.map +1 -0
- package/dist/memory/rag/QueryExpander.d.ts.map +1 -0
- package/dist/memory/rag/QueryExpander.js.map +1 -0
- package/dist/memory/rag/RAGAuditPersistence.d.ts.map +1 -0
- package/dist/memory/rag/RAGAuditPersistence.js.map +1 -0
- package/dist/memory/rag/http-proxy.d.ts +16 -0
- package/dist/memory/rag/http-proxy.d.ts.map +1 -0
- package/dist/memory/rag/http-proxy.js.map +1 -0
- package/dist/memory/rag/hyde-integration.d.ts +41 -0
- package/dist/memory/rag/hyde-integration.d.ts.map +1 -0
- package/dist/memory/rag/hyde-integration.js +87 -0
- package/dist/memory/rag/hyde-integration.js.map +1 -0
- package/dist/memory/rag/index.d.ts.map +1 -0
- package/dist/memory/rag/index.js.map +1 -0
- package/dist/memory/rag/rag-client.d.ts.map +1 -0
- package/dist/memory/rag/rag-client.js.map +1 -0
- package/dist/memory/rag/rag-index.d.ts.map +1 -0
- package/dist/memory/rag/rag-index.js.map +1 -0
- package/dist/memory/rag/runtime-tools.d.ts +4 -0
- package/dist/memory/rag/runtime-tools.d.ts.map +1 -0
- package/dist/memory/rag/runtime-tools.js +115 -0
- package/dist/memory/rag/runtime-tools.js.map +1 -0
- package/dist/memory/retrieval/TurnMemoryRetriever.d.ts +21 -0
- package/dist/memory/retrieval/TurnMemoryRetriever.d.ts.map +1 -0
- package/dist/memory/retrieval/TurnMemoryRetriever.js.map +1 -0
- package/dist/memory/retrieval/index.d.ts.map +1 -0
- package/dist/memory/retrieval/index.js.map +1 -0
- package/dist/memory/storage/AgentMemoryAdapter.d.ts.map +1 -0
- package/dist/memory/storage/AgentMemoryAdapter.js.map +1 -0
- package/dist/memory/storage/AgentStateStore.d.ts.map +1 -0
- package/dist/memory/storage/AgentStateStore.js.map +1 -0
- package/dist/memory/storage/AgentStorageManager.d.ts.map +1 -0
- package/dist/memory/storage/AgentStorageManager.js.map +1 -0
- package/dist/memory/storage/PersonalityMemoryConfig.d.ts.map +1 -0
- package/dist/memory/storage/PersonalityMemoryConfig.js.map +1 -0
- package/dist/memory/storage/index.d.ts.map +1 -0
- package/dist/memory/storage/index.js.map +1 -0
- package/dist/memory/storage/storage-index.d.ts +13 -0
- package/dist/memory/storage/storage-index.d.ts.map +1 -0
- package/dist/memory/storage/storage-index.js +11 -0
- package/dist/memory/storage/storage-index.js.map +1 -0
- package/dist/memory/storage/types.d.ts.map +1 -0
- package/dist/memory/storage/types.js.map +1 -0
- package/dist/platform/config/config-index.d.ts.map +1 -0
- package/dist/platform/config/config-index.js.map +1 -0
- package/dist/platform/config/effective-agent-config.d.ts +24 -0
- package/dist/platform/config/effective-agent-config.d.ts.map +1 -0
- package/dist/platform/config/effective-agent-config.js +272 -0
- package/dist/platform/config/effective-agent-config.js.map +1 -0
- package/dist/platform/config/errors.d.ts.map +1 -0
- package/dist/platform/config/errors.js.map +1 -0
- package/dist/platform/config/index.d.ts.map +1 -0
- package/dist/platform/config/index.js.map +1 -0
- package/dist/platform/config/load.d.ts +32 -0
- package/dist/platform/config/load.d.ts.map +1 -0
- package/dist/platform/config/load.js.map +1 -0
- package/dist/platform/config/persona-registry.d.ts +48 -0
- package/dist/platform/config/persona-registry.d.ts.map +1 -0
- package/dist/platform/config/persona-registry.js.map +1 -0
- package/dist/platform/config/provider-defaults.d.ts +54 -0
- package/dist/platform/config/provider-defaults.d.ts.map +1 -0
- package/dist/platform/config/provider-defaults.js.map +1 -0
- package/dist/platform/config/schema.d.ts +7 -0
- package/dist/platform/config/schema.d.ts.map +1 -0
- package/dist/platform/config/schema.js.map +1 -0
- package/dist/platform/config/wallet-types.d.ts.map +1 -0
- package/dist/platform/config/wallet-types.js.map +1 -0
- package/dist/platform/discovery/WunderlandDiscoveryManager.d.ts +129 -0
- package/dist/platform/discovery/WunderlandDiscoveryManager.d.ts.map +1 -0
- package/dist/platform/discovery/WunderlandDiscoveryManager.js +357 -0
- package/dist/platform/discovery/WunderlandDiscoveryManager.js.map +1 -0
- package/dist/platform/discovery/discovery-index.d.ts.map +1 -0
- package/dist/platform/discovery/discovery-index.js.map +1 -0
- package/dist/platform/discovery/index.d.ts.map +1 -0
- package/dist/platform/discovery/index.js.map +1 -0
- package/dist/platform/discovery/preset-co-occurrence.d.ts.map +1 -0
- package/dist/platform/discovery/preset-co-occurrence.js +36 -0
- package/dist/platform/discovery/preset-co-occurrence.js.map +1 -0
- package/dist/platform/observability/TokenUsageTracker.d.ts +115 -0
- package/dist/platform/observability/TokenUsageTracker.d.ts.map +1 -0
- package/dist/platform/observability/TokenUsageTracker.js +219 -0
- package/dist/platform/observability/TokenUsageTracker.js.map +1 -0
- package/dist/platform/observability/session-text-log.d.ts +1 -1
- package/dist/platform/observability/session-text-log.d.ts.map +1 -1
- package/dist/platform/observability/session-text-log.js +1 -1
- package/dist/platform/observability/session-text-log.js.map +1 -1
- package/dist/platform/observability/token-usage.d.ts +2 -2
- package/dist/platform/observability/token-usage.d.ts.map +1 -1
- package/dist/platform/observability/token-usage.js +1 -1
- package/dist/platform/observability/token-usage.js.map +1 -1
- package/dist/platform/observability/usage-ledger.d.ts +1 -1
- package/dist/platform/observability/usage-ledger.d.ts.map +1 -1
- package/dist/platform/observability/usage-ledger.js +3 -3
- package/dist/platform/observability/usage-ledger.js.map +1 -1
- package/dist/public/index.d.ts +3 -3
- package/dist/public/index.d.ts.map +1 -1
- package/dist/public/index.js +21 -21
- package/dist/public/index.js.map +1 -1
- package/dist/public/types.d.ts +7 -7
- package/dist/public/types.d.ts.map +1 -1
- package/dist/runtime/agentos-bridge/agentos-runtime.d.ts.map +1 -0
- package/dist/runtime/agentos-bridge/agentos-runtime.js.map +1 -0
- package/dist/runtime/agentos-bridge/index.d.ts.map +1 -0
- package/dist/runtime/agentos-bridge/index.js.map +1 -0
- package/dist/runtime/agentos-bridge/query-router-init.d.ts +165 -0
- package/dist/runtime/agentos-bridge/query-router-init.d.ts.map +1 -0
- package/dist/runtime/agentos-bridge/query-router-init.js.map +1 -0
- package/dist/runtime/agentos-bridge/rag-state-persistence.d.ts.map +1 -0
- package/dist/runtime/agentos-bridge/rag-state-persistence.js.map +1 -0
- package/dist/runtime/agentos-bridge/research-classifier.d.ts.map +1 -0
- package/dist/runtime/agentos-bridge/research-classifier.js.map +1 -0
- package/dist/runtime/agentos-bridge/unified-retriever-builder.d.ts +189 -0
- package/dist/runtime/agentos-bridge/unified-retriever-builder.d.ts.map +1 -0
- package/dist/runtime/agentos-bridge/unified-retriever-builder.js +335 -0
- package/dist/runtime/agentos-bridge/unified-retriever-builder.js.map +1 -0
- package/dist/runtime/compaction/CompactionManager.d.ts.map +1 -0
- package/dist/runtime/compaction/CompactionManager.js.map +1 -0
- package/dist/runtime/compaction/index.d.ts.map +1 -0
- package/dist/runtime/compaction/index.js.map +1 -0
- package/dist/runtime/execution/adaptive-execution.d.ts +102 -0
- package/dist/runtime/execution/adaptive-execution.d.ts.map +1 -0
- package/dist/runtime/execution/adaptive-execution.js.map +1 -0
- package/dist/runtime/execution/empty-output-fallback.d.ts.map +1 -0
- package/dist/runtime/execution/empty-output-fallback.js.map +1 -0
- package/dist/runtime/execution/graph-runner.d.ts +58 -0
- package/dist/runtime/execution/graph-runner.d.ts.map +1 -0
- package/dist/runtime/execution/graph-runner.js +411 -0
- package/dist/runtime/execution/graph-runner.js.map +1 -0
- package/dist/runtime/execution/index.d.ts.map +1 -0
- package/dist/runtime/execution/index.js.map +1 -0
- package/dist/runtime/execution/keyed-mutex.d.ts +27 -0
- package/dist/runtime/execution/keyed-mutex.d.ts.map +1 -0
- package/dist/runtime/execution/keyed-mutex.js +52 -0
- package/dist/runtime/execution/keyed-mutex.js.map +1 -0
- package/dist/runtime/execution/llm-stream-adapter.d.ts.map +1 -0
- package/dist/runtime/execution/llm-stream-adapter.js.map +1 -0
- package/dist/runtime/execution/request-persona.d.ts +38 -0
- package/dist/runtime/execution/request-persona.d.ts.map +1 -0
- package/dist/runtime/execution/request-persona.js +117 -0
- package/dist/runtime/execution/request-persona.js.map +1 -0
- package/dist/runtime/execution/schema-on-demand.d.ts +45 -0
- package/dist/runtime/execution/schema-on-demand.d.ts.map +1 -0
- package/dist/runtime/execution/schema-on-demand.js +348 -0
- package/dist/runtime/execution/schema-on-demand.js.map +1 -0
- package/dist/runtime/execution/system-prompt-builder.d.ts +36 -0
- package/dist/runtime/execution/system-prompt-builder.d.ts.map +1 -0
- package/dist/runtime/execution/system-prompt-builder.js.map +1 -0
- package/dist/runtime/identity/agent-identity.d.ts.map +1 -0
- package/dist/runtime/identity/agent-identity.js.map +1 -0
- package/dist/runtime/identity/api-key-resolver.d.ts.map +1 -0
- package/dist/runtime/identity/api-key-resolver.js.map +1 -0
- package/dist/runtime/identity/index.d.ts.map +1 -0
- package/dist/runtime/identity/index.js.map +1 -0
- package/dist/runtime/inference/HierarchicalInferenceRouter.d.ts +102 -0
- package/dist/runtime/inference/HierarchicalInferenceRouter.d.ts.map +1 -0
- package/dist/runtime/inference/HierarchicalInferenceRouter.js +407 -0
- package/dist/runtime/inference/HierarchicalInferenceRouter.js.map +1 -0
- package/dist/runtime/inference/SmallModelResolver.d.ts.map +1 -0
- package/dist/runtime/inference/SmallModelResolver.js +137 -0
- package/dist/runtime/inference/SmallModelResolver.js.map +1 -0
- package/dist/runtime/inference/index.d.ts.map +1 -0
- package/dist/runtime/inference/index.js.map +1 -0
- package/dist/runtime/inference/inference-index.d.ts.map +1 -0
- package/dist/runtime/inference/inference-index.js.map +1 -0
- package/dist/runtime/inference/types.d.ts +116 -0
- package/dist/runtime/inference/types.d.ts.map +1 -0
- package/dist/runtime/inference/types.js.map +1 -0
- package/dist/runtime/tools/CronTool.d.ts +16 -0
- package/dist/runtime/tools/CronTool.d.ts.map +1 -0
- package/dist/runtime/tools/CronTool.js +281 -0
- package/dist/runtime/tools/CronTool.js.map +1 -0
- package/dist/runtime/tools/ElevenLabsTool.d.ts.map +1 -0
- package/dist/runtime/tools/ElevenLabsTool.js.map +1 -0
- package/dist/runtime/tools/FeedSearchTool.d.ts.map +1 -0
- package/dist/runtime/tools/FeedSearchTool.js.map +1 -0
- package/dist/runtime/tools/GiphyTool.d.ts.map +1 -0
- package/dist/runtime/tools/GiphyTool.js.map +1 -0
- package/dist/runtime/tools/LlmsTxtDiscovery.d.ts.map +1 -0
- package/dist/runtime/tools/LlmsTxtDiscovery.js.map +1 -0
- package/dist/runtime/tools/MediaSearchTool.d.ts.map +1 -0
- package/dist/runtime/tools/MediaSearchTool.js.map +1 -0
- package/dist/runtime/tools/MemoryReadTool.d.ts.map +1 -0
- package/dist/runtime/tools/MemoryReadTool.js.map +1 -0
- package/dist/runtime/tools/NewsSearchTool.d.ts.map +1 -0
- package/dist/runtime/tools/NewsSearchTool.js.map +1 -0
- package/dist/runtime/tools/RAGTool.d.ts.map +1 -0
- package/dist/runtime/tools/RAGTool.js +132 -0
- package/dist/runtime/tools/RAGTool.js.map +1 -0
- package/dist/runtime/tools/RequestFolderAccessTool.d.ts +28 -0
- package/dist/runtime/tools/RequestFolderAccessTool.d.ts.map +1 -0
- package/dist/runtime/tools/RequestFolderAccessTool.js +124 -0
- package/dist/runtime/tools/RequestFolderAccessTool.js.map +1 -0
- package/dist/runtime/tools/SerperSearchTool.d.ts.map +1 -0
- package/dist/runtime/tools/SerperSearchTool.js.map +1 -0
- package/dist/runtime/tools/SocialPostTool.d.ts +76 -0
- package/dist/runtime/tools/SocialPostTool.d.ts.map +1 -0
- package/dist/runtime/tools/SocialPostTool.js +116 -0
- package/dist/runtime/tools/SocialPostTool.js.map +1 -0
- package/dist/runtime/tools/ToolApprovalHandler.d.ts +152 -0
- package/dist/runtime/tools/ToolApprovalHandler.d.ts.map +1 -0
- package/dist/runtime/tools/ToolApprovalHandler.js +269 -0
- package/dist/runtime/tools/ToolApprovalHandler.js.map +1 -0
- package/dist/runtime/tools/ToolRegistry.d.ts.map +1 -0
- package/dist/runtime/tools/ToolRegistry.js +171 -0
- package/dist/runtime/tools/ToolRegistry.js.map +1 -0
- package/dist/runtime/tools/ToolStreamProcessor.d.ts +200 -0
- package/dist/runtime/tools/ToolStreamProcessor.d.ts.map +1 -0
- package/dist/runtime/tools/ToolStreamProcessor.js +410 -0
- package/dist/runtime/tools/ToolStreamProcessor.js.map +1 -0
- package/dist/runtime/tools/attach-env.d.ts +31 -0
- package/dist/runtime/tools/attach-env.d.ts.map +1 -0
- package/dist/runtime/tools/attach-env.js +41 -0
- package/dist/runtime/tools/attach-env.js.map +1 -0
- package/dist/runtime/tools/index.d.ts.map +1 -0
- package/dist/runtime/tools/index.js.map +1 -0
- package/dist/runtime/tools/ollama-options.d.ts.map +1 -0
- package/dist/runtime/tools/ollama-options.js.map +1 -0
- package/dist/runtime/tools/policy.d.ts +98 -0
- package/dist/runtime/tools/policy.d.ts.map +1 -0
- package/dist/runtime/tools/policy.js +253 -0
- package/dist/runtime/tools/policy.js.map +1 -0
- package/dist/runtime/tools/tool-calling.d.ts +111 -0
- package/dist/runtime/tools/tool-calling.d.ts.map +1 -0
- package/dist/runtime/tools/tool-calling.js +713 -0
- package/dist/runtime/tools/tool-calling.js.map +1 -0
- package/dist/runtime/tools/tool-failure-learner.d.ts +57 -0
- package/dist/runtime/tools/tool-failure-learner.d.ts.map +1 -0
- package/dist/runtime/tools/tool-failure-learner.js.map +1 -0
- package/dist/runtime/tools/tool-function-names.d.ts.map +1 -0
- package/dist/runtime/tools/tool-function-names.js.map +1 -0
- package/dist/runtime/tools/tool-helpers.d.ts +355 -0
- package/dist/runtime/tools/tool-helpers.d.ts.map +1 -0
- package/dist/runtime/tools/tool-helpers.js +1022 -0
- package/dist/runtime/tools/tool-helpers.js.map +1 -0
- package/dist/runtime/tools/tools-index.d.ts.map +1 -0
- package/dist/runtime/tools/tools-index.js.map +1 -0
- package/dist/runtime/tools/turn-tool-selection.d.ts +16 -0
- package/dist/runtime/tools/turn-tool-selection.d.ts.map +1 -0
- package/dist/runtime/tools/turn-tool-selection.js +94 -0
- package/dist/runtime/tools/turn-tool-selection.js.map +1 -0
- package/dist/runtime/tools/workspace.d.ts.map +1 -0
- package/dist/runtime/tools/workspace.js.map +1 -0
- package/dist/security/SecurityTiers.d.ts +1 -1
- package/dist/security/SecurityTiers.d.ts.map +1 -1
- package/dist/security/SecurityTiers.js +1 -1
- package/dist/security/SecurityTiers.js.map +1 -1
- package/dist/security/SignedOutputVerifier.d.ts +1 -1
- package/dist/security/SignedOutputVerifier.d.ts.map +1 -1
- package/dist/security/SignedOutputVerifier.js +1 -1
- package/dist/security/SignedOutputVerifier.js.map +1 -1
- package/dist/security/StepUpAuthorizationManager.d.ts +1 -1
- package/dist/security/StepUpAuthorizationManager.d.ts.map +1 -1
- package/dist/security/StepUpAuthorizationManager.js +1 -1
- package/dist/security/StepUpAuthorizationManager.js.map +1 -1
- package/dist/security/WunderlandSecurityPipeline.d.ts +1 -1
- package/dist/security/WunderlandSecurityPipeline.d.ts.map +1 -1
- package/dist/security/authorization-types.d.ts +1 -1
- package/dist/security/authorization-types.d.ts.map +1 -1
- package/dist/security/safe-merge.d.ts.map +1 -0
- package/dist/security/safe-merge.js.map +1 -0
- package/dist/security/ssrf-guard.d.ts +96 -0
- package/dist/security/ssrf-guard.d.ts.map +1 -0
- package/dist/security/ssrf-guard.js +293 -0
- package/dist/security/ssrf-guard.js.map +1 -0
- package/dist/security/types.d.ts +2 -2
- package/dist/security/types.d.ts.map +1 -1
- package/dist/skills/index.d.ts +4 -6
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +4 -7
- package/dist/skills/index.js.map +1 -1
- package/dist/types/core-types.d.ts +359 -0
- package/dist/types/core-types.d.ts.map +1 -0
- package/dist/types/core-types.js +224 -0
- package/dist/types/core-types.js.map +1 -0
- package/package.json +16 -66
- package/dist/advanced/agency.d.ts +0 -8
- package/dist/advanced/agency.d.ts.map +0 -1
- package/dist/advanced/agency.js +0 -8
- package/dist/advanced/agency.js.map +0 -1
- package/dist/advanced/authorization.d.ts +0 -3
- package/dist/advanced/authorization.d.ts.map +0 -1
- package/dist/advanced/authorization.js +0 -4
- package/dist/advanced/authorization.js.map +0 -1
- package/dist/advanced/browser.d.ts +0 -2
- package/dist/advanced/browser.d.ts.map +0 -1
- package/dist/advanced/browser.js +0 -3
- package/dist/advanced/browser.js.map +0 -1
- package/dist/advanced/core.d.ts +0 -2
- package/dist/advanced/core.d.ts.map +0 -1
- package/dist/advanced/core.js +0 -3
- package/dist/advanced/core.js.map +0 -1
- package/dist/advanced/evaluation.d.ts +0 -8
- package/dist/advanced/evaluation.d.ts.map +0 -1
- package/dist/advanced/evaluation.js +0 -8
- package/dist/advanced/evaluation.js.map +0 -1
- package/dist/advanced/guardrails.d.ts +0 -2
- package/dist/advanced/guardrails.d.ts.map +0 -1
- package/dist/advanced/guardrails.js +0 -3
- package/dist/advanced/guardrails.js.map +0 -1
- package/dist/advanced/index.d.ts +0 -61
- package/dist/advanced/index.d.ts.map +0 -1
- package/dist/advanced/index.js +0 -93
- package/dist/advanced/index.js.map +0 -1
- package/dist/advanced/inference.d.ts +0 -2
- package/dist/advanced/inference.d.ts.map +0 -1
- package/dist/advanced/inference.js +0 -3
- package/dist/advanced/inference.js.map +0 -1
- package/dist/advanced/jobs.d.ts +0 -2
- package/dist/advanced/jobs.d.ts.map +0 -1
- package/dist/advanced/jobs.js +0 -3
- package/dist/advanced/jobs.js.map +0 -1
- package/dist/advanced/knowledge.d.ts +0 -8
- package/dist/advanced/knowledge.d.ts.map +0 -1
- package/dist/advanced/knowledge.js +0 -8
- package/dist/advanced/knowledge.js.map +0 -1
- package/dist/advanced/marketplace.d.ts +0 -8
- package/dist/advanced/marketplace.d.ts.map +0 -1
- package/dist/advanced/marketplace.js +0 -8
- package/dist/advanced/marketplace.js.map +0 -1
- package/dist/advanced/pairing.d.ts +0 -2
- package/dist/advanced/pairing.d.ts.map +0 -1
- package/dist/advanced/pairing.js +0 -3
- package/dist/advanced/pairing.js.map +0 -1
- package/dist/advanced/planning.d.ts +0 -8
- package/dist/advanced/planning.d.ts.map +0 -1
- package/dist/advanced/planning.js +0 -8
- package/dist/advanced/planning.js.map +0 -1
- package/dist/advanced/provenance.d.ts +0 -8
- package/dist/advanced/provenance.d.ts.map +0 -1
- package/dist/advanced/provenance.js +0 -8
- package/dist/advanced/provenance.js.map +0 -1
- package/dist/advanced/rag.d.ts +0 -2
- package/dist/advanced/rag.d.ts.map +0 -1
- package/dist/advanced/rag.js +0 -3
- package/dist/advanced/rag.js.map +0 -1
- package/dist/advanced/scheduling.d.ts +0 -2
- package/dist/advanced/scheduling.d.ts.map +0 -1
- package/dist/advanced/scheduling.js +0 -3
- package/dist/advanced/scheduling.js.map +0 -1
- package/dist/advanced/security.d.ts +0 -2
- package/dist/advanced/security.d.ts.map +0 -1
- package/dist/advanced/security.js +0 -3
- package/dist/advanced/security.js.map +0 -1
- package/dist/advanced/skills.d.ts +0 -2
- package/dist/advanced/skills.d.ts.map +0 -1
- package/dist/advanced/skills.js +0 -3
- package/dist/advanced/skills.js.map +0 -1
- package/dist/advanced/social.d.ts +0 -2
- package/dist/advanced/social.d.ts.map +0 -1
- package/dist/advanced/social.js +0 -3
- package/dist/advanced/social.js.map +0 -1
- package/dist/advanced/structured.d.ts +0 -8
- package/dist/advanced/structured.d.ts.map +0 -1
- package/dist/advanced/structured.js +0 -8
- package/dist/advanced/structured.js.map +0 -1
- package/dist/advanced/voice.d.ts +0 -2
- package/dist/advanced/voice.d.ts.map +0 -1
- package/dist/advanced/voice.js +0 -3
- package/dist/advanced/voice.js.map +0 -1
- package/dist/advanced/workflows.d.ts +0 -15
- package/dist/advanced/workflows.d.ts.map +0 -1
- package/dist/advanced/workflows.js +0 -15
- package/dist/advanced/workflows.js.map +0 -1
- package/dist/api/index.d.ts +0 -2
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +0 -1
- package/dist/browser/index.d.ts +0 -2
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.js +0 -2
- package/dist/browser/index.js.map +0 -1
- package/dist/channels/api-new/api-index.d.ts.map +0 -1
- package/dist/channels/api-new/api-index.js.map +0 -1
- package/dist/channels/api-new/chat-runtime.d.ts +0 -68
- package/dist/channels/api-new/chat-runtime.d.ts.map +0 -1
- package/dist/channels/api-new/chat-runtime.js +0 -123
- package/dist/channels/api-new/chat-runtime.js.map +0 -1
- package/dist/channels/api-new/index.d.ts.map +0 -1
- package/dist/channels/api-new/index.js.map +0 -1
- package/dist/channels/api-new/rate-limiter.d.ts.map +0 -1
- package/dist/channels/api-new/rate-limiter.js.map +0 -1
- package/dist/channels/api-new/routes/agents.d.ts.map +0 -1
- package/dist/channels/api-new/routes/agents.js.map +0 -1
- package/dist/channels/api-new/routes/chat.d.ts.map +0 -1
- package/dist/channels/api-new/routes/chat.js +0 -287
- package/dist/channels/api-new/routes/chat.js.map +0 -1
- package/dist/channels/api-new/routes/config.d.ts.map +0 -1
- package/dist/channels/api-new/routes/config.js.map +0 -1
- package/dist/channels/api-new/routes/health.d.ts.map +0 -1
- package/dist/channels/api-new/routes/health.js.map +0 -1
- package/dist/channels/api-new/routes/index.d.ts.map +0 -1
- package/dist/channels/api-new/routes/index.js.map +0 -1
- package/dist/channels/api-new/routes/social.d.ts.map +0 -1
- package/dist/channels/api-new/routes/social.js.map +0 -1
- package/dist/channels/api-new/routes/types.d.ts +0 -85
- package/dist/channels/api-new/routes/types.d.ts.map +0 -1
- package/dist/channels/api-new/routes/types.js.map +0 -1
- package/dist/channels/api-new/server-helpers.d.ts +0 -32
- package/dist/channels/api-new/server-helpers.d.ts.map +0 -1
- package/dist/channels/api-new/server-helpers.js.map +0 -1
- package/dist/channels/api-new/server.d.ts +0 -97
- package/dist/channels/api-new/server.d.ts.map +0 -1
- package/dist/channels/api-new/server.js +0 -1065
- package/dist/channels/api-new/server.js.map +0 -1
- package/dist/channels/api-new/types.d.ts +0 -527
- package/dist/channels/api-new/types.d.ts.map +0 -1
- package/dist/channels/api-new/types.js.map +0 -1
- package/dist/channels/browser-new/BrowserClient.d.ts.map +0 -1
- package/dist/channels/browser-new/BrowserClient.js.map +0 -1
- package/dist/channels/browser-new/BrowserInteractions.d.ts.map +0 -1
- package/dist/channels/browser-new/BrowserInteractions.js.map +0 -1
- package/dist/channels/browser-new/BrowserSession.d.ts.map +0 -1
- package/dist/channels/browser-new/BrowserSession.js.map +0 -1
- package/dist/channels/browser-new/browser-index.d.ts.map +0 -1
- package/dist/channels/browser-new/browser-index.js.map +0 -1
- package/dist/channels/browser-new/index.d.ts.map +0 -1
- package/dist/channels/browser-new/index.js.map +0 -1
- package/dist/channels/browser-new/types.d.ts.map +0 -1
- package/dist/channels/browser-new/types.js.map +0 -1
- package/dist/channels/voice-new/call-client.d.ts.map +0 -1
- package/dist/channels/voice-new/call-client.js.map +0 -1
- package/dist/channels/voice-new/index.d.ts.map +0 -1
- package/dist/channels/voice-new/index.js.map +0 -1
- package/dist/channels/voice-new/speech-catalog.d.ts.map +0 -1
- package/dist/channels/voice-new/speech-catalog.js.map +0 -1
- package/dist/channels/voice-new/streaming-pipeline.d.ts.map +0 -1
- package/dist/channels/voice-new/streaming-pipeline.js +0 -305
- package/dist/channels/voice-new/streaming-pipeline.js.map +0 -1
- package/dist/channels/voice-new/telephony-webhook-server.d.ts.map +0 -1
- package/dist/channels/voice-new/telephony-webhook-server.js.map +0 -1
- package/dist/channels/voice-new/voice-index.d.ts.map +0 -1
- package/dist/channels/voice-new/voice-index.js.map +0 -1
- package/dist/channels/voice-new/ws-server.d.ts.map +0 -1
- package/dist/channels/voice-new/ws-server.js +0 -187
- package/dist/channels/voice-new/ws-server.js.map +0 -1
- package/dist/config/index.d.ts +0 -2
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -2
- package/dist/config/index.js.map +0 -1
- package/dist/core/TokenUsageTracker.d.ts +0 -115
- package/dist/core/TokenUsageTracker.d.ts.map +0 -1
- package/dist/core/TokenUsageTracker.js +0 -219
- package/dist/core/TokenUsageTracker.js.map +0 -1
- package/dist/core/resolve-skill-context.d.ts +0 -23
- package/dist/core/resolve-skill-context.d.ts.map +0 -1
- package/dist/core/resolve-skill-context.js +0 -165
- package/dist/core/resolve-skill-context.js.map +0 -1
- package/dist/core/safe-merge.d.ts.map +0 -1
- package/dist/core/safe-merge.js.map +0 -1
- package/dist/core/ssrf-guard.d.ts +0 -67
- package/dist/core/ssrf-guard.d.ts.map +0 -1
- package/dist/core/ssrf-guard.js +0 -242
- package/dist/core/ssrf-guard.js.map +0 -1
- package/dist/core/types.d.ts +0 -359
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -224
- package/dist/core/types.js.map +0 -1
- package/dist/discovery/index.d.ts +0 -2
- package/dist/discovery/index.d.ts.map +0 -1
- package/dist/discovery/index.js +0 -2
- package/dist/discovery/index.js.map +0 -1
- package/dist/memory-new/auto-ingest/MemoryAutoIngestPipeline.d.ts +0 -68
- package/dist/memory-new/auto-ingest/MemoryAutoIngestPipeline.d.ts.map +0 -1
- package/dist/memory-new/auto-ingest/MemoryAutoIngestPipeline.js.map +0 -1
- package/dist/memory-new/auto-ingest/index.d.ts.map +0 -1
- package/dist/memory-new/auto-ingest/index.js.map +0 -1
- package/dist/memory-new/initialization/CognitiveMemoryInitializer.d.ts.map +0 -1
- package/dist/memory-new/initialization/CognitiveMemoryInitializer.js +0 -98
- package/dist/memory-new/initialization/CognitiveMemoryInitializer.js.map +0 -1
- package/dist/memory-new/initialization/MemorySystemInitializer.d.ts.map +0 -1
- package/dist/memory-new/initialization/MemorySystemInitializer.js.map +0 -1
- package/dist/memory-new/initialization/index.d.ts.map +0 -1
- package/dist/memory-new/initialization/index.js.map +0 -1
- package/dist/memory-new/rag/QueryExpander.d.ts.map +0 -1
- package/dist/memory-new/rag/QueryExpander.js.map +0 -1
- package/dist/memory-new/rag/RAGAuditPersistence.d.ts.map +0 -1
- package/dist/memory-new/rag/RAGAuditPersistence.js.map +0 -1
- package/dist/memory-new/rag/http-proxy.d.ts +0 -16
- package/dist/memory-new/rag/http-proxy.d.ts.map +0 -1
- package/dist/memory-new/rag/http-proxy.js.map +0 -1
- package/dist/memory-new/rag/hyde-integration.d.ts +0 -41
- package/dist/memory-new/rag/hyde-integration.d.ts.map +0 -1
- package/dist/memory-new/rag/hyde-integration.js +0 -87
- package/dist/memory-new/rag/hyde-integration.js.map +0 -1
- package/dist/memory-new/rag/index.d.ts.map +0 -1
- package/dist/memory-new/rag/index.js.map +0 -1
- package/dist/memory-new/rag/rag-client.d.ts.map +0 -1
- package/dist/memory-new/rag/rag-client.js.map +0 -1
- package/dist/memory-new/rag/rag-index.d.ts.map +0 -1
- package/dist/memory-new/rag/rag-index.js.map +0 -1
- package/dist/memory-new/rag/runtime-tools.d.ts +0 -4
- package/dist/memory-new/rag/runtime-tools.d.ts.map +0 -1
- package/dist/memory-new/rag/runtime-tools.js +0 -115
- package/dist/memory-new/rag/runtime-tools.js.map +0 -1
- package/dist/memory-new/retrieval/TurnMemoryRetriever.d.ts +0 -21
- package/dist/memory-new/retrieval/TurnMemoryRetriever.d.ts.map +0 -1
- package/dist/memory-new/retrieval/TurnMemoryRetriever.js.map +0 -1
- package/dist/memory-new/retrieval/index.d.ts.map +0 -1
- package/dist/memory-new/retrieval/index.js.map +0 -1
- package/dist/memory-new/storage/AgentMemoryAdapter.d.ts.map +0 -1
- package/dist/memory-new/storage/AgentMemoryAdapter.js.map +0 -1
- package/dist/memory-new/storage/AgentStateStore.d.ts.map +0 -1
- package/dist/memory-new/storage/AgentStateStore.js.map +0 -1
- package/dist/memory-new/storage/AgentStorageManager.d.ts.map +0 -1
- package/dist/memory-new/storage/AgentStorageManager.js.map +0 -1
- package/dist/memory-new/storage/PersonalityMemoryConfig.d.ts.map +0 -1
- package/dist/memory-new/storage/PersonalityMemoryConfig.js.map +0 -1
- package/dist/memory-new/storage/index.d.ts.map +0 -1
- package/dist/memory-new/storage/index.js.map +0 -1
- package/dist/memory-new/storage/storage-index.d.ts +0 -13
- package/dist/memory-new/storage/storage-index.d.ts.map +0 -1
- package/dist/memory-new/storage/storage-index.js +0 -11
- package/dist/memory-new/storage/storage-index.js.map +0 -1
- package/dist/memory-new/storage/types.d.ts.map +0 -1
- package/dist/memory-new/storage/types.js.map +0 -1
- package/dist/platform/config-new/config-index.d.ts.map +0 -1
- package/dist/platform/config-new/config-index.js.map +0 -1
- package/dist/platform/config-new/effective-agent-config.d.ts +0 -24
- package/dist/platform/config-new/effective-agent-config.d.ts.map +0 -1
- package/dist/platform/config-new/effective-agent-config.js +0 -272
- package/dist/platform/config-new/effective-agent-config.js.map +0 -1
- package/dist/platform/config-new/errors.d.ts.map +0 -1
- package/dist/platform/config-new/errors.js.map +0 -1
- package/dist/platform/config-new/index.d.ts.map +0 -1
- package/dist/platform/config-new/index.js.map +0 -1
- package/dist/platform/config-new/load.d.ts +0 -32
- package/dist/platform/config-new/load.d.ts.map +0 -1
- package/dist/platform/config-new/load.js.map +0 -1
- package/dist/platform/config-new/persona-registry.d.ts +0 -48
- package/dist/platform/config-new/persona-registry.d.ts.map +0 -1
- package/dist/platform/config-new/persona-registry.js.map +0 -1
- package/dist/platform/config-new/provider-defaults.d.ts +0 -54
- package/dist/platform/config-new/provider-defaults.d.ts.map +0 -1
- package/dist/platform/config-new/provider-defaults.js.map +0 -1
- package/dist/platform/config-new/schema.d.ts +0 -7
- package/dist/platform/config-new/schema.d.ts.map +0 -1
- package/dist/platform/config-new/schema.js.map +0 -1
- package/dist/platform/config-new/wallet-types.d.ts.map +0 -1
- package/dist/platform/config-new/wallet-types.js.map +0 -1
- package/dist/platform/discovery-new/WunderlandDiscoveryManager.d.ts +0 -129
- package/dist/platform/discovery-new/WunderlandDiscoveryManager.d.ts.map +0 -1
- package/dist/platform/discovery-new/WunderlandDiscoveryManager.js +0 -357
- package/dist/platform/discovery-new/WunderlandDiscoveryManager.js.map +0 -1
- package/dist/platform/discovery-new/discovery-index.d.ts.map +0 -1
- package/dist/platform/discovery-new/discovery-index.js.map +0 -1
- package/dist/platform/discovery-new/index.d.ts.map +0 -1
- package/dist/platform/discovery-new/index.js.map +0 -1
- package/dist/platform/discovery-new/preset-co-occurrence.d.ts.map +0 -1
- package/dist/platform/discovery-new/preset-co-occurrence.js +0 -36
- package/dist/platform/discovery-new/preset-co-occurrence.js.map +0 -1
- package/dist/rag/index.d.ts +0 -2
- package/dist/rag/index.d.ts.map +0 -1
- package/dist/rag/index.js +0 -2
- package/dist/rag/index.js.map +0 -1
- package/dist/runtime/index.d.ts +0 -22
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -23
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime-new/agentos-bridge/agentos-runtime.d.ts.map +0 -1
- package/dist/runtime-new/agentos-bridge/agentos-runtime.js.map +0 -1
- package/dist/runtime-new/agentos-bridge/index.d.ts.map +0 -1
- package/dist/runtime-new/agentos-bridge/index.js.map +0 -1
- package/dist/runtime-new/agentos-bridge/query-router-init.d.ts +0 -165
- package/dist/runtime-new/agentos-bridge/query-router-init.d.ts.map +0 -1
- package/dist/runtime-new/agentos-bridge/query-router-init.js.map +0 -1
- package/dist/runtime-new/agentos-bridge/rag-state-persistence.d.ts.map +0 -1
- package/dist/runtime-new/agentos-bridge/rag-state-persistence.js.map +0 -1
- package/dist/runtime-new/agentos-bridge/research-classifier.d.ts.map +0 -1
- package/dist/runtime-new/agentos-bridge/research-classifier.js.map +0 -1
- package/dist/runtime-new/agentos-bridge/unified-retriever-builder.d.ts +0 -189
- package/dist/runtime-new/agentos-bridge/unified-retriever-builder.d.ts.map +0 -1
- package/dist/runtime-new/agentos-bridge/unified-retriever-builder.js +0 -335
- package/dist/runtime-new/agentos-bridge/unified-retriever-builder.js.map +0 -1
- package/dist/runtime-new/compaction/CompactionManager.d.ts.map +0 -1
- package/dist/runtime-new/compaction/CompactionManager.js.map +0 -1
- package/dist/runtime-new/compaction/index.d.ts.map +0 -1
- package/dist/runtime-new/compaction/index.js.map +0 -1
- package/dist/runtime-new/execution/adaptive-execution.d.ts +0 -102
- package/dist/runtime-new/execution/adaptive-execution.d.ts.map +0 -1
- package/dist/runtime-new/execution/adaptive-execution.js.map +0 -1
- package/dist/runtime-new/execution/empty-output-fallback.d.ts.map +0 -1
- package/dist/runtime-new/execution/empty-output-fallback.js.map +0 -1
- package/dist/runtime-new/execution/graph-runner.d.ts +0 -58
- package/dist/runtime-new/execution/graph-runner.d.ts.map +0 -1
- package/dist/runtime-new/execution/graph-runner.js +0 -411
- package/dist/runtime-new/execution/graph-runner.js.map +0 -1
- package/dist/runtime-new/execution/index.d.ts.map +0 -1
- package/dist/runtime-new/execution/index.js.map +0 -1
- package/dist/runtime-new/execution/llm-stream-adapter.d.ts.map +0 -1
- package/dist/runtime-new/execution/llm-stream-adapter.js.map +0 -1
- package/dist/runtime-new/execution/request-persona.d.ts +0 -38
- package/dist/runtime-new/execution/request-persona.d.ts.map +0 -1
- package/dist/runtime-new/execution/request-persona.js +0 -117
- package/dist/runtime-new/execution/request-persona.js.map +0 -1
- package/dist/runtime-new/execution/schema-on-demand.d.ts +0 -45
- package/dist/runtime-new/execution/schema-on-demand.d.ts.map +0 -1
- package/dist/runtime-new/execution/schema-on-demand.js +0 -348
- package/dist/runtime-new/execution/schema-on-demand.js.map +0 -1
- package/dist/runtime-new/execution/system-prompt-builder.d.ts +0 -36
- package/dist/runtime-new/execution/system-prompt-builder.d.ts.map +0 -1
- package/dist/runtime-new/execution/system-prompt-builder.js.map +0 -1
- package/dist/runtime-new/identity/agent-identity.d.ts.map +0 -1
- package/dist/runtime-new/identity/agent-identity.js.map +0 -1
- package/dist/runtime-new/identity/api-key-resolver.d.ts.map +0 -1
- package/dist/runtime-new/identity/api-key-resolver.js.map +0 -1
- package/dist/runtime-new/identity/index.d.ts.map +0 -1
- package/dist/runtime-new/identity/index.js.map +0 -1
- package/dist/runtime-new/inference/HierarchicalInferenceRouter.d.ts +0 -102
- package/dist/runtime-new/inference/HierarchicalInferenceRouter.d.ts.map +0 -1
- package/dist/runtime-new/inference/HierarchicalInferenceRouter.js +0 -407
- package/dist/runtime-new/inference/HierarchicalInferenceRouter.js.map +0 -1
- package/dist/runtime-new/inference/SmallModelResolver.d.ts.map +0 -1
- package/dist/runtime-new/inference/SmallModelResolver.js +0 -137
- package/dist/runtime-new/inference/SmallModelResolver.js.map +0 -1
- package/dist/runtime-new/inference/index.d.ts.map +0 -1
- package/dist/runtime-new/inference/index.js.map +0 -1
- package/dist/runtime-new/inference/inference-index.d.ts.map +0 -1
- package/dist/runtime-new/inference/inference-index.js.map +0 -1
- package/dist/runtime-new/inference/types.d.ts +0 -116
- package/dist/runtime-new/inference/types.d.ts.map +0 -1
- package/dist/runtime-new/inference/types.js.map +0 -1
- package/dist/runtime-new/tools/CronTool.d.ts +0 -16
- package/dist/runtime-new/tools/CronTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/CronTool.js +0 -281
- package/dist/runtime-new/tools/CronTool.js.map +0 -1
- package/dist/runtime-new/tools/ElevenLabsTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/ElevenLabsTool.js.map +0 -1
- package/dist/runtime-new/tools/FeedSearchTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/FeedSearchTool.js.map +0 -1
- package/dist/runtime-new/tools/GiphyTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/GiphyTool.js.map +0 -1
- package/dist/runtime-new/tools/LlmsTxtDiscovery.d.ts.map +0 -1
- package/dist/runtime-new/tools/LlmsTxtDiscovery.js.map +0 -1
- package/dist/runtime-new/tools/MediaSearchTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/MediaSearchTool.js.map +0 -1
- package/dist/runtime-new/tools/MemoryReadTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/MemoryReadTool.js.map +0 -1
- package/dist/runtime-new/tools/NewsSearchTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/NewsSearchTool.js.map +0 -1
- package/dist/runtime-new/tools/RAGTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/RAGTool.js +0 -132
- package/dist/runtime-new/tools/RAGTool.js.map +0 -1
- package/dist/runtime-new/tools/RequestFolderAccessTool.d.ts +0 -28
- package/dist/runtime-new/tools/RequestFolderAccessTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/RequestFolderAccessTool.js +0 -124
- package/dist/runtime-new/tools/RequestFolderAccessTool.js.map +0 -1
- package/dist/runtime-new/tools/SerperSearchTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/SerperSearchTool.js.map +0 -1
- package/dist/runtime-new/tools/SocialPostTool.d.ts +0 -76
- package/dist/runtime-new/tools/SocialPostTool.d.ts.map +0 -1
- package/dist/runtime-new/tools/SocialPostTool.js +0 -116
- package/dist/runtime-new/tools/SocialPostTool.js.map +0 -1
- package/dist/runtime-new/tools/ToolApprovalHandler.d.ts +0 -152
- package/dist/runtime-new/tools/ToolApprovalHandler.d.ts.map +0 -1
- package/dist/runtime-new/tools/ToolApprovalHandler.js +0 -269
- package/dist/runtime-new/tools/ToolApprovalHandler.js.map +0 -1
- package/dist/runtime-new/tools/ToolRegistry.d.ts.map +0 -1
- package/dist/runtime-new/tools/ToolRegistry.js +0 -164
- package/dist/runtime-new/tools/ToolRegistry.js.map +0 -1
- package/dist/runtime-new/tools/ToolStreamProcessor.d.ts +0 -200
- package/dist/runtime-new/tools/ToolStreamProcessor.d.ts.map +0 -1
- package/dist/runtime-new/tools/ToolStreamProcessor.js +0 -410
- package/dist/runtime-new/tools/ToolStreamProcessor.js.map +0 -1
- package/dist/runtime-new/tools/index.d.ts.map +0 -1
- package/dist/runtime-new/tools/index.js.map +0 -1
- package/dist/runtime-new/tools/ollama-options.d.ts.map +0 -1
- package/dist/runtime-new/tools/ollama-options.js.map +0 -1
- package/dist/runtime-new/tools/policy.d.ts +0 -98
- package/dist/runtime-new/tools/policy.d.ts.map +0 -1
- package/dist/runtime-new/tools/policy.js +0 -251
- package/dist/runtime-new/tools/policy.js.map +0 -1
- package/dist/runtime-new/tools/tool-calling.d.ts +0 -111
- package/dist/runtime-new/tools/tool-calling.d.ts.map +0 -1
- package/dist/runtime-new/tools/tool-calling.js +0 -713
- package/dist/runtime-new/tools/tool-calling.js.map +0 -1
- package/dist/runtime-new/tools/tool-failure-learner.d.ts +0 -57
- package/dist/runtime-new/tools/tool-failure-learner.d.ts.map +0 -1
- package/dist/runtime-new/tools/tool-failure-learner.js.map +0 -1
- package/dist/runtime-new/tools/tool-function-names.d.ts.map +0 -1
- package/dist/runtime-new/tools/tool-function-names.js.map +0 -1
- package/dist/runtime-new/tools/tool-helpers.d.ts +0 -355
- package/dist/runtime-new/tools/tool-helpers.d.ts.map +0 -1
- package/dist/runtime-new/tools/tool-helpers.js +0 -1022
- package/dist/runtime-new/tools/tool-helpers.js.map +0 -1
- package/dist/runtime-new/tools/tools-index.d.ts.map +0 -1
- package/dist/runtime-new/tools/tools-index.js.map +0 -1
- package/dist/runtime-new/tools/turn-tool-selection.d.ts +0 -16
- package/dist/runtime-new/tools/turn-tool-selection.d.ts.map +0 -1
- package/dist/runtime-new/tools/turn-tool-selection.js +0 -94
- package/dist/runtime-new/tools/turn-tool-selection.js.map +0 -1
- package/dist/runtime-new/tools/workspace.d.ts.map +0 -1
- package/dist/runtime-new/tools/workspace.js.map +0 -1
- package/dist/storage/index.d.ts +0 -2
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js +0 -2
- package/dist/storage/index.js.map +0 -1
- package/dist/tools/index.d.ts +0 -2
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -2
- package/dist/tools/index.js.map +0 -1
- package/dist/voice/index.d.ts +0 -2
- package/dist/voice/index.d.ts.map +0 -1
- package/dist/voice/index.js +0 -2
- package/dist/voice/index.js.map +0 -1
- /package/dist/channels/{api-new → api}/api-index.d.ts +0 -0
- /package/dist/channels/{api-new → api}/api-index.js +0 -0
- /package/dist/channels/{api-new → api}/index.d.ts +0 -0
- /package/dist/channels/{api-new → api}/index.js +0 -0
- /package/dist/channels/{api-new → api}/rate-limiter.d.ts +0 -0
- /package/dist/channels/{api-new → api}/rate-limiter.js +0 -0
- /package/dist/channels/{api-new → api}/routes/agents.d.ts +0 -0
- /package/dist/channels/{api-new → api}/routes/agents.js +0 -0
- /package/dist/channels/{api-new → api}/routes/chat.d.ts +0 -0
- /package/dist/channels/{api-new → api}/routes/config.d.ts +0 -0
- /package/dist/channels/{api-new → api}/routes/config.js +0 -0
- /package/dist/channels/{api-new → api}/routes/health.d.ts +0 -0
- /package/dist/channels/{api-new → api}/routes/health.js +0 -0
- /package/dist/channels/{api-new → api}/routes/index.d.ts +0 -0
- /package/dist/channels/{api-new → api}/routes/index.js +0 -0
- /package/dist/channels/{api-new → api}/routes/social.d.ts +0 -0
- /package/dist/channels/{api-new → api}/routes/social.js +0 -0
- /package/dist/channels/{api-new → api}/routes/types.js +0 -0
- /package/dist/channels/{api-new → api}/server-helpers.js +0 -0
- /package/dist/channels/{api-new → api}/types.js +0 -0
- /package/dist/channels/{browser-new → browser}/BrowserClient.d.ts +0 -0
- /package/dist/channels/{browser-new → browser}/BrowserClient.js +0 -0
- /package/dist/channels/{browser-new → browser}/BrowserInteractions.d.ts +0 -0
- /package/dist/channels/{browser-new → browser}/BrowserInteractions.js +0 -0
- /package/dist/channels/{browser-new → browser}/BrowserSession.d.ts +0 -0
- /package/dist/channels/{browser-new → browser}/BrowserSession.js +0 -0
- /package/dist/channels/{browser-new → browser}/browser-index.d.ts +0 -0
- /package/dist/channels/{browser-new → browser}/browser-index.js +0 -0
- /package/dist/channels/{browser-new → browser}/index.d.ts +0 -0
- /package/dist/channels/{browser-new → browser}/index.js +0 -0
- /package/dist/channels/{browser-new → browser}/types.d.ts +0 -0
- /package/dist/channels/{browser-new → browser}/types.js +0 -0
- /package/dist/channels/{voice-new → voice}/call-client.d.ts +0 -0
- /package/dist/channels/{voice-new → voice}/call-client.js +0 -0
- /package/dist/channels/{voice-new → voice}/index.d.ts +0 -0
- /package/dist/channels/{voice-new → voice}/index.js +0 -0
- /package/dist/channels/{voice-new → voice}/speech-catalog.d.ts +0 -0
- /package/dist/channels/{voice-new → voice}/speech-catalog.js +0 -0
- /package/dist/channels/{voice-new → voice}/streaming-pipeline.d.ts +0 -0
- /package/dist/channels/{voice-new → voice}/telephony-webhook-server.d.ts +0 -0
- /package/dist/channels/{voice-new → voice}/telephony-webhook-server.js +0 -0
- /package/dist/channels/{voice-new → voice}/voice-index.d.ts +0 -0
- /package/dist/channels/{voice-new → voice}/voice-index.js +0 -0
- /package/dist/channels/{voice-new → voice}/ws-server.d.ts +0 -0
- /package/dist/{memory-new → memory}/auto-ingest/MemoryAutoIngestPipeline.js +0 -0
- /package/dist/{memory-new → memory}/auto-ingest/index.d.ts +0 -0
- /package/dist/{memory-new → memory}/auto-ingest/index.js +0 -0
- /package/dist/{memory-new → memory}/initialization/CognitiveMemoryInitializer.d.ts +0 -0
- /package/dist/{memory-new → memory}/initialization/MemorySystemInitializer.d.ts +0 -0
- /package/dist/{memory-new → memory}/initialization/MemorySystemInitializer.js +0 -0
- /package/dist/{memory-new → memory}/initialization/index.d.ts +0 -0
- /package/dist/{memory-new → memory}/initialization/index.js +0 -0
- /package/dist/{memory-new → memory}/rag/QueryExpander.d.ts +0 -0
- /package/dist/{memory-new → memory}/rag/QueryExpander.js +0 -0
- /package/dist/{memory-new → memory}/rag/RAGAuditPersistence.d.ts +0 -0
- /package/dist/{memory-new → memory}/rag/RAGAuditPersistence.js +0 -0
- /package/dist/{memory-new → memory}/rag/http-proxy.js +0 -0
- /package/dist/{memory-new → memory}/rag/index.d.ts +0 -0
- /package/dist/{memory-new → memory}/rag/index.js +0 -0
- /package/dist/{memory-new → memory}/rag/rag-client.d.ts +0 -0
- /package/dist/{memory-new → memory}/rag/rag-client.js +0 -0
- /package/dist/{memory-new → memory}/rag/rag-index.d.ts +0 -0
- /package/dist/{memory-new → memory}/rag/rag-index.js +0 -0
- /package/dist/{memory-new → memory}/retrieval/TurnMemoryRetriever.js +0 -0
- /package/dist/{memory-new → memory}/retrieval/index.d.ts +0 -0
- /package/dist/{memory-new → memory}/retrieval/index.js +0 -0
- /package/dist/{memory-new → memory}/storage/AgentMemoryAdapter.d.ts +0 -0
- /package/dist/{memory-new → memory}/storage/AgentMemoryAdapter.js +0 -0
- /package/dist/{memory-new → memory}/storage/AgentStateStore.d.ts +0 -0
- /package/dist/{memory-new → memory}/storage/AgentStateStore.js +0 -0
- /package/dist/{memory-new → memory}/storage/AgentStorageManager.d.ts +0 -0
- /package/dist/{memory-new → memory}/storage/AgentStorageManager.js +0 -0
- /package/dist/{memory-new → memory}/storage/PersonalityMemoryConfig.d.ts +0 -0
- /package/dist/{memory-new → memory}/storage/PersonalityMemoryConfig.js +0 -0
- /package/dist/{memory-new → memory}/storage/index.d.ts +0 -0
- /package/dist/{memory-new → memory}/storage/index.js +0 -0
- /package/dist/{memory-new → memory}/storage/types.d.ts +0 -0
- /package/dist/{memory-new → memory}/storage/types.js +0 -0
- /package/dist/platform/{config-new → config}/config-index.d.ts +0 -0
- /package/dist/platform/{config-new → config}/config-index.js +0 -0
- /package/dist/platform/{config-new → config}/errors.d.ts +0 -0
- /package/dist/platform/{config-new → config}/errors.js +0 -0
- /package/dist/platform/{config-new → config}/index.d.ts +0 -0
- /package/dist/platform/{config-new → config}/index.js +0 -0
- /package/dist/platform/{config-new → config}/load.js +0 -0
- /package/dist/platform/{config-new → config}/persona-registry.js +0 -0
- /package/dist/platform/{config-new → config}/provider-defaults.js +0 -0
- /package/dist/platform/{config-new → config}/schema.js +0 -0
- /package/dist/platform/{config-new → config}/wallet-types.d.ts +0 -0
- /package/dist/platform/{config-new → config}/wallet-types.js +0 -0
- /package/dist/platform/{discovery-new → discovery}/discovery-index.d.ts +0 -0
- /package/dist/platform/{discovery-new → discovery}/discovery-index.js +0 -0
- /package/dist/platform/{discovery-new → discovery}/index.d.ts +0 -0
- /package/dist/platform/{discovery-new → discovery}/index.js +0 -0
- /package/dist/platform/{discovery-new → discovery}/preset-co-occurrence.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/agentos-runtime.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/agentos-runtime.js +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/index.js +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/query-router-init.js +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/rag-state-persistence.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/rag-state-persistence.js +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/research-classifier.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/agentos-bridge/research-classifier.js +0 -0
- /package/dist/{runtime-new → runtime}/compaction/CompactionManager.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/compaction/CompactionManager.js +0 -0
- /package/dist/{runtime-new → runtime}/compaction/index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/compaction/index.js +0 -0
- /package/dist/{runtime-new → runtime}/execution/adaptive-execution.js +0 -0
- /package/dist/{runtime-new → runtime}/execution/empty-output-fallback.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/execution/empty-output-fallback.js +0 -0
- /package/dist/{runtime-new → runtime}/execution/index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/execution/index.js +0 -0
- /package/dist/{runtime-new → runtime}/execution/llm-stream-adapter.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/execution/llm-stream-adapter.js +0 -0
- /package/dist/{runtime-new → runtime}/execution/system-prompt-builder.js +0 -0
- /package/dist/{runtime-new → runtime}/identity/agent-identity.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/identity/agent-identity.js +0 -0
- /package/dist/{runtime-new → runtime}/identity/api-key-resolver.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/identity/api-key-resolver.js +0 -0
- /package/dist/{runtime-new → runtime}/identity/index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/identity/index.js +0 -0
- /package/dist/{runtime-new → runtime}/inference/SmallModelResolver.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/inference/index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/inference/index.js +0 -0
- /package/dist/{runtime-new → runtime}/inference/inference-index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/inference/inference-index.js +0 -0
- /package/dist/{runtime-new → runtime}/inference/types.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/ElevenLabsTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/ElevenLabsTool.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/FeedSearchTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/FeedSearchTool.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/GiphyTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/GiphyTool.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/LlmsTxtDiscovery.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/LlmsTxtDiscovery.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/MediaSearchTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/MediaSearchTool.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/MemoryReadTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/MemoryReadTool.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/NewsSearchTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/NewsSearchTool.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/RAGTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/SerperSearchTool.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/SerperSearchTool.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/ToolRegistry.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/index.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/ollama-options.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/ollama-options.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/tool-failure-learner.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/tool-function-names.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/tool-function-names.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/tools-index.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/tools-index.js +0 -0
- /package/dist/{runtime-new → runtime}/tools/workspace.d.ts +0 -0
- /package/dist/{runtime-new → runtime}/tools/workspace.js +0 -0
- /package/dist/{core → security}/safe-merge.d.ts +0 -0
- /package/dist/{core → security}/safe-merge.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach-env.d.ts","sourceRoot":"","sources":["../../../src/runtime/tools/attach-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,oEAAoE;AACpE,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,aAAa,CAAA;CAAE,CAcxG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Build browser-automation attach options from the environment.
|
|
3
|
+
*
|
|
4
|
+
* The attach tool family (`browser_attach_*`) is off unless the pack is
|
|
5
|
+
* constructed with `attach.expectedIdentity`. A normal `wunderland mission run`
|
|
6
|
+
* never passes that, so without this the tools would never load from the CLI.
|
|
7
|
+
* This sources the attach config from env vars (mirroring how voice-synthesis
|
|
8
|
+
* pulls its provider keys) so setting `WUNDERLAND_ATTACH_IDENTITY` is all it
|
|
9
|
+
* takes to make the capability reachable.
|
|
10
|
+
*
|
|
11
|
+
* @module wunderland/runtime/tools/attach-env
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Read attach options from an environment map.
|
|
15
|
+
*
|
|
16
|
+
* @returns `{ attach }` when `WUNDERLAND_ATTACH_IDENTITY` is set, else `{}`
|
|
17
|
+
* (attach stays off).
|
|
18
|
+
*/
|
|
19
|
+
export function attachOptionsFromEnv(env) {
|
|
20
|
+
const expectedIdentity = env.WUNDERLAND_ATTACH_IDENTITY?.trim();
|
|
21
|
+
if (!expectedIdentity)
|
|
22
|
+
return {};
|
|
23
|
+
const attach = { expectedIdentity };
|
|
24
|
+
if (env.WUNDERLAND_ATTACH_TRANSPORT === 'cdp')
|
|
25
|
+
attach.transport = 'cdp';
|
|
26
|
+
else if (env.WUNDERLAND_ATTACH_TRANSPORT === 'jxa')
|
|
27
|
+
attach.transport = 'jxa';
|
|
28
|
+
const hosts = env.WUNDERLAND_ATTACH_HOSTS?.split(',')
|
|
29
|
+
.map((s) => s.trim())
|
|
30
|
+
.filter(Boolean);
|
|
31
|
+
if (hosts && hosts.length)
|
|
32
|
+
attach.allowHosts = hosts;
|
|
33
|
+
if (env.WUNDERLAND_ATTACH_LEASE?.trim())
|
|
34
|
+
attach.leaseFile = env.WUNDERLAND_ATTACH_LEASE.trim();
|
|
35
|
+
if (env.WUNDERLAND_ATTACH_PROFILE_ROOT?.trim())
|
|
36
|
+
attach.profileRoot = env.WUNDERLAND_ATTACH_PROFILE_ROOT.trim();
|
|
37
|
+
if (env.WUNDERLAND_ATTACH_PROBE_URL?.trim())
|
|
38
|
+
attach.identityProbeUrl = env.WUNDERLAND_ATTACH_PROBE_URL.trim();
|
|
39
|
+
return { attach };
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=attach-env.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach-env.js","sourceRoot":"","sources":["../../../src/runtime/tools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../../src/runtime/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ollama-options.d.ts","sourceRoot":"","sources":["../../../src/runtime/tools/ollama-options.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,MAAM,CAAC,EAAE,mBAAmB,GAC3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAYrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ollama-options.js","sourceRoot":"","sources":["../../../src/runtime/tools/ollama-options.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,yBAAyB,CACvC,MAA4B;IAE5B,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAE9B,MAAM,OAAO,GAA4B,EAAE,CAAC;IAC5C,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC7F,OAAO,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;IACrC,CAAC;IACD,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACxE,OAAO,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Runtime policy helpers for Wunderland.
|
|
3
|
+
*
|
|
4
|
+
* Normalizes agent.config.json policy fields (tier/permissions/modes) and
|
|
5
|
+
* filters tool exposure accordingly.
|
|
6
|
+
*
|
|
7
|
+
* This is intentionally conservative: permission sets and tool access profiles
|
|
8
|
+
* are enforced even in autonomous mode. "Autonomous" only affects approvals,
|
|
9
|
+
* not what the agent is allowed to do.
|
|
10
|
+
*/
|
|
11
|
+
import { type GranularPermissions, type PermissionSetName, type SecurityTierName } from '../../security/SecurityTiers.js';
|
|
12
|
+
import { type ToolAccessProfileName } from '../../autonomy/social/ToolAccessProfiles.js';
|
|
13
|
+
import type { FolderPermissionConfig } from '../../security/FolderPermissions.js';
|
|
14
|
+
import type { ToolInstance } from './tool-calling.js';
|
|
15
|
+
export type ExecutionMode = 'autonomous' | 'human-all' | 'human-dangerous';
|
|
16
|
+
/**
|
|
17
|
+
* Resolved guardrail pack overrides from `agent.config.json` `security.guardrailPacks`.
|
|
18
|
+
* Each key toggles a specific guardrail extension pack on/off, overriding tier defaults.
|
|
19
|
+
*/
|
|
20
|
+
export interface GuardrailPackOverrides {
|
|
21
|
+
/** Four-tier PII detection and redaction. */
|
|
22
|
+
piiRedaction?: boolean;
|
|
23
|
+
/** ML-based toxicity, injection, and jailbreak detection. */
|
|
24
|
+
mlClassifiers?: boolean;
|
|
25
|
+
/** Embedding-based topic enforcement + drift detection. */
|
|
26
|
+
topicality?: boolean;
|
|
27
|
+
/** OWASP Top 10 code safety scanning. */
|
|
28
|
+
codeSafety?: boolean;
|
|
29
|
+
/** RAG-grounded hallucination detection via NLI. */
|
|
30
|
+
groundingGuard?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Fully normalized runtime policy resolved from agent config + CLI flags.
|
|
34
|
+
*
|
|
35
|
+
* This structure is passed to every runtime subsystem (tool filtering,
|
|
36
|
+
* authorization, system prompt building, guardrails) so they all use a
|
|
37
|
+
* single, consistent set of resolved values.
|
|
38
|
+
*/
|
|
39
|
+
export type NormalizedRuntimePolicy = {
|
|
40
|
+
securityTier: SecurityTierName;
|
|
41
|
+
permissionSet: PermissionSetName;
|
|
42
|
+
toolAccessProfile: ToolAccessProfileName;
|
|
43
|
+
executionMode: ExecutionMode;
|
|
44
|
+
wrapToolOutputs: boolean;
|
|
45
|
+
folderPermissions?: FolderPermissionConfig;
|
|
46
|
+
/**
|
|
47
|
+
* Per-agent guardrail pack overrides (from `security.guardrailPacks`).
|
|
48
|
+
* When present, merged on top of the tier's default pack config.
|
|
49
|
+
*/
|
|
50
|
+
guardrailPackOverrides?: GuardrailPackOverrides;
|
|
51
|
+
/**
|
|
52
|
+
* When `true`, all guardrail extension packs are disabled.
|
|
53
|
+
* Equivalent to `--no-guardrails` CLI flag.
|
|
54
|
+
*/
|
|
55
|
+
disableGuardrailPacks?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Explicit list of pack short-names to enable (overrides tier defaults).
|
|
58
|
+
* Equivalent to `--guardrails=pii,code-safety` CLI flag.
|
|
59
|
+
*/
|
|
60
|
+
enableOnlyGuardrailPacks?: string[];
|
|
61
|
+
};
|
|
62
|
+
export declare function normalizeSecurityTier(raw: unknown): SecurityTierName;
|
|
63
|
+
export declare function normalizePermissionSet(raw: unknown, tier: SecurityTierName): PermissionSetName;
|
|
64
|
+
export declare function normalizeExecutionMode(raw: unknown, tier: SecurityTierName): ExecutionMode;
|
|
65
|
+
export declare function normalizeToolAccessProfile(raw: unknown): ToolAccessProfileName;
|
|
66
|
+
export declare function normalizeWrapToolOutputs(raw: unknown, tier: SecurityTierName): boolean;
|
|
67
|
+
export declare function normalizeFolderPermissions(raw: unknown): FolderPermissionConfig | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Extracts guardrail pack overrides from `security.guardrailPacks` in agent config.
|
|
70
|
+
*
|
|
71
|
+
* @param raw - The `security.guardrailPacks` value from agent.config.json.
|
|
72
|
+
* @returns Normalized overrides, or `undefined` if none specified.
|
|
73
|
+
*/
|
|
74
|
+
export declare function normalizeGuardrailPackOverrides(raw: unknown): GuardrailPackOverrides | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Normalizes the full runtime policy from agent config (merged with CLI overrides).
|
|
77
|
+
*
|
|
78
|
+
* This is the single source of truth for all runtime security decisions.
|
|
79
|
+
* CLI flags like `--security-tier`, `--no-guardrails`, and `--guardrails=...`
|
|
80
|
+
* should be merged into the `agentConfig` object before calling this function.
|
|
81
|
+
*
|
|
82
|
+
* @param agentConfig - Merged agent config object (config file + CLI overrides).
|
|
83
|
+
* @returns Fully normalized runtime policy.
|
|
84
|
+
*/
|
|
85
|
+
export declare function normalizeRuntimePolicy(agentConfig: any): NormalizedRuntimePolicy;
|
|
86
|
+
export declare function getPermissionsForSet(name: PermissionSetName): GranularPermissions;
|
|
87
|
+
export declare function filterToolMapByPolicy(opts: {
|
|
88
|
+
toolMap: Map<string, ToolInstance>;
|
|
89
|
+
toolAccessProfile: ToolAccessProfileName;
|
|
90
|
+
permissions: GranularPermissions;
|
|
91
|
+
}): {
|
|
92
|
+
toolMap: Map<string, ToolInstance>;
|
|
93
|
+
dropped: Array<{
|
|
94
|
+
tool: string;
|
|
95
|
+
reason: string;
|
|
96
|
+
}>;
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../src/runtime/tools/policy.ts"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AAEH,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,iBAAiB,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,6CAA6C;IAC7C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IACjC,iBAAiB,EAAE,qBAAqB,CAAC;IACzC,aAAa,EAAE,aAAa,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C;;;OAGG;IACH,sBAAsB,CAA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CAAA;CAAE,CAuF3F"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Runtime policy helpers for Wunderland.
|
|
4
|
+
*
|
|
5
|
+
* Normalizes agent.config.json policy fields (tier/permissions/modes) and
|
|
6
|
+
* filters tool exposure accordingly.
|
|
7
|
+
*
|
|
8
|
+
* This is intentionally conservative: permission sets and tool access profiles
|
|
9
|
+
* are enforced even in autonomous mode. "Autonomous" only affects approvals,
|
|
10
|
+
* not what the agent is allowed to do.
|
|
11
|
+
*/
|
|
12
|
+
import { PERMISSION_SETS, SECURITY_TIERS, } from '../../security/SecurityTiers.js';
|
|
13
|
+
import { getToolAccessProfile, getToolCategory, isValidToolAccessProfile, } from '../../autonomy/social/ToolAccessProfiles.js';
|
|
14
|
+
export function normalizeSecurityTier(raw) {
|
|
15
|
+
const v = typeof raw === 'string' ? raw.trim().toLowerCase() : '';
|
|
16
|
+
if (v && (v in SECURITY_TIERS))
|
|
17
|
+
return v;
|
|
18
|
+
return 'balanced';
|
|
19
|
+
}
|
|
20
|
+
export function normalizePermissionSet(raw, tier) {
|
|
21
|
+
const v = typeof raw === 'string' ? raw.trim() : '';
|
|
22
|
+
if (v && (v in PERMISSION_SETS))
|
|
23
|
+
return v;
|
|
24
|
+
// Default to tier recommendation when not explicitly set.
|
|
25
|
+
return SECURITY_TIERS[tier]?.permissionSet ?? 'supervised';
|
|
26
|
+
}
|
|
27
|
+
export function normalizeExecutionMode(raw, tier) {
|
|
28
|
+
const v = typeof raw === 'string' ? raw.trim() : '';
|
|
29
|
+
if (v === 'autonomous' || v === 'human-all' || v === 'human-dangerous')
|
|
30
|
+
return v;
|
|
31
|
+
// Tier-derived default when not specified.
|
|
32
|
+
if (tier === 'dangerous' || tier === 'permissive')
|
|
33
|
+
return 'autonomous';
|
|
34
|
+
if (tier === 'paranoid')
|
|
35
|
+
return 'human-all';
|
|
36
|
+
return 'human-dangerous';
|
|
37
|
+
}
|
|
38
|
+
export function normalizeToolAccessProfile(raw) {
|
|
39
|
+
const v = typeof raw === 'string' ? raw.trim() : '';
|
|
40
|
+
if (v && isValidToolAccessProfile(v))
|
|
41
|
+
return v;
|
|
42
|
+
return 'assistant';
|
|
43
|
+
}
|
|
44
|
+
export function normalizeWrapToolOutputs(raw, tier) {
|
|
45
|
+
// Opt-out knob. Default ON except in `dangerous`.
|
|
46
|
+
if (typeof raw === 'boolean')
|
|
47
|
+
return raw;
|
|
48
|
+
return tier !== 'dangerous';
|
|
49
|
+
}
|
|
50
|
+
export function normalizeFolderPermissions(raw) {
|
|
51
|
+
if (!raw || typeof raw !== 'object' || Array.isArray(raw))
|
|
52
|
+
return undefined;
|
|
53
|
+
return raw;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Extracts guardrail pack overrides from `security.guardrailPacks` in agent config.
|
|
57
|
+
*
|
|
58
|
+
* @param raw - The `security.guardrailPacks` value from agent.config.json.
|
|
59
|
+
* @returns Normalized overrides, or `undefined` if none specified.
|
|
60
|
+
*/
|
|
61
|
+
export function normalizeGuardrailPackOverrides(raw) {
|
|
62
|
+
if (!raw || typeof raw !== 'object' || Array.isArray(raw))
|
|
63
|
+
return undefined;
|
|
64
|
+
const obj = raw;
|
|
65
|
+
const result = {};
|
|
66
|
+
let hasAny = false;
|
|
67
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
68
|
+
if (typeof value === 'boolean') {
|
|
69
|
+
result[key] = value;
|
|
70
|
+
hasAny = true;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return hasAny ? result : undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Normalizes the full runtime policy from agent config (merged with CLI overrides).
|
|
77
|
+
*
|
|
78
|
+
* This is the single source of truth for all runtime security decisions.
|
|
79
|
+
* CLI flags like `--security-tier`, `--no-guardrails`, and `--guardrails=...`
|
|
80
|
+
* should be merged into the `agentConfig` object before calling this function.
|
|
81
|
+
*
|
|
82
|
+
* @param agentConfig - Merged agent config object (config file + CLI overrides).
|
|
83
|
+
* @returns Fully normalized runtime policy.
|
|
84
|
+
*/
|
|
85
|
+
export function normalizeRuntimePolicy(agentConfig) {
|
|
86
|
+
const securityTier = normalizeSecurityTier(agentConfig?.securityTier ?? agentConfig?.security?.tier);
|
|
87
|
+
const permissionSet = normalizePermissionSet(agentConfig?.permissionSet ?? agentConfig?.security?.permissionSet, securityTier);
|
|
88
|
+
const toolAccessProfile = normalizeToolAccessProfile(agentConfig?.toolAccessProfile);
|
|
89
|
+
const executionMode = normalizeExecutionMode(agentConfig?.executionMode, securityTier);
|
|
90
|
+
const wrapToolOutputs = normalizeWrapToolOutputs(agentConfig?.security?.wrapToolOutputs, securityTier);
|
|
91
|
+
const folderPermissions = normalizeFolderPermissions(agentConfig?.security?.folderPermissions);
|
|
92
|
+
const guardrailPackOverrides = normalizeGuardrailPackOverrides(agentConfig?.security?.guardrailPacks);
|
|
93
|
+
// CLI-level guardrail flags (injected by chat.ts / start command before calling this).
|
|
94
|
+
const disableGuardrailPacks = agentConfig?.disableGuardrailPacks === true;
|
|
95
|
+
const enableOnlyGuardrailPacks = Array.isArray(agentConfig?.enableOnlyGuardrailPacks) && agentConfig.enableOnlyGuardrailPacks.length > 0
|
|
96
|
+
? agentConfig.enableOnlyGuardrailPacks
|
|
97
|
+
: undefined;
|
|
98
|
+
return {
|
|
99
|
+
securityTier,
|
|
100
|
+
permissionSet,
|
|
101
|
+
toolAccessProfile,
|
|
102
|
+
executionMode,
|
|
103
|
+
wrapToolOutputs,
|
|
104
|
+
folderPermissions,
|
|
105
|
+
guardrailPackOverrides,
|
|
106
|
+
disableGuardrailPacks,
|
|
107
|
+
enableOnlyGuardrailPacks,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export function getPermissionsForSet(name) {
|
|
111
|
+
return {
|
|
112
|
+
filesystem: { ...PERMISSION_SETS[name].filesystem },
|
|
113
|
+
network: { ...PERMISSION_SETS[name].network },
|
|
114
|
+
system: { ...PERMISSION_SETS[name].system },
|
|
115
|
+
data: { ...PERMISSION_SETS[name].data },
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function isFilesystemReadTool(toolName) {
|
|
119
|
+
return toolName === 'file_read' || toolName === 'list_directory' || toolName === 'file_search' || toolName === 'read_file' || toolName === 'file_info';
|
|
120
|
+
}
|
|
121
|
+
function isFilesystemWriteTool(toolName) {
|
|
122
|
+
return toolName === 'file_write' || toolName === 'file_append' || toolName === 'file_delete' || toolName === 'write_file' || toolName === 'create_spreadsheet' || toolName === 'create_document';
|
|
123
|
+
}
|
|
124
|
+
function isCliExecutionTool(toolName) {
|
|
125
|
+
return toolName === 'shell_execute' || toolName === 'run_command' || toolName === 'shell_exec';
|
|
126
|
+
}
|
|
127
|
+
function isNetworkTool(tool) {
|
|
128
|
+
const name = tool.name || '';
|
|
129
|
+
if (name === 'web_search' || name === 'news_search')
|
|
130
|
+
return true;
|
|
131
|
+
if (name.startsWith('browser_'))
|
|
132
|
+
return true;
|
|
133
|
+
if (Array.isArray(tool.requiredCapabilities)) {
|
|
134
|
+
return tool.requiredCapabilities.some((c) => typeof c === 'string' && c.startsWith('capability:web_'));
|
|
135
|
+
}
|
|
136
|
+
const cat = typeof tool.category === 'string' ? tool.category.trim().toLowerCase() : '';
|
|
137
|
+
if (cat === 'search' || cat === 'research')
|
|
138
|
+
return true;
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
function isExternalApiSideEffectTool(tool) {
|
|
142
|
+
// Conservative rule: if a tool is marked as having side effects and it isn't
|
|
143
|
+
// clearly a local-only operation (filesystem/system/memory), treat it as an
|
|
144
|
+
// external API side effect for permission-set gating.
|
|
145
|
+
if (tool.hasSideEffects !== true)
|
|
146
|
+
return false;
|
|
147
|
+
const cat = typeof tool.category === 'string' ? tool.category.trim().toLowerCase() : '';
|
|
148
|
+
if (!cat)
|
|
149
|
+
return true;
|
|
150
|
+
if (cat === 'filesystem' || cat === 'system' || cat === 'memory')
|
|
151
|
+
return false;
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
function isMemoryReadTool(toolName) {
|
|
155
|
+
return toolName === 'memory_read' || toolName === 'conversation_history';
|
|
156
|
+
}
|
|
157
|
+
function isMemoryWriteTool(toolName) {
|
|
158
|
+
return toolName === 'memory_write';
|
|
159
|
+
}
|
|
160
|
+
export function filterToolMapByPolicy(opts) {
|
|
161
|
+
const profile = getToolAccessProfile(opts.toolAccessProfile);
|
|
162
|
+
const out = new Map();
|
|
163
|
+
const dropped = [];
|
|
164
|
+
function mapToolCategory(tool) {
|
|
165
|
+
// Prefer explicit tool-name mapping when known.
|
|
166
|
+
const byId = getToolCategory(tool.name);
|
|
167
|
+
if (byId)
|
|
168
|
+
return byId;
|
|
169
|
+
// Fall back to extension-provided category strings (best-effort).
|
|
170
|
+
const c = typeof tool.category === 'string' ? tool.category.trim().toLowerCase() : '';
|
|
171
|
+
if (!c)
|
|
172
|
+
return undefined;
|
|
173
|
+
if (c === 'research')
|
|
174
|
+
return 'search';
|
|
175
|
+
if (c === 'search')
|
|
176
|
+
return 'search';
|
|
177
|
+
if (c === 'media')
|
|
178
|
+
return 'media';
|
|
179
|
+
if (c === 'productivity')
|
|
180
|
+
return 'productivity';
|
|
181
|
+
if (c === 'communication' || c === 'communications')
|
|
182
|
+
return 'communication';
|
|
183
|
+
if (c === 'social')
|
|
184
|
+
return 'social';
|
|
185
|
+
if (c === 'system')
|
|
186
|
+
return 'system';
|
|
187
|
+
if (c === 'filesystem')
|
|
188
|
+
return 'filesystem';
|
|
189
|
+
if (c === 'scheduling')
|
|
190
|
+
return 'scheduling';
|
|
191
|
+
return undefined;
|
|
192
|
+
}
|
|
193
|
+
function isAllowedByProfile(tool) {
|
|
194
|
+
// Always apply filesystem/system overrides by tool name.
|
|
195
|
+
if (isFilesystemReadTool(tool.name) || isFilesystemWriteTool(tool.name)) {
|
|
196
|
+
const cat = 'filesystem';
|
|
197
|
+
if (profile.blockedCategories.includes(cat))
|
|
198
|
+
return false;
|
|
199
|
+
return profile.allowedCategories.includes(cat);
|
|
200
|
+
}
|
|
201
|
+
if (isCliExecutionTool(tool.name)) {
|
|
202
|
+
const cat = 'system';
|
|
203
|
+
if (profile.blockedCategories.includes(cat))
|
|
204
|
+
return false;
|
|
205
|
+
return profile.allowedCategories.includes(cat);
|
|
206
|
+
}
|
|
207
|
+
const cat = mapToolCategory(tool);
|
|
208
|
+
if (!cat)
|
|
209
|
+
return profile.name === 'unrestricted';
|
|
210
|
+
if (profile.blockedCategories.includes(cat))
|
|
211
|
+
return false;
|
|
212
|
+
return profile.allowedCategories.includes(cat);
|
|
213
|
+
}
|
|
214
|
+
for (const [name, tool] of opts.toolMap.entries()) {
|
|
215
|
+
if (!tool?.name)
|
|
216
|
+
continue;
|
|
217
|
+
if (!isAllowedByProfile(tool)) {
|
|
218
|
+
dropped.push({ tool: tool.name, reason: `blocked_by_tool_access_profile:${profile.name}` });
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
if (isFilesystemReadTool(tool.name) && opts.permissions.filesystem.read !== true) {
|
|
222
|
+
dropped.push({ tool: tool.name, reason: 'blocked_by_permission_set:filesystem.read=false' });
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
if (isFilesystemWriteTool(tool.name) && opts.permissions.filesystem.write !== true) {
|
|
226
|
+
dropped.push({ tool: tool.name, reason: 'blocked_by_permission_set:filesystem.write=false' });
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
if (isCliExecutionTool(tool.name) && opts.permissions.system.cliExecution !== true) {
|
|
230
|
+
dropped.push({ tool: tool.name, reason: 'blocked_by_permission_set:system.cliExecution=false' });
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
if (isNetworkTool(tool) && opts.permissions.network.httpRequests !== true) {
|
|
234
|
+
dropped.push({ tool: tool.name, reason: 'blocked_by_permission_set:network.httpRequests=false' });
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
if (isMemoryReadTool(tool.name) && opts.permissions.data.memoryRead !== true) {
|
|
238
|
+
dropped.push({ tool: tool.name, reason: 'blocked_by_permission_set:data.memoryRead=false' });
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
if (isMemoryWriteTool(tool.name) && opts.permissions.data.memoryWrite !== true) {
|
|
242
|
+
dropped.push({ tool: tool.name, reason: 'blocked_by_permission_set:data.memoryWrite=false' });
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
if (isExternalApiSideEffectTool(tool) && opts.permissions.network.externalApis !== true) {
|
|
246
|
+
dropped.push({ tool: tool.name, reason: 'blocked_by_permission_set:network.externalApis=false' });
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
out.set(name, tool);
|
|
250
|
+
}
|
|
251
|
+
return { toolMap: out, dropped };
|
|
252
|
+
}
|
|
253
|
+
//# sourceMappingURL=policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../../../src/runtime/tools/policy.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;;;;;;;;GASG;AAEH,OAAO,EACL,eAAe,EACf,cAAc,GAIf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,GAGzB,MAAM,6CAA6C,CAAC;AAsDrD,MAAM,UAAU,qBAAqB,CAAC,GAAY;IAChD,MAAM,CAAC,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,cAAc,CAAC;QAAE,OAAO,CAAqB,CAAC;IAC7D,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,GAAY,EACZ,IAAsB;IAEtB,MAAM,CAAC,GAAG,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AACnC,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview OpenAI-compatible tool-calling loop helpers used by Wunderland runtimes.
|
|
3
|
+
*
|
|
4
|
+
* Integrates {@link StepUpAuthorizationManager} for tiered tool authorization:
|
|
5
|
+
* - Tier 1 (Autonomous): Execute without approval — read-only, safe tools
|
|
6
|
+
* - Tier 2 (Async Review): Execute, then queue for human review
|
|
7
|
+
* - Tier 3 (Sync HITL): Require explicit human approval before execution
|
|
8
|
+
*
|
|
9
|
+
* When `dangerouslySkipPermissions` is true (e.g. via the CLI flag
|
|
10
|
+
* `--dangerously-skip-permissions`), uses {@link FULLY_AUTONOMOUS_STEP_UP_AUTH_CONFIG}
|
|
11
|
+
* which auto-approves ALL tool calls — skills, side effects, capabilities,
|
|
12
|
+
* destructive commands, build commands, and every other tool type.
|
|
13
|
+
*
|
|
14
|
+
* @module wunderland/runtime/tool-calling
|
|
15
|
+
*/
|
|
16
|
+
import { StepUpAuthorizationManager } from '../../security/StepUpAuthorizationManager.js';
|
|
17
|
+
import { type StepUpAuthorizationConfig } from '../../types/core-types.js';
|
|
18
|
+
export { getGuardrailsInstance, getSecurityPipeline, initializeSecurityPipeline, resetSecurityPipeline, safeJsonStringify, truncateString, buildToolDefs, openaiChatWithTools, type ToolInstance, type ToolCallMessage, type LLMProviderConfig, type SecurityPipelineInitOptions, } from './tool-helpers.js';
|
|
19
|
+
import type { ToolInstance, LLMProviderConfig } from './tool-helpers.js';
|
|
20
|
+
export declare function runToolCallingTurn(opts: {
|
|
21
|
+
providerId?: string;
|
|
22
|
+
apiKey: string | Promise<string>;
|
|
23
|
+
model: string;
|
|
24
|
+
messages: Array<Record<string, unknown>>;
|
|
25
|
+
toolMap: Map<string, ToolInstance>;
|
|
26
|
+
/**
|
|
27
|
+
* Optional static tool defs. Prefer omitting this and letting the loop
|
|
28
|
+
* derive tool defs from the mutable `toolMap` each round.
|
|
29
|
+
*/
|
|
30
|
+
toolDefs?: Array<Record<string, unknown>>;
|
|
31
|
+
/** Optional callback to provide tool defs per round (schema-on-demand). */
|
|
32
|
+
getToolDefs?: () => Array<Record<string, unknown>>;
|
|
33
|
+
toolContext: Record<string, unknown>;
|
|
34
|
+
maxRounds: number;
|
|
35
|
+
dangerouslySkipPermissions: boolean;
|
|
36
|
+
/** Optional step-up auth config — when provided, overrides DEFAULT_STEP_UP_AUTH_CONFIG. */
|
|
37
|
+
stepUpAuthConfig?: StepUpAuthorizationConfig;
|
|
38
|
+
askPermission: (tool: ToolInstance, args: Record<string, unknown>) => Promise<boolean>;
|
|
39
|
+
/** Optional checkpoint hook (used for "human after each round" modes). */
|
|
40
|
+
askCheckpoint?: (info: {
|
|
41
|
+
round: number;
|
|
42
|
+
toolCalls: Array<{
|
|
43
|
+
toolName: string;
|
|
44
|
+
hasSideEffects: boolean;
|
|
45
|
+
args: Record<string, unknown>;
|
|
46
|
+
}>;
|
|
47
|
+
}) => Promise<boolean>;
|
|
48
|
+
onToolCall?: (tool: ToolInstance, args: Record<string, unknown>) => void;
|
|
49
|
+
/** Called after each tool execution with the result. Use for logging, learning, metrics. */
|
|
50
|
+
onToolResult?: (info: {
|
|
51
|
+
toolName: string;
|
|
52
|
+
args: Record<string, unknown>;
|
|
53
|
+
success: boolean;
|
|
54
|
+
error?: string;
|
|
55
|
+
output?: unknown;
|
|
56
|
+
durationMs: number;
|
|
57
|
+
}) => void;
|
|
58
|
+
/** Called when the LLM emits streamed text before the turn completes. */
|
|
59
|
+
onTextDelta?: (content: string) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Called once per provider response with token usage and cost — same
|
|
62
|
+
* payload shape as `recordWunderlandTokenUsage`'s observability hook,
|
|
63
|
+
* surfaced to the caller so per-node accumulators (e.g. mission report
|
|
64
|
+
* cost telemetry) can be built without going through the global
|
|
65
|
+
* observability sink.
|
|
66
|
+
*
|
|
67
|
+
* Fired on every successful round of the ReAct loop — caller is
|
|
68
|
+
* responsible for accumulating across rounds.
|
|
69
|
+
*/
|
|
70
|
+
onUsage?: (usage: {
|
|
71
|
+
prompt_tokens?: number;
|
|
72
|
+
completion_tokens?: number;
|
|
73
|
+
total_tokens?: number;
|
|
74
|
+
costUSD?: number;
|
|
75
|
+
model?: string;
|
|
76
|
+
providerId?: string;
|
|
77
|
+
}) => void;
|
|
78
|
+
/** Optional pre-configured authorization manager. Created automatically if not provided. */
|
|
79
|
+
authorizationManager?: StepUpAuthorizationManager;
|
|
80
|
+
/** Override the API base URL for the primary provider. */
|
|
81
|
+
baseUrl?: string;
|
|
82
|
+
/** Fallback provider config (e.g. OpenRouter). */
|
|
83
|
+
fallback?: LLMProviderConfig;
|
|
84
|
+
/** Called when a fallback is triggered. */
|
|
85
|
+
onFallback?: (primaryError: Error, fallbackProvider: string) => void;
|
|
86
|
+
/** Async key resolver for OAuth. When set, called instead of using the static apiKey. */
|
|
87
|
+
getApiKey?: () => string | Promise<string>;
|
|
88
|
+
/** Native Ollama request options such as num_ctx / num_gpu. */
|
|
89
|
+
ollamaOptions?: Record<string, unknown>;
|
|
90
|
+
/** Tool-call failure behavior. Default: fail_open. */
|
|
91
|
+
toolFailureMode?: 'fail_open' | 'fail_closed';
|
|
92
|
+
/** Enforce strict OpenAI-compatible function names and fail on rewrites/collisions. */
|
|
93
|
+
strictToolNames?: boolean;
|
|
94
|
+
/** Enable verbose tool-calling logs. Defaults to false; set to true or use DEBUG=1 for diagnostics. */
|
|
95
|
+
debug?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Optional callback fired when a tool emits progress events during execution.
|
|
98
|
+
* Used by long-running tools like deep_research to report intermediate steps.
|
|
99
|
+
* The callback receives the tool name, a phase label, a human-readable message,
|
|
100
|
+
* and an optional 0-1 progress fraction.
|
|
101
|
+
*/
|
|
102
|
+
onToolProgress?: (info: {
|
|
103
|
+
toolName: string;
|
|
104
|
+
phase: string;
|
|
105
|
+
message: string;
|
|
106
|
+
progress?: number;
|
|
107
|
+
}) => void;
|
|
108
|
+
}): Promise<string>;
|
|
109
|
+
export { streamToolCallingTurn, type StreamToolCallingTurnOpts, } from './ToolStreamProcessor.js';
|
|
110
|
+
export { TOOL_FALLBACK_MAP } from './ToolApprovalHandler.js';
|
|
111
|
+
//# sourceMappingURL=tool-calling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-calling.d.ts","sourceRoot":"","sources":["../../../src/runtime/tools/tool-calling.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC3B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,2BAA2B,CAAC;AA4CnC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,GACjC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAkBzE,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACzC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAA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