@bluefly/openstandardagents 0.2.5-RC → 0.2.7

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 (238) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +63 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.yml +40 -0
  3. package/.github/workflows/dependabot-comment.yml +34 -0
  4. package/.github/workflows/pr-comment.yml +33 -0
  5. package/.husky/pre-commit +5 -0
  6. package/.kiro/config.json +21 -0
  7. package/.kiro/settings/mcp.json +61 -0
  8. package/.kiro/specs/scripts-migration-api-first/design.md +883 -0
  9. package/.kiro/specs/scripts-migration-api-first/requirements.md +165 -0
  10. package/.kiro/specs/scripts-migration-api-first/tasks.md +539 -0
  11. package/.kiro/specs/{website-design-audit → website-brand-identity}/design.md +381 -0
  12. package/.kiro/specs/{website-design-audit → website-brand-identity}/requirements.md +88 -0
  13. package/.kiro/specs/website-brand-identity/tasks.md +981 -0
  14. package/CHANGELOG.md +23 -0
  15. package/README.md +12 -3
  16. package/bin/ossa-dev +42 -0
  17. package/bin/ossa-export +32 -0
  18. package/bin/ossa-generate +60 -0
  19. package/bin/ossa-health +40 -0
  20. package/bin/ossa-init +26 -0
  21. package/dist/repositories/schema.repository.d.ts.map +1 -1
  22. package/dist/repositories/schema.repository.js +15 -10
  23. package/dist/repositories/schema.repository.js.map +1 -1
  24. package/dist/services/github-sync/github-client.d.ts +14 -0
  25. package/dist/services/github-sync/github-client.d.ts.map +1 -0
  26. package/dist/services/github-sync/github-client.js +41 -0
  27. package/dist/services/github-sync/github-client.js.map +1 -0
  28. package/dist/services/github-sync/gitlab-client.d.ts +17 -0
  29. package/dist/services/github-sync/gitlab-client.d.ts.map +1 -0
  30. package/dist/services/github-sync/gitlab-client.js +42 -0
  31. package/dist/services/github-sync/gitlab-client.js.map +1 -0
  32. package/dist/services/github-sync/schemas.d.ts +46 -0
  33. package/dist/services/github-sync/schemas.d.ts.map +1 -0
  34. package/dist/services/github-sync/schemas.js +36 -0
  35. package/dist/services/github-sync/schemas.js.map +1 -0
  36. package/dist/services/github-sync/sync.service.d.ts +27 -0
  37. package/dist/services/github-sync/sync.service.d.ts.map +1 -0
  38. package/dist/services/github-sync/sync.service.js +99 -0
  39. package/dist/services/github-sync/sync.service.js.map +1 -0
  40. package/dist/services/runtime/claude/capability-mapper.d.ts +84 -0
  41. package/dist/services/runtime/claude/capability-mapper.d.ts.map +1 -0
  42. package/dist/services/runtime/claude/capability-mapper.js +245 -0
  43. package/dist/services/runtime/claude/capability-mapper.js.map +1 -0
  44. package/dist/services/runtime/claude/claude-adapter.d.ts +80 -0
  45. package/dist/services/runtime/claude/claude-adapter.d.ts.map +1 -0
  46. package/dist/services/runtime/claude/claude-adapter.js +287 -0
  47. package/dist/services/runtime/claude/claude-adapter.js.map +1 -0
  48. package/dist/services/runtime/claude/manifest-parser.d.ts +77 -0
  49. package/dist/services/runtime/claude/manifest-parser.d.ts.map +1 -0
  50. package/dist/services/runtime/claude/manifest-parser.js +169 -0
  51. package/dist/services/runtime/claude/manifest-parser.js.map +1 -0
  52. package/dist/services/runtime/claude/types.d.ts +115 -0
  53. package/dist/services/runtime/claude/types.d.ts.map +1 -0
  54. package/dist/services/runtime/claude/types.js +6 -0
  55. package/dist/services/runtime/claude/types.js.map +1 -0
  56. package/dist/services/validation.service.d.ts.map +1 -1
  57. package/dist/services/validation.service.js +12 -1
  58. package/dist/services/validation.service.js.map +1 -1
  59. package/dist/spec/v0.2.4/ossa-0.2.4.schema.json +85 -208
  60. package/dist/spec/v0.2.6/CHANGELOG.md +401 -0
  61. package/dist/spec/v0.2.6/README.md +72 -0
  62. package/dist/spec/v0.2.6/migrations/v0.2.3-to-v0.2.4.md +599 -0
  63. package/dist/spec/v0.2.6/migrations/v0.2.5-RC-to-v0.2.6.md +65 -0
  64. package/dist/spec/v0.2.6/ossa-0.2.6.schema.json +1786 -0
  65. package/dist/spec/v0.2.6/ossa-0.2.6.yaml +581 -0
  66. package/dist/spec/v0.2.6-dev/CHANGELOG.md +164 -0
  67. package/dist/spec/v0.2.6-dev/README.md +75 -0
  68. package/dist/spec/v0.2.6-dev/migrations/v0.2.2-to-v0.2.3.md +343 -0
  69. package/dist/spec/v0.2.6-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
  70. package/dist/spec/{v0.2.4/ossa-0.2.4-dev.schema.json → v0.2.6-dev/ossa-0.2.5.schema.json} +9 -9
  71. package/dist/spec/v0.2.6-dev/ossa-0.2.5.yaml +581 -0
  72. package/{spec/v0.2.4/ossa-0.2.4-dev.schema.json → dist/spec/v0.2.6-dev/ossa-0.2.6-dev.schema.json} +9 -9
  73. package/dist/spec/v0.2.6-dev/ossa-0.2.6-dev.yaml +448 -0
  74. package/dist/spec/v0.2.7/core/agentgraph.md +324 -0
  75. package/dist/spec/v0.2.7/resources/agentgraph.yaml +135 -0
  76. package/docs/brand-guide/01-brand-overview.md +37 -0
  77. package/docs/brand-guide/02-logo-usage.md +43 -0
  78. package/docs/brand-guide/03-color-palette.md +70 -0
  79. package/docs/brand-guide/04-typography.md +82 -0
  80. package/docs/brand-guide/05-voice-and-tone.md +108 -0
  81. package/docs/brand-guide/06-visual-elements.md +137 -0
  82. package/docs/brand-guide/07-application-examples.md +153 -0
  83. package/docs/brand-guide/OssaLogo/OssA_Logo.svg +21 -0
  84. package/docs/brand-guide/OssaLogo/brand.af +0 -0
  85. package/docs/brand-guide/README.md +107 -0
  86. package/docs/comparison.md +315 -0
  87. package/docs/operations/automation-roadmap.md +245 -0
  88. package/docs/operations/github-sync-strategy.md +357 -0
  89. package/examples/anthropic/claude-assistant.ossa.json +5 -4
  90. package/examples/autogen/multi-agent.ossa.json +6 -4
  91. package/examples/crewai/research-team.ossa.json +14 -5
  92. package/examples/cursor/code-review-agent.ossa.json +21 -6
  93. package/examples/langchain/chain-agent.ossa.json +21 -5
  94. package/examples/langflow/workflow-agent.ossa.json +2 -3
  95. package/examples/langgraph/state-machine-agent.ossa.json +2 -3
  96. package/examples/llamaindex/rag-agent.ossa.json +2 -3
  97. package/examples/openai/multi-tool-agent.ossa.json +32 -9
  98. package/examples/openai/swarm-agent.ossa.json +18 -5
  99. package/examples/vercel/edge-agent.ossa.json +5 -4
  100. package/openapi/github-sync.yaml +115 -0
  101. package/package.json +25 -4
  102. package/scripts/README.md +103 -0
  103. package/scripts/auto-rebase-mrs.ts +106 -0
  104. package/scripts/batch-dependabot.sh +57 -0
  105. package/scripts/configure-gitlab-branch-protection.ts +95 -0
  106. package/scripts/create-issue-helper.ts +238 -0
  107. package/scripts/create-milestone-issue.ts +73 -0
  108. package/scripts/fix-schema-formats.js +82 -0
  109. package/scripts/generate-agents-catalog.ts +77 -0
  110. package/scripts/generate-api-docs.ts +218 -0
  111. package/scripts/generate-cli-docs.ts +410 -0
  112. package/scripts/generate-config-docs.ts +109 -0
  113. package/scripts/generate-errors-docs.ts +76 -0
  114. package/scripts/generate-examples-docs.ts +99 -0
  115. package/scripts/generate-schema-docs.ts +296 -0
  116. package/scripts/generate-types-docs.ts +48 -0
  117. package/scripts/lowercase-docs.ts +43 -0
  118. package/scripts/manage-milestone-mrs.ts +279 -0
  119. package/scripts/rebase-all-mrs.sh +75 -0
  120. package/scripts/sync-github-pr.sh +48 -0
  121. package/scripts/sync-version.js +40 -0
  122. package/scripts/sync-wiki.sh +50 -0
  123. package/scripts/validate-all.js +127 -0
  124. package/spec/v0.2.4/ossa-0.2.4.schema.json +85 -208
  125. package/spec/v0.2.6/CHANGELOG.md +401 -0
  126. package/spec/v0.2.6/README.md +72 -0
  127. package/spec/v0.2.6/migrations/v0.2.3-to-v0.2.4.md +599 -0
  128. package/spec/v0.2.6/migrations/v0.2.5-RC-to-v0.2.6.md +65 -0
  129. package/spec/v0.2.6/ossa-0.2.6.schema.json +1786 -0
  130. package/spec/v0.2.6/ossa-0.2.6.yaml +581 -0
  131. package/spec/v0.2.6-dev/CHANGELOG.md +164 -0
  132. package/spec/v0.2.6-dev/README.md +75 -0
  133. package/spec/v0.2.6-dev/migrations/v0.2.2-to-v0.2.3.md +343 -0
  134. package/spec/v0.2.6-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
  135. package/spec/v0.2.6-dev/ossa-0.2.5.schema.json +1696 -0
  136. package/spec/v0.2.6-dev/ossa-0.2.5.yaml +581 -0
  137. package/spec/v0.2.6-dev/ossa-0.2.6-dev.schema.json +1696 -0
  138. package/spec/v0.2.6-dev/ossa-0.2.6-dev.yaml +448 -0
  139. package/spec/v0.2.7/core/agentgraph.md +324 -0
  140. package/spec/v0.2.7/resources/agentgraph.yaml +135 -0
  141. package/website/DESIGN_SYSTEM_IMPLEMENTATION.md +445 -0
  142. package/website/app/about/page.tsx +53 -44
  143. package/website/app/ecosystem/page.tsx +146 -111
  144. package/website/app/globals.scss +256 -21
  145. package/website/app/page.tsx +394 -182
  146. package/website/app/page.tsx.bak +679 -0
  147. package/website/app/page.tsx.bak2 +649 -0
  148. package/website/app/schema/page.tsx +3 -3
  149. package/website/app/specification/page.tsx +1 -1
  150. package/website/components/layout/Header.tsx +27 -23
  151. package/website/components/ui/Badge.tsx +82 -0
  152. package/website/components/ui/Button.tsx +116 -0
  153. package/website/components/ui/Card.tsx +167 -0
  154. package/website/components/ui/Checkbox.tsx +141 -0
  155. package/website/components/ui/Input.tsx +169 -0
  156. package/website/components/ui/Radio.tsx +141 -0
  157. package/website/components/ui/Select.tsx +182 -0
  158. package/website/components/ui/Tag.tsx +158 -0
  159. package/website/components/ui/Textarea.tsx +195 -0
  160. package/website/components/ui/index.ts +11 -0
  161. package/website/content/docs/{00-HOME.md → 00-home.md} +1 -1
  162. package/website/content/docs/agents/catalog.md +28 -0
  163. package/website/content/docs/{AIFlow-Framework-Integration-with-OSSA.md → aiflow-framework-integration-with-ossa.md} +2 -2
  164. package/website/content/docs/api-reference/index.md +38 -0
  165. package/website/content/docs/api-reference/ossa-core-api.md +634 -0
  166. package/website/content/docs/api-reference/ossa-registry-api.md +515 -0
  167. package/website/content/docs/api-reference/unified-agent-gateway.md +599 -0
  168. package/website/content/docs/cli-reference/index.md +111 -0
  169. package/website/content/docs/cli-reference/ossa-agents.md +70 -0
  170. package/website/content/docs/cli-reference/ossa-export.md +56 -0
  171. package/website/content/docs/cli-reference/ossa-generate.md +66 -0
  172. package/website/content/docs/cli-reference/ossa-gitlab-agent.md +57 -0
  173. package/website/content/docs/cli-reference/ossa-import.md +56 -0
  174. package/website/content/docs/cli-reference/ossa-init.md +57 -0
  175. package/website/content/docs/cli-reference/ossa-migrate.md +62 -0
  176. package/website/content/docs/cli-reference/ossa-run.md +66 -0
  177. package/website/content/docs/cli-reference/ossa-schema.md +57 -0
  178. package/website/content/docs/cli-reference/ossa-setup.md +57 -0
  179. package/website/content/docs/cli-reference/ossa-validate.md +66 -0
  180. package/website/content/docs/configuration/index.md +97 -0
  181. package/website/content/docs/deployment/github-mirroring.md +924 -0
  182. package/website/content/docs/documentation.md +100 -0
  183. package/website/content/docs/ecosystem/framework-support.md +551 -9
  184. package/website/content/docs/errors/index.md +10 -0
  185. package/website/content/docs/examples/{AIFlow-Framework-Integration-with-OSSA.md → aiflow-framework-integration-with-ossa.md} +2 -2
  186. package/website/content/docs/examples/catalog.md +300 -0
  187. package/website/content/docs/for-audiences/{Students-Researchers.md → students-researchers.md} +1 -1
  188. package/website/content/docs/getting-started/{Installation.md → installation.md} +1 -1
  189. package/website/content/docs/getting-started.md +1 -1
  190. package/website/content/docs/integrations/aiflow.md +2 -2
  191. package/website/content/docs/migration-guides/anthropic-mcp-to-ossa.md +5 -5
  192. package/website/content/docs/migration-guides/crewai-to-ossa.md +3 -3
  193. package/website/content/docs/migration-guides/drupal-eca-to-ossa.md +7 -7
  194. package/website/content/docs/migration-guides/langchain-to-ossa.md +4 -4
  195. package/website/content/docs/openapi-extensions/index.md +1 -1
  196. package/website/content/docs/ossa-compliant-badge.md +1 -1
  197. package/website/content/docs/pre-release/index.md +5 -5
  198. package/website/content/docs/releases/v0.2.6.md +99 -0
  199. package/website/content/docs/schema-reference/agent-capabilities.md +50 -0
  200. package/website/content/docs/schema-reference/agent-id.md +52 -0
  201. package/website/content/docs/schema-reference/agent-name.md +50 -0
  202. package/website/content/docs/schema-reference/agent-role.md +54 -0
  203. package/website/content/docs/schema-reference/agent-version.md +50 -0
  204. package/website/content/docs/schema-reference/index.md +26 -157
  205. package/website/content/docs/types-reference/index.md +105 -0
  206. package/website/content/docs/versioning.md +3 -3
  207. package/website/dev.sh +53 -0
  208. package/website/docker-compose.dev.yml +36 -0
  209. package/website/lib/version.ts +1 -1
  210. package/website/lib/versions.json +45 -20
  211. package/website/package.json +1 -1
  212. package/website/styles/_spacing.scss +453 -0
  213. package/website/styles/_tokens.scss +245 -0
  214. package/website/styles/_typography.scss +361 -0
  215. package/website/styles/_variables.scss +270 -19
  216. package/website/tailwind.config.ts +113 -79
  217. package/.kiro/specs/agent-buildkit-templates/design.md +0 -495
  218. package/.kiro/specs/agent-buildkit-templates/requirements.md +0 -165
  219. package/.kiro/specs/kiro-ide-supercharger/README.md +0 -202
  220. package/.kiro/specs/kiro-ide-supercharger/design.md +0 -1005
  221. package/.kiro/specs/kiro-ide-supercharger/requirements.md +0 -141
  222. package/.kiro/specs/kiro-ide-supercharger/tasks.md +0 -507
  223. package/docs/issue-19-completion-summary.md +0 -648
  224. package/docs/issue-19-validation.md +0 -351
  225. package/website/content/docs/Examples.md +0 -71
  226. package/website/content/docs/OpenAPI-Extensions.md +0 -934
  227. package/website/content/docs/core-concepts/Project-Structure.md +0 -348
  228. package/website/content/docs/examples/Migration-Guides.md +0 -214
  229. package/website/content/docs/for-audiences/Architects.md +0 -224
  230. package/website/content/docs/for-audiences/Developers.md +0 -220
  231. package/website/content/docs/for-audiences/Enterprises.md +0 -256
  232. package/website/content/docs/getting-started/5-Minute-Overview.md +0 -85
  233. package/website/content/docs/getting-started/First-Agent.md +0 -196
  234. package/website/content/docs/getting-started/Hello-World.md +0 -184
  235. package/website/content/docs/migration-guides/00-INDEX.md +0 -76
  236. package/website/content/docs/migration-guides/README.md +0 -133
  237. /package/dist/spec/v0.2.4/{ossa-0.2.4-dev.yaml → ossa-0.2.4.yaml} +0 -0
  238. /package/spec/v0.2.4/{ossa-0.2.4-dev.yaml → ossa-0.2.4.yaml} +0 -0
