agent-orcha 0.0.4 → 0.0.5
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 +197 -221
- package/dist/lib/agents/agent-executor.d.ts +13 -4
- package/dist/lib/agents/agent-executor.d.ts.map +1 -1
- package/dist/lib/agents/agent-executor.js +307 -73
- package/dist/lib/agents/agent-executor.js.map +1 -1
- package/dist/lib/agents/agent-loader.d.ts +1 -1
- package/dist/lib/agents/agent-loader.d.ts.map +1 -1
- package/dist/lib/agents/agent-loader.js +10 -3
- package/dist/lib/agents/agent-loader.js.map +1 -1
- package/dist/lib/agents/index.d.ts +5 -5
- package/dist/lib/agents/index.js +4 -4
- package/dist/lib/agents/react-loop.d.ts +30 -0
- package/dist/lib/agents/react-loop.d.ts.map +1 -0
- package/dist/lib/agents/react-loop.js +155 -0
- package/dist/lib/agents/react-loop.js.map +1 -0
- package/dist/lib/agents/structured-output-wrapper.d.ts +3 -3
- package/dist/lib/agents/structured-output-wrapper.d.ts.map +1 -1
- package/dist/lib/agents/structured-output-wrapper.js +2 -2
- package/dist/lib/agents/structured-output-wrapper.js.map +1 -1
- package/dist/lib/agents/types.d.ts +132 -8
- package/dist/lib/agents/types.d.ts.map +1 -1
- package/dist/lib/agents/types.js +16 -2
- package/dist/lib/agents/types.js.map +1 -1
- package/dist/lib/functions/function-loader.d.ts +1 -1
- package/dist/lib/functions/function-loader.js +13 -5
- package/dist/lib/functions/function-loader.js.map +1 -1
- package/dist/lib/functions/index.d.ts +2 -2
- package/dist/lib/functions/index.js +1 -1
- package/dist/lib/functions/simple-function-wrapper.d.ts +2 -11
- package/dist/lib/functions/simple-function-wrapper.d.ts.map +1 -1
- package/dist/lib/functions/simple-function-wrapper.js +3 -3
- package/dist/lib/functions/simple-function-wrapper.js.map +1 -1
- package/dist/lib/index.d.ts +29 -17
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +21 -9
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/integrations/collabnook.d.ts +56 -0
- package/dist/lib/integrations/collabnook.d.ts.map +1 -0
- package/dist/lib/integrations/collabnook.js +307 -0
- package/dist/lib/integrations/collabnook.js.map +1 -0
- package/dist/lib/integrations/integration-manager.d.ts +14 -0
- package/dist/lib/integrations/integration-manager.d.ts.map +1 -0
- package/dist/lib/integrations/integration-manager.js +109 -0
- package/dist/lib/integrations/integration-manager.js.map +1 -0
- package/dist/lib/integrations/types.d.ts +49 -0
- package/dist/lib/integrations/types.d.ts.map +1 -0
- package/dist/lib/integrations/types.js +14 -0
- package/dist/lib/integrations/types.js.map +1 -0
- package/dist/lib/knowledge/direct-mapper.d.ts +21 -0
- package/dist/lib/knowledge/direct-mapper.d.ts.map +1 -0
- package/dist/lib/knowledge/direct-mapper.js +134 -0
- package/dist/lib/knowledge/direct-mapper.js.map +1 -0
- package/dist/lib/knowledge/index.d.ts +9 -8
- package/dist/lib/knowledge/index.d.ts.map +1 -1
- package/dist/lib/knowledge/index.js +9 -7
- package/dist/lib/knowledge/index.js.map +1 -1
- package/dist/lib/knowledge/knowledge-store-metadata.d.ts +40 -0
- package/dist/lib/knowledge/knowledge-store-metadata.d.ts.map +1 -0
- package/dist/lib/knowledge/knowledge-store-metadata.js +93 -0
- package/dist/lib/knowledge/knowledge-store-metadata.js.map +1 -0
- package/dist/lib/knowledge/knowledge-store.d.ts +43 -0
- package/dist/lib/knowledge/knowledge-store.d.ts.map +1 -0
- package/dist/lib/knowledge/knowledge-store.js +603 -0
- package/dist/lib/knowledge/knowledge-store.js.map +1 -0
- package/dist/lib/knowledge/loaders/database-loader.d.ts +5 -5
- package/dist/lib/knowledge/loaders/database-loader.d.ts.map +1 -1
- package/dist/lib/knowledge/loaders/database-loader.js +21 -10
- package/dist/lib/knowledge/loaders/database-loader.js.map +1 -1
- package/dist/lib/knowledge/loaders/file-loaders.d.ts +39 -0
- package/dist/lib/knowledge/loaders/file-loaders.d.ts.map +1 -0
- package/dist/lib/knowledge/loaders/file-loaders.js +131 -0
- package/dist/lib/knowledge/loaders/file-loaders.js.map +1 -0
- package/dist/lib/knowledge/loaders/index.d.ts +3 -3
- package/dist/lib/knowledge/loaders/index.d.ts.map +1 -1
- package/dist/lib/knowledge/loaders/index.js +3 -3
- package/dist/lib/knowledge/loaders/index.js.map +1 -1
- package/dist/lib/knowledge/loaders/web-loader.d.ts +2 -2
- package/dist/lib/knowledge/loaders/web-loader.d.ts.map +1 -1
- package/dist/lib/knowledge/loaders/web-loader.js +22 -21
- package/dist/lib/knowledge/loaders/web-loader.js.map +1 -1
- package/dist/lib/knowledge/sqlite-store.d.ts +107 -0
- package/dist/lib/knowledge/sqlite-store.d.ts.map +1 -0
- package/dist/lib/knowledge/sqlite-store.js +327 -0
- package/dist/lib/knowledge/sqlite-store.js.map +1 -0
- package/dist/lib/knowledge/types.d.ts +72 -1432
- package/dist/lib/knowledge/types.d.ts.map +1 -1
- package/dist/lib/knowledge/types.js +36 -57
- package/dist/lib/knowledge/types.js.map +1 -1
- package/dist/lib/knowledge/utils/connection-pool.d.ts +3 -2
- package/dist/lib/knowledge/utils/connection-pool.d.ts.map +1 -1
- package/dist/lib/knowledge/utils/connection-pool.js +20 -10
- package/dist/lib/knowledge/utils/connection-pool.js.map +1 -1
- package/dist/lib/knowledge/utils/index.d.ts +2 -2
- package/dist/lib/knowledge/utils/index.js +2 -2
- package/dist/lib/llm/index.d.ts +5 -5
- package/dist/lib/llm/index.d.ts.map +1 -1
- package/dist/lib/llm/index.js +3 -3
- package/dist/lib/llm/index.js.map +1 -1
- package/dist/lib/llm/llm-call-logger.d.ts +37 -0
- package/dist/lib/llm/llm-call-logger.d.ts.map +1 -0
- package/dist/lib/llm/llm-call-logger.js +105 -0
- package/dist/lib/llm/llm-call-logger.js.map +1 -0
- package/dist/lib/llm/llm-config.d.ts +22 -16
- package/dist/lib/llm/llm-config.d.ts.map +1 -1
- package/dist/lib/llm/llm-config.js +19 -3
- package/dist/lib/llm/llm-config.js.map +1 -1
- package/dist/lib/llm/llm-factory.d.ts +3 -16
- package/dist/lib/llm/llm-factory.d.ts.map +1 -1
- package/dist/lib/llm/llm-factory.js +30 -48
- package/dist/lib/llm/llm-factory.js.map +1 -1
- package/dist/lib/llm/provider-detector.d.ts +1 -1
- package/dist/lib/llm/providers/anthropic-chat-model.d.ts +27 -0
- package/dist/lib/llm/providers/anthropic-chat-model.d.ts.map +1 -0
- package/dist/lib/llm/providers/anthropic-chat-model.js +186 -0
- package/dist/lib/llm/providers/anthropic-chat-model.js.map +1 -0
- package/dist/lib/llm/providers/gemini-chat-model.d.ts +29 -0
- package/dist/lib/llm/providers/gemini-chat-model.d.ts.map +1 -0
- package/dist/lib/llm/providers/gemini-chat-model.js +241 -0
- package/dist/lib/llm/providers/gemini-chat-model.js.map +1 -0
- package/dist/lib/llm/providers/gemini-embeddings.d.ts +14 -0
- package/dist/lib/llm/providers/gemini-embeddings.d.ts.map +1 -0
- package/dist/lib/llm/providers/gemini-embeddings.js +20 -0
- package/dist/lib/llm/providers/gemini-embeddings.js.map +1 -0
- package/dist/lib/llm/providers/openai-chat-model.d.ts +30 -0
- package/dist/lib/llm/providers/openai-chat-model.d.ts.map +1 -0
- package/dist/lib/llm/providers/openai-chat-model.js +196 -0
- package/dist/lib/llm/providers/openai-chat-model.js.map +1 -0
- package/dist/lib/llm/providers/openai-embeddings.d.ts +17 -0
- package/dist/lib/llm/providers/openai-embeddings.d.ts.map +1 -0
- package/dist/lib/llm/providers/openai-embeddings.js +35 -0
- package/dist/lib/llm/providers/openai-embeddings.js.map +1 -0
- package/dist/lib/llm/types.d.ts +2 -2
- package/dist/lib/llm/types.js +1 -1
- package/dist/lib/logger.d.ts +7 -0
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +43 -4
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/mcp/index.d.ts +3 -3
- package/dist/lib/mcp/index.js +2 -2
- package/dist/lib/mcp/mcp-client.d.ts +3 -2
- package/dist/lib/mcp/mcp-client.d.ts.map +1 -1
- package/dist/lib/mcp/mcp-client.js +5 -2
- package/dist/lib/mcp/mcp-client.js.map +1 -1
- package/dist/lib/mcp/types.d.ts +33 -23
- package/dist/lib/mcp/types.d.ts.map +1 -1
- package/dist/lib/mcp/types.js +11 -2
- package/dist/lib/mcp/types.js.map +1 -1
- package/dist/lib/memory/conversation-store.d.ts +2 -2
- package/dist/lib/memory/conversation-store.d.ts.map +1 -1
- package/dist/lib/memory/conversation-store.js +1 -1
- package/dist/lib/memory/index.d.ts +3 -2
- package/dist/lib/memory/index.d.ts.map +1 -1
- package/dist/lib/memory/index.js +3 -2
- package/dist/lib/memory/index.js.map +1 -1
- package/dist/lib/memory/memory-manager.d.ts +9 -0
- package/dist/lib/memory/memory-manager.d.ts.map +1 -0
- package/dist/lib/memory/memory-manager.js +34 -0
- package/dist/lib/memory/memory-manager.js.map +1 -0
- package/dist/lib/memory/types.d.ts +1 -1
- package/dist/lib/memory/types.d.ts.map +1 -1
- package/dist/lib/orchestrator.d.ts +78 -18
- package/dist/lib/orchestrator.d.ts.map +1 -1
- package/dist/lib/orchestrator.js +247 -55
- package/dist/lib/orchestrator.js.map +1 -1
- package/dist/lib/sandbox/html-to-markdown.d.ts +2 -0
- package/dist/lib/sandbox/html-to-markdown.d.ts.map +1 -0
- package/dist/lib/sandbox/html-to-markdown.js +64 -0
- package/dist/lib/sandbox/html-to-markdown.js.map +1 -0
- package/dist/lib/sandbox/index.d.ts +7 -0
- package/dist/lib/sandbox/index.d.ts.map +1 -0
- package/dist/lib/sandbox/index.js +6 -0
- package/dist/lib/sandbox/index.js.map +1 -0
- package/dist/lib/sandbox/sandbox-exec.d.ts +5 -0
- package/dist/lib/sandbox/sandbox-exec.d.ts.map +1 -0
- package/dist/lib/sandbox/sandbox-exec.js +35 -0
- package/dist/lib/sandbox/sandbox-exec.js.map +1 -0
- package/dist/lib/sandbox/sandbox-web.d.ts +5 -0
- package/dist/lib/sandbox/sandbox-web.d.ts.map +1 -0
- package/dist/lib/sandbox/sandbox-web.js +211 -0
- package/dist/lib/sandbox/sandbox-web.js.map +1 -0
- package/dist/lib/sandbox/types.d.ts +21 -0
- package/dist/lib/sandbox/types.d.ts.map +1 -0
- package/dist/lib/sandbox/types.js +7 -0
- package/dist/lib/sandbox/types.js.map +1 -0
- package/dist/lib/sandbox/vm-executor.d.ts +12 -0
- package/dist/lib/sandbox/vm-executor.d.ts.map +1 -0
- package/dist/lib/sandbox/vm-executor.js +101 -0
- package/dist/lib/sandbox/vm-executor.js.map +1 -0
- package/dist/lib/skills/index.d.ts +4 -0
- package/dist/lib/skills/index.d.ts.map +1 -0
- package/dist/lib/skills/index.js +3 -0
- package/dist/lib/skills/index.js.map +1 -0
- package/dist/lib/skills/skill-loader.d.ts +19 -0
- package/dist/lib/skills/skill-loader.d.ts.map +1 -0
- package/dist/lib/skills/skill-loader.js +105 -0
- package/dist/lib/skills/skill-loader.js.map +1 -0
- package/dist/lib/skills/types.d.ts +17 -0
- package/dist/lib/skills/types.d.ts.map +1 -0
- package/dist/lib/skills/types.js +6 -0
- package/dist/lib/skills/types.js.map +1 -0
- package/dist/lib/tasks/index.d.ts +4 -0
- package/dist/lib/tasks/index.d.ts.map +1 -0
- package/dist/lib/tasks/index.js +4 -0
- package/dist/lib/tasks/index.js.map +1 -0
- package/dist/lib/tasks/task-manager.d.ts +25 -0
- package/dist/lib/tasks/task-manager.d.ts.map +1 -0
- package/dist/lib/tasks/task-manager.js +189 -0
- package/dist/lib/tasks/task-manager.js.map +1 -0
- package/dist/lib/tasks/task-store.d.ts +20 -0
- package/dist/lib/tasks/task-store.d.ts.map +1 -0
- package/dist/lib/tasks/task-store.js +102 -0
- package/dist/lib/tasks/task-store.js.map +1 -0
- package/dist/lib/tasks/types.d.ts +38 -0
- package/dist/lib/tasks/types.d.ts.map +1 -0
- package/dist/lib/tasks/types.js +2 -0
- package/dist/lib/tasks/types.js.map +1 -0
- package/dist/lib/templates/resource-templates.d.ts +6 -0
- package/dist/lib/templates/resource-templates.d.ts.map +1 -0
- package/dist/lib/templates/resource-templates.js +146 -0
- package/dist/lib/templates/resource-templates.js.map +1 -0
- package/dist/lib/tools/agent-tool-wrapper.d.ts +5 -5
- package/dist/lib/tools/agent-tool-wrapper.js +3 -3
- package/dist/lib/tools/agent-tool-wrapper.js.map +1 -1
- package/dist/lib/tools/built-in/ask-user.tool.d.ts +1 -1
- package/dist/lib/tools/built-in/ask-user.tool.d.ts.map +1 -1
- package/dist/lib/tools/built-in/ask-user.tool.js +2 -2
- package/dist/lib/tools/built-in/ask-user.tool.js.map +1 -1
- package/dist/lib/tools/built-in/index.d.ts +9 -2
- package/dist/lib/tools/built-in/index.d.ts.map +1 -1
- package/dist/lib/tools/built-in/index.js +9 -2
- package/dist/lib/tools/built-in/index.js.map +1 -1
- package/dist/lib/tools/built-in/knowledge-entity-lookup.tool.d.ts +9 -0
- package/dist/lib/tools/built-in/knowledge-entity-lookup.tool.d.ts.map +1 -0
- package/dist/lib/tools/built-in/knowledge-entity-lookup.tool.js +102 -0
- package/dist/lib/tools/built-in/knowledge-entity-lookup.tool.js.map +1 -0
- package/dist/lib/tools/built-in/knowledge-graph-schema.tool.d.ts +9 -0
- package/dist/lib/tools/built-in/knowledge-graph-schema.tool.d.ts.map +1 -0
- package/dist/lib/tools/built-in/knowledge-graph-schema.tool.js +96 -0
- package/dist/lib/tools/built-in/knowledge-graph-schema.tool.js.map +1 -0
- package/dist/lib/tools/built-in/knowledge-search.tool.d.ts +2 -2
- package/dist/lib/tools/built-in/knowledge-search.tool.d.ts.map +1 -1
- package/dist/lib/tools/built-in/knowledge-search.tool.js +1 -1
- package/dist/lib/tools/built-in/knowledge-search.tool.js.map +1 -1
- package/dist/lib/tools/built-in/knowledge-sql.tool.d.ts +7 -0
- package/dist/lib/tools/built-in/knowledge-sql.tool.d.ts.map +1 -0
- package/dist/lib/tools/built-in/knowledge-sql.tool.js +127 -0
- package/dist/lib/tools/built-in/knowledge-sql.tool.js.map +1 -0
- package/dist/lib/tools/built-in/knowledge-tools-factory.d.ts +17 -0
- package/dist/lib/tools/built-in/knowledge-tools-factory.d.ts.map +1 -0
- package/dist/lib/tools/built-in/knowledge-tools-factory.js +54 -0
- package/dist/lib/tools/built-in/knowledge-tools-factory.js.map +1 -0
- package/dist/lib/tools/built-in/knowledge-traverse.tool.d.ts +9 -0
- package/dist/lib/tools/built-in/knowledge-traverse.tool.d.ts.map +1 -0
- package/dist/lib/tools/built-in/knowledge-traverse.tool.js +91 -0
- package/dist/lib/tools/built-in/knowledge-traverse.tool.js.map +1 -0
- package/dist/lib/tools/built-in/memory-save.tool.d.ts +4 -0
- package/dist/lib/tools/built-in/memory-save.tool.d.ts.map +1 -0
- package/dist/lib/tools/built-in/memory-save.tool.js +21 -0
- package/dist/lib/tools/built-in/memory-save.tool.js.map +1 -0
- package/dist/lib/tools/built-in/query-validators.d.ts +18 -0
- package/dist/lib/tools/built-in/query-validators.d.ts.map +1 -0
- package/dist/lib/tools/built-in/query-validators.js +87 -0
- package/dist/lib/tools/built-in/query-validators.js.map +1 -0
- package/dist/lib/tools/index.d.ts +4 -4
- package/dist/lib/tools/index.js +4 -4
- package/dist/lib/tools/tool-discovery.d.ts +11 -33
- package/dist/lib/tools/tool-discovery.d.ts.map +1 -1
- package/dist/lib/tools/tool-discovery.js +16 -43
- package/dist/lib/tools/tool-discovery.js.map +1 -1
- package/dist/lib/tools/tool-registry.d.ts +10 -18
- package/dist/lib/tools/tool-registry.d.ts.map +1 -1
- package/dist/lib/tools/tool-registry.js +37 -23
- package/dist/lib/tools/tool-registry.js.map +1 -1
- package/dist/lib/tools/workspace/workspace-tools.d.ts +60 -0
- package/dist/lib/tools/workspace/workspace-tools.d.ts.map +1 -0
- package/dist/lib/tools/workspace/workspace-tools.js +140 -0
- package/dist/lib/tools/workspace/workspace-tools.js.map +1 -0
- package/dist/lib/triggers/cron-trigger.d.ts +12 -0
- package/dist/lib/triggers/cron-trigger.d.ts.map +1 -0
- package/dist/lib/triggers/cron-trigger.js +45 -0
- package/dist/lib/triggers/cron-trigger.js.map +1 -0
- package/dist/lib/triggers/index.d.ts +6 -0
- package/dist/lib/triggers/index.d.ts.map +1 -0
- package/dist/lib/triggers/index.js +5 -0
- package/dist/lib/triggers/index.js.map +1 -0
- package/dist/lib/triggers/trigger-manager.d.ts +11 -0
- package/dist/lib/triggers/trigger-manager.d.ts.map +1 -0
- package/dist/lib/triggers/trigger-manager.js +51 -0
- package/dist/lib/triggers/trigger-manager.js.map +1 -0
- package/dist/lib/triggers/types.d.ts +57 -0
- package/dist/lib/triggers/types.d.ts.map +1 -0
- package/dist/lib/triggers/types.js +16 -0
- package/dist/lib/triggers/types.js.map +1 -0
- package/dist/lib/triggers/webhook-trigger.d.ts +12 -0
- package/dist/lib/triggers/webhook-trigger.d.ts.map +1 -0
- package/dist/lib/triggers/webhook-trigger.js +34 -0
- package/dist/lib/triggers/webhook-trigger.js.map +1 -0
- package/dist/lib/types/llm-types.d.ts +54 -0
- package/dist/lib/types/llm-types.d.ts.map +1 -0
- package/dist/lib/types/llm-types.js +22 -0
- package/dist/lib/types/llm-types.js.map +1 -0
- package/dist/lib/types/text-splitters.d.ts +27 -0
- package/dist/lib/types/text-splitters.d.ts.map +1 -0
- package/dist/lib/types/text-splitters.js +114 -0
- package/dist/lib/types/text-splitters.js.map +1 -0
- package/dist/lib/types/tool-factory.d.ts +9 -0
- package/dist/lib/types/tool-factory.d.ts.map +1 -0
- package/dist/lib/types/tool-factory.js +12 -0
- package/dist/lib/types/tool-factory.js.map +1 -0
- package/dist/lib/utils/file-utils.d.ts +11 -0
- package/dist/lib/utils/file-utils.d.ts.map +1 -0
- package/dist/lib/utils/file-utils.js +86 -0
- package/dist/lib/utils/file-utils.js.map +1 -0
- package/dist/lib/workflows/index.d.ts +6 -6
- package/dist/lib/workflows/index.d.ts.map +1 -1
- package/dist/lib/workflows/index.js +5 -5
- package/dist/lib/workflows/index.js.map +1 -1
- package/dist/lib/workflows/interrupt-manager.d.ts +1 -1
- package/dist/lib/workflows/interrupt-manager.js +1 -1
- package/dist/lib/workflows/react-workflow-executor.d.ts +26 -0
- package/dist/lib/workflows/react-workflow-executor.d.ts.map +1 -0
- package/dist/lib/workflows/react-workflow-executor.js +333 -0
- package/dist/lib/workflows/react-workflow-executor.js.map +1 -0
- package/dist/lib/workflows/types.d.ts +96 -97
- package/dist/lib/workflows/types.d.ts.map +1 -1
- package/dist/lib/workflows/types.js +5 -5
- package/dist/lib/workflows/types.js.map +1 -1
- package/dist/lib/workflows/workflow-executor.d.ts +3 -3
- package/dist/lib/workflows/workflow-executor.js +2 -2
- package/dist/lib/workflows/workflow-executor.js.map +1 -1
- package/dist/lib/workflows/workflow-loader.d.ts +1 -1
- package/dist/lib/workflows/workflow-loader.d.ts.map +1 -1
- package/dist/lib/workflows/workflow-loader.js +10 -3
- package/dist/lib/workflows/workflow-loader.js.map +1 -1
- package/dist/public/index.html +32 -0
- package/dist/public/src/components/AgentsView.js +298 -44
- package/dist/public/src/components/AppRoot.js +124 -4
- package/dist/public/src/components/GraphView.js +336 -0
- package/dist/public/src/components/IdeView.js +462 -7
- package/dist/public/src/components/KnowledgeView.js +443 -66
- package/dist/public/src/components/MonitorView.js +388 -0
- package/dist/public/src/components/NavBar.js +3 -0
- package/dist/public/src/components/SkillsView.js +137 -0
- package/dist/public/src/components/WorkflowsView.js +287 -114
- package/dist/public/src/services/ApiService.js +165 -25
- package/dist/public/src/store.js +3 -2
- package/dist/public/src/utils/markdown.js +1 -0
- package/dist/src/cli/commands/init.js +2 -2
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/start.d.ts +0 -1
- package/dist/src/cli/commands/start.d.ts.map +1 -1
- package/dist/src/cli/commands/start.js +23 -14
- package/dist/src/cli/commands/start.js.map +1 -1
- package/dist/src/cli/index.js +3 -3
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +23 -9
- package/dist/src/index.js.map +1 -1
- package/dist/src/middleware/auth.d.ts +3 -0
- package/dist/src/middleware/auth.d.ts.map +1 -0
- package/dist/src/middleware/auth.js +107 -0
- package/dist/src/middleware/auth.js.map +1 -0
- package/dist/src/routes/agents.route.d.ts.map +1 -1
- package/dist/src/routes/agents.route.js +31 -2
- package/dist/src/routes/agents.route.js.map +1 -1
- package/dist/src/routes/files.route.d.ts.map +1 -1
- package/dist/src/routes/files.route.js +128 -87
- package/dist/src/routes/files.route.js.map +1 -1
- package/dist/src/routes/functions.route.js +1 -1
- package/dist/src/routes/graph.route.d.ts +3 -0
- package/dist/src/routes/graph.route.d.ts.map +1 -0
- package/dist/src/routes/graph.route.js +173 -0
- package/dist/src/routes/graph.route.js.map +1 -0
- package/dist/src/routes/knowledge.route.d.ts.map +1 -1
- package/dist/src/routes/knowledge.route.js +172 -69
- package/dist/src/routes/knowledge.route.js.map +1 -1
- package/dist/src/routes/llm.route.d.ts.map +1 -1
- package/dist/src/routes/llm.route.js +48 -7
- package/dist/src/routes/llm.route.js.map +1 -1
- package/dist/src/routes/mcp.route.js +1 -1
- package/dist/src/routes/skills.route.d.ts +3 -0
- package/dist/src/routes/skills.route.d.ts.map +1 -0
- package/dist/src/routes/skills.route.js +23 -0
- package/dist/src/routes/skills.route.js.map +1 -0
- package/dist/src/routes/tasks.route.d.ts +3 -0
- package/dist/src/routes/tasks.route.d.ts.map +1 -0
- package/dist/src/routes/tasks.route.js +135 -0
- package/dist/src/routes/tasks.route.js.map +1 -0
- package/dist/src/routes/workflows.route.d.ts.map +1 -1
- package/dist/src/routes/workflows.route.js +9 -1
- package/dist/src/routes/workflows.route.js.map +1 -1
- package/dist/src/server.d.ts +1 -1
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +21 -8
- package/dist/src/server.js.map +1 -1
- package/dist/templates/.env.example +4 -19
- package/dist/templates/README.md +18 -10
- package/dist/templates/agents/architect.agent.yaml +49 -0
- package/dist/templates/agents/chatbot.agent.yaml +58 -0
- package/dist/templates/agents/knowledge-broker.agent.yaml +39 -0
- package/dist/templates/agents/sandbox.agent.yaml +56 -0
- package/dist/templates/knowledge/example.knowledge.yaml +0 -3
- package/dist/templates/knowledge/org-chart/personnel.csv +21 -0
- package/dist/templates/knowledge/org-chart.knowledge.yaml +49 -0
- package/dist/templates/knowledge/pet-store/pet-store.db +0 -0
- package/dist/templates/knowledge/pet-store.knowledge.yaml +78 -0
- package/dist/templates/knowledge/web-docs.knowledge.yaml +20 -0
- package/dist/templates/llm.json +2 -2
- package/dist/templates/mcp.json +3 -0
- package/dist/templates/skills/orcha-builder/SKILL.md +339 -0
- package/dist/templates/skills/sandbox/SKILL.md +63 -0
- package/dist/templates/workflows/example.workflow.yaml +25 -30
- package/dist/templates/workflows/react-example.workflow.yaml +53 -0
- package/package.json +17 -20
- package/dist/lib/knowledge/graph-rag/community-detector.d.ts +0 -16
- package/dist/lib/knowledge/graph-rag/community-detector.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/community-detector.js +0 -81
- package/dist/lib/knowledge/graph-rag/community-detector.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/community-summarizer.d.ts +0 -17
- package/dist/lib/knowledge/graph-rag/community-summarizer.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/community-summarizer.js +0 -87
- package/dist/lib/knowledge/graph-rag/community-summarizer.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/entity-extractor.d.ts +0 -36
- package/dist/lib/knowledge/graph-rag/entity-extractor.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/entity-extractor.js +0 -192
- package/dist/lib/knowledge/graph-rag/entity-extractor.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/extraction-cache.d.ts +0 -30
- package/dist/lib/knowledge/graph-rag/extraction-cache.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/extraction-cache.js +0 -88
- package/dist/lib/knowledge/graph-rag/extraction-cache.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/global-search.d.ts +0 -19
- package/dist/lib/knowledge/graph-rag/global-search.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/global-search.js +0 -96
- package/dist/lib/knowledge/graph-rag/global-search.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/graph-rag-factory.d.ts +0 -24
- package/dist/lib/knowledge/graph-rag/graph-rag-factory.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/graph-rag-factory.js +0 -239
- package/dist/lib/knowledge/graph-rag/graph-rag-factory.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/index.d.ts +0 -14
- package/dist/lib/knowledge/graph-rag/index.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/index.js +0 -12
- package/dist/lib/knowledge/graph-rag/index.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/local-search.d.ts +0 -20
- package/dist/lib/knowledge/graph-rag/local-search.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/local-search.js +0 -110
- package/dist/lib/knowledge/graph-rag/local-search.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/memory-graph-store.d.ts +0 -31
- package/dist/lib/knowledge/graph-rag/memory-graph-store.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/memory-graph-store.js +0 -165
- package/dist/lib/knowledge/graph-rag/memory-graph-store.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/neo4j-graph-store.d.ts +0 -38
- package/dist/lib/knowledge/graph-rag/neo4j-graph-store.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/neo4j-graph-store.js +0 -190
- package/dist/lib/knowledge/graph-rag/neo4j-graph-store.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/search-mode-detector.d.ts +0 -11
- package/dist/lib/knowledge/graph-rag/search-mode-detector.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/search-mode-detector.js +0 -50
- package/dist/lib/knowledge/graph-rag/search-mode-detector.js.map +0 -1
- package/dist/lib/knowledge/graph-rag/types.d.ts +0 -368
- package/dist/lib/knowledge/graph-rag/types.d.ts.map +0 -1
- package/dist/lib/knowledge/graph-rag/types.js +0 -48
- package/dist/lib/knowledge/graph-rag/types.js.map +0 -1
- package/dist/lib/knowledge/knowledge-store-factory.d.ts +0 -16
- package/dist/lib/knowledge/knowledge-store-factory.d.ts.map +0 -1
- package/dist/lib/knowledge/knowledge-store-factory.js +0 -376
- package/dist/lib/knowledge/knowledge-store-factory.js.map +0 -1
- package/dist/lib/knowledge/knowledge-store-manager.d.ts +0 -18
- package/dist/lib/knowledge/knowledge-store-manager.d.ts.map +0 -1
- package/dist/lib/knowledge/knowledge-store-manager.js +0 -98
- package/dist/lib/knowledge/knowledge-store-manager.js.map +0 -1
- package/dist/lib/knowledge/loaders/s3-loader.d.ts +0 -17
- package/dist/lib/knowledge/loaders/s3-loader.d.ts.map +0 -1
- package/dist/lib/knowledge/loaders/s3-loader.js +0 -185
- package/dist/lib/knowledge/loaders/s3-loader.js.map +0 -1
- package/dist/lib/workflows/langgraph-executor.d.ts +0 -51
- package/dist/lib/workflows/langgraph-executor.d.ts.map +0 -1
- package/dist/lib/workflows/langgraph-executor.js +0 -297
- package/dist/lib/workflows/langgraph-executor.js.map +0 -1
- package/dist/templates/agents/call-center-analyst-simple.agent.yaml +0 -36
- package/dist/templates/agents/math.agent.yaml +0 -28
- package/dist/templates/agents/sentiment-structured.agent.yaml +0 -42
- package/dist/templates/llm.md +0 -1195
- package/dist/templates/workflows/langgraph-example.workflow.yaml +0 -84
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: sandbox
|
|
2
|
+
description: A coding assistant that can execute JavaScript, fetch web pages, and search the web
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
|
|
5
|
+
llm:
|
|
6
|
+
name: default
|
|
7
|
+
temperature: 0.3
|
|
8
|
+
|
|
9
|
+
prompt:
|
|
10
|
+
system: |
|
|
11
|
+
You are a hands-on coding assistant with access to a JavaScript sandbox and web tools.
|
|
12
|
+
|
|
13
|
+
Capabilities:
|
|
14
|
+
1. **Code execution** — Run JavaScript in an isolated sandbox using sandbox_exec.
|
|
15
|
+
Use console.log() for output and return values for results.
|
|
16
|
+
The sandbox supports async/await, standard JS globals (JSON, Math, Date, Buffer, URL, etc.),
|
|
17
|
+
and persists state across calls within a session.
|
|
18
|
+
|
|
19
|
+
2. **Web fetching** — Fetch and read web pages or API endpoints using sandbox_web_fetch.
|
|
20
|
+
HTML pages are automatically converted to clean markdown.
|
|
21
|
+
Use raw=true for JSON APIs or non-HTML content.
|
|
22
|
+
|
|
23
|
+
3. **Web search** — Search the web using sandbox_web_search to find information,
|
|
24
|
+
documentation, or answers to questions.
|
|
25
|
+
|
|
26
|
+
Workflow:
|
|
27
|
+
- When asked to solve a problem, write and execute code to verify your solution
|
|
28
|
+
- When asked about external data, search the web or fetch specific URLs
|
|
29
|
+
- Combine tools: search for information, fetch relevant pages, then process data with code
|
|
30
|
+
- Always show your work — share code and results with the user
|
|
31
|
+
|
|
32
|
+
Rules:
|
|
33
|
+
- The sandbox does NOT have fetch or require — use sandbox_web_fetch for HTTP requests
|
|
34
|
+
- Check the error field in execution results to catch failures
|
|
35
|
+
- For multi-step computations, use the persistent sandbox state to build up results
|
|
36
|
+
inputVariables:
|
|
37
|
+
- query
|
|
38
|
+
|
|
39
|
+
tools:
|
|
40
|
+
- sandbox:exec
|
|
41
|
+
- sandbox:web_fetch
|
|
42
|
+
- sandbox:web_search
|
|
43
|
+
|
|
44
|
+
skills:
|
|
45
|
+
- sandbox
|
|
46
|
+
|
|
47
|
+
output:
|
|
48
|
+
format: text
|
|
49
|
+
|
|
50
|
+
metadata:
|
|
51
|
+
category: utility
|
|
52
|
+
tags:
|
|
53
|
+
- sandbox
|
|
54
|
+
- coding
|
|
55
|
+
- web
|
|
56
|
+
- example
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
employee_id,employee_name,title,department_id,department_name,manager_id,manager_name,location,hire_date,status,review_period,rating,strengths,areas_for_growth,summary
|
|
2
|
+
E001,Sarah Chen,Chief Executive Officer,D01,Executive,,,,2018-03-15,active,2025-H1,5,Visionary leadership and strategic planning,Delegation to new VPs,Exceptional year driving company growth from 50 to 120 employees. Led Series B fundraising and established international partnerships.
|
|
3
|
+
E002,James Rodriguez,VP of Engineering,D02,Engineering,E001,Sarah Chen,San Francisco,2019-01-10,active,2025-H1,5,Technical architecture and team scaling,"Cross-functional communication, documentation",Built engineering org from 8 to 35 engineers. Architected migration to microservices reducing latency by 40%.
|
|
4
|
+
E003,Priya Patel,VP of Product,D03,Product,E001,Sarah Chen,San Francisco,2019-06-01,active,2025-H1,4,Customer empathy and roadmap prioritization,Data-driven decision making,Successfully launched 3 major product lines. Needs to leverage analytics more in feature prioritization.
|
|
5
|
+
E004,Marcus Thompson,VP of Sales,D04,Sales,E001,Sarah Chen,New York,2020-02-01,active,2025-H1,4,Relationship building and enterprise deals,Pipeline forecasting accuracy,Exceeded revenue targets by 22%. Enterprise segment grew 45% YoY. Forecasting still needs improvement.
|
|
6
|
+
E005,Lisa Wang,VP of People,D05,People & Culture,E001,Sarah Chen,San Francisco,2020-09-01,active,2025-H1,4,Culture building and talent acquisition,Retention strategy for senior engineers,Reduced time-to-hire by 30%. Employee satisfaction scores at 4.2/5. Attrition in senior engineering needs attention.
|
|
7
|
+
E006,David Kim,Senior Staff Engineer,D02,Engineering,E002,James Rodriguez,San Francisco,2019-03-20,active,2025-H1,5,System design and mentoring junior engineers,Public speaking and conference presence,Led redesign of payment processing system handling $2M daily transactions. Mentored 6 engineers to promotion.
|
|
8
|
+
E007,Anna Kowalski,Staff Engineer,D02,Engineering,E002,James Rodriguez,Remote,2020-01-15,active,2025-H1,4,Backend performance optimization,Frontend skills and full-stack contribution,Optimized database queries reducing P99 latency from 800ms to 120ms. Should broaden full-stack capabilities.
|
|
9
|
+
E008,Carlos Mendez,Senior Engineer,D02,Engineering,E006,David Kim,San Francisco,2021-04-01,active,2025-H1,4,API design and testing practices,Ownership of larger projects independently,Designed REST API v3 adopted by 200+ integrators. Ready for staff-level scope with more independent ownership.
|
|
10
|
+
E009,Emily Foster,Senior Engineer,D02,Engineering,E006,David Kim,Remote,2021-07-15,active,2025-H1,3,Code quality and thorough reviews,Delivery speed and prioritization,Excellent code quality but missed 2 sprint deadlines. Needs to balance perfectionism with delivery velocity.
|
|
11
|
+
E010,Raj Gupta,Engineer,D02,Engineering,E007,Anna Kowalski,San Francisco,2022-06-01,active,2025-H1,4,Quick learner with strong algorithms background,Production debugging and operational skills,Shipped 3 features in first year. Strong CS fundamentals. Needs more exposure to production operations and on-call.
|
|
12
|
+
E011,Sophie Martin,Senior Product Manager,D03,Product,E003,Priya Patel,San Francisco,2020-03-01,active,2025-H1,4,User research and feature specification,Stakeholder management across engineering teams,Led mobile app redesign increasing DAU by 35%. Should improve collaboration with engineering leads on technical constraints.
|
|
13
|
+
E012,Tom Bradley,Product Manager,D03,Product,E003,Priya Patel,Remote,2021-11-01,active,2025-H1,3,Competitive analysis and market research,Defining measurable success metrics for features,Good market intuition but feature specs lack clear KPIs. Needs to define measurable outcomes before development starts.
|
|
14
|
+
E013,Rachel Green,Enterprise Account Executive,D04,Sales,E004,Marcus Thompson,New York,2020-08-01,active,2025-H1,5,Closing complex enterprise deals,Mentoring junior sales reps,Closed 3 deals over $500K including the Globex contract. Top performer in the sales organization.
|
|
15
|
+
E014,Michael Scott,Account Executive,D04,Sales,E004,Marcus Thompson,New York,2021-03-15,active,2025-H1,3,Enthusiasm and client rapport,Following structured sales methodology and CRM discipline,Strong relationship builder but pipeline management is inconsistent. CRM data entry needs significant improvement.
|
|
16
|
+
E015,Nina Petrov,Sales Development Rep,D04,Sales,E013,Rachel Green,New York,2022-09-01,active,2025-H1,4,Cold outreach and lead qualification,Transitioning from SDR to AE conversations,Generated 45 qualified opportunities in H1. Shows strong AE potential and is ready for promotion consideration.
|
|
17
|
+
E016,Alex Rivera,Senior Designer,D03,Product,E003,Priya Patel,San Francisco,2020-05-15,active,2025-H1,4,UI/UX design and design system maintenance,User research methodology and testing,Redesigned the component library saving 200+ engineering hours. Should deepen skills in user testing and research.
|
|
18
|
+
E017,Jordan Lee,DevOps Engineer,D02,Engineering,E002,James Rodriguez,Remote,2021-01-10,active,2025-H1,4,CI/CD pipelines and infrastructure automation,Security best practices and compliance,Reduced deployment time from 45min to 8min. Built monitoring dashboards adopted by all teams. Should pursue security certifications.
|
|
19
|
+
E018,Maria Santos,People Operations Manager,D05,People & Culture,E005,Lisa Wang,San Francisco,2021-06-01,active,2025-H1,4,Process improvement and employee onboarding,Conflict resolution and difficult conversations,Revamped onboarding reducing ramp-up time by 25%. Needs coaching on handling performance improvement plans.
|
|
20
|
+
E019,Chris Evans,Junior Engineer,D02,Engineering,E007,Anna Kowalski,San Francisco,2023-01-15,active,2025-H1,3,Eagerness to learn and strong collaboration,Code architecture and design patterns,Good progress for first year. Completes assigned tasks well. Needs to develop ability to break down larger problems independently.
|
|
21
|
+
E020,Diana Torres,Marketing Manager,D04,Sales,E004,Marcus Thompson,Remote,2021-08-01,active,2025-H1,4,Content strategy and demand generation,Marketing analytics and attribution modeling,Grew inbound leads by 60% through content marketing. Should develop stronger analytics capabilities for ROI measurement.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: org-chart
|
|
2
|
+
description: Company org chart with personnel directory and performance reviews
|
|
3
|
+
|
|
4
|
+
source:
|
|
5
|
+
type: file
|
|
6
|
+
path: knowledge/org-chart/personnel.csv
|
|
7
|
+
|
|
8
|
+
loader:
|
|
9
|
+
type: csv
|
|
10
|
+
|
|
11
|
+
splitter:
|
|
12
|
+
type: character
|
|
13
|
+
chunkSize: 800
|
|
14
|
+
chunkOverlap: 0
|
|
15
|
+
|
|
16
|
+
embedding: default
|
|
17
|
+
|
|
18
|
+
search:
|
|
19
|
+
defaultK: 5
|
|
20
|
+
|
|
21
|
+
graph:
|
|
22
|
+
directMapping:
|
|
23
|
+
entities:
|
|
24
|
+
- type: Department
|
|
25
|
+
idColumn: department_id
|
|
26
|
+
nameColumn: department_name
|
|
27
|
+
properties: []
|
|
28
|
+
- type: Employee
|
|
29
|
+
idColumn: employee_id
|
|
30
|
+
nameColumn: employee_name
|
|
31
|
+
properties:
|
|
32
|
+
- title
|
|
33
|
+
- location
|
|
34
|
+
- hire_date
|
|
35
|
+
- status
|
|
36
|
+
- rating
|
|
37
|
+
- strengths
|
|
38
|
+
- areas_for_growth
|
|
39
|
+
relationships:
|
|
40
|
+
- type: WORKS_IN
|
|
41
|
+
source: Employee
|
|
42
|
+
target: Department
|
|
43
|
+
sourceIdColumn: employee_id
|
|
44
|
+
targetIdColumn: department_id
|
|
45
|
+
- type: REPORTS_TO
|
|
46
|
+
source: Employee
|
|
47
|
+
target: Employee
|
|
48
|
+
sourceIdColumn: employee_id
|
|
49
|
+
targetIdColumn: manager_id
|
|
Binary file
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
name: pet-store
|
|
2
|
+
description: Pet store inventory with species, breeds, pets, and supplies
|
|
3
|
+
|
|
4
|
+
source:
|
|
5
|
+
type: database
|
|
6
|
+
connectionString: sqlite://knowledge/pet-store/pet-store.db
|
|
7
|
+
query: |
|
|
8
|
+
SELECT
|
|
9
|
+
p.id AS pet_id,
|
|
10
|
+
p.name AS pet_name,
|
|
11
|
+
p.age,
|
|
12
|
+
p.price,
|
|
13
|
+
p.status,
|
|
14
|
+
p.description AS content,
|
|
15
|
+
b.id AS breed_id,
|
|
16
|
+
b.name AS breed_name,
|
|
17
|
+
b.size,
|
|
18
|
+
b.temperament,
|
|
19
|
+
b.avg_lifespan,
|
|
20
|
+
s.id AS species_id,
|
|
21
|
+
s.name AS species_name
|
|
22
|
+
FROM pets p
|
|
23
|
+
JOIN breeds b ON p.breed_id = b.id
|
|
24
|
+
JOIN species s ON b.species_id = s.id
|
|
25
|
+
contentColumn: content
|
|
26
|
+
metadataColumns:
|
|
27
|
+
- pet_id
|
|
28
|
+
- pet_name
|
|
29
|
+
- breed_name
|
|
30
|
+
- species_name
|
|
31
|
+
- status
|
|
32
|
+
- price
|
|
33
|
+
|
|
34
|
+
loader:
|
|
35
|
+
type: text
|
|
36
|
+
|
|
37
|
+
splitter:
|
|
38
|
+
type: character
|
|
39
|
+
chunkSize: 500
|
|
40
|
+
chunkOverlap: 50
|
|
41
|
+
|
|
42
|
+
embedding: default
|
|
43
|
+
|
|
44
|
+
search:
|
|
45
|
+
defaultK: 5
|
|
46
|
+
|
|
47
|
+
graph:
|
|
48
|
+
directMapping:
|
|
49
|
+
entities:
|
|
50
|
+
- type: Species
|
|
51
|
+
idColumn: species_id
|
|
52
|
+
nameColumn: species_name
|
|
53
|
+
properties: []
|
|
54
|
+
- type: Breed
|
|
55
|
+
idColumn: breed_id
|
|
56
|
+
nameColumn: breed_name
|
|
57
|
+
properties:
|
|
58
|
+
- size
|
|
59
|
+
- temperament
|
|
60
|
+
- avg_lifespan
|
|
61
|
+
- type: Pet
|
|
62
|
+
idColumn: pet_id
|
|
63
|
+
nameColumn: pet_name
|
|
64
|
+
properties:
|
|
65
|
+
- age
|
|
66
|
+
- price
|
|
67
|
+
- status
|
|
68
|
+
relationships:
|
|
69
|
+
- type: IS_BREED
|
|
70
|
+
source: Breed
|
|
71
|
+
target: Species
|
|
72
|
+
sourceIdColumn: breed_id
|
|
73
|
+
targetIdColumn: species_id
|
|
74
|
+
- type: BELONGS_TO
|
|
75
|
+
source: Pet
|
|
76
|
+
target: Breed
|
|
77
|
+
sourceIdColumn: pet_id
|
|
78
|
+
targetIdColumn: breed_id
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: web-docs
|
|
2
|
+
description: Solar System knowledge base scraped from Wikipedia
|
|
3
|
+
|
|
4
|
+
source:
|
|
5
|
+
type: web
|
|
6
|
+
url: https://en.wikipedia.org/wiki/Solar_System
|
|
7
|
+
selector: ".mw-parser-output"
|
|
8
|
+
|
|
9
|
+
loader:
|
|
10
|
+
type: text
|
|
11
|
+
|
|
12
|
+
splitter:
|
|
13
|
+
type: recursive
|
|
14
|
+
chunkSize: 1000
|
|
15
|
+
chunkOverlap: 200
|
|
16
|
+
|
|
17
|
+
embedding: default
|
|
18
|
+
|
|
19
|
+
search:
|
|
20
|
+
defaultK: 4
|
package/dist/templates/llm.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"gemini": {
|
|
18
18
|
"provider": "gemini",
|
|
19
19
|
"apiKey": "your-gemini-api-key-here",
|
|
20
|
-
"model": "gemini-2.
|
|
20
|
+
"model": "gemini-2.5-flash",
|
|
21
21
|
"temperature": 0.7
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"gemini": {
|
|
39
39
|
"provider": "gemini",
|
|
40
40
|
"apiKey": "your-gemini-api-key-here",
|
|
41
|
-
"model": "
|
|
41
|
+
"model": "gemini-embedding-001"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
package/dist/templates/mcp.json
CHANGED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: orcha-builder
|
|
3
|
+
description: Documentation for creating and modifying ORCHA resources (agents, workflows, skills, functions, knowledge stores)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ORCHA Resource Schemas
|
|
7
|
+
|
|
8
|
+
Use this reference when creating or modifying ORCHA resources. All resource files live in the workspace root under their respective directories.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Agents (`agents/<name>.agent.yaml`)
|
|
13
|
+
|
|
14
|
+
```yaml
|
|
15
|
+
name: my-agent # Unique identifier (kebab-case)
|
|
16
|
+
description: What the agent does # Human-readable description
|
|
17
|
+
version: "1.0.0" # Optional, defaults to 1.0.0
|
|
18
|
+
|
|
19
|
+
llm:
|
|
20
|
+
name: default # LLM config name from llm.json
|
|
21
|
+
temperature: 0.7 # 0.0 = deterministic, 1.0 = creative
|
|
22
|
+
|
|
23
|
+
prompt:
|
|
24
|
+
system: |
|
|
25
|
+
You are a helpful assistant.
|
|
26
|
+
Your instructions go here.
|
|
27
|
+
inputVariables:
|
|
28
|
+
- query # Variables injected at runtime
|
|
29
|
+
|
|
30
|
+
tools: # Optional tool references
|
|
31
|
+
- mcp:server-name # All tools from an MCP server
|
|
32
|
+
- knowledge:store-name # Knowledge search tools
|
|
33
|
+
- function:my-function # Custom function tool
|
|
34
|
+
- builtin:tool-name # Built-in tool
|
|
35
|
+
- sandbox:exec # Sandbox tools (exec, web_fetch, web_search)
|
|
36
|
+
- workspace:read # Workspace tools (read, write, list, list_resources)
|
|
37
|
+
|
|
38
|
+
skills: # Optional skills
|
|
39
|
+
- skill-name # Skill name from skills directory
|
|
40
|
+
# OR
|
|
41
|
+
mode: all # Include all available skills
|
|
42
|
+
|
|
43
|
+
output: # Optional output config
|
|
44
|
+
format: text # text | json | structured
|
|
45
|
+
schema: # Required if format is structured
|
|
46
|
+
type: object
|
|
47
|
+
properties:
|
|
48
|
+
result:
|
|
49
|
+
type: string
|
|
50
|
+
|
|
51
|
+
memory: # Optional conversation memory
|
|
52
|
+
enabled: true
|
|
53
|
+
maxLines: 100 # Max conversation history lines
|
|
54
|
+
|
|
55
|
+
metadata: # Optional metadata
|
|
56
|
+
category: general
|
|
57
|
+
tags:
|
|
58
|
+
- example
|
|
59
|
+
|
|
60
|
+
integrations: # Optional integrations
|
|
61
|
+
- type: collabnook
|
|
62
|
+
url: wss://collabnook.com/ws
|
|
63
|
+
channel: general
|
|
64
|
+
botName: MyBot
|
|
65
|
+
|
|
66
|
+
triggers: # Optional triggers
|
|
67
|
+
- type: cron
|
|
68
|
+
schedule: "*/5 * * * *" # Cron expression
|
|
69
|
+
input:
|
|
70
|
+
query: "Periodic task"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Step-Based Workflows (`workflows/<name>.workflow.yaml`)
|
|
76
|
+
|
|
77
|
+
```yaml
|
|
78
|
+
name: my-workflow
|
|
79
|
+
description: What the workflow does
|
|
80
|
+
version: "1.0.0"
|
|
81
|
+
type: steps # "steps" for step-based workflows
|
|
82
|
+
|
|
83
|
+
input:
|
|
84
|
+
schema: # Typed input fields
|
|
85
|
+
query:
|
|
86
|
+
type: string # string | number | boolean | array | object
|
|
87
|
+
required: true
|
|
88
|
+
description: "The user query"
|
|
89
|
+
|
|
90
|
+
steps:
|
|
91
|
+
- id: step-one # Unique step identifier (NOT "name")
|
|
92
|
+
agent: agent-name # Agent to invoke
|
|
93
|
+
input:
|
|
94
|
+
query: "{{query}}" # Variable interpolation
|
|
95
|
+
output: # Output is an object (NOT a string)
|
|
96
|
+
key: step_one_result # Variable name to store result
|
|
97
|
+
extract: output # Optional: extract a specific field
|
|
98
|
+
|
|
99
|
+
- id: step-two
|
|
100
|
+
agent: another-agent
|
|
101
|
+
input:
|
|
102
|
+
query: "{{step_one_result}}"
|
|
103
|
+
output:
|
|
104
|
+
key: step_two_result
|
|
105
|
+
condition: "{{step_one_result}}" # Optional: skip if falsy
|
|
106
|
+
|
|
107
|
+
- parallel: # Parallel execution (no "name" key here)
|
|
108
|
+
- id: branch-a
|
|
109
|
+
agent: agent-a
|
|
110
|
+
input:
|
|
111
|
+
query: "{{query}}"
|
|
112
|
+
output:
|
|
113
|
+
key: result_a
|
|
114
|
+
- id: branch-b
|
|
115
|
+
agent: agent-b
|
|
116
|
+
input:
|
|
117
|
+
query: "{{query}}"
|
|
118
|
+
output:
|
|
119
|
+
key: result_b
|
|
120
|
+
|
|
121
|
+
config: # Optional workflow config
|
|
122
|
+
timeout: 300000 # Default 300000ms
|
|
123
|
+
onError: stop # stop | continue | retry
|
|
124
|
+
|
|
125
|
+
output:
|
|
126
|
+
result: "{{step_two_result}}"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## LangGraph Workflows (`workflows/<name>.workflow.yaml`)
|
|
132
|
+
|
|
133
|
+
```yaml
|
|
134
|
+
name: my-graph-workflow
|
|
135
|
+
description: Graph-based workflow with tool and agent discovery
|
|
136
|
+
version: "1.0.0"
|
|
137
|
+
type: langgraph
|
|
138
|
+
|
|
139
|
+
input:
|
|
140
|
+
schema: # Typed input fields (same as step-based)
|
|
141
|
+
query:
|
|
142
|
+
type: string
|
|
143
|
+
required: true
|
|
144
|
+
description: "The user query"
|
|
145
|
+
|
|
146
|
+
prompt: # REQUIRED for langgraph workflows
|
|
147
|
+
system: |
|
|
148
|
+
You are a helpful assistant that uses available tools and agents.
|
|
149
|
+
goal: "Answer the user's query using available tools"
|
|
150
|
+
|
|
151
|
+
graph:
|
|
152
|
+
model: default # LLM config name, defaults to "default"
|
|
153
|
+
tools:
|
|
154
|
+
sources: # Tool sources to discover
|
|
155
|
+
- mcp
|
|
156
|
+
- knowledge
|
|
157
|
+
- function
|
|
158
|
+
- builtin
|
|
159
|
+
mode: all # all | none | include | exclude
|
|
160
|
+
exclude: # Optional exclusion list
|
|
161
|
+
- dangerous_tool
|
|
162
|
+
agents:
|
|
163
|
+
mode: all # all | none | include | exclude
|
|
164
|
+
exclude:
|
|
165
|
+
- architect # Prevent recursive invocation
|
|
166
|
+
executionMode: react # react | single-turn (default: react)
|
|
167
|
+
maxIterations: 10 # Max tool-call loops (default: 10)
|
|
168
|
+
timeout: 300000 # Timeout in ms (default: 300000)
|
|
169
|
+
|
|
170
|
+
output:
|
|
171
|
+
result: "{{result}}"
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Knowledge Stores (`knowledge/<name>.knowledge.yaml`)
|
|
177
|
+
|
|
178
|
+
```yaml
|
|
179
|
+
name: my-knowledge
|
|
180
|
+
description: What this knowledge store contains
|
|
181
|
+
|
|
182
|
+
source:
|
|
183
|
+
# Directory source
|
|
184
|
+
type: directory # directory | file | database | web | s3
|
|
185
|
+
path: ./docs # Relative to workspace root
|
|
186
|
+
pattern: "**/*.md" # Glob pattern for file matching (NOT "glob")
|
|
187
|
+
recursive: true # Default: true
|
|
188
|
+
|
|
189
|
+
# --- OR file source ---
|
|
190
|
+
# type: file
|
|
191
|
+
# path: ./data/report.pdf
|
|
192
|
+
|
|
193
|
+
# --- OR database source ---
|
|
194
|
+
# type: database
|
|
195
|
+
# connectionString: postgresql://user:pass@host:5432/db # postgresql://, mysql://, or sqlite://
|
|
196
|
+
# query: "SELECT content FROM documents"
|
|
197
|
+
# contentColumn: content # Default: "content"
|
|
198
|
+
# metadataColumns: [id, title] # Optional
|
|
199
|
+
# batchSize: 100 # Optional, default: 100
|
|
200
|
+
|
|
201
|
+
# --- OR web source ---
|
|
202
|
+
# type: web
|
|
203
|
+
# url: https://example.com/docs
|
|
204
|
+
# selector: ".main-content" # Optional CSS selector
|
|
205
|
+
# headers: # Optional custom headers
|
|
206
|
+
# Authorization: "Bearer token"
|
|
207
|
+
|
|
208
|
+
loader: # REQUIRED (has defaults)
|
|
209
|
+
type: text # text | pdf | csv | json | markdown
|
|
210
|
+
|
|
211
|
+
splitter:
|
|
212
|
+
type: recursive # character | recursive | token | markdown
|
|
213
|
+
chunkSize: 1000
|
|
214
|
+
chunkOverlap: 200
|
|
215
|
+
|
|
216
|
+
embedding: default # String reference to llm.json config (NOT an object)
|
|
217
|
+
|
|
218
|
+
search: # Optional
|
|
219
|
+
defaultK: 4
|
|
220
|
+
scoreThreshold: 0.5 # Optional minimum score
|
|
221
|
+
|
|
222
|
+
graph: # Optional: enable graph entities via direct mapping
|
|
223
|
+
directMapping:
|
|
224
|
+
entities:
|
|
225
|
+
- type: Person # Entity type label
|
|
226
|
+
idColumn: id # Column for entity ID
|
|
227
|
+
nameColumn: name # Optional: column for display name
|
|
228
|
+
properties: # Columns to include as properties
|
|
229
|
+
- email # String = same column name
|
|
230
|
+
- { role: job_title } # Object = { propertyName: columnName }
|
|
231
|
+
relationships: # Optional: define relationships
|
|
232
|
+
- type: WORKS_FOR
|
|
233
|
+
source: Person # Source entity type
|
|
234
|
+
target: Organization # Target entity type
|
|
235
|
+
sourceIdColumn: person_id
|
|
236
|
+
targetIdColumn: org_id
|
|
237
|
+
groupNode: department # Optional: group by column
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Custom Functions (`functions/<name>.function.js`)
|
|
243
|
+
|
|
244
|
+
```javascript
|
|
245
|
+
export const metadata = {
|
|
246
|
+
name: "my-function",
|
|
247
|
+
description: "What this function does",
|
|
248
|
+
version: "1.0.0",
|
|
249
|
+
tags: ["utility"]
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export const parameters = {
|
|
253
|
+
type: "object",
|
|
254
|
+
properties: {
|
|
255
|
+
input: {
|
|
256
|
+
type: "string",
|
|
257
|
+
description: "The input parameter"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
required: ["input"]
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export default async function({ input }) {
|
|
264
|
+
// Your logic here
|
|
265
|
+
return { result: `Processed: ${input}` };
|
|
266
|
+
}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## Skills (`skills/<name>/SKILL.md`)
|
|
272
|
+
|
|
273
|
+
```markdown
|
|
274
|
+
---
|
|
275
|
+
name: my-skill
|
|
276
|
+
description: What this skill teaches the agent
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
# Skill Title
|
|
280
|
+
|
|
281
|
+
Instructions, context, and knowledge that get injected into the agent's prompt.
|
|
282
|
+
Use markdown formatting for structure.
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
Skills with `sandbox: true` in frontmatter indicate they require sandbox tools.
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## MCP Server Configuration (`mcp.json`)
|
|
290
|
+
|
|
291
|
+
The `mcp.json` file in the workspace root configures external MCP servers. Agents reference them via `mcp:<server-name>` in their tools list.
|
|
292
|
+
|
|
293
|
+
```json
|
|
294
|
+
{
|
|
295
|
+
"version": "1.0.0",
|
|
296
|
+
"servers": {
|
|
297
|
+
"server-name": {
|
|
298
|
+
"url": "https://example.com/mcp",
|
|
299
|
+
"description": "What this server provides",
|
|
300
|
+
"timeout": 30000,
|
|
301
|
+
"enabled": true
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"globalOptions": {
|
|
305
|
+
"throwOnLoadError": false,
|
|
306
|
+
"prefixToolNameWithServerName": true,
|
|
307
|
+
"additionalToolNamePrefix": "",
|
|
308
|
+
"defaultToolTimeout": 30000
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**Server config fields:**
|
|
314
|
+
- `url` — Required for remote servers (auto-detects `streamable-http` transport)
|
|
315
|
+
- `command` + `args` — Required for local stdio servers (auto-detects `stdio` transport)
|
|
316
|
+
- `transport` — Explicit: `stdio`, `sse`, `streamable-http`, or `sse-only` (auto-detected if omitted)
|
|
317
|
+
- `headers` — Optional HTTP headers (e.g. for auth)
|
|
318
|
+
- `env` — Optional environment variables (for stdio servers)
|
|
319
|
+
- `description` — Optional human-readable description
|
|
320
|
+
- `timeout` — Request timeout in ms (default: 30000)
|
|
321
|
+
- `enabled` — Set to `false` to disable without removing (default: true)
|
|
322
|
+
|
|
323
|
+
**Adding a new MCP server:**
|
|
324
|
+
1. Read `mcp.json` first to preserve existing servers
|
|
325
|
+
2. Add the new server entry to the `servers` object
|
|
326
|
+
3. Write the updated `mcp.json` back
|
|
327
|
+
4. Create an agent that references it with `tools: [mcp:server-name]`
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Best Practices
|
|
332
|
+
|
|
333
|
+
- **Naming**: Use kebab-case for all resource names (e.g. `weather-bot`, `data-pipeline`)
|
|
334
|
+
- **Temperature**: Use 0.0-0.3 for structured/deterministic tasks, 0.5-0.7 for creative/conversational
|
|
335
|
+
- **Tools**: Only include tools the agent actually needs — fewer tools = better focus
|
|
336
|
+
- **Prompts**: Be specific and include examples in system prompts; use inputVariables for dynamic content
|
|
337
|
+
- **Read before write**: Always read an existing resource before modifying it to preserve fields you're not changing
|
|
338
|
+
- **Uniqueness**: Check `workspace_list_resources` before creating to avoid name collisions
|
|
339
|
+
- **Skills**: Use skills to share knowledge across multiple agents without duplicating prompt content
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sandbox
|
|
3
|
+
description: Execute JavaScript code and fetch web content in an isolated sandbox
|
|
4
|
+
sandbox: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Sandbox Execution
|
|
8
|
+
|
|
9
|
+
You have access to sandbox tools for running JavaScript code and fetching web content.
|
|
10
|
+
|
|
11
|
+
## Tool: sandbox_exec
|
|
12
|
+
|
|
13
|
+
Execute JavaScript code in an isolated VM sandbox.
|
|
14
|
+
|
|
15
|
+
**Parameters:**
|
|
16
|
+
- `code` (required): JavaScript code to execute (runs in async context, so `await` works)
|
|
17
|
+
- `timeout` (optional): Execution timeout in milliseconds
|
|
18
|
+
|
|
19
|
+
**Returns:** JSON with `stdout` (console output), `result` (return value), and `error` (if any)
|
|
20
|
+
|
|
21
|
+
**Available globals:** JSON, Math, Date, Buffer, URL, URLSearchParams, TextEncoder, TextDecoder, setTimeout, and standard JS built-ins.
|
|
22
|
+
|
|
23
|
+
**Not available:** `fetch`, `require`, file system access. Use `sandbox_web_fetch` for HTTP requests.
|
|
24
|
+
|
|
25
|
+
## Tool: sandbox_web_fetch
|
|
26
|
+
|
|
27
|
+
Fetch web page content or API responses.
|
|
28
|
+
|
|
29
|
+
**Parameters:**
|
|
30
|
+
- `url` (required): HTTP or HTTPS URL to fetch
|
|
31
|
+
- `raw` (optional): Return raw content without HTML-to-markdown conversion
|
|
32
|
+
- `runScripts` (optional): Run page JavaScript before extracting content (default: true)
|
|
33
|
+
|
|
34
|
+
**Returns:** JSON with `content`, `url`, `status`, and `truncated`
|
|
35
|
+
|
|
36
|
+
## Tool: sandbox_web_search
|
|
37
|
+
|
|
38
|
+
Search the web using DuckDuckGo.
|
|
39
|
+
|
|
40
|
+
**Parameters:**
|
|
41
|
+
- `query` (required): Search query
|
|
42
|
+
- `num_results` (optional): Max results to return (default 10)
|
|
43
|
+
|
|
44
|
+
**Returns:** JSON with `results` (formatted list) and `query`
|
|
45
|
+
|
|
46
|
+
## Usage Examples
|
|
47
|
+
|
|
48
|
+
Run JavaScript code:
|
|
49
|
+
```
|
|
50
|
+
sandbox_exec({ code: "const sum = [1,2,3].reduce((a,b) => a+b, 0); console.log(sum); return sum;" })
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Fetch a web page:
|
|
54
|
+
```
|
|
55
|
+
sandbox_web_fetch({ url: "https://example.com" })
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Best Practices
|
|
59
|
+
|
|
60
|
+
1. Use `console.log()` for output and `return` for the final result
|
|
61
|
+
2. Use `sandbox_web_fetch` for HTTP requests instead of trying to use `fetch` in sandbox_exec
|
|
62
|
+
3. Check the `error` field in results to verify execution success
|
|
63
|
+
4. Handle errors gracefully — read `error` for diagnostics
|