@parcha/agentrun-serve 0.1.0-beta.32 → 0.1.0-beta.33

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.
Files changed (163) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +78 -46
  3. package/dist/adapters.d.ts +0 -3
  4. package/dist/adapters.js +0 -7
  5. package/dist/agents.d.ts +1 -1
  6. package/dist/api-only.d.ts +14 -0
  7. package/dist/api-only.js +33 -0
  8. package/dist/archil-routes.d.ts +1 -1
  9. package/dist/box-egress-vm.d.ts +0 -8
  10. package/dist/box-egress-vm.js +0 -10
  11. package/dist/box-egress.d.ts +0 -4
  12. package/dist/box-egress.js +1 -16
  13. package/dist/box-paths.d.ts +25 -2
  14. package/dist/box-paths.js +79 -11
  15. package/dist/box-relay.d.ts +0 -11
  16. package/dist/box-relay.js +0 -20
  17. package/dist/box-settings.d.ts +46 -0
  18. package/dist/box-settings.js +107 -0
  19. package/dist/boxes.d.ts +4 -1
  20. package/dist/browser-cost.js +2 -1
  21. package/dist/browser-person.d.ts +0 -2
  22. package/dist/browser-person.js +0 -2
  23. package/dist/budget.d.ts +0 -4
  24. package/dist/budget.js +0 -7
  25. package/dist/cap.d.ts +0 -7
  26. package/dist/cap.js +0 -22
  27. package/dist/cli.js +23 -8
  28. package/dist/computers.d.ts +1 -1
  29. package/dist/console/assets/index-Dn0ngwG9.js +535 -0
  30. package/dist/console/assets/index-DvW6Aled.css +1 -0
  31. package/dist/console/index.html +2 -2
  32. package/dist/daytona-api.d.ts +0 -11
  33. package/dist/daytona-api.js +1 -82
  34. package/dist/docker-host-addresses.d.ts +37 -0
  35. package/dist/docker-host-addresses.js +110 -0
  36. package/dist/files.d.ts +0 -8
  37. package/dist/files.js +0 -17
  38. package/dist/github-connection.d.ts +1 -1
  39. package/dist/github-connection.js +1 -1
  40. package/dist/harness-install.d.ts +23 -0
  41. package/dist/harness-install.js +99 -4
  42. package/dist/harness.d.ts +4 -3
  43. package/dist/harness.js +16 -1
  44. package/dist/import.js +52 -13
  45. package/dist/learn/secrets.d.ts +2 -1
  46. package/dist/learn/secrets.js +19 -6
  47. package/dist/learned-workflow.d.ts +5 -4
  48. package/dist/learned-workflow.js +6 -3
  49. package/dist/learning-routes.d.ts +9 -46
  50. package/dist/learning-routes.js +25 -29
  51. package/dist/learning-run.d.ts +4 -231
  52. package/dist/learning-run.js +7 -651
  53. package/dist/live/translate.js +1 -1
  54. package/dist/mcp-gateway.d.ts +0 -3
  55. package/dist/mcp-gateway.js +0 -13
  56. package/dist/mcp-probe.d.ts +2 -2
  57. package/dist/mcp-probe.js +2 -2
  58. package/dist/mcp-servers-store.js +1 -1
  59. package/dist/openapi.js +3 -3
  60. package/dist/page.js +3 -1
  61. package/dist/paid-calls.js +3 -2
  62. package/dist/pause.d.ts +0 -2
  63. package/dist/pause.js +1 -8
  64. package/dist/place.d.ts +0 -5
  65. package/dist/place.js +0 -10
  66. package/dist/print.d.ts +2 -1
  67. package/dist/print.js +4 -2
  68. package/dist/run-db.d.ts +0 -2
  69. package/dist/run-db.js +0 -4
  70. package/dist/run-learning-served.d.ts +38 -0
  71. package/dist/run-learning-served.js +9 -0
  72. package/dist/run-secrets.d.ts +33 -0
  73. package/dist/run-secrets.js +53 -0
  74. package/dist/run-timeline-served.js +5 -2
  75. package/dist/run-view.d.ts +5 -9
  76. package/dist/run-view.js +4 -22
  77. package/dist/runner/adapter-loop.d.ts +8 -2
  78. package/dist/runner/adapter-loop.js +44 -12
  79. package/dist/runner/adapter-run-spec.d.ts +8 -0
  80. package/dist/runner/adapter-run-spec.js +6 -5
  81. package/dist/runner/adapters/pi.d.ts +4 -0
  82. package/dist/runner/adapters/pi.js +4 -1
  83. package/dist/runner/beside.js +19 -8
  84. package/dist/runner/claim-secrets.js +1 -1
  85. package/dist/runner/cli-run-spec.js +15 -1
  86. package/dist/runner/journal-kinds.d.ts +6 -0
  87. package/dist/runner/live-ticker.d.ts +1 -1
  88. package/dist/runner/live-ticker.js +28 -4
  89. package/dist/runner/loop-contract.d.ts +3 -2
  90. package/dist/runner/main.d.ts +11 -4
  91. package/dist/runner/main.js +39 -10
  92. package/dist/runner/mcp-claim.d.ts +1 -1
  93. package/dist/runner/mcp-claim.js +1 -1
  94. package/dist/runner/model-route.js +21 -2
  95. package/dist/runner/redact.d.ts +8 -2
  96. package/dist/runner/redact.js +11 -2
  97. package/dist/runner/workflow-spec.js +5 -9
  98. package/dist/runs-over-store.d.ts +1 -1
  99. package/dist/runs-over-store.js +16 -5
  100. package/dist/seal-key.d.ts +54 -15
  101. package/dist/seal-key.js +272 -84
  102. package/dist/sealed-settings.d.ts +2 -2
  103. package/dist/sealed-settings.js +3 -10
  104. package/dist/secrets.d.ts +2 -10
  105. package/dist/secrets.js +21 -17
  106. package/dist/server-secrets-store.js +1 -1
  107. package/dist/server-secrets.js +3 -0
  108. package/dist/server.d.ts +10 -6
  109. package/dist/server.js +89 -41
  110. package/dist/store/index.d.ts +1 -1
  111. package/dist/store/index.js +1 -1
  112. package/dist/store/open.d.ts +12 -2
  113. package/dist/store/open.js +23 -3
  114. package/dist/store/postgres/migrate.js +18 -1
  115. package/dist/store/sqlite/store.js +23 -8
  116. package/dist/store/store.d.ts +3 -0
  117. package/dist/store-reads/journal.d.ts +16 -0
  118. package/dist/store-reads/journal.js +82 -6
  119. package/dist/store-view.js +38 -5
  120. package/dist/tool-keys.d.ts +4 -3
  121. package/dist/tool-keys.js +7 -4
  122. package/dist/tools.d.ts +1 -1
  123. package/dist/tools.js +4 -1
  124. package/dist/trigger-schedule.js +2 -1
  125. package/dist/trigger-secrets-shown.js +5 -1
  126. package/dist/workspace/computer-deps.d.ts +29 -0
  127. package/dist/workspace/computer-deps.js +48 -1
  128. package/dist/workspace/computer-for-claim.d.ts +7 -3
  129. package/dist/workspace/computer-for-claim.js +1 -1
  130. package/dist/workspace/computer-providers.d.ts +6 -2
  131. package/dist/workspace/computer-providers.js +1 -1
  132. package/dist/workspace/index.d.ts +1 -1
  133. package/dist/workspace/index.js +1 -1
  134. package/dist/workspace.d.ts +0 -3
  135. package/dist/workspace.js +0 -3
  136. package/launcher/agentrun-serve +6 -33
  137. package/package.json +14 -14
  138. package/templates/inbound-lead/agent.md +1 -1
  139. package/templates/kyb/agent.md +1 -1
  140. package/dist/app.d.ts +0 -5
  141. package/dist/app.js +0 -514
  142. package/dist/bounds.d.ts +0 -26
  143. package/dist/bounds.js +0 -137
  144. package/dist/console/assets/index-35-7aeIZ.js +0 -519
  145. package/dist/console/assets/index-Cejbov-Y.css +0 -1
  146. package/dist/content-filter.d.ts +0 -7
  147. package/dist/content-filter.js +0 -23
  148. package/dist/disk.d.ts +0 -33
  149. package/dist/disk.js +0 -85
  150. package/dist/door-line.d.ts +0 -23
  151. package/dist/door-line.js +0 -83
  152. package/dist/harness-app.d.ts +0 -69
  153. package/dist/harness-app.js +0 -1162
  154. package/dist/request-start.d.ts +0 -27
  155. package/dist/request-start.js +0 -381
  156. package/dist/run-box.d.ts +0 -205
  157. package/dist/run-box.js +0 -661
  158. package/dist/run-holder.d.ts +0 -52
  159. package/dist/run-holder.js +0 -139
  160. package/dist/runs.d.ts +0 -1200
  161. package/dist/runs.js +0 -4103
  162. package/dist/served-only.d.ts +0 -5
  163. package/dist/served-only.js +0 -12
