@bluefly/openstandardagents 0.5.1 → 0.5.3
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/.well-known/agent-card.json +28 -0
- package/.well-known/ossa.json +22 -0
- package/CHANGELOG.md +44 -26
- package/README.md +41 -697
- package/docs/README.md +59 -0
- package/docs/migration-v0.5.2.md +18 -0
- package/docs/spec.md +41 -0
- package/package.json +55 -371
- package/packages/cli/dist/cli.d.ts +1 -0
- package/packages/cli/dist/cli.js +128 -0
- package/packages/cli/package.json +25 -0
- package/packages/discovery/dist/index.d.ts +10 -0
- package/packages/discovery/dist/index.js +20 -0
- package/packages/discovery/package.json +25 -0
- package/packages/identity/dist/index.d.ts +3 -0
- package/packages/identity/dist/index.js +11 -0
- package/packages/identity/package.json +26 -0
- package/packages/policy/dist/index.d.ts +62 -0
- package/packages/policy/dist/index.js +17 -0
- package/packages/policy/package.json +22 -0
- package/packages/schema/package.json +14 -0
- package/packages/validator/dist/index.d.ts +13 -0
- package/packages/validator/dist/index.js +90 -0
- package/packages/validator/package.json +28 -0
- package/spec/reference/compliance-engine.openapi.yaml +84 -0
- package/spec/reference/reference-agents/advisor-pattern-example/manifest.ossa.yaml +57 -0
- package/spec/reference/reference-agents/compliance-auditor/manifest.ossa.yaml +0 -6
- package/spec/reference/reference-agents/doc-agent/manifest.ossa.yaml +1 -1
- package/spec/reference/reference-agents/mr-reviewer/manifest.ossa.yaml +1 -1
- package/spec/reference/reference-agents/mr-reviewer/system-prompt.md +1 -1
- package/spec/reference/reference-agents/ossa-validator-v0.3/manifest.ossa.yaml +1 -4
- package/spec/v0.5/agent-builder-openapi.yaml +1 -1
- package/spec/v0.5/agent-card.schema.json +2 -2
- package/spec/v0.5/agent.schema.json +289 -8
- package/spec/v0.5/conformance/profiles/baseline.json +7 -1
- package/spec/v0.5/extensions/a2a/a2a.schema.json +1 -1
- package/spec/v0.5/extensions/ag2/README.md +38 -0
- package/spec/v0.5/extensions/cognition/README.md +38 -0
- package/spec/v0.5/extensions/crewai/README.md +76 -0
- package/spec/v0.5/extensions/drupal/README.md +39 -0
- package/spec/v0.5/extensions/duadp/duadp-export-bundle.schema.json +47 -0
- package/spec/v0.5/extensions/duadp/duadp-validation-report.schema.json +54 -0
- package/spec/v0.5/extensions/economics/README.md +39 -0
- package/spec/v0.5/extensions/emotion.schema.json +47 -0
- package/spec/v0.5/extensions/evals/README.md +49 -0
- package/spec/v0.5/extensions/governance/README.md +61 -0
- package/spec/v0.5/extensions/governance/governance.schema.json +117 -0
- package/spec/v0.5/extensions/identity/README.md +50 -0
- package/spec/v0.5/extensions/kagent/kagent.schema.json +51 -0
- package/spec/v0.5/extensions/langchain/README.md +79 -0
- package/spec/v0.5/extensions/langgraph/README.md +97 -0
- package/spec/v0.5/extensions/memory/README.md +92 -0
- package/spec/v0.5/extensions/memory/governed-memory.schema.json +108 -0
- package/spec/v0.5/extensions/memory/memory-contract.schema.json +240 -0
- package/spec/v0.5/extensions/team/README.md +51 -0
- package/spec/v0.5/extensions/token-efficiency/README.md +55 -0
- package/spec/v0.5/invocation.openapi.yaml +120 -0
- package/spec/v0.5/memory-contract.schema.json +300 -0
- package/spec/v0.5/policy-binding.schema.json +38 -0
- package/spec/v0.5/registry.schema.json +31 -0
- package/spec/v0.5/role.schema.json +173 -0
- package/spec/v0.5/workflow.schema.json +53 -0
- package/.version.json +0 -7
- package/bin/ossa +0 -11
- package/bin/ossa-dev +0 -8
- package/bin/ossa-validate-all +0 -55
- package/bin/ossa-version +0 -23
- package/bin/postinstall +0 -62
- package/dist/.version.json +0 -7
- package/dist/adapters/a2a/a2a-protocol.d.ts +0 -398
- package/dist/adapters/a2a/a2a-protocol.js +0 -259
- package/dist/adapters/a2a/a2a-tool.d.ts +0 -110
- package/dist/adapters/a2a/a2a-tool.js +0 -351
- package/dist/adapters/a2a/agent-mesh.d.ts +0 -195
- package/dist/adapters/a2a/agent-mesh.js +0 -347
- package/dist/adapters/a2a/delegation.d.ts +0 -232
- package/dist/adapters/a2a/delegation.js +0 -236
- package/dist/adapters/a2a/index.d.ts +0 -18
- package/dist/adapters/a2a/index.js +0 -24
- package/dist/adapters/a2a/mcp-integration.d.ts +0 -259
- package/dist/adapters/a2a/mcp-integration.js +0 -331
- package/dist/adapters/a2a/mcp-transport.d.ts +0 -124
- package/dist/adapters/a2a/mcp-transport.js +0 -302
- package/dist/adapters/a2a/swarm-orchestration.d.ts +0 -278
- package/dist/adapters/a2a/swarm-orchestration.js +0 -322
- package/dist/adapters/agent-skills/exporter.d.ts +0 -98
- package/dist/adapters/agent-skills/exporter.js +0 -460
- package/dist/adapters/agent-skills/index.d.ts +0 -7
- package/dist/adapters/agent-skills/index.js +0 -6
- package/dist/adapters/anthropic/claude-optimizations.d.ts +0 -44
- package/dist/adapters/anthropic/claude-optimizations.js +0 -187
- package/dist/adapters/anthropic/client.d.ts +0 -56
- package/dist/adapters/anthropic/client.js +0 -105
- package/dist/adapters/anthropic/config-adapter.d.ts +0 -22
- package/dist/adapters/anthropic/config-adapter.js +0 -48
- package/dist/adapters/anthropic/config.d.ts +0 -149
- package/dist/adapters/anthropic/config.js +0 -157
- package/dist/adapters/anthropic/index.d.ts +0 -19
- package/dist/adapters/anthropic/index.js +0 -20
- package/dist/adapters/anthropic/messages.d.ts +0 -93
- package/dist/adapters/anthropic/messages.js +0 -285
- package/dist/adapters/anthropic/tools.d.ts +0 -111
- package/dist/adapters/anthropic/tools.js +0 -272
- package/dist/adapters/autogen/config-adapter.d.ts +0 -22
- package/dist/adapters/autogen/config-adapter.js +0 -72
- package/dist/adapters/base/adapter.interface.d.ts +0 -327
- package/dist/adapters/base/adapter.interface.js +0 -138
- package/dist/adapters/base/base-exporter.d.ts +0 -108
- package/dist/adapters/base/base-exporter.js +0 -165
- package/dist/adapters/base/common-file-generator.d.ts +0 -217
- package/dist/adapters/base/common-file-generator.js +0 -719
- package/dist/adapters/base/index.d.ts +0 -23
- package/dist/adapters/base/index.js +0 -29
- package/dist/adapters/base/manifest-validator.d.ts +0 -82
- package/dist/adapters/base/manifest-validator.js +0 -264
- package/dist/adapters/base/perfect-agent-utils.d.ts +0 -29
- package/dist/adapters/base/perfect-agent-utils.js +0 -327
- package/dist/adapters/base/template-engine.d.ts +0 -52
- package/dist/adapters/base/template-engine.js +0 -157
- package/dist/adapters/base/tool-params.d.ts +0 -42
- package/dist/adapters/base/tool-params.js +0 -123
- package/dist/adapters/browser/browser-exporter.d.ts +0 -26
- package/dist/adapters/browser/browser-exporter.js +0 -73
- package/dist/adapters/browser/browser-runner.d.ts +0 -23
- package/dist/adapters/browser/browser-runner.js +0 -46
- package/dist/adapters/browser/index.d.ts +0 -9
- package/dist/adapters/browser/index.js +0 -9
- package/dist/adapters/claude-agent-sdk/adapter.d.ts +0 -58
- package/dist/adapters/claude-agent-sdk/adapter.js +0 -705
- package/dist/adapters/claude-agent-sdk/index.d.ts +0 -9
- package/dist/adapters/claude-agent-sdk/index.js +0 -8
- package/dist/adapters/claude-agent-sdk/types.d.ts +0 -135
- package/dist/adapters/claude-agent-sdk/types.js +0 -14
- package/dist/adapters/claude-code/adapter.d.ts +0 -64
- package/dist/adapters/claude-code/adapter.js +0 -341
- package/dist/adapters/claude-code/types.d.ts +0 -154
- package/dist/adapters/claude-code/types.js +0 -6
- package/dist/adapters/crewai/adapter.d.ts +0 -109
- package/dist/adapters/crewai/adapter.js +0 -1769
- package/dist/adapters/crewai/converter.d.ts +0 -25
- package/dist/adapters/crewai/converter.js +0 -141
- package/dist/adapters/crewai/index.d.ts +0 -7
- package/dist/adapters/crewai/index.js +0 -6
- package/dist/adapters/crewai/types.d.ts +0 -29
- package/dist/adapters/crewai/types.js +0 -5
- package/dist/adapters/crewai-adapter.d.ts +0 -57
- package/dist/adapters/crewai-adapter.js +0 -166
- package/dist/adapters/cursor/adapter.d.ts +0 -75
- package/dist/adapters/cursor/adapter.js +0 -478
- package/dist/adapters/cursor/types.d.ts +0 -221
- package/dist/adapters/cursor/types.js +0 -6
- package/dist/adapters/docker/config-adapter.d.ts +0 -22
- package/dist/adapters/docker/config-adapter.js +0 -54
- package/dist/adapters/docker/docker-exporter.d.ts +0 -38
- package/dist/adapters/docker/docker-exporter.js +0 -648
- package/dist/adapters/docker/generators.d.ts +0 -85
- package/dist/adapters/docker/generators.js +0 -783
- package/dist/adapters/docker/index.d.ts +0 -10
- package/dist/adapters/docker/index.js +0 -9
- package/dist/adapters/docker/openclaw-bridge.d.ts +0 -57
- package/dist/adapters/docker/openclaw-bridge.js +0 -173
- package/dist/adapters/docker/types.d.ts +0 -87
- package/dist/adapters/docker/types.js +0 -5
- package/dist/adapters/drupal/adapter.d.ts +0 -59
- package/dist/adapters/drupal/adapter.js +0 -430
- package/dist/adapters/drupal/drupal-utils.d.ts +0 -213
- package/dist/adapters/drupal/drupal-utils.js +0 -313
- package/dist/adapters/drupal/generator.d.ts +0 -303
- package/dist/adapters/drupal/generator.js +0 -2628
- package/dist/adapters/drupal/index.d.ts +0 -114
- package/dist/adapters/drupal/index.js +0 -301
- package/dist/adapters/drupal/manifest-exporter.d.ts +0 -115
- package/dist/adapters/drupal/manifest-exporter.js +0 -584
- package/dist/adapters/drupal/twig-renderer.d.ts +0 -23
- package/dist/adapters/drupal/twig-renderer.js +0 -99
- package/dist/adapters/fusioninventory/config-adapter.d.ts +0 -22
- package/dist/adapters/fusioninventory/config-adapter.js +0 -145
- package/dist/adapters/fusioninventory/types.d.ts +0 -40
- package/dist/adapters/fusioninventory/types.js +0 -29
- package/dist/adapters/gitlab/agent-generator.d.ts +0 -103
- package/dist/adapters/gitlab/agent-generator.js +0 -909
- package/dist/adapters/gitlab/converter.d.ts +0 -35
- package/dist/adapters/gitlab/converter.js +0 -113
- package/dist/adapters/gitlab/external-agent-generator.d.ts +0 -70
- package/dist/adapters/gitlab/external-agent-generator.js +0 -347
- package/dist/adapters/gitlab/flow-generator.d.ts +0 -73
- package/dist/adapters/gitlab/flow-generator.js +0 -710
- package/dist/adapters/gitlab/index.d.ts +0 -15
- package/dist/adapters/gitlab/index.js +0 -11
- package/dist/adapters/gitlab/package-generator.d.ts +0 -180
- package/dist/adapters/gitlab/package-generator.js +0 -2400
- package/dist/adapters/gitlab/router-generator.d.ts +0 -113
- package/dist/adapters/gitlab/router-generator.js +0 -545
- package/dist/adapters/gitlab/trigger-generator.d.ts +0 -154
- package/dist/adapters/gitlab/trigger-generator.js +0 -279
- package/dist/adapters/gitlab/types.d.ts +0 -120
- package/dist/adapters/gitlab/types.js +0 -5
- package/dist/adapters/gitlab-duo/adapter.d.ts +0 -72
- package/dist/adapters/gitlab-duo/adapter.js +0 -350
- package/dist/adapters/index.d.ts +0 -14
- package/dist/adapters/index.js +0 -73
- package/dist/adapters/kubernetes/config-adapter.d.ts +0 -22
- package/dist/adapters/kubernetes/config-adapter.js +0 -112
- package/dist/adapters/kubernetes/generator.d.ts +0 -117
- package/dist/adapters/kubernetes/generator.js +0 -1386
- package/dist/adapters/kubernetes/index.d.ts +0 -7
- package/dist/adapters/kubernetes/index.js +0 -6
- package/dist/adapters/kubernetes/kagent-crd-generator.d.ts +0 -72
- package/dist/adapters/kubernetes/kagent-crd-generator.js +0 -237
- package/dist/adapters/kubernetes/types.d.ts +0 -62
- package/dist/adapters/kubernetes/types.js +0 -5
- package/dist/adapters/langchain/adapter.d.ts +0 -46
- package/dist/adapters/langchain/adapter.js +0 -289
- package/dist/adapters/langchain/converter.d.ts +0 -21
- package/dist/adapters/langchain/converter.js +0 -153
- package/dist/adapters/langchain/index.d.ts +0 -7
- package/dist/adapters/langchain/index.js +0 -6
- package/dist/adapters/langchain/types.d.ts +0 -27
- package/dist/adapters/langchain/types.js +0 -5
- package/dist/adapters/langchain-adapter.d.ts +0 -45
- package/dist/adapters/langchain-adapter.js +0 -132
- package/dist/adapters/langflow/platform-adapter.d.ts +0 -23
- package/dist/adapters/langflow/platform-adapter.js +0 -103
- package/dist/adapters/langflow-adapter.d.ts +0 -52
- package/dist/adapters/langflow-adapter.js +0 -247
- package/dist/adapters/langfuse.adapter.d.ts +0 -30
- package/dist/adapters/langfuse.adapter.js +0 -65
- package/dist/adapters/langsmith.adapter.d.ts +0 -29
- package/dist/adapters/langsmith.adapter.js +0 -62
- package/dist/adapters/mcp/adapter.d.ts +0 -49
- package/dist/adapters/mcp/adapter.js +0 -336
- package/dist/adapters/mcp/converter.d.ts +0 -32
- package/dist/adapters/mcp/converter.js +0 -343
- package/dist/adapters/mobile-agent/adapter.d.ts +0 -63
- package/dist/adapters/mobile-agent/adapter.js +0 -678
- package/dist/adapters/n8n/converter.d.ts +0 -17
- package/dist/adapters/n8n/converter.js +0 -77
- package/dist/adapters/n8n/index.d.ts +0 -7
- package/dist/adapters/n8n/index.js +0 -6
- package/dist/adapters/n8n/types.d.ts +0 -23
- package/dist/adapters/n8n/types.js +0 -5
- package/dist/adapters/npm/adapter.d.ts +0 -41
- package/dist/adapters/npm/adapter.js +0 -301
- package/dist/adapters/npm/converter.d.ts +0 -41
- package/dist/adapters/npm/converter.js +0 -357
- package/dist/adapters/npm/package-generator.d.ts +0 -93
- package/dist/adapters/npm/package-generator.js +0 -240
- package/dist/adapters/npm/type-aware-dependencies.d.ts +0 -19
- package/dist/adapters/npm/type-aware-dependencies.js +0 -160
- package/dist/adapters/npm/types.d.ts +0 -116
- package/dist/adapters/npm/types.js +0 -6
- package/dist/adapters/openai-agents/adapter.d.ts +0 -31
- package/dist/adapters/openai-agents/adapter.js +0 -346
- package/dist/adapters/openai-agents/config-adapter.d.ts +0 -25
- package/dist/adapters/openai-agents/config-adapter.js +0 -60
- package/dist/adapters/openai-agents/index.d.ts +0 -10
- package/dist/adapters/openai-agents/index.js +0 -10
- package/dist/adapters/openapi-adapter.d.ts +0 -93
- package/dist/adapters/openapi-adapter.js +0 -317
- package/dist/adapters/opentelemetry.adapter.d.ts +0 -142
- package/dist/adapters/opentelemetry.adapter.js +0 -375
- package/dist/adapters/phoenix.adapter.d.ts +0 -28
- package/dist/adapters/phoenix.adapter.js +0 -65
- package/dist/adapters/registry/platform-registry.d.ts +0 -69
- package/dist/adapters/registry/platform-registry.js +0 -94
- package/dist/adapters/semantic-kernel/config-adapter.d.ts +0 -22
- package/dist/adapters/semantic-kernel/config-adapter.js +0 -64
- package/dist/adapters/symfony/index.d.ts +0 -163
- package/dist/adapters/symfony/index.js +0 -272
- package/dist/adapters/symfony/platform-adapter.d.ts +0 -31
- package/dist/adapters/symfony/platform-adapter.js +0 -317
- package/dist/adapters/temporal/converter.d.ts +0 -17
- package/dist/adapters/temporal/converter.js +0 -96
- package/dist/adapters/temporal/index.d.ts +0 -7
- package/dist/adapters/temporal/index.js +0 -6
- package/dist/adapters/temporal/types.d.ts +0 -23
- package/dist/adapters/temporal/types.js +0 -5
- package/dist/adapters/warp/adapter.d.ts +0 -52
- package/dist/adapters/warp/adapter.js +0 -386
- package/dist/adapters/warp/types.d.ts +0 -140
- package/dist/adapters/warp/types.js +0 -6
- package/dist/api/index.d.ts +0 -13
- package/dist/api/index.js +0 -45
- package/dist/api/middleware/cors.d.ts +0 -6
- package/dist/api/middleware/cors.js +0 -17
- package/dist/api/middleware/error-handler.d.ts +0 -6
- package/dist/api/middleware/error-handler.js +0 -32
- package/dist/api/middleware/request-id.d.ts +0 -6
- package/dist/api/middleware/request-id.js +0 -12
- package/dist/api/middleware/validate.d.ts +0 -8
- package/dist/api/middleware/validate.js +0 -38
- package/dist/api/routes/agents-md.router.d.ts +0 -7
- package/dist/api/routes/agents-md.router.js +0 -93
- package/dist/api/routes/convert.router.d.ts +0 -6
- package/dist/api/routes/convert.router.js +0 -42
- package/dist/api/routes/export.router.d.ts +0 -6
- package/dist/api/routes/export.router.js +0 -44
- package/dist/api/routes/health.router.d.ts +0 -6
- package/dist/api/routes/health.router.js +0 -20
- package/dist/api/routes/manifests.router.d.ts +0 -6
- package/dist/api/routes/manifests.router.js +0 -128
- package/dist/api/routes/mcp.router.d.ts +0 -8
- package/dist/api/routes/mcp.router.js +0 -68
- package/dist/api/routes/skills.router.d.ts +0 -6
- package/dist/api/routes/skills.router.js +0 -53
- package/dist/api/routes/validate.router.d.ts +0 -7
- package/dist/api/routes/validate.router.js +0 -46
- package/dist/api/routes/version.router.d.ts +0 -6
- package/dist/api/routes/version.router.js +0 -28
- package/dist/api/routes/wizard.router.d.ts +0 -6
- package/dist/api/routes/wizard.router.js +0 -110
- package/dist/api/routes/workspace.router.d.ts +0 -6
- package/dist/api/routes/workspace.router.js +0 -52
- package/dist/api/server.d.ts +0 -10
- package/dist/api/server.js +0 -21
- package/dist/bot/agent-architecture_validator.d.ts +0 -8
- package/dist/bot/agent-architecture_validator.js +0 -15
- package/dist/bot/agent-ci_pipeline.d.ts +0 -7
- package/dist/bot/agent-ci_pipeline.js +0 -7
- package/dist/bot/agent-compliance.d.ts +0 -56
- package/dist/bot/agent-compliance.js +0 -222
- package/dist/bot/agent-dependency_updater.d.ts +0 -9
- package/dist/bot/agent-dependency_updater.js +0 -9
- package/dist/bot/agent-security_scanner.d.ts +0 -11
- package/dist/bot/agent-security_scanner.js +0 -21
- package/dist/cli/banner.d.ts +0 -25
- package/dist/cli/banner.js +0 -153
- package/dist/cli/commands/agent/discover-type.command.d.ts +0 -39
- package/dist/cli/commands/agent/discover-type.command.js +0 -332
- package/dist/cli/commands/agent-card.command.d.ts +0 -9
- package/dist/cli/commands/agent-card.command.js +0 -185
- package/dist/cli/commands/agent-wizard.command.d.ts +0 -21
- package/dist/cli/commands/agent-wizard.command.js +0 -1558
- package/dist/cli/commands/agents/delete.command.d.ts +0 -10
- package/dist/cli/commands/agents/delete.command.js +0 -105
- package/dist/cli/commands/agents/list.command.d.ts +0 -10
- package/dist/cli/commands/agents/list.command.js +0 -140
- package/dist/cli/commands/agents/persona.command.d.ts +0 -10
- package/dist/cli/commands/agents/persona.command.js +0 -519
- package/dist/cli/commands/agents/show.command.d.ts +0 -10
- package/dist/cli/commands/agents/show.command.js +0 -182
- package/dist/cli/commands/agents-local.command.d.ts +0 -10
- package/dist/cli/commands/agents-local.command.js +0 -281
- package/dist/cli/commands/agents-md/batch.command.d.ts +0 -3
- package/dist/cli/commands/agents-md/batch.command.js +0 -63
- package/dist/cli/commands/agents-md/generate.command.d.ts +0 -3
- package/dist/cli/commands/agents-md/generate.command.js +0 -43
- package/dist/cli/commands/agents-md/list.command.d.ts +0 -3
- package/dist/cli/commands/agents-md/list.command.js +0 -59
- package/dist/cli/commands/agents-md/validate.command.d.ts +0 -3
- package/dist/cli/commands/agents-md/validate.command.js +0 -42
- package/dist/cli/commands/agents-md.command.d.ts +0 -7
- package/dist/cli/commands/agents-md.command.js +0 -236
- package/dist/cli/commands/agents-sync.command.d.ts +0 -19
- package/dist/cli/commands/agents-sync.command.js +0 -278
- package/dist/cli/commands/agents.command.d.ts +0 -11
- package/dist/cli/commands/agents.command.js +0 -216
- package/dist/cli/commands/audit.d.ts +0 -8
- package/dist/cli/commands/audit.js +0 -268
- package/dist/cli/commands/build.command.d.ts +0 -7
- package/dist/cli/commands/build.command.js +0 -296
- package/dist/cli/commands/capability/create.command.d.ts +0 -7
- package/dist/cli/commands/capability/create.command.js +0 -225
- package/dist/cli/commands/capability/index.d.ts +0 -7
- package/dist/cli/commands/capability/index.js +0 -10
- package/dist/cli/commands/capability/validate.d.ts +0 -3
- package/dist/cli/commands/capability/validate.js +0 -62
- package/dist/cli/commands/catalog/config.d.ts +0 -54
- package/dist/cli/commands/catalog/config.js +0 -113
- package/dist/cli/commands/catalog/convert.command.d.ts +0 -8
- package/dist/cli/commands/catalog/convert.command.js +0 -106
- package/dist/cli/commands/catalog/index.d.ts +0 -17
- package/dist/cli/commands/catalog/index.js +0 -34
- package/dist/cli/commands/catalog/info.command.d.ts +0 -3
- package/dist/cli/commands/catalog/info.command.js +0 -137
- package/dist/cli/commands/catalog/list.command.d.ts +0 -8
- package/dist/cli/commands/catalog/list.command.js +0 -101
- package/dist/cli/commands/catalog/schemas.d.ts +0 -62
- package/dist/cli/commands/catalog/schemas.js +0 -55
- package/dist/cli/commands/catalog/search.command.d.ts +0 -3
- package/dist/cli/commands/catalog/search.command.js +0 -47
- package/dist/cli/commands/catalog/validate.command.d.ts +0 -8
- package/dist/cli/commands/catalog/validate.command.js +0 -140
- package/dist/cli/commands/compliance.command.d.ts +0 -19
- package/dist/cli/commands/compliance.command.js +0 -221
- package/dist/cli/commands/config.command.d.ts +0 -7
- package/dist/cli/commands/config.command.js +0 -92
- package/dist/cli/commands/conformance.command.d.ts +0 -14
- package/dist/cli/commands/conformance.command.js +0 -232
- package/dist/cli/commands/contract.command.d.ts +0 -15
- package/dist/cli/commands/contract.command.js +0 -381
- package/dist/cli/commands/daemon.command.d.ts +0 -9
- package/dist/cli/commands/daemon.command.js +0 -447
- package/dist/cli/commands/dependencies.command.d.ts +0 -15
- package/dist/cli/commands/dependencies.command.js +0 -274
- package/dist/cli/commands/deploy-enhanced.command.d.ts +0 -15
- package/dist/cli/commands/deploy-enhanced.command.js +0 -334
- package/dist/cli/commands/deploy.command.d.ts +0 -7
- package/dist/cli/commands/deploy.command.js +0 -83
- package/dist/cli/commands/deploy.d.ts +0 -22
- package/dist/cli/commands/deploy.js +0 -336
- package/dist/cli/commands/dev.command.d.ts +0 -20
- package/dist/cli/commands/dev.command.js +0 -78
- package/dist/cli/commands/diff.command.d.ts +0 -11
- package/dist/cli/commands/diff.command.js +0 -197
- package/dist/cli/commands/discover.d.ts +0 -15
- package/dist/cli/commands/discover.js +0 -219
- package/dist/cli/commands/docs.command.d.ts +0 -7
- package/dist/cli/commands/docs.command.js +0 -278
- package/dist/cli/commands/economics.command.d.ts +0 -9
- package/dist/cli/commands/economics.command.js +0 -113
- package/dist/cli/commands/enhance.command.d.ts +0 -10
- package/dist/cli/commands/enhance.command.js +0 -119
- package/dist/cli/commands/ensure-uuid.command.d.ts +0 -7
- package/dist/cli/commands/ensure-uuid.command.js +0 -153
- package/dist/cli/commands/estimate.command.d.ts +0 -12
- package/dist/cli/commands/estimate.command.js +0 -226
- package/dist/cli/commands/examples.command.d.ts +0 -10
- package/dist/cli/commands/examples.command.js +0 -73
- package/dist/cli/commands/export-enhanced.command.d.ts +0 -7
- package/dist/cli/commands/export-enhanced.command.js +0 -149
- package/dist/cli/commands/export.command.d.ts +0 -15
- package/dist/cli/commands/export.command.js +0 -1031
- package/dist/cli/commands/extension-team.command.d.ts +0 -15
- package/dist/cli/commands/extension-team.command.js +0 -126
- package/dist/cli/commands/framework.command.d.ts +0 -9
- package/dist/cli/commands/framework.command.js +0 -194
- package/dist/cli/commands/generate/conformance.d.ts +0 -3
- package/dist/cli/commands/generate/conformance.js +0 -106
- package/dist/cli/commands/generate-gaid.command.d.ts +0 -14
- package/dist/cli/commands/generate-gaid.command.js +0 -141
- package/dist/cli/commands/generate.command.d.ts +0 -18
- package/dist/cli/commands/generate.command.js +0 -247
- package/dist/cli/commands/github-sync.command.d.ts +0 -3
- package/dist/cli/commands/github-sync.command.js +0 -51
- package/dist/cli/commands/gitlab-agent.command.d.ts +0 -8
- package/dist/cli/commands/gitlab-agent.command.js +0 -201
- package/dist/cli/commands/governance.command.d.ts +0 -11
- package/dist/cli/commands/governance.command.js +0 -166
- package/dist/cli/commands/identity/plan.d.ts +0 -3
- package/dist/cli/commands/identity/plan.js +0 -182
- package/dist/cli/commands/import.command.d.ts +0 -7
- package/dist/cli/commands/import.command.js +0 -71
- package/dist/cli/commands/info.command.d.ts +0 -3
- package/dist/cli/commands/info.command.js +0 -45
- package/dist/cli/commands/init.command.d.ts +0 -7
- package/dist/cli/commands/init.command.js +0 -165
- package/dist/cli/commands/install.command.d.ts +0 -3
- package/dist/cli/commands/install.command.js +0 -43
- package/dist/cli/commands/knowledge-index.command.d.ts +0 -11
- package/dist/cli/commands/knowledge-index.command.js +0 -111
- package/dist/cli/commands/knowledge-query.command.d.ts +0 -11
- package/dist/cli/commands/knowledge-query.command.js +0 -118
- package/dist/cli/commands/knowledge.command.d.ts +0 -11
- package/dist/cli/commands/knowledge.command.js +0 -16
- package/dist/cli/commands/langchain.command.d.ts +0 -9
- package/dist/cli/commands/langchain.command.js +0 -113
- package/dist/cli/commands/langflow.command.d.ts +0 -9
- package/dist/cli/commands/langflow.command.js +0 -111
- package/dist/cli/commands/lifecycle.command.d.ts +0 -29
- package/dist/cli/commands/lifecycle.command.js +0 -495
- package/dist/cli/commands/lint.command.d.ts +0 -12
- package/dist/cli/commands/lint.command.js +0 -377
- package/dist/cli/commands/llms-txt.command.d.ts +0 -7
- package/dist/cli/commands/llms-txt.command.js +0 -118
- package/dist/cli/commands/manifest/diff.command.d.ts +0 -7
- package/dist/cli/commands/manifest/diff.command.js +0 -186
- package/dist/cli/commands/manifest/explain.command.d.ts +0 -7
- package/dist/cli/commands/manifest/explain.command.js +0 -193
- package/dist/cli/commands/manifest/index.d.ts +0 -7
- package/dist/cli/commands/manifest/index.js +0 -12
- package/dist/cli/commands/mcp.command.d.ts +0 -9
- package/dist/cli/commands/mcp.command.js +0 -112
- package/dist/cli/commands/memory.command.d.ts +0 -18
- package/dist/cli/commands/memory.command.js +0 -168
- package/dist/cli/commands/migrate-batch.command.d.ts +0 -19
- package/dist/cli/commands/migrate-batch.command.js +0 -223
- package/dist/cli/commands/migrate-langchain.command.d.ts +0 -23
- package/dist/cli/commands/migrate-langchain.command.js +0 -167
- package/dist/cli/commands/migrate.command.d.ts +0 -10
- package/dist/cli/commands/migrate.command.js +0 -103
- package/dist/cli/commands/platforms.command.d.ts +0 -7
- package/dist/cli/commands/platforms.command.js +0 -90
- package/dist/cli/commands/policy.command.d.ts +0 -11
- package/dist/cli/commands/policy.command.js +0 -85
- package/dist/cli/commands/publish.command.d.ts +0 -3
- package/dist/cli/commands/publish.command.js +0 -118
- package/dist/cli/commands/quickstart.command.d.ts +0 -10
- package/dist/cli/commands/quickstart.command.js +0 -238
- package/dist/cli/commands/register.d.ts +0 -12
- package/dist/cli/commands/register.js +0 -200
- package/dist/cli/commands/registry.command.d.ts +0 -18
- package/dist/cli/commands/registry.command.js +0 -433
- package/dist/cli/commands/release.command.d.ts +0 -10
- package/dist/cli/commands/release.command.js +0 -73
- package/dist/cli/commands/rollback.command.d.ts +0 -13
- package/dist/cli/commands/rollback.command.js +0 -169
- package/dist/cli/commands/run.command.d.ts +0 -7
- package/dist/cli/commands/run.command.js +0 -141
- package/dist/cli/commands/scaffold.command.d.ts +0 -19
- package/dist/cli/commands/scaffold.command.js +0 -240
- package/dist/cli/commands/schema.command.d.ts +0 -11
- package/dist/cli/commands/schema.command.js +0 -82
- package/dist/cli/commands/search.command.d.ts +0 -3
- package/dist/cli/commands/search.command.js +0 -74
- package/dist/cli/commands/serve-builder-routes.d.ts +0 -17
- package/dist/cli/commands/serve-builder-routes.js +0 -390
- package/dist/cli/commands/serve.command.d.ts +0 -7
- package/dist/cli/commands/serve.command.js +0 -237
- package/dist/cli/commands/sign.command.d.ts +0 -3
- package/dist/cli/commands/sign.command.js +0 -42
- package/dist/cli/commands/skills.command.d.ts +0 -10
- package/dist/cli/commands/skills.command.js +0 -649
- package/dist/cli/commands/standardize.command.d.ts +0 -19
- package/dist/cli/commands/standardize.command.js +0 -290
- package/dist/cli/commands/sync.command.d.ts +0 -3
- package/dist/cli/commands/sync.command.js +0 -51
- package/dist/cli/commands/taxonomy.command.d.ts +0 -10
- package/dist/cli/commands/taxonomy.command.js +0 -379
- package/dist/cli/commands/template.command.d.ts +0 -7
- package/dist/cli/commands/template.command.js +0 -159
- package/dist/cli/commands/test.command.d.ts +0 -12
- package/dist/cli/commands/test.command.js +0 -233
- package/dist/cli/commands/tool/create.command.d.ts +0 -12
- package/dist/cli/commands/tool/create.command.js +0 -276
- package/dist/cli/commands/tool/index.d.ts +0 -7
- package/dist/cli/commands/tool/index.js +0 -14
- package/dist/cli/commands/tool/list.command.d.ts +0 -7
- package/dist/cli/commands/tool/list.command.js +0 -268
- package/dist/cli/commands/tool/validate.command.d.ts +0 -7
- package/dist/cli/commands/tool/validate.command.js +0 -103
- package/dist/cli/commands/types/wizard-config.types.d.ts +0 -59
- package/dist/cli/commands/types/wizard-config.types.js +0 -34
- package/dist/cli/commands/update.command.d.ts +0 -3
- package/dist/cli/commands/update.command.js +0 -43
- package/dist/cli/commands/upgrade.command.d.ts +0 -9
- package/dist/cli/commands/upgrade.command.js +0 -179
- package/dist/cli/commands/usie-skills.command.d.ts +0 -24
- package/dist/cli/commands/usie-skills.command.js +0 -297
- package/dist/cli/commands/validate.command.d.ts +0 -11
- package/dist/cli/commands/validate.command.js +0 -396
- package/dist/cli/commands/verify.d.ts +0 -15
- package/dist/cli/commands/verify.js +0 -307
- package/dist/cli/commands/wizard-api-first.command.d.ts +0 -18
- package/dist/cli/commands/wizard-api-first.command.js +0 -1073
- package/dist/cli/commands/wizard-interactive.command.d.ts +0 -25
- package/dist/cli/commands/wizard-interactive.command.js +0 -3467
- package/dist/cli/commands/wizard.command.d.ts +0 -12
- package/dist/cli/commands/wizard.command.js +0 -844
- package/dist/cli/commands/workspace.command.d.ts +0 -16
- package/dist/cli/commands/workspace.command.js +0 -653
- package/dist/cli/extensions/gitlab-release.commands.d.ts +0 -19
- package/dist/cli/extensions/gitlab-release.commands.js +0 -345
- package/dist/cli/extensions/gitlab.extension.d.ts +0 -24
- package/dist/cli/extensions/gitlab.extension.js +0 -65
- package/dist/cli/extensions/index.d.ts +0 -63
- package/dist/cli/extensions/index.js +0 -182
- package/dist/cli/index.d.ts +0 -17
- package/dist/cli/index.js +0 -362
- package/dist/cli/schema-driven/index.d.ts +0 -27
- package/dist/cli/schema-driven/index.js +0 -34
- package/dist/cli/schema-driven/schema-loader.d.ts +0 -115
- package/dist/cli/schema-driven/schema-loader.js +0 -280
- package/dist/cli/schema-driven/ui-generator.d.ts +0 -88
- package/dist/cli/schema-driven/ui-generator.js +0 -335
- package/dist/cli/skills-wizard/skill-wizard.d.ts +0 -25
- package/dist/cli/skills-wizard/skill-wizard.js +0 -195
- package/dist/cli/templates/agent-templates.d.ts +0 -49
- package/dist/cli/templates/agent-templates.js +0 -237
- package/dist/cli/templates/enhanced-templates.d.ts +0 -32
- package/dist/cli/templates/enhanced-templates.js +0 -650
- package/dist/cli/utils/error-formatter.d.ts +0 -19
- package/dist/cli/utils/error-formatter.js +0 -352
- package/dist/cli/utils/gitlab-config.d.ts +0 -94
- package/dist/cli/utils/gitlab-config.js +0 -182
- package/dist/cli/utils/index.d.ts +0 -12
- package/dist/cli/utils/index.js +0 -17
- package/dist/cli/utils/logo.d.ts +0 -10
- package/dist/cli/utils/logo.js +0 -49
- package/dist/cli/utils/manifest-discovery.d.ts +0 -63
- package/dist/cli/utils/manifest-discovery.js +0 -201
- package/dist/cli/utils/manifest-loader.d.ts +0 -77
- package/dist/cli/utils/manifest-loader.js +0 -153
- package/dist/cli/utils/migration-reporter.d.ts +0 -96
- package/dist/cli/utils/migration-reporter.js +0 -253
- package/dist/cli/utils/output.d.ts +0 -134
- package/dist/cli/utils/output.js +0 -203
- package/dist/cli/utils/standard-options.d.ts +0 -144
- package/dist/cli/utils/standard-options.js +0 -246
- package/dist/cli/utils/validation-builder.d.ts +0 -121
- package/dist/cli/utils/validation-builder.js +0 -322
- package/dist/cli/wizard/data/agent-types.d.ts +0 -7
- package/dist/cli/wizard/data/agent-types.js +0 -192
- package/dist/cli/wizard/data/llm-providers.d.ts +0 -10
- package/dist/cli/wizard/data/llm-providers.js +0 -176
- package/dist/cli/wizard/data/taxonomy.d.ts +0 -39
- package/dist/cli/wizard/data/taxonomy.js +0 -138
- package/dist/cli/wizard/data/templates.d.ts +0 -10
- package/dist/cli/wizard/data/templates.js +0 -228
- package/dist/cli/wizard/engine/wizard-engine.d.ts +0 -47
- package/dist/cli/wizard/engine/wizard-engine.js +0 -193
- package/dist/cli/wizard/interactive-wizard.d.ts +0 -26
- package/dist/cli/wizard/interactive-wizard.js +0 -309
- package/dist/cli/wizard/steps/01-agent-type.d.ts +0 -7
- package/dist/cli/wizard/steps/01-agent-type.js +0 -35
- package/dist/cli/wizard/steps/02-basic-info.d.ts +0 -7
- package/dist/cli/wizard/steps/02-basic-info.js +0 -81
- package/dist/cli/wizard/steps/03-domain-capability.d.ts +0 -7
- package/dist/cli/wizard/steps/03-domain-capability.js +0 -98
- package/dist/cli/wizard/steps/04-llm-config.d.ts +0 -7
- package/dist/cli/wizard/steps/04-llm-config.js +0 -86
- package/dist/cli/wizard/steps/04a-persona.d.ts +0 -16
- package/dist/cli/wizard/steps/04a-persona.js +0 -297
- package/dist/cli/wizard/steps/05-tools.d.ts +0 -7
- package/dist/cli/wizard/steps/05-tools.js +0 -200
- package/dist/cli/wizard/steps/06-autonomy.d.ts +0 -7
- package/dist/cli/wizard/steps/06-autonomy.js +0 -87
- package/dist/cli/wizard/steps/07-observability.d.ts +0 -7
- package/dist/cli/wizard/steps/07-observability.js +0 -149
- package/dist/cli/wizard/steps/08-deployment.d.ts +0 -7
- package/dist/cli/wizard/steps/08-deployment.js +0 -122
- package/dist/cli/wizard/steps/08a-target-platforms.d.ts +0 -7
- package/dist/cli/wizard/steps/08a-target-platforms.js +0 -50
- package/dist/cli/wizard/steps/09-advanced.d.ts +0 -7
- package/dist/cli/wizard/steps/09-advanced.js +0 -160
- package/dist/cli/wizard/steps/09a-token-efficiency.d.ts +0 -8
- package/dist/cli/wizard/steps/09a-token-efficiency.js +0 -153
- package/dist/cli/wizard/steps/09b-separation-of-duties.d.ts +0 -7
- package/dist/cli/wizard/steps/09b-separation-of-duties.js +0 -93
- package/dist/cli/wizard/steps/09c-agents-md.d.ts +0 -8
- package/dist/cli/wizard/steps/09c-agents-md.js +0 -61
- package/dist/cli/wizard/steps/09d-drupal-tools-eca.d.ts +0 -8
- package/dist/cli/wizard/steps/09d-drupal-tools-eca.js +0 -52
- package/dist/cli/wizard/steps/09e-memory-management.d.ts +0 -9
- package/dist/cli/wizard/steps/09e-memory-management.js +0 -188
- package/dist/cli/wizard/steps/10-review.d.ts +0 -7
- package/dist/cli/wizard/steps/10-review.js +0 -173
- package/dist/cli/wizard/steps/12-agents-folder.d.ts +0 -7
- package/dist/cli/wizard/steps/12-agents-folder.js +0 -105
- package/dist/cli/wizard/steps/13-openapi-generation.d.ts +0 -7
- package/dist/cli/wizard/steps/13-openapi-generation.js +0 -68
- package/dist/cli/wizard/steps/14-workspace-registration.d.ts +0 -7
- package/dist/cli/wizard/steps/14-workspace-registration.js +0 -72
- package/dist/cli/wizard/steps/15-cost-estimation.d.ts +0 -7
- package/dist/cli/wizard/steps/15-cost-estimation.js +0 -135
- package/dist/cli/wizard/steps/16-best-practices.d.ts +0 -7
- package/dist/cli/wizard/steps/16-best-practices.js +0 -181
- package/dist/cli/wizard/steps/index.d.ts +0 -21
- package/dist/cli/wizard/steps/index.js +0 -21
- package/dist/cli/wizard/template-catalog.d.ts +0 -32
- package/dist/cli/wizard/template-catalog.js +0 -99
- package/dist/cli/wizard/types.d.ts +0 -132
- package/dist/cli/wizard/types.js +0 -6
- package/dist/cli/wizard/ui/banner.d.ts +0 -20
- package/dist/cli/wizard/ui/banner.js +0 -66
- package/dist/cli/wizard/ui/console.d.ts +0 -26
- package/dist/cli/wizard/ui/console.js +0 -102
- package/dist/cli/wizard/ui/wizard-ui.d.ts +0 -75
- package/dist/cli/wizard/ui/wizard-ui.js +0 -150
- package/dist/cli/wizard/use-cases.d.ts +0 -37
- package/dist/cli/wizard/use-cases.js +0 -157
- package/dist/cli/wizard/validators/index.d.ts +0 -11
- package/dist/cli/wizard/validators/index.js +0 -35
- package/dist/cli/workspace-validate.d.ts +0 -23
- package/dist/cli/workspace-validate.js +0 -117
- package/dist/confidence/index.d.ts +0 -67
- package/dist/confidence/index.js +0 -130
- package/dist/config/cli-config.d.ts +0 -33
- package/dist/config/cli-config.js +0 -107
- package/dist/config/defaults.d.ts +0 -197
- package/dist/config/defaults.js +0 -299
- package/dist/converters/skill-md-converter.d.ts +0 -72
- package/dist/converters/skill-md-converter.js +0 -169
- package/dist/data/marketplace-skills-catalog.d.ts +0 -119
- package/dist/data/marketplace-skills-catalog.js +0 -147
- package/dist/data/platform-matrix.d.ts +0 -43
- package/dist/data/platform-matrix.js +0 -497
- package/dist/deploy/base-driver.d.ts +0 -39
- package/dist/deploy/base-driver.js +0 -63
- package/dist/deploy/cloud/aws-driver.d.ts +0 -75
- package/dist/deploy/cloud/aws-driver.js +0 -349
- package/dist/deploy/cloud/azure-driver.d.ts +0 -54
- package/dist/deploy/cloud/azure-driver.js +0 -221
- package/dist/deploy/cloud/gcp-driver.d.ts +0 -56
- package/dist/deploy/cloud/gcp-driver.js +0 -216
- package/dist/deploy/docker-driver.d.ts +0 -32
- package/dist/deploy/docker-driver.js +0 -246
- package/dist/deploy/index.d.ts +0 -15
- package/dist/deploy/index.js +0 -28
- package/dist/deploy/k8s-driver.d.ts +0 -40
- package/dist/deploy/k8s-driver.js +0 -380
- package/dist/deploy/local-driver.d.ts +0 -20
- package/dist/deploy/local-driver.js +0 -150
- package/dist/deploy/types.d.ts +0 -104
- package/dist/deploy/types.js +0 -6
- package/dist/di-container.d.ts +0 -23
- package/dist/di-container.js +0 -200
- package/dist/errors/index.d.ts +0 -154
- package/dist/errors/index.js +0 -327
- package/dist/generated/types.d.ts +0 -691
- package/dist/generated/types.js +0 -6
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -14
- package/dist/interfaces/governance-provider.interface.d.ts +0 -95
- package/dist/interfaces/governance-provider.interface.js +0 -17
- package/dist/mcp-server/index.d.ts +0 -21
- package/dist/mcp-server/index.js +0 -1866
- package/dist/mesh/advanced-routing.d.ts +0 -181
- package/dist/mesh/advanced-routing.js +0 -479
- package/dist/mesh/agent-graph.d.ts +0 -218
- package/dist/mesh/agent-graph.js +0 -493
- package/dist/mesh/client.d.ts +0 -144
- package/dist/mesh/client.js +0 -427
- package/dist/mesh/discovery-gkg.d.ts +0 -26
- package/dist/mesh/discovery-gkg.js +0 -92
- package/dist/mesh/discovery-providers.d.ts +0 -162
- package/dist/mesh/discovery-providers.js +0 -520
- package/dist/mesh/discovery.d.ts +0 -176
- package/dist/mesh/discovery.js +0 -289
- package/dist/mesh/index.d.ts +0 -92
- package/dist/mesh/index.js +0 -98
- package/dist/mesh/routing.d.ts +0 -158
- package/dist/mesh/routing.js +0 -363
- package/dist/mesh/types.d.ts +0 -889
- package/dist/mesh/types.js +0 -6
- package/dist/messaging/broker.d.ts +0 -76
- package/dist/messaging/broker.js +0 -147
- package/dist/messaging/channels.d.ts +0 -70
- package/dist/messaging/channels.js +0 -187
- package/dist/messaging/index.d.ts +0 -10
- package/dist/messaging/index.js +0 -10
- package/dist/messaging/protocols/memory.d.ts +0 -83
- package/dist/messaging/protocols/memory.js +0 -290
- package/dist/messaging/protocols/redis.d.ts +0 -83
- package/dist/messaging/protocols/redis.js +0 -223
- package/dist/messaging/types.d.ts +0 -180
- package/dist/messaging/types.js +0 -6
- package/dist/messenger/Commands/MessengerConsumeCommand.d.ts +0 -57
- package/dist/messenger/Commands/MessengerConsumeCommand.js +0 -49
- package/dist/messenger/Commands/MessengerFailedCommand.d.ts +0 -76
- package/dist/messenger/Commands/MessengerFailedCommand.js +0 -120
- package/dist/messenger/Commands/MessengerStatsCommand.d.ts +0 -61
- package/dist/messenger/Commands/MessengerStatsCommand.js +0 -80
- package/dist/messenger/Commands/index.d.ts +0 -10
- package/dist/messenger/Commands/index.js +0 -10
- package/dist/messenger/EventSubscriber/FailedMessageSubscriber.d.ts +0 -44
- package/dist/messenger/EventSubscriber/FailedMessageSubscriber.js +0 -64
- package/dist/messenger/Handler/AgentBatchHandler.d.ts +0 -80
- package/dist/messenger/Handler/AgentBatchHandler.js +0 -212
- package/dist/messenger/Handler/AgentExecutionHandler.d.ts +0 -76
- package/dist/messenger/Handler/AgentExecutionHandler.js +0 -136
- package/dist/messenger/Handler/index.d.ts +0 -9
- package/dist/messenger/Handler/index.js +0 -9
- package/dist/messenger/Message/AgentBatchMessage.d.ts +0 -115
- package/dist/messenger/Message/AgentBatchMessage.js +0 -102
- package/dist/messenger/Message/AgentExecutionMessage.d.ts +0 -98
- package/dist/messenger/Message/AgentExecutionMessage.js +0 -77
- package/dist/messenger/Message/index.d.ts +0 -9
- package/dist/messenger/Message/index.js +0 -9
- package/dist/messenger/Middleware/AuthenticationMiddleware.d.ts +0 -41
- package/dist/messenger/Middleware/AuthenticationMiddleware.js +0 -84
- package/dist/messenger/Middleware/LoggingMiddleware.d.ts +0 -30
- package/dist/messenger/Middleware/LoggingMiddleware.js +0 -59
- package/dist/messenger/Middleware/RateLimitMiddleware.d.ts +0 -67
- package/dist/messenger/Middleware/RateLimitMiddleware.js +0 -90
- package/dist/messenger/Middleware/ValidationMiddleware.d.ts +0 -39
- package/dist/messenger/Middleware/ValidationMiddleware.js +0 -96
- package/dist/messenger/Middleware/index.d.ts +0 -11
- package/dist/messenger/Middleware/index.js +0 -11
- package/dist/messenger/Monitoring/MetricsCollector.d.ts +0 -107
- package/dist/messenger/Monitoring/MetricsCollector.js +0 -80
- package/dist/messenger/Monitoring/QueueMonitor.d.ts +0 -74
- package/dist/messenger/Monitoring/QueueMonitor.js +0 -160
- package/dist/messenger/Monitoring/index.d.ts +0 -9
- package/dist/messenger/Monitoring/index.js +0 -9
- package/dist/messenger/index.d.ts +0 -38
- package/dist/messenger/index.js +0 -44
- package/dist/observability/index.d.ts +0 -13
- package/dist/observability/index.js +0 -14
- package/dist/observability/metrics.d.ts +0 -131
- package/dist/observability/metrics.js +0 -308
- package/dist/observability/middleware.d.ts +0 -64
- package/dist/observability/middleware.js +0 -225
- package/dist/package.json +0 -386
- package/dist/repositories/manifest.repository.d.ts +0 -26
- package/dist/repositories/manifest.repository.js +0 -96
- package/dist/repositories/schema.repository.d.ts +0 -54
- package/dist/repositories/schema.repository.js +0 -281
- package/dist/runtime/agent-runner.d.ts +0 -46
- package/dist/runtime/agent-runner.js +0 -346
- package/dist/runtime/crewai.runtime.d.ts +0 -30
- package/dist/runtime/crewai.runtime.js +0 -110
- package/dist/runtime/langchain.runtime.d.ts +0 -32
- package/dist/runtime/langchain.runtime.js +0 -75
- package/dist/runtime/langflow.runtime.d.ts +0 -65
- package/dist/runtime/langflow.runtime.js +0 -143
- package/dist/sdk.d.ts +0 -49
- package/dist/sdk.js +0 -66
- package/dist/sdks/index.d.ts +0 -15
- package/dist/sdks/index.js +0 -17
- package/dist/sdks/kagent/crd-generator.d.ts +0 -106
- package/dist/sdks/kagent/crd-generator.js +0 -1114
- package/dist/sdks/kagent/crd-parser.d.ts +0 -13
- package/dist/sdks/kagent/crd-parser.js +0 -92
- package/dist/sdks/kagent/index.d.ts +0 -10
- package/dist/sdks/kagent/index.js +0 -9
- package/dist/sdks/kagent/k8s-resources-generator.d.ts +0 -73
- package/dist/sdks/kagent/k8s-resources-generator.js +0 -286
- package/dist/sdks/kagent/kubectl-apply.d.ts +0 -35
- package/dist/sdks/kagent/kubectl-apply.js +0 -127
- package/dist/sdks/kagent/runtime-adapter.d.ts +0 -45
- package/dist/sdks/kagent/runtime-adapter.js +0 -129
- package/dist/sdks/kagent/tool-registry.d.ts +0 -25
- package/dist/sdks/kagent/tool-registry.js +0 -148
- package/dist/sdks/kagent/types.d.ts +0 -327
- package/dist/sdks/kagent/types.js +0 -10
- package/dist/sdks/kagent/validator.d.ts +0 -17
- package/dist/sdks/kagent/validator.js +0 -73
- package/dist/sdks/shared/index.d.ts +0 -24
- package/dist/sdks/shared/index.js +0 -28
- package/dist/sdks/shared/manifest-loader.d.ts +0 -41
- package/dist/sdks/shared/manifest-loader.js +0 -45
- package/dist/sdks/shared/schema-validator.d.ts +0 -34
- package/dist/sdks/shared/schema-validator.js +0 -103
- package/dist/sdks/shared/types.d.ts +0 -43
- package/dist/sdks/shared/types.js +0 -27
- package/dist/sdks/shared/validation.d.ts +0 -52
- package/dist/sdks/shared/validation.js +0 -41
- package/dist/services/agent-card-generator.d.ts +0 -77
- package/dist/services/agent-card-generator.js +0 -752
- package/dist/services/agent-services/qdrant.service.d.ts +0 -60
- package/dist/services/agent-services/qdrant.service.js +0 -168
- package/dist/services/agent-type-detector.service.d.ts +0 -72
- package/dist/services/agent-type-detector.service.js +0 -197
- package/dist/services/agents-md/agents-md-api.service.d.ts +0 -92
- package/dist/services/agents-md/agents-md-api.service.js +0 -162
- package/dist/services/agents-md/agents-md-discovery.service.d.ts +0 -50
- package/dist/services/agents-md/agents-md-discovery.service.js +0 -190
- package/dist/services/agents-md/agents-md-generator.service.d.ts +0 -29
- package/dist/services/agents-md/agents-md-generator.service.js +0 -252
- package/dist/services/agents-md/agents-md.service.d.ts +0 -65
- package/dist/services/agents-md/agents-md.service.js +0 -379
- package/dist/services/agents-md/repo-agents-md.service.d.ts +0 -87
- package/dist/services/agents-md/repo-agents-md.service.js +0 -202
- package/dist/services/ai-architect.service.d.ts +0 -48
- package/dist/services/ai-architect.service.js +0 -273
- package/dist/services/audit.d.ts +0 -86
- package/dist/services/audit.js +0 -279
- package/dist/services/codegen/codegen.service.d.ts +0 -77
- package/dist/services/codegen/codegen.service.js +0 -142
- package/dist/services/codegen/generators/manifest.generator.d.ts +0 -41
- package/dist/services/codegen/generators/manifest.generator.js +0 -178
- package/dist/services/codegen/generators/openapi-zod.generator.d.ts +0 -79
- package/dist/services/codegen/generators/openapi-zod.generator.js +0 -482
- package/dist/services/codegen/generators/openapi.generator.d.ts +0 -46
- package/dist/services/codegen/generators/openapi.generator.js +0 -157
- package/dist/services/codegen/generators/types.generator.d.ts +0 -27
- package/dist/services/codegen/generators/types.generator.js +0 -97
- package/dist/services/codegen/generators/vscode.generator.d.ts +0 -43
- package/dist/services/codegen/generators/vscode.generator.js +0 -163
- package/dist/services/codegen/generators/zod.generator.d.ts +0 -31
- package/dist/services/codegen/generators/zod.generator.js +0 -135
- package/dist/services/codegen/index.d.ts +0 -35
- package/dist/services/codegen/index.js +0 -38
- package/dist/services/conformance/conformance.service.d.ts +0 -75
- package/dist/services/conformance/conformance.service.js +0 -194
- package/dist/services/conformance/feature-detector.service.d.ts +0 -66
- package/dist/services/conformance/feature-detector.service.js +0 -161
- package/dist/services/conformance/index.d.ts +0 -10
- package/dist/services/conformance/index.js +0 -9
- package/dist/services/conformance/profile-loader.service.d.ts +0 -51
- package/dist/services/conformance/profile-loader.service.js +0 -192
- package/dist/services/conformance/score-calculator.service.d.ts +0 -50
- package/dist/services/conformance/score-calculator.service.js +0 -222
- package/dist/services/conformance/types.d.ts +0 -107
- package/dist/services/conformance/types.js +0 -6
- package/dist/services/convert/convert.service.d.ts +0 -26
- package/dist/services/convert/convert.service.js +0 -72
- package/dist/services/cost-estimation/optimization-patterns.d.ts +0 -23
- package/dist/services/cost-estimation/optimization-patterns.js +0 -147
- package/dist/services/cost-estimation/pricing.d.ts +0 -29
- package/dist/services/cost-estimation/pricing.js +0 -225
- package/dist/services/cost-estimation/scenario-estimator.d.ts +0 -59
- package/dist/services/cost-estimation/scenario-estimator.js +0 -145
- package/dist/services/cost-estimation/token-counter.service.d.ts +0 -51
- package/dist/services/cost-estimation/token-counter.service.js +0 -125
- package/dist/services/daemon/audit-log.service.d.ts +0 -37
- package/dist/services/daemon/audit-log.service.js +0 -81
- package/dist/services/daemon/execution.service.d.ts +0 -103
- package/dist/services/daemon/execution.service.js +0 -333
- package/dist/services/daemon/fs-watcher.service.d.ts +0 -55
- package/dist/services/daemon/fs-watcher.service.js +0 -182
- package/dist/services/daemon/pairing.service.d.ts +0 -61
- package/dist/services/daemon/pairing.service.js +0 -163
- package/dist/services/daemon/skill-aggregator.service.d.ts +0 -61
- package/dist/services/daemon/skill-aggregator.service.js +0 -336
- package/dist/services/daemon/sse-endpoints.d.ts +0 -68
- package/dist/services/daemon/sse-endpoints.js +0 -176
- package/dist/services/daemon/ws-server.d.ts +0 -66
- package/dist/services/daemon/ws-server.js +0 -258
- package/dist/services/deployment/deployment.service.d.ts +0 -19
- package/dist/services/deployment/deployment.service.js +0 -87
- package/dist/services/dev-server/dev-server.service.d.ts +0 -121
- package/dist/services/dev-server/dev-server.service.js +0 -290
- package/dist/services/dev-server/file-watcher.d.ts +0 -101
- package/dist/services/dev-server/file-watcher.js +0 -190
- package/dist/services/dev-server/live-validator.d.ts +0 -157
- package/dist/services/dev-server/live-validator.js +0 -301
- package/dist/services/dev-server/websocket-server.d.ts +0 -137
- package/dist/services/dev-server/websocket-server.js +0 -230
- package/dist/services/evals/evals-generator.service.d.ts +0 -90
- package/dist/services/evals/evals-generator.service.js +0 -1602
- package/dist/services/export/anthropic/anthropic-exporter.d.ts +0 -71
- package/dist/services/export/anthropic/anthropic-exporter.js +0 -590
- package/dist/services/export/anthropic/api-generator.d.ts +0 -39
- package/dist/services/export/anthropic/api-generator.js +0 -395
- package/dist/services/export/anthropic/index.d.ts +0 -18
- package/dist/services/export/anthropic/index.js +0 -16
- package/dist/services/export/anthropic/tools-generator.d.ts +0 -35
- package/dist/services/export/anthropic/tools-generator.js +0 -259
- package/dist/services/export/export-orchestrator.d.ts +0 -90
- package/dist/services/export/export-orchestrator.js +0 -181
- package/dist/services/export/export.service.d.ts +0 -30
- package/dist/services/export/export.service.js +0 -52
- package/dist/services/export/langchain/api-generator.d.ts +0 -17
- package/dist/services/export/langchain/api-generator.js +0 -375
- package/dist/services/export/langchain/callbacks-generator.d.ts +0 -63
- package/dist/services/export/langchain/callbacks-generator.js +0 -416
- package/dist/services/export/langchain/error-handling-generator.d.ts +0 -76
- package/dist/services/export/langchain/error-handling-generator.js +0 -526
- package/dist/services/export/langchain/index.d.ts +0 -17
- package/dist/services/export/langchain/index.js +0 -13
- package/dist/services/export/langchain/langchain-exporter.d.ts +0 -174
- package/dist/services/export/langchain/langchain-exporter.js +0 -961
- package/dist/services/export/langchain/langgraph-generator.d.ts +0 -86
- package/dist/services/export/langchain/langgraph-generator.js +0 -485
- package/dist/services/export/langchain/langserve-generator.d.ts +0 -95
- package/dist/services/export/langchain/langserve-generator.js +0 -813
- package/dist/services/export/langchain/memory-generator.d.ts +0 -71
- package/dist/services/export/langchain/memory-generator.js +0 -1182
- package/dist/services/export/langchain/openapi-generator.d.ts +0 -20
- package/dist/services/export/langchain/openapi-generator.js +0 -364
- package/dist/services/export/langchain/plan-execute-generator.d.ts +0 -60
- package/dist/services/export/langchain/plan-execute-generator.js +0 -679
- package/dist/services/export/langchain/streaming-generator.d.ts +0 -66
- package/dist/services/export/langchain/streaming-generator.js +0 -755
- package/dist/services/export/langchain/tools-generator.d.ts +0 -67
- package/dist/services/export/langchain/tools-generator.js +0 -543
- package/dist/services/export/npm/express-generator.d.ts +0 -23
- package/dist/services/export/npm/express-generator.js +0 -296
- package/dist/services/export/npm/index.d.ts +0 -13
- package/dist/services/export/npm/index.js +0 -11
- package/dist/services/export/npm/npm-exporter.d.ts +0 -182
- package/dist/services/export/npm/npm-exporter.js +0 -1773
- package/dist/services/export/npm/openapi-generator.d.ts +0 -19
- package/dist/services/export/npm/openapi-generator.js +0 -428
- package/dist/services/export/npm/package-json-generator.d.ts +0 -31
- package/dist/services/export/npm/package-json-generator.js +0 -156
- package/dist/services/export/npm/typescript-generator.d.ts +0 -69
- package/dist/services/export/npm/typescript-generator.js +0 -431
- package/dist/services/export/testing/index.d.ts +0 -8
- package/dist/services/export/testing/index.js +0 -7
- package/dist/services/export/testing/test-generator.d.ts +0 -178
- package/dist/services/export/testing/test-generator.js +0 -2546
- package/dist/services/extension-team/extension-team-kickoff.service.d.ts +0 -85
- package/dist/services/extension-team/extension-team-kickoff.service.js +0 -163
- package/dist/services/framework-import/langchain-importer.service.d.ts +0 -55
- package/dist/services/framework-import/langchain-importer.service.js +0 -157
- package/dist/services/framework-import/langflow-importer.service.d.ts +0 -85
- package/dist/services/framework-import/langflow-importer.service.js +0 -264
- package/dist/services/generation.service.d.ts +0 -65
- package/dist/services/generation.service.js +0 -356
- package/dist/services/git-rollback.service.d.ts +0 -75
- package/dist/services/git-rollback.service.js +0 -329
- package/dist/services/git.service.d.ts +0 -49
- package/dist/services/git.service.js +0 -162
- package/dist/services/github-sync/github-client.d.ts +0 -14
- package/dist/services/github-sync/github-client.js +0 -41
- package/dist/services/github-sync/gitlab-client.d.ts +0 -17
- package/dist/services/github-sync/gitlab-client.js +0 -42
- package/dist/services/github-sync/schemas.d.ts +0 -46
- package/dist/services/github-sync/schemas.js +0 -36
- package/dist/services/github-sync/sync.service.d.ts +0 -27
- package/dist/services/github-sync/sync.service.js +0 -101
- package/dist/services/gitlab-agent.service.d.ts +0 -94
- package/dist/services/gitlab-agent.service.js +0 -164
- package/dist/services/governance/cedar-provider.d.ts +0 -27
- package/dist/services/governance/cedar-provider.js +0 -109
- package/dist/services/governance/cedar-validator.service.d.ts +0 -32
- package/dist/services/governance/cedar-validator.service.js +0 -88
- package/dist/services/governance/governance-generator.service.d.ts +0 -120
- package/dist/services/governance/governance-generator.service.js +0 -1089
- package/dist/services/governance-client.service.d.ts +0 -39
- package/dist/services/governance-client.service.js +0 -124
- package/dist/services/id-card.service.d.ts +0 -109
- package/dist/services/id-card.service.js +0 -237
- package/dist/services/identity/identity.service.d.ts +0 -21
- package/dist/services/identity/identity.service.js +0 -36
- package/dist/services/import/framework-to-ossa.d.ts +0 -21
- package/dist/services/import/framework-to-ossa.js +0 -171
- package/dist/services/interfaces/governance-provider.interface.d.ts +0 -59
- package/dist/services/interfaces/governance-provider.interface.js +0 -6
- package/dist/services/knowledge-generation.service.d.ts +0 -46
- package/dist/services/knowledge-generation.service.js +0 -96
- package/dist/services/knowledge.service.d.ts +0 -88
- package/dist/services/knowledge.service.js +0 -214
- package/dist/services/llms-txt/llms-txt.service.d.ts +0 -59
- package/dist/services/llms-txt/llms-txt.service.js +0 -540
- package/dist/services/manifest/manifest-crud.service.d.ts +0 -119
- package/dist/services/manifest/manifest-crud.service.js +0 -319
- package/dist/services/mcp/bridge.service.d.ts +0 -63
- package/dist/services/mcp/bridge.service.js +0 -222
- package/dist/services/mcp-manifest/mcp-manifest.service.d.ts +0 -20
- package/dist/services/mcp-manifest/mcp-manifest.service.js +0 -85
- package/dist/services/messaging/example.d.ts +0 -6
- package/dist/services/messaging/example.js +0 -260
- package/dist/services/messaging/index.d.ts +0 -80
- package/dist/services/messaging/index.js +0 -86
- package/dist/services/messaging/memory-broker.d.ts +0 -103
- package/dist/services/messaging/memory-broker.js +0 -436
- package/dist/services/messaging/messaging.service.d.ts +0 -150
- package/dist/services/messaging/messaging.service.js +0 -458
- package/dist/services/messaging/messaging.types.d.ts +0 -319
- package/dist/services/messaging/messaging.types.js +0 -68
- package/dist/services/migration/langchain-migration.service.d.ts +0 -117
- package/dist/services/migration/langchain-migration.service.js +0 -621
- package/dist/services/migration-transform.service.d.ts +0 -82
- package/dist/services/migration-transform.service.js +0 -322
- package/dist/services/migration.service.d.ts +0 -132
- package/dist/services/migration.service.js +0 -698
- package/dist/services/multi-agent/team-generator.service.d.ts +0 -48
- package/dist/services/multi-agent/team-generator.service.js +0 -584
- package/dist/services/observability/observability-generator.service.d.ts +0 -54
- package/dist/services/observability/observability-generator.service.js +0 -1419
- package/dist/services/openapi-extensions-validation.d.ts +0 -20
- package/dist/services/openapi-extensions-validation.js +0 -193
- package/dist/services/registry/bundle.service.d.ts +0 -36
- package/dist/services/registry/bundle.service.js +0 -70
- package/dist/services/registry/index.service.d.ts +0 -76
- package/dist/services/registry/index.service.js +0 -88
- package/dist/services/registry/registry.service.d.ts +0 -39
- package/dist/services/registry/registry.service.js +0 -169
- package/dist/services/registry.service.d.ts +0 -34
- package/dist/services/registry.service.js +0 -162
- package/dist/services/release-automation/base-crud.service.d.ts +0 -93
- package/dist/services/release-automation/base-crud.service.js +0 -68
- package/dist/services/release-automation/generate-changelog.d.ts +0 -7
- package/dist/services/release-automation/generate-changelog.js +0 -288
- package/dist/services/release-automation/increment-dev-tag.d.ts +0 -7
- package/dist/services/release-automation/increment-dev-tag.js +0 -160
- package/dist/services/release-automation/index.d.ts +0 -12
- package/dist/services/release-automation/index.js +0 -12
- package/dist/services/release-automation/merge-request.service.d.ts +0 -119
- package/dist/services/release-automation/merge-request.service.js +0 -212
- package/dist/services/release-automation/milestone.service.d.ts +0 -104
- package/dist/services/release-automation/milestone.service.js +0 -207
- package/dist/services/release-automation/release-agent.service.d.ts +0 -39
- package/dist/services/release-automation/release-agent.service.js +0 -43
- package/dist/services/release-automation/release-buttons.d.ts +0 -7
- package/dist/services/release-automation/release-buttons.js +0 -207
- package/dist/services/release-automation/release.service.d.ts +0 -118
- package/dist/services/release-automation/release.service.js +0 -207
- package/dist/services/release-automation/schemas/release.schema.d.ts +0 -299
- package/dist/services/release-automation/schemas/release.schema.js +0 -272
- package/dist/services/release-automation/tag.service.d.ts +0 -99
- package/dist/services/release-automation/tag.service.js +0 -183
- package/dist/services/release-automation/webhook.service.d.ts +0 -37
- package/dist/services/release-automation/webhook.service.js +0 -187
- package/dist/services/runtime/anthropic.adapter.d.ts +0 -145
- package/dist/services/runtime/anthropic.adapter.js +0 -521
- package/dist/services/runtime/azure.adapter.d.ts +0 -389
- package/dist/services/runtime/azure.adapter.js +0 -517
- package/dist/services/runtime/bedrock.adapter.d.ts +0 -170
- package/dist/services/runtime/bedrock.adapter.js +0 -665
- package/dist/services/runtime/claude/capability-mapper.d.ts +0 -84
- package/dist/services/runtime/claude/capability-mapper.js +0 -245
- package/dist/services/runtime/claude/claude-adapter.d.ts +0 -80
- package/dist/services/runtime/claude/claude-adapter.js +0 -283
- package/dist/services/runtime/claude/manifest-parser.d.ts +0 -77
- package/dist/services/runtime/claude/manifest-parser.js +0 -169
- package/dist/services/runtime/claude/types.d.ts +0 -115
- package/dist/services/runtime/claude/types.js +0 -6
- package/dist/services/runtime/gemini.adapter.d.ts +0 -190
- package/dist/services/runtime/gemini.adapter.js +0 -600
- package/dist/services/runtime/mistral.adapter.d.ts +0 -201
- package/dist/services/runtime/mistral.adapter.js +0 -652
- package/dist/services/runtime/ollama.adapter.d.ts +0 -187
- package/dist/services/runtime/ollama.adapter.js +0 -521
- package/dist/services/runtime/openai.adapter.d.ts +0 -127
- package/dist/services/runtime/openai.adapter.js +0 -247
- package/dist/services/skill-registry.service.d.ts +0 -134
- package/dist/services/skill-registry.service.js +0 -452
- package/dist/services/skills/claude-skills.service.d.ts +0 -59
- package/dist/services/skills/claude-skills.service.js +0 -275
- package/dist/services/skills/skill-manifest.service.d.ts +0 -23
- package/dist/services/skills/skill-manifest.service.js +0 -86
- package/dist/services/skills-pipeline/index.d.ts +0 -9
- package/dist/services/skills-pipeline/index.js +0 -9
- package/dist/services/skills-pipeline/skills-export.service.d.ts +0 -86
- package/dist/services/skills-pipeline/skills-export.service.js +0 -483
- package/dist/services/skills-pipeline/skills-generator.service.d.ts +0 -118
- package/dist/services/skills-pipeline/skills-generator.service.js +0 -648
- package/dist/services/skills-pipeline/skills-install.service.d.ts +0 -42
- package/dist/services/skills-pipeline/skills-install.service.js +0 -219
- package/dist/services/skills-pipeline/skills-research.service.d.ts +0 -110
- package/dist/services/skills-pipeline/skills-research.service.js +0 -466
- package/dist/services/structure/agents-folder.service.d.ts +0 -37
- package/dist/services/structure/agents-folder.service.js +0 -318
- package/dist/services/taxonomy-service.d.ts +0 -103
- package/dist/services/taxonomy-service.js +0 -343
- package/dist/services/taxonomy-validator.service.d.ts +0 -25
- package/dist/services/taxonomy-validator.service.js +0 -149
- package/dist/services/taxonomy.service.d.ts +0 -132
- package/dist/services/taxonomy.service.js +0 -342
- package/dist/services/template-processor.service.d.ts +0 -34
- package/dist/services/template-processor.service.js +0 -123
- package/dist/services/template.service.d.ts +0 -54
- package/dist/services/template.service.js +0 -154
- package/dist/services/test-runner/mock-llm.service.d.ts +0 -77
- package/dist/services/test-runner/mock-llm.service.js +0 -172
- package/dist/services/test-runner/scenarios.d.ts +0 -36
- package/dist/services/test-runner/scenarios.js +0 -202
- package/dist/services/test-runner/test-runner.service.d.ts +0 -39
- package/dist/services/test-runner/test-runner.service.js +0 -165
- package/dist/services/trust/trust.service.d.ts +0 -47
- package/dist/services/trust/trust.service.js +0 -236
- package/dist/services/validation/best-practices-validator.d.ts +0 -84
- package/dist/services/validation/best-practices-validator.js +0 -499
- package/dist/services/validation/cost-estimator.d.ts +0 -69
- package/dist/services/validation/cost-estimator.js +0 -223
- package/dist/services/validation/enhanced-validator.d.ts +0 -78
- package/dist/services/validation/enhanced-validator.js +0 -210
- package/dist/services/validation/index.d.ts +0 -13
- package/dist/services/validation/index.js +0 -9
- package/dist/services/validation/security-validator.d.ts +0 -81
- package/dist/services/validation/security-validator.js +0 -330
- package/dist/services/validation-zod.service.d.ts +0 -36
- package/dist/services/validation-zod.service.js +0 -325
- package/dist/services/validation.service.d.ts +0 -50
- package/dist/services/validation.service.js +0 -445
- package/dist/services/validators/a2a.validator.d.ts +0 -16
- package/dist/services/validators/a2a.validator.js +0 -63
- package/dist/services/validators/anthropic.validator.d.ts +0 -9
- package/dist/services/validators/anthropic.validator.js +0 -111
- package/dist/services/validators/autogen.validator.d.ts +0 -12
- package/dist/services/validators/autogen.validator.js +0 -151
- package/dist/services/validators/contract.validator.d.ts +0 -91
- package/dist/services/validators/contract.validator.js +0 -522
- package/dist/services/validators/crewai.validator.d.ts +0 -12
- package/dist/services/validators/crewai.validator.js +0 -152
- package/dist/services/validators/cursor.validator.d.ts +0 -9
- package/dist/services/validators/cursor.validator.js +0 -93
- package/dist/services/validators/dependencies.validator.d.ts +0 -104
- package/dist/services/validators/dependencies.validator.js +0 -388
- package/dist/services/validators/index.d.ts +0 -20
- package/dist/services/validators/index.js +0 -21
- package/dist/services/validators/kagent.validator.d.ts +0 -13
- package/dist/services/validators/kagent.validator.js +0 -205
- package/dist/services/validators/langchain.validator.d.ts +0 -12
- package/dist/services/validators/langchain.validator.js +0 -139
- package/dist/services/validators/langflow.validator.d.ts +0 -9
- package/dist/services/validators/langflow.validator.js +0 -98
- package/dist/services/validators/langgraph.validator.d.ts +0 -12
- package/dist/services/validators/langgraph.validator.js +0 -161
- package/dist/services/validators/llamaindex.validator.d.ts +0 -9
- package/dist/services/validators/llamaindex.validator.js +0 -125
- package/dist/services/validators/mcp.validator.d.ts +0 -16
- package/dist/services/validators/mcp.validator.js +0 -70
- package/dist/services/validators/messaging.validator.d.ts +0 -77
- package/dist/services/validators/messaging.validator.js +0 -298
- package/dist/services/validators/openai.validator.d.ts +0 -9
- package/dist/services/validators/openai.validator.js +0 -131
- package/dist/services/validators/registry.d.ts +0 -21
- package/dist/services/validators/registry.js +0 -42
- package/dist/services/validators/vercel-ai.validator.d.ts +0 -9
- package/dist/services/validators/vercel-ai.validator.js +0 -101
- package/dist/services/version-detection.service.d.ts +0 -50
- package/dist/services/version-detection.service.js +0 -209
- package/dist/services/wizard/prompts.d.ts +0 -71
- package/dist/services/wizard/prompts.js +0 -345
- package/dist/services/wizard/wizard-state.service.d.ts +0 -111
- package/dist/services/wizard/wizard-state.service.js +0 -548
- package/dist/services/wizard/wizard.service.d.ts +0 -60
- package/dist/services/wizard/wizard.service.js +0 -329
- package/dist/services/workspace/workspace.service.d.ts +0 -44
- package/dist/services/workspace/workspace.service.js +0 -203
- package/dist/skills/test-skill/README.md +0 -36
- package/dist/skills/test-skill/SKILL.md +0 -31
- package/dist/skills/test-skill/index.d.ts +0 -31
- package/dist/skills/test-skill/install.js +0 -44
- package/dist/skills/test-skill/package.json +0 -36
- package/dist/spec/extensions/a2a-messaging.md +0 -471
- package/dist/spec/extensions/cognition.schema.json +0 -87
- package/dist/spec/extensions/knowledge-graph/knowledge-graph.schema.json +0 -386
- package/dist/spec/extensions/manifest-extensions.md +0 -550
- package/dist/spec/extensions/openapi/ossa-openapi-extensions.schema.json +0 -804
- package/dist/spec/extensions/role-manifest.md +0 -188
- package/dist/spec/extensions/skills-compatibility.md +0 -292
- package/dist/spec/layer4-economics/duadp-examples.json +0 -44
- package/dist/spec/ossa-audit-api.yaml +0 -311
- package/dist/spec/reference/reference-agents/compliance-auditor/manifest.ossa.yaml +0 -527
- package/dist/spec/reference/reference-agents/doc-agent/manifest.ossa.yaml +0 -776
- package/dist/spec/reference/reference-agents/mr-reviewer/manifest.ossa.yaml +0 -249
- package/dist/spec/reference/reference-agents/mr-reviewer/system-prompt.md +0 -154
- package/dist/spec/reference/reference-agents/ossa-validator-v0.3/manifest.ossa.yaml +0 -548
- package/dist/spec/reference/reference-agents/ossa-validator-v0.3/system-prompt.md +0 -135
- package/dist/spec/reference/reference-agents/pipeline-fixer/manifest.ossa.yaml +0 -336
- package/dist/spec/reference/reference-agents/release-orchestrator/README.md +0 -35
- package/dist/spec/reference/reference-agents/release-orchestrator/manifest.ossa.yaml +0 -233
- package/dist/spec/registry/README.md +0 -478
- package/dist/spec/registry/openapi.yaml +0 -1124
- package/dist/spec/registry/project-registry.schema.json +0 -62
- package/dist/spec/registry/registry-api.schema.json +0 -731
- package/dist/spec/registry/registry-api.yaml +0 -144
- package/dist/spec/registry/registry-spec.md +0 -2239
- package/dist/spec/schema/agent-test.schema.json +0 -117
- package/dist/spec/schema/components/activity-stream.schema.json +0 -94
- package/dist/spec/schema/components/adapter.schema.json +0 -33
- package/dist/spec/schema/components/constraints.schema.json +0 -84
- package/dist/spec/schema/components/dependencies.schema.json +0 -147
- package/dist/spec/schema/components/encryption.schema.json +0 -115
- package/dist/spec/schema/components/identity.schema.json +0 -126
- package/dist/spec/schema/components/index.json +0 -37
- package/dist/spec/schema/components/llm-config.schema.json +0 -67
- package/dist/spec/schema/components/metadata.schema.json +0 -52
- package/dist/spec/schema/components/tool.schema.json +0 -64
- package/dist/spec/schema/extensions/a2a.extension.schema.json +0 -127
- package/dist/spec/uadp/README.md +0 -393
- package/dist/spec/uadp/openapi.yaml +0 -387
- package/dist/spec/uadp/schemas/uadp-agents-response.schema.json +0 -68
- package/dist/spec/uadp/schemas/uadp-federation-response.schema.json +0 -46
- package/dist/spec/uadp/schemas/uadp-manifest.schema.json +0 -82
- package/dist/spec/uadp/schemas/uadp-skills-response.schema.json +0 -72
- package/dist/spec/v0.4/agent-card.schema.json +0 -477
- package/dist/spec/v0.4/agent.schema.json +0 -1581
- package/dist/spec/v0.4/conformance/profiles/baseline.json +0 -19
- package/dist/spec/v0.4/conformance/profiles/enterprise.json +0 -20
- package/dist/spec/v0.4/extensions/a2a/README.md +0 -193
- package/dist/spec/v0.4/extensions/a2a/a2a.schema.json +0 -77
- package/dist/spec/v0.4/extensions/ag2/ag2.schema.json +0 -277
- package/dist/spec/v0.4/extensions/cognition/cognition.schema.json +0 -94
- package/dist/spec/v0.4/extensions/cognition/thought-node.schema.json +0 -80
- package/dist/spec/v0.4/extensions/crewai/crewai.schema.json +0 -256
- package/dist/spec/v0.4/extensions/drupal/drupal.schema.json +0 -318
- package/dist/spec/v0.4/extensions/evals/evals.schema.json +0 -597
- package/dist/spec/v0.4/extensions/governance/governance-extension.yaml +0 -161
- package/dist/spec/v0.4/extensions/identity/identity.schema.json +0 -302
- package/dist/spec/v0.4/extensions/kagent/README.md +0 -315
- package/dist/spec/v0.4/extensions/kagent/kagent.schema.json +0 -624
- package/dist/spec/v0.4/extensions/langchain/langchain.schema.json +0 -243
- package/dist/spec/v0.4/extensions/langgraph/langgraph.schema.json +0 -211
- package/dist/spec/v0.4/extensions/mcp/README.md +0 -276
- package/dist/spec/v0.4/extensions/mcp/mcp.schema.json +0 -84
- package/dist/spec/v0.4/extensions/memory/memory.schema.json +0 -7
- package/dist/spec/v0.4/extensions/team/team.schema.json +0 -304
- package/dist/spec/v0.4/extensions/token-efficiency/token-efficiency.schema.json +0 -47
- package/dist/spec/v0.4/mcp.schema.json +0 -1
- package/dist/spec/v0.4/skill.schema.json +0 -1
- package/dist/spec/v0.4/validator.schema.json +0 -282
- package/dist/spec/v0.5/agent-builder-openapi.yaml +0 -230
- package/dist/spec/v0.5/agent-card.schema.json +0 -477
- package/dist/spec/v0.5/agent.schema.json +0 -1658
- package/dist/spec/v0.5/conformance/profiles/baseline.json +0 -19
- package/dist/spec/v0.5/conformance/profiles/enterprise.json +0 -20
- package/dist/spec/v0.5/extensions/a2a/README.md +0 -193
- package/dist/spec/v0.5/extensions/a2a/a2a.schema.json +0 -77
- package/dist/spec/v0.5/extensions/ag2/ag2.schema.json +0 -277
- package/dist/spec/v0.5/extensions/cognition/cognition.schema.json +0 -171
- package/dist/spec/v0.5/extensions/cognition/thought-node.schema.json +0 -80
- package/dist/spec/v0.5/extensions/crewai/crewai.schema.json +0 -256
- package/dist/spec/v0.5/extensions/drupal/drupal.schema.json +0 -318
- package/dist/spec/v0.5/extensions/economics/context-pack.schema.json +0 -91
- package/dist/spec/v0.5/extensions/economics/execution-profile.schema.json +0 -148
- package/dist/spec/v0.5/extensions/economics/failure-semantics.schema.json +0 -32
- package/dist/spec/v0.5/extensions/economics/replay-packet.schema.json +0 -120
- package/dist/spec/v0.5/extensions/evals/evals.schema.json +0 -597
- package/dist/spec/v0.5/extensions/governance/governance-extension.yaml +0 -161
- package/dist/spec/v0.5/extensions/identity/identity.schema.json +0 -302
- package/dist/spec/v0.5/extensions/kagent/README.md +0 -315
- package/dist/spec/v0.5/extensions/kagent/kagent.schema.json +0 -624
- package/dist/spec/v0.5/extensions/langchain/langchain.schema.json +0 -243
- package/dist/spec/v0.5/extensions/langgraph/langgraph.schema.json +0 -211
- package/dist/spec/v0.5/extensions/mcp/README.md +0 -276
- package/dist/spec/v0.5/extensions/mcp/mcp.schema.json +0 -84
- package/dist/spec/v0.5/extensions/memory/memory.schema.json +0 -7
- package/dist/spec/v0.5/extensions/team/team.schema.json +0 -304
- package/dist/spec/v0.5/extensions/token-efficiency/token-efficiency.schema.json +0 -47
- package/dist/spec/v0.5/mcp.schema.json +0 -1
- package/dist/spec/v0.5/memory-hierarchy.yaml +0 -120
- package/dist/spec/v0.5/role.schema.json +0 -268
- package/dist/spec/v0.5/skill.schema.json +0 -1
- package/dist/spec/v0.5/validator.schema.json +0 -282
- package/dist/spec/v1/agent-card.schema.json +0 -254
- package/dist/spec/v1/mcp.schema.json +0 -183
- package/dist/spec/v1/skill.schema.json +0 -346
- package/dist/testing/fixtures.d.ts +0 -61
- package/dist/testing/fixtures.js +0 -298
- package/dist/testing/index.d.ts +0 -10
- package/dist/testing/index.js +0 -10
- package/dist/testing/reporters/base.d.ts +0 -24
- package/dist/testing/reporters/base.js +0 -5
- package/dist/testing/reporters/console.d.ts +0 -18
- package/dist/testing/reporters/console.js +0 -78
- package/dist/testing/reporters/json.d.ts +0 -29
- package/dist/testing/reporters/json.js +0 -40
- package/dist/testing/runner.d.ts +0 -96
- package/dist/testing/runner.js +0 -392
- package/dist/transports/index.d.ts +0 -8
- package/dist/transports/index.js +0 -11
- package/dist/transports/sse.d.ts +0 -166
- package/dist/transports/sse.js +0 -314
- package/dist/transports/webrtc.d.ts +0 -183
- package/dist/transports/webrtc.js +0 -481
- package/dist/transports/websocket.d.ts +0 -205
- package/dist/transports/websocket.js +0 -407
- package/dist/types/architect.d.ts +0 -48
- package/dist/types/architect.js +0 -7
- package/dist/types/cognition.zod.d.ts +0 -312
- package/dist/types/cognition.zod.js +0 -223
- package/dist/types/dynamic-agent-types.d.ts +0 -158
- package/dist/types/dynamic-agent-types.js +0 -473
- package/dist/types/generated/ossa-0.3.2.types.d.ts +0 -367
- package/dist/types/generated/ossa-0.3.2.types.js +0 -10
- package/dist/types/generated/ossa-0.3.2.zod.d.ts +0 -36
- package/dist/types/generated/ossa-0.3.2.zod.js +0 -25
- package/dist/types/generated/ossa-0.3.3.types.d.ts +0 -367
- package/dist/types/generated/ossa-0.3.3.types.js +0 -10
- package/dist/types/generated/ossa-0.3.3.zod.d.ts +0 -36
- package/dist/types/generated/ossa-0.3.3.zod.js +0 -25
- package/dist/types/generated/ossa-0.3.4.types.d.ts +0 -430
- package/dist/types/generated/ossa-0.3.4.types.js +0 -10
- package/dist/types/generated/ossa-0.3.4.zod.d.ts +0 -340
- package/dist/types/generated/ossa-0.3.4.zod.js +0 -120
- package/dist/types/identity.d.ts +0 -82
- package/dist/types/identity.js +0 -10
- package/dist/types/identity.zod.d.ts +0 -622
- package/dist/types/identity.zod.js +0 -272
- package/dist/types/index.d.ts +0 -711
- package/dist/types/index.js +0 -32
- package/dist/types/llms-txt.zod.d.ts +0 -320
- package/dist/types/llms-txt.zod.js +0 -82
- package/dist/types/mcp-server-manifest.d.ts +0 -83
- package/dist/types/mcp-server-manifest.js +0 -17
- package/dist/types/messaging.d.ts +0 -116
- package/dist/types/messaging.js +0 -6
- package/dist/types/openapi-extensions.d.ts +0 -164
- package/dist/types/openapi-extensions.js +0 -6
- package/dist/types/personality.d.ts +0 -141
- package/dist/types/personality.js +0 -72
- package/dist/types/personality.zod.d.ts +0 -483
- package/dist/types/personality.zod.js +0 -190
- package/dist/types/policy.d.ts +0 -377
- package/dist/types/policy.js +0 -84
- package/dist/types/prompts.d.ts +0 -219
- package/dist/types/prompts.js +0 -163
- package/dist/types/prompts.zod.d.ts +0 -252
- package/dist/types/prompts.zod.js +0 -113
- package/dist/types/protocols.d.ts +0 -158
- package/dist/types/protocols.js +0 -8
- package/dist/types/role.d.ts +0 -126
- package/dist/types/role.js +0 -38
- package/dist/types/security.d.ts +0 -123
- package/dist/types/security.js +0 -9
- package/dist/types/skill.d.ts +0 -116
- package/dist/types/skill.js +0 -35
- package/dist/types/task.d.ts +0 -222
- package/dist/types/task.js +0 -40
- package/dist/types/tool.d.ts +0 -73
- package/dist/types/tool.js +0 -66
- package/dist/types/workflow.d.ts +0 -283
- package/dist/types/workflow.js +0 -51
- package/dist/utils/constants.d.ts +0 -31
- package/dist/utils/constants.js +0 -31
- package/dist/utils/http-client.d.ts +0 -22
- package/dist/utils/http-client.js +0 -51
- package/dist/utils/index.d.ts +0 -12
- package/dist/utils/index.js +0 -12
- package/dist/utils/logger.d.ts +0 -82
- package/dist/utils/logger.js +0 -250
- package/dist/utils/manifest-scanner.d.ts +0 -41
- package/dist/utils/manifest-scanner.js +0 -71
- package/dist/utils/path-validator.d.ts +0 -24
- package/dist/utils/path-validator.js +0 -70
- package/dist/utils/proxy-resolver.d.ts +0 -36
- package/dist/utils/proxy-resolver.js +0 -59
- package/dist/utils/type-guards.d.ts +0 -59
- package/dist/utils/type-guards.js +0 -190
- package/dist/utils/user-agent.d.ts +0 -11
- package/dist/utils/user-agent.js +0 -17
- package/dist/utils/version.d.ts +0 -79
- package/dist/utils/version.js +0 -239
- package/dist/utils/yaml-parser.d.ts +0 -29
- package/dist/utils/yaml-parser.js +0 -38
- package/dist/validation/enhanced-validator.d.ts +0 -38
- package/dist/validation/enhanced-validator.js +0 -242
- package/dist/validation/error-codes.d.ts +0 -170
- package/dist/validation/error-codes.js +0 -1160
- package/dist/validation/error-formatter.d.ts +0 -81
- package/dist/validation/error-formatter.js +0 -375
- package/dist/validation/index.d.ts +0 -19
- package/dist/validation/index.js +0 -26
- package/dist/validation/linter.d.ts +0 -36
- package/dist/validation/linter.js +0 -453
- package/dist/validation/progressive-scorer.d.ts +0 -123
- package/dist/validation/progressive-scorer.js +0 -370
- package/dist/validation/validation-context.d.ts +0 -86
- package/dist/validation/validation-context.js +0 -138
- package/dist/validation/validator-registry.d.ts +0 -158
- package/dist/validation/validator-registry.js +0 -245
- package/dist/validation/validator.d.ts +0 -42
- package/dist/validation/validator.js +0 -290
- package/dist/validation/version-compliance.d.ts +0 -17
- package/dist/validation/version-compliance.js +0 -25
- package/dist/version-management/api/server.d.ts +0 -3
- package/dist/version-management/api/server.js +0 -75
- package/dist/version-management/cli/index.d.ts +0 -3
- package/dist/version-management/cli/index.js +0 -219
- package/dist/version-management/core/version-manager.d.ts +0 -108
- package/dist/version-management/core/version-manager.js +0 -322
- package/dist/version-management/index.d.ts +0 -3
- package/dist/version-management/index.js +0 -2
- package/dist/version.d.ts +0 -62
- package/dist/version.js +0 -76
- package/examples/a2a/agent-handoff.ossa.yaml +0 -202
- package/examples/a2a/service-discovery.ossa.yaml +0 -194
- package/examples/adapters/anthropic-quickstart.ts +0 -66
- package/examples/adapters/crewai-quickstart.py +0 -86
- package/examples/adapters/drupal-eca-mapping.yaml +0 -153
- package/examples/adapters/drupal-eca-task.yaml +0 -48
- package/examples/adapters/drupal-flowdrop-mapping.yaml +0 -463
- package/examples/adapters/drupal-maestro-mapping.yaml +0 -369
- package/examples/adapters/langchain-quickstart.ts +0 -40
- package/examples/adapters/mistral-README.md +0 -367
- package/examples/adapters/mistral-agent.yaml +0 -147
- package/examples/adapters/symfony-messenger-task.yaml +0 -135
- package/examples/adapters/symfony-messenger-workflow.yaml +0 -352
- package/examples/adk-integration/code-review-workflow.yml +0 -136
- package/examples/adk-integration/customer-support.yml +0 -263
- package/examples/adk-integration/data-pipeline.yml +0 -173
- package/examples/advanced/patterns/compliance-context-production.json +0 -53
- package/examples/advanced/patterns/model-router.ts +0 -274
- package/examples/advanced/patterns/smart-model-routing.ts +0 -300
- package/examples/advanced/reasoning-agent.yaml +0 -136
- package/examples/advanced/workflows/hybrid-model-strategy.yaml +0 -215
- package/examples/agent-manifests/critics/critic-agent.yaml +0 -149
- package/examples/agent-manifests/governors/governor-agent.yaml +0 -128
- package/examples/agent-manifests/integrators/integrator-agent.yaml +0 -103
- package/examples/agent-manifests/judges/judge-agent.yaml +0 -153
- package/examples/agent-manifests/monitors/monitor-agent.yaml +0 -122
- package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +0 -247
- package/examples/agent-manifests/sample-compliant-agent.yaml +0 -160
- package/examples/agent-manifests/v0.4-identity-security-protocols-full.ossa.yaml +0 -159
- package/examples/agent-manifests/v0.4-minimal-identity-security-protocols.ossa.yaml +0 -37
- package/examples/agent-manifests/v0.5-identity-security-protocols.ossa.yaml +0 -159
- package/examples/agent-manifests/v0.5-minimal.ossa.yaml +0 -37
- package/examples/agent-manifests/workers/worker-agent.yaml +0 -82
- package/examples/agent-mesh/DISCOVERY.md +0 -679
- package/examples/agent-mesh/README.ts +0 -311
- package/examples/agent-mesh/basic-usage.ts +0 -461
- package/examples/agent-mesh/discovery-system.ts +0 -670
- package/examples/agent-skills/SKILLS_CATALOG.md +0 -341
- package/examples/agent-skills/ossa-agent-authoring/SKILL.md +0 -62
- package/examples/agent-skills/react-best-practices/SKILL.md +0 -158
- package/examples/agent-skills/react-best-practices/references/react-performance-guidelines.md +0 -500
- package/examples/agent-taxonomy-example.ossa.yaml +0 -89
- package/examples/agents/01-customer-support-bot/.env.example +0 -32
- package/examples/agents/01-customer-support-bot/Dockerfile +0 -30
- package/examples/agents/01-customer-support-bot/README.md +0 -295
- package/examples/agents/01-customer-support-bot/agent.ossa.yaml +0 -165
- package/examples/agents/01-customer-support-bot/docker-compose.yml +0 -55
- package/examples/agents/01-customer-support-bot/openapi.yaml +0 -238
- package/examples/agents/01-customer-support-bot/package.json +0 -48
- package/examples/agents/02-code-review-agent/README.md +0 -72
- package/examples/agents/02-code-review-agent/agent.ossa.yaml +0 -288
- package/examples/agents/02-code-review-agent/docker-compose.yml +0 -22
- package/examples/agents/02-code-review-agent/openapi.yaml +0 -150
- package/examples/agents/03-data-analysis-agent/README.md +0 -51
- package/examples/agents/03-data-analysis-agent/agent.ossa.yaml +0 -152
- package/examples/agents/03-data-analysis-agent/openapi.yaml +0 -74
- package/examples/agents/04-content-moderator/README.md +0 -55
- package/examples/agents/04-content-moderator/agent.ossa.yaml +0 -131
- package/examples/agents/04-content-moderator/openapi.yaml +0 -50
- package/examples/agents/05-sales-assistant/README.md +0 -37
- package/examples/agents/05-sales-assistant/agent.ossa.yaml +0 -158
- package/examples/agents/05-sales-assistant/openapi.yaml +0 -59
- package/examples/agents/06-devops-agent/README.md +0 -39
- package/examples/agents/06-devops-agent/agent.ossa.yaml +0 -188
- package/examples/agents/06-devops-agent/openapi.yaml +0 -51
- package/examples/agents/07-research-assistant/README.md +0 -31
- package/examples/agents/07-research-assistant/agent.ossa.yaml +0 -185
- package/examples/agents/07-research-assistant/openapi.yaml +0 -56
- package/examples/agents/08-email-triage-agent/README.md +0 -33
- package/examples/agents/08-email-triage-agent/agent.ossa.yaml +0 -133
- package/examples/agents/08-email-triage-agent/openapi.yaml +0 -41
- package/examples/agents/09-security-scanner/README.md +0 -49
- package/examples/agents/09-security-scanner/agent.ossa.yaml +0 -220
- package/examples/agents/09-security-scanner/openapi.yaml +0 -46
- package/examples/agents/10-meeting-assistant/README.md +0 -53
- package/examples/agents/10-meeting-assistant/agent.ossa.yaml +0 -203
- package/examples/agents/10-meeting-assistant/docker-compose.yml +0 -27
- package/examples/agents/10-meeting-assistant/openapi.yaml +0 -131
- package/examples/agents/COMPLETION_REPORT.txt +0 -272
- package/examples/agents/INDEX.md +0 -296
- package/examples/agents/README.md +0 -452
- package/examples/agents/SUMMARY.md +0 -362
- package/examples/agents/TEST_RESULTS.md +0 -458
- package/examples/agents/architecture-healer-enterprise.yaml +0 -143
- package/examples/agents/dependency-healer-npm.yaml +0 -81
- package/examples/agents/security-audit-agent.ossa.yaml +0 -234
- package/examples/agents/spec-healer-openapi.yaml +0 -59
- package/examples/agents/wiki-healer-production.yaml +0 -131
- package/examples/agents-md/code-agent.ossa.json +0 -125
- package/examples/agents-md/monorepo-agent.ossa.yaml +0 -199
- package/examples/agentscope/react-assistant/README.md +0 -111
- package/examples/agentscope/react-assistant/agent.ossa.yaml +0 -136
- package/examples/agentscope/react-assistant/skills/code-analysis/SKILL.md +0 -18
- package/examples/agentscope/react-assistant/skills/question-answering/SKILL.md +0 -18
- package/examples/anthropic/claude-assistant.ossa.json +0 -46
- package/examples/anthropic-adapter-example.ts +0 -374
- package/examples/anthropic-simple.ts +0 -70
- package/examples/architecture/model-configuration/ollama-integration.ts +0 -110
- package/examples/autogen/multi-agent.ossa.json +0 -39
- package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +0 -34
- package/examples/bridge-configurations.yaml +0 -346
- package/examples/bridges/.gitlab-ci.yml +0 -293
- package/examples/bridges/Dockerfile.production +0 -87
- package/examples/bridges/__pycache__/aiflow-bridge-enhanced.cpython-313.pyc +0 -0
- package/examples/bridges/__pycache__/aiflow-phoenix-tracing.cpython-313.pyc +0 -0
- package/examples/bridges/aiflow-bridge-enhanced.py +0 -462
- package/examples/bridges/aiflow-bridge-example.yml +0 -310
- package/examples/bridges/aiflow-phoenix-tracing.py +0 -310
- package/examples/bridges/aiflow-registration-api.openapi.yml +0 -439
- package/examples/bridges/k8s/configmap.yaml +0 -121
- package/examples/bridges/k8s/deployment-simple.yaml +0 -34
- package/examples/bridges/k8s/deployment.yaml +0 -275
- package/examples/bridges/k8s/hpa.yaml +0 -126
- package/examples/bridges/k8s/ingress.yaml +0 -155
- package/examples/bridges/kagent-bridge-example.yml +0 -94
- package/examples/bridges/load-tests/Dockerfile +0 -28
- package/examples/bridges/load-tests/k6-load-test.js +0 -302
- package/examples/bridges/load-tests/requirements.txt +0 -20
- package/examples/bridges/loadtest/k6-scenarios.js +0 -270
- package/examples/bridges/phase4/SLO-SLA.yaml +0 -249
- package/examples/bridges/phase4/chaos-tests.yaml +0 -226
- package/examples/bridges/requirements.txt +0 -24
- package/examples/bridges/test_aiflow_integration.py +0 -341
- package/examples/build-once-use-everywhere/README.md +0 -184
- package/examples/build-once-use-everywhere/agent.ossa.yaml +0 -38
- package/examples/build-once-use-everywhere/deploy-config.yaml +0 -32
- package/examples/ci/multi-project-release-example.yml +0 -401
- package/examples/claude-code/code-reviewer.ossa.yaml +0 -86
- package/examples/claude-code/ossa-validator.ossa.yaml +0 -86
- package/examples/common_npm/agent-router.ossa.yaml +0 -61
- package/examples/compliance-agent.yml +0 -155
- package/examples/contracts/data-consumer.ossa.yaml +0 -171
- package/examples/contracts/data-producer-v2.ossa.yaml +0 -229
- package/examples/contracts/data-producer.ossa.yaml +0 -219
- package/examples/coordinator-agent/README.md +0 -180
- package/examples/coordinator-agent/index.ts +0 -440
- package/examples/coordinator-agent/manifest.yaml +0 -41
- package/examples/crewai/research-team.ossa.json +0 -45
- package/examples/cursor/code-review-agent.ossa.json +0 -62
- package/examples/deployment-workflow.md +0 -601
- package/examples/drupal/QUICKSTART.md +0 -453
- package/examples/drupal/ai_agents_agentscope/README.md +0 -62
- package/examples/drupal/ai_agents_agentscope/ai_agents_agentscope.info.yml +0 -13
- package/examples/drupal/ai_agents_agentscope/ai_agents_agentscope.services.yml +0 -4
- package/examples/drupal/ai_agents_agentscope/config/install/ai_agents_agentscope.settings.yml +0 -3
- package/examples/drupal/ai_agents_agentscope/config/schema/ai_agents_agentscope.schema.yml +0 -14
- package/examples/drupal/ai_agents_agentscope/src/AgentScopeRuntime.php +0 -11
- package/examples/drupal/ai_agents_agentscope/src/Plugin/AiAgent/AgentScopeAgent.php +0 -10
- package/examples/drupal/ai_agents_agentscope/src/Plugin/AiProvider/AgentScopeProvider.php +0 -217
- package/examples/drupal/ai_agents_agentscope/src/Plugin/Derivative/AgentScopeDeriver.php +0 -10
- package/examples/drupal/ai_agents_agentscope/src/Service/AgentScopeAdapter.php +0 -9
- package/examples/drupal/ai_agents_ossa-module/.agents/example-agent/agent.ossa.yaml +0 -30
- package/examples/drupal/content-moderator.ossa.yaml +0 -217
- package/examples/drupal/drupal-contributor-agent/.eslintrc.json +0 -58
- package/examples/drupal/drupal-contributor-agent/.prettierrc.json +0 -10
- package/examples/drupal/drupal-contributor-agent/package.json +0 -55
- package/examples/drupal/drupal-contributor-agent/src/core/index.ts +0 -10
- package/examples/drupal/drupal-contributor-agent/src/index.ts +0 -17
- package/examples/drupal/drupal-contributor-agent/src/types/index.ts +0 -180
- package/examples/drupal/drupal-contributor-agent/tsconfig.json +0 -36
- package/examples/drupal/drupal-contributor.ossa.yaml +0 -247
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +0 -69
- package/examples/economics/marketplace-agent.ossa.json +0 -210
- package/examples/enterprise/agent.yml +0 -452
- package/examples/export/langchain/production-agent-with-memory/README.md +0 -373
- package/examples/export/langchain/production-agent-with-memory/agent.ossa.yaml +0 -87
- package/examples/export/langchain/production-agent-with-streaming/README.md +0 -617
- package/examples/export/langchain/production-agent-with-streaming/agent.ossa.yaml +0 -86
- package/examples/export/langchain/production-agent-with-streaming/client-example.py +0 -263
- package/examples/export/langchain/production-agent-with-tools/README.md +0 -296
- package/examples/export/langchain/production-agent-with-tools/agent.ossa.yaml +0 -215
- package/examples/export/langchain-export-example.ts +0 -246
- package/examples/export/langserve-export-example.ts +0 -246
- package/examples/export/test-generation-example.ts +0 -457
- package/examples/extensions/agents-md-advanced.yml +0 -177
- package/examples/extensions/agents-md-basic.yml +0 -74
- package/examples/extensions/agents-md-sync.yml +0 -96
- package/examples/extensions/agents-md-v1.yml +0 -176
- package/examples/extensions/drupal-v1.yml +0 -266
- package/examples/extensions/encryption-multi-provider.yaml +0 -120
- package/examples/extensions/kagent-v1.yml +0 -167
- package/examples/extensions/knowledge-sources.yaml +0 -59
- package/examples/extensions/mcp-full-featured.yaml +0 -150
- package/examples/genetics/breeding-agent.ossa.json +0 -194
- package/examples/getting-started/01-minimal-agent.ossa.yaml +0 -51
- package/examples/getting-started/02-agent-with-tools.ossa.yaml +0 -229
- package/examples/getting-started/03-agent-with-safety.ossa.yaml +0 -137
- package/examples/getting-started/04-agent-with-messaging.ossa.yaml +0 -392
- package/examples/getting-started/05-workflow-composition.ossa.yaml +0 -153
- package/examples/getting-started/README.md +0 -69
- package/examples/getting-started/hello-world-complete.ossa.yaml +0 -112
- package/examples/gitlab-agents/DEPLOYMENT.md +0 -331
- package/examples/gitlab-agents/daily-code-scan/.env.example +0 -11
- package/examples/gitlab-agents/daily-code-scan/.gitlab-ci.yml +0 -34
- package/examples/gitlab-agents/daily-code-scan/Dockerfile +0 -18
- package/examples/gitlab-agents/daily-code-scan/README.md +0 -80
- package/examples/gitlab-agents/daily-code-scan/package.json +0 -28
- package/examples/gitlab-agents/daily-code-scan/src/gitlab-client.ts +0 -135
- package/examples/gitlab-agents/daily-code-scan/src/index.ts +0 -50
- package/examples/gitlab-agents/daily-code-scan/src/types.ts +0 -22
- package/examples/gitlab-agents/daily-code-scan/src/workflow.ts +0 -109
- package/examples/gitlab-agents/daily-code-scan/tsconfig.json +0 -24
- package/examples/gitlab-agents/duo-comment-responder/.env.example +0 -14
- package/examples/gitlab-agents/duo-comment-responder/.gitlab-ci.yml +0 -34
- package/examples/gitlab-agents/duo-comment-responder/Dockerfile +0 -18
- package/examples/gitlab-agents/duo-comment-responder/README.md +0 -98
- package/examples/gitlab-agents/duo-comment-responder/package.json +0 -29
- package/examples/gitlab-agents/duo-comment-responder/src/gitlab-client.ts +0 -56
- package/examples/gitlab-agents/duo-comment-responder/src/index.ts +0 -103
- package/examples/gitlab-agents/duo-comment-responder/src/llm-client.ts +0 -75
- package/examples/gitlab-agents/duo-comment-responder/src/types.ts +0 -22
- package/examples/gitlab-agents/duo-comment-responder/src/workflow.ts +0 -135
- package/examples/gitlab-agents/duo-comment-responder/tsconfig.json +0 -24
- package/examples/gitlab-agents/duo-comment-responder/webhook-config.json +0 -11
- package/examples/gitlab-agents/gitlab-ci-agent.ossa.yaml +0 -221
- package/examples/gitlab-agents/k8s/deploy-all.yaml +0 -341
- package/examples/gitlab-agents/mr-reviewer/.env.example +0 -14
- package/examples/gitlab-agents/mr-reviewer/.gitlab-ci.yml +0 -34
- package/examples/gitlab-agents/mr-reviewer/Dockerfile +0 -18
- package/examples/gitlab-agents/mr-reviewer/README.md +0 -98
- package/examples/gitlab-agents/mr-reviewer/package.json +0 -29
- package/examples/gitlab-agents/mr-reviewer/src/gitlab-client.ts +0 -136
- package/examples/gitlab-agents/mr-reviewer/src/index.ts +0 -103
- package/examples/gitlab-agents/mr-reviewer/src/llm-client.ts +0 -95
- package/examples/gitlab-agents/mr-reviewer/src/types.ts +0 -22
- package/examples/gitlab-agents/mr-reviewer/src/workflow.ts +0 -144
- package/examples/gitlab-agents/mr-reviewer/tsconfig.json +0 -24
- package/examples/gitlab-agents/mr-reviewer/webhook-config.json +0 -11
- package/examples/gitlab-agents/pipeline-auto-fix/.env.example +0 -14
- package/examples/gitlab-agents/pipeline-auto-fix/.gitlab-ci.yml +0 -34
- package/examples/gitlab-agents/pipeline-auto-fix/Dockerfile +0 -18
- package/examples/gitlab-agents/pipeline-auto-fix/README.md +0 -98
- package/examples/gitlab-agents/pipeline-auto-fix/package.json +0 -29
- package/examples/gitlab-agents/pipeline-auto-fix/src/gitlab-client.ts +0 -76
- package/examples/gitlab-agents/pipeline-auto-fix/src/index.ts +0 -103
- package/examples/gitlab-agents/pipeline-auto-fix/src/llm-client.ts +0 -79
- package/examples/gitlab-agents/pipeline-auto-fix/src/types.ts +0 -22
- package/examples/gitlab-agents/pipeline-auto-fix/src/workflow.ts +0 -146
- package/examples/gitlab-agents/pipeline-auto-fix/tsconfig.json +0 -24
- package/examples/gitlab-agents/pipeline-auto-fix/webhook-config.json +0 -11
- package/examples/gitlab-agents/pre-commit-quality-check/.env.example +0 -11
- package/examples/gitlab-agents/pre-commit-quality-check/.gitlab-ci.yml +0 -34
- package/examples/gitlab-agents/pre-commit-quality-check/Dockerfile +0 -18
- package/examples/gitlab-agents/pre-commit-quality-check/README.md +0 -80
- package/examples/gitlab-agents/pre-commit-quality-check/package.json +0 -28
- package/examples/gitlab-agents/pre-commit-quality-check/src/gitlab-client.ts +0 -20
- package/examples/gitlab-agents/pre-commit-quality-check/src/index.ts +0 -50
- package/examples/gitlab-agents/pre-commit-quality-check/src/types.ts +0 -22
- package/examples/gitlab-agents/pre-commit-quality-check/src/workflow.ts +0 -63
- package/examples/gitlab-agents/pre-commit-quality-check/tsconfig.json +0 -24
- package/examples/gitlab-agents/pre-push-validation/.env.example +0 -11
- package/examples/gitlab-agents/pre-push-validation/.gitlab-ci.yml +0 -34
- package/examples/gitlab-agents/pre-push-validation/Dockerfile +0 -18
- package/examples/gitlab-agents/pre-push-validation/README.md +0 -80
- package/examples/gitlab-agents/pre-push-validation/package.json +0 -28
- package/examples/gitlab-agents/pre-push-validation/src/gitlab-client.ts +0 -20
- package/examples/gitlab-agents/pre-push-validation/src/index.ts +0 -50
- package/examples/gitlab-agents/pre-push-validation/src/types.ts +0 -22
- package/examples/gitlab-agents/pre-push-validation/src/workflow.ts +0 -63
- package/examples/gitlab-agents/pre-push-validation/tsconfig.json +0 -24
- package/examples/gitlab-duo/EXTERNAL_AGENTS.md +0 -466
- package/examples/gitlab-duo/README.md +0 -307
- package/examples/gitlab-duo/code-review-flow.yaml +0 -62
- package/examples/gitlab-duo/external-agent-example.ts +0 -192
- package/examples/gitlab-duo/generated/custom-vars-agent.yaml +0 -45
- package/examples/gitlab-duo/generated/go-agent.yaml +0 -41
- package/examples/gitlab-duo/generated/python-agent.yaml +0 -43
- package/examples/gitlab-duo/generated/webhook-agent.yaml +0 -52
- package/examples/hierarchical-agent.ossa.yaml +0 -83
- package/examples/hierarchical-crewai.ossa.yaml +0 -96
- package/examples/infrastructure/token-rotation/README.md +0 -119
- package/examples/infrastructure/token-rotation/manifest.ossa.yaml +0 -73
- package/examples/infrastructure/token-rotation/openapi.yaml +0 -133
- package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +0 -115
- package/examples/kagent/README.md +0 -32
- package/examples/kagent/compliance-validator.ossa.yaml +0 -100
- package/examples/kagent/cost-optimizer.ossa.yaml +0 -81
- package/examples/kagent/documentation-agent.ossa.yaml +0 -79
- package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +0 -87
- package/examples/kagent/k8s-troubleshooter.ossa.yaml +0 -102
- package/examples/kagent/ossa-kagent-anthropic.ossa.yaml +0 -36
- package/examples/kagent/ossa-kagent-mcp-tools.ossa.yaml +0 -40
- package/examples/kagent/ossa-kagent-multi-tool.ossa.yaml +0 -41
- package/examples/kagent/ossa-kagent-poc.ossa.yaml +0 -32
- package/examples/kagent/security-scanner.ossa.yaml +0 -84
- package/examples/knowledge-graph/drupal-agent-with-kg.ossa.yaml +0 -289
- package/examples/langchain/chain-agent.ossa.json +0 -58
- package/examples/langflow/workflow-agent.ossa.json +0 -38
- package/examples/langgraph/state-machine-agent.ossa.json +0 -58
- package/examples/lifecycle/mentoring-agent.ossa.json +0 -293
- package/examples/llamaindex/rag-agent.ossa.json +0 -40
- package/examples/mcp/browser-puppeteer.ossa.yaml +0 -232
- package/examples/mcp/database-mcp.ossa.yaml +0 -134
- package/examples/mcp/filesystem-mcp.ossa.yaml +0 -101
- package/examples/messaging/dependency-healer.ossa.yaml +0 -354
- package/examples/messaging/incident-responder.ossa.yaml +0 -477
- package/examples/messaging/routing-rules.ossa.yaml +0 -200
- package/examples/messaging/security-scanner.ossa.yaml +0 -335
- package/examples/migration-guides/from-langchain-to-ossa.yaml +0 -309
- package/examples/migrations/crewai-to-ossa/README.md +0 -66
- package/examples/migrations/langchain/01-python-react-agent-after.ossa.yaml +0 -38
- package/examples/migrations/langchain/01-python-react-agent-before.py +0 -62
- package/examples/migrations/langchain/02-typescript-conversational-after.ossa.yaml +0 -40
- package/examples/migrations/langchain/02-typescript-conversational-before.ts +0 -79
- package/examples/migrations/langchain/03-sequential-chain-after.ossa.yaml +0 -95
- package/examples/migrations/langchain/03-sequential-chain-before.py +0 -100
- package/examples/migrations/langchain/04-config-based-after.ossa.yaml +0 -54
- package/examples/migrations/langchain/04-config-based-before.yaml +0 -52
- package/examples/migrations/langchain/INTEGRATION-EXAMPLE.txt +0 -335
- package/examples/migrations/langchain/USAGE.txt +0 -121
- package/examples/migrations/langchain/test-migrations.ts +0 -135
- package/examples/migrations/langchain-to-ossa/README.md +0 -73
- package/examples/migrations/swarm-to-ossa/COMPARISON.md +0 -350
- package/examples/migrations/swarm-to-ossa/INDEX.md +0 -355
- package/examples/migrations/swarm-to-ossa/MIGRATION-FLOW.md +0 -410
- package/examples/migrations/swarm-to-ossa/QUICKSTART.md +0 -453
- package/examples/migrations/swarm-to-ossa/README.md +0 -665
- package/examples/migrations/swarm-to-ossa/after-handoffs.ossa.yaml +0 -482
- package/examples/migrations/swarm-to-ossa/after-triage-agent.ossa.yaml +0 -315
- package/examples/migrations/swarm-to-ossa/before-triage-agent.py +0 -234
- package/examples/minimal/agent.yml +0 -152
- package/examples/minimal/openapi.yaml +0 -95
- package/examples/mistral-adapter-example.ts +0 -435
- package/examples/mistral-simple.ts +0 -56
- package/examples/mr-reviewer-with-governance.ossa.yaml +0 -130
- package/examples/multi-agent/README.md +0 -74
- package/examples/multi-agent/conditional-router.ossa.yaml +0 -42
- package/examples/multi-agent/parallel-execution.ossa.yaml +0 -54
- package/examples/multi-agent/sequential-pipeline.ossa.yaml +0 -45
- package/examples/multi-agent-research-workflow.ossa.yaml +0 -133
- package/examples/multi-platform/single-manifest/README.md +0 -72
- package/examples/multi-platform/single-manifest/agent.ossa.yaml +0 -32
- package/examples/npm-export-example.ts +0 -150
- package/examples/observability/activity-stream-full.yaml +0 -133
- package/examples/observability/gitlab-ci-template.yml +0 -304
- package/examples/openai/basic-agent.ossa.yaml +0 -60
- package/examples/openai/multi-tool-agent.ossa.json +0 -188
- package/examples/openai/swarm-agent.ossa.json +0 -72
- package/examples/openapi-extensions/README.md +0 -87
- package/examples/openapi-extensions/minimal-agent-api.openapi.yml +0 -288
- package/examples/openapi-extensions/orchestrator-agent-api.openapi.yml +0 -633
- package/examples/openapi-extensions/worker-agent-api.openapi.yml +0 -533
- package/examples/ossa-templates/01-code-assistant.ossa.yaml +0 -114
- package/examples/ossa-templates/02-security-scanner.ossa.yaml +0 -103
- package/examples/ossa-templates/03-ci-pipeline.ossa.yaml +0 -100
- package/examples/ossa-templates/04-code-reviewer.ossa.yaml +0 -116
- package/examples/ossa-templates/05-doc-generator.ossa.yaml +0 -102
- package/examples/ossa-templates/06-compliance-validator.ossa.yaml +0 -132
- package/examples/ossa-templates/07-workflow-orchestrator.ossa.yaml +0 -110
- package/examples/ossa-templates/08-content-writer.ossa.yaml +0 -136
- package/examples/ossa-templates/09-test-generator.ossa.yaml +0 -113
- package/examples/ossa-templates/10-data-transformer.ossa.yaml +0 -102
- package/examples/ossa-templates/11-react-performance-expert.ossa.yaml +0 -384
- package/examples/ossa-templates/12-typescript-type-safety-expert.ossa.yaml +0 -265
- package/examples/ossa-templates/13-accessibility-champion.ossa.yaml +0 -264
- package/examples/ossa-templates/14-security-hardening-agent.ossa.yaml +0 -267
- package/examples/ossa-templates/README.md +0 -98
- package/examples/pipeline-agent.ossa.yaml +0 -196
- package/examples/platform-specific/claude-code-subagent.yaml +0 -185
- package/examples/platform-specific/cursor-coding-agent.yaml +0 -175
- package/examples/platform-specific/warp-terminal-agent.yaml +0 -122
- package/examples/production/agent.yml +0 -713
- package/examples/production/document-analyzer-openai.yml +0 -134
- package/examples/production-ready/01-customer-support-bot/.env.example +0 -32
- package/examples/production-ready/01-customer-support-bot/Dockerfile +0 -30
- package/examples/production-ready/01-customer-support-bot/README.md +0 -295
- package/examples/production-ready/01-customer-support-bot/agent.ossa.yaml +0 -165
- package/examples/production-ready/01-customer-support-bot/docker-compose.yml +0 -55
- package/examples/production-ready/01-customer-support-bot/openapi.yaml +0 -238
- package/examples/production-ready/01-customer-support-bot/package.json +0 -48
- package/examples/production-ready/02-code-review-agent/README.md +0 -72
- package/examples/production-ready/02-code-review-agent/agent.ossa.yaml +0 -239
- package/examples/production-ready/02-code-review-agent/docker-compose.yml +0 -22
- package/examples/production-ready/02-code-review-agent/openapi.yaml +0 -150
- package/examples/production-ready/03-data-analysis-agent/README.md +0 -51
- package/examples/production-ready/03-data-analysis-agent/agent.ossa.yaml +0 -97
- package/examples/production-ready/03-data-analysis-agent/openapi.yaml +0 -74
- package/examples/production-ready/04-content-moderator/README.md +0 -55
- package/examples/production-ready/04-content-moderator/agent.ossa.yaml +0 -131
- package/examples/production-ready/04-content-moderator/openapi.yaml +0 -50
- package/examples/production-ready/05-sales-assistant/README.md +0 -37
- package/examples/production-ready/05-sales-assistant/agent.ossa.yaml +0 -158
- package/examples/production-ready/05-sales-assistant/openapi.yaml +0 -59
- package/examples/production-ready/06-devops-agent/README.md +0 -39
- package/examples/production-ready/06-devops-agent/agent.ossa.yaml +0 -141
- package/examples/production-ready/06-devops-agent/openapi.yaml +0 -51
- package/examples/production-ready/07-research-assistant/README.md +0 -31
- package/examples/production-ready/07-research-assistant/agent.ossa.yaml +0 -127
- package/examples/production-ready/07-research-assistant/openapi.yaml +0 -56
- package/examples/production-ready/08-email-triage-agent/README.md +0 -33
- package/examples/production-ready/08-email-triage-agent/agent.ossa.yaml +0 -133
- package/examples/production-ready/08-email-triage-agent/openapi.yaml +0 -41
- package/examples/production-ready/09-security-scanner/README.md +0 -49
- package/examples/production-ready/09-security-scanner/agent.ossa.yaml +0 -174
- package/examples/production-ready/09-security-scanner/openapi.yaml +0 -46
- package/examples/production-ready/10-meeting-assistant/README.md +0 -53
- package/examples/production-ready/10-meeting-assistant/agent.ossa.yaml +0 -203
- package/examples/production-ready/10-meeting-assistant/docker-compose.yml +0 -27
- package/examples/production-ready/10-meeting-assistant/openapi.yaml +0 -131
- package/examples/production-ready/COMPLETION_REPORT.txt +0 -272
- package/examples/production-ready/INDEX.md +0 -296
- package/examples/production-ready/README.md +0 -452
- package/examples/production-ready/SUMMARY.md +0 -362
- package/examples/production-ready/TEST_RESULTS.md +0 -458
- package/examples/quickstart/support-agent.ossa.yaml +0 -57
- package/examples/rag-agent/README.md +0 -136
- package/examples/rag-agent/index.ts +0 -272
- package/examples/rag-agent/manifest.yaml +0 -45
- package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +0 -171
- package/examples/real-world/rag-documentation-assistant.ossa.yaml +0 -229
- package/examples/reference-implementations/README.md +0 -321
- package/examples/reference-implementations/curl-scripts/README.md +0 -277
- package/examples/reference-implementations/python-client/README.md +0 -282
- package/examples/reference-implementations/python-client/examples/basic_usage.py +0 -84
- package/examples/reference-implementations/python-client/examples/publish_agent.py +0 -137
- package/examples/reference-implementations/python-client/ossa_client/__init__.py +0 -80
- package/examples/reference-implementations/python-client/ossa_client/agents.py +0 -240
- package/examples/reference-implementations/python-client/ossa_client/client.py +0 -164
- package/examples/reference-implementations/python-client/ossa_client/discovery.py +0 -153
- package/examples/reference-implementations/python-client/ossa_client/messaging.py +0 -227
- package/examples/reference-implementations/python-client/requirements.txt +0 -2
- package/examples/reference-implementations/python-client/setup.py +0 -40
- package/examples/reference-implementations/typescript-client/README.md +0 -227
- package/examples/reference-implementations/typescript-client/examples/basic-usage.ts +0 -86
- package/examples/reference-implementations/typescript-client/examples/messaging.ts +0 -185
- package/examples/reference-implementations/typescript-client/examples/publish-agent.ts +0 -138
- package/examples/reference-implementations/typescript-client/package.json +0 -40
- package/examples/reference-implementations/typescript-client/src/agents.ts +0 -285
- package/examples/reference-implementations/typescript-client/src/client.ts +0 -161
- package/examples/reference-implementations/typescript-client/src/discovery.ts +0 -244
- package/examples/reference-implementations/typescript-client/src/index.ts +0 -67
- package/examples/reference-implementations/typescript-client/src/messaging.ts +0 -385
- package/examples/reference-implementations/typescript-client/tsconfig.json +0 -25
- package/examples/registry/USAGE.txt +0 -105
- package/examples/registry/agents/code-reviewer/agent.yaml +0 -159
- package/examples/registry/agents/security-scanner/agent.yaml +0 -128
- package/examples/registry/index.json +0 -5
- package/examples/roles/drupal-developer.role.yaml +0 -37
- package/examples/roles/platform-operator.role.yaml +0 -28
- package/examples/roles/security-auditor.role.yaml +0 -27
- package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +0 -99
- package/examples/schema/reusable-components.yaml +0 -95
- package/examples/service-registry-usage.ts +0 -423
- package/examples/showcase/PRODUCTION_EXAMPLES.md +0 -499
- package/examples/showcase/ci-pipeline.ossa.yaml +0 -55
- package/examples/showcase/code-assistant.ossa.yaml +0 -104
- package/examples/showcase/code-reviewer.ossa.yaml +0 -58
- package/examples/showcase/compliance-checker.ossa.yaml +0 -207
- package/examples/showcase/compliance-validator.ossa.yaml +0 -61
- package/examples/showcase/content-writer.ossa.yaml +0 -70
- package/examples/showcase/customer-support.ossa.yaml +0 -344
- package/examples/showcase/data-processing-pipeline.ossa.yaml +0 -254
- package/examples/showcase/data-transformer.ossa.yaml +0 -76
- package/examples/showcase/doc-generator.ossa.yaml +0 -66
- package/examples/showcase/full-power-agent.ossa.yaml +0 -350
- package/examples/showcase/security-scanner-enhanced.ossa.yaml +0 -304
- package/examples/showcase/security-scanner.ossa.yaml +0 -66
- package/examples/showcase/team-leader.ossa.yaml +0 -306
- package/examples/showcase/test-generator.ossa.yaml +0 -37
- package/examples/showcase/workflow-orchestrator.ossa.yaml +0 -114
- package/examples/single-agent.ossa.yaml +0 -40
- package/examples/skills/drupal-code-analysis/skill.ossa.yaml +0 -111
- package/examples/skills/git-commit-review/skill.ossa.yaml +0 -86
- package/examples/skills/tdd-workflow/skill.ossa.yaml +0 -93
- package/examples/skills-example.ossa.yaml +0 -140
- package/examples/spec-examples/audit-agent.yml +0 -147
- package/examples/spec-examples/chat-agent.yml +0 -189
- package/examples/spec-examples/compliance-agent.yml +0 -204
- package/examples/spec-examples/data-processing-agent.yml +0 -132
- package/examples/spec-examples/development-agent.yml +0 -138
- package/examples/spec-examples/edge-agent.yml +0 -101
- package/examples/spec-examples/integration-agent.yml +0 -129
- package/examples/spec-examples/monitoring-agent.yml +0 -130
- package/examples/spec-examples/serverless-agent.yml +0 -82
- package/examples/spec-examples/workflow-agent.yml +0 -223
- package/examples/subagents-pipeline.ossa.yaml +0 -76
- package/examples/swarm/pso-optimizer.ossa.json +0 -171
- package/examples/swarm-agent.ossa.yaml +0 -98
- package/examples/swarm-handoff.ossa.yaml +0 -67
- package/examples/tasks/batch-email-sender.yaml +0 -105
- package/examples/tasks/data-transform.yaml +0 -82
- package/examples/tasks/publish-content.yaml +0 -86
- package/examples/team-agent.ossa.yaml +0 -110
- package/examples/team-lead-teammate.ossa.yaml +0 -78
- package/examples/templates/ossa-compliance.yaml +0 -56
- package/examples/token-efficiency/security-scanner.ossa.yaml +0 -53
- package/examples/typescript/advanced/demo-registry.ts +0 -168
- package/examples/typescript/mcpb-agent-example.ts +0 -358
- package/examples/unified/security-scanner.ossa.yaml +0 -308
- package/examples/validation/error-codes-demo.ts +0 -254
- package/examples/vercel/edge-agent.ossa.json +0 -44
- package/examples/workflow-agent/README.md +0 -175
- package/examples/workflow-agent/index.ts +0 -408
- package/examples/workflow-agent/manifest.yaml +0 -41
- package/examples/workflows/batch-email-campaign.yaml +0 -140
- package/examples/workflows/content-review-publish.yaml +0 -156
- package/examples/workflows/simple-etl.yaml +0 -151
- package/openapi/CHANGELOG.md +0 -21
- package/openapi/README.md +0 -46
- package/openapi/agent-cognition-sessions.yaml +0 -580
- package/openapi/agent-communication.yaml +0 -1120
- package/openapi/agent-crud.yaml +0 -1102
- package/openapi/agent-discovery.yaml +0 -715
- package/openapi/agent-identity.yaml +0 -652
- package/openapi/agent-taxonomy.yaml +0 -378
- package/openapi/agents-md-service.yaml +0 -411
- package/openapi/cli/openapi.yaml +0 -1732
- package/openapi/core/ossa-core-api.openapi.yaml +0 -1321
- package/openapi/core/ossa-registry-api.openapi.yaml +0 -1043
- package/openapi/core/ossa-registry.openapi.yaml +0 -964
- package/openapi/core/unified-agent-gateway.openapi.yaml +0 -897
- package/openapi/daemon-api.openapi.yaml +0 -968
- package/openapi/dev-cli/openapi.yaml +0 -992
- package/openapi/github-sync.yaml +0 -158
- package/openapi/marketplace-plugin.openapi.yaml +0 -2358
- package/openapi/ossa-api.openapi.yaml +0 -1237
- package/openapi/ossa-cli-enhancements.openapi.yaml +0 -608
- package/openapi/ossa-cli.yaml +0 -1051
- package/openapi/protocols/sse-streams.yaml +0 -471
- package/openapi/protocols/websocket-events.yaml +0 -434
- package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +0 -153
- package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +0 -204
- package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +0 -160
- package/openapi/reference-implementations/critic-agent-api.openapi.yaml +0 -177
- package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +0 -223
- package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +0 -399
- package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +0 -160
- package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +0 -155
- package/openapi/reference-implementations/governor-agent-api.openapi.yaml +0 -211
- package/openapi/reference-implementations/helm-generator.openapi.yaml +0 -431
- package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +0 -175
- package/openapi/reference-implementations/judge-agent-api.openapi.yaml +0 -154
- package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +0 -181
- package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +0 -182
- package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +0 -184
- package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +0 -264
- package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +0 -195
- package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +0 -1664
- package/openapi/reference-implementations/worker-agent-api.openapi.yaml +0 -219
- package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +0 -207
- package/openapi/registry.yaml +0 -49
- package/openapi/release-automation.openapi.yaml +0 -178
- package/openapi/schemas/common/agent.yaml +0 -264
- package/openapi/schemas/common/economics.yaml +0 -98
- package/openapi/schemas/common/errors.yaml +0 -85
- package/openapi/schemas/common/metadata.yaml +0 -86
- package/openapi/schemas/common/pagination.yaml +0 -84
- package/openapi/schemas/common/security.yaml +0 -96
- package/openapi/schemas/discovery.json +0 -488
- package/openapi/schemas/index.yaml +0 -95
- package/openapi/uadp-asyncapi.yaml +0 -434
- package/openapi/uadp-openapi.yaml +0 -865
- package/openapi/version-management.openapi.yaml +0 -761
- package/spec/extensions/a2a-messaging.md +0 -471
- package/spec/extensions/cognition.schema.json +0 -87
- package/spec/extensions/knowledge-graph/knowledge-graph.schema.json +0 -386
- package/spec/extensions/manifest-extensions.md +0 -550
- package/spec/extensions/openapi/ossa-openapi-extensions.schema.json +0 -804
- package/spec/extensions/role-manifest.md +0 -188
- package/spec/extensions/skills-compatibility.md +0 -292
- package/spec/layer4-economics/duadp-examples.json +0 -44
- package/spec/ossa-audit-api.yaml +0 -311
- package/spec/schema/agent-test.schema.json +0 -117
- package/spec/schema/components/activity-stream.schema.json +0 -94
- package/spec/schema/components/adapter.schema.json +0 -33
- package/spec/schema/components/constraints.schema.json +0 -84
- package/spec/schema/components/dependencies.schema.json +0 -147
- package/spec/schema/components/encryption.schema.json +0 -115
- package/spec/schema/components/identity.schema.json +0 -126
- package/spec/schema/components/index.json +0 -37
- package/spec/schema/components/llm-config.schema.json +0 -67
- package/spec/schema/components/metadata.schema.json +0 -52
- package/spec/schema/components/tool.schema.json +0 -64
- package/spec/schema/extensions/a2a.extension.schema.json +0 -127
- package/spec/uadp/README.md +0 -393
- package/spec/uadp/openapi.yaml +0 -387
- package/spec/uadp/schemas/uadp-agents-response.schema.json +0 -68
- package/spec/uadp/schemas/uadp-federation-response.schema.json +0 -46
- package/spec/uadp/schemas/uadp-manifest.schema.json +0 -82
- package/spec/uadp/schemas/uadp-skills-response.schema.json +0 -72
- package/spec/v0.4/agent-card.schema.json +0 -477
- package/spec/v0.4/agent.schema.json +0 -1581
- package/spec/v0.4/conformance/profiles/baseline.json +0 -19
- package/spec/v0.4/conformance/profiles/enterprise.json +0 -20
- package/spec/v0.4/extensions/a2a/README.md +0 -193
- package/spec/v0.4/extensions/a2a/a2a.schema.json +0 -77
- package/spec/v0.4/extensions/ag2/ag2.schema.json +0 -277
- package/spec/v0.4/extensions/cognition/cognition.schema.json +0 -94
- package/spec/v0.4/extensions/cognition/thought-node.schema.json +0 -80
- package/spec/v0.4/extensions/crewai/crewai.schema.json +0 -256
- package/spec/v0.4/extensions/drupal/drupal.schema.json +0 -318
- package/spec/v0.4/extensions/evals/evals.schema.json +0 -597
- package/spec/v0.4/extensions/governance/governance-extension.yaml +0 -161
- package/spec/v0.4/extensions/identity/identity.schema.json +0 -302
- package/spec/v0.4/extensions/kagent/README.md +0 -315
- package/spec/v0.4/extensions/kagent/kagent.schema.json +0 -624
- package/spec/v0.4/extensions/langchain/langchain.schema.json +0 -243
- package/spec/v0.4/extensions/langgraph/langgraph.schema.json +0 -211
- package/spec/v0.4/extensions/mcp/README.md +0 -276
- package/spec/v0.4/extensions/mcp/mcp.schema.json +0 -84
- package/spec/v0.4/extensions/memory/memory.schema.json +0 -7
- package/spec/v0.4/extensions/team/team.schema.json +0 -304
- package/spec/v0.4/extensions/token-efficiency/token-efficiency.schema.json +0 -47
- package/spec/v0.4/mcp.schema.json +0 -1
- package/spec/v0.4/skill.schema.json +0 -1
- package/spec/v0.4/validator.schema.json +0 -282
- package/spec/v1/agent-card.schema.json +0 -254
- package/spec/v1/mcp.schema.json +0 -183
- package/spec/v1/skill.schema.json +0 -346
- package/templates/agent-types/claude-agent.ossa.yaml +0 -83
- package/templates/agent-types/kagent.ossa.yaml +0 -110
- package/templates/agent-types/langchain-agent.ossa.yaml +0 -106
- package/templates/agent-types/openapi-agent.ossa.yaml +0 -121
- package/templates/agent-types/swarm-agents.ossa.yaml +0 -168
- package/templates/ci-cd/github-actions.deploy.yml +0 -272
- package/templates/ci-cd/gitlab-ci.deploy.yml +0 -205
- package/templates/validators/capability-compatibility.ossa.yaml +0 -174
- package/templates/validators/coordination-consistency.ossa.yaml +0 -160
- package/templates/validators/pattern-requirements.ossa.yaml +0 -182
- package/templates/validators/transport-compatibility.ossa.yaml +0 -185
|
@@ -1,2400 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GitLab Duo Package Generator
|
|
3
|
-
* Orchestrates complete GitLab Duo agent package generation from OSSA manifests
|
|
4
|
-
*
|
|
5
|
-
* Extends BasePackageGenerator for shared npm package logic
|
|
6
|
-
*
|
|
7
|
-
* Generates complete directory structure (30+ files):
|
|
8
|
-
* {agent-name}-gitlab-duo/
|
|
9
|
-
* ├── .gitlab/duo/
|
|
10
|
-
* │ ├── flows/main.yaml, error.yaml, monitor.yaml, governance.yaml
|
|
11
|
-
* │ ├── agents/{name}.yaml
|
|
12
|
-
* │ ├── triggers/mention.yaml, assign.yaml, assign_reviewer.yaml,
|
|
13
|
-
* │ │ schedule.yaml, pipeline.yaml, webhook.yaml, file_pattern.yaml
|
|
14
|
-
* │ ├── routers/conditional.yaml, multi-agent.yaml
|
|
15
|
-
* │ ├── mcp-config.yaml
|
|
16
|
-
* │ ├── mcp-config.json
|
|
17
|
-
* │ ├── custom-tools.json
|
|
18
|
-
* │ └── AGENTS.md
|
|
19
|
-
* ├── src/
|
|
20
|
-
* ├── Dockerfile
|
|
21
|
-
* ├── package.json
|
|
22
|
-
* ├── README.md
|
|
23
|
-
* ├── DEPLOYMENT.md
|
|
24
|
-
* └── agent.ossa.yaml
|
|
25
|
-
*/
|
|
26
|
-
import * as fs from 'fs/promises';
|
|
27
|
-
import * as path from 'path';
|
|
28
|
-
import YAML from 'yaml';
|
|
29
|
-
import { BasePackageGenerator } from '../npm/package-generator.js';
|
|
30
|
-
import { GitLabDuoFlowGenerator } from './flow-generator.js';
|
|
31
|
-
import { ExternalAgentGenerator } from './external-agent-generator.js';
|
|
32
|
-
import { GitLabDuoTriggerGenerator } from './trigger-generator.js';
|
|
33
|
-
import { GitLabDuoRouterGenerator } from './router-generator.js';
|
|
34
|
-
export class GitLabDuoPackageGenerator extends BasePackageGenerator {
|
|
35
|
-
flowGenerator;
|
|
36
|
-
externalAgentGenerator;
|
|
37
|
-
triggerGenerator;
|
|
38
|
-
routerGenerator;
|
|
39
|
-
constructor() {
|
|
40
|
-
super();
|
|
41
|
-
this.flowGenerator = new GitLabDuoFlowGenerator();
|
|
42
|
-
this.externalAgentGenerator = new ExternalAgentGenerator();
|
|
43
|
-
this.triggerGenerator = new GitLabDuoTriggerGenerator();
|
|
44
|
-
this.routerGenerator = new GitLabDuoRouterGenerator();
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Generate complete GitLab Duo agent package
|
|
48
|
-
*/
|
|
49
|
-
async generate(manifest, options) {
|
|
50
|
-
const errors = [];
|
|
51
|
-
try {
|
|
52
|
-
// Validate manifest
|
|
53
|
-
const validation = this.validateManifest(manifest);
|
|
54
|
-
if (!validation.valid) {
|
|
55
|
-
return {
|
|
56
|
-
success: false,
|
|
57
|
-
errors: validation.errors,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
const agentName = this.getAgentName(manifest);
|
|
61
|
-
const packagePath = path.join(options.outputDir, `${agentName}-gitlab-duo`);
|
|
62
|
-
// Check if package already exists
|
|
63
|
-
if (!options.overwrite) {
|
|
64
|
-
try {
|
|
65
|
-
await fs.access(packagePath);
|
|
66
|
-
return {
|
|
67
|
-
success: false,
|
|
68
|
-
errors: [
|
|
69
|
-
`Package directory already exists: ${packagePath}. Use overwrite option to replace.`,
|
|
70
|
-
],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
catch {
|
|
74
|
-
// Directory doesn't exist, continue
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// Generate all files
|
|
78
|
-
const files = await this.generateAllFiles(manifest, options);
|
|
79
|
-
// Create directory structure and write files
|
|
80
|
-
const generatedFiles = await this.writeFiles(packagePath, files);
|
|
81
|
-
return {
|
|
82
|
-
success: true,
|
|
83
|
-
packagePath,
|
|
84
|
-
generatedFiles,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
errors.push(error instanceof Error ? error.message : String(error));
|
|
89
|
-
return {
|
|
90
|
-
success: false,
|
|
91
|
-
errors,
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Validate manifest before generation
|
|
97
|
-
*/
|
|
98
|
-
validateManifest(manifest) {
|
|
99
|
-
const errors = [];
|
|
100
|
-
if (!manifest.metadata?.name) {
|
|
101
|
-
errors.push('Manifest must have metadata.name');
|
|
102
|
-
}
|
|
103
|
-
if (!manifest.spec) {
|
|
104
|
-
errors.push('Manifest must have spec section');
|
|
105
|
-
}
|
|
106
|
-
if (!manifest.spec?.role) {
|
|
107
|
-
errors.push('Manifest must have spec.role');
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
valid: errors.length === 0,
|
|
111
|
-
errors,
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Get sanitized agent name from manifest
|
|
116
|
-
* Overrides base class to support legacy manifest.agent.name fallback
|
|
117
|
-
*/
|
|
118
|
-
getAgentName(manifest) {
|
|
119
|
-
const name = manifest.metadata?.name || manifest.agent?.name || 'agent';
|
|
120
|
-
return this.sanitizePackageName(name);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Generate all package files
|
|
124
|
-
*
|
|
125
|
-
* Generates a comprehensive GitLab Duo agent package:
|
|
126
|
-
* - 4 flows (main, error, monitor, governance)
|
|
127
|
-
* - 7 triggers (mention, assign, assign_reviewer, schedule, pipeline, webhook, file_pattern)
|
|
128
|
-
* - 2 routers (conditional, multi-agent)
|
|
129
|
-
* - 1 MCP config YAML
|
|
130
|
-
* - Agent definition, tools, documentation, and deployment files
|
|
131
|
-
*/
|
|
132
|
-
async generateAllFiles(manifest, options) {
|
|
133
|
-
const files = [];
|
|
134
|
-
const agentName = this.getAgentName(manifest);
|
|
135
|
-
// ── Flows (4 files) ──────────────────────────────────────
|
|
136
|
-
const flowFiles = this.flowGenerator.generateAllFlowFiles(manifest);
|
|
137
|
-
for (const [fileName, content] of flowFiles.entries()) {
|
|
138
|
-
files.push({
|
|
139
|
-
path: `.gitlab/duo/flows/${fileName}`,
|
|
140
|
-
content,
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
// ── External Agent YAML ──────────────────────────────────
|
|
144
|
-
const externalAgentResult = this.externalAgentGenerator.generate(manifest);
|
|
145
|
-
if (externalAgentResult.success && externalAgentResult.yaml) {
|
|
146
|
-
files.push({
|
|
147
|
-
path: `.gitlab/duo/agents/${agentName}.yaml`,
|
|
148
|
-
content: externalAgentResult.yaml,
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
// ── Triggers (7 files - all types) ───────────────────────
|
|
152
|
-
const triggerFiles = this.triggerGenerator.generateAllTriggerFiles(manifest);
|
|
153
|
-
for (const [fileName, content] of triggerFiles.entries()) {
|
|
154
|
-
files.push({
|
|
155
|
-
path: `.gitlab/duo/triggers/${fileName}`,
|
|
156
|
-
content,
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
// ── Routers (2 files) ────────────────────────────────────
|
|
160
|
-
const routerFiles = this.routerGenerator.generateAllRouterFiles(manifest);
|
|
161
|
-
for (const [fileName, content] of routerFiles.entries()) {
|
|
162
|
-
files.push({
|
|
163
|
-
path: `.gitlab/duo/routers/${fileName}`,
|
|
164
|
-
content,
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
// ── MCP Configuration (YAML) ─────────────────────────────
|
|
168
|
-
files.push({
|
|
169
|
-
path: `.gitlab/duo/mcp-config.yaml`,
|
|
170
|
-
content: this.generateMCPConfigYAML(manifest),
|
|
171
|
-
});
|
|
172
|
-
// ── MCP Configuration (JSON - for tooling compatibility) ─
|
|
173
|
-
files.push({
|
|
174
|
-
path: `.gitlab/duo/mcp-config.json`,
|
|
175
|
-
content: this.generateMCPConfig(manifest),
|
|
176
|
-
});
|
|
177
|
-
// ── Custom Tools Definition ──────────────────────────────
|
|
178
|
-
files.push({
|
|
179
|
-
path: `.gitlab/duo/custom-tools.json`,
|
|
180
|
-
content: this.generateCustomTools(manifest),
|
|
181
|
-
});
|
|
182
|
-
// ── AGENTS.md ────────────────────────────────────────────
|
|
183
|
-
files.push({
|
|
184
|
-
path: `.gitlab/duo/AGENTS.md`,
|
|
185
|
-
content: this.generateAgentsMd(manifest),
|
|
186
|
-
});
|
|
187
|
-
// ── OSSA manifest ────────────────────────────────────────
|
|
188
|
-
files.push({
|
|
189
|
-
path: 'agent.ossa.yaml',
|
|
190
|
-
content: this.generateOssaManifest(manifest),
|
|
191
|
-
});
|
|
192
|
-
// ── Documentation ────────────────────────────────────────
|
|
193
|
-
files.push({
|
|
194
|
-
path: 'README.md',
|
|
195
|
-
content: this.generateReadme(manifest),
|
|
196
|
-
});
|
|
197
|
-
files.push({
|
|
198
|
-
path: 'DEPLOYMENT.md',
|
|
199
|
-
content: this.generateDeploymentGuide(manifest),
|
|
200
|
-
});
|
|
201
|
-
files.push({
|
|
202
|
-
path: 'SECURITY.md',
|
|
203
|
-
content: this.generateSecurityGuide(manifest),
|
|
204
|
-
});
|
|
205
|
-
files.push({
|
|
206
|
-
path: 'MONITORING.md',
|
|
207
|
-
content: this.generateMonitoringGuide(manifest),
|
|
208
|
-
});
|
|
209
|
-
files.push({
|
|
210
|
-
path: 'TROUBLESHOOTING.md',
|
|
211
|
-
content: this.generateTroubleshootingGuide(manifest),
|
|
212
|
-
});
|
|
213
|
-
files.push({
|
|
214
|
-
path: 'FAQ.md',
|
|
215
|
-
content: this.generateFAQ(manifest),
|
|
216
|
-
});
|
|
217
|
-
files.push({
|
|
218
|
-
path: 'ARCHITECTURE.md',
|
|
219
|
-
content: this.generateArchitecture(manifest),
|
|
220
|
-
});
|
|
221
|
-
files.push({
|
|
222
|
-
path: 'API.md',
|
|
223
|
-
content: this.generateAPIDocumentation(manifest),
|
|
224
|
-
});
|
|
225
|
-
// ── package.json ─────────────────────────────────────────
|
|
226
|
-
files.push({
|
|
227
|
-
path: 'package.json',
|
|
228
|
-
content: this.generatePackageJsonForManifest(manifest),
|
|
229
|
-
});
|
|
230
|
-
// ── Dockerfile (if enabled) ──────────────────────────────
|
|
231
|
-
if (options.includeDocker !== false) {
|
|
232
|
-
files.push({
|
|
233
|
-
path: 'Dockerfile',
|
|
234
|
-
content: this.generateDockerfile(manifest),
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
// ── Source templates (if enabled) ────────────────────────
|
|
238
|
-
if (options.includeSourceTemplates) {
|
|
239
|
-
files.push(...this.generateSourceTemplates(manifest));
|
|
240
|
-
}
|
|
241
|
-
// ── CI/CD configuration (if enabled) ─────────────────────
|
|
242
|
-
if (options.includeCI) {
|
|
243
|
-
files.push({
|
|
244
|
-
path: '.gitlab-ci.yml',
|
|
245
|
-
content: this.generateGitLabCI(manifest),
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
// ── .gitignore ───────────────────────────────────────────
|
|
249
|
-
files.push({
|
|
250
|
-
path: '.gitignore',
|
|
251
|
-
content: this.generateGitignore(),
|
|
252
|
-
});
|
|
253
|
-
return files;
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Write files to disk
|
|
257
|
-
*/
|
|
258
|
-
async writeFiles(packagePath, files) {
|
|
259
|
-
const generatedPaths = [];
|
|
260
|
-
for (const file of files) {
|
|
261
|
-
const filePath = path.join(packagePath, file.path);
|
|
262
|
-
const dir = path.dirname(filePath);
|
|
263
|
-
// Create directory
|
|
264
|
-
await fs.mkdir(dir, { recursive: true });
|
|
265
|
-
// Write file
|
|
266
|
-
await fs.writeFile(filePath, file.content, 'utf8');
|
|
267
|
-
generatedPaths.push(file.path);
|
|
268
|
-
}
|
|
269
|
-
return generatedPaths;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Generate AGENTS.md file
|
|
273
|
-
*/
|
|
274
|
-
generateAgentsMd(manifest) {
|
|
275
|
-
const agentName = manifest.metadata?.name || 'Agent';
|
|
276
|
-
const description = manifest.metadata?.description || '';
|
|
277
|
-
const role = manifest.spec?.role || '';
|
|
278
|
-
const lines = [];
|
|
279
|
-
lines.push(`# ${agentName}`);
|
|
280
|
-
lines.push('');
|
|
281
|
-
lines.push(description);
|
|
282
|
-
lines.push('');
|
|
283
|
-
lines.push('## Role');
|
|
284
|
-
lines.push('');
|
|
285
|
-
lines.push(role);
|
|
286
|
-
lines.push('');
|
|
287
|
-
// Add capabilities section
|
|
288
|
-
const tools = manifest.spec?.tools || [];
|
|
289
|
-
if (tools.length > 0) {
|
|
290
|
-
lines.push('## Capabilities');
|
|
291
|
-
lines.push('');
|
|
292
|
-
lines.push('This agent has access to the following tools:');
|
|
293
|
-
lines.push('');
|
|
294
|
-
for (const tool of tools) {
|
|
295
|
-
const toolObj = tool;
|
|
296
|
-
lines.push(`- **${toolObj.name || toolObj.type}**: ${toolObj.description || 'No description'}`);
|
|
297
|
-
}
|
|
298
|
-
lines.push('');
|
|
299
|
-
}
|
|
300
|
-
// Add usage section
|
|
301
|
-
lines.push('## Usage');
|
|
302
|
-
lines.push('');
|
|
303
|
-
lines.push('### Trigger Agent');
|
|
304
|
-
lines.push('');
|
|
305
|
-
lines.push('```bash');
|
|
306
|
-
lines.push(`glab duo agent trigger ${this.getAgentName(manifest)}`);
|
|
307
|
-
lines.push('```');
|
|
308
|
-
lines.push('');
|
|
309
|
-
// Add configuration section
|
|
310
|
-
lines.push('## Configuration');
|
|
311
|
-
lines.push('');
|
|
312
|
-
lines.push('### Environment Variables');
|
|
313
|
-
lines.push('');
|
|
314
|
-
const externalAgentResult = this.externalAgentGenerator.generate(manifest);
|
|
315
|
-
if (externalAgentResult.success && externalAgentResult.config) {
|
|
316
|
-
for (const variable of externalAgentResult.config.variables) {
|
|
317
|
-
lines.push(`- \`${variable}\``);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
lines.push('');
|
|
321
|
-
// Add LLM configuration
|
|
322
|
-
const llm = manifest.spec?.llm;
|
|
323
|
-
if (llm) {
|
|
324
|
-
lines.push('### LLM Configuration');
|
|
325
|
-
lines.push('');
|
|
326
|
-
const llmConfig = llm;
|
|
327
|
-
lines.push(`- **Provider**: ${llmConfig.provider || 'Not specified'}`);
|
|
328
|
-
lines.push(`- **Model**: ${llmConfig.model || 'Not specified'}`);
|
|
329
|
-
if (llmConfig.temperature !== undefined) {
|
|
330
|
-
lines.push(`- **Temperature**: ${llmConfig.temperature}`);
|
|
331
|
-
}
|
|
332
|
-
if (llmConfig.maxTokens) {
|
|
333
|
-
lines.push(`- **Max Tokens**: ${llmConfig.maxTokens}`);
|
|
334
|
-
}
|
|
335
|
-
lines.push('');
|
|
336
|
-
}
|
|
337
|
-
// Add deployment section
|
|
338
|
-
lines.push('## Deployment');
|
|
339
|
-
lines.push('');
|
|
340
|
-
lines.push('See [DEPLOYMENT.md](../../../DEPLOYMENT.md) for detailed deployment instructions.');
|
|
341
|
-
lines.push('');
|
|
342
|
-
// Add documentation link
|
|
343
|
-
lines.push('## Documentation');
|
|
344
|
-
lines.push('');
|
|
345
|
-
lines.push('- [GitLab Duo Documentation](https://docs.gitlab.com/ee/user/gitlab_duo/)');
|
|
346
|
-
lines.push('- [OSSA Specification](https://github.com/bluefly-io/ossa)');
|
|
347
|
-
lines.push('');
|
|
348
|
-
return lines.join('\n');
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Generate OSSA manifest YAML
|
|
352
|
-
*/
|
|
353
|
-
generateOssaManifest(manifest) {
|
|
354
|
-
return JSON.stringify(manifest, null, 2);
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* Generate README.md
|
|
358
|
-
*/
|
|
359
|
-
generateReadme(manifest) {
|
|
360
|
-
const agentName = manifest.metadata?.name || 'Agent';
|
|
361
|
-
const description = manifest.metadata?.description || '';
|
|
362
|
-
const version = manifest.metadata?.version || '1.0.0';
|
|
363
|
-
const lines = [];
|
|
364
|
-
lines.push(`# ${agentName}`);
|
|
365
|
-
lines.push('');
|
|
366
|
-
lines.push(`> ${description}`);
|
|
367
|
-
lines.push('');
|
|
368
|
-
lines.push(`**Version**: ${version}`);
|
|
369
|
-
lines.push('');
|
|
370
|
-
lines.push('## Overview');
|
|
371
|
-
lines.push('');
|
|
372
|
-
lines.push('This is a GitLab Duo agent generated from an OSSA manifest. It integrates with GitLab Duo AI Gateway and can be deployed as a Flow or External Agent.');
|
|
373
|
-
lines.push('');
|
|
374
|
-
lines.push('## Quick Start');
|
|
375
|
-
lines.push('');
|
|
376
|
-
lines.push('### Prerequisites');
|
|
377
|
-
lines.push('');
|
|
378
|
-
lines.push('- GitLab account with Duo access');
|
|
379
|
-
lines.push('- `glab` CLI installed');
|
|
380
|
-
lines.push('- Docker (for local testing)');
|
|
381
|
-
lines.push('');
|
|
382
|
-
lines.push('### Install Dependencies');
|
|
383
|
-
lines.push('');
|
|
384
|
-
lines.push('```bash');
|
|
385
|
-
lines.push('npm install');
|
|
386
|
-
lines.push('```');
|
|
387
|
-
lines.push('');
|
|
388
|
-
lines.push('### Build');
|
|
389
|
-
lines.push('');
|
|
390
|
-
lines.push('```bash');
|
|
391
|
-
lines.push('npm run build');
|
|
392
|
-
lines.push('```');
|
|
393
|
-
lines.push('');
|
|
394
|
-
lines.push('### Deploy');
|
|
395
|
-
lines.push('');
|
|
396
|
-
lines.push('See [DEPLOYMENT.md](./DEPLOYMENT.md) for deployment instructions.');
|
|
397
|
-
lines.push('');
|
|
398
|
-
lines.push('## Directory Structure');
|
|
399
|
-
lines.push('');
|
|
400
|
-
lines.push('```');
|
|
401
|
-
lines.push('.gitlab/duo/');
|
|
402
|
-
lines.push(' flows/');
|
|
403
|
-
lines.push(' main.yaml # Primary agent flow');
|
|
404
|
-
lines.push(' error.yaml # Error handling with retry logic');
|
|
405
|
-
lines.push(' monitor.yaml # Monitoring and observability');
|
|
406
|
-
lines.push(' governance.yaml # Compliance and policy checks');
|
|
407
|
-
lines.push(` agents/${this.getAgentName(manifest)}.yaml # External Agent configuration`);
|
|
408
|
-
lines.push(' triggers/');
|
|
409
|
-
lines.push(' mention.yaml # @agent mention triggers');
|
|
410
|
-
lines.push(' assign.yaml # Issue/MR assignment triggers');
|
|
411
|
-
lines.push(' assign_reviewer.yaml # MR reviewer assignment triggers');
|
|
412
|
-
lines.push(' schedule.yaml # Cron-based scheduled triggers');
|
|
413
|
-
lines.push(' pipeline.yaml # CI/CD pipeline triggers');
|
|
414
|
-
lines.push(' webhook.yaml # External webhook triggers');
|
|
415
|
-
lines.push(' file_pattern.yaml # File change pattern triggers');
|
|
416
|
-
lines.push(' routers/');
|
|
417
|
-
lines.push(' conditional.yaml # Conditional routing logic');
|
|
418
|
-
lines.push(' multi-agent.yaml # Multi-agent orchestration');
|
|
419
|
-
lines.push(' mcp-config.yaml # MCP server configuration (YAML)');
|
|
420
|
-
lines.push(' mcp-config.json # MCP server configuration (JSON)');
|
|
421
|
-
lines.push(' custom-tools.json # Custom tool definitions');
|
|
422
|
-
lines.push(' AGENTS.md # Agent documentation');
|
|
423
|
-
lines.push('src/ # Source code');
|
|
424
|
-
lines.push('agent.ossa.yaml # OSSA manifest');
|
|
425
|
-
lines.push('package.json # Node.js dependencies');
|
|
426
|
-
lines.push('Dockerfile # Container image');
|
|
427
|
-
lines.push('```');
|
|
428
|
-
lines.push('');
|
|
429
|
-
lines.push('## Documentation');
|
|
430
|
-
lines.push('');
|
|
431
|
-
lines.push('- [AGENTS.md](./.gitlab/duo/AGENTS.md) - Agent capabilities and usage');
|
|
432
|
-
lines.push('- [DEPLOYMENT.md](./DEPLOYMENT.md) - Deployment guide');
|
|
433
|
-
lines.push('- [GitLab Duo Documentation](https://docs.gitlab.com/ee/user/gitlab_duo/)');
|
|
434
|
-
lines.push('');
|
|
435
|
-
lines.push('## License');
|
|
436
|
-
lines.push('');
|
|
437
|
-
lines.push(manifest.metadata?.license || 'MIT');
|
|
438
|
-
lines.push('');
|
|
439
|
-
return lines.join('\n');
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Generate DEPLOYMENT.md
|
|
443
|
-
*/
|
|
444
|
-
generateDeploymentGuide(manifest) {
|
|
445
|
-
const agentName = this.getAgentName(manifest);
|
|
446
|
-
const lines = [];
|
|
447
|
-
lines.push('# Deployment Guide');
|
|
448
|
-
lines.push('');
|
|
449
|
-
lines.push(`This guide explains how to deploy the **${manifest.metadata?.name || 'Agent'}** to GitLab Duo.`);
|
|
450
|
-
lines.push('');
|
|
451
|
-
lines.push('## Deployment Options');
|
|
452
|
-
lines.push('');
|
|
453
|
-
lines.push('This agent supports two deployment modes:');
|
|
454
|
-
lines.push('');
|
|
455
|
-
lines.push('1. **Flow Agent** - Runs within GitLab Duo infrastructure (recommended)');
|
|
456
|
-
lines.push('2. **External Agent** - Runs in your GitLab CI/CD pipeline');
|
|
457
|
-
lines.push('');
|
|
458
|
-
lines.push('## Option 1: Flow Agent (Recommended)');
|
|
459
|
-
lines.push('');
|
|
460
|
-
lines.push('### Register Flow');
|
|
461
|
-
lines.push('');
|
|
462
|
-
lines.push('```bash');
|
|
463
|
-
lines.push(`glab duo flow register .gitlab/duo/flows/${agentName}.yaml`);
|
|
464
|
-
lines.push('```');
|
|
465
|
-
lines.push('');
|
|
466
|
-
lines.push('### Test Flow');
|
|
467
|
-
lines.push('');
|
|
468
|
-
lines.push('```bash');
|
|
469
|
-
lines.push(`glab duo flow test ${agentName}`);
|
|
470
|
-
lines.push('```');
|
|
471
|
-
lines.push('');
|
|
472
|
-
lines.push('### Deploy Flow');
|
|
473
|
-
lines.push('');
|
|
474
|
-
lines.push('```bash');
|
|
475
|
-
lines.push(`glab duo flow deploy ${agentName}`);
|
|
476
|
-
lines.push('```');
|
|
477
|
-
lines.push('');
|
|
478
|
-
lines.push('## Option 2: External Agent');
|
|
479
|
-
lines.push('');
|
|
480
|
-
lines.push('### Build Container Image');
|
|
481
|
-
lines.push('');
|
|
482
|
-
lines.push('```bash');
|
|
483
|
-
lines.push('docker build -t registry.gitlab.com/<namespace>/<project>/<agent>:latest .');
|
|
484
|
-
lines.push('docker push registry.gitlab.com/<namespace>/<project>/<agent>:latest');
|
|
485
|
-
lines.push('```');
|
|
486
|
-
lines.push('');
|
|
487
|
-
lines.push('### Register External Agent');
|
|
488
|
-
lines.push('');
|
|
489
|
-
lines.push('```bash');
|
|
490
|
-
lines.push(`glab duo agent register external .gitlab/duo/agents/${agentName}.yaml`);
|
|
491
|
-
lines.push('```');
|
|
492
|
-
lines.push('');
|
|
493
|
-
lines.push('### Test External Agent');
|
|
494
|
-
lines.push('');
|
|
495
|
-
lines.push('```bash');
|
|
496
|
-
lines.push(`glab duo agent test ${agentName}`);
|
|
497
|
-
lines.push('```');
|
|
498
|
-
lines.push('');
|
|
499
|
-
lines.push('## Environment Variables');
|
|
500
|
-
lines.push('');
|
|
501
|
-
lines.push('Required environment variables:');
|
|
502
|
-
lines.push('');
|
|
503
|
-
const externalAgentResult = this.externalAgentGenerator.generate(manifest);
|
|
504
|
-
if (externalAgentResult.success && externalAgentResult.config) {
|
|
505
|
-
for (const variable of externalAgentResult.config.variables) {
|
|
506
|
-
lines.push(`- \`${variable}\``);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
lines.push('');
|
|
510
|
-
lines.push('Set these in your GitLab project:');
|
|
511
|
-
lines.push('');
|
|
512
|
-
lines.push('```bash');
|
|
513
|
-
lines.push('glab variable set GITLAB_TOKEN <your-token>');
|
|
514
|
-
lines.push('glab variable set AI_GATEWAY_TOKEN <gateway-token>');
|
|
515
|
-
lines.push('```');
|
|
516
|
-
lines.push('');
|
|
517
|
-
lines.push('## Monitoring');
|
|
518
|
-
lines.push('');
|
|
519
|
-
lines.push('### View Agent Logs');
|
|
520
|
-
lines.push('');
|
|
521
|
-
lines.push('```bash');
|
|
522
|
-
lines.push(`glab duo agent logs ${agentName}`);
|
|
523
|
-
lines.push('```');
|
|
524
|
-
lines.push('');
|
|
525
|
-
lines.push('### Check Agent Status');
|
|
526
|
-
lines.push('');
|
|
527
|
-
lines.push('```bash');
|
|
528
|
-
lines.push(`glab duo agent status ${agentName}`);
|
|
529
|
-
lines.push('```');
|
|
530
|
-
lines.push('');
|
|
531
|
-
lines.push('## Troubleshooting');
|
|
532
|
-
lines.push('');
|
|
533
|
-
lines.push('### Agent Not Responding');
|
|
534
|
-
lines.push('');
|
|
535
|
-
lines.push('1. Check agent logs for errors');
|
|
536
|
-
lines.push('2. Verify environment variables are set correctly');
|
|
537
|
-
lines.push('3. Ensure AI Gateway token is valid');
|
|
538
|
-
lines.push('');
|
|
539
|
-
lines.push('### Authentication Errors');
|
|
540
|
-
lines.push('');
|
|
541
|
-
lines.push('1. Verify `GITLAB_TOKEN` has correct permissions');
|
|
542
|
-
lines.push('2. Check token expiration');
|
|
543
|
-
lines.push('3. Ensure token has `api` and `read_repository` scopes');
|
|
544
|
-
lines.push('');
|
|
545
|
-
lines.push('## Documentation');
|
|
546
|
-
lines.push('');
|
|
547
|
-
lines.push('- [GitLab Duo Flows](https://docs.gitlab.com/ee/user/gitlab_duo/flows.html)');
|
|
548
|
-
lines.push('- [GitLab Duo External Agents](https://docs.gitlab.com/ee/user/gitlab_duo/external_agents.html)');
|
|
549
|
-
lines.push('- [AI Gateway Documentation](https://docs.gitlab.com/ee/architecture/blueprints/ai_gateway/)');
|
|
550
|
-
lines.push('');
|
|
551
|
-
return lines.join('\n');
|
|
552
|
-
}
|
|
553
|
-
/**
|
|
554
|
-
* Generate package.json
|
|
555
|
-
*/
|
|
556
|
-
/**
|
|
557
|
-
* Generate GitLab Duo package.json
|
|
558
|
-
* Uses base class generatePackageJson with GitLab-specific configuration
|
|
559
|
-
*/
|
|
560
|
-
generatePackageJsonForManifest(manifest) {
|
|
561
|
-
return super.generatePackageJson({
|
|
562
|
-
scope: '@gitlab-duo',
|
|
563
|
-
name: this.getAgentName(manifest),
|
|
564
|
-
version: this.getAgentVersion(manifest),
|
|
565
|
-
description: this.getAgentDescription(manifest),
|
|
566
|
-
type: 'module',
|
|
567
|
-
main: './dist/index.js',
|
|
568
|
-
types: './dist/index.d.ts',
|
|
569
|
-
scripts: {
|
|
570
|
-
build: 'tsc',
|
|
571
|
-
dev: 'tsc --watch',
|
|
572
|
-
test: 'node --test',
|
|
573
|
-
lint: 'eslint src/',
|
|
574
|
-
'lint:fix': 'eslint src/ --fix',
|
|
575
|
-
clean: 'rm -rf dist/',
|
|
576
|
-
},
|
|
577
|
-
dependencies: {
|
|
578
|
-
'@gitlab/duo': '^0.1.0',
|
|
579
|
-
'@gitbeaker/rest': '^41.0.0',
|
|
580
|
-
},
|
|
581
|
-
devDependencies: {
|
|
582
|
-
'@types/node': '^22.0.0',
|
|
583
|
-
typescript: '^5.7.0',
|
|
584
|
-
eslint: '^9.0.0',
|
|
585
|
-
},
|
|
586
|
-
engines: {
|
|
587
|
-
node: '>=22.0.0',
|
|
588
|
-
},
|
|
589
|
-
keywords: ['gitlab-duo', 'ai-agent', 'ossa'],
|
|
590
|
-
author: this.getAgentAuthor(manifest),
|
|
591
|
-
license: this.getAgentLicense(manifest),
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* Generate Dockerfile
|
|
596
|
-
*/
|
|
597
|
-
generateDockerfile(manifest) {
|
|
598
|
-
const lines = [];
|
|
599
|
-
// Determine base image
|
|
600
|
-
const externalAgentResult = this.externalAgentGenerator.generate(manifest);
|
|
601
|
-
const baseImage = externalAgentResult.config?.image || 'node:22-slim';
|
|
602
|
-
lines.push(`FROM ${baseImage}`);
|
|
603
|
-
lines.push('');
|
|
604
|
-
lines.push('WORKDIR /app');
|
|
605
|
-
lines.push('');
|
|
606
|
-
if (baseImage.startsWith('node:')) {
|
|
607
|
-
lines.push('# Install dependencies');
|
|
608
|
-
lines.push('COPY package*.json ./');
|
|
609
|
-
lines.push('RUN npm ci --only=production');
|
|
610
|
-
lines.push('');
|
|
611
|
-
lines.push('# Copy source');
|
|
612
|
-
lines.push('COPY . .');
|
|
613
|
-
lines.push('');
|
|
614
|
-
lines.push('# Build');
|
|
615
|
-
lines.push('RUN npm run build');
|
|
616
|
-
lines.push('');
|
|
617
|
-
lines.push('# Run');
|
|
618
|
-
lines.push('CMD ["node", "dist/index.js"]');
|
|
619
|
-
}
|
|
620
|
-
else if (baseImage.startsWith('python:')) {
|
|
621
|
-
lines.push('# Install dependencies');
|
|
622
|
-
lines.push('COPY requirements.txt ./');
|
|
623
|
-
lines.push('RUN pip install --no-cache-dir -r requirements.txt');
|
|
624
|
-
lines.push('');
|
|
625
|
-
lines.push('# Copy source');
|
|
626
|
-
lines.push('COPY . .');
|
|
627
|
-
lines.push('');
|
|
628
|
-
lines.push('# Run');
|
|
629
|
-
lines.push('CMD ["python", "main.py"]');
|
|
630
|
-
}
|
|
631
|
-
else {
|
|
632
|
-
lines.push('# Copy source');
|
|
633
|
-
lines.push('COPY . .');
|
|
634
|
-
lines.push('');
|
|
635
|
-
lines.push('# Run');
|
|
636
|
-
lines.push('CMD ["./run.sh"]');
|
|
637
|
-
}
|
|
638
|
-
return lines.join('\n');
|
|
639
|
-
}
|
|
640
|
-
/**
|
|
641
|
-
* Generate source templates
|
|
642
|
-
*/
|
|
643
|
-
generateSourceTemplates(manifest) {
|
|
644
|
-
const files = [];
|
|
645
|
-
// Generate index.ts
|
|
646
|
-
files.push({
|
|
647
|
-
path: 'src/index.ts',
|
|
648
|
-
content: this.generateIndexTemplate(manifest),
|
|
649
|
-
});
|
|
650
|
-
// Generate agent.ts
|
|
651
|
-
files.push({
|
|
652
|
-
path: 'src/agent.ts',
|
|
653
|
-
content: this.generateAgentTemplate(manifest),
|
|
654
|
-
});
|
|
655
|
-
// Generate tsconfig.json
|
|
656
|
-
files.push({
|
|
657
|
-
path: 'tsconfig.json',
|
|
658
|
-
content: this.generateTsConfig(),
|
|
659
|
-
});
|
|
660
|
-
return files;
|
|
661
|
-
}
|
|
662
|
-
/**
|
|
663
|
-
* Generate index.ts template
|
|
664
|
-
*/
|
|
665
|
-
generateIndexTemplate(manifest) {
|
|
666
|
-
const lines = [];
|
|
667
|
-
lines.push('/**');
|
|
668
|
-
lines.push(` * ${manifest.metadata?.name || 'Agent'}`);
|
|
669
|
-
lines.push(` * ${manifest.metadata?.description || ''}`);
|
|
670
|
-
lines.push(' */');
|
|
671
|
-
lines.push('');
|
|
672
|
-
lines.push("import { Agent } from './agent.js';");
|
|
673
|
-
lines.push('');
|
|
674
|
-
lines.push('const agent = new Agent();');
|
|
675
|
-
lines.push('');
|
|
676
|
-
lines.push('// Start agent');
|
|
677
|
-
lines.push('agent.start().catch((error) => {');
|
|
678
|
-
lines.push(' console.error("Agent failed to start:", error);');
|
|
679
|
-
lines.push(' process.exit(1);');
|
|
680
|
-
lines.push('});');
|
|
681
|
-
lines.push('');
|
|
682
|
-
return lines.join('\n');
|
|
683
|
-
}
|
|
684
|
-
/**
|
|
685
|
-
* Generate agent.ts template
|
|
686
|
-
*/
|
|
687
|
-
generateAgentTemplate(manifest) {
|
|
688
|
-
const role = manifest.spec?.role || 'You are a helpful AI assistant';
|
|
689
|
-
const lines = [];
|
|
690
|
-
lines.push('/**');
|
|
691
|
-
lines.push(' * Agent implementation');
|
|
692
|
-
lines.push(' */');
|
|
693
|
-
lines.push('');
|
|
694
|
-
lines.push('export class Agent {');
|
|
695
|
-
lines.push(' private role: string;');
|
|
696
|
-
lines.push('');
|
|
697
|
-
lines.push(' constructor() {');
|
|
698
|
-
lines.push(` this.role = \`${role}\`;`);
|
|
699
|
-
lines.push(' }');
|
|
700
|
-
lines.push('');
|
|
701
|
-
lines.push(' async start(): Promise<void> {');
|
|
702
|
-
lines.push(' console.log("Agent starting...");');
|
|
703
|
-
lines.push(' console.log("Role:", this.role);');
|
|
704
|
-
lines.push('');
|
|
705
|
-
lines.push(' // Get input from environment');
|
|
706
|
-
lines.push(' const input = process.env.AI_FLOW_INPUT || "Hello";');
|
|
707
|
-
lines.push('');
|
|
708
|
-
lines.push(' // Process input');
|
|
709
|
-
lines.push(' const response = await this.process(input);');
|
|
710
|
-
lines.push('');
|
|
711
|
-
lines.push(' // Output response');
|
|
712
|
-
lines.push(' console.log("Response:", response);');
|
|
713
|
-
lines.push(' }');
|
|
714
|
-
lines.push('');
|
|
715
|
-
lines.push(' async process(input: string): Promise<string> {');
|
|
716
|
-
lines.push(' return `Processed: ${input}`;');
|
|
717
|
-
lines.push(' }');
|
|
718
|
-
lines.push('}');
|
|
719
|
-
lines.push('');
|
|
720
|
-
return lines.join('\n');
|
|
721
|
-
}
|
|
722
|
-
/**
|
|
723
|
-
* Generate tsconfig.json
|
|
724
|
-
*/
|
|
725
|
-
/**
|
|
726
|
-
* Generate TypeScript configuration
|
|
727
|
-
* Uses base class implementation
|
|
728
|
-
*/
|
|
729
|
-
generateTsConfig() {
|
|
730
|
-
return super.generateTsConfig();
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* Generate GitLab CI configuration
|
|
734
|
-
*/
|
|
735
|
-
generateGitLabCI(manifest) {
|
|
736
|
-
const agentName = this.getAgentName(manifest);
|
|
737
|
-
const lines = [];
|
|
738
|
-
lines.push('# GitLab CI/CD Configuration');
|
|
739
|
-
lines.push(`# Agent: ${manifest.metadata?.name || 'Agent'}`);
|
|
740
|
-
lines.push('');
|
|
741
|
-
lines.push('stages:');
|
|
742
|
-
lines.push(' - build');
|
|
743
|
-
lines.push(' - test');
|
|
744
|
-
lines.push(' - deploy');
|
|
745
|
-
lines.push('');
|
|
746
|
-
lines.push('build:');
|
|
747
|
-
lines.push(' stage: build');
|
|
748
|
-
lines.push(' image: node:22-slim');
|
|
749
|
-
lines.push(' script:');
|
|
750
|
-
lines.push(' - npm ci');
|
|
751
|
-
lines.push(' - npm run build');
|
|
752
|
-
lines.push(' artifacts:');
|
|
753
|
-
lines.push(' paths:');
|
|
754
|
-
lines.push(' - dist/');
|
|
755
|
-
lines.push('');
|
|
756
|
-
lines.push('test:');
|
|
757
|
-
lines.push(' stage: test');
|
|
758
|
-
lines.push(' image: node:22-slim');
|
|
759
|
-
lines.push(' script:');
|
|
760
|
-
lines.push(' - npm ci');
|
|
761
|
-
lines.push(' - npm test');
|
|
762
|
-
lines.push('');
|
|
763
|
-
lines.push('deploy:');
|
|
764
|
-
lines.push(' stage: deploy');
|
|
765
|
-
lines.push(' image: node:22-slim');
|
|
766
|
-
lines.push(' script:');
|
|
767
|
-
lines.push(' - npm ci');
|
|
768
|
-
lines.push(' - npm run build');
|
|
769
|
-
lines.push(` - glab duo flow deploy ${agentName}`);
|
|
770
|
-
lines.push(' only:');
|
|
771
|
-
lines.push(' - main');
|
|
772
|
-
lines.push('');
|
|
773
|
-
return lines.join('\n');
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
* Generate .gitignore
|
|
777
|
-
* Uses base class implementation
|
|
778
|
-
*/
|
|
779
|
-
generateGitignore() {
|
|
780
|
-
return super.generateGitignore();
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* Generate MCP Configuration
|
|
784
|
-
*/
|
|
785
|
-
generateMCPConfig(manifest) {
|
|
786
|
-
const spec = manifest.spec;
|
|
787
|
-
const tools = spec.tools || [];
|
|
788
|
-
const mcpServers = {};
|
|
789
|
-
// Map OSSA tools to MCP servers
|
|
790
|
-
for (const tool of tools) {
|
|
791
|
-
const toolName = tool.name || tool.type || 'unknown';
|
|
792
|
-
if (toolName.includes('gitlab')) {
|
|
793
|
-
mcpServers['gitlab'] = {
|
|
794
|
-
command: 'npx',
|
|
795
|
-
args: ['-y', '@modelcontextprotocol/server-gitlab'],
|
|
796
|
-
env: {
|
|
797
|
-
GITLAB_TOKEN: '${GITLAB_TOKEN}',
|
|
798
|
-
GITLAB_URL: 'https://gitlab.com',
|
|
799
|
-
},
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
else if (toolName.includes('file') ||
|
|
803
|
-
toolName.includes('read') ||
|
|
804
|
-
toolName.includes('write')) {
|
|
805
|
-
mcpServers['filesystem'] = {
|
|
806
|
-
command: 'npx',
|
|
807
|
-
args: ['-y', '@modelcontextprotocol/server-filesystem', '/workspace'],
|
|
808
|
-
};
|
|
809
|
-
}
|
|
810
|
-
else if (toolName.includes('search')) {
|
|
811
|
-
mcpServers['ripgrep'] = {
|
|
812
|
-
command: 'npx',
|
|
813
|
-
args: ['-y', '@modelcontextprotocol/server-ripgrep', '/workspace'],
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
// Always include memory server
|
|
818
|
-
mcpServers['memory'] = {
|
|
819
|
-
command: 'npx',
|
|
820
|
-
args: ['-y', '@modelcontextprotocol/server-memory'],
|
|
821
|
-
};
|
|
822
|
-
const config = {
|
|
823
|
-
mcpServers,
|
|
824
|
-
version: '1.0.0',
|
|
825
|
-
description: `MCP configuration for ${manifest.metadata?.name || 'agent'}`,
|
|
826
|
-
};
|
|
827
|
-
return JSON.stringify(config, null, 2);
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Generate MCP Configuration as YAML.
|
|
831
|
-
* Provides a structured, human-readable MCP server configuration
|
|
832
|
-
* with detailed comments for each server and its purpose.
|
|
833
|
-
*/
|
|
834
|
-
generateMCPConfigYAML(manifest) {
|
|
835
|
-
const spec = manifest.spec;
|
|
836
|
-
const tools = spec.tools || [];
|
|
837
|
-
const agentName = manifest.metadata?.name || 'agent';
|
|
838
|
-
const mcpServers = {};
|
|
839
|
-
// Map OSSA tools to MCP servers
|
|
840
|
-
for (const tool of tools) {
|
|
841
|
-
const toolName = tool.name || tool.type || 'unknown';
|
|
842
|
-
if (toolName.includes('gitlab')) {
|
|
843
|
-
mcpServers['gitlab'] = {
|
|
844
|
-
description: 'GitLab API operations (issues, MRs, comments, repository files)',
|
|
845
|
-
command: 'npx',
|
|
846
|
-
args: ['-y', '@modelcontextprotocol/server-gitlab'],
|
|
847
|
-
env: {
|
|
848
|
-
GITLAB_TOKEN: '${GITLAB_TOKEN}',
|
|
849
|
-
GITLAB_URL: '${GITLAB_URL:-https://gitlab.com}',
|
|
850
|
-
},
|
|
851
|
-
capabilities: [
|
|
852
|
-
'issues',
|
|
853
|
-
'merge_requests',
|
|
854
|
-
'comments',
|
|
855
|
-
'repository_files',
|
|
856
|
-
'pipelines',
|
|
857
|
-
],
|
|
858
|
-
};
|
|
859
|
-
}
|
|
860
|
-
else if (toolName.includes('file') ||
|
|
861
|
-
toolName.includes('read') ||
|
|
862
|
-
toolName.includes('write')) {
|
|
863
|
-
mcpServers['filesystem'] = {
|
|
864
|
-
description: 'File system operations (read, write, list, search)',
|
|
865
|
-
command: 'npx',
|
|
866
|
-
args: ['-y', '@modelcontextprotocol/server-filesystem', '/workspace'],
|
|
867
|
-
capabilities: [
|
|
868
|
-
'read_file',
|
|
869
|
-
'create_file_with_contents',
|
|
870
|
-
'update_file',
|
|
871
|
-
'list_dir',
|
|
872
|
-
],
|
|
873
|
-
};
|
|
874
|
-
}
|
|
875
|
-
else if (toolName.includes('search')) {
|
|
876
|
-
mcpServers['ripgrep'] = {
|
|
877
|
-
description: 'Code search using ripgrep for fast file content searching',
|
|
878
|
-
command: 'npx',
|
|
879
|
-
args: ['-y', '@modelcontextprotocol/server-ripgrep', '/workspace'],
|
|
880
|
-
capabilities: ['search_files', 'regex_search'],
|
|
881
|
-
};
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
// Always include memory server
|
|
885
|
-
mcpServers['memory'] = {
|
|
886
|
-
description: 'Persistent memory across agent sessions for context retention',
|
|
887
|
-
command: 'npx',
|
|
888
|
-
args: ['-y', '@modelcontextprotocol/server-memory'],
|
|
889
|
-
capabilities: ['store', 'retrieve', 'delete', 'list_memories'],
|
|
890
|
-
};
|
|
891
|
-
// Always include fetch server for external data
|
|
892
|
-
mcpServers['fetch'] = {
|
|
893
|
-
description: 'HTTP fetch for retrieving external documentation and API data',
|
|
894
|
-
command: 'npx',
|
|
895
|
-
args: ['-y', '@modelcontextprotocol/server-fetch'],
|
|
896
|
-
capabilities: ['fetch_url', 'parse_html', 'extract_text'],
|
|
897
|
-
};
|
|
898
|
-
const config = {
|
|
899
|
-
version: 'v1',
|
|
900
|
-
agent_name: agentName,
|
|
901
|
-
description: `MCP server configuration for ${agentName}. Defines the external tool servers that the agent can use during execution.`,
|
|
902
|
-
servers: mcpServers,
|
|
903
|
-
settings: {
|
|
904
|
-
startup_timeout_seconds: 30,
|
|
905
|
-
request_timeout_seconds: 60,
|
|
906
|
-
max_concurrent_servers: 5,
|
|
907
|
-
restart_on_failure: true,
|
|
908
|
-
log_level: 'info',
|
|
909
|
-
},
|
|
910
|
-
security: {
|
|
911
|
-
allowed_hosts: ['gitlab.com', '*.gitlab.com', 'ai-gateway.gitlab.com'],
|
|
912
|
-
deny_shell_execution: true,
|
|
913
|
-
max_file_size_bytes: 10_485_760,
|
|
914
|
-
workspace_root: '/workspace',
|
|
915
|
-
},
|
|
916
|
-
};
|
|
917
|
-
return YAML.stringify(config, { indent: 2, lineWidth: 0 });
|
|
918
|
-
}
|
|
919
|
-
/**
|
|
920
|
-
* Generate Custom Tools Definition
|
|
921
|
-
*/
|
|
922
|
-
generateCustomTools(manifest) {
|
|
923
|
-
const spec = manifest.spec;
|
|
924
|
-
const tools = spec.tools || [];
|
|
925
|
-
const customTools = tools.map((tool) => ({
|
|
926
|
-
name: tool.name || 'custom_tool',
|
|
927
|
-
description: tool.description || 'Custom tool implementation',
|
|
928
|
-
input_schema: {
|
|
929
|
-
type: 'object',
|
|
930
|
-
properties: tool.parameters || {},
|
|
931
|
-
required: Object.keys(tool.parameters || {}),
|
|
932
|
-
},
|
|
933
|
-
}));
|
|
934
|
-
const config = {
|
|
935
|
-
tools: customTools,
|
|
936
|
-
version: '1.0.0',
|
|
937
|
-
};
|
|
938
|
-
return JSON.stringify(config, null, 2);
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* Generate SECURITY.md
|
|
942
|
-
*/
|
|
943
|
-
generateSecurityGuide(manifest) {
|
|
944
|
-
const agentName = manifest.metadata?.name || 'Agent';
|
|
945
|
-
const lines = [];
|
|
946
|
-
lines.push(`# Security Guide: ${agentName}`);
|
|
947
|
-
lines.push('');
|
|
948
|
-
lines.push('## Overview');
|
|
949
|
-
lines.push('');
|
|
950
|
-
lines.push('This document outlines security considerations, best practices, and procedures for deploying and operating this GitLab Duo agent.');
|
|
951
|
-
lines.push('');
|
|
952
|
-
lines.push('## Authentication & Authorization');
|
|
953
|
-
lines.push('');
|
|
954
|
-
lines.push('### GitLab Token Management');
|
|
955
|
-
lines.push('');
|
|
956
|
-
lines.push('**Required Scopes:**');
|
|
957
|
-
lines.push('- `api` - Full API access');
|
|
958
|
-
lines.push('- `read_repository` - Read repository data');
|
|
959
|
-
lines.push('- `write_repository` - Write repository data (if agent modifies files)');
|
|
960
|
-
lines.push('');
|
|
961
|
-
lines.push('**Token Storage:**');
|
|
962
|
-
lines.push('- Store tokens as GitLab CI/CD variables (masked)');
|
|
963
|
-
lines.push('- Use environment-specific tokens (dev/staging/prod)');
|
|
964
|
-
lines.push('- Rotate tokens every 90 days');
|
|
965
|
-
lines.push('');
|
|
966
|
-
lines.push('```bash');
|
|
967
|
-
lines.push('# Set token as masked variable');
|
|
968
|
-
lines.push('glab variable set GITLAB_TOKEN <token> --masked');
|
|
969
|
-
lines.push('```');
|
|
970
|
-
lines.push('');
|
|
971
|
-
lines.push('### AI Gateway Token');
|
|
972
|
-
lines.push('');
|
|
973
|
-
lines.push('- Never commit AI Gateway tokens to repository');
|
|
974
|
-
lines.push('- Use GitLab CI/CD variables with `protected` flag');
|
|
975
|
-
lines.push('- Limit token scope to specific agent');
|
|
976
|
-
lines.push('');
|
|
977
|
-
lines.push('## Access Controls');
|
|
978
|
-
lines.push('');
|
|
979
|
-
lines.push('### Trigger Permissions');
|
|
980
|
-
lines.push('');
|
|
981
|
-
lines.push('Ensure triggers have appropriate permissions:');
|
|
982
|
-
lines.push('');
|
|
983
|
-
lines.push('- **@mentions**: Minimum `Reporter` role');
|
|
984
|
-
lines.push('- **Assignments**: Minimum `Developer` role');
|
|
985
|
-
lines.push('- **Webhooks**: Token-based authentication required');
|
|
986
|
-
lines.push('- **Scheduled**: Runs as project bot account');
|
|
987
|
-
lines.push('');
|
|
988
|
-
lines.push('### Tool Access');
|
|
989
|
-
lines.push('');
|
|
990
|
-
lines.push('Restrict tool capabilities based on environment:');
|
|
991
|
-
lines.push('');
|
|
992
|
-
lines.push('- **Read-only tools**: `read_file`, `list_dir`, `search_files`');
|
|
993
|
-
lines.push('- **Write tools**: `create_file`, `update_file` (production only)');
|
|
994
|
-
lines.push('- **Shell execution**: Disabled by default, enable with caution');
|
|
995
|
-
lines.push('');
|
|
996
|
-
lines.push('## Data Protection');
|
|
997
|
-
lines.push('');
|
|
998
|
-
lines.push('### Sensitive Data Handling');
|
|
999
|
-
lines.push('');
|
|
1000
|
-
lines.push('- Never log sensitive data (tokens, passwords, API keys)');
|
|
1001
|
-
lines.push('- Redact sensitive patterns in output');
|
|
1002
|
-
lines.push("- Use GitLab's built-in secret detection");
|
|
1003
|
-
lines.push('');
|
|
1004
|
-
lines.push('### Data Retention');
|
|
1005
|
-
lines.push('');
|
|
1006
|
-
lines.push('- Agent logs retained for 30 days');
|
|
1007
|
-
lines.push('- Conversation history cleared after session');
|
|
1008
|
-
lines.push('- PII redacted before storage');
|
|
1009
|
-
lines.push('');
|
|
1010
|
-
lines.push('## Network Security');
|
|
1011
|
-
lines.push('');
|
|
1012
|
-
lines.push('### Outbound Connections');
|
|
1013
|
-
lines.push('');
|
|
1014
|
-
lines.push('Agent makes connections to:');
|
|
1015
|
-
lines.push('');
|
|
1016
|
-
lines.push('- `gitlab.com` (API)');
|
|
1017
|
-
lines.push('- `ai-gateway.gitlab.com` (AI Gateway)');
|
|
1018
|
-
lines.push('- MCP servers (as configured)');
|
|
1019
|
-
lines.push('');
|
|
1020
|
-
lines.push('### Inbound Webhooks');
|
|
1021
|
-
lines.push('');
|
|
1022
|
-
lines.push('If webhook triggers enabled:');
|
|
1023
|
-
lines.push('');
|
|
1024
|
-
lines.push('- Validate webhook signatures');
|
|
1025
|
-
lines.push('- Rate limit webhook endpoints');
|
|
1026
|
-
lines.push('- Use HTTPS only');
|
|
1027
|
-
lines.push('');
|
|
1028
|
-
lines.push('## Vulnerability Management');
|
|
1029
|
-
lines.push('');
|
|
1030
|
-
lines.push('### Dependency Scanning');
|
|
1031
|
-
lines.push('');
|
|
1032
|
-
lines.push('```bash');
|
|
1033
|
-
lines.push('# Run dependency audit');
|
|
1034
|
-
lines.push('npm audit');
|
|
1035
|
-
lines.push('');
|
|
1036
|
-
lines.push('# Fix vulnerabilities');
|
|
1037
|
-
lines.push('npm audit fix');
|
|
1038
|
-
lines.push('```');
|
|
1039
|
-
lines.push('');
|
|
1040
|
-
lines.push('### Container Security');
|
|
1041
|
-
lines.push('');
|
|
1042
|
-
lines.push('- Use minimal base images (node:22-slim)');
|
|
1043
|
-
lines.push('- Scan container images for vulnerabilities');
|
|
1044
|
-
lines.push('- Update base images monthly');
|
|
1045
|
-
lines.push('');
|
|
1046
|
-
lines.push('## Incident Response');
|
|
1047
|
-
lines.push('');
|
|
1048
|
-
lines.push('### Security Incident');
|
|
1049
|
-
lines.push('');
|
|
1050
|
-
lines.push('1. **Disable agent** - Stop all triggers');
|
|
1051
|
-
lines.push('2. **Rotate tokens** - Invalidate compromised credentials');
|
|
1052
|
-
lines.push('3. **Review logs** - Check for unauthorized access');
|
|
1053
|
-
lines.push('4. **Notify stakeholders** - Report incident per policy');
|
|
1054
|
-
lines.push('');
|
|
1055
|
-
lines.push('### Token Compromise');
|
|
1056
|
-
lines.push('');
|
|
1057
|
-
lines.push('```bash');
|
|
1058
|
-
lines.push('# Revoke token immediately');
|
|
1059
|
-
lines.push('glab token revoke <token-id>');
|
|
1060
|
-
lines.push('');
|
|
1061
|
-
lines.push('# Generate new token');
|
|
1062
|
-
lines.push('glab token create --scopes api,read_repository');
|
|
1063
|
-
lines.push('');
|
|
1064
|
-
lines.push('# Update CI/CD variable');
|
|
1065
|
-
lines.push('glab variable update GITLAB_TOKEN <new-token> --masked');
|
|
1066
|
-
lines.push('```');
|
|
1067
|
-
lines.push('');
|
|
1068
|
-
lines.push('## Compliance');
|
|
1069
|
-
lines.push('');
|
|
1070
|
-
lines.push('### Audit Logging');
|
|
1071
|
-
lines.push('');
|
|
1072
|
-
lines.push('All agent actions are logged:');
|
|
1073
|
-
lines.push('');
|
|
1074
|
-
lines.push('- Trigger events');
|
|
1075
|
-
lines.push('- Tool executions');
|
|
1076
|
-
lines.push('- API calls');
|
|
1077
|
-
lines.push('- Errors and exceptions');
|
|
1078
|
-
lines.push('');
|
|
1079
|
-
lines.push('### Data Privacy (GDPR/CCPA)');
|
|
1080
|
-
lines.push('');
|
|
1081
|
-
lines.push('- PII detection and redaction enabled');
|
|
1082
|
-
lines.push('- Data retention policy: 30 days');
|
|
1083
|
-
lines.push('- Right to deletion supported');
|
|
1084
|
-
lines.push('');
|
|
1085
|
-
lines.push('## Security Checklist');
|
|
1086
|
-
lines.push('');
|
|
1087
|
-
lines.push('- [ ] GitLab tokens stored as masked CI/CD variables');
|
|
1088
|
-
lines.push('- [ ] AI Gateway token protected and scoped');
|
|
1089
|
-
lines.push('- [ ] Trigger permissions configured correctly');
|
|
1090
|
-
lines.push('- [ ] Tool access restricted to minimum required');
|
|
1091
|
-
lines.push('- [ ] Sensitive data logging disabled');
|
|
1092
|
-
lines.push('- [ ] Dependency scanning enabled in CI/CD');
|
|
1093
|
-
lines.push('- [ ] Container image scanning configured');
|
|
1094
|
-
lines.push('- [ ] Webhook authentication configured');
|
|
1095
|
-
lines.push('- [ ] Incident response plan documented');
|
|
1096
|
-
lines.push('- [ ] Token rotation schedule established');
|
|
1097
|
-
lines.push('');
|
|
1098
|
-
lines.push('## References');
|
|
1099
|
-
lines.push('');
|
|
1100
|
-
lines.push('- [GitLab Security Best Practices](https://docs.gitlab.com/ee/security/)');
|
|
1101
|
-
lines.push('- [GitLab Duo Security](https://docs.gitlab.com/ee/user/gitlab_duo/security.html)');
|
|
1102
|
-
lines.push('- [AI Gateway Security](https://docs.gitlab.com/ee/architecture/blueprints/ai_gateway/security.html)');
|
|
1103
|
-
lines.push('');
|
|
1104
|
-
return lines.join('\n');
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* Generate MONITORING.md
|
|
1108
|
-
*/
|
|
1109
|
-
generateMonitoringGuide(manifest) {
|
|
1110
|
-
const agentName = this.getAgentName(manifest);
|
|
1111
|
-
const lines = [];
|
|
1112
|
-
lines.push(`# Monitoring Guide: ${manifest.metadata?.name || 'Agent'}`);
|
|
1113
|
-
lines.push('');
|
|
1114
|
-
lines.push('## Overview');
|
|
1115
|
-
lines.push('');
|
|
1116
|
-
lines.push('This guide covers monitoring, observability, and performance tracking for this GitLab Duo agent.');
|
|
1117
|
-
lines.push('');
|
|
1118
|
-
lines.push('## Metrics');
|
|
1119
|
-
lines.push('');
|
|
1120
|
-
lines.push('### Key Performance Indicators (KPIs)');
|
|
1121
|
-
lines.push('');
|
|
1122
|
-
lines.push('| Metric | Description | Target |');
|
|
1123
|
-
lines.push('|--------|-------------|--------|');
|
|
1124
|
-
lines.push('| Response Time | Time from trigger to first response | < 5s |');
|
|
1125
|
-
lines.push('| Success Rate | Percentage of successful executions | > 95% |');
|
|
1126
|
-
lines.push('| Error Rate | Percentage of failed executions | < 5% |');
|
|
1127
|
-
lines.push('| Token Usage | Average tokens per execution | Monitor |');
|
|
1128
|
-
lines.push('| Tool Calls | Number of tool executions | Monitor |');
|
|
1129
|
-
lines.push('');
|
|
1130
|
-
lines.push('### View Metrics');
|
|
1131
|
-
lines.push('');
|
|
1132
|
-
lines.push('```bash');
|
|
1133
|
-
lines.push(`# View agent metrics`);
|
|
1134
|
-
lines.push(`glab duo agent metrics ${agentName}`);
|
|
1135
|
-
lines.push('');
|
|
1136
|
-
lines.push('# View specific metric');
|
|
1137
|
-
lines.push(`glab duo agent metrics ${agentName} --metric response_time`);
|
|
1138
|
-
lines.push('');
|
|
1139
|
-
lines.push('# Export metrics to JSON');
|
|
1140
|
-
lines.push(`glab duo agent metrics ${agentName} --format json > metrics.json`);
|
|
1141
|
-
lines.push('```');
|
|
1142
|
-
lines.push('');
|
|
1143
|
-
lines.push('## Logging');
|
|
1144
|
-
lines.push('');
|
|
1145
|
-
lines.push('### Log Levels');
|
|
1146
|
-
lines.push('');
|
|
1147
|
-
lines.push('- `ERROR` - Failures and exceptions');
|
|
1148
|
-
lines.push('- `WARN` - Recoverable issues');
|
|
1149
|
-
lines.push('- `INFO` - Normal operations');
|
|
1150
|
-
lines.push('- `DEBUG` - Detailed execution info');
|
|
1151
|
-
lines.push('');
|
|
1152
|
-
lines.push('### View Logs');
|
|
1153
|
-
lines.push('');
|
|
1154
|
-
lines.push('```bash');
|
|
1155
|
-
lines.push(`# View recent logs`);
|
|
1156
|
-
lines.push(`glab duo agent logs ${agentName}`);
|
|
1157
|
-
lines.push('');
|
|
1158
|
-
lines.push('# Follow logs in real-time');
|
|
1159
|
-
lines.push(`glab duo agent logs ${agentName} --follow`);
|
|
1160
|
-
lines.push('');
|
|
1161
|
-
lines.push('# Filter by level');
|
|
1162
|
-
lines.push(`glab duo agent logs ${agentName} --level ERROR`);
|
|
1163
|
-
lines.push('');
|
|
1164
|
-
lines.push('# View logs for specific execution');
|
|
1165
|
-
lines.push(`glab duo agent logs ${agentName} --execution-id <id>`);
|
|
1166
|
-
lines.push('```');
|
|
1167
|
-
lines.push('');
|
|
1168
|
-
lines.push('## Tracing');
|
|
1169
|
-
lines.push('');
|
|
1170
|
-
lines.push('### Execution Traces');
|
|
1171
|
-
lines.push('');
|
|
1172
|
-
lines.push('View complete execution traces:');
|
|
1173
|
-
lines.push('');
|
|
1174
|
-
lines.push('```bash');
|
|
1175
|
-
lines.push(`# List recent executions`);
|
|
1176
|
-
lines.push(`glab duo agent executions ${agentName}`);
|
|
1177
|
-
lines.push('');
|
|
1178
|
-
lines.push('# View execution trace');
|
|
1179
|
-
lines.push(`glab duo agent trace <execution-id>`);
|
|
1180
|
-
lines.push('');
|
|
1181
|
-
lines.push('# Export trace');
|
|
1182
|
-
lines.push(`glab duo agent trace <execution-id> --format json > trace.json`);
|
|
1183
|
-
lines.push('```');
|
|
1184
|
-
lines.push('');
|
|
1185
|
-
lines.push('### Trace Components');
|
|
1186
|
-
lines.push('');
|
|
1187
|
-
lines.push('Each trace includes:');
|
|
1188
|
-
lines.push('');
|
|
1189
|
-
lines.push('- Trigger event details');
|
|
1190
|
-
lines.push('- Component execution timeline');
|
|
1191
|
-
lines.push('- Tool call sequences');
|
|
1192
|
-
lines.push('- LLM requests and responses');
|
|
1193
|
-
lines.push('- Router decisions');
|
|
1194
|
-
lines.push('- Error details (if any)');
|
|
1195
|
-
lines.push('');
|
|
1196
|
-
lines.push('## Alerting');
|
|
1197
|
-
lines.push('');
|
|
1198
|
-
lines.push('### Alert Rules');
|
|
1199
|
-
lines.push('');
|
|
1200
|
-
lines.push('Configure alerts for critical conditions:');
|
|
1201
|
-
lines.push('');
|
|
1202
|
-
lines.push('```bash');
|
|
1203
|
-
lines.push(`# Create alert rule`);
|
|
1204
|
-
lines.push(`glab duo agent alert create ${agentName} \\`);
|
|
1205
|
-
lines.push(' --metric error_rate \\');
|
|
1206
|
-
lines.push(' --threshold 10 \\');
|
|
1207
|
-
lines.push(' --period 5m \\');
|
|
1208
|
-
lines.push(' --notify-slack webhook-url');
|
|
1209
|
-
lines.push('```');
|
|
1210
|
-
lines.push('');
|
|
1211
|
-
lines.push('### Recommended Alerts');
|
|
1212
|
-
lines.push('');
|
|
1213
|
-
lines.push('1. **High Error Rate** - > 10% errors in 5 minutes');
|
|
1214
|
-
lines.push('2. **Slow Response** - Average response time > 30s');
|
|
1215
|
-
lines.push('3. **Agent Down** - No executions in 1 hour (for scheduled agents)');
|
|
1216
|
-
lines.push('4. **Token Limit** - Token usage > 90% of limit');
|
|
1217
|
-
lines.push('');
|
|
1218
|
-
lines.push('## Dashboards');
|
|
1219
|
-
lines.push('');
|
|
1220
|
-
lines.push('### GitLab Duo Dashboard');
|
|
1221
|
-
lines.push('');
|
|
1222
|
-
lines.push('Access built-in dashboard:');
|
|
1223
|
-
lines.push('');
|
|
1224
|
-
lines.push('1. Navigate to project');
|
|
1225
|
-
lines.push('2. Go to **GitLab Duo** > **Agents**');
|
|
1226
|
-
lines.push(`3. Select **${manifest.metadata?.name || 'agent'}**`);
|
|
1227
|
-
lines.push('4. View **Metrics** tab');
|
|
1228
|
-
lines.push('');
|
|
1229
|
-
lines.push('### Custom Grafana Dashboard');
|
|
1230
|
-
lines.push('');
|
|
1231
|
-
lines.push('For advanced monitoring, export metrics to Grafana:');
|
|
1232
|
-
lines.push('');
|
|
1233
|
-
lines.push('```bash');
|
|
1234
|
-
lines.push('# Export metrics endpoint');
|
|
1235
|
-
lines.push(`glab duo agent metrics-endpoint ${agentName}`);
|
|
1236
|
-
lines.push('');
|
|
1237
|
-
lines.push('# Configure Prometheus scraper');
|
|
1238
|
-
lines.push('# Add endpoint to prometheus.yml');
|
|
1239
|
-
lines.push('```');
|
|
1240
|
-
lines.push('');
|
|
1241
|
-
lines.push('## Performance Optimization');
|
|
1242
|
-
lines.push('');
|
|
1243
|
-
lines.push('### Response Time');
|
|
1244
|
-
lines.push('');
|
|
1245
|
-
lines.push('If response time is high:');
|
|
1246
|
-
lines.push('');
|
|
1247
|
-
lines.push('1. **Reduce prompt size** - Shorter system prompts');
|
|
1248
|
-
lines.push('2. **Optimize tool calls** - Batch operations');
|
|
1249
|
-
lines.push('3. **Use smaller model** - Switch to faster model');
|
|
1250
|
-
lines.push('4. **Enable caching** - Cache frequently used data');
|
|
1251
|
-
lines.push('');
|
|
1252
|
-
lines.push('### Token Usage');
|
|
1253
|
-
lines.push('');
|
|
1254
|
-
lines.push('If token usage is high:');
|
|
1255
|
-
lines.push('');
|
|
1256
|
-
lines.push('1. **Shorten prompts** - Remove unnecessary context');
|
|
1257
|
-
lines.push('2. **Limit history** - Reduce conversation history depth');
|
|
1258
|
-
lines.push('3. **Compress tool outputs** - Summarize large responses');
|
|
1259
|
-
lines.push('4. **Switch model** - Use more efficient model');
|
|
1260
|
-
lines.push('');
|
|
1261
|
-
lines.push('## Health Checks');
|
|
1262
|
-
lines.push('');
|
|
1263
|
-
lines.push('### Agent Health');
|
|
1264
|
-
lines.push('');
|
|
1265
|
-
lines.push('```bash');
|
|
1266
|
-
lines.push(`# Check agent health`);
|
|
1267
|
-
lines.push(`glab duo agent health ${agentName}`);
|
|
1268
|
-
lines.push('');
|
|
1269
|
-
lines.push('# Output:');
|
|
1270
|
-
lines.push('# Status: healthy');
|
|
1271
|
-
lines.push('# Last execution: 2 minutes ago');
|
|
1272
|
-
lines.push('# Success rate (24h): 98.5%');
|
|
1273
|
-
lines.push('# Avg response time: 3.2s');
|
|
1274
|
-
lines.push('```');
|
|
1275
|
-
lines.push('');
|
|
1276
|
-
lines.push('### Dependency Health');
|
|
1277
|
-
lines.push('');
|
|
1278
|
-
lines.push('Monitor dependencies:');
|
|
1279
|
-
lines.push('');
|
|
1280
|
-
lines.push('- AI Gateway connectivity');
|
|
1281
|
-
lines.push('- GitLab API availability');
|
|
1282
|
-
lines.push('- MCP server status');
|
|
1283
|
-
lines.push('- External service connections');
|
|
1284
|
-
lines.push('');
|
|
1285
|
-
lines.push('## Incident Investigation');
|
|
1286
|
-
lines.push('');
|
|
1287
|
-
lines.push('### Debug Failed Execution');
|
|
1288
|
-
lines.push('');
|
|
1289
|
-
lines.push('```bash');
|
|
1290
|
-
lines.push('# 1. Get execution ID from logs');
|
|
1291
|
-
lines.push(`glab duo agent logs ${agentName} --level ERROR`);
|
|
1292
|
-
lines.push('');
|
|
1293
|
-
lines.push('# 2. View full trace');
|
|
1294
|
-
lines.push('glab duo agent trace <execution-id>');
|
|
1295
|
-
lines.push('');
|
|
1296
|
-
lines.push('# 3. Check tool call failures');
|
|
1297
|
-
lines.push('glab duo agent trace <execution-id> --filter tool_calls');
|
|
1298
|
-
lines.push('');
|
|
1299
|
-
lines.push('# 4. Review LLM responses');
|
|
1300
|
-
lines.push('glab duo agent trace <execution-id> --filter llm_responses');
|
|
1301
|
-
lines.push('```');
|
|
1302
|
-
lines.push('');
|
|
1303
|
-
lines.push('## References');
|
|
1304
|
-
lines.push('');
|
|
1305
|
-
lines.push('- [GitLab Duo Monitoring](https://docs.gitlab.com/ee/user/gitlab_duo/monitoring.html)');
|
|
1306
|
-
lines.push('- [AI Gateway Metrics](https://docs.gitlab.com/ee/architecture/blueprints/ai_gateway/metrics.html)');
|
|
1307
|
-
lines.push('- [Performance Best Practices](https://docs.gitlab.com/ee/user/gitlab_duo/performance.html)');
|
|
1308
|
-
lines.push('');
|
|
1309
|
-
return lines.join('\n');
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
* Generate TROUBLESHOOTING.md
|
|
1313
|
-
*/
|
|
1314
|
-
generateTroubleshootingGuide(manifest) {
|
|
1315
|
-
const agentName = this.getAgentName(manifest);
|
|
1316
|
-
const lines = [];
|
|
1317
|
-
lines.push(`# Troubleshooting Guide: ${manifest.metadata?.name || 'Agent'}`);
|
|
1318
|
-
lines.push('');
|
|
1319
|
-
lines.push('## Common Issues');
|
|
1320
|
-
lines.push('');
|
|
1321
|
-
lines.push('### Agent Not Responding');
|
|
1322
|
-
lines.push('');
|
|
1323
|
-
lines.push('**Symptoms:**');
|
|
1324
|
-
lines.push('- No response to @mention');
|
|
1325
|
-
lines.push('- Triggers not firing');
|
|
1326
|
-
lines.push('- Silent failures');
|
|
1327
|
-
lines.push('');
|
|
1328
|
-
lines.push('**Solutions:**');
|
|
1329
|
-
lines.push('');
|
|
1330
|
-
lines.push('1. **Check agent status**');
|
|
1331
|
-
lines.push(' ```bash');
|
|
1332
|
-
lines.push(` glab duo agent status ${agentName}`);
|
|
1333
|
-
lines.push(' ```');
|
|
1334
|
-
lines.push('');
|
|
1335
|
-
lines.push('2. **Verify triggers are active**');
|
|
1336
|
-
lines.push(' ```bash');
|
|
1337
|
-
lines.push(` glab duo agent triggers ${agentName}`);
|
|
1338
|
-
lines.push(' ```');
|
|
1339
|
-
lines.push('');
|
|
1340
|
-
lines.push('3. **Check recent errors**');
|
|
1341
|
-
lines.push(' ```bash');
|
|
1342
|
-
lines.push(` glab duo agent logs ${agentName} --level ERROR --tail 50`);
|
|
1343
|
-
lines.push(' ```');
|
|
1344
|
-
lines.push('');
|
|
1345
|
-
lines.push('4. **Restart agent**');
|
|
1346
|
-
lines.push(' ```bash');
|
|
1347
|
-
lines.push(` glab duo agent restart ${agentName}`);
|
|
1348
|
-
lines.push(' ```');
|
|
1349
|
-
lines.push('');
|
|
1350
|
-
lines.push('### Authentication Errors');
|
|
1351
|
-
lines.push('');
|
|
1352
|
-
lines.push('**Error:** `401 Unauthorized` or `403 Forbidden`');
|
|
1353
|
-
lines.push('');
|
|
1354
|
-
lines.push('**Solutions:**');
|
|
1355
|
-
lines.push('');
|
|
1356
|
-
lines.push('1. **Verify GITLAB_TOKEN**');
|
|
1357
|
-
lines.push(' ```bash');
|
|
1358
|
-
lines.push(' glab variable get GITLAB_TOKEN');
|
|
1359
|
-
lines.push(' ```');
|
|
1360
|
-
lines.push('');
|
|
1361
|
-
lines.push('2. **Check token scopes**');
|
|
1362
|
-
lines.push(' - Required: `api`, `read_repository`');
|
|
1363
|
-
lines.push(' - Optional: `write_repository` (if agent modifies files)');
|
|
1364
|
-
lines.push('');
|
|
1365
|
-
lines.push('3. **Verify token not expired**');
|
|
1366
|
-
lines.push(' ```bash');
|
|
1367
|
-
lines.push(' glab auth status');
|
|
1368
|
-
lines.push(' ```');
|
|
1369
|
-
lines.push('');
|
|
1370
|
-
lines.push('4. **Regenerate token**');
|
|
1371
|
-
lines.push(' ```bash');
|
|
1372
|
-
lines.push(' glab auth login --stdin');
|
|
1373
|
-
lines.push(' ```');
|
|
1374
|
-
lines.push('');
|
|
1375
|
-
lines.push('### Tool Execution Failures');
|
|
1376
|
-
lines.push('');
|
|
1377
|
-
lines.push('**Error:** `Tool execution failed: <tool-name>`');
|
|
1378
|
-
lines.push('');
|
|
1379
|
-
lines.push('**Solutions:**');
|
|
1380
|
-
lines.push('');
|
|
1381
|
-
lines.push('1. **Check tool availability**');
|
|
1382
|
-
lines.push(' ```bash');
|
|
1383
|
-
lines.push(` glab duo agent tools ${agentName}`);
|
|
1384
|
-
lines.push(' ```');
|
|
1385
|
-
lines.push('');
|
|
1386
|
-
lines.push('2. **Verify MCP server status**');
|
|
1387
|
-
lines.push(' ```bash');
|
|
1388
|
-
lines.push(` glab duo agent mcp-status ${agentName}`);
|
|
1389
|
-
lines.push(' ```');
|
|
1390
|
-
lines.push('');
|
|
1391
|
-
lines.push('3. **Check tool permissions**');
|
|
1392
|
-
lines.push(' - File operations require repository access');
|
|
1393
|
-
lines.push(' - GitLab operations require API access');
|
|
1394
|
-
lines.push('');
|
|
1395
|
-
lines.push('4. **Review tool execution logs**');
|
|
1396
|
-
lines.push(' ```bash');
|
|
1397
|
-
lines.push(` glab duo agent logs ${agentName} --filter tool_execution`);
|
|
1398
|
-
lines.push(' ```');
|
|
1399
|
-
lines.push('');
|
|
1400
|
-
lines.push('### High Response Time');
|
|
1401
|
-
lines.push('');
|
|
1402
|
-
lines.push('**Symptom:** Agent takes > 30s to respond');
|
|
1403
|
-
lines.push('');
|
|
1404
|
-
lines.push('**Solutions:**');
|
|
1405
|
-
lines.push('');
|
|
1406
|
-
lines.push('1. **Check AI Gateway latency**');
|
|
1407
|
-
lines.push(' ```bash');
|
|
1408
|
-
lines.push(` glab duo agent metrics ${agentName} --metric gateway_latency`);
|
|
1409
|
-
lines.push(' ```');
|
|
1410
|
-
lines.push('');
|
|
1411
|
-
lines.push('2. **Review token usage**');
|
|
1412
|
-
lines.push(' - High token usage = slow responses');
|
|
1413
|
-
lines.push(' - Optimize prompts to reduce tokens');
|
|
1414
|
-
lines.push('');
|
|
1415
|
-
lines.push('3. **Check tool execution time**');
|
|
1416
|
-
lines.push(' ```bash');
|
|
1417
|
-
lines.push(` glab duo agent trace <execution-id> --filter tool_duration`);
|
|
1418
|
-
lines.push(' ```');
|
|
1419
|
-
lines.push('');
|
|
1420
|
-
lines.push('4. **Consider faster model**');
|
|
1421
|
-
lines.push(' - Switch to `claude-haiku` or `gpt-4o-mini`');
|
|
1422
|
-
lines.push('');
|
|
1423
|
-
lines.push('### Token Limit Exceeded');
|
|
1424
|
-
lines.push('');
|
|
1425
|
-
lines.push('**Error:** `Token limit exceeded for model`');
|
|
1426
|
-
lines.push('');
|
|
1427
|
-
lines.push('**Solutions:**');
|
|
1428
|
-
lines.push('');
|
|
1429
|
-
lines.push('1. **Reduce prompt size**');
|
|
1430
|
-
lines.push(' - Shorten system prompt');
|
|
1431
|
-
lines.push(' - Remove unnecessary context');
|
|
1432
|
-
lines.push('');
|
|
1433
|
-
lines.push('2. **Limit conversation history**');
|
|
1434
|
-
lines.push(' - Reduce `max_history` parameter');
|
|
1435
|
-
lines.push(' - Summarize previous turns');
|
|
1436
|
-
lines.push('');
|
|
1437
|
-
lines.push('3. **Compress tool outputs**');
|
|
1438
|
-
lines.push(' - Summarize large file contents');
|
|
1439
|
-
lines.push(' - Return only relevant data');
|
|
1440
|
-
lines.push('');
|
|
1441
|
-
lines.push('4. **Switch to larger model**');
|
|
1442
|
-
lines.push(' - Use model with higher token limit');
|
|
1443
|
-
lines.push('');
|
|
1444
|
-
lines.push('### MCP Server Connection Failed');
|
|
1445
|
-
lines.push('');
|
|
1446
|
-
lines.push('**Error:** `Failed to connect to MCP server: <server-name>`');
|
|
1447
|
-
lines.push('');
|
|
1448
|
-
lines.push('**Solutions:**');
|
|
1449
|
-
lines.push('');
|
|
1450
|
-
lines.push('1. **Check MCP configuration**');
|
|
1451
|
-
lines.push(' ```bash');
|
|
1452
|
-
lines.push(' cat .gitlab/duo/mcp-config.json');
|
|
1453
|
-
lines.push(' ```');
|
|
1454
|
-
lines.push('');
|
|
1455
|
-
lines.push('2. **Verify server is installed**');
|
|
1456
|
-
lines.push(' ```bash');
|
|
1457
|
-
lines.push(' npm list @modelcontextprotocol/server-*');
|
|
1458
|
-
lines.push(' ```');
|
|
1459
|
-
lines.push('');
|
|
1460
|
-
lines.push('3. **Test server connection manually**');
|
|
1461
|
-
lines.push(' ```bash');
|
|
1462
|
-
lines.push(' npx @modelcontextprotocol/server-gitlab --test');
|
|
1463
|
-
lines.push(' ```');
|
|
1464
|
-
lines.push('');
|
|
1465
|
-
lines.push('4. **Check environment variables**');
|
|
1466
|
-
lines.push(' - Ensure required env vars are set');
|
|
1467
|
-
lines.push(' - Example: `GITLAB_TOKEN` for gitlab server');
|
|
1468
|
-
lines.push('');
|
|
1469
|
-
lines.push('### Webhook Trigger Not Firing');
|
|
1470
|
-
lines.push('');
|
|
1471
|
-
lines.push('**Symptom:** Webhook events not triggering agent');
|
|
1472
|
-
lines.push('');
|
|
1473
|
-
lines.push('**Solutions:**');
|
|
1474
|
-
lines.push('');
|
|
1475
|
-
lines.push('1. **Verify webhook configuration**');
|
|
1476
|
-
lines.push(' ```bash');
|
|
1477
|
-
lines.push(` cat .gitlab/duo/triggers/webhook.yaml`);
|
|
1478
|
-
lines.push(' ```');
|
|
1479
|
-
lines.push('');
|
|
1480
|
-
lines.push('2. **Check webhook URL**');
|
|
1481
|
-
lines.push(' - Ensure URL is accessible');
|
|
1482
|
-
lines.push(' - Test with curl');
|
|
1483
|
-
lines.push('');
|
|
1484
|
-
lines.push('3. **Verify authentication**');
|
|
1485
|
-
lines.push(' - Check WEBHOOK_TOKEN is set');
|
|
1486
|
-
lines.push(' - Verify token matches webhook config');
|
|
1487
|
-
lines.push('');
|
|
1488
|
-
lines.push('4. **Review webhook logs**');
|
|
1489
|
-
lines.push(' ```bash');
|
|
1490
|
-
lines.push(` glab duo agent logs ${agentName} --filter webhook`);
|
|
1491
|
-
lines.push(' ```');
|
|
1492
|
-
lines.push('');
|
|
1493
|
-
lines.push('## Diagnostic Commands');
|
|
1494
|
-
lines.push('');
|
|
1495
|
-
lines.push('```bash');
|
|
1496
|
-
lines.push('# Complete diagnostic report');
|
|
1497
|
-
lines.push(`glab duo agent diagnose ${agentName}`);
|
|
1498
|
-
lines.push('');
|
|
1499
|
-
lines.push('# Check agent configuration');
|
|
1500
|
-
lines.push(`glab duo agent config ${agentName}`);
|
|
1501
|
-
lines.push('');
|
|
1502
|
-
lines.push('# Validate flow definition');
|
|
1503
|
-
lines.push(`glab duo flow validate .gitlab/duo/flows/${agentName}.yaml`);
|
|
1504
|
-
lines.push('');
|
|
1505
|
-
lines.push('# Test agent locally');
|
|
1506
|
-
lines.push(`glab duo agent test ${agentName} --input "test message"`);
|
|
1507
|
-
lines.push('');
|
|
1508
|
-
lines.push('# Export debug bundle');
|
|
1509
|
-
lines.push(`glab duo agent debug-export ${agentName} > debug-bundle.tar.gz`);
|
|
1510
|
-
lines.push('```');
|
|
1511
|
-
lines.push('');
|
|
1512
|
-
lines.push('## Getting Help');
|
|
1513
|
-
lines.push('');
|
|
1514
|
-
lines.push('If issues persist:');
|
|
1515
|
-
lines.push('');
|
|
1516
|
-
lines.push('1. **Check GitLab Status** - https://status.gitlab.com');
|
|
1517
|
-
lines.push('2. **Review Documentation** - https://docs.gitlab.com/ee/user/gitlab_duo/');
|
|
1518
|
-
lines.push('3. **Open Support Ticket** - https://support.gitlab.com');
|
|
1519
|
-
lines.push('4. **Community Forum** - https://forum.gitlab.com');
|
|
1520
|
-
lines.push('');
|
|
1521
|
-
lines.push('## Debug Checklist');
|
|
1522
|
-
lines.push('');
|
|
1523
|
-
lines.push('Before opening a support ticket:');
|
|
1524
|
-
lines.push('');
|
|
1525
|
-
lines.push('- [ ] Agent status checked');
|
|
1526
|
-
lines.push('- [ ] Error logs reviewed');
|
|
1527
|
-
lines.push('- [ ] Authentication verified');
|
|
1528
|
-
lines.push('- [ ] Triggers validated');
|
|
1529
|
-
lines.push('- [ ] MCP servers tested');
|
|
1530
|
-
lines.push('- [ ] Network connectivity confirmed');
|
|
1531
|
-
lines.push('- [ ] Recent changes identified');
|
|
1532
|
-
lines.push('- [ ] Diagnostic report generated');
|
|
1533
|
-
lines.push('');
|
|
1534
|
-
return lines.join('\n');
|
|
1535
|
-
}
|
|
1536
|
-
/**
|
|
1537
|
-
* Generate FAQ.md
|
|
1538
|
-
*/
|
|
1539
|
-
generateFAQ(manifest) {
|
|
1540
|
-
const agentName = this.getAgentName(manifest);
|
|
1541
|
-
const lines = [];
|
|
1542
|
-
lines.push(`# FAQ: ${manifest.metadata?.name || 'Agent'}`);
|
|
1543
|
-
lines.push('');
|
|
1544
|
-
lines.push('## General');
|
|
1545
|
-
lines.push('');
|
|
1546
|
-
lines.push('### What is this agent?');
|
|
1547
|
-
lines.push('');
|
|
1548
|
-
lines.push(manifest.metadata?.description ||
|
|
1549
|
-
'A GitLab Duo agent for automating tasks.');
|
|
1550
|
-
lines.push('');
|
|
1551
|
-
lines.push('### How do I trigger this agent?');
|
|
1552
|
-
lines.push('');
|
|
1553
|
-
lines.push('Multiple ways:');
|
|
1554
|
-
lines.push('');
|
|
1555
|
-
lines.push(`- **Mention**: \`@${agentName}\` in issue/MR comments`);
|
|
1556
|
-
lines.push('- **Assignment**: Assign issue/MR to agent');
|
|
1557
|
-
lines.push('- **Schedule**: Runs automatically based on schedule');
|
|
1558
|
-
lines.push('- **Webhook**: Trigger via HTTP webhook');
|
|
1559
|
-
lines.push('');
|
|
1560
|
-
lines.push('### What permissions does the agent need?');
|
|
1561
|
-
lines.push('');
|
|
1562
|
-
lines.push('Required GitLab token scopes:');
|
|
1563
|
-
lines.push('');
|
|
1564
|
-
lines.push('- `api` - Full API access');
|
|
1565
|
-
lines.push('- `read_repository` - Read repository data');
|
|
1566
|
-
lines.push('- `write_repository` - Modify files (if applicable)');
|
|
1567
|
-
lines.push('');
|
|
1568
|
-
lines.push('## Deployment');
|
|
1569
|
-
lines.push('');
|
|
1570
|
-
lines.push('### How do I deploy this agent?');
|
|
1571
|
-
lines.push('');
|
|
1572
|
-
lines.push('Two deployment options:');
|
|
1573
|
-
lines.push('');
|
|
1574
|
-
lines.push('1. **Flow Agent** (Recommended) - Runs in GitLab Duo infrastructure');
|
|
1575
|
-
lines.push('2. **External Agent** - Runs in your CI/CD pipeline');
|
|
1576
|
-
lines.push('');
|
|
1577
|
-
lines.push('See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed instructions.');
|
|
1578
|
-
lines.push('');
|
|
1579
|
-
lines.push('### Can I test locally before deploying?');
|
|
1580
|
-
lines.push('');
|
|
1581
|
-
lines.push('Yes:');
|
|
1582
|
-
lines.push('');
|
|
1583
|
-
lines.push('```bash');
|
|
1584
|
-
lines.push('npm install');
|
|
1585
|
-
lines.push('npm run build');
|
|
1586
|
-
lines.push(`glab duo agent test ${agentName} --input "test message"`);
|
|
1587
|
-
lines.push('```');
|
|
1588
|
-
lines.push('');
|
|
1589
|
-
lines.push('### How do I update the agent?');
|
|
1590
|
-
lines.push('');
|
|
1591
|
-
lines.push('```bash');
|
|
1592
|
-
lines.push('# 1. Make changes locally');
|
|
1593
|
-
lines.push('# 2. Build');
|
|
1594
|
-
lines.push('npm run build');
|
|
1595
|
-
lines.push('');
|
|
1596
|
-
lines.push('# 3. Redeploy flow');
|
|
1597
|
-
lines.push(`glab duo flow deploy ${agentName} --update`);
|
|
1598
|
-
lines.push('```');
|
|
1599
|
-
lines.push('');
|
|
1600
|
-
lines.push('## Usage');
|
|
1601
|
-
lines.push('');
|
|
1602
|
-
lines.push('### How do I see agent execution history?');
|
|
1603
|
-
lines.push('');
|
|
1604
|
-
lines.push('```bash');
|
|
1605
|
-
lines.push(`glab duo agent executions ${agentName}`);
|
|
1606
|
-
lines.push('```');
|
|
1607
|
-
lines.push('');
|
|
1608
|
-
lines.push('### How do I view agent logs?');
|
|
1609
|
-
lines.push('');
|
|
1610
|
-
lines.push('```bash');
|
|
1611
|
-
lines.push(`# Recent logs`);
|
|
1612
|
-
lines.push(`glab duo agent logs ${agentName}`);
|
|
1613
|
-
lines.push('');
|
|
1614
|
-
lines.push('# Follow in real-time');
|
|
1615
|
-
lines.push(`glab duo agent logs ${agentName} --follow`);
|
|
1616
|
-
lines.push('```');
|
|
1617
|
-
lines.push('');
|
|
1618
|
-
lines.push('### Can the agent access private repositories?');
|
|
1619
|
-
lines.push('');
|
|
1620
|
-
lines.push('Yes, if the GitLab token has appropriate permissions. The agent can access any repository the token owner can access.');
|
|
1621
|
-
lines.push('');
|
|
1622
|
-
lines.push('### What tools does the agent have access to?');
|
|
1623
|
-
lines.push('');
|
|
1624
|
-
lines.push('See `.gitlab/duo/custom-tools.json` for complete list. Common tools:');
|
|
1625
|
-
lines.push('');
|
|
1626
|
-
lines.push('- File operations (read, write, search)');
|
|
1627
|
-
lines.push('- GitLab operations (issues, MRs, comments)');
|
|
1628
|
-
lines.push('- Shell commands (if enabled)');
|
|
1629
|
-
lines.push('');
|
|
1630
|
-
lines.push('## Customization');
|
|
1631
|
-
lines.push('');
|
|
1632
|
-
lines.push('### How do I modify the agent behavior?');
|
|
1633
|
-
lines.push('');
|
|
1634
|
-
lines.push('Edit the system prompt in `.gitlab/duo/flows/${agentName}.yaml`:');
|
|
1635
|
-
lines.push('');
|
|
1636
|
-
lines.push('```yaml');
|
|
1637
|
-
lines.push('prompts:');
|
|
1638
|
-
lines.push(` - prompt_id: ${agentName}_prompt`);
|
|
1639
|
-
lines.push(' prompt_template:');
|
|
1640
|
-
lines.push(' system: "Your custom instructions here"');
|
|
1641
|
-
lines.push('```');
|
|
1642
|
-
lines.push('');
|
|
1643
|
-
lines.push('### Can I add more triggers?');
|
|
1644
|
-
lines.push('');
|
|
1645
|
-
lines.push('Yes, create new trigger files in `.gitlab/duo/triggers/`:');
|
|
1646
|
-
lines.push('');
|
|
1647
|
-
lines.push('```yaml');
|
|
1648
|
-
lines.push('version: v1');
|
|
1649
|
-
lines.push(`agent_name: ${agentName}`);
|
|
1650
|
-
lines.push('trigger:');
|
|
1651
|
-
lines.push(' type: schedule');
|
|
1652
|
-
lines.push(' cron: "0 * * * *" # Hourly');
|
|
1653
|
-
lines.push('```');
|
|
1654
|
-
lines.push('');
|
|
1655
|
-
lines.push('### Can I use a different LLM model?');
|
|
1656
|
-
lines.push('');
|
|
1657
|
-
lines.push('Yes, edit the model configuration in flow YAML:');
|
|
1658
|
-
lines.push('');
|
|
1659
|
-
lines.push('```yaml');
|
|
1660
|
-
lines.push('prompts:');
|
|
1661
|
-
lines.push(' - model:');
|
|
1662
|
-
lines.push(' params:');
|
|
1663
|
-
lines.push(' model_class_provider: anthropic');
|
|
1664
|
-
lines.push(' model: claude-opus-4 # Change here');
|
|
1665
|
-
lines.push('```');
|
|
1666
|
-
lines.push('');
|
|
1667
|
-
lines.push('### How do I add custom tools?');
|
|
1668
|
-
lines.push('');
|
|
1669
|
-
lines.push('1. Define tool in `.gitlab/duo/custom-tools.json`');
|
|
1670
|
-
lines.push('2. Implement tool in `src/tools/`');
|
|
1671
|
-
lines.push('3. Register in MCP config');
|
|
1672
|
-
lines.push('4. Rebuild and redeploy');
|
|
1673
|
-
lines.push('');
|
|
1674
|
-
lines.push('## Troubleshooting');
|
|
1675
|
-
lines.push('');
|
|
1676
|
-
lines.push('### Agent not responding?');
|
|
1677
|
-
lines.push('');
|
|
1678
|
-
lines.push('See [TROUBLESHOOTING.md](./TROUBLESHOOTING.md) for detailed debugging steps.');
|
|
1679
|
-
lines.push('');
|
|
1680
|
-
lines.push('### High response time?');
|
|
1681
|
-
lines.push('');
|
|
1682
|
-
lines.push('Common causes:');
|
|
1683
|
-
lines.push('');
|
|
1684
|
-
lines.push('- Large prompt size → Reduce context');
|
|
1685
|
-
lines.push('- Many tool calls → Optimize workflow');
|
|
1686
|
-
lines.push('- Slow model → Use faster model (haiku, gpt-4o-mini)');
|
|
1687
|
-
lines.push('');
|
|
1688
|
-
lines.push('### Authentication errors?');
|
|
1689
|
-
lines.push('');
|
|
1690
|
-
lines.push('Check:');
|
|
1691
|
-
lines.push('');
|
|
1692
|
-
lines.push('1. GitLab token is valid: `glab auth status`');
|
|
1693
|
-
lines.push('2. Token has correct scopes');
|
|
1694
|
-
lines.push('3. Token not expired');
|
|
1695
|
-
lines.push('');
|
|
1696
|
-
lines.push('## Performance');
|
|
1697
|
-
lines.push('');
|
|
1698
|
-
lines.push('### How many executions can the agent handle?');
|
|
1699
|
-
lines.push('');
|
|
1700
|
-
lines.push('Depends on deployment mode:');
|
|
1701
|
-
lines.push('');
|
|
1702
|
-
lines.push('- **Flow Agent**: Scales automatically (GitLab handles infrastructure)');
|
|
1703
|
-
lines.push('- **External Agent**: Limited by CI/CD runners');
|
|
1704
|
-
lines.push('');
|
|
1705
|
-
lines.push('### What are the token limits?');
|
|
1706
|
-
lines.push('');
|
|
1707
|
-
lines.push('Varies by model:');
|
|
1708
|
-
lines.push('');
|
|
1709
|
-
lines.push('- Claude Sonnet 4: 200K tokens');
|
|
1710
|
-
lines.push('- GPT-4o: 128K tokens');
|
|
1711
|
-
lines.push('- Gemini 1.5 Pro: 2M tokens');
|
|
1712
|
-
lines.push('');
|
|
1713
|
-
lines.push('### How much does it cost to run?');
|
|
1714
|
-
lines.push('');
|
|
1715
|
-
lines.push('Costs depend on:');
|
|
1716
|
-
lines.push('');
|
|
1717
|
-
lines.push('- Model used (Claude, GPT, Gemini)');
|
|
1718
|
-
lines.push('- Token usage per execution');
|
|
1719
|
-
lines.push('- Number of executions');
|
|
1720
|
-
lines.push('');
|
|
1721
|
-
lines.push('Monitor costs: `glab duo agent metrics ${agentName} --metric token_usage`');
|
|
1722
|
-
lines.push('');
|
|
1723
|
-
lines.push('## Security');
|
|
1724
|
-
lines.push('');
|
|
1725
|
-
lines.push('### Is my data secure?');
|
|
1726
|
-
lines.push('');
|
|
1727
|
-
lines.push('Yes:');
|
|
1728
|
-
lines.push('');
|
|
1729
|
-
lines.push('- All data encrypted in transit (TLS)');
|
|
1730
|
-
lines.push('- Tokens stored as masked CI/CD variables');
|
|
1731
|
-
lines.push('- Conversation history not persisted');
|
|
1732
|
-
lines.push('- PII redaction enabled');
|
|
1733
|
-
lines.push('');
|
|
1734
|
-
lines.push('See [SECURITY.md](./SECURITY.md) for details.');
|
|
1735
|
-
lines.push('');
|
|
1736
|
-
lines.push('### Can I restrict agent permissions?');
|
|
1737
|
-
lines.push('');
|
|
1738
|
-
lines.push('Yes:');
|
|
1739
|
-
lines.push('');
|
|
1740
|
-
lines.push('- Limit GitLab token scopes');
|
|
1741
|
-
lines.push('- Restrict trigger permissions');
|
|
1742
|
-
lines.push('- Disable dangerous tools (shell execution)');
|
|
1743
|
-
lines.push('- Use read-only mode');
|
|
1744
|
-
lines.push('');
|
|
1745
|
-
lines.push('## Support');
|
|
1746
|
-
lines.push('');
|
|
1747
|
-
lines.push('### Where do I get help?');
|
|
1748
|
-
lines.push('');
|
|
1749
|
-
lines.push('1. Check [TROUBLESHOOTING.md](./TROUBLESHOOTING.md)');
|
|
1750
|
-
lines.push('2. Review [GitLab Duo Documentation](https://docs.gitlab.com/ee/user/gitlab_duo/)');
|
|
1751
|
-
lines.push('3. Open support ticket: https://support.gitlab.com');
|
|
1752
|
-
lines.push('4. Community forum: https://forum.gitlab.com');
|
|
1753
|
-
lines.push('');
|
|
1754
|
-
lines.push('### How do I report a bug?');
|
|
1755
|
-
lines.push('');
|
|
1756
|
-
lines.push('1. Generate diagnostic report: `glab duo agent diagnose ${agentName}`');
|
|
1757
|
-
lines.push('2. Open issue in GitLab project');
|
|
1758
|
-
lines.push('3. Include diagnostic report and error logs');
|
|
1759
|
-
lines.push('');
|
|
1760
|
-
lines.push('### Can I contribute improvements?');
|
|
1761
|
-
lines.push('');
|
|
1762
|
-
lines.push('Yes! Submit merge requests with:');
|
|
1763
|
-
lines.push('');
|
|
1764
|
-
lines.push('- Bug fixes');
|
|
1765
|
-
lines.push('- New features');
|
|
1766
|
-
lines.push('- Documentation improvements');
|
|
1767
|
-
lines.push('- Performance optimizations');
|
|
1768
|
-
lines.push('');
|
|
1769
|
-
return lines.join('\n');
|
|
1770
|
-
}
|
|
1771
|
-
/**
|
|
1772
|
-
* Generate ARCHITECTURE.md
|
|
1773
|
-
*/
|
|
1774
|
-
generateArchitecture(manifest) {
|
|
1775
|
-
const agentName = this.getAgentName(manifest);
|
|
1776
|
-
const lines = [];
|
|
1777
|
-
lines.push(`# Architecture: ${manifest.metadata?.name || 'Agent'}`);
|
|
1778
|
-
lines.push('');
|
|
1779
|
-
lines.push('## Overview');
|
|
1780
|
-
lines.push('');
|
|
1781
|
-
lines.push('This document describes the architecture of this GitLab Duo agent, including its components, data flow, and integration points.');
|
|
1782
|
-
lines.push('');
|
|
1783
|
-
lines.push('## High-Level Architecture');
|
|
1784
|
-
lines.push('');
|
|
1785
|
-
lines.push('```');
|
|
1786
|
-
lines.push('┌─────────────────────────────────────────────────────────┐');
|
|
1787
|
-
lines.push('│ GitLab Platform │');
|
|
1788
|
-
lines.push('│ ┌──────────┐ ┌──────────┐ ┌──────────────────────┐ │');
|
|
1789
|
-
lines.push('│ │ Issues │ │ MRs │ │ CI/CD Pipelines │ │');
|
|
1790
|
-
lines.push('│ └────┬─────┘ └────┬─────┘ └──────────┬───────────┘ │');
|
|
1791
|
-
lines.push('└───────┼─────────────┼──────────────────┼──────────────┘');
|
|
1792
|
-
lines.push(' │ │ │');
|
|
1793
|
-
lines.push(' └─────────────┼──────────────────┘');
|
|
1794
|
-
lines.push(' │ Triggers');
|
|
1795
|
-
lines.push(' ▼');
|
|
1796
|
-
lines.push(' ┌─────────────────────────────┐');
|
|
1797
|
-
lines.push(' │ GitLab Duo Flow Engine │');
|
|
1798
|
-
lines.push(' │ ┌────────────────────────┐ │');
|
|
1799
|
-
lines.push(' │ │ Trigger Handler │ │');
|
|
1800
|
-
lines.push(' │ └──────────┬─────────────┘ │');
|
|
1801
|
-
lines.push(' │ │ │');
|
|
1802
|
-
lines.push(' │ ┌──────────▼─────────────┐ │');
|
|
1803
|
-
lines.push(` │ │ ${agentName} Agent │ │`);
|
|
1804
|
-
lines.push(' │ │ - System Prompt │ │');
|
|
1805
|
-
lines.push(' │ │ - Router Logic │ │');
|
|
1806
|
-
lines.push(' │ │ - Component Exec │ │');
|
|
1807
|
-
lines.push(' │ └──────────┬─────────────┘ │');
|
|
1808
|
-
lines.push(' └─────────────┼───────────────┘');
|
|
1809
|
-
lines.push(' │');
|
|
1810
|
-
lines.push(' ▼');
|
|
1811
|
-
lines.push(' ┌─────────────────────────────┐');
|
|
1812
|
-
lines.push(' │ AI Gateway │');
|
|
1813
|
-
lines.push(' │ ┌────────────────────────┐ │');
|
|
1814
|
-
lines.push(' │ │ Model Router │ │');
|
|
1815
|
-
lines.push(' │ └──────────┬─────────────┘ │');
|
|
1816
|
-
lines.push(' │ │ │');
|
|
1817
|
-
lines.push(' │ ┌──────────▼─────────────┐ │');
|
|
1818
|
-
lines.push(' │ │ LLM Provider │ │');
|
|
1819
|
-
lines.push(' │ │ (Anthropic/OpenAI) │ │');
|
|
1820
|
-
lines.push(' │ └────────────────────────┘ │');
|
|
1821
|
-
lines.push(' └─────────────────────────────┘');
|
|
1822
|
-
lines.push(' │');
|
|
1823
|
-
lines.push(' ▼');
|
|
1824
|
-
lines.push(' ┌─────────────────────────────┐');
|
|
1825
|
-
lines.push(' │ MCP Servers │');
|
|
1826
|
-
lines.push(' │ ┌────────┐ ┌────────────┐ │');
|
|
1827
|
-
lines.push(' │ │ GitLab │ │ Filesystem │ │');
|
|
1828
|
-
lines.push(' │ └────────┘ └────────────┘ │');
|
|
1829
|
-
lines.push(' │ ┌────────┐ ┌────────────┐ │');
|
|
1830
|
-
lines.push(' │ │ Memory │ │ Custom │ │');
|
|
1831
|
-
lines.push(' │ └────────┘ └────────────┘ │');
|
|
1832
|
-
lines.push(' └─────────────────────────────┘');
|
|
1833
|
-
lines.push('```');
|
|
1834
|
-
lines.push('');
|
|
1835
|
-
lines.push('## Components');
|
|
1836
|
-
lines.push('');
|
|
1837
|
-
lines.push('### 1. Trigger System');
|
|
1838
|
-
lines.push('');
|
|
1839
|
-
lines.push('Manages agent activation based on events:');
|
|
1840
|
-
lines.push('');
|
|
1841
|
-
lines.push('- **Mention Trigger**: @agent mentions in issues/MRs');
|
|
1842
|
-
lines.push('- **Assignment Trigger**: Issue/MR assignments');
|
|
1843
|
-
lines.push('- **Schedule Trigger**: Cron-based execution');
|
|
1844
|
-
lines.push('- **Webhook Trigger**: External HTTP events');
|
|
1845
|
-
lines.push('- **Pipeline Trigger**: CI/CD pipeline events');
|
|
1846
|
-
lines.push('- **File Pattern Trigger**: File change detection');
|
|
1847
|
-
lines.push('');
|
|
1848
|
-
lines.push('**Location**: `.gitlab/duo/triggers/*.yaml`');
|
|
1849
|
-
lines.push('');
|
|
1850
|
-
lines.push('### 2. Flow Engine');
|
|
1851
|
-
lines.push('');
|
|
1852
|
-
lines.push('Orchestrates agent execution:');
|
|
1853
|
-
lines.push('');
|
|
1854
|
-
lines.push('- **Entry Point**: Receives trigger events');
|
|
1855
|
-
lines.push('- **Context Building**: Gathers relevant data');
|
|
1856
|
-
lines.push('- **Component Execution**: Runs agent components');
|
|
1857
|
-
lines.push('- **Router Logic**: Routes between components');
|
|
1858
|
-
lines.push('- **Output Handling**: Formats and delivers responses');
|
|
1859
|
-
lines.push('');
|
|
1860
|
-
lines.push('**Location**: `.gitlab/duo/flows/${agentName}.yaml`');
|
|
1861
|
-
lines.push('');
|
|
1862
|
-
lines.push('### 3. Agent Component');
|
|
1863
|
-
lines.push('');
|
|
1864
|
-
lines.push('Core agent logic:');
|
|
1865
|
-
lines.push('');
|
|
1866
|
-
lines.push('```typescript');
|
|
1867
|
-
lines.push('interface AgentComponent {');
|
|
1868
|
-
lines.push(' name: string;');
|
|
1869
|
-
lines.push(' type: "AgentComponent";');
|
|
1870
|
-
lines.push(' prompt_id: string;');
|
|
1871
|
-
lines.push(' toolset: string[];');
|
|
1872
|
-
lines.push(' inputs: FlowInput[];');
|
|
1873
|
-
lines.push('}');
|
|
1874
|
-
lines.push('```');
|
|
1875
|
-
lines.push('');
|
|
1876
|
-
lines.push('**Responsibilities:**');
|
|
1877
|
-
lines.push('- Receive task from trigger');
|
|
1878
|
-
lines.push('- Execute LLM inference');
|
|
1879
|
-
lines.push('- Call tools as needed');
|
|
1880
|
-
lines.push('- Return structured response');
|
|
1881
|
-
lines.push('');
|
|
1882
|
-
lines.push('### 4. Prompt System');
|
|
1883
|
-
lines.push('');
|
|
1884
|
-
lines.push('Manages LLM prompts:');
|
|
1885
|
-
lines.push('');
|
|
1886
|
-
lines.push('```yaml');
|
|
1887
|
-
lines.push('prompts:');
|
|
1888
|
-
lines.push(` - prompt_id: ${agentName}_prompt`);
|
|
1889
|
-
lines.push(' prompt_template:');
|
|
1890
|
-
lines.push(' system: "System instructions"');
|
|
1891
|
-
lines.push(' user: "{{task}}"');
|
|
1892
|
-
lines.push(' placeholder: history');
|
|
1893
|
-
lines.push(' model:');
|
|
1894
|
-
lines.push(' params:');
|
|
1895
|
-
lines.push(' model_class_provider: anthropic');
|
|
1896
|
-
lines.push(' model: claude-sonnet-4');
|
|
1897
|
-
lines.push('```');
|
|
1898
|
-
lines.push('');
|
|
1899
|
-
lines.push('### 5. Tool System (MCP)');
|
|
1900
|
-
lines.push('');
|
|
1901
|
-
lines.push('Provides tools via Model Context Protocol:');
|
|
1902
|
-
lines.push('');
|
|
1903
|
-
lines.push('**MCP Servers:**');
|
|
1904
|
-
lines.push('- `gitlab`: GitLab API operations');
|
|
1905
|
-
lines.push('- `filesystem`: File operations');
|
|
1906
|
-
lines.push('- `memory`: Persistent memory');
|
|
1907
|
-
lines.push('- `custom`: Custom tool implementations');
|
|
1908
|
-
lines.push('');
|
|
1909
|
-
lines.push('**Configuration**: `.gitlab/duo/mcp-config.json`');
|
|
1910
|
-
lines.push('');
|
|
1911
|
-
lines.push('### 6. Router System');
|
|
1912
|
-
lines.push('');
|
|
1913
|
-
lines.push('Controls execution flow:');
|
|
1914
|
-
lines.push('');
|
|
1915
|
-
lines.push('```yaml');
|
|
1916
|
-
lines.push('routers:');
|
|
1917
|
-
lines.push(' # Simple routing');
|
|
1918
|
-
lines.push(` - from: ${agentName}`);
|
|
1919
|
-
lines.push(' to: end');
|
|
1920
|
-
lines.push('');
|
|
1921
|
-
lines.push(' # Conditional routing');
|
|
1922
|
-
lines.push(` - from: ${agentName}`);
|
|
1923
|
-
lines.push(' condition:');
|
|
1924
|
-
lines.push(' input: decision');
|
|
1925
|
-
lines.push(' routes:');
|
|
1926
|
-
lines.push(' approve: next_step');
|
|
1927
|
-
lines.push(' reject: error_handler');
|
|
1928
|
-
lines.push('```');
|
|
1929
|
-
lines.push('');
|
|
1930
|
-
lines.push('## Data Flow');
|
|
1931
|
-
lines.push('');
|
|
1932
|
-
lines.push('### Execution Flow');
|
|
1933
|
-
lines.push('');
|
|
1934
|
-
lines.push('1. **Trigger Event**');
|
|
1935
|
-
lines.push(' - User mentions @agent in issue');
|
|
1936
|
-
lines.push(' - Trigger handler receives event');
|
|
1937
|
-
lines.push(' - Event validated and queued');
|
|
1938
|
-
lines.push('');
|
|
1939
|
-
lines.push('2. **Context Building**');
|
|
1940
|
-
lines.push(' - Fetch issue content');
|
|
1941
|
-
lines.push(' - Load conversation history');
|
|
1942
|
-
lines.push(' - Gather relevant context');
|
|
1943
|
-
lines.push('');
|
|
1944
|
-
lines.push('3. **Agent Execution**');
|
|
1945
|
-
lines.push(' - Load system prompt');
|
|
1946
|
-
lines.push(' - Build user message with context');
|
|
1947
|
-
lines.push(' - Send to AI Gateway');
|
|
1948
|
-
lines.push('');
|
|
1949
|
-
lines.push('4. **LLM Inference**');
|
|
1950
|
-
lines.push(' - AI Gateway routes to model provider');
|
|
1951
|
-
lines.push(' - LLM processes prompt');
|
|
1952
|
-
lines.push(' - Returns response with tool calls');
|
|
1953
|
-
lines.push('');
|
|
1954
|
-
lines.push('5. **Tool Execution**');
|
|
1955
|
-
lines.push(' - Parse tool calls');
|
|
1956
|
-
lines.push(' - Execute via MCP servers');
|
|
1957
|
-
lines.push(' - Return tool outputs');
|
|
1958
|
-
lines.push('');
|
|
1959
|
-
lines.push('6. **Response Generation**');
|
|
1960
|
-
lines.push(' - LLM processes tool outputs');
|
|
1961
|
-
lines.push(' - Generates final response');
|
|
1962
|
-
lines.push(' - Format for delivery');
|
|
1963
|
-
lines.push('');
|
|
1964
|
-
lines.push('7. **Response Delivery**');
|
|
1965
|
-
lines.push(' - Post comment to issue');
|
|
1966
|
-
lines.push(' - Update issue status (if applicable)');
|
|
1967
|
-
lines.push(' - Log execution metrics');
|
|
1968
|
-
lines.push('');
|
|
1969
|
-
lines.push('## Integration Points');
|
|
1970
|
-
lines.push('');
|
|
1971
|
-
lines.push('### GitLab API');
|
|
1972
|
-
lines.push('');
|
|
1973
|
-
lines.push('- **Authentication**: Personal access token');
|
|
1974
|
-
lines.push('- **Endpoints Used**:');
|
|
1975
|
-
lines.push(' - `/api/v4/projects/:id/issues`');
|
|
1976
|
-
lines.push(' - `/api/v4/projects/:id/merge_requests`');
|
|
1977
|
-
lines.push(' - `/api/v4/projects/:id/repository/files`');
|
|
1978
|
-
lines.push('- **Rate Limits**: 600 requests/minute');
|
|
1979
|
-
lines.push('');
|
|
1980
|
-
lines.push('### AI Gateway');
|
|
1981
|
-
lines.push('');
|
|
1982
|
-
lines.push('- **Protocol**: HTTP/2');
|
|
1983
|
-
lines.push('- **Authentication**: JWT token');
|
|
1984
|
-
lines.push('- **Endpoints**:');
|
|
1985
|
-
lines.push(' - `/v1/chat/completions` - LLM inference');
|
|
1986
|
-
lines.push(' - `/v1/embeddings` - Vector embeddings');
|
|
1987
|
-
lines.push('');
|
|
1988
|
-
lines.push('### MCP Servers');
|
|
1989
|
-
lines.push('');
|
|
1990
|
-
lines.push('- **Protocol**: JSON-RPC 2.0 over stdio');
|
|
1991
|
-
lines.push('- **Lifecycle**: Started on-demand, kept warm');
|
|
1992
|
-
lines.push('- **Communication**: Process IPC');
|
|
1993
|
-
lines.push('');
|
|
1994
|
-
lines.push('## Security Architecture');
|
|
1995
|
-
lines.push('');
|
|
1996
|
-
lines.push('### Authentication Chain');
|
|
1997
|
-
lines.push('');
|
|
1998
|
-
lines.push('```');
|
|
1999
|
-
lines.push('User → GitLab (OAuth) → Flow Engine (JWT) → AI Gateway (Token) → LLM Provider');
|
|
2000
|
-
lines.push('```');
|
|
2001
|
-
lines.push('');
|
|
2002
|
-
lines.push('### Data Security');
|
|
2003
|
-
lines.push('');
|
|
2004
|
-
lines.push('- **In Transit**: TLS 1.3 encryption');
|
|
2005
|
-
lines.push('- **At Rest**: No persistent storage (ephemeral)');
|
|
2006
|
-
lines.push('- **Token Storage**: GitLab CI/CD variables (masked)');
|
|
2007
|
-
lines.push('- **PII Handling**: Redacted before logging');
|
|
2008
|
-
lines.push('');
|
|
2009
|
-
lines.push('## Scalability');
|
|
2010
|
-
lines.push('');
|
|
2011
|
-
lines.push('### Flow Agent (Managed)');
|
|
2012
|
-
lines.push('');
|
|
2013
|
-
lines.push('- Horizontal scaling (GitLab manages)');
|
|
2014
|
-
lines.push('- Auto-scales based on load');
|
|
2015
|
-
lines.push('- No infrastructure management');
|
|
2016
|
-
lines.push('');
|
|
2017
|
-
lines.push('### External Agent (Self-Hosted)');
|
|
2018
|
-
lines.push('');
|
|
2019
|
-
lines.push('- Scales with CI/CD runner capacity');
|
|
2020
|
-
lines.push('- Concurrent execution limited by runners');
|
|
2021
|
-
lines.push('- Manual scaling required');
|
|
2022
|
-
lines.push('');
|
|
2023
|
-
lines.push('## Monitoring & Observability');
|
|
2024
|
-
lines.push('');
|
|
2025
|
-
lines.push('### Metrics Collected');
|
|
2026
|
-
lines.push('');
|
|
2027
|
-
lines.push('- Execution count');
|
|
2028
|
-
lines.push('- Response time (p50, p95, p99)');
|
|
2029
|
-
lines.push('- Error rate');
|
|
2030
|
-
lines.push('- Token usage');
|
|
2031
|
-
lines.push('- Tool call count');
|
|
2032
|
-
lines.push('');
|
|
2033
|
-
lines.push('### Logging');
|
|
2034
|
-
lines.push('');
|
|
2035
|
-
lines.push('- **Levels**: ERROR, WARN, INFO, DEBUG');
|
|
2036
|
-
lines.push('- **Retention**: 30 days');
|
|
2037
|
-
lines.push('- **Format**: Structured JSON');
|
|
2038
|
-
lines.push('');
|
|
2039
|
-
lines.push('### Tracing');
|
|
2040
|
-
lines.push('');
|
|
2041
|
-
lines.push('- Distributed tracing via OpenTelemetry');
|
|
2042
|
-
lines.push('- Trace ID propagation through components');
|
|
2043
|
-
lines.push('- Full execution path visualization');
|
|
2044
|
-
lines.push('');
|
|
2045
|
-
lines.push('## Deployment Models');
|
|
2046
|
-
lines.push('');
|
|
2047
|
-
lines.push('### Flow Agent (Recommended)');
|
|
2048
|
-
lines.push('');
|
|
2049
|
-
lines.push('**Pros:**');
|
|
2050
|
-
lines.push('- Zero infrastructure management');
|
|
2051
|
-
lines.push('- Auto-scaling');
|
|
2052
|
-
lines.push('- Built-in monitoring');
|
|
2053
|
-
lines.push('- Faster cold starts');
|
|
2054
|
-
lines.push('');
|
|
2055
|
-
lines.push('**Cons:**');
|
|
2056
|
-
lines.push('- Less control over execution environment');
|
|
2057
|
-
lines.push('- Potential vendor lock-in');
|
|
2058
|
-
lines.push('');
|
|
2059
|
-
lines.push('### External Agent');
|
|
2060
|
-
lines.push('');
|
|
2061
|
-
lines.push('**Pros:**');
|
|
2062
|
-
lines.push('- Full control over environment');
|
|
2063
|
-
lines.push('- Can use private runners');
|
|
2064
|
-
lines.push('- Custom dependencies');
|
|
2065
|
-
lines.push('');
|
|
2066
|
-
lines.push('**Cons:**');
|
|
2067
|
-
lines.push('- Manual scaling required');
|
|
2068
|
-
lines.push('- Infrastructure management overhead');
|
|
2069
|
-
lines.push('- Slower cold starts');
|
|
2070
|
-
lines.push('');
|
|
2071
|
-
lines.push('## Future Enhancements');
|
|
2072
|
-
lines.push('');
|
|
2073
|
-
lines.push('Planned improvements:');
|
|
2074
|
-
lines.push('');
|
|
2075
|
-
lines.push('- [ ] Multi-agent orchestration');
|
|
2076
|
-
lines.push('- [ ] Persistent memory across sessions');
|
|
2077
|
-
lines.push('- [ ] Advanced router patterns (parallel, conditional)');
|
|
2078
|
-
lines.push('- [ ] Custom model fine-tuning');
|
|
2079
|
-
lines.push('- [ ] Enhanced error recovery');
|
|
2080
|
-
lines.push('- [ ] Real-time streaming responses');
|
|
2081
|
-
lines.push('');
|
|
2082
|
-
return lines.join('\n');
|
|
2083
|
-
}
|
|
2084
|
-
/**
|
|
2085
|
-
* Generate API.md
|
|
2086
|
-
*/
|
|
2087
|
-
generateAPIDocumentation(manifest) {
|
|
2088
|
-
const agentName = this.getAgentName(manifest);
|
|
2089
|
-
const lines = [];
|
|
2090
|
-
lines.push(`# API Documentation: ${manifest.metadata?.name || 'Agent'}`);
|
|
2091
|
-
lines.push('');
|
|
2092
|
-
lines.push('## Overview');
|
|
2093
|
-
lines.push('');
|
|
2094
|
-
lines.push('This document describes the APIs for interacting with this GitLab Duo agent programmatically.');
|
|
2095
|
-
lines.push('');
|
|
2096
|
-
lines.push('## GitLab API Integration');
|
|
2097
|
-
lines.push('');
|
|
2098
|
-
lines.push('### Trigger Agent via API');
|
|
2099
|
-
lines.push('');
|
|
2100
|
-
lines.push('**Endpoint:** `POST /api/v4/projects/:id/duo/agents/:agent_id/trigger`');
|
|
2101
|
-
lines.push('');
|
|
2102
|
-
lines.push('**Authentication:** GitLab personal access token with `api` scope');
|
|
2103
|
-
lines.push('');
|
|
2104
|
-
lines.push('**Request:**');
|
|
2105
|
-
lines.push('```bash');
|
|
2106
|
-
lines.push('curl -X POST \\');
|
|
2107
|
-
lines.push(' "https://gitlab.com/api/v4/projects/PROJECT_ID/duo/agents/${agentName}/trigger" \\');
|
|
2108
|
-
lines.push(' -H "PRIVATE-TOKEN: YOUR_TOKEN" \\');
|
|
2109
|
-
lines.push(' -H "Content-Type: application/json" \\');
|
|
2110
|
-
lines.push(" -d '{");
|
|
2111
|
-
lines.push(' "input": "Your task description",');
|
|
2112
|
-
lines.push(' "context": {');
|
|
2113
|
-
lines.push(' "issue_iid": 123,');
|
|
2114
|
-
lines.push(' "merge_request_iid": 456');
|
|
2115
|
-
lines.push(' }');
|
|
2116
|
-
lines.push(" }'");
|
|
2117
|
-
lines.push('```');
|
|
2118
|
-
lines.push('');
|
|
2119
|
-
lines.push('**Response:**');
|
|
2120
|
-
lines.push('```json');
|
|
2121
|
-
lines.push('{');
|
|
2122
|
-
lines.push(' "execution_id": "exec-abc123",');
|
|
2123
|
-
lines.push(' "status": "running",');
|
|
2124
|
-
lines.push(' "created_at": "2026-02-07T00:00:00Z"');
|
|
2125
|
-
lines.push('}');
|
|
2126
|
-
lines.push('```');
|
|
2127
|
-
lines.push('');
|
|
2128
|
-
lines.push('### Check Execution Status');
|
|
2129
|
-
lines.push('');
|
|
2130
|
-
lines.push('**Endpoint:** `GET /api/v4/projects/:id/duo/agents/:agent_id/executions/:execution_id`');
|
|
2131
|
-
lines.push('');
|
|
2132
|
-
lines.push('**Request:**');
|
|
2133
|
-
lines.push('```bash');
|
|
2134
|
-
lines.push('curl "https://gitlab.com/api/v4/projects/PROJECT_ID/duo/agents/${agentName}/executions/exec-abc123" \\');
|
|
2135
|
-
lines.push(' -H "PRIVATE-TOKEN: YOUR_TOKEN"');
|
|
2136
|
-
lines.push('```');
|
|
2137
|
-
lines.push('');
|
|
2138
|
-
lines.push('**Response:**');
|
|
2139
|
-
lines.push('```json');
|
|
2140
|
-
lines.push('{');
|
|
2141
|
-
lines.push(' "execution_id": "exec-abc123",');
|
|
2142
|
-
lines.push(' "status": "completed",');
|
|
2143
|
-
lines.push(' "result": {');
|
|
2144
|
-
lines.push(' "output": "Task completed successfully",');
|
|
2145
|
-
lines.push(' "tool_calls": 3,');
|
|
2146
|
-
lines.push(' "tokens_used": 1245');
|
|
2147
|
-
lines.push(' },');
|
|
2148
|
-
lines.push(' "created_at": "2026-02-07T00:00:00Z",');
|
|
2149
|
-
lines.push(' "completed_at": "2026-02-07T00:00:15Z"');
|
|
2150
|
-
lines.push('}');
|
|
2151
|
-
lines.push('```');
|
|
2152
|
-
lines.push('');
|
|
2153
|
-
lines.push('### List Agent Executions');
|
|
2154
|
-
lines.push('');
|
|
2155
|
-
lines.push('**Endpoint:** `GET /api/v4/projects/:id/duo/agents/:agent_id/executions`');
|
|
2156
|
-
lines.push('');
|
|
2157
|
-
lines.push('**Query Parameters:**');
|
|
2158
|
-
lines.push('- `page` - Page number (default: 1)');
|
|
2159
|
-
lines.push('- `per_page` - Items per page (default: 20, max: 100)');
|
|
2160
|
-
lines.push('- `status` - Filter by status (`running`, `completed`, `failed`)');
|
|
2161
|
-
lines.push('- `since` - Filter executions after date (ISO 8601)');
|
|
2162
|
-
lines.push('');
|
|
2163
|
-
lines.push('**Request:**');
|
|
2164
|
-
lines.push('```bash');
|
|
2165
|
-
lines.push('curl "https://gitlab.com/api/v4/projects/PROJECT_ID/duo/agents/${agentName}/executions?status=completed&per_page=10" \\');
|
|
2166
|
-
lines.push(' -H "PRIVATE-TOKEN: YOUR_TOKEN"');
|
|
2167
|
-
lines.push('```');
|
|
2168
|
-
lines.push('');
|
|
2169
|
-
lines.push('### Get Agent Logs');
|
|
2170
|
-
lines.push('');
|
|
2171
|
-
lines.push('**Endpoint:** `GET /api/v4/projects/:id/duo/agents/:agent_id/logs`');
|
|
2172
|
-
lines.push('');
|
|
2173
|
-
lines.push('**Query Parameters:**');
|
|
2174
|
-
lines.push('- `execution_id` - Filter by execution');
|
|
2175
|
-
lines.push('- `level` - Filter by log level (`ERROR`, `WARN`, `INFO`, `DEBUG`)');
|
|
2176
|
-
lines.push('- `since` - Filter logs after timestamp');
|
|
2177
|
-
lines.push('- `limit` - Max number of log entries (default: 100, max: 1000)');
|
|
2178
|
-
lines.push('');
|
|
2179
|
-
lines.push('**Request:**');
|
|
2180
|
-
lines.push('```bash');
|
|
2181
|
-
lines.push('curl "https://gitlab.com/api/v4/projects/PROJECT_ID/duo/agents/${agentName}/logs?level=ERROR&limit=50" \\');
|
|
2182
|
-
lines.push(' -H "PRIVATE-TOKEN: YOUR_TOKEN"');
|
|
2183
|
-
lines.push('```');
|
|
2184
|
-
lines.push('');
|
|
2185
|
-
lines.push('### Get Agent Metrics');
|
|
2186
|
-
lines.push('');
|
|
2187
|
-
lines.push('**Endpoint:** `GET /api/v4/projects/:id/duo/agents/:agent_id/metrics`');
|
|
2188
|
-
lines.push('');
|
|
2189
|
-
lines.push('**Query Parameters:**');
|
|
2190
|
-
lines.push('- `metric` - Specific metric name (optional)');
|
|
2191
|
-
lines.push('- `period` - Time period (`1h`, `24h`, `7d`, `30d`)');
|
|
2192
|
-
lines.push('- `format` - Output format (`json`, `prometheus`)');
|
|
2193
|
-
lines.push('');
|
|
2194
|
-
lines.push('**Request:**');
|
|
2195
|
-
lines.push('```bash');
|
|
2196
|
-
lines.push('curl "https://gitlab.com/api/v4/projects/PROJECT_ID/duo/agents/${agentName}/metrics?period=24h" \\');
|
|
2197
|
-
lines.push(' -H "PRIVATE-TOKEN: YOUR_TOKEN"');
|
|
2198
|
-
lines.push('```');
|
|
2199
|
-
lines.push('');
|
|
2200
|
-
lines.push('**Response:**');
|
|
2201
|
-
lines.push('```json');
|
|
2202
|
-
lines.push('{');
|
|
2203
|
-
lines.push(' "period": "24h",');
|
|
2204
|
-
lines.push(' "metrics": {');
|
|
2205
|
-
lines.push(' "execution_count": 142,');
|
|
2206
|
-
lines.push(' "success_rate": 0.985,');
|
|
2207
|
-
lines.push(' "avg_response_time_ms": 3245,');
|
|
2208
|
-
lines.push(' "p95_response_time_ms": 8932,');
|
|
2209
|
-
lines.push(' "total_tokens_used": 125430,');
|
|
2210
|
-
lines.push(' "error_count": 2');
|
|
2211
|
-
lines.push(' }');
|
|
2212
|
-
lines.push('}');
|
|
2213
|
-
lines.push('```');
|
|
2214
|
-
lines.push('');
|
|
2215
|
-
lines.push('## Webhook API');
|
|
2216
|
-
lines.push('');
|
|
2217
|
-
lines.push('### Trigger via Webhook');
|
|
2218
|
-
lines.push('');
|
|
2219
|
-
lines.push('If webhook trigger is configured (`.gitlab/duo/triggers/webhook.yaml`):');
|
|
2220
|
-
lines.push('');
|
|
2221
|
-
lines.push('**Endpoint:** Your configured webhook URL');
|
|
2222
|
-
lines.push('');
|
|
2223
|
-
lines.push('**Authentication:** Bearer token (set in `WEBHOOK_TOKEN`)');
|
|
2224
|
-
lines.push('');
|
|
2225
|
-
lines.push('**Request:**');
|
|
2226
|
-
lines.push('```bash');
|
|
2227
|
-
lines.push('curl -X POST \\');
|
|
2228
|
-
lines.push(' "https://your-instance.com/webhooks/${agentName}" \\');
|
|
2229
|
-
lines.push(' -H "Authorization: Bearer YOUR_WEBHOOK_TOKEN" \\');
|
|
2230
|
-
lines.push(' -H "Content-Type: application/json" \\');
|
|
2231
|
-
lines.push(" -d '{");
|
|
2232
|
-
lines.push(' "event": "custom_event",');
|
|
2233
|
-
lines.push(' "data": {');
|
|
2234
|
-
lines.push(' "key": "value"');
|
|
2235
|
-
lines.push(' }');
|
|
2236
|
-
lines.push(" }'");
|
|
2237
|
-
lines.push('```');
|
|
2238
|
-
lines.push('');
|
|
2239
|
-
lines.push('## glab CLI');
|
|
2240
|
-
lines.push('');
|
|
2241
|
-
lines.push('### Command Reference');
|
|
2242
|
-
lines.push('');
|
|
2243
|
-
lines.push('```bash');
|
|
2244
|
-
lines.push('# Trigger agent');
|
|
2245
|
-
lines.push(`glab duo agent trigger ${agentName} --input "task description"`);
|
|
2246
|
-
lines.push('');
|
|
2247
|
-
lines.push('# List executions');
|
|
2248
|
-
lines.push(`glab duo agent executions ${agentName}`);
|
|
2249
|
-
lines.push('');
|
|
2250
|
-
lines.push('# View logs');
|
|
2251
|
-
lines.push(`glab duo agent logs ${agentName} --follow`);
|
|
2252
|
-
lines.push('');
|
|
2253
|
-
lines.push('# Get metrics');
|
|
2254
|
-
lines.push(`glab duo agent metrics ${agentName} --period 24h`);
|
|
2255
|
-
lines.push('');
|
|
2256
|
-
lines.push('# Check status');
|
|
2257
|
-
lines.push(`glab duo agent status ${agentName}`);
|
|
2258
|
-
lines.push('');
|
|
2259
|
-
lines.push('# Test agent');
|
|
2260
|
-
lines.push(`glab duo agent test ${agentName} --input "test input"`);
|
|
2261
|
-
lines.push('```');
|
|
2262
|
-
lines.push('');
|
|
2263
|
-
lines.push('## SDK Examples');
|
|
2264
|
-
lines.push('');
|
|
2265
|
-
lines.push('### TypeScript/Node.js');
|
|
2266
|
-
lines.push('');
|
|
2267
|
-
lines.push('```typescript');
|
|
2268
|
-
lines.push('import { Gitlab } from "@gitbeaker/rest";');
|
|
2269
|
-
lines.push('');
|
|
2270
|
-
lines.push('const api = new Gitlab({');
|
|
2271
|
-
lines.push(' token: process.env.GITLAB_TOKEN,');
|
|
2272
|
-
lines.push(' host: "https://gitlab.com",');
|
|
2273
|
-
lines.push('});');
|
|
2274
|
-
lines.push('');
|
|
2275
|
-
lines.push('// Trigger agent');
|
|
2276
|
-
lines.push('const execution = await api.DuoAgents.trigger(');
|
|
2277
|
-
lines.push(' "project-id",');
|
|
2278
|
-
lines.push(` "${agentName}",`);
|
|
2279
|
-
lines.push(' {');
|
|
2280
|
-
lines.push(' input: "Your task",');
|
|
2281
|
-
lines.push(' context: { issue_iid: 123 },');
|
|
2282
|
-
lines.push(' }');
|
|
2283
|
-
lines.push(');');
|
|
2284
|
-
lines.push('');
|
|
2285
|
-
lines.push('// Wait for completion');
|
|
2286
|
-
lines.push('let status = "running";');
|
|
2287
|
-
lines.push('while (status === "running") {');
|
|
2288
|
-
lines.push(' await new Promise(resolve => setTimeout(resolve, 1000));');
|
|
2289
|
-
lines.push(' const result = await api.DuoAgents.getExecution(');
|
|
2290
|
-
lines.push(' "project-id",');
|
|
2291
|
-
lines.push(` "${agentName}",`);
|
|
2292
|
-
lines.push(' execution.execution_id');
|
|
2293
|
-
lines.push(' );');
|
|
2294
|
-
lines.push(' status = result.status;');
|
|
2295
|
-
lines.push('}');
|
|
2296
|
-
lines.push('```');
|
|
2297
|
-
lines.push('');
|
|
2298
|
-
lines.push('### Python');
|
|
2299
|
-
lines.push('');
|
|
2300
|
-
lines.push('```python');
|
|
2301
|
-
lines.push('import gitlab');
|
|
2302
|
-
lines.push('import time');
|
|
2303
|
-
lines.push('');
|
|
2304
|
-
lines.push('gl = gitlab.Gitlab("https://gitlab.com", private_token="YOUR_TOKEN")');
|
|
2305
|
-
lines.push('project = gl.projects.get("project-id")');
|
|
2306
|
-
lines.push('');
|
|
2307
|
-
lines.push('# Trigger agent');
|
|
2308
|
-
lines.push(`execution = project.duo_agents.get("${agentName}").trigger(`);
|
|
2309
|
-
lines.push(' input="Your task",');
|
|
2310
|
-
lines.push(' context={"issue_iid": 123}');
|
|
2311
|
-
lines.push(')');
|
|
2312
|
-
lines.push('');
|
|
2313
|
-
lines.push('# Wait for completion');
|
|
2314
|
-
lines.push('while execution.status == "running":');
|
|
2315
|
-
lines.push(' time.sleep(1)');
|
|
2316
|
-
lines.push(' execution.refresh()');
|
|
2317
|
-
lines.push('');
|
|
2318
|
-
lines.push('print(f"Result: {execution.result}")');
|
|
2319
|
-
lines.push('```');
|
|
2320
|
-
lines.push('');
|
|
2321
|
-
lines.push('## Rate Limits');
|
|
2322
|
-
lines.push('');
|
|
2323
|
-
lines.push('| Operation | Limit | Period |');
|
|
2324
|
-
lines.push('|-----------|-------|--------|');
|
|
2325
|
-
lines.push('| Agent Triggers | 100 | per hour |');
|
|
2326
|
-
lines.push('| API Requests | 600 | per minute |');
|
|
2327
|
-
lines.push('| Webhook Calls | 1000 | per hour |');
|
|
2328
|
-
lines.push('');
|
|
2329
|
-
lines.push('**Rate Limit Headers:**');
|
|
2330
|
-
lines.push('```');
|
|
2331
|
-
lines.push('RateLimit-Limit: 600');
|
|
2332
|
-
lines.push('RateLimit-Remaining: 599');
|
|
2333
|
-
lines.push('RateLimit-Reset: 1612137600');
|
|
2334
|
-
lines.push('```');
|
|
2335
|
-
lines.push('');
|
|
2336
|
-
lines.push('## Error Responses');
|
|
2337
|
-
lines.push('');
|
|
2338
|
-
lines.push('### 400 Bad Request');
|
|
2339
|
-
lines.push('```json');
|
|
2340
|
-
lines.push('{');
|
|
2341
|
-
lines.push(' "error": "Invalid input",');
|
|
2342
|
-
lines.push(' "message": "Input field is required"');
|
|
2343
|
-
lines.push('}');
|
|
2344
|
-
lines.push('```');
|
|
2345
|
-
lines.push('');
|
|
2346
|
-
lines.push('### 401 Unauthorized');
|
|
2347
|
-
lines.push('```json');
|
|
2348
|
-
lines.push('{');
|
|
2349
|
-
lines.push(' "error": "Unauthorized",');
|
|
2350
|
-
lines.push(' "message": "Invalid or expired token"');
|
|
2351
|
-
lines.push('}');
|
|
2352
|
-
lines.push('```');
|
|
2353
|
-
lines.push('');
|
|
2354
|
-
lines.push('### 404 Not Found');
|
|
2355
|
-
lines.push('```json');
|
|
2356
|
-
lines.push('{');
|
|
2357
|
-
lines.push(' "error": "Not found",');
|
|
2358
|
-
lines.push(' "message": "Agent not found"');
|
|
2359
|
-
lines.push('}');
|
|
2360
|
-
lines.push('```');
|
|
2361
|
-
lines.push('');
|
|
2362
|
-
lines.push('### 429 Too Many Requests');
|
|
2363
|
-
lines.push('```json');
|
|
2364
|
-
lines.push('{');
|
|
2365
|
-
lines.push(' "error": "Rate limit exceeded",');
|
|
2366
|
-
lines.push(' "message": "Too many requests, retry after 60 seconds",');
|
|
2367
|
-
lines.push(' "retry_after": 60');
|
|
2368
|
-
lines.push('}');
|
|
2369
|
-
lines.push('```');
|
|
2370
|
-
lines.push('');
|
|
2371
|
-
lines.push('### 500 Internal Server Error');
|
|
2372
|
-
lines.push('```json');
|
|
2373
|
-
lines.push('{');
|
|
2374
|
-
lines.push(' "error": "Internal error",');
|
|
2375
|
-
lines.push(' "message": "Agent execution failed",');
|
|
2376
|
-
lines.push(' "trace_id": "abc123"');
|
|
2377
|
-
lines.push('}');
|
|
2378
|
-
lines.push('```');
|
|
2379
|
-
lines.push('');
|
|
2380
|
-
lines.push('## Best Practices');
|
|
2381
|
-
lines.push('');
|
|
2382
|
-
lines.push("1. **Use polling with backoff** - Don't spam status checks");
|
|
2383
|
-
lines.push('2. **Handle rate limits** - Respect RateLimit headers');
|
|
2384
|
-
lines.push('3. **Include context** - Provide issue/MR context when available');
|
|
2385
|
-
lines.push('4. **Validate inputs** - Check input format before triggering');
|
|
2386
|
-
lines.push('5. **Log trace IDs** - Include trace_id in error reports');
|
|
2387
|
-
lines.push('');
|
|
2388
|
-
lines.push('## OpenAPI Specification');
|
|
2389
|
-
lines.push('');
|
|
2390
|
-
lines.push('Full OpenAPI spec available at:');
|
|
2391
|
-
lines.push('');
|
|
2392
|
-
lines.push('```bash');
|
|
2393
|
-
lines.push('# Download OpenAPI spec');
|
|
2394
|
-
lines.push('curl "https://gitlab.com/api/v4/duo/openapi.yaml" > openapi.yaml');
|
|
2395
|
-
lines.push('```');
|
|
2396
|
-
lines.push('');
|
|
2397
|
-
return lines.join('\n');
|
|
2398
|
-
}
|
|
2399
|
-
}
|
|
2400
|
-
//# sourceMappingURL=package-generator.js.map
|