@olierjs/fugue-cli 0.0.0-stage → 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.
- package/LICENSE +201 -0
- package/README.md +99 -2
- package/THIRD_PARTY_NOTICES +467 -0
- package/bin/fugue-cli.mjs +23 -0
- package/dist/darwin-arm64/fugue-cli +0 -0
- package/dist/darwin-x64/fugue-cli +0 -0
- package/dist/linux-arm64/fugue-cli +0 -0
- package/dist/linux-x64/fugue-cli +0 -0
- package/dist/win32-arm64/fugue-cli.exe +0 -0
- package/dist/win32-x64/fugue-cli.exe +0 -0
- package/package.json +27 -4
- package/scripts/postinstall.mjs +13 -0
- package/scripts/skills.mjs +104 -0
- package/skills/fugue-show-me/SKILL.md +16 -0
- package/skills/fugue-stack/SKILL.md +10 -0
- package/skills/plan-with-remote/SKILL.md +60 -0
- package/skills/plan-with-remote/references/configuration.md +43 -0
- package/skills/plan-with-remote/scripts/client.mjs +61 -0
- package/skills/plan-with-remote/scripts/config.mjs +53 -0
- package/skills/plan-with-remote/scripts/planning.mjs +279 -0
- package/skills/plan-with-remote/scripts/protocol.mjs +147 -0
- package/skills/plan-with-remote/scripts/service.mjs +146 -0
- package/skills/plan-with-remote/scripts/storage.mjs +74 -0
- package/skills/show-me/SKILL.md +128 -0
- package/skills/show-me/agents/openai.yaml +2 -0
- package/skills/statechart/SKILL.md +36 -0
- package/skills/statechart/scripts/bug-states.mjs +81 -0
- package/skills/statechart/scripts/chart-edges.mjs +68 -0
- package/skills/statechart/scripts/chart-parts.mjs +21 -0
- package/skills/statechart/scripts/chart-to-tla.mjs +205 -0
- package/skills/statechart/scripts/compare-charts.mjs +74 -0
- package/skills/statechart/scripts/lib.mjs +970 -0
- package/skills/statechart/scripts/map-view.mjs +92 -0
- package/skills/statechart/scripts/property-loop.mjs +60 -0
- package/skills/statechart/scripts/read-check.mjs +79 -0
- package/skills/statechart/scripts/regions-chart.mjs +307 -0
- package/skills/statechart/scripts/render.mjs +531 -0
- package/skills/statechart/scripts/rule-book.mjs +84 -0
- package/skills/statechart/scripts/second-replay.mjs +122 -0
- package/skills/statechart/scripts/snapshot.mjs +74 -0
- package/skills/statechart/scripts/spec-text.mjs +126 -0
- package/skills/statechart/scripts/statechart-help.mjs +350 -0
- package/skills/statechart/scripts/statechart.mjs +903 -0
- package/skills/statechart/scripts/test/band.mmd +15 -0
- package/skills/statechart/scripts/test/regions.mmd +62 -0
- package/skills/statechart/scripts/test/statechart.test.mjs +6854 -0
- package/skills/statechart/scripts/test/sync.mmd +19 -0
- package/skills/statechart/scripts/test/upload.mmd +16 -0
- package/skills/statechart/scripts/tlc-to-chart-args.mjs +52 -0
- package/skills/statechart/scripts/tlc-to-chart.mjs +802 -0
- package/skills/statechart/scripts/tlc-tools.mjs +69 -0
- package/skills/statechart/scripts/ways-in.mjs +69 -0
- 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
|