raga-cli 0.8.0 → 0.9.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +27 -4
  3. package/bundled-skills/README.md +2 -2
  4. package/bundled-skills/bundle.json +73 -7
  5. package/bundled-skills/skills/bend/SKILL.md +58 -0
  6. package/bundled-skills/skills/bend/bend_tool.py +144 -0
  7. package/bundled-skills/skills/peak/SKILL.md +1 -1
  8. package/bundled-skills/skills/peak/references/raga-runtime/SKILL.md +18 -4
  9. package/bundled-skills/skills/peak/references/raga-runtime/raga_runtime.py +12 -1
  10. package/bundled-skills/skills/raga-artifacts/SKILL.md +117 -0
  11. package/bundled-skills/skills/raga-artifacts/artifact.mjs +254 -0
  12. package/bundled-skills/skills/raga-artifacts/artifact_tool.py +55 -0
  13. package/bundled-skills/skills/raga-artifacts/diagrams.md +641 -0
  14. package/bundled-skills/skills/raga-artifacts/templates/doc.html +124 -0
  15. package/bundled-skills/skills/raga-artifacts/templates/slides.html +138 -0
  16. package/dist/bundle/chunks/anthropic.js +1 -8
  17. package/dist/bundle/chunks/chunk-3MNXTBQ3.js +2 -0
  18. package/dist/bundle/chunks/{chunk-IOPE2TJ4.js → chunk-ENUUAC3O.js} +8 -8
  19. package/dist/bundle/chunks/{chunk-AI2NMHE7.js → chunk-F7LFZTHT.js} +261 -237
  20. package/dist/bundle/chunks/{chunk-3EGDWOKT.js → chunk-JQDZ4Z7L.js} +1 -1
  21. package/dist/bundle/chunks/{chunk-J22MF7YW.js → chunk-NP6TH6UT.js} +2 -2
  22. package/dist/bundle/chunks/{chunk-YMZUNB25.js → chunk-OPPYO2IE.js} +1 -1
  23. package/dist/bundle/chunks/{chunk-UDT647VB.js → chunk-S5J3UB5O.js} +1 -8
  24. package/dist/bundle/chunks/{cli-4P6FVVLT.js → cli-QLDCDYOR.js} +1 -1
  25. package/dist/bundle/chunks/{easter-egg-3d-65VIC4G2.js → easter-egg-3d-NPDBBPPF.js} +1 -1
  26. package/dist/bundle/chunks/{execute-3H5WKMA3.js → execute-WPTMS4XG.js} +1 -1
  27. package/dist/bundle/chunks/openai-chatgpt.js +1 -8
  28. package/dist/bundle/chunks/openai-codex.js +1 -8
  29. package/dist/bundle/chunks/openrouter.js +1 -8
  30. package/dist/bundle/chunks/radius.js +1 -8
  31. package/dist/bundle/chunks/{runtime-435R6IKY.js → runtime-N5MUH2WA.js} +1 -1
  32. package/dist/bundle/chunks/{virtual-modules-U3JBUDP7.js → virtual-modules-4I6Y6DPQ.js} +1 -1
  33. package/dist/bundle/cli-runtime.js +1 -1
  34. package/dist/bundle/index.js +1 -1
  35. package/dist/bundle/raga-runtime.js +1 -1
  36. package/dist/bundle/rpc-entry.js +1 -1
  37. package/docs/cli.md +6 -0
  38. package/docs/compaction.md +26 -0
  39. package/docs/sdk.md +2 -1
  40. package/docs/settings.md +1 -0
  41. package/package.json +1 -1
  42. package/python/raga_rlm/__init__.py +20 -4
  43. package/python/raga_rlm/mlx_models.py +265 -0
  44. package/schemas/keybindings.schema.json +48 -0
  45. package/schemas/settings.schema.json +14 -0
  46. package/dist/bundle/chunks/chunk-C4IJNE7U.js +0 -2
