@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
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env tsx
|
|
2
|
-
/**
|
|
3
|
-
* Configure GitLab Branch Protection Rules
|
|
4
|
-
* Sets up protection for main and development branches via GitLab API
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { Gitlab } from '@gitbeaker/rest';
|
|
8
|
-
|
|
9
|
-
const PROJECT_ID = 'blueflyio/openstandardagents';
|
|
10
|
-
const TOKEN = process.env.GITLAB_TOKEN || process.env.SERVICE_ACCOUNT_OSSA_TOKEN || process.env.GITLAB_PUSH_TOKEN;
|
|
11
|
-
|
|
12
|
-
if (!TOKEN) {
|
|
13
|
-
console.error('ā Error: GITLAB_TOKEN or SERVICE_ACCOUNT_OSSA_TOKEN required');
|
|
14
|
-
process.exit(1);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const gitlab = new Gitlab({
|
|
18
|
-
host: 'https://gitlab.com',
|
|
19
|
-
token: TOKEN,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
interface ProtectionRule {
|
|
23
|
-
name: string;
|
|
24
|
-
push_access_levels?: Array<{ access_level: number }>;
|
|
25
|
-
merge_access_levels?: Array<{ access_level: number }>;
|
|
26
|
-
allow_force_push?: boolean;
|
|
27
|
-
allowed_to_push?: Array<{ user_id?: number; group_id?: number }>;
|
|
28
|
-
allowed_to_merge?: Array<{ user_id?: number; group_id?: number }>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
async function protectBranch(branch: string, rules: ProtectionRule): Promise<void> {
|
|
32
|
-
try {
|
|
33
|
-
console.log(`\nš Protecting branch: ${branch}`);
|
|
34
|
-
|
|
35
|
-
// Check if branch is already protected
|
|
36
|
-
const existing = await gitlab.ProtectedBranches.all(PROJECT_ID);
|
|
37
|
-
const isProtected = existing.some((pb: any) => pb.name === branch);
|
|
38
|
-
|
|
39
|
-
if (isProtected) {
|
|
40
|
-
console.log(` ā ļø ${branch} is already protected. Updating...`);
|
|
41
|
-
await gitlab.ProtectedBranches.unprotect(PROJECT_ID, branch);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Protect the branch
|
|
45
|
-
await gitlab.ProtectedBranches.protect(PROJECT_ID, branch, {
|
|
46
|
-
push_access_levels: [{ access_level: 0 }], // No one can push
|
|
47
|
-
merge_access_levels: [{ access_level: 40 }], // Maintainers can merge
|
|
48
|
-
allow_force_push: false,
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
console.log(` ā
${branch} protected successfully`);
|
|
52
|
-
console.log(` - Push: Blocked (no direct pushes)`);
|
|
53
|
-
console.log(` - Merge: Maintainers only (via MR)`);
|
|
54
|
-
console.log(` - Force push: Disabled`);
|
|
55
|
-
} catch (error: any) {
|
|
56
|
-
console.error(` ā Failed to protect ${branch}:`, error.message);
|
|
57
|
-
throw error;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
async function main() {
|
|
62
|
-
console.log('š Configuring GitLab Branch Protection Rules\n');
|
|
63
|
-
console.log(`Project: ${PROJECT_ID}`);
|
|
64
|
-
console.log(`Token: ${TOKEN.substring(0, 10)}...`);
|
|
65
|
-
|
|
66
|
-
try {
|
|
67
|
-
// Protect main branch
|
|
68
|
-
await protectBranch('main', {
|
|
69
|
-
name: 'main',
|
|
70
|
-
push_access_levels: [{ access_level: 0 }], // No one
|
|
71
|
-
merge_access_levels: [{ access_level: 40 }], // Maintainers
|
|
72
|
-
allow_force_push: false,
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
// Protect development branch
|
|
76
|
-
await protectBranch('development', {
|
|
77
|
-
name: 'development',
|
|
78
|
-
push_access_levels: [{ access_level: 0 }], // No one
|
|
79
|
-
merge_access_levels: [{ access_level: 40 }], // Maintainers
|
|
80
|
-
allow_force_push: false,
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
console.log('\nā
Branch protection configured successfully!');
|
|
84
|
-
console.log('\nProtected branches:');
|
|
85
|
-
console.log(' - main: No direct pushes, MR required');
|
|
86
|
-
console.log(' - development: No direct pushes, MR required');
|
|
87
|
-
console.log('\nView in GitLab:');
|
|
88
|
-
console.log(` https://gitlab.com/${PROJECT_ID}/-/settings/repository#protected-branches`);
|
|
89
|
-
} catch (error: any) {
|
|
90
|
-
console.error('\nā Error configuring branch protection:', error.message);
|
|
91
|
-
process.exit(1);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
main();
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env tsx
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* GitLab Issue Creation Helper (Zod Edition)
|
|
5
|
-
*
|
|
6
|
-
* Creates GitLab issues via API with proper validation and error handling.
|
|
7
|
-
* Uses Zod for runtime validation and type safety.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* npx tsx scripts/create-issue-helper.ts <title> <milestone-id> <labels> [description-file]
|
|
11
|
-
*
|
|
12
|
-
* Example:
|
|
13
|
-
* npx tsx scripts/create-issue-helper.ts "Enhance bin" 3 "enhancement,cli,bin" .gitlab/ISSUE-BIN-ENHANCEMENT.md
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import fs from 'fs';
|
|
17
|
-
import path from 'path';
|
|
18
|
-
import { fileURLToPath } from 'url';
|
|
19
|
-
import { z } from 'zod';
|
|
20
|
-
|
|
21
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
22
|
-
const __dirname = path.dirname(__filename);
|
|
23
|
-
|
|
24
|
-
// ============================================================================
|
|
25
|
-
// Zod Schemas
|
|
26
|
-
// ============================================================================
|
|
27
|
-
|
|
28
|
-
const ConfigSchema = z.object({
|
|
29
|
-
gitlabApiUrl: z.string().url(),
|
|
30
|
-
gitlabToken: z.string().min(1, 'GitLab token is required'),
|
|
31
|
-
projectId: z.string().min(1, 'Project ID is required'),
|
|
32
|
-
title: z.string().min(1, 'Title is required'),
|
|
33
|
-
milestoneId: z.number().int().positive('Milestone ID must be a positive integer'),
|
|
34
|
-
labels: z.array(z.string().min(1)).min(1, 'At least one label is required'),
|
|
35
|
-
description: z.string().optional(),
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
const GitLabIssueResponseSchema = z.object({
|
|
39
|
-
iid: z.number(),
|
|
40
|
-
web_url: z.string().url(),
|
|
41
|
-
title: z.string(),
|
|
42
|
-
state: z.string(),
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
const GitLabErrorResponseSchema = z.object({
|
|
46
|
-
message: z.string().optional(),
|
|
47
|
-
error: z.string().optional(),
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
type Config = z.infer<typeof ConfigSchema>;
|
|
51
|
-
type GitLabIssueResponse = z.infer<typeof GitLabIssueResponseSchema>;
|
|
52
|
-
type GitLabErrorResponse = z.infer<typeof GitLabErrorResponseSchema>;
|
|
53
|
-
|
|
54
|
-
// ============================================================================
|
|
55
|
-
// Configuration
|
|
56
|
-
// ============================================================================
|
|
57
|
-
|
|
58
|
-
function getConfig(): Config {
|
|
59
|
-
const args = process.argv.slice(2);
|
|
60
|
-
|
|
61
|
-
if (args.length < 3) {
|
|
62
|
-
console.error('ā Usage: tsx scripts/create-issue-helper.ts <title> <milestone-id> <labels> [description-file]');
|
|
63
|
-
console.error(' Example: tsx scripts/create-issue-helper.ts "Enhance bin" 3 "enhancement,cli,bin" .gitlab/ISSUE-BIN-ENHANCEMENT.md');
|
|
64
|
-
process.exit(1);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const [title, milestoneIdStr, labelsStr, descFile] = args;
|
|
68
|
-
|
|
69
|
-
// Parse milestone ID
|
|
70
|
-
const milestoneId = parseInt(milestoneIdStr, 10);
|
|
71
|
-
if (isNaN(milestoneId) || milestoneId <= 0) {
|
|
72
|
-
console.error(`ā Invalid milestone ID: ${milestoneIdStr}`);
|
|
73
|
-
process.exit(1);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Parse labels
|
|
77
|
-
const labels = labelsStr.split(',').map(l => l.trim()).filter(l => l.length > 0);
|
|
78
|
-
if (labels.length === 0) {
|
|
79
|
-
console.error(`ā No valid labels provided: ${labelsStr}`);
|
|
80
|
-
process.exit(1);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Read description file if provided
|
|
84
|
-
let description: string | undefined;
|
|
85
|
-
if (descFile) {
|
|
86
|
-
const descPath = path.isAbsolute(descFile) ? descFile : path.join(process.cwd(), descFile);
|
|
87
|
-
if (!fs.existsSync(descPath)) {
|
|
88
|
-
console.error(`ā Description file not found: ${descPath}`);
|
|
89
|
-
process.exit(1);
|
|
90
|
-
}
|
|
91
|
-
description = fs.readFileSync(descPath, 'utf-8');
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Get GitLab token (try multiple sources)
|
|
95
|
-
const gitlabToken = process.env.SERVICE_ACCOUNT_OSSA_TOKEN ||
|
|
96
|
-
process.env.SERVICE_ACCOUNT_VERSION_MANAGER_TOKEN ||
|
|
97
|
-
process.env.GITLAB_TOKEN ||
|
|
98
|
-
process.env.GITLAB_PUSH_TOKEN ||
|
|
99
|
-
'';
|
|
100
|
-
|
|
101
|
-
if (!gitlabToken) {
|
|
102
|
-
console.error('ā No GitLab token found. Please set one of:');
|
|
103
|
-
console.error(' - SERVICE_ACCOUNT_OSSA_TOKEN');
|
|
104
|
-
console.error(' - SERVICE_ACCOUNT_VERSION_MANAGER_TOKEN');
|
|
105
|
-
console.error(' - GITLAB_TOKEN');
|
|
106
|
-
console.error(' - GITLAB_PUSH_TOKEN');
|
|
107
|
-
process.exit(1);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Get project ID
|
|
111
|
-
const projectId = process.env.CI_PROJECT_ID ||
|
|
112
|
-
process.env.GITLAB_PROJECT_ID ||
|
|
113
|
-
'blueflyio/openstandardagents';
|
|
114
|
-
|
|
115
|
-
// Get API URL
|
|
116
|
-
const gitlabApiUrl = process.env.CI_API_V4_URL ||
|
|
117
|
-
process.env.GITLAB_API_URL ||
|
|
118
|
-
'https://gitlab.com/api/v4';
|
|
119
|
-
|
|
120
|
-
try {
|
|
121
|
-
return ConfigSchema.parse({
|
|
122
|
-
gitlabApiUrl,
|
|
123
|
-
gitlabToken,
|
|
124
|
-
projectId,
|
|
125
|
-
title,
|
|
126
|
-
milestoneId,
|
|
127
|
-
labels,
|
|
128
|
-
description,
|
|
129
|
-
});
|
|
130
|
-
} catch (error) {
|
|
131
|
-
if (error instanceof z.ZodError) {
|
|
132
|
-
console.error('ā Configuration validation failed:');
|
|
133
|
-
error.issues.forEach((issue) => {
|
|
134
|
-
console.error(` ⢠${issue.path.join('.')}: ${issue.message}`);
|
|
135
|
-
});
|
|
136
|
-
} else {
|
|
137
|
-
console.error('ā Configuration error:', error instanceof Error ? error.message : String(error));
|
|
138
|
-
}
|
|
139
|
-
process.exit(1);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// ============================================================================
|
|
144
|
-
// GitLab API
|
|
145
|
-
// ============================================================================
|
|
146
|
-
|
|
147
|
-
async function createIssue(config: Config): Promise<GitLabIssueResponse> {
|
|
148
|
-
const projectPath = encodeURIComponent(config.projectId);
|
|
149
|
-
const url = `${config.gitlabApiUrl}/projects/${projectPath}/issues`;
|
|
150
|
-
|
|
151
|
-
const payload = {
|
|
152
|
-
title: config.title,
|
|
153
|
-
description: config.description || '',
|
|
154
|
-
milestone_id: config.milestoneId,
|
|
155
|
-
labels: config.labels.join(','),
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
try {
|
|
159
|
-
const response = await fetch(url, {
|
|
160
|
-
method: 'POST',
|
|
161
|
-
headers: {
|
|
162
|
-
'PRIVATE-TOKEN': config.gitlabToken,
|
|
163
|
-
'Content-Type': 'application/json',
|
|
164
|
-
},
|
|
165
|
-
body: JSON.stringify(payload),
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
const responseText = await response.text();
|
|
169
|
-
let responseData: unknown;
|
|
170
|
-
|
|
171
|
-
try {
|
|
172
|
-
responseData = JSON.parse(responseText);
|
|
173
|
-
} catch {
|
|
174
|
-
responseData = responseText;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if (!response.ok) {
|
|
178
|
-
// Try to parse as error response
|
|
179
|
-
const errorData = GitLabErrorResponseSchema.safeParse(responseData);
|
|
180
|
-
if (errorData.success) {
|
|
181
|
-
const error = errorData.data;
|
|
182
|
-
throw new Error(`GitLab API error: ${error.message || error.error || responseText}`);
|
|
183
|
-
}
|
|
184
|
-
throw new Error(`GitLab API error (HTTP ${response.status}): ${responseText}`);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// Validate response
|
|
188
|
-
const issue = GitLabIssueResponseSchema.parse(responseData);
|
|
189
|
-
return issue;
|
|
190
|
-
} catch (error) {
|
|
191
|
-
if (error instanceof z.ZodError) {
|
|
192
|
-
console.error('ā Invalid response from GitLab API:');
|
|
193
|
-
error.issues.forEach((issue) => {
|
|
194
|
-
console.error(` ⢠${issue.path.join('.')}: ${issue.message}`);
|
|
195
|
-
});
|
|
196
|
-
throw new Error('Failed to parse GitLab API response');
|
|
197
|
-
}
|
|
198
|
-
throw error;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// ============================================================================
|
|
203
|
-
// Main
|
|
204
|
-
// ============================================================================
|
|
205
|
-
|
|
206
|
-
async function main(): Promise<void> {
|
|
207
|
-
console.log('š§ GitLab Issue Creation Helper (Zod Edition)');
|
|
208
|
-
console.log('==============================================\n');
|
|
209
|
-
|
|
210
|
-
const config = getConfig();
|
|
211
|
-
|
|
212
|
-
console.log(`š Configuration:`);
|
|
213
|
-
console.log(` Project: ${config.projectId}`);
|
|
214
|
-
console.log(` Title: ${config.title}`);
|
|
215
|
-
console.log(` Milestone: #${config.milestoneId}`);
|
|
216
|
-
console.log(` Labels: ${config.labels.join(', ')}`);
|
|
217
|
-
console.log(` Description: ${config.description ? `${config.description.length} chars` : 'none'}`);
|
|
218
|
-
console.log('');
|
|
219
|
-
|
|
220
|
-
try {
|
|
221
|
-
const issue = await createIssue(config);
|
|
222
|
-
|
|
223
|
-
console.log('ā
Issue created successfully!');
|
|
224
|
-
console.log(` Issue: !${issue.iid}`);
|
|
225
|
-
console.log(` URL: ${issue.web_url}`);
|
|
226
|
-
console.log(` State: ${issue.state}`);
|
|
227
|
-
} catch (error) {
|
|
228
|
-
console.error('ā Failed to create issue:', error instanceof Error ? error.message : String(error));
|
|
229
|
-
process.exit(1);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// Run
|
|
234
|
-
main().catch((error) => {
|
|
235
|
-
console.error('ā Fatal error:', error instanceof Error ? error.message : String(error));
|
|
236
|
-
process.exit(1);
|
|
237
|
-
});
|
|
238
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env tsx
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Create GitLab Issue for Milestone
|
|
5
|
-
* Quick script to create issues via GitLab API
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { readFileSync } from 'fs';
|
|
9
|
-
|
|
10
|
-
const GITLAB_API_URL = process.env.CI_API_V4_URL || 'https://gitlab.com/api/v4';
|
|
11
|
-
const GITLAB_TOKEN = process.env.SERVICE_ACCOUNT_OSSA_TOKEN ||
|
|
12
|
-
process.env.GITLAB_TOKEN ||
|
|
13
|
-
process.env.GITLAB_PUSH_TOKEN || '';
|
|
14
|
-
const PROJECT_ID = process.env.CI_PROJECT_ID || 'blueflyio/openstandardagents';
|
|
15
|
-
|
|
16
|
-
async function createIssue(
|
|
17
|
-
title: string,
|
|
18
|
-
description: string,
|
|
19
|
-
milestoneId: number,
|
|
20
|
-
labels: string[] = []
|
|
21
|
-
) {
|
|
22
|
-
if (!GITLAB_TOKEN) {
|
|
23
|
-
console.error('ā GITLAB_TOKEN or SERVICE_ACCOUNT_OSSA_TOKEN required');
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const projectPath = encodeURIComponent(PROJECT_ID);
|
|
28
|
-
const url = `${GITLAB_API_URL}/projects/${projectPath}/issues`;
|
|
29
|
-
|
|
30
|
-
try {
|
|
31
|
-
const response = await fetch(url, {
|
|
32
|
-
method: 'POST',
|
|
33
|
-
headers: {
|
|
34
|
-
'PRIVATE-TOKEN': GITLAB_TOKEN,
|
|
35
|
-
'Content-Type': 'application/json',
|
|
36
|
-
},
|
|
37
|
-
body: JSON.stringify({
|
|
38
|
-
title,
|
|
39
|
-
description,
|
|
40
|
-
milestone_id: milestoneId,
|
|
41
|
-
labels: labels.join(','),
|
|
42
|
-
}),
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
if (!response.ok) {
|
|
46
|
-
const error = await response.text();
|
|
47
|
-
throw new Error(`Failed to create issue: ${error}`);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const issue = await response.json();
|
|
51
|
-
console.log(`ā
Issue created: !${issue.iid}`);
|
|
52
|
-
console.log(` URL: ${issue.web_url}`);
|
|
53
|
-
return issue.iid;
|
|
54
|
-
} catch (error) {
|
|
55
|
-
console.error('ā Error creating issue:', error);
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Main
|
|
61
|
-
const args = process.argv.slice(2);
|
|
62
|
-
if (args.length < 3) {
|
|
63
|
-
console.log('Usage: tsx scripts/create-milestone-issue.ts <title> <milestone-id> <labels> [description-file]');
|
|
64
|
-
console.log('Example: tsx scripts/create-milestone-issue.ts "Enhance bin" 3 "enhancement,cli"');
|
|
65
|
-
process.exit(1);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const [title, milestoneId, labelsStr, descFile] = args;
|
|
69
|
-
const labels = labelsStr.split(',').map(l => l.trim());
|
|
70
|
-
const description = descFile && readFileSync(descFile, 'utf-8') || '';
|
|
71
|
-
|
|
72
|
-
createIssue(title, description, parseInt(milestoneId), labels);
|
|
73
|
-
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env tsx
|
|
2
|
-
/**
|
|
3
|
-
* Enhanced Version Manager Script
|
|
4
|
-
*
|
|
5
|
-
* Integrates with GitLab agents for automated version management.
|
|
6
|
-
* Can run standalone or be invoked by GitLab agents.
|
|
7
|
-
*
|
|
8
|
-
* Features:
|
|
9
|
-
* - GitLab API integration for milestone-based versioning
|
|
10
|
-
* - Automated MR creation
|
|
11
|
-
* - Version consistency validation
|
|
12
|
-
* - Documentation template processing
|
|
13
|
-
* - GitLab agent orchestration
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import fs from 'fs';
|
|
17
|
-
import path from 'path';
|
|
18
|
-
import { fileURLToPath } from 'url';
|
|
19
|
-
import { execSync } from 'child_process';
|
|
20
|
-
import { z } from 'zod';
|
|
21
|
-
|
|
22
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
23
|
-
const __dirname = path.dirname(__filename);
|
|
24
|
-
|
|
25
|
-
// ============================================================================
|
|
26
|
-
// Configuration
|
|
27
|
-
// ============================================================================
|
|
28
|
-
|
|
29
|
-
const VERSION_FILE = path.join(process.cwd(), '.version.json');
|
|
30
|
-
const GITLAB_API_URL = process.env.CI_API_V4_URL || process.env.GITLAB_API_URL || 'https://gitlab.com/api/v4';
|
|
31
|
-
// Use service account token (preferred) or fallback to user token
|
|
32
|
-
const GITLAB_TOKEN = process.env.SERVICE_ACCOUNT_VERSION_MANAGER_TOKEN ||
|
|
33
|
-
process.env.GITLAB_TOKEN ||
|
|
34
|
-
process.env.GITLAB_PUSH_TOKEN || '';
|
|
35
|
-
const PROJECT_ID = process.env.CI_PROJECT_ID || '';
|
|
36
|
-
|
|
37
|
-
// ============================================================================
|
|
38
|
-
// Zod Schemas
|
|
39
|
-
// ============================================================================
|
|
40
|
-
|
|
41
|
-
const VersionConfigSchema = z.object({
|
|
42
|
-
current: z.string(),
|
|
43
|
-
latest_stable: z.string(),
|
|
44
|
-
spec_path: z.string(),
|
|
45
|
-
schema_file: z.string(),
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
const BumpTypeSchema = z.enum(['major', 'minor', 'patch', 'rc', 'release']);
|
|
49
|
-
|
|
50
|
-
type VersionConfig = z.infer<typeof VersionConfigSchema>;
|
|
51
|
-
type BumpType = z.infer<typeof BumpTypeSchema>;
|
|
52
|
-
|
|
53
|
-
// ============================================================================
|
|
54
|
-
// Version Management
|
|
55
|
-
// ============================================================================
|
|
56
|
-
|
|
57
|
-
function getVersionConfig(): VersionConfig {
|
|
58
|
-
if (!fs.existsSync(VERSION_FILE)) {
|
|
59
|
-
throw new Error('.version.json not found');
|
|
60
|
-
}
|
|
61
|
-
const config = JSON.parse(fs.readFileSync(VERSION_FILE, 'utf-8'));
|
|
62
|
-
return VersionConfigSchema.parse(config);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function bumpVersion(current: string, type: BumpType): string {
|
|
66
|
-
const rcMatch = current.match(/^(\d+)\.(\d+)\.(\d+)-RC$/);
|
|
67
|
-
if (rcMatch) {
|
|
68
|
-
if (type === 'release') {
|
|
69
|
-
return `${rcMatch[1]}.${rcMatch[2]}.${rcMatch[3]}`;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const match = current.match(/^(\d+)\.(\d+)\.(\d+)$/);
|
|
74
|
-
if (!match) throw new Error(`Invalid version format: ${current}`);
|
|
75
|
-
|
|
76
|
-
let [, major, minor, patch] = match.map(Number);
|
|
77
|
-
|
|
78
|
-
switch (type) {
|
|
79
|
-
case 'major':
|
|
80
|
-
return `${major + 1}.0.0`;
|
|
81
|
-
case 'minor':
|
|
82
|
-
return `${major}.${minor + 1}.0`;
|
|
83
|
-
case 'patch':
|
|
84
|
-
return `${major}.${minor}.${patch + 1}`;
|
|
85
|
-
case 'rc':
|
|
86
|
-
return `${major}.${minor}.${patch + 1}-RC`;
|
|
87
|
-
default:
|
|
88
|
-
throw new Error(`Unknown bump type: ${type}`);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// ============================================================================
|
|
93
|
-
// GitLab Integration
|
|
94
|
-
// ============================================================================
|
|
95
|
-
|
|
96
|
-
async function getMilestoneVersion(milestoneId?: string): Promise<string | null> {
|
|
97
|
-
if (!milestoneId || !GITLAB_TOKEN || !PROJECT_ID) {
|
|
98
|
-
return null;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
try {
|
|
102
|
-
const response = await fetch(
|
|
103
|
-
`${GITLAB_API_URL}/projects/${PROJECT_ID}/milestones/${milestoneId}`,
|
|
104
|
-
{
|
|
105
|
-
headers: {
|
|
106
|
-
'PRIVATE-TOKEN': GITLAB_TOKEN,
|
|
107
|
-
},
|
|
108
|
-
}
|
|
109
|
-
);
|
|
110
|
-
|
|
111
|
-
if (!response.ok) return null;
|
|
112
|
-
|
|
113
|
-
const milestone = await response.json();
|
|
114
|
-
const title = milestone.title || '';
|
|
115
|
-
|
|
116
|
-
// Extract version from milestone title (e.g., "v0.2.6" or "0.2.6")
|
|
117
|
-
const versionMatch = title.match(/(\d+\.\d+\.\d+)/);
|
|
118
|
-
return versionMatch ? versionMatch[1] : null;
|
|
119
|
-
} catch (error) {
|
|
120
|
-
console.warn('Failed to fetch milestone:', error);
|
|
121
|
-
return null;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
async function createMergeRequest(
|
|
126
|
-
sourceBranch: string,
|
|
127
|
-
targetBranch: string,
|
|
128
|
-
title: string,
|
|
129
|
-
description: string
|
|
130
|
-
): Promise<number | null> {
|
|
131
|
-
if (!GITLAB_TOKEN || !PROJECT_ID) {
|
|
132
|
-
console.warn('GitLab credentials not available, skipping MR creation');
|
|
133
|
-
return null;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
try {
|
|
137
|
-
const response = await fetch(
|
|
138
|
-
`${GITLAB_API_URL}/projects/${PROJECT_ID}/merge_requests`,
|
|
139
|
-
{
|
|
140
|
-
method: 'POST',
|
|
141
|
-
headers: {
|
|
142
|
-
'PRIVATE-TOKEN': GITLAB_TOKEN,
|
|
143
|
-
'Content-Type': 'application/json',
|
|
144
|
-
},
|
|
145
|
-
body: JSON.stringify({
|
|
146
|
-
source_branch: sourceBranch,
|
|
147
|
-
target_branch: targetBranch,
|
|
148
|
-
title,
|
|
149
|
-
description,
|
|
150
|
-
labels: ['version-bump', 'automated', 'chore'],
|
|
151
|
-
remove_source_branch: true,
|
|
152
|
-
}),
|
|
153
|
-
}
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
if (!response.ok) {
|
|
157
|
-
const error = await response.text();
|
|
158
|
-
throw new Error(`Failed to create MR: ${error}`);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
const mr = await response.json();
|
|
162
|
-
return mr.iid;
|
|
163
|
-
} catch (error) {
|
|
164
|
-
console.error('Failed to create merge request:', error);
|
|
165
|
-
return null;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// ============================================================================
|
|
170
|
-
// Main Execution
|
|
171
|
-
// ============================================================================
|
|
172
|
-
|
|
173
|
-
async function main() {
|
|
174
|
-
const args = process.argv.slice(2);
|
|
175
|
-
const bumpType = BumpTypeSchema.parse(args[0] || 'patch');
|
|
176
|
-
const milestoneId = process.env.CI_MILESTONE_ID || args[1];
|
|
177
|
-
|
|
178
|
-
console.log('š¤ Enhanced Version Manager');
|
|
179
|
-
console.log('===========================\n');
|
|
180
|
-
|
|
181
|
-
const config = getVersionConfig();
|
|
182
|
-
console.log(`š¦ Current version: ${config.current}`);
|
|
183
|
-
|
|
184
|
-
// Try to get version from milestone
|
|
185
|
-
let targetVersion: string | null = null;
|
|
186
|
-
if (milestoneId) {
|
|
187
|
-
targetVersion = await getMilestoneVersion(milestoneId);
|
|
188
|
-
if (targetVersion) {
|
|
189
|
-
console.log(`šÆ Milestone version: ${targetVersion}`);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// Calculate new version
|
|
194
|
-
const newVersion = targetVersion || bumpVersion(config.current, bumpType);
|
|
195
|
-
console.log(`š New version: ${newVersion}\n`);
|
|
196
|
-
|
|
197
|
-
// Update .version.json
|
|
198
|
-
config.latest_stable = config.current.replace('-RC', '');
|
|
199
|
-
config.current = newVersion;
|
|
200
|
-
fs.writeFileSync(VERSION_FILE, JSON.stringify(config, null, 2) + '\n');
|
|
201
|
-
console.log('ā
Updated .version.json');
|
|
202
|
-
|
|
203
|
-
// Run sync
|
|
204
|
-
console.log('\nš Syncing version references...');
|
|
205
|
-
execSync('npm run version:sync', { stdio: 'inherit' });
|
|
206
|
-
|
|
207
|
-
// Process docs
|
|
208
|
-
console.log('\nš Processing documentation templates...');
|
|
209
|
-
execSync('npm run docs:process', { stdio: 'inherit' });
|
|
210
|
-
|
|
211
|
-
// Validate
|
|
212
|
-
console.log('\nš Validating version consistency...');
|
|
213
|
-
try {
|
|
214
|
-
execSync('npm run version:sync -- --check', { stdio: 'inherit' });
|
|
215
|
-
console.log('ā
Version consistency validated');
|
|
216
|
-
} catch (error) {
|
|
217
|
-
console.error('ā Version consistency check failed');
|
|
218
|
-
process.exit(1);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Git operations (if in CI or explicitly requested)
|
|
222
|
-
if (process.env.CI || process.argv.includes('--create-mr')) {
|
|
223
|
-
const targetBranch = process.env.CI_MERGE_REQUEST_TARGET_BRANCH_NAME || 'development';
|
|
224
|
-
const sourceBranch = `chore/version-bump-${newVersion}`;
|
|
225
|
-
|
|
226
|
-
console.log(`\nšæ Creating branch: ${sourceBranch}`);
|
|
227
|
-
execSync(`git checkout -b ${sourceBranch}`, { stdio: 'inherit' });
|
|
228
|
-
|
|
229
|
-
console.log('\nš Committing changes...');
|
|
230
|
-
execSync('git add .', { stdio: 'inherit' });
|
|
231
|
-
execSync(`git commit -m "chore: bump version to ${newVersion}"`, { stdio: 'inherit' });
|
|
232
|
-
|
|
233
|
-
console.log('\nā¬ļø Pushing branch...');
|
|
234
|
-
execSync(`git push -u origin ${sourceBranch}`, { stdio: 'inherit' });
|
|
235
|
-
|
|
236
|
-
console.log('\nš Creating merge request...');
|
|
237
|
-
const mrId = await createMergeRequest(
|
|
238
|
-
sourceBranch,
|
|
239
|
-
targetBranch,
|
|
240
|
-
`chore: bump version to ${newVersion}`,
|
|
241
|
-
`Automated version bump to ${newVersion}\n\nTriggered by: ${milestoneId ? 'Milestone' : 'Manual'}\n\nChanges:\n- Updated .version.json\n- Synced package.json files\n- Updated documentation\n- Created spec/v${newVersion}/ directory`
|
|
242
|
-
);
|
|
243
|
-
|
|
244
|
-
if (mrId) {
|
|
245
|
-
console.log(`ā
Merge request created: !${mrId}`);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
console.log('\nā
Version management complete!');
|
|
250
|
-
console.log(` ${config.current} ā ${newVersion}`);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
main().catch((error) => {
|
|
254
|
-
console.error('ā Error:', error);
|
|
255
|
-
process.exit(1);
|
|
256
|
-
});
|
|
257
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const crypto = require('crypto');
|
|
4
|
-
|
|
5
|
-
const eslintResults = JSON.parse(fs.readFileSync(process.argv[2] || 'eslint-report.json', 'utf8'));
|
|
6
|
-
|
|
7
|
-
const codeQualityReport = [];
|
|
8
|
-
|
|
9
|
-
eslintResults.forEach(file => {
|
|
10
|
-
file.messages.forEach(msg => {
|
|
11
|
-
const fingerprint = crypto
|
|
12
|
-
.createHash('md5')
|
|
13
|
-
.update(`${file.filePath}:${msg.line}:${msg.ruleId}`)
|
|
14
|
-
.digest('hex');
|
|
15
|
-
|
|
16
|
-
codeQualityReport.push({
|
|
17
|
-
description: msg.message,
|
|
18
|
-
check_name: msg.ruleId || 'eslint',
|
|
19
|
-
fingerprint,
|
|
20
|
-
severity: msg.severity === 2 ? 'major' : 'minor',
|
|
21
|
-
location: {
|
|
22
|
-
path: file.filePath.replace(process.cwd() + '/', ''),
|
|
23
|
-
lines: {
|
|
24
|
-
begin: msg.line
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
fs.writeFileSync(
|
|
32
|
-
process.argv[3] || 'gl-code-quality-report.json',
|
|
33
|
-
JSON.stringify(codeQualityReport, null, 2)
|
|
34
|
-
);
|