@bluefly/openstandardagents 0.5.1 → 0.5.3

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 (2043) hide show
  1. package/.well-known/agent-card.json +28 -0
  2. package/.well-known/ossa.json +22 -0
  3. package/CHANGELOG.md +44 -26
  4. package/README.md +41 -697
  5. package/docs/README.md +59 -0
  6. package/docs/migration-v0.5.2.md +18 -0
  7. package/docs/spec.md +41 -0
  8. package/package.json +55 -371
  9. package/packages/cli/dist/cli.d.ts +1 -0
  10. package/packages/cli/dist/cli.js +128 -0
  11. package/packages/cli/package.json +25 -0
  12. package/packages/discovery/dist/index.d.ts +10 -0
  13. package/packages/discovery/dist/index.js +20 -0
  14. package/packages/discovery/package.json +25 -0
  15. package/packages/identity/dist/index.d.ts +3 -0
  16. package/packages/identity/dist/index.js +11 -0
  17. package/packages/identity/package.json +26 -0
  18. package/packages/policy/dist/index.d.ts +62 -0
  19. package/packages/policy/dist/index.js +17 -0
  20. package/packages/policy/package.json +22 -0
  21. package/packages/schema/package.json +14 -0
  22. package/packages/validator/dist/index.d.ts +13 -0
  23. package/packages/validator/dist/index.js +90 -0
  24. package/packages/validator/package.json +28 -0
  25. package/spec/reference/compliance-engine.openapi.yaml +84 -0
  26. package/spec/reference/reference-agents/advisor-pattern-example/manifest.ossa.yaml +57 -0
  27. package/spec/reference/reference-agents/compliance-auditor/manifest.ossa.yaml +0 -6
  28. package/spec/reference/reference-agents/doc-agent/manifest.ossa.yaml +1 -1
  29. package/spec/reference/reference-agents/mr-reviewer/manifest.ossa.yaml +1 -1
  30. package/spec/reference/reference-agents/mr-reviewer/system-prompt.md +1 -1
  31. package/spec/reference/reference-agents/ossa-validator-v0.3/manifest.ossa.yaml +1 -4
  32. package/spec/v0.5/agent-builder-openapi.yaml +1 -1
  33. package/spec/v0.5/agent-card.schema.json +2 -2
  34. package/spec/v0.5/agent.schema.json +289 -8
  35. package/spec/v0.5/conformance/profiles/baseline.json +7 -1
  36. package/spec/v0.5/extensions/a2a/a2a.schema.json +1 -1
  37. package/spec/v0.5/extensions/ag2/README.md +38 -0
  38. package/spec/v0.5/extensions/cognition/README.md +38 -0
  39. package/spec/v0.5/extensions/crewai/README.md +76 -0
  40. package/spec/v0.5/extensions/drupal/README.md +39 -0
  41. package/spec/v0.5/extensions/duadp/duadp-export-bundle.schema.json +47 -0
  42. package/spec/v0.5/extensions/duadp/duadp-validation-report.schema.json +54 -0
  43. package/spec/v0.5/extensions/economics/README.md +39 -0
  44. package/spec/v0.5/extensions/emotion.schema.json +47 -0
  45. package/spec/v0.5/extensions/evals/README.md +49 -0
  46. package/spec/v0.5/extensions/governance/README.md +61 -0
  47. package/spec/v0.5/extensions/governance/governance.schema.json +117 -0
  48. package/spec/v0.5/extensions/identity/README.md +50 -0
  49. package/spec/v0.5/extensions/kagent/kagent.schema.json +51 -0
  50. package/spec/v0.5/extensions/langchain/README.md +79 -0
  51. package/spec/v0.5/extensions/langgraph/README.md +97 -0
  52. package/spec/v0.5/extensions/memory/README.md +92 -0
  53. package/spec/v0.5/extensions/memory/governed-memory.schema.json +108 -0
  54. package/spec/v0.5/extensions/memory/memory-contract.schema.json +240 -0
  55. package/spec/v0.5/extensions/team/README.md +51 -0
  56. package/spec/v0.5/extensions/token-efficiency/README.md +55 -0
  57. package/spec/v0.5/invocation.openapi.yaml +120 -0
  58. package/spec/v0.5/memory-contract.schema.json +300 -0
  59. package/spec/v0.5/policy-binding.schema.json +38 -0
  60. package/spec/v0.5/registry.schema.json +31 -0
  61. package/spec/v0.5/role.schema.json +173 -0
  62. package/spec/v0.5/workflow.schema.json +53 -0
  63. package/.version.json +0 -7
  64. package/bin/ossa +0 -11
  65. package/bin/ossa-dev +0 -8
  66. package/bin/ossa-validate-all +0 -55
  67. package/bin/ossa-version +0 -23
  68. package/bin/postinstall +0 -62
  69. package/dist/.version.json +0 -7
  70. package/dist/adapters/a2a/a2a-protocol.d.ts +0 -398
  71. package/dist/adapters/a2a/a2a-protocol.js +0 -259
  72. package/dist/adapters/a2a/a2a-tool.d.ts +0 -110
  73. package/dist/adapters/a2a/a2a-tool.js +0 -351
  74. package/dist/adapters/a2a/agent-mesh.d.ts +0 -195
  75. package/dist/adapters/a2a/agent-mesh.js +0 -347
  76. package/dist/adapters/a2a/delegation.d.ts +0 -232
  77. package/dist/adapters/a2a/delegation.js +0 -236
  78. package/dist/adapters/a2a/index.d.ts +0 -18
  79. package/dist/adapters/a2a/index.js +0 -24
  80. package/dist/adapters/a2a/mcp-integration.d.ts +0 -259
  81. package/dist/adapters/a2a/mcp-integration.js +0 -331
  82. package/dist/adapters/a2a/mcp-transport.d.ts +0 -124
  83. package/dist/adapters/a2a/mcp-transport.js +0 -302
  84. package/dist/adapters/a2a/swarm-orchestration.d.ts +0 -278
  85. package/dist/adapters/a2a/swarm-orchestration.js +0 -322
  86. package/dist/adapters/agent-skills/exporter.d.ts +0 -98
  87. package/dist/adapters/agent-skills/exporter.js +0 -460
  88. package/dist/adapters/agent-skills/index.d.ts +0 -7
  89. package/dist/adapters/agent-skills/index.js +0 -6
  90. package/dist/adapters/anthropic/claude-optimizations.d.ts +0 -44
  91. package/dist/adapters/anthropic/claude-optimizations.js +0 -187
  92. package/dist/adapters/anthropic/client.d.ts +0 -56
  93. package/dist/adapters/anthropic/client.js +0 -105
  94. package/dist/adapters/anthropic/config-adapter.d.ts +0 -22
  95. package/dist/adapters/anthropic/config-adapter.js +0 -48
  96. package/dist/adapters/anthropic/config.d.ts +0 -149
  97. package/dist/adapters/anthropic/config.js +0 -157
  98. package/dist/adapters/anthropic/index.d.ts +0 -19
  99. package/dist/adapters/anthropic/index.js +0 -20
  100. package/dist/adapters/anthropic/messages.d.ts +0 -93
  101. package/dist/adapters/anthropic/messages.js +0 -285
  102. package/dist/adapters/anthropic/tools.d.ts +0 -111
  103. package/dist/adapters/anthropic/tools.js +0 -272
  104. package/dist/adapters/autogen/config-adapter.d.ts +0 -22
  105. package/dist/adapters/autogen/config-adapter.js +0 -72
  106. package/dist/adapters/base/adapter.interface.d.ts +0 -327
  107. package/dist/adapters/base/adapter.interface.js +0 -138
  108. package/dist/adapters/base/base-exporter.d.ts +0 -108
  109. package/dist/adapters/base/base-exporter.js +0 -165
  110. package/dist/adapters/base/common-file-generator.d.ts +0 -217
  111. package/dist/adapters/base/common-file-generator.js +0 -719
  112. package/dist/adapters/base/index.d.ts +0 -23
  113. package/dist/adapters/base/index.js +0 -29
  114. package/dist/adapters/base/manifest-validator.d.ts +0 -82
  115. package/dist/adapters/base/manifest-validator.js +0 -264
  116. package/dist/adapters/base/perfect-agent-utils.d.ts +0 -29
  117. package/dist/adapters/base/perfect-agent-utils.js +0 -327
  118. package/dist/adapters/base/template-engine.d.ts +0 -52
  119. package/dist/adapters/base/template-engine.js +0 -157
  120. package/dist/adapters/base/tool-params.d.ts +0 -42
  121. package/dist/adapters/base/tool-params.js +0 -123
  122. package/dist/adapters/browser/browser-exporter.d.ts +0 -26
  123. package/dist/adapters/browser/browser-exporter.js +0 -73
  124. package/dist/adapters/browser/browser-runner.d.ts +0 -23
  125. package/dist/adapters/browser/browser-runner.js +0 -46
  126. package/dist/adapters/browser/index.d.ts +0 -9
  127. package/dist/adapters/browser/index.js +0 -9
  128. package/dist/adapters/claude-agent-sdk/adapter.d.ts +0 -58
  129. package/dist/adapters/claude-agent-sdk/adapter.js +0 -705
  130. package/dist/adapters/claude-agent-sdk/index.d.ts +0 -9
  131. package/dist/adapters/claude-agent-sdk/index.js +0 -8
  132. package/dist/adapters/claude-agent-sdk/types.d.ts +0 -135
  133. package/dist/adapters/claude-agent-sdk/types.js +0 -14
  134. package/dist/adapters/claude-code/adapter.d.ts +0 -64
  135. package/dist/adapters/claude-code/adapter.js +0 -341
  136. package/dist/adapters/claude-code/types.d.ts +0 -154
  137. package/dist/adapters/claude-code/types.js +0 -6
  138. package/dist/adapters/crewai/adapter.d.ts +0 -109
  139. package/dist/adapters/crewai/adapter.js +0 -1769
  140. package/dist/adapters/crewai/converter.d.ts +0 -25
  141. package/dist/adapters/crewai/converter.js +0 -141
  142. package/dist/adapters/crewai/index.d.ts +0 -7
  143. package/dist/adapters/crewai/index.js +0 -6
  144. package/dist/adapters/crewai/types.d.ts +0 -29
  145. package/dist/adapters/crewai/types.js +0 -5
  146. package/dist/adapters/crewai-adapter.d.ts +0 -57
  147. package/dist/adapters/crewai-adapter.js +0 -166
  148. package/dist/adapters/cursor/adapter.d.ts +0 -75
  149. package/dist/adapters/cursor/adapter.js +0 -478
  150. package/dist/adapters/cursor/types.d.ts +0 -221
  151. package/dist/adapters/cursor/types.js +0 -6
  152. package/dist/adapters/docker/config-adapter.d.ts +0 -22
  153. package/dist/adapters/docker/config-adapter.js +0 -54
  154. package/dist/adapters/docker/docker-exporter.d.ts +0 -38
  155. package/dist/adapters/docker/docker-exporter.js +0 -648
  156. package/dist/adapters/docker/generators.d.ts +0 -85
  157. package/dist/adapters/docker/generators.js +0 -783
  158. package/dist/adapters/docker/index.d.ts +0 -10
  159. package/dist/adapters/docker/index.js +0 -9
  160. package/dist/adapters/docker/openclaw-bridge.d.ts +0 -57
  161. package/dist/adapters/docker/openclaw-bridge.js +0 -173
  162. package/dist/adapters/docker/types.d.ts +0 -87
  163. package/dist/adapters/docker/types.js +0 -5
  164. package/dist/adapters/drupal/adapter.d.ts +0 -59
  165. package/dist/adapters/drupal/adapter.js +0 -430
  166. package/dist/adapters/drupal/drupal-utils.d.ts +0 -213
  167. package/dist/adapters/drupal/drupal-utils.js +0 -313
  168. package/dist/adapters/drupal/generator.d.ts +0 -303
  169. package/dist/adapters/drupal/generator.js +0 -2628
  170. package/dist/adapters/drupal/index.d.ts +0 -114
  171. package/dist/adapters/drupal/index.js +0 -301
  172. package/dist/adapters/drupal/manifest-exporter.d.ts +0 -115
  173. package/dist/adapters/drupal/manifest-exporter.js +0 -584
  174. package/dist/adapters/drupal/twig-renderer.d.ts +0 -23
  175. package/dist/adapters/drupal/twig-renderer.js +0 -99
  176. package/dist/adapters/fusioninventory/config-adapter.d.ts +0 -22
  177. package/dist/adapters/fusioninventory/config-adapter.js +0 -145
  178. package/dist/adapters/fusioninventory/types.d.ts +0 -40
  179. package/dist/adapters/fusioninventory/types.js +0 -29
  180. package/dist/adapters/gitlab/agent-generator.d.ts +0 -103
  181. package/dist/adapters/gitlab/agent-generator.js +0 -909
  182. package/dist/adapters/gitlab/converter.d.ts +0 -35
  183. package/dist/adapters/gitlab/converter.js +0 -113
  184. package/dist/adapters/gitlab/external-agent-generator.d.ts +0 -70
  185. package/dist/adapters/gitlab/external-agent-generator.js +0 -347
  186. package/dist/adapters/gitlab/flow-generator.d.ts +0 -73
  187. package/dist/adapters/gitlab/flow-generator.js +0 -710
  188. package/dist/adapters/gitlab/index.d.ts +0 -15
  189. package/dist/adapters/gitlab/index.js +0 -11
  190. package/dist/adapters/gitlab/package-generator.d.ts +0 -180
  191. package/dist/adapters/gitlab/package-generator.js +0 -2400
  192. package/dist/adapters/gitlab/router-generator.d.ts +0 -113
  193. package/dist/adapters/gitlab/router-generator.js +0 -545
  194. package/dist/adapters/gitlab/trigger-generator.d.ts +0 -154
  195. package/dist/adapters/gitlab/trigger-generator.js +0 -279
  196. package/dist/adapters/gitlab/types.d.ts +0 -120
  197. package/dist/adapters/gitlab/types.js +0 -5
  198. package/dist/adapters/gitlab-duo/adapter.d.ts +0 -72
  199. package/dist/adapters/gitlab-duo/adapter.js +0 -350
  200. package/dist/adapters/index.d.ts +0 -14
  201. package/dist/adapters/index.js +0 -73
  202. package/dist/adapters/kubernetes/config-adapter.d.ts +0 -22
  203. package/dist/adapters/kubernetes/config-adapter.js +0 -112
  204. package/dist/adapters/kubernetes/generator.d.ts +0 -117
  205. package/dist/adapters/kubernetes/generator.js +0 -1386
  206. package/dist/adapters/kubernetes/index.d.ts +0 -7
  207. package/dist/adapters/kubernetes/index.js +0 -6
  208. package/dist/adapters/kubernetes/kagent-crd-generator.d.ts +0 -72
  209. package/dist/adapters/kubernetes/kagent-crd-generator.js +0 -237
  210. package/dist/adapters/kubernetes/types.d.ts +0 -62
  211. package/dist/adapters/kubernetes/types.js +0 -5
  212. package/dist/adapters/langchain/adapter.d.ts +0 -46
  213. package/dist/adapters/langchain/adapter.js +0 -289
  214. package/dist/adapters/langchain/converter.d.ts +0 -21
  215. package/dist/adapters/langchain/converter.js +0 -153
  216. package/dist/adapters/langchain/index.d.ts +0 -7
  217. package/dist/adapters/langchain/index.js +0 -6
  218. package/dist/adapters/langchain/types.d.ts +0 -27
  219. package/dist/adapters/langchain/types.js +0 -5
  220. package/dist/adapters/langchain-adapter.d.ts +0 -45
  221. package/dist/adapters/langchain-adapter.js +0 -132
  222. package/dist/adapters/langflow/platform-adapter.d.ts +0 -23
  223. package/dist/adapters/langflow/platform-adapter.js +0 -103
  224. package/dist/adapters/langflow-adapter.d.ts +0 -52
  225. package/dist/adapters/langflow-adapter.js +0 -247
  226. package/dist/adapters/langfuse.adapter.d.ts +0 -30
  227. package/dist/adapters/langfuse.adapter.js +0 -65
  228. package/dist/adapters/langsmith.adapter.d.ts +0 -29
  229. package/dist/adapters/langsmith.adapter.js +0 -62
  230. package/dist/adapters/mcp/adapter.d.ts +0 -49
  231. package/dist/adapters/mcp/adapter.js +0 -336
  232. package/dist/adapters/mcp/converter.d.ts +0 -32
  233. package/dist/adapters/mcp/converter.js +0 -343
  234. package/dist/adapters/mobile-agent/adapter.d.ts +0 -63
  235. package/dist/adapters/mobile-agent/adapter.js +0 -678
  236. package/dist/adapters/n8n/converter.d.ts +0 -17
  237. package/dist/adapters/n8n/converter.js +0 -77
  238. package/dist/adapters/n8n/index.d.ts +0 -7
  239. package/dist/adapters/n8n/index.js +0 -6
  240. package/dist/adapters/n8n/types.d.ts +0 -23
  241. package/dist/adapters/n8n/types.js +0 -5
  242. package/dist/adapters/npm/adapter.d.ts +0 -41
  243. package/dist/adapters/npm/adapter.js +0 -301
  244. package/dist/adapters/npm/converter.d.ts +0 -41
  245. package/dist/adapters/npm/converter.js +0 -357
  246. package/dist/adapters/npm/package-generator.d.ts +0 -93
  247. package/dist/adapters/npm/package-generator.js +0 -240
  248. package/dist/adapters/npm/type-aware-dependencies.d.ts +0 -19
  249. package/dist/adapters/npm/type-aware-dependencies.js +0 -160
  250. package/dist/adapters/npm/types.d.ts +0 -116
  251. package/dist/adapters/npm/types.js +0 -6
  252. package/dist/adapters/openai-agents/adapter.d.ts +0 -31
  253. package/dist/adapters/openai-agents/adapter.js +0 -346
  254. package/dist/adapters/openai-agents/config-adapter.d.ts +0 -25
  255. package/dist/adapters/openai-agents/config-adapter.js +0 -60
  256. package/dist/adapters/openai-agents/index.d.ts +0 -10
  257. package/dist/adapters/openai-agents/index.js +0 -10
  258. package/dist/adapters/openapi-adapter.d.ts +0 -93
  259. package/dist/adapters/openapi-adapter.js +0 -317
  260. package/dist/adapters/opentelemetry.adapter.d.ts +0 -142
  261. package/dist/adapters/opentelemetry.adapter.js +0 -375
  262. package/dist/adapters/phoenix.adapter.d.ts +0 -28
  263. package/dist/adapters/phoenix.adapter.js +0 -65
  264. package/dist/adapters/registry/platform-registry.d.ts +0 -69
  265. package/dist/adapters/registry/platform-registry.js +0 -94
  266. package/dist/adapters/semantic-kernel/config-adapter.d.ts +0 -22
  267. package/dist/adapters/semantic-kernel/config-adapter.js +0 -64
  268. package/dist/adapters/symfony/index.d.ts +0 -163
  269. package/dist/adapters/symfony/index.js +0 -272
  270. package/dist/adapters/symfony/platform-adapter.d.ts +0 -31
  271. package/dist/adapters/symfony/platform-adapter.js +0 -317
  272. package/dist/adapters/temporal/converter.d.ts +0 -17
  273. package/dist/adapters/temporal/converter.js +0 -96
  274. package/dist/adapters/temporal/index.d.ts +0 -7
  275. package/dist/adapters/temporal/index.js +0 -6
  276. package/dist/adapters/temporal/types.d.ts +0 -23
  277. package/dist/adapters/temporal/types.js +0 -5
  278. package/dist/adapters/warp/adapter.d.ts +0 -52
  279. package/dist/adapters/warp/adapter.js +0 -386
  280. package/dist/adapters/warp/types.d.ts +0 -140
  281. package/dist/adapters/warp/types.js +0 -6
  282. package/dist/api/index.d.ts +0 -13
  283. package/dist/api/index.js +0 -45
  284. package/dist/api/middleware/cors.d.ts +0 -6
  285. package/dist/api/middleware/cors.js +0 -17
  286. package/dist/api/middleware/error-handler.d.ts +0 -6
  287. package/dist/api/middleware/error-handler.js +0 -32
  288. package/dist/api/middleware/request-id.d.ts +0 -6
  289. package/dist/api/middleware/request-id.js +0 -12
  290. package/dist/api/middleware/validate.d.ts +0 -8
  291. package/dist/api/middleware/validate.js +0 -38
  292. package/dist/api/routes/agents-md.router.d.ts +0 -7
  293. package/dist/api/routes/agents-md.router.js +0 -93
  294. package/dist/api/routes/convert.router.d.ts +0 -6
  295. package/dist/api/routes/convert.router.js +0 -42
  296. package/dist/api/routes/export.router.d.ts +0 -6
  297. package/dist/api/routes/export.router.js +0 -44
  298. package/dist/api/routes/health.router.d.ts +0 -6
  299. package/dist/api/routes/health.router.js +0 -20
  300. package/dist/api/routes/manifests.router.d.ts +0 -6
  301. package/dist/api/routes/manifests.router.js +0 -128
  302. package/dist/api/routes/mcp.router.d.ts +0 -8
  303. package/dist/api/routes/mcp.router.js +0 -68
  304. package/dist/api/routes/skills.router.d.ts +0 -6
  305. package/dist/api/routes/skills.router.js +0 -53
  306. package/dist/api/routes/validate.router.d.ts +0 -7
  307. package/dist/api/routes/validate.router.js +0 -46
  308. package/dist/api/routes/version.router.d.ts +0 -6
  309. package/dist/api/routes/version.router.js +0 -28
  310. package/dist/api/routes/wizard.router.d.ts +0 -6
  311. package/dist/api/routes/wizard.router.js +0 -110
  312. package/dist/api/routes/workspace.router.d.ts +0 -6
  313. package/dist/api/routes/workspace.router.js +0 -52
  314. package/dist/api/server.d.ts +0 -10
  315. package/dist/api/server.js +0 -21
  316. package/dist/bot/agent-architecture_validator.d.ts +0 -8
  317. package/dist/bot/agent-architecture_validator.js +0 -15
  318. package/dist/bot/agent-ci_pipeline.d.ts +0 -7
  319. package/dist/bot/agent-ci_pipeline.js +0 -7
  320. package/dist/bot/agent-compliance.d.ts +0 -56
  321. package/dist/bot/agent-compliance.js +0 -222
  322. package/dist/bot/agent-dependency_updater.d.ts +0 -9
  323. package/dist/bot/agent-dependency_updater.js +0 -9
  324. package/dist/bot/agent-security_scanner.d.ts +0 -11
  325. package/dist/bot/agent-security_scanner.js +0 -21
  326. package/dist/cli/banner.d.ts +0 -25
  327. package/dist/cli/banner.js +0 -153
  328. package/dist/cli/commands/agent/discover-type.command.d.ts +0 -39
  329. package/dist/cli/commands/agent/discover-type.command.js +0 -332
  330. package/dist/cli/commands/agent-card.command.d.ts +0 -9
  331. package/dist/cli/commands/agent-card.command.js +0 -185
  332. package/dist/cli/commands/agent-wizard.command.d.ts +0 -21
  333. package/dist/cli/commands/agent-wizard.command.js +0 -1558
  334. package/dist/cli/commands/agents/delete.command.d.ts +0 -10
  335. package/dist/cli/commands/agents/delete.command.js +0 -105
  336. package/dist/cli/commands/agents/list.command.d.ts +0 -10
  337. package/dist/cli/commands/agents/list.command.js +0 -140
  338. package/dist/cli/commands/agents/persona.command.d.ts +0 -10
  339. package/dist/cli/commands/agents/persona.command.js +0 -519
  340. package/dist/cli/commands/agents/show.command.d.ts +0 -10
  341. package/dist/cli/commands/agents/show.command.js +0 -182
  342. package/dist/cli/commands/agents-local.command.d.ts +0 -10
  343. package/dist/cli/commands/agents-local.command.js +0 -281
  344. package/dist/cli/commands/agents-md/batch.command.d.ts +0 -3
  345. package/dist/cli/commands/agents-md/batch.command.js +0 -63
  346. package/dist/cli/commands/agents-md/generate.command.d.ts +0 -3
  347. package/dist/cli/commands/agents-md/generate.command.js +0 -43
  348. package/dist/cli/commands/agents-md/list.command.d.ts +0 -3
  349. package/dist/cli/commands/agents-md/list.command.js +0 -59
  350. package/dist/cli/commands/agents-md/validate.command.d.ts +0 -3
  351. package/dist/cli/commands/agents-md/validate.command.js +0 -42
  352. package/dist/cli/commands/agents-md.command.d.ts +0 -7
  353. package/dist/cli/commands/agents-md.command.js +0 -236
  354. package/dist/cli/commands/agents-sync.command.d.ts +0 -19
  355. package/dist/cli/commands/agents-sync.command.js +0 -278
  356. package/dist/cli/commands/agents.command.d.ts +0 -11
  357. package/dist/cli/commands/agents.command.js +0 -216
  358. package/dist/cli/commands/audit.d.ts +0 -8
  359. package/dist/cli/commands/audit.js +0 -268
  360. package/dist/cli/commands/build.command.d.ts +0 -7
  361. package/dist/cli/commands/build.command.js +0 -296
  362. package/dist/cli/commands/capability/create.command.d.ts +0 -7
  363. package/dist/cli/commands/capability/create.command.js +0 -225
  364. package/dist/cli/commands/capability/index.d.ts +0 -7
  365. package/dist/cli/commands/capability/index.js +0 -10
  366. package/dist/cli/commands/capability/validate.d.ts +0 -3
  367. package/dist/cli/commands/capability/validate.js +0 -62
  368. package/dist/cli/commands/catalog/config.d.ts +0 -54
  369. package/dist/cli/commands/catalog/config.js +0 -113
  370. package/dist/cli/commands/catalog/convert.command.d.ts +0 -8
  371. package/dist/cli/commands/catalog/convert.command.js +0 -106
  372. package/dist/cli/commands/catalog/index.d.ts +0 -17
  373. package/dist/cli/commands/catalog/index.js +0 -34
  374. package/dist/cli/commands/catalog/info.command.d.ts +0 -3
  375. package/dist/cli/commands/catalog/info.command.js +0 -137
  376. package/dist/cli/commands/catalog/list.command.d.ts +0 -8
  377. package/dist/cli/commands/catalog/list.command.js +0 -101
  378. package/dist/cli/commands/catalog/schemas.d.ts +0 -62
  379. package/dist/cli/commands/catalog/schemas.js +0 -55
  380. package/dist/cli/commands/catalog/search.command.d.ts +0 -3
  381. package/dist/cli/commands/catalog/search.command.js +0 -47
  382. package/dist/cli/commands/catalog/validate.command.d.ts +0 -8
  383. package/dist/cli/commands/catalog/validate.command.js +0 -140
  384. package/dist/cli/commands/compliance.command.d.ts +0 -19
  385. package/dist/cli/commands/compliance.command.js +0 -221
  386. package/dist/cli/commands/config.command.d.ts +0 -7
  387. package/dist/cli/commands/config.command.js +0 -92
  388. package/dist/cli/commands/conformance.command.d.ts +0 -14
  389. package/dist/cli/commands/conformance.command.js +0 -232
  390. package/dist/cli/commands/contract.command.d.ts +0 -15
  391. package/dist/cli/commands/contract.command.js +0 -381
  392. package/dist/cli/commands/daemon.command.d.ts +0 -9
  393. package/dist/cli/commands/daemon.command.js +0 -447
  394. package/dist/cli/commands/dependencies.command.d.ts +0 -15
  395. package/dist/cli/commands/dependencies.command.js +0 -274
  396. package/dist/cli/commands/deploy-enhanced.command.d.ts +0 -15
  397. package/dist/cli/commands/deploy-enhanced.command.js +0 -334
  398. package/dist/cli/commands/deploy.command.d.ts +0 -7
  399. package/dist/cli/commands/deploy.command.js +0 -83
  400. package/dist/cli/commands/deploy.d.ts +0 -22
  401. package/dist/cli/commands/deploy.js +0 -336
  402. package/dist/cli/commands/dev.command.d.ts +0 -20
  403. package/dist/cli/commands/dev.command.js +0 -78
  404. package/dist/cli/commands/diff.command.d.ts +0 -11
  405. package/dist/cli/commands/diff.command.js +0 -197
  406. package/dist/cli/commands/discover.d.ts +0 -15
  407. package/dist/cli/commands/discover.js +0 -219
  408. package/dist/cli/commands/docs.command.d.ts +0 -7
  409. package/dist/cli/commands/docs.command.js +0 -278
  410. package/dist/cli/commands/economics.command.d.ts +0 -9
  411. package/dist/cli/commands/economics.command.js +0 -113
  412. package/dist/cli/commands/enhance.command.d.ts +0 -10
  413. package/dist/cli/commands/enhance.command.js +0 -119
  414. package/dist/cli/commands/ensure-uuid.command.d.ts +0 -7
  415. package/dist/cli/commands/ensure-uuid.command.js +0 -153
  416. package/dist/cli/commands/estimate.command.d.ts +0 -12
  417. package/dist/cli/commands/estimate.command.js +0 -226
  418. package/dist/cli/commands/examples.command.d.ts +0 -10
  419. package/dist/cli/commands/examples.command.js +0 -73
  420. package/dist/cli/commands/export-enhanced.command.d.ts +0 -7
  421. package/dist/cli/commands/export-enhanced.command.js +0 -149
  422. package/dist/cli/commands/export.command.d.ts +0 -15
  423. package/dist/cli/commands/export.command.js +0 -1031
  424. package/dist/cli/commands/extension-team.command.d.ts +0 -15
  425. package/dist/cli/commands/extension-team.command.js +0 -126
  426. package/dist/cli/commands/framework.command.d.ts +0 -9
  427. package/dist/cli/commands/framework.command.js +0 -194
  428. package/dist/cli/commands/generate/conformance.d.ts +0 -3
  429. package/dist/cli/commands/generate/conformance.js +0 -106
  430. package/dist/cli/commands/generate-gaid.command.d.ts +0 -14
  431. package/dist/cli/commands/generate-gaid.command.js +0 -141
  432. package/dist/cli/commands/generate.command.d.ts +0 -18
  433. package/dist/cli/commands/generate.command.js +0 -247
  434. package/dist/cli/commands/github-sync.command.d.ts +0 -3
  435. package/dist/cli/commands/github-sync.command.js +0 -51
  436. package/dist/cli/commands/gitlab-agent.command.d.ts +0 -8
  437. package/dist/cli/commands/gitlab-agent.command.js +0 -201
  438. package/dist/cli/commands/governance.command.d.ts +0 -11
  439. package/dist/cli/commands/governance.command.js +0 -166
  440. package/dist/cli/commands/identity/plan.d.ts +0 -3
  441. package/dist/cli/commands/identity/plan.js +0 -182
  442. package/dist/cli/commands/import.command.d.ts +0 -7
  443. package/dist/cli/commands/import.command.js +0 -71
  444. package/dist/cli/commands/info.command.d.ts +0 -3
  445. package/dist/cli/commands/info.command.js +0 -45
  446. package/dist/cli/commands/init.command.d.ts +0 -7
  447. package/dist/cli/commands/init.command.js +0 -165
  448. package/dist/cli/commands/install.command.d.ts +0 -3
  449. package/dist/cli/commands/install.command.js +0 -43
  450. package/dist/cli/commands/knowledge-index.command.d.ts +0 -11
  451. package/dist/cli/commands/knowledge-index.command.js +0 -111
  452. package/dist/cli/commands/knowledge-query.command.d.ts +0 -11
  453. package/dist/cli/commands/knowledge-query.command.js +0 -118
  454. package/dist/cli/commands/knowledge.command.d.ts +0 -11
  455. package/dist/cli/commands/knowledge.command.js +0 -16
  456. package/dist/cli/commands/langchain.command.d.ts +0 -9
  457. package/dist/cli/commands/langchain.command.js +0 -113
  458. package/dist/cli/commands/langflow.command.d.ts +0 -9
  459. package/dist/cli/commands/langflow.command.js +0 -111
  460. package/dist/cli/commands/lifecycle.command.d.ts +0 -29
  461. package/dist/cli/commands/lifecycle.command.js +0 -495
  462. package/dist/cli/commands/lint.command.d.ts +0 -12
  463. package/dist/cli/commands/lint.command.js +0 -377
  464. package/dist/cli/commands/llms-txt.command.d.ts +0 -7
  465. package/dist/cli/commands/llms-txt.command.js +0 -118
  466. package/dist/cli/commands/manifest/diff.command.d.ts +0 -7
  467. package/dist/cli/commands/manifest/diff.command.js +0 -186
  468. package/dist/cli/commands/manifest/explain.command.d.ts +0 -7
  469. package/dist/cli/commands/manifest/explain.command.js +0 -193
  470. package/dist/cli/commands/manifest/index.d.ts +0 -7
  471. package/dist/cli/commands/manifest/index.js +0 -12
  472. package/dist/cli/commands/mcp.command.d.ts +0 -9
  473. package/dist/cli/commands/mcp.command.js +0 -112
  474. package/dist/cli/commands/memory.command.d.ts +0 -18
  475. package/dist/cli/commands/memory.command.js +0 -168
  476. package/dist/cli/commands/migrate-batch.command.d.ts +0 -19
  477. package/dist/cli/commands/migrate-batch.command.js +0 -223
  478. package/dist/cli/commands/migrate-langchain.command.d.ts +0 -23
  479. package/dist/cli/commands/migrate-langchain.command.js +0 -167
  480. package/dist/cli/commands/migrate.command.d.ts +0 -10
  481. package/dist/cli/commands/migrate.command.js +0 -103
  482. package/dist/cli/commands/platforms.command.d.ts +0 -7
  483. package/dist/cli/commands/platforms.command.js +0 -90
  484. package/dist/cli/commands/policy.command.d.ts +0 -11
  485. package/dist/cli/commands/policy.command.js +0 -85
  486. package/dist/cli/commands/publish.command.d.ts +0 -3
  487. package/dist/cli/commands/publish.command.js +0 -118
  488. package/dist/cli/commands/quickstart.command.d.ts +0 -10
  489. package/dist/cli/commands/quickstart.command.js +0 -238
  490. package/dist/cli/commands/register.d.ts +0 -12
  491. package/dist/cli/commands/register.js +0 -200
  492. package/dist/cli/commands/registry.command.d.ts +0 -18
  493. package/dist/cli/commands/registry.command.js +0 -433
  494. package/dist/cli/commands/release.command.d.ts +0 -10
  495. package/dist/cli/commands/release.command.js +0 -73
  496. package/dist/cli/commands/rollback.command.d.ts +0 -13
  497. package/dist/cli/commands/rollback.command.js +0 -169
  498. package/dist/cli/commands/run.command.d.ts +0 -7
  499. package/dist/cli/commands/run.command.js +0 -141
  500. package/dist/cli/commands/scaffold.command.d.ts +0 -19
  501. package/dist/cli/commands/scaffold.command.js +0 -240
  502. package/dist/cli/commands/schema.command.d.ts +0 -11
  503. package/dist/cli/commands/schema.command.js +0 -82
  504. package/dist/cli/commands/search.command.d.ts +0 -3
  505. package/dist/cli/commands/search.command.js +0 -74
  506. package/dist/cli/commands/serve-builder-routes.d.ts +0 -17
  507. package/dist/cli/commands/serve-builder-routes.js +0 -390
  508. package/dist/cli/commands/serve.command.d.ts +0 -7
  509. package/dist/cli/commands/serve.command.js +0 -237
  510. package/dist/cli/commands/sign.command.d.ts +0 -3
  511. package/dist/cli/commands/sign.command.js +0 -42
  512. package/dist/cli/commands/skills.command.d.ts +0 -10
  513. package/dist/cli/commands/skills.command.js +0 -649
  514. package/dist/cli/commands/standardize.command.d.ts +0 -19
  515. package/dist/cli/commands/standardize.command.js +0 -290
  516. package/dist/cli/commands/sync.command.d.ts +0 -3
  517. package/dist/cli/commands/sync.command.js +0 -51
  518. package/dist/cli/commands/taxonomy.command.d.ts +0 -10
  519. package/dist/cli/commands/taxonomy.command.js +0 -379
  520. package/dist/cli/commands/template.command.d.ts +0 -7
  521. package/dist/cli/commands/template.command.js +0 -159
  522. package/dist/cli/commands/test.command.d.ts +0 -12
  523. package/dist/cli/commands/test.command.js +0 -233
  524. package/dist/cli/commands/tool/create.command.d.ts +0 -12
  525. package/dist/cli/commands/tool/create.command.js +0 -276
  526. package/dist/cli/commands/tool/index.d.ts +0 -7
  527. package/dist/cli/commands/tool/index.js +0 -14
  528. package/dist/cli/commands/tool/list.command.d.ts +0 -7
  529. package/dist/cli/commands/tool/list.command.js +0 -268
  530. package/dist/cli/commands/tool/validate.command.d.ts +0 -7
  531. package/dist/cli/commands/tool/validate.command.js +0 -103
  532. package/dist/cli/commands/types/wizard-config.types.d.ts +0 -59
  533. package/dist/cli/commands/types/wizard-config.types.js +0 -34
  534. package/dist/cli/commands/update.command.d.ts +0 -3
  535. package/dist/cli/commands/update.command.js +0 -43
  536. package/dist/cli/commands/upgrade.command.d.ts +0 -9
  537. package/dist/cli/commands/upgrade.command.js +0 -179
  538. package/dist/cli/commands/usie-skills.command.d.ts +0 -24
  539. package/dist/cli/commands/usie-skills.command.js +0 -297
  540. package/dist/cli/commands/validate.command.d.ts +0 -11
  541. package/dist/cli/commands/validate.command.js +0 -396
  542. package/dist/cli/commands/verify.d.ts +0 -15
  543. package/dist/cli/commands/verify.js +0 -307
  544. package/dist/cli/commands/wizard-api-first.command.d.ts +0 -18
  545. package/dist/cli/commands/wizard-api-first.command.js +0 -1073
  546. package/dist/cli/commands/wizard-interactive.command.d.ts +0 -25
  547. package/dist/cli/commands/wizard-interactive.command.js +0 -3467
  548. package/dist/cli/commands/wizard.command.d.ts +0 -12
  549. package/dist/cli/commands/wizard.command.js +0 -844
  550. package/dist/cli/commands/workspace.command.d.ts +0 -16
  551. package/dist/cli/commands/workspace.command.js +0 -653
  552. package/dist/cli/extensions/gitlab-release.commands.d.ts +0 -19
  553. package/dist/cli/extensions/gitlab-release.commands.js +0 -345
  554. package/dist/cli/extensions/gitlab.extension.d.ts +0 -24
  555. package/dist/cli/extensions/gitlab.extension.js +0 -65
  556. package/dist/cli/extensions/index.d.ts +0 -63
  557. package/dist/cli/extensions/index.js +0 -182
  558. package/dist/cli/index.d.ts +0 -17
  559. package/dist/cli/index.js +0 -362
  560. package/dist/cli/schema-driven/index.d.ts +0 -27
  561. package/dist/cli/schema-driven/index.js +0 -34
  562. package/dist/cli/schema-driven/schema-loader.d.ts +0 -115
  563. package/dist/cli/schema-driven/schema-loader.js +0 -280
  564. package/dist/cli/schema-driven/ui-generator.d.ts +0 -88
  565. package/dist/cli/schema-driven/ui-generator.js +0 -335
  566. package/dist/cli/skills-wizard/skill-wizard.d.ts +0 -25
  567. package/dist/cli/skills-wizard/skill-wizard.js +0 -195
  568. package/dist/cli/templates/agent-templates.d.ts +0 -49
  569. package/dist/cli/templates/agent-templates.js +0 -237
  570. package/dist/cli/templates/enhanced-templates.d.ts +0 -32
  571. package/dist/cli/templates/enhanced-templates.js +0 -650
  572. package/dist/cli/utils/error-formatter.d.ts +0 -19
  573. package/dist/cli/utils/error-formatter.js +0 -352
  574. package/dist/cli/utils/gitlab-config.d.ts +0 -94
  575. package/dist/cli/utils/gitlab-config.js +0 -182
  576. package/dist/cli/utils/index.d.ts +0 -12
  577. package/dist/cli/utils/index.js +0 -17
  578. package/dist/cli/utils/logo.d.ts +0 -10
  579. package/dist/cli/utils/logo.js +0 -49
  580. package/dist/cli/utils/manifest-discovery.d.ts +0 -63
  581. package/dist/cli/utils/manifest-discovery.js +0 -201
  582. package/dist/cli/utils/manifest-loader.d.ts +0 -77
  583. package/dist/cli/utils/manifest-loader.js +0 -153
  584. package/dist/cli/utils/migration-reporter.d.ts +0 -96
  585. package/dist/cli/utils/migration-reporter.js +0 -253
  586. package/dist/cli/utils/output.d.ts +0 -134
  587. package/dist/cli/utils/output.js +0 -203
  588. package/dist/cli/utils/standard-options.d.ts +0 -144
  589. package/dist/cli/utils/standard-options.js +0 -246
  590. package/dist/cli/utils/validation-builder.d.ts +0 -121
  591. package/dist/cli/utils/validation-builder.js +0 -322
  592. package/dist/cli/wizard/data/agent-types.d.ts +0 -7
  593. package/dist/cli/wizard/data/agent-types.js +0 -192
  594. package/dist/cli/wizard/data/llm-providers.d.ts +0 -10
  595. package/dist/cli/wizard/data/llm-providers.js +0 -176
  596. package/dist/cli/wizard/data/taxonomy.d.ts +0 -39
  597. package/dist/cli/wizard/data/taxonomy.js +0 -138
  598. package/dist/cli/wizard/data/templates.d.ts +0 -10
  599. package/dist/cli/wizard/data/templates.js +0 -228
  600. package/dist/cli/wizard/engine/wizard-engine.d.ts +0 -47
  601. package/dist/cli/wizard/engine/wizard-engine.js +0 -193
  602. package/dist/cli/wizard/interactive-wizard.d.ts +0 -26
  603. package/dist/cli/wizard/interactive-wizard.js +0 -309
  604. package/dist/cli/wizard/steps/01-agent-type.d.ts +0 -7
  605. package/dist/cli/wizard/steps/01-agent-type.js +0 -35
  606. package/dist/cli/wizard/steps/02-basic-info.d.ts +0 -7
  607. package/dist/cli/wizard/steps/02-basic-info.js +0 -81
  608. package/dist/cli/wizard/steps/03-domain-capability.d.ts +0 -7
  609. package/dist/cli/wizard/steps/03-domain-capability.js +0 -98
  610. package/dist/cli/wizard/steps/04-llm-config.d.ts +0 -7
  611. package/dist/cli/wizard/steps/04-llm-config.js +0 -86
  612. package/dist/cli/wizard/steps/04a-persona.d.ts +0 -16
  613. package/dist/cli/wizard/steps/04a-persona.js +0 -297
  614. package/dist/cli/wizard/steps/05-tools.d.ts +0 -7
  615. package/dist/cli/wizard/steps/05-tools.js +0 -200
  616. package/dist/cli/wizard/steps/06-autonomy.d.ts +0 -7
  617. package/dist/cli/wizard/steps/06-autonomy.js +0 -87
  618. package/dist/cli/wizard/steps/07-observability.d.ts +0 -7
  619. package/dist/cli/wizard/steps/07-observability.js +0 -149
  620. package/dist/cli/wizard/steps/08-deployment.d.ts +0 -7
  621. package/dist/cli/wizard/steps/08-deployment.js +0 -122
  622. package/dist/cli/wizard/steps/08a-target-platforms.d.ts +0 -7
  623. package/dist/cli/wizard/steps/08a-target-platforms.js +0 -50
  624. package/dist/cli/wizard/steps/09-advanced.d.ts +0 -7
  625. package/dist/cli/wizard/steps/09-advanced.js +0 -160
  626. package/dist/cli/wizard/steps/09a-token-efficiency.d.ts +0 -8
  627. package/dist/cli/wizard/steps/09a-token-efficiency.js +0 -153
  628. package/dist/cli/wizard/steps/09b-separation-of-duties.d.ts +0 -7
  629. package/dist/cli/wizard/steps/09b-separation-of-duties.js +0 -93
  630. package/dist/cli/wizard/steps/09c-agents-md.d.ts +0 -8
  631. package/dist/cli/wizard/steps/09c-agents-md.js +0 -61
  632. package/dist/cli/wizard/steps/09d-drupal-tools-eca.d.ts +0 -8
  633. package/dist/cli/wizard/steps/09d-drupal-tools-eca.js +0 -52
  634. package/dist/cli/wizard/steps/09e-memory-management.d.ts +0 -9
  635. package/dist/cli/wizard/steps/09e-memory-management.js +0 -188
  636. package/dist/cli/wizard/steps/10-review.d.ts +0 -7
  637. package/dist/cli/wizard/steps/10-review.js +0 -173
  638. package/dist/cli/wizard/steps/12-agents-folder.d.ts +0 -7
  639. package/dist/cli/wizard/steps/12-agents-folder.js +0 -105
  640. package/dist/cli/wizard/steps/13-openapi-generation.d.ts +0 -7
  641. package/dist/cli/wizard/steps/13-openapi-generation.js +0 -68
  642. package/dist/cli/wizard/steps/14-workspace-registration.d.ts +0 -7
  643. package/dist/cli/wizard/steps/14-workspace-registration.js +0 -72
  644. package/dist/cli/wizard/steps/15-cost-estimation.d.ts +0 -7
  645. package/dist/cli/wizard/steps/15-cost-estimation.js +0 -135
  646. package/dist/cli/wizard/steps/16-best-practices.d.ts +0 -7
  647. package/dist/cli/wizard/steps/16-best-practices.js +0 -181
  648. package/dist/cli/wizard/steps/index.d.ts +0 -21
  649. package/dist/cli/wizard/steps/index.js +0 -21
  650. package/dist/cli/wizard/template-catalog.d.ts +0 -32
  651. package/dist/cli/wizard/template-catalog.js +0 -99
  652. package/dist/cli/wizard/types.d.ts +0 -132
  653. package/dist/cli/wizard/types.js +0 -6
  654. package/dist/cli/wizard/ui/banner.d.ts +0 -20
  655. package/dist/cli/wizard/ui/banner.js +0 -66
  656. package/dist/cli/wizard/ui/console.d.ts +0 -26
  657. package/dist/cli/wizard/ui/console.js +0 -102
  658. package/dist/cli/wizard/ui/wizard-ui.d.ts +0 -75
  659. package/dist/cli/wizard/ui/wizard-ui.js +0 -150
  660. package/dist/cli/wizard/use-cases.d.ts +0 -37
  661. package/dist/cli/wizard/use-cases.js +0 -157
  662. package/dist/cli/wizard/validators/index.d.ts +0 -11
  663. package/dist/cli/wizard/validators/index.js +0 -35
  664. package/dist/cli/workspace-validate.d.ts +0 -23
  665. package/dist/cli/workspace-validate.js +0 -117
  666. package/dist/confidence/index.d.ts +0 -67
  667. package/dist/confidence/index.js +0 -130
  668. package/dist/config/cli-config.d.ts +0 -33
  669. package/dist/config/cli-config.js +0 -107
  670. package/dist/config/defaults.d.ts +0 -197
  671. package/dist/config/defaults.js +0 -299
  672. package/dist/converters/skill-md-converter.d.ts +0 -72
  673. package/dist/converters/skill-md-converter.js +0 -169
  674. package/dist/data/marketplace-skills-catalog.d.ts +0 -119
  675. package/dist/data/marketplace-skills-catalog.js +0 -147
  676. package/dist/data/platform-matrix.d.ts +0 -43
  677. package/dist/data/platform-matrix.js +0 -497
  678. package/dist/deploy/base-driver.d.ts +0 -39
  679. package/dist/deploy/base-driver.js +0 -63
  680. package/dist/deploy/cloud/aws-driver.d.ts +0 -75
  681. package/dist/deploy/cloud/aws-driver.js +0 -349
  682. package/dist/deploy/cloud/azure-driver.d.ts +0 -54
  683. package/dist/deploy/cloud/azure-driver.js +0 -221
  684. package/dist/deploy/cloud/gcp-driver.d.ts +0 -56
  685. package/dist/deploy/cloud/gcp-driver.js +0 -216
  686. package/dist/deploy/docker-driver.d.ts +0 -32
  687. package/dist/deploy/docker-driver.js +0 -246
  688. package/dist/deploy/index.d.ts +0 -15
  689. package/dist/deploy/index.js +0 -28
  690. package/dist/deploy/k8s-driver.d.ts +0 -40
  691. package/dist/deploy/k8s-driver.js +0 -380
  692. package/dist/deploy/local-driver.d.ts +0 -20
  693. package/dist/deploy/local-driver.js +0 -150
  694. package/dist/deploy/types.d.ts +0 -104
  695. package/dist/deploy/types.js +0 -6
  696. package/dist/di-container.d.ts +0 -23
  697. package/dist/di-container.js +0 -200
  698. package/dist/errors/index.d.ts +0 -154
  699. package/dist/errors/index.js +0 -327
  700. package/dist/generated/types.d.ts +0 -691
  701. package/dist/generated/types.js +0 -6
  702. package/dist/index.d.ts +0 -12
  703. package/dist/index.js +0 -14
  704. package/dist/interfaces/governance-provider.interface.d.ts +0 -95
  705. package/dist/interfaces/governance-provider.interface.js +0 -17
  706. package/dist/mcp-server/index.d.ts +0 -21
  707. package/dist/mcp-server/index.js +0 -1866
  708. package/dist/mesh/advanced-routing.d.ts +0 -181
  709. package/dist/mesh/advanced-routing.js +0 -479
  710. package/dist/mesh/agent-graph.d.ts +0 -218
  711. package/dist/mesh/agent-graph.js +0 -493
  712. package/dist/mesh/client.d.ts +0 -144
  713. package/dist/mesh/client.js +0 -427
  714. package/dist/mesh/discovery-gkg.d.ts +0 -26
  715. package/dist/mesh/discovery-gkg.js +0 -92
  716. package/dist/mesh/discovery-providers.d.ts +0 -162
  717. package/dist/mesh/discovery-providers.js +0 -520
  718. package/dist/mesh/discovery.d.ts +0 -176
  719. package/dist/mesh/discovery.js +0 -289
  720. package/dist/mesh/index.d.ts +0 -92
  721. package/dist/mesh/index.js +0 -98
  722. package/dist/mesh/routing.d.ts +0 -158
  723. package/dist/mesh/routing.js +0 -363
  724. package/dist/mesh/types.d.ts +0 -889
  725. package/dist/mesh/types.js +0 -6
  726. package/dist/messaging/broker.d.ts +0 -76
  727. package/dist/messaging/broker.js +0 -147
  728. package/dist/messaging/channels.d.ts +0 -70
  729. package/dist/messaging/channels.js +0 -187
  730. package/dist/messaging/index.d.ts +0 -10
  731. package/dist/messaging/index.js +0 -10
  732. package/dist/messaging/protocols/memory.d.ts +0 -83
  733. package/dist/messaging/protocols/memory.js +0 -290
  734. package/dist/messaging/protocols/redis.d.ts +0 -83
  735. package/dist/messaging/protocols/redis.js +0 -223
  736. package/dist/messaging/types.d.ts +0 -180
  737. package/dist/messaging/types.js +0 -6
  738. package/dist/messenger/Commands/MessengerConsumeCommand.d.ts +0 -57
  739. package/dist/messenger/Commands/MessengerConsumeCommand.js +0 -49
  740. package/dist/messenger/Commands/MessengerFailedCommand.d.ts +0 -76
  741. package/dist/messenger/Commands/MessengerFailedCommand.js +0 -120
  742. package/dist/messenger/Commands/MessengerStatsCommand.d.ts +0 -61
  743. package/dist/messenger/Commands/MessengerStatsCommand.js +0 -80
  744. package/dist/messenger/Commands/index.d.ts +0 -10
  745. package/dist/messenger/Commands/index.js +0 -10
  746. package/dist/messenger/EventSubscriber/FailedMessageSubscriber.d.ts +0 -44
  747. package/dist/messenger/EventSubscriber/FailedMessageSubscriber.js +0 -64
  748. package/dist/messenger/Handler/AgentBatchHandler.d.ts +0 -80
  749. package/dist/messenger/Handler/AgentBatchHandler.js +0 -212
  750. package/dist/messenger/Handler/AgentExecutionHandler.d.ts +0 -76
  751. package/dist/messenger/Handler/AgentExecutionHandler.js +0 -136
  752. package/dist/messenger/Handler/index.d.ts +0 -9
  753. package/dist/messenger/Handler/index.js +0 -9
  754. package/dist/messenger/Message/AgentBatchMessage.d.ts +0 -115
  755. package/dist/messenger/Message/AgentBatchMessage.js +0 -102
  756. package/dist/messenger/Message/AgentExecutionMessage.d.ts +0 -98
  757. package/dist/messenger/Message/AgentExecutionMessage.js +0 -77
  758. package/dist/messenger/Message/index.d.ts +0 -9
  759. package/dist/messenger/Message/index.js +0 -9
  760. package/dist/messenger/Middleware/AuthenticationMiddleware.d.ts +0 -41
  761. package/dist/messenger/Middleware/AuthenticationMiddleware.js +0 -84
  762. package/dist/messenger/Middleware/LoggingMiddleware.d.ts +0 -30
  763. package/dist/messenger/Middleware/LoggingMiddleware.js +0 -59
  764. package/dist/messenger/Middleware/RateLimitMiddleware.d.ts +0 -67
  765. package/dist/messenger/Middleware/RateLimitMiddleware.js +0 -90
  766. package/dist/messenger/Middleware/ValidationMiddleware.d.ts +0 -39
  767. package/dist/messenger/Middleware/ValidationMiddleware.js +0 -96
  768. package/dist/messenger/Middleware/index.d.ts +0 -11
  769. package/dist/messenger/Middleware/index.js +0 -11
  770. package/dist/messenger/Monitoring/MetricsCollector.d.ts +0 -107
  771. package/dist/messenger/Monitoring/MetricsCollector.js +0 -80
  772. package/dist/messenger/Monitoring/QueueMonitor.d.ts +0 -74
  773. package/dist/messenger/Monitoring/QueueMonitor.js +0 -160
  774. package/dist/messenger/Monitoring/index.d.ts +0 -9
  775. package/dist/messenger/Monitoring/index.js +0 -9
  776. package/dist/messenger/index.d.ts +0 -38
  777. package/dist/messenger/index.js +0 -44
  778. package/dist/observability/index.d.ts +0 -13
  779. package/dist/observability/index.js +0 -14
  780. package/dist/observability/metrics.d.ts +0 -131
  781. package/dist/observability/metrics.js +0 -308
  782. package/dist/observability/middleware.d.ts +0 -64
  783. package/dist/observability/middleware.js +0 -225
  784. package/dist/package.json +0 -386
  785. package/dist/repositories/manifest.repository.d.ts +0 -26
  786. package/dist/repositories/manifest.repository.js +0 -96
  787. package/dist/repositories/schema.repository.d.ts +0 -54
  788. package/dist/repositories/schema.repository.js +0 -281
  789. package/dist/runtime/agent-runner.d.ts +0 -46
  790. package/dist/runtime/agent-runner.js +0 -346
  791. package/dist/runtime/crewai.runtime.d.ts +0 -30
  792. package/dist/runtime/crewai.runtime.js +0 -110
  793. package/dist/runtime/langchain.runtime.d.ts +0 -32
  794. package/dist/runtime/langchain.runtime.js +0 -75
  795. package/dist/runtime/langflow.runtime.d.ts +0 -65
  796. package/dist/runtime/langflow.runtime.js +0 -143
  797. package/dist/sdk.d.ts +0 -49
  798. package/dist/sdk.js +0 -66
  799. package/dist/sdks/index.d.ts +0 -15
  800. package/dist/sdks/index.js +0 -17
  801. package/dist/sdks/kagent/crd-generator.d.ts +0 -106
  802. package/dist/sdks/kagent/crd-generator.js +0 -1114
  803. package/dist/sdks/kagent/crd-parser.d.ts +0 -13
  804. package/dist/sdks/kagent/crd-parser.js +0 -92
  805. package/dist/sdks/kagent/index.d.ts +0 -10
  806. package/dist/sdks/kagent/index.js +0 -9
  807. package/dist/sdks/kagent/k8s-resources-generator.d.ts +0 -73
  808. package/dist/sdks/kagent/k8s-resources-generator.js +0 -286
  809. package/dist/sdks/kagent/kubectl-apply.d.ts +0 -35
  810. package/dist/sdks/kagent/kubectl-apply.js +0 -127
  811. package/dist/sdks/kagent/runtime-adapter.d.ts +0 -45
  812. package/dist/sdks/kagent/runtime-adapter.js +0 -129
  813. package/dist/sdks/kagent/tool-registry.d.ts +0 -25
  814. package/dist/sdks/kagent/tool-registry.js +0 -148
  815. package/dist/sdks/kagent/types.d.ts +0 -327
  816. package/dist/sdks/kagent/types.js +0 -10
  817. package/dist/sdks/kagent/validator.d.ts +0 -17
  818. package/dist/sdks/kagent/validator.js +0 -73
  819. package/dist/sdks/shared/index.d.ts +0 -24
  820. package/dist/sdks/shared/index.js +0 -28
  821. package/dist/sdks/shared/manifest-loader.d.ts +0 -41
  822. package/dist/sdks/shared/manifest-loader.js +0 -45
  823. package/dist/sdks/shared/schema-validator.d.ts +0 -34
  824. package/dist/sdks/shared/schema-validator.js +0 -103
  825. package/dist/sdks/shared/types.d.ts +0 -43
  826. package/dist/sdks/shared/types.js +0 -27
  827. package/dist/sdks/shared/validation.d.ts +0 -52
  828. package/dist/sdks/shared/validation.js +0 -41
  829. package/dist/services/agent-card-generator.d.ts +0 -77
  830. package/dist/services/agent-card-generator.js +0 -752
  831. package/dist/services/agent-services/qdrant.service.d.ts +0 -60
  832. package/dist/services/agent-services/qdrant.service.js +0 -168
  833. package/dist/services/agent-type-detector.service.d.ts +0 -72
  834. package/dist/services/agent-type-detector.service.js +0 -197
  835. package/dist/services/agents-md/agents-md-api.service.d.ts +0 -92
  836. package/dist/services/agents-md/agents-md-api.service.js +0 -162
  837. package/dist/services/agents-md/agents-md-discovery.service.d.ts +0 -50
  838. package/dist/services/agents-md/agents-md-discovery.service.js +0 -190
  839. package/dist/services/agents-md/agents-md-generator.service.d.ts +0 -29
  840. package/dist/services/agents-md/agents-md-generator.service.js +0 -252
  841. package/dist/services/agents-md/agents-md.service.d.ts +0 -65
  842. package/dist/services/agents-md/agents-md.service.js +0 -379
  843. package/dist/services/agents-md/repo-agents-md.service.d.ts +0 -87
  844. package/dist/services/agents-md/repo-agents-md.service.js +0 -202
  845. package/dist/services/ai-architect.service.d.ts +0 -48
  846. package/dist/services/ai-architect.service.js +0 -273
  847. package/dist/services/audit.d.ts +0 -86
  848. package/dist/services/audit.js +0 -279
  849. package/dist/services/codegen/codegen.service.d.ts +0 -77
  850. package/dist/services/codegen/codegen.service.js +0 -142
  851. package/dist/services/codegen/generators/manifest.generator.d.ts +0 -41
  852. package/dist/services/codegen/generators/manifest.generator.js +0 -178
  853. package/dist/services/codegen/generators/openapi-zod.generator.d.ts +0 -79
  854. package/dist/services/codegen/generators/openapi-zod.generator.js +0 -482
  855. package/dist/services/codegen/generators/openapi.generator.d.ts +0 -46
  856. package/dist/services/codegen/generators/openapi.generator.js +0 -157
  857. package/dist/services/codegen/generators/types.generator.d.ts +0 -27
  858. package/dist/services/codegen/generators/types.generator.js +0 -97
  859. package/dist/services/codegen/generators/vscode.generator.d.ts +0 -43
  860. package/dist/services/codegen/generators/vscode.generator.js +0 -163
  861. package/dist/services/codegen/generators/zod.generator.d.ts +0 -31
  862. package/dist/services/codegen/generators/zod.generator.js +0 -135
  863. package/dist/services/codegen/index.d.ts +0 -35
  864. package/dist/services/codegen/index.js +0 -38
  865. package/dist/services/conformance/conformance.service.d.ts +0 -75
  866. package/dist/services/conformance/conformance.service.js +0 -194
  867. package/dist/services/conformance/feature-detector.service.d.ts +0 -66
  868. package/dist/services/conformance/feature-detector.service.js +0 -161
  869. package/dist/services/conformance/index.d.ts +0 -10
  870. package/dist/services/conformance/index.js +0 -9
  871. package/dist/services/conformance/profile-loader.service.d.ts +0 -51
  872. package/dist/services/conformance/profile-loader.service.js +0 -192
  873. package/dist/services/conformance/score-calculator.service.d.ts +0 -50
  874. package/dist/services/conformance/score-calculator.service.js +0 -222
  875. package/dist/services/conformance/types.d.ts +0 -107
  876. package/dist/services/conformance/types.js +0 -6
  877. package/dist/services/convert/convert.service.d.ts +0 -26
  878. package/dist/services/convert/convert.service.js +0 -72
  879. package/dist/services/cost-estimation/optimization-patterns.d.ts +0 -23
  880. package/dist/services/cost-estimation/optimization-patterns.js +0 -147
  881. package/dist/services/cost-estimation/pricing.d.ts +0 -29
  882. package/dist/services/cost-estimation/pricing.js +0 -225
  883. package/dist/services/cost-estimation/scenario-estimator.d.ts +0 -59
  884. package/dist/services/cost-estimation/scenario-estimator.js +0 -145
  885. package/dist/services/cost-estimation/token-counter.service.d.ts +0 -51
  886. package/dist/services/cost-estimation/token-counter.service.js +0 -125
  887. package/dist/services/daemon/audit-log.service.d.ts +0 -37
  888. package/dist/services/daemon/audit-log.service.js +0 -81
  889. package/dist/services/daemon/execution.service.d.ts +0 -103
  890. package/dist/services/daemon/execution.service.js +0 -333
  891. package/dist/services/daemon/fs-watcher.service.d.ts +0 -55
  892. package/dist/services/daemon/fs-watcher.service.js +0 -182
  893. package/dist/services/daemon/pairing.service.d.ts +0 -61
  894. package/dist/services/daemon/pairing.service.js +0 -163
  895. package/dist/services/daemon/skill-aggregator.service.d.ts +0 -61
  896. package/dist/services/daemon/skill-aggregator.service.js +0 -336
  897. package/dist/services/daemon/sse-endpoints.d.ts +0 -68
  898. package/dist/services/daemon/sse-endpoints.js +0 -176
  899. package/dist/services/daemon/ws-server.d.ts +0 -66
  900. package/dist/services/daemon/ws-server.js +0 -258
  901. package/dist/services/deployment/deployment.service.d.ts +0 -19
  902. package/dist/services/deployment/deployment.service.js +0 -87
  903. package/dist/services/dev-server/dev-server.service.d.ts +0 -121
  904. package/dist/services/dev-server/dev-server.service.js +0 -290
  905. package/dist/services/dev-server/file-watcher.d.ts +0 -101
  906. package/dist/services/dev-server/file-watcher.js +0 -190
  907. package/dist/services/dev-server/live-validator.d.ts +0 -157
  908. package/dist/services/dev-server/live-validator.js +0 -301
  909. package/dist/services/dev-server/websocket-server.d.ts +0 -137
  910. package/dist/services/dev-server/websocket-server.js +0 -230
  911. package/dist/services/evals/evals-generator.service.d.ts +0 -90
  912. package/dist/services/evals/evals-generator.service.js +0 -1602
  913. package/dist/services/export/anthropic/anthropic-exporter.d.ts +0 -71
  914. package/dist/services/export/anthropic/anthropic-exporter.js +0 -590
  915. package/dist/services/export/anthropic/api-generator.d.ts +0 -39
  916. package/dist/services/export/anthropic/api-generator.js +0 -395
  917. package/dist/services/export/anthropic/index.d.ts +0 -18
  918. package/dist/services/export/anthropic/index.js +0 -16
  919. package/dist/services/export/anthropic/tools-generator.d.ts +0 -35
  920. package/dist/services/export/anthropic/tools-generator.js +0 -259
  921. package/dist/services/export/export-orchestrator.d.ts +0 -90
  922. package/dist/services/export/export-orchestrator.js +0 -181
  923. package/dist/services/export/export.service.d.ts +0 -30
  924. package/dist/services/export/export.service.js +0 -52
  925. package/dist/services/export/langchain/api-generator.d.ts +0 -17
  926. package/dist/services/export/langchain/api-generator.js +0 -375
  927. package/dist/services/export/langchain/callbacks-generator.d.ts +0 -63
  928. package/dist/services/export/langchain/callbacks-generator.js +0 -416
  929. package/dist/services/export/langchain/error-handling-generator.d.ts +0 -76
  930. package/dist/services/export/langchain/error-handling-generator.js +0 -526
  931. package/dist/services/export/langchain/index.d.ts +0 -17
  932. package/dist/services/export/langchain/index.js +0 -13
  933. package/dist/services/export/langchain/langchain-exporter.d.ts +0 -174
  934. package/dist/services/export/langchain/langchain-exporter.js +0 -961
  935. package/dist/services/export/langchain/langgraph-generator.d.ts +0 -86
  936. package/dist/services/export/langchain/langgraph-generator.js +0 -485
  937. package/dist/services/export/langchain/langserve-generator.d.ts +0 -95
  938. package/dist/services/export/langchain/langserve-generator.js +0 -813
  939. package/dist/services/export/langchain/memory-generator.d.ts +0 -71
  940. package/dist/services/export/langchain/memory-generator.js +0 -1182
  941. package/dist/services/export/langchain/openapi-generator.d.ts +0 -20
  942. package/dist/services/export/langchain/openapi-generator.js +0 -364
  943. package/dist/services/export/langchain/plan-execute-generator.d.ts +0 -60
  944. package/dist/services/export/langchain/plan-execute-generator.js +0 -679
  945. package/dist/services/export/langchain/streaming-generator.d.ts +0 -66
  946. package/dist/services/export/langchain/streaming-generator.js +0 -755
  947. package/dist/services/export/langchain/tools-generator.d.ts +0 -67
  948. package/dist/services/export/langchain/tools-generator.js +0 -543
  949. package/dist/services/export/npm/express-generator.d.ts +0 -23
  950. package/dist/services/export/npm/express-generator.js +0 -296
  951. package/dist/services/export/npm/index.d.ts +0 -13
  952. package/dist/services/export/npm/index.js +0 -11
  953. package/dist/services/export/npm/npm-exporter.d.ts +0 -182
  954. package/dist/services/export/npm/npm-exporter.js +0 -1773
  955. package/dist/services/export/npm/openapi-generator.d.ts +0 -19
  956. package/dist/services/export/npm/openapi-generator.js +0 -428
  957. package/dist/services/export/npm/package-json-generator.d.ts +0 -31
  958. package/dist/services/export/npm/package-json-generator.js +0 -156
  959. package/dist/services/export/npm/typescript-generator.d.ts +0 -69
  960. package/dist/services/export/npm/typescript-generator.js +0 -431
  961. package/dist/services/export/testing/index.d.ts +0 -8
  962. package/dist/services/export/testing/index.js +0 -7
  963. package/dist/services/export/testing/test-generator.d.ts +0 -178
  964. package/dist/services/export/testing/test-generator.js +0 -2546
  965. package/dist/services/extension-team/extension-team-kickoff.service.d.ts +0 -85
  966. package/dist/services/extension-team/extension-team-kickoff.service.js +0 -163
  967. package/dist/services/framework-import/langchain-importer.service.d.ts +0 -55
  968. package/dist/services/framework-import/langchain-importer.service.js +0 -157
  969. package/dist/services/framework-import/langflow-importer.service.d.ts +0 -85
  970. package/dist/services/framework-import/langflow-importer.service.js +0 -264
  971. package/dist/services/generation.service.d.ts +0 -65
  972. package/dist/services/generation.service.js +0 -356
  973. package/dist/services/git-rollback.service.d.ts +0 -75
  974. package/dist/services/git-rollback.service.js +0 -329
  975. package/dist/services/git.service.d.ts +0 -49
  976. package/dist/services/git.service.js +0 -162
  977. package/dist/services/github-sync/github-client.d.ts +0 -14
  978. package/dist/services/github-sync/github-client.js +0 -41
  979. package/dist/services/github-sync/gitlab-client.d.ts +0 -17
  980. package/dist/services/github-sync/gitlab-client.js +0 -42
  981. package/dist/services/github-sync/schemas.d.ts +0 -46
  982. package/dist/services/github-sync/schemas.js +0 -36
  983. package/dist/services/github-sync/sync.service.d.ts +0 -27
  984. package/dist/services/github-sync/sync.service.js +0 -101
  985. package/dist/services/gitlab-agent.service.d.ts +0 -94
  986. package/dist/services/gitlab-agent.service.js +0 -164
  987. package/dist/services/governance/cedar-provider.d.ts +0 -27
  988. package/dist/services/governance/cedar-provider.js +0 -109
  989. package/dist/services/governance/cedar-validator.service.d.ts +0 -32
  990. package/dist/services/governance/cedar-validator.service.js +0 -88
  991. package/dist/services/governance/governance-generator.service.d.ts +0 -120
  992. package/dist/services/governance/governance-generator.service.js +0 -1089
  993. package/dist/services/governance-client.service.d.ts +0 -39
  994. package/dist/services/governance-client.service.js +0 -124
  995. package/dist/services/id-card.service.d.ts +0 -109
  996. package/dist/services/id-card.service.js +0 -237
  997. package/dist/services/identity/identity.service.d.ts +0 -21
  998. package/dist/services/identity/identity.service.js +0 -36
  999. package/dist/services/import/framework-to-ossa.d.ts +0 -21
  1000. package/dist/services/import/framework-to-ossa.js +0 -171
  1001. package/dist/services/interfaces/governance-provider.interface.d.ts +0 -59
  1002. package/dist/services/interfaces/governance-provider.interface.js +0 -6
  1003. package/dist/services/knowledge-generation.service.d.ts +0 -46
  1004. package/dist/services/knowledge-generation.service.js +0 -96
  1005. package/dist/services/knowledge.service.d.ts +0 -88
  1006. package/dist/services/knowledge.service.js +0 -214
  1007. package/dist/services/llms-txt/llms-txt.service.d.ts +0 -59
  1008. package/dist/services/llms-txt/llms-txt.service.js +0 -540
  1009. package/dist/services/manifest/manifest-crud.service.d.ts +0 -119
  1010. package/dist/services/manifest/manifest-crud.service.js +0 -319
  1011. package/dist/services/mcp/bridge.service.d.ts +0 -63
  1012. package/dist/services/mcp/bridge.service.js +0 -222
  1013. package/dist/services/mcp-manifest/mcp-manifest.service.d.ts +0 -20
  1014. package/dist/services/mcp-manifest/mcp-manifest.service.js +0 -85
  1015. package/dist/services/messaging/example.d.ts +0 -6
  1016. package/dist/services/messaging/example.js +0 -260
  1017. package/dist/services/messaging/index.d.ts +0 -80
  1018. package/dist/services/messaging/index.js +0 -86
  1019. package/dist/services/messaging/memory-broker.d.ts +0 -103
  1020. package/dist/services/messaging/memory-broker.js +0 -436
  1021. package/dist/services/messaging/messaging.service.d.ts +0 -150
  1022. package/dist/services/messaging/messaging.service.js +0 -458
  1023. package/dist/services/messaging/messaging.types.d.ts +0 -319
  1024. package/dist/services/messaging/messaging.types.js +0 -68
  1025. package/dist/services/migration/langchain-migration.service.d.ts +0 -117
  1026. package/dist/services/migration/langchain-migration.service.js +0 -621
  1027. package/dist/services/migration-transform.service.d.ts +0 -82
  1028. package/dist/services/migration-transform.service.js +0 -322
  1029. package/dist/services/migration.service.d.ts +0 -132
  1030. package/dist/services/migration.service.js +0 -698
  1031. package/dist/services/multi-agent/team-generator.service.d.ts +0 -48
  1032. package/dist/services/multi-agent/team-generator.service.js +0 -584
  1033. package/dist/services/observability/observability-generator.service.d.ts +0 -54
  1034. package/dist/services/observability/observability-generator.service.js +0 -1419
  1035. package/dist/services/openapi-extensions-validation.d.ts +0 -20
  1036. package/dist/services/openapi-extensions-validation.js +0 -193
  1037. package/dist/services/registry/bundle.service.d.ts +0 -36
  1038. package/dist/services/registry/bundle.service.js +0 -70
  1039. package/dist/services/registry/index.service.d.ts +0 -76
  1040. package/dist/services/registry/index.service.js +0 -88
  1041. package/dist/services/registry/registry.service.d.ts +0 -39
  1042. package/dist/services/registry/registry.service.js +0 -169
  1043. package/dist/services/registry.service.d.ts +0 -34
  1044. package/dist/services/registry.service.js +0 -162
  1045. package/dist/services/release-automation/base-crud.service.d.ts +0 -93
  1046. package/dist/services/release-automation/base-crud.service.js +0 -68
  1047. package/dist/services/release-automation/generate-changelog.d.ts +0 -7
  1048. package/dist/services/release-automation/generate-changelog.js +0 -288
  1049. package/dist/services/release-automation/increment-dev-tag.d.ts +0 -7
  1050. package/dist/services/release-automation/increment-dev-tag.js +0 -160
  1051. package/dist/services/release-automation/index.d.ts +0 -12
  1052. package/dist/services/release-automation/index.js +0 -12
  1053. package/dist/services/release-automation/merge-request.service.d.ts +0 -119
  1054. package/dist/services/release-automation/merge-request.service.js +0 -212
  1055. package/dist/services/release-automation/milestone.service.d.ts +0 -104
  1056. package/dist/services/release-automation/milestone.service.js +0 -207
  1057. package/dist/services/release-automation/release-agent.service.d.ts +0 -39
  1058. package/dist/services/release-automation/release-agent.service.js +0 -43
  1059. package/dist/services/release-automation/release-buttons.d.ts +0 -7
  1060. package/dist/services/release-automation/release-buttons.js +0 -207
  1061. package/dist/services/release-automation/release.service.d.ts +0 -118
  1062. package/dist/services/release-automation/release.service.js +0 -207
  1063. package/dist/services/release-automation/schemas/release.schema.d.ts +0 -299
  1064. package/dist/services/release-automation/schemas/release.schema.js +0 -272
  1065. package/dist/services/release-automation/tag.service.d.ts +0 -99
  1066. package/dist/services/release-automation/tag.service.js +0 -183
  1067. package/dist/services/release-automation/webhook.service.d.ts +0 -37
  1068. package/dist/services/release-automation/webhook.service.js +0 -187
  1069. package/dist/services/runtime/anthropic.adapter.d.ts +0 -145
  1070. package/dist/services/runtime/anthropic.adapter.js +0 -521
  1071. package/dist/services/runtime/azure.adapter.d.ts +0 -389
  1072. package/dist/services/runtime/azure.adapter.js +0 -517
  1073. package/dist/services/runtime/bedrock.adapter.d.ts +0 -170
  1074. package/dist/services/runtime/bedrock.adapter.js +0 -665
  1075. package/dist/services/runtime/claude/capability-mapper.d.ts +0 -84
  1076. package/dist/services/runtime/claude/capability-mapper.js +0 -245
  1077. package/dist/services/runtime/claude/claude-adapter.d.ts +0 -80
  1078. package/dist/services/runtime/claude/claude-adapter.js +0 -283
  1079. package/dist/services/runtime/claude/manifest-parser.d.ts +0 -77
  1080. package/dist/services/runtime/claude/manifest-parser.js +0 -169
  1081. package/dist/services/runtime/claude/types.d.ts +0 -115
  1082. package/dist/services/runtime/claude/types.js +0 -6
  1083. package/dist/services/runtime/gemini.adapter.d.ts +0 -190
  1084. package/dist/services/runtime/gemini.adapter.js +0 -600
  1085. package/dist/services/runtime/mistral.adapter.d.ts +0 -201
  1086. package/dist/services/runtime/mistral.adapter.js +0 -652
  1087. package/dist/services/runtime/ollama.adapter.d.ts +0 -187
  1088. package/dist/services/runtime/ollama.adapter.js +0 -521
  1089. package/dist/services/runtime/openai.adapter.d.ts +0 -127
  1090. package/dist/services/runtime/openai.adapter.js +0 -247
  1091. package/dist/services/skill-registry.service.d.ts +0 -134
  1092. package/dist/services/skill-registry.service.js +0 -452
  1093. package/dist/services/skills/claude-skills.service.d.ts +0 -59
  1094. package/dist/services/skills/claude-skills.service.js +0 -275
  1095. package/dist/services/skills/skill-manifest.service.d.ts +0 -23
  1096. package/dist/services/skills/skill-manifest.service.js +0 -86
  1097. package/dist/services/skills-pipeline/index.d.ts +0 -9
  1098. package/dist/services/skills-pipeline/index.js +0 -9
  1099. package/dist/services/skills-pipeline/skills-export.service.d.ts +0 -86
  1100. package/dist/services/skills-pipeline/skills-export.service.js +0 -483
  1101. package/dist/services/skills-pipeline/skills-generator.service.d.ts +0 -118
  1102. package/dist/services/skills-pipeline/skills-generator.service.js +0 -648
  1103. package/dist/services/skills-pipeline/skills-install.service.d.ts +0 -42
  1104. package/dist/services/skills-pipeline/skills-install.service.js +0 -219
  1105. package/dist/services/skills-pipeline/skills-research.service.d.ts +0 -110
  1106. package/dist/services/skills-pipeline/skills-research.service.js +0 -466
  1107. package/dist/services/structure/agents-folder.service.d.ts +0 -37
  1108. package/dist/services/structure/agents-folder.service.js +0 -318
  1109. package/dist/services/taxonomy-service.d.ts +0 -103
  1110. package/dist/services/taxonomy-service.js +0 -343
  1111. package/dist/services/taxonomy-validator.service.d.ts +0 -25
  1112. package/dist/services/taxonomy-validator.service.js +0 -149
  1113. package/dist/services/taxonomy.service.d.ts +0 -132
  1114. package/dist/services/taxonomy.service.js +0 -342
  1115. package/dist/services/template-processor.service.d.ts +0 -34
  1116. package/dist/services/template-processor.service.js +0 -123
  1117. package/dist/services/template.service.d.ts +0 -54
  1118. package/dist/services/template.service.js +0 -154
  1119. package/dist/services/test-runner/mock-llm.service.d.ts +0 -77
  1120. package/dist/services/test-runner/mock-llm.service.js +0 -172
  1121. package/dist/services/test-runner/scenarios.d.ts +0 -36
  1122. package/dist/services/test-runner/scenarios.js +0 -202
  1123. package/dist/services/test-runner/test-runner.service.d.ts +0 -39
  1124. package/dist/services/test-runner/test-runner.service.js +0 -165
  1125. package/dist/services/trust/trust.service.d.ts +0 -47
  1126. package/dist/services/trust/trust.service.js +0 -236
  1127. package/dist/services/validation/best-practices-validator.d.ts +0 -84
  1128. package/dist/services/validation/best-practices-validator.js +0 -499
  1129. package/dist/services/validation/cost-estimator.d.ts +0 -69
  1130. package/dist/services/validation/cost-estimator.js +0 -223
  1131. package/dist/services/validation/enhanced-validator.d.ts +0 -78
  1132. package/dist/services/validation/enhanced-validator.js +0 -210
  1133. package/dist/services/validation/index.d.ts +0 -13
  1134. package/dist/services/validation/index.js +0 -9
  1135. package/dist/services/validation/security-validator.d.ts +0 -81
  1136. package/dist/services/validation/security-validator.js +0 -330
  1137. package/dist/services/validation-zod.service.d.ts +0 -36
  1138. package/dist/services/validation-zod.service.js +0 -325
  1139. package/dist/services/validation.service.d.ts +0 -50
  1140. package/dist/services/validation.service.js +0 -445
  1141. package/dist/services/validators/a2a.validator.d.ts +0 -16
  1142. package/dist/services/validators/a2a.validator.js +0 -63
  1143. package/dist/services/validators/anthropic.validator.d.ts +0 -9
  1144. package/dist/services/validators/anthropic.validator.js +0 -111
  1145. package/dist/services/validators/autogen.validator.d.ts +0 -12
  1146. package/dist/services/validators/autogen.validator.js +0 -151
  1147. package/dist/services/validators/contract.validator.d.ts +0 -91
  1148. package/dist/services/validators/contract.validator.js +0 -522
  1149. package/dist/services/validators/crewai.validator.d.ts +0 -12
  1150. package/dist/services/validators/crewai.validator.js +0 -152
  1151. package/dist/services/validators/cursor.validator.d.ts +0 -9
  1152. package/dist/services/validators/cursor.validator.js +0 -93
  1153. package/dist/services/validators/dependencies.validator.d.ts +0 -104
  1154. package/dist/services/validators/dependencies.validator.js +0 -388
  1155. package/dist/services/validators/index.d.ts +0 -20
  1156. package/dist/services/validators/index.js +0 -21
  1157. package/dist/services/validators/kagent.validator.d.ts +0 -13
  1158. package/dist/services/validators/kagent.validator.js +0 -205
  1159. package/dist/services/validators/langchain.validator.d.ts +0 -12
  1160. package/dist/services/validators/langchain.validator.js +0 -139
  1161. package/dist/services/validators/langflow.validator.d.ts +0 -9
  1162. package/dist/services/validators/langflow.validator.js +0 -98
  1163. package/dist/services/validators/langgraph.validator.d.ts +0 -12
  1164. package/dist/services/validators/langgraph.validator.js +0 -161
  1165. package/dist/services/validators/llamaindex.validator.d.ts +0 -9
  1166. package/dist/services/validators/llamaindex.validator.js +0 -125
  1167. package/dist/services/validators/mcp.validator.d.ts +0 -16
  1168. package/dist/services/validators/mcp.validator.js +0 -70
  1169. package/dist/services/validators/messaging.validator.d.ts +0 -77
  1170. package/dist/services/validators/messaging.validator.js +0 -298
  1171. package/dist/services/validators/openai.validator.d.ts +0 -9
  1172. package/dist/services/validators/openai.validator.js +0 -131
  1173. package/dist/services/validators/registry.d.ts +0 -21
  1174. package/dist/services/validators/registry.js +0 -42
  1175. package/dist/services/validators/vercel-ai.validator.d.ts +0 -9
  1176. package/dist/services/validators/vercel-ai.validator.js +0 -101
  1177. package/dist/services/version-detection.service.d.ts +0 -50
  1178. package/dist/services/version-detection.service.js +0 -209
  1179. package/dist/services/wizard/prompts.d.ts +0 -71
  1180. package/dist/services/wizard/prompts.js +0 -345
  1181. package/dist/services/wizard/wizard-state.service.d.ts +0 -111
  1182. package/dist/services/wizard/wizard-state.service.js +0 -548
  1183. package/dist/services/wizard/wizard.service.d.ts +0 -60
  1184. package/dist/services/wizard/wizard.service.js +0 -329
  1185. package/dist/services/workspace/workspace.service.d.ts +0 -44
  1186. package/dist/services/workspace/workspace.service.js +0 -203
  1187. package/dist/skills/test-skill/README.md +0 -36
  1188. package/dist/skills/test-skill/SKILL.md +0 -31
  1189. package/dist/skills/test-skill/index.d.ts +0 -31
  1190. package/dist/skills/test-skill/install.js +0 -44
  1191. package/dist/skills/test-skill/package.json +0 -36
  1192. package/dist/spec/extensions/a2a-messaging.md +0 -471
  1193. package/dist/spec/extensions/cognition.schema.json +0 -87
  1194. package/dist/spec/extensions/knowledge-graph/knowledge-graph.schema.json +0 -386
  1195. package/dist/spec/extensions/manifest-extensions.md +0 -550
  1196. package/dist/spec/extensions/openapi/ossa-openapi-extensions.schema.json +0 -804
  1197. package/dist/spec/extensions/role-manifest.md +0 -188
  1198. package/dist/spec/extensions/skills-compatibility.md +0 -292
  1199. package/dist/spec/layer4-economics/duadp-examples.json +0 -44
  1200. package/dist/spec/ossa-audit-api.yaml +0 -311
  1201. package/dist/spec/reference/reference-agents/compliance-auditor/manifest.ossa.yaml +0 -527
  1202. package/dist/spec/reference/reference-agents/doc-agent/manifest.ossa.yaml +0 -776
  1203. package/dist/spec/reference/reference-agents/mr-reviewer/manifest.ossa.yaml +0 -249
  1204. package/dist/spec/reference/reference-agents/mr-reviewer/system-prompt.md +0 -154
  1205. package/dist/spec/reference/reference-agents/ossa-validator-v0.3/manifest.ossa.yaml +0 -548
  1206. package/dist/spec/reference/reference-agents/ossa-validator-v0.3/system-prompt.md +0 -135
  1207. package/dist/spec/reference/reference-agents/pipeline-fixer/manifest.ossa.yaml +0 -336
  1208. package/dist/spec/reference/reference-agents/release-orchestrator/README.md +0 -35
  1209. package/dist/spec/reference/reference-agents/release-orchestrator/manifest.ossa.yaml +0 -233
  1210. package/dist/spec/registry/README.md +0 -478
  1211. package/dist/spec/registry/openapi.yaml +0 -1124
  1212. package/dist/spec/registry/project-registry.schema.json +0 -62
  1213. package/dist/spec/registry/registry-api.schema.json +0 -731
  1214. package/dist/spec/registry/registry-api.yaml +0 -144
  1215. package/dist/spec/registry/registry-spec.md +0 -2239
  1216. package/dist/spec/schema/agent-test.schema.json +0 -117
  1217. package/dist/spec/schema/components/activity-stream.schema.json +0 -94
  1218. package/dist/spec/schema/components/adapter.schema.json +0 -33
  1219. package/dist/spec/schema/components/constraints.schema.json +0 -84
  1220. package/dist/spec/schema/components/dependencies.schema.json +0 -147
  1221. package/dist/spec/schema/components/encryption.schema.json +0 -115
  1222. package/dist/spec/schema/components/identity.schema.json +0 -126
  1223. package/dist/spec/schema/components/index.json +0 -37
  1224. package/dist/spec/schema/components/llm-config.schema.json +0 -67
  1225. package/dist/spec/schema/components/metadata.schema.json +0 -52
  1226. package/dist/spec/schema/components/tool.schema.json +0 -64
  1227. package/dist/spec/schema/extensions/a2a.extension.schema.json +0 -127
  1228. package/dist/spec/uadp/README.md +0 -393
  1229. package/dist/spec/uadp/openapi.yaml +0 -387
  1230. package/dist/spec/uadp/schemas/uadp-agents-response.schema.json +0 -68
  1231. package/dist/spec/uadp/schemas/uadp-federation-response.schema.json +0 -46
  1232. package/dist/spec/uadp/schemas/uadp-manifest.schema.json +0 -82
  1233. package/dist/spec/uadp/schemas/uadp-skills-response.schema.json +0 -72
  1234. package/dist/spec/v0.4/agent-card.schema.json +0 -477
  1235. package/dist/spec/v0.4/agent.schema.json +0 -1581
  1236. package/dist/spec/v0.4/conformance/profiles/baseline.json +0 -19
  1237. package/dist/spec/v0.4/conformance/profiles/enterprise.json +0 -20
  1238. package/dist/spec/v0.4/extensions/a2a/README.md +0 -193
  1239. package/dist/spec/v0.4/extensions/a2a/a2a.schema.json +0 -77
  1240. package/dist/spec/v0.4/extensions/ag2/ag2.schema.json +0 -277
  1241. package/dist/spec/v0.4/extensions/cognition/cognition.schema.json +0 -94
  1242. package/dist/spec/v0.4/extensions/cognition/thought-node.schema.json +0 -80
  1243. package/dist/spec/v0.4/extensions/crewai/crewai.schema.json +0 -256
  1244. package/dist/spec/v0.4/extensions/drupal/drupal.schema.json +0 -318
  1245. package/dist/spec/v0.4/extensions/evals/evals.schema.json +0 -597
  1246. package/dist/spec/v0.4/extensions/governance/governance-extension.yaml +0 -161
  1247. package/dist/spec/v0.4/extensions/identity/identity.schema.json +0 -302
  1248. package/dist/spec/v0.4/extensions/kagent/README.md +0 -315
  1249. package/dist/spec/v0.4/extensions/kagent/kagent.schema.json +0 -624
  1250. package/dist/spec/v0.4/extensions/langchain/langchain.schema.json +0 -243
  1251. package/dist/spec/v0.4/extensions/langgraph/langgraph.schema.json +0 -211
  1252. package/dist/spec/v0.4/extensions/mcp/README.md +0 -276
  1253. package/dist/spec/v0.4/extensions/mcp/mcp.schema.json +0 -84
  1254. package/dist/spec/v0.4/extensions/memory/memory.schema.json +0 -7
  1255. package/dist/spec/v0.4/extensions/team/team.schema.json +0 -304
  1256. package/dist/spec/v0.4/extensions/token-efficiency/token-efficiency.schema.json +0 -47
  1257. package/dist/spec/v0.4/mcp.schema.json +0 -1
  1258. package/dist/spec/v0.4/skill.schema.json +0 -1
  1259. package/dist/spec/v0.4/validator.schema.json +0 -282
  1260. package/dist/spec/v0.5/agent-builder-openapi.yaml +0 -230
  1261. package/dist/spec/v0.5/agent-card.schema.json +0 -477
  1262. package/dist/spec/v0.5/agent.schema.json +0 -1658
  1263. package/dist/spec/v0.5/conformance/profiles/baseline.json +0 -19
  1264. package/dist/spec/v0.5/conformance/profiles/enterprise.json +0 -20
  1265. package/dist/spec/v0.5/extensions/a2a/README.md +0 -193
  1266. package/dist/spec/v0.5/extensions/a2a/a2a.schema.json +0 -77
  1267. package/dist/spec/v0.5/extensions/ag2/ag2.schema.json +0 -277
  1268. package/dist/spec/v0.5/extensions/cognition/cognition.schema.json +0 -171
  1269. package/dist/spec/v0.5/extensions/cognition/thought-node.schema.json +0 -80
  1270. package/dist/spec/v0.5/extensions/crewai/crewai.schema.json +0 -256
  1271. package/dist/spec/v0.5/extensions/drupal/drupal.schema.json +0 -318
  1272. package/dist/spec/v0.5/extensions/economics/context-pack.schema.json +0 -91
  1273. package/dist/spec/v0.5/extensions/economics/execution-profile.schema.json +0 -148
  1274. package/dist/spec/v0.5/extensions/economics/failure-semantics.schema.json +0 -32
  1275. package/dist/spec/v0.5/extensions/economics/replay-packet.schema.json +0 -120
  1276. package/dist/spec/v0.5/extensions/evals/evals.schema.json +0 -597
  1277. package/dist/spec/v0.5/extensions/governance/governance-extension.yaml +0 -161
  1278. package/dist/spec/v0.5/extensions/identity/identity.schema.json +0 -302
  1279. package/dist/spec/v0.5/extensions/kagent/README.md +0 -315
  1280. package/dist/spec/v0.5/extensions/kagent/kagent.schema.json +0 -624
  1281. package/dist/spec/v0.5/extensions/langchain/langchain.schema.json +0 -243
  1282. package/dist/spec/v0.5/extensions/langgraph/langgraph.schema.json +0 -211
  1283. package/dist/spec/v0.5/extensions/mcp/README.md +0 -276
  1284. package/dist/spec/v0.5/extensions/mcp/mcp.schema.json +0 -84
  1285. package/dist/spec/v0.5/extensions/memory/memory.schema.json +0 -7
  1286. package/dist/spec/v0.5/extensions/team/team.schema.json +0 -304
  1287. package/dist/spec/v0.5/extensions/token-efficiency/token-efficiency.schema.json +0 -47
  1288. package/dist/spec/v0.5/mcp.schema.json +0 -1
  1289. package/dist/spec/v0.5/memory-hierarchy.yaml +0 -120
  1290. package/dist/spec/v0.5/role.schema.json +0 -268
  1291. package/dist/spec/v0.5/skill.schema.json +0 -1
  1292. package/dist/spec/v0.5/validator.schema.json +0 -282
  1293. package/dist/spec/v1/agent-card.schema.json +0 -254
  1294. package/dist/spec/v1/mcp.schema.json +0 -183
  1295. package/dist/spec/v1/skill.schema.json +0 -346
  1296. package/dist/testing/fixtures.d.ts +0 -61
  1297. package/dist/testing/fixtures.js +0 -298
  1298. package/dist/testing/index.d.ts +0 -10
  1299. package/dist/testing/index.js +0 -10
  1300. package/dist/testing/reporters/base.d.ts +0 -24
  1301. package/dist/testing/reporters/base.js +0 -5
  1302. package/dist/testing/reporters/console.d.ts +0 -18
  1303. package/dist/testing/reporters/console.js +0 -78
  1304. package/dist/testing/reporters/json.d.ts +0 -29
  1305. package/dist/testing/reporters/json.js +0 -40
  1306. package/dist/testing/runner.d.ts +0 -96
  1307. package/dist/testing/runner.js +0 -392
  1308. package/dist/transports/index.d.ts +0 -8
  1309. package/dist/transports/index.js +0 -11
  1310. package/dist/transports/sse.d.ts +0 -166
  1311. package/dist/transports/sse.js +0 -314
  1312. package/dist/transports/webrtc.d.ts +0 -183
  1313. package/dist/transports/webrtc.js +0 -481
  1314. package/dist/transports/websocket.d.ts +0 -205
  1315. package/dist/transports/websocket.js +0 -407
  1316. package/dist/types/architect.d.ts +0 -48
  1317. package/dist/types/architect.js +0 -7
  1318. package/dist/types/cognition.zod.d.ts +0 -312
  1319. package/dist/types/cognition.zod.js +0 -223
  1320. package/dist/types/dynamic-agent-types.d.ts +0 -158
  1321. package/dist/types/dynamic-agent-types.js +0 -473
  1322. package/dist/types/generated/ossa-0.3.2.types.d.ts +0 -367
  1323. package/dist/types/generated/ossa-0.3.2.types.js +0 -10
  1324. package/dist/types/generated/ossa-0.3.2.zod.d.ts +0 -36
  1325. package/dist/types/generated/ossa-0.3.2.zod.js +0 -25
  1326. package/dist/types/generated/ossa-0.3.3.types.d.ts +0 -367
  1327. package/dist/types/generated/ossa-0.3.3.types.js +0 -10
  1328. package/dist/types/generated/ossa-0.3.3.zod.d.ts +0 -36
  1329. package/dist/types/generated/ossa-0.3.3.zod.js +0 -25
  1330. package/dist/types/generated/ossa-0.3.4.types.d.ts +0 -430
  1331. package/dist/types/generated/ossa-0.3.4.types.js +0 -10
  1332. package/dist/types/generated/ossa-0.3.4.zod.d.ts +0 -340
  1333. package/dist/types/generated/ossa-0.3.4.zod.js +0 -120
  1334. package/dist/types/identity.d.ts +0 -82
  1335. package/dist/types/identity.js +0 -10
  1336. package/dist/types/identity.zod.d.ts +0 -622
  1337. package/dist/types/identity.zod.js +0 -272
  1338. package/dist/types/index.d.ts +0 -711
  1339. package/dist/types/index.js +0 -32
  1340. package/dist/types/llms-txt.zod.d.ts +0 -320
  1341. package/dist/types/llms-txt.zod.js +0 -82
  1342. package/dist/types/mcp-server-manifest.d.ts +0 -83
  1343. package/dist/types/mcp-server-manifest.js +0 -17
  1344. package/dist/types/messaging.d.ts +0 -116
  1345. package/dist/types/messaging.js +0 -6
  1346. package/dist/types/openapi-extensions.d.ts +0 -164
  1347. package/dist/types/openapi-extensions.js +0 -6
  1348. package/dist/types/personality.d.ts +0 -141
  1349. package/dist/types/personality.js +0 -72
  1350. package/dist/types/personality.zod.d.ts +0 -483
  1351. package/dist/types/personality.zod.js +0 -190
  1352. package/dist/types/policy.d.ts +0 -377
  1353. package/dist/types/policy.js +0 -84
  1354. package/dist/types/prompts.d.ts +0 -219
  1355. package/dist/types/prompts.js +0 -163
  1356. package/dist/types/prompts.zod.d.ts +0 -252
  1357. package/dist/types/prompts.zod.js +0 -113
  1358. package/dist/types/protocols.d.ts +0 -158
  1359. package/dist/types/protocols.js +0 -8
  1360. package/dist/types/role.d.ts +0 -126
  1361. package/dist/types/role.js +0 -38
  1362. package/dist/types/security.d.ts +0 -123
  1363. package/dist/types/security.js +0 -9
  1364. package/dist/types/skill.d.ts +0 -116
  1365. package/dist/types/skill.js +0 -35
  1366. package/dist/types/task.d.ts +0 -222
  1367. package/dist/types/task.js +0 -40
  1368. package/dist/types/tool.d.ts +0 -73
  1369. package/dist/types/tool.js +0 -66
  1370. package/dist/types/workflow.d.ts +0 -283
  1371. package/dist/types/workflow.js +0 -51
  1372. package/dist/utils/constants.d.ts +0 -31
  1373. package/dist/utils/constants.js +0 -31
  1374. package/dist/utils/http-client.d.ts +0 -22
  1375. package/dist/utils/http-client.js +0 -51
  1376. package/dist/utils/index.d.ts +0 -12
  1377. package/dist/utils/index.js +0 -12
  1378. package/dist/utils/logger.d.ts +0 -82
  1379. package/dist/utils/logger.js +0 -250
  1380. package/dist/utils/manifest-scanner.d.ts +0 -41
  1381. package/dist/utils/manifest-scanner.js +0 -71
  1382. package/dist/utils/path-validator.d.ts +0 -24
  1383. package/dist/utils/path-validator.js +0 -70
  1384. package/dist/utils/proxy-resolver.d.ts +0 -36
  1385. package/dist/utils/proxy-resolver.js +0 -59
  1386. package/dist/utils/type-guards.d.ts +0 -59
  1387. package/dist/utils/type-guards.js +0 -190
  1388. package/dist/utils/user-agent.d.ts +0 -11
  1389. package/dist/utils/user-agent.js +0 -17
  1390. package/dist/utils/version.d.ts +0 -79
  1391. package/dist/utils/version.js +0 -239
  1392. package/dist/utils/yaml-parser.d.ts +0 -29
  1393. package/dist/utils/yaml-parser.js +0 -38
  1394. package/dist/validation/enhanced-validator.d.ts +0 -38
  1395. package/dist/validation/enhanced-validator.js +0 -242
  1396. package/dist/validation/error-codes.d.ts +0 -170
  1397. package/dist/validation/error-codes.js +0 -1160
  1398. package/dist/validation/error-formatter.d.ts +0 -81
  1399. package/dist/validation/error-formatter.js +0 -375
  1400. package/dist/validation/index.d.ts +0 -19
  1401. package/dist/validation/index.js +0 -26
  1402. package/dist/validation/linter.d.ts +0 -36
  1403. package/dist/validation/linter.js +0 -453
  1404. package/dist/validation/progressive-scorer.d.ts +0 -123
  1405. package/dist/validation/progressive-scorer.js +0 -370
  1406. package/dist/validation/validation-context.d.ts +0 -86
  1407. package/dist/validation/validation-context.js +0 -138
  1408. package/dist/validation/validator-registry.d.ts +0 -158
  1409. package/dist/validation/validator-registry.js +0 -245
  1410. package/dist/validation/validator.d.ts +0 -42
  1411. package/dist/validation/validator.js +0 -290
  1412. package/dist/validation/version-compliance.d.ts +0 -17
  1413. package/dist/validation/version-compliance.js +0 -25
  1414. package/dist/version-management/api/server.d.ts +0 -3
  1415. package/dist/version-management/api/server.js +0 -75
  1416. package/dist/version-management/cli/index.d.ts +0 -3
  1417. package/dist/version-management/cli/index.js +0 -219
  1418. package/dist/version-management/core/version-manager.d.ts +0 -108
  1419. package/dist/version-management/core/version-manager.js +0 -322
  1420. package/dist/version-management/index.d.ts +0 -3
  1421. package/dist/version-management/index.js +0 -2
  1422. package/dist/version.d.ts +0 -62
  1423. package/dist/version.js +0 -76
  1424. package/examples/a2a/agent-handoff.ossa.yaml +0 -202
  1425. package/examples/a2a/service-discovery.ossa.yaml +0 -194
  1426. package/examples/adapters/anthropic-quickstart.ts +0 -66
  1427. package/examples/adapters/crewai-quickstart.py +0 -86
  1428. package/examples/adapters/drupal-eca-mapping.yaml +0 -153
  1429. package/examples/adapters/drupal-eca-task.yaml +0 -48
  1430. package/examples/adapters/drupal-flowdrop-mapping.yaml +0 -463
  1431. package/examples/adapters/drupal-maestro-mapping.yaml +0 -369
  1432. package/examples/adapters/langchain-quickstart.ts +0 -40
  1433. package/examples/adapters/mistral-README.md +0 -367
  1434. package/examples/adapters/mistral-agent.yaml +0 -147
  1435. package/examples/adapters/symfony-messenger-task.yaml +0 -135
  1436. package/examples/adapters/symfony-messenger-workflow.yaml +0 -352
  1437. package/examples/adk-integration/code-review-workflow.yml +0 -136
  1438. package/examples/adk-integration/customer-support.yml +0 -263
  1439. package/examples/adk-integration/data-pipeline.yml +0 -173
  1440. package/examples/advanced/patterns/compliance-context-production.json +0 -53
  1441. package/examples/advanced/patterns/model-router.ts +0 -274
  1442. package/examples/advanced/patterns/smart-model-routing.ts +0 -300
  1443. package/examples/advanced/reasoning-agent.yaml +0 -136
  1444. package/examples/advanced/workflows/hybrid-model-strategy.yaml +0 -215
  1445. package/examples/agent-manifests/critics/critic-agent.yaml +0 -149
  1446. package/examples/agent-manifests/governors/governor-agent.yaml +0 -128
  1447. package/examples/agent-manifests/integrators/integrator-agent.yaml +0 -103
  1448. package/examples/agent-manifests/judges/judge-agent.yaml +0 -153
  1449. package/examples/agent-manifests/monitors/monitor-agent.yaml +0 -122
  1450. package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +0 -247
  1451. package/examples/agent-manifests/sample-compliant-agent.yaml +0 -160
  1452. package/examples/agent-manifests/v0.4-identity-security-protocols-full.ossa.yaml +0 -159
  1453. package/examples/agent-manifests/v0.4-minimal-identity-security-protocols.ossa.yaml +0 -37
  1454. package/examples/agent-manifests/v0.5-identity-security-protocols.ossa.yaml +0 -159
  1455. package/examples/agent-manifests/v0.5-minimal.ossa.yaml +0 -37
  1456. package/examples/agent-manifests/workers/worker-agent.yaml +0 -82
  1457. package/examples/agent-mesh/DISCOVERY.md +0 -679
  1458. package/examples/agent-mesh/README.ts +0 -311
  1459. package/examples/agent-mesh/basic-usage.ts +0 -461
  1460. package/examples/agent-mesh/discovery-system.ts +0 -670
  1461. package/examples/agent-skills/SKILLS_CATALOG.md +0 -341
  1462. package/examples/agent-skills/ossa-agent-authoring/SKILL.md +0 -62
  1463. package/examples/agent-skills/react-best-practices/SKILL.md +0 -158
  1464. package/examples/agent-skills/react-best-practices/references/react-performance-guidelines.md +0 -500
  1465. package/examples/agent-taxonomy-example.ossa.yaml +0 -89
  1466. package/examples/agents/01-customer-support-bot/.env.example +0 -32
  1467. package/examples/agents/01-customer-support-bot/Dockerfile +0 -30
  1468. package/examples/agents/01-customer-support-bot/README.md +0 -295
  1469. package/examples/agents/01-customer-support-bot/agent.ossa.yaml +0 -165
  1470. package/examples/agents/01-customer-support-bot/docker-compose.yml +0 -55
  1471. package/examples/agents/01-customer-support-bot/openapi.yaml +0 -238
  1472. package/examples/agents/01-customer-support-bot/package.json +0 -48
  1473. package/examples/agents/02-code-review-agent/README.md +0 -72
  1474. package/examples/agents/02-code-review-agent/agent.ossa.yaml +0 -288
  1475. package/examples/agents/02-code-review-agent/docker-compose.yml +0 -22
  1476. package/examples/agents/02-code-review-agent/openapi.yaml +0 -150
  1477. package/examples/agents/03-data-analysis-agent/README.md +0 -51
  1478. package/examples/agents/03-data-analysis-agent/agent.ossa.yaml +0 -152
  1479. package/examples/agents/03-data-analysis-agent/openapi.yaml +0 -74
  1480. package/examples/agents/04-content-moderator/README.md +0 -55
  1481. package/examples/agents/04-content-moderator/agent.ossa.yaml +0 -131
  1482. package/examples/agents/04-content-moderator/openapi.yaml +0 -50
  1483. package/examples/agents/05-sales-assistant/README.md +0 -37
  1484. package/examples/agents/05-sales-assistant/agent.ossa.yaml +0 -158
  1485. package/examples/agents/05-sales-assistant/openapi.yaml +0 -59
  1486. package/examples/agents/06-devops-agent/README.md +0 -39
  1487. package/examples/agents/06-devops-agent/agent.ossa.yaml +0 -188
  1488. package/examples/agents/06-devops-agent/openapi.yaml +0 -51
  1489. package/examples/agents/07-research-assistant/README.md +0 -31
  1490. package/examples/agents/07-research-assistant/agent.ossa.yaml +0 -185
  1491. package/examples/agents/07-research-assistant/openapi.yaml +0 -56
  1492. package/examples/agents/08-email-triage-agent/README.md +0 -33
  1493. package/examples/agents/08-email-triage-agent/agent.ossa.yaml +0 -133
  1494. package/examples/agents/08-email-triage-agent/openapi.yaml +0 -41
  1495. package/examples/agents/09-security-scanner/README.md +0 -49
  1496. package/examples/agents/09-security-scanner/agent.ossa.yaml +0 -220
  1497. package/examples/agents/09-security-scanner/openapi.yaml +0 -46
  1498. package/examples/agents/10-meeting-assistant/README.md +0 -53
  1499. package/examples/agents/10-meeting-assistant/agent.ossa.yaml +0 -203
  1500. package/examples/agents/10-meeting-assistant/docker-compose.yml +0 -27
  1501. package/examples/agents/10-meeting-assistant/openapi.yaml +0 -131
  1502. package/examples/agents/COMPLETION_REPORT.txt +0 -272
  1503. package/examples/agents/INDEX.md +0 -296
  1504. package/examples/agents/README.md +0 -452
  1505. package/examples/agents/SUMMARY.md +0 -362
  1506. package/examples/agents/TEST_RESULTS.md +0 -458
  1507. package/examples/agents/architecture-healer-enterprise.yaml +0 -143
  1508. package/examples/agents/dependency-healer-npm.yaml +0 -81
  1509. package/examples/agents/security-audit-agent.ossa.yaml +0 -234
  1510. package/examples/agents/spec-healer-openapi.yaml +0 -59
  1511. package/examples/agents/wiki-healer-production.yaml +0 -131
  1512. package/examples/agents-md/code-agent.ossa.json +0 -125
  1513. package/examples/agents-md/monorepo-agent.ossa.yaml +0 -199
  1514. package/examples/agentscope/react-assistant/README.md +0 -111
  1515. package/examples/agentscope/react-assistant/agent.ossa.yaml +0 -136
  1516. package/examples/agentscope/react-assistant/skills/code-analysis/SKILL.md +0 -18
  1517. package/examples/agentscope/react-assistant/skills/question-answering/SKILL.md +0 -18
  1518. package/examples/anthropic/claude-assistant.ossa.json +0 -46
  1519. package/examples/anthropic-adapter-example.ts +0 -374
  1520. package/examples/anthropic-simple.ts +0 -70
  1521. package/examples/architecture/model-configuration/ollama-integration.ts +0 -110
  1522. package/examples/autogen/multi-agent.ossa.json +0 -39
  1523. package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +0 -34
  1524. package/examples/bridge-configurations.yaml +0 -346
  1525. package/examples/bridges/.gitlab-ci.yml +0 -293
  1526. package/examples/bridges/Dockerfile.production +0 -87
  1527. package/examples/bridges/__pycache__/aiflow-bridge-enhanced.cpython-313.pyc +0 -0
  1528. package/examples/bridges/__pycache__/aiflow-phoenix-tracing.cpython-313.pyc +0 -0
  1529. package/examples/bridges/aiflow-bridge-enhanced.py +0 -462
  1530. package/examples/bridges/aiflow-bridge-example.yml +0 -310
  1531. package/examples/bridges/aiflow-phoenix-tracing.py +0 -310
  1532. package/examples/bridges/aiflow-registration-api.openapi.yml +0 -439
  1533. package/examples/bridges/k8s/configmap.yaml +0 -121
  1534. package/examples/bridges/k8s/deployment-simple.yaml +0 -34
  1535. package/examples/bridges/k8s/deployment.yaml +0 -275
  1536. package/examples/bridges/k8s/hpa.yaml +0 -126
  1537. package/examples/bridges/k8s/ingress.yaml +0 -155
  1538. package/examples/bridges/kagent-bridge-example.yml +0 -94
  1539. package/examples/bridges/load-tests/Dockerfile +0 -28
  1540. package/examples/bridges/load-tests/k6-load-test.js +0 -302
  1541. package/examples/bridges/load-tests/requirements.txt +0 -20
  1542. package/examples/bridges/loadtest/k6-scenarios.js +0 -270
  1543. package/examples/bridges/phase4/SLO-SLA.yaml +0 -249
  1544. package/examples/bridges/phase4/chaos-tests.yaml +0 -226
  1545. package/examples/bridges/requirements.txt +0 -24
  1546. package/examples/bridges/test_aiflow_integration.py +0 -341
  1547. package/examples/build-once-use-everywhere/README.md +0 -184
  1548. package/examples/build-once-use-everywhere/agent.ossa.yaml +0 -38
  1549. package/examples/build-once-use-everywhere/deploy-config.yaml +0 -32
  1550. package/examples/ci/multi-project-release-example.yml +0 -401
  1551. package/examples/claude-code/code-reviewer.ossa.yaml +0 -86
  1552. package/examples/claude-code/ossa-validator.ossa.yaml +0 -86
  1553. package/examples/common_npm/agent-router.ossa.yaml +0 -61
  1554. package/examples/compliance-agent.yml +0 -155
  1555. package/examples/contracts/data-consumer.ossa.yaml +0 -171
  1556. package/examples/contracts/data-producer-v2.ossa.yaml +0 -229
  1557. package/examples/contracts/data-producer.ossa.yaml +0 -219
  1558. package/examples/coordinator-agent/README.md +0 -180
  1559. package/examples/coordinator-agent/index.ts +0 -440
  1560. package/examples/coordinator-agent/manifest.yaml +0 -41
  1561. package/examples/crewai/research-team.ossa.json +0 -45
  1562. package/examples/cursor/code-review-agent.ossa.json +0 -62
  1563. package/examples/deployment-workflow.md +0 -601
  1564. package/examples/drupal/QUICKSTART.md +0 -453
  1565. package/examples/drupal/ai_agents_agentscope/README.md +0 -62
  1566. package/examples/drupal/ai_agents_agentscope/ai_agents_agentscope.info.yml +0 -13
  1567. package/examples/drupal/ai_agents_agentscope/ai_agents_agentscope.services.yml +0 -4
  1568. package/examples/drupal/ai_agents_agentscope/config/install/ai_agents_agentscope.settings.yml +0 -3
  1569. package/examples/drupal/ai_agents_agentscope/config/schema/ai_agents_agentscope.schema.yml +0 -14
  1570. package/examples/drupal/ai_agents_agentscope/src/AgentScopeRuntime.php +0 -11
  1571. package/examples/drupal/ai_agents_agentscope/src/Plugin/AiAgent/AgentScopeAgent.php +0 -10
  1572. package/examples/drupal/ai_agents_agentscope/src/Plugin/AiProvider/AgentScopeProvider.php +0 -217
  1573. package/examples/drupal/ai_agents_agentscope/src/Plugin/Derivative/AgentScopeDeriver.php +0 -10
  1574. package/examples/drupal/ai_agents_agentscope/src/Service/AgentScopeAdapter.php +0 -9
  1575. package/examples/drupal/ai_agents_ossa-module/.agents/example-agent/agent.ossa.yaml +0 -30
  1576. package/examples/drupal/content-moderator.ossa.yaml +0 -217
  1577. package/examples/drupal/drupal-contributor-agent/.eslintrc.json +0 -58
  1578. package/examples/drupal/drupal-contributor-agent/.prettierrc.json +0 -10
  1579. package/examples/drupal/drupal-contributor-agent/package.json +0 -55
  1580. package/examples/drupal/drupal-contributor-agent/src/core/index.ts +0 -10
  1581. package/examples/drupal/drupal-contributor-agent/src/index.ts +0 -17
  1582. package/examples/drupal/drupal-contributor-agent/src/types/index.ts +0 -180
  1583. package/examples/drupal/drupal-contributor-agent/tsconfig.json +0 -36
  1584. package/examples/drupal/drupal-contributor.ossa.yaml +0 -247
  1585. package/examples/drupal/gitlab-ml-recommender.ossa.yaml +0 -69
  1586. package/examples/economics/marketplace-agent.ossa.json +0 -210
  1587. package/examples/enterprise/agent.yml +0 -452
  1588. package/examples/export/langchain/production-agent-with-memory/README.md +0 -373
  1589. package/examples/export/langchain/production-agent-with-memory/agent.ossa.yaml +0 -87
  1590. package/examples/export/langchain/production-agent-with-streaming/README.md +0 -617
  1591. package/examples/export/langchain/production-agent-with-streaming/agent.ossa.yaml +0 -86
  1592. package/examples/export/langchain/production-agent-with-streaming/client-example.py +0 -263
  1593. package/examples/export/langchain/production-agent-with-tools/README.md +0 -296
  1594. package/examples/export/langchain/production-agent-with-tools/agent.ossa.yaml +0 -215
  1595. package/examples/export/langchain-export-example.ts +0 -246
  1596. package/examples/export/langserve-export-example.ts +0 -246
  1597. package/examples/export/test-generation-example.ts +0 -457
  1598. package/examples/extensions/agents-md-advanced.yml +0 -177
  1599. package/examples/extensions/agents-md-basic.yml +0 -74
  1600. package/examples/extensions/agents-md-sync.yml +0 -96
  1601. package/examples/extensions/agents-md-v1.yml +0 -176
  1602. package/examples/extensions/drupal-v1.yml +0 -266
  1603. package/examples/extensions/encryption-multi-provider.yaml +0 -120
  1604. package/examples/extensions/kagent-v1.yml +0 -167
  1605. package/examples/extensions/knowledge-sources.yaml +0 -59
  1606. package/examples/extensions/mcp-full-featured.yaml +0 -150
  1607. package/examples/genetics/breeding-agent.ossa.json +0 -194
  1608. package/examples/getting-started/01-minimal-agent.ossa.yaml +0 -51
  1609. package/examples/getting-started/02-agent-with-tools.ossa.yaml +0 -229
  1610. package/examples/getting-started/03-agent-with-safety.ossa.yaml +0 -137
  1611. package/examples/getting-started/04-agent-with-messaging.ossa.yaml +0 -392
  1612. package/examples/getting-started/05-workflow-composition.ossa.yaml +0 -153
  1613. package/examples/getting-started/README.md +0 -69
  1614. package/examples/getting-started/hello-world-complete.ossa.yaml +0 -112
  1615. package/examples/gitlab-agents/DEPLOYMENT.md +0 -331
  1616. package/examples/gitlab-agents/daily-code-scan/.env.example +0 -11
  1617. package/examples/gitlab-agents/daily-code-scan/.gitlab-ci.yml +0 -34
  1618. package/examples/gitlab-agents/daily-code-scan/Dockerfile +0 -18
  1619. package/examples/gitlab-agents/daily-code-scan/README.md +0 -80
  1620. package/examples/gitlab-agents/daily-code-scan/package.json +0 -28
  1621. package/examples/gitlab-agents/daily-code-scan/src/gitlab-client.ts +0 -135
  1622. package/examples/gitlab-agents/daily-code-scan/src/index.ts +0 -50
  1623. package/examples/gitlab-agents/daily-code-scan/src/types.ts +0 -22
  1624. package/examples/gitlab-agents/daily-code-scan/src/workflow.ts +0 -109
  1625. package/examples/gitlab-agents/daily-code-scan/tsconfig.json +0 -24
  1626. package/examples/gitlab-agents/duo-comment-responder/.env.example +0 -14
  1627. package/examples/gitlab-agents/duo-comment-responder/.gitlab-ci.yml +0 -34
  1628. package/examples/gitlab-agents/duo-comment-responder/Dockerfile +0 -18
  1629. package/examples/gitlab-agents/duo-comment-responder/README.md +0 -98
  1630. package/examples/gitlab-agents/duo-comment-responder/package.json +0 -29
  1631. package/examples/gitlab-agents/duo-comment-responder/src/gitlab-client.ts +0 -56
  1632. package/examples/gitlab-agents/duo-comment-responder/src/index.ts +0 -103
  1633. package/examples/gitlab-agents/duo-comment-responder/src/llm-client.ts +0 -75
  1634. package/examples/gitlab-agents/duo-comment-responder/src/types.ts +0 -22
  1635. package/examples/gitlab-agents/duo-comment-responder/src/workflow.ts +0 -135
  1636. package/examples/gitlab-agents/duo-comment-responder/tsconfig.json +0 -24
  1637. package/examples/gitlab-agents/duo-comment-responder/webhook-config.json +0 -11
  1638. package/examples/gitlab-agents/gitlab-ci-agent.ossa.yaml +0 -221
  1639. package/examples/gitlab-agents/k8s/deploy-all.yaml +0 -341
  1640. package/examples/gitlab-agents/mr-reviewer/.env.example +0 -14
  1641. package/examples/gitlab-agents/mr-reviewer/.gitlab-ci.yml +0 -34
  1642. package/examples/gitlab-agents/mr-reviewer/Dockerfile +0 -18
  1643. package/examples/gitlab-agents/mr-reviewer/README.md +0 -98
  1644. package/examples/gitlab-agents/mr-reviewer/package.json +0 -29
  1645. package/examples/gitlab-agents/mr-reviewer/src/gitlab-client.ts +0 -136
  1646. package/examples/gitlab-agents/mr-reviewer/src/index.ts +0 -103
  1647. package/examples/gitlab-agents/mr-reviewer/src/llm-client.ts +0 -95
  1648. package/examples/gitlab-agents/mr-reviewer/src/types.ts +0 -22
  1649. package/examples/gitlab-agents/mr-reviewer/src/workflow.ts +0 -144
  1650. package/examples/gitlab-agents/mr-reviewer/tsconfig.json +0 -24
  1651. package/examples/gitlab-agents/mr-reviewer/webhook-config.json +0 -11
  1652. package/examples/gitlab-agents/pipeline-auto-fix/.env.example +0 -14
  1653. package/examples/gitlab-agents/pipeline-auto-fix/.gitlab-ci.yml +0 -34
  1654. package/examples/gitlab-agents/pipeline-auto-fix/Dockerfile +0 -18
  1655. package/examples/gitlab-agents/pipeline-auto-fix/README.md +0 -98
  1656. package/examples/gitlab-agents/pipeline-auto-fix/package.json +0 -29
  1657. package/examples/gitlab-agents/pipeline-auto-fix/src/gitlab-client.ts +0 -76
  1658. package/examples/gitlab-agents/pipeline-auto-fix/src/index.ts +0 -103
  1659. package/examples/gitlab-agents/pipeline-auto-fix/src/llm-client.ts +0 -79
  1660. package/examples/gitlab-agents/pipeline-auto-fix/src/types.ts +0 -22
  1661. package/examples/gitlab-agents/pipeline-auto-fix/src/workflow.ts +0 -146
  1662. package/examples/gitlab-agents/pipeline-auto-fix/tsconfig.json +0 -24
  1663. package/examples/gitlab-agents/pipeline-auto-fix/webhook-config.json +0 -11
  1664. package/examples/gitlab-agents/pre-commit-quality-check/.env.example +0 -11
  1665. package/examples/gitlab-agents/pre-commit-quality-check/.gitlab-ci.yml +0 -34
  1666. package/examples/gitlab-agents/pre-commit-quality-check/Dockerfile +0 -18
  1667. package/examples/gitlab-agents/pre-commit-quality-check/README.md +0 -80
  1668. package/examples/gitlab-agents/pre-commit-quality-check/package.json +0 -28
  1669. package/examples/gitlab-agents/pre-commit-quality-check/src/gitlab-client.ts +0 -20
  1670. package/examples/gitlab-agents/pre-commit-quality-check/src/index.ts +0 -50
  1671. package/examples/gitlab-agents/pre-commit-quality-check/src/types.ts +0 -22
  1672. package/examples/gitlab-agents/pre-commit-quality-check/src/workflow.ts +0 -63
  1673. package/examples/gitlab-agents/pre-commit-quality-check/tsconfig.json +0 -24
  1674. package/examples/gitlab-agents/pre-push-validation/.env.example +0 -11
  1675. package/examples/gitlab-agents/pre-push-validation/.gitlab-ci.yml +0 -34
  1676. package/examples/gitlab-agents/pre-push-validation/Dockerfile +0 -18
  1677. package/examples/gitlab-agents/pre-push-validation/README.md +0 -80
  1678. package/examples/gitlab-agents/pre-push-validation/package.json +0 -28
  1679. package/examples/gitlab-agents/pre-push-validation/src/gitlab-client.ts +0 -20
  1680. package/examples/gitlab-agents/pre-push-validation/src/index.ts +0 -50
  1681. package/examples/gitlab-agents/pre-push-validation/src/types.ts +0 -22
  1682. package/examples/gitlab-agents/pre-push-validation/src/workflow.ts +0 -63
  1683. package/examples/gitlab-agents/pre-push-validation/tsconfig.json +0 -24
  1684. package/examples/gitlab-duo/EXTERNAL_AGENTS.md +0 -466
  1685. package/examples/gitlab-duo/README.md +0 -307
  1686. package/examples/gitlab-duo/code-review-flow.yaml +0 -62
  1687. package/examples/gitlab-duo/external-agent-example.ts +0 -192
  1688. package/examples/gitlab-duo/generated/custom-vars-agent.yaml +0 -45
  1689. package/examples/gitlab-duo/generated/go-agent.yaml +0 -41
  1690. package/examples/gitlab-duo/generated/python-agent.yaml +0 -43
  1691. package/examples/gitlab-duo/generated/webhook-agent.yaml +0 -52
  1692. package/examples/hierarchical-agent.ossa.yaml +0 -83
  1693. package/examples/hierarchical-crewai.ossa.yaml +0 -96
  1694. package/examples/infrastructure/token-rotation/README.md +0 -119
  1695. package/examples/infrastructure/token-rotation/manifest.ossa.yaml +0 -73
  1696. package/examples/infrastructure/token-rotation/openapi.yaml +0 -133
  1697. package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +0 -115
  1698. package/examples/kagent/README.md +0 -32
  1699. package/examples/kagent/compliance-validator.ossa.yaml +0 -100
  1700. package/examples/kagent/cost-optimizer.ossa.yaml +0 -81
  1701. package/examples/kagent/documentation-agent.ossa.yaml +0 -79
  1702. package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +0 -87
  1703. package/examples/kagent/k8s-troubleshooter.ossa.yaml +0 -102
  1704. package/examples/kagent/ossa-kagent-anthropic.ossa.yaml +0 -36
  1705. package/examples/kagent/ossa-kagent-mcp-tools.ossa.yaml +0 -40
  1706. package/examples/kagent/ossa-kagent-multi-tool.ossa.yaml +0 -41
  1707. package/examples/kagent/ossa-kagent-poc.ossa.yaml +0 -32
  1708. package/examples/kagent/security-scanner.ossa.yaml +0 -84
  1709. package/examples/knowledge-graph/drupal-agent-with-kg.ossa.yaml +0 -289
  1710. package/examples/langchain/chain-agent.ossa.json +0 -58
  1711. package/examples/langflow/workflow-agent.ossa.json +0 -38
  1712. package/examples/langgraph/state-machine-agent.ossa.json +0 -58
  1713. package/examples/lifecycle/mentoring-agent.ossa.json +0 -293
  1714. package/examples/llamaindex/rag-agent.ossa.json +0 -40
  1715. package/examples/mcp/browser-puppeteer.ossa.yaml +0 -232
  1716. package/examples/mcp/database-mcp.ossa.yaml +0 -134
  1717. package/examples/mcp/filesystem-mcp.ossa.yaml +0 -101
  1718. package/examples/messaging/dependency-healer.ossa.yaml +0 -354
  1719. package/examples/messaging/incident-responder.ossa.yaml +0 -477
  1720. package/examples/messaging/routing-rules.ossa.yaml +0 -200
  1721. package/examples/messaging/security-scanner.ossa.yaml +0 -335
  1722. package/examples/migration-guides/from-langchain-to-ossa.yaml +0 -309
  1723. package/examples/migrations/crewai-to-ossa/README.md +0 -66
  1724. package/examples/migrations/langchain/01-python-react-agent-after.ossa.yaml +0 -38
  1725. package/examples/migrations/langchain/01-python-react-agent-before.py +0 -62
  1726. package/examples/migrations/langchain/02-typescript-conversational-after.ossa.yaml +0 -40
  1727. package/examples/migrations/langchain/02-typescript-conversational-before.ts +0 -79
  1728. package/examples/migrations/langchain/03-sequential-chain-after.ossa.yaml +0 -95
  1729. package/examples/migrations/langchain/03-sequential-chain-before.py +0 -100
  1730. package/examples/migrations/langchain/04-config-based-after.ossa.yaml +0 -54
  1731. package/examples/migrations/langchain/04-config-based-before.yaml +0 -52
  1732. package/examples/migrations/langchain/INTEGRATION-EXAMPLE.txt +0 -335
  1733. package/examples/migrations/langchain/USAGE.txt +0 -121
  1734. package/examples/migrations/langchain/test-migrations.ts +0 -135
  1735. package/examples/migrations/langchain-to-ossa/README.md +0 -73
  1736. package/examples/migrations/swarm-to-ossa/COMPARISON.md +0 -350
  1737. package/examples/migrations/swarm-to-ossa/INDEX.md +0 -355
  1738. package/examples/migrations/swarm-to-ossa/MIGRATION-FLOW.md +0 -410
  1739. package/examples/migrations/swarm-to-ossa/QUICKSTART.md +0 -453
  1740. package/examples/migrations/swarm-to-ossa/README.md +0 -665
  1741. package/examples/migrations/swarm-to-ossa/after-handoffs.ossa.yaml +0 -482
  1742. package/examples/migrations/swarm-to-ossa/after-triage-agent.ossa.yaml +0 -315
  1743. package/examples/migrations/swarm-to-ossa/before-triage-agent.py +0 -234
  1744. package/examples/minimal/agent.yml +0 -152
  1745. package/examples/minimal/openapi.yaml +0 -95
  1746. package/examples/mistral-adapter-example.ts +0 -435
  1747. package/examples/mistral-simple.ts +0 -56
  1748. package/examples/mr-reviewer-with-governance.ossa.yaml +0 -130
  1749. package/examples/multi-agent/README.md +0 -74
  1750. package/examples/multi-agent/conditional-router.ossa.yaml +0 -42
  1751. package/examples/multi-agent/parallel-execution.ossa.yaml +0 -54
  1752. package/examples/multi-agent/sequential-pipeline.ossa.yaml +0 -45
  1753. package/examples/multi-agent-research-workflow.ossa.yaml +0 -133
  1754. package/examples/multi-platform/single-manifest/README.md +0 -72
  1755. package/examples/multi-platform/single-manifest/agent.ossa.yaml +0 -32
  1756. package/examples/npm-export-example.ts +0 -150
  1757. package/examples/observability/activity-stream-full.yaml +0 -133
  1758. package/examples/observability/gitlab-ci-template.yml +0 -304
  1759. package/examples/openai/basic-agent.ossa.yaml +0 -60
  1760. package/examples/openai/multi-tool-agent.ossa.json +0 -188
  1761. package/examples/openai/swarm-agent.ossa.json +0 -72
  1762. package/examples/openapi-extensions/README.md +0 -87
  1763. package/examples/openapi-extensions/minimal-agent-api.openapi.yml +0 -288
  1764. package/examples/openapi-extensions/orchestrator-agent-api.openapi.yml +0 -633
  1765. package/examples/openapi-extensions/worker-agent-api.openapi.yml +0 -533
  1766. package/examples/ossa-templates/01-code-assistant.ossa.yaml +0 -114
  1767. package/examples/ossa-templates/02-security-scanner.ossa.yaml +0 -103
  1768. package/examples/ossa-templates/03-ci-pipeline.ossa.yaml +0 -100
  1769. package/examples/ossa-templates/04-code-reviewer.ossa.yaml +0 -116
  1770. package/examples/ossa-templates/05-doc-generator.ossa.yaml +0 -102
  1771. package/examples/ossa-templates/06-compliance-validator.ossa.yaml +0 -132
  1772. package/examples/ossa-templates/07-workflow-orchestrator.ossa.yaml +0 -110
  1773. package/examples/ossa-templates/08-content-writer.ossa.yaml +0 -136
  1774. package/examples/ossa-templates/09-test-generator.ossa.yaml +0 -113
  1775. package/examples/ossa-templates/10-data-transformer.ossa.yaml +0 -102
  1776. package/examples/ossa-templates/11-react-performance-expert.ossa.yaml +0 -384
  1777. package/examples/ossa-templates/12-typescript-type-safety-expert.ossa.yaml +0 -265
  1778. package/examples/ossa-templates/13-accessibility-champion.ossa.yaml +0 -264
  1779. package/examples/ossa-templates/14-security-hardening-agent.ossa.yaml +0 -267
  1780. package/examples/ossa-templates/README.md +0 -98
  1781. package/examples/pipeline-agent.ossa.yaml +0 -196
  1782. package/examples/platform-specific/claude-code-subagent.yaml +0 -185
  1783. package/examples/platform-specific/cursor-coding-agent.yaml +0 -175
  1784. package/examples/platform-specific/warp-terminal-agent.yaml +0 -122
  1785. package/examples/production/agent.yml +0 -713
  1786. package/examples/production/document-analyzer-openai.yml +0 -134
  1787. package/examples/production-ready/01-customer-support-bot/.env.example +0 -32
  1788. package/examples/production-ready/01-customer-support-bot/Dockerfile +0 -30
  1789. package/examples/production-ready/01-customer-support-bot/README.md +0 -295
  1790. package/examples/production-ready/01-customer-support-bot/agent.ossa.yaml +0 -165
  1791. package/examples/production-ready/01-customer-support-bot/docker-compose.yml +0 -55
  1792. package/examples/production-ready/01-customer-support-bot/openapi.yaml +0 -238
  1793. package/examples/production-ready/01-customer-support-bot/package.json +0 -48
  1794. package/examples/production-ready/02-code-review-agent/README.md +0 -72
  1795. package/examples/production-ready/02-code-review-agent/agent.ossa.yaml +0 -239
  1796. package/examples/production-ready/02-code-review-agent/docker-compose.yml +0 -22
  1797. package/examples/production-ready/02-code-review-agent/openapi.yaml +0 -150
  1798. package/examples/production-ready/03-data-analysis-agent/README.md +0 -51
  1799. package/examples/production-ready/03-data-analysis-agent/agent.ossa.yaml +0 -97
  1800. package/examples/production-ready/03-data-analysis-agent/openapi.yaml +0 -74
  1801. package/examples/production-ready/04-content-moderator/README.md +0 -55
  1802. package/examples/production-ready/04-content-moderator/agent.ossa.yaml +0 -131
  1803. package/examples/production-ready/04-content-moderator/openapi.yaml +0 -50
  1804. package/examples/production-ready/05-sales-assistant/README.md +0 -37
  1805. package/examples/production-ready/05-sales-assistant/agent.ossa.yaml +0 -158
  1806. package/examples/production-ready/05-sales-assistant/openapi.yaml +0 -59
  1807. package/examples/production-ready/06-devops-agent/README.md +0 -39
  1808. package/examples/production-ready/06-devops-agent/agent.ossa.yaml +0 -141
  1809. package/examples/production-ready/06-devops-agent/openapi.yaml +0 -51
  1810. package/examples/production-ready/07-research-assistant/README.md +0 -31
  1811. package/examples/production-ready/07-research-assistant/agent.ossa.yaml +0 -127
  1812. package/examples/production-ready/07-research-assistant/openapi.yaml +0 -56
  1813. package/examples/production-ready/08-email-triage-agent/README.md +0 -33
  1814. package/examples/production-ready/08-email-triage-agent/agent.ossa.yaml +0 -133
  1815. package/examples/production-ready/08-email-triage-agent/openapi.yaml +0 -41
  1816. package/examples/production-ready/09-security-scanner/README.md +0 -49
  1817. package/examples/production-ready/09-security-scanner/agent.ossa.yaml +0 -174
  1818. package/examples/production-ready/09-security-scanner/openapi.yaml +0 -46
  1819. package/examples/production-ready/10-meeting-assistant/README.md +0 -53
  1820. package/examples/production-ready/10-meeting-assistant/agent.ossa.yaml +0 -203
  1821. package/examples/production-ready/10-meeting-assistant/docker-compose.yml +0 -27
  1822. package/examples/production-ready/10-meeting-assistant/openapi.yaml +0 -131
  1823. package/examples/production-ready/COMPLETION_REPORT.txt +0 -272
  1824. package/examples/production-ready/INDEX.md +0 -296
  1825. package/examples/production-ready/README.md +0 -452
  1826. package/examples/production-ready/SUMMARY.md +0 -362
  1827. package/examples/production-ready/TEST_RESULTS.md +0 -458
  1828. package/examples/quickstart/support-agent.ossa.yaml +0 -57
  1829. package/examples/rag-agent/README.md +0 -136
  1830. package/examples/rag-agent/index.ts +0 -272
  1831. package/examples/rag-agent/manifest.yaml +0 -45
  1832. package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +0 -171
  1833. package/examples/real-world/rag-documentation-assistant.ossa.yaml +0 -229
  1834. package/examples/reference-implementations/README.md +0 -321
  1835. package/examples/reference-implementations/curl-scripts/README.md +0 -277
  1836. package/examples/reference-implementations/python-client/README.md +0 -282
  1837. package/examples/reference-implementations/python-client/examples/basic_usage.py +0 -84
  1838. package/examples/reference-implementations/python-client/examples/publish_agent.py +0 -137
  1839. package/examples/reference-implementations/python-client/ossa_client/__init__.py +0 -80
  1840. package/examples/reference-implementations/python-client/ossa_client/agents.py +0 -240
  1841. package/examples/reference-implementations/python-client/ossa_client/client.py +0 -164
  1842. package/examples/reference-implementations/python-client/ossa_client/discovery.py +0 -153
  1843. package/examples/reference-implementations/python-client/ossa_client/messaging.py +0 -227
  1844. package/examples/reference-implementations/python-client/requirements.txt +0 -2
  1845. package/examples/reference-implementations/python-client/setup.py +0 -40
  1846. package/examples/reference-implementations/typescript-client/README.md +0 -227
  1847. package/examples/reference-implementations/typescript-client/examples/basic-usage.ts +0 -86
  1848. package/examples/reference-implementations/typescript-client/examples/messaging.ts +0 -185
  1849. package/examples/reference-implementations/typescript-client/examples/publish-agent.ts +0 -138
  1850. package/examples/reference-implementations/typescript-client/package.json +0 -40
  1851. package/examples/reference-implementations/typescript-client/src/agents.ts +0 -285
  1852. package/examples/reference-implementations/typescript-client/src/client.ts +0 -161
  1853. package/examples/reference-implementations/typescript-client/src/discovery.ts +0 -244
  1854. package/examples/reference-implementations/typescript-client/src/index.ts +0 -67
  1855. package/examples/reference-implementations/typescript-client/src/messaging.ts +0 -385
  1856. package/examples/reference-implementations/typescript-client/tsconfig.json +0 -25
  1857. package/examples/registry/USAGE.txt +0 -105
  1858. package/examples/registry/agents/code-reviewer/agent.yaml +0 -159
  1859. package/examples/registry/agents/security-scanner/agent.yaml +0 -128
  1860. package/examples/registry/index.json +0 -5
  1861. package/examples/roles/drupal-developer.role.yaml +0 -37
  1862. package/examples/roles/platform-operator.role.yaml +0 -28
  1863. package/examples/roles/security-auditor.role.yaml +0 -27
  1864. package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +0 -99
  1865. package/examples/schema/reusable-components.yaml +0 -95
  1866. package/examples/service-registry-usage.ts +0 -423
  1867. package/examples/showcase/PRODUCTION_EXAMPLES.md +0 -499
  1868. package/examples/showcase/ci-pipeline.ossa.yaml +0 -55
  1869. package/examples/showcase/code-assistant.ossa.yaml +0 -104
  1870. package/examples/showcase/code-reviewer.ossa.yaml +0 -58
  1871. package/examples/showcase/compliance-checker.ossa.yaml +0 -207
  1872. package/examples/showcase/compliance-validator.ossa.yaml +0 -61
  1873. package/examples/showcase/content-writer.ossa.yaml +0 -70
  1874. package/examples/showcase/customer-support.ossa.yaml +0 -344
  1875. package/examples/showcase/data-processing-pipeline.ossa.yaml +0 -254
  1876. package/examples/showcase/data-transformer.ossa.yaml +0 -76
  1877. package/examples/showcase/doc-generator.ossa.yaml +0 -66
  1878. package/examples/showcase/full-power-agent.ossa.yaml +0 -350
  1879. package/examples/showcase/security-scanner-enhanced.ossa.yaml +0 -304
  1880. package/examples/showcase/security-scanner.ossa.yaml +0 -66
  1881. package/examples/showcase/team-leader.ossa.yaml +0 -306
  1882. package/examples/showcase/test-generator.ossa.yaml +0 -37
  1883. package/examples/showcase/workflow-orchestrator.ossa.yaml +0 -114
  1884. package/examples/single-agent.ossa.yaml +0 -40
  1885. package/examples/skills/drupal-code-analysis/skill.ossa.yaml +0 -111
  1886. package/examples/skills/git-commit-review/skill.ossa.yaml +0 -86
  1887. package/examples/skills/tdd-workflow/skill.ossa.yaml +0 -93
  1888. package/examples/skills-example.ossa.yaml +0 -140
  1889. package/examples/spec-examples/audit-agent.yml +0 -147
  1890. package/examples/spec-examples/chat-agent.yml +0 -189
  1891. package/examples/spec-examples/compliance-agent.yml +0 -204
  1892. package/examples/spec-examples/data-processing-agent.yml +0 -132
  1893. package/examples/spec-examples/development-agent.yml +0 -138
  1894. package/examples/spec-examples/edge-agent.yml +0 -101
  1895. package/examples/spec-examples/integration-agent.yml +0 -129
  1896. package/examples/spec-examples/monitoring-agent.yml +0 -130
  1897. package/examples/spec-examples/serverless-agent.yml +0 -82
  1898. package/examples/spec-examples/workflow-agent.yml +0 -223
  1899. package/examples/subagents-pipeline.ossa.yaml +0 -76
  1900. package/examples/swarm/pso-optimizer.ossa.json +0 -171
  1901. package/examples/swarm-agent.ossa.yaml +0 -98
  1902. package/examples/swarm-handoff.ossa.yaml +0 -67
  1903. package/examples/tasks/batch-email-sender.yaml +0 -105
  1904. package/examples/tasks/data-transform.yaml +0 -82
  1905. package/examples/tasks/publish-content.yaml +0 -86
  1906. package/examples/team-agent.ossa.yaml +0 -110
  1907. package/examples/team-lead-teammate.ossa.yaml +0 -78
  1908. package/examples/templates/ossa-compliance.yaml +0 -56
  1909. package/examples/token-efficiency/security-scanner.ossa.yaml +0 -53
  1910. package/examples/typescript/advanced/demo-registry.ts +0 -168
  1911. package/examples/typescript/mcpb-agent-example.ts +0 -358
  1912. package/examples/unified/security-scanner.ossa.yaml +0 -308
  1913. package/examples/validation/error-codes-demo.ts +0 -254
  1914. package/examples/vercel/edge-agent.ossa.json +0 -44
  1915. package/examples/workflow-agent/README.md +0 -175
  1916. package/examples/workflow-agent/index.ts +0 -408
  1917. package/examples/workflow-agent/manifest.yaml +0 -41
  1918. package/examples/workflows/batch-email-campaign.yaml +0 -140
  1919. package/examples/workflows/content-review-publish.yaml +0 -156
  1920. package/examples/workflows/simple-etl.yaml +0 -151
  1921. package/openapi/CHANGELOG.md +0 -21
  1922. package/openapi/README.md +0 -46
  1923. package/openapi/agent-cognition-sessions.yaml +0 -580
  1924. package/openapi/agent-communication.yaml +0 -1120
  1925. package/openapi/agent-crud.yaml +0 -1102
  1926. package/openapi/agent-discovery.yaml +0 -715
  1927. package/openapi/agent-identity.yaml +0 -652
  1928. package/openapi/agent-taxonomy.yaml +0 -378
  1929. package/openapi/agents-md-service.yaml +0 -411
  1930. package/openapi/cli/openapi.yaml +0 -1732
  1931. package/openapi/core/ossa-core-api.openapi.yaml +0 -1321
  1932. package/openapi/core/ossa-registry-api.openapi.yaml +0 -1043
  1933. package/openapi/core/ossa-registry.openapi.yaml +0 -964
  1934. package/openapi/core/unified-agent-gateway.openapi.yaml +0 -897
  1935. package/openapi/daemon-api.openapi.yaml +0 -968
  1936. package/openapi/dev-cli/openapi.yaml +0 -992
  1937. package/openapi/github-sync.yaml +0 -158
  1938. package/openapi/marketplace-plugin.openapi.yaml +0 -2358
  1939. package/openapi/ossa-api.openapi.yaml +0 -1237
  1940. package/openapi/ossa-cli-enhancements.openapi.yaml +0 -608
  1941. package/openapi/ossa-cli.yaml +0 -1051
  1942. package/openapi/protocols/sse-streams.yaml +0 -471
  1943. package/openapi/protocols/websocket-events.yaml +0 -434
  1944. package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +0 -153
  1945. package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +0 -204
  1946. package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +0 -160
  1947. package/openapi/reference-implementations/critic-agent-api.openapi.yaml +0 -177
  1948. package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +0 -223
  1949. package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +0 -399
  1950. package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +0 -160
  1951. package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +0 -155
  1952. package/openapi/reference-implementations/governor-agent-api.openapi.yaml +0 -211
  1953. package/openapi/reference-implementations/helm-generator.openapi.yaml +0 -431
  1954. package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +0 -175
  1955. package/openapi/reference-implementations/judge-agent-api.openapi.yaml +0 -154
  1956. package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +0 -181
  1957. package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +0 -182
  1958. package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +0 -184
  1959. package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +0 -264
  1960. package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +0 -195
  1961. package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +0 -1664
  1962. package/openapi/reference-implementations/worker-agent-api.openapi.yaml +0 -219
  1963. package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +0 -207
  1964. package/openapi/registry.yaml +0 -49
  1965. package/openapi/release-automation.openapi.yaml +0 -178
  1966. package/openapi/schemas/common/agent.yaml +0 -264
  1967. package/openapi/schemas/common/economics.yaml +0 -98
  1968. package/openapi/schemas/common/errors.yaml +0 -85
  1969. package/openapi/schemas/common/metadata.yaml +0 -86
  1970. package/openapi/schemas/common/pagination.yaml +0 -84
  1971. package/openapi/schemas/common/security.yaml +0 -96
  1972. package/openapi/schemas/discovery.json +0 -488
  1973. package/openapi/schemas/index.yaml +0 -95
  1974. package/openapi/uadp-asyncapi.yaml +0 -434
  1975. package/openapi/uadp-openapi.yaml +0 -865
  1976. package/openapi/version-management.openapi.yaml +0 -761
  1977. package/spec/extensions/a2a-messaging.md +0 -471
  1978. package/spec/extensions/cognition.schema.json +0 -87
  1979. package/spec/extensions/knowledge-graph/knowledge-graph.schema.json +0 -386
  1980. package/spec/extensions/manifest-extensions.md +0 -550
  1981. package/spec/extensions/openapi/ossa-openapi-extensions.schema.json +0 -804
  1982. package/spec/extensions/role-manifest.md +0 -188
  1983. package/spec/extensions/skills-compatibility.md +0 -292
  1984. package/spec/layer4-economics/duadp-examples.json +0 -44
  1985. package/spec/ossa-audit-api.yaml +0 -311
  1986. package/spec/schema/agent-test.schema.json +0 -117
  1987. package/spec/schema/components/activity-stream.schema.json +0 -94
  1988. package/spec/schema/components/adapter.schema.json +0 -33
  1989. package/spec/schema/components/constraints.schema.json +0 -84
  1990. package/spec/schema/components/dependencies.schema.json +0 -147
  1991. package/spec/schema/components/encryption.schema.json +0 -115
  1992. package/spec/schema/components/identity.schema.json +0 -126
  1993. package/spec/schema/components/index.json +0 -37
  1994. package/spec/schema/components/llm-config.schema.json +0 -67
  1995. package/spec/schema/components/metadata.schema.json +0 -52
  1996. package/spec/schema/components/tool.schema.json +0 -64
  1997. package/spec/schema/extensions/a2a.extension.schema.json +0 -127
  1998. package/spec/uadp/README.md +0 -393
  1999. package/spec/uadp/openapi.yaml +0 -387
  2000. package/spec/uadp/schemas/uadp-agents-response.schema.json +0 -68
  2001. package/spec/uadp/schemas/uadp-federation-response.schema.json +0 -46
  2002. package/spec/uadp/schemas/uadp-manifest.schema.json +0 -82
  2003. package/spec/uadp/schemas/uadp-skills-response.schema.json +0 -72
  2004. package/spec/v0.4/agent-card.schema.json +0 -477
  2005. package/spec/v0.4/agent.schema.json +0 -1581
  2006. package/spec/v0.4/conformance/profiles/baseline.json +0 -19
  2007. package/spec/v0.4/conformance/profiles/enterprise.json +0 -20
  2008. package/spec/v0.4/extensions/a2a/README.md +0 -193
  2009. package/spec/v0.4/extensions/a2a/a2a.schema.json +0 -77
  2010. package/spec/v0.4/extensions/ag2/ag2.schema.json +0 -277
  2011. package/spec/v0.4/extensions/cognition/cognition.schema.json +0 -94
  2012. package/spec/v0.4/extensions/cognition/thought-node.schema.json +0 -80
  2013. package/spec/v0.4/extensions/crewai/crewai.schema.json +0 -256
  2014. package/spec/v0.4/extensions/drupal/drupal.schema.json +0 -318
  2015. package/spec/v0.4/extensions/evals/evals.schema.json +0 -597
  2016. package/spec/v0.4/extensions/governance/governance-extension.yaml +0 -161
  2017. package/spec/v0.4/extensions/identity/identity.schema.json +0 -302
  2018. package/spec/v0.4/extensions/kagent/README.md +0 -315
  2019. package/spec/v0.4/extensions/kagent/kagent.schema.json +0 -624
  2020. package/spec/v0.4/extensions/langchain/langchain.schema.json +0 -243
  2021. package/spec/v0.4/extensions/langgraph/langgraph.schema.json +0 -211
  2022. package/spec/v0.4/extensions/mcp/README.md +0 -276
  2023. package/spec/v0.4/extensions/mcp/mcp.schema.json +0 -84
  2024. package/spec/v0.4/extensions/memory/memory.schema.json +0 -7
  2025. package/spec/v0.4/extensions/team/team.schema.json +0 -304
  2026. package/spec/v0.4/extensions/token-efficiency/token-efficiency.schema.json +0 -47
  2027. package/spec/v0.4/mcp.schema.json +0 -1
  2028. package/spec/v0.4/skill.schema.json +0 -1
  2029. package/spec/v0.4/validator.schema.json +0 -282
  2030. package/spec/v1/agent-card.schema.json +0 -254
  2031. package/spec/v1/mcp.schema.json +0 -183
  2032. package/spec/v1/skill.schema.json +0 -346
  2033. package/templates/agent-types/claude-agent.ossa.yaml +0 -83
  2034. package/templates/agent-types/kagent.ossa.yaml +0 -110
  2035. package/templates/agent-types/langchain-agent.ossa.yaml +0 -106
  2036. package/templates/agent-types/openapi-agent.ossa.yaml +0 -121
  2037. package/templates/agent-types/swarm-agents.ossa.yaml +0 -168
  2038. package/templates/ci-cd/github-actions.deploy.yml +0 -272
  2039. package/templates/ci-cd/gitlab-ci.deploy.yml +0 -205
  2040. package/templates/validators/capability-compatibility.ossa.yaml +0 -174
  2041. package/templates/validators/coordination-consistency.ossa.yaml +0 -160
  2042. package/templates/validators/pattern-requirements.ossa.yaml +0 -182
  2043. package/templates/validators/transport-compatibility.ossa.yaml +0 -185
