@nexum-hub/agent 0.0.0-stage → 0.0.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/README.md +129 -2
- package/contracts/v2/common.schema.json +262 -0
- package/contracts/v2/fixtures/inputs.json +244 -0
- package/contracts/v2/fixtures/wire.json +6493 -0
- package/contracts/v2/model/agent.close.input.schema.json +14 -0
- package/contracts/v2/model/agent.close.output.schema.json +101 -0
- package/contracts/v2/model/agent.list.input.schema.json +57 -0
- package/contracts/v2/model/agent.list.output.schema.json +220 -0
- package/contracts/v2/model/agent.open.input.schema.json +35 -0
- package/contracts/v2/model/agent.open.output.schema.json +41 -0
- package/contracts/v2/model/agent.run.cancel.input.schema.json +18 -0
- package/contracts/v2/model/agent.run.cancel.output.schema.json +100 -0
- package/contracts/v2/model/agent.run.get.input.schema.json +41 -0
- package/contracts/v2/model/agent.run.get.output.schema.json +100 -0
- package/contracts/v2/model/agent.run.input.input.schema.json +30 -0
- package/contracts/v2/model/agent.run.input.output.schema.json +100 -0
- package/contracts/v2/model/agent.run.list.input.schema.json +47 -0
- package/contracts/v2/model/agent.run.list.output.schema.json +41 -0
- package/contracts/v2/model/agent.run.start.input.schema.json +73 -0
- package/contracts/v2/model/agent.run.start.output.schema.json +100 -0
- package/contracts/v2/wire/bodies.schema.json +383 -0
- package/contracts/v2/wire/envelope.schema.json +2280 -0
- package/contracts/v2/wire/events.schema.json +242 -0
- package/contracts/v2/wire/maintenance.schema.json +308 -0
- package/contracts/v2/wire/operations.schema.json +1791 -0
- package/contracts/v2/wire/stream.schema.json +74 -0
- package/contracts/v2/wire/types.schema.json +2616 -0
- package/dist/adapters/mcp-http.d.ts +22 -0
- package/dist/adapters/mcp-http.js +472 -0
- package/dist/adapters/mcp-http.js.map +1 -0
- package/dist/adapters/mcp-oauth.d.ts +29 -0
- package/dist/adapters/mcp-oauth.js +653 -0
- package/dist/adapters/mcp-oauth.js.map +1 -0
- package/dist/adapters/mcp-wire.d.ts +21 -0
- package/dist/adapters/mcp-wire.js +307 -0
- package/dist/adapters/mcp-wire.js.map +1 -0
- package/dist/adapters/mcp.d.ts +56 -0
- package/dist/adapters/mcp.js +1989 -0
- package/dist/adapters/mcp.js.map +1 -0
- package/dist/adapters/openapi-http.d.ts +29 -0
- package/dist/adapters/openapi-http.js +504 -0
- package/dist/adapters/openapi-http.js.map +1 -0
- package/dist/adapters/openapi-request.d.ts +26 -0
- package/dist/adapters/openapi-request.js +597 -0
- package/dist/adapters/openapi-request.js.map +1 -0
- package/dist/adapters/openapi-schema.d.ts +22 -0
- package/dist/adapters/openapi-schema.js +471 -0
- package/dist/adapters/openapi-schema.js.map +1 -0
- package/dist/adapters/openapi-typegen.d.ts +11 -0
- package/dist/adapters/openapi-typegen.js +185 -0
- package/dist/adapters/openapi-typegen.js.map +1 -0
- package/dist/adapters/openapi-types.d.ts +99 -0
- package/dist/adapters/openapi-types.js +2 -0
- package/dist/adapters/openapi-types.js.map +1 -0
- package/dist/adapters/openapi.d.ts +7 -0
- package/dist/adapters/openapi.js +768 -0
- package/dist/adapters/openapi.js.map +1 -0
- package/dist/application/activation.d.ts +28 -0
- package/dist/application/activation.js +289 -0
- package/dist/application/activation.js.map +1 -0
- package/dist/application/attachments.d.ts +24 -0
- package/dist/application/attachments.js +87 -0
- package/dist/application/attachments.js.map +1 -0
- package/dist/application/authority.d.ts +32 -0
- package/dist/application/authority.js +213 -0
- package/dist/application/authority.js.map +1 -0
- package/dist/application/catalog.d.ts +11 -0
- package/dist/application/catalog.js +177 -0
- package/dist/application/catalog.js.map +1 -0
- package/dist/application/config.d.ts +24 -0
- package/dist/application/config.js +140 -0
- package/dist/application/config.js.map +1 -0
- package/dist/application/connection.d.ts +35 -0
- package/dist/application/connection.js +465 -0
- package/dist/application/connection.js.map +1 -0
- package/dist/application/data-plane.d.ts +35 -0
- package/dist/application/data-plane.js +437 -0
- package/dist/application/data-plane.js.map +1 -0
- package/dist/application/diagnostics.d.ts +4 -0
- package/dist/application/diagnostics.js +65 -0
- package/dist/application/diagnostics.js.map +1 -0
- package/dist/application/dispatcher.d.ts +4 -0
- package/dist/application/dispatcher.js +16 -0
- package/dist/application/dispatcher.js.map +1 -0
- package/dist/application/main.d.ts +12 -0
- package/dist/application/main.js +167 -0
- package/dist/application/main.js.map +1 -0
- package/dist/application/maintenance.d.ts +27 -0
- package/dist/application/maintenance.js +244 -0
- package/dist/application/maintenance.js.map +1 -0
- package/dist/application/packages.d.ts +25 -0
- package/dist/application/packages.js +208 -0
- package/dist/application/packages.js.map +1 -0
- package/dist/application/processes.d.ts +49 -0
- package/dist/application/processes.js +180 -0
- package/dist/application/processes.js.map +1 -0
- package/dist/application/run-view.d.ts +17 -0
- package/dist/application/run-view.js +286 -0
- package/dist/application/run-view.js.map +1 -0
- package/dist/application/runtime.d.ts +78 -0
- package/dist/application/runtime.js +1747 -0
- package/dist/application/runtime.js.map +1 -0
- package/dist/application/tasks.d.ts +38 -0
- package/dist/application/tasks.js +23 -0
- package/dist/application/tasks.js.map +1 -0
- package/dist/application/user-state.d.ts +20 -0
- package/dist/application/user-state.js +52 -0
- package/dist/application/user-state.js.map +1 -0
- package/dist/application/work-git.d.ts +14 -0
- package/dist/application/work-git.js +67 -0
- package/dist/application/work-git.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +40 -0
- package/dist/cli.js.map +1 -0
- package/dist/contracts/caller.d.ts +51 -0
- package/dist/contracts/caller.js +95 -0
- package/dist/contracts/caller.js.map +1 -0
- package/dist/contracts/error-data.d.ts +6 -0
- package/dist/contracts/error-data.js +51 -0
- package/dist/contracts/error-data.js.map +1 -0
- package/dist/contracts/errors.d.ts +10 -0
- package/dist/contracts/errors.js +28 -0
- package/dist/contracts/errors.js.map +1 -0
- package/dist/contracts/json.d.ts +9 -0
- package/dist/contracts/json.js +104 -0
- package/dist/contracts/json.js.map +1 -0
- package/dist/contracts/types.d.ts +122 -0
- package/dist/contracts/types.js +19 -0
- package/dist/contracts/types.js.map +1 -0
- package/dist/contracts/validation.d.ts +4 -0
- package/dist/contracts/validation.js +157 -0
- package/dist/contracts/validation.js.map +1 -0
- package/dist/contracts/wire-validation.d.ts +9 -0
- package/dist/contracts/wire-validation.js +399 -0
- package/dist/contracts/wire-validation.js.map +1 -0
- package/dist/contracts/wire.d.ts +1083 -0
- package/dist/contracts/wire.js +62 -0
- package/dist/contracts/wire.js.map +1 -0
- package/dist/extension-api.d.ts +12 -0
- package/dist/extension-api.js +2 -0
- package/dist/extension-api.js.map +1 -0
- package/dist/extensions/api.d.ts +72 -0
- package/dist/extensions/api.js +2 -0
- package/dist/extensions/api.js.map +1 -0
- package/dist/extensions/host-requests.d.ts +23 -0
- package/dist/extensions/host-requests.js +60 -0
- package/dist/extensions/host-requests.js.map +1 -0
- package/dist/extensions/materials.d.ts +37 -0
- package/dist/extensions/materials.js +691 -0
- package/dist/extensions/materials.js.map +1 -0
- package/dist/extensions/package-loader.d.ts +28 -0
- package/dist/extensions/package-loader.js +177 -0
- package/dist/extensions/package-loader.js.map +1 -0
- package/dist/extensions/packages.d.ts +73 -0
- package/dist/extensions/packages.js +441 -0
- package/dist/extensions/packages.js.map +1 -0
- package/dist/extensions/registry.d.ts +92 -0
- package/dist/extensions/registry.js +1540 -0
- package/dist/extensions/registry.js.map +1 -0
- package/dist/extensions/resources.d.ts +105 -0
- package/dist/extensions/resources.js +595 -0
- package/dist/extensions/resources.js.map +1 -0
- package/dist/extensions/state.d.ts +25 -0
- package/dist/extensions/state.js +10 -0
- package/dist/extensions/state.js.map +1 -0
- package/dist/extensions/transfer.d.ts +81 -0
- package/dist/extensions/transfer.js +16 -0
- package/dist/extensions/transfer.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/maintenance/configuration.d.ts +79 -0
- package/dist/maintenance/configuration.js +1503 -0
- package/dist/maintenance/configuration.js.map +1 -0
- package/dist/maintenance/credentials.d.ts +23 -0
- package/dist/maintenance/credentials.js +177 -0
- package/dist/maintenance/credentials.js.map +1 -0
- package/dist/maintenance/files.d.ts +2 -0
- package/dist/maintenance/files.js +40 -0
- package/dist/maintenance/files.js.map +1 -0
- package/dist/maintenance/npm.d.ts +71 -0
- package/dist/maintenance/npm.js +1013 -0
- package/dist/maintenance/npm.js.map +1 -0
- package/dist/maintenance/oauth.d.ts +45 -0
- package/dist/maintenance/oauth.js +686 -0
- package/dist/maintenance/oauth.js.map +1 -0
- package/dist/maintenance/requests.d.ts +347 -0
- package/dist/maintenance/requests.js +959 -0
- package/dist/maintenance/requests.js.map +1 -0
- package/dist/maintenance/work-git.d.ts +29 -0
- package/dist/maintenance/work-git.js +776 -0
- package/dist/maintenance/work-git.js.map +1 -0
- package/dist/process/backend.d.ts +54 -0
- package/dist/process/backend.js +39 -0
- package/dist/process/backend.js.map +1 -0
- package/dist/process/environment-windows.d.ts +15 -0
- package/dist/process/environment-windows.js +151 -0
- package/dist/process/environment-windows.js.map +1 -0
- package/dist/process/environment.d.ts +28 -0
- package/dist/process/environment.js +410 -0
- package/dist/process/environment.js.map +1 -0
- package/dist/process/launch.d.ts +31 -0
- package/dist/process/launch.js +281 -0
- package/dist/process/launch.js.map +1 -0
- package/dist/process/managed.d.ts +36 -0
- package/dist/process/managed.js +459 -0
- package/dist/process/managed.js.map +1 -0
- package/dist/process/output-log.d.ts +50 -0
- package/dist/process/output-log.js +552 -0
- package/dist/process/output-log.js.map +1 -0
- package/dist/process/pipes.d.ts +16 -0
- package/dist/process/pipes.js +588 -0
- package/dist/process/pipes.js.map +1 -0
- package/dist/process/pty.d.ts +22 -0
- package/dist/process/pty.js +512 -0
- package/dist/process/pty.js.map +1 -0
- package/dist/process/windows-conout-worker.d.ts +1 -0
- package/dist/process/windows-conout-worker.js +90 -0
- package/dist/process/windows-conout-worker.js.map +1 -0
- package/dist/process/windows-conout.d.ts +46 -0
- package/dist/process/windows-conout.js +140 -0
- package/dist/process/windows-conout.js.map +1 -0
- package/dist/process/windows-helper.d.ts +43 -0
- package/dist/process/windows-helper.js +255 -0
- package/dist/process/windows-helper.js.map +1 -0
- package/dist/process/windows-job.d.ts +39 -0
- package/dist/process/windows-job.js +224 -0
- package/dist/process/windows-job.js.map +1 -0
- package/dist/process/windows-pipes.d.ts +16 -0
- package/dist/process/windows-pipes.js +475 -0
- package/dist/process/windows-pipes.js.map +1 -0
- package/dist/results/artifacts.d.ts +118 -0
- package/dist/results/artifacts.js +873 -0
- package/dist/results/artifacts.js.map +1 -0
- package/dist/results/encoder.d.ts +57 -0
- package/dist/results/encoder.js +1179 -0
- package/dist/results/encoder.js.map +1 -0
- package/dist/results/mcp.d.ts +95 -0
- package/dist/results/mcp.js +656 -0
- package/dist/results/mcp.js.map +1 -0
- package/dist/results/media.d.ts +19 -0
- package/dist/results/media.js +301 -0
- package/dist/results/media.js.map +1 -0
- package/dist/results/normalize.d.ts +29 -0
- package/dist/results/normalize.js +464 -0
- package/dist/results/normalize.js.map +1 -0
- package/dist/runtime/control-scripts.d.ts +23 -0
- package/dist/runtime/control-scripts.js +242 -0
- package/dist/runtime/control-scripts.js.map +1 -0
- package/dist/runtime/engine.d.ts +177 -0
- package/dist/runtime/engine.js +1159 -0
- package/dist/runtime/engine.js.map +1 -0
- package/dist/runtime/globals.d.ts +1 -0
- package/dist/runtime/globals.js +31 -0
- package/dist/runtime/globals.js.map +1 -0
- package/dist/runtime/material-retention.d.ts +34 -0
- package/dist/runtime/material-retention.js +671 -0
- package/dist/runtime/material-retention.js.map +1 -0
- package/dist/runtime/modules.d.ts +50 -0
- package/dist/runtime/modules.js +320 -0
- package/dist/runtime/modules.js.map +1 -0
- package/dist/runtime/names.d.ts +2 -0
- package/dist/runtime/names.js +22 -0
- package/dist/runtime/names.js.map +1 -0
- package/dist/runtime/operations.d.ts +20 -0
- package/dist/runtime/operations.js +137 -0
- package/dist/runtime/operations.js.map +1 -0
- package/dist/runtime/paths.d.ts +3 -0
- package/dist/runtime/paths.js +38 -0
- package/dist/runtime/paths.js.map +1 -0
- package/dist/runtime/promises.d.ts +9 -0
- package/dist/runtime/promises.js +78 -0
- package/dist/runtime/promises.js.map +1 -0
- package/dist/runtime/retention.d.ts +88 -0
- package/dist/runtime/retention.js +735 -0
- package/dist/runtime/retention.js.map +1 -0
- package/dist/runtime/run-log.d.ts +30 -0
- package/dist/runtime/run-log.js +207 -0
- package/dist/runtime/run-log.js.map +1 -0
- package/dist/runtime/scripts.d.ts +84 -0
- package/dist/runtime/scripts.js +387 -0
- package/dist/runtime/scripts.js.map +1 -0
- package/dist/runtime/tasks.d.ts +54 -0
- package/dist/runtime/tasks.js +290 -0
- package/dist/runtime/tasks.js.map +1 -0
- package/dist/sdk/maintenance.d.ts +3 -0
- package/dist/sdk/maintenance.js +80 -0
- package/dist/sdk/maintenance.js.map +1 -0
- package/dist/sdk/output-extension.d.ts +3 -0
- package/dist/sdk/output-extension.js +44 -0
- package/dist/sdk/output-extension.js.map +1 -0
- package/dist/sdk/output.d.ts +52 -0
- package/dist/sdk/output.js +350 -0
- package/dist/sdk/output.js.map +1 -0
- package/dist/sdk/runtime.d.ts +3 -0
- package/dist/sdk/runtime.js +26 -0
- package/dist/sdk/runtime.js.map +1 -0
- package/dist/sdk/sh.d.ts +3 -0
- package/dist/sdk/sh.js +384 -0
- package/dist/sdk/sh.js.map +1 -0
- package/dist/sdk/state.d.ts +2 -0
- package/dist/sdk/state.js +69 -0
- package/dist/sdk/state.js.map +1 -0
- package/dist/sdk/transfer.d.ts +3 -0
- package/dist/sdk/transfer.js +141 -0
- package/dist/sdk/transfer.js.map +1 -0
- package/dist/services/extensions.d.ts +19 -0
- package/dist/services/extensions.js +183 -0
- package/dist/services/extensions.js.map +1 -0
- package/dist/services/state.d.ts +37 -0
- package/dist/services/state.js +125 -0
- package/dist/services/state.js.map +1 -0
- package/dist/services/transfer.d.ts +86 -0
- package/dist/services/transfer.js +948 -0
- package/dist/services/transfer.js.map +1 -0
- package/dist/storage/schema.d.ts +8 -0
- package/dist/storage/schema.js +241 -0
- package/dist/storage/schema.js.map +1 -0
- package/dist/storage/sqlite.d.ts +241 -0
- package/dist/storage/sqlite.js +1855 -0
- package/dist/storage/sqlite.js.map +1 -0
- package/dist/storage/transfers.d.ts +90 -0
- package/dist/storage/transfers.js +2 -0
- package/dist/storage/transfers.js.map +1 -0
- package/dist/transfer/io.d.ts +74 -0
- package/dist/transfer/io.js +425 -0
- package/dist/transfer/io.js.map +1 -0
- package/dist/transfer/offers.d.ts +72 -0
- package/dist/transfer/offers.js +380 -0
- package/dist/transfer/offers.js.map +1 -0
- package/dist/transfer/stream-slots.d.ts +12 -0
- package/dist/transfer/stream-slots.js +28 -0
- package/dist/transfer/stream-slots.js.map +1 -0
- package/dist/work/catalog.d.ts +43 -0
- package/dist/work/catalog.js +198 -0
- package/dist/work/catalog.js.map +1 -0
- package/dist/work/discovery.d.ts +70 -0
- package/dist/work/discovery.js +465 -0
- package/dist/work/discovery.js.map +1 -0
- package/dist/work/service.d.ts +83 -0
- package/dist/work/service.js +703 -0
- package/dist/work/service.js.map +1 -0
- package/package.json +66 -4
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.nexum.local/agent/v2/model/agent.run.get.output.schema.json",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"run": {
|
|
9
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
|
|
10
|
+
},
|
|
11
|
+
"data": {},
|
|
12
|
+
"wait": {
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Wait"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "null"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"conversions": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object"
|
|
26
|
+
},
|
|
27
|
+
"maxItems": 1000
|
|
28
|
+
},
|
|
29
|
+
"delivery": {
|
|
30
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MCPDelivery"
|
|
31
|
+
},
|
|
32
|
+
"mcpResults": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object"
|
|
36
|
+
},
|
|
37
|
+
"maxItems": 1000
|
|
38
|
+
},
|
|
39
|
+
"operations": {
|
|
40
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Items"
|
|
41
|
+
},
|
|
42
|
+
"resources": {
|
|
43
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Items"
|
|
44
|
+
},
|
|
45
|
+
"observedAt": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "date-time",
|
|
48
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
|
|
49
|
+
},
|
|
50
|
+
"code": {
|
|
51
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TextPage"
|
|
52
|
+
},
|
|
53
|
+
"input": {},
|
|
54
|
+
"logs": {
|
|
55
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TextPage"
|
|
56
|
+
},
|
|
57
|
+
"accepted": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"unavailable": {
|
|
61
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Error"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": ["run"],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"error": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"code": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"maxLength": 256
|
|
77
|
+
},
|
|
78
|
+
"message": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"maxLength": 4096
|
|
81
|
+
},
|
|
82
|
+
"retryable": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
"details": {
|
|
86
|
+
"type": "object"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["code", "message", "retryable"],
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
},
|
|
92
|
+
"run": {
|
|
93
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": ["error"],
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.nexum.local/agent/v2/model/agent.run.input.input.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"agentId": {
|
|
7
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
8
|
+
},
|
|
9
|
+
"runId": {
|
|
10
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
11
|
+
},
|
|
12
|
+
"waitId": {
|
|
13
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
14
|
+
},
|
|
15
|
+
"input": {},
|
|
16
|
+
"attachments": {
|
|
17
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/attachments"
|
|
18
|
+
},
|
|
19
|
+
"waitMs": {
|
|
20
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/waitMs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"agentId",
|
|
25
|
+
"runId",
|
|
26
|
+
"waitId",
|
|
27
|
+
"input"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.nexum.local/agent/v2/model/agent.run.input.output.schema.json",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"run": {
|
|
9
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
|
|
10
|
+
},
|
|
11
|
+
"data": {},
|
|
12
|
+
"wait": {
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Wait"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "null"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"conversions": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object"
|
|
26
|
+
},
|
|
27
|
+
"maxItems": 1000
|
|
28
|
+
},
|
|
29
|
+
"delivery": {
|
|
30
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MCPDelivery"
|
|
31
|
+
},
|
|
32
|
+
"mcpResults": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object"
|
|
36
|
+
},
|
|
37
|
+
"maxItems": 1000
|
|
38
|
+
},
|
|
39
|
+
"operations": {
|
|
40
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Items"
|
|
41
|
+
},
|
|
42
|
+
"resources": {
|
|
43
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Items"
|
|
44
|
+
},
|
|
45
|
+
"observedAt": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "date-time",
|
|
48
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
|
|
49
|
+
},
|
|
50
|
+
"code": {
|
|
51
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TextPage"
|
|
52
|
+
},
|
|
53
|
+
"input": {},
|
|
54
|
+
"logs": {
|
|
55
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TextPage"
|
|
56
|
+
},
|
|
57
|
+
"accepted": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"unavailable": {
|
|
61
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Error"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": ["run"],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"error": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"code": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"maxLength": 256
|
|
77
|
+
},
|
|
78
|
+
"message": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"maxLength": 4096
|
|
81
|
+
},
|
|
82
|
+
"retryable": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
"details": {
|
|
86
|
+
"type": "object"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["code", "message", "retryable"],
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
},
|
|
92
|
+
"run": {
|
|
93
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": ["error"],
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.nexum.local/agent/v2/model/agent.run.list.input.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"agentId": {
|
|
7
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
8
|
+
},
|
|
9
|
+
"status": {
|
|
10
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/status"
|
|
11
|
+
},
|
|
12
|
+
"scriptName": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"maxLength": 256
|
|
16
|
+
},
|
|
17
|
+
"source": {
|
|
18
|
+
"enum": [
|
|
19
|
+
"inline",
|
|
20
|
+
"named",
|
|
21
|
+
"history"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"projectId": {
|
|
25
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
26
|
+
},
|
|
27
|
+
"contextId": {
|
|
28
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
29
|
+
},
|
|
30
|
+
"from": {
|
|
31
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/time"
|
|
32
|
+
},
|
|
33
|
+
"to": {
|
|
34
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/time"
|
|
35
|
+
},
|
|
36
|
+
"limit": {
|
|
37
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/limit"
|
|
38
|
+
},
|
|
39
|
+
"cursor": {
|
|
40
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/cursor"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"agentId"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.nexum.local/agent/v2/model/agent.run.list.output.schema.json",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/operations.schema.json#/$defs/agent.run.list.output"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"error": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"code": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"maxLength": 256
|
|
18
|
+
},
|
|
19
|
+
"message": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
},
|
|
23
|
+
"retryable": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
26
|
+
"details": {
|
|
27
|
+
"type": "object"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["code", "message", "retryable"],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
33
|
+
"run": {
|
|
34
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["error"],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.nexum.local/agent/v2/model/agent.run.start.input.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"contextId": {
|
|
7
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
8
|
+
},
|
|
9
|
+
"script": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 1048576
|
|
13
|
+
},
|
|
14
|
+
"scriptName": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"maxLength": 256
|
|
18
|
+
},
|
|
19
|
+
"replayRunId": {
|
|
20
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
|
|
21
|
+
},
|
|
22
|
+
"input": {},
|
|
23
|
+
"attachments": {
|
|
24
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/attachments"
|
|
25
|
+
},
|
|
26
|
+
"requestId": {
|
|
27
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/requestId"
|
|
28
|
+
},
|
|
29
|
+
"pwd": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 8192
|
|
33
|
+
},
|
|
34
|
+
"waitMs": {
|
|
35
|
+
"$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/waitMs"
|
|
36
|
+
},
|
|
37
|
+
"timeoutMs": {
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": 1,
|
|
40
|
+
"maximum": 9007199254740991
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"contextId"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"oneOf": [
|
|
48
|
+
{
|
|
49
|
+
"required": [
|
|
50
|
+
"script"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"script": {}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"required": [
|
|
58
|
+
"scriptName"
|
|
59
|
+
],
|
|
60
|
+
"properties": {
|
|
61
|
+
"scriptName": {}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"required": [
|
|
66
|
+
"replayRunId"
|
|
67
|
+
],
|
|
68
|
+
"properties": {
|
|
69
|
+
"replayRunId": {}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.nexum.local/agent/v2/model/agent.run.start.output.schema.json",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"run": {
|
|
9
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
|
|
10
|
+
},
|
|
11
|
+
"data": {},
|
|
12
|
+
"wait": {
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Wait"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "null"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"conversions": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object"
|
|
26
|
+
},
|
|
27
|
+
"maxItems": 1000
|
|
28
|
+
},
|
|
29
|
+
"delivery": {
|
|
30
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MCPDelivery"
|
|
31
|
+
},
|
|
32
|
+
"mcpResults": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object"
|
|
36
|
+
},
|
|
37
|
+
"maxItems": 1000
|
|
38
|
+
},
|
|
39
|
+
"operations": {
|
|
40
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Items"
|
|
41
|
+
},
|
|
42
|
+
"resources": {
|
|
43
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Items"
|
|
44
|
+
},
|
|
45
|
+
"observedAt": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "date-time",
|
|
48
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
|
|
49
|
+
},
|
|
50
|
+
"code": {
|
|
51
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TextPage"
|
|
52
|
+
},
|
|
53
|
+
"input": {},
|
|
54
|
+
"logs": {
|
|
55
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TextPage"
|
|
56
|
+
},
|
|
57
|
+
"accepted": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"unavailable": {
|
|
61
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Error"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": ["run"],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"error": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"code": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"maxLength": 256
|
|
77
|
+
},
|
|
78
|
+
"message": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"maxLength": 4096
|
|
81
|
+
},
|
|
82
|
+
"retryable": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
"details": {
|
|
86
|
+
"type": "object"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["code", "message", "retryable"],
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
},
|
|
92
|
+
"run": {
|
|
93
|
+
"$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": ["error"],
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|