@hyperdrive.bot/fleet-server 0.3.169 → 0.3.170

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.
@@ -849,7 +849,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{v
849
849
  __d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.shouldAppendSitemap=u,e.shouldAppendNotFound=s,e.getRootStackRouteNames=function(){const t=[n.INTERNAL_SLOT_NAME];s()&&t.push(n.NOT_FOUND_ROUTE_NAME);u()&&t.push(n.SITEMAP_ROUTE_NAME);return t};const o=t(r(d[0])),n=r(d[1]);function u(){const t=o.default.expoConfig?.extra?.router;return!1!==t?.sitemap}function s(){const t=o.default.expoConfig?.extra?.router;return!1!==t?.notFound}},717,[718,721]);
850
850
  __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"AppOwnership",{enumerable:!0,get:function(){return l.AppOwnership}}),Object.defineProperty(_e,"ExecutionEnvironment",{enumerable:!0,get:function(){return l.ExecutionEnvironment}}),Object.defineProperty(_e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return l.UserInterfaceIdiom}});var n=e(r(d[0])),t=r(d[1]);r(d[2]);var u=e(r(d[3])),l=r(d[4]),o=e(r(d[5]));o.default||console.warn("No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?");const s=(0,t.requireOptionalNativeModule)('ExpoUpdates');let f=null;if(s){let e;s.manifest?e=s.manifest:s.manifestString&&(e=JSON.parse(s.manifestString)),e&&Object.keys(e).length>0&&(f=e)}let c=null;if(u.default.EXDevLauncher){let e;u.default.EXDevLauncher.manifestString&&(e=JSON.parse(u.default.EXDevLauncher.manifestString)),e&&Object.keys(e).length>0&&(c=e)}let p=null;if(o.default&&o.default.manifest){const e=o.default.manifest;p='string'==typeof e?JSON.parse(e):e}let b=f??c??p;const E=o.default||{},{appOwnership:O}=E,x=(0,n.default)(E,["name","appOwnership"]),v=Object.assign({},x,{appOwnership:O??null});function _(e){return!h(e)}function h(e){return'metadata'in e}function S(e=!1){if(!b){const e=null===b?'null':'undefined';if(x.executionEnvironment,l.ExecutionEnvironment.Bare,x.executionEnvironment===l.ExecutionEnvironment.StoreClient||x.executionEnvironment===l.ExecutionEnvironment.Standalone)throw new t.CodedError('ERR_CONSTANTS_MANIFEST_UNAVAILABLE',`Constants.manifest is ${e}, must be an object.`)}return b}Object.defineProperties(v,{__unsafeNoWarnManifest:{get(){const e=S(!0);return e&&_(e)?e:null},enumerable:!1},__unsafeNoWarnManifest2:{get(){const e=S(!0);return e&&h(e)?e:null},enumerable:!1},manifest:{get(){const e=S();return e&&_(e)?e:null},enumerable:!0},manifest2:{get(){const e=S();return e&&h(e)?e:null},enumerable:!0},expoConfig:{get(){const e=S(!0);return e?s&&s.isEmbeddedLaunch?p:h(e)?e.extra?.expoClient??null:_(e)?e:null:null},enumerable:!0},expoGoConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.expoGo??null:_(e)?e:null:null},enumerable:!0},easConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.eas??null:_(e)?e:null:null},enumerable:!0},__rawManifest_TEST:{get:()=>b,set(e){b=e},enumerable:!1}});var N=v},718,[35,4,25,637,719,720]);
851
851
  __d(function(g,r,i,a,m,e,d){"use strict";var t,n,o;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AppOwnership",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ExecutionEnvironment",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return o}}),(function(t){t.Expo="expo"})(t||(t={})),(function(t){t.Bare="bare",t.Standalone="standalone",t.StoreClient="storeClient"})(n||(n={})),(function(t){t.Handset="handset",t.Tablet="tablet",t.Desktop="desktop",t.TV="tv",t.Unsupported="unsupported"})(o||(o={}))},719,[]);
852
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"Paseo\",\"slug\":\"paseo-hyperdrive\",\"version\":\"0.3.169\",\"orientation\":\"portrait\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"paseo\",\"userInterfaceStyle\":\"automatic\",\"newArchEnabled\":true,\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"Paseo\",\"orientation\":\"portrait\",\"name\":\"Paseo\"},\"autolinking\":{\"searchPaths\":[\"../../node_modules\",\"./node_modules\"]},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"autolinkingModuleResolution\":true},\"extra\":{\"router\":{},\"eas\":{\"build\":{\"experimental\":{\"ios\":{\"appExtensions\":[{\"bundleIdentifier\":\"bot.hyperdrive.paseo.AgentActivity\",\"targetName\":\"AgentActivity\"}]}}}}},\"sdkVersion\":\"54.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"]}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},720,[719]);
852
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"Paseo\",\"slug\":\"paseo-hyperdrive\",\"version\":\"0.3.170\",\"orientation\":\"portrait\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"paseo\",\"userInterfaceStyle\":\"automatic\",\"newArchEnabled\":true,\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"Paseo\",\"orientation\":\"portrait\",\"name\":\"Paseo\"},\"autolinking\":{\"searchPaths\":[\"../../node_modules\",\"./node_modules\"]},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"autolinkingModuleResolution\":true},\"extra\":{\"router\":{},\"eas\":{\"build\":{\"experimental\":{\"ios\":{\"appExtensions\":[{\"bundleIdentifier\":\"bot.hyperdrive.paseo.AgentActivity\",\"targetName\":\"AgentActivity\"}]}}}}},\"sdkVersion\":\"54.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"]}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},720,[719]);
853
853
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SITEMAP_ROUTE_NAME=e.NOT_FOUND_ROUTE_NAME=e.INTERNAL_SLOT_NAME=void 0,e.INTERNAL_SLOT_NAME='__root',e.NOT_FOUND_ROUTE_NAME='+not-found',e.SITEMAP_ROUTE_NAME='_sitemap'},721,[]);
854
854
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveHref=void 0,e.resolveHrefStringWithSegments=function(t,{segments:n=[],params:s={}}={},{relativeToDirectory:o}={}){if(t.startsWith('.')){let c=n?.map(t=>{if(!t.startsWith('['))return t;if(t.startsWith('[...')){t=t.slice(4,-1);const n=s[t];return Array.isArray(n)?n.join('/'):n?.split(',')?.join('/')??''}return t=t.slice(1,-1),s[t]}).filter(Boolean).join('/')??'/';o&&(c=`${c}/`);const f=new URL(t,`http://hostname/${c}`);t=`${f.pathname}${f.search}`}return t};function t(t,s){for(const[o,c=""]of Object.entries(s)){const f=`[${o}]`,l=`[...${o}]`;if(t.includes(f))t=t.replace(f,n(c));else{if(!t.includes(l))continue;t=t.replace(l,n(c))}delete s[o]}return{pathname:t,params:s}}function n(t){return Array.isArray(t)?t.map(t=>n(t)).join('/'):encodeURIComponent(t.toString())}function s(t){return Object.entries(t).filter(([,t])=>null!=t).map(([t,n])=>`${t}=${encodeURIComponent(n.toString())}`).join('&')}e.resolveHref=n=>{if('string'==typeof n)return(0,e.resolveHref)({pathname:n});const o=n.pathname??'';if(!n?.params)return o;const{pathname:c,params:f}=t(o,Object.assign({},n.params)),l=s(f);return c+(l?`?${l}`:'')}},722,[]);
855
855
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRoutePreloadedInStack=function(t,o){if(!t||'stack'!==t.type)return!1;return t.preloadedRoutes.some(t=>t.key===o.key)}},723,[]);
@@ -15057,7 +15057,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15057
15057
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"decodeOfferFragmentPayload",{enumerable:!0,get:function(){return n.decodeOfferFragmentPayload}}),Object.defineProperty(e,"buildDaemonWebSocketUrl",{enumerable:!0,get:function(){return t.buildDaemonWebSocketUrl}}),Object.defineProperty(e,"deriveLabelFromEndpoint",{enumerable:!0,get:function(){return t.deriveLabelFromEndpoint}}),Object.defineProperty(e,"extractHostPortFromWebSocketUrl",{enumerable:!0,get:function(){return t.extractHostPortFromWebSocketUrl}}),Object.defineProperty(e,"normalizeHostPort",{enumerable:!0,get:function(){return t.normalizeHostPort}}),Object.defineProperty(e,"parseConnectionUri",{enumerable:!0,get:function(){return t.parseConnectionUri}}),Object.defineProperty(e,"parseHostPort",{enumerable:!0,get:function(){return t.parseHostPort}}),Object.defineProperty(e,"serializeConnectionUri",{enumerable:!0,get:function(){return t.serializeConnectionUri}}),Object.defineProperty(e,"serializeConnectionUriForStorage",{enumerable:!0,get:function(){return t.serializeConnectionUriForStorage}}),Object.defineProperty(e,"shouldUseTlsForDefaultHostedRelay",{enumerable:!0,get:function(){return t.shouldUseTlsForDefaultHostedRelay}}),e.buildRelayWebSocketUrl=function(n){return(0,t.buildRelayWebSocketUrl)(Object.assign({},n,{role:"client"}))};var t=r(d[0]),n=r(d[1])},3412,[3392,3413]);
15058
15058
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ConnectionOfferV2Schema",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ConnectionOfferSchema",{enumerable:!0,get:function(){return o}}),e.decodeOfferFragmentPayload=l,e.parseConnectionOfferFromUrl=function(n){const t=f(n);if(!t)return null;const c=l(t);return o.parse(c)};var n=r(d[0]);const t=n.z.object({v:n.z.literal(2),serverId:n.z.string().min(1),daemonPublicKeyB64:n.z.string().min(1),relay:n.z.object({endpoint:n.z.string().min(1),useTls:n.z.boolean().optional()})}),o=t;function c(n){const t=n.replace(/-/g,"+").replace(/_/g,"/"),o=t.padEnd(t.length+(4-t.length%4)%4,"="),c=globalThis.atob(o),l=Uint8Array.from(c,n=>n.charCodeAt(0));return new TextDecoder("utf-8",{fatal:!0}).decode(l)}function l(n){const t=c(n);return JSON.parse(t)}const u="#offer=";function f(n){const t=n.trim();if(!t)return null;const o=t.indexOf(u);if(-1===o)return null;const c=t.slice(o+u.length).trim();return c.length>0?c:null}},3413,[3285]);
15059
15059
  __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.resolveAppVersion=function(){const e=u(t.default?.version);if(e)return e;const o=u(n.default.expoConfig?.version);if(o)return o;const f=u(n.default.manifest?.version);if(f)return f;return null};var n=e(r(d[0])),t=e(r(d[1]));function u(e){if("string"!=typeof e)return null;const n=e.trim();return 0===n.length?null:n}},3414,[718,3415]);
