@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.
Files changed (371) hide show
  1. package/.env.example +41 -0
  2. package/.eslintrc.cjs +43 -0
  3. package/.github/PULL_REQUEST_TEMPLATE.md +39 -0
  4. package/.github/dependabot.yml +58 -0
  5. package/.github/workflows/ci.yml +154 -0
  6. package/.github/workflows/codeql.yml +41 -0
  7. package/.github/workflows/dependabot-auto-merge.yml +28 -0
  8. package/.github/workflows/release.yml +103 -0
  9. package/.prettierignore +7 -0
  10. package/.prettierrc.json +10 -0
  11. package/.redocly.yaml +9 -0
  12. package/.releaserc.json +84 -0
  13. package/.releaserc.json.disabled +81 -0
  14. package/CHANGELOG.md +152 -0
  15. package/CONTRIBUTING.md +249 -0
  16. package/LICENSE +190 -0
  17. package/README.md +280 -0
  18. package/bin/ossa +8 -0
  19. package/bin/validate-ossa-0.2.2.ts +244 -0
  20. package/dist/di-container.d.ts +18 -0
  21. package/dist/di-container.d.ts.map +1 -0
  22. package/dist/di-container.js +43 -0
  23. package/dist/di-container.js.map +1 -0
  24. package/dist/index.d.ts +13 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +17 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/repositories/manifest.repository.d.ts +26 -0
  29. package/dist/repositories/manifest.repository.d.ts.map +1 -0
  30. package/dist/repositories/manifest.repository.js +90 -0
  31. package/dist/repositories/manifest.repository.js.map +1 -0
  32. package/dist/repositories/schema.repository.d.ts +30 -0
  33. package/dist/repositories/schema.repository.d.ts.map +1 -0
  34. package/dist/repositories/schema.repository.js +143 -0
  35. package/dist/repositories/schema.repository.js.map +1 -0
  36. package/dist/services/generation.service.d.ts +54 -0
  37. package/dist/services/generation.service.d.ts.map +1 -0
  38. package/dist/services/generation.service.js +298 -0
  39. package/dist/services/generation.service.js.map +1 -0
  40. package/dist/services/migration.service.d.ts +30 -0
  41. package/dist/services/migration.service.d.ts.map +1 -0
  42. package/dist/services/migration.service.js +231 -0
  43. package/dist/services/migration.service.js.map +1 -0
  44. package/dist/services/runtime/openai.adapter.d.ts +94 -0
  45. package/dist/services/runtime/openai.adapter.d.ts.map +1 -0
  46. package/dist/services/runtime/openai.adapter.js +209 -0
  47. package/dist/services/runtime/openai.adapter.js.map +1 -0
  48. package/dist/services/validation.service.d.ts +45 -0
  49. package/dist/services/validation.service.d.ts.map +1 -0
  50. package/dist/services/validation.service.js +362 -0
  51. package/dist/services/validation.service.js.map +1 -0
  52. package/dist/services/validators/anthropic.validator.d.ts +9 -0
  53. package/dist/services/validators/anthropic.validator.d.ts.map +1 -0
  54. package/dist/services/validators/anthropic.validator.js +105 -0
  55. package/dist/services/validators/anthropic.validator.js.map +1 -0
  56. package/dist/services/validators/autogen.validator.d.ts +9 -0
  57. package/dist/services/validators/autogen.validator.d.ts.map +1 -0
  58. package/dist/services/validators/autogen.validator.js +111 -0
  59. package/dist/services/validators/autogen.validator.js.map +1 -0
  60. package/dist/services/validators/crewai.validator.d.ts +9 -0
  61. package/dist/services/validators/crewai.validator.d.ts.map +1 -0
  62. package/dist/services/validators/crewai.validator.js +117 -0
  63. package/dist/services/validators/crewai.validator.js.map +1 -0
  64. package/dist/services/validators/cursor.validator.d.ts +9 -0
  65. package/dist/services/validators/cursor.validator.d.ts.map +1 -0
  66. package/dist/services/validators/cursor.validator.js +88 -0
  67. package/dist/services/validators/cursor.validator.js.map +1 -0
  68. package/dist/services/validators/index.d.ts +15 -0
  69. package/dist/services/validators/index.d.ts.map +1 -0
  70. package/dist/services/validators/index.js +15 -0
  71. package/dist/services/validators/index.js.map +1 -0
  72. package/dist/services/validators/langchain.validator.d.ts +9 -0
  73. package/dist/services/validators/langchain.validator.d.ts.map +1 -0
  74. package/dist/services/validators/langchain.validator.js +103 -0
  75. package/dist/services/validators/langchain.validator.js.map +1 -0
  76. package/dist/services/validators/langflow.validator.d.ts +9 -0
  77. package/dist/services/validators/langflow.validator.d.ts.map +1 -0
  78. package/dist/services/validators/langflow.validator.js +92 -0
  79. package/dist/services/validators/langflow.validator.js.map +1 -0
  80. package/dist/services/validators/langgraph.validator.d.ts +9 -0
  81. package/dist/services/validators/langgraph.validator.d.ts.map +1 -0
  82. package/dist/services/validators/langgraph.validator.js +123 -0
  83. package/dist/services/validators/langgraph.validator.js.map +1 -0
  84. package/dist/services/validators/llamaindex.validator.d.ts +9 -0
  85. package/dist/services/validators/llamaindex.validator.d.ts.map +1 -0
  86. package/dist/services/validators/llamaindex.validator.js +121 -0
  87. package/dist/services/validators/llamaindex.validator.js.map +1 -0
  88. package/dist/services/validators/openai.validator.d.ts +9 -0
  89. package/dist/services/validators/openai.validator.d.ts.map +1 -0
  90. package/dist/services/validators/openai.validator.js +126 -0
  91. package/dist/services/validators/openai.validator.js.map +1 -0
  92. package/dist/services/validators/vercel-ai.validator.d.ts +9 -0
  93. package/dist/services/validators/vercel-ai.validator.d.ts.map +1 -0
  94. package/dist/services/validators/vercel-ai.validator.js +99 -0
  95. package/dist/services/validators/vercel-ai.validator.js.map +1 -0
  96. package/dist/spec/v0.1.9/agent-autonomous-extensions.json +234 -0
  97. package/dist/spec/v0.1.9/ecosystem-compliance.json +235 -0
  98. package/dist/spec/v0.1.9/ossa-v0.1.9.schema.json +695 -0
  99. package/dist/spec/v0.1.9/ossa-v0.1.9.schema.json.backup +695 -0
  100. package/dist/spec/v0.1.9/reasoning-compliance.json +654 -0
  101. package/dist/spec/v0.2.2/kagent-enhancements.json +395 -0
  102. package/dist/spec/v0.2.2/ossa-0.2.2.schema.json +906 -0
  103. package/dist/spec/v0.2.2/ossa-0.2.2.yaml +448 -0
  104. package/dist/spec/v0.2.2/ossa-reasoning-compliance-1.0.schema.json +424 -0
  105. package/dist/spec/v0.2.3/CHANGELOG.md +176 -0
  106. package/dist/spec/v0.2.3/README.md +154 -0
  107. package/dist/spec/v0.2.3/migrations/v0.2.2-to-v0.2.3.md +343 -0
  108. package/dist/spec/v0.2.3/ossa-0.2.3.schema.json +1397 -0
  109. package/dist/spec/v0.2.3/ossa-0.2.3.yaml +448 -0
  110. package/dist/spec/v0.2.4-dev/CHANGELOG.md +403 -0
  111. package/dist/spec/v0.2.4-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
  112. package/dist/spec/v0.2.4-dev/ossa-0.2.4-dev.schema.json +1696 -0
  113. package/dist/spec/v0.2.4-dev/ossa-0.2.4-dev.yaml +581 -0
  114. package/dist/spec/v0.2.5-dev/CHANGELOG.md +171 -0
  115. package/dist/spec/v0.2.5-dev/examples/customer-support-graph.ossa.yaml +362 -0
  116. package/dist/spec/v0.2.5-dev/examples/parallel-processors.ossa.yaml +464 -0
  117. package/dist/spec/v0.2.5-dev/examples/research-team.ossa.yaml +440 -0
  118. package/dist/spec/v0.2.5-dev/migrations/v0.2.4-to-v0.2.5.md +317 -0
  119. package/dist/spec/v0.2.5-dev/ossa-0.2.5-dev.schema.json +1732 -0
  120. package/dist/spec/v0.2.5-dev/ossa-0.2.5-dev.yaml +409 -0
  121. package/dist/types/index.d.ts +178 -0
  122. package/dist/types/index.d.ts.map +1 -0
  123. package/dist/types/index.js +6 -0
  124. package/dist/types/index.js.map +1 -0
  125. package/dist/types/openapi-extensions.d.ts +164 -0
  126. package/dist/types/openapi-extensions.d.ts.map +1 -0
  127. package/dist/types/openapi-extensions.js +6 -0
  128. package/dist/types/openapi-extensions.js.map +1 -0
  129. package/docs/OSSA-COMPLIANT-BADGE.md +248 -0
  130. package/docs/README.md +31 -0
  131. package/docs/VERSIONING.md +284 -0
  132. package/docs/agent-openapi-spec.yml +942 -0
  133. package/docs/getting-started.md +87 -0
  134. package/docs/migration/general-agent-schema.yml +255 -0
  135. package/docs/migration/migration-manifest.json +64 -0
  136. package/docs/openapi-extensions.md +930 -0
  137. package/docs/schemas/openapi-extensions.schema.json +486 -0
  138. package/examples/adk-integration/code-review-workflow.yml +136 -0
  139. package/examples/adk-integration/customer-support.yml +263 -0
  140. package/examples/adk-integration/data-pipeline.yml +173 -0
  141. package/examples/advanced/patterns/compliance-context-production.json +53 -0
  142. package/examples/advanced/patterns/model-router.ts +274 -0
  143. package/examples/advanced/patterns/smart-model-routing.ts +248 -0
  144. package/examples/advanced/workflows/hybrid-model-strategy.yaml +232 -0
  145. package/examples/agent-manifests/critics/critic-agent.yaml +149 -0
  146. package/examples/agent-manifests/governors/governor-agent.yaml +128 -0
  147. package/examples/agent-manifests/integrators/integrator-agent.yaml +103 -0
  148. package/examples/agent-manifests/judges/judge-agent.yaml +153 -0
  149. package/examples/agent-manifests/monitors/monitor-agent.yaml +122 -0
  150. package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +247 -0
  151. package/examples/agent-manifests/sample-compliant-agent.yaml +147 -0
  152. package/examples/agent-manifests/workers/worker-agent.yaml +82 -0
  153. package/examples/anthropic/claude-assistant.ossa.json +45 -0
  154. package/examples/architecture/model-configuration/ollama-integration.ts +110 -0
  155. package/examples/autogen/multi-agent.ossa.json +37 -0
  156. package/examples/bridge-configurations.yaml +346 -0
  157. package/examples/bridges/Dockerfile.production +87 -0
  158. package/examples/bridges/__pycache__/aiflow-bridge-enhanced.cpython-313.pyc +0 -0
  159. package/examples/bridges/__pycache__/aiflow-phoenix-tracing.cpython-313.pyc +0 -0
  160. package/examples/bridges/__pycache__/test_aiflow_integration.cpython-313.pyc +0 -0
  161. package/examples/bridges/aiflow-bridge-enhanced.py +462 -0
  162. package/examples/bridges/aiflow-bridge-example.yml +310 -0
  163. package/examples/bridges/aiflow-phoenix-tracing.py +310 -0
  164. package/examples/bridges/aiflow-registration-api.openapi.yml +439 -0
  165. package/examples/bridges/k8s/configmap.yaml +121 -0
  166. package/examples/bridges/k8s/deployment-simple.yaml +34 -0
  167. package/examples/bridges/k8s/deployment.yaml +275 -0
  168. package/examples/bridges/k8s/hpa.yaml +126 -0
  169. package/examples/bridges/k8s/ingress.yaml +155 -0
  170. package/examples/bridges/kagent-bridge-example.yml +94 -0
  171. package/examples/bridges/load-tests/Dockerfile +28 -0
  172. package/examples/bridges/load-tests/k6-load-test.js +302 -0
  173. package/examples/bridges/load-tests/requirements.txt +20 -0
  174. package/examples/bridges/loadtest/k6-scenarios.js +270 -0
  175. package/examples/bridges/phase4/SLO-SLA.yaml +249 -0
  176. package/examples/bridges/phase4/chaos-tests.yaml +226 -0
  177. package/examples/bridges/requirements.txt +24 -0
  178. package/examples/bridges/test_aiflow_integration.py +341 -0
  179. package/examples/common_npm/agent-router.ossa.yaml +182 -0
  180. package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +60 -0
  181. package/examples/compliance-agent.yml +155 -0
  182. package/examples/crewai/research-team.ossa.json +36 -0
  183. package/examples/cursor/code-review-agent.ossa.json +47 -0
  184. package/examples/drupal/gitlab-ml-recommender.ossa.yaml +609 -0
  185. package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +68 -0
  186. package/examples/enterprise/agent.yml +452 -0
  187. package/examples/extensions/drupal-v1.yml +266 -0
  188. package/examples/extensions/kagent-v1.yml +167 -0
  189. package/examples/getting-started/hello-world-complete.ossa.yaml +266 -0
  190. package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +376 -0
  191. package/examples/kagent/README.md +31 -0
  192. package/examples/kagent/compliance-validator.ossa.yaml +111 -0
  193. package/examples/kagent/cost-optimizer.ossa.yaml +93 -0
  194. package/examples/kagent/documentation-agent.ossa.yaml +91 -0
  195. package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +269 -0
  196. package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +106 -0
  197. package/examples/kagent/k8s-troubleshooter.ossa.yaml +257 -0
  198. package/examples/kagent/security-scanner.ossa.yaml +140 -0
  199. package/examples/langchain/chain-agent.ossa.json +42 -0
  200. package/examples/langflow/workflow-agent.ossa.json +39 -0
  201. package/examples/langgraph/state-machine-agent.ossa.json +59 -0
  202. package/examples/llamaindex/rag-agent.ossa.json +41 -0
  203. package/examples/migration-guides/from-langchain-to-ossa.yaml +309 -0
  204. package/examples/minimal/agent.yml +152 -0
  205. package/examples/minimal/openapi.yaml +95 -0
  206. package/examples/openai/swarm-agent.ossa.json +59 -0
  207. package/examples/openapi-extensions/README.md +87 -0
  208. package/examples/openapi-extensions/minimal-agent-api.openapi.yml +288 -0
  209. package/examples/openapi-extensions/orchestrator-agent-api.openapi.yml +633 -0
  210. package/examples/openapi-extensions/worker-agent-api.openapi.yml +533 -0
  211. package/examples/production/agent.yml +713 -0
  212. package/examples/production/document-analyzer-openai.yml +134 -0
  213. package/examples/quickstart/support-agent.ossa.yaml +59 -0
  214. package/examples/service-registry-usage.ts +423 -0
  215. package/examples/spec-examples/audit-agent.yml +147 -0
  216. package/examples/spec-examples/chat-agent.yml +189 -0
  217. package/examples/spec-examples/compliance-agent.yml +204 -0
  218. package/examples/spec-examples/data-processing-agent.yml +132 -0
  219. package/examples/spec-examples/development-agent.yml +138 -0
  220. package/examples/spec-examples/edge-agent.yml +101 -0
  221. package/examples/spec-examples/integration-agent.yml +129 -0
  222. package/examples/spec-examples/monitoring-agent.yml +130 -0
  223. package/examples/spec-examples/serverless-agent.yml +82 -0
  224. package/examples/spec-examples/workflow-agent.yml +223 -0
  225. package/examples/templates/ossa-compliance.yaml +56 -0
  226. package/examples/typescript/advanced/demo-registry.ts +168 -0
  227. package/examples/typescript/mcpb-agent-example.ts +358 -0
  228. package/examples/vercel/edge-agent.ossa.json +43 -0
  229. package/infrastructure/docker-compose.yml +33 -0
  230. package/junit.xml +1 -0
  231. package/openapi/drupal-agent-api.openapi.yaml +348 -0
  232. package/openapi/gitlab-orchestrator.openapi.yaml +330 -0
  233. package/openapi/helm-generator.openapi.yaml +389 -0
  234. package/openapi/ossa-core-api.openapi.yaml +1448 -0
  235. package/openapi/ossa-registry-api.openapi.yaml +980 -0
  236. package/openapi/ossa-registry.openapi.yaml +782 -0
  237. package/openapi/self-evolving-ecosystem.openapi.yaml +1530 -0
  238. package/openapi/unified-agent-gateway.openapi.yaml +833 -0
  239. package/ossa-website-swarm-tasks.json +105 -0
  240. package/package.json +132 -0
  241. package/release.config.js +64 -0
  242. package/spec/v0.1.9/agent-autonomous-extensions.json +234 -0
  243. package/spec/v0.1.9/ecosystem-compliance.json +235 -0
  244. package/spec/v0.1.9/ossa-v0.1.9.schema.json +695 -0
  245. package/spec/v0.1.9/ossa-v0.1.9.schema.json.backup +695 -0
  246. package/spec/v0.1.9/reasoning-compliance.json +654 -0
  247. package/spec/v0.2.2/kagent-enhancements.json +395 -0
  248. package/spec/v0.2.2/ossa-0.2.2.schema.json +906 -0
  249. package/spec/v0.2.2/ossa-0.2.2.yaml +448 -0
  250. package/spec/v0.2.2/ossa-reasoning-compliance-1.0.schema.json +424 -0
  251. package/spec/v0.2.3/CHANGELOG.md +176 -0
  252. package/spec/v0.2.3/README.md +154 -0
  253. package/spec/v0.2.3/migrations/v0.2.2-to-v0.2.3.md +343 -0
  254. package/spec/v0.2.3/ossa-0.2.3.schema.json +1397 -0
  255. package/spec/v0.2.3/ossa-0.2.3.yaml +448 -0
  256. package/spec/v0.2.4-dev/CHANGELOG.md +403 -0
  257. package/spec/v0.2.4-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
  258. package/spec/v0.2.4-dev/ossa-0.2.4-dev.schema.json +1696 -0
  259. package/spec/v0.2.4-dev/ossa-0.2.4-dev.yaml +581 -0
  260. package/spec/v0.2.5-dev/CHANGELOG.md +171 -0
  261. package/spec/v0.2.5-dev/examples/customer-support-graph.ossa.yaml +362 -0
  262. package/spec/v0.2.5-dev/examples/parallel-processors.ossa.yaml +464 -0
  263. package/spec/v0.2.5-dev/examples/research-team.ossa.yaml +440 -0
  264. package/spec/v0.2.5-dev/migrations/v0.2.4-to-v0.2.5.md +317 -0
  265. package/spec/v0.2.5-dev/ossa-0.2.5-dev.schema.json +1732 -0
  266. package/spec/v0.2.5-dev/ossa-0.2.5-dev.yaml +409 -0
  267. package/test-results.xml +1 -0
  268. package/website/.lighthouserc.js +20 -0
  269. package/website/.prettierrc +10 -0
  270. package/website/Dockerfile +17 -0
  271. package/website/app/about/page.tsx +295 -0
  272. package/website/app/api/validate/route.ts +88 -0
  273. package/website/app/blog/[slug]/page.tsx +167 -0
  274. package/website/app/blog/page.tsx +162 -0
  275. package/website/app/docs/[[...slug]]/page.tsx +349 -0
  276. package/website/app/docs/core-concepts/project-structure/page.tsx +349 -0
  277. package/website/app/ecosystem/page.tsx +375 -0
  278. package/website/app/examples/page.tsx +123 -0
  279. package/website/app/globals.css +108 -0
  280. package/website/app/layout.tsx +106 -0
  281. package/website/app/page.tsx +409 -0
  282. package/website/app/playground/page.tsx +507 -0
  283. package/website/app/robots.ts +19 -0
  284. package/website/app/rss.xml/route.ts +74 -0
  285. package/website/app/schema/page.tsx +970 -0
  286. package/website/app/sitemap.ts +56 -0
  287. package/website/app/specification/page.tsx +211 -0
  288. package/website/components/InstallCommand.tsx +96 -0
  289. package/website/components/Logo.tsx +24 -0
  290. package/website/components/StructuredData.tsx +65 -0
  291. package/website/components/docs/DocsSearch.tsx +104 -0
  292. package/website/components/docs/DocsSidebar.tsx +118 -0
  293. package/website/components/docs/MarkdownContent.tsx +183 -0
  294. package/website/components/docs/VersionSelector.tsx +49 -0
  295. package/website/components/examples/ExamplesViewer.tsx +293 -0
  296. package/website/components/layout/Footer.tsx +111 -0
  297. package/website/components/layout/Header.tsx +170 -0
  298. package/website/components/schema/SchemaExplorer.tsx +213 -0
  299. package/website/content/blog/OpenAPI-AI-Agents-Standard.md +285 -0
  300. package/website/content/blog/Why-Formal-Standards-Matter-Now.md +209 -0
  301. package/website/content/blog/introducing-ossa-framework.md +328 -0
  302. package/website/content/blog/ossa-production-results.md +279 -0
  303. package/website/content/blog/welcome-to-ossa.md +43 -0
  304. package/website/content/blog/why-ai-agents-need-open-standard.md +98 -0
  305. package/website/content/docs/00-HOME.md +160 -0
  306. package/website/content/docs/AIFlow-Framework-Integration-with-OSSA.md +107 -0
  307. package/website/content/docs/OpenAPI-Extensions.md +498 -0
  308. package/website/content/docs/architecture/execution-flow.md +335 -0
  309. package/website/content/docs/architecture/multi-agent-systems.md +737 -0
  310. package/website/content/docs/architecture/overview.md +121 -0
  311. package/website/content/docs/architecture/stack-integration.md +461 -0
  312. package/website/content/docs/changelog.md +246 -0
  313. package/website/content/docs/contributing.md +599 -0
  314. package/website/content/docs/core-concepts/project-structure.md +348 -0
  315. package/website/content/docs/ecosystem/framework-support.md +821 -0
  316. package/website/content/docs/ecosystem/overview.md +366 -0
  317. package/website/content/docs/examples/Migration-Guides.md +214 -0
  318. package/website/content/docs/examples.md +71 -0
  319. package/website/content/docs/for-audiences/Enterprises.md +256 -0
  320. package/website/content/docs/for-audiences/Students-Researchers.md +122 -0
  321. package/website/content/docs/for-audiences/architects.md +224 -0
  322. package/website/content/docs/for-audiences/developers.md +220 -0
  323. package/website/content/docs/getting-started/5-minute-overview.md +85 -0
  324. package/website/content/docs/getting-started/Hello-World.md +184 -0
  325. package/website/content/docs/getting-started/first-agent.md +196 -0
  326. package/website/content/docs/getting-started/installation.md +155 -0
  327. package/website/content/docs/getting-started/running-agents.md +107 -0
  328. package/website/content/docs/integrations/aiflow.md +104 -0
  329. package/website/content/docs/integrations/drupal.md +105 -0
  330. package/website/content/docs/migration-guides/00-index.md +76 -0
  331. package/website/content/docs/migration-guides/README.md +133 -0
  332. package/website/content/docs/migration-guides/anthropic-mcp-to-ossa.md +1750 -0
  333. package/website/content/docs/migration-guides/crewai-to-ossa.md +274 -0
  334. package/website/content/docs/migration-guides/drupal-eca-to-ossa.md +2017 -0
  335. package/website/content/docs/migration-guides/index.md +133 -0
  336. package/website/content/docs/migration-guides/langchain-to-ossa.md +1714 -0
  337. package/website/content/docs/migration-guides/langflow-to-ossa.md +2075 -0
  338. package/website/content/docs/migration-guides/openai-to-ossa.md +1202 -0
  339. package/website/content/docs/openapi-extensions/examples.md +550 -0
  340. package/website/content/docs/openapi-extensions/index.md +495 -0
  341. package/website/content/docs/openapi-extensions/operation-extensions.md +398 -0
  342. package/website/content/docs/openapi-extensions/root-extensions.md +364 -0
  343. package/website/content/docs/pre-release/index.md +175 -0
  344. package/website/content/docs/quick-reference.md +17 -0
  345. package/website/content/docs/schema-reference/agent-spec.md +406 -0
  346. package/website/content/docs/schema-reference/autonomy.md +568 -0
  347. package/website/content/docs/schema-reference/constraints.md +543 -0
  348. package/website/content/docs/schema-reference/index.md +176 -0
  349. package/website/content/docs/schema-reference/llm-config.md +445 -0
  350. package/website/content/docs/schema-reference/observability.md +654 -0
  351. package/website/content/docs/schema-reference/ossa-manifest.md +309 -0
  352. package/website/content/docs/schema-reference/taxonomy.md +509 -0
  353. package/website/content/docs/schema-reference/tools.md +628 -0
  354. package/website/content/docs/templates/blog-post.md +43 -0
  355. package/website/content/docs/use-cases/00-index.md +395 -0
  356. package/website/content/docs/use-cases/cicd-code-review.md +1236 -0
  357. package/website/content/docs/use-cases/customer-support.md +1234 -0
  358. package/website/content/docs/use-cases/enterprise-compliance.md +1208 -0
  359. package/website/content/docs/use-cases/research-multi-agent.md +1161 -0
  360. package/website/lib/version.ts +18 -0
  361. package/website/next.config.js +17 -0
  362. package/website/next.config.ts +16 -0
  363. package/website/nginx.conf +32 -0
  364. package/website/package-lock.json +9145 -0
  365. package/website/package.json +53 -0
  366. package/website/postcss.config.js +7 -0
  367. package/website/postcss.config.mjs +9 -0
  368. package/website/scripts/sync-version.js +44 -0
  369. package/website/scripts/sync-wiki.ts +261 -0
  370. package/website/tailwind.config.js +58 -0
  371. package/website/tailwind.config.ts +65 -0
