@optique/core 1.3.0-dev.2451 → 1.3.0-dev.2454
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/package.json +2 -2
- package/skills/optique/SKILL.md +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/core",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2454",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
},
|
|
222
222
|
"sideEffects": false,
|
|
223
223
|
"devDependencies": {
|
|
224
|
-
"@optique/env": "1.3.0-dev.
|
|
224
|
+
"@optique/env": "1.3.0-dev.2454+02d5e552",
|
|
225
225
|
"@types/node": "^24.0.0",
|
|
226
226
|
"fast-check": "^4.7.0",
|
|
227
227
|
"tsdown": "^0.13.0",
|
package/skills/optique/SKILL.md
CHANGED
|
@@ -60,7 +60,11 @@ Core rules
|
|
|
60
60
|
re-exported by *@optique/inquirer* and *@optique/clack*) when a prompt's
|
|
61
61
|
choices or message depend on another parsed value. The resolver may be
|
|
62
62
|
async and runs only at the real prompt fallback, after the named sources
|
|
63
|
-
resolve;
|
|
63
|
+
resolve; pass `[sourceA, sourceB]` when it reads several sources. The
|
|
64
|
+
resolver's prompt kind must return the wrapped parser's value type. Derive
|
|
65
|
+
the wrapped parser separately when the CLI domain should change, and make
|
|
66
|
+
it a dependency source only if another consumer needs its answer. Keep
|
|
67
|
+
static prompt configs for everything else.
|
|
64
68
|
- Build subcommands with `command()` combined by `or()`. Put a literal field
|
|
65
69
|
such as `command: constant("serve")` in each branch when you want a
|
|
66
70
|
discriminated union.
|
|
@@ -257,6 +261,7 @@ Reference links
|
|
|
257
261
|
- Construct combinators: <https://optique.dev/concepts/constructs.md>
|
|
258
262
|
- Modifiers: <https://optique.dev/concepts/modifiers.md>
|
|
259
263
|
- Value parser catalog: <https://optique.dev/concepts/valueparsers.md>
|
|
264
|
+
- Inter-option dependencies: <https://optique.dev/concepts/dependencies.md>
|
|
260
265
|
- Structured messages: <https://optique.dev/concepts/messages.md>
|
|
261
266
|
- Shell completion: <https://optique.dev/concepts/completion.md>
|
|
262
267
|
- Command discovery: <https://optique.dev/concepts/discover.md>
|