15060
- __d(function(e,t,r,a,o,i,n){o.exports={name:"@hyperdrive.bot/fleet-app",version:"0.3.169",private:!0,main:"index.ts",scripts:{start:"npm run start:expo","start:expo":"cross-env APP_VARIANT=development expo start","reset-project":"node ./scripts/reset-project.js","build:terminal-webview":"node ./scripts/build-terminal-webview-html.mjs","eas-build-post-install":"npm --prefix ../.. run build:app-deps && npm run build:terminal-webview",android:"npm run android:development","android:development":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo prebuild --platform android --non-interactive && cross-env APP_VARIANT=development expo run:android --variant=debug","android:production":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=production expo prebuild --platform android --non-interactive && cross-env APP_VARIANT=production expo run:android --variant=release","android:release":"npm run android:production","android:clear":"node -e \"require('node:fs').rmSync('android', { recursive: true, force: true })\"",ios:"npm --prefix ../.. run build:client && expo run:ios","ios:release":"npm --prefix ../.. run build:client && expo run:ios --configuration Release",web:"npm --prefix ../.. run build:client && concurrently --kill-others --names protocol,client,expo --prefix-colors yellow,blue,magenta \"npm --prefix ../.. run watch:protocol\" \"npm --prefix ../.. run watch:client\" \"npm run web:expo\"","web:expo":"expo start --web",lint:"expo lint",typecheck:"tsgo --noEmit",test:"vitest run","test:browser":"vitest run --project browser","test:e2e":"playwright test --project='Desktop Chrome'","test:e2e:reels":"cross-env NODE_ENV=development playwright test --config playwright.reels.config.ts","test:e2e:real":"cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=real-provider","test:e2e:ui":"playwright test --ui","test:coverage":"vitest run --project unit --coverage",build:"npm run build:web","build:web":"npm --prefix ../.. run build:app-deps && expo export --platform web --source-maps","profile:workspace-tabs":"node ./scripts/profile-workspace-tabs.mjs","deploy:web":"npm run build:web && wrangler pages deploy dist --project-name paseo-app --branch main"},dependencies:{"@bacons/apple-targets":"4.0.6","@datadog/browser-rum":"^6.23.0","@datadog/browser-rum-react":"^6.23.0","@datadog/mobile-react-native":"^2.7.0","@datadog/mobile-react-native-session-replay":"^2.14.8","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@expo/image-utils":"0.8.8","@expo/plist":"0.4.9","@expo/prebuild-config":"54.0.8","@floating-ui/react-native":"^0.10.7","@gorhom/bottom-sheet":"^5.2.14","@gorhom/portal":"^1.0.14","@hyperdrive.bot/fleet-client":"*","@hyperdrive.bot/fleet-expo-two-way-audio":"*","@hyperdrive.bot/fleet-extension-sdk":"*","@hyperdrive.bot/fleet-highlight":"*","@react-native-async-storage/async-storage":"2.2.0","@react-native-masked-view/masked-view":"^0.3.2","@react-native/normalize-colors":"^0.81.5","@react-navigation/native":"^7.1.8","@sentry/electron":"^6.11.0","@sentry/react-native":"^6.20.0","@tanstack/react-query":"^5.90.11","@tanstack/react-virtual":"^3.13.21","@xterm/addon-clipboard":"^0.3.0-beta.213","@xterm/addon-fit":"^0.12.0-beta.213","@xterm/addon-image":"^0.10.0-beta.213","@xterm/addon-ligatures":"0.11.0-beta.213","@xterm/addon-search":"^0.17.0-beta.213","@xterm/addon-unicode11":"^0.10.0-beta.213","@xterm/addon-web-links":"^0.13.0-beta.213","@xterm/addon-webgl":"^0.20.0-beta.212","@xterm/xterm":"^6.1.0-beta.213",buffer:"^6.0.3",expo:"^54.0.18","expo-asset":"~12.0.12","expo-audio":"~1.0.13","expo-background-fetch":"~14.0.9","expo-build-properties":"^1.0.9","expo-camera":"~17.0.10","expo-clipboard":"~8.0.7","expo-constants":"~18.0.9","expo-crypto":"^15.0.8","expo-dev-client":"^6.0.15","expo-document-picker":"~14.0.8","expo-file-system":"~19.0.17","expo-haptics":"~15.0.7","expo-image":"~3.0.10","expo-image-manipulator":"~14.0.8","expo-image-picker":"^17.0.8","expo-keep-awake":"^15.0.7","expo-linking":"~8.0.8","expo-localization":"~17.0.9","expo-notifications":"^0.32.16","expo-router":"~6.0.13","expo-sharing":"^14.0.8","expo-speech":"~14.0.8","expo-speech-recognition":"^56.0.1","expo-splash-screen":"~31.0.10","expo-system-ui":"~6.0.7","expo-task-manager":"~14.0.9","expo-video":"~3.0.16","fast-deep-equal":"^3.1.3",htmlparser2:"^12.0.0",i18next:"^26.3.0","lucide-react-native":"^0.546.0","markdown-it":"^10.0.0","mnemonic-id":"^3.2.7","posthog-js":"^1.431.2","posthog-react-native":"^4.72.0",qrcode:"^1.5.4",react:"19.1.0","react-dom":"19.1.0","react-i18next":"^17.0.8","react-native":"0.81.5","react-native-draggable-flatlist":"^4.0.3","react-native-edge-to-edge":"^1.7.0","react-native-gesture-handler":"~2.28.0","react-native-keyboard-controller":"^1.21.7","react-native-markdown-display":"^7.0.2","react-native-nitro-modules":"0.35.5","react-native-reanimated":"~4.3.1","react-native-safe-area-context":"~5.6.0","react-native-screens":"~4.16.0","react-native-svg":"^15.14.0","react-native-uitextview":"^2.2.0","react-native-unistyles":"^3.2.4","react-native-web":"~0.21.0","react-native-webview":"^13.16.0","react-native-worklets":"~0.8.3","tiny-invariant":"^1.3.3","use-sync-external-store":"^1.6.0",zod:"^4.4.3",zustand:"^5.0.9"},devDependencies:{"@playwright/test":"^1.56.1","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.2","@types/chai":"^5.2.2","@types/markdown-it":"^14.1.2","@types/qrcode":"^1.5.6","@types/react":"~19.2.0","@types/ws":"^8.18.1","@vitest/browser":"^4.1.7","@vitest/browser-playwright":"^4.1.7","@vitest/coverage-v8":"^4.1.7","@xterm/headless":"^6.1.0-beta.213",dotenv:"^17.2.3",eslint:"^9.25.0","eslint-config-expo":"~10.0.0",jsdom:"^20.0.3","material-icon-theme":"^5.32.0",playwright:"^1.56.1","serve-sim":"^0.1.40",typescript:"~5.9.2",vitest:"^4.1.6",wrangler:"^4.105.0",ws:"^8.20.0"}}},3415,[]);
15060
+ __d(function(e,t,r,a,o,i,n){o.exports={name:"@hyperdrive.bot/fleet-app",version:"0.3.170",private:!0,main:"index.ts",scripts:{start:"npm run start:expo","start:expo":"cross-env APP_VARIANT=development expo start","reset-project":"node ./scripts/reset-project.js","build:terminal-webview":"node ./scripts/build-terminal-webview-html.mjs","eas-build-post-install":"npm --prefix ../.. run build:app-deps && npm run build:terminal-webview",android:"npm run android:development","android:development":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo prebuild --platform android --non-interactive && cross-env APP_VARIANT=development expo run:android --variant=debug","android:production":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=production expo prebuild --platform android --non-interactive && cross-env APP_VARIANT=production expo run:android --variant=release","android:release":"npm run android:production","android:clear":"node -e \"require('node:fs').rmSync('android', { recursive: true, force: true })\"",ios:"npm --prefix ../.. run build:client && expo run:ios","ios:release":"npm --prefix ../.. run build:client && expo run:ios --configuration Release",web:"npm --prefix ../.. run build:client && concurrently --kill-others --names protocol,client,expo --prefix-colors yellow,blue,magenta \"npm --prefix ../.. run watch:protocol\" \"npm --prefix ../.. run watch:client\" \"npm run web:expo\"","web:expo":"expo start --web",lint:"expo lint",typecheck:"tsgo --noEmit",test:"vitest run","test:browser":"vitest run --project browser","test:e2e":"playwright test --project='Desktop Chrome'","test:e2e:reels":"cross-env NODE_ENV=development playwright test --config playwright.reels.config.ts","test:e2e:real":"cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=real-provider","test:e2e:ui":"playwright test --ui","test:coverage":"vitest run --project unit --coverage",build:"npm run build:web","build:web":"npm --prefix ../.. run build:app-deps && expo export --platform web --source-maps","profile:workspace-tabs":"node ./scripts/profile-workspace-tabs.mjs","deploy:web":"npm run build:web && wrangler pages deploy dist --project-name paseo-app --branch main"},dependencies:{"@bacons/apple-targets":"4.0.6","@datadog/browser-rum":"^6.23.0","@datadog/browser-rum-react":"^6.23.0","@datadog/mobile-react-native":"^2.7.0","@datadog/mobile-react-native-session-replay":"^2.14.8","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@expo/image-utils":"0.8.8","@expo/plist":"0.4.9","@expo/prebuild-config":"54.0.8","@floating-ui/react-native":"^0.10.7","@gorhom/bottom-sheet":"^5.2.14","@gorhom/portal":"^1.0.14","@hyperdrive.bot/fleet-client":"*","@hyperdrive.bot/fleet-expo-two-way-audio":"*","@hyperdrive.bot/fleet-extension-sdk":"*","@hyperdrive.bot/fleet-highlight":"*","@react-native-async-storage/async-storage":"2.2.0","@react-native-masked-view/masked-view":"^0.3.2","@react-native/normalize-colors":"^0.81.5","@react-navigation/native":"^7.1.8","@sentry/electron":"^6.11.0","@sentry/react-native":"^6.20.0","@tanstack/react-query":"^5.90.11","@tanstack/react-virtual":"^3.13.21","@xterm/addon-clipboard":"^0.3.0-beta.213","@xterm/addon-fit":"^0.12.0-beta.213","@xterm/addon-image":"^0.10.0-beta.213","@xterm/addon-ligatures":"0.11.0-beta.213","@xterm/addon-search":"^0.17.0-beta.213","@xterm/addon-unicode11":"^0.10.0-beta.213","@xterm/addon-web-links":"^0.13.0-beta.213","@xterm/addon-webgl":"^0.20.0-beta.212","@xterm/xterm":"^6.1.0-beta.213",buffer:"^6.0.3",expo:"^54.0.18","expo-asset":"~12.0.12","expo-audio":"~1.0.13","expo-background-fetch":"~14.0.9","expo-build-properties":"^1.0.9","expo-camera":"~17.0.10","expo-clipboard":"~8.0.7","expo-constants":"~18.0.9","expo-crypto":"^15.0.8","expo-dev-client":"^6.0.15","expo-document-picker":"~14.0.8","expo-file-system":"~19.0.17","expo-haptics":"~15.0.7","expo-image":"~3.0.10","expo-image-manipulator":"~14.0.8","expo-image-picker":"^17.0.8","expo-keep-awake":"^15.0.7","expo-linking":"~8.0.8","expo-localization":"~17.0.9","expo-notifications":"^0.32.16","expo-router":"~6.0.13","expo-sharing":"^14.0.8","expo-speech":"~14.0.8","expo-speech-recognition":"^56.0.1","expo-splash-screen":"~31.0.10","expo-system-ui":"~6.0.7","expo-task-manager":"~14.0.9","expo-video":"~3.0.16","fast-deep-equal":"^3.1.3",htmlparser2:"^12.0.0",i18next:"^26.3.0","lucide-react-native":"^0.546.0","markdown-it":"^10.0.0","mnemonic-id":"^3.2.7","posthog-js":"^1.431.2","posthog-react-native":"^4.72.0",qrcode:"^1.5.4",react:"19.1.0","react-dom":"19.1.0","react-i18next":"^17.0.8","react-native":"0.81.5","react-native-draggable-flatlist":"^4.0.3","react-native-edge-to-edge":"^1.7.0","react-native-gesture-handler":"~2.28.0","react-native-keyboard-controller":"^1.21.7","react-native-markdown-display":"^7.0.2","react-native-nitro-modules":"0.35.5","react-native-reanimated":"~4.3.1","react-native-safe-area-context":"~5.6.0","react-native-screens":"~4.16.0","react-native-svg":"^15.14.0","react-native-uitextview":"^2.2.0","react-native-unistyles":"^3.2.4","react-native-web":"~0.21.0","react-native-webview":"^13.16.0","react-native-worklets":"~0.8.3","tiny-invariant":"^1.3.3","use-sync-external-store":"^1.6.0",zod:"^4.4.3",zustand:"^5.0.9"},devDependencies:{"@playwright/test":"^1.56.1","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.2","@types/chai":"^5.2.2","@types/markdown-it":"^14.1.2","@types/qrcode":"^1.5.6","@types/react":"~19.2.0","@types/ws":"^8.18.1","@vitest/browser":"^4.1.7","@vitest/browser-playwright":"^4.1.7","@vitest/coverage-v8":"^4.1.7","@xterm/headless":"^6.1.0-beta.213",dotenv:"^17.2.3",eslint:"^9.25.0","eslint-config-expo":"~10.0.0",jsdom:"^20.0.3","material-icon-theme":"^5.32.0",playwright:"^1.56.1","serve-sim":"^0.1.40",typescript:"~5.9.2",vitest:"^4.1.6",wrangler:"^4.105.0",ws:"^8.20.0"}}},3415,[]);
15061
15061
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.shouldUseDesktopDaemon=function(){return(0,n.isElectronRuntime)()},e.getDesktopDaemonStatus=async function(){return c(await(0,t.invokeDesktopCommand)("desktop_daemon_status"))},e.startDesktopDaemon=async function(){return c(await(0,t.invokeDesktopCommand)("start_desktop_daemon"))},e.stopDesktopDaemon=async function(n="manual_ipc"){return c(await(0,t.invokeDesktopCommand)("stop_desktop_daemon",{reason:n}))},e.restartDesktopDaemon=async function(){return c(await(0,t.invokeDesktopCommand)("restart_desktop_daemon"))},e.getDesktopDaemonLogs=async function(){return p(await(0,t.invokeDesktopCommand)("desktop_daemon_logs"))},e.getDesktopDaemonPairing=async function(){return k(await(0,t.invokeDesktopCommand)("desktop_daemon_pairing"))},e.getCliDaemonStatus=async function(){const n=await(0,t.invokeDesktopCommand)("cli_daemon_status");if("string"!=typeof n)throw new Error("Unexpected CLI daemon status response.");return n},e.listenToLocalTransportEvents=async function(t){const u=(0,n.getDesktopHost)()?.events?.on;if("function"!=typeof u)throw new Error("Desktop events API is unavailable.");const c=await u("local-daemon-transport-event",n=>{o(n)&&t({sessionId:s(n.sessionId)??"",kind:s(n.kind)??"error",text:s(n.text),binaryBase64:s(n.binaryBase64),code:l(n.code),reason:s(n.reason),error:s(n.error)})});return"function"==typeof c?c:()=>{}},e.openLocalTransportSession=async function(n){const o=await(0,t.invokeDesktopCommand)("open_local_daemon_transport",n);if("string"!=typeof o||0===o.trim().length)throw new Error("Unexpected local transport session response.");return o},e.sendLocalTransportMessage=async function(n){await(0,t.invokeDesktopCommand)("send_local_daemon_transport_message",Object.assign({sessionId:n.sessionId},n.text?{text:n.text}:{},n.binaryBase64?{binaryBase64:n.binaryBase64}:{}))},e.closeLocalTransportSession=async function(n){await(0,t.invokeDesktopCommand)("close_local_daemon_transport",{sessionId:n})},e.getCliInstallStatus=async function(){return f(await(0,t.invokeDesktopCommand)("get_cli_install_status"))},e.installCli=async function(){return f(await(0,t.invokeDesktopCommand)("install_cli"))},e.getSkillsStatus=async function(){return y(await(0,t.invokeDesktopCommand)("get_skills_status"))},e.installSkills=async function(){return y(await(0,t.invokeDesktopCommand)("install_skills"))},e.updateSkills=async function(){return y(await(0,t.invokeDesktopCommand)("update_skills"))},e.uninstallSkills=async function(){return y(await(0,t.invokeDesktopCommand)("uninstall_skills"))};var n=r(d[0]),t=r(d[1]);function o(n){return"object"==typeof n&&null!==n}function s(n){return"string"==typeof n&&n.trim().length>0?n:null}function l(n){return"number"==typeof n&&Number.isFinite(n)?n:null}function u(n){const t=s(n)?.toLowerCase();switch(t){case"starting":return"starting";case"running":return"running";case"errored":case"error":return"errored";default:return"stopped"}}function c(n){if(!o(n))throw new Error("Unexpected desktop daemon status response.");return{serverId:s(n.serverId)??"",status:u(n.status),listen:s(n.listen),hostname:s(n.hostname),pid:l(n.pid),home:s(n.home)??"",version:s(n.version),desktopManaged:!0===n.desktopManaged,error:s(n.error)}}function p(n){if(!o(n))throw new Error("Unexpected desktop daemon logs response.");return{logPath:s(n.logPath)??"",contents:"string"==typeof n.contents?n.contents:""}}function k(n){if(!o(n))throw new Error("Unexpected desktop daemon pairing response.");return{relayEnabled:!0===n.relayEnabled,url:s(n.url),qr:s(n.qr)}}function f(n){if(!o(n))throw new Error("Unexpected install status response.");return{installed:!0===n.installed}}function w(n){switch(n){case"not-installed":case"up-to-date":case"drift":return n;default:throw new Error(`Unexpected skills status state: ${String(n)}`)}}function _(n){if(!o(n))throw new Error("Unexpected skill op response.");const t=s(n.name);if(!t)throw new Error("Skill op missing name.");switch(n.kind){case"add":return{kind:"add",name:t};case"update":return{kind:"update",name:t};case"delete":return{kind:"delete",name:t};default:throw new Error(`Unexpected skill op kind: ${String(n.kind)}`)}}function y(n){if(!o(n))throw new Error("Unexpected skills status response.");const t=Array.isArray(n.ops)?n.ops.map(_):[];return{state:w(n.state),ops:t}}},3416,[3417,3419]);
15062
15062
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getDesktopHost=n,e.isElectronRuntime=o,e.isElectronRuntimeMac=function(){if(!o())return!1;if("undefined"==typeof navigator)return!1;const t=n()?.platform?.toLowerCase();if("darwin"===t||"mac"===t||"macos"===t)return!0;const u=navigator.userAgent;return u.includes("Mac OS")||u.includes("Macintosh")},r(d[0]);var t=r(d[1]);function n(){return(0,t.getElectronHost)()}function o(){return null!==n()}},3417,[25,3418]);
15063
15063
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getElectronHost=function(){if("undefined"==typeof window)return null;const t=window.paseoDesktop;if(!t||"object"!=typeof t)return null;return t}},3418,[]);
@@ -15624,7 +15624,7 @@ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',
15624
15624
  __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.toAgentScreenFrame=C,_e.AgentScreenSheet=function({visible:e,isFocused:j,onClose:F,serverId:I,agentId:T}){const{t:A}=(0,u.useTranslation)(),{theme:M}=(0,c.useUnistyles)(),{settings:E}=(0,S.useAppSettings)(),z=(0,l.useSafeAreaInsets)(),R=(0,x.useSessionStore)(e=>e.sessions[I]?.client??null),V=(0,s.useRef)(null),[$,H]=(0,s.useState)({kind:"loading"}),L=(0,s.useMemo)(()=>(0,k.toXtermTheme)(M.colors.terminal),[M]),P=(0,s.useMemo)(()=>{const e=E.monoFontFamily.trim();return e.length>0?e:void 0},[E.monoFontFamily]),B=(0,s.useMemo)(()=>`agent-screen:${I}:${T}`,[I,T]);(0,s.useEffect)(()=>{if(!e)return void H({kind:"loading"});if(!R)return void H({kind:"error"});let t=!1;const n=async()=>{try{const e=await R.captureAgentPane(T,{ansi:!0,scrollbackLines:v});if(t)return;H(null===e.screen?{kind:"unavailable"}:{kind:"ready",screen:e.screen,capturedAt:e.capturedAt})}catch{t||H({kind:"error"})}};n();const s=setInterval(()=>{n()},b);return()=>{t=!0,clearInterval(s)}},[e,R,T]);const O=(0,s.useRef)(null),D=(0,s.useRef)(null),K=(0,s.useCallback)(e=>{const t=V.current;if(!t)return;const n=`${B}\0${e}`;O.current!==n&&(O.current=n,t.restoreOutput((new TextEncoder).encode(C(e)),{preserveScroll:!0}))},[B]);(0,s.useEffect)(()=>{if("ready"!==$.kind)return D.current=null,void(O.current=null);D.current=$.screen,K($.screen)},[$,K]);const N=(0,s.useCallback)(({isReady:e})=>{O.current=null;const t=D.current;e&&null!==t&&K(t)},[K]);(0,s.useEffect)(()=>{if(e&&j&&y.isWeb)return(0,f.pushEscHandler)(F)},[e,j,F]),(0,s.useEffect)(()=>{if(!e||!j||!y.isNative)return;const t=o.default.addEventListener("hardwareBackPress",()=>(F(),!0));return()=>t.remove()},[e,j,F]);const U=(0,s.useMemo)(()=>({title:A("workspace.agentScreen.title")}),[A]),W=(0,s.useMemo)(()=>[_.overlay,{paddingBottom:z.bottom}],[z.bottom]),X=(0,s.useCallback)(()=>"unavailable"===$.kind?(0,p.jsx)(t.View,{style:_.centerState,children:(0,p.jsx)(n.Text,{style:_.stateText,children:A("workspace.agentScreen.unavailable")})}):"error"===$.kind?(0,p.jsx)(t.View,{style:_.centerState,children:(0,p.jsx)(n.Text,{style:_.stateText,children:A("workspace.agentScreen.error")})}):(0,p.jsx)(t.View,{style:_.terminalContainer,children:(0,p.jsx)(h.default,{ref:V,dom:w,streamKey:B,testId:"agent-screen-surface",onRendererReadyChange:N,xtermTheme:L,scrollbackLines:v,fontFamily:P,fontSize:E.codeFontSize})}),[$,A,B,L,P,E.codeFontSize,N]);if(!e)return null;return(0,p.jsxs)(t.View,{style:W,testID:"agent-screen-sheet",children:[(0,p.jsx)(f.SheetHeaderView,{header:U,onClose:F}),(0,p.jsx)(t.View,{style:_.body,children:X()})]})};var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=e(r(d[3]));r(d[4]),r(d[5]);var l=r(d[6]),c=r(d[7]),u=r(d[8]),f=r(d[9]),y=r(d[10]),h=e(r(d[11])),S=r(d[12]),x=r(d[13]),k=r(d[14]),p=r(d[15]);const b=1e3,v=200,w={style:{flex:1},matchContents:!1};function C(e){return`\x1b[?2026h\x1b[?7l${e.replace(/\r?\n$/,"").replace(/\r?\n/g,"\r\n")}\x1b[?2026l`}const _=c.StyleSheet.create(e=>({overlay:{position:"absolute",top:0,right:0,bottom:0,left:0,zIndex:50,backgroundColor:e.colors.surface0,uni__dependencies:[0]},body:{flex:1,minHeight:0},terminalContainer:{flex:1,minHeight:0,backgroundColor:e.colors.background,uni__dependencies:[0]},centerState:{flex:1,alignItems:"center",justifyContent:"center",padding:16},stateText:{color:e.colors.foregroundMuted,fontSize:e.fontSize.sm,textAlign:"center",uni__dependencies:[0]}}))},3969,[348,349,36,616,234,146,558,56,352,3488,3420,3970,3597,3429,3989,279]);
