@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
package/docs/specs/policy-dsl.md
DELETED
|
@@ -1,925 +0,0 @@
|
|
|
1
|
-
# OSSA Policy DSL Specification
|
|
2
|
-
|
|
3
|
-
**Version:** 1.0.0
|
|
4
|
-
**Status:** Draft
|
|
5
|
-
**Last Updated:** 2025-12-03
|
|
6
|
-
|
|
7
|
-
## Abstract
|
|
8
|
-
|
|
9
|
-
This document defines the formal Policy Domain-Specific Language (DSL) for the Open Standard for Scalable AI Agents (OSSA). The Policy DSL provides a declarative, type-safe mechanism for defining agent behavior constraints, escalation rules, and autonomous decision-making policies.
|
|
10
|
-
|
|
11
|
-
## Table of Contents
|
|
12
|
-
|
|
13
|
-
1. [Overview](#overview)
|
|
14
|
-
2. [Grammar Definition](#grammar-definition)
|
|
15
|
-
3. [Type System](#type-system)
|
|
16
|
-
4. [Operators](#operators)
|
|
17
|
-
5. [Policy Rules](#policy-rules)
|
|
18
|
-
6. [Escalation Policies](#escalation-policies)
|
|
19
|
-
7. [Examples](#examples)
|
|
20
|
-
8. [Error Handling](#error-handling)
|
|
21
|
-
9. [Security Considerations](#security-considerations)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## 1. Overview
|
|
26
|
-
|
|
27
|
-
The Policy DSL enables OSSA-compliant agents to:
|
|
28
|
-
|
|
29
|
-
- **Define Constraints**: Specify what actions are allowed or forbidden
|
|
30
|
-
- **Escalate Decisions**: Route complex decisions to human oversight
|
|
31
|
-
- **Enforce Compliance**: Validate actions against regulatory frameworks
|
|
32
|
-
- **Manage Autonomy**: Control the level of agent decision-making authority
|
|
33
|
-
|
|
34
|
-
### Design Principles
|
|
35
|
-
|
|
36
|
-
1. **Declarative**: Policies describe "what" not "how"
|
|
37
|
-
2. **Composable**: Simple policies combine into complex rules
|
|
38
|
-
3. **Type-Safe**: Static validation prevents runtime errors
|
|
39
|
-
4. **Human-Readable**: Policies are understandable by non-programmers
|
|
40
|
-
5. **Machine-Parseable**: Unambiguous formal grammar
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## 2. Grammar Definition
|
|
45
|
-
|
|
46
|
-
### 2.1 EBNF Grammar
|
|
47
|
-
|
|
48
|
-
```ebnf
|
|
49
|
-
(* OSSA Policy DSL - EBNF Grammar v1.0 *)
|
|
50
|
-
|
|
51
|
-
(* Top-Level Structures *)
|
|
52
|
-
policy = "policy" identifier "{" policy_body "}" ;
|
|
53
|
-
policy_body = { policy_rule | escalation_rule } ;
|
|
54
|
-
|
|
55
|
-
(* Policy Rules *)
|
|
56
|
-
policy_rule = "rule" identifier "{"
|
|
57
|
-
condition_clause
|
|
58
|
-
action_clause
|
|
59
|
-
[ effect_clause ]
|
|
60
|
-
"}" ;
|
|
61
|
-
|
|
62
|
-
condition_clause = "when" condition ;
|
|
63
|
-
action_clause = "do" action ;
|
|
64
|
-
effect_clause = "then" effect ;
|
|
65
|
-
|
|
66
|
-
(* Conditions *)
|
|
67
|
-
condition = boolean_expr ;
|
|
68
|
-
boolean_expr = comparison_expr
|
|
69
|
-
| logical_expr
|
|
70
|
-
| "(" boolean_expr ")" ;
|
|
71
|
-
|
|
72
|
-
logical_expr = boolean_expr logical_op boolean_expr ;
|
|
73
|
-
logical_op = "and" | "or" | "not" ;
|
|
74
|
-
|
|
75
|
-
comparison_expr = value comparison_op value ;
|
|
76
|
-
comparison_op = "==" | "!=" | ">" | "<" | ">=" | "<="
|
|
77
|
-
| "contains" | "matches" | "in" | "startsWith" | "endsWith" ;
|
|
78
|
-
|
|
79
|
-
(* Values *)
|
|
80
|
-
value = literal
|
|
81
|
-
| variable
|
|
82
|
-
| function_call
|
|
83
|
-
| array_literal
|
|
84
|
-
| object_literal ;
|
|
85
|
-
|
|
86
|
-
literal = string_literal
|
|
87
|
-
| number_literal
|
|
88
|
-
| boolean_literal
|
|
89
|
-
| null_literal ;
|
|
90
|
-
|
|
91
|
-
string_literal = '"' { any_char - '"' } '"' ;
|
|
92
|
-
number_literal = [ "-" ] digit { digit } [ "." digit { digit } ] ;
|
|
93
|
-
boolean_literal = "true" | "false" ;
|
|
94
|
-
null_literal = "null" ;
|
|
95
|
-
|
|
96
|
-
variable = "$" identifier { "." identifier } ;
|
|
97
|
-
array_literal = "[" [ value { "," value } ] "]" ;
|
|
98
|
-
object_literal = "{" [ key_value { "," key_value } ] "}" ;
|
|
99
|
-
key_value = identifier ":" value ;
|
|
100
|
-
|
|
101
|
-
function_call = identifier "(" [ value { "," value } ] ")" ;
|
|
102
|
-
|
|
103
|
-
(* Actions *)
|
|
104
|
-
action = action_type action_params ;
|
|
105
|
-
action_type = "allow" | "deny" | "require_approval" | "log"
|
|
106
|
-
| "escalate" | "notify" | "execute" ;
|
|
107
|
-
|
|
108
|
-
action_params = "(" [ param { "," param } ] ")" ;
|
|
109
|
-
param = identifier "=" value ;
|
|
110
|
-
|
|
111
|
-
(* Effects *)
|
|
112
|
-
effect = "allow" | "deny" | "escalate" | "log" ;
|
|
113
|
-
|
|
114
|
-
(* Escalation Rules *)
|
|
115
|
-
escalation_rule = "escalate" identifier "{"
|
|
116
|
-
"when" condition
|
|
117
|
-
"to" escalation_target
|
|
118
|
-
[ "timeout" duration ]
|
|
119
|
-
[ "fallback" action ]
|
|
120
|
-
"}" ;
|
|
121
|
-
|
|
122
|
-
escalation_target = identifier | string_literal ;
|
|
123
|
-
duration = number_literal time_unit ;
|
|
124
|
-
time_unit = "s" | "m" | "h" | "d" ;
|
|
125
|
-
|
|
126
|
-
(* Identifiers *)
|
|
127
|
-
identifier = letter { letter | digit | "_" } ;
|
|
128
|
-
letter = "a" .. "z" | "A" .. "Z" ;
|
|
129
|
-
digit = "0" .. "9" ;
|
|
130
|
-
|
|
131
|
-
(* Comments *)
|
|
132
|
-
comment = "//" { any_char - newline } newline
|
|
133
|
-
| "/*" { any_char } "*/" ;
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### 2.2 Abstract Syntax Tree (AST)
|
|
137
|
-
|
|
138
|
-
```typescript
|
|
139
|
-
type PolicyAST = {
|
|
140
|
-
type: 'Policy';
|
|
141
|
-
name: string;
|
|
142
|
-
rules: PolicyRule[];
|
|
143
|
-
escalations: EscalationRule[];
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
type PolicyRule = {
|
|
147
|
-
type: 'Rule';
|
|
148
|
-
name: string;
|
|
149
|
-
condition: Condition;
|
|
150
|
-
action: Action;
|
|
151
|
-
effect?: Effect;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
type Condition = BooleanExpr;
|
|
155
|
-
|
|
156
|
-
type BooleanExpr =
|
|
157
|
-
| ComparisonExpr
|
|
158
|
-
| LogicalExpr
|
|
159
|
-
| { type: 'Group'; expr: BooleanExpr };
|
|
160
|
-
|
|
161
|
-
type ComparisonExpr = {
|
|
162
|
-
type: 'Comparison';
|
|
163
|
-
left: Value;
|
|
164
|
-
operator: ComparisonOperator;
|
|
165
|
-
right: Value;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
type LogicalExpr = {
|
|
169
|
-
type: 'Logical';
|
|
170
|
-
operator: LogicalOperator;
|
|
171
|
-
operands: BooleanExpr[];
|
|
172
|
-
};
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## 3. Type System
|
|
178
|
-
|
|
179
|
-
### 3.1 Core Types
|
|
180
|
-
|
|
181
|
-
```typescript
|
|
182
|
-
/**
|
|
183
|
-
* Policy condition that must be satisfied for action execution
|
|
184
|
-
*/
|
|
185
|
-
interface PolicyCondition {
|
|
186
|
-
/** Condition type */
|
|
187
|
-
type: 'comparison' | 'logical' | 'function';
|
|
188
|
-
|
|
189
|
-
/** Left-hand side value (for comparison) */
|
|
190
|
-
left?: Value;
|
|
191
|
-
|
|
192
|
-
/** Operator */
|
|
193
|
-
operator: ComparisonOperator | LogicalOperator;
|
|
194
|
-
|
|
195
|
-
/** Right-hand side value (for comparison) */
|
|
196
|
-
right?: Value;
|
|
197
|
-
|
|
198
|
-
/** Sub-conditions (for logical operators) */
|
|
199
|
-
conditions?: PolicyCondition[];
|
|
200
|
-
|
|
201
|
-
/** Function name (for function conditions) */
|
|
202
|
-
function?: string;
|
|
203
|
-
|
|
204
|
-
/** Function arguments */
|
|
205
|
-
args?: Value[];
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Action to perform when condition matches
|
|
210
|
-
*/
|
|
211
|
-
interface PolicyAction {
|
|
212
|
-
/** Action type */
|
|
213
|
-
type: ActionType;
|
|
214
|
-
|
|
215
|
-
/** Target resource or capability */
|
|
216
|
-
target?: string;
|
|
217
|
-
|
|
218
|
-
/** Action parameters */
|
|
219
|
-
params?: Record<string, Value>;
|
|
220
|
-
|
|
221
|
-
/** Effect of the action */
|
|
222
|
-
effect: Effect;
|
|
223
|
-
|
|
224
|
-
/** Notification configuration */
|
|
225
|
-
notify?: NotificationConfig;
|
|
226
|
-
|
|
227
|
-
/** Audit log configuration */
|
|
228
|
-
audit?: AuditConfig;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Complete policy rule
|
|
233
|
-
*/
|
|
234
|
-
interface PolicyRule {
|
|
235
|
-
/** Rule identifier */
|
|
236
|
-
id: string;
|
|
237
|
-
|
|
238
|
-
/** Human-readable description */
|
|
239
|
-
description?: string;
|
|
240
|
-
|
|
241
|
-
/** Condition that triggers this rule */
|
|
242
|
-
condition: PolicyCondition;
|
|
243
|
-
|
|
244
|
-
/** Action to perform */
|
|
245
|
-
action: PolicyAction;
|
|
246
|
-
|
|
247
|
-
/** Rule priority (higher = evaluated first) */
|
|
248
|
-
priority?: number;
|
|
249
|
-
|
|
250
|
-
/** Rule enabled state */
|
|
251
|
-
enabled?: boolean;
|
|
252
|
-
|
|
253
|
-
/** Rule metadata */
|
|
254
|
-
metadata?: Record<string, any>;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Escalation policy for human-in-the-loop workflows
|
|
259
|
-
*/
|
|
260
|
-
interface EscalationPolicy {
|
|
261
|
-
/** Escalation identifier */
|
|
262
|
-
id: string;
|
|
263
|
-
|
|
264
|
-
/** Condition that triggers escalation */
|
|
265
|
-
condition: PolicyCondition;
|
|
266
|
-
|
|
267
|
-
/** Escalation target (user, group, role) */
|
|
268
|
-
target: EscalationTarget;
|
|
269
|
-
|
|
270
|
-
/** Timeout for human response */
|
|
271
|
-
timeout?: Duration;
|
|
272
|
-
|
|
273
|
-
/** Fallback action if timeout expires */
|
|
274
|
-
fallback?: PolicyAction;
|
|
275
|
-
|
|
276
|
-
/** Escalation priority */
|
|
277
|
-
priority?: 'low' | 'medium' | 'high' | 'critical';
|
|
278
|
-
|
|
279
|
-
/** Notification channels */
|
|
280
|
-
channels?: NotificationChannel[];
|
|
281
|
-
}
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
### 3.2 Value Types
|
|
285
|
-
|
|
286
|
-
```typescript
|
|
287
|
-
type Value =
|
|
288
|
-
| string
|
|
289
|
-
| number
|
|
290
|
-
| boolean
|
|
291
|
-
| null
|
|
292
|
-
| Value[]
|
|
293
|
-
| Record<string, Value>
|
|
294
|
-
| Variable
|
|
295
|
-
| FunctionCall;
|
|
296
|
-
|
|
297
|
-
interface Variable {
|
|
298
|
-
type: 'variable';
|
|
299
|
-
path: string[]; // e.g., ['agent', 'cost', 'tokens']
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
interface FunctionCall {
|
|
303
|
-
type: 'function';
|
|
304
|
-
name: string;
|
|
305
|
-
args: Value[];
|
|
306
|
-
}
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
### 3.3 Operator Types
|
|
310
|
-
|
|
311
|
-
```typescript
|
|
312
|
-
/**
|
|
313
|
-
* Comparison operators for condition evaluation
|
|
314
|
-
*/
|
|
315
|
-
type ComparisonOperator =
|
|
316
|
-
| 'equals' // ==
|
|
317
|
-
| 'notEquals' // !=
|
|
318
|
-
| 'greaterThan' // >
|
|
319
|
-
| 'lessThan' // <
|
|
320
|
-
| 'greaterEqual' // >=
|
|
321
|
-
| 'lessEqual' // <=
|
|
322
|
-
| 'contains' // substring/array membership
|
|
323
|
-
| 'matches' // regex match
|
|
324
|
-
| 'in' // value in array/set
|
|
325
|
-
| 'startsWith' // string prefix
|
|
326
|
-
| 'endsWith'; // string suffix
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Logical operators for combining conditions
|
|
330
|
-
*/
|
|
331
|
-
type LogicalOperator =
|
|
332
|
-
| 'and' // &&
|
|
333
|
-
| 'or' // ||
|
|
334
|
-
| 'not'; // !
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Action types
|
|
338
|
-
*/
|
|
339
|
-
type ActionType =
|
|
340
|
-
| 'allow' // Permit action
|
|
341
|
-
| 'deny' // Block action
|
|
342
|
-
| 'require_approval' // Escalate to human
|
|
343
|
-
| 'log' // Audit log only
|
|
344
|
-
| 'escalate' // Trigger escalation policy
|
|
345
|
-
| 'notify' // Send notification
|
|
346
|
-
| 'execute'; // Execute custom function
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Action effects
|
|
350
|
-
*/
|
|
351
|
-
type Effect =
|
|
352
|
-
| 'allow' // Action is permitted
|
|
353
|
-
| 'deny' // Action is blocked
|
|
354
|
-
| 'escalate' // Escalate to human
|
|
355
|
-
| 'log'; // Log and continue
|
|
356
|
-
```
|
|
357
|
-
|
|
358
|
-
### 3.4 Duration Type
|
|
359
|
-
|
|
360
|
-
```typescript
|
|
361
|
-
interface Duration {
|
|
362
|
-
value: number;
|
|
363
|
-
unit: 'seconds' | 'minutes' | 'hours' | 'days';
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
// Helper function
|
|
367
|
-
function parseDuration(str: string): Duration {
|
|
368
|
-
const match = str.match(/^(\d+)(s|m|h|d)$/);
|
|
369
|
-
if (!match) throw new Error('Invalid duration format');
|
|
370
|
-
|
|
371
|
-
const unitMap = { s: 'seconds', m: 'minutes', h: 'hours', d: 'days' };
|
|
372
|
-
return {
|
|
373
|
-
value: parseInt(match[1]),
|
|
374
|
-
unit: unitMap[match[2]]
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
---
|
|
380
|
-
|
|
381
|
-
## 4. Operators
|
|
382
|
-
|
|
383
|
-
### 4.1 Comparison Operators
|
|
384
|
-
|
|
385
|
-
| Operator | Symbol | Description | Example |
|
|
386
|
-
|----------|--------|-------------|---------|
|
|
387
|
-
| `equals` | `==` | Equality check | `$cost.tokens == 1000` |
|
|
388
|
-
| `notEquals` | `!=` | Inequality check | `$severity != "low"` |
|
|
389
|
-
| `greaterThan` | `>` | Greater than | `$confidence > 0.8` |
|
|
390
|
-
| `lessThan` | `<` | Less than | `$latency < 500` |
|
|
391
|
-
| `greaterEqual` | `>=` | Greater or equal | `$cvss_score >= 7.0` |
|
|
392
|
-
| `lessEqual` | `<=` | Less or equal | `$cost.daily <= 100.00` |
|
|
393
|
-
| `contains` | `contains` | Substring/array membership | `$message contains "error"` |
|
|
394
|
-
| `matches` | `matches` | Regex match | `$email matches "^[a-z]+@"` |
|
|
395
|
-
| `in` | `in` | Value in collection | `$action in ["delete", "drop"]` |
|
|
396
|
-
| `startsWith` | `startsWith` | String prefix | `$resource startsWith "prod-"` |
|
|
397
|
-
| `endsWith` | `endsWith` | String suffix | `$file endsWith ".sql"` |
|
|
398
|
-
|
|
399
|
-
### 4.2 Logical Operators
|
|
400
|
-
|
|
401
|
-
| Operator | Symbol | Description | Example |
|
|
402
|
-
|----------|--------|-------------|---------|
|
|
403
|
-
| `and` | `and`, `&&` | Logical AND | `$cost > 10 and $priority == "high"` |
|
|
404
|
-
| `or` | `or`, `\|\|` | Logical OR | `$severity == "critical" or $cvss >= 9.0` |
|
|
405
|
-
| `not` | `not`, `!` | Logical NOT | `not ($action in $blocked_actions)` |
|
|
406
|
-
|
|
407
|
-
### 4.3 Operator Precedence
|
|
408
|
-
|
|
409
|
-
From highest to lowest:
|
|
410
|
-
|
|
411
|
-
1. Function calls: `func()`
|
|
412
|
-
2. Grouping: `()`
|
|
413
|
-
3. Negation: `not`, `!`
|
|
414
|
-
4. Comparison: `==`, `!=`, `>`, `<`, `>=`, `<=`, `contains`, `matches`, `in`, `startsWith`, `endsWith`
|
|
415
|
-
5. Logical AND: `and`, `&&`
|
|
416
|
-
6. Logical OR: `or`, `||`
|
|
417
|
-
|
|
418
|
-
---
|
|
419
|
-
|
|
420
|
-
## 5. Policy Rules
|
|
421
|
-
|
|
422
|
-
### 5.1 Rule Structure
|
|
423
|
-
|
|
424
|
-
```yaml
|
|
425
|
-
# YAML representation (equivalent to DSL)
|
|
426
|
-
rule: cost_limit_exceeded
|
|
427
|
-
description: Block actions that exceed daily cost limit
|
|
428
|
-
condition:
|
|
429
|
-
type: comparison
|
|
430
|
-
left: $cost.daily
|
|
431
|
-
operator: greaterThan
|
|
432
|
-
right: $constraints.cost.maxCostPerDay
|
|
433
|
-
action:
|
|
434
|
-
type: deny
|
|
435
|
-
effect: deny
|
|
436
|
-
notify:
|
|
437
|
-
channels: [email, slack]
|
|
438
|
-
message: "Daily cost limit exceeded: ${cost.daily} > ${constraints.cost.maxCostPerDay}"
|
|
439
|
-
priority: 100
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
### 5.2 Rule Evaluation
|
|
443
|
-
|
|
444
|
-
Rules are evaluated in **priority order** (highest first). The first matching rule determines the action.
|
|
445
|
-
|
|
446
|
-
**Evaluation Algorithm:**
|
|
447
|
-
|
|
448
|
-
```typescript
|
|
449
|
-
function evaluatePolicy(rules: PolicyRule[], context: Context): PolicyAction | null {
|
|
450
|
-
// Sort by priority (descending)
|
|
451
|
-
const sorted = rules
|
|
452
|
-
.filter(r => r.enabled !== false)
|
|
453
|
-
.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
|
|
454
|
-
|
|
455
|
-
for (const rule of sorted) {
|
|
456
|
-
if (evaluateCondition(rule.condition, context)) {
|
|
457
|
-
return rule.action;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
return null; // No matching rule (default allow)
|
|
462
|
-
}
|
|
463
|
-
```
|
|
464
|
-
|
|
465
|
-
### 5.3 Context Variables
|
|
466
|
-
|
|
467
|
-
Policies have access to runtime context via `$` variables:
|
|
468
|
-
|
|
469
|
-
```typescript
|
|
470
|
-
interface PolicyContext {
|
|
471
|
-
// Agent metadata
|
|
472
|
-
agent: {
|
|
473
|
-
name: string;
|
|
474
|
-
version: string;
|
|
475
|
-
capabilities: string[];
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
// Current action
|
|
479
|
-
action: {
|
|
480
|
-
type: string;
|
|
481
|
-
target: string;
|
|
482
|
-
params: Record<string, any>;
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
// Cost metrics
|
|
486
|
-
cost: {
|
|
487
|
-
tokens: number;
|
|
488
|
-
daily: number;
|
|
489
|
-
monthly: number;
|
|
490
|
-
currency: string;
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
// Performance metrics
|
|
494
|
-
performance: {
|
|
495
|
-
latency: number;
|
|
496
|
-
throughput: number;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
// Security context
|
|
500
|
-
security: {
|
|
501
|
-
user: string;
|
|
502
|
-
role: string;
|
|
503
|
-
permissions: string[];
|
|
504
|
-
};
|
|
505
|
-
|
|
506
|
-
// Compliance context
|
|
507
|
-
compliance: {
|
|
508
|
-
frameworks: string[];
|
|
509
|
-
policies: string[];
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
// Time context
|
|
513
|
-
time: {
|
|
514
|
-
timestamp: number;
|
|
515
|
-
hour: number;
|
|
516
|
-
day: string;
|
|
517
|
-
timezone: string;
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
```
|
|
521
|
-
|
|
522
|
-
---
|
|
523
|
-
|
|
524
|
-
## 6. Escalation Policies
|
|
525
|
-
|
|
526
|
-
### 6.1 Escalation Structure
|
|
527
|
-
|
|
528
|
-
```typescript
|
|
529
|
-
interface EscalationTarget {
|
|
530
|
-
type: 'user' | 'group' | 'role' | 'webhook';
|
|
531
|
-
identifier: string;
|
|
532
|
-
metadata?: Record<string, any>;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
interface NotificationChannel {
|
|
536
|
-
type: 'email' | 'slack' | 'pagerduty' | 'webhook' | 'sms';
|
|
537
|
-
config: Record<string, any>;
|
|
538
|
-
}
|
|
539
|
-
```
|
|
540
|
-
|
|
541
|
-
### 6.2 Escalation Flow
|
|
542
|
-
|
|
543
|
-
```
|
|
544
|
-
┌─────────────────────┐
|
|
545
|
-
│ Action Requested │
|
|
546
|
-
└──────────┬──────────┘
|
|
547
|
-
│
|
|
548
|
-
▼
|
|
549
|
-
┌─────────────────────┐
|
|
550
|
-
│ Evaluate Policies │
|
|
551
|
-
└──────────┬──────────┘
|
|
552
|
-
│
|
|
553
|
-
▼
|
|
554
|
-
┌─────┴─────┐
|
|
555
|
-
│ Match? │
|
|
556
|
-
└─────┬─────┘
|
|
557
|
-
Yes │ No (default allow)
|
|
558
|
-
│
|
|
559
|
-
▼
|
|
560
|
-
┌──────────────┐
|
|
561
|
-
│ Effect? │
|
|
562
|
-
└──────┬───────┘
|
|
563
|
-
│
|
|
564
|
-
┌──────┼──────┐
|
|
565
|
-
│ │ │
|
|
566
|
-
▼ ▼ ▼
|
|
567
|
-
ALLOW DENY ESCALATE
|
|
568
|
-
│ │ │
|
|
569
|
-
│ │ ▼
|
|
570
|
-
│ │ ┌──────────────────┐
|
|
571
|
-
│ │ │ Notify Human │
|
|
572
|
-
│ │ └────────┬─────────┘
|
|
573
|
-
│ │ │
|
|
574
|
-
│ │ ▼
|
|
575
|
-
│ │ ┌──────────────────┐
|
|
576
|
-
│ │ │ Wait for Response│
|
|
577
|
-
│ │ └────────┬─────────┘
|
|
578
|
-
│ │ │
|
|
579
|
-
│ │ ┌────┴────┐
|
|
580
|
-
│ │ │ Timeout?│
|
|
581
|
-
│ │ └────┬────┘
|
|
582
|
-
│ │ No │ Yes
|
|
583
|
-
│ │ │ │
|
|
584
|
-
│ │ │ ▼
|
|
585
|
-
│ │ │ Fallback Action
|
|
586
|
-
│ │ │
|
|
587
|
-
│ │ ▼
|
|
588
|
-
│ │ ┌──────────────────┐
|
|
589
|
-
│ │ │ Human Approval? │
|
|
590
|
-
│ │ └────────┬─────────┘
|
|
591
|
-
│ │ Yes │ No
|
|
592
|
-
│ │ │ │
|
|
593
|
-
▼ ▼ ▼ ▼
|
|
594
|
-
┌────────────────────────────┐
|
|
595
|
-
│ Execute or Block Action │
|
|
596
|
-
└────────────────────────────┘
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
### 6.3 Escalation Examples
|
|
600
|
-
|
|
601
|
-
```yaml
|
|
602
|
-
# High-severity security finding
|
|
603
|
-
escalation: critical_vulnerability
|
|
604
|
-
condition:
|
|
605
|
-
type: logical
|
|
606
|
-
operator: and
|
|
607
|
-
conditions:
|
|
608
|
-
- type: comparison
|
|
609
|
-
left: $security.cvss_score
|
|
610
|
-
operator: greaterEqual
|
|
611
|
-
right: 9.0
|
|
612
|
-
- type: comparison
|
|
613
|
-
left: $security.exploitable
|
|
614
|
-
operator: equals
|
|
615
|
-
right: true
|
|
616
|
-
to:
|
|
617
|
-
type: group
|
|
618
|
-
identifier: security-team
|
|
619
|
-
timeout:
|
|
620
|
-
value: 15
|
|
621
|
-
unit: minutes
|
|
622
|
-
priority: critical
|
|
623
|
-
channels:
|
|
624
|
-
- type: pagerduty
|
|
625
|
-
config:
|
|
626
|
-
service_id: P1234567
|
|
627
|
-
- type: slack
|
|
628
|
-
config:
|
|
629
|
-
channel: "#security-alerts"
|
|
630
|
-
fallback:
|
|
631
|
-
type: deny
|
|
632
|
-
effect: deny
|
|
633
|
-
notify:
|
|
634
|
-
message: "Automatic deny due to escalation timeout"
|
|
635
|
-
```
|
|
636
|
-
|
|
637
|
-
---
|
|
638
|
-
|
|
639
|
-
## 7. Examples
|
|
640
|
-
|
|
641
|
-
### 7.1 Cost Control Policy
|
|
642
|
-
|
|
643
|
-
```yaml
|
|
644
|
-
policy: cost_control
|
|
645
|
-
rules:
|
|
646
|
-
- rule: daily_limit
|
|
647
|
-
description: Enforce daily cost limit
|
|
648
|
-
condition:
|
|
649
|
-
type: comparison
|
|
650
|
-
left: $cost.daily
|
|
651
|
-
operator: greaterThan
|
|
652
|
-
right: $constraints.cost.maxCostPerDay
|
|
653
|
-
action:
|
|
654
|
-
type: deny
|
|
655
|
-
effect: deny
|
|
656
|
-
notify:
|
|
657
|
-
channels: [email]
|
|
658
|
-
message: "Daily cost limit exceeded"
|
|
659
|
-
priority: 100
|
|
660
|
-
|
|
661
|
-
- rule: high_cost_warning
|
|
662
|
-
description: Warn on high single-request cost
|
|
663
|
-
condition:
|
|
664
|
-
type: comparison
|
|
665
|
-
left: $cost.tokens
|
|
666
|
-
operator: greaterThan
|
|
667
|
-
right: 10000
|
|
668
|
-
action:
|
|
669
|
-
type: log
|
|
670
|
-
effect: allow
|
|
671
|
-
audit:
|
|
672
|
-
level: warning
|
|
673
|
-
message: "High token usage: ${cost.tokens}"
|
|
674
|
-
priority: 50
|
|
675
|
-
```
|
|
676
|
-
|
|
677
|
-
### 7.2 Security Policy
|
|
678
|
-
|
|
679
|
-
```yaml
|
|
680
|
-
policy: security_controls
|
|
681
|
-
rules:
|
|
682
|
-
- rule: block_destructive_actions
|
|
683
|
-
description: Block dangerous Kubernetes actions
|
|
684
|
-
condition:
|
|
685
|
-
type: logical
|
|
686
|
-
operator: and
|
|
687
|
-
conditions:
|
|
688
|
-
- type: comparison
|
|
689
|
-
left: $action.type
|
|
690
|
-
operator: in
|
|
691
|
-
right: [delete, drop, terminate]
|
|
692
|
-
- type: comparison
|
|
693
|
-
left: $action.target
|
|
694
|
-
operator: startsWith
|
|
695
|
-
right: "prod-"
|
|
696
|
-
action:
|
|
697
|
-
type: deny
|
|
698
|
-
effect: deny
|
|
699
|
-
notify:
|
|
700
|
-
channels: [slack]
|
|
701
|
-
message: "Blocked destructive action on production: ${action.type} ${action.target}"
|
|
702
|
-
priority: 200
|
|
703
|
-
|
|
704
|
-
escalations:
|
|
705
|
-
- escalation: critical_vulnerability
|
|
706
|
-
condition:
|
|
707
|
-
type: comparison
|
|
708
|
-
left: $security.cvss_score
|
|
709
|
-
operator: greaterEqual
|
|
710
|
-
right: 9.0
|
|
711
|
-
to:
|
|
712
|
-
type: group
|
|
713
|
-
identifier: security-team
|
|
714
|
-
timeout:
|
|
715
|
-
value: 15
|
|
716
|
-
unit: minutes
|
|
717
|
-
priority: critical
|
|
718
|
-
channels:
|
|
719
|
-
- type: pagerduty
|
|
720
|
-
config:
|
|
721
|
-
service_id: P1234567
|
|
722
|
-
fallback:
|
|
723
|
-
type: deny
|
|
724
|
-
effect: deny
|
|
725
|
-
```
|
|
726
|
-
|
|
727
|
-
### 7.3 Compliance Policy
|
|
728
|
-
|
|
729
|
-
```yaml
|
|
730
|
-
policy: gdpr_compliance
|
|
731
|
-
rules:
|
|
732
|
-
- rule: pii_access_logging
|
|
733
|
-
description: Log all PII access for GDPR compliance
|
|
734
|
-
condition:
|
|
735
|
-
type: logical
|
|
736
|
-
operator: and
|
|
737
|
-
conditions:
|
|
738
|
-
- type: comparison
|
|
739
|
-
left: $action.type
|
|
740
|
-
operator: in
|
|
741
|
-
right: [read, query, export]
|
|
742
|
-
- type: comparison
|
|
743
|
-
left: $action.target
|
|
744
|
-
operator: contains
|
|
745
|
-
right: "pii"
|
|
746
|
-
action:
|
|
747
|
-
type: log
|
|
748
|
-
effect: allow
|
|
749
|
-
audit:
|
|
750
|
-
level: info
|
|
751
|
-
compliance: [GDPR]
|
|
752
|
-
message: "PII access by ${security.user}: ${action.type} on ${action.target}"
|
|
753
|
-
priority: 150
|
|
754
|
-
|
|
755
|
-
- rule: pii_export_approval
|
|
756
|
-
description: Require approval for PII exports
|
|
757
|
-
condition:
|
|
758
|
-
type: logical
|
|
759
|
-
operator: and
|
|
760
|
-
conditions:
|
|
761
|
-
- type: comparison
|
|
762
|
-
left: $action.type
|
|
763
|
-
operator: equals
|
|
764
|
-
right: "export"
|
|
765
|
-
- type: comparison
|
|
766
|
-
left: $action.target
|
|
767
|
-
operator: contains
|
|
768
|
-
right: "pii"
|
|
769
|
-
action:
|
|
770
|
-
type: require_approval
|
|
771
|
-
effect: escalate
|
|
772
|
-
notify:
|
|
773
|
-
channels: [email]
|
|
774
|
-
message: "PII export requires approval: ${action.target}"
|
|
775
|
-
priority: 200
|
|
776
|
-
```
|
|
777
|
-
|
|
778
|
-
### 7.4 Time-Based Policy
|
|
779
|
-
|
|
780
|
-
```yaml
|
|
781
|
-
policy: business_hours
|
|
782
|
-
rules:
|
|
783
|
-
- rule: off_hours_escalation
|
|
784
|
-
description: Require approval for high-risk actions outside business hours
|
|
785
|
-
condition:
|
|
786
|
-
type: logical
|
|
787
|
-
operator: and
|
|
788
|
-
conditions:
|
|
789
|
-
- type: comparison
|
|
790
|
-
left: $action.risk_level
|
|
791
|
-
operator: equals
|
|
792
|
-
right: "high"
|
|
793
|
-
- type: logical
|
|
794
|
-
operator: or
|
|
795
|
-
conditions:
|
|
796
|
-
- type: comparison
|
|
797
|
-
left: $time.hour
|
|
798
|
-
operator: lessThan
|
|
799
|
-
right: 9
|
|
800
|
-
- type: comparison
|
|
801
|
-
left: $time.hour
|
|
802
|
-
operator: greaterThan
|
|
803
|
-
right: 17
|
|
804
|
-
- type: comparison
|
|
805
|
-
left: $time.day
|
|
806
|
-
operator: in
|
|
807
|
-
right: ["Saturday", "Sunday"]
|
|
808
|
-
action:
|
|
809
|
-
type: require_approval
|
|
810
|
-
effect: escalate
|
|
811
|
-
notify:
|
|
812
|
-
channels: [pagerduty]
|
|
813
|
-
message: "High-risk action outside business hours: ${action.type}"
|
|
814
|
-
priority: 150
|
|
815
|
-
```
|
|
816
|
-
|
|
817
|
-
---
|
|
818
|
-
|
|
819
|
-
## 8. Error Handling
|
|
820
|
-
|
|
821
|
-
### 8.1 Error Types
|
|
822
|
-
|
|
823
|
-
```typescript
|
|
824
|
-
type PolicyError =
|
|
825
|
-
| SyntaxError // Invalid DSL syntax
|
|
826
|
-
| ValidationError // Invalid condition/action
|
|
827
|
-
| EvaluationError // Runtime evaluation failure
|
|
828
|
-
| EscalationError // Escalation timeout/failure
|
|
829
|
-
| ContextError; // Missing context variable
|
|
830
|
-
|
|
831
|
-
interface PolicyErrorDetails {
|
|
832
|
-
type: PolicyError;
|
|
833
|
-
message: string;
|
|
834
|
-
rule?: string;
|
|
835
|
-
location?: {
|
|
836
|
-
line: number;
|
|
837
|
-
column: number;
|
|
838
|
-
};
|
|
839
|
-
context?: Record<string, any>;
|
|
840
|
-
}
|
|
841
|
-
```
|
|
842
|
-
|
|
843
|
-
### 8.2 Error Handling Strategies
|
|
844
|
-
|
|
845
|
-
| Error Type | Strategy | Fallback |
|
|
846
|
-
|------------|----------|----------|
|
|
847
|
-
| `SyntaxError` | Reject policy at load time | N/A |
|
|
848
|
-
| `ValidationError` | Reject policy at load time | N/A |
|
|
849
|
-
| `EvaluationError` | Log error, default deny | Deny action |
|
|
850
|
-
| `EscalationError` | Execute fallback action | Deny action |
|
|
851
|
-
| `ContextError` | Log warning, skip rule | Continue to next rule |
|
|
852
|
-
|
|
853
|
-
### 8.3 Safe Defaults
|
|
854
|
-
|
|
855
|
-
When policy evaluation fails:
|
|
856
|
-
|
|
857
|
-
1. **Default Deny**: If no explicit `allow` action, default is `deny`
|
|
858
|
-
2. **Fail Closed**: Evaluation errors result in `deny`
|
|
859
|
-
3. **Audit All**: All decisions (success/failure) are logged
|
|
860
|
-
4. **Escalate on Uncertainty**: Ambiguous cases escalate to human
|
|
861
|
-
|
|
862
|
-
---
|
|
863
|
-
|
|
864
|
-
## 9. Security Considerations
|
|
865
|
-
|
|
866
|
-
### 9.1 Policy Injection Prevention
|
|
867
|
-
|
|
868
|
-
- **Validate all policy sources**: Only load policies from trusted sources
|
|
869
|
-
- **Sanitize context variables**: Escape special characters
|
|
870
|
-
- **Limit expression complexity**: Prevent DoS via complex regex/expressions
|
|
871
|
-
|
|
872
|
-
### 9.2 Privilege Escalation Prevention
|
|
873
|
-
|
|
874
|
-
- **Enforce least privilege**: Policies cannot grant more access than agent has
|
|
875
|
-
- **Validate escalation targets**: Ensure targets exist and are authorized
|
|
876
|
-
- **Audit all escalations**: Log who approved what and when
|
|
877
|
-
|
|
878
|
-
### 9.3 Information Disclosure Prevention
|
|
879
|
-
|
|
880
|
-
- **Redact sensitive data in logs**: Mask PII, credentials, secrets
|
|
881
|
-
- **Limit error details**: Don't leak internal state in error messages
|
|
882
|
-
- **Validate notification channels**: Prevent exfiltration via malicious webhooks
|
|
883
|
-
|
|
884
|
-
### 9.4 Compliance Considerations
|
|
885
|
-
|
|
886
|
-
- **GDPR**: Log all PII access with justification
|
|
887
|
-
- **SOC 2**: Require approval for sensitive actions
|
|
888
|
-
- **HIPAA**: Encrypt all PHI access logs
|
|
889
|
-
- **PCI DSS**: Separate production/non-production policies
|
|
890
|
-
|
|
891
|
-
---
|
|
892
|
-
|
|
893
|
-
## Appendix A: TypeScript Type Definitions
|
|
894
|
-
|
|
895
|
-
See `/src/types/policy.ts` for full TypeScript definitions.
|
|
896
|
-
|
|
897
|
-
---
|
|
898
|
-
|
|
899
|
-
## Appendix B: JSON Schema
|
|
900
|
-
|
|
901
|
-
See `/schemas/policy.schema.json` for JSON Schema validation.
|
|
902
|
-
|
|
903
|
-
---
|
|
904
|
-
|
|
905
|
-
## Appendix C: Change Log
|
|
906
|
-
|
|
907
|
-
| Version | Date | Changes |
|
|
908
|
-
|---------|------|---------|
|
|
909
|
-
| 1.0.0 | 2025-12-03 | Initial specification |
|
|
910
|
-
|
|
911
|
-
---
|
|
912
|
-
|
|
913
|
-
## Appendix D: References
|
|
914
|
-
|
|
915
|
-
- [OSSA v0.2.3 Schema](../../spec/v0.2.3/ossa-0.2.3.schema.json)
|
|
916
|
-
- [EBNF Notation (ISO 14977)](https://www.iso.org/standard/26153.html)
|
|
917
|
-
- [JSON Schema Draft 07](https://json-schema.org/draft-07/schema)
|
|
918
|
-
- [OpenPolicy Agent (OPA)](https://www.openpolicyagent.org/)
|
|
919
|
-
- [Cedar Policy Language](https://www.cedarpolicy.com/)
|
|
920
|
-
|
|
921
|
-
---
|
|
922
|
-
|
|
923
|
-
**License:** MIT
|
|
924
|
-
**Maintainer:** OSSA Community
|
|
925
|
-
**Contact:** https://openstandardagents.org
|