@bluefly/openstandardagents 0.5.0 → 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 +43 -12
- package/README.md +31 -26
- package/bin/postinstall +0 -0
- 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/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/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/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/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 +20 -4
- 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/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/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/layer4-economics/duadp-examples.json +44 -0
- package/dist/spec/v0.4/agent.schema.json +14 -0
- package/dist/spec/v0.5/agent-builder-openapi.yaml +230 -0
- package/dist/spec/v0.5/agent.schema.json +32 -1
- 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/extensions/mcp/README.md +1 -1
- package/dist/spec/v0.5/memory-hierarchy.yaml +120 -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 +53 -7
- package/dist/types/index.js +4 -2
- package/dist/types/personality.zod.d.ts +3 -3
- 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/version-compliance.js +1 -1
- package/examples/agentscope/react-assistant/README.md +1 -1
- package/examples/agentscope/react-assistant/agent.ossa.yaml +1 -1
- 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/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/hello-world-complete.ossa.yaml +1 -1
- package/examples/reference-implementations/python-client/examples/basic_usage.py +0 -0
- package/examples/reference-implementations/python-client/examples/publish_agent.py +0 -0
- package/openapi/agent-cognition-sessions.yaml +580 -0
- package/openapi/agent-crud.yaml +20 -20
- package/openapi/core/ossa-registry-api.openapi.yaml +1 -1
- package/openapi/ossa-cli-enhancements.openapi.yaml +1 -1
- package/openapi/release-automation.openapi.yaml +1 -1
- package/openapi/schemas/common/economics.yaml +98 -0
- package/openapi/uadp-asyncapi.yaml +1 -1
- package/openapi/uadp-openapi.yaml +2 -2
- package/package.json +114 -96
- package/spec/extensions/cognition.schema.json +87 -0
- package/spec/layer4-economics/duadp-examples.json +44 -0
- package/spec/v0.4/agent.schema.json +14 -0
- package/spec/v0.5/agent-builder-openapi.yaml +230 -0
- package/spec/v0.5/agent.schema.json +32 -1
- 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/extensions/mcp/README.md +1 -1
- package/spec/v0.5/memory-hierarchy.yaml +120 -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 -566
- 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
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
openapi: 3.1.0
|
|
2
|
+
info:
|
|
3
|
+
title: OSSA Agent Cognition Sessions API
|
|
4
|
+
version: 0.4.0
|
|
5
|
+
description: >
|
|
6
|
+
API for managing collaborative agent cognition sessions, hypotheses,
|
|
7
|
+
presence signals, and alignment locks within the CAOE framework.
|
|
8
|
+
|
|
9
|
+
paths:
|
|
10
|
+
/sessions:
|
|
11
|
+
post:
|
|
12
|
+
operationId: createSession
|
|
13
|
+
summary: Create a new collaborative session
|
|
14
|
+
tags: [Sessions]
|
|
15
|
+
requestBody:
|
|
16
|
+
required: true
|
|
17
|
+
content:
|
|
18
|
+
application/json:
|
|
19
|
+
schema:
|
|
20
|
+
$ref: '#/components/schemas/CreateSessionRequest'
|
|
21
|
+
responses:
|
|
22
|
+
'201':
|
|
23
|
+
description: Session created
|
|
24
|
+
content:
|
|
25
|
+
application/json:
|
|
26
|
+
schema:
|
|
27
|
+
$ref: '#/components/schemas/CreateSessionResponse'
|
|
28
|
+
get:
|
|
29
|
+
operationId: listSessions
|
|
30
|
+
summary: List active sessions
|
|
31
|
+
tags: [Sessions]
|
|
32
|
+
parameters:
|
|
33
|
+
- name: status
|
|
34
|
+
in: query
|
|
35
|
+
schema:
|
|
36
|
+
$ref: '#/components/schemas/SessionStatus'
|
|
37
|
+
responses:
|
|
38
|
+
'200':
|
|
39
|
+
description: List of sessions
|
|
40
|
+
content:
|
|
41
|
+
application/json:
|
|
42
|
+
schema:
|
|
43
|
+
type: array
|
|
44
|
+
items:
|
|
45
|
+
$ref: '#/components/schemas/Session'
|
|
46
|
+
|
|
47
|
+
/sessions/{sessionId}:
|
|
48
|
+
get:
|
|
49
|
+
operationId: getSession
|
|
50
|
+
summary: Get session details
|
|
51
|
+
tags: [Sessions]
|
|
52
|
+
parameters:
|
|
53
|
+
- $ref: '#/components/parameters/SessionId'
|
|
54
|
+
responses:
|
|
55
|
+
'200':
|
|
56
|
+
description: Session details
|
|
57
|
+
content:
|
|
58
|
+
application/json:
|
|
59
|
+
schema:
|
|
60
|
+
$ref: '#/components/schemas/Session'
|
|
61
|
+
'404':
|
|
62
|
+
description: Session not found
|
|
63
|
+
delete:
|
|
64
|
+
operationId: endSession
|
|
65
|
+
summary: End a session
|
|
66
|
+
tags: [Sessions]
|
|
67
|
+
parameters:
|
|
68
|
+
- $ref: '#/components/parameters/SessionId'
|
|
69
|
+
responses:
|
|
70
|
+
'200':
|
|
71
|
+
description: Session ended
|
|
72
|
+
|
|
73
|
+
/sessions/{sessionId}/hypotheses:
|
|
74
|
+
post:
|
|
75
|
+
operationId: emitHypothesis
|
|
76
|
+
summary: Emit a hypothesis in a session
|
|
77
|
+
tags: [Hypotheses]
|
|
78
|
+
parameters:
|
|
79
|
+
- $ref: '#/components/parameters/SessionId'
|
|
80
|
+
requestBody:
|
|
81
|
+
required: true
|
|
82
|
+
content:
|
|
83
|
+
application/json:
|
|
84
|
+
schema:
|
|
85
|
+
$ref: '#/components/schemas/EmitHypothesisRequest'
|
|
86
|
+
responses:
|
|
87
|
+
'201':
|
|
88
|
+
description: Hypothesis emitted
|
|
89
|
+
content:
|
|
90
|
+
application/json:
|
|
91
|
+
schema:
|
|
92
|
+
$ref: '#/components/schemas/Hypothesis'
|
|
93
|
+
'409':
|
|
94
|
+
description: Conflict detected
|
|
95
|
+
content:
|
|
96
|
+
application/json:
|
|
97
|
+
schema:
|
|
98
|
+
type: object
|
|
99
|
+
properties:
|
|
100
|
+
conflicts:
|
|
101
|
+
type: array
|
|
102
|
+
items:
|
|
103
|
+
$ref: '#/components/schemas/Hypothesis'
|
|
104
|
+
get:
|
|
105
|
+
operationId: listHypotheses
|
|
106
|
+
summary: List hypotheses in a session
|
|
107
|
+
tags: [Hypotheses]
|
|
108
|
+
parameters:
|
|
109
|
+
- $ref: '#/components/parameters/SessionId'
|
|
110
|
+
responses:
|
|
111
|
+
'200':
|
|
112
|
+
description: List of hypotheses
|
|
113
|
+
content:
|
|
114
|
+
application/json:
|
|
115
|
+
schema:
|
|
116
|
+
type: array
|
|
117
|
+
items:
|
|
118
|
+
$ref: '#/components/schemas/Hypothesis'
|
|
119
|
+
|
|
120
|
+
/sessions/{sessionId}/hypotheses/{hypothesisId}/lock:
|
|
121
|
+
post:
|
|
122
|
+
operationId: lockHypothesis
|
|
123
|
+
summary: Lock a hypothesis (human arbitration)
|
|
124
|
+
tags: [Hypotheses]
|
|
125
|
+
parameters:
|
|
126
|
+
- $ref: '#/components/parameters/SessionId'
|
|
127
|
+
- $ref: '#/components/parameters/HypothesisId'
|
|
128
|
+
requestBody:
|
|
129
|
+
required: true
|
|
130
|
+
content:
|
|
131
|
+
application/json:
|
|
132
|
+
schema:
|
|
133
|
+
$ref: '#/components/schemas/LockHypothesisRequest'
|
|
134
|
+
responses:
|
|
135
|
+
'200':
|
|
136
|
+
description: Hypothesis locked
|
|
137
|
+
|
|
138
|
+
/sessions/{sessionId}/conflicts/resolve:
|
|
139
|
+
post:
|
|
140
|
+
operationId: resolveConflict
|
|
141
|
+
summary: Resolve a hypothesis conflict
|
|
142
|
+
tags: [Conflicts]
|
|
143
|
+
parameters:
|
|
144
|
+
- $ref: '#/components/parameters/SessionId'
|
|
145
|
+
requestBody:
|
|
146
|
+
required: true
|
|
147
|
+
content:
|
|
148
|
+
application/json:
|
|
149
|
+
schema:
|
|
150
|
+
$ref: '#/components/schemas/ConflictResolutionRequest'
|
|
151
|
+
responses:
|
|
152
|
+
'200':
|
|
153
|
+
description: Conflict resolved
|
|
154
|
+
|
|
155
|
+
/sessions/{sessionId}/presence:
|
|
156
|
+
get:
|
|
157
|
+
operationId: getPresence
|
|
158
|
+
summary: Get current presence signals for a session
|
|
159
|
+
tags: [Presence]
|
|
160
|
+
parameters:
|
|
161
|
+
- $ref: '#/components/parameters/SessionId'
|
|
162
|
+
responses:
|
|
163
|
+
'200':
|
|
164
|
+
description: Presence signals
|
|
165
|
+
content:
|
|
166
|
+
application/json:
|
|
167
|
+
schema:
|
|
168
|
+
type: array
|
|
169
|
+
items:
|
|
170
|
+
$ref: '#/components/schemas/PresenceSignal'
|
|
171
|
+
|
|
172
|
+
components:
|
|
173
|
+
parameters:
|
|
174
|
+
SessionId:
|
|
175
|
+
name: sessionId
|
|
176
|
+
in: path
|
|
177
|
+
required: true
|
|
178
|
+
schema:
|
|
179
|
+
type: string
|
|
180
|
+
format: uuid
|
|
181
|
+
HypothesisId:
|
|
182
|
+
name: hypothesisId
|
|
183
|
+
in: path
|
|
184
|
+
required: true
|
|
185
|
+
schema:
|
|
186
|
+
type: string
|
|
187
|
+
format: uuid
|
|
188
|
+
|
|
189
|
+
schemas:
|
|
190
|
+
SessionStatus:
|
|
191
|
+
type: string
|
|
192
|
+
enum: [active, paused, ended]
|
|
193
|
+
|
|
194
|
+
ActorType:
|
|
195
|
+
type: string
|
|
196
|
+
enum: [human, agent]
|
|
197
|
+
|
|
198
|
+
HypothesisStatus:
|
|
199
|
+
type: string
|
|
200
|
+
enum: [forming, active, locked, superseded, rejected, completed]
|
|
201
|
+
|
|
202
|
+
CognitionEventType:
|
|
203
|
+
type: string
|
|
204
|
+
enum:
|
|
205
|
+
- hypothesis.formed
|
|
206
|
+
- hypothesis.updated
|
|
207
|
+
- hypothesis.locked
|
|
208
|
+
- hypothesis.rejected
|
|
209
|
+
- hypothesis.completed
|
|
210
|
+
- conflict.detected
|
|
211
|
+
- conflict.resolved
|
|
212
|
+
- alignment.checkpoint
|
|
213
|
+
- session.joined
|
|
214
|
+
- session.left
|
|
215
|
+
- focus.changed
|
|
216
|
+
|
|
217
|
+
HypothesisIntent:
|
|
218
|
+
type: object
|
|
219
|
+
required: [action, targetFiles, targetPackages, estimatedScope]
|
|
220
|
+
properties:
|
|
221
|
+
action:
|
|
222
|
+
type: string
|
|
223
|
+
enum: [create, modify, delete, read, test, refactor, review, deploy, analyze]
|
|
224
|
+
targetFiles:
|
|
225
|
+
type: array
|
|
226
|
+
items:
|
|
227
|
+
type: string
|
|
228
|
+
targetPackages:
|
|
229
|
+
type: array
|
|
230
|
+
items:
|
|
231
|
+
type: string
|
|
232
|
+
estimatedScope:
|
|
233
|
+
type: string
|
|
234
|
+
enum: [line, function, file, module, package]
|
|
235
|
+
conflictSensitive:
|
|
236
|
+
type: boolean
|
|
237
|
+
default: true
|
|
238
|
+
|
|
239
|
+
Hypothesis:
|
|
240
|
+
type: object
|
|
241
|
+
required: [id, sessionId, actorId, actorType, statement, intent, status, confidence, createdAt, updatedAt]
|
|
242
|
+
properties:
|
|
243
|
+
id:
|
|
244
|
+
type: string
|
|
245
|
+
format: uuid
|
|
246
|
+
sessionId:
|
|
247
|
+
type: string
|
|
248
|
+
format: uuid
|
|
249
|
+
actorId:
|
|
250
|
+
type: string
|
|
251
|
+
minLength: 1
|
|
252
|
+
actorType:
|
|
253
|
+
$ref: '#/components/schemas/ActorType'
|
|
254
|
+
statement:
|
|
255
|
+
type: string
|
|
256
|
+
minLength: 1
|
|
257
|
+
maxLength: 1000
|
|
258
|
+
intent:
|
|
259
|
+
$ref: '#/components/schemas/HypothesisIntent'
|
|
260
|
+
status:
|
|
261
|
+
$ref: '#/components/schemas/HypothesisStatus'
|
|
262
|
+
confidence:
|
|
263
|
+
type: number
|
|
264
|
+
minimum: 0
|
|
265
|
+
maximum: 1
|
|
266
|
+
supersedes:
|
|
267
|
+
type: string
|
|
268
|
+
format: uuid
|
|
269
|
+
createdAt:
|
|
270
|
+
type: string
|
|
271
|
+
format: date-time
|
|
272
|
+
updatedAt:
|
|
273
|
+
type: string
|
|
274
|
+
format: date-time
|
|
275
|
+
lockedBy:
|
|
276
|
+
type: string
|
|
277
|
+
lockedAt:
|
|
278
|
+
type: string
|
|
279
|
+
format: date-time
|
|
280
|
+
|
|
281
|
+
PresenceSignal:
|
|
282
|
+
type: object
|
|
283
|
+
required: [actorId, actorType, actorLabel, sessionId, focus, color, status, timestamp]
|
|
284
|
+
properties:
|
|
285
|
+
actorId:
|
|
286
|
+
type: string
|
|
287
|
+
minLength: 1
|
|
288
|
+
actorType:
|
|
289
|
+
$ref: '#/components/schemas/ActorType'
|
|
290
|
+
actorLabel:
|
|
291
|
+
type: string
|
|
292
|
+
sessionId:
|
|
293
|
+
type: string
|
|
294
|
+
format: uuid
|
|
295
|
+
focus:
|
|
296
|
+
type: object
|
|
297
|
+
properties:
|
|
298
|
+
file:
|
|
299
|
+
type: string
|
|
300
|
+
line:
|
|
301
|
+
type: integer
|
|
302
|
+
minimum: 1
|
|
303
|
+
column:
|
|
304
|
+
type: integer
|
|
305
|
+
minimum: 0
|
|
306
|
+
selection:
|
|
307
|
+
type: object
|
|
308
|
+
properties:
|
|
309
|
+
startLine:
|
|
310
|
+
type: integer
|
|
311
|
+
endLine:
|
|
312
|
+
type: integer
|
|
313
|
+
package:
|
|
314
|
+
type: string
|
|
315
|
+
scope:
|
|
316
|
+
type: string
|
|
317
|
+
activeHypothesisId:
|
|
318
|
+
type: string
|
|
319
|
+
format: uuid
|
|
320
|
+
color:
|
|
321
|
+
type: string
|
|
322
|
+
pattern: '^#[0-9a-fA-F]{6}$'
|
|
323
|
+
status:
|
|
324
|
+
type: string
|
|
325
|
+
enum: [active, idle, blocked, offline]
|
|
326
|
+
timestamp:
|
|
327
|
+
type: string
|
|
328
|
+
format: date-time
|
|
329
|
+
|
|
330
|
+
SessionParticipant:
|
|
331
|
+
type: object
|
|
332
|
+
required: [actorId, actorType, joinedAt, role]
|
|
333
|
+
properties:
|
|
334
|
+
actorId:
|
|
335
|
+
type: string
|
|
336
|
+
actorType:
|
|
337
|
+
$ref: '#/components/schemas/ActorType'
|
|
338
|
+
joinedAt:
|
|
339
|
+
type: string
|
|
340
|
+
format: date-time
|
|
341
|
+
role:
|
|
342
|
+
type: string
|
|
343
|
+
enum: [owner, collaborator, observer]
|
|
344
|
+
|
|
345
|
+
AlignmentCheckpoint:
|
|
346
|
+
type: object
|
|
347
|
+
required: [id, hypothesisId, approvedBy, approvedAt, description]
|
|
348
|
+
properties:
|
|
349
|
+
id:
|
|
350
|
+
type: string
|
|
351
|
+
format: uuid
|
|
352
|
+
hypothesisId:
|
|
353
|
+
type: string
|
|
354
|
+
format: uuid
|
|
355
|
+
approvedBy:
|
|
356
|
+
type: string
|
|
357
|
+
approvedAt:
|
|
358
|
+
type: string
|
|
359
|
+
format: date-time
|
|
360
|
+
description:
|
|
361
|
+
type: string
|
|
362
|
+
|
|
363
|
+
Session:
|
|
364
|
+
type: object
|
|
365
|
+
required: [id, name, packages, status, participants, activeHypothesisIds, alignmentCheckpoints, wsEndpoint, createdAt, updatedAt]
|
|
366
|
+
properties:
|
|
367
|
+
id:
|
|
368
|
+
type: string
|
|
369
|
+
format: uuid
|
|
370
|
+
name:
|
|
371
|
+
type: string
|
|
372
|
+
minLength: 1
|
|
373
|
+
maxLength: 100
|
|
374
|
+
gitlabIssueId:
|
|
375
|
+
type: integer
|
|
376
|
+
branch:
|
|
377
|
+
type: string
|
|
378
|
+
packages:
|
|
379
|
+
type: array
|
|
380
|
+
items:
|
|
381
|
+
type: string
|
|
382
|
+
status:
|
|
383
|
+
$ref: '#/components/schemas/SessionStatus'
|
|
384
|
+
participants:
|
|
385
|
+
type: array
|
|
386
|
+
items:
|
|
387
|
+
$ref: '#/components/schemas/SessionParticipant'
|
|
388
|
+
activeHypothesisIds:
|
|
389
|
+
type: array
|
|
390
|
+
items:
|
|
391
|
+
type: string
|
|
392
|
+
format: uuid
|
|
393
|
+
alignmentCheckpoints:
|
|
394
|
+
type: array
|
|
395
|
+
items:
|
|
396
|
+
$ref: '#/components/schemas/AlignmentCheckpoint'
|
|
397
|
+
wsEndpoint:
|
|
398
|
+
type: string
|
|
399
|
+
format: uri
|
|
400
|
+
createdAt:
|
|
401
|
+
type: string
|
|
402
|
+
format: date-time
|
|
403
|
+
updatedAt:
|
|
404
|
+
type: string
|
|
405
|
+
format: date-time
|
|
406
|
+
endedAt:
|
|
407
|
+
type: string
|
|
408
|
+
format: date-time
|
|
409
|
+
|
|
410
|
+
CognitionEvent:
|
|
411
|
+
type: object
|
|
412
|
+
required: [id, type, sessionId, actorId, actorType, description, affectedFiles, nist, timestamp]
|
|
413
|
+
properties:
|
|
414
|
+
id:
|
|
415
|
+
type: string
|
|
416
|
+
format: uuid
|
|
417
|
+
type:
|
|
418
|
+
$ref: '#/components/schemas/CognitionEventType'
|
|
419
|
+
sessionId:
|
|
420
|
+
type: string
|
|
421
|
+
format: uuid
|
|
422
|
+
actorId:
|
|
423
|
+
type: string
|
|
424
|
+
actorType:
|
|
425
|
+
$ref: '#/components/schemas/ActorType'
|
|
426
|
+
hypothesisId:
|
|
427
|
+
type: string
|
|
428
|
+
format: uuid
|
|
429
|
+
conflictingHypothesisIds:
|
|
430
|
+
type: array
|
|
431
|
+
items:
|
|
432
|
+
type: string
|
|
433
|
+
format: uuid
|
|
434
|
+
checkpointHypothesisId:
|
|
435
|
+
type: string
|
|
436
|
+
format: uuid
|
|
437
|
+
description:
|
|
438
|
+
type: string
|
|
439
|
+
affectedFiles:
|
|
440
|
+
type: array
|
|
441
|
+
items:
|
|
442
|
+
type: string
|
|
443
|
+
nist:
|
|
444
|
+
type: object
|
|
445
|
+
required: [classification]
|
|
446
|
+
properties:
|
|
447
|
+
control:
|
|
448
|
+
type: string
|
|
449
|
+
default: AU-2
|
|
450
|
+
classification:
|
|
451
|
+
type: string
|
|
452
|
+
enum: [informational, warning, critical]
|
|
453
|
+
requiresReview:
|
|
454
|
+
type: boolean
|
|
455
|
+
default: false
|
|
456
|
+
timestamp:
|
|
457
|
+
type: string
|
|
458
|
+
format: date-time
|
|
459
|
+
|
|
460
|
+
OSSACognitionSpec:
|
|
461
|
+
type: object
|
|
462
|
+
properties:
|
|
463
|
+
sessionCapable:
|
|
464
|
+
type: boolean
|
|
465
|
+
default: false
|
|
466
|
+
hypothesisEmission:
|
|
467
|
+
type: string
|
|
468
|
+
enum: [required, optional, disabled]
|
|
469
|
+
default: optional
|
|
470
|
+
conflictBehavior:
|
|
471
|
+
type: string
|
|
472
|
+
enum: [block, warn, defer]
|
|
473
|
+
default: block
|
|
474
|
+
alignmentGate:
|
|
475
|
+
type: string
|
|
476
|
+
enum: [human_approval, auto_on_confidence, peer_agent, none]
|
|
477
|
+
default: human_approval
|
|
478
|
+
autoLockConfidenceThreshold:
|
|
479
|
+
type: number
|
|
480
|
+
minimum: 0
|
|
481
|
+
maximum: 1
|
|
482
|
+
default: 0.95
|
|
483
|
+
maxConcurrentHypotheses:
|
|
484
|
+
type: integer
|
|
485
|
+
minimum: 1
|
|
486
|
+
maximum: 5
|
|
487
|
+
default: 1
|
|
488
|
+
cognitiveFingerprint:
|
|
489
|
+
type: string
|
|
490
|
+
|
|
491
|
+
CreateSessionRequest:
|
|
492
|
+
type: object
|
|
493
|
+
required: [name, packages]
|
|
494
|
+
properties:
|
|
495
|
+
name:
|
|
496
|
+
type: string
|
|
497
|
+
minLength: 1
|
|
498
|
+
maxLength: 100
|
|
499
|
+
gitlabIssueId:
|
|
500
|
+
type: integer
|
|
501
|
+
branch:
|
|
502
|
+
type: string
|
|
503
|
+
packages:
|
|
504
|
+
type: array
|
|
505
|
+
items:
|
|
506
|
+
type: string
|
|
507
|
+
minItems: 1
|
|
508
|
+
agentIds:
|
|
509
|
+
type: array
|
|
510
|
+
items:
|
|
511
|
+
type: string
|
|
512
|
+
|
|
513
|
+
CreateSessionResponse:
|
|
514
|
+
type: object
|
|
515
|
+
required: [session, joinUrl, wsEndpoint]
|
|
516
|
+
properties:
|
|
517
|
+
session:
|
|
518
|
+
$ref: '#/components/schemas/Session'
|
|
519
|
+
joinUrl:
|
|
520
|
+
type: string
|
|
521
|
+
format: uri
|
|
522
|
+
wsEndpoint:
|
|
523
|
+
type: string
|
|
524
|
+
format: uri
|
|
525
|
+
|
|
526
|
+
EmitHypothesisRequest:
|
|
527
|
+
type: object
|
|
528
|
+
required: [sessionId, statement, intent, confidence]
|
|
529
|
+
properties:
|
|
530
|
+
sessionId:
|
|
531
|
+
type: string
|
|
532
|
+
format: uuid
|
|
533
|
+
statement:
|
|
534
|
+
type: string
|
|
535
|
+
minLength: 1
|
|
536
|
+
maxLength: 1000
|
|
537
|
+
intent:
|
|
538
|
+
$ref: '#/components/schemas/HypothesisIntent'
|
|
539
|
+
confidence:
|
|
540
|
+
type: number
|
|
541
|
+
minimum: 0
|
|
542
|
+
maximum: 1
|
|
543
|
+
supersedes:
|
|
544
|
+
type: string
|
|
545
|
+
format: uuid
|
|
546
|
+
|
|
547
|
+
LockHypothesisRequest:
|
|
548
|
+
type: object
|
|
549
|
+
required: [sessionId, hypothesisId, arbitratorId]
|
|
550
|
+
properties:
|
|
551
|
+
sessionId:
|
|
552
|
+
type: string
|
|
553
|
+
format: uuid
|
|
554
|
+
hypothesisId:
|
|
555
|
+
type: string
|
|
556
|
+
format: uuid
|
|
557
|
+
arbitratorId:
|
|
558
|
+
type: string
|
|
559
|
+
reason:
|
|
560
|
+
type: string
|
|
561
|
+
|
|
562
|
+
ConflictResolutionRequest:
|
|
563
|
+
type: object
|
|
564
|
+
required: [sessionId, winningHypothesisId, losingHypothesisIds, arbitratorId, checkpointDescription]
|
|
565
|
+
properties:
|
|
566
|
+
sessionId:
|
|
567
|
+
type: string
|
|
568
|
+
format: uuid
|
|
569
|
+
winningHypothesisId:
|
|
570
|
+
type: string
|
|
571
|
+
format: uuid
|
|
572
|
+
losingHypothesisIds:
|
|
573
|
+
type: array
|
|
574
|
+
items:
|
|
575
|
+
type: string
|
|
576
|
+
format: uuid
|
|
577
|
+
arbitratorId:
|
|
578
|
+
type: string
|
|
579
|
+
checkpointDescription:
|
|
580
|
+
type: string
|