@easbot/utils 0.3.11 → 0.3.12

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.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ChildProcess } from 'node:child_process';
2
2
  import z, { z as z$1 } from 'zod';
3
- import { statSync } from 'node:fs';
4
- import * as stream from 'stream';
5
- import { Readable } from 'stream';
3
+ import { Stats } from 'node:fs';
4
+ import { Readable } from 'node:stream';
6
5
  import * as _hono_node_ws from '@hono/node-ws';
7
6
  export { createNodeWebSocket } from '@hono/node-ws';
8
7
  import * as fs from 'fs';
8
+ import * as stream from 'stream';
9
9
  import { Hono, Context as Context$1, Next } from 'hono';
10
10
  export { Hono, Next } from 'hono';
11
11
  import { ServerType } from '@hono/node-server';
@@ -401,12 +401,17 @@ declare namespace Filesystem {
401
401
  function mkdir(p: string, options?: {
402
402
  recursive?: boolean;
403
403
  }): Promise<void>;
404
+ function cp(src: string, dest: string, options?: {
405
+ recursive?: boolean;
406
+ dereference?: boolean;
407
+ force?: boolean;
408
+ }): Promise<void>;
404
409
  function exists(p: string): Promise<boolean>;
405
- function isDir(p: string): Promise<boolean>;
406
- function stat(p: string): ReturnType<typeof statSync> | undefined;
410
+ function isDir(p: string): boolean;
411
+ function stat(p: string): Stats | undefined;
407
412
  function size(p: string): Promise<number>;
408
413
  function readText(p: string): Promise<string>;
409
- function readJson<T = any>(p: string): Promise<T>;
414
+ function readJson<T = unknown>(p: string): Promise<T>;
410
415
  function readBytes(p: string): Promise<Buffer>;
411
416
  function readArrayBuffer(p: string): Promise<ArrayBuffer>;
412
417
  function write(p: string, content: string | Buffer | Uint8Array, mode?: number): Promise<void>;
@@ -419,13 +424,14 @@ declare namespace Filesystem {
419
424
  function basename(p: string, ext?: string): string;
420
425
  function extname(p: string): string;
421
426
  function toUnixPath(p: string): string;
422
- function normalize(p: string): string;
423
- function resolve(p: string): string;
427
+ function relative(from: string, to: string): string;
428
+ function normalize(p: string, home?: string): string;
429
+ function resolve(p: string, home?: string): string;
424
430
  function isAbsolute(p: string): boolean;
425
431
  function join(base: string, ...paths: string[]): string;
426
432
  function windowsPath(p: string): string;
427
- function overlaps(a: string, b: string): boolean;
428
433
  function contains(parent: string, child: string): boolean;
434
+ function overlaps(a: string, b: string): boolean;
429
435
  function findUp(target: string, start: string, stop?: string): Promise<string[]>;
430
436
  function up(options: {
431
437
  targets: string[];
@@ -521,206 +527,258 @@ declare namespace Lazy {
521
527
  const lazyAsync: typeof createLazyAsync;
522
528
  }
523
529
 
524
- declare const MarkdownStyleSchema: z$1.ZodEnum<{
525
- bold: "bold";
526
- code: "code";
527
- italic: "italic";
528
- strikethrough: "strikethrough";
529
- code_block: "code_block";
530
- spoiler: "spoiler";
531
- blockquote: "blockquote";
532
- }>;
533
- type MarkdownStyle = z$1.infer<typeof MarkdownStyleSchema>;
534
- declare const MarkdownStyleSpanSchema: z$1.ZodObject<{
535
- start: z$1.ZodNumber;
536
- end: z$1.ZodNumber;
537
- style: z$1.ZodEnum<{
538
- bold: "bold";
539
- code: "code";
540
- italic: "italic";
541
- strikethrough: "strikethrough";
542
- code_block: "code_block";
543
- spoiler: "spoiler";
544
- blockquote: "blockquote";
545
- }>;
546
- }, z$1.core.$strict>;
547
- type MarkdownStyleSpan = z$1.infer<typeof MarkdownStyleSpanSchema>;
548
- declare const MarkdownLinkSpanSchema: z$1.ZodObject<{
549
- start: z$1.ZodNumber;
550
- end: z$1.ZodNumber;
551
- href: z$1.ZodString;
552
- }, z$1.core.$strict>;
553
- type MarkdownLinkSpan = z$1.infer<typeof MarkdownLinkSpanSchema>;
554
- declare const MarkdownIRSchema: z$1.ZodObject<{
555
- text: z$1.ZodString;
556
- styles: z$1.ZodArray<z$1.ZodObject<{
557
- start: z$1.ZodNumber;
558
- end: z$1.ZodNumber;
559
- style: z$1.ZodEnum<{
560
- bold: "bold";
561
- code: "code";
562
- italic: "italic";
563
- strikethrough: "strikethrough";
564
- code_block: "code_block";
565
- spoiler: "spoiler";
566
- blockquote: "blockquote";
567
- }>;
568
- }, z$1.core.$strict>>;
569
- links: z$1.ZodArray<z$1.ZodObject<{
570
- start: z$1.ZodNumber;
571
- end: z$1.ZodNumber;
572
- href: z$1.ZodString;
573
- }, z$1.core.$strict>>;
574
- }, z$1.core.$strict>;
575
- type MarkdownIR = z$1.infer<typeof MarkdownIRSchema>;
576
- declare const MarkdownTableModeSchema: z$1.ZodEnum<{
577
- code: "code";
578
- off: "off";
579
- bullets: "bullets";
580
- }>;
581
- type MarkdownTableMode = z$1.infer<typeof MarkdownTableModeSchema>;
582
- declare const MarkdownParseOptionsSchema: z$1.ZodDefault<z$1.ZodObject<{
583
- linkify: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
584
- enableSpoilers: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
585
- headingStyle: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
586
- bold: "bold";
587
- none: "none";
588
- }>>>;
589
- blockquotePrefix: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
590
- autolink: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
591
- tableMode: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
592
- code: "code";
593
- off: "off";
594
- bullets: "bullets";
595
- }>>>;
596
- }, z$1.core.$strip>>;
597
- type MarkdownParseOptions = z$1.infer<typeof MarkdownParseOptionsSchema>;
598
- declare const StyleMarkerSchema: z$1.ZodObject<{
599
- open: z$1.ZodString;
600
- close: z$1.ZodString;
601
- }, z$1.core.$strict>;
602
- type StyleMarker = z$1.infer<typeof StyleMarkerSchema>;
603
- type RenderOptions = {
604
- styleMarkers?: Record<MarkdownStyle, StyleMarker>;
605
- escapeText?: (text: string) => string;
606
- buildLink?: (link: MarkdownLinkSpan, text: string) => RenderLink | null;
607
- };
608
- declare const RenderLinkSchema: z$1.ZodObject<{
609
- start: z$1.ZodNumber;
610
- end: z$1.ZodNumber;
611
- open: z$1.ZodString;
612
- close: z$1.ZodString;
613
- }, z$1.core.$strict>;
614
- type RenderLink = z$1.infer<typeof RenderLinkSchema>;
615
- declare const FormatOptionsSchema: z$1.ZodObject<{
616
- indentSize: z$1.ZodDefault<z$1.ZodNumber>;
617
- listMarker: z$1.ZodDefault<z$1.ZodEnum<{
618
- "-": "-";
619
- "*": "*";
620
- "\u2022": "•";
621
- }>>;
622
- codeBlockMarker: z$1.ZodDefault<z$1.ZodEnum<{
623
- "```": "```";
624
- "~~~": "~~~";
625
- }>>;
626
- preserveFrontmatter: z$1.ZodDefault<z$1.ZodBoolean>;
627
- }, z$1.core.$strict>;
628
- type FormatOptions = z$1.infer<typeof FormatOptionsSchema>;
629
- declare const ParsedFrontmatterSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
630
- type ParsedFrontmatter = z$1.infer<typeof ParsedFrontmatterSchema>;
631
- declare const InlineCodeStateSchema: z$1.ZodObject<{
632
- open: z$1.ZodBoolean;
633
- ticks: z$1.ZodNumber;
634
- }, z$1.core.$strict>;
635
- type InlineCodeState$1 = z$1.infer<typeof InlineCodeStateSchema>;
636
- type CodeSpanIndex$1 = {
637
- inlineState: InlineCodeState$1;
638
- isInside: (offset: number) => boolean;
639
- };
640
- declare const FenceSpanSchema: z$1.ZodObject<{
641
- start: z$1.ZodNumber;
642
- end: z$1.ZodNumber;
643
- openLine: z$1.ZodString;
644
- marker: z$1.ZodString;
645
- indent: z$1.ZodString;
646
- }, z$1.core.$strict>;
647
- type FenceSpan$1 = z$1.infer<typeof FenceSpanSchema>;
648
- declare const MarkdownConfigSchema: z$1.ZodObject<{
649
- tables: z$1.ZodOptional<z$1.ZodEnum<{
650
- code: "code";
651
- off: "off";
652
- bullets: "bullets";
653
- }>>;
654
- }, z$1.core.$strict>;
655
- type MarkdownConfig = z$1.infer<typeof MarkdownConfigSchema>;
656
-
657
- declare function markdownToIR(markdown: string, options?: MarkdownParseOptions): MarkdownIR;
658
- declare function markdownToIRWithMeta(markdown: string, options?: MarkdownParseOptions): {
659
- ir: MarkdownIR;
660
- hasTables: boolean;
661
- };
662
- declare function chunkMarkdownIR(ir: MarkdownIR, limit: number): MarkdownIR[];
663
-
664
- declare function renderMarkdownWithMarkers(ir: MarkdownIR, options?: RenderOptions): string;
665
- declare function renderMarkdown(ir: MarkdownIR, options?: RenderOptions): string;
666
-
667
- declare function formatMarkdown(markdown: string, options?: FormatOptions): string;
668
-
669
- declare function parseFrontmatterBlock(content: string): ParsedFrontmatter;
670
- declare function serializeFrontmatter(data: ParsedFrontmatter): string;
671
- declare function extractFrontmatter(content: string): {
672
- frontmatter: ParsedFrontmatter;
673
- content: string;
674
- };
675
-
676
- declare function scanParenAwareBreakpoints(text: string, start: number, end: number, isAllowed?: (index: number) => boolean): {
677
- lastNewline: number;
678
- lastWhitespace: number;
679
- };
680
- declare function chunkText(text: string, limit: number, options?: {
681
- minLength?: number;
682
- }): string[];
683
- declare function chunkTextByBreakResolver(text: string, limit: number, resolveBreakIndex: (window: string) => number): string[];
684
-
685
- type InlineCodeState = {
686
- open: boolean;
687
- ticks: number;
688
- };
689
- declare function createInlineCodeState(): InlineCodeState;
690
- type CodeSpanIndex = {
691
- inlineState: InlineCodeState;
692
- isInside: (index: number) => boolean;
693
- };
694
- declare function buildCodeSpanIndex(text: string, inlineState?: InlineCodeState): CodeSpanIndex;
695
-
696
- type FenceSpan = {
697
- start: number;
698
- end: number;
699
- openLine: string;
700
- marker: string;
701
- indent: string;
702
- };
703
- declare function parseFenceSpans(buffer: string): FenceSpan[];
704
- declare function findFenceSpanAt(spans: FenceSpan[], index: number): FenceSpan | undefined;
705
- declare function isSafeFenceBreak(spans: FenceSpan[], index: number): boolean;
706
-
707
- declare function convertMarkdownTables(markdown: string, mode: MarkdownTableMode): string;
708
-
709
530
  declare namespace Markdown {
710
- function parse(markdown: string, options?: MarkdownParseOptions): MarkdownIR;
711
- function render(ir: MarkdownIR, options?: RenderOptions): string;
712
- function format(markdown: string, options?: FormatOptions): string;
713
- function parseFrontmatter(content: string): ParsedFrontmatter;
714
- function serializeFrontmatter(data: ParsedFrontmatter): string;
715
- function extractFrontmatter(content: string): {
716
- frontmatter: ParsedFrontmatter;
531
+ const FILE_REGEX: RegExp;
532
+ const SHELL_REGEX: RegExp;
533
+ function files(template: string): RegExpExecArray[];
534
+ function shell(template: string): RegExpExecArray[];
535
+ function fallbackSanitization(content: string): string;
536
+ function parse(filePath: string): Promise<{
537
+ data: Record<string, unknown>;
538
+ content: string;
539
+ }>;
540
+ function extractFrontmatter(rawInput: string): {
541
+ frontmatter: Record<string, unknown>;
717
542
  content: string;
718
543
  };
719
- function chunk(text: string, limit: number, options?: {
720
- minLength?: number;
721
- }): string[];
722
- function buildCodeIndex(text: string, inlineState?: InlineCodeState$1): CodeSpanIndex$1;
723
- function convertTables(markdown: string, tableMode: MarkdownTableMode): string;
544
+ function format(content: string, data?: Record<string, unknown>): string;
545
+ const FrontmatterError: {
546
+ new (data: {
547
+ path: string;
548
+ message: string;
549
+ }, options?: ErrorOptions): {
550
+ readonly name: "ConfigFrontmatterError";
551
+ readonly data: {
552
+ path: string;
553
+ message: string;
554
+ };
555
+ schema(): z$1.ZodObject<{
556
+ name: z$1.ZodLiteral<"ConfigFrontmatterError">;
557
+ data: z$1.ZodObject<{
558
+ path: z$1.ZodString;
559
+ message: z$1.ZodString;
560
+ }, z$1.core.$strip>;
561
+ }, z$1.core.$strip>;
562
+ toObject(): {
563
+ name: "ConfigFrontmatterError";
564
+ data: {
565
+ path: string;
566
+ message: string;
567
+ };
568
+ };
569
+ message: string;
570
+ stack?: string;
571
+ cause?: unknown;
572
+ };
573
+ readonly Schema: z$1.ZodObject<{
574
+ name: z$1.ZodLiteral<"ConfigFrontmatterError">;
575
+ data: z$1.ZodObject<{
576
+ path: z$1.ZodString;
577
+ message: z$1.ZodString;
578
+ }, z$1.core.$strip>;
579
+ }, z$1.core.$strip>;
580
+ isInstance(input: any): input is {
581
+ readonly name: "ConfigFrontmatterError";
582
+ readonly data: {
583
+ path: string;
584
+ message: string;
585
+ };
586
+ schema(): z$1.ZodObject<{
587
+ name: z$1.ZodLiteral<"ConfigFrontmatterError">;
588
+ data: z$1.ZodObject<{
589
+ path: z$1.ZodString;
590
+ message: z$1.ZodString;
591
+ }, z$1.core.$strip>;
592
+ }, z$1.core.$strip>;
593
+ toObject(): {
594
+ name: "ConfigFrontmatterError";
595
+ data: {
596
+ path: string;
597
+ message: string;
598
+ };
599
+ };
600
+ message: string;
601
+ stack?: string;
602
+ cause?: unknown;
603
+ };
604
+ create<Name extends string, Data extends z$1.core.$ZodType>(name: Name, data: Data): {
605
+ new (data: z$1.input<Data>, options?: ErrorOptions): {
606
+ readonly name: Name;
607
+ readonly data: z$1.core.input<Data>;
608
+ schema(): z$1.ZodObject<{
609
+ name: z$1.ZodLiteral<Name>;
610
+ data: Data;
611
+ }, z$1.core.$strip>;
612
+ toObject(): {
613
+ name: Name;
614
+ data: z$1.core.input<Data>;
615
+ };
616
+ message: string;
617
+ stack?: string;
618
+ cause?: unknown;
619
+ };
620
+ readonly Schema: z$1.ZodObject<{
621
+ name: z$1.ZodLiteral<Name>;
622
+ data: Data;
623
+ }, z$1.core.$strip>;
624
+ isInstance(input: any): input is InstanceType<any>;
625
+ create<Name extends string, Data extends z$1.core.$ZodType>(name: Name, data: Data): any;
626
+ readonly Unknown: {
627
+ new (data: {
628
+ message: string;
629
+ }, options?: ErrorOptions): {
630
+ readonly name: "UnknownError";
631
+ readonly data: {
632
+ message: string;
633
+ };
634
+ schema(): z$1.ZodObject<{
635
+ name: z$1.ZodLiteral<"UnknownError">;
636
+ data: z$1.ZodObject<{
637
+ message: z$1.ZodString;
638
+ }, z$1.core.$strip>;
639
+ }, z$1.core.$strip>;
640
+ toObject(): {
641
+ name: "UnknownError";
642
+ data: {
643
+ message: string;
644
+ };
645
+ };
646
+ message: string;
647
+ stack?: string;
648
+ cause?: unknown;
649
+ };
650
+ readonly Schema: z$1.ZodObject<{
651
+ name: z$1.ZodLiteral<"UnknownError">;
652
+ data: z$1.ZodObject<{
653
+ message: z$1.ZodString;
654
+ }, z$1.core.$strip>;
655
+ }, z$1.core.$strip>;
656
+ isInstance(input: any): input is {
657
+ readonly name: "UnknownError";
658
+ readonly data: {
659
+ message: string;
660
+ };
661
+ schema(): z$1.ZodObject<{
662
+ name: z$1.ZodLiteral<"UnknownError">;
663
+ data: z$1.ZodObject<{
664
+ message: z$1.ZodString;
665
+ }, z$1.core.$strip>;
666
+ }, z$1.core.$strip>;
667
+ toObject(): {
668
+ name: "UnknownError";
669
+ data: {
670
+ message: string;
671
+ };
672
+ };
673
+ message: string;
674
+ stack?: string;
675
+ cause?: unknown;
676
+ };
677
+ create<Name extends string, Data extends z$1.core.$ZodType>(name: Name, data: Data): any;
678
+ readonly Unknown: any;
679
+ isError(error: unknown): error is Error;
680
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
681
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
682
+ stackTraceLimit: number;
683
+ };
684
+ isError(error: unknown): error is Error;
685
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
686
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
687
+ stackTraceLimit: number;
688
+ };
689
+ readonly Unknown: {
690
+ new (data: {
691
+ message: string;
692
+ }, options?: ErrorOptions): {
693
+ readonly name: "UnknownError";
694
+ readonly data: {
695
+ message: string;
696
+ };
697
+ schema(): z$1.ZodObject<{
698
+ name: z$1.ZodLiteral<"UnknownError">;
699
+ data: z$1.ZodObject<{
700
+ message: z$1.ZodString;
701
+ }, z$1.core.$strip>;
702
+ }, z$1.core.$strip>;
703
+ toObject(): {
704
+ name: "UnknownError";
705
+ data: {
706
+ message: string;
707
+ };
708
+ };
709
+ message: string;
710
+ stack?: string;
711
+ cause?: unknown;
712
+ };
713
+ readonly Schema: z$1.ZodObject<{
714
+ name: z$1.ZodLiteral<"UnknownError">;
715
+ data: z$1.ZodObject<{
716
+ message: z$1.ZodString;
717
+ }, z$1.core.$strip>;
718
+ }, z$1.core.$strip>;
719
+ isInstance(input: any): input is {
720
+ readonly name: "UnknownError";
721
+ readonly data: {
722
+ message: string;
723
+ };
724
+ schema(): z$1.ZodObject<{
725
+ name: z$1.ZodLiteral<"UnknownError">;
726
+ data: z$1.ZodObject<{
727
+ message: z$1.ZodString;
728
+ }, z$1.core.$strip>;
729
+ }, z$1.core.$strip>;
730
+ toObject(): {
731
+ name: "UnknownError";
732
+ data: {
733
+ message: string;
734
+ };
735
+ };
736
+ message: string;
737
+ stack?: string;
738
+ cause?: unknown;
739
+ };
740
+ create<Name extends string, Data extends z$1.core.$ZodType>(name: Name, data: Data): {
741
+ new (data: z$1.input<Data>, options?: ErrorOptions): {
742
+ readonly name: Name;
743
+ readonly data: z$1.core.input<Data>;
744
+ schema(): z$1.ZodObject<{
745
+ name: z$1.ZodLiteral<Name>;
746
+ data: Data;
747
+ }, z$1.core.$strip>;
748
+ toObject(): {
749
+ name: Name;
750
+ data: z$1.core.input<Data>;
751
+ };
752
+ message: string;
753
+ stack?: string;
754
+ cause?: unknown;
755
+ };
756
+ readonly Schema: z$1.ZodObject<{
757
+ name: z$1.ZodLiteral<Name>;
758
+ data: Data;
759
+ }, z$1.core.$strip>;
760
+ isInstance(input: any): input is InstanceType<any>;
761
+ create<Name extends string, Data extends z$1.core.$ZodType>(name: Name, data: Data): any;
762
+ readonly Unknown: any;
763
+ isError(error: unknown): error is Error;
764
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
765
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
766
+ stackTraceLimit: number;
767
+ };
768
+ readonly Unknown: any;
769
+ isError(error: unknown): error is Error;
770
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
771
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
772
+ stackTraceLimit: number;
773
+ };
774
+ isError(error: unknown): error is Error;
775
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
776
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
777
+ stackTraceLimit: number;
778
+ };
779
+ function replaceVariables(template: string, variables: Record<string, unknown>): string;
780
+ function renderTemplate(template: string, variables: Record<string, unknown>): string;
781
+ function formatVariableValue(value: unknown): string;
724
782
  }
725
783
 
726
784
  declare function getFilename(path: string | undefined): string;
@@ -1422,30 +1480,4 @@ declare namespace Log {
1422
1480
  function create(tags?: Record<string, any>): Logger;
1423
1481
  }
1424
1482
 
1425
- declare namespace CliSearch {
1426
- interface Item<T> {
1427
- value: T;
1428
- label: string;
1429
- hint?: string;
1430
- }
1431
- interface LockedSection<T> {
1432
- title: string;
1433
- items: Item<T>[];
1434
- hiddenCount?: number;
1435
- }
1436
- interface MultiselectOptions<T> {
1437
- message: string;
1438
- items: Item<T>[];
1439
- maxVisible?: number;
1440
- initialSelected?: T[];
1441
- required?: boolean;
1442
- lockedSection?: LockedSection<T>;
1443
- }
1444
- const cancelSymbol: unique symbol;
1445
- function approxStringWidth(plain: string): number;
1446
- function visualRowsForLine(line: string, columns: number): number;
1447
- function countVisualRowsForLines(lines: string[], columns: number | undefined): number;
1448
- function multiselect<T>(options: MultiselectOptions<T>): Promise<T[] | typeof cancelSymbol>;
1449
- }
1450
-
1451
- export { $, Archive, AsyncQueue, Binary, CliSearch, type CodeSpanIndex$1 as CodeSpanIndex, Color, Context, DEFAULT_LANG, type EasServer, Encode, EventLoop, type FenceSpan$1 as FenceSpan, Fetch, type FetchResponse, Filesystem, Fn, type FormatOptions, type GitResult, Glob, Grep, Identifier, Ignore, type InlineCodeState$1 as InlineCodeState, Keybind, type Lang, Lazy, Locale, Lock, Log, MIME_TYPES, Markdown, type MarkdownConfig, type MarkdownIR, type MarkdownLinkSpan, type MarkdownParseOptions, type MarkdownStyle, type MarkdownStyleSpan, type MarkdownTableMode, type MiddlewareDefinition, NamedError, type NodeSpawnObjectArgs, type NodeSpawnOptions, type NodeSpawnResult, type NodeWhichOptions, PKG, PackageRegistry, type ParseCommandResult, type ParsedFrontmatter, type ParsedVersion, PkgShell, type ProxyOptions, type RPCMethod, type RenderLink, type RenderOptions, type RequestOptions, type RouteDefinition, type SSEHandler, SUPPORTED_LANGS, Semver, type ServerOptions, SessionTitle, Shell, Slug, type StreamHandler, type StyleMarker, type TimezoneDateParts, Token, TruncateContent, type WebSocketHandler, type WebSocketRouteDefinition, Wildcard, abortAfter, abortAfterAny, addMinutesInTimezone, buildCodeSpanIndex, chunkMarkdownIR, chunkText, chunkTextByBreakResolver, convertMarkdownTables, createInlineCodeState, createPkgShell, createRESTServer, createRPCServer, createServer, createStreamingServer, createWebSocketServer, defer, detectPlatform, escapeCommandArg, escapeCommandArgSafe, extractFrontmatter, findFenceSpanAt, findLast, fn, formatDuration, formatLocalISO, formatLocalISOCompact, formatLogTime, formatLogTimeMs, formatMarkdown, getDirectory, getFileExtension, getFilename, getFilenameTruncated, getProxyConfig, getProxyUrl, getTimezoneOffset, getTimezoneParts, git, iife, isSafeFenceBreak, isValidTimezone, joinCommandArgs, lazy, lazyAsync, loadEnv, loadTextFile, loadTextFileAsync, markdownToIR, markdownToIRWithMeta, needsShellExecution, normalizeTimezone, now, nowLocalISO, parseCommand, parseCommandWithOptions, parseFenceSpans, parseFrontmatterBlock, parseLocalISO, parseModelId, proxied, readableStreamToText, renderMarkdown, renderMarkdownWithMarkers, resolveLocaleLang, retry, scanParenAwareBreakpoints, serializeFrontmatter, shell, signal, startServer, truncateMiddle, updateSchema, whichSync, withTimeout, work };
1483
+ export { $, Archive, AsyncQueue, Binary, Color, Context, DEFAULT_LANG, type EasServer, Encode, EventLoop, Fetch, type FetchResponse, Filesystem, Fn, type GitResult, Glob, Grep, Identifier, Ignore, Keybind, type Lang, Lazy, Locale, Lock, Log, MIME_TYPES, Markdown, type MiddlewareDefinition, NamedError, type NodeSpawnObjectArgs, type NodeSpawnOptions, type NodeSpawnResult, type NodeWhichOptions, PKG, PackageRegistry, type ParseCommandResult, type ParsedVersion, PkgShell, type ProxyOptions, type RPCMethod, type RequestOptions, type RouteDefinition, type SSEHandler, SUPPORTED_LANGS, Semver, type ServerOptions, SessionTitle, Shell, Slug, type StreamHandler, type TimezoneDateParts, Token, TruncateContent, type WebSocketHandler, type WebSocketRouteDefinition, Wildcard, abortAfter, abortAfterAny, addMinutesInTimezone, createPkgShell, createRESTServer, createRPCServer, createServer, createStreamingServer, createWebSocketServer, defer, detectPlatform, escapeCommandArg, escapeCommandArgSafe, findLast, fn, formatDuration, formatLocalISO, formatLocalISOCompact, formatLogTime, formatLogTimeMs, getDirectory, getFileExtension, getFilename, getFilenameTruncated, getProxyConfig, getProxyUrl, getTimezoneOffset, getTimezoneParts, git, iife, isValidTimezone, joinCommandArgs, lazy, lazyAsync, loadEnv, loadTextFile, loadTextFileAsync, needsShellExecution, normalizeTimezone, now, nowLocalISO, parseCommand, parseCommandWithOptions, parseLocalISO, parseModelId, proxied, readableStreamToText, resolveLocaleLang, retry, shell, signal, startServer, truncateMiddle, updateSchema, whichSync, withTimeout, work };