@optique/prompt 1.3.0-dev.2430 → 1.3.0-dev.2431

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
@@ -453,7 +453,8 @@ function createPromptAdapter(adapter) {
453
453
  if (!isPromptBindState(state)) return source.extractSourceValue(state);
454
454
  return source.extractSourceValue(state.cliState ?? state);
455
455
  },
456
- completeSource: source.preservesSourceValue === false ? void 0 : (state, exec) => promptedParser.complete(state, exec)
456
+ completeSource: source.preservesSourceValue === false ? void 0 : (state, exec) => promptedParser.complete(state, exec),
457
+ ...source.preservesSourceValue !== false && { completesWhenMissing: source.completesWhenMissing !== false && (config.when == null || config.otherwise !== void 0) }
457
458
  }));
458
459
  const composedMetadata = isDerivedPromptConfig(config) ? {
459
460
  ...dependencyMetadata ?? {},
package/dist/index.js CHANGED
@@ -430,7 +430,8 @@ function createPromptAdapter(adapter) {
430
430
  if (!isPromptBindState(state)) return source.extractSourceValue(state);
431
431
  return source.extractSourceValue(state.cliState ?? state);
432
432
  },
433
- completeSource: source.preservesSourceValue === false ? void 0 : (state, exec) => promptedParser.complete(state, exec)
433
+ completeSource: source.preservesSourceValue === false ? void 0 : (state, exec) => promptedParser.complete(state, exec),
434
+ ...source.preservesSourceValue !== false && { completesWhenMissing: source.completesWhenMissing !== false && (config.when == null || config.otherwise !== void 0) }
434
435
  }));
435
436
  const composedMetadata = isDerivedPromptConfig(config) ? {
436
437
  ...dependencyMetadata ?? {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/prompt",
3
- "version": "1.3.0-dev.2430",
3
+ "version": "1.3.0-dev.2431",
4
4
  "description": "Generic prompt adapter support for Optique",
5
5
  "keywords": [
6
6
  "CLI",
@@ -60,12 +60,12 @@
60
60
  },
61
61
  "sideEffects": false,
62
62
  "dependencies": {
63
- "@optique/core": "1.3.0-dev.2430+fd4cca70"
63
+ "@optique/core": "1.3.0-dev.2431+d0d5316a"
64
64
  },
65
65
  "devDependencies": {
66
- "@optique/config": "1.3.0-dev.2430+fd4cca70",
67
- "@optique/env": "1.3.0-dev.2430+fd4cca70",
68
- "@optique/run": "1.3.0-dev.2430+fd4cca70",
66
+ "@optique/config": "1.3.0-dev.2431+d0d5316a",
67
+ "@optique/env": "1.3.0-dev.2431+d0d5316a",
68
+ "@optique/run": "1.3.0-dev.2431+d0d5316a",
69
69
  "@types/node": "^24.0.0",
70
70
  "fast-check": "^4.7.0",
71
71
  "tsdown": "^0.13.0",