@boxes-dev/dvb-runtime 1.0.1071 → 1.0.1072

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/dvb.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f9b05d56-bcfd-5306-9e59-f832431ece07")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e37678ce-fb44-5903-81f8-a25f3b4c4d9c")}catch(e){}}();
4
4
  import { createRequire as __dvbCreateRequire } from "node:module";
5
5
  import { dirname as __dvbDirname } from "node:path";
6
6
  import { fileURLToPath as __dvbFileURLToPath } from "node:url";
@@ -5727,6 +5727,58 @@ var init_loopbackServer = __esm({
5727
5727
  }
5728
5728
  });
5729
5729
 
5730
+ // ../../../../shared/devboxCore/dist/boxesLogoSvg.js
5731
+ var BOXES_LOGO_LIGHT_BG_SVG, BOXES_LOGO_DARK_BG_SVG;
5732
+ var init_boxesLogoSvg = __esm({
5733
+ "../../../../shared/devboxCore/dist/boxesLogoSvg.js"() {
5734
+ "use strict";
5735
+ BOXES_LOGO_LIGHT_BG_SVG = '<svg class="logo-light-bg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2936 488" role="img" aria-label="boxes.dev" fill="currentColor"><path fill-rule="evenodd" d="M56 64H424V432H56ZM92 100V396H388V100Z"/><path d="M480 432H444V64ZM56 488V452H424ZM0 64H36V432ZM424 8V44H56Z"/><path d="M669,418L669,63L740,63L740,215L744,215C750,200,759,188,770,179C782,169,797,164,817,164L817,164C831,164,843,167,855,172C866,177,876,185,884,195C892,206,899,219,903,236C908,252,910,271,910,294L910,294C910,316,908,336,903,352C899,368,892,382,884,392C876,403,866,411,855,416C843,421,831,423,817,423L817,423C797,423,782,419,770,409C759,400,750,388,744,373L744,373L740,373L740,418L669,418ZM786,368L786,368C802,368,815,363,823,354C832,344,836,330,836,313L836,313L836,275C836,257,832,244,823,234C815,224,802,219,786,219L786,219C774,219,763,223,754,229C745,235,740,244,740,257L740,257L740,330C740,343,745,353,754,359C763,365,774,368,786,368ZM1061,423L1061,423C1042,423,1025,421,1009,415C994,409,981,400,970,389C959,378,951,364,945,348C940,332,937,314,937,294L937,294C937,274,940,256,945,240C951,224,959,210,970,199C981,188,994,179,1009,173C1025,167,1042,164,1061,164L1061,164C1080,164,1097,167,1113,173C1128,179,1141,188,1152,199C1163,210,1171,224,1177,240C1182,256,1185,274,1185,294L1185,294C1185,314,1182,332,1177,348C1171,364,1163,378,1152,389C1141,400,1128,409,1113,415C1097,421,1080,423,1061,423ZM1061,371L1061,371C1077,371,1089,366,1098,356C1107,346,1112,332,1112,314L1112,314L1112,274C1112,256,1107,242,1098,232C1089,222,1077,217,1061,217L1061,217C1045,217,1033,222,1024,232C1015,242,1010,256,1010,274L1010,274L1010,314C1010,332,1015,346,1024,356C1033,366,1045,371,1061,371ZM1279,418L1204,418L1297,292L1210,170L1291,170L1318,210L1338,242L1342,242L1362,210L1389,170L1464,170L1377,288L1470,418L1388,418L1357,371L1336,338L1332,338L1311,371L1279,418ZM1620,423L1620,423C1578,423,1547,412,1525,389C1504,366,1493,335,1493,295L1493,295C1493,275,1496,257,1501,240C1507,224,1515,210,1525,199C1536,188,1548,179,1563,173C1578,167,1595,164,1613,164L1613,164C1632,164,1649,167,1663,173C1678,179,1691,187,1701,198C1711,209,1719,222,1725,238C1730,253,1733,271,1733,290L1733,290L1733,311L1564,311L1564,315C1564,331,1569,344,1578,354C1588,364,1603,369,1622,369L1622,369C1637,369,1649,366,1660,360C1671,355,1680,347,1687,338L1687,338L1726,380C1716,392,1703,402,1685,411C1668,419,1646,423,1620,423ZM1614,215L1614,215C1599,215,1586,220,1577,229C1568,239,1564,251,1564,267L1564,267L1564,271L1663,271L1663,267C1663,251,1659,238,1650,229C1641,220,1629,215,1614,215ZM1886,423L1886,423C1859,423,1835,419,1814,411C1794,403,1779,391,1769,377L1769,377L1808,340C1818,351,1829,359,1842,365C1855,371,1870,374,1887,374L1887,374C1901,374,1912,371,1920,367C1928,363,1932,356,1932,347L1932,347C1932,340,1929,335,1924,333C1918,330,1911,328,1901,326L1901,326L1861,320C1850,318,1840,316,1830,312C1820,309,1812,304,1805,299C1798,293,1792,286,1788,278C1784,269,1782,259,1782,247L1782,247C1782,221,1792,201,1812,186C1832,172,1859,164,1895,164L1895,164C1920,164,1940,168,1957,174C1975,181,1988,190,1998,202L1998,202L1963,243C1956,235,1946,228,1935,222C1923,217,1909,214,1893,214L1893,214C1865,214,1852,223,1852,239L1852,239C1852,247,1854,252,1860,254C1865,257,1873,259,1882,261L1882,261L1922,267C1933,269,1943,271,1953,274C1962,278,1971,282,1978,288C1985,294,1991,301,1995,309C1999,318,2001,328,2001,339L2001,339C2001,365,1991,386,1971,401C1951,416,1923,423,1886,423Z"/><path d="M2079,420L2079,420C2069,420,2061,418,2057,414C2053,409,2051,404,2051,397L2051,397L2051,391C2051,384,2053,379,2057,374C2061,370,2069,368,2079,368L2079,368C2089,368,2096,370,2100,374C2105,379,2107,384,2107,391L2107,391L2107,397C2107,404,2105,409,2100,414C2096,418,2089,420,2079,420Z"/><path d="M2330,417L2330,377L2328,377C2312,408,2287,423,2252,423L2252,423C2222,423,2198,412,2181,389C2164,366,2155,334,2155,293L2155,293C2155,252,2164,221,2181,198C2198,175,2222,164,2252,164L2252,164C2287,164,2312,179,2328,210L2328,210L2330,210L2330,62L2369,62L2369,417L2330,417ZM2267,389L2267,389C2275,389,2284,388,2291,386C2299,383,2306,380,2311,376C2317,371,2322,366,2325,360C2329,354,2330,346,2330,338L2330,338L2330,249C2330,240,2329,233,2325,227C2322,221,2317,215,2311,211C2306,207,2299,203,2291,201C2284,199,2275,198,2267,198L2267,198C2244,198,2227,205,2215,218C2202,232,2196,250,2196,272L2196,272L2196,314C2196,337,2202,355,2215,368C2227,382,2244,389,2267,389ZM2551,423L2551,423C2533,423,2517,420,2502,414C2488,408,2476,399,2466,388C2456,376,2448,363,2443,347C2437,331,2434,313,2434,294L2434,294C2434,274,2437,256,2443,240C2448,224,2456,210,2466,199C2476,188,2488,179,2502,173C2516,167,2531,164,2548,164L2548,164C2565,164,2580,167,2593,173C2607,179,2619,187,2628,198C2638,209,2645,222,2650,236C2655,251,2658,267,2658,285L2658,285L2658,303L2475,303L2475,314C2475,325,2476,335,2480,345C2483,354,2489,362,2495,369C2502,375,2510,381,2519,384C2529,388,2539,390,2551,390L2551,390C2567,390,2582,386,2594,378C2606,371,2615,360,2622,347L2622,347L2650,366C2643,382,2630,396,2613,407C2596,418,2575,423,2551,423ZM2548,195L2548,195C2538,195,2528,197,2519,201C2510,205,2502,210,2496,217C2489,224,2484,232,2480,241C2477,250,2475,260,2475,271L2475,271L2475,274L2617,274L2617,269C2617,258,2615,248,2612,239C2608,230,2604,222,2598,216C2592,209,2585,204,2576,201C2568,197,2558,195,2548,195ZM2847,417L2798,417L2709,170L2748,170L2783,273L2822,385L2824,385L2862,273L2898,170L2935,170L2847,417Z"/></svg>';
5736
+ BOXES_LOGO_DARK_BG_SVG = '<svg class="logo-dark-bg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2940 480" role="img" aria-label="boxes.dev" fill="currentColor"><path fill-rule="evenodd" d="M56 56H424V424H56ZM88 88V392H392V88Z"/><path d="M480 424H448V56ZM56 480V448H424ZM0 56H32V424ZM424 0V32H56Z"/><path d="M685,410L685,55L747,55L747,206L750,206C757,191,766,179,778,170C789,161,805,156,824,156L824,156C838,156,851,159,862,164C874,169,884,177,892,188C901,199,907,212,912,229C916,245,918,264,918,286L918,286C918,308,916,327,912,343C907,359,901,373,892,384C884,394,874,402,862,408C851,413,838,415,824,415L824,415C805,415,789,411,778,402C766,393,757,381,750,366L750,366L747,366L747,410L685,410ZM798,367L798,367C816,367,830,361,839,350C849,339,854,324,854,306L854,306L854,266C854,247,849,232,839,222C830,211,816,205,798,205L798,205C784,205,772,209,762,216C752,222,747,233,747,247L747,247L747,325C747,339,752,349,762,356C772,363,784,367,798,367ZM1072,415L1072,415C1053,415,1036,412,1021,406C1006,400,994,392,983,380C973,369,965,356,959,340C954,324,951,306,951,286L951,286C951,266,954,248,959,232C965,216,973,203,983,191C994,180,1006,171,1021,165C1036,159,1053,156,1072,156L1072,156C1091,156,1107,159,1122,165C1137,171,1150,180,1161,191C1171,203,1179,216,1185,232C1190,248,1193,266,1193,286L1193,286C1193,306,1190,324,1185,340C1179,356,1171,369,1161,380C1150,392,1137,400,1122,406C1107,412,1091,415,1072,415ZM1072,368L1072,368C1090,368,1104,363,1114,352C1124,342,1129,326,1129,305L1129,305L1129,267C1129,246,1124,230,1114,219C1104,209,1090,203,1072,203L1072,203C1054,203,1040,209,1030,219C1020,230,1015,246,1015,267L1015,267L1015,305C1015,326,1020,342,1030,352C1040,363,1054,368,1072,368ZM1286,410L1220,410L1313,284L1226,162L1296,162L1326,206L1349,240L1352,240L1375,206L1405,162L1470,162L1383,281L1476,410L1405,410L1371,360L1347,325L1344,325L1320,360L1286,410ZM1630,415L1630,415C1610,415,1592,412,1577,406C1562,400,1549,392,1538,380C1528,369,1520,356,1515,340C1509,324,1506,306,1506,286L1506,286C1506,266,1509,248,1515,232C1520,216,1528,203,1539,191C1549,180,1561,171,1576,165C1590,159,1607,156,1625,156L1625,156C1643,156,1659,159,1673,165C1688,171,1700,179,1710,190C1720,201,1728,214,1733,230C1739,245,1742,262,1742,281L1742,281L1742,301L1568,301L1568,307C1568,325,1573,339,1585,350C1596,361,1612,367,1632,367L1632,367C1647,367,1660,364,1671,358C1682,351,1692,343,1699,333L1699,333L1734,368C1725,381,1712,392,1695,402C1678,411,1656,415,1630,415ZM1625,201L1625,201C1608,201,1594,207,1584,218C1573,229,1568,243,1568,261L1568,261L1568,264L1680,264L1680,260C1680,242,1675,228,1666,217C1656,207,1642,201,1625,201ZM1899,415L1899,415C1872,415,1848,411,1828,403C1809,394,1793,383,1782,368L1782,368L1818,336C1828,347,1840,356,1853,362C1866,368,1882,371,1900,371L1900,371C1915,371,1927,368,1936,363C1946,358,1950,350,1950,340L1950,340C1950,331,1947,325,1941,321C1935,318,1927,316,1916,314L1916,314L1876,308C1866,306,1856,304,1846,301C1837,298,1828,294,1821,288C1813,283,1807,276,1803,267C1798,259,1796,249,1796,236L1796,236C1796,211,1806,191,1825,177C1844,163,1871,156,1905,156L1905,156C1929,156,1949,160,1966,166C1983,173,1997,183,2008,195L2008,195L1975,230C1968,223,1959,216,1947,210C1936,204,1921,201,1903,201L1903,201C1872,201,1856,211,1856,230L1856,230C1856,239,1859,245,1865,249C1872,252,1880,255,1890,256L1890,256L1930,262C1940,264,1950,266,1960,269C1970,272,1979,277,1986,282C1994,287,2000,294,2004,303C2009,311,2011,321,2011,333L2011,333C2011,359,2001,379,1981,394C1962,408,1934,415,1899,415Z"/><path d="M2094,412L2094,412C2086,412,2081,411,2078,408C2075,405,2073,401,2073,396L2073,396L2073,391C2073,386,2075,382,2078,379C2081,376,2086,374,2094,374L2094,374C2101,374,2106,376,2109,379C2113,382,2114,386,2114,391L2114,391L2114,396C2114,401,2113,405,2109,408C2106,411,2101,412,2094,412Z"/><path d="M2356,410L2356,372L2354,372C2348,383,2339,393,2326,402C2313,411,2297,415,2277,415L2277,415C2245,415,2221,405,2203,383C2186,361,2177,329,2177,286L2177,286C2177,243,2186,211,2203,189C2221,167,2245,156,2277,156L2277,156C2297,156,2313,161,2326,169C2339,178,2348,188,2354,200L2354,200L2356,200L2356,55L2372,55L2372,410L2356,410ZM2281,401L2281,401C2291,401,2300,399,2309,396C2318,393,2326,389,2333,384C2340,378,2345,372,2349,364C2353,356,2356,348,2356,339L2356,339L2356,233C2356,224,2353,215,2349,208C2345,200,2340,193,2333,188C2326,183,2318,178,2309,175C2300,173,2291,171,2281,171L2281,171C2253,171,2232,180,2217,198C2203,216,2195,241,2195,272L2195,272L2195,300C2195,331,2203,355,2217,373C2232,392,2253,401,2281,401ZM2564,415L2564,415C2531,415,2505,404,2486,382C2468,360,2458,328,2458,286L2458,286C2458,244,2468,211,2486,189C2505,167,2530,156,2562,156L2562,156C2579,156,2593,159,2606,165C2619,171,2630,179,2638,190C2647,201,2653,214,2658,230C2662,245,2665,262,2665,281L2665,281L2665,287L2477,287L2477,300C2477,331,2484,355,2499,373C2515,392,2536,401,2564,401L2564,401C2584,401,2601,396,2615,387C2629,377,2639,363,2646,345L2646,345L2660,352C2653,371,2641,387,2625,398C2608,410,2588,415,2564,415ZM2562,171L2562,171C2535,171,2514,180,2499,198C2484,216,2477,241,2477,272L2477,272L2477,274L2647,274L2647,271C2647,240,2640,216,2625,198C2610,180,2589,171,2562,171ZM2848,410L2826,410L2734,162L2752,162L2837,393L2838,393L2923,162L2940,162L2848,410Z"/></svg>';
5737
+ }
5738
+ });
5739
+
5740
+ // ../../../../shared/devboxCore/dist/oauthCallbackPage.js
5741
+ var escapeHtml, renderOAuthCallbackPage;
5742
+ var init_oauthCallbackPage = __esm({
5743
+ "../../../../shared/devboxCore/dist/oauthCallbackPage.js"() {
5744
+ "use strict";
5745
+ init_boxesLogoSvg();
5746
+ escapeHtml = (value) => value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
5747
+ renderOAuthCallbackPage = ({ heading, message }) => `<!doctype html>
5748
+ <html lang="en">
5749
+ <head>
5750
+ <meta charset="utf-8">
5751
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5752
+ <meta name="referrer" content="no-referrer">
5753
+ <title>${escapeHtml(heading)} \xB7 boxes.dev</title>
5754
+ <style>
5755
+ :root { color-scheme: light dark; --background: #fafafa; --foreground: #0a0a0a; --muted: rgba(0, 0, 0, 0.62); }
5756
+ svg { display: block; height: 28px; width: auto; margin: 0 auto 40px; }
5757
+ .logo-dark-bg { display: none; }
5758
+ @media (prefers-color-scheme: dark) {
5759
+ :root { --background: #0a0a0a; --foreground: #fafafa; --muted: rgba(255, 255, 255, 0.62); }
5760
+ .logo-light-bg { display: none; }
5761
+ .logo-dark-bg { display: block; }
5762
+ }
5763
+ body { box-sizing: border-box; display: grid; min-height: 100vh; margin: 0; padding: 24px; place-items: center; background: var(--background); color: var(--foreground); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
5764
+ main { max-width: 28rem; text-align: center; }
5765
+ h1 { margin: 0 0 16px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
5766
+ p { margin: 0; color: var(--muted); font-size: 14px; line-height: 24px; }
5767
+ @media (min-width: 640px) { h1 { font-size: 30px; } }
5768
+ </style>
5769
+ </head>
5770
+ <body>
5771
+ <main>
5772
+ ${BOXES_LOGO_LIGHT_BG_SVG}${BOXES_LOGO_DARK_BG_SVG}
5773
+ <h1>${escapeHtml(heading)}</h1>
5774
+ <p>${escapeHtml(message)}</p>
5775
+ </main>
5776
+ </body>
5777
+ </html>
5778
+ `;
5779
+ }
5780
+ });
5781
+
5730
5782
  // ../../../../shared/devboxCore/dist/mcpOAuth/types.js
