@leitwerk-dev/ui 0.1.9 → 0.2.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/assets/ApiTokensPage-B15IzsLp.css +1 -0
- package/dist/assets/ApiTokensPage-ClJp9PYr.js +1 -0
- package/dist/assets/ChronicleMarkdown-lqwX9Ywa.js +16 -0
- package/dist/assets/ChronicleMarkdown-wsUF8Z75.css +1 -0
- package/dist/assets/FutureLaunchDetailPage-BOoZaG11.css +1 -0
- package/dist/assets/FutureLaunchDetailPage-Bdlgm4cJ.js +1 -0
- package/dist/assets/GenericLauncher-Bf7Eb1Rw.js +1 -0
- package/dist/assets/GenericLauncher-CExW6wei.css +1 -0
- package/dist/assets/HomePage-CSkNdC4m.js +1 -0
- package/dist/assets/PageHeader-DPuQInDo.css +1 -0
- package/dist/assets/PageHeader-sphJnWL1.js +1 -0
- package/dist/assets/ProcessActionsMenu-DLMywI9c.js +1 -0
- package/dist/assets/ProcessActionsMenu-VKT7PE6z.css +1 -0
- package/dist/assets/ProcessDetailPage-Cth6A0DN.css +1 -0
- package/dist/assets/ProcessDetailPage-fvvdvO19.js +14 -0
- package/dist/assets/ProcessFlowDiagram-Dx2wheGN.js +2 -0
- package/dist/assets/ProcessesPage-uLl7LXp8.js +1 -0
- package/dist/assets/ProcessesPage-yPjjrzjg.css +1 -0
- package/dist/assets/ScheduleDateTimePicker-DmojMRxN.js +1 -0
- package/dist/assets/{ScheduleDateTimePicker-CadXN9z7.css → ScheduleDateTimePicker-uacJAkIq.css} +1 -1
- package/dist/assets/SkillsPage-CJrtt8xU.css +1 -0
- package/dist/assets/SkillsPage-CotbGUxm.js +2 -0
- package/dist/assets/WatchersPage-ByWGNJet.js +1 -0
- package/dist/assets/WatchersPage-cRBnmTAD.css +1 -0
- package/dist/assets/external-links-CX92-VRP.js +1 -0
- package/dist/assets/http-client-VpPXJwbR.js +2 -0
- package/dist/assets/index-C7zNe3je.js +6 -0
- package/dist/assets/index-DtEI5gsQ.css +1 -0
- package/dist/assets/index-client-BYQviCtQ.js +2 -0
- package/dist/assets/{mermaid-render.worker-DAVgiVRG.js → mermaid-render.worker-QW2WZpEE.js} +12 -12
- package/dist/assets/process-terminal-display-BQRQwGod.js +1 -0
- package/dist/assets/router.svelte-EEldxHlO.js +1 -0
- package/dist/index.html +8 -8
- package/package.json +8 -8
- package/src/App.svelte +36 -0
- package/src/chronicle/components/ChronicleActionSection.svelte +70 -143
- package/src/chronicle/components/ChronicleCreateIssueButton.svelte +22 -0
- package/src/chronicle/components/ChronicleEntryHeader.svelte +76 -0
- package/src/chronicle/components/ChronicleExpandButton.svelte +11 -34
- package/src/chronicle/components/ChronicleFailureMessage.svelte +41 -0
- package/src/chronicle/components/ChronicleFlow.svelte +133 -28
- package/src/chronicle/components/ChronicleLeafOutcomeRendererHost.svelte +1 -8
- package/src/chronicle/components/ChronicleLeafOutcomeSection.svelte +25 -52
- package/src/chronicle/components/ChronicleLiveChip.svelte +1 -35
- package/src/chronicle/components/ChronicleLiveTail.svelte +55 -154
- package/src/chronicle/components/ChronicleMarkdown.svelte +6 -6
- package/src/chronicle/components/ChronicleOperatorInputSection.svelte +5 -18
- package/src/chronicle/components/ChronicleProcessErrorSection.svelte +10 -107
- package/src/chronicle/components/ChroniclePromptSection.svelte +6 -26
- package/src/chronicle/components/ChronicleQuestionRequest.svelte +22 -5
- package/src/chronicle/components/ChronicleReasoningDetailsOverlay.svelte +71 -109
- package/src/chronicle/components/ChronicleRecoverySection.svelte +96 -264
- package/src/chronicle/components/ChronicleScheduledActionSection.svelte +1 -1
- package/src/chronicle/components/ChronicleSectionHeader.svelte +1 -4
- package/src/chronicle/components/ChronicleStartupHistory.svelte +63 -0
- package/src/chronicle/components/ChronicleStartupRecoverySection.svelte +10 -26
- package/src/chronicle/components/ChronicleThinkingSection.svelte +25 -165
- package/src/chronicle/components/ChronicleThinkingText.svelte +1 -0
- package/src/chronicle/components/ChronicleToolApproval.svelte +40 -0
- package/src/chronicle/components/ChronicleToolCallItem.svelte +1 -1
- package/src/chronicle/components/ChronicleTurnCluster.svelte +208 -284
- package/src/chronicle/components/ChronicleTurnDetailsButton.svelte +16 -0
- package/src/chronicle/components/ChronicleTurnProgress.svelte +77 -54
- package/src/chronicle/components/ChronicleTurnRail.svelte +327 -391
- package/src/chronicle/components/CompactActionComposer.svelte +36 -13
- package/src/chronicle/components/ReadonlyJsonValue.svelte +30 -0
- package/src/chronicle/lib/action-bindings.ts +1 -1
- package/src/chronicle/lib/action-model-display.ts +2 -2
- package/src/chronicle/lib/action-preview.ts +1 -1
- package/src/chronicle/lib/chronicle-projection.ts +125 -109
- package/src/chronicle/lib/chronicle-rail-groups.ts +158 -0
- package/src/chronicle/lib/chronicle-selectable-items.ts +16 -11
- package/src/chronicle/lib/chronicle-ticket-artifact.ts +7 -0
- package/src/chronicle/lib/formatting.ts +19 -0
- package/src/chronicle/lib/leaf-outcome-loader.ts +30 -111
- package/src/chronicle/lib/leaf-outcome-runtime.ts +3 -15
- package/src/chronicle/lib/result-presentation.ts +40 -0
- package/src/chronicle/lib/retry-groups.ts +24 -0
- package/src/chronicle/lib/scroll-sync.ts +1 -0
- package/src/chronicle/lib/tool-call-summary.ts +1 -9
- package/src/chronicle/ticket-selection.ts +23 -0
- package/src/components/ElapsedTime.svelte +31 -0
- package/src/components/ExternalLink.svelte +39 -0
- package/src/components/FormFieldRenderer.svelte +4 -1
- package/src/components/GenericLauncher.svelte +40 -15
- package/src/components/KeyboardShortcutsModal.svelte +2 -2
- package/src/components/LaunchChecklist.svelte +184 -0
- package/src/components/ModalShell.svelte +43 -32
- package/src/components/PageHeader.svelte +7 -33
- package/src/components/ProcessActionsMenu.svelte +217 -140
- package/src/components/ProcessInfoOverlay.svelte +13 -21
- package/src/components/ProgressChecklist.svelte +46 -0
- package/src/components/ProgressChecklistRows.svelte +80 -0
- package/src/components/launcher-form-copy.ts +4 -1
- package/src/components/launcher-model-config.ts +1 -1
- package/src/extension-ui-dev-server.ts +2 -5
- package/src/lib/api-tokens.ts +34 -0
- package/src/lib/api.ts +323 -455
- package/src/lib/elapsed-time.ts +19 -0
- package/src/lib/external-links.ts +81 -0
- package/src/lib/flow-layout.ts +1 -8
- package/src/lib/format.ts +3 -26
- package/src/lib/future-launch-detail.ts +1 -1
- package/src/lib/http-client.ts +79 -0
- package/src/lib/launch-updates.ts +17 -0
- package/src/lib/markdown.ts +8 -1
- package/src/lib/primary-path-detail.ts +97 -3
- package/src/lib/primary-path-replay.ts +13 -7
- package/src/lib/process-row-view.ts +1 -1
- package/src/lib/process-terminal-display.ts +4 -7
- package/src/lib/processes.svelte.ts +41 -9
- package/src/lib/reasoning-history.ts +95 -0
- package/src/lib/retry-config.svelte.ts +1 -1
- package/src/lib/rich-markdown-elements.ts +2 -2
- package/src/lib/router-logic.ts +3 -0
- package/src/lib/runtime-config.ts +1 -3
- package/src/lib/test-fixtures.ts +1 -1
- package/src/lib/tool-call-rendering.ts +4 -1
- package/src/lib/ui-extensions.svelte.ts +78 -127
- package/src/lib/ws-classifier.ts +8 -1
- package/src/pages/ApiTokensPage.svelte +213 -0
- package/src/pages/FutureLaunchDetailPage.svelte +7 -35
- package/src/pages/HomePage.svelte +7 -7
- package/src/pages/ProcessCard.svelte +1 -1
- package/src/pages/ProcessDetailPage.svelte +158 -62
- package/src/pages/ProcessGallery.svelte +1 -1
- package/src/pages/ProcessesPage.svelte +7 -42
- package/src/pages/SkillsPage.svelte +37 -26
- package/src/pages/WatchersPage.svelte +31 -53
- package/src/pages/process-detail/ProcessDetailChronicle.svelte +125 -28
- package/src/pages/process-detail/ProcessDetailHeader.svelte +24 -2
- package/src/pages/process-detail/ProcessSummary.svelte +35 -0
- package/src/pages/process-detail/TicketCreationComposer.svelte +219 -0
- package/src/pages/process-detail/process-detail-action-drafts.svelte.ts +5 -5
- package/src/pages/process-detail/process-detail-actions.svelte.ts +4 -2
- package/src/pages/process-detail/process-detail-chronicle-dom.ts +39 -14
- package/src/pages/process-detail/process-detail-chronicle-scroll.svelte.ts +68 -10
- package/src/pages/process-detail/process-detail-view-model.ts +10 -24
- package/src/shell/AppShell.svelte +4 -1
- package/src/shell/Sidebar.svelte +88 -125
- package/src/styles/controls.css +188 -0
- package/dist/assets/ChronicleMarkdown-B1hD4HFS.js +0 -16
- package/dist/assets/ChronicleMarkdown-D6hFzERy.css +0 -1
- package/dist/assets/FutureLaunchDetailPage-Dy3FlLih.js +0 -1
- package/dist/assets/FutureLaunchDetailPage-UFgp7Ju4.css +0 -1
- package/dist/assets/GenericLauncher-BPEQjJ1J.js +0 -1
- package/dist/assets/GenericLauncher-D_GMtsQ5.css +0 -1
- package/dist/assets/HomePage-E41Krxko.js +0 -1
- package/dist/assets/PageHeader-DDgWPeHS.js +0 -1
- package/dist/assets/PageHeader-vhyfX7xT.css +0 -1
- package/dist/assets/ProcessActionsMenu-BWlFe5c4.css +0 -1
- package/dist/assets/ProcessActionsMenu-cI0j2LWe.js +0 -1
- package/dist/assets/ProcessDetailPage-DVHldJgi.js +0 -12
- package/dist/assets/ProcessDetailPage-Oh6ld320.css +0 -1
- package/dist/assets/ProcessFlowDiagram-C6m6V_cB.js +0 -2
- package/dist/assets/ProcessesPage-B2QGyCZO.js +0 -1
- package/dist/assets/ProcessesPage-BcM38HMs.css +0 -1
- package/dist/assets/ScheduleDateTimePicker-aey_oMiH.js +0 -1
- package/dist/assets/SkillsPage-MPITMvhn.css +0 -1
- package/dist/assets/SkillsPage-iB4sbq7r.js +0 -2
- package/dist/assets/WatchersPage-BOSgjtw0.css +0 -1
- package/dist/assets/WatchersPage-l0rwv-Nx.js +0 -1
- package/dist/assets/api-CtKbU0lT.js +0 -1
- package/dist/assets/dist-eOPUi0B8.js +0 -2
- package/dist/assets/index-B4flHG_s.js +0 -7
- package/dist/assets/index-DunTIQSW.css +0 -1
- package/dist/assets/index-client-CnG8mWmF.js +0 -2
- package/dist/assets/retry-config.svelte-WukHimiy.js +0 -1
- package/dist/assets/router.svelte-2RvxUvs5.js +0 -1
- package/src/lib/process-initial-prompt.ts +0 -7
|
@@ -7,6 +7,7 @@ interface Props {
|
|
|
7
7
|
dataAction?: string;
|
|
8
8
|
dataPressable?: boolean;
|
|
9
9
|
ariaLabel?: string;
|
|
10
|
+
controls?: string;
|
|
10
11
|
onClick?: (e: MouseEvent) => void;
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -18,53 +19,29 @@ let {
|
|
|
18
19
|
dataAction,
|
|
19
20
|
dataPressable = false,
|
|
20
21
|
ariaLabel,
|
|
22
|
+
controls,
|
|
21
23
|
onClick,
|
|
22
24
|
}: Props = $props();
|
|
23
25
|
</script>
|
|
24
26
|
|
|
25
27
|
<button
|
|
26
28
|
type="button"
|
|
27
|
-
class="chronicle-expand-button {className}"
|
|
29
|
+
class="ui-button chronicle-expand-button {className}"
|
|
30
|
+
data-variant="quiet"
|
|
28
31
|
data-action={dataAction}
|
|
29
32
|
data-pressable={dataPressable ? "true" : undefined}
|
|
30
33
|
aria-label={ariaLabel}
|
|
34
|
+
aria-expanded={controls ? expanded : undefined}
|
|
35
|
+
aria-controls={controls}
|
|
31
36
|
onclick={onClick}
|
|
32
37
|
>
|
|
33
38
|
{expanded ? expandedLabel : collapsedLabel}
|
|
39
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true" class:expanded><path d="m6 9 6 6 6-6" /></svg>
|
|
34
40
|
</button>
|
|
35
41
|
|
|
36
42
|
<style>
|
|
37
|
-
.chronicle-expand-button {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
border-radius: 999px;
|
|
42
|
-
background: transparent;
|
|
43
|
-
color: color-mix(in srgb, var(--chronicle-accent) 62%, var(--chronicle-text) 38%);
|
|
44
|
-
font: inherit;
|
|
45
|
-
font-size: 12px;
|
|
46
|
-
font-weight: 640;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
transition:
|
|
49
|
-
transform var(--duration-fast, 140ms) var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
|
|
50
|
-
background var(--duration-fast, 140ms) var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
|
|
51
|
-
border-color var(--duration-fast, 140ms) var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
|
|
52
|
-
color var(--duration-fast, 140ms) var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.chronicle-expand-button:hover {
|
|
56
|
-
transform: translateY(-1px);
|
|
57
|
-
border-color: color-mix(in srgb, var(--chronicle-accent) 18%, transparent 82%);
|
|
58
|
-
background: color-mix(in srgb, var(--chronicle-accent-soft) 56%, transparent 44%);
|
|
59
|
-
color: color-mix(in srgb, var(--chronicle-accent) 76%, var(--chronicle-text) 24%);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.chronicle-expand-button:active {
|
|
63
|
-
transform: translateY(0);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.chronicle-expand-button:focus-visible {
|
|
67
|
-
outline: 2px solid color-mix(in srgb, var(--chronicle-accent) 72%, white 28%);
|
|
68
|
-
outline-offset: 2px;
|
|
69
|
-
}
|
|
43
|
+
.chronicle-expand-button { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 0; border: 0; border-radius: 4px; background: transparent; color: var(--chronicle-accent); font-size: var(--type-body-sm); font-weight: 500; box-shadow: none; }
|
|
44
|
+
.chronicle-expand-button:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
|
|
45
|
+
svg { flex-shrink: 0; }
|
|
46
|
+
svg.expanded { transform: rotate(180deg); }
|
|
70
47
|
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
let { summary, technicalDetail = null }: { summary: string; technicalDetail?: string | null } =
|
|
3
|
+
$props();
|
|
4
|
+
|
|
5
|
+
const heartbeat = $derived(
|
|
6
|
+
/worker heartbeat stale for \S+ after (\d+)ms/i.exec(technicalDetail || summary),
|
|
7
|
+
);
|
|
8
|
+
const message = $derived(
|
|
9
|
+
heartbeat
|
|
10
|
+
? `Worker stopped responding. No heartbeat was received for ${Number(heartbeat[1]) / 1000} seconds.`
|
|
11
|
+
: summary.split(/\n\s*\n|\n/)[0].slice(0, 280),
|
|
12
|
+
);
|
|
13
|
+
const detail = $derived(technicalDetail || (heartbeat || message !== summary ? summary : null));
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<div class="failure-message" data-section="failure-message">
|
|
17
|
+
<svg class="failure-icon" width="30" height="30" viewBox="0 0 30 30" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><circle cx="15" cy="15" r="13" /><path d="m11 11 8 8m0-8-8 8" /></svg>
|
|
18
|
+
<div class="failure-copy">
|
|
19
|
+
<h4>Failed</h4>
|
|
20
|
+
<p>{message}</p>
|
|
21
|
+
{#if detail}
|
|
22
|
+
<details class="failure-detail">
|
|
23
|
+
<summary>Technical details</summary>
|
|
24
|
+
<pre>{detail}</pre>
|
|
25
|
+
</details>
|
|
26
|
+
{/if}
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<style>
|
|
31
|
+
.failure-message { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--chronicle-danger) 20%, var(--chronicle-border)); border-radius: 8px; background: color-mix(in srgb, var(--chronicle-danger) 4%, var(--chronicle-card-surface)); }
|
|
32
|
+
.failure-icon { color: var(--chronicle-danger); }
|
|
33
|
+
.failure-copy { min-width: 0; }
|
|
34
|
+
h4 { margin: 0 0 4px; color: var(--chronicle-danger-text); font-size: var(--type-body-lg); line-height: 1.4; font-weight: 650; }
|
|
35
|
+
p { margin: 0; color: var(--chronicle-text); font-size: var(--type-body-sm); line-height: 1.6; overflow-wrap: anywhere; }
|
|
36
|
+
.failure-detail { margin-top: 12px; color: var(--chronicle-text-muted); font-size: var(--type-caption); }
|
|
37
|
+
summary { width: fit-content; cursor: pointer; font-weight: 600; }
|
|
38
|
+
summary:focus-visible { outline: 2px solid var(--chronicle-accent); outline-offset: 3px; border-radius: 3px; }
|
|
39
|
+
pre { margin: 8px 0 0; padding: 10px; border-radius: 5px; background: var(--chronicle-panel-muted); color: var(--chronicle-text); font-family: var(--font-mono, monospace); font-size: var(--type-caption); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
40
|
+
@media (max-width: 540px) { .failure-message { grid-template-columns: 24px minmax(0, 1fr); padding: 10px; gap: 8px; } .failure-icon { width: 24px; height: 24px; } }
|
|
41
|
+
</style>
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { ProcessQuestionRequest } from "@leitwerk-dev/domain";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
2
|
+
import type { ProcessQuestionRequest, ProcessToolApprovalRequest } from "@leitwerk-dev/domain";
|
|
3
|
+
import type {
|
|
4
|
+
ProcessExternalTriggerSignal,
|
|
5
|
+
ProcessStartupSummary,
|
|
6
|
+
StartupRecoverySummary,
|
|
7
|
+
} from "@leitwerk-dev/protocol";
|
|
5
8
|
import type {
|
|
6
9
|
ProcessExternalTriggerSummary,
|
|
7
10
|
ProcessModelConfigurationView,
|
|
8
11
|
ProcessSelectedTurnSummary,
|
|
9
12
|
ScheduledActionDetail,
|
|
10
|
-
} from "
|
|
13
|
+
} from "@leitwerk-dev/protocol/http-contracts";
|
|
14
|
+
import { SvelteMap } from "svelte/reactivity";
|
|
11
15
|
import type {
|
|
12
16
|
ActionSectionController,
|
|
13
17
|
LiveTailController,
|
|
@@ -19,6 +23,8 @@ import {
|
|
|
19
23
|
CHRONICLE_ACTION_SECTION_ANCHOR_ID,
|
|
20
24
|
CHRONICLE_PROCESS_ERROR_SECTION_ANCHOR_ID,
|
|
21
25
|
} from "../lib/chronicle-selectable-items.js";
|
|
26
|
+
import type { ChronicleTicketArtifact } from "../lib/chronicle-ticket-artifact.js";
|
|
27
|
+
import { groupRetryChains } from "../lib/retry-groups.js";
|
|
22
28
|
import ChronicleActionSection from "./ChronicleActionSection.svelte";
|
|
23
29
|
import ChronicleLeafOutcomePlaceholder from "./ChronicleLeafOutcomePlaceholder.svelte";
|
|
24
30
|
import ChronicleLeafOutcomeSection from "./ChronicleLeafOutcomeSection.svelte";
|
|
@@ -26,16 +32,18 @@ import ChronicleLiveTail from "./ChronicleLiveTail.svelte";
|
|
|
26
32
|
import ChronicleOperatorInputSection from "./ChronicleOperatorInputSection.svelte";
|
|
27
33
|
import ChronicleProcessErrorSection from "./ChronicleProcessErrorSection.svelte";
|
|
28
34
|
import ChroniclePromptSection from "./ChroniclePromptSection.svelte";
|
|
29
|
-
import ChronicleQuestionRequest from "./ChronicleQuestionRequest.svelte";
|
|
30
35
|
import ChronicleRecoverySection from "./ChronicleRecoverySection.svelte";
|
|
31
36
|
import ChronicleScheduledActionSection from "./ChronicleScheduledActionSection.svelte";
|
|
37
|
+
import ChronicleStartupHistory from "./ChronicleStartupHistory.svelte";
|
|
32
38
|
import ChronicleStartupRecoverySection from "./ChronicleStartupRecoverySection.svelte";
|
|
39
|
+
import ChronicleToolApproval from "./ChronicleToolApproval.svelte";
|
|
33
40
|
import ChronicleTurnCluster from "./ChronicleTurnCluster.svelte";
|
|
34
41
|
|
|
35
42
|
interface Props {
|
|
36
43
|
instanceId: string;
|
|
37
44
|
projection: ChronicleProjection;
|
|
38
45
|
questionRequests?: readonly ProcessQuestionRequest[];
|
|
46
|
+
toolApprovalRequests?: readonly ProcessToolApprovalRequest[];
|
|
39
47
|
activeAnchorId: string | null;
|
|
40
48
|
definesLeafOutcome: boolean;
|
|
41
49
|
actionSectionController: ActionSectionController;
|
|
@@ -58,6 +66,7 @@ interface Props {
|
|
|
58
66
|
defaultModelProfileId: string | null;
|
|
59
67
|
providerOptions: Record<string, string>;
|
|
60
68
|
} | null;
|
|
69
|
+
startup: ProcessStartupSummary;
|
|
61
70
|
startupRecovery?: StartupRecoverySummary | null;
|
|
62
71
|
processError?: {
|
|
63
72
|
title: string;
|
|
@@ -67,6 +76,7 @@ interface Props {
|
|
|
67
76
|
} | null;
|
|
68
77
|
modelConfiguration: ProcessModelConfigurationView;
|
|
69
78
|
onOpenReasoningDetails: (turnRecordId: string) => void;
|
|
79
|
+
onDraftTicket?: (artifact: ChronicleTicketArtifact) => void;
|
|
70
80
|
hasTerminalSummary?: boolean;
|
|
71
81
|
}
|
|
72
82
|
|
|
@@ -74,6 +84,7 @@ let {
|
|
|
74
84
|
instanceId,
|
|
75
85
|
projection,
|
|
76
86
|
questionRequests = [],
|
|
87
|
+
toolApprovalRequests = [],
|
|
77
88
|
activeAnchorId,
|
|
78
89
|
definesLeafOutcome,
|
|
79
90
|
actionSectionController: actionBindings,
|
|
@@ -85,14 +96,36 @@ let {
|
|
|
85
96
|
selectedTurn = null,
|
|
86
97
|
scheduledAction = null,
|
|
87
98
|
recovery = null,
|
|
99
|
+
startup,
|
|
88
100
|
startupRecovery = null,
|
|
89
101
|
processError = null,
|
|
90
102
|
modelConfiguration,
|
|
91
103
|
onOpenReasoningDetails,
|
|
104
|
+
onDraftTicket,
|
|
92
105
|
hasTerminalSummary = false,
|
|
93
106
|
}: Props = $props();
|
|
94
107
|
|
|
108
|
+
const retryGroups = $derived(
|
|
109
|
+
groupRetryChains(projection.timelineItems, (item) =>
|
|
110
|
+
item.kind === "turn_cluster" || item.kind === "live_tail"
|
|
111
|
+
? {
|
|
112
|
+
id: item.turnRecordId,
|
|
113
|
+
turnId: item.turnId,
|
|
114
|
+
parentTurnRecordId: item.parentTurnRecordId,
|
|
115
|
+
failed: item.kind === "turn_cluster" && Boolean(item.failure),
|
|
116
|
+
}
|
|
117
|
+
: null,
|
|
118
|
+
),
|
|
119
|
+
);
|
|
95
120
|
const latestTimelineItem = $derived.by(() => projection.timelineItems.at(-1) ?? null);
|
|
121
|
+
const latestResultItem = $derived(
|
|
122
|
+
projection.timelineItems.findLast(
|
|
123
|
+
(item) =>
|
|
124
|
+
item.kind === "leaf_outcome" ||
|
|
125
|
+
(item.kind === "turn_cluster" &&
|
|
126
|
+
item.sections.some((section) => section.kind === "turn_result")),
|
|
127
|
+
),
|
|
128
|
+
);
|
|
96
129
|
const questionRequestsByTurn = $derived.by(() => {
|
|
97
130
|
const grouped = new SvelteMap<
|
|
98
131
|
string,
|
|
@@ -107,6 +140,11 @@ const questionRequestsByTurn = $derived.by(() => {
|
|
|
107
140
|
return grouped;
|
|
108
141
|
});
|
|
109
142
|
|
|
143
|
+
function questionRequestsForTurn(turnRecordId: string): ProcessQuestionRequest[] {
|
|
144
|
+
const requests = questionRequestsByTurn.get(turnRecordId);
|
|
145
|
+
return requests ? [...requests.closed, ...(requests.open ? [requests.open] : [])] : [];
|
|
146
|
+
}
|
|
147
|
+
|
|
110
148
|
function chronicleItemKey(item: ChronicleTimelineItem, index: number): string {
|
|
111
149
|
switch (item.kind) {
|
|
112
150
|
case "prompt":
|
|
@@ -126,6 +164,33 @@ function chronicleItemKey(item: ChronicleTimelineItem, index: number): string {
|
|
|
126
164
|
}
|
|
127
165
|
}
|
|
128
166
|
|
|
167
|
+
const hasEmbeddedRecovery = $derived(
|
|
168
|
+
Boolean(
|
|
169
|
+
recovery &&
|
|
170
|
+
projection.timelineItems.some(
|
|
171
|
+
(item) => item.kind === "turn_cluster" && item.turnRecordId === recovery.turnRecordId,
|
|
172
|
+
),
|
|
173
|
+
),
|
|
174
|
+
);
|
|
175
|
+
const waitingTurn = $derived.by(() => {
|
|
176
|
+
if (
|
|
177
|
+
scheduledAction ||
|
|
178
|
+
recovery ||
|
|
179
|
+
startupRecovery ||
|
|
180
|
+
processError ||
|
|
181
|
+
actionBindings.actionSectionActions.length > 0 ||
|
|
182
|
+
externalTriggers.length === 0 ||
|
|
183
|
+
!selectedTurn
|
|
184
|
+
)
|
|
185
|
+
return null;
|
|
186
|
+
// A repeated turn definition does not make an earlier execution the current wait.
|
|
187
|
+
const latestTurn = projection.timelineItems.findLast(
|
|
188
|
+
(item) => item.kind === "turn_cluster" || item.kind === "live_tail",
|
|
189
|
+
);
|
|
190
|
+
return latestTurn?.kind === "turn_cluster" && latestTurn.turnId === selectedTurn.turnId
|
|
191
|
+
? latestTurn
|
|
192
|
+
: null;
|
|
193
|
+
});
|
|
129
194
|
const hasTrailingProcessSection = $derived(
|
|
130
195
|
scheduledAction !== null ||
|
|
131
196
|
recovery !== null ||
|
|
@@ -136,12 +201,15 @@ const hasTrailingProcessSection = $derived(
|
|
|
136
201
|
);
|
|
137
202
|
const shouldRenderInlineTrailingProcessSection = $derived(
|
|
138
203
|
hasTrailingProcessSection &&
|
|
204
|
+
waitingTurn === null &&
|
|
139
205
|
recovery === null &&
|
|
140
206
|
startupRecovery === null &&
|
|
141
207
|
projection.timelineItems.length > 0,
|
|
142
208
|
);
|
|
143
209
|
const shouldRenderTrailingAfterFlow = $derived(
|
|
144
210
|
hasTrailingProcessSection &&
|
|
211
|
+
waitingTurn === null &&
|
|
212
|
+
!hasEmbeddedRecovery &&
|
|
145
213
|
(recovery !== null || startupRecovery !== null || projection.timelineItems.length === 0),
|
|
146
214
|
);
|
|
147
215
|
|
|
@@ -150,20 +218,11 @@ function shouldRenderActionSection(item: ChronicleTimelineItem): boolean {
|
|
|
150
218
|
}
|
|
151
219
|
</script>
|
|
152
220
|
|
|
153
|
-
{#snippet
|
|
154
|
-
{#if
|
|
155
|
-
<ChronicleScheduledActionSection
|
|
156
|
-
anchorId={CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
157
|
-
isFocused={activeAnchorId === CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
158
|
-
scheduledAction={scheduledAction}
|
|
159
|
-
busy={scheduledActionController.scheduledActionBusy}
|
|
160
|
-
error={scheduledActionController.scheduledActionError}
|
|
161
|
-
onEdit={scheduledActionController.editScheduledAction}
|
|
162
|
-
onCancel={scheduledActionController.cancelScheduledAction}
|
|
163
|
-
/>
|
|
164
|
-
{:else if recovery}
|
|
221
|
+
{#snippet recoverySection(embedded: boolean)}
|
|
222
|
+
{#if recovery}
|
|
165
223
|
{#key `${recovery.turnRecordId}:${recovery.defaultContinuePrompt}`}
|
|
166
224
|
<ChronicleRecoverySection
|
|
225
|
+
{embedded}
|
|
167
226
|
anchorId={CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
168
227
|
{instanceId}
|
|
169
228
|
isFocused={activeAnchorId === CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
@@ -196,6 +255,30 @@ function shouldRenderActionSection(item: ChronicleTimelineItem): boolean {
|
|
|
196
255
|
onRetry={recoveryController.retryFailedTurn}
|
|
197
256
|
/>
|
|
198
257
|
{/key}
|
|
258
|
+
{/if}
|
|
259
|
+
{/snippet}
|
|
260
|
+
|
|
261
|
+
{#snippet embeddedRecovery()}
|
|
262
|
+
{@render recoverySection(true)}
|
|
263
|
+
{/snippet}
|
|
264
|
+
|
|
265
|
+
{#snippet embeddedWaiting()}
|
|
266
|
+
{@render trailingProcessSection(true)}
|
|
267
|
+
{/snippet}
|
|
268
|
+
|
|
269
|
+
{#snippet trailingProcessSection(embedded: boolean = false)}
|
|
270
|
+
{#if scheduledAction}
|
|
271
|
+
<ChronicleScheduledActionSection
|
|
272
|
+
anchorId={CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
273
|
+
isFocused={activeAnchorId === CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
274
|
+
scheduledAction={scheduledAction}
|
|
275
|
+
busy={scheduledActionController.scheduledActionBusy}
|
|
276
|
+
error={scheduledActionController.scheduledActionError}
|
|
277
|
+
onEdit={scheduledActionController.editScheduledAction}
|
|
278
|
+
onCancel={scheduledActionController.cancelScheduledAction}
|
|
279
|
+
/>
|
|
280
|
+
{:else if recovery}
|
|
281
|
+
{@render recoverySection(false)}
|
|
199
282
|
{:else if startupRecovery}
|
|
200
283
|
<ChronicleStartupRecoverySection
|
|
201
284
|
{instanceId}
|
|
@@ -217,6 +300,7 @@ function shouldRenderActionSection(item: ChronicleTimelineItem): boolean {
|
|
|
217
300
|
/>
|
|
218
301
|
{:else}
|
|
219
302
|
<ChronicleActionSection
|
|
303
|
+
{embedded}
|
|
220
304
|
anchorId={CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
221
305
|
isFocused={activeAnchorId === CHRONICLE_ACTION_SECTION_ANCHOR_ID}
|
|
222
306
|
actionSectionController={actionBindings}
|
|
@@ -228,34 +312,35 @@ function shouldRenderActionSection(item: ChronicleTimelineItem): boolean {
|
|
|
228
312
|
{/if}
|
|
229
313
|
{/snippet}
|
|
230
314
|
|
|
231
|
-
|
|
232
|
-
{#each projection.timelineItems as item, index (chronicleItemKey(item, index))}
|
|
315
|
+
{#snippet timelineItem(item: ChronicleTimelineItem, retryTotal: number)}
|
|
233
316
|
{#if item.kind === "prompt"}
|
|
234
317
|
<ChroniclePromptSection prompt={item} isFocused={activeAnchorId === item.anchorId} />
|
|
235
318
|
{:else if item.kind === "turn_cluster"}
|
|
236
319
|
<ChronicleTurnCluster
|
|
237
|
-
cluster={item}
|
|
238
|
-
|
|
239
|
-
|
|
320
|
+
cluster={retryTotal > 1 ? { ...item, title: `${item.title} · ${item.failure ? "Failed" : "Completed"} after ${retryTotal} attempts` } : item}
|
|
321
|
+
recoveryContent={recovery?.turnRecordId === item.turnRecordId ? embeddedRecovery : undefined}
|
|
322
|
+
waitingContent={waitingTurn === item ? embeddedWaiting : undefined}
|
|
323
|
+
isFocused={activeAnchorId === item.anchorId || (waitingTurn === item && activeAnchorId === CHRONICLE_ACTION_SECTION_ANCHOR_ID)}
|
|
324
|
+
compressHistory={item !== latestResultItem}
|
|
325
|
+
questionRequests={questionRequestsForTurn(item.turnRecordId)}
|
|
240
326
|
onOpenReasoningDetails={onOpenReasoningDetails}
|
|
327
|
+
onDraftTicket={onDraftTicket}
|
|
241
328
|
/>
|
|
242
|
-
{#each questionRequestsByTurn.get(item.turnRecordId)?.closed ?? [] as request (request.id)}
|
|
243
|
-
<ChronicleQuestionRequest {request} />
|
|
244
|
-
{/each}
|
|
245
329
|
{:else if item.kind === "operator_input"}
|
|
246
330
|
<ChronicleOperatorInputSection section={item} />
|
|
247
331
|
{:else if item.kind === "leaf_outcome"}
|
|
248
332
|
<ChronicleLeafOutcomeSection
|
|
249
333
|
section={item}
|
|
250
334
|
isFocused={activeAnchorId === item.anchorId}
|
|
251
|
-
compressHistory={item !==
|
|
335
|
+
compressHistory={item !== latestResultItem}
|
|
336
|
+
onDraftTicket={onDraftTicket}
|
|
252
337
|
/>
|
|
253
338
|
{:else if item.kind === "leaf_outcome_placeholder"}
|
|
254
339
|
<ChronicleLeafOutcomePlaceholder latestTurnTitle={item.latestTurnTitle} />
|
|
255
340
|
{:else if item.kind === "live_tail"}
|
|
256
341
|
<ChronicleLiveTail
|
|
257
342
|
liveTail={item}
|
|
258
|
-
|
|
343
|
+
questionRequests={questionRequestsForTurn(item.turnRecordId)}
|
|
259
344
|
isFocused={activeAnchorId === item.anchorId}
|
|
260
345
|
onOpenReasoningDetails={onOpenReasoningDetails}
|
|
261
346
|
onAbortTurn={item.turnType === "llm" ? liveTailController.abortRunningTurn : null}
|
|
@@ -267,6 +352,26 @@ function shouldRenderActionSection(item: ChronicleTimelineItem): boolean {
|
|
|
267
352
|
{#if shouldRenderActionSection(item)}
|
|
268
353
|
{@render trailingProcessSection()}
|
|
269
354
|
{/if}
|
|
355
|
+
{/snippet}
|
|
356
|
+
|
|
357
|
+
<div class="chronicle-flow" class:has-terminal-summary={hasTerminalSummary} data-section="chronicle-flow">
|
|
358
|
+
<ChronicleStartupHistory {startup} />
|
|
359
|
+
{#each toolApprovalRequests.filter((request) => request.status === "open") as request (request.id)}
|
|
360
|
+
<ChronicleToolApproval {request} />
|
|
361
|
+
{/each}
|
|
362
|
+
{#each retryGroups as group, groupIndex (chronicleItemKey(group[0], groupIndex))}
|
|
363
|
+
{#if group.length > 1 && group[0].kind === "turn_cluster"}
|
|
364
|
+
<details data-section="retry-history">
|
|
365
|
+
<summary>{group.length - 1} earlier {group.length === 2 ? "attempt" : "attempts"}</summary>
|
|
366
|
+
{#each group.slice(0, -1) as historical, index (chronicleItemKey(historical, index))}
|
|
367
|
+
<p>Attempt {index + 1} of {group.length} · Failed</p>
|
|
368
|
+
{@render timelineItem(historical, 1)}
|
|
369
|
+
{/each}
|
|
370
|
+
</details>
|
|
371
|
+
{@render timelineItem(group[group.length - 1], group.length)}
|
|
372
|
+
{:else}
|
|
373
|
+
{@render timelineItem(group[0], 1)}
|
|
374
|
+
{/if}
|
|
270
375
|
{/each}
|
|
271
376
|
|
|
272
377
|
{#if shouldRenderTrailingAfterFlow}
|
|
@@ -280,7 +385,7 @@ function shouldRenderActionSection(item: ChronicleTimelineItem): boolean {
|
|
|
280
385
|
flex-direction: column;
|
|
281
386
|
justify-content: flex-start;
|
|
282
387
|
min-height: 100%;
|
|
283
|
-
gap:
|
|
388
|
+
gap: 14px;
|
|
284
389
|
padding-bottom: var(--space-xl);
|
|
285
390
|
}
|
|
286
391
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { copiedUnknownRecordSchema as unknownRecordSchema } from "@leitwerk-dev/domain";
|
|
2
3
|
import { onDestroy } from "svelte";
|
|
3
4
|
import * as v from "valibot";
|
|
4
5
|
import type { ChronicleLeafOutcomeItem } from "../lib/chronicle-projection.js";
|
|
@@ -56,14 +57,6 @@ let mountedElement = $state<LeafOutcomeRendererElement | null>(null);
|
|
|
56
57
|
|
|
57
58
|
const readyTimeoutMs = 1_000;
|
|
58
59
|
const runtime = getLeafOutcomeRendererRuntime();
|
|
59
|
-
const unknownRecordSchema = v.pipe(
|
|
60
|
-
v.unknown(),
|
|
61
|
-
v.check(
|
|
62
|
-
(value) => typeof value === "object" && value !== null && !Array.isArray(value),
|
|
63
|
-
"Expected object",
|
|
64
|
-
),
|
|
65
|
-
v.record(v.string(), v.unknown()),
|
|
66
|
-
);
|
|
67
60
|
const hasValidRendererPayload = $derived(v.safeParse(unknownRecordSchema, props).success);
|
|
68
61
|
|
|
69
62
|
let readyTimeout: ReturnType<typeof setTimeout> | null = null;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { formatRelativeTime } from "../../lib/format";
|
|
3
2
|
import { markdownToPlainText, truncateText } from "../../lib/markdown.js";
|
|
4
3
|
import type { ChronicleLeafOutcomeItem } from "../lib/chronicle-projection.js";
|
|
4
|
+
import type { ChronicleTicketArtifact } from "../lib/chronicle-ticket-artifact.js";
|
|
5
|
+
import ChronicleCreateIssueButton from "./ChronicleCreateIssueButton.svelte";
|
|
6
|
+
import ChronicleEntryHeader from "./ChronicleEntryHeader.svelte";
|
|
5
7
|
import ChronicleExpandButton from "./ChronicleExpandButton.svelte";
|
|
6
8
|
import ChronicleLeafOutcomeRendererHost from "./ChronicleLeafOutcomeRendererHost.svelte";
|
|
7
9
|
import ChronicleMarkdown from "./ChronicleMarkdown.svelte";
|
|
8
|
-
import ChronicleSectionHeader from "./ChronicleSectionHeader.svelte";
|
|
9
10
|
|
|
10
11
|
interface Props {
|
|
11
12
|
section: ChronicleLeafOutcomeItem;
|
|
12
13
|
isFocused: boolean;
|
|
13
14
|
compressHistory?: boolean;
|
|
15
|
+
onDraftTicket?: (artifact: ChronicleTicketArtifact) => void;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
let { section, isFocused, compressHistory = false }: Props = $props();
|
|
17
|
-
let expandedHistoryOutcome = $state(
|
|
18
|
+
let { section, isFocused, compressHistory = false, onDraftTicket }: Props = $props();
|
|
19
|
+
let expandedHistoryOutcome = $state<boolean | null>(null);
|
|
18
20
|
|
|
19
|
-
const shouldCompressOutcome = $derived(
|
|
21
|
+
const shouldCompressOutcome = $derived(
|
|
22
|
+
section.status !== "capture_error" && !(expandedHistoryOutcome ?? !compressHistory),
|
|
23
|
+
);
|
|
20
24
|
|
|
21
25
|
function summarizeLeafOutcome(section: ChronicleLeafOutcomeItem): string {
|
|
22
26
|
if (section.fallbackMarkdown) {
|
|
@@ -34,7 +38,7 @@ function summarizeLeafOutcome(section: ChronicleLeafOutcomeItem): string {
|
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
function expandHistoryOutcome() {
|
|
37
|
-
expandedHistoryOutcome =
|
|
41
|
+
expandedHistoryOutcome = shouldCompressOutcome;
|
|
38
42
|
}
|
|
39
43
|
</script>
|
|
40
44
|
|
|
@@ -46,27 +50,16 @@ function expandHistoryOutcome() {
|
|
|
46
50
|
data-anchor-id={section.anchorId}
|
|
47
51
|
data-focused={isFocused ? "true" : "false"}
|
|
48
52
|
data-section="leaf-outcome"
|
|
53
|
+
data-ticket-result-artifact={`leaf_outcome:${section.leafEntryId}`}
|
|
54
|
+
data-ticket-result-durable={section.status === "ready" ? "true" : "false"}
|
|
49
55
|
data-status={section.status}
|
|
50
56
|
data-snapshot-id={section.snapshotId}
|
|
51
57
|
data-renderer-mode={section.status === "ready" && section.rendererId ? "runtime" : "fallback"}
|
|
52
58
|
>
|
|
53
|
-
<div class="leaf-outcome-shell"
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
meta={`Updated ${formatRelativeTime(section.anchoredAt)}`}
|
|
58
|
-
tone="accent"
|
|
59
|
-
headingLevel={3}
|
|
60
|
-
/>
|
|
61
|
-
{#if shouldCompressOutcome}
|
|
62
|
-
<ChronicleExpandButton
|
|
63
|
-
expanded={false}
|
|
64
|
-
collapsedLabel="Expand result"
|
|
65
|
-
class="expand-outcome-button"
|
|
66
|
-
dataPressable={true}
|
|
67
|
-
onClick={expandHistoryOutcome}
|
|
68
|
-
/>
|
|
69
|
-
{/if}
|
|
59
|
+
<div class="leaf-outcome-shell">
|
|
60
|
+
<ChronicleEntryHeader title="Turn result" kind="result" metadata={section.ownerTurnTitle} timestamp={section.anchoredAt} />
|
|
61
|
+
<div class="leaf-result-actions">
|
|
62
|
+
<ChronicleExpandButton expanded={!shouldCompressOutcome} expandedLabel="Collapse result" collapsedLabel="Expand result" class="expand-outcome-button" dataPressable={true} onClick={expandHistoryOutcome} />
|
|
70
63
|
</div>
|
|
71
64
|
|
|
72
65
|
{#if shouldCompressOutcome}
|
|
@@ -128,6 +121,9 @@ function expandHistoryOutcome() {
|
|
|
128
121
|
<p class="leaf-outcome-empty">This result has no text preview to show here.</p>
|
|
129
122
|
{/if}
|
|
130
123
|
</div>
|
|
124
|
+
{#if onDraftTicket && section.status === "ready"}
|
|
125
|
+
<div class="leaf-result-actions"><ChronicleCreateIssueButton {onDraftTicket} artifact={{ kind: "leaf_outcome", leafEntryId: section.leafEntryId }} /></div>
|
|
126
|
+
{/if}
|
|
131
127
|
</div>
|
|
132
128
|
</section>
|
|
133
129
|
|
|
@@ -137,31 +133,10 @@ function expandHistoryOutcome() {
|
|
|
137
133
|
scroll-margin-top: var(--space-xl);
|
|
138
134
|
}
|
|
139
135
|
|
|
140
|
-
.leaf-outcome-shell {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
padding: var(--space-lg) 0 var(--space-xl);
|
|
145
|
-
border-top: 1px solid color-mix(in srgb, var(--chronicle-success) 20%, var(--chronicle-border) 80%);
|
|
146
|
-
background: transparent;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.leaf-outcome-shell.is-compressed {
|
|
150
|
-
gap: var(--space-xs);
|
|
151
|
-
padding: var(--space-md) 0 var(--space-lg);
|
|
152
|
-
border-top-color: color-mix(in srgb, var(--chronicle-border) 88%, white 12%);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.leaf-outcome-block.is-focused .leaf-outcome-shell {
|
|
156
|
-
border-top-color: color-mix(in srgb, var(--chronicle-accent) 28%, var(--chronicle-success) 72%);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.leaf-outcome-header-row {
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: start;
|
|
162
|
-
justify-content: space-between;
|
|
163
|
-
gap: var(--space-sm);
|
|
164
|
-
}
|
|
136
|
+
.leaf-outcome-shell { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--chronicle-border); border-radius: 10px; background: var(--chronicle-card-surface); }
|
|
137
|
+
.leaf-outcome-content, .leaf-outcome-summary { padding: 12px; border-radius: 6px; background: color-mix(in srgb, var(--chronicle-accent) 6%, var(--chronicle-card-surface)); }
|
|
138
|
+
.leaf-outcome-block.is-focused .leaf-outcome-shell { border-color: color-mix(in srgb, var(--chronicle-accent) 40%, var(--chronicle-border)); }
|
|
139
|
+
.leaf-result-actions { display: flex; justify-content: flex-end; }
|
|
165
140
|
|
|
166
141
|
.leaf-outcome-summary {
|
|
167
142
|
margin: 0;
|
|
@@ -184,10 +159,8 @@ function expandHistoryOutcome() {
|
|
|
184
159
|
|
|
185
160
|
.warning-title {
|
|
186
161
|
margin: 0;
|
|
187
|
-
font-size: var(--type-
|
|
188
|
-
font-weight:
|
|
189
|
-
letter-spacing: var(--tracking-label);
|
|
190
|
-
text-transform: uppercase;
|
|
162
|
+
font-size: var(--type-body);
|
|
163
|
+
font-weight: 650;
|
|
191
164
|
}
|
|
192
165
|
|
|
193
166
|
.warning-copy,
|
|
@@ -45,8 +45,7 @@ let { label, size = "md" }: Props = $props();
|
|
|
45
45
|
position: relative;
|
|
46
46
|
display: inline-flex;
|
|
47
47
|
border-radius: 999px;
|
|
48
|
-
background:
|
|
49
|
-
box-shadow: 0 0 0 1px color-mix(in srgb, var(--chronicle-accent) 24%, white 76%);
|
|
48
|
+
background: var(--chronicle-text-muted);
|
|
50
49
|
flex-shrink: 0;
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -60,37 +59,4 @@ let { label, size = "md" }: Props = $props();
|
|
|
60
59
|
height: 10px;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
.live-pulse::after {
|
|
64
|
-
content: "";
|
|
65
|
-
position: absolute;
|
|
66
|
-
inset: -5px;
|
|
67
|
-
border-radius: inherit;
|
|
68
|
-
background: color-mix(in srgb, var(--chronicle-accent) 22%, transparent 78%);
|
|
69
|
-
animation: -global-live-pulse-wave 1.7s var(--ease-out-quint, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@keyframes -global-live-pulse-wave {
|
|
73
|
-
0% {
|
|
74
|
-
transform: scale(0.55);
|
|
75
|
-
opacity: 0.78;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
70% {
|
|
79
|
-
transform: scale(1.35);
|
|
80
|
-
opacity: 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
100% {
|
|
84
|
-
transform: scale(1.35);
|
|
85
|
-
opacity: 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@media (prefers-reduced-motion: reduce) {
|
|
90
|
-
.live-pulse::after {
|
|
91
|
-
animation: none;
|
|
92
|
-
opacity: 0.25;
|
|
93
|
-
transform: scale(1);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
62
|
</style>
|