@inf-monkeys-tech/monkeys 1.0.39 → 1.0.41

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.
Files changed (41) hide show
  1. package/lib/contracts/agent.d.ts +36 -27
  2. package/lib/contracts/agent.d.ts.map +1 -1
  3. package/lib/contracts/agent.js +18 -14
  4. package/lib/contracts/agent.js.map +1 -1
  5. package/lib/contracts/menu.d.ts +1 -1
  6. package/lib/contracts/page.d.ts +3 -3
  7. package/lib/contracts/semantic.d.ts +2 -2
  8. package/lib/contracts/tenant.d.ts +41 -6
  9. package/lib/contracts/tenant.d.ts.map +1 -1
  10. package/lib/contracts/tenant.js +10 -2
  11. package/lib/contracts/tenant.js.map +1 -1
  12. package/lib/contracts/trend.d.ts +259 -0
  13. package/lib/contracts/trend.d.ts.map +1 -1
  14. package/lib/contracts/trend.js +146 -1
  15. package/lib/contracts/trend.js.map +1 -1
  16. package/lib/esm/contracts/index.mjs +149 -11
  17. package/lib/esm/contracts/index.mjs.map +1 -1
  18. package/lib/esm/index.mjs +150 -11
  19. package/lib/esm/index.mjs.map +1 -1
  20. package/lib/esm/runtime/index.mjs +12 -6
  21. package/lib/esm/runtime/index.mjs.map +1 -1
  22. package/lib/esm/schemas/index.mjs +145 -6
  23. package/lib/esm/schemas/index.mjs.map +1 -1
  24. package/lib/json-schema/agent-session-view-model.schema.json +2 -2
  25. package/lib/json-schema/agent-workbench-composer-view-model.schema.json +4 -4
  26. package/lib/json-schema/agent-workbench-navigation-view-model.schema.json +2 -2
  27. package/lib/json-schema/index.json +1 -0
  28. package/lib/json-schema/radar-analysis-detail.schema.json +83 -0
  29. package/lib/json-schema/radar-analysis-run.schema.json +83 -0
  30. package/lib/json-schema/tenant-product-config.schema.json +34 -0
  31. package/lib/json-schema/tenant-runtime-config.schema.json +34 -0
  32. package/lib/json-schema/trend-radar-collection-item.schema.json +524 -0
  33. package/lib/schemas/index.d.ts +159 -17
  34. package/lib/schemas/index.d.ts.map +1 -1
  35. package/lib/schemas/index.js +22 -4
  36. package/lib/schemas/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/test/fixtures/{agent-session-chatbot.json → agent-session-chat.json} +22 -22
  39. package/test/fixtures/agent-session-kernel.json +1 -1
  40. package/test/fixtures/agent-session-scenarios.json +6 -6
  41. package/test/fixtures/{agent-session-agent.json → agent-session-work.json} +1 -1