5731
5783
  var MCP_OAUTH_COMPANION_CONTRACT_VERSION, McpOAuthCompanionError;
5732
5784
  var init_types = __esm({
@@ -5752,6 +5804,7 @@ var init_callbackServer = __esm({
5752
5804
  "../../../../shared/devboxCore/dist/mcpOAuth/callbackServer.js"() {
5753
5805
  "use strict";
5754
5806
  init_loopbackServer();
5807
+ init_oauthCallbackPage();
5755
5808
  init_types();
5756
5809
  MAX_CALLBACK_TARGET_CHARS = 8 * 1024;
5757
5810
  safeStateEqual = (expected, received) => {
@@ -5766,7 +5819,10 @@ var init_callbackServer = __esm({
5766
5819
  "Referrer-Policy": "no-referrer",
5767
5820
  "X-Content-Type-Options": "nosniff"
5768
5821
  });
5769
- response.end(`<!doctype html><html><head><meta name="referrer" content="no-referrer"><title>${heading}</title></head><body><h1>${heading}</h1><p>You can close this tab and return to boxes.dev.</p></body></html>`);
5822
+ response.end(renderOAuthCallbackPage({
5823
+ heading,
5824
+ message: "You can close this tab and return to boxes.dev."
5825
+ }));
5770
5826
  };
5771
5827
  startMcpOAuthCallbackListener = async ({ callbackHostname, callbackPath, expectedState, signal, timeoutMs }) => {
5772
5828
  let settled = false;
@@ -26654,58 +26710,6 @@ var init_codexOAuthParams = __esm({
26654
26710
  }
26655
26711
  });
26656
26712
 
26657
- // ../../../../shared/devboxCore/dist/boxesLogoSvg.js
26658
- var BOXES_LOGO_LIGHT_BG_SVG, BOXES_LOGO_DARK_BG_SVG;
26659
- var init_boxesLogoSvg = __esm({
26660
- "../../../../shared/devboxCore/dist/boxesLogoSvg.js"() {
26661
- "use strict";
26662
- BOXES_LOGO_LIGHT_BG_SVG = '<svg class="logo-light-bg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2936 488" role="img" aria-label="boxes.dev" fill="currentColor"><path fill-rule="evenodd" d="M56 64H424V432H56ZM92 100V396H388V100Z"/><path d="M480 432H444V64ZM56 488V452H424ZM0 64H36V432ZM424 8V44H56Z"/><path d="M669,418L669,63L740,63L740,215L744,215C750,200,759,188,770,179C782,169,797,164,817,164L817,164C831,164,843,167,855,172C866,177,876,185,884,195C892,206,899,219,903,236C908,252,910,271,910,294L910,294C910,316,908,336,903,352C899,368,892,382,884,392C876,403,866,411,855,416C843,421,831,423,817,423L817,423C797,423,782,419,770,409C759,400,750,388,744,373L744,373L740,373L740,418L669,418ZM786,368L786,368C802,368,815,363,823,354C832,344,836,330,836,313L836,313L836,275C836,257,832,244,823,234C815,224,802,219,786,219L786,219C774,219,763,223,754,229C745,235,740,244,740,257L740,257L740,330C740,343,745,353,754,359C763,365,774,368,786,368ZM1061,423L1061,423C1042,423,1025,421,1009,415C994,409,981,400,970,389C959,378,951,364,945,348C940,332,937,314,937,294L937,294C937,274,940,256,945,240C951,224,959,210,970,199C981,188,994,179,1009,173C1025,167,1042,164,1061,164L1061,164C1080,164,1097,167,1113,173C1128,179,1141,188,1152,199C1163,210,1171,224,1177,240C1182,256,1185,274,1185,294L1185,294C1185,314,1182,332,1177,348C1171,364,1163,378,1152,389C1141,400,1128,409,1113,415C1097,421,1080,423,1061,423ZM1061,371L1061,371C1077,371,1089,366,1098,356C1107,346,1112,332,1112,314L1112,314L1112,274C1112,256,1107,242,1098,232C1089,222,1077,217,1061,217L1061,217C1045,217,1033,222,1024,232C1015,242,1010,256,1010,274L1010,274L1010,314C1010,332,1015,346,1024,356C1033,366,1045,371,1061,371ZM1279,418L1204,418L1297,292L1210,170L1291,170L1318,210L1338,242L1342,242L1362,210L1389,170L1464,170L1377,288L1470,418L1388,418L1357,371L1336,338L1332,338L1311,371L1279,418ZM1620,423L1620,423C1578,423,1547,412,1525,389C1504,366,1493,335,1493,295L1493,295C1493,275,1496,257,1501,240C1507,224,1515,210,1525,199C1536,188,1548,179,1563,173C1578,167,1595,164,1613,164L1613,164C1632,164,1649,167,1663,173C1678,179,1691,187,1701,198C1711,209,1719,222,1725,238C1730,253,1733,271,1733,290L1733,290L1733,311L1564,311L1564,315C1564,331,1569,344,1578,354C1588,364,1603,369,1622,369L1622,369C1637,369,1649,366,1660,360C1671,355,1680,347,1687,338L1687,338L1726,380C1716,392,1703,402,1685,411C1668,419,1646,423,1620,423ZM1614,215L1614,215C1599,215,1586,220,1577,229C1568,239,1564,251,1564,267L1564,267L1564,271L1663,271L1663,267C1663,251,1659,238,1650,229C1641,220,1629,215,1614,215ZM1886,423L1886,423C1859,423,1835,419,1814,411C1794,403,1779,391,1769,377L1769,377L1808,340C1818,351,1829,359,1842,365C1855,371,1870,374,1887,374L1887,374C1901,374,1912,371,1920,367C1928,363,1932,356,1932,347L1932,347C1932,340,1929,335,1924,333C1918,330,1911,328,1901,326L1901,326L1861,320C1850,318,1840,316,1830,312C1820,309,1812,304,1805,299C1798,293,1792,286,1788,278C1784,269,1782,259,1782,247L1782,247C1782,221,1792,201,1812,186C1832,172,1859,164,1895,164L1895,164C1920,164,1940,168,1957,174C1975,181,1988,190,1998,202L1998,202L1963,243C1956,235,1946,228,1935,222C1923,217,1909,214,1893,214L1893,214C1865,214,1852,223,1852,239L1852,239C1852,247,1854,252,1860,254C1865,257,1873,259,1882,261L1882,261L1922,267C1933,269,1943,271,1953,274C1962,278,1971,282,1978,288C1985,294,1991,301,1995,309C1999,318,2001,328,2001,339L2001,339C2001,365,1991,386,1971,401C1951,416,1923,423,1886,423Z"/><path d="M2079,420L2079,420C2069,420,2061,418,2057,414C2053,409,2051,404,2051,397L2051,397L2051,391C2051,384,2053,379,2057,374C2061,370,2069,368,2079,368L2079,368C2089,368,2096,370,2100,374C2105,379,2107,384,2107,391L2107,391L2107,397C2107,404,2105,409,2100,414C2096,418,2089,420,2079,420Z"/><path d="M2330,417L2330,377L2328,377C2312,408,2287,423,2252,423L2252,423C2222,423,2198,412,2181,389C2164,366,2155,334,2155,293L2155,293C2155,252,2164,221,2181,198C2198,175,2222,164,2252,164L2252,164C2287,164,2312,179,2328,210L2328,210L2330,210L2330,62L2369,62L2369,417L2330,417ZM2267,389L2267,389C2275,389,2284,388,2291,386C2299,383,2306,380,2311,376C2317,371,2322,366,2325,360C2329,354,2330,346,2330,338L2330,338L2330,249C2330,240,2329,233,2325,227C2322,221,2317,215,2311,211C2306,207,2299,203,2291,201C2284,199,2275,198,2267,198L2267,198C2244,198,2227,205,2215,218C2202,232,2196,250,2196,272L2196,272L2196,314C2196,337,2202,355,2215,368C2227,382,2244,389,2267,389ZM2551,423L2551,423C2533,423,2517,420,2502,414C2488,408,2476,399,2466,388C2456,376,2448,363,2443,347C2437,331,2434,313,2434,294L2434,294C2434,274,2437,256,2443,240C2448,224,2456,210,2466,199C2476,188,2488,179,2502,173C2516,167,2531,164,2548,164L2548,164C2565,164,2580,167,2593,173C2607,179,2619,187,2628,198C2638,209,2645,222,2650,236C2655,251,2658,267,2658,285L2658,285L2658,303L2475,303L2475,314C2475,325,2476,335,2480,345C2483,354,2489,362,2495,369C2502,375,2510,381,2519,384C2529,388,2539,390,2551,390L2551,390C2567,390,2582,386,2594,378C2606,371,2615,360,2622,347L2622,347L2650,366C2643,382,2630,396,2613,407C2596,418,2575,423,2551,423ZM2548,195L2548,195C2538,195,2528,197,2519,201C2510,205,2502,210,2496,217C2489,224,2484,232,2480,241C2477,250,2475,260,2475,271L2475,271L2475,274L2617,274L2617,269C2617,258,2615,248,2612,239C2608,230,2604,222,2598,216C2592,209,2585,204,2576,201C2568,197,2558,195,2548,195ZM2847,417L2798,417L2709,170L2748,170L2783,273L2822,385L2824,385L2862,273L2898,170L2935,170L2847,417Z"/></svg>';
26663
- BOXES_LOGO_DARK_BG_SVG = '<svg class="logo-dark-bg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2940 480" role="img" aria-label="boxes.dev" fill="currentColor"><path fill-rule="evenodd" d="M56 56H424V424H56ZM88 88V392H392V88Z"/><path d="M480 424H448V56ZM56 480V448H424ZM0 56H32V424ZM424 0V32H56Z"/><path d="M685,410L685,55L747,55L747,206L750,206C757,191,766,179,778,170C789,161,805,156,824,156L824,156C838,156,851,159,862,164C874,169,884,177,892,188C901,199,907,212,912,229C916,245,918,264,918,286L918,286C918,308,916,327,912,343C907,359,901,373,892,384C884,394,874,402,862,408C851,413,838,415,824,415L824,415C805,415,789,411,778,402C766,393,757,381,750,366L750,366L747,366L747,410L685,410ZM798,367L798,367C816,367,830,361,839,350C849,339,854,324,854,306L854,306L854,266C854,247,849,232,839,222C830,211,816,205,798,205L798,205C784,205,772,209,762,216C752,222,747,233,747,247L747,247L747,325C747,339,752,349,762,356C772,363,784,367,798,367ZM1072,415L1072,415C1053,415,1036,412,1021,406C1006,400,994,392,983,380C973,369,965,356,959,340C954,324,951,306,951,286L951,286C951,266,954,248,959,232C965,216,973,203,983,191C994,180,1006,171,1021,165C1036,159,1053,156,1072,156L1072,156C1091,156,1107,159,1122,165C1137,171,1150,180,1161,191C1171,203,1179,216,1185,232C1190,248,1193,266,1193,286L1193,286C1193,306,1190,324,1185,340C1179,356,1171,369,1161,380C1150,392,1137,400,1122,406C1107,412,1091,415,1072,415ZM1072,368L1072,368C1090,368,1104,363,1114,352C1124,342,1129,326,1129,305L1129,305L1129,267C1129,246,1124,230,1114,219C1104,209,1090,203,1072,203L1072,203C1054,203,1040,209,1030,219C1020,230,1015,246,1015,267L1015,267L1015,305C1015,326,1020,342,1030,352C1040,363,1054,368,1072,368ZM1286,410L1220,410L1313,284L1226,162L1296,162L1326,206L1349,240L1352,240L1375,206L1405,162L1470,162L1383,281L1476,410L1405,410L1371,360L1347,325L1344,325L1320,360L1286,410ZM1630,415L1630,415C1610,415,1592,412,1577,406C1562,400,1549,392,1538,380C1528,369,1520,356,1515,340C1509,324,1506,306,1506,286L1506,286C1506,266,1509,248,1515,232C1520,216,1528,203,1539,191C1549,180,1561,171,1576,165C1590,159,1607,156,1625,156L1625,156C1643,156,1659,159,1673,165C1688,171,1700,179,1710,190C1720,201,1728,214,1733,230C1739,245,1742,262,1742,281L1742,281L1742,301L1568,301L1568,307C1568,325,1573,339,1585,350C1596,361,1612,367,1632,367L1632,367C1647,367,1660,364,1671,358C1682,351,1692,343,1699,333L1699,333L1734,368C1725,381,1712,392,1695,402C1678,411,1656,415,1630,415ZM1625,201L1625,201C1608,201,1594,207,1584,218C1573,229,1568,243,1568,261L1568,261L1568,264L1680,264L1680,260C1680,242,1675,228,1666,217C1656,207,1642,201,1625,201ZM1899,415L1899,415C1872,415,1848,411,1828,403C1809,394,1793,383,1782,368L1782,368L1818,336C1828,347,1840,356,1853,362C1866,368,1882,371,1900,371L1900,371C1915,371,1927,368,1936,363C1946,358,1950,350,1950,340L1950,340C1950,331,1947,325,1941,321C1935,318,1927,316,1916,314L1916,314L1876,308C1866,306,1856,304,1846,301C1837,298,1828,294,1821,288C1813,283,1807,276,1803,267C1798,259,1796,249,1796,236L1796,236C1796,211,1806,191,1825,177C1844,163,1871,156,1905,156L1905,156C1929,156,1949,160,1966,166C1983,173,1997,183,2008,195L2008,195L1975,230C1968,223,1959,216,1947,210C1936,204,1921,201,1903,201L1903,201C1872,201,1856,211,1856,230L1856,230C1856,239,1859,245,1865,249C1872,252,1880,255,1890,256L1890,256L1930,262C1940,264,1950,266,1960,269C1970,272,1979,277,1986,282C1994,287,2000,294,2004,303C2009,311,2011,321,2011,333L2011,333C2011,359,2001,379,1981,394C1962,408,1934,415,1899,415Z"/><path d="M2094,412L2094,412C2086,412,2081,411,2078,408C2075,405,2073,401,2073,396L2073,396L2073,391C2073,386,2075,382,2078,379C2081,376,2086,374,2094,374L2094,374C2101,374,2106,376,2109,379C2113,382,2114,386,2114,391L2114,391L2114,396C2114,401,2113,405,2109,408C2106,411,2101,412,2094,412Z"/><path d="M2356,410L2356,372L2354,372C2348,383,2339,393,2326,402C2313,411,2297,415,2277,415L2277,415C2245,415,2221,405,2203,383C2186,361,2177,329,2177,286L2177,286C2177,243,2186,211,2203,189C2221,167,2245,156,2277,156L2277,156C2297,156,2313,161,2326,169C2339,178,2348,188,2354,200L2354,200L2356,200L2356,55L2372,55L2372,410L2356,410ZM2281,401L2281,401C2291,401,2300,399,2309,396C2318,393,2326,389,2333,384C2340,378,2345,372,2349,364C2353,356,2356,348,2356,339L2356,339L2356,233C2356,224,2353,215,2349,208C2345,200,2340,193,2333,188C2326,183,2318,178,2309,175C2300,173,2291,171,2281,171L2281,171C2253,171,2232,180,2217,198C2203,216,2195,241,2195,272L2195,272L2195,300C2195,331,2203,355,2217,373C2232,392,2253,401,2281,401ZM2564,415L2564,415C2531,415,2505,404,2486,382C2468,360,2458,328,2458,286L2458,286C2458,244,2468,211,2486,189C2505,167,2530,156,2562,156L2562,156C2579,156,2593,159,2606,165C2619,171,2630,179,2638,190C2647,201,2653,214,2658,230C2662,245,2665,262,2665,281L2665,281L2665,287L2477,287L2477,300C2477,331,2484,355,2499,373C2515,392,2536,401,2564,401L2564,401C2584,401,2601,396,2615,387C2629,377,2639,363,2646,345L2646,345L2660,352C2653,371,2641,387,2625,398C2608,410,2588,415,2564,415ZM2562,171L2562,171C2535,171,2514,180,2499,198C2484,216,2477,241,2477,272L2477,272L2477,274L2647,274L2647,271C2647,240,2640,216,2625,198C2610,180,2589,171,2562,171ZM2848,410L2826,410L2734,162L2752,162L2837,393L2838,393L2923,162L2940,162L2848,410Z"/></svg>';
26664
- }
26665
- });
26666
-
26667
- // ../../../../shared/devboxCore/dist/oauthCallbackPage.js
26668
- var escapeHtml, renderOAuthCallbackPage;
26669
- var init_oauthCallbackPage = __esm({
26670
- "../../../../shared/devboxCore/dist/oauthCallbackPage.js"() {
26671
- "use strict";
26672
- init_boxesLogoSvg();
26673
- escapeHtml = (value) => value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
26674
- renderOAuthCallbackPage = ({ heading, message }) => `<!doctype html>
26675
- <html lang="en">
26676
- <head>
26677
- <meta charset="utf-8">
26678
- <meta name="viewport" content="width=device-width, initial-scale=1">
26679
- <meta name="referrer" content="no-referrer">
26680
- <title>${escapeHtml(heading)} \xB7 boxes.dev</title>
26681
- <style>
26682
- :root { color-scheme: light dark; --background: #fafafa; --foreground: #0a0a0a; --muted: rgba(0, 0, 0, 0.62); }
26683
- svg { display: block; height: 28px; width: auto; margin: 0 auto 40px; }
26684
- .logo-dark-bg { display: none; }
26685
- @media (prefers-color-scheme: dark) {
26686
- :root { --background: #0a0a0a; --foreground: #fafafa; --muted: rgba(255, 255, 255, 0.62); }
26687
- .logo-light-bg { display: none; }
26688
- .logo-dark-bg { display: block; }
26689
- }
26690
- body { box-sizing: border-box; display: grid; min-height: 100vh; margin: 0; padding: 24px; place-items: center; background: var(--background); color: var(--foreground); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
26691
- main { max-width: 28rem; text-align: center; }
26692
- h1 { margin: 0 0 16px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
26693
- p { margin: 0; color: var(--muted); font-size: 14px; line-height: 24px; }
26694
- @media (min-width: 640px) { h1 { font-size: 30px; } }
26695
- </style>
26696
- </head>
26697
- <body>
26698
- <main>
26699
- ${BOXES_LOGO_LIGHT_BG_SVG}${BOXES_LOGO_DARK_BG_SVG}
26700
- <h1>${escapeHtml(heading)}</h1>
26701
- <p>${escapeHtml(message)}</p>
26702
- </main>
26703
- </body>
26704
- </html>
26705
- `;
26706
- }
26707
- });
26708
-
26709
26713
  // ../../../../shared/devboxCore/dist/chatGptBrowserSignIn.js
26710
26714
  import { createHash as createHash2, randomBytes as randomBytes2, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
26711
26715
  import http2 from "node:http";
@@ -69726,9 +69730,9 @@ var init_sentry = __esm({
69726
69730
  uncaughtExceptionMonitorInstalled = false;
69727
69731
  currentDevboxSentryUser = null;
69728
69732
  readBuildMetadata = () => {
69729
- const rawPackageVersion = "1.0.1071";
69730
- const rawGitSha = "9d44328d80bffd7ce2dfde1820030f1aaa3862bb";
69731
- const rawSentryRelease = "boxes-dev-dvb@1.0.1071+9d44328d80bffd7ce2dfde1820030f1aaa3862bb";
69733
+ const rawPackageVersion = "1.0.1072";
69734
+ const rawGitSha = "38cca56e185da1e977f029154045c5ef6ebcef5a";
69735
+ const rawSentryRelease = "boxes-dev-dvb@1.0.1072+38cca56e185da1e977f029154045c5ef6ebcef5a";
69732
69736
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
69733
69737
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
69734
69738
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -75112,7 +75116,7 @@ var init_packageVersion = __esm({
75112
75116
  return path18.join(process.cwd(), "dvb");
75113
75117
  };
75114
75118
  readEmbeddedPackageVersion = () => {
75115
- const raw = "1.0.1071";
75119
+ const raw = "1.0.1072";
75116
75120
  return trimVersion(raw);
75117
75121
  };
75118
75122
  readNearestPackageMetadata = (basePath) => {
@@ -90154,7 +90158,7 @@ var init_index_node2 = __esm({
90154
90158
  // src/devbox/controlPlane.ts
90155
90159
  import http7 from "node:http";
90156
90160
  import { randomUUID as randomUUID5 } from "node:crypto";
90157
- var MANAGED_DAEMON_NOT_READY_CODE, CONVEX_INFLIGHT_ACTION_DISCONNECTED_MESSAGE, CONTROL_PLANE_ACTION_RETRY_MAX_ATTEMPTS, CONTROL_PLANE_ACTION_RETRY_BASE_DELAY_MS, MANAGED_DAEMON_RECOVERY_WAKING_TIMEOUT_MS, CONTROL_PLANE_CHECKPOINT_RECOVERY_MAX_ATTEMPTS, CONTROL_PLANE_CHECKPOINT_RECOVERY_POLL_MS, ManagedDaemonNotReadyError, isManagedDaemonNotReadyError, isManagedDaemonSleepingError, sleep2, isRetryableTransientConvexActionError, buildTransientConvexActionRetryMessage, announceTransientConvexActionRetry, retryTransientConvexAction, normalizeStringRecord, E2B_DEVBOX_ALIAS_EXISTS_CODE, isRecord3, maybeMapE2bProvisionControlPlaneError, mapE2bProvisionControlPlaneError, LOGIN_CODE_REJECTIONS, resolveControlPlaneUrl, resolveConvexUrl, escapeHtml2, CALLBACK_LOGO_MARK, CALLBACK_FULL_LOGO, renderCallbackPage, CONTROL_PLANE_REQUEST_UNAVAILABLE_CODE, ControlPlaneRequestUnavailableError, isControlPlaneRequestUnavailableError, requestJson, ControlPlaneRequestError, isControlPlaneAuthRejectionError, isControlPlaneSessionRefreshRejectionError, startCallbackServer, getControlPlaneUrl, getConvexUrl, createDefaultBrowserSignInDeps, signInWithBrowser, claudeTokenGet, claudeTokenSet, claudeLoginSave, claudeTokenClear, agentAuthCredentialsList, fetchAgentCredentialRows, codexAuthCacheGet, codexAuthCacheSet, codexAuthCacheClear, claudeTokenReportRuntimeAuthFailureForViewer, claudeTokenReportRuntimeValidatedForViewer, e2bTokenResolvedGet, userSettingsGet, userSettingsSet, projectInstanceTypeOptionsGet, e2bDevboxRemove, e2bDevboxGet, e2bDevboxStatusesList, e2bDevboxDestroy, e2bDevboxProvision, e2bDevboxPause, e2bDevboxEnsureActive, e2bDevboxKeepAlive, e2bDevboxReset, e2bDevboxIssueBootstrapConnectInfo, e2bDevboxBootstrapDaemon, managedDevboxIssueDaemonConnectInfo, managedDaemonRecoverForInstance, managedDaemonControlGrantIssueForViewer, managedDevboxCreateCheckpoint, managedDevboxListRemoteStates, clientThreadsListForPrimaryInstance, threadTitleGenerationStatesListForPrimaryInstance, spriteDaemonSessionsList, clientThreadsUpsertRemoteInitCodexThread, clientThreadsDiscardRemoteInitCodexThread, projectInitJobsGetActiveForProject, agentInitProgressReportCliStep, instancesList, helloViewerGet, billingSummaryGet, convexBrowserModulePromise, loadConvexBrowserModule, buildConvexClientOptions, configureAuthenticatedConvexClient, createAuthenticatedConvexClient, withConvexClient, resolveInstanceIdForAlias, resolveManagedDaemonControlTargetWithClient, issueManagedDaemonControlGrantWithClient, resolveSpriteInstanceId, fetchClaudeTokenStatus, fetchResolvedE2bCredentials, VIEWER_LOOKUP_TIMEOUT_MS, fetchViewerIdentity, BILLING_ACTIVATION_STATES, readBillingActivationBoolean, parseBillingActivationDecision, parseBillingActivationSummary, fetchTeamBillingActivationForViewer, fetchActiveDesktopInitJobForProject, AGENT_INIT_STEP_REPORT_TIMEOUT_MS, reportAgentInitStep, fetchViewerCodingAgentPreference, fetchProjectInstanceTypeOptionsForViewer, storeViewerCodingAgentPreference, storeClaudeCodeOauthToken, storeClaudeLogin, clearClaudeCodeOauthToken, reportClaudeRuntimeAuthFailureForViewer, reportClaudeRuntimeValidatedForViewer, fetchCodexAuthCacheStatus, storeCodexAuthCache, clearCodexAuthCache, normalizeE2bDevboxRecord, fetchE2bDevboxLifecycle, listE2bDevboxStatuses, destroyE2bDevbox, provisionE2bDevbox, pauseE2bDevbox, ensureE2bDevboxActive, keepAliveE2bDevbox, resetE2bDevbox, bootstrapE2bDaemon, throwManagedDaemonNotReady, normalizeOptionalString2, normalizeAliasForLookup, validateManagedDaemonRecoveryResponse, normalizeManagedCheckpointResponse, buildRecoveredManagedCheckpointResponse, readManagedCheckpointRecoveryState, recoverManagedCheckpointAfterDisconnect, buildManagedDaemonConnectInfoResponseSummary, buildManagedDaemonConnectInfoUnexpectedMessage, buildManagedDaemonConnectInfoSleepingMessage, buildManagedDaemonConnectInfoWakingMessage, readWakingRetryAfterMs, logManagedDaemonConnectInfoResponse, fetchManagedDaemonConnectInfoWithAction, requestManagedDaemonConnectInfo, fetchManagedDaemonConnectInfo, recoverManagedDaemonForInit, recoverManagedDaemonControlTargetWithClient, fetchE2bBootstrapConnectInfo, createManagedCheckpoint, listManagedRemoteStates, listViewerInstances, listSpriteDaemonSessions, upsertRemoteInitCodexThread, discardRemoteInitCodexThread, signOutControlPlane, REFRESH_SESSION_TIMEOUT_MS, refreshControlPlaneSession, readLoginCodeRejection, exchangeLoginCode, createCliInitResponsesRelayTokenForViewer;
90161
+ var MANAGED_DAEMON_NOT_READY_CODE, CONVEX_INFLIGHT_ACTION_DISCONNECTED_MESSAGE, CONTROL_PLANE_ACTION_RETRY_MAX_ATTEMPTS, CONTROL_PLANE_ACTION_RETRY_BASE_DELAY_MS, MANAGED_DAEMON_RECOVERY_WAKING_TIMEOUT_MS, CONTROL_PLANE_CHECKPOINT_RECOVERY_MAX_ATTEMPTS, CONTROL_PLANE_CHECKPOINT_RECOVERY_POLL_MS, ManagedDaemonNotReadyError, isManagedDaemonNotReadyError, isManagedDaemonSleepingError, sleep2, isRetryableTransientConvexActionError, buildTransientConvexActionRetryMessage, announceTransientConvexActionRetry, retryTransientConvexAction, normalizeStringRecord, E2B_DEVBOX_ALIAS_EXISTS_CODE, isRecord3, maybeMapE2bProvisionControlPlaneError, mapE2bProvisionControlPlaneError, LOGIN_CODE_REJECTIONS, resolveControlPlaneUrl, resolveConvexUrl, CONTROL_PLANE_REQUEST_UNAVAILABLE_CODE, ControlPlaneRequestUnavailableError, isControlPlaneRequestUnavailableError, requestJson, ControlPlaneRequestError, isControlPlaneAuthRejectionError, isControlPlaneSessionRefreshRejectionError, startCallbackServer, getControlPlaneUrl, getConvexUrl, createDefaultBrowserSignInDeps, signInWithBrowser, claudeTokenGet, claudeTokenSet, claudeLoginSave, claudeTokenClear, agentAuthCredentialsList, fetchAgentCredentialRows, codexAuthCacheGet, codexAuthCacheSet, codexAuthCacheClear, claudeTokenReportRuntimeAuthFailureForViewer, claudeTokenReportRuntimeValidatedForViewer, e2bTokenResolvedGet, userSettingsGet, userSettingsSet, projectInstanceTypeOptionsGet, e2bDevboxRemove, e2bDevboxGet, e2bDevboxStatusesList, e2bDevboxDestroy, e2bDevboxProvision, e2bDevboxPause, e2bDevboxEnsureActive, e2bDevboxKeepAlive, e2bDevboxReset, e2bDevboxIssueBootstrapConnectInfo, e2bDevboxBootstrapDaemon, managedDevboxIssueDaemonConnectInfo, managedDaemonRecoverForInstance, managedDaemonControlGrantIssueForViewer, managedDevboxCreateCheckpoint, managedDevboxListRemoteStates, clientThreadsListForPrimaryInstance, threadTitleGenerationStatesListForPrimaryInstance, spriteDaemonSessionsList, clientThreadsUpsertRemoteInitCodexThread, clientThreadsDiscardRemoteInitCodexThread, projectInitJobsGetActiveForProject, agentInitProgressReportCliStep, instancesList, helloViewerGet, billingSummaryGet, convexBrowserModulePromise, loadConvexBrowserModule, buildConvexClientOptions, configureAuthenticatedConvexClient, createAuthenticatedConvexClient, withConvexClient, resolveInstanceIdForAlias, resolveManagedDaemonControlTargetWithClient, issueManagedDaemonControlGrantWithClient, resolveSpriteInstanceId, fetchClaudeTokenStatus, fetchResolvedE2bCredentials, VIEWER_LOOKUP_TIMEOUT_MS, fetchViewerIdentity, BILLING_ACTIVATION_STATES, readBillingActivationBoolean, parseBillingActivationDecision, parseBillingActivationSummary, fetchTeamBillingActivationForViewer, fetchActiveDesktopInitJobForProject, AGENT_INIT_STEP_REPORT_TIMEOUT_MS, reportAgentInitStep, fetchViewerCodingAgentPreference, fetchProjectInstanceTypeOptionsForViewer, storeViewerCodingAgentPreference, storeClaudeCodeOauthToken, storeClaudeLogin, clearClaudeCodeOauthToken, reportClaudeRuntimeAuthFailureForViewer, reportClaudeRuntimeValidatedForViewer, fetchCodexAuthCacheStatus, storeCodexAuthCache, clearCodexAuthCache, normalizeE2bDevboxRecord, fetchE2bDevboxLifecycle, listE2bDevboxStatuses, destroyE2bDevbox, provisionE2bDevbox, pauseE2bDevbox, ensureE2bDevboxActive, keepAliveE2bDevbox, resetE2bDevbox, bootstrapE2bDaemon, throwManagedDaemonNotReady, normalizeOptionalString2, normalizeAliasForLookup, validateManagedDaemonRecoveryResponse, normalizeManagedCheckpointResponse, buildRecoveredManagedCheckpointResponse, readManagedCheckpointRecoveryState, recoverManagedCheckpointAfterDisconnect, buildManagedDaemonConnectInfoResponseSummary, buildManagedDaemonConnectInfoUnexpectedMessage, buildManagedDaemonConnectInfoSleepingMessage, buildManagedDaemonConnectInfoWakingMessage, readWakingRetryAfterMs, logManagedDaemonConnectInfoResponse, fetchManagedDaemonConnectInfoWithAction, requestManagedDaemonConnectInfo, fetchManagedDaemonConnectInfo, recoverManagedDaemonForInit, recoverManagedDaemonControlTargetWithClient, fetchE2bBootstrapConnectInfo, createManagedCheckpoint, listManagedRemoteStates, listViewerInstances, listSpriteDaemonSessions, upsertRemoteInitCodexThread, discardRemoteInitCodexThread, signOutControlPlane, REFRESH_SESSION_TIMEOUT_MS, refreshControlPlaneSession, readLoginCodeRejection, exchangeLoginCode, createCliInitResponsesRelayTokenForViewer;
90158
90162
  var init_controlPlane = __esm({
90159
90163
  "src/devbox/controlPlane.ts"() {
90160
90164
  "use strict";
@@ -90336,134 +90340,6 @@ var init_controlPlane = __esm({
90336
90340
  const trimmed = "https://convex.boxes.dev".trim();
90337
90341
  return trimmed.length > 0 ? trimmed : null;
90338
90342
  };
90339
- escapeHtml2 = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
90340
- CALLBACK_LOGO_MARK = `<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false">
90341
- <rect x="1.5" y="1.5" width="45" height="45" rx="8" fill="#111" />
90342
- <rect x="9" y="9" width="30" height="30" fill="none" stroke="#fff" stroke-width="6" />
90343
- <rect x="42" y="9" width="3" height="30" fill="#fff" />
90344
- <rect x="9" y="42" width="30" height="3" fill="#fff" />
90345
- <rect x="3" y="9" width="3" height="30" fill="#fff" />
90346
- <rect x="9" y="3" width="30" height="3" fill="#fff" />
90347
- </svg>`;
90348
- CALLBACK_FULL_LOGO = `<svg width="3107.72" xmlns="http://www.w3.org/2000/svg" height="480" id="screenshot-21b80e9b-4173-809c-8007-b1a09e67f998" viewBox="-168 0 3107.72 480" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1"><g id="shape-21b80e9b-4173-809c-8007-b1a09e67f998" rx="0" ry="0"><g id="shape-2bc11706-71c4-8067-8007-89f57e8f9bba" rx="0" ry="0"><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3cb" rx="0" ry="0"><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3cc" rx="0" ry="0"><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d0"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d0"><rect rx="0" ry="0" x="56" y="56" transform="matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)" width="368" height="368"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a1831534d2-691a92d0-935c-80e0-8007-89f2879cb3d0" class="strokes"><g class="inner-stroke-shape" transform="matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)"><defs><clipPath id="inner-stroke-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0"><use href="#stroke-shape-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0"/></clipPath><rect rx="0" ry="0" x="56" y="56" width="368" height="368" id="stroke-shape-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0" style="fill: none; stroke-width: 64; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0" clip-path="url('#inner-stroke-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d1"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d1"><path d="M480,424L448,424L448,56L480,424" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a183157516-691a92d0-935c-80e0-8007-89f2879cb3d1" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0"><use href="#stroke-shape-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0"/></clipPath><path d="M480,424L448,424L448,56L480,424" id="stroke-shape-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0" clip-path="url('#inner-stroke-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d2"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d2"><path d="M56,480L56,448L424,448L56,480" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a18316c662-691a92d0-935c-80e0-8007-89f2879cb3d2" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0"><use href="#stroke-shape-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0"/></clipPath><path d="M56,480L56,448L424,448L56,480" id="stroke-shape-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0" clip-path="url('#inner-stroke-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d3"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d3"><path d="M0,56L32,56L32,424L0,56" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a18317700d-691a92d0-935c-80e0-8007-89f2879cb3d3" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0"><use href="#stroke-shape-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0"/></clipPath><path d="M0,56L32,56L32,424L0,56" id="stroke-shape-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0" clip-path="url('#inner-stroke-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d4"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d4"><path d="M424,0L424,32L56,32L424,0" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a183180963-691a92d0-935c-80e0-8007-89f2879cb3d4" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0"><use href="#stroke-shape-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0"/></clipPath><path d="M424,0L424,32L56,32L424,0" id="stroke-shape-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0" clip-path="url('#inner-stroke-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0')"/></g></g></g></g></g><g id="shape-2bc11706-71c4-8067-8007-89f2ebcaa5b6"><g class="fills" id="fills-2bc11706-71c4-8067-8007-89f2ebcaa5b6"><path d="M685.1201171875,409.72021484375L685.1201171875,54.52001953125L746.5595703125,54.52001953125L746.5595703125,205.72021484375L749.919921875,205.72021484375C756.6396484375,190.68017578125,765.83984375,178.68017578125,777.51953125,169.72021484375C789.2001953125,160.759765625,804.6396484375,156.27978515625,823.83984375,156.27978515625L823.83984375,156.27978515625C837.919921875,156.27978515625,850.7998046875,158.919921875,862.48046875,164.2001953125C874.16015625,169.47998046875,884.16015625,177.47998046875,892.48046875,188.2001953125C900.7998046875,198.919921875,907.2001953125,212.43994140625,911.6796875,228.759765625C916.16015625,245.080078125,918.400390625,264.1201171875,918.400390625,285.8798828125L918.400390625,285.8798828125C918.400390625,307.64013671875,916.16015625,326.68017578125,911.6796875,343C907.2001953125,359.31982421875,900.7998046875,372.83984375,892.48046875,383.56005859375C884.16015625,394.27978515625,874.16015625,402.27978515625,862.48046875,407.56005859375C850.7998046875,412.83984375,837.919921875,415.47998046875,823.83984375,415.47998046875L823.83984375,415.47998046875C804.6396484375,415.47998046875,789.2001953125,411,777.51953125,402.0400390625C765.83984375,393.080078125,756.6396484375,381.080078125,749.919921875,366.0400390625L749.919921875,366.0400390625L746.5595703125,366.0400390625L746.5595703125,409.72021484375L685.1201171875,409.72021484375ZM797.919921875,366.52001953125L797.919921875,366.52001953125C815.83984375,366.52001953125,829.6796875,361.080078125,839.4404296875,350.2001953125C849.2001953125,339.31982421875,854.080078125,324.43994140625,854.080078125,305.56005859375L854.080078125,305.56005859375L854.080078125,266.2001953125C854.080078125,247.31982421875,849.2001953125,232.43994140625,839.4404296875,221.56005859375C829.6796875,210.68017578125,815.83984375,205.240234375,797.919921875,205.240234375L797.919921875,205.240234375C783.83984375,205.240234375,771.759765625,208.68017578125,761.6796875,215.56005859375C751.599609375,222.43994140625,746.5595703125,232.919921875,746.5595703125,247L746.5595703125,247L746.5595703125,324.76025390625C746.5595703125,338.83984375,751.599609375,349.31982421875,761.6796875,356.2001953125C771.759765625,363.080078125,783.83984375,366.52001953125,797.919921875,366.52001953125ZM1072,415.47998046875L1072,415.47998046875C1053.1201171875,415.47998046875,1036.240234375,412.43994140625,1021.3603515625,406.35986328125C1006.48046875,400.27978515625,993.83984375,391.64013671875,983.4404296875,380.43994140625C973.0400390625,369.240234375,965.0400390625,355.64013671875,959.4404296875,339.64013671875C953.83984375,323.64013671875,951.0400390625,305.72021484375,951.0400390625,285.8798828125L951.0400390625,285.8798828125C951.0400390625,266.0400390625,953.83984375,248.1201171875,959.4404296875,232.1201171875C965.0400390625,216.1201171875,973.0400390625,202.52001953125,983.4404296875,191.31982421875C993.83984375,180.1201171875,1006.48046875,171.47998046875,1021.3603515625,165.39990234375C1036.240234375,159.31982421875,1053.1201171875,156.27978515625,1072,156.27978515625L1072,156.27978515625C1090.5595703125,156.27978515625,1107.3603515625,159.31982421875,1122.400390625,165.39990234375C1137.4404296875,171.47998046875,1150.16015625,180.1201171875,1160.5595703125,191.31982421875C1170.9599609375,202.52001953125,1178.9599609375,216.1201171875,1184.5595703125,232.1201171875C1190.16015625,248.1201171875,1192.9599609375,266.0400390625,1192.9599609375,285.8798828125L1192.9599609375,285.8798828125C1192.9599609375,305.72021484375,1190.16015625,323.64013671875,1184.5595703125,339.64013671875C1178.9599609375,355.64013671875,1170.9599609375,369.240234375,1160.5595703125,380.43994140625C1150.16015625,391.64013671875,1137.4404296875,400.27978515625,1122.400390625,406.35986328125C1107.3603515625,412.43994140625,1090.5595703125,415.47998046875,1072,415.47998046875ZM1072,368.43994140625L1072,368.43994140625C1089.599609375,368.43994140625,1103.51953125,363.080078125,1113.759765625,352.35986328125C1124,341.64013671875,1129.1201171875,325.8798828125,1129.1201171875,305.080078125L1129.1201171875,305.080078125L1129.1201171875,266.68017578125C1129.1201171875,245.8798828125,1124,230.1201171875,1113.759765625,219.39990234375C1103.51953125,208.68017578125,1089.599609375,203.31982421875,1072,203.31982421875L1072,203.31982421875C1054.400390625,203.31982421875,1040.48046875,208.68017578125,1030.240234375,219.39990234375C1020,230.1201171875,1014.8798828125,245.8798828125,1014.8798828125,266.68017578125L1014.8798828125,266.68017578125L1014.8798828125,305.080078125C1014.8798828125,325.8798828125,1020,341.64013671875,1030.240234375,352.35986328125C1040.48046875,363.080078125,1054.400390625,368.43994140625,1072,368.43994140625ZM1286.080078125,409.72021484375L1220.3203125,409.72021484375L1312.9599609375,283.9599609375L1225.599609375,162.0400390625L1296.16015625,162.0400390625L1325.919921875,205.72021484375L1348.9599609375,240.27978515625L1352.3203125,240.27978515625L1375.3603515625,205.72021484375L1405.1201171875,162.0400390625L1470.400390625,162.0400390625L1383.0400390625,281.080078125L1475.6796875,409.72021484375L1404.6396484375,409.72021484375L1370.5595703125,359.7998046875L1347.0400390625,324.76025390625L1343.6796875,324.76025390625L1320.16015625,359.7998046875L1286.080078125,409.72021484375ZM1629.759765625,415.47998046875L1629.759765625,415.47998046875C1609.919921875,415.47998046875,1592.3203125,412.43994140625,1576.9599609375,406.35986328125C1561.599609375,400.27978515625,1548.7197265625,391.64013671875,1538.3203125,380.43994140625C1527.919921875,369.240234375,1520,355.72021484375,1514.5595703125,339.8798828125C1509.1201171875,324.0400390625,1506.400390625,306.2001953125,1506.400390625,286.35986328125L1506.400390625,286.35986328125C1506.400390625,266.2001953125,1509.2001953125,248.1201171875,1514.7998046875,232.1201171875C1520.400390625,216.1201171875,1528.3203125,202.52001953125,1538.5595703125,191.31982421875C1548.7998046875,180.1201171875,1561.2001953125,171.47998046875,1575.759765625,165.39990234375C1590.3203125,159.31982421875,1606.7197265625,156.27978515625,1624.9599609375,156.27978515625L1624.9599609375,156.27978515625C1642.8798828125,156.27978515625,1659.0400390625,159.240234375,1673.4404296875,165.16015625C1687.83984375,171.080078125,1700.080078125,179.47998046875,1710.16015625,190.35986328125C1720.240234375,201.240234375,1728,214.35986328125,1733.439453125,229.72021484375C1738.8798828125,245.080078125,1741.599609375,262.0400390625,1741.599609375,280.60009765625L1741.599609375,280.60009765625L1741.599609375,300.76025390625L1567.83984375,300.76025390625L1567.83984375,307C1567.83984375,324.919921875,1573.4404296875,339.39990234375,1584.6396484375,350.43994140625C1595.83984375,361.47998046875,1611.51953125,367,1631.6796875,367L1631.6796875,367C1647.0400390625,367,1660.240234375,363.8798828125,1671.2802734375,357.64013671875C1682.3203125,351.39990234375,1691.51953125,343.16015625,1698.8798828125,332.919921875L1698.8798828125,332.919921875L1733.919921875,367.9599609375C1724.9599609375,381.080078125,1711.919921875,392.27978515625,1694.7998046875,401.56005859375C1677.6796875,410.83984375,1656,415.47998046875,1629.759765625,415.47998046875ZM1625.4404296875,201.39990234375L1625.4404296875,201.39990234375C1608.16015625,201.39990234375,1594.240234375,206.83984375,1583.6796875,217.72021484375C1573.1201171875,228.60009765625,1567.83984375,243,1567.83984375,260.919921875L1567.83984375,260.919921875L1567.83984375,264.27978515625L1680.16015625,264.27978515625L1680.16015625,259.9599609375C1680.16015625,242.0400390625,1675.2802734375,227.7998046875,1665.51953125,217.240234375C1655.759765625,206.68017578125,1642.400390625,201.39990234375,1625.4404296875,201.39990234375ZM1899.0400390625,415.47998046875L1899.0400390625,415.47998046875C1871.83984375,415.47998046875,1848.3203125,411.240234375,1828.48046875,402.759765625C1808.6396484375,394.27978515625,1793.1201171875,382.83984375,1781.919921875,368.43994140625L1781.919921875,368.43994140625L1817.919921875,335.7998046875C1828.16015625,347,1839.919921875,355.64013671875,1853.2001953125,361.72021484375C1866.48046875,367.7998046875,1881.919921875,370.83984375,1899.51953125,370.83984375L1899.51953125,370.83984375C1914.8798828125,370.83984375,1927.2001953125,368.27978515625,1936.48046875,363.16015625C1945.759765625,358.0400390625,1950.400390625,350.2001953125,1950.400390625,339.64013671875L1950.400390625,339.64013671875C1950.400390625,330.68017578125,1947.2802734375,324.60009765625,1941.0400390625,321.39990234375C1934.7998046875,318.2001953125,1926.560546875,315.7998046875,1916.3203125,314.2001953125L1916.3203125,314.2001953125L1876.48046875,307.9599609375C1866.240234375,306.35986328125,1856.240234375,304.0400390625,1846.48046875,301C1836.7197265625,297.9599609375,1828.080078125,293.72021484375,1820.560546875,288.27978515625C1813.0400390625,282.83984375,1807.0400390625,275.8798828125,1802.560546875,267.39990234375C1798.080078125,258.919921875,1795.83984375,248.60009765625,1795.83984375,236.43994140625L1795.83984375,236.43994140625C1795.83984375,210.52001953125,1805.51953125,190.68017578125,1824.8798828125,176.919921875C1844.240234375,163.16015625,1870.8798828125,156.27978515625,1904.7998046875,156.27978515625L1904.7998046875,156.27978515625C1928.7998046875,156.27978515625,1949.2001953125,159.64013671875,1966,166.35986328125C1982.7998046875,173.080078125,1996.6396484375,182.52001953125,2007.51953125,194.68017578125L2007.51953125,194.68017578125L1975.3603515625,230.2001953125C1968.3203125,222.52001953125,1958.9599609375,215.72021484375,1947.2802734375,209.7998046875C1935.599609375,203.8798828125,1920.7998046875,200.919921875,1902.8798828125,200.919921875L1902.8798828125,200.919921875C1871.51953125,200.919921875,1855.83984375,210.68017578125,1855.83984375,230.2001953125L1855.83984375,230.2001953125C1855.83984375,239.16015625,1859.0400390625,245.31982421875,1865.439453125,248.68017578125C1871.83984375,252.0400390625,1880.16015625,254.52001953125,1890.400390625,256.1201171875L1890.400390625,256.1201171875L1929.759765625,262.35986328125C1940.3203125,263.9599609375,1950.48046875,266.27978515625,1960.240234375,269.31982421875C1970,272.35986328125,1978.6396484375,276.60009765625,1986.16015625,282.0400390625C1993.6796875,287.47998046875,1999.6796875,294.35986328125,2004.16015625,302.68017578125C2008.6396484375,311,2010.8798828125,321.240234375,2010.8798828125,333.39990234375L2010.8798828125,333.39990234375C2010.8798828125,359,2001.0400390625,379.080078125,1981.3603515625,393.64013671875C1961.6796875,408.2001953125,1934.240234375,415.47998046875,1899.0400390625,415.47998046875Z" style="fill: rgb(255, 255, 255);"/></g></g><g id="shape-2bc11706-71c4-8067-8007-89f2f04df7fc"><g class="fills" id="fills-2bc11706-71c4-8067-8007-89f2f04df7fc"><path d="M2355.5595703125,409.72021484375L2355.5595703125,371.7998046875L2354.1201171875,371.7998046875C2348.3603515625,383.31982421875,2339.080078125,393.47998046875,2326.2802734375,402.27978515625C2313.48046875,411.080078125,2297,415.47998046875,2276.83984375,415.47998046875L2276.83984375,415.47998046875C2245.48046875,415.47998046875,2221,404.60009765625,2203.400390625,382.83984375C2185.7998046875,361.080078125,2177,328.76025390625,2177,285.8798828125L2177,285.8798828125C2177,243,2185.7998046875,210.68017578125,2203.400390625,188.919921875C2221,167.16015625,2245.48046875,156.27978515625,2276.83984375,156.27978515625L2276.83984375,156.27978515625C2297,156.27978515625,2313.48046875,160.68017578125,2326.2802734375,169.47998046875C2339.080078125,178.27978515625,2348.3603515625,188.43994140625,2354.1201171875,199.9599609375L2354.1201171875,199.9599609375L2355.5595703125,199.9599609375L2355.5595703125,54.52001953125L2372.3603515625,54.52001953125L2372.3603515625,409.72021484375L2355.5595703125,409.72021484375ZM2280.6796875,400.60009765625L2280.6796875,400.60009765625C2290.599609375,400.60009765625,2300.0400390625,399.16015625,2309,396.27978515625C2317.9599609375,393.39990234375,2325.8798828125,389.240234375,2332.759765625,383.7998046875C2339.6396484375,378.35986328125,2345.16015625,371.7998046875,2349.3203125,364.1201171875C2353.48046875,356.43994140625,2355.5595703125,347.9599609375,2355.5595703125,338.68017578125L2355.5595703125,338.68017578125L2355.5595703125,233.080078125C2355.5595703125,223.7998046875,2353.48046875,215.31982421875,2349.3203125,207.64013671875C2345.16015625,199.9599609375,2339.6396484375,193.39990234375,2332.759765625,187.9599609375C2325.8798828125,182.52001953125,2317.9599609375,178.35986328125,2309,175.47998046875C2300.0400390625,172.60009765625,2290.599609375,171.16015625,2280.6796875,171.16015625L2280.6796875,171.16015625C2253.16015625,171.16015625,2232.0400390625,180.2001953125,2217.3203125,198.27978515625C2202.599609375,216.35986328125,2195.240234375,240.919921875,2195.240234375,271.9599609375L2195.240234375,271.9599609375L2195.240234375,299.7998046875C2195.240234375,330.83984375,2202.599609375,355.39990234375,2217.3203125,373.47998046875C2232.0400390625,391.56005859375,2253.16015625,400.60009765625,2280.6796875,400.60009765625ZM2564.3603515625,415.47998046875L2564.3603515625,415.47998046875C2531.080078125,415.47998046875,2505.080078125,404.43994140625,2486.3603515625,382.35986328125C2467.6396484375,360.27978515625,2458.2802734375,328.1201171875,2458.2802734375,285.8798828125L2458.2802734375,285.8798828125C2458.2802734375,243.64013671875,2467.5595703125,211.47998046875,2486.1201171875,189.39990234375C2504.6796875,167.31982421875,2529.9599609375,156.27978515625,2561.9599609375,156.27978515625L2561.9599609375,156.27978515625C2578.599609375,156.27978515625,2593.3203125,159.240234375,2606.1201171875,165.16015625C2618.919921875,171.080078125,2629.6396484375,179.47998046875,2638.2802734375,190.35986328125C2646.919921875,201.240234375,2653.48046875,214.35986328125,2657.9599609375,229.72021484375C2662.4404296875,245.080078125,2664.6796875,262.0400390625,2664.6796875,280.60009765625L2664.6796875,280.60009765625L2664.6796875,287.31982421875L2476.51953125,287.31982421875L2476.51953125,299.7998046875C2476.51953125,330.83984375,2484.1201171875,355.39990234375,2499.3203125,373.47998046875C2514.51953125,391.56005859375,2536.2001953125,400.60009765625,2564.3603515625,400.60009765625L2564.3603515625,400.60009765625C2584.2001953125,400.60009765625,2601,395.9599609375,2614.759765625,386.68017578125C2628.51953125,377.39990234375,2639.080078125,363.47998046875,2646.4404296875,344.919921875L2646.4404296875,344.919921875L2659.8798828125,352.1201171875C2652.51953125,371.31982421875,2640.759765625,386.68017578125,2624.599609375,398.2001953125C2608.4404296875,409.72021484375,2588.3603515625,415.47998046875,2564.3603515625,415.47998046875ZM2561.9599609375,170.68017578125L2561.9599609375,170.68017578125C2534.759765625,170.68017578125,2513.7197265625,179.7998046875,2498.83984375,198.0400390625C2483.9599609375,216.27978515625,2476.51953125,240.919921875,2476.51953125,271.9599609375L2476.51953125,271.9599609375L2476.51953125,273.8798828125L2646.919921875,273.8798828125L2646.919921875,271.47998046875C2646.919921875,240.43994140625,2639.5595703125,215.8798828125,2624.83984375,197.7998046875C2610.1201171875,179.72021484375,2589.16015625,170.68017578125,2561.9599609375,170.68017578125ZM2847.5595703125,409.72021484375L2826.4404296875,409.72021484375L2734.2802734375,162.0400390625L2751.5595703125,162.0400390625L2836.51953125,393.39990234375L2837.9599609375,393.39990234375L2922.919921875,162.0400390625L2939.7197265625,162.0400390625L2847.5595703125,409.72021484375Z" style="fill: rgb(255, 255, 255);"/></g></g></g><g id="shape-2bc11706-71c4-8067-8007-89f2f32697cf"><g class="fills" id="fills-2bc11706-71c4-8067-8007-89f2f32697cf"><path d="M2093.6396484375,412.400390625L2093.6396484375,412.400390625C2086.279296875,412.400390625,2081,410.88037109375,2077.7998046875,407.84033203125C2074.599609375,404.80029296875,2073,400.72021484375,2073,395.60009765625L2073,395.60009765625L2073,390.80029296875C2073,385.68017578125,2074.599609375,381.60009765625,2077.7998046875,378.56005859375C2081,375.52001953125,2086.279296875,374,2093.6396484375,374L2093.6396484375,374C2101,374,2106.279296875,375.52001953125,2109.4794921875,378.56005859375C2112.6796875,381.60009765625,2114.279296875,385.68017578125,2114.279296875,390.80029296875L2114.279296875,390.80029296875L2114.279296875,395.60009765625C2114.279296875,400.72021484375,2112.6796875,404.80029296875,2109.4794921875,407.84033203125C2106.279296875,410.88037109375,2101,412.400390625,2093.6396484375,412.400390625Z" style="fill: rgb(255, 255, 255);"/></g></g></g></svg>`.trim().length > 0 ? `<svg width="3107.72" xmlns="http://www.w3.org/2000/svg" height="480" id="screenshot-21b80e9b-4173-809c-8007-b1a09e67f998" viewBox="-168 0 3107.72 480" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1"><g id="shape-21b80e9b-4173-809c-8007-b1a09e67f998" rx="0" ry="0"><g id="shape-2bc11706-71c4-8067-8007-89f57e8f9bba" rx="0" ry="0"><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3cb" rx="0" ry="0"><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3cc" rx="0" ry="0"><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d0"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d0"><rect rx="0" ry="0" x="56" y="56" transform="matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)" width="368" height="368"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a1831534d2-691a92d0-935c-80e0-8007-89f2879cb3d0" class="strokes"><g class="inner-stroke-shape" transform="matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)"><defs><clipPath id="inner-stroke-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0"><use href="#stroke-shape-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0"/></clipPath><rect rx="0" ry="0" x="56" y="56" width="368" height="368" id="stroke-shape-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0" style="fill: none; stroke-width: 64; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0" clip-path="url('#inner-stroke-render-20-691a92d0-935c-80e0-8007-89f2879cb3d0-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d1"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d1"><path d="M480,424L448,424L448,56L480,424" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a183157516-691a92d0-935c-80e0-8007-89f2879cb3d1" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0"><use href="#stroke-shape-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0"/></clipPath><path d="M480,424L448,424L448,56L480,424" id="stroke-shape-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0" clip-path="url('#inner-stroke-render-21-691a92d0-935c-80e0-8007-89f2879cb3d1-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d2"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d2"><path d="M56,480L56,448L424,448L56,480" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a18316c662-691a92d0-935c-80e0-8007-89f2879cb3d2" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0"><use href="#stroke-shape-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0"/></clipPath><path d="M56,480L56,448L424,448L56,480" id="stroke-shape-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0" clip-path="url('#inner-stroke-render-22-691a92d0-935c-80e0-8007-89f2879cb3d2-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d3"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d3"><path d="M0,56L32,56L32,424L0,56" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a18317700d-691a92d0-935c-80e0-8007-89f2879cb3d3" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0"><use href="#stroke-shape-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0"/></clipPath><path d="M0,56L32,56L32,424L0,56" id="stroke-shape-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0" clip-path="url('#inner-stroke-render-23-691a92d0-935c-80e0-8007-89f2879cb3d3-0')"/></g></g></g><g id="shape-691a92d0-935c-80e0-8007-89f2879cb3d4"><g class="fills" id="fills-691a92d0-935c-80e0-8007-89f2879cb3d4"><path d="M424,0L424,32L56,32L424,0" style="fill: rgb(255, 255, 255); fill-opacity: 1;"/></g><g id="strokes-a433d03e-6eaa-8075-8007-b1a183180963-691a92d0-935c-80e0-8007-89f2879cb3d4" class="strokes"><g class="inner-stroke-shape"><defs><clipPath id="inner-stroke-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0"><use href="#stroke-shape-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0"/></clipPath><path d="M424,0L424,32L56,32L424,0" id="stroke-shape-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0" style="fill: none; stroke-width: 4; stroke: rgb(255, 255, 255); stroke-opacity: 1;"/></defs><use href="#stroke-shape-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0" clip-path="url('#inner-stroke-render-24-691a92d0-935c-80e0-8007-89f2879cb3d4-0')"/></g></g></g></g></g><g id="shape-2bc11706-71c4-8067-8007-89f2ebcaa5b6"><g class="fills" id="fills-2bc11706-71c4-8067-8007-89f2ebcaa5b6"><path d="M685.1201171875,409.72021484375L685.1201171875,54.52001953125L746.5595703125,54.52001953125L746.5595703125,205.72021484375L749.919921875,205.72021484375C756.6396484375,190.68017578125,765.83984375,178.68017578125,777.51953125,169.72021484375C789.2001953125,160.759765625,804.6396484375,156.27978515625,823.83984375,156.27978515625L823.83984375,156.27978515625C837.919921875,156.27978515625,850.7998046875,158.919921875,862.48046875,164.2001953125C874.16015625,169.47998046875,884.16015625,177.47998046875,892.48046875,188.2001953125C900.7998046875,198.919921875,907.2001953125,212.43994140625,911.6796875,228.759765625C916.16015625,245.080078125,918.400390625,264.1201171875,918.400390625,285.8798828125L918.400390625,285.8798828125C918.400390625,307.64013671875,916.16015625,326.68017578125,911.6796875,343C907.2001953125,359.31982421875,900.7998046875,372.83984375,892.48046875,383.56005859375C884.16015625,394.27978515625,874.16015625,402.27978515625,862.48046875,407.56005859375C850.7998046875,412.83984375,837.919921875,415.47998046875,823.83984375,415.47998046875L823.83984375,415.47998046875C804.6396484375,415.47998046875,789.2001953125,411,777.51953125,402.0400390625C765.83984375,393.080078125,756.6396484375,381.080078125,749.919921875,366.0400390625L749.919921875,366.0400390625L746.5595703125,366.0400390625L746.5595703125,409.72021484375L685.1201171875,409.72021484375ZM797.919921875,366.52001953125L797.919921875,366.52001953125C815.83984375,366.52001953125,829.6796875,361.080078125,839.4404296875,350.2001953125C849.2001953125,339.31982421875,854.080078125,324.43994140625,854.080078125,305.56005859375L854.080078125,305.56005859375L854.080078125,266.2001953125C854.080078125,247.31982421875,849.2001953125,232.43994140625,839.4404296875,221.56005859375C829.6796875,210.68017578125,815.83984375,205.240234375,797.919921875,205.240234375L797.919921875,205.240234375C783.83984375,205.240234375,771.759765625,208.68017578125,761.6796875,215.56005859375C751.599609375,222.43994140625,746.5595703125,232.919921875,746.5595703125,247L746.5595703125,247L746.5595703125,324.76025390625C746.5595703125,338.83984375,751.599609375,349.31982421875,761.6796875,356.2001953125C771.759765625,363.080078125,783.83984375,366.52001953125,797.919921875,366.52001953125ZM1072,415.47998046875L1072,415.47998046875C1053.1201171875,415.47998046875,1036.240234375,412.43994140625,1021.3603515625,406.35986328125C1006.48046875,400.27978515625,993.83984375,391.64013671875,983.4404296875,380.43994140625C973.0400390625,369.240234375,965.0400390625,355.64013671875,959.4404296875,339.64013671875C953.83984375,323.64013671875,951.0400390625,305.72021484375,951.0400390625,285.8798828125L951.0400390625,285.8798828125C951.0400390625,266.0400390625,953.83984375,248.1201171875,959.4404296875,232.1201171875C965.0400390625,216.1201171875,973.0400390625,202.52001953125,983.4404296875,191.31982421875C993.83984375,180.1201171875,1006.48046875,171.47998046875,1021.3603515625,165.39990234375C1036.240234375,159.31982421875,1053.1201171875,156.27978515625,1072,156.27978515625L1072,156.27978515625C1090.5595703125,156.27978515625,1107.3603515625,159.31982421875,1122.400390625,165.39990234375C1137.4404296875,171.47998046875,1150.16015625,180.1201171875,1160.5595703125,191.31982421875C1170.9599609375,202.52001953125,1178.9599609375,216.1201171875,1184.5595703125,232.1201171875C1190.16015625,248.1201171875,1192.9599609375,266.0400390625,1192.9599609375,285.8798828125L1192.9599609375,285.8798828125C1192.9599609375,305.72021484375,1190.16015625,323.64013671875,1184.5595703125,339.64013671875C1178.9599609375,355.64013671875,1170.9599609375,369.240234375,1160.5595703125,380.43994140625C1150.16015625,391.64013671875,1137.4404296875,400.27978515625,1122.400390625,406.35986328125C1107.3603515625,412.43994140625,1090.5595703125,415.47998046875,1072,415.47998046875ZM1072,368.43994140625L1072,368.43994140625C1089.599609375,368.43994140625,1103.51953125,363.080078125,1113.759765625,352.35986328125C1124,341.64013671875,1129.1201171875,325.8798828125,1129.1201171875,305.080078125L1129.1201171875,305.080078125L1129.1201171875,266.68017578125C1129.1201171875,245.8798828125,1124,230.1201171875,1113.759765625,219.39990234375C1103.51953125,208.68017578125,1089.599609375,203.31982421875,1072,203.31982421875L1072,203.31982421875C1054.400390625,203.31982421875,1040.48046875,208.68017578125,1030.240234375,219.39990234375C1020,230.1201171875,1014.8798828125,245.8798828125,1014.8798828125,266.68017578125L1014.8798828125,266.68017578125L1014.8798828125,305.080078125C1014.8798828125,325.8798828125,1020,341.64013671875,1030.240234375,352.35986328125C1040.48046875,363.080078125,1054.400390625,368.43994140625,1072,368.43994140625ZM1286.080078125,409.72021484375L1220.3203125,409.72021484375L1312.9599609375,283.9599609375L1225.599609375,162.0400390625L1296.16015625,162.0400390625L1325.919921875,205.72021484375L1348.9599609375,240.27978515625L1352.3203125,240.27978515625L1375.3603515625,205.72021484375L1405.1201171875,162.0400390625L1470.400390625,162.0400390625L1383.0400390625,281.080078125L1475.6796875,409.72021484375L1404.6396484375,409.72021484375L1370.5595703125,359.7998046875L1347.0400390625,324.76025390625L1343.6796875,324.76025390625L1320.16015625,359.7998046875L1286.080078125,409.72021484375ZM1629.759765625,415.47998046875L1629.759765625,415.47998046875C1609.919921875,415.47998046875,1592.3203125,412.43994140625,1576.9599609375,406.35986328125C1561.599609375,400.27978515625,1548.7197265625,391.64013671875,1538.3203125,380.43994140625C1527.919921875,369.240234375,1520,355.72021484375,1514.5595703125,339.8798828125C1509.1201171875,324.0400390625,1506.400390625,306.2001953125,1506.400390625,286.35986328125L1506.400390625,286.35986328125C1506.400390625,266.2001953125,1509.2001953125,248.1201171875,1514.7998046875,232.1201171875C1520.400390625,216.1201171875,1528.3203125,202.52001953125,1538.5595703125,191.31982421875C1548.7998046875,180.1201171875,1561.2001953125,171.47998046875,1575.759765625,165.39990234375C1590.3203125,159.31982421875,1606.7197265625,156.27978515625,1624.9599609375,156.27978515625L1624.9599609375,156.27978515625C1642.8798828125,156.27978515625,1659.0400390625,159.240234375,1673.4404296875,165.16015625C1687.83984375,171.080078125,1700.080078125,179.47998046875,1710.16015625,190.35986328125C1720.240234375,201.240234375,1728,214.35986328125,1733.439453125,229.72021484375C1738.8798828125,245.080078125,1741.599609375,262.0400390625,1741.599609375,280.60009765625L1741.599609375,280.60009765625L1741.599609375,300.76025390625L1567.83984375,300.76025390625L1567.83984375,307C1567.83984375,324.919921875,1573.4404296875,339.39990234375,1584.6396484375,350.43994140625C1595.83984375,361.47998046875,1611.51953125,367,1631.6796875,367L1631.6796875,367C1647.0400390625,367,1660.240234375,363.8798828125,1671.2802734375,357.64013671875C1682.3203125,351.39990234375,1691.51953125,343.16015625,1698.8798828125,332.919921875L1698.8798828125,332.919921875L1733.919921875,367.9599609375C1724.9599609375,381.080078125,1711.919921875,392.27978515625,1694.7998046875,401.56005859375C1677.6796875,410.83984375,1656,415.47998046875,1629.759765625,415.47998046875ZM1625.4404296875,201.39990234375L1625.4404296875,201.39990234375C1608.16015625,201.39990234375,1594.240234375,206.83984375,1583.6796875,217.72021484375C1573.1201171875,228.60009765625,1567.83984375,243,1567.83984375,260.919921875L1567.83984375,260.919921875L1567.83984375,264.27978515625L1680.16015625,264.27978515625L1680.16015625,259.9599609375C1680.16015625,242.0400390625,1675.2802734375,227.7998046875,1665.51953125,217.240234375C1655.759765625,206.68017578125,1642.400390625,201.39990234375,1625.4404296875,201.39990234375ZM1899.0400390625,415.47998046875L1899.0400390625,415.47998046875C1871.83984375,415.47998046875,1848.3203125,411.240234375,1828.48046875,402.759765625C1808.6396484375,394.27978515625,1793.1201171875,382.83984375,1781.919921875,368.43994140625L1781.919921875,368.43994140625L1817.919921875,335.7998046875C1828.16015625,347,1839.919921875,355.64013671875,1853.2001953125,361.72021484375C1866.48046875,367.7998046875,1881.919921875,370.83984375,1899.51953125,370.83984375L1899.51953125,370.83984375C1914.8798828125,370.83984375,1927.2001953125,368.27978515625,1936.48046875,363.16015625C1945.759765625,358.0400390625,1950.400390625,350.2001953125,1950.400390625,339.64013671875L1950.400390625,339.64013671875C1950.400390625,330.68017578125,1947.2802734375,324.60009765625,1941.0400390625,321.39990234375C1934.7998046875,318.2001953125,1926.560546875,315.7998046875,1916.3203125,314.2001953125L1916.3203125,314.2001953125L1876.48046875,307.9599609375C1866.240234375,306.35986328125,1856.240234375,304.0400390625,1846.48046875,301C1836.7197265625,297.9599609375,1828.080078125,293.72021484375,1820.560546875,288.27978515625C1813.0400390625,282.83984375,1807.0400390625,275.8798828125,1802.560546875,267.39990234375C1798.080078125,258.919921875,1795.83984375,248.60009765625,1795.83984375,236.43994140625L1795.83984375,236.43994140625C1795.83984375,210.52001953125,1805.51953125,190.68017578125,1824.8798828125,176.919921875C1844.240234375,163.16015625,1870.8798828125,156.27978515625,1904.7998046875,156.27978515625L1904.7998046875,156.27978515625C1928.7998046875,156.27978515625,1949.2001953125,159.64013671875,1966,166.35986328125C1982.7998046875,173.080078125,1996.6396484375,182.52001953125,2007.51953125,194.68017578125L2007.51953125,194.68017578125L1975.3603515625,230.2001953125C1968.3203125,222.52001953125,1958.9599609375,215.72021484375,1947.2802734375,209.7998046875C1935.599609375,203.8798828125,1920.7998046875,200.919921875,1902.8798828125,200.919921875L1902.8798828125,200.919921875C1871.51953125,200.919921875,1855.83984375,210.68017578125,1855.83984375,230.2001953125L1855.83984375,230.2001953125C1855.83984375,239.16015625,1859.0400390625,245.31982421875,1865.439453125,248.68017578125C1871.83984375,252.0400390625,1880.16015625,254.52001953125,1890.400390625,256.1201171875L1890.400390625,256.1201171875L1929.759765625,262.35986328125C1940.3203125,263.9599609375,1950.48046875,266.27978515625,1960.240234375,269.31982421875C1970,272.35986328125,1978.6396484375,276.60009765625,1986.16015625,282.0400390625C1993.6796875,287.47998046875,1999.6796875,294.35986328125,2004.16015625,302.68017578125C2008.6396484375,311,2010.8798828125,321.240234375,2010.8798828125,333.39990234375L2010.8798828125,333.39990234375C2010.8798828125,359,2001.0400390625,379.080078125,1981.3603515625,393.64013671875C1961.6796875,408.2001953125,1934.240234375,415.47998046875,1899.0400390625,415.47998046875Z" style="fill: rgb(255, 255, 255);"/></g></g><g id="shape-2bc11706-71c4-8067-8007-89f2f04df7fc"><g class="fills" id="fills-2bc11706-71c4-8067-8007-89f2f04df7fc"><path d="M2355.5595703125,409.72021484375L2355.5595703125,371.7998046875L2354.1201171875,371.7998046875C2348.3603515625,383.31982421875,2339.080078125,393.47998046875,2326.2802734375,402.27978515625C2313.48046875,411.080078125,2297,415.47998046875,2276.83984375,415.47998046875L2276.83984375,415.47998046875C2245.48046875,415.47998046875,2221,404.60009765625,2203.400390625,382.83984375C2185.7998046875,361.080078125,2177,328.76025390625,2177,285.8798828125L2177,285.8798828125C2177,243,2185.7998046875,210.68017578125,2203.400390625,188.919921875C2221,167.16015625,2245.48046875,156.27978515625,2276.83984375,156.27978515625L2276.83984375,156.27978515625C2297,156.27978515625,2313.48046875,160.68017578125,2326.2802734375,169.47998046875C2339.080078125,178.27978515625,2348.3603515625,188.43994140625,2354.1201171875,199.9599609375L2354.1201171875,199.9599609375L2355.5595703125,199.9599609375L2355.5595703125,54.52001953125L2372.3603515625,54.52001953125L2372.3603515625,409.72021484375L2355.5595703125,409.72021484375ZM2280.6796875,400.60009765625L2280.6796875,400.60009765625C2290.599609375,400.60009765625,2300.0400390625,399.16015625,2309,396.27978515625C2317.9599609375,393.39990234375,2325.8798828125,389.240234375,2332.759765625,383.7998046875C2339.6396484375,378.35986328125,2345.16015625,371.7998046875,2349.3203125,364.1201171875C2353.48046875,356.43994140625,2355.5595703125,347.9599609375,2355.5595703125,338.68017578125L2355.5595703125,338.68017578125L2355.5595703125,233.080078125C2355.5595703125,223.7998046875,2353.48046875,215.31982421875,2349.3203125,207.64013671875C2345.16015625,199.9599609375,2339.6396484375,193.39990234375,2332.759765625,187.9599609375C2325.8798828125,182.52001953125,2317.9599609375,178.35986328125,2309,175.47998046875C2300.0400390625,172.60009765625,2290.599609375,171.16015625,2280.6796875,171.16015625L2280.6796875,171.16015625C2253.16015625,171.16015625,2232.0400390625,180.2001953125,2217.3203125,198.27978515625C2202.599609375,216.35986328125,2195.240234375,240.919921875,2195.240234375,271.9599609375L2195.240234375,271.9599609375L2195.240234375,299.7998046875C2195.240234375,330.83984375,2202.599609375,355.39990234375,2217.3203125,373.47998046875C2232.0400390625,391.56005859375,2253.16015625,400.60009765625,2280.6796875,400.60009765625ZM2564.3603515625,415.47998046875L2564.3603515625,415.47998046875C2531.080078125,415.47998046875,2505.080078125,404.43994140625,2486.3603515625,382.35986328125C2467.6396484375,360.27978515625,2458.2802734375,328.1201171875,2458.2802734375,285.8798828125L2458.2802734375,285.8798828125C2458.2802734375,243.64013671875,2467.5595703125,211.47998046875,2486.1201171875,189.39990234375C2504.6796875,167.31982421875,2529.9599609375,156.27978515625,2561.9599609375,156.27978515625L2561.9599609375,156.27978515625C2578.599609375,156.27978515625,2593.3203125,159.240234375,2606.1201171875,165.16015625C2618.919921875,171.080078125,2629.6396484375,179.47998046875,2638.2802734375,190.35986328125C2646.919921875,201.240234375,2653.48046875,214.35986328125,2657.9599609375,229.72021484375C2662.4404296875,245.080078125,2664.6796875,262.0400390625,2664.6796875,280.60009765625L2664.6796875,280.60009765625L2664.6796875,287.31982421875L2476.51953125,287.31982421875L2476.51953125,299.7998046875C2476.51953125,330.83984375,2484.1201171875,355.39990234375,2499.3203125,373.47998046875C2514.51953125,391.56005859375,2536.2001953125,400.60009765625,2564.3603515625,400.60009765625L2564.3603515625,400.60009765625C2584.2001953125,400.60009765625,2601,395.9599609375,2614.759765625,386.68017578125C2628.51953125,377.39990234375,2639.080078125,363.47998046875,2646.4404296875,344.919921875L2646.4404296875,344.919921875L2659.8798828125,352.1201171875C2652.51953125,371.31982421875,2640.759765625,386.68017578125,2624.599609375,398.2001953125C2608.4404296875,409.72021484375,2588.3603515625,415.47998046875,2564.3603515625,415.47998046875ZM2561.9599609375,170.68017578125L2561.9599609375,170.68017578125C2534.759765625,170.68017578125,2513.7197265625,179.7998046875,2498.83984375,198.0400390625C2483.9599609375,216.27978515625,2476.51953125,240.919921875,2476.51953125,271.9599609375L2476.51953125,271.9599609375L2476.51953125,273.8798828125L2646.919921875,273.8798828125L2646.919921875,271.47998046875C2646.919921875,240.43994140625,2639.5595703125,215.8798828125,2624.83984375,197.7998046875C2610.1201171875,179.72021484375,2589.16015625,170.68017578125,2561.9599609375,170.68017578125ZM2847.5595703125,409.72021484375L2826.4404296875,409.72021484375L2734.2802734375,162.0400390625L2751.5595703125,162.0400390625L2836.51953125,393.39990234375L2837.9599609375,393.39990234375L2922.919921875,162.0400390625L2939.7197265625,162.0400390625L2847.5595703125,409.72021484375Z" style="fill: rgb(255, 255, 255);"/></g></g></g><g id="shape-2bc11706-71c4-8067-8007-89f2f32697cf"><g class="fills" id="fills-2bc11706-71c4-8067-8007-89f2f32697cf"><path d="M2093.6396484375,412.400390625L2093.6396484375,412.400390625C2086.279296875,412.400390625,2081,410.88037109375,2077.7998046875,407.84033203125C2074.599609375,404.80029296875,2073,400.72021484375,2073,395.60009765625L2073,395.60009765625L2073,390.80029296875C2073,385.68017578125,2074.599609375,381.60009765625,2077.7998046875,378.56005859375C2081,375.52001953125,2086.279296875,374,2093.6396484375,374L2093.6396484375,374C2101,374,2106.279296875,375.52001953125,2109.4794921875,378.56005859375C2112.6796875,381.60009765625,2114.279296875,385.68017578125,2114.279296875,390.80029296875L2114.279296875,390.80029296875L2114.279296875,395.60009765625C2114.279296875,400.72021484375,2112.6796875,404.80029296875,2109.4794921875,407.84033203125C2106.279296875,410.88037109375,2101,412.400390625,2093.6396484375,412.400390625Z" style="fill: rgb(255, 255, 255);"/></g></g></g></svg>` : CALLBACK_LOGO_MARK;
90349
- renderCallbackPage = (tone, title, message) => {
90350
- const isSuccess = tone === "success";
90351
- const statusClass = isSuccess ? "status success" : "status error";
90352
- const statusLabel = isSuccess ? "Signed in" : "Sign-in failed";
90353
- const escapedTitle = escapeHtml2(title);
90354
- const escapedMessage = escapeHtml2(message);
90355
- return `<!doctype html>
90356
- <html lang="en">
90357
- <head>
90358
- <meta charset="utf-8" />
90359
- <meta name="viewport" content="width=device-width, initial-scale=1" />
90360
- <title>${escapedTitle}</title>
90361
- <style>
90362
- :root {
90363
- color-scheme: dark;
90364
- --bg: #0a0a0b;
90365
- --fg: #f4f4f5;
90366
- --fg-2: #c4c4c8;
90367
- --fg-3: #8b8b92;
90368
- --line: rgba(255, 255, 255, 0.08);
90369
- --success: #34d399;
90370
- --error: #f87171;
90371
- --font-sans:
90372
- ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
90373
- "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
90374
- --font-mono:
90375
- ui-monospace, SFMono-Regular, "Menlo", "Monaco", "Consolas",
90376
- "Liberation Mono", "Courier New", monospace;
90377
- }
90378
- * {
90379
- box-sizing: border-box;
90380
- }
90381
- body {
90382
- margin: 0;
90383
- min-height: 100vh;
90384
- display: grid;
90385
- place-items: center;
90386
- padding: 24px;
90387
- font-family: var(--font-sans);
90388
- -webkit-font-smoothing: antialiased;
90389
- background: var(--bg);
90390
- color: var(--fg);
90391
- }
90392
- main {
90393
- width: min(100%, 440px);
90394
- padding: 36px 32px;
90395
- border-radius: 16px;
90396
- border: 1px solid var(--line);
90397
- background: linear-gradient(
90398
- 180deg,
90399
- rgba(255, 255, 255, 0.018),
90400
- rgba(255, 255, 255, 0.006)
90401
- );
90402
- }
90403
- .brand {
90404
- display: flex;
90405
- align-items: center;
90406
- margin-bottom: 28px;
90407
- color: var(--fg);
90408
- }
90409
- .brand svg {
90410
- height: 26px;
90411
- width: auto;
90412
- display: block;
90413
- }
90414
- .status {
90415
- display: inline-flex;
90416
- align-items: center;
90417
- gap: 8px;
90418
- font-family: var(--font-mono);
90419
- font-size: 11px;
90420
- font-weight: 500;
90421
- letter-spacing: 0.18em;
90422
- text-transform: uppercase;
90423
- color: var(--fg-3);
90424
- }
90425
- .status .dot {
90426
- width: 6px;
90427
- height: 6px;
90428
- border-radius: 999px;
90429
- }
90430
- .status.success .dot {
90431
- background: var(--success);
90432
- box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
90433
- }
90434
- .status.error .dot {
90435
- background: var(--error);
90436
- box-shadow: 0 0 10px rgba(248, 113, 113, 0.55);
90437
- }
90438
- h1 {
90439
- margin: 14px 0 10px;
90440
- font-size: 28px;
90441
- font-weight: 600;
90442
- letter-spacing: -0.6px;
90443
- line-height: 1.1;
90444
- color: #fff;
90445
- }
90446
- p {
90447
- margin: 0;
90448
- font-size: 14.5px;
90449
- line-height: 1.6;
90450
- letter-spacing: -0.1px;
90451
- color: var(--fg-2);
90452
- }
90453
- </style>
90454
- </head>
90455
- <body>
90456
- <main>
90457
- <div class="brand">
90458
- ${CALLBACK_FULL_LOGO}
90459
- </div>
90460
- <span class="${statusClass}"><span class="dot"></span>${statusLabel}</span>
90461
- <h1>${escapedTitle}</h1>
90462
- <p>${escapedMessage}</p>
90463
- </main>
90464
- </body>
90465
- </html>`;
90466
- };
90467
90343
  CONTROL_PLANE_REQUEST_UNAVAILABLE_CODE = "control_plane_request_unavailable";
90468
90344
  ControlPlaneRequestUnavailableError = class extends Error {
90469
90345
  code = CONTROL_PLANE_REQUEST_UNAVAILABLE_CODE;
@@ -90589,20 +90465,18 @@ var init_controlPlane = __esm({
90589
90465
  res.setHeader("content-type", "text/html; charset=utf-8");
90590
90466
  if (code2) {
90591
90467
  res.end(
90592
- renderCallbackPage(
90593
- "success",
90594
- "Authentication complete",
90595
- "You can close this window and return to your terminal."
90596
- )
90468
+ renderOAuthCallbackPage({
90469
+ heading: "Signed in to boxes.dev",
90470
+ message: "You can close this tab and return to your terminal."
90471
+ })
90597
90472
  );
90598
90473
  } else {
90599
90474
  const errorDetails = error55 && error55.length > 0 ? error55 : "missing code";
90600
90475
  res.end(
90601
- renderCallbackPage(
90602
- "error",
90603
- "Authentication failed",
90604
- `The sign-in flow returned an error (${errorDetails}).`
90605
- )
90476
+ renderOAuthCallbackPage({
90477
+ heading: "boxes.dev sign-in didn\u2019t finish",
90478
+ message: `Sign-in returned an error (${errorDetails}). Return to your terminal and try again.`
90479
+ })
90606
90480
  );
90607
90481
  }
90608
90482
  if (code2) {
@@ -249698,7 +249572,7 @@ var init_databaseDumpTools2 = __esm({
249698
249572
  });
249699
249573
 
249700
249574
  // src/devbox/agentInit/controlPlane.ts
249701
- var preflightProject, registryUpsert2, registryRemove, startOrResumeJob, createUploadSession, refreshMultipartUploadParts, listMultipartUploadedParts, completeMultipartUpload, abortMultipartUpload, commitUpload, commitDecryptKeyEnvelope, getProgress, destroyStartOver, retryRecoverableFailure, getMarkerRepairState, getGithubConnection, startGithubConnection, setGithubCliAccess, listGithubRepositories, getGithubInstallTarget, createAgentInitControlPlaneClient;
249575
+ var preflightProject, registryUpsert2, registryRemove, startOrResumeJob, createUploadSession, refreshMultipartUploadParts, listMultipartUploadedParts, completeMultipartUpload, abortMultipartUpload, commitUpload, commitDecryptKeyEnvelope, getProgress, destroyStartOver, retryRecoverableFailure, getMarkerRepairState, getGithubConnection, startGithubConnection, setGithubCliAccess, listGithubRepositories, getGithubInstallTarget, findRenamedGithubRepositories, createAgentInitControlPlaneClient;
249702
249576
  var init_controlPlane2 = __esm({
249703
249577
  "src/devbox/agentInit/controlPlane.ts"() {
249704
249578
  "use strict";
@@ -249735,6 +249609,7 @@ var init_controlPlane2 = __esm({
249735
249609
  setGithubCliAccess = makeFunctionReference("githubConnections:setRuntimeGhProjectionForViewer");
249736
249610
  listGithubRepositories = makeFunctionReference("githubRepositoryActions:listRepositoriesForViewer");
249737
249611
  getGithubInstallTarget = makeFunctionReference("githubRepositoryActions:getInstallTargetForViewer");
249612
+ findRenamedGithubRepositories = makeFunctionReference("githubRepositoryActions:findRenamedRepositoriesForViewer");
249738
249613
  createAgentInitControlPlaneClient = ({
249739
249614
  getToken
249740
249615
  }) => {
@@ -249775,6 +249650,10 @@ var init_controlPlane2 = __esm({
249775
249650
  await getToken(),
249776
249651
  async (client) => client.action(getGithubInstallTarget, request2)
249777
249652
  ),
249653
+ findRenamedGithubRepositories: async (request2) => withConvexClient(
249654
+ await getToken(),
249655
+ async (client) => client.action(findRenamedGithubRepositories, request2)
249656
+ ),
249778
249657
  setGithubCliAccess: async (request2) => withConvexClient(
249779
249658
  await getToken(),
249780
249659
  async (client) => client.mutation(setGithubCliAccess, request2)
@@ -261204,7 +261083,7 @@ var init_instanceType = __esm({
261204
261083
  });
261205
261084
 
261206
261085
  // src/devbox/agentInit/githubAccess.ts
261207
- var resolveAgentInitGithubAccessPage, isRecord9, githubIssue, githubInventoryFailureIssue, readAgentInitProjectLayoutRepos, manifestGithubAccess, buildAgentInitGithubManifestIssues, normalizeInventoryRepository, normalizeInventoryInstallation, matchAgentInitGithubRepositories, agentInitGithubBlockedIssue, resolveAgentInitGithubAccessDefault, resolveAgentInitManagedGithubAccess, configureAgentInitGithubAccess, resolveAgentInitGithubDependencies;
261086
+ var resolveAgentInitGithubAccessPage, isRecord9, explainAgentInitGithubRenames, describeRenames, shellArgument, agentInitGithubRenamedOriginIssue, agentInitGithubRenamedDependencyIssue, githubIssue, githubInventoryFailureIssue, readAgentInitProjectLayoutRepos, manifestGithubAccess, buildAgentInitGithubManifestIssues, normalizeInventoryRepository, normalizeInventoryInstallation, matchAgentInitGithubRepositories, agentInitGithubBlockedIssue, resolveAgentInitGithubAccessDefault, resolveAgentInitManagedGithubAccess, configureAgentInitGithubAccess, resolveAgentInitGithubDependencies;
261208
261087
  var init_githubAccess = __esm({
261209
261088
  "src/devbox/agentInit/githubAccess.ts"() {
261210
261089
  "use strict";
@@ -261231,6 +261110,56 @@ var init_githubAccess = __esm({
261231
261110
  } : { kind: "owner_lookup", ownerLogin };
261232
261111
  };
261233
261112
  isRecord9 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
261113
+ explainAgentInitGithubRenames = async ({
261114
+ client,
261115
+ issueForRenames,
261116
+ resolution
261117
+ }) => {
261118
+ if (!("missingAccess" in resolution)) return resolution;
261119
+ const result = await client.findRenamedGithubRepositories({
261120
+ fullNames: resolution.missingAccess.repositoryFullNames
261121
+ });
261122
+ const renames = isRecord9(result) && result["ok"] === true && Array.isArray(result["renames"]) ? result["renames"].flatMap(
261123
+ (rename) => isRecord9(rename) && typeof rename["fullName"] === "string" && typeof rename["previousFullName"] === "string" ? [
261124
+ {
261125
+ fullName: rename["fullName"],
261126
+ previousFullName: rename["previousFullName"]
261127
+ }
261128
+ ] : []
261129
+ ) : [];
261130
+ return renames.length > 0 ? { ok: false, issue: issueForRenames(renames) } : resolution;
261131
+ };
261132
+ describeRenames = (renames) => renames.map(
261133
+ (rename) => `${rename.previousFullName} is now ${rename.fullName} on GitHub`
261134
+ ).join("; ");
261135
+ shellArgument = (value) => /^[A-Za-z0-9_./-]+$/u.test(value) ? value : `'${value.replace(/'/gu, `'\\''`)}'`;
261136
+ agentInitGithubRenamedOriginIssue = ({
261137
+ projectLayoutRepos,
261138
+ renames
261139
+ }) => {
261140
+ const commands = projectLayoutRepos.flatMap((projectRepo) => {
261141
+ const coordinates = resolveGithubRepositoryFromOrigin(projectRepo.origin);
261142
+ const rename = coordinates ? renames.find(
261143
+ (candidate) => candidate.previousFullName.toLowerCase() === `${coordinates.owner}/${coordinates.name}`.toLowerCase()
261144
+ ) : void 0;
261145
+ if (!rename || !projectRepo.origin) return [];
261146
+ const origin = /^(git@|ssh:\/\/)/iu.test(projectRepo.origin.trim()) ? `git@github.com:${rename.fullName}.git` : `https://github.com/${rename.fullName}.git`;
261147
+ return [
261148
+ `git ${projectRepo.relPath === "." ? "" : `-C ${shellArgument(projectRepo.relPath)} `}remote set-url origin ${origin}`
261149
+ ];
261150
+ });
261151
+ return githubIssue(
261152
+ `${describeRenames(renames)}, so boxes.dev can't match ${commands.length === 1 ? "this project's origin" : "these origins"} to ${renames.length === 1 ? "it" : "them"}.`,
261153
+ `From the project folder, update ${commands.length === 1 ? "the origin" : "each origin"} to the current name with ${commands.map((command) => `\`${command}\``).join(" and ")}. Then re-run check.`
261154
+ );
261155
+ };
261156
+ agentInitGithubRenamedDependencyIssue = (renames) => ({
261157
+ ...githubIssue(
261158
+ `${describeRenames(renames)}.`,
261159
+ `Use the current ${renames.length === 1 ? "name" : "names"} in \`githubDependencies\`, then re-run check.`
261160
+ ),
261161
+ location: "githubDependencies"
261162
+ });
261234
261163
  githubIssue = (message, fix) => ({
261235
261164
  level: "error",
261236
261165
  location: "githubAccess",
@@ -261685,7 +261614,11 @@ var init_githubAccess = __esm({
261685
261614
  projectLayoutRepos
261686
261615
  }) : null;
261687
261616
  if (transportResolution && !transportResolution.ok) {
261688
- return transportResolution;
261617
+ return await explainAgentInitGithubRenames({
261618
+ client: controlPlaneClient,
261619
+ issueForRenames: (renames) => agentInitGithubRenamedOriginIssue({ projectLayoutRepos, renames }),
261620
+ resolution: transportResolution
261621
+ });
261689
261622
  }
261690
261623
  const githubDependencies = manifest.version === 1 ? void 0 : manifest.githubDependencies;
261691
261624
  if (githubDependencies && githubDependencies.length > 0) {
@@ -261694,7 +261627,13 @@ var init_githubAccess = __esm({
261694
261627
  inventoryResult,
261695
261628
  repositories: githubDependencies
261696
261629
  });
261697
- if (!dependencyResolution.ok) return dependencyResolution;
261630
+ if (!dependencyResolution.ok) {
261631
+ return await explainAgentInitGithubRenames({
261632
+ client: controlPlaneClient,
261633
+ issueForRenames: agentInitGithubRenamedDependencyIssue,
261634
+ resolution: dependencyResolution
261635
+ });
261636
+ }
261698
261637
  }
261699
261638
  const maintenanceResolution = maintenanceRepos.length > 0 ? resolveAgentInitManagedGithubAccess({
261700
261639
  connectionResult,
@@ -261705,12 +261644,17 @@ var init_githubAccess = __esm({
261705
261644
  requireDefaultBranch: true
261706
261645
  }) : null;
261707
261646
  if (maintenanceResolution && !maintenanceResolution.ok) {
261647
+ const explained = await explainAgentInitGithubRenames({
261648
+ client: controlPlaneClient,
261649
+ issueForRenames: (renames) => agentInitGithubRenamedOriginIssue({
261650
+ projectLayoutRepos: maintenanceRepos,
261651
+ renames
261652
+ }),
261653
+ resolution: maintenanceResolution
261654
+ });
261708
261655
  return {
261709
- ...maintenanceResolution,
261710
- issue: {
261711
- ...maintenanceResolution.issue,
261712
- location: "templateMaintenance.watches"
261713
- }
261656
+ ...explained,
261657
+ issue: { ...explained.issue, location: "templateMaintenance.watches" }
261714
261658
  };
261715
261659
  }
261716
261660
  if (transportResolution?.ok) {
@@ -263290,11 +263234,13 @@ var init_github = __esm({
263290
263234
  return "waiting";
263291
263235
  }
263292
263236
  const inventoryResult = await client.listGithubRepositories({});
263237
+ const projectLayoutRepos = await loadProjectLayoutRepos();
263293
263238
  let resolution = resolveAgentInitManagedGithubAccess({
263294
263239
  connectionResult,
263295
263240
  inventoryResult,
263296
- projectLayoutRepos: await loadProjectLayoutRepos()
263241
+ projectLayoutRepos
263297
263242
  });
263243
+ let issueForRenames = (renames) => agentInitGithubRenamedOriginIssue({ projectLayoutRepos, renames });
263298
263244
  const githubDependencies = await loadGithubDependencies?.();
263299
263245
  const rootRepositoryCount = resolution.ok ? resolution.repositories.length : 0;
263300
263246
  if (resolution.ok && githubDependencies && githubDependencies.length > 0) {
@@ -263303,6 +263249,14 @@ var init_github = __esm({
263303
263249
  inventoryResult,
263304
263250
  repositories: githubDependencies
263305
263251
  });
263252
+ issueForRenames = agentInitGithubRenamedDependencyIssue;
263253
+ }
263254
+ if (!resolution.ok) {
263255
+ resolution = await explainAgentInitGithubRenames({
263256
+ client,
263257
+ issueForRenames,
263258
+ resolution
263259
+ });
263306
263260
  }
263307
263261
  if (resolution.ok) {
263308
263262
  print(
@@ -297399,4 +297353,4 @@ react/cjs/react-jsx-runtime.development.js:
297399
297353
  *)
297400
297354
  */
297401
297355
 
297402
- //# debugId=f9b05d56-bcfd-5306-9e59-f832431ece07
297356
+ //# debugId=e37678ce-fb44-5903-81f8-a25f3b4c4d9c
package/dist/bin/dvbd.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ac796f29-1a11-5a49-8449-1955c0948204")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a2013ec5-3fe7-5aaf-ba32-159fd5a005c9")}catch(e){}}();
4
4
  import { createRequire as __dvbCreateRequire } from "node:module";
5
5
  import { dirname as __dvbDirname } from "node:path";
6
6
  import { fileURLToPath as __dvbFileURLToPath } from "node:url";
@@ -4200,6 +4200,21 @@ var init_loopbackServer = __esm({
4200
4200
  }
4201
4201
  });
4202
4202
 
4203
+ // ../../../../shared/devboxCore/dist/boxesLogoSvg.js
4204
+ var init_boxesLogoSvg = __esm({
4205
+ "../../../../shared/devboxCore/dist/boxesLogoSvg.js"() {
4206
+ "use strict";
4207
+ }
4208
+ });
4209
+
4210
+ // ../../../../shared/devboxCore/dist/oauthCallbackPage.js
4211
+ var init_oauthCallbackPage = __esm({
4212
+ "../../../../shared/devboxCore/dist/oauthCallbackPage.js"() {
4213
+ "use strict";
4214
+ init_boxesLogoSvg();
4215
+ }
4216
+ });
4217
+
4203
4218
  // ../../../../shared/devboxCore/dist/mcpOAuth/types.js
4204
4219
  var init_types = __esm({
4205
4220
  "../../../../shared/devboxCore/dist/mcpOAuth/types.js"() {
@@ -4213,6 +4228,7 @@ var init_callbackServer = __esm({
4213
4228
  "../../../../shared/devboxCore/dist/mcpOAuth/callbackServer.js"() {
4214
4229
  "use strict";
4215
4230
  init_loopbackServer();
4231
+ init_oauthCallbackPage();
4216
4232
  init_types();
4217
4233
  MAX_CALLBACK_TARGET_CHARS = 8 * 1024;
4218
4234
  }
@@ -23949,21 +23965,6 @@ var init_codexOAuthParams = __esm({
23949
23965
  }
23950
23966
  });
23951
23967
 
23952
- // ../../../../shared/devboxCore/dist/boxesLogoSvg.js
23953
- var init_boxesLogoSvg = __esm({
23954
- "../../../../shared/devboxCore/dist/boxesLogoSvg.js"() {
23955
- "use strict";
23956
- }
23957
- });
23958
-
23959
- // ../../../../shared/devboxCore/dist/oauthCallbackPage.js
23960
- var init_oauthCallbackPage = __esm({
23961
- "../../../../shared/devboxCore/dist/oauthCallbackPage.js"() {
23962
- "use strict";
23963
- init_boxesLogoSvg();
23964
- }
23965
- });
23966
-
23967
23968
  // ../../../../shared/devboxCore/dist/chatGptBrowserSignIn.js
23968
23969
  var DEFAULT_TIMEOUT_MS;
23969
23970
  var init_chatGptBrowserSignIn = __esm({
@@ -64674,9 +64675,9 @@ var init_sentry = __esm({
64674
64675
  uncaughtExceptionMonitorInstalled = false;
64675
64676
  currentDevboxSentryUser = null;
64676
64677
  readBuildMetadata = () => {
64677
- const rawPackageVersion = "1.0.1071";
64678
- const rawGitSha = "9d44328d80bffd7ce2dfde1820030f1aaa3862bb";
64679
- const rawSentryRelease = "boxes-dev-dvb@1.0.1071+9d44328d80bffd7ce2dfde1820030f1aaa3862bb";
64678
+ const rawPackageVersion = "1.0.1072";
64679
+ const rawGitSha = "38cca56e185da1e977f029154045c5ef6ebcef5a";
64680
+ const rawSentryRelease = "boxes-dev-dvb@1.0.1072+38cca56e185da1e977f029154045c5ef6ebcef5a";
64680
64681
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
64681
64682
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
64682
64683
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -66893,7 +66894,7 @@ var init_packageVersion = __esm({
66893
66894
  return path8.join(process.cwd(), "dvb");
66894
66895
  };
66895
66896
  readEmbeddedPackageVersion = () => {
66896
- const raw = "1.0.1071";
66897
+ const raw = "1.0.1072";
66897
66898
  return trimVersion(raw);
66898
66899
  };
66899
66900
  readNearestPackageMetadata = (basePath) => {
@@ -80046,4 +80047,4 @@ smol-toml/dist/index.js:
80046
80047
  *)
80047
80048
  */
80048
80049
 
80049
- //# debugId=ac796f29-1a11-5a49-8449-1955c0948204
80050
+ //# debugId=a2013ec5-3fe7-5aaf-ba32-159fd5a005c9
@@ -391,8 +391,9 @@ Personal sign-in is optional even when App repository access works. Choose
391
391
  GitHub, or the optional follow-up in onboarding or project setup, or run `gh auth login` inside a
392
392
  managed machine. The App covers pull, push, pull requests, and CLI commands
393
393
  within its permissions; personal authorization enables broader CLI use,
394
- including starting workflows, within the approved scopes and the user's
395
- permissions. Login will show a
394
+ within the approved scopes and the user's permissions. The App also supports
395
+ starting workflows and rerunning failed CI after the installation owner approves
396
+ Actions read and write. Login will show a
396
397
  one-time code and GitHub approval URL and wait for approval with the same GitHub
397
398
  account connected to boxes.dev. GitHub will request the official GitHub CLI's
398
399
  `repo`, `read:org`, `gist`, and `workflow` scopes, including GitHub Actions
@@ -411,9 +412,41 @@ repository access, while GitHub enforces each command's permissions. A provider
411
412
  outage or rate limit will show that access couldn't be checked rather than
412
413
  claiming that permission is missing.
413
414
 
414
- When the App has read-only Actions access, reviewed `gh workflow run` and
415
- `gh run rerun` commands will suggest personal sign-in. This advice does not
416
- block, retry, or replay the command. After approval, rerun the command explicitly.
415
+ The boxes.dev GitHub App requests read and write access to Actions, Checks,
416
+ Contents, Issues, Pull requests, and Workflows. This supports CI retries,
417
+ publishing check results, issue changes, code pushes, pull requests, and workflow
418
+ file edits. Actions write also permits starting and canceling workflows and
419
+ managing their runs, logs, and artifacts. The App requests read-only access to
420
+ deployments, organization members, the user's email addresses, commit statuses,
421
+ and repository metadata.
422
+
423
+ An existing installation's repository or organization owner needs to approve
424
+ repository and organization permission increases in GitHub Settings → GitHub
425
+ Apps → boxes.dev. Existing access will continue while approval is pending.
426
+ Account email access requires each user's approval of the updated GitHub
427
+ authorization. Choose **Update connection** in **Account** or **Integrations →
428
+ GitHub** to review and approve it.
429
+
430
+ Personal access has different permissions from the App. Its requested scopes
431
+ do not include account email access, and personal access cannot publish check
432
+ runs. For those commands, choose **Disconnect personal access** to use App
433
+ access after approving its required permissions. Do not assume personal access
434
+ includes every App capability.
435
+
436
+ Managed `gh` will show a direct installation permission-review link when a
437
+ supported command needs a newly requested App grant. This covers Actions
438
+ commands, issue and pull-request changes, and recognized `gh api` writes to
439
+ Checks or Contents and reads of Deployments or Organization members. Explicit
440
+ `--repo`/`-R`, `GH_REPO`, or the CLI's repository selection identifies the account;
441
+ REST endpoints identify their account directly. Recognized GraphQL operations
442
+ with opaque repository IDs don't establish an account, so advice requires all
443
+ eligible installations to need the grant. An unknown account with mixed grants
444
+ or unavailable metadata will proceed without choosing an approval link.
445
+ Already-approved grants won't produce an update prompt. Email access uses the
446
+ user's separate **Update connection** link in Account. Connected personal access
447
+ that lacks email scopes or cannot publish check runs will link to **Disconnect
448
+ personal access** instead. No guidance switches credentials, blocks, retries,
449
+ or replays the original command. After approval, retry it explicitly.
417
450
  Other GitHub failures do not automatically start authorization. A command that
418
451
  needs a permission the App lacks fails with GitHub's `Resource not accessible
419
452
  by integration` error; see "GitHub CLI Command Is Denied" in
@@ -426,11 +459,12 @@ boxes.dev GitHub App can access that project's repositories. If access is
426
459
  missing, the page names the affected repository and opens the applicable
427
460
  GitHub grant or management flow. Request or add the repository there, then
428
461
  return to boxes.dev for an automatic recheck or choose **Check again**. An
429
- organization admin may need to approve the request. Reconnect GitHub only when
430
- the page says the account connection needs it. The ready **Repository access**
431
- row shows checkmarked capabilities, with push and workflow-file edits shown
432
- only where the live repository and installation grants allow them. Viewing
433
- Actions does not grant permission to start a run. If App approval is unavailable,
462
+ organization admin may need to approve the request. For repository access,
463
+ reconnect GitHub only when the page says the account connection needs it. The
464
+ ready **Repository access** row shows checkmarked capabilities, with push and
465
+ workflow-file edits shown only where the live repository and installation
466
+ grants allow them. Viewing Actions does not grant permission to start a run.
467
+ If App approval is unavailable,
434
468
  choose **Use personal access**, copy the one-time code, and approve the official
435
469
  GitHub CLI on GitHub. Personal access takes priority for managed CLI commands;
436
470
  Git and explicit pull-request credential selection still prefers App access
@@ -23,6 +23,14 @@ When the runtime is sleeping, use Wake from the status pill, Terminal, Files,
23
23
  Git, or Ports. If a devbox is sleeping because the awake devbox limit is full,
24
24
  boxes.dev asks you to sleep another devbox before continuing.
25
25
 
26
+ Background work started by an agent can keep a devbox awake after the agent
27
+ finishes its reply. Codex background commands receive up to one hour of sleep
28
+ protection. Claude background tasks use their declared timeout, capped at four
29
+ hours, or one hour when no timeout is declared. Finishing the work releases
30
+ that protection sooner. When the limit expires, normal idle sleep can resume;
31
+ the limit does not terminate the command. You can still sleep the machine
32
+ yourself.
33
+
26
34
  ## Selected Runtime
27
35
 
28
36
  Most runtime tools route to the selected thread:
@@ -80,7 +80,7 @@ The desktop local-folder setup wizard usually moves through these stages:
80
80
  **Connect your accounts**. GitHub here is sign-in only; boxes.dev asks for
81
81
  repository access later, once it knows the project's repositories. After
82
82
  connecting, choose optional personal authorization for CLI commands beyond
83
- the App's permissions, including starting workflows; it never blocks setup.
83
+ the App's permissions; it never blocks setup.
84
84
  The same follow-up appears in Account, GitHub project setup, local Git access
85
85
  setup, and Team Template repository selection. Team
86
86
  admins on a team without a Slack workspace see **Connect Slack** to install
@@ -300,8 +300,10 @@ gives the boxes.dev GitHub App access to the project's repositories: the
300
300
  owner's installation settings, or the install page with the owning account
301
301
  selected. `dvb agent-init check` verifies the exact writable repositories, App
302
302
  visibility, and current GitHub access before a managed launch; when an update
303
- is required, it prints the exact GitHub action and the SSH alternative. `dvb
304
- agent-init run` executes the whole plan — encrypted bundle, upload, Template
303
+ is required, it prints the exact GitHub action and the SSH alternative. If
304
+ GitHub renamed or transferred a repository after its local origin was set,
305
+ `check` and `github connect` print a `git remote set-url` command for the
306
+ current name instead of opening GitHub. `dvb agent-init run` executes the whole plan — encrypted bundle, upload, Template
305
307
  box creation, Git access configuration, and the same remote setup thread as
306
308
  desktop setup. Non-GitHub repositories keep their existing SSH entries.
307
309
  Existing version 1 and version 2 manifests remain supported without changes.
@@ -377,11 +377,38 @@ If `gh` is signed in but GitHub rejects a command with `HTTP 403: Resource not
377
377
  accessible by integration`, the command used boxes.dev GitHub App access, and
378
378
  the App lacks the permission that command needs. Repeat a `gh api` request with
379
379
  `-i` to see the `X-Accepted-GitHub-Permissions` response header, which names the
380
- missing permission, such as `actions=write` or `issues=write`. The App can view
381
- Actions runs, but it can't start, rerun, or cancel them, enable or disable
382
- workflows, or create issues. Only `gh workflow run` and `gh run rerun` print a
383
- sign-in suggestion; other commands, including `gh api` requests, show only
384
- GitHub's error.
380
+ missing permission, such as `actions=write` or `issues=write`.
381
+
382
+ Supported commands will show a direct permission-review link when the targeted
383
+ installation needs a newly requested grant. Give the user that link and ask an
384
+ installation owner to accept the update, then retry the command. Email reads
385
+ will link to Account's **Update connection** because each user must authorize
386
+ that account permission. If no link appears, use the steps below. Unavailable
387
+ metadata and an unknown account with mixed installation grants won't produce
388
+ an approval link; permission advice must not block or replay the command.
389
+
390
+ For an Actions command, ask the repository's installation owner to approve
391
+ Actions read and write in GitHub Settings → GitHub Apps → boxes.dev, then retry
392
+ the command. Existing installations keep read-only Actions access until their
393
+ owner approves the increase. Approved App access can start, rerun, and cancel
394
+ workflows and manage their runs, logs, and artifacts. Actions writes, including
395
+ `gh workflow run`, `gh run rerun`, and `gh run cancel`, will show the relevant
396
+ approval link before running when an update is needed. GitHub will still show
397
+ its original error if the command is denied.
398
+
399
+ For issue changes or publishing check results, ask the installation owner to
400
+ approve Issues and Checks read and write, then retry. The App also requests
401
+ read-only access to deployments and organization members. Reading the user's
402
+ account email addresses requires that user's approval of the updated GitHub
403
+ authorization. Choose **Update connection** in **Account** or **Integrations →
404
+ GitHub** to review and approve it.
405
+
406
+ Managed `gh` prefers connected personal access, whose requested scopes do not
407
+ include account email access. Personal access also cannot publish check runs.
408
+ For those commands, choose **Disconnect personal access** to use the App after
409
+ approving its required permissions. For other commands beyond the App's access,
410
+ optional personal access may provide the required permission. Do not change
411
+ credentials automatically after a command fails.
385
412
 
386
413
  To let `gh` use the user's own GitHub permissions, connect optional personal
387
414
  access. In **Account** settings or **Integrations → GitHub**, choose **Enable**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxes-dev/dvb-runtime",
3
- "version": "1.0.1071",
3
+ "version": "1.0.1072",
4
4
  "description": "Runtime for the boxes.dev CLI. Install @boxes-dev/dvb to use the CLI.",
5
5
  "homepage": "https://boxes.dev",
6
6
  "type": "module",
@@ -77,5 +77,5 @@
77
77
  "e2b": "^2.18.0",
78
78
  "ink-testing-library": "^4.0.0"
79
79
  },
80
- "devboxReleasedAt": "2026-10-13T20:26:52Z"
80
+ "devboxReleasedAt": "2026-10-14T03:26:02Z"
81
81
  }