beddel 0.2.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -595
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +9 -0
- package/dist/core/parser.d.ts +25 -0
- package/dist/core/parser.d.ts.map +1 -0
- package/dist/core/parser.js +31 -0
- package/dist/core/variable-resolver.d.ts +23 -0
- package/dist/core/variable-resolver.d.ts.map +1 -0
- package/dist/core/variable-resolver.js +98 -0
- package/dist/core/workflow.d.ts +39 -0
- package/dist/core/workflow.d.ts.map +1 -0
- package/dist/core/workflow.js +64 -0
- package/dist/index.d.ts +14 -36
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -130
- package/dist/primitives/index.d.ts +37 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +72 -0
- package/dist/primitives/llm.d.ts +56 -0
- package/dist/primitives/llm.d.ts.map +1 -0
- package/dist/primitives/llm.js +156 -0
- package/dist/primitives/output.d.ts +28 -0
- package/dist/primitives/output.d.ts.map +1 -0
- package/dist/primitives/output.js +39 -0
- package/dist/server/handler.d.ts +7 -0
- package/dist/server/handler.d.ts.map +1 -0
- package/dist/server/handler.js +55 -0
- package/dist/server.d.ts +10 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +9 -0
- package/dist/tools/index.d.ts +49 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +96 -0
- package/dist/types/index.d.ts +54 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +5 -0
- package/docs/architecture/api-reference.md +307 -0
- package/docs/architecture/components.md +246 -0
- package/docs/architecture/core-workflows.md +236 -0
- package/docs/architecture/high-level-architecture.md +76 -0
- package/docs/architecture/index.md +31 -0
- package/docs/architecture/source-tree.md +92 -0
- package/docs/architecture/tech-stack.md +25 -0
- package/docs/prd/epic-list.md +101 -0
- package/docs/prd/goals-context.md +23 -0
- package/docs/prd/index.md +21 -0
- package/docs/prd/requirements.md +25 -0
- package/docs/prd/technical-assumptions.md +35 -0
- package/package.json +31 -118
- package/src/client.ts +18 -0
- package/src/core/parser.ts +36 -0
- package/src/core/variable-resolver.ts +114 -0
- package/src/core/workflow.ts +77 -0
- package/src/index.ts +25 -159
- package/src/primitives/index.ts +83 -0
- package/src/primitives/llm.ts +210 -0
- package/src/primitives/output.ts +65 -0
- package/src/server/handler.ts +80 -0
- package/src/server.ts +10 -0
- package/src/tools/index.ts +118 -0
- package/src/types/index.ts +62 -0
- package/tsconfig.json +27 -0
- package/CHANGELOG.md +0 -78
- package/LICENSE +0 -21
- package/dist/agents/chat/chat.handler.d.ts +0 -12
- package/dist/agents/chat/chat.handler.d.ts.map +0 -1
- package/dist/agents/chat/chat.handler.js +0 -143
- package/dist/agents/chat/chat.handler.js.map +0 -1
- package/dist/agents/chat/chat.schema.d.ts +0 -38
- package/dist/agents/chat/chat.schema.d.ts.map +0 -1
- package/dist/agents/chat/chat.schema.js +0 -31
- package/dist/agents/chat/chat.schema.js.map +0 -1
- package/dist/agents/chat/chat.types.d.ts +0 -42
- package/dist/agents/chat/chat.types.d.ts.map +0 -1
- package/dist/agents/chat/chat.types.js +0 -6
- package/dist/agents/chat/chat.types.js.map +0 -1
- package/dist/agents/chat/chat.yaml +0 -150
- package/dist/agents/chat/index.d.ts +0 -16
- package/dist/agents/chat/index.d.ts.map +0 -1
- package/dist/agents/chat/index.js +0 -21
- package/dist/agents/chat/index.js.map +0 -1
- package/dist/agents/chromadb/chromadb.handler.d.ts +0 -12
- package/dist/agents/chromadb/chromadb.handler.d.ts.map +0 -1
- package/dist/agents/chromadb/chromadb.handler.js +0 -139
- package/dist/agents/chromadb/chromadb.handler.js.map +0 -1
- package/dist/agents/chromadb/chromadb.schema.d.ts +0 -36
- package/dist/agents/chromadb/chromadb.schema.d.ts.map +0 -1
- package/dist/agents/chromadb/chromadb.schema.js +0 -33
- package/dist/agents/chromadb/chromadb.schema.js.map +0 -1
- package/dist/agents/chromadb/chromadb.types.d.ts +0 -49
- package/dist/agents/chromadb/chromadb.types.d.ts.map +0 -1
- package/dist/agents/chromadb/chromadb.types.js +0 -6
- package/dist/agents/chromadb/chromadb.types.js.map +0 -1
- package/dist/agents/chromadb/chromadb.yaml +0 -128
- package/dist/agents/chromadb/index.d.ts +0 -15
- package/dist/agents/chromadb/index.d.ts.map +0 -1
- package/dist/agents/chromadb/index.js +0 -20
- package/dist/agents/chromadb/index.js.map +0 -1
- package/dist/agents/gemini-vectorize/gemini-vectorize.handler.d.ts +0 -8
- package/dist/agents/gemini-vectorize/gemini-vectorize.handler.d.ts.map +0 -1
- package/dist/agents/gemini-vectorize/gemini-vectorize.handler.js +0 -58
- package/dist/agents/gemini-vectorize/gemini-vectorize.handler.js.map +0 -1
- package/dist/agents/gemini-vectorize/gemini-vectorize.schema.d.ts +0 -22
- package/dist/agents/gemini-vectorize/gemini-vectorize.schema.d.ts.map +0 -1
- package/dist/agents/gemini-vectorize/gemini-vectorize.schema.js +0 -20
- package/dist/agents/gemini-vectorize/gemini-vectorize.schema.js.map +0 -1
- package/dist/agents/gemini-vectorize/gemini-vectorize.types.d.ts +0 -32
- package/dist/agents/gemini-vectorize/gemini-vectorize.types.d.ts.map +0 -1
- package/dist/agents/gemini-vectorize/gemini-vectorize.types.js +0 -6
- package/dist/agents/gemini-vectorize/gemini-vectorize.types.js.map +0 -1
- package/dist/agents/gemini-vectorize/gemini-vectorize.yaml +0 -84
- package/dist/agents/gemini-vectorize/index.d.ts +0 -15
- package/dist/agents/gemini-vectorize/index.d.ts.map +0 -1
- package/dist/agents/gemini-vectorize/index.js +0 -20
- package/dist/agents/gemini-vectorize/index.js.map +0 -1
- package/dist/agents/gitmcp/gitmcp.handler.d.ts +0 -12
- package/dist/agents/gitmcp/gitmcp.handler.d.ts.map +0 -1
- package/dist/agents/gitmcp/gitmcp.handler.js +0 -95
- package/dist/agents/gitmcp/gitmcp.handler.js.map +0 -1
- package/dist/agents/gitmcp/gitmcp.schema.d.ts +0 -17
- package/dist/agents/gitmcp/gitmcp.schema.d.ts.map +0 -1
- package/dist/agents/gitmcp/gitmcp.schema.js +0 -18
- package/dist/agents/gitmcp/gitmcp.schema.js.map +0 -1
- package/dist/agents/gitmcp/gitmcp.types.d.ts +0 -31
- package/dist/agents/gitmcp/gitmcp.types.d.ts.map +0 -1
- package/dist/agents/gitmcp/gitmcp.types.js +0 -6
- package/dist/agents/gitmcp/gitmcp.types.js.map +0 -1
- package/dist/agents/gitmcp/gitmcp.yaml +0 -71
- package/dist/agents/gitmcp/index.d.ts +0 -16
- package/dist/agents/gitmcp/index.d.ts.map +0 -1
- package/dist/agents/gitmcp/index.js +0 -21
- package/dist/agents/gitmcp/index.js.map +0 -1
- package/dist/agents/image/image.handler.d.ts +0 -8
- package/dist/agents/image/image.handler.d.ts.map +0 -1
- package/dist/agents/image/image.handler.js +0 -66
- package/dist/agents/image/image.handler.js.map +0 -1
- package/dist/agents/image/image.schema.d.ts +0 -29
- package/dist/agents/image/image.schema.d.ts.map +0 -1
- package/dist/agents/image/image.schema.js +0 -26
- package/dist/agents/image/image.schema.js.map +0 -1
- package/dist/agents/image/image.types.d.ts +0 -42
- package/dist/agents/image/image.types.d.ts.map +0 -1
- package/dist/agents/image/image.types.js +0 -6
- package/dist/agents/image/image.types.js.map +0 -1
- package/dist/agents/image/image.yaml +0 -86
- package/dist/agents/image/index.d.ts +0 -14
- package/dist/agents/image/index.d.ts.map +0 -1
- package/dist/agents/image/index.js +0 -19
- package/dist/agents/image/index.js.map +0 -1
- package/dist/agents/index.d.ts +0 -95
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js +0 -76
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/joker/index.d.ts +0 -14
- package/dist/agents/joker/index.d.ts.map +0 -1
- package/dist/agents/joker/index.js +0 -19
- package/dist/agents/joker/index.js.map +0 -1
- package/dist/agents/joker/joker.handler.d.ts +0 -8
- package/dist/agents/joker/joker.handler.d.ts.map +0 -1
- package/dist/agents/joker/joker.handler.js +0 -48
- package/dist/agents/joker/joker.handler.js.map +0 -1
- package/dist/agents/joker/joker.schema.d.ts +0 -12
- package/dist/agents/joker/joker.schema.d.ts.map +0 -1
- package/dist/agents/joker/joker.schema.js +0 -13
- package/dist/agents/joker/joker.schema.js.map +0 -1
- package/dist/agents/joker/joker.types.d.ts +0 -35
- package/dist/agents/joker/joker.types.d.ts.map +0 -1
- package/dist/agents/joker/joker.types.js +0 -6
- package/dist/agents/joker/joker.types.js.map +0 -1
- package/dist/agents/joker/joker.yaml +0 -47
- package/dist/agents/mcp-tool/index.d.ts +0 -14
- package/dist/agents/mcp-tool/index.d.ts.map +0 -1
- package/dist/agents/mcp-tool/index.js +0 -19
- package/dist/agents/mcp-tool/index.js.map +0 -1
- package/dist/agents/mcp-tool/mcp-tool.handler.d.ts +0 -12
- package/dist/agents/mcp-tool/mcp-tool.handler.d.ts.map +0 -1
- package/dist/agents/mcp-tool/mcp-tool.handler.js +0 -116
- package/dist/agents/mcp-tool/mcp-tool.handler.js.map +0 -1
- package/dist/agents/mcp-tool/mcp-tool.schema.d.ts +0 -19
- package/dist/agents/mcp-tool/mcp-tool.schema.d.ts.map +0 -1
- package/dist/agents/mcp-tool/mcp-tool.schema.js +0 -20
- package/dist/agents/mcp-tool/mcp-tool.schema.js.map +0 -1
- package/dist/agents/mcp-tool/mcp-tool.types.d.ts +0 -31
- package/dist/agents/mcp-tool/mcp-tool.types.d.ts.map +0 -1
- package/dist/agents/mcp-tool/mcp-tool.types.js +0 -6
- package/dist/agents/mcp-tool/mcp-tool.types.js.map +0 -1
- package/dist/agents/mcp-tool/mcp-tool.yaml +0 -71
- package/dist/agents/rag/index.d.ts +0 -15
- package/dist/agents/rag/index.d.ts.map +0 -1
- package/dist/agents/rag/index.js +0 -20
- package/dist/agents/rag/index.js.map +0 -1
- package/dist/agents/rag/rag.handler.d.ts +0 -8
- package/dist/agents/rag/rag.handler.d.ts.map +0 -1
- package/dist/agents/rag/rag.handler.js +0 -101
- package/dist/agents/rag/rag.handler.js.map +0 -1
- package/dist/agents/rag/rag.schema.d.ts +0 -27
- package/dist/agents/rag/rag.schema.d.ts.map +0 -1
- package/dist/agents/rag/rag.schema.js +0 -24
- package/dist/agents/rag/rag.schema.js.map +0 -1
- package/dist/agents/rag/rag.types.d.ts +0 -47
- package/dist/agents/rag/rag.types.d.ts.map +0 -1
- package/dist/agents/rag/rag.types.js +0 -6
- package/dist/agents/rag/rag.types.js.map +0 -1
- package/dist/agents/rag/rag.yaml +0 -89
- package/dist/agents/registry/agentRegistry.d.ts +0 -117
- package/dist/agents/registry/agentRegistry.d.ts.map +0 -1
- package/dist/agents/registry/agentRegistry.js +0 -551
- package/dist/agents/registry/agentRegistry.js.map +0 -1
- package/dist/agents/registry/index.d.ts +0 -6
- package/dist/agents/registry/index.d.ts.map +0 -1
- package/dist/agents/registry/index.js +0 -10
- package/dist/agents/registry/index.js.map +0 -1
- package/dist/agents/translator/index.d.ts +0 -14
- package/dist/agents/translator/index.d.ts.map +0 -1
- package/dist/agents/translator/index.js +0 -19
- package/dist/agents/translator/index.js.map +0 -1
- package/dist/agents/translator/translator.handler.d.ts +0 -8
- package/dist/agents/translator/translator.handler.d.ts.map +0 -1
- package/dist/agents/translator/translator.handler.js +0 -83
- package/dist/agents/translator/translator.handler.js.map +0 -1
- package/dist/agents/translator/translator.schema.d.ts +0 -27
- package/dist/agents/translator/translator.schema.d.ts.map +0 -1
- package/dist/agents/translator/translator.schema.js +0 -28
- package/dist/agents/translator/translator.schema.js.map +0 -1
- package/dist/agents/translator/translator.types.d.ts +0 -40
- package/dist/agents/translator/translator.types.d.ts.map +0 -1
- package/dist/agents/translator/translator.types.js +0 -6
- package/dist/agents/translator/translator.types.js.map +0 -1
- package/dist/agents/translator/translator.yaml +0 -80
- package/dist/audit/auditTrail.d.ts +0 -55
- package/dist/audit/auditTrail.d.ts.map +0 -1
- package/dist/audit/auditTrail.js +0 -93
- package/dist/audit/auditTrail.js.map +0 -1
- package/dist/client/index.d.ts +0 -89
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js +0 -93
- package/dist/client/index.js.map +0 -1
- package/dist/client/types.d.ts +0 -17
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/types.js +0 -7
- package/dist/client/types.js.map +0 -1
- package/dist/compliance/gdprEngine.d.ts +0 -44
- package/dist/compliance/gdprEngine.d.ts.map +0 -1
- package/dist/compliance/gdprEngine.js +0 -178
- package/dist/compliance/gdprEngine.js.map +0 -1
- package/dist/compliance/lgpdEngine.d.ts +0 -51
- package/dist/compliance/lgpdEngine.d.ts.map +0 -1
- package/dist/compliance/lgpdEngine.js +0 -221
- package/dist/compliance/lgpdEngine.js.map +0 -1
- package/dist/config.d.ts +0 -78
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -77
- package/dist/config.js.map +0 -1
- package/dist/errors.d.ts +0 -17
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -40
- package/dist/errors.js.map +0 -1
- package/dist/firebase/tenantManager.d.ts +0 -116
- package/dist/firebase/tenantManager.d.ts.map +0 -1
- package/dist/firebase/tenantManager.js +0 -444
- package/dist/firebase/tenantManager.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integration/secure-yaml-runtime.d.ts +0 -68
- package/dist/integration/secure-yaml-runtime.d.ts.map +0 -1
- package/dist/integration/secure-yaml-runtime.js +0 -245
- package/dist/integration/secure-yaml-runtime.js.map +0 -1
- package/dist/parser/secure-yaml-parser.d.ts +0 -62
- package/dist/parser/secure-yaml-parser.d.ts.map +0 -1
- package/dist/parser/secure-yaml-parser.js +0 -234
- package/dist/parser/secure-yaml-parser.js.map +0 -1
- package/dist/performance/autoscaling.d.ts +0 -100
- package/dist/performance/autoscaling.d.ts.map +0 -1
- package/dist/performance/autoscaling.js +0 -339
- package/dist/performance/autoscaling.js.map +0 -1
- package/dist/performance/benchmark.d.ts +0 -104
- package/dist/performance/benchmark.d.ts.map +0 -1
- package/dist/performance/benchmark.js +0 -514
- package/dist/performance/benchmark.js.map +0 -1
- package/dist/performance/index.d.ts +0 -14
- package/dist/performance/index.d.ts.map +0 -1
- package/dist/performance/index.js +0 -35
- package/dist/performance/index.js.map +0 -1
- package/dist/performance/monitor.d.ts +0 -126
- package/dist/performance/monitor.d.ts.map +0 -1
- package/dist/performance/monitor.js +0 -324
- package/dist/performance/monitor.js.map +0 -1
- package/dist/performance/streaming.d.ts +0 -82
- package/dist/performance/streaming.d.ts.map +0 -1
- package/dist/performance/streaming.js +0 -287
- package/dist/performance/streaming.js.map +0 -1
- package/dist/runtime/audit.d.ts +0 -240
- package/dist/runtime/audit.d.ts.map +0 -1
- package/dist/runtime/audit.js +0 -641
- package/dist/runtime/audit.js.map +0 -1
- package/dist/runtime/declarativeAgentRuntime.d.ts +0 -92
- package/dist/runtime/declarativeAgentRuntime.d.ts.map +0 -1
- package/dist/runtime/declarativeAgentRuntime.js +0 -512
- package/dist/runtime/declarativeAgentRuntime.js.map +0 -1
- package/dist/runtime/index.d.ts +0 -12
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -33
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/isolatedRuntime.d.ts +0 -119
- package/dist/runtime/isolatedRuntime.d.ts.map +0 -1
- package/dist/runtime/isolatedRuntime.js +0 -425
- package/dist/runtime/isolatedRuntime.js.map +0 -1
- package/dist/runtime/schemaCompiler.d.ts +0 -35
- package/dist/runtime/schemaCompiler.d.ts.map +0 -1
- package/dist/runtime/schemaCompiler.js +0 -152
- package/dist/runtime/schemaCompiler.js.map +0 -1
- package/dist/runtime/simpleRuntime.d.ts +0 -57
- package/dist/runtime/simpleRuntime.d.ts.map +0 -1
- package/dist/runtime/simpleRuntime.js +0 -187
- package/dist/runtime/simpleRuntime.js.map +0 -1
- package/dist/runtime/workflowExecutor.d.ts +0 -30
- package/dist/runtime/workflowExecutor.d.ts.map +0 -1
- package/dist/runtime/workflowExecutor.js +0 -70
- package/dist/runtime/workflowExecutor.js.map +0 -1
- package/dist/security/dashboard.d.ts +0 -89
- package/dist/security/dashboard.d.ts.map +0 -1
- package/dist/security/dashboard.js +0 -300
- package/dist/security/dashboard.js.map +0 -1
- package/dist/security/hardening.d.ts +0 -130
- package/dist/security/hardening.d.ts.map +0 -1
- package/dist/security/hardening.js +0 -414
- package/dist/security/hardening.js.map +0 -1
- package/dist/security/index.d.ts +0 -128
- package/dist/security/index.d.ts.map +0 -1
- package/dist/security/index.js +0 -353
- package/dist/security/index.js.map +0 -1
- package/dist/security/monitor.d.ts +0 -88
- package/dist/security/monitor.d.ts.map +0 -1
- package/dist/security/monitor.js +0 -356
- package/dist/security/monitor.js.map +0 -1
- package/dist/security/scanner.d.ts +0 -104
- package/dist/security/scanner.d.ts.map +0 -1
- package/dist/security/scanner.js +0 -298
- package/dist/security/scanner.js.map +0 -1
- package/dist/security/score.d.ts +0 -150
- package/dist/security/score.d.ts.map +0 -1
- package/dist/security/score.js +0 -983
- package/dist/security/score.js.map +0 -1
- package/dist/security/threatDetector.d.ts +0 -39
- package/dist/security/threatDetector.d.ts.map +0 -1
- package/dist/security/threatDetector.js +0 -354
- package/dist/security/threatDetector.js.map +0 -1
- package/dist/security/validation.d.ts +0 -69
- package/dist/security/validation.d.ts.map +0 -1
- package/dist/security/validation.js +0 -286
- package/dist/security/validation.js.map +0 -1
- package/dist/server/api/clientsRoute.d.ts +0 -9
- package/dist/server/api/clientsRoute.d.ts.map +0 -1
- package/dist/server/api/clientsRoute.js +0 -71
- package/dist/server/api/clientsRoute.js.map +0 -1
- package/dist/server/api/endpointsRoute.d.ts +0 -8
- package/dist/server/api/endpointsRoute.d.ts.map +0 -1
- package/dist/server/api/endpointsRoute.js +0 -76
- package/dist/server/api/endpointsRoute.js.map +0 -1
- package/dist/server/api/graphql.d.ts +0 -9
- package/dist/server/api/graphql.d.ts.map +0 -1
- package/dist/server/api/graphql.js +0 -222
- package/dist/server/api/graphql.js.map +0 -1
- package/dist/server/errors.d.ts +0 -19
- package/dist/server/errors.d.ts.map +0 -1
- package/dist/server/errors.js +0 -42
- package/dist/server/errors.js.map +0 -1
- package/dist/server/index.d.ts +0 -7
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -24
- package/dist/server/index.js.map +0 -1
- package/dist/server/kvStore.d.ts +0 -27
- package/dist/server/kvStore.d.ts.map +0 -1
- package/dist/server/kvStore.js +0 -128
- package/dist/server/kvStore.js.map +0 -1
- package/dist/server/runtimeSecurity.d.ts +0 -28
- package/dist/server/runtimeSecurity.d.ts.map +0 -1
- package/dist/server/runtimeSecurity.js +0 -85
- package/dist/server/runtimeSecurity.js.map +0 -1
- package/dist/server/types.d.ts +0 -53
- package/dist/server/types.d.ts.map +0 -1
- package/dist/server/types.js +0 -8
- package/dist/server/types.js.map +0 -1
- package/dist/shared/index.d.ts +0 -7
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/index.js +0 -23
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/types/agent.types.d.ts +0 -50
- package/dist/shared/types/agent.types.d.ts.map +0 -1
- package/dist/shared/types/agent.types.js +0 -7
- package/dist/shared/types/agent.types.js.map +0 -1
- package/dist/shared/types/execution.types.d.ts +0 -42
- package/dist/shared/types/execution.types.d.ts.map +0 -1
- package/dist/shared/types/execution.types.js +0 -7
- package/dist/shared/types/execution.types.js.map +0 -1
- package/dist/shared/types/index.d.ts +0 -7
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/shared/types/index.js +0 -23
- package/dist/shared/types/index.js.map +0 -1
- package/dist/shared/types/schema.types.d.ts +0 -52
- package/dist/shared/types/schema.types.d.ts.map +0 -1
- package/dist/shared/types/schema.types.js +0 -7
- package/dist/shared/types/schema.types.js.map +0 -1
- package/dist/shared/utils/index.d.ts +0 -5
- package/dist/shared/utils/index.d.ts.map +0 -1
- package/dist/shared/utils/index.js +0 -21
- package/dist/shared/utils/index.js.map +0 -1
- package/dist/shared/utils/validation.d.ts +0 -42
- package/dist/shared/utils/validation.d.ts.map +0 -1
- package/dist/shared/utils/validation.js +0 -93
- package/dist/shared/utils/validation.js.map +0 -1
- package/dist/tenant/TenantManager.d.ts +0 -152
- package/dist/tenant/TenantManager.d.ts.map +0 -1
- package/dist/tenant/TenantManager.js +0 -392
- package/dist/tenant/TenantManager.js.map +0 -1
- package/dist/tenant/index.d.ts +0 -47
- package/dist/tenant/index.d.ts.map +0 -1
- package/dist/tenant/index.js +0 -74
- package/dist/tenant/index.js.map +0 -1
- package/dist/tenant/interfaces.d.ts +0 -170
- package/dist/tenant/interfaces.d.ts.map +0 -1
- package/dist/tenant/interfaces.js +0 -67
- package/dist/tenant/interfaces.js.map +0 -1
- package/dist/tenant/providerFactory.d.ts +0 -43
- package/dist/tenant/providerFactory.d.ts.map +0 -1
- package/dist/tenant/providerFactory.js +0 -70
- package/dist/tenant/providerFactory.js.map +0 -1
- package/dist/tenant/providerRegistry.d.ts +0 -47
- package/dist/tenant/providerRegistry.d.ts.map +0 -1
- package/dist/tenant/providerRegistry.js +0 -79
- package/dist/tenant/providerRegistry.js.map +0 -1
- package/dist/tenant/providers/FirebaseTenantProvider.d.ts +0 -41
- package/dist/tenant/providers/FirebaseTenantProvider.d.ts.map +0 -1
- package/dist/tenant/providers/FirebaseTenantProvider.js +0 -290
- package/dist/tenant/providers/FirebaseTenantProvider.js.map +0 -1
- package/dist/tenant/providers/InMemoryTenantProvider.d.ts +0 -18
- package/dist/tenant/providers/InMemoryTenantProvider.d.ts.map +0 -1
- package/dist/tenant/providers/InMemoryTenantProvider.js +0 -137
- package/dist/tenant/providers/InMemoryTenantProvider.js.map +0 -1
- package/dist/types/executionContext.d.ts +0 -16
- package/dist/types/executionContext.d.ts.map +0 -1
- package/dist/types/executionContext.js +0 -3
- package/dist/types/executionContext.js.map +0 -1
- package/src/agents/chat/chat.handler.ts +0 -209
- package/src/agents/chat/chat.schema.ts +0 -33
- package/src/agents/chat/chat.types.ts +0 -46
- package/src/agents/chat/chat.yaml +0 -150
- package/src/agents/chat/index.ts +0 -21
- package/src/agents/chromadb/chromadb.handler.ts +0 -130
- package/src/agents/chromadb/chromadb.schema.ts +0 -35
- package/src/agents/chromadb/chromadb.types.ts +0 -52
- package/src/agents/chromadb/chromadb.yaml +0 -128
- package/src/agents/chromadb/index.ts +0 -20
- package/src/agents/gemini-vectorize/gemini-vectorize.handler.ts +0 -72
- package/src/agents/gemini-vectorize/gemini-vectorize.schema.ts +0 -22
- package/src/agents/gemini-vectorize/gemini-vectorize.types.ts +0 -34
- package/src/agents/gemini-vectorize/gemini-vectorize.yaml +0 -84
- package/src/agents/gemini-vectorize/index.ts +0 -20
- package/src/agents/gitmcp/gitmcp.handler.ts +0 -122
- package/src/agents/gitmcp/gitmcp.schema.ts +0 -20
- package/src/agents/gitmcp/gitmcp.types.ts +0 -33
- package/src/agents/gitmcp/gitmcp.yaml +0 -71
- package/src/agents/gitmcp/index.ts +0 -21
- package/src/agents/image/image.handler.ts +0 -82
- package/src/agents/image/image.schema.ts +0 -28
- package/src/agents/image/image.types.ts +0 -45
- package/src/agents/image/image.yaml +0 -86
- package/src/agents/image/index.ts +0 -19
- package/src/agents/index.ts +0 -59
- package/src/agents/joker/index.ts +0 -19
- package/src/agents/joker/joker.handler.ts +0 -60
- package/src/agents/joker/joker.schema.ts +0 -15
- package/src/agents/joker/joker.types.ts +0 -37
- package/src/agents/joker/joker.yaml +0 -47
- package/src/agents/mcp-tool/index.ts +0 -19
- package/src/agents/mcp-tool/mcp-tool.handler.ts +0 -112
- package/src/agents/mcp-tool/mcp-tool.schema.ts +0 -22
- package/src/agents/mcp-tool/mcp-tool.types.ts +0 -33
- package/src/agents/mcp-tool/mcp-tool.yaml +0 -71
- package/src/agents/rag/index.ts +0 -20
- package/src/agents/rag/rag.handler.ts +0 -119
- package/src/agents/rag/rag.schema.ts +0 -26
- package/src/agents/rag/rag.types.ts +0 -51
- package/src/agents/rag/rag.yaml +0 -89
- package/src/agents/registry/agentRegistry.ts +0 -598
- package/src/agents/registry/index.ts +0 -6
- package/src/agents/translator/index.ts +0 -19
- package/src/agents/translator/translator.handler.ts +0 -99
- package/src/agents/translator/translator.schema.ts +0 -30
- package/src/agents/translator/translator.types.ts +0 -42
- package/src/agents/translator/translator.yaml +0 -80
- package/src/audit/auditTrail.ts +0 -134
- package/src/client/index.ts +0 -53
- package/src/client/types.ts +0 -38
- package/src/compliance/gdprEngine.ts +0 -209
- package/src/compliance/lgpdEngine.ts +0 -268
- package/src/config.ts +0 -179
- package/src/errors.ts +0 -35
- package/src/integration/secure-yaml-runtime.ts +0 -341
- package/src/parser/secure-yaml-parser.ts +0 -273
- package/src/performance/autoscaling.ts +0 -495
- package/src/performance/benchmark.ts +0 -644
- package/src/performance/index.ts +0 -34
- package/src/performance/monitor.ts +0 -469
- package/src/performance/streaming.ts +0 -317
- package/src/runtime/audit.ts +0 -907
- package/src/runtime/declarativeAgentRuntime.ts +0 -772
- package/src/runtime/index.ts +0 -31
- package/src/runtime/isolatedRuntime.ts +0 -572
- package/src/runtime/schemaCompiler.ts +0 -228
- package/src/runtime/simpleRuntime.ts +0 -201
- package/src/runtime/workflowExecutor.ts +0 -94
- package/src/security/dashboard.ts +0 -462
- package/src/security/hardening.ts +0 -560
- package/src/security/index.ts +0 -439
- package/src/security/monitor.ts +0 -490
- package/src/security/scanner.ts +0 -368
- package/src/security/score.ts +0 -1138
- package/src/security/threatDetector.ts +0 -481
- package/src/security/validation.ts +0 -365
- package/src/server/api/clientsRoute.ts +0 -92
- package/src/server/api/endpointsRoute.ts +0 -97
- package/src/server/api/graphql.ts +0 -284
- package/src/server/errors.ts +0 -38
- package/src/server/index.ts +0 -6
- package/src/server/kvStore.ts +0 -152
- package/src/server/runtimeSecurity.ts +0 -102
- package/src/server/types.ts +0 -60
- package/src/shared/index.ts +0 -7
- package/src/shared/types/agent.types.ts +0 -80
- package/src/shared/types/execution.types.ts +0 -45
- package/src/shared/types/index.ts +0 -7
- package/src/shared/types/schema.types.ts +0 -55
- package/src/shared/utils/index.ts +0 -5
- package/src/shared/utils/validation.ts +0 -100
- package/src/tenant/TenantManager.ts +0 -488
- package/src/tenant/index.ts +0 -101
- package/src/tenant/interfaces.ts +0 -231
- package/src/tenant/providerFactory.ts +0 -75
- package/src/tenant/providerRegistry.ts +0 -86
- package/src/tenant/providers/InMemoryTenantProvider.ts +0 -168
- package/src/types/executionContext.ts +0 -16
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Tool Agent Schema - Zod validation schemas
|
|
3
|
-
* Safe for both client and server
|
|
4
|
-
*/
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
export declare const McpToolInputSchema: z.ZodObject<{
|
|
7
|
-
server_url: z.ZodString;
|
|
8
|
-
tool_name: z.ZodString;
|
|
9
|
-
tool_arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export declare const McpToolOutputSchema: z.ZodObject<{
|
|
12
|
-
success: z.ZodBoolean;
|
|
13
|
-
data: z.ZodOptional<z.ZodString>;
|
|
14
|
-
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
-
error: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type McpToolInput = z.infer<typeof McpToolInputSchema>;
|
|
18
|
-
export type McpToolOutput = z.infer<typeof McpToolOutputSchema>;
|
|
19
|
-
//# sourceMappingURL=mcp-tool.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tool.schema.d.ts","sourceRoot":"","sources":["../../../src/agents/mcp-tool/mcp-tool.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* MCP Tool Agent Schema - Zod validation schemas
|
|
4
|
-
* Safe for both client and server
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.McpToolOutputSchema = exports.McpToolInputSchema = void 0;
|
|
8
|
-
const zod_1 = require("zod");
|
|
9
|
-
exports.McpToolInputSchema = zod_1.z.object({
|
|
10
|
-
server_url: zod_1.z.string().url(),
|
|
11
|
-
tool_name: zod_1.z.string().min(1),
|
|
12
|
-
tool_arguments: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
13
|
-
});
|
|
14
|
-
exports.McpToolOutputSchema = zod_1.z.object({
|
|
15
|
-
success: zod_1.z.boolean(),
|
|
16
|
-
data: zod_1.z.string().optional(),
|
|
17
|
-
tool_names: zod_1.z.array(zod_1.z.string()).optional(),
|
|
18
|
-
error: zod_1.z.string().optional(),
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=mcp-tool.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tool.schema.js","sourceRoot":"","sources":["../../../src/agents/mcp-tool/mcp-tool.schema.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Tool Agent Types - Shared between client and server
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Parameters for MCP tool invocation
|
|
6
|
-
*/
|
|
7
|
-
export interface McpToolHandlerParams {
|
|
8
|
-
server_url: string;
|
|
9
|
-
tool_name: string;
|
|
10
|
-
tool_arguments?: Record<string, unknown>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Result from MCP tool invocation
|
|
14
|
-
*/
|
|
15
|
-
export interface McpToolHandlerResult {
|
|
16
|
-
success: boolean;
|
|
17
|
-
data?: string;
|
|
18
|
-
tool_names?: string[];
|
|
19
|
-
error?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* MCP Tool agent metadata
|
|
23
|
-
*/
|
|
24
|
-
export interface McpToolMetadata {
|
|
25
|
-
id: 'mcp-tool';
|
|
26
|
-
name: string;
|
|
27
|
-
description: string;
|
|
28
|
-
category: 'integration';
|
|
29
|
-
route: '/agents/mcp-tool';
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=mcp-tool.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tool.types.d.ts","sourceRoot":"","sources":["../../../src/agents/mcp-tool/mcp-tool.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,UAAU,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,kBAAkB,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tool.types.js","sourceRoot":"","sources":["../../../src/agents/mcp-tool/mcp-tool.types.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# MCP Tool Agent - Native Builtin Agent for Beddel Runtime
|
|
2
|
-
# Route: /agents/mcp-tool
|
|
3
|
-
# Method: mcp-tool.execute
|
|
4
|
-
|
|
5
|
-
agent:
|
|
6
|
-
id: mcp-tool
|
|
7
|
-
version: 1.0.0
|
|
8
|
-
protocol: beddel-declarative-protocol/v2.0
|
|
9
|
-
|
|
10
|
-
metadata:
|
|
11
|
-
name: "MCP Tool Agent"
|
|
12
|
-
description: "Generic agent for calling MCP server tools via SSE transport"
|
|
13
|
-
category: "integration"
|
|
14
|
-
route: "/agents/mcp-tool"
|
|
15
|
-
|
|
16
|
-
schema:
|
|
17
|
-
input:
|
|
18
|
-
type: "object"
|
|
19
|
-
properties:
|
|
20
|
-
server_url:
|
|
21
|
-
type: "string"
|
|
22
|
-
description: "MCP server SSE endpoint URL"
|
|
23
|
-
tool_name:
|
|
24
|
-
type: "string"
|
|
25
|
-
description: "Name of the MCP tool to invoke (use 'list_tools' to discover available tools)"
|
|
26
|
-
tool_arguments:
|
|
27
|
-
type: "object"
|
|
28
|
-
description: "Arguments to pass to the tool"
|
|
29
|
-
required: ["server_url", "tool_name"]
|
|
30
|
-
|
|
31
|
-
output:
|
|
32
|
-
type: "object"
|
|
33
|
-
properties:
|
|
34
|
-
success:
|
|
35
|
-
type: "boolean"
|
|
36
|
-
data:
|
|
37
|
-
type: "string"
|
|
38
|
-
tool_names:
|
|
39
|
-
type: "array"
|
|
40
|
-
items:
|
|
41
|
-
type: "string"
|
|
42
|
-
error:
|
|
43
|
-
type: "string"
|
|
44
|
-
required: ["success"]
|
|
45
|
-
|
|
46
|
-
logic:
|
|
47
|
-
workflow:
|
|
48
|
-
- name: "call-mcp-tool"
|
|
49
|
-
type: "mcp-tool"
|
|
50
|
-
action:
|
|
51
|
-
server_url: "$input.server_url"
|
|
52
|
-
tool_name: "$input.tool_name"
|
|
53
|
-
tool_arguments: "$input.tool_arguments"
|
|
54
|
-
result: "mcpResult"
|
|
55
|
-
|
|
56
|
-
- name: "deliver-response"
|
|
57
|
-
type: "output-generator"
|
|
58
|
-
action:
|
|
59
|
-
type: "generate"
|
|
60
|
-
output:
|
|
61
|
-
success: "$mcpResult.success"
|
|
62
|
-
data: "$mcpResult.data"
|
|
63
|
-
tool_names: "$mcpResult.toolNames"
|
|
64
|
-
error: "$mcpResult.error"
|
|
65
|
-
|
|
66
|
-
output:
|
|
67
|
-
schema:
|
|
68
|
-
success: "$mcpResult.success"
|
|
69
|
-
data: "$mcpResult.data"
|
|
70
|
-
tool_names: "$mcpResult.toolNames"
|
|
71
|
-
error: "$mcpResult.error"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RAG Agent - Public exports (client-safe)
|
|
3
|
-
*/
|
|
4
|
-
export { RagInputSchema, RagOutputSchema } from './rag.schema';
|
|
5
|
-
export type { RagInput, RagOutput } from './rag.schema';
|
|
6
|
-
export type { RagHandlerParams, RagHandlerResult, ConversationMessage, RagMetadata } from './rag.types';
|
|
7
|
-
export declare const ragMetadata: {
|
|
8
|
-
readonly id: "rag";
|
|
9
|
-
readonly name: "RAG Intelligence Agent";
|
|
10
|
-
readonly description: "Generates natural language answers based on provided context using Gemini";
|
|
11
|
-
readonly category: "intelligence";
|
|
12
|
-
readonly route: "/agents/rag";
|
|
13
|
-
readonly tags: readonly ["rag", "gemini", "qa", "generation"];
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/rag/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxD,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGxG,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC"}
|
package/dist/agents/rag/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAG Agent - Public exports (client-safe)
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ragMetadata = exports.RagOutputSchema = exports.RagInputSchema = void 0;
|
|
7
|
-
// Schema exports (client-safe)
|
|
8
|
-
var rag_schema_1 = require("./rag.schema");
|
|
9
|
-
Object.defineProperty(exports, "RagInputSchema", { enumerable: true, get: function () { return rag_schema_1.RagInputSchema; } });
|
|
10
|
-
Object.defineProperty(exports, "RagOutputSchema", { enumerable: true, get: function () { return rag_schema_1.RagOutputSchema; } });
|
|
11
|
-
// Metadata (client-safe)
|
|
12
|
-
exports.ragMetadata = {
|
|
13
|
-
id: 'rag',
|
|
14
|
-
name: 'RAG Intelligence Agent',
|
|
15
|
-
description: 'Generates natural language answers based on provided context using Gemini',
|
|
16
|
-
category: 'intelligence',
|
|
17
|
-
route: '/agents/rag',
|
|
18
|
-
tags: ['rag', 'gemini', 'qa', 'generation'],
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/rag/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+BAA+B;AAC/B,2CAA+D;AAAtD,4GAAA,cAAc,OAAA;AAAE,6GAAA,eAAe,OAAA;AAMxC,yBAAyB;AACZ,QAAA,WAAW,GAAG;IACzB,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,2EAA2E;IACxF,QAAQ,EAAE,cAAc;IACxB,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,CAAC;CACnC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import 'server-only';
|
|
2
|
-
import type { ExecutionContext } from '../../types/executionContext';
|
|
3
|
-
import type { RagHandlerParams, RagHandlerResult } from './rag.types';
|
|
4
|
-
/**
|
|
5
|
-
* Execute RAG answer generation
|
|
6
|
-
*/
|
|
7
|
-
export declare function executeRagHandler(params: RagHandlerParams, props: Record<string, string>, context: ExecutionContext): Promise<RagHandlerResult>;
|
|
8
|
-
//# sourceMappingURL=rag.handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rag.handler.d.ts","sourceRoot":"","sources":["../../../src/agents/rag/rag.handler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAUrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAuB,MAAM,aAAa,CAAC;AAkD3F;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAkD3B"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.executeRagHandler = executeRagHandler;
|
|
4
|
-
require("server-only");
|
|
5
|
-
/**
|
|
6
|
-
* RAG Agent Handler - Server-only execution logic
|
|
7
|
-
* Generates natural language answers based on provided context using Gemini
|
|
8
|
-
* Supports both RAG mode (with documents) and simple chat mode (conversation only)
|
|
9
|
-
*/
|
|
10
|
-
const ai_1 = require("ai");
|
|
11
|
-
const google_1 = require("@ai-sdk/google");
|
|
12
|
-
const GEMINI_RAG_MODEL = 'models/gemini-2.0-flash-exp';
|
|
13
|
-
/**
|
|
14
|
-
* Build prompt for simple chat mode (no documents)
|
|
15
|
-
*/
|
|
16
|
-
function buildSimpleChatPrompt(query, history) {
|
|
17
|
-
const conversationContext = history?.length
|
|
18
|
-
? `CONVERSATION HISTORY:\n${history.map((m) => `${m.role.toUpperCase()}: ${m.content}`).join('\n')}\n\n`
|
|
19
|
-
: '';
|
|
20
|
-
return `You are a helpful, friendly assistant.
|
|
21
|
-
|
|
22
|
-
${conversationContext}USER MESSAGE:
|
|
23
|
-
${query}
|
|
24
|
-
|
|
25
|
-
INSTRUCTIONS:
|
|
26
|
-
1. Respond naturally to the user's message.
|
|
27
|
-
2. Consider the conversation history for context continuity if available.
|
|
28
|
-
3. Be concise but helpful.
|
|
29
|
-
|
|
30
|
-
RESPONSE:`;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Build prompt for RAG mode (with documents)
|
|
34
|
-
*/
|
|
35
|
-
function buildRagPrompt(query, ragContext, history) {
|
|
36
|
-
const conversationContext = history?.length
|
|
37
|
-
? `CONVERSATION HISTORY:\n${history.map((m) => `${m.role.toUpperCase()}: ${m.content}`).join('\n')}\n\n`
|
|
38
|
-
: '';
|
|
39
|
-
return `You are a helpful and expert assistant for the Beddel Protocol.
|
|
40
|
-
|
|
41
|
-
${conversationContext}CONTEXT INFORMATION:
|
|
42
|
-
${ragContext}
|
|
43
|
-
|
|
44
|
-
USER QUESTION:
|
|
45
|
-
${query}
|
|
46
|
-
|
|
47
|
-
INSTRUCTIONS:
|
|
48
|
-
1. Answer the user's question based on the CONTEXT INFORMATION provided above.
|
|
49
|
-
2. Consider the CONVERSATION HISTORY for context continuity if available.
|
|
50
|
-
3. If the context does not contain the answer, politely state that you don't have enough information in the documentation to answer.
|
|
51
|
-
4. Be concise but comprehensive.
|
|
52
|
-
|
|
53
|
-
ANSWER:`;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Execute RAG answer generation
|
|
57
|
-
*/
|
|
58
|
-
async function executeRagHandler(params, props, context) {
|
|
59
|
-
const apiKey = props?.gemini_api_key?.trim();
|
|
60
|
-
if (!apiKey) {
|
|
61
|
-
throw new Error('Missing required prop: gemini_api_key');
|
|
62
|
-
}
|
|
63
|
-
const { query, history, mode = 'rag' } = params;
|
|
64
|
-
const ragContext = params.context || params.documents;
|
|
65
|
-
if (!query) {
|
|
66
|
-
throw new Error('Missing required RAG input: query');
|
|
67
|
-
}
|
|
68
|
-
// Simple mode doesn't require documents
|
|
69
|
-
if (mode === 'rag' && !ragContext) {
|
|
70
|
-
throw new Error('Missing required RAG input: context or documents');
|
|
71
|
-
}
|
|
72
|
-
const google = (0, google_1.createGoogleGenerativeAI)({ apiKey });
|
|
73
|
-
const model = google(GEMINI_RAG_MODEL);
|
|
74
|
-
const prompt = mode === 'simple'
|
|
75
|
-
? buildSimpleChatPrompt(query, history)
|
|
76
|
-
: buildRagPrompt(query, ragContext, history);
|
|
77
|
-
try {
|
|
78
|
-
context.log(`[RAG:${mode}] Generating answer for: "${query.substring(0, 50)}..."`);
|
|
79
|
-
const { text } = await (0, ai_1.generateText)({
|
|
80
|
-
model,
|
|
81
|
-
prompt,
|
|
82
|
-
temperature: mode === 'simple' ? 0.7 : 0.3,
|
|
83
|
-
});
|
|
84
|
-
return {
|
|
85
|
-
response: text,
|
|
86
|
-
answer: text,
|
|
87
|
-
timestamp: new Date().toISOString(),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
catch (error) {
|
|
91
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
92
|
-
context.log(`[RAG] Error: ${message}`);
|
|
93
|
-
return {
|
|
94
|
-
response: '',
|
|
95
|
-
answer: '',
|
|
96
|
-
timestamp: new Date().toISOString(),
|
|
97
|
-
error: message,
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=rag.handler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rag.handler.js","sourceRoot":"","sources":["../../../src/agents/rag/rag.handler.ts"],"names":[],"mappings":";;AAgEA,8CAsDC;AAtHD,uBAAqB;AAErB;;;;GAIG;AAEH,2BAAkC;AAClC,2CAA0D;AAI1D,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;AAEvD;;GAEG;AACH,SAAS,qBAAqB,CAAC,KAAa,EAAE,OAA+B;IAC3E,MAAM,mBAAmB,GAAG,OAAO,EAAE,MAAM;QACzC,CAAC,CAAC,0BAA0B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;QACxG,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;;EAEP,mBAAmB;EACnB,KAAK;;;;;;;UAOG,CAAC;AACX,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,KAAa,EAAE,UAAkB,EAAE,OAA+B;IACxF,MAAM,mBAAmB,GAAG,OAAO,EAAE,MAAM;QACzC,CAAC,CAAC,0BAA0B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;QACxG,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;;EAEP,mBAAmB;EACnB,UAAU;;;EAGV,KAAK;;;;;;;;QAQC,CAAC;AACT,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,iBAAiB,CACrC,MAAwB,EACxB,KAA6B,EAC7B,OAAyB;IAEzB,MAAM,MAAM,GAAG,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;IAChD,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC;IAEtD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IAED,wCAAwC;IACxC,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,MAAM,GAAG,IAAA,iCAAwB,EAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAEvC,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ;QAC9B,CAAC,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC;QACvC,CAAC,CAAC,cAAc,CAAC,KAAK,EAAE,UAAW,EAAE,OAAO,CAAC,CAAC;IAEhD,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,6BAA6B,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;QAEnF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,iBAAY,EAAC;YAClC,KAAK;YACL,MAAM;YACN,WAAW,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;SAC3C,CAAC,CAAC;QAEH,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC,CAAC;IAEJ,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,GAAG,CAAC,gBAAgB,OAAO,EAAE,CAAC,CAAC;QACvC,OAAO;YACL,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,EAAE;YACV,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RAG Agent Schema - Zod validation schemas
|
|
3
|
-
* Safe for both client and server
|
|
4
|
-
*/
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
export declare const RagInputSchema: z.ZodObject<{
|
|
7
|
-
query: z.ZodString;
|
|
8
|
-
context: z.ZodOptional<z.ZodString>;
|
|
9
|
-
documents: z.ZodOptional<z.ZodString>;
|
|
10
|
-
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
-
role: z.ZodEnum<{
|
|
12
|
-
user: "user";
|
|
13
|
-
assistant: "assistant";
|
|
14
|
-
system: "system";
|
|
15
|
-
}>;
|
|
16
|
-
content: z.ZodString;
|
|
17
|
-
}, z.core.$strip>>>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export declare const RagOutputSchema: z.ZodObject<{
|
|
20
|
-
response: z.ZodString;
|
|
21
|
-
answer: z.ZodOptional<z.ZodString>;
|
|
22
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
23
|
-
error: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export type RagInput = z.infer<typeof RagInputSchema>;
|
|
26
|
-
export type RagOutput = z.infer<typeof RagOutputSchema>;
|
|
27
|
-
//# sourceMappingURL=rag.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rag.schema.d.ts","sourceRoot":"","sources":["../../../src/agents/rag/rag.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;iBAQzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;iBAK1B,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAG Agent Schema - Zod validation schemas
|
|
4
|
-
* Safe for both client and server
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.RagOutputSchema = exports.RagInputSchema = void 0;
|
|
8
|
-
const zod_1 = require("zod");
|
|
9
|
-
exports.RagInputSchema = zod_1.z.object({
|
|
10
|
-
query: zod_1.z.string().min(1),
|
|
11
|
-
context: zod_1.z.string().optional(),
|
|
12
|
-
documents: zod_1.z.string().optional(),
|
|
13
|
-
history: zod_1.z.array(zod_1.z.object({
|
|
14
|
-
role: zod_1.z.enum(['user', 'assistant', 'system']),
|
|
15
|
-
content: zod_1.z.string(),
|
|
16
|
-
})).optional(),
|
|
17
|
-
});
|
|
18
|
-
exports.RagOutputSchema = zod_1.z.object({
|
|
19
|
-
response: zod_1.z.string(),
|
|
20
|
-
answer: zod_1.z.string().optional(),
|
|
21
|
-
timestamp: zod_1.z.string().optional(),
|
|
22
|
-
error: zod_1.z.string().optional(),
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=rag.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rag.schema.js","sourceRoot":"","sources":["../../../src/agents/rag/rag.schema.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC;QACxB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CAAC,CAAC,QAAQ,EAAE;CACf,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RAG Agent Types - Shared between client and server
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Conversation message
|
|
6
|
-
*/
|
|
7
|
-
export interface ConversationMessage {
|
|
8
|
-
role: 'user' | 'assistant' | 'system';
|
|
9
|
-
content: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* RAG execution mode
|
|
13
|
-
* - 'rag': Uses provided documents/context for answer generation
|
|
14
|
-
* - 'simple': Direct LLM chat without document context
|
|
15
|
-
*/
|
|
16
|
-
export type RagMode = 'rag' | 'simple';
|
|
17
|
-
/**
|
|
18
|
-
* Parameters for RAG answer generation
|
|
19
|
-
*/
|
|
20
|
-
export interface RagHandlerParams {
|
|
21
|
-
query: string;
|
|
22
|
-
context?: string;
|
|
23
|
-
documents?: string;
|
|
24
|
-
history?: ConversationMessage[];
|
|
25
|
-
mode?: RagMode;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Result from RAG answer generation
|
|
29
|
-
*/
|
|
30
|
-
export interface RagHandlerResult {
|
|
31
|
-
response: string;
|
|
32
|
-
answer: string;
|
|
33
|
-
timestamp: string;
|
|
34
|
-
error?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* RAG agent metadata
|
|
38
|
-
*/
|
|
39
|
-
export interface RagMetadata {
|
|
40
|
-
id: 'rag';
|
|
41
|
-
name: string;
|
|
42
|
-
description: string;
|
|
43
|
-
category: 'intelligence';
|
|
44
|
-
route: '/agents/rag';
|
|
45
|
-
tags: string[];
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=rag.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rag.types.d.ts","sourceRoot":"","sources":["../../../src/agents/rag/rag.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,KAAK,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rag.types.js","sourceRoot":"","sources":["../../../src/agents/rag/rag.types.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
package/dist/agents/rag/rag.yaml
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# RAG Agent - Native Builtin Agent for Beddel Runtime
|
|
2
|
-
# Route: /agents/rag
|
|
3
|
-
# Method: rag.execute
|
|
4
|
-
|
|
5
|
-
agent:
|
|
6
|
-
id: rag
|
|
7
|
-
version: 1.0.0
|
|
8
|
-
protocol: beddel-declarative-protocol/v2.0
|
|
9
|
-
|
|
10
|
-
metadata:
|
|
11
|
-
name: "RAG Intelligence Agent"
|
|
12
|
-
description: "Generates natural language answers based on provided context using Gemini"
|
|
13
|
-
category: "intelligence"
|
|
14
|
-
route: "/agents/rag"
|
|
15
|
-
tags:
|
|
16
|
-
- "rag"
|
|
17
|
-
- "gemini"
|
|
18
|
-
- "qa"
|
|
19
|
-
- "generation"
|
|
20
|
-
|
|
21
|
-
schema:
|
|
22
|
-
input:
|
|
23
|
-
type: "object"
|
|
24
|
-
properties:
|
|
25
|
-
query:
|
|
26
|
-
type: "string"
|
|
27
|
-
description: "User question to answer"
|
|
28
|
-
context:
|
|
29
|
-
type: "string"
|
|
30
|
-
description: "Retrieved documentation or context for answering"
|
|
31
|
-
documents:
|
|
32
|
-
type: "string"
|
|
33
|
-
description: "Alternative to context - retrieved documents"
|
|
34
|
-
history:
|
|
35
|
-
type: "array"
|
|
36
|
-
items:
|
|
37
|
-
type: "object"
|
|
38
|
-
properties:
|
|
39
|
-
role:
|
|
40
|
-
type: "string"
|
|
41
|
-
enum: ["user", "assistant", "system"]
|
|
42
|
-
content:
|
|
43
|
-
type: "string"
|
|
44
|
-
description: "Conversation history for context continuity"
|
|
45
|
-
required: ["query"]
|
|
46
|
-
|
|
47
|
-
output:
|
|
48
|
-
type: "object"
|
|
49
|
-
properties:
|
|
50
|
-
response:
|
|
51
|
-
type: "string"
|
|
52
|
-
description: "Generated answer"
|
|
53
|
-
answer:
|
|
54
|
-
type: "string"
|
|
55
|
-
description: "Alias for response"
|
|
56
|
-
timestamp:
|
|
57
|
-
type: "string"
|
|
58
|
-
description: "ISO timestamp of generation"
|
|
59
|
-
error:
|
|
60
|
-
type: "string"
|
|
61
|
-
required: ["response"]
|
|
62
|
-
|
|
63
|
-
logic:
|
|
64
|
-
workflow:
|
|
65
|
-
- name: "generate-answer"
|
|
66
|
-
type: "rag"
|
|
67
|
-
action:
|
|
68
|
-
query: "$input.query"
|
|
69
|
-
context: "$input.context"
|
|
70
|
-
documents: "$input.documents"
|
|
71
|
-
history: "$input.history"
|
|
72
|
-
result: "ragResult"
|
|
73
|
-
|
|
74
|
-
- name: "deliver-response"
|
|
75
|
-
type: "output-generator"
|
|
76
|
-
action:
|
|
77
|
-
type: "generate"
|
|
78
|
-
output:
|
|
79
|
-
response: "$ragResult.response"
|
|
80
|
-
answer: "$ragResult.answer"
|
|
81
|
-
timestamp: "$ragResult.timestamp"
|
|
82
|
-
error: "$ragResult.error"
|
|
83
|
-
|
|
84
|
-
output:
|
|
85
|
-
schema:
|
|
86
|
-
response: "$ragResult.response"
|
|
87
|
-
answer: "$ragResult.answer"
|
|
88
|
-
timestamp: "$ragResult.timestamp"
|
|
89
|
-
error: "$ragResult.error"
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent Registry Service
|
|
3
|
-
* Manages registration and execution of declarative YAML agents
|
|
4
|
-
*/
|
|
5
|
-
import { ExecutionContext } from "../../types/executionContext";
|
|
6
|
-
export interface AgentRegistration {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
protocol: string;
|
|
11
|
-
route: string;
|
|
12
|
-
requiredProps: string[];
|
|
13
|
-
yamlContent: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Agent Registry - Manages declarative agent registration and execution
|
|
17
|
-
*/
|
|
18
|
-
export declare class AgentRegistry {
|
|
19
|
-
private readonly agents;
|
|
20
|
-
private readonly customFunctions;
|
|
21
|
-
constructor();
|
|
22
|
-
/**
|
|
23
|
-
* Register an agent
|
|
24
|
-
*/
|
|
25
|
-
registerAgent(agent: AgentRegistration, allowOverwrite?: boolean): void;
|
|
26
|
-
/**
|
|
27
|
-
* Execute registered agent
|
|
28
|
-
*/
|
|
29
|
-
executeAgent(agentName: string, input: Record<string, any>, props: Record<string, string>, context: ExecutionContext): Promise<any>;
|
|
30
|
-
/**
|
|
31
|
-
* Get registered agent
|
|
32
|
-
*/
|
|
33
|
-
getAgent(agentName: string): AgentRegistration | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Get all registered agents
|
|
36
|
-
*/
|
|
37
|
-
getAllAgents(): AgentRegistration[];
|
|
38
|
-
/**
|
|
39
|
-
* Load custom agents from a specified directory
|
|
40
|
-
* @param customAgentsPath - Optional path to custom agents directory. Defaults to process.cwd()/agents
|
|
41
|
-
*/
|
|
42
|
-
loadCustomAgents(customAgentsPath?: string): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Register a custom agent from a YAML file
|
|
45
|
-
*/
|
|
46
|
-
private registerCustomAgent;
|
|
47
|
-
/**
|
|
48
|
-
* Discover all YAML files in the custom agents directory
|
|
49
|
-
*/
|
|
50
|
-
private discoverCustomAgentFiles;
|
|
51
|
-
/**
|
|
52
|
-
* Register built-in agents
|
|
53
|
-
*/
|
|
54
|
-
private registerBuiltinAgents;
|
|
55
|
-
/**
|
|
56
|
-
* Register Joker Agent
|
|
57
|
-
*/
|
|
58
|
-
private registerJokerAgent;
|
|
59
|
-
/**
|
|
60
|
-
* Register Translator Agent
|
|
61
|
-
*/
|
|
62
|
-
private registerTranslatorAgent;
|
|
63
|
-
/**
|
|
64
|
-
* Register Image Generator Agent
|
|
65
|
-
*/
|
|
66
|
-
private registerImageAgent;
|
|
67
|
-
/**
|
|
68
|
-
* Register MCP Tool Agent
|
|
69
|
-
*/
|
|
70
|
-
private registerMcpToolAgent;
|
|
71
|
-
/**
|
|
72
|
-
* Register Gemini Vectorize Agent
|
|
73
|
-
*/
|
|
74
|
-
private registerGeminiVectorizeAgent;
|
|
75
|
-
/**
|
|
76
|
-
* Register ChromaDB Agent
|
|
77
|
-
*/
|
|
78
|
-
private registerChromaDBAgent;
|
|
79
|
-
/**
|
|
80
|
-
* Register GitMCP Agent
|
|
81
|
-
*/
|
|
82
|
-
private registerGitMcpAgent;
|
|
83
|
-
/**
|
|
84
|
-
* Register RAG Agent
|
|
85
|
-
*/
|
|
86
|
-
private registerRagAgent;
|
|
87
|
-
/**
|
|
88
|
-
* Register Chat Agent (Orchestrator)
|
|
89
|
-
*/
|
|
90
|
-
private registerChatAgent;
|
|
91
|
-
/**
|
|
92
|
-
* Parse agent YAML content
|
|
93
|
-
*/
|
|
94
|
-
private parseAgentYaml;
|
|
95
|
-
/**
|
|
96
|
-
* Validate agent registration
|
|
97
|
-
*/
|
|
98
|
-
private validateAgent;
|
|
99
|
-
/**
|
|
100
|
-
* Resolve agent asset path when running in bundled runtimes
|
|
101
|
-
*/
|
|
102
|
-
private resolveAgentPath;
|
|
103
|
-
/**
|
|
104
|
-
* Load custom TypeScript function implementations from /agents directory
|
|
105
|
-
* @param agentsPath - Path to the agents directory
|
|
106
|
-
*/
|
|
107
|
-
private loadCustomFunctions;
|
|
108
|
-
/**
|
|
109
|
-
* Get a custom function by its namespaced key
|
|
110
|
-
* @param name - Function name in format "agent-name/functionName"
|
|
111
|
-
* @returns The registered function or undefined
|
|
112
|
-
*/
|
|
113
|
-
getCustomFunction(name: string): Function | undefined;
|
|
114
|
-
}
|
|
115
|
-
export declare const agentRegistry: AgentRegistry;
|
|
116
|
-
export default AgentRegistry;
|
|
117
|
-
//# sourceMappingURL=agentRegistry.d.ts.map
|