@adea-ai/ui 0.142.1 → 0.142.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composites/chat/chat.d.ts +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.d.ts.map +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.js +71 -9
- package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
- package/dist/components/conversation/ime-guard.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +5 -5
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +2 -2
- package/dist/components/ui/board/board.d.ts +1 -1
- package/dist/components/ui/bubble/bubble.d.ts +2 -2
- package/dist/components/ui/button/button.d.ts +2 -2
- package/dist/components/ui/callout/callout.d.ts +2 -2
- package/dist/components/ui/card/card.d.ts +1 -1
- package/dist/components/ui/chart/chart-options.d.ts +1 -1
- package/dist/components/ui/chart/chart-options.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +4 -4
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts +3 -3
- package/dist/components/ui/item/item.d.ts +2 -2
- package/dist/components/ui/kbd/kbd.d.ts +2 -2
- package/dist/components/ui/marker/marker.d.ts +1 -1
- package/dist/components/ui/sheet/sheet.d.ts +2 -2
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +3 -3
- package/dist/components/ui/toast/toast.d.ts +4 -4
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/typography/typography.d.ts +17 -17
- package/dist/components/ui/typography/typography.d.ts.map +1 -1
- package/dist/lib/accent-roles.d.ts +1 -1
- package/dist/lib/accent-roles.d.ts.map +1 -1
- package/dist/lib/appearance-font-settings.d.ts +1 -1
- package/dist/lib/appearance-font-settings.d.ts.map +1 -1
- package/dist/lib/cn-tables.generated.d.ts.map +1 -1
- package/dist/lib/font-catalog.d.ts +44 -44
- package/dist/lib/font-catalog.d.ts.map +1 -1
- package/dist/lib/form-field.d.ts +1 -1
- package/dist/lib/overlay.d.ts +2 -2
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/theme-engine.d.ts.map +1 -1
- package/dist/lib/tokens.d.ts.map +1 -1
- package/dist/lib/variants.d.ts +15 -15
- package/dist/lib/variants.d.ts.map +1 -1
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +78 -8
- package/package.json +1 -1
- package/src/components/composites/stack-trace/parse-stack-trace.ts +78 -8
|
@@ -45,7 +45,7 @@ export type ChatHeaderProps = Omit<ComponentProps<'header'>, 'title'> & {
|
|
|
45
45
|
};
|
|
46
46
|
export declare function ChatHeader(props: ChatHeaderProps): JSX.Element;
|
|
47
47
|
export declare const chatNoticeVariants: (props?: ({
|
|
48
|
-
tone?: "
|
|
48
|
+
tone?: "danger" | "info" | "warning" | null | undefined;
|
|
49
49
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
50
50
|
export type ChatNoticeProps = Omit<ComponentProps<'div'>, 'title'> & VariantProps<typeof chatNoticeVariants> & {
|
|
51
51
|
title: JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-stack-trace.d.ts","sourceRoot":"","sources":["../../../../src/components/composites/stack-trace/parse-stack-trace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,MAAM,MAAM,cAAc,GAAG,aA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C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,CAAC,CAAA;AAE9D;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,UAAU,EAAE,EAC9B,QAAQ,UAAO,GACd,SAAS,UAAU,EAAE,CAuBvB;AAKD,4CAA4C;AAC5C,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,GAAG,MAAM,CAMxE;AAED,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAKnE;AAID,0FAA0F;AAC1F,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAO9D;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IACpB,+FAA+F;IAC/F,YAAY,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA;AAEF;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,YAAY,CAwBd"}
|
|
@@ -25,6 +25,31 @@ function splitLocation(location) {
|
|
|
25
25
|
line: last.value
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Split the pre-1.78 Rust panic suffix `'message', location`. The message may
|
|
30
|
+
* contain `', ` itself, and the greedy pattern this replaces took the last
|
|
31
|
+
* occurrence with a non-space behind it — this scan keeps that last-wins
|
|
32
|
+
* answer, in one pass, so a message repeating the marker stays linear.
|
|
33
|
+
*/
|
|
34
|
+
function splitRustOldPanic(after) {
|
|
35
|
+
if (/[\n\r\u2028\u2029]/.test(after) || !after.startsWith("'")) return void 0;
|
|
36
|
+
let close;
|
|
37
|
+
let search = 1;
|
|
38
|
+
for (;;) {
|
|
39
|
+
const at = after.indexOf("', ", search);
|
|
40
|
+
if (at < 0) break;
|
|
41
|
+
search = at + 1;
|
|
42
|
+
const start = at + 3;
|
|
43
|
+
if (start >= after.length) continue;
|
|
44
|
+
if (/\s/.test(after[start])) continue;
|
|
45
|
+
close = at;
|
|
46
|
+
}
|
|
47
|
+
if (close === void 0) return void 0;
|
|
48
|
+
return {
|
|
49
|
+
message: after.slice(1, close),
|
|
50
|
+
location: after.slice(close + 3)
|
|
51
|
+
};
|
|
52
|
+
}
|
|
28
53
|
var FILE_LIKE = /[\\/]|\.[A-Za-z0-9]{1,6}$/;
|
|
29
54
|
var URL_LIKE = /^node:/i;
|
|
30
55
|
/** Whether a V8 location is a place in a file rather than a runtime annotation. */
|
|
@@ -66,17 +91,54 @@ function parseV8(trimmed) {
|
|
|
66
91
|
}
|
|
67
92
|
return draft;
|
|
68
93
|
}
|
|
69
|
-
var
|
|
94
|
+
var PYTHON_PREFIX = "File \"";
|
|
95
|
+
var PYTHON_LINE = "\", line ";
|
|
96
|
+
var PYTHON_IN = ", in ";
|
|
97
|
+
/** Whether a character is an ASCII digit, as `\d` was in the pattern this replaced. */
|
|
98
|
+
function isDigit(code) {
|
|
99
|
+
return code >= 48 && code <= 57;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Read a Python frame: `File "<file>", line <n>[, in <fn>]`.
|
|
103
|
+
*
|
|
104
|
+
* Scanned, not matched. A line repeating the frame shape many times must still
|
|
105
|
+
* cost one pass, so the closing `", line ` is found by walking its candidates
|
|
106
|
+
* left to right. The last valid candidate wins — what the greedy pattern this
|
|
107
|
+
* replaces would have settled on — so a file path containing a quote still
|
|
108
|
+
* parses exactly as it always did.
|
|
109
|
+
*/
|
|
70
110
|
function parsePython(trimmed) {
|
|
71
|
-
|
|
72
|
-
|
|
111
|
+
if (/[\n\r\u2028\u2029]/.test(trimmed) || !trimmed.startsWith(PYTHON_PREFIX)) return void 0;
|
|
112
|
+
let close;
|
|
113
|
+
let digits = 0;
|
|
114
|
+
let rest = 0;
|
|
115
|
+
let hasIn = false;
|
|
116
|
+
let search = 6;
|
|
117
|
+
for (;;) {
|
|
118
|
+
const at = trimmed.indexOf(PYTHON_LINE, search);
|
|
119
|
+
if (at < 0) break;
|
|
120
|
+
search = at + 1;
|
|
121
|
+
let end = at + 8;
|
|
122
|
+
const start = end;
|
|
123
|
+
while (end < trimmed.length && isDigit(trimmed.charCodeAt(end))) end += 1;
|
|
124
|
+
if (end === start) continue;
|
|
125
|
+
if (end < trimmed.length && !trimmed.startsWith(PYTHON_IN, end)) continue;
|
|
126
|
+
close = at;
|
|
127
|
+
digits = end - start;
|
|
128
|
+
rest = end;
|
|
129
|
+
hasIn = end < trimmed.length;
|
|
130
|
+
}
|
|
131
|
+
if (close === void 0) return void 0;
|
|
73
132
|
const draft = {
|
|
74
133
|
raw: trimmed,
|
|
75
134
|
format: "python",
|
|
76
|
-
file:
|
|
77
|
-
line: Number(
|
|
135
|
+
file: trimmed.slice(6, close),
|
|
136
|
+
line: Number(trimmed.slice(rest - digits, rest))
|
|
78
137
|
};
|
|
79
|
-
if (
|
|
138
|
+
if (hasIn) {
|
|
139
|
+
const fn = trimmed.slice(rest + 5);
|
|
140
|
+
if (fn) draft.function = fn;
|
|
141
|
+
}
|
|
80
142
|
return draft;
|
|
81
143
|
}
|
|
82
144
|
var RUST_FRAME = /^(\d+):\s+(?:0x[0-9a-fA-F]+ - )?(\S.*)$/;
|
|
@@ -239,13 +301,13 @@ function liftHeader(entries, format) {
|
|
|
239
301
|
if (at < 0) return void 0;
|
|
240
302
|
const type = first.slice(0, at).trim();
|
|
241
303
|
const after = first.slice(at + 4);
|
|
242
|
-
const old =
|
|
304
|
+
const old = splitRustOldPanic(after);
|
|
243
305
|
let consumed = 1;
|
|
244
306
|
let message;
|
|
245
307
|
let location;
|
|
246
308
|
if (old) {
|
|
247
|
-
message = old
|
|
248
|
-
location = old
|
|
309
|
+
message = old.message;
|
|
310
|
+
location = old.location;
|
|
249
311
|
} else {
|
|
250
312
|
location = after.replace(/:$/, "");
|
|
251
313
|
const body = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-stack-trace.js","names":[],"sources":["../../../../src/components/composites/stack-trace/parse-stack-trace.ts"],"sourcesContent":["/**\n * Stack traces, read without being trusted or trimmed.\n *\n * A trace is text a runtime wrote about itself, and every language writes it\n * differently. This parses the three a coding agent meets most — V8/Node\n * (`at fn (file:line:col)`), Python (`File \"x\", line N, in fn`) and Rust panic\n * backtraces (` 0: symbol` then `at file:line:col`) — into frames, and does\n * three things a formatter would not:\n *\n * - **It never hides a line.** Every input line ends up in `entries`, as a frame\n * or as text, in order. A line the parser does not recognise is text, and a\n * trace it recognises nothing in has `format: 'unknown'` and `frames: []`, so a\n * caller falls back to showing the raw string. The header (error type and\n * message) is lifted out of the entries only when it is unambiguous.\n * - **It makes no claim about whose code a frame is without evidence.** A frame\n * is a dependency when its path says so (`node_modules`, `site-packages`,\n * `.cargo/registry`), internal when it belongs to the runtime (`node:` URLs,\n * Python's frozen modules, Rust's `std`), and first-party otherwise. A host that\n * knows better passes `classify`.\n * - **It is bounded.** Lines over 4 000 characters are never run through a\n * pattern, and input past 10 000 lines is kept as one trailing text entry. Every\n * pattern is anchored and linear, so a hostile trace cannot make parsing slow.\n *\n * Parsing is line-oriented and each line is classified on its own, so a trace\n * that mixes formats (a Node process that shells out to Python) keeps both.\n */\n\nexport type StackFrameKind = 'first-party' | 'dependency' | 'internal'\nexport type StackTraceFormat = 'v8' | 'python' | 'rust' | 'unknown'\n\nexport type StackFrame = Readonly<{\n /** The line exactly as written, minus its line ending. */\n raw: string\n function?: string\n /** The path or URL as written. Undefined for `<anonymous>`, `native` and the like. */\n file?: string\n line?: number\n column?: number\n kind: StackFrameKind\n async?: true\n /** Lines the runtime printed beneath the frame, such as Python's source line. */\n detail?: readonly string[]\n}>\n\nexport type StackEntry =\n | Readonly<{ type: 'frame'; frame: StackFrame }>\n | Readonly<{ type: 'text'; text: string }>\n\nexport type StackTraceHeader = Readonly<{\n /** `TypeError`, `ValueError`, `thread 'main' panicked`. */\n type?: string\n message: string\n /** Where a Rust panic says it happened. */\n location?: string\n}>\n\nexport type ParsedStackTrace = Readonly<{\n format: StackTraceFormat\n header?: StackTraceHeader\n /** Everything that is not the header, in order. */\n entries: readonly StackEntry[]\n frames: readonly StackFrame[]\n}>\n\nexport type ParseStackTraceOptions = {\n /** Override the built-in first-party/dependency/internal guess for a frame. */\n classify?: (frame: StackFrame) => StackFrameKind | undefined\n}\n\nexport const STACK_MAX_LINES = 10_000\nconst LINE_PATTERN_LIMIT = 4000\n\ntype Draft = {\n raw: string\n function?: string\n file?: string\n line?: number\n column?: number\n async?: true\n detail?: string[]\n format: 'v8' | 'python' | 'rust'\n}\n\nfunction trailingNumber(value: string): { value: number; rest: string } | undefined {\n let i = value.length\n while (i > 0 && value.charCodeAt(i - 1) >= 48 && value.charCodeAt(i - 1) <= 57) i -= 1\n if (i === value.length || i === 0 || value[i - 1] !== ':' || value.length - i > 9)\n return undefined\n return { value: Number(value.slice(i)), rest: value.slice(0, i - 1) }\n}\n\n/** Split `path:line:col` from the right, so a Windows drive or a URL port stays in the path. */\nexport function splitLocation(location: string): { file: string; line?: number; column?: number } {\n const last = trailingNumber(location)\n if (!last || last.rest === '') return { file: location }\n const before = trailingNumber(last.rest)\n if (before && before.rest !== '') {\n return { file: before.rest, line: before.value, column: last.value }\n }\n return { file: last.rest, line: last.value }\n}\n\nconst FILE_LIKE = /[\\\\/]|\\.[A-Za-z0-9]{1,6}$/\nconst URL_LIKE = /^node:/i\n\n/** Whether a V8 location is a place in a file rather than a runtime annotation. */\nfunction v8Location(location: string): Partial<Draft> | undefined {\n if (location === '<anonymous>' || location === 'native' || /^index \\d+$/.test(location)) {\n return {}\n }\n if (location.startsWith('eval at ')) return {}\n const split = splitLocation(location)\n if (split.line !== undefined || FILE_LIKE.test(split.file) || URL_LIKE.test(split.file)) {\n return { file: split.file, line: split.line, column: split.column }\n }\n return undefined\n}\n\nfunction parseV8(trimmed: string): Draft | undefined {\n if (!trimmed.startsWith('at ')) return undefined\n const rest = trimmed.slice(3)\n if (rest === '') return undefined\n\n let fn: string | undefined\n let location: string\n if (rest.endsWith(')') && rest.includes(' (')) {\n const open = rest.indexOf(' (')\n fn = rest.slice(0, open)\n location = rest.slice(open + 2, -1)\n } else {\n location = rest\n }\n const parsed = v8Location(location)\n if (!parsed) return undefined\n // Without parentheses the whole remainder was the location, and it must carry\n // a line or a path — otherwise \"at the end of the day\" would be a frame.\n if (\n fn === undefined &&\n parsed.file === undefined &&\n location !== '<anonymous>' &&\n location !== 'native'\n ) {\n return undefined\n }\n\n const draft: Draft = { raw: trimmed, format: 'v8', ...parsed }\n if (fn !== undefined) {\n if (fn.startsWith('async ')) {\n draft.async = true\n fn = fn.slice(6)\n }\n if (fn !== '') draft.function = fn\n }\n return draft\n}\n\nconst PYTHON_FRAME = /^File \"(.*)\", line (\\d+)(?:, in (.*))?$/\n\nfunction parsePython(trimmed: string): Draft | undefined {\n const match = PYTHON_FRAME.exec(trimmed)\n if (!match) return undefined\n const draft: Draft = { raw: trimmed, format: 'python', file: match[1], line: Number(match[2]) }\n if (match[3]) draft.function = match[3]\n return draft\n}\n\nconst RUST_FRAME = /^(\\d+):\\s+(?:0x[0-9a-fA-F]+ - )?(\\S.*)$/\nconst RUST_LOCATION = /^at\\s+(\\S.*)$/\n\nfunction parseRustFrame(trimmed: string, rustContext: boolean): Draft | undefined {\n const match = RUST_FRAME.exec(trimmed)\n if (!match) return undefined\n const symbol = match[2]!\n if (!rustContext && !symbol.includes('::')) return undefined\n return { raw: trimmed, format: 'rust', function: symbol }\n}\n\nconst INTERNAL_RUST_SYMBOLS =\n /^(?:std|core|alloc)::|^<?(?:\\w+ as )?(?:std|core|alloc)::|^(?:rust_begin_unwind|rust_panic|__rust_|_start$|__libc_|_main$)/\n\n/** The built-in guess at whose code a frame is. See the module comment. */\nexport function classifyFrame(\n frame: Omit<StackFrame, 'kind'>,\n format: StackTraceFormat\n): StackFrameKind {\n const file = frame.file?.replaceAll('\\\\', '/')\n if (format === 'rust') {\n if (file !== undefined) {\n if (file.startsWith('/rustc/') || /\\/library\\/(?:std|core|alloc)\\//.test(file))\n return 'internal'\n if (/\\/\\.cargo\\/(?:registry|git)\\/|\\/registry\\/src\\//.test(file)) return 'dependency'\n return 'first-party'\n }\n return frame.function !== undefined && INTERNAL_RUST_SYMBOLS.test(frame.function)\n ? 'internal'\n : 'first-party'\n }\n if (file === undefined) return 'internal'\n if (format === 'python') {\n if (/\\/(?:site|dist)-packages\\//.test(file)) return 'dependency'\n if (\n file.startsWith('<') ||\n /\\/lib\\/python\\d/i.test(file) ||\n /\\/python\\d[\\d.]*\\/lib\\//i.test(file)\n ) {\n return 'internal'\n }\n return 'first-party'\n }\n if (file.startsWith('node:') || file.startsWith('internal/') || file.startsWith('wasm://')) {\n return 'internal'\n }\n if (file.includes('/node_modules/') || file.startsWith('node_modules/')) return 'dependency'\n return 'first-party'\n}\n\nfunction finishFrame(draft: Draft, options: ParseStackTraceOptions | undefined): StackFrame {\n const { format, detail, ...base } = draft\n const shape: Omit<StackFrame, 'kind'> = detail && detail.length > 0 ? { ...base, detail } : base\n // Classified by the frame's own format, so a mixed trace keeps both languages' rules.\n const guess = classifyFrame(shape, format)\n const override = options?.classify?.({ ...shape, kind: guess })\n return { ...shape, kind: override ?? guess }\n}\n\nconst TYPE_AND_MESSAGE = /^([A-Za-z_$][\\w$.]*)(?::\\s?([\\s\\S]*))?$/\n\nfunction splitTypeAndMessage(lines: readonly string[]): StackTraceHeader {\n const first = lines[0] ?? ''\n const match = TYPE_AND_MESSAGE.exec(first)\n const tail = lines.slice(1)\n if (!match) return { message: lines.join('\\n') }\n const message = [match[2] ?? '', ...tail].join('\\n').replace(/^\\n+/, '')\n return { type: match[1], message }\n}\n\n/** Parse a stack trace. Never throws, and every input line appears in the result. */\nexport function parseStackTrace(text: string, options?: ParseStackTraceOptions): ParsedStackTrace {\n const rawLines = text.split('\\n')\n const overflow = rawLines.length > STACK_MAX_LINES ? rawLines.splice(STACK_MAX_LINES) : []\n const rustContext = /panicked at|stack backtrace|RUST_BACKTRACE/.test(text.slice(0, 200_000))\n\n type Item = { type: 'text'; text: string } | { type: 'frame'; draft: Draft }\n const items: Item[] = []\n let python: Draft | undefined\n let rust: Draft | undefined\n\n for (const original of rawLines) {\n const line = original.endsWith('\\r') ? original.slice(0, -1) : original\n const trimmed = line.trim()\n\n if (line.length > LINE_PATTERN_LIMIT || trimmed === '') {\n python = rust = undefined\n items.push({ type: 'text', text: line })\n continue\n }\n\n // Python prints the offending source line, indented, under its frame.\n if (python && /^\\s/.test(line) && !trimmed.startsWith('File \"')) {\n ;(python.detail ??= []).push(line)\n continue\n }\n\n if (rust && rust.file === undefined && RUST_LOCATION.test(trimmed)) {\n const split = splitLocation(RUST_LOCATION.exec(trimmed)![1]!)\n rust.file = split.file\n rust.line = split.line\n rust.column = split.column\n rust.raw = `${rust.raw}\\n${line}`\n continue\n }\n\n const draft = parsePython(trimmed) ?? parseRustFrame(trimmed, rustContext) ?? parseV8(trimmed)\n python = draft?.format === 'python' ? draft : undefined\n rust = draft?.format === 'rust' ? draft : undefined\n if (draft) items.push({ type: 'frame', draft })\n else items.push({ type: 'text', text: line })\n }\n if (overflow.length > 0) items.push({ type: 'text', text: overflow.join('\\n') })\n\n const counts = { v8: 0, python: 0, rust: 0 }\n for (const item of items) if (item.type === 'frame') counts[item.draft.format] += 1\n const total = counts.v8 + counts.python + counts.rust\n const format: StackTraceFormat =\n total === 0\n ? 'unknown'\n : counts.python >= counts.v8 && counts.python >= counts.rust\n ? 'python'\n : counts.rust >= counts.v8\n ? 'rust'\n : 'v8'\n\n const entries: StackEntry[] = items.map((item) =>\n item.type === 'text' ? item : { type: 'frame', frame: finishFrame(item.draft, options) }\n )\n\n if (format === 'unknown') return { format, entries, frames: [] }\n\n const header = liftHeader(entries, format)\n const frames = entries.flatMap((entry) => (entry.type === 'frame' ? [entry.frame] : []))\n return { format, ...(header && { header }), entries, frames }\n}\n\n/**\n * Take the header out of the entries it came from. V8 and Rust print it before\n * the frames; Python prints it after. The lifted lines are removed so they are\n * drawn once, as the header, and nothing else is touched.\n */\nfunction liftHeader(entries: StackEntry[], format: StackTraceFormat): StackTraceHeader | undefined {\n const firstFrame = entries.findIndex((entry) => entry.type === 'frame')\n\n if (format === 'python') {\n let last = entries.length - 1\n while (last >= 0 && (entries[last]!.type !== 'text' || isBlank(entries[last]!))) last -= 1\n let lastFrame = entries.length - 1\n while (lastFrame >= 0 && entries[lastFrame]!.type !== 'frame') lastFrame -= 1\n const entry = entries[last]\n // Only a line shaped like `Type: message` is taken as the header; anything\n // else after the last frame (`[Previous line repeated …]`) stays where it is.\n if (\n !entry ||\n entry.type !== 'text' ||\n last < lastFrame ||\n /^\\s/.test(entry.text) ||\n !TYPE_AND_MESSAGE.test(entry.text.trim())\n ) {\n return undefined\n }\n entries.splice(last, 1)\n return splitTypeAndMessage([entry.text.trim()])\n }\n\n if (format === 'rust') {\n const panicAt = entries.findIndex(\n (entry, index) =>\n index < firstFrame && entry.type === 'text' && /panicked at/.test(entry.text)\n )\n if (panicAt < 0) return undefined\n const first = (entries[panicAt] as { text: string }).text.trim()\n const at = first.indexOf(' at ')\n if (at < 0) return undefined\n const type = first.slice(0, at).trim()\n const after = first.slice(at + 4)\n const old = /^'(.*)', (\\S.*)$/.exec(after)\n let consumed = 1\n let message: string\n let location: string | undefined\n if (old) {\n message = old[1]!\n location = old[2]\n } else {\n location = after.replace(/:$/, '')\n const body: string[] = []\n for (let i = panicAt + 1; i < firstFrame; i += 1) {\n const entry = entries[i]!\n if (\n entry.type !== 'text' ||\n isBlank(entry) ||\n /^(?:note:|stack backtrace:)/.test(entry.text.trim())\n )\n break\n body.push(entry.text)\n consumed += 1\n }\n message = body.join('\\n')\n }\n entries.splice(panicAt, consumed)\n return { type, message, ...(location && { location }) }\n }\n\n // V8: the block of non-blank lines directly above the first frame. Anything\n // above a blank line — Node prints the source line that threw — stays as text.\n if (firstFrame <= 0) return undefined\n let start = firstFrame\n while (start > 0 && entries[start - 1]!.type === 'text' && !isBlank(entries[start - 1]!))\n start -= 1\n if (start === firstFrame) return undefined\n const lines = entries.slice(start, firstFrame).map((entry) => (entry as { text: string }).text)\n entries.splice(start, firstFrame - start)\n return splitTypeAndMessage(lines)\n}\n\nfunction isBlank(entry: StackEntry): boolean {\n return entry.type === 'text' && entry.text.trim() === ''\n}\n\n// ---------------------------------------------------------------------------\n// Grouping\n// ---------------------------------------------------------------------------\n\nexport type StackBlock =\n | Readonly<{ type: 'frame'; frame: StackFrame }>\n | Readonly<{ type: 'text'; text: string }>\n | Readonly<{ type: 'group'; frames: readonly StackFrame[] }>\n\n/**\n * Fold runs of dependency and runtime frames into groups, so a trace reads as\n * the code the reader owns with the framework's frames one click away.\n *\n * A run of one stays a frame — a disclosure around a single line costs more than\n * it saves. When there is no first-party frame at all nothing is grouped:\n * collapsing everything would hide the entire trace behind a button, which is the\n * opposite of what a reader who owns none of the frames needs.\n */\nexport function groupStackEntries(\n entries: readonly StackEntry[],\n collapse = true\n): readonly StackBlock[] {\n const hasFirstParty = entries.some(\n (entry) => entry.type === 'frame' && entry.frame.kind === 'first-party'\n )\n if (!collapse || !hasFirstParty) return entries\n\n const blocks: StackBlock[] = []\n let run: StackFrame[] = []\n const flush = () => {\n if (run.length >= 2) blocks.push({ type: 'group', frames: run })\n else for (const frame of run) blocks.push({ type: 'frame', frame })\n run = []\n }\n for (const entry of entries) {\n if (entry.type === 'frame' && entry.frame.kind !== 'first-party') {\n run.push(entry.frame)\n continue\n }\n flush()\n blocks.push(entry)\n }\n flush()\n return blocks\n}\n\nconst framesNoun = (count: number, word: string) =>\n `${count.toLocaleString()} ${word} ${count === 1 ? 'frame' : 'frames'}`\n\n/** What a collapsed group says it holds. */\nexport function describeFrameGroup(frames: readonly StackFrame[]): string {\n const count = frames.length\n const dependency = frames.filter((frame) => frame.kind === 'dependency').length\n if (dependency === count) return framesNoun(count, 'dependency')\n if (dependency === 0) return framesNoun(count, 'runtime')\n return `${count.toLocaleString()} dependency and runtime frames`\n}\n\n/** `file:line:col`, with whichever parts the frame has. */\nexport function frameLocation(frame: StackFrame): string | undefined {\n if (frame.file === undefined) return undefined\n const column = frame.column === undefined ? '' : `:${frame.column}`\n const line = frame.line === undefined ? '' : `:${frame.line}`\n return `${frame.file}${line}${line ? column : ''}`\n}\n\nconst LEADING_SPACE = /^[ \\t]*/\n\n/** Remove the indentation every non-blank line shares, so a source snippet sits flush. */\nexport function dedentLines(lines: readonly string[]): string[] {\n let indent = Infinity\n for (const line of lines) {\n if (line.trim() !== '') indent = Math.min(indent, LEADING_SPACE.exec(line)![0].length)\n }\n if (indent === Infinity) return [...lines]\n return lines.map((line) => line.slice(Math.min(indent, LEADING_SPACE.exec(line)![0].length)))\n}\n\nexport type BoundedLines = Readonly<{\n lines: string[]\n /** Lines beyond the bound that are not in `lines` at all. */\n omittedLines: number\n /** Characters beyond the bound, in omitted lines and in the cut end of the last shown line. */\n omittedChars: number\n}>\n\n/**\n * The first lines of `lines`, up to `maxLines` of them and `maxChars` characters\n * between them, with what was left out counted rather than dropped silently. It\n * visits the shown lines and adds up the length of the rest, so the cost does not\n * depend on how much text there is to omit.\n */\nexport function boundLines(\n lines: readonly string[],\n maxLines: number,\n maxChars: number\n): BoundedLines {\n const shown: string[] = []\n let chars = 0\n let index = 0\n let partial = 0\n while (index < lines.length && shown.length < maxLines) {\n const line = lines[index]!\n const room = maxChars - chars\n if (line.length <= room) {\n shown.push(line)\n chars += line.length\n index += 1\n continue\n }\n if (room > 0) {\n shown.push(line.slice(0, room))\n partial = line.length - room\n index += 1\n }\n break\n }\n let omittedChars = partial\n for (let rest = index; rest < lines.length; rest += 1) omittedChars += lines[rest]!.length\n return { lines: shown, omittedLines: lines.length - index, omittedChars }\n}\n"],"mappings":";AAqEA,IAAa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,UAAU,KAAK,SAAS;GACxB,SAAS;EACX;EACA;CACF;CACA,IAAI,eAAe;CACnB,KAAK,IAAI,OAAO,OAAO,OAAO,MAAM,QAAQ,QAAQ,GAAG,gBAAgB,MAAM,KAAK,CAAE;CACpF,OAAO;EAAE,OAAO;EAAO,cAAc,MAAM,SAAS;EAAO;CAAa;AAC1E"}
|
|
1
|
+
{"version":3,"file":"parse-stack-trace.js","names":[],"sources":["../../../../src/components/composites/stack-trace/parse-stack-trace.ts"],"sourcesContent":["/**\n * Stack traces, read without being trusted or trimmed.\n *\n * A trace is text a runtime wrote about itself, and every language writes it\n * differently. This parses the three a coding agent meets most — V8/Node\n * (`at fn (file:line:col)`), Python (`File \"x\", line N, in fn`) and Rust panic\n * backtraces (` 0: symbol` then `at file:line:col`) — into frames, and does\n * three things a formatter would not:\n *\n * - **It never hides a line.** Every input line ends up in `entries`, as a frame\n * or as text, in order. A line the parser does not recognise is text, and a\n * trace it recognises nothing in has `format: 'unknown'` and `frames: []`, so a\n * caller falls back to showing the raw string. The header (error type and\n * message) is lifted out of the entries only when it is unambiguous.\n * - **It makes no claim about whose code a frame is without evidence.** A frame\n * is a dependency when its path says so (`node_modules`, `site-packages`,\n * `.cargo/registry`), internal when it belongs to the runtime (`node:` URLs,\n * Python's frozen modules, Rust's `std`), and first-party otherwise. A host that\n * knows better passes `classify`.\n * - **It is bounded.** Lines over 4 000 characters are never run through a\n * pattern, and input past 10 000 lines is kept as one trailing text entry. Every\n * pattern is anchored and linear, so a hostile trace cannot make parsing slow.\n *\n * Parsing is line-oriented and each line is classified on its own, so a trace\n * that mixes formats (a Node process that shells out to Python) keeps both.\n */\n\nexport type StackFrameKind = 'first-party' | 'dependency' | 'internal'\nexport type StackTraceFormat = 'v8' | 'python' | 'rust' | 'unknown'\n\nexport type StackFrame = Readonly<{\n /** The line exactly as written, minus its line ending. */\n raw: string\n function?: string\n /** The path or URL as written. Undefined for `<anonymous>`, `native` and the like. */\n file?: string\n line?: number\n column?: number\n kind: StackFrameKind\n async?: true\n /** Lines the runtime printed beneath the frame, such as Python's source line. */\n detail?: readonly string[]\n}>\n\nexport type StackEntry =\n | Readonly<{ type: 'frame'; frame: StackFrame }>\n | Readonly<{ type: 'text'; text: string }>\n\nexport type StackTraceHeader = Readonly<{\n /** `TypeError`, `ValueError`, `thread 'main' panicked`. */\n type?: string\n message: string\n /** Where a Rust panic says it happened. */\n location?: string\n}>\n\nexport type ParsedStackTrace = Readonly<{\n format: StackTraceFormat\n header?: StackTraceHeader\n /** Everything that is not the header, in order. */\n entries: readonly StackEntry[]\n frames: readonly StackFrame[]\n}>\n\nexport type ParseStackTraceOptions = {\n /** Override the built-in first-party/dependency/internal guess for a frame. */\n classify?: (frame: StackFrame) => StackFrameKind | undefined\n}\n\nexport const STACK_MAX_LINES = 10_000\nconst LINE_PATTERN_LIMIT = 4000\n\ntype Draft = {\n raw: string\n function?: string\n file?: string\n line?: number\n column?: number\n async?: true\n detail?: string[]\n format: 'v8' | 'python' | 'rust'\n}\n\nfunction trailingNumber(value: string): { value: number; rest: string } | undefined {\n let i = value.length\n while (i > 0 && value.charCodeAt(i - 1) >= 48 && value.charCodeAt(i - 1) <= 57) i -= 1\n if (i === value.length || i === 0 || value[i - 1] !== ':' || value.length - i > 9)\n return undefined\n return { value: Number(value.slice(i)), rest: value.slice(0, i - 1) }\n}\n\n/** Split `path:line:col` from the right, so a Windows drive or a URL port stays in the path. */\nexport function splitLocation(location: string): { file: string; line?: number; column?: number } {\n const last = trailingNumber(location)\n if (!last || last.rest === '') return { file: location }\n const before = trailingNumber(last.rest)\n if (before && before.rest !== '') {\n return { file: before.rest, line: before.value, column: last.value }\n }\n return { file: last.rest, line: last.value }\n}\n\n/**\n * Split the pre-1.78 Rust panic suffix `'message', location`. The message may\n * contain `', ` itself, and the greedy pattern this replaces took the last\n * occurrence with a non-space behind it — this scan keeps that last-wins\n * answer, in one pass, so a message repeating the marker stays linear.\n */\nfunction splitRustOldPanic(after: string): { message: string; location: string } | undefined {\n // As in `parsePython`: no `.` in the old pattern could cross a line break.\n if (/[\\n\\r\\u2028\\u2029]/.test(after) || !after.startsWith(\"'\")) return undefined\n let close: number | undefined\n let search = 1\n for (;;) {\n const at = after.indexOf(\"', \", search)\n if (at < 0) break\n search = at + 1\n const start = at + 3\n if (start >= after.length) continue\n // Preserve ECMAScript \\S, including NBSP/BOM and Unicode space separators.\n if (/\\s/.test(after[start]!)) continue\n close = at\n }\n if (close === undefined) return undefined\n return { message: after.slice(1, close), location: after.slice(close + 3) }\n}\n\nconst FILE_LIKE = /[\\\\/]|\\.[A-Za-z0-9]{1,6}$/\nconst URL_LIKE = /^node:/i\n\n/** Whether a V8 location is a place in a file rather than a runtime annotation. */\nfunction v8Location(location: string): Partial<Draft> | undefined {\n if (location === '<anonymous>' || location === 'native' || /^index \\d+$/.test(location)) {\n return {}\n }\n if (location.startsWith('eval at ')) return {}\n const split = splitLocation(location)\n if (split.line !== undefined || FILE_LIKE.test(split.file) || URL_LIKE.test(split.file)) {\n return { file: split.file, line: split.line, column: split.column }\n }\n return undefined\n}\n\nfunction parseV8(trimmed: string): Draft | undefined {\n if (!trimmed.startsWith('at ')) return undefined\n const rest = trimmed.slice(3)\n if (rest === '') return undefined\n\n let fn: string | undefined\n let location: string\n if (rest.endsWith(')') && rest.includes(' (')) {\n const open = rest.indexOf(' (')\n fn = rest.slice(0, open)\n location = rest.slice(open + 2, -1)\n } else {\n location = rest\n }\n const parsed = v8Location(location)\n if (!parsed) return undefined\n // Without parentheses the whole remainder was the location, and it must carry\n // a line or a path — otherwise \"at the end of the day\" would be a frame.\n if (\n fn === undefined &&\n parsed.file === undefined &&\n location !== '<anonymous>' &&\n location !== 'native'\n ) {\n return undefined\n }\n\n const draft: Draft = { raw: trimmed, format: 'v8', ...parsed }\n if (fn !== undefined) {\n if (fn.startsWith('async ')) {\n draft.async = true\n fn = fn.slice(6)\n }\n if (fn !== '') draft.function = fn\n }\n return draft\n}\n\nconst PYTHON_PREFIX = 'File \"'\nconst PYTHON_LINE = '\", line '\nconst PYTHON_IN = ', in '\n\n/** Whether a character is an ASCII digit, as `\\d` was in the pattern this replaced. */\nfunction isDigit(code: number): boolean {\n return code >= 48 && code <= 57\n}\n\n/**\n * Read a Python frame: `File \"<file>\", line <n>[, in <fn>]`.\n *\n * Scanned, not matched. A line repeating the frame shape many times must still\n * cost one pass, so the closing `\", line ` is found by walking its candidates\n * left to right. The last valid candidate wins — what the greedy pattern this\n * replaces would have settled on — so a file path containing a quote still\n * parses exactly as it always did.\n */\nfunction parsePython(trimmed: string): Draft | undefined {\n // `.` never matches a line break, so the whole-line pattern this replaces\n // could not have matched a string containing one either.\n if (/[\\n\\r\\u2028\\u2029]/.test(trimmed) || !trimmed.startsWith(PYTHON_PREFIX)) return undefined\n let close: number | undefined\n let digits = 0\n let rest = 0\n let hasIn = false\n let search = PYTHON_PREFIX.length\n for (;;) {\n const at = trimmed.indexOf(PYTHON_LINE, search)\n if (at < 0) break\n search = at + 1\n let end = at + PYTHON_LINE.length\n const start = end\n while (end < trimmed.length && isDigit(trimmed.charCodeAt(end))) end += 1\n if (end === start) continue\n if (end < trimmed.length && !trimmed.startsWith(PYTHON_IN, end)) continue\n close = at\n digits = end - start\n rest = end\n hasIn = end < trimmed.length\n }\n if (close === undefined) return undefined\n const draft: Draft = {\n raw: trimmed,\n format: 'python',\n file: trimmed.slice(PYTHON_PREFIX.length, close),\n line: Number(trimmed.slice(rest - digits, rest)),\n }\n if (hasIn) {\n const fn = trimmed.slice(rest + PYTHON_IN.length)\n if (fn) draft.function = fn\n }\n return draft\n}\n\nconst RUST_FRAME = /^(\\d+):\\s+(?:0x[0-9a-fA-F]+ - )?(\\S.*)$/\nconst RUST_LOCATION = /^at\\s+(\\S.*)$/\n\nfunction parseRustFrame(trimmed: string, rustContext: boolean): Draft | undefined {\n const match = RUST_FRAME.exec(trimmed)\n if (!match) return undefined\n const symbol = match[2]!\n if (!rustContext && !symbol.includes('::')) return undefined\n return { raw: trimmed, format: 'rust', function: symbol }\n}\n\nconst INTERNAL_RUST_SYMBOLS =\n /^(?:std|core|alloc)::|^<?(?:\\w+ as )?(?:std|core|alloc)::|^(?:rust_begin_unwind|rust_panic|__rust_|_start$|__libc_|_main$)/\n\n/** The built-in guess at whose code a frame is. See the module comment. */\nexport function classifyFrame(\n frame: Omit<StackFrame, 'kind'>,\n format: StackTraceFormat\n): StackFrameKind {\n const file = frame.file?.replaceAll('\\\\', '/')\n if (format === 'rust') {\n if (file !== undefined) {\n if (file.startsWith('/rustc/') || /\\/library\\/(?:std|core|alloc)\\//.test(file))\n return 'internal'\n if (/\\/\\.cargo\\/(?:registry|git)\\/|\\/registry\\/src\\//.test(file)) return 'dependency'\n return 'first-party'\n }\n return frame.function !== undefined && INTERNAL_RUST_SYMBOLS.test(frame.function)\n ? 'internal'\n : 'first-party'\n }\n if (file === undefined) return 'internal'\n if (format === 'python') {\n if (/\\/(?:site|dist)-packages\\//.test(file)) return 'dependency'\n if (\n file.startsWith('<') ||\n /\\/lib\\/python\\d/i.test(file) ||\n /\\/python\\d[\\d.]*\\/lib\\//i.test(file)\n ) {\n return 'internal'\n }\n return 'first-party'\n }\n if (file.startsWith('node:') || file.startsWith('internal/') || file.startsWith('wasm://')) {\n return 'internal'\n }\n if (file.includes('/node_modules/') || file.startsWith('node_modules/')) return 'dependency'\n return 'first-party'\n}\n\nfunction finishFrame(draft: Draft, options: ParseStackTraceOptions | undefined): StackFrame {\n const { format, detail, ...base } = draft\n const shape: Omit<StackFrame, 'kind'> = detail && detail.length > 0 ? { ...base, detail } : base\n // Classified by the frame's own format, so a mixed trace keeps both languages' rules.\n const guess = classifyFrame(shape, format)\n const override = options?.classify?.({ ...shape, kind: guess })\n return { ...shape, kind: override ?? guess }\n}\n\nconst TYPE_AND_MESSAGE = /^([A-Za-z_$][\\w$.]*)(?::\\s?([\\s\\S]*))?$/\n\nfunction splitTypeAndMessage(lines: readonly string[]): StackTraceHeader {\n const first = lines[0] ?? ''\n const match = TYPE_AND_MESSAGE.exec(first)\n const tail = lines.slice(1)\n if (!match) return { message: lines.join('\\n') }\n const message = [match[2] ?? '', ...tail].join('\\n').replace(/^\\n+/, '')\n return { type: match[1], message }\n}\n\n/** Parse a stack trace. Never throws, and every input line appears in the result. */\nexport function parseStackTrace(text: string, options?: ParseStackTraceOptions): ParsedStackTrace {\n const rawLines = text.split('\\n')\n const overflow = rawLines.length > STACK_MAX_LINES ? rawLines.splice(STACK_MAX_LINES) : []\n const rustContext = /panicked at|stack backtrace|RUST_BACKTRACE/.test(text.slice(0, 200_000))\n\n type Item = { type: 'text'; text: string } | { type: 'frame'; draft: Draft }\n const items: Item[] = []\n let python: Draft | undefined\n let rust: Draft | undefined\n\n for (const original of rawLines) {\n const line = original.endsWith('\\r') ? original.slice(0, -1) : original\n const trimmed = line.trim()\n\n if (line.length > LINE_PATTERN_LIMIT || trimmed === '') {\n python = rust = undefined\n items.push({ type: 'text', text: line })\n continue\n }\n\n // Python prints the offending source line, indented, under its frame.\n if (python && /^\\s/.test(line) && !trimmed.startsWith('File \"')) {\n ;(python.detail ??= []).push(line)\n continue\n }\n\n if (rust && rust.file === undefined && RUST_LOCATION.test(trimmed)) {\n const split = splitLocation(RUST_LOCATION.exec(trimmed)![1]!)\n rust.file = split.file\n rust.line = split.line\n rust.column = split.column\n rust.raw = `${rust.raw}\\n${line}`\n continue\n }\n\n const draft = parsePython(trimmed) ?? parseRustFrame(trimmed, rustContext) ?? parseV8(trimmed)\n python = draft?.format === 'python' ? draft : undefined\n rust = draft?.format === 'rust' ? draft : undefined\n if (draft) items.push({ type: 'frame', draft })\n else items.push({ type: 'text', text: line })\n }\n if (overflow.length > 0) items.push({ type: 'text', text: overflow.join('\\n') })\n\n const counts = { v8: 0, python: 0, rust: 0 }\n for (const item of items) if (item.type === 'frame') counts[item.draft.format] += 1\n const total = counts.v8 + counts.python + counts.rust\n const format: StackTraceFormat =\n total === 0\n ? 'unknown'\n : counts.python >= counts.v8 && counts.python >= counts.rust\n ? 'python'\n : counts.rust >= counts.v8\n ? 'rust'\n : 'v8'\n\n const entries: StackEntry[] = items.map((item) =>\n item.type === 'text' ? item : { type: 'frame', frame: finishFrame(item.draft, options) }\n )\n\n if (format === 'unknown') return { format, entries, frames: [] }\n\n const header = liftHeader(entries, format)\n const frames = entries.flatMap((entry) => (entry.type === 'frame' ? [entry.frame] : []))\n return { format, ...(header && { header }), entries, frames }\n}\n\n/**\n * Take the header out of the entries it came from. V8 and Rust print it before\n * the frames; Python prints it after. The lifted lines are removed so they are\n * drawn once, as the header, and nothing else is touched.\n */\nfunction liftHeader(entries: StackEntry[], format: StackTraceFormat): StackTraceHeader | undefined {\n const firstFrame = entries.findIndex((entry) => entry.type === 'frame')\n\n if (format === 'python') {\n let last = entries.length - 1\n while (last >= 0 && (entries[last]!.type !== 'text' || isBlank(entries[last]!))) last -= 1\n let lastFrame = entries.length - 1\n while (lastFrame >= 0 && entries[lastFrame]!.type !== 'frame') lastFrame -= 1\n const entry = entries[last]\n // Only a line shaped like `Type: message` is taken as the header; anything\n // else after the last frame (`[Previous line repeated …]`) stays where it is.\n if (\n !entry ||\n entry.type !== 'text' ||\n last < lastFrame ||\n /^\\s/.test(entry.text) ||\n !TYPE_AND_MESSAGE.test(entry.text.trim())\n ) {\n return undefined\n }\n entries.splice(last, 1)\n return splitTypeAndMessage([entry.text.trim()])\n }\n\n if (format === 'rust') {\n const panicAt = entries.findIndex(\n (entry, index) =>\n index < firstFrame && entry.type === 'text' && /panicked at/.test(entry.text)\n )\n if (panicAt < 0) return undefined\n const first = (entries[panicAt] as { text: string }).text.trim()\n const at = first.indexOf(' at ')\n if (at < 0) return undefined\n const type = first.slice(0, at).trim()\n const after = first.slice(at + 4)\n const old = splitRustOldPanic(after)\n let consumed = 1\n let message: string\n let location: string | undefined\n if (old) {\n message = old.message\n location = old.location\n } else {\n location = after.replace(/:$/, '')\n const body: string[] = []\n for (let i = panicAt + 1; i < firstFrame; i += 1) {\n const entry = entries[i]!\n if (\n entry.type !== 'text' ||\n isBlank(entry) ||\n /^(?:note:|stack backtrace:)/.test(entry.text.trim())\n )\n break\n body.push(entry.text)\n consumed += 1\n }\n message = body.join('\\n')\n }\n entries.splice(panicAt, consumed)\n return { type, message, ...(location && { location }) }\n }\n\n // V8: the block of non-blank lines directly above the first frame. Anything\n // above a blank line — Node prints the source line that threw — stays as text.\n if (firstFrame <= 0) return undefined\n let start = firstFrame\n while (start > 0 && entries[start - 1]!.type === 'text' && !isBlank(entries[start - 1]!))\n start -= 1\n if (start === firstFrame) return undefined\n const lines = entries.slice(start, firstFrame).map((entry) => (entry as { text: string }).text)\n entries.splice(start, firstFrame - start)\n return splitTypeAndMessage(lines)\n}\n\nfunction isBlank(entry: StackEntry): boolean {\n return entry.type === 'text' && entry.text.trim() === ''\n}\n\n// ---------------------------------------------------------------------------\n// Grouping\n// ---------------------------------------------------------------------------\n\nexport type StackBlock =\n | Readonly<{ type: 'frame'; frame: StackFrame }>\n | Readonly<{ type: 'text'; text: string }>\n | Readonly<{ type: 'group'; frames: readonly StackFrame[] }>\n\n/**\n * Fold runs of dependency and runtime frames into groups, so a trace reads as\n * the code the reader owns with the framework's frames one click away.\n *\n * A run of one stays a frame — a disclosure around a single line costs more than\n * it saves. When there is no first-party frame at all nothing is grouped:\n * collapsing everything would hide the entire trace behind a button, which is the\n * opposite of what a reader who owns none of the frames needs.\n */\nexport function groupStackEntries(\n entries: readonly StackEntry[],\n collapse = true\n): readonly StackBlock[] {\n const hasFirstParty = entries.some(\n (entry) => entry.type === 'frame' && entry.frame.kind === 'first-party'\n )\n if (!collapse || !hasFirstParty) return entries\n\n const blocks: StackBlock[] = []\n let run: StackFrame[] = []\n const flush = () => {\n if (run.length >= 2) blocks.push({ type: 'group', frames: run })\n else for (const frame of run) blocks.push({ type: 'frame', frame })\n run = []\n }\n for (const entry of entries) {\n if (entry.type === 'frame' && entry.frame.kind !== 'first-party') {\n run.push(entry.frame)\n continue\n }\n flush()\n blocks.push(entry)\n }\n flush()\n return blocks\n}\n\nconst framesNoun = (count: number, word: string) =>\n `${count.toLocaleString()} ${word} ${count === 1 ? 'frame' : 'frames'}`\n\n/** What a collapsed group says it holds. */\nexport function describeFrameGroup(frames: readonly StackFrame[]): string {\n const count = frames.length\n const dependency = frames.filter((frame) => frame.kind === 'dependency').length\n if (dependency === count) return framesNoun(count, 'dependency')\n if (dependency === 0) return framesNoun(count, 'runtime')\n return `${count.toLocaleString()} dependency and runtime frames`\n}\n\n/** `file:line:col`, with whichever parts the frame has. */\nexport function frameLocation(frame: StackFrame): string | undefined {\n if (frame.file === undefined) return undefined\n const column = frame.column === undefined ? '' : `:${frame.column}`\n const line = frame.line === undefined ? '' : `:${frame.line}`\n return `${frame.file}${line}${line ? column : ''}`\n}\n\nconst LEADING_SPACE = /^[ \\t]*/\n\n/** Remove the indentation every non-blank line shares, so a source snippet sits flush. */\nexport function dedentLines(lines: readonly string[]): string[] {\n let indent = Infinity\n for (const line of lines) {\n if (line.trim() !== '') indent = Math.min(indent, LEADING_SPACE.exec(line)![0].length)\n }\n if (indent === Infinity) return [...lines]\n return lines.map((line) => line.slice(Math.min(indent, LEADING_SPACE.exec(line)![0].length)))\n}\n\nexport type BoundedLines = Readonly<{\n lines: string[]\n /** Lines beyond the bound that are not in `lines` at all. */\n omittedLines: number\n /** Characters beyond the bound, in omitted lines and in the cut end of the last shown line. */\n omittedChars: number\n}>\n\n/**\n * The first lines of `lines`, up to `maxLines` of them and `maxChars` characters\n * between them, with what was left out counted rather than dropped silently. It\n * visits the shown lines and adds up the length of the rest, so the cost does not\n * depend on how much text there is to omit.\n */\nexport function boundLines(\n lines: readonly string[],\n maxLines: number,\n maxChars: number\n): BoundedLines {\n const shown: string[] = []\n let chars = 0\n let index = 0\n let partial = 0\n while (index < lines.length && shown.length < maxLines) {\n const line = lines[index]!\n const room = maxChars - chars\n if (line.length <= room) {\n shown.push(line)\n chars += line.length\n index += 1\n continue\n }\n if (room > 0) {\n shown.push(line.slice(0, room))\n partial = line.length - room\n index += 1\n }\n break\n }\n let omittedChars = partial\n for (let rest = index; rest < lines.length; rest += 1) omittedChars += lines[rest]!.length\n return { lines: shown, omittedLines: lines.length - index, omittedChars }\n}\n"],"mappings":";AAqEA,IAAa,kBAAkB;AAC/B,IAAM,qBAAqB;AAa3B,SAAS,eAAe,OAA4D;CAClF,IAAI,IAAI,MAAM;CACd,OAAO,IAAI,KAAK,MAAM,WAAW,IAAI,CAAC,KAAK,MAAM,MAAM,WAAW,IAAI,CAAC,KAAK,IAAI,KAAK;CACrF,IAAI,MAAM,MAAM,UAAU,MAAM,KAAK,MAAM,IAAI,OAAO,OAAO,MAAM,SAAS,IAAI,GAC9E,OAAO,KAAA;CACT,OAAO;EAAE,OAAO,OAAO,MAAM,MAAM,CAAC,CAAC;EAAG,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC;CAAE;AACtE;;AAGA,SAAgB,cAAc,UAAoE;CAChG,MAAM,OAAO,eAAe,QAAQ;CACpC,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,OAAO,EAAE,MAAM,SAAS;CACvD,MAAM,SAAS,eAAe,KAAK,IAAI;CACvC,IAAI,UAAU,OAAO,SAAS,IAC5B,OAAO;EAAE,MAAM,OAAO;EAAM,MAAM,OAAO;EAAO,QAAQ,KAAK;CAAM;CAErE,OAAO;EAAE,MAAM,KAAK;EAAM,MAAM,KAAK;CAAM;AAC7C;;;;;;;AAQA,SAAS,kBAAkB,OAAkE;CAE3F,IAAI,qBAAqB,KAAK,KAAK,KAAK,CAAC,MAAM,WAAW,GAAG,GAAG,OAAO,KAAA;CACvE,IAAI;CACJ,IAAI,SAAS;CACb,SAAS;EACP,MAAM,KAAK,MAAM,QAAQ,OAAO,MAAM;EACtC,IAAI,KAAK,GAAG;EACZ,SAAS,KAAK;EACd,MAAM,QAAQ,KAAK;EACnB,IAAI,SAAS,MAAM,QAAQ;EAE3B,IAAI,KAAK,KAAK,MAAM,MAAO,GAAG;EAC9B,QAAQ;CACV;CACA,IAAI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AAM,KAAK,IAAI;GACf,SAAS,KAAK;GACd,SAAS;GACT;EACF;EACA,IAAI,OAAO,GAAG;GACZ,MAAM,KAAK,KAAK,MAAM,GAAG,IAAI,CAAC;GAC9B,UAAU,KAAK,SAAS;GACxB,SAAS;EACX;EACA;CACF;CACA,IAAI,eAAe;CACnB,KAAK,IAAI,OAAO,OAAO,OAAO,MAAM,QAAQ,QAAQ,GAAG,gBAAgB,MAAM,KAAK,CAAE;CACpF,OAAO;EAAE,OAAO;EAAO,cAAc,MAAM,SAAS;EAAO;CAAa;AAC1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ime-guard.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/ime-guard.ts"],"names":[],"mappings":"AA2BA,0EAA0E;AAC1E,wBAAgB,sBAAsB
|
|
1
|
+
{"version":3,"file":"ime-guard.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/ime-guard.ts"],"names":[],"mappings":"AA2BA,0EAA0E;AAC1E,wBAAgB,sBAAsB;IAWlC,kBAAkB;IAKlB,gBAAgB;IAQhB,OAAO;IACP,MAAM;IACN,4EAA4E;IAC5E,UAAU,QAAQ,aAAa;EAYlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-rail.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/side-rail/side-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAOnE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,cAAc,GAAG,KAAK,IAAI,gBAAgB,CAC5E,CAAC,EACD;IACE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB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BAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,eAiB/D"}
|
|
@@ -14,7 +14,7 @@ import { type VariantProps } from '#lib/variants';
|
|
|
14
14
|
* carry the status hue.
|
|
15
15
|
*/
|
|
16
16
|
declare const alertVariants: (props?: ({
|
|
17
|
-
variant?: "default" | "destructive" | "
|
|
17
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
type AlertVariantProps = VariantProps<typeof alertVariants>;
|
|
20
20
|
export type AlertProps = ComponentProps<'div'> & AlertVariantProps & {
|
|
@@ -14,11 +14,11 @@ import type { ComponentProps } from 'solid-js';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function initialsFrom(name: string): string;
|
|
16
16
|
declare const avatarSizes: {
|
|
17
|
-
readonly xs:
|
|
18
|
-
readonly sm:
|
|
19
|
-
readonly md:
|
|
20
|
-
readonly lg:
|
|
21
|
-
readonly xl:
|
|
17
|
+
readonly xs: 'size-5 text-2xs';
|
|
18
|
+
readonly sm: 'size-6 text-2xs';
|
|
19
|
+
readonly md: 'size-8 text-xs';
|
|
20
|
+
readonly lg: 'size-10 text-sm';
|
|
21
|
+
readonly xl: 'size-12 text-base';
|
|
22
22
|
};
|
|
23
23
|
export type AvatarProps = ComponentProps<'span'> & {
|
|
24
24
|
size?: keyof typeof avatarSizes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAI9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAI9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED,QAAA,MAAM,WAAW;aACf,EAAE,EAAE,iBAAiB;aACrB,EAAE,EAAE,iBAAiB;aACrB,EAAE,EAAE,gBAAgB;aACpB,EAAE,EAAE,iBAAiB;aACrB,EAAE,EAAE,mBAAmB;CACf,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACjD,IAAI,CAAC,EAAE,MAAM,OAAO,WAAW,CAAA;CAChC,CAAA;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,kCAcxC;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG;IACtE,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,KAAK,IAAI,CAAA;CACzE,CAAA;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,kCAqBlD;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACzD,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,kCAwBxD"}
|
|
@@ -10,8 +10,8 @@ import { type VariantProps } from '#lib/variants';
|
|
|
10
10
|
* action.
|
|
11
11
|
*/
|
|
12
12
|
export declare const badgeVariants: (props?: ({
|
|
13
|
-
variant?: "default" | "destructive" | "
|
|
14
|
-
size?: "
|
|
13
|
+
variant?: "default" | "destructive" | "info" | "notification" | "outline" | "secondary" | "subtle" | "success" | "warning" | null | undefined;
|
|
14
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
16
|
type BadgeVariantProps = VariantProps<typeof badgeVariants>;
|
|
17
17
|
export type BadgeProps<T extends ValidComponent = 'span'> = PolymorphicProps<T, BadgeVariantProps & {
|
|
@@ -91,7 +91,7 @@ export type BoardProps<T> = {
|
|
|
91
91
|
};
|
|
92
92
|
export declare function Board<T>(props: BoardProps<T>): JSX.Element;
|
|
93
93
|
export declare const boardCardTitleVariants: (props?: ({
|
|
94
|
-
size?: "
|
|
94
|
+
size?: "md" | "sm" | null | undefined;
|
|
95
95
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
96
96
|
export type BoardCardTitleProps = {
|
|
97
97
|
class?: string;
|
|
@@ -19,8 +19,8 @@ import { type VariantProps } from '#lib/variants';
|
|
|
19
19
|
* column; nothing here interprets markup.
|
|
20
20
|
*/
|
|
21
21
|
export declare const bubbleVariants: (props?: ({
|
|
22
|
-
tone?: "neutral" | "
|
|
23
|
-
state?: "
|
|
22
|
+
tone?: "neutral" | "quiet" | "user" | null | undefined;
|
|
23
|
+
state?: "failed" | "pending" | "queued" | "sent" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
export type BubbleProps = Omit<ComponentProps<'div'>, 'children'> & VariantProps<typeof bubbleVariants> & {
|
|
26
26
|
children?: JSX.Element;
|
|
@@ -18,8 +18,8 @@ import { type VariantProps } from '#lib/variants';
|
|
|
18
18
|
* `asChild` primitive, which has no Solid equivalent that preserves props.
|
|
19
19
|
*/
|
|
20
20
|
export declare const buttonVariants: (props?: ({
|
|
21
|
-
variant?: "
|
|
22
|
-
size?: "
|
|
21
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | "subtle" | "success" | "toolbar" | null | undefined;
|
|
22
|
+
size?: "2xl" | "2xs" | "icon-2xl" | "icon-2xs" | "icon-lg" | "icon-md" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
23
23
|
touchTarget?: "comfortable" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
type ButtonVariantProps = VariantProps<typeof buttonVariants>;
|
|
@@ -47,8 +47,8 @@ import { type VariantProps } from '#lib/variants';
|
|
|
47
47
|
* item and break the line.
|
|
48
48
|
*/
|
|
49
49
|
export declare const calloutVariants: (props?: ({
|
|
50
|
-
variant?: "default" | "destructive" | "
|
|
51
|
-
size?: "
|
|
50
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
51
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
52
52
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
53
53
|
export type CalloutProps = ComponentProps<'div'> & VariantProps<typeof calloutVariants>;
|
|
54
54
|
export declare function Callout(props: CalloutProps): import("solid-js").JSX.Element;
|
|
@@ -20,7 +20,7 @@ import { type VariantProps } from '#lib/variants';
|
|
|
20
20
|
* card whose body is a list of rows or a scroll area that runs edge to edge.
|
|
21
21
|
*/
|
|
22
22
|
export declare const cardVariants: (props?: ({
|
|
23
|
-
size?: "
|
|
23
|
+
size?: "default" | "flush" | "sm" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
export type CardProps = ComponentProps<'div'> & VariantProps<typeof cardVariants>;
|
|
26
26
|
export declare function Card(props: CardProps): import("solid-js").JSX.Element;
|
|
@@ -11,7 +11,7 @@ import type { ChartOptions } from 'chart.js';
|
|
|
11
11
|
* resolver in `chart.tsx`).
|
|
12
12
|
*/
|
|
13
13
|
/** The five series colours, in the order a multi-series chart should use them. */
|
|
14
|
-
export declare const chartSeriesColors: readonly [
|
|
14
|
+
export declare const chartSeriesColors: readonly ['var(--chart-1)', 'var(--chart-2)', 'var(--chart-3)', 'var(--chart-4)', 'var(--chart-5)'];
|
|
15
15
|
/**
|
|
16
16
|
* Which scales a chart type draws. Chart.js creates a scale for every key under
|
|
17
17
|
* `options.scales` whatever the chart type, so cartesian defaults handed to a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-options.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/chart/chart-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C;;;;;;;;;;GAUG;AAEH,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"chart-options.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/chart/chart-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C;;;;;;;;;;GAUG;AAEH,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,YAC5B,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,CACR,CAAA;AAkBV;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAA;AA6E7D;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,OAAO,EAAE,CAAC,YAAY,GAAG,SAAS,CAAC,EAAE,GAAG,YAAY,CAMxF;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,SAAS,CAAC,EAAE,YAAY,EACxB,KAAK,GAAE,eAA6B,GACnC,YAAY,CAsCd;AAID;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,GAClD,CAAC,CAmBH"}
|
|
@@ -50,10 +50,10 @@ export type DialogContentProps = ComponentProps<typeof KobalteDialogContent> & {
|
|
|
50
50
|
};
|
|
51
51
|
/** The dialog width ladder, so a caller picks a rung instead of a `max-w-*`. */
|
|
52
52
|
export declare const dialogContentSizes: {
|
|
53
|
-
readonly sm:
|
|
54
|
-
readonly md:
|
|
55
|
-
readonly lg:
|
|
56
|
-
readonly xl:
|
|
53
|
+
readonly sm: 'max-w-md';
|
|
54
|
+
readonly md: 'max-w-lg';
|
|
55
|
+
readonly lg: 'max-w-2xl';
|
|
56
|
+
readonly xl: 'max-w-3xl';
|
|
57
57
|
};
|
|
58
58
|
export type DialogContentSize = keyof typeof dialogContentSizes;
|
|
59
59
|
export declare function DialogContent(props: DialogContentProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,aAAa,EACvB,OAAO,IAAI,oBAAoB,EAC/B,OAAO,IAAI,oBAAoB,EAChC,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AA+C7D,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACvB,eAAe,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,SAAS,CAAC,CAAA;IACnD,eAAe,CAAC,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAChF,gBAAgB,CAAC,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,CAAC,kBAAkB,CAAC,CAAA;CACnF,CAAA;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,IAAI,EACJ,eAAe,EACf,eAAe,EAAE,qBAAqB,EACtC,gBAAgB,EAAE,sBAAsB,GACzC,EAAE,6BAA6B;6B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,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,eAS7E;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,eASxD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,KAAK,CAAC,eAG5E;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,eAKxF;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,eAGxF;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,eAGlF"}
|
|
@@ -67,7 +67,7 @@ export declare function diffStats(lines: readonly DiffLine[]): Readonly<{
|
|
|
67
67
|
*/
|
|
68
68
|
export declare function diffTargetPath(patch: string): string | null;
|
|
69
69
|
export declare const diffLineVariants: (props?: ({
|
|
70
|
-
kind?: "
|
|
70
|
+
kind?: "add" | "context" | "delete" | "header" | "hunk" | "meta" | null | undefined;
|
|
71
71
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
72
72
|
export type DiffBlockProps = Omit<ComponentProps<'div'>, 'children'> & VariantProps<typeof diffLineVariants> & {
|
|
73
73
|
/** The unified diff. */
|
|
@@ -35,9 +35,9 @@ import { type VariantProps } from '#lib/variants';
|
|
|
35
35
|
* (Lucide, `fill="none"`) are left alone.
|
|
36
36
|
*/
|
|
37
37
|
export declare const entityIconVariants: (props?: ({
|
|
38
|
-
shape?: "circle" | "
|
|
39
|
-
size?: "
|
|
40
|
-
tone?: "
|
|
38
|
+
shape?: "circle" | "rounded" | "square" | null | undefined;
|
|
39
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
40
|
+
tone?: "bare" | "danger" | "info" | "neutral" | "primary" | "success" | "warning" | null | undefined;
|
|
41
41
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
42
42
|
type EntityIconVariantProps = VariantProps<typeof entityIconVariants>;
|
|
43
43
|
export type EntityIconProps = Omit<ComponentProps<'span'>, 'children'> & EntityIconVariantProps & {
|
|
@@ -19,8 +19,8 @@ import { type VariantProps } from '#lib/variants';
|
|
|
19
19
|
* actually has are "does this need an edge" and "is it on the canvas or inset".
|
|
20
20
|
*/
|
|
21
21
|
export declare const itemVariants: (props?: ({
|
|
22
|
-
variant?: "default" | "
|
|
23
|
-
size?: "
|
|
22
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
23
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
type ItemVariantProps = VariantProps<typeof itemVariants>;
|
|
26
26
|
export type ItemProps = ComponentProps<'div'> & ItemVariantProps & {
|
|
@@ -17,14 +17,14 @@ import { type VariantProps } from '#lib/variants';
|
|
|
17
17
|
* needs a gap between them that is a layout concern, not punctuation.
|
|
18
18
|
*/
|
|
19
19
|
export declare const kbdVariants: (props?: ({
|
|
20
|
-
size?: "
|
|
20
|
+
size?: "compact" | "default" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
export type KbdSize = NonNullable<VariantProps<typeof kbdVariants>['size']>;
|
|
23
23
|
export declare function Kbd(props: ComponentProps<'kbd'> & {
|
|
24
24
|
size?: KbdSize;
|
|
25
25
|
}): import("solid-js").JSX.Element;
|
|
26
26
|
export declare const kbdGroupVariants: (props?: ({
|
|
27
|
-
size?: "
|
|
27
|
+
size?: "compact" | "default" | null | undefined;
|
|
28
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
29
|
export declare function KbdGroup(props: ComponentProps<'span'> & {
|
|
30
30
|
size?: KbdSize;
|
|
@@ -19,7 +19,7 @@ import { type VariantProps } from '#lib/variants';
|
|
|
19
19
|
* `separator` is defined to carry no content.
|
|
20
20
|
*/
|
|
21
21
|
export declare const markerVariants: (props?: ({
|
|
22
|
-
tone?: "
|
|
22
|
+
tone?: "danger" | "info" | "neutral" | "success" | "warning" | null | undefined;
|
|
23
23
|
variant?: "note" | "rule" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
export type MarkerProps = Omit<ComponentProps<'div'>, 'children'> & VariantProps<typeof markerVariants> & {
|
|
@@ -33,8 +33,8 @@ import { type VariantProps } from '#lib/variants';
|
|
|
33
33
|
* sheet opens.
|
|
34
34
|
*/
|
|
35
35
|
declare const sheetVariants: (props?: ({
|
|
36
|
-
side?: "
|
|
37
|
-
variant?: "
|
|
36
|
+
side?: "bottom" | "end" | "start" | "top" | null | undefined;
|
|
37
|
+
variant?: "edge" | "inset" | null | undefined;
|
|
38
38
|
size?: "default" | "panel" | null | undefined;
|
|
39
39
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
40
40
|
export type SheetContentProps = ComponentProps<typeof KobalteDialogContent> & VariantProps<typeof sheetVariants> & {
|
|
@@ -13,7 +13,7 @@ import { type VariantProps } from '#lib/variants';
|
|
|
13
13
|
* alone. A frozen spinner reads as a hang, which is worse than motion.
|
|
14
14
|
*/
|
|
15
15
|
declare const spinnerVariants: (props?: ({
|
|
16
|
-
size?: "
|
|
16
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
type SpinnerVariants = VariantProps<typeof spinnerVariants>;
|
|
19
19
|
export type SpinnerProps = Omit<ComponentProps<'svg'>, 'size'> & SpinnerVariants & {
|
|
@@ -30,7 +30,7 @@ import { type ComponentProps, type JSX } from 'solid-js';
|
|
|
30
30
|
* the only signal.
|
|
31
31
|
*/
|
|
32
32
|
export declare const statusDotVariants: (props?: ({
|
|
33
|
-
tone?: "
|
|
33
|
+
tone?: "danger" | "info" | "neutral" | "pending" | "success" | "unknown" | "warning" | null | undefined;
|
|
34
34
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
35
35
|
export type StatusTone = 'neutral' | 'success' | 'warning' | 'danger' | 'info' | 'pending' | 'unknown';
|
|
36
36
|
export type StatusChipProps = Omit<ComponentProps<'span'>, 'children'> & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentProps, Ref } from 'solid-js';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const textareaVariants: (props?: ({
|
|
4
|
-
variant?: "code" | "
|
|
5
|
-
size?: "
|
|
6
|
-
resize?: "
|
|
4
|
+
variant?: "code" | "composer" | "default" | null | undefined;
|
|
5
|
+
size?: "comfortable" | "default" | null | undefined;
|
|
6
|
+
resize?: "both" | "none" | "vertical" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> & VariantProps<typeof textareaVariants> & {
|
|
9
9
|
/** Solid's actual textarea element, rather than its containing component or form. */
|