@olierjs/fugue-cli 0.1.0 → 0.1.2

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 (40) hide show
  1. package/README.md +52 -2
  2. package/THIRD_PARTY_NOTICES +52 -1
  3. package/dist/darwin-arm64/fugue-cli +0 -0
  4. package/dist/darwin-x64/fugue-cli +0 -0
  5. package/dist/linux-arm64/fugue-cli +0 -0
  6. package/dist/linux-x64/fugue-cli +0 -0
  7. package/dist/win32-arm64/fugue-cli.exe +0 -0
  8. package/dist/win32-x64/fugue-cli.exe +0 -0
  9. package/package.json +2 -1
  10. package/skills/fugue-show-me/SKILL.md +16 -0
  11. package/skills/show-me/SKILL.md +128 -0
  12. package/skills/show-me/agents/openai.yaml +2 -0
  13. package/skills/statechart/SKILL.md +36 -0
  14. package/skills/statechart/scripts/bug-states.mjs +81 -0
  15. package/skills/statechart/scripts/chart-edges.mjs +68 -0
  16. package/skills/statechart/scripts/chart-parts.mjs +21 -0
  17. package/skills/statechart/scripts/chart-to-tla.mjs +205 -0
  18. package/skills/statechart/scripts/compare-charts.mjs +74 -0
  19. package/skills/statechart/scripts/lib.mjs +970 -0
  20. package/skills/statechart/scripts/map-view.mjs +92 -0
  21. package/skills/statechart/scripts/property-loop.mjs +60 -0
  22. package/skills/statechart/scripts/read-check.mjs +79 -0
  23. package/skills/statechart/scripts/regions-chart.mjs +307 -0
  24. package/skills/statechart/scripts/render.mjs +531 -0
  25. package/skills/statechart/scripts/rule-book.mjs +84 -0
  26. package/skills/statechart/scripts/second-replay.mjs +122 -0
  27. package/skills/statechart/scripts/snapshot.mjs +74 -0
  28. package/skills/statechart/scripts/spec-text.mjs +126 -0
  29. package/skills/statechart/scripts/statechart-help.mjs +350 -0
  30. package/skills/statechart/scripts/statechart.mjs +903 -0
  31. package/skills/statechart/scripts/test/band.mmd +15 -0
  32. package/skills/statechart/scripts/test/regions.mmd +62 -0
  33. package/skills/statechart/scripts/test/statechart.test.mjs +6854 -0
  34. package/skills/statechart/scripts/test/sync.mmd +19 -0
  35. package/skills/statechart/scripts/test/upload.mmd +16 -0
  36. package/skills/statechart/scripts/tlc-to-chart-args.mjs +52 -0
  37. package/skills/statechart/scripts/tlc-to-chart.mjs +802 -0
  38. package/skills/statechart/scripts/tlc-tools.mjs +69 -0
  39. package/skills/statechart/scripts/ways-in.mjs +69 -0
  40. package/upstream-skills.json +18 -0
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: "An edge into a group from above"
3
+ ---
4
+ stateDiagram-v2
5
+ state "Outside" as a
6
+ state "A group" as G {
7
+ state "Inside one" as i1
8
+ state "Inside two" as i2
9
+ i1 --> i2 : go
10
+ }
11
+ state "After" as b
12
+ [*] --> a
13
+ a --> G : into the group
14
+ G --> b : out of the group
15
+ a --> i2 : straight to a child
@@ -0,0 +1,62 @@
1
+ ---
2
+ title: "Parcel and payment"
3
+ config:
4
+ markdownAutoWrap: false
5
+ state:
6
+ useMaxWidth: false
7
+ ---
8
+ stateDiagram-v2
9
+ classDef plain fill:#f4f6f7,stroke:#566573,color:#1b2631
10
+ classDef plainWrong fill:#f4f6f7,stroke:#c0392b,stroke-width:4px,color:#7b241c
11
+ classDef group0 fill:#d6eaf8,stroke:#6b757c,color:#1b2631
12
+ classDef group0Wrong fill:#d6eaf8,stroke:#c0392b,stroke-width:4px,color:#7b241c
13
+ classDef group1 fill:#fdebd0,stroke:#7f7668,color:#1b2631
14
+ state "Legend" as legend {
15
+ state "Card on file" as legendGroup0
16
+ state "No card yet" as legendGroup1
17
+ state "Breaks a rule" as legendWrong
18
+ }
19
+ class legendGroup0 group0
20
+ class legendGroup1 group1
21
+ class legendWrong plainWrong
22
+ state "At the same time" as regions {
23
+ state "The parcel" as region0 {
24
+ [*] --> r0s0
25
+ state "Label printed" as r0s0
26
+ state "In transit" as r0s1
27
+ state "Out for delivery" as r0s2
28
+ state "Left at the front door<br/>without a signature" as r0s3
29
+ state "Held at the depot after<br/>a missed delivery" as r0s4
30
+ state "Sent back to the shop" as r0s5
31
+ r0s0 --> r0s1 : the courier scans the label<br/>at the depot
32
+ r0s1 --> r0s2 : the van leaves the depot with<br/>the parcel on board
33
+ r0s2 --> r0s3 : the courier leaves the parcel<br/>at the door [when charged<br/>once]
34
+ r0s2 --> r0s4 : nobody answers the door<br/>before the van moves on
35
+ r0s4 --> r0s2 : the depot books a second<br/>delivery for the next day
36
+ r0s4 --> r0s5 : the parcel waits at the depot<br/>for more than fourteen days
37
+ }
38
+ --
39
+ state "Payment" as region1 {
40
+ [*] --> r1s0
41
+ state "No card on file" as r1s0
42
+ state "Card saved, waiting<br/>for the charge" as r1s1
43
+ state "Charged once" as r1s2
44
+ state "Charged twice for<br/>one parcel" as r1s3
45
+ state "Refund sent while the<br/>parcel was on the doorstep" as r1s4
46
+ r1s0 --> r1s1 : you save a card on the<br/>checkout page
47
+ r1s1 --> r1s2 : the bank approves the charge<br/>for the parcel
48
+ r1s2 --> r1s3 : the payment service retries<br/>a charge that went through
49
+ r1s2 --> r1s4 : the shop sends a refund before<br/>the parcel comes back [when<br/>left at the front door]
50
+ }
51
+ }
52
+ class r0s0 group1
53
+ class r0s1 plain
54
+ class r0s2 plain
55
+ class r0s3 plainWrong
56
+ class r0s4 plain
57
+ class r0s5 plain
58
+ class r1s0 group1
59
+ class r1s1 group0
60
+ class r1s2 group0
61
+ class r1s3 group0Wrong
62
+ class r1s4 group0Wrong