@firedrill-tools/unified 0.1.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.
Files changed (61) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +242 -0
  3. package/firedrill/agent.target.json +17 -0
  4. package/firedrill/baseline.scenario.json +5 -0
  5. package/firedrill/bounds.scenario.json +23 -0
  6. package/firedrill/conformance.suite.json +23 -0
  7. package/firedrill/large-channels.scenario.json +4251 -0
  8. package/firedrill/many-workspaces.scenario.json +1623 -0
  9. package/firedrill/rate-limited.scenario.json +11 -0
  10. package/firedrill/tools/unified/behavior.mjs +69 -0
  11. package/firedrill/tools/unified/lib/assoc.mjs +61 -0
  12. package/firedrill/tools/unified/lib/enums.mjs +14 -0
  13. package/firedrill/tools/unified/lib/errors.mjs +50 -0
  14. package/firedrill/tools/unified/lib/events.mjs +27 -0
  15. package/firedrill/tools/unified/lib/identity.mjs +59 -0
  16. package/firedrill/tools/unified/lib/query.mjs +154 -0
  17. package/firedrill/tools/unified/lib/shapes.mjs +176 -0
  18. package/firedrill/tools/unified/lib/store.mjs +75 -0
  19. package/firedrill/tools/unified/lib/time.mjs +59 -0
  20. package/firedrill/tools/unified/lib/util.mjs +92 -0
  21. package/firedrill/tools/unified/lib/validate.mjs +114 -0
  22. package/firedrill/tools/unified/lib/wire.mjs +120 -0
  23. package/firedrill/tools/unified/ops/channels.mjs +45 -0
  24. package/firedrill/tools/unified/ops/connections.mjs +151 -0
  25. package/firedrill/tools/unified/ops/crm.mjs +126 -0
  26. package/firedrill/tools/unified/ops/deals.mjs +123 -0
  27. package/firedrill/tools/unified/ops/messages.mjs +133 -0
  28. package/firedrill/tools/unified/ops/pipelines.mjs +20 -0
  29. package/firedrill/tools/unified/ops/resource.mjs +114 -0
  30. package/firedrill/tools/unified/unified.tool.json +14068 -0
  31. package/firedrill/unified-bounds.drill.json +148 -0
  32. package/firedrill/unified-connections-flow.drill.json +226 -0
  33. package/firedrill/unified-crm-flow.drill.json +576 -0
  34. package/firedrill/unified-denied.drill.json +83 -0
  35. package/firedrill/unified-error-coverage.drill.json +528 -0
  36. package/firedrill/unified-fresh-actor.drill.json +83 -0
  37. package/firedrill/unified-invalid-workspace.drill.json +933 -0
  38. package/firedrill/unified-large-channels.drill.json +68 -0
  39. package/firedrill/unified-many-workspaces.drill.json +943 -0
  40. package/firedrill/unified-mcp-core-aliases.drill.json +113 -0
  41. package/firedrill/unified-messaging-flow.drill.json +326 -0
  42. package/firedrill/unified-rate-limited.drill.json +933 -0
  43. package/firedrill/unified-scoped-token.drill.json +113 -0
  44. package/firedrill/unified-size-bounds.drill.json +263 -0
  45. package/firedrill/unified-write-committed-lost.drill.json +107 -0
  46. package/firedrill/unified-write-unavailable.drill.json +528 -0
  47. package/firedrill/world.json +2958 -0
  48. package/firedrill/write-committed-lost.scenario.json +11 -0
  49. package/firedrill/write-unavailable.scenario.json +11 -0
  50. package/firedrill.json +5 -0
  51. package/package.json +52 -0
  52. package/starter.json +2446 -0
  53. package/test/conformance.mjs +39 -0
  54. package/test/flows/connections.mjs +87 -0
  55. package/test/flows/coverage.mjs +64 -0
  56. package/test/flows/crm.mjs +124 -0
  57. package/test/flows/faults.mjs +82 -0
  58. package/test/flows/identity.mjs +84 -0
  59. package/test/flows/messaging.mjs +82 -0
  60. package/test/flows/size.mjs +71 -0
  61. package/test/lib.mjs +133 -0
