terminal-pilot 0.0.37 → 0.0.38
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/cli.js +152 -2
- package/dist/cli.js.map +3 -3
- package/dist/commands/close-session.js +1 -1
- package/dist/commands/close-session.js.map +2 -2
- package/dist/commands/create-session.js +1 -1
- package/dist/commands/create-session.js.map +2 -2
- package/dist/commands/daemon-runtime.js +1 -1
- package/dist/commands/daemon-runtime.js.map +2 -2
- package/dist/commands/fill.js +1 -1
- package/dist/commands/fill.js.map +2 -2
- package/dist/commands/get-session.js +1 -1
- package/dist/commands/get-session.js.map +2 -2
- package/dist/commands/index.js +145 -1
- package/dist/commands/index.js.map +3 -3
- package/dist/commands/install.js +145 -1
- package/dist/commands/install.js.map +3 -3
- package/dist/commands/installer.js +145 -1
- package/dist/commands/installer.js.map +3 -3
- package/dist/commands/list-sessions.js +1 -1
- package/dist/commands/list-sessions.js.map +2 -2
- package/dist/commands/press-key.js +1 -1
- package/dist/commands/press-key.js.map +2 -2
- package/dist/commands/read-history.js +1 -1
- package/dist/commands/read-history.js.map +2 -2
- package/dist/commands/read-screen.js +1 -1
- package/dist/commands/read-screen.js.map +2 -2
- package/dist/commands/resize.js +1 -1
- package/dist/commands/resize.js.map +2 -2
- package/dist/commands/runtime.js +1 -1
- package/dist/commands/runtime.js.map +2 -2
- package/dist/commands/screenshot.js +1 -1
- package/dist/commands/screenshot.js.map +2 -2
- package/dist/commands/send-signal.js +1 -1
- package/dist/commands/send-signal.js.map +2 -2
- package/dist/commands/type.js +1 -1
- package/dist/commands/type.js.map +2 -2
- package/dist/commands/uninstall.js +145 -1
- package/dist/commands/uninstall.js.map +3 -3
- package/dist/commands/wait-for-exit.js +1 -1
- package/dist/commands/wait-for-exit.js.map +2 -2
- package/dist/commands/wait-for.js +1 -1
- package/dist/commands/wait-for.js.map +2 -2
- package/dist/testing/cli-repl.js +152 -2
- package/dist/testing/cli-repl.js.map +3 -3
- package/dist/testing/qa-cli.js +152 -2
- package/dist/testing/qa-cli.js.map +3 -3
- package/node_modules/toolcraft-design/README.md +187 -5
- package/node_modules/toolcraft-design/dist/brand.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/brand.js +1 -0
- package/node_modules/toolcraft-design/dist/brands.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/brands.js +1 -0
- package/node_modules/toolcraft-design/dist/cancel.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/cancel.js +1 -0
- package/node_modules/toolcraft-design/dist/color.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/color.js +1 -0
- package/node_modules/toolcraft-design/dist/configure-theme.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/configure-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/confirm-or-cancel.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/confirm-or-cancel.js +1 -0
- package/node_modules/toolcraft-design/dist/confirm.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/confirm.js +1 -0
- package/node_modules/toolcraft-design/dist/create-dashboard.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/create-dashboard.js +1 -0
- package/node_modules/toolcraft-design/dist/create-logger.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/create-logger.js +1 -0
- package/node_modules/toolcraft-design/dist/dark.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/dark.js +1 -0
- package/node_modules/toolcraft-design/dist/format-columns.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/format-columns.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command-list.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/format-command-list.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found-panel.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found-panel.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-command.js +1 -0
- package/node_modules/toolcraft-design/dist/format-option-list.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/format-option-list.js +1 -0
- package/node_modules/toolcraft-design/dist/format-option.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-option.js +1 -0
- package/node_modules/toolcraft-design/dist/format-usage.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-usage.js +1 -0
- package/node_modules/toolcraft-design/dist/get-template-partial-names.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/get-template-partial-names.js +1 -0
- package/node_modules/toolcraft-design/dist/get-theme-config.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/get-theme-config.js +1 -0
- package/node_modules/toolcraft-design/dist/get-theme.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/get-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/help-formatter-plain.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/help-formatter-plain.js +2 -0
- package/node_modules/toolcraft-design/dist/help-formatter.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/help-formatter.js +1 -0
- package/node_modules/toolcraft-design/dist/index.d.ts +2 -2
- package/node_modules/toolcraft-design/dist/index.js +1 -1
- package/node_modules/toolcraft-design/dist/intro-plain.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/intro-plain.js +1 -0
- package/node_modules/toolcraft-design/dist/intro.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/intro.js +1 -0
- package/node_modules/toolcraft-design/dist/is-cancel.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/is-cancel.js +1 -0
- package/node_modules/toolcraft-design/dist/light.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/light.js +1 -0
- package/node_modules/toolcraft-design/dist/log.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/log.js +1 -0
- package/node_modules/toolcraft-design/dist/logger.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/logger.js +1 -0
- package/node_modules/toolcraft-design/dist/multiselect.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/multiselect.js +1 -0
- package/node_modules/toolcraft-design/dist/note.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/note.js +1 -0
- package/node_modules/toolcraft-design/dist/open-external.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/open-external.js +1 -0
- package/node_modules/toolcraft-design/dist/outro.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/outro.js +1 -0
- package/node_modules/toolcraft-design/dist/parse.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/parse.js +1 -0
- package/node_modules/toolcraft-design/dist/password.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/password.js +1 -0
- package/node_modules/toolcraft-design/dist/prompt-cancelled-error.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/prompt-cancelled-error.js +1 -0
- package/node_modules/toolcraft-design/dist/prompt-text.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/prompt-text.js +1 -0
- package/node_modules/toolcraft-design/dist/prompt-theme.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/prompt-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/render-catalog.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-catalog.js +1 -0
- package/node_modules/toolcraft-design/dist/render-detail-card.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-detail-card.js +1 -0
- package/node_modules/toolcraft-design/dist/render-html.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-html.js +1 -0
- package/node_modules/toolcraft-design/dist/render-inspector-card.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-inspector-card.js +1 -0
- package/node_modules/toolcraft-design/dist/render-markdown-html.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-markdown-html.js +1 -0
- package/node_modules/toolcraft-design/dist/render-markdown.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-markdown.js +1 -0
- package/node_modules/toolcraft-design/dist/render-menu.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-menu.js +1 -0
- package/node_modules/toolcraft-design/dist/render-resource-browser.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-resource-browser.js +1 -0
- package/node_modules/toolcraft-design/dist/render-spinner-frame.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-spinner-frame.js +1 -0
- package/node_modules/toolcraft-design/dist/render-spinner-stopped.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-spinner-stopped.js +1 -0
- package/node_modules/toolcraft-design/dist/render-table.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-table.js +1 -0
- package/node_modules/toolcraft-design/dist/render-template.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-template.js +1 -0
- package/node_modules/toolcraft-design/dist/render.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render.js +1 -0
- package/node_modules/toolcraft-design/dist/reset-output-format-cache.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/reset-output-format-cache.js +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme-cache.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme-cache.js +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/resolve-output-format.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/resolve-output-format.js +1 -0
- package/node_modules/toolcraft-design/dist/resolve-template-partials.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/resolve-template-partials.js +1 -0
- package/node_modules/toolcraft-design/dist/resolve-theme-name.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/resolve-theme-name.js +1 -0
- package/node_modules/toolcraft-design/dist/run-explorer.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/run-explorer.js +1 -0
- package/node_modules/toolcraft-design/dist/run-two-pane-explorer.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/run-two-pane-explorer.js +1 -0
- package/node_modules/toolcraft-design/dist/select.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/select.js +1 -0
- package/node_modules/toolcraft-design/dist/should-use-interactive-dashboard.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/should-use-interactive-dashboard.js +1 -0
- package/node_modules/toolcraft-design/dist/single-detail.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/single-detail.js +1 -0
- package/node_modules/toolcraft-design/dist/spacing.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/spacing.js +1 -0
- package/node_modules/toolcraft-design/dist/spinner-frames.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/spinner-frames.js +1 -0
- package/node_modules/toolcraft-design/dist/spinner.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/spinner.js +1 -0
- package/node_modules/toolcraft-design/dist/strip-ansi.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/strip-ansi.js +1 -0
- package/node_modules/toolcraft-design/dist/symbols.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/symbols.js +1 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/ast.d.ts +6 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/html-renderer.d.ts +7 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/html-renderer.js +366 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/index.d.ts +5 -1
- package/node_modules/toolcraft-design/dist/terminal-markdown/index.js +6 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/parser/code-highlight.d.ts +4 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/parser/code-highlight.js +1357 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/renderer.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/renderer.js +63 -1
- package/node_modules/toolcraft-design/dist/text.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/text.js +1 -0
- package/node_modules/toolcraft-design/dist/typography.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/typography.js +1 -0
- package/node_modules/toolcraft-design/dist/widths.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/widths.js +1 -0
- package/node_modules/toolcraft-design/dist/with-output-format.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/with-output-format.js +1 -0
- package/node_modules/toolcraft-design/dist/with-spinner.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/with-spinner.js +1 -0
- package/node_modules/toolcraft-design/package.json +4 -0
- package/package.json +1 -1
|
@@ -5,16 +5,36 @@ Shared terminal design system for Toolcraft applications. It provides design tok
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install toolcraft
|
|
8
|
+
npm install toolcraft
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Import from the
|
|
11
|
+
`toolcraft-design` is currently distributed through `toolcraft`, not installed directly from npm as a standalone package. Import the design system from the bundled `toolcraft/design` entrypoint:
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
configureTheme,
|
|
16
|
+
promptText,
|
|
17
|
+
renderMarkdown,
|
|
18
|
+
renderMarkdownHtml,
|
|
19
|
+
renderTable,
|
|
20
|
+
text
|
|
21
|
+
} from "toolcraft/design";
|
|
15
22
|
```
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
Flat subpath imports are also available through `toolcraft/design/*`. Use the kebab-case file name that matches the root export name:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { renderMarkdownHtml } from "toolcraft/design/render-markdown-html";
|
|
28
|
+
import { renderTable } from "toolcraft/design/render-table";
|
|
29
|
+
import { renderDetailCard } from "toolcraft/design/render-detail-card";
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Inside this workspace, the design package exposes equivalent direct exports:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import { renderMarkdownHtml } from "toolcraft-design";
|
|
36
|
+
import { renderTable } from "toolcraft-design/render-table";
|
|
37
|
+
```
|
|
18
38
|
|
|
19
39
|
## Public API
|
|
20
40
|
|
|
@@ -68,7 +88,169 @@ The package does not expose public subpath imports.
|
|
|
68
88
|
- `parse`: parses Markdown into `MdNode` values.
|
|
69
89
|
- `render`: renders parsed Markdown nodes for the terminal.
|
|
70
90
|
- `renderMarkdown`: parses and renders a Markdown string.
|
|
71
|
-
-
|
|
91
|
+
- `renderHtml`: renders parsed Markdown nodes as safe HTML fragments.
|
|
92
|
+
- `renderMarkdownHtml`: parses and renders a Markdown string as a safe HTML fragment.
|
|
93
|
+
- Types: `MdNode`, `RenderOptions`, `HtmlRenderOptions`.
|
|
94
|
+
|
|
95
|
+
Terminal rendering and HTML rendering share the same parser and AST:
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
import { parse, render, renderHtml, renderMarkdownHtml } from "toolcraft-design";
|
|
99
|
+
|
|
100
|
+
const markdown = "# Status\n\nUse `poe-code configure`.";
|
|
101
|
+
const { ast } = parse(markdown);
|
|
102
|
+
|
|
103
|
+
console.log(render(ast));
|
|
104
|
+
console.log(renderHtml(ast));
|
|
105
|
+
console.log(renderMarkdownHtml(markdown));
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
HTML output is a fragment, not a full HTML document:
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
<h1>Status</h1>
|
|
112
|
+
<p>Use <code>poe-code configure</code>.</p>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Raw HTML in Markdown is escaped by default. Pass `{ allowRawHtml: true }` only when the input is trusted.
|
|
116
|
+
|
|
117
|
+
#### Syntax highlighting
|
|
118
|
+
|
|
119
|
+
Fenced code block syntax highlighting is opt-in:
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
import { renderMarkdown, renderMarkdownHtml } from "toolcraft-design";
|
|
123
|
+
|
|
124
|
+
const html = renderMarkdownHtml("```ts\nconst value = \"hello\";\n```", {
|
|
125
|
+
syntaxHighlight: true
|
|
126
|
+
});
|
|
127
|
+
const terminal = renderMarkdown("```ts\nconst value = \"hello\";\n```", {
|
|
128
|
+
syntaxHighlight: true
|
|
129
|
+
});
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
HTML highlighting emits escaped code text with neutral Toolcraft-owned `<span>` wrappers. The renderer does not ship or inject CSS, so consumers control the appearance:
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<pre><code class="language-ts"><span class="tc-token-keyword">const</span> value = <span class="tc-token-string">"hello"</span>;</code></pre>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Starter CSS:
|
|
139
|
+
|
|
140
|
+
```css
|
|
141
|
+
.tc-token-keyword,
|
|
142
|
+
.tc-token-type,
|
|
143
|
+
.tc-token-tag,
|
|
144
|
+
.tc-token-command,
|
|
145
|
+
.tc-token-decorator,
|
|
146
|
+
.tc-token-directive,
|
|
147
|
+
.tc-token-at-rule {
|
|
148
|
+
color: var(--code-keyword);
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.tc-token-string,
|
|
153
|
+
.tc-token-template {
|
|
154
|
+
color: var(--code-string);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.tc-token-comment {
|
|
158
|
+
color: var(--code-comment);
|
|
159
|
+
font-style: italic;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.tc-token-number,
|
|
163
|
+
.tc-token-boolean,
|
|
164
|
+
.tc-token-null,
|
|
165
|
+
.tc-token-parameter {
|
|
166
|
+
color: var(--code-number);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.tc-token-key,
|
|
170
|
+
.tc-token-property,
|
|
171
|
+
.tc-token-attribute,
|
|
172
|
+
.tc-token-variable,
|
|
173
|
+
.tc-token-function,
|
|
174
|
+
.tc-token-anchor,
|
|
175
|
+
.tc-token-label {
|
|
176
|
+
color: var(--code-symbol);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.tc-token-regex,
|
|
180
|
+
.tc-token-color,
|
|
181
|
+
.tc-token-important,
|
|
182
|
+
.tc-token-flag,
|
|
183
|
+
.tc-token-invalid {
|
|
184
|
+
color: var(--code-warning);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.tc-token-operator,
|
|
188
|
+
.tc-token-punctuation,
|
|
189
|
+
.tc-token-selector {
|
|
190
|
+
color: var(--code-muted);
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Available token classes:
|
|
195
|
+
|
|
196
|
+
- `.tc-token-anchor`
|
|
197
|
+
- `.tc-token-at-rule`
|
|
198
|
+
- `.tc-token-attribute`
|
|
199
|
+
- `.tc-token-boolean`
|
|
200
|
+
- `.tc-token-color`
|
|
201
|
+
- `.tc-token-command`
|
|
202
|
+
- `.tc-token-comment`
|
|
203
|
+
- `.tc-token-decorator`
|
|
204
|
+
- `.tc-token-directive`
|
|
205
|
+
- `.tc-token-flag`
|
|
206
|
+
- `.tc-token-function`
|
|
207
|
+
- `.tc-token-identifier`
|
|
208
|
+
- `.tc-token-important`
|
|
209
|
+
- `.tc-token-invalid`
|
|
210
|
+
- `.tc-token-key`
|
|
211
|
+
- `.tc-token-keyword`
|
|
212
|
+
- `.tc-token-label`
|
|
213
|
+
- `.tc-token-null`
|
|
214
|
+
- `.tc-token-number`
|
|
215
|
+
- `.tc-token-operator`
|
|
216
|
+
- `.tc-token-parameter`
|
|
217
|
+
- `.tc-token-plain`
|
|
218
|
+
- `.tc-token-property`
|
|
219
|
+
- `.tc-token-punctuation`
|
|
220
|
+
- `.tc-token-regex`
|
|
221
|
+
- `.tc-token-selector`
|
|
222
|
+
- `.tc-token-string`
|
|
223
|
+
- `.tc-token-tag`
|
|
224
|
+
- `.tc-token-template`
|
|
225
|
+
- `.tc-token-type`
|
|
226
|
+
- `.tc-token-variable`
|
|
227
|
+
|
|
228
|
+
The no-dependency highlighters cover these fence labels:
|
|
229
|
+
|
|
230
|
+
- ECMAScript and TypeScript: `js`, `javascript`, `mjs`, `cjs`, `es6`, `jsx`, `ts`, `typescript`, `mts`, `cts`, `tsx`
|
|
231
|
+
- Data: `json`, `jsonc`, `jsonl`, `yaml`, `yml`
|
|
232
|
+
- CSS and style dialects: `css`, `scss`, `sass`, `less`, `postcss`
|
|
233
|
+
- Shell: `sh`, `bash`, `shell`, `shellscript`, `zsh`, `fish`
|
|
234
|
+
- Python: `py`, `python`
|
|
235
|
+
- SQL: `sql`, `ddl`, `dml`
|
|
236
|
+
- Markup and Markdown: `html`, `xml`, `svg`, `md`, `markdown`
|
|
237
|
+
- Line-oriented formats: `diff`, `patch`, `dockerfile`, `docker`
|
|
238
|
+
- Config formats: `ini`, `properties`, `toml`
|
|
239
|
+
- Ruby: `rb`, `ruby`
|
|
240
|
+
- Go and JVM languages: `go`, `golang`, `java`, `kt`, `kotlin`, `kts`, `scala`, `sc`, `groovy`, `gvy`, `gy`, `gsp`, `gradle`
|
|
241
|
+
- Swift and Dart: `swift`, `dart`
|
|
242
|
+
- C-family: `c`, `cpp`, `c++`, `cc`, `cxx`, `cs`, `csharp`, `c#`, `objc`, `objectivec`, `objective-c`, `m`, `mm`
|
|
243
|
+
- Rust: `rs`, `rust`
|
|
244
|
+
- PHP: `php`
|
|
245
|
+
- Scripting and functional languages: `lua`, `pl`, `perl`, `pm`, `r`, `rscript`, `ps1`, `powershell`, `pwsh`, `ex`, `exs`, `elixir`, `erl`, `erlang`, `hrl`, `hs`, `haskell`, `clj`, `cljs`, `cljc`, `clojure`, `fs`, `fsi`, `fsx`, `fsharp`, `vb`, `vbnet`
|
|
246
|
+
- Schema and infrastructure formats: `graphql`, `gql`, `proto`, `protobuf`, `hcl`, `tf`, `terraform`, `nginx`, `nginxconf`, `makefile`, `mk`, `cmake`, `env`, `dotenv`
|
|
247
|
+
- Component formats: `vue`, `svelte`
|
|
248
|
+
|
|
249
|
+
These language labels intentionally render as plain escaped code:
|
|
250
|
+
|
|
251
|
+
- Plain text: `text`, `txt`, `plain`, `plaintext`
|
|
252
|
+
|
|
253
|
+
Unknown fence labels also render as plain escaped code. Code text is always escaped in HTML output, even when `allowRawHtml: true` is enabled.
|
|
72
254
|
|
|
73
255
|
### Static Rendering
|
|
74
256
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { brand } from "./tokens/colors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { brands } from "./tokens/brand.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cancel } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cancel } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { color } from "./components/color.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { configureTheme } from "./internal/theme-state.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { configureTheme } from "./internal/theme-state.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { confirmOrCancel } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { confirm } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createDashboard } from "./dashboard/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createLogger } from "./components/logger.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dark } from "./tokens/colors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatColumns } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatCommandList } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatCommandNotFoundPanel } from "./components/command-errors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatCommandNotFoundPanel } from "./components/command-errors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatCommandNotFound } from "./components/command-errors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatCommandNotFound } from "./components/command-errors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatCommand } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatCommand } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatOptionList } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatOption } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatOption } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatUsage } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatUsage } from "./components/help-formatter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTemplatePartialNames } from "./components/template.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTemplatePartialNames } from "./components/template.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getThemeConfig } from "./internal/theme-state.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getThemeConfig } from "./internal/theme-state.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTheme } from "./internal/theme-detect.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { helpFormatter } from "./components/help-formatter.js";
|
|
@@ -44,8 +44,8 @@ export { promptTheme } from "./prompts/theme.js";
|
|
|
44
44
|
export * as staticRender from "./static/index.js";
|
|
45
45
|
export { SPINNER_FRAMES, renderSpinnerFrame, renderSpinnerStopped, renderMenu } from "./static/index.js";
|
|
46
46
|
export type { SpinnerFrameOptions, SpinnerStoppedOptions, MenuOption, RenderMenuOptions } from "./static/index.js";
|
|
47
|
-
export { parse, render, renderMarkdown } from "./terminal-markdown/index.js";
|
|
48
|
-
export type { MdNode, RenderOptions } from "./terminal-markdown/index.js";
|
|
47
|
+
export { parse, render, renderHtml, renderMarkdown, renderMarkdownHtml } from "./terminal-markdown/index.js";
|
|
48
|
+
export type { CodeToken, CodeTokenKind, HtmlRenderOptions, MdNode, RenderOptions } from "./terminal-markdown/index.js";
|
|
49
49
|
export { getTheme, resolveThemeName, resetThemeCache } from "./internal/theme-detect.js";
|
|
50
50
|
export type { ThemeEnv } from "./internal/theme-detect.js";
|
|
51
51
|
export { configureTheme, getThemeConfig, resetTheme } from "./internal/theme-state.js";
|
|
@@ -37,7 +37,7 @@ export { promptTheme } from "./prompts/theme.js";
|
|
|
37
37
|
export * as staticRender from "./static/index.js";
|
|
38
38
|
export { SPINNER_FRAMES, renderSpinnerFrame, renderSpinnerStopped, renderMenu } from "./static/index.js";
|
|
39
39
|
// Terminal markdown
|
|
40
|
-
export { parse, render, renderMarkdown } from "./terminal-markdown/index.js";
|
|
40
|
+
export { parse, render, renderHtml, renderMarkdown, renderMarkdownHtml } from "./terminal-markdown/index.js";
|
|
41
41
|
// Internal utilities (for advanced use)
|
|
42
42
|
export { getTheme, resolveThemeName, resetThemeCache } from "./internal/theme-detect.js";
|
|
43
43
|
export { configureTheme, getThemeConfig, resetTheme } from "./internal/theme-state.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { introPlain } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { introPlain } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { intro } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { intro } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isCancel } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isCancel } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { light } from "./tokens/colors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { log } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { log } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { logger } from "./components/logger.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { multiselect } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { note } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { note } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { openExternal } from "./components/browser.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { openExternal } from "./components/browser.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { outro } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { outro } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parse } from "./terminal-markdown/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { password } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PromptCancelledError } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PromptCancelledError } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { text as promptText } from "./prompts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { promptTheme } from "./prompts/theme.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { promptTheme } from "./prompts/theme.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderCatalog } from "./components/catalog.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderDetailCard } from "./components/detail-card.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderHtml } from "./terminal-markdown/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderInspectorCard } from "./components/inspector-card.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderMarkdownHtml } from "./terminal-markdown/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderMarkdown } from "./terminal-markdown/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderMenu } from "./static/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderResourceBrowser } from "./components/resource-browser.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderSpinnerFrame } from "./static/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderSpinnerStopped } from "./static/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderTable } from "./components/table.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderTemplate } from "./components/template.js";
|