15625
15625
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return F}});var t=r(d[0]),n=r(d[1]);r(d[2]);var o=r(d[3]),s=r(d[4]),u=r(d[5]),l=r(d[6]),c=r(d[7]),f=r(d[8]),p=r(d[9]);const v=6,h=9,b=18,w=8,S=.62,E=.78,y=.9,L=220,k=240,z=90,x=1200,R=110,T="terminal-emulator-webkit-scrollbar-style",M={flex:1,minHeight:0,minWidth:0,width:"100%",height:"100%",overflow:"hidden",overscrollBehavior:"none",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},C={position:"absolute",top:0,right:0,bottom:0,width:12,display:"flex",alignItems:"center",justifyContent:"flex-start",zIndex:10,pointerEvents:"none"};function O(t,n,o){return Math.min(o,Math.max(n,t))}function D(){if("undefined"==typeof document)return;if(document.getElementById(T))return;const t=document.createElement("style");t.id=T,t.textContent="\n [data-terminal-scrollbar-root=\"true\"] .xterm-viewport {\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n\n [data-terminal-scrollbar-root=\"true\"] .xterm-viewport::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n ",document.head.appendChild(t)}function F({ref:T,streamKey:F,testId:P="terminal-surface",xtermTheme:I={background:"#0b0b0b",foreground:"#e6e6e6",cursor:"#e6e6e6"},scrollbackLines:j,fontFamily:H,fontSize:B,swipeGesturesEnabled:A=!1,onSwipeLeft:K,onSwipeRight:U,initialSnapshot:Y=null,onInput:q,onFocus:$,onResize:W,onTerminalKey:_,onPendingModifiersConsumed:G,onInputModeChange:V,onResolveLocalFileLink:X,onOpenLocalFileLink:J,onRendererReadyChange:N,pendingModifiers:Q={ctrl:!1,shift:!1,alt:!1},focusRequestToken:Z=0,resizeRequestToken:ee=0}){const te=(0,t.useRef)(null),ne=(0,t.useRef)(null),re=(0,t.useRef)(null),oe=(0,t.useRef)(I),ie=(0,t.useRef)(H),se=(0,t.useRef)(B),ae=(0,t.useRef)(j);ae.current=j,ie.current=H,se.current=B;const ue=(0,t.useRef)(null),le=(0,t.useRef)(0),ce=(0,t.useRef)(0),de=(0,t.useRef)(null),fe=(0,t.useRef)(null),pe=(0,t.useRef)(null),me=(0,t.useRef)({offset:0,viewportSize:0,contentSize:0}),ve=(0,t.useMemo)(()=>{return[(t=I).background,t.foreground,t.cursor,t.cursorAccent,t.selectionBackground,t.selectionForeground,t.black,t.red,t.green,t.yellow,t.blue,t.magenta,t.cyan,t.white,t.brightBlack,t.brightRed,t.brightGreen,t.brightYellow,t.brightBlue,t.brightMagenta,t.brightCyan,t.brightWhite].map(t=>"string"==typeof t?t:"").join("|");var t},[I]),ge=(0,t.useRef)(I);ge.current=I;const he=(0,t.useRef)(N);he.current=N;const be=(0,t.useRef)({onInput:q,onResize:W,onTerminalKey:_,onPendingModifiersConsumed:G,onInputModeChange:V,onResolveLocalFileLink:X,onOpenLocalFileLink:J});be.current={onInput:q,onResize:W,onTerminalKey:_,onPendingModifiersConsumed:G,onInputModeChange:V,onResolveLocalFileLink:X,onOpenLocalFileLink:J};const we=(0,t.useRef)(Y);we.current=Y;const Se=(0,t.useRef)(Q);Se.current=Q;const[Ee,ye]=(0,t.useState)({offset:0,viewportSize:0,contentSize:0}),[Le,ke]=(0,t.useState)(!1),[ze,xe]=(0,t.useState)(!1),[Re,Te]=(0,t.useState)(!1),[Me,Ce]=(0,t.useState)(!1),[Oe,De]=(0,t.useState)(!1),Fe=(0,t.useRef)(null),Pe=(0,t.useCallback)(t=>{const n=me.current;t.offset===n.offset&&t.viewportSize===n.viewportSize&&t.contentSize===n.contentSize||(me.current=t,ye(t))},[]),Ie=(0,t.useRef)(null);(0,n.useDOMImperativeHandle)(Ie,()=>({writeOutput:(...t)=>{const n=t[0];n instanceof Uint8Array&&re.current?.write({data:n})},restoreOutput:(...t)=>{const n=t[0],o=t[1],s="object"==typeof o&&null!==o&&!0===o.preserveScroll;n instanceof Uint8Array&&re.current?.restoreOutput({data:n,preserveScroll:s})},renderSnapshot:(...t)=>{const n=t[0];var o;null===n?re.current?.renderSnapshot({state:null}):"object"==typeof(o=n)&&null!==o&&"rows"in o&&"cols"in o&&"grid"in o&&re.current?.renderSnapshot({state:n})},clear:()=>{re.current?.clear()},blur:()=>{re.current?.blur()}}),[]),(0,t.useImperativeHandle)(T,()=>({writeOutput:t=>{re.current?.write({data:t})},restoreOutput:(t,n)=>{re.current?.restoreOutput({data:t,preserveScroll:n?.preserveScroll})},renderSnapshot:t=>{re.current?.renderSnapshot({state:t})},clear:()=>{re.current?.clear()},blur:()=>{re.current?.blur()}}),[]),(0,t.useEffect)(()=>{const t=ge.current;oe.current=t,re.current?.setTheme({theme:t})},[ve]),(0,t.useEffect)(()=>{re.current?.setScrollback({lines:j})},[j]),(0,t.useEffect)(()=>{D()},[]),(0,t.useEffect)(()=>{const t=te.current;if(!t||!A)return()=>{};let n=!1,o=null,s=0,u=0,l=!1;const c=()=>{n=!1,o=null,s=0,u=0,l=!1},f=(t,n)=>{const o=Math.abs(t),s=Math.abs(n);return!(s<12)&&s>o},p=(t,n)=>{const o=Math.abs(t),s=Math.abs(n);return!(o<22)&&(0===s||o/s>=1.2)},v=t=>{t.isPrimary&&(n=!0,l=!1,o=t.pointerId,s=t.clientX,u=t.clientY)},h=t=>{if(!n||l)return;if(null!==o&&t.pointerId!==o)return;const v=t.clientX-s,h=t.clientY-u;f(v,h)?c():p(v,h)&&(l=!0,v>0?U?.():K?.(),t.cancelable&&t.preventDefault())},b=t=>{null!==o&&t.pointerId!==o||c()},w=t=>{null!==o&&t.pointerId!==o||c()};return t.addEventListener("pointerdown",v,{passive:!0}),t.addEventListener("pointermove",h,{passive:!1}),t.addEventListener("pointerup",b,{passive:!0}),t.addEventListener("pointercancel",w,{passive:!0}),()=>{t.removeEventListener("pointerdown",v),t.removeEventListener("pointermove",h),t.removeEventListener("pointerup",b),t.removeEventListener("pointercancel",w)}},[K,U,A]),(0,t.useEffect)(()=>{const t=ne.current,n=te.current;if(!t||!n)return()=>{};const u=new o.TerminalEmulatorRuntime;return re.current=u,u.setCallbacks({callbacks:Object.assign({},be.current,{onOpenExternalUrl:s.openExternalUrl})}),u.setPendingModifiers({pendingModifiers:Se.current}),u.mount({root:n,host:t,initialSnapshot:we.current,scrollback:ae.current,theme:oe.current,fontFamily:ie.current,fontSize:se.current}),he.current?.({streamKey:F,isReady:!0}),()=>{u.unmount(),he.current?.({streamKey:F,isReady:!1}),re.current===u&&(re.current=null)}},[F]),(0,t.useEffect)(()=>{re.current?.setCallbacks({callbacks:{onInput:q,onResize:W,onTerminalKey:_,onPendingModifiersConsumed:G,onInputModeChange:V,onResolveLocalFileLink:X,onOpenLocalFileLink:J,onOpenExternalUrl:s.openExternalUrl}})},[q,V,J,G,X,W,_]),(0,t.useEffect)(()=>{re.current?.setPendingModifiers({pendingModifiers:Q})},[Q]),(0,t.useEffect)(()=>{re.current?.setFont({fontFamily:H,fontSize:B})},[H,B]),(0,t.useEffect)(()=>Z<=0?()=>{}:(re.current?.resize({force:!0,shouldClaim:!0}),(0,u.focusWithRetries)({focus:()=>{re.current?.focus()},isFocused:()=>{const t=te.current;if(!t)return!1;const n="undefined"!=typeof document?document.activeElement:null;return n instanceof HTMLElement&&t.contains(n)}})),[Z]),(0,t.useEffect)(()=>{ee<=0||re.current?.resize({force:!0,shouldClaim:!0})},[ee]),(0,t.useEffect)(()=>{const t=ne.current;if(!t)return()=>{};const n=t.querySelector(".xterm-viewport");if(!n)return ue.current=null,Pe({offset:0,viewportSize:0,contentSize:0}),()=>{};ue.current=n;const o=()=>{const t=Math.max(0,n.scrollTop),o=Math.max(0,n.clientHeight),s=Math.max(0,n.scrollHeight);Pe({offset:t,viewportSize:o,contentSize:s})};o();let s=null;const u=()=>{null===s&&(s=requestAnimationFrame(()=>{s=null,o()}))},l=new ResizeObserver(()=>{o()});l.observe(n);const c=t.querySelector(".xterm-scroll-area");return c&&l.observe(c),n.addEventListener("scroll",u,{passive:!0}),()=>{null!==s&&(cancelAnimationFrame(s),s=null),n.removeEventListener("scroll",u),l.disconnect(),ue.current===n&&(ue.current=null)}},[F,Pe]),(0,t.useEffect)(()=>{const t=Math.max(0,Ee.contentSize-Ee.viewportSize),n=O(Ee.offset,0,t);if(t<=0||Ee.viewportSize<=0)return Te(!1),Ce(!1),void(pe.current=null);const o=pe.current;pe.current=n,null===o||Math.abs(o-n)<=.5||(Te(!0),null!==de.current&&clearTimeout(de.current),de.current=setTimeout(()=>{Te(!1),de.current=null},x),Ce(!0),null!==fe.current&&clearTimeout(fe.current),fe.current=setTimeout(()=>{Ce(!1),fe.current=null},R))},[Ee.contentSize,Ee.offset,Ee.viewportSize]),(0,t.useEffect)(()=>()=>{null!==de.current&&clearTimeout(de.current),null!==fe.current&&clearTimeout(fe.current)},[]);const je=(0,t.useMemo)(()=>(0,l.computeVerticalScrollbarGeometry)({viewportSize:Ee.viewportSize,contentSize:Ee.contentSize,offset:Ee.offset}),[Ee.contentSize,Ee.offset,Ee.viewportSize]);(0,t.useEffect)(()=>{if(!ze)return()=>{};const t=t=>{const n=t.clientY-ce.current,o=(0,l.computeScrollOffsetFromDragDelta)({startOffset:le.current,dragDelta:n,maxScrollOffset:je.maxScrollOffset,maxHandleOffset:je.maxHandleOffset}),s=ue.current;s&&(s.scrollTop=o,Pe({offset:o,viewportSize:Math.max(0,s.clientHeight),contentSize:Math.max(0,s.scrollHeight)}))},n=()=>{xe(!1)};return window.addEventListener("pointermove",t),window.addEventListener("pointerup",n),window.addEventListener("pointercancel",n),()=>{window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",n),window.removeEventListener("pointercancel",n)}},[ze,je.maxHandleOffset,je.maxScrollOffset,Pe]);const He=je.isVisible&&(ze||Re||Le);let Be;Be=ze?y:Le?E:Re?S:0;const Ae=ze||Le?h:v,Ke=Math.max(0,je.handleOffset-w),Ue=Math.min(Ee.viewportSize-Ke,je.handleSize+16),Ye=Math.max(0,(Ue-je.handleSize)/2),qe=ze||Me?0:z,$e=(0,t.useCallback)(()=>{const t=window.paseoDesktop?.menu?.showContextMenu;if("function"!=typeof t)return;t({kind:"terminal",hasSelection:Boolean(window.getSelection()?.toString())})},[]),We=(0,t.useCallback)(()=>{$?.(),re.current?.focus()},[$]),_e=(0,t.useCallback)(t=>{t.preventDefault(),$e()},[$e]),Ge=je.maxScrollOffset,Ve=(0,t.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),le.current=O(Ee.offset,0,Ge),ce.current=t.clientY,xe(!0)},[Ge,Ee.offset]),Xe=(0,t.useCallback)(()=>{(Re||ze)&&ke(!0)},[Re,ze]),Je=(0,t.useCallback)(()=>{ke(!1)},[]),Ne=(0,t.useCallback)(()=>{null!==Fe.current&&(clearTimeout(Fe.current),Fe.current=null)},[]),Qe=(0,t.useCallback)(()=>{Ne(),De(!1)},[Ne]),Ze=(0,t.useCallback)(()=>{Ne(),De(!0),Fe.current=setTimeout(()=>{Fe.current=null,De(!1)},180)},[Ne]);(0,t.useEffect)(()=>{const t=te.current;if(!t)return()=>{};const n=t=>{(0,c.isTerminalFileDrag)(t.dataTransfer)&&(t.preventDefault(),t.stopPropagation(),Ze())},o=t=>{(0,c.isTerminalFileDrag)(t.dataTransfer)&&(t.preventDefault(),t.stopPropagation(),t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),Ze())},s=t=>{if(!(0,c.isTerminalFileDrag)(t.dataTransfer))return;t.preventDefault(),t.stopPropagation(),Qe();const n=(0,f.getDesktopHost)(),o=(0,c.extractTerminalDropPaths)(t.dataTransfer,n);0!==o.length&&(re.current?.focus(),be.current.onInput?.((0,c.prepareDroppedPathsForTerminal)(o,n)))};return t.addEventListener("dragenter",n,{capture:!0}),t.addEventListener("dragover",o,{capture:!0}),t.addEventListener("drop",s,{capture:!0}),window.addEventListener("dragend",Qe),window.addEventListener("drop",Qe),()=>{t.removeEventListener("dragenter",n,{capture:!0}),t.removeEventListener("dragover",o,{capture:!0}),t.removeEventListener("drop",s,{capture:!0}),window.removeEventListener("dragend",Qe),window.removeEventListener("drop",Qe),Ne()}},[Ne,Qe,Ze]);const et=(0,t.useCallback)(t=>{(0,c.isTerminalFileDrag)(t.dataTransfer)&&(t.preventDefault(),t.stopPropagation(),(0,c.isTerminalDragLeaveOutside)({currentTarget:t.currentTarget,relatedTarget:t.relatedTarget})&&Qe())},[Qe]),tt=(0,t.useMemo)(()=>({position:"relative",display:"flex",width:"100%",height:"100%",minHeight:0,minWidth:0,backgroundColor:I.background??"#0b0b0b",overflow:"hidden",overscrollBehavior:"none",touchAction:"pan-y"}),[I.background]),nt=(0,t.useMemo)(()=>({position:"absolute",inset:0,zIndex:9,border:"1px solid rgba(78, 161, 255, 0.72)",backgroundColor:"rgba(78, 161, 255, 0.16)",opacity:Oe?1:0,pointerEvents:"none",transition:"opacity 120ms ease-out"}),[Oe]),rt=(0,t.useMemo)(()=>({position:"absolute",top:0,right:-3,width:b,height:Ue,transform:`translateY(${Ke}px)`,cursor:ze?"grabbing":"grab",touchAction:"none",userSelect:"none",transitionProperty:"transform",transitionDuration:`${qe}ms`,transitionTimingFunction:"linear",pointerEvents:He?"auto":"none"}),[Ue,Ke,ze,qe,He]),ot=(0,t.useMemo)(()=>({marginTop:Ye,height:je.handleSize,width:Ae,borderRadius:999,alignSelf:"center",backgroundColor:"rgba(113, 113, 122, 1)",opacity:Be,transitionProperty:"opacity, width, background-color",transitionDuration:`${L}ms, ${k}ms, ${L}ms`,transitionTimingFunction:"ease-out, cubic-bezier(0.22, 0.75, 0.2, 1), ease-out"}),[Ye,je.handleSize,Ae,Be]);return(0,p.jsxs)("div",{ref:te,"data-testid":P,"data-terminal-scrollbar-root":"true",style:tt,onPointerDown:We,onContextMenu:_e,onDragLeave:et,children:[(0,p.jsx)("div",{ref:ne,style:M}),(0,p.jsx)("div",{style:nt}),je.isVisible?(0,p.jsx)("div",{style:C,children:(0,p.jsx)("div",{style:rt,onPointerDown:Ve,onPointerEnter:Xe,onPointerLeave:Je,children:(0,p.jsx)("div",{style:ot})})}):null]})}},3970,[36,742,3971,3972,3584,3518,3494,3988,3417,279]);
15626
15626
  __d(function(g,r,i,a,m,e,d){},3971,[]);
15627
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.encodeTerminalOutput=S,Object.defineProperty(e,"TerminalEmulatorRuntime",{enumerable:!0,get:function(){return R}});var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),h=r(d[7]),p=r(d[8]),f=r(d[9]),y=r(d[10]),v=r(d[11]),w=r(d[12]);function b(t){try{const s=t.buffer.active,o=Math.max(0,s.baseY-s.viewportY);if(0===o)return null;for(let n=0;n<t.rows;n++){const t=s.getLine(s.viewportY+n)?.translateToString(!0)??"";if(t.trim().length>0)return{linesAboveBottom:o,text:t,offset:n}}return{linesAboveBottom:o,text:null,offset:0}}catch{return null}}function O(t,s){try{const o=t.buffer.active,n=Math.max(0,o.baseY-s.linesAboveBottom);let l=n;if(null!==s.text){const t=n+s.offset;let u=-1;for(let n=0;n<o.length;n++)o.getLine(n)?.translateToString(!0)===s.text&&(-1===u||Math.abs(n-t)<Math.abs(u-t))&&(u=n);-1!==u&&(l=Math.max(0,u-s.offset))}t.scrollToLine(Math.min(l,o.baseY))}catch{}}const T="undefined"!=typeof navigator&&(/Macintosh|Mac OS/i.test(navigator.userAgent??"")||/Mac/i.test(navigator.platform??"")),M="undefined"!=typeof navigator&&(0,y.isAppleHandheldPlatform)({userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints}),C=[0,16,48,120,250,500,1e3,2e3],k=new Uint8Array(0),A=new Uint8Array([27,99]),F=new TextEncoder;function S(t){return F.encode(t)}function z(t,s){const o=new Uint8Array(t.length+s.length);return o.set(t,0),o.set(s,t.length),o}const E=["JetBrains Mono","JetBrainsMono Nerd Font","JetBrainsMono NF","MesloLGM Nerd Font","MesloLGM NF","Hack Nerd Font","FiraCode Nerd Font","Symbols Nerd Font","SF Mono","Menlo","Monaco","Consolas","'Liberation Mono'","monospace"].join(", ");function L(t){const s=t?.trim();return s&&s.length>0?s:E}function I(t){return"number"==typeof t&&Number.isFinite(t)&&t>0?t:13}function x(t){return Object.assign({},t,{overviewRulerBorder:t.background??"transparent"})}class R{callbacks={};pendingModifiers={ctrl:!1,shift:!1,alt:!1};terminal=null;fitAddon=null;fitAndEmitResize=null;lastSize=null;cleanup=null;outputOperations=[];inFlightOutputOperation=null;inFlightOutputOperationTimeout=null;pendingWriteCommits=new Set;hasUngatedWrites=!1;inputModeDecoder=new TextDecoder;suppressInput=!1;inputModeTracker=new f.TerminalInputModeTracker;lastInputModeState=this.inputModeTracker.getState();themeBackgroundElements=[];handleVisibilityRestore=()=>{"undefined"!=typeof document&&"visible"!==document.visibilityState||(this.fitAndEmitResize?.({force:!0,shouldClaim:!1}),"function"==typeof window.requestAnimationFrame&&window.requestAnimationFrame(()=>{this.fitAndEmitResize?.({force:!0,shouldClaim:!1})}))};setCallbacks(t){this.callbacks=t.callbacks}setPendingModifiers(t){this.pendingModifiers=t.pendingModifiers}mount(f){this.unmount(),f.host.innerHTML="",this.lastSize=null,this.inputModeTracker.reset(),this.emitInputModeChange();const v=new p.Terminal({allowProposedApi:!0,convertEol:!1,cursorBlink:!0,cursorStyle:"bar",fontFamily:L(f.fontFamily),fontSize:I(f.fontSize),lineHeight:1,macOptionIsMeta:!0,minimumContrastRatio:1,rescaleOverlappingGlyphs:!0,scrollbar:{width:8},scrollback:f.scrollback,theme:x(f.theme)}),b=new s.FitAddon,O=new l.Unicode11Addon;let k=null,A=null;v.loadAddon(b),v.loadAddon(O),v.loadAddon(new u.WebLinksAddon((t,s)=>{t.preventDefault(),this.callbacks.onOpenExternalUrl?.(s)}));const F=v.registerLinkProvider((0,w.createTerminalLocalFileLinkProvider)(v,{resolveLink:async t=>await(this.callbacks.onResolveLocalFileLink?.(t))??null,openLink:(t,s)=>{this.callbacks.onOpenLocalFileLink?.(t,s)}}));v.loadAddon(new n.SearchAddon({highlightLimit:2e4})),v.loadAddon(new t.ClipboardAddon);try{v.loadAddon(new h.LigaturesAddon)}catch{}v.open(f.host),this.themeBackgroundElements=this.collectThemeBackgroundElements(f),this.applyThemeBackground(f.theme);try{v.unicode.activeVersion="11"}catch{}const S=()=>{try{A?.dispose()}catch{}A=null},z=()=>{if(k){try{k.dispose()}catch{}k=null,S(),this.fitAndEmitResize?.({force:!0,shouldClaim:!1})}},E=()=>{v.parser.registerCsiHandler({final:"c"},()=>!0),v.parser.registerCsiHandler({prefix:">",final:"c"},()=>!0),v.parser.registerCsiHandler({prefix:"=",final:"c"},()=>!0),v.parser.registerCsiHandler({final:"n"},()=>!0),v.parser.registerCsiHandler({prefix:"?",final:"n"},()=>!0),v.parser.registerCsiHandler({final:"R"},()=>!0),v.parser.registerCsiHandler({intermediates:"$",final:"p"},()=>!0),v.parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},()=>!0);for(const t of[10,11,12])v.parser.registerOscHandler(t,t=>"?"===t.trim())};E();let R=requestAnimationFrame(()=>{R=null;try{z(),k=new c.WebglAddon,k.onContextLoss(()=>{z()}),v.loadAddon(k),A=new o.ImageAddon,v.loadAddon(A),E(),this.fitAndEmitResize?.({force:!0,shouldClaim:!1})}catch{z()}});const B=this.applyDocumentBoundsStyles({root:f.root}),K=this.applyViewportTouchStyles({host:f.host});this.terminal=v,this.fitAddon=b,window.__paseoTerminal=v;const P=t=>{const s=t?.force??!1,o=t?.shouldClaim??!0,n=this.terminal,l=this.fitAddon;if(!n||!l)return;if(0===f.root.offsetWidth||0===f.root.offsetHeight)return;try{l.fit()}catch{return}const u=n.rows,c=n.cols,h=this.lastSize;!s&&h&&h.rows===u&&h.cols===c||(this.lastSize={rows:u,cols:c},this.refreshVisibleRows(),this.callbacks.onResize?.({rows:u,cols:c,shouldClaim:o}))};this.fitAndEmitResize=P,P({force:!0,shouldClaim:!1});const V=v.onData(t=>{this.suppressInput||this.callbacks.onInput?.(t)});v.attachCustomKeyEventHandler(t=>{if("keydown"!==t.type||t.isComposing)return!0;if(!T&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey){const s=t.key.toLowerCase();return"c"===s&&v.hasSelection()?(navigator.clipboard.writeText(v.getSelection()),!1):"v"!==s||(t.preventDefault(),navigator.clipboard.readText().then(t=>{t&&v.paste(t)}),!1)}const s=(0,y.normalizeDomTerminalKey)(t.key);if(!s||(0,y.isTerminalModifierDomKey)(t.key))return!0;if(!(0,y.shouldInterceptDomTerminalKey)({key:s,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,pendingModifiers:this.pendingModifiers,enhancedInputActive:this.inputModeTracker.supportsModifiedEnter(),isAppleHandheld:M}))return!0;const o=(0,y.mergeTerminalModifiers)({pendingModifiers:this.pendingModifiers,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey});return this.callbacks.onTerminalKey?.(Object.assign({key:(0,y.normalizeTerminalTransportKey)(s)},o)),(this.pendingModifiers.ctrl||this.pendingModifiers.shift||this.pendingModifiers.alt)&&this.callbacks.onPendingModifiersConsumed?.(),t.preventDefault(),t.stopPropagation(),!1});const j=this.setupTouchScrollHandlers({root:f.root,host:f.host,terminal:v}),D=new ResizeObserver(()=>{P({shouldClaim:!0})});D.observe(f.root),D.observe(f.host);const W=()=>P({shouldClaim:!0});window.addEventListener("resize",W);const Y=()=>{this.handleVisibilityRestore()};window.addEventListener("focus",Y);const H=()=>{this.handleVisibilityRestore()};document.addEventListener("visibilitychange",H);const X=window.visualViewport,U=()=>P({shouldClaim:!0});X?.addEventListener("resize",U);const _=C.map(t=>window.setTimeout(()=>{P({force:!0,shouldClaim:!1})},t)),N=document.fonts,q=()=>{P({force:!0,shouldClaim:!1})};N?.addEventListener?.("loadingdone",q),N?.ready.then(()=>{P({force:!0,shouldClaim:!1})}).catch(()=>{}),window.setTimeout(()=>{P({force:!0,shouldClaim:!1})},0),f.initialSnapshot&&this.renderSnapshot({state:f.initialSnapshot}),this.processOutputQueue();const Q={disposeInput:()=>{V.dispose()},disconnectResizeObserver:()=>{D.disconnect()},removeWindowResize:()=>{window.removeEventListener("resize",W)},removeWindowFocus:()=>{window.removeEventListener("focus",Y)},removeDocumentVisibilityChange:()=>{document.removeEventListener("visibilitychange",H)},removeVisualViewportResize:()=>{X?.removeEventListener("resize",U)},clearFitTimeouts:()=>{for(const t of _)window.clearTimeout(t)},removeFontListeners:()=>{N?.removeEventListener?.("loadingdone",q)},removeTouchListeners:j,restoreDocumentStyles:B,restoreViewportStyles:K,disposeFitAddon:()=>{b.dispose()},disposeWebglAddon:()=>{null!==R&&(cancelAnimationFrame(R),R=null),z(),S()},disposeTerminal:()=>{F.dispose(),v.dispose()}};this.cleanup=()=>{Q.disposeInput(),Q.disconnectResizeObserver(),Q.removeWindowResize(),Q.removeWindowFocus(),Q.removeDocumentVisibilityChange(),Q.removeVisualViewportResize(),Q.clearFitTimeouts(),Q.removeFontListeners(),Q.removeTouchListeners(),Q.disposeFitAddon(),Q.disposeWebglAddon(),Q.disposeTerminal(),Q.restoreDocumentStyles(),Q.restoreViewportStyles()}}write(t){0!==t.data.length?(this.outputOperations.push(Object.assign({type:"write",data:t.data,suppressInput:t.suppressInput??!1},t.onCommitted?{onCommitted:t.onCommitted}:{})),this.processOutputQueue()):t.onCommitted?.()}clear(t){this.outputOperations.push(Object.assign({type:"clear",data:k,suppressInput:!1},t?.onCommitted?{onCommitted:t.onCommitted}:{})),this.processOutputQueue()}renderSnapshot(t){t.state?this.restoreOutput(Object.assign({data:S((0,v.renderTerminalSnapshotToAnsi)(t.state)),rows:t.state.rows,cols:t.state.cols},t.onCommitted?{onCommitted:t.onCommitted}:{})):this.clear(t)}restoreOutput(t){this.outputOperations.push(Object.assign({type:"snapshot",data:z(A,t.data),rows:t.rows,cols:t.cols,suppressInput:!0},t.preserveScroll?{preserveScroll:!0}:{},t.onCommitted?{onCommitted:t.onCommitted}:{})),this.processOutputQueue()}resize(t){this.fitAndEmitResize?.(t)}setTheme(t){const s=this.terminal;if(s){try{s.options.theme=x(t.theme)}catch{return}this.applyThemeBackground(t.theme),this.refreshVisibleRows()}}setScrollback(t){const s=this.terminal;if(s){try{s.options.scrollback=t.lines}catch{return}this.refreshVisibleRows()}}setFont(t){const s=this.terminal;if(s){try{s.options.fontFamily=L(t.fontFamily),s.options.fontSize=I(t.fontSize)}catch{return}this.fitAndEmitResize?.({force:!0}),this.refreshVisibleRows()}}focus(t){const s=this.terminal;s&&(t?.forceRefocus&&s.blur(),s.focus())}blur(){this.terminal?.blur()}refreshVisibleRows(){const t=this.terminal;if(t&&!(t.rows<=0))try{t.refresh(0,t.rows-1)}catch{}}collectThemeBackgroundElements(t){return[t.root,t.host,...Array.from(t.host.querySelectorAll(".xterm, .xterm-screen, .xterm-viewport"))]}applyThemeBackground(t){const s=t.background??"#0b0b0b";for(const t of this.themeBackgroundElements)t.style.backgroundColor=s}unmount(){this.clearInFlightOutputTimeout();const t=this.inFlightOutputOperation;this.inFlightOutputOperation=null,t?.onCommitted&&t.onCommitted();const s=this.outputOperations.splice(0,this.outputOperations.length);for(const t of s)t.onCommitted?.();for(const t of Array.from(this.pendingWriteCommits))t();this.hasUngatedWrites=!1,this.cleanup?.(),this.cleanup=null,window.__paseoTerminal===this.terminal&&(window.__paseoTerminal=void 0),this.terminal=null,this.fitAddon=null,this.fitAndEmitResize=null,this.lastSize=null,this.themeBackgroundElements=[],this.suppressInput=!1,this.inputModeDecoder.decode(),this.inputModeTracker.reset(),this.emitInputModeChange()}isBarrierOperation(t){return"write"!==t.type||Boolean(t.suppressInput)}processOutputQueue(){if(this.inFlightOutputOperation)return;const t=this.terminal;if(!t)return;for(;this.outputOperations[0]&&!this.isBarrierOperation(this.outputOperations[0]);){const s=this.outputOperations.shift();if(!s)break;this.submitWrite(t,s)}const s=this.outputOperations.shift();if(!s)return;if(!this.hasUngatedWrites)return void this.startBarrierOperation(t,s);let o=!1;const n=()=>{o||this.inFlightOutputOperation!==s||this.terminal!==t||(o=!0,this.clearInFlightOutputTimeout(),this.startBarrierOperation(t,s))};this.inFlightOutputOperation=s,this.inFlightOutputOperationTimeout=setTimeout(n,1e4);try{t.write(k,n)}catch{n()}}submitWrite(t,s){const o=this.inputModeDecoder.decode(s.data,{stream:!0});this.inputModeTracker.feed(o).changed&&this.emitInputModeChange(),this.hasUngatedWrites=!0;const n=s.onCommitted;if(!n){try{t.write(s.data)}catch{}return}const l=()=>{this.pendingWriteCommits.delete(l)&&n()};this.pendingWriteCommits.add(l);try{t.write(s.data,l)}catch{l()}}startBarrierOperation(t,s){this.inFlightOutputOperation=s,this.hasUngatedWrites=!1;const o=this.suppressInput;s.suppressInput&&(this.suppressInput=Boolean(s.suppressInput));const n=t=>{this.inFlightOutputOperation===t&&(this.inFlightOutputOperation=null,this.clearInFlightOutputTimeout(),this.suppressInput=o,t.onCommitted?.(),this.processOutputQueue())};if("clear"===s.type)return this.inputModeDecoder.decode(),this.inputModeTracker.reset(),this.emitInputModeChange(),t.reset(),void n(s);if("snapshot"===s.type){this.inputModeDecoder.decode(),this.inputModeTracker.reset(),this.emitInputModeChange();try{"number"!=typeof s.cols||"number"!=typeof s.rows||t.cols===s.cols&&t.rows===s.rows||t.resize(s.cols,s.rows)}catch{return void n(s)}}const l=s.data;if("write"===s.type){const t=this.inputModeDecoder.decode(l,{stream:!0});this.inputModeTracker.feed(t).changed&&this.emitInputModeChange()}this.inFlightOutputOperationTimeout=setTimeout(()=>{n(s)},1e4);const u=s.preserveScroll?b(t):null;try{t.write(l,()=>{u&&this.inFlightOutputOperation===s&&O(t,u),n(s)})}catch{n(s)}}clearInFlightOutputTimeout(){this.inFlightOutputOperationTimeout&&(clearTimeout(this.inFlightOutputOperationTimeout),this.inFlightOutputOperationTimeout=null)}emitInputModeChange(){const t=this.inputModeTracker.getState();(0,f.terminalInputModeStatesEqual)(t,this.lastInputModeState)||(this.lastInputModeState=t,this.callbacks.onInputModeChange?.(t))}applyDocumentBoundsStyles(t){const s=document.documentElement,o=document.body,n=t.root.parentElement,l=s.style.overflow,u=s.style.width,c=s.style.height,h=s.style.getPropertyValue("text-size-adjust"),p=s.style.getPropertyValue("-webkit-text-size-adjust"),f=o.style.overflow,y=o.style.width,v=o.style.height,w=o.style.margin,b=o.style.padding,O=o.style.getPropertyValue("text-size-adjust"),T=o.style.getPropertyValue("-webkit-text-size-adjust"),M=n?.style.overflow??"",C=n?.style.width??"",k=n?.style.height??"";return s.style.overflow="hidden",s.style.width="100%",s.style.height="100%",s.style.setProperty("text-size-adjust","100%"),s.style.setProperty("-webkit-text-size-adjust","100%"),o.style.overflow="hidden",o.style.width="100%",o.style.height="100%",o.style.margin="0",o.style.padding="0",o.style.setProperty("text-size-adjust","100%"),o.style.setProperty("-webkit-text-size-adjust","100%"),n&&(n.style.overflow="hidden",n.style.width="100%",n.style.height="100%"),()=>{s.style.overflow=l,s.style.width=u,s.style.height=c,s.style.setProperty("text-size-adjust",h),s.style.setProperty("-webkit-text-size-adjust",p),o.style.overflow=f,o.style.width=y,o.style.height=v,o.style.margin=w,o.style.padding=b,o.style.setProperty("text-size-adjust",O),o.style.setProperty("-webkit-text-size-adjust",T),n&&(n.style.overflow=M,n.style.width=C,n.style.height=k)}}applyViewportTouchStyles(t){const s=t.host.querySelector(".xterm-viewport"),o=s?.style.overscrollBehavior??"",n=s?.style.touchAction??"",l=s?.style.overflowY??"",u=s?.style.overflowX??"",c=s?.style.pointerEvents??"",h=s?.style.getPropertyValue("-webkit-overflow-scrolling")??"";return s&&(s.style.overscrollBehavior="none",s.style.touchAction="pan-y",s.style.overflowY="auto",s.style.overflowX="hidden",s.style.pointerEvents="auto",s.style.setProperty("-webkit-overflow-scrolling","touch")),()=>{s&&(s.style.overscrollBehavior=o,s.style.touchAction=n,s.style.overflowY=l,s.style.overflowX=u,s.style.pointerEvents=c,s.style.setProperty("-webkit-overflow-scrolling",h))}}setupTouchScrollHandlers(t){let s=0;const o=t.host.querySelector(".xterm-rows > div")?.getBoundingClientRect().height??0,n=o>0?o:18,l={identifier:-1,startX:0,startY:0,lastX:0,lastY:0,mode:null},u=t=>{if(1!==t.touches.length)return s=0,l.identifier=-1,void(l.mode=null);const o=t.touches[0];if(!o)return s=0,l.identifier=-1,void(l.mode=null);l.identifier=o.identifier,l.startX=o.clientX,l.startY=o.clientY,l.lastX=o.clientX,l.lastY=o.clientY,l.mode=null,s=0},c=o=>{if(1!==o.touches.length)return;const u=Array.from(o.touches).find(t=>t.identifier===l.identifier);if(!u)return;const c=u.clientX-l.startX,h=u.clientY-l.startY;if(null===l.mode){const t=Math.abs(c),s=Math.abs(h);(t>8||s>8)&&(l.mode=s>=t?"vertical":"horizontal")}const p=u.clientY-l.lastY;if(l.lastX=u.clientX,l.lastY=u.clientY,"vertical"!==l.mode)return;s+=p;const f=Math.trunc(s/n);0!==f&&(t.terminal.scrollLines(-f),s-=f*n),o.preventDefault()},h=t=>{(Array.from(t.changedTouches).some(t=>t.identifier===l.identifier)||0===t.touches.length)&&(s=0,l.identifier=-1,l.mode=null)},p=()=>{s=0,l.identifier=-1,l.mode=null};return t.root.addEventListener("touchstart",u,{passive:!0}),t.root.addEventListener("touchmove",c,{passive:!1}),t.root.addEventListener("touchend",h,{passive:!0}),t.root.addEventListener("touchcancel",p,{passive:!0}),()=>{t.root.removeEventListener("touchstart",u),t.root.removeEventListener("touchmove",c),t.root.removeEventListener("touchend",h),t.root.removeEventListener("touchcancel",p)}}}},3972,[3973,3974,3975,3976,3977,3978,3979,3980,3981,3982,3983,3984,3986]);
15627
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.encodeTerminalOutput=F,Object.defineProperty(e,"TerminalEmulatorRuntime",{enumerable:!0,get:function(){return x}});var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),h=r(d[7]),p=r(d[8]),f=r(d[9]),y=r(d[10]),v=r(d[11]),w=r(d[12]);function b(t){try{const s=t.buffer.active,o=Math.max(0,s.baseY-s.viewportY);if(0===o)return null;for(let n=0;n<t.rows;n++){const t=s.getLine(s.viewportY+n)?.translateToString(!0)??"";if(t.trim().length>0)return{linesAboveBottom:o,text:t,offset:n}}return{linesAboveBottom:o,text:null,offset:0}}catch{return null}}function O(t,s){try{const o=t.buffer.active,n=Math.max(0,o.baseY-s.linesAboveBottom);let l=n;if(null!==s.text){const t=n+s.offset;let u=-1;for(let n=0;n<o.length;n++)o.getLine(n)?.translateToString(!0)===s.text&&(-1===u||Math.abs(n-t)<Math.abs(u-t))&&(u=n);-1!==u&&(l=Math.max(0,u-s.offset))}t.scrollToLine(Math.min(l,o.baseY))}catch{}}const T="undefined"!=typeof navigator&&(/Macintosh|Mac OS/i.test(navigator.userAgent??"")||/Mac/i.test(navigator.platform??"")),M="undefined"!=typeof navigator&&(0,y.isAppleHandheldPlatform)({userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints}),A=[0,16,48,120,250,500,1e3,2e3],C=new Uint8Array(0),k=new Uint8Array([27,99]),S=new TextEncoder;function F(t){return S.encode(t)}function z(t,s){const o=new Uint8Array(t.length+s.length);return o.set(t,0),o.set(s,t.length),o}const E=["JetBrains Mono","JetBrainsMono Nerd Font","JetBrainsMono NF","MesloLGM Nerd Font","MesloLGM NF","Hack Nerd Font","FiraCode Nerd Font","Symbols Nerd Font","SF Mono","Menlo","Monaco","Consolas","'Liberation Mono'","monospace"].join(", ");function L(t){const s=t?.trim();return s&&s.length>0?s:E}function R(t){return"number"==typeof t&&Number.isFinite(t)&&t>0?t:13}function I(t){return Object.assign({},t,{overviewRulerBorder:t.background??"transparent"})}class x{callbacks={};pendingModifiers={ctrl:!1,shift:!1,alt:!1};terminal=null;fitAddon=null;fitAndEmitResize=null;lastSize=null;cleanup=null;outputOperations=[];inFlightOutputOperation=null;inFlightOutputOperationTimeout=null;pendingWriteCommits=new Set;pendingScrollAnchor=null;scrollRestoreScheduled=!1;hasUngatedWrites=!1;inputModeDecoder=new TextDecoder;suppressInput=!1;inputModeTracker=new f.TerminalInputModeTracker;lastInputModeState=this.inputModeTracker.getState();themeBackgroundElements=[];handleVisibilityRestore=()=>{"undefined"!=typeof document&&"visible"!==document.visibilityState||(this.fitAndEmitResize?.({force:!0,shouldClaim:!1}),"function"==typeof window.requestAnimationFrame&&window.requestAnimationFrame(()=>{this.fitAndEmitResize?.({force:!0,shouldClaim:!1})}))};setCallbacks(t){this.callbacks=t.callbacks}setPendingModifiers(t){this.pendingModifiers=t.pendingModifiers}mount(f){this.unmount(),f.host.innerHTML="",this.lastSize=null,this.inputModeTracker.reset(),this.emitInputModeChange();const v=new p.Terminal({allowProposedApi:!0,convertEol:!1,cursorBlink:!0,cursorStyle:"bar",fontFamily:L(f.fontFamily),fontSize:R(f.fontSize),lineHeight:1,macOptionIsMeta:!0,minimumContrastRatio:1,rescaleOverlappingGlyphs:!0,scrollbar:{width:8},scrollback:f.scrollback,theme:I(f.theme)}),b=new s.FitAddon,O=new l.Unicode11Addon;let C=null,k=null;v.loadAddon(b),v.loadAddon(O),v.loadAddon(new u.WebLinksAddon((t,s)=>{t.preventDefault(),this.callbacks.onOpenExternalUrl?.(s)}));const S=v.registerLinkProvider((0,w.createTerminalLocalFileLinkProvider)(v,{resolveLink:async t=>await(this.callbacks.onResolveLocalFileLink?.(t))??null,openLink:(t,s)=>{this.callbacks.onOpenLocalFileLink?.(t,s)}}));v.loadAddon(new n.SearchAddon({highlightLimit:2e4})),v.loadAddon(new t.ClipboardAddon);try{v.loadAddon(new h.LigaturesAddon)}catch{}v.open(f.host),this.themeBackgroundElements=this.collectThemeBackgroundElements(f),this.applyThemeBackground(f.theme);try{v.unicode.activeVersion="11"}catch{}const F=()=>{try{k?.dispose()}catch{}k=null},z=()=>{if(C){try{C.dispose()}catch{}C=null,F(),this.fitAndEmitResize?.({force:!0,shouldClaim:!1})}},E=()=>{v.parser.registerCsiHandler({final:"c"},()=>!0),v.parser.registerCsiHandler({prefix:">",final:"c"},()=>!0),v.parser.registerCsiHandler({prefix:"=",final:"c"},()=>!0),v.parser.registerCsiHandler({final:"n"},()=>!0),v.parser.registerCsiHandler({prefix:"?",final:"n"},()=>!0),v.parser.registerCsiHandler({final:"R"},()=>!0),v.parser.registerCsiHandler({intermediates:"$",final:"p"},()=>!0),v.parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},()=>!0);for(const t of[10,11,12])v.parser.registerOscHandler(t,t=>"?"===t.trim())};E();let x=requestAnimationFrame(()=>{x=null;try{z(),C=new c.WebglAddon,C.onContextLoss(()=>{z()}),v.loadAddon(C),k=new o.ImageAddon,v.loadAddon(k),E(),this.fitAndEmitResize?.({force:!0,shouldClaim:!1})}catch{z()}});const B=this.applyDocumentBoundsStyles({root:f.root}),K=this.applyViewportTouchStyles({host:f.host});this.terminal=v,this.fitAddon=b,window.__paseoTerminal=v;const P=t=>{const s=t?.force??!1,o=t?.shouldClaim??!0,n=this.terminal,l=this.fitAddon;if(!n||!l)return;if(0===f.root.offsetWidth||0===f.root.offsetHeight)return;try{l.fit()}catch{return}const u=n.rows,c=n.cols,h=this.lastSize;!s&&h&&h.rows===u&&h.cols===c||(this.lastSize={rows:u,cols:c},this.refreshVisibleRows(),this.callbacks.onResize?.({rows:u,cols:c,shouldClaim:o}))};this.fitAndEmitResize=P,P({force:!0,shouldClaim:!1});const V=v.onData(t=>{this.suppressInput||this.callbacks.onInput?.(t)});v.attachCustomKeyEventHandler(t=>{if("keydown"!==t.type||t.isComposing)return!0;if(!T&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey){const s=t.key.toLowerCase();return"c"===s&&v.hasSelection()?(navigator.clipboard.writeText(v.getSelection()),!1):"v"!==s||(t.preventDefault(),navigator.clipboard.readText().then(t=>{t&&v.paste(t)}),!1)}const s=(0,y.normalizeDomTerminalKey)(t.key);if(!s||(0,y.isTerminalModifierDomKey)(t.key))return!0;if(!(0,y.shouldInterceptDomTerminalKey)({key:s,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,pendingModifiers:this.pendingModifiers,enhancedInputActive:this.inputModeTracker.supportsModifiedEnter(),isAppleHandheld:M}))return!0;const o=(0,y.mergeTerminalModifiers)({pendingModifiers:this.pendingModifiers,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey});return this.callbacks.onTerminalKey?.(Object.assign({key:(0,y.normalizeTerminalTransportKey)(s)},o)),(this.pendingModifiers.ctrl||this.pendingModifiers.shift||this.pendingModifiers.alt)&&this.callbacks.onPendingModifiersConsumed?.(),t.preventDefault(),t.stopPropagation(),!1});const j=this.setupTouchScrollHandlers({root:f.root,host:f.host,terminal:v}),D=new ResizeObserver(()=>{P({shouldClaim:!0})});D.observe(f.root),D.observe(f.host);const W=()=>P({shouldClaim:!0});window.addEventListener("resize",W);const Y=()=>{this.handleVisibilityRestore()};window.addEventListener("focus",Y);const H=()=>{this.handleVisibilityRestore()};document.addEventListener("visibilitychange",H);const X=window.visualViewport,q=()=>P({shouldClaim:!0});X?.addEventListener("resize",q);const U=A.map(t=>window.setTimeout(()=>{P({force:!0,shouldClaim:!1})},t)),_=document.fonts,N=()=>{P({force:!0,shouldClaim:!1})};_?.addEventListener?.("loadingdone",N),_?.ready.then(()=>{P({force:!0,shouldClaim:!1})}).catch(()=>{}),window.setTimeout(()=>{P({force:!0,shouldClaim:!1})},0),f.initialSnapshot&&this.renderSnapshot({state:f.initialSnapshot}),this.processOutputQueue();const Q={disposeInput:()=>{V.dispose()},disconnectResizeObserver:()=>{D.disconnect()},removeWindowResize:()=>{window.removeEventListener("resize",W)},removeWindowFocus:()=>{window.removeEventListener("focus",Y)},removeDocumentVisibilityChange:()=>{document.removeEventListener("visibilitychange",H)},removeVisualViewportResize:()=>{X?.removeEventListener("resize",q)},clearFitTimeouts:()=>{for(const t of U)window.clearTimeout(t)},removeFontListeners:()=>{_?.removeEventListener?.("loadingdone",N)},removeTouchListeners:j,restoreDocumentStyles:B,restoreViewportStyles:K,disposeFitAddon:()=>{b.dispose()},disposeWebglAddon:()=>{null!==x&&(cancelAnimationFrame(x),x=null),z(),F()},disposeTerminal:()=>{S.dispose(),v.dispose()}};this.cleanup=()=>{Q.disposeInput(),Q.disconnectResizeObserver(),Q.removeWindowResize(),Q.removeWindowFocus(),Q.removeDocumentVisibilityChange(),Q.removeVisualViewportResize(),Q.clearFitTimeouts(),Q.removeFontListeners(),Q.removeTouchListeners(),Q.disposeFitAddon(),Q.disposeWebglAddon(),Q.disposeTerminal(),Q.restoreDocumentStyles(),Q.restoreViewportStyles()}}write(t){0!==t.data.length?(this.outputOperations.push(Object.assign({type:"write",data:t.data,suppressInput:t.suppressInput??!1},t.onCommitted?{onCommitted:t.onCommitted}:{})),this.processOutputQueue()):t.onCommitted?.()}clear(t){this.outputOperations.push(Object.assign({type:"clear",data:C,suppressInput:!1},t?.onCommitted?{onCommitted:t.onCommitted}:{})),this.processOutputQueue()}renderSnapshot(t){t.state?this.restoreOutput(Object.assign({data:F((0,v.renderTerminalSnapshotToAnsi)(t.state)),rows:t.state.rows,cols:t.state.cols},t.onCommitted?{onCommitted:t.onCommitted}:{})):this.clear(t)}restoreOutput(t){this.outputOperations.push(Object.assign({type:"snapshot",data:z(k,t.data),rows:t.rows,cols:t.cols,suppressInput:!0},t.preserveScroll?{preserveScroll:!0}:{},t.onCommitted?{onCommitted:t.onCommitted}:{})),this.processOutputQueue()}resize(t){this.fitAndEmitResize?.(t)}setTheme(t){const s=this.terminal;if(s){try{s.options.theme=I(t.theme)}catch{return}this.applyThemeBackground(t.theme),this.refreshVisibleRows()}}setScrollback(t){const s=this.terminal;if(s){try{s.options.scrollback=t.lines}catch{return}this.refreshVisibleRows()}}setFont(t){const s=this.terminal;if(s){try{s.options.fontFamily=L(t.fontFamily),s.options.fontSize=R(t.fontSize)}catch{return}this.fitAndEmitResize?.({force:!0}),this.refreshVisibleRows()}}focus(t){const s=this.terminal;s&&(t?.forceRefocus&&s.blur(),s.focus())}blur(){this.terminal?.blur()}refreshVisibleRows(){const t=this.terminal;if(t&&!(t.rows<=0))try{t.refresh(0,t.rows-1)}catch{}}collectThemeBackgroundElements(t){return[t.root,t.host,...Array.from(t.host.querySelectorAll(".xterm, .xterm-screen, .xterm-viewport"))]}applyThemeBackground(t){const s=t.background??"#0b0b0b";for(const t of this.themeBackgroundElements)t.style.backgroundColor=s}unmount(){this.clearInFlightOutputTimeout(),this.pendingScrollAnchor=null;const t=this.inFlightOutputOperation;this.inFlightOutputOperation=null,t?.onCommitted&&t.onCommitted();const s=this.outputOperations.splice(0,this.outputOperations.length);for(const t of s)t.onCommitted?.();for(const t of Array.from(this.pendingWriteCommits))t();this.hasUngatedWrites=!1,this.cleanup?.(),this.cleanup=null,window.__paseoTerminal===this.terminal&&(window.__paseoTerminal=void 0),this.terminal=null,this.fitAddon=null,this.fitAndEmitResize=null,this.lastSize=null,this.themeBackgroundElements=[],this.suppressInput=!1,this.inputModeDecoder.decode(),this.inputModeTracker.reset(),this.emitInputModeChange()}isBarrierOperation(t){return"write"!==t.type||Boolean(t.suppressInput)}processOutputQueue(){if(this.inFlightOutputOperation)return;const t=this.terminal;if(!t)return;for(;this.outputOperations[0]&&!this.isBarrierOperation(this.outputOperations[0]);){const s=this.outputOperations.shift();if(!s)break;this.submitWrite(t,s)}const s=this.outputOperations.shift();if(!s)return;if(!this.hasUngatedWrites)return void this.startBarrierOperation(t,s);let o=!1;const n=()=>{o||this.inFlightOutputOperation!==s||this.terminal!==t||(o=!0,this.clearInFlightOutputTimeout(),this.startBarrierOperation(t,s))};this.inFlightOutputOperation=s,this.inFlightOutputOperationTimeout=setTimeout(n,1e4);try{t.write(C,n)}catch{n()}}submitWrite(t,s){const o=this.inputModeDecoder.decode(s.data,{stream:!0});this.inputModeTracker.feed(o).changed&&this.emitInputModeChange(),this.hasUngatedWrites=!0;const n=s.onCommitted;if(!n){try{t.write(s.data)}catch{}return}const l=()=>{this.pendingWriteCommits.delete(l)&&n()};this.pendingWriteCommits.add(l);try{t.write(s.data,l)}catch{l()}}startBarrierOperation(t,s){this.inFlightOutputOperation=s,this.hasUngatedWrites=!1;const o=this.suppressInput;s.suppressInput&&(this.suppressInput=Boolean(s.suppressInput));const n=t=>{this.inFlightOutputOperation===t&&(this.inFlightOutputOperation=null,this.clearInFlightOutputTimeout(),this.suppressInput=o,t.onCommitted?.(),this.processOutputQueue())};if("clear"===s.type)return this.inputModeDecoder.decode(),this.inputModeTracker.reset(),this.emitInputModeChange(),t.reset(),void n(s);if("snapshot"===s.type){this.inputModeDecoder.decode(),this.inputModeTracker.reset(),this.emitInputModeChange();try{"number"!=typeof s.cols||"number"!=typeof s.rows||t.cols===s.cols&&t.rows===s.rows||t.resize(s.cols,s.rows)}catch{return void n(s)}}const l=s.data;if("write"===s.type){const t=this.inputModeDecoder.decode(l,{stream:!0});this.inputModeTracker.feed(t).changed&&this.emitInputModeChange()}this.inFlightOutputOperationTimeout=setTimeout(()=>{n(s)},1e4);const u=s.preserveScroll?this.pendingScrollAnchor??b(t):null;try{t.write(l,()=>{u&&this.inFlightOutputOperation===s&&(this.pendingScrollAnchor=u,this.scheduleScrollRestore(t)),n(s)})}catch{n(s)}}scheduleScrollRestore(t){var s;this.scrollRestoreScheduled||(this.scrollRestoreScheduled=!0,s=()=>{this.scrollRestoreScheduled=!1;const s=this.pendingScrollAnchor;this.pendingScrollAnchor=null,s&&this.terminal===t&&O(t,s)},"function"==typeof requestAnimationFrame?requestAnimationFrame(()=>requestAnimationFrame(s)):setTimeout(s,0))}clearInFlightOutputTimeout(){this.inFlightOutputOperationTimeout&&(clearTimeout(this.inFlightOutputOperationTimeout),this.inFlightOutputOperationTimeout=null)}emitInputModeChange(){const t=this.inputModeTracker.getState();(0,f.terminalInputModeStatesEqual)(t,this.lastInputModeState)||(this.lastInputModeState=t,this.callbacks.onInputModeChange?.(t))}applyDocumentBoundsStyles(t){const s=document.documentElement,o=document.body,n=t.root.parentElement,l=s.style.overflow,u=s.style.width,c=s.style.height,h=s.style.getPropertyValue("text-size-adjust"),p=s.style.getPropertyValue("-webkit-text-size-adjust"),f=o.style.overflow,y=o.style.width,v=o.style.height,w=o.style.margin,b=o.style.padding,O=o.style.getPropertyValue("text-size-adjust"),T=o.style.getPropertyValue("-webkit-text-size-adjust"),M=n?.style.overflow??"",A=n?.style.width??"",C=n?.style.height??"";return s.style.overflow="hidden",s.style.width="100%",s.style.height="100%",s.style.setProperty("text-size-adjust","100%"),s.style.setProperty("-webkit-text-size-adjust","100%"),o.style.overflow="hidden",o.style.width="100%",o.style.height="100%",o.style.margin="0",o.style.padding="0",o.style.setProperty("text-size-adjust","100%"),o.style.setProperty("-webkit-text-size-adjust","100%"),n&&(n.style.overflow="hidden",n.style.width="100%",n.style.height="100%"),()=>{s.style.overflow=l,s.style.width=u,s.style.height=c,s.style.setProperty("text-size-adjust",h),s.style.setProperty("-webkit-text-size-adjust",p),o.style.overflow=f,o.style.width=y,o.style.height=v,o.style.margin=w,o.style.padding=b,o.style.setProperty("text-size-adjust",O),o.style.setProperty("-webkit-text-size-adjust",T),n&&(n.style.overflow=M,n.style.width=A,n.style.height=C)}}applyViewportTouchStyles(t){const s=t.host.querySelector(".xterm-viewport"),o=s?.style.overscrollBehavior??"",n=s?.style.touchAction??"",l=s?.style.overflowY??"",u=s?.style.overflowX??"",c=s?.style.pointerEvents??"",h=s?.style.getPropertyValue("-webkit-overflow-scrolling")??"";return s&&(s.style.overscrollBehavior="none",s.style.touchAction="pan-y",s.style.overflowY="auto",s.style.overflowX="hidden",s.style.pointerEvents="auto",s.style.setProperty("-webkit-overflow-scrolling","touch")),()=>{s&&(s.style.overscrollBehavior=o,s.style.touchAction=n,s.style.overflowY=l,s.style.overflowX=u,s.style.pointerEvents=c,s.style.setProperty("-webkit-overflow-scrolling",h))}}setupTouchScrollHandlers(t){let s=0;const o=t.host.querySelector(".xterm-rows > div")?.getBoundingClientRect().height??0,n=o>0?o:18,l={identifier:-1,startX:0,startY:0,lastX:0,lastY:0,mode:null},u=t=>{if(1!==t.touches.length)return s=0,l.identifier=-1,void(l.mode=null);const o=t.touches[0];if(!o)return s=0,l.identifier=-1,void(l.mode=null);l.identifier=o.identifier,l.startX=o.clientX,l.startY=o.clientY,l.lastX=o.clientX,l.lastY=o.clientY,l.mode=null,s=0},c=o=>{if(1!==o.touches.length)return;const u=Array.from(o.touches).find(t=>t.identifier===l.identifier);if(!u)return;const c=u.clientX-l.startX,h=u.clientY-l.startY;if(null===l.mode){const t=Math.abs(c),s=Math.abs(h);(t>8||s>8)&&(l.mode=s>=t?"vertical":"horizontal")}const p=u.clientY-l.lastY;if(l.lastX=u.clientX,l.lastY=u.clientY,"vertical"!==l.mode)return;s+=p;const f=Math.trunc(s/n);0!==f&&(t.terminal.scrollLines(-f),s-=f*n),o.preventDefault()},h=t=>{(Array.from(t.changedTouches).some(t=>t.identifier===l.identifier)||0===t.touches.length)&&(s=0,l.identifier=-1,l.mode=null)},p=()=>{s=0,l.identifier=-1,l.mode=null};return t.root.addEventListener("touchstart",u,{passive:!0}),t.root.addEventListener("touchmove",c,{passive:!1}),t.root.addEventListener("touchend",h,{passive:!0}),t.root.addEventListener("touchcancel",p,{passive:!0}),()=>{t.root.removeEventListener("touchstart",u),t.root.removeEventListener("touchmove",c),t.root.removeEventListener("touchend",h),t.root.removeEventListener("touchcancel",p)}}}},3972,[3973,3974,3975,3976,3977,3978,3979,3980,3981,3982,3983,3984,3986]);
15628
15628
  __d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Base64",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"BrowserClipboardProvider",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"ClipboardAddon",{enumerable:!0,get:function(){return E}});