@@ -0,0 +1,113 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-mcp-core-aliases",
4
+ "title": "The five Core-mode MCP tool names alias the connection operations next to the canonical unified.* names",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the mcp flow against the synthetic Unified.to Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "connections-list-ok-77",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "connections.list"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "connections-get-ok-78",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "connections.get"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "connections-create-ok-79",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "connections.create"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "connections-update-ok-80",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "connections.update"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "connections-remove-ok-81",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "connections.remove"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "connections-get-error-82",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "unified",
92
+ "operationId": "connections.get"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "connections-count-83",
104
+ "kind": "state.count",
105
+ "packageId": "unified",
106
+ "namespace": "connections",
107
+ "comparison": {
108
+ "operator": "equals",
109
+ "value": 9
110
+ }
111
+ }
112
+ ]
113
+ }
@@ -0,0 +1,326 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-messaging-flow",
4
+ "title": "Messaging channels and messages: hierarchy, aliases, thread replies, unread and date filters, author identity, has_children maintenance",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the messaging flow against the synthetic Unified.to Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "channels-list-ok-40",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "channels.list"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "channels-get-ok-41",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "channels.get"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "messages-list-ok-42",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "messages.list"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "messages-get-ok-43",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "messages.get"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "messages-create-ok-44",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "messages.create"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "messages-update-ok-45",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "unified",
92
+ "operationId": "messages.update"
93
+ },
94
+ "outcomes": [
95
+ "ok"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "messages-remove-ok-46",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "unified",
107
+ "operationId": "messages.remove"
108
+ },
109
+ "outcomes": [
110
+ "ok"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "messages-create-error-47",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "unified",
122
+ "operationId": "messages.create"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "messages-update-error-48",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "unified",
137
+ "operationId": "messages.update"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "channels-list-error-49",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "unified",
152
+ "operationId": "channels.list"
153
+ },
154
+ "outcomes": [
155
+ "tool_error"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "channels-get-error-50",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "unified",
167
+ "operationId": "channels.get"
168
+ },
169
+ "outcomes": [
170
+ "tool_error"
171
+ ],
172
+ "comparison": {
173
+ "operator": "greater_than_or_equal",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "messages-list-error-51",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "unified",
182
+ "operationId": "messages.list"
183
+ },
184
+ "outcomes": [
185
+ "tool_error"
186
+ ],
187
+ "comparison": {
188
+ "operator": "greater_than_or_equal",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "messages-get-error-52",
194
+ "kind": "operation.count",
195
+ "operation": {
196
+ "packageId": "unified",
197
+ "operationId": "messages.get"
198
+ },
199
+ "outcomes": [
200
+ "tool_error"
201
+ ],
202
+ "comparison": {
203
+ "operator": "greater_than_or_equal",
204
+ "value": 1
205
+ }
206
+ },
207
+ {
208
+ "id": "messages-remove-error-53",
209
+ "kind": "operation.count",
210
+ "operation": {
211
+ "packageId": "unified",
212
+ "operationId": "messages.remove"
213
+ },
214
+ "outcomes": [
215
+ "tool_error"
216
+ ],
217
+ "comparison": {
218
+ "operator": "greater_than_or_equal",
219
+ "value": 1
220
+ }
221
+ },
222
+ {
223
+ "id": "messages-count-54",
224
+ "kind": "state.count",
225
+ "packageId": "unified",
226
+ "namespace": "messages",
227
+ "comparison": {
228
+ "operator": "equals",
229
+ "value": 21
230
+ }
231
+ },
232
+ {
233
+ "id": "channels-count-55",
234
+ "kind": "state.count",
235
+ "packageId": "unified",
236
+ "namespace": "channels",
237
+ "comparison": {
238
+ "operator": "equals",
239
+ "value": 7
240
+ }
241
+ },
242
+ {
243
+ "id": "messages-value-56",
244
+ "kind": "state.value",
245
+ "packageId": "unified",
246
+ "namespace": "messages",
247
+ "rowId": "68c800000000000000000203/68c800000000000000000805",
248
+ "path": [
249
+ "has_children"
250
+ ],
251
+ "comparison": {
252
+ "operator": "equals",
253
+ "value": false
254
+ }
255
+ },
256
+ {
257
+ "id": "messages-value-57",
258
+ "kind": "state.value",
259
+ "packageId": "unified",
260
+ "namespace": "messages",
261
+ "rowId": "68c800000000000000000203/68c800000000000000001001",
262
+ "path": [
263
+ "message"
264
+ ],
265
+ "comparison": {
266
+ "operator": "equals",
267
+ "value": "edited"
268
+ }
269
+ },
270
+ {
271
+ "id": "messages-value-58",
272
+ "kind": "state.value",
273
+ "packageId": "unified",
274
+ "namespace": "messages",
275
+ "rowId": "68c800000000000000000203/68c800000000000000001001",
276
+ "path": [
277
+ "is_unread"
278
+ ],
279
+ "comparison": {
280
+ "operator": "equals",
281
+ "value": true
282
+ }
283
+ },
284
+ {
285
+ "id": "messages-value-59",
286
+ "kind": "state.value",
287
+ "packageId": "unified",
288
+ "namespace": "messages",
289
+ "rowId": "68c800000000000000000203/68c800000000000000001001",
290
+ "path": [
291
+ "author_member",
292
+ "user_id"
293
+ ],
294
+ "comparison": {
295
+ "operator": "equals",
296
+ "value": "u-opsbot"
297
+ }
298
+ },
299
+ {
300
+ "id": "object-created-events-60",
301
+ "kind": "event.count",
302
+ "event": {
303
+ "packageId": "unified",
304
+ "eventId": "object.created"
305
+ },
306
+ "phase": "emitted",
307
+ "comparison": {
308
+ "operator": "equals",
309
+ "value": 2
310
+ }
311
+ },
312
+ {
313
+ "id": "object-deleted-events-61",
314
+ "kind": "event.count",
315
+ "event": {
316
+ "packageId": "unified",
317
+ "eventId": "object.deleted"
318
+ },
319
+ "phase": "emitted",
320
+ "comparison": {
321
+ "operator": "equals",
322
+ "value": 1
323
+ }
324
+ }
325
+ ]
326
+ }