@bluefly/openstandardagents 0.2.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1766 -212
- package/README.md +517 -168
- package/bin/ossa-generate +9 -16
- package/bin/quickstart +514 -0
- package/dist/adapters/anthropic/client.d.ts +144 -0
- package/dist/adapters/anthropic/client.d.ts.map +1 -0
- package/dist/adapters/anthropic/client.js +364 -0
- package/dist/adapters/anthropic/client.js.map +1 -0
- package/dist/adapters/anthropic/config.d.ts +149 -0
- package/dist/adapters/anthropic/config.d.ts.map +1 -0
- package/dist/adapters/anthropic/config.js +157 -0
- package/dist/adapters/anthropic/config.js.map +1 -0
- package/dist/adapters/anthropic/index.d.ts +40 -0
- package/dist/adapters/anthropic/index.d.ts.map +1 -0
- package/dist/adapters/anthropic/index.js +40 -0
- package/dist/adapters/anthropic/index.js.map +1 -0
- package/dist/adapters/anthropic/messages.d.ts +93 -0
- package/dist/adapters/anthropic/messages.d.ts.map +1 -0
- package/dist/adapters/anthropic/messages.js +318 -0
- package/dist/adapters/anthropic/messages.js.map +1 -0
- package/dist/adapters/anthropic/runtime.d.ts +136 -0
- package/dist/adapters/anthropic/runtime.d.ts.map +1 -0
- package/dist/adapters/anthropic/runtime.js +287 -0
- package/dist/adapters/anthropic/runtime.js.map +1 -0
- package/dist/adapters/anthropic/tools.d.ts +126 -0
- package/dist/adapters/anthropic/tools.d.ts.map +1 -0
- package/dist/adapters/anthropic/tools.js +329 -0
- package/dist/adapters/anthropic/tools.js.map +1 -0
- package/dist/adapters/crewai-adapter.d.ts +57 -0
- package/dist/adapters/crewai-adapter.d.ts.map +1 -0
- package/dist/adapters/crewai-adapter.js +164 -0
- package/dist/adapters/crewai-adapter.js.map +1 -0
- package/dist/adapters/drupal/index.d.ts +109 -0
- package/dist/adapters/drupal/index.d.ts.map +1 -0
- package/dist/adapters/drupal/index.js +292 -0
- package/dist/adapters/drupal/index.js.map +1 -0
- package/dist/adapters/langchain-adapter.d.ts +45 -0
- package/dist/adapters/langchain-adapter.d.ts.map +1 -0
- package/dist/adapters/langchain-adapter.js +133 -0
- package/dist/adapters/langchain-adapter.js.map +1 -0
- package/dist/adapters/langflow-adapter.d.ts +50 -0
- package/dist/adapters/langflow-adapter.d.ts.map +1 -0
- package/dist/adapters/langflow-adapter.js +232 -0
- package/dist/adapters/langflow-adapter.js.map +1 -0
- package/dist/adapters/openapi-adapter.d.ts +93 -0
- package/dist/adapters/openapi-adapter.d.ts.map +1 -0
- package/dist/adapters/openapi-adapter.js +311 -0
- package/dist/adapters/openapi-adapter.js.map +1 -0
- package/dist/adapters/symfony/index.d.ts +163 -0
- package/dist/adapters/symfony/index.d.ts.map +1 -0
- package/dist/adapters/symfony/index.js +271 -0
- package/dist/adapters/symfony/index.js.map +1 -0
- package/dist/cli/commands/agents-md.command.d.ts +7 -0
- package/dist/cli/commands/agents-md.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md.command.js +148 -0
- package/dist/cli/commands/agents-md.command.js.map +1 -0
- package/dist/cli/commands/contract.command.d.ts +10 -0
- package/dist/cli/commands/contract.command.d.ts.map +1 -0
- package/dist/cli/commands/contract.command.js +402 -0
- package/dist/cli/commands/contract.command.js.map +1 -0
- package/dist/cli/commands/dependencies.command.d.ts +10 -0
- package/dist/cli/commands/dependencies.command.d.ts.map +1 -0
- package/dist/cli/commands/dependencies.command.js +318 -0
- package/dist/cli/commands/dependencies.command.js.map +1 -0
- package/dist/cli/commands/deploy.command.d.ts +4 -0
- package/dist/cli/commands/deploy.command.d.ts.map +1 -0
- package/dist/cli/commands/deploy.command.js +172 -0
- package/dist/cli/commands/deploy.command.js.map +1 -0
- package/dist/cli/commands/deploy.d.ts +22 -0
- package/dist/cli/commands/deploy.d.ts.map +1 -0
- package/dist/cli/commands/deploy.js +319 -0
- package/dist/cli/commands/deploy.js.map +1 -0
- package/dist/cli/commands/export.command.d.ts +7 -0
- package/dist/cli/commands/export.command.d.ts.map +1 -0
- package/dist/cli/commands/export.command.js +56 -0
- package/dist/cli/commands/export.command.js.map +1 -0
- package/dist/cli/commands/generate.command.d.ts +7 -0
- package/dist/cli/commands/generate.command.d.ts.map +1 -0
- package/dist/cli/commands/generate.command.js +66 -0
- package/dist/cli/commands/generate.command.js.map +1 -0
- package/dist/cli/commands/github-sync.command.d.ts +3 -0
- package/dist/cli/commands/github-sync.command.d.ts.map +1 -0
- package/dist/cli/commands/github-sync.command.js +51 -0
- package/dist/cli/commands/github-sync.command.js.map +1 -0
- package/dist/cli/commands/gitlab-agent.command.d.ts +8 -0
- package/dist/cli/commands/gitlab-agent.command.d.ts.map +1 -0
- package/dist/cli/commands/gitlab-agent.command.js +201 -0
- package/dist/cli/commands/gitlab-agent.command.js.map +1 -0
- package/dist/cli/commands/import.command.d.ts +7 -0
- package/dist/cli/commands/import.command.d.ts.map +1 -0
- package/dist/cli/commands/import.command.js +36 -0
- package/dist/cli/commands/import.command.js.map +1 -0
- package/dist/cli/commands/info.command.d.ts +3 -0
- package/dist/cli/commands/info.command.d.ts.map +1 -0
- package/dist/cli/commands/info.command.js +45 -0
- package/dist/cli/commands/info.command.js.map +1 -0
- package/dist/cli/commands/init.command.d.ts +7 -0
- package/dist/cli/commands/init.command.d.ts.map +1 -0
- package/dist/cli/commands/init.command.js +139 -0
- package/dist/cli/commands/init.command.js.map +1 -0
- package/dist/cli/commands/install.command.d.ts +3 -0
- package/dist/cli/commands/install.command.d.ts.map +1 -0
- package/dist/cli/commands/install.command.js +44 -0
- package/dist/cli/commands/install.command.js.map +1 -0
- package/dist/cli/commands/migrate.command.d.ts +22 -0
- package/dist/cli/commands/migrate.command.d.ts.map +1 -0
- package/dist/cli/commands/migrate.command.js +157 -0
- package/dist/cli/commands/migrate.command.js.map +1 -0
- package/dist/cli/commands/publish.command.d.ts +3 -0
- package/dist/cli/commands/publish.command.d.ts.map +1 -0
- package/dist/cli/commands/publish.command.js +76 -0
- package/dist/cli/commands/publish.command.js.map +1 -0
- package/dist/cli/commands/quickstart.command.d.ts +10 -0
- package/dist/cli/commands/quickstart.command.d.ts.map +1 -0
- package/dist/cli/commands/quickstart.command.js +257 -0
- package/dist/cli/commands/quickstart.command.js.map +1 -0
- package/dist/cli/commands/release.command.d.ts +8 -0
- package/dist/cli/commands/release.command.d.ts.map +1 -0
- package/dist/cli/commands/release.command.js +641 -0
- package/dist/cli/commands/release.command.js.map +1 -0
- package/dist/cli/commands/run.command.d.ts +7 -0
- package/dist/cli/commands/run.command.d.ts.map +1 -0
- package/dist/cli/commands/run.command.js +125 -0
- package/dist/cli/commands/run.command.js.map +1 -0
- package/dist/cli/commands/schema.command.d.ts +7 -0
- package/dist/cli/commands/schema.command.d.ts.map +1 -0
- package/dist/cli/commands/schema.command.js +76 -0
- package/dist/cli/commands/schema.command.js.map +1 -0
- package/dist/cli/commands/search.command.d.ts +3 -0
- package/dist/cli/commands/search.command.d.ts.map +1 -0
- package/dist/cli/commands/search.command.js +45 -0
- package/dist/cli/commands/search.command.js.map +1 -0
- package/dist/cli/commands/setup.command.d.ts +11 -0
- package/dist/cli/commands/setup.command.d.ts.map +1 -0
- package/dist/cli/commands/setup.command.js +350 -0
- package/dist/cli/commands/setup.command.js.map +1 -0
- package/dist/cli/commands/sync.command.d.ts +3 -0
- package/dist/cli/commands/sync.command.d.ts.map +1 -0
- package/dist/cli/commands/sync.command.js +51 -0
- package/dist/cli/commands/sync.command.js.map +1 -0
- package/dist/cli/commands/test.command.d.ts +3 -0
- package/dist/cli/commands/test.command.d.ts.map +1 -0
- package/dist/cli/commands/test.command.js +91 -0
- package/dist/cli/commands/test.command.js.map +1 -0
- package/dist/cli/commands/validate.command.d.ts +7 -0
- package/dist/cli/commands/validate.command.d.ts.map +1 -0
- package/dist/cli/commands/validate.command.js +143 -0
- package/dist/cli/commands/validate.command.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +148 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/utils/error-formatter.d.ts +19 -0
- package/dist/cli/utils/error-formatter.d.ts.map +1 -0
- package/dist/cli/utils/error-formatter.js +330 -0
- package/dist/cli/utils/error-formatter.js.map +1 -0
- package/dist/deploy/base-driver.d.ts +39 -0
- package/dist/deploy/base-driver.d.ts.map +1 -0
- package/dist/deploy/base-driver.js +63 -0
- package/dist/deploy/base-driver.js.map +1 -0
- package/dist/deploy/docker-driver.d.ts +32 -0
- package/dist/deploy/docker-driver.d.ts.map +1 -0
- package/dist/deploy/docker-driver.js +246 -0
- package/dist/deploy/docker-driver.js.map +1 -0
- package/dist/deploy/index.d.ts +15 -0
- package/dist/deploy/index.d.ts.map +1 -0
- package/dist/deploy/index.js +28 -0
- package/dist/deploy/index.js.map +1 -0
- package/dist/deploy/k8s-driver.d.ts +40 -0
- package/dist/deploy/k8s-driver.d.ts.map +1 -0
- package/dist/deploy/k8s-driver.js +372 -0
- package/dist/deploy/k8s-driver.js.map +1 -0
- package/dist/deploy/local-driver.d.ts +20 -0
- package/dist/deploy/local-driver.d.ts.map +1 -0
- package/dist/deploy/local-driver.js +150 -0
- package/dist/deploy/local-driver.js.map +1 -0
- package/dist/deploy/types.d.ts +103 -0
- package/dist/deploy/types.d.ts.map +1 -0
- package/dist/deploy/types.js +6 -0
- package/dist/deploy/types.js.map +1 -0
- package/dist/di-container.d.ts.map +1 -1
- package/dist/di-container.js +14 -0
- package/dist/di-container.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/mesh/client.d.ts +144 -0
- package/dist/mesh/client.d.ts.map +1 -0
- package/dist/mesh/client.js +424 -0
- package/dist/mesh/client.js.map +1 -0
- package/dist/mesh/discovery.d.ts +176 -0
- package/dist/mesh/discovery.d.ts.map +1 -0
- package/dist/mesh/discovery.js +288 -0
- package/dist/mesh/discovery.js.map +1 -0
- package/dist/mesh/index.d.ts +89 -0
- package/dist/mesh/index.d.ts.map +1 -0
- package/dist/mesh/index.js +92 -0
- package/dist/mesh/index.js.map +1 -0
- package/dist/mesh/routing.d.ts +158 -0
- package/dist/mesh/routing.d.ts.map +1 -0
- package/dist/mesh/routing.js +360 -0
- package/dist/mesh/routing.js.map +1 -0
- package/dist/mesh/types.d.ts +439 -0
- package/dist/mesh/types.d.ts.map +1 -0
- package/dist/mesh/types.js +6 -0
- package/dist/mesh/types.js.map +1 -0
- package/dist/messaging/broker.d.ts +76 -0
- package/dist/messaging/broker.d.ts.map +1 -0
- package/dist/messaging/broker.js +145 -0
- package/dist/messaging/broker.js.map +1 -0
- package/dist/messaging/channels.d.ts +70 -0
- package/dist/messaging/channels.d.ts.map +1 -0
- package/dist/messaging/channels.js +183 -0
- package/dist/messaging/channels.js.map +1 -0
- package/dist/messaging/index.d.ts +10 -0
- package/dist/messaging/index.d.ts.map +1 -0
- package/dist/messaging/index.js +10 -0
- package/dist/messaging/index.js.map +1 -0
- package/dist/messaging/protocols/memory.d.ts +83 -0
- package/dist/messaging/protocols/memory.d.ts.map +1 -0
- package/dist/messaging/protocols/memory.js +293 -0
- package/dist/messaging/protocols/memory.js.map +1 -0
- package/dist/messaging/protocols/redis.d.ts +83 -0
- package/dist/messaging/protocols/redis.d.ts.map +1 -0
- package/dist/messaging/protocols/redis.js +223 -0
- package/dist/messaging/protocols/redis.js.map +1 -0
- package/dist/messaging/types.d.ts +180 -0
- package/dist/messaging/types.d.ts.map +1 -0
- package/dist/messaging/types.js +6 -0
- package/dist/messaging/types.js.map +1 -0
- package/dist/repositories/manifest.repository.d.ts +1 -1
- package/dist/repositories/manifest.repository.d.ts.map +1 -1
- package/dist/repositories/manifest.repository.js +7 -6
- package/dist/repositories/manifest.repository.js.map +1 -1
- package/dist/repositories/schema.repository.d.ts +4 -0
- package/dist/repositories/schema.repository.d.ts.map +1 -1
- package/dist/repositories/schema.repository.js +10 -3
- package/dist/repositories/schema.repository.js.map +1 -1
- package/dist/sdk/events/cloudevents-emitter.d.ts +56 -0
- package/dist/sdk/events/cloudevents-emitter.d.ts.map +1 -0
- package/dist/sdk/events/cloudevents-emitter.js +101 -0
- package/dist/sdk/events/cloudevents-emitter.js.map +1 -0
- package/dist/sdk/events/index.d.ts +2 -0
- package/dist/sdk/events/index.d.ts.map +1 -0
- package/dist/sdk/events/index.js +2 -0
- package/dist/sdk/events/index.js.map +1 -0
- package/dist/sdk/tracing/index.d.ts +2 -0
- package/dist/sdk/tracing/index.d.ts.map +1 -0
- package/dist/sdk/tracing/index.js +2 -0
- package/dist/sdk/tracing/index.js.map +1 -0
- package/dist/sdk/tracing/w3c-baggage.d.ts +40 -0
- package/dist/sdk/tracing/w3c-baggage.d.ts.map +1 -0
- package/dist/sdk/tracing/w3c-baggage.js +148 -0
- package/dist/sdk/tracing/w3c-baggage.js.map +1 -0
- package/dist/services/agent-services/qdrant.service.d.ts +60 -0
- package/dist/services/agent-services/qdrant.service.d.ts.map +1 -0
- package/dist/services/agent-services/qdrant.service.js +168 -0
- package/dist/services/agent-services/qdrant.service.js.map +1 -0
- package/dist/services/agents-md/agents-md.service.d.ts +61 -0
- package/dist/services/agents-md/agents-md.service.d.ts.map +1 -0
- package/dist/services/agents-md/agents-md.service.js +348 -0
- package/dist/services/agents-md/agents-md.service.js.map +1 -0
- package/dist/services/deployment/deployment.service.d.ts +19 -0
- package/dist/services/deployment/deployment.service.d.ts.map +1 -0
- package/dist/services/deployment/deployment.service.js +87 -0
- package/dist/services/deployment/deployment.service.js.map +1 -0
- package/dist/services/generation.service.d.ts +3 -1
- package/dist/services/generation.service.d.ts.map +1 -1
- package/dist/services/generation.service.js +34 -68
- package/dist/services/generation.service.js.map +1 -1
- package/dist/services/github-sync/github-client.js +2 -2
- package/dist/services/github-sync/github-client.js.map +1 -1
- package/dist/services/github-sync/schemas.d.ts +1 -1
- package/dist/services/github-sync/schemas.d.ts.map +1 -1
- package/dist/services/github-sync/schemas.js.map +1 -1
- package/dist/services/github-sync/sync.service.d.ts.map +1 -1
- package/dist/services/github-sync/sync.service.js +4 -2
- package/dist/services/github-sync/sync.service.js.map +1 -1
- package/dist/services/gitlab-agent.service.d.ts.map +1 -1
- package/dist/services/gitlab-agent.service.js +3 -1
- package/dist/services/gitlab-agent.service.js.map +1 -1
- package/dist/services/messaging/example.d.ts +6 -0
- package/dist/services/messaging/example.d.ts.map +1 -0
- package/dist/services/messaging/example.js +260 -0
- package/dist/services/messaging/example.js.map +1 -0
- package/dist/services/messaging/index.d.ts +81 -0
- package/dist/services/messaging/index.d.ts.map +1 -0
- package/dist/services/messaging/index.js +85 -0
- package/dist/services/messaging/index.js.map +1 -0
- package/dist/services/messaging/memory-broker.d.ts +103 -0
- package/dist/services/messaging/memory-broker.d.ts.map +1 -0
- package/dist/services/messaging/memory-broker.js +435 -0
- package/dist/services/messaging/memory-broker.js.map +1 -0
- package/dist/services/messaging/messaging.service.d.ts +150 -0
- package/dist/services/messaging/messaging.service.d.ts.map +1 -0
- package/dist/services/messaging/messaging.service.js +456 -0
- package/dist/services/messaging/messaging.service.js.map +1 -0
- package/dist/services/messaging/messaging.types.d.ts +319 -0
- package/dist/services/messaging/messaging.types.d.ts.map +1 -0
- package/dist/services/messaging/messaging.types.js +68 -0
- package/dist/services/messaging/messaging.types.js.map +1 -0
- package/dist/services/migration.service.d.ts +45 -4
- package/dist/services/migration.service.d.ts.map +1 -1
- package/dist/services/migration.service.js +248 -31
- package/dist/services/migration.service.js.map +1 -1
- package/dist/services/registry/registry.service.d.ts +39 -0
- package/dist/services/registry/registry.service.d.ts.map +1 -0
- package/dist/services/registry/registry.service.js +169 -0
- package/dist/services/registry/registry.service.js.map +1 -0
- package/dist/services/release-automation/base-crud.service.d.ts.map +1 -1
- package/dist/services/release-automation/base-crud.service.js.map +1 -1
- package/dist/services/release-automation/merge-request.service.d.ts.map +1 -1
- package/dist/services/release-automation/merge-request.service.js +4 -4
- package/dist/services/release-automation/merge-request.service.js.map +1 -1
- package/dist/services/release-automation/milestone.service.d.ts.map +1 -1
- package/dist/services/release-automation/milestone.service.js.map +1 -1
- package/dist/services/release-automation/release.service.d.ts +4 -4
- package/dist/services/release-automation/release.service.d.ts.map +1 -1
- package/dist/services/release-automation/release.service.js +1 -3
- package/dist/services/release-automation/release.service.js.map +1 -1
- package/dist/services/release-automation/schemas/release.schema.d.ts +3 -3
- package/dist/services/release-automation/schemas/release.schema.d.ts.map +1 -1
- package/dist/services/release-automation/schemas/release.schema.js +11 -23
- package/dist/services/release-automation/schemas/release.schema.js.map +1 -1
- package/dist/services/release-automation/tag.service.d.ts.map +1 -1
- package/dist/services/release-automation/tag.service.js +4 -1
- package/dist/services/release-automation/tag.service.js.map +1 -1
- package/dist/services/release-automation/webhook.service.d.ts +2 -2
- package/dist/services/release-automation/webhook.service.d.ts.map +1 -1
- package/dist/services/release-automation/webhook.service.js +27 -14
- package/dist/services/release-automation/webhook.service.js.map +1 -1
- package/dist/services/runtime/anthropic.adapter.d.ts +145 -0
- package/dist/services/runtime/anthropic.adapter.d.ts.map +1 -0
- package/dist/services/runtime/anthropic.adapter.js +525 -0
- package/dist/services/runtime/anthropic.adapter.js.map +1 -0
- package/dist/services/runtime/azure.adapter.d.ts +389 -0
- package/dist/services/runtime/azure.adapter.d.ts.map +1 -0
- package/dist/services/runtime/azure.adapter.js +515 -0
- package/dist/services/runtime/azure.adapter.js.map +1 -0
- package/dist/services/runtime/bedrock.adapter.d.ts +170 -0
- package/dist/services/runtime/bedrock.adapter.d.ts.map +1 -0
- package/dist/services/runtime/bedrock.adapter.js +667 -0
- package/dist/services/runtime/bedrock.adapter.js.map +1 -0
- package/dist/services/runtime/claude/capability-mapper.d.ts.map +1 -1
- package/dist/services/runtime/claude/capability-mapper.js.map +1 -1
- package/dist/services/runtime/claude/claude-adapter.d.ts.map +1 -1
- package/dist/services/runtime/claude/claude-adapter.js +3 -7
- package/dist/services/runtime/claude/claude-adapter.js.map +1 -1
- package/dist/services/runtime/claude/manifest-parser.d.ts.map +1 -1
- package/dist/services/runtime/claude/manifest-parser.js +2 -2
- package/dist/services/runtime/claude/manifest-parser.js.map +1 -1
- package/dist/services/runtime/gemini.adapter.d.ts +190 -0
- package/dist/services/runtime/gemini.adapter.d.ts.map +1 -0
- package/dist/services/runtime/gemini.adapter.js +603 -0
- package/dist/services/runtime/gemini.adapter.js.map +1 -0
- package/dist/services/runtime/mistral.adapter.d.ts +201 -0
- package/dist/services/runtime/mistral.adapter.d.ts.map +1 -0
- package/dist/services/runtime/mistral.adapter.js +654 -0
- package/dist/services/runtime/mistral.adapter.js.map +1 -0
- package/dist/services/runtime/ollama.adapter.d.ts +187 -0
- package/dist/services/runtime/ollama.adapter.d.ts.map +1 -0
- package/dist/services/runtime/ollama.adapter.js +525 -0
- package/dist/services/runtime/ollama.adapter.js.map +1 -0
- package/dist/services/runtime/openai.adapter.d.ts.map +1 -1
- package/dist/services/runtime/openai.adapter.js.map +1 -1
- package/dist/services/test-runner/test-runner.service.d.ts +21 -0
- package/dist/services/test-runner/test-runner.service.d.ts.map +1 -0
- package/dist/services/test-runner/test-runner.service.js +91 -0
- package/dist/services/test-runner/test-runner.service.js.map +1 -0
- package/dist/services/validation.service.d.ts.map +1 -1
- package/dist/services/validation.service.js +38 -13
- package/dist/services/validation.service.js.map +1 -1
- package/dist/services/validators/anthropic.validator.d.ts.map +1 -1
- package/dist/services/validators/anthropic.validator.js +2 -5
- package/dist/services/validators/anthropic.validator.js.map +1 -1
- package/dist/services/validators/autogen.validator.d.ts.map +1 -1
- package/dist/services/validators/autogen.validator.js +1 -2
- package/dist/services/validators/autogen.validator.js.map +1 -1
- package/dist/services/validators/contract.validator.d.ts +90 -0
- package/dist/services/validators/contract.validator.d.ts.map +1 -0
- package/dist/services/validators/contract.validator.js +508 -0
- package/dist/services/validators/contract.validator.js.map +1 -0
- package/dist/services/validators/crewai.validator.d.ts.map +1 -1
- package/dist/services/validators/crewai.validator.js.map +1 -1
- package/dist/services/validators/cursor.validator.d.ts.map +1 -1
- package/dist/services/validators/cursor.validator.js.map +1 -1
- package/dist/services/validators/dependencies.validator.d.ts +104 -0
- package/dist/services/validators/dependencies.validator.d.ts.map +1 -0
- package/dist/services/validators/dependencies.validator.js +386 -0
- package/dist/services/validators/dependencies.validator.js.map +1 -0
- package/dist/services/validators/index.d.ts +1 -0
- package/dist/services/validators/index.d.ts.map +1 -1
- package/dist/services/validators/index.js +1 -0
- package/dist/services/validators/index.js.map +1 -1
- package/dist/services/validators/langchain.validator.d.ts.map +1 -1
- package/dist/services/validators/langchain.validator.js +4 -13
- package/dist/services/validators/langchain.validator.js.map +1 -1
- package/dist/services/validators/langflow.validator.d.ts.map +1 -1
- package/dist/services/validators/langflow.validator.js +1 -2
- package/dist/services/validators/langflow.validator.js.map +1 -1
- package/dist/services/validators/langgraph.validator.d.ts.map +1 -1
- package/dist/services/validators/langgraph.validator.js +1 -2
- package/dist/services/validators/langgraph.validator.js.map +1 -1
- package/dist/services/validators/llamaindex.validator.d.ts.map +1 -1
- package/dist/services/validators/llamaindex.validator.js +4 -13
- package/dist/services/validators/llamaindex.validator.js.map +1 -1
- package/dist/services/validators/messaging.validator.d.ts +77 -0
- package/dist/services/validators/messaging.validator.d.ts.map +1 -0
- package/dist/services/validators/messaging.validator.js +296 -0
- package/dist/services/validators/messaging.validator.js.map +1 -0
- package/dist/services/validators/openai.validator.d.ts.map +1 -1
- package/dist/services/validators/openai.validator.js +1 -6
- package/dist/services/validators/openai.validator.js.map +1 -1
- package/dist/services/validators/vercel-ai.validator.d.ts.map +1 -1
- package/dist/services/validators/vercel-ai.validator.js +1 -3
- package/dist/services/validators/vercel-ai.validator.js.map +1 -1
- package/dist/spec/extensions/a2a-messaging.md +471 -0
- package/dist/spec/extensions/manifest-extensions.md +550 -0
- package/dist/spec/registry/README.md +472 -0
- package/dist/spec/registry/openapi.yaml +1124 -0
- package/dist/spec/registry/registry-api.schema.json +731 -0
- package/dist/spec/registry/registry-spec.md +2239 -0
- package/dist/spec/schema/agent-test.schema.json +117 -0
- package/dist/spec/schema/components/activity-stream.schema.json +94 -0
- package/dist/spec/schema/components/constraints.schema.json +84 -0
- package/dist/spec/schema/components/dependencies.schema.json +147 -0
- package/dist/spec/schema/components/encryption.schema.json +115 -0
- package/dist/spec/schema/components/identity.schema.json +48 -0
- package/dist/spec/schema/components/index.json +37 -0
- package/dist/spec/schema/components/llm-config.schema.json +67 -0
- package/dist/spec/schema/components/metadata.schema.json +37 -0
- package/dist/spec/schema/components/tool.schema.json +64 -0
- package/dist/spec/schema/extensions/a2a.extension.schema.json +127 -0
- package/dist/spec/v0.2.8/ossa-0.2.8.schema.json +95 -1
- package/dist/spec/v0.3.0/UNIFIED-SCHEMA.md +120 -0
- package/dist/spec/v0.3.0/adapters/drupal.md +541 -0
- package/dist/spec/v0.3.0/adapters/symfony.md +659 -0
- package/dist/spec/v0.3.0/agent-test.schema.json +75 -0
- package/dist/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +110 -0
- package/dist/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/dist/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/dist/spec/v0.3.0/extensions/drupal.md +417 -0
- package/dist/spec/v0.3.0/ossa-0.3.0.schema.json +2787 -0
- package/dist/spec/v0.3.0/protocols/sse.md +494 -0
- package/dist/spec/v0.3.0/protocols/webrtc.md +600 -0
- package/dist/spec/v0.3.0/protocols/websocket.md +362 -0
- package/dist/spec/v0.3.0/schemas/agent-unified.yaml +165 -0
- package/dist/spec/v0.3.0/schemas/capabilities.yaml +102 -0
- package/dist/spec/v0.3.0/schemas/functions.yaml +75 -0
- package/dist/spec/v0.3.0/schemas/messaging/channel.schema.json +245 -0
- package/dist/spec/v0.3.0/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/dist/spec/v0.3.0/schemas/messaging/message.schema.json +205 -0
- package/dist/spec/v0.3.0/schemas/messaging/subscription.schema.json +214 -0
- package/dist/spec/v0.3.0/schemas/runtime.yaml +102 -0
- package/dist/spec/v0.3.0/schemas/taxonomy.yaml +533 -0
- package/dist/spec/v0.3.0/schemas/unified-llm.yaml +91 -0
- package/dist/spec/v0.3.0/taxonomy.yaml +256 -0
- package/dist/testing/fixtures.d.ts +61 -0
- package/dist/testing/fixtures.d.ts.map +1 -0
- package/dist/testing/fixtures.js +291 -0
- package/dist/testing/fixtures.js.map +1 -0
- package/dist/testing/index.d.ts +10 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +10 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/reporters/base.d.ts +24 -0
- package/dist/testing/reporters/base.d.ts.map +1 -0
- package/dist/testing/reporters/base.js +5 -0
- package/dist/testing/reporters/base.js.map +1 -0
- package/dist/testing/reporters/console.d.ts +18 -0
- package/dist/testing/reporters/console.d.ts.map +1 -0
- package/dist/testing/reporters/console.js +76 -0
- package/dist/testing/reporters/console.js.map +1 -0
- package/dist/testing/reporters/json.d.ts +29 -0
- package/dist/testing/reporters/json.d.ts.map +1 -0
- package/dist/testing/reporters/json.js +40 -0
- package/dist/testing/reporters/json.js.map +1 -0
- package/dist/testing/runner.d.ts +96 -0
- package/dist/testing/runner.d.ts.map +1 -0
- package/dist/testing/runner.js +401 -0
- package/dist/testing/runner.js.map +1 -0
- package/dist/transports/index.d.ts +8 -0
- package/dist/transports/index.d.ts.map +1 -0
- package/dist/transports/index.js +11 -0
- package/dist/transports/index.js.map +1 -0
- package/dist/transports/sse.d.ts +166 -0
- package/dist/transports/sse.d.ts.map +1 -0
- package/dist/transports/sse.js +309 -0
- package/dist/transports/sse.js.map +1 -0
- package/dist/transports/webrtc.d.ts +183 -0
- package/dist/transports/webrtc.d.ts.map +1 -0
- package/dist/transports/webrtc.js +478 -0
- package/dist/transports/webrtc.js.map +1 -0
- package/dist/transports/websocket.d.ts +204 -0
- package/dist/transports/websocket.d.ts.map +1 -0
- package/dist/transports/websocket.js +397 -0
- package/dist/transports/websocket.js.map +1 -0
- package/dist/types/generated/ossa-0.3.0.types.d.ts +316 -0
- package/dist/types/generated/ossa-0.3.0.types.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.0.types.js +8 -0
- package/dist/types/generated/ossa-0.3.0.types.js.map +1 -0
- package/dist/types/generated/ossa-0.3.0.zod.d.ts +17 -0
- package/dist/types/generated/ossa-0.3.0.zod.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.0.zod.js +3 -0
- package/dist/types/generated/ossa-0.3.0.zod.js.map +1 -0
- package/dist/types/index.d.ts +124 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +8 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/messaging.d.ts +116 -0
- package/dist/types/messaging.d.ts.map +1 -0
- package/dist/types/messaging.js +6 -0
- package/dist/types/messaging.js.map +1 -0
- package/dist/types/policy.d.ts.map +1 -1
- package/dist/types/policy.js.map +1 -1
- package/dist/types/task.d.ts +222 -0
- package/dist/types/task.d.ts.map +1 -0
- package/dist/types/task.js +40 -0
- package/dist/types/task.js.map +1 -0
- package/dist/types/workflow.d.ts +283 -0
- package/dist/types/workflow.d.ts.map +1 -0
- package/dist/types/workflow.js +51 -0
- package/dist/types/workflow.js.map +1 -0
- package/dist/utils/path-validator.d.ts +24 -0
- package/dist/utils/path-validator.d.ts.map +1 -0
- package/dist/utils/path-validator.js +70 -0
- package/dist/utils/path-validator.js.map +1 -0
- package/dist/utils/version.d.ts +17 -8
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +84 -30
- package/dist/utils/version.js.map +1 -1
- package/dist/utils/yaml-parser.d.ts +23 -0
- package/dist/utils/yaml-parser.d.ts.map +1 -0
- package/dist/utils/yaml-parser.js +34 -0
- package/dist/utils/yaml-parser.js.map +1 -0
- package/examples/adapters/drupal-eca-mapping.yaml +153 -0
- package/examples/adapters/drupal-eca-task.yaml +48 -0
- package/examples/adapters/drupal-flowdrop-mapping.yaml +463 -0
- package/examples/adapters/drupal-maestro-mapping.yaml +369 -0
- package/examples/adapters/mistral-README.md +367 -0
- package/examples/adapters/mistral-agent.yaml +147 -0
- package/examples/adapters/symfony-messenger-task.yaml +135 -0
- package/examples/adapters/symfony-messenger-workflow.yaml +352 -0
- package/examples/adk-integration/code-review-workflow.yml +1 -1
- package/examples/adk-integration/customer-support.yml +1 -1
- package/examples/adk-integration/data-pipeline.yml +1 -1
- package/examples/advanced/reasoning-agent.yaml +1 -1
- package/examples/advanced/workflows/hybrid-model-strategy.yaml +1 -18
- package/examples/agent-manifests/critics/critic-agent.yaml +1 -1
- package/examples/agent-manifests/governors/governor-agent.yaml +1 -1
- package/examples/agent-manifests/integrators/integrator-agent.yaml +1 -1
- package/examples/agent-manifests/judges/judge-agent.yaml +1 -1
- package/examples/agent-manifests/monitors/monitor-agent.yaml +1 -1
- package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +1 -1
- package/examples/agent-manifests/sample-compliant-agent.yaml +1 -1
- package/examples/agent-manifests/workers/worker-agent.yaml +1 -1
- package/examples/agent-mesh/README.ts +311 -0
- package/examples/agent-mesh/basic-usage.ts +461 -0
- package/examples/agents/architecture-healer-enterprise.yaml +143 -0
- package/examples/agents/dependency-healer-npm.yaml +81 -0
- package/examples/agents/spec-healer-openapi.yaml +59 -0
- package/examples/agents/wiki-healer-production.yaml +131 -0
- package/examples/agents-md/code-agent.ossa.json +1 -1
- package/examples/agents-md/monorepo-agent.ossa.yaml +1 -1
- package/examples/anthropic/claude-assistant.ossa.json +1 -1
- package/examples/anthropic-adapter-example.ts +374 -0
- package/examples/anthropic-simple.ts +70 -0
- package/examples/autogen/multi-agent.ossa.json +1 -1
- package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +37 -0
- package/examples/bridges/.gitlab-ci.yml +293 -0
- package/examples/bridges/k8s/deployment.yaml +14 -14
- package/examples/ci/multi-project-release-example.yml +401 -0
- package/examples/claude-code/code-reviewer.ossa.yaml +1 -1
- package/examples/claude-code/ossa-validator.ossa.yaml +1 -1
- package/examples/common_npm/agent-router.ossa.yaml +1 -1
- package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +1 -1
- package/examples/contracts/data-consumer.ossa.yaml +171 -0
- package/examples/contracts/data-producer-v2.ossa.yaml +227 -0
- package/examples/contracts/data-producer.ossa.yaml +217 -0
- package/examples/coordinator-agent/README.md +180 -0
- package/examples/coordinator-agent/index.ts +440 -0
- package/examples/coordinator-agent/manifest.yaml +41 -0
- package/examples/crewai/research-team.ossa.json +1 -1
- package/examples/cursor/code-review-agent.ossa.json +1 -1
- package/examples/drupal/ai_agents_ossa-module/.agents/example-agent/agent.ossa.yaml +37 -0
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
- package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +1 -1
- package/examples/extensions/agents-md-advanced.yml +177 -0
- package/examples/extensions/agents-md-basic.yml +74 -0
- package/examples/extensions/agents-md-sync.yml +96 -0
- package/examples/extensions/agents-md-v1.yml +1 -1
- package/examples/extensions/drupal-v1.yml +1 -1
- package/examples/extensions/encryption-multi-provider.yaml +120 -0
- package/examples/extensions/kagent-v1.yml +2 -2
- package/examples/extensions/knowledge-sources.yaml +59 -0
- package/examples/extensions/mcp-full-featured.yaml +150 -0
- package/examples/getting-started/01-minimal-agent.ossa.yaml +376 -0
- package/examples/getting-started/02-agent-with-tools.ossa.yaml +866 -0
- package/examples/getting-started/03-agent-with-safety.ossa.yaml +868 -0
- package/examples/getting-started/04-agent-with-messaging.ossa.yaml +829 -0
- package/examples/getting-started/05-workflow-composition.ossa.yaml +209 -0
- package/examples/getting-started/README.md +69 -0
- package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
- package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +4 -4
- package/examples/kagent/compliance-validator.ossa.yaml +1 -1
- package/examples/kagent/cost-optimizer.ossa.yaml +1 -1
- package/examples/kagent/documentation-agent.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter.ossa.yaml +1 -1
- package/examples/kagent/security-scanner.ossa.yaml +1 -1
- package/examples/langchain/chain-agent.ossa.json +1 -1
- package/examples/langflow/workflow-agent.ossa.json +1 -1
- package/examples/langgraph/state-machine-agent.ossa.json +1 -1
- package/examples/llamaindex/rag-agent.ossa.json +1 -1
- package/examples/messaging/dependency-healer.ossa.yaml +354 -0
- package/examples/messaging/incident-responder.ossa.yaml +477 -0
- package/examples/messaging/routing-rules.ossa.yaml +307 -0
- package/examples/messaging/security-scanner.ossa.yaml +328 -0
- package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
- package/examples/mistral-adapter-example.ts +435 -0
- package/examples/mistral-simple.ts +56 -0
- package/examples/multi-agent/conditional-router.ossa.yaml +1 -1
- package/examples/multi-agent/parallel-execution.ossa.yaml +1 -1
- package/examples/multi-agent/sequential-pipeline.ossa.yaml +1 -1
- package/examples/observability/activity-stream-full.yaml +133 -0
- package/examples/observability/gitlab-ci-template.yml +304 -0
- package/examples/openai/basic-agent.ossa.yaml +1 -1
- package/examples/openai/multi-tool-agent.ossa.json +1 -1
- package/examples/openai/swarm-agent.ossa.json +1 -1
- package/examples/production/document-analyzer-openai.yml +1 -1
- package/examples/quickstart/support-agent.ossa.yaml +1 -1
- package/examples/rag-agent/README.md +136 -0
- package/examples/rag-agent/index.ts +272 -0
- package/examples/rag-agent/manifest.yaml +45 -0
- package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +163 -0
- package/examples/real-world/rag-documentation-assistant.ossa.yaml +235 -0
- package/examples/reference-implementations/README.md +321 -0
- package/examples/reference-implementations/curl-scripts/01-search-agents.sh +72 -0
- package/examples/reference-implementations/curl-scripts/02-get-agent-details.sh +74 -0
- package/examples/reference-implementations/curl-scripts/03-publish-agent.sh +136 -0
- package/examples/reference-implementations/curl-scripts/04-a2a-messaging.sh +178 -0
- package/examples/reference-implementations/curl-scripts/05-discovery.sh +98 -0
- package/examples/reference-implementations/curl-scripts/README.md +277 -0
- package/examples/reference-implementations/python-client/README.md +282 -0
- package/examples/reference-implementations/python-client/examples/basic_usage.py +84 -0
- package/examples/reference-implementations/python-client/examples/publish_agent.py +137 -0
- package/examples/reference-implementations/python-client/ossa_client/__init__.py +80 -0
- package/examples/reference-implementations/python-client/ossa_client/agents.py +240 -0
- package/examples/reference-implementations/python-client/ossa_client/client.py +164 -0
- package/examples/reference-implementations/python-client/ossa_client/discovery.py +153 -0
- package/examples/reference-implementations/python-client/ossa_client/messaging.py +227 -0
- package/examples/reference-implementations/python-client/requirements.txt +2 -0
- package/examples/reference-implementations/python-client/setup.py +40 -0
- package/examples/reference-implementations/typescript-client/README.md +227 -0
- package/examples/reference-implementations/typescript-client/examples/basic-usage.ts +86 -0
- package/examples/reference-implementations/typescript-client/examples/messaging.ts +185 -0
- package/examples/reference-implementations/typescript-client/examples/publish-agent.ts +138 -0
- package/examples/reference-implementations/typescript-client/package.json +40 -0
- package/examples/reference-implementations/typescript-client/src/agents.ts +285 -0
- package/examples/reference-implementations/typescript-client/src/client.ts +161 -0
- package/examples/reference-implementations/typescript-client/src/discovery.ts +244 -0
- package/examples/reference-implementations/typescript-client/src/index.ts +67 -0
- package/examples/reference-implementations/typescript-client/src/messaging.ts +385 -0
- package/examples/reference-implementations/typescript-client/tsconfig.json +25 -0
- package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +465 -0
- package/examples/schema/reusable-components.yaml +95 -0
- package/examples/tasks/batch-email-sender.yaml +105 -0
- package/examples/tasks/data-transform.yaml +82 -0
- package/examples/tasks/publish-content.yaml +86 -0
- package/examples/templates/ossa-compliance.yaml +1 -1
- package/examples/unified/security-scanner.ossa.yaml +311 -0
- package/examples/vercel/edge-agent.ossa.json +1 -1
- package/examples/workflow-agent/README.md +175 -0
- package/examples/workflow-agent/index.ts +408 -0
- package/examples/workflow-agent/manifest.yaml +41 -0
- package/examples/workflows/batch-email-campaign.yaml +140 -0
- package/examples/workflows/content-review-publish.yaml +156 -0
- package/examples/workflows/simple-etl.yaml +151 -0
- package/openapi/agent-communication.yaml +1113 -0
- package/openapi/agent-crud.yaml +1124 -0
- package/openapi/agent-discovery.yaml +677 -0
- package/openapi/agent-identity.yaml +620 -0
- package/openapi/protocols/sse-streams.yaml +479 -0
- package/openapi/protocols/websocket-events.yaml +427 -0
- package/openapi/schemas/discovery.json +488 -0
- package/package.json +91 -33
- package/schemas/agent.json +523 -0
- package/schemas/communication.json +897 -0
- package/schemas/identity.json +482 -0
- package/spec/extensions/a2a-messaging.md +471 -0
- package/spec/extensions/manifest-extensions.md +550 -0
- package/spec/registry/README.md +472 -0
- package/spec/registry/openapi.yaml +1124 -0
- package/spec/registry/registry-api.schema.json +731 -0
- package/spec/registry/registry-spec.md +2239 -0
- package/spec/schema/agent-test.schema.json +117 -0
- package/spec/schema/components/activity-stream.schema.json +94 -0
- package/spec/schema/components/constraints.schema.json +84 -0
- package/spec/schema/components/dependencies.schema.json +147 -0
- package/spec/schema/components/encryption.schema.json +115 -0
- package/spec/schema/components/identity.schema.json +48 -0
- package/spec/schema/components/index.json +37 -0
- package/spec/schema/components/llm-config.schema.json +67 -0
- package/spec/schema/components/metadata.schema.json +37 -0
- package/spec/schema/components/tool.schema.json +64 -0
- package/spec/schema/extensions/a2a.extension.schema.json +127 -0
- package/spec/v0.2.8/ossa-0.2.8.schema.json +95 -1
- package/spec/v0.3.0/UNIFIED-SCHEMA.md +120 -0
- package/spec/v0.3.0/adapters/drupal.md +541 -0
- package/spec/v0.3.0/adapters/symfony.md +659 -0
- package/spec/v0.3.0/agent-test.schema.json +75 -0
- package/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +110 -0
- package/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/spec/v0.3.0/extensions/drupal.md +417 -0
- package/spec/v0.3.0/ossa-0.3.0.schema.json +2787 -0
- package/spec/v0.3.0/protocols/sse.md +494 -0
- package/spec/v0.3.0/protocols/webrtc.md +600 -0
- package/spec/v0.3.0/protocols/websocket.md +362 -0
- package/spec/v0.3.0/schemas/agent-unified.yaml +165 -0
- package/spec/v0.3.0/schemas/capabilities.yaml +102 -0
- package/spec/v0.3.0/schemas/functions.yaml +75 -0
- package/spec/v0.3.0/schemas/messaging/channel.schema.json +245 -0
- package/spec/v0.3.0/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/spec/v0.3.0/schemas/messaging/message.schema.json +205 -0
- package/spec/v0.3.0/schemas/messaging/subscription.schema.json +214 -0
- package/spec/v0.3.0/schemas/runtime.yaml +102 -0
- package/spec/v0.3.0/schemas/taxonomy.yaml +533 -0
- package/spec/v0.3.0/schemas/unified-llm.yaml +91 -0
- package/spec/v0.3.0/taxonomy.yaml +256 -0
- package/.cursorrules +0 -84
- package/.devfile.yaml +0 -87
- package/.env.example +0 -63
- package/.eslintrc.cjs +0 -43
- package/.github/AGENTS.md +0 -245
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -63
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -40
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -39
- package/.github/agents/github-issue-triage.ossa.yaml +0 -99
- package/.github/agents/github-pr-triage.ossa.yaml +0 -137
- package/.github/dependabot.yml +0 -58
- package/.github/workflows/ci.yml +0 -154
- package/.github/workflows/codeql.yml +0 -41
- package/.github/workflows/dependabot-auto-merge.yml +0 -28
- package/.github/workflows/dependabot-comment.yml +0 -34
- package/.github/workflows/issue-sync-to-gitlab.yml +0 -138
- package/.github/workflows/pr-triage-to-gitlab.yml +0 -164
- package/.github/workflows/release.yml +0 -103
- package/.husky/pre-commit +0 -5
- package/.kiro/config.json +0 -21
- package/.kiro/settings/mcp.json +0 -61
- package/.kiro/specs/scripts-migration-api-first/design.md +0 -883
- package/.kiro/specs/scripts-migration-api-first/requirements.md +0 -165
- package/.kiro/specs/scripts-migration-api-first/tasks.md +0 -539
- package/.kiro/specs/website-brand-identity/design.md +0 -1060
- package/.kiro/specs/website-brand-identity/requirements.md +0 -287
- package/.kiro/specs/website-brand-identity/tasks.md +0 -981
- package/.prettierignore +0 -7
- package/.prettierrc.json +0 -10
- package/.redocly.yaml +0 -9
- package/.releaserc.json +0 -85
- package/.version.json +0 -6
- package/.wiki-config.json +0 -24
- package/CODEOWNERS +0 -75
- package/CONTRIBUTING.md +0 -366
- package/bin/validate-ossa-0.2.2.ts +0 -244
- package/bin/validate-ossa-0.2.4.ts +0 -244
- package/docs/brand-guide/01-brand-overview.md +0 -37
- package/docs/brand-guide/02-logo-usage.md +0 -43
- package/docs/brand-guide/03-color-palette.md +0 -70
- package/docs/brand-guide/04-typography.md +0 -82
- package/docs/brand-guide/05-voice-and-tone.md +0 -108
- package/docs/brand-guide/06-visual-elements.md +0 -137
- package/docs/brand-guide/07-application-examples.md +0 -153
- package/docs/brand-guide/OssaLogo/OssA_Logo.svg +0 -21
- package/docs/brand-guide/OssaLogo/brand.af +0 -0
- package/docs/brand-guide/README.md +0 -107
- package/docs/comparison.md +0 -315
- package/docs/operations/automation-roadmap.md +0 -245
- package/docs/operations/github-sync-strategy.md +0 -357
- package/docs/specs/policy-dsl.md +0 -925
- package/eslint-report.json +0 -1
- package/gl-code-quality-report.json +0 -62
- package/infrastructure/docker-compose.yml +0 -33
- package/infrastructure/gitlab-agent/rbac.yaml +0 -126
- package/infrastructure/gitlab-agent/values.yaml +0 -150
- package/infrastructure/k8s/monitoring/00-namespace.yaml +0 -7
- package/infrastructure/k8s/monitoring/01-prometheus.yaml +0 -142
- package/infrastructure/k8s/monitoring/02-grafana.yaml +0 -63
- package/infrastructure/k8s/monitoring/03-lightweight.yaml +0 -121
- package/infrastructure/k8s/monitoring/README.md +0 -73
- package/infrastructure/k8s/monitoring/deploy.sh +0 -38
- package/junit.xml +0 -1
- package/llms-ctx-full.txt +0 -39
- package/llms-ctx.txt +0 -39
- package/llms.txt +0 -47
- package/release.config.js +0 -79
- package/scripts/README.md +0 -128
- package/scripts/auto-rebase-mrs.ts +0 -106
- package/scripts/batch-dependabot.sh +0 -57
- package/scripts/bump-version.ts +0 -57
- package/scripts/compliance-audit.ts +0 -796
- package/scripts/configure-gitlab-branch-protection.ts +0 -95
- package/scripts/create-issue-helper.ts +0 -238
- package/scripts/create-milestone-issue.ts +0 -73
- package/scripts/enhanced-version-manager.ts +0 -257
- package/scripts/eslint-to-codequality.cjs +0 -34
- package/scripts/fix-schema-formats.js +0 -82
- package/scripts/gen-types.ts +0 -51
- package/scripts/gen-zod.ts +0 -51
- package/scripts/generate-agents-catalog.ts +0 -78
- package/scripts/generate-api-docs.ts +0 -219
- package/scripts/generate-cli-docs.ts +0 -410
- package/scripts/generate-config-docs.ts +0 -109
- package/scripts/generate-errors-docs.ts +0 -76
- package/scripts/generate-examples-docs.ts +0 -100
- package/scripts/generate-llms-ctx.sh +0 -17
- package/scripts/generate-schema-docs.ts +0 -317
- package/scripts/generate-types-docs.ts +0 -48
- package/scripts/lowercase-docs.ts +0 -43
- package/scripts/manage-milestone-mrs.ts +0 -279
- package/scripts/process-doc-templates.ts +0 -37
- package/scripts/rebase-all-mrs.sh +0 -75
- package/scripts/schemas/package.schema.ts +0 -75
- package/scripts/setup-branch-protection.sh +0 -33
- package/scripts/sync-github-pr.sh +0 -48
- package/scripts/sync-version.js +0 -32
- package/scripts/sync-version.ts +0 -39
- package/scripts/sync-versions.ts +0 -488
- package/scripts/sync-wiki.sh +0 -50
- package/scripts/validate-all.js +0 -127
- package/scripts/validate-schema.ts +0 -50
- package/test-results/junit.xml +0 -337
- package/test-results.xml +0 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RAG Agent Reference Implementation
|
|
3
|
+
* Demonstrates a Retrieval-Augmented Generation agent using @ossa/runtime
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { createRuntime, OssaAgent } from '@ossa/runtime';
|
|
7
|
+
import { join } from 'path';
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
9
|
+
import { dirname } from 'path';
|
|
10
|
+
|
|
11
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = dirname(__filename);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Vector store interface (simplified)
|
|
16
|
+
*/
|
|
17
|
+
interface VectorStore {
|
|
18
|
+
search(query: string, limit: number): Promise<Array<{
|
|
19
|
+
id: string;
|
|
20
|
+
content: string;
|
|
21
|
+
score: number;
|
|
22
|
+
metadata?: Record<string, unknown>;
|
|
23
|
+
}>>;
|
|
24
|
+
index(documents: Array<{ id: string; content: string; metadata?: Record<string, unknown> }>): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Mock vector store implementation
|
|
29
|
+
*/
|
|
30
|
+
class MockVectorStore implements VectorStore {
|
|
31
|
+
private documents: Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
content: string;
|
|
34
|
+
metadata?: Record<string, unknown>;
|
|
35
|
+
}> = [];
|
|
36
|
+
|
|
37
|
+
async search(query: string, limit: number = 5) {
|
|
38
|
+
// Simple mock: return documents that contain query terms
|
|
39
|
+
const queryLower = query.toLowerCase();
|
|
40
|
+
return this.documents
|
|
41
|
+
.filter(doc => doc.content.toLowerCase().includes(queryLower))
|
|
42
|
+
.slice(0, limit)
|
|
43
|
+
.map(doc => ({
|
|
44
|
+
...doc,
|
|
45
|
+
score: 0.9, // Mock score
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async index(documents: Array<{ id: string; content: string; metadata?: Record<string, unknown> }>) {
|
|
50
|
+
this.documents.push(...documents);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* RAG Agent implementation
|
|
56
|
+
*/
|
|
57
|
+
export async function createRagAgent(): Promise<OssaAgent> {
|
|
58
|
+
const runtime = createRuntime();
|
|
59
|
+
|
|
60
|
+
// Load agent manifest
|
|
61
|
+
const manifestPath = join(__dirname, 'manifest.yaml');
|
|
62
|
+
const agent = await runtime.loadAgent(manifestPath);
|
|
63
|
+
|
|
64
|
+
// Initialize vector store
|
|
65
|
+
const vectorStore = new MockVectorStore();
|
|
66
|
+
|
|
67
|
+
// Seed with sample documents
|
|
68
|
+
await vectorStore.index([
|
|
69
|
+
{
|
|
70
|
+
id: 'doc1',
|
|
71
|
+
content: 'OSSA (Open Standard for Scalable AI Agents) is a specification standard for AI agents, similar to OpenAPI for REST APIs.',
|
|
72
|
+
metadata: { category: 'documentation' }
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'doc2',
|
|
76
|
+
content: 'The OSSA runtime SDK provides reference implementations for executing OSSA-compliant agents.',
|
|
77
|
+
metadata: { category: 'documentation' }
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: 'doc3',
|
|
81
|
+
content: 'RAG (Retrieval-Augmented Generation) combines information retrieval with language generation.',
|
|
82
|
+
metadata: { category: 'concepts' }
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'doc4',
|
|
86
|
+
content: 'Vector databases enable semantic search by storing and querying high-dimensional embeddings.',
|
|
87
|
+
metadata: { category: 'technology' }
|
|
88
|
+
}
|
|
89
|
+
]);
|
|
90
|
+
|
|
91
|
+
// Register search capability
|
|
92
|
+
agent.registerCapability(
|
|
93
|
+
{
|
|
94
|
+
name: 'search',
|
|
95
|
+
description: 'Search documents using semantic search',
|
|
96
|
+
input_schema: {
|
|
97
|
+
type: 'object',
|
|
98
|
+
properties: {
|
|
99
|
+
query: { type: 'string', description: 'Search query' },
|
|
100
|
+
limit: { type: 'number', description: 'Maximum results', default: 5 }
|
|
101
|
+
},
|
|
102
|
+
required: ['query']
|
|
103
|
+
},
|
|
104
|
+
output_schema: {
|
|
105
|
+
type: 'object',
|
|
106
|
+
properties: {
|
|
107
|
+
results: {
|
|
108
|
+
type: 'array',
|
|
109
|
+
items: {
|
|
110
|
+
type: 'object',
|
|
111
|
+
properties: {
|
|
112
|
+
id: { type: 'string' },
|
|
113
|
+
content: { type: 'string' },
|
|
114
|
+
score: { type: 'number' },
|
|
115
|
+
metadata: { type: 'object' }
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
timeout_seconds: 5
|
|
122
|
+
},
|
|
123
|
+
async (input: { query: string; limit?: number }) => {
|
|
124
|
+
const results = await vectorStore.search(input.query, input.limit || 5);
|
|
125
|
+
return { results };
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
// Register answer capability
|
|
130
|
+
agent.registerCapability(
|
|
131
|
+
{
|
|
132
|
+
name: 'answer',
|
|
133
|
+
description: 'Answer questions using RAG pattern',
|
|
134
|
+
input_schema: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
properties: {
|
|
137
|
+
question: { type: 'string', description: 'Question to answer' },
|
|
138
|
+
context_limit: { type: 'number', description: 'Max context documents', default: 3 }
|
|
139
|
+
},
|
|
140
|
+
required: ['question']
|
|
141
|
+
},
|
|
142
|
+
output_schema: {
|
|
143
|
+
type: 'object',
|
|
144
|
+
properties: {
|
|
145
|
+
answer: { type: 'string' },
|
|
146
|
+
sources: {
|
|
147
|
+
type: 'array',
|
|
148
|
+
items: {
|
|
149
|
+
type: 'object',
|
|
150
|
+
properties: {
|
|
151
|
+
id: { type: 'string' },
|
|
152
|
+
content: { type: 'string' },
|
|
153
|
+
score: { type: 'number' }
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
timeout_seconds: 10
|
|
160
|
+
},
|
|
161
|
+
async (input: { question: string; context_limit?: number }) => {
|
|
162
|
+
// Search for relevant documents
|
|
163
|
+
const searchResults = await vectorStore.search(input.question, input.context_limit || 3);
|
|
164
|
+
|
|
165
|
+
// Build context from search results
|
|
166
|
+
const context = searchResults
|
|
167
|
+
.map(r => r.content)
|
|
168
|
+
.join('\n\n');
|
|
169
|
+
|
|
170
|
+
// Generate answer (mock implementation)
|
|
171
|
+
const answer = `Based on the documents: ${context}\n\nAnswer: ${input.question}`;
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
answer,
|
|
175
|
+
sources: searchResults.map(r => ({
|
|
176
|
+
id: r.id,
|
|
177
|
+
content: r.content,
|
|
178
|
+
score: r.score
|
|
179
|
+
}))
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
// Register index capability
|
|
185
|
+
agent.registerCapability(
|
|
186
|
+
{
|
|
187
|
+
name: 'index',
|
|
188
|
+
description: 'Index new documents into the vector store',
|
|
189
|
+
input_schema: {
|
|
190
|
+
type: 'object',
|
|
191
|
+
properties: {
|
|
192
|
+
documents: {
|
|
193
|
+
type: 'array',
|
|
194
|
+
items: {
|
|
195
|
+
type: 'object',
|
|
196
|
+
properties: {
|
|
197
|
+
id: { type: 'string' },
|
|
198
|
+
content: { type: 'string' },
|
|
199
|
+
metadata: { type: 'object' }
|
|
200
|
+
},
|
|
201
|
+
required: ['id', 'content']
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
required: ['documents']
|
|
206
|
+
},
|
|
207
|
+
output_schema: {
|
|
208
|
+
type: 'object',
|
|
209
|
+
properties: {
|
|
210
|
+
indexed: { type: 'number' }
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
timeout_seconds: 30
|
|
214
|
+
},
|
|
215
|
+
async (input: { documents: Array<{ id: string; content: string; metadata?: Record<string, unknown> }> }) => {
|
|
216
|
+
await vectorStore.index(input.documents);
|
|
217
|
+
return { indexed: input.documents.length };
|
|
218
|
+
}
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
return agent;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Example usage
|
|
226
|
+
*/
|
|
227
|
+
async function main() {
|
|
228
|
+
console.log('🤖 RAG Agent Example\n');
|
|
229
|
+
|
|
230
|
+
// Create and initialize agent
|
|
231
|
+
const agent = await createRagAgent();
|
|
232
|
+
console.log('✅ Agent loaded:', agent.getMetadata().name);
|
|
233
|
+
|
|
234
|
+
// Test search capability
|
|
235
|
+
console.log('\n📚 Testing search capability...');
|
|
236
|
+
const searchResult = await agent.execute('search', { query: 'OSSA', limit: 2 });
|
|
237
|
+
if (searchResult.success) {
|
|
238
|
+
console.log('Search results:', JSON.stringify(searchResult.data, null, 2));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Test answer capability
|
|
242
|
+
console.log('\n💬 Testing answer capability...');
|
|
243
|
+
const answerResult = await agent.execute('answer', {
|
|
244
|
+
question: 'What is OSSA?',
|
|
245
|
+
context_limit: 2
|
|
246
|
+
});
|
|
247
|
+
if (answerResult.success) {
|
|
248
|
+
console.log('Answer:', JSON.stringify(answerResult.data, null, 2));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Test index capability
|
|
252
|
+
console.log('\n📥 Testing index capability...');
|
|
253
|
+
const indexResult = await agent.execute('index', {
|
|
254
|
+
documents: [
|
|
255
|
+
{
|
|
256
|
+
id: 'doc5',
|
|
257
|
+
content: 'The @ossa/runtime package provides TypeScript implementations for OSSA agents.',
|
|
258
|
+
metadata: { category: 'sdk' }
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
});
|
|
262
|
+
if (indexResult.success) {
|
|
263
|
+
console.log('Indexed documents:', indexResult.data);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
console.log('\n✨ All capabilities tested successfully!');
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// Run if executed directly
|
|
270
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
271
|
+
main().catch(console.error);
|
|
272
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
apiVersion: v0.3.0
|
|
2
|
+
kind: Agent
|
|
3
|
+
metadata:
|
|
4
|
+
name: rag-agent
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
description: Retrieval-Augmented Generation agent for document search and question answering
|
|
7
|
+
labels:
|
|
8
|
+
type: rag
|
|
9
|
+
domain: knowledge-management
|
|
10
|
+
tier: production
|
|
11
|
+
spec:
|
|
12
|
+
role: Document search and question answering using RAG pattern
|
|
13
|
+
llm:
|
|
14
|
+
provider: openai
|
|
15
|
+
model: gpt-4
|
|
16
|
+
temperature: 0.7
|
|
17
|
+
maxTokens: 2000
|
|
18
|
+
tools:
|
|
19
|
+
- type: mcp
|
|
20
|
+
name: vector-search
|
|
21
|
+
endpoint: http://localhost:6333
|
|
22
|
+
capabilities:
|
|
23
|
+
- search
|
|
24
|
+
- index
|
|
25
|
+
- delete
|
|
26
|
+
- type: mcp
|
|
27
|
+
name: embeddings
|
|
28
|
+
endpoint: http://localhost:11434
|
|
29
|
+
capabilities:
|
|
30
|
+
- embed
|
|
31
|
+
autonomy:
|
|
32
|
+
level: assisted
|
|
33
|
+
approval_required: false
|
|
34
|
+
allowed_actions:
|
|
35
|
+
- search_documents
|
|
36
|
+
- generate_embeddings
|
|
37
|
+
- answer_question
|
|
38
|
+
constraints:
|
|
39
|
+
cost:
|
|
40
|
+
maxTokensPerDay: 100000
|
|
41
|
+
maxTokensPerRequest: 2000
|
|
42
|
+
performance:
|
|
43
|
+
maxLatencySeconds: 5
|
|
44
|
+
maxConcurrentRequests: 10
|
|
45
|
+
timeoutSeconds: 30
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
apiVersion: ossa/v0.3.0
|
|
2
|
+
kind: Agent
|
|
3
|
+
metadata:
|
|
4
|
+
name: gitlab-cicd-optimizer
|
|
5
|
+
description: |
|
|
6
|
+
Real-world agent that optimizes GitLab CI/CD pipelines by:
|
|
7
|
+
- Analyzing pipeline performance
|
|
8
|
+
- Identifying slow jobs
|
|
9
|
+
- Suggesting parallelization opportunities
|
|
10
|
+
- Detecting unused cache keys
|
|
11
|
+
- Recommending resource optimizations
|
|
12
|
+
labels:
|
|
13
|
+
use-case: ci-cd-optimization
|
|
14
|
+
platform: gitlab
|
|
15
|
+
tier: production
|
|
16
|
+
spec:
|
|
17
|
+
role: analyzer
|
|
18
|
+
capabilities:
|
|
19
|
+
- gitlab-api
|
|
20
|
+
- performance-analysis
|
|
21
|
+
- recommendation-engine
|
|
22
|
+
|
|
23
|
+
# Trigger on pipeline completion
|
|
24
|
+
triggers:
|
|
25
|
+
- type: webhook
|
|
26
|
+
source: gitlab
|
|
27
|
+
events: [pipeline_success, pipeline_failed]
|
|
28
|
+
filter:
|
|
29
|
+
branches: [main, release/*]
|
|
30
|
+
|
|
31
|
+
# Input: Pipeline data from GitLab webhook
|
|
32
|
+
inputs:
|
|
33
|
+
- name: pipeline_data
|
|
34
|
+
type: object
|
|
35
|
+
required: true
|
|
36
|
+
schema:
|
|
37
|
+
project_id: string
|
|
38
|
+
pipeline_id: integer
|
|
39
|
+
duration: integer
|
|
40
|
+
jobs: array
|
|
41
|
+
|
|
42
|
+
# Analysis tasks
|
|
43
|
+
tasks:
|
|
44
|
+
- name: analyze-performance
|
|
45
|
+
description: Analyze pipeline performance metrics
|
|
46
|
+
steps:
|
|
47
|
+
- name: fetch-pipeline-details
|
|
48
|
+
action: http
|
|
49
|
+
method: GET
|
|
50
|
+
url: "https://gitlab.com/api/v4/projects/${inputs.pipeline_data.project_id}/pipelines/${inputs.pipeline_data.pipeline_id}"
|
|
51
|
+
headers:
|
|
52
|
+
PRIVATE-TOKEN: "${env.GITLAB_TOKEN}"
|
|
53
|
+
|
|
54
|
+
- name: identify-slow-jobs
|
|
55
|
+
action: analyze
|
|
56
|
+
logic: |
|
|
57
|
+
# Find jobs taking >5 minutes
|
|
58
|
+
slow_jobs = []
|
|
59
|
+
for job in pipeline.jobs:
|
|
60
|
+
if job.duration > 300:
|
|
61
|
+
slow_jobs.append({
|
|
62
|
+
'name': job.name,
|
|
63
|
+
'duration': job.duration,
|
|
64
|
+
'stage': job.stage
|
|
65
|
+
})
|
|
66
|
+
return slow_jobs
|
|
67
|
+
|
|
68
|
+
- name: detect-parallelization
|
|
69
|
+
action: analyze
|
|
70
|
+
logic: |
|
|
71
|
+
# Find sequential jobs that could run in parallel
|
|
72
|
+
stages = group_by(pipeline.jobs, 'stage')
|
|
73
|
+
opportunities = []
|
|
74
|
+
for stage, jobs in stages.items():
|
|
75
|
+
if len(jobs) == 1 and jobs[0].duration > 180:
|
|
76
|
+
opportunities.append({
|
|
77
|
+
'stage': stage,
|
|
78
|
+
'suggestion': 'Split into parallel jobs'
|
|
79
|
+
})
|
|
80
|
+
return opportunities
|
|
81
|
+
|
|
82
|
+
- name: check-cache-usage
|
|
83
|
+
action: analyze
|
|
84
|
+
logic: |
|
|
85
|
+
# Detect unused cache keys
|
|
86
|
+
cache_keys = set()
|
|
87
|
+
used_keys = set()
|
|
88
|
+
for job in pipeline.jobs:
|
|
89
|
+
if job.cache:
|
|
90
|
+
cache_keys.add(job.cache.key)
|
|
91
|
+
if job.cache_hit:
|
|
92
|
+
used_keys.add(job.cache.key)
|
|
93
|
+
unused = cache_keys - used_keys
|
|
94
|
+
return list(unused)
|
|
95
|
+
|
|
96
|
+
- name: generate-recommendations
|
|
97
|
+
description: Create actionable recommendations
|
|
98
|
+
steps:
|
|
99
|
+
- name: create-report
|
|
100
|
+
action: template
|
|
101
|
+
template: |
|
|
102
|
+
## 🚀 CI/CD Optimization Report
|
|
103
|
+
|
|
104
|
+
**Pipeline**: #${inputs.pipeline_data.pipeline_id}
|
|
105
|
+
**Duration**: ${inputs.pipeline_data.duration}s
|
|
106
|
+
|
|
107
|
+
### ⚠️ Slow Jobs (>5min)
|
|
108
|
+
{% for job in analysis.slow_jobs %}
|
|
109
|
+
- **${job.name}** (${job.stage}): ${job.duration}s
|
|
110
|
+
- Consider: Caching dependencies, using smaller Docker images
|
|
111
|
+
{% endfor %}
|
|
112
|
+
|
|
113
|
+
### ⚡ Parallelization Opportunities
|
|
114
|
+
{% for opp in analysis.parallelization %}
|
|
115
|
+
- **${opp.stage}**: ${opp.suggestion}
|
|
116
|
+
{% endfor %}
|
|
117
|
+
|
|
118
|
+
### 🗑️ Unused Cache Keys
|
|
119
|
+
{% for key in analysis.unused_cache %}
|
|
120
|
+
- `${key}` - Consider removing to save storage
|
|
121
|
+
{% endfor %}
|
|
122
|
+
|
|
123
|
+
### 💡 Recommendations
|
|
124
|
+
1. Enable `interruptible: true` for non-critical jobs
|
|
125
|
+
2. Use `needs:` to create DAG pipelines
|
|
126
|
+
3. Consider using GitLab's merge trains
|
|
127
|
+
4. Review resource allocation for slow jobs
|
|
128
|
+
|
|
129
|
+
- name: post-comment
|
|
130
|
+
action: http
|
|
131
|
+
method: POST
|
|
132
|
+
url: "https://gitlab.com/api/v4/projects/${inputs.pipeline_data.project_id}/merge_requests/${inputs.pipeline_data.merge_request_iid}/notes"
|
|
133
|
+
headers:
|
|
134
|
+
PRIVATE-TOKEN: "${env.GITLAB_TOKEN}"
|
|
135
|
+
body:
|
|
136
|
+
body: "${outputs.report}"
|
|
137
|
+
|
|
138
|
+
# Outputs
|
|
139
|
+
outputs:
|
|
140
|
+
- name: report
|
|
141
|
+
type: markdown
|
|
142
|
+
description: Optimization report
|
|
143
|
+
- name: metrics
|
|
144
|
+
type: object
|
|
145
|
+
schema:
|
|
146
|
+
slow_jobs_count: integer
|
|
147
|
+
parallelization_opportunities: integer
|
|
148
|
+
unused_cache_keys: integer
|
|
149
|
+
total_duration: integer
|
|
150
|
+
|
|
151
|
+
# Observability
|
|
152
|
+
observability:
|
|
153
|
+
tracing:
|
|
154
|
+
enabled: true
|
|
155
|
+
provider: opentelemetry
|
|
156
|
+
endpoint: "${env.OTEL_ENDPOINT}"
|
|
157
|
+
metrics:
|
|
158
|
+
- name: pipelines_analyzed
|
|
159
|
+
type: counter
|
|
160
|
+
- name: recommendations_generated
|
|
161
|
+
type: counter
|
|
162
|
+
- name: average_pipeline_duration
|
|
163
|
+
type: gauge
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
apiVersion: ossa/v0.3.0
|
|
2
|
+
kind: Agent
|
|
3
|
+
metadata:
|
|
4
|
+
name: rag-documentation-assistant
|
|
5
|
+
description: |
|
|
6
|
+
Production RAG agent that answers questions about your codebase using:
|
|
7
|
+
- Vector embeddings of documentation
|
|
8
|
+
- Semantic search across code comments
|
|
9
|
+
- Context-aware responses with citations
|
|
10
|
+
- Automatic knowledge base updates on commits
|
|
11
|
+
labels:
|
|
12
|
+
use-case: documentation-qa
|
|
13
|
+
pattern: rag
|
|
14
|
+
tier: production
|
|
15
|
+
spec:
|
|
16
|
+
role: assistant
|
|
17
|
+
capabilities:
|
|
18
|
+
- vector-search
|
|
19
|
+
- llm-generation
|
|
20
|
+
- document-processing
|
|
21
|
+
|
|
22
|
+
# Knowledge sources (OSSA v0.3.0 extension)
|
|
23
|
+
extensions:
|
|
24
|
+
knowledge_sources:
|
|
25
|
+
- name: codebase-docs
|
|
26
|
+
type: vector_store
|
|
27
|
+
provider: qdrant
|
|
28
|
+
config:
|
|
29
|
+
collection: "documentation"
|
|
30
|
+
embedding_model: "text-embedding-3-small"
|
|
31
|
+
endpoint: "${env.QDRANT_URL}"
|
|
32
|
+
- name: api-specs
|
|
33
|
+
type: structured
|
|
34
|
+
provider: openapi
|
|
35
|
+
config:
|
|
36
|
+
specs:
|
|
37
|
+
- path: "./openapi.yaml"
|
|
38
|
+
- url: "https://api.example.com/openapi.json"
|
|
39
|
+
|
|
40
|
+
# Trigger on Slack mention or API call
|
|
41
|
+
triggers:
|
|
42
|
+
- type: webhook
|
|
43
|
+
source: slack
|
|
44
|
+
events: [app_mention]
|
|
45
|
+
- type: api
|
|
46
|
+
endpoint: /ask
|
|
47
|
+
method: POST
|
|
48
|
+
|
|
49
|
+
# Input: User question
|
|
50
|
+
inputs:
|
|
51
|
+
- name: question
|
|
52
|
+
type: string
|
|
53
|
+
required: true
|
|
54
|
+
description: "User's question about the codebase"
|
|
55
|
+
- name: context
|
|
56
|
+
type: object
|
|
57
|
+
required: false
|
|
58
|
+
schema:
|
|
59
|
+
user_id: string
|
|
60
|
+
channel_id: string
|
|
61
|
+
thread_ts: string
|
|
62
|
+
|
|
63
|
+
# RAG pipeline tasks
|
|
64
|
+
tasks:
|
|
65
|
+
- name: retrieve-context
|
|
66
|
+
description: Find relevant documentation chunks
|
|
67
|
+
steps:
|
|
68
|
+
- name: embed-question
|
|
69
|
+
action: llm
|
|
70
|
+
provider: openai
|
|
71
|
+
model: text-embedding-3-small
|
|
72
|
+
input: "${inputs.question}"
|
|
73
|
+
output_var: question_embedding
|
|
74
|
+
|
|
75
|
+
- name: vector-search
|
|
76
|
+
action: vector_search
|
|
77
|
+
source: codebase-docs
|
|
78
|
+
query: "${outputs.question_embedding}"
|
|
79
|
+
top_k: 5
|
|
80
|
+
min_score: 0.7
|
|
81
|
+
output_var: relevant_docs
|
|
82
|
+
|
|
83
|
+
- name: rerank-results
|
|
84
|
+
action: rerank
|
|
85
|
+
model: cohere-rerank-v3
|
|
86
|
+
query: "${inputs.question}"
|
|
87
|
+
documents: "${outputs.relevant_docs}"
|
|
88
|
+
top_n: 3
|
|
89
|
+
output_var: top_docs
|
|
90
|
+
|
|
91
|
+
- name: generate-answer
|
|
92
|
+
description: Generate contextual answer with citations
|
|
93
|
+
steps:
|
|
94
|
+
- name: build-prompt
|
|
95
|
+
action: template
|
|
96
|
+
template: |
|
|
97
|
+
You are a helpful documentation assistant. Answer the user's question using ONLY the provided context.
|
|
98
|
+
If the context doesn't contain the answer, say so clearly.
|
|
99
|
+
|
|
100
|
+
Context:
|
|
101
|
+
{% for doc in context.top_docs %}
|
|
102
|
+
[Source: ${doc.metadata.file}:${doc.metadata.line}]
|
|
103
|
+
${doc.content}
|
|
104
|
+
|
|
105
|
+
{% endfor %}
|
|
106
|
+
|
|
107
|
+
Question: ${inputs.question}
|
|
108
|
+
|
|
109
|
+
Answer with citations in the format [1], [2], etc.
|
|
110
|
+
output_var: prompt
|
|
111
|
+
|
|
112
|
+
- name: call-llm
|
|
113
|
+
action: llm
|
|
114
|
+
provider: openai
|
|
115
|
+
model: gpt-4-turbo
|
|
116
|
+
temperature: 0.3
|
|
117
|
+
max_tokens: 500
|
|
118
|
+
messages:
|
|
119
|
+
- role: system
|
|
120
|
+
content: "You are a precise documentation assistant."
|
|
121
|
+
- role: user
|
|
122
|
+
content: "${outputs.prompt}"
|
|
123
|
+
output_var: answer
|
|
124
|
+
|
|
125
|
+
- name: format-response
|
|
126
|
+
action: template
|
|
127
|
+
template: |
|
|
128
|
+
${outputs.answer}
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
**Sources:**
|
|
132
|
+
{% for doc in context.top_docs %}
|
|
133
|
+
[${loop.index}] `${doc.metadata.file}` (line ${doc.metadata.line})
|
|
134
|
+
{% endfor %}
|
|
135
|
+
output_var: formatted_answer
|
|
136
|
+
|
|
137
|
+
- name: respond
|
|
138
|
+
description: Send answer back to user
|
|
139
|
+
steps:
|
|
140
|
+
- name: post-to-slack
|
|
141
|
+
action: http
|
|
142
|
+
method: POST
|
|
143
|
+
url: "https://slack.com/api/chat.postMessage"
|
|
144
|
+
headers:
|
|
145
|
+
Authorization: "Bearer ${env.SLACK_BOT_TOKEN}"
|
|
146
|
+
body:
|
|
147
|
+
channel: "${inputs.context.channel_id}"
|
|
148
|
+
thread_ts: "${inputs.context.thread_ts}"
|
|
149
|
+
text: "${outputs.formatted_answer}"
|
|
150
|
+
condition: "${inputs.context.channel_id != null}"
|
|
151
|
+
|
|
152
|
+
- name: return-api-response
|
|
153
|
+
action: return
|
|
154
|
+
value:
|
|
155
|
+
answer: "${outputs.formatted_answer}"
|
|
156
|
+
sources: "${outputs.top_docs}"
|
|
157
|
+
confidence: "${outputs.top_docs[0].score}"
|
|
158
|
+
|
|
159
|
+
# Background task: Update knowledge base on commits
|
|
160
|
+
background_tasks:
|
|
161
|
+
- name: update-knowledge-base
|
|
162
|
+
schedule: "*/30 * * * *" # Every 30 minutes
|
|
163
|
+
steps:
|
|
164
|
+
- name: fetch-recent-commits
|
|
165
|
+
action: http
|
|
166
|
+
method: GET
|
|
167
|
+
url: "https://gitlab.com/api/v4/projects/${env.PROJECT_ID}/repository/commits"
|
|
168
|
+
headers:
|
|
169
|
+
PRIVATE-TOKEN: "${env.GITLAB_TOKEN}"
|
|
170
|
+
params:
|
|
171
|
+
since: "${now() - 30m}"
|
|
172
|
+
|
|
173
|
+
- name: extract-changed-docs
|
|
174
|
+
action: filter
|
|
175
|
+
input: "${outputs.commits}"
|
|
176
|
+
condition: "file.path.endsWith('.md') or file.path.endsWith('.rst')"
|
|
177
|
+
|
|
178
|
+
- name: process-and-embed
|
|
179
|
+
action: foreach
|
|
180
|
+
items: "${outputs.changed_docs}"
|
|
181
|
+
steps:
|
|
182
|
+
- name: fetch-content
|
|
183
|
+
action: http
|
|
184
|
+
method: GET
|
|
185
|
+
url: "https://gitlab.com/api/v4/projects/${env.PROJECT_ID}/repository/files/${item.path}/raw"
|
|
186
|
+
|
|
187
|
+
- name: chunk-document
|
|
188
|
+
action: chunk
|
|
189
|
+
content: "${outputs.content}"
|
|
190
|
+
chunk_size: 500
|
|
191
|
+
overlap: 50
|
|
192
|
+
|
|
193
|
+
- name: embed-chunks
|
|
194
|
+
action: llm
|
|
195
|
+
provider: openai
|
|
196
|
+
model: text-embedding-3-small
|
|
197
|
+
input: "${outputs.chunks}"
|
|
198
|
+
|
|
199
|
+
- name: upsert-vectors
|
|
200
|
+
action: vector_store
|
|
201
|
+
operation: upsert
|
|
202
|
+
collection: codebase-docs
|
|
203
|
+
vectors: "${outputs.embeddings}"
|
|
204
|
+
metadata:
|
|
205
|
+
file: "${item.path}"
|
|
206
|
+
commit: "${item.commit_id}"
|
|
207
|
+
updated_at: "${now()}"
|
|
208
|
+
|
|
209
|
+
# Outputs
|
|
210
|
+
outputs:
|
|
211
|
+
- name: answer
|
|
212
|
+
type: string
|
|
213
|
+
description: "Generated answer with citations"
|
|
214
|
+
- name: sources
|
|
215
|
+
type: array
|
|
216
|
+
description: "Source documents used"
|
|
217
|
+
- name: confidence
|
|
218
|
+
type: float
|
|
219
|
+
description: "Confidence score (0-1)"
|
|
220
|
+
|
|
221
|
+
# Observability
|
|
222
|
+
observability:
|
|
223
|
+
tracing:
|
|
224
|
+
enabled: true
|
|
225
|
+
provider: opentelemetry
|
|
226
|
+
metrics:
|
|
227
|
+
- name: questions_answered
|
|
228
|
+
type: counter
|
|
229
|
+
labels: [user_id, confidence_bucket]
|
|
230
|
+
- name: retrieval_latency
|
|
231
|
+
type: histogram
|
|
232
|
+
- name: generation_latency
|
|
233
|
+
type: histogram
|
|
234
|
+
- name: knowledge_base_size
|
|
235
|
+
type: gauge
|