@hop-top/kit 0.5.0-alpha.0 → 0.5.0-alpha.2

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/README.md +237 -9
  3. package/dist/aim-CTp-kJW2.d.ts +139 -0
  4. package/dist/aim.d.ts +1 -116
  5. package/dist/alias-dhhr08Ei.d.ts +88 -0
  6. package/dist/alias.d.ts +2 -73
  7. package/dist/api-miiso81x.d.ts +77 -0
  8. package/dist/api.d.ts +1 -62
  9. package/dist/auth-2-jfgiHn.d.ts +34 -0
  10. package/dist/auth.d.ts +1 -26
  11. package/dist/cli-DgOEOsPB.d.ts +450 -0
  12. package/dist/cli.d.ts +5 -309
  13. package/dist/cli.js +250 -62
  14. package/dist/config-BUY7_W2n.d.ts +103 -0
  15. package/dist/config.d.ts +1 -97
  16. package/dist/errcorrect-BcX1Ft0K.d.ts +44 -0
  17. package/dist/errcorrect.d.ts +1 -37
  18. package/dist/id/index.d.ts +2 -83
  19. package/dist/index--C7Mtsmm.d.ts +328 -0
  20. package/dist/index-C3Zw4wDJ.d.ts +359 -0
  21. package/dist/index-MLrRDvEG.d.ts +1073 -0
  22. package/dist/index-QSffbLnj.d.ts +94 -0
  23. package/dist/index.d.ts +26 -0
  24. package/dist/index.js +5863 -0
  25. package/dist/llm-B5XUWH8T.d.ts +231 -0
  26. package/dist/llm.d.ts +1 -188
  27. package/dist/mcp/index.d.ts +2 -0
  28. package/dist/mcp/index.js +1453 -0
  29. package/dist/netpolicy-asvCfwi8.d.ts +138 -0
  30. package/dist/netpolicy.d.ts +1 -0
  31. package/dist/netpolicy.js +118 -0
  32. package/dist/output-VFFLqor9.d.ts +521 -0
  33. package/dist/output.d.ts +2 -213
  34. package/dist/output.js +554 -43
  35. package/dist/progress-CAzyxeWl.d.ts +38 -0
  36. package/dist/progress.d.ts +1 -30
  37. package/dist/provenance-SMFHm5gx.d.ts +30 -0
  38. package/dist/provenance.d.ts +1 -24
  39. package/dist/routellm-PGSt2D1y.d.ts +75 -0
  40. package/dist/routellm.d.ts +2 -64
  41. package/dist/rpc-D5xLEf8V.d.ts +32 -0
  42. package/dist/rpc.d.ts +2 -25
  43. package/dist/safety-CUaYEjZc.d.ts +30 -0
  44. package/dist/safety.d.ts +1 -24
  45. package/dist/scope-BrhYB4ij.d.ts +141 -0
  46. package/dist/scope.d.ts +1 -121
  47. package/dist/stream-CrjeCp0M.d.ts +44 -0
  48. package/dist/stream.d.ts +1 -35
  49. package/dist/telemetry/index.d.ts +1 -315
  50. package/dist/telemetry/index.js +12 -1
  51. package/dist/tui/index.d.ts +4 -298
  52. package/dist/tui/index.js +61 -9
  53. package/dist/upgrade-p_zh3pvV.d.ts +102 -0
  54. package/dist/upgrade.d.ts +1 -95
  55. package/dist/xdg-DB7Shoib.d.ts +179 -0
  56. package/dist/xdg.d.ts +1 -169
  57. package/package.json +65 -25
  58. package/src/cli.offline.test.ts +93 -0
  59. package/src/cli.parity.test.ts +192 -0
  60. package/src/cli.ts +112 -12
  61. package/src/index.test.ts +58 -0
  62. package/src/index.ts +36 -0
  63. package/src/log.parity.test.ts +105 -0
  64. package/src/log.ts +64 -13
  65. package/src/mcp/bridge.test.ts +150 -0
  66. package/src/mcp/bridge.ts +246 -0
  67. package/src/mcp/conformance.test.ts +336 -0
  68. package/src/mcp/dispatch.ts +313 -0
  69. package/src/mcp/index.ts +138 -0
  70. package/src/mcp/legacy.ts +314 -0
  71. package/src/mcp/mcp.test.ts +697 -0
  72. package/src/mcp/modern-confirm.test.ts +520 -0
  73. package/src/mcp/modern-confirm.ts +452 -0
  74. package/src/mcp/modern.ts +723 -0
  75. package/src/mcp/tasks.ts +82 -0
  76. package/src/mcp/testtree.ts +250 -0
  77. package/src/mcp/types.ts +504 -0
  78. package/src/netpolicy.test.ts +202 -0
  79. package/src/netpolicy.ts +231 -0
  80. package/src/output/dispatch.ts +10 -2
  81. package/src/output/error.ts +293 -0
  82. package/src/output/formatter.ts +29 -5
  83. package/src/output/formatters/csv.ts +48 -12
  84. package/src/output/formatters/json.ts +4 -25
  85. package/src/output/formatters/project.ts +34 -0
  86. package/src/output/formatters/table.ts +8 -6
  87. package/src/output/formatters/text.ts +7 -3
  88. package/src/output/formatters/yaml.ts +5 -22
  89. package/src/output/projection.test.ts +298 -0
  90. package/src/output/projection.ts +33 -59
  91. package/src/output/template.ts +11 -21
  92. package/src/output.surface.test.ts +41 -0
  93. package/src/output.ts +39 -3
  94. package/src/telemetry/client.test.ts +31 -0
  95. package/src/telemetry/client.ts +7 -1
  96. package/src/telemetry/offline.test.ts +64 -0
  97. package/src/tui/parity.test.ts +142 -0
  98. package/src/tui/parity.ts +59 -13
  99. package/test/output/csv.test.ts +164 -0
  100. package/test/output/error.test.ts +241 -0
