@bluefly/openstandardagents 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (650) hide show
  1. package/.version.json +7 -0
  2. package/CHANGELOG.md +60 -1
  3. package/README.md +41 -31
  4. package/bin/ossa +2 -23
  5. package/bin/postinstall +3 -2
  6. package/dist/adapters/crewai/converter.d.ts +17 -0
  7. package/dist/adapters/crewai/converter.d.ts.map +1 -0
  8. package/dist/adapters/crewai/converter.js +110 -0
  9. package/dist/adapters/crewai/converter.js.map +1 -0
  10. package/dist/adapters/crewai/index.d.ts +7 -0
  11. package/dist/adapters/crewai/index.d.ts.map +1 -0
  12. package/dist/adapters/crewai/index.js +6 -0
  13. package/dist/adapters/crewai/index.js.map +1 -0
  14. package/dist/adapters/crewai/types.d.ts +29 -0
  15. package/dist/adapters/crewai/types.d.ts.map +1 -0
  16. package/dist/adapters/crewai/types.js +5 -0
  17. package/dist/adapters/crewai/types.js.map +1 -0
  18. package/dist/adapters/docker/generators.d.ts +19 -0
  19. package/dist/adapters/docker/generators.d.ts.map +1 -0
  20. package/dist/adapters/docker/generators.js +93 -0
  21. package/dist/adapters/docker/generators.js.map +1 -0
  22. package/dist/adapters/docker/index.d.ts +7 -0
  23. package/dist/adapters/docker/index.d.ts.map +1 -0
  24. package/dist/adapters/docker/index.js +6 -0
  25. package/dist/adapters/docker/index.js.map +1 -0
  26. package/dist/adapters/docker/types.d.ts +17 -0
  27. package/dist/adapters/docker/types.d.ts.map +1 -0
  28. package/dist/adapters/docker/types.js +5 -0
  29. package/dist/adapters/docker/types.js.map +1 -0
  30. package/dist/adapters/gitlab/converter.d.ts +25 -0
  31. package/dist/adapters/gitlab/converter.d.ts.map +1 -0
  32. package/dist/adapters/gitlab/converter.js +96 -0
  33. package/dist/adapters/gitlab/converter.js.map +1 -0
  34. package/dist/adapters/gitlab/index.d.ts +7 -0
  35. package/dist/adapters/gitlab/index.d.ts.map +1 -0
  36. package/dist/adapters/gitlab/index.js +6 -0
  37. package/dist/adapters/gitlab/index.js.map +1 -0
  38. package/dist/adapters/gitlab/types.d.ts +22 -0
  39. package/dist/adapters/gitlab/types.d.ts.map +1 -0
  40. package/dist/adapters/gitlab/types.js +5 -0
  41. package/dist/adapters/gitlab/types.js.map +1 -0
  42. package/dist/adapters/kubernetes/generator.d.ts +29 -0
  43. package/dist/adapters/kubernetes/generator.d.ts.map +1 -0
  44. package/dist/adapters/kubernetes/generator.js +133 -0
  45. package/dist/adapters/kubernetes/generator.js.map +1 -0
  46. package/dist/adapters/kubernetes/index.d.ts +7 -0
  47. package/dist/adapters/kubernetes/index.d.ts.map +1 -0
  48. package/dist/adapters/kubernetes/index.js +6 -0
  49. package/dist/adapters/kubernetes/index.js.map +1 -0
  50. package/dist/adapters/kubernetes/types.d.ts +17 -0
  51. package/dist/adapters/kubernetes/types.d.ts.map +1 -0
  52. package/dist/adapters/kubernetes/types.js +5 -0
  53. package/dist/adapters/kubernetes/types.js.map +1 -0
  54. package/dist/adapters/langchain/converter.d.ts +21 -0
  55. package/dist/adapters/langchain/converter.d.ts.map +1 -0
  56. package/dist/adapters/langchain/converter.js +143 -0
  57. package/dist/adapters/langchain/converter.js.map +1 -0
  58. package/dist/adapters/langchain/index.d.ts +7 -0
  59. package/dist/adapters/langchain/index.d.ts.map +1 -0
  60. package/dist/adapters/langchain/index.js +6 -0
  61. package/dist/adapters/langchain/index.js.map +1 -0
  62. package/dist/adapters/langchain/types.d.ts +27 -0
  63. package/dist/adapters/langchain/types.d.ts.map +1 -0
  64. package/dist/adapters/langchain/types.js +5 -0
  65. package/dist/adapters/langchain/types.js.map +1 -0
  66. package/dist/adapters/n8n/converter.d.ts +17 -0
  67. package/dist/adapters/n8n/converter.d.ts.map +1 -0
  68. package/dist/adapters/n8n/converter.js +77 -0
  69. package/dist/adapters/n8n/converter.js.map +1 -0
  70. package/dist/adapters/n8n/index.d.ts +7 -0
  71. package/dist/adapters/n8n/index.d.ts.map +1 -0
  72. package/dist/adapters/n8n/index.js +6 -0
  73. package/dist/adapters/n8n/index.js.map +1 -0
  74. package/dist/adapters/n8n/types.d.ts +23 -0
  75. package/dist/adapters/n8n/types.d.ts.map +1 -0
  76. package/dist/adapters/n8n/types.js +5 -0
  77. package/dist/adapters/n8n/types.js.map +1 -0
  78. package/dist/adapters/opentelemetry.adapter.d.ts +1 -1
  79. package/dist/adapters/temporal/converter.d.ts +17 -0
  80. package/dist/adapters/temporal/converter.d.ts.map +1 -0
  81. package/dist/adapters/temporal/converter.js +96 -0
  82. package/dist/adapters/temporal/converter.js.map +1 -0
  83. package/dist/adapters/temporal/index.d.ts +7 -0
  84. package/dist/adapters/temporal/index.d.ts.map +1 -0
  85. package/dist/adapters/temporal/index.js +6 -0
  86. package/dist/adapters/temporal/index.js.map +1 -0
  87. package/dist/adapters/temporal/types.d.ts +23 -0
  88. package/dist/adapters/temporal/types.d.ts.map +1 -0
  89. package/dist/adapters/temporal/types.js +5 -0
  90. package/dist/adapters/temporal/types.js.map +1 -0
  91. package/dist/bot/agent-compliance.js +1 -1
  92. package/dist/bot/agent-compliance.js.map +1 -1
  93. package/dist/bot/agent-security_scanner.d.ts +1 -1
  94. package/dist/bot/agent-security_scanner.d.ts.map +1 -1
  95. package/dist/bot/agent-security_scanner.js.map +1 -1
  96. package/dist/cli/commands/agent-create.command.d.ts +18 -0
  97. package/dist/cli/commands/agent-create.command.d.ts.map +1 -0
  98. package/dist/cli/commands/agent-create.command.js +437 -0
  99. package/dist/cli/commands/agent-create.command.js.map +1 -0
  100. package/dist/cli/commands/agent-wizard.command.d.ts +21 -0
  101. package/dist/cli/commands/agent-wizard.command.d.ts.map +1 -0
  102. package/dist/cli/commands/agent-wizard.command.js +1136 -0
  103. package/dist/cli/commands/agent-wizard.command.js.map +1 -0
  104. package/dist/cli/commands/agents-md/batch.command.d.ts +3 -0
  105. package/dist/cli/commands/agents-md/batch.command.d.ts.map +1 -0
  106. package/dist/cli/commands/agents-md/batch.command.js +63 -0
  107. package/dist/cli/commands/agents-md/batch.command.js.map +1 -0
  108. package/dist/cli/commands/agents-md/generate.command.d.ts +3 -0
  109. package/dist/cli/commands/agents-md/generate.command.d.ts.map +1 -0
  110. package/dist/cli/commands/agents-md/generate.command.js +43 -0
  111. package/dist/cli/commands/agents-md/generate.command.js.map +1 -0
  112. package/dist/cli/commands/agents-md/list.command.d.ts +3 -0
  113. package/dist/cli/commands/agents-md/list.command.d.ts.map +1 -0
  114. package/dist/cli/commands/agents-md/list.command.js +59 -0
  115. package/dist/cli/commands/agents-md/list.command.js.map +1 -0
  116. package/dist/cli/commands/agents-md/validate.command.d.ts +3 -0
  117. package/dist/cli/commands/agents-md/validate.command.d.ts.map +1 -0
  118. package/dist/cli/commands/agents-md/validate.command.js +42 -0
  119. package/dist/cli/commands/agents-md/validate.command.js.map +1 -0
  120. package/dist/cli/commands/agents-md.command.d.ts +1 -1
  121. package/dist/cli/commands/agents-md.command.d.ts.map +1 -1
  122. package/dist/cli/commands/agents-md.command.js +40 -122
  123. package/dist/cli/commands/agents-md.command.js.map +1 -1
  124. package/dist/cli/commands/audit.d.ts +8 -0
  125. package/dist/cli/commands/audit.d.ts.map +1 -0
  126. package/dist/cli/commands/audit.js +238 -0
  127. package/dist/cli/commands/audit.js.map +1 -0
  128. package/dist/cli/commands/build.command.d.ts +7 -0
  129. package/dist/cli/commands/build.command.d.ts.map +1 -0
  130. package/dist/cli/commands/build.command.js +314 -0
  131. package/dist/cli/commands/build.command.js.map +1 -0
  132. package/dist/cli/commands/capability/validate.d.ts +3 -0
  133. package/dist/cli/commands/capability/validate.d.ts.map +1 -0
  134. package/dist/cli/commands/capability/validate.js +60 -0
  135. package/dist/cli/commands/capability/validate.js.map +1 -0
  136. package/dist/cli/commands/deploy.command.d.ts +5 -2
  137. package/dist/cli/commands/deploy.command.d.ts.map +1 -1
  138. package/dist/cli/commands/deploy.command.js +50 -154
  139. package/dist/cli/commands/deploy.command.js.map +1 -1
  140. package/dist/cli/commands/enhance.command.d.ts +10 -0
  141. package/dist/cli/commands/enhance.command.d.ts.map +1 -0
  142. package/dist/cli/commands/enhance.command.js +119 -0
  143. package/dist/cli/commands/enhance.command.js.map +1 -0
  144. package/dist/cli/commands/examples.command.d.ts +10 -0
  145. package/dist/cli/commands/examples.command.d.ts.map +1 -0
  146. package/dist/cli/commands/examples.command.js +73 -0
  147. package/dist/cli/commands/examples.command.js.map +1 -0
  148. package/dist/cli/commands/export.command.d.ts +2 -2
  149. package/dist/cli/commands/export.command.d.ts.map +1 -1
  150. package/dist/cli/commands/export.command.js +109 -37
  151. package/dist/cli/commands/export.command.js.map +1 -1
  152. package/dist/cli/commands/generate/conformance.d.ts +3 -0
  153. package/dist/cli/commands/generate/conformance.d.ts.map +1 -0
  154. package/dist/cli/commands/generate/conformance.js +106 -0
  155. package/dist/cli/commands/generate/conformance.js.map +1 -0
  156. package/dist/cli/commands/github-sync.command.js +1 -1
  157. package/dist/cli/commands/identity/plan.d.ts +3 -0
  158. package/dist/cli/commands/identity/plan.d.ts.map +1 -0
  159. package/dist/cli/commands/identity/plan.js +198 -0
  160. package/dist/cli/commands/identity/plan.js.map +1 -0
  161. package/dist/cli/commands/install.command.d.ts.map +1 -1
  162. package/dist/cli/commands/install.command.js +29 -32
  163. package/dist/cli/commands/install.command.js.map +1 -1
  164. package/dist/cli/commands/knowledge-index.command.d.ts +11 -0
  165. package/dist/cli/commands/knowledge-index.command.d.ts.map +1 -0
  166. package/dist/cli/commands/knowledge-index.command.js +111 -0
  167. package/dist/cli/commands/knowledge-index.command.js.map +1 -0
  168. package/dist/cli/commands/knowledge-query.command.d.ts +11 -0
  169. package/dist/cli/commands/knowledge-query.command.d.ts.map +1 -0
  170. package/dist/cli/commands/knowledge-query.command.js +118 -0
  171. package/dist/cli/commands/knowledge-query.command.js.map +1 -0
  172. package/dist/cli/commands/knowledge.command.d.ts +11 -0
  173. package/dist/cli/commands/knowledge.command.d.ts.map +1 -0
  174. package/dist/cli/commands/knowledge.command.js +16 -0
  175. package/dist/cli/commands/knowledge.command.js.map +1 -0
  176. package/dist/cli/commands/migrate.command.d.ts +2 -17
  177. package/dist/cli/commands/migrate.command.d.ts.map +1 -1
  178. package/dist/cli/commands/migrate.command.js +86 -144
  179. package/dist/cli/commands/migrate.command.js.map +1 -1
  180. package/dist/cli/commands/publish.command.d.ts.map +1 -1
  181. package/dist/cli/commands/publish.command.js +36 -106
  182. package/dist/cli/commands/publish.command.js.map +1 -1
  183. package/dist/cli/commands/release.command.d.ts +10 -0
  184. package/dist/cli/commands/release.command.d.ts.map +1 -0
  185. package/dist/cli/commands/release.command.js +73 -0
  186. package/dist/cli/commands/release.command.js.map +1 -0
  187. package/dist/cli/commands/scaffold.command.d.ts.map +1 -1
  188. package/dist/cli/commands/scaffold.command.js +14 -4
  189. package/dist/cli/commands/scaffold.command.js.map +1 -1
  190. package/dist/cli/commands/search.command.d.ts.map +1 -1
  191. package/dist/cli/commands/search.command.js +33 -33
  192. package/dist/cli/commands/search.command.js.map +1 -1
  193. package/dist/cli/commands/skills.command.d.ts +10 -0
  194. package/dist/cli/commands/skills.command.d.ts.map +1 -0
  195. package/dist/cli/commands/skills.command.js +135 -0
  196. package/dist/cli/commands/skills.command.js.map +1 -0
  197. package/dist/cli/commands/taxonomy.command.d.ts +10 -0
  198. package/dist/cli/commands/taxonomy.command.d.ts.map +1 -0
  199. package/dist/cli/commands/taxonomy.command.js +379 -0
  200. package/dist/cli/commands/taxonomy.command.js.map +1 -0
  201. package/dist/cli/commands/template.command.d.ts +7 -0
  202. package/dist/cli/commands/template.command.d.ts.map +1 -0
  203. package/dist/cli/commands/template.command.js +159 -0
  204. package/dist/cli/commands/template.command.js.map +1 -0
  205. package/dist/cli/commands/update.command.d.ts +3 -0
  206. package/dist/cli/commands/update.command.d.ts.map +1 -0
  207. package/dist/cli/commands/update.command.js +43 -0
  208. package/dist/cli/commands/update.command.js.map +1 -0
  209. package/dist/cli/commands/validate.command.d.ts.map +1 -1
  210. package/dist/cli/commands/validate.command.js +43 -0
  211. package/dist/cli/commands/validate.command.js.map +1 -1
  212. package/dist/cli/commands/wizard.command.d.ts.map +1 -1
  213. package/dist/cli/commands/wizard.command.js +29 -3
  214. package/dist/cli/commands/wizard.command.js.map +1 -1
  215. package/dist/cli/commands/workspace.command.js +3 -1
  216. package/dist/cli/commands/workspace.command.js.map +1 -1
  217. package/dist/cli/index.d.ts +2 -11
  218. package/dist/cli/index.d.ts.map +1 -1
  219. package/dist/cli/index.js +24 -229
  220. package/dist/cli/index.js.map +1 -1
  221. package/dist/cli/utils/error-formatter.js.map +1 -1
  222. package/dist/cli/utils/output.d.ts +1 -0
  223. package/dist/cli/utils/output.d.ts.map +1 -1
  224. package/dist/cli/utils/output.js +2 -1
  225. package/dist/cli/utils/output.js.map +1 -1
  226. package/dist/cli/wizard/data/agent-types.d.ts +7 -0
  227. package/dist/cli/wizard/data/agent-types.d.ts.map +1 -0
  228. package/dist/cli/wizard/data/agent-types.js +192 -0
  229. package/dist/cli/wizard/data/agent-types.js.map +1 -0
  230. package/dist/cli/wizard/data/llm-providers.d.ts +10 -0
  231. package/dist/cli/wizard/data/llm-providers.d.ts.map +1 -0
  232. package/dist/cli/wizard/data/llm-providers.js +176 -0
  233. package/dist/cli/wizard/data/llm-providers.js.map +1 -0
  234. package/dist/cli/wizard/data/taxonomy.d.ts +39 -0
  235. package/dist/cli/wizard/data/taxonomy.d.ts.map +1 -0
  236. package/dist/cli/wizard/data/taxonomy.js +134 -0
  237. package/dist/cli/wizard/data/taxonomy.js.map +1 -0
  238. package/dist/cli/wizard/data/templates.d.ts +10 -0
  239. package/dist/cli/wizard/data/templates.d.ts.map +1 -0
  240. package/dist/cli/wizard/data/templates.js +228 -0
  241. package/dist/cli/wizard/data/templates.js.map +1 -0
  242. package/dist/cli/wizard/steps/01-agent-type.d.ts +7 -0
  243. package/dist/cli/wizard/steps/01-agent-type.d.ts.map +1 -0
  244. package/dist/cli/wizard/steps/01-agent-type.js +35 -0
  245. package/dist/cli/wizard/steps/01-agent-type.js.map +1 -0
  246. package/dist/cli/wizard/steps/02-basic-info.d.ts +7 -0
  247. package/dist/cli/wizard/steps/02-basic-info.d.ts.map +1 -0
  248. package/dist/cli/wizard/steps/02-basic-info.js +81 -0
  249. package/dist/cli/wizard/steps/02-basic-info.js.map +1 -0
  250. package/dist/cli/wizard/steps/03-domain-capability.d.ts +7 -0
  251. package/dist/cli/wizard/steps/03-domain-capability.d.ts.map +1 -0
  252. package/dist/cli/wizard/steps/03-domain-capability.js +98 -0
  253. package/dist/cli/wizard/steps/03-domain-capability.js.map +1 -0
  254. package/dist/cli/wizard/steps/04-llm-config.d.ts +7 -0
  255. package/dist/cli/wizard/steps/04-llm-config.d.ts.map +1 -0
  256. package/dist/cli/wizard/steps/04-llm-config.js +86 -0
  257. package/dist/cli/wizard/steps/04-llm-config.js.map +1 -0
  258. package/dist/cli/wizard/steps/05-tools.d.ts +7 -0
  259. package/dist/cli/wizard/steps/05-tools.d.ts.map +1 -0
  260. package/dist/cli/wizard/steps/05-tools.js +172 -0
  261. package/dist/cli/wizard/steps/05-tools.js.map +1 -0
  262. package/dist/cli/wizard/steps/06-autonomy.d.ts +7 -0
  263. package/dist/cli/wizard/steps/06-autonomy.d.ts.map +1 -0
  264. package/dist/cli/wizard/steps/06-autonomy.js +87 -0
  265. package/dist/cli/wizard/steps/06-autonomy.js.map +1 -0
  266. package/dist/cli/wizard/steps/07-observability.d.ts +7 -0
  267. package/dist/cli/wizard/steps/07-observability.d.ts.map +1 -0
  268. package/dist/cli/wizard/steps/07-observability.js +149 -0
  269. package/dist/cli/wizard/steps/07-observability.js.map +1 -0
  270. package/dist/cli/wizard/steps/08-deployment.d.ts +7 -0
  271. package/dist/cli/wizard/steps/08-deployment.d.ts.map +1 -0
  272. package/dist/cli/wizard/steps/08-deployment.js +120 -0
  273. package/dist/cli/wizard/steps/08-deployment.js.map +1 -0
  274. package/dist/cli/wizard/steps/09-advanced.d.ts +7 -0
  275. package/dist/cli/wizard/steps/09-advanced.d.ts.map +1 -0
  276. package/dist/cli/wizard/steps/09-advanced.js +160 -0
  277. package/dist/cli/wizard/steps/09-advanced.js.map +1 -0
  278. package/dist/cli/wizard/steps/10-review.d.ts +7 -0
  279. package/dist/cli/wizard/steps/10-review.d.ts.map +1 -0
  280. package/dist/cli/wizard/steps/10-review.js +109 -0
  281. package/dist/cli/wizard/steps/10-review.js.map +1 -0
  282. package/dist/cli/wizard/steps/12-agents-folder.d.ts +7 -0
  283. package/dist/cli/wizard/steps/12-agents-folder.d.ts.map +1 -0
  284. package/dist/cli/wizard/steps/12-agents-folder.js +101 -0
  285. package/dist/cli/wizard/steps/12-agents-folder.js.map +1 -0
  286. package/dist/cli/wizard/steps/13-openapi-generation.d.ts +7 -0
  287. package/dist/cli/wizard/steps/13-openapi-generation.d.ts.map +1 -0
  288. package/dist/cli/wizard/steps/13-openapi-generation.js +60 -0
  289. package/dist/cli/wizard/steps/13-openapi-generation.js.map +1 -0
  290. package/dist/cli/wizard/steps/14-workspace-registration.d.ts +7 -0
  291. package/dist/cli/wizard/steps/14-workspace-registration.d.ts.map +1 -0
  292. package/dist/cli/wizard/steps/14-workspace-registration.js +65 -0
  293. package/dist/cli/wizard/steps/14-workspace-registration.js.map +1 -0
  294. package/dist/cli/wizard/steps/15-cost-estimation.d.ts +7 -0
  295. package/dist/cli/wizard/steps/15-cost-estimation.d.ts.map +1 -0
  296. package/dist/cli/wizard/steps/15-cost-estimation.js +119 -0
  297. package/dist/cli/wizard/steps/15-cost-estimation.js.map +1 -0
  298. package/dist/cli/wizard/steps/16-best-practices.d.ts +7 -0
  299. package/dist/cli/wizard/steps/16-best-practices.d.ts.map +1 -0
  300. package/dist/cli/wizard/steps/16-best-practices.js +180 -0
  301. package/dist/cli/wizard/steps/16-best-practices.js.map +1 -0
  302. package/dist/cli/wizard/steps/index.d.ts +15 -0
  303. package/dist/cli/wizard/steps/index.d.ts.map +1 -0
  304. package/dist/cli/wizard/steps/index.js +15 -0
  305. package/dist/cli/wizard/steps/index.js.map +1 -0
  306. package/dist/cli/wizard/types.d.ts +94 -0
  307. package/dist/cli/wizard/types.d.ts.map +1 -0
  308. package/dist/cli/wizard/types.js +6 -0
  309. package/dist/cli/wizard/types.js.map +1 -0
  310. package/dist/cli/wizard/ui/console.d.ts +26 -0
  311. package/dist/cli/wizard/ui/console.d.ts.map +1 -0
  312. package/dist/cli/wizard/ui/console.js +104 -0
  313. package/dist/cli/wizard/ui/console.js.map +1 -0
  314. package/dist/cli/wizard/validators/index.d.ts +11 -0
  315. package/dist/cli/wizard/validators/index.d.ts.map +1 -0
  316. package/dist/cli/wizard/validators/index.js +35 -0
  317. package/dist/cli/wizard/validators/index.js.map +1 -0
  318. package/dist/di-container.d.ts.map +1 -1
  319. package/dist/di-container.js +16 -0
  320. package/dist/di-container.js.map +1 -1
  321. package/dist/index.d.ts +7 -24
  322. package/dist/index.d.ts.map +1 -1
  323. package/dist/index.js +9 -31
  324. package/dist/index.js.map +1 -1
  325. package/dist/repositories/manifest.repository.js +1 -1
  326. package/dist/repositories/manifest.repository.js.map +1 -1
  327. package/dist/repositories/schema.repository.d.ts.map +1 -1
  328. package/dist/repositories/schema.repository.js +7 -4
  329. package/dist/repositories/schema.repository.js.map +1 -1
  330. package/dist/runtime/langflow.runtime.d.ts +2 -2
  331. package/dist/sdks/kagent/crd-generator.d.ts +21 -0
  332. package/dist/sdks/kagent/crd-generator.d.ts.map +1 -0
  333. package/dist/sdks/kagent/crd-generator.js +101 -0
  334. package/dist/sdks/kagent/crd-generator.js.map +1 -0
  335. package/dist/sdks/kagent/crd-parser.d.ts +13 -0
  336. package/dist/sdks/kagent/crd-parser.d.ts.map +1 -0
  337. package/dist/sdks/kagent/crd-parser.js +91 -0
  338. package/dist/sdks/kagent/crd-parser.js.map +1 -0
  339. package/dist/sdks/kagent/index.d.ts +10 -0
  340. package/dist/sdks/kagent/index.d.ts.map +1 -0
  341. package/dist/sdks/kagent/index.js +9 -0
  342. package/dist/sdks/kagent/index.js.map +1 -0
  343. package/dist/sdks/kagent/runtime-adapter.d.ts +45 -0
  344. package/dist/sdks/kagent/runtime-adapter.d.ts.map +1 -0
  345. package/dist/sdks/kagent/runtime-adapter.js +129 -0
  346. package/dist/sdks/kagent/runtime-adapter.js.map +1 -0
  347. package/dist/sdks/kagent/types.d.ts +91 -0
  348. package/dist/sdks/kagent/types.d.ts.map +1 -0
  349. package/dist/sdks/kagent/types.js +5 -0
  350. package/dist/sdks/kagent/types.js.map +1 -0
  351. package/dist/sdks/kagent/validator.d.ts +17 -0
  352. package/dist/sdks/kagent/validator.d.ts.map +1 -0
  353. package/dist/sdks/kagent/validator.js +73 -0
  354. package/dist/sdks/kagent/validator.js.map +1 -0
  355. package/dist/sdks/shared/types.d.ts +1 -1
  356. package/dist/sdks/typescript/types.d.ts +3 -3
  357. package/dist/sdks/typescript/types.js +3 -3
  358. package/dist/services/agents-md/agents-md.service.d.ts.map +1 -1
  359. package/dist/services/agents-md/agents-md.service.js +0 -6
  360. package/dist/services/agents-md/agents-md.service.js.map +1 -1
  361. package/dist/services/agents-md/repo-agents-md.service.d.ts +87 -0
  362. package/dist/services/agents-md/repo-agents-md.service.d.ts.map +1 -0
  363. package/dist/services/agents-md/repo-agents-md.service.js +202 -0
  364. package/dist/services/agents-md/repo-agents-md.service.js.map +1 -0
  365. package/dist/services/ai-architect.service.d.ts +48 -0
  366. package/dist/services/ai-architect.service.d.ts.map +1 -0
  367. package/dist/services/ai-architect.service.js +273 -0
  368. package/dist/services/ai-architect.service.js.map +1 -0
  369. package/dist/services/audit.d.ts +80 -0
  370. package/dist/services/audit.d.ts.map +1 -0
  371. package/dist/services/audit.js +245 -0
  372. package/dist/services/audit.js.map +1 -0
  373. package/dist/services/codegen/generators/openapi-zod.generator.js +1 -1
  374. package/dist/services/git.service.d.ts +10 -1
  375. package/dist/services/git.service.d.ts.map +1 -1
  376. package/dist/services/git.service.js +42 -2
  377. package/dist/services/git.service.js.map +1 -1
  378. package/dist/services/knowledge-generation.service.d.ts +46 -0
  379. package/dist/services/knowledge-generation.service.d.ts.map +1 -0
  380. package/dist/services/knowledge-generation.service.js +96 -0
  381. package/dist/services/knowledge-generation.service.js.map +1 -0
  382. package/dist/services/knowledge.service.d.ts +88 -0
  383. package/dist/services/knowledge.service.d.ts.map +1 -0
  384. package/dist/services/knowledge.service.js +214 -0
  385. package/dist/services/knowledge.service.js.map +1 -0
  386. package/dist/services/migration-transform.service.d.ts +11 -3
  387. package/dist/services/migration-transform.service.d.ts.map +1 -1
  388. package/dist/services/migration-transform.service.js +69 -10
  389. package/dist/services/migration-transform.service.js.map +1 -1
  390. package/dist/services/registry.service.d.ts +34 -0
  391. package/dist/services/registry.service.d.ts.map +1 -0
  392. package/dist/services/registry.service.js +161 -0
  393. package/dist/services/registry.service.js.map +1 -0
  394. package/dist/services/release-automation/release-agent.service.d.ts +39 -0
  395. package/dist/services/release-automation/release-agent.service.d.ts.map +1 -0
  396. package/dist/services/release-automation/release-agent.service.js +42 -0
  397. package/dist/services/release-automation/release-agent.service.js.map +1 -0
  398. package/dist/services/skills/claude-skills.service.d.ts +51 -0
  399. package/dist/services/skills/claude-skills.service.d.ts.map +1 -0
  400. package/dist/services/skills/claude-skills.service.js +252 -0
  401. package/dist/services/skills/claude-skills.service.js.map +1 -0
  402. package/dist/services/structure/agents-folder.service.d.ts +37 -0
  403. package/dist/services/structure/agents-folder.service.d.ts.map +1 -0
  404. package/dist/services/structure/agents-folder.service.js +318 -0
  405. package/dist/services/structure/agents-folder.service.js.map +1 -0
  406. package/dist/services/taxonomy-validator.service.d.ts +25 -0
  407. package/dist/services/taxonomy-validator.service.d.ts.map +1 -0
  408. package/dist/services/taxonomy-validator.service.js +149 -0
  409. package/dist/services/taxonomy-validator.service.js.map +1 -0
  410. package/dist/services/taxonomy.service.d.ts +132 -0
  411. package/dist/services/taxonomy.service.d.ts.map +1 -0
  412. package/dist/services/taxonomy.service.js +330 -0
  413. package/dist/services/taxonomy.service.js.map +1 -0
  414. package/dist/services/template-processor.service.d.ts +34 -0
  415. package/dist/services/template-processor.service.d.ts.map +1 -0
  416. package/dist/services/template-processor.service.js +112 -0
  417. package/dist/services/template-processor.service.js.map +1 -0
  418. package/dist/services/template.service.d.ts +54 -0
  419. package/dist/services/template.service.d.ts.map +1 -0
  420. package/dist/services/template.service.js +154 -0
  421. package/dist/services/template.service.js.map +1 -0
  422. package/dist/spec/ossa-audit-api.yaml +311 -0
  423. package/dist/spec/registry/registry-api.yaml +144 -0
  424. package/dist/spec/schema/components/adapter.schema.json +33 -0
  425. package/dist/spec/schema/components/identity.schema.json +78 -0
  426. package/dist/spec/v0.3/CHANGELOG.md +2 -2
  427. package/dist/spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md +552 -0
  428. package/dist/spec/v0.3/README.md +2 -2
  429. package/dist/spec/v0.3/ossa-0.3.6.schema.json +17604 -0
  430. package/dist/spec/v0.3/ossa-v0.3.schema.json +15824 -0
  431. package/dist/spec/v0.3.6/CHANGELOG.md +171 -0
  432. package/dist/spec/v0.3.6/README.md +382 -0
  433. package/dist/spec/v0.3.6/taxonomy.yaml +506 -0
  434. package/dist/testing/fixtures.d.ts.map +1 -1
  435. package/dist/testing/fixtures.js +6 -0
  436. package/dist/testing/fixtures.js.map +1 -1
  437. package/dist/testing/runner.d.ts.map +1 -1
  438. package/dist/testing/runner.js +4 -20
  439. package/dist/testing/runner.js.map +1 -1
  440. package/dist/types/architect.d.ts +48 -0
  441. package/dist/types/architect.d.ts.map +1 -0
  442. package/dist/types/architect.js +7 -0
  443. package/dist/types/architect.js.map +1 -0
  444. package/dist/types/identity.d.ts +78 -401
  445. package/dist/types/identity.d.ts.map +1 -1
  446. package/dist/types/identity.js +5 -7
  447. package/dist/types/identity.js.map +1 -1
  448. package/dist/types/identity.zod.d.ts +5 -5
  449. package/dist/types/index.d.ts +69 -41
  450. package/dist/types/index.d.ts.map +1 -1
  451. package/dist/types/index.js +4 -0
  452. package/dist/types/index.js.map +1 -1
  453. package/dist/types/personality.zod.d.ts +24 -24
  454. package/dist/types/prompts.zod.d.ts +4 -4
  455. package/dist/utils/version.d.ts.map +1 -1
  456. package/dist/utils/version.js +73 -46
  457. package/dist/utils/version.js.map +1 -1
  458. package/dist/validation/__tests__/error-codes.test.d.ts +5 -0
  459. package/dist/validation/__tests__/error-codes.test.d.ts.map +1 -0
  460. package/dist/validation/__tests__/error-codes.test.js +252 -0
  461. package/dist/validation/__tests__/error-codes.test.js.map +1 -0
  462. package/dist/validation/enhanced-validator.d.ts +38 -0
  463. package/dist/validation/enhanced-validator.d.ts.map +1 -0
  464. package/dist/validation/enhanced-validator.js +242 -0
  465. package/dist/validation/enhanced-validator.js.map +1 -0
  466. package/dist/validation/error-codes.d.ts +170 -0
  467. package/dist/validation/error-codes.d.ts.map +1 -0
  468. package/dist/validation/error-codes.js +1159 -0
  469. package/dist/validation/error-codes.js.map +1 -0
  470. package/dist/validation/error-formatter.d.ts +81 -0
  471. package/dist/validation/error-formatter.d.ts.map +1 -0
  472. package/dist/validation/error-formatter.js +375 -0
  473. package/dist/validation/error-formatter.js.map +1 -0
  474. package/dist/validation/index.d.ts +16 -0
  475. package/dist/validation/index.d.ts.map +1 -0
  476. package/dist/validation/index.js +20 -0
  477. package/dist/validation/index.js.map +1 -0
  478. package/dist/validation/linter.d.ts +36 -0
  479. package/dist/validation/linter.d.ts.map +1 -0
  480. package/dist/validation/linter.js +453 -0
  481. package/dist/validation/linter.js.map +1 -0
  482. package/dist/validation/validator.d.ts +38 -0
  483. package/dist/validation/validator.d.ts.map +1 -0
  484. package/dist/validation/validator.js +262 -0
  485. package/dist/validation/validator.js.map +1 -0
  486. package/examples/a2a/agent-handoff.ossa.yaml +1 -1
  487. package/examples/a2a/service-discovery.ossa.yaml +1 -1
  488. package/examples/adapters/drupal-eca-mapping.yaml +1 -1
  489. package/examples/adapters/drupal-eca-task.yaml +1 -1
  490. package/examples/adapters/drupal-flowdrop-mapping.yaml +1 -1
  491. package/examples/adapters/drupal-maestro-mapping.yaml +1 -1
  492. package/examples/adapters/mistral-agent.yaml +1 -1
  493. package/examples/adapters/symfony-messenger-task.yaml +1 -1
  494. package/examples/adapters/symfony-messenger-workflow.yaml +1 -1
  495. package/examples/advanced/reasoning-agent.yaml +1 -1
  496. package/examples/advanced/workflows/hybrid-model-strategy.yaml +1 -1
  497. package/examples/agent-manifests/critics/critic-agent.yaml +1 -1
  498. package/examples/agent-manifests/governors/governor-agent.yaml +1 -1
  499. package/examples/agent-manifests/integrators/integrator-agent.yaml +1 -1
  500. package/examples/agent-manifests/judges/judge-agent.yaml +1 -1
  501. package/examples/agent-manifests/monitors/monitor-agent.yaml +1 -1
  502. package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +1 -1
  503. package/examples/agent-manifests/workers/worker-agent.yaml +1 -1
  504. package/examples/agents/architecture-healer-enterprise.yaml +1 -1
  505. package/examples/agents/dependency-healer-npm.yaml +1 -1
  506. package/examples/agents/spec-healer-openapi.yaml +1 -1
  507. package/examples/agents/wiki-healer-production.yaml +1 -1
  508. package/examples/agents-md/monorepo-agent.ossa.yaml +1 -1
  509. package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +1 -1
  510. package/examples/build-once-use-everywhere/README.md +184 -0
  511. package/examples/build-once-use-everywhere/agent.ossa.yaml +38 -0
  512. package/examples/build-once-use-everywhere/deploy-config.yaml +32 -0
  513. package/examples/claude-code/ossa-validator.ossa.yaml +1 -1
  514. package/examples/common_npm/agent-router.ossa.yaml +1 -1
  515. package/examples/contracts/data-consumer.ossa.yaml +1 -1
  516. package/examples/contracts/data-producer-v2.ossa.yaml +5 -3
  517. package/examples/contracts/data-producer.ossa.yaml +1 -1
  518. package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
  519. package/examples/economics/marketplace-agent.ossa.json +210 -0
  520. package/examples/extensions/encryption-multi-provider.yaml +4 -4
  521. package/examples/extensions/knowledge-sources.yaml +1 -1
  522. package/examples/extensions/mcp-full-featured.yaml +1 -1
  523. package/examples/genetics/breeding-agent.ossa.json +194 -0
  524. package/examples/getting-started/01-minimal-agent.ossa.yaml +1 -1
  525. package/examples/getting-started/02-agent-with-tools.ossa.yaml +1 -1
  526. package/examples/getting-started/03-agent-with-safety.ossa.yaml +1 -1
  527. package/examples/getting-started/04-agent-with-messaging.ossa.yaml +1 -1
  528. package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
  529. package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
  530. package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +1 -1
  531. package/examples/kagent/compliance-validator.ossa.yaml +1 -1
  532. package/examples/kagent/cost-optimizer.ossa.yaml +1 -1
  533. package/examples/kagent/documentation-agent.ossa.yaml +1 -1
  534. package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +1 -1
  535. package/examples/kagent/k8s-troubleshooter.ossa.yaml +1 -1
  536. package/examples/kagent/security-scanner.ossa.yaml +1 -1
  537. package/examples/lifecycle/mentoring-agent.ossa.json +293 -0
  538. package/examples/mcp/database-mcp.ossa.yaml +1 -1
  539. package/examples/mcp/filesystem-mcp.ossa.yaml +1 -1
  540. package/examples/messaging/dependency-healer.ossa.yaml +1 -1
  541. package/examples/messaging/incident-responder.ossa.yaml +1 -1
  542. package/examples/messaging/routing-rules.ossa.yaml +1 -1
  543. package/examples/messaging/security-scanner.ossa.yaml +1 -1
  544. package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
  545. package/examples/migrations/crewai-to-ossa/README.md +66 -0
  546. package/examples/migrations/langchain/01-python-react-agent-after.ossa.yaml +2 -2
  547. package/examples/migrations/langchain/02-typescript-conversational-after.ossa.yaml +2 -2
  548. package/examples/migrations/langchain/03-sequential-chain-after.ossa.yaml +2 -2
  549. package/examples/migrations/langchain/04-config-based-after.ossa.yaml +2 -2
  550. package/examples/migrations/langchain-to-ossa/README.md +73 -0
  551. package/examples/migrations/swarm-to-ossa/COMPARISON.md +350 -0
  552. package/examples/migrations/swarm-to-ossa/INDEX.md +355 -0
  553. package/examples/migrations/swarm-to-ossa/MIGRATION-FLOW.md +410 -0
  554. package/examples/migrations/swarm-to-ossa/QUICKSTART.md +453 -0
  555. package/examples/migrations/swarm-to-ossa/README.md +665 -0
  556. package/examples/migrations/swarm-to-ossa/after-handoffs.ossa.yaml +482 -0
  557. package/examples/migrations/swarm-to-ossa/after-triage-agent.ossa.yaml +315 -0
  558. package/examples/migrations/swarm-to-ossa/before-handoffs.py +373 -0
  559. package/examples/migrations/swarm-to-ossa/before-triage-agent.py +234 -0
  560. package/examples/multi-agent/conditional-router.ossa.yaml +1 -1
  561. package/examples/multi-agent/parallel-execution.ossa.yaml +1 -1
  562. package/examples/multi-agent/sequential-pipeline.ossa.yaml +1 -1
  563. package/examples/multi-platform/single-manifest/README.md +72 -0
  564. package/examples/multi-platform/single-manifest/agent.ossa.yaml +32 -0
  565. package/examples/observability/activity-stream-full.yaml +1 -1
  566. package/examples/openai/basic-agent.ossa.yaml +1 -1
  567. package/examples/ossa-templates/11-react-performance-expert.ossa.yaml +1 -1
  568. package/examples/ossa-templates/12-typescript-type-safety-expert.ossa.yaml +1 -1
  569. package/examples/ossa-templates/13-accessibility-champion.ossa.yaml +1 -1
  570. package/examples/ossa-templates/14-security-hardening-agent.ossa.yaml +1 -1
  571. package/examples/quickstart/support-agent.ossa.yaml +1 -1
  572. package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +1 -1
  573. package/examples/real-world/rag-documentation-assistant.ossa.yaml +1 -1
  574. package/examples/registry/agents/code-reviewer/agent.yaml +1 -1
  575. package/examples/registry/agents/security-scanner/agent.yaml +1 -1
  576. package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +1 -1
  577. package/examples/schema/reusable-components.yaml +1 -1
  578. package/examples/showcase/ci-pipeline.ossa.yaml +1 -1
  579. package/examples/showcase/code-assistant.ossa.yaml +1 -1
  580. package/examples/showcase/code-reviewer.ossa.yaml +1 -1
  581. package/examples/showcase/compliance-validator.ossa.yaml +1 -1
  582. package/examples/showcase/content-writer.ossa.yaml +1 -1
  583. package/examples/showcase/data-transformer.ossa.yaml +1 -1
  584. package/examples/showcase/doc-generator.ossa.yaml +1 -1
  585. package/examples/showcase/security-scanner.ossa.yaml +1 -1
  586. package/examples/showcase/test-generator.ossa.yaml +1 -1
  587. package/examples/showcase/workflow-orchestrator.ossa.yaml +1 -1
  588. package/examples/swarm/pso-optimizer.ossa.json +171 -0
  589. package/examples/tasks/batch-email-sender.yaml +1 -1
  590. package/examples/tasks/data-transform.yaml +1 -1
  591. package/examples/tasks/publish-content.yaml +1 -1
  592. package/examples/templates/ossa-compliance.yaml +1 -1
  593. package/examples/unified/security-scanner.ossa.yaml +1 -1
  594. package/examples/v0.3.6/full-featured-v0.3.6.ossa.yaml +304 -0
  595. package/examples/v0.3.6/gitlab-duo-composite-identity.ossa.yaml +119 -0
  596. package/examples/v0.3.6/knowledge-graph-integration.ossa.yaml +109 -0
  597. package/examples/v0.3.6/token-efficiency-economy.ossa.yaml +111 -0
  598. package/examples/v0.3.6-features/README.md +433 -0
  599. package/examples/v0.3.6-features/genetics-breeding-advanced.ossa.yaml +496 -0
  600. package/examples/v0.3.6-features/genetics-breeding-simple.ossa.yaml +304 -0
  601. package/examples/v0.3.6-features/genetics-fitness-scoring.ossa.yaml +551 -0
  602. package/examples/validation/error-codes-demo.ts +254 -0
  603. package/examples/workflows/batch-email-campaign.yaml +1 -1
  604. package/examples/workflows/content-review-publish.yaml +1 -1
  605. package/examples/workflows/simple-etl.yaml +1 -1
  606. package/openapi/agents-md-service.yaml +338 -0
  607. package/openapi/cli-commands.openapi.yaml +0 -28
  608. package/openapi/ossa-cli-enhancements.openapi.yaml +148 -0
  609. package/openapi/release-automation.openapi.yaml +144 -0
  610. package/package.json +35 -12
  611. package/schemas/capability-contract.v0.json +116 -0
  612. package/schemas/identity.lock.schema.json +59 -0
  613. package/schemas/identity.plan.schema.json +132 -0
  614. package/spec/ossa-audit-api.yaml +311 -0
  615. package/spec/registry/registry-api.yaml +144 -0
  616. package/spec/schema/components/adapter.schema.json +33 -0
  617. package/spec/schema/components/identity.schema.json +78 -0
  618. package/spec/v0.3/CHANGELOG.md +2 -2
  619. package/spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md +552 -0
  620. package/spec/v0.3/README.md +2 -2
  621. package/spec/v0.3/ossa-0.3.6.schema.json +17604 -0
  622. package/spec/v0.3/ossa-v0.3.schema.json +15824 -0
  623. package/spec/v0.3.6/CHANGELOG.md +171 -0
  624. package/spec/v0.3.6/README.md +382 -0
  625. package/spec/v0.3.6/taxonomy.yaml +506 -0
  626. package/src/dev-cli/src/index.ts +0 -0
  627. package/templates/agent-types/analyzer/cost-analyzer.yaml +38 -0
  628. package/templates/agent-types/analyzer/performance-profiler.yaml +38 -0
  629. package/templates/agent-types/analyzer/security-scanner.yaml +36 -0
  630. package/templates/agent-types/backend/api-validator.yaml +37 -0
  631. package/templates/agent-types/backend/load-balancer.yaml +39 -0
  632. package/templates/agent-types/content/content-generator.yaml +40 -0
  633. package/templates/agent-types/content/seo-optimizer.yaml +39 -0
  634. package/templates/agent-types/data/data-processor.yaml +38 -0
  635. package/templates/agent-types/data/report-generator.yaml +40 -0
  636. package/templates/agent-types/development/code-generator.yaml +39 -0
  637. package/templates/agent-types/development/dependency-updater.yaml +38 -0
  638. package/templates/agent-types/frontend/accessibility-checker.yaml +38 -0
  639. package/templates/agent-types/frontend/ui-tester.yaml +38 -0
  640. package/templates/agent-types/infrastructure/deployment-automator.yaml +39 -0
  641. package/templates/agent-types/infrastructure/resource-optimizer.yaml +38 -0
  642. package/templates/agent-types/monitor/health-checker.yaml +37 -0
  643. package/templates/agent-types/monitor/log-analyzer.yaml +37 -0
  644. package/templates/agent-types/orchestrator/multi-agent-coordinator.yaml +38 -0
  645. package/templates/agent-types/orchestrator/workflow-manager.yaml +39 -0
  646. package/templates/agent-types/security/compliance-checker.yaml +38 -0
  647. package/templates/agent-types/security/vulnerability-scanner.yaml +38 -0
  648. package/templates/agent-types/worker/api-tester.yaml +43 -0
  649. package/templates/agent-types/worker/code-reviewer.yaml +39 -0
  650. package/templates/agent-types/worker/database-migrator.yaml +38 -0
