@thready-web/dsh-bot-plugin 0.1.0-beta.1 → 0.1.0-beta.11

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 (160) hide show
  1. package/README.md +109 -1
  2. package/client.js +646 -621
  3. package/dist/approvals.js +160 -0
  4. package/dist/authorization.js +225 -0
  5. package/dist/canvas-http.js +248 -0
  6. package/dist/canvas-skills.js +56 -0
  7. package/dist/canvas-store.js +794 -0
  8. package/dist/canvas-tools.js +211 -0
  9. package/dist/cli.js +32 -12
  10. package/dist/context.js +60 -17
  11. package/dist/cron.js +1 -1
  12. package/dist/cua-access.js +79 -0
  13. package/dist/desk.js +314 -37
  14. package/dist/engine.js +178 -84
  15. package/dist/fs-safe.js +1 -1
  16. package/dist/host.js +1 -0
  17. package/dist/http-plugin.js +14 -4
  18. package/dist/http.js +402 -85
  19. package/dist/inbox.js +51 -40
  20. package/dist/index.js +201 -47
  21. package/dist/live-diff.js +3 -1
  22. package/dist/live-snapshot.js +2 -13
  23. package/dist/log/canonical.js +37 -0
  24. package/dist/log/plan.js +62 -0
  25. package/dist/log/routes.js +144 -0
  26. package/dist/log/snapshot-service.js +76 -0
  27. package/dist/log/source.js +173 -0
  28. package/dist/memory-catalog.js +798 -0
  29. package/dist/permissions.js +86 -0
  30. package/dist/provision.js +2 -0
  31. package/dist/questions.js +407 -0
  32. package/dist/runtime-registry.js +4 -4
  33. package/dist/session-files.js +2 -2
  34. package/dist/session-previews.js +5 -1
  35. package/dist/store.js +20 -5
  36. package/dist/tools.js +150 -32
  37. package/dist/triggers.js +83 -39
  38. package/dist/work-admit.js +222 -25
  39. package/dist/work-child.js +17 -9
  40. package/dist/work-http.js +52 -2
  41. package/dist/work-ledger.js +256 -16
  42. package/dist/work-mock-host.js +9 -6
  43. package/dist/work-mock.js +29 -19
  44. package/dist/work-tickets.js +423 -96
  45. package/dist/work-tools.js +43 -6
  46. package/dist/work-worker.js +1033 -207
  47. package/dist/workspace-files.js +319 -0
  48. package/dist/workspace-image.js +91 -0
  49. package/fixtures/mock-llm.mjs +17 -2
  50. package/package.json +16 -5
  51. package/public/assets/SourceEditor-CJwK846Z.css +1 -0
  52. package/public/assets/SourceEditor-uu0G7jsM.js +669 -0
  53. package/public/assets/abap-CRCWOmpq.js +1 -0
  54. package/public/assets/apex-DnsZk_dE.js +1 -0
  55. package/public/assets/azcli-1IWB1ccx.js +1 -0
  56. package/public/assets/bat-DPkNLes8.js +1 -0
  57. package/public/assets/bicep-Corcdgou.js +2 -0
  58. package/public/assets/cameligo-CGrWLZr3.js +1 -0
  59. package/public/assets/clojure-D9WOWImG.js +1 -0
  60. package/public/assets/codicon-DCmgc-ay.ttf +0 -0
  61. package/public/assets/coffee-B7EJu28W.js +1 -0
  62. package/public/assets/cpp-SEyurbux.js +1 -0
  63. package/public/assets/csharp-BoL64M5l.js +1 -0
  64. package/public/assets/csp-C46ZqvIl.js +1 -0
  65. package/public/assets/css-DQU6DXDx.js +3 -0
  66. package/public/assets/css.worker-DYpkewsP.js +79 -0
  67. package/public/assets/cssMode-C5DAFF5H.js +4 -0
  68. package/public/assets/cypher-D84EuPTj.js +1 -0
  69. package/public/assets/dart-D8lhlL1r.js +1 -0
  70. package/public/assets/dockerfile-DLk6rpji.js +1 -0
  71. package/public/assets/ecl-BO6FnfXk.js +1 -0
  72. package/public/assets/editor.worker-B4pQIWZD.js +12 -0
  73. package/public/assets/elixir-BRjLKONM.js +1 -0
  74. package/public/assets/flow9-Cac8vKd7.js +1 -0
  75. package/public/assets/freemarker2-DExNwSiZ.js +3 -0
  76. package/public/assets/fsharp-fd1GTHhf.js +1 -0
  77. package/public/assets/go-O9LJTZXk.js +1 -0
  78. package/public/assets/graphql-LQdxqEYJ.js +1 -0
  79. package/public/assets/handlebars-BK7YAvpQ.js +1 -0
  80. package/public/assets/hcl-DxDQ3s82.js +1 -0
  81. package/public/assets/html-CdDm_zae.js +1 -0
  82. package/public/assets/html.worker-tnXziJOq.js +456 -0
  83. package/public/assets/htmlMode-CLdn9oa1.js +4 -0
  84. package/public/assets/index-BB-QDSf2.css +1 -0
  85. package/public/assets/index-CsX-_qbo.js +62 -0
  86. package/public/assets/ini-BvajGCUy.js +1 -0
  87. package/public/assets/java-SYsfObOQ.js +1 -0
  88. package/public/assets/javascript-mLl83_3W.js +1 -0
  89. package/public/assets/json.worker-aFakAbRR.js +44 -0
  90. package/public/assets/jsonMode-B1-bihFd.js +10 -0
  91. package/public/assets/julia-DQXNmw_w.js +1 -0
  92. package/public/assets/kotlin-qQ0MG-9I.js +1 -0
  93. package/public/assets/less-GGFNNJHn.js +2 -0
  94. package/public/assets/lexon-Canl7DCW.js +1 -0
  95. package/public/assets/liquid-Cv8m0HUb.js +1 -0
  96. package/public/assets/lua-D28Ae8-K.js +1 -0
  97. package/public/assets/m3-DPitgjJI.js +1 -0
  98. package/public/assets/markdown-B811l8j2.js +1 -0
  99. package/public/assets/mdx-Q12b91rL.js +1 -0
  100. package/public/assets/mips-CdjsipkG.js +1 -0
  101. package/public/assets/msdax-CYqgjx_P.js +1 -0
  102. package/public/assets/mysql-BHd6q0vd.js +1 -0
  103. package/public/assets/objective-c-B1aVtJYH.js +1 -0
  104. package/public/assets/pascal-BhNW15KB.js +1 -0
  105. package/public/assets/pascaligo-5jv8CcQD.js +1 -0
  106. package/public/assets/perl-DlYyT36c.js +1 -0
  107. package/public/assets/pgsql-Dy0bjov7.js +1 -0
  108. package/public/assets/php-120yhfDK.js +1 -0
  109. package/public/assets/pla-CjnFlu4u.js +1 -0
  110. package/public/assets/postiats-CQpG440k.js +1 -0
  111. package/public/assets/powerquery-DdJtto1Z.js +1 -0
  112. package/public/assets/powershell-Bu_VLpJB.js +1 -0
  113. package/public/assets/protobuf-IBS6jZEB.js +2 -0
  114. package/public/assets/pug-kFxLfcjb.js +1 -0
  115. package/public/assets/python-Kda811W0.js +1 -0
  116. package/public/assets/qsharp-q7JyzKFN.js +1 -0
  117. package/public/assets/r-BIFz-_sK.js +1 -0
  118. package/public/assets/razor-CRuCpdOW.js +1 -0
  119. package/public/assets/redis-CHOsPHWR.js +1 -0
  120. package/public/assets/redshift-CBifECDb.js +1 -0
  121. package/public/assets/restructuredtext-CghPJEOS.js +1 -0
  122. package/public/assets/ruby-CYWGW-b1.js +1 -0
  123. package/public/assets/rust-DMDD0SHb.js +1 -0
  124. package/public/assets/sb-BYAiYHFx.js +1 -0
  125. package/public/assets/scala-Bqvq8jcR.js +1 -0
  126. package/public/assets/scheme-Dhb-2j9p.js +1 -0
  127. package/public/assets/scss-CTwUZ5N7.js +3 -0
  128. package/public/assets/shell-CsDZo4DB.js +1 -0
  129. package/public/assets/solidity-CME5AdoB.js +1 -0
  130. package/public/assets/sophia-RYC1BQQz.js +1 -0
  131. package/public/assets/sparql-KEyrF7De.js +1 -0
  132. package/public/assets/sql-BdTr02Mf.js +1 -0
  133. package/public/assets/st-C7iG7M4S.js +1 -0
  134. package/public/assets/swift-D7IUmUK8.js +1 -0
  135. package/public/assets/systemverilog-DgMryOEJ.js +1 -0
  136. package/public/assets/tcl-PloMZuKG.js +1 -0
  137. package/public/assets/ts.worker-Bij5J2kb.js +51316 -0
  138. package/public/assets/tsMode-BGHcz-M3.js +11 -0
  139. package/public/assets/twig-BfRIq3la.js +1 -0
  140. package/public/assets/typescript-Db1e0DCT.js +1 -0
  141. package/public/assets/typespec-CzxlYoT_.js +1 -0
  142. package/public/assets/vb-BwAE3J76.js +1 -0
  143. package/public/assets/wgsl-B_1kOXbF.js +298 -0
  144. package/public/assets/xml-H3zzFmnd.js +1 -0
  145. package/public/assets/yaml-BQrKvmTF.js +1 -0
  146. package/public/index.html +2 -2
  147. package/skills/ui/baseline-ui/SKILL.md +85 -0
  148. package/skills/ui/bencium-innovative-ux-designer/SKILL.md +227 -0
  149. package/skills/ui/better-ui/SKILL.md +133 -0
  150. package/skills/ui/design-lab/SKILL.md +920 -0
  151. package/skills/ui/frontend-design/SKILL.md +71 -0
  152. package/skills/ui/impeccable/SKILL.md +93 -0
  153. package/skills/ui/interface-design/SKILL.md +320 -0
  154. package/skills/ui/sources.json +66 -0
  155. package/skills/ui/ui-design/SKILL.md +35 -0
  156. package/skills/ui/ui-skills-root/SKILL.md +59 -0
  157. package/skills/ui/visual-design-foundations/SKILL.md +318 -0
  158. package/skills/ui/web-design-guidelines/SKILL.md +39 -0
  159. package/public/assets/index-Be82iGwe.css +0 -1
  160. package/public/assets/index-ByU9a3Lh.js +0 -61
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: ui-skills-root
3
+ description: Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.
4
+ license: MIT
5
+ metadata:
6
+ author: ibelick
7
+ version: "1.0.0"
8
+ ---
9
+
10
+ # UI Skills Root
11
+
12
+ You are the routing layer for UI Skills.
13
+
14
+ This skill is shown by `npx ui-skills start` and is also available in the registry.
15
+
16
+ Use it when an agent in Codex, Cursor, or Claude Code has a clear UI goal.
17
+
18
+ If the goal is unclear, ask one short question.
19
+
20
+ If the goal is clear, choose the right category, load the smallest useful skill context, then implement.
21
+
22
+ ## Protocol
23
+
24
+ 1. decide if the task is UI-related
25
+ 2. if not, return `no skill needed`
26
+ 3. identify the likely category
27
+ 4. inspect that category with the CLI
28
+ 5. select the smallest useful skill set
29
+ 6. load only selected skill(s)
30
+ 7. implement using that context
31
+
32
+ ## CLI
33
+
34
+ ```bash
35
+ npx ui-skills start
36
+ npx ui-skills categories
37
+ npx ui-skills list --category <category>
38
+ npx ui-skills get <slug>
39
+ ```
40
+
41
+ ## Selection Rules
42
+
43
+ Prefer 1 skill.
44
+
45
+ Use 2 only when the task needs two clear angles.
46
+
47
+ Use 3 only for broad review, redesign, or multi-surface work.
48
+
49
+ Never use more than 3.
50
+
51
+ Route by topic, then stack, then specificity.
52
+
53
+ Prefer specific skills over broad skills.
54
+
55
+ Prefer framework-specific skills when the stack is obvious.
56
+
57
+ For quick cleanup, prefer the most specific craft, visual, or layout skill available.
58
+
59
+ If unsure, inspect categories and pick the safest narrow skill.
@@ -0,0 +1,318 @@
1
+ ---
2
+ name: visual-design-foundations
3
+ description: Apply typography, color theory, spacing systems, and iconography principles to create cohesive visual designs. Use when establishing design tokens, building style guides, or improving visual hierarchy and consistency.
4
+ ---
5
+
6
+ # Visual Design Foundations
7
+
8
+ Build cohesive, accessible visual systems using typography, color, spacing, and iconography fundamentals.
9
+
10
+ ## When to Use This Skill
11
+
12
+ - Establishing design tokens for a new project
13
+ - Creating or refining a spacing and sizing system
14
+ - Selecting and pairing typefaces
15
+ - Building accessible color palettes
16
+ - Designing icon systems and visual assets
17
+ - Improving visual hierarchy and readability
18
+ - Auditing designs for visual consistency
19
+ - Implementing dark mode or theming
20
+
21
+ ## Core Systems
22
+
23
+ ### 1. Typography Scale
24
+
25
+ **Modular Scale** (ratio-based sizing):
26
+
27
+ ```css
28
+ :root {
29
+ --font-size-xs: 0.75rem; /* 12px */
30
+ --font-size-sm: 0.875rem; /* 14px */
31
+ --font-size-base: 1rem; /* 16px */
32
+ --font-size-lg: 1.125rem; /* 18px */
33
+ --font-size-xl: 1.25rem; /* 20px */
34
+ --font-size-2xl: 1.5rem; /* 24px */
35
+ --font-size-3xl: 1.875rem; /* 30px */
36
+ --font-size-4xl: 2.25rem; /* 36px */
37
+ --font-size-5xl: 3rem; /* 48px */
38
+ }
39
+ ```
40
+
41
+ **Line Height Guidelines**:
42
+ | Text Type | Line Height |
43
+ |-----------|-------------|
44
+ | Headings | 1.1 - 1.3 |
45
+ | Body text | 1.5 - 1.7 |
46
+ | UI labels | 1.2 - 1.4 |
47
+
48
+ ### 2. Spacing System
49
+
50
+ **8-point grid** (industry standard):
51
+
52
+ ```css
53
+ :root {
54
+ --space-1: 0.25rem; /* 4px */
55
+ --space-2: 0.5rem; /* 8px */
56
+ --space-3: 0.75rem; /* 12px */
57
+ --space-4: 1rem; /* 16px */
58
+ --space-5: 1.25rem; /* 20px */
59
+ --space-6: 1.5rem; /* 24px */
60
+ --space-8: 2rem; /* 32px */
61
+ --space-10: 2.5rem; /* 40px */
62
+ --space-12: 3rem; /* 48px */
63
+ --space-16: 4rem; /* 64px */
64
+ }
65
+ ```
66
+
67
+ ### 3. Color System
68
+
69
+ **Semantic color tokens**:
70
+
71
+ ```css
72
+ :root {
73
+ /* Brand */
74
+ --color-primary: #2563eb;
75
+ --color-primary-hover: #1d4ed8;
76
+ --color-primary-active: #1e40af;
77
+
78
+ /* Semantic */
79
+ --color-success: #16a34a;
80
+ --color-warning: #ca8a04;
81
+ --color-error: #dc2626;
82
+ --color-info: #0891b2;
83
+
84
+ /* Neutral */
85
+ --color-gray-50: #f9fafb;
86
+ --color-gray-100: #f3f4f6;
87
+ --color-gray-200: #e5e7eb;
88
+ --color-gray-300: #d1d5db;
89
+ --color-gray-400: #9ca3af;
90
+ --color-gray-500: #6b7280;
91
+ --color-gray-600: #4b5563;
92
+ --color-gray-700: #374151;
93
+ --color-gray-800: #1f2937;
94
+ --color-gray-900: #111827;
95
+ }
96
+ ```
97
+
98
+ ## Quick Start: Design Tokens in Tailwind
99
+
100
+ ```js
101
+ // tailwind.config.js
102
+ module.exports = {
103
+ theme: {
104
+ extend: {
105
+ fontFamily: {
106
+ sans: ["Inter", "system-ui", "sans-serif"],
107
+ mono: ["JetBrains Mono", "monospace"],
108
+ },
109
+ fontSize: {
110
+ xs: ["0.75rem", { lineHeight: "1rem" }],
111
+ sm: ["0.875rem", { lineHeight: "1.25rem" }],
112
+ base: ["1rem", { lineHeight: "1.5rem" }],
113
+ lg: ["1.125rem", { lineHeight: "1.75rem" }],
114
+ xl: ["1.25rem", { lineHeight: "1.75rem" }],
115
+ "2xl": ["1.5rem", { lineHeight: "2rem" }],
116
+ },
117
+ colors: {
118
+ brand: {
119
+ 50: "#eff6ff",
120
+ 500: "#3b82f6",
121
+ 600: "#2563eb",
122
+ 700: "#1d4ed8",
123
+ },
124
+ },
125
+ spacing: {
126
+ // Extends default with custom values
127
+ 18: "4.5rem",
128
+ 88: "22rem",
129
+ },
130
+ },
131
+ },
132
+ };
133
+ ```
134
+
135
+ ## Typography Best Practices
136
+
137
+ ### Font Pairing
138
+
139
+ **Safe combinations**:
140
+
141
+ - Heading: **Inter** / Body: **Inter** (single family)
142
+ - Heading: **Playfair Display** / Body: **Source Sans Pro** (contrast)
143
+ - Heading: **Space Grotesk** / Body: **IBM Plex Sans** (geometric)
144
+
145
+ ### Responsive Typography
146
+
147
+ ```css
148
+ /* Fluid typography using clamp() */
149
+ h1 {
150
+ font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
151
+ line-height: 1.1;
152
+ }
153
+
154
+ p {
155
+ font-size: clamp(1rem, 2vw + 0.5rem, 1.125rem);
156
+ line-height: 1.6;
157
+ max-width: 65ch; /* Optimal reading width */
158
+ }
159
+ ```
160
+
161
+ ### Font Loading
162
+
163
+ ```css
164
+ /* Prevent layout shift */
165
+ @font-face {
166
+ font-family: "Inter";
167
+ src: url("/fonts/Inter.woff2") format("woff2");
168
+ font-display: swap;
169
+ font-weight: 400 700;
170
+ }
171
+ ```
172
+
173
+ ## Color Theory
174
+
175
+ ### Contrast Requirements (WCAG)
176
+
177
+ | Element | Minimum Ratio |
178
+ | ------------------ | ------------- |
179
+ | Body text | 4.5:1 (AA) |
180
+ | Large text (18px+) | 3:1 (AA) |
181
+ | UI components | 3:1 (AA) |
182
+ | Enhanced | 7:1 (AAA) |
183
+
184
+ ### Dark Mode Strategy
185
+
186
+ ```css
187
+ :root {
188
+ --bg-primary: #ffffff;
189
+ --bg-secondary: #f9fafb;
190
+ --text-primary: #111827;
191
+ --text-secondary: #6b7280;
192
+ --border: #e5e7eb;
193
+ }
194
+
195
+ [data-theme="dark"] {
196
+ --bg-primary: #111827;
197
+ --bg-secondary: #1f2937;
198
+ --text-primary: #f9fafb;
199
+ --text-secondary: #9ca3af;
200
+ --border: #374151;
201
+ }
202
+ ```
203
+
204
+ ### Color Accessibility
205
+
206
+ ```tsx
207
+ // Check contrast programmatically
208
+ function getContrastRatio(foreground: string, background: string): number {
209
+ const getLuminance = (hex: string) => {
210
+ const rgb = hexToRgb(hex);
211
+ const [r, g, b] = rgb.map((c) => {
212
+ c = c / 255;
213
+ return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
214
+ });
215
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b;
216
+ };
217
+
218
+ const l1 = getLuminance(foreground);
219
+ const l2 = getLuminance(background);
220
+ const lighter = Math.max(l1, l2);
221
+ const darker = Math.min(l1, l2);
222
+
223
+ return (lighter + 0.05) / (darker + 0.05);
224
+ }
225
+ ```
226
+
227
+ ## Spacing Guidelines
228
+
229
+ ### Component Spacing
230
+
231
+ ```
232
+ Card padding: 16-24px (--space-4 to --space-6)
233
+ Section gap: 32-64px (--space-8 to --space-16)
234
+ Form field gap: 16-24px (--space-4 to --space-6)
235
+ Button padding: 8-16px vertical, 16-24px horizontal
236
+ Icon-text gap: 8px (--space-2)
237
+ ```
238
+
239
+ ### Visual Rhythm
240
+
241
+ ```css
242
+ /* Consistent vertical rhythm */
243
+ .prose > * + * {
244
+ margin-top: var(--space-4);
245
+ }
246
+
247
+ .prose > h2 + * {
248
+ margin-top: var(--space-2);
249
+ }
250
+
251
+ .prose > * + h2 {
252
+ margin-top: var(--space-8);
253
+ }
254
+ ```
255
+
256
+ ## Iconography
257
+
258
+ ### Icon Sizing System
259
+
260
+ ```css
261
+ :root {
262
+ --icon-xs: 12px;
263
+ --icon-sm: 16px;
264
+ --icon-md: 20px;
265
+ --icon-lg: 24px;
266
+ --icon-xl: 32px;
267
+ }
268
+ ```
269
+
270
+ ### Icon Component
271
+
272
+ ```tsx
273
+ interface IconProps {
274
+ name: string;
275
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
276
+ className?: string;
277
+ }
278
+
279
+ const sizeMap = {
280
+ xs: 12,
281
+ sm: 16,
282
+ md: 20,
283
+ lg: 24,
284
+ xl: 32,
285
+ };
286
+
287
+ export function Icon({ name, size = "md", className }: IconProps) {
288
+ return (
289
+ <svg
290
+ width={sizeMap[size]}
291
+ height={sizeMap[size]}
292
+ className={cn("inline-block flex-shrink-0", className)}
293
+ aria-hidden="true"
294
+ >
295
+ <use href={`/icons.svg#${name}`} />
296
+ </svg>
297
+ );
298
+ }
299
+ ```
300
+
301
+ ## Best Practices
302
+
303
+ 1. **Establish Constraints**: Limit choices to maintain consistency
304
+ 2. **Document Decisions**: Create a living style guide
305
+ 3. **Test Accessibility**: Verify contrast, sizing, touch targets
306
+ 4. **Use Semantic Tokens**: Name by purpose, not appearance
307
+ 5. **Design Mobile-First**: Start with constraints, add complexity
308
+ 6. **Maintain Vertical Rhythm**: Consistent spacing creates harmony
309
+ 7. **Limit Font Weights**: 2-3 weights per family is sufficient
310
+
311
+ ## Common Issues
312
+
313
+ - **Inconsistent Spacing**: Not using a defined scale
314
+ - **Poor Contrast**: Failing WCAG requirements
315
+ - **Font Overload**: Too many families or weights
316
+ - **Magic Numbers**: Arbitrary values instead of tokens
317
+ - **Missing States**: Forgetting hover, focus, disabled
318
+ - **No Dark Mode Plan**: Retrofitting is harder than planning
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: web-design-guidelines
3
+ description: Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
4
+ metadata:
5
+ author: vercel
6
+ version: "1.0.0"
7
+ argument-hint: <file-or-pattern>
8
+ ---
9
+
10
+ # Web Interface Guidelines
11
+
12
+ Review files for compliance with Web Interface Guidelines.
13
+
14
+ ## How It Works
15
+
16
+ 1. Fetch the latest guidelines from the source URL below
17
+ 2. Read the specified files (or prompt user for files/pattern)
18
+ 3. Check against all rules in the fetched guidelines
19
+ 4. Output findings in the terse `file:line` format
20
+
21
+ ## Guidelines Source
22
+
23
+ Fetch fresh guidelines before each review:
24
+
25
+ ```
26
+ https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
27
+ ```
28
+
29
+ Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
30
+
31
+ ## Usage
32
+
33
+ When a user provides a file or pattern argument:
34
+ 1. Fetch guidelines from the source URL above
35
+ 2. Read the specified files
36
+ 3. Apply all rules from the fetched guidelines
37
+ 4. Output findings using the format specified in the guidelines
38
+
39
+ If no files specified, ask the user which files to review.
@@ -1 +0,0 @@
1
- :root{color-scheme:light;--dsw-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;--ds-font-family-code: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, "Liberation Mono", Menlo, Courier, "PingFang SC", "Microsoft YaHei";--dsw-radius-sm: 8px;--dsw-radius-lg: 16px;--dsw-radius-xl: 20px;--dsw-radius-panel: 28px;--bg: #fff;--sidebar: #f9fafb;--ink: rgb(15, 17, 21);--secondary: rgb(97, 102, 107);--tertiary: rgb(129, 133, 140);--caption: rgb(173, 178, 184);--hover: rgba(38, 49, 72, .06);--selected: rgb(235, 238, 242);--bubble: rgb(237, 243, 254);--line: rgba(0, 0, 0, .1);--line-strong: rgba(0, 0, 0, .12);--code-bg: #f9fafb;--inline-code: #f5f5f5;--link: rgb(65, 118, 230);--send: rgb(65, 118, 230);--send-hover: rgb(122, 170, 255);--selector: #f9fafb;--shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 4px 16px rgba(0, 0, 0, .03), 0 0 24px rgba(0, 0, 0, .03);font-family:var(--dsw-font-family);color:var(--ink);background:var(--bg)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0}#root{display:flex;justify-content:center}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:var(--link);text-decoration:none}.shell{width:min(1120px,100%);height:100%;display:grid;grid-template-columns:268px minmax(0,1fr);background:var(--bg)}.side,.chat{min-width:0;min-height:0}.side{display:flex;flex-direction:column;background:var(--sidebar);padding:14px 10px 10px}.side-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px 12px}.brand{font-size:15px;font-weight:650}.side-actions{display:flex;gap:2px}.icon-btn,.add{width:28px;height:28px;border:0;border-radius:999px;display:grid;place-items:center;background:transparent;color:var(--ink)}.icon-btn:hover,.add:hover{background:var(--hover)}.icon-btn svg,.add svg,.send svg{width:16px;height:16px}.filter{margin:0 6px 8px;border:0;background:#fff;border-radius:8px;padding:8px 10px;outline:none}.note{color:#9a3412;font-size:12px;margin:0 8px 8px}.note.ok{color:var(--secondary)}.sessions{list-style:none;margin:0;padding:0;overflow:auto;flex:1}.sessions .empty{color:var(--tertiary);font-size:13px;padding:8px 10px}.session{display:flex;gap:10px;align-items:center;width:100%;text-align:left;border:0;background:transparent;border-radius:10px;padding:8px}.session:hover{background:var(--hover)}.session.selected{background:var(--selected)}.session-row{display:flex;align-items:center;border-radius:10px}.session-row .session{flex:1;min-width:0}.session-delete{flex:none;border:0;background:transparent;color:var(--tertiary);font-size:12px;padding:6px 8px;border-radius:8px}.session-delete:hover{color:#9a3412;background:var(--hover)}.session-delete.purge{color:#9a3412}.blank-head{flex-wrap:wrap}.blank-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 10px 4px;color:var(--tertiary);font-size:12px}.blank-head button{border:0;background:transparent;color:inherit;padding:0}.blank-head button:hover{color:var(--ink)}.mark{position:relative;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--selector);color:var(--secondary);font-size:13px;font-weight:650;flex:none}.bot-dot{position:absolute;right:-2px;bottom:-2px;width:8px;height:8px;border-radius:999px;background:#16a34a;box-shadow:0 0 0 2px var(--sidebar)}.bot-dot.wait{background:#2563eb}.session.selected .bot-dot{box-shadow:0 0 0 2px var(--selected)}.bot-badge .bot-dot{top:-2px;bottom:auto;box-shadow:0 0 0 2px var(--bg)}.session.selected .mark{background:#fff}.mark.bot-mark,.bot-badge{background:#111827;color:#fff;font-size:10px;font-weight:700;letter-spacing:.06em}.mark.bot-mark{width:auto;min-width:28px;padding:0 6px}.session.selected .mark.bot-mark{background:#111827;color:#fff}.bot-badge{position:relative;flex:none;border-radius:999px;padding:2px 7px;line-height:16px}.copy{min-width:0;flex:1}.name,.preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.name{font-size:14px;font-weight:560}.preview{color:var(--tertiary);font-size:12px;margin-top:1px}.preview:empty:before{content:"​"}.me-row{display:flex;align-items:center;gap:4px}.me{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:0;background:transparent;border-radius:10px;padding:8px;text-align:left}.lang-switch{flex:none;border:0;background:transparent;border-radius:8px;padding:6px 8px;color:var(--tertiary);font:inherit;font-size:12px}.lang-switch:hover{background:var(--hover);color:var(--ink)}.me:hover{background:var(--hover)}.me-mark{background:var(--ink);color:#fff;font-size:12px}.status{background:#fff;border-radius:14px;padding:10px 12px;margin:8px;box-shadow:var(--shadow);font-size:13px}.status p{margin:0 0 6px}.status p:last-child{margin:0}.muted{color:var(--tertiary)}.chat{display:flex;flex-direction:column;background:var(--bg)}.inbox-line{display:flex;flex-direction:column;align-items:flex-end;gap:4px;width:min(320px,86%);margin:12px 0 12px auto}.inbox-line time{color:var(--caption);font-size:12px;line-height:18px}.inbox-entry{display:flex;align-items:center;gap:10px;width:100%;border:0;background:#fff;text-align:left;border-radius:16px;box-shadow:var(--shadow);padding:10px 12px}.inbox-entry:hover{background:var(--sidebar)}.inbox-icon{width:28px;height:28px;border-radius:8px;flex:none;display:grid;place-items:center;background:#111827;color:#fff}.inbox-icon svg{width:16px;height:16px}.inbox-copy{min-width:0;display:flex;flex-direction:column}.inbox-copy strong,.inbox-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inbox-copy strong{font-size:13px;line-height:18px;font-weight:600}.inbox-copy span{color:var(--secondary);font-size:12px;line-height:18px}.bot-chat-back{display:inline;flex:none;border:0;background:transparent;padding:0;color:var(--link);font-size:13px}.bot-chat-lead{margin:8px 0 16px;color:var(--tertiary);font-size:13px;line-height:20px}.bot-out{display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:min(525px,82%);margin:18px 0 18px auto}.bot-out span,.bot-out time{color:var(--caption);font-size:12px;line-height:18px}.chat-head{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 22px}.chat-head h1{flex:1;min-width:0;margin:0;font-size:14px;font-weight:560;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.basis{margin:0;padding:0 22px 8px;color:var(--tertiary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-crumb{display:flex;align-items:center;gap:6px;min-width:0;margin:0;padding:0 22px 8px;color:var(--tertiary);font-size:13px;line-height:20px}.work-crumb button{flex:none;max-width:46%;border:0;background:transparent;padding:0;color:var(--link);font-size:13px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-crumb>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}.setup-mask{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:#0f111547}.setup-card{width:min(480px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:20px;padding:18px 18px 14px;box-shadow:0 0 0 .5px #0000001a,0 16px 48px #0000001f}.setup-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.setup-head h2{margin:0;font-size:16px;font-weight:560}.setup-close{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:var(--secondary)}.setup-close:hover{background:var(--hover)}.setup-lead{margin:8px 0 0;color:var(--secondary);font-size:13px;line-height:1.45}.setup-card label{display:block;margin:14px 0 6px;font-size:13px}.setup-card textarea,.setup-card input,.setup-card select{width:100%;border:0;background:var(--sidebar);border-radius:10px;padding:8px 10px;outline:none}.setup-card textarea{resize:vertical}.setup-card input+input,.setup-card select+input{margin-top:8px}.setup-error{color:#9a3412;font-size:12px;margin:10px 0 0}.setup-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.setup-actions button{border:0;border-radius:999px;padding:8px 14px;background:var(--hover)}.setup-actions .primary{background:var(--send);color:#fff}.setup-actions .primary:disabled{opacity:.6}.chat-head a{flex:none;font-size:13px;color:var(--secondary)}.work-chip{flex:none;color:var(--secondary);font-size:12px;line-height:18px;background:var(--selector);border-radius:999px;padding:2px 8px}.briefing-row{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:min(640px,100%);margin:18px 0}.briefing-row time{color:var(--caption);font-size:12px;line-height:18px}.briefing-card{width:100%;background:var(--code-bg);border:.5px solid var(--line);border-radius:16px}.briefing-toggle{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;min-height:40px;padding:10px 14px 12px;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.briefing-card.open .briefing-toggle{padding-bottom:0}.briefing-title{font-size:14px;line-height:20px;font-weight:600}.briefing-rev{color:var(--secondary);font-size:12px;line-height:18px;background:#fff;border-radius:999px;padding:2px 8px}.briefing-chevron{width:14px;height:14px;margin-left:auto;flex:none;color:var(--tertiary);transition:transform .3s ease}.briefing-card.open .briefing-chevron{transform:rotate(180deg)}.briefing-preview{flex:1 0 100%;margin:0;color:var(--secondary);font-size:13px;line-height:20px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.briefing-body{padding:4px 14px 12px}.briefing-body .markdown p{margin:8px 0}.briefing-facts,.briefing-note{margin:8px 0 0;color:var(--tertiary);font-size:12px;line-height:18px}.work-card{margin:14px 0 18px;padding:12px 14px;border:.5px solid var(--line);border-radius:16px;background:var(--code-bg)}.work-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.work-card h3{margin:0;min-width:0;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-status{flex:none;color:var(--secondary);font-size:12px;line-height:18px;background:#fff;border-radius:999px;padding:2px 8px}.work-status.live{color:var(--ink)}.work-card p{margin:6px 0 0;color:var(--secondary);font-size:13px;line-height:20px}.work-card .work-question{color:var(--ink)}.work-card .stale{text-decoration:line-through;color:var(--tertiary)}.work-quiet{color:var(--tertiary)}.work-reply{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:10px}.work-reply label{display:flex;flex-direction:column;gap:6px;width:100%}.work-reply span{color:var(--tertiary);font-size:12px;line-height:18px}.work-reply textarea{width:100%;resize:vertical;min-height:56px;border:.5px solid var(--line);border-radius:10px;background:#fff;padding:8px 10px;outline:none}.work-reply button{border:0;border-radius:999px;background:var(--send);color:#fff;padding:6px 12px;font-size:13px;line-height:20px}.work-reply button:disabled{opacity:.45}.work-open{margin-top:8px;border:0;background:transparent;padding:0;color:var(--link);font-size:13px;line-height:20px}.work-card .work-error{color:#9a3412}.work-refused{margin:8px 0 14px;color:#9a3412;font-size:13px;line-height:20px}.work-note{margin:4px 0 12px;color:var(--secondary);font-size:13px;line-height:20px}.back{display:none;border:0;background:transparent;padding:0;color:var(--link)}.scroll{flex:1;min-height:0;overflow:auto;padding:8px 28px 12px;scrollbar-width:thin;scrollbar-color:#e5e5e5 transparent}.scroll::-webkit-scrollbar{width:5px;height:5px}.scroll::-webkit-scrollbar-track{margin-block:2px;background:transparent}.scroll::-webkit-scrollbar-thumb{background:#e5e5e5;background-clip:content-box;border-radius:999px}.scroll::-webkit-scrollbar-thumb:hover{background:#d4d4d4}.scroll::-webkit-scrollbar-corner{background:transparent}.chat-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;container-type:inline-size}.turn-rail{position:absolute;z-index:4;top:50%;right:14px;width:28px;max-height:min(420px,calc(100% - 48px));transform:translateY(-50%);overflow-y:auto;scrollbar-width:none}.turn-rail::-webkit-scrollbar{display:none}.turn-rail.fade-top{-webkit-mask-image:linear-gradient(transparent 0,#000 24px 100%);mask-image:linear-gradient(transparent 0,#000 24px 100%)}.turn-rail.fade-bottom{-webkit-mask-image:linear-gradient(#000 0 calc(100% - 24px),transparent 100%);mask-image:linear-gradient(#000 0 calc(100% - 24px),transparent 100%)}.turn-rail.fade-top.fade-bottom{-webkit-mask-image:linear-gradient(transparent 0,#000 24px calc(100% - 24px),transparent 100%);mask-image:linear-gradient(transparent 0,#000 24px calc(100% - 24px),transparent 100%)}.turn-mark{display:block;width:28px;height:10px;padding:0;border:0;border-radius:8px;background:transparent;position:relative}.turn-mark:before{content:"";position:absolute;top:50%;right:0;width:20px;height:2px;border-radius:2px;background:#00000029;transform-origin:100% 50%;transform:translateY(-50%) scaleX(.6);transition:transform .14s,background-color .14s}.turn-mark.preview:before{background:var(--tertiary);transform:translateY(-50%) scaleX(.9)}.turn-mark.active:before{background:var(--ink);transform:translateY(-50%) scaleX(1)}.turn-mark.busy:before{animation:turn-mark-busy 1s ease-in-out infinite}.turn-mark:focus-visible{outline:none}.turn-mark:focus-visible:before{background:var(--send);transform:translateY(-50%) scaleX(1)}@keyframes turn-mark-busy{50%{opacity:.35}}@container (max-width: 800px){.turn-rail{display:none}}@media(prefers-reduced-motion:reduce){.turn-mark:before,.turn-mark.busy:before,.chunk-loading,.chunk-progress-fill,.chunk-progress-fill.indeterminate{transition:none;animation:none}}.column{width:min(748px,100%);margin:0 auto}.empty-thread{text-align:center;color:var(--tertiary);margin:48px 0}.chunk-loading{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transform:translateY(8px);background:#ffffff8c;transition:opacity .28s ease,transform .28s ease}.chunk-loading.visible{opacity:1;transform:none}.chunk-loading-card{display:flex;flex-direction:column;align-items:center;gap:10px;width:min(240px,72%);padding:16px 20px 14px;border-radius:16px;background:#ffffffe0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:var(--shadow)}.chunk-loading p{margin:0;text-align:center}.chunk-progress-track{position:relative;width:100%;height:3px;border-radius:999px;background:var(--selected);overflow:hidden}.chunk-progress-fill{height:100%;border-radius:inherit;background:var(--send);transition:width .18s ease}.chunk-progress-fill.indeterminate{position:absolute;left:0;top:0;width:40%;animation:chunk-indeterminate 1.1s ease-in-out infinite}@keyframes chunk-indeterminate{0%{transform:translate(-120%)}to{transform:translate(280%)}}.user-row{display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:min(525px,82%);margin:18px 0 18px auto}.user-bubble{max-width:100%;background:var(--bubble);border-radius:var(--dsw-radius-xl);padding:10px 16px;font-size:14px;line-height:22px;white-space:pre-wrap;word-break:break-word}.user-row time{color:var(--caption);font-size:12px;line-height:18px}.mail-row{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:min(640px,100%);margin:18px 0}.mail-row time{color:var(--caption);font-size:12px;line-height:18px}.mail-card{width:100%;background:#fff;border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.mail-head{display:flex;align-items:center;gap:10px;padding:14px 16px 0}.mail-who{min-width:0;display:flex;flex-direction:column}.mail-who strong{font-size:14px;line-height:20px;font-weight:600}.mail-who span{color:var(--tertiary);font-size:12px;line-height:18px}.mail-hop{margin-left:auto;flex:none;color:var(--secondary);font-size:12px;line-height:18px;background:var(--selector);border-radius:999px;padding:2px 8px}.mail-body{padding:10px 16px 0}.mail-body .markdown p{margin:10px 0}.mail-note{margin:8px 0 0;padding:0 16px;color:var(--tertiary);font-size:12px;line-height:18px}.mail-details{padding:6px 16px 14px}.mail-details summary{color:var(--tertiary);font-size:12px;line-height:18px;cursor:pointer}.mail-details pre{margin:8px 0 0;color:var(--secondary);white-space:pre-wrap;word-break:break-all;font:11px/18px var(--ds-font-family-code)}.assistant{margin:8px 0 20px;min-width:0}.live-status{margin:8px 0 16px;font-size:13px;line-height:20px}.shimmer{background-image:linear-gradient(90deg,var(--secondary) 0%,var(--ink) 42%,var(--secondary) 84%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:sheen 1.3s linear infinite}@keyframes sheen{0%{background-position:100% 0}to{background-position:-100% 0}}.markdown.streaming>:last-child:after,.assistant.streaming .markdown>:last-child:after{content:"";display:inline-block;width:7px;height:14px;margin-left:3px;vertical-align:text-bottom;border-radius:1px;background:var(--send);animation:caret 1s steps(1) infinite}@keyframes caret{50%{opacity:0}}.duration{font-family:var(--ds-font-family-code);font-variant-numeric:tabular-nums}.coll-container{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease}.coll-container>div{overflow:hidden}.coll-container.expand{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){.coll-container{transition:none}}.turn-failure{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:4px 0 16px}.turn-failed-label{margin:0;color:#d1242f;font-size:14px;line-height:24px}.retry-row{color:var(--tertiary);font-size:13px;line-height:20px}.retry-row summary{cursor:pointer}.retry-row p{margin:2px 0 2px 16px}.turn-error{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:0;color:#d1242f;font-size:14px;line-height:22px}.turn-error-title{font-weight:600}.turn-error code{color:var(--tertiary);font-size:12px}.retry-turn{height:28px;padding:0 12px;border:.5px solid rgba(0,0,0,.16);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}.retry-turn:disabled{color:var(--tertiary);cursor:default}.activity-group{margin:2px 0 8px}.activity-group .official-leading svg:not(.chevron){color:#22c55e}.activity-group[data-state=running] .official-leading svg:not(.chevron){color:var(--tertiary)}.activity-body{margin-left:16px}.official-row{min-width:0}.official-title{display:flex;align-items:center;gap:6px;width:100%;min-height:24px;padding:0;border:0;background:none;color:var(--tertiary);font:inherit;font-size:14px;line-height:24px;text-align:left;cursor:pointer}.official-title:disabled{cursor:default}.official-title:hover{color:var(--secondary)}.official-leading{position:relative;width:16px;height:16px;flex:none}.official-leading svg{position:absolute;inset:0;width:14px;height:14px}.official-leading .chevron{opacity:0}.official-title:hover .chevron,.official-row.open .chevron{opacity:1}.official-title:hover .official-leading svg:not(.chevron),.official-row.open .official-leading svg:not(.chevron){opacity:0}.official-label{flex:none}.official-dot{width:2px;height:2px;border-radius:1px;background:var(--caption);flex:none}.official-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px}.official-summary.streaming{-webkit-mask-image:linear-gradient(to right,black calc(100% - 48px),transparent);mask-image:linear-gradient(to right,black calc(100% - 48px),transparent)}.official-size{flex:none;color:var(--caption);font-size:12px}.diff-counts{display:inline-flex;gap:6px;flex:none;font-family:var(--ds-font-family-code);font-size:12px}.diff-plus{color:#22c55e}.diff-minus{color:#ec1313}.think-body{margin:4px 0 8px 22px;color:var(--secondary);font-size:13px;line-height:20px;white-space:pre-wrap;word-break:break-word}.diff-card{margin:8px 0 8px 22px;background:#f9fafb;border-radius:16px;overflow:hidden;color:var(--ink)}.diff-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px 8px 22px;color:var(--tertiary);font:11px/18px var(--dsw-font-family)}.diff-heading{display:flex;align-items:baseline;gap:12px;min-width:0}.diff-lang{font-family:var(--ds-font-family-code);flex:none}.diff-file{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.diff-copy{width:24px;height:24px;border:0;border-radius:8px;background:transparent;color:var(--secondary);display:grid;place-items:center;padding:0}.diff-copy svg{width:14px;height:14px}.diff-copy:hover{background:#2631480f}.diff-body{display:grid;grid-template-columns:minmax(max-content,1fr);padding:6px 0 16px;font:11px/19px var(--ds-font-family-code);overflow-x:auto}.diff-line{display:block;width:auto;height:auto;min-height:1lh;padding:0 22px;border:0;border-radius:0;background:transparent;white-space:pre}.diff-line:before{display:inline}.diff-line.added{color:#22c55e;background:#22c55e14;box-shadow:inset 3px 0 #22c55e}.diff-line.added:before{content:"+ "}.diff-line.removed{color:#ec1313;background:#ec131314;box-shadow:inset 3px 0 #ec1313}.diff-line.removed:before{content:"- "}.diff-line.same{color:var(--secondary)}.diff-line.same:before{content:" "}.diff-output{margin:0;padding:6px 22px 16px;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/19px var(--ds-font-family-code)}.markdown{min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:24px;color:var(--ink)}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown strong{font-weight:600}.markdown h1{font-size:21px;line-height:30px;font-weight:700;margin:32px 0 16px}.markdown h2{font-size:19px;line-height:28px;font-weight:700;margin:32px 0 16px}.markdown h3{font-size:18px;line-height:26px;font-weight:700;margin:32px 0 16px}.markdown h4{font-size:14px;line-height:24px;font-weight:600;margin:16px 0}.markdown p{margin:16px 0}.markdown a,.file-mention{color:var(--link);font-weight:500}.markdown a:hover,.file-mention:hover,.file-mention:focus-visible{text-decoration:underline dotted var(--link);text-underline-offset:3px}.file-mention{margin:0;padding:0;border:0;background:none;font:inherit;font-weight:500;color:var(--link);cursor:pointer;text-align:inherit}.file-mention:focus{outline:none}.markdown ul,.markdown ol{margin:16px 0;padding-left:18px}.markdown li:not(:first-child){margin-top:6px}.markdown li::marker{color:var(--secondary)}.markdown li>p{margin:8px 0}.markdown hr{border:0;height:.5px;margin:32px 0;background:var(--line)}.markdown blockquote{border-left:2px solid var(--caption);margin:16px 0 0;padding-left:14px}.markdown :not(pre)>code{font-family:var(--ds-font-family-code);font-size:.875em;background:var(--inline-code);border:.5px solid rgba(0,0,0,.04);border-radius:var(--dsw-radius-sm);padding:0 5px}.table-scroll{max-width:100%;overflow-x:auto;margin:16px 0}.table-scroll table{border-collapse:collapse;width:100%}.table-scroll th,.table-scroll td{text-align:start;padding:10px 16px;vertical-align:top;font-size:13px;line-height:22px;max-width:min(30vw,320px);min-width:88px}.table-scroll th{font-weight:500;border-bottom:.5px solid var(--line-strong)}.table-scroll td{border-bottom:.5px solid var(--line)}.table-scroll th:first-child,.table-scroll td:first-child{padding-left:0}.table-scroll td:last-child,.table-scroll th:last-child{padding-right:0}.code-block{margin:16px 0;background:var(--code-bg);border-radius:var(--dsw-radius-lg);color:var(--ink)}.code-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 18px 8px 22px;font-size:11px;line-height:18px;color:var(--tertiary);border-top-left-radius:inherit;border-top-right-radius:inherit}.code-lang{font-family:var(--ds-font-family-code)}.code-copy{border:0;background:transparent;padding:0;color:var(--secondary);font-size:11px}.code-block pre{margin:0;padding:6px 22px 20px;overflow-x:auto;font:11px/19px var(--ds-font-family-code);white-space:pre-wrap;overflow-wrap:anywhere;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.code-block code{font:inherit;background:none;padding:0;border:0}.composer-wrap{padding:0 28px 10px}.card{position:relative;display:flex;flex-direction:column;gap:12px;padding-top:8px;border-radius:var(--dsw-radius-panel);background:#fff;box-shadow:var(--shadow)}.mention-menu{position:absolute;left:8px;right:8px;bottom:calc(100% + 8px);z-index:5;padding:6px;border-radius:12px;background:#fff;box-shadow:var(--shadow)}.mention-menu button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:8px 10px;font-size:13px;line-height:20px}.mention-menu button.active,.mention-menu button:hover{background:var(--hover)}.mention-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mention-empty{margin:2px 10px 6px;color:var(--tertiary);font-size:12px;line-height:18px}.card textarea{width:100%;border:0;resize:none;outline:none;background:transparent;min-height:36px;max-height:160px;padding:4px 14px 0;line-height:24px;font-size:14px}.card-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 8px 8px}.tools,.trailing{display:flex;align-items:center;gap:12px;min-width:0}.tools{position:relative}.plus-menu{position:absolute;left:0;bottom:calc(100% + 10px);z-index:4;width:240px;padding:6px;border-radius:12px;background:#fff;box-shadow:var(--shadow)}.plus-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:8px 10px;font-size:13px;line-height:20px}.plus-menu button:hover{background:var(--hover)}.plus-note{margin:2px 10px 6px;color:var(--tertiary);font-size:12px;line-height:18px}.trailing{margin-left:auto}.chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 4px;color:var(--secondary);font-size:13px;font-weight:500;white-space:nowrap}.chip svg{width:16px;height:16px;flex:none}.model{color:var(--secondary);font-size:13px;font-weight:500;white-space:nowrap}.add{background:var(--selector)}.add:disabled{opacity:.5}.send,.stop{width:34px;height:34px;border:0;border-radius:999px;display:grid;place-items:center;color:#fff}.send{background:var(--send)}.send:hover:not(:disabled){background:var(--send-hover)}.send:disabled{opacity:.4}.stop{background:var(--ink)}.stop-icon{width:10px;height:10px;border-radius:2px;background:#fff}.stats{min-height:20px;margin:6px 8px 0;color:var(--caption);font-size:12px;line-height:20px;text-align:center}.file-modal{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:24px}.file-modal-mask{position:absolute;inset:0;background:#0f111547;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.file-modal-card{position:relative;z-index:1;display:flex;flex-direction:column;width:min(760px,100%);height:min(640px,calc(100vh - 48px));border-radius:var(--dsw-radius-panel);background:#fff;overflow:hidden;box-shadow:0 0 0 .5px #0000001a,0 16px 48px #0000001f}.file-modal-card:focus{outline:none}.file-modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:22px 14px 12px 24px;flex:none}.file-modal-title{min-width:0;display:flex;flex-direction:column}.file-modal-title strong{font-size:16px;line-height:24px;font-weight:500}.file-modal-title span{color:var(--tertiary);font-size:12px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-modal-close{width:28px;height:28px;border:0;border-radius:var(--dsw-radius-sm);background:transparent;color:var(--secondary);display:grid;place-items:center;padding:0;flex:none}.file-modal-close svg{width:14px;height:14px}.file-modal-close:hover{background:var(--hover)}.file-modal-status,.file-modal-note{margin:0;padding:8px 24px 24px;color:var(--secondary);font-size:14px}.file-preview{display:flex;flex-direction:column;min-height:0;flex:auto}.file-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 8px 24px;color:var(--tertiary);font:11px/18px var(--ds-font-family-code)}.file-preview-scroll{flex:auto;min-height:0;overflow:auto}.file-preview pre{margin:0;padding:8px 24px 24px}.file-preview code{display:block;counter-reset:source-line;font:12px/20px var(--ds-font-family-code);color:var(--ink)}.source-line{display:block;min-height:1lh;position:relative;white-space:pre;padding-left:calc(var(--line-width, 2ch) + 16px)}.source-line:before{counter-increment:source-line;content:counter(source-line);position:absolute;left:0;width:var(--line-width, 2ch);text-align:end;color:var(--tertiary);-webkit-user-select:none;user-select:none}.source-line.current{background:#4176e61a}@media(max-width:800px){.shell{grid-template-columns:1fr}.shell.in-chat .side{display:none}.shell:not(.in-chat) .chat{display:none}.back{display:inline}.scroll,.composer-wrap{padding-left:16px;padding-right:16px}}