@@ -0,0 +1,641 @@
1
+ # Diagram examples
2
+
3
+ Every example renders with the Pele version raga pins. Copy the closest one, then change it. The types marked beta are Pele and Mermaid extensions that many models have not seen, so start from the example instead of from memory.
4
+
5
+ Inside an artifact, put each diagram in `<pre class="mermaid">...</pre>` and escape `<`, `>`, and `&` as `&lt;`, `&gt;`, and `&amp;`.
6
+
7
+ ## Flowchart
8
+
9
+ Keyword `flowchart LR`. Processes, decisions, pipelines. Audience: both.
10
+
11
+ ```mermaid
12
+ ---
13
+ config:
14
+ theme: default
15
+ look: classic
16
+ layout: dagre
17
+ ---
18
+ flowchart LR
19
+ subgraph Client
20
+ UI[Web app]
21
+ Cache[(Local cache)]
22
+ end
23
+ subgraph Services
24
+ API[API gateway]
25
+ Auth[Auth service]
26
+ Orders[Order service]
27
+ end
28
+ subgraph Storage
29
+ DB[(Orders DB)]
30
+ end
31
+ UI --> API
32
+ UI --> Cache
33
+ API --> Auth
34
+ API --> Orders
35
+ Orders --> DB
36
+ Auth -. token .-> UI
37
+ ```
38
+
39
+ ## Sequence
40
+
41
+ Keyword `sequenceDiagram`. Requests between services or people over time. Audience: developers.
42
+
43
+ ```mermaid
44
+ sequenceDiagram
45
+ participant Alice
46
+ participant John
47
+ link Alice: Dashboard @ https://dashboard.contoso.com/alice
48
+ link Alice: Wiki @ https://wiki.contoso.com/alice
49
+ link John: Dashboard @ https://dashboard.contoso.com/john
50
+ link John: Wiki @ https://wiki.contoso.com/john
51
+ Alice->>John: Hello John, how are you?
52
+ John-->>Alice: Great!
53
+ Alice-)John: See you later!
54
+ ```
55
+
56
+ ## Class
57
+
58
+ Keyword `classDiagram`. Types, interfaces, and their relations. Audience: developers.
59
+
60
+ ```mermaid
61
+ ---
62
+ config:
63
+ class:
64
+ hierarchicalNamespaces: false
65
+ ---
66
+ classDiagram
67
+ namespace Earth.Volcano.Summit {
68
+ class Crater {
69
+ +erupt()
70
+ }
71
+ }
72
+ namespace Earth.Volcano.Slope {
73
+ class LavaFlow {
74
+ +buildLand()
75
+ }
76
+ }
77
+ namespace Earth {
78
+ class Hotspot {
79
+ +meltRock()
80
+ }
81
+ }
82
+ Hotspot --> Crater : feeds
83
+ Hotspot --> LavaFlow : feeds
84
+ ```
85
+
86
+ ## State
87
+
88
+ Keyword `stateDiagram-v2`. Lifecycles and state machines. Audience: developers.
89
+
90
+ ```mermaid
91
+ ---
92
+ config:
93
+ theme: default
94
+ look: classic
95
+ layout: dagre
96
+ ---
97
+ stateDiagram-v2
98
+ [*] --> Draft
99
+ Draft --> Submitted : submit
100
+ state Review {
101
+ [*] --> Screening
102
+ Screening --> Decision
103
+ }
104
+ Submitted --> Review
105
+ Review --> Published : approved
106
+ Review --> Draft : rejected
107
+ Published --> [*]
108
+ ```
109
+
110
+ ## Entity relationship
111
+
112
+ Keyword `erDiagram`. Database tables and relations. Audience: developers.
113
+
114
+ ```mermaid
115
+ erDiagram
116
+ subgraph title1
117
+ CUSTOMER
118
+ CUSTOMER {
119
+ string name
120
+ string custNumber
121
+ string sector
122
+ }
123
+ end
124
+ subgraph title2
125
+ CAR ||--o{ NAMED-DRIVER : allows
126
+ subgraph title3
127
+ PERSON
128
+ PERSON {
129
+ string firstName
130
+ string lastName
131
+ int age
132
+ }
133
+ end
134
+ end
135
+ ```
136
+
137
+ ## C4
138
+
139
+ Keyword `C4Context`. System context, containers, components. Audience: both.
140
+
141
+ ```mermaid
142
+ C4Context
143
+ title Checkout system context
144
+ Person(customer, "Customer", "Buys products")
145
+ System(shop, "Shop", "Web store")
146
+ System_Ext(pay, "Payment provider", "Charges cards")
147
+ Rel(customer, shop, "Places orders")
148
+ Rel(shop, pay, "Charges", "HTTPS")
149
+ ```
150
+
151
+ ## Architecture
152
+
153
+ Keyword `architecture-beta`. Cloud and service topology with groups and icons. Audience: both.
154
+
155
+ ```mermaid
156
+ architecture-beta
157
+ service left_disk(disk)[Disk]
158
+ service top_disk(disk)[Disk]
159
+ service bottom_disk(disk)[Disk]
160
+ service top_gateway(internet)[Gateway]
161
+ service bottom_gateway(internet)[Gateway]
162
+ junction junctionCenter
163
+ junction junctionRight
164
+
165
+ left_disk:R -- L:junctionCenter
166
+ top_disk:B -- T:junctionCenter
167
+ bottom_disk:T -- B:junctionCenter
168
+ junctionCenter:R -- L:junctionRight
169
+ top_gateway:B -- T:junctionRight
170
+ bottom_gateway:T -- B:junctionRight
171
+ ```
172
+
173
+ ## Block
174
+
175
+ Keyword `block`. Layered or grid layouts of components. Audience: developers.
176
+
177
+ ```mermaid
178
+ block
179
+ columns 3
180
+ a:3
181
+ block:group1:2
182
+ columns 2
183
+ h i j k
184
+ end
185
+ g
186
+ block:group2:3
187
+ %% columns auto (default)
188
+ l m n o p q r
189
+ end
190
+ ```
191
+
192
+ ## Packet
193
+
194
+ Keyword `packet`. Bit and byte layouts of protocols or file formats. Audience: developers.
195
+
196
+ ```mermaid
197
+ ---
198
+ config:
199
+ packet:
200
+ showBits: true
201
+ bitOrder: descending
202
+ bitsPerRow: 16
203
+ ---
204
+ packet
205
+ 0-7: "DATA"
206
+ 8-11: "TYPE"
207
+ 12: "EN"
208
+ 13-15: "RESERVED"
209
+ ```
210
+
211
+ ## Git graph
212
+
213
+ Keyword `gitGraph`. Branching and release strategy. Audience: developers.
214
+
215
+ ```mermaid
216
+ gitGraph
217
+ commit id: "ZERO"
218
+ branch develop
219
+ branch release
220
+ commit id:"A"
221
+ checkout main
222
+ commit id:"ONE"
223
+ checkout develop
224
+ commit id:"B"
225
+ checkout main
226
+ merge develop id:"MERGE"
227
+ commit id:"TWO"
228
+ checkout release
229
+ cherry-pick id:"MERGE" parent:"B"
230
+ commit id:"THREE"
231
+ checkout develop
232
+ commit id:"C"
233
+ ```
234
+
235
+ ## Agentflow
236
+
237
+ Keyword `agentflow-beta`. AI agent and tool-call workflows. Audience: developers.
238
+
239
+ ```mermaid
240
+ agentflow-beta TB
241
+ flow intake["Intake"]
242
+ receive["Receive request"]@{ shape: input }
243
+ end
244
+
245
+ flow processing["Processing"]
246
+ validate["Validate"]@{ shape: task }
247
+ enrich["Enrich"]@{ shape: task }
248
+ validate --> enrich
249
+ end
250
+ processing@{ view: "collapsed" }
251
+
252
+ flow output["Output"]
253
+ publish["Publish"]@{ shape: action }
254
+ end
255
+
256
+ receive --> validate
257
+ enrich --> publish
258
+ ```
259
+
260
+ ## Railroad
261
+
262
+ Keyword `railroad-ebnf-beta`. Grammar and syntax rules. Audience: developers.
263
+
264
+ ```mermaid
265
+ railroad-ebnf-beta
266
+ title "Arithmetic Expression Grammar"
267
+
268
+ expression = term ( ( "+" | "-" ) term )* ;
269
+ term = factor ( ( "*" | "/" ) factor )* ;
270
+ factor = number | "(" expression ")" ;
271
+ number = digit+ ;
272
+ digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
273
+ ```
274
+
275
+ ## Event modeling
276
+
277
+ Keyword `eventmodeling`. Commands, events, and views of an event-driven system. Audience: developers.
278
+
279
+ ```mermaid
280
+ eventmodeling
281
+
282
+ timeframe 01 ui CartUI
283
+ timeframe 02 command AddItem
284
+ timeframe 03 event ItemAdded
285
+
286
+ resetframe 04 event External.InventoryChanged
287
+ timeframe 05 processor InventoryProcessor
288
+ timeframe 06 command ChangeInventory
289
+ timeframe 07 event Cart.InventoryChanged
290
+ ```
291
+
292
+ ## Requirement
293
+
294
+ Keyword `requirementDiagram`. Requirements and what satisfies or verifies them. Audience: both.
295
+
296
+ ```mermaid
297
+ requirementDiagram
298
+
299
+ direction LR
300
+
301
+ requirement test_req {
302
+ id: 1
303
+ text: the test text.
304
+ risk: high
305
+ verifymethod: test
306
+ }
307
+
308
+ element test_entity {
309
+ type: simulation
310
+ }
311
+
312
+ test_entity - satisfies -> test_req
313
+ ```
314
+
315
+ ## Gantt
316
+
317
+ Keyword `gantt`. Schedules with tasks and dependencies. Audience: clients.
318
+
319
+ ```mermaid
320
+ gantt
321
+ title A Gantt Diagram
322
+ %% This is a comment
323
+ dateFormat YYYY-MM-DD
324
+ section Section
325
+ A task :a1, 2014-01-01, 30d
326
+ Another task :after a1, 20d
327
+ section Another
328
+ Task in Another :2014-01-12, 12d
329
+ another task :24d
330
+ ```
331
+
332
+ ## Timeline
333
+
334
+ Keyword `timeline`. Milestones and history. Audience: clients.
335
+
336
+ ```mermaid
337
+ timeline
338
+ title Timeline of the Hawaiian Islands
339
+ section Older islands
340
+ Kauaʻi : 5 million years old, Canyons, Sea <br>cliffs
341
+ Oʻahu : 3 million years old, Diamond Head, Surf breaks
342
+ Molokaʻi : 2 million years old, Fishponds, Tall cliffs
343
+ section Younger islands
344
+ Maui : 1 million years old, Haleakalā, Whale watching
345
+ Hawaiʻi : Still growing, Mauna Kea, Kīlauea
346
+ ```
347
+
348
+ ## Kanban
349
+
350
+ Keyword `kanban`. Work status by column. Audience: clients.
351
+
352
+ ```mermaid
353
+ kanban
354
+ todo[Todo]
355
+ id3[Update Database Function]@{ ticket: MC-2037, assigned: 'knsv', priority: 'High' }
356
+ ```
357
+
358
+ ## User journey
359
+
360
+ Keyword `journey`. Steps a user takes, with satisfaction scores. Audience: clients.
361
+
362
+ ```mermaid
363
+ journey
364
+ title My working day
365
+ section Go to work
366
+ Make tea: 5: Me
367
+ Go upstairs: 3: Me
368
+ Do work: 1: Me, Cat
369
+ section Go home
370
+ Go downstairs: 5: Me
371
+ Sit down: 5: Me
372
+ ```
373
+
374
+ ## Mindmap
375
+
376
+ Keyword `mindmap`. Topics and ideas branching from one center. Audience: clients.
377
+
378
+ ```mermaid
379
+ mindmap
380
+ id1["`**Pele** is the
381
+ goddess of volcanoes
382
+ Unicode works too: 🌋`"]
383
+ id2["`She lives in **the** crater of Kīlauea... a *very old story* that is still told today`"]
384
+ id3[Lava builds new land]
385
+ ```
386
+
387
+ ## Use case
388
+
389
+ Keyword `usecase-beta`. Actors and what they can do. Audience: both.
390
+
391
+ ```mermaid
392
+ ---
393
+ config:
394
+ theme: default
395
+ look: classic
396
+ layout: dagre
397
+ ---
398
+ usecase-beta
399
+ direction LR
400
+ actor Customer
401
+ actor Support
402
+ systemBoundary Storefront
403
+ Browse("Browse catalog")
404
+ Checkout("Checkout")
405
+ end
406
+ systemBoundary Fulfilment
407
+ Track("Track delivery")
408
+ end
409
+ Customer --> Browse
410
+ Customer --> Checkout
411
+ Customer --> Track
412
+ Support --> Track
413
+ Checkout ..> : include Browse
414
+ ```
415
+
416
+ ## Swimlane
417
+
418
+ Keyword `swimlane-beta`. A process split by team or role. Audience: clients.
419
+
420
+ ```mermaid
421
+ swimlane-beta LR
422
+ subgraph Applicant
423
+ apply[Submit application]
424
+ sign[Sign agreement]
425
+ end
426
+
427
+ subgraph Reviewer
428
+ screen[Screen application]
429
+ decide{Approved?}
430
+ end
431
+
432
+ subgraph System
433
+ create[Create account]
434
+ notify[Send welcome email]
435
+ end
436
+
437
+ apply -->|Application received| screen
438
+ screen --> decide
439
+ decide -->|Approved| create --> notify --> sign
440
+ decide -->|Needs changes| apply
441
+ ```
442
+
443
+ ## Tree view
444
+
445
+ Keyword `treeView-beta`. File trees and hierarchies. Audience: developers.
446
+
447
+ ```mermaid
448
+ treeView-beta
449
+ my-project/
450
+ src/
451
+ App.tsx :::highlight icon(logos:react) ## main component
452
+ index.js ## entry point
453
+ .env ## environment variables
454
+ Dockerfile
455
+ package.json
456
+ ```
457
+
458
+ ## Pie
459
+
460
+ Keyword `pie`. Parts of a whole, at most six slices. Audience: clients.
461
+
462
+ ```mermaid
463
+ pie title Fish caught by the crew
464
+ "ʻAhi" : 386
465
+ "Mahimahi" : 85
466
+ "Ono" : 15
467
+ ```
468
+
469
+ ## XY chart
470
+
471
+ Keyword `xychart`. Bar and line charts over a series. Audience: clients.
472
+
473
+ ```mermaid
474
+ ---
475
+ config:
476
+ xyChart:
477
+ showDataLabel: true
478
+ showDataLabelOutsideBar: true
479
+ ---
480
+ xychart
481
+ title "Animals seen in reef survey of 2025"
482
+ x-axis [turtles, eels, tangs, wrasses, "parrot fish", other]
483
+ y-axis "Number of Animals" 0 --> 30
484
+ bar [12,2,20,25,17,24]
485
+ ```
486
+
487
+ ## Quadrant chart
488
+
489
+ Keyword `quadrantChart`. Two-axis prioritization, such as effort against impact. Audience: clients.
490
+
491
+ ```mermaid
492
+ quadrantChart
493
+ title Reach and engagement of campaigns
494
+ x-axis Low Reach --> High Reach
495
+ y-axis Low Engagement --> High Engagement
496
+ quadrant-1 We should expand
497
+ quadrant-2 Need to promote
498
+ quadrant-3 Re-evaluate
499
+ quadrant-4 May be improved
500
+ Campaign A: [0.3, 0.6]
501
+ Campaign B: [0.45, 0.23]
502
+ Campaign C: [0.57, 0.69]
503
+ Campaign D: [0.78, 0.34]
504
+ Campaign E: [0.40, 0.34]
505
+ Campaign F: [0.35, 0.78]
506
+ ```
507
+
508
+ ## Sankey
509
+
510
+ Keyword `sankey`. Flows of volume, money, or traffic between stages. Audience: clients.
511
+
512
+ ```mermaid
513
+ sankey
514
+
515
+ %% source,target,value
516
+ Electricity grid,Over generation / exports,104.453
517
+ Electricity grid,Heating and cooling - homes,113.726
518
+ Electricity grid,H2 conversion,27.14
519
+ ```
520
+
521
+ ## Treemap
522
+
523
+ Keyword `treemap-beta`. Sizes of nested parts, such as cost or code by module. Audience: both.
524
+
525
+ ```mermaid
526
+ treemap-beta
527
+ "Products"
528
+ "Electronics"
529
+ "Phones": 50
530
+ "Computers": 30
531
+ "Accessories": 20
532
+ "Clothing"
533
+ "Men's": 40
534
+ "Women's": 40
535
+ ```
536
+
537
+ ## Radar
538
+
539
+ Keyword `radar-beta`. Comparing options across several criteria. Audience: clients.
540
+
541
+ ```mermaid
542
+ ---
543
+ title: "Grades"
544
+ ---
545
+ radar-beta
546
+ axis m["Math"], s["Science"], e["English"]
547
+ axis h["History"], g["Geography"], a["Art"]
548
+ curve a["Alice"]{85, 90, 80, 70, 75, 90}
549
+ curve b["Bob"]{70, 75, 85, 80, 90, 85}
550
+
551
+ max 100
552
+ min 0
553
+ ```
554
+
555
+ ## Venn
556
+
557
+ Keyword `venn-beta`. Overlap between groups. Audience: clients.
558
+
559
+ ```mermaid
560
+ venn-beta
561
+ set A["Frontend"]
562
+ text A1["React"]
563
+ text A2["Design Systems"]
564
+ set B["Backend"]
565
+ text B1["API"]
566
+ union A,B["Shared"]
567
+ text AB1["OpenAPI"]
568
+ ```
569
+
570
+ ## Ishikawa
571
+
572
+ Keyword `ishikawa-beta`. Root causes of a problem, fishbone style. Audience: both.
573
+
574
+ ```mermaid
575
+ ishikawa-beta
576
+ Blurry Photo
577
+ Process
578
+ Out of focus
579
+ Shutter speed too slow
580
+ Protective film not removed
581
+ Beautification filter applied
582
+ User
583
+ Shaky hands
584
+ Equipment
585
+ LENS
586
+ Inappropriate lens
587
+ Damaged lens
588
+ Dirty lens
589
+ SENSOR
590
+ Damaged sensor
591
+ Dirty sensor
592
+ Environment
593
+ Subject moved too quickly
594
+ Too dark
595
+ ```
596
+
597
+ ## Cynefin
598
+
599
+ Keyword `cynefin-beta`. Sorting problems by how predictable they are. Audience: clients.
600
+
601
+ ```mermaid
602
+ cynefin-beta
603
+ title Strategy Categorization
604
+
605
+ complex
606
+ "Market research"
607
+
608
+ complicated
609
+ "Competitive analysis"
610
+
611
+ clear
612
+ "Standard pricing"
613
+
614
+ chaotic
615
+ "Crisis management"
616
+
617
+ complex --> complicated : "Pattern identified"
618
+ complicated --> clear : "Best practice codified"
619
+ clear --> chaotic : "Complacency"
620
+ chaotic --> complex : "Stabilized"
621
+ ```
622
+
623
+ ## Wardley map
624
+
625
+ Keyword `wardley-beta`. Strategy: components by visibility and maturity. Audience: clients.
626
+
627
+ ```mermaid
628
+ wardley-beta
629
+ title Sourcing Strategy
630
+
631
+ anchor Customer [0.80, 0.95]
632
+ component Custom App [0.45, 0.85] (build)
633
+ component Off-the-shelf Tool [0.85, 0.65] (buy)
634
+ component Managed Service [0.60, 0.40] (outsource)
635
+ component Cloud Platform [0.95, 0.25] (market)
636
+
637
+ Customer -> Custom App
638
+ Custom App -> Off-the-shelf Tool
639
+ Custom App -> Managed Service
640
+ Off-the-shelf Tool -> Cloud Platform
641
+ ```