@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,321 @@
|
|
|
1
|
+
# OSSA API Reference Implementations
|
|
2
|
+
|
|
3
|
+
Complete reference implementations demonstrating OSSA API usage in TypeScript, Python, and shell scripts.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This directory contains production-ready reference implementations for the OSSA (Open Standards for Scalable Agents) API. Each implementation provides:
|
|
8
|
+
|
|
9
|
+
- Complete API coverage (agents, discovery, messaging)
|
|
10
|
+
- Working examples with real-world use cases
|
|
11
|
+
- Error handling and retry logic
|
|
12
|
+
- Authentication and rate limiting support
|
|
13
|
+
- Comprehensive documentation
|
|
14
|
+
|
|
15
|
+
## Implementations
|
|
16
|
+
|
|
17
|
+
### [TypeScript Client](./typescript-client/)
|
|
18
|
+
|
|
19
|
+
Modern TypeScript SDK with full type safety and ES modules.
|
|
20
|
+
|
|
21
|
+
**Features:**
|
|
22
|
+
- Complete TypeScript definitions
|
|
23
|
+
- ES2022 modules
|
|
24
|
+
- Fetch-based HTTP client
|
|
25
|
+
- Event streaming with async iterators
|
|
26
|
+
- Automatic retries and rate limiting
|
|
27
|
+
|
|
28
|
+
**Quick Start:**
|
|
29
|
+
```bash
|
|
30
|
+
cd typescript-client
|
|
31
|
+
npm install
|
|
32
|
+
npm run build
|
|
33
|
+
npm run example
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Use Case:** Production applications, web services, browser-based tools
|
|
37
|
+
|
|
38
|
+
### [Python Client](./python-client/)
|
|
39
|
+
|
|
40
|
+
Pythonic SDK with requests-based HTTP client.
|
|
41
|
+
|
|
42
|
+
**Features:**
|
|
43
|
+
- Clean, idiomatic Python API
|
|
44
|
+
- Session management with connection pooling
|
|
45
|
+
- Context manager support
|
|
46
|
+
- Generator-based event streaming
|
|
47
|
+
- Type hints for modern Python
|
|
48
|
+
|
|
49
|
+
**Quick Start:**
|
|
50
|
+
```bash
|
|
51
|
+
cd python-client
|
|
52
|
+
pip install -r requirements.txt
|
|
53
|
+
python examples/basic_usage.py
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Use Case:** Data science, automation scripts, backend services
|
|
57
|
+
|
|
58
|
+
### [cURL Scripts](./curl-scripts/)
|
|
59
|
+
|
|
60
|
+
Standalone shell scripts for command-line usage and CI/CD pipelines.
|
|
61
|
+
|
|
62
|
+
**Features:**
|
|
63
|
+
- No dependencies except curl and jq
|
|
64
|
+
- Easy to integrate in CI/CD
|
|
65
|
+
- Standalone executable scripts
|
|
66
|
+
- Error handling and validation
|
|
67
|
+
- Environment variable configuration
|
|
68
|
+
|
|
69
|
+
**Quick Start:**
|
|
70
|
+
```bash
|
|
71
|
+
cd curl-scripts
|
|
72
|
+
./01-search-agents.sh
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Use Case:** CI/CD pipelines, debugging, quick testing
|
|
76
|
+
|
|
77
|
+
## Common Functionality
|
|
78
|
+
|
|
79
|
+
All implementations support:
|
|
80
|
+
|
|
81
|
+
### Agent Operations
|
|
82
|
+
|
|
83
|
+
- **Search & Discovery**: Find agents by domain, capability, compliance
|
|
84
|
+
- **Agent Details**: Retrieve metadata, versions, dependencies
|
|
85
|
+
- **Publishing**: Deploy new agents to the registry
|
|
86
|
+
- **Lifecycle Management**: Deprecate, unpublish, version management
|
|
87
|
+
- **Statistics**: Download counts, ratings, usage metrics
|
|
88
|
+
|
|
89
|
+
### Discovery
|
|
90
|
+
|
|
91
|
+
- **Taxonomies**: Browse domain/subdomain/capability hierarchy
|
|
92
|
+
- **Capabilities**: Explore agent capabilities and schemas
|
|
93
|
+
- **Compliance**: Find agents by compliance profiles (FedRAMP, HIPAA, SOC2)
|
|
94
|
+
- **Recommendations**: AI-powered agent suggestions for use cases
|
|
95
|
+
|
|
96
|
+
### Agent-to-Agent Messaging
|
|
97
|
+
|
|
98
|
+
- **Direct Messaging**: Send messages between agents
|
|
99
|
+
- **Synchronous Requests**: Request-response pattern with timeout
|
|
100
|
+
- **Broadcasting**: Broadcast to multiple agents by filters
|
|
101
|
+
- **Webhooks**: Register HTTP callbacks for events
|
|
102
|
+
- **Event Streaming**: Real-time event streams (SSE)
|
|
103
|
+
- **Subscriptions**: Subscribe to agent events
|
|
104
|
+
|
|
105
|
+
## Authentication
|
|
106
|
+
|
|
107
|
+
All implementations support authentication via Bearer token:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
export OSSA_TOKEN=ossa_tok_xxx
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Get a token:
|
|
114
|
+
1. Visit https://registry.openstandardagents.org
|
|
115
|
+
2. Sign in or create an account
|
|
116
|
+
3. Navigate to Settings > API Tokens
|
|
117
|
+
4. Generate a new token
|
|
118
|
+
|
|
119
|
+
## API Endpoints
|
|
120
|
+
|
|
121
|
+
**Base URL:** `https://registry.openstandardagents.org/api/v1`
|
|
122
|
+
|
|
123
|
+
**Public Endpoints (No Auth):**
|
|
124
|
+
- `GET /agents` - Search agents
|
|
125
|
+
- `GET /agents/{publisher}/{name}` - Get agent
|
|
126
|
+
- `GET /specification/taxonomies` - List taxonomies
|
|
127
|
+
- `GET /specification/capabilities` - List capabilities
|
|
128
|
+
|
|
129
|
+
**Authenticated Endpoints:**
|
|
130
|
+
- `POST /agents` - Publish agent
|
|
131
|
+
- `POST /messaging/send` - Send A2A message
|
|
132
|
+
- `POST /messaging/webhooks` - Register webhook
|
|
133
|
+
|
|
134
|
+
See individual implementation READMEs for complete endpoint lists.
|
|
135
|
+
|
|
136
|
+
## Examples
|
|
137
|
+
|
|
138
|
+
Each implementation includes working examples:
|
|
139
|
+
|
|
140
|
+
### Basic Usage
|
|
141
|
+
- Search for agents
|
|
142
|
+
- Get agent details
|
|
143
|
+
- List versions
|
|
144
|
+
- View dependencies
|
|
145
|
+
|
|
146
|
+
### Publishing
|
|
147
|
+
- Create agent manifest
|
|
148
|
+
- Package and publish
|
|
149
|
+
- Handle verification
|
|
150
|
+
|
|
151
|
+
### Messaging
|
|
152
|
+
- Send A2A messages
|
|
153
|
+
- Register webhooks
|
|
154
|
+
- Subscribe to events
|
|
155
|
+
- Stream events in real-time
|
|
156
|
+
|
|
157
|
+
### Discovery
|
|
158
|
+
- Browse taxonomies
|
|
159
|
+
- Find by capabilities
|
|
160
|
+
- Filter by compliance
|
|
161
|
+
- Get AI recommendations
|
|
162
|
+
|
|
163
|
+
## Rate Limits
|
|
164
|
+
|
|
165
|
+
- **Authenticated**: 1000 requests/hour
|
|
166
|
+
- **Unauthenticated**: 100 requests/hour
|
|
167
|
+
|
|
168
|
+
Rate limit headers:
|
|
169
|
+
- `X-RateLimit-Limit`: Total requests allowed
|
|
170
|
+
- `X-RateLimit-Remaining`: Remaining requests
|
|
171
|
+
- `X-RateLimit-Reset`: Unix timestamp when limit resets
|
|
172
|
+
|
|
173
|
+
## Error Handling
|
|
174
|
+
|
|
175
|
+
All implementations include robust error handling:
|
|
176
|
+
|
|
177
|
+
**HTTP Status Codes:**
|
|
178
|
+
- `200` - Success
|
|
179
|
+
- `201` - Created
|
|
180
|
+
- `204` - No Content
|
|
181
|
+
- `400` - Bad Request
|
|
182
|
+
- `401` - Unauthorized
|
|
183
|
+
- `403` - Forbidden
|
|
184
|
+
- `404` - Not Found
|
|
185
|
+
- `409` - Conflict
|
|
186
|
+
- `422` - Unprocessable Entity
|
|
187
|
+
- `429` - Rate Limited
|
|
188
|
+
- `500` - Internal Server Error
|
|
189
|
+
|
|
190
|
+
**Error Response Format:**
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"error": "error_code",
|
|
194
|
+
"message": "Human-readable message",
|
|
195
|
+
"details": {},
|
|
196
|
+
"retry_after": 3600
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Best Practices
|
|
201
|
+
|
|
202
|
+
### 1. Always Use Authentication
|
|
203
|
+
|
|
204
|
+
For production use, always authenticate with a Bearer token:
|
|
205
|
+
```bash
|
|
206
|
+
export OSSA_TOKEN=ossa_tok_xxx
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### 2. Handle Rate Limiting
|
|
210
|
+
|
|
211
|
+
Respect rate limits and implement exponential backoff:
|
|
212
|
+
- Check `X-RateLimit-Remaining` header
|
|
213
|
+
- Sleep based on `Retry-After` header on 429
|
|
214
|
+
- Implement exponential backoff for retries
|
|
215
|
+
|
|
216
|
+
### 3. Validate Manifests
|
|
217
|
+
|
|
218
|
+
Before publishing, validate your agent manifest:
|
|
219
|
+
```bash
|
|
220
|
+
curl -X POST "${BASE_URL}/specification/validate" \
|
|
221
|
+
-H "Content-Type: application/json" \
|
|
222
|
+
-d @manifest.json
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### 4. Monitor Message Status
|
|
226
|
+
|
|
227
|
+
When sending A2A messages, poll for status:
|
|
228
|
+
```bash
|
|
229
|
+
MESSAGE_ID=$(curl ... | jq -r '.message_id')
|
|
230
|
+
curl "${BASE_URL}/messaging/messages/${MESSAGE_ID}"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### 5. Use Webhooks for Events
|
|
234
|
+
|
|
235
|
+
For production, use webhooks instead of polling:
|
|
236
|
+
```bash
|
|
237
|
+
curl -X POST "${BASE_URL}/messaging/webhooks" \
|
|
238
|
+
-H "Authorization: Bearer ${TOKEN}" \
|
|
239
|
+
-d '{"url": "https://your-app.com/webhook", "events": [...]}'
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## Environment Variables
|
|
243
|
+
|
|
244
|
+
Common environment variables:
|
|
245
|
+
|
|
246
|
+
- `OSSA_TOKEN` - Bearer token for authentication
|
|
247
|
+
- `OSSA_BASE_URL` - Override base API URL (default: production)
|
|
248
|
+
- `OSSA_TIMEOUT` - Request timeout in seconds
|
|
249
|
+
- `OSSA_RETRIES` - Number of retry attempts
|
|
250
|
+
|
|
251
|
+
## Choosing an Implementation
|
|
252
|
+
|
|
253
|
+
**Use TypeScript if:**
|
|
254
|
+
- Building web applications or services
|
|
255
|
+
- Need full type safety
|
|
256
|
+
- Want modern async/await patterns
|
|
257
|
+
- Deploying to Node.js or browsers
|
|
258
|
+
|
|
259
|
+
**Use Python if:**
|
|
260
|
+
- Writing automation scripts
|
|
261
|
+
- Building data pipelines
|
|
262
|
+
- Need integration with ML/AI tools
|
|
263
|
+
- Prefer Pythonic APIs
|
|
264
|
+
|
|
265
|
+
**Use cURL scripts if:**
|
|
266
|
+
- Working in CI/CD pipelines
|
|
267
|
+
- Need quick debugging
|
|
268
|
+
- Want zero dependencies
|
|
269
|
+
- Prefer shell scripting
|
|
270
|
+
|
|
271
|
+
## Testing
|
|
272
|
+
|
|
273
|
+
All implementations can be tested against:
|
|
274
|
+
|
|
275
|
+
**Production Registry:**
|
|
276
|
+
```bash
|
|
277
|
+
export OSSA_BASE_URL=https://registry.openstandardagents.org/api/v1
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
**Staging Registry:**
|
|
281
|
+
```bash
|
|
282
|
+
export OSSA_BASE_URL=https://staging-registry.openstandardagents.org/api/v1
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
**Local Development:**
|
|
286
|
+
```bash
|
|
287
|
+
export OSSA_BASE_URL=http://localhost:3000
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
## Contributing
|
|
291
|
+
|
|
292
|
+
To add a new reference implementation:
|
|
293
|
+
|
|
294
|
+
1. Create a new directory (e.g., `go-client/`, `rust-client/`)
|
|
295
|
+
2. Include:
|
|
296
|
+
- Client library source code
|
|
297
|
+
- Working examples
|
|
298
|
+
- README.md with usage instructions
|
|
299
|
+
- Package/dependency configuration
|
|
300
|
+
3. Follow OSSA API spec v0.3.0
|
|
301
|
+
4. Include error handling and retries
|
|
302
|
+
5. Add authentication support
|
|
303
|
+
|
|
304
|
+
## Resources
|
|
305
|
+
|
|
306
|
+
- [OSSA Specification](https://openstandardagents.org/spec)
|
|
307
|
+
- [API Documentation](https://docs.openstandardagents.org)
|
|
308
|
+
- [Registry Web UI](https://registry.openstandardagents.org)
|
|
309
|
+
- [GitHub Repository](https://github.com/openstandardagents/ossa)
|
|
310
|
+
- [Community Discord](https://discord.gg/ossa)
|
|
311
|
+
|
|
312
|
+
## License
|
|
313
|
+
|
|
314
|
+
All reference implementations are licensed under Apache-2.0.
|
|
315
|
+
|
|
316
|
+
## Support
|
|
317
|
+
|
|
318
|
+
- **Documentation**: https://docs.openstandardagents.org
|
|
319
|
+
- **Issues**: https://github.com/openstandardagents/ossa/issues
|
|
320
|
+
- **Email**: registry@openstandardagents.org
|
|
321
|
+
- **Discord**: https://discord.gg/ossa
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# OSSA API - Search Agents Example
|
|
4
|
+
#
|
|
5
|
+
# Demonstrates searching for agents using various filters.
|
|
6
|
+
#
|
|
7
|
+
|
|
8
|
+
set -e
|
|
9
|
+
|
|
10
|
+
# Configuration
|
|
11
|
+
BASE_URL="${OSSA_BASE_URL:-https://registry.openstandardagents.org/api/v1}"
|
|
12
|
+
TOKEN="${OSSA_TOKEN:-}"
|
|
13
|
+
|
|
14
|
+
echo "🔍 OSSA API - Search Agents Example"
|
|
15
|
+
echo ""
|
|
16
|
+
|
|
17
|
+
# 1. Search for security agents
|
|
18
|
+
echo "1️⃣ Search for security agents..."
|
|
19
|
+
curl -s "${BASE_URL}/agents?domain=security&limit=5&sort=downloads" \
|
|
20
|
+
-H "Accept: application/json" \
|
|
21
|
+
| jq '.agents[] | {name: .name, publisher: .publisher, version: .version, rating: .rating, downloads: .downloads}'
|
|
22
|
+
|
|
23
|
+
echo ""
|
|
24
|
+
|
|
25
|
+
# 2. Search with full-text query
|
|
26
|
+
echo "2️⃣ Full-text search for 'vulnerability scanner'..."
|
|
27
|
+
curl -s "${BASE_URL}/agents?q=vulnerability+scanner&limit=3" \
|
|
28
|
+
-H "Accept: application/json" \
|
|
29
|
+
| jq '.agents[] | {name: .name, description: .description}'
|
|
30
|
+
|
|
31
|
+
echo ""
|
|
32
|
+
|
|
33
|
+
# 3. Filter by capability
|
|
34
|
+
echo "3️⃣ Filter by capability: vulnerability-detection..."
|
|
35
|
+
curl -s "${BASE_URL}/agents?capability=vulnerability-detection&limit=3" \
|
|
36
|
+
-H "Accept: application/json" \
|
|
37
|
+
| jq '.agents[] | {name: .name, capabilities: .capabilities}'
|
|
38
|
+
|
|
39
|
+
echo ""
|
|
40
|
+
|
|
41
|
+
# 4. Filter by verified publishers only
|
|
42
|
+
echo "4️⃣ Verified publishers only with minimum rating 4.0..."
|
|
43
|
+
curl -s "${BASE_URL}/agents?verified=true&min_rating=4.0&limit=5" \
|
|
44
|
+
-H "Accept: application/json" \
|
|
45
|
+
| jq '.agents[] | {name: .name, publisher: .publisher, verified: .verified, rating: .rating}'
|
|
46
|
+
|
|
47
|
+
echo ""
|
|
48
|
+
|
|
49
|
+
# 5. Filter by compliance profile
|
|
50
|
+
echo "5️⃣ Agents with FedRAMP moderate compliance..."
|
|
51
|
+
curl -s "${BASE_URL}/agents?compliance=fedramp-moderate&limit=3" \
|
|
52
|
+
-H "Accept: application/json" \
|
|
53
|
+
| jq '.agents[] | {name: .name, compliance_profiles: .compliance_profiles}'
|
|
54
|
+
|
|
55
|
+
echo ""
|
|
56
|
+
|
|
57
|
+
# 6. Pagination example
|
|
58
|
+
echo "6️⃣ Pagination - First page (10 results)..."
|
|
59
|
+
curl -s "${BASE_URL}/agents?limit=10&offset=0" \
|
|
60
|
+
-H "Accept: application/json" \
|
|
61
|
+
| jq '{total: .total, limit: .limit, offset: .offset, count: (.agents | length)}'
|
|
62
|
+
|
|
63
|
+
echo ""
|
|
64
|
+
|
|
65
|
+
# 7. Combined filters
|
|
66
|
+
echo "7️⃣ Combined filters: domain=security, license=Apache-2.0, min_rating=3.5..."
|
|
67
|
+
curl -s "${BASE_URL}/agents?domain=security&license=Apache-2.0&min_rating=3.5" \
|
|
68
|
+
-H "Accept: application/json" \
|
|
69
|
+
| jq '.agents[] | {name: .name, license: .license, rating: .rating}'
|
|
70
|
+
|
|
71
|
+
echo ""
|
|
72
|
+
echo "✅ Search examples completed!"
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# OSSA API - Get Agent Details Example
|
|
4
|
+
#
|
|
5
|
+
# Demonstrates retrieving detailed information about agents.
|
|
6
|
+
#
|
|
7
|
+
|
|
8
|
+
set -e
|
|
9
|
+
|
|
10
|
+
# Configuration
|
|
11
|
+
BASE_URL="${OSSA_BASE_URL:-https://registry.openstandardagents.org/api/v1}"
|
|
12
|
+
PUBLISHER="${1:-blueflyio}"
|
|
13
|
+
AGENT_NAME="${2:-security-scanner}"
|
|
14
|
+
|
|
15
|
+
echo "📋 OSSA API - Get Agent Details Example"
|
|
16
|
+
echo ""
|
|
17
|
+
|
|
18
|
+
# 1. Get latest version of agent
|
|
19
|
+
echo "1️⃣ Get agent details: ${PUBLISHER}/${AGENT_NAME}..."
|
|
20
|
+
curl -s "${BASE_URL}/agents/${PUBLISHER}/${AGENT_NAME}" \
|
|
21
|
+
-H "Accept: application/json" \
|
|
22
|
+
| jq '{
|
|
23
|
+
name: .name,
|
|
24
|
+
version: .version,
|
|
25
|
+
publisher: .publisher.name,
|
|
26
|
+
verified: .publisher.verified,
|
|
27
|
+
description: .description,
|
|
28
|
+
license: .license,
|
|
29
|
+
taxonomy: .taxonomy,
|
|
30
|
+
capabilities: .capabilities,
|
|
31
|
+
downloads: .download_stats,
|
|
32
|
+
rating: .rating_info
|
|
33
|
+
}'
|
|
34
|
+
|
|
35
|
+
echo ""
|
|
36
|
+
|
|
37
|
+
# 2. List all versions
|
|
38
|
+
echo "2️⃣ List all versions of ${PUBLISHER}/${AGENT_NAME}..."
|
|
39
|
+
curl -s "${BASE_URL}/agents/${PUBLISHER}/${AGENT_NAME}/versions" \
|
|
40
|
+
-H "Accept: application/json" \
|
|
41
|
+
| jq '.versions[] | {version: .version, published_at: .published_at, downloads: .downloads, deprecated: .deprecated}'
|
|
42
|
+
|
|
43
|
+
echo ""
|
|
44
|
+
|
|
45
|
+
# 3. Get specific version
|
|
46
|
+
echo "3️⃣ Get specific version details..."
|
|
47
|
+
VERSION=$(curl -s "${BASE_URL}/agents/${PUBLISHER}/${AGENT_NAME}/versions" \
|
|
48
|
+
-H "Accept: application/json" \
|
|
49
|
+
| jq -r '.versions[0].version')
|
|
50
|
+
|
|
51
|
+
if [ -n "$VERSION" ]; then
|
|
52
|
+
curl -s "${BASE_URL}/agents/${PUBLISHER}/${AGENT_NAME}/${VERSION}" \
|
|
53
|
+
-H "Accept: application/json" \
|
|
54
|
+
| jq '{name: .name, version: .version, created_at: .created_at, manifest_url: .manifest_url}'
|
|
55
|
+
fi
|
|
56
|
+
|
|
57
|
+
echo ""
|
|
58
|
+
|
|
59
|
+
# 4. Get agent dependencies
|
|
60
|
+
echo "4️⃣ Get agent dependencies..."
|
|
61
|
+
curl -s "${BASE_URL}/agents/${PUBLISHER}/${AGENT_NAME}/dependencies" \
|
|
62
|
+
-H "Accept: application/json" \
|
|
63
|
+
| jq '{agent: .agent, version: .version, dependencies: .dependencies}'
|
|
64
|
+
|
|
65
|
+
echo ""
|
|
66
|
+
|
|
67
|
+
# 5. Get download statistics
|
|
68
|
+
echo "5️⃣ Get download statistics (last month)..."
|
|
69
|
+
curl -s "${BASE_URL}/agents/${PUBLISHER}/${AGENT_NAME}/stats?period=month" \
|
|
70
|
+
-H "Accept: application/json" \
|
|
71
|
+
| jq '{agent: .agent, period: .period, downloads: .downloads.total}'
|
|
72
|
+
|
|
73
|
+
echo ""
|
|
74
|
+
echo "✅ Agent details examples completed!"
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# OSSA API - Publish Agent Example
|
|
4
|
+
#
|
|
5
|
+
# Demonstrates publishing an agent to the registry.
|
|
6
|
+
# Requires OSSA_TOKEN environment variable.
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
set -e
|
|
10
|
+
|
|
11
|
+
# Configuration
|
|
12
|
+
BASE_URL="${OSSA_BASE_URL:-https://registry.openstandardagents.org/api/v1}"
|
|
13
|
+
TOKEN="${OSSA_TOKEN:-}"
|
|
14
|
+
|
|
15
|
+
if [ -z "$TOKEN" ]; then
|
|
16
|
+
echo "❌ Error: OSSA_TOKEN environment variable is required"
|
|
17
|
+
echo " Run: export OSSA_TOKEN=ossa_tok_xxx"
|
|
18
|
+
exit 1
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
echo "📦 OSSA API - Publish Agent Example"
|
|
22
|
+
echo ""
|
|
23
|
+
|
|
24
|
+
# Prepare the publish request
|
|
25
|
+
PUBLISH_REQUEST=$(cat <<'EOF'
|
|
26
|
+
{
|
|
27
|
+
"manifest": {
|
|
28
|
+
"apiVersion": "ossa/v0.3.0",
|
|
29
|
+
"kind": "Agent",
|
|
30
|
+
"metadata": {
|
|
31
|
+
"name": "example-curl-agent",
|
|
32
|
+
"version": "1.0.0",
|
|
33
|
+
"description": "Example agent published via curl",
|
|
34
|
+
"labels": {
|
|
35
|
+
"environment": "production",
|
|
36
|
+
"team": "devops"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"spec": {
|
|
40
|
+
"taxonomy": {
|
|
41
|
+
"domain": "infrastructure",
|
|
42
|
+
"subdomain": "monitoring",
|
|
43
|
+
"capability": "health-check"
|
|
44
|
+
},
|
|
45
|
+
"role": "Infrastructure health monitoring agent",
|
|
46
|
+
"llm": {
|
|
47
|
+
"provider": "anthropic",
|
|
48
|
+
"model": "claude-sonnet-4",
|
|
49
|
+
"temperature": 0.3,
|
|
50
|
+
"maxTokens": 4000
|
|
51
|
+
},
|
|
52
|
+
"capabilities": [
|
|
53
|
+
{
|
|
54
|
+
"name": "check_health",
|
|
55
|
+
"description": "Perform health check on infrastructure",
|
|
56
|
+
"input_schema": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["target"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"target": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Target URL or hostname"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"output_schema": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"status": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": ["healthy", "degraded", "unhealthy"]
|
|
72
|
+
},
|
|
73
|
+
"checks": {
|
|
74
|
+
"type": "array"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"runtime": {
|
|
81
|
+
"type": "serverless",
|
|
82
|
+
"config": {
|
|
83
|
+
"timeout": 60,
|
|
84
|
+
"memory": "256Mi"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"package": {
|
|
90
|
+
"tarball_url": "https://example.com/agents/example-curl-agent-1.0.0.tgz",
|
|
91
|
+
"shasum": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
92
|
+
"size_bytes": 102400
|
|
93
|
+
},
|
|
94
|
+
"documentation": {
|
|
95
|
+
"readme": "https://github.com/example/example-curl-agent#readme",
|
|
96
|
+
"repository": "https://github.com/example/example-curl-agent"
|
|
97
|
+
},
|
|
98
|
+
"license": "Apache-2.0",
|
|
99
|
+
"keywords": ["monitoring", "health-check", "infrastructure"]
|
|
100
|
+
}
|
|
101
|
+
EOF
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
# Publish the agent
|
|
105
|
+
echo "1️⃣ Publishing agent..."
|
|
106
|
+
RESPONSE=$(curl -s -w "\n%{http_code}" "${BASE_URL}/agents" \
|
|
107
|
+
-H "Authorization: Bearer ${TOKEN}" \
|
|
108
|
+
-H "Content-Type: application/json" \
|
|
109
|
+
-H "Accept: application/json" \
|
|
110
|
+
-d "${PUBLISH_REQUEST}")
|
|
111
|
+
|
|
112
|
+
HTTP_CODE=$(echo "$RESPONSE" | tail -n1)
|
|
113
|
+
BODY=$(echo "$RESPONSE" | head -n-1)
|
|
114
|
+
|
|
115
|
+
if [ "$HTTP_CODE" -eq 201 ]; then
|
|
116
|
+
echo "✅ Agent published successfully!"
|
|
117
|
+
echo ""
|
|
118
|
+
echo "$BODY" | jq '{
|
|
119
|
+
status: .status,
|
|
120
|
+
agent: {
|
|
121
|
+
name: .agent.name,
|
|
122
|
+
version: .agent.version,
|
|
123
|
+
publisher: .agent.publisher,
|
|
124
|
+
published_at: .agent.published_at,
|
|
125
|
+
registry_url: .agent.registry_url
|
|
126
|
+
},
|
|
127
|
+
verification: .verification
|
|
128
|
+
}'
|
|
129
|
+
else
|
|
130
|
+
echo "❌ Publishing failed with HTTP $HTTP_CODE"
|
|
131
|
+
echo "$BODY" | jq '.'
|
|
132
|
+
exit 1
|
|
133
|
+
fi
|
|
134
|
+
|
|
135
|
+
echo ""
|
|
136
|
+
echo "✅ Publish example completed!"
|