@optique/logtape 0.9.0-dev.201 → 0.9.0-dev.204

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
@@ -221,6 +221,7 @@ function debug(options = {}) {
221
221
  */
222
222
  function logOutputValueParser(options = {}) {
223
223
  return {
224
+ $mode: "sync",
224
225
  metavar: options.metavar ?? "FILE",
225
226
  parse(input) {
226
227
  if (input === "-") return {
@@ -468,6 +469,7 @@ function loggingOptions(config) {
468
469
  const outputParser = (0, __optique_core_modifiers.withDefault)(logOutput({ long: outputLong }), defaultOutput);
469
470
  if (!outputEnabled) {
470
471
  const constantOutputParser = {
472
+ $mode: "sync",
471
473
  $valueType: [],
472
474
  $stateType: [],
473
475
  priority: 0,
@@ -482,7 +484,7 @@ function loggingOptions(config) {
482
484
  success: true,
483
485
  value: defaultOutput
484
486
  }),
485
- suggest: () => [],
487
+ *suggest() {},
486
488
  getDocFragments: () => ({ fragments: [] })
487
489
  };
488
490
  return (0, __optique_core_constructs.group)(groupLabel, (0, __optique_core_constructs.object)({
package/dist/index.d.cts CHANGED
@@ -62,7 +62,7 @@ interface LogLevelOptions {
62
62
  *
63
63
  * @since 0.8.0
64
64
  */
65
- declare function logLevel(options?: LogLevelOptions): ValueParser<LogLevel$1>;
65
+ declare function logLevel(options?: LogLevelOptions): ValueParser<"sync", LogLevel$1>;
66
66
  //#endregion
67
67
  //#region src/verbosity.d.ts
68
68
  /**
@@ -135,7 +135,7 @@ interface VerbosityOptions {
135
135
  *
136
136
  * @since 0.8.0
137
137
  */
138
- declare function verbosity(options?: VerbosityOptions): Parser<LogLevel$1, unknown>;
138
+ declare function verbosity(options?: VerbosityOptions): Parser<"sync", LogLevel$1, unknown>;
139
139
  //#endregion
140
140
  //#region src/debug.d.ts
141
141
  /**
@@ -205,7 +205,7 @@ interface DebugOptions {
205
205
  *
206
206
  * @since 0.8.0
207
207
  */
208
- declare function debug(options?: DebugOptions): Parser<LogLevel$1, unknown>;
208
+ declare function debug(options?: DebugOptions): Parser<"sync", LogLevel$1, unknown>;
209
209
  //#endregion
210
210
  //#region src/output.d.ts
211
211
  /**
@@ -303,7 +303,7 @@ interface LogOutputOptions {
303
303
  *
304
304
  * @since 0.8.0
305
305
  */
306
- declare function logOutput(options?: LogOutputOptions): Parser<LogOutput | undefined, unknown>;
306
+ declare function logOutput(options?: LogOutputOptions): Parser<"sync", LogOutput | undefined, unknown>;
307
307
  /**
308
308
  * Creates a console sink with configurable stream selection.
309
309
  *
@@ -563,7 +563,7 @@ type LoggingOptionsConfig = LoggingOptionsWithLevel | LoggingOptionsWithVerbosit
563
563
  *
564
564
  * @since 0.8.0
565
565
  */
566
- declare function loggingOptions(config: LoggingOptionsConfig): Parser<LoggingOptionsResult, unknown>;
566
+ declare function loggingOptions(config: LoggingOptionsConfig): Parser<"sync", LoggingOptionsResult, unknown>;
567
567
  /**
568
568
  * Creates a LogTape configuration from parsed logging options.
569
569
  *
package/dist/index.d.ts CHANGED
@@ -62,7 +62,7 @@ interface LogLevelOptions {
62
62
  *
63
63
  * @since 0.8.0
64
64
  */
65
- declare function logLevel(options?: LogLevelOptions): ValueParser<LogLevel$1>;
65
+ declare function logLevel(options?: LogLevelOptions): ValueParser<"sync", LogLevel$1>;
66
66
  //#endregion
67
67
  //#region src/verbosity.d.ts
68
68
  /**
@@ -135,7 +135,7 @@ interface VerbosityOptions {
135
135
  *
136
136
  * @since 0.8.0
137
137
  */
138
- declare function verbosity(options?: VerbosityOptions): Parser<LogLevel$1, unknown>;
138
+ declare function verbosity(options?: VerbosityOptions): Parser<"sync", LogLevel$1, unknown>;
139
139
  //#endregion
140
140
  //#region src/debug.d.ts
141
141
  /**
@@ -205,7 +205,7 @@ interface DebugOptions {
205
205
  *
206
206
  * @since 0.8.0
207
207
  */
208
- declare function debug(options?: DebugOptions): Parser<LogLevel$1, unknown>;
208
+ declare function debug(options?: DebugOptions): Parser<"sync", LogLevel$1, unknown>;
209
209
  //#endregion
210
210
  //#region src/output.d.ts
211
211
  /**
@@ -303,7 +303,7 @@ interface LogOutputOptions {
303
303
  *
304
304
  * @since 0.8.0
305
305
  */
306
- declare function logOutput(options?: LogOutputOptions): Parser<LogOutput | undefined, unknown>;
306
+ declare function logOutput(options?: LogOutputOptions): Parser<"sync", LogOutput | undefined, unknown>;
307
307
  /**
308
308
  * Creates a console sink with configurable stream selection.
309
309
  *
@@ -563,7 +563,7 @@ type LoggingOptionsConfig = LoggingOptionsWithLevel | LoggingOptionsWithVerbosit
563
563
  *
564
564
  * @since 0.8.0
565
565
  */
566
- declare function loggingOptions(config: LoggingOptionsConfig): Parser<LoggingOptionsResult, unknown>;
566
+ declare function loggingOptions(config: LoggingOptionsConfig): Parser<"sync", LoggingOptionsResult, unknown>;
567
567
  /**
568
568
  * Creates a LogTape configuration from parsed logging options.
569
569
  *
package/dist/index.js CHANGED
@@ -198,6 +198,7 @@ function debug(options = {}) {
198
198
  */
199
199
  function logOutputValueParser(options = {}) {
200
200
  return {
201
+ $mode: "sync",
201
202
  metavar: options.metavar ?? "FILE",
202
203
  parse(input) {
203
204
  if (input === "-") return {
@@ -445,6 +446,7 @@ function loggingOptions(config) {
445
446
  const outputParser = withDefault(logOutput({ long: outputLong }), defaultOutput);
446
447
  if (!outputEnabled) {
447
448
  const constantOutputParser = {
449
+ $mode: "sync",
448
450
  $valueType: [],
449
451
  $stateType: [],
450
452
  priority: 0,
@@ -459,7 +461,7 @@ function loggingOptions(config) {
459
461
  success: true,
460
462
  value: defaultOutput
461
463
  }),
462
- suggest: () => [],
464
+ *suggest() {},
463
465
  getDocFragments: () => ({ fragments: [] })
464
466
  };
465
467
  return group(groupLabel, object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/logtape",
3
- "version": "0.9.0-dev.201+a103c62c",
3
+ "version": "0.9.0-dev.204+0747d0e6",
4
4
  "description": "LogTape logging integration for Optique CLI parser",
5
5
  "keywords": [
6
6
  "CLI",