@optique/inquirer 1.0.0 → 1.0.2-dev.1987

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/dist/index.cjs CHANGED
@@ -298,6 +298,9 @@ function prompt(parser, config) {
298
298
  }],
299
299
  leadingNames: parser.leadingNames,
300
300
  acceptingAnyToken: parser.acceptingAnyToken,
301
+ shouldDeferCompletion(state) {
302
+ return !isPromptBindState(state) || !state.hasCliValue;
303
+ },
301
304
  getSuggestRuntimeNodes(state, path) {
302
305
  const innerState = isPromptBindState(state) ? state.cliState === void 0 ? parser.initialState : state.cliState : state;
303
306
  return (0, __optique_core_extension.delegateSuggestNodes)(parser, promptedParser, state, path, innerState, "prepend");
package/dist/index.js CHANGED
@@ -275,6 +275,9 @@ function prompt(parser, config) {
275
275
  }],
276
276
  leadingNames: parser.leadingNames,
277
277
  acceptingAnyToken: parser.acceptingAnyToken,
278
+ shouldDeferCompletion(state) {
279
+ return !isPromptBindState(state) || !state.hasCliValue;
280
+ },
278
281
  getSuggestRuntimeNodes(state, path) {
279
282
  const innerState = isPromptBindState(state) ? state.cliState === void 0 ? parser.initialState : state.cliState : state;
280
283
  return delegateSuggestNodes(parser, promptedParser, state, path, innerState, "prepend");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/inquirer",
3
- "version": "1.0.0",
3
+ "version": "1.0.2-dev.1987+5b69ea74",
4
4
  "description": "Interactive prompt support for Optique via Inquirer.js",
5
5
  "keywords": [
6
6
  "CLI",
@@ -56,13 +56,13 @@
56
56
  "sideEffects": false,
57
57
  "dependencies": {
58
58
  "@inquirer/prompts": "^8.3.0",
59
- "@optique/core": "1.0.0"
59
+ "@optique/core": "1.0.2-dev.1987+5b69ea74"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^20.19.9",
63
63
  "tsdown": "^0.13.0",
64
64
  "typescript": "^5.8.3",
65
- "@optique/env": "1.0.0"
65
+ "@optique/env": "1.0.2-dev.1987+5b69ea74"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "tsdown",