@@ -0,0 +1 @@
1
+ @font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-ext-400-normal-C_uLvvQ5.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-ext-400-normal-BHyURHCj.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-400-normal-CIEtRijs.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal-C190GLew.woff2) format("woff2"),url(./jetbrains-mono-greek-400-normal-CNojz0t3.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-vietnamese-400-normal-ByoDsISC.woff2) format("woff2"),url(./jetbrains-mono-vietnamese-400-normal-BeU3T8wf.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2) format("woff2"),url(./jetbrains-mono-latin-ext-400-normal-DHMOLxAi.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal-V6pRDFza.woff2) format("woff2"),url(./jetbrains-mono-latin-400-normal-B11XCQ5g.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-cyrillic-ext-600-normal-Dj6eZy5f.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-ext-600-normal-DpeVePZf.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-cyrillic-600-normal-EVf6-Yzo.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-600-normal-BB5xRk30.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-greek-600-normal-H7WoG9Et.woff2) format("woff2"),url(./jetbrains-mono-greek-600-normal-3KAm9r92.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-vietnamese-600-normal-Dtizs43-.woff2) format("woff2"),url(./jetbrains-mono-vietnamese-600-normal-CSpzN4cI.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2) format("woff2"),url(./jetbrains-mono-latin-ext-600-normal-DiQlUoE6.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-latin-600-normal-C8RAYTDA.woff2) format("woff2"),url(./jetbrains-mono-latin-600-normal-DXv3JcnD.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:400;src:url(./schibsted-grotesk-latin-ext-400-normal-4l4lq8zr.woff2) format("woff2"),url(./schibsted-grotesk-latin-ext-400-normal-BGzXWJeR.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:400;src:url(./schibsted-grotesk-latin-400-normal-Cph9ettZ.woff2) format("woff2"),url(./schibsted-grotesk-latin-400-normal-DfGZKnlb.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:600;src:url(./schibsted-grotesk-latin-ext-600-normal-8_E36CQj.woff2) format("woff2"),url(./schibsted-grotesk-latin-ext-600-normal-C27an7Zc.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Schibsted Grotesk;font-style:normal;font-display:swap;font-weight:600;src:url(./schibsted-grotesk-latin-600-normal-BGBUNdzT.woff2) format("woff2"),url(./schibsted-grotesk-latin-600-normal-COje25QW.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root,.light{color-scheme:light;--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 4% 43%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--overlay: 240 10% 3.9%;--primary: 30 100% 50%;--primary-foreground: 240 10% 3.9%;--primary-text: 30 100% 34%;--success: 142 71% 45%;--success-text: 142.4 71.8% 29.2%;--warning: 38 92% 50%;--warning-text: 35.5 91.7% 32%;--destructive: 0 84.2% 60.2%;--destructive-text: 0 72% 46%;--info: 217 91% 60%;--info-text: 217 91% 48%;--border: 240 5.9% 90%;--border-strong: 216 12% 84%;--input: 240 4% 56%;--ring: var(--foreground);--run-active: var(--primary-text);--run-error-surface: 0 85.7% 97.3%;--wf-jev: 322 58% 51%;--wf-parallel: 174 72% 33%;--wf-openrouter: 239 70% 60%;--wf-tool: 207 70% 41%;--wf-exit: 251 55% 53%;--radius: 0px;--border-width: 1px;--border-width-strong: 2px;--focus-ring-width: 2px;--focus-ring-offset: 2px;--control-sm: 2rem;--control-md: 2.5rem;--control-lg: 2.75rem;--sidebar-width: 220px;--page-width: 1100px;--page-width-wide: 1600px;--duration-fast: .15s;--duration-base: .25s;--duration-slow: .4s;--ease-standard: cubic-bezier(.4, 0, .2, 1);--shadow-float: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--layer-raised: 10;--layer-sticky: 20;--layer-overlay: 30;--layer-dialog: 40;--layer-popover: 50;--layer-toast: 60}.dark{color-scheme:dark;--background: 240 6% 9%;--foreground: 0 0% 95%;--card: 240 5% 12%;--card-foreground: 0 0% 95%;--muted: 240 5% 18%;--muted-foreground: 240 5% 66%;--accent: 240 5% 18%;--accent-foreground: 0 0% 98%;--overlay: 240 10% 3.9%;--primary: 30 100% 50%;--primary-foreground: 240 10% 3.9%;--primary-text: 30 100% 50%;--success: 142 71% 45%;--success-text: 142 71% 45%;--warning: 38 92% 55%;--warning-text: 38 92% 55%;--destructive: 0 84.2% 60.2%;--destructive-text: 0 90.6% 70.8%;--info: 217 91% 66%;--info-text: 217 91% 66%;--border: 240 5% 18%;--border-strong: 240 5% 45%;--input: 240 5% 45%;--ring: var(--foreground);--run-active: var(--primary-text);--run-error-surface: 0 33.3% 17.1%;--wf-jev: 318 73% 61%;--wf-parallel: 172 66% 50%;--wf-openrouter: 234 89% 74%;--wf-tool: 206 83% 65%;--wf-exit: 253 100% 81%;--shadow-float: 0 10px 15px -3px rgb(0 0 0 / .5), 0 4px 6px -4px rgb(0 0 0 / .5)}@media (prefers-color-scheme: dark){html:not(.light):not(.dark){--background: 240 6% 9%;color-scheme:dark}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Schibsted Grotesk,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{--tw-border-opacity: 1;border-color:hsl(var(--border) / var(--tw-border-opacity, 1));border-radius:var(--radius)!important}html,body,#root{height:100%}body{--tw-bg-opacity: 1;background-color:hsl(var(--background) / var(--tw-bg-opacity, 1));font-family:Schibsted Grotesk,sans-serif;--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:focus-visible{outline:var(--focus-ring-width) solid hsl(var(--ring));outline-offset:var(--focus-ring-offset)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}code,pre,kbd,samp,.font-mono,.caps,svg.wf{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}.\!caps{font-variant-ligatures:none!important;font-feature-settings:"liga" 0,"calt" 0!important}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\!caps,.caps{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0;font-family:JetBrains Mono,monospace;text-transform:uppercase;letter-spacing:.06em}.report h1{margin-bottom:2.5rem;border-bottom-width:3px;--tw-border-opacity: 1;border-color:hsl(var(--foreground) / var(--tw-border-opacity, 1));padding-bottom:1.25rem;font-size:32px;line-height:40px;font-weight:600;line-height:1.25}.report h2{margin-bottom:1rem;margin-top:2.5rem;border-bottom-width:1px;padding-bottom:.75rem;font-size:20px;line-height:28px;font-weight:600}.report h3{margin-bottom:.5rem;margin-top:1.5rem;font-size:16px;line-height:24px;font-weight:600}.report p,.report li{font-size:16px;line-height:24px;line-height:1.75}.report p{margin-bottom:1rem}.report ul{margin-bottom:1rem;list-style-type:disc;padding-left:1.5rem}.report ol{margin-bottom:1rem;list-style-type:decimal;padding-left:1.5rem}.report code{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0;--tw-bg-opacity: 1;background-color:hsl(var(--muted) / var(--tw-bg-opacity, 1));padding-left:.25rem;padding-right:.25rem;font-family:JetBrains Mono,monospace;font-size:13px}.report pre{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0;margin-bottom:1rem;overflow-x:auto;border-width:1px;--tw-bg-opacity: 1;background-color:hsl(var(--card) / var(--tw-bg-opacity, 1));padding:1rem;font-family:JetBrains Mono,monospace;font-size:12px;line-height:1.8}.report table{margin-bottom:1rem;width:100%;border-collapse:collapse;font-size:14px;line-height:1.25rem}.report th,.report td{border-width:1px;padding:.5rem .75rem;text-align:left;vertical-align:top}.report th{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0;font-family:JetBrains Mono,monospace;text-transform:uppercase;letter-spacing:.06em;font-size:11px;--tw-text-opacity: 1;color:hsl(var(--muted-foreground) / var(--tw-text-opacity, 1))}.report a,.report button[data-run-file]{--tw-text-opacity: 1;color:hsl(var(--primary-text) / var(--tw-text-opacity, 1));text-decoration-line:underline;text-underline-offset:2px}.report button[data-run-file]{cursor:pointer;text-align:left;font:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-inset-y-1{top:-.25rem;bottom:-.25rem}.inset-x-0{left:0;right:0}.inset-x-4{left:1rem;right:1rem}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-\[3px\]{left:3px}.left-\[calc\(100\%-16px\)\]{left:calc(100% - 16px)}.right-0{right:0}.top-0{top:0}.top-1\/2{top:50%}.top-full{top:100%}.z-0{z-index:0}.z-\[5\]{z-index:5}.z-dialog{z-index:var(--layer-dialog)}.z-popover{z-index:var(--layer-popover)}.z-raised{z-index:var(--layer-raised)}.z-toast{z-index:var(--layer-toast)}.order-last{order:9999}.-m-1{margin:-.25rem}.m-0{margin:0}.m-5{margin:1.25rem}.m-8{margin:2rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mb-px{margin-bottom:-1px}.-ml-3{margin-left:-.75rem}.-ml-px{margin-left:-1px}.-mt-0\.5{margin-top:-.125rem}.-mt-1{margin-top:-.25rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-10{margin-left:2.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\[12vh\]{margin-top:12vh}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-\[9\/19\]{aspect-ratio:9/19}.size-1\.5{width:.375rem;height:.375rem}.size-2{width:.5rem;height:.5rem}.size-2\.5{width:.625rem;height:.625rem}.size-3{width:.75rem;height:.75rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-7{width:1.75rem;height:1.75rem}.size-9{width:2.25rem;height:2.25rem}.size-control-sm{width:var(--control-sm);height:var(--control-sm)}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[155px\]{height:155px}.h-\[38px\]{height:38px}.h-\[560px\]{height:560px}.h-\[70vh\]{height:70vh}.h-auto{height:auto}.h-control-lg{height:var(--control-lg)}.h-control-md{height:var(--control-md)}.h-control-sm{height:var(--control-sm)}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-28{max-height:7rem}.max-h-48{max-height:12rem}.max-h-64{max-height:16rem}.max-h-72{max-height:18rem}.max-h-80{max-height:20rem}.max-h-\[60dvh\]{max-height:60dvh}.max-h-\[9\.5rem\]{max-height:9.5rem}.max-h-full{max-height:100%}.max-h-none{max-height:none}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-64{min-height:16rem}.min-h-\[1\.7em\]{min-height:1.7em}.min-h-\[320px\]{min-height:320px}.min-h-\[360px\]{min-height:360px}.min-h-\[44px\]{min-height:44px}.min-h-control-md{min-height:var(--control-md)}.min-h-dvh{min-height:100dvh}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2\/3{width:66.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-52{width:13rem}.w-56{width:14rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[120px\]{width:120px}.w-\[130px\]{width:130px}.w-\[132px\]{width:132px}.w-\[170px\]{width:170px}.w-\[92px\]{width:92px}.w-\[96px\]{width:96px}.w-\[var\(--button-width\)\]{width:var(--button-width)}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-sidebar{width:var(--sidebar-width)}.min-w-0{min-width:0px}.min-w-\[12rem\]{min-width:12rem}.min-w-\[18px\]{min-width:18px}.min-w-\[240px\]{min-width:240px}.min-w-\[280px\]{min-width:280px}.min-w-\[9rem\]{min-width:9rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-40{max-width:10rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-64{max-width:16rem}.max-w-\[1100px\]{max-width:1100px}.max-w-\[140px\]{max-width:140px}.max-w-\[150px\]{max-width:150px}.max-w-\[1600px\]{max-width:1600px}.max-w-\[16rem\]{max-width:16rem}.max-w-\[220px\]{max-width:220px}.max-w-\[24px\]{max-width:24px}.max-w-\[260px\]{max-width:260px}.max-w-\[300px\]{max-width:300px}.max-w-\[440px\]{max-width:440px}.max-w-\[60vw\]{max-width:60vw}.max-w-\[640px\]{max-width:640px}.max-w-\[min\(20rem\,80vw\)\]{max-width:min(20rem,80vw)}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-page{max-width:var(--page-width)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-\[1_1_14rem\]{flex:1 1 14rem}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-full{flex-basis:100%}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[minmax\(0\,1fr\)_100px_92px\]{grid-template-columns:minmax(0,1fr) 100px 92px}.grid-cols-\[repeat\(auto-fill\,minmax\(min\(100\%\,18rem\)\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(min(100%,18rem),1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(min\(100\%\,9rem\)\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-\[2px\]{gap:2px}.gap-px{gap:1px}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.gap-y-4{row-gap:1rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:var(--radius)}.border{border-width:1px}.border-0{border-width:0px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-border{--tw-border-opacity: 1;border-color:hsl(var(--border) / var(--tw-border-opacity, 1))}.border-border-strong{--tw-border-opacity: 1;border-color:hsl(var(--border-strong) / var(--tw-border-opacity, 1))}.border-border-strong\/60{border-color:hsl(var(--border-strong) / .6)}.border-border-strong\/70{border-color:hsl(var(--border-strong) / .7)}.border-destructive{--tw-border-opacity: 1;border-color:hsl(var(--destructive) / var(--tw-border-opacity, 1))}.border-destructive\/40{border-color:hsl(var(--destructive) / .4)}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-destructive\/60{border-color:hsl(var(--destructive) / .6)}.border-foreground{--tw-border-opacity: 1;border-color:hsl(var(--foreground) / var(--tw-border-opacity, 1))}.border-info\/50{border-color:hsl(var(--info) / .5)}.border-input{--tw-border-opacity: 1;border-color:hsl(var(--input) / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--primary) / var(--tw-border-opacity, 1))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-run-active\/50{border-color:hsl(var(--run-active) / .5)}.border-success{--tw-border-opacity: 1;border-color:hsl(var(--success) / var(--tw-border-opacity, 1))}.border-success\/50{border-color:hsl(var(--success) / .5)}.border-transparent{border-color:transparent}.border-warning{--tw-border-opacity: 1;border-color:hsl(var(--warning) / var(--tw-border-opacity, 1))}.border-warning\/40{border-color:hsl(var(--warning) / .4)}.border-warning\/50{border-color:hsl(var(--warning) / .5)}.border-warning\/60{border-color:hsl(var(--warning) / .6)}.border-wf-parallel\/\[\.6\]{border-color:hsl(var(--wf-parallel) / .6)}.border-wf-tool\/\[\.6\]{border-color:hsl(var(--wf-tool) / .6)}.border-l-foreground{--tw-border-opacity: 1;border-left-color:hsl(var(--foreground) / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.bg-\[var\(--card\)\]{background-color:var(--card)}.bg-background{--tw-bg-opacity: 1;background-color:hsl(var(--background) / var(--tw-bg-opacity, 1))}.bg-border{--tw-bg-opacity: 1;background-color:hsl(var(--border) / var(--tw-bg-opacity, 1))}.bg-border-strong{--tw-bg-opacity: 1;background-color:hsl(var(--border-strong) / var(--tw-bg-opacity, 1))}.bg-card{--tw-bg-opacity: 1;background-color:hsl(var(--card) / var(--tw-bg-opacity, 1))}.bg-card\/40{background-color:hsl(var(--card) / .4)}.bg-destructive{--tw-bg-opacity: 1;background-color:hsl(var(--destructive) / var(--tw-bg-opacity, 1))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-destructive\/60{background-color:hsl(var(--destructive) / .6)}.bg-foreground{--tw-bg-opacity: 1;background-color:hsl(var(--foreground) / var(--tw-bg-opacity, 1))}.bg-foreground\/5{background-color:hsl(var(--foreground) / .05)}.bg-info\/10{background-color:hsl(var(--info) / .1)}.bg-info\/5{background-color:hsl(var(--info) / .05)}.bg-muted{--tw-bg-opacity: 1;background-color:hsl(var(--muted) / var(--tw-bg-opacity, 1))}.bg-muted-foreground{--tw-bg-opacity: 1;background-color:hsl(var(--muted-foreground) / var(--tw-bg-opacity, 1))}.bg-muted-foreground\/45{background-color:hsl(var(--muted-foreground) / .45)}.bg-muted-foreground\/50{background-color:hsl(var(--muted-foreground) / .5)}.bg-muted\/40{background-color:hsl(var(--muted) / .4)}.bg-muted\/70{background-color:hsl(var(--muted) / .7)}.bg-overlay\/70{background-color:hsl(var(--overlay) / .7)}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--primary) / var(--tw-bg-opacity, 1))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-primary\/\[0\.06\]{background-color:hsl(var(--primary) / .06)}.bg-run-active{--tw-bg-opacity: 1;background-color:hsl(var(--run-active) / var(--tw-bg-opacity, 1))}.bg-success{--tw-bg-opacity: 1;background-color:hsl(var(--success) / var(--tw-bg-opacity, 1))}.bg-success\/10{background-color:hsl(var(--success) / .1)}.bg-success\/40{background-color:hsl(var(--success) / .4)}.bg-success\/5{background-color:hsl(var(--success) / .05)}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity: 1;background-color:hsl(var(--warning) / var(--tw-bg-opacity, 1))}.bg-warning\/10{background-color:hsl(var(--warning) / .1)}.bg-warning\/15{background-color:hsl(var(--warning) / .15)}.bg-warning\/5{background-color:hsl(var(--warning) / .05)}.bg-warning\/60{background-color:hsl(var(--warning) / .6)}.bg-wf-tool\/\[\.12\]{background-color:hsl(var(--wf-tool) / .12)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\[radial-gradient\(hsl\(var\(--border\)\)_1px\,transparent_1px\)\]{background-image:radial-gradient(hsl(var(--border)) 1px,transparent 1px)}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-background{--tw-gradient-from: hsl(var(--background) / 1) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-top{-o-object-position:top;object-position:top}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-1\.5{padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.pb-2\.5{padding-bottom:.625rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\[30px\]{padding-bottom:30px}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-\[12vh\]{padding-top:12vh}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Schibsted Grotesk,sans-serif}.text-2xl{font-size:24px;line-height:32px}.text-\[13px\]{font-size:13px}.text-base{font-size:16px;line-height:24px}.text-body{font-size:13px}.text-display{font-size:32px;line-height:40px}.text-figure{font-size:22px}.text-label{font-size:11px}.text-lead{font-size:14px}.text-lg{font-size:18px;line-height:28px}.text-micro{font-size:10px}.text-prose{font-size:15px}.text-small{font-size:12px}.text-xl{font-size:20px;line-height:28px}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-\[1\.65\]{line-height:1.65}.leading-\[1\.6\]{line-height:1.6}.leading-\[1\.7\]{line-height:1.7}.leading-\[1\.8\]{line-height:1.8}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-normal{letter-spacing:0em}.text-\[color\:var\(--primary-text\)\]{color:var(--primary-text)}.text-\[hsl\(var\(--primary\)\)\]{color:hsl(var(--primary))}.text-background{--tw-text-opacity: 1;color:hsl(var(--background) / var(--tw-text-opacity, 1))}.text-card-foreground{--tw-text-opacity: 1;color:hsl(var(--card-foreground) / var(--tw-text-opacity, 1))}.text-current{color:currentColor}.text-destructive-text{--tw-text-opacity: 1;color:hsl(var(--destructive-text) / var(--tw-text-opacity, 1))}.text-foreground{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.text-foreground\/80{color:hsl(var(--foreground) / .8)}.text-info-text{--tw-text-opacity: 1;color:hsl(var(--info-text) / var(--tw-text-opacity, 1))}.text-muted-foreground{--tw-text-opacity: 1;color:hsl(var(--muted-foreground) / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:hsl(var(--primary) / var(--tw-text-opacity, 1))}.text-primary-foreground{--tw-text-opacity: 1;color:hsl(var(--primary-foreground) / var(--tw-text-opacity, 1))}.text-primary-text{--tw-text-opacity: 1;color:hsl(var(--primary-text) / var(--tw-text-opacity, 1))}.text-run-active{--tw-text-opacity: 1;color:hsl(var(--run-active) / var(--tw-text-opacity, 1))}.text-success-text{--tw-text-opacity: 1;color:hsl(var(--success-text) / var(--tw-text-opacity, 1))}.text-warning-text{--tw-text-opacity: 1;color:hsl(var(--warning-text) / var(--tw-text-opacity, 1))}.text-wf-tool{--tw-text-opacity: 1;color:hsl(var(--wf-tool) / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.decoration-muted-foreground\/40{text-decoration-color:hsl(var(--muted-foreground) / .4)}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.accent-foreground{accent-color:hsl(var(--foreground) / 1)}.accent-primary{accent-color:hsl(var(--primary) / 1)}.opacity-45{opacity:.45}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow-float{--tw-shadow: var(--shadow-float);--tw-shadow-colored: var(--shadow-float);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-focus{outline-width:var(--focus-ring-width)}.-outline-offset-2{outline-offset:-2px}.outline-offset-focus{outline-offset:var(--focus-ring-offset)}.outline-ring{outline-color:hsl(var(--ring) / 1)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-primary{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--primary) / var(--tw-ring-opacity, 1))}.ring-run-active\/\[0\.18\]{--tw-ring-color: hsl(var(--run-active) / .18)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\[border-color\,box-shadow\]{transition-property:border-color,box-shadow;transition-timing-function:var(--ease-standard);transition-duration:var(--duration-fast)}.transition-\[left\,background-color\]{transition-property:left,background-color;transition-timing-function:var(--ease-standard);transition-duration:var(--duration-fast)}.transition-\[width\]{transition-property:width;transition-timing-function:var(--ease-standard);transition-duration:var(--duration-fast)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:var(--ease-standard);transition-duration:var(--duration-fast)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--ease-standard);transition-duration:var(--duration-fast)}.transition-transform{transition-property:transform;transition-timing-function:var(--ease-standard);transition-duration:var(--duration-fast)}.duration-fast{transition-duration:var(--duration-fast)}.duration-slow{transition-duration:var(--duration-slow)}.ease-standard{transition-timing-function:var(--ease-standard)}.\[--anchor-gap\:2px\]{--anchor-gap: 2px}.\[--anchor-padding\:8px\]{--anchor-padding: 8px}.\[animation-duration\:2s\]{animation-duration:2s}.\[background-size\:22px_22px\]{background-size:22px 22px}.\[contain\:layout\]{contain:layout}svg.wf{display:block;max-width:100%;height:auto;margin:0 auto;font-family:JetBrains Mono,monospace}.wf .wire{fill:none;stroke:hsl(var(--border-strong) / .55);stroke-width:1.5}.wf .exit-wire{stroke:hsl(var(--wf-exit))}.wf .branch.taken,.wf .wire.taken{stroke:hsl(var(--foreground));stroke-width:2.5}.wf .frame{fill:none;stroke:hsl(var(--border-strong) / .7);stroke-dasharray:4 3}.wf .box{fill:hsl(var(--card));stroke:hsl(var(--border-strong) / .6);stroke-width:1.2;transition:fill var(--duration-slow),stroke var(--duration-slow)}.wf .swatch{fill:hsl(var(--muted-foreground))}.wf .who-agent .swatch{fill:hsl(var(--primary))}.wf .who-jev .swatch{fill:hsl(var(--wf-jev))}.wf .who-parallel .swatch{fill:hsl(var(--wf-parallel))}.wf .who-openrouter .swatch{fill:hsl(var(--wf-openrouter))}.wf .who-tool .swatch{fill:hsl(var(--wf-tool))}.wf .who-control .swatch{fill:hsl(var(--foreground))}.wf .label{font:600 12.5px JetBrains Mono,monospace;fill:hsl(var(--foreground))}.wf .kind,.wf .model{font:10.5px JetBrains Mono,monospace;fill:hsl(var(--muted-foreground))}.wf .branch-name{font:600 10.5px JetBrains Mono,monospace;fill:hsl(var(--muted-foreground))}.wf .branch-name.taken{fill:hsl(var(--foreground))}.wf .exit-box{fill:hsl(var(--wf-exit) / .12);stroke:hsl(var(--wf-exit));stroke-width:1}.wf .exit-text{font:10.5px JetBrains Mono,monospace;fill:hsl(var(--foreground))}.wf .tag-box{fill:hsl(var(--foreground))}.wf .tag{font:600 9px JetBrains Mono,monospace;letter-spacing:.06em;fill:hsl(var(--background))}.wf .badge-box{fill:none;stroke:hsl(var(--border-strong))}.wf .badge{font:600 8.5px JetBrains Mono,monospace;letter-spacing:.06em;fill:hsl(var(--muted-foreground))}.wf .chip-box{fill:hsl(var(--wf-jev) / .14);stroke:hsl(var(--wf-jev) / .6)}.wf .chip{font:600 9px JetBrains Mono,monospace;letter-spacing:.06em;fill:hsl(var(--wf-jev));text-transform:uppercase}.wf .who-parallel .chip-box{fill:hsl(var(--wf-parallel) / .14);stroke:hsl(var(--wf-parallel) / .6)}.wf .who-parallel .chip{fill:hsl(var(--wf-parallel))}.wf .who-openrouter .chip-box{fill:hsl(var(--wf-openrouter) / .14);stroke:hsl(var(--wf-openrouter) / .6)}.wf .who-openrouter .chip{fill:hsl(var(--wf-openrouter))}.wf .state{font:600 9px JetBrains Mono,monospace;letter-spacing:.06em;fill:hsl(var(--muted-foreground));text-transform:uppercase}.wf .verdict{font:600 10.5px JetBrains Mono,monospace;fill:hsl(var(--foreground))}.wf .removed{font:11px JetBrains Mono,monospace;fill:hsl(var(--muted-foreground))}.wf .caption{font:10px JetBrains Mono,monospace;fill:hsl(var(--muted-foreground))}.wf .new>.box,.wf .new>.exit-box{stroke:hsl(var(--foreground));stroke-width:2.4}.wf .moved>.box,.wf .moved>.exit-box{stroke:hsl(var(--foreground));stroke-width:1.6;stroke-dasharray:1 3}.wf .edited>.box,.wf .edited>.exit-box{stroke:hsl(var(--foreground));stroke-width:1.6;stroke-dasharray:4 2}.wf .done>.box{fill:hsl(var(--success) / .1);stroke:hsl(var(--success) / .8)}.wf .done>.exit-box{fill:hsl(var(--card));stroke:hsl(var(--border))}.wf .done>.state{fill:hsl(var(--success-text))}.wf .working>.box,.wf .working>.exit-box{stroke:hsl(var(--primary));stroke-width:2.4;animation:wf-pulse 1.6s ease-in-out infinite;animation-delay:var(--wf-phase, 0s)}.wf .working>.state{fill:hsl(var(--primary))}.wf .failed>.box,.wf .failed>.exit-box{fill:hsl(var(--destructive) / .12);stroke:hsl(var(--destructive));stroke-width:2}.wf .failed>.state{fill:hsl(var(--destructive-text))}.wf .review>.box{fill:hsl(var(--warning) / .1);stroke:hsl(var(--warning));stroke-width:2}.wf .review>.state{fill:hsl(var(--warning-text))}.wf .escalated>.box,.wf .escalated>.exit-box{stroke:hsl(var(--wf-exit));stroke-width:2}.wf .escalated>.state{fill:hsl(var(--wf-exit))}.wf .stopped>.box,.wf .stopped>.exit-box{stroke:hsl(var(--muted-foreground));stroke-width:1.6}.wf .fired>.exit-box{fill:hsl(var(--wf-exit))}.wf .fired>.exit-text{fill:hsl(var(--background));font-weight:600}.wf .not-run{opacity:.4}.wf .pending>.box{stroke-dasharray:3 3}.wf .sel{fill:none;stroke:hsl(var(--primary));stroke-width:1.5}.wf g.card,.wf g.exit,.wf .cell{cursor:pointer}.wf g.card:hover>.box{stroke:hsl(var(--foreground) / .8)}.wf .cell{fill:hsl(var(--card));stroke:hsl(var(--border-strong) / .7);stroke-width:1;transition:fill var(--duration-slow),stroke var(--duration-slow)}.wf .cell:hover{stroke:hsl(var(--foreground))}.wf .cell.done{fill:hsl(var(--success) / .75);stroke:hsl(var(--success))}.wf .cell.working{fill:hsl(var(--primary) / .25);stroke:hsl(var(--primary));animation:wf-cell 1.6s ease-in-out infinite;animation-delay:var(--wf-phase, 0s)}.wf .cell.failed{fill:hsl(var(--destructive) / .8);stroke:hsl(var(--destructive))}.wf .cell.review{fill:hsl(var(--warning) / .8);stroke:hsl(var(--warning))}.wf .cell.escalated{fill:hsl(var(--wf-exit) / .7);stroke:hsl(var(--wf-exit))}.wf .cell.stopped,.wf .cell.not-run{fill:none;stroke-dasharray:2 2}.wf .cell.picked{stroke:hsl(var(--foreground));stroke-width:2.5}@keyframes wf-pulse{0%,to{stroke-opacity:1}50%{stroke-opacity:.35}}@keyframes wf-cell{0%,to{fill-opacity:.25}50%{fill-opacity:.7}}.wf .rcell{cursor:pointer}.wf .rcell .cell{fill:hsl(var(--card));stroke:hsl(var(--border-strong) / .6)}.wf .rcell .cell-edge{fill:hsl(var(--border-strong))}.wf .rcell .cell-name{font:600 10px JetBrains Mono,monospace;fill:hsl(var(--foreground))}.wf .rcell .cell-out{font:10px JetBrains Mono,monospace;fill:hsl(var(--muted-foreground))}.wf .rcell .cell-p{font:600 10px JetBrains Mono,monospace;fill:hsl(var(--foreground));font-variant-numeric:tabular-nums}.wf .rcell:hover .cell{stroke:hsl(var(--foreground))}.wf .rcell.done .cell{fill:hsl(var(--success) / .06);stroke:hsl(var(--success) / .5)}.wf .rcell.done .cell-edge{fill:hsl(var(--success))}.wf .rcell.working .cell{fill:hsl(var(--primary) / .1);stroke:hsl(var(--primary));animation:wf-pulse 1.6s ease-in-out infinite;animation-delay:var(--wf-phase, 0s)}.wf .rcell.working .cell-edge,.wf .rcell.working .cell-out{fill:hsl(var(--primary))}.wf .rcell.pending .cell{stroke-dasharray:3 3;fill:none}.wf .rcell.pending .cell-name,.wf .rcell.not-run .cell-name{fill:hsl(var(--muted-foreground));font-weight:400}.wf .rcell.not-run,.wf .rcell.stopped{opacity:.5}.wf .rcell.tone-good .cell{fill:hsl(var(--success) / .14);stroke:hsl(var(--success) / .8)}.wf .rcell.tone-good .cell-edge{fill:hsl(var(--success))}.wf .rcell.tone-good .cell-out{fill:hsl(var(--success-text));font-weight:600}.wf .rcell.tone-warn .cell{fill:hsl(var(--warning) / .16);stroke:hsl(var(--warning))}.wf .rcell.tone-warn .cell-edge{fill:hsl(var(--warning))}.wf .rcell.tone-warn .cell-out{fill:hsl(var(--warning-text));font-weight:600}.wf .rcell.tone-bad .cell{fill:hsl(var(--destructive) / .16);stroke:hsl(var(--destructive))}.wf .rcell.tone-bad .cell-edge{fill:hsl(var(--destructive))}.wf .rcell.tone-bad .cell-out{fill:hsl(var(--destructive-text));font-weight:600}.wf .rcell.picked .cell{stroke:hsl(var(--foreground));stroke-width:2.5}.wf .held>.box{stroke:hsl(var(--warning));stroke-width:2;stroke-dasharray:5 3}.wf .held>.state{fill:hsl(var(--warning-text))}.wf .rcell.held .cell{fill:hsl(var(--warning) / .08);stroke:hsl(var(--warning));stroke-dasharray:4 2}.wf .rcell.held .cell-edge{fill:hsl(var(--warning))}.wf .rcell.held .cell-out{fill:hsl(var(--warning-text))}.\[\&_code\]\:font-mono code,.\[\&_pre\]\:font-mono pre{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}.selection\:bg-primary\/\[0\.28\] *::-moz-selection{background-color:hsl(var(--primary) / .28)}.selection\:bg-primary\/\[0\.28\] *::selection{background-color:hsl(var(--primary) / .28)}.selection\:text-foreground *::-moz-selection{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.selection\:text-foreground *::selection{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.selection\:bg-primary\/\[0\.28\]::-moz-selection{background-color:hsl(var(--primary) / .28)}.selection\:bg-primary\/\[0\.28\]::selection{background-color:hsl(var(--primary) / .28)}.selection\:text-foreground::-moz-selection{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.selection\:text-foreground::selection{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.placeholder\:text-muted-foreground::-moz-placeholder{--tw-text-opacity: 1;color:hsl(var(--muted-foreground) / var(--tw-text-opacity, 1))}.placeholder\:text-muted-foreground::placeholder{--tw-text-opacity: 1;color:hsl(var(--muted-foreground) / var(--tw-text-opacity, 1))}.backdrop\:bg-overlay\/60::backdrop{background-color:hsl(var(--overlay) / .6)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:inset-y-0:before{content:var(--tw-content);top:0;bottom:0}.before\:left-0:before{content:var(--tw-content);left:0}.before\:w-0\.5:before{content:var(--tw-content);width:.125rem}.before\:bg-primary:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:hsl(var(--primary) / var(--tw-bg-opacity, 1))}.first\:ml-0:first-child{margin-left:0}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:border-r-0:last-child{border-right-width:0px}.read-only\:text-muted-foreground:-moz-read-only{--tw-text-opacity: 1;color:hsl(var(--muted-foreground) / var(--tw-text-opacity, 1))}.read-only\:text-muted-foreground:read-only{--tw-text-opacity: 1;color:hsl(var(--muted-foreground) / var(--tw-text-opacity, 1))}.focus-within\:border-foreground:focus-within{--tw-border-opacity: 1;border-color:hsl(var(--foreground) / var(--tw-border-opacity, 1))}.focus-within\:outline:focus-within{outline-style:solid}.focus-within\:outline-focus:focus-within{outline-width:var(--focus-ring-width)}.focus-within\:outline-ring:focus-within{outline-color:hsl(var(--ring) / 1)}.hover\:border-border-strong:hover{--tw-border-opacity: 1;border-color:hsl(var(--border-strong) / var(--tw-border-opacity, 1))}.hover\:border-foreground:hover{--tw-border-opacity: 1;border-color:hsl(var(--foreground) / var(--tw-border-opacity, 1))}.hover\:border-foreground\/60:hover{border-color:hsl(var(--foreground) / .6)}.hover\:bg-accent:hover{--tw-bg-opacity: 1;background-color:hsl(var(--accent) / var(--tw-bg-opacity, 1))}.hover\:bg-accent\/40:hover{background-color:hsl(var(--accent) / .4)}.hover\:bg-accent\/60:hover{background-color:hsl(var(--accent) / .6)}.hover\:bg-destructive\/10:hover{background-color:hsl(var(--destructive) / .1)}.hover\:bg-foreground:hover{--tw-bg-opacity: 1;background-color:hsl(var(--foreground) / var(--tw-bg-opacity, 1))}.hover\:bg-primary\/10:hover{background-color:hsl(var(--primary) / .1)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-warning\/20:hover{background-color:hsl(var(--warning) / .2)}.hover\:text-foreground:hover{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.focus-visible\:border-primary:focus-visible{--tw-border-opacity: 1;border-color:hsl(var(--primary) / var(--tw-border-opacity, 1))}.focus-visible\:bg-accent\/60:focus-visible{background-color:hsl(var(--accent) / .6)}.focus-visible\:underline:focus-visible{text-decoration-line:underline}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-focus:focus-visible{outline-width:var(--focus-ring-width)}.focus-visible\:-outline-offset-2:focus-visible{outline-offset:-2px}.focus-visible\:outline-offset-0:focus-visible{outline-offset:0px}.focus-visible\:outline-ring:focus-visible{outline-color:hsl(var(--ring) / 1)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-45:disabled{opacity:.45}.disabled\:opacity-60:disabled{opacity:.6}.group[open] .group-open\:rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/tip:focus-within .group-focus-within\/tip\:block{display:block}.group\/tip:hover .group-hover\/tip\:block,.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:w-full{width:100%}.group\/tip:hover .group-hover\/tip\:border-foreground\/70{border-color:hsl(var(--foreground) / .7)}.group:focus-visible .group-focus-visible\:block{display:block}.has-\[\:focus-visible\]\:relative:has(:focus-visible){position:relative}.has-\[\:focus-visible\]\:outline:has(:focus-visible){outline-style:solid}.has-\[\:focus-visible\]\:outline-1:has(:focus-visible){outline-width:1px}.has-\[\:focus-visible\]\:outline-focus:has(:focus-visible){outline-width:var(--focus-ring-width)}.has-\[\:focus-visible\]\:outline-offset-2:has(:focus-visible){outline-offset:2px}.has-\[\:focus-visible\]\:outline-offset-focus:has(:focus-visible){outline-offset:var(--focus-ring-offset)}.has-\[\:focus-visible\]\:outline-ring:has(:focus-visible){outline-color:hsl(var(--ring) / 1)}.aria-\[invalid\=true\]\:border-destructive[aria-invalid=true]{--tw-border-opacity: 1;border-color:hsl(var(--destructive) / var(--tw-border-opacity, 1))}.data-\[disabled\]\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-\[open\]\:border-foreground[data-open]{--tw-border-opacity: 1;border-color:hsl(var(--foreground) / var(--tw-border-opacity, 1))}.data-\[focus\]\:bg-accent[data-focus]{--tw-bg-opacity: 1;background-color:hsl(var(--accent) / var(--tw-bg-opacity, 1))}.data-\[selected\]\:text-foreground[data-selected]{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.data-\[disabled\]\:opacity-45[data-disabled]{opacity:.45}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.group[data-selected] .group-data-\[selected\]\:visible{visibility:visible}@media (max-height: 500px){.short\:inline-flex{display:inline-flex}.short\:hidden{display:none}}@media (prefers-reduced-motion: no-preference){@keyframes pulse{50%{opacity:.5}}.motion-safe\:animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.motion-safe\:animate-toast-in{animation:toast-in var(--duration-base) var(--ease-standard)}}@media not all and (min-width: 640px){.max-sm\:sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.max-sm\:order-first{order:-9999}.max-sm\:order-last{order:9999}.max-sm\:-m-1{margin:-.25rem}.max-sm\:mt-0{margin-top:0}.max-sm\:mt-2{margin-top:.5rem}.max-sm\:line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.max-sm\:flex{display:flex}.max-sm\:contents{display:contents}.max-sm\:hidden{display:none}.max-sm\:h-10{height:2.5rem}.max-sm\:w-10{width:2.5rem}.max-sm\:w-11{width:2.75rem}.max-sm\:w-8{width:2rem}.max-sm\:min-w-0{min-width:0px}.max-sm\:flex-1{flex:1 1 0%}.max-sm\:shrink-0{flex-shrink:0}.max-sm\:basis-full{flex-basis:100%}.max-sm\:flex-row{flex-direction:row}.max-sm\:flex-wrap{flex-wrap:wrap}.max-sm\:flex-nowrap{flex-wrap:nowrap}.max-sm\:items-center{align-items:center}.max-sm\:gap-2{gap:.5rem}.max-sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.max-sm\:gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.max-sm\:gap-y-2{row-gap:.5rem}.max-sm\:self-center{align-self:center}.max-sm\:border-0{border-width:0px}.max-sm\:p-0{padding:0}.max-sm\:p-1{padding:.25rem}.max-sm\:px-0{padding-left:0;padding-right:0}.max-sm\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.max-sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.max-sm\:py-3{padding-top:.75rem;padding-bottom:.75rem}.max-sm\:text-lg{font-size:18px;line-height:28px}}@media (min-width: 640px){.sm\:left-auto{left:auto}.sm\:order-none{order:0}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:ml-0{margin-left:0}.sm\:block{display:block}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:hidden{display:none}.sm\:w-72{width:18rem}.sm\:w-\[22rem\]{width:22rem}.sm\:basis-auto{flex-basis:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[max-content_minmax\(0\,1fr\)\]{grid-template-columns:max-content minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:gap-4{gap:1rem}}@media (min-width: 768px){.md\:mt-auto{margin-top:auto}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-header-group{display:table-header-group}.md\:hidden{display:none}.md\:h-dvh{height:100dvh}.md\:max-h-none{max-height:none}.md\:w-\[240px\]{width:240px}.md\:w-\[76px\]{width:76px}.md\:w-sidebar{width:var(--sidebar-width)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,2fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:gap-0{gap:0px}.md\:overflow-y-auto{overflow-y:auto}.md\:border-b-0{border-bottom-width:0px}.md\:border-r{border-right-width:1px}.md\:p-4{padding:1rem}.md\:p-5{padding:1.25rem}.md\:p-8{padding:2rem}.md\:px-0{padding-left:0;padding-right:0}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:px-5{padding-left:1.25rem;padding-right:1.25rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pl-8{padding-left:2rem}.md\:text-right{text-align:right}}@media (min-width: 1024px){.lg\:w-\[460px\]{width:460px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,2fr\)\]{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}.lg\:grid-cols-\[minmax\(0\,2fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.lg\:flex-row{flex-direction:row}.lg\:items-start{align-items:flex-start}.lg\:border-b-0{border-bottom-width:0px}.lg\:border-l{border-left-width:1px}.lg\:border-r{border-right-width:1px}.lg\:border-t-0{border-top-width:0px}}@media (min-width: 1280px){.xl\:h-\[calc\(100vh-330px\)\]{height:calc(100vh - 330px)}.xl\:h-\[calc\(100vh-390px\)\]{height:calc(100vh - 390px)}.xl\:min-h-\[440px\]{min-height:440px}.xl\:min-h-\[480px\]{min-height:480px}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-\[minmax\(420px\,5fr\)_7fr\]{grid-template-columns:minmax(420px,5fr) 7fr}.xl\:border-b-0{border-bottom-width:0px}.xl\:border-r{border-right-width:1px}}@media not all and (min-width: 640px){@media (orientation: portrait){.max-sm\:portrait\:placeholder\:text-transparent::-moz-placeholder{color:transparent}.max-sm\:portrait\:placeholder\:text-transparent::placeholder{color:transparent}}}.\[\&_a\]\:text-primary-text a{--tw-text-opacity: 1;color:hsl(var(--primary-text) / var(--tw-text-opacity, 1))}.\[\&_a\]\:underline a{text-decoration-line:underline}.\[\&_a\]\:underline-offset-2 a{text-underline-offset:2px}.\[\&_code\]\:bg-muted code{--tw-bg-opacity: 1;background-color:hsl(var(--muted) / var(--tw-bg-opacity, 1))}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:font-mono code{font-family:JetBrains Mono,monospace}.\[\&_code\]\:text-body code{font-size:13px}.\[\&_h1\]\:mb-2 h1{margin-bottom:.5rem}.\[\&_h1\]\:text-prose h1{font-size:15px}.\[\&_h1\]\:font-semibold h1{font-weight:600}.\[\&_h2\]\:mb-2 h2{margin-bottom:.5rem}.\[\&_h2\]\:mt-3 h2{margin-top:.75rem}.\[\&_h2\]\:text-lead h2{font-size:14px}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mt-3 h3{margin-top:.75rem}.\[\&_h3\]\:font-semibold h3{font-weight:600}.\[\&_li\]\:mb-0\.5 li{margin-bottom:.125rem}.\[\&_ol\]\:mb-2 ol{margin-bottom:.5rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:1.25rem}.\[\&_p\:last-child\]\:mb-0 p:last-child{margin-bottom:0}.\[\&_p\]\:mb-2 p,.\[\&_pre\]\:mb-2 pre{margin-bottom:.5rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:border pre{border-width:1px}.\[\&_pre\]\:bg-background pre{--tw-bg-opacity: 1;background-color:hsl(var(--background) / var(--tw-bg-opacity, 1))}.\[\&_pre\]\:p-3 pre{padding:.75rem}.\[\&_pre\]\:font-mono pre{font-family:JetBrains Mono,monospace}.\[\&_pre\]\:text-small pre{font-size:12px}.\[\&_svg\]\:size-3\.5 svg{width:.875rem;height:.875rem}.\[\&_svg\]\:size-\[18px\] svg{width:18px;height:18px}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_ul\]\:mb-2 ul{margin-bottom:.5rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:1.25rem}@media (min-width: 1024px){@media (min-height:501px){.lg\:\[\@media\(min-height\:501px\)\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}}
@@ -6,8 +6,8 @@
6
6
  <meta name="color-scheme" content="light dark" />
7
7
  <title>AgentRun</title>
8
8
  <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%23ff8000'/%3E%3Cpath d='M12 9l11 7-11 7z' fill='%23000'/%3E%3C/svg%3E" />
9
- <script type="module" crossorigin src="./assets/index-35-7aeIZ.js"></script>
10
- <link rel="stylesheet" crossorigin href="./assets/index-Cejbov-Y.css">
9
+ <script type="module" crossorigin src="./assets/index-Dn0ngwG9.js"></script>
10
+ <link rel="stylesheet" crossorigin href="./assets/index-DvW6Aled.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
@@ -4,18 +4,7 @@ export type DaytonaApi = {
4
4
  apiKey: string;
5
5
  fetch?: typeof fetch;
6
6
  };
7
- /** How long a box kept because its copy back stopped (runs.ts) runs idle before Daytona stops it: its files stay, for
8
- * the next start's pull, and its compute stops. */
9
- export declare const KEPT_AUTOSTOP_MINUTES = 15;
10
7
  /** The redirect `fetch` refused (`redirect: "error"`): said plainly, as nothing follows one. */
11
8
  export declare function redirectRefusal(cause: unknown): string | undefined;
12
9
  /** One call to Daytona's API at `path` (below its base), with the key; a redirect throws, saying so. */
13
10
  export declare function daytonaCall(api: DaytonaApi, method: string, path: string): Promise<Response>;
14
- /** Keeps sandbox `id` with its files: Daytona's auto-delete off first (a box is made with 0, which deletes it as it
15
- * stops), then its auto-stop at `minutes` without activity, so its compute stops and its disk stays. */
16
- export declare function keepWhenIdle(api: DaytonaApi, id: string, minutes?: number): Promise<void>;
17
- /** Starts every stopped, paused or archived run box whose run `pick` names, and waits until each runs: a box kept at a run's end
18
- * that Daytona stopped, which the start's sweep then pulls like any other, or a run's box that paused while it waited.
19
- * One still stopping, pausing or archiving is waited for first; one that has not settled in SETTLE_MS throws, so its caller keeps
20
- * it and never makes another in its place. How many run now. */
21
- export declare function wakeBoxes(api: DaytonaApi, pick: (runId: string) => boolean): Promise<number>;
@@ -1,13 +1,7 @@
1
1
  // The few calls this server makes of Daytona's API itself, beside its provider's (pi-transport's daytonaBoxes): with
2
2
  // the server's key, and never through a redirect, which would carry the key to wherever it points. The box relay
3
- // (box-relay.ts) reads a sandbox's labels and toolbox with them; runs.ts keeps a box whose copy back is not whole (no
4
- // auto-delete, an idle stop) and wakes a run's box that Daytona stopped or paused.
5
- /** How long a box kept because its copy back stopped (runs.ts) runs idle before Daytona stops it: its files stay, for
6
- * the next start's pull, and its compute stops. */
7
- export const KEPT_AUTOSTOP_MINUTES = 15;
3
+ // (box-relay.ts) reads a sandbox's labels and toolbox with them.
8
4
  const CALL_MS = 30_000;
9
- const WAKE_MS = 120_000;
10
- const POLL_MS = 1_000;
11
5
  /** The redirect `fetch` refused (`redirect: "error"`): said plainly, as nothing follows one. */
12
6
  export function redirectRefusal(cause) {
13
7
  const inner = cause?.cause;
@@ -24,78 +18,3 @@ export async function daytonaCall(api, method, path) {
24
18
  throw refused ? new Error(`${method} ${new URL(`${base}${path}`).pathname}: ${refused}`) : error;
25
19
  }
26
20
  }
27
- /** Keeps sandbox `id` with its files: Daytona's auto-delete off first (a box is made with 0, which deletes it as it
28
- * stops), then its auto-stop at `minutes` without activity, so its compute stops and its disk stays. */
29
- export async function keepWhenIdle(api, id, minutes = KEPT_AUTOSTOP_MINUTES) {
30
- const kept = await daytonaCall(api, "POST", `/sandbox/${encodeURIComponent(id)}/autodelete/-1`);
31
- if (!kept.ok)
32
- throw new Error(`Daytona answered ${kept.status} to turning off a kept box's auto-delete`);
33
- const stops = await daytonaCall(api, "POST", `/sandbox/${encodeURIComponent(id)}/autostop/${minutes}`);
34
- if (!stops.ok)
35
- throw new Error(`Daytona answered ${stops.status} to the auto-stop of a kept box`);
36
- }
37
- /** The states a run's box is woken from: stopped (a kept box after its idle stop), paused (a class that pauses when
38
- * idle, while its run waits for a person) and archived (a stopped box Daytona moved to its archive). `/start` takes
39
- * each, an archived one restored. */
40
- const ASLEEP = new Set(["stopped", "paused", "archived"]);
41
- /** On its way to one of those: waited for (SETTLE_MS at most), then started. */
42
- const SETTLING = new Set(["stopping", "pausing", "archiving"]);
43
- const SETTLE_MS = 60_000;
44
- /** Starts every stopped, paused or archived run box whose run `pick` names, and waits until each runs: a box kept at a run's end
45
- * that Daytona stopped, which the start's sweep then pulls like any other, or a run's box that paused while it waited.
46
- * One still stopping, pausing or archiving is waited for first; one that has not settled in SETTLE_MS throws, so its caller keeps
47
- * it and never makes another in its place. How many run now. */
48
- export async function wakeBoxes(api, pick) {
49
- const stopped = [];
50
- let cursor;
51
- do {
52
- const query = new URLSearchParams({ labels: JSON.stringify({ "pi-transport": "1" }), limit: "100", ...(cursor ? { cursor } : {}) });
53
- const answer = await daytonaCall(api, "GET", `/sandbox?${query}`);
54
- if (!answer.ok)
55
- throw new Error(`Daytona answered ${answer.status} to the listing of its sandboxes`);
56
- const page = (await answer.json().catch(() => null));
57
- const items = Array.isArray(page) ? page : (page?.items ?? []);
58
- for (const item of items) {
59
- const run = item.labels?.["agentrun.run"];
60
- if (typeof item.id === "string" && (ASLEEP.has(item.state) || SETTLING.has(item.state)) && item.labels?.["agentrun.box"] === "run" && typeof run === "string" && pick(run))
61
- stopped.push(item.id);
62
- }
63
- cursor = Array.isArray(page) ? undefined : (page?.nextCursor ?? undefined);
64
- } while (cursor);
65
- let woken = 0;
66
- for (const id of stopped) {
67
- const state = await settled(api, id);
68
- if (state === undefined)
69
- continue;
70
- woken++;
71
- if (state === "started")
72
- continue;
73
- const started = await daytonaCall(api, "POST", `/sandbox/${encodeURIComponent(id)}/start`);
74
- if (!started.ok)
75
- throw new Error(`Daytona answered ${started.status} to the start of a kept box`);
76
- for (const end = Date.now() + WAKE_MS;;) {
77
- const read = await daytonaCall(api, "GET", `/sandbox/${encodeURIComponent(id)}`);
78
- const state = read.ok ? (await read.json().catch(() => null))?.state : undefined;
79
- if (state === "started")
80
- break;
81
- if (Date.now() > end)
82
- throw new Error(`a kept box did not start within ${WAKE_MS / 1000} s (state ${String(state)})`);
83
- await new Promise((resolve) => setTimeout(resolve, POLL_MS));
84
- }
85
- }
86
- return woken;
87
- }
88
- /** Sandbox `id`'s state once it is no longer stopping or pausing; undefined when it is gone. Throws past SETTLE_MS. */
89
- async function settled(api, id) {
90
- for (const end = Date.now() + SETTLE_MS;;) {
91
- const read = await daytonaCall(api, "GET", `/sandbox/${encodeURIComponent(id)}`);
92
- if (read.status === 404)
93
- return undefined;
94
- const state = read.ok ? (await read.json().catch(() => null))?.state : undefined;
95
- if (state !== undefined && !SETTLING.has(state))
96
- return state;
97
- if (Date.now() > end)
98
- throw new Error(`a run's box was still ${String(state)} after ${SETTLE_MS / 1000} s: it is kept, and nothing is made in its place`);
99
- await new Promise((resolve) => setTimeout(resolve, POLL_MS));
100
- }
101
- }
@@ -0,0 +1,37 @@
1
+ /** How long the read may take, its image's pull included. */
2
+ export declare const READ_MS = 60000;
3
+ /** The label the read's container carries, so it is told apart from a run's. */
4
+ export declare const READ_LABEL = "agentrun.read=host-addresses";
5
+ /** The read's `docker run`, every argument, its container named `name` (a fresh one per read: helperName), so a read
6
+ * that runs out of time removes it by that name. */
7
+ export declare const readArgsOf: (name: string) => readonly string[];
8
+ /** A fresh name for one read's container. */
9
+ export declare const helperName: () => string;
10
+ /** The addresses in the read's answer: each an IP address, the zone of a scoped one cut, loopback and link-local left out,
11
+ * each once. */
12
+ export declare function addressesOf(answer: string): string[];
13
+ /** What the read found: the host's addresses, or why there are none. */
14
+ export type HostRead = {
15
+ readonly addresses: readonly string[];
16
+ } | {
17
+ readonly why: string;
18
+ };
19
+ /** `docker` with `args`, bound to `ms`: its exit code (or the spawn's error code) and output. */
20
+ export type DockerRun = (args: readonly string[], ms: number) => Promise<{
21
+ code: number | string;
22
+ stdout: string;
23
+ stderr: string;
24
+ }>;
25
+ /** The Docker host's addresses, read through `env`'s docker as above. Never throws: a read that fails, or whose answer
26
+ * can't be read, says why; one that runs out of time has its container removed. `docker`, `ms` and `name` are the
27
+ * tests'. */
28
+ export declare function readHostAddresses(env: NodeJS.ProcessEnv, docker?: DockerRun, ms?: number, name?: string): Promise<HostRead>;
29
+ /** The union of the read's addresses and the operator's, each once; the read's why when it failed. */
30
+ export declare function unionOf(read: HostRead, named: readonly string[] | undefined): {
31
+ addresses: string[];
32
+ why?: string;
33
+ };
34
+ export declare function hostAddressesOnce(env: NodeJS.ProcessEnv): Promise<HostRead>;
35
+ /** Why a Docker computer can't keep this server's allow-list from a container: no address of the Docker host is known,
36
+ * with `why` (the read's failure, or that it found none), and the two ways out. */
37
+ export declare const noHostAddresses: (why: string) => string;
@@ -0,0 +1,110 @@
1
+ // The Docker host's own addresses, for a Docker provider whose interfaces aren't that host's (the server in a container
2
+ // given the host's Docker socket, compose.yaml). A Docker computer's egress proxy refuses them as the host's, so an
3
+ // allow-list never reaches the host itself; with none known, the provider refuses any allow-list there, and the server
4
+ // says so before a run (server.ts). They are the union of two sources, never one or the other, and never made up:
5
+ // - what the Docker host shows, read once per process through the socket: one short-lived container on the host's own
6
+ // network (`--network host`) from the egress proxy's image (@parcha/agentrun-computer's EGRESS_IMAGE, pinned by
7
+ // digest, which every Docker computer with an allow-list needs on the host anyway), as nobody (65534:65534), with no
8
+ // capability, no new privileges, a read-only root, 64 MiB and 32 processes, removed when it exits, bound to
9
+ // READ_MS, after which it is removed by its name (killing the client would leave it running). It prints the host's interface addresses (Node's os.networkInterfaces: IPv4 and IPv6 alike) and what
10
+ // host.docker.internal resolves to (host-gateway: on Docker Desktop or OrbStack the listing is the VM's, and the
11
+ // gateway is the way back to the Mac). A read that fails gives none, in words.
12
+ // - the operator's AGENTRUN_DOCKER_HOST_ADDRESSES (workspace/computer-deps.ts), for what no interface shows: a NAT'd
13
+ // or elastic public address.
14
+ import { execFile } from "node:child_process";
15
+ import { randomBytes } from "node:crypto";
16
+ import { isIP } from "node:net";
17
+ import { EGRESS_IMAGE } from "@parcha/agentrun-computer";
18
+ import { withoutSecrets } from "./secrets.js";
19
+ /** How long the read may take, its image's pull included. */
20
+ export const READ_MS = 60_000;
21
+ /** The label the read's container carries, so it is told apart from a run's. */
22
+ export const READ_LABEL = "agentrun.read=host-addresses";
23
+ /** What the read's container runs: Node, printing the interface addresses and host.docker.internal's, as one JSON line. */
24
+ const SCRIPT = [
25
+ "const os = require('node:os'), dns = require('node:dns');",
26
+ "const interfaces = Object.values(os.networkInterfaces()).flat().filter(Boolean).map((one) => one.address);",
27
+ "dns.lookup('host.docker.internal', { all: true }, (error, found) => { process.stdout.write(JSON.stringify({ interfaces, gateway: error ? [] : found.map((one) => one.address) }) + '\\n'); });",
28
+ ].join(" ");
29
+ /** The read's `docker run`, every argument, its container named `name` (a fresh one per read: helperName), so a read
30
+ * that runs out of time removes it by that name. */
31
+ export const readArgsOf = (name) => [
32
+ "run", "--rm", "--name", name, "--network", "host", "--add-host", "host.docker.internal:host-gateway", "--pull", "missing",
33
+ "--user", "65534:65534", "--cap-drop", "ALL", "--security-opt", "no-new-privileges", "--read-only",
34
+ "--memory", "64m", "--pids-limit", "32", "--label", READ_LABEL, "--entrypoint", "node", EGRESS_IMAGE, "-e", SCRIPT,
35
+ ];
36
+ /** A fresh name for one read's container. */
37
+ export const helperName = () => `agentrun-host-read-${randomBytes(6).toString("hex")}`;
38
+ /** How long removing a read's container that ran out of time, and checking it is gone, may each take. */
39
+ const REMOVE_MS = 15_000;
40
+ /** Loopback and link-local: no address another machine reaches the host by. */
41
+ const local = (address) => /^127\./.test(address) || address === "::1" || /^169\.254\./.test(address) || /^fe[89ab][0-9a-f]:/i.test(address);
42
+ /** The addresses in the read's answer: each an IP address, the zone of a scoped one cut, loopback and link-local left out,
43
+ * each once. */
44
+ export function addressesOf(answer) {
45
+ const parsed = JSON.parse(answer.trim());
46
+ const listed = [...(Array.isArray(parsed.interfaces) ? parsed.interfaces : []), ...(Array.isArray(parsed.gateway) ? parsed.gateway : [])];
47
+ const addresses = listed.filter((one) => typeof one === "string").map((one) => one.split("%")[0]);
48
+ return [...new Set(addresses.filter((one) => isIP(one) !== 0 && !local(one)))];
49
+ }
50
+ const dockerRun = (env) => (args, ms) => new Promise((resolve) => {
51
+ const child = execFile("docker", args, { env: withoutSecrets(env), timeout: ms, killSignal: "SIGKILL", maxBuffer: 64 * 1024 }, (error, stdout, stderr) => {
52
+ const failed = error;
53
+ resolve({ code: !failed ? 0 : failed.killed ? "timeout" : typeof failed.code === "number" ? failed.code : (failed.code ?? failed.name), stdout: String(stdout), stderr: String(stderr) });
54
+ });
55
+ child.stdin?.end();
56
+ });
57
+ /** Removes the read's container `name` after its client ran out of time (killing the client leaves the container
58
+ * running), and checks it is gone: the words for the read's why. */
59
+ async function removeHelper(docker, name) {
60
+ await docker(["rm", "-f", name], REMOVE_MS);
61
+ const left = await docker(["inspect", "--type", "container", "--format", "{{.State.Running}}", name], REMOVE_MS);
62
+ if (left.code === 0)
63
+ return `its container ${name} is still there: remove it with docker rm -f ${name}`;
64
+ // Gone only when Docker says it has no such container; a daemon that didn't answer says nothing of it.
65
+ if (NO_SUCH_CONTAINER.test(left.stderr))
66
+ return `its container was removed`;
67
+ return `its container ${name} may still be running (docker inspect failed: ${left.stderr.trim().slice(0, 160) || `exit ${left.code}`}): remove it with docker rm -f ${name}`;
68
+ }
69
+ /** Docker's words for a container it doesn't have, as `docker inspect` gives them. */
70
+ const NO_SUCH_CONTAINER = /no such (object|container)/i;
71
+ /** The Docker host's addresses, read through `env`'s docker as above. Never throws: a read that fails, or whose answer
72
+ * can't be read, says why; one that runs out of time has its container removed. `docker`, `ms` and `name` are the
73
+ * tests'. */
74
+ export async function readHostAddresses(env, docker = dockerRun(env), ms = READ_MS, name = helperName()) {
75
+ const ran = await docker(readArgsOf(name), ms);
76
+ if (ran.code === "timeout")
77
+ return { why: `the read through Docker's socket took over ${ms / 1000} s (${await removeHelper(docker, name)})` };
78
+ if (ran.code !== 0)
79
+ return { why: `the read through Docker's socket failed (exit ${ran.code}: ${ran.stderr.trim().slice(0, 200)})` };
80
+ try {
81
+ return { addresses: addressesOf(ran.stdout) };
82
+ }
83
+ catch {
84
+ return { why: `the read through Docker's socket answered what is not its list (${ran.stdout.trim().slice(0, 120)})` };
85
+ }
86
+ }
87
+ /** The union of the read's addresses and the operator's, each once; the read's why when it failed. */
88
+ export function unionOf(read, named) {
89
+ const addresses = [...new Set([...("addresses" in read ? read.addresses : []), ...(named ?? [])])];
90
+ return "why" in read ? { addresses, why: read.why } : { addresses };
91
+ }
92
+ /** One read per process, for each environment's docker (the binary PATH finds and the daemon it reaches), kept once it
93
+ * succeeds: a server and the runner beside it share it, and a failed read is tried again at the next ask. */
94
+ const reads = new Map();
95
+ export function hostAddressesOnce(env) {
96
+ const key = [env.PATH, env.DOCKER_HOST, env.DOCKER_CONTEXT, env.DOCKER_CONFIG].map((one) => one ?? "").join("\0");
97
+ const known = reads.get(key);
98
+ if (known)
99
+ return known;
100
+ const read = readHostAddresses(env).then((result) => {
101
+ if ("why" in result)
102
+ reads.delete(key);
103
+ return result;
104
+ });
105
+ reads.set(key, read);
106
+ return read;
107
+ }
108
+ /** Why a Docker computer can't keep this server's allow-list from a container: no address of the Docker host is known,
109
+ * with `why` (the read's failure, or that it found none), and the two ways out. */
110
+ export const noHostAddresses = (why) => `the server runs in a container and doesn't know the Docker host's own addresses (${why}), so a Docker computer can't keep this server's allow-list: set AGENTRUN_DOCKER_HOST_ADDRESSES to the host's IP addresses, or AGENTRUN_BOX_ALLOW=none for no network`;
package/dist/files.d.ts CHANGED
@@ -4,20 +4,12 @@ export declare const RUN_META = "serve.json";
4
4
  /** A cancelled run's mark in its directory, written before its process is told: the run's process sends no model
5
5
  * request once it is there, however the cancel and the process's start interleave. */
6
6
  export declare const RUN_CANCELLED = "cancelled";
7
- /** A run's launch mark in its directory, written before its process is spawned and removed once that process serves
8
- * or exits: found at a start, the server went down while it launched the run. */
9
- export declare const RUN_LAUNCHING = "launching";
10
- /** Set in a run's process environment when the server opens the run for a person's follow-up to a run whose turn had
11
- * ended (it answered, or the person stopped it): that open resumes no cut work, so it writes no "resumed" row (app.ts). */
12
- export declare const FOLLOW_UP_OPEN_ENV = "AGENTRUN_FOLLOW_UP_OPEN";
13
7
  /** The server-wide door token, in the data directory: the door of a run an older server started takes it. */
14
8
  export declare const DOOR_TOKEN_FILE = ".door-token";
15
9
  /** A run's own door token, in its directory, made at its first launch and handed to its process alone (its
16
10
  * `--serve-token-file`): the server's calls to that run's door carry it, and so do that run's calls to the box relay
17
11
  * (box-relay.ts), which takes a call for a run only with that run's token. */
18
12
  export declare const RUN_DOOR_TOKEN = "door-token";
19
- /** Run directory `dir`'s own door token (RUN_DOOR_TOKEN), when it has one. */
20
- export declare function runDoorToken(dir: string): string | undefined;
21
13
  /** Why a run fails whose launch mark a start finds (`error.details.reason`, openapi.ts). */
22
14
  export declare const LAUNCH_LOST = "server_lost_at_launch";
23
15
  /** Why a run fails that the store has running with no serve.json: its server went down before it set the run up. */
package/dist/files.js CHANGED
@@ -2,7 +2,6 @@
2
2
  // The server-wide durable-file plumbing and the data-directory location moved to server-fs.ts; this module re-exports it
3
3
  // so callers that still reach for it here keep working until they are pointed at server-fs.ts.
4
4
  import { createHash } from "node:crypto";
5
- import { readFileSync } from "node:fs";
6
5
  import { join, resolve } from "node:path";
7
6
  export { DATA_ENV, SERVER_FILE, TOKEN_FILE, agentFolderOf, defaultData, readJson, removeOwnRecord, serialBy, syncDir, tempOf, writeDurable, writeDurableSync, writeWhole } from "./server-fs.js";
8
7
  /** The server's own file in each run's directory: the run's title, input and how it was asked to run. */
@@ -10,28 +9,12 @@ export const RUN_META = "serve.json";
10
9
  /** A cancelled run's mark in its directory, written before its process is told: the run's process sends no model
11
10
  * request once it is there, however the cancel and the process's start interleave. */
12
11
  export const RUN_CANCELLED = "cancelled";
13
- /** A run's launch mark in its directory, written before its process is spawned and removed once that process serves
14
- * or exits: found at a start, the server went down while it launched the run. */
15
- export const RUN_LAUNCHING = "launching";
16
- /** Set in a run's process environment when the server opens the run for a person's follow-up to a run whose turn had
17
- * ended (it answered, or the person stopped it): that open resumes no cut work, so it writes no "resumed" row (app.ts). */
18
- export const FOLLOW_UP_OPEN_ENV = "AGENTRUN_FOLLOW_UP_OPEN";
19
12
  /** The server-wide door token, in the data directory: the door of a run an older server started takes it. */
20
13
  export const DOOR_TOKEN_FILE = ".door-token";
21
14
  /** A run's own door token, in its directory, made at its first launch and handed to its process alone (its
22
15
  * `--serve-token-file`): the server's calls to that run's door carry it, and so do that run's calls to the box relay
23
16
  * (box-relay.ts), which takes a call for a run only with that run's token. */
24
17
  export const RUN_DOOR_TOKEN = "door-token";
25
- /** Run directory `dir`'s own door token (RUN_DOOR_TOKEN), when it has one. */
26
- export function runDoorToken(dir) {
27
- try {
28
- const token = readFileSync(join(dir, RUN_DOOR_TOKEN), "utf8").trim();
29
- return token && !/\s/.test(token) ? token : undefined;
30
- }
31
- catch {
32
- return undefined;
33
- }
34
- }
35
18
  /** Why a run fails whose launch mark a start finds (`error.details.reason`, openapi.ts). */
36
19
  export const LAUNCH_LOST = "server_lost_at_launch";
37
20
  /** Why a run fails that the store has running with no serve.json: its server went down before it set the run up. */
@@ -79,7 +79,7 @@ export declare class GitHubConnection {
79
79
  pem: string;
80
80
  } | undefined;
81
81
  /** Why nothing can be kept: this server keeps no github source's settings (no such source here). Its seal key is always
82
- * there (seal-key.ts ensureSealKey). */
82
+ * there (seal-key.ts bootSealKey). */
83
83
  unwritable(): ApiError | undefined;
84
84
  /** The App's settings page on GitHub, where the person deletes it: its owner's (an organization's, or the user's). */
85
85
  settingsUrl(): string | undefined;
@@ -112,7 +112,7 @@ export class GitHubConnection {
112
112
  return appId && pem ? { appId, pem } : undefined;
113
113
  }
114
114
  /** Why nothing can be kept: this server keeps no github source's settings (no such source here). Its seal key is always
115
- * there (seal-key.ts ensureSealKey). */
115
+ * there (seal-key.ts bootSealKey). */
116
116
  unwritable() {
117
117
  return this.settings ? undefined : new ApiError("unavailable", "This server has no GitHub source to keep an App in.");
118
118
  }
@@ -94,6 +94,29 @@ export declare function removeFlatInstall(harnesses: string): Promise<boolean>;
94
94
  export declare const NPM_STOP_GRACE_MS = 5000;
95
95
  /** How long the exit of an npm sent SIGKILL is waited for, at most (it is at once): the stop never hangs on it. */
96
96
  export declare const NPM_KILLED_WAIT_MS = 5000;
97
+ /** The file an install of a harness into `dir` (`<data>/harnesses/<harness>`) keeps in the data directory while it runs,
98
+ * for every process on this data (a runner beside the server, one of its own, or one in another container on the same
99
+ * volume): the installing host and process, and since when. A failed install leaves why in it until the next install;
100
+ * one that lands removes it. In the data directory, not `<data>/harnesses`: an earlier build left that read-only with
101
+ * its flat install in it, which the install removes first (removeFlatInstall) and which a file of ours would keep. */
102
+ export declare const installMarkOf: (dir: string) => string;
103
+ /** Where a run's claim stands on a harness that installs on first use, in `dir`: "installed" once it is whole; while an
104
+ * install runs (its mark started within INSTALL_TIMEOUT_MS, by a live process when it names this host; another host's
105
+ * process can't be read from here, so its mark is trusted within that bound), it waits for that install, polling, never
106
+ * past that bound; `{ failed }` with the install's own words when the last install failed; "none" when nothing installs
107
+ * it (no mark, one past the bound, or one this host's installer that is gone left), so the caller says what is missing
108
+ * as before. `onWait`: told once, as it starts to wait. `signal` aborted (the run stopped, or its claim lost): it stops
109
+ * waiting and rejects; the install goes on. */
110
+ export declare function installSettled(entry: HarnessInstallEntry, dir: string, pins: HarnessPins, { signal, onWait, pollMs, timeoutMs, isAlive, host }?: {
111
+ signal?: AbortSignal;
112
+ onWait?: () => void;
113
+ pollMs?: number;
114
+ timeoutMs?: number;
115
+ isAlive?: (pid: number) => boolean;
116
+ host?: string;
117
+ }): Promise<"installed" | "none" | {
118
+ failed: string;
119
+ }>;
97
120
  /** The server's one installer of a harness into `dir`: `ensure()` resolves once it is installed whole, installing it first
98
121
  * when it is not, and every caller while an install runs waits for that one. A failed install is not kept: the next call
99
122
  * tries again. `stop()` stops an install that runs (its npm) and waits, bounded, for it to end. `onInstalled` hears of an