@optique/inquirer 1.3.0-dev.2444 → 1.3.0-dev.2452
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 +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -64,6 +64,8 @@ Features
|
|
|
64
64
|
testing
|
|
65
65
|
- *Transparent composition* with `bindEnv()` and `bindConfig()` — the
|
|
66
66
|
prompt fires only when no higher-priority source supplies a value
|
|
67
|
+
- *Dependency-derived configurations* with `derivePromptConfig()` — later
|
|
68
|
+
questions can adapt to values supplied by CLI input, bindings, or prompts
|
|
67
69
|
- *Prompt-only values* via `prompt(fail<T>(), …)` when a value should not
|
|
68
70
|
be exposed as a CLI option
|
|
69
71
|
- *TTY-free testing* via the `prompter` escape hatch on every config type
|
package/dist/index.d.cts
CHANGED
|
@@ -228,7 +228,8 @@ type BasePromptConfig<T> = T extends boolean ? ConfirmConfig : T extends number
|
|
|
228
228
|
*
|
|
229
229
|
* Derived prompt configurations resolve against this union: the adapter's
|
|
230
230
|
* configuration type supplies the resolver's return type, so a resolver
|
|
231
|
-
* may produce any prompt kind the adapter supports.
|
|
231
|
+
* may produce any prompt kind the adapter supports. The resolver author must
|
|
232
|
+
* choose a kind whose result matches the wrapped parser's value type.
|
|
232
233
|
*
|
|
233
234
|
* @since 1.3.0
|
|
234
235
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -228,7 +228,8 @@ type BasePromptConfig<T> = T extends boolean ? ConfirmConfig : T extends number
|
|
|
228
228
|
*
|
|
229
229
|
* Derived prompt configurations resolve against this union: the adapter's
|
|
230
230
|
* configuration type supplies the resolver's return type, so a resolver
|
|
231
|
-
* may produce any prompt kind the adapter supports.
|
|
231
|
+
* may produce any prompt kind the adapter supports. The resolver author must
|
|
232
|
+
* choose a kind whose result matches the wrapped parser's value type.
|
|
232
233
|
*
|
|
233
234
|
* @since 1.3.0
|
|
234
235
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/inquirer",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2452",
|
|
4
4
|
"description": "Inquirer.js prompt support for Optique",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"sideEffects": false,
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@inquirer/prompts": "^8.3.0",
|
|
65
|
-
"@optique/core": "1.3.0-dev.
|
|
66
|
-
"@optique/prompt": "1.3.0-dev.
|
|
65
|
+
"@optique/core": "1.3.0-dev.2452+0b677f5c",
|
|
66
|
+
"@optique/prompt": "1.3.0-dev.2452+0b677f5c"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@optique/config": "1.3.0-dev.
|
|
70
|
-
"@optique/env": "1.3.0-dev.
|
|
71
|
-
"@optique/run": "1.3.0-dev.
|
|
69
|
+
"@optique/config": "1.3.0-dev.2452+0b677f5c",
|
|
70
|
+
"@optique/env": "1.3.0-dev.2452+0b677f5c",
|
|
71
|
+
"@optique/run": "1.3.0-dev.2452+0b677f5c",
|
|
72
72
|
"@types/node": "^24.0.0",
|
|
73
73
|
"fast-check": "^4.7.0",
|
|
74
74
|
"tsdown": "^0.13.0",
|