riteshjs 0.0.0-stage → 0.2.0

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.
@@ -0,0 +1,116 @@
1
+ /*! ritesh | MIT | Copyright (c) 2026 Jarrod Baumann | bundles xterm.js and ipaddr.js (MIT, see THIRD_PARTY_NOTICES) */
2
+ import { $ as Span, A as Inode, B as Parser, C as Errno, D as Flags, E as FlagValue, F as MountProvider, G as RemoteHandle, H as Proc, I as OutputPolicy, J as RiteError, K as Resolution, L as PASS, M as InodeType, N as Kernel, O as HistoryMode, P as List, Q as SimpleCommand, R as ParseOptions, S as Env, T as FlagDef, U as Redirect, V as Pipeline, W as RedirectOp, X as Session, Y as Run, Z as SessionView, _ as EXIT, a as Assignment, at as SyntaxErrorInfo, b as EggTrigger, c as Candidate, ct as TermSize, d as CommandSource, dt as TokenKind, et as Stat, f as CompleteContext, ft as Tty, g as ERRNO_MESSAGES, gt as WriteOptions, h as ERRNOS, ht as WordPart, i as ActionVia, it as SudoPolicy, j as InodeSpec, k as HostOptions, l as CommandDef, lt as Theme, m as Completion, mt as Word, n as ActionEvent, nt as StdioKind, o as BuiltinRun, ot as Sys, p as Completer, pt as Vfs, q as Rite, r as ActionResult, rt as StdioStreams, s as CallOptions, st as Term, t as ActionDef, tt as Stdio, u as CommandInfo, ut as Token, v as EggDef, w as FileContent, x as Entry, y as EggResult, z as ParseResult } from "./contracts-DwXN7Pv9.js";
3
+ import { n as defineEgg, t as defineCommand } from "./define-C14xvFmq.js";
4
+ /** The rite version: RITE_VERSION, `rite --version`, and the parser's messages. */
5
+ export declare const VERSION = "0.2.0";
6
+ /** PROMPT escapes: %n user, %m host, %~ cwd, %# (# for root, else %), %? last status, %F{color}...%f, %% a percent. */
7
+ export declare function renderPrompt(prompt: string, s: {
8
+ user: string;
9
+ hostname: string;
10
+ cwd: string;
11
+ home: string;
12
+ uid: number;
13
+ lastStatus: number;
14
+ }): string;
15
+ declare namespace themes_d_exports {
16
+ export { brass, dusk, paper, tide };
17
+ }
18
+ /** Dark: warm olive-black, brass accent. */
19
+ declare const brass: {
20
+ background: string;
21
+ foreground: string;
22
+ cursor: string;
23
+ cursorAccent: string;
24
+ selectionBackground: string;
25
+ black: string;
26
+ red: string;
27
+ green: string;
28
+ yellow: string;
29
+ blue: string;
30
+ magenta: string;
31
+ cyan: string;
32
+ white: string;
33
+ brightBlack: string;
34
+ brightRed: string;
35
+ brightGreen: string;
36
+ brightYellow: string;
37
+ brightBlue: string;
38
+ brightMagenta: string;
39
+ brightCyan: string;
40
+ brightWhite: string;
41
+ };
42
+ /** Dark: deep blue-green black, teal accent. */
43
+ declare const tide: {
44
+ background: string;
45
+ foreground: string;
46
+ cursor: string;
47
+ cursorAccent: string;
48
+ selectionBackground: string;
49
+ black: string;
50
+ red: string;
51
+ green: string;
52
+ yellow: string;
53
+ blue: string;
54
+ magenta: string;
55
+ cyan: string;
56
+ white: string;
57
+ brightBlack: string;
58
+ brightRed: string;
59
+ brightGreen: string;
60
+ brightYellow: string;
61
+ brightBlue: string;
62
+ brightMagenta: string;
63
+ brightCyan: string;
64
+ brightWhite: string;
65
+ };
66
+ /** Dark: violet-black, lavender accent. */
67
+ declare const dusk: {
68
+ background: string;
69
+ foreground: string;
70
+ cursor: string;
71
+ cursorAccent: string;
72
+ selectionBackground: string;
73
+ black: string;
74
+ red: string;
75
+ green: string;
76
+ yellow: string;
77
+ blue: string;
78
+ magenta: string;
79
+ cyan: string;
80
+ white: string;
81
+ brightBlack: string;
82
+ brightRed: string;
83
+ brightGreen: string;
84
+ brightYellow: string;
85
+ brightBlue: string;
86
+ brightMagenta: string;
87
+ brightCyan: string;
88
+ brightWhite: string;
89
+ };
90
+ /** Light: warm paper, ink-dark text, a dark brass cursor (brass's light sibling). */
91
+ declare const paper: {
92
+ background: string;
93
+ foreground: string;
94
+ cursor: string;
95
+ cursorAccent: string;
96
+ selectionBackground: string;
97
+ black: string;
98
+ red: string;
99
+ green: string;
100
+ yellow: string;
101
+ blue: string;
102
+ magenta: string;
103
+ cyan: string;
104
+ white: string;
105
+ brightBlack: string;
106
+ brightRed: string;
107
+ brightGreen: string;
108
+ brightYellow: string;
109
+ brightBlue: string;
110
+ brightMagenta: string;
111
+ brightCyan: string;
112
+ brightWhite: string;
113
+ };
114
+ /** Embed rite in a page. */
115
+ export declare function createRite(options: HostOptions): Rite;
116
+ export { ActionDef, ActionEvent, ActionResult, ActionVia, Assignment, BuiltinRun, CallOptions, Candidate, CommandDef, CommandInfo, CommandSource, CompleteContext, Completer, Completion, ERRNOS, ERRNO_MESSAGES, EXIT, EggDef, EggResult, EggTrigger, Entry, Env, Errno, FileContent, FlagDef, FlagValue, Flags, HistoryMode, HostOptions, Inode, InodeSpec, InodeType, Kernel, List, MountProvider, OutputPolicy, PASS, ParseOptions, ParseResult, Parser, Pipeline, Proc, Redirect, RedirectOp, RemoteHandle, Resolution, Rite, RiteError, Run, Session, SessionView, SimpleCommand, Span, Stat, Stdio, StdioKind, StdioStreams, SudoPolicy, SyntaxErrorInfo, Sys, Term, TermSize, Theme, Token, TokenKind, Tty, Vfs, Word, WordPart, WriteOptions, defineCommand, defineEgg, themes_d_exports as themes };