@leitwerk-dev/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE +13 -0
- package/dist/assets/ChronicleMarkdown-BLgtHeEE.js +16 -0
- package/dist/assets/ChronicleMarkdown-D6hFzERy.css +1 -0
- package/dist/assets/FutureLaunchDetailPage-KrXSGzHM.js +1 -0
- package/dist/assets/FutureLaunchDetailPage-VPMBtpYc.css +1 -0
- package/dist/assets/GenericLauncher-Cv38FByt.js +1 -0
- package/dist/assets/GenericLauncher-D_GMtsQ5.css +1 -0
- package/dist/assets/HomePage-Cd3lEtwZ.js +1 -0
- package/dist/assets/HomePage-DYh_QHXv.css +1 -0
- package/dist/assets/PageHeader-6PdvYODN.css +1 -0
- package/dist/assets/PageHeader-D6pP4hIh.js +1 -0
- package/dist/assets/ProcessActionsMenu-1QySGNy9.js +1 -0
- package/dist/assets/ProcessActionsMenu-BT2r9vO8.css +1 -0
- package/dist/assets/ProcessDetailPage-BLuc7sjV.js +12 -0
- package/dist/assets/ProcessDetailPage-CSrjzajF.css +1 -0
- package/dist/assets/ProcessFlowDiagram-BAh_M_rb.js +2 -0
- package/dist/assets/ProcessFlowDiagram-Cz8wNicU.css +1 -0
- package/dist/assets/ProcessesPage-BcM38HMs.css +1 -0
- package/dist/assets/ProcessesPage-DtPweRU-.js +1 -0
- package/dist/assets/ScheduleDateTimePicker-CQGvY-Rc.js +1 -0
- package/dist/assets/ScheduleDateTimePicker-CadXN9z7.css +1 -0
- package/dist/assets/SkillsPage-B30FAFia.css +1 -0
- package/dist/assets/SkillsPage-bXuv0kEE.js +2 -0
- package/dist/assets/WatchersPage-DNyUsU1y.js +1 -0
- package/dist/assets/WatchersPage-Dnfi1zUK.css +1 -0
- package/dist/assets/api-CqECFdii.js +1 -0
- package/dist/assets/browser-storage-LbKCyf_w.js +1 -0
- package/dist/assets/dist-B7WNbObw.js +2 -0
- package/dist/assets/index-66T4Gmbl.css +1 -0
- package/dist/assets/index-C8qCggeq.js +7 -0
- package/dist/assets/index-client-BqF3_t3P.js +2 -0
- package/dist/assets/mermaid-render.worker-DAVgiVRG.js +6393 -0
- package/dist/assets/retry-config.svelte-DFKCJtCe.js +1 -0
- package/dist/assets/router.svelte-COr45o9R.js +1 -0
- package/dist/fonts/OFL-Public-Sans.txt +115 -0
- package/dist/fonts/OFL-Spectral.txt +93 -0
- package/dist/fonts/README.md +38 -0
- package/dist/fonts/fonts.css +85 -0
- package/dist/fonts/public-sans-latin-cd00287f.woff2 +0 -0
- package/dist/fonts/public-sans-latin-ext-d025d4ba.woff2 +0 -0
- package/dist/fonts/spectral-latin-89d48951.woff2 +0 -0
- package/dist/fonts/spectral-latin-b7578f14.woff2 +0 -0
- package/dist/fonts/spectral-latin-c4e0a00d.woff2 +0 -0
- package/dist/fonts/spectral-latin-ext-260738f4.woff2 +0 -0
- package/dist/fonts/spectral-latin-ext-ab18ac17.woff2 +0 -0
- package/dist/fonts/spectral-latin-ext-f58c1db3.woff2 +0 -0
- package/dist/index.html +32 -0
- package/package.json +47 -0
- package/src/App.svelte +257 -0
- package/src/chronicle/components/ChronicleActionSection.svelte +1035 -0
- package/src/chronicle/components/ChronicleExpandButton.svelte +70 -0
- package/src/chronicle/components/ChronicleFlow.svelte +289 -0
- package/src/chronicle/components/ChronicleLeafOutcomePlaceholder.svelte +44 -0
- package/src/chronicle/components/ChronicleLeafOutcomeRendererHost.svelte +408 -0
- package/src/chronicle/components/ChronicleLeafOutcomeSection.svelte +253 -0
- package/src/chronicle/components/ChronicleLiveChip.svelte +96 -0
- package/src/chronicle/components/ChronicleLiveTail.svelte +376 -0
- package/src/chronicle/components/ChronicleMarkdown.svelte +168 -0
- package/src/chronicle/components/ChronicleOperatorInputSection.svelte +41 -0
- package/src/chronicle/components/ChronicleProcessErrorSection.svelte +131 -0
- package/src/chronicle/components/ChroniclePromptSection.svelte +54 -0
- package/src/chronicle/components/ChronicleQuestionRequest.svelte +167 -0
- package/src/chronicle/components/ChronicleReasoningDetailsOverlay.svelte +893 -0
- package/src/chronicle/components/ChronicleRecoverySection.svelte +338 -0
- package/src/chronicle/components/ChronicleScheduledActionSection.svelte +192 -0
- package/src/chronicle/components/ChronicleSectionHeader.svelte +135 -0
- package/src/chronicle/components/ChronicleStartupRecoverySection.svelte +138 -0
- package/src/chronicle/components/ChronicleTerminalSummary.svelte +127 -0
- package/src/chronicle/components/ChronicleThinkingSection.svelte +191 -0
- package/src/chronicle/components/ChronicleThinkingText.svelte +46 -0
- package/src/chronicle/components/ChronicleToolCallItem.svelte +477 -0
- package/src/chronicle/components/ChronicleTurnCluster.svelte +325 -0
- package/src/chronicle/components/ChronicleTurnRail.svelte +584 -0
- package/src/chronicle/components/ChronicleUsageStats.svelte +107 -0
- package/src/chronicle/components/CompactActionComposer.svelte +417 -0
- package/src/chronicle/components/ModelProfileOptions.svelte +20 -0
- package/src/chronicle/components/ProviderOptionsEditor.svelte +171 -0
- package/src/chronicle/components/RecoveryModelControl.svelte +95 -0
- package/src/chronicle/lib/action-bindings.ts +90 -0
- package/src/chronicle/lib/action-model-display.ts +133 -0
- package/src/chronicle/lib/action-preview.ts +16 -0
- package/src/chronicle/lib/chronicle-projection.ts +1342 -0
- package/src/chronicle/lib/chronicle-selectable-items.ts +352 -0
- package/src/chronicle/lib/chronicle-view-model.ts +121 -0
- package/src/chronicle/lib/formatting.ts +18 -0
- package/src/chronicle/lib/leaf-outcome-loader.ts +214 -0
- package/src/chronicle/lib/leaf-outcome-runtime.ts +37 -0
- package/src/chronicle/lib/prompt-highlighting.ts +78 -0
- package/src/chronicle/lib/scroll-sync.ts +88 -0
- package/src/chronicle/lib/tool-call-summary.ts +64 -0
- package/src/components/BrowserUiExtensionIndicatorHost.svelte +34 -0
- package/src/components/ConversationTreeDiagram.svelte +393 -0
- package/src/components/FormFieldRenderer.svelte +359 -0
- package/src/components/GenericLauncher.svelte +1970 -0
- package/src/components/KeyboardShortcutsModal.svelte +52 -0
- package/src/components/ModalShell.svelte +105 -0
- package/src/components/PageHeader.svelte +146 -0
- package/src/components/ProcessActionsMenu.svelte +514 -0
- package/src/components/ProcessInfoOverlay.svelte +1229 -0
- package/src/components/ScheduleDateTimePicker.svelte +155 -0
- package/src/components/SkillSelector.svelte +45 -0
- package/src/components/ToastContainer.svelte +192 -0
- package/src/components/launcher-form-copy.ts +172 -0
- package/src/components/launcher-model-config.ts +263 -0
- package/src/components/launcher-schedule.ts +127 -0
- package/src/extension-ui-dev-server.ts +98 -0
- package/src/lib/api.ts +970 -0
- package/src/lib/beautiful-mermaid-elk-instance.ts +54 -0
- package/src/lib/browser-storage.ts +11 -0
- package/src/lib/cost-estimates.ts +41 -0
- package/src/lib/elk-bundled-worker.ts +41 -0
- package/src/lib/flow-layout.ts +326 -0
- package/src/lib/format.ts +96 -0
- package/src/lib/future-executions-logic.ts +12 -0
- package/src/lib/future-launch-detail.ts +145 -0
- package/src/lib/instance-tree-layout.ts +158 -0
- package/src/lib/keyboard-shortcuts-help.ts +20 -0
- package/src/lib/keyboard.ts +40 -0
- package/src/lib/launcher-recent-values.ts +68 -0
- package/src/lib/markdown.ts +94 -0
- package/src/lib/mermaid-render.worker.ts +36 -0
- package/src/lib/pi-stream.ts +3 -0
- package/src/lib/primary-path-detail.ts +337 -0
- package/src/lib/primary-path-replay.ts +27 -0
- package/src/lib/process-browser.ts +179 -0
- package/src/lib/process-initial-prompt.ts +7 -0
- package/src/lib/process-launch-notices.svelte.ts +25 -0
- package/src/lib/process-row-view.ts +60 -0
- package/src/lib/process-terminal-display.ts +17 -0
- package/src/lib/process-toast-focus.svelte.ts +18 -0
- package/src/lib/processes-logic.ts +2 -0
- package/src/lib/processes.svelte.ts +334 -0
- package/src/lib/request-guard.ts +20 -0
- package/src/lib/retry-config.svelte.ts +19 -0
- package/src/lib/rich-markdown-elements.ts +173 -0
- package/src/lib/router-logic.ts +190 -0
- package/src/lib/router.svelte.ts +56 -0
- package/src/lib/runtime-config.ts +96 -0
- package/src/lib/test-fixtures.ts +13 -0
- package/src/lib/toasts.svelte.ts +104 -0
- package/src/lib/tool-call-rendering.ts +66 -0
- package/src/lib/ui-extensions.svelte.ts +381 -0
- package/src/lib/usage-snapshot.ts +9 -0
- package/src/lib/ws-classifier.ts +80 -0
- package/src/lib/ws.svelte.ts +281 -0
- package/src/main.ts +8 -0
- package/src/pages/FutureLaunchDetailPage.svelte +479 -0
- package/src/pages/HomePage.svelte +306 -0
- package/src/pages/ProcessCard.svelte +99 -0
- package/src/pages/ProcessDetailPage.svelte +599 -0
- package/src/pages/ProcessFlowDiagram.svelte +696 -0
- package/src/pages/ProcessGallery.svelte +252 -0
- package/src/pages/ProcessesPage.svelte +994 -0
- package/src/pages/SkillsPage.svelte +665 -0
- package/src/pages/WatchersPage.svelte +330 -0
- package/src/pages/process-detail/OverlayFrame.svelte +58 -0
- package/src/pages/process-detail/ProcessDetailChronicle.svelte +460 -0
- package/src/pages/process-detail/ProcessDetailHeader.svelte +167 -0
- package/src/pages/process-detail/process-detail-action-drafts.svelte.ts +211 -0
- package/src/pages/process-detail/process-detail-actions.svelte.ts +548 -0
- package/src/pages/process-detail/process-detail-chronicle-dom.ts +102 -0
- package/src/pages/process-detail/process-detail-chronicle-scroll.svelte.ts +711 -0
- package/src/pages/process-detail/process-detail-mutations.svelte.ts +91 -0
- package/src/pages/process-detail/process-detail-view-model.ts +149 -0
- package/src/shell/AppShell.svelte +249 -0
- package/src/shell/RouteLoadBoundary.svelte +43 -0
- package/src/shell/Sidebar.svelte +1358 -0
- package/src/shell/test-fixtures/RouteLoadTestComponent.svelte +5 -0
- package/src/vite-env.d.ts +2 -0
- package/src/vite-server-config.ts +27 -0
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { formatPathTypeLabel } from "@leitwerk-dev/domain";
|
|
3
|
+
import type { ProcessUsageEstimateSnapshot } from "@leitwerk-dev/protocol";
|
|
4
|
+
import { onMount, tick } from "svelte";
|
|
5
|
+
import ChronicleUsageStats from "../chronicle/components/ChronicleUsageStats.svelte";
|
|
6
|
+
import type { ChronicleSelectableItem } from "../chronicle/lib/chronicle-selectable-items.js";
|
|
7
|
+
import type { ProcessDetailData } from "../lib/api";
|
|
8
|
+
import { formatRelativeTime, formatStatus } from "../lib/format";
|
|
9
|
+
import ProcessFlowDiagram from "../pages/ProcessFlowDiagram.svelte";
|
|
10
|
+
import ConversationTreeDiagram from "./ConversationTreeDiagram.svelte";
|
|
11
|
+
|
|
12
|
+
interface Props {
|
|
13
|
+
detail: ProcessDetailData;
|
|
14
|
+
processUsageEstimate: ProcessUsageEstimateSnapshot | null;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
railItems: readonly ChronicleSelectableItem[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type ProcessInfoTab = "overview" | "launch" | "turns" | "advanced" | "conversation-tree";
|
|
20
|
+
type ModelTurn = ProcessDetailData["modelConfiguration"]["turns"][number];
|
|
21
|
+
type RunTurn = ProcessDetailData["runDetails"]["turns"][number];
|
|
22
|
+
type ProcessInfoTurnRow = {
|
|
23
|
+
turnId: string;
|
|
24
|
+
description: string;
|
|
25
|
+
pathType: string;
|
|
26
|
+
model: ModelTurn | null;
|
|
27
|
+
run: RunTurn | null;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const tabs: readonly { id: ProcessInfoTab; label: string }[] = [
|
|
31
|
+
{ id: "overview", label: "Overview" },
|
|
32
|
+
{ id: "launch", label: "Launch inputs" },
|
|
33
|
+
{ id: "turns", label: "Turns" },
|
|
34
|
+
{ id: "advanced", label: "Advanced" },
|
|
35
|
+
{ id: "conversation-tree", label: "Conversation tree" },
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
let { detail, processUsageEstimate, onClose, railItems }: Props = $props();
|
|
39
|
+
let closeButton: HTMLButtonElement | null = $state(null);
|
|
40
|
+
let activeTab = $state<ProcessInfoTab>("overview");
|
|
41
|
+
|
|
42
|
+
const turnRows = $derived.by((): ProcessInfoTurnRow[] => {
|
|
43
|
+
const runTurnsById = new Map(detail.runDetails.turns.map((turn) => [turn.turnId, turn] as const));
|
|
44
|
+
const configuredTurnIds = new Set(detail.modelConfiguration.turns.map((turn) => turn.turnId));
|
|
45
|
+
return [
|
|
46
|
+
...detail.modelConfiguration.turns.map((model) => {
|
|
47
|
+
const run = runTurnsById.get(model.turnId) ?? null;
|
|
48
|
+
return {
|
|
49
|
+
turnId: model.turnId,
|
|
50
|
+
description: model.description,
|
|
51
|
+
pathType: model.pathType,
|
|
52
|
+
model,
|
|
53
|
+
run,
|
|
54
|
+
};
|
|
55
|
+
}),
|
|
56
|
+
...detail.runDetails.turns
|
|
57
|
+
.filter((run) => !configuredTurnIds.has(run.turnId))
|
|
58
|
+
.map((run) => ({
|
|
59
|
+
turnId: run.turnId,
|
|
60
|
+
description: run.description,
|
|
61
|
+
pathType: run.pathType,
|
|
62
|
+
model: null,
|
|
63
|
+
run,
|
|
64
|
+
})),
|
|
65
|
+
];
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
function hasLaunchConfiguration(detail: ProcessDetailData): boolean {
|
|
69
|
+
return (
|
|
70
|
+
detail.launchConfiguration.launcherId !== null ||
|
|
71
|
+
detail.launchConfiguration.paramsParseError !== null ||
|
|
72
|
+
detail.launchConfiguration.parameters.length > 0 ||
|
|
73
|
+
detail.launchConfiguration.projects.length > 0
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function launchValue(value: string | null): string {
|
|
78
|
+
return value && value.trim() !== "" ? value : "Not set";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function modelSourceLabel(source: "instance" | "process_config" | "default"): string {
|
|
82
|
+
if (source === "instance") {
|
|
83
|
+
return "Launch override";
|
|
84
|
+
}
|
|
85
|
+
return source === "process_config" ? "Configuration file" : "Process default";
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function modelConfigurationIssueLabel(issue: {
|
|
89
|
+
code: "invalid_turn_configs_json";
|
|
90
|
+
reason: "invalid_json" | "not_object" | "turn_config_not_object";
|
|
91
|
+
turnId?: string;
|
|
92
|
+
}): string {
|
|
93
|
+
if (issue.reason === "invalid_json") return "Saved turn model configuration is not valid JSON.";
|
|
94
|
+
if (issue.reason === "not_object") return "Saved turn model configuration must be an object.";
|
|
95
|
+
return `Saved configuration for turn '${issue.turnId ?? "unknown"}' must be an object.`;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function defaultModelSourceLabel(
|
|
99
|
+
source: "instance" | "process_config" | "catalog_default" | "none",
|
|
100
|
+
): string {
|
|
101
|
+
switch (source) {
|
|
102
|
+
case "instance":
|
|
103
|
+
return "Launch override";
|
|
104
|
+
case "process_config":
|
|
105
|
+
return "Configuration file";
|
|
106
|
+
case "catalog_default":
|
|
107
|
+
return "Catalog default";
|
|
108
|
+
default:
|
|
109
|
+
return "Not configured";
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function toolNames(names: readonly string[]): string {
|
|
114
|
+
return names.length > 0 ? names.join(", ") : "None";
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function outcomeToolNames(turn: RunTurn | null): string {
|
|
118
|
+
return turn ? toolNames(turn.outcomeActions.map((tool) => tool.name)) : "None";
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function effectiveTurnModel(turn: ProcessInfoTurnRow): string {
|
|
122
|
+
return (
|
|
123
|
+
turn.model?.effectiveConfiguredModelProfileId ??
|
|
124
|
+
detail.modelConfiguration.defaultModel.effectiveModelProfileId ??
|
|
125
|
+
"No model configured"
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function turnModelSourceLabel(turn: ProcessInfoTurnRow): string {
|
|
130
|
+
if (turn.model && turn.model.source !== "default") {
|
|
131
|
+
return modelSourceLabel(turn.model.source);
|
|
132
|
+
}
|
|
133
|
+
return defaultModelSourceLabel(detail.modelConfiguration.defaultModel.source);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function tabId(tab: ProcessInfoTab): string {
|
|
137
|
+
return `process-info-tab-${tab}`;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function panelId(tab: ProcessInfoTab): string {
|
|
141
|
+
return `process-info-panel-${tab}`;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function selectTab(tab: ProcessInfoTab, focusTab = false) {
|
|
145
|
+
activeTab = tab;
|
|
146
|
+
void tick().then(() => {
|
|
147
|
+
const overlay = document.getElementById("process-info-overlay");
|
|
148
|
+
const scroller = overlay?.querySelector<HTMLElement>(".overlay-scroll");
|
|
149
|
+
if (scroller) {
|
|
150
|
+
scroller.scrollTop = 0;
|
|
151
|
+
}
|
|
152
|
+
if (focusTab) {
|
|
153
|
+
document.getElementById(tabId(tab))?.focus();
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function handleTabKeydown(event: KeyboardEvent, tab: ProcessInfoTab) {
|
|
159
|
+
const index = tabs.findIndex((item) => item.id === tab);
|
|
160
|
+
let nextIndex: number | null = null;
|
|
161
|
+
if (event.key === "ArrowRight") {
|
|
162
|
+
nextIndex = (index + 1) % tabs.length;
|
|
163
|
+
} else if (event.key === "ArrowLeft") {
|
|
164
|
+
nextIndex = (index - 1 + tabs.length) % tabs.length;
|
|
165
|
+
} else if (event.key === "Home") {
|
|
166
|
+
nextIndex = 0;
|
|
167
|
+
} else if (event.key === "End") {
|
|
168
|
+
nextIndex = tabs.length - 1;
|
|
169
|
+
}
|
|
170
|
+
if (nextIndex === null) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
selectTab(tabs[nextIndex].id, true);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
onMount(() => {
|
|
178
|
+
void tick().then(() => closeButton?.focus());
|
|
179
|
+
});
|
|
180
|
+
</script>
|
|
181
|
+
|
|
182
|
+
<div
|
|
183
|
+
id="process-info-overlay"
|
|
184
|
+
class="process-info-overlay"
|
|
185
|
+
data-section="process-info-overlay"
|
|
186
|
+
role="dialog"
|
|
187
|
+
aria-modal="false"
|
|
188
|
+
aria-label="Process information"
|
|
189
|
+
>
|
|
190
|
+
<header class="overlay-header">
|
|
191
|
+
<div class="overlay-heading-copy">
|
|
192
|
+
<h2>Process information</h2>
|
|
193
|
+
<p>
|
|
194
|
+
<span>{detail.processDisplayName ?? detail.process.processId}</span>
|
|
195
|
+
<span aria-hidden="true">·</span>
|
|
196
|
+
<span class="mono">{detail.process.id}</span>
|
|
197
|
+
</p>
|
|
198
|
+
</div>
|
|
199
|
+
<button
|
|
200
|
+
bind:this={closeButton}
|
|
201
|
+
type="button"
|
|
202
|
+
class="overlay-close"
|
|
203
|
+
data-pressable="true"
|
|
204
|
+
onclick={() => onClose()}
|
|
205
|
+
aria-label="Close process info"
|
|
206
|
+
>
|
|
207
|
+
Close
|
|
208
|
+
</button>
|
|
209
|
+
</header>
|
|
210
|
+
|
|
211
|
+
<div class="overlay-index" role="tablist" aria-label="Process information sections">
|
|
212
|
+
{#each tabs as tab (tab.id)}
|
|
213
|
+
<button
|
|
214
|
+
id={tabId(tab.id)}
|
|
215
|
+
type="button"
|
|
216
|
+
role="tab"
|
|
217
|
+
class:is-active={activeTab === tab.id}
|
|
218
|
+
aria-selected={activeTab === tab.id}
|
|
219
|
+
aria-controls={panelId(tab.id)}
|
|
220
|
+
tabindex={activeTab === tab.id ? 0 : -1}
|
|
221
|
+
onclick={() => selectTab(tab.id)}
|
|
222
|
+
onkeydown={(event) => handleTabKeydown(event, tab.id)}
|
|
223
|
+
>
|
|
224
|
+
{tab.label}
|
|
225
|
+
</button>
|
|
226
|
+
{/each}
|
|
227
|
+
</div>
|
|
228
|
+
|
|
229
|
+
<div class="overlay-scroll">
|
|
230
|
+
<div
|
|
231
|
+
id={panelId("overview")}
|
|
232
|
+
class="tab-panel"
|
|
233
|
+
role="tabpanel"
|
|
234
|
+
aria-labelledby={tabId("overview")}
|
|
235
|
+
hidden={activeTab !== "overview"}
|
|
236
|
+
data-section="process-info-overview"
|
|
237
|
+
>
|
|
238
|
+
<section class="overlay-section" data-section="process-info-metadata">
|
|
239
|
+
<div class="section-heading-copy">
|
|
240
|
+
<h3>At a glance</h3>
|
|
241
|
+
<p>The operational facts for this process run.</p>
|
|
242
|
+
</div>
|
|
243
|
+
<dl class="fact-grid">
|
|
244
|
+
<div>
|
|
245
|
+
<dt>Status</dt>
|
|
246
|
+
<dd>{formatStatus(detail.process.lifecycleStatus)}</dd>
|
|
247
|
+
</div>
|
|
248
|
+
<div>
|
|
249
|
+
<dt>Started</dt>
|
|
250
|
+
<dd>{formatRelativeTime(detail.process.createdAt)}</dd>
|
|
251
|
+
</div>
|
|
252
|
+
<div>
|
|
253
|
+
<dt>Last updated</dt>
|
|
254
|
+
<dd>{formatRelativeTime(detail.process.updatedAt)}</dd>
|
|
255
|
+
</div>
|
|
256
|
+
<div>
|
|
257
|
+
<dt>Default model at creation</dt>
|
|
258
|
+
<dd>{detail.process.initialDefaultModelProfileId ?? "Not recorded for this process"}</dd>
|
|
259
|
+
</div>
|
|
260
|
+
<div>
|
|
261
|
+
<dt>Process type</dt>
|
|
262
|
+
<dd>{detail.processDisplayName ?? detail.process.processId}</dd>
|
|
263
|
+
</div>
|
|
264
|
+
<div>
|
|
265
|
+
<dt>Process ID</dt>
|
|
266
|
+
<dd class="mono breakable">{detail.process.id}</dd>
|
|
267
|
+
</div>
|
|
268
|
+
</dl>
|
|
269
|
+
</section>
|
|
270
|
+
|
|
271
|
+
{#if detail.launchConfiguration.projects.length > 0}
|
|
272
|
+
<section class="overlay-section" data-section="process-info-repositories">
|
|
273
|
+
<div class="section-heading-copy">
|
|
274
|
+
<h3>Repositories</h3>
|
|
275
|
+
<p>Source locations and branches used by this run.</p>
|
|
276
|
+
</div>
|
|
277
|
+
<div class="repository-list">
|
|
278
|
+
{#each detail.launchConfiguration.projects as project (project.key)}
|
|
279
|
+
<section class="repository-row">
|
|
280
|
+
<div class="repository-heading">
|
|
281
|
+
<h4>{project.key}</h4>
|
|
282
|
+
<span>{project.repoLocatorKind === "remote_url" ? "Remote URL" : "Local path"}</span>
|
|
283
|
+
</div>
|
|
284
|
+
<p class="mono breakable">{project.repoLocator}</p>
|
|
285
|
+
<dl class="branch-grid">
|
|
286
|
+
<div>
|
|
287
|
+
<dt>Base branch</dt>
|
|
288
|
+
<dd class="mono">{project.baseBranch}</dd>
|
|
289
|
+
</div>
|
|
290
|
+
<div>
|
|
291
|
+
<dt>Work branch</dt>
|
|
292
|
+
<dd class="mono breakable">{launchValue(project.workBranch)}</dd>
|
|
293
|
+
</div>
|
|
294
|
+
{#if project.pipelineStatus}
|
|
295
|
+
<div>
|
|
296
|
+
<dt>Pipeline status</dt>
|
|
297
|
+
<dd>{project.pipelineStatus}</dd>
|
|
298
|
+
</div>
|
|
299
|
+
{/if}
|
|
300
|
+
</dl>
|
|
301
|
+
{#if project.externalUrl}
|
|
302
|
+
<a href={project.externalUrl} target="_blank" rel="noreferrer">Open external project</a>
|
|
303
|
+
{/if}
|
|
304
|
+
</section>
|
|
305
|
+
{/each}
|
|
306
|
+
</div>
|
|
307
|
+
</section>
|
|
308
|
+
{/if}
|
|
309
|
+
|
|
310
|
+
<section class="overlay-section" data-section="process-info-usage-cost">
|
|
311
|
+
<div class="section-heading-copy">
|
|
312
|
+
<h3>Usage and cost</h3>
|
|
313
|
+
<p>Estimated totals across the LLM attempts recorded for this process.</p>
|
|
314
|
+
</div>
|
|
315
|
+
{#if processUsageEstimate}
|
|
316
|
+
<div
|
|
317
|
+
class="usage-line"
|
|
318
|
+
data-completeness={processUsageEstimate.isPartial ? "partial" : "complete"}
|
|
319
|
+
>
|
|
320
|
+
<ChronicleUsageStats usage={processUsageEstimate.usage} size="md" />
|
|
321
|
+
<span class="usage-coverage" data-section="process-info-usage-coverage">
|
|
322
|
+
(<span data-field="covered-turn-count" data-value={processUsageEstimate.coveredTurnCount}
|
|
323
|
+
>{processUsageEstimate.coveredTurnCount}/{processUsageEstimate.totalLlmTurnCount}
|
|
324
|
+
turns with usage</span
|
|
325
|
+
>{#if processUsageEstimate.missingUsageTurnCount > 0}; <span
|
|
326
|
+
data-field="missing-usage-turn-count"
|
|
327
|
+
data-value={processUsageEstimate.missingUsageTurnCount}
|
|
328
|
+
>{processUsageEstimate.missingUsageTurnCount} missing usage</span
|
|
329
|
+
>{/if}{#if processUsageEstimate.missingCostTurnCount > 0}; <span
|
|
330
|
+
data-field="missing-cost-turn-count"
|
|
331
|
+
data-value={processUsageEstimate.missingCostTurnCount}
|
|
332
|
+
>{processUsageEstimate.missingCostTurnCount} missing cost</span
|
|
333
|
+
>{/if})
|
|
334
|
+
</span>
|
|
335
|
+
</div>
|
|
336
|
+
{:else}
|
|
337
|
+
<p class="empty-copy">No Pi usage has been recorded for this process yet.</p>
|
|
338
|
+
{/if}
|
|
339
|
+
</section>
|
|
340
|
+
|
|
341
|
+
{#if detail.processFlow && detail.processFlow.spine.length > 0}
|
|
342
|
+
<section class="overlay-section" data-section="process-info-flow">
|
|
343
|
+
<div class="section-heading-copy">
|
|
344
|
+
<h3>Process flow</h3>
|
|
345
|
+
<p>The expected path through this process definition.</p>
|
|
346
|
+
</div>
|
|
347
|
+
<ProcessFlowDiagram flow={detail.processFlow} mode="happy" expandable={true} />
|
|
348
|
+
</section>
|
|
349
|
+
{/if}
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
<div
|
|
353
|
+
id={panelId("launch")}
|
|
354
|
+
class="tab-panel"
|
|
355
|
+
role="tabpanel"
|
|
356
|
+
aria-labelledby={tabId("launch")}
|
|
357
|
+
hidden={activeTab !== "launch"}
|
|
358
|
+
data-section="process-info-launch-config"
|
|
359
|
+
>
|
|
360
|
+
<section class="overlay-section">
|
|
361
|
+
<div class="section-heading-copy">
|
|
362
|
+
<h3>Launch inputs</h3>
|
|
363
|
+
<p>The values supplied when this process was created.</p>
|
|
364
|
+
</div>
|
|
365
|
+
{#if
|
|
366
|
+
detail.modelConfiguration.state?.kind === "blocked" &&
|
|
367
|
+
detail.process.lifecycleStatus !== "completed" &&
|
|
368
|
+
detail.process.lifecycleStatus !== "aborted"
|
|
369
|
+
}
|
|
370
|
+
<div class="model-configuration-warning" role="alert">
|
|
371
|
+
<strong>Saved model configuration needs attention</strong>
|
|
372
|
+
<ul>
|
|
373
|
+
{#each detail.modelConfiguration.state.issues as issue, index (issue.turnId ?? `${issue.reason}:${index}`)}
|
|
374
|
+
<li>{modelConfigurationIssueLabel(issue)}</li>
|
|
375
|
+
{/each}
|
|
376
|
+
</ul>
|
|
377
|
+
</div>
|
|
378
|
+
{/if}
|
|
379
|
+
{#if detail.launchConfiguration.paramsParseError}
|
|
380
|
+
<p class="warning-copy">
|
|
381
|
+
Launcher parameters could not be decoded: {detail.launchConfiguration.paramsParseError}
|
|
382
|
+
</p>
|
|
383
|
+
{:else if detail.launchConfiguration.parameters.length > 0}
|
|
384
|
+
<dl class="detail-grid launch-parameter-grid">
|
|
385
|
+
{#each detail.launchConfiguration.parameters as parameter (parameter.fieldId)}
|
|
386
|
+
<dt>{parameter.label}</dt>
|
|
387
|
+
<dd class="launch-config-value" data-field={parameter.fieldId}>
|
|
388
|
+
{launchValue(parameter.value)}
|
|
389
|
+
</dd>
|
|
390
|
+
{/each}
|
|
391
|
+
</dl>
|
|
392
|
+
{:else}
|
|
393
|
+
<p class="empty-copy">No launcher inputs were recorded for this process.</p>
|
|
394
|
+
{/if}
|
|
395
|
+
</section>
|
|
396
|
+
|
|
397
|
+
{#if hasLaunchConfiguration(detail)}
|
|
398
|
+
<details class="section-disclosure">
|
|
399
|
+
<summary>Launcher details</summary>
|
|
400
|
+
<div class="disclosure-body">
|
|
401
|
+
<dl class="detail-grid">
|
|
402
|
+
{#if detail.launchConfiguration.launcherLabel}
|
|
403
|
+
<dt>Launcher</dt>
|
|
404
|
+
<dd>{detail.launchConfiguration.launcherLabel}</dd>
|
|
405
|
+
{/if}
|
|
406
|
+
{#if detail.launchConfiguration.launcherId}
|
|
407
|
+
<dt>Launcher ID</dt>
|
|
408
|
+
<dd class="mono breakable">{detail.launchConfiguration.launcherId}</dd>
|
|
409
|
+
{/if}
|
|
410
|
+
{#if detail.launchConfiguration.launcherSchemaTitle}
|
|
411
|
+
<dt>Form</dt>
|
|
412
|
+
<dd>{detail.launchConfiguration.launcherSchemaTitle}</dd>
|
|
413
|
+
{/if}
|
|
414
|
+
{#if detail.launchConfiguration.projects.length > 0}
|
|
415
|
+
<dt>Repository sources</dt>
|
|
416
|
+
<dd>
|
|
417
|
+
{detail.launchConfiguration.projects
|
|
418
|
+
.map((project) => `${project.key}: ${project.repoLocatorKind === "remote_url" ? "Remote URL" : "Local path"}`)
|
|
419
|
+
.join(", ")}
|
|
420
|
+
</dd>
|
|
421
|
+
{/if}
|
|
422
|
+
</dl>
|
|
423
|
+
</div>
|
|
424
|
+
</details>
|
|
425
|
+
{/if}
|
|
426
|
+
</div>
|
|
427
|
+
|
|
428
|
+
<div
|
|
429
|
+
id={panelId("turns")}
|
|
430
|
+
class="tab-panel"
|
|
431
|
+
role="tabpanel"
|
|
432
|
+
aria-labelledby={tabId("turns")}
|
|
433
|
+
hidden={activeTab !== "turns"}
|
|
434
|
+
data-section="process-info-turns"
|
|
435
|
+
>
|
|
436
|
+
<div class="advanced-intro">
|
|
437
|
+
<h3>Turns</h3>
|
|
438
|
+
<p>Models, Pi tools, and outcome schemas for each configured LLM turn.</p>
|
|
439
|
+
</div>
|
|
440
|
+
|
|
441
|
+
<section class="overlay-section" data-section="process-info-pi-tools">
|
|
442
|
+
<div class="section-heading-copy">
|
|
443
|
+
<h3>Available Pi tools</h3>
|
|
444
|
+
<p>The process-wide union of built-in tools declared by its LLM turns.</p>
|
|
445
|
+
</div>
|
|
446
|
+
<div class="tool-chip-group">
|
|
447
|
+
{#each detail.runDetails.availablePiToolNames as toolName (toolName)}
|
|
448
|
+
<span class="tool-chip">{toolName}</span>
|
|
449
|
+
{:else}
|
|
450
|
+
<span class="empty-copy">No built-in Pi tools are available.</span>
|
|
451
|
+
{/each}
|
|
452
|
+
</div>
|
|
453
|
+
</section>
|
|
454
|
+
|
|
455
|
+
<section class="turn-tools-section" data-section="process-info-turn-tools">
|
|
456
|
+
<div class="turn-tools-heading">
|
|
457
|
+
<div class="section-heading-copy">
|
|
458
|
+
<h3>Configured turns</h3>
|
|
459
|
+
<p>Each turn shows its resolved model source, active Pi tools, and outcome tools.</p>
|
|
460
|
+
</div>
|
|
461
|
+
<span class="summary-detail">{turnRows.length} configured turns</span>
|
|
462
|
+
</div>
|
|
463
|
+
{#if turnRows.length === 0}
|
|
464
|
+
<p class="empty-copy">No LLM turn details are available for this process.</p>
|
|
465
|
+
{:else}
|
|
466
|
+
<div class="turn-tool-stack">
|
|
467
|
+
{#each turnRows as turn (turn.turnId)}
|
|
468
|
+
<section class="turn-tool-section" data-turn-id={turn.turnId}>
|
|
469
|
+
<header class="turn-tool-header">
|
|
470
|
+
<span class="turn-tool-identity">
|
|
471
|
+
<strong>{turn.description}</strong>
|
|
472
|
+
<span class="mono">{turn.turnId}</span>
|
|
473
|
+
</span>
|
|
474
|
+
<span class="turn-model-summary">
|
|
475
|
+
<strong>{effectiveTurnModel(turn)}</strong>
|
|
476
|
+
<span>{turnModelSourceLabel(turn)}</span>
|
|
477
|
+
</span>
|
|
478
|
+
<span class="turn-tool-names">
|
|
479
|
+
<span>Pi: {toolNames(turn.run?.activePiToolNames ?? [])}</span>
|
|
480
|
+
<span>Outcomes: {outcomeToolNames(turn.run)}</span>
|
|
481
|
+
</span>
|
|
482
|
+
</header>
|
|
483
|
+
<div class="turn-tool-body">
|
|
484
|
+
<p class="turn-branch">{formatPathTypeLabel(turn.pathType)}</p>
|
|
485
|
+
{#if !turn.run || turn.run.outcomeActions.length === 0}
|
|
486
|
+
<p class="empty-copy">This turn does not declare outcome tools.</p>
|
|
487
|
+
{:else}
|
|
488
|
+
<ul class="outcome-tool-list">
|
|
489
|
+
{#each turn.run.outcomeActions as tool (tool.name)}
|
|
490
|
+
<li>
|
|
491
|
+
<div class="tool-heading">
|
|
492
|
+
<h4>{tool.name}</h4>
|
|
493
|
+
<p>{tool.description}</p>
|
|
494
|
+
</div>
|
|
495
|
+
{#if tool.parameters.length > 0}
|
|
496
|
+
<dl class="parameter-list">
|
|
497
|
+
{#each tool.parameters as parameter (parameter.name)}
|
|
498
|
+
<div class="parameter-row">
|
|
499
|
+
<dt>
|
|
500
|
+
<span class="parameter-name mono">{parameter.name}</span>
|
|
501
|
+
<span class="parameter-type">{parameter.type}</span>
|
|
502
|
+
{#if parameter.required}
|
|
503
|
+
<span class="parameter-required">required</span>
|
|
504
|
+
{/if}
|
|
505
|
+
</dt>
|
|
506
|
+
<dd>{parameter.description}</dd>
|
|
507
|
+
</div>
|
|
508
|
+
{/each}
|
|
509
|
+
</dl>
|
|
510
|
+
{:else}
|
|
511
|
+
<p class="empty-copy is-inline">This tool does not take parameters.</p>
|
|
512
|
+
{/if}
|
|
513
|
+
</li>
|
|
514
|
+
{/each}
|
|
515
|
+
</ul>
|
|
516
|
+
{/if}
|
|
517
|
+
</div>
|
|
518
|
+
</section>
|
|
519
|
+
{/each}
|
|
520
|
+
</div>
|
|
521
|
+
{/if}
|
|
522
|
+
</section>
|
|
523
|
+
</div>
|
|
524
|
+
|
|
525
|
+
<div
|
|
526
|
+
id={panelId("advanced")}
|
|
527
|
+
class="tab-panel"
|
|
528
|
+
role="tabpanel"
|
|
529
|
+
aria-labelledby={tabId("advanced")}
|
|
530
|
+
hidden={activeTab !== "advanced"}
|
|
531
|
+
data-section="process-info-advanced"
|
|
532
|
+
>
|
|
533
|
+
<div class="advanced-intro">
|
|
534
|
+
<h3>Advanced configuration</h3>
|
|
535
|
+
<p>System instructions and the model default retained from process creation.</p>
|
|
536
|
+
</div>
|
|
537
|
+
|
|
538
|
+
<section class="overlay-section" data-section="process-info-model-resolution">
|
|
539
|
+
<div class="section-heading-copy">
|
|
540
|
+
<h3>Launch model</h3>
|
|
541
|
+
<p>The effective process default captured when this process was created.</p>
|
|
542
|
+
</div>
|
|
543
|
+
<dl class="detail-grid">
|
|
544
|
+
<dt>Default at creation</dt>
|
|
545
|
+
<dd>{detail.process.initialDefaultModelProfileId ?? "Not recorded for this process"}</dd>
|
|
546
|
+
<dt>Explicit launch override</dt>
|
|
547
|
+
<dd>{detail.modelConfiguration.defaultModel.instanceModelProfileId ?? "None"}</dd>
|
|
548
|
+
</dl>
|
|
549
|
+
</section>
|
|
550
|
+
|
|
551
|
+
<details class="section-disclosure" data-section="process-info-system-prompt">
|
|
552
|
+
<summary>System instructions</summary>
|
|
553
|
+
<div class="disclosure-body">
|
|
554
|
+
<div class="subsection">
|
|
555
|
+
<h4>System prompt</h4>
|
|
556
|
+
{#if detail.runDetails.systemPrompt}
|
|
557
|
+
<pre class="plain-block">{detail.runDetails.systemPrompt}</pre>
|
|
558
|
+
{:else}
|
|
559
|
+
<p class="empty-copy">Using Pi's default system prompt.</p>
|
|
560
|
+
{/if}
|
|
561
|
+
</div>
|
|
562
|
+
{#if detail.runDetails.appendSystemPrompt}
|
|
563
|
+
<div class="subsection">
|
|
564
|
+
<h4>Appended instructions</h4>
|
|
565
|
+
<pre class="plain-block">{detail.runDetails.appendSystemPrompt}</pre>
|
|
566
|
+
</div>
|
|
567
|
+
{/if}
|
|
568
|
+
</div>
|
|
569
|
+
</details>
|
|
570
|
+
</div>
|
|
571
|
+
|
|
572
|
+
<div
|
|
573
|
+
id={panelId("conversation-tree")}
|
|
574
|
+
class="tab-panel"
|
|
575
|
+
role="tabpanel"
|
|
576
|
+
aria-labelledby={tabId("conversation-tree")}
|
|
577
|
+
hidden={activeTab !== "conversation-tree"}
|
|
578
|
+
data-section="process-info-conversation-tree"
|
|
579
|
+
>
|
|
580
|
+
<div class="advanced-intro">
|
|
581
|
+
<h3>Conversation tree</h3>
|
|
582
|
+
<p>Trace fresh contexts, inherited branches, and the inputs passed between them.</p>
|
|
583
|
+
</div>
|
|
584
|
+
{#if detail.instanceTree.nodes.length === 0}
|
|
585
|
+
<p class="tree-status">No conversation history has been recorded yet.</p>
|
|
586
|
+
{:else}
|
|
587
|
+
<ConversationTreeDiagram tree={detail.instanceTree} {railItems} />
|
|
588
|
+
{/if}
|
|
589
|
+
</div>
|
|
590
|
+
</div>
|
|
591
|
+
</div>
|
|
592
|
+
|
|
593
|
+
<style>
|
|
594
|
+
.process-info-overlay {
|
|
595
|
+
display: grid;
|
|
596
|
+
grid-template-rows: auto auto minmax(0, 1fr);
|
|
597
|
+
height: 100%;
|
|
598
|
+
min-height: 0;
|
|
599
|
+
border-radius: 20px;
|
|
600
|
+
border: 1px solid color-mix(in srgb, var(--chronicle-border-strong) 72%, white 28%);
|
|
601
|
+
background: color-mix(in srgb, var(--chronicle-card-surface) 98%, white 2%);
|
|
602
|
+
box-shadow: 0 20px 56px rgba(15, 23, 42, 0.18);
|
|
603
|
+
overflow: hidden;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.overlay-header {
|
|
607
|
+
display: flex;
|
|
608
|
+
justify-content: space-between;
|
|
609
|
+
gap: var(--space-md);
|
|
610
|
+
align-items: start;
|
|
611
|
+
padding: var(--space-md) 18px var(--space-sm);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.overlay-heading-copy {
|
|
615
|
+
display: grid;
|
|
616
|
+
gap: 4px;
|
|
617
|
+
min-width: 0;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.overlay-header h2,
|
|
621
|
+
.section-heading-copy h3,
|
|
622
|
+
.advanced-intro h3,
|
|
623
|
+
.repository-heading h4,
|
|
624
|
+
.subsection h4,
|
|
625
|
+
.tool-heading h4 {
|
|
626
|
+
margin: 0;
|
|
627
|
+
color: var(--chronicle-text);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.overlay-header h2 {
|
|
631
|
+
font-size: var(--type-title-sm);
|
|
632
|
+
line-height: 1.2;
|
|
633
|
+
font-weight: 680;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.overlay-heading-copy p,
|
|
637
|
+
.section-heading-copy p,
|
|
638
|
+
.advanced-intro p,
|
|
639
|
+
.repository-row p,
|
|
640
|
+
.tool-heading p,
|
|
641
|
+
.empty-copy {
|
|
642
|
+
margin: 0;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.overlay-heading-copy p {
|
|
646
|
+
display: flex;
|
|
647
|
+
flex-wrap: wrap;
|
|
648
|
+
gap: 4px;
|
|
649
|
+
font-size: var(--type-body-sm);
|
|
650
|
+
color: var(--chronicle-text-muted);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.overlay-close {
|
|
654
|
+
min-height: 36px;
|
|
655
|
+
padding: 0 12px;
|
|
656
|
+
border-radius: 999px;
|
|
657
|
+
border: 1px solid color-mix(in srgb, var(--chronicle-border) 82%, white 18%);
|
|
658
|
+
background: color-mix(in srgb, white 90%, var(--chronicle-panel-muted) 10%);
|
|
659
|
+
font: inherit;
|
|
660
|
+
font-size: 13px;
|
|
661
|
+
font-weight: 620;
|
|
662
|
+
color: var(--chronicle-text);
|
|
663
|
+
cursor: pointer;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.overlay-index {
|
|
667
|
+
display: flex;
|
|
668
|
+
gap: var(--space-lg);
|
|
669
|
+
min-width: 0;
|
|
670
|
+
overflow-x: auto;
|
|
671
|
+
padding: 0 18px;
|
|
672
|
+
border-bottom: 1px solid var(--chronicle-border);
|
|
673
|
+
scrollbar-width: thin;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.overlay-index button {
|
|
677
|
+
position: relative;
|
|
678
|
+
flex: 0 0 auto;
|
|
679
|
+
min-height: 42px;
|
|
680
|
+
padding: 0 2px;
|
|
681
|
+
border: 0;
|
|
682
|
+
background: transparent;
|
|
683
|
+
color: var(--chronicle-text-muted);
|
|
684
|
+
font: inherit;
|
|
685
|
+
font-size: var(--type-body-sm);
|
|
686
|
+
font-weight: 620;
|
|
687
|
+
cursor: pointer;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.overlay-index button::after {
|
|
691
|
+
content: "";
|
|
692
|
+
position: absolute;
|
|
693
|
+
left: 0;
|
|
694
|
+
right: 0;
|
|
695
|
+
bottom: -1px;
|
|
696
|
+
height: 2px;
|
|
697
|
+
border-radius: 999px;
|
|
698
|
+
background: transparent;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.overlay-index button:hover,
|
|
702
|
+
.overlay-index button.is-active {
|
|
703
|
+
color: var(--chronicle-text);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.overlay-index button.is-active::after {
|
|
707
|
+
background: var(--chronicle-accent);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.overlay-scroll {
|
|
711
|
+
min-height: 0;
|
|
712
|
+
overflow: auto;
|
|
713
|
+
padding: var(--space-lg) 18px var(--space-xl);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.tab-panel {
|
|
717
|
+
display: grid;
|
|
718
|
+
gap: var(--space-lg);
|
|
719
|
+
max-width: 880px;
|
|
720
|
+
margin-inline: auto;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.tab-panel[hidden] {
|
|
724
|
+
display: none;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.tree-status {
|
|
728
|
+
margin: 0;
|
|
729
|
+
padding: var(--space-md);
|
|
730
|
+
border: 1px solid var(--chronicle-border);
|
|
731
|
+
border-radius: 10px;
|
|
732
|
+
color: var(--chronicle-text-muted);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.overlay-section,
|
|
736
|
+
.advanced-intro {
|
|
737
|
+
display: grid;
|
|
738
|
+
gap: var(--space-sm);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.overlay-section + .overlay-section,
|
|
742
|
+
.advanced-intro + .overlay-section {
|
|
743
|
+
padding-top: var(--space-lg);
|
|
744
|
+
border-top: 1px solid color-mix(in srgb, var(--chronicle-border) 84%, white 16%);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.section-heading-copy,
|
|
748
|
+
.advanced-intro {
|
|
749
|
+
display: grid;
|
|
750
|
+
gap: 3px;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.section-heading-copy h3,
|
|
754
|
+
.advanced-intro h3 {
|
|
755
|
+
font-size: 15px;
|
|
756
|
+
line-height: 1.3;
|
|
757
|
+
font-weight: 680;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.section-heading-copy p,
|
|
761
|
+
.advanced-intro p,
|
|
762
|
+
.tool-heading p,
|
|
763
|
+
.empty-copy {
|
|
764
|
+
font-size: var(--type-body-sm);
|
|
765
|
+
line-height: 1.55;
|
|
766
|
+
color: var(--chronicle-text-muted);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.fact-grid,
|
|
770
|
+
.branch-grid {
|
|
771
|
+
margin: 0;
|
|
772
|
+
display: grid;
|
|
773
|
+
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
774
|
+
gap: var(--space-md) var(--space-lg);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.fact-grid > div,
|
|
778
|
+
.branch-grid > div {
|
|
779
|
+
display: grid;
|
|
780
|
+
gap: 3px;
|
|
781
|
+
min-width: 0;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.fact-grid dt,
|
|
785
|
+
.branch-grid dt,
|
|
786
|
+
.detail-grid dt {
|
|
787
|
+
font-size: 12px;
|
|
788
|
+
font-weight: 620;
|
|
789
|
+
color: var(--chronicle-text-muted);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.fact-grid dd,
|
|
793
|
+
.branch-grid dd,
|
|
794
|
+
.detail-grid dd,
|
|
795
|
+
.detail-grid dt {
|
|
796
|
+
margin: 0;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.fact-grid dd,
|
|
800
|
+
.branch-grid dd,
|
|
801
|
+
.detail-grid dd {
|
|
802
|
+
font-size: 13px;
|
|
803
|
+
line-height: 1.5;
|
|
804
|
+
color: var(--chronicle-text);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.detail-grid {
|
|
808
|
+
margin: 0;
|
|
809
|
+
display: grid;
|
|
810
|
+
grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
|
|
811
|
+
gap: 9px 16px;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.launch-parameter-grid dd {
|
|
815
|
+
white-space: pre-wrap;
|
|
816
|
+
word-break: break-word;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.repository-list {
|
|
820
|
+
display: grid;
|
|
821
|
+
gap: 0;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.repository-row {
|
|
825
|
+
display: grid;
|
|
826
|
+
gap: var(--space-xs);
|
|
827
|
+
padding: var(--space-md) 0;
|
|
828
|
+
border-top: 1px solid color-mix(in srgb, var(--chronicle-border) 84%, white 16%);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.repository-row:last-child {
|
|
832
|
+
padding-bottom: 0;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.repository-heading {
|
|
836
|
+
display: flex;
|
|
837
|
+
justify-content: space-between;
|
|
838
|
+
gap: var(--space-sm);
|
|
839
|
+
align-items: baseline;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.repository-heading h4 {
|
|
843
|
+
font-size: 14px;
|
|
844
|
+
font-weight: 670;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.repository-heading span {
|
|
848
|
+
font-size: 12px;
|
|
849
|
+
color: var(--chronicle-text-muted);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.repository-row > p {
|
|
853
|
+
font-size: 12px;
|
|
854
|
+
line-height: 1.5;
|
|
855
|
+
color: var(--chronicle-text-muted);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.repository-row a {
|
|
859
|
+
width: fit-content;
|
|
860
|
+
font-size: 13px;
|
|
861
|
+
font-weight: 620;
|
|
862
|
+
color: var(--chronicle-link);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.usage-line {
|
|
866
|
+
display: flex;
|
|
867
|
+
flex-wrap: wrap;
|
|
868
|
+
align-items: baseline;
|
|
869
|
+
gap: var(--space-xs);
|
|
870
|
+
font-size: 12px;
|
|
871
|
+
line-height: 1.5;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.usage-line :global(.usage-stats) {
|
|
875
|
+
color: var(--chronicle-text);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.usage-coverage {
|
|
879
|
+
color: var(--chronicle-text-muted);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.section-disclosure {
|
|
883
|
+
color: var(--chronicle-text);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.section-disclosure > summary {
|
|
887
|
+
cursor: pointer;
|
|
888
|
+
font-size: 13px;
|
|
889
|
+
font-weight: 650;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.section-disclosure {
|
|
893
|
+
border-top: 1px solid color-mix(in srgb, var(--chronicle-border) 84%, white 16%);
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.section-disclosure > summary {
|
|
897
|
+
position: relative;
|
|
898
|
+
display: flex;
|
|
899
|
+
justify-content: space-between;
|
|
900
|
+
gap: var(--space-md);
|
|
901
|
+
align-items: baseline;
|
|
902
|
+
padding: var(--space-md) 0 var(--space-md) 20px;
|
|
903
|
+
list-style: none;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.section-disclosure > summary::-webkit-details-marker {
|
|
907
|
+
display: none;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.section-disclosure > summary::before {
|
|
911
|
+
content: "›";
|
|
912
|
+
position: absolute;
|
|
913
|
+
left: 2px;
|
|
914
|
+
top: 50%;
|
|
915
|
+
color: var(--chronicle-text-faint);
|
|
916
|
+
font-size: 18px;
|
|
917
|
+
font-weight: 520;
|
|
918
|
+
line-height: 1;
|
|
919
|
+
transform: translateY(-50%);
|
|
920
|
+
transition: transform var(--duration-fast) var(--ease-out-quart);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.section-disclosure[open] > summary::before {
|
|
924
|
+
transform: translateY(-50%) rotate(90deg);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.summary-detail {
|
|
928
|
+
font-size: 12px;
|
|
929
|
+
font-weight: 520;
|
|
930
|
+
color: var(--chronicle-text-muted);
|
|
931
|
+
text-align: right;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.disclosure-body {
|
|
935
|
+
display: grid;
|
|
936
|
+
gap: var(--space-md);
|
|
937
|
+
padding: 0 0 var(--space-lg) var(--space-lg);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
.model-configuration-warning {
|
|
941
|
+
margin: 0;
|
|
942
|
+
padding: 0.75rem 0.9rem;
|
|
943
|
+
border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
|
|
944
|
+
border-radius: 0.6rem;
|
|
945
|
+
background: color-mix(in srgb, var(--warning) 10%, transparent);
|
|
946
|
+
color: var(--text-primary);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.model-configuration-warning strong {
|
|
950
|
+
color: var(--warning);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.model-configuration-warning ul {
|
|
954
|
+
margin: 0.4rem 0 0;
|
|
955
|
+
padding-left: 1.2rem;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.warning-copy {
|
|
959
|
+
margin: 0;
|
|
960
|
+
padding: 10px 12px;
|
|
961
|
+
border-radius: var(--radius-sm);
|
|
962
|
+
border: 1px solid color-mix(in srgb, var(--chronicle-attention) 38%, var(--chronicle-border) 62%);
|
|
963
|
+
background: color-mix(in srgb, white 92%, var(--chronicle-attention) 8%);
|
|
964
|
+
font-size: 13px;
|
|
965
|
+
line-height: 1.5;
|
|
966
|
+
color: color-mix(in srgb, var(--chronicle-attention) 78%, var(--chronicle-text) 22%);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.outcome-tool-list {
|
|
970
|
+
margin: 0;
|
|
971
|
+
padding: 0;
|
|
972
|
+
list-style: none;
|
|
973
|
+
display: grid;
|
|
974
|
+
gap: var(--space-sm);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.outcome-tool-list li {
|
|
978
|
+
display: grid;
|
|
979
|
+
gap: var(--space-xs);
|
|
980
|
+
padding-bottom: var(--space-sm);
|
|
981
|
+
border-bottom: 1px solid color-mix(in srgb, var(--chronicle-border) 84%, white 16%);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.outcome-tool-list li:last-child {
|
|
985
|
+
padding-bottom: 0;
|
|
986
|
+
border-bottom: 0;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.turn-branch {
|
|
990
|
+
width: fit-content;
|
|
991
|
+
font-size: 12px;
|
|
992
|
+
color: var(--chronicle-text-faint);
|
|
993
|
+
padding: 2px 8px;
|
|
994
|
+
background: color-mix(in srgb, var(--chronicle-panel-muted) 70%, transparent 30%);
|
|
995
|
+
border-radius: 4px;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.subsection {
|
|
999
|
+
display: grid;
|
|
1000
|
+
gap: var(--space-xs);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.subsection h4,
|
|
1004
|
+
.tool-heading h4 {
|
|
1005
|
+
font-size: 13px;
|
|
1006
|
+
font-weight: 670;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.plain-block {
|
|
1010
|
+
margin: 0;
|
|
1011
|
+
padding: 14px 16px;
|
|
1012
|
+
border-radius: var(--radius-md);
|
|
1013
|
+
border: 1px solid color-mix(in srgb, var(--chronicle-border) 86%, white 14%);
|
|
1014
|
+
background: color-mix(in srgb, var(--chronicle-panel-muted) 88%, white 12%);
|
|
1015
|
+
font-family: var(--font-mono);
|
|
1016
|
+
font-size: 12px;
|
|
1017
|
+
line-height: 1.55;
|
|
1018
|
+
white-space: pre-wrap;
|
|
1019
|
+
word-break: break-word;
|
|
1020
|
+
color: var(--chronicle-text);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.tool-chip-group {
|
|
1024
|
+
display: flex;
|
|
1025
|
+
flex-wrap: wrap;
|
|
1026
|
+
gap: var(--space-xs);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.tool-chip {
|
|
1030
|
+
display: inline-flex;
|
|
1031
|
+
align-items: center;
|
|
1032
|
+
min-height: 28px;
|
|
1033
|
+
padding: 0 10px;
|
|
1034
|
+
border-radius: 999px;
|
|
1035
|
+
border: 1px solid color-mix(in srgb, var(--chronicle-border) 80%, white 20%);
|
|
1036
|
+
background: color-mix(in srgb, white 90%, var(--chronicle-panel-muted) 10%);
|
|
1037
|
+
font-size: 12px;
|
|
1038
|
+
font-weight: 620;
|
|
1039
|
+
color: var(--chronicle-text);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.turn-tools-section {
|
|
1043
|
+
display: grid;
|
|
1044
|
+
gap: var(--space-sm);
|
|
1045
|
+
padding-top: var(--space-lg);
|
|
1046
|
+
border-top: 1px solid color-mix(in srgb, var(--chronicle-border) 84%, white 16%);
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.turn-tools-heading {
|
|
1050
|
+
display: flex;
|
|
1051
|
+
justify-content: space-between;
|
|
1052
|
+
gap: var(--space-md);
|
|
1053
|
+
align-items: start;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.turn-tool-stack {
|
|
1057
|
+
display: grid;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.turn-tool-section {
|
|
1061
|
+
display: grid;
|
|
1062
|
+
gap: var(--space-xs);
|
|
1063
|
+
padding: var(--space-md) 0;
|
|
1064
|
+
border-top: 1px solid color-mix(in srgb, var(--chronicle-border) 84%, white 16%);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.turn-tool-section:last-child {
|
|
1068
|
+
padding-bottom: 0;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.turn-tool-header {
|
|
1072
|
+
display: grid;
|
|
1073
|
+
grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 0.9fr) minmax(220px, 1.2fr);
|
|
1074
|
+
gap: var(--space-md);
|
|
1075
|
+
align-items: start;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.turn-tool-identity,
|
|
1079
|
+
.turn-model-summary,
|
|
1080
|
+
.turn-tool-names {
|
|
1081
|
+
display: grid;
|
|
1082
|
+
gap: 3px;
|
|
1083
|
+
min-width: 0;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.turn-tool-identity strong,
|
|
1087
|
+
.turn-model-summary strong {
|
|
1088
|
+
font-size: 13px;
|
|
1089
|
+
font-weight: 650;
|
|
1090
|
+
color: var(--chronicle-text);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.turn-model-summary,
|
|
1094
|
+
.turn-tool-names {
|
|
1095
|
+
font-size: 12px;
|
|
1096
|
+
font-weight: 520;
|
|
1097
|
+
line-height: 1.45;
|
|
1098
|
+
color: var(--chronicle-text-muted);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.turn-tool-body {
|
|
1102
|
+
display: grid;
|
|
1103
|
+
gap: var(--space-md);
|
|
1104
|
+
padding: var(--space-xs) 0 0 var(--space-lg);
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.parameter-list {
|
|
1108
|
+
margin: 0;
|
|
1109
|
+
display: grid;
|
|
1110
|
+
gap: var(--space-sm);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
.parameter-row {
|
|
1114
|
+
display: grid;
|
|
1115
|
+
gap: 4px;
|
|
1116
|
+
padding-left: var(--space-sm);
|
|
1117
|
+
border-left: 1px solid color-mix(in srgb, var(--chronicle-border) 86%, white 14%);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.parameter-row dt {
|
|
1121
|
+
display: flex;
|
|
1122
|
+
flex-wrap: wrap;
|
|
1123
|
+
gap: var(--space-xs);
|
|
1124
|
+
align-items: center;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.parameter-list dd {
|
|
1128
|
+
margin: 0;
|
|
1129
|
+
font-size: 13px;
|
|
1130
|
+
line-height: 1.5;
|
|
1131
|
+
color: var(--chronicle-text-muted);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.parameter-name {
|
|
1135
|
+
color: var(--chronicle-text);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.parameter-type,
|
|
1139
|
+
.parameter-required {
|
|
1140
|
+
font-size: 11px;
|
|
1141
|
+
font-weight: 700;
|
|
1142
|
+
letter-spacing: 0.06em;
|
|
1143
|
+
text-transform: uppercase;
|
|
1144
|
+
color: var(--chronicle-text-muted);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.parameter-required {
|
|
1148
|
+
color: color-mix(in srgb, var(--chronicle-accent) 70%, var(--chronicle-text) 30%);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.empty-copy.is-inline {
|
|
1152
|
+
font-size: 12px;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.mono {
|
|
1156
|
+
font-family: var(--font-mono);
|
|
1157
|
+
font-size: 12px;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.breakable,
|
|
1161
|
+
.launch-config-value {
|
|
1162
|
+
white-space: pre-wrap;
|
|
1163
|
+
word-break: break-word;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
@media (max-width: 820px) {
|
|
1167
|
+
.overlay-index {
|
|
1168
|
+
gap: var(--space-md);
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.overlay-scroll {
|
|
1172
|
+
padding-inline: 14px;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
.detail-grid {
|
|
1176
|
+
grid-template-columns: 1fr;
|
|
1177
|
+
gap: 4px;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.detail-grid dd + dt {
|
|
1181
|
+
margin-top: var(--space-xs);
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.repository-heading,
|
|
1185
|
+
.section-disclosure > summary {
|
|
1186
|
+
align-items: start;
|
|
1187
|
+
flex-direction: column;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.summary-detail {
|
|
1191
|
+
text-align: left;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.turn-tools-heading {
|
|
1195
|
+
flex-direction: column;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.turn-tool-header {
|
|
1199
|
+
grid-template-columns: 1fr;
|
|
1200
|
+
gap: var(--space-xs);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
@media (max-width: 520px) {
|
|
1205
|
+
.overlay-header {
|
|
1206
|
+
align-items: center;
|
|
1207
|
+
padding-inline: 14px;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
.overlay-heading-copy p .mono,
|
|
1211
|
+
.overlay-heading-copy p [aria-hidden="true"] {
|
|
1212
|
+
display: none;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.overlay-index {
|
|
1216
|
+
padding-inline: 14px;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.fact-grid,
|
|
1220
|
+
.branch-grid {
|
|
1221
|
+
grid-template-columns: 1fr;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.disclosure-body,
|
|
1225
|
+
.turn-tool-body {
|
|
1226
|
+
padding-left: var(--space-sm);
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
</style>
|