@framers/agentos 0.1.113 → 0.1.114
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 +39 -5
- package/dist/api/AgentOS.d.ts +45 -12
- package/dist/api/AgentOS.d.ts.map +1 -1
- package/dist/api/AgentOS.js +225 -78
- package/dist/api/AgentOS.js.map +1 -1
- package/dist/api/AgentOSOrchestrator.d.ts +8 -0
- package/dist/api/AgentOSOrchestrator.d.ts.map +1 -1
- package/dist/api/AgentOSOrchestrator.js +350 -59
- package/dist/api/AgentOSOrchestrator.js.map +1 -1
- package/dist/api/StreamChunkEmitter.d.ts.map +1 -1
- package/dist/api/StreamChunkEmitter.js +2 -0
- package/dist/api/StreamChunkEmitter.js.map +1 -1
- package/dist/api/agency.d.ts.map +1 -1
- package/dist/api/agency.js +47 -1
- package/dist/api/agency.js.map +1 -1
- package/dist/api/agent.d.ts +18 -5
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/agent.js +48 -9
- package/dist/api/agent.js.map +1 -1
- package/dist/api/agentExport.d.ts +202 -0
- package/dist/api/agentExport.d.ts.map +1 -0
- package/dist/api/agentExport.js +323 -0
- package/dist/api/agentExport.js.map +1 -0
- package/dist/api/editImage.d.ts +119 -0
- package/dist/api/editImage.d.ts.map +1 -0
- package/dist/api/editImage.js +150 -0
- package/dist/api/editImage.js.map +1 -0
- package/dist/api/embedText.d.ts +137 -0
- package/dist/api/embedText.d.ts.map +1 -0
- package/dist/api/embedText.js +229 -0
- package/dist/api/embedText.js.map +1 -0
- package/dist/api/externalToolRegistry.d.ts +44 -0
- package/dist/api/externalToolRegistry.d.ts.map +1 -0
- package/dist/api/externalToolRegistry.js +245 -0
- package/dist/api/externalToolRegistry.js.map +1 -0
- package/dist/api/generateImage.d.ts +1 -1
- package/dist/api/generateImage.d.ts.map +1 -1
- package/dist/api/generateImage.js +17 -13
- package/dist/api/generateImage.js.map +1 -1
- package/dist/api/generateObject.d.ts +185 -0
- package/dist/api/generateObject.d.ts.map +1 -0
- package/dist/api/generateObject.js +249 -0
- package/dist/api/generateObject.js.map +1 -0
- package/dist/api/generateText.d.ts +13 -3
- package/dist/api/generateText.d.ts.map +1 -1
- package/dist/api/generateText.js +20 -5
- package/dist/api/generateText.js.map +1 -1
- package/dist/api/interfaces/IAgentOS.d.ts +29 -1
- package/dist/api/interfaces/IAgentOS.d.ts.map +1 -1
- package/dist/api/model.d.ts +7 -7
- package/dist/api/model.d.ts.map +1 -1
- package/dist/api/model.js +22 -16
- package/dist/api/model.js.map +1 -1
- package/dist/api/processRequestWithExternalTools.d.ts +26 -0
- package/dist/api/processRequestWithExternalTools.d.ts.map +1 -0
- package/dist/api/processRequestWithExternalTools.js +52 -0
- package/dist/api/processRequestWithExternalTools.js.map +1 -0
- package/dist/api/processRequestWithRegisteredTools.d.ts +56 -0
- package/dist/api/processRequestWithRegisteredTools.d.ts.map +1 -0
- package/dist/api/processRequestWithRegisteredTools.js +125 -0
- package/dist/api/processRequestWithRegisteredTools.js.map +1 -0
- package/dist/api/provider-defaults.d.ts.map +1 -1
- package/dist/api/provider-defaults.js +28 -0
- package/dist/api/provider-defaults.js.map +1 -1
- package/dist/api/resumeExternalToolRequestWithRegisteredTools.d.ts +71 -0
- package/dist/api/resumeExternalToolRequestWithRegisteredTools.d.ts.map +1 -0
- package/dist/api/resumeExternalToolRequestWithRegisteredTools.js +159 -0
- package/dist/api/resumeExternalToolRequestWithRegisteredTools.js.map +1 -0
- package/dist/api/strategies/agentGraphBuilder.d.ts +170 -0
- package/dist/api/strategies/agentGraphBuilder.d.ts.map +1 -0
- package/dist/api/strategies/agentGraphBuilder.js +299 -0
- package/dist/api/strategies/agentGraphBuilder.js.map +1 -0
- package/dist/api/strategies/graphCompiler.d.ts +84 -0
- package/dist/api/strategies/graphCompiler.d.ts.map +1 -0
- package/dist/api/strategies/graphCompiler.js +617 -0
- package/dist/api/strategies/graphCompiler.js.map +1 -0
- package/dist/api/strategies/hierarchical.d.ts.map +1 -1
- package/dist/api/strategies/hierarchical.js +2 -1
- package/dist/api/strategies/hierarchical.js.map +1 -1
- package/dist/api/strategies/index.d.ts +3 -0
- package/dist/api/strategies/index.d.ts.map +1 -1
- package/dist/api/strategies/index.js +2 -0
- package/dist/api/strategies/index.js.map +1 -1
- package/dist/api/strategies/shared.d.ts +1 -1
- package/dist/api/strategies/shared.d.ts.map +1 -1
- package/dist/api/strategies/shared.js +3 -2
- package/dist/api/strategies/shared.js.map +1 -1
- package/dist/api/streamObject.d.ts +166 -0
- package/dist/api/streamObject.d.ts.map +1 -0
- package/dist/api/streamObject.js +268 -0
- package/dist/api/streamObject.js.map +1 -0
- package/dist/api/streamText.d.ts +1 -1
- package/dist/api/streamText.d.ts.map +1 -1
- package/dist/api/streamText.js +26 -8
- package/dist/api/streamText.js.map +1 -1
- package/dist/api/toolAdapter.d.ts +44 -8
- package/dist/api/toolAdapter.d.ts.map +1 -1
- package/dist/api/toolAdapter.js +224 -45
- package/dist/api/toolAdapter.js.map +1 -1
- package/dist/api/types/AgentOSExternalToolRequest.d.ts +35 -0
- package/dist/api/types/AgentOSExternalToolRequest.d.ts.map +1 -0
- package/dist/api/types/AgentOSExternalToolRequest.js +2 -0
- package/dist/api/types/AgentOSExternalToolRequest.js.map +1 -0
- package/dist/api/types/AgentOSResponse.d.ts +25 -0
- package/dist/api/types/AgentOSResponse.d.ts.map +1 -1
- package/dist/api/types/AgentOSResponse.js +20 -0
- package/dist/api/types/AgentOSResponse.js.map +1 -1
- package/dist/api/types/AgentOSToolResult.d.ts +11 -0
- package/dist/api/types/AgentOSToolResult.d.ts.map +1 -0
- package/dist/api/types/AgentOSToolResult.js +2 -0
- package/dist/api/types/AgentOSToolResult.js.map +1 -0
- package/dist/api/types.d.ts +28 -4
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/types.js.map +1 -1
- package/dist/api/upscaleImage.d.ts +92 -0
- package/dist/api/upscaleImage.d.ts.map +1 -0
- package/dist/api/upscaleImage.js +133 -0
- package/dist/api/upscaleImage.js.map +1 -0
- package/dist/api/variateImage.d.ts +102 -0
- package/dist/api/variateImage.d.ts.map +1 -0
- package/dist/api/variateImage.js +154 -0
- package/dist/api/variateImage.js.map +1 -0
- package/dist/cognitive_substrate/GMI.d.ts +16 -2
- package/dist/cognitive_substrate/GMI.d.ts.map +1 -1
- package/dist/cognitive_substrate/GMI.js +188 -56
- package/dist/cognitive_substrate/GMI.js.map +1 -1
- package/dist/cognitive_substrate/IGMI.d.ts +10 -0
- package/dist/cognitive_substrate/IGMI.d.ts.map +1 -1
- package/dist/cognitive_substrate/IGMI.js.map +1 -1
- package/dist/config/AgentOSConfig.d.ts +19 -2
- package/dist/config/AgentOSConfig.d.ts.map +1 -1
- package/dist/config/AgentOSConfig.js +46 -29
- package/dist/config/AgentOSConfig.js.map +1 -1
- package/dist/core/guardrails/IGuardrailService.d.ts +1 -1
- package/dist/core/images/IImageProvider.d.ts +93 -0
- package/dist/core/images/IImageProvider.d.ts.map +1 -1
- package/dist/core/images/IImageProvider.js.map +1 -1
- package/dist/core/images/ImageOperationError.d.ts +52 -0
- package/dist/core/images/ImageOperationError.d.ts.map +1 -0
- package/dist/core/images/ImageOperationError.js +58 -0
- package/dist/core/images/ImageOperationError.js.map +1 -0
- package/dist/core/images/imageToBuffer.d.ts +41 -0
- package/dist/core/images/imageToBuffer.d.ts.map +1 -0
- package/dist/core/images/imageToBuffer.js +95 -0
- package/dist/core/images/imageToBuffer.js.map +1 -0
- package/dist/core/images/index.d.ts +4 -0
- package/dist/core/images/index.d.ts.map +1 -1
- package/dist/core/images/index.js +8 -0
- package/dist/core/images/index.js.map +1 -1
- package/dist/core/images/providers/FalImageProvider.d.ts +208 -0
- package/dist/core/images/providers/FalImageProvider.d.ts.map +1 -0
- package/dist/core/images/providers/FalImageProvider.js +301 -0
- package/dist/core/images/providers/FalImageProvider.js.map +1 -0
- package/dist/core/images/providers/FluxImageProvider.d.ts +197 -0
- package/dist/core/images/providers/FluxImageProvider.d.ts.map +1 -0
- package/dist/core/images/providers/FluxImageProvider.js +271 -0
- package/dist/core/images/providers/FluxImageProvider.js.map +1 -0
- package/dist/core/images/providers/OpenAIImageProvider.d.ts +33 -1
- package/dist/core/images/providers/OpenAIImageProvider.d.ts.map +1 -1
- package/dist/core/images/providers/OpenAIImageProvider.js +125 -0
- package/dist/core/images/providers/OpenAIImageProvider.js.map +1 -1
- package/dist/core/images/providers/ReplicateImageProvider.d.ts +26 -1
- package/dist/core/images/providers/ReplicateImageProvider.d.ts.map +1 -1
- package/dist/core/images/providers/ReplicateImageProvider.js +118 -0
- package/dist/core/images/providers/ReplicateImageProvider.js.map +1 -1
- package/dist/core/images/providers/StabilityImageProvider.d.ts +41 -1
- package/dist/core/images/providers/StabilityImageProvider.d.ts.map +1 -1
- package/dist/core/images/providers/StabilityImageProvider.js +180 -7
- package/dist/core/images/providers/StabilityImageProvider.js.map +1 -1
- package/dist/core/images/providers/StableDiffusionLocalProvider.d.ts +29 -1
- package/dist/core/images/providers/StableDiffusionLocalProvider.d.ts.map +1 -1
- package/dist/core/images/providers/StableDiffusionLocalProvider.js +124 -0
- package/dist/core/images/providers/StableDiffusionLocalProvider.js.map +1 -1
- package/dist/core/llm/IPromptEngine.d.ts +2 -2
- package/dist/core/llm/IPromptEngine.d.ts.map +1 -1
- package/dist/core/llm/IPromptEngine.js +2 -2
- package/dist/core/llm/IPromptEngine.js.map +1 -1
- package/dist/core/llm/providers/AIModelProviderManager.d.ts +7 -1
- package/dist/core/llm/providers/AIModelProviderManager.d.ts.map +1 -1
- package/dist/core/llm/providers/AIModelProviderManager.js +24 -0
- package/dist/core/llm/providers/AIModelProviderManager.js.map +1 -1
- package/dist/core/llm/providers/errors/AnthropicProviderError.d.ts +42 -0
- package/dist/core/llm/providers/errors/AnthropicProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/AnthropicProviderError.js +45 -0
- package/dist/core/llm/providers/errors/AnthropicProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/GeminiProviderError.d.ts +45 -0
- package/dist/core/llm/providers/errors/GeminiProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/GeminiProviderError.js +46 -0
- package/dist/core/llm/providers/errors/GeminiProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/OllamaProviderError.d.ts.map +1 -1
- package/dist/core/llm/providers/errors/OllamaProviderError.js +1 -1
- package/dist/core/llm/providers/errors/OllamaProviderError.js.map +1 -1
- package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/OpenAIProviderError.js +1 -1
- package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/OpenRouterProviderError.js +1 -1
- package/dist/core/llm/providers/implementations/AnthropicProvider.d.ts +340 -0
- package/dist/core/llm/providers/implementations/AnthropicProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/AnthropicProvider.js +959 -0
- package/dist/core/llm/providers/implementations/AnthropicProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/GeminiProvider.d.ts +339 -0
- package/dist/core/llm/providers/implementations/GeminiProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/GeminiProvider.js +1004 -0
- package/dist/core/llm/providers/implementations/GeminiProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/GroqProvider.d.ts +105 -0
- package/dist/core/llm/providers/implementations/GroqProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/GroqProvider.js +134 -0
- package/dist/core/llm/providers/implementations/GroqProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/MistralProvider.d.ts +105 -0
- package/dist/core/llm/providers/implementations/MistralProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/MistralProvider.js +146 -0
- package/dist/core/llm/providers/implementations/MistralProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/TogetherProvider.d.ts +107 -0
- package/dist/core/llm/providers/implementations/TogetherProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/TogetherProvider.js +138 -0
- package/dist/core/llm/providers/implementations/TogetherProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/XAIProvider.d.ts +102 -0
- package/dist/core/llm/providers/implementations/XAIProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/XAIProvider.js +123 -0
- package/dist/core/llm/providers/implementations/XAIProvider.js.map +1 -0
- package/dist/core/orchestration/AgentOrchestrator.d.ts.map +1 -1
- package/dist/core/orchestration/AgentOrchestrator.js +26 -5
- package/dist/core/orchestration/AgentOrchestrator.js.map +1 -1
- package/dist/core/tools/IToolOrchestrator.d.ts +2 -2
- package/dist/core/tools/IToolOrchestrator.d.ts.map +1 -1
- package/dist/core/tools/ToolExecutor.d.ts +3 -0
- package/dist/core/tools/ToolExecutor.d.ts.map +1 -1
- package/dist/core/tools/ToolExecutor.js +2 -1
- package/dist/core/tools/ToolExecutor.js.map +1 -1
- package/dist/core/tools/ToolOrchestrator.d.ts +7 -7
- package/dist/core/tools/ToolOrchestrator.d.ts.map +1 -1
- package/dist/core/tools/ToolOrchestrator.js +135 -36
- package/dist/core/tools/ToolOrchestrator.js.map +1 -1
- package/dist/core/tools/permissions/ToolPermissionManager.d.ts +6 -5
- package/dist/core/tools/permissions/ToolPermissionManager.d.ts.map +1 -1
- package/dist/core/tools/permissions/ToolPermissionManager.js +47 -21
- package/dist/core/tools/permissions/ToolPermissionManager.js.map +1 -1
- package/dist/core/vision/VisionPipeline.d.ts +437 -0
- package/dist/core/vision/VisionPipeline.d.ts.map +1 -0
- package/dist/core/vision/VisionPipeline.js +1113 -0
- package/dist/core/vision/VisionPipeline.js.map +1 -0
- package/dist/core/vision/index.d.ts +97 -0
- package/dist/core/vision/index.d.ts.map +1 -0
- package/dist/core/vision/index.js +182 -0
- package/dist/core/vision/index.js.map +1 -0
- package/dist/core/vision/providers/LLMVisionProvider.d.ts +135 -0
- package/dist/core/vision/providers/LLMVisionProvider.d.ts.map +1 -0
- package/dist/core/vision/providers/LLMVisionProvider.js +136 -0
- package/dist/core/vision/providers/LLMVisionProvider.js.map +1 -0
- package/dist/core/vision/providers/PipelineVisionProvider.d.ts +154 -0
- package/dist/core/vision/providers/PipelineVisionProvider.d.ts.map +1 -0
- package/dist/core/vision/providers/PipelineVisionProvider.js +160 -0
- package/dist/core/vision/providers/PipelineVisionProvider.js.map +1 -0
- package/dist/core/vision/types.d.ts +286 -0
- package/dist/core/vision/types.d.ts.map +1 -0
- package/dist/core/vision/types.js +24 -0
- package/dist/core/vision/types.js.map +1 -0
- package/dist/discovery/CapabilityDiscoveryEngine.d.ts +1 -1
- package/dist/discovery/CapabilityDiscoveryEngine.d.ts.map +1 -1
- package/dist/discovery/CapabilityDiscoveryEngine.js +1 -1
- package/dist/discovery/CapabilityDiscoveryEngine.js.map +1 -1
- package/dist/emergent/ComposableToolBuilder.d.ts +15 -4
- package/dist/emergent/ComposableToolBuilder.d.ts.map +1 -1
- package/dist/emergent/ComposableToolBuilder.js +29 -14
- package/dist/emergent/ComposableToolBuilder.js.map +1 -1
- package/dist/emergent/EmergentCapabilityEngine.d.ts +3 -3
- package/dist/emergent/EmergentCapabilityEngine.d.ts.map +1 -1
- package/dist/emergent/EmergentCapabilityEngine.js +15 -12
- package/dist/emergent/EmergentCapabilityEngine.js.map +1 -1
- package/dist/emergent/EmergentJudge.d.ts +20 -0
- package/dist/emergent/EmergentJudge.d.ts.map +1 -1
- package/dist/emergent/EmergentJudge.js +121 -26
- package/dist/emergent/EmergentJudge.js.map +1 -1
- package/dist/emergent/EmergentToolRegistry.d.ts +17 -0
- package/dist/emergent/EmergentToolRegistry.d.ts.map +1 -1
- package/dist/emergent/EmergentToolRegistry.js +26 -0
- package/dist/emergent/EmergentToolRegistry.js.map +1 -1
- package/dist/emergent/ForgeToolMetaTool.d.ts +1 -1
- package/dist/emergent/ForgeToolMetaTool.d.ts.map +1 -1
- package/dist/emergent/ForgeToolMetaTool.js +15 -2
- package/dist/emergent/ForgeToolMetaTool.js.map +1 -1
- package/dist/emergent/SandboxedToolForge.d.ts +2 -2
- package/dist/emergent/SandboxedToolForge.d.ts.map +1 -1
- package/dist/emergent/SandboxedToolForge.js +13 -23
- package/dist/emergent/SandboxedToolForge.js.map +1 -1
- package/dist/emergent/SkillExporter.d.ts +119 -0
- package/dist/emergent/SkillExporter.d.ts.map +1 -0
- package/dist/emergent/SkillExporter.js +344 -0
- package/dist/emergent/SkillExporter.js.map +1 -0
- package/dist/emergent/index.d.ts +1 -0
- package/dist/emergent/index.d.ts.map +1 -1
- package/dist/emergent/index.js +1 -0
- package/dist/emergent/index.js.map +1 -1
- package/dist/emergent/types.d.ts +4 -4
- package/dist/index.d.ts +30 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/dist/memory/index.d.ts +10 -8
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +2 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/ingestion/DoclingLoader.d.ts +3 -3
- package/dist/memory/ingestion/DoclingLoader.d.ts.map +1 -1
- package/dist/memory/ingestion/DoclingLoader.js +12 -8
- package/dist/memory/ingestion/DoclingLoader.js.map +1 -1
- package/dist/memory/ingestion/FolderScanner.d.ts +7 -7
- package/dist/memory/ingestion/FolderScanner.d.ts.map +1 -1
- package/dist/memory/ingestion/FolderScanner.js +6 -6
- package/dist/memory/ingestion/FolderScanner.js.map +1 -1
- package/dist/memory/ingestion/LoaderRegistry.d.ts +8 -8
- package/dist/memory/ingestion/LoaderRegistry.d.ts.map +1 -1
- package/dist/memory/ingestion/LoaderRegistry.js +9 -11
- package/dist/memory/ingestion/LoaderRegistry.js.map +1 -1
- package/dist/memory/ingestion/MultimodalAggregator.d.ts +1 -1
- package/dist/memory/ingestion/MultimodalAggregator.js +1 -1
- package/dist/memory/ingestion/OcrPdfLoader.d.ts +2 -2
- package/dist/memory/ingestion/OcrPdfLoader.d.ts.map +1 -1
- package/dist/memory/ingestion/OcrPdfLoader.js +12 -8
- package/dist/memory/ingestion/OcrPdfLoader.js.map +1 -1
- package/dist/memory/ingestion/PdfLoader.d.ts +8 -8
- package/dist/memory/ingestion/PdfLoader.d.ts.map +1 -1
- package/dist/memory/ingestion/PdfLoader.js +13 -10
- package/dist/memory/ingestion/PdfLoader.js.map +1 -1
- package/dist/memory/io/MarkdownExporter.d.ts +1 -1
- package/dist/memory/io/MarkdownExporter.d.ts.map +1 -1
- package/dist/memory/io/MarkdownExporter.js +1 -1
- package/dist/memory/io/MarkdownExporter.js.map +1 -1
- package/dist/memory/tools/MemoryAddTool.d.ts +2 -2
- package/dist/memory/tools/MemoryAddTool.d.ts.map +1 -1
- package/dist/memory/tools/MemoryAddTool.js +8 -3
- package/dist/memory/tools/MemoryAddTool.js.map +1 -1
- package/dist/memory/tools/MemorySearchTool.d.ts +3 -3
- package/dist/memory/tools/MemorySearchTool.d.ts.map +1 -1
- package/dist/memory/tools/MemorySearchTool.js +11 -9
- package/dist/memory/tools/MemorySearchTool.js.map +1 -1
- package/dist/memory/tools/scopeContext.d.ts +11 -0
- package/dist/memory/tools/scopeContext.d.ts.map +1 -0
- package/dist/memory/tools/scopeContext.js +46 -0
- package/dist/memory/tools/scopeContext.js.map +1 -0
- package/dist/orchestration/builders/AgentGraph.d.ts +12 -11
- package/dist/orchestration/builders/AgentGraph.d.ts.map +1 -1
- package/dist/orchestration/builders/AgentGraph.js +12 -11
- package/dist/orchestration/builders/AgentGraph.js.map +1 -1
- package/dist/orchestration/builders/VoiceNodeBuilder.d.ts +2 -2
- package/dist/orchestration/builders/VoiceNodeBuilder.d.ts.map +1 -1
- package/dist/orchestration/builders/VoiceNodeBuilder.js +2 -2
- package/dist/orchestration/builders/VoiceNodeBuilder.js.map +1 -1
- package/dist/orchestration/builders/WorkflowBuilder.d.ts +1 -1
- package/dist/orchestration/builders/WorkflowBuilder.d.ts.map +1 -1
- package/dist/orchestration/builders/WorkflowBuilder.js +1 -1
- package/dist/orchestration/builders/WorkflowBuilder.js.map +1 -1
- package/dist/orchestration/checkpoint/InMemoryCheckpointStore.d.ts +7 -54
- package/dist/orchestration/checkpoint/InMemoryCheckpointStore.d.ts.map +1 -1
- package/dist/orchestration/checkpoint/InMemoryCheckpointStore.js +8 -56
- package/dist/orchestration/checkpoint/InMemoryCheckpointStore.js.map +1 -1
- package/dist/orchestration/events/GraphEvent.d.ts +12 -12
- package/dist/orchestration/events/GraphEvent.d.ts.map +1 -1
- package/dist/orchestration/events/GraphEvent.js.map +1 -1
- package/dist/orchestration/runtime/GraphRuntime.d.ts.map +1 -1
- package/dist/orchestration/runtime/GraphRuntime.js +151 -1
- package/dist/orchestration/runtime/GraphRuntime.js.map +1 -1
- package/dist/orchestration/runtime/LoopController.d.ts +3 -3
- package/dist/orchestration/runtime/LoopController.d.ts.map +1 -1
- package/dist/orchestration/runtime/LoopController.js.map +1 -1
- package/dist/orchestration/runtime/StateManager.d.ts +3 -3
- package/dist/orchestration/runtime/StateManager.js +3 -3
- package/dist/orchestration/runtime/VoiceNodeExecutor.d.ts +6 -6
- package/dist/orchestration/runtime/VoiceNodeExecutor.d.ts.map +1 -1
- package/dist/orchestration/runtime/VoiceNodeExecutor.js +27 -10
- package/dist/orchestration/runtime/VoiceNodeExecutor.js.map +1 -1
- package/dist/orchestration/runtime/VoiceTransportAdapter.d.ts +5 -5
- package/dist/orchestration/runtime/VoiceTransportAdapter.js +5 -5
- package/dist/orchestration/runtime/VoiceTurnCollector.d.ts +2 -2
- package/dist/orchestration/runtime/VoiceTurnCollector.js +2 -2
- package/dist/query-router/KeywordFallback.d.ts +70 -0
- package/dist/query-router/KeywordFallback.d.ts.map +1 -0
- package/dist/query-router/KeywordFallback.js +132 -0
- package/dist/query-router/KeywordFallback.js.map +1 -0
- package/dist/query-router/QueryClassifier.d.ts +140 -0
- package/dist/query-router/QueryClassifier.d.ts.map +1 -0
- package/dist/query-router/QueryClassifier.js +223 -0
- package/dist/query-router/QueryClassifier.js.map +1 -0
- package/dist/query-router/QueryDispatcher.d.ts +139 -0
- package/dist/query-router/QueryDispatcher.d.ts.map +1 -0
- package/dist/query-router/QueryDispatcher.js +297 -0
- package/dist/query-router/QueryDispatcher.js.map +1 -0
- package/dist/query-router/QueryGenerator.d.ts +184 -0
- package/dist/query-router/QueryGenerator.d.ts.map +1 -0
- package/dist/query-router/QueryGenerator.js +241 -0
- package/dist/query-router/QueryGenerator.js.map +1 -0
- package/dist/query-router/QueryRouter.d.ts +292 -0
- package/dist/query-router/QueryRouter.d.ts.map +1 -0
- package/dist/query-router/QueryRouter.js +803 -0
- package/dist/query-router/QueryRouter.js.map +1 -0
- package/dist/query-router/TopicExtractor.d.ts +73 -0
- package/dist/query-router/TopicExtractor.d.ts.map +1 -0
- package/dist/query-router/TopicExtractor.js +95 -0
- package/dist/query-router/TopicExtractor.js.map +1 -0
- package/dist/query-router/index.d.ts +40 -0
- package/dist/query-router/index.d.ts.map +1 -0
- package/dist/query-router/index.js +46 -0
- package/dist/query-router/index.js.map +1 -0
- package/dist/query-router/types.d.ts +508 -0
- package/dist/query-router/types.d.ts.map +1 -0
- package/dist/query-router/types.js +39 -0
- package/dist/query-router/types.js.map +1 -0
- package/dist/rag/index.d.ts +5 -0
- package/dist/rag/index.d.ts.map +1 -1
- package/dist/rag/index.js +7 -0
- package/dist/rag/index.js.map +1 -1
- package/dist/rag/multimodal/LLMVisionAdapter.d.ts +43 -0
- package/dist/rag/multimodal/LLMVisionAdapter.d.ts.map +1 -0
- package/dist/rag/multimodal/LLMVisionAdapter.js +46 -0
- package/dist/rag/multimodal/LLMVisionAdapter.js.map +1 -0
- package/dist/rag/multimodal/MultimodalIndexer.d.ts +244 -0
- package/dist/rag/multimodal/MultimodalIndexer.d.ts.map +1 -0
- package/dist/rag/multimodal/MultimodalIndexer.js +411 -0
- package/dist/rag/multimodal/MultimodalIndexer.js.map +1 -0
- package/dist/rag/multimodal/MultimodalMemoryBridge.d.ts +448 -0
- package/dist/rag/multimodal/MultimodalMemoryBridge.d.ts.map +1 -0
- package/dist/rag/multimodal/MultimodalMemoryBridge.js +941 -0
- package/dist/rag/multimodal/MultimodalMemoryBridge.js.map +1 -0
- package/dist/rag/multimodal/SpeechProviderAdapter.d.ts +139 -0
- package/dist/rag/multimodal/SpeechProviderAdapter.d.ts.map +1 -0
- package/dist/rag/multimodal/SpeechProviderAdapter.js +143 -0
- package/dist/rag/multimodal/SpeechProviderAdapter.js.map +1 -0
- package/dist/rag/multimodal/createMultimodalIndexerFromResolver.d.ts +172 -0
- package/dist/rag/multimodal/createMultimodalIndexerFromResolver.d.ts.map +1 -0
- package/dist/rag/multimodal/createMultimodalIndexerFromResolver.js +152 -0
- package/dist/rag/multimodal/createMultimodalIndexerFromResolver.js.map +1 -0
- package/dist/rag/multimodal/index.d.ts +44 -0
- package/dist/rag/multimodal/index.d.ts.map +1 -0
- package/dist/rag/multimodal/index.js +42 -0
- package/dist/rag/multimodal/index.js.map +1 -0
- package/dist/rag/multimodal/types.d.ts +276 -0
- package/dist/rag/multimodal/types.d.ts.map +1 -0
- package/dist/rag/multimodal/types.js +26 -0
- package/dist/rag/multimodal/types.js.map +1 -0
- package/dist/social-posting/SocialPostManager.d.ts +3 -3
- package/dist/social-posting/SocialPostManager.d.ts.map +1 -1
- package/dist/social-posting/SocialPostManager.js +3 -5
- package/dist/social-posting/SocialPostManager.js.map +1 -1
- package/dist/speech/FallbackProxy.d.ts +6 -6
- package/dist/speech/FallbackProxy.d.ts.map +1 -1
- package/dist/speech/FallbackProxy.js +3 -3
- package/dist/speech/FallbackProxy.js.map +1 -1
- package/dist/speech/SpeechProviderResolver.d.ts +8 -8
- package/dist/speech/SpeechProviderResolver.d.ts.map +1 -1
- package/dist/speech/SpeechProviderResolver.js +22 -11
- package/dist/speech/SpeechProviderResolver.js.map +1 -1
- package/dist/speech/SpeechRuntime.d.ts +1 -5
- package/dist/speech/SpeechRuntime.d.ts.map +1 -1
- package/dist/speech/SpeechRuntime.js +17 -9
- package/dist/speech/SpeechRuntime.js.map +1 -1
- package/dist/speech/providers/AssemblyAISTTProvider.d.ts +4 -4
- package/dist/speech/providers/AssemblyAISTTProvider.js +4 -4
- package/dist/speech/providers/AzureSpeechTTSProvider.d.ts +3 -3
- package/dist/speech/providers/AzureSpeechTTSProvider.js +2 -2
- package/dist/speech/providers/AzureSpeechTTSProvider.js.map +1 -1
- package/dist/speech/providers/BuiltInAdaptiveVadProvider.d.ts +9 -9
- package/dist/speech/providers/BuiltInAdaptiveVadProvider.d.ts.map +1 -1
- package/dist/speech/providers/BuiltInAdaptiveVadProvider.js +5 -5
- package/dist/speech/providers/BuiltInAdaptiveVadProvider.js.map +1 -1
- package/dist/speech/providers/DeepgramBatchSTTProvider.d.ts +2 -2
- package/dist/speech/providers/DeepgramBatchSTTProvider.js +2 -2
- package/dist/speech/providers/OpenAITextToSpeechProvider.d.ts +3 -3
- package/dist/speech/providers/OpenAITextToSpeechProvider.js +2 -2
- package/dist/speech/providers/OpenAIWhisperSpeechToTextProvider.d.ts +1 -1
- package/dist/speech/providers/OpenAIWhisperSpeechToTextProvider.d.ts.map +1 -1
- package/dist/speech/providers/OpenAIWhisperSpeechToTextProvider.js +1 -1
- package/dist/speech/providers/OpenAIWhisperSpeechToTextProvider.js.map +1 -1
- package/dist/voice/TelephonyStreamTransport.d.ts +6 -6
- package/dist/voice/TelephonyStreamTransport.d.ts.map +1 -1
- package/dist/voice/TelephonyStreamTransport.js +5 -5
- package/dist/voice/TelephonyStreamTransport.js.map +1 -1
- package/dist/voice-pipeline/AcousticEndpointDetector.d.ts +4 -4
- package/dist/voice-pipeline/AcousticEndpointDetector.d.ts.map +1 -1
- package/dist/voice-pipeline/AcousticEndpointDetector.js +4 -4
- package/dist/voice-pipeline/AcousticEndpointDetector.js.map +1 -1
- package/dist/voice-pipeline/HardCutBargeinHandler.d.ts +3 -3
- package/dist/voice-pipeline/HardCutBargeinHandler.js +3 -3
- package/dist/voice-pipeline/HeuristicEndpointDetector.d.ts +3 -3
- package/dist/voice-pipeline/HeuristicEndpointDetector.d.ts.map +1 -1
- package/dist/voice-pipeline/HeuristicEndpointDetector.js +3 -3
- package/dist/voice-pipeline/HeuristicEndpointDetector.js.map +1 -1
- package/dist/voice-pipeline/SoftFadeBargeinHandler.d.ts +5 -5
- package/dist/voice-pipeline/SoftFadeBargeinHandler.js +1 -1
- package/dist/voice-pipeline/VoiceInterruptError.d.ts +6 -6
- package/dist/voice-pipeline/VoiceInterruptError.d.ts.map +1 -1
- package/dist/voice-pipeline/VoiceInterruptError.js +4 -4
- package/dist/voice-pipeline/VoiceInterruptError.js.map +1 -1
- package/dist/voice-pipeline/VoicePipelineOrchestrator.d.ts +9 -9
- package/dist/voice-pipeline/VoicePipelineOrchestrator.d.ts.map +1 -1
- package/dist/voice-pipeline/VoicePipelineOrchestrator.js +8 -8
- package/dist/voice-pipeline/VoicePipelineOrchestrator.js.map +1 -1
- package/dist/voice-pipeline/WebRTCStreamTransport.d.ts +421 -0
- package/dist/voice-pipeline/WebRTCStreamTransport.d.ts.map +1 -0
- package/dist/voice-pipeline/WebRTCStreamTransport.js +573 -0
- package/dist/voice-pipeline/WebRTCStreamTransport.js.map +1 -0
- package/dist/voice-pipeline/WebSocketStreamTransport.d.ts +8 -8
- package/dist/voice-pipeline/WebSocketStreamTransport.js +5 -5
- package/dist/voice-pipeline/index.d.ts +1 -0
- package/dist/voice-pipeline/index.d.ts.map +1 -1
- package/dist/voice-pipeline/index.js +2 -0
- package/dist/voice-pipeline/index.js.map +1 -1
- package/dist/voice-pipeline/types.d.ts +43 -43
- package/dist/voice-pipeline/types.d.ts.map +1 -1
- package/package.json +19 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Skill exporter for emergent tools.
|
|
3
|
+
* @module @framers/agentos/emergent/SkillExporter
|
|
4
|
+
*
|
|
5
|
+
* Converts runtime-forged {@link EmergentTool} instances into the standard
|
|
6
|
+
* SKILL.md + CAPABILITY.yaml format consumed by the agentos-skills-registry
|
|
7
|
+
* and the discovery capability manifest scanner.
|
|
8
|
+
*
|
|
9
|
+
* This enables emergent tools that have proven their worth (agent-tier or
|
|
10
|
+
* shared-tier) to be persisted as first-class skills, discoverable by the
|
|
11
|
+
* capability discovery engine alongside curated human-authored skills.
|
|
12
|
+
*
|
|
13
|
+
* Three export levels:
|
|
14
|
+
* - `exportToolAsSkill()` — pure in-memory string conversion to SKILL.md markdown
|
|
15
|
+
* - `writeSkillFile()` — writes a single SKILL.md to disk
|
|
16
|
+
* - `exportToolAsSkillPack()` — writes both SKILL.md and CAPABILITY.yaml (a full
|
|
17
|
+
* capability directory ready for scanner pickup)
|
|
18
|
+
*/
|
|
19
|
+
import type { EmergentTool } from './types.js';
|
|
20
|
+
/**
|
|
21
|
+
* Converts an {@link EmergentTool} into a SKILL.md markdown string.
|
|
22
|
+
*
|
|
23
|
+
* The generated SKILL.md follows the standard format used by the curated
|
|
24
|
+
* skills in `packages/agentos-skills-registry/registry/curated/`. It includes
|
|
25
|
+
* YAML frontmatter, a purpose section, usage guidance, a parameter table,
|
|
26
|
+
* and implementation notes.
|
|
27
|
+
*
|
|
28
|
+
* Sandbox tools receive a redaction notice instead of exposed source code —
|
|
29
|
+
* the SKILL.md documents the tool's interface without leaking runtime code.
|
|
30
|
+
*
|
|
31
|
+
* @param tool - The emergent tool to export.
|
|
32
|
+
* @returns Complete SKILL.md content as a string.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { exportToolAsSkill } from '../emergent/SkillExporter';
|
|
37
|
+
*
|
|
38
|
+
* const markdown = exportToolAsSkill(myEmergentTool);
|
|
39
|
+
* console.log(markdown);
|
|
40
|
+
* // ---
|
|
41
|
+
* // name: fetch-data
|
|
42
|
+
* // version: '1.0.0'
|
|
43
|
+
* // ...
|
|
44
|
+
* // ---
|
|
45
|
+
* // # Fetch Data
|
|
46
|
+
* // ...
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function exportToolAsSkill(tool: EmergentTool): string;
|
|
50
|
+
/**
|
|
51
|
+
* Builds a CAPABILITY.yaml content string for an emergent tool.
|
|
52
|
+
*
|
|
53
|
+
* The format matches the schema expected by the capability manifest scanner:
|
|
54
|
+
* ```yaml
|
|
55
|
+
* id: tool:<name>
|
|
56
|
+
* kind: tool
|
|
57
|
+
* name: <name>
|
|
58
|
+
* displayName: <Title Case Name>
|
|
59
|
+
* description: <description>
|
|
60
|
+
* category: emergent
|
|
61
|
+
* tags: [generated, ...]
|
|
62
|
+
* inputSchema: { ... }
|
|
63
|
+
* outputSchema: { ... }
|
|
64
|
+
* skillContent: ./SKILL.md
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param tool - The emergent tool to export.
|
|
68
|
+
* @returns CAPABILITY.yaml content string.
|
|
69
|
+
*/
|
|
70
|
+
export declare function buildCapabilityYaml(tool: EmergentTool): string;
|
|
71
|
+
/**
|
|
72
|
+
* Writes a SKILL.md file to disk for an emergent tool.
|
|
73
|
+
*
|
|
74
|
+
* Creates the output directory if it does not exist. The file is written to
|
|
75
|
+
* `<outputDir>/<tool.name>/SKILL.md`.
|
|
76
|
+
*
|
|
77
|
+
* @param tool - The emergent tool to export.
|
|
78
|
+
* @param outputDir - Base directory where the skill subdirectory will be created.
|
|
79
|
+
* @returns Absolute path to the written SKILL.md file.
|
|
80
|
+
*
|
|
81
|
+
* @throws {Error} If the filesystem write fails (permissions, disk full, etc.).
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const skillPath = await writeSkillFile(myTool, '/home/user/.wunderland/capabilities');
|
|
86
|
+
* // => "/home/user/.wunderland/capabilities/my-tool/SKILL.md"
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare function writeSkillFile(tool: EmergentTool, outputDir: string): Promise<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Exports an emergent tool as a full skill pack (SKILL.md + CAPABILITY.yaml).
|
|
92
|
+
*
|
|
93
|
+
* Creates a directory named after the tool under `outputDir`, containing both
|
|
94
|
+
* files. This directory structure is compatible with the
|
|
95
|
+
* capability manifest scanner and can be placed in any scan directory
|
|
96
|
+
* (`~/.wunderland/capabilities/`, `./.wunderland/capabilities/`, etc.) for
|
|
97
|
+
* automatic discovery.
|
|
98
|
+
*
|
|
99
|
+
* @param tool - The emergent tool to export.
|
|
100
|
+
* @param outputDir - Base directory where the skill subdirectory will be created.
|
|
101
|
+
* @returns Paths to the written SKILL.md and CAPABILITY.yaml files.
|
|
102
|
+
*
|
|
103
|
+
* @throws {Error} If the filesystem writes fail (permissions, disk full, etc.).
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const { skillPath, capabilityPath } = await exportToolAsSkillPack(
|
|
108
|
+
* myTool,
|
|
109
|
+
* '/home/user/.wunderland/capabilities',
|
|
110
|
+
* );
|
|
111
|
+
* // skillPath => "/home/user/.wunderland/capabilities/my-tool/SKILL.md"
|
|
112
|
+
* // capabilityPath => "/home/user/.wunderland/capabilities/my-tool/CAPABILITY.yaml"
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export declare function exportToolAsSkillPack(tool: EmergentTool, outputDir: string): Promise<{
|
|
116
|
+
skillPath: string;
|
|
117
|
+
capabilityPath: string;
|
|
118
|
+
}>;
|
|
119
|
+
//# sourceMappingURL=SkillExporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillExporter.d.ts","sourceRoot":"","sources":["../../src/emergent/SkillExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAyC,MAAM,YAAY,CAAC;AAgGtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAyH5D;AAMD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAoB9D;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAS3F;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,YAAY,EAClB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,CAiBxD"}
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Skill exporter for emergent tools.
|
|
3
|
+
* @module @framers/agentos/emergent/SkillExporter
|
|
4
|
+
*
|
|
5
|
+
* Converts runtime-forged {@link EmergentTool} instances into the standard
|
|
6
|
+
* SKILL.md + CAPABILITY.yaml format consumed by the agentos-skills-registry
|
|
7
|
+
* and the discovery capability manifest scanner.
|
|
8
|
+
*
|
|
9
|
+
* This enables emergent tools that have proven their worth (agent-tier or
|
|
10
|
+
* shared-tier) to be persisted as first-class skills, discoverable by the
|
|
11
|
+
* capability discovery engine alongside curated human-authored skills.
|
|
12
|
+
*
|
|
13
|
+
* Three export levels:
|
|
14
|
+
* - `exportToolAsSkill()` — pure in-memory string conversion to SKILL.md markdown
|
|
15
|
+
* - `writeSkillFile()` — writes a single SKILL.md to disk
|
|
16
|
+
* - `exportToolAsSkillPack()` — writes both SKILL.md and CAPABILITY.yaml (a full
|
|
17
|
+
* capability directory ready for scanner pickup)
|
|
18
|
+
*/
|
|
19
|
+
import * as fs from 'node:fs/promises';
|
|
20
|
+
import * as path from 'node:path';
|
|
21
|
+
import YAML from 'yaml';
|
|
22
|
+
// ============================================================================
|
|
23
|
+
// FRONTMATTER HELPERS
|
|
24
|
+
// ============================================================================
|
|
25
|
+
/**
|
|
26
|
+
* Derives a human-readable title from a tool's machine-readable name.
|
|
27
|
+
* Replaces underscores and hyphens with spaces, then title-cases each word.
|
|
28
|
+
*
|
|
29
|
+
* @param name - Machine-readable tool name (e.g. "fetch_github_pr_summary").
|
|
30
|
+
* @returns Title-cased display name (e.g. "Fetch Github Pr Summary").
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* titleCase('fetch_github_pr_summary'); // "Fetch Github Pr Summary"
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
function titleCase(name) {
|
|
38
|
+
return name.replace(/[-_]/g, ' ').replace(/\b\w/g, (c) => c.toUpperCase());
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Extracts the list of sub-tool names required by a composable implementation.
|
|
42
|
+
* Sandboxed tools declare their API allowlist instead.
|
|
43
|
+
*
|
|
44
|
+
* @param impl - The tool's implementation specification.
|
|
45
|
+
* @returns Deduplicated array of required tool names.
|
|
46
|
+
*/
|
|
47
|
+
function extractRequiredTools(impl) {
|
|
48
|
+
if (impl.mode === 'compose') {
|
|
49
|
+
// Collect all unique tool names referenced across pipeline steps
|
|
50
|
+
const tools = new Set(impl.steps.map((s) => s.tool));
|
|
51
|
+
return [...tools];
|
|
52
|
+
}
|
|
53
|
+
// Sandbox tools don't depend on named tools — they have an API allowlist
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Extracts tags from the tool's metadata and implementation mode.
|
|
58
|
+
* Always includes 'generated' and 'emergent' to distinguish forged skills
|
|
59
|
+
* from hand-authored ones.
|
|
60
|
+
*
|
|
61
|
+
* @param tool - The emergent tool to derive tags from.
|
|
62
|
+
* @returns Array of tag strings.
|
|
63
|
+
*/
|
|
64
|
+
function deriveTags(tool) {
|
|
65
|
+
const tags = new Set(['generated', 'emergent']);
|
|
66
|
+
tags.add(tool.implementation.mode);
|
|
67
|
+
tags.add(tool.tier);
|
|
68
|
+
return [...tags];
|
|
69
|
+
}
|
|
70
|
+
// ============================================================================
|
|
71
|
+
// PARAMETER TABLE
|
|
72
|
+
// ============================================================================
|
|
73
|
+
/**
|
|
74
|
+
* Builds a markdown table describing the tool's input parameters from its
|
|
75
|
+
* JSON Schema `inputSchema`.
|
|
76
|
+
*
|
|
77
|
+
* Only processes top-level `properties` from an object schema. Nested schemas
|
|
78
|
+
* are represented as their `type` string with a note to see the full schema.
|
|
79
|
+
*
|
|
80
|
+
* @param schema - The tool's inputSchema (JSON Schema object).
|
|
81
|
+
* @returns Markdown table string, or empty string if no properties exist.
|
|
82
|
+
*/
|
|
83
|
+
function buildParameterTable(schema) {
|
|
84
|
+
const properties = schema.properties;
|
|
85
|
+
if (!properties || typeof properties !== 'object') {
|
|
86
|
+
return '';
|
|
87
|
+
}
|
|
88
|
+
const required = new Set(Array.isArray(schema.required) ? schema.required : []);
|
|
89
|
+
const rows = [];
|
|
90
|
+
rows.push('| Parameter | Type | Required | Description |');
|
|
91
|
+
rows.push('|-----------|------|----------|-------------|');
|
|
92
|
+
for (const [name, prop] of Object.entries(properties)) {
|
|
93
|
+
const p = prop;
|
|
94
|
+
const type = String(p.type ?? 'unknown');
|
|
95
|
+
const isRequired = required.has(name) ? 'Yes' : 'No';
|
|
96
|
+
const description = String(p.description ?? '');
|
|
97
|
+
rows.push(`| ${name} | ${type} | ${isRequired} | ${description} |`);
|
|
98
|
+
}
|
|
99
|
+
return rows.join('\n');
|
|
100
|
+
}
|
|
101
|
+
// ============================================================================
|
|
102
|
+
// SKILL.md EXPORT
|
|
103
|
+
// ============================================================================
|
|
104
|
+
/**
|
|
105
|
+
* Converts an {@link EmergentTool} into a SKILL.md markdown string.
|
|
106
|
+
*
|
|
107
|
+
* The generated SKILL.md follows the standard format used by the curated
|
|
108
|
+
* skills in `packages/agentos-skills-registry/registry/curated/`. It includes
|
|
109
|
+
* YAML frontmatter, a purpose section, usage guidance, a parameter table,
|
|
110
|
+
* and implementation notes.
|
|
111
|
+
*
|
|
112
|
+
* Sandbox tools receive a redaction notice instead of exposed source code —
|
|
113
|
+
* the SKILL.md documents the tool's interface without leaking runtime code.
|
|
114
|
+
*
|
|
115
|
+
* @param tool - The emergent tool to export.
|
|
116
|
+
* @returns Complete SKILL.md content as a string.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```ts
|
|
120
|
+
* import { exportToolAsSkill } from '../emergent/SkillExporter.js';
|
|
121
|
+
*
|
|
122
|
+
* const markdown = exportToolAsSkill(myEmergentTool);
|
|
123
|
+
* console.log(markdown);
|
|
124
|
+
* // ---
|
|
125
|
+
* // name: fetch-data
|
|
126
|
+
* // version: '1.0.0'
|
|
127
|
+
* // ...
|
|
128
|
+
* // ---
|
|
129
|
+
* // # Fetch Data
|
|
130
|
+
* // ...
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
export function exportToolAsSkill(tool) {
|
|
134
|
+
const tags = deriveTags(tool);
|
|
135
|
+
const requiredTools = extractRequiredTools(tool.implementation);
|
|
136
|
+
const displayName = titleCase(tool.name);
|
|
137
|
+
// -- YAML frontmatter --
|
|
138
|
+
const frontmatter = {
|
|
139
|
+
name: tool.name,
|
|
140
|
+
version: '1.0.0',
|
|
141
|
+
description: tool.description,
|
|
142
|
+
author: 'emergent-engine',
|
|
143
|
+
namespace: 'emergent',
|
|
144
|
+
category: 'emergent',
|
|
145
|
+
tags,
|
|
146
|
+
requires_secrets: [],
|
|
147
|
+
requires_tools: requiredTools,
|
|
148
|
+
metadata: {
|
|
149
|
+
agentos: {
|
|
150
|
+
tier: tool.tier,
|
|
151
|
+
createdBy: tool.createdBy,
|
|
152
|
+
createdAt: tool.createdAt,
|
|
153
|
+
mode: tool.implementation.mode,
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
// Serialize frontmatter with the yaml library for consistent formatting
|
|
158
|
+
const frontmatterYaml = YAML.stringify(frontmatter).trim();
|
|
159
|
+
// -- Body sections --
|
|
160
|
+
const sections = [];
|
|
161
|
+
sections.push(`# ${displayName}`);
|
|
162
|
+
sections.push('');
|
|
163
|
+
// Purpose
|
|
164
|
+
sections.push('## Purpose');
|
|
165
|
+
sections.push('');
|
|
166
|
+
sections.push(tool.description);
|
|
167
|
+
sections.push('');
|
|
168
|
+
// Usage
|
|
169
|
+
sections.push('## Usage');
|
|
170
|
+
sections.push('');
|
|
171
|
+
if (tool.implementation.mode === 'compose') {
|
|
172
|
+
const steps = tool.implementation.steps;
|
|
173
|
+
sections.push(`This tool is a composable pipeline of ${steps.length} step(s) that chains ` +
|
|
174
|
+
`the following tools in sequence: ${steps.map((s) => `\`${s.tool}\``).join(' -> ')}.`);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
// Sandbox tools — explain without exposing code
|
|
178
|
+
const sandbox = tool.implementation;
|
|
179
|
+
sections.push('This tool executes sandboxed code with the following API allowlist: ' +
|
|
180
|
+
`${sandbox.allowlist.map((a) => `\`${a}\``).join(', ')}.`);
|
|
181
|
+
sections.push('');
|
|
182
|
+
sections.push('> **Note:** Sandbox source code is redacted in the skill export for security. ' +
|
|
183
|
+
'The tool must be re-forged or the original sandbox source must be provided separately.');
|
|
184
|
+
}
|
|
185
|
+
sections.push('');
|
|
186
|
+
// Parameters
|
|
187
|
+
const paramTable = buildParameterTable(tool.inputSchema);
|
|
188
|
+
if (paramTable) {
|
|
189
|
+
sections.push('## Parameters');
|
|
190
|
+
sections.push('');
|
|
191
|
+
sections.push(paramTable);
|
|
192
|
+
sections.push('');
|
|
193
|
+
}
|
|
194
|
+
// Output schema
|
|
195
|
+
if (tool.outputSchema && Object.keys(tool.outputSchema).length > 0) {
|
|
196
|
+
sections.push('## Output');
|
|
197
|
+
sections.push('');
|
|
198
|
+
sections.push('```json');
|
|
199
|
+
sections.push(JSON.stringify(tool.outputSchema, null, 2));
|
|
200
|
+
sections.push('```');
|
|
201
|
+
sections.push('');
|
|
202
|
+
}
|
|
203
|
+
// Implementation details (for composable tools only — sandbox code is redacted)
|
|
204
|
+
if (tool.implementation.mode === 'compose') {
|
|
205
|
+
const steps = tool.implementation.steps;
|
|
206
|
+
sections.push('## Pipeline Steps');
|
|
207
|
+
sections.push('');
|
|
208
|
+
for (let i = 0; i < steps.length; i++) {
|
|
209
|
+
const step = steps[i];
|
|
210
|
+
sections.push(`${i + 1}. **${step.name}** — calls \`${step.tool}\``);
|
|
211
|
+
if (step.condition) {
|
|
212
|
+
sections.push(` - Condition: \`${step.condition}\``);
|
|
213
|
+
}
|
|
214
|
+
const mappingEntries = Object.entries(step.inputMapping);
|
|
215
|
+
if (mappingEntries.length > 0) {
|
|
216
|
+
sections.push(` - Input mapping: ${mappingEntries.map(([k, v]) => `\`${k}\` = \`${String(v)}\``).join(', ')}`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
sections.push('');
|
|
220
|
+
}
|
|
221
|
+
// Provenance
|
|
222
|
+
sections.push('## Provenance');
|
|
223
|
+
sections.push('');
|
|
224
|
+
sections.push(`- **Source:** ${tool.source}`);
|
|
225
|
+
sections.push(`- **Tier:** ${tool.tier}`);
|
|
226
|
+
sections.push(`- **Total uses:** ${tool.usageStats.totalUses}`);
|
|
227
|
+
sections.push(`- **Success rate:** ${tool.usageStats.totalUses > 0
|
|
228
|
+
? ((tool.usageStats.successCount / tool.usageStats.totalUses) * 100).toFixed(1)
|
|
229
|
+
: '0.0'}%`);
|
|
230
|
+
sections.push(`- **Confidence:** ${tool.usageStats.confidenceScore.toFixed(2)}`);
|
|
231
|
+
sections.push('');
|
|
232
|
+
return `---\n${frontmatterYaml}\n---\n\n${sections.join('\n')}`;
|
|
233
|
+
}
|
|
234
|
+
// ============================================================================
|
|
235
|
+
// CAPABILITY.yaml EXPORT
|
|
236
|
+
// ============================================================================
|
|
237
|
+
/**
|
|
238
|
+
* Builds a CAPABILITY.yaml content string for an emergent tool.
|
|
239
|
+
*
|
|
240
|
+
* The format matches the schema expected by the capability manifest scanner:
|
|
241
|
+
* ```yaml
|
|
242
|
+
* id: tool:<name>
|
|
243
|
+
* kind: tool
|
|
244
|
+
* name: <name>
|
|
245
|
+
* displayName: <Title Case Name>
|
|
246
|
+
* description: <description>
|
|
247
|
+
* category: emergent
|
|
248
|
+
* tags: [generated, ...]
|
|
249
|
+
* inputSchema: { ... }
|
|
250
|
+
* outputSchema: { ... }
|
|
251
|
+
* skillContent: ./SKILL.md
|
|
252
|
+
* ```
|
|
253
|
+
*
|
|
254
|
+
* @param tool - The emergent tool to export.
|
|
255
|
+
* @returns CAPABILITY.yaml content string.
|
|
256
|
+
*/
|
|
257
|
+
export function buildCapabilityYaml(tool) {
|
|
258
|
+
const tags = deriveTags(tool);
|
|
259
|
+
const manifest = {
|
|
260
|
+
id: `tool:${tool.name}`,
|
|
261
|
+
kind: 'tool',
|
|
262
|
+
name: tool.name,
|
|
263
|
+
displayName: titleCase(tool.name),
|
|
264
|
+
description: tool.description,
|
|
265
|
+
category: 'emergent',
|
|
266
|
+
tags,
|
|
267
|
+
requiredSecrets: [],
|
|
268
|
+
requiredTools: extractRequiredTools(tool.implementation),
|
|
269
|
+
inputSchema: tool.inputSchema,
|
|
270
|
+
outputSchema: tool.outputSchema,
|
|
271
|
+
// Relative path to the SKILL.md companion file in the same directory
|
|
272
|
+
skillContent: './SKILL.md',
|
|
273
|
+
};
|
|
274
|
+
return YAML.stringify(manifest);
|
|
275
|
+
}
|
|
276
|
+
// ============================================================================
|
|
277
|
+
// FILE I/O
|
|
278
|
+
// ============================================================================
|
|
279
|
+
/**
|
|
280
|
+
* Writes a SKILL.md file to disk for an emergent tool.
|
|
281
|
+
*
|
|
282
|
+
* Creates the output directory if it does not exist. The file is written to
|
|
283
|
+
* `<outputDir>/<tool.name>/SKILL.md`.
|
|
284
|
+
*
|
|
285
|
+
* @param tool - The emergent tool to export.
|
|
286
|
+
* @param outputDir - Base directory where the skill subdirectory will be created.
|
|
287
|
+
* @returns Absolute path to the written SKILL.md file.
|
|
288
|
+
*
|
|
289
|
+
* @throws {Error} If the filesystem write fails (permissions, disk full, etc.).
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* ```ts
|
|
293
|
+
* const skillPath = await writeSkillFile(myTool, '/home/user/.wunderland/capabilities');
|
|
294
|
+
* // => "/home/user/.wunderland/capabilities/my-tool/SKILL.md"
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
297
|
+
export async function writeSkillFile(tool, outputDir) {
|
|
298
|
+
const skillDir = path.join(outputDir, tool.name);
|
|
299
|
+
await fs.mkdir(skillDir, { recursive: true });
|
|
300
|
+
const skillPath = path.join(skillDir, 'SKILL.md');
|
|
301
|
+
const content = exportToolAsSkill(tool);
|
|
302
|
+
await fs.writeFile(skillPath, content, 'utf-8');
|
|
303
|
+
return skillPath;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Exports an emergent tool as a full skill pack (SKILL.md + CAPABILITY.yaml).
|
|
307
|
+
*
|
|
308
|
+
* Creates a directory named after the tool under `outputDir`, containing both
|
|
309
|
+
* files. This directory structure is compatible with the
|
|
310
|
+
* capability manifest scanner and can be placed in any scan directory
|
|
311
|
+
* (`~/.wunderland/capabilities/`, `./.wunderland/capabilities/`, etc.) for
|
|
312
|
+
* automatic discovery.
|
|
313
|
+
*
|
|
314
|
+
* @param tool - The emergent tool to export.
|
|
315
|
+
* @param outputDir - Base directory where the skill subdirectory will be created.
|
|
316
|
+
* @returns Paths to the written SKILL.md and CAPABILITY.yaml files.
|
|
317
|
+
*
|
|
318
|
+
* @throws {Error} If the filesystem writes fail (permissions, disk full, etc.).
|
|
319
|
+
*
|
|
320
|
+
* @example
|
|
321
|
+
* ```ts
|
|
322
|
+
* const { skillPath, capabilityPath } = await exportToolAsSkillPack(
|
|
323
|
+
* myTool,
|
|
324
|
+
* '/home/user/.wunderland/capabilities',
|
|
325
|
+
* );
|
|
326
|
+
* // skillPath => "/home/user/.wunderland/capabilities/my-tool/SKILL.md"
|
|
327
|
+
* // capabilityPath => "/home/user/.wunderland/capabilities/my-tool/CAPABILITY.yaml"
|
|
328
|
+
* ```
|
|
329
|
+
*/
|
|
330
|
+
export async function exportToolAsSkillPack(tool, outputDir) {
|
|
331
|
+
const skillDir = path.join(outputDir, tool.name);
|
|
332
|
+
await fs.mkdir(skillDir, { recursive: true });
|
|
333
|
+
// Write both files in parallel — they are independent
|
|
334
|
+
const skillContent = exportToolAsSkill(tool);
|
|
335
|
+
const capabilityContent = buildCapabilityYaml(tool);
|
|
336
|
+
const skillPath = path.join(skillDir, 'SKILL.md');
|
|
337
|
+
const capabilityPath = path.join(skillDir, 'CAPABILITY.yaml');
|
|
338
|
+
await Promise.all([
|
|
339
|
+
fs.writeFile(skillPath, skillContent, 'utf-8'),
|
|
340
|
+
fs.writeFile(capabilityPath, capabilityContent, 'utf-8'),
|
|
341
|
+
]);
|
|
342
|
+
return { skillPath, capabilityPath };
|
|
343
|
+
}
|
|
344
|
+
//# sourceMappingURL=SkillExporter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillExporter.js","sourceRoot":"","sources":["../../src/emergent/SkillExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,IAAI,MAAM,MAAM,CAAC;AAKxB,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E;;;;;;;;;;;GAWG;AACH,SAAS,SAAS,CAAC,IAAY;IAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;;GAMG;AACH,SAAS,oBAAoB,CAAC,IAAoC;IAChE,IAAI,IAA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B,CAAC,CAAC;IAE9D,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC;QAC9C,EAAE,CAAC,SAAS,CAAC,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;KACzD,CAAC,CAAC;IAEH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;AACvC,CAAC"}
|
package/dist/emergent/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export { EmergentCapabilityEngine } from './EmergentCapabilityEngine.js';
|
|
|
24
24
|
export type { EmergentCapabilityEngineDeps } from './EmergentCapabilityEngine.js';
|
|
25
25
|
export { ForgeToolMetaTool } from './ForgeToolMetaTool.js';
|
|
26
26
|
export type { ForgeToolInput } from './ForgeToolMetaTool.js';
|
|
27
|
+
export { exportToolAsSkill, buildCapabilityYaml, writeSkillFile, exportToolAsSkillPack, } from './SkillExporter.js';
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/emergent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EACV,eAAe,IAAI,8BAA8B,EACjD,UAAU,GACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,oCAAoC,EACpC,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,GACnC,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2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EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,GACtB,MAAM,oBAAoB,CAAC"}
|
package/dist/emergent/index.js
CHANGED
|
@@ -18,4 +18,5 @@ export { EMERGENT_TOOL_PACKAGE_SCHEMA_VERSION, buildEmergentToolPackage, seriali
|
|
|
18
18
|
export { EmergentJudge } from './EmergentJudge.js';
|
|
19
19
|
export { EmergentCapabilityEngine } from './EmergentCapabilityEngine.js';
|
|
20
20
|
export { ForgeToolMetaTool } from './ForgeToolMetaTool.js';
|
|
21
|
+
export { exportToolAsSkill, buildCapabilityYaml, writeSkillFile, exportToolAsSkillPack, } from './SkillExporter.js';
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/emergent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAKjE,OAAO,EACL,oCAAoC,EACpC,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,GACnC,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/emergent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAKjE,OAAO,EACL,oCAAoC,EACpC,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,GACnC,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,GACtB,MAAM,oBAAoB,CAAC"}
|
package/dist/emergent/types.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface ComposableStep {
|
|
|
59
59
|
name: string;
|
|
60
60
|
/**
|
|
61
61
|
* The registered tool name to invoke for this step.
|
|
62
|
-
* Must match the `name` property of an
|
|
62
|
+
* Must match the `name` property of an `ITool` available to the agent.
|
|
63
63
|
* @example "web_search"
|
|
64
64
|
*/
|
|
65
65
|
tool: string;
|
|
@@ -139,7 +139,7 @@ export type ToolImplementation = ComposableToolSpec | SandboxedToolSpec;
|
|
|
139
139
|
*/
|
|
140
140
|
export interface SandboxExecutionRequest {
|
|
141
141
|
/**
|
|
142
|
-
* Source code of the sandboxed module (same format as
|
|
142
|
+
* Source code of the sandboxed module (same format as `SandboxedToolSpec.code`).
|
|
143
143
|
*/
|
|
144
144
|
code: string;
|
|
145
145
|
/**
|
|
@@ -574,13 +574,13 @@ export interface EmergentConfig {
|
|
|
574
574
|
persistSandboxSource: boolean;
|
|
575
575
|
/**
|
|
576
576
|
* Memory limit in megabytes for each sandboxed tool execution.
|
|
577
|
-
* Passed as
|
|
577
|
+
* Passed as `SandboxExecutionRequest.memoryMB`.
|
|
578
578
|
* @default 128
|
|
579
579
|
*/
|
|
580
580
|
sandboxMemoryMB: number;
|
|
581
581
|
/**
|
|
582
582
|
* Wall-clock timeout in milliseconds for each sandboxed tool execution.
|
|
583
|
-
* Passed as
|
|
583
|
+
* Passed as `SandboxExecutionRequest.timeoutMs`.
|
|
584
584
|
* @default 5000
|
|
585
585
|
*/
|
|
586
586
|
sandboxTimeoutMs: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,11 @@ export * from './api/AgentOS.js';
|
|
|
7
7
|
export * from './api/AgentOSOrchestrator';
|
|
8
8
|
export * from './api/types/AgentOSInput';
|
|
9
9
|
export * from './api/types/AgentOSResponse';
|
|
10
|
+
export * from './api/types/AgentOSExternalToolRequest';
|
|
11
|
+
export * from './api/types/AgentOSToolResult';
|
|
10
12
|
export * from './cognitive_substrate/IGMI';
|
|
11
13
|
export * from './cognitive_substrate/GMIManager';
|
|
12
|
-
export type { ITool, ToolExecutionResult, ToolExecutionContext, JSONSchemaObject } from './core/tools/ITool';
|
|
14
|
+
export type { ITool, ToolExecutionResult, ToolExecutionContext, JSONSchemaObject, } from './core/tools/ITool';
|
|
13
15
|
export * from './core/llm/IPromptEngine';
|
|
14
16
|
export * from './config/ToolOrchestratorConfig';
|
|
15
17
|
export * from './core/tools/permissions/IToolPermissionManager';
|
|
@@ -51,6 +53,9 @@ export * from './channels';
|
|
|
51
53
|
export * from './voice';
|
|
52
54
|
export * from './speech';
|
|
53
55
|
export * from './core/images';
|
|
56
|
+
export { VisionPipeline, createVisionPipeline, LLMVisionProvider, PipelineVisionProvider } from './core/vision/index.js';
|
|
57
|
+
export type { VisionPipelineConfig, VisionResult, VisionStrategy, VisionTier, ContentCategory as VisionContentCategory, TierResult as VisionTierResult, TextRegion as VisionTextRegion, DocumentLayout, DocumentPage, LayoutBlock, VisionPreprocessingConfig, } from './core/vision/types.js';
|
|
58
|
+
export type { LLMVisionProviderConfig } from './core/vision/providers/LLMVisionProvider.js';
|
|
54
59
|
export * from './skills';
|
|
55
60
|
export * from './core/language/interfaces';
|
|
56
61
|
export * from './core/language/LanguageService';
|
|
@@ -61,30 +66,50 @@ export * from './core/storage';
|
|
|
61
66
|
export * from './core/usage/UsageLedger';
|
|
62
67
|
export * from './rag';
|
|
63
68
|
export * from './memory';
|
|
69
|
+
export { QueryClassifier, QueryDispatcher, QueryGenerator, QueryRouter, TopicExtractor, KeywordFallback, } from './query-router/index.js';
|
|
70
|
+
export type { QueryTier, ClassificationResult, RetrievedChunk, SourceCitation, RetrievalResult, ConversationMessage, QueryRouterConfig, ClassifyStartEvent, ClassifyCompleteEvent, ClassifyErrorEvent, RetrieveStartEvent, RetrieveVectorEvent, RetrieveGraphEvent, RetrieveRerankEvent, RetrieveCompleteEvent, RetrieveFallbackEvent, ResearchStartEvent, ResearchPhaseEvent, ResearchCompleteEvent, GenerateStartEvent, GenerateCompleteEvent, RouteCompleteEvent, QueryRouterEventUnion, CorpusChunk, TopicEntry, QueryResult as QueryRouterResult, } from './query-router/types.js';
|
|
64
71
|
export * from './orchestration/index.js';
|
|
65
72
|
export * from './core/provenance';
|
|
66
73
|
export * from './core/safety';
|
|
67
74
|
export * from './emergent/index.js';
|
|
68
75
|
export { EXTENSION_SECRET_DEFINITIONS, type ExtensionSecretDefinition, getSecretDefinition, resolveSecretForProvider, } from './config/extensionSecrets.js';
|
|
69
76
|
export { generateText } from './api/generateText.js';
|
|
70
|
-
export type { GenerateTextOptions, GenerateTextResult, Message, ToolCallRecord, TokenUsage } from './api/generateText.js';
|
|
77
|
+
export type { GenerateTextOptions, GenerateTextResult, Message, ToolCallRecord, TokenUsage, } from './api/generateText.js';
|
|
71
78
|
export { streamText } from './api/streamText.js';
|
|
72
79
|
export type { StreamTextResult, StreamPart } from './api/streamText.js';
|
|
73
80
|
export { agent } from './api/agent.js';
|
|
74
81
|
export type { Agent, AgentSession, AgentOptions } from './api/agent.js';
|
|
75
82
|
export { agency } from './api/agency.js';
|
|
83
|
+
export { exportAgentConfig, exportAgentConfigJSON, exportAgentConfigYAML, importAgent, importAgentFromJSON, importAgentFromYAML, validateAgentExport, } from './api/agentExport.js';
|
|
84
|
+
export type { AgentExportConfig } from './api/agentExport.js';
|
|
76
85
|
export { hitl } from './api/hitl.js';
|
|
77
86
|
export type { HitlHandler } from './api/hitl.js';
|
|
87
|
+
export * from './api/processRequestWithExternalTools.js';
|
|
88
|
+
export * from './api/externalToolRegistry.js';
|
|
89
|
+
export * from './api/processRequestWithRegisteredTools.js';
|
|
90
|
+
export * from './api/resumeExternalToolRequestWithRegisteredTools.js';
|
|
78
91
|
export type { AgencyOptions, AgencyStrategy, AgencyConfigError as AgencyConfigErrorType, AgencyCallbacks, AgencyStreamPart, AgencyTraceEvent, AgentCallRecord, ApprovalRequest, ApprovalDecision, ResourceControls, HitlConfig, CompiledStrategy, Agency, } from './api/types.js';
|
|
79
92
|
export { AgencyConfigError } from './api/types.js';
|
|
80
93
|
export { generateImage } from './api/generateImage.js';
|
|
81
94
|
export type { GenerateImageOptions, GenerateImageResult } from './api/generateImage.js';
|
|
82
|
-
export {
|
|
95
|
+
export { editImage } from './api/editImage.js';
|
|
96
|
+
export type { EditImageOptions, EditImageResult } from './api/editImage.js';
|
|
97
|
+
export { upscaleImage } from './api/upscaleImage.js';
|
|
98
|
+
export type { UpscaleImageOptions, UpscaleImageResult } from './api/upscaleImage.js';
|
|
99
|
+
export { variateImage } from './api/variateImage.js';
|
|
100
|
+
export type { VariateImageOptions, VariateImageResult } from './api/variateImage.js';
|
|
101
|
+
export { generateObject, ObjectGenerationError } from './api/generateObject.js';
|
|
102
|
+
export type { GenerateObjectOptions, GenerateObjectResult } from './api/generateObject.js';
|
|
103
|
+
export { streamObject } from './api/streamObject.js';
|
|
104
|
+
export type { StreamObjectOptions, StreamObjectResult, DeepPartial } from './api/streamObject.js';
|
|
105
|
+
export { embedText } from './api/embedText.js';
|
|
106
|
+
export type { EmbedTextOptions, EmbedTextResult } from './api/embedText.js';
|
|
107
|
+
export { parseModelString, resolveProvider, resolveModelOption } from './api/model.js';
|
|
83
108
|
export { PROVIDER_DEFAULTS, autoDetectProvider } from './api/provider-defaults.js';
|
|
84
109
|
export type { ProviderDefaults } from './api/provider-defaults.js';
|
|
85
110
|
export type { TaskType, ModelOption } from './api/model.js';
|
|
86
|
-
export { adaptTools } from './api/toolAdapter.js';
|
|
87
|
-
export type { ToolDefinitionMap } from './api/toolAdapter.js';
|
|
111
|
+
export { adaptTools, adaptToolsToMap, mergeAdaptableTools } from './api/toolAdapter.js';
|
|
112
|
+
export type { AdaptableToolInput, ToolDefinitionMap } from './api/toolAdapter.js';
|
|
88
113
|
export { getDefaultAgentOSUsageLedgerPath, resolveAgentOSUsageLedgerPath, readRecordedAgentOSUsageEvents, recordAgentOSUsage, getRecordedAgentOSUsage, clearRecordedAgentOSUsage, } from './api/usageLedger.js';
|
|
89
114
|
export type { AgentOSUsageLedgerOptions, AgentOSUsageEvent, AgentOSUsageRecordInput, AgentOSUsageAggregate, } from './api/usageLedger.js';
|
|
90
115
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5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