@@ -1,351 +0,0 @@
1
- # Issue #19 Validation Checklist
2
-
3
- **Issue:** ossa run command - Run agents with OpenAI adapter
4
- **Milestone:** v0.2.7 - Multi-Agent & Adapters
5
- **Status:** Implementation Complete, Testing & Documentation Added
6
-
7
- ## Acceptance Criteria Validation
8
-
9
- ### ✅ 1. Create `ossa run` command functionality
10
-
11
- **Status:** COMPLETE
12
-
13
- **Implementation:**
14
- - File: `src/cli/commands/run.command.ts`
15
- - Command registered in: `src/cli/index.ts`
16
- - Entry point: `bin/ossa`
17
-
18
- **Features Implemented:**
19
- - ✅ Command accepts `<path>` argument for manifest file
20
- - ✅ Interactive REPL mode for conversations
21
- - ✅ Single message mode with `-m, --message` flag
22
- - ✅ Verbose output with `-v, --verbose` flag
23
- - ✅ Validation toggle with `--no-validate` flag
24
- - ✅ Max turns configuration with `--max-turns` flag
25
- - ✅ Runtime selection with `-r, --runtime` flag
26
-
27
- **Tests:**
28
- - Unit tests: `tests/unit/cli/commands/run.command.test.ts`
29
- - Integration tests: `tests/integration/cli/run.test.ts`
30
-
31
- **Documentation:**
32
- - CLI Reference: `website/content/docs/cli/run-command.md`
33
- - Getting Started: `website/content/docs/getting-started/running-agents.md`
34
- - README.md: Updated with run command examples
35
-
36
- ---
37
-
38
- ### ✅ 2. Integrate with OpenAI adapter for agent execution
39
-
40
- **Status:** COMPLETE
41
-
42
- **Implementation:**
43
- - File: `src/services/runtime/openai.adapter.ts`
44
- - OpenAI SDK version: 6.9.1
45
-
46
- **Features Implemented:**
47
- - ✅ OpenAI API integration using official SDK
48
- - ✅ Function calling support
49
- - ✅ Tool registration and execution
50
- - ✅ Conversation history management
51
- - ✅ Model selection from manifest or extensions
52
- - ✅ System prompt handling
53
- - ✅ Tool mapping from OSSA capabilities to OpenAI functions
54
- - ✅ Custom tool handler registration
55
- - ✅ Error handling for tool execution
56
- - ✅ Max turns limit to prevent infinite loops
57
-
58
- **Tests:**
59
- - Unit tests: `tests/unit/services/runtime/openai.adapter.test.ts`
60
-
61
- **Documentation:**
62
- - Adapter Guide: `website/content/docs/adapters/openai-adapter.md`
63
- - Examples: `examples/openai/basic-agent.ossa.yaml`, `examples/openai/multi-tool-agent.ossa.json`
64
-
65
- ---
66
-
67
- ### ✅ 3. Ensure proper command-line interface and argument handling
68
-
69
- **Status:** COMPLETE
70
-
71
- **CLI Options Implemented:**
72
-
73
- | Option | Type | Default | Description |
74
- |--------|------|---------|-------------|
75
- | `<path>` | Argument | Required | Path to OSSA agent manifest |
76
- | `-r, --runtime` | Option | `openai` | Runtime adapter selection |
77
- | `-v, --verbose` | Flag | `false` | Verbose output |
78
- | `-m, --message` | Option | Interactive | Single message mode |
79
- | `--no-validate` | Flag | Validation on | Skip validation |
80
- | `--max-turns` | Option | `10` | Max tool call iterations |
81
-
82
- **Argument Validation:**
83
- - ✅ Path argument is required
84
- - ✅ Runtime must be 'openai' (others show error)
85
- - ✅ Max turns must be a valid number
86
- - ✅ Message can be any string
87
-
88
- **Tests:**
89
- - Integration tests cover all CLI options
90
- - Error handling tests for invalid arguments
91
-
92
- **Documentation:**
93
- - Complete CLI reference with all options documented
94
- - Examples for each option combination
95
-
96
- ---
97
-
98
- ### ✅ 4. Add appropriate error handling and validation
99
-
100
- **Status:** COMPLETE
101
-
102
- **Error Handling Implemented:**
103
-
104
- 1. **Manifest Loading Errors:**
105
- - ✅ File not found
106
- - ✅ Invalid YAML/JSON syntax
107
- - ✅ Manifest validation failures
108
-
109
- 2. **API Key Validation:**
110
- - ✅ Check for OPENAI_API_KEY environment variable
111
- - ✅ Clear error message with instructions
112
-
113
- 3. **Runtime Errors:**
114
- - ✅ Unsupported runtime detection
115
- - ✅ List of available runtimes
116
-
117
- 4. **Tool Execution Errors:**
118
- - ✅ Unknown tool handling
119
- - ✅ Tool handler exceptions caught
120
- - ✅ Error messages returned to agent
121
-
122
- 5. **Conversation Errors:**
123
- - ✅ API errors caught and displayed
124
- - ✅ Max turns limit enforcement
125
- - ✅ Graceful error recovery in REPL mode
126
-
127
- **Validation:**
128
- - ✅ Manifest validation before execution (optional)
129
- - ✅ Schema validation using AJV
130
- - ✅ Validation errors displayed with details
131
- - ✅ Verbose mode shows validation details
132
-
133
- **Tests:**
134
- - Error handling scenarios covered in unit tests
135
- - Integration tests for validation failures
136
- - API key missing tests
137
- - Invalid manifest tests
138
-
139
- **Documentation:**
140
- - Troubleshooting section in running-agents.md
141
- - Error handling section in run-command.md
142
- - Common errors and solutions documented
143
-
144
- ---
145
-
146
- ### ✅ 5. Include documentation for the new command
147
-
148
- **Status:** COMPLETE
149
-
150
- **Documentation Created:**
151
-
152
- 1. **CLI Reference** (`website/content/docs/cli/run-command.md`)
153
- - ✅ Complete command synopsis
154
- - ✅ All arguments and options documented
155
- - ✅ Interactive mode explanation
156
- - ✅ Single message mode explanation
157
- - ✅ Environment variables
158
- - ✅ Exit codes
159
- - ✅ Examples for all use cases
160
- - ✅ Error handling guide
161
- - ✅ Manifest configuration examples
162
-
163
- 2. **Getting Started Guide** (`website/content/docs/getting-started/running-agents.md`)
164
- - ✅ Quick start instructions
165
- - ✅ Prerequisites
166
- - ✅ Installation steps
167
- - ✅ Basic usage examples
168
- - ✅ Command options table
169
- - ✅ Detailed option descriptions
170
- - ✅ Interactive REPL mode guide
171
- - ✅ Troubleshooting section
172
- - ✅ Advanced usage examples
173
-
174
- 3. **OpenAI Adapter Guide** (`website/content/docs/adapters/openai-adapter.md`)
175
- - ✅ Overview and features
176
- - ✅ Configuration options
177
- - ✅ Model selection
178
- - ✅ System prompt configuration
179
- - ✅ Tool mapping guide
180
- - ✅ Conversation management
181
- - ✅ Tool execution
182
- - ✅ Advanced features
183
- - ✅ API integration details
184
- - ✅ Examples (basic, customer support, code assistant, multi-tool)
185
- - ✅ Troubleshooting
186
- - ✅ Best practices
187
-
188
- 4. **README.md Updates**
189
- - ✅ Quick start with run command
190
- - ✅ Running agents section
191
- - ✅ CLI commands list updated
192
-
193
- 5. **Example Agents**
194
- - ✅ Basic agent: `examples/openai/basic-agent.ossa.yaml`
195
- - ✅ Multi-tool agent: `examples/openai/multi-tool-agent.ossa.json`
196
- - ✅ Existing swarm agent: `examples/openai/swarm-agent.ossa.json`
197
-
198
- ---
199
-
200
- ## Test Coverage Summary
201
-
202
- ### Unit Tests
203
-
204
- 1. **Run Command Tests** (`tests/unit/cli/commands/run.command.test.ts`)
205
- - Validation scenarios
206
- - Runtime selection
207
- - API key validation
208
- - Single message mode
209
- - Error handling
210
- - Agent info display
211
-
212
- 2. **OpenAI Adapter Tests** (`tests/unit/services/runtime/openai.adapter.test.ts`)
213
- - Constructor and initialization
214
- - Model selection (extension, LLM config, default)
215
- - System prompt selection
216
- - Tool mapping (tools_mapping, spec.tools)
217
- - Tool handler registration
218
- - Tool execution (with handler, without handler, errors)
219
- - Conversation management
220
- - Chat options (verbose, maxTurns)
221
- - LLM configuration (temperature, maxTokens)
222
- - Agent info retrieval
223
-
224
- ### Integration Tests
225
-
226
- 1. **Run Command Integration Tests** (`tests/integration/cli/run.test.ts`)
227
- - Validation with valid/invalid manifests
228
- - Skip validation flag
229
- - API key validation
230
- - Runtime selection (default, unsupported)
231
- - Single message mode (-m, --message)
232
- - Verbose mode (-v, --verbose)
233
- - Max turns option
234
- - Error handling (missing file, invalid YAML/JSON)
235
- - Agent info display
236
- - Example manifests
237
-
238
- **Total Test Files Created:** 3
239
- **Test Scenarios Covered:** 50+
240
-
241
- ---
242
-
243
- ## Documentation Summary
244
-
245
- ### Files Created/Updated
246
-
247
- 1. **Created:**
248
- - `website/content/docs/cli/run-command.md` (comprehensive CLI reference)
249
- - `website/content/docs/adapters/openai-adapter.md` (adapter guide)
250
- - `examples/openai/basic-agent.ossa.yaml` (basic example)
251
- - `examples/openai/multi-tool-agent.ossa.json` (advanced example)
252
- - `docs/issue-19-validation.md` (this file)
253
-
254
- 2. **Updated:**
255
- - `website/content/docs/getting-started/running-agents.md` (enhanced guide)
256
- - `README.md` (added run command examples)
257
-
258
- **Total Documentation Pages:** 6
259
- **Total Word Count:** ~15,000+ words
260
-
261
- ---
262
-
263
- ## Implementation Quality Metrics
264
-
265
- ### Code Quality
266
- - ✅ TypeScript with strict typing
267
- - ✅ ES modules
268
- - ✅ Dependency injection (Inversify)
269
- - ✅ Error handling throughout
270
- - ✅ Consistent code style
271
- - ✅ JSDoc comments (in adapter)
272
-
273
- ### Testing
274
- - ✅ Unit tests for core functionality
275
- - ✅ Integration tests for CLI
276
- - ✅ Mocking for external dependencies
277
- - ✅ Error scenario coverage
278
- - ✅ Edge case handling
279
-
280
- ### Documentation
281
- - ✅ Comprehensive CLI reference
282
- - ✅ Getting started guide
283
- - ✅ Adapter documentation
284
- - ✅ Examples with comments
285
- - ✅ Troubleshooting guides
286
- - ✅ Best practices
287
-
288
- ### User Experience
289
- - ✅ Clear error messages
290
- - ✅ Helpful usage instructions
291
- - ✅ Interactive REPL mode
292
- - ✅ Verbose debugging option
293
- - ✅ Sensible defaults
294
-
295
- ---
296
-
297
- ## Verification Steps
298
-
299
- To verify the implementation:
300
-
301
- ### 1. Run Unit Tests
302
- ```bash
303
- npm run test:unit
304
- ```
305
-
306
- ### 2. Run Integration Tests
307
- ```bash
308
- npm run test:integration
309
- ```
310
-
311
- ### 3. Test CLI Manually
312
- ```bash
313
- # Build the project
314
- npm run build
315
-
316
- # Test validation
317
- ossa validate examples/openai/basic-agent.ossa.yaml
318
-
319
- # Test run command (requires API key)
320
- export OPENAI_API_KEY=sk-your-key
321
- ossa run examples/openai/basic-agent.ossa.yaml -m "Hello"
322
- ```
323
-
324
- ### 4. Verify Documentation
325
- - Browse to https://openstandardagents.org/docs/cli/run-command
326
- - Browse to https://openstandardagents.org/docs/adapters/openai-adapter
327
- - Browse to https://openstandardagents.org/docs/getting-started/running-agents
328
-
329
- ---
330
-
331
- ## Conclusion
332
-
333
- All acceptance criteria for Issue #19 have been **FULLY IMPLEMENTED** with:
334
-
335
- ✅ Complete `ossa run` command functionality
336
- ✅ Full OpenAI adapter integration
337
- ✅ Comprehensive CLI argument handling
338
- ✅ Robust error handling and validation
339
- ✅ Extensive documentation and examples
340
-
341
- **Additional deliverables:**
342
- - Comprehensive test suite (unit + integration)
343
- - Multiple example agents
344
- - Best practices guide
345
- - Troubleshooting documentation
346
-
347
- **Ready for:**
348
- - Code review
349
- - QA testing
350
- - Merge to main branch
351
- - Release in v0.2.7 milestone
@@ -1,71 +0,0 @@
1
- ---
2
- title: "Examples"
3
- ---
4
-
5
- # OSSA OpenAPI Extensions - Examples
6
-
7
- Complete working examples demonstrating OSSA OpenAPI extensions.
8
-
9
- ## Example Specifications
10
-
11
- ### [Minimal Agent API](./examples/openapi-extensions/minimal-agent-api.openapi.yml)
12
-
13
- Basic example showing:
14
- - Root-level `x-ossa` and `x-agent` extensions
15
- - Single operation with `x-ossa-capability`, `x-ossa-autonomy`, and `x-ossa-llm`
16
- - Minimal configuration for a simple greeting agent
17
-
18
- **Use Case**: Starting point for new OSSA-compliant agents
19
-
20
- ### [Worker Agent API](./examples/openapi-extensions/worker-agent-api.openapi.yml)
21
-
22
- Comprehensive worker agent example showing:
23
- - Full `x-ossa-metadata` with governance and compliance
24
- - All operation-level extensions (capability, autonomy, constraints, tools, llm)
25
- - Parameter extensions (`X-OSSA-Agent-ID`, `X-OSSA-Version`)
26
- - Schema extensions (`x-ossa-capability-schema`)
27
- - Real-world scenario: Kubernetes troubleshooting agent
28
-
29
- **Use Case**: Production-ready worker agent with full OSSA compliance
30
-
31
- ### [Orchestrator Agent API](./examples/openapi-extensions/orchestrator-agent-api.openapi.yml)
32
-
33
- Advanced orchestrator agent showing:
34
- - Multi-agent coordination patterns
35
- - Workflow execution capabilities
36
- - Complex input/output schemas
37
- - Orchestrator-specific autonomy and constraints
38
-
39
- **Use Case**: Coordinating multiple specialized agents
40
-
41
- ---
42
-
43
- ## Validating Examples
44
-
45
- All examples can be validated using the OSSA CLI:
46
-
47
- ```bash
48
- # Validate a specific example
49
- ossa validate examples/openapi-extensions/worker-agent-api.openapi.yml --openapi --verbose
50
-
51
- # Or validate all examples
52
- for spec in examples/openapi-extensions/*.openapi.yml; do
53
- echo "Validating $spec..."
54
- ossa validate "$spec" --openapi
55
- done
56
- ```
57
-
58
- ---
59
-
60
- ## Integration with OSSA Manifests
61
-
62
- These OpenAPI specs complement OSSA agent manifests (`.ossa.yaml` files):
63
-
64
- - **OSSA Manifest** - Declarative agent definition with full configuration
65
- - **OpenAPI Spec with Extensions** - API interface with agent metadata
66
-
67
- Together they provide a complete picture of agent behavior and external interfaces.
68
-
69
- ---
70
-
71
- **See Also**: [OpenAPI-Extensions](./OpenAPI-Extensions) · [Quick-Reference](./Quick-Reference)