@optique/config 1.0.0-dev.1580 → 1.0.0-dev.1583

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
@@ -294,7 +294,7 @@ function bindConfig(parser, options) {
294
294
  function isConfigBindState(value) {
295
295
  return value != null && typeof value === "object" && configBindStateKey in value;
296
296
  }
297
- function shouldDeferPromptUntilConfigResolves(state) {
297
+ function shouldDeferPromptUntilConfigResolves(state, _exec) {
298
298
  const annotations = (0, __optique_core_annotations.getAnnotations)(state);
299
299
  return annotations?.[options.context.id] === phase1ConfigAnnotationMarker;
300
300
  }
@@ -352,8 +352,8 @@ function bindConfig(parser, options) {
352
352
  };
353
353
  return (0, __optique_core_mode_dispatch.mapModeValue)(parser.$mode, parser.parse(innerContext), processResult);
354
354
  },
355
- complete: (state) => {
356
- if (isConfigBindState(state) && state.hasCliValue) return parser.complete(state.cliState);
355
+ complete: (state, exec) => {
356
+ if (isConfigBindState(state) && state.hasCliValue) return parser.complete(state.cliState, exec);
357
357
  return (0, __optique_core_mode_dispatch.wrapForMode)(parser.$mode, getConfigOrDefault(state, options));
358
358
  },
359
359
  suggest: parser.suggest,
package/dist/index.js CHANGED
@@ -271,7 +271,7 @@ function bindConfig(parser, options) {
271
271
  function isConfigBindState(value) {
272
272
  return value != null && typeof value === "object" && configBindStateKey in value;
273
273
  }
274
- function shouldDeferPromptUntilConfigResolves(state) {
274
+ function shouldDeferPromptUntilConfigResolves(state, _exec) {
275
275
  const annotations = getAnnotations(state);
276
276
  return annotations?.[options.context.id] === phase1ConfigAnnotationMarker;
277
277
  }
@@ -329,8 +329,8 @@ function bindConfig(parser, options) {
329
329
  };
330
330
  return mapModeValue(parser.$mode, parser.parse(innerContext), processResult);
331
331
  },
332
- complete: (state) => {
333
- if (isConfigBindState(state) && state.hasCliValue) return parser.complete(state.cliState);
332
+ complete: (state, exec) => {
333
+ if (isConfigBindState(state) && state.hasCliValue) return parser.complete(state.cliState, exec);
334
334
  return wrapForMode(parser.$mode, getConfigOrDefault(state, options));
335
335
  },
336
336
  suggest: parser.suggest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/config",
3
- "version": "1.0.0-dev.1580+2d932679",
3
+ "version": "1.0.0-dev.1583+82b74b4b",
4
4
  "description": "Configuration file support for Optique with Standard Schema validation",
5
5
  "keywords": [
6
6
  "CLI",
@@ -59,7 +59,7 @@
59
59
  "@standard-schema/spec": "^1.1.0"
60
60
  },
61
61
  "dependencies": {
62
- "@optique/core": "1.0.0-dev.1580+2d932679"
62
+ "@optique/core": "1.0.0-dev.1583+82b74b4b"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@standard-schema/spec": "^1.1.0",
@@ -67,7 +67,7 @@
67
67
  "tsdown": "^0.13.0",
68
68
  "typescript": "^5.8.3",
69
69
  "zod": "^3.25.0 || ^4.0.0",
70
- "@optique/env": "1.0.0-dev.1580+2d932679"
70
+ "@optique/env": "1.0.0-dev.1583+82b74b4b"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "tsdown",