@alwith/module-chat 0.1.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.
Files changed (171) hide show
  1. package/LICENSE +94 -0
  2. package/README.md +54 -0
  3. package/THIRD_PARTY_NOTICES.md +43 -0
  4. package/dist/activity-host.d.ts +32 -0
  5. package/dist/activity-host.js +1 -0
  6. package/dist/approval/choice-elicitation-form.d.ts +15 -0
  7. package/dist/approval/choice-elicitation-form.js +1 -0
  8. package/dist/approval/choice-schema.d.ts +18 -0
  9. package/dist/approval/choice-schema.js +1 -0
  10. package/dist/approval/permission-options.d.ts +7 -0
  11. package/dist/approval/permission-options.js +1 -0
  12. package/dist/approval/permission-view.d.ts +19 -0
  13. package/dist/approval/permission-view.js +1 -0
  14. package/dist/approval/schema-elicitation-form.d.ts +29 -0
  15. package/dist/approval/schema-elicitation-form.js +1 -0
  16. package/dist/approval/url-elicitation-card.d.ts +8 -0
  17. package/dist/approval/url-elicitation-card.js +1 -0
  18. package/dist/codex/activity-group.d.ts +15 -0
  19. package/dist/codex/activity-group.js +6 -0
  20. package/dist/codex/assistant-message.d.ts +43 -0
  21. package/dist/codex/assistant-message.js +2 -0
  22. package/dist/codex/disclosure-state.d.ts +2 -0
  23. package/dist/codex/disclosure-state.js +1 -0
  24. package/dist/codex/edited-files-card.d.ts +15 -0
  25. package/dist/codex/edited-files-card.js +2 -0
  26. package/dist/codex/markdown-renderer.d.ts +11 -0
  27. package/dist/codex/markdown-renderer.js +6 -0
  28. package/dist/codex/markdown.css +760 -0
  29. package/dist/codex/navigation-audio.d.ts +18 -0
  30. package/dist/codex/navigation-audio.js +1 -0
  31. package/dist/codex/navigation-instruments.d.ts +54 -0
  32. package/dist/codex/navigation-instruments.js +1 -0
  33. package/dist/codex/navigation-preview.d.ts +8 -0
  34. package/dist/codex/navigation-preview.js +1 -0
  35. package/dist/codex/navigation-rail.css +216 -0
  36. package/dist/codex/navigation-rail.d.ts +25 -0
  37. package/dist/codex/navigation-rail.js +1 -0
  38. package/dist/codex/patch-view.d.ts +8 -0
  39. package/dist/codex/patch-view.js +2 -0
  40. package/dist/codex/plan.d.ts +4 -0
  41. package/dist/codex/plan.js +1 -0
  42. package/dist/codex/styles.css +1238 -0
  43. package/dist/codex/terminal-output.d.ts +3 -0
  44. package/dist/codex/terminal-output.js +1 -0
  45. package/dist/codex/thread-virtualizer.d.ts +52 -0
  46. package/dist/codex/thread-virtualizer.js +1 -0
  47. package/dist/codex/user-message.d.ts +30 -0
  48. package/dist/codex/user-message.js +1 -0
  49. package/dist/codex/virtualized-turn-list.d.ts +16 -0
  50. package/dist/codex/virtualized-turn-list.js +1 -0
  51. package/dist/composer/completion-filter.d.ts +12 -0
  52. package/dist/composer/completion-filter.js +1 -0
  53. package/dist/composer/completion-menu.d.ts +21 -0
  54. package/dist/composer/completion-menu.js +3 -0
  55. package/dist/composer/completion-trigger.d.ts +8 -0
  56. package/dist/composer/completion-trigger.js +3 -0
  57. package/dist/composer/effort-slider.d.ts +10 -0
  58. package/dist/composer/effort-slider.js +1 -0
  59. package/dist/composer/menu-radio.d.ts +15 -0
  60. package/dist/composer/menu-radio.js +1 -0
  61. package/dist/composer/model-select.d.ts +56 -0
  62. package/dist/composer/model-select.js +1 -0
  63. package/dist/composer/permission-mode-select.d.ts +13 -0
  64. package/dist/composer/permission-mode-select.js +1 -0
  65. package/dist/composer/prompt-input-attachments.d.ts +16 -0
  66. package/dist/composer/prompt-input-attachments.js +1 -0
  67. package/dist/composer/prompt-input-clipboard.d.ts +10 -0
  68. package/dist/composer/prompt-input-clipboard.js +1 -0
  69. package/dist/composer/prompt-input-context.d.ts +59 -0
  70. package/dist/composer/prompt-input-context.js +1 -0
  71. package/dist/composer/prompt-input-textarea.d.ts +13 -0
  72. package/dist/composer/prompt-input-textarea.js +3 -0
  73. package/dist/composer/prompt-input.d.ts +44 -0
  74. package/dist/composer/prompt-input.js +1 -0
  75. package/dist/image-lightbox.d.ts +5 -0
  76. package/dist/image-lightbox.js +1 -0
  77. package/dist/image-preview-dialog.d.ts +14 -0
  78. package/dist/image-preview-dialog.js +1 -0
  79. package/dist/lib/code-highlighter.d.ts +27 -0
  80. package/dist/lib/code-highlighter.js +1 -0
  81. package/dist/lib/code-highlighter.worker.d.ts +1 -0
  82. package/dist/lib/code-highlighter.worker.js +1 -0
  83. package/dist/lib/fuzzy.d.ts +11 -0
  84. package/dist/lib/fuzzy.js +1 -0
  85. package/dist/lib/group-blocks.d.ts +5 -0
  86. package/dist/lib/group-blocks.js +1 -0
  87. package/dist/lib/image-encode.d.ts +1 -0
  88. package/dist/lib/image-encode.js +1 -0
  89. package/dist/lib/limits.d.ts +5 -0
  90. package/dist/lib/limits.js +1 -0
  91. package/dist/lib/markdown-parser.d.ts +34 -0
  92. package/dist/lib/markdown-parser.js +1 -0
  93. package/dist/lib/markdown-parser.worker.d.ts +1 -0
  94. package/dist/lib/markdown-parser.worker.js +1 -0
  95. package/dist/lib/markdown-rules.d.ts +9 -0
  96. package/dist/lib/markdown-rules.js +1 -0
  97. package/dist/lib/pointer-centered-zoom.d.ts +13 -0
  98. package/dist/lib/pointer-centered-zoom.js +1 -0
  99. package/dist/lib/prepare-prompt-files.d.ts +7 -0
  100. package/dist/lib/prepare-prompt-files.js +1 -0
  101. package/dist/lib/stream-entry.d.ts +28 -0
  102. package/dist/lib/stream-entry.js +0 -0
  103. package/dist/lib/stream-style.d.ts +15 -0
  104. package/dist/lib/stream-style.js +2 -0
  105. package/dist/lib/streaming-markdown.d.ts +4 -0
  106. package/dist/lib/streaming-markdown.js +2 -0
  107. package/dist/locales.d.ts +489 -0
  108. package/dist/locales.js +1 -0
  109. package/dist/search/chat-search.d.ts +19 -0
  110. package/dist/search/chat-search.js +1 -0
  111. package/dist/search/dom-matches.d.ts +1 -0
  112. package/dist/search/dom-matches.js +1 -0
  113. package/dist/search/find-bar.d.ts +14 -0
  114. package/dist/search/find-bar.js +1 -0
  115. package/dist/search/literal-matches.d.ts +12 -0
  116. package/dist/search/literal-matches.js +1 -0
  117. package/dist/types.d.ts +139 -0
  118. package/dist/types.js +0 -0
  119. package/dist/ui/badge.d.ts +7 -0
  120. package/dist/ui/badge.js +1 -0
  121. package/dist/ui/button.d.ts +8 -0
  122. package/dist/ui/button.js +1 -0
  123. package/dist/ui/card.d.ts +11 -0
  124. package/dist/ui/card.js +1 -0
  125. package/dist/ui/checkbox.d.ts +3 -0
  126. package/dist/ui/checkbox.js +1 -0
  127. package/dist/ui/dialog.d.ts +17 -0
  128. package/dist/ui/dialog.js +1 -0
  129. package/dist/ui/dropdown-menu.d.ts +29 -0
  130. package/dist/ui/dropdown-menu.js +1 -0
  131. package/dist/ui/field.d.ts +24 -0
  132. package/dist/ui/field.js +1 -0
  133. package/dist/ui/hover-card.d.ts +5 -0
  134. package/dist/ui/hover-card.js +1 -0
  135. package/dist/ui/input-group-textarea.d.ts +2 -0
  136. package/dist/ui/input-group-textarea.js +1 -0
  137. package/dist/ui/input-group.d.ts +17 -0
  138. package/dist/ui/input-group.js +1 -0
  139. package/dist/ui/input.d.ts +3 -0
  140. package/dist/ui/input.js +1 -0
  141. package/dist/ui/label.d.ts +3 -0
  142. package/dist/ui/label.js +1 -0
  143. package/dist/ui/radio-group.d.ts +5 -0
  144. package/dist/ui/radio-group.js +1 -0
  145. package/dist/ui/separator.d.ts +3 -0
  146. package/dist/ui/separator.js +1 -0
  147. package/dist/ui/switch.d.ts +5 -0
  148. package/dist/ui/switch.js +1 -0
  149. package/dist/ui/textarea.d.ts +3 -0
  150. package/dist/ui/textarea.js +1 -0
  151. package/dist/ui/tooltip.d.ts +6 -0
  152. package/dist/ui/tooltip.js +1 -0
  153. package/licenses/Apache-2.0.txt +191 -0
  154. package/licenses/_agentclientprotocol_sdk-LICENSE +191 -0
  155. package/licenses/_base-ui_react-LICENSE +21 -0
  156. package/licenses/_floating-ui_dom-LICENSE +20 -0
  157. package/licenses/ai-elements-notice.txt +13 -0
  158. package/licenses/ansi_up-LICENSE +22 -0
  159. package/licenses/class-variance-authority-LICENSE +190 -0
  160. package/licenses/cn-LICENSE +21 -0
  161. package/licenses/diff2html-LICENSE.md +14 -0
  162. package/licenses/entities-LICENSE +11 -0
  163. package/licenses/highlight.js-LICENSE +29 -0
  164. package/licenses/katex-LICENSE +21 -0
  165. package/licenses/lucide-react-LICENSE +43 -0
  166. package/licenses/marked-LICENSE +44 -0
  167. package/licenses/marked-linkify-it-LICENSE +21 -0
  168. package/licenses/react-LICENSE +21 -0
  169. package/licenses/react-dom-LICENSE +21 -0
  170. package/licenses/shadcn-ui-MIT.txt +21 -0
  171. package/package.json +314 -0