15629
15629
  /**
15630
15630
  * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
@@ -16721,5 +16721,5 @@ __d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=r(d[0]),n=this&&this.__creat
16721
16721
  __r(694);
16722
16722
  __r(341);
16723
16723
  __r(0);
16724
- //# sourceMappingURL=/_expo/static/js/web/index-14643690e589a4ab90c8aefa604f0b5f.js.map
16725
- //# debugId=738f5cb1-0262-425c-801a-ab5359af38bf
16724
+ //# sourceMappingURL=/_expo/static/js/web/index-694670bd39172b9e7fb089854b2c874c.js.map
16725
+ //# debugId=d35b9a7f-45b4-4353-9b13-a65ecd5cad20
@@ -191,6 +191,6 @@
191
191
  <body>
192
192
  <noscript>You need to enable JavaScript to run this app.</noscript>
193
193
  <div id="root"></div>
194
- <script src="/_expo/static/js/web/index-14643690e589a4ab90c8aefa604f0b5f.js" defer></script>
194
+ <script src="/_expo/static/js/web/index-694670bd39172b9e7fb089854b2c874c.js" defer></script>
195
195
  </body>
196
196
  </html>
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperdrive.bot/fleet-server",
3
- "version": "0.3.169",
3
+ "version": "0.3.170",
4
4
  "description": "Paseo backend server",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -66,11 +66,11 @@
66
66
  "@agentclientprotocol/sdk": "^0.17.1",
67
67
  "@anthropic-ai/claude-agent-sdk": "^0.3.195",
68
68
  "@anthropic-ai/sdk": "^0.104.2",
69
- "@hyperdrive.bot/fleet-client": "0.3.169",
70
- "@hyperdrive.bot/fleet-extension-sdk": "0.3.169",
71
- "@hyperdrive.bot/fleet-highlight": "0.3.169",
72
- "@hyperdrive.bot/fleet-protocol": "0.3.169",
73
- "@hyperdrive.bot/fleet-relay": "0.3.169",
69
+ "@hyperdrive.bot/fleet-client": "0.3.170",
70
+ "@hyperdrive.bot/fleet-extension-sdk": "0.3.170",
71
+ "@hyperdrive.bot/fleet-highlight": "0.3.170",
72
+ "@hyperdrive.bot/fleet-protocol": "0.3.170",
73
+ "@hyperdrive.bot/fleet-relay": "0.3.170",
74
74
  "@isaacs/ttlcache": "^2.1.4",
75
75
  "@modelcontextprotocol/sdk": "^1.20.1",
76
76
  "@opencode-ai/sdk": "1.2.6",