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.
Files changed (204) hide show
  1. package/dist/cli.js +152 -2
  2. package/dist/cli.js.map +3 -3
  3. package/dist/commands/close-session.js +1 -1
  4. package/dist/commands/close-session.js.map +2 -2
  5. package/dist/commands/create-session.js +1 -1
  6. package/dist/commands/create-session.js.map +2 -2
  7. package/dist/commands/daemon-runtime.js +1 -1
  8. package/dist/commands/daemon-runtime.js.map +2 -2
  9. package/dist/commands/fill.js +1 -1
  10. package/dist/commands/fill.js.map +2 -2
  11. package/dist/commands/get-session.js +1 -1
  12. package/dist/commands/get-session.js.map +2 -2
  13. package/dist/commands/index.js +145 -1
  14. package/dist/commands/index.js.map +3 -3
  15. package/dist/commands/install.js +145 -1
  16. package/dist/commands/install.js.map +3 -3
  17. package/dist/commands/installer.js +145 -1
  18. package/dist/commands/installer.js.map +3 -3
  19. package/dist/commands/list-sessions.js +1 -1
  20. package/dist/commands/list-sessions.js.map +2 -2
  21. package/dist/commands/press-key.js +1 -1
  22. package/dist/commands/press-key.js.map +2 -2
  23. package/dist/commands/read-history.js +1 -1
  24. package/dist/commands/read-history.js.map +2 -2
  25. package/dist/commands/read-screen.js +1 -1
  26. package/dist/commands/read-screen.js.map +2 -2
  27. package/dist/commands/resize.js +1 -1
  28. package/dist/commands/resize.js.map +2 -2
  29. package/dist/commands/runtime.js +1 -1
  30. package/dist/commands/runtime.js.map +2 -2
  31. package/dist/commands/screenshot.js +1 -1
  32. package/dist/commands/screenshot.js.map +2 -2
  33. package/dist/commands/send-signal.js +1 -1
  34. package/dist/commands/send-signal.js.map +2 -2
  35. package/dist/commands/type.js +1 -1
  36. package/dist/commands/type.js.map +2 -2
  37. package/dist/commands/uninstall.js +145 -1
  38. package/dist/commands/uninstall.js.map +3 -3
  39. package/dist/commands/wait-for-exit.js +1 -1
  40. package/dist/commands/wait-for-exit.js.map +2 -2
  41. package/dist/commands/wait-for.js +1 -1
  42. package/dist/commands/wait-for.js.map +2 -2
  43. package/dist/testing/cli-repl.js +152 -2
  44. package/dist/testing/cli-repl.js.map +3 -3
  45. package/dist/testing/qa-cli.js +152 -2
  46. package/dist/testing/qa-cli.js.map +3 -3
  47. package/node_modules/toolcraft-design/README.md +187 -5
  48. package/node_modules/toolcraft-design/dist/brand.d.ts +2 -0
  49. package/node_modules/toolcraft-design/dist/brand.js +1 -0
  50. package/node_modules/toolcraft-design/dist/brands.d.ts +2 -0
  51. package/node_modules/toolcraft-design/dist/brands.js +1 -0
  52. package/node_modules/toolcraft-design/dist/cancel.d.ts +1 -0
  53. package/node_modules/toolcraft-design/dist/cancel.js +1 -0
  54. package/node_modules/toolcraft-design/dist/color.d.ts +2 -0
  55. package/node_modules/toolcraft-design/dist/color.js +1 -0
  56. package/node_modules/toolcraft-design/dist/configure-theme.d.ts +1 -0
  57. package/node_modules/toolcraft-design/dist/configure-theme.js +1 -0
  58. package/node_modules/toolcraft-design/dist/confirm-or-cancel.d.ts +2 -0
  59. package/node_modules/toolcraft-design/dist/confirm-or-cancel.js +1 -0
  60. package/node_modules/toolcraft-design/dist/confirm.d.ts +2 -0
  61. package/node_modules/toolcraft-design/dist/confirm.js +1 -0
  62. package/node_modules/toolcraft-design/dist/create-dashboard.d.ts +2 -0
  63. package/node_modules/toolcraft-design/dist/create-dashboard.js +1 -0
  64. package/node_modules/toolcraft-design/dist/create-logger.d.ts +2 -0
  65. package/node_modules/toolcraft-design/dist/create-logger.js +1 -0
  66. package/node_modules/toolcraft-design/dist/dark.d.ts +2 -0
  67. package/node_modules/toolcraft-design/dist/dark.js +1 -0
  68. package/node_modules/toolcraft-design/dist/format-columns.d.ts +2 -0
  69. package/node_modules/toolcraft-design/dist/format-columns.js +1 -0
  70. package/node_modules/toolcraft-design/dist/format-command-list.d.ts +2 -0
  71. package/node_modules/toolcraft-design/dist/format-command-list.js +1 -0
  72. package/node_modules/toolcraft-design/dist/format-command-not-found-panel.d.ts +1 -0
  73. package/node_modules/toolcraft-design/dist/format-command-not-found-panel.js +1 -0
  74. package/node_modules/toolcraft-design/dist/format-command-not-found.d.ts +1 -0
  75. package/node_modules/toolcraft-design/dist/format-command-not-found.js +1 -0
  76. package/node_modules/toolcraft-design/dist/format-command.d.ts +1 -0
  77. package/node_modules/toolcraft-design/dist/format-command.js +1 -0
  78. package/node_modules/toolcraft-design/dist/format-option-list.d.ts +2 -0
  79. package/node_modules/toolcraft-design/dist/format-option-list.js +1 -0
  80. package/node_modules/toolcraft-design/dist/format-option.d.ts +1 -0
  81. package/node_modules/toolcraft-design/dist/format-option.js +1 -0
  82. package/node_modules/toolcraft-design/dist/format-usage.d.ts +1 -0
  83. package/node_modules/toolcraft-design/dist/format-usage.js +1 -0
  84. package/node_modules/toolcraft-design/dist/get-template-partial-names.d.ts +1 -0
  85. package/node_modules/toolcraft-design/dist/get-template-partial-names.js +1 -0
  86. package/node_modules/toolcraft-design/dist/get-theme-config.d.ts +1 -0
  87. package/node_modules/toolcraft-design/dist/get-theme-config.js +1 -0
  88. package/node_modules/toolcraft-design/dist/get-theme.d.ts +2 -0
  89. package/node_modules/toolcraft-design/dist/get-theme.js +1 -0
  90. package/node_modules/toolcraft-design/dist/help-formatter-plain.d.ts +2 -0
  91. package/node_modules/toolcraft-design/dist/help-formatter-plain.js +2 -0
  92. package/node_modules/toolcraft-design/dist/help-formatter.d.ts +2 -0
  93. package/node_modules/toolcraft-design/dist/help-formatter.js +1 -0
  94. package/node_modules/toolcraft-design/dist/index.d.ts +2 -2
  95. package/node_modules/toolcraft-design/dist/index.js +1 -1
  96. package/node_modules/toolcraft-design/dist/intro-plain.d.ts +1 -0
  97. package/node_modules/toolcraft-design/dist/intro-plain.js +1 -0
  98. package/node_modules/toolcraft-design/dist/intro.d.ts +1 -0
  99. package/node_modules/toolcraft-design/dist/intro.js +1 -0
  100. package/node_modules/toolcraft-design/dist/is-cancel.d.ts +1 -0
  101. package/node_modules/toolcraft-design/dist/is-cancel.js +1 -0
  102. package/node_modules/toolcraft-design/dist/light.d.ts +2 -0
  103. package/node_modules/toolcraft-design/dist/light.js +1 -0
  104. package/node_modules/toolcraft-design/dist/log.d.ts +1 -0
  105. package/node_modules/toolcraft-design/dist/log.js +1 -0
  106. package/node_modules/toolcraft-design/dist/logger.d.ts +2 -0
  107. package/node_modules/toolcraft-design/dist/logger.js +1 -0
  108. package/node_modules/toolcraft-design/dist/multiselect.d.ts +2 -0
  109. package/node_modules/toolcraft-design/dist/multiselect.js +1 -0
  110. package/node_modules/toolcraft-design/dist/note.d.ts +1 -0
  111. package/node_modules/toolcraft-design/dist/note.js +1 -0
  112. package/node_modules/toolcraft-design/dist/open-external.d.ts +1 -0
  113. package/node_modules/toolcraft-design/dist/open-external.js +1 -0
  114. package/node_modules/toolcraft-design/dist/outro.d.ts +1 -0
  115. package/node_modules/toolcraft-design/dist/outro.js +1 -0
  116. package/node_modules/toolcraft-design/dist/parse.d.ts +2 -0
  117. package/node_modules/toolcraft-design/dist/parse.js +1 -0
  118. package/node_modules/toolcraft-design/dist/password.d.ts +2 -0
  119. package/node_modules/toolcraft-design/dist/password.js +1 -0
  120. package/node_modules/toolcraft-design/dist/prompt-cancelled-error.d.ts +1 -0
  121. package/node_modules/toolcraft-design/dist/prompt-cancelled-error.js +1 -0
  122. package/node_modules/toolcraft-design/dist/prompt-text.d.ts +2 -0
  123. package/node_modules/toolcraft-design/dist/prompt-text.js +1 -0
  124. package/node_modules/toolcraft-design/dist/prompt-theme.d.ts +1 -0
  125. package/node_modules/toolcraft-design/dist/prompt-theme.js +1 -0
  126. package/node_modules/toolcraft-design/dist/render-catalog.d.ts +2 -0
  127. package/node_modules/toolcraft-design/dist/render-catalog.js +1 -0
  128. package/node_modules/toolcraft-design/dist/render-detail-card.d.ts +2 -0
  129. package/node_modules/toolcraft-design/dist/render-detail-card.js +1 -0
  130. package/node_modules/toolcraft-design/dist/render-html.d.ts +2 -0
  131. package/node_modules/toolcraft-design/dist/render-html.js +1 -0
  132. package/node_modules/toolcraft-design/dist/render-inspector-card.d.ts +2 -0
  133. package/node_modules/toolcraft-design/dist/render-inspector-card.js +1 -0
  134. package/node_modules/toolcraft-design/dist/render-markdown-html.d.ts +2 -0
  135. package/node_modules/toolcraft-design/dist/render-markdown-html.js +1 -0
  136. package/node_modules/toolcraft-design/dist/render-markdown.d.ts +2 -0
  137. package/node_modules/toolcraft-design/dist/render-markdown.js +1 -0
  138. package/node_modules/toolcraft-design/dist/render-menu.d.ts +2 -0
  139. package/node_modules/toolcraft-design/dist/render-menu.js +1 -0
  140. package/node_modules/toolcraft-design/dist/render-resource-browser.d.ts +2 -0
  141. package/node_modules/toolcraft-design/dist/render-resource-browser.js +1 -0
  142. package/node_modules/toolcraft-design/dist/render-spinner-frame.d.ts +2 -0
  143. package/node_modules/toolcraft-design/dist/render-spinner-frame.js +1 -0
  144. package/node_modules/toolcraft-design/dist/render-spinner-stopped.d.ts +2 -0
  145. package/node_modules/toolcraft-design/dist/render-spinner-stopped.js +1 -0
  146. package/node_modules/toolcraft-design/dist/render-table.d.ts +2 -0
  147. package/node_modules/toolcraft-design/dist/render-table.js +1 -0
  148. package/node_modules/toolcraft-design/dist/render-template.d.ts +2 -0
  149. package/node_modules/toolcraft-design/dist/render-template.js +1 -0
  150. package/node_modules/toolcraft-design/dist/render.d.ts +2 -0
  151. package/node_modules/toolcraft-design/dist/render.js +1 -0
  152. package/node_modules/toolcraft-design/dist/reset-output-format-cache.d.ts +1 -0
  153. package/node_modules/toolcraft-design/dist/reset-output-format-cache.js +1 -0
  154. package/node_modules/toolcraft-design/dist/reset-theme-cache.d.ts +1 -0
  155. package/node_modules/toolcraft-design/dist/reset-theme-cache.js +1 -0
  156. package/node_modules/toolcraft-design/dist/reset-theme.d.ts +1 -0
  157. package/node_modules/toolcraft-design/dist/reset-theme.js +1 -0
  158. package/node_modules/toolcraft-design/dist/resolve-output-format.d.ts +2 -0
  159. package/node_modules/toolcraft-design/dist/resolve-output-format.js +1 -0
  160. package/node_modules/toolcraft-design/dist/resolve-template-partials.d.ts +1 -0
  161. package/node_modules/toolcraft-design/dist/resolve-template-partials.js +1 -0
  162. package/node_modules/toolcraft-design/dist/resolve-theme-name.d.ts +2 -0
  163. package/node_modules/toolcraft-design/dist/resolve-theme-name.js +1 -0
  164. package/node_modules/toolcraft-design/dist/run-explorer.d.ts +2 -0
  165. package/node_modules/toolcraft-design/dist/run-explorer.js +1 -0
  166. package/node_modules/toolcraft-design/dist/run-two-pane-explorer.d.ts +2 -0
  167. package/node_modules/toolcraft-design/dist/run-two-pane-explorer.js +1 -0
  168. package/node_modules/toolcraft-design/dist/select.d.ts +2 -0
  169. package/node_modules/toolcraft-design/dist/select.js +1 -0
  170. package/node_modules/toolcraft-design/dist/should-use-interactive-dashboard.d.ts +1 -0
  171. package/node_modules/toolcraft-design/dist/should-use-interactive-dashboard.js +1 -0
  172. package/node_modules/toolcraft-design/dist/single-detail.d.ts +2 -0
  173. package/node_modules/toolcraft-design/dist/single-detail.js +1 -0
  174. package/node_modules/toolcraft-design/dist/spacing.d.ts +1 -0
  175. package/node_modules/toolcraft-design/dist/spacing.js +1 -0
  176. package/node_modules/toolcraft-design/dist/spinner-frames.d.ts +1 -0
  177. package/node_modules/toolcraft-design/dist/spinner-frames.js +1 -0
  178. package/node_modules/toolcraft-design/dist/spinner.d.ts +2 -0
  179. package/node_modules/toolcraft-design/dist/spinner.js +1 -0
  180. package/node_modules/toolcraft-design/dist/strip-ansi.d.ts +1 -0
  181. package/node_modules/toolcraft-design/dist/strip-ansi.js +1 -0
  182. package/node_modules/toolcraft-design/dist/symbols.d.ts +1 -0
  183. package/node_modules/toolcraft-design/dist/symbols.js +1 -0
  184. package/node_modules/toolcraft-design/dist/terminal-markdown/ast.d.ts +6 -0
  185. package/node_modules/toolcraft-design/dist/terminal-markdown/html-renderer.d.ts +7 -0
  186. package/node_modules/toolcraft-design/dist/terminal-markdown/html-renderer.js +366 -0
  187. package/node_modules/toolcraft-design/dist/terminal-markdown/index.d.ts +5 -1
  188. package/node_modules/toolcraft-design/dist/terminal-markdown/index.js +6 -0
  189. package/node_modules/toolcraft-design/dist/terminal-markdown/parser/code-highlight.d.ts +4 -0
  190. package/node_modules/toolcraft-design/dist/terminal-markdown/parser/code-highlight.js +1357 -0
  191. package/node_modules/toolcraft-design/dist/terminal-markdown/renderer.d.ts +1 -0
  192. package/node_modules/toolcraft-design/dist/terminal-markdown/renderer.js +63 -1
  193. package/node_modules/toolcraft-design/dist/text.d.ts +1 -0
  194. package/node_modules/toolcraft-design/dist/text.js +1 -0
  195. package/node_modules/toolcraft-design/dist/typography.d.ts +1 -0
  196. package/node_modules/toolcraft-design/dist/typography.js +1 -0
  197. package/node_modules/toolcraft-design/dist/widths.d.ts +1 -0
  198. package/node_modules/toolcraft-design/dist/widths.js +1 -0
  199. package/node_modules/toolcraft-design/dist/with-output-format.d.ts +2 -0
  200. package/node_modules/toolcraft-design/dist/with-output-format.js +1 -0
  201. package/node_modules/toolcraft-design/dist/with-spinner.d.ts +2 -0
  202. package/node_modules/toolcraft-design/dist/with-spinner.js +1 -0
  203. package/node_modules/toolcraft-design/package.json +4 -0
  204. 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-design