@@ -0,0 +1,760 @@
1
+ /* Codex 流式逐词淡入(_fadeIn_):新词 opacity 0→1,150ms cubic-bezier(.37,.55,.86,.88)。 */
2
+ .codex-markdown-fade {
3
+ opacity: 0;
4
+ animation: codex-markdown-fade-in 0.15s cubic-bezier(0.37, 0.55, 0.86, 0.88) forwards;
5
+ }
6
+
7
+ @keyframes codex-markdown-fade-in {
8
+ to {
9
+ opacity: 1;
10
+ }
11
+ }
12
+
13
+ .codex-markdown-content {
14
+ --markdown-font-size: var(--codex-chat-font-size);
15
+ --markdown-line-height: 1.5;
16
+ --text-primary: var(--codex-foreground);
17
+ --border-medium: var(--codex-border);
18
+ --border-light: rgb(31 35 40 / 5%);
19
+ --main-surface-secondary: var(--codex-user-background);
20
+ --text-code-block-background: color-mix(in oklab, var(--codex-foreground) 5%, transparent);
21
+ --thread-content-max-width: 48rem;
22
+ --markdown-wide-block-max-width: 56rem;
23
+ --thread-content-margin: 24px;
24
+ --padding-toolbar: 16px;
25
+ color: var(--text-primary);
26
+ font-size: var(--markdown-font-size);
27
+ font-weight: 400;
28
+ line-height: var(--markdown-line-height);
29
+ overflow-wrap: anywhere;
30
+ }
31
+
32
+ .dark .codex-markdown-content {
33
+ --border-light: color-mix(in oklab, white 4%, transparent);
34
+ }
35
+
36
+ .codex-user-message-text .codex-markdown-content {
37
+ white-space: pre-wrap;
38
+ }
39
+
40
+ .codex-markdown-content > :first-child {
41
+ margin-top: 0;
42
+ }
43
+
44
+ .codex-markdown-content > :last-child {
45
+ margin-bottom: 0;
46
+ }
47
+
48
+ .codex-markdown-paragraph {
49
+ margin: 0 0 0.6875rem;
50
+ }
51
+
52
+ .codex-markdown-media-paragraph {
53
+ text-align: left;
54
+ }
55
+
56
+ .codex-markdown-media-wide-block {
57
+ --wide-block-container-max-width: max(
58
+ 100%,
59
+ calc(50cqi + 50% - var(--padding-toolbar) - var(--thread-wide-block-inline-shift, 0px))
60
+ );
61
+ --wide-block-width: min(var(--markdown-wide-block-max-width), var(--wide-block-container-max-width));
62
+ width: var(--wide-block-width);
63
+ max-width: none;
64
+ margin-left: 0;
65
+ }
66
+
67
+ .codex-markdown-media-grid-paragraph {
68
+ display: flex;
69
+ flex-wrap: wrap;
70
+ align-items: flex-start;
71
+ gap: 12px;
72
+ }
73
+
74
+ .codex-markdown-heading {
75
+ margin: 20px 0 10px;
76
+ font-weight: 600;
77
+ line-height: 1.25;
78
+ }
79
+
80
+ .codex-markdown-heading-1 {
81
+ font-size: 24px;
82
+ }
83
+
84
+ .codex-markdown-heading-2 {
85
+ font-size: 20px;
86
+ }
87
+
88
+ .codex-markdown-heading-3,
89
+ .codex-markdown-heading-4 {
90
+ font-size: 17px;
91
+ line-height: 22px;
92
+ }
93
+
94
+ .codex-markdown-heading-5,
95
+ .codex-markdown-heading-6 {
96
+ font-size: 15px;
97
+ line-height: 20px;
98
+ }
99
+
100
+ .codex-markdown-strong {
101
+ font-weight: 600;
102
+ }
103
+
104
+ .codex-markdown-content a {
105
+ color: inherit;
106
+ text-decoration: none;
107
+ }
108
+
109
+ .codex-markdown-content a:not([data-inline-mention-interactive]):hover {
110
+ text-decoration: underline;
111
+ text-underline-offset: 2px;
112
+ }
113
+
114
+ .codex-markdown-link {
115
+ cursor: default;
116
+ }
117
+
118
+ .codex-markdown-link-mention {
119
+ --codex-inline-mention-base-color: color-mix(in srgb, var(--codex-link-foreground) 80%, var(--codex-foreground) 20%);
120
+ padding-inline: 2px;
121
+ color: var(--codex-inline-mention-base-color);
122
+ cursor: default;
123
+ font-weight: 500;
124
+ }
125
+
126
+ .codex-markdown-link-mention[data-layout="inline-flow"] {
127
+ white-space: nowrap;
128
+ }
129
+
130
+ .codex-markdown-link-icon-container {
131
+ position: relative;
132
+ display: inline-block;
133
+ width: 16px;
134
+ height: 1lh;
135
+ margin-inline-end: 3px;
136
+ vertical-align: bottom;
137
+ }
138
+
139
+ .codex-markdown-favicon {
140
+ position: absolute;
141
+ top: 50%;
142
+ display: inline-block;
143
+ width: 16px;
144
+ height: 16px;
145
+ transform: translateY(-50%);
146
+ }
147
+
148
+ .codex-markdown-favicon-fallback {
149
+ position: absolute;
150
+ inset: 0;
151
+ display: flex;
152
+ align-items: center;
153
+ justify-content: center;
154
+ border-radius: 9999px;
155
+ background: color-mix(in srgb, var(--codex-foreground) 15%, transparent);
156
+ color: color-mix(in srgb, var(--codex-foreground) 55%, transparent);
157
+ }
158
+
159
+ .codex-markdown-favicon-fallback > svg {
160
+ width: 70%;
161
+ height: 70%;
162
+ }
163
+
164
+ .codex-markdown-favicon > img {
165
+ position: absolute;
166
+ inset: 0;
167
+ width: 100%;
168
+ height: 100%;
169
+ border-radius: 2px;
170
+ object-fit: contain;
171
+ opacity: 0;
172
+ }
173
+
174
+ .codex-markdown-favicon > .codex-markdown-favicon-image-loaded {
175
+ opacity: 1;
176
+ }
177
+
178
+ .codex-markdown-link-label {
179
+ min-width: 0;
180
+ overflow-wrap: break-word;
181
+ white-space: normal;
182
+ }
183
+
184
+ @media (hover: hover) {
185
+ [data-inline-mention-interactive]:hover .codex-markdown-link-mention[data-underline-on-hover] {
186
+ text-decoration: underline dashed;
187
+ text-decoration-thickness: 0.5px;
188
+ text-underline-offset: 2px;
189
+ }
190
+ }
191
+
192
+ .codex-markdown-inline-code {
193
+ -webkit-box-decoration-break: clone;
194
+ box-decoration-break: clone;
195
+ unicode-bidi: isolate;
196
+ background: color-mix(in srgb, var(--codex-hover) 60%, var(--codex-foreground) 6%);
197
+ font-family: var(--font-mono);
198
+ overflow-wrap: anywhere;
199
+ word-break: break-word;
200
+ border-radius: 6px;
201
+ padding: 1px 6px;
202
+ font-size: 0.92em;
203
+ display: inline;
204
+ }
205
+
206
+ .codex-markdown-list {
207
+ margin: 0;
208
+ padding-inline-start: 1.3125rem;
209
+ list-style-position: outside;
210
+ }
211
+
212
+ .codex-markdown-content > p:has(+ .codex-markdown-list) {
213
+ margin-bottom: 0.625rem;
214
+ }
215
+
216
+ .codex-markdown-content > .codex-markdown-list:not(:last-child) {
217
+ margin-bottom: 0.625rem;
218
+ }
219
+
220
+ .codex-markdown-unordered-list {
221
+ list-style-type: disc;
222
+ }
223
+
224
+ .codex-markdown-list .codex-markdown-unordered-list {
225
+ list-style-type: circle;
226
+ }
227
+
228
+ .codex-markdown-list .codex-markdown-list .codex-markdown-unordered-list {
229
+ list-style-type: square;
230
+ }
231
+
232
+ .codex-markdown-ordered-list {
233
+ list-style-type: decimal;
234
+ }
235
+
236
+ .codex-markdown-unordered-list > .codex-markdown-list-item::marker,
237
+ .codex-markdown-ordered-list > .codex-markdown-list-item::marker {
238
+ color: var(--text-primary);
239
+ }
240
+
241
+ .codex-markdown-task-list {
242
+ padding-inline-start: 0;
243
+ list-style-type: none;
244
+ }
245
+
246
+ .codex-markdown-list-item {
247
+ display: list-item;
248
+ padding-inline-start: 0.125rem;
249
+ }
250
+
251
+ .codex-markdown-list-item + .codex-markdown-list-item {
252
+ margin-top: 0.5rem;
253
+ }
254
+
255
+ .codex-markdown-list-item > :first-child {
256
+ margin-top: 0;
257
+ margin-bottom: 0;
258
+ }
259
+
260
+ .codex-markdown-list-item > :last-child {
261
+ margin-bottom: 0;
262
+ }
263
+
264
+ .codex-markdown-list-item > p {
265
+ margin: 0;
266
+ }
267
+
268
+ .codex-markdown-list-item > p + p {
269
+ margin-top: 0.6875rem;
270
+ }
271
+
272
+ .codex-markdown-list-item > .codex-markdown-list {
273
+ margin-top: 0.5rem;
274
+ margin-bottom: 0;
275
+ }
276
+
277
+ .codex-markdown-task-list-item {
278
+ padding-inline-start: 0;
279
+ list-style-type: none;
280
+ }
281
+
282
+ .codex-markdown-task-list-item:has(> p) {
283
+ display: grid;
284
+ grid-template-columns: auto minmax(0, 1fr);
285
+ }
286
+
287
+ .codex-markdown-task-list-item:has(> p) > :first-child {
288
+ margin-top: 0.25rem;
289
+ }
290
+
291
+ .codex-markdown-task-list-item:has(> p) > :not(:first-child) {
292
+ grid-column: 2;
293
+ }
294
+
295
+ .codex-markdown-task-checkbox {
296
+ position: relative;
297
+ display: inline-flex;
298
+ margin-inline-end: 0.375rem;
299
+ cursor: default;
300
+ vertical-align: -0.125rem;
301
+ }
302
+
303
+ .codex-markdown-checkbox {
304
+ appearance: none;
305
+ display: inline-flex;
306
+ width: 14px;
307
+ height: 14px;
308
+ flex-shrink: 0;
309
+ align-items: center;
310
+ justify-content: center;
311
+ margin: 0;
312
+ border: 1px solid var(--codex-border);
313
+ border-radius: 4px;
314
+ background: transparent;
315
+ padding: 0;
316
+ color: var(--codex-checkbox-foreground);
317
+ pointer-events: none;
318
+ outline: none;
319
+ box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
320
+ }
321
+
322
+ .codex-markdown-checkbox[data-state="checked"] {
323
+ background: var(--codex-checkbox-background);
324
+ }
325
+
326
+ .codex-markdown-task-checkbox > svg {
327
+ position: absolute;
328
+ inset: 1px;
329
+ width: 12px;
330
+ height: 12px;
331
+ stroke-width: 2;
332
+ }
333
+
334
+ .codex-markdown-blockquote {
335
+ position: relative;
336
+ margin: 0 0 8px;
337
+ border: 0;
338
+ background: transparent;
339
+ padding-block: 8px;
340
+ padding-inline-start: 24px;
341
+ color: var(--text-primary);
342
+ font-style: normal;
343
+ line-height: 24px;
344
+ }
345
+
346
+ .codex-markdown-blockquote > :first-child {
347
+ margin-top: 0;
348
+ }
349
+
350
+ .codex-markdown-blockquote > :last-child {
351
+ margin-bottom: 0;
352
+ }
353
+
354
+ .codex-markdown-blockquote > .codex-markdown-paragraph {
355
+ margin: 0;
356
+ font-weight: 400;
357
+ }
358
+
359
+ .codex-markdown-blockquote::after {
360
+ position: absolute;
361
+ inset-inline-start: 0;
362
+ top: 8px;
363
+ bottom: 8px;
364
+ width: 4px;
365
+ border-radius: 2px;
366
+ background: var(--border-medium);
367
+ content: "";
368
+ }
369
+
370
+ .codex-markdown-horizontal-rule {
371
+ clear: both;
372
+ height: 0;
373
+ margin: 28px 0;
374
+ border: 0;
375
+ border-top: 1px solid var(--border-medium);
376
+ }
377
+
378
+ .codex-markdown-horizontal-rule + * {
379
+ margin-top: 0;
380
+ }
381
+
382
+ .codex-markdown-table-container {
383
+ width: calc(100% + (var(--thread-content-margin) * 2));
384
+ margin-inline: calc(var(--thread-content-margin) * -1);
385
+ }
386
+
387
+ .codex-markdown-table-scroller {
388
+ overflow-x: auto;
389
+ scrollbar-width: thin;
390
+ }
391
+
392
+ .codex-markdown-table-wrapper {
393
+ width: fit-content;
394
+ margin-inline: var(--thread-content-margin);
395
+ pointer-events: auto;
396
+ }
397
+
398
+ .codex-markdown-table {
399
+ width: fit-content;
400
+ min-width: min(
401
+ calc(100cqw - (var(--padding-toolbar) * 2)),
402
+ calc(var(--thread-content-max-width) - (var(--padding-toolbar) * 2))
403
+ );
404
+ margin: 0;
405
+ border-collapse: separate;
406
+ border-spacing: 0;
407
+ table-layout: auto;
408
+ font-size: 14px;
409
+ text-align: start;
410
+ }
411
+
412
+ .codex-markdown-table-header,
413
+ .codex-markdown-table-cell {
414
+ max-width: calc(var(--thread-content-max-width) * 18 / 24);
415
+ padding-inline-end: 24px;
416
+ overflow-wrap: break-word;
417
+ text-align: start;
418
+ vertical-align: top;
419
+ white-space: normal;
420
+ word-break: normal;
421
+ }
422
+
423
+ .codex-markdown-table-header {
424
+ border-bottom: 1px solid var(--border-medium);
425
+ padding-top: 8px;
426
+ padding-bottom: 8px;
427
+ color: var(--text-primary);
428
+ font-weight: 600;
429
+ line-height: 16px;
430
+ }
431
+
432
+ .codex-markdown-table-cell {
433
+ padding-top: 10px;
434
+ padding-bottom: 10px;
435
+ }
436
+
437
+ .codex-markdown-table-row:not(:last-child) .codex-markdown-table-cell {
438
+ border-bottom: 1px solid var(--border-light);
439
+ }
440
+
441
+ .codex-markdown-numeric-table-cell {
442
+ min-width: calc(3ch + 24px);
443
+ white-space: nowrap;
444
+ }
445
+
446
+ .codex-markdown-table-header:last-child {
447
+ padding-inline-end: 40px;
448
+ }
449
+
450
+ .codex-markdown-table-cell:last-child {
451
+ padding-inline-end: 0;
452
+ }
453
+
454
+ .codex-markdown-table-body .codex-markdown-table-row:last-child .codex-markdown-table-cell {
455
+ padding-bottom: 24px;
456
+ }
457
+
458
+ .codex-markdown-code-block {
459
+ position: relative;
460
+ contain: inline-size;
461
+ width: 100%;
462
+ min-width: 0;
463
+ margin-block: 14px;
464
+ overflow: clip;
465
+ border-radius: 8px;
466
+ background: var(--text-code-block-background);
467
+ }
468
+
469
+ .codex-markdown-code-placeholder {
470
+ overflow-x: auto;
471
+ margin: 0;
472
+ border-radius: 8px;
473
+ background: var(--text-code-block-background);
474
+ padding: 8px;
475
+ font-size: var(--codex-chat-code-font-size);
476
+ line-height: var(--codex-chat-code-line-height);
477
+ }
478
+
479
+ .codex-markdown-code-placeholder code {
480
+ font-family: var(--font-mono);
481
+ white-space: pre;
482
+ }
483
+
484
+ .codex-markdown-code-header {
485
+ display: flex;
486
+ align-items: center;
487
+ border-radius: 8px 8px 0 0;
488
+ padding: 4px 8px;
489
+ color: var(--codex-description-foreground);
490
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
491
+ font-size: 14px;
492
+ line-height: 20px;
493
+ user-select: none;
494
+ }
495
+
496
+ .codex-markdown-code-title {
497
+ min-width: 0;
498
+ flex: 1;
499
+ overflow: hidden;
500
+ text-overflow: ellipsis;
501
+ white-space: nowrap;
502
+ }
503
+
504
+ .codex-markdown-code-actions {
505
+ display: flex;
506
+ flex-shrink: 0;
507
+ align-items: center;
508
+ margin-inline-start: auto;
509
+ }
510
+
511
+ .codex-markdown-code-container {
512
+ overflow: auto;
513
+ padding: 8px;
514
+ font-size: var(--codex-chat-font-size);
515
+ }
516
+
517
+ .codex-markdown-code-content {
518
+ font-family: var(--font-mono);
519
+ line-height: 1.5;
520
+ white-space: pre;
521
+ word-spacing: normal;
522
+ word-break: normal;
523
+ overflow-wrap: normal;
524
+ tab-size: 4;
525
+ hyphens: none;
526
+ }
527
+
528
+ .codex-markdown-code-copy {
529
+ display: inline-flex;
530
+ width: 24px;
531
+ height: 24px;
532
+ align-items: center;
533
+ justify-content: center;
534
+ border: 0;
535
+ border-radius: 6px;
536
+ background: transparent;
537
+ padding: 0;
538
+ color: var(--text-primary);
539
+ }
540
+
541
+ .codex-markdown-code-copy:hover {
542
+ background: var(--main-surface-secondary);
543
+ }
544
+
545
+ .codex-markdown-code-copy svg {
546
+ width: 14px;
547
+ height: 14px;
548
+ }
549
+
550
+ .codex-markdown-math-block {
551
+ display: block;
552
+ margin-block: 14px;
553
+ overflow-x: auto;
554
+ }
555
+
556
+ .codex-markdown-math-block .katex {
557
+ font-size: 1.21em;
558
+ }
559
+
560
+ .codex-markdown-image-trigger {
561
+ display: inline-block;
562
+ max-width: min(100%, 44rem);
563
+ border: 0;
564
+ background: transparent;
565
+ padding: 0;
566
+ cursor: zoom-in;
567
+ vertical-align: top;
568
+ }
569
+
570
+ .codex-markdown-image-trigger-wide {
571
+ max-width: 100%;
572
+ }
573
+
574
+ .codex-markdown-image {
575
+ display: block;
576
+ height: auto;
577
+ width: auto;
578
+ max-width: 12.5rem;
579
+ max-height: 12.5rem;
580
+ margin-block: 12px;
581
+ border: 1px solid var(--codex-border);
582
+ border-radius: 6px;
583
+ object-fit: contain;
584
+ box-shadow:
585
+ 0 4px 6px -1px rgb(0 0 0 / 10%),
586
+ 0 2px 4px -2px rgb(0 0 0 / 10%);
587
+ }
588
+
589
+ .codex-markdown-image-wide {
590
+ max-width: min(100%, 44rem);
591
+ max-height: min(48vh, 32rem);
592
+ }
593
+
594
+ .codex-markdown-image-dialog {
595
+ width: 100vw;
596
+ max-width: none;
597
+ height: 100vh;
598
+ max-height: none;
599
+ border: 0;
600
+ background: transparent;
601
+ padding: 0;
602
+ }
603
+
604
+ .codex-markdown-image-dialog::backdrop {
605
+ background: rgb(0 0 0 / 82%);
606
+ }
607
+
608
+ .codex-markdown-image-preview {
609
+ display: flex;
610
+ width: 100%;
611
+ height: 100%;
612
+ align-items: center;
613
+ justify-content: center;
614
+ padding: 48px;
615
+ }
616
+
617
+ .codex-markdown-image-preview > img {
618
+ max-width: 100%;
619
+ max-height: 100%;
620
+ object-fit: contain;
621
+ }
622
+
623
+ .codex-markdown-image-preview-actions {
624
+ position: fixed;
625
+ top: 16px;
626
+ inset-inline-end: 16px;
627
+ display: flex;
628
+ gap: 4px;
629
+ }
630
+
631
+ .codex-markdown-image-preview-actions :is(button, a) {
632
+ display: inline-flex;
633
+ width: 32px;
634
+ height: 32px;
635
+ align-items: center;
636
+ justify-content: center;
637
+ border: 0;
638
+ border-radius: 8px;
639
+ background: rgb(0 0 0 / 55%);
640
+ color: white;
641
+ }
642
+
643
+ .codex-markdown-image-preview-actions :is(button, a):disabled {
644
+ opacity: 0.35;
645
+ }
646
+
647
+ .codex-markdown-image-preview-actions svg {
648
+ width: 18px;
649
+ height: 18px;
650
+ }
651
+
652
+ .codex-markdown-code-block[data-theme="dark"] code.hljs {
653
+ color: #fff;
654
+ }
655
+
656
+ .codex-markdown-code-block[data-theme="dark"] .hljs-comment {
657
+ color: #ffffff80;
658
+ }
659
+
660
+ .codex-markdown-code-block[data-theme="dark"] .hljs-meta {
661
+ color: #fff9;
662
+ }
663
+
664
+ .codex-markdown-code-block[data-theme="dark"] :is(.hljs-built_in, .hljs-class .hljs-title) {
665
+ color: #e9950c;
666
+ }
667
+
668
+ .codex-markdown-code-block[data-theme="dark"] :is(.hljs-doctag, .hljs-keyword, .hljs-formula, .hljs-literal) {
669
+ color: #2e95d3;
670
+ }
671
+
672
+ .codex-markdown-code-block[data-theme="dark"]
673
+ :is(.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta-string) {
674
+ color: #00a67d;
675
+ }
676
+
677
+ .codex-markdown-code-block[data-theme="dark"]
678
+ :is(
679
+ .hljs-attr,
680
+ .hljs-variable,
681
+ .hljs-template-variable,
682
+ .hljs-type,
683
+ .hljs-selector-class,
684
+ .hljs-selector-attr,
685
+ .hljs-selector-pseudo,
686
+ .hljs-number
687
+ ) {
688
+ color: #df3079;
689
+ }
690
+
691
+ .codex-markdown-code-block[data-theme="dark"]
692
+ :is(.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-selector-id, .hljs-title) {
693
+ color: #f22c3d;
694
+ }
695
+
696
+ .codex-markdown-code-block[data-theme="light"] code.hljs {
697
+ color: #383a42;
698
+ }
699
+
700
+ .codex-markdown-code-block[data-theme="light"] :is(.hljs-comment, .hljs-quote) {
701
+ color: #a0a1a7;
702
+ font-style: italic;
703
+ }
704
+
705
+ .codex-markdown-code-block[data-theme="light"] :is(.hljs-doctag, .hljs-keyword, .hljs-formula) {
706
+ color: #a626a4;
707
+ }
708
+
709
+ .codex-markdown-code-block[data-theme="light"]
710
+ :is(.hljs-section, .hljs-name, .hljs-selector-tag, .hljs-deletion, .hljs-subst) {
711
+ color: #e45649;
712
+ }
713
+
714
+ .codex-markdown-code-block[data-theme="light"] .hljs-literal {
715
+ color: #0184bb;
716
+ }
717
+
718
+ .codex-markdown-code-block[data-theme="light"]
719
+ :is(.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta-string) {
720
+ color: #50a14f;
721
+ }
722
+
723
+ .codex-markdown-code-block[data-theme="light"] :is(.hljs-built_in, .hljs-class .hljs-title) {
724
+ color: #c18401;
725
+ }
726
+
727
+ .codex-markdown-code-block[data-theme="light"]
728
+ :is(
729
+ .hljs-attr,
730
+ .hljs-variable,
731
+ .hljs-template-variable,
732
+ .hljs-type,
733
+ .hljs-selector-class,
734
+ .hljs-selector-attr,
735
+ .hljs-selector-pseudo,
736
+ .hljs-number
737
+ ) {
738
+ color: #986801;
739
+ }
740
+
741
+ .codex-markdown-code-block[data-theme="light"]
742
+ :is(.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-title) {
743
+ color: #4078f2;
744
+ }
745
+
746
+ .codex-markdown-code-block[data-theme="light"] .hljs-emphasis {
747
+ font-style: italic;
748
+ }
749
+
750
+ .codex-markdown-code-block[data-theme="light"] .hljs-strong {
751
+ font-weight: 700;
752
+ }
753
+
754
+ .codex-markdown-code-block[data-theme="light"] .hljs-link {
755
+ text-decoration: underline;
756
+ }
757
+
758
+ @media (prefers-reduced-motion: reduce) {
759
+ .codex-markdown-fade { animation: none; opacity: 1; }
760
+ }