@agentage/extension-probe 0.6.2 → 0.8.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.
@@ -2,6 +2,6 @@
2
2
  {
3
3
  "name": "echo",
4
4
  "element": "probe-echo",
5
- "module": "/ui/0.6.2/probe.js"
5
+ "module": "/ui/0.8.0/probe.js"
6
6
  }
7
7
  ]
package/openapi.json ADDED
@@ -0,0 +1,465 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "probe",
5
+ "version": "0.8.0"
6
+ },
7
+ "components": {
8
+ "securitySchemes": {
9
+ "pat": {
10
+ "type": "http",
11
+ "scheme": "bearer"
12
+ }
13
+ }
14
+ },
15
+ "paths": {
16
+ "/api/probe/echo": {
17
+ "get": {
18
+ "operationId": "echo",
19
+ "security": [
20
+ {
21
+ "pat": ["probe:read"]
22
+ }
23
+ ],
24
+ "parameters": [
25
+ {
26
+ "name": "msg",
27
+ "in": "query",
28
+ "required": true,
29
+ "schema": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 200
33
+ }
34
+ }
35
+ ],
36
+ "responses": {
37
+ "200": {
38
+ "description": "the envelope",
39
+ "content": {
40
+ "application/json": {
41
+ "schema": {
42
+ "type": "object",
43
+ "properties": {
44
+ "success": {
45
+ "type": "boolean",
46
+ "const": true
47
+ },
48
+ "data": {
49
+ "type": "object",
50
+ "properties": {
51
+ "msg": {
52
+ "type": "string"
53
+ },
54
+ "caller": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "required": ["msg", "caller"]
59
+ },
60
+ "meta": {
61
+ "type": "object",
62
+ "propertyNames": {
63
+ "type": "string"
64
+ },
65
+ "additionalProperties": {}
66
+ }
67
+ },
68
+ "required": ["success", "data"]
69
+ }
70
+ }
71
+ }
72
+ },
73
+ "400": {
74
+ "description": "VALIDATION_ERROR",
75
+ "content": {
76
+ "application/json": {
77
+ "schema": {
78
+ "type": "object",
79
+ "properties": {
80
+ "success": {
81
+ "type": "boolean",
82
+ "const": false
83
+ },
84
+ "error": {
85
+ "type": "object",
86
+ "properties": {
87
+ "code": {
88
+ "type": "string",
89
+ "pattern": "^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"
90
+ },
91
+ "message": {
92
+ "type": "string",
93
+ "minLength": 1
94
+ },
95
+ "agcid": {
96
+ "type": "string",
97
+ "pattern": "^[0-9a-f]{32}$"
98
+ },
99
+ "details": {
100
+ "anyOf": [
101
+ {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "object",
105
+ "properties": {
106
+ "field": {
107
+ "type": "string"
108
+ },
109
+ "message": {
110
+ "type": "string"
111
+ }
112
+ },
113
+ "required": ["field", "message"],
114
+ "additionalProperties": false
115
+ }
116
+ },
117
+ {
118
+ "type": "object",
119
+ "propertyNames": {
120
+ "type": "string"
121
+ },
122
+ "additionalProperties": {}
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ "required": ["code", "message", "agcid"],
128
+ "additionalProperties": false
129
+ }
130
+ },
131
+ "required": ["success", "error"],
132
+ "additionalProperties": false
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ },
140
+ "/api/probe/ticks": {
141
+ "get": {
142
+ "operationId": "ticks",
143
+ "security": [],
144
+ "parameters": [
145
+ {
146
+ "name": "limit",
147
+ "in": "query",
148
+ "required": false,
149
+ "schema": {
150
+ "default": 50,
151
+ "description": "page size; a limit above 200 is clamped to 200",
152
+ "type": "integer",
153
+ "minimum": 1,
154
+ "maximum": 9007199254740991
155
+ }
156
+ },
157
+ {
158
+ "name": "cursor",
159
+ "in": "query",
160
+ "required": false,
161
+ "schema": {
162
+ "type": "string",
163
+ "pattern": "^[A-Za-z0-9_-]{1,26}$"
164
+ }
165
+ }
166
+ ],
167
+ "responses": {
168
+ "200": {
169
+ "description": "the envelope",
170
+ "content": {
171
+ "application/json": {
172
+ "schema": {
173
+ "type": "object",
174
+ "properties": {
175
+ "success": {
176
+ "type": "boolean",
177
+ "const": true
178
+ },
179
+ "data": {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "object",
183
+ "properties": {
184
+ "id": {
185
+ "type": "string"
186
+ },
187
+ "job": {
188
+ "type": "string"
189
+ },
190
+ "tickedAt": {
191
+ "type": "string",
192
+ "format": "date-time",
193
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
194
+ }
195
+ },
196
+ "required": ["id", "job", "tickedAt"]
197
+ }
198
+ },
199
+ "meta": {
200
+ "type": "object",
201
+ "properties": {
202
+ "pagination": {
203
+ "type": "object",
204
+ "properties": {
205
+ "nextCursor": {
206
+ "description": "opaque; absent on the last page",
207
+ "type": "string"
208
+ },
209
+ "limit": {
210
+ "type": "integer",
211
+ "minimum": -9007199254740991,
212
+ "maximum": 9007199254740991
213
+ },
214
+ "total": {
215
+ "type": "integer",
216
+ "minimum": -9007199254740991,
217
+ "maximum": 9007199254740991
218
+ }
219
+ },
220
+ "required": ["limit", "total"]
221
+ }
222
+ },
223
+ "required": ["pagination"]
224
+ }
225
+ },
226
+ "required": ["success", "data"]
227
+ }
228
+ }
229
+ }
230
+ },
231
+ "400": {
232
+ "description": "VALIDATION_ERROR",
233
+ "content": {
234
+ "application/json": {
235
+ "schema": {
236
+ "type": "object",
237
+ "properties": {
238
+ "success": {
239
+ "type": "boolean",
240
+ "const": false
241
+ },
242
+ "error": {
243
+ "type": "object",
244
+ "properties": {
245
+ "code": {
246
+ "type": "string",
247
+ "pattern": "^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"
248
+ },
249
+ "message": {
250
+ "type": "string",
251
+ "minLength": 1
252
+ },
253
+ "agcid": {
254
+ "type": "string",
255
+ "pattern": "^[0-9a-f]{32}$"
256
+ },
257
+ "details": {
258
+ "anyOf": [
259
+ {
260
+ "type": "array",
261
+ "items": {
262
+ "type": "object",
263
+ "properties": {
264
+ "field": {
265
+ "type": "string"
266
+ },
267
+ "message": {
268
+ "type": "string"
269
+ }
270
+ },
271
+ "required": ["field", "message"],
272
+ "additionalProperties": false
273
+ }
274
+ },
275
+ {
276
+ "type": "object",
277
+ "propertyNames": {
278
+ "type": "string"
279
+ },
280
+ "additionalProperties": {}
281
+ }
282
+ ]
283
+ }
284
+ },
285
+ "required": ["code", "message", "agcid"],
286
+ "additionalProperties": false
287
+ }
288
+ },
289
+ "required": ["success", "error"],
290
+ "additionalProperties": false
291
+ }
292
+ }
293
+ }
294
+ }
295
+ }
296
+ }
297
+ },
298
+ "/api/probe/emit": {
299
+ "post": {
300
+ "operationId": "emit",
301
+ "security": [
302
+ {
303
+ "pat": ["probe:write"]
304
+ }
305
+ ],
306
+ "requestBody": {
307
+ "required": false,
308
+ "content": {
309
+ "application/json": {
310
+ "schema": {
311
+ "type": "object",
312
+ "properties": {
313
+ "fail": {
314
+ "type": "boolean"
315
+ },
316
+ "exit": {
317
+ "type": "boolean"
318
+ }
319
+ },
320
+ "additionalProperties": false
321
+ }
322
+ }
323
+ }
324
+ },
325
+ "responses": {
326
+ "200": {
327
+ "description": "the envelope",
328
+ "content": {
329
+ "application/json": {
330
+ "schema": {
331
+ "type": "object",
332
+ "properties": {
333
+ "success": {
334
+ "type": "boolean",
335
+ "const": true
336
+ },
337
+ "data": {
338
+ "type": "object",
339
+ "properties": {
340
+ "emitted": {
341
+ "type": "array",
342
+ "items": {
343
+ "type": "string",
344
+ "enum": ["log", "span", "event"]
345
+ }
346
+ }
347
+ },
348
+ "required": ["emitted"]
349
+ },
350
+ "meta": {
351
+ "type": "object",
352
+ "propertyNames": {
353
+ "type": "string"
354
+ },
355
+ "additionalProperties": {}
356
+ }
357
+ },
358
+ "required": ["success", "data"]
359
+ }
360
+ }
361
+ }
362
+ },
363
+ "202": {
364
+ "description": "the envelope",
365
+ "content": {
366
+ "application/json": {
367
+ "schema": {
368
+ "type": "object",
369
+ "properties": {
370
+ "success": {
371
+ "type": "boolean",
372
+ "const": true
373
+ },
374
+ "data": {
375
+ "type": "object",
376
+ "properties": {
377
+ "exiting": {
378
+ "type": "boolean",
379
+ "const": true
380
+ }
381
+ },
382
+ "required": ["exiting"]
383
+ },
384
+ "meta": {
385
+ "type": "object",
386
+ "propertyNames": {
387
+ "type": "string"
388
+ },
389
+ "additionalProperties": {}
390
+ }
391
+ },
392
+ "required": ["success", "data"]
393
+ }
394
+ }
395
+ }
396
+ },
397
+ "400": {
398
+ "description": "VALIDATION_ERROR",
399
+ "content": {
400
+ "application/json": {
401
+ "schema": {
402
+ "type": "object",
403
+ "properties": {
404
+ "success": {
405
+ "type": "boolean",
406
+ "const": false
407
+ },
408
+ "error": {
409
+ "type": "object",
410
+ "properties": {
411
+ "code": {
412
+ "type": "string",
413
+ "pattern": "^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"
414
+ },
415
+ "message": {
416
+ "type": "string",
417
+ "minLength": 1
418
+ },
419
+ "agcid": {
420
+ "type": "string",
421
+ "pattern": "^[0-9a-f]{32}$"
422
+ },
423
+ "details": {
424
+ "anyOf": [
425
+ {
426
+ "type": "array",
427
+ "items": {
428
+ "type": "object",
429
+ "properties": {
430
+ "field": {
431
+ "type": "string"
432
+ },
433
+ "message": {
434
+ "type": "string"
435
+ }
436
+ },
437
+ "required": ["field", "message"],
438
+ "additionalProperties": false
439
+ }
440
+ },
441
+ {
442
+ "type": "object",
443
+ "propertyNames": {
444
+ "type": "string"
445
+ },
446
+ "additionalProperties": {}
447
+ }
448
+ ]
449
+ }
450
+ },
451
+ "required": ["code", "message", "agcid"],
452
+ "additionalProperties": false
453
+ }
454
+ },
455
+ "required": ["success", "error"],
456
+ "additionalProperties": false
457
+ }
458
+ }
459
+ }
460
+ }
461
+ }
462
+ }
463
+ }
464
+ }
465
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentage/extension-probe",
3
- "version": "0.6.2",
3
+ "version": "0.8.0",
4
4
  "description": "The probe extension: one of every agentage part kind, the template every later extension copies",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "engines": {
19
19
  "node": ">=22",
20
- "agentage": "^0.12"
20
+ "agentage": "^0.15"
21
21
  },
22
22
  "agentage": {
23
23
  "id": "probe",
@@ -44,6 +44,10 @@
44
44
  }
45
45
  ],
46
46
  "settings": {
47
+ "echo.prefix": {
48
+ "type": "string",
49
+ "default": ""
50
+ },
47
51
  "mcp.listing": {
48
52
  "type": "string",
49
53
  "enum": [
@@ -61,6 +65,8 @@
61
65
  "files": [
62
66
  "dist",
63
67
  "migrations",
68
+ "openapi.json",
69
+ "probe.mcpc.json",
64
70
  "!dist/**/*.test.*"
65
71
  ],
66
72
  "scripts": {
@@ -76,21 +82,21 @@
76
82
  "prepublishOnly": "npm run verify"
77
83
  },
78
84
  "dependencies": {
79
- "@agentage/extension": "0.12.3",
85
+ "@agentage/extension": "^0.15.1",
80
86
  "express": "^5.1.0",
81
87
  "zod": "^4.2.0"
82
88
  },
83
89
  "devDependencies": {
84
- "@agentage/cli": "0.50.4",
90
+ "@agentage/cli": "0.53.0",
85
91
  "@agentage/widget": "0.3.0",
86
92
  "@axe-core/playwright": "4.14.0",
87
- "@electric-sql/pglite": "0.5.15",
88
- "@playwright/test": "1.64.1",
93
+ "@electric-sql/pglite": "0.5.16",
94
+ "@playwright/test": "1.65.0",
89
95
  "@types/express": "5.0.6",
90
96
  "@types/node": "26.6.6",
91
97
  "@types/react": "19.3.0",
92
- "@typescript-eslint/eslint-plugin": "8.72.1",
93
- "@typescript-eslint/parser": "8.72.1",
98
+ "@typescript-eslint/eslint-plugin": "8.72.2",
99
+ "@typescript-eslint/parser": "8.72.2",
94
100
  "@vitest/coverage-v8": "5.1.0",
95
101
  "eslint": "10.14.0",
96
102
  "eslint-config-prettier": "10.1.8",
@@ -0,0 +1,34 @@
1
+ {
2
+ "serverInfo": {
3
+ "name": "agentage-probe",
4
+ "version": "0.8.0"
5
+ },
6
+ "tools": [
7
+ {
8
+ "description": "Echo a message back",
9
+ "inputSchema": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "properties": {
12
+ "msg": {
13
+ "maxLength": 200,
14
+ "type": "string"
15
+ }
16
+ },
17
+ "required": ["msg"],
18
+ "type": "object"
19
+ },
20
+ "name": "probe__echo",
21
+ "outputSchema": {
22
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "msg": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "required": ["msg"],
30
+ "type": "object"
31
+ }
32
+ }
33
+ ]
34
+ }