@@ -0,0 +1,1530 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: Self-Evolving Agent Ecosystem API
4
+ version: 0.1.9
5
+ description: |
6
+ 🚀 REVOLUTIONARY Self-Evolving Agent Ecosystem - NEVER DONE BEFORE
7
+
8
+ This is the FIRST OSSA-compliant platform that combines:
9
+ 1. Multi-Agent Hierarchical Coordination Matrix
10
+ 2. Privacy-Preserving Federated Learning
11
+ 3. Psychology-Driven Gamification (Flow State Optimization)
12
+ 4. Cognitive Load ResearchKit Integration
13
+ 5. AI-Powered Dynamic Revenue Optimization
14
+ 6. Real-Time Self-Evolution & Adaptation
15
+
16
+ Production Architecture:
17
+ - OpenAPI-First: This spec IS the single source of truth
18
+ - DRY: Zero duplication across all 53+ agents
19
+ - CRUD: Full lifecycle management
20
+ - SOLID: Clean architecture, dependency injection
21
+ - Type-Safe: Zod + TypeScript auto-generation
22
+
23
+ OSSA Compliance: v0.1.9
24
+ Reference: https://gitlab.bluefly.io/llm/OSSA
25
+ contact:
26
+ name: LLM Platform Innovation Team
27
+ url: https://gitlab.bluefly.io/llm
28
+ license:
29
+ name: MIT
30
+
31
+ servers:
32
+ - url: http://localhost:9000/api/v1
33
+ description: Local development
34
+ - url: http://evolution.local.bluefly.io/api/v1
35
+ description: Local OrbStack
36
+ - url: https://evolution.llm.bluefly.io/api/v1
37
+ description: Production
38
+
39
+ tags:
40
+ - name: Ecosystem
41
+ description: Self-evolving ecosystem management
42
+ - name: Agents
43
+ description: Multi-agent coordination and orchestration
44
+ - name: Learning
45
+ description: Federated learning and collective intelligence
46
+ - name: Psychology
47
+ description: Flow state and motivation optimization
48
+ - name: Research
49
+ description: Cognitive load studies and ResearchKit
50
+ - name: Revenue
51
+ description: Dynamic pricing and monetization
52
+ - name: Evolution
53
+ description: Real-time adaptation and self-improvement
54
+ - name: Health
55
+ description: System health and metrics
56
+
57
+ components:
58
+ schemas:
59
+ # MARK: - Core Ecosystem
60
+
61
+ Ecosystem:
62
+ type: object
63
+ required:
64
+ - id
65
+ - name
66
+ - status
67
+ - agents
68
+ - coordinationMatrix
69
+ - evolutionState
70
+ properties:
71
+ id:
72
+ type: string
73
+ format: uuid
74
+ name:
75
+ type: string
76
+ example: 'Production Ecosystem'
77
+ status:
78
+ type: string
79
+ enum: [initializing, evolving, stable, optimizing, adapting]
80
+ agents:
81
+ type: array
82
+ items:
83
+ $ref: '#/components/schemas/Agent'
84
+ coordinationMatrix:
85
+ $ref: '#/components/schemas/CoordinationMatrix'
86
+ evolutionState:
87
+ $ref: '#/components/schemas/EvolutionState'
88
+ learningMetrics:
89
+ $ref: '#/components/schemas/LearningMetrics'
90
+ performanceMetrics:
91
+ $ref: '#/components/schemas/PerformanceMetrics'
92
+ created:
93
+ type: string
94
+ format: date-time
95
+ updated:
96
+ type: string
97
+ format: date-time
98
+
99
+ # MARK: - Multi-Agent Coordination
100
+
101
+ Agent:
102
+ type: object
103
+ required:
104
+ - id
105
+ - name
106
+ - type
107
+ - role
108
+ - capabilities
109
+ - status
110
+ properties:
111
+ id:
112
+ type: string
113
+ format: uuid
114
+ name:
115
+ type: string
116
+ example: 'Drupal Security Compliance Agent'
117
+ type:
118
+ type: string
119
+ enum: [orchestrator, worker, critic, integrator, specialist]
120
+ description: OSSA agent type
121
+ role:
122
+ type: string
123
+ enum:
124
+ [
125
+ security_compliance,
126
+ performance_optimization,
127
+ research_innovation,
128
+ knowledge_management,
129
+ infrastructure_ops,
130
+ revenue_optimization,
131
+ ]
132
+ capabilities:
133
+ type: array
134
+ items:
135
+ type: string
136
+ example:
137
+ ['iso42001_compliance', 'nist_rmf_validation', 'audit_automation']
138
+ status:
139
+ type: string
140
+ enum: [active, learning, adapting, idle, error]
141
+ performance:
142
+ $ref: '#/components/schemas/AgentPerformance'
143
+ learning:
144
+ $ref: '#/components/schemas/AgentLearning'
145
+ coordination:
146
+ type: array
147
+ items:
148
+ $ref: '#/components/schemas/CoordinationLink'
149
+
150
+ CoordinationMatrix:
151
+ type: object
152
+ description: Hierarchical coordination between agents
153
+ properties:
154
+ orchestrators:
155
+ type: array
156
+ items:
157
+ type: string
158
+ format: uuid
159
+ workers:
160
+ type: array
161
+ items:
162
+ type: string
163
+ format: uuid
164
+ specialists:
165
+ type: array
166
+ items:
167
+ type: string
168
+ format: uuid
169
+ dependencies:
170
+ type: array
171
+ items:
172
+ $ref: '#/components/schemas/AgentDependency'
173
+ communicationProtocol:
174
+ type: string
175
+ enum: [event_driven, request_response, streaming, pub_sub]
176
+ conflictResolution:
177
+ type: string
178
+ enum: [consensus, priority_based, ai_mediation, escalation]
179
+
180
+ AgentDependency:
181
+ type: object
182
+ properties:
183
+ from:
184
+ type: string
185
+ format: uuid
186
+ to:
187
+ type: string
188
+ format: uuid
189
+ type:
190
+ type: string
191
+ enum: [requires, provides, collaborates, monitors]
192
+ strength:
193
+ type: number
194
+ minimum: 0
195
+ maximum: 1
196
+ description: Dependency strength (0-1)
197
+
198
+ CoordinationLink:
199
+ type: object
200
+ properties:
201
+ targetAgentId:
202
+ type: string
203
+ format: uuid
204
+ linkType:
205
+ type: string
206
+ enum: [peer, supervisor, subordinate, collaborator]
207
+ communicationFrequency:
208
+ type: number
209
+ description: Messages per hour
210
+ successRate:
211
+ type: number
212
+ minimum: 0
213
+ maximum: 1
214
+
215
+ # MARK: - Federated Learning
216
+
217
+ FederatedLearningSession:
218
+ type: object
219
+ required:
220
+ - id
221
+ - modelType
222
+ - participants
223
+ - privacyBudget
224
+ properties:
225
+ id:
226
+ type: string
227
+ format: uuid
228
+ modelType:
229
+ type: string
230
+ enum:
231
+ [
232
+ code_completion,
233
+ bug_prediction,
234
+ productivity_optimization,
235
+ collaboration_enhancement,
236
+ cognitive_load_prediction,
237
+ ]
238
+ participants:
239
+ type: array
240
+ items:
241
+ type: string
242
+ format: uuid
243
+ description: Agent IDs participating in learning
244
+ privacyBudget:
245
+ type: number
246
+ description: Differential privacy epsilon
247
+ example: 1.0
248
+ rounds:
249
+ type: integer
250
+ minimum: 1
251
+ default: 10
252
+ convergenceThreshold:
253
+ type: number
254
+ default: 0.01
255
+ status:
256
+ type: string
257
+ enum: [pending, training, aggregating, completed, failed]
258
+ metrics:
259
+ $ref: '#/components/schemas/LearningMetrics'
260
+
261
+ LearningMetrics:
262
+ type: object
263
+ properties:
264
+ accuracy:
265
+ type: number
266
+ minimum: 0
267
+ maximum: 1
268
+ loss:
269
+ type: number
270
+ f1Score:
271
+ type: number
272
+ precision:
273
+ type: number
274
+ recall:
275
+ type: number
276
+ trainingRounds:
277
+ type: integer
278
+ convergenceRate:
279
+ type: number
280
+ privacyBudgetUsed:
281
+ type: number
282
+
283
+ # MARK: - Psychology & Gamification
284
+
285
+ FlowStateOptimization:
286
+ type: object
287
+ description: Real-time flow state optimization based on Csikszentmihalyi research
288
+ required:
289
+ - developerId
290
+ - currentState
291
+ properties:
292
+ developerId:
293
+ type: string
294
+ format: uuid
295
+ currentState:
296
+ type: string
297
+ enum:
298
+ [
299
+ flow,
300
+ anxiety,
301
+ boredom,
302
+ apathy,
303
+ arousal,
304
+ control,
305
+ worry,
306
+ relaxation,
307
+ ]
308
+ skillLevel:
309
+ type: number
310
+ minimum: 0
311
+ maximum: 100
312
+ challengeLevel:
313
+ type: number
314
+ minimum: 0
315
+ maximum: 100
316
+ cognitiveLoad:
317
+ type: number
318
+ minimum: 0
319
+ maximum: 100
320
+ engagement:
321
+ type: number
322
+ minimum: 0
323
+ maximum: 1
324
+ recommendations:
325
+ type: array
326
+ items:
327
+ type: string
328
+ description: AI recommendations to optimize flow
329
+
330
+ GamificationEvent:
331
+ type: object
332
+ required:
333
+ - eventType
334
+ - developerId
335
+ - timestamp
336
+ properties:
337
+ eventType:
338
+ type: string
339
+ enum:
340
+ [
341
+ achievement_unlocked,
342
+ level_up,
343
+ badge_earned,
344
+ challenge_completed,
345
+ leaderboard_rank_change,
346
+ skill_mastered,
347
+ flow_state_achieved,
348
+ ]
349
+ developerId:
350
+ type: string
351
+ format: uuid
352
+ achievement:
353
+ $ref: '#/components/schemas/Achievement'
354
+ context:
355
+ type: object
356
+ additionalProperties: true
357
+ timestamp:
358
+ type: string
359
+ format: date-time
360
+ impact:
361
+ $ref: '#/components/schemas/MotivationImpact'
362
+
363
+ Achievement:
364
+ type: object
365
+ properties:
366
+ id:
367
+ type: string
368
+ name:
369
+ type: string
370
+ description:
371
+ type: string
372
+ category:
373
+ type: string
374
+ enum:
375
+ [
376
+ productivity,
377
+ quality,
378
+ collaboration,
379
+ learning,
380
+ innovation,
381
+ security,
382
+ ]
383
+ rarity:
384
+ type: string
385
+ enum: [common, uncommon, rare, epic, legendary]
386
+ points:
387
+ type: integer
388
+ gameCenterId:
389
+ type: string
390
+ description: Game Center achievement ID
391
+
392
+ MotivationImpact:
393
+ type: object
394
+ description: Psychological impact on developer motivation
395
+ properties:
396
+ autonomy:
397
+ type: number
398
+ minimum: -1
399
+ maximum: 1
400
+ mastery:
401
+ type: number
402
+ minimum: -1
403
+ maximum: 1
404
+ purpose:
405
+ type: number
406
+ minimum: -1
407
+ maximum: 1
408
+ socialConnection:
409
+ type: number
410
+ minimum: -1
411
+ maximum: 1
412
+ overallMotivation:
413
+ type: number
414
+ minimum: 0
415
+ maximum: 100
416
+
417
+ # MARK: - Cognitive Research
418
+
419
+ CognitiveLoadStudy:
420
+ type: object
421
+ description: ResearchKit cognitive load measurement
422
+ required:
423
+ - studyId
424
+ - participantId
425
+ - sessionId
426
+ properties:
427
+ studyId:
428
+ type: string
429
+ format: uuid
430
+ participantId:
431
+ type: string
432
+ format: uuid
433
+ description: Anonymized participant ID
434
+ sessionId:
435
+ type: string
436
+ format: uuid
437
+ biometricData:
438
+ $ref: '#/components/schemas/BiometricData'
439
+ behavioralData:
440
+ $ref: '#/components/schemas/BehavioralData'
441
+ nasaTLX:
442
+ $ref: '#/components/schemas/NASATLX'
443
+ cognitiveLoad:
444
+ $ref: '#/components/schemas/CognitiveLoad'
445
+ consent:
446
+ type: boolean
447
+ description: Participant consent status
448
+
449
+ BiometricData:
450
+ type: object
451
+ properties:
452
+ heartRateVariability:
453
+ type: number
454
+ description: HRV in milliseconds
455
+ eyeTracking:
456
+ type: object
457
+ properties:
458
+ fixationDuration:
459
+ type: number
460
+ saccadeVelocity:
461
+ type: number
462
+ blinkRate:
463
+ type: number
464
+ keystrokeDynamics:
465
+ type: object
466
+ properties:
467
+ typingSpeed:
468
+ type: number
469
+ errorRate:
470
+ type: number
471
+ pauseFrequency:
472
+ type: number
473
+
474
+ BehavioralData:
475
+ type: object
476
+ properties:
477
+ taskCompletionTime:
478
+ type: number
479
+ description: Time in seconds
480
+ contextSwitches:
481
+ type: integer
482
+ helpRequests:
483
+ type: integer
484
+ aiInteractions:
485
+ type: integer
486
+ codeQualityScore:
487
+ type: number
488
+
489
+ NASATLX:
490
+ type: object
491
+ description: NASA Task Load Index
492
+ properties:
493
+ mentalDemand:
494
+ type: integer
495
+ minimum: 0
496
+ maximum: 100
497
+ physicalDemand:
498
+ type: integer
499
+ minimum: 0
500
+ maximum: 100
501
+ temporalDemand:
502
+ type: integer
503
+ minimum: 0
504
+ maximum: 100
505
+ performance:
506
+ type: integer
507
+ minimum: 0
508
+ maximum: 100
509
+ effort:
510
+ type: integer
511
+ minimum: 0
512
+ maximum: 100
513
+ frustration:
514
+ type: integer
515
+ minimum: 0
516
+ maximum: 100
517
+
518
+ CognitiveLoad:
519
+ type: object
520
+ properties:
521
+ overall:
522
+ type: number
523
+ minimum: 0
524
+ maximum: 100
525
+ intrinsic:
526
+ type: number
527
+ extraneous:
528
+ type: number
529
+ germane:
530
+ type: number
531
+ prediction:
532
+ type: string
533
+ enum: [low, medium, high, overload]
534
+ recommendations:
535
+ type: array
536
+ items:
537
+ type: string
538
+
539
+ # MARK: - Dynamic Revenue
540
+
541
+ DynamicPricing:
542
+ type: object
543
+ required:
544
+ - tier
545
+ - basePrice
546
+ - optimizedPrice
547
+ properties:
548
+ tier:
549
+ type: string
550
+ enum: [freemium, developer, team, enterprise]
551
+ basePrice:
552
+ type: number
553
+ format: decimal
554
+ optimizedPrice:
555
+ type: number
556
+ format: decimal
557
+ marketConditions:
558
+ $ref: '#/components/schemas/MarketConditions'
559
+ customerProfile:
560
+ $ref: '#/components/schemas/CustomerProfile'
561
+ willingnessToPay:
562
+ type: number
563
+ description: Estimated willingness to pay (ML model)
564
+ conversionProbability:
565
+ type: number
566
+ minimum: 0
567
+ maximum: 1
568
+ revenueImpact:
569
+ type: number
570
+ description: Expected revenue change
571
+
572
+ MarketConditions:
573
+ type: object
574
+ properties:
575
+ competitorPricing:
576
+ type: object
577
+ additionalProperties:
578
+ type: number
579
+ demandIndex:
580
+ type: number
581
+ seasonality:
582
+ type: string
583
+ economicIndicators:
584
+ type: object
585
+
586
+ CustomerProfile:
587
+ type: object
588
+ properties:
589
+ segment:
590
+ type: string
591
+ enum: [individual, small_team, enterprise, education, open_source]
592
+ usagePatterns:
593
+ type: object
594
+ valueRealized:
595
+ type: number
596
+ description: Measured value in dollars/month
597
+ engagementScore:
598
+ type: number
599
+ churnRisk:
600
+ type: number
601
+ minimum: 0
602
+ maximum: 1
603
+
604
+ # MARK: - Evolution State
605
+
606
+ EvolutionState:
607
+ type: object
608
+ description: Current state of ecosystem self-evolution
609
+ properties:
610
+ generation:
611
+ type: integer
612
+ description: Evolution generation number
613
+ fitnessScore:
614
+ type: number
615
+ minimum: 0
616
+ maximum: 100
617
+ adaptationHistory:
618
+ type: array
619
+ items:
620
+ $ref: '#/components/schemas/AdaptationEvent'
621
+ currentOptimizations:
622
+ type: array
623
+ items:
624
+ type: string
625
+ learningRate:
626
+ type: number
627
+ mutationProbability:
628
+ type: number
629
+ minimum: 0
630
+ maximum: 1
631
+
632
+ AdaptationEvent:
633
+ type: object
634
+ properties:
635
+ timestamp:
636
+ type: string
637
+ format: date-time
638
+ type:
639
+ type: string
640
+ enum:
641
+ [
642
+ agent_added,
643
+ agent_removed,
644
+ capability_enhanced,
645
+ coordination_optimized,
646
+ performance_improved,
647
+ cost_reduced,
648
+ ]
649
+ impact:
650
+ type: number
651
+ fitnessChange:
652
+ type: number
653
+ description:
654
+ type: string
655
+
656
+ AgentPerformance:
657
+ type: object
658
+ properties:
659
+ responseTime:
660
+ type: number
661
+ description: Average response time in ms
662
+ throughput:
663
+ type: number
664
+ description: Tasks per minute
665
+ accuracy:
666
+ type: number
667
+ minimum: 0
668
+ maximum: 1
669
+ errorRate:
670
+ type: number
671
+ resourceUtilization:
672
+ type: number
673
+ minimum: 0
674
+ maximum: 1
675
+ learningVelocity:
676
+ type: number
677
+
678
+ AgentLearning:
679
+ type: object
680
+ properties:
681
+ modelVersion:
682
+ type: string
683
+ trainingRounds:
684
+ type: integer
685
+ accuracy:
686
+ type: number
687
+ lastUpdated:
688
+ type: string
689
+ format: date-time
690
+ personalizationLevel:
691
+ type: number
692
+ minimum: 0
693
+ maximum: 1
694
+ knowledgeGraph:
695
+ type: object
696
+ description: Agent's knowledge representation
697
+
698
+ PerformanceMetrics:
699
+ type: object
700
+ properties:
701
+ ecosystemHealth:
702
+ type: number
703
+ minimum: 0
704
+ maximum: 100
705
+ agentCoordination:
706
+ type: number
707
+ minimum: 0
708
+ maximum: 1
709
+ learningEfficiency:
710
+ type: number
711
+ adaptationSpeed:
712
+ type: number
713
+ costEfficiency:
714
+ type: number
715
+ userSatisfaction:
716
+ type: number
717
+ minimum: 0
718
+ maximum: 5
719
+
720
+ # MARK: - Requests/Responses
721
+
722
+ CreateEcosystemRequest:
723
+ type: object
724
+ required:
725
+ - name
726
+ - initialAgents
727
+ properties:
728
+ name:
729
+ type: string
730
+ description:
731
+ type: string
732
+ initialAgents:
733
+ type: array
734
+ items:
735
+ type: object
736
+ required:
737
+ - name
738
+ - type
739
+ - role
740
+ properties:
741
+ name:
742
+ type: string
743
+ type:
744
+ type: string
745
+ enum: [orchestrator, worker, critic, integrator, specialist]
746
+ role:
747
+ type: string
748
+ capabilities:
749
+ type: array
750
+ items:
751
+ type: string
752
+ coordinationStrategy:
753
+ type: string
754
+ enum: [hierarchical, mesh, hybrid]
755
+ default: hierarchical
756
+ learningEnabled:
757
+ type: boolean
758
+ default: true
759
+ gamificationEnabled:
760
+ type: boolean
761
+ default: true
762
+
763
+ StartFederatedLearningRequest:
764
+ type: object
765
+ required:
766
+ - modelType
767
+ - participantAgentIds
768
+ properties:
769
+ modelType:
770
+ type: string
771
+ enum:
772
+ [
773
+ code_completion,
774
+ bug_prediction,
775
+ productivity_optimization,
776
+ collaboration_enhancement,
777
+ cognitive_load_prediction,
778
+ ]
779
+ participantAgentIds:
780
+ type: array
781
+ items:
782
+ type: string
783
+ format: uuid
784
+ privacyBudget:
785
+ type: number
786
+ default: 1.0
787
+ rounds:
788
+ type: integer
789
+ default: 10
790
+ convergenceThreshold:
791
+ type: number
792
+ default: 0.01
793
+
794
+ OptimizeFlowStateRequest:
795
+ type: object
796
+ required:
797
+ - developerId
798
+ - currentMetrics
799
+ properties:
800
+ developerId:
801
+ type: string
802
+ format: uuid
803
+ currentMetrics:
804
+ type: object
805
+ properties:
806
+ skillLevel:
807
+ type: number
808
+ challengeLevel:
809
+ type: number
810
+ cognitiveLoad:
811
+ type: number
812
+ engagement:
813
+ type: number
814
+ preferences:
815
+ type: object
816
+ properties:
817
+ preferredChallengeLevel:
818
+ type: string
819
+ enum: [easy, moderate, challenging, expert]
820
+ learningGoals:
821
+ type: array
822
+ items:
823
+ type: string
824
+
825
+ OptimizePricingRequest:
826
+ type: object
827
+ required:
828
+ - tier
829
+ - customerId
830
+ properties:
831
+ tier:
832
+ type: string
833
+ enum: [freemium, developer, team, enterprise]
834
+ customerId:
835
+ type: string
836
+ format: uuid
837
+ marketData:
838
+ $ref: '#/components/schemas/MarketConditions'
839
+ targetMetric:
840
+ type: string
841
+ enum: [revenue, conversion, retention, ltv]
842
+ default: revenue
843
+
844
+ EvolutionTrigger:
845
+ type: object
846
+ required:
847
+ - triggerType
848
+ properties:
849
+ triggerType:
850
+ type: string
851
+ enum:
852
+ [
853
+ performance_degradation,
854
+ new_capability_needed,
855
+ cost_optimization,
856
+ user_feedback,
857
+ market_change,
858
+ security_threat,
859
+ ]
860
+ context:
861
+ type: object
862
+ additionalProperties: true
863
+ priority:
864
+ type: string
865
+ enum: [low, medium, high, critical]
866
+ autoExecute:
867
+ type: boolean
868
+ default: false
869
+
870
+ Error:
871
+ type: object
872
+ required:
873
+ - error
874
+ - message
875
+ properties:
876
+ error:
877
+ type: string
878
+ message:
879
+ type: string
880
+ details:
881
+ type: object
882
+ additionalProperties: true
883
+
884
+ securitySchemes:
885
+ bearerAuth:
886
+ type: http
887
+ scheme: bearer
888
+ bearerFormat: JWT
889
+
890
+ security:
891
+ - bearerAuth: []
892
+
893
+ paths:
894
+ # MARK: - Health
895
+
896
+ /health:
897
+ get:
898
+ tags: [Health]
899
+ summary: Ecosystem health check
900
+ security: []
901
+ responses:
902
+ '200':
903
+ description: Healthy
904
+ content:
905
+ application/json:
906
+ schema:
907
+ type: object
908
+ properties:
909
+ status:
910
+ type: string
911
+ enum: [healthy, degraded, critical]
912
+ ecosystems:
913
+ type: integer
914
+ activeAgents:
915
+ type: integer
916
+ learningActiveSessions:
917
+ type: integer
918
+ evolutionGeneration:
919
+ type: integer
920
+ timestamp:
921
+ type: string
922
+ format: date-time
923
+
924
+ # MARK: - Ecosystem Management (CRUD)
925
+
926
+ /ecosystems:
927
+ get:
928
+ tags: [Ecosystem]
929
+ summary: List all ecosystems
930
+ parameters:
931
+ - name: status
932
+ in: query
933
+ schema:
934
+ type: string
935
+ enum: [initializing, evolving, stable, optimizing, adapting]
936
+ responses:
937
+ '200':
938
+ description: List of ecosystems
939
+ content:
940
+ application/json:
941
+ schema:
942
+ type: object
943
+ properties:
944
+ ecosystems:
945
+ type: array
946
+ items:
947
+ $ref: '#/components/schemas/Ecosystem'
948
+ count:
949
+ type: integer
950
+
951
+ post:
952
+ tags: [Ecosystem]
953
+ summary: Create new ecosystem
954
+ requestBody:
955
+ required: true
956
+ content:
957
+ application/json:
958
+ schema:
959
+ $ref: '#/components/schemas/CreateEcosystemRequest'
960
+ responses:
961
+ '201':
962
+ description: Ecosystem created
963
+ content:
964
+ application/json:
965
+ schema:
966
+ $ref: '#/components/schemas/Ecosystem'
967
+
968
+ /ecosystems/{ecosystemId}:
969
+ get:
970
+ tags: [Ecosystem]
971
+ summary: Get ecosystem details
972
+ parameters:
973
+ - name: ecosystemId
974
+ in: path
975
+ required: true
976
+ schema:
977
+ type: string
978
+ format: uuid
979
+ responses:
980
+ '200':
981
+ description: Ecosystem found
982
+ content:
983
+ application/json:
984
+ schema:
985
+ $ref: '#/components/schemas/Ecosystem'
986
+
987
+ put:
988
+ tags: [Ecosystem]
989
+ summary: Update ecosystem
990
+ parameters:
991
+ - name: ecosystemId
992
+ in: path
993
+ required: true
994
+ schema:
995
+ type: string
996
+ format: uuid
997
+ requestBody:
998
+ required: true
999
+ content:
1000
+ application/json:
1001
+ schema:
1002
+ type: object
1003
+ properties:
1004
+ name:
1005
+ type: string
1006
+ coordinationStrategy:
1007
+ type: string
1008
+ learningEnabled:
1009
+ type: boolean
1010
+ responses:
1011
+ '200':
1012
+ description: Updated
1013
+ content:
1014
+ application/json:
1015
+ schema:
1016
+ $ref: '#/components/schemas/Ecosystem'
1017
+
1018
+ delete:
1019
+ tags: [Ecosystem]
1020
+ summary: Delete ecosystem
1021
+ parameters:
1022
+ - name: ecosystemId
1023
+ in: path
1024
+ required: true
1025
+ schema:
1026
+ type: string
1027
+ format: uuid
1028
+ responses:
1029
+ '204':
1030
+ description: Deleted
1031
+
1032
+ # MARK: - Agent Coordination
1033
+
1034
+ /ecosystems/{ecosystemId}/agents:
1035
+ get:
1036
+ tags: [Agents]
1037
+ summary: List agents in ecosystem
1038
+ parameters:
1039
+ - name: ecosystemId
1040
+ in: path
1041
+ required: true
1042
+ schema:
1043
+ type: string
1044
+ format: uuid
1045
+ - name: type
1046
+ in: query
1047
+ schema:
1048
+ type: string
1049
+ enum: [orchestrator, worker, critic, integrator, specialist]
1050
+ - name: role
1051
+ in: query
1052
+ schema:
1053
+ type: string
1054
+ responses:
1055
+ '200':
1056
+ description: List of agents
1057
+ content:
1058
+ application/json:
1059
+ schema:
1060
+ type: object
1061
+ properties:
1062
+ agents:
1063
+ type: array
1064
+ items:
1065
+ $ref: '#/components/schemas/Agent'
1066
+
1067
+ post:
1068
+ tags: [Agents]
1069
+ summary: Add agent to ecosystem
1070
+ parameters:
1071
+ - name: ecosystemId
1072
+ in: path
1073
+ required: true
1074
+ schema:
1075
+ type: string
1076
+ format: uuid
1077
+ requestBody:
1078
+ required: true
1079
+ content:
1080
+ application/json:
1081
+ schema:
1082
+ type: object
1083
+ required:
1084
+ - name
1085
+ - type
1086
+ - role
1087
+ properties:
1088
+ name:
1089
+ type: string
1090
+ type:
1091
+ type: string
1092
+ enum: [orchestrator, worker, critic, integrator, specialist]
1093
+ role:
1094
+ type: string
1095
+ capabilities:
1096
+ type: array
1097
+ items:
1098
+ type: string
1099
+ responses:
1100
+ '201':
1101
+ description: Agent added
1102
+ content:
1103
+ application/json:
1104
+ schema:
1105
+ $ref: '#/components/schemas/Agent'
1106
+
1107
+ /ecosystems/{ecosystemId}/coordination:
1108
+ get:
1109
+ tags: [Agents]
1110
+ summary: Get coordination matrix
1111
+ parameters:
1112
+ - name: ecosystemId
1113
+ in: path
1114
+ required: true
1115
+ schema:
1116
+ type: string
1117
+ format: uuid
1118
+ responses:
1119
+ '200':
1120
+ description: Coordination matrix
1121
+ content:
1122
+ application/json:
1123
+ schema:
1124
+ $ref: '#/components/schemas/CoordinationMatrix'
1125
+
1126
+ /ecosystems/{ecosystemId}/coordinate:
1127
+ post:
1128
+ tags: [Agents]
1129
+ summary: Coordinate agent action
1130
+ description: Coordinate complex multi-agent workflow
1131
+ parameters:
1132
+ - name: ecosystemId
1133
+ in: path
1134
+ required: true
1135
+ schema:
1136
+ type: string
1137
+ format: uuid
1138
+ requestBody:
1139
+ required: true
1140
+ content:
1141
+ application/json:
1142
+ schema:
1143
+ type: object
1144
+ required:
1145
+ - workflowType
1146
+ - targetAgents
1147
+ properties:
1148
+ workflowType:
1149
+ type: string
1150
+ enum:
1151
+ [
1152
+ code_review,
1153
+ security_scan,
1154
+ performance_optimization,
1155
+ research_study,
1156
+ pricing_optimization,
1157
+ ]
1158
+ targetAgents:
1159
+ type: array
1160
+ items:
1161
+ type: string
1162
+ format: uuid
1163
+ context:
1164
+ type: object
1165
+ additionalProperties: true
1166
+ responses:
1167
+ '200':
1168
+ description: Coordination result
1169
+ content:
1170
+ application/json:
1171
+ schema:
1172
+ type: object
1173
+ properties:
1174
+ workflowId:
1175
+ type: string
1176
+ format: uuid
1177
+ status:
1178
+ type: string
1179
+ results:
1180
+ type: array
1181
+ items:
1182
+ type: object
1183
+
1184
+ # MARK: - Federated Learning
1185
+
1186
+ /learning/federated/sessions:
1187
+ post:
1188
+ tags: [Learning]
1189
+ summary: Start federated learning session
1190
+ requestBody:
1191
+ required: true
1192
+ content:
1193
+ application/json:
1194
+ schema:
1195
+ $ref: '#/components/schemas/StartFederatedLearningRequest'
1196
+ responses:
1197
+ '201':
1198
+ description: Session started
1199
+ content:
1200
+ application/json:
1201
+ schema:
1202
+ $ref: '#/components/schemas/FederatedLearningSession'
1203
+
1204
+ /learning/federated/sessions/{sessionId}:
1205
+ get:
1206
+ tags: [Learning]
1207
+ summary: Get learning session status
1208
+ parameters:
1209
+ - name: sessionId
1210
+ in: path
1211
+ required: true
1212
+ schema:
1213
+ type: string
1214
+ format: uuid
1215
+ responses:
1216
+ '200':
1217
+ description: Session details
1218
+ content:
1219
+ application/json:
1220
+ schema:
1221
+ $ref: '#/components/schemas/FederatedLearningSession'
1222
+
1223
+ /learning/federated/sessions/{sessionId}/results:
1224
+ get:
1225
+ tags: [Learning]
1226
+ summary: Get federated learning results
1227
+ parameters:
1228
+ - name: sessionId
1229
+ in: path
1230
+ required: true
1231
+ schema:
1232
+ type: string
1233
+ format: uuid
1234
+ responses:
1235
+ '200':
1236
+ description: Learning results
1237
+ content:
1238
+ application/json:
1239
+ schema:
1240
+ type: object
1241
+ properties:
1242
+ finalModel:
1243
+ type: object
1244
+ metrics:
1245
+ $ref: '#/components/schemas/LearningMetrics'
1246
+ privacyGuarantees:
1247
+ type: object
1248
+
1249
+ # MARK: - Psychology & Flow State
1250
+
1251
+ /psychology/flow-state:
1252
+ post:
1253
+ tags: [Psychology]
1254
+ summary: Optimize developer flow state
1255
+ requestBody:
1256
+ required: true
1257
+ content:
1258
+ application/json:
1259
+ schema:
1260
+ $ref: '#/components/schemas/OptimizeFlowStateRequest'
1261
+ responses:
1262
+ '200':
1263
+ description: Flow state optimization
1264
+ content:
1265
+ application/json:
1266
+ schema:
1267
+ $ref: '#/components/schemas/FlowStateOptimization'
1268
+
1269
+ /psychology/motivation/{developerId}:
1270
+ get:
1271
+ tags: [Psychology]
1272
+ summary: Get developer motivation profile
1273
+ parameters:
1274
+ - name: developerId
1275
+ in: path
1276
+ required: true
1277
+ schema:
1278
+ type: string
1279
+ format: uuid
1280
+ responses:
1281
+ '200':
1282
+ description: Motivation profile
1283
+ content:
1284
+ application/json:
1285
+ schema:
1286
+ $ref: '#/components/schemas/MotivationImpact'
1287
+
1288
+ /psychology/gamification/events:
1289
+ post:
1290
+ tags: [Psychology]
1291
+ summary: Record gamification event
1292
+ requestBody:
1293
+ required: true
1294
+ content:
1295
+ application/json:
1296
+ schema:
1297
+ $ref: '#/components/schemas/GamificationEvent'
1298
+ responses:
1299
+ '201':
1300
+ description: Event recorded
1301
+
1302
+ # MARK: - Cognitive Research
1303
+
1304
+ /research/cognitive-load:
1305
+ post:
1306
+ tags: [Research]
1307
+ summary: Submit cognitive load study data
1308
+ requestBody:
1309
+ required: true
1310
+ content:
1311
+ application/json:
1312
+ schema:
1313
+ $ref: '#/components/schemas/CognitiveLoadStudy'
1314
+ responses:
1315
+ '201':
1316
+ description: Data recorded
1317
+ '403':
1318
+ description: Consent not provided
1319
+
1320
+ /research/studies/{studyId}/insights:
1321
+ get:
1322
+ tags: [Research]
1323
+ summary: Get research insights
1324
+ parameters:
1325
+ - name: studyId
1326
+ in: path
1327
+ required: true
1328
+ schema:
1329
+ type: string
1330
+ format: uuid
1331
+ responses:
1332
+ '200':
1333
+ description: Research insights
1334
+ content:
1335
+ application/json:
1336
+ schema:
1337
+ type: object
1338
+ properties:
1339
+ insights:
1340
+ type: array
1341
+ items:
1342
+ type: object
1343
+ significance:
1344
+ type: number
1345
+ recommendations:
1346
+ type: array
1347
+ items:
1348
+ type: string
1349
+
1350
+ # MARK: - Dynamic Revenue
1351
+
1352
+ /revenue/pricing/optimize:
1353
+ post:
1354
+ tags: [Revenue]
1355
+ summary: Optimize pricing dynamically
1356
+ requestBody:
1357
+ required: true
1358
+ content:
1359
+ application/json:
1360
+ schema:
1361
+ $ref: '#/components/schemas/OptimizePricingRequest'
1362
+ responses:
1363
+ '200':
1364
+ description: Optimized pricing
1365
+ content:
1366
+ application/json:
1367
+ schema:
1368
+ $ref: '#/components/schemas/DynamicPricing'
1369
+
1370
+ /revenue/customer/{customerId}/value:
1371
+ get:
1372
+ tags: [Revenue]
1373
+ summary: Calculate customer value
1374
+ parameters:
1375
+ - name: customerId
1376
+ in: path
1377
+ required: true
1378
+ schema:
1379
+ type: string
1380
+ format: uuid
1381
+ responses:
1382
+ '200':
1383
+ description: Customer value metrics
1384
+ content:
1385
+ application/json:
1386
+ schema:
1387
+ type: object
1388
+ properties:
1389
+ ltv:
1390
+ type: number
1391
+ monthlyValue:
1392
+ type: number
1393
+ churnRisk:
1394
+ type: number
1395
+ upsellOpportunity:
1396
+ type: object
1397
+
1398
+ # MARK: - Self-Evolution
1399
+
1400
+ /evolution/trigger:
1401
+ post:
1402
+ tags: [Evolution]
1403
+ summary: Trigger ecosystem evolution
1404
+ requestBody:
1405
+ required: true
1406
+ content:
1407
+ application/json:
1408
+ schema:
1409
+ $ref: '#/components/schemas/EvolutionTrigger'
1410
+ responses:
1411
+ '202':
1412
+ description: Evolution triggered
1413
+ content:
1414
+ application/json:
1415
+ schema:
1416
+ type: object
1417
+ properties:
1418
+ evolutionId:
1419
+ type: string
1420
+ format: uuid
1421
+ status:
1422
+ type: string
1423
+ estimatedCompletion:
1424
+ type: string
1425
+ format: date-time
1426
+
1427
+ /evolution/{ecosystemId}/status:
1428
+ get:
1429
+ tags: [Evolution]
1430
+ summary: Get evolution status
1431
+ parameters:
1432
+ - name: ecosystemId
1433
+ in: path
1434
+ required: true
1435
+ schema:
1436
+ type: string
1437
+ format: uuid
1438
+ responses:
1439
+ '200':
1440
+ description: Evolution state
1441
+ content:
1442
+ application/json:
1443
+ schema:
1444
+ $ref: '#/components/schemas/EvolutionState'
1445
+
1446
+ /evolution/{ecosystemId}/adapt:
1447
+ post:
1448
+ tags: [Evolution]
1449
+ summary: Execute adaptation
1450
+ description: Real-time ecosystem adaptation based on feedback
1451
+ parameters:
1452
+ - name: ecosystemId
1453
+ in: path
1454
+ required: true
1455
+ schema:
1456
+ type: string
1457
+ format: uuid
1458
+ requestBody:
1459
+ required: true
1460
+ content:
1461
+ application/json:
1462
+ schema:
1463
+ type: object
1464
+ properties:
1465
+ adaptationType:
1466
+ type: string
1467
+ enum:
1468
+ [
1469
+ add_capability,
1470
+ remove_capability,
1471
+ optimize_coordination,
1472
+ enhance_performance,
1473
+ reduce_cost,
1474
+ ]
1475
+ parameters:
1476
+ type: object
1477
+ additionalProperties: true
1478
+ responses:
1479
+ '200':
1480
+ description: Adaptation executed
1481
+ content:
1482
+ application/json:
1483
+ schema:
1484
+ type: object
1485
+ properties:
1486
+ adaptationId:
1487
+ type: string
1488
+ format: uuid
1489
+ impactPrediction:
1490
+ type: object
1491
+ rollbackPlan:
1492
+ type: object
1493
+
1494
+ # MARK: - Metrics & Analytics
1495
+
1496
+ /metrics/ecosystem/{ecosystemId}:
1497
+ get:
1498
+ tags: [Health]
1499
+ summary: Get comprehensive ecosystem metrics
1500
+ parameters:
1501
+ - name: ecosystemId
1502
+ in: path
1503
+ required: true
1504
+ schema:
1505
+ type: string
1506
+ format: uuid
1507
+ - name: timeframe
1508
+ in: query
1509
+ schema:
1510
+ type: string
1511
+ enum: [1h, 6h, 24h, 7d, 30d]
1512
+ default: 24h
1513
+ responses:
1514
+ '200':
1515
+ description: Ecosystem metrics
1516
+ content:
1517
+ application/json:
1518
+ schema:
1519
+ type: object
1520
+ properties:
1521
+ performance:
1522
+ $ref: '#/components/schemas/PerformanceMetrics'
1523
+ learning:
1524
+ $ref: '#/components/schemas/LearningMetrics'
1525
+ evolution:
1526
+ $ref: '#/components/schemas/EvolutionState'
1527
+ agents:
1528
+ type: array
1529
+ items:
1530
+ $ref: '#/components/schemas/AgentPerformance'