@praudent/dagma 0.0.0-stage → 0.1.1
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/admin-ui/assets/index-CHJ8lsZp.js +120 -0
- package/dist/admin-ui/assets/index-XyqtD-IA.css +1 -0
- package/dist/admin-ui/index.html +12 -0
- package/dist/blueprint/agent.d.ts +148 -0
- package/dist/blueprint/agent.js +1 -0
- package/dist/blueprint/declaration-site.d.ts +7 -0
- package/dist/blueprint/declaration-site.js +8 -0
- package/dist/blueprint/declared-structure.d.ts +145 -0
- package/dist/blueprint/declared-structure.js +213 -0
- package/dist/blueprint/define-run-state.d.ts +79 -0
- package/dist/blueprint/define-run-state.js +89 -0
- package/dist/blueprint/load-blueprint.d.ts +28 -0
- package/dist/blueprint/load-blueprint.js +85 -0
- package/dist/blueprint/outcomes.d.ts +76 -0
- package/dist/blueprint/outcomes.js +10 -0
- package/dist/blueprint/phase.d.ts +153 -0
- package/dist/blueprint/phase.js +1 -0
- package/dist/blueprint/places.d.ts +26 -0
- package/dist/blueprint/places.js +37 -0
- package/dist/blueprint/prompt-file.d.ts +81 -0
- package/dist/blueprint/prompt-file.js +131 -0
- package/dist/blueprint/reply-reader.d.ts +36 -0
- package/dist/blueprint/reply-reader.js +38 -0
- package/dist/blueprint/run-settings.d.ts +38 -0
- package/dist/blueprint/run-settings.js +1 -0
- package/dist/blueprint/serializer.d.ts +14 -0
- package/dist/blueprint/serializer.js +4 -0
- package/dist/blueprint/write-scope.d.ts +39 -0
- package/dist/blueprint/write-scope.js +106 -0
- package/dist/command.d.ts +2 -0
- package/dist/command.js +148 -0
- package/dist/commands/calls-answering.d.ts +16 -0
- package/dist/commands/calls-answering.js +63 -0
- package/dist/commands/json-file.d.ts +6 -0
- package/dist/commands/json-file.js +19 -0
- package/dist/commands/run-command.d.ts +23 -0
- package/dist/commands/run-command.js +172 -0
- package/dist/commands/typed-answers.d.ts +10 -0
- package/dist/commands/typed-answers.js +43 -0
- package/dist/config.d.ts +27 -0
- package/dist/config.js +20 -0
- package/dist/devtool-server/app-pages.d.ts +12 -0
- package/dist/devtool-server/app-pages.js +68 -0
- package/dist/devtool-server/blueprint-description.d.ts +21 -0
- package/dist/devtool-server/blueprint-description.js +27 -0
- package/dist/devtool-server/connected-runs.d.ts +36 -0
- package/dist/devtool-server/connected-runs.js +201 -0
- package/dist/devtool-server/devtool-server.d.ts +17 -0
- package/dist/devtool-server/devtool-server.js +294 -0
- package/dist/devtool-server/devtool-shapes.d.ts +312 -0
- package/dist/devtool-server/devtool-shapes.js +24 -0
- package/dist/devtool-server/listed-runs.d.ts +17 -0
- package/dist/devtool-server/listed-runs.js +42 -0
- package/dist/devtool-server/print-blueprint.d.ts +1 -0
- package/dist/devtool-server/print-blueprint.js +36 -0
- package/dist/example/added-species.d.ts +21 -0
- package/dist/example/added-species.js +19 -0
- package/dist/example/cover.d.ts +21 -0
- package/dist/example/cover.js +67 -0
- package/dist/example/cross-references.d.ts +21 -0
- package/dist/example/cross-references.js +77 -0
- package/dist/example/entry-drafts.d.ts +21 -0
- package/dist/example/entry-drafts.js +63 -0
- package/dist/example/entry-merge.d.ts +108 -0
- package/dist/example/entry-merge.js +284 -0
- package/dist/example/field-guide.d.ts +26 -0
- package/dist/example/field-guide.js +40 -0
- package/dist/example/guide-page.d.ts +21 -0
- package/dist/example/guide-page.js +15 -0
- package/dist/example/missing-species.d.ts +21 -0
- package/dist/example/missing-species.js +59 -0
- package/dist/example/run-state.d.ts +803 -0
- package/dist/example/run-state.js +58 -0
- package/dist/example/serializers.d.ts +32 -0
- package/dist/example/serializers.js +42 -0
- package/dist/example/species-list.d.ts +47 -0
- package/dist/example/species-list.js +93 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +25 -0
- package/dist/inference/anthropic-api.d.ts +37 -0
- package/dist/inference/anthropic-api.js +197 -0
- package/dist/inference/anthropic-prices.d.ts +18 -0
- package/dist/inference/anthropic-prices.js +61 -0
- package/dist/inference/anthropic-request.d.ts +51 -0
- package/dist/inference/anthropic-request.js +208 -0
- package/dist/inference/bedrock-api.d.ts +45 -0
- package/dist/inference/bedrock-api.js +242 -0
- package/dist/inference/bedrock-prices.d.ts +22 -0
- package/dist/inference/bedrock-prices.js +79 -0
- package/dist/inference/bedrock-request.d.ts +27 -0
- package/dist/inference/bedrock-request.js +193 -0
- package/dist/inference/call-queue-shapes.d.ts +273 -0
- package/dist/inference/call-queue-shapes.js +82 -0
- package/dist/inference/call-queue.d.ts +109 -0
- package/dist/inference/call-queue.js +408 -0
- package/dist/inference/gemini-api.d.ts +44 -0
- package/dist/inference/gemini-api.js +191 -0
- package/dist/inference/gemini-prices.d.ts +19 -0
- package/dist/inference/gemini-prices.js +33 -0
- package/dist/inference/gemini-request.d.ts +25 -0
- package/dist/inference/gemini-request.js +126 -0
- package/dist/inference/inference.d.ts +84 -0
- package/dist/inference/inference.js +9 -0
- package/dist/inference/openai-api.d.ts +29 -0
- package/dist/inference/openai-api.js +138 -0
- package/dist/inference/openai-prices.d.ts +12 -0
- package/dist/inference/openai-prices.js +25 -0
- package/dist/inference/openai-request.d.ts +50 -0
- package/dist/inference/openai-request.js +100 -0
- package/dist/inference/own-worker.d.ts +6 -0
- package/dist/inference/own-worker.js +16 -0
- package/dist/inference/scripted.d.ts +146 -0
- package/dist/inference/scripted.js +67 -0
- package/dist/run/assignments/agent-call.d.ts +32 -0
- package/dist/run/assignments/agent-call.js +218 -0
- package/dist/run/assignments/agent-phase.d.ts +14 -0
- package/dist/run/assignments/agent-phase.js +243 -0
- package/dist/run/assignments/assignment-memory.d.ts +42 -0
- package/dist/run/assignments/assignment-memory.js +52 -0
- package/dist/run/assignments/assignment.d.ts +17 -0
- package/dist/run/assignments/assignment.js +252 -0
- package/dist/run/assignments/model-settings.d.ts +39 -0
- package/dist/run/assignments/model-settings.js +57 -0
- package/dist/run/assignments/prepared-call.d.ts +28 -0
- package/dist/run/assignments/prepared-call.js +115 -0
- package/dist/run/assignments/tool-call.d.ts +26 -0
- package/dist/run/assignments/tool-call.js +108 -0
- package/dist/run/blueprint-mistake.d.ts +8 -0
- package/dist/run/blueprint-mistake.js +14 -0
- package/dist/run/code-phase.d.ts +11 -0
- package/dist/run/code-phase.js +59 -0
- package/dist/run/create-run.d.ts +36 -0
- package/dist/run/create-run.js +119 -0
- package/dist/run/execute-run.d.ts +7 -0
- package/dist/run/execute-run.js +158 -0
- package/dist/run/record/apply-event.d.ts +13 -0
- package/dist/run/record/apply-event.js +256 -0
- package/dist/run/record/events.d.ts +187 -0
- package/dist/run/record/events.js +1 -0
- package/dist/run/record/postgres-run-store.d.ts +13 -0
- package/dist/run/record/postgres-run-store.js +189 -0
- package/dist/run/record/progress-projection.d.ts +83 -0
- package/dist/run/record/progress-projection.js +167 -0
- package/dist/run/record/progress.d.ts +207 -0
- package/dist/run/record/progress.js +63 -0
- package/dist/run/record/run-store.d.ts +74 -0
- package/dist/run/record/run-store.js +1 -0
- package/dist/run/record/run-summary.d.ts +8 -0
- package/dist/run/record/run-summary.js +19 -0
- package/dist/run/record/run-types.d.ts +95 -0
- package/dist/run/record/run-types.js +1 -0
- package/dist/run/record/state-changes.d.ts +42 -0
- package/dist/run/record/state-changes.js +157 -0
- package/dist/run/resume-run.d.ts +25 -0
- package/dist/run/resume-run.js +99 -0
- package/dist/run/run-endings.d.ts +20 -0
- package/dist/run/run-endings.js +20 -0
- package/dist/run/run-option-shapes.d.ts +176 -0
- package/dist/run/run-option-shapes.js +47 -0
- package/dist/run/run-session.d.ts +144 -0
- package/dist/run/run-session.js +278 -0
- package/dist/worker/answer-queued-call.d.ts +19 -0
- package/dist/worker/answer-queued-call.js +100 -0
- package/dist/worker/launchers/claude-code.d.ts +7 -0
- package/dist/worker/launchers/claude-code.js +156 -0
- package/dist/worker/launchers/codex.d.ts +6 -0
- package/dist/worker/launchers/codex.js +141 -0
- package/dist/worker/launchers/launch.d.ts +31 -0
- package/dist/worker/launchers/launch.js +6 -0
- package/dist/worker/launchers/program-run.d.ts +30 -0
- package/dist/worker/launchers/program-run.js +92 -0
- package/dist/worker/launchers/tool-server.d.ts +26 -0
- package/dist/worker/launchers/tool-server.js +90 -0
- package/dist/worker/worker.d.ts +13 -0
- package/dist/worker/worker.js +170 -0
- package/package.json +43 -4
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inconsolata:wght@400..600&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=Source+Sans+3:wght@400..700&display=swap";:root{--page: #ffffff;--surface: #ffffff;--text: #1c1b19;--text-2: #645f58;--primary: #2a4b9b;--on-primary: #ffffff;--border: #ddd9d0;--success: #2c6b3f;--warning: #8a5a00;--error: #b4271f;--font-title: "Newsreader", "Iowan Old Style", Georgia, serif;--font-text: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;--font-code: "Inconsolata", ui-monospace, Menlo, monospace;--type-title: 500 20px/28px var(--font-title);--type-heading: 600 16px/24px var(--font-title);--type-body: 400 15px/22px var(--font-text);--type-row: 400 15px/20px var(--font-text);--type-small: 400 13px/18px var(--font-text);--type-detail: 400 13px/16px var(--font-text);--type-label: 600 13px/16px var(--font-text);--type-tiny: 600 12px/16px var(--font-text);--type-code: 450 14px/20px var(--font-code);--type-prompt: 450 15px/22px var(--font-code);--type-blueprint-voice: 400 14px/17px var(--font-title);--row: 32px;--control: 32px;--primary-hover: color-mix(in srgb, var(--primary) 84%, black);--primary-busy: color-mix(in srgb, var(--primary) 78%, var(--page));--primary-faded: color-mix(in srgb, var(--primary) 60%, var(--page));--primary-wash: color-mix(in srgb, var(--primary) 7%, var(--surface));--focus-ring: var(--primary);--focus-halo: color-mix(in srgb, var(--primary) 20%, transparent);--error-hover: color-mix(in srgb, var(--error) 84%, black);--hover-tint: color-mix(in srgb, var(--text) 4.5%, transparent);--hover-fill: color-mix(in srgb, var(--text) 4.5%, var(--surface));--selected-tint: color-mix(in srgb, var(--text) 11%, transparent);--match-tint: color-mix(in srgb, var(--text) 16%, transparent);--line-faint: color-mix(in srgb, var(--border) 58%, var(--page));--line-strong: color-mix(in srgb, var(--text-2) 60%, var(--border));--disabled-text: color-mix(in srgb, var(--text-2) 80%, var(--page));--disabled-fill: color-mix(in srgb, var(--border) 52%, var(--page));--shadow-layer: 0 1px 0 var(--border), 0 12px 28px -12px color-mix(in srgb, var(--text) 18%, transparent)}.is-disabled,.is-loading{pointer-events:none}*,*:before,*:after{box-sizing:border-box}html{background:var(--page)}body{width:1536px;margin:0 auto;padding:64px 64px 96px;background:var(--page);color:var(--text);font:var(--type-body);font-kerning:normal;font-variant-numeric:lining-nums;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}svg{display:block;flex:none}.icon-symbols{position:absolute;width:0;height:0}.row{display:grid;grid-template-columns:repeat(12,88px);column-gap:32px;align-items:start;margin-bottom:64px}.row:last-child,.row--inner{margin-bottom:0}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}.span-9{grid-column:span 9}.span-12{grid-column:span 12}.group{border-top:1px solid var(--border);padding-top:16px;min-width:0}.group-label{margin:0 0 24px;font:500 16px/24px var(--font-title);color:var(--text)}.examples{display:grid;column-gap:32px;row-gap:32px;align-items:start}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.cols-9{grid-template-columns:repeat(9,minmax(0,1fr));row-gap:16px}.cols-auto{grid-auto-flow:column;grid-auto-columns:max-content;column-gap:48px}.example{margin:0;min-width:0}.example--span-2{grid-column:span 2}.example--span-3{grid-column:span 3}.example--wide{grid-column:1 / -1}.group>.row--inner+.examples,.group>.examples+.examples{margin-top:32px}.example--pane{max-width:448px}.caption{display:block;margin-bottom:12px;font:var(--type-detail);color:var(--text-2)}.text-title{margin:0;font:var(--type-title);letter-spacing:-.005em;color:var(--text)}.text-heading{margin:0;font:var(--type-heading);color:var(--text)}.text-body{margin:0;font:var(--type-body);color:var(--text)}.text-secondary{margin:0;font:var(--type-small);color:var(--text-2)}.text-caption{margin:0;font:var(--type-detail);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.link{color:var(--primary);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--primary) 38%,transparent)}.link.is-hover,.link:hover{color:var(--primary-hover);text-decoration-color:currentColor}.link.is-focus,.link:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:2px}.code{font:var(--type-code);color:var(--text)}.text-body .code,.table-cell .code{line-height:1}.code-block{margin:0;padding:8px 12px;background:var(--surface);border:1px solid var(--border);border-radius:2px;font:var(--type-code);color:var(--text)}.code-block--reading{max-width:calc(96ch + 34px);padding:12px 16px;font:var(--type-prompt)}.code-line{min-height:1lh;padding-left:2ch;text-indent:-2ch;white-space:pre-wrap;overflow-wrap:anywhere}.icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.icon-sample{display:flex;align-items:center;gap:8px}.icon-sample .caption{margin:0}.spinner{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round}.spinner-track{opacity:.22}.status{display:inline-flex;align-items:center;gap:8px;vertical-align:top;font:var(--type-row);color:var(--text);white-space:nowrap}.status-label{color:inherit}a.status-label{color:var(--primary)}a.status-label.is-focus,a.status-label:focus-visible,a.run-phase-note.is-focus,a.run-phase-note:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:2px}.status-mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:none;border-radius:50%;color:var(--text-2)}.status-glyph{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.status-mark--running,.status-mark--in-progress{color:var(--primary)}.status-mark--finished,.status-mark--accepted{color:var(--success)}.status-mark--asked{color:var(--warning)}.status-mark--failed-accepted,.status-mark--returned-error{color:var(--error)}.status-mark--failed-made-again,.status-mark--stopped,.status-mark--nothing-to-do,.status-mark--not-reached,.status-mark--from-run,.status-mark--waiting-condition,.status-mark--waiting-slot,.status-mark--dropped,.status-mark--sent-back{color:var(--text-2)}.status-mark--failed{background:var(--error);color:var(--on-primary)}.status-mark--waiting-person{background:var(--warning);color:var(--on-primary)}.status-mark--failed .status-glyph{width:12px;height:12px;stroke-width:2.6}.status-mark--waiting-person .status-glyph{width:11px;height:11px;stroke-width:2.2}.status-mark--finished .status-glyph,.status-mark--accepted .status-glyph{stroke-width:1.9}.status-mark--stopped .status-glyph{fill:currentColor;stroke-width:.5}.status-mark--not-reached .status-glyph{stroke-width:1.6;stroke-dasharray:2 1.927;stroke-linecap:butt}.status-mark--waiting-slot .status-glyph,.status-mark--running .status-glyph,.status-mark--in-progress .status-glyph{stroke-width:2}.status-mark--running .spinner-track,.status-mark--in-progress .spinner-track{opacity:.5}.status-list{list-style:none;margin:0;padding:0;display:grid;row-gap:8px}.status-pair{display:grid;grid-template-columns:208px 16px;align-items:center}.count-filter{display:flex;align-items:center;gap:4px}.count-filter-item{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:2px;font:var(--type-row);color:var(--text-2);white-space:nowrap}.count-filter-label{color:inherit}.count-filter-count{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums lining-nums}.count-filter-item.is-hover,.count-filter-item:hover{background:var(--hover-tint);color:var(--text)}.count-filter-item.is-selected{border-radius:0;background:var(--selected-tint);box-shadow:inset 2px 0 0 var(--text);color:var(--text)}.count-filter-item.is-focus,.count-filter-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--control);padding:0 12px;border:1px solid transparent;border-radius:2px;font:600 15px/20px var(--font-text);color:var(--text);white-space:nowrap}.button--small{height:24px;padding:0 8px;gap:6px;font-size:13px;line-height:18px}.button--icon{width:var(--control);padding:0}.button--icon.button--small{width:24px}.button.is-focus,.button:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.button--filled{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.button--filled.is-hover,.button--filled:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.button--filled.is-loading{background:var(--primary-busy);border-color:var(--primary-busy)}.button--filled.is-disabled{background:var(--primary-faded);border-color:transparent;color:var(--surface)}.button--primary-outline{background:var(--surface);border-color:var(--primary);color:var(--primary)}.button--primary-outline.is-hover,.button--primary-outline:hover{background:var(--primary-wash);border-color:var(--primary-hover);color:var(--primary-hover)}.button--primary-outline.is-loading{border-color:var(--primary-busy);color:var(--primary-busy)}.button--primary-outline.is-disabled{background:transparent;border-color:var(--border);color:var(--disabled-text)}.button--outline{background:var(--surface);border-color:var(--line-strong)}.button--outline.is-hover,.button--outline:hover{background:var(--hover-fill);border-color:var(--text-2)}.button--outline.is-loading{color:var(--text-2)}.button--outline.is-disabled{background:transparent;border-color:var(--border);color:var(--disabled-text)}.button--quiet{padding:0 10px;color:var(--text)}.button--quiet.is-hover,.button--quiet:hover{background:var(--hover-tint)}.button--quiet.is-loading{color:var(--text-2)}.button--quiet.is-disabled{color:var(--disabled-text)}.button--quiet.button--icon{padding:0;color:var(--text-2)}.button--link{height:20px;padding:0;border:0;border-radius:2px;font-weight:400;color:var(--primary);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--primary) 38%,transparent)}.button--link.is-hover,.button--link:hover{color:var(--primary-hover);text-decoration-color:currentColor}.button--link.is-disabled{color:var(--disabled-text);text-decoration-color:transparent}.button--link.is-loading{text-decoration-color:transparent}.button--destructive.button--outline.is-hover,.button--destructive.button--outline:hover{background:color-mix(in srgb,var(--error) 6%,var(--surface));border-color:var(--error);color:var(--error-hover)}.button--destructive.button--filled{background:var(--error);border-color:var(--error);color:var(--on-primary)}.button--destructive.button--filled.is-hover,.button--destructive.button--filled:hover{background:var(--error-hover);border-color:var(--error-hover)}.button>.icon{margin-left:-2px}.button--icon>.icon{margin-left:0}.button .spinner{width:14px;height:14px;margin-left:-2px}.button--link .spinner{margin-left:0}.button .key{margin-left:2px;margin-right:-6px}.key{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;background:var(--surface);border:1px solid var(--border);border-bottom-color:var(--line-strong);border-radius:2px;font:var(--type-tiny);color:var(--text-2);white-space:nowrap}.key-hint{display:inline-flex;align-items:center;gap:4px}.key-hint-action{margin-right:4px;font:var(--type-small);color:var(--text-2)}.field{display:block}.field-label{display:block;margin-bottom:6px;font:var(--type-label);color:var(--text)}.is-disabled>.field-label{color:var(--disabled-text)}.input,.textarea,.combobox-control,.search-field{display:flex;align-items:center;gap:8px;width:100%;height:var(--control);padding:0 10px;background:var(--surface);border:1px solid var(--line-strong);border-radius:2px;font:var(--type-row);color:var(--text)}.field-value{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.field-placeholder{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-2)}.field-caret{display:inline-block;width:1px;height:18px;margin:0 1px;background:var(--text);vertical-align:-4px}.input.is-focus,.input:focus-within,.textarea.is-focus,.textarea:focus-within,.combobox-control.is-focus,.combobox-control:focus-within,.search-field.is-focus,.search-field:focus-within{border-color:var(--focus-ring);box-shadow:0 0 0 1px var(--focus-ring),0 0 0 4px var(--focus-halo)}.input.is-error,.textarea.is-error{border-color:var(--error);box-shadow:inset 2px 0 0 var(--error)}.input.is-disabled,.textarea.is-disabled,.combobox-control.is-disabled{background:transparent;border-color:var(--border);color:var(--disabled-text)}.textarea{align-items:flex-start;height:80px;padding:5px 10px;line-height:22px}.textarea .field-value,.textarea .field-placeholder{white-space:normal;overflow:visible}.textarea--code{height:auto;min-height:72px;padding:8px 12px;font:var(--type-code)}.textarea--code .field-value{white-space:pre}.field-message{display:flex;align-items:flex-start;gap:6px;margin-top:6px;font:var(--type-small);color:var(--error)}.field-message .icon{width:14px;height:14px;margin-top:2px;stroke-width:1.55}.field-hint{margin:6px 0 0;font:var(--type-small);color:var(--text-2)}.combobox{position:relative}.combobox-chevron{color:var(--text-2);margin-right:-2px}.is-disabled .combobox-chevron{color:var(--disabled-text)}.combobox-menu{margin-top:4px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:3px;box-shadow:var(--shadow-layer)}.combobox-option{display:flex;align-items:center;justify-content:space-between;gap:8px;height:28px;padding:0 8px;border-radius:2px;font:var(--type-row);color:var(--text)}.combobox-option.is-hover,.combobox-option:hover{background:var(--hover-tint)}.combobox-option.is-active{background:var(--selected-tint)}.combobox-option .icon{color:var(--text);stroke-width:1.75}.combobox-match{background:none;color:inherit;text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--text);text-underline-offset:3px}.combobox-empty{padding:5px 8px;font:var(--type-small);color:var(--text-2)}.choice{display:inline-flex;align-items:center;gap:8px;height:24px;font:var(--type-row);color:var(--text);white-space:nowrap}.choice.is-disabled{color:var(--disabled-text)}.choice-label{color:inherit}.choice.is-focus .checkbox,.choice:has(:focus-visible) .checkbox,.choice.is-focus .radio,.choice:has(:focus-visible) .radio,.choice.is-focus .switch,.choice:has(:focus-visible) .switch{outline:2px solid var(--focus-ring);outline-offset:2px}.checkbox{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:none;background:var(--surface);border:1px solid var(--line-strong);border-radius:2px;color:var(--on-primary)}.checkbox.is-on{background:var(--primary);border-color:var(--primary)}.checkbox .icon{width:12px;height:12px;stroke-width:2.25}.is-disabled .checkbox{background:transparent;border-color:var(--border)}.is-disabled .checkbox.is-on{background:var(--primary-faded);border-color:transparent;color:var(--surface)}.radio{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:none;background:var(--surface);border:1px solid var(--line-strong);border-radius:50%}.radio.is-on{background:var(--primary);border-color:var(--primary)}.radio.is-on:after{content:"";width:6px;height:6px;border-radius:50%;background:var(--on-primary)}.is-disabled .radio{background:transparent;border-color:var(--border)}.is-disabled .radio.is-on{background:var(--primary-faded);border-color:transparent}.is-disabled .radio.is-on:after{background:var(--surface)}.radio-group{display:flex;flex-direction:column;align-items:flex-start}.switch{position:relative;flex:none;width:28px;height:16px;background:var(--surface);border:1px solid var(--line-strong);border-radius:2px}.switch:after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:1px;background:var(--text-2)}.switch.is-on{background:var(--primary);border-color:var(--primary)}.switch.is-on:after{left:14px;background:var(--on-primary)}.is-disabled .switch{background:transparent;border-color:var(--border)}.is-disabled .switch:after{background:var(--border)}.is-disabled .switch.is-on{background:var(--primary-faded);border-color:transparent}.is-disabled .switch.is-on:after{background:var(--surface)}.tabs{display:flex;align-items:stretch;gap:24px;border-bottom:1px solid var(--border)}.tab{display:inline-flex;align-items:center;gap:6px;height:36px;margin-bottom:-1px;border-bottom:2px solid transparent;font:var(--type-row);color:var(--text-2);white-space:nowrap}.tab-count{font:400 13px/20px var(--font-text);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.tab.is-hover,.tab:hover{color:var(--text);border-bottom-color:var(--line-strong)}.tab.is-selected{color:var(--text);border-bottom-color:var(--text)}.tab.is-focus,.tab:focus-visible,.top-bar-destination.is-focus,.top-bar-destination:focus-visible{position:relative;outline:none}.tab.is-focus:after,.tab:focus-visible:after,.top-bar-destination.is-focus:after,.top-bar-destination:focus-visible:after{content:"";position:absolute;top:5px;right:-8px;bottom:4px;left:-8px;border-radius:2px;box-shadow:0 0 0 2px var(--focus-ring)}.segmented{display:inline-flex;height:var(--control);padding:2px;background:var(--surface);border:1px solid var(--line-strong);border-radius:2px}.segmented-option{display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:1px;font:var(--type-row);color:var(--text-2);white-space:nowrap}.segmented-option.is-hover,.segmented-option:hover{color:var(--text);background:var(--hover-tint)}.segmented-option.is-selected{background:var(--selected-tint);color:var(--text)}.segmented-option.is-focus,.segmented-option:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.segmented.is-disabled{background:transparent;border-color:var(--border)}.segmented.is-disabled .segmented-option{color:var(--disabled-text)}.segmented.is-disabled .segmented-option.is-selected{background:var(--disabled-fill)}.table{width:100%;border-collapse:separate;border-spacing:0;font:var(--type-row);color:var(--text)}.table-head{vertical-align:bottom}.table-heading{padding:6px 12px 5px;border-bottom:1px solid var(--text);font:var(--type-label);color:var(--text-2);text-align:left;white-space:nowrap}.table-heading.is-sorted{color:var(--text)}.table-sort{display:inline-flex;align-items:center;gap:2px;border-radius:2px;vertical-align:top;cursor:pointer}.table-sort .icon{width:14px;height:14px;margin:1px -3px 1px 0;stroke-width:1.6;color:var(--line-strong)}.table-heading.is-sorted .table-sort .icon,.table-sort.is-hover,.table-sort:hover{color:var(--text)}.table-sort.is-hover .icon,.table-sort:hover .icon{color:var(--text-2)}.table-heading.is-sorted .table-sort.is-hover .icon,.table-heading.is-sorted .table-sort:hover .icon{color:var(--text)}.table-sort.is-focus,.table-sort:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.table-heading--number .table-sort{flex-direction:row-reverse}.table-heading--number .table-sort .icon{margin:1px 0 1px -3px}.table-cell{height:var(--row);padding:5px 12px;border-bottom:1px solid var(--line-faint);text-align:left;white-space:nowrap}.table-heading--number,.table-cell--number{text-align:right;font-variant-numeric:tabular-nums lining-nums}.table-cell--wrap{white-space:normal}.table-cell--cut{width:99%;max-width:0;overflow:hidden;text-overflow:ellipsis}.table-cell-detail{margin-left:8px;font-size:13px;color:var(--text-2);font-weight:400}.not-reported,.pending,.no-charge{color:var(--text-2)}.table-row.is-hover .table-cell,.table-row:where([tabindex]):hover .table-cell{background:var(--hover-tint)}.table-row.is-selected .table-cell{background:var(--selected-tint)}.table-row.is-selected .table-cell:first-child{box-shadow:inset 2px 0 0 var(--text)}.table-row.is-focus .table-cell,.table-row:focus-visible .table-cell{box-shadow:inset 0 2px 0 var(--focus-ring),inset 0 -2px 0 var(--focus-ring)}.table-row.is-focus .table-cell:first-child,.table-row:focus-visible .table-cell:first-child{box-shadow:inset 2px 2px 0 var(--focus-ring),inset 0 -2px 0 var(--focus-ring)}.table-row.is-focus .table-cell:last-child,.table-row:focus-visible .table-cell:last-child{box-shadow:inset -2px 2px 0 var(--focus-ring),inset 0 -2px 0 var(--focus-ring)}.table-row.is-selected.is-focus .table-cell:first-child,.table-row.is-selected:focus-visible .table-cell:first-child{box-shadow:inset 2px 2px 0 var(--focus-ring),inset 0 -2px 0 var(--focus-ring),inset 4px 0 0 var(--text)}.table-row.is-selected .chain-arrow{color:var(--text-2)}.table-row.is-selected .attempt+.attempt:before{background:var(--text-2)}.table tbody:has(+tfoot) .table-row:last-child .table-cell{border-bottom:0}.table-row--totals .table-cell{border-top:1px solid var(--text);border-bottom:0;font-weight:600}.table-row--totals .table-cell-detail{font-weight:400}.path{display:flex;align-items:center;gap:4px;font:var(--type-row)}.path-item{color:var(--text-2);white-space:nowrap}a.path-item.is-hover,a.path-item:hover{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.path-item.is-focus,.path-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:2px}.path-item.is-current{color:var(--text)}.path-detail{color:var(--text-2);font-size:13px}.path-separator{width:12px;height:12px;color:var(--line-strong);stroke-width:1.75}.search-field-icon{color:var(--text-2);margin-left:-2px}.search-field-count{flex:none;font:var(--type-detail);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}.search-field-clear{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none;margin-right:-4px;border-radius:2px;color:var(--text-2)}.search-field-clear.is-hover,.search-field-clear:hover{background:var(--hover-tint);color:var(--text)}.search-field-clear.is-focus,.search-field-clear:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.search-field .key{margin-right:-4px}.tooltip-anchor,.popover-anchor{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.tooltip{position:relative;max-width:288px;padding:8px 12px;background:var(--surface);border:1px solid var(--border);border-radius:3px;box-shadow:var(--shadow-layer);font:var(--type-small);color:var(--text)}.tooltip:before{content:"";position:absolute;top:-5px;left:3px;width:8px;height:8px;background:var(--surface);border:solid var(--border);border-width:1px 0 0 1px;transform:rotate(45deg)}.popover{width:320px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:3px;box-shadow:var(--shadow-layer)}.popover-title{margin:0 0 12px;font:var(--type-heading);color:var(--text)}.popover .field+.field{margin-top:12px}.popover-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.notice{display:flex;align-items:flex-start;gap:8px}.notice-icon{margin-top:3px;color:var(--text-2);stroke-width:1.5}.notice-body{min-width:0}.notice-title{margin:0;font:600 15px/22px var(--font-text);color:var(--text)}.notice-text{margin:0;font:var(--type-small);color:var(--text-2)}.notice-action{white-space:nowrap}.notice--warning .notice-icon{color:var(--warning)}.notice--error .notice-icon{color:var(--error)}.notice--marked{padding:0 0 0 14px;border-left:2px solid var(--text-2)}.notice--marked.notice--warning{border-left-color:var(--warning)}.notice--marked.notice--error{border-left-color:var(--error)}.connection-banner{display:flex;align-items:center;gap:8px;height:36px;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--border);box-shadow:inset 0 2px 0 var(--error);font:var(--type-row);color:var(--text)}.connection-banner-icon{color:var(--error);stroke-width:1.5}.connection-banner-title{font-weight:600}.connection-banner-text{margin-left:4px;color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.toast{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px 0 12px;background:var(--surface);border:1px solid var(--border);border-radius:3px;box-shadow:var(--shadow-layer);font:600 15px/20px var(--font-text);color:var(--text)}.toast-icon{color:var(--success);stroke-width:2}.confirmation{max-width:448px;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:3px;box-shadow:var(--shadow-layer)}.confirmation-title{margin:0 0 8px;font:var(--type-heading);color:var(--text)}.confirmation-text{margin:0;font:var(--type-body);color:var(--text-2)}.confirmation-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.empty-state{padding:16px 12px 24px;text-align:left}.empty-state-text{margin:0;max-width:600px;font:var(--type-body);color:var(--text-2)}.empty-state-text+.button{margin-top:12px}.skeleton{display:inline-block;height:8px;border-radius:2px;background:linear-gradient(90deg,var(--disabled-fill),var(--line-faint) 60%,var(--disabled-fill));vertical-align:middle}.skeleton--short{width:48px}.skeleton--medium{width:96px}.skeleton--long{width:152px}.top-bar{display:flex;align-items:stretch;gap:32px;height:44px;border-bottom:1px solid var(--border)}.top-bar-name{display:inline-flex;align-items:center;font:var(--type-heading);color:var(--text);white-space:nowrap}.top-bar-destinations{display:flex;align-items:stretch;gap:24px}.top-bar-destination{display:inline-flex;align-items:center;margin-bottom:-1px;font:var(--type-row);color:var(--text-2);white-space:nowrap}.top-bar-destination.is-hover,.top-bar-destination:hover{color:var(--text);box-shadow:inset 0 -1px 0 var(--line-strong)}.top-bar-destination.is-selected{color:var(--text);box-shadow:inset 0 -1px 0 var(--text)}.top-bar-loaded{display:inline-flex;align-items:center;margin-left:auto;font:var(--type-detail);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}.screen-header{display:flex;align-items:center;gap:24px;height:52px}.screen-toolbar{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.screen-toolbar .search-field{width:288px}.screen-toolbar .combobox{width:176px}.screen-toolbar-end{margin-left:auto}.phase-rows{list-style:none;margin:0;padding:0}.phase-row{display:flex;align-items:center;gap:8px;height:var(--row);padding:0 12px 0 28px;font:var(--type-row);color:var(--text)}.phase-row.is-hover,.phase-row:hover{background:var(--hover-tint)}.phase-row.is-selected{background:var(--selected-tint);box-shadow:inset 2px 0 0 var(--text)}.phase-row.is-focus,.phase-row:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.phase-row.is-selected.is-focus,.phase-row.is-selected:focus-visible{box-shadow:inset 4px 0 0 var(--text)}.phase-number{flex:none;width:16px;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.side-line-phases{display:grid;gap:4px;margin:0;padding-left:20px;font:var(--type-body)}.side-line-phases .text-secondary{margin-left:8px}.phase-enters{flex:none;margin-left:auto;font-size:13px;color:var(--text-2);white-space:nowrap}.phase-enters+.phase-enters{margin-left:0}.phase-name{min-width:0;padding-right:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notation-mark{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}.notation-solid{fill:currentColor;stroke:none}.notation-fine{stroke-width:.75}.notation-strong{stroke-width:1.5}.drawing{max-width:100%;overflow:visible;font:var(--type-detail)}.drawing-flow,.drawing-rail,.drawing-lanes,.drawing-loop,.drawing-stem,.drawing-question,.drawing-end{fill:none;stroke:var(--text);stroke-width:1.25;stroke-linecap:butt;stroke-linejoin:round}.drawing-loop,.drawing-stem,.drawing-lanes{stroke-width:.75}.drawing-question{stroke-width:2;stroke-linecap:round;stroke-dasharray:.01 5}.drawing-end{stroke-width:2;stroke-linecap:square}.drawing-arrowhead{fill:var(--text);stroke:none}.drawing-per-subject,.drawing-repeats,.drawing-wait,.drawing-only-when,.drawing-at-once,.drawing-call-fails{color:var(--text)}.drawing-once{fill:var(--text);stroke:none}.drawing-dot{fill:currentColor;stroke:none}.drawing-fan,.drawing-wait-hands,.drawing-repeats-layer,.drawing-at-once-rungs,.drawing-call-fails-cross{fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}.drawing-at-once-rungs{stroke-linecap:butt}.drawing-wait-face,.drawing-repeats-front,.drawing-only-when-shape{fill:var(--surface);stroke:currentColor;stroke-width:1.25;stroke-linejoin:miter}.drawing-person{fill:var(--surface);stroke:var(--text);stroke-width:2}.drawing-agent,.drawing-code,.drawing-tool,.drawing-lane{cursor:pointer}.drawing-agent--context{cursor:default;pointer-events:none}.drawing-agent-box,.drawing-code-box{fill:var(--surface);stroke:var(--text);stroke-width:2;rx:2px}.drawing-code-inner{fill:none;stroke:var(--text);stroke-width:.75}.drawing-agent-name{fill:var(--text);font:600 15px/20px var(--font-text);text-anchor:middle}.drawing-code-name{fill:var(--text);font:600 15px/20px var(--font-text)}.drawing-agent--context .drawing-agent-box{fill:none;stroke:var(--line-strong);stroke-width:1.25}.drawing-agent.is-hover .drawing-agent-box,.drawing-agent:hover .drawing-agent-box,.drawing-code.is-hover .drawing-code-box,.drawing-code:hover .drawing-code-box{fill:var(--hover-fill)}.drawing-agent.is-selected .drawing-agent-box,.drawing-code.is-selected .drawing-code-box{stroke-width:4}.drawing-agent.is-focus,.drawing-agent:focus-visible,.drawing-code.is-focus,.drawing-code:focus-visible{outline:2px solid var(--focus-ring);outline-offset:5px;border-radius:2px}.drawing-glyph{fill:none;stroke:var(--text);stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.drawing-tool-name{fill:var(--text);font-weight:600}.drawing-tool.is-hover .drawing-tool-name,.drawing-tool:hover .drawing-tool-name,.drawing-lane.is-hover .drawing-lane-name,.drawing-lane:hover .drawing-lane-name{text-decoration:underline;text-decoration-thickness:1px}.drawing-tool.is-selected .drawing-tool-name,.drawing-lane.is-selected .drawing-lane-name{text-decoration:underline;text-decoration-thickness:2px}.drawing-tool.is-focus,.drawing-tool:focus-visible,.drawing-lane.is-focus,.drawing-lane:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px;border-radius:2px}.drawing-label{fill:var(--text);font-weight:600}.drawing-description{fill:var(--text-2);font:var(--type-blueprint-voice)}.drawing-lane-name{fill:var(--text);font-weight:600}.drawing-agent-note{fill:var(--text-2);text-anchor:middle}.drawing-words-box{fill:var(--surface);stroke:var(--line-strong);stroke-width:1;rx:12px}.drawing-words-text{fill:var(--text);text-anchor:middle}.drawing-explained:hover>.drawing-words-box{fill:var(--hover-fill)}.drawing-explained.is-focus,.drawing-explained:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px;border-radius:2px}.drawing-tooltip{position:fixed;z-index:60;pointer-events:none}.drawing-tooltip>p{margin:0}.drawing-tooltip>p+p{margin-top:6px}.drawing-text--middle{text-anchor:middle}.drawing-text--end{text-anchor:end}.piece{min-width:0}.piece--under-heading{padding-top:16px}.piece-header{margin-bottom:24px}.piece-title-line{display:flex;align-items:baseline;gap:12px;margin-bottom:4px}.piece-kind{font:var(--type-detail);color:var(--text-2)}.phase-heading{display:flex;align-items:baseline;gap:12px;margin:0 0 24px}.phase-heading .phase-number{margin-right:-4px}.phase-heading-description{min-width:0;margin:0;font:var(--type-body);color:var(--text-2)}.phase-heading .source-location{align-self:center}.source-location{display:inline-flex;align-items:center;gap:4px;font:var(--type-detail);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;vertical-align:middle}.source-location .icon{width:14px;height:14px;stroke-width:1.5}.source-location.is-hover,.source-location:hover{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.source-location.is-focus,.source-location:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:2px}.piece-title-line .source-location{align-self:center}.piece-section+.piece-section{margin-top:24px}.piece-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));align-items:start;gap:24px 32px}.piece-column{min-width:0}.piece-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:8px}.piece-section-title{display:flex;align-items:center;gap:8px;margin:0 0 8px;font:var(--type-label);color:var(--text)}.piece-section-title .notation-mark,.piece-section-title .icon{color:var(--text)}.piece-section-heading .piece-section-title{margin:0}.piece-section .text-body+.text-secondary{margin-top:4px}.placeholder{padding:0;background:none;color:var(--text);font:inherit;font-weight:550;text-decoration:underline solid var(--text) 1.5px;text-underline-offset:3px}.template-include{padding:0;background:none;color:var(--text);font:inherit;font-weight:550;text-decoration:underline dashed var(--text) 1.5px;text-underline-offset:3px}.template-include-name{margin-left:16px;font:var(--type-detail);color:var(--text-2)}.input-rows{list-style:none;margin:0;padding:0}.input-row{display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:16px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line-faint)}.input-row:first-child{padding-top:0}.input-row:last-child{border-bottom:0;padding-bottom:0}.input-row-body{min-width:0}.input-placeholder{justify-self:start;font:var(--type-code)}.input-description{margin:0;font:var(--type-body);color:var(--text)}.input-serializer{margin:0;font:var(--type-small);color:var(--text-2)}.input-serializer-name{font-weight:600;color:var(--text)}.tool-summary{display:flex;align-items:flex-start;gap:8px}.tool-summary-body{min-width:0}.tool-summary-icon{margin-top:3px;color:var(--text-2)}.tool-summary-name{font-weight:600}a.tool-summary-name{color:var(--text);cursor:pointer}a.tool-summary-name.is-hover,a.tool-summary-name:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}a.tool-summary-name.is-focus,a.tool-summary-name:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:2px}.tool-summary-body .text-secondary{margin-top:0}.chain-names{display:flex;align-items:center;gap:8px;margin:0;font:var(--type-body);color:var(--text)}.setting-list{display:grid;grid-template-columns:max-content max-content minmax(0,1fr);column-gap:24px;row-gap:4px;align-items:baseline;margin:0}.setting-name{font:var(--type-body);color:var(--text-2)}.setting-value{margin:0;font:var(--type-body);color:var(--text);font-variant-numeric:tabular-nums lining-nums}.setting-source{margin:0;font:400 13px/22px var(--font-text);color:var(--text-2)}.list-name{font-weight:600}.used-by{color:var(--text-2)}.new-run{max-width:688px}.new-run-title{margin-bottom:16px}.form-section+.form-section{margin-top:24px}.form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.input-check{display:flex;align-items:center;gap:6px;margin-top:6px;font:var(--type-small);color:var(--success)}.input-check .icon{width:14px;height:14px;stroke-width:2}.override-headings,.override-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 128px 32px;column-gap:8px;align-items:center}.override-headings{margin-bottom:4px}.override-heading{font:var(--type-detail);color:var(--text-2)}.override-row{margin-bottom:8px}.override-row+.button{margin-top:4px}.form-actions{display:flex;align-items:center;gap:8px;margin-top:24px}.run-header{display:flex;align-items:center;gap:16px;height:52px}.run-header-reason{min-width:0;font:var(--type-row);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.run-header-control{margin-left:auto}.files-changed{display:flex;align-items:center;gap:8px;margin:0;font:var(--type-small);color:var(--text-2)}.files-changed-icon{color:var(--text-2);stroke-width:1.5}.run-phase{display:inline-flex;align-items:center;gap:8px;vertical-align:top}.run-phase-name{color:var(--text)}.run-phase--not-reached .run-phase-name{color:var(--text-2)}.run-phase-note{font-size:13px;color:var(--text-2)}a.run-phase-note{color:var(--primary)}.trunk-stop{position:relative}.trunk-stop:before{content:"";position:absolute;top:0;bottom:-1px;left:15px;width:1.25px;background:var(--text)}.trunk-stop--first:before{top:16px}.trunk-stop--last:before{bottom:auto;height:16px}.trunk-stop--first.trunk-stop--last:before{content:none}.trunk-stop:after{content:"";position:absolute;top:12.5px;left:12px;width:7px;height:7px;border-radius:50%;background:var(--text)}.table-cell.trunk-stop{padding-left:36px}.lanes{display:flex;align-items:stretch;width:max-content}.lane{flex:none;width:264px}.lane--trunk{width:336px}.lane+.lane{margin-left:12px;padding-left:12px;border-left:1px solid var(--line-faint)}.lane-title{display:flex;align-items:center;height:var(--row);margin:0;padding:0 12px;border-bottom:1px solid var(--text);font:var(--type-label);color:var(--text)}.lane-title--opens{cursor:default}.lane-title--opens.is-hover,.lane-title--opens:hover{background:var(--hover-tint)}.lane-title--opens.is-selected{background:var(--selected-tint);box-shadow:inset 2px 0 0 var(--text)}.lane-title--opens.is-focus,.lane-title--opens:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.lane-heading{padding-left:12px}.table-cell.lane-cell{width:264px;min-width:264px;padding:0 0 8px;border-left:1px solid var(--line-faint);vertical-align:top;white-space:normal}.table-row .table-cell.lane-cell{background:none;box-shadow:none}.lane-words{margin:0;padding:6px 12px;font:400 13px/20px var(--font-text);color:var(--text-2)}.lane-visit+.lane-visit{margin-top:8px}.lane-stops{position:relative;margin:0;padding:0 0 0 28px;list-style:none}.lane-stops:before{content:"";position:absolute;top:16px;bottom:16px;left:15px;border-left:1.25px solid var(--text)}.lane-stop{position:relative;display:flex;align-items:center;gap:8px;height:var(--row);margin-left:-4px;padding:0 12px 0 4px;font:var(--type-row);color:var(--text);cursor:default}.lane-stop:before{content:"";position:absolute;top:12.5px;left:-12px;width:7px;height:7px;border-radius:50%;background:var(--text)}.lane-stop[tabindex].is-hover,.lane-stop[tabindex]:hover{background:var(--hover-tint)}.lane-stop.is-selected{background:var(--selected-tint);box-shadow:inset 2px 0 0 var(--text)}.lane-stop.is-focus,.lane-stop:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.lane-stop--not-run .lane-stop-name{color:var(--text-2)}.lane-stop-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lane-stop-detail{flex:none;margin-left:auto;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.assignment-filter{margin-bottom:12px}.assignment-row .table-cell{vertical-align:top}.lane-divider-cell{height:36px;padding:12px 12px 5px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;vertical-align:bottom}.lane-label{display:flex;align-items:center;gap:8px;font:var(--type-detail);color:var(--text-2)}.lane-label .notation-mark{color:var(--text)}.lane-name{font-weight:600;color:var(--text)}.lane-count{margin-left:auto;font-variant-numeric:tabular-nums lining-nums}.assignment-reason{display:block;max-width:336px;margin:0 0 0 24px;font:var(--type-small);color:var(--text-2);white-space:normal}.chain{display:inline-flex;align-items:center;gap:8px;vertical-align:top}.chain-agent{display:inline-flex;align-items:center;gap:4px}.chain-agent-name{color:var(--text)}.chain-agent.is-not-started .chain-agent-name{color:var(--text-2)}.chain-arrow{width:12px;height:12px;color:var(--line-strong);stroke-width:1.75}.attempts{display:inline-flex;align-items:center}.attempt{position:relative;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:2px}.attempt+.attempt{margin-left:8px}.attempt+.attempt:before{content:"";position:absolute;left:-8px;top:50%;width:8px;height:1px;background:var(--line-strong)}.attempt.is-hover,.attempt:hover{background:var(--hover-tint)}.attempt.is-focus,.attempt:focus-visible{outline:2px solid var(--focus-ring);outline-offset:0}.code-phase-mark{color:var(--text)}.question{padding:0 0 0 14px;border-left:2px solid var(--warning)}.question.is-answered{border-left-color:var(--border)}.question-source{display:flex;align-items:center;gap:8px;margin:0 0 4px;font:var(--type-detail);color:var(--text-2)}.question-text{margin:0 0 8px;font:var(--type-heading);color:var(--text)}.question-choices{list-style:none;margin:0 0 16px;padding:0}.question-choice{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}.question-choice+.question-choice{margin-top:4px}.question-recommended{padding:0 6px;border:1px solid var(--line-strong);border-radius:2px;font:var(--type-tiny);color:var(--text-2);white-space:nowrap}.question-reason{flex-basis:100%;margin:0 0 4px 24px;font:var(--type-small);color:var(--text-2)}.question .field{max-width:448px}.question-actions{display:flex;justify-content:flex-start;margin-top:16px}.question-answer{margin:0;font:var(--type-body);color:var(--text)}.question-answered-by{margin:4px 0 0;font:var(--type-small);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.state-toolbar{display:flex;align-items:center;gap:12px;min-height:var(--control);margin-bottom:12px}.state-toolbar .search-field{width:304px;margin-left:auto}.state-toolbar-count{font:var(--type-detail);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.state-tree,.state-children{list-style:none;margin:0;padding:0}.state-children{margin-left:9px;padding-left:14px;border-left:1px solid var(--line-faint)}.state-node{margin:0}.state-row{position:relative;display:flex;align-items:baseline;gap:8px;min-height:24px;padding:2px 8px 2px 24px;border-radius:2px;font:var(--type-code);color:var(--text)}.state-row.is-hover,.state-row:hover{background:var(--hover-tint)}.state-row.is-selected{background:var(--selected-tint)}.state-row.is-focus,.state-row:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.state-toggle{position:absolute;left:4px;top:6px;width:12px;height:12px;color:var(--text-2);stroke-width:1.75}.state-key{color:var(--text-2);white-space:nowrap}.state-value{min-width:0;overflow-wrap:anywhere}.state-summary,.state-more,.state-match-count{font:400 13px/20px var(--font-text);color:var(--text-2);white-space:nowrap}.state-match{padding:1px 0;border-radius:2px;background:var(--match-tint);color:var(--text)}.state-match.is-current{box-shadow:0 0 0 1.5px var(--text)}.state-match-count:before{content:"·";margin-right:8px}.change-list{list-style:none;margin:0;padding:0}.change-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;column-gap:12px;row-gap:0;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line-faint)}.change-row:first-child{padding-top:0}.change-kind{display:inline-flex;align-items:baseline;font:600 13px/20px var(--font-text);color:var(--text)}.change-sign{flex:none;width:16px;font:600 15px/20px var(--font-text);color:var(--text)}.change-place{min-width:0;font:550 14px/20px var(--font-code);color:var(--text);overflow-wrap:anywhere}.change-source{font:400 13px/20px var(--font-text);white-space:nowrap}.change-values{grid-column:2 / -1}.change-value{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:8px;align-items:baseline}.change-value-label{font:400 13px/20px var(--font-text);color:var(--text-2)}.change-value .code{overflow-wrap:anywhere}.change-value--before .code{color:var(--text-2)}.change-value--after .code{color:var(--text)}.artifact-name{display:inline-flex;align-items:center;gap:8px;vertical-align:top}.artifact-name .icon{color:var(--text-2)}.artifact-preview{min-width:0}.artifact-preview-header{display:flex;align-items:baseline;gap:8px;margin-bottom:8px;font:var(--type-row);color:var(--text)}.artifact-preview-name{font-weight:600}.artifact-preview-detail{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.artifact-preview-open{margin-left:auto}.artifact-preview-frame{height:208px;margin:0;background:var(--surface);border:1px solid var(--border);border-radius:2px;overflow:auto}.artifact-preview-frame.is-focus,.artifact-preview-frame:focus-visible,.prompt-image-frame.is-focus,.prompt-image-frame:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.artifact-preview-frame--image{display:flex;align-items:center;justify-content:center;overflow:hidden}.artifact-image{max-width:100%;max-height:100%}.artifact-preview-frame--page{padding:12px 16px;font:400 13px/17px Georgia,Times New Roman,serif;color:#000}.artifact-page-title{margin:0 0 8px;font:700 21px/26px Georgia,Times New Roman,serif}.artifact-page-heading{margin:0 0 6px;font:700 16px/20px Georgia,Times New Roman,serif}.artifact-page-text{margin:0 0 10px}.artifact-preview-frame--text{padding:8px 12px;font:var(--type-code);color:var(--text);white-space:pre}.photo-water{fill:#7d8f8a}.photo-water-light{fill:none;stroke:#a9b8b1;stroke-width:1.5;stroke-linecap:round}.photo-bank{fill:#55624b}.photo-reed{fill:none;stroke:#3f4a35;stroke-width:2;stroke-linecap:round}.photo-body{fill:#b9b3a6}.photo-flank{fill:#d8d3c7}.photo-breast{fill:#6b3f2c}.photo-collar{fill:#f4f1ea}.photo-head{fill:#1f5a41}.photo-bill{fill:#d9b23a}.photo-tail{fill:#23211e}.photo-wing-patch{fill:#2b4f8c}.photo-eye{fill:#0e0d0c}.photo-reflection{fill:#5f716d}.figure-with-bar{display:inline-grid;grid-template-columns:64px 64px;column-gap:8px;align-items:center;justify-items:end;vertical-align:top}.figure-bar,.figure-bar-none{width:64px;height:3px}.figure-value{font-variant-numeric:tabular-nums lining-nums}.figure-bar-track{fill:var(--border)}.figure-bar-fill{fill:var(--text-2)}.call-header{min-width:0;padding-bottom:16px}.call-title-line{display:flex;align-items:center;gap:12px;height:44px;padding-top:8px}.call-title-line .text-title{white-space:nowrap}.call-title-line .status{margin-left:4px}.call-outcome-line{height:20px;margin:0;overflow:hidden;font:var(--type-row);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;text-overflow:ellipsis}.call-outcome-line .code{color:var(--text)}.facts{display:grid;grid-template-columns:216px 152px 184px 168px 128px 168px;column-gap:24px;row-gap:0;margin:8px 0 0}.fact{display:flex;align-items:baseline;gap:8px;min-width:0;height:20px}.fact-label{flex:none;font:400 13px/20px var(--font-text);color:var(--text-2);white-space:nowrap}.fact-value{min-width:0;margin:0;overflow:hidden;font:var(--type-row);color:var(--text);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;text-overflow:ellipsis}.call-sequence{list-style:none;margin:0;padding:0}.call-sequence-item{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr) auto 64px;column-gap:8px;align-items:center;height:var(--row);padding:0 12px;font:var(--type-row);color:var(--text)}.call-sequence-item+.call-sequence-item:before{content:"";position:absolute;z-index:1;left:19.5px;top:-8px;width:1px;height:16px;background:var(--line-strong)}.call-sequence-item.is-hover,.call-sequence-item:hover{background:var(--hover-tint)}.call-sequence-item.is-current{background:var(--selected-tint);box-shadow:inset 2px 0 0 var(--text)}.call-sequence-item.is-focus,.call-sequence-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.call-sequence-item.is-current.is-focus,.call-sequence-item.is-current:focus-visible{box-shadow:inset 4px 0 0 var(--text)}.call-sequence-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.call-sequence-attempt{font-size:13px;color:var(--text-2)}.call-sequence-outcome{font-size:13px;color:var(--text-2);white-space:nowrap}.call-sequence-duration{text-align:right;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}.call-sequence-keys{display:flex;gap:16px;margin-top:12px;padding-left:12px}.prompt-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px}.prompt-toolbar-size{font:var(--type-detail);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.prompt-toolbar-end{margin-left:auto}.prompt-view{position:relative;padding:12px 24px 16px 32px;background:var(--surface);border:1px solid var(--border);border-radius:2px;overflow:clip}.prompt-view.is-scrolled{padding-top:0;border-top-left-radius:0;border-top-right-radius:0}.prompt-text{max-width:96ch;margin:0;font:var(--type-prompt);color:var(--text)}.prompt-part-label,.prompt-input-label,.prompt-template-label{display:flex;align-items:baseline;gap:12px;padding:4px 0;font:var(--type-detail);color:var(--text-2)}.prompt-part-name,.prompt-template-name,.prompt-input-name{font-weight:600;color:var(--text)}.prompt-part-detail,.prompt-input-detail{font-variant-numeric:tabular-nums lining-nums}.prompt-launcher{margin:0 -24px 12px -32px;padding:0 24px 12px 32px;border-bottom:1px solid var(--text)}.prompt-launcher .prompt-text{color:var(--text-2)}.prompt-input{margin-left:-16px;padding-left:14px;border-left:2px solid var(--text)}.prompt-input-label{background:var(--surface)}.prompt-input-label.is-pinned{margin:0 -24px 0 -32px;padding:8px 24px 8px 32px;border-bottom:1px solid var(--border);background:linear-gradient(90deg,var(--surface) 16px,var(--text) 16px,var(--text) 18px,var(--surface) 18px);box-shadow:0 6px 10px -8px color-mix(in srgb,var(--text) 28%,transparent)}.prompt-input-label.is-pinned+.prompt-text{padding-top:8px}.prompt-template{margin-left:-16px;padding-left:14px;border-left:2px dotted var(--text-2)}.prompt-image{margin:12px 0 16px}.prompt-image-frame{display:flex;align-items:center;justify-content:center;width:218px;height:146px;margin-top:4px;border:1px solid var(--border);border-radius:2px;overflow:hidden}.prompt-view>.prompt-image:last-child{margin-bottom:4px}.tools-offered{display:flex;align-items:center;gap:16px;margin:0 0 24px;font:var(--type-row);color:var(--text)}.tools-offered-label{font-size:13px;color:var(--text-2);white-space:nowrap}.tool-offered{display:inline-flex;align-items:center;gap:8px}.tool-offered .icon{color:var(--text-2)}.tool-offered-name{font-weight:600}.tool-offered-description{margin-left:4px;color:var(--text-2)}.call-events{list-style:none;margin:0;padding:0}.call-event{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:12px;align-items:start}.call-event+.call-event{margin-top:16px}.call-event:not(:last-child):after{content:"";position:absolute;left:7.5px;top:24px;bottom:-12px;width:1px;background:var(--line-strong)}.call-event-body{min-width:0}.call-event-icon{margin-top:3px}.reasoning-summary .call-event-icon,.tool-call .call-event-icon{color:var(--text-2)}.call-event-title{margin:0;font:600 15px/22px var(--font-text);color:var(--text)}.reasoning-summary-text{max-width:640px;margin:0;font:var(--type-body);color:var(--text)}.tool-call-header{display:flex;align-items:center;gap:8px;width:fit-content;height:22px;font:var(--type-body);color:var(--text)}.tool-call-header.is-focus,.tool-call-header:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:2px}.tool-call-toggle{width:12px;height:12px;margin-right:-4px;color:var(--text-2);stroke-width:1.75}.tool-call.is-open .tool-call-toggle{color:var(--text)}.tool-call-name{font-weight:600}.tool-call-header .status{font-size:13px;color:var(--text-2)}.tool-call-duration{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.tool-call-body{max-width:640px;margin-top:8px}.tool-call-part+.tool-call-part{margin-top:12px}.tool-call.is-error .tool-call-header .status{color:var(--error)}.tool-call-error{margin:0 0 0 16px;font:var(--type-small);color:var(--error)}.reasoning-none{display:flex;align-items:flex-start;gap:8px;margin:0;font:var(--type-body);color:var(--text)}.reasoning-none .icon{margin-top:3px;color:var(--text-2)}.reasoning-none-detail{color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.correction{min-width:0}.correction-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.correction-detail{font:var(--type-detail);color:var(--text-2)}.failure-text{max-width:600px;margin:0;font:var(--type-body);color:var(--text)}.failure-text+.code-block{margin-top:8px}.reply-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px}.reply-toolbar-size{font:var(--type-detail);color:var(--text-2);font-variant-numeric:tabular-nums lining-nums}.reply-toolbar-end{margin-left:auto}.window{display:flex;flex-direction:column;width:auto;height:100vh;margin:0;padding:0 24px}.window>*{flex:none}.window>.connection-banner{margin:0 -24px}.panes{display:grid;grid-template-columns:448px minmax(0,1fr);column-gap:32px;flex:1;min-height:0}.panes--one{grid-template-columns:minmax(0,1fr)}.panes--lanes{grid-template-columns:fit-content(60%) minmax(0,1fr)}.panes--lanes>.pane:first-child>.pane-scroll{min-width:448px}.pane{display:flex;flex-direction:column;min-width:0;min-height:0}.pane>*{flex:none}.pane-scroll{flex:1;min-height:0;padding-bottom:32px;overflow:auto}.sideways-scroll{overflow-x:auto}.tabs+.pane-scroll{padding-top:12px}.pane-scroll.is-focus,.pane-scroll:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}@media(max-width:1099px){.window{height:auto;min-height:100vh}.panes{grid-template-columns:minmax(0,1fr);row-gap:32px}.pane-scroll{overflow:visible}.facts{grid-template-columns:216px 152px 184px}}:root{--layer-menu: 20;--layer-modal: 30;--layer-banner: 40;--layer-toast: 50;--layer-tooltip: 60;--veil: color-mix(in srgb, var(--page) 80%, transparent)}:where(a){color:inherit;text-decoration:none}.window>.connection-banner{position:fixed;z-index:var(--layer-banner);top:0;left:0;right:0;height:44px;margin:0;padding:0 24px}.window>.files-changed{margin:-6px 0 14px}.window>.call-header+.files-changed{margin-top:-4px}.pane-scroll>.table>thead .table-heading{position:sticky;z-index:1;top:0;background:var(--page)}.pane-scroll>.table>tfoot .table-cell{position:sticky;z-index:1;bottom:0;background:var(--page)}.pane-scroll>.table>tfoot .table-cell:after{content:"";position:absolute;top:100%;left:0;right:0;height:32px;background:var(--page)}.pane-scroll>.table>tfoot .table-row.is-hover .table-cell,.pane-scroll>.table>tfoot .table-row:where([tabindex]):hover .table-cell{background:linear-gradient(var(--hover-tint),var(--hover-tint)) var(--page)}.pane-scroll>.table>tfoot .table-row.is-selected .table-cell{background:linear-gradient(var(--selected-tint),var(--selected-tint)) var(--page)}.pane-scroll.is-focus>.table>thead .table-heading,.pane-scroll:focus-visible>.table>thead .table-heading{box-shadow:inset 0 2px 0 var(--focus-ring)}.pane-scroll.is-focus>.table>thead .table-heading:first-child,.pane-scroll:focus-visible>.table>thead .table-heading:first-child{box-shadow:inset 2px 2px 0 var(--focus-ring)}.pane-scroll.is-focus>.table>thead .table-heading:last-child,.pane-scroll:focus-visible>.table>thead .table-heading:last-child{box-shadow:inset -2px 2px 0 var(--focus-ring)}.pane-scroll.is-focus>.table>tfoot .table-cell:first-child,.pane-scroll:focus-visible>.table>tfoot .table-cell:first-child{box-shadow:inset 2px 0 0 var(--focus-ring)}.pane-scroll.is-focus>.table>tfoot .table-row.is-selected .table-cell:first-child,.pane-scroll:focus-visible>.table>tfoot .table-row.is-selected .table-cell:first-child{box-shadow:inset 2px 0 0 var(--focus-ring),inset 4px 0 0 var(--text)}.pane-scroll.is-focus>.table>tfoot .table-cell:last-child,.pane-scroll:focus-visible>.table>tfoot .table-cell:last-child{box-shadow:inset -2px 0 0 var(--focus-ring)}.pane-scroll.is-focus>.table>tfoot .table-cell:after,.pane-scroll:focus-visible>.table>tfoot .table-cell:after{height:30px}.pane-scroll.is-focus>.table>tfoot .table-cell:first-child:after,.pane-scroll:focus-visible>.table>tfoot .table-cell:first-child:after{left:2px}.pane-scroll.is-focus>.table>tfoot .table-cell:last-child:after,.pane-scroll:focus-visible>.table>tfoot .table-cell:last-child:after{right:2px}.pane-scroll:has(>.table>thead){scroll-padding-top:40px}.pane-scroll:has(>.table>tfoot){scroll-padding-bottom:40px}.pane:has(+.pane>.tabs:first-child)>.pane-scroll>.table>thead .table-heading{height:36px}.pane>.tabs+:not(.pane-scroll){margin-top:12px}.pane>.phase-heading{padding-top:4px;margin-bottom:20px}.sideways-scroll>.drawing{max-width:none}.anchor{position:relative;display:inline-flex}.anchored{position:absolute;z-index:var(--layer-menu);top:calc(100% + 4px);left:0}.anchored--end{left:auto;right:0}.anchored--above{top:auto;bottom:calc(100% + 4px)}.tooltip.anchored{z-index:var(--layer-tooltip);top:calc(100% + 8px);width:max-content;white-space:normal}.tooltip.anchored--above{top:auto;bottom:calc(100% + 8px)}.tooltip.anchored--end:before{left:auto;right:3px}.tooltip.anchored--above:before{top:auto;bottom:-5px;border-width:0 1px 1px 0}.combobox-menu{position:absolute;z-index:var(--layer-menu);top:100%;left:0;min-width:100%}.modal{position:fixed;z-index:var(--layer-modal);top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:flex-start;padding:64px 24px 32px;background:var(--veil)}.dialog{width:736px;max-width:100%;max-height:100%;padding:24px 24px 0;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:3px;box-shadow:var(--shadow-layer)}.dialog.is-focus,.dialog:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.dialog .form-actions{position:sticky;z-index:1;bottom:0;margin:8px -24px 0;padding:16px 24px 24px;background:var(--surface)}.dialog .form-actions.is-pinned{box-shadow:0 -1px 0 var(--border)}.modal>.confirmation{width:448px;margin-top:12vh}.toasts{position:fixed;z-index:var(--layer-toast);left:50%;bottom:24px;display:flex;flex-direction:column;align-items:center;gap:8px;transform:translate(-50%)}@media(max-width:1099px){.screen-header,.run-header{flex-wrap:wrap;row-gap:8px;height:auto;min-height:52px;padding:10px 0}.screen-toolbar{flex-wrap:wrap}.call-title-line{flex-wrap:wrap;row-gap:4px;height:auto;min-height:44px}.call-outcome-line{height:auto;white-space:normal}.pane-scroll{overflow-x:auto}.pane-scroll>.table>tfoot .table-cell{position:static}.pane-scroll>.table>tfoot .table-cell:after{content:none}.modal{padding:24px 16px}}@media(max-width:719px){.top-bar-loaded{display:none}.top-bar-keys{margin-left:auto}}:where(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer}:where(a){color:inherit;text-decoration:none;cursor:pointer}:where(input,textarea){-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0;padding:0;border:0;outline:0;background:none;font:inherit;color:inherit;resize:none}:where(input,textarea)::placeholder{color:var(--text-2);opacity:1}:where(h1,h2,h3,p,ul,ol,figure,dl,dd){margin:0}:where(ul,ol){padding:0;list-style:none}.textarea>textarea.field-value{display:block;width:100%;height:100%;white-space:pre-wrap}.textarea--code>textarea.field-value{min-height:60px;white-space:pre;field-sizing:content}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.combobox-menu{width:max-content;max-width:480px;max-height:288px;overflow:auto}iframe.artifact-preview-frame{display:block;width:100%}img.artifact-image{display:block;max-width:100%;max-height:100%;object-fit:contain}.pane-heading{padding:4px 0 8px}.question+.count-filter,.question+.table{margin-top:24px}.prompt-input-label,.prompt-template-label{position:sticky;z-index:1;top:0;background:var(--surface)}.code-block+.correction,.state-tree+.correction,.empty-state+.correction{margin-top:24px}.pane-heading .source-location{margin-top:4px}.pane-scroll>.question:first-child{margin-top:16px}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Dagma</title>
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-CHJ8lsZp.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-XyqtD-IA.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body class="window">
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { DeclarationSite } from './declaration-site.js';
|
|
3
|
+
import type { Accepted, Answer, Correction, ReplyOutcome, ToolOutcome } from './outcomes.js';
|
|
4
|
+
import type { ReplyReader } from './reply-reader.js';
|
|
5
|
+
import type { ModelSettings, StateReads } from './run-settings.js';
|
|
6
|
+
import type { Serializer } from './serializer.js';
|
|
7
|
+
import type { WriteScopeRule } from './write-scope.js';
|
|
8
|
+
/** For an agent before this one in the chain: its accepted reply as its reader returned it, and
|
|
9
|
+
* the state as it stood before its first change and after its last. Throws when the named agent
|
|
10
|
+
* has no accepted reply earlier in this assignment's chain. */
|
|
11
|
+
export type Earlier<State> = <Reply>(reads: {
|
|
12
|
+
agent: {
|
|
13
|
+
name: string;
|
|
14
|
+
replyReader: ReplyReader<Reply>;
|
|
15
|
+
};
|
|
16
|
+
}) => {
|
|
17
|
+
reply: Reply;
|
|
18
|
+
stateBefore: State;
|
|
19
|
+
stateAfter: State;
|
|
20
|
+
};
|
|
21
|
+
/** What an input's `from` and `attachedImages.images` receive. */
|
|
22
|
+
export type FromReads<State, Subject> = StateReads<State> & {
|
|
23
|
+
subject: Subject;
|
|
24
|
+
/** The repeat number, from 1. */
|
|
25
|
+
repeat: number;
|
|
26
|
+
earlier: Earlier<State>;
|
|
27
|
+
/** Present on a call after a reply was sent back. */
|
|
28
|
+
correction: Correction | undefined;
|
|
29
|
+
/** Each question this assignment asked, in the order asked, with its answer. */
|
|
30
|
+
answers: Answer[];
|
|
31
|
+
};
|
|
32
|
+
/** What a reply outcome's `decide` receives. `state` is the state now; `stateAtPrompt` is the
|
|
33
|
+
* state the prompt was built from. */
|
|
34
|
+
export type DecideReads<State, Subject, Reply> = StateReads<State> & {
|
|
35
|
+
reply: Reply;
|
|
36
|
+
stateAtPrompt: State;
|
|
37
|
+
subject: Subject;
|
|
38
|
+
repeat: number;
|
|
39
|
+
earlier: Earlier<State>;
|
|
40
|
+
answers: Answer[];
|
|
41
|
+
/** How many more replies of this agent may be sent back. With none left, an outcome can keep
|
|
42
|
+
* the valid part of a reply and not send it back. */
|
|
43
|
+
correctionsLeft: number;
|
|
44
|
+
};
|
|
45
|
+
/** What a tool's `handle` receives. `args` are the model's arguments as the tool's `input`
|
|
46
|
+
* parsed them. */
|
|
47
|
+
export type HandleReads<State, Subject, Arguments> = StateReads<State> & {
|
|
48
|
+
args: Arguments;
|
|
49
|
+
subject: Subject;
|
|
50
|
+
earlier: Earlier<State>;
|
|
51
|
+
stopSignal: AbortSignal;
|
|
52
|
+
};
|
|
53
|
+
/** A function a model may call during a call. The stored form takes `never` as its arguments:
|
|
54
|
+
* the run passes the model's arguments, which only the tool's own `input` schema can vouch for. */
|
|
55
|
+
export type Tool<State, Subject> = {
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
58
|
+
input: z.ZodType<unknown>;
|
|
59
|
+
/** The shape of the subject the handler reads. Left out when it reads none. */
|
|
60
|
+
subject?: z.ZodType<unknown>;
|
|
61
|
+
/** The hints a model program reads about a tool, such as that it only reads. Sent as written. */
|
|
62
|
+
annotations?: {
|
|
63
|
+
[hint: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
/** One plain sentence saying what it asks the person. Required for a tool that asks. */
|
|
66
|
+
asks?: string;
|
|
67
|
+
handle: (reads: HandleReads<State, Subject, never>) => ToolOutcome<State> | Promise<ToolOutcome<State>>;
|
|
68
|
+
declaredAt: DeclarationSite;
|
|
69
|
+
};
|
|
70
|
+
/** Image artifacts sent with the prompt, by name and in order. */
|
|
71
|
+
export type AttachedImages<State, Subject> = {
|
|
72
|
+
description: string;
|
|
73
|
+
images: (reads: FromReads<State, Subject>) => string[];
|
|
74
|
+
};
|
|
75
|
+
/** For an agent whose failed call must not fail the run: what is saved in place of a reply. */
|
|
76
|
+
export type WhenCallFails<State, Subject> = {
|
|
77
|
+
description: string;
|
|
78
|
+
decide: (reads: StateReads<State> & {
|
|
79
|
+
failure: string;
|
|
80
|
+
subject: Subject;
|
|
81
|
+
repeat: number;
|
|
82
|
+
}) => Accepted<State>;
|
|
83
|
+
};
|
|
84
|
+
/** One named check on an agent's parsed reply. Returns a list of problem messages; empty means
|
|
85
|
+
* the reply passed this check. */
|
|
86
|
+
export type ReplyCheck<State, Subject, Reply> = {
|
|
87
|
+
name: string;
|
|
88
|
+
description: string;
|
|
89
|
+
check: (reads: DecideReads<State, Subject, Reply>) => string[];
|
|
90
|
+
};
|
|
91
|
+
/** An agent as stored. `ReplyRead` is what its reader returns and `ReplyJudged` what its `decide`
|
|
92
|
+
* takes; they are the same type for a declared agent and differ only in a chain, which holds
|
|
93
|
+
* agents with different replies (see `AgentInChain`). */
|
|
94
|
+
type AgentOf<State, Subject, ReplyRead, ReplyJudged> = {
|
|
95
|
+
name: string;
|
|
96
|
+
/** Optional human-readable label for progress streams and worker UIs. */
|
|
97
|
+
label?: string;
|
|
98
|
+
/** Optional role label (for example `'author'` or `'reviewer'`). */
|
|
99
|
+
role?: string;
|
|
100
|
+
description: string;
|
|
101
|
+
/** The shape of the subject this agent works on. Left out when it reads no subject. */
|
|
102
|
+
subject?: z.ZodType<unknown>;
|
|
103
|
+
/** The path of one file under the blueprint's prompt folder. */
|
|
104
|
+
prompt: string;
|
|
105
|
+
inputs: {
|
|
106
|
+
[placeholder: string]: {
|
|
107
|
+
description: string;
|
|
108
|
+
serializer: Serializer<never>;
|
|
109
|
+
from: (reads: FromReads<State, Subject>) => unknown;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
attachedImages?: AttachedImages<State, Subject>;
|
|
113
|
+
replyReader: ReplyReader<ReplyRead>;
|
|
114
|
+
/** Named checks run on the parsed reply before `replyOutcome.decide`. Any returned messages
|
|
115
|
+
* send the reply back with the failing check names. */
|
|
116
|
+
checks: ReplyCheck<State, Subject, ReplyJudged>[];
|
|
117
|
+
/** Declarative write-scope rules. When non-empty, any state change outside these rules is
|
|
118
|
+
* refused (sent back for reply outcomes, returned as a tool error for tools). */
|
|
119
|
+
mayChange: WriteScopeRule<State, Subject>[];
|
|
120
|
+
replyOutcome: {
|
|
121
|
+
description: string;
|
|
122
|
+
decide: (reads: DecideReads<State, Subject, ReplyJudged>) => ReplyOutcome<State>;
|
|
123
|
+
};
|
|
124
|
+
/** How many replies in a row may be sent back. The next one fails the assignment and the run. */
|
|
125
|
+
maxCorrections: number;
|
|
126
|
+
whenCallFails?: WhenCallFails<State, Subject>;
|
|
127
|
+
tools: Tool<State, Subject>[];
|
|
128
|
+
/** One plain sentence saying what it asks the person. Required for an agent whose outcome asks. */
|
|
129
|
+
asks?: string;
|
|
130
|
+
/** Optional worker type name declared by the blueprint (defaults to the phase's worker or `'default'`). */
|
|
131
|
+
worker?: string;
|
|
132
|
+
modelSettings: ModelSettings;
|
|
133
|
+
declaredAt: DeclarationSite;
|
|
134
|
+
};
|
|
135
|
+
export type Agent<State, Subject, Reply> = AgentOf<State, Subject, Reply, Reply>;
|
|
136
|
+
/** Any agent that can work on `Subject`, whatever its reply. An agent that needs less of its
|
|
137
|
+
* subject (or none) fits; an agent that needs another shape does not. */
|
|
138
|
+
export type AgentInChain<State, Subject> = AgentOf<State, Subject, unknown, never>;
|
|
139
|
+
/** One entry per placeholder: which data it picks, the serializer that writes it, and the
|
|
140
|
+
* function that picks the serializer's arguments. */
|
|
141
|
+
export type AgentInputs<State, Subject, SerializerArguments> = {
|
|
142
|
+
[Placeholder in keyof SerializerArguments]: {
|
|
143
|
+
description: string;
|
|
144
|
+
serializer: Serializer<SerializerArguments[Placeholder]>;
|
|
145
|
+
from: (reads: FromReads<State, Subject>) => NoInfer<SerializerArguments[Placeholder]>;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The file and line where a piece of a blueprint is declared, for the devtool to show. */
|
|
2
|
+
export type DeclarationSite = {
|
|
3
|
+
file: string;
|
|
4
|
+
line: number;
|
|
5
|
+
};
|
|
6
|
+
/** The file and line of the code that called a `define…` function. Call it only from one. */
|
|
7
|
+
export declare function declarationSiteOfCaller(): DeclarationSite;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The file and line of the code that called a `define…` function. Call it only from one. */
|
|
2
|
+
export function declarationSiteOfCaller() {
|
|
3
|
+
// Stack lines: "Error", this function, the define function, then the line that called it.
|
|
4
|
+
const callerLine = new Error().stack?.split('\n')[3] ?? '';
|
|
5
|
+
// The path may hold spaces; under a file:// address they are written as %20.
|
|
6
|
+
const [, fileAddress, file = '', line = '0'] = /(?:\(|at )(file:\/\/)?([^()]+):(\d+):\d+\)?$/.exec(callerLine) ?? [];
|
|
7
|
+
return { file: fileAddress ? decodeURIComponent(file) : file, line: Number(line) };
|
|
8
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { AgentInChain } from './agent.js';
|
|
2
|
+
import type { DeclarationSite } from './declaration-site.js';
|
|
3
|
+
import type { Blueprint } from './phase.js';
|
|
4
|
+
import type { PromptFile } from './prompt-file.js';
|
|
5
|
+
import type { BlueprintWorkers, ModelSettings } from './run-settings.js';
|
|
6
|
+
type AnyAgent = AgentInChain<unknown, never>;
|
|
7
|
+
/** A blueprint as plain data: everything the devtool shows without running a blueprint function.
|
|
8
|
+
* A run saves it at its start and at each resume. */
|
|
9
|
+
export type DeclaredStructure = {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
declaredAt: DeclarationSite;
|
|
13
|
+
startingStateDescription: string;
|
|
14
|
+
modelSettings: ModelSettings;
|
|
15
|
+
workers: BlueprintWorkers;
|
|
16
|
+
/** Every phase the blueprint declares, each once: the trunk's in order, then those that stand
|
|
17
|
+
* only on a side line. */
|
|
18
|
+
phases: DeclaredPhase[];
|
|
19
|
+
/** The names of the phases every run goes through, in order. */
|
|
20
|
+
trunk: string[];
|
|
21
|
+
sideLines: DeclaredSideLine[];
|
|
22
|
+
agents: DeclaredAgent[];
|
|
23
|
+
tools: DeclaredTool[];
|
|
24
|
+
serializers: DeclaredSerializer[];
|
|
25
|
+
templates: {
|
|
26
|
+
name: string;
|
|
27
|
+
path: string;
|
|
28
|
+
text: string;
|
|
29
|
+
usedBy: string[];
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
export type DeclaredPhase = {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
declaredAt: DeclarationSite;
|
|
36
|
+
} & ({
|
|
37
|
+
kind: 'code';
|
|
38
|
+
asks?: string;
|
|
39
|
+
} | {
|
|
40
|
+
kind: 'agents';
|
|
41
|
+
worker?: string;
|
|
42
|
+
modelSettings?: ModelSettings;
|
|
43
|
+
lanes: DeclaredLane[];
|
|
44
|
+
});
|
|
45
|
+
/** A line of phases beside the trunk that a run goes onto only when its condition holds. */
|
|
46
|
+
export type DeclaredSideLine = {
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
declaredAt: DeclarationSite;
|
|
50
|
+
/** The trunk phases during which a run may go onto the line and come back. */
|
|
51
|
+
beside: string[];
|
|
52
|
+
entersWhenDescription: string;
|
|
53
|
+
/** How many times a run may go onto the line. */
|
|
54
|
+
atMost: number;
|
|
55
|
+
/** Its phases by name, in the order a visit runs them. */
|
|
56
|
+
phases: string[];
|
|
57
|
+
};
|
|
58
|
+
export type DeclaredLane = {
|
|
59
|
+
name: string;
|
|
60
|
+
declaredAt: DeclarationSite;
|
|
61
|
+
assignments: {
|
|
62
|
+
kind: 'once';
|
|
63
|
+
onlyWhenDescription?: string;
|
|
64
|
+
} | {
|
|
65
|
+
kind: 'forEach';
|
|
66
|
+
description: string;
|
|
67
|
+
subjectName: string;
|
|
68
|
+
repeats: number;
|
|
69
|
+
concurrency: number;
|
|
70
|
+
startsWhenDescription?: string;
|
|
71
|
+
};
|
|
72
|
+
/** The lane's agents by name, in the order an assignment runs them. */
|
|
73
|
+
chain: string[];
|
|
74
|
+
};
|
|
75
|
+
export type DeclaredAgent = {
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
declaredAt: DeclarationSite;
|
|
79
|
+
prompt: {
|
|
80
|
+
path: string;
|
|
81
|
+
text: string;
|
|
82
|
+
templates: string[];
|
|
83
|
+
};
|
|
84
|
+
inputs: {
|
|
85
|
+
placeholder: string;
|
|
86
|
+
description: string;
|
|
87
|
+
serializer: string;
|
|
88
|
+
}[];
|
|
89
|
+
attachedImagesDescription?: string;
|
|
90
|
+
replyReaderDescription: string;
|
|
91
|
+
replySchema?: {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
checks: {
|
|
95
|
+
name: string;
|
|
96
|
+
description: string;
|
|
97
|
+
}[];
|
|
98
|
+
mayChange: {
|
|
99
|
+
path: string;
|
|
100
|
+
description: string;
|
|
101
|
+
}[];
|
|
102
|
+
replyOutcomeDescription: string;
|
|
103
|
+
maxCorrections: number;
|
|
104
|
+
whenCallFailsDescription?: string;
|
|
105
|
+
tools: string[];
|
|
106
|
+
asks?: string;
|
|
107
|
+
worker?: string;
|
|
108
|
+
modelSettings: ModelSettings;
|
|
109
|
+
};
|
|
110
|
+
export type DeclaredTool = {
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
declaredAt: DeclarationSite;
|
|
114
|
+
annotations?: {
|
|
115
|
+
[hint: string]: unknown;
|
|
116
|
+
};
|
|
117
|
+
asks?: string;
|
|
118
|
+
usedBy: string[];
|
|
119
|
+
};
|
|
120
|
+
export type DeclaredSerializer = {
|
|
121
|
+
name: string;
|
|
122
|
+
description: string;
|
|
123
|
+
declaredAt: DeclarationSite;
|
|
124
|
+
usedBy: string[];
|
|
125
|
+
};
|
|
126
|
+
/** Every agent a blueprint's lanes name, each once, in order of first use. */
|
|
127
|
+
export declare function blueprintAgents({ blueprint }: {
|
|
128
|
+
blueprint: Blueprint;
|
|
129
|
+
}): AnyAgent[];
|
|
130
|
+
/** What is wrong with a blueprint as declared, apart from its prompt files: phase, side line, lane
|
|
131
|
+
* and agent names that are not unique, a side line beside no trunk phase, two presentations under one
|
|
132
|
+
* serializer name, two tools under one tool name. Empty when nothing is. */
|
|
133
|
+
export declare function blueprintProblems({ blueprint }: {
|
|
134
|
+
blueprint: Blueprint;
|
|
135
|
+
}): string[];
|
|
136
|
+
/** The blueprint as plain data. */
|
|
137
|
+
export declare function declaredStructure({ blueprint, promptFiles, readFile, }: {
|
|
138
|
+
blueprint: Blueprint;
|
|
139
|
+
promptFiles: {
|
|
140
|
+
[agentName: string]: PromptFile;
|
|
141
|
+
};
|
|
142
|
+
/** The text of a file under the blueprint's prompt folder. */
|
|
143
|
+
readFile: (path: string) => string;
|
|
144
|
+
}): DeclaredStructure;
|
|
145
|
+
export {};
|