@bluefly/openstandardagents 0.4.9 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.json +3 -3
- package/CHANGELOG.md +35 -4
- package/README.md +77 -62
- package/dist/.version.json +3 -3
- package/dist/adapters/a2a/a2a-protocol.js +4 -2
- package/dist/adapters/a2a/a2a-tool.js +4 -2
- package/dist/adapters/a2a/mcp-integration.d.ts +2 -1
- package/dist/adapters/a2a/mcp-integration.js +6 -3
- package/dist/adapters/browser/browser-exporter.d.ts +26 -0
- package/dist/adapters/browser/browser-exporter.js +73 -0
- package/dist/adapters/browser/browser-runner.d.ts +23 -0
- package/dist/adapters/browser/browser-runner.js +46 -0
- package/dist/adapters/browser/index.d.ts +9 -0
- package/dist/adapters/browser/index.js +9 -0
- package/dist/adapters/claude-code/adapter.js +2 -2
- package/dist/adapters/docker/generators.js +19 -19
- package/dist/adapters/docker/index.d.ts +2 -0
- package/dist/adapters/docker/index.js +2 -0
- package/dist/adapters/docker/openclaw-bridge.d.ts +57 -0
- package/dist/adapters/docker/openclaw-bridge.js +173 -0
- package/dist/adapters/drupal/generator.js +76 -76
- package/dist/adapters/drupal/index.d.ts +1 -0
- package/dist/adapters/drupal/index.js +2 -0
- package/dist/adapters/drupal/twig-renderer.d.ts +23 -0
- package/dist/adapters/drupal/twig-renderer.js +99 -0
- package/dist/adapters/gitlab/agent-generator.js +2 -1
- package/dist/adapters/openai-agents/adapter.js +2 -2
- package/dist/api/index.js +2 -1
- package/dist/api/routes/mcp.router.js +3 -1
- package/dist/api/routes/wizard.router.js +3 -1
- package/dist/cli/commands/agent/discover-type.command.js +1 -1
- package/dist/cli/commands/agent-card.command.js +37 -10
- package/dist/cli/commands/agents-sync.command.d.ts +2 -2
- package/dist/cli/commands/agents-sync.command.js +27 -17
- package/dist/cli/commands/catalog/config.js +1 -1
- package/dist/cli/commands/catalog/validate.command.js +2 -2
- package/dist/cli/commands/config.command.js +2 -2
- package/dist/cli/commands/daemon.command.js +32 -8
- package/dist/cli/commands/discover.d.ts +1 -1
- package/dist/cli/commands/discover.js +16 -8
- package/dist/cli/commands/economics.command.d.ts +9 -0
- package/dist/cli/commands/economics.command.js +113 -0
- package/dist/cli/commands/export.command.js +6 -3
- package/dist/cli/commands/mcp.command.js +3 -1
- package/dist/cli/commands/memory.command.d.ts +18 -0
- package/dist/cli/commands/memory.command.js +168 -0
- package/dist/cli/commands/publish.command.js +7 -4
- package/dist/cli/commands/serve-builder-routes.js +1 -1
- package/dist/cli/commands/usie-skills.command.d.ts +24 -0
- package/dist/cli/commands/usie-skills.command.js +297 -0
- package/dist/cli/commands/validate.command.js +8 -1
- package/dist/cli/commands/verify.d.ts +3 -3
- package/dist/cli/commands/verify.js +12 -6
- package/dist/cli/commands/workspace.command.d.ts +1 -0
- package/dist/cli/commands/workspace.command.js +28 -4
- package/dist/cli/index.js +12 -0
- package/dist/cli/schema-driven/schema-loader.js +5 -5
- package/dist/cli/workspace-validate.d.ts +23 -0
- package/dist/cli/workspace-validate.js +117 -0
- package/dist/data/platform-matrix.js +1 -4
- package/dist/generated/types.d.ts +97 -97
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/mcp-server/index.js +658 -982
- package/dist/mesh/discovery-gkg.d.ts +26 -0
- package/dist/mesh/discovery-gkg.js +92 -0
- package/dist/messenger/Handler/AgentBatchHandler.js +3 -2
- package/dist/messenger/Handler/AgentExecutionHandler.js +6 -1
- package/dist/package.json +43 -14
- package/dist/sdks/shared/types.d.ts +1 -1
- package/dist/services/agent-card-generator.js +6 -2
- package/dist/services/daemon/audit-log.service.js +3 -1
- package/dist/services/daemon/execution.service.js +8 -4
- package/dist/services/daemon/fs-watcher.service.js +6 -7
- package/dist/services/daemon/pairing.service.js +2 -1
- package/dist/services/daemon/skill-aggregator.service.js +105 -21
- package/dist/services/daemon/sse-endpoints.js +1 -1
- package/dist/services/daemon/ws-server.js +10 -3
- package/dist/services/export/langchain/langchain-exporter.js +2 -2
- package/dist/services/export/langchain/memory-generator.js +2 -2
- package/dist/services/export/testing/test-generator.js +1 -1
- package/dist/services/governance/cedar-provider.js +12 -8
- package/dist/services/governance/cedar-validator.service.js +1 -1
- package/dist/services/mcp/bridge.service.js +40 -9
- package/dist/services/openapi-extensions-validation.d.ts +20 -0
- package/dist/services/openapi-extensions-validation.js +193 -0
- package/dist/services/release-automation/merge-request.service.d.ts +4 -4
- package/dist/services/release-automation/release-buttons.js +3 -3
- package/dist/services/release-automation/schemas/release.schema.d.ts +3 -3
- package/dist/services/runtime/openai.adapter.d.ts +46 -13
- package/dist/services/runtime/openai.adapter.js +169 -131
- package/dist/services/skill-registry.service.d.ts +1 -1
- package/dist/services/skills-pipeline/skills-research.service.js +47 -7
- package/dist/services/taxonomy-service.d.ts +3 -3
- package/dist/services/trust/trust.service.js +6 -4
- package/dist/services/validation-zod.service.js +3 -22
- package/dist/services/validators/index.d.ts +1 -0
- package/dist/services/validators/index.js +1 -0
- package/dist/services/validators/registry.d.ts +21 -0
- package/dist/services/validators/registry.js +42 -0
- package/dist/skills/test-skill/package.json +1 -1
- package/dist/spec/extensions/cognition.schema.json +87 -0
- package/dist/spec/extensions/role-manifest.md +188 -0
- package/dist/spec/layer4-economics/duadp-examples.json +44 -0
- package/dist/spec/v0.4/agent.schema.json +14 -0
- package/dist/spec/v0.4/extensions/mcp/README.md +1 -1
- package/dist/spec/v0.5/agent-builder-openapi.yaml +230 -0
- package/dist/spec/v0.5/agent.schema.json +34 -2
- package/dist/spec/v0.5/extensions/cognition/cognition.schema.json +78 -1
- package/dist/spec/v0.5/extensions/economics/context-pack.schema.json +91 -0
- package/dist/spec/v0.5/extensions/economics/execution-profile.schema.json +148 -0
- package/dist/spec/v0.5/extensions/economics/failure-semantics.schema.json +32 -0
- package/dist/spec/v0.5/extensions/economics/replay-packet.schema.json +120 -0
- package/dist/spec/v0.5/memory-hierarchy.yaml +120 -0
- package/dist/spec/v0.5/role.schema.json +268 -0
- package/dist/spec/v1/agent-card.schema.json +254 -0
- package/dist/types/cognition.zod.d.ts +312 -0
- package/dist/types/cognition.zod.js +223 -0
- package/dist/types/identity.zod.d.ts +5 -5
- package/dist/types/index.d.ts +54 -6
- package/dist/types/index.js +6 -2
- package/dist/types/personality.zod.d.ts +3 -3
- package/dist/types/role.d.ts +126 -0
- package/dist/types/role.js +38 -0
- package/dist/utils/http-client.d.ts +22 -0
- package/dist/utils/http-client.js +51 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/proxy-resolver.d.ts +36 -0
- package/dist/utils/proxy-resolver.js +59 -0
- package/dist/utils/user-agent.d.ts +11 -0
- package/dist/utils/user-agent.js +17 -0
- package/dist/validation/validator.js +1 -1
- package/dist/validation/version-compliance.js +1 -1
- package/examples/agents/01-customer-support-bot/agent.ossa.yaml +24 -31
- package/examples/agents/05-sales-assistant/agent.ossa.yaml +35 -23
- package/examples/agents/07-research-assistant/agent.ossa.yaml +27 -21
- package/examples/agents/10-meeting-assistant/agent.ossa.yaml +27 -35
- package/examples/agents/security-audit-agent.ossa.yaml +234 -0
- package/examples/agentscope/react-assistant/README.md +1 -1
- package/examples/agentscope/react-assistant/agent.ossa.yaml +37 -33
- package/examples/drupal/content-moderator.ossa.yaml +2 -2
- package/examples/drupal/drupal-contributor-agent/.eslintrc.json +58 -0
- package/examples/drupal/drupal-contributor-agent/.prettierrc.json +10 -0
- package/examples/drupal/drupal-contributor-agent/package.json +55 -0
- package/examples/drupal/drupal-contributor-agent/src/core/index.ts +10 -0
- package/examples/drupal/drupal-contributor-agent/src/index.ts +17 -0
- package/examples/drupal/drupal-contributor-agent/src/types/index.ts +180 -0
- package/examples/drupal/drupal-contributor-agent/tsconfig.json +36 -0
- package/examples/drupal/drupal-contributor.ossa.yaml +247 -0
- package/examples/export/langchain/production-agent-with-memory/README.md +1 -1
- package/examples/export/langchain/production-agent-with-memory/agent.ossa.yaml +13 -23
- package/examples/export/langchain/production-agent-with-streaming/agent.ossa.yaml +1 -15
- package/examples/export/langchain/production-agent-with-tools/agent.ossa.yaml +28 -29
- package/examples/getting-started/01-minimal-agent.ossa.yaml +1 -1
- package/examples/getting-started/02-agent-with-tools.ossa.yaml +1 -1
- package/examples/getting-started/03-agent-with-safety.ossa.yaml +1 -1
- package/examples/getting-started/04-agent-with-messaging.ossa.yaml +1 -1
- package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
- package/examples/getting-started/README.md +3 -3
- package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
- package/examples/gitlab-agents/gitlab-ci-agent.ossa.yaml +221 -0
- package/examples/hierarchical-agent.ossa.yaml +10 -53
- package/examples/kagent/ossa-kagent-anthropic.ossa.yaml +2 -25
- package/examples/kagent/ossa-kagent-mcp-tools.ossa.yaml +2 -30
- package/examples/kagent/ossa-kagent-multi-tool.ossa.yaml +2 -18
- package/examples/kagent/ossa-kagent-poc.ossa.yaml +2 -16
- package/examples/pipeline-agent.ossa.yaml +3 -3
- package/examples/platform-specific/claude-code-subagent.yaml +1 -1
- package/examples/platform-specific/cursor-coding-agent.yaml +1 -1
- package/examples/platform-specific/warp-terminal-agent.yaml +1 -1
- package/examples/production-ready/01-customer-support-bot/agent.ossa.yaml +24 -31
- package/examples/production-ready/05-sales-assistant/agent.ossa.yaml +35 -23
- package/examples/production-ready/07-research-assistant/agent.ossa.yaml +27 -19
- package/examples/production-ready/10-meeting-assistant/agent.ossa.yaml +27 -35
- package/examples/roles/drupal-developer.role.yaml +37 -0
- package/examples/roles/platform-operator.role.yaml +28 -0
- package/examples/roles/security-auditor.role.yaml +27 -0
- package/examples/swarm-agent.ossa.yaml +13 -51
- package/examples/team-agent.ossa.yaml +12 -61
- package/examples/team-lead-teammate.ossa.yaml +12 -17
- package/openapi/agent-cognition-sessions.yaml +580 -0
- package/openapi/agent-communication.yaml +260 -212
- package/openapi/agent-crud.yaml +237 -207
- package/openapi/agent-discovery.yaml +119 -81
- package/openapi/agent-identity.yaml +219 -187
- package/openapi/agent-taxonomy.yaml +95 -38
- package/openapi/agents-md-service.yaml +103 -30
- package/openapi/cli/openapi.yaml +147 -40
- package/openapi/core/ossa-core-api.openapi.yaml +327 -271
- package/openapi/core/ossa-registry-api.openapi.yaml +299 -236
- package/openapi/core/ossa-registry.openapi.yaml +299 -159
- package/openapi/core/unified-agent-gateway.openapi.yaml +234 -170
- package/openapi/daemon-api.openapi.yaml +323 -181
- package/openapi/dev-cli/openapi.yaml +137 -113
- package/openapi/github-sync.yaml +62 -19
- package/openapi/marketplace-plugin.openapi.yaml +539 -466
- package/openapi/ossa-api.openapi.yaml +354 -213
- package/openapi/ossa-cli-enhancements.openapi.yaml +109 -90
- package/openapi/ossa-cli.yaml +260 -184
- package/openapi/protocols/sse-streams.yaml +66 -74
- package/openapi/protocols/websocket-events.yaml +61 -54
- package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +37 -20
- package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +35 -23
- package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +29 -18
- package/openapi/reference-implementations/critic-agent-api.openapi.yaml +45 -19
- package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +30 -24
- package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +101 -50
- package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +33 -22
- package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +20 -16
- package/openapi/reference-implementations/governor-agent-api.openapi.yaml +41 -23
- package/openapi/reference-implementations/helm-generator.openapi.yaml +88 -46
- package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +30 -20
- package/openapi/reference-implementations/judge-agent-api.openapi.yaml +22 -16
- package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +32 -18
- package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +32 -21
- package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +34 -21
- package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +49 -27
- package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +27 -19
- package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +427 -293
- package/openapi/reference-implementations/worker-agent-api.openapi.yaml +34 -23
- package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +35 -21
- package/openapi/release-automation.openapi.yaml +48 -14
- package/openapi/schemas/common/agent.yaml +30 -29
- package/openapi/schemas/common/economics.yaml +98 -0
- package/openapi/schemas/common/errors.yaml +13 -3
- package/openapi/schemas/common/metadata.yaml +22 -7
- package/openapi/schemas/common/pagination.yaml +18 -6
- package/openapi/schemas/common/security.yaml +13 -5
- package/openapi/schemas/index.yaml +49 -42
- package/openapi/uadp-asyncapi.yaml +5 -3
- package/openapi/uadp-openapi.yaml +243 -165
- package/openapi/version-management.openapi.yaml +142 -135
- package/package.json +43 -14
- package/spec/extensions/cognition.schema.json +87 -0
- package/spec/extensions/role-manifest.md +188 -0
- package/spec/layer4-economics/duadp-examples.json +44 -0
- package/spec/v0.4/agent.schema.json +14 -0
- package/spec/v0.4/extensions/mcp/README.md +1 -1
- package/spec/v0.5/agent-builder-openapi.yaml +230 -0
- package/spec/v0.5/agent.schema.json +34 -2
- package/spec/v0.5/extensions/cognition/cognition.schema.json +78 -1
- package/spec/v0.5/extensions/economics/context-pack.schema.json +91 -0
- package/spec/v0.5/extensions/economics/execution-profile.schema.json +148 -0
- package/spec/v0.5/extensions/economics/failure-semantics.schema.json +32 -0
- package/spec/v0.5/extensions/economics/replay-packet.schema.json +120 -0
- package/spec/v0.5/memory-hierarchy.yaml +120 -0
- package/spec/v0.5/role.schema.json +268 -0
- package/spec/v1/agent-card.schema.json +254 -0
- package/dist/adapters/a2a/__tests__/mcp-integration.spec.d.ts +0 -5
- package/dist/adapters/a2a/__tests__/mcp-integration.spec.js +0 -268
- package/dist/adapters/a2a/__tests__/mcp-transport.spec.d.ts +0 -5
- package/dist/adapters/a2a/__tests__/mcp-transport.spec.js +0 -203
- package/dist/mcp-server/__tests__/mcp-server.spec.d.ts +0 -8
- package/dist/mcp-server/__tests__/mcp-server.spec.js +0 -557
- package/dist/validation/__tests__/error-codes.test.d.ts +0 -5
- package/dist/validation/__tests__/error-codes.test.js +0 -252
- package/dist/version-management/core/version-manager.test.d.ts +0 -2
- package/dist/version-management/core/version-manager.test.js +0 -210
|
@@ -9,21 +9,19 @@ info:
|
|
|
9
9
|
- Context enrichment
|
|
10
10
|
- Learning & feedback loops
|
|
11
11
|
- Real example generation
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
FOLLOWS DRY PRINCIPLE: Single source of truth for all CLI command schemas.
|
|
14
14
|
contact:
|
|
15
15
|
name: OSSA Standards Team
|
|
16
|
-
email:
|
|
16
|
+
email: contact@openstandardagents.org
|
|
17
17
|
license:
|
|
18
18
|
name: Apache-2.0
|
|
19
19
|
url: https://www.apache.org/licenses/LICENSE-2.0.html
|
|
20
|
-
|
|
21
20
|
servers:
|
|
22
21
|
- url: http://localhost:4000/api/v1
|
|
23
22
|
description: Local development server
|
|
24
23
|
- url: https://your-registry.example.com/api/v1
|
|
25
24
|
description: Production API server (set OSSA_REGISTRY_URL)
|
|
26
|
-
|
|
27
25
|
tags:
|
|
28
26
|
- name: knowledge
|
|
29
27
|
description: Knowledge base generation and management
|
|
@@ -35,7 +33,6 @@ tags:
|
|
|
35
33
|
description: Learning loops and feedback
|
|
36
34
|
- name: examples
|
|
37
35
|
description: Real example generation
|
|
38
|
-
|
|
39
36
|
paths:
|
|
40
37
|
/knowledge/generate:
|
|
41
38
|
post:
|
|
@@ -51,19 +48,22 @@ paths:
|
|
|
51
48
|
content:
|
|
52
49
|
application/json:
|
|
53
50
|
schema:
|
|
54
|
-
$ref:
|
|
51
|
+
$ref: "#/components/schemas/KnowledgeGenerateRequest"
|
|
55
52
|
responses:
|
|
56
|
-
|
|
53
|
+
"200":
|
|
57
54
|
description: Knowledge base generated successfully
|
|
58
55
|
content:
|
|
59
56
|
application/json:
|
|
60
57
|
schema:
|
|
61
|
-
$ref:
|
|
62
|
-
|
|
63
|
-
$ref:
|
|
64
|
-
|
|
65
|
-
$ref:
|
|
66
|
-
|
|
58
|
+
$ref: "#/components/schemas/KnowledgeGenerateResponse"
|
|
59
|
+
"400":
|
|
60
|
+
$ref: "#/components/responses/BadRequest"
|
|
61
|
+
"500":
|
|
62
|
+
$ref: "#/components/responses/InternalServerError"
|
|
63
|
+
x-ossa-capability: cli-generate-knowledge-base
|
|
64
|
+
x-ossa-autonomy:
|
|
65
|
+
level: supervised
|
|
66
|
+
approval_required: true
|
|
67
67
|
/knowledge/sync:
|
|
68
68
|
post:
|
|
69
69
|
operationId: syncKnowledgeBase
|
|
@@ -78,19 +78,22 @@ paths:
|
|
|
78
78
|
content:
|
|
79
79
|
application/json:
|
|
80
80
|
schema:
|
|
81
|
-
$ref:
|
|
81
|
+
$ref: "#/components/schemas/KnowledgeSyncRequest"
|
|
82
82
|
responses:
|
|
83
|
-
|
|
83
|
+
"200":
|
|
84
84
|
description: Knowledge base synced successfully
|
|
85
85
|
content:
|
|
86
86
|
application/json:
|
|
87
87
|
schema:
|
|
88
|
-
$ref:
|
|
89
|
-
|
|
90
|
-
$ref:
|
|
91
|
-
|
|
92
|
-
$ref:
|
|
93
|
-
|
|
88
|
+
$ref: "#/components/schemas/KnowledgeSyncResponse"
|
|
89
|
+
"400":
|
|
90
|
+
$ref: "#/components/responses/BadRequest"
|
|
91
|
+
"500":
|
|
92
|
+
$ref: "#/components/responses/InternalServerError"
|
|
93
|
+
x-ossa-capability: cli-sync-knowledge-base
|
|
94
|
+
x-ossa-autonomy:
|
|
95
|
+
level: supervised
|
|
96
|
+
approval_required: true
|
|
94
97
|
/enhance/agent:
|
|
95
98
|
post:
|
|
96
99
|
operationId: enhanceAgent
|
|
@@ -105,21 +108,24 @@ paths:
|
|
|
105
108
|
content:
|
|
106
109
|
application/json:
|
|
107
110
|
schema:
|
|
108
|
-
$ref:
|
|
111
|
+
$ref: "#/components/schemas/AgentEnhancementRequest"
|
|
109
112
|
responses:
|
|
110
|
-
|
|
113
|
+
"200":
|
|
111
114
|
description: Agent enhanced successfully
|
|
112
115
|
content:
|
|
113
116
|
application/json:
|
|
114
117
|
schema:
|
|
115
|
-
$ref:
|
|
116
|
-
|
|
117
|
-
$ref:
|
|
118
|
-
|
|
119
|
-
$ref:
|
|
120
|
-
|
|
121
|
-
$ref:
|
|
122
|
-
|
|
118
|
+
$ref: "#/components/schemas/AgentEnhancementResponse"
|
|
119
|
+
"400":
|
|
120
|
+
$ref: "#/components/responses/BadRequest"
|
|
121
|
+
"404":
|
|
122
|
+
$ref: "#/components/responses/NotFound"
|
|
123
|
+
"500":
|
|
124
|
+
$ref: "#/components/responses/InternalServerError"
|
|
125
|
+
x-ossa-capability: cli-enhance-agent
|
|
126
|
+
x-ossa-autonomy:
|
|
127
|
+
level: supervised
|
|
128
|
+
approval_required: true
|
|
123
129
|
/enhance/prompts:
|
|
124
130
|
post:
|
|
125
131
|
operationId: enhancePrompts
|
|
@@ -134,19 +140,22 @@ paths:
|
|
|
134
140
|
content:
|
|
135
141
|
application/json:
|
|
136
142
|
schema:
|
|
137
|
-
$ref:
|
|
143
|
+
$ref: "#/components/schemas/PromptEnhancementRequest"
|
|
138
144
|
responses:
|
|
139
|
-
|
|
145
|
+
"200":
|
|
140
146
|
description: Prompts enhanced successfully
|
|
141
147
|
content:
|
|
142
148
|
application/json:
|
|
143
149
|
schema:
|
|
144
|
-
$ref:
|
|
145
|
-
|
|
146
|
-
$ref:
|
|
147
|
-
|
|
148
|
-
$ref:
|
|
149
|
-
|
|
150
|
+
$ref: "#/components/schemas/PromptEnhancementResponse"
|
|
151
|
+
"400":
|
|
152
|
+
$ref: "#/components/responses/BadRequest"
|
|
153
|
+
"500":
|
|
154
|
+
$ref: "#/components/responses/InternalServerError"
|
|
155
|
+
x-ossa-capability: cli-enhance-prompts
|
|
156
|
+
x-ossa-autonomy:
|
|
157
|
+
level: supervised
|
|
158
|
+
approval_required: true
|
|
150
159
|
/context/analyze:
|
|
151
160
|
post:
|
|
152
161
|
operationId: analyzeContext
|
|
@@ -161,19 +170,22 @@ paths:
|
|
|
161
170
|
content:
|
|
162
171
|
application/json:
|
|
163
172
|
schema:
|
|
164
|
-
$ref:
|
|
173
|
+
$ref: "#/components/schemas/ContextAnalysisRequest"
|
|
165
174
|
responses:
|
|
166
|
-
|
|
175
|
+
"200":
|
|
167
176
|
description: Context analyzed successfully
|
|
168
177
|
content:
|
|
169
178
|
application/json:
|
|
170
179
|
schema:
|
|
171
|
-
$ref:
|
|
172
|
-
|
|
173
|
-
$ref:
|
|
174
|
-
|
|
175
|
-
$ref:
|
|
176
|
-
|
|
180
|
+
$ref: "#/components/schemas/ContextAnalysisResponse"
|
|
181
|
+
"400":
|
|
182
|
+
$ref: "#/components/responses/BadRequest"
|
|
183
|
+
"500":
|
|
184
|
+
$ref: "#/components/responses/InternalServerError"
|
|
185
|
+
x-ossa-capability: cli-analyze-context
|
|
186
|
+
x-ossa-autonomy:
|
|
187
|
+
level: supervised
|
|
188
|
+
approval_required: true
|
|
177
189
|
/learn/feedback:
|
|
178
190
|
post:
|
|
179
191
|
operationId: recordFeedback
|
|
@@ -188,19 +200,22 @@ paths:
|
|
|
188
200
|
content:
|
|
189
201
|
application/json:
|
|
190
202
|
schema:
|
|
191
|
-
$ref:
|
|
203
|
+
$ref: "#/components/schemas/FeedbackRequest"
|
|
192
204
|
responses:
|
|
193
|
-
|
|
205
|
+
"200":
|
|
194
206
|
description: Feedback recorded and agent improved
|
|
195
207
|
content:
|
|
196
208
|
application/json:
|
|
197
209
|
schema:
|
|
198
|
-
$ref:
|
|
199
|
-
|
|
200
|
-
$ref:
|
|
201
|
-
|
|
202
|
-
$ref:
|
|
203
|
-
|
|
210
|
+
$ref: "#/components/schemas/FeedbackResponse"
|
|
211
|
+
"400":
|
|
212
|
+
$ref: "#/components/responses/BadRequest"
|
|
213
|
+
"500":
|
|
214
|
+
$ref: "#/components/responses/InternalServerError"
|
|
215
|
+
x-ossa-capability: cli-record-feedback
|
|
216
|
+
x-ossa-autonomy:
|
|
217
|
+
level: supervised
|
|
218
|
+
approval_required: true
|
|
204
219
|
/learn/patterns:
|
|
205
220
|
post:
|
|
206
221
|
operationId: extractPatterns
|
|
@@ -215,19 +230,22 @@ paths:
|
|
|
215
230
|
content:
|
|
216
231
|
application/json:
|
|
217
232
|
schema:
|
|
218
|
-
$ref:
|
|
233
|
+
$ref: "#/components/schemas/PatternExtractionRequest"
|
|
219
234
|
responses:
|
|
220
|
-
|
|
235
|
+
"200":
|
|
221
236
|
description: Patterns extracted successfully
|
|
222
237
|
content:
|
|
223
238
|
application/json:
|
|
224
239
|
schema:
|
|
225
|
-
$ref:
|
|
226
|
-
|
|
227
|
-
$ref:
|
|
228
|
-
|
|
229
|
-
$ref:
|
|
230
|
-
|
|
240
|
+
$ref: "#/components/schemas/PatternExtractionResponse"
|
|
241
|
+
"400":
|
|
242
|
+
$ref: "#/components/responses/BadRequest"
|
|
243
|
+
"500":
|
|
244
|
+
$ref: "#/components/responses/InternalServerError"
|
|
245
|
+
x-ossa-capability: cli-extract-patterns
|
|
246
|
+
x-ossa-autonomy:
|
|
247
|
+
level: supervised
|
|
248
|
+
approval_required: true
|
|
231
249
|
/examples/generate:
|
|
232
250
|
post:
|
|
233
251
|
operationId: generateExamples
|
|
@@ -242,19 +260,22 @@ paths:
|
|
|
242
260
|
content:
|
|
243
261
|
application/json:
|
|
244
262
|
schema:
|
|
245
|
-
$ref:
|
|
263
|
+
$ref: "#/components/schemas/ExampleGenerationRequest"
|
|
246
264
|
responses:
|
|
247
|
-
|
|
265
|
+
"200":
|
|
248
266
|
description: Examples generated successfully
|
|
249
267
|
content:
|
|
250
268
|
application/json:
|
|
251
269
|
schema:
|
|
252
|
-
$ref:
|
|
253
|
-
|
|
254
|
-
$ref:
|
|
255
|
-
|
|
256
|
-
$ref:
|
|
257
|
-
|
|
270
|
+
$ref: "#/components/schemas/ExampleGenerationResponse"
|
|
271
|
+
"400":
|
|
272
|
+
$ref: "#/components/responses/BadRequest"
|
|
273
|
+
"500":
|
|
274
|
+
$ref: "#/components/responses/InternalServerError"
|
|
275
|
+
x-ossa-capability: cli-generate-examples
|
|
276
|
+
x-ossa-autonomy:
|
|
277
|
+
level: supervised
|
|
278
|
+
approval_required: true
|
|
258
279
|
components:
|
|
259
280
|
schemas:
|
|
260
281
|
KnowledgeGenerateRequest:
|
|
@@ -276,7 +297,10 @@ components:
|
|
|
276
297
|
items:
|
|
277
298
|
type: string
|
|
278
299
|
description: Pattern types to extract
|
|
279
|
-
example:
|
|
300
|
+
example:
|
|
301
|
+
- typescript
|
|
302
|
+
- react
|
|
303
|
+
- drupal
|
|
280
304
|
outputPath:
|
|
281
305
|
type: string
|
|
282
306
|
description: Output directory path
|
|
@@ -285,7 +309,6 @@ components:
|
|
|
285
309
|
type: boolean
|
|
286
310
|
description: Sync with agent-brain/Qdrant
|
|
287
311
|
default: false
|
|
288
|
-
|
|
289
312
|
KnowledgeGenerateResponse:
|
|
290
313
|
type: object
|
|
291
314
|
properties:
|
|
@@ -306,7 +329,6 @@ components:
|
|
|
306
329
|
type: string
|
|
307
330
|
brainSync:
|
|
308
331
|
type: boolean
|
|
309
|
-
|
|
310
332
|
KnowledgeSyncRequest:
|
|
311
333
|
type: object
|
|
312
334
|
required:
|
|
@@ -320,7 +342,6 @@ components:
|
|
|
320
342
|
example: code-quality-patterns
|
|
321
343
|
knowledgePath:
|
|
322
344
|
type: string
|
|
323
|
-
|
|
324
345
|
KnowledgeSyncResponse:
|
|
325
346
|
type: object
|
|
326
347
|
properties:
|
|
@@ -330,7 +351,6 @@ components:
|
|
|
330
351
|
type: integer
|
|
331
352
|
collectionName:
|
|
332
353
|
type: string
|
|
333
|
-
|
|
334
354
|
AgentEnhancementRequest:
|
|
335
355
|
type: object
|
|
336
356
|
required:
|
|
@@ -357,7 +377,6 @@ components:
|
|
|
357
377
|
examplesFromMRs:
|
|
358
378
|
type: boolean
|
|
359
379
|
description: Extract examples from merge requests
|
|
360
|
-
|
|
361
380
|
AgentEnhancementResponse:
|
|
362
381
|
type: object
|
|
363
382
|
properties:
|
|
@@ -376,7 +395,6 @@ components:
|
|
|
376
395
|
type: integer
|
|
377
396
|
knowledgeEnriched:
|
|
378
397
|
type: boolean
|
|
379
|
-
|
|
380
398
|
PromptEnhancementRequest:
|
|
381
399
|
type: object
|
|
382
400
|
required:
|
|
@@ -392,7 +410,6 @@ components:
|
|
|
392
410
|
type: boolean
|
|
393
411
|
codebasePath:
|
|
394
412
|
type: string
|
|
395
|
-
|
|
396
413
|
PromptEnhancementResponse:
|
|
397
414
|
type: object
|
|
398
415
|
properties:
|
|
@@ -402,7 +419,6 @@ components:
|
|
|
402
419
|
type: integer
|
|
403
420
|
examplesGenerated:
|
|
404
421
|
type: integer
|
|
405
|
-
|
|
406
422
|
ContextAnalysisRequest:
|
|
407
423
|
type: object
|
|
408
424
|
required:
|
|
@@ -421,7 +437,6 @@ components:
|
|
|
421
437
|
default: true
|
|
422
438
|
outputPath:
|
|
423
439
|
type: string
|
|
424
|
-
|
|
425
440
|
ContextAnalysisResponse:
|
|
426
441
|
type: object
|
|
427
442
|
properties:
|
|
@@ -435,7 +450,6 @@ components:
|
|
|
435
450
|
type: array
|
|
436
451
|
items:
|
|
437
452
|
type: string
|
|
438
|
-
|
|
439
453
|
FeedbackRequest:
|
|
440
454
|
type: object
|
|
441
455
|
required:
|
|
@@ -463,7 +477,6 @@ components:
|
|
|
463
477
|
updateExamples:
|
|
464
478
|
type: boolean
|
|
465
479
|
default: true
|
|
466
|
-
|
|
467
480
|
FeedbackResponse:
|
|
468
481
|
type: object
|
|
469
482
|
properties:
|
|
@@ -477,7 +490,6 @@ components:
|
|
|
477
490
|
type: array
|
|
478
491
|
items:
|
|
479
492
|
type: string
|
|
480
|
-
|
|
481
493
|
PatternExtractionRequest:
|
|
482
494
|
type: object
|
|
483
495
|
required:
|
|
@@ -495,7 +507,6 @@ components:
|
|
|
495
507
|
type: string
|
|
496
508
|
outputPath:
|
|
497
509
|
type: string
|
|
498
|
-
|
|
499
510
|
PatternExtractionResponse:
|
|
500
511
|
type: object
|
|
501
512
|
properties:
|
|
@@ -516,7 +527,6 @@ components:
|
|
|
516
527
|
type: array
|
|
517
528
|
items:
|
|
518
529
|
type: string
|
|
519
|
-
|
|
520
530
|
ExampleGenerationRequest:
|
|
521
531
|
type: object
|
|
522
532
|
required:
|
|
@@ -532,7 +542,6 @@ components:
|
|
|
532
542
|
type: boolean
|
|
533
543
|
outputPath:
|
|
534
544
|
type: string
|
|
535
|
-
|
|
536
545
|
ExampleGenerationResponse:
|
|
537
546
|
type: object
|
|
538
547
|
properties:
|
|
@@ -551,7 +560,6 @@ components:
|
|
|
551
560
|
type: string
|
|
552
561
|
validated:
|
|
553
562
|
type: boolean
|
|
554
|
-
|
|
555
563
|
responses:
|
|
556
564
|
BadRequest:
|
|
557
565
|
description: Bad request
|
|
@@ -564,7 +572,6 @@ components:
|
|
|
564
572
|
type: string
|
|
565
573
|
details:
|
|
566
574
|
type: string
|
|
567
|
-
|
|
568
575
|
NotFound:
|
|
569
576
|
description: Resource not found
|
|
570
577
|
content:
|
|
@@ -575,7 +582,6 @@ components:
|
|
|
575
582
|
error:
|
|
576
583
|
type: string
|
|
577
584
|
example: Agent not found
|
|
578
|
-
|
|
579
585
|
InternalServerError:
|
|
580
586
|
description: Internal server error
|
|
581
587
|
content:
|
|
@@ -587,3 +593,16 @@ components:
|
|
|
587
593
|
type: string
|
|
588
594
|
details:
|
|
589
595
|
type: string
|
|
596
|
+
x-ossa-metadata:
|
|
597
|
+
version: 1.0.0
|
|
598
|
+
compliance:
|
|
599
|
+
level: standard
|
|
600
|
+
observability:
|
|
601
|
+
tracing: true
|
|
602
|
+
metrics: true
|
|
603
|
+
logging: true
|
|
604
|
+
x-ossa:
|
|
605
|
+
version: 0.5.0
|
|
606
|
+
agent:
|
|
607
|
+
id: ossa-cli-enhancements
|
|
608
|
+
type: worker
|