@almadar/patterns 1.0.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/LICENSE +72 -0
- package/dist/index.d.ts +36766 -0
- package/dist/index.js +17109 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
- package/src/component-mapping.json +1237 -0
- package/src/event-contracts.json +4255 -0
- package/src/integrators-registry.json +500 -0
- package/src/patterns-registry.json +11093 -0
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"exportedAt": "2026-01-25T00:58:14.172Z",
|
|
4
|
+
"integrators": {
|
|
5
|
+
"youtube": {
|
|
6
|
+
"name": "youtube",
|
|
7
|
+
"description": "YouTube Data API - search videos, get video/channel details",
|
|
8
|
+
"category": "media",
|
|
9
|
+
"actions": [
|
|
10
|
+
{
|
|
11
|
+
"name": "search",
|
|
12
|
+
"description": "Search for videos",
|
|
13
|
+
"params": [
|
|
14
|
+
{
|
|
15
|
+
"name": "query",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"required": true,
|
|
18
|
+
"description": "Search query"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "maxResults",
|
|
22
|
+
"type": "number",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": "Max results (1-50)"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "type",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": "video, channel, or playlist"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"responseShape": {
|
|
34
|
+
"videoId": "string",
|
|
35
|
+
"title": "string",
|
|
36
|
+
"thumbnail": "string",
|
|
37
|
+
"description": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "getVideo",
|
|
42
|
+
"description": "Get video details by ID",
|
|
43
|
+
"params": [
|
|
44
|
+
{
|
|
45
|
+
"name": "videoId",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"required": true,
|
|
48
|
+
"description": "YouTube video ID"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"responseShape": {
|
|
52
|
+
"title": "string",
|
|
53
|
+
"description": "string",
|
|
54
|
+
"viewCount": "number",
|
|
55
|
+
"likeCount": "number"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "getChannel",
|
|
60
|
+
"description": "Get channel details by ID",
|
|
61
|
+
"params": [
|
|
62
|
+
{
|
|
63
|
+
"name": "channelId",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"required": true,
|
|
66
|
+
"description": "YouTube channel ID"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"responseShape": {
|
|
70
|
+
"name": "string",
|
|
71
|
+
"description": "string",
|
|
72
|
+
"subscriberCount": "number"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"stripe": {
|
|
78
|
+
"name": "stripe",
|
|
79
|
+
"description": "Stripe payment processing - create intents, confirm payments, refunds",
|
|
80
|
+
"category": "payment",
|
|
81
|
+
"actions": [
|
|
82
|
+
{
|
|
83
|
+
"name": "createPaymentIntent",
|
|
84
|
+
"description": "Create a payment intent for collecting payment",
|
|
85
|
+
"params": [
|
|
86
|
+
{
|
|
87
|
+
"name": "amount",
|
|
88
|
+
"type": "number",
|
|
89
|
+
"required": true,
|
|
90
|
+
"description": "Amount in cents"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "currency",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"required": true,
|
|
96
|
+
"description": "ISO currency code (e.g., usd)"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "metadata",
|
|
100
|
+
"type": "object",
|
|
101
|
+
"required": false,
|
|
102
|
+
"description": "Custom metadata"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"responseShape": {
|
|
106
|
+
"id": "string",
|
|
107
|
+
"clientSecret": "string",
|
|
108
|
+
"status": "string"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "confirmPayment",
|
|
113
|
+
"description": "Confirm a payment intent",
|
|
114
|
+
"params": [
|
|
115
|
+
{
|
|
116
|
+
"name": "paymentIntentId",
|
|
117
|
+
"type": "string",
|
|
118
|
+
"required": true,
|
|
119
|
+
"description": "Payment intent ID"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"responseShape": {
|
|
123
|
+
"status": "string",
|
|
124
|
+
"amount": "number"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "refund",
|
|
129
|
+
"description": "Refund a payment",
|
|
130
|
+
"params": [
|
|
131
|
+
{
|
|
132
|
+
"name": "paymentIntentId",
|
|
133
|
+
"type": "string",
|
|
134
|
+
"required": true,
|
|
135
|
+
"description": "Payment intent ID"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "amount",
|
|
139
|
+
"type": "number",
|
|
140
|
+
"required": false,
|
|
141
|
+
"description": "Amount to refund (partial)"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"responseShape": {
|
|
145
|
+
"id": "string",
|
|
146
|
+
"status": "string",
|
|
147
|
+
"amount": "number"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"twilio": {
|
|
153
|
+
"name": "twilio",
|
|
154
|
+
"description": "Twilio messaging - send SMS, WhatsApp messages",
|
|
155
|
+
"category": "messaging",
|
|
156
|
+
"actions": [
|
|
157
|
+
{
|
|
158
|
+
"name": "sendSMS",
|
|
159
|
+
"description": "Send an SMS message",
|
|
160
|
+
"params": [
|
|
161
|
+
{
|
|
162
|
+
"name": "to",
|
|
163
|
+
"type": "string",
|
|
164
|
+
"required": true,
|
|
165
|
+
"description": "Recipient phone number"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "body",
|
|
169
|
+
"type": "string",
|
|
170
|
+
"required": true,
|
|
171
|
+
"description": "Message body"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"responseShape": {
|
|
175
|
+
"sid": "string",
|
|
176
|
+
"status": "string"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "sendWhatsApp",
|
|
181
|
+
"description": "Send a WhatsApp message",
|
|
182
|
+
"params": [
|
|
183
|
+
{
|
|
184
|
+
"name": "to",
|
|
185
|
+
"type": "string",
|
|
186
|
+
"required": true,
|
|
187
|
+
"description": "Recipient phone number"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "body",
|
|
191
|
+
"type": "string",
|
|
192
|
+
"required": true,
|
|
193
|
+
"description": "Message body"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"responseShape": {
|
|
197
|
+
"sid": "string",
|
|
198
|
+
"status": "string"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"email": {
|
|
204
|
+
"name": "email",
|
|
205
|
+
"description": "Transactional email via SendGrid/Resend",
|
|
206
|
+
"category": "messaging",
|
|
207
|
+
"actions": [
|
|
208
|
+
{
|
|
209
|
+
"name": "send",
|
|
210
|
+
"description": "Send a transactional email",
|
|
211
|
+
"params": [
|
|
212
|
+
{
|
|
213
|
+
"name": "to",
|
|
214
|
+
"type": "string",
|
|
215
|
+
"required": true,
|
|
216
|
+
"description": "Recipient email"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "subject",
|
|
220
|
+
"type": "string",
|
|
221
|
+
"required": true,
|
|
222
|
+
"description": "Email subject"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "body",
|
|
226
|
+
"type": "string",
|
|
227
|
+
"required": true,
|
|
228
|
+
"description": "Email body (HTML or text)"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "from",
|
|
232
|
+
"type": "string",
|
|
233
|
+
"required": false,
|
|
234
|
+
"description": "Sender email (uses default if omitted)"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"responseShape": {
|
|
238
|
+
"id": "string",
|
|
239
|
+
"status": "string"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"llm": {
|
|
245
|
+
"name": "llm",
|
|
246
|
+
"description": "LLM service for content generation, classification, and structured extraction",
|
|
247
|
+
"category": "ai",
|
|
248
|
+
"actions": [
|
|
249
|
+
{
|
|
250
|
+
"name": "generate",
|
|
251
|
+
"description": "Generate content from a prompt",
|
|
252
|
+
"params": [
|
|
253
|
+
{
|
|
254
|
+
"name": "systemPrompt",
|
|
255
|
+
"type": "string",
|
|
256
|
+
"required": false,
|
|
257
|
+
"description": "System instructions for the LLM"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "userPrompt",
|
|
261
|
+
"type": "string",
|
|
262
|
+
"required": true,
|
|
263
|
+
"description": "User prompt/question"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "model",
|
|
267
|
+
"type": "string",
|
|
268
|
+
"required": false,
|
|
269
|
+
"description": "Model ID (default: claude-sonnet-4-5-20250929)"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "temperature",
|
|
273
|
+
"type": "number",
|
|
274
|
+
"required": false,
|
|
275
|
+
"description": "Sampling temperature (0-1, default: 0.7)"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "maxTokens",
|
|
279
|
+
"type": "number",
|
|
280
|
+
"required": false,
|
|
281
|
+
"description": "Max response tokens (default: 1024)"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"responseShape": {
|
|
285
|
+
"content": "string",
|
|
286
|
+
"usage": "object"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "classify",
|
|
291
|
+
"description": "Classify text into predefined categories",
|
|
292
|
+
"params": [
|
|
293
|
+
{
|
|
294
|
+
"name": "text",
|
|
295
|
+
"type": "string",
|
|
296
|
+
"required": true,
|
|
297
|
+
"description": "Text to classify"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "categories",
|
|
301
|
+
"type": "array",
|
|
302
|
+
"required": true,
|
|
303
|
+
"description": "List of category labels"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "model",
|
|
307
|
+
"type": "string",
|
|
308
|
+
"required": false,
|
|
309
|
+
"description": "Model ID"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"responseShape": {
|
|
313
|
+
"category": "string",
|
|
314
|
+
"confidence": "number",
|
|
315
|
+
"reasoning": "string"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "extract",
|
|
320
|
+
"description": "Extract structured data from text using a schema",
|
|
321
|
+
"params": [
|
|
322
|
+
{
|
|
323
|
+
"name": "text",
|
|
324
|
+
"type": "string",
|
|
325
|
+
"required": true,
|
|
326
|
+
"description": "Text to extract from"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "schema",
|
|
330
|
+
"type": "object",
|
|
331
|
+
"required": true,
|
|
332
|
+
"description": "JSON schema defining fields to extract"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "model",
|
|
336
|
+
"type": "string",
|
|
337
|
+
"required": false,
|
|
338
|
+
"description": "Model ID"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"responseShape": {
|
|
342
|
+
"data": "object",
|
|
343
|
+
"confidence": "number"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "summarize",
|
|
348
|
+
"description": "Summarize long text content",
|
|
349
|
+
"params": [
|
|
350
|
+
{
|
|
351
|
+
"name": "text",
|
|
352
|
+
"type": "string",
|
|
353
|
+
"required": true,
|
|
354
|
+
"description": "Text to summarize"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "maxLength",
|
|
358
|
+
"type": "number",
|
|
359
|
+
"required": false,
|
|
360
|
+
"description": "Target summary length in words"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "style",
|
|
364
|
+
"type": "string",
|
|
365
|
+
"required": false,
|
|
366
|
+
"description": "Summary style: brief, detailed, bullet"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "model",
|
|
370
|
+
"type": "string",
|
|
371
|
+
"required": false,
|
|
372
|
+
"description": "Model ID"
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"responseShape": {
|
|
376
|
+
"summary": "string",
|
|
377
|
+
"keyPoints": "array"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
"deepagent": {
|
|
383
|
+
"name": "deepagent",
|
|
384
|
+
"description": "AI code generation agent with tool use - generates schemas, code, and manages projects",
|
|
385
|
+
"category": "ai",
|
|
386
|
+
"actions": [
|
|
387
|
+
{
|
|
388
|
+
"name": "sendMessage",
|
|
389
|
+
"description": "Send a message to the AI agent and get a response with tool calls",
|
|
390
|
+
"params": [
|
|
391
|
+
{
|
|
392
|
+
"name": "message",
|
|
393
|
+
"type": "string",
|
|
394
|
+
"required": true,
|
|
395
|
+
"description": "User message to the agent"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "threadId",
|
|
399
|
+
"type": "string",
|
|
400
|
+
"required": false,
|
|
401
|
+
"description": "Thread ID for conversation continuity"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "skill",
|
|
405
|
+
"type": "string",
|
|
406
|
+
"required": false,
|
|
407
|
+
"description": "Skill to use: almadar-orbitals, almadar-fixing, etc."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "context",
|
|
411
|
+
"type": "object",
|
|
412
|
+
"required": false,
|
|
413
|
+
"description": "Additional context (current schema, project info)"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"responseShape": {
|
|
417
|
+
"response": "string",
|
|
418
|
+
"threadId": "string",
|
|
419
|
+
"toolCalls": "array",
|
|
420
|
+
"todos": "array",
|
|
421
|
+
"schemaDiffs": "array"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"name": "cancelGeneration",
|
|
426
|
+
"description": "Cancel an ongoing generation",
|
|
427
|
+
"params": [
|
|
428
|
+
{
|
|
429
|
+
"name": "threadId",
|
|
430
|
+
"type": "string",
|
|
431
|
+
"required": true,
|
|
432
|
+
"description": "Thread ID to cancel"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"responseShape": {
|
|
436
|
+
"success": "boolean"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "validateSchema",
|
|
441
|
+
"description": "Validate an orbital schema",
|
|
442
|
+
"params": [
|
|
443
|
+
{
|
|
444
|
+
"name": "schema",
|
|
445
|
+
"type": "string",
|
|
446
|
+
"required": true,
|
|
447
|
+
"description": "Schema content to validate"
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
"responseShape": {
|
|
451
|
+
"valid": "boolean",
|
|
452
|
+
"errors": "array",
|
|
453
|
+
"warnings": "array"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "compileSchema",
|
|
458
|
+
"description": "Compile an orbital schema to target shell",
|
|
459
|
+
"params": [
|
|
460
|
+
{
|
|
461
|
+
"name": "schema",
|
|
462
|
+
"type": "string",
|
|
463
|
+
"required": true,
|
|
464
|
+
"description": "Schema content to compile"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "shell",
|
|
468
|
+
"type": "string",
|
|
469
|
+
"required": false,
|
|
470
|
+
"description": "Target shell: typescript, python (default: typescript)"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"responseShape": {
|
|
474
|
+
"success": "boolean",
|
|
475
|
+
"outputPath": "string",
|
|
476
|
+
"errors": "array"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "getThreadHistory",
|
|
481
|
+
"description": "Get conversation history for a thread",
|
|
482
|
+
"params": [
|
|
483
|
+
{
|
|
484
|
+
"name": "threadId",
|
|
485
|
+
"type": "string",
|
|
486
|
+
"required": true,
|
|
487
|
+
"description": "Thread ID to get history for"
|
|
488
|
+
}
|
|
489
|
+
],
|
|
490
|
+
"responseShape": {
|
|
491
|
+
"messages": "array",
|
|
492
|
+
"todos": "array",
|
|
493
|
+
"schemaDiffs": "array"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
]
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"categories": ["media", "payment", "messaging", "ai"]
|
|
500
|
+
}
|