@@ -0,0 +1,450 @@
1
+ import { Command } from 'commander';
2
+ import { E as ErrOffline, O as OfflineError, g as guardFetch, a as isOffline, b as isOfflineError, w as withOffline } from './netpolicy-asvCfwi8.js';
3
+ import { Writable } from 'node:stream';
4
+ import { F as Format } from './output-VFFLqor9.js';
5
+
6
+ /**
7
+ * @module tui/parity
8
+ * @package @hop-top/kit
9
+ *
10
+ * Cross-language parity constants SoT. Values are read from the canonical
11
+ * `contracts/parity/parity.json` at build time — tsup/esbuild inlines the
12
+ * JSON into the emitted bundle, so the published package stays
13
+ * self-contained without vendoring a second copy of the file.
14
+ *
15
+ * All TUI modules should import constants from here, not hardcode them.
16
+ */
17
+ /** Display metadata for a single help section. */
18
+ interface SectionConfig {
19
+ title: string;
20
+ }
21
+ /**
22
+ * ParityData models every content block `parity.json` declares.
23
+ *
24
+ * A block present in the JSON but absent here is decoration: nothing loads
25
+ * it, so no test and no consumer can see it drift. `PARITY_BLOCKS` below is
26
+ * the machine-checkable half of that rule.
27
+ */
28
+ interface ParityData {
29
+ description: string;
30
+ status: {
31
+ symbols: Record<'info' | 'success' | 'error' | 'warn', string>;
32
+ };
33
+ spinner: {
34
+ frames: string[];
35
+ interval_ms: number;
36
+ };
37
+ anim: {
38
+ runes: string;
39
+ interval_ms: number;
40
+ default_width: number;
41
+ };
42
+ help: {
43
+ /** Fang-vocabulary section names in render order. */
44
+ section_order: string[];
45
+ /** Display metadata keyed by fang section name. */
46
+ sections: Record<string, SectionConfig>;
47
+ };
48
+ verbosity: {
49
+ flag: string;
50
+ /**
51
+ * Maps the stacked `-V` count (as a decimal string) to a log level name.
52
+ * Keys are strings because JSON object keys are.
53
+ */
54
+ levels: Record<string, string>;
55
+ quiet_override: string;
56
+ };
57
+ streams: {
58
+ flag: string;
59
+ label_format: string;
60
+ output: string;
61
+ };
62
+ /** Sibling contract files the parity suite also covers. */
63
+ extends: string[];
64
+ }
65
+
66
+ /**
67
+ * @module hint
68
+ * @package @hop-top/kit
69
+ *
70
+ * Contextual next-step hints — mirrors Go's output/hint.go contract.
71
+ *
72
+ * Hints guide users (and agents) toward the logical next action without
73
+ * burying them in a wall of text. They are suppressed when output is
74
+ * machine-formatted (JSON/YAML), piped (non-TTY), or explicitly disabled
75
+ * via flag/env.
76
+ */
77
+
78
+ /** A single next-step suggestion attached to a command. */
79
+ interface Hint {
80
+ /** Human-readable hint text (e.g. `"Run \`hop version\` to verify."`). */
81
+ message: string;
82
+ /**
83
+ * When provided, the hint is only rendered if this returns true.
84
+ * Omit (or set to undefined) for hints that always apply.
85
+ */
86
+ condition?: () => boolean;
87
+ }
88
+ /** Options read by {@link hintsEnabled} — subset of parsed CLI opts. */
89
+ interface HintOptions {
90
+ /** Value of --no-hints flag. */
91
+ noHints?: boolean;
92
+ /** Value of --quiet flag. */
93
+ quiet?: boolean;
94
+ /** Value of hints.enabled config key (false = disabled). */
95
+ hintsEnabled?: boolean;
96
+ }
97
+ /**
98
+ * Concurrency-safe registry mapping command names to hints.
99
+ * Mirrors Go's `output.HintSet`.
100
+ */
101
+ declare class HintSet {
102
+ private readonly m;
103
+ /** Add one or more hints for the given command name. */
104
+ register(cmd: string, ...hints: Hint[]): void;
105
+ /**
106
+ * Return a copy of the hints registered for cmd.
107
+ * Returns an empty array when none are registered.
108
+ */
109
+ lookup(cmd: string): Hint[];
110
+ }
111
+ /** Return only the hints whose condition is undefined or returns true. */
112
+ declare function active(hints: Hint[]): Hint[];
113
+ /**
114
+ * Report whether hints should be rendered given the current options.
115
+ * Mirrors Go's `output.HintsEnabled`.
116
+ *
117
+ * Hints are disabled when any of:
118
+ * - `opts.noHints` is true
119
+ * - `opts.hintsEnabled` is explicitly false
120
+ * - `opts.quiet` is true
121
+ * - `HOP_QUIET_HINTS` env var is set to `"1"`, `"true"`, or `"yes"`
122
+ */
123
+ declare function hintsEnabled(opts: HintOptions): boolean;
124
+ /**
125
+ * Write active hints to `w` with dimmed styling.
126
+ * No-op when format is not `"table"`, stdout is not a TTY, or hints disabled.
127
+ * Mirrors Go's `output.RenderHints`.
128
+ *
129
+ * @param w Writable stream (typically `process.stdout`).
130
+ * @param hints Hints to consider (pass `hintSet.lookup(cmdName)`).
131
+ * @param format Current output format.
132
+ * @param opts Parsed CLI options (noHints, quiet, hintsEnabled).
133
+ * @param muted Hex color for the hint prefix/text (e.g. `"#858183"`).
134
+ * Ignored when NO_COLOR env var is set or stdout is not a TTY.
135
+ */
136
+ declare function renderHints(w: Writable, hints: Hint[], format: Format, opts: HintOptions, muted: string): void;
137
+ /**
138
+ * Add a standard upgrade hint: `"Run \`<binary> version\` to verify."`
139
+ * Active only when `upgraded` returns true.
140
+ * Mirrors Go's `output.RegisterUpgradeHints`.
141
+ */
142
+ declare function registerUpgradeHints(hints: HintSet, binary: string, upgraded: () => boolean): void;
143
+ /**
144
+ * Add a standard version hint: `"Run \`<binary> upgrade\` to get latest."`
145
+ * Active only when `updateAvail` returns true.
146
+ * Mirrors Go's `output.RegisterVersionHints`.
147
+ */
148
+ declare function registerVersionHints(hints: HintSet, binary: string, updateAvail: () => boolean): void;
149
+
150
+ /**
151
+ * @module cli
152
+ * @package @hop-top/kit
153
+ *
154
+ * Commander-based CLI factory that enforces the hop-top CLI contract.
155
+ *
156
+ * The hop-top CLI contract:
157
+ * - No `help` subcommand; help is exposed only as -h/--help flag.
158
+ * - `completion` is a management-group command (hidden from default help).
159
+ * - Version is a root-level option (-v/--version), NOT a subcommand.
160
+ * - All hop-top CLIs expose three global options on the root command:
161
+ * --format <fmt> table | json | yaml (default: "table")
162
+ * --quiet suppress non-essential output
163
+ * --no-color disable ANSI colour
164
+ * - Errors are printed to stderr in error color (unless --no-color is set).
165
+ *
166
+ * Requirements: Node >= 20, commander ^14.
167
+ *
168
+ * @example
169
+ * ```ts
170
+ * import { createCLI } from '@hop-top/kit/cli';
171
+ * const { program, theme } = createCLI({ name: 'mytool', version: '1.0.0', description: 'My tool' });
172
+ * program.command('run').action(() => { ... });
173
+ * program.parse();
174
+ * ```
175
+ */
176
+
177
+ /**
178
+ * Return the single-character shorthand declared by the parity contract's
179
+ * `verbosity.flag`, with leading dashes stripped. A contract value that is
180
+ * not a single character after stripping falls back to `V`.
181
+ *
182
+ * Taking the contract as a parameter (rather than reading the module-level
183
+ * `parity`) keeps the mapping testable against a constructed `ParityData`
184
+ * without mutating the shared `parity.json`.
185
+ */
186
+ declare function verbosityShorthand(d: ParityData): string;
187
+ /**
188
+ * Render the `-V` option spec commander registers, e.g. `-V, --verbose`.
189
+ * The shorthand comes from the parity contract; the long name is
190
+ * kit-local (the contract declares only the shorthand).
191
+ */
192
+ declare function verbosityFlagSpec(d: ParityData): string;
193
+ /** Read the accumulated -V count for a parsed command tree. */
194
+ declare function verboseCount(cmd: Command): number;
195
+ interface StreamDef {
196
+ name: string;
197
+ description: string;
198
+ }
199
+ /**
200
+ * Return the long flag name declared by the parity contract's
201
+ * `streams.flag`, with leading dashes stripped (commander's parsed option
202
+ * key is the undashed camelCase name). Falls back to `stream`.
203
+ *
204
+ * Taking the contract as a parameter (rather than reading the module-level
205
+ * `parity`) keeps the mapping testable against a constructed `ParityData`
206
+ * without mutating the shared `parity.json`.
207
+ */
208
+ declare function streamFlagName(d: ParityData): string;
209
+ /**
210
+ * Render a stream's prefix from the parity contract's
211
+ * `streams.label_format` template. The template's `{name}` placeholder is
212
+ * substituted with the stream name; a trailing space separates the label
213
+ * from the payload.
214
+ */
215
+ declare function streamLabel(d: ParityData, name: string): string;
216
+ /**
217
+ * Resolve the parity contract's `streams.output` destination to a stream.
218
+ * Anything other than `stdout` resolves to stderr, which is the contract's
219
+ * declared destination.
220
+ */
221
+ declare function streamOutput(d: ParityData): NodeJS.WritableStream;
222
+ /**
223
+ * Register a named diagnostic stream on a command.
224
+ * Adds the parity contract's stream option (comma-separated) on first call.
225
+ *
226
+ * Parity note: Go uses StringSlice (repeatable --stream); TS and Python
227
+ * use a single comma-separated string value.
228
+ */
229
+ declare function registerStream(cmd: Command, name: string, description: string): void;
230
+ /** Return registered stream definitions for a command. */
231
+ declare function getStreamDefs(cmd: Command): StreamDef[];
232
+ /**
233
+ * Return a writer for a named stream. When the stream is enabled via the
234
+ * parity contract's stream flag, writes go to the contract's
235
+ * `streams.output` destination, prefixed with its `streams.label_format`
236
+ * label. Otherwise writes are discarded.
237
+ */
238
+ declare function channel(cmd: Command, name: string): {
239
+ write(s: string): boolean;
240
+ };
241
+ /**
242
+ * Brand color pair used across a theme.
243
+ * Hex strings (e.g. `"#7ED957"`).
244
+ */
245
+ interface Palette {
246
+ /** Commands / primary accent. */
247
+ command: string;
248
+ /** Flags / secondary accent. */
249
+ flag: string;
250
+ }
251
+ /**
252
+ * Built-in Neon palette — vivid grass green + neon pink.
253
+ * Mirrors Go's `Neon` palette in `kit/cli/theme.go`.
254
+ */
255
+ declare const Neon: Palette;
256
+ /**
257
+ * Built-in Dark palette — softer lime + pink.
258
+ * Mirrors Go's `Dark` palette in `kit/cli/theme.go`.
259
+ */
260
+ declare const Dark: Palette;
261
+ /**
262
+ * Semantic color theme for CLI output.
263
+ * Mirrors Go's `Theme` struct in `kit/cli/theme.go`.
264
+ */
265
+ interface Theme {
266
+ palette: Palette;
267
+ /** Primary accent — same as `palette.command`. */
268
+ accent: string;
269
+ /** Secondary accent — same as `palette.flag`. */
270
+ secondary: string;
271
+ /** Muted/dim color (CharmTone Squid). */
272
+ muted: string;
273
+ /** Error color (CharmTone Cherry). */
274
+ error: string;
275
+ /** Success color (CharmTone Guac). */
276
+ success: string;
277
+ /** Title/header color — mirrors fang's ColorScheme.Title (#FFFFFF). */
278
+ title: string;
279
+ /** Argument placeholder color — mirrors fang's ColorScheme.Argument (#B5E89B). */
280
+ argument: string;
281
+ /** Dimmed argument color — mirrors fang's ColorScheme.DimmedArgument (#8ABF6E). */
282
+ dimmedArgument: string;
283
+ }
284
+ /**
285
+ * Build a Theme from an optional accent override.
286
+ * When `accent` is provided it replaces `palette.command`; otherwise
287
+ * the Neon palette is used. Mirrors Go's `buildTheme` function.
288
+ */
289
+ declare function buildTheme(accent?: string): Theme;
290
+ /**
291
+ * Configuration passed to {@link createCLI} to identify the program.
292
+ */
293
+ interface CLIConfig {
294
+ /**
295
+ * Binary name as invoked by the user (e.g. `"mytool"`).
296
+ * Used as the Commander program name and in the version string output.
297
+ */
298
+ name: string;
299
+ /**
300
+ * Semver version string (e.g. `"1.2.3"`).
301
+ * Exposed via `-v / --version`; do NOT include a leading `v`.
302
+ */
303
+ version: string;
304
+ /**
305
+ * One-line description shown in help output.
306
+ */
307
+ description: string;
308
+ /**
309
+ * Optional hex color string (e.g. `"#FF0000"`) used as the theme accent.
310
+ * Omit to use the Neon palette default.
311
+ */
312
+ accent?: string;
313
+ /** Opt-out built-in global flags. Zero value = all enabled. */
314
+ disable?: {
315
+ format?: boolean;
316
+ quiet?: boolean;
317
+ noColor?: boolean;
318
+ hints?: boolean;
319
+ offline?: boolean;
320
+ };
321
+ /** Command groups for partitioned help (e.g. COMMANDS vs MANAGEMENT). */
322
+ groups?: Array<{
323
+ id: string;
324
+ title: string;
325
+ hidden?: boolean;
326
+ }>;
327
+ /** Extra tool-specific persistent flags on root command. */
328
+ globals?: Array<{
329
+ name: string;
330
+ short?: string;
331
+ usage: string;
332
+ default?: string;
333
+ }>;
334
+ /**
335
+ * Root --help layout overrides.
336
+ * Defaults are loaded from contracts/parity/parity.json.
337
+ */
338
+ help?: {
339
+ /**
340
+ * Appended to `description` as a separate paragraph when non-empty.
341
+ * Empty = no extra block.
342
+ */
343
+ disclaimer?: string;
344
+ /**
345
+ * Section rendering order using fang vocabulary
346
+ * (e.g. `["commands", "flags"]`). Omit to use parity.json default.
347
+ */
348
+ sectionOrder?: string[];
349
+ showAliases?: boolean;
350
+ };
351
+ }
352
+ /**
353
+ * Result of {@link createCLI}.
354
+ */
355
+ interface CLIResult {
356
+ /** Configured Commander root program. */
357
+ program: Command;
358
+ /** Theme derived from the config accent (or Neon default). */
359
+ theme: Theme;
360
+ }
361
+ /** Assign a command to a named group (used in formatHelp partitioning). */
362
+ declare function setCommandGroup(cmd: Command, groupId: string): void;
363
+ /** Retrieve the group ID for a command (undefined = default group). */
364
+ declare function getCommandGroup(cmd: Command): string | undefined;
365
+ /**
366
+ * Apply hop-top brand colors to Commander's help output.
367
+ *
368
+ * Uses Commander's structured Help API (optionTerm, subcommandTerm, etc.)
369
+ * to color each element independently — no regex post-processing on
370
+ * description text.
371
+ *
372
+ * Color mapping (mirrors Go's brandColorScheme):
373
+ * - Section headers: #FFFFFF bold
374
+ * - Flag names: theme.secondary (#FF00FF)
375
+ * - Command names: theme.accent (#7ED957)
376
+ * - Arguments (<angle>): theme.argument (#B5E89B)
377
+ * - Dimmed args ([optional]): theme.dimmedArgument (#8ABF6E)
378
+ * - Descriptions: theme.muted (#858183)
379
+ * - Usage program name: theme.accent
380
+ */
381
+ declare function applyHelpTheme(program: Command, theme: Theme, noColor: boolean, sectionOrder?: string[], showAliases?: boolean, groups?: CLIConfig['groups']): void;
382
+ /**
383
+ * Creates a Commander `Command` (root program) pre-configured to the hop-top CLI contract.
384
+ *
385
+ * Contract enforced by this factory (callers must NOT override these):
386
+ * - No `help` subcommand; -h/--help flag only.
387
+ * - `completion` available as management-group command (hidden by default).
388
+ * - `-v, --version` is a root option (not a subcommand); prints `<name> v<version>` and exits.
389
+ * - Global options added to the returned program:
390
+ * `--format <fmt>` Output format — `"table"` | `"json"` | `"yaml"` (default `"table"`)
391
+ * `--quiet` Suppress non-essential output (boolean, default `false`)
392
+ * `--no-color` Disable ANSI colour (boolean, default `false`)
393
+ * - `showHelpAfterError` is enabled; unknown commands print help to stderr.
394
+ * - Errors are written to stderr in `theme.error` color unless `--no-color` is active.
395
+ *
396
+ * Requires commander ^14. Do not add `-v/--version`, `--format`, `--quiet`, or
397
+ * `--no-color` again on the returned program — they are already registered.
398
+ *
399
+ * @param cfg - Program identity (name, version, description, optional accent). See {@link CLIConfig}.
400
+ * @returns `{ program, theme }` — program ready for sub-commands; theme for TUI components.
401
+ *
402
+ * @example
403
+ * ```ts
404
+ * const { program, theme } = createCLI({ name: 'hop', version: '2.0.0', description: 'hop CLI' });
405
+ * program.command('deploy').action(() => { ... });
406
+ * program.parse();
407
+ * ```
408
+ */
409
+ declare function createCLI(cfg: CLIConfig): CLIResult;
410
+
411
+ type cli_CLIConfig = CLIConfig;
412
+ type cli_CLIResult = CLIResult;
413
+ declare const cli_Dark: typeof Dark;
414
+ declare const cli_ErrOffline: typeof ErrOffline;
415
+ type cli_Hint = Hint;
416
+ type cli_HintOptions = HintOptions;
417
+ type cli_HintSet = HintSet;
418
+ declare const cli_HintSet: typeof HintSet;
419
+ declare const cli_Neon: typeof Neon;
420
+ declare const cli_OfflineError: typeof OfflineError;
421
+ type cli_Palette = Palette;
422
+ type cli_Theme = Theme;
423
+ declare const cli_active: typeof active;
424
+ declare const cli_applyHelpTheme: typeof applyHelpTheme;
425
+ declare const cli_buildTheme: typeof buildTheme;
426
+ declare const cli_channel: typeof channel;
427
+ declare const cli_createCLI: typeof createCLI;
428
+ declare const cli_getCommandGroup: typeof getCommandGroup;
429
+ declare const cli_getStreamDefs: typeof getStreamDefs;
430
+ declare const cli_guardFetch: typeof guardFetch;
431
+ declare const cli_hintsEnabled: typeof hintsEnabled;
432
+ declare const cli_isOffline: typeof isOffline;
433
+ declare const cli_isOfflineError: typeof isOfflineError;
434
+ declare const cli_registerStream: typeof registerStream;
435
+ declare const cli_registerUpgradeHints: typeof registerUpgradeHints;
436
+ declare const cli_registerVersionHints: typeof registerVersionHints;
437
+ declare const cli_renderHints: typeof renderHints;
438
+ declare const cli_setCommandGroup: typeof setCommandGroup;
439
+ declare const cli_streamFlagName: typeof streamFlagName;
440
+ declare const cli_streamLabel: typeof streamLabel;
441
+ declare const cli_streamOutput: typeof streamOutput;
442
+ declare const cli_verboseCount: typeof verboseCount;
443
+ declare const cli_verbosityFlagSpec: typeof verbosityFlagSpec;
444
+ declare const cli_verbosityShorthand: typeof verbosityShorthand;
445
+ declare const cli_withOffline: typeof withOffline;
446
+ declare namespace cli {
447
+ export { type cli_CLIConfig as CLIConfig, type cli_CLIResult as CLIResult, cli_Dark as Dark, cli_ErrOffline as ErrOffline, type cli_Hint as Hint, type cli_HintOptions as HintOptions, cli_HintSet as HintSet, cli_Neon as Neon, cli_OfflineError as OfflineError, type cli_Palette as Palette, type cli_Theme as Theme, cli_active as active, cli_applyHelpTheme as applyHelpTheme, cli_buildTheme as buildTheme, cli_channel as channel, cli_createCLI as createCLI, cli_getCommandGroup as getCommandGroup, cli_getStreamDefs as getStreamDefs, cli_guardFetch as guardFetch, cli_hintsEnabled as hintsEnabled, cli_isOffline as isOffline, cli_isOfflineError as isOfflineError, cli_registerStream as registerStream, cli_registerUpgradeHints as registerUpgradeHints, cli_registerVersionHints as registerVersionHints, cli_renderHints as renderHints, cli_setCommandGroup as setCommandGroup, cli_streamFlagName as streamFlagName, cli_streamLabel as streamLabel, cli_streamOutput as streamOutput, cli_verboseCount as verboseCount, cli_verbosityFlagSpec as verbosityFlagSpec, cli_verbosityShorthand as verbosityShorthand, cli_withOffline as withOffline };
448
+ }
449
+
450
+ export { type CLIConfig as C, Dark as D, type Hint as H, Neon as N, type Palette as P, type Theme as T, type CLIResult as a, type HintOptions as b, HintSet as c, active as d, applyHelpTheme as e, buildTheme as f, channel as g, cli as h, createCLI as i, getCommandGroup as j, getStreamDefs as k, hintsEnabled as l, registerUpgradeHints as m, registerVersionHints as n, renderHints as o, streamFlagName as p, streamLabel as q, registerStream as r, setCommandGroup as s, streamOutput as t, verbosityFlagSpec as u, verboseCount as v, verbosityShorthand as w };