@@ -1,2628 +0,0 @@
1
- /**
2
- * Drupal Module Generator for OSSA Agents
3
- *
4
- * Generates complete, production-ready Drupal modules from OSSA agent manifests.
5
- * Uses modern PHP 8 syntax: attributes instead of annotations, OO hook classes,
6
- * constructor property promotion, and Drupal AI module integration.
7
- *
8
- * Generated modules include:
9
- * - MODULE.info.yml (module metadata)
10
- * - MODULE.services.yml (DI configuration)
11
- * - src/Service/AgentExecutorService.php (uses drupal/ai provider system)
12
- * - src/Plugin/QueueWorker/ (async execution with #[QueueWorker] attribute)
13
- * - src/Plugin/Tool/ (Tool API plugins with #[Tool] attributes)
14
- * - src/Plugin/Action/ (Action plugins for CUD tools with #[Action] attributes)
15
- * - src/Plugin/Condition/ (Condition plugins from safety guardrails with #[Condition] attributes)
16
- * - src/Controller/ (admin UI and API endpoints)
17
- * - src/Entity/ (agent result storage with #[ContentEntityType] attribute)
18
- * - src/Form/ (configuration forms)
19
- * - src/Hook/ (OO hook classes with #[Hook] attributes)
20
- * - MODULE.module (minimal procedural hooks)
21
- * - templates/*.html.twig (Twig templates)
22
- * - composer.json (with drupal/ai, drupal/ai_agents, drupal/tool)
23
- * - config/schema/MODULE.schema.yml (configuration schema)
24
- * - config/install/*.yml (default configuration)
25
- * - config/install/eca.model.*.yml (ECA event-condition-action models)
26
- *
27
- * SOLID Principles:
28
- * - Single Responsibility: Drupal module generation only
29
- * - Dependency Inversion: Uses Drupal AI module for LLM provider access
30
- * - Interface Segregation: Separate interfaces for different module components
31
- *
32
- * DRY: Reuses Drupal AI module patterns, no duplication
33
- */
34
- import { BaseAdapter } from '../base/adapter.interface.js';
35
- import { sanitizeModuleName, toClassName, toLabel, validateDrupalCompatibility, buildValidationResult, extractCapabilities, extractTools, mapOssaToolToDrupalTool, } from './drupal-utils.js';
36
- export class DrupalModuleGenerator extends BaseAdapter {
37
- platform = 'drupal';
38
- displayName = 'Drupal Module (Full)';
39
- description = 'Production-ready Drupal module with OSSA/AI module integration';
40
- status = 'beta';
41
- supportedVersions = ['v{{VERSION}}'];
42
- /**
43
- * Generate complete Drupal module from OSSA manifest
44
- */
45
- async export(manifest, options) {
46
- const startTime = Date.now();
47
- try {
48
- // Validate manifest
49
- if (options?.validate !== false) {
50
- const validation = await this.validate(manifest);
51
- if (!validation.valid) {
52
- return this.createResult(false, [], `Validation failed: ${validation.errors?.map((e) => e.message).join(', ')}`, {
53
- duration: Date.now() - startTime,
54
- warnings: validation.warnings?.map((w) => w.message),
55
- });
56
- }
57
- }
58
- const moduleName = sanitizeModuleName(manifest.metadata?.name || 'ossa_agent');
59
- const className = toClassName(moduleName);
60
- // Default options
61
- const opts = {
62
- includeQueueWorker: true,
63
- includeEntity: true,
64
- includeController: true,
65
- includeConfigForm: true,
66
- includeHooks: true,
67
- includeViews: true,
68
- includeToolPlugins: true,
69
- includeEcaModels: true,
70
- includeActionPlugins: true,
71
- includeConditionPlugins: true,
72
- coreVersion: '^10 || ^11',
73
- validate: options?.validate ?? true,
74
- ...options,
75
- };
76
- const files = [];
77
- // ===================================================================
78
- // Core Module Files
79
- // ===================================================================
80
- // MODULE.info.yml
81
- files.push(this.createFile(`${moduleName}/${moduleName}.info.yml`, this.generateInfoYml(manifest, moduleName, opts), 'config'));
82
- // MODULE.services.yml
83
- files.push(this.createFile(`${moduleName}/${moduleName}.services.yml`, this.generateServicesYml(manifest, moduleName, className, opts), 'config'));
84
- // composer.json
85
- files.push(this.createFile(`${moduleName}/composer.json`, this.generateComposerJson(manifest, moduleName), 'config'));
86
- // MODULE.module (minimal procedural hooks)
87
- if (opts.includeHooks) {
88
- files.push(this.createFile(`${moduleName}/${moduleName}.module`, this.generateModuleHooks(manifest, moduleName, className), 'code', 'php'));
89
- // OO Hook classes (PHP 8 attribute-based hooks)
90
- const hookFiles = this.generateHookClasses(manifest, moduleName, className);
91
- files.push(...hookFiles);
92
- }
93
- // ===================================================================
94
- // Service Classes
95
- // ===================================================================
96
- // src/Service/AgentExecutorService.php
97
- files.push(this.createFile(`${moduleName}/src/Service/AgentExecutorService.php`, this.generateAgentExecutorService(manifest, moduleName, className), 'code', 'php'));
98
- // ===================================================================
99
- // Queue Worker (Async Execution)
100
- // ===================================================================
101
- if (opts.includeQueueWorker) {
102
- files.push(this.createFile(`${moduleName}/src/Plugin/QueueWorker/AgentQueueWorker.php`, this.generateQueueWorker(manifest, moduleName, className), 'code', 'php'));
103
- }
104
- // ===================================================================
105
- // Entity (Result Storage)
106
- // ===================================================================
107
- if (opts.includeEntity) {
108
- // Entity class
109
- files.push(this.createFile(`${moduleName}/src/Entity/AgentResult.php`, this.generateEntityClass(manifest, moduleName, className), 'code', 'php'));
110
- // Entity interface
111
- files.push(this.createFile(`${moduleName}/src/Entity/AgentResultInterface.php`, this.generateEntityInterface(moduleName), 'code', 'php'));
112
- // Views data
113
- if (opts.includeViews) {
114
- files.push(this.createFile(`${moduleName}/${moduleName}.views.inc`, this.generateViewsData(moduleName, className), 'code', 'php'));
115
- }
116
- }
117
- // ===================================================================
118
- // Controller (Admin UI + API)
119
- // ===================================================================
120
- if (opts.includeController) {
121
- files.push(this.createFile(`${moduleName}/src/Controller/AgentController.php`, this.generateController(manifest, moduleName, className), 'code', 'php'));
122
- // Routing
123
- files.push(this.createFile(`${moduleName}/${moduleName}.routing.yml`, this.generateRouting(moduleName), 'config'));
124
- }
125
- // ===================================================================
126
- // Configuration Form
127
- // ===================================================================
128
- if (opts.includeConfigForm) {
129
- files.push(this.createFile(`${moduleName}/src/Form/AgentConfigForm.php`, this.generateConfigForm(manifest, moduleName, className), 'code', 'php'));
130
- // Menu links
131
- files.push(this.createFile(`${moduleName}/${moduleName}.links.menu.yml`, this.generateMenuLinks(moduleName), 'config'));
132
- }
133
- // ===================================================================
134
- // Tool API Plugins (drupal/tool integration)
135
- // ===================================================================
136
- const tools = extractTools(manifest);
137
- if (opts.includeToolPlugins && tools.length > 0) {
138
- for (const tool of tools) {
139
- const drupalTool = mapOssaToolToDrupalTool(tool, moduleName);
140
- const toolClassName = toClassName(sanitizeModuleName(tool.name || 'unknown_tool'));
141
- // Tool plugin class
142
- files.push(this.createFile(`${moduleName}/src/Plugin/Tool/${toolClassName}Tool.php`, this.generateToolPlugin(manifest, moduleName, className, tool, drupalTool), 'code', 'php'));
143
- // Tool AI connector config
144
- files.push(this.createFile(`${moduleName}/config/install/tool_ai_connector.tool.${drupalTool.id}.yml`, this.generateToolAiConnectorConfig(drupalTool), 'config'));
145
- }
146
- }
147
- // ===================================================================
148
- // ECA Model YAML (Event-Condition-Action)
149
- // ===================================================================
150
- const ecaEvents = this.extractEcaEvents(manifest);
151
- if (opts.includeEcaModels && ecaEvents.length > 0) {
152
- const ecaFiles = this.generateEcaModels(manifest, moduleName, ecaEvents);
153
- files.push(...ecaFiles);
154
- }
155
- // ===================================================================
156
- // Action Plugins (for CUD tools: create/update/delete)
157
- // ===================================================================
158
- if (opts.includeActionPlugins && tools.length > 0) {
159
- const actionFiles = this.generateActionPlugins(manifest, moduleName, tools);
160
- files.push(...actionFiles);
161
- }
162
- // ===================================================================
163
- // Condition Plugins (from safety guardrails)
164
- // ===================================================================
165
- if (opts.includeConditionPlugins) {
166
- const conditionFiles = this.generateConditionPlugins(manifest, moduleName);
167
- files.push(...conditionFiles);
168
- }
169
- // ===================================================================
170
- // Configuration Schema
171
- // ===================================================================
172
- files.push(this.createFile(`${moduleName}/config/schema/${moduleName}.schema.yml`, this.generateConfigSchema(moduleName), 'config'));
173
- // Default configuration
174
- files.push(this.createFile(`${moduleName}/config/install/${moduleName}.settings.yml`, this.generateDefaultConfig(manifest), 'config'));
175
- // ===================================================================
176
- // Templates
177
- // ===================================================================
178
- files.push(this.createFile(`${moduleName}/templates/agent-result.html.twig`, this.generateAgentResultTemplate(moduleName), 'other'));
179
- files.push(this.createFile(`${moduleName}/templates/agent-execute-form.html.twig`, this.generateExecuteFormTemplate(moduleName), 'other'));
180
- // ===================================================================
181
- // Documentation
182
- // ===================================================================
183
- files.push(this.createFile(`${moduleName}/README.md`, this.generateReadme(manifest, moduleName, opts), 'documentation'));
184
- files.push(this.createFile(`${moduleName}/INSTALL.md`, this.generateInstallGuide(manifest, moduleName), 'documentation'));
185
- // ===================================================================
186
- // Original OSSA Manifest
187
- // ===================================================================
188
- files.push(this.createFile(`${moduleName}/config/ossa/agent.ossa.yaml`, JSON.stringify(manifest, null, 2), 'config'));
189
- // ===================================================================
190
- // Recipe (Composable Installation)
191
- // ===================================================================
192
- files.push(this.createFile(`${moduleName}/recipes/${moduleName}-agent/recipe.yml`, this.generateRecipe(manifest, moduleName, tools), 'config'));
193
- // Perfect Agent files
194
- files.push(...(await this.generatePerfectAgentFiles(manifest, options)));
195
- return this.createResult(true, files, undefined, {
196
- duration: Date.now() - startTime,
197
- version: '1.0.0',
198
- moduleName,
199
- });
200
- }
201
- catch (error) {
202
- return this.createResult(false, [], error instanceof Error ? error.message : String(error), { duration: Date.now() - startTime });
203
- }
204
- }
205
- /**
206
- * Validate manifest for Drupal compatibility
207
- */
208
- async validate(manifest) {
209
- const errors = [];
210
- const warnings = [];
211
- // Base validation
212
- const baseValidation = await super.validate(manifest);
213
- if (baseValidation.errors)
214
- errors.push(...baseValidation.errors);
215
- if (baseValidation.warnings)
216
- warnings.push(...baseValidation.warnings);
217
- // Drupal-specific validation
218
- const drupalValidation = validateDrupalCompatibility(manifest);
219
- errors.push(...drupalValidation.errors);
220
- warnings.push(...drupalValidation.warnings);
221
- return buildValidationResult(errors, warnings);
222
- }
223
- /**
224
- * Get example manifest optimized for Drupal
225
- */
226
- getExample() {
227
- return {
228
- apiVersion: 'ossa/v{{VERSION}}',
229
- kind: 'Agent',
230
- metadata: {
231
- name: 'content_moderator',
232
- version: '1.0.0',
233
- description: 'AI-powered content moderation agent for Drupal',
234
- },
235
- spec: {
236
- role: 'Review and moderate user-generated content for quality and compliance',
237
- llm: {
238
- provider: 'anthropic',
239
- model: 'claude-sonnet-4-20250514',
240
- temperature: 0.7,
241
- maxTokens: 2048,
242
- },
243
- capabilities: [
244
- 'content-analysis',
245
- 'spam-detection',
246
- 'sentiment-analysis',
247
- 'auto-moderation',
248
- ],
249
- tools: [
250
- {
251
- type: 'api',
252
- name: 'analyze_content',
253
- description: 'Analyze content for spam, toxicity, and quality',
254
- },
255
- {
256
- type: 'api',
257
- name: 'moderate_node',
258
- description: 'Publish, unpublish, or flag a Drupal node',
259
- operation: 'update',
260
- },
261
- {
262
- type: 'api',
263
- name: 'delete_spam',
264
- description: 'Delete confirmed spam content',
265
- operation: 'delete',
266
- },
267
- ],
268
- safety: {
269
- guardrails: [
270
- {
271
- name: 'block_profanity',
272
- type: 'input',
273
- blocked_patterns: ['badword1', 'badword2'],
274
- },
275
- {
276
- name: 'max_output_length',
277
- type: 'output',
278
- maxLength: 5000,
279
- },
280
- ],
281
- },
282
- },
283
- extensions: {
284
- drupal: {
285
- eca_events: ['entity:node:presave'],
286
- },
287
- },
288
- };
289
- }
290
- // ===================================================================
291
- // Generator Methods
292
- // ===================================================================
293
- /**
294
- * Generate MODULE.info.yml
295
- */
296
- generateInfoYml(manifest, moduleName, options) {
297
- const dependencies = ['ai:ai', 'ai:ai_agents'];
298
- if (options.includeEntity) {
299
- dependencies.push('drupal:views');
300
- }
301
- return `name: '${manifest.metadata?.name || moduleName}'
302
- type: module
303
- description: '${manifest.metadata?.description || 'OSSA agent module'}'
304
- core_version_requirement: ${options.coreVersion}
305
- package: 'OSSA Agents'
306
-
307
- dependencies:
308
- ${dependencies.map((d) => ` - ${d}`).join('\n')}
309
-
310
- # OSSA metadata
311
- ossa:
312
- version: '${manifest.metadata?.version || '1.0.0'}'
313
- api_version: '${manifest.apiVersion || 'ossa/v{{VERSION}}'}'
314
- kind: '${manifest.kind || 'Agent'}'
315
- `;
316
- }
317
- /**
318
- * Generate MODULE.services.yml with full DI configuration
319
- */
320
- generateServicesYml(manifest, moduleName, className, options) {
321
- let services = `services:
322
- # ===================================================================
323
- # Agent Executor Service (uses Drupal AI module)
324
- # ===================================================================
325
-
326
- ${moduleName}.agent_executor:
327
- class: Drupal\\${moduleName}\\Service\\AgentExecutorService
328
- arguments:
329
- - '@ai.provider'
330
- - '@logger.factory'
331
- - '@config.factory'
332
- - '@entity_type.manager'
333
- `;
334
- if (options.includeEntity) {
335
- services += ` - '@queue'
336
- `;
337
- }
338
- services += ` tags:
339
- - { name: ossa_agent }
340
- `;
341
- if (options.includeQueueWorker) {
342
- services += `
343
- # ===================================================================
344
- # Queue Service
345
- # ===================================================================
346
-
347
- ${moduleName}.queue:
348
- parent: queue
349
- arguments: ['${moduleName}_agent_queue']
350
- `;
351
- }
352
- return services;
353
- }
354
- /**
355
- * Generate composer.json with Drupal AI module dependencies
356
- */
357
- generateComposerJson(manifest, moduleName) {
358
- return JSON.stringify({
359
- name: `drupal/${moduleName}`,
360
- type: 'drupal-module',
361
- description: manifest.metadata?.description || 'OSSA agent module',
362
- keywords: ['Drupal', 'OSSA', 'AI', 'Agent'],
363
- license: manifest.metadata?.license || 'GPL-2.0-or-later',
364
- require: {
365
- php: '>=8.2',
366
- 'drupal/core': '^10 || ^11',
367
- 'drupal/ai': '^1.0',
368
- 'drupal/ai_agents': '^1.3',
369
- 'drupal/tool': '^1.0@alpha',
370
- },
371
- autoload: {
372
- 'psr-4': {
373
- [`Drupal\\${moduleName}\\`]: 'src/',
374
- },
375
- },
376
- extra: {
377
- ossa: {
378
- version: manifest.metadata?.version,
379
- apiVersion: manifest.apiVersion,
380
- kind: manifest.kind,
381
- },
382
- },
383
- }, null, 2);
384
- }
385
- /**
386
- * Generate MODULE.module with minimal procedural hooks.
387
- *
388
- * Most hooks are now implemented as OO classes using PHP 8 #[Hook] attributes
389
- * in src/Hook/. Only hook_help remains procedural as a legacy convention.
390
- */
391
- generateModuleHooks(manifest, moduleName, className) {
392
- return `<?php
393
-
394
- /**
395
- * @file
396
- * ${className} module hooks (minimal procedural file).
397
- *
398
- * Most hooks are implemented as OO classes in src/Hook/ using
399
- * PHP 8 #[Hook] attributes. Only legacy procedural hooks remain here.
400
- */
401
-
402
- use Drupal\\Core\\Routing\\RouteMatchInterface;
403
-
404
- /**
405
- * Implements hook_help().
406
- */
407
- function ${moduleName}_help(string $route_name, RouteMatchInterface $route_match): string|null {
408
- if ($route_name === 'help.page.${moduleName}') {
409
- return '<p>' . t('${manifest.metadata?.description || 'OSSA agent module'}') . '</p>';
410
- }
411
- return NULL;
412
- }
413
- `;
414
- }
415
- /**
416
- * Generate OO hook classes using PHP 8 #[Hook] attributes.
417
- *
418
- * Generates:
419
- * - src/Hook/CronHooks.php (hook_cron)
420
- * - src/Hook/EntityHooks.php (hook_entity_presave)
421
- * - src/Hook/ThemeHooks.php (hook_theme)
422
- */
423
- generateHookClasses(manifest, moduleName, className) {
424
- const files = [];
425
- // src/Hook/CronHooks.php
426
- files.push(this.createFile(`${moduleName}/src/Hook/CronHooks.php`, this.generateCronHookClass(manifest, moduleName, className), 'code', 'php'));
427
- // src/Hook/EntityHooks.php
428
- files.push(this.createFile(`${moduleName}/src/Hook/EntityHooks.php`, this.generateEntityHookClass(manifest, moduleName, className), 'code', 'php'));
429
- // src/Hook/ThemeHooks.php
430
- files.push(this.createFile(`${moduleName}/src/Hook/ThemeHooks.php`, this.generateThemeHookClass(moduleName), 'code', 'php'));
431
- return files;
432
- }
433
- /**
434
- * Generate src/Hook/CronHooks.php
435
- */
436
- generateCronHookClass(manifest, moduleName, className) {
437
- return `<?php
438
-
439
- declare(strict_types=1);
440
-
441
- namespace Drupal\\${moduleName}\\Hook;
442
-
443
- use Drupal\\Core\\Hook\\Attribute\\Hook;
444
- use Drupal\\Core\\Queue\\QueueFactory;
445
- use Drupal\\Core\\Queue\\QueueWorkerManagerInterface;
446
- use Psr\\Log\\LoggerInterface;
447
-
448
- /**
449
- * Cron hook implementations for ${className}.
450
- */
451
- class CronHooks {
452
-
453
- public function __construct(
454
- protected readonly QueueFactory $queueFactory,
455
- protected readonly QueueWorkerManagerInterface $queueWorkerManager,
456
- protected readonly LoggerInterface $logger,
457
- ) {}
458
-
459
- /**
460
- * Process queued agent tasks during cron.
461
- */
462
- #[Hook('cron')]
463
- public function processCron(): void {
464
- $queue = $this->queueFactory->get('${moduleName}_agent_queue');
465
- $queue_worker = $this->queueWorkerManager->createInstance('${moduleName}_agent_queue');
466
-
467
- $processed = 0;
468
- $max_items = 50;
469
-
470
- while ($processed < $max_items && $item = $queue->claimItem()) {
471
- try {
472
- $queue_worker->processItem($item->data);
473
- $queue->deleteItem($item);
474
- $processed++;
475
- }
476
- catch (\\Exception $e) {
477
- $this->logger->error('Queue processing failed: @message', [
478
- '@message' => $e->getMessage(),
479
- ]);
480
- $queue->releaseItem($item);
481
- }
482
- }
483
-
484
- if ($processed > 0) {
485
- $this->logger->info('Processed @count agent queue items', [
486
- '@count' => $processed,
487
- ]);
488
- }
489
- }
490
-
491
- }
492
- `;
493
- }
494
- /**
495
- * Generate src/Hook/EntityHooks.php
496
- */
497
- generateEntityHookClass(manifest, moduleName, className) {
498
- return `<?php
499
-
500
- declare(strict_types=1);
501
-
502
- namespace Drupal\\${moduleName}\\Hook;
503
-
504
- use Drupal\\Core\\Config\\ConfigFactoryInterface;
505
- use Drupal\\Core\\Entity\\EntityInterface;
506
- use Drupal\\Core\\Hook\\Attribute\\Hook;
507
- use Drupal\\Core\\Queue\\QueueFactory;
508
-
509
- /**
510
- * Entity hook implementations for ${className}.
511
- */
512
- class EntityHooks {
513
-
514
- public function __construct(
515
- protected readonly ConfigFactoryInterface $configFactory,
516
- protected readonly QueueFactory $queueFactory,
517
- ) {}
518
-
519
- /**
520
- * Queue agent execution on entity save.
521
- */
522
- #[Hook('entity_presave')]
523
- public function entityPresave(EntityInterface $entity): void {
524
- $config = $this->configFactory->get('${moduleName}.settings');
525
-
526
- if (!$config->get('auto_execute_on_save')) {
527
- return;
528
- }
529
-
530
- $enabled_types = $config->get('enabled_entity_types') ?: [];
531
- if (!in_array($entity->getEntityTypeId(), $enabled_types)) {
532
- return;
533
- }
534
-
535
- $queue = $this->queueFactory->get('${moduleName}_agent_queue');
536
- $queue->createItem([
537
- 'entity_type' => $entity->getEntityTypeId(),
538
- 'entity_id' => $entity->id(),
539
- 'operation' => 'presave',
540
- 'timestamp' => time(),
541
- ]);
542
- }
543
-
544
- }
545
- `;
546
- }
547
- /**
548
- * Generate src/Hook/ThemeHooks.php
549
- */
550
- generateThemeHookClass(moduleName) {
551
- return `<?php
552
-
553
- declare(strict_types=1);
554
-
555
- namespace Drupal\\${moduleName}\\Hook;
556
-
557
- use Drupal\\Core\\Hook\\Attribute\\Hook;
558
-
559
- /**
560
- * Theme hook implementations.
561
- */
562
- class ThemeHooks {
563
-
564
- /**
565
- * Register theme templates.
566
- */
567
- #[Hook('theme')]
568
- public function theme(): array {
569
- return [
570
- 'agent_result' => [
571
- 'variables' => [
572
- 'result' => NULL,
573
- 'metadata' => NULL,
574
- ],
575
- 'template' => 'agent-result',
576
- ],
577
- 'agent_execute_form' => [
578
- 'render element' => 'form',
579
- 'template' => 'agent-execute-form',
580
- ],
581
- ];
582
- }
583
-
584
- }
585
- `;
586
- }
587
- /**
588
- * Generate src/Service/AgentExecutorService.php
589
- *
590
- * Uses Drupal AI module for LLM provider integration
591
- */
592
- generateAgentExecutorService(manifest, moduleName, className) {
593
- return `<?php
594
-
595
- declare(strict_types=1);
596
-
597
- namespace Drupal\\${moduleName}\\Service;
598
-
599
- use Drupal\\ai\\AiProviderPluginManager;
600
- use Drupal\\Core\\Config\\ConfigFactoryInterface;
601
- use Drupal\\Core\\Entity\\EntityTypeManagerInterface;
602
- use Drupal\\Core\\Logger\\LoggerChannelFactoryInterface;
603
- use Drupal\\Core\\Queue\\QueueFactory;
604
-
605
- /**
606
- * Agent Executor Service.
607
- *
608
- * Uses the Drupal AI module provider system for LLM execution:
609
- * - AI provider plugin manager for model access
610
- * - Entity storage for results
611
- * - Queue integration for async execution
612
- * - Drupal configuration integration
613
- * - Logging integration
614
- */
615
- class AgentExecutorService {
616
-
617
- public function __construct(
618
- protected readonly AiProviderPluginManager $aiProvider,
619
- protected readonly LoggerChannelFactoryInterface $loggerFactory,
620
- protected readonly ConfigFactoryInterface $configFactory,
621
- protected readonly EntityTypeManagerInterface $entityTypeManager,
622
- protected readonly QueueFactory $queueFactory,
623
- ) {}
624
-
625
- /**
626
- * Execute the agent synchronously.
627
- *
628
- * @param string $input
629
- * Input data for the agent.
630
- * @param array $context
631
- * Additional context (Drupal-specific: user_id, site_name, etc.).
632
- * @param bool $save_result
633
- * Whether to save the result to the database.
634
- *
635
- * @return array
636
- * Agent execution result with 'success', 'output', and 'metadata' keys.
637
- */
638
- public function execute(string $input, array $context = [], bool $save_result = TRUE): array {
639
- $logger = $this->loggerFactory->get('${moduleName}');
640
-
641
- try {
642
- $logger->info('Agent execution started');
643
-
644
- $context = $this->enrichContext($context);
645
-
646
- $config = $this->configFactory->get('${moduleName}.settings');
647
- $provider_id = $config->get('llm_provider') ?? 'anthropic';
648
- $model_id = $config->get('llm_model') ?? 'claude-sonnet-4-20250514';
649
-
650
- /** @var \\Drupal\\ai\\OperationType\\Chat\\ChatInterface $provider */
651
- $provider = $this->aiProvider->createInstance($provider_id);
652
- $provider->setConfiguration(['model_id' => $model_id]);
653
-
654
- $messages = new \\Drupal\\ai\\OperationType\\Chat\\ChatInput([
655
- new \\Drupal\\ai\\OperationType\\Chat\\ChatMessage('user', $input),
656
- ]);
657
-
658
- $response = $provider->chat($messages, $model_id);
659
-
660
- $result = [
661
- 'success' => TRUE,
662
- 'output' => $response->getNormalized()->getText(),
663
- 'metadata' => [
664
- 'provider' => $provider_id,
665
- 'model' => $model_id,
666
- ],
667
- ];
668
-
669
- if ($save_result) {
670
- $this->saveResult($input, $result);
671
- }
672
-
673
- $logger->info('Agent execution completed successfully');
674
-
675
- return $result;
676
- }
677
- catch (\\Exception $e) {
678
- $logger->error('Agent execution failed: @message', [
679
- '@message' => $e->getMessage(),
680
- ]);
681
-
682
- return [
683
- 'success' => FALSE,
684
- 'error' => $e->getMessage(),
685
- ];
686
- }
687
- }
688
-
689
- /**
690
- * Execute the agent asynchronously via queue.
691
- *
692
- * @param string $input
693
- * Input data for the agent.
694
- * @param array $context
695
- * Additional context.
696
- *
697
- * @return int
698
- * Queue item ID.
699
- */
700
- public function executeAsync(string $input, array $context = []): int {
701
- $queue = $this->queueFactory->get('${moduleName}_agent_queue');
702
-
703
- return $queue->createItem([
704
- 'input' => $input,
705
- 'context' => $context,
706
- 'timestamp' => time(),
707
- ]);
708
- }
709
-
710
- /**
711
- * Execute a specific tool by name.
712
- *
713
- * Called by Tool API plugin classes to delegate execution
714
- * to the OSSA agent executor.
715
- *
716
- * @param string $tool_name
717
- * The OSSA tool name.
718
- * @param array $input
719
- * Tool input parameters.
720
- *
721
- * @return array
722
- * Tool execution result.
723
- */
724
- public function executeTool(string $tool_name, array $input): array {
725
- $logger = $this->loggerFactory->get('${moduleName}');
726
-
727
- try {
728
- $logger->info('Tool execution started: @tool', ['@tool' => $tool_name]);
729
-
730
- $context = $this->enrichContext([
731
- 'tool' => $tool_name,
732
- ]);
733
-
734
- $response = $this->agentExecutor->executeTool(
735
- '${manifest.metadata?.name || 'agent'}',
736
- $tool_name,
737
- $input,
738
- $context
739
- );
740
-
741
- $result = [
742
- 'success' => TRUE,
743
- 'output' => $response->getOutput(),
744
- 'metadata' => $response->getMetadata(),
745
- ];
746
-
747
- $logger->info('Tool execution completed: @tool', ['@tool' => $tool_name]);
748
-
749
- return $result;
750
- }
751
- catch (\\Exception $e) {
752
- $logger->error('Tool execution failed (@tool): @message', [
753
- '@tool' => $tool_name,
754
- '@message' => $e->getMessage(),
755
- ]);
756
-
757
- return [
758
- 'success' => FALSE,
759
- 'error' => $e->getMessage(),
760
- ];
761
- }
762
- }
763
-
764
- /**
765
- * Enrich context with Drupal-specific data.
766
- *
767
- * @param array $context
768
- * Base context.
769
- *
770
- * @return array
771
- * Enriched context.
772
- */
773
- protected function enrichContext(array $context): array {
774
- $context['site_name'] = $this->configFactory
775
- ->get('system.site')
776
- ->get('name');
777
-
778
- $current_user = \\Drupal::currentUser();
779
- $context['user_id'] = $current_user->id();
780
- $context['user_name'] = $current_user->getAccountName();
781
- $context['drupal_version'] = \\Drupal::VERSION;
782
-
783
- $module_config = $this->configFactory->get('${moduleName}.settings');
784
- $context['module_config'] = $module_config->getRawData();
785
-
786
- return $context;
787
- }
788
-
789
- /**
790
- * Save agent result to entity storage.
791
- *
792
- * @param string $input
793
- * The input that was processed.
794
- * @param array $result
795
- * The execution result.
796
- */
797
- protected function saveResult(string $input, array $result): void {
798
- try {
799
- $storage = $this->entityTypeManager->getStorage('${moduleName}_result');
800
-
801
- $entity = $storage->create([
802
- 'name' => 'Result ' . date('Y-m-d H:i:s'),
803
- 'input' => $input,
804
- 'output' => $result['output'] ?? '',
805
- 'metadata' => json_encode($result['metadata'] ?? []),
806
- 'status' => $result['success'] ? 'completed' : 'failed',
807
- 'created' => time(),
808
- ]);
809
-
810
- $entity->save();
811
- }
812
- catch (\\Exception $e) {
813
- $this->loggerFactory->get('${moduleName}')->error(
814
- 'Failed to save result: @message',
815
- ['@message' => $e->getMessage()]
816
- );
817
- }
818
- }
819
-
820
- }
821
- `;
822
- }
823
- /**
824
- * Generate src/Plugin/QueueWorker/AgentQueueWorker.php
825
- */
826
- generateQueueWorker(manifest, moduleName, className) {
827
- return `<?php
828
-
829
- declare(strict_types=1);
830
-
831
- namespace Drupal\\${moduleName}\\Plugin\\QueueWorker;
832
-
833
- use Drupal\\Core\\Plugin\\ContainerFactoryPluginInterface;
834
- use Drupal\\Core\\Queue\\Attribute\\QueueWorker;
835
- use Drupal\\Core\\Queue\\QueueWorkerBase;
836
- use Drupal\\Core\\StringTranslation\\TranslatableMarkup;
837
- use Drupal\\${moduleName}\\Service\\AgentExecutorService;
838
- use Symfony\\Component\\DependencyInjection\\ContainerInterface;
839
-
840
- /**
841
- * Agent Queue Worker.
842
- *
843
- * Processes agent execution tasks asynchronously via Drupal's queue system.
844
- */
845
- #[QueueWorker(
846
- id: '${moduleName}_agent_queue',
847
- title: new TranslatableMarkup('${className} Agent Queue Worker'),
848
- cron: ['time' => 60],
849
- )]
850
- class AgentQueueWorker extends QueueWorkerBase implements ContainerFactoryPluginInterface {
851
-
852
- public function __construct(
853
- array $configuration,
854
- $plugin_id,
855
- $plugin_definition,
856
- protected readonly AgentExecutorService $agentExecutor,
857
- ) {
858
- parent::__construct($configuration, $plugin_id, $plugin_definition);
859
- }
860
-
861
- /**
862
- * {@inheritdoc}
863
- */
864
- public static function create(
865
- ContainerInterface $container,
866
- array $configuration,
867
- $plugin_id,
868
- $plugin_definition,
869
- ): static {
870
- return new static(
871
- $configuration,
872
- $plugin_id,
873
- $plugin_definition,
874
- $container->get('${moduleName}.agent_executor'),
875
- );
876
- }
877
-
878
- /**
879
- * {@inheritdoc}
880
- */
881
- public function processItem($data): void {
882
- $input = $data['input'] ?? '';
883
- $context = $data['context'] ?? [];
884
-
885
- if (empty($input)) {
886
- throw new \\Exception('Queue item missing required input data');
887
- }
888
-
889
- $result = $this->agentExecutor->execute($input, $context, TRUE);
890
-
891
- if (!$result['success']) {
892
- throw new \\Exception($result['error'] ?? 'Agent execution failed');
893
- }
894
- }
895
-
896
- }
897
- `;
898
- }
899
- /**
900
- * Generate src/Entity/AgentResult.php
901
- */
902
- generateEntityClass(manifest, moduleName, className) {
903
- return `<?php
904
-
905
- declare(strict_types=1);
906
-
907
- namespace Drupal\\${moduleName}\\Entity;
908
-
909
- use Drupal\\Core\\Entity\\Attribute\\ContentEntityType;
910
- use Drupal\\Core\\Entity\\ContentEntityBase;
911
- use Drupal\\Core\\Entity\\EntityTypeInterface;
912
- use Drupal\\Core\\Entity\\EntityViewBuilder;
913
- use Drupal\\Core\\Entity\\EntityListBuilder;
914
- use Drupal\\Core\\Entity\\EntityAccessControlHandler;
915
- use Drupal\\Core\\Field\\BaseFieldDefinition;
916
- use Drupal\\Core\\StringTranslation\\TranslatableMarkup;
917
- use Drupal\\views\\EntityViewsData;
918
-
919
- /**
920
- * Defines the Agent Result entity.
921
- *
922
- * Stores agent execution results for auditing and analysis.
923
- */
924
- #[ContentEntityType(
925
- id: '${moduleName}_result',
926
- label: new TranslatableMarkup('Agent Result'),
927
- base_table: '${moduleName}_result',
928
- entity_keys: [
929
- 'id' => 'id',
930
- 'label' => 'name',
931
- 'uuid' => 'uuid',
932
- ],
933
- handlers: [
934
- 'view_builder' => EntityViewBuilder::class,
935
- 'list_builder' => EntityListBuilder::class,
936
- 'views_data' => EntityViewsData::class,
937
- 'access' => EntityAccessControlHandler::class,
938
- ],
939
- links: [
940
- 'canonical' => '/admin/${moduleName}/result/{${moduleName}_result}',
941
- 'collection' => '/admin/${moduleName}/results',
942
- ],
943
- )]
944
- class AgentResult extends ContentEntityBase implements AgentResultInterface {
945
-
946
- /**
947
- * {@inheritdoc}
948
- */
949
- public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
950
- $fields = parent::baseFieldDefinitions($entity_type);
951
-
952
- $fields['name'] = BaseFieldDefinition::create('string')
953
- ->setLabel(t('Name'))
954
- ->setDescription(t('Result name/title'))
955
- ->setSettings([
956
- 'max_length' => 255,
957
- 'text_processing' => 0,
958
- ])
959
- ->setDisplayOptions('view', [
960
- 'label' => 'hidden',
961
- 'type' => 'string',
962
- 'weight' => -5,
963
- ])
964
- ->setDisplayOptions('form', [
965
- 'type' => 'string_textfield',
966
- 'weight' => -5,
967
- ]);
968
-
969
- $fields['input'] = BaseFieldDefinition::create('string_long')
970
- ->setLabel(t('Input'))
971
- ->setDescription(t('Agent input data'))
972
- ->setDisplayOptions('view', [
973
- 'label' => 'above',
974
- 'type' => 'text_default',
975
- 'weight' => 0,
976
- ]);
977
-
978
- $fields['output'] = BaseFieldDefinition::create('string_long')
979
- ->setLabel(t('Output'))
980
- ->setDescription(t('Agent output/response'))
981
- ->setDisplayOptions('view', [
982
- 'label' => 'above',
983
- 'type' => 'text_default',
984
- 'weight' => 1,
985
- ]);
986
-
987
- $fields['metadata'] = BaseFieldDefinition::create('string_long')
988
- ->setLabel(t('Metadata'))
989
- ->setDescription(t('Execution metadata (JSON)'))
990
- ->setDisplayOptions('view', [
991
- 'label' => 'above',
992
- 'type' => 'text_default',
993
- 'weight' => 2,
994
- ]);
995
-
996
- $fields['status'] = BaseFieldDefinition::create('list_string')
997
- ->setLabel(t('Status'))
998
- ->setSettings([
999
- 'allowed_values' => [
1000
- 'pending' => 'Pending',
1001
- 'processing' => 'Processing',
1002
- 'completed' => 'Completed',
1003
- 'failed' => 'Failed',
1004
- ],
1005
- ])
1006
- ->setDefaultValue('pending')
1007
- ->setDisplayOptions('view', [
1008
- 'label' => 'inline',
1009
- 'type' => 'list_default',
1010
- 'weight' => 3,
1011
- ]);
1012
-
1013
- $fields['created'] = BaseFieldDefinition::create('created')
1014
- ->setLabel(t('Created'))
1015
- ->setDescription(t('Creation timestamp'));
1016
-
1017
- return $fields;
1018
- }
1019
- }
1020
- `;
1021
- }
1022
- /**
1023
- * Generate src/Entity/AgentResultInterface.php
1024
- */
1025
- generateEntityInterface(moduleName) {
1026
- return `<?php
1027
-
1028
- namespace Drupal\\${moduleName}\\Entity;
1029
-
1030
- use Drupal\\Core\\Entity\\ContentEntityInterface;
1031
-
1032
- /**
1033
- * Interface for Agent Result entities.
1034
- */
1035
- interface AgentResultInterface extends ContentEntityInterface {
1036
- }
1037
- `;
1038
- }
1039
- /**
1040
- * Generate MODULE.views.inc
1041
- */
1042
- generateViewsData(moduleName, className) {
1043
- return `<?php
1044
-
1045
- /**
1046
- * @file
1047
- * Provide views data for ${moduleName}_result entities.
1048
- */
1049
-
1050
- /**
1051
- * Implements hook_views_data().
1052
- */
1053
- function ${moduleName}_views_data() {
1054
- $data = [];
1055
-
1056
- $data['${moduleName}_result']['table']['group'] = t('Agent Result');
1057
- $data['${moduleName}_result']['table']['base'] = [
1058
- 'field' => 'id',
1059
- 'title' => t('Agent Result'),
1060
- 'help' => t('Agent execution results.'),
1061
- ];
1062
-
1063
- $data['${moduleName}_result']['id'] = [
1064
- 'title' => t('ID'),
1065
- 'help' => t('The agent result ID.'),
1066
- 'field' => [
1067
- 'id' => 'numeric',
1068
- ],
1069
- 'sort' => [
1070
- 'id' => 'standard',
1071
- ],
1072
- 'filter' => [
1073
- 'id' => 'numeric',
1074
- ],
1075
- ];
1076
-
1077
- $data['${moduleName}_result']['name'] = [
1078
- 'title' => t('Name'),
1079
- 'help' => t('The result name.'),
1080
- 'field' => [
1081
- 'id' => 'standard',
1082
- ],
1083
- 'sort' => [
1084
- 'id' => 'standard',
1085
- ],
1086
- 'filter' => [
1087
- 'id' => 'string',
1088
- ],
1089
- ];
1090
-
1091
- $data['${moduleName}_result']['status'] = [
1092
- 'title' => t('Status'),
1093
- 'help' => t('The execution status.'),
1094
- 'field' => [
1095
- 'id' => 'standard',
1096
- ],
1097
- 'sort' => [
1098
- 'id' => 'standard',
1099
- ],
1100
- 'filter' => [
1101
- 'id' => 'string',
1102
- ],
1103
- ];
1104
-
1105
- $data['${moduleName}_result']['created'] = [
1106
- 'title' => t('Created'),
1107
- 'help' => t('The creation timestamp.'),
1108
- 'field' => [
1109
- 'id' => 'date',
1110
- ],
1111
- 'sort' => [
1112
- 'id' => 'date',
1113
- ],
1114
- 'filter' => [
1115
- 'id' => 'date',
1116
- ],
1117
- ];
1118
-
1119
- return $data;
1120
- }
1121
- `;
1122
- }
1123
- /**
1124
- * Generate src/Controller/AgentController.php
1125
- */
1126
- generateController(manifest, moduleName, className) {
1127
- return `<?php
1128
-
1129
- namespace Drupal\\${moduleName}\\Controller;
1130
-
1131
- use Drupal\\Core\\Controller\\ControllerBase;
1132
- use Drupal\\${moduleName}\\Service\\AgentExecutorService;
1133
- use Symfony\\Component\\DependencyInjection\\ContainerInterface;
1134
- use Symfony\\Component\\HttpFoundation\\JsonResponse;
1135
- use Symfony\\Component\\HttpFoundation\\Request;
1136
-
1137
- /**
1138
- * Agent Controller.
1139
- *
1140
- * Provides admin UI and API endpoints for agent execution.
1141
- */
1142
- class AgentController extends ControllerBase {
1143
-
1144
- /**
1145
- * The agent executor service.
1146
- *
1147
- * @var \\Drupal\\${moduleName}\\Service\\AgentExecutorService
1148
- */
1149
- protected AgentExecutorService $agentExecutor;
1150
-
1151
- /**
1152
- * {@inheritdoc}
1153
- */
1154
- public function __construct(AgentExecutorService $agent_executor) {
1155
- $this->agentExecutor = $agent_executor;
1156
- }
1157
-
1158
- /**
1159
- * {@inheritdoc}
1160
- */
1161
- public static function create(ContainerInterface $container) {
1162
- return new static(
1163
- $container->get('${moduleName}.agent_executor')
1164
- );
1165
- }
1166
-
1167
- /**
1168
- * Execute agent via UI.
1169
- */
1170
- public function executePage() {
1171
- $form = \\Drupal::formBuilder()->getForm('Drupal\\${moduleName}\\Form\\AgentExecuteForm');
1172
-
1173
- return [
1174
- '#theme' => 'agent_execute_form',
1175
- '#form' => $form,
1176
- ];
1177
- }
1178
-
1179
- /**
1180
- * Execute agent via API.
1181
- */
1182
- public function executeApi(Request $request): JsonResponse {
1183
- $data = json_decode($request->getContent(), TRUE);
1184
-
1185
- if (empty($data['input'])) {
1186
- return new JsonResponse([
1187
- 'success' => FALSE,
1188
- 'error' => 'Missing required field: input',
1189
- ], 400);
1190
- }
1191
-
1192
- $result = $this->agentExecutor->execute(
1193
- $data['input'],
1194
- $data['context'] ?? [],
1195
- $data['save_result'] ?? TRUE
1196
- );
1197
-
1198
- return new JsonResponse($result);
1199
- }
1200
-
1201
- /**
1202
- * Execute agent asynchronously via API.
1203
- */
1204
- public function executeAsyncApi(Request $request): JsonResponse {
1205
- $data = json_decode($request->getContent(), TRUE);
1206
-
1207
- if (empty($data['input'])) {
1208
- return new JsonResponse([
1209
- 'success' => FALSE,
1210
- 'error' => 'Missing required field: input',
1211
- ], 400);
1212
- }
1213
-
1214
- $queue_id = $this->agentExecutor->executeAsync(
1215
- $data['input'],
1216
- $data['context'] ?? []
1217
- );
1218
-
1219
- return new JsonResponse([
1220
- 'success' => TRUE,
1221
- 'queue_id' => $queue_id,
1222
- 'message' => 'Agent execution queued',
1223
- ]);
1224
- }
1225
-
1226
- /**
1227
- * Results listing page.
1228
- */
1229
- public function resultsPage() {
1230
- $storage = $this->entityTypeManager()->getStorage('${moduleName}_result');
1231
- $results = $storage->loadMultiple();
1232
-
1233
- $rows = [];
1234
- foreach ($results as $result) {
1235
- $rows[] = [
1236
- 'id' => $result->id(),
1237
- 'name' => $result->get('name')->value,
1238
- 'status' => $result->get('status')->value,
1239
- 'created' => date('Y-m-d H:i:s', $result->get('created')->value),
1240
- ];
1241
- }
1242
-
1243
- return [
1244
- '#theme' => 'table',
1245
- '#header' => ['ID', 'Name', 'Status', 'Created'],
1246
- '#rows' => $rows,
1247
- '#empty' => $this->t('No results found.'),
1248
- ];
1249
- }
1250
- }
1251
- `;
1252
- }
1253
- /**
1254
- * Generate MODULE.routing.yml
1255
- */
1256
- generateRouting(moduleName) {
1257
- return `${moduleName}.execute:
1258
- path: '/admin/${moduleName}/execute'
1259
- defaults:
1260
- _controller: '\\Drupal\\${moduleName}\\Controller\\AgentController::executePage'
1261
- _title: 'Execute Agent'
1262
- requirements:
1263
- _permission: 'administer ${moduleName}'
1264
-
1265
- ${moduleName}.api.execute:
1266
- path: '/api/${moduleName}/execute'
1267
- defaults:
1268
- _controller: '\\Drupal\\${moduleName}\\Controller\\AgentController::executeApi'
1269
- methods: [POST]
1270
- requirements:
1271
- _permission: 'access content'
1272
-
1273
- ${moduleName}.api.execute_async:
1274
- path: '/api/${moduleName}/execute-async'
1275
- defaults:
1276
- _controller: '\\Drupal\\${moduleName}\\Controller\\AgentController::executeAsyncApi'
1277
- methods: [POST]
1278
- requirements:
1279
- _permission: 'access content'
1280
-
1281
- ${moduleName}.results:
1282
- path: '/admin/${moduleName}/results'
1283
- defaults:
1284
- _controller: '\\Drupal\\${moduleName}\\Controller\\AgentController::resultsPage'
1285
- _title: 'Agent Results'
1286
- requirements:
1287
- _permission: 'administer ${moduleName}'
1288
-
1289
- ${moduleName}.settings:
1290
- path: '/admin/config/${moduleName}'
1291
- defaults:
1292
- _form: '\\Drupal\\${moduleName}\\Form\\AgentConfigForm'
1293
- _title: 'Agent Configuration'
1294
- requirements:
1295
- _permission: 'administer ${moduleName}'
1296
- `;
1297
- }
1298
- /**
1299
- * Generate src/Form/AgentConfigForm.php
1300
- */
1301
- generateConfigForm(manifest, moduleName, className) {
1302
- return `<?php
1303
-
1304
- namespace Drupal\\${moduleName}\\Form;
1305
-
1306
- use Drupal\\Core\\Form\\ConfigFormBase;
1307
- use Drupal\\Core\\Form\\FormStateInterface;
1308
-
1309
- /**
1310
- * Configuration form for ${className} agent.
1311
- */
1312
- class AgentConfigForm extends ConfigFormBase {
1313
-
1314
- /**
1315
- * {@inheritdoc}
1316
- */
1317
- protected function getEditableConfigNames() {
1318
- return ['${moduleName}.settings'];
1319
- }
1320
-
1321
- /**
1322
- * {@inheritdoc}
1323
- */
1324
- public function getFormId() {
1325
- return '${moduleName}_config_form';
1326
- }
1327
-
1328
- /**
1329
- * {@inheritdoc}
1330
- */
1331
- public function buildForm(array $form, FormStateInterface $form_state) {
1332
- $config = $this->config('${moduleName}.settings');
1333
-
1334
- $form['auto_execute_on_save'] = [
1335
- '#type' => 'checkbox',
1336
- '#title' => $this->t('Auto-execute on entity save'),
1337
- '#description' => $this->t('Automatically execute agent when configured entities are saved.'),
1338
- '#default_value' => $config->get('auto_execute_on_save') ?? FALSE,
1339
- ];
1340
-
1341
- $form['enabled_entity_types'] = [
1342
- '#type' => 'checkboxes',
1343
- '#title' => $this->t('Enabled entity types'),
1344
- '#description' => $this->t('Entity types that trigger agent execution.'),
1345
- '#options' => [
1346
- 'node' => $this->t('Content'),
1347
- 'comment' => $this->t('Comment'),
1348
- 'user' => $this->t('User'),
1349
- ],
1350
- '#default_value' => $config->get('enabled_entity_types') ?: [],
1351
- '#states' => [
1352
- 'visible' => [
1353
- ':input[name="auto_execute_on_save"]' => ['checked' => TRUE],
1354
- ],
1355
- ],
1356
- ];
1357
-
1358
- $form['llm_provider'] = [
1359
- '#type' => 'select',
1360
- '#title' => $this->t('LLM Provider'),
1361
- '#options' => [
1362
- 'anthropic' => $this->t('Anthropic (Claude)'),
1363
- 'openai' => $this->t('OpenAI (GPT)'),
1364
- 'google' => $this->t('Google (Gemini)'),
1365
- 'azure' => $this->t('Azure OpenAI'),
1366
- ],
1367
- '#default_value' => $config->get('llm_provider') ?? 'anthropic',
1368
- ];
1369
-
1370
- $form['llm_model'] = [
1371
- '#type' => 'textfield',
1372
- '#title' => $this->t('LLM Model'),
1373
- '#default_value' => $config->get('llm_model') ?? 'claude-sonnet-4-20250514',
1374
- ];
1375
-
1376
- $form['temperature'] = [
1377
- '#type' => 'number',
1378
- '#title' => $this->t('Temperature'),
1379
- '#description' => $this->t('Controls randomness (0.0 to 1.0).'),
1380
- '#min' => 0,
1381
- '#max' => 1,
1382
- '#step' => 0.1,
1383
- '#default_value' => $config->get('temperature') ?? 0.7,
1384
- ];
1385
-
1386
- return parent::buildForm($form, $form_state);
1387
- }
1388
-
1389
- /**
1390
- * {@inheritdoc}
1391
- */
1392
- public function submitForm(array &$form, FormStateInterface $form_state) {
1393
- $this->config('${moduleName}.settings')
1394
- ->set('auto_execute_on_save', $form_state->getValue('auto_execute_on_save'))
1395
- ->set('enabled_entity_types', array_filter($form_state->getValue('enabled_entity_types')))
1396
- ->set('llm_provider', $form_state->getValue('llm_provider'))
1397
- ->set('llm_model', $form_state->getValue('llm_model'))
1398
- ->set('temperature', $form_state->getValue('temperature'))
1399
- ->save();
1400
-
1401
- parent::submitForm($form, $form_state);
1402
- }
1403
- }
1404
- `;
1405
- }
1406
- /**
1407
- * Generate MODULE.links.menu.yml
1408
- */
1409
- generateMenuLinks(moduleName) {
1410
- return `${moduleName}.admin:
1411
- title: 'Agent'
1412
- description: 'Configure agent settings'
1413
- route_name: ${moduleName}.settings
1414
- parent: system.admin_config
1415
- weight: 100
1416
-
1417
- ${moduleName}.execute:
1418
- title: 'Execute'
1419
- route_name: ${moduleName}.execute
1420
- parent: ${moduleName}.admin
1421
- weight: 0
1422
-
1423
- ${moduleName}.results:
1424
- title: 'Results'
1425
- route_name: ${moduleName}.results
1426
- parent: ${moduleName}.admin
1427
- weight: 10
1428
- `;
1429
- }
1430
- // ===================================================================
1431
- // Tool API Plugin Generation (Phase 3 - Issue #433)
1432
- // ===================================================================
1433
- /**
1434
- * Generate a Drupal Tool API plugin class for a single OSSA tool.
1435
- *
1436
- * Uses PHP 8 #[Tool] attributes (not annotations) and implements
1437
- * ContainerFactoryPluginInterface for proper dependency injection.
1438
- */
1439
- generateToolPlugin(_manifest, moduleName, _className, tool, drupalTool) {
1440
- const toolClassName = toClassName(sanitizeModuleName(tool.name || 'unknown_tool'));
1441
- const toolName = tool.name || 'unknown_tool';
1442
- const inputDef = this.buildSchemaDefinitionArray(tool.inputSchema || tool.input_schema);
1443
- const outputDef = this.buildSchemaDefinitionArray(tool.outputSchema || tool.output_schema);
1444
- return `<?php
1445
-
1446
- namespace Drupal\\${moduleName}\\Plugin\\Tool;
1447
-
1448
- use Drupal\\tool\\Attribute\\Tool;
1449
- use Drupal\\tool\\ToolPluginBase;
1450
- use Drupal\\Core\\StringTranslation\\TranslatableMarkup;
1451
- use Drupal\\Core\\Plugin\\ContainerFactoryPluginInterface;
1452
- use Drupal\\${moduleName}\\Service\\AgentExecutorService;
1453
- use Symfony\\Component\\DependencyInjection\\ContainerInterface;
1454
-
1455
- /**
1456
- * Tool plugin: ${this.escapePhpString(drupalTool.label)}.
1457
- *
1458
- * Generated from OSSA manifest tool: ${toolName}
1459
- * Type: ${drupalTool.type}
1460
- */
1461
- #[Tool(
1462
- id: '${drupalTool.id}',
1463
- label: new TranslatableMarkup('${this.escapePhpString(drupalTool.label)}'),
1464
- description: new TranslatableMarkup('${this.escapePhpString(drupalTool.description)}'),
1465
- )]
1466
- class ${toolClassName}Tool extends ToolPluginBase implements ContainerFactoryPluginInterface {
1467
-
1468
- /**
1469
- * Constructs a new ${toolClassName}Tool.
1470
- *
1471
- * @param array $configuration
1472
- * Plugin configuration.
1473
- * @param string $plugin_id
1474
- * The plugin ID.
1475
- * @param mixed $plugin_definition
1476
- * The plugin definition.
1477
- * @param \\Drupal\\${moduleName}\\Service\\AgentExecutorService $agentService
1478
- * The agent executor service.
1479
- */
1480
- public function __construct(
1481
- array $configuration,
1482
- string $plugin_id,
1483
- mixed $plugin_definition,
1484
- private readonly AgentExecutorService $agentService,
1485
- ) {
1486
- parent::__construct($configuration, $plugin_id, $plugin_definition);
1487
- }
1488
-
1489
- /**
1490
- * {@inheritdoc}
1491
- */
1492
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static {
1493
- return new static(
1494
- $configuration,
1495
- $plugin_id,
1496
- $plugin_definition,
1497
- $container->get('${moduleName}.agent_executor'),
1498
- );
1499
- }
1500
-
1501
- /**
1502
- * {@inheritdoc}
1503
- */
1504
- public function getInputDefinition(): array {
1505
- return ${inputDef};
1506
- }
1507
-
1508
- /**
1509
- * {@inheritdoc}
1510
- */
1511
- public function getOutputDefinition(): array {
1512
- return ${outputDef};
1513
- }
1514
-
1515
- /**
1516
- * {@inheritdoc}
1517
- */
1518
- public function execute(array $input): array {
1519
- return $this->agentService->executeTool('${this.escapePhpString(toolName)}', $input);
1520
- }
1521
-
1522
- }
1523
- `;
1524
- }
1525
- /**
1526
- * Generate tool_ai_connector config YAML for a single tool.
1527
- *
1528
- * Registers the tool with Drupal's Tool API AI connector system
1529
- * so it is discoverable by AI-powered modules.
1530
- */
1531
- generateToolAiConnectorConfig(drupalTool) {
1532
- return `id: '${drupalTool.id}'
1533
- status: true
1534
- ai_callable: true
1535
- `;
1536
- }
1537
- /**
1538
- * Build a PHP array literal from a JSON Schema definition.
1539
- *
1540
- * Converts OSSA tool input/output schema (JSON Schema) into a PHP array
1541
- * that Drupal's Tool API can consume for input/output definitions.
1542
- */
1543
- buildSchemaDefinitionArray(schema) {
1544
- if (!schema || Object.keys(schema).length === 0) {
1545
- return '[]';
1546
- }
1547
- const properties = schema.properties;
1548
- if (!properties || Object.keys(properties).length === 0) {
1549
- return '[]';
1550
- }
1551
- const required = schema.required || [];
1552
- const entries = [];
1553
- for (const [propName, propDef] of Object.entries(properties)) {
1554
- const phpType = this.jsonSchemaTypeToPHP(propDef.type || 'string');
1555
- const description = propDef.description
1556
- ? this.escapePhpString(propDef.description)
1557
- : `The ${propName} parameter`;
1558
- const isRequired = required.includes(propName) ? 'TRUE' : 'FALSE';
1559
- entries.push(` '${propName}' => [
1560
- 'type' => '${phpType}',
1561
- 'label' => '${toLabel(propName)}',
1562
- 'description' => '${this.escapePhpString(description)}',
1563
- 'required' => ${isRequired},
1564
- ]`);
1565
- }
1566
- return `[
1567
- ${entries.join(',\n')},
1568
- ]`;
1569
- }
1570
- /**
1571
- * Map a JSON Schema type to a PHP/Drupal typed data type string.
1572
- */
1573
- jsonSchemaTypeToPHP(jsonType) {
1574
- const typeMap = {
1575
- string: 'string',
1576
- number: 'float',
1577
- integer: 'integer',
1578
- boolean: 'boolean',
1579
- array: 'list',
1580
- object: 'map',
1581
- };
1582
- return typeMap[jsonType] || 'string';
1583
- }
1584
- /**
1585
- * Escape a string for safe inclusion inside PHP single-quoted strings.
1586
- */
1587
- escapePhpString(str) {
1588
- return str.replace(/\\/g, '\\\\').replace(/'/g, "\\'");
1589
- }
1590
- // ===================================================================
1591
- // ECA Model Generation (Phase 4 - Issue #433)
1592
- // ===================================================================
1593
- /**
1594
- * Extract ECA event definitions from the manifest.
1595
- *
1596
- * Looks for extensions.drupal.eca_events in the manifest. Each entry
1597
- * is a string like 'entity:node:presave' or 'content_entity:presave'.
1598
- */
1599
- extractEcaEvents(manifest) {
1600
- const extensions = manifest.extensions;
1601
- if (!extensions?.drupal?.eca_events) {
1602
- return [];
1603
- }
1604
- const events = extensions.drupal.eca_events;
1605
- if (!Array.isArray(events)) {
1606
- return [];
1607
- }
1608
- return events.filter((e) => typeof e === 'string');
1609
- }
1610
- /**
1611
- * Generate ECA model YAML config files for each event in eca_events.
1612
- *
1613
- * Creates config/install/eca.model.MODULE_on_EVENT.yml files that define
1614
- * the Event-Condition-Action models for Drupal's ECA module. Each model
1615
- * wires an event trigger to an OSSA agent condition check and tool execution.
1616
- */
1617
- generateEcaModels(manifest, moduleName, ecaEvents) {
1618
- const files = [];
1619
- const agentName = manifest.metadata?.name || moduleName;
1620
- const agentLabel = toLabel(agentName);
1621
- for (const event of ecaEvents) {
1622
- // Build a slug from the event: 'entity:node:presave' -> 'entity_node_presave'
1623
- const eventSlug = sanitizeModuleName(event.replace(/:/g, '_'));
1624
- const modelId = `${moduleName}_on_${eventSlug}`;
1625
- const modelLabel = `${agentLabel} - On ${toLabel(eventSlug)}`;
1626
- // Determine plugin_id and configuration from event string
1627
- const eventParts = event.split(':');
1628
- const pluginId = this.mapEcaEventToPluginId(eventParts);
1629
- const eventConfig = this.buildEcaEventConfiguration(eventParts);
1630
- // Find tools that should be executed for this event
1631
- const tools = extractTools(manifest);
1632
- const toolRef = tools.length > 0
1633
- ? `${moduleName}.${sanitizeModuleName(tools[0].name || 'unknown_tool')}`
1634
- : `${moduleName}.default_tool`;
1635
- const yamlContent = `id: '${modelId}'
1636
- label: '${this.escapeYamlString(modelLabel)}'
1637
- modeller: core
1638
- version: '1.0.0'
1639
- events:
1640
- - plugin_id: '${pluginId}'
1641
- configuration:
1642
- ${this.indentYamlObject(eventConfig, 6)}
1643
- conditions:
1644
- - plugin_id: 'ossa_agent_enabled'
1645
- configuration:
1646
- agent_id: '${agentName}'
1647
- actions:
1648
- - plugin_id: 'ossa_execute_tool'
1649
- configuration:
1650
- tool: '${toolRef}'
1651
- async: true
1652
- `;
1653
- files.push(this.createFile(`${moduleName}/config/install/eca.model.${modelId}.yml`, yamlContent, 'config'));
1654
- }
1655
- return files;
1656
- }
1657
- /**
1658
- * Map ECA event parts to a Drupal ECA plugin ID.
1659
- *
1660
- * Converts OSSA event notation (e.g., ['entity', 'node', 'presave'])
1661
- * to ECA plugin IDs (e.g., 'content_entity:presave').
1662
- */
1663
- mapEcaEventToPluginId(eventParts) {
1664
- if (eventParts.length >= 3 && eventParts[0] === 'entity') {
1665
- // 'entity:node:presave' -> 'content_entity:presave'
1666
- return `content_entity:${eventParts[2]}`;
1667
- }
1668
- if (eventParts.length >= 2) {
1669
- // 'content_entity:presave' -> pass through
1670
- return eventParts.join(':');
1671
- }
1672
- // Fallback: use as-is
1673
- return eventParts.join(':');
1674
- }
1675
- /**
1676
- * Build ECA event configuration from event parts.
1677
- *
1678
- * Returns a key-value map that becomes the configuration block
1679
- * under the event entry in the ECA model YAML.
1680
- */
1681
- buildEcaEventConfiguration(eventParts) {
1682
- const config = {};
1683
- if (eventParts.length >= 3 && eventParts[0] === 'entity') {
1684
- // 'entity:node:presave' -> type: node
1685
- config.type = eventParts[1];
1686
- }
1687
- else if (eventParts.length >= 2 && eventParts[0] === 'content_entity') {
1688
- // 'content_entity:presave' -> type: node (default)
1689
- config.type = 'node';
1690
- }
1691
- return config;
1692
- }
1693
- /**
1694
- * Escape a string for safe inclusion in YAML single-quoted values.
1695
- */
1696
- escapeYamlString(str) {
1697
- return str.replace(/'/g, "''");
1698
- }
1699
- /**
1700
- * Indent a key-value object as YAML at a given indentation level.
1701
- */
1702
- indentYamlObject(obj, indent) {
1703
- const pad = ' '.repeat(indent);
1704
- return Object.entries(obj)
1705
- .map(([key, value]) => `${pad}${key}: ${value}`)
1706
- .join('\n');
1707
- }
1708
- // ===================================================================
1709
- // Action Plugin Generation (Phase 4 - Issue #433)
1710
- // ===================================================================
1711
- /**
1712
- * Generate Action plugin classes for tools with CUD operations.
1713
- *
1714
- * Filters tools where the operation field matches create, update, or delete,
1715
- * and generates a Drupal Action plugin class for each. Tools without an
1716
- * explicit operation field are skipped.
1717
- *
1718
- * Uses PHP 8 #[Action] attributes and implements ContainerFactoryPluginInterface.
1719
- */
1720
- generateActionPlugins(manifest, moduleName, tools) {
1721
- const files = [];
1722
- const cudOperations = ['create', 'update', 'delete'];
1723
- for (const tool of tools) {
1724
- const operation = tool.operation;
1725
- if (!operation || !cudOperations.includes(operation.toLowerCase())) {
1726
- continue;
1727
- }
1728
- const toolName = tool.name || 'unknown_tool';
1729
- const actionId = `${moduleName}_${sanitizeModuleName(toolName)}`;
1730
- const actionClassName = toClassName(sanitizeModuleName(toolName));
1731
- const actionLabel = toLabel(toolName);
1732
- const entityType = this.inferEntityType(tool);
1733
- const phpContent = this.generateActionPluginClass(moduleName, actionId, actionClassName, actionLabel, entityType, toolName, operation.toLowerCase());
1734
- files.push(this.createFile(`${moduleName}/src/Plugin/Action/${actionClassName}Action.php`, phpContent, 'code', 'php'));
1735
- }
1736
- return files;
1737
- }
1738
- /**
1739
- * Infer the entity type a tool operates on from its metadata.
1740
- *
1741
- * Checks tool.config.entity_type, falls back to 'node'.
1742
- */
1743
- inferEntityType(tool) {
1744
- const config = tool.config;
1745
- if (config?.entity_type && typeof config.entity_type === 'string') {
1746
- return config.entity_type;
1747
- }
1748
- return 'node';
1749
- }
1750
- /**
1751
- * Generate a single Action plugin PHP class.
1752
- *
1753
- * Produces a Drupal Action plugin using PHP 8 #[Action] attribute syntax,
1754
- * constructor property promotion, and ContainerFactoryPluginInterface.
1755
- */
1756
- generateActionPluginClass(moduleName, actionId, actionClassName, actionLabel, entityType, toolName, operation) {
1757
- // Map operation to appropriate access check
1758
- const accessOp = operation === 'delete' ? 'delete' : 'update';
1759
- return `<?php
1760
-
1761
- declare(strict_types=1);
1762
-
1763
- namespace Drupal\\${moduleName}\\Plugin\\Action;
1764
-
1765
- use Drupal\\Core\\Action\\Attribute\\Action;
1766
- use Drupal\\Core\\Action\\ActionBase;
1767
- use Drupal\\Core\\StringTranslation\\TranslatableMarkup;
1768
- use Drupal\\Core\\Plugin\\ContainerFactoryPluginInterface;
1769
- use Drupal\\Core\\Session\\AccountInterface;
1770
- use Drupal\\${moduleName}\\Service\\AgentExecutorService;
1771
- use Symfony\\Component\\DependencyInjection\\ContainerInterface;
1772
-
1773
- /**
1774
- * Action plugin: ${this.escapePhpString(actionLabel)}.
1775
- *
1776
- * Generated from OSSA manifest tool: ${toolName}
1777
- * Operation: ${operation}
1778
- */
1779
- #[Action(
1780
- id: '${actionId}',
1781
- label: new TranslatableMarkup('${this.escapePhpString(actionLabel)}'),
1782
- type: '${entityType}',
1783
- )]
1784
- class ${actionClassName}Action extends ActionBase implements ContainerFactoryPluginInterface {
1785
-
1786
- /**
1787
- * Constructs a new ${actionClassName}Action.
1788
- *
1789
- * @param array $configuration
1790
- * Plugin configuration.
1791
- * @param string $plugin_id
1792
- * The plugin ID.
1793
- * @param mixed $plugin_definition
1794
- * The plugin definition.
1795
- * @param \\Drupal\\${moduleName}\\Service\\AgentExecutorService $agentService
1796
- * The agent executor service.
1797
- */
1798
- public function __construct(
1799
- array $configuration,
1800
- string $plugin_id,
1801
- mixed $plugin_definition,
1802
- private readonly AgentExecutorService $agentService,
1803
- ) {
1804
- parent::__construct($configuration, $plugin_id, $plugin_definition);
1805
- }
1806
-
1807
- /**
1808
- * {@inheritdoc}
1809
- */
1810
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static {
1811
- return new static(
1812
- $configuration,
1813
- $plugin_id,
1814
- $plugin_definition,
1815
- $container->get('${moduleName}.agent_executor'),
1816
- );
1817
- }
1818
-
1819
- /**
1820
- * {@inheritdoc}
1821
- */
1822
- public function execute($entity = NULL): void {
1823
- $this->agentService->executeTool('${this.escapePhpString(toolName)}', [
1824
- 'entity_id' => $entity?->id(),
1825
- 'entity_type' => $entity?->getEntityTypeId(),
1826
- 'operation' => '${operation}',
1827
- ]);
1828
- }
1829
-
1830
- /**
1831
- * {@inheritdoc}
1832
- */
1833
- public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
1834
- return $object->access('${accessOp}', $account, $return_as_object);
1835
- }
1836
-
1837
- }
1838
- `;
1839
- }
1840
- // ===================================================================
1841
- // Condition Plugin Generation (Phase 4 - Issue #433)
1842
- // ===================================================================
1843
- /**
1844
- * Generate Condition plugin classes from OSSA safety guardrails.
1845
- *
1846
- * Maps spec.safety.guardrails[] entries to Drupal Condition plugins.
1847
- * Also always generates an AgentEnabledCondition that checks whether
1848
- * the OSSA agent is enabled in module configuration.
1849
- *
1850
- * Uses PHP 8 #[Condition] attributes and ConditionPluginBase.
1851
- */
1852
- generateConditionPlugins(manifest, moduleName) {
1853
- const files = [];
1854
- const agentName = manifest.metadata?.name || moduleName;
1855
- // Always generate the AgentEnabledCondition
1856
- files.push(this.createFile(`${moduleName}/src/Plugin/Condition/AgentEnabledCondition.php`, this.generateAgentEnabledConditionClass(moduleName, agentName), 'code', 'php'));
1857
- // Generate condition plugins for each safety guardrail
1858
- const guardrails = manifest.spec?.safety?.guardrails || [];
1859
- for (const guardrail of guardrails) {
1860
- const guardName = guardrail.name || 'unknown_guard';
1861
- const conditionId = `${moduleName}_${sanitizeModuleName(guardName)}`;
1862
- const conditionClassName = toClassName(sanitizeModuleName(guardName));
1863
- const conditionLabel = toLabel(guardName);
1864
- files.push(this.createFile(`${moduleName}/src/Plugin/Condition/${conditionClassName}Condition.php`, this.generateGuardrailConditionClass(moduleName, conditionId, conditionClassName, conditionLabel, guardrail), 'code', 'php'));
1865
- }
1866
- return files;
1867
- }
1868
- /**
1869
- * Generate the AgentEnabledCondition plugin class.
1870
- *
1871
- * This condition checks whether the OSSA agent is enabled in module
1872
- * configuration. Used by ECA models to gate event-driven execution.
1873
- */
1874
- generateAgentEnabledConditionClass(moduleName, agentName) {
1875
- return `<?php
1876
-
1877
- declare(strict_types=1);
1878
-
1879
- namespace Drupal\\${moduleName}\\Plugin\\Condition;
1880
-
1881
- use Drupal\\Core\\Condition\\Attribute\\Condition;
1882
- use Drupal\\Core\\Condition\\ConditionPluginBase;
1883
- use Drupal\\Core\\Form\\FormStateInterface;
1884
- use Drupal\\Core\\StringTranslation\\TranslatableMarkup;
1885
- use Drupal\\Core\\Plugin\\ContainerFactoryPluginInterface;
1886
- use Drupal\\Core\\Config\\ConfigFactoryInterface;
1887
- use Symfony\\Component\\DependencyInjection\\ContainerInterface;
1888
-
1889
- /**
1890
- * Condition plugin: OSSA Agent Enabled.
1891
- *
1892
- * Evaluates whether the OSSA agent is enabled in module configuration.
1893
- * Used by ECA models to gate event-driven agent execution.
1894
- */
1895
- #[Condition(
1896
- id: 'ossa_agent_enabled',
1897
- label: new TranslatableMarkup('OSSA Agent Enabled'),
1898
- )]
1899
- class AgentEnabledCondition extends ConditionPluginBase implements ContainerFactoryPluginInterface {
1900
-
1901
- /**
1902
- * Constructs a new AgentEnabledCondition.
1903
- *
1904
- * @param array $configuration
1905
- * Plugin configuration.
1906
- * @param string $plugin_id
1907
- * The plugin ID.
1908
- * @param mixed $plugin_definition
1909
- * The plugin definition.
1910
- * @param \\Drupal\\Core\\Config\\ConfigFactoryInterface $configFactory
1911
- * The config factory service.
1912
- */
1913
- public function __construct(
1914
- array $configuration,
1915
- string $plugin_id,
1916
- mixed $plugin_definition,
1917
- private readonly ConfigFactoryInterface $configFactory,
1918
- ) {
1919
- parent::__construct($configuration, $plugin_id, $plugin_definition);
1920
- }
1921
-
1922
- /**
1923
- * {@inheritdoc}
1924
- */
1925
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static {
1926
- return new static(
1927
- $configuration,
1928
- $plugin_id,
1929
- $plugin_definition,
1930
- $container->get('config.factory'),
1931
- );
1932
- }
1933
-
1934
- /**
1935
- * {@inheritdoc}
1936
- */
1937
- public function defaultConfiguration(): array {
1938
- return [
1939
- 'agent_id' => '${this.escapePhpString(agentName)}',
1940
- ] + parent::defaultConfiguration();
1941
- }
1942
-
1943
- /**
1944
- * {@inheritdoc}
1945
- */
1946
- public function buildConfigurationForm(array $form, FormStateInterface $form_state): array {
1947
- $form['agent_id'] = [
1948
- '#type' => 'textfield',
1949
- '#title' => $this->t('Agent ID'),
1950
- '#default_value' => $this->configuration['agent_id'],
1951
- '#description' => $this->t('The OSSA agent identifier to check.'),
1952
- '#required' => TRUE,
1953
- ];
1954
-
1955
- return parent::buildConfigurationForm($form, $form_state);
1956
- }
1957
-
1958
- /**
1959
- * {@inheritdoc}
1960
- */
1961
- public function submitConfigurationForm(array &$form, FormStateInterface $form_state): void {
1962
- $this->configuration['agent_id'] = $form_state->getValue('agent_id');
1963
- parent::submitConfigurationForm($form, $form_state);
1964
- }
1965
-
1966
- /**
1967
- * {@inheritdoc}
1968
- */
1969
- public function evaluate(): bool {
1970
- $config = $this->configFactory->get('${moduleName}.settings');
1971
-
1972
- // Check if auto-execution is enabled (agent is active)
1973
- $enabled = (bool) $config->get('auto_execute_on_save');
1974
-
1975
- return $this->isNegated() ? !$enabled : $enabled;
1976
- }
1977
-
1978
- /**
1979
- * {@inheritdoc}
1980
- */
1981
- public function summary(): TranslatableMarkup {
1982
- if ($this->isNegated()) {
1983
- return new TranslatableMarkup('OSSA agent @agent is disabled', [
1984
- '@agent' => $this->configuration['agent_id'],
1985
- ]);
1986
- }
1987
-
1988
- return new TranslatableMarkup('OSSA agent @agent is enabled', [
1989
- '@agent' => $this->configuration['agent_id'],
1990
- ]);
1991
- }
1992
-
1993
- }
1994
- `;
1995
- }
1996
- /**
1997
- * Generate a Condition plugin class for a specific safety guardrail.
1998
- *
1999
- * Maps OSSA spec.safety.guardrails[] entries to Drupal Condition plugins.
2000
- * Supports 'input' guardrails (check blocked patterns) and 'output' guardrails
2001
- * (check response constraints like maxLength).
2002
- */
2003
- generateGuardrailConditionClass(moduleName, conditionId, conditionClassName, conditionLabel, guardrail) {
2004
- const guardType = guardrail.type || 'input';
2005
- const blockedPatterns = guardrail.blocked_patterns || [];
2006
- const maxLength = guardrail.maxLength;
2007
- // Build the patterns array as a PHP literal
2008
- const patternsPhp = blockedPatterns.length > 0
2009
- ? `[${blockedPatterns.map((p) => `'${this.escapePhpString(p)}'`).join(', ')}]`
2010
- : '[]';
2011
- // Build evaluation logic based on guardrail type
2012
- let evaluateBody;
2013
- if (guardType === 'input' && blockedPatterns.length > 0) {
2014
- evaluateBody = ` $content = $this->configuration['content'] ?? '';
2015
- $blocked_patterns = ${patternsPhp};
2016
-
2017
- foreach ($blocked_patterns as $pattern) {
2018
- if (str_contains($content, $pattern)) {
2019
- return $this->isNegated() ? TRUE : FALSE;
2020
- }
2021
- }
2022
-
2023
- return $this->isNegated() ? FALSE : TRUE;`;
2024
- }
2025
- else if (guardType === 'output' && maxLength) {
2026
- evaluateBody = ` $content = $this->configuration['content'] ?? '';
2027
- $max_length = ${maxLength};
2028
- $within_limit = mb_strlen($content) <= $max_length;
2029
-
2030
- return $this->isNegated() ? !$within_limit : $within_limit;`;
2031
- }
2032
- else {
2033
- evaluateBody = ` // Default: condition passes
2034
- return !$this->isNegated();`;
2035
- }
2036
- return `<?php
2037
-
2038
- declare(strict_types=1);
2039
-
2040
- namespace Drupal\\${moduleName}\\Plugin\\Condition;
2041
-
2042
- use Drupal\\Core\\Condition\\Attribute\\Condition;
2043
- use Drupal\\Core\\Condition\\ConditionPluginBase;
2044
- use Drupal\\Core\\StringTranslation\\TranslatableMarkup;
2045
-
2046
- /**
2047
- * Condition plugin: ${this.escapePhpString(conditionLabel)}.
2048
- *
2049
- * Generated from OSSA safety guardrail: ${guardrail.name}
2050
- * Type: ${guardType}
2051
- */
2052
- #[Condition(
2053
- id: '${conditionId}',
2054
- label: new TranslatableMarkup('${this.escapePhpString(conditionLabel)}'),
2055
- )]
2056
- class ${conditionClassName}Condition extends ConditionPluginBase {
2057
-
2058
- /**
2059
- * {@inheritdoc}
2060
- */
2061
- public function defaultConfiguration(): array {
2062
- return [
2063
- 'content' => '',
2064
- ] + parent::defaultConfiguration();
2065
- }
2066
-
2067
- /**
2068
- * {@inheritdoc}
2069
- */
2070
- public function evaluate(): bool {
2071
- ${evaluateBody}
2072
- }
2073
-
2074
- /**
2075
- * {@inheritdoc}
2076
- */
2077
- public function summary(): TranslatableMarkup {
2078
- return new TranslatableMarkup('${this.escapePhpString(conditionLabel)} guardrail (${guardType})');
2079
- }
2080
-
2081
- }
2082
- `;
2083
- }
2084
- // ===================================================================
2085
- // Recipe Generation (Phase 5 - Issue #433)
2086
- // ===================================================================
2087
- /**
2088
- * Generate a Drupal Recipe YAML file for composable installation.
2089
- *
2090
- * Recipes are Drupal's modern approach to distributing reusable
2091
- * configuration sets. This generates a recipe that installs and
2092
- * configures the OSSA agent module along with its dependencies.
2093
- */
2094
- generateRecipe(manifest, moduleName, tools) {
2095
- const displayName = toLabel(manifest.metadata?.name || moduleName);
2096
- const description = manifest.metadata?.description || `OSSA ${displayName} agent`;
2097
- const llmConfig = manifest.spec?.llm || {};
2098
- // Build the install list
2099
- const installModules = ['ai', 'ai_agents', 'tool', 'eca', moduleName];
2100
- // Build config actions for tool_ai_connector entities
2101
- const toolConfigLines = [];
2102
- if (tools.length > 0) {
2103
- for (const tool of tools) {
2104
- const drupalTool = mapOssaToolToDrupalTool(tool, moduleName);
2105
- toolConfigLines.push(` tool_ai_connector.tool.${drupalTool.id}:`, ` simple_config_update:`, ` status: true`, ` ai_callable: true`);
2106
- }
2107
- }
2108
- let recipe = `name: '${displayName}'
2109
- description: 'Install and configure the OSSA ${sanitizeModuleName(manifest.metadata?.name || moduleName)} agent'
2110
- type: 'AI Agent'
2111
- install:
2112
- ${installModules.map((m) => ` - ${m}`).join('\n')}
2113
- config:
2114
- import:
2115
- ${moduleName}:
2116
- - ${moduleName}.settings
2117
- actions:
2118
- ${moduleName}.settings:
2119
- simple_config_update:
2120
- auto_execute_on_save: true
2121
- llm_provider: ${llmConfig.provider || 'anthropic'}
2122
- llm_model: ${llmConfig.model || 'claude-sonnet-4-20250514'}
2123
- temperature: ${llmConfig.temperature || 0.7}
2124
- `;
2125
- if (toolConfigLines.length > 0) {
2126
- recipe += toolConfigLines.join('\n') + '\n';
2127
- }
2128
- return recipe;
2129
- }
2130
- /**
2131
- * Generate config/schema/MODULE.schema.yml
2132
- */
2133
- generateConfigSchema(moduleName) {
2134
- return `${moduleName}.settings:
2135
- type: config_object
2136
- label: 'Agent Settings'
2137
- mapping:
2138
- auto_execute_on_save:
2139
- type: boolean
2140
- label: 'Auto-execute on entity save'
2141
- enabled_entity_types:
2142
- type: sequence
2143
- label: 'Enabled entity types'
2144
- sequence:
2145
- type: string
2146
- llm_provider:
2147
- type: string
2148
- label: 'LLM Provider'
2149
- llm_model:
2150
- type: string
2151
- label: 'LLM Model'
2152
- temperature:
2153
- type: float
2154
- label: 'Temperature'
2155
- `;
2156
- }
2157
- /**
2158
- * Generate config/install/MODULE.settings.yml
2159
- */
2160
- generateDefaultConfig(manifest) {
2161
- const llmConfig = manifest.spec?.llm || {};
2162
- return `auto_execute_on_save: false
2163
- enabled_entity_types: []
2164
- llm_provider: '${llmConfig.provider || 'anthropic'}'
2165
- llm_model: '${llmConfig.model || 'claude-sonnet-4-20250514'}'
2166
- temperature: ${llmConfig.temperature || 0.7}
2167
- `;
2168
- }
2169
- /**
2170
- * Generate templates/agent-result.html.twig
2171
- */
2172
- generateAgentResultTemplate(moduleName) {
2173
- return `{#
2174
- /**
2175
- * @file
2176
- * Theme template for agent execution result.
2177
- *
2178
- * Available variables:
2179
- * - result: The execution result object
2180
- * - metadata: Execution metadata
2181
- */
2182
- #}
2183
- <div class="${moduleName}-result">
2184
- <div class="result-output">
2185
- <h3>{{ 'Output'|t }}</h3>
2186
- <div class="output-content">
2187
- {{ result.output }}
2188
- </div>
2189
- </div>
2190
-
2191
- {% if metadata %}
2192
- <div class="result-metadata">
2193
- <h4>{{ 'Metadata'|t }}</h4>
2194
- <dl>
2195
- {% if metadata.duration_ms %}
2196
- <dt>{{ 'Duration'|t }}</dt>
2197
- <dd>{{ metadata.duration_ms }} ms</dd>
2198
- {% endif %}
2199
-
2200
- {% if metadata.model %}
2201
- <dt>{{ 'Model'|t }}</dt>
2202
- <dd>{{ metadata.model }}</dd>
2203
- {% endif %}
2204
-
2205
- {% if metadata.provider %}
2206
- <dt>{{ 'Provider'|t }}</dt>
2207
- <dd>{{ metadata.provider }}</dd>
2208
- {% endif %}
2209
-
2210
- {% if metadata.usage %}
2211
- <dt>{{ 'Token Usage'|t }}</dt>
2212
- <dd>{{ metadata.usage.total_tokens|default('N/A') }}</dd>
2213
- {% endif %}
2214
- </dl>
2215
- </div>
2216
- {% endif %}
2217
- </div>
2218
- `;
2219
- }
2220
- /**
2221
- * Generate templates/agent-execute-form.html.twig
2222
- */
2223
- generateExecuteFormTemplate(moduleName) {
2224
- return `{#
2225
- /**
2226
- * @file
2227
- * Theme template for agent execute form.
2228
- *
2229
- * Available variables:
2230
- * - form: The form render array
2231
- */
2232
- #}
2233
- <div class="${moduleName}-execute-form">
2234
- <div class="form-header">
2235
- <h2>{{ 'Execute Agent'|t }}</h2>
2236
- <p>{{ 'Enter your input and execute the agent.'|t }}</p>
2237
- </div>
2238
-
2239
- <div class="form-content">
2240
- {{ form }}
2241
- </div>
2242
- </div>
2243
- `;
2244
- }
2245
- /**
2246
- * Generate README.md
2247
- */
2248
- generateReadme(manifest, moduleName, options) {
2249
- const capabilities = extractCapabilities(manifest);
2250
- const tools = extractTools(manifest);
2251
- return `# ${manifest.metadata?.name || moduleName}
2252
-
2253
- ${manifest.metadata?.description || 'OSSA agent module for Drupal'}
2254
-
2255
- ## Description
2256
-
2257
- ${manifest.spec?.role || 'AI Agent powered by OSSA'}
2258
-
2259
- This module provides a complete integration of an OSSA agent with Drupal, including:
2260
-
2261
- ${options.includeQueueWorker ? '- ✅ Queue Worker for asynchronous execution' : ''}
2262
- ${options.includeEntity ? '- ✅ Entity storage for agent results' : ''}
2263
- ${options.includeController ? '- ✅ Admin UI and API endpoints' : ''}
2264
- ${options.includeConfigForm ? '- ✅ Configuration form' : ''}
2265
- ${options.includeHooks ? '- ✅ Drupal hooks (entity_presave, cron)' : ''}
2266
- ${options.includeViews ? '- ✅ Views integration' : ''}
2267
-
2268
- ## Requirements
2269
-
2270
- - **Drupal**: ${options.coreVersion}
2271
- - **PHP**: >=8.2
2272
- - **Composer packages**:
2273
- - \`drupal/ai\`: ^1.0
2274
- - \`drupal/ai_agents\`: ^1.3
2275
- - \`drupal/tool\`: ^1.0@alpha
2276
-
2277
- ## Installation
2278
-
2279
- ### 1. Install via Composer
2280
-
2281
- \`\`\`bash
2282
- cd /path/to/drupal
2283
- composer require drupal/ai drupal/ai_agents drupal/tool
2284
- \`\`\`
2285
-
2286
- ### 2. Copy module to Drupal
2287
-
2288
- \`\`\`bash
2289
- cp -r ${moduleName} web/modules/custom/
2290
- \`\`\`
2291
-
2292
- ### 3. Enable module
2293
-
2294
- \`\`\`bash
2295
- drush en ${moduleName}
2296
- \`\`\`
2297
-
2298
- ### 4. Configure API keys
2299
-
2300
- Set your LLM provider API keys in \`settings.php\`:
2301
-
2302
- \`\`\`php
2303
- // Anthropic (Claude)
2304
- $config['ossa']['providers']['anthropic']['api_key'] = getenv('ANTHROPIC_API_KEY');
2305
-
2306
- // OpenAI
2307
- $config['ossa']['providers']['openai']['api_key'] = getenv('OPENAI_API_KEY');
2308
- \`\`\`
2309
-
2310
- Or use environment variables:
2311
-
2312
- \`\`\`bash
2313
- export ANTHROPIC_API_KEY="sk-ant-..."
2314
- export OPENAI_API_KEY="sk-..."
2315
- \`\`\`
2316
-
2317
- ## Configuration
2318
-
2319
- Visit \`/admin/config/${moduleName}\` to configure:
2320
-
2321
- - LLM provider (Anthropic, OpenAI, Google, Azure)
2322
- - Model selection
2323
- - Temperature settings
2324
- - Auto-execution triggers
2325
- - Enabled entity types
2326
-
2327
- ## Usage
2328
-
2329
- ### Execute via Admin UI
2330
-
2331
- 1. Navigate to \`/admin/${moduleName}/execute\`
2332
- 2. Enter your input
2333
- 3. Click "Execute"
2334
- 4. View results
2335
-
2336
- ### Execute via Drush
2337
-
2338
- \`\`\`bash
2339
- drush ossa:agent:execute ${manifest.metadata?.name || 'agent'} "Your input here"
2340
- \`\`\`
2341
-
2342
- ### Execute via API
2343
-
2344
- \`\`\`bash
2345
- # Synchronous execution
2346
- curl -X POST https://example.com/api/${moduleName}/execute \\
2347
- -H "Content-Type: application/json" \\
2348
- -d '{"input": "Your input here"}'
2349
-
2350
- # Asynchronous execution (queued)
2351
- curl -X POST https://example.com/api/${moduleName}/execute-async \\
2352
- -H "Content-Type: application/json" \\
2353
- -d '{"input": "Your input here"}'
2354
- \`\`\`
2355
-
2356
- ### Execute via PHP
2357
-
2358
- \`\`\`php
2359
- // Get service
2360
- $agent = \\Drupal::service('${moduleName}.agent_executor');
2361
-
2362
- // Execute synchronously
2363
- $result = $agent->execute('Your input here');
2364
-
2365
- if ($result['success']) {
2366
- echo $result['output'];
2367
- }
2368
-
2369
- // Execute asynchronously (queued)
2370
- $queue_id = $agent->executeAsync('Your input here');
2371
- \`\`\`
2372
-
2373
- ## Capabilities
2374
-
2375
- ${capabilities.map((c) => `- ${c}`).join('\n')}
2376
-
2377
- ## Tools
2378
-
2379
- ${tools.map((t) => `- **${t.name || 'unknown'}**: ${t.description || 'No description'}`).join('\n')}
2380
-
2381
- ${options.includeQueueWorker
2382
- ? `
2383
- ## Queue Processing
2384
-
2385
- The module includes a queue worker for asynchronous agent execution:
2386
-
2387
- \`\`\`bash
2388
- # Process queue via cron
2389
- drush cron
2390
-
2391
- # Process queue manually
2392
- drush queue:run ${moduleName}_agent_queue
2393
- \`\`\`
2394
- `
2395
- : ''}
2396
-
2397
- ${options.includeEntity
2398
- ? `
2399
- ## Results Storage
2400
-
2401
- All agent execution results are stored in the database and can be viewed at:
2402
- \`/admin/${moduleName}/results\`
2403
-
2404
- Results can also be queried via Views or entity queries:
2405
-
2406
- \`\`\`php
2407
- $storage = \\Drupal::entityTypeManager()->getStorage('${moduleName}_result');
2408
- $results = $storage->loadMultiple();
2409
- \`\`\`
2410
- `
2411
- : ''}
2412
-
2413
- ## Hooks
2414
-
2415
- This module implements the following Drupal hooks:
2416
-
2417
- ${options.includeHooks
2418
- ? `
2419
- - \`hook_help()\`: Provides help text
2420
- - \`hook_cron()\`: Processes queue items
2421
- - \`hook_entity_presave()\`: Triggers agent on entity save (if enabled)
2422
- - \`hook_theme()\`: Registers theme templates
2423
- `
2424
- : ''}
2425
-
2426
- ## Architecture
2427
-
2428
- This module follows OSSA (Open Standard Agents) specification and uses:
2429
-
2430
- - **drupal/ai**: LLM provider abstraction (Anthropic, OpenAI, Google, Azure)
2431
- - **drupal/ai_agents**: AI agent plugin system for Drupal
2432
- - **drupal/tool**: Tool API plugin system
2433
- - **PHP 8 Attributes**: Modern \`#[Hook]\`, \`#[QueueWorker]\`, \`#[ContentEntityType]\`
2434
- - **OO Hook Classes**: All hooks implemented as classes in \`src/Hook/\`
2435
- - **Queue System**: Drupal queue for async execution
2436
- - **Entity API**: Drupal entities for result storage
2437
- - **Configuration API**: Drupal configuration system
2438
-
2439
- ## Generated from OSSA
2440
-
2441
- This module was generated from an OSSA v${manifest.apiVersion?.split('/')[1] || '{{VERSION}}'} manifest.
2442
-
2443
- Original manifest: \`config/ossa/agent.ossa.yaml\`
2444
-
2445
- ## Support
2446
-
2447
- - **OSSA Specification**: https://openstandardagents.org/
2448
- - **Symfony Bundle**: https://github.com/blueflyio/openstandardagents
2449
- - **Issue Tracker**: https://gitlab.com/blueflyio/ossa/openstandardagents/-/issues
2450
-
2451
- ## License
2452
-
2453
- ${manifest.metadata?.license || 'GPL-2.0-or-later'}
2454
- `;
2455
- }
2456
- /**
2457
- * Generate INSTALL.md
2458
- */
2459
- generateInstallGuide(manifest, moduleName) {
2460
- return `# Installation Guide: ${manifest.metadata?.name || moduleName}
2461
-
2462
- ## Prerequisites
2463
-
2464
- - Drupal 10.x or 11.x
2465
- - PHP 8.2 or higher
2466
- - Composer
2467
- - LLM provider API key (Anthropic, OpenAI, Google, or Azure)
2468
-
2469
- ## Step 1: Install Dependencies
2470
-
2471
- \`\`\`bash
2472
- cd /path/to/drupal
2473
- composer require drupal/ai drupal/ai_agents drupal/tool
2474
- \`\`\`
2475
-
2476
- ## Step 2: Install Module
2477
-
2478
- ### Option A: Via Composer (if published)
2479
-
2480
- \`\`\`bash
2481
- composer require drupal/${moduleName}
2482
- drush en ${moduleName}
2483
- \`\`\`
2484
-
2485
- ### Option B: Manual Installation
2486
-
2487
- \`\`\`bash
2488
- # Copy module directory
2489
- cp -r ${moduleName} /path/to/drupal/web/modules/custom/
2490
-
2491
- # Enable module
2492
- drush en ${moduleName}
2493
-
2494
- # Or via UI: Admin → Extend → Enable "${manifest.metadata?.name || moduleName}"
2495
- \`\`\`
2496
-
2497
- ## Step 3: Configure API Keys
2498
-
2499
- ### Method 1: Environment Variables (Recommended)
2500
-
2501
- Add to \`.env\` or export:
2502
-
2503
- \`\`\`bash
2504
- export ANTHROPIC_API_KEY="sk-ant-..."
2505
- export OPENAI_API_KEY="sk-..."
2506
- export GOOGLE_API_KEY="..."
2507
- export AZURE_OPENAI_API_KEY="..."
2508
- export AZURE_OPENAI_ENDPOINT="https://..."
2509
- \`\`\`
2510
-
2511
- ### Method 2: settings.php
2512
-
2513
- Add to \`sites/default/settings.php\`:
2514
-
2515
- \`\`\`php
2516
- // OSSA Provider Configuration
2517
- $config['ossa']['providers']['anthropic']['api_key'] = getenv('ANTHROPIC_API_KEY');
2518
- $config['ossa']['providers']['openai']['api_key'] = getenv('OPENAI_API_KEY');
2519
- $config['ossa']['providers']['google']['api_key'] = getenv('GOOGLE_API_KEY');
2520
- $config['ossa']['providers']['azure']['api_key'] = getenv('AZURE_OPENAI_API_KEY');
2521
- $config['ossa']['providers']['azure']['base_url'] = getenv('AZURE_OPENAI_ENDPOINT');
2522
- \`\`\`
2523
-
2524
- ## Step 4: Configure Module
2525
-
2526
- 1. Navigate to \`/admin/config/${moduleName}\`
2527
- 2. Select your preferred LLM provider
2528
- 3. Choose model (e.g., \`claude-sonnet-4-20250514\`)
2529
- 4. Adjust temperature (0.0-1.0)
2530
- 5. Configure auto-execution triggers (optional)
2531
- 6. Save configuration
2532
-
2533
- ## Step 5: Verify Installation
2534
-
2535
- ### Test via Drush
2536
-
2537
- \`\`\`bash
2538
- # List available agents
2539
- drush ossa:agent:list
2540
-
2541
- # Execute agent
2542
- drush ossa:agent:execute ${manifest.metadata?.name || 'agent'} "Test input"
2543
- \`\`\`
2544
-
2545
- ### Test via UI
2546
-
2547
- 1. Visit \`/admin/${moduleName}/execute\`
2548
- 2. Enter test input
2549
- 3. Click "Execute"
2550
- 4. Verify output appears
2551
-
2552
- ### Test via API
2553
-
2554
- \`\`\`bash
2555
- curl -X POST http://localhost/api/${moduleName}/execute \\
2556
- -H "Content-Type: application/json" \\
2557
- -d '{"input": "Hello, agent!"}'
2558
- \`\`\`
2559
-
2560
- ## Step 6: Set Up Cron (Optional)
2561
-
2562
- For asynchronous execution via queue:
2563
-
2564
- \`\`\`bash
2565
- # Configure Drupal cron
2566
- drush cron
2567
-
2568
- # Or set up system cron
2569
- crontab -e
2570
- # Add: */5 * * * * drush -r /path/to/drupal cron
2571
- \`\`\`
2572
-
2573
- ## Troubleshooting
2574
-
2575
- ### Issue: "Missing API key"
2576
-
2577
- **Solution**: Verify environment variables or settings.php configuration
2578
-
2579
- \`\`\`bash
2580
- # Check environment
2581
- echo $ANTHROPIC_API_KEY
2582
-
2583
- # Or verify in PHP
2584
- drush php-eval "print_r(\\Drupal::config('ossa.settings')->get('providers'));"
2585
- \`\`\`
2586
-
2587
- ### Issue: "Agent not found"
2588
-
2589
- **Solution**: Clear cache
2590
-
2591
- \`\`\`bash
2592
- drush cr
2593
- \`\`\`
2594
-
2595
- ### Issue: "Queue not processing"
2596
-
2597
- **Solution**: Run cron manually
2598
-
2599
- \`\`\`bash
2600
- drush cron
2601
- # Or process queue directly
2602
- drush queue:run ${moduleName}_agent_queue
2603
- \`\`\`
2604
-
2605
- ### Issue: "Permission denied"
2606
-
2607
- **Solution**: Grant permissions
2608
-
2609
- 1. Visit \`/admin/people/permissions\`
2610
- 2. Grant "Administer ${moduleName}" permission
2611
- 3. Save permissions
2612
-
2613
- ## Next Steps
2614
-
2615
- - Configure auto-execution triggers
2616
- - Set up Views for result browsing
2617
- - Integrate with custom modules
2618
- - Monitor execution logs
2619
-
2620
- ## Support
2621
-
2622
- - Documentation: https://openstandardagents.org/
2623
- - Issues: https://gitlab.com/blueflyio/ossa/openstandardagents/-/issues
2624
- - Drupal.org: https://www.drupal.org/project/${moduleName}
2625
- `;
2626
- }
2627
- }
2628
- //# sourceMappingURL=generator.js.map