grimoire-wizard 0.5.1 → 0.6.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/README.md +66 -51
- package/dist/cli.js +509 -70
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +114 -12
- package/dist/index.js +511 -71
- package/dist/index.js.map +1 -1
- package/examples/yaml/demo.yaml +54 -1
- package/package.json +1 -1
package/examples/yaml/demo.yaml
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
meta:
|
|
2
2
|
name: "Grimoire Component Demo"
|
|
3
|
-
description: "Showcasing all
|
|
3
|
+
description: "Showcasing all 11 step types, groups, conditions, and theming"
|
|
4
|
+
review: true
|
|
4
5
|
|
|
5
6
|
theme:
|
|
6
7
|
tokens:
|
|
@@ -18,6 +19,24 @@ theme:
|
|
|
18
19
|
pointer: "❯"
|
|
19
20
|
|
|
20
21
|
steps:
|
|
22
|
+
- id: intro
|
|
23
|
+
type: note
|
|
24
|
+
group: "Welcome"
|
|
25
|
+
message: "Grimoire Component Demo"
|
|
26
|
+
description: "This wizard showcases all 11 step types. Answer each prompt to see it in action."
|
|
27
|
+
style: banner
|
|
28
|
+
review:
|
|
29
|
+
hide: true
|
|
30
|
+
|
|
31
|
+
- id: input-section
|
|
32
|
+
type: note
|
|
33
|
+
group: "Text Inputs"
|
|
34
|
+
message: "Text Input Steps"
|
|
35
|
+
description: "text, password, number, editor, path"
|
|
36
|
+
style: info
|
|
37
|
+
review:
|
|
38
|
+
hide: true
|
|
39
|
+
|
|
21
40
|
- id: name
|
|
22
41
|
type: text
|
|
23
42
|
group: "Text Inputs"
|
|
@@ -50,6 +69,15 @@ steps:
|
|
|
50
69
|
value: 4
|
|
51
70
|
message: "At least 4 characters"
|
|
52
71
|
|
|
72
|
+
- id: selection-section
|
|
73
|
+
type: note
|
|
74
|
+
group: "Selections"
|
|
75
|
+
message: "Selection Steps"
|
|
76
|
+
description: "select, search, multiselect"
|
|
77
|
+
style: info
|
|
78
|
+
review:
|
|
79
|
+
hide: true
|
|
80
|
+
|
|
53
81
|
- id: framework
|
|
54
82
|
type: select
|
|
55
83
|
group: "Selections"
|
|
@@ -86,6 +114,15 @@ steps:
|
|
|
86
114
|
- { value: csharp, label: "C#" }
|
|
87
115
|
- { value: ruby, label: "Ruby" }
|
|
88
116
|
|
|
117
|
+
- id: boolean-section
|
|
118
|
+
type: note
|
|
119
|
+
group: "Toggles & Numbers"
|
|
120
|
+
message: "Boolean & Numeric Steps"
|
|
121
|
+
description: "toggle, confirm, number"
|
|
122
|
+
style: info
|
|
123
|
+
review:
|
|
124
|
+
hide: true
|
|
125
|
+
|
|
89
126
|
- id: dark-mode
|
|
90
127
|
type: toggle
|
|
91
128
|
group: "Toggles & Numbers"
|
|
@@ -102,6 +139,22 @@ steps:
|
|
|
102
139
|
min: 1024
|
|
103
140
|
max: 65535
|
|
104
141
|
|
|
142
|
+
- id: info
|
|
143
|
+
type: note
|
|
144
|
+
group: "Display"
|
|
145
|
+
message: "Almost done!"
|
|
146
|
+
description: "You've seen all 11 step types. Review your answers on the next screen."
|
|
147
|
+
review:
|
|
148
|
+
hide: true
|
|
149
|
+
|
|
150
|
+
- id: reminder
|
|
151
|
+
type: message
|
|
152
|
+
group: "Display"
|
|
153
|
+
message: "Final confirmation"
|
|
154
|
+
description: "This is a message step — it displays text and continues automatically."
|
|
155
|
+
review:
|
|
156
|
+
hide: true
|
|
157
|
+
|
|
105
158
|
- id: proceed
|
|
106
159
|
type: confirm
|
|
107
160
|
group: "Confirmation"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grimoire-wizard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Config-driven CLI wizard framework. Define interactive terminal wizards in YAML/JSON with back-navigation, conditional branching, theming, and structured output.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|