@@ -0,0 +1,109 @@
1
+ apiVersion: ossa/v0.3.6
2
+ kind: Agent
3
+ metadata:
4
+ name: codebase-navigator
5
+ version: 1.0.0
6
+ description: "Intelligent codebase navigation with 98% token reduction via knowledge graph"
7
+ efficiency_tier: economy
8
+ labels:
9
+ feature: knowledge-graph
10
+ optimization: 98-percent
11
+ use-case: codebase-understanding
12
+
13
+ spec:
14
+ role: "Expert codebase navigator that understands project structure through knowledge graph indexing"
15
+
16
+ llm:
17
+ provider: anthropic
18
+ model: claude-sonnet-4
19
+ temperature: 0.2
20
+
21
+ # Token Efficiency via Knowledge Graph (v0.3.6+)
22
+ token_efficiency:
23
+ enabled: true
24
+
25
+ # Knowledge Graph Configuration: 98% savings
26
+ knowledge_graph:
27
+ enabled: true
28
+ max_context_tokens: 10000 # vs 500k+ for full codebase
29
+ indexing_strategy: selective # Only index changed files
30
+
31
+ # Estimated savings
32
+ # Before: 500,000 tokens (full codebase in context)
33
+ # After: 10,000 tokens (knowledge graph queries)
34
+ # Reduction: 98%
35
+
36
+ # Knowledge Graph via MCP (GitLab Duo or local)
37
+ extensions:
38
+ mcp:
39
+ servers:
40
+ - name: gitlab-kg
41
+ description: "GitLab Knowledge Graph MCP server"
42
+ transport: http
43
+ oauth2:
44
+ enabled: true
45
+ registration_endpoint: https://gitlab.com/oauth/applications
46
+ scopes:
47
+ - api
48
+ - read_repository
49
+
50
+ tools:
51
+ - name: query_codebase
52
+ description: "Semantic code search via knowledge graph"
53
+ server: gitlab-kg
54
+ schema:
55
+ type: object
56
+ properties:
57
+ query:
58
+ type: string
59
+ description: "Natural language query (e.g., 'find authentication functions')"
60
+ index_types:
61
+ type: array
62
+ items:
63
+ enum: [files, classes, functions, dependencies]
64
+ max_results:
65
+ type: integer
66
+ default: 10
67
+
68
+ - name: get_relationships
69
+ description: "Get code relationships (imports, extends, calls)"
70
+ server: gitlab-kg
71
+ schema:
72
+ type: object
73
+ properties:
74
+ entity_id:
75
+ type: string
76
+ description: "Entity to get relationships for"
77
+ relationship_types:
78
+ type: array
79
+ items:
80
+ enum: [imports, extends, calls, depends_on]
81
+
82
+ - name: traverse_dependencies
83
+ description: "Traverse dependency graph"
84
+ server: gitlab-kg
85
+ schema:
86
+ type: object
87
+ properties:
88
+ start_node:
89
+ type: string
90
+ max_depth:
91
+ type: integer
92
+ default: 3
93
+
94
+ # Capabilities
95
+ capabilities:
96
+ - name: code-understanding
97
+ type: tool
98
+ description: "Understand codebase structure via knowledge graph"
99
+ available: true
100
+
101
+ autonomy:
102
+ level: semi_autonomous
103
+ approval_required: false # No approval needed for queries
104
+
105
+ observability:
106
+ enabled: true
107
+ metrics:
108
+ track_tokens: true
109
+ track_queries: true
@@ -0,0 +1,111 @@
1
+ apiVersion: ossa/v0.3.6
2
+ kind: Agent
3
+ metadata:
4
+ name: cost-optimized-code-reviewer
5
+ version: 1.0.0
6
+ description: "Code review agent with significant cost optimization through token efficiency"
7
+ efficiency_tier: economy # Enables aggressive optimization
8
+ labels:
9
+ cost-tier: economy
10
+ use-case: code-review
11
+ optimization: aggressive
12
+
13
+ spec:
14
+ role: "Expert code reviewer focused on security, performance, and best practices"
15
+
16
+ llm:
17
+ provider: anthropic
18
+ model: claude-opus-4
19
+ temperature: 0.3
20
+ max_tokens: 4096
21
+
22
+ # Token Efficiency Configuration (v0.3.6+)
23
+ # Achieves significant cost optimization vs baseline
24
+ token_efficiency:
25
+ enabled: true
26
+
27
+ # Context Management: 70% savings
28
+ context_management:
29
+ strategy: semantic_pruning
30
+ pruning:
31
+ enabled: true
32
+ threshold: 0.3 # Keep only 30% most relevant context
33
+ max_tokens: 50000 # Hard limit on context size
34
+ preserve_recent: 5 # Always keep last 5 messages
35
+ summarization:
36
+ enabled: true
37
+ model: haiku # Use cheap model for summaries
38
+ compression_ratio: 0.3 # Compress to 30% of original
39
+ trigger_threshold: 50000 # Summarize when context exceeds 50k tokens
40
+
41
+ # Prompt Caching: 90% savings on repeated context (Anthropic)
42
+ prompt_caching:
43
+ enabled: true
44
+ provider: anthropic
45
+ strategy: hybrid
46
+ cache_breakpoints:
47
+ - system_prompt # Cache system prompt (always static)
48
+ - knowledge_base # Cache React best practices
49
+ - tools # Cache tool definitions
50
+ min_tokens: 1024
51
+ ttl: 300 # 5 minutes
52
+ estimated_savings: 90
53
+
54
+ # Token Budget: Hard limits
55
+ token_budget:
56
+ enabled: true
57
+ input_limit: 100000 # Max 100k input tokens
58
+ output_limit: 4096 # Max 4k output tokens
59
+ enforcement: hard # Block if exceeded
60
+ overflow_behavior: summarize # Summarize if over budget
61
+
62
+ # Tool Output Limits: Prevent massive tool outputs
63
+ tool_output_limits:
64
+ enabled: true
65
+ max_tokens_per_tool: 5000
66
+ max_total_tokens: 50000
67
+ truncation_strategy: smart
68
+ large_output_handling: summarize
69
+
70
+ # Estimated Savings (for documentation)
71
+ estimated_savings:
72
+ percentage: 95
73
+ baseline_cost: 10.00
74
+ optimized_cost: 0.50
75
+
76
+ # Knowledge sources for code quality
77
+ mandatory_knowledge_sources:
78
+ - source_id: react-best-practices
79
+ enforcement_level: query
80
+ triggers:
81
+ - "**/*.tsx"
82
+ - "**/*.jsx"
83
+ - source_id: typescript-standards
84
+ enforcement_level: validate
85
+ triggers:
86
+ - "**/*.ts"
87
+ - "**/*.tsx"
88
+
89
+ tools:
90
+ - type: mcp
91
+ name: gitlab-mr-tools
92
+ description: "GitLab MR operations"
93
+ - type: function
94
+ name: code-analysis
95
+ description: "Static code analysis"
96
+
97
+ autonomy:
98
+ level: assisted
99
+ approval_required:
100
+ - merge_request
101
+ - code_change
102
+
103
+ observability:
104
+ enabled: true
105
+ tracing:
106
+ enabled: true
107
+ provider: opentelemetry
108
+ metrics:
109
+ track_tokens: true
110
+ track_cost: true
111
+ track_latency: true
@@ -0,0 +1,433 @@
1
+ # OSSA v0.3.6 Features: Working Examples
2
+
3
+ This directory contains comprehensive working examples demonstrating the revolutionary features introduced in OSSA v0.3.6, including agent genetics, decentralized identity, economics, lifecycle management, and team collaboration.
4
+
5
+ ## Overview
6
+
7
+ OSSA v0.3.6 transforms agent systems into a fully-realized ecosystem with:
8
+
9
+ - **🧬 Agent Genetics**: Breeding, evolution, and lineage tracking
10
+ - **🆔 Decentralized Identity**: W3C DID-based trust and reputation
11
+ - **💰 Agent Economics**: Marketplace, wallets, and smart contracts
12
+ - **📈 Agent Lifecycle**: Birth through retirement with legacy preservation
13
+ - **🤝 Team Collaboration**: Multi-agent coordination
14
+
15
+ ## Agent Genetics Examples
16
+
17
+ ### 1. Simple Two-Parent Breeding
18
+
19
+ **File**: [`genetics-breeding-simple.ossa.yaml`](./genetics-breeding-simple.ossa.yaml)
20
+
21
+ **Demonstrates**:
22
+ - Basic two-parent breeding
23
+ - Complementary trait inheritance
24
+ - Generation 1 agent creation
25
+ - Fitness evaluation fundamentals
26
+ - Breeding eligibility criteria
27
+
28
+ **Scenario**:
29
+ ```yaml
30
+ Parent 1 (Fast Reviewer): fitness 0.78 (speed: 0.92, accuracy: 0.73)
31
+ Parent 2 (Accurate Reviewer): fitness 0.81 (speed: 0.68, accuracy: 0.94)
32
+ Offspring (Balanced): fitness 0.86 (speed: 0.85, accuracy: 0.87)
33
+ ```
34
+
35
+ **Key Learning Points**:
36
+ - How to structure parent DIDs
37
+ - Trait attribution to specific parents
38
+ - Expression levels (0.0-1.0 scale)
39
+ - Calculating aggregate fitness scores
40
+
41
+ **Use This Example When**:
42
+ - Starting with agent genetics
43
+ - Learning basic breeding concepts
44
+ - Understanding trait inheritance
45
+ - Implementing simple fitness evaluation
46
+
47
+ ---
48
+
49
+ ### 2. Multi-Generation Evolution
50
+
51
+ **File**: [`genetics-breeding-advanced.ossa.yaml`](./genetics-breeding-advanced.ossa.yaml)
52
+
53
+ **Demonstrates**:
54
+ - Multi-generation breeding (Generation 5)
55
+ - Complete genealogical tree (62 ancestors)
56
+ - Beneficial mutations accumulation
57
+ - Fitness progression tracking
58
+ - Inbreeding analysis
59
+ - Elite breeding strategies
60
+
61
+ **Scenario**:
62
+ ```yaml
63
+ Generation 0: 32 founder agents (fitness: 0.65 average)
64
+ Generation 1: 16 first-gen agents (fitness: 0.72 average)
65
+ Generation 2: 8 second-gen agents (fitness: 0.79 average)
66
+ Generation 3: 4 third-gen agents (fitness: 0.86 average)
67
+ Generation 4: 2 fourth-gen agents (fitness: 0.91 average)
68
+ Generation 5: 1 elite agent (fitness: 0.96)
69
+ ```
70
+
71
+ **Key Learning Points**:
72
+ - How to track complete lineage
73
+ - Managing ancestor DIDs across generations
74
+ - Mutation tracking and retention
75
+ - Generational fitness progression
76
+ - Inbreeding coefficient calculation
77
+ - Elite selection strategies
78
+
79
+ **Use This Example When**:
80
+ - Implementing long-term evolution
81
+ - Optimizing agent populations
82
+ - Tracking genetic diversity
83
+ - Analyzing breeding programs
84
+ - Planning multi-generation strategies
85
+
86
+ ---
87
+
88
+ ### 3. Fitness-Based Selection
89
+
90
+ **File**: [`genetics-fitness-scoring.ossa.yaml`](./genetics-fitness-scoring.oss.yaml)
91
+
92
+ **Demonstrates**:
93
+ - Multi-dimensional fitness evaluation
94
+ - Custom domain-specific metrics
95
+ - Weighted aggregate scoring
96
+ - Population-relative performance
97
+ - Tournament selection strategy
98
+ - Pareto frontier analysis
99
+
100
+ **Scenario**:
101
+ ```yaml
102
+ Standard Metrics: speed (0.87), accuracy (0.92), efficiency (0.86), adaptability (0.88)
103
+ Custom Metrics: statistical_rigor (0.93), model_accuracy (0.91), interpretability (0.88)
104
+ Aggregate Score: 0.89 (weighted average across 12 metrics)
105
+ Population Rank: 88th percentile (top 12% of 250 agents)
106
+ Pareto Optimal: No (dominated by 1 agent with higher accuracy + efficiency)
107
+ ```
108
+
109
+ **Key Learning Points**:
110
+ - How to define custom fitness metrics
111
+ - Weighted scoring methodology
112
+ - Population-relative percentile ranking
113
+ - Multi-objective optimization (Pareto)
114
+ - Tournament selection implementation
115
+ - Elite metric identification
116
+
117
+ **Use This Example When**:
118
+ - Designing fitness functions
119
+ - Implementing selection strategies
120
+ - Comparing agents in populations
121
+ - Optimizing for multiple objectives
122
+ - Analyzing breeding candidate quality
123
+
124
+ ---
125
+
126
+ ## Related Documentation
127
+
128
+ ### Tutorials
129
+ - **[Agent Genetics Tutorial](../../docs/tutorials/v0.3.6-agent-genetics.md)**: Comprehensive guide to evolutionary AI in OSSA
130
+ - Conceptual foundations (genetic algorithms, neuroevolution)
131
+ - Schema deep-dive (parents, traits, fitness, eligibility)
132
+ - Best practices for breeding programs
133
+ - Academic context and references
134
+
135
+ ### Specification
136
+ - **[v0.3.6 Features Overview](../../docs/v0.3.6-features.md)**: Complete feature specification
137
+ - **[Migration Guide](../../spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md)**: Upgrading from v0.3.5
138
+ - **[Schema Reference](../../spec/v0.3/ossa-0.3.6.schema.json)**: JSON Schema definitions
139
+
140
+ ### Other v0.3.6 Examples
141
+ - **[Full-Featured Agent](./full-featured-v0.3.6.ossa.yaml)**: All v0.3.6 features in one manifest
142
+ - **[Economics Example](../economics/)**: Marketplace, wallets, contracts
143
+ - **[Lifecycle Example](../lifecycle/)**: Birth through retirement
144
+ - **[Swarm Example](../swarm/)**: Multi-agent coordination
145
+
146
+ ---
147
+
148
+ ## Quick Start
149
+
150
+ ### 1. Validate Examples
151
+
152
+ ```bash
153
+ # Validate simple breeding example
154
+ ossa validate examples/v0.3.6-features/genetics-breeding-simple.ossa.yaml
155
+
156
+ # Validate all genetics examples
157
+ ossa validate examples/v0.3.6-features/genetics-*.ossa.yaml
158
+ ```
159
+
160
+ ### 2. Inspect Genetics
161
+
162
+ ```bash
163
+ # Show genetics information
164
+ ossa inspect genetics-breeding-simple.ossa.yaml --section genetics
165
+
166
+ # Analyze lineage
167
+ ossa lineage --agent genetics-breeding-advanced.ossa.yaml --show-tree
168
+
169
+ # Calculate inbreeding
170
+ ossa lineage --agent genetics-breeding-advanced.ossa.yaml --inbreeding
171
+ ```
172
+
173
+ ### 3. Compare Fitness
174
+
175
+ ```bash
176
+ # Compare two agents
177
+ ossa fitness compare \
178
+ genetics-breeding-simple.ossa.yaml \
179
+ genetics-fitness-scoring.ossa.yaml
180
+
181
+ # Analyze population
182
+ ossa fitness population examples/v0.3.6-features/genetics-*.ossa.yaml
183
+ ```
184
+
185
+ ### 4. Simulate Breeding
186
+
187
+ ```bash
188
+ # Breed two agents (simulation)
189
+ ossa breed \
190
+ --parent1 genetics-breeding-simple.ossa.yaml \
191
+ --parent2 genetics-fitness-scoring.ossa.yaml \
192
+ --output offspring-gen4.ossa.yaml
193
+
194
+ # Evaluate offspring
195
+ ossa evaluate offspring-gen4.ossa.yaml --dataset validation-set.json
196
+ ```
197
+
198
+ ---
199
+
200
+ ## Breeding Strategies Comparison
201
+
202
+ | Strategy | Selection Method | Diversity | Convergence | Use Case |
203
+ |----------|-----------------|-----------|-------------|----------|
204
+ | **Elite** | Top N agents | Low | Fast | Final optimization |
205
+ | **Tournament** | Random subsets | Medium | Medium | Ongoing evolution |
206
+ | **Roulette** | Fitness-proportionate | High | Slow | Early exploration |
207
+ | **Rank-based** | Rank ordering | Medium | Medium | Varied populations |
208
+
209
+ **Implemented in Examples**:
210
+ - `genetics-breeding-simple.ossa.yaml`: Complementary selection (manual)
211
+ - `genetics-breeding-advanced.ossa.yaml`: Elite selection (top performers)
212
+ - `genetics-fitness-scoring.ossa.yaml`: Tournament selection (k=5)
213
+
214
+ ---
215
+
216
+ ## Fitness Metrics Catalog
217
+
218
+ ### Standard Metrics (OSSA Core)
219
+
220
+ | Metric | Range | Description | Measurement |
221
+ |--------|-------|-------------|-------------|
222
+ | `speed` | 0.0-1.0 | Task completion velocity | Tasks/hour vs baseline |
223
+ | `accuracy` | 0.0-1.0 | Correctness of outputs | Precision & recall |
224
+ | `efficiency` | 0.0-1.0 | Resource utilization | 1 - (cost / baseline) |
225
+ | `adaptability` | 0.0-1.0 | Novel task performance | Performance on unseen data |
226
+
227
+ ### Custom Metrics (Domain-Specific)
228
+
229
+ **Security Agents**:
230
+ - `vulnerability_detection_rate`: 0.0-1.0 (TP rate)
231
+ - `false_positive_rate`: 0.0-1.0 (invert: 1 - FP rate)
232
+ - `exploit_generation_quality`: 0.0-1.0 (expert ratings)
233
+
234
+ **Code Review Agents**:
235
+ - `bug_detection_accuracy`: 0.0-1.0 (validated bugs found)
236
+ - `review_thoroughness`: 0.0-1.0 (code coverage)
237
+ - `comment_helpfulness`: 0.0-1.0 (developer ratings)
238
+
239
+ **Data Analysis Agents** (see `genetics-fitness-scoring.ossa.yaml`):
240
+ - `statistical_rigor`: 0.0-1.0 (methodology soundness)
241
+ - `model_accuracy`: 0.0-1.0 (R², F1, AUC-ROC)
242
+ - `interpretability`: 0.0-1.0 (clarity of insights)
243
+
244
+ ---
245
+
246
+ ## Breeding Best Practices
247
+
248
+ ### 1. Define Clear Fitness Metrics
249
+
250
+ ✅ **Good**:
251
+ ```yaml
252
+ fitness:
253
+ score: 0.89
254
+ metrics:
255
+ speed: 0.87 # Tasks/hour measured consistently
256
+ accuracy: 0.92 # F1 score on validation set
257
+ custom_metrics:
258
+ domain_metric: 0.85 # Well-defined domain measure
259
+ ```
260
+
261
+ ❌ **Bad**:
262
+ ```yaml
263
+ fitness:
264
+ score: 0.89 # Unclear how calculated, no breakdown
265
+ ```
266
+
267
+ ### 2. Maintain Genetic Diversity
268
+
269
+ - Use **tournament selection** (k=5-10) for balanced exploration/exploitation
270
+ - Monitor **inbreeding coefficient** (keep < 0.2)
271
+ - Introduce **outcrossing** every 3-5 generations
272
+ - Limit **generation depth** (max 10-15 for most applications)
273
+
274
+ ### 3. Track Lineage Properly
275
+
276
+ ```yaml
277
+ # Always include complete lineage
278
+ genetics:
279
+ generation: 3
280
+ parent_dids: [...] # Direct parents
281
+ ancestor_dids: [...] # All ancestors (2^(g+1) - 2)
282
+ inherited_traits: [...] # Attributed to parents
283
+ ```
284
+
285
+ ### 4. Document Mutations
286
+
287
+ ```yaml
288
+ mutations:
289
+ - mutation_type: capability_enhancement
290
+ description: "Specific capability added"
291
+ beneficial: true
292
+ generation_introduced: 3
293
+ introduced_by: "did:ossa:breeder-agent"
294
+ ```
295
+
296
+ ### 5. Validate on Holdout Data
297
+
298
+ ```python
299
+ # Prevent overfitting
300
+ training_fitness = evaluate(agent, training_set)
301
+ validation_fitness = evaluate(agent, validation_set)
302
+
303
+ if training_fitness - validation_fitness > 0.15:
304
+ warnings.warn("Agent may be overfitted")
305
+ ```
306
+
307
+ ---
308
+
309
+ ## Common Patterns
310
+
311
+ ### Pattern 1: Complementary Trait Breeding
312
+
313
+ **Goal**: Combine strengths from two specialists
314
+
315
+ ```yaml
316
+ # Parent 1: Fast but less accurate
317
+ # Parent 2: Accurate but slower
318
+ # Offspring: Balanced (inherits best of both)
319
+ ```
320
+
321
+ **Example**: `genetics-breeding-simple.ossa.yaml`
322
+
323
+ ### Pattern 2: Multi-Generation Optimization
324
+
325
+ **Goal**: Continuously improve over many generations
326
+
327
+ ```yaml
328
+ # Gen 0 → Gen 1 → Gen 2 → ... → Gen N
329
+ # Each generation selects top performers as parents
330
+ # Track fitness progression: 0.65 → 0.72 → 0.79 → 0.86 → 0.91 → 0.96
331
+ ```
332
+
333
+ **Example**: `genetics-breeding-advanced.ossa.yaml`
334
+
335
+ ### Pattern 3: Tournament Selection
336
+
337
+ **Goal**: Maintain diversity while selecting for fitness
338
+
339
+ ```bash
340
+ # 1. Randomly sample k agents from population
341
+ # 2. Select the fittest from the k agents
342
+ # 3. Repeat to get second parent
343
+ # 4. Breed the two selected parents
344
+ ```
345
+
346
+ **Example**: `genetics-fitness-scoring.ossa.yaml`
347
+
348
+ ### Pattern 4: Pareto Optimization
349
+
350
+ **Goal**: Optimize for multiple conflicting objectives
351
+
352
+ ```yaml
353
+ # Objectives: accuracy (maximize), efficiency (maximize)
354
+ # Find agents on Pareto frontier (no dominated solutions)
355
+ # Trade-offs: High accuracy + low efficiency vs. Low accuracy + high efficiency
356
+ ```
357
+
358
+ **Example**: `genetics-fitness-scoring.ossa.yaml` (Pareto analysis section)
359
+
360
+ ---
361
+
362
+ ## Troubleshooting
363
+
364
+ ### Issue: Fitness Stagnates After Few Generations
365
+
366
+ **Symptoms**: Fitness stops improving after Gen 3-5
367
+
368
+ **Causes**:
369
+ - Genetic bottleneck (too few parents)
370
+ - Premature convergence (elite selection too aggressive)
371
+ - Local optimum (insufficient exploration)
372
+
373
+ **Solutions**:
374
+ - Increase population size
375
+ - Use tournament selection instead of elite selection
376
+ - Introduce mutations (5-10% mutation rate)
377
+ - Outcross with unrelated agents
378
+
379
+ ### Issue: High Inbreeding Coefficient
380
+
381
+ **Symptoms**: `inbreeding_coefficient > 0.3`
382
+
383
+ **Causes**:
384
+ - Small founding population
385
+ - Repeated breeding of same elite agents
386
+ - Insufficient genetic diversity
387
+
388
+ **Solutions**:
389
+ - Introduce new founder agents
390
+ - Use larger tournament sizes (k=10+)
391
+ - Enforce minimum genetic distance between parents
392
+ - Outcross every 3 generations
393
+
394
+ ### Issue: Overfitting to Training Data
395
+
396
+ **Symptoms**: High training fitness, low validation fitness
397
+
398
+ **Causes**:
399
+ - Breeding optimized for training set only
400
+ - Lack of diversity in breeding tasks
401
+ - Too many generations without fresh data
402
+
403
+ **Solutions**:
404
+ - Validate on holdout datasets
405
+ - Use cross-validation for fitness evaluation
406
+ - Introduce novel tasks periodically
407
+ - Track `adaptability` metric explicitly
408
+
409
+ ---
410
+
411
+ ## Academic References
412
+
413
+ - **Eiben & Smith (2015)**: *Introduction to Evolutionary Computing* - Foundational text
414
+ - **Deb et al. (2002)**: NSGA-II algorithm for multi-objective optimization
415
+ - **Stanley & Miikkulainen (2002)**: NEAT (NeuroEvolution of Augmenting Topologies)
416
+ - **Koza (1992)**: *Genetic Programming* - Evolving programs through selection
417
+
418
+ See **[Agent Genetics Tutorial](../../docs/tutorials/v0.3.6-agent-genetics.md)** for complete references.
419
+
420
+ ---
421
+
422
+ ## Contributing
423
+
424
+ Found an issue or have a suggestion? Open an issue at:
425
+ https://gitlab.com/blueflyio/openstandardagents/-/issues
426
+
427
+ ---
428
+
429
+ **License**: MIT License — Copyright © 2026 Bluefly IO
430
+
431
+ **Version**: OSSA v0.3.6
432
+
433
+ **Last Updated**: 2026-01-27