@bluefly/openstandardagents 0.3.1 → 0.3.2
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/.devfile.yaml +87 -0
- package/.gitlab-ci-trigger +1 -0
- package/.wiki-config.json +24 -0
- package/CHANGELOG.md +212 -1
- package/README.md +31 -56
- package/dist/adapters/anthropic/runtime.js +2 -2
- package/dist/adapters/anthropic/runtime.js.map +1 -1
- package/dist/bot/architecture-validator-bot.d.ts +8 -0
- package/dist/bot/architecture-validator-bot.d.ts.map +1 -0
- package/dist/bot/architecture-validator-bot.js +15 -0
- package/dist/bot/architecture-validator-bot.js.map +1 -0
- package/dist/bot/ci-pipeline-bot.d.ts +7 -0
- package/dist/bot/ci-pipeline-bot.d.ts.map +1 -0
- package/dist/bot/ci-pipeline-bot.js +7 -0
- package/dist/bot/ci-pipeline-bot.js.map +1 -0
- package/dist/bot/compliance-bot.d.ts +56 -0
- package/dist/bot/compliance-bot.d.ts.map +1 -0
- package/dist/bot/compliance-bot.js +203 -0
- package/dist/bot/compliance-bot.js.map +1 -0
- package/dist/bot/dependency-updater-bot.d.ts +9 -0
- package/dist/bot/dependency-updater-bot.d.ts.map +1 -0
- package/dist/bot/dependency-updater-bot.js +9 -0
- package/dist/bot/dependency-updater-bot.js.map +1 -0
- package/dist/bot/security-scanner-bot.d.ts +11 -0
- package/dist/bot/security-scanner-bot.d.ts.map +1 -0
- package/dist/bot/security-scanner-bot.js +21 -0
- package/dist/bot/security-scanner-bot.js.map +1 -0
- package/dist/cli/commands/agent-card.command.d.ts +11 -0
- package/dist/cli/commands/agent-card.command.d.ts.map +1 -0
- package/dist/cli/commands/agent-card.command.js +285 -0
- package/dist/cli/commands/agent-card.command.js.map +1 -0
- package/dist/cli/commands/agents.command.d.ts +11 -0
- package/dist/cli/commands/agents.command.d.ts.map +1 -0
- package/dist/cli/commands/agents.command.js +326 -0
- package/dist/cli/commands/agents.command.js.map +1 -0
- package/dist/cli/commands/generate.command.d.ts +13 -2
- package/dist/cli/commands/generate.command.d.ts.map +1 -1
- package/dist/cli/commands/generate.command.js +204 -29
- package/dist/cli/commands/generate.command.js.map +1 -1
- package/dist/cli/commands/registry.command.d.ts +14 -0
- package/dist/cli/commands/registry.command.d.ts.map +1 -0
- package/dist/cli/commands/registry.command.js +428 -0
- package/dist/cli/commands/registry.command.js.map +1 -0
- package/dist/cli/commands/workspace.command.d.ts +14 -0
- package/dist/cli/commands/workspace.command.d.ts.map +1 -0
- package/dist/cli/commands/workspace.command.js +467 -0
- package/dist/cli/commands/workspace.command.js.map +1 -0
- package/dist/cli/index.js +9 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/di-container.d.ts.map +1 -1
- package/dist/di-container.js +20 -0
- package/dist/di-container.js.map +1 -1
- package/dist/services/codegen/codegen.service.d.ts +75 -0
- package/dist/services/codegen/codegen.service.d.ts.map +1 -0
- package/dist/services/codegen/codegen.service.js +136 -0
- package/dist/services/codegen/codegen.service.js.map +1 -0
- package/dist/services/codegen/generators/manifest.generator.d.ts +41 -0
- package/dist/services/codegen/generators/manifest.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/manifest.generator.js +178 -0
- package/dist/services/codegen/generators/manifest.generator.js.map +1 -0
- package/dist/services/codegen/generators/openapi.generator.d.ts +46 -0
- package/dist/services/codegen/generators/openapi.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/openapi.generator.js +157 -0
- package/dist/services/codegen/generators/openapi.generator.js.map +1 -0
- package/dist/services/codegen/generators/types.generator.d.ts +27 -0
- package/dist/services/codegen/generators/types.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/types.generator.js +97 -0
- package/dist/services/codegen/generators/types.generator.js.map +1 -0
- package/dist/services/codegen/generators/vscode.generator.d.ts +43 -0
- package/dist/services/codegen/generators/vscode.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/vscode.generator.js +163 -0
- package/dist/services/codegen/generators/vscode.generator.js.map +1 -0
- package/dist/services/codegen/generators/zod.generator.d.ts +31 -0
- package/dist/services/codegen/generators/zod.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/zod.generator.js +134 -0
- package/dist/services/codegen/generators/zod.generator.js.map +1 -0
- package/dist/services/codegen/index.d.ts +33 -0
- package/dist/services/codegen/index.d.ts.map +1 -0
- package/dist/services/codegen/index.js +36 -0
- package/dist/services/codegen/index.js.map +1 -0
- package/dist/spec/extensions/openapi/ossa-openapi-extensions.schema.json +804 -0
- package/dist/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +1 -1
- package/dist/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/dist/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/dist/spec/v0.3.0/runtime-bindings/anthropic.yaml +209 -0
- package/dist/spec/v0.3.1/examples/agent-with-identity.ossa.yaml +68 -0
- package/dist/spec/v0.3.1/examples/drupal-content-writer.ossa.yaml +1 -1
- package/dist/spec/v0.3.1/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/dist/spec/v0.3.1/examples/multi-provider-identity.ossa.yaml +236 -0
- package/dist/spec/v0.3.1/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/dist/spec/v0.3.1/extensions/agent-identity.yaml +594 -0
- package/dist/spec/v0.3.1/ossa-0.3.1.schema.json +300 -21
- package/dist/spec/v0.3.2/MIGRATION-v0.3.1-to-v0.3.2.md +293 -0
- package/dist/spec/v0.3.2/UNIFIED-SCHEMA.md +120 -0
- package/dist/spec/v0.3.2/access_tiers.yaml +375 -0
- package/dist/spec/v0.3.2/adapters/drupal.md +541 -0
- package/dist/spec/v0.3.2/adapters/symfony.md +659 -0
- package/dist/spec/v0.3.2/agent-test.schema.json +75 -0
- package/dist/spec/v0.3.2/examples/access-tiers/README.md +106 -0
- package/dist/spec/v0.3.2/examples/access-tiers/code-critic.ossa.yaml +119 -0
- package/dist/spec/v0.3.2/examples/access-tiers/compliance-governor.ossa.yaml +234 -0
- package/dist/spec/v0.3.2/examples/access-tiers/deployment-operator.ossa.yaml +201 -0
- package/dist/spec/v0.3.2/examples/access-tiers/doc-generator.ossa.yaml +117 -0
- package/dist/spec/v0.3.2/examples/access-tiers/security-scanner.ossa.yaml +133 -0
- package/dist/spec/v0.3.2/examples/agent-with-identity.ossa.yaml +68 -0
- package/dist/spec/v0.3.2/examples/drupal-content-writer.ossa.yaml +110 -0
- package/dist/spec/v0.3.2/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/dist/spec/v0.3.2/examples/multi-provider-identity.ossa.yaml +236 -0
- package/dist/spec/v0.3.2/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/dist/spec/v0.3.2/examples/tasks/data-transform.ossa.yaml +147 -0
- package/dist/spec/v0.3.2/examples/tasks/publish-content.ossa.yaml +125 -0
- package/dist/spec/v0.3.2/examples/workflows/content-publishing.ossa.yaml +190 -0
- package/dist/spec/v0.3.2/examples/workflows/deployment-pipeline.ossa.yaml +247 -0
- package/dist/spec/v0.3.2/extensions/agent-identity.yaml +594 -0
- package/dist/spec/v0.3.2/extensions/drupal.md +417 -0
- package/dist/spec/v0.3.2/infrastructure/service-ports.yaml +324 -0
- package/dist/spec/{v0.3.1/ossa-0.3.0.schema.json → v0.3.2/ossa-0.3.2.schema.json} +563 -34
- package/dist/spec/v0.3.2/protocols/delegation.yaml +239 -0
- package/dist/spec/v0.3.2/protocols/sse.md +494 -0
- package/dist/spec/v0.3.2/protocols/webrtc.md +600 -0
- package/dist/spec/v0.3.2/protocols/websocket.md +362 -0
- package/dist/spec/v0.3.2/runtime/RUNTIME.md +457 -0
- package/dist/spec/v0.3.2/runtime/memory-model.yaml +871 -0
- package/dist/spec/v0.3.2/runtime/runtime.yaml +926 -0
- package/dist/spec/v0.3.2/schemas/agent-unified.yaml +165 -0
- package/dist/spec/v0.3.2/schemas/capabilities.yaml +102 -0
- package/dist/spec/v0.3.2/schemas/functions.yaml +75 -0
- package/dist/spec/v0.3.2/schemas/messaging/channel.schema.json +245 -0
- package/dist/spec/v0.3.2/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/dist/spec/v0.3.2/schemas/messaging/message.schema.json +205 -0
- package/dist/spec/v0.3.2/schemas/messaging/subscription.schema.json +214 -0
- package/dist/spec/v0.3.2/schemas/runtime.yaml +102 -0
- package/dist/spec/v0.3.2/schemas/taxonomy.yaml +533 -0
- package/dist/spec/v0.3.2/schemas/unified-llm.yaml +91 -0
- package/dist/spec/v0.3.2/taxonomy.yaml +363 -0
- package/dist/types/generated/ossa-0.3.2.types.d.ts +367 -0
- package/dist/types/generated/ossa-0.3.2.types.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.2.types.js +10 -0
- package/dist/types/generated/ossa-0.3.2.types.js.map +1 -0
- package/dist/types/generated/ossa-0.3.2.zod.d.ts +36 -0
- package/dist/types/generated/ossa-0.3.2.zod.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.2.zod.js +25 -0
- package/dist/types/generated/ossa-0.3.2.zod.js.map +1 -0
- package/examples/adapters/drupal-eca-mapping.yaml +1 -1
- package/examples/adapters/drupal-eca-task.yaml +1 -1
- package/examples/adapters/drupal-flowdrop-mapping.yaml +1 -1
- package/examples/adapters/drupal-maestro-mapping.yaml +1 -1
- package/examples/adapters/mistral-agent.yaml +1 -1
- package/examples/adapters/symfony-messenger-task.yaml +1 -1
- package/examples/adapters/symfony-messenger-workflow.yaml +1 -1
- 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 -1
- 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/agents/architecture-healer-enterprise.yaml +1 -1
- package/examples/agents/dependency-healer-npm.yaml +1 -1
- package/examples/agents/spec-healer-openapi.yaml +1 -1
- package/examples/agents/wiki-healer-production.yaml +1 -1
- package/examples/agents-md/code-agent.ossa.json +36 -11
- package/examples/agents-md/monorepo-agent.ossa.yaml +1 -1
- package/examples/anthropic/claude-assistant.ossa.json +4 -4
- package/examples/autogen/multi-agent.ossa.json +2 -2
- package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +1 -1
- 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/contracts/data-consumer.ossa.yaml +1 -1
- package/examples/contracts/data-producer-v2.ossa.yaml +1 -1
- package/examples/contracts/data-producer.ossa.yaml +1 -1
- package/examples/crewai/research-team.ossa.json +2 -2
- package/examples/cursor/code-review-agent.ossa.json +2 -2
- package/examples/drupal/ai_agents_ossa-module/.agents/example-agent/agent.ossa.yaml +1 -1
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
- package/examples/extensions/agents-md-advanced.yml +1 -1
- package/examples/extensions/agents-md-basic.yml +1 -1
- package/examples/extensions/agents-md-sync.yml +1 -1
- package/examples/extensions/agents-md-v1.yml +1 -1
- package/examples/extensions/drupal-v1.yml +1 -1
- package/examples/extensions/encryption-multi-provider.yaml +4 -4
- package/examples/extensions/kagent-v1.yml +1 -1
- package/examples/extensions/knowledge-sources.yaml +1 -1
- package/examples/extensions/mcp-full-featured.yaml +1 -1
- package/examples/getting-started/01-minimal-agent.ossa.yaml +3 -3
- package/examples/getting-started/02-agent-with-tools.ossa.yaml +1 -1
- package/examples/getting-started/03-agent-with-safety.ossa.yaml +1 -1
- package/examples/getting-started/04-agent-with-messaging.ossa.yaml +2 -2
- package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
- 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.ossa.yaml +1 -1
- package/examples/kagent/security-scanner.ossa.yaml +1 -1
- package/examples/langchain/chain-agent.ossa.json +2 -2
- package/examples/langflow/workflow-agent.ossa.json +2 -2
- package/examples/langgraph/state-machine-agent.ossa.json +2 -2
- package/examples/llamaindex/rag-agent.ossa.json +2 -2
- package/examples/messaging/dependency-healer.ossa.yaml +1 -1
- package/examples/messaging/incident-responder.ossa.yaml +1 -1
- package/examples/messaging/routing-rules.ossa.yaml +3 -3
- package/examples/messaging/security-scanner.ossa.yaml +1 -1
- package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
- 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 +1 -1
- package/examples/openai/basic-agent.ossa.yaml +1 -1
- package/examples/openai/multi-tool-agent.ossa.json +2 -2
- package/examples/openai/swarm-agent.ossa.json +2 -2
- package/examples/production/document-analyzer-openai.yml +1 -1
- package/examples/quickstart/support-agent.ossa.yaml +1 -1
- package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +1 -1
- package/examples/real-world/rag-documentation-assistant.ossa.yaml +1 -1
- package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +1 -1
- package/examples/schema/reusable-components.yaml +1 -1
- package/examples/showcase/ci-pipeline.ossa.yaml +59 -0
- package/examples/showcase/code-assistant.ossa.yaml +118 -0
- package/examples/showcase/code-reviewer.ossa.yaml +61 -0
- package/examples/showcase/compliance-validator.ossa.yaml +62 -0
- package/examples/showcase/content-writer.ossa.yaml +67 -0
- package/examples/showcase/data-transformer.ossa.yaml +78 -0
- package/examples/showcase/doc-generator.ossa.yaml +68 -0
- package/examples/showcase/security-scanner.ossa.yaml +65 -0
- package/examples/showcase/test-generator.ossa.yaml +63 -0
- package/examples/showcase/workflow-orchestrator.ossa.yaml +129 -0
- package/examples/tasks/batch-email-sender.yaml +1 -1
- package/examples/tasks/data-transform.yaml +1 -1
- package/examples/tasks/publish-content.yaml +1 -1
- package/examples/templates/ossa-compliance.yaml +1 -1
- package/examples/unified/security-scanner.ossa.yaml +1 -1
- package/examples/vercel/edge-agent.ossa.json +2 -2
- package/examples/workflows/batch-email-campaign.yaml +1 -1
- package/examples/workflows/content-review-publish.yaml +1 -1
- package/examples/workflows/simple-etl.yaml +1 -1
- package/llms-ctx-full.txt +39 -0
- package/llms-ctx.txt +39 -0
- package/openapi/agent-communication.yaml +1 -1
- package/openapi/agent-crud.yaml +8 -8
- package/openapi/agent-discovery.yaml +2 -2
- package/openapi/agent-identity.yaml +8 -8
- package/openapi/cli-commands.openapi.yaml +231 -0
- package/openapi/core/ossa-core-api.openapi.yaml +1 -1
- package/openapi/core/ossa-registry-api.openapi.yaml +1 -1
- package/openapi/core/ossa-registry.openapi.yaml +1 -1
- package/openapi/core/unified-agent-gateway.openapi.yaml +1 -1
- package/openapi/github-sync.yaml +1 -1
- package/openapi/protocols/sse-streams.yaml +1 -1
- package/openapi/protocols/websocket-events.yaml +2 -2
- package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/critic-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/governor-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/helm-generator.openapi.yaml +1 -1
- package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/judge-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +1 -1
- package/openapi/reference-implementations/worker-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +1 -1
- package/package.json +13 -3
- package/spec/extensions/openapi/ossa-openapi-extensions.schema.json +804 -0
- package/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +1 -1
- package/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/spec/v0.3.0/runtime-bindings/anthropic.yaml +209 -0
- package/spec/v0.3.1/examples/agent-with-identity.ossa.yaml +68 -0
- package/spec/v0.3.1/examples/drupal-content-writer.ossa.yaml +1 -1
- package/spec/v0.3.1/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/spec/v0.3.1/examples/multi-provider-identity.ossa.yaml +236 -0
- package/spec/v0.3.1/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/spec/v0.3.1/extensions/agent-identity.yaml +594 -0
- package/spec/v0.3.1/ossa-0.3.1.schema.json +300 -21
- package/spec/v0.3.2/MIGRATION-v0.3.1-to-v0.3.2.md +293 -0
- package/spec/v0.3.2/UNIFIED-SCHEMA.md +120 -0
- package/spec/v0.3.2/access_tiers.yaml +375 -0
- package/spec/v0.3.2/adapters/drupal.md +541 -0
- package/spec/v0.3.2/adapters/symfony.md +659 -0
- package/spec/v0.3.2/agent-test.schema.json +75 -0
- package/spec/v0.3.2/examples/access-tiers/README.md +106 -0
- package/spec/v0.3.2/examples/access-tiers/code-critic.ossa.yaml +119 -0
- package/spec/v0.3.2/examples/access-tiers/compliance-governor.ossa.yaml +234 -0
- package/spec/v0.3.2/examples/access-tiers/deployment-operator.ossa.yaml +201 -0
- package/spec/v0.3.2/examples/access-tiers/doc-generator.ossa.yaml +117 -0
- package/spec/v0.3.2/examples/access-tiers/security-scanner.ossa.yaml +133 -0
- package/spec/v0.3.2/examples/agent-with-identity.ossa.yaml +68 -0
- package/spec/v0.3.2/examples/drupal-content-writer.ossa.yaml +110 -0
- package/spec/v0.3.2/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/spec/v0.3.2/examples/multi-provider-identity.ossa.yaml +236 -0
- package/spec/v0.3.2/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/spec/v0.3.2/examples/tasks/data-transform.ossa.yaml +147 -0
- package/spec/v0.3.2/examples/tasks/publish-content.ossa.yaml +125 -0
- package/spec/v0.3.2/examples/workflows/content-publishing.ossa.yaml +190 -0
- package/spec/v0.3.2/examples/workflows/deployment-pipeline.ossa.yaml +247 -0
- package/spec/v0.3.2/extensions/agent-identity.yaml +594 -0
- package/spec/v0.3.2/extensions/drupal.md +417 -0
- package/spec/v0.3.2/infrastructure/service-ports.yaml +324 -0
- package/spec/{v0.3.1/ossa-0.3.0.schema.json → v0.3.2/ossa-0.3.2.schema.json} +563 -34
- package/spec/v0.3.2/protocols/delegation.yaml +239 -0
- package/spec/v0.3.2/protocols/sse.md +494 -0
- package/spec/v0.3.2/protocols/webrtc.md +600 -0
- package/spec/v0.3.2/protocols/websocket.md +362 -0
- package/spec/v0.3.2/runtime/RUNTIME.md +457 -0
- package/spec/v0.3.2/runtime/memory-model.yaml +871 -0
- package/spec/v0.3.2/runtime/runtime.yaml +926 -0
- package/spec/v0.3.2/schemas/agent-unified.yaml +165 -0
- package/spec/v0.3.2/schemas/capabilities.yaml +102 -0
- package/spec/v0.3.2/schemas/functions.yaml +75 -0
- package/spec/v0.3.2/schemas/messaging/channel.schema.json +245 -0
- package/spec/v0.3.2/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/spec/v0.3.2/schemas/messaging/message.schema.json +205 -0
- package/spec/v0.3.2/schemas/messaging/subscription.schema.json +214 -0
- package/spec/v0.3.2/schemas/runtime.yaml +102 -0
- package/spec/v0.3.2/schemas/taxonomy.yaml +533 -0
- package/spec/v0.3.2/schemas/unified-llm.yaml +91 -0
- package/spec/v0.3.2/taxonomy.yaml +363 -0
- package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +0 -60
- package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +0 -68
- package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +0 -106
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://openstandardagents.org/schemas/v0.3.1/messaging/delivery-receipt.json",
|
|
4
|
+
"title": "OSSA Delivery Receipt Schema",
|
|
5
|
+
"description": "Schema for message delivery receipts in OSSA v0.3.1",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"messageId",
|
|
9
|
+
"status",
|
|
10
|
+
"timestamp"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"messageId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Original message ID",
|
|
16
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
17
|
+
},
|
|
18
|
+
"receiptId": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Unique receipt identifier (UUID v4)",
|
|
21
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
22
|
+
},
|
|
23
|
+
"status": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"accepted",
|
|
27
|
+
"delivered",
|
|
28
|
+
"acknowledged",
|
|
29
|
+
"processed",
|
|
30
|
+
"failed",
|
|
31
|
+
"rejected",
|
|
32
|
+
"expired"
|
|
33
|
+
],
|
|
34
|
+
"description": "Delivery status"
|
|
35
|
+
},
|
|
36
|
+
"timestamp": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Receipt timestamp (ISO 8601 UTC)",
|
|
39
|
+
"format": "date-time"
|
|
40
|
+
},
|
|
41
|
+
"subscriber": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Subscriber agent ID",
|
|
44
|
+
"pattern": "^ossa://agents/[a-z0-9-]+$",
|
|
45
|
+
"examples": [
|
|
46
|
+
"ossa://agents/code-reviewer"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"channel": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Channel where message was delivered",
|
|
52
|
+
"pattern": "^agents\\.([a-z0-9-]+\\.)+[a-z0-9-]+$"
|
|
53
|
+
},
|
|
54
|
+
"deliveryAttempt": {
|
|
55
|
+
"type": "integer",
|
|
56
|
+
"description": "Delivery attempt number (1-based)",
|
|
57
|
+
"minimum": 1
|
|
58
|
+
},
|
|
59
|
+
"processingTime": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"description": "Message processing time in milliseconds",
|
|
62
|
+
"minimum": 0
|
|
63
|
+
},
|
|
64
|
+
"error": {
|
|
65
|
+
"$ref": "#/definitions/DeliveryError",
|
|
66
|
+
"description": "Error details (only present when status is failed or rejected)"
|
|
67
|
+
},
|
|
68
|
+
"metadata": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"description": "Additional receipt metadata",
|
|
71
|
+
"additionalProperties": true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"definitions": {
|
|
76
|
+
"DeliveryError": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": [
|
|
79
|
+
"code",
|
|
80
|
+
"message"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"code": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Error code",
|
|
86
|
+
"examples": [
|
|
87
|
+
"TIMEOUT",
|
|
88
|
+
"HANDLER_ERROR",
|
|
89
|
+
"VALIDATION_FAILED",
|
|
90
|
+
"SUBSCRIBER_UNAVAILABLE"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"message": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Human-readable error message",
|
|
96
|
+
"maxLength": 512
|
|
97
|
+
},
|
|
98
|
+
"details": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"description": "Additional error details",
|
|
101
|
+
"additionalProperties": true
|
|
102
|
+
},
|
|
103
|
+
"stackTrace": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"description": "Stack trace (only in development/debug mode)",
|
|
106
|
+
"maxLength": 4096
|
|
107
|
+
},
|
|
108
|
+
"retryable": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"default": true,
|
|
111
|
+
"description": "Whether delivery can be retried"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"additionalProperties": false
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"examples": [
|
|
118
|
+
{
|
|
119
|
+
"messageId": "550e8400-e29b-41d4-a716-446655440000",
|
|
120
|
+
"receiptId": "660f9511-f3ac-52e5-b827-557766551111",
|
|
121
|
+
"status": "acknowledged",
|
|
122
|
+
"timestamp": "2025-12-18T14:32:16.234Z",
|
|
123
|
+
"subscriber": "ossa://agents/code-reviewer",
|
|
124
|
+
"channel": "agents.tasks.assigned",
|
|
125
|
+
"deliveryAttempt": 1,
|
|
126
|
+
"processingTime": 1234,
|
|
127
|
+
"metadata": {
|
|
128
|
+
"handlerName": "handleTaskAssigned",
|
|
129
|
+
"queueTime": 45
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"messageId": "770e8400-e29b-41d4-a716-446655440001",
|
|
134
|
+
"receiptId": "880f9511-f3ac-52e5-b827-557766551112",
|
|
135
|
+
"status": "failed",
|
|
136
|
+
"timestamp": "2025-12-18T14:35:00.567Z",
|
|
137
|
+
"subscriber": "ossa://agents/code-reviewer",
|
|
138
|
+
"channel": "agents.tasks.assigned",
|
|
139
|
+
"deliveryAttempt": 3,
|
|
140
|
+
"processingTime": 30000,
|
|
141
|
+
"error": {
|
|
142
|
+
"code": "TIMEOUT",
|
|
143
|
+
"message": "Handler exceeded 30s timeout",
|
|
144
|
+
"details": {
|
|
145
|
+
"timeout": 30000,
|
|
146
|
+
"actualDuration": 30124
|
|
147
|
+
},
|
|
148
|
+
"retryable": true
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"messageId": "990e8400-e29b-41d4-a716-446655440002",
|
|
153
|
+
"receiptId": "aa0f9511-f3ac-52e5-b827-557766551113",
|
|
154
|
+
"status": "rejected",
|
|
155
|
+
"timestamp": "2025-12-18T14:40:00.890Z",
|
|
156
|
+
"subscriber": "ossa://agents/code-reviewer",
|
|
157
|
+
"channel": "agents.tasks.assigned",
|
|
158
|
+
"deliveryAttempt": 1,
|
|
159
|
+
"processingTime": 15,
|
|
160
|
+
"error": {
|
|
161
|
+
"code": "VALIDATION_FAILED",
|
|
162
|
+
"message": "Message payload failed schema validation",
|
|
163
|
+
"details": {
|
|
164
|
+
"schemaErrors": [
|
|
165
|
+
{
|
|
166
|
+
"field": "payload.taskId",
|
|
167
|
+
"error": "Required field missing"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"retryable": false
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"messageId": "bb0e8400-e29b-41d4-a716-446655440003",
|
|
176
|
+
"receiptId": "cc0f9511-f3ac-52e5-b827-557766551114",
|
|
177
|
+
"status": "expired",
|
|
178
|
+
"timestamp": "2025-12-18T15:32:15.123Z",
|
|
179
|
+
"channel": "agents.tasks.assigned",
|
|
180
|
+
"deliveryAttempt": 0,
|
|
181
|
+
"error": {
|
|
182
|
+
"code": "TTL_EXPIRED",
|
|
183
|
+
"message": "Message exceeded time-to-live",
|
|
184
|
+
"details": {
|
|
185
|
+
"ttl": 3600,
|
|
186
|
+
"messageAge": 3605
|
|
187
|
+
},
|
|
188
|
+
"retryable": false
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://openstandardagents.org/schemas/v0.3.1/messaging/message.json",
|
|
4
|
+
"title": "OSSA Message Schema",
|
|
5
|
+
"description": "Schema for Agent-to-Agent messages in OSSA v0.3.1",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"channel",
|
|
10
|
+
"sender",
|
|
11
|
+
"timestamp",
|
|
12
|
+
"type",
|
|
13
|
+
"payload"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Unique message identifier (UUID v4)",
|
|
19
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
|
|
20
|
+
"examples": [
|
|
21
|
+
"550e8400-e29b-41d4-a716-446655440000"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"channel": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Target channel name (supports wildcards for subscriptions)",
|
|
27
|
+
"pattern": "^agents\\.(([a-z0-9-]+|\\*)\\.)+([a-z0-9-]+|#)$",
|
|
28
|
+
"minLength": 3,
|
|
29
|
+
"maxLength": 256,
|
|
30
|
+
"examples": [
|
|
31
|
+
"agents.tasks.assigned",
|
|
32
|
+
"agents.code-reviewer.completed",
|
|
33
|
+
"agents.broadcast.shutdown"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"sender": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Sender agent ID (OSSA URI format)",
|
|
39
|
+
"pattern": "^ossa://agents/[a-z0-9-]+$",
|
|
40
|
+
"examples": [
|
|
41
|
+
"ossa://agents/task-orchestrator",
|
|
42
|
+
"ossa://agents/code-reviewer"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"timestamp": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Message creation timestamp (ISO 8601 UTC)",
|
|
48
|
+
"format": "date-time",
|
|
49
|
+
"examples": [
|
|
50
|
+
"2025-12-18T14:32:15.123Z"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"type": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Message type identifier (PascalCase)",
|
|
56
|
+
"pattern": "^[A-Z][a-zA-Z0-9]*$",
|
|
57
|
+
"minLength": 1,
|
|
58
|
+
"maxLength": 64,
|
|
59
|
+
"examples": [
|
|
60
|
+
"TaskAssigned",
|
|
61
|
+
"TaskCompleted",
|
|
62
|
+
"StatusUpdate",
|
|
63
|
+
"ErrorOccurred"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"payload": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"description": "Message content (structure validated by type schema)",
|
|
69
|
+
"additionalProperties": true,
|
|
70
|
+
"examples": [
|
|
71
|
+
{
|
|
72
|
+
"taskId": "task-001",
|
|
73
|
+
"description": "Review PR #132"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"metadata": {
|
|
78
|
+
"$ref": "#/definitions/MessageMetadata",
|
|
79
|
+
"description": "Optional message metadata"
|
|
80
|
+
},
|
|
81
|
+
"qos": {
|
|
82
|
+
"$ref": "#/definitions/QualityOfService",
|
|
83
|
+
"description": "Delivery guarantees (defaults to at-least-once)"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"definitions": {
|
|
88
|
+
"MessageMetadata": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"description": "Message metadata for routing and processing",
|
|
91
|
+
"properties": {
|
|
92
|
+
"correlationId": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Correlation ID for request-response patterns",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"maxLength": 256
|
|
97
|
+
},
|
|
98
|
+
"replyTo": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Channel name for response messages",
|
|
101
|
+
"pattern": "^agents\\.([a-z0-9-]+\\.)+[a-z0-9-]+$"
|
|
102
|
+
},
|
|
103
|
+
"priority": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": ["low", "normal", "high", "critical"],
|
|
106
|
+
"default": "normal",
|
|
107
|
+
"description": "Message priority for routing and processing"
|
|
108
|
+
},
|
|
109
|
+
"ttl": {
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"description": "Time-to-live in seconds (message expires after this duration)",
|
|
112
|
+
"minimum": 1,
|
|
113
|
+
"maximum": 86400
|
|
114
|
+
},
|
|
115
|
+
"contentType": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "MIME type of payload content",
|
|
118
|
+
"default": "application/json",
|
|
119
|
+
"examples": [
|
|
120
|
+
"application/json",
|
|
121
|
+
"application/xml",
|
|
122
|
+
"text/plain"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"contentEncoding": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "Encoding of payload content",
|
|
128
|
+
"default": "utf-8",
|
|
129
|
+
"examples": [
|
|
130
|
+
"utf-8",
|
|
131
|
+
"base64",
|
|
132
|
+
"gzip"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"headers": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"description": "Custom headers for tracing, authentication, etc.",
|
|
138
|
+
"additionalProperties": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"examples": [
|
|
142
|
+
{
|
|
143
|
+
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
|
|
144
|
+
"user-agent": "OSSA/0.3.1"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"additionalProperties": false
|
|
150
|
+
},
|
|
151
|
+
"QualityOfService": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"description": "Message delivery guarantees",
|
|
154
|
+
"properties": {
|
|
155
|
+
"deliveryMode": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"enum": ["at-most-once", "at-least-once", "exactly-once"],
|
|
158
|
+
"default": "at-least-once",
|
|
159
|
+
"description": "Delivery guarantee level"
|
|
160
|
+
},
|
|
161
|
+
"persistent": {
|
|
162
|
+
"type": "boolean",
|
|
163
|
+
"default": true,
|
|
164
|
+
"description": "Whether message survives broker restarts"
|
|
165
|
+
},
|
|
166
|
+
"ordered": {
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"default": true,
|
|
169
|
+
"description": "Whether message order is preserved within channel"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"additionalProperties": false
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"examples": [
|
|
176
|
+
{
|
|
177
|
+
"id": "550e8400-e29b-41d4-a716-446655440000",
|
|
178
|
+
"channel": "agents.tasks.assigned",
|
|
179
|
+
"sender": "ossa://agents/task-orchestrator",
|
|
180
|
+
"timestamp": "2025-12-18T14:32:15.123Z",
|
|
181
|
+
"type": "TaskAssigned",
|
|
182
|
+
"payload": {
|
|
183
|
+
"taskId": "task-001",
|
|
184
|
+
"assignedTo": "ossa://agents/code-reviewer",
|
|
185
|
+
"description": "Review PR #132",
|
|
186
|
+
"priority": "high",
|
|
187
|
+
"deadline": "2025-12-18T18:00:00Z"
|
|
188
|
+
},
|
|
189
|
+
"metadata": {
|
|
190
|
+
"correlationId": "pr-132",
|
|
191
|
+
"replyTo": "agents.orchestrator.responses",
|
|
192
|
+
"priority": "high",
|
|
193
|
+
"ttl": 3600,
|
|
194
|
+
"headers": {
|
|
195
|
+
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"qos": {
|
|
199
|
+
"deliveryMode": "at-least-once",
|
|
200
|
+
"persistent": true,
|
|
201
|
+
"ordered": true
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://openstandardagents.org/schemas/v0.3.1/messaging/subscription.json",
|
|
4
|
+
"title": "OSSA Subscription Schema",
|
|
5
|
+
"description": "Schema for agent message subscriptions in OSSA v0.3.1",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"channel",
|
|
9
|
+
"handler"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"channel": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Channel name or pattern (supports wildcards)",
|
|
15
|
+
"pattern": "^agents\\.(([a-z0-9-]+|\\*)\\.)+([a-z0-9-]+|#)$",
|
|
16
|
+
"minLength": 3,
|
|
17
|
+
"maxLength": 256,
|
|
18
|
+
"examples": [
|
|
19
|
+
"agents.tasks.assigned",
|
|
20
|
+
"agents.*.completed",
|
|
21
|
+
"agents.#"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"schema": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Expected message schema for validation",
|
|
27
|
+
"examples": [
|
|
28
|
+
"TaskAssigned",
|
|
29
|
+
"TaskCompleted"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"handler": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Handler function name in agent implementation",
|
|
35
|
+
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$",
|
|
36
|
+
"examples": [
|
|
37
|
+
"handleTaskAssigned",
|
|
38
|
+
"onTaskCompleted",
|
|
39
|
+
"processMessage"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"filter": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"description": "Message filter criteria (JSONPath-like syntax)",
|
|
45
|
+
"additionalProperties": true,
|
|
46
|
+
"examples": [
|
|
47
|
+
{
|
|
48
|
+
"payload.assignedTo": "ossa://agents/code-reviewer",
|
|
49
|
+
"payload.priority": "high"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"priority": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": ["low", "normal", "high", "critical"],
|
|
56
|
+
"default": "normal",
|
|
57
|
+
"description": "Subscription processing priority"
|
|
58
|
+
},
|
|
59
|
+
"config": {
|
|
60
|
+
"$ref": "#/definitions/SubscriptionConfig",
|
|
61
|
+
"description": "Subscription-specific configuration"
|
|
62
|
+
},
|
|
63
|
+
"metadata": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"description": "Custom subscription metadata",
|
|
66
|
+
"additionalProperties": true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"definitions": {
|
|
71
|
+
"SubscriptionConfig": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"description": "Subscription configuration options",
|
|
74
|
+
"properties": {
|
|
75
|
+
"autoAcknowledge": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"default": false,
|
|
78
|
+
"description": "Automatically acknowledge messages after handler completes"
|
|
79
|
+
},
|
|
80
|
+
"maxConcurrentMessages": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 1,
|
|
83
|
+
"maximum": 1000,
|
|
84
|
+
"default": 10,
|
|
85
|
+
"description": "Maximum concurrent message processing"
|
|
86
|
+
},
|
|
87
|
+
"prefetchCount": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"minimum": 1,
|
|
90
|
+
"maximum": 1000,
|
|
91
|
+
"default": 10,
|
|
92
|
+
"description": "Number of messages to prefetch from broker"
|
|
93
|
+
},
|
|
94
|
+
"timeout": {
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"minimum": 100,
|
|
97
|
+
"maximum": 300000,
|
|
98
|
+
"default": 30000,
|
|
99
|
+
"description": "Handler timeout in milliseconds"
|
|
100
|
+
},
|
|
101
|
+
"retryOnError": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"default": true,
|
|
104
|
+
"description": "Retry message on handler error"
|
|
105
|
+
},
|
|
106
|
+
"maxRetries": {
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"minimum": 0,
|
|
109
|
+
"maximum": 100,
|
|
110
|
+
"default": 3,
|
|
111
|
+
"description": "Maximum retry attempts for failed handlers"
|
|
112
|
+
},
|
|
113
|
+
"retryBackoff": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"description": "Retry backoff configuration",
|
|
116
|
+
"properties": {
|
|
117
|
+
"strategy": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"enum": ["none", "linear", "exponential"],
|
|
120
|
+
"default": "exponential"
|
|
121
|
+
},
|
|
122
|
+
"initialDelay": {
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"minimum": 100,
|
|
125
|
+
"maximum": 60000,
|
|
126
|
+
"default": 1000,
|
|
127
|
+
"description": "Initial retry delay in milliseconds"
|
|
128
|
+
},
|
|
129
|
+
"maxDelay": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 1000,
|
|
132
|
+
"maximum": 300000,
|
|
133
|
+
"default": 30000,
|
|
134
|
+
"description": "Maximum retry delay in milliseconds"
|
|
135
|
+
},
|
|
136
|
+
"multiplier": {
|
|
137
|
+
"type": "number",
|
|
138
|
+
"minimum": 1,
|
|
139
|
+
"maximum": 10,
|
|
140
|
+
"default": 2,
|
|
141
|
+
"description": "Backoff multiplier for exponential strategy"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"additionalProperties": false
|
|
145
|
+
},
|
|
146
|
+
"deadLetterQueue": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"default": true,
|
|
149
|
+
"description": "Send failed messages to DLQ after max retries"
|
|
150
|
+
},
|
|
151
|
+
"messageOrdering": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"enum": ["strict", "relaxed", "none"],
|
|
154
|
+
"default": "relaxed",
|
|
155
|
+
"description": "Message ordering guarantee"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"additionalProperties": false
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"examples": [
|
|
162
|
+
{
|
|
163
|
+
"channel": "agents.tasks.assigned",
|
|
164
|
+
"schema": "TaskAssigned",
|
|
165
|
+
"handler": "handleTaskAssigned",
|
|
166
|
+
"filter": {
|
|
167
|
+
"payload.assignedTo": "ossa://agents/code-reviewer"
|
|
168
|
+
},
|
|
169
|
+
"priority": "high",
|
|
170
|
+
"config": {
|
|
171
|
+
"autoAcknowledge": false,
|
|
172
|
+
"maxConcurrentMessages": 5,
|
|
173
|
+
"prefetchCount": 10,
|
|
174
|
+
"timeout": 60000,
|
|
175
|
+
"retryOnError": true,
|
|
176
|
+
"maxRetries": 5,
|
|
177
|
+
"retryBackoff": {
|
|
178
|
+
"strategy": "exponential",
|
|
179
|
+
"initialDelay": 1000,
|
|
180
|
+
"maxDelay": 30000,
|
|
181
|
+
"multiplier": 2
|
|
182
|
+
},
|
|
183
|
+
"deadLetterQueue": true,
|
|
184
|
+
"messageOrdering": "strict"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"channel": "agents.*.completed",
|
|
189
|
+
"schema": "TaskCompleted",
|
|
190
|
+
"handler": "onAnyTaskCompleted",
|
|
191
|
+
"priority": "normal",
|
|
192
|
+
"config": {
|
|
193
|
+
"autoAcknowledge": true,
|
|
194
|
+
"maxConcurrentMessages": 20,
|
|
195
|
+
"timeout": 5000,
|
|
196
|
+
"retryOnError": false,
|
|
197
|
+
"messageOrdering": "none"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"channel": "agents.broadcast.shutdown",
|
|
202
|
+
"schema": "SystemShutdown",
|
|
203
|
+
"handler": "handleShutdown",
|
|
204
|
+
"priority": "critical",
|
|
205
|
+
"config": {
|
|
206
|
+
"autoAcknowledge": true,
|
|
207
|
+
"maxConcurrentMessages": 1,
|
|
208
|
+
"timeout": 10000,
|
|
209
|
+
"retryOnError": false,
|
|
210
|
+
"deadLetterQueue": false
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|