@bluefly/openstandardagents 0.3.5 → 0.3.6
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/.version.json +7 -0
- package/CHANGELOG.md +60 -1
- package/README.md +41 -31
- package/bin/ossa +2 -23
- package/bin/postinstall +3 -2
- package/dist/adapters/crewai/converter.d.ts +17 -0
- package/dist/adapters/crewai/converter.d.ts.map +1 -0
- package/dist/adapters/crewai/converter.js +110 -0
- package/dist/adapters/crewai/converter.js.map +1 -0
- package/dist/adapters/crewai/index.d.ts +7 -0
- package/dist/adapters/crewai/index.d.ts.map +1 -0
- package/dist/adapters/crewai/index.js +6 -0
- package/dist/adapters/crewai/index.js.map +1 -0
- package/dist/adapters/crewai/types.d.ts +29 -0
- package/dist/adapters/crewai/types.d.ts.map +1 -0
- package/dist/adapters/crewai/types.js +5 -0
- package/dist/adapters/crewai/types.js.map +1 -0
- package/dist/adapters/docker/generators.d.ts +19 -0
- package/dist/adapters/docker/generators.d.ts.map +1 -0
- package/dist/adapters/docker/generators.js +93 -0
- package/dist/adapters/docker/generators.js.map +1 -0
- package/dist/adapters/docker/index.d.ts +7 -0
- package/dist/adapters/docker/index.d.ts.map +1 -0
- package/dist/adapters/docker/index.js +6 -0
- package/dist/adapters/docker/index.js.map +1 -0
- package/dist/adapters/docker/types.d.ts +17 -0
- package/dist/adapters/docker/types.d.ts.map +1 -0
- package/dist/adapters/docker/types.js +5 -0
- package/dist/adapters/docker/types.js.map +1 -0
- package/dist/adapters/gitlab/converter.d.ts +25 -0
- package/dist/adapters/gitlab/converter.d.ts.map +1 -0
- package/dist/adapters/gitlab/converter.js +96 -0
- package/dist/adapters/gitlab/converter.js.map +1 -0
- package/dist/adapters/gitlab/index.d.ts +7 -0
- package/dist/adapters/gitlab/index.d.ts.map +1 -0
- package/dist/adapters/gitlab/index.js +6 -0
- package/dist/adapters/gitlab/index.js.map +1 -0
- package/dist/adapters/gitlab/types.d.ts +22 -0
- package/dist/adapters/gitlab/types.d.ts.map +1 -0
- package/dist/adapters/gitlab/types.js +5 -0
- package/dist/adapters/gitlab/types.js.map +1 -0
- package/dist/adapters/kubernetes/generator.d.ts +29 -0
- package/dist/adapters/kubernetes/generator.d.ts.map +1 -0
- package/dist/adapters/kubernetes/generator.js +133 -0
- package/dist/adapters/kubernetes/generator.js.map +1 -0
- package/dist/adapters/kubernetes/index.d.ts +7 -0
- package/dist/adapters/kubernetes/index.d.ts.map +1 -0
- package/dist/adapters/kubernetes/index.js +6 -0
- package/dist/adapters/kubernetes/index.js.map +1 -0
- package/dist/adapters/kubernetes/types.d.ts +17 -0
- package/dist/adapters/kubernetes/types.d.ts.map +1 -0
- package/dist/adapters/kubernetes/types.js +5 -0
- package/dist/adapters/kubernetes/types.js.map +1 -0
- package/dist/adapters/langchain/converter.d.ts +21 -0
- package/dist/adapters/langchain/converter.d.ts.map +1 -0
- package/dist/adapters/langchain/converter.js +143 -0
- package/dist/adapters/langchain/converter.js.map +1 -0
- package/dist/adapters/langchain/index.d.ts +7 -0
- package/dist/adapters/langchain/index.d.ts.map +1 -0
- package/dist/adapters/langchain/index.js +6 -0
- package/dist/adapters/langchain/index.js.map +1 -0
- package/dist/adapters/langchain/types.d.ts +27 -0
- package/dist/adapters/langchain/types.d.ts.map +1 -0
- package/dist/adapters/langchain/types.js +5 -0
- package/dist/adapters/langchain/types.js.map +1 -0
- package/dist/adapters/n8n/converter.d.ts +17 -0
- package/dist/adapters/n8n/converter.d.ts.map +1 -0
- package/dist/adapters/n8n/converter.js +77 -0
- package/dist/adapters/n8n/converter.js.map +1 -0
- package/dist/adapters/n8n/index.d.ts +7 -0
- package/dist/adapters/n8n/index.d.ts.map +1 -0
- package/dist/adapters/n8n/index.js +6 -0
- package/dist/adapters/n8n/index.js.map +1 -0
- package/dist/adapters/n8n/types.d.ts +23 -0
- package/dist/adapters/n8n/types.d.ts.map +1 -0
- package/dist/adapters/n8n/types.js +5 -0
- package/dist/adapters/n8n/types.js.map +1 -0
- package/dist/adapters/opentelemetry.adapter.d.ts +1 -1
- package/dist/adapters/temporal/converter.d.ts +17 -0
- package/dist/adapters/temporal/converter.d.ts.map +1 -0
- package/dist/adapters/temporal/converter.js +96 -0
- package/dist/adapters/temporal/converter.js.map +1 -0
- package/dist/adapters/temporal/index.d.ts +7 -0
- package/dist/adapters/temporal/index.d.ts.map +1 -0
- package/dist/adapters/temporal/index.js +6 -0
- package/dist/adapters/temporal/index.js.map +1 -0
- package/dist/adapters/temporal/types.d.ts +23 -0
- package/dist/adapters/temporal/types.d.ts.map +1 -0
- package/dist/adapters/temporal/types.js +5 -0
- package/dist/adapters/temporal/types.js.map +1 -0
- package/dist/bot/agent-compliance.js +1 -1
- package/dist/bot/agent-compliance.js.map +1 -1
- package/dist/bot/agent-security_scanner.d.ts +1 -1
- package/dist/bot/agent-security_scanner.d.ts.map +1 -1
- package/dist/bot/agent-security_scanner.js.map +1 -1
- package/dist/cli/commands/agent-create.command.d.ts +18 -0
- package/dist/cli/commands/agent-create.command.d.ts.map +1 -0
- package/dist/cli/commands/agent-create.command.js +437 -0
- package/dist/cli/commands/agent-create.command.js.map +1 -0
- package/dist/cli/commands/agent-wizard.command.d.ts +21 -0
- package/dist/cli/commands/agent-wizard.command.d.ts.map +1 -0
- package/dist/cli/commands/agent-wizard.command.js +1136 -0
- package/dist/cli/commands/agent-wizard.command.js.map +1 -0
- package/dist/cli/commands/agents-md/batch.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/batch.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/batch.command.js +63 -0
- package/dist/cli/commands/agents-md/batch.command.js.map +1 -0
- package/dist/cli/commands/agents-md/generate.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/generate.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/generate.command.js +43 -0
- package/dist/cli/commands/agents-md/generate.command.js.map +1 -0
- package/dist/cli/commands/agents-md/list.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/list.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/list.command.js +59 -0
- package/dist/cli/commands/agents-md/list.command.js.map +1 -0
- package/dist/cli/commands/agents-md/validate.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/validate.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/validate.command.js +42 -0
- package/dist/cli/commands/agents-md/validate.command.js.map +1 -0
- package/dist/cli/commands/agents-md.command.d.ts +1 -1
- package/dist/cli/commands/agents-md.command.d.ts.map +1 -1
- package/dist/cli/commands/agents-md.command.js +40 -122
- package/dist/cli/commands/agents-md.command.js.map +1 -1
- package/dist/cli/commands/audit.d.ts +8 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +238 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/build.command.d.ts +7 -0
- package/dist/cli/commands/build.command.d.ts.map +1 -0
- package/dist/cli/commands/build.command.js +314 -0
- package/dist/cli/commands/build.command.js.map +1 -0
- package/dist/cli/commands/capability/validate.d.ts +3 -0
- package/dist/cli/commands/capability/validate.d.ts.map +1 -0
- package/dist/cli/commands/capability/validate.js +60 -0
- package/dist/cli/commands/capability/validate.js.map +1 -0
- package/dist/cli/commands/deploy.command.d.ts +5 -2
- package/dist/cli/commands/deploy.command.d.ts.map +1 -1
- package/dist/cli/commands/deploy.command.js +50 -154
- package/dist/cli/commands/deploy.command.js.map +1 -1
- package/dist/cli/commands/enhance.command.d.ts +10 -0
- package/dist/cli/commands/enhance.command.d.ts.map +1 -0
- package/dist/cli/commands/enhance.command.js +119 -0
- package/dist/cli/commands/enhance.command.js.map +1 -0
- package/dist/cli/commands/examples.command.d.ts +10 -0
- package/dist/cli/commands/examples.command.d.ts.map +1 -0
- package/dist/cli/commands/examples.command.js +73 -0
- package/dist/cli/commands/examples.command.js.map +1 -0
- package/dist/cli/commands/export.command.d.ts +2 -2
- package/dist/cli/commands/export.command.d.ts.map +1 -1
- package/dist/cli/commands/export.command.js +109 -37
- package/dist/cli/commands/export.command.js.map +1 -1
- package/dist/cli/commands/generate/conformance.d.ts +3 -0
- package/dist/cli/commands/generate/conformance.d.ts.map +1 -0
- package/dist/cli/commands/generate/conformance.js +106 -0
- package/dist/cli/commands/generate/conformance.js.map +1 -0
- package/dist/cli/commands/github-sync.command.js +1 -1
- package/dist/cli/commands/identity/plan.d.ts +3 -0
- package/dist/cli/commands/identity/plan.d.ts.map +1 -0
- package/dist/cli/commands/identity/plan.js +198 -0
- package/dist/cli/commands/identity/plan.js.map +1 -0
- package/dist/cli/commands/install.command.d.ts.map +1 -1
- package/dist/cli/commands/install.command.js +29 -32
- package/dist/cli/commands/install.command.js.map +1 -1
- package/dist/cli/commands/knowledge-index.command.d.ts +11 -0
- package/dist/cli/commands/knowledge-index.command.d.ts.map +1 -0
- package/dist/cli/commands/knowledge-index.command.js +111 -0
- package/dist/cli/commands/knowledge-index.command.js.map +1 -0
- package/dist/cli/commands/knowledge-query.command.d.ts +11 -0
- package/dist/cli/commands/knowledge-query.command.d.ts.map +1 -0
- package/dist/cli/commands/knowledge-query.command.js +118 -0
- package/dist/cli/commands/knowledge-query.command.js.map +1 -0
- package/dist/cli/commands/knowledge.command.d.ts +11 -0
- package/dist/cli/commands/knowledge.command.d.ts.map +1 -0
- package/dist/cli/commands/knowledge.command.js +16 -0
- package/dist/cli/commands/knowledge.command.js.map +1 -0
- package/dist/cli/commands/migrate.command.d.ts +2 -17
- package/dist/cli/commands/migrate.command.d.ts.map +1 -1
- package/dist/cli/commands/migrate.command.js +86 -144
- package/dist/cli/commands/migrate.command.js.map +1 -1
- package/dist/cli/commands/publish.command.d.ts.map +1 -1
- package/dist/cli/commands/publish.command.js +36 -106
- package/dist/cli/commands/publish.command.js.map +1 -1
- package/dist/cli/commands/release.command.d.ts +10 -0
- package/dist/cli/commands/release.command.d.ts.map +1 -0
- package/dist/cli/commands/release.command.js +73 -0
- package/dist/cli/commands/release.command.js.map +1 -0
- package/dist/cli/commands/scaffold.command.d.ts.map +1 -1
- package/dist/cli/commands/scaffold.command.js +14 -4
- package/dist/cli/commands/scaffold.command.js.map +1 -1
- package/dist/cli/commands/search.command.d.ts.map +1 -1
- package/dist/cli/commands/search.command.js +33 -33
- package/dist/cli/commands/search.command.js.map +1 -1
- package/dist/cli/commands/skills.command.d.ts +10 -0
- package/dist/cli/commands/skills.command.d.ts.map +1 -0
- package/dist/cli/commands/skills.command.js +135 -0
- package/dist/cli/commands/skills.command.js.map +1 -0
- package/dist/cli/commands/taxonomy.command.d.ts +10 -0
- package/dist/cli/commands/taxonomy.command.d.ts.map +1 -0
- package/dist/cli/commands/taxonomy.command.js +379 -0
- package/dist/cli/commands/taxonomy.command.js.map +1 -0
- package/dist/cli/commands/template.command.d.ts +7 -0
- package/dist/cli/commands/template.command.d.ts.map +1 -0
- package/dist/cli/commands/template.command.js +159 -0
- package/dist/cli/commands/template.command.js.map +1 -0
- package/dist/cli/commands/update.command.d.ts +3 -0
- package/dist/cli/commands/update.command.d.ts.map +1 -0
- package/dist/cli/commands/update.command.js +43 -0
- package/dist/cli/commands/update.command.js.map +1 -0
- package/dist/cli/commands/validate.command.d.ts.map +1 -1
- package/dist/cli/commands/validate.command.js +43 -0
- package/dist/cli/commands/validate.command.js.map +1 -1
- package/dist/cli/commands/wizard.command.d.ts.map +1 -1
- package/dist/cli/commands/wizard.command.js +29 -3
- package/dist/cli/commands/wizard.command.js.map +1 -1
- package/dist/cli/commands/workspace.command.js +3 -1
- package/dist/cli/commands/workspace.command.js.map +1 -1
- package/dist/cli/index.d.ts +2 -11
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +24 -229
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/utils/error-formatter.js.map +1 -1
- package/dist/cli/utils/output.d.ts +1 -0
- package/dist/cli/utils/output.d.ts.map +1 -1
- package/dist/cli/utils/output.js +2 -1
- package/dist/cli/utils/output.js.map +1 -1
- package/dist/cli/wizard/data/agent-types.d.ts +7 -0
- package/dist/cli/wizard/data/agent-types.d.ts.map +1 -0
- package/dist/cli/wizard/data/agent-types.js +192 -0
- package/dist/cli/wizard/data/agent-types.js.map +1 -0
- package/dist/cli/wizard/data/llm-providers.d.ts +10 -0
- package/dist/cli/wizard/data/llm-providers.d.ts.map +1 -0
- package/dist/cli/wizard/data/llm-providers.js +176 -0
- package/dist/cli/wizard/data/llm-providers.js.map +1 -0
- package/dist/cli/wizard/data/taxonomy.d.ts +39 -0
- package/dist/cli/wizard/data/taxonomy.d.ts.map +1 -0
- package/dist/cli/wizard/data/taxonomy.js +134 -0
- package/dist/cli/wizard/data/taxonomy.js.map +1 -0
- package/dist/cli/wizard/data/templates.d.ts +10 -0
- package/dist/cli/wizard/data/templates.d.ts.map +1 -0
- package/dist/cli/wizard/data/templates.js +228 -0
- package/dist/cli/wizard/data/templates.js.map +1 -0
- package/dist/cli/wizard/steps/01-agent-type.d.ts +7 -0
- package/dist/cli/wizard/steps/01-agent-type.d.ts.map +1 -0
- package/dist/cli/wizard/steps/01-agent-type.js +35 -0
- package/dist/cli/wizard/steps/01-agent-type.js.map +1 -0
- package/dist/cli/wizard/steps/02-basic-info.d.ts +7 -0
- package/dist/cli/wizard/steps/02-basic-info.d.ts.map +1 -0
- package/dist/cli/wizard/steps/02-basic-info.js +81 -0
- package/dist/cli/wizard/steps/02-basic-info.js.map +1 -0
- package/dist/cli/wizard/steps/03-domain-capability.d.ts +7 -0
- package/dist/cli/wizard/steps/03-domain-capability.d.ts.map +1 -0
- package/dist/cli/wizard/steps/03-domain-capability.js +98 -0
- package/dist/cli/wizard/steps/03-domain-capability.js.map +1 -0
- package/dist/cli/wizard/steps/04-llm-config.d.ts +7 -0
- package/dist/cli/wizard/steps/04-llm-config.d.ts.map +1 -0
- package/dist/cli/wizard/steps/04-llm-config.js +86 -0
- package/dist/cli/wizard/steps/04-llm-config.js.map +1 -0
- package/dist/cli/wizard/steps/05-tools.d.ts +7 -0
- package/dist/cli/wizard/steps/05-tools.d.ts.map +1 -0
- package/dist/cli/wizard/steps/05-tools.js +172 -0
- package/dist/cli/wizard/steps/05-tools.js.map +1 -0
- package/dist/cli/wizard/steps/06-autonomy.d.ts +7 -0
- package/dist/cli/wizard/steps/06-autonomy.d.ts.map +1 -0
- package/dist/cli/wizard/steps/06-autonomy.js +87 -0
- package/dist/cli/wizard/steps/06-autonomy.js.map +1 -0
- package/dist/cli/wizard/steps/07-observability.d.ts +7 -0
- package/dist/cli/wizard/steps/07-observability.d.ts.map +1 -0
- package/dist/cli/wizard/steps/07-observability.js +149 -0
- package/dist/cli/wizard/steps/07-observability.js.map +1 -0
- package/dist/cli/wizard/steps/08-deployment.d.ts +7 -0
- package/dist/cli/wizard/steps/08-deployment.d.ts.map +1 -0
- package/dist/cli/wizard/steps/08-deployment.js +120 -0
- package/dist/cli/wizard/steps/08-deployment.js.map +1 -0
- package/dist/cli/wizard/steps/09-advanced.d.ts +7 -0
- package/dist/cli/wizard/steps/09-advanced.d.ts.map +1 -0
- package/dist/cli/wizard/steps/09-advanced.js +160 -0
- package/dist/cli/wizard/steps/09-advanced.js.map +1 -0
- package/dist/cli/wizard/steps/10-review.d.ts +7 -0
- package/dist/cli/wizard/steps/10-review.d.ts.map +1 -0
- package/dist/cli/wizard/steps/10-review.js +109 -0
- package/dist/cli/wizard/steps/10-review.js.map +1 -0
- package/dist/cli/wizard/steps/12-agents-folder.d.ts +7 -0
- package/dist/cli/wizard/steps/12-agents-folder.d.ts.map +1 -0
- package/dist/cli/wizard/steps/12-agents-folder.js +101 -0
- package/dist/cli/wizard/steps/12-agents-folder.js.map +1 -0
- package/dist/cli/wizard/steps/13-openapi-generation.d.ts +7 -0
- package/dist/cli/wizard/steps/13-openapi-generation.d.ts.map +1 -0
- package/dist/cli/wizard/steps/13-openapi-generation.js +60 -0
- package/dist/cli/wizard/steps/13-openapi-generation.js.map +1 -0
- package/dist/cli/wizard/steps/14-workspace-registration.d.ts +7 -0
- package/dist/cli/wizard/steps/14-workspace-registration.d.ts.map +1 -0
- package/dist/cli/wizard/steps/14-workspace-registration.js +65 -0
- package/dist/cli/wizard/steps/14-workspace-registration.js.map +1 -0
- package/dist/cli/wizard/steps/15-cost-estimation.d.ts +7 -0
- package/dist/cli/wizard/steps/15-cost-estimation.d.ts.map +1 -0
- package/dist/cli/wizard/steps/15-cost-estimation.js +119 -0
- package/dist/cli/wizard/steps/15-cost-estimation.js.map +1 -0
- package/dist/cli/wizard/steps/16-best-practices.d.ts +7 -0
- package/dist/cli/wizard/steps/16-best-practices.d.ts.map +1 -0
- package/dist/cli/wizard/steps/16-best-practices.js +180 -0
- package/dist/cli/wizard/steps/16-best-practices.js.map +1 -0
- package/dist/cli/wizard/steps/index.d.ts +15 -0
- package/dist/cli/wizard/steps/index.d.ts.map +1 -0
- package/dist/cli/wizard/steps/index.js +15 -0
- package/dist/cli/wizard/steps/index.js.map +1 -0
- package/dist/cli/wizard/types.d.ts +94 -0
- package/dist/cli/wizard/types.d.ts.map +1 -0
- package/dist/cli/wizard/types.js +6 -0
- package/dist/cli/wizard/types.js.map +1 -0
- package/dist/cli/wizard/ui/console.d.ts +26 -0
- package/dist/cli/wizard/ui/console.d.ts.map +1 -0
- package/dist/cli/wizard/ui/console.js +104 -0
- package/dist/cli/wizard/ui/console.js.map +1 -0
- package/dist/cli/wizard/validators/index.d.ts +11 -0
- package/dist/cli/wizard/validators/index.d.ts.map +1 -0
- package/dist/cli/wizard/validators/index.js +35 -0
- package/dist/cli/wizard/validators/index.js.map +1 -0
- package/dist/di-container.d.ts.map +1 -1
- package/dist/di-container.js +16 -0
- package/dist/di-container.js.map +1 -1
- package/dist/index.d.ts +7 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -31
- package/dist/index.js.map +1 -1
- package/dist/repositories/manifest.repository.js +1 -1
- package/dist/repositories/manifest.repository.js.map +1 -1
- package/dist/repositories/schema.repository.d.ts.map +1 -1
- package/dist/repositories/schema.repository.js +7 -4
- package/dist/repositories/schema.repository.js.map +1 -1
- package/dist/runtime/langflow.runtime.d.ts +2 -2
- package/dist/sdks/kagent/crd-generator.d.ts +21 -0
- package/dist/sdks/kagent/crd-generator.d.ts.map +1 -0
- package/dist/sdks/kagent/crd-generator.js +101 -0
- package/dist/sdks/kagent/crd-generator.js.map +1 -0
- package/dist/sdks/kagent/crd-parser.d.ts +13 -0
- package/dist/sdks/kagent/crd-parser.d.ts.map +1 -0
- package/dist/sdks/kagent/crd-parser.js +91 -0
- package/dist/sdks/kagent/crd-parser.js.map +1 -0
- package/dist/sdks/kagent/index.d.ts +10 -0
- package/dist/sdks/kagent/index.d.ts.map +1 -0
- package/dist/sdks/kagent/index.js +9 -0
- package/dist/sdks/kagent/index.js.map +1 -0
- package/dist/sdks/kagent/runtime-adapter.d.ts +45 -0
- package/dist/sdks/kagent/runtime-adapter.d.ts.map +1 -0
- package/dist/sdks/kagent/runtime-adapter.js +129 -0
- package/dist/sdks/kagent/runtime-adapter.js.map +1 -0
- package/dist/sdks/kagent/types.d.ts +91 -0
- package/dist/sdks/kagent/types.d.ts.map +1 -0
- package/dist/sdks/kagent/types.js +5 -0
- package/dist/sdks/kagent/types.js.map +1 -0
- package/dist/sdks/kagent/validator.d.ts +17 -0
- package/dist/sdks/kagent/validator.d.ts.map +1 -0
- package/dist/sdks/kagent/validator.js +73 -0
- package/dist/sdks/kagent/validator.js.map +1 -0
- package/dist/sdks/shared/types.d.ts +1 -1
- package/dist/sdks/typescript/types.d.ts +3 -3
- package/dist/sdks/typescript/types.js +3 -3
- package/dist/services/agents-md/agents-md.service.d.ts.map +1 -1
- package/dist/services/agents-md/agents-md.service.js +0 -6
- package/dist/services/agents-md/agents-md.service.js.map +1 -1
- package/dist/services/agents-md/repo-agents-md.service.d.ts +87 -0
- package/dist/services/agents-md/repo-agents-md.service.d.ts.map +1 -0
- package/dist/services/agents-md/repo-agents-md.service.js +202 -0
- package/dist/services/agents-md/repo-agents-md.service.js.map +1 -0
- package/dist/services/ai-architect.service.d.ts +48 -0
- package/dist/services/ai-architect.service.d.ts.map +1 -0
- package/dist/services/ai-architect.service.js +273 -0
- package/dist/services/ai-architect.service.js.map +1 -0
- package/dist/services/audit.d.ts +80 -0
- package/dist/services/audit.d.ts.map +1 -0
- package/dist/services/audit.js +245 -0
- package/dist/services/audit.js.map +1 -0
- package/dist/services/codegen/generators/openapi-zod.generator.js +1 -1
- package/dist/services/git.service.d.ts +10 -1
- package/dist/services/git.service.d.ts.map +1 -1
- package/dist/services/git.service.js +42 -2
- package/dist/services/git.service.js.map +1 -1
- package/dist/services/knowledge-generation.service.d.ts +46 -0
- package/dist/services/knowledge-generation.service.d.ts.map +1 -0
- package/dist/services/knowledge-generation.service.js +96 -0
- package/dist/services/knowledge-generation.service.js.map +1 -0
- package/dist/services/knowledge.service.d.ts +88 -0
- package/dist/services/knowledge.service.d.ts.map +1 -0
- package/dist/services/knowledge.service.js +214 -0
- package/dist/services/knowledge.service.js.map +1 -0
- package/dist/services/migration-transform.service.d.ts +11 -3
- package/dist/services/migration-transform.service.d.ts.map +1 -1
- package/dist/services/migration-transform.service.js +69 -10
- package/dist/services/migration-transform.service.js.map +1 -1
- package/dist/services/registry.service.d.ts +34 -0
- package/dist/services/registry.service.d.ts.map +1 -0
- package/dist/services/registry.service.js +161 -0
- package/dist/services/registry.service.js.map +1 -0
- package/dist/services/release-automation/release-agent.service.d.ts +39 -0
- package/dist/services/release-automation/release-agent.service.d.ts.map +1 -0
- package/dist/services/release-automation/release-agent.service.js +42 -0
- package/dist/services/release-automation/release-agent.service.js.map +1 -0
- package/dist/services/skills/claude-skills.service.d.ts +51 -0
- package/dist/services/skills/claude-skills.service.d.ts.map +1 -0
- package/dist/services/skills/claude-skills.service.js +252 -0
- package/dist/services/skills/claude-skills.service.js.map +1 -0
- package/dist/services/structure/agents-folder.service.d.ts +37 -0
- package/dist/services/structure/agents-folder.service.d.ts.map +1 -0
- package/dist/services/structure/agents-folder.service.js +318 -0
- package/dist/services/structure/agents-folder.service.js.map +1 -0
- package/dist/services/taxonomy-validator.service.d.ts +25 -0
- package/dist/services/taxonomy-validator.service.d.ts.map +1 -0
- package/dist/services/taxonomy-validator.service.js +149 -0
- package/dist/services/taxonomy-validator.service.js.map +1 -0
- package/dist/services/taxonomy.service.d.ts +132 -0
- package/dist/services/taxonomy.service.d.ts.map +1 -0
- package/dist/services/taxonomy.service.js +330 -0
- package/dist/services/taxonomy.service.js.map +1 -0
- package/dist/services/template-processor.service.d.ts +34 -0
- package/dist/services/template-processor.service.d.ts.map +1 -0
- package/dist/services/template-processor.service.js +112 -0
- package/dist/services/template-processor.service.js.map +1 -0
- package/dist/services/template.service.d.ts +54 -0
- package/dist/services/template.service.d.ts.map +1 -0
- package/dist/services/template.service.js +154 -0
- package/dist/services/template.service.js.map +1 -0
- package/dist/spec/ossa-audit-api.yaml +311 -0
- package/dist/spec/registry/registry-api.yaml +144 -0
- package/dist/spec/schema/components/adapter.schema.json +33 -0
- package/dist/spec/schema/components/identity.schema.json +78 -0
- package/dist/spec/v0.3/CHANGELOG.md +2 -2
- package/dist/spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md +552 -0
- package/dist/spec/v0.3/README.md +2 -2
- package/dist/spec/v0.3/ossa-0.3.6.schema.json +17604 -0
- package/dist/spec/v0.3/ossa-v0.3.schema.json +15824 -0
- package/dist/spec/v0.3.6/CHANGELOG.md +171 -0
- package/dist/spec/v0.3.6/README.md +382 -0
- package/dist/spec/v0.3.6/taxonomy.yaml +506 -0
- package/dist/testing/fixtures.d.ts.map +1 -1
- package/dist/testing/fixtures.js +6 -0
- package/dist/testing/fixtures.js.map +1 -1
- package/dist/testing/runner.d.ts.map +1 -1
- package/dist/testing/runner.js +4 -20
- package/dist/testing/runner.js.map +1 -1
- package/dist/types/architect.d.ts +48 -0
- package/dist/types/architect.d.ts.map +1 -0
- package/dist/types/architect.js +7 -0
- package/dist/types/architect.js.map +1 -0
- package/dist/types/identity.d.ts +78 -401
- package/dist/types/identity.d.ts.map +1 -1
- package/dist/types/identity.js +5 -7
- package/dist/types/identity.js.map +1 -1
- package/dist/types/identity.zod.d.ts +5 -5
- package/dist/types/index.d.ts +69 -41
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/personality.zod.d.ts +24 -24
- package/dist/types/prompts.zod.d.ts +4 -4
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +73 -46
- package/dist/utils/version.js.map +1 -1
- package/dist/validation/__tests__/error-codes.test.d.ts +5 -0
- package/dist/validation/__tests__/error-codes.test.d.ts.map +1 -0
- package/dist/validation/__tests__/error-codes.test.js +252 -0
- package/dist/validation/__tests__/error-codes.test.js.map +1 -0
- package/dist/validation/enhanced-validator.d.ts +38 -0
- package/dist/validation/enhanced-validator.d.ts.map +1 -0
- package/dist/validation/enhanced-validator.js +242 -0
- package/dist/validation/enhanced-validator.js.map +1 -0
- package/dist/validation/error-codes.d.ts +170 -0
- package/dist/validation/error-codes.d.ts.map +1 -0
- package/dist/validation/error-codes.js +1159 -0
- package/dist/validation/error-codes.js.map +1 -0
- package/dist/validation/error-formatter.d.ts +81 -0
- package/dist/validation/error-formatter.d.ts.map +1 -0
- package/dist/validation/error-formatter.js +375 -0
- package/dist/validation/error-formatter.js.map +1 -0
- package/dist/validation/index.d.ts +16 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +20 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/linter.d.ts +36 -0
- package/dist/validation/linter.d.ts.map +1 -0
- package/dist/validation/linter.js +453 -0
- package/dist/validation/linter.js.map +1 -0
- package/dist/validation/validator.d.ts +38 -0
- package/dist/validation/validator.d.ts.map +1 -0
- package/dist/validation/validator.js +262 -0
- package/dist/validation/validator.js.map +1 -0
- package/examples/a2a/agent-handoff.ossa.yaml +1 -1
- package/examples/a2a/service-discovery.ossa.yaml +1 -1
- package/examples/adapters/drupal-eca-mapping.yaml +1 -1
- package/examples/adapters/drupal-eca-task.yaml +1 -1
- package/examples/adapters/drupal-flowdrop-mapping.yaml +1 -1
- package/examples/adapters/drupal-maestro-mapping.yaml +1 -1
- package/examples/adapters/mistral-agent.yaml +1 -1
- package/examples/adapters/symfony-messenger-task.yaml +1 -1
- package/examples/adapters/symfony-messenger-workflow.yaml +1 -1
- package/examples/advanced/reasoning-agent.yaml +1 -1
- package/examples/advanced/workflows/hybrid-model-strategy.yaml +1 -1
- package/examples/agent-manifests/critics/critic-agent.yaml +1 -1
- package/examples/agent-manifests/governors/governor-agent.yaml +1 -1
- package/examples/agent-manifests/integrators/integrator-agent.yaml +1 -1
- package/examples/agent-manifests/judges/judge-agent.yaml +1 -1
- package/examples/agent-manifests/monitors/monitor-agent.yaml +1 -1
- package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +1 -1
- package/examples/agent-manifests/workers/worker-agent.yaml +1 -1
- package/examples/agents/architecture-healer-enterprise.yaml +1 -1
- package/examples/agents/dependency-healer-npm.yaml +1 -1
- package/examples/agents/spec-healer-openapi.yaml +1 -1
- package/examples/agents/wiki-healer-production.yaml +1 -1
- package/examples/agents-md/monorepo-agent.ossa.yaml +1 -1
- package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +1 -1
- package/examples/build-once-use-everywhere/README.md +184 -0
- package/examples/build-once-use-everywhere/agent.ossa.yaml +38 -0
- package/examples/build-once-use-everywhere/deploy-config.yaml +32 -0
- package/examples/claude-code/ossa-validator.ossa.yaml +1 -1
- package/examples/common_npm/agent-router.ossa.yaml +1 -1
- package/examples/contracts/data-consumer.ossa.yaml +1 -1
- package/examples/contracts/data-producer-v2.ossa.yaml +5 -3
- package/examples/contracts/data-producer.ossa.yaml +1 -1
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
- package/examples/economics/marketplace-agent.ossa.json +210 -0
- package/examples/extensions/encryption-multi-provider.yaml +4 -4
- package/examples/extensions/knowledge-sources.yaml +1 -1
- package/examples/extensions/mcp-full-featured.yaml +1 -1
- package/examples/genetics/breeding-agent.ossa.json +194 -0
- package/examples/getting-started/01-minimal-agent.ossa.yaml +1 -1
- package/examples/getting-started/02-agent-with-tools.ossa.yaml +1 -1
- package/examples/getting-started/03-agent-with-safety.ossa.yaml +1 -1
- package/examples/getting-started/04-agent-with-messaging.ossa.yaml +1 -1
- package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
- package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
- package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +1 -1
- package/examples/kagent/compliance-validator.ossa.yaml +1 -1
- package/examples/kagent/cost-optimizer.ossa.yaml +1 -1
- package/examples/kagent/documentation-agent.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter.ossa.yaml +1 -1
- package/examples/kagent/security-scanner.ossa.yaml +1 -1
- package/examples/lifecycle/mentoring-agent.ossa.json +293 -0
- package/examples/mcp/database-mcp.ossa.yaml +1 -1
- package/examples/mcp/filesystem-mcp.ossa.yaml +1 -1
- package/examples/messaging/dependency-healer.ossa.yaml +1 -1
- package/examples/messaging/incident-responder.ossa.yaml +1 -1
- package/examples/messaging/routing-rules.ossa.yaml +1 -1
- package/examples/messaging/security-scanner.ossa.yaml +1 -1
- package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
- package/examples/migrations/crewai-to-ossa/README.md +66 -0
- package/examples/migrations/langchain/01-python-react-agent-after.ossa.yaml +2 -2
- package/examples/migrations/langchain/02-typescript-conversational-after.ossa.yaml +2 -2
- package/examples/migrations/langchain/03-sequential-chain-after.ossa.yaml +2 -2
- package/examples/migrations/langchain/04-config-based-after.ossa.yaml +2 -2
- package/examples/migrations/langchain-to-ossa/README.md +73 -0
- package/examples/migrations/swarm-to-ossa/COMPARISON.md +350 -0
- package/examples/migrations/swarm-to-ossa/INDEX.md +355 -0
- package/examples/migrations/swarm-to-ossa/MIGRATION-FLOW.md +410 -0
- package/examples/migrations/swarm-to-ossa/QUICKSTART.md +453 -0
- package/examples/migrations/swarm-to-ossa/README.md +665 -0
- package/examples/migrations/swarm-to-ossa/after-handoffs.ossa.yaml +482 -0
- package/examples/migrations/swarm-to-ossa/after-triage-agent.ossa.yaml +315 -0
- package/examples/migrations/swarm-to-ossa/before-handoffs.py +373 -0
- package/examples/migrations/swarm-to-ossa/before-triage-agent.py +234 -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/multi-platform/single-manifest/README.md +72 -0
- package/examples/multi-platform/single-manifest/agent.ossa.yaml +32 -0
- package/examples/observability/activity-stream-full.yaml +1 -1
- package/examples/openai/basic-agent.ossa.yaml +1 -1
- package/examples/ossa-templates/11-react-performance-expert.ossa.yaml +1 -1
- package/examples/ossa-templates/12-typescript-type-safety-expert.ossa.yaml +1 -1
- package/examples/ossa-templates/13-accessibility-champion.ossa.yaml +1 -1
- package/examples/ossa-templates/14-security-hardening-agent.ossa.yaml +1 -1
- package/examples/quickstart/support-agent.ossa.yaml +1 -1
- package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +1 -1
- package/examples/real-world/rag-documentation-assistant.ossa.yaml +1 -1
- package/examples/registry/agents/code-reviewer/agent.yaml +1 -1
- package/examples/registry/agents/security-scanner/agent.yaml +1 -1
- package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +1 -1
- package/examples/schema/reusable-components.yaml +1 -1
- package/examples/showcase/ci-pipeline.ossa.yaml +1 -1
- package/examples/showcase/code-assistant.ossa.yaml +1 -1
- package/examples/showcase/code-reviewer.ossa.yaml +1 -1
- package/examples/showcase/compliance-validator.ossa.yaml +1 -1
- package/examples/showcase/content-writer.ossa.yaml +1 -1
- package/examples/showcase/data-transformer.ossa.yaml +1 -1
- package/examples/showcase/doc-generator.ossa.yaml +1 -1
- package/examples/showcase/security-scanner.ossa.yaml +1 -1
- package/examples/showcase/test-generator.ossa.yaml +1 -1
- package/examples/showcase/workflow-orchestrator.ossa.yaml +1 -1
- package/examples/swarm/pso-optimizer.ossa.json +171 -0
- package/examples/tasks/batch-email-sender.yaml +1 -1
- package/examples/tasks/data-transform.yaml +1 -1
- package/examples/tasks/publish-content.yaml +1 -1
- package/examples/templates/ossa-compliance.yaml +1 -1
- package/examples/unified/security-scanner.ossa.yaml +1 -1
- package/examples/v0.3.6/full-featured-v0.3.6.ossa.yaml +304 -0
- package/examples/v0.3.6/gitlab-duo-composite-identity.ossa.yaml +119 -0
- package/examples/v0.3.6/knowledge-graph-integration.ossa.yaml +109 -0
- package/examples/v0.3.6/token-efficiency-economy.ossa.yaml +111 -0
- package/examples/v0.3.6-features/README.md +433 -0
- package/examples/v0.3.6-features/genetics-breeding-advanced.ossa.yaml +496 -0
- package/examples/v0.3.6-features/genetics-breeding-simple.ossa.yaml +304 -0
- package/examples/v0.3.6-features/genetics-fitness-scoring.ossa.yaml +551 -0
- package/examples/validation/error-codes-demo.ts +254 -0
- package/examples/workflows/batch-email-campaign.yaml +1 -1
- package/examples/workflows/content-review-publish.yaml +1 -1
- package/examples/workflows/simple-etl.yaml +1 -1
- package/openapi/agents-md-service.yaml +338 -0
- package/openapi/cli-commands.openapi.yaml +0 -28
- package/openapi/ossa-cli-enhancements.openapi.yaml +148 -0
- package/openapi/release-automation.openapi.yaml +144 -0
- package/package.json +35 -12
- package/schemas/capability-contract.v0.json +116 -0
- package/schemas/identity.lock.schema.json +59 -0
- package/schemas/identity.plan.schema.json +132 -0
- package/spec/ossa-audit-api.yaml +311 -0
- package/spec/registry/registry-api.yaml +144 -0
- package/spec/schema/components/adapter.schema.json +33 -0
- package/spec/schema/components/identity.schema.json +78 -0
- package/spec/v0.3/CHANGELOG.md +2 -2
- package/spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md +552 -0
- package/spec/v0.3/README.md +2 -2
- package/spec/v0.3/ossa-0.3.6.schema.json +17604 -0
- package/spec/v0.3/ossa-v0.3.schema.json +15824 -0
- package/spec/v0.3.6/CHANGELOG.md +171 -0
- package/spec/v0.3.6/README.md +382 -0
- package/spec/v0.3.6/taxonomy.yaml +506 -0
- package/src/dev-cli/src/index.ts +0 -0
- package/templates/agent-types/analyzer/cost-analyzer.yaml +38 -0
- package/templates/agent-types/analyzer/performance-profiler.yaml +38 -0
- package/templates/agent-types/analyzer/security-scanner.yaml +36 -0
- package/templates/agent-types/backend/api-validator.yaml +37 -0
- package/templates/agent-types/backend/load-balancer.yaml +39 -0
- package/templates/agent-types/content/content-generator.yaml +40 -0
- package/templates/agent-types/content/seo-optimizer.yaml +39 -0
- package/templates/agent-types/data/data-processor.yaml +38 -0
- package/templates/agent-types/data/report-generator.yaml +40 -0
- package/templates/agent-types/development/code-generator.yaml +39 -0
- package/templates/agent-types/development/dependency-updater.yaml +38 -0
- package/templates/agent-types/frontend/accessibility-checker.yaml +38 -0
- package/templates/agent-types/frontend/ui-tester.yaml +38 -0
- package/templates/agent-types/infrastructure/deployment-automator.yaml +39 -0
- package/templates/agent-types/infrastructure/resource-optimizer.yaml +38 -0
- package/templates/agent-types/monitor/health-checker.yaml +37 -0
- package/templates/agent-types/monitor/log-analyzer.yaml +37 -0
- package/templates/agent-types/orchestrator/multi-agent-coordinator.yaml +38 -0
- package/templates/agent-types/orchestrator/workflow-manager.yaml +39 -0
- package/templates/agent-types/security/compliance-checker.yaml +38 -0
- package/templates/agent-types/security/vulnerability-scanner.yaml +38 -0
- package/templates/agent-types/worker/api-tester.yaml +43 -0
- package/templates/agent-types/worker/code-reviewer.yaml +39 -0
- package/templates/agent-types/worker/database-migrator.yaml +38 -0
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
---
|
|
2
|
+
# OSSA v0.3.6 - Advanced Handoff Patterns
|
|
3
|
+
#
|
|
4
|
+
# This is the OSSA equivalent of before-handoffs.py
|
|
5
|
+
#
|
|
6
|
+
# Benefits over OpenAI Swarm handoffs:
|
|
7
|
+
# - Declarative handoff rules (YAML, not Python code)
|
|
8
|
+
# - Conditional handoffs with expression syntax
|
|
9
|
+
# - Automatic context propagation (no manual context_variables passing)
|
|
10
|
+
# - Handoff observability (metrics, tracing, visualization)
|
|
11
|
+
# - Handoff policies (max handoffs, approval requirements, rollback)
|
|
12
|
+
# - Easy testing and validation
|
|
13
|
+
# - GitOps-ready (version control, CI/CD)
|
|
14
|
+
|
|
15
|
+
# ============================================================================
|
|
16
|
+
# Sales Agent - Entry Point
|
|
17
|
+
# ============================================================================
|
|
18
|
+
apiVersion: ossa/v0.3.6
|
|
19
|
+
kind: Agent
|
|
20
|
+
metadata:
|
|
21
|
+
name: sales-agent
|
|
22
|
+
version: 1.0.0
|
|
23
|
+
description: "Sales agent that initiates order workflow"
|
|
24
|
+
|
|
25
|
+
spec:
|
|
26
|
+
role: |
|
|
27
|
+
You are a sales agent helping customers place orders.
|
|
28
|
+
|
|
29
|
+
When a customer wants to order:
|
|
30
|
+
1. Collect order details (items, quantities)
|
|
31
|
+
2. Calculate order total
|
|
32
|
+
3. Initiate order verification process
|
|
33
|
+
|
|
34
|
+
Be friendly and helpful!
|
|
35
|
+
|
|
36
|
+
llm:
|
|
37
|
+
provider: anthropic
|
|
38
|
+
model: claude-sonnet-4-5
|
|
39
|
+
temperature: 0.7
|
|
40
|
+
max_tokens: 2048
|
|
41
|
+
|
|
42
|
+
# Declarative handoffs (replaces transfer_to_order_verification function)
|
|
43
|
+
handoffs:
|
|
44
|
+
- name: initiate_order_verification
|
|
45
|
+
target_agent: order-verification-agent
|
|
46
|
+
description: "Start order verification after collecting order details"
|
|
47
|
+
|
|
48
|
+
# Condition: When should this handoff happen?
|
|
49
|
+
condition: "has_order_details == true and order_total > 0"
|
|
50
|
+
|
|
51
|
+
# Trigger mode
|
|
52
|
+
trigger: automatic # Handoff happens automatically when condition is met
|
|
53
|
+
|
|
54
|
+
# Context transfer: What data to pass?
|
|
55
|
+
context_transfer: full # Transfer entire conversation history
|
|
56
|
+
context_fields: # Specific fields to include
|
|
57
|
+
- customer_id
|
|
58
|
+
- order_items
|
|
59
|
+
- order_total
|
|
60
|
+
- customer_tier
|
|
61
|
+
|
|
62
|
+
# Handoff metadata (for observability)
|
|
63
|
+
metadata:
|
|
64
|
+
handoff_type: workflow_progression
|
|
65
|
+
business_stage: order_initiation
|
|
66
|
+
|
|
67
|
+
# Context propagation rules
|
|
68
|
+
context_propagation:
|
|
69
|
+
mode: selective
|
|
70
|
+
allowed_fields:
|
|
71
|
+
- customer_id
|
|
72
|
+
- customer_tier
|
|
73
|
+
- order_total
|
|
74
|
+
- order_items
|
|
75
|
+
- delivery_address
|
|
76
|
+
required_fields: # These MUST be present for handoff
|
|
77
|
+
- customer_id
|
|
78
|
+
- order_total
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
# ============================================================================
|
|
82
|
+
# Order Verification Agent
|
|
83
|
+
# ============================================================================
|
|
84
|
+
apiVersion: ossa/v0.3.6
|
|
85
|
+
kind: Agent
|
|
86
|
+
metadata:
|
|
87
|
+
name: order-verification-agent
|
|
88
|
+
version: 1.0.0
|
|
89
|
+
description: "Verifies order details and customer eligibility"
|
|
90
|
+
|
|
91
|
+
spec:
|
|
92
|
+
role: |
|
|
93
|
+
You verify order details and customer eligibility.
|
|
94
|
+
|
|
95
|
+
Process:
|
|
96
|
+
1. Verify the order details provided by the customer
|
|
97
|
+
2. Check customer eligibility
|
|
98
|
+
3. Proceed to payment processing when verification is complete
|
|
99
|
+
|
|
100
|
+
If there are issues with the order, return to sales.
|
|
101
|
+
|
|
102
|
+
llm:
|
|
103
|
+
provider: anthropic
|
|
104
|
+
model: claude-sonnet-4-5
|
|
105
|
+
temperature: 0.3 # Lower temperature for verification accuracy
|
|
106
|
+
max_tokens: 2048
|
|
107
|
+
|
|
108
|
+
# Capabilities (replaces verify_order function)
|
|
109
|
+
capabilities:
|
|
110
|
+
- name: verify_order
|
|
111
|
+
description: "Verify order details and customer eligibility"
|
|
112
|
+
input_schema:
|
|
113
|
+
type: object
|
|
114
|
+
properties:
|
|
115
|
+
order_id:
|
|
116
|
+
type: string
|
|
117
|
+
description: "Order identifier"
|
|
118
|
+
customer_id:
|
|
119
|
+
type: string
|
|
120
|
+
description: "Customer identifier"
|
|
121
|
+
required: [order_id, customer_id]
|
|
122
|
+
output_schema:
|
|
123
|
+
type: object
|
|
124
|
+
properties:
|
|
125
|
+
verified:
|
|
126
|
+
type: boolean
|
|
127
|
+
verification_id:
|
|
128
|
+
type: string
|
|
129
|
+
message:
|
|
130
|
+
type: string
|
|
131
|
+
|
|
132
|
+
# Multiple handoff paths (replaces multiple transfer functions)
|
|
133
|
+
handoffs:
|
|
134
|
+
# Path 1: Success → Payment Processing
|
|
135
|
+
- name: proceed_to_payment
|
|
136
|
+
target_agent: payment-processing-agent
|
|
137
|
+
description: "Proceed to payment after successful verification"
|
|
138
|
+
condition: "verification_status == 'success'"
|
|
139
|
+
trigger: automatic
|
|
140
|
+
context_transfer: full
|
|
141
|
+
|
|
142
|
+
# Path 2: Failure → Back to Sales
|
|
143
|
+
- name: return_to_sales
|
|
144
|
+
target_agent: sales-agent
|
|
145
|
+
description: "Return to sales if verification fails"
|
|
146
|
+
condition: "verification_status == 'failed'"
|
|
147
|
+
trigger: automatic
|
|
148
|
+
context_transfer: full
|
|
149
|
+
metadata:
|
|
150
|
+
handoff_type: error_recovery
|
|
151
|
+
reason: verification_failed
|
|
152
|
+
|
|
153
|
+
# Handoff policies (NOT available in Swarm!)
|
|
154
|
+
handoff_policies:
|
|
155
|
+
max_handoff_depth: 10 # Prevent infinite handoff loops
|
|
156
|
+
timeout_seconds: 300 # Handoff must complete within 5 minutes
|
|
157
|
+
rollback_on_error: true # Rollback to previous agent on error
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
# ============================================================================
|
|
161
|
+
# Payment Processing Agent
|
|
162
|
+
# ============================================================================
|
|
163
|
+
apiVersion: ossa/v0.3.6
|
|
164
|
+
kind: Agent
|
|
165
|
+
metadata:
|
|
166
|
+
name: payment-processing-agent
|
|
167
|
+
version: 1.0.0
|
|
168
|
+
description: "Processes payments with conditional routing for high-value orders"
|
|
169
|
+
|
|
170
|
+
spec:
|
|
171
|
+
role: |
|
|
172
|
+
You handle payment processing for orders.
|
|
173
|
+
|
|
174
|
+
Process:
|
|
175
|
+
1. Collect payment information
|
|
176
|
+
2. Process the payment securely
|
|
177
|
+
3. Proceed to fulfillment when payment is successful
|
|
178
|
+
|
|
179
|
+
For high-value orders (>$10,000), escalate to supervisor for approval first.
|
|
180
|
+
If payment fails, return to sales.
|
|
181
|
+
|
|
182
|
+
llm:
|
|
183
|
+
provider: anthropic
|
|
184
|
+
model: claude-sonnet-4-5
|
|
185
|
+
temperature: 0.2 # Very low for payment accuracy
|
|
186
|
+
max_tokens: 2048
|
|
187
|
+
|
|
188
|
+
# Capabilities
|
|
189
|
+
capabilities:
|
|
190
|
+
- name: process_payment
|
|
191
|
+
description: "Process payment for the order"
|
|
192
|
+
input_schema:
|
|
193
|
+
type: object
|
|
194
|
+
properties:
|
|
195
|
+
payment_method:
|
|
196
|
+
type: string
|
|
197
|
+
enum: [credit_card, debit_card, paypal, wire_transfer]
|
|
198
|
+
amount:
|
|
199
|
+
type: number
|
|
200
|
+
minimum: 0
|
|
201
|
+
required: [payment_method, amount]
|
|
202
|
+
output_schema:
|
|
203
|
+
type: object
|
|
204
|
+
properties:
|
|
205
|
+
transaction_id:
|
|
206
|
+
type: string
|
|
207
|
+
status:
|
|
208
|
+
type: string
|
|
209
|
+
enum: [success, failed, pending]
|
|
210
|
+
message:
|
|
211
|
+
type: string
|
|
212
|
+
|
|
213
|
+
# Conditional handoffs (replaces conditional_transfer_payment function)
|
|
214
|
+
handoffs:
|
|
215
|
+
# Path 1: High-value order → Supervisor (CONDITIONAL!)
|
|
216
|
+
- name: escalate_high_value_order
|
|
217
|
+
target_agent: supervisor-agent
|
|
218
|
+
description: "Escalate high-value orders to supervisor for approval"
|
|
219
|
+
|
|
220
|
+
# Complex condition with expression syntax (NOT possible in Swarm!)
|
|
221
|
+
condition: |
|
|
222
|
+
order_total > 10000 or
|
|
223
|
+
(customer_tier == 'new' and order_total > 5000) or
|
|
224
|
+
payment_method == 'wire_transfer'
|
|
225
|
+
|
|
226
|
+
trigger: automatic
|
|
227
|
+
context_transfer: full
|
|
228
|
+
|
|
229
|
+
# Approval requirement (NOT available in Swarm!)
|
|
230
|
+
requires_approval: true
|
|
231
|
+
approval_roles: [supervisor, finance_manager]
|
|
232
|
+
|
|
233
|
+
metadata:
|
|
234
|
+
handoff_type: escalation
|
|
235
|
+
escalation_reason: high_value_order
|
|
236
|
+
|
|
237
|
+
# Path 2: Standard order → Fulfillment
|
|
238
|
+
- name: proceed_to_fulfillment
|
|
239
|
+
target_agent: fulfillment-agent
|
|
240
|
+
description: "Proceed to fulfillment after successful payment"
|
|
241
|
+
|
|
242
|
+
# Condition: Standard order
|
|
243
|
+
condition: |
|
|
244
|
+
payment_status == 'success' and
|
|
245
|
+
order_total <= 10000
|
|
246
|
+
|
|
247
|
+
trigger: automatic
|
|
248
|
+
context_transfer: full
|
|
249
|
+
|
|
250
|
+
# Path 3: Payment failure → Back to Sales
|
|
251
|
+
- name: payment_failed_return
|
|
252
|
+
target_agent: sales-agent
|
|
253
|
+
description: "Return to sales if payment fails"
|
|
254
|
+
condition: "payment_status == 'failed'"
|
|
255
|
+
trigger: automatic
|
|
256
|
+
context_transfer: full
|
|
257
|
+
metadata:
|
|
258
|
+
handoff_type: error_recovery
|
|
259
|
+
reason: payment_failed
|
|
260
|
+
|
|
261
|
+
# Retry policy (NOT available in Swarm!)
|
|
262
|
+
retry_policy:
|
|
263
|
+
max_attempts: 3
|
|
264
|
+
backoff: exponential
|
|
265
|
+
retry_on_conditions:
|
|
266
|
+
- payment_status == 'timeout'
|
|
267
|
+
- payment_status == 'network_error'
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
# ============================================================================
|
|
271
|
+
# Fulfillment Agent
|
|
272
|
+
# ============================================================================
|
|
273
|
+
apiVersion: ossa/v0.3.6
|
|
274
|
+
kind: Agent
|
|
275
|
+
metadata:
|
|
276
|
+
name: fulfillment-agent
|
|
277
|
+
version: 1.0.0
|
|
278
|
+
description: "Handles order fulfillment and delivery"
|
|
279
|
+
|
|
280
|
+
spec:
|
|
281
|
+
role: |
|
|
282
|
+
You handle order fulfillment and delivery.
|
|
283
|
+
|
|
284
|
+
Process:
|
|
285
|
+
1. Schedule order fulfillment
|
|
286
|
+
2. Arrange delivery
|
|
287
|
+
3. Provide tracking information
|
|
288
|
+
|
|
289
|
+
Mark the issue as resolved when delivery is scheduled.
|
|
290
|
+
|
|
291
|
+
llm:
|
|
292
|
+
provider: anthropic
|
|
293
|
+
model: claude-sonnet-4-5
|
|
294
|
+
temperature: 0.5
|
|
295
|
+
max_tokens: 2048
|
|
296
|
+
|
|
297
|
+
# Capabilities
|
|
298
|
+
capabilities:
|
|
299
|
+
- name: schedule_fulfillment
|
|
300
|
+
description: "Schedule order fulfillment and delivery"
|
|
301
|
+
input_schema:
|
|
302
|
+
type: object
|
|
303
|
+
properties:
|
|
304
|
+
order_id:
|
|
305
|
+
type: string
|
|
306
|
+
delivery_address:
|
|
307
|
+
type: string
|
|
308
|
+
required: [order_id, delivery_address]
|
|
309
|
+
output_schema:
|
|
310
|
+
type: object
|
|
311
|
+
properties:
|
|
312
|
+
fulfillment_id:
|
|
313
|
+
type: string
|
|
314
|
+
tracking_number:
|
|
315
|
+
type: string
|
|
316
|
+
estimated_delivery:
|
|
317
|
+
type: string
|
|
318
|
+
format: date-time
|
|
319
|
+
|
|
320
|
+
# Handoffs
|
|
321
|
+
handoffs:
|
|
322
|
+
# Path 1: Customer wants changes → Back to Sales
|
|
323
|
+
- name: customer_modification_request
|
|
324
|
+
target_agent: sales-agent
|
|
325
|
+
description: "Return to sales if customer wants to modify order"
|
|
326
|
+
condition: "modification_requested == true"
|
|
327
|
+
trigger: manual # Requires explicit decision
|
|
328
|
+
context_transfer: full
|
|
329
|
+
|
|
330
|
+
# Mark conversation as complete (NOT available in Swarm!)
|
|
331
|
+
completion_criteria:
|
|
332
|
+
auto_complete: true
|
|
333
|
+
completion_condition: "fulfillment_scheduled == true"
|
|
334
|
+
success_metrics:
|
|
335
|
+
- fulfillment_id_present
|
|
336
|
+
- tracking_number_generated
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
# ============================================================================
|
|
340
|
+
# Supervisor Agent
|
|
341
|
+
# ============================================================================
|
|
342
|
+
apiVersion: ossa/v0.3.6
|
|
343
|
+
kind: Agent
|
|
344
|
+
metadata:
|
|
345
|
+
name: supervisor-agent
|
|
346
|
+
version: 1.0.0
|
|
347
|
+
description: "Supervisor for escalations and approvals"
|
|
348
|
+
|
|
349
|
+
spec:
|
|
350
|
+
role: |
|
|
351
|
+
You are a supervisor handling escalated cases.
|
|
352
|
+
|
|
353
|
+
Your role:
|
|
354
|
+
1. Review escalated orders (especially high-value ones)
|
|
355
|
+
2. Approve or modify orders as needed
|
|
356
|
+
3. Resolve complex customer issues
|
|
357
|
+
|
|
358
|
+
You have authority to route to any agent as needed.
|
|
359
|
+
|
|
360
|
+
llm:
|
|
361
|
+
provider: anthropic
|
|
362
|
+
model: claude-opus-4-5 # Most powerful model for complex decisions
|
|
363
|
+
temperature: 0.4
|
|
364
|
+
max_tokens: 4096
|
|
365
|
+
|
|
366
|
+
# Capabilities
|
|
367
|
+
capabilities:
|
|
368
|
+
- name: approve_order
|
|
369
|
+
description: "Approve a high-value or escalated order"
|
|
370
|
+
input_schema:
|
|
371
|
+
type: object
|
|
372
|
+
properties:
|
|
373
|
+
order_id:
|
|
374
|
+
type: string
|
|
375
|
+
approval_note:
|
|
376
|
+
type: string
|
|
377
|
+
required: [order_id, approval_note]
|
|
378
|
+
output_schema:
|
|
379
|
+
type: object
|
|
380
|
+
properties:
|
|
381
|
+
approved:
|
|
382
|
+
type: boolean
|
|
383
|
+
approval_id:
|
|
384
|
+
type: string
|
|
385
|
+
note:
|
|
386
|
+
type: string
|
|
387
|
+
|
|
388
|
+
# Supervisor can route to any agent
|
|
389
|
+
handoffs:
|
|
390
|
+
- name: approve_and_process_payment
|
|
391
|
+
target_agent: payment-processing-agent
|
|
392
|
+
description: "Approve order and proceed to payment"
|
|
393
|
+
condition: "supervisor_decision == 'approve'"
|
|
394
|
+
trigger: manual
|
|
395
|
+
context_transfer: full
|
|
396
|
+
|
|
397
|
+
- name: approve_and_fulfill
|
|
398
|
+
target_agent: fulfillment-agent
|
|
399
|
+
description: "Approve order and proceed directly to fulfillment"
|
|
400
|
+
condition: "supervisor_decision == 'fast_track'"
|
|
401
|
+
trigger: manual
|
|
402
|
+
context_transfer: full
|
|
403
|
+
|
|
404
|
+
- name: reject_and_return_to_sales
|
|
405
|
+
target_agent: sales-agent
|
|
406
|
+
description: "Reject order and return to sales"
|
|
407
|
+
condition: "supervisor_decision == 'reject'"
|
|
408
|
+
trigger: manual
|
|
409
|
+
context_transfer: full
|
|
410
|
+
metadata:
|
|
411
|
+
handoff_type: rejection
|
|
412
|
+
requires_customer_notification: true
|
|
413
|
+
|
|
414
|
+
# Escalation tracking (NOT available in Swarm!)
|
|
415
|
+
escalation_policies:
|
|
416
|
+
track_escalations: true
|
|
417
|
+
max_escalations_per_session: 3
|
|
418
|
+
escalation_cooldown_seconds: 300
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
# ============================================================================
|
|
422
|
+
# Workflow Orchestration (Bonus: NOT POSSIBLE in Swarm!)
|
|
423
|
+
# ============================================================================
|
|
424
|
+
apiVersion: ossa/v0.3.6
|
|
425
|
+
kind: Workflow
|
|
426
|
+
metadata:
|
|
427
|
+
name: order-processing-workflow
|
|
428
|
+
version: 1.0.0
|
|
429
|
+
description: "Complete order processing workflow with handoffs"
|
|
430
|
+
|
|
431
|
+
spec:
|
|
432
|
+
# Define the workflow steps
|
|
433
|
+
steps:
|
|
434
|
+
- name: sales
|
|
435
|
+
agent: sales-agent
|
|
436
|
+
description: "Initial customer interaction"
|
|
437
|
+
outputs: [customer_id, order_items, order_total]
|
|
438
|
+
|
|
439
|
+
- name: verification
|
|
440
|
+
agent: order-verification-agent
|
|
441
|
+
description: "Verify order and customer"
|
|
442
|
+
when: "{{ steps.sales.outputs.order_total > 0 }}"
|
|
443
|
+
inputs:
|
|
444
|
+
customer_id: "{{ steps.sales.outputs.customer_id }}"
|
|
445
|
+
order_items: "{{ steps.sales.outputs.order_items }}"
|
|
446
|
+
|
|
447
|
+
- name: supervisor_approval
|
|
448
|
+
agent: supervisor-agent
|
|
449
|
+
description: "Supervisor approval for high-value orders"
|
|
450
|
+
when: "{{ steps.sales.outputs.order_total > 10000 }}"
|
|
451
|
+
inputs:
|
|
452
|
+
order_total: "{{ steps.sales.outputs.order_total }}"
|
|
453
|
+
|
|
454
|
+
- name: payment
|
|
455
|
+
agent: payment-processing-agent
|
|
456
|
+
description: "Process payment"
|
|
457
|
+
when: |
|
|
458
|
+
{{ steps.verification.outputs.verified == true and
|
|
459
|
+
(steps.supervisor_approval.outputs.approved == true or
|
|
460
|
+
steps.sales.outputs.order_total <= 10000) }}
|
|
461
|
+
inputs:
|
|
462
|
+
order_total: "{{ steps.sales.outputs.order_total }}"
|
|
463
|
+
|
|
464
|
+
- name: fulfillment
|
|
465
|
+
agent: fulfillment-agent
|
|
466
|
+
description: "Fulfill and deliver order"
|
|
467
|
+
when: "{{ steps.payment.outputs.status == 'success' }}"
|
|
468
|
+
inputs:
|
|
469
|
+
order_id: "{{ steps.verification.outputs.order_id }}"
|
|
470
|
+
|
|
471
|
+
# Workflow observability
|
|
472
|
+
observability:
|
|
473
|
+
metrics:
|
|
474
|
+
enabled: true
|
|
475
|
+
metrics:
|
|
476
|
+
- workflow_duration
|
|
477
|
+
- step_completion_rate
|
|
478
|
+
- handoff_count
|
|
479
|
+
- escalation_rate
|
|
480
|
+
tracing:
|
|
481
|
+
enabled: true
|
|
482
|
+
trace_all_handoffs: true
|