@@ -0,0 +1,524 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "TrendRadarCollectionItem"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "number",
11
+ "const": 1
12
+ },
13
+ "selectionRef": {
14
+ "type": "object",
15
+ "properties": {
16
+ "kind": {
17
+ "type": "string",
18
+ "const": "radar-selection"
19
+ },
20
+ "id": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 256
24
+ },
25
+ "version": {
26
+ "anyOf": [
27
+ {
28
+ "type": "integer",
29
+ "exclusiveMinimum": 0,
30
+ "maximum": 9007199254740991
31
+ },
32
+ {
33
+ "type": "string",
34
+ "minLength": 1
35
+ }
36
+ ]
37
+ },
38
+ "ownerRepo": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 256
42
+ }
43
+ },
44
+ "required": [
45
+ "kind",
46
+ "id"
47
+ ],
48
+ "additionalProperties": false
49
+ },
50
+ "recipe": {
51
+ "type": "object",
52
+ "properties": {
53
+ "category": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "object",
57
+ "properties": {
58
+ "subjectRef": {
59
+ "type": "object",
60
+ "properties": {
61
+ "kind": {
62
+ "type": "string",
63
+ "const": "hotword"
64
+ },
65
+ "id": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "maxLength": 256
69
+ },
70
+ "version": {
71
+ "anyOf": [
72
+ {
73
+ "type": "integer",
74
+ "exclusiveMinimum": 0,
75
+ "maximum": 9007199254740991
76
+ },
77
+ {
78
+ "type": "string",
79
+ "minLength": 1
80
+ }
81
+ ]
82
+ },
83
+ "ownerRepo": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "maxLength": 256
87
+ }
88
+ },
89
+ "required": [
90
+ "kind",
91
+ "id"
92
+ ],
93
+ "additionalProperties": false
94
+ },
95
+ "label": {
96
+ "type": "string",
97
+ "minLength": 1,
98
+ "maxLength": 200
99
+ }
100
+ },
101
+ "required": [
102
+ "subjectRef",
103
+ "label"
104
+ ],
105
+ "additionalProperties": false
106
+ }
107
+ },
108
+ "design": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "object",
112
+ "properties": {
113
+ "subjectRef": {
114
+ "type": "object",
115
+ "properties": {
116
+ "kind": {
117
+ "type": "string",
118
+ "const": "hotword"
119
+ },
120
+ "id": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "maxLength": 256
124
+ },
125
+ "version": {
126
+ "anyOf": [
127
+ {
128
+ "type": "integer",
129
+ "exclusiveMinimum": 0,
130
+ "maximum": 9007199254740991
131
+ },
132
+ {
133
+ "type": "string",
134
+ "minLength": 1
135
+ }
136
+ ]
137
+ },
138
+ "ownerRepo": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 256
142
+ }
143
+ },
144
+ "required": [
145
+ "kind",
146
+ "id"
147
+ ],
148
+ "additionalProperties": false
149
+ },
150
+ "label": {
151
+ "type": "string",
152
+ "minLength": 1,
153
+ "maxLength": 200
154
+ }
155
+ },
156
+ "required": [
157
+ "subjectRef",
158
+ "label"
159
+ ],
160
+ "additionalProperties": false
161
+ }
162
+ },
163
+ "audience": {
164
+ "type": "array",
165
+ "items": {
166
+ "type": "object",
167
+ "properties": {
168
+ "subjectRef": {
169
+ "type": "object",
170
+ "properties": {
171
+ "kind": {
172
+ "type": "string",
173
+ "const": "hotword"
174
+ },
175
+ "id": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "maxLength": 256
179
+ },
180
+ "version": {
181
+ "anyOf": [
182
+ {
183
+ "type": "integer",
184
+ "exclusiveMinimum": 0,
185
+ "maximum": 9007199254740991
186
+ },
187
+ {
188
+ "type": "string",
189
+ "minLength": 1
190
+ }
191
+ ]
192
+ },
193
+ "ownerRepo": {
194
+ "type": "string",
195
+ "minLength": 1,
196
+ "maxLength": 256
197
+ }
198
+ },
199
+ "required": [
200
+ "kind",
201
+ "id"
202
+ ],
203
+ "additionalProperties": false
204
+ },
205
+ "label": {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "maxLength": 200
209
+ }
210
+ },
211
+ "required": [
212
+ "subjectRef",
213
+ "label"
214
+ ],
215
+ "additionalProperties": false
216
+ }
217
+ }
218
+ },
219
+ "required": [
220
+ "category",
221
+ "design",
222
+ "audience"
223
+ ],
224
+ "additionalProperties": false
225
+ },
226
+ "status": {
227
+ "type": "string",
228
+ "enum": [
229
+ "SAVED",
230
+ "QUEUED",
231
+ "RUNNING",
232
+ "SUCCEEDED",
233
+ "FAILED",
234
+ "CANCELLED",
235
+ "PARTIAL"
236
+ ]
237
+ },
238
+ "latestRunRef": {
239
+ "type": "object",
240
+ "properties": {
241
+ "kind": {
242
+ "type": "string",
243
+ "const": "radar-analysis-run"
244
+ },
245
+ "id": {
246
+ "type": "string",
247
+ "minLength": 1,
248
+ "maxLength": 256
249
+ },
250
+ "version": {
251
+ "anyOf": [
252
+ {
253
+ "type": "integer",
254
+ "exclusiveMinimum": 0,
255
+ "maximum": 9007199254740991
256
+ },
257
+ {
258
+ "type": "string",
259
+ "minLength": 1
260
+ }
261
+ ]
262
+ },
263
+ "ownerRepo": {
264
+ "type": "string",
265
+ "minLength": 1,
266
+ "maxLength": 256
267
+ }
268
+ },
269
+ "required": [
270
+ "kind",
271
+ "id"
272
+ ],
273
+ "additionalProperties": false
274
+ },
275
+ "decisionProjection": {
276
+ "type": "object",
277
+ "properties": {
278
+ "axes": {
279
+ "maxItems": 32,
280
+ "type": "array",
281
+ "items": {
282
+ "type": "object",
283
+ "properties": {
284
+ "key": {
285
+ "type": "string",
286
+ "minLength": 1,
287
+ "maxLength": 256
288
+ },
289
+ "label": {
290
+ "type": "string",
291
+ "minLength": 1,
292
+ "maxLength": 200
293
+ },
294
+ "value": {
295
+ "type": "number"
296
+ }
297
+ },
298
+ "required": [
299
+ "key",
300
+ "value"
301
+ ],
302
+ "additionalProperties": false
303
+ }
304
+ },
305
+ "overallScore": {
306
+ "type": "number"
307
+ },
308
+ "itemRank": {
309
+ "type": "number"
310
+ },
311
+ "sourceRefs": {
312
+ "type": "array",
313
+ "items": {
314
+ "type": "object",
315
+ "properties": {
316
+ "kind": {
317
+ "type": "string",
318
+ "minLength": 1,
319
+ "maxLength": 256
320
+ },
321
+ "id": {
322
+ "type": "string",
323
+ "minLength": 1,
324
+ "maxLength": 256
325
+ },
326
+ "version": {
327
+ "anyOf": [
328
+ {
329
+ "type": "integer",
330
+ "exclusiveMinimum": 0,
331
+ "maximum": 9007199254740991
332
+ },
333
+ {
334
+ "type": "string",
335
+ "minLength": 1
336
+ }
337
+ ]
338
+ },
339
+ "ownerRepo": {
340
+ "type": "string",
341
+ "minLength": 1,
342
+ "maxLength": 256
343
+ }
344
+ },
345
+ "required": [
346
+ "kind",
347
+ "id"
348
+ ],
349
+ "additionalProperties": false
350
+ }
351
+ },
352
+ "outputRefs": {
353
+ "type": "array",
354
+ "items": {
355
+ "type": "object",
356
+ "properties": {
357
+ "kind": {
358
+ "type": "string",
359
+ "minLength": 1,
360
+ "maxLength": 256
361
+ },
362
+ "id": {
363
+ "type": "string",
364
+ "minLength": 1,
365
+ "maxLength": 256
366
+ },
367
+ "version": {
368
+ "anyOf": [
369
+ {
370
+ "type": "integer",
371
+ "exclusiveMinimum": 0,
372
+ "maximum": 9007199254740991
373
+ },
374
+ {
375
+ "type": "string",
376
+ "minLength": 1
377
+ }
378
+ ]
379
+ },
380
+ "ownerRepo": {
381
+ "type": "string",
382
+ "minLength": 1,
383
+ "maxLength": 256
384
+ }
385
+ },
386
+ "required": [
387
+ "kind",
388
+ "id"
389
+ ],
390
+ "additionalProperties": false
391
+ }
392
+ }
393
+ },
394
+ "additionalProperties": false
395
+ },
396
+ "artifactProjection": {
397
+ "type": "object",
398
+ "properties": {
399
+ "artifactRef": {
400
+ "type": "object",
401
+ "properties": {
402
+ "kind": {
403
+ "type": "string",
404
+ "const": "artifact"
405
+ },
406
+ "id": {
407
+ "type": "string",
408
+ "minLength": 1,
409
+ "maxLength": 256
410
+ },
411
+ "version": {
412
+ "anyOf": [
413
+ {
414
+ "type": "integer",
415
+ "exclusiveMinimum": 0,
416
+ "maximum": 9007199254740991
417
+ },
418
+ {
419
+ "type": "string",
420
+ "minLength": 1
421
+ }
422
+ ]
423
+ },
424
+ "ownerRepo": {
425
+ "type": "string",
426
+ "minLength": 1,
427
+ "maxLength": 256
428
+ }
429
+ },
430
+ "required": [
431
+ "kind",
432
+ "id"
433
+ ],
434
+ "additionalProperties": false
435
+ },
436
+ "url": {
437
+ "type": "string",
438
+ "format": "uri"
439
+ },
440
+ "thumbnailUrl": {
441
+ "type": "string",
442
+ "format": "uri"
443
+ },
444
+ "mimeType": {
445
+ "type": "string",
446
+ "minLength": 1
447
+ },
448
+ "metadata": {
449
+ "type": "object",
450
+ "propertyNames": {
451
+ "type": "string"
452
+ },
453
+ "additionalProperties": {
454
+ "$ref": "#/$defs/__schema0"
455
+ }
456
+ }
457
+ },
458
+ "required": [
459
+ "artifactRef"
460
+ ],
461
+ "additionalProperties": false
462
+ },
463
+ "createdAt": {
464
+ "type": "string",
465
+ "format": "date-time",
466
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
467
+ },
468
+ "updatedAt": {
469
+ "type": "string",
470
+ "format": "date-time",
471
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
472
+ },
473
+ "generatedAt": {
474
+ "type": "string",
475
+ "format": "date-time",
476
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
477
+ }
478
+ },
479
+ "required": [
480
+ "contract",
481
+ "schemaVersion",
482
+ "selectionRef",
483
+ "recipe",
484
+ "status",
485
+ "createdAt",
486
+ "updatedAt"
487
+ ],
488
+ "additionalProperties": false,
489
+ "$defs": {
490
+ "__schema0": {
491
+ "anyOf": [
492
+ {
493
+ "type": "string"
494
+ },
495
+ {
496
+ "type": "number"
497
+ },
498
+ {
499
+ "type": "boolean"
500
+ },
501
+ {
502
+ "type": "null"
503
+ },
504
+ {
505
+ "type": "array",
506
+ "items": {
507
+ "$ref": "#/$defs/__schema0"
508
+ }
509
+ },
510
+ {
511
+ "type": "object",
512
+ "propertyNames": {
513
+ "type": "string"
514
+ },
515
+ "additionalProperties": {
516
+ "$ref": "#/$defs/__schema0"
517
+ }
518
+ }
519
+ ]
520
+ }
521
+ },
522
+ "$id": "https://schemas.infmonkeys.com/contracts/trend-radar-collection-item.schema.json",
523
+ "title": "trend-radar-collection-item"
524
+ }