@bluefly/openstandardagents 0.2.4
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/.env.example +41 -0
- package/.eslintrc.cjs +43 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +39 -0
- package/.github/dependabot.yml +58 -0
- package/.github/workflows/ci.yml +154 -0
- package/.github/workflows/codeql.yml +41 -0
- package/.github/workflows/dependabot-auto-merge.yml +28 -0
- package/.github/workflows/release.yml +103 -0
- package/.prettierignore +7 -0
- package/.prettierrc.json +10 -0
- package/.redocly.yaml +9 -0
- package/.releaserc.json +84 -0
- package/.releaserc.json.disabled +81 -0
- package/CHANGELOG.md +152 -0
- package/CONTRIBUTING.md +249 -0
- package/LICENSE +190 -0
- package/README.md +280 -0
- package/bin/ossa +8 -0
- package/bin/validate-ossa-0.2.2.ts +244 -0
- package/dist/di-container.d.ts +18 -0
- package/dist/di-container.d.ts.map +1 -0
- package/dist/di-container.js +43 -0
- package/dist/di-container.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/repositories/manifest.repository.d.ts +26 -0
- package/dist/repositories/manifest.repository.d.ts.map +1 -0
- package/dist/repositories/manifest.repository.js +90 -0
- package/dist/repositories/manifest.repository.js.map +1 -0
- package/dist/repositories/schema.repository.d.ts +30 -0
- package/dist/repositories/schema.repository.d.ts.map +1 -0
- package/dist/repositories/schema.repository.js +143 -0
- package/dist/repositories/schema.repository.js.map +1 -0
- package/dist/services/generation.service.d.ts +54 -0
- package/dist/services/generation.service.d.ts.map +1 -0
- package/dist/services/generation.service.js +298 -0
- package/dist/services/generation.service.js.map +1 -0
- package/dist/services/migration.service.d.ts +30 -0
- package/dist/services/migration.service.d.ts.map +1 -0
- package/dist/services/migration.service.js +231 -0
- package/dist/services/migration.service.js.map +1 -0
- package/dist/services/runtime/openai.adapter.d.ts +94 -0
- package/dist/services/runtime/openai.adapter.d.ts.map +1 -0
- package/dist/services/runtime/openai.adapter.js +209 -0
- package/dist/services/runtime/openai.adapter.js.map +1 -0
- package/dist/services/validation.service.d.ts +45 -0
- package/dist/services/validation.service.d.ts.map +1 -0
- package/dist/services/validation.service.js +362 -0
- package/dist/services/validation.service.js.map +1 -0
- package/dist/services/validators/anthropic.validator.d.ts +9 -0
- package/dist/services/validators/anthropic.validator.d.ts.map +1 -0
- package/dist/services/validators/anthropic.validator.js +105 -0
- package/dist/services/validators/anthropic.validator.js.map +1 -0
- package/dist/services/validators/autogen.validator.d.ts +9 -0
- package/dist/services/validators/autogen.validator.d.ts.map +1 -0
- package/dist/services/validators/autogen.validator.js +111 -0
- package/dist/services/validators/autogen.validator.js.map +1 -0
- package/dist/services/validators/crewai.validator.d.ts +9 -0
- package/dist/services/validators/crewai.validator.d.ts.map +1 -0
- package/dist/services/validators/crewai.validator.js +117 -0
- package/dist/services/validators/crewai.validator.js.map +1 -0
- package/dist/services/validators/cursor.validator.d.ts +9 -0
- package/dist/services/validators/cursor.validator.d.ts.map +1 -0
- package/dist/services/validators/cursor.validator.js +88 -0
- package/dist/services/validators/cursor.validator.js.map +1 -0
- package/dist/services/validators/index.d.ts +15 -0
- package/dist/services/validators/index.d.ts.map +1 -0
- package/dist/services/validators/index.js +15 -0
- package/dist/services/validators/index.js.map +1 -0
- package/dist/services/validators/langchain.validator.d.ts +9 -0
- package/dist/services/validators/langchain.validator.d.ts.map +1 -0
- package/dist/services/validators/langchain.validator.js +103 -0
- package/dist/services/validators/langchain.validator.js.map +1 -0
- package/dist/services/validators/langflow.validator.d.ts +9 -0
- package/dist/services/validators/langflow.validator.d.ts.map +1 -0
- package/dist/services/validators/langflow.validator.js +92 -0
- package/dist/services/validators/langflow.validator.js.map +1 -0
- package/dist/services/validators/langgraph.validator.d.ts +9 -0
- package/dist/services/validators/langgraph.validator.d.ts.map +1 -0
- package/dist/services/validators/langgraph.validator.js +123 -0
- package/dist/services/validators/langgraph.validator.js.map +1 -0
- package/dist/services/validators/llamaindex.validator.d.ts +9 -0
- package/dist/services/validators/llamaindex.validator.d.ts.map +1 -0
- package/dist/services/validators/llamaindex.validator.js +121 -0
- package/dist/services/validators/llamaindex.validator.js.map +1 -0
- package/dist/services/validators/openai.validator.d.ts +9 -0
- package/dist/services/validators/openai.validator.d.ts.map +1 -0
- package/dist/services/validators/openai.validator.js +126 -0
- package/dist/services/validators/openai.validator.js.map +1 -0
- package/dist/services/validators/vercel-ai.validator.d.ts +9 -0
- package/dist/services/validators/vercel-ai.validator.d.ts.map +1 -0
- package/dist/services/validators/vercel-ai.validator.js +99 -0
- package/dist/services/validators/vercel-ai.validator.js.map +1 -0
- package/dist/spec/v0.1.9/agent-autonomous-extensions.json +234 -0
- package/dist/spec/v0.1.9/ecosystem-compliance.json +235 -0
- package/dist/spec/v0.1.9/ossa-v0.1.9.schema.json +695 -0
- package/dist/spec/v0.1.9/ossa-v0.1.9.schema.json.backup +695 -0
- package/dist/spec/v0.1.9/reasoning-compliance.json +654 -0
- package/dist/spec/v0.2.2/kagent-enhancements.json +395 -0
- package/dist/spec/v0.2.2/ossa-0.2.2.schema.json +906 -0
- package/dist/spec/v0.2.2/ossa-0.2.2.yaml +448 -0
- package/dist/spec/v0.2.2/ossa-reasoning-compliance-1.0.schema.json +424 -0
- package/dist/spec/v0.2.3/CHANGELOG.md +176 -0
- package/dist/spec/v0.2.3/README.md +154 -0
- package/dist/spec/v0.2.3/migrations/v0.2.2-to-v0.2.3.md +343 -0
- package/dist/spec/v0.2.3/ossa-0.2.3.schema.json +1397 -0
- package/dist/spec/v0.2.3/ossa-0.2.3.yaml +448 -0
- package/dist/spec/v0.2.4-dev/CHANGELOG.md +403 -0
- package/dist/spec/v0.2.4-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
- package/dist/spec/v0.2.4-dev/ossa-0.2.4-dev.schema.json +1696 -0
- package/dist/spec/v0.2.4-dev/ossa-0.2.4-dev.yaml +581 -0
- package/dist/spec/v0.2.5-dev/CHANGELOG.md +171 -0
- package/dist/spec/v0.2.5-dev/examples/customer-support-graph.ossa.yaml +362 -0
- package/dist/spec/v0.2.5-dev/examples/parallel-processors.ossa.yaml +464 -0
- package/dist/spec/v0.2.5-dev/examples/research-team.ossa.yaml +440 -0
- package/dist/spec/v0.2.5-dev/migrations/v0.2.4-to-v0.2.5.md +317 -0
- package/dist/spec/v0.2.5-dev/ossa-0.2.5-dev.schema.json +1732 -0
- package/dist/spec/v0.2.5-dev/ossa-0.2.5-dev.yaml +409 -0
- package/dist/types/index.d.ts +178 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/openapi-extensions.d.ts +164 -0
- package/dist/types/openapi-extensions.d.ts.map +1 -0
- package/dist/types/openapi-extensions.js +6 -0
- package/dist/types/openapi-extensions.js.map +1 -0
- package/docs/OSSA-COMPLIANT-BADGE.md +248 -0
- package/docs/README.md +31 -0
- package/docs/VERSIONING.md +284 -0
- package/docs/agent-openapi-spec.yml +942 -0
- package/docs/getting-started.md +87 -0
- package/docs/migration/general-agent-schema.yml +255 -0
- package/docs/migration/migration-manifest.json +64 -0
- package/docs/openapi-extensions.md +930 -0
- package/docs/schemas/openapi-extensions.schema.json +486 -0
- package/examples/adk-integration/code-review-workflow.yml +136 -0
- package/examples/adk-integration/customer-support.yml +263 -0
- package/examples/adk-integration/data-pipeline.yml +173 -0
- package/examples/advanced/patterns/compliance-context-production.json +53 -0
- package/examples/advanced/patterns/model-router.ts +274 -0
- package/examples/advanced/patterns/smart-model-routing.ts +248 -0
- package/examples/advanced/workflows/hybrid-model-strategy.yaml +232 -0
- package/examples/agent-manifests/critics/critic-agent.yaml +149 -0
- package/examples/agent-manifests/governors/governor-agent.yaml +128 -0
- package/examples/agent-manifests/integrators/integrator-agent.yaml +103 -0
- package/examples/agent-manifests/judges/judge-agent.yaml +153 -0
- package/examples/agent-manifests/monitors/monitor-agent.yaml +122 -0
- package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +247 -0
- package/examples/agent-manifests/sample-compliant-agent.yaml +147 -0
- package/examples/agent-manifests/workers/worker-agent.yaml +82 -0
- package/examples/anthropic/claude-assistant.ossa.json +45 -0
- package/examples/architecture/model-configuration/ollama-integration.ts +110 -0
- package/examples/autogen/multi-agent.ossa.json +37 -0
- package/examples/bridge-configurations.yaml +346 -0
- package/examples/bridges/Dockerfile.production +87 -0
- package/examples/bridges/__pycache__/aiflow-bridge-enhanced.cpython-313.pyc +0 -0
- package/examples/bridges/__pycache__/aiflow-phoenix-tracing.cpython-313.pyc +0 -0
- package/examples/bridges/__pycache__/test_aiflow_integration.cpython-313.pyc +0 -0
- package/examples/bridges/aiflow-bridge-enhanced.py +462 -0
- package/examples/bridges/aiflow-bridge-example.yml +310 -0
- package/examples/bridges/aiflow-phoenix-tracing.py +310 -0
- package/examples/bridges/aiflow-registration-api.openapi.yml +439 -0
- package/examples/bridges/k8s/configmap.yaml +121 -0
- package/examples/bridges/k8s/deployment-simple.yaml +34 -0
- package/examples/bridges/k8s/deployment.yaml +275 -0
- package/examples/bridges/k8s/hpa.yaml +126 -0
- package/examples/bridges/k8s/ingress.yaml +155 -0
- package/examples/bridges/kagent-bridge-example.yml +94 -0
- package/examples/bridges/load-tests/Dockerfile +28 -0
- package/examples/bridges/load-tests/k6-load-test.js +302 -0
- package/examples/bridges/load-tests/requirements.txt +20 -0
- package/examples/bridges/loadtest/k6-scenarios.js +270 -0
- package/examples/bridges/phase4/SLO-SLA.yaml +249 -0
- package/examples/bridges/phase4/chaos-tests.yaml +226 -0
- package/examples/bridges/requirements.txt +24 -0
- package/examples/bridges/test_aiflow_integration.py +341 -0
- package/examples/common_npm/agent-router.ossa.yaml +182 -0
- package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +60 -0
- package/examples/compliance-agent.yml +155 -0
- package/examples/crewai/research-team.ossa.json +36 -0
- package/examples/cursor/code-review-agent.ossa.json +47 -0
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +609 -0
- package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +68 -0
- package/examples/enterprise/agent.yml +452 -0
- package/examples/extensions/drupal-v1.yml +266 -0
- package/examples/extensions/kagent-v1.yml +167 -0
- package/examples/getting-started/hello-world-complete.ossa.yaml +266 -0
- package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +376 -0
- package/examples/kagent/README.md +31 -0
- package/examples/kagent/compliance-validator.ossa.yaml +111 -0
- package/examples/kagent/cost-optimizer.ossa.yaml +93 -0
- package/examples/kagent/documentation-agent.ossa.yaml +91 -0
- package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +269 -0
- package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +106 -0
- package/examples/kagent/k8s-troubleshooter.ossa.yaml +257 -0
- package/examples/kagent/security-scanner.ossa.yaml +140 -0
- package/examples/langchain/chain-agent.ossa.json +42 -0
- package/examples/langflow/workflow-agent.ossa.json +39 -0
- package/examples/langgraph/state-machine-agent.ossa.json +59 -0
- package/examples/llamaindex/rag-agent.ossa.json +41 -0
- package/examples/migration-guides/from-langchain-to-ossa.yaml +309 -0
- package/examples/minimal/agent.yml +152 -0
- package/examples/minimal/openapi.yaml +95 -0
- package/examples/openai/swarm-agent.ossa.json +59 -0
- package/examples/openapi-extensions/README.md +87 -0
- package/examples/openapi-extensions/minimal-agent-api.openapi.yml +288 -0
- package/examples/openapi-extensions/orchestrator-agent-api.openapi.yml +633 -0
- package/examples/openapi-extensions/worker-agent-api.openapi.yml +533 -0
- package/examples/production/agent.yml +713 -0
- package/examples/production/document-analyzer-openai.yml +134 -0
- package/examples/quickstart/support-agent.ossa.yaml +59 -0
- package/examples/service-registry-usage.ts +423 -0
- package/examples/spec-examples/audit-agent.yml +147 -0
- package/examples/spec-examples/chat-agent.yml +189 -0
- package/examples/spec-examples/compliance-agent.yml +204 -0
- package/examples/spec-examples/data-processing-agent.yml +132 -0
- package/examples/spec-examples/development-agent.yml +138 -0
- package/examples/spec-examples/edge-agent.yml +101 -0
- package/examples/spec-examples/integration-agent.yml +129 -0
- package/examples/spec-examples/monitoring-agent.yml +130 -0
- package/examples/spec-examples/serverless-agent.yml +82 -0
- package/examples/spec-examples/workflow-agent.yml +223 -0
- package/examples/templates/ossa-compliance.yaml +56 -0
- package/examples/typescript/advanced/demo-registry.ts +168 -0
- package/examples/typescript/mcpb-agent-example.ts +358 -0
- package/examples/vercel/edge-agent.ossa.json +43 -0
- package/infrastructure/docker-compose.yml +33 -0
- package/junit.xml +1 -0
- package/openapi/drupal-agent-api.openapi.yaml +348 -0
- package/openapi/gitlab-orchestrator.openapi.yaml +330 -0
- package/openapi/helm-generator.openapi.yaml +389 -0
- package/openapi/ossa-core-api.openapi.yaml +1448 -0
- package/openapi/ossa-registry-api.openapi.yaml +980 -0
- package/openapi/ossa-registry.openapi.yaml +782 -0
- package/openapi/self-evolving-ecosystem.openapi.yaml +1530 -0
- package/openapi/unified-agent-gateway.openapi.yaml +833 -0
- package/ossa-website-swarm-tasks.json +105 -0
- package/package.json +132 -0
- package/release.config.js +64 -0
- package/spec/v0.1.9/agent-autonomous-extensions.json +234 -0
- package/spec/v0.1.9/ecosystem-compliance.json +235 -0
- package/spec/v0.1.9/ossa-v0.1.9.schema.json +695 -0
- package/spec/v0.1.9/ossa-v0.1.9.schema.json.backup +695 -0
- package/spec/v0.1.9/reasoning-compliance.json +654 -0
- package/spec/v0.2.2/kagent-enhancements.json +395 -0
- package/spec/v0.2.2/ossa-0.2.2.schema.json +906 -0
- package/spec/v0.2.2/ossa-0.2.2.yaml +448 -0
- package/spec/v0.2.2/ossa-reasoning-compliance-1.0.schema.json +424 -0
- package/spec/v0.2.3/CHANGELOG.md +176 -0
- package/spec/v0.2.3/README.md +154 -0
- package/spec/v0.2.3/migrations/v0.2.2-to-v0.2.3.md +343 -0
- package/spec/v0.2.3/ossa-0.2.3.schema.json +1397 -0
- package/spec/v0.2.3/ossa-0.2.3.yaml +448 -0
- package/spec/v0.2.4-dev/CHANGELOG.md +403 -0
- package/spec/v0.2.4-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
- package/spec/v0.2.4-dev/ossa-0.2.4-dev.schema.json +1696 -0
- package/spec/v0.2.4-dev/ossa-0.2.4-dev.yaml +581 -0
- package/spec/v0.2.5-dev/CHANGELOG.md +171 -0
- package/spec/v0.2.5-dev/examples/customer-support-graph.ossa.yaml +362 -0
- package/spec/v0.2.5-dev/examples/parallel-processors.ossa.yaml +464 -0
- package/spec/v0.2.5-dev/examples/research-team.ossa.yaml +440 -0
- package/spec/v0.2.5-dev/migrations/v0.2.4-to-v0.2.5.md +317 -0
- package/spec/v0.2.5-dev/ossa-0.2.5-dev.schema.json +1732 -0
- package/spec/v0.2.5-dev/ossa-0.2.5-dev.yaml +409 -0
- package/test-results.xml +1 -0
- package/website/.lighthouserc.js +20 -0
- package/website/.prettierrc +10 -0
- package/website/Dockerfile +17 -0
- package/website/app/about/page.tsx +295 -0
- package/website/app/api/validate/route.ts +88 -0
- package/website/app/blog/[slug]/page.tsx +167 -0
- package/website/app/blog/page.tsx +162 -0
- package/website/app/docs/[[...slug]]/page.tsx +349 -0
- package/website/app/docs/core-concepts/project-structure/page.tsx +349 -0
- package/website/app/ecosystem/page.tsx +375 -0
- package/website/app/examples/page.tsx +123 -0
- package/website/app/globals.css +108 -0
- package/website/app/layout.tsx +106 -0
- package/website/app/page.tsx +409 -0
- package/website/app/playground/page.tsx +507 -0
- package/website/app/robots.ts +19 -0
- package/website/app/rss.xml/route.ts +74 -0
- package/website/app/schema/page.tsx +970 -0
- package/website/app/sitemap.ts +56 -0
- package/website/app/specification/page.tsx +211 -0
- package/website/components/InstallCommand.tsx +96 -0
- package/website/components/Logo.tsx +24 -0
- package/website/components/StructuredData.tsx +65 -0
- package/website/components/docs/DocsSearch.tsx +104 -0
- package/website/components/docs/DocsSidebar.tsx +118 -0
- package/website/components/docs/MarkdownContent.tsx +183 -0
- package/website/components/docs/VersionSelector.tsx +49 -0
- package/website/components/examples/ExamplesViewer.tsx +293 -0
- package/website/components/layout/Footer.tsx +111 -0
- package/website/components/layout/Header.tsx +170 -0
- package/website/components/schema/SchemaExplorer.tsx +213 -0
- package/website/content/blog/OpenAPI-AI-Agents-Standard.md +285 -0
- package/website/content/blog/Why-Formal-Standards-Matter-Now.md +209 -0
- package/website/content/blog/introducing-ossa-framework.md +328 -0
- package/website/content/blog/ossa-production-results.md +279 -0
- package/website/content/blog/welcome-to-ossa.md +43 -0
- package/website/content/blog/why-ai-agents-need-open-standard.md +98 -0
- package/website/content/docs/00-HOME.md +160 -0
- package/website/content/docs/AIFlow-Framework-Integration-with-OSSA.md +107 -0
- package/website/content/docs/OpenAPI-Extensions.md +498 -0
- package/website/content/docs/architecture/execution-flow.md +335 -0
- package/website/content/docs/architecture/multi-agent-systems.md +737 -0
- package/website/content/docs/architecture/overview.md +121 -0
- package/website/content/docs/architecture/stack-integration.md +461 -0
- package/website/content/docs/changelog.md +246 -0
- package/website/content/docs/contributing.md +599 -0
- package/website/content/docs/core-concepts/project-structure.md +348 -0
- package/website/content/docs/ecosystem/framework-support.md +821 -0
- package/website/content/docs/ecosystem/overview.md +366 -0
- package/website/content/docs/examples/Migration-Guides.md +214 -0
- package/website/content/docs/examples.md +71 -0
- package/website/content/docs/for-audiences/Enterprises.md +256 -0
- package/website/content/docs/for-audiences/Students-Researchers.md +122 -0
- package/website/content/docs/for-audiences/architects.md +224 -0
- package/website/content/docs/for-audiences/developers.md +220 -0
- package/website/content/docs/getting-started/5-minute-overview.md +85 -0
- package/website/content/docs/getting-started/Hello-World.md +184 -0
- package/website/content/docs/getting-started/first-agent.md +196 -0
- package/website/content/docs/getting-started/installation.md +155 -0
- package/website/content/docs/getting-started/running-agents.md +107 -0
- package/website/content/docs/integrations/aiflow.md +104 -0
- package/website/content/docs/integrations/drupal.md +105 -0
- package/website/content/docs/migration-guides/00-index.md +76 -0
- package/website/content/docs/migration-guides/README.md +133 -0
- package/website/content/docs/migration-guides/anthropic-mcp-to-ossa.md +1750 -0
- package/website/content/docs/migration-guides/crewai-to-ossa.md +274 -0
- package/website/content/docs/migration-guides/drupal-eca-to-ossa.md +2017 -0
- package/website/content/docs/migration-guides/index.md +133 -0
- package/website/content/docs/migration-guides/langchain-to-ossa.md +1714 -0
- package/website/content/docs/migration-guides/langflow-to-ossa.md +2075 -0
- package/website/content/docs/migration-guides/openai-to-ossa.md +1202 -0
- package/website/content/docs/openapi-extensions/examples.md +550 -0
- package/website/content/docs/openapi-extensions/index.md +495 -0
- package/website/content/docs/openapi-extensions/operation-extensions.md +398 -0
- package/website/content/docs/openapi-extensions/root-extensions.md +364 -0
- package/website/content/docs/pre-release/index.md +175 -0
- package/website/content/docs/quick-reference.md +17 -0
- package/website/content/docs/schema-reference/agent-spec.md +406 -0
- package/website/content/docs/schema-reference/autonomy.md +568 -0
- package/website/content/docs/schema-reference/constraints.md +543 -0
- package/website/content/docs/schema-reference/index.md +176 -0
- package/website/content/docs/schema-reference/llm-config.md +445 -0
- package/website/content/docs/schema-reference/observability.md +654 -0
- package/website/content/docs/schema-reference/ossa-manifest.md +309 -0
- package/website/content/docs/schema-reference/taxonomy.md +509 -0
- package/website/content/docs/schema-reference/tools.md +628 -0
- package/website/content/docs/templates/blog-post.md +43 -0
- package/website/content/docs/use-cases/00-index.md +395 -0
- package/website/content/docs/use-cases/cicd-code-review.md +1236 -0
- package/website/content/docs/use-cases/customer-support.md +1234 -0
- package/website/content/docs/use-cases/enterprise-compliance.md +1208 -0
- package/website/content/docs/use-cases/research-multi-agent.md +1161 -0
- package/website/lib/version.ts +18 -0
- package/website/next.config.js +17 -0
- package/website/next.config.ts +16 -0
- package/website/nginx.conf +32 -0
- package/website/package-lock.json +9145 -0
- package/website/package.json +53 -0
- package/website/postcss.config.js +7 -0
- package/website/postcss.config.mjs +9 -0
- package/website/scripts/sync-version.js +44 -0
- package/website/scripts/sync-wiki.ts +261 -0
- package/website/tailwind.config.js +58 -0
- package/website/tailwind.config.ts +65 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
apiVersion: apps/v1
|
|
2
|
+
kind: Deployment
|
|
3
|
+
metadata:
|
|
4
|
+
name: aiflow-social-agent
|
|
5
|
+
namespace: agents
|
|
6
|
+
labels:
|
|
7
|
+
app: aiflow-social-agent
|
|
8
|
+
component: agent
|
|
9
|
+
framework: aiflow
|
|
10
|
+
ossa-compliant: "true"
|
|
11
|
+
version: "1.0.0"
|
|
12
|
+
annotations:
|
|
13
|
+
description: "AIFlow personality-driven social agent with BuildKit registration"
|
|
14
|
+
phoenix-project: "aiflow-social-agents"
|
|
15
|
+
ossa-manifest: "social-agent-aiflow.ossa.yaml"
|
|
16
|
+
spec:
|
|
17
|
+
replicas: 2
|
|
18
|
+
revisionHistoryLimit: 3
|
|
19
|
+
strategy:
|
|
20
|
+
type: RollingUpdate
|
|
21
|
+
rollingUpdate:
|
|
22
|
+
maxSurge: 1
|
|
23
|
+
maxUnavailable: 0
|
|
24
|
+
selector:
|
|
25
|
+
matchLabels:
|
|
26
|
+
app: aiflow-social-agent
|
|
27
|
+
template:
|
|
28
|
+
metadata:
|
|
29
|
+
labels:
|
|
30
|
+
app: aiflow-social-agent
|
|
31
|
+
component: agent
|
|
32
|
+
framework: aiflow
|
|
33
|
+
version: "1.0.0"
|
|
34
|
+
annotations:
|
|
35
|
+
prometheus.io/scrape: "true"
|
|
36
|
+
prometheus.io/port: "8000"
|
|
37
|
+
prometheus.io/path: "/metrics"
|
|
38
|
+
phoenix.arize.com/project: "aiflow-social-agents"
|
|
39
|
+
spec:
|
|
40
|
+
serviceAccountName: aiflow-agent
|
|
41
|
+
securityContext:
|
|
42
|
+
runAsNonRoot: true
|
|
43
|
+
runAsUser: 1000
|
|
44
|
+
fsGroup: 1000
|
|
45
|
+
|
|
46
|
+
terminationGracePeriodSeconds: 30
|
|
47
|
+
|
|
48
|
+
# Init container to check BuildKit registry availability
|
|
49
|
+
initContainers:
|
|
50
|
+
- name: wait-for-buildkit
|
|
51
|
+
image: busybox:1.36
|
|
52
|
+
command:
|
|
53
|
+
- sh
|
|
54
|
+
- -c
|
|
55
|
+
- |
|
|
56
|
+
echo "Waiting for BuildKit registry..."
|
|
57
|
+
until wget -q --spider http://buildkit.agent-buildkit.svc.cluster.local/api/v1/health; do
|
|
58
|
+
echo "BuildKit not ready, waiting..."
|
|
59
|
+
sleep 5
|
|
60
|
+
done
|
|
61
|
+
echo "BuildKit is ready!"
|
|
62
|
+
resources:
|
|
63
|
+
requests:
|
|
64
|
+
cpu: 10m
|
|
65
|
+
memory: 16Mi
|
|
66
|
+
limits:
|
|
67
|
+
cpu: 50m
|
|
68
|
+
memory: 32Mi
|
|
69
|
+
|
|
70
|
+
containers:
|
|
71
|
+
- name: aiflow-agent
|
|
72
|
+
image: registry.bluefly.io/llm/aiflow-social-agent:1.0.0
|
|
73
|
+
imagePullPolicy: IfNotPresent
|
|
74
|
+
|
|
75
|
+
ports:
|
|
76
|
+
- name: http
|
|
77
|
+
containerPort: 8000
|
|
78
|
+
protocol: TCP
|
|
79
|
+
- name: metrics
|
|
80
|
+
containerPort: 8000
|
|
81
|
+
protocol: TCP
|
|
82
|
+
|
|
83
|
+
env:
|
|
84
|
+
# Agent Identity
|
|
85
|
+
- name: AGENT_ID
|
|
86
|
+
value: "social-agent-aiflow"
|
|
87
|
+
- name: AGENT_NAME
|
|
88
|
+
value: "AIFlow Social Agent"
|
|
89
|
+
- name: AGENT_VERSION
|
|
90
|
+
value: "1.0.0"
|
|
91
|
+
|
|
92
|
+
# Service URLs
|
|
93
|
+
- name: BASE_URL
|
|
94
|
+
value: "http://aiflow-social-agent.agents.svc.cluster.local:8000"
|
|
95
|
+
- name: BUILDKIT_REGISTRY_URL
|
|
96
|
+
value: "http://buildkit.agent-buildkit.svc.cluster.local/api/v1"
|
|
97
|
+
|
|
98
|
+
# Phoenix Tracing
|
|
99
|
+
- name: PHOENIX_ENDPOINT
|
|
100
|
+
value: "http://otel-collector.observability.svc.cluster.local:4318"
|
|
101
|
+
- name: PHOENIX_PROJECT
|
|
102
|
+
value: "aiflow-social-agents"
|
|
103
|
+
- name: PHOENIX_ENABLED
|
|
104
|
+
value: "true"
|
|
105
|
+
|
|
106
|
+
# Runtime Configuration
|
|
107
|
+
- name: HEARTBEAT_INTERVAL
|
|
108
|
+
value: "30"
|
|
109
|
+
- name: LOG_LEVEL
|
|
110
|
+
value: "info"
|
|
111
|
+
- name: PYTHONUNBUFFERED
|
|
112
|
+
value: "1"
|
|
113
|
+
|
|
114
|
+
# API Key from Secret
|
|
115
|
+
- name: AIFLOW_API_KEY
|
|
116
|
+
valueFrom:
|
|
117
|
+
secretKeyRef:
|
|
118
|
+
name: aiflow-agent-secrets
|
|
119
|
+
key: api-key
|
|
120
|
+
|
|
121
|
+
# Social Platform Credentials
|
|
122
|
+
- name: TWITTER_API_KEY
|
|
123
|
+
valueFrom:
|
|
124
|
+
secretKeyRef:
|
|
125
|
+
name: aiflow-agent-secrets
|
|
126
|
+
key: twitter-api-key
|
|
127
|
+
optional: true
|
|
128
|
+
- name: TELEGRAM_BOT_TOKEN
|
|
129
|
+
valueFrom:
|
|
130
|
+
secretKeyRef:
|
|
131
|
+
name: aiflow-agent-secrets
|
|
132
|
+
key: telegram-bot-token
|
|
133
|
+
optional: true
|
|
134
|
+
|
|
135
|
+
# Kubernetes Info
|
|
136
|
+
- name: K8S_POD_NAME
|
|
137
|
+
valueFrom:
|
|
138
|
+
fieldRef:
|
|
139
|
+
fieldPath: metadata.name
|
|
140
|
+
- name: K8S_POD_NAMESPACE
|
|
141
|
+
valueFrom:
|
|
142
|
+
fieldRef:
|
|
143
|
+
fieldPath: metadata.namespace
|
|
144
|
+
- name: K8S_NODE_NAME
|
|
145
|
+
valueFrom:
|
|
146
|
+
fieldRef:
|
|
147
|
+
fieldPath: spec.nodeName
|
|
148
|
+
|
|
149
|
+
# Resource Limits
|
|
150
|
+
resources:
|
|
151
|
+
requests:
|
|
152
|
+
cpu: 500m
|
|
153
|
+
memory: 512Mi
|
|
154
|
+
limits:
|
|
155
|
+
cpu: 1000m
|
|
156
|
+
memory: 1Gi
|
|
157
|
+
|
|
158
|
+
# Health Checks
|
|
159
|
+
livenessProbe:
|
|
160
|
+
httpGet:
|
|
161
|
+
path: /health
|
|
162
|
+
port: http
|
|
163
|
+
initialDelaySeconds: 30
|
|
164
|
+
periodSeconds: 30
|
|
165
|
+
timeoutSeconds: 5
|
|
166
|
+
successThreshold: 1
|
|
167
|
+
failureThreshold: 3
|
|
168
|
+
|
|
169
|
+
readinessProbe:
|
|
170
|
+
httpGet:
|
|
171
|
+
path: /health
|
|
172
|
+
port: http
|
|
173
|
+
initialDelaySeconds: 10
|
|
174
|
+
periodSeconds: 10
|
|
175
|
+
timeoutSeconds: 3
|
|
176
|
+
successThreshold: 1
|
|
177
|
+
failureThreshold: 2
|
|
178
|
+
|
|
179
|
+
startupProbe:
|
|
180
|
+
httpGet:
|
|
181
|
+
path: /health
|
|
182
|
+
port: http
|
|
183
|
+
initialDelaySeconds: 5
|
|
184
|
+
periodSeconds: 5
|
|
185
|
+
timeoutSeconds: 3
|
|
186
|
+
successThreshold: 1
|
|
187
|
+
failureThreshold: 12 # 60 seconds max startup time
|
|
188
|
+
|
|
189
|
+
# Graceful Shutdown
|
|
190
|
+
lifecycle:
|
|
191
|
+
preStop:
|
|
192
|
+
exec:
|
|
193
|
+
command:
|
|
194
|
+
- sh
|
|
195
|
+
- -c
|
|
196
|
+
- |
|
|
197
|
+
echo "Initiating graceful shutdown..."
|
|
198
|
+
sleep 5 # Allow current requests to complete
|
|
199
|
+
|
|
200
|
+
# Volume Mounts
|
|
201
|
+
volumeMounts:
|
|
202
|
+
- name: config
|
|
203
|
+
mountPath: /app/config
|
|
204
|
+
readOnly: true
|
|
205
|
+
- name: character-data
|
|
206
|
+
mountPath: /app/characters
|
|
207
|
+
readOnly: true
|
|
208
|
+
- name: tmp
|
|
209
|
+
mountPath: /tmp
|
|
210
|
+
|
|
211
|
+
# Volumes
|
|
212
|
+
volumes:
|
|
213
|
+
- name: config
|
|
214
|
+
configMap:
|
|
215
|
+
name: aiflow-agent-config
|
|
216
|
+
- name: character-data
|
|
217
|
+
configMap:
|
|
218
|
+
name: aiflow-character-config
|
|
219
|
+
- name: tmp
|
|
220
|
+
emptyDir: {}
|
|
221
|
+
|
|
222
|
+
# Scheduling
|
|
223
|
+
affinity:
|
|
224
|
+
# Prefer spreading across nodes
|
|
225
|
+
podAntiAffinity:
|
|
226
|
+
preferredDuringSchedulingIgnoredDuringExecution:
|
|
227
|
+
- weight: 100
|
|
228
|
+
podAffinityTerm:
|
|
229
|
+
labelSelector:
|
|
230
|
+
matchLabels:
|
|
231
|
+
app: aiflow-social-agent
|
|
232
|
+
topologyKey: kubernetes.io/hostname
|
|
233
|
+
|
|
234
|
+
# Tolerations
|
|
235
|
+
tolerations:
|
|
236
|
+
- key: "workload"
|
|
237
|
+
operator: "Equal"
|
|
238
|
+
value: "agents"
|
|
239
|
+
effect: "NoSchedule"
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
apiVersion: v1
|
|
243
|
+
kind: ServiceAccount
|
|
244
|
+
metadata:
|
|
245
|
+
name: aiflow-agent
|
|
246
|
+
namespace: agents
|
|
247
|
+
labels:
|
|
248
|
+
app: aiflow-social-agent
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
apiVersion: v1
|
|
252
|
+
kind: Service
|
|
253
|
+
metadata:
|
|
254
|
+
name: aiflow-social-agent
|
|
255
|
+
namespace: agents
|
|
256
|
+
labels:
|
|
257
|
+
app: aiflow-social-agent
|
|
258
|
+
annotations:
|
|
259
|
+
prometheus.io/scrape: "true"
|
|
260
|
+
prometheus.io/port: "8000"
|
|
261
|
+
prometheus.io/path: "/metrics"
|
|
262
|
+
spec:
|
|
263
|
+
type: ClusterIP
|
|
264
|
+
sessionAffinity: None
|
|
265
|
+
ports:
|
|
266
|
+
- name: http
|
|
267
|
+
port: 8000
|
|
268
|
+
targetPort: http
|
|
269
|
+
protocol: TCP
|
|
270
|
+
- name: metrics
|
|
271
|
+
port: 9090
|
|
272
|
+
targetPort: metrics
|
|
273
|
+
protocol: TCP
|
|
274
|
+
selector:
|
|
275
|
+
app: aiflow-social-agent
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
apiVersion: autoscaling/v2
|
|
2
|
+
kind: HorizontalPodAutoscaler
|
|
3
|
+
metadata:
|
|
4
|
+
name: aiflow-social-agent
|
|
5
|
+
namespace: agents
|
|
6
|
+
labels:
|
|
7
|
+
app: aiflow-social-agent
|
|
8
|
+
annotations:
|
|
9
|
+
description: "Auto-scale AIFlow agent based on CPU, memory, and custom metrics"
|
|
10
|
+
spec:
|
|
11
|
+
scaleTargetRef:
|
|
12
|
+
apiVersion: apps/v1
|
|
13
|
+
kind: Deployment
|
|
14
|
+
name: aiflow-social-agent
|
|
15
|
+
|
|
16
|
+
minReplicas: 2
|
|
17
|
+
maxReplicas: 10
|
|
18
|
+
|
|
19
|
+
behavior:
|
|
20
|
+
scaleDown:
|
|
21
|
+
stabilizationWindowSeconds: 300 # Wait 5 minutes before scaling down
|
|
22
|
+
policies:
|
|
23
|
+
- type: Percent
|
|
24
|
+
value: 50
|
|
25
|
+
periodSeconds: 60 # Remove 50% of pods per minute max
|
|
26
|
+
- type: Pods
|
|
27
|
+
value: 2
|
|
28
|
+
periodSeconds: 60 # Remove 2 pods per minute max
|
|
29
|
+
selectPolicy: Min # Use the most conservative policy
|
|
30
|
+
|
|
31
|
+
scaleUp:
|
|
32
|
+
stabilizationWindowSeconds: 0 # Scale up immediately
|
|
33
|
+
policies:
|
|
34
|
+
- type: Percent
|
|
35
|
+
value: 100
|
|
36
|
+
periodSeconds: 30 # Double pods every 30 seconds if needed
|
|
37
|
+
- type: Pods
|
|
38
|
+
value: 4
|
|
39
|
+
periodSeconds: 30 # Add 4 pods per 30 seconds max
|
|
40
|
+
selectPolicy: Max # Use the most aggressive policy
|
|
41
|
+
|
|
42
|
+
metrics:
|
|
43
|
+
# CPU Utilization
|
|
44
|
+
- type: Resource
|
|
45
|
+
resource:
|
|
46
|
+
name: cpu
|
|
47
|
+
target:
|
|
48
|
+
type: Utilization
|
|
49
|
+
averageUtilization: 70
|
|
50
|
+
|
|
51
|
+
# Memory Utilization
|
|
52
|
+
- type: Resource
|
|
53
|
+
resource:
|
|
54
|
+
name: memory
|
|
55
|
+
target:
|
|
56
|
+
type: Utilization
|
|
57
|
+
averageUtilization: 80
|
|
58
|
+
|
|
59
|
+
# Custom Metric: API Request Rate
|
|
60
|
+
- type: Pods
|
|
61
|
+
pods:
|
|
62
|
+
metric:
|
|
63
|
+
name: aiflow_api_requests_per_second
|
|
64
|
+
target:
|
|
65
|
+
type: AverageValue
|
|
66
|
+
averageValue: "100"
|
|
67
|
+
|
|
68
|
+
# Custom Metric: Active Tasks
|
|
69
|
+
- type: Pods
|
|
70
|
+
pods:
|
|
71
|
+
metric:
|
|
72
|
+
name: aiflow_active_tasks
|
|
73
|
+
target:
|
|
74
|
+
type: AverageValue
|
|
75
|
+
averageValue: "50"
|
|
76
|
+
|
|
77
|
+
# Custom Metric: API Latency (P95)
|
|
78
|
+
- type: Pods
|
|
79
|
+
pods:
|
|
80
|
+
metric:
|
|
81
|
+
name: aiflow_api_latency_p95
|
|
82
|
+
target:
|
|
83
|
+
type: AverageValue
|
|
84
|
+
averageValue: "500m" # 500ms
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
apiVersion: v1
|
|
88
|
+
kind: ServiceMonitor
|
|
89
|
+
metadata:
|
|
90
|
+
name: aiflow-social-agent
|
|
91
|
+
namespace: agents
|
|
92
|
+
labels:
|
|
93
|
+
app: aiflow-social-agent
|
|
94
|
+
prometheus: kube-prometheus
|
|
95
|
+
spec:
|
|
96
|
+
selector:
|
|
97
|
+
matchLabels:
|
|
98
|
+
app: aiflow-social-agent
|
|
99
|
+
endpoints:
|
|
100
|
+
- port: metrics
|
|
101
|
+
interval: 30s
|
|
102
|
+
path: /metrics
|
|
103
|
+
scheme: http
|
|
104
|
+
honorLabels: true
|
|
105
|
+
relabelings:
|
|
106
|
+
- sourceLabels: [__meta_kubernetes_pod_name]
|
|
107
|
+
targetLabel: pod
|
|
108
|
+
- sourceLabels: [__meta_kubernetes_pod_node_name]
|
|
109
|
+
targetLabel: node
|
|
110
|
+
- sourceLabels: [__meta_kubernetes_namespace]
|
|
111
|
+
targetLabel: namespace
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
apiVersion: policy/v1
|
|
115
|
+
kind: PodDisruptionBudget
|
|
116
|
+
metadata:
|
|
117
|
+
name: aiflow-social-agent
|
|
118
|
+
namespace: agents
|
|
119
|
+
labels:
|
|
120
|
+
app: aiflow-social-agent
|
|
121
|
+
spec:
|
|
122
|
+
minAvailable: 1
|
|
123
|
+
selector:
|
|
124
|
+
matchLabels:
|
|
125
|
+
app: aiflow-social-agent
|
|
126
|
+
unhealthyPodEvictionPolicy: IfHealthyBudget
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
apiVersion: networking.k8s.io/v1
|
|
2
|
+
kind: Ingress
|
|
3
|
+
metadata:
|
|
4
|
+
name: aiflow-social-agent
|
|
5
|
+
namespace: agents
|
|
6
|
+
labels:
|
|
7
|
+
app: aiflow-social-agent
|
|
8
|
+
annotations:
|
|
9
|
+
# Nginx ingress annotations
|
|
10
|
+
kubernetes.io/ingress.class: "nginx"
|
|
11
|
+
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
12
|
+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
13
|
+
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
14
|
+
|
|
15
|
+
# Rate limiting
|
|
16
|
+
nginx.ingress.kubernetes.io/limit-rps: "100"
|
|
17
|
+
nginx.ingress.kubernetes.io/limit-burst-multiplier: "5"
|
|
18
|
+
|
|
19
|
+
# Timeouts
|
|
20
|
+
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
|
|
21
|
+
nginx.ingress.kubernetes.io/proxy-send-timeout: "30"
|
|
22
|
+
nginx.ingress.kubernetes.io/proxy-read-timeout: "30"
|
|
23
|
+
|
|
24
|
+
# CORS
|
|
25
|
+
nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
26
|
+
nginx.ingress.kubernetes.io/cors-allow-origin: "https://agent-buildkit.orb.local"
|
|
27
|
+
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, OPTIONS"
|
|
28
|
+
|
|
29
|
+
# Security headers
|
|
30
|
+
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
31
|
+
more_set_headers "X-Frame-Options: DENY";
|
|
32
|
+
more_set_headers "X-Content-Type-Options: nosniff";
|
|
33
|
+
more_set_headers "X-XSS-Protection: 1; mode=block";
|
|
34
|
+
more_set_headers "Referrer-Policy: strict-origin-when-cross-origin";
|
|
35
|
+
spec:
|
|
36
|
+
tls:
|
|
37
|
+
- hosts:
|
|
38
|
+
- aiflow-agent.agents.orb.local
|
|
39
|
+
secretName: aiflow-agent-tls
|
|
40
|
+
|
|
41
|
+
rules:
|
|
42
|
+
- host: aiflow-agent.agents.orb.local
|
|
43
|
+
http:
|
|
44
|
+
paths:
|
|
45
|
+
# API endpoints
|
|
46
|
+
- path: /
|
|
47
|
+
pathType: Prefix
|
|
48
|
+
backend:
|
|
49
|
+
service:
|
|
50
|
+
name: aiflow-social-agent
|
|
51
|
+
port:
|
|
52
|
+
number: 8000
|
|
53
|
+
|
|
54
|
+
# Metrics endpoint (protected)
|
|
55
|
+
- path: /metrics
|
|
56
|
+
pathType: Exact
|
|
57
|
+
backend:
|
|
58
|
+
service:
|
|
59
|
+
name: aiflow-social-agent
|
|
60
|
+
port:
|
|
61
|
+
number: 9090
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
apiVersion: networking.k8s.io/v1
|
|
65
|
+
kind: NetworkPolicy
|
|
66
|
+
metadata:
|
|
67
|
+
name: aiflow-social-agent
|
|
68
|
+
namespace: agents
|
|
69
|
+
labels:
|
|
70
|
+
app: aiflow-social-agent
|
|
71
|
+
spec:
|
|
72
|
+
podSelector:
|
|
73
|
+
matchLabels:
|
|
74
|
+
app: aiflow-social-agent
|
|
75
|
+
|
|
76
|
+
policyTypes:
|
|
77
|
+
- Ingress
|
|
78
|
+
- Egress
|
|
79
|
+
|
|
80
|
+
ingress:
|
|
81
|
+
# Allow traffic from ingress controller
|
|
82
|
+
- from:
|
|
83
|
+
- namespaceSelector:
|
|
84
|
+
matchLabels:
|
|
85
|
+
name: ingress-nginx
|
|
86
|
+
ports:
|
|
87
|
+
- protocol: TCP
|
|
88
|
+
port: 8000
|
|
89
|
+
|
|
90
|
+
# Allow traffic from BuildKit registry
|
|
91
|
+
- from:
|
|
92
|
+
- namespaceSelector:
|
|
93
|
+
matchLabels:
|
|
94
|
+
name: agent-buildkit
|
|
95
|
+
- podSelector:
|
|
96
|
+
matchLabels:
|
|
97
|
+
app: buildkit-registry
|
|
98
|
+
ports:
|
|
99
|
+
- protocol: TCP
|
|
100
|
+
port: 8000
|
|
101
|
+
|
|
102
|
+
# Allow Prometheus scraping
|
|
103
|
+
- from:
|
|
104
|
+
- namespaceSelector:
|
|
105
|
+
matchLabels:
|
|
106
|
+
name: observability
|
|
107
|
+
- podSelector:
|
|
108
|
+
matchLabels:
|
|
109
|
+
app: prometheus
|
|
110
|
+
ports:
|
|
111
|
+
- protocol: TCP
|
|
112
|
+
port: 9090
|
|
113
|
+
|
|
114
|
+
egress:
|
|
115
|
+
# Allow DNS
|
|
116
|
+
- to:
|
|
117
|
+
- namespaceSelector:
|
|
118
|
+
matchLabels:
|
|
119
|
+
name: kube-system
|
|
120
|
+
- podSelector:
|
|
121
|
+
matchLabels:
|
|
122
|
+
k8s-app: kube-dns
|
|
123
|
+
ports:
|
|
124
|
+
- protocol: UDP
|
|
125
|
+
port: 53
|
|
126
|
+
|
|
127
|
+
# Allow BuildKit registry
|
|
128
|
+
- to:
|
|
129
|
+
- namespaceSelector:
|
|
130
|
+
matchLabels:
|
|
131
|
+
name: agent-buildkit
|
|
132
|
+
ports:
|
|
133
|
+
- protocol: TCP
|
|
134
|
+
port: 80
|
|
135
|
+
- protocol: TCP
|
|
136
|
+
port: 443
|
|
137
|
+
|
|
138
|
+
# Allow OTEL collector
|
|
139
|
+
- to:
|
|
140
|
+
- namespaceSelector:
|
|
141
|
+
matchLabels:
|
|
142
|
+
name: observability
|
|
143
|
+
- podSelector:
|
|
144
|
+
matchLabels:
|
|
145
|
+
app: otel-collector
|
|
146
|
+
ports:
|
|
147
|
+
- protocol: TCP
|
|
148
|
+
port: 4318
|
|
149
|
+
|
|
150
|
+
# Allow external API calls (Twitter, Telegram, etc.)
|
|
151
|
+
- to:
|
|
152
|
+
- namespaceSelector: {}
|
|
153
|
+
ports:
|
|
154
|
+
- protocol: TCP
|
|
155
|
+
port: 443
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
ossaVersion: "1.0"
|
|
2
|
+
agent:
|
|
3
|
+
id: kubernetes-ops-agent
|
|
4
|
+
name: Kubernetes Operations Agent
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
description: OSSA agent with kagent.dev bridge for Kubernetes operations
|
|
7
|
+
role: orchestration
|
|
8
|
+
tags: ["kubernetes", "k8s", "devops", "kagent"]
|
|
9
|
+
|
|
10
|
+
runtime:
|
|
11
|
+
type: k8s
|
|
12
|
+
resources:
|
|
13
|
+
cpu: "500m"
|
|
14
|
+
memory: "512Mi"
|
|
15
|
+
|
|
16
|
+
capabilities:
|
|
17
|
+
- name: manage_deployments
|
|
18
|
+
description: Manage Kubernetes deployments
|
|
19
|
+
input_schema:
|
|
20
|
+
type: object
|
|
21
|
+
properties:
|
|
22
|
+
action:
|
|
23
|
+
type: string
|
|
24
|
+
enum: ["create", "update", "delete", "scale"]
|
|
25
|
+
deployment:
|
|
26
|
+
type: string
|
|
27
|
+
namespace:
|
|
28
|
+
type: string
|
|
29
|
+
output_schema:
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
status:
|
|
33
|
+
type: string
|
|
34
|
+
message:
|
|
35
|
+
type: string
|
|
36
|
+
|
|
37
|
+
monitoring:
|
|
38
|
+
traces: true
|
|
39
|
+
metrics: true
|
|
40
|
+
logs: true
|
|
41
|
+
|
|
42
|
+
# kagent.dev bridge configuration
|
|
43
|
+
bridge:
|
|
44
|
+
kagent:
|
|
45
|
+
enabled: true
|
|
46
|
+
api_version: kagent.dev/v1alpha2
|
|
47
|
+
agent_type: declarative
|
|
48
|
+
deployment:
|
|
49
|
+
replicas: 1
|
|
50
|
+
resources:
|
|
51
|
+
requests:
|
|
52
|
+
cpu: "100m"
|
|
53
|
+
memory: "256Mi"
|
|
54
|
+
limits:
|
|
55
|
+
cpu: "1000m"
|
|
56
|
+
memory: "1Gi"
|
|
57
|
+
model_config: default-model-config
|
|
58
|
+
system_message: |
|
|
59
|
+
You are a Kubernetes operations expert. You help users manage
|
|
60
|
+
and troubleshoot Kubernetes clusters. Use your tools to query
|
|
61
|
+
cluster state and perform operations safely.
|
|
62
|
+
tools:
|
|
63
|
+
- type: McpServer
|
|
64
|
+
mcpServer:
|
|
65
|
+
toolServer: kagent-tool-server
|
|
66
|
+
toolNames:
|
|
67
|
+
- k8s_get_resources
|
|
68
|
+
- k8s_get_available_api_resources
|
|
69
|
+
- k8s_apply_manifest
|
|
70
|
+
- k8s_delete_resource
|
|
71
|
+
a2a_config:
|
|
72
|
+
skills:
|
|
73
|
+
- id: cluster-management
|
|
74
|
+
name: Cluster Management
|
|
75
|
+
description: Manage Kubernetes cluster resources
|
|
76
|
+
examples:
|
|
77
|
+
- "Scale deployment nginx to 3 replicas"
|
|
78
|
+
- "Get all pods in production namespace"
|
|
79
|
+
- "Delete failed jobs in default namespace"
|
|
80
|
+
tags:
|
|
81
|
+
- kubernetes
|
|
82
|
+
- deployment
|
|
83
|
+
- operations
|
|
84
|
+
- id: troubleshooting
|
|
85
|
+
name: Cluster Troubleshooting
|
|
86
|
+
description: Diagnose and resolve cluster issues
|
|
87
|
+
examples:
|
|
88
|
+
- "Why is my pod crashing?"
|
|
89
|
+
- "Check resource usage across nodes"
|
|
90
|
+
- "Find pods consuming most memory"
|
|
91
|
+
tags:
|
|
92
|
+
- debugging
|
|
93
|
+
- diagnostics
|
|
94
|
+
- troubleshooting
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
FROM python:3.11-slim
|
|
2
|
+
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
|
|
5
|
+
# Copy application files
|
|
6
|
+
COPY aiflow-bridge-enhanced.py .
|
|
7
|
+
COPY aiflow-phoenix-tracing.py .
|
|
8
|
+
COPY requirements.txt .
|
|
9
|
+
|
|
10
|
+
# Install dependencies
|
|
11
|
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
12
|
+
|
|
13
|
+
# Create non-root user
|
|
14
|
+
RUN useradd -m -u 1000 aiflow && \
|
|
15
|
+
chown -R aiflow:aiflow /app
|
|
16
|
+
|
|
17
|
+
USER aiflow
|
|
18
|
+
|
|
19
|
+
# Expose port
|
|
20
|
+
EXPOSE 8000
|
|
21
|
+
|
|
22
|
+
# Health check
|
|
23
|
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
|
|
24
|
+
CMD python -c "import requests; requests.get('http://localhost:8000/health').raise_for_status()"
|
|
25
|
+
|
|
26
|
+
# Run application
|
|
27
|
+
CMD ["python", "aiflow-bridge-enhanced.py"]
|
|
28
|
+
|