@lincyaw/aegis-ui 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/CommitGraph.cjs +1 -1
- package/dist/components/ui/CommitGraph.cjs.map +1 -1
- package/dist/components/ui/CommitGraph.d.ts +23 -5
- package/dist/components/ui/CommitGraph.js +236 -200
- package/dist/components/ui/CommitGraph.js.map +1 -1
- package/dist/components/ui/DetailBeside.cjs +1 -1
- package/dist/components/ui/DetailBeside.cjs.map +1 -1
- package/dist/components/ui/DetailBeside.d.ts +31 -9
- package/dist/components/ui/DetailBeside.js +75 -71
- package/dist/components/ui/DetailBeside.js.map +1 -1
- package/dist/components/ui/RegionMap.cjs +2 -0
- package/dist/components/ui/RegionMap.cjs.map +1 -0
- package/dist/components/ui/RegionMap.d.ts +53 -0
- package/dist/components/ui/RegionMap.js +173 -0
- package/dist/components/ui/RegionMap.js.map +1 -0
- package/dist/components/ui/RollingValue.cjs.map +1 -1
- package/dist/components/ui/RollingValue.d.ts +1 -2
- package/dist/components/ui/RollingValue.js.map +1 -1
- package/dist/components/ui/ServiceMap.cjs +1 -1
- package/dist/components/ui/ServiceMap.cjs.map +1 -1
- package/dist/components/ui/ServiceMap.d.ts +2 -1
- package/dist/components/ui/ServiceMap.js +233 -237
- package/dist/components/ui/ServiceMap.js.map +1 -1
- package/dist/components/ui/Timeline.cjs +1 -1
- package/dist/components/ui/Timeline.cjs.map +1 -1
- package/dist/components/ui/Timeline.d.ts +16 -1
- package/dist/components/ui/Timeline.js +115 -45
- package/dist/components/ui/Timeline.js.map +1 -1
- package/dist/components/ui/TraceTree.cjs +1 -1
- package/dist/components/ui/TraceTree.cjs.map +1 -1
- package/dist/components/ui/TraceTree.d.ts +8 -1
- package/dist/components/ui/TraceTree.js +198 -175
- package/dist/components/ui/TraceTree.js.map +1 -1
- package/dist/components/ui/index.d.ts +5 -1
- package/dist/components/ui/workStatus.cjs +2 -0
- package/dist/components/ui/workStatus.cjs.map +1 -0
- package/dist/components/ui/workStatus.d.ts +15 -0
- package/dist/components/ui/workStatus.js +18 -0
- package/dist/components/ui/workStatus.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +175 -171
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraceTree.js","sources":["../../../src/components/ui/TraceTree.tsx"],"sourcesContent":["import {\n type CSSProperties,\n Fragment,\n type KeyboardEvent,\n type MouseEvent,\n type ReactNode,\n useContext,\n useEffect,\n useId,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { Tooltip } from 'antd';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport { useResizable } from '../../hooks/useResizable';\nimport { breakAtSeparators } from '../../lib/breakAtSeparators';\nimport type { ChartColor } from '../../lib/chart';\nimport { formatDuration } from '../../lib/format';\nimport { useStrings } from '../../locale';\nimport { Chip } from './Chip';\nimport { StatusDot } from './StatusDot';\nimport './TraceTree.css';\nimport { DefaultLink, type LinkComponent } from './linkComponent';\nimport { SelectedRowDetailContext } from './selectedRowDetail';\nimport { statusTone } from './traceStatus';\n\nexport type TraceTreeSurface = PrimitiveSurface<TraceSpan[]>;\n\nexport interface TraceSpan {\n id: string;\n parentId?: string | null;\n name: string;\n /**\n * Milliseconds since trace start. Leave `startMs` and `durationMs` out for a\n * span whose time is not recorded: its row draws no bar, and siblings that are\n * not all timed keep the order they are given in.\n */\n startMs?: number;\n durationMs?: number;\n status?: 'ok' | 'error' | 'unset';\n /**\n * The span's category: a chip on the left of its `TraceTree` row, and,\n * without `color`, the colour of its `TimelineChart` bar (one per kind).\n */\n kind?: string;\n /**\n * The colour of its `TimelineChart` bar. Set it from a stable key when\n * `kind` is translated, so the colour does not follow the language.\n */\n color?: ChartColor;\n /** Drawn at the end of the span's `TimelineChart` bar. */\n badge?: ReactNode;\n /**\n * Drawn at the end of the span's name in its `TraceTree` row, e.g. a change\n * mark or a count. It is the row's accessible description, not part of its\n * name. Give a Chip in it `inverted` while the span is selected.\n */\n note?: ReactNode;\n /**\n * Draws the span's `TraceTree` row in muted ink, e.g. for a span that only\n * the trace it is compared with has.\n */\n muted?: boolean;\n /** The accessible name of the span's `TraceTree` row. Default: the row's text. */\n ariaLabel?: string;\n /**\n * Makes the span's name in its `TraceTree` row a link to this\n * destination. The row stays the tree's tab stop: the link is not a tab\n * stop, and Enter on the row follows it.\n */\n to?: string;\n /** Free-form attributes — only used by the inspector pane, not by the row itself. */\n attrs?: Record<string, unknown>;\n}\n\ninterface TimedSpan extends TraceSpan {\n startMs: number;\n durationMs: number;\n}\n\ninterface TraceTreeProps {\n /**\n * The spans in any order. A span whose `parentId` names no span is a root;\n * spans whose parents form a cycle are cut at one span of the cycle, which\n * becomes a root.\n */\n spans: TraceSpan[];\n selectedId?: string;\n onSelect?: (span: TraceSpan) => void;\n /**\n * Rows at this depth or deeper start collapsed when they have children.\n * Roots are depth 0, so `0` shows only the roots and `1` the roots and\n * their children. Applies to the spans present when the tree mounts.\n * Default: every row expanded.\n */\n defaultCollapsedDepth?: number;\n /** The tree's accessible name. Default: the locale's `traceSpans`. */\n ariaLabel?: string;\n /** Renders the names of spans with `to`. Defaults to an `<a href>`; routed apps pass their Link adapter. */\n linkComponent?: LinkComponent;\n className?: string;\n style?: CSSProperties;\n surface?: TraceTreeSurface;\n nameColumnWidth?: number;\n defaultNameColumnWidth?: number;\n onNameColumnWidthChange?: (w: number) => void;\n persistKey?: string;\n /**\n * Wraps a long name over lines instead of truncating it: between words and\n * after `_ . - / :`, and inside a word only when it cannot fit a line.\n */\n wrapName?: boolean;\n}\n\ninterface Node {\n span: TraceSpan;\n parent: Node | null;\n children: Node[];\n depth: number;\n}\n\ninterface VisibleRow {\n node: Node;\n /** 1-based position among its siblings. */\n position: number;\n siblings: number;\n}\n\nconst NAME_COL_MIN = 180;\nconst NAME_COL_MAX = 700;\nconst NAME_COL_DEFAULT = 320;\n\nfunction isTimed(span: TraceSpan): span is TimedSpan {\n return span.startMs !== undefined && span.durationMs !== undefined;\n}\n\nfunction sortByStart(nodes: Node[]): void {\n if (nodes.every((n) => n.span.startMs !== undefined)) {\n nodes.sort((a, b) => (a.span.startMs ?? 0) - (b.span.startMs ?? 0));\n }\n}\n\nfunction buildForest(spans: TraceSpan[]): Node[] {\n const byId = new Map<string, Node>();\n spans.forEach((span) => {\n byId.set(span.id, { span, parent: null, children: [], depth: 0 });\n });\n const roots: Node[] = [];\n byId.forEach((node) => {\n const pid = node.span.parentId;\n const parent = pid ? byId.get(pid) : undefined;\n if (parent) {\n node.parent = parent;\n parent.children.push(node);\n } else {\n roots.push(node);\n }\n });\n\n const placed = new Set<Node>();\n const place = (node: Node, depth: number): void => {\n placed.add(node);\n node.depth = depth;\n node.children.forEach((child) => {\n place(child, depth + 1);\n });\n };\n roots.forEach((root) => {\n place(root, 0);\n });\n // A span no root reaches hangs below a cycle of parents. Climbing from it\n // comes back round to a span on the cycle, which becomes a root.\n byId.forEach((node) => {\n if (placed.has(node)) {\n return;\n }\n const climbed = new Set<Node>();\n let onCycle = node;\n while (onCycle.parent !== null && !climbed.has(onCycle)) {\n climbed.add(onCycle);\n onCycle = onCycle.parent;\n }\n const cut = onCycle;\n if (cut.parent !== null) {\n cut.parent.children = cut.parent.children.filter((c) => c !== cut);\n cut.parent = null;\n }\n roots.push(cut);\n place(cut, 0);\n });\n\n const sortRec = (n: Node): void => {\n sortByStart(n.children);\n n.children.forEach(sortRec);\n };\n sortByStart(roots);\n roots.forEach(sortRec);\n return roots;\n}\n\nfunction flatten(\n nodes: Node[],\n collapsed: Set<string>,\n out: VisibleRow[] = [],\n): VisibleRow[] {\n nodes.forEach((node, index) => {\n out.push({ node, position: index + 1, siblings: nodes.length });\n if (!collapsed.has(node.span.id)) {\n flatten(node.children, collapsed, out);\n }\n });\n return out;\n}\n\nexport function TraceTree({\n spans,\n selectedId,\n onSelect,\n defaultCollapsedDepth = Number.POSITIVE_INFINITY,\n ariaLabel,\n linkComponent: Link = DefaultLink,\n className,\n style,\n surface,\n nameColumnWidth,\n defaultNameColumnWidth = NAME_COL_DEFAULT,\n onNameColumnWidthChange,\n persistKey,\n wrapName = false,\n}: TraceTreeProps) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const treeRef = useRef<HTMLDivElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, spans, 'tree', wrapRef);\n const strings = useStrings();\n const idPrefix = useId();\n const selection = useContext(SelectedRowDetailContext);\n const { roots, traceDuration, traceStart, timed } = useMemo(() => {\n const r = buildForest(spans);\n const timedSpans = spans.filter(isTimed);\n const start = timedSpans.length\n ? Math.min(...timedSpans.map((s) => s.startMs))\n : 0;\n const end = timedSpans.length\n ? Math.max(...timedSpans.map((s) => s.startMs + s.durationMs))\n : 1;\n return {\n roots: r,\n traceStart: start,\n traceDuration: Math.max(end - start, 1),\n timed: timedSpans.length > 0,\n };\n }, [spans]);\n\n const [collapsed, setCollapsed] = useState<Set<string>>(() => {\n const init = new Set<string>();\n const walk = (n: Node): void => {\n if (n.depth >= defaultCollapsedDepth && n.children.length > 0) {\n init.add(n.span.id);\n }\n n.children.forEach(walk);\n };\n roots.forEach(walk);\n return init;\n });\n const [focusedId, setFocusedId] = useState<string | undefined>(undefined);\n\n const visible = useMemo(() => flatten(roots, collapsed), [roots, collapsed]);\n\n // One tab stop: the row last focused, else the selected row, else the first.\n const rowIndexOf = (id: string | undefined): number =>\n id === undefined ? -1 : visible.findIndex((r) => r.node.span.id === id);\n const focusedIndex = rowIndexOf(focusedId);\n const tabStopIndex =\n focusedIndex >= 0 ? focusedIndex : Math.max(rowIndexOf(selectedId), 0);\n\n const resizePersistKey =\n persistKey !== undefined\n ? `aegis-trace-tree-name-w:${persistKey}`\n : undefined;\n\n const {\n width: internalWidth,\n handleProps,\n isDragging,\n } = useResizable({\n initialWidth: defaultNameColumnWidth,\n minWidth: NAME_COL_MIN,\n maxWidth: NAME_COL_MAX,\n side: 'left',\n persistKey: resizePersistKey,\n });\n\n const effectiveWidth = nameColumnWidth ?? internalWidth;\n\n useEffect(() => {\n if (nameColumnWidth === undefined) {\n onNameColumnWidthChange?.(internalWidth);\n }\n }, [internalWidth, nameColumnWidth, onNameColumnWidthChange]);\n\n const toggle = (id: string): void => {\n setCollapsed((prev) => {\n const next = new Set(prev);\n if (next.has(id)) {\n next.delete(id);\n } else {\n next.add(id);\n }\n return next;\n });\n };\n\n const focusRow = (index: number): void => {\n if (index < 0 || index >= visible.length) {\n return;\n }\n setFocusedId(visible[index].node.span.id);\n const row = treeRef.current?.querySelectorAll<HTMLElement>(\n ':scope > [role=\"treeitem\"]',\n )[index];\n row?.focus();\n };\n\n const handleRowKeyDown = (\n event: KeyboardEvent<HTMLDivElement>,\n index: number,\n ): void => {\n const { node } = visible[index];\n const expandable = node.children.length > 0;\n const expanded = expandable && !collapsed.has(node.span.id);\n switch (event.key) {\n case 'ArrowDown':\n focusRow(index + 1);\n break;\n case 'ArrowUp':\n focusRow(index - 1);\n break;\n case 'Home':\n focusRow(0);\n break;\n case 'End':\n focusRow(visible.length - 1);\n break;\n case 'ArrowRight':\n if (expanded) {\n focusRow(index + 1);\n } else if (expandable) {\n toggle(node.span.id);\n }\n break;\n case 'ArrowLeft':\n if (expanded) {\n toggle(node.span.id);\n } else if (node.parent !== null) {\n const parent = node.parent;\n focusRow(visible.findIndex((r) => r.node === parent));\n }\n break;\n // The link's click reaches the row, which selects it too.\n case 'Enter':\n if (node.span.to !== undefined) {\n event.currentTarget\n .querySelector<HTMLElement>('.aegis-trace-tree__name a')\n ?.click();\n } else {\n onSelect?.(node.span);\n }\n break;\n case ' ':\n onSelect?.(node.span);\n break;\n default:\n return;\n }\n event.preventDefault();\n };\n\n const handleRowClick = (event: MouseEvent<HTMLDivElement>, node: Node) => {\n if (\n event.target instanceof Element &&\n event.target.closest('[data-trace-tree-caret]') !== null\n ) {\n toggle(node.span.id);\n return;\n }\n // A modified click opens the name's link elsewhere and leaves this\n // page's selection alone.\n if (\n (event.ctrlKey || event.metaKey || event.shiftKey) &&\n event.target instanceof Element &&\n event.target.closest('.aegis-trace-tree__name a') !== null\n ) {\n return;\n }\n onSelect?.(node.span);\n };\n\n const cls = [\n 'aegis-trace-tree',\n isDragging ? 'aegis-trace-tree--dragging' : '',\n wrapName ? 'aegis-trace-tree--wrap' : '',\n timed ? '' : 'aegis-trace-tree--untimed',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const rootStyle = {\n ...style,\n '--aegis-trace-tree-name-w': `${String(effectiveWidth)}px`,\n } as CSSProperties;\n\n return (\n <div ref={wrapRef} className={cls} style={rootStyle} {...agentAttrs}>\n <div\n ref={treeRef}\n className=\"aegis-trace-tree__rows\"\n role=\"tree\"\n aria-label={ariaLabel ?? strings.traceSpans}\n >\n {visible.map(({ node, position, siblings }, index) => {\n const span = node.span;\n const hasChildren = node.children.length > 0;\n const isCollapsed = collapsed.has(span.id);\n const isSelected = selectedId === span.id;\n const rowCls = [\n 'aegis-trace-tree__row',\n span.muted ? 'aegis-trace-tree__row--muted' : '',\n isSelected ? 'aegis-trace-tree__row--selected' : '',\n span.status === 'error' ? 'aegis-trace-tree__row--error' : '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const timing = isTimed(span)\n ? strings.traceSpanTiming(\n formatDuration(span.startMs - traceStart),\n formatDuration(span.durationMs),\n )\n : '';\n const kind = span.kind ?? '';\n const meta = [timing, kind].filter(Boolean).join(' · ');\n const noteId = `${idPrefix}-note-${String(index)}`;\n const hasNote = span.note !== undefined && span.note !== null;\n const name = wrapName ? breakAtSeparators(span.name) : span.name;\n const tooltipContent = (\n <div className=\"aegis-trace-tree__tooltip\">\n <div className=\"aegis-trace-tree__tooltip-name\">{span.name}</div>\n {meta && (\n <div className=\"aegis-trace-tree__tooltip-meta\">{meta}</div>\n )}\n </div>\n );\n\n return (\n <Fragment key={span.id}>\n <div\n ref={isSelected ? selection?.placeRow : undefined}\n className={rowCls}\n role=\"treeitem\"\n aria-label={span.ariaLabel}\n aria-describedby={hasNote ? noteId : undefined}\n aria-level={node.depth + 1}\n aria-posinset={position}\n aria-setsize={siblings}\n aria-expanded={hasChildren ? !isCollapsed : undefined}\n aria-selected={isSelected ? true : undefined}\n tabIndex={index === tabStopIndex ? 0 : -1}\n onClick={(event) => {\n handleRowClick(event, node);\n }}\n onKeyDown={(event) => {\n handleRowKeyDown(event, index);\n }}\n onFocus={() => {\n setFocusedId(span.id);\n }}\n >\n <div\n className=\"aegis-trace-tree__label\"\n style={\n {\n '--depth': node.depth,\n } as CSSProperties\n }\n >\n <span\n className={\n hasChildren\n ? 'aegis-trace-tree__caret'\n : 'aegis-trace-tree__caret aegis-trace-tree__caret--leaf'\n }\n aria-hidden=\"true\"\n data-trace-tree-caret={hasChildren ? '' : undefined}\n >\n {hasChildren ? (isCollapsed ? '▸' : '▾') : null}\n </span>\n <StatusDot tone={statusTone(span.status)} size={6} />\n {span.kind ? (\n <Chip tone=\"ghost\" className=\"aegis-trace-tree__kind\">\n {span.kind}\n </Chip>\n ) : null}\n <Tooltip\n placement=\"topLeft\"\n mouseEnterDelay={0.3}\n styles={{ root: { maxWidth: 'var(--tooltip-max-width)' } }}\n title={tooltipContent}\n >\n <span className=\"aegis-trace-tree__name\">\n {span.to === undefined ? (\n name\n ) : (\n <Link\n to={span.to}\n className=\"aegis-trace-tree__link\"\n tabIndex={-1}\n >\n {name}\n </Link>\n )}\n </span>\n </Tooltip>\n {hasNote ? (\n <span\n id={noteId}\n className=\"aegis-trace-tree__note\"\n aria-hidden=\"true\"\n >\n {span.note}\n </span>\n ) : null}\n </div>\n {timed && (\n <>\n <span\n className=\"aegis-trace-tree__gutter\"\n aria-hidden=\"true\"\n />\n <div\n className=\"aegis-trace-tree__bar-track\"\n aria-hidden=\"true\"\n >\n {isTimed(span) && (\n <span\n className=\"aegis-trace-tree__bar\"\n style={{\n left: `${(((span.startMs - traceStart) / traceDuration) * 100).toString()}%`,\n width: `${Math.max((span.durationMs / traceDuration) * 100, 0.5).toString()}%`,\n }}\n />\n )}\n </div>\n <div className=\"aegis-trace-tree__duration\">\n {span.durationMs !== undefined &&\n formatDuration(span.durationMs)}\n </div>\n </>\n )}\n </div>\n {isSelected ? selection?.inline : null}\n </Fragment>\n );\n })}\n </div>\n {timed && (\n <div\n {...handleProps}\n className=\"aegis-trace-tree__handle\"\n aria-label={strings.resizeNameColumn}\n />\n )}\n </div>\n );\n}\n"],"names":["NAME_COL_MIN","NAME_COL_MAX","NAME_COL_DEFAULT","isTimed","span","sortByStart","nodes","n","a","b","buildForest","spans","byId","roots","node","pid","parent","placed","place","depth","child","root","climbed","onCycle","cut","c","sortRec","flatten","collapsed","out","index","TraceTree","selectedId","onSelect","defaultCollapsedDepth","ariaLabel","Link","DefaultLink","className","style","surface","nameColumnWidth","defaultNameColumnWidth","onNameColumnWidthChange","persistKey","wrapName","wrapRef","useRef","treeRef","agentAttrs","usePrimitiveSurface","strings","useStrings","idPrefix","useId","selection","useContext","SelectedRowDetailContext","traceDuration","traceStart","timed","useMemo","r","timedSpans","start","s","end","setCollapsed","useState","init","walk","focusedId","setFocusedId","visible","rowIndexOf","id","focusedIndex","tabStopIndex","resizePersistKey","internalWidth","handleProps","isDragging","useResizable","effectiveWidth","useEffect","toggle","prev","next","focusRow","handleRowKeyDown","event","expandable","expanded","handleRowClick","cls","rootStyle","jsxs","jsx","position","siblings","hasChildren","isCollapsed","isSelected","rowCls","timing","formatDuration","kind","meta","noteId","hasNote","name","breakAtSeparators","tooltipContent","Fragment","StatusDot","statusTone","Chip","Tooltip"],"mappings":";;;;;;;;;;;;;;AAsIA,MAAMA,KAAe,KACfC,KAAe,KACfC,KAAmB;AAEzB,SAASC,EAAQC,GAAoC;AACnD,SAAOA,EAAK,YAAY,UAAaA,EAAK,eAAe;AAC3D;AAEA,SAASC,EAAYC,GAAqB;AACxC,EAAIA,EAAM,MAAM,CAACC,MAAMA,EAA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A;AAAA,YAGHkG,IAAa/C,GAAW,SAAS;AAAA,UAAA,EAAA,GAzGrBnD,EAAK,EA0GpB;AAAA,QAEJ,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,IAEFwD,KACC,gBAAAqC;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAGjB;AAAA,QACJ,WAAU;AAAA,QACV,cAAY7B,EAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EACtB,GAEJ;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"TraceTree.js","sources":["../../../src/components/ui/TraceTree.tsx"],"sourcesContent":["import {\n type CSSProperties,\n Fragment,\n type KeyboardEvent,\n type MouseEvent,\n type ReactNode,\n useContext,\n useEffect,\n useId,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { Tooltip } from 'antd';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport { useResizable } from '../../hooks/useResizable';\nimport { breakAtSeparators } from '../../lib/breakAtSeparators';\nimport type { ChartColor } from '../../lib/chart';\nimport { formatDuration } from '../../lib/format';\nimport { useStrings } from '../../locale';\nimport { Chip } from './Chip';\nimport { StatusDot } from './StatusDot';\nimport './TraceTree.css';\nimport { DefaultLink, type LinkComponent } from './linkComponent';\nimport { SelectedRowDetailContext } from './selectedRowDetail';\nimport { statusTone } from './traceStatus';\n\nexport type TraceTreeSurface = PrimitiveSurface<TraceSpan[]>;\n\nexport interface TraceSpan {\n id: string;\n parentId?: string | null;\n name: string;\n /**\n * Milliseconds since trace start. Leave `startMs` and `durationMs` out for a\n * span whose time is not recorded: its row draws no bar, and siblings that are\n * not all timed keep the order they are given in.\n */\n startMs?: number;\n durationMs?: number;\n status?: 'ok' | 'error' | 'unset';\n /**\n * The span's category: a chip on the left of its `TraceTree` row, and,\n * without `color`, the colour of its `TimelineChart` bar (one per kind).\n */\n kind?: string;\n /**\n * The colour of its `TimelineChart` bar. Set it from a stable key when\n * `kind` is translated, so the colour does not follow the language.\n */\n color?: ChartColor;\n /** Drawn at the end of the span's `TimelineChart` bar. */\n badge?: ReactNode;\n /**\n * Drawn at the end of the span's name in its `TraceTree` row, e.g. a change\n * mark or a count. It is the row's accessible description, not part of its\n * name. Give a Chip in it `inverted` while the span is selected.\n */\n note?: ReactNode;\n /**\n * Draws the span's `TraceTree` row in muted ink, e.g. for a span that only\n * the trace it is compared with has.\n */\n muted?: boolean;\n /** The accessible name of the span's `TraceTree` row. Default: the row's text. */\n ariaLabel?: string;\n /**\n * Makes the span's name in its `TraceTree` row a link to this\n * destination. The row stays the tree's tab stop: the link is not a tab\n * stop, and Enter on the row follows it.\n */\n to?: string;\n /** Free-form attributes — only used by the inspector pane, not by the row itself. */\n attrs?: Record<string, unknown>;\n}\n\ninterface TimedSpan extends TraceSpan {\n startMs: number;\n durationMs: number;\n}\n\ninterface TraceTreeProps {\n /**\n * The spans in any order. A span whose `parentId` names no span is a root;\n * spans whose parents form a cycle are cut at one span of the cycle, which\n * becomes a root.\n */\n spans: TraceSpan[];\n /**\n * The selected span. Its row is revealed: when the tree mounts, and each\n * time `selectedId` changes, the rows it hangs under expand, so a tree\n * opened with `defaultCollapsedDepth` shows the path to it. Rows the\n * viewer collapses later stay collapsed.\n */\n selectedId?: string;\n onSelect?: (span: TraceSpan) => void;\n /**\n * Rows at this depth or deeper start collapsed when they have children.\n * Roots are depth 0, so `0` shows only the roots and `1` the roots and\n * their children. Applies to the spans present when the tree mounts.\n * Default: every row expanded.\n */\n defaultCollapsedDepth?: number;\n /** The tree's accessible name. Default: the locale's `traceSpans`. */\n ariaLabel?: string;\n /** Renders the names of spans with `to`. Defaults to an `<a href>`; routed apps pass their Link adapter. */\n linkComponent?: LinkComponent;\n className?: string;\n style?: CSSProperties;\n surface?: TraceTreeSurface;\n nameColumnWidth?: number;\n defaultNameColumnWidth?: number;\n onNameColumnWidthChange?: (w: number) => void;\n persistKey?: string;\n /**\n * Wraps a long name over lines instead of truncating it: between words and\n * after `_ . - / :`, and inside a word only when it cannot fit a line. The\n * name keeps its runs of spaces, its tabs and its line breaks.\n */\n wrapName?: boolean;\n}\n\ninterface Node {\n span: TraceSpan;\n parent: Node | null;\n children: Node[];\n depth: number;\n}\n\ninterface VisibleRow {\n node: Node;\n /** 1-based position among its siblings. */\n position: number;\n siblings: number;\n}\n\nconst NAME_COL_MIN = 180;\nconst NAME_COL_MAX = 700;\nconst NAME_COL_DEFAULT = 320;\n\nfunction isTimed(span: TraceSpan): span is TimedSpan {\n return span.startMs !== undefined && span.durationMs !== undefined;\n}\n\nfunction sortByStart(nodes: Node[]): void {\n if (nodes.every((n) => n.span.startMs !== undefined)) {\n nodes.sort((a, b) => (a.span.startMs ?? 0) - (b.span.startMs ?? 0));\n }\n}\n\nfunction buildForest(spans: TraceSpan[]): Node[] {\n const byId = new Map<string, Node>();\n spans.forEach((span) => {\n byId.set(span.id, { span, parent: null, children: [], depth: 0 });\n });\n const roots: Node[] = [];\n byId.forEach((node) => {\n const pid = node.span.parentId;\n const parent = pid ? byId.get(pid) : undefined;\n if (parent) {\n node.parent = parent;\n parent.children.push(node);\n } else {\n roots.push(node);\n }\n });\n\n const placed = new Set<Node>();\n const place = (node: Node, depth: number): void => {\n placed.add(node);\n node.depth = depth;\n node.children.forEach((child) => {\n place(child, depth + 1);\n });\n };\n roots.forEach((root) => {\n place(root, 0);\n });\n // A span no root reaches hangs below a cycle of parents. Climbing from it\n // comes back round to a span on the cycle, which becomes a root.\n byId.forEach((node) => {\n if (placed.has(node)) {\n return;\n }\n const climbed = new Set<Node>();\n let onCycle = node;\n while (onCycle.parent !== null && !climbed.has(onCycle)) {\n climbed.add(onCycle);\n onCycle = onCycle.parent;\n }\n const cut = onCycle;\n if (cut.parent !== null) {\n cut.parent.children = cut.parent.children.filter((c) => c !== cut);\n cut.parent = null;\n }\n roots.push(cut);\n place(cut, 0);\n });\n\n const sortRec = (n: Node): void => {\n sortByStart(n.children);\n n.children.forEach(sortRec);\n };\n sortByStart(roots);\n roots.forEach(sortRec);\n return roots;\n}\n\nfunction findNode(roots: Node[], id: string): Node | undefined {\n for (const root of roots) {\n if (root.span.id === id) {\n return root;\n }\n const found = findNode(root.children, id);\n if (found) {\n return found;\n }\n }\n return undefined;\n}\n\n/** `collapsed` without the ancestors of the row `id`, or `collapsed` itself when none of them is collapsed. */\nfunction revealRow(\n roots: Node[],\n collapsed: Set<string>,\n id: string,\n): Set<string> {\n let next = collapsed;\n for (\n let ancestor = findNode(roots, id)?.parent ?? null;\n ancestor !== null;\n ancestor = ancestor.parent\n ) {\n if (next.has(ancestor.span.id)) {\n if (next === collapsed) {\n next = new Set(collapsed);\n }\n next.delete(ancestor.span.id);\n }\n }\n return next;\n}\n\nfunction flatten(\n nodes: Node[],\n collapsed: Set<string>,\n out: VisibleRow[] = [],\n): VisibleRow[] {\n nodes.forEach((node, index) => {\n out.push({ node, position: index + 1, siblings: nodes.length });\n if (!collapsed.has(node.span.id)) {\n flatten(node.children, collapsed, out);\n }\n });\n return out;\n}\n\nexport function TraceTree({\n spans,\n selectedId,\n onSelect,\n defaultCollapsedDepth = Number.POSITIVE_INFINITY,\n ariaLabel,\n linkComponent: Link = DefaultLink,\n className,\n style,\n surface,\n nameColumnWidth,\n defaultNameColumnWidth = NAME_COL_DEFAULT,\n onNameColumnWidthChange,\n persistKey,\n wrapName = false,\n}: TraceTreeProps) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const treeRef = useRef<HTMLDivElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, spans, 'tree', wrapRef);\n const strings = useStrings();\n const idPrefix = useId();\n const selection = useContext(SelectedRowDetailContext);\n const { roots, traceDuration, traceStart, timed } = useMemo(() => {\n const r = buildForest(spans);\n const timedSpans = spans.filter(isTimed);\n const start = timedSpans.length\n ? Math.min(...timedSpans.map((s) => s.startMs))\n : 0;\n const end = timedSpans.length\n ? Math.max(...timedSpans.map((s) => s.startMs + s.durationMs))\n : 1;\n return {\n roots: r,\n traceStart: start,\n traceDuration: Math.max(end - start, 1),\n timed: timedSpans.length > 0,\n };\n }, [spans]);\n\n const [collapsed, setCollapsed] = useState<Set<string>>(() => {\n const init = new Set<string>();\n const walk = (n: Node): void => {\n if (n.depth >= defaultCollapsedDepth && n.children.length > 0) {\n init.add(n.span.id);\n }\n n.children.forEach(walk);\n };\n roots.forEach(walk);\n return selectedId === undefined ? init : revealRow(roots, init, selectedId);\n });\n // The selection the tree last revealed, so a new selectedId is revealed\n // once, before it is painted, and a span that arrives later is revealed\n // when it arrives.\n const [revealed, setRevealed] = useState<string | undefined>(() =>\n selectedId !== undefined && findNode(roots, selectedId)\n ? selectedId\n : undefined,\n );\n if (selectedId === undefined && revealed !== undefined) {\n setRevealed(undefined);\n }\n if (\n selectedId !== undefined &&\n selectedId !== revealed &&\n findNode(roots, selectedId)\n ) {\n setRevealed(selectedId);\n const next = revealRow(roots, collapsed, selectedId);\n if (next !== collapsed) {\n setCollapsed(next);\n }\n }\n const [focusedId, setFocusedId] = useState<string | undefined>(undefined);\n\n const visible = useMemo(() => flatten(roots, collapsed), [roots, collapsed]);\n\n // One tab stop: the row last focused, else the selected row, else the first.\n const rowIndexOf = (id: string | undefined): number =>\n id === undefined ? -1 : visible.findIndex((r) => r.node.span.id === id);\n const focusedIndex = rowIndexOf(focusedId);\n const tabStopIndex =\n focusedIndex >= 0 ? focusedIndex : Math.max(rowIndexOf(selectedId), 0);\n\n const resizePersistKey =\n persistKey !== undefined\n ? `aegis-trace-tree-name-w:${persistKey}`\n : undefined;\n\n const {\n width: internalWidth,\n handleProps,\n isDragging,\n } = useResizable({\n initialWidth: defaultNameColumnWidth,\n minWidth: NAME_COL_MIN,\n maxWidth: NAME_COL_MAX,\n side: 'left',\n persistKey: resizePersistKey,\n });\n\n const effectiveWidth = nameColumnWidth ?? internalWidth;\n\n useEffect(() => {\n if (nameColumnWidth === undefined) {\n onNameColumnWidthChange?.(internalWidth);\n }\n }, [internalWidth, nameColumnWidth, onNameColumnWidthChange]);\n\n const toggle = (id: string): void => {\n setCollapsed((prev) => {\n const next = new Set(prev);\n if (next.has(id)) {\n next.delete(id);\n } else {\n next.add(id);\n }\n return next;\n });\n };\n\n const focusRow = (index: number): void => {\n if (index < 0 || index >= visible.length) {\n return;\n }\n setFocusedId(visible[index].node.span.id);\n const row = treeRef.current?.querySelectorAll<HTMLElement>(\n ':scope > [role=\"treeitem\"]',\n )[index];\n row?.focus();\n };\n\n const handleRowKeyDown = (\n event: KeyboardEvent<HTMLDivElement>,\n index: number,\n ): void => {\n const { node } = visible[index];\n const expandable = node.children.length > 0;\n const expanded = expandable && !collapsed.has(node.span.id);\n switch (event.key) {\n case 'ArrowDown':\n focusRow(index + 1);\n break;\n case 'ArrowUp':\n focusRow(index - 1);\n break;\n case 'Home':\n focusRow(0);\n break;\n case 'End':\n focusRow(visible.length - 1);\n break;\n case 'ArrowRight':\n if (expanded) {\n focusRow(index + 1);\n } else if (expandable) {\n toggle(node.span.id);\n }\n break;\n case 'ArrowLeft':\n if (expanded) {\n toggle(node.span.id);\n } else if (node.parent !== null) {\n const parent = node.parent;\n focusRow(visible.findIndex((r) => r.node === parent));\n }\n break;\n // The link's click reaches the row, which selects it too.\n case 'Enter':\n if (node.span.to !== undefined) {\n event.currentTarget\n .querySelector<HTMLElement>('.aegis-trace-tree__name a')\n ?.click();\n } else {\n onSelect?.(node.span);\n }\n break;\n case ' ':\n onSelect?.(node.span);\n break;\n default:\n return;\n }\n event.preventDefault();\n };\n\n const handleRowClick = (event: MouseEvent<HTMLDivElement>, node: Node) => {\n if (\n event.target instanceof Element &&\n event.target.closest('[data-trace-tree-caret]') !== null\n ) {\n toggle(node.span.id);\n return;\n }\n // A modified click opens the name's link elsewhere and leaves this\n // page's selection alone.\n if (\n (event.ctrlKey || event.metaKey || event.shiftKey) &&\n event.target instanceof Element &&\n event.target.closest('.aegis-trace-tree__name a') !== null\n ) {\n return;\n }\n onSelect?.(node.span);\n };\n\n const cls = [\n 'aegis-trace-tree',\n isDragging ? 'aegis-trace-tree--dragging' : '',\n wrapName ? 'aegis-trace-tree--wrap' : '',\n timed ? '' : 'aegis-trace-tree--untimed',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const rootStyle = {\n ...style,\n '--aegis-trace-tree-name-w': `${String(effectiveWidth)}px`,\n } as CSSProperties;\n\n return (\n <div ref={wrapRef} className={cls} style={rootStyle} {...agentAttrs}>\n <div\n ref={treeRef}\n className=\"aegis-trace-tree__rows\"\n role=\"tree\"\n aria-label={ariaLabel ?? strings.traceSpans}\n >\n {visible.map(({ node, position, siblings }, index) => {\n const span = node.span;\n const hasChildren = node.children.length > 0;\n const isCollapsed = collapsed.has(span.id);\n const isSelected = selectedId === span.id;\n const rowCls = [\n 'aegis-trace-tree__row',\n span.muted ? 'aegis-trace-tree__row--muted' : '',\n isSelected ? 'aegis-trace-tree__row--selected' : '',\n span.status === 'error' ? 'aegis-trace-tree__row--error' : '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const timing = isTimed(span)\n ? strings.traceSpanTiming(\n formatDuration(span.startMs - traceStart),\n formatDuration(span.durationMs),\n )\n : '';\n const kind = span.kind ?? '';\n const meta = [timing, kind].filter(Boolean).join(' · ');\n const noteId = `${idPrefix}-note-${String(index)}`;\n const hasNote = span.note !== undefined && span.note !== null;\n const name = wrapName ? breakAtSeparators(span.name) : span.name;\n const tooltipContent = (\n <div className=\"aegis-trace-tree__tooltip\">\n <div className=\"aegis-trace-tree__tooltip-name\">{span.name}</div>\n {meta && (\n <div className=\"aegis-trace-tree__tooltip-meta\">{meta}</div>\n )}\n </div>\n );\n\n return (\n <Fragment key={span.id}>\n <div\n ref={isSelected ? selection?.placeRow : undefined}\n className={rowCls}\n role=\"treeitem\"\n aria-label={span.ariaLabel}\n aria-describedby={hasNote ? noteId : undefined}\n aria-level={node.depth + 1}\n aria-posinset={position}\n aria-setsize={siblings}\n aria-expanded={hasChildren ? !isCollapsed : undefined}\n aria-selected={isSelected ? true : undefined}\n tabIndex={index === tabStopIndex ? 0 : -1}\n onClick={(event) => {\n handleRowClick(event, node);\n }}\n onKeyDown={(event) => {\n handleRowKeyDown(event, index);\n }}\n onFocus={() => {\n setFocusedId(span.id);\n }}\n >\n <div\n className=\"aegis-trace-tree__label\"\n style={\n {\n '--depth': node.depth,\n } as CSSProperties\n }\n >\n <span\n className={\n hasChildren\n ? 'aegis-trace-tree__caret'\n : 'aegis-trace-tree__caret aegis-trace-tree__caret--leaf'\n }\n aria-hidden=\"true\"\n data-trace-tree-caret={hasChildren ? '' : undefined}\n >\n {hasChildren ? (isCollapsed ? '▸' : '▾') : null}\n </span>\n <StatusDot tone={statusTone(span.status)} size={6} />\n {span.kind ? (\n <Chip tone=\"ghost\" className=\"aegis-trace-tree__kind\">\n {span.kind}\n </Chip>\n ) : null}\n <Tooltip\n placement=\"topLeft\"\n mouseEnterDelay={0.3}\n styles={{ root: { maxWidth: 'var(--tooltip-max-width)' } }}\n title={tooltipContent}\n >\n <span className=\"aegis-trace-tree__name\">\n {span.to === undefined ? (\n name\n ) : (\n <Link\n to={span.to}\n className=\"aegis-trace-tree__link\"\n tabIndex={-1}\n >\n {name}\n </Link>\n )}\n </span>\n </Tooltip>\n {hasNote ? (\n <span\n id={noteId}\n className=\"aegis-trace-tree__note\"\n aria-hidden=\"true\"\n >\n {span.note}\n </span>\n ) : null}\n </div>\n {timed && (\n <>\n <span\n className=\"aegis-trace-tree__gutter\"\n aria-hidden=\"true\"\n />\n <div\n className=\"aegis-trace-tree__bar-track\"\n aria-hidden=\"true\"\n >\n {isTimed(span) && (\n <span\n className=\"aegis-trace-tree__bar\"\n style={{\n left: `${(((span.startMs - traceStart) / traceDuration) * 100).toString()}%`,\n width: `${Math.max((span.durationMs / traceDuration) * 100, 0.5).toString()}%`,\n }}\n />\n )}\n </div>\n <div className=\"aegis-trace-tree__duration\">\n {span.durationMs !== undefined &&\n formatDuration(span.durationMs)}\n </div>\n </>\n )}\n </div>\n {isSelected ? selection?.inline : null}\n </Fragment>\n );\n })}\n </div>\n {timed && (\n <div\n {...handleProps}\n className=\"aegis-trace-tree__handle\"\n aria-label={strings.resizeNameColumn}\n />\n )}\n </div>\n );\n}\n"],"names":["NAME_COL_MIN","NAME_COL_MAX","NAME_COL_DEFAULT","isTimed","span","sortByStart","nodes","n","a","b","buildForest","spans","byId","roots","node","pid","parent","placed","place","depth","child","root","climbed","onCycle","cut","c","sortRec","findNode","id","found","revealRow","collapsed","next","ancestor","flatten","out","index","TraceTree","selectedId","onSelect","defaultCollapsedDepth","ariaLabel","Link","DefaultLink","className","style","surface","nameColumnWidth","defaultNameColumnWidth","onNameColumnWidthChange","persistKey","wrapName","wrapRef","useRef","treeRef","agentAttrs","usePrimitiveSurface","strings","useStrings","idPrefix","useId","selection","useContext","SelectedRowDetailContext","traceDuration","traceStart","timed","useMemo","r","timedSpans","start","s","end","setCollapsed","useState","init","walk","revealed","setRevealed","focusedId","setFocusedId","visible","rowIndexOf","focusedIndex","tabStopIndex","resizePersistKey","internalWidth","handleProps","isDragging","useResizable","effectiveWidth","useEffect","toggle","prev","focusRow","handleRowKeyDown","event","expandable","expanded","handleRowClick","cls","rootStyle","jsxs","jsx","position","siblings","hasChildren","isCollapsed","isSelected","rowCls","timing","formatDuration","kind","meta","noteId","hasNote","name","breakAtSeparators","tooltipContent","Fragment","StatusDot","statusTone","Chip","Tooltip"],"mappings":";;;;;;;;;;;;;;AA6IA,MAAMA,KAAe,KACfC,KAAe,KACfC,KAAmB;AAEzB,SAASC,EAAQC,GAAoC;AACnD,SAAOA,EAAK,YAAY,UAAaA,EAAK,eAAe;AAC3D;AAEA,SAASC,GAAYC,GAAqB;AACxC,EAAIA,EAAM,MAAM,CAACC,MAAMA,EAAE,KAAK,YAAY,MAAS,KACjDD,EAAM,KAAK,CAACE,GAAGC,OAAOD,EAAE,KAAK,WAAW,MAAMC,EAAE,KAAK,WAAW,EAAE;AAEtE;AAEA,SAASC,GAAYC,GAA4B;AAC/C,QAAMC,wBAAW,IAAA;AACjB,EAAAD,EAAM,QAAQ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AAAoC,EAAAiB,IAAA,EACE,UAAA;AAAA,oBAAA,gBAAAhB;AAAA,sBAAC;AAAA,sBAAA;AAAA,wBACC,WAAU;AAAA,wBACV,eAAY;AAAA,sBAAA;AAAA,oBAAA;AAAA,oBAEd,gBAAAA;AAAA,sBAAC;AAAA,sBAAA;AAAA,wBACC,WAAU;AAAA,wBACV,eAAY;AAAA,wBAEX,UAAApG,EAAQC,CAAI,KACX,gBAAAmG;AAAA,0BAAC;AAAA,0BAAA;AAAA,4BACC,WAAU;AAAA,4BACV,OAAO;AAAA,8BACL,MAAM,KAAMnG,EAAK,UAAU6D,KAAcD,IAAiB,KAAK,UAAU;AAAA,8BACzE,OAAO,GAAG,KAAK,IAAK5D,EAAK,aAAa4D,IAAiB,KAAK,GAAG,EAAE,SAAA,CAAU;AAAA,4BAAA;AAAA,0BAC7E;AAAA,wBAAA;AAAA,sBACF;AAAA,oBAAA;AAAA,oBAGJ,gBAAAuC,EAAC,OAAA,EAAI,WAAU,8BACZ,UAAAnG,EAAK,eAAe,UACnB2G,EAAe3G,EAAK,UAAU,EAAA,CAClC;AAAA,kBAAA,EAAA,CACF;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAGHwG,IAAa/C,GAAW,SAAS;AAAA,UAAA,EAAA,GAzGrBzD,EAAK,EA0GpB;AAAA,QAEJ,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,IAEF8D,KACC,gBAAAqC;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAGhB;AAAA,QACJ,WAAU;AAAA,QACV,cAAY9B,EAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EACtB,GAEJ;AAEJ;"}
|
|
@@ -25,6 +25,8 @@ export { MetricLabel } from './MetricLabel';
|
|
|
25
25
|
export { MonoValue } from './MonoValue';
|
|
26
26
|
export type { MonoValueSurface } from './MonoValue';
|
|
27
27
|
export { StatusDot } from './StatusDot';
|
|
28
|
+
export { RollingValue } from './RollingValue';
|
|
29
|
+
export type { RollingValueProps } from './RollingValue';
|
|
28
30
|
export { Terminal } from './Terminal';
|
|
29
31
|
export type { TerminalLine, LogLevel, TerminalSurface } from './Terminal';
|
|
30
32
|
export { BlastRadiusBar } from './BlastRadiusBar';
|
|
@@ -213,7 +215,9 @@ export { TimeRangePicker } from './TimeRangePicker';
|
|
|
213
215
|
export type { TimeRangePickerProps } from './TimeRangePicker';
|
|
214
216
|
export { ServiceMap } from './ServiceMap';
|
|
215
217
|
export type { ServiceMapDirection, ServiceMapEdge, ServiceMapGroup, ServiceMapNode, ServiceMapProps, ServiceMapStatus, } from './ServiceMap';
|
|
218
|
+
export { RegionMap } from './RegionMap';
|
|
219
|
+
export type { RegionMapProps, RegionMapRegion, RegionMapStatus, } from './RegionMap';
|
|
216
220
|
export { CommitGraph } from './CommitGraph';
|
|
217
|
-
export type { CommitGraphColumn, CommitGraphCommit, CommitGraphLane, CommitGraphProps, } from './CommitGraph';
|
|
221
|
+
export type { CommitGraphCellPart, CommitGraphColumn, CommitGraphCommit, CommitGraphLane, CommitGraphPartsCell, CommitGraphProps, } from './CommitGraph';
|
|
218
222
|
export { SavedQueryBar } from './SavedQueryBar';
|
|
219
223
|
export type { SavedQueryBarProps } from './SavedQueryBar';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={ok:"ink",active:"ink",warn:"caution",error:"warning",muted:"muted"};function r(t,n){const e=o[t];return{tone:n&&e==="ink"?"inverted":e,pulse:t==="active"}}exports.workStatusDot=r;
|
|
2
|
+
//# sourceMappingURL=workStatus.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workStatus.cjs","sources":["../../../src/components/ui/workStatus.ts"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { StatusDot } from './StatusDot';\n\n/**\n * The state of a unit of work, drawn as a dot. `active` is work in progress,\n * e.g. a running task: the ink dot pulses. `warn` is the caution ink, `error`\n * the anomaly red.\n */\nexport type WorkStatus = 'ok' | 'active' | 'warn' | 'error' | 'muted';\n\ntype DotTone = NonNullable<ComponentProps<typeof StatusDot>['tone']>;\n\nconst DOT_TONE: Record<WorkStatus, DotTone> = {\n ok: 'ink',\n active: 'ink',\n warn: 'caution',\n error: 'warning',\n muted: 'muted',\n};\n\n/** The StatusDot props for a status, on an inverted surface when selected. */\nexport function workStatusDot(\n status: WorkStatus,\n selected: boolean,\n): { tone: DotTone; pulse: boolean } {\n const tone = DOT_TONE[status];\n return {\n tone: selected && tone === 'ink' ? 'inverted' : tone,\n pulse: status === 'active',\n };\n}\n"],"names":["DOT_TONE","workStatusDot","status","selected","tone"],"mappings":"gFAaA,MAAMA,EAAwC,CAC5C,GAAI,MACJ,OAAQ,MACR,KAAM,UACN,MAAO,UACP,MAAO,OACT,EAGO,SAASC,EACdC,EACAC,EACmC,CACnC,MAAMC,EAAOJ,EAASE,CAAM,EAC5B,MAAO,CACL,KAAMC,GAAYC,IAAS,MAAQ,WAAaA,EAChD,MAAOF,IAAW,QAAA,CAEtB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { StatusDot } from './StatusDot';
|
|
3
|
+
/**
|
|
4
|
+
* The state of a unit of work, drawn as a dot. `active` is work in progress,
|
|
5
|
+
* e.g. a running task: the ink dot pulses. `warn` is the caution ink, `error`
|
|
6
|
+
* the anomaly red.
|
|
7
|
+
*/
|
|
8
|
+
export type WorkStatus = 'ok' | 'active' | 'warn' | 'error' | 'muted';
|
|
9
|
+
type DotTone = NonNullable<ComponentProps<typeof StatusDot>['tone']>;
|
|
10
|
+
/** The StatusDot props for a status, on an inverted surface when selected. */
|
|
11
|
+
export declare function workStatusDot(status: WorkStatus, selected: boolean): {
|
|
12
|
+
tone: DotTone;
|
|
13
|
+
pulse: boolean;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
ok: "ink",
|
|
3
|
+
active: "ink",
|
|
4
|
+
warn: "caution",
|
|
5
|
+
error: "warning",
|
|
6
|
+
muted: "muted"
|
|
7
|
+
};
|
|
8
|
+
function r(n, e) {
|
|
9
|
+
const t = o[n];
|
|
10
|
+
return {
|
|
11
|
+
tone: e && t === "ink" ? "inverted" : t,
|
|
12
|
+
pulse: n === "active"
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
r as workStatusDot
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=workStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workStatus.js","sources":["../../../src/components/ui/workStatus.ts"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { StatusDot } from './StatusDot';\n\n/**\n * The state of a unit of work, drawn as a dot. `active` is work in progress,\n * e.g. a running task: the ink dot pulses. `warn` is the caution ink, `error`\n * the anomaly red.\n */\nexport type WorkStatus = 'ok' | 'active' | 'warn' | 'error' | 'muted';\n\ntype DotTone = NonNullable<ComponentProps<typeof StatusDot>['tone']>;\n\nconst DOT_TONE: Record<WorkStatus, DotTone> = {\n ok: 'ink',\n active: 'ink',\n warn: 'caution',\n error: 'warning',\n muted: 'muted',\n};\n\n/** The StatusDot props for a status, on an inverted surface when selected. */\nexport function workStatusDot(\n status: WorkStatus,\n selected: boolean,\n): { tone: DotTone; pulse: boolean } {\n const tone = DOT_TONE[status];\n return {\n tone: selected && tone === 'ink' ? 'inverted' : tone,\n pulse: status === 'active',\n };\n}\n"],"names":["DOT_TONE","workStatusDot","status","selected","tone"],"mappings":"AAaA,MAAMA,IAAwC;AAAA,EAC5C,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AACT;AAGO,SAASC,EACdC,GACAC,GACmC;AACnC,QAAMC,IAAOJ,EAASE,CAAM;AAC5B,SAAO;AAAA,IACL,MAAMC,KAAYC,MAAS,QAAQ,aAAaA;AAAA,IAChD,OAAOF,MAAW;AAAA,EAAA;AAEtB;"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const o=require("./lib/format.cjs"),r=require("./lib/timeRange.cjs"),e=require("./lib/chart.cjs"),l=require("./layouts/PageWrapper.cjs"),q=require("./theme/antdTheme.cjs"),d=require("./theme/ThemeProvider.cjs"),S=require("./theme/themeInitScript.cjs"),C=require("./theme/useTheme.cjs"),m=require("./agent/core/AegisRuntimeProvider.cjs"),p=require("./layouts/shell/AegisShell.cjs"),g=require("./agent/chat/AgentChatProvider.cjs"),h=require("./components/ui/AgentHud.cjs"),T=require("./components/ui/AgentPanel.cjs"),P=require("./components/ui/Alert.cjs"),A=require("./components/ui/AmbientBackground.cjs"),v=require("./agent/ask/AskOverlay.cjs"),b=require("./agent/ask/AskPanel.cjs"),y=require("./components/ui/AuthLayout.cjs"),R=require("./auth/AuthProvider.cjs"),k=require("./components/ui/Avatar.cjs"),L=require("./components/ui/BlastRadiusBar.cjs"),D=require("./components/ui/Breadcrumb.cjs"),i=require("./components/ui/Button.cjs"),B=require("./components/ui/Carousel.cjs"),M=require("./components/ui/ChartLegend.cjs"),F=require("./components/ui/ChatComposer.cjs"),E=require("./components/ui/ChatMessage.cjs"),I=require("./components/ui/ChatMessageList.cjs"),f=require("./components/ui/ChatSessionList.cjs"),w=require("./components/ui/CheckGrid.cjs"),N=require("./components/ui/Checkbox.cjs"),x=require("./components/ui/Chip.cjs"),z=require("./components/ui/ChoiceCardGroup.cjs"),V=require("./components/ui/CodeBlock.cjs"),H=require("./components/ui/CodeEditor.cjs"),O=require("./components/ui/Collapse.cjs"),j=require("./components/ui/ColumnChart.cjs"),Q=require("./components/ui/ColumnLayout.cjs"),G=require("./components/ui/CommandInvocationCard.cjs"),_=require("./components/ui/CommandPalette.cjs"),K=require("./commands/CommandProvider.cjs"),U=require("./components/ui/CommitGraph.cjs"),W=require("./components/ui/ContentInspectorDialog.cjs"),Z=require("./components/ui/ContentPreview.cjs"),J=require("./components/ui/ControlListItem.cjs"),X=require("./components/ui/DangerZone.cjs"),Y=require("./components/ui/DataList.cjs"),$=require("./components/ui/DataTable.cjs"),ee=require("./components/ui/DetailBeside.cjs"),re=require("./components/ui/Dialog.cjs"),te=require("./components/ui/DiffViewer.cjs"),oe=require("./components/ui/DotRangeChart.cjs"),ie=require("./components/ui/DropdownMenu.cjs"),ne=require("./layouts/shell/environments/types.cjs"),ae=require("./components/ui/EmptyState.cjs"),se=require("./components/ui/EnvironmentSwitcher.cjs"),ue=require("./components/ui/ErrorState.cjs"),ce=require("./components/ui/EventTable.cjs"),le=require("./components/ui/FileDropzone.cjs"),qe=require("./components/ui/FilePreview.cjs"),de=require("./components/ui/FileTree.cjs"),Se=require("./components/ui/FolderDropzone.cjs"),Ce=require("./components/ui/ForgotPasswordForm.cjs"),me=require("./components/ui/FormRow.cjs"),pe=require("./components/ui/HeadlineStat.cjs"),ge=require("./components/ui/Heatmap.cjs"),he=require("./components/ui/IdentityCell.cjs"),Te=require("./components/ui/InboxPage.cjs"),Pe=require("./components/ui/KeyMomentCard.cjs"),Ae=require("./components/ui/KeyValueList.cjs"),ve=require("./components/ui/LineChart.cjs"),be=require("./locale/LocaleProvider.cjs"),ye=require("./components/ui/LoginForm.cjs"),Re=require("./components/ui/Markdown.cjs"),ke=require("./components/ui/MdxDocument.cjs"),Le=require("./components/ui/MetadataList.cjs"),De=require("./components/ui/MetricCard.cjs"),Be=require("./components/ui/MetricLabel.cjs"),Me=require("./components/ui/MonoValue.cjs"),Fe=require("./components/ui/NotificationBell.cjs"),Ee=require("./notifications/NotificationProvider.cjs"),Ie=require("./components/ui/NumberField.cjs"),fe=require("./components/ui/ObjectBrowser.cjs"),we=require("./components/ui/ObjectInspector.cjs"),Ne=require("./components/ui/PageHeader.cjs"),xe=require("./components/ui/PageSizeSelect.cjs"),ze=require("./components/ui/Pagination.cjs"),Ve=require("./components/ui/Panel.cjs"),He=require("./components/ui/PanelTitle.cjs"),Oe=require("./components/ui/ParetoChart.cjs"),je=require("./components/ui/ParquetViewer.cjs"),Qe=require("./components/ui/PasswordField.cjs"),Ge=require("./components/ui/PickerField.cjs"),_e=require("./components/ui/ProjectSelector.cjs"),Ke=require("./components/ui/QueryAutocomplete.cjs"),Ue=require("./components/ui/RankBar.cjs"),We=require("./components/ui/RegisterForm.cjs"),Ze=require("./components/ui/ReplayScrubber.cjs"),Je=require("./components/ui/ReplayStepStrip.cjs"),Xe=require("./components/ui/ReplayTransport.cjs"),Ye=require("./auth/RequireAuth.cjs"),$e=require("./components/ui/ResizableSidePanel.cjs"),er=require("./components/ui/ResultMatrix.cjs"),rr=require("./components/ui/Reveal.cjs"),tr=require("./components/ui/RunPips.cjs"),or=require("./components/ui/SavedQueryBar.cjs"),ir=require("./components/ui/ScoreBar.cjs"),nr=require("./components/ui/ScrollStory.cjs"),ar=require("./components/ui/SearchInput.cjs"),sr=require("./components/ui/SectionDivider.cjs"),ur=require("./components/ui/Select.cjs"),cr=require("./components/ui/SeriesLabel.cjs"),lr=require("./components/ui/ServiceMap.cjs"),qr=require("./components/ui/SettingsSection.cjs"),dr=require("./components/ui/ShareLinkDialog.cjs"),Sr=require("./layouts/shell/ShellInboxPage.cjs"),Cr=require("./layouts/site/SiteAnchorNav.cjs"),mr=require("./layouts/site/SiteFooter.cjs"),pr=require("./layouts/site/SiteLayout.cjs"),gr=require("./layouts/site/SiteNav.cjs"),hr=require("./layouts/site/SiteSection.cjs"),Tr=require("./layouts/site/SiteSectionHeader.cjs"),n=require("./components/ui/Skeleton.cjs"),Pr=require("./components/ui/Slider.cjs"),Ar=require("./components/ui/SparkLine.cjs"),vr=require("./components/ui/StackedBar.cjs"),br=require("./components/ui/StatBlock.cjs"),yr=require("./components/ui/StatusDot.cjs"),Rr=require("./components/ui/Steps.cjs"),kr=require("./components/ui/TableOfContents.cjs"),Lr=require("./components/ui/Tabs.cjs"),Dr=require("./components/ui/Terminal.cjs"),Br=require("./components/ui/TextField.cjs"),Mr=require("./components/ui/ThemeToggle.cjs"),Fr=require("./components/ui/ThoughtCard.cjs"),Er=require("./components/ui/TimeDisplay.cjs"),Ir=require("./components/ui/TimeRangePicker.cjs"),fr=require("./components/ui/Timeline.cjs"),wr=require("./components/ui/TimelineChart.cjs"),Nr=require("./components/ui/ToolCallCard.cjs"),xr=require("./components/ui/Toolbar.cjs"),zr=require("./components/ui/TraceSpanInspector.cjs"),Vr=require("./components/ui/TraceTree.cjs"),Hr=require("./components/ui/TrajectoryStep.cjs"),Or=require("./components/ui/TrajectoryTimeline.cjs"),jr=require("./components/ui/UploadQueue.cjs"),Qr=require("./agent/ask/buildAskContext.cjs"),Gr=require("./agent/core/runtime.cjs"),a=require("./locale/strings.cjs"),_r=require("./commands/shortcut.cjs"),Kr=require("./layouts/shell/apps.cjs"),Ur=require("./components/ui/mdxTableOfContents.cjs"),Wr=require("./components/ui/classifyContent.cjs"),s=require("./lib/luceneQuery/tokenizeAtCursor.cjs"),Zr=require("./layouts/shell/activeAppContext.cjs"),t=require("./agent/core/hooks.cjs"),Jr=require("./agent/chat/useAgentChat.cjs"),u=require("./layouts/shell/useAppNavigate.cjs"),Xr=require("./auth/useAuth.cjs"),Yr=require("./commands/useCommands.cjs"),$r=require("./hooks/useCopyToClipboard.cjs"),c=require("./layouts/shell/environments/useEnvironment.cjs"),et=require("./hooks/useMediaQuery.cjs"),rt=require("./notifications/useNotifications.cjs"),tt=require("./commands/useRegisterCommands.cjs"),ot=require("./hooks/useReplayPlayback.cjs"),it=require("./hooks/useResizable.cjs"),nt=require("./hooks/useSavedQueries.cjs"),at=require("./hooks/useScrollProgress.cjs"),st=require("./locale/useStrings.cjs");exports.formatBytes=o.formatBytes;exports.formatDuration=o.formatDuration;exports.RELATIVE_TIME_PRESETS=r.RELATIVE_TIME_PRESETS;exports.parseRelativeTime=r.parseRelativeTime;exports.parseTimeRangeInput=r.parseTimeRangeInput;exports.chartColorValue=e.chartColorValue;exports.niceTicks=e.niceTicks;exports.stageProgress=e.stageProgress;exports.staggeredProgress=e.staggeredProgress;exports.zeroAnchoredDomain=e.zeroAnchoredDomain;exports.PageWrapper=l.PageWrapper;exports.getAegisTheme=q.getAegisTheme;exports.ThemeProvider=d.ThemeProvider;exports.themeInitScript=S.themeInitScript;exports.useTheme=C.useTheme;exports.AegisRuntimeProvider=m.AegisRuntimeProvider;exports.AegisShell=p.AegisShell;exports.AgentChatProvider=g.AgentChatProvider;exports.AgentHud=h.AgentHud;exports.AgentPanel=T.AgentPanel;exports.Alert=P.Alert;exports.AmbientBackground=A.AmbientBackground;exports.AskOverlay=v.AskOverlay;exports.AskPanel=b.AskPanel;exports.AuthLayout=y.AuthLayout;exports.AuthProvider=R.AuthProvider;exports.Avatar=k.Avatar;exports.BlastRadiusBar=L.BlastRadiusBar;exports.Breadcrumb=D.Breadcrumb;exports.Button=i.Button;exports.ButtonLink=i.ButtonLink;exports.Carousel=B.Carousel;exports.ChartLegend=M.ChartLegend;exports.ChatComposer=F.ChatComposer;exports.ChatMessage=E.ChatMessage;exports.ChatMessageList=I.ChatMessageList;exports.ChatSessionList=f.ChatSessionList;exports.CheckGrid=w.CheckGrid;exports.Checkbox=N.Checkbox;exports.Chip=x.Chip;exports.ChoiceCardGroup=z.ChoiceCardGroup;exports.CodeBlock=V.CodeBlock;exports.CodeEditor=H.CodeEditor;exports.Collapse=O.Collapse;exports.ColumnChart=j.ColumnChart;exports.ColumnLayout=Q.ColumnLayout;exports.CommandInvocationCard=G.CommandInvocationCard;exports.CommandPalette=_.CommandPalette;exports.CommandProvider=K.CommandProvider;exports.CommitGraph=U.CommitGraph;exports.ContentInspectorDialog=W.ContentInspectorDialog;exports.ContentPreview=Z.ContentPreview;exports.ControlListItem=J.ControlListItem;exports.DangerZone=X.DangerZone;exports.DataList=Y.DataList;exports.DataTable=$.DataTable;exports.DetailBeside=ee.DetailBeside;exports.Dialog=re.Dialog;exports.DiffViewer=te.DiffViewer;exports.DotRangeChart=oe.DotRangeChart;exports.DropdownMenu=ie.DropdownMenu;exports.ENVIRONMENT_CHANGED_EVENT=ne.ENVIRONMENT_CHANGED_EVENT;exports.EmptyState=ae.EmptyState;exports.EnvironmentSwitcher=se.EnvironmentSwitcher;exports.ErrorState=ue.ErrorState;exports.EventTable=ce.EventTable;exports.FileDropzone=le.FileDropzone;exports.FilePreview=qe.FilePreview;exports.FileTree=de.FileTree;exports.FolderDropzone=Se.FolderDropzone;exports.ForgotPasswordForm=Ce.ForgotPasswordForm;exports.FormRow=me.FormRow;exports.HeadlineStat=pe.HeadlineStat;exports.Heatmap=ge.Heatmap;exports.IdentityCell=he.IdentityCell;exports.InboxPage=Te.InboxPage;exports.KeyMomentCard=Pe.KeyMomentCard;exports.KeyValueList=Ae.KeyValueList;exports.LineChart=ve.LineChart;exports.LocaleProvider=be.LocaleProvider;exports.LoginForm=ye.LoginForm;exports.Markdown=Re.Markdown;exports.MdxDocument=ke.MdxDocument;exports.MetadataList=Le.MetadataList;exports.MetricCard=De.MetricCard;exports.MetricLabel=Be.MetricLabel;exports.MonoValue=Me.MonoValue;exports.NotificationBell=Fe.NotificationBell;exports.NotificationProvider=Ee.NotificationProvider;exports.NumberField=Ie.NumberField;exports.ObjectBrowser=fe.ObjectBrowser;exports.ObjectInspector=we.ObjectInspector;exports.PageHeader=Ne.PageHeader;exports.PageSizeSelect=xe.PageSizeSelect;exports.Pagination=ze.Pagination;exports.Panel=Ve.Panel;exports.PanelTitle=He.PanelTitle;exports.ParetoChart=Oe.ParetoChart;exports.ParquetViewer=je.ParquetViewer;exports.PasswordField=Qe.PasswordField;exports.PickerField=Ge.PickerField;exports.ProjectSelector=_e.ProjectSelector;exports.QueryAutocomplete=Ke.QueryAutocomplete;exports.RankBar=Ue.RankBar;exports.RegisterForm=We.RegisterForm;exports.ReplayScrubber=Ze.ReplayScrubber;exports.ReplayStepStrip=Je.ReplayStepStrip;exports.ReplayTransport=Xe.ReplayTransport;exports.RequireAuth=Ye.RequireAuth;exports.ResizableSidePanel=$e.ResizableSidePanel;exports.ResultMatrix=er.ResultMatrix;exports.Reveal=rr.Reveal;exports.RunPips=tr.RunPips;exports.SavedQueryBar=or.SavedQueryBar;exports.ScoreBar=ir.ScoreBar;exports.ScrollStory=nr.ScrollStory;exports.SearchInput=ar.SearchInput;exports.SectionDivider=sr.SectionDivider;exports.Select=ur.Select;exports.SeriesLabel=cr.SeriesLabel;exports.ServiceMap=lr.ServiceMap;exports.SettingsSection=qr.SettingsSection;exports.ShareLinkDialog=dr.ShareLinkDialog;exports.ShellInboxPage=Sr.ShellInboxPage;exports.SiteAnchorNav=Cr.SiteAnchorNav;exports.SiteFooter=mr.SiteFooter;exports.SiteLayout=pr.SiteLayout;exports.SiteNav=gr.SiteNav;exports.SiteSection=hr.SiteSection;exports.SiteSectionHeader=Tr.SiteSectionHeader;exports.Skeleton=n.Skeleton;exports.SkeletonText=n.SkeletonText;exports.Slider=Pr.Slider;exports.SparkLine=Ar.SparkLine;exports.StackedBar=vr.StackedBar;exports.StatBlock=br.StatBlock;exports.StatusDot=yr.StatusDot;exports.Steps=Rr.Steps;exports.TableOfContents=kr.TableOfContents;exports.Tabs=Lr.Tabs;exports.Terminal=Dr.Terminal;exports.TextField=Br.TextField;exports.ThemeToggle=Mr.ThemeToggle;exports.ThoughtCard=Fr.ThoughtCard;exports.TimeDisplay=Er.TimeDisplay;exports.TimeRangePicker=Ir.TimeRangePicker;exports.Timeline=fr.Timeline;exports.TimelineChart=wr.TimelineChart;exports.ToolCallCard=Nr.ToolCallCard;exports.Toolbar=xr.Toolbar;exports.TraceSpanInspector=zr.TraceSpanInspector;exports.TraceTree=Vr.TraceTree;exports.TrajectoryStep=Hr.TrajectoryStep;exports.TrajectoryTimeline=Or.TrajectoryTimeline;exports.UploadQueue=jr.UploadQueue;exports.buildAskContext=Qr.buildAskContext;exports.createAegisRuntime=Gr.createAegisRuntime;exports.enStrings=a.enStrings;exports.zhCNStrings=a.zhCNStrings;exports.formatShortcut=_r.formatShortcut;exports.isAppVisible=Kr.isAppVisible;exports.mdxTableOfContents=Ur.mdxTableOfContents;exports.prepareInspectableContent=Wr.prepareInspectableContent;exports.replaceTokenAtCursor=s.replaceTokenAtCursor;exports.tokenizeAtCursor=s.tokenizeAtCursor;exports.useActiveApp=Zr.useActiveApp;exports.useAegisAction=t.useAegisAction;exports.useAegisSearchProvider=t.useAegisSearchProvider;exports.useAegisSurface=t.useAegisSurface;exports.useAgentChat=Jr.useAgentChat;exports.useAppHref=u.useAppHref;exports.useAppNavigate=u.useAppNavigate;exports.useAuth=Xr.useAuth;exports.useCommands=Yr.useCommands;exports.useCopyToClipboard=$r.useCopyToClipboard;exports.useCurrentEnvironment=c.useCurrentEnvironment;exports.useEnvironmentManifest=c.useEnvironmentManifest;exports.useMediaQuery=et.useMediaQuery;exports.useNotifications=rt.useNotifications;exports.useRegisterCommands=tt.useRegisterCommands;exports.useReplayPlayback=ot.useReplayPlayback;exports.useResizable=it.useResizable;exports.useSavedQueries=nt.useSavedQueries;exports.useScrollProgress=at.useScrollProgress;exports.useStrings=st.useStrings;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const o=require("./lib/format.cjs"),r=require("./lib/timeRange.cjs"),e=require("./lib/chart.cjs"),l=require("./layouts/PageWrapper.cjs"),q=require("./theme/antdTheme.cjs"),d=require("./theme/ThemeProvider.cjs"),S=require("./theme/themeInitScript.cjs"),C=require("./theme/useTheme.cjs"),m=require("./agent/core/AegisRuntimeProvider.cjs"),p=require("./layouts/shell/AegisShell.cjs"),g=require("./agent/chat/AgentChatProvider.cjs"),h=require("./components/ui/AgentHud.cjs"),T=require("./components/ui/AgentPanel.cjs"),P=require("./components/ui/Alert.cjs"),A=require("./components/ui/AmbientBackground.cjs"),v=require("./agent/ask/AskOverlay.cjs"),b=require("./agent/ask/AskPanel.cjs"),R=require("./components/ui/AuthLayout.cjs"),y=require("./auth/AuthProvider.cjs"),k=require("./components/ui/Avatar.cjs"),L=require("./components/ui/BlastRadiusBar.cjs"),D=require("./components/ui/Breadcrumb.cjs"),i=require("./components/ui/Button.cjs"),M=require("./components/ui/Carousel.cjs"),B=require("./components/ui/ChartLegend.cjs"),F=require("./components/ui/ChatComposer.cjs"),E=require("./components/ui/ChatMessage.cjs"),I=require("./components/ui/ChatMessageList.cjs"),f=require("./components/ui/ChatSessionList.cjs"),w=require("./components/ui/CheckGrid.cjs"),N=require("./components/ui/Checkbox.cjs"),x=require("./components/ui/Chip.cjs"),V=require("./components/ui/ChoiceCardGroup.cjs"),z=require("./components/ui/CodeBlock.cjs"),H=require("./components/ui/CodeEditor.cjs"),O=require("./components/ui/Collapse.cjs"),j=require("./components/ui/ColumnChart.cjs"),Q=require("./components/ui/ColumnLayout.cjs"),G=require("./components/ui/CommandInvocationCard.cjs"),_=require("./components/ui/CommandPalette.cjs"),K=require("./commands/CommandProvider.cjs"),U=require("./components/ui/CommitGraph.cjs"),W=require("./components/ui/ContentInspectorDialog.cjs"),Z=require("./components/ui/ContentPreview.cjs"),J=require("./components/ui/ControlListItem.cjs"),X=require("./components/ui/DangerZone.cjs"),Y=require("./components/ui/DataList.cjs"),$=require("./components/ui/DataTable.cjs"),ee=require("./components/ui/DetailBeside.cjs"),re=require("./components/ui/Dialog.cjs"),te=require("./components/ui/DiffViewer.cjs"),oe=require("./components/ui/DotRangeChart.cjs"),ie=require("./components/ui/DropdownMenu.cjs"),ne=require("./layouts/shell/environments/types.cjs"),ae=require("./components/ui/EmptyState.cjs"),se=require("./components/ui/EnvironmentSwitcher.cjs"),ue=require("./components/ui/ErrorState.cjs"),ce=require("./components/ui/EventTable.cjs"),le=require("./components/ui/FileDropzone.cjs"),qe=require("./components/ui/FilePreview.cjs"),de=require("./components/ui/FileTree.cjs"),Se=require("./components/ui/FolderDropzone.cjs"),Ce=require("./components/ui/ForgotPasswordForm.cjs"),me=require("./components/ui/FormRow.cjs"),pe=require("./components/ui/HeadlineStat.cjs"),ge=require("./components/ui/Heatmap.cjs"),he=require("./components/ui/IdentityCell.cjs"),Te=require("./components/ui/InboxPage.cjs"),Pe=require("./components/ui/KeyMomentCard.cjs"),Ae=require("./components/ui/KeyValueList.cjs"),ve=require("./components/ui/LineChart.cjs"),be=require("./locale/LocaleProvider.cjs"),Re=require("./components/ui/LoginForm.cjs"),ye=require("./components/ui/Markdown.cjs"),ke=require("./components/ui/MdxDocument.cjs"),Le=require("./components/ui/MetadataList.cjs"),De=require("./components/ui/MetricCard.cjs"),Me=require("./components/ui/MetricLabel.cjs"),Be=require("./components/ui/MonoValue.cjs"),Fe=require("./components/ui/NotificationBell.cjs"),Ee=require("./notifications/NotificationProvider.cjs"),Ie=require("./components/ui/NumberField.cjs"),fe=require("./components/ui/ObjectBrowser.cjs"),we=require("./components/ui/ObjectInspector.cjs"),Ne=require("./components/ui/PageHeader.cjs"),xe=require("./components/ui/PageSizeSelect.cjs"),Ve=require("./components/ui/Pagination.cjs"),ze=require("./components/ui/Panel.cjs"),He=require("./components/ui/PanelTitle.cjs"),Oe=require("./components/ui/ParetoChart.cjs"),je=require("./components/ui/ParquetViewer.cjs"),Qe=require("./components/ui/PasswordField.cjs"),Ge=require("./components/ui/PickerField.cjs"),_e=require("./components/ui/ProjectSelector.cjs"),Ke=require("./components/ui/QueryAutocomplete.cjs"),Ue=require("./components/ui/RankBar.cjs"),We=require("./components/ui/RegionMap.cjs"),Ze=require("./components/ui/RegisterForm.cjs"),Je=require("./components/ui/ReplayScrubber.cjs"),Xe=require("./components/ui/ReplayStepStrip.cjs"),Ye=require("./components/ui/ReplayTransport.cjs"),$e=require("./auth/RequireAuth.cjs"),er=require("./components/ui/ResizableSidePanel.cjs"),rr=require("./components/ui/ResultMatrix.cjs"),tr=require("./components/ui/Reveal.cjs"),or=require("./components/ui/RollingValue.cjs"),ir=require("./components/ui/RunPips.cjs"),nr=require("./components/ui/SavedQueryBar.cjs"),ar=require("./components/ui/ScoreBar.cjs"),sr=require("./components/ui/ScrollStory.cjs"),ur=require("./components/ui/SearchInput.cjs"),cr=require("./components/ui/SectionDivider.cjs"),lr=require("./components/ui/Select.cjs"),qr=require("./components/ui/SeriesLabel.cjs"),dr=require("./components/ui/ServiceMap.cjs"),Sr=require("./components/ui/SettingsSection.cjs"),Cr=require("./components/ui/ShareLinkDialog.cjs"),mr=require("./layouts/shell/ShellInboxPage.cjs"),pr=require("./layouts/site/SiteAnchorNav.cjs"),gr=require("./layouts/site/SiteFooter.cjs"),hr=require("./layouts/site/SiteLayout.cjs"),Tr=require("./layouts/site/SiteNav.cjs"),Pr=require("./layouts/site/SiteSection.cjs"),Ar=require("./layouts/site/SiteSectionHeader.cjs"),n=require("./components/ui/Skeleton.cjs"),vr=require("./components/ui/Slider.cjs"),br=require("./components/ui/SparkLine.cjs"),Rr=require("./components/ui/StackedBar.cjs"),yr=require("./components/ui/StatBlock.cjs"),kr=require("./components/ui/StatusDot.cjs"),Lr=require("./components/ui/Steps.cjs"),Dr=require("./components/ui/TableOfContents.cjs"),Mr=require("./components/ui/Tabs.cjs"),Br=require("./components/ui/Terminal.cjs"),Fr=require("./components/ui/TextField.cjs"),Er=require("./components/ui/ThemeToggle.cjs"),Ir=require("./components/ui/ThoughtCard.cjs"),fr=require("./components/ui/TimeDisplay.cjs"),wr=require("./components/ui/TimeRangePicker.cjs"),Nr=require("./components/ui/Timeline.cjs"),xr=require("./components/ui/TimelineChart.cjs"),Vr=require("./components/ui/ToolCallCard.cjs"),zr=require("./components/ui/Toolbar.cjs"),Hr=require("./components/ui/TraceSpanInspector.cjs"),Or=require("./components/ui/TraceTree.cjs"),jr=require("./components/ui/TrajectoryStep.cjs"),Qr=require("./components/ui/TrajectoryTimeline.cjs"),Gr=require("./components/ui/UploadQueue.cjs"),_r=require("./agent/ask/buildAskContext.cjs"),Kr=require("./agent/core/runtime.cjs"),a=require("./locale/strings.cjs"),Ur=require("./commands/shortcut.cjs"),Wr=require("./layouts/shell/apps.cjs"),Zr=require("./components/ui/mdxTableOfContents.cjs"),Jr=require("./components/ui/classifyContent.cjs"),s=require("./lib/luceneQuery/tokenizeAtCursor.cjs"),Xr=require("./layouts/shell/activeAppContext.cjs"),t=require("./agent/core/hooks.cjs"),Yr=require("./agent/chat/useAgentChat.cjs"),u=require("./layouts/shell/useAppNavigate.cjs"),$r=require("./auth/useAuth.cjs"),et=require("./commands/useCommands.cjs"),rt=require("./hooks/useCopyToClipboard.cjs"),c=require("./layouts/shell/environments/useEnvironment.cjs"),tt=require("./hooks/useMediaQuery.cjs"),ot=require("./notifications/useNotifications.cjs"),it=require("./commands/useRegisterCommands.cjs"),nt=require("./hooks/useReplayPlayback.cjs"),at=require("./hooks/useResizable.cjs"),st=require("./hooks/useSavedQueries.cjs"),ut=require("./hooks/useScrollProgress.cjs"),ct=require("./locale/useStrings.cjs");exports.formatBytes=o.formatBytes;exports.formatDuration=o.formatDuration;exports.RELATIVE_TIME_PRESETS=r.RELATIVE_TIME_PRESETS;exports.parseRelativeTime=r.parseRelativeTime;exports.parseTimeRangeInput=r.parseTimeRangeInput;exports.chartColorValue=e.chartColorValue;exports.niceTicks=e.niceTicks;exports.stageProgress=e.stageProgress;exports.staggeredProgress=e.staggeredProgress;exports.zeroAnchoredDomain=e.zeroAnchoredDomain;exports.PageWrapper=l.PageWrapper;exports.getAegisTheme=q.getAegisTheme;exports.ThemeProvider=d.ThemeProvider;exports.themeInitScript=S.themeInitScript;exports.useTheme=C.useTheme;exports.AegisRuntimeProvider=m.AegisRuntimeProvider;exports.AegisShell=p.AegisShell;exports.AgentChatProvider=g.AgentChatProvider;exports.AgentHud=h.AgentHud;exports.AgentPanel=T.AgentPanel;exports.Alert=P.Alert;exports.AmbientBackground=A.AmbientBackground;exports.AskOverlay=v.AskOverlay;exports.AskPanel=b.AskPanel;exports.AuthLayout=R.AuthLayout;exports.AuthProvider=y.AuthProvider;exports.Avatar=k.Avatar;exports.BlastRadiusBar=L.BlastRadiusBar;exports.Breadcrumb=D.Breadcrumb;exports.Button=i.Button;exports.ButtonLink=i.ButtonLink;exports.Carousel=M.Carousel;exports.ChartLegend=B.ChartLegend;exports.ChatComposer=F.ChatComposer;exports.ChatMessage=E.ChatMessage;exports.ChatMessageList=I.ChatMessageList;exports.ChatSessionList=f.ChatSessionList;exports.CheckGrid=w.CheckGrid;exports.Checkbox=N.Checkbox;exports.Chip=x.Chip;exports.ChoiceCardGroup=V.ChoiceCardGroup;exports.CodeBlock=z.CodeBlock;exports.CodeEditor=H.CodeEditor;exports.Collapse=O.Collapse;exports.ColumnChart=j.ColumnChart;exports.ColumnLayout=Q.ColumnLayout;exports.CommandInvocationCard=G.CommandInvocationCard;exports.CommandPalette=_.CommandPalette;exports.CommandProvider=K.CommandProvider;exports.CommitGraph=U.CommitGraph;exports.ContentInspectorDialog=W.ContentInspectorDialog;exports.ContentPreview=Z.ContentPreview;exports.ControlListItem=J.ControlListItem;exports.DangerZone=X.DangerZone;exports.DataList=Y.DataList;exports.DataTable=$.DataTable;exports.DetailBeside=ee.DetailBeside;exports.Dialog=re.Dialog;exports.DiffViewer=te.DiffViewer;exports.DotRangeChart=oe.DotRangeChart;exports.DropdownMenu=ie.DropdownMenu;exports.ENVIRONMENT_CHANGED_EVENT=ne.ENVIRONMENT_CHANGED_EVENT;exports.EmptyState=ae.EmptyState;exports.EnvironmentSwitcher=se.EnvironmentSwitcher;exports.ErrorState=ue.ErrorState;exports.EventTable=ce.EventTable;exports.FileDropzone=le.FileDropzone;exports.FilePreview=qe.FilePreview;exports.FileTree=de.FileTree;exports.FolderDropzone=Se.FolderDropzone;exports.ForgotPasswordForm=Ce.ForgotPasswordForm;exports.FormRow=me.FormRow;exports.HeadlineStat=pe.HeadlineStat;exports.Heatmap=ge.Heatmap;exports.IdentityCell=he.IdentityCell;exports.InboxPage=Te.InboxPage;exports.KeyMomentCard=Pe.KeyMomentCard;exports.KeyValueList=Ae.KeyValueList;exports.LineChart=ve.LineChart;exports.LocaleProvider=be.LocaleProvider;exports.LoginForm=Re.LoginForm;exports.Markdown=ye.Markdown;exports.MdxDocument=ke.MdxDocument;exports.MetadataList=Le.MetadataList;exports.MetricCard=De.MetricCard;exports.MetricLabel=Me.MetricLabel;exports.MonoValue=Be.MonoValue;exports.NotificationBell=Fe.NotificationBell;exports.NotificationProvider=Ee.NotificationProvider;exports.NumberField=Ie.NumberField;exports.ObjectBrowser=fe.ObjectBrowser;exports.ObjectInspector=we.ObjectInspector;exports.PageHeader=Ne.PageHeader;exports.PageSizeSelect=xe.PageSizeSelect;exports.Pagination=Ve.Pagination;exports.Panel=ze.Panel;exports.PanelTitle=He.PanelTitle;exports.ParetoChart=Oe.ParetoChart;exports.ParquetViewer=je.ParquetViewer;exports.PasswordField=Qe.PasswordField;exports.PickerField=Ge.PickerField;exports.ProjectSelector=_e.ProjectSelector;exports.QueryAutocomplete=Ke.QueryAutocomplete;exports.RankBar=Ue.RankBar;exports.RegionMap=We.RegionMap;exports.RegisterForm=Ze.RegisterForm;exports.ReplayScrubber=Je.ReplayScrubber;exports.ReplayStepStrip=Xe.ReplayStepStrip;exports.ReplayTransport=Ye.ReplayTransport;exports.RequireAuth=$e.RequireAuth;exports.ResizableSidePanel=er.ResizableSidePanel;exports.ResultMatrix=rr.ResultMatrix;exports.Reveal=tr.Reveal;exports.RollingValue=or.RollingValue;exports.RunPips=ir.RunPips;exports.SavedQueryBar=nr.SavedQueryBar;exports.ScoreBar=ar.ScoreBar;exports.ScrollStory=sr.ScrollStory;exports.SearchInput=ur.SearchInput;exports.SectionDivider=cr.SectionDivider;exports.Select=lr.Select;exports.SeriesLabel=qr.SeriesLabel;exports.ServiceMap=dr.ServiceMap;exports.SettingsSection=Sr.SettingsSection;exports.ShareLinkDialog=Cr.ShareLinkDialog;exports.ShellInboxPage=mr.ShellInboxPage;exports.SiteAnchorNav=pr.SiteAnchorNav;exports.SiteFooter=gr.SiteFooter;exports.SiteLayout=hr.SiteLayout;exports.SiteNav=Tr.SiteNav;exports.SiteSection=Pr.SiteSection;exports.SiteSectionHeader=Ar.SiteSectionHeader;exports.Skeleton=n.Skeleton;exports.SkeletonText=n.SkeletonText;exports.Slider=vr.Slider;exports.SparkLine=br.SparkLine;exports.StackedBar=Rr.StackedBar;exports.StatBlock=yr.StatBlock;exports.StatusDot=kr.StatusDot;exports.Steps=Lr.Steps;exports.TableOfContents=Dr.TableOfContents;exports.Tabs=Mr.Tabs;exports.Terminal=Br.Terminal;exports.TextField=Fr.TextField;exports.ThemeToggle=Er.ThemeToggle;exports.ThoughtCard=Ir.ThoughtCard;exports.TimeDisplay=fr.TimeDisplay;exports.TimeRangePicker=wr.TimeRangePicker;exports.Timeline=Nr.Timeline;exports.TimelineChart=xr.TimelineChart;exports.ToolCallCard=Vr.ToolCallCard;exports.Toolbar=zr.Toolbar;exports.TraceSpanInspector=Hr.TraceSpanInspector;exports.TraceTree=Or.TraceTree;exports.TrajectoryStep=jr.TrajectoryStep;exports.TrajectoryTimeline=Qr.TrajectoryTimeline;exports.UploadQueue=Gr.UploadQueue;exports.buildAskContext=_r.buildAskContext;exports.createAegisRuntime=Kr.createAegisRuntime;exports.enStrings=a.enStrings;exports.zhCNStrings=a.zhCNStrings;exports.formatShortcut=Ur.formatShortcut;exports.isAppVisible=Wr.isAppVisible;exports.mdxTableOfContents=Zr.mdxTableOfContents;exports.prepareInspectableContent=Jr.prepareInspectableContent;exports.replaceTokenAtCursor=s.replaceTokenAtCursor;exports.tokenizeAtCursor=s.tokenizeAtCursor;exports.useActiveApp=Xr.useActiveApp;exports.useAegisAction=t.useAegisAction;exports.useAegisSearchProvider=t.useAegisSearchProvider;exports.useAegisSurface=t.useAegisSurface;exports.useAgentChat=Yr.useAgentChat;exports.useAppHref=u.useAppHref;exports.useAppNavigate=u.useAppNavigate;exports.useAuth=$r.useAuth;exports.useCommands=et.useCommands;exports.useCopyToClipboard=rt.useCopyToClipboard;exports.useCurrentEnvironment=c.useCurrentEnvironment;exports.useEnvironmentManifest=c.useEnvironmentManifest;exports.useMediaQuery=tt.useMediaQuery;exports.useNotifications=ot.useNotifications;exports.useRegisterCommands=it.useRegisterCommands;exports.useReplayPlayback=nt.useReplayPlayback;exports.useResizable=at.useResizable;exports.useSavedQueries=st.useSavedQueries;exports.useScrollProgress=ut.useScrollProgress;exports.useStrings=ct.useStrings;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|