@miao-ai/protocol 0.1.0
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 +21 -0
- package/dist/LICENSE-APACHE +201 -0
- package/dist/LICENSE-MIT +21 -0
- package/dist/codec.d.ts +30 -0
- package/dist/codec.d.ts.map +1 -0
- package/dist/codec.js +296 -0
- package/dist/codec.js.map +1 -0
- package/dist/generated/fixture.d.ts +336 -0
- package/dist/generated/fixture.d.ts.map +1 -0
- package/dist/generated/fixture.js +351 -0
- package/dist/generated/fixture.js.map +1 -0
- package/dist/generated/protocol.d.ts +110 -0
- package/dist/generated/protocol.d.ts.map +1 -0
- package/dist/generated/protocol.js +50 -0
- package/dist/generated/protocol.js.map +1 -0
- package/dist/generated/schema.d.ts +357 -0
- package/dist/generated/schema.d.ts.map +1 -0
- package/dist/generated/schema.js +511 -0
- package/dist/generated/schema.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/fixtures/runtime-v1.fixture.json +349 -0
- package/package.json +49 -0
- package/schemas/runtime-v1.schema.json +508 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
{
|
|
2
|
+
"request": {
|
|
3
|
+
"type": "request",
|
|
4
|
+
"protocol": "miao.runtime/v1",
|
|
5
|
+
"requestId": "describe-1",
|
|
6
|
+
"operation": "runtime.describe",
|
|
7
|
+
"payload": {}
|
|
8
|
+
},
|
|
9
|
+
"operationRequests": {
|
|
10
|
+
"runtime.describe": {
|
|
11
|
+
"type": "request",
|
|
12
|
+
"protocol": "miao.runtime/v1",
|
|
13
|
+
"requestId": "operation-001",
|
|
14
|
+
"operation": "runtime.describe",
|
|
15
|
+
"payload": {}
|
|
16
|
+
},
|
|
17
|
+
"apps.register": {
|
|
18
|
+
"type": "request",
|
|
19
|
+
"protocol": "miao.runtime/v1",
|
|
20
|
+
"requestId": "operation-002",
|
|
21
|
+
"operation": "apps.register",
|
|
22
|
+
"payload": {}
|
|
23
|
+
},
|
|
24
|
+
"apps.list": {
|
|
25
|
+
"type": "request",
|
|
26
|
+
"protocol": "miao.runtime/v1",
|
|
27
|
+
"requestId": "operation-003",
|
|
28
|
+
"operation": "apps.list",
|
|
29
|
+
"payload": {}
|
|
30
|
+
},
|
|
31
|
+
"agents.list": {
|
|
32
|
+
"type": "request",
|
|
33
|
+
"protocol": "miao.runtime/v1",
|
|
34
|
+
"requestId": "operation-004",
|
|
35
|
+
"operation": "agents.list",
|
|
36
|
+
"payload": {}
|
|
37
|
+
},
|
|
38
|
+
"agents.launch": {
|
|
39
|
+
"type": "request",
|
|
40
|
+
"protocol": "miao.runtime/v1",
|
|
41
|
+
"requestId": "operation-005",
|
|
42
|
+
"operation": "agents.launch",
|
|
43
|
+
"payload": {}
|
|
44
|
+
},
|
|
45
|
+
"runs.start": {
|
|
46
|
+
"type": "request",
|
|
47
|
+
"protocol": "miao.runtime/v1",
|
|
48
|
+
"requestId": "operation-006",
|
|
49
|
+
"operation": "runs.start",
|
|
50
|
+
"payload": {}
|
|
51
|
+
},
|
|
52
|
+
"runs.get": {
|
|
53
|
+
"type": "request",
|
|
54
|
+
"protocol": "miao.runtime/v1",
|
|
55
|
+
"requestId": "operation-007",
|
|
56
|
+
"operation": "runs.get",
|
|
57
|
+
"payload": {}
|
|
58
|
+
},
|
|
59
|
+
"runs.pause": {
|
|
60
|
+
"type": "request",
|
|
61
|
+
"protocol": "miao.runtime/v1",
|
|
62
|
+
"requestId": "operation-008",
|
|
63
|
+
"operation": "runs.pause",
|
|
64
|
+
"payload": {}
|
|
65
|
+
},
|
|
66
|
+
"runs.resume": {
|
|
67
|
+
"type": "request",
|
|
68
|
+
"protocol": "miao.runtime/v1",
|
|
69
|
+
"requestId": "operation-009",
|
|
70
|
+
"operation": "runs.resume",
|
|
71
|
+
"payload": {}
|
|
72
|
+
},
|
|
73
|
+
"runs.cancel": {
|
|
74
|
+
"type": "request",
|
|
75
|
+
"protocol": "miao.runtime/v1",
|
|
76
|
+
"requestId": "operation-010",
|
|
77
|
+
"operation": "runs.cancel",
|
|
78
|
+
"payload": {}
|
|
79
|
+
},
|
|
80
|
+
"runs.signal": {
|
|
81
|
+
"type": "request",
|
|
82
|
+
"protocol": "miao.runtime/v1",
|
|
83
|
+
"requestId": "operation-011",
|
|
84
|
+
"operation": "runs.signal",
|
|
85
|
+
"payload": {}
|
|
86
|
+
},
|
|
87
|
+
"events.subscribe": {
|
|
88
|
+
"type": "request",
|
|
89
|
+
"protocol": "miao.runtime/v1",
|
|
90
|
+
"requestId": "operation-012",
|
|
91
|
+
"operation": "events.subscribe",
|
|
92
|
+
"payload": {}
|
|
93
|
+
},
|
|
94
|
+
"events.unsubscribe": {
|
|
95
|
+
"type": "request",
|
|
96
|
+
"protocol": "miao.runtime/v1",
|
|
97
|
+
"requestId": "operation-013",
|
|
98
|
+
"operation": "events.unsubscribe",
|
|
99
|
+
"payload": {}
|
|
100
|
+
},
|
|
101
|
+
"approvals.list": {
|
|
102
|
+
"type": "request",
|
|
103
|
+
"protocol": "miao.runtime/v1",
|
|
104
|
+
"requestId": "operation-014",
|
|
105
|
+
"operation": "approvals.list",
|
|
106
|
+
"payload": {}
|
|
107
|
+
},
|
|
108
|
+
"approvals.decide": {
|
|
109
|
+
"type": "request",
|
|
110
|
+
"protocol": "miao.runtime/v1",
|
|
111
|
+
"requestId": "operation-015",
|
|
112
|
+
"operation": "approvals.decide",
|
|
113
|
+
"payload": {}
|
|
114
|
+
},
|
|
115
|
+
"capabilities.register": {
|
|
116
|
+
"type": "request",
|
|
117
|
+
"protocol": "miao.runtime/v1",
|
|
118
|
+
"requestId": "operation-016",
|
|
119
|
+
"operation": "capabilities.register",
|
|
120
|
+
"payload": {}
|
|
121
|
+
},
|
|
122
|
+
"capabilities.renew": {
|
|
123
|
+
"type": "request",
|
|
124
|
+
"protocol": "miao.runtime/v1",
|
|
125
|
+
"requestId": "operation-017",
|
|
126
|
+
"operation": "capabilities.renew",
|
|
127
|
+
"payload": {}
|
|
128
|
+
},
|
|
129
|
+
"capabilities.unregister": {
|
|
130
|
+
"type": "request",
|
|
131
|
+
"protocol": "miao.runtime/v1",
|
|
132
|
+
"requestId": "operation-018",
|
|
133
|
+
"operation": "capabilities.unregister",
|
|
134
|
+
"payload": {}
|
|
135
|
+
},
|
|
136
|
+
"state.get": {
|
|
137
|
+
"type": "request",
|
|
138
|
+
"protocol": "miao.runtime/v1",
|
|
139
|
+
"requestId": "operation-019",
|
|
140
|
+
"operation": "state.get",
|
|
141
|
+
"payload": {}
|
|
142
|
+
},
|
|
143
|
+
"state.put": {
|
|
144
|
+
"type": "request",
|
|
145
|
+
"protocol": "miao.runtime/v1",
|
|
146
|
+
"requestId": "operation-020",
|
|
147
|
+
"operation": "state.put",
|
|
148
|
+
"payload": {}
|
|
149
|
+
},
|
|
150
|
+
"memory.list": {
|
|
151
|
+
"type": "request",
|
|
152
|
+
"protocol": "miao.runtime/v1",
|
|
153
|
+
"requestId": "operation-021",
|
|
154
|
+
"operation": "memory.list",
|
|
155
|
+
"payload": {}
|
|
156
|
+
},
|
|
157
|
+
"memory.remember": {
|
|
158
|
+
"type": "request",
|
|
159
|
+
"protocol": "miao.runtime/v1",
|
|
160
|
+
"requestId": "operation-022",
|
|
161
|
+
"operation": "memory.remember",
|
|
162
|
+
"payload": {}
|
|
163
|
+
},
|
|
164
|
+
"memory.forget": {
|
|
165
|
+
"type": "request",
|
|
166
|
+
"protocol": "miao.runtime/v1",
|
|
167
|
+
"requestId": "operation-023",
|
|
168
|
+
"operation": "memory.forget",
|
|
169
|
+
"payload": {}
|
|
170
|
+
},
|
|
171
|
+
"artifacts.list": {
|
|
172
|
+
"type": "request",
|
|
173
|
+
"protocol": "miao.runtime/v1",
|
|
174
|
+
"requestId": "operation-024",
|
|
175
|
+
"operation": "artifacts.list",
|
|
176
|
+
"payload": {}
|
|
177
|
+
},
|
|
178
|
+
"artifacts.get": {
|
|
179
|
+
"type": "request",
|
|
180
|
+
"protocol": "miao.runtime/v1",
|
|
181
|
+
"requestId": "operation-025",
|
|
182
|
+
"operation": "artifacts.get",
|
|
183
|
+
"payload": {}
|
|
184
|
+
},
|
|
185
|
+
"scheduler.list": {
|
|
186
|
+
"type": "request",
|
|
187
|
+
"protocol": "miao.runtime/v1",
|
|
188
|
+
"requestId": "operation-026",
|
|
189
|
+
"operation": "scheduler.list",
|
|
190
|
+
"payload": {}
|
|
191
|
+
},
|
|
192
|
+
"scheduler.create": {
|
|
193
|
+
"type": "request",
|
|
194
|
+
"protocol": "miao.runtime/v1",
|
|
195
|
+
"requestId": "operation-027",
|
|
196
|
+
"operation": "scheduler.create",
|
|
197
|
+
"payload": {}
|
|
198
|
+
},
|
|
199
|
+
"scheduler.pause": {
|
|
200
|
+
"type": "request",
|
|
201
|
+
"protocol": "miao.runtime/v1",
|
|
202
|
+
"requestId": "operation-028",
|
|
203
|
+
"operation": "scheduler.pause",
|
|
204
|
+
"payload": {}
|
|
205
|
+
},
|
|
206
|
+
"scheduler.resume": {
|
|
207
|
+
"type": "request",
|
|
208
|
+
"protocol": "miao.runtime/v1",
|
|
209
|
+
"requestId": "operation-029",
|
|
210
|
+
"operation": "scheduler.resume",
|
|
211
|
+
"payload": {}
|
|
212
|
+
},
|
|
213
|
+
"scheduler.delete": {
|
|
214
|
+
"type": "request",
|
|
215
|
+
"protocol": "miao.runtime/v1",
|
|
216
|
+
"requestId": "operation-030",
|
|
217
|
+
"operation": "scheduler.delete",
|
|
218
|
+
"payload": {}
|
|
219
|
+
},
|
|
220
|
+
"scheduler.history": {
|
|
221
|
+
"type": "request",
|
|
222
|
+
"protocol": "miao.runtime/v1",
|
|
223
|
+
"requestId": "operation-031",
|
|
224
|
+
"operation": "scheduler.history",
|
|
225
|
+
"payload": {}
|
|
226
|
+
},
|
|
227
|
+
"skills.list": {
|
|
228
|
+
"type": "request",
|
|
229
|
+
"protocol": "miao.runtime/v1",
|
|
230
|
+
"requestId": "operation-032",
|
|
231
|
+
"operation": "skills.list",
|
|
232
|
+
"payload": {}
|
|
233
|
+
},
|
|
234
|
+
"skills.reload": {
|
|
235
|
+
"type": "request",
|
|
236
|
+
"protocol": "miao.runtime/v1",
|
|
237
|
+
"requestId": "operation-033",
|
|
238
|
+
"operation": "skills.reload",
|
|
239
|
+
"payload": {}
|
|
240
|
+
},
|
|
241
|
+
"mcp.list": {
|
|
242
|
+
"type": "request",
|
|
243
|
+
"protocol": "miao.runtime/v1",
|
|
244
|
+
"requestId": "operation-034",
|
|
245
|
+
"operation": "mcp.list",
|
|
246
|
+
"payload": {}
|
|
247
|
+
},
|
|
248
|
+
"mcp.reload": {
|
|
249
|
+
"type": "request",
|
|
250
|
+
"protocol": "miao.runtime/v1",
|
|
251
|
+
"requestId": "operation-035",
|
|
252
|
+
"operation": "mcp.reload",
|
|
253
|
+
"payload": {}
|
|
254
|
+
},
|
|
255
|
+
"plugins.list": {
|
|
256
|
+
"type": "request",
|
|
257
|
+
"protocol": "miao.runtime/v1",
|
|
258
|
+
"requestId": "operation-036",
|
|
259
|
+
"operation": "plugins.list",
|
|
260
|
+
"payload": {}
|
|
261
|
+
},
|
|
262
|
+
"plugins.install": {
|
|
263
|
+
"type": "request",
|
|
264
|
+
"protocol": "miao.runtime/v1",
|
|
265
|
+
"requestId": "operation-037",
|
|
266
|
+
"operation": "plugins.install",
|
|
267
|
+
"payload": {}
|
|
268
|
+
},
|
|
269
|
+
"plugins.set_enabled": {
|
|
270
|
+
"type": "request",
|
|
271
|
+
"protocol": "miao.runtime/v1",
|
|
272
|
+
"requestId": "operation-038",
|
|
273
|
+
"operation": "plugins.set_enabled",
|
|
274
|
+
"payload": {}
|
|
275
|
+
},
|
|
276
|
+
"bindings.list": {
|
|
277
|
+
"type": "request",
|
|
278
|
+
"protocol": "miao.runtime/v1",
|
|
279
|
+
"requestId": "operation-039",
|
|
280
|
+
"operation": "bindings.list",
|
|
281
|
+
"payload": {}
|
|
282
|
+
},
|
|
283
|
+
"bindings.create": {
|
|
284
|
+
"type": "request",
|
|
285
|
+
"protocol": "miao.runtime/v1",
|
|
286
|
+
"requestId": "operation-040",
|
|
287
|
+
"operation": "bindings.create",
|
|
288
|
+
"payload": {}
|
|
289
|
+
},
|
|
290
|
+
"messages.deliver": {
|
|
291
|
+
"type": "request",
|
|
292
|
+
"protocol": "miao.runtime/v1",
|
|
293
|
+
"requestId": "operation-041",
|
|
294
|
+
"operation": "messages.deliver",
|
|
295
|
+
"payload": {}
|
|
296
|
+
},
|
|
297
|
+
"delegations.create": {
|
|
298
|
+
"type": "request",
|
|
299
|
+
"protocol": "miao.runtime/v1",
|
|
300
|
+
"requestId": "operation-042",
|
|
301
|
+
"operation": "delegations.create",
|
|
302
|
+
"payload": {}
|
|
303
|
+
},
|
|
304
|
+
"gateway.serve": {
|
|
305
|
+
"type": "request",
|
|
306
|
+
"protocol": "miao.runtime/v1",
|
|
307
|
+
"requestId": "operation-043",
|
|
308
|
+
"operation": "gateway.serve",
|
|
309
|
+
"payload": {}
|
|
310
|
+
},
|
|
311
|
+
"triggers.create": {
|
|
312
|
+
"type": "request",
|
|
313
|
+
"protocol": "miao.runtime/v1",
|
|
314
|
+
"requestId": "operation-044",
|
|
315
|
+
"operation": "triggers.create",
|
|
316
|
+
"payload": {}
|
|
317
|
+
},
|
|
318
|
+
"workbench.open": {
|
|
319
|
+
"type": "request",
|
|
320
|
+
"protocol": "miao.runtime/v1",
|
|
321
|
+
"requestId": "operation-045",
|
|
322
|
+
"operation": "workbench.open",
|
|
323
|
+
"payload": {}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"descriptor": {
|
|
327
|
+
"protocolVersion": "miao.runtime/v1",
|
|
328
|
+
"platformVersion": "0.22.0",
|
|
329
|
+
"mode": "process",
|
|
330
|
+
"profile": "minimal",
|
|
331
|
+
"operations": [
|
|
332
|
+
"runtime.describe",
|
|
333
|
+
"apps.register",
|
|
334
|
+
"apps.list"
|
|
335
|
+
],
|
|
336
|
+
"features": [
|
|
337
|
+
"app",
|
|
338
|
+
"agent_run",
|
|
339
|
+
"host_capabilities",
|
|
340
|
+
"policy",
|
|
341
|
+
"approval",
|
|
342
|
+
"cancellation",
|
|
343
|
+
"event_stream"
|
|
344
|
+
],
|
|
345
|
+
"transports": [
|
|
346
|
+
"stdio"
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@miao-ai/protocol",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Transport-neutral generated contracts and codecs for miao.runtime/v1",
|
|
5
|
+
"author": "Miao Contributors",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"miao",
|
|
8
|
+
"agent-runtime",
|
|
9
|
+
"protocol",
|
|
10
|
+
"typescript"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./schema": "./schemas/runtime-v1.schema.json",
|
|
20
|
+
"./fixture": "./fixtures/runtime-v1.fixture.json"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"schemas",
|
|
25
|
+
"fixtures"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc -p tsconfig.json",
|
|
29
|
+
"prepack": "node ../../scripts/prepare-package.mjs",
|
|
30
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
31
|
+
"test": "npm run build && node --test tests/*.test.mjs"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=20"
|
|
35
|
+
},
|
|
36
|
+
"license": "MIT OR Apache-2.0",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/KkSss999/Miao.git",
|
|
40
|
+
"directory": "sdk/typescript/packages/protocol"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/KkSss999/Miao#readme",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/KkSss999/Miao/issues"
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
}
|
|
49
|
+
}
|