@optique/core 1.3.0-dev.2351 → 1.3.0-dev.2352
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 +4 -0
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.2352",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"fast-check": "^4.7.0",
|
|
226
226
|
"tsdown": "^0.13.0",
|
|
227
227
|
"typescript": "^5.8.3",
|
|
228
|
-
"@optique/env": "1.3.0-dev.
|
|
228
|
+
"@optique/env": "1.3.0-dev.2352+32a63ede"
|
|
229
229
|
},
|
|
230
230
|
"scripts": {
|
|
231
231
|
"build": "tsdown",
|
package/skills/optique/SKILL.md
CHANGED
|
@@ -220,6 +220,10 @@ Common mistakes checklist
|
|
|
220
220
|
`message` values.
|
|
221
221
|
- Do not forget to register source contexts when using `bindEnv()`,
|
|
222
222
|
`bindConfig()`, or `bindDerivedDefault()`.
|
|
223
|
+
- Do not probe runtime capabilities eagerly before constructing a prompt
|
|
224
|
+
parser. Put synchronous or asynchronous checks in the prompt config's
|
|
225
|
+
`when` field and provide a typed `otherwise` value. The check then runs
|
|
226
|
+
only if parsing reaches the prompt fallback.
|
|
223
227
|
|
|
224
228
|
For the detailed maintained guide, use <https://optique.dev/pitfalls.md>.
|
|
225
229
|
|