@optique/logtape 0.9.0-dev.206 → 0.9.0-dev.211

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright 2025 Hong Minhee
3
+ Copyright 2025–2026 Hong Minhee
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
package/dist/index.cjs CHANGED
@@ -221,7 +221,6 @@ function debug(options = {}) {
221
221
  */
222
222
  function logOutputValueParser(options = {}) {
223
223
  return {
224
- $mode: "sync",
225
224
  metavar: options.metavar ?? "FILE",
226
225
  parse(input) {
227
226
  if (input === "-") return {
@@ -469,7 +468,6 @@ function loggingOptions(config) {
469
468
  const outputParser = (0, __optique_core_modifiers.withDefault)(logOutput({ long: outputLong }), defaultOutput);
470
469
  if (!outputEnabled) {
471
470
  const constantOutputParser = {
472
- $mode: "sync",
473
471
  $valueType: [],
474
472
  $stateType: [],
475
473
  priority: 0,
@@ -484,7 +482,7 @@ function loggingOptions(config) {
484
482
  success: true,
485
483
  value: defaultOutput
486
484
  }),
487
- *suggest() {},
485
+ suggest: () => [],
488
486
  getDocFragments: () => ({ fragments: [] })
489
487
  };
490
488
  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<"sync", LogLevel$1>;
65
+ declare function logLevel(options?: LogLevelOptions): ValueParser<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<"sync", LogLevel$1, unknown>;
138
+ declare function verbosity(options?: VerbosityOptions): Parser<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<"sync", LogLevel$1, unknown>;
208
+ declare function debug(options?: DebugOptions): Parser<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<"sync", LogOutput | undefined, unknown>;
306
+ declare function logOutput(options?: LogOutputOptions): Parser<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<"sync", LoggingOptionsResult, unknown>;
566
+ declare function loggingOptions(config: LoggingOptionsConfig): Parser<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<"sync", LogLevel$1>;
65
+ declare function logLevel(options?: LogLevelOptions): ValueParser<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<"sync", LogLevel$1, unknown>;
138
+ declare function verbosity(options?: VerbosityOptions): Parser<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<"sync", LogLevel$1, unknown>;
208
+ declare function debug(options?: DebugOptions): Parser<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<"sync", LogOutput | undefined, unknown>;
306
+ declare function logOutput(options?: LogOutputOptions): Parser<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<"sync", LoggingOptionsResult, unknown>;
566
+ declare function loggingOptions(config: LoggingOptionsConfig): Parser<LoggingOptionsResult, unknown>;
567
567
  /**
568
568
  * Creates a LogTape configuration from parsed logging options.
569
569
  *
package/dist/index.js CHANGED
@@ -198,7 +198,6 @@ function debug(options = {}) {
198
198
  */
199
199
  function logOutputValueParser(options = {}) {
200
200
  return {
201
- $mode: "sync",
202
201
  metavar: options.metavar ?? "FILE",
203
202
  parse(input) {
204
203
  if (input === "-") return {
@@ -446,7 +445,6 @@ function loggingOptions(config) {
446
445
  const outputParser = withDefault(logOutput({ long: outputLong }), defaultOutput);
447
446
  if (!outputEnabled) {
448
447
  const constantOutputParser = {
449
- $mode: "sync",
450
448
  $valueType: [],
451
449
  $stateType: [],
452
450
  priority: 0,
@@ -461,7 +459,7 @@ function loggingOptions(config) {
461
459
  success: true,
462
460
  value: defaultOutput
463
461
  }),
464
- *suggest() {},
462
+ suggest: () => [],
465
463
  getDocFragments: () => ({ fragments: [] })
466
464
  };
467
465
  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.206+78abd1b3",
3
+ "version": "0.9.0-dev.211+322b48ee",
4
4
  "description": "LogTape logging integration for Optique CLI parser",
5
5
  "keywords": [
6
6
  "CLI",