wunderland 0.72.2 → 0.81.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.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/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.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/ToolRegistry.js +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,359 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Core types for Wunderland - Adaptive AI Agent Framework
|
|
3
|
+
* @module wunderland/core/types
|
|
4
|
+
*/
|
|
5
|
+
export type { IPersonaDefinition, PersonaMoodAdaptationConfig, } from '@framers/agentos/cognition/substrate/personas/IPersonaDefinition';
|
|
6
|
+
/**
|
|
7
|
+
* HEXACO personality traits - a six-factor model of personality structure.
|
|
8
|
+
* Each trait ranges from 0.0 to 1.0.
|
|
9
|
+
*
|
|
10
|
+
* @see https://hexaco.org/
|
|
11
|
+
*/
|
|
12
|
+
export interface HEXACOTraits {
|
|
13
|
+
/**
|
|
14
|
+
* Honesty-Humility: Sincerity, fairness, greed-avoidance, modesty.
|
|
15
|
+
* High scores indicate genuineness and lack of desire to manipulate.
|
|
16
|
+
*/
|
|
17
|
+
honesty_humility: number;
|
|
18
|
+
/**
|
|
19
|
+
* Emotionality: Fearfulness, anxiety, dependence, sentimentality.
|
|
20
|
+
* High scores indicate stronger emotional reactions and need for support.
|
|
21
|
+
*/
|
|
22
|
+
emotionality: number;
|
|
23
|
+
/**
|
|
24
|
+
* Extraversion: Social self-esteem, social boldness, sociability, liveliness.
|
|
25
|
+
* High scores indicate outgoing, energetic, talkative behavior.
|
|
26
|
+
*/
|
|
27
|
+
extraversion: number;
|
|
28
|
+
/**
|
|
29
|
+
* Agreeableness: Forgiveness, gentleness, flexibility, patience.
|
|
30
|
+
* High scores indicate cooperative, trusting, helpful tendencies.
|
|
31
|
+
*/
|
|
32
|
+
agreeableness: number;
|
|
33
|
+
/**
|
|
34
|
+
* Conscientiousness: Organization, diligence, perfectionism, prudence.
|
|
35
|
+
* High scores indicate careful, disciplined, achievement-oriented behavior.
|
|
36
|
+
*/
|
|
37
|
+
conscientiousness: number;
|
|
38
|
+
/**
|
|
39
|
+
* Openness to Experience: Aesthetic appreciation, inquisitiveness, creativity, unconventionality.
|
|
40
|
+
* High scores indicate imaginative, curious, open-minded tendencies.
|
|
41
|
+
*/
|
|
42
|
+
openness: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Default HEXACO traits for a balanced agent persona.
|
|
46
|
+
*/
|
|
47
|
+
export declare const DEFAULT_HEXACO_TRAITS: HEXACOTraits;
|
|
48
|
+
/**
|
|
49
|
+
* Security profile for a Wunderland Seed agent.
|
|
50
|
+
*/
|
|
51
|
+
export interface SecurityProfile {
|
|
52
|
+
/** Enable pre-LLM input classification */
|
|
53
|
+
enablePreLLMClassifier: boolean;
|
|
54
|
+
/** Enable dual-LLM audit for outputs */
|
|
55
|
+
enableDualLLMAuditor: boolean;
|
|
56
|
+
/** Enable HMAC signing of outputs */
|
|
57
|
+
enableOutputSigning: boolean;
|
|
58
|
+
/** Secret key for HMAC signing (should be securely stored) */
|
|
59
|
+
signingSecretEnvVar?: string;
|
|
60
|
+
/** Custom injection patterns to detect */
|
|
61
|
+
customInjectionPatterns?: string[];
|
|
62
|
+
/** Risk threshold for flagging (0.0 - 1.0) */
|
|
63
|
+
riskThreshold?: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Default security profile with all layers enabled.
|
|
67
|
+
*/
|
|
68
|
+
export declare const DEFAULT_SECURITY_PROFILE: SecurityProfile;
|
|
69
|
+
/**
|
|
70
|
+
* Model target specification for inference routing.
|
|
71
|
+
*/
|
|
72
|
+
export interface ModelTarget {
|
|
73
|
+
/** LLM provider ID (e.g., 'ollama', 'openai') */
|
|
74
|
+
providerId: string;
|
|
75
|
+
/** Model ID within the provider */
|
|
76
|
+
modelId: string;
|
|
77
|
+
/** Role in the inference hierarchy */
|
|
78
|
+
role: 'router' | 'primary' | 'auditor' | 'fallback';
|
|
79
|
+
/** Maximum tokens for this model */
|
|
80
|
+
maxTokens?: number;
|
|
81
|
+
/** Temperature for generation */
|
|
82
|
+
temperature?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Configuration for hierarchical inference routing.
|
|
86
|
+
*/
|
|
87
|
+
export interface InferenceHierarchyConfig {
|
|
88
|
+
/** Fast model for routing decisions and auditing */
|
|
89
|
+
routerModel: ModelTarget;
|
|
90
|
+
/** Primary model for complex reasoning */
|
|
91
|
+
primaryModel: ModelTarget;
|
|
92
|
+
/** Model for security auditing (can be same as router) */
|
|
93
|
+
auditorModel: ModelTarget;
|
|
94
|
+
/** Fallback chain if primary fails */
|
|
95
|
+
fallbackChain?: ModelTarget[];
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Default inference hierarchy — OpenAI cloud models.
|
|
99
|
+
* Router/auditor use claude-haiku-4-5 (fast + cheap).
|
|
100
|
+
* Primary defaults to claude-sonnet-4-6 (workhorse); NewsroomAgency applies weighted
|
|
101
|
+
* selection (80% sonnet, 20% opus) at post-generation time.
|
|
102
|
+
*
|
|
103
|
+
* Updated to Anthropic defaults per OpenClaw upstream (feat: switch anthropic
|
|
104
|
+
* onboarding defaults to sonnet).
|
|
105
|
+
*/
|
|
106
|
+
export declare const DEFAULT_INFERENCE_HIERARCHY: InferenceHierarchyConfig;
|
|
107
|
+
/**
|
|
108
|
+
* Tool risk tiers for step-up authorization.
|
|
109
|
+
*/
|
|
110
|
+
export declare enum ToolRiskTier {
|
|
111
|
+
/** Execute without approval - read-only, logging operations */
|
|
112
|
+
TIER_1_AUTONOMOUS = 1,
|
|
113
|
+
/** Execute but queue for async human review */
|
|
114
|
+
TIER_2_ASYNC_REVIEW = 2,
|
|
115
|
+
/** Require synchronous human approval before execution */
|
|
116
|
+
TIER_3_SYNC_HITL = 3
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Trigger conditions for escalating tool risk tier.
|
|
120
|
+
*/
|
|
121
|
+
export interface EscalationTrigger {
|
|
122
|
+
/** Condition type */
|
|
123
|
+
condition: 'high_value_threshold' | 'sensitive_data_detected' | 'external_api_call' | 'irreversible_action' | 'custom';
|
|
124
|
+
/** Tier to escalate to */
|
|
125
|
+
escalateTo: ToolRiskTier;
|
|
126
|
+
/** Additional parameters for the condition */
|
|
127
|
+
parameters?: Record<string, unknown>;
|
|
128
|
+
/** Custom condition function name (for 'custom' type) */
|
|
129
|
+
customConditionFn?: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Contextual overrides that can lower the risk tier.
|
|
133
|
+
*/
|
|
134
|
+
export interface ContextualOverride {
|
|
135
|
+
/** Context condition */
|
|
136
|
+
context: 'user_verified' | 'session_trusted' | 'emergency_mode' | 'admin_override';
|
|
137
|
+
/** Override tier (undefined = no override) */
|
|
138
|
+
overrideTier?: ToolRiskTier;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Configuration for step-up authorization.
|
|
142
|
+
*/
|
|
143
|
+
export interface StepUpAuthorizationConfig {
|
|
144
|
+
/** Default tier for unclassified tools */
|
|
145
|
+
defaultTier: ToolRiskTier;
|
|
146
|
+
/** Tool ID to tier mappings */
|
|
147
|
+
toolTierOverrides?: Record<string, ToolRiskTier>;
|
|
148
|
+
/** Category to tier mappings */
|
|
149
|
+
categoryTierOverrides?: Record<string, ToolRiskTier>;
|
|
150
|
+
/** Escalation triggers */
|
|
151
|
+
escalationTriggers?: EscalationTrigger[];
|
|
152
|
+
/** Contextual overrides */
|
|
153
|
+
contextualOverrides?: ContextualOverride[];
|
|
154
|
+
/** Timeout for HITL approval requests (ms) */
|
|
155
|
+
approvalTimeoutMs?: number;
|
|
156
|
+
/**
|
|
157
|
+
* When true, auto-approve ALL tool calls regardless of tier, category,
|
|
158
|
+
* side effects, capabilities, or escalation triggers. Everything executes
|
|
159
|
+
* as Tier 1 (autonomous) with no human intervention.
|
|
160
|
+
*
|
|
161
|
+
* Use with `--auto-approve-tools` or `--dangerously-skip-permissions` CLI flags.
|
|
162
|
+
*/
|
|
163
|
+
autoApproveAll?: boolean;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Default step-up authorization config.
|
|
167
|
+
* Uses tiered authorization: read-only = Tier 1, data/API/comms = Tier 2,
|
|
168
|
+
* financial/system = Tier 3 (requires HITL).
|
|
169
|
+
*/
|
|
170
|
+
export declare const DEFAULT_STEP_UP_AUTH_CONFIG: StepUpAuthorizationConfig;
|
|
171
|
+
/**
|
|
172
|
+
* Fully autonomous step-up authorization config.
|
|
173
|
+
* Auto-approves ALL tool calls: skills, side effects, capabilities,
|
|
174
|
+
* destructive commands, build commands, and every other tool type.
|
|
175
|
+
* No escalation triggers, no tier gates, no HITL.
|
|
176
|
+
*
|
|
177
|
+
* Used when `--dangerously-skip-permissions` is passed.
|
|
178
|
+
*/
|
|
179
|
+
export declare const FULLY_AUTONOMOUS_STEP_UP_AUTH_CONFIG: StepUpAuthorizationConfig;
|
|
180
|
+
/**
|
|
181
|
+
* "Overdrive" step-up authorization config.
|
|
182
|
+
* Read-only / navigation tools: Tier 1 (autonomous, no prompt).
|
|
183
|
+
* Data/API/comms tools: Tier 2 (execute, async review — no prompt).
|
|
184
|
+
* Financial/system/credential tools: Tier 3 (still requires HITL).
|
|
185
|
+
*
|
|
186
|
+
* Used as the default for the `balanced` security tier, replacing the
|
|
187
|
+
* old DEFAULT config which put everything at Tier 3.
|
|
188
|
+
*/
|
|
189
|
+
export declare const OVERDRIVE_STEP_UP_AUTH_CONFIG: StepUpAuthorizationConfig;
|
|
190
|
+
/**
|
|
191
|
+
* Creates a StepUpAuthorizationConfig appropriate for a given security tier.
|
|
192
|
+
* This wires the tier's intent into the auth config — the old code always used
|
|
193
|
+
* DEFAULT (Tier 3 for everything) regardless of the selected security tier.
|
|
194
|
+
*/
|
|
195
|
+
export declare function createStepUpAuthConfigFromTier(tierName: string): StepUpAuthorizationConfig;
|
|
196
|
+
/**
|
|
197
|
+
* Full configuration for a Wunderland Seed agent.
|
|
198
|
+
*/
|
|
199
|
+
export interface WunderlandSeedConfig {
|
|
200
|
+
/** Unique seed identifier */
|
|
201
|
+
seedId: string;
|
|
202
|
+
/** Human-readable name */
|
|
203
|
+
name: string;
|
|
204
|
+
/** Description of the agent's purpose */
|
|
205
|
+
description: string;
|
|
206
|
+
/** HEXACO personality traits */
|
|
207
|
+
hexacoTraits: HEXACOTraits;
|
|
208
|
+
/** Security profile configuration */
|
|
209
|
+
securityProfile: SecurityProfile;
|
|
210
|
+
/**
|
|
211
|
+
* Named security tier preset. When set, overrides individual security
|
|
212
|
+
* profile flags with the tier's defaults.
|
|
213
|
+
*
|
|
214
|
+
* @see {@link SecurityTierName} from `wunderland/security/SecurityTiers`
|
|
215
|
+
*/
|
|
216
|
+
securityTier?: 'dangerous' | 'permissive' | 'balanced' | 'strict' | 'paranoid';
|
|
217
|
+
/** Inference hierarchy configuration */
|
|
218
|
+
inferenceHierarchy: InferenceHierarchyConfig;
|
|
219
|
+
/** Step-up authorization configuration */
|
|
220
|
+
stepUpAuthConfig: StepUpAuthorizationConfig;
|
|
221
|
+
/** Channel bindings (which channels this seed operates on) */
|
|
222
|
+
channelBindings?: ChannelBinding[];
|
|
223
|
+
/** Base system prompt (can be extended by HEXACO mapping) */
|
|
224
|
+
baseSystemPrompt?: string;
|
|
225
|
+
/** Evolved behavioral adaptations managed by PromptEvolution (runtime-only, not user-settable) */
|
|
226
|
+
evolvedAdaptations?: string[];
|
|
227
|
+
/** Tool IDs this seed is allowed to use */
|
|
228
|
+
allowedToolIds?: string[];
|
|
229
|
+
/** Capabilities this seed has access to */
|
|
230
|
+
allowedCapabilities?: string[];
|
|
231
|
+
/** Named tool access profile for this seed. Defaults to 'social-citizen' in public mode. */
|
|
232
|
+
toolAccessProfile?: 'social-citizen' | 'social-observer' | 'social-creative' | 'assistant' | 'unrestricted';
|
|
233
|
+
/** Per-agent overrides on top of the tool access profile. */
|
|
234
|
+
toolAccessOverrides?: {
|
|
235
|
+
/** Additional tool IDs to allow beyond the profile */
|
|
236
|
+
additionalAllowed?: string[];
|
|
237
|
+
/** Additional tool IDs to block, even if the profile allows them */
|
|
238
|
+
additionalBlocked?: string[];
|
|
239
|
+
};
|
|
240
|
+
/** Suggested skill IDs for this agent (from preset or user selection) */
|
|
241
|
+
suggestedSkills?: string[];
|
|
242
|
+
/** Suggested extensions for this agent (from preset or user selection) */
|
|
243
|
+
suggestedExtensions?: {
|
|
244
|
+
/** Tool extension names (e.g., "web-search", "web-browser") */
|
|
245
|
+
tools?: string[];
|
|
246
|
+
/** Voice provider extension names (e.g., "voice-twilio") */
|
|
247
|
+
voice?: string[];
|
|
248
|
+
/** Productivity extension names (e.g., "calendar-google") */
|
|
249
|
+
productivity?: string[];
|
|
250
|
+
};
|
|
251
|
+
/** Per-extension overrides (enabled, priority, options) */
|
|
252
|
+
extensionOverrides?: Record<string, {
|
|
253
|
+
/** Whether this extension is enabled */
|
|
254
|
+
enabled?: boolean;
|
|
255
|
+
/** Priority/weight for this extension (higher = preferred) */
|
|
256
|
+
priority?: number;
|
|
257
|
+
/** Extension-specific options */
|
|
258
|
+
options?: Record<string, unknown>;
|
|
259
|
+
}>;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Channel binding configuration.
|
|
263
|
+
*/
|
|
264
|
+
export interface ChannelBinding {
|
|
265
|
+
/** Channel platform */
|
|
266
|
+
platform: 'telegram' | 'whatsapp' | 'discord' | 'slack' | 'webchat' | 'signal' | 'imessage' | 'google-chat' | 'teams' | 'matrix' | 'zalo' | 'email' | 'sms' | (string & {});
|
|
267
|
+
/** Channel/workspace ID */
|
|
268
|
+
channelId: string;
|
|
269
|
+
/** Whether this binding is active */
|
|
270
|
+
isActive: boolean;
|
|
271
|
+
/** Platform-specific configuration */
|
|
272
|
+
platformConfig?: Record<string, unknown>;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Entry in the intent chain audit trail.
|
|
276
|
+
*/
|
|
277
|
+
export interface IntentChainEntry {
|
|
278
|
+
/** Unique step identifier */
|
|
279
|
+
stepId: string;
|
|
280
|
+
/** Timestamp of this step */
|
|
281
|
+
timestamp: Date;
|
|
282
|
+
/** Action performed */
|
|
283
|
+
action: string;
|
|
284
|
+
/** Hash of the input to this step */
|
|
285
|
+
inputHash: string;
|
|
286
|
+
/** Hash of the output from this step */
|
|
287
|
+
outputHash: string;
|
|
288
|
+
/** Model used for this step */
|
|
289
|
+
modelUsed: string;
|
|
290
|
+
/** Security flags raised during this step */
|
|
291
|
+
securityFlags: string[];
|
|
292
|
+
/** Additional metadata */
|
|
293
|
+
metadata?: Record<string, unknown>;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Signed agent output with cryptographic verification.
|
|
297
|
+
*/
|
|
298
|
+
export interface SignedAgentOutput {
|
|
299
|
+
/** Unique output identifier */
|
|
300
|
+
outputId: string;
|
|
301
|
+
/** Seed ID that generated this output */
|
|
302
|
+
seedId: string;
|
|
303
|
+
/** Timestamp of generation */
|
|
304
|
+
timestamp: Date;
|
|
305
|
+
/** The actual content/response */
|
|
306
|
+
content: unknown;
|
|
307
|
+
/** Full intent chain audit trail */
|
|
308
|
+
intentChain: IntentChainEntry[];
|
|
309
|
+
/** HMAC-SHA256 signature */
|
|
310
|
+
signature: string;
|
|
311
|
+
/** Verification hash for integrity checking */
|
|
312
|
+
verificationHash: string;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Result of inference routing decision.
|
|
316
|
+
*/
|
|
317
|
+
export interface RoutingDecision {
|
|
318
|
+
/** Target model for this request */
|
|
319
|
+
targetModel: ModelTarget;
|
|
320
|
+
/** Reason for routing decision */
|
|
321
|
+
routingReason: string;
|
|
322
|
+
/** Classified complexity */
|
|
323
|
+
complexity: 'simple' | 'moderate' | 'complex';
|
|
324
|
+
/** Estimated cost */
|
|
325
|
+
estimatedCost: number;
|
|
326
|
+
/** Whether audit is required */
|
|
327
|
+
requiresAudit: boolean;
|
|
328
|
+
/** Classification confidence (0-1) */
|
|
329
|
+
confidence: number;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Result of step-up authorization check.
|
|
333
|
+
*/
|
|
334
|
+
export interface AuthorizationResult {
|
|
335
|
+
/** Whether the action is authorized */
|
|
336
|
+
authorized: boolean;
|
|
337
|
+
/** Effective risk tier */
|
|
338
|
+
tier: ToolRiskTier;
|
|
339
|
+
/** Whether audit is required */
|
|
340
|
+
auditRequired: boolean;
|
|
341
|
+
/** Human decision (if Tier 3) */
|
|
342
|
+
humanDecision?: {
|
|
343
|
+
approved: boolean;
|
|
344
|
+
decidedBy: string;
|
|
345
|
+
decidedAt: Date;
|
|
346
|
+
reason?: string;
|
|
347
|
+
};
|
|
348
|
+
/** Denial reason (if not authorized) */
|
|
349
|
+
denialReason?: string;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Type guard for HEXACOTraits.
|
|
353
|
+
*/
|
|
354
|
+
export declare function isValidHEXACOTraits(traits: unknown): traits is HEXACOTraits;
|
|
355
|
+
/**
|
|
356
|
+
* Validates and clamps HEXACO traits to valid range.
|
|
357
|
+
*/
|
|
358
|
+
export declare function normalizeHEXACOTraits(traits: Partial<HEXACOTraits>): HEXACOTraits;
|
|
359
|
+
//# sourceMappingURL=core-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-types.d.ts","sourceRoot":"","sources":["../../src/types/core-types.ts"],"names":[],"mappings":"AACA;;;GAGG;AAMH,YAAY,EACV,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,kEAAkE,CAAC;AAM1E;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,iB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jB,CAAC;IAEF,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAMD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,YAAY,CAc3E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAYjF"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Core types for Wunderland - Adaptive AI Agent Framework
|
|
4
|
+
* @module wunderland/core/types
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Default HEXACO traits for a balanced agent persona.
|
|
8
|
+
*/
|
|
9
|
+
export const DEFAULT_HEXACO_TRAITS = {
|
|
10
|
+
honesty_humility: 0.8,
|
|
11
|
+
emotionality: 0.5,
|
|
12
|
+
extraversion: 0.6,
|
|
13
|
+
agreeableness: 0.7,
|
|
14
|
+
conscientiousness: 0.8,
|
|
15
|
+
openness: 0.7,
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Default security profile with all layers enabled.
|
|
19
|
+
*/
|
|
20
|
+
export const DEFAULT_SECURITY_PROFILE = {
|
|
21
|
+
enablePreLLMClassifier: true,
|
|
22
|
+
enableDualLLMAuditor: true,
|
|
23
|
+
enableOutputSigning: true,
|
|
24
|
+
riskThreshold: 0.7,
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Default inference hierarchy — OpenAI cloud models.
|
|
28
|
+
* Router/auditor use claude-haiku-4-5 (fast + cheap).
|
|
29
|
+
* Primary defaults to claude-sonnet-4-6 (workhorse); NewsroomAgency applies weighted
|
|
30
|
+
* selection (80% sonnet, 20% opus) at post-generation time.
|
|
31
|
+
*
|
|
32
|
+
* Updated to Anthropic defaults per OpenClaw upstream (feat: switch anthropic
|
|
33
|
+
* onboarding defaults to sonnet).
|
|
34
|
+
*/
|
|
35
|
+
export const DEFAULT_INFERENCE_HIERARCHY = {
|
|
36
|
+
routerModel: {
|
|
37
|
+
providerId: 'anthropic',
|
|
38
|
+
modelId: 'claude-haiku-4-5-20251001',
|
|
39
|
+
role: 'router',
|
|
40
|
+
maxTokens: 512,
|
|
41
|
+
temperature: 0.1,
|
|
42
|
+
},
|
|
43
|
+
primaryModel: {
|
|
44
|
+
providerId: 'anthropic',
|
|
45
|
+
modelId: 'claude-sonnet-4-6',
|
|
46
|
+
role: 'primary',
|
|
47
|
+
maxTokens: 4096,
|
|
48
|
+
temperature: 0.7,
|
|
49
|
+
},
|
|
50
|
+
auditorModel: {
|
|
51
|
+
providerId: 'anthropic',
|
|
52
|
+
modelId: 'claude-haiku-4-5-20251001',
|
|
53
|
+
role: 'auditor',
|
|
54
|
+
maxTokens: 256,
|
|
55
|
+
temperature: 0.0,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
// ============================================================================
|
|
59
|
+
// Step-Up Authorization
|
|
60
|
+
// ============================================================================
|
|
61
|
+
/**
|
|
62
|
+
* Tool risk tiers for step-up authorization.
|
|
63
|
+
*/
|
|
64
|
+
export var ToolRiskTier;
|
|
65
|
+
(function (ToolRiskTier) {
|
|
66
|
+
/** Execute without approval - read-only, logging operations */
|
|
67
|
+
ToolRiskTier[ToolRiskTier["TIER_1_AUTONOMOUS"] = 1] = "TIER_1_AUTONOMOUS";
|
|
68
|
+
/** Execute but queue for async human review */
|
|
69
|
+
ToolRiskTier[ToolRiskTier["TIER_2_ASYNC_REVIEW"] = 2] = "TIER_2_ASYNC_REVIEW";
|
|
70
|
+
/** Require synchronous human approval before execution */
|
|
71
|
+
ToolRiskTier[ToolRiskTier["TIER_3_SYNC_HITL"] = 3] = "TIER_3_SYNC_HITL";
|
|
72
|
+
})(ToolRiskTier || (ToolRiskTier = {}));
|
|
73
|
+
/**
|
|
74
|
+
* Default step-up authorization config.
|
|
75
|
+
* Uses tiered authorization: read-only = Tier 1, data/API/comms = Tier 2,
|
|
76
|
+
* financial/system = Tier 3 (requires HITL).
|
|
77
|
+
*/
|
|
78
|
+
export const DEFAULT_STEP_UP_AUTH_CONFIG = {
|
|
79
|
+
// Read-only tools are always treated as Tier 1. This default tier is the
|
|
80
|
+
// fallback for *side-effecting* tools that don't match any explicit override.
|
|
81
|
+
// Safer default: require synchronous human approval for unknown side effects.
|
|
82
|
+
defaultTier: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
83
|
+
categoryTierOverrides: {
|
|
84
|
+
data_modification: ToolRiskTier.TIER_2_ASYNC_REVIEW,
|
|
85
|
+
external_api: ToolRiskTier.TIER_2_ASYNC_REVIEW,
|
|
86
|
+
financial: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
87
|
+
communication: ToolRiskTier.TIER_2_ASYNC_REVIEW,
|
|
88
|
+
system: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
89
|
+
},
|
|
90
|
+
escalationTriggers: [
|
|
91
|
+
{
|
|
92
|
+
condition: 'high_value_threshold',
|
|
93
|
+
escalateTo: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
94
|
+
parameters: { thresholdUSD: 100 },
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
condition: 'sensitive_data_detected',
|
|
98
|
+
escalateTo: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
condition: 'irreversible_action',
|
|
102
|
+
escalateTo: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
approvalTimeoutMs: 300000, // 5 minutes
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Fully autonomous step-up authorization config.
|
|
109
|
+
* Auto-approves ALL tool calls: skills, side effects, capabilities,
|
|
110
|
+
* destructive commands, build commands, and every other tool type.
|
|
111
|
+
* No escalation triggers, no tier gates, no HITL.
|
|
112
|
+
*
|
|
113
|
+
* Used when `--dangerously-skip-permissions` is passed.
|
|
114
|
+
*/
|
|
115
|
+
export const FULLY_AUTONOMOUS_STEP_UP_AUTH_CONFIG = {
|
|
116
|
+
defaultTier: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
117
|
+
autoApproveAll: true,
|
|
118
|
+
categoryTierOverrides: {},
|
|
119
|
+
escalationTriggers: [],
|
|
120
|
+
contextualOverrides: [],
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* "Overdrive" step-up authorization config.
|
|
124
|
+
* Read-only / navigation tools: Tier 1 (autonomous, no prompt).
|
|
125
|
+
* Data/API/comms tools: Tier 2 (execute, async review — no prompt).
|
|
126
|
+
* Financial/system/credential tools: Tier 3 (still requires HITL).
|
|
127
|
+
*
|
|
128
|
+
* Used as the default for the `balanced` security tier, replacing the
|
|
129
|
+
* old DEFAULT config which put everything at Tier 3.
|
|
130
|
+
*/
|
|
131
|
+
export const OVERDRIVE_STEP_UP_AUTH_CONFIG = {
|
|
132
|
+
defaultTier: ToolRiskTier.TIER_2_ASYNC_REVIEW,
|
|
133
|
+
toolTierOverrides: {
|
|
134
|
+
list_directory: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
135
|
+
change_directory: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
136
|
+
file_read: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
137
|
+
read_file: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
138
|
+
read_document: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
139
|
+
file_search: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
140
|
+
file_info: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
141
|
+
memory_read: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
142
|
+
conversation_history: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
143
|
+
web_search: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
144
|
+
news_search: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
145
|
+
discover_capabilities: ToolRiskTier.TIER_1_AUTONOMOUS,
|
|
146
|
+
},
|
|
147
|
+
categoryTierOverrides: {
|
|
148
|
+
data_modification: ToolRiskTier.TIER_2_ASYNC_REVIEW,
|
|
149
|
+
external_api: ToolRiskTier.TIER_2_ASYNC_REVIEW,
|
|
150
|
+
communication: ToolRiskTier.TIER_2_ASYNC_REVIEW,
|
|
151
|
+
financial: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
152
|
+
system: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
153
|
+
},
|
|
154
|
+
escalationTriggers: [
|
|
155
|
+
{
|
|
156
|
+
condition: 'high_value_threshold',
|
|
157
|
+
escalateTo: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
158
|
+
parameters: { thresholdUSD: 100 },
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
condition: 'sensitive_data_detected',
|
|
162
|
+
escalateTo: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
condition: 'irreversible_action',
|
|
166
|
+
escalateTo: ToolRiskTier.TIER_3_SYNC_HITL,
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
approvalTimeoutMs: 300000,
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Creates a StepUpAuthorizationConfig appropriate for a given security tier.
|
|
173
|
+
* This wires the tier's intent into the auth config — the old code always used
|
|
174
|
+
* DEFAULT (Tier 3 for everything) regardless of the selected security tier.
|
|
175
|
+
*/
|
|
176
|
+
export function createStepUpAuthConfigFromTier(tierName) {
|
|
177
|
+
switch (tierName) {
|
|
178
|
+
case 'dangerous':
|
|
179
|
+
case 'permissive':
|
|
180
|
+
return FULLY_AUTONOMOUS_STEP_UP_AUTH_CONFIG;
|
|
181
|
+
case 'balanced':
|
|
182
|
+
return OVERDRIVE_STEP_UP_AUTH_CONFIG;
|
|
183
|
+
case 'strict':
|
|
184
|
+
case 'paranoid':
|
|
185
|
+
return DEFAULT_STEP_UP_AUTH_CONFIG;
|
|
186
|
+
default:
|
|
187
|
+
return OVERDRIVE_STEP_UP_AUTH_CONFIG;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
// ============================================================================
|
|
191
|
+
// Type Guards
|
|
192
|
+
// ============================================================================
|
|
193
|
+
/**
|
|
194
|
+
* Type guard for HEXACOTraits.
|
|
195
|
+
*/
|
|
196
|
+
export function isValidHEXACOTraits(traits) {
|
|
197
|
+
if (typeof traits !== 'object' || traits === null)
|
|
198
|
+
return false;
|
|
199
|
+
const t = traits;
|
|
200
|
+
const requiredKeys = [
|
|
201
|
+
'honesty_humility',
|
|
202
|
+
'emotionality',
|
|
203
|
+
'extraversion',
|
|
204
|
+
'agreeableness',
|
|
205
|
+
'conscientiousness',
|
|
206
|
+
'openness',
|
|
207
|
+
];
|
|
208
|
+
return requiredKeys.every((key) => typeof t[key] === 'number' && t[key] >= 0 && t[key] <= 1);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Validates and clamps HEXACO traits to valid range.
|
|
212
|
+
*/
|
|
213
|
+
export function normalizeHEXACOTraits(traits) {
|
|
214
|
+
const clamp = (v, def) => Math.max(0, Math.min(1, v ?? def));
|
|
215
|
+
return {
|
|
216
|
+
honesty_humility: clamp(traits.honesty_humility, DEFAULT_HEXACO_TRAITS.honesty_humility),
|
|
217
|
+
emotionality: clamp(traits.emotionality, DEFAULT_HEXACO_TRAITS.emotionality),
|
|
218
|
+
extraversion: clamp(traits.extraversion, DEFAULT_HEXACO_TRAITS.extraversion),
|
|
219
|
+
agreeableness: clamp(traits.agreeableness, DEFAULT_HEXACO_TRAITS.agreeableness),
|
|
220
|
+
conscientiousness: clamp(traits.conscientiousness, DEFAULT_HEXACO_TRAITS.conscientiousness),
|
|
221
|
+
openness: clamp(traits.openness, DEFAULT_HEXACO_TRAITS.openness),
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=core-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-types.js","sourceRoot":"","sources":["../../src/types/core-types.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;;GAGG;AA2DH;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IACjD,gBAAgB,EAAE,GAAG;IACrB,YAAY,EAAE,GAAG;IACjB,YAAY,EAAE,GAAG;IACjB,aAAa,EAAE,GAAG;IAClB,iBAAiB,EAAE,GAAG;IACtB,QAAQ,EAAE,GAAG;CACd,CAAC;AA6BF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAoB;IACvD,sBAAsB,EAAE,IAAI;IAC5B,oBAAoB,EAAE,IAAI;IAC1B,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,GAAG;CACnB,CAAC;AA2CF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAA6B;IACnE,WAAW,EAAE;QACX,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,2BAA2B;QACpC,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EAAE,GAAG;KACjB;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,mBAAmB;QAC5B,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,GAAG;KACjB;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,2BAA2B;QACpC,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,GAAG;QACd,WAAW,EAAE,GAAG;KACjB;CACF,CAAC;AAEF,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,+DAA+D;IAC/D,yEAAqB,CAAA;IAErB,+CAA+C;IAC/C,6EAAuB,CAAA;IAEvB,0DAA0D;IAC1D,uEAAoB,CAAA;AACtB,CAAC,EATW,YAAY,KAAZ,YAAY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