@optique/core 1.3.0-dev.2491 → 1.3.0-dev.2497

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.3.0-dev.2491",
3
+ "version": "1.3.0-dev.2497",
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.2491+0b23bdcf",
224
+ "@optique/env": "1.3.0-dev.2497+23bea5fb",
225
225
  "@types/node": "^24.0.0",
226
226
  "fast-check": "^4.7.0",
227
227
  "tsdown": "^0.13.0",
@@ -24,12 +24,12 @@ Core rules
24
24
 
25
25
  - Use `run()` from *@optique/run* for applications; use `parse()` or
26
26
  `runParser()` for embedded and custom runtimes.
27
- - In parser-focused tests, use `parseArgs()` or `parseArgsSync()` from
28
- *@optique/testing/parser* for inferred values and detailed failures without
29
- running help, output, exits, or command handlers.
27
+ - In tests, use `parseArgs()`/`parseArgsSync()` from *@optique/testing/parser*
28
+ for parser results, `captureRun()` from *@optique/testing/run* for runner
29
+ output/exits, or `captureProgramRun()` from *@optique/testing/discover* for
30
+ dispatch/hooks. Direct console/process writes bypass capture.
30
31
  - Compose parsers with `object()`, `tuple()`, `seq()`, `or()`, `merge()`, and
31
- modifiers. Do not write imperative `if`/`else` argument scanners around
32
- Optique parsers.
32
+ modifiers. Do not hand-write argument scanners around Optique parsers.
33
33
  - Let TypeScript infer the parsed value type from the parser. Do not
34
34
  hand-maintain a separate interface for the result unless another API
35
35
  boundary requires it.