8
+ npm install toolcraft
9
9
  ```
10
10
 
11
- Import from the package root:
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 { configureTheme, promptText, renderMarkdown, renderTable, text } from "toolcraft-design";
14
+ import {
15
+ configureTheme,
16
+ promptText,
17
+ renderMarkdown,
18
+ renderMarkdownHtml,
19
+ renderTable,
20
+ text
21
+ } from "toolcraft/design";
15
22
  ```
16
23
 
17
- The package does not expose public subpath imports.
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
- - Types: `MdNode`, `RenderOptions`.
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">&quot;hello&quot;</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,2 @@
1
+ export { brand } from "./tokens/colors.js";
2
+ export type { Brand } from "./tokens/brand.js";
@@ -0,0 +1 @@
1
+ export { brand } from "./tokens/colors.js";
@@ -0,0 +1,2 @@
1
+ export { brands } from "./tokens/brand.js";
2
+ export type { Brand } from "./tokens/brand.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,2 @@
1
+ export { color } from "./components/color.js";
2
+ export type { Color } from "./components/color.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,2 @@
1
+ export { confirmOrCancel } from "./prompts/index.js";
2
+ export type { ConfirmOptions } from "./prompts/index.js";
@@ -0,0 +1 @@
1
+ export { confirmOrCancel } from "./prompts/index.js";
@@ -0,0 +1,2 @@
1
+ export { confirm } from "./prompts/index.js";
2
+ export type { ConfirmOptions } from "./prompts/index.js";
@@ -0,0 +1 @@
1
+ export { confirm } from "./prompts/index.js";
@@ -0,0 +1,2 @@
1
+ export { createDashboard } from "./dashboard/index.js";
2
+ export type { Dashboard, DashboardOptions } from "./dashboard/index.js";
@@ -0,0 +1 @@
1
+ export { createDashboard } from "./dashboard/index.js";
@@ -0,0 +1,2 @@
1
+ export { createLogger } from "./components/logger.js";
2
+ export type { LoggerOutput } from "./components/logger.js";
@@ -0,0 +1 @@
1
+ export { createLogger } from "./components/logger.js";
@@ -0,0 +1,2 @@
1
+ export { dark } from "./tokens/colors.js";
2
+ export type { ThemePalette } from "./tokens/colors.js";
@@ -0,0 +1 @@
1
+ export { dark } from "./tokens/colors.js";
@@ -0,0 +1,2 @@
1
+ export { formatColumns } from "./components/help-formatter.js";
2
+ export type { FormatColumnsOptions } from "./components/help-formatter.js";
@@ -0,0 +1 @@
1
+ export { formatColumns } from "./components/help-formatter.js";
@@ -0,0 +1,2 @@
1
+ export { formatCommandList } from "./components/help-formatter.js";
2
+ export type { CommandInfo } 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,2 @@
1
+ export { formatOptionList } from "./components/help-formatter.js";
2
+ export type { OptionInfo } 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,2 @@
1
+ export { getTheme } from "./internal/theme-detect.js";
2
+ export type { ThemeEnv } from "./internal/theme-detect.js";
@@ -0,0 +1 @@
1
+ export { getTheme } from "./internal/theme-detect.js";
@@ -0,0 +1,2 @@
1
+ export * as helpFormatterPlain from "./components/help-formatter-plain.js";
2
+ export * from "./components/help-formatter-plain.js";
@@ -0,0 +1,2 @@
1
+ export * as helpFormatterPlain from "./components/help-formatter-plain.js";
2
+ export * from "./components/help-formatter-plain.js";
@@ -0,0 +1,2 @@
1
+ export { helpFormatter } from "./components/help-formatter.js";
2
+ export type { CommandInfo, FormatColumnsOptions, OptionInfo } from "./components/help-formatter.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,2 @@
1
+ export { light } from "./tokens/colors.js";
2
+ export type { ThemePalette } from "./tokens/colors.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,2 @@
1
+ export { logger } from "./components/logger.js";
2
+ export type { LoggerOutput } from "./components/logger.js";
@@ -0,0 +1 @@
1
+ export { logger } from "./components/logger.js";
@@ -0,0 +1,2 @@
1
+ export { multiselect } from "./prompts/index.js";
2
+ export type { MultiselectOptions } from "./prompts/index.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,2 @@
1
+ export { parse } from "./terminal-markdown/index.js";
2
+ export type { MdNode } from "./terminal-markdown/index.js";
@@ -0,0 +1 @@
1
+ export { parse } from "./terminal-markdown/index.js";
@@ -0,0 +1,2 @@
1
+ export { password } from "./prompts/index.js";
2
+ export type { PasswordOptions } from "./prompts/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,2 @@
1
+ export { text as promptText } from "./prompts/index.js";
2
+ export type { TextOptions } 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,2 @@
1
+ export { renderCatalog } from "./components/catalog.js";
2
+ export type { CatalogGroup, CatalogItem, CatalogMetric, CatalogTone, RenderCatalogOptions } from "./components/catalog.js";
@@ -0,0 +1 @@
1
+ export { renderCatalog } from "./components/catalog.js";
@@ -0,0 +1,2 @@
1
+ export { renderDetailCard } from "./components/detail-card.js";
2
+ export type { DetailCardRow, DetailCardSection, RenderDetailCardOptions } from "./components/detail-card.js";
@@ -0,0 +1 @@
1
+ export { renderDetailCard } from "./components/detail-card.js";
@@ -0,0 +1,2 @@
1
+ export { renderHtml } from "./terminal-markdown/index.js";
2
+ export type { HtmlRenderOptions, MdNode } from "./terminal-markdown/index.js";
@@ -0,0 +1 @@
1
+ export { renderHtml } from "./terminal-markdown/index.js";
@@ -0,0 +1,2 @@
1
+ export { renderInspectorCard } from "./components/inspector-card.js";
2
+ export type { InspectorField, InspectorSection, RenderInspectorCardOptions } from "./components/inspector-card.js";
@@ -0,0 +1 @@
1
+ export { renderInspectorCard } from "./components/inspector-card.js";
@@ -0,0 +1,2 @@
1
+ export { renderMarkdownHtml } from "./terminal-markdown/index.js";
2
+ export type { HtmlRenderOptions } from "./terminal-markdown/index.js";
@@ -0,0 +1 @@
1
+ export { renderMarkdownHtml } from "./terminal-markdown/index.js";
@@ -0,0 +1,2 @@
1
+ export { renderMarkdown } from "./terminal-markdown/index.js";
2
+ export type { RenderOptions } from "./terminal-markdown/index.js";
@@ -0,0 +1 @@
1
+ export { renderMarkdown } from "./terminal-markdown/index.js";
@@ -0,0 +1,2 @@
1
+ export { renderMenu } from "./static/index.js";
2
+ export type { MenuOption, RenderMenuOptions } from "./static/index.js";
@@ -0,0 +1 @@
1
+ export { renderMenu } from "./static/index.js";
@@ -0,0 +1,2 @@
1
+ export { renderResourceBrowser } from "./components/resource-browser.js";
2
+ export type { RenderResourceBrowserOptions, ResourceBrowserGroup, ResourceBrowserItem } from "./components/resource-browser.js";
@@ -0,0 +1 @@
1
+ export { renderResourceBrowser } from "./components/resource-browser.js";
@@ -0,0 +1,2 @@
1
+ export { renderSpinnerFrame } from "./static/index.js";
2
+ export type { SpinnerFrameOptions } from "./static/index.js";
@@ -0,0 +1 @@
1
+ export { renderSpinnerFrame } from "./static/index.js";
@@ -0,0 +1,2 @@
1
+ export { renderSpinnerStopped } from "./static/index.js";
2
+ export type { SpinnerStoppedOptions } from "./static/index.js";
@@ -0,0 +1 @@
1
+ export { renderSpinnerStopped } from "./static/index.js";
@@ -0,0 +1,2 @@
1
+ export { renderTable } from "./components/table.js";
2
+ export type { RenderTableOptions, TableColumn } from "./components/table.js";
@@ -0,0 +1 @@
1
+ export { renderTable } from "./components/table.js";
@@ -0,0 +1,2 @@
1
+ export { renderTemplate } from "./components/template.js";
2
+ export type { RenderTemplateOptions, TemplateEscape } from "./components/template.js";
@@ -0,0 +1 @@
1
+ export { renderTemplate } from "./components/template.js";
@@ -0,0 +1,2 @@
1
+ export { render } from "./terminal-markdown/index.js";
2
+ export type { MdNode, RenderOptions } from "./terminal-markdown/index.js";