@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
-
|
|
6
|
+
"/agents": {
|
|
7
7
|
parameters: {
|
|
8
8
|
query?: never;
|
|
9
9
|
header?: never;
|
|
@@ -14,20 +14,20 @@ export interface paths {
|
|
|
14
14
|
* List agents
|
|
15
15
|
* @description Retrieve a paginated list of all registered agents with optional filtering
|
|
16
16
|
*/
|
|
17
|
-
get: operations[
|
|
17
|
+
get: operations["listAgents"];
|
|
18
18
|
put?: never;
|
|
19
19
|
/**
|
|
20
20
|
* Create agent
|
|
21
21
|
* @description Register a new agent with the platform
|
|
22
22
|
*/
|
|
23
|
-
post: operations[
|
|
23
|
+
post: operations["createAgent"];
|
|
24
24
|
delete?: never;
|
|
25
25
|
options?: never;
|
|
26
26
|
head?: never;
|
|
27
27
|
patch?: never;
|
|
28
28
|
trace?: never;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
"/agents/{id}": {
|
|
31
31
|
parameters: {
|
|
32
32
|
query?: never;
|
|
33
33
|
header?: never;
|
|
@@ -38,18 +38,18 @@ export interface paths {
|
|
|
38
38
|
* Get agent
|
|
39
39
|
* @description Retrieve detailed information about a specific agent
|
|
40
40
|
*/
|
|
41
|
-
get: operations[
|
|
41
|
+
get: operations["getAgent"];
|
|
42
42
|
/**
|
|
43
43
|
* Update agent
|
|
44
44
|
* @description Update an existing agent's configuration
|
|
45
45
|
*/
|
|
46
|
-
put: operations[
|
|
46
|
+
put: operations["updateAgent"];
|
|
47
47
|
post?: never;
|
|
48
48
|
/**
|
|
49
49
|
* Delete agent
|
|
50
50
|
* @description Unregister and remove an agent from the platform
|
|
51
51
|
*/
|
|
52
|
-
delete: operations[
|
|
52
|
+
delete: operations["deleteAgent"];
|
|
53
53
|
options?: never;
|
|
54
54
|
head?: never;
|
|
55
55
|
patch?: never;
|
|
@@ -64,14 +64,14 @@ export interface components {
|
|
|
64
64
|
* @description OSSA specification version
|
|
65
65
|
* @constant
|
|
66
66
|
*/
|
|
67
|
-
apiVersion:
|
|
67
|
+
apiVersion: "ossa/v0.5.1";
|
|
68
68
|
/**
|
|
69
69
|
* @description Resource type identifier
|
|
70
70
|
* @constant
|
|
71
71
|
*/
|
|
72
|
-
kind:
|
|
73
|
-
metadata: components[
|
|
74
|
-
spec: components[
|
|
72
|
+
kind: "Agent";
|
|
73
|
+
metadata: components["schemas"]["AgentMetadata"];
|
|
74
|
+
spec: components["schemas"]["AgentSpec"];
|
|
75
75
|
};
|
|
76
76
|
/** @description Partial update of agent configuration. Only provided fields will be updated. */
|
|
77
77
|
AgentUpdate: {
|
|
@@ -82,9 +82,9 @@ export interface components {
|
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
spec?: {
|
|
85
|
-
llm?: components[
|
|
86
|
-
runtime?: components[
|
|
87
|
-
capabilities?: components[
|
|
85
|
+
llm?: components["schemas"]["LLMConfig"];
|
|
86
|
+
runtime?: components["schemas"]["RuntimeConfig"];
|
|
87
|
+
capabilities?: components["schemas"]["Capability"][];
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
AgentResponse: {
|
|
@@ -94,12 +94,12 @@ export interface components {
|
|
|
94
94
|
*/
|
|
95
95
|
id: string;
|
|
96
96
|
/** @constant */
|
|
97
|
-
apiVersion:
|
|
97
|
+
apiVersion: "ossa/v0.5.1";
|
|
98
98
|
/** @constant */
|
|
99
|
-
kind:
|
|
100
|
-
metadata: components[
|
|
101
|
-
spec: components[
|
|
102
|
-
status: components[
|
|
99
|
+
kind: "Agent";
|
|
100
|
+
metadata: components["schemas"]["AgentMetadata"];
|
|
101
|
+
spec: components["schemas"]["AgentSpec"];
|
|
102
|
+
status: components["schemas"]["AgentStatus"];
|
|
103
103
|
/**
|
|
104
104
|
* Format: date-time
|
|
105
105
|
* @description Timestamp when the agent was created
|
|
@@ -112,10 +112,10 @@ export interface components {
|
|
|
112
112
|
updatedAt: string;
|
|
113
113
|
/** @description User or system that created the agent */
|
|
114
114
|
createdBy?: string;
|
|
115
|
-
metrics?: components[
|
|
115
|
+
metrics?: components["schemas"]["AgentMetrics"];
|
|
116
116
|
};
|
|
117
117
|
AgentsList: {
|
|
118
|
-
agents: components[
|
|
118
|
+
agents: components["schemas"]["AgentResponse"][];
|
|
119
119
|
/** @description Total number of agents matching the query */
|
|
120
120
|
total: number;
|
|
121
121
|
/** @description Maximum number of results returned */
|
|
@@ -152,17 +152,17 @@ export interface components {
|
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
154
|
AgentSpec: {
|
|
155
|
-
llm: components[
|
|
156
|
-
execution_profile?: components[
|
|
157
|
-
runtime: components[
|
|
158
|
-
capabilities: components[
|
|
159
|
-
functions?: components[
|
|
160
|
-
extensions?: components[
|
|
155
|
+
llm: components["schemas"]["LLMConfig"];
|
|
156
|
+
execution_profile?: components["schemas"]["ExecutionProfile"];
|
|
157
|
+
runtime: components["schemas"]["RuntimeConfig"];
|
|
158
|
+
capabilities: components["schemas"]["Capability"][];
|
|
159
|
+
functions?: components["schemas"]["Function"][];
|
|
160
|
+
extensions?: components["schemas"]["Extension"][];
|
|
161
161
|
/** @description Agent's primary role */
|
|
162
162
|
role?: string;
|
|
163
|
-
taxonomy?: components[
|
|
164
|
-
tools?: components[
|
|
165
|
-
knowledge_graph?: components[
|
|
163
|
+
taxonomy?: components["schemas"]["Taxonomy"];
|
|
164
|
+
tools?: components["schemas"]["Tool"][];
|
|
165
|
+
knowledge_graph?: components["schemas"]["KnowledgeGraph"];
|
|
166
166
|
};
|
|
167
167
|
LLMConfig: {
|
|
168
168
|
/**
|
|
@@ -180,21 +180,21 @@ export interface components {
|
|
|
180
180
|
* @default balanced
|
|
181
181
|
* @enum {string}
|
|
182
182
|
*/
|
|
183
|
-
profile:
|
|
183
|
+
profile: "fast" | "balanced" | "deep" | "safe";
|
|
184
184
|
/** @default 0.1 */
|
|
185
185
|
temperature: number;
|
|
186
186
|
/** @default 16000 */
|
|
187
187
|
maxTokens: number;
|
|
188
188
|
/** @default 0.9 */
|
|
189
189
|
topP: number;
|
|
190
|
-
fallback_models?: components[
|
|
191
|
-
retry_config?: components[
|
|
190
|
+
fallback_models?: components["schemas"]["FallbackModel"][];
|
|
191
|
+
retry_config?: components["schemas"]["RetryConfig"];
|
|
192
192
|
};
|
|
193
193
|
FallbackModel: {
|
|
194
194
|
provider: string;
|
|
195
195
|
model: string;
|
|
196
196
|
/** @enum {string} */
|
|
197
|
-
condition:
|
|
197
|
+
condition: "on_error" | "on_rate_limit" | "on_timeout";
|
|
198
198
|
};
|
|
199
199
|
RetryConfig: {
|
|
200
200
|
/** @default 3 */
|
|
@@ -203,13 +203,13 @@ export interface components {
|
|
|
203
203
|
* @default exponential
|
|
204
204
|
* @enum {string}
|
|
205
205
|
*/
|
|
206
|
-
backoff_strategy:
|
|
206
|
+
backoff_strategy: "linear" | "exponential" | "fibonacci";
|
|
207
207
|
};
|
|
208
208
|
ExecutionProfile: {
|
|
209
209
|
/** @enum {string} */
|
|
210
|
-
default?:
|
|
210
|
+
default?: "fast" | "balanced" | "deep" | "safe";
|
|
211
211
|
profiles?: {
|
|
212
|
-
[key: string]: components[
|
|
212
|
+
[key: string]: components["schemas"]["ProfileConfig"];
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
215
|
ProfileConfig: {
|
|
@@ -225,22 +225,22 @@ export interface components {
|
|
|
225
225
|
* @description Runtime environment type
|
|
226
226
|
* @enum {string}
|
|
227
227
|
*/
|
|
228
|
-
type:
|
|
229
|
-
supports?: (
|
|
230
|
-
scheduling?: components[
|
|
231
|
-
resource_limits?: components[
|
|
228
|
+
type: "unified" | "kubernetes" | "docker" | "serverless" | "local";
|
|
229
|
+
supports?: ("google-a2a" | "gitlab-duo" | "ossa-mesh" | "mcp" | "local-execution")[];
|
|
230
|
+
scheduling?: components["schemas"]["SchedulingConfig"];
|
|
231
|
+
resource_limits?: components["schemas"]["ResourceLimits"];
|
|
232
232
|
};
|
|
233
233
|
SchedulingConfig: {
|
|
234
234
|
/**
|
|
235
235
|
* @default fair
|
|
236
236
|
* @enum {string}
|
|
237
237
|
*/
|
|
238
|
-
strategy:
|
|
238
|
+
strategy: "fair" | "priority" | "round-robin";
|
|
239
239
|
/**
|
|
240
240
|
* @default normal
|
|
241
241
|
* @enum {string}
|
|
242
242
|
*/
|
|
243
|
-
priority:
|
|
243
|
+
priority: "low" | "normal" | "high" | "critical";
|
|
244
244
|
/** @default 10 */
|
|
245
245
|
max_concurrent: number;
|
|
246
246
|
/** @default 300 */
|
|
@@ -255,9 +255,9 @@ export interface components {
|
|
|
255
255
|
Capability: {
|
|
256
256
|
name: string;
|
|
257
257
|
/** @enum {string} */
|
|
258
|
-
type:
|
|
258
|
+
type: "action" | "query" | "monitor" | "transform";
|
|
259
259
|
/** @enum {string} */
|
|
260
|
-
runtime?:
|
|
260
|
+
runtime?: "llm" | "code" | "hybrid";
|
|
261
261
|
description?: string;
|
|
262
262
|
/** @description JSON Schema for capability input */
|
|
263
263
|
input_schema?: Record<string, never>;
|
|
@@ -272,7 +272,7 @@ export interface components {
|
|
|
272
272
|
};
|
|
273
273
|
Extension: {
|
|
274
274
|
/** @enum {string} */
|
|
275
|
-
type:
|
|
275
|
+
type: "http" | "mcp" | "grpc" | "websocket";
|
|
276
276
|
name: string;
|
|
277
277
|
/** Format: uri */
|
|
278
278
|
endpoint: string;
|
|
@@ -287,11 +287,11 @@ export interface components {
|
|
|
287
287
|
Tool: {
|
|
288
288
|
name: string;
|
|
289
289
|
description?: string;
|
|
290
|
-
source: components[
|
|
290
|
+
source: components["schemas"]["ToolSource"];
|
|
291
291
|
};
|
|
292
292
|
ToolSource: {
|
|
293
293
|
/** @enum {string} */
|
|
294
|
-
type:
|
|
294
|
+
type: "mcp" | "http" | "grpc";
|
|
295
295
|
/** Format: uri */
|
|
296
296
|
uri: string;
|
|
297
297
|
};
|
|
@@ -299,8 +299,8 @@ export interface components {
|
|
|
299
299
|
/** @default false */
|
|
300
300
|
enabled: boolean;
|
|
301
301
|
/** @enum {string} */
|
|
302
|
-
provider?:
|
|
303
|
-
connection?: components[
|
|
302
|
+
provider?: "neo4j" | "memgraph" | "dgraph";
|
|
303
|
+
connection?: components["schemas"]["GraphConnection"];
|
|
304
304
|
};
|
|
305
305
|
GraphConnection: {
|
|
306
306
|
/** Format: uri */
|
|
@@ -311,12 +311,12 @@ export interface components {
|
|
|
311
311
|
* @description Agent type classification
|
|
312
312
|
* @enum {string}
|
|
313
313
|
*/
|
|
314
|
-
AgentType:
|
|
314
|
+
AgentType: "orchestrator" | "worker" | "specialist" | "critic" | "monitor" | "gateway";
|
|
315
315
|
/**
|
|
316
316
|
* @description Current operational status of the agent
|
|
317
317
|
* @enum {string}
|
|
318
318
|
*/
|
|
319
|
-
AgentStatus:
|
|
319
|
+
AgentStatus: "registered" | "active" | "inactive" | "suspended" | "deprecated";
|
|
320
320
|
AgentMetrics: {
|
|
321
321
|
/** @description Total number of requests processed */
|
|
322
322
|
requestCount?: number;
|
|
@@ -371,14 +371,14 @@ export interface components {
|
|
|
371
371
|
content: {
|
|
372
372
|
/**
|
|
373
373
|
* @example {
|
|
374
|
-
* "type": "https://
|
|
374
|
+
* "type": "https://problems.openstandardagents.org/bad-request",
|
|
375
375
|
* "title": "Bad Request",
|
|
376
376
|
* "status": 400,
|
|
377
377
|
* "detail": "Invalid query parameter 'limit' - must be between 1 and 100",
|
|
378
378
|
* "traceId": "550e8400-e29b-41d4-a716-446655440000"
|
|
379
379
|
* }
|
|
380
380
|
*/
|
|
381
|
-
|
|
381
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
384
|
/** @description Validation error - Request body failed validation */
|
|
@@ -389,7 +389,7 @@ export interface components {
|
|
|
389
389
|
content: {
|
|
390
390
|
/**
|
|
391
391
|
* @example {
|
|
392
|
-
* "type": "https://
|
|
392
|
+
* "type": "https://problems.openstandardagents.org/validation-error",
|
|
393
393
|
* "title": "Validation Error",
|
|
394
394
|
* "status": 400,
|
|
395
395
|
* "detail": "Agent manifest validation failed",
|
|
@@ -404,7 +404,7 @@ export interface components {
|
|
|
404
404
|
* }
|
|
405
405
|
* }
|
|
406
406
|
*/
|
|
407
|
-
|
|
407
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
408
408
|
};
|
|
409
409
|
};
|
|
410
410
|
/** @description Unauthorized - Authentication required */
|
|
@@ -415,14 +415,14 @@ export interface components {
|
|
|
415
415
|
content: {
|
|
416
416
|
/**
|
|
417
417
|
* @example {
|
|
418
|
-
* "type": "https://
|
|
418
|
+
* "type": "https://problems.openstandardagents.org/unauthorized",
|
|
419
419
|
* "title": "Unauthorized",
|
|
420
420
|
* "status": 401,
|
|
421
421
|
* "detail": "Valid authentication credentials required",
|
|
422
422
|
* "traceId": "550e8400-e29b-41d4-a716-446655440002"
|
|
423
423
|
* }
|
|
424
424
|
*/
|
|
425
|
-
|
|
425
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
426
426
|
};
|
|
427
427
|
};
|
|
428
428
|
/** @description Resource not found */
|
|
@@ -433,14 +433,14 @@ export interface components {
|
|
|
433
433
|
content: {
|
|
434
434
|
/**
|
|
435
435
|
* @example {
|
|
436
|
-
* "type": "https://
|
|
436
|
+
* "type": "https://problems.openstandardagents.org/not-found",
|
|
437
437
|
* "title": "Not Found",
|
|
438
438
|
* "status": 404,
|
|
439
439
|
* "detail": "Agent with ID 550e8400-e29b-41d4-a716-446655440000 not found",
|
|
440
440
|
* "traceId": "550e8400-e29b-41d4-a716-446655440003"
|
|
441
441
|
* }
|
|
442
442
|
*/
|
|
443
|
-
|
|
443
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
444
444
|
};
|
|
445
445
|
};
|
|
446
446
|
/** @description Conflict - Resource already exists or constraint violation */
|
|
@@ -451,14 +451,14 @@ export interface components {
|
|
|
451
451
|
content: {
|
|
452
452
|
/**
|
|
453
453
|
* @example {
|
|
454
|
-
* "type": "https://
|
|
454
|
+
* "type": "https://problems.openstandardagents.org/conflict",
|
|
455
455
|
* "title": "Conflict",
|
|
456
456
|
* "status": 409,
|
|
457
457
|
* "detail": "Agent with name 'security-scanner' already exists in version 1.0.0",
|
|
458
458
|
* "traceId": "550e8400-e29b-41d4-a716-446655440004"
|
|
459
459
|
* }
|
|
460
460
|
*/
|
|
461
|
-
|
|
461
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
464
|
/** @description Internal server error */
|
|
@@ -469,14 +469,14 @@ export interface components {
|
|
|
469
469
|
content: {
|
|
470
470
|
/**
|
|
471
471
|
* @example {
|
|
472
|
-
* "type": "https://
|
|
472
|
+
* "type": "https://problems.openstandardagents.org/internal-error",
|
|
473
473
|
* "title": "Internal Server Error",
|
|
474
474
|
* "status": 500,
|
|
475
475
|
* "detail": "An unexpected error occurred while processing your request",
|
|
476
476
|
* "traceId": "550e8400-e29b-41d4-a716-446655440005"
|
|
477
477
|
* }
|
|
478
478
|
*/
|
|
479
|
-
|
|
479
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
482
|
};
|
|
@@ -515,21 +515,21 @@ export interface operations {
|
|
|
515
515
|
* @description Search query to filter agents by name or description
|
|
516
516
|
* @example security
|
|
517
517
|
*/
|
|
518
|
-
search?: components[
|
|
518
|
+
search?: components["parameters"]["Search"];
|
|
519
519
|
/**
|
|
520
520
|
* @description Maximum number of results to return
|
|
521
521
|
* @example 20
|
|
522
522
|
*/
|
|
523
|
-
limit?: components[
|
|
523
|
+
limit?: components["parameters"]["Limit"];
|
|
524
524
|
/**
|
|
525
525
|
* @description Number of results to skip for pagination
|
|
526
526
|
* @example 0
|
|
527
527
|
*/
|
|
528
|
-
offset?: components[
|
|
528
|
+
offset?: components["parameters"]["Offset"];
|
|
529
529
|
/** @description Filter by agent type */
|
|
530
|
-
type?: components[
|
|
530
|
+
type?: components["schemas"]["AgentType"];
|
|
531
531
|
/** @description Filter by agent status */
|
|
532
|
-
status?: components[
|
|
532
|
+
status?: components["schemas"]["AgentStatus"];
|
|
533
533
|
/** @description Filter by domain label */
|
|
534
534
|
domain?: string;
|
|
535
535
|
/** @description Filter by capability label */
|
|
@@ -547,12 +547,12 @@ export interface operations {
|
|
|
547
547
|
[name: string]: unknown;
|
|
548
548
|
};
|
|
549
549
|
content: {
|
|
550
|
-
|
|
550
|
+
"application/json": components["schemas"]["AgentsList"];
|
|
551
551
|
};
|
|
552
552
|
};
|
|
553
|
-
400: components[
|
|
554
|
-
401: components[
|
|
555
|
-
500: components[
|
|
553
|
+
400: components["responses"]["BadRequest"];
|
|
554
|
+
401: components["responses"]["Unauthorized"];
|
|
555
|
+
500: components["responses"]["InternalServerError"];
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
558
|
createAgent: {
|
|
@@ -565,7 +565,7 @@ export interface operations {
|
|
|
565
565
|
/** @description Agent creation request with full manifest */
|
|
566
566
|
requestBody: {
|
|
567
567
|
content: {
|
|
568
|
-
|
|
568
|
+
"application/json": components["schemas"]["AgentCreate"];
|
|
569
569
|
};
|
|
570
570
|
};
|
|
571
571
|
responses: {
|
|
@@ -577,13 +577,13 @@ export interface operations {
|
|
|
577
577
|
[name: string]: unknown;
|
|
578
578
|
};
|
|
579
579
|
content: {
|
|
580
|
-
|
|
580
|
+
"application/json": components["schemas"]["AgentResponse"];
|
|
581
581
|
};
|
|
582
582
|
};
|
|
583
|
-
400: components[
|
|
584
|
-
401: components[
|
|
585
|
-
409: components[
|
|
586
|
-
500: components[
|
|
583
|
+
400: components["responses"]["ValidationError"];
|
|
584
|
+
401: components["responses"]["Unauthorized"];
|
|
585
|
+
409: components["responses"]["Conflict"];
|
|
586
|
+
500: components["responses"]["InternalServerError"];
|
|
587
587
|
};
|
|
588
588
|
};
|
|
589
589
|
getAgent: {
|
|
@@ -595,7 +595,7 @@ export interface operations {
|
|
|
595
595
|
* @description Unique identifier for the agent (UUID v4)
|
|
596
596
|
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
597
597
|
*/
|
|
598
|
-
id: components[
|
|
598
|
+
id: components["parameters"]["AgentId"];
|
|
599
599
|
};
|
|
600
600
|
cookie?: never;
|
|
601
601
|
};
|
|
@@ -607,12 +607,12 @@ export interface operations {
|
|
|
607
607
|
[name: string]: unknown;
|
|
608
608
|
};
|
|
609
609
|
content: {
|
|
610
|
-
|
|
610
|
+
"application/json": components["schemas"]["AgentResponse"];
|
|
611
611
|
};
|
|
612
612
|
};
|
|
613
|
-
401: components[
|
|
614
|
-
404: components[
|
|
615
|
-
500: components[
|
|
613
|
+
401: components["responses"]["Unauthorized"];
|
|
614
|
+
404: components["responses"]["NotFound"];
|
|
615
|
+
500: components["responses"]["InternalServerError"];
|
|
616
616
|
};
|
|
617
617
|
};
|
|
618
618
|
updateAgent: {
|
|
@@ -624,14 +624,14 @@ export interface operations {
|
|
|
624
624
|
* @description Unique identifier for the agent (UUID v4)
|
|
625
625
|
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
626
626
|
*/
|
|
627
|
-
id: components[
|
|
627
|
+
id: components["parameters"]["AgentId"];
|
|
628
628
|
};
|
|
629
629
|
cookie?: never;
|
|
630
630
|
};
|
|
631
631
|
/** @description Updated agent configuration */
|
|
632
632
|
requestBody: {
|
|
633
633
|
content: {
|
|
634
|
-
|
|
634
|
+
"application/json": components["schemas"]["AgentUpdate"];
|
|
635
635
|
};
|
|
636
636
|
};
|
|
637
637
|
responses: {
|
|
@@ -641,14 +641,14 @@ export interface operations {
|
|
|
641
641
|
[name: string]: unknown;
|
|
642
642
|
};
|
|
643
643
|
content: {
|
|
644
|
-
|
|
644
|
+
"application/json": components["schemas"]["AgentResponse"];
|
|
645
645
|
};
|
|
646
646
|
};
|
|
647
|
-
400: components[
|
|
648
|
-
401: components[
|
|
649
|
-
404: components[
|
|
650
|
-
409: components[
|
|
651
|
-
500: components[
|
|
647
|
+
400: components["responses"]["ValidationError"];
|
|
648
|
+
401: components["responses"]["Unauthorized"];
|
|
649
|
+
404: components["responses"]["NotFound"];
|
|
650
|
+
409: components["responses"]["Conflict"];
|
|
651
|
+
500: components["responses"]["InternalServerError"];
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
654
|
deleteAgent: {
|
|
@@ -660,7 +660,7 @@ export interface operations {
|
|
|
660
660
|
* @description Unique identifier for the agent (UUID v4)
|
|
661
661
|
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
662
662
|
*/
|
|
663
|
-
id: components[
|
|
663
|
+
id: components["parameters"]["AgentId"];
|
|
664
664
|
};
|
|
665
665
|
cookie?: never;
|
|
666
666
|
};
|
|
@@ -673,18 +673,18 @@ export interface operations {
|
|
|
673
673
|
};
|
|
674
674
|
content?: never;
|
|
675
675
|
};
|
|
676
|
-
401: components[
|
|
677
|
-
404: components[
|
|
676
|
+
401: components["responses"]["Unauthorized"];
|
|
677
|
+
404: components["responses"]["NotFound"];
|
|
678
678
|
/** @description Conflict - Agent is currently in use */
|
|
679
679
|
409: {
|
|
680
680
|
headers: {
|
|
681
681
|
[name: string]: unknown;
|
|
682
682
|
};
|
|
683
683
|
content: {
|
|
684
|
-
|
|
684
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
685
685
|
};
|
|
686
686
|
};
|
|
687
|
-
500: components[
|
|
687
|
+
500: components["responses"]["InternalServerError"];
|
|
688
688
|
};
|
|
689
689
|
};
|
|
690
690
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,4 +7,6 @@ import 'reflect-metadata';
|
|
|
7
7
|
export { AgentAuditService } from './services/audit.js';
|
|
8
8
|
export type { AuditOptions, AgentHealth, AuditReport, } from './services/audit.js';
|
|
9
9
|
export { createAuditCommand } from './cli/commands/audit.js';
|
|
10
|
+
export { HypothesisStatusSchema, CognitionEventTypeSchema, ActorTypeSchema, HypothesisSchema, PresenceSignalSchema, CognitionEventSchema, SessionSchema, OSSACognitionSpecSchema, CreateSessionRequestSchema, CreateSessionResponseSchema, EmitHypothesisRequestSchema, LockHypothesisRequestSchema, ConflictResolutionRequestSchema, } from './types/cognition.zod.js';
|
|
11
|
+
export type { HypothesisStatus, CognitionEventType, ActorType, Hypothesis, PresenceSignal, CognitionEvent, Session, OSSACognitionSpec, CreateSessionRequest, CreateSessionResponse, EmitHypothesisRequest, LockHypothesisRequest, ConflictResolutionRequest, } from './types/cognition.zod.js';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -9,4 +9,6 @@ import 'reflect-metadata';
|
|
|
9
9
|
export { AgentAuditService } from './services/audit.js';
|
|
10
10
|
// Export CLI (for programmatic use)
|
|
11
11
|
export { createAuditCommand } from './cli/commands/audit.js';
|
|
12
|
+
// Cognition types (CAOE)
|
|
13
|
+
export { HypothesisStatusSchema, CognitionEventTypeSchema, ActorTypeSchema, HypothesisSchema, PresenceSignalSchema, CognitionEventSchema, SessionSchema, OSSACognitionSpecSchema, CreateSessionRequestSchema, CreateSessionResponseSchema, EmitHypothesisRequestSchema, LockHypothesisRequestSchema, ConflictResolutionRequestSchema, } from './types/cognition.zod.js';
|
|
12
14
|
//# sourceMappingURL=index.js.map
|