@hyperdrive.bot/fleet-server 0.3.117 → 0.3.118

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.117\",\"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.118\",\"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,i,o,n){i.exports={name:"@hyperdrive.bot/fleet-app",version:"0.3.117",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: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",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,i,o,n){i.exports={name:"@hyperdrive.bot/fleet-app",version:"0.3.118",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: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",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,[]);
@@ -16321,8 +16321,8 @@ __d(function(g,r,i,a,m,e,d){"use strict";function t(n){return null!=n&&("string"
16321
16321
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isBinaryByPath=function(n){const s=o(n);return!!s&&t.has(s)};const t=new Set(["pdf","doc","docx","xls","xlsx","ppt","pptx","rtf","odt","ods","odp","png","jpg","jpeg","gif","webp","ico","bmp","tiff","tif","heic","heif","avif","mp3","wav","ogg","m4a","flac","opus","aac","mp4","webm","avi","mov","mkv","m4v","zip","tar","gz","bz2","xz","7z","rar","lz","zst","exe","dll","so","dylib","a","o","obj","lib","class","jar","war","dmg","iso","img","pkg","apk","ipa","msi","deb","rpm","ttf","otf","woff","woff2","eot","db","sqlite","sqlite3","mdb","pyc","pyo","pyd","bin","dat","pak"]);function o(t){if(!t)return null;const o=t.split("/").findLast(Boolean)??"";if(o.startsWith(".")&&-1===o.indexOf(".",1))return null;const n=o.lastIndexOf(".");if(n<=0)return null;const s=o.slice(n+1).toLowerCase();return 0===s.length?null:s}},4562,[]);
16322
16322
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.HighlightedLines=function(e){const n=(0,o.c)(13),{lines:l,startLine:s}=e;if(void 0===s){let e,o;return n[0]!==l?(e=l.map(j),n[0]=l,n[1]=e):e=n[1],n[2]!==e?(o=(0,S.jsx)(t.View,{dataSet:f.CODE_SURFACE_DATASET,children:e}),n[2]=e,n[3]=o):o=n[3],o}const c=s+l.length-1,u=Math.max(2,String(c).length);let x,h;if(n[4]!==u||n[5]!==l||n[6]!==s){let e;n[8]!==u||n[9]!==s?(e=(e,t)=>(0,S.jsx)(T,{line:e,lineNumber:s+t,digits:u},e.key),n[8]=u,n[9]=s,n[10]=e):e=n[10],x=l.map(e),n[4]=u,n[5]=l,n[6]=s,n[7]=x}else x=n[7];n[11]!==x?(h=(0,S.jsx)(t.View,{dataSet:f.CODE_SURFACE_DATASET,children:x}),n[11]=x,n[12]=h):h=n[12];return h};var e,t=r(d[0]),n=r(d[1]),o=r(d[2]),l=r(d[3]),s=(e=l)&&e.__esModule?e:{default:e};r(d[4]),r(d[5]);var c=r(d[6]),u=r(d[7]),f=r(d[8]),x=r(d[9]),S=r(d[10]);const h="\u200b";function y(e){const t=(0,o.c)(4),{line:l}=e;let s,c;return t[0]!==l.tokens?(s=0===l.tokens.length?h:l.tokens.map(_),t[0]=l.tokens,t[1]=s):s=t[1],t[2]!==s?(c=(0,S.jsx)(n.Text,{selectable:!0,style:p.lineText,children:s}),t[2]=s,t[3]=c):c=t[3],c}function _(e){const{key:t,token:o}=e;return(0,S.jsx)(n.Text,{style:o.style?(0,x.syntaxTokenStyleFor)(o.style):void 0,children:o.text},t)}const T=s.default.memo(function(e){const l=(0,o.c)(10),{line:s,lineNumber:c,digits:u}=e,f=String(c);let x,h,_,T;return l[0]!==u||l[1]!==f?(x=f.padStart(u),l[0]=u,l[1]=f,l[2]=x):x=l[2],l[3]!==x?(h=(0,S.jsxs)(n.Text,{style:p.gutterText,children:[x," "]}),l[3]=x,l[4]=h):h=l[4],l[5]!==s?(_=(0,S.jsx)(y,{line:s}),l[5]=s,l[6]=_):_=l[6],l[7]!==h||l[8]!==_?(T=(0,S.jsxs)(t.View,{style:p.row,children:[h,_]}),l[7]=h,l[8]=_,l[9]=T):T=l[9],T});function j(e){return(0,S.jsx)(y,{line:e},e.key)}const p=c.StyleSheet.create(e=>({row:{flexDirection:"row",minHeight:18},gutterText:{fontFamily:e.fontFamily.mono,fontSize:e.fontSize.code,lineHeight:18,color:e.colors.foregroundMuted,opacity:.6,userSelect:"none",flexShrink:0,uni__dependencies:[0]},lineText:Object.assign({fontFamily:e.fontFamily.mono,fontSize:e.fontSize.code,color:e.colors.foreground,lineHeight:18},u.isWeb?{whiteSpace:"pre",overflowWrap:"normal"}:null,{uni__dependencies:[0]})}))},4563,[348,349,350,36,234,146,56,3420,3820,3821,279]);
16323
16323
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.DiffViewer=function(e){const t=(0,l.c)(32),{diffLines:c,maxHeight:u,emptyLabel:y,fillAvailableHeight:h}=e,p=void 0!==h&&h,{t:S}=(0,x.useTranslation)(),[v,k]=s.default.useState(0);let C;t[0]!==y||t[1]!==S?(C=y??S("diffViewer.empty"),t[0]=y,t[1]=S,t[2]=C):C=t[2];const w=C,H=(0,f.useWebScrollbarStyle)();let L;t[3]===Symbol.for("react.memo_cache_sentinel")?(L=e=>k(e.nativeEvent.layout.width),t[3]=L):L=t[3];const E=L;let W;t[4]!==u?(W=void 0!==u&&(0,T.inlineUnistylesStyle)({maxHeight:u}),t[4]=u,t[5]=W):W=t[5];const F=p&&$.fillHeight;let M;t[6]!==W||t[7]!==F||t[8]!==H?(M=[$.verticalScroll,W,F,H],t[6]=W,t[7]=F,t[8]=H,t[9]=M):M=t[9];const A=M;let D,I;t[10]!==v?(D=v>0&&(0,T.inlineUnistylesStyle)({minWidth:v}),t[10]=v,t[11]=D):D=t[11];t[12]!==D?(I=[$.linesContainer,D],t[12]=D,t[13]=I):I=t[13];const O=I;let R;t[14]!==c?(R=c.map(z),t[14]=c,t[15]=R):R=t[15];const U=R,B=p&&$.fillHeight;let P;t[16]!==B?(P=[$.verticalContent,B],t[16]=B,t[17]=P):P=t[17];const G=P;if(!c.length){let e;return t[18]!==w?(e=(0,b.jsx)(o.View,{style:$.emptyState,children:(0,b.jsx)(n.Text,{style:$.emptyText,children:w})}),t[18]=w,t[19]=e):e=t[19],e}let q,J;t[20]!==U?(q=U.map(V),t[20]=U,t[21]=q):q=t[21];t[22]!==O||t[23]!==q?(J=(0,b.jsx)(o.View,{style:O,dataSet:_.CODE_SURFACE_DATASET,children:q}),t[22]=O,t[23]=q,t[24]=J):J=t[24];const K=J;let N;t[25]!==K||t[26]!==H?(N=(0,b.jsx)(j,{horizontal:!0,nestedScrollEnabled:!0,showsHorizontalScrollIndicator:!0,style:H,contentContainerStyle:$.horizontalContent,onLayout:E,children:K}),t[25]=K,t[26]=H,t[27]=N):N=t[27];const Q=N;let X;t[28]!==Q||t[29]!==A||t[30]!==G?(X=(0,b.jsx)(j,{style:A,contentContainerStyle:G,nestedScrollEnabled:!0,showsVerticalScrollIndicator:!0,children:Q}),t[28]=Q,t[29]=A,t[30]=G,t[31]=X):X=t[31];return X};var e,t=r(d[0]),n=r(d[1]),o=r(d[2]),l=r(d[3]),c=r(d[4]),s=(e=c)&&e.__esModule?e:{default:e},x=r(d[5]);r(d[6]),r(d[7]),r(d[8]);var u=r(d[9]),y=r(d[10]),h=r(d[11]),p=r(d[12]),f=r(d[13]),T=r(d[14]),S=r(d[15]),_=r(d[16]),v=r(d[17]),b=r(d[18]);const j=v.isWeb?t.ScrollView:u.ScrollView;function k(e){const t=(0,l.c)(35),{line:c}=e,s="header"===c.type&&$.headerLine,x="add"===c.type&&$.addLine,u="remove"===c.type&&$.removeLine,y="context"===c.type&&$.contextLine;let p;t[0]!==s||t[1]!==x||t[2]!==u||t[3]!==y?(p=[$.line,s,x,u,y],t[0]=s,t[1]=x,t[2]=u,t[3]=y,t[4]=p):p=t[4];const f=p,T="header"===c.type&&$.headerText,S="add"===c.type&&$.addText,_="remove"===c.type&&$.removeText,v="context"===c.type&&$.contextText;let j;t[5]!==T||t[6]!==S||t[7]!==_||t[8]!==v?(j=[$.lineText,T,S,_,v],t[5]=T,t[6]=S,t[7]=_,t[8]=v,t[9]=j):j=t[9];const k=j,w="add"===c.type&&$.addText,H="remove"===c.type&&$.removeText,V="context"===c.type&&$.contextText;let z;t[10]!==w||t[11]!==H||t[12]!==V?(z=[w,H,V],t[10]=w,t[11]=H,t[12]=V,t[13]=z):z=t[13];const E=z;if(c.tokens){let e,l,s,x,u;return t[14]!==c?(e=(0,h.diffLinePrefix)(c),t[14]=c,t[15]=e):e=t[15],t[16]!==E||t[17]!==e?(l=(0,b.jsx)(n.Text,{style:E,children:e}),t[16]=E,t[17]=e,t[18]=l):l=t[18],t[19]!==c.tokens?(s=(0,b.jsx)(C,{tokens:c.tokens}),t[19]=c.tokens,t[20]=s):s=t[20],t[21]!==l||t[22]!==s?(x=(0,b.jsxs)(n.Text,{style:$.lineText,children:[l,s]}),t[21]=l,t[22]=s,t[23]=x):x=t[23],t[24]!==f||t[25]!==x?(u=(0,b.jsx)(o.View,{style:f,children:x}),t[24]=f,t[25]=x,t[26]=u):u=t[26],u}let W,F;return t[27]!==c.content||t[28]!==c.segments||t[29]!==c.type||t[30]!==k?(W=c.segments?(0,b.jsxs)(n.Text,{style:$.lineText,children:[(0,b.jsx)(n.Text,{style:"add"===c.type?$.addText:$.removeText,children:c.content[0]}),c.segments.map(e=>(0,b.jsx)(L,{segment:e,lineType:c.type},`${e.changed?"c":"u"}:${e.text}`))]}):(0,b.jsx)(n.Text,{style:k,children:c.content}),t[27]=c.content,t[28]=c.segments,t[29]=c.type,t[30]=k,t[31]=W):W=t[31],t[32]!==f||t[33]!==W?(F=(0,b.jsx)(o.View,{style:f,children:W}),t[32]=f,t[33]=W,t[34]=F):F=t[34],F}function C(e){const t=(0,l.c)(6),{tokens:n}=e;let o;t[0]!==n?(o=n.map(H),t[0]=n,t[1]=o):o=t[1];const c=o;let s,x;return t[2]!==c?(s=c.map(w),t[2]=c,t[3]=s):s=t[3],t[4]!==s?(x=(0,b.jsx)(b.Fragment,{children:s}),t[4]=s,t[5]=x):x=t[5],x}function w(e){const{key:t,token:o}=e;return(0,b.jsx)(n.Text,{style:o.style?(0,p.syntaxTokenStyleFor)(o.style):void 0,children:o.text},t)}function H(e,t){return{key:`${t}-${e.text}`,token:e}}function L(e){const t=(0,l.c)(6),{segment:o,lineType:c}=e,s="add"===c?$.addText:$.removeText,x=o.changed&&("add"===c?$.addHighlight:$.removeHighlight);let u;t[0]!==s||t[1]!==x?(u=[s,x],t[0]=s,t[1]=x,t[2]=u):u=t[2];const y=u;let h;return t[3]!==o.text||t[4]!==y?(h=(0,b.jsx)(n.Text,{style:y,children:o.text}),t[3]=o.text,t[4]=y,t[5]=h):h=t[5],h}function V(e){const{key:t,line:n}=e;return(0,b.jsx)(k,{line:n},t)}function z(e,t){return{key:`${t}-${e.type}-${e.content}`,line:e}}const $=y.StyleSheet.create(e=>{const t=(0,S.getCodeInsets)(e);return{verticalScroll:{},fillHeight:{flex:1,minHeight:0},verticalContent:{flexGrow:1,paddingBottom:t.extraBottom},horizontalContent:{flexDirection:"column",paddingRight:t.extraRight},linesContainer:{alignSelf:"flex-start",padding:t.padding},line:{minWidth:"100%",paddingHorizontal:0,paddingVertical:e.spacing[1],uni__dependencies:[0]},lineText:Object.assign({fontFamily:e.fontFamily.mono,fontSize:e.fontSize.code,color:e.colors.foreground},v.isWeb?{whiteSpace:"pre",overflowWrap:"normal"}:null,{uni__dependencies:[0]}),headerLine:{backgroundColor:e.colors.surface1,uni__dependencies:[0]},headerText:{color:e.colors.foregroundMuted,uni__dependencies:[0]},addLine:{backgroundColor:"rgba(46, 160, 67, 0.15)"},addText:{color:e.colors.foreground,uni__dependencies:[0]},removeLine:{backgroundColor:"rgba(248, 81, 73, 0.1)"},removeText:{color:e.colors.foreground,uni__dependencies:[0]},addHighlight:{backgroundColor:"rgba(46, 160, 67, 0.4)"},removeHighlight:{backgroundColor:"rgba(248, 81, 73, 0.35)"},contextLine:{backgroundColor:e.colors.surface1,uni__dependencies:[0]},contextText:{color:e.colors.foregroundMuted,uni__dependencies:[0]},emptyState:{padding:e.spacing[4],alignItems:"center",justifyContent:"center",uni__dependencies:[0]},emptyText:{fontSize:e.fontSize.sm,color:e.colors.foregroundMuted,uni__dependencies:[0]}}})},4564,[2815,349,348,350,36,352,146,234,182,2482,56,4560,3821,3589,3486,3885,3820,3420,279]);
16324
- __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]);r(d[1]);var s=r(d[2]),n=r(d[3]),o=r(d[4]),l=r(d[5]),c=r(d[6]),u=r(d[7]);function f(){const f=(0,t.c)(13),{serverId:S}=(0,s.useLocalSearchParams)();let p;f[0]!==S?(p=t=>t.sessions[S??""]?.agents,f[0]=S,f[1]=p):p=f[1];const k=(0,l.useSessionStore)(p);let _;e:{if(!k){let t;f[2]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[2]=t):t=f[2],_=t;break e}let t;if(f[3]!==k||f[4]!==S){let s;f[6]!==S?(s=t=>({id:t.id,serverId:S??"",title:t.title??t.id,statusBucket:(0,c.deriveSidebarStateBucket)((0,c.toBucketInput)(t)),tags:Object.entries(t.labels??{}).filter(v).map(b),digest:t.digest??null,kanban:t.labels?.kanban??null,provider:t.provider,model:t.model,lastActivityAt:t.lastActivityAt??null,snoozeCount:t.snooze?.count??0,snoozedUntil:t.snooze?.until??null}),f[6]=S,f[7]=s):s=f[7],t=(0,o.selectFeedCandidates)([...k.values()]).map(s),f[3]=k,f[4]=S,f[5]=t}else t=f[5];_=t}const y=_;let j;if(f[8]!==y){const t=new Set;for(const s of y)for(const n of s.tags)t.add(n);j=[...t].sort(),f[8]=y,f[9]=j}else j=f[9];const z=j;let A;return f[10]!==z||f[11]!==y?(A=(0,u.jsx)(n.ReelsScreen,{sessions:y,allTags:z}),f[10]=z,f[11]=y,f[12]=A):A=f[12],A}function b(t){const[s]=t;return s.slice(4)}function v(t){const[s]=t;return s.startsWith("tag:")}},4565,[350,36,379,4566,4573,3427,3441,279]);
16325
- __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,"UNWIRED_VERBS",{enumerable:!0,get:function(){return D}}),_e.bucketLabel=P,_e.relativeAge=L,_e.cardMetaLine=A,_e.backgroundTextFor=K,Object.defineProperty(_e,"ReelsScreen",{enumerable:!0,get:function(){return J}}),_e.shareTextFor=ee;var t=r(_d[0]),n=r(_d[1]),s=r(_d[2]),o=r(_d[3]),l=r(_d[4]),i=r(_d[5]),c=r(_d[6]),a=r(_d[7]),d=e(r(_d[8]));r(_d[9]);var u=e(r(_d[10]));r(_d[11]),r(_d[12]),r(_d[13]),r(_d[14]),r(_d[15]),r(_d[16]);var h=r(_d[17]),p=r(_d[18]),b=r(_d[19]),y=r(_d[20]),x=r(_d[21]),f=r(_d[22]),j=r(_d[23]),S=r(_d[24]),_=r(_d[25]),k=r(_d[26]),v=r(_d[27]),T=r(_d[28]),w=r(_d[29]);function C(e,t,n){return t&&"hold"!==t?t:e||"hold"===t?"hold to retire, this cannot be undone":n}function I(e,t){return"terminate"===e?`${t}. Hold to confirm, this cannot be undone.`:D.has(e)?`${t}. Not wired yet.`:t}const z={share:null,automate:null},D=new Set([]);function V(e){return e.key}const R={needs_input:"needs you",failed:"failed",attention:"wants a look",pending:"waiting",running:"running",done:"done"};function P(e){return R[e]??e.replace(/_/g," ")}function L(e,t=new Date){if(!e)return"";const n=t.getTime()-e.getTime();if(!Number.isFinite(n)||n<0)return"";const s=Math.floor(n/6e4);if(s<1)return"just now";if(s<60)return`${s}m`;const o=Math.floor(s/60);return o<24?`${o}h`:`${Math.floor(o/24)}d`}function A(e,t){return[P(String(e.statusBucket)),L(e.lastActivityAt,t),e.model?`${e.provider}/${e.model}`:e.provider].filter(e=>e.length>0).join(" \xb7 ")}const H=(0,a.memo)(function(e){const p=(0,c.c)(97),{session:b,visible:y,onClose:x,onSend:f,sendError:j,openDecisions:S,target:_}=e,[k,v]=(0,a.useState)(""),T=_?.question??null,C=b.digest;let I;p[0]!==f||p[1]!==k?(I=()=>{const e=k.trim();e.length>0&&(f(e),v(""))},p[0]=f,p[1]=k,p[2]=I):I=p[2];const z=I,D=(0,h.useSafeAreaInsets)(),V=Q.captionSheet,[R,P]=(0,a.useState)(!1);let L,A;p[3]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{const e=d.default.addListener("keyboardDidShow",()=>P(!0)),t=d.default.addListener("keyboardDidHide",()=>P(!1));return()=>{e.remove(),t.remove()}},A=[],p[3]=L,p[4]=A):(L=p[3],A=p[4]),(0,a.useEffect)(L,A);const H=R&&!1?0:D.bottom;let E;p[5]!==H?(E=[Q.sheetInner,{paddingBottom:H}],p[5]=H,p[6]=E):E=p[6];const O=E;let M;p[7]!==x?(M=u.default.create({onMoveShouldSetPanResponder:pe,onPanResponderRelease:(e,t)=>{t.dy>60&&x()}}),p[7]=x,p[8]=M):M=p[8];const W=M;let B,F,G;p[9]!==x||p[10]!==y?(B=()=>{if(!y||"undefined"==typeof document)return;const e=e=>{"Escape"===e.key&&x()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},F=[x,y],p[9]=x,p[10]=y,p[11]=B,p[12]=F):(B=p[11],F=p[12]),(0,a.useEffect)(B,F),p[13]!==T||p[14]!==S.length?(G=T?(0,w.jsx)(s.Text,{style:Q.composerLabel,numberOfLines:2,testID:"reels-composer-target",children:S.length>1?`Answering the first of ${S.length} open decisions: ${T}`:`Answering: ${T}`}):null,p[13]=T,p[14]=S.length,p[15]=G):G=p[15];const N=T?"in your own words":"say what to do";let K,q,U,Y,J;p[16]!==z||p[17]!==N||p[18]!==k?(K=(0,w.jsx)(n.TextInput,{value:k,onChangeText:v,placeholder:N,style:Q.composerInput,onSubmitEditing:z,returnKeyType:"send",testID:"reels-composer-input"}),p[16]=z,p[17]=N,p[18]=k,p[19]=K):K=p[19],p[20]===Symbol.for("react.memo_cache_sentinel")?(q=(0,w.jsx)(s.Text,{style:Q.link,children:"send"}),p[20]=q):q=p[20],p[21]!==z?(U=(0,w.jsx)(l.Pressable,{onPress:z,style:Q.composerSend,accessibilityRole:"button",accessibilityLabel:"Send this answer",hitSlop:8,testID:"reels-composer-send",children:q}),p[21]=z,p[22]=U):U=p[22],p[23]!==K||p[24]!==U?(Y=(0,w.jsxs)(t.View,{style:Q.composer,children:[K,U]}),p[23]=K,p[24]=U,p[25]=Y):Y=p[25],p[26]!==Y||p[27]!==G?(J=(0,w.jsxs)(t.View,{children:[G,Y]}),p[26]=Y,p[27]=G,p[28]=J):J=p[28];const X=J;if(!y)return null;let Z,ee,te,ne,se,oe,le;p[29]!==x?(Z=(0,w.jsx)(l.Pressable,{style:Q.captionBackdrop,onPress:x,accessibilityRole:"button",accessibilityLabel:"Close the digest",testID:"reels-caption-backdrop"}),p[29]=x,p[30]=Z):Z=p[30],p[31]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,w.jsx)(t.View,{style:Q.sheetHandle}),p[31]=ee):ee=p[31],p[32]!==W.panHandlers?(te=(0,w.jsx)(t.View,Object.assign({},W.panHandlers,{style:Q.sheetGrab,testID:"reels-caption-grab",children:ee})),p[32]=W.panHandlers,p[33]=te):te=p[33],p[34]!==b.title?(ne=(0,w.jsx)(s.Text,{style:Q.sheetTitle,numberOfLines:1,children:b.title}),p[34]=b.title,p[35]=ne):ne=p[35],p[36]===Symbol.for("react.memo_cache_sentinel")?(se=(0,w.jsx)(s.Text,{style:Q.sheetCloseGlyph,children:"\u2715"}),p[36]=se):se=p[36],p[37]!==x?(oe=(0,w.jsx)(l.Pressable,{onPress:x,style:Q.sheetClose,hitSlop:8,accessibilityRole:"button",accessibilityLabel:"Close the digest",testID:"reels-caption-close",children:se}),p[37]=x,p[38]=oe):oe=p[38],p[39]!==ne||p[40]!==oe?(le=(0,w.jsxs)(t.View,{style:Q.sheetHead,children:[ne,oe]}),p[39]=ne,p[40]=oe,p[41]=le):le=p[41];const ie=C?.summary;let re;p[42]!==ie?(re=(0,w.jsx)($,{label:"Summary",value:ie,derived:!0}),p[42]=ie,p[43]=re):re=p[43];const ce=C?.goal;let ae;p[44]!==ce?(ae=(0,w.jsx)($,{label:"Goal",value:ce}),p[44]=ce,p[45]=ae):ae=p[45];const de=C?.nextStep;let ue,he,ge,ye,xe,me,fe,je,Se,ke,ve,Te;if(p[46]!==de?(ue=(0,w.jsx)($,{label:"Next step",value:de}),p[46]=de,p[47]=ue):ue=p[47],p[48]!==C?.blockers?(he=C?.blockers?.join("\n"),p[48]=C?.blockers,p[49]=he):he=p[49],p[50]!==he?(ge=(0,w.jsx)($,{label:"Blockers",value:he,danger:!0}),p[50]=he,p[51]=ge):ge=p[51],p[52]!==C?.accomplishments?(ye=C?.accomplishments?.join("\n"),p[52]=C?.accomplishments,p[53]=ye):ye=p[53],p[54]!==ye?(xe=(0,w.jsx)($,{label:"Accomplishments",value:ye,derived:!0}),p[54]=ye,p[55]=xe):xe=p[55],p[56]!==C?.keyFiles?(me=C?.keyFiles?.join("\n"),p[56]=C?.keyFiles,p[57]=me):me=p[57],p[58]!==me?(fe=(0,w.jsx)($,{label:"Key files",value:me,derived:!0}),p[58]=me,p[59]=fe):fe=p[59],p[60]!==C?.links?(je=C?.links?.map(be).join("\n"),p[60]=C?.links,p[61]=je):je=p[61],p[62]!==je?(Se=(0,w.jsx)($,{label:"Links",value:je}),p[62]=je,p[63]=Se):Se=p[63],p[64]!==S){let e;p[66]!==S.length?(e=(e,t)=>(0,w.jsx)($,{label:S.length>1?`Decision ${t+1} of ${S.length}`:"Decision",value:e.question},e.id),p[66]=S.length,p[67]=e):e=p[67],ke=S.map(e),p[64]=S,p[65]=ke}else ke=p[65];p[68]!==b.tags?(ve=b.tags.join(", ")||"no tag",p[68]=b.tags,p[69]=ve):ve=p[69],p[70]!==ve?(Te=(0,w.jsx)($,{label:"Tags",value:ve}),p[70]=ve,p[71]=Te):Te=p[71];const we=b.kanban??"inbox";let Ce,Ie,ze,De,Ve;return p[72]!==we?(Ce=(0,w.jsx)($,{label:"Kanban",value:we}),p[72]=we,p[73]=Ce):Ce=p[73],p[74]!==re||p[75]!==ae||p[76]!==ue||p[77]!==ge||p[78]!==xe||p[79]!==fe||p[80]!==Se||p[81]!==ke||p[82]!==Te||p[83]!==Ce?(Ie=(0,w.jsxs)(o.ScrollView,{style:Q.sheetBody,testID:"reels-caption-body",children:[re,ae,ue,ge,xe,fe,Se,ke,Te,Ce]}),p[74]=re,p[75]=ae,p[76]=ue,p[77]=ge,p[78]=xe,p[79]=fe,p[80]=Se,p[81]=ke,p[82]=Te,p[83]=Ce,p[84]=Ie):Ie=p[84],p[85]!==j?(ze=j?(0,w.jsxs)(s.Text,{style:Q.sendError,testID:"reels-composer-error",children:["Could not send that: ",j,". Nothing was recorded, so try again."]}):null,p[85]=j,p[86]=ze):ze=p[86],p[87]!==X||p[88]!==O||p[89]!==te||p[90]!==le||p[91]!==Ie||p[92]!==ze?(De=(0,w.jsx)(i.KeyboardAvoidingView,{behavior:"height",style:V,testID:"reels-caption-sheet",children:(0,w.jsxs)(t.View,{style:O,children:[te,le,Ie,ze,X]})}),p[87]=X,p[88]=O,p[89]=te,p[90]=le,p[91]=Ie,p[92]=ze,p[93]=De):De=p[93],p[94]!==Z||p[95]!==De?(Ve=(0,w.jsxs)(w.Fragment,{children:[Z,De]}),p[94]=Z,p[95]=De,p[96]=Ve):Ve=p[96],Ve}),$=(0,a.memo)(function(e){const n=(0,c.c)(9),{label:o,value:l,derived:i,danger:a}=e;if(!l)return null;const d=i?" (derived)":"";let u;n[0]!==o||n[1]!==d?(u=(0,w.jsxs)(s.Text,{style:Q.fieldLabel,children:[o,d]}),n[0]=o,n[1]=d,n[2]=u):u=n[2];const h=a?te:Q.fieldValue;let p,b;return n[3]!==h||n[4]!==l?(p=(0,w.jsx)(s.Text,{style:h,children:l}),n[3]=h,n[4]=l,n[5]=p):p=n[5],n[6]!==u||n[7]!==p?(b=(0,w.jsxs)(t.View,{style:Q.field,children:[u,p]}),n[6]=u,n[7]=p,n[8]=b):b=n[8],b}),E=(0,a.memo)(function(e){const t=(0,c.c)(24),{session:n,picked:o,isWinner:i,now:a,onToggle:d,onCrown:u}=e;let h;t[0]!==d||t[1]!==n.id?(h=()=>d(n.id),t[0]=d,t[1]=n.id,t[2]=h):h=t[2];const p=h;let b;t[3]!==u||t[4]!==n.id?(b=()=>u(n.id),t[3]=u,t[4]=n.id,t[5]=b):b=t[5];const y=b;let x="\u2610";o&&(x=i?"\u25c9":"\u2611");const f=o?ne:Q.pickRow,j=`reels-consolidate-pick-${n.id}`;let S,_,k;t[6]!==x?(S=(0,w.jsx)(s.Text,{style:Q.pickMark,children:x}),t[6]=x,t[7]=S):S=t[7],t[8]!==n.title?(_=(0,w.jsx)(s.Text,{style:Q.pickName,children:n.title}),t[8]=n.title,t[9]=_):_=t[9],t[10]!==a||t[11]!==n.lastActivityAt?(k=L(n.lastActivityAt,a),t[10]=a,t[11]=n.lastActivityAt,t[12]=k):k=t[12];const v=i&&o?" \xb7 survives":"";let T,C;return t[13]!==k||t[14]!==v?(T=(0,w.jsxs)(s.Text,{style:Q.pickAux,children:[k,v]}),t[13]=k,t[14]=v,t[15]=T):T=t[15],t[16]!==y||t[17]!==f||t[18]!==j||t[19]!==S||t[20]!==_||t[21]!==T||t[22]!==p?(C=(0,w.jsxs)(l.Pressable,{onPress:p,onLongPress:y,style:f,testID:j,children:[S,_,T]}),t[16]=y,t[17]=f,t[18]=j,t[19]=S,t[20]=_,t[21]=T,t[22]=p,t[23]=C):C=t[23],C}),O=(0,a.memo)(function(e){const n=(0,c.c)(48),{candidates:i,now:d,onCancel:u,onConsolidate:h}=e;let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p={},n[0]=p):p=n[0];const[b,y]=(0,a.useState)(p);let x;if(n[1]!==i||n[2]!==b){let e;n[4]!==b?(e=e=>b[e.id],n[4]=b,n[5]=e):e=n[5],x=i.filter(e),n[1]=i,n[2]=b,n[3]=x}else x=n[3];const f=x,[j,S]=(0,a.useState)(null);let _;n[6]!==f||n[7]!==j?(_=j??f.slice().sort(ge)[0]?.id??null,n[6]=f,n[7]=j,n[8]=_):_=n[8];const k=_;let v;n[9]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{y(t=>{const n=Object.assign({},t);return n[e]?delete n[e]:n[e]=!0,n})},n[9]=v):v=n[9];const T=v;let C;if(n[10]!==f||n[11]!==k){let e;n[13]!==k?(e=e=>e.id!==k,n[13]=k,n[14]=e):e=n[14],C=f.filter(e).map(ye),n[10]=f,n[11]=k,n[12]=C}else C=n[12];const I=C,z=f.length>=2&&null!==k;let D;n[15]!==h||n[16]!==I||n[17]!==k?(D=()=>{k&&h(k,I)},n[15]=h,n[16]=I,n[17]=k,n[18]=D):D=n[18];const V=D;let R,P,L,A,H,$;if(n[19]===Symbol.for("react.memo_cache_sentinel")?(R=(0,w.jsx)(s.Text,{style:Q.sheetTitle,children:"Consolidate"}),P=(0,w.jsx)(s.Text,{style:Q.hint,children:"The winner keeps its transcript. The others are archived and linked to it, both ways. Nothing is deleted."}),n[19]=R,n[20]=P):(R=n[19],P=n[20]),n[21]!==i||n[22]!==d||n[23]!==b||n[24]!==k){let e;n[26]!==d||n[27]!==b||n[28]!==k?(e=e=>(0,w.jsx)(E,{session:e,picked:Boolean(b[e.id]),isWinner:k===e.id,now:d,onToggle:T,onCrown:S},e.id),n[26]=d,n[27]=b,n[28]=k,n[29]=e):e=n[29],L=i.map(e),n[21]=i,n[22]=d,n[23]=b,n[24]=k,n[25]=L}else L=n[25];n[30]!==L?(A=(0,w.jsx)(o.ScrollView,{style:Q.pickList,children:L}),n[30]=L,n[31]=A):A=n[31],n[32]===Symbol.for("react.memo_cache_sentinel")?(H=(0,w.jsx)(s.Text,{style:Q.link,children:"cancel"}),n[32]=H):H=n[32],n[33]!==u?($=(0,w.jsx)(l.Pressable,{onPress:u,style:Q.send,testID:"reels-consolidate-cancel",children:H}),n[33]=u,n[34]=$):$=n[34];const O=!z,M=z?Q.send:ce;let W,B,F,G;return n[35]!==I.length?(W=(0,w.jsxs)(s.Text,{style:Q.link,children:["consolidate ",I.length]}),n[35]=I.length,n[36]=W):W=n[36],n[37]!==V||n[38]!==O||n[39]!==M||n[40]!==W?(B=(0,w.jsx)(l.Pressable,{onPress:V,disabled:O,style:M,testID:"reels-consolidate-commit",children:W}),n[37]=V,n[38]=O,n[39]=M,n[40]=W,n[41]=B):B=n[41],n[42]!==$||n[43]!==B?(F=(0,w.jsxs)(t.View,{style:Q.rowGap,children:[$,B]}),n[42]=$,n[43]=B,n[44]=F):F=n[44],n[45]!==A||n[46]!==F?(G=(0,w.jsxs)(t.View,{style:Q.sheet,testID:"reels-consolidate",children:[R,P,A,F]}),n[45]=A,n[46]=F,n[47]=G):G=n[47],G}),M=(0,a.memo)(function(e){const n=(0,c.c)(42),{verb:o,glyph:i,label:a,onVerb:d}=e,u="terminate"===o,{showLabel:h,progress:p,hint:b,handlers:y}=(0,S.useDestructiveHold)(d,o);let x;n[0]!==d||n[1]!==o?(x=()=>d(o),n[0]=d,n[1]=o,n[2]=x):x=n[2];const f=x;let j;n[3]!==p?(j=Math.round(100*p),n[3]=p,n[4]=j):j=n[4];const _=`${j}%`;let k;n[5]!==_?(k=[Q.verbFill,{width:_}],n[5]=_,n[6]=k):k=n[6];const v=k;if(!u){let e;n[7]!==a||n[8]!==o?(e=I(o,a),n[7]=a,n[8]=o,n[9]=e):e=n[9];const t=`reels-verb-${o}`;let c,d,u;return n[10]!==i?(c=(0,w.jsx)(s.Text,{style:Q.verbGlyph,children:i}),n[10]=i,n[11]=c):c=n[11],n[12]!==a?(d=(0,w.jsx)(s.Text,{style:Q.verbWord,children:a}),n[12]=a,n[13]=d):d=n[13],n[14]!==e||n[15]!==t||n[16]!==c||n[17]!==d||n[18]!==f?(u=(0,w.jsxs)(l.Pressable,{onPress:f,style:Q.verbChip,accessibilityRole:"button",accessibilityLabel:e,hitSlop:8,testID:t,children:[c,d]}),n[14]=e,n[15]=t,n[16]=c,n[17]=d,n[18]=f,n[19]=u):u=n[19],u}let T;n[20]!==a||n[21]!==o?(T=I(o,a),n[20]=a,n[21]=o,n[22]=T):T=n[22];const z=`reels-verb-${o}`;let D,V;n[23]!==v||n[24]!==p?(D=p>0?(0,w.jsx)(t.View,{style:v,testID:"reels-verb-hold-fill"}):null,n[23]=v,n[24]=p,n[25]=D):D=n[25],n[26]!==i?(V=(0,w.jsx)(s.Text,{style:Q.verbGlyph,children:i}),n[26]=i,n[27]=V):V=n[27];const R=h||b?se:Q.verbWord;let P,L,A;return n[28]!==a||n[29]!==R?(P=(0,w.jsx)(s.Text,{style:R,children:a}),n[28]=a,n[29]=R,n[30]=P):P=n[30],n[31]!==b||n[32]!==h?(L=h||b?(0,w.jsx)(s.Text,{style:Q.verbHoldLabel,testID:"reels-verb-terminate-hold",children:C(h,b,"hold to retire")}):null,n[31]=b,n[32]=h,n[33]=L):L=n[33],n[34]!==y||n[35]!==P||n[36]!==L||n[37]!==T||n[38]!==z||n[39]!==D||n[40]!==V?(A=(0,w.jsxs)(l.Pressable,Object.assign({},y,{style:Q.verbChip,accessibilityRole:"button",accessibilityLabel:T,hitSlop:8,testID:z,children:[D,V,P,L]})),n[34]=y,n[35]=P,n[36]=L,n[37]=T,n[38]=z,n[39]=D,n[40]=V,n[41]=A):A=n[41],A}),W=(0,a.memo)(function(e){const t=(0,c.c)(10),{everyMs:n,label:o,onPick:i}=e;let a;t[0]!==n||t[1]!==i?(a=()=>i(n),t[0]=n,t[1]=i,t[2]=a):a=t[2];const d=a,u=`reels-automate-${n}`;let h,p;return t[3]!==o?(h=(0,w.jsx)(s.Text,{style:Q.pickName,children:o}),t[3]=o,t[4]=h):h=t[4],t[5]!==o||t[6]!==d||t[7]!==u||t[8]!==h?(p=(0,w.jsx)(l.Pressable,{onPress:d,style:Q.pickRow,accessibilityRole:"button",accessibilityLabel:o,testID:u,children:h}),t[5]=o,t[6]=d,t[7]=u,t[8]=h,t[9]=p):p=t[9],p}),B=Object.keys(R).sort((e,t)=>(0,b.getWorkspaceStateBucketPriority)(e)-(0,b.getWorkspaceStateBucketPriority)(t)),F=(0,a.memo)(function(e){const t=(0,c.c)(14),{value:n,label:o,active:i,onCycle:a}=e;let d;t[0]!==a||t[1]!==n?(d=()=>a(n),t[0]=a,t[1]=n,t[2]=d):d=t[2];const u=d,h=i?oe:Q.tagChip;let p;t[3]!==i?(p=re(i),t[3]=i,t[4]=p):p=t[4];const b=`reels-filter-${n}`;let y,x;return t[5]!==o?(y=(0,w.jsx)(s.Text,{style:Q.tagChipText,children:o}),t[5]=o,t[6]=y):y=t[6],t[7]!==o||t[8]!==u||t[9]!==h||t[10]!==p||t[11]!==b||t[12]!==y?(x=(0,w.jsx)(l.Pressable,{onPress:u,style:h,accessibilityRole:"button",accessibilityState:p,accessibilityLabel:o,testID:b,children:y}),t[7]=o,t[8]=u,t[9]=h,t[10]=p,t[11]=b,t[12]=y,t[13]=x):x=t[13],x}),G=(0,a.memo)(function(e){const t=(0,c.c)(10),{target:n,label:o,onShare:i}=e;let a;t[0]!==i||t[1]!==n?(a=()=>i(n),t[0]=i,t[1]=n,t[2]=a):a=t[2];const d=a,u=`Send to ${o}`,h=`reels-share-${n}`;let p,b;return t[3]!==o?(p=(0,w.jsx)(s.Text,{style:Q.pickName,children:o}),t[3]=o,t[4]=p):p=t[4],t[5]!==d||t[6]!==u||t[7]!==h||t[8]!==p?(b=(0,w.jsx)(l.Pressable,{onPress:d,style:Q.pickRow,accessibilityRole:"button",accessibilityLabel:u,testID:h,children:p}),t[5]=d,t[6]=u,t[7]=h,t[8]=p,t[9]=b):b=t[9],b}),N=(0,a.memo)(function(e){const n=(0,c.c)(42),{verb:o,glyph:i,label:a,detail:d,onVerb:u}=e,h="terminate"===o,{showLabel:p,progress:b,hint:y,handlers:x}=(0,S.useDestructiveHold)(u,o);let f;n[0]!==u||n[1]!==o?(f=()=>u(o),n[0]=u,n[1]=o,n[2]=f):f=n[2];const j=f;let _;n[3]!==b?(_=Math.round(100*b),n[3]=b,n[4]=_):_=n[4];const k=`${_}%`;let v;n[5]!==k?(v=[Q.verbFill,{width:k}],n[5]=k,n[6]=v):v=n[6];const T=v;let z;n[7]!==h||n[8]!==x||n[9]!==j?(z=h?x:{onPress:j},n[7]=h,n[8]=x,n[9]=j,n[10]=z):z=n[10];const V=z;let R;n[11]!==a||n[12]!==o?(R=I(o,a),n[11]=a,n[12]=o,n[13]=R):R=n[13];const P=`reels-taco-${o}`;let L,A,H,$,E,O,M,W;return n[14]!==h||n[15]!==b||n[16]!==T?(L=h&&b>0?(0,w.jsx)(t.View,{style:T,testID:"reels-taco-hold-fill"}):null,n[14]=h,n[15]=b,n[16]=T,n[17]=L):L=n[17],n[18]!==i?(A=(0,w.jsx)(s.Text,{style:Q.pickMark,children:i}),n[18]=i,n[19]=A):A=n[19],n[20]!==a?(H=(0,w.jsx)(s.Text,{style:Q.pickName,children:a}),n[20]=a,n[21]=H):H=n[21],n[22]!==h||n[23]!==d||n[24]!==y||n[25]!==p?($=h?C(p,y,d):d,n[22]=h,n[23]=d,n[24]=y,n[25]=p,n[26]=$):$=n[26],n[27]!==$?(E=(0,w.jsx)(s.Text,{style:Q.hint,children:$}),n[27]=$,n[28]=E):E=n[28],n[29]!==o?(O=D.has(o)?(0,w.jsx)(s.Text,{style:Q.pickAux,children:"not wired yet"}):null,n[29]=o,n[30]=O):O=n[30],n[31]!==H||n[32]!==E||n[33]!==O?(M=(0,w.jsxs)(t.View,{style:Q.grow,children:[H,E,O]}),n[31]=H,n[32]=E,n[33]=O,n[34]=M):M=n[34],n[35]!==V||n[36]!==M||n[37]!==R||n[38]!==P||n[39]!==L||n[40]!==A?(W=(0,w.jsxs)(l.Pressable,Object.assign({},V,{style:Q.pickRow,accessibilityRole:"button",accessibilityLabel:R,testID:P,children:[L,A,M]})),n[35]=V,n[36]=M,n[37]=R,n[38]=P,n[39]=L,n[40]=A,n[41]=W):W=n[41],W});function K(e){const t=e.digest,n=t?.summary??t?.goal,s=[t?.goal,t?.nextStep,t?.blockers?.length?t.blockers.join("\n"):void 0].filter(e=>Boolean(e&&e!==n));return s.length>0?s.join("\n\n"):t?.summary??e.title}const q=(0,a.memo)(function(e){const n=(0,c.c)(7),{mode:o,text:l}=e;if("off"===o)return null;const i="text"===o?ae:Q.background,a=`reels-background-${o}`;let d,u;return n[0]!==o||n[1]!==l?(d="text"===o?(0,w.jsx)(s.Text,{style:Q.backgroundBody,numberOfLines:40,children:l}):null,n[0]=o,n[1]=l,n[2]=d):d=n[2],n[3]!==i||n[4]!==a||n[5]!==d?(u=(0,w.jsx)(t.View,{style:i,testID:a,children:d}),n[3]=i,n[4]=a,n[5]=d,n[6]=u):u=n[6],u}),U=(0,a.memo)(function(e){const n=(0,c.c)(23),{gated:o,allTags:l,onPickTag:i,decision:a,decisions:d,serverId:u,agentId:h,onAnswered:p,onVerb:b,actAllowed:f,capLabel:j}=e;if(o){let e;return n[0]!==l||n[1]!==i?(e=(0,w.jsx)(x.TagGate,{available:l,onPick:i}),n[0]=l,n[1]=i,n[2]=e):e=n[2],e}if(a){if(!f){let e,o,l,i,c;return n[3]!==j?(e=(0,w.jsx)(s.Text,{style:Q.hint,children:j}),n[3]=j,n[4]=e):e=n[4],n[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,w.jsx)(s.Text,{style:Q.cardTapHint,children:"Decisions are done for today. You can still retire or snooze this one."}),n[5]=o):o=n[5],n[6]!==b?(l=x.TACO_VERBS.map(e=>(0,w.jsx)(M,{verb:e.id,glyph:e.glyph,label:e.label,onVerb:b},e.id)),n[6]=b,n[7]=l):l=n[7],n[8]!==l?(i=(0,w.jsx)(t.View,{style:Q.rowGap,children:l}),n[8]=l,n[9]=i):i=n[9],n[10]!==e||n[11]!==i?(c=(0,w.jsxs)(t.View,{testID:"reels-cap-reached",children:[e,o,i]}),n[10]=e,n[11]=i,n[12]=c):c=n[12],c}let e;return n[13]!==h||n[14]!==d||n[15]!==p||n[16]!==u?(e=(0,w.jsx)(y.DecisionChips,{serverId:u,agentId:h,decisions:d,onAnswered:p}),n[13]=h,n[14]=d,n[15]=p,n[16]=u,n[17]=e):e=n[17],e}let S,_,k;return n[18]===Symbol.for("react.memo_cache_sentinel")?(S=(0,w.jsx)(s.Text,{style:Q.hint,children:"Nothing to decide. Why is this still open?"}),n[18]=S):S=n[18],n[19]!==b?(_=x.TACO_VERBS.map(e=>(0,w.jsx)(M,{verb:e.id,glyph:e.glyph,label:e.label,onVerb:b},e.id)),n[19]=b,n[20]=_):_=n[20],n[21]!==_?(k=(0,w.jsxs)(t.View,{testID:"reels-taco-row",children:[S,(0,w.jsx)(t.View,{style:Q.rowGap,children:_})]}),n[21]=_,n[22]=k):k=n[22],k}),Y=(0,a.memo)(function(e){const n=(0,c.c)(64),{overlay:i,session:a,ring:d,now:u,decisionTarget:h,onClose:p,onSend:b,onSnooze:y,onConsolidate:f,onKanban:j,onVerb:S,overlayStyle:_,sendError:k,verbError:v,openDecisions:T,onShare:C,onAutomate:I,allTags:z,statusSelection:D,tagSelection:V,onCycleStatus:R,onCycleTag:L}=e,A=a,$="caption"===i.kind;let E,M,K,q,U,Y,J,Z,ee;return n[0]!==A||n[1]!==h||n[2]!==p||n[3]!==b||n[4]!==T||n[5]!==k||n[6]!==$?(E=(0,w.jsx)(H,{session:A,visible:$,onClose:p,onSend:b,sendError:k,openDecisions:T,target:h},A.id),n[0]=A,n[1]=h,n[2]=p,n[3]=b,n[4]=T,n[5]=k,n[6]=$,n[7]=E):E=n[7],n[8]!==A.snoozeCount||n[9]!==p||n[10]!==y||n[11]!==i.kind||n[12]!==_?(M="snooze"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsx)(x.SnoozeSheet,{priorCount:A.snoozeCount,onCancel:p,onSnooze:y})}):null,n[8]=A.snoozeCount,n[9]=p,n[10]=y,n[11]=i.kind,n[12]=_,n[13]=M):M=n[13],n[14]!==u||n[15]!==p||n[16]!==f||n[17]!==i.kind||n[18]!==_||n[19]!==d?(K="consolidate"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsx)(O,{candidates:d,now:u,onCancel:p,onConsolidate:f})}):null,n[14]=u,n[15]=p,n[16]=f,n[17]=i.kind,n[18]=_,n[19]=d,n[20]=K):K=n[20],n[21]!==p||n[22]!==S||n[23]!==i.kind||n[24]!==_?(q="taco"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(t.View,{style:Q.sheet,testID:"reels-taco-sheet",children:[(0,w.jsx)(s.Text,{style:Q.sheetTitle,children:"TACO"}),x.TACO_VERBS.map(e=>(0,w.jsx)(N,{verb:e.id,glyph:e.glyph,label:e.label,detail:e.detail,onVerb:S},e.id)),(0,w.jsx)(l.Pressable,{onPress:p,style:Q.send,children:(0,w.jsx)(s.Text,{style:Q.link,children:"cancel"})})]})}):null,n[21]=p,n[22]=S,n[23]=i.kind,n[24]=_,n[25]=q):q=n[25],n[26]!==z||n[27]!==p||n[28]!==R||n[29]!==L||n[30]!==i.kind||n[31]!==_||n[32]!==D||n[33]!==V?(U="filters"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(o.ScrollView,{style:Q.sheet,testID:"reels-filters-sheet",children:[(0,w.jsx)(s.Text,{style:Q.sheetTitle,children:"Filter the ring"}),(0,w.jsx)(s.Text,{style:Q.hint,children:"The same filter the sessions list uses, so setting it here sets it there."}),(0,w.jsx)(s.Text,{style:Q.fieldLabel,children:"State"}),(0,w.jsx)(t.View,{style:Q.rowGap,children:B.map(e=>(0,w.jsx)(F,{value:e,label:P(e),active:D.include.includes(e),onCycle:R},e))}),(0,w.jsx)(s.Text,{style:Q.fieldLabel,children:"Tag"}),(0,w.jsx)(t.View,{style:Q.rowGap,children:z.map(e=>(0,w.jsx)(F,{value:e,label:e,active:V.include.includes(e),onCycle:L},e))}),(0,w.jsx)(l.Pressable,{onPress:p,style:Q.send,testID:"reels-filters-done",children:(0,w.jsx)(s.Text,{style:Q.link,children:"done"})})]})}):null,n[26]=z,n[27]=p,n[28]=R,n[29]=L,n[30]=i.kind,n[31]=_,n[32]=D,n[33]=V,n[34]=U):U=n[34],n[35]!==I||n[36]!==p||n[37]!==i.kind||n[38]!==_||n[39]!==v?(Y="automate"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(t.View,{style:Q.sheet,testID:"reels-automate-sheet",children:[(0,w.jsx)(s.Text,{style:Q.sheetTitle,children:"Automate"}),(0,w.jsx)(s.Text,{style:Q.hint,children:"Re-runs this session on a cadence, with its next step as the prompt."}),v?(0,w.jsx)(s.Text,{style:Q.sendError,testID:"reels-verb-error",children:v}):null,he.map(e=>(0,w.jsx)(W,{everyMs:e.everyMs,label:e.label,onPick:I},e.id)),(0,w.jsx)(l.Pressable,{onPress:p,style:Q.send,children:(0,w.jsx)(s.Text,{style:Q.link,children:"cancel"})})]})}):null,n[35]=I,n[36]=p,n[37]=i.kind,n[38]=_,n[39]=v,n[40]=Y):Y=n[40],n[41]!==p||n[42]!==C||n[43]!==i.kind||n[44]!==_||n[45]!==v?(J="share"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(t.View,{style:Q.sheet,testID:"reels-share-sheet",children:[(0,w.jsx)(s.Text,{style:Q.sheetTitle,children:"Send"}),(0,w.jsx)(s.Text,{style:Q.hint,children:"Send this card somewhere a person will read it."}),v?(0,w.jsx)(s.Text,{style:Q.sendError,testID:"reels-verb-error",children:v}):null,X.map(e=>(0,w.jsx)(G,{target:e.id,label:e.label,onShare:C},e.id)),(0,w.jsx)(l.Pressable,{onPress:p,style:Q.send,children:(0,w.jsx)(s.Text,{style:Q.link,children:"cancel"})})]})}):null,n[41]=p,n[42]=C,n[43]=i.kind,n[44]=_,n[45]=v,n[46]=J):J=n[46],n[47]!==A.kanban||n[48]!==A.model||n[49]!==A.provider||n[50]!==p||n[51]!==j||n[52]!==i.kind||n[53]!==_?(Z="options"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(o.ScrollView,{style:Q.sheet,testID:"reels-options-sheet",children:[(0,w.jsx)(s.Text,{style:Q.sheetTitle,children:"Session options"}),(0,w.jsx)(s.Text,{style:Q.fieldLabel,children:"Kanban"}),(0,w.jsx)(x.KanbanPicker,{current:A.kanban,onPick:j}),(0,w.jsx)(s.Text,{style:Q.fieldLabel,children:"Provider and model"}),(0,w.jsx)(s.Text,{style:Q.fieldValue,children:A.model?`${A.provider}/${A.model}`:A.provider}),(0,w.jsx)(s.Text,{style:Q.hint,children:"One control in the app, not two: combined-model-selector with favourites."}),(0,w.jsx)(l.Pressable,{onPress:p,style:Q.send,children:(0,w.jsx)(s.Text,{style:Q.link,children:"close"})})]})}):null,n[47]=A.kanban,n[48]=A.model,n[49]=A.provider,n[50]=p,n[51]=j,n[52]=i.kind,n[53]=_,n[54]=Z):Z=n[54],n[55]!==E||n[56]!==M||n[57]!==K||n[58]!==q||n[59]!==U||n[60]!==Y||n[61]!==J||n[62]!==Z?(ee=(0,w.jsxs)(w.Fragment,{children:[E,M,K,q,U,Y,J,Z]}),n[55]=E,n[56]=M,n[57]=K,n[58]=q,n[59]=U,n[60]=Y,n[61]=J,n[62]=Z,n[63]=ee):ee=n[63],ee}),J=(0,a.memo)(function(e){const n=(0,c.c)(158),{sessions:o,allTags:i,actCap:d,background:u,now:p}=e,b=void 0===d?T.DEFAULT_ACT_CAP:d,y=void 0===u?"text":u,S=(0,_.useReelsVerbs)(),{answer:C}=(0,j.useAnswerDecision)(),[I,D]=(0,a.useState)(xe);let R,P,L;n[0]!==p?(R=()=>{if(p)return;const e=setInterval(()=>D(Date.now()),6e4);return()=>clearInterval(e)},P=[p],n[0]=p,n[1]=R,n[2]=P):(R=n[1],P=n[2]),(0,a.useEffect)(R,P),n[3]!==p||n[4]!==I?(L=p??new Date(I),n[3]=p,n[4]=I,n[5]=L):L=n[5];const H=L,[$,E]=(0,a.useState)(1),[O,M]=(0,a.useState)(0),[W,B]=(0,a.useState)(0);let F;n[6]===Symbol.for("react.memo_cache_sentinel")?(F={kind:"none"},n[6]=F):F=n[6];const[G,N]=(0,a.useState)(F);let J;n[7]===Symbol.for("react.memo_cache_sentinel")?(J={},n[7]=J):J=n[7];const[X,Z]=(0,a.useState)(J);let te;n[8]===Symbol.for("react.memo_cache_sentinel")?(te={},n[8]=te):te=n[8];const[ne,se]=(0,a.useState)(te),[oe,le]=(0,a.useState)(null),[ie,re]=(0,a.useState)(z);let ce;n[9]===Symbol.for("react.memo_cache_sentinel")?(ce=(e,t)=>{re(n=>Object.assign({},n,{[e]:t}))},n[9]=ce):ce=n[9];const ae=ce,he=(0,a.useRef)(null);let pe;n[10]!==ne||n[11]!==$||n[12]!==X||n[13]!==H||n[14]!==o?(pe={sessions:o,localTags:X,actedLaps:ne,laps:$,now:H},n[10]=ne,n[11]=$,n[12]=X,n[13]=H,n[14]=o,n[15]=pe):pe=n[15];const{feed:be,activeFilters:ge,statusSelection:ye,tagSelection:ve,onCycleStatus:Te,onCycleTag:we}=(0,k.useReelsFeed)(pe),Ce=be[Math.min(W,Math.max(be.length-1,0))]??null,Ie=Ce?.session??null,ze=Ce?.lap??1;let De;if(n[16]!==be||n[17]!==ze){let e;n[19]!==ze?(e=e=>e.lap===ze,n[19]=ze,n[20]=e):e=n[20],De=be.filter(e).map(me),n[16]=be,n[17]=ze,n[18]=De}else De=n[18];const Ve=De,Re=Ie?.id??"",Pe=Ie?.serverId??"";let Le;var Ae;n[21]!==Ie?(Le=Ie?(Ae=Ie.digest,(Ae?.pendingDecisions??[]).filter(e=>!e.answeredAt)):[],n[21]=Ie,n[22]=Le):Le=n[22];const He=Le,$e=He[0]??null;let Ee;n[23]!==He?(Ee=He.map(fe),n[23]=He,n[24]=Ee):Ee=n[24];const Oe=Ee,Me=He,We=!!Ie&&0===Ie.tags.length;let Be;n[25]!==b||n[26]!==O?(Be=(0,T.canAct)({acts:O,cap:b}),n[25]=b,n[26]=O,n[27]=Be):Be=n[27];const Fe=Be;let Ge;n[28]!==b||n[29]!==O?(Ge=(0,T.actCapLabel)({acts:O,cap:b}),n[28]=b,n[29]=O,n[30]=Ge):Ge=n[30];const Ne=Ge,Ke=(0,h.useSafeAreaInsets)();let qe;n[31]!==Ke.top?(qe=[Q.headerSlot,{paddingTop:Ke.top}],n[31]=Ke.top,n[32]=qe):qe=n[32];const Ue=qe,Ye=Ke.top+56;let Je;n[33]!==Ye?(Je=[Q.seamBanner,{paddingTop:Ye}],n[33]=Ye,n[34]=Je):Je=n[34];const Qe=Je;let Xe;n[35]!==Ke.bottom||n[36]!==Ke.top?(Xe=[Q.overlay,{paddingTop:Ke.top,paddingBottom:Ke.bottom}],n[35]=Ke.bottom,n[36]=Ke.top,n[37]=Xe):Xe=n[37];const Ze=Xe;let et;n[38]!==W?(et=()=>{N({kind:"none"}),he.current?.scrollToIndex(W+1)},n[38]=W,n[39]=et):et=n[39];const tt=et;let nt;n[40]!==ze?(nt=e=>{se(t=>Object.assign({},t,{[e]:ze}))},n[40]=ze,n[41]=nt):nt=n[41];const st=nt;let ot;n[42]===Symbol.for("react.memo_cache_sentinel")?(ot=()=>{E(je)},n[42]=ot):ot=n[42];const lt=ot;let it,rt,ct,at,dt,ut;n[43]===Symbol.for("react.memo_cache_sentinel")?(it={id:"read",glyph:"\ud83d\udcd6",label:"read"},n[43]=it):it=n[43],n[44]!==We?(rt={id:"snooze",glyph:"\ud83d\ude34",label:"snooze",disabled:We},n[44]=We,n[45]=rt):rt=n[45],n[46]===Symbol.for("react.memo_cache_sentinel")?(ct={id:"share",glyph:"\ud83d\udce4",label:"send"},n[46]=ct):ct=n[46],n[47]!==We?(at={id:"taco",glyph:"\u2699\ufe0f",label:"TACO",disabled:We},n[47]=We,n[48]=at):at=n[48],n[49]===Symbol.for("react.memo_cache_sentinel")?(dt={id:"options",glyph:"\u22ef",label:"options"},n[49]=dt):dt=n[49],n[50]!==rt||n[51]!==at?(ut=[it,rt,ct,at,dt],n[50]=rt,n[51]=at,n[52]=ut):ut=n[52];const ht=ut;let pt;n[53]===Symbol.for("react.memo_cache_sentinel")?(pt=()=>N({kind:"caption"}),n[53]=pt):pt=n[53];const bt=pt;let gt;n[54]===Symbol.for("react.memo_cache_sentinel")?(gt=()=>N({kind:"none"}),n[54]=gt):gt=n[54];const yt=gt;let xt;n[55]===Symbol.for("react.memo_cache_sentinel")?(xt=()=>N({kind:"filters"}),n[55]=xt):xt=n[55];const mt=xt;let ft;n[56]===Symbol.for("react.memo_cache_sentinel")?(ft=e=>{re(z);const t=de[e];t&&N({kind:t})},n[56]=ft):ft=n[56];const jt=ft;let St;n[57]!==Re||n[58]!==Pe||n[59]!==S?(St=e=>{Z(t=>Object.assign({},t,{[Re]:[e]})),S.setTags({serverId:Pe,agentId:Re},[e])},n[57]=Re,n[58]=Pe,n[59]=S,n[60]=St):St=n[60];const _t=St;let kt;n[61]!==tt||n[62]!==Re||n[63]!==He.length||n[64]!==st?(kt=()=>{M(Se),st(Re),He.length<=1&&tt()},n[61]=tt,n[62]=Re,n[63]=He.length,n[64]=st,n[65]=kt):kt=n[65];const vt=kt;let Tt;n[66]!==tt||n[67]!==Re||n[68]!==st||n[69]!==Pe||n[70]!==S?(Tt=async e=>{if("terminate"===e)return await S.terminate({serverId:Pe,agentId:Re}),st(Re),void tt();re(z),N({kind:ue[e]})},n[66]=tt,n[67]=Re,n[68]=st,n[69]=Pe,n[70]=S,n[71]=Tt):Tt=n[71];const wt=Tt;let Ct;n[72]!==tt||n[73]!==Re||n[74]!==st||n[75]!==Pe||n[76]!==S?(Ct=e=>{S.snooze({serverId:Pe,agentId:Re},e.until,e.untilWhat,e.why),st(Re),tt()},n[72]=tt,n[73]=Re,n[74]=st,n[75]=Pe,n[76]=S,n[77]=Ct):Ct=n[77];const It=Ct;let zt;n[78]!==tt||n[79]!==st||n[80]!==Pe||n[81]!==S?(zt=(e,t)=>{S.consolidate({serverId:Pe,winnerId:e,sourceIds:t});for(const n of[e,...t])st(n);tt()},n[78]=tt,n[79]=st,n[80]=Pe,n[81]=S,n[82]=zt):zt=n[82];const Dt=zt;let Vt;n[83]!==C||n[84]!==Re||n[85]!==$e||n[86]!==vt||n[87]!==Pe?(Vt=e=>{const t=e.trim();0!==t.length&&$e?(le(null),C({serverId:Pe,agentId:Re,decisionId:$e.id,optionId:null,note:t}).then(()=>(vt(),null)).catch(e=>{le(e instanceof Error?e.message:String(e))})):N({kind:"none"})},n[83]=C,n[84]=Re,n[85]=$e,n[86]=vt,n[87]=Pe,n[88]=Vt):Vt=n[88];const Rt=Vt;let Pt;n[89]!==Ie||n[90]!==S?(Pt=e=>{Ie&&(ae("share",null),S.share(e,ee(Ie)).then(()=>(N({kind:"none"}),null)).catch(e=>{ae("share",e instanceof Error?e.message:"could not open that")}))},n[89]=Ie,n[90]=S,n[91]=Pt):Pt=n[91];const Lt=Pt;let At;n[92]!==tt||n[93]!==Ie||n[94]!==Re||n[95]!==st||n[96]!==Pe||n[97]!==S?(At=e=>{if(!Ie)return;ae("automate",null);const t=Ie.digest?.nextStep??Ie.digest?.goal??`Continue ${Ie.title}`;S.automate({serverId:Pe,agentId:Re},e,t,Ie.title).then(()=>(st(Re),tt(),null)).catch(e=>{ae("automate",e instanceof Error?e.message:"could not create the routine")})},n[92]=tt,n[93]=Ie,n[94]=Re,n[95]=st,n[96]=Pe,n[97]=S,n[98]=At):At=n[98];const Ht=At;let $t;n[99]!==Re||n[100]!==Pe||n[101]!==S?($t=e=>{S.setKanban({serverId:Pe,agentId:Re},e),N({kind:"none"})},n[99]=Re,n[100]=Pe,n[101]=S,n[102]=$t):$t=n[102];const Et=$t;let Ot;n[103]!==i||n[104]!==Fe||n[105]!==y||n[106]!==Ne||n[107]!==$e||n[108]!==Me||n[109]!==be||n[110]!==We||n[111]!==W||n[112]!==H||n[113]!==vt||n[114]!==wt||n[115]!==_t||n[116]!==ht||n[117]!==Ve.length||n[118]!==Qe?(Ot=(e,n)=>{const o=n===W,c=e.session;return(0,w.jsxs)(t.View,{style:Q.card,children:[(0,w.jsx)(q,{mode:y,text:K(c)}),e.firstOfLap&&e.lap>1?(0,w.jsx)(t.View,{style:Qe,testID:`reels-seam-${e.lap}`,children:(0,w.jsx)(x.LapSeam,{lap:e.lap,ringSize:Ve.length,acted:(0,v.actedThisLap)(be.filter(t=>t.lap===e.lap-1).map(ke),e.lap-1)})}):null,(0,w.jsx)(t.View,{style:Q.middle,children:o?(0,w.jsx)(x.ReelsRail,{actions:ht,contextLabel:c.tags[0]??"untagged",onAction:jt}):null}),(0,w.jsxs)(t.View,{style:Q.bottom,children:[(0,w.jsxs)(l.Pressable,{onPress:o?bt:void 0,disabled:!o,testID:o?"reels-caption-open":void 0,accessibilityRole:"button",accessibilityLabel:`Open the full digest for ${c.title}`,style:Q.captionTap,children:[(0,w.jsx)(s.Text,{style:Q.cardTitle,children:c.title}),(0,w.jsx)(s.Text,{style:Q.cardMeta,children:A(c,H)}),(0,w.jsx)(s.Text,{style:Q.cardSummary,numberOfLines:4,children:c.digest?.summary??c.digest?.goal??"No digest yet."}),o?(0,w.jsx)(s.Text,{style:Q.cardTapHint,children:"tap for the whole digest and to talk to it"}):null]}),o?(0,w.jsx)(U,{gated:We,allTags:i,onPickTag:_t,decision:$e,decisions:Me,serverId:c.serverId,agentId:c.id,onAnswered:vt,onVerb:wt,actAllowed:Fe,capLabel:Ne}):null]})]})},n[103]=i,n[104]=Fe,n[105]=y,n[106]=Ne,n[107]=$e,n[108]=Me,n[109]=be,n[110]=We,n[111]=W,n[112]=H,n[113]=vt,n[114]=wt,n[115]=_t,n[116]=ht,n[117]=Ve.length,n[118]=Qe,n[119]=Ot):Ot=n[119];const Mt=Ot;if(!Ie){let e;return n[120]===Symbol.for("react.memo_cache_sentinel")?(e=(0,w.jsx)(t.View,{style:Q.empty,testID:"reels-empty",children:(0,w.jsx)(s.Text,{style:Q.fieldValue,children:"No sessions in the ring."})}),n[120]=e):e=n[120],e}let Wt;n[121]!==be||n[122]!==Mt?(Wt=(0,w.jsx)(f.ReelsPager,{data:be,keyExtractor:V,renderCard:Mt,onIndexChange:B,onEndReached:lt,controllerRef:he}),n[121]=be,n[122]=Mt,n[123]=Wt):Wt=n[123];const Bt=`${Ve.length>0?W%Ve.length+1:W+1}/${Ve.length} \xb7 lap ${ze}`;let Ft,Gt;n[124]!==b||n[125]!==ge||n[126]!==O||n[127]!==Bt?(Ft=(0,w.jsx)(x.ReelsHeader,{acts:O,cap:b,activeFilters:ge,onFilter:mt,position:Bt}),n[124]=b,n[125]=ge,n[126]=O,n[127]=Bt,n[128]=Ft):Ft=n[128],n[129]!==Ue||n[130]!==Ft?(Gt=(0,w.jsx)(t.View,{style:Ue,pointerEvents:"box-none",children:Ft}),n[129]=Ue,n[130]=Ft,n[131]=Gt):Gt=n[131];const Nt="automate"===G.kind?ie.automate:ie.share;let Kt,qt;return n[132]!==i||n[133]!==Ie||n[134]!==$e||n[135]!==H||n[136]!==Ht||n[137]!==Rt||n[138]!==Dt||n[139]!==Te||n[140]!==we||n[141]!==Et||n[142]!==Lt||n[143]!==It||n[144]!==wt||n[145]!==Oe||n[146]!==G||n[147]!==Ze||n[148]!==Ve||n[149]!==oe||n[150]!==ye||n[151]!==Nt||n[152]!==ve?(Kt=(0,w.jsx)(Y,{overlay:G,session:Ie,ring:Ve,now:H,decisionTarget:$e,onClose:yt,onSend:Rt,onSnooze:It,onConsolidate:Dt,onKanban:Et,onVerb:wt,overlayStyle:Ze,sendError:oe,verbError:Nt,openDecisions:Oe,onShare:Lt,onAutomate:Ht,allTags:i,statusSelection:ye,tagSelection:ve,onCycleStatus:Te,onCycleTag:we}),n[132]=i,n[133]=Ie,n[134]=$e,n[135]=H,n[136]=Ht,n[137]=Rt,n[138]=Dt,n[139]=Te,n[140]=we,n[141]=Et,n[142]=Lt,n[143]=It,n[144]=wt,n[145]=Oe,n[146]=G,n[147]=Ze,n[148]=Ve,n[149]=oe,n[150]=ye,n[151]=Nt,n[152]=ve,n[153]=Kt):Kt=n[153],n[154]!==Wt||n[155]!==Gt||n[156]!==Kt?(qt=(0,w.jsxs)(t.View,{style:Q.root,testID:"reels-screen",children:[Wt,Gt,Kt]}),n[154]=Wt,n[155]=Gt,n[156]=Kt,n[157]=qt):qt=n[157],qt}),Q=p.StyleSheet.create(e=>({composerLabel:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,paddingHorizontal:e.spacing[2],paddingTop:e.spacing[1],uni__dependencies:[0]},sheetInner:{flex:1},tagChip:{minHeight:44,justifyContent:"center",borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius.full,paddingHorizontal:e.spacing[2],uni__dependencies:[0]},tagChipOn:{borderColor:e.colors.accent,uni__dependencies:[0]},tagChipText:{color:e.colors.foreground,fontSize:e.fontSize.xs,uni__dependencies:[0]},sheetGrab:{minHeight:44,alignItems:"center",justifyContent:"center"},sheetHandle:{width:38,height:4,borderRadius:e.borderRadius.full,backgroundColor:e.colors.border,uni__dependencies:[0]},verbFill:{position:"absolute",left:0,top:0,bottom:0,backgroundColor:e.colors.destructive,opacity:.18,borderRadius:e.borderRadius.full,uni__dependencies:[0]},sendError:{color:e.colors.destructive,fontSize:e.fontSize.xs,paddingHorizontal:e.spacing[2],uni__dependencies:[0]},verbHoldLabel:{color:e.colors.destructive,fontSize:e.fontSize.xs,uni__dependencies:[0]},captionBackdrop:Object.assign({},p.StyleSheet.absoluteFillObject,{backgroundColor:e.colors.background,opacity:.72,uni__dependencies:[0]}),sheetClose:{minWidth:44,minHeight:44,alignItems:"center",justifyContent:"center"},sheetCloseGlyph:{color:e.colors.foregroundMuted,fontSize:e.fontSize.base,uni__dependencies:[0]},card:{flex:1},seamBanner:{paddingHorizontal:e.spacing[2],uni__dependencies:[0]},headerSlot:{position:"absolute",top:0,left:0,right:0},captionTap:{minHeight:44,justifyContent:"flex-end"},root:{flex:1,backgroundColor:e.colors.background,uni__dependencies:[0]},background:Object.assign({},p.StyleSheet.absoluteFillObject,{opacity:.35,backgroundColor:e.colors.surface0,uni__dependencies:[0]}),backgroundText:{padding:e.spacing[2],uni__dependencies:[0]},backgroundBody:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,lineHeight:20,uni__dependencies:[0]},middle:{flex:1,alignItems:"flex-end",justifyContent:"flex-end",paddingHorizontal:e.spacing[2],uni__dependencies:[0]},bottom:{padding:e.spacing[2],gap:e.spacing[1],uni__dependencies:[0]},cardTitle:{color:e.colors.foreground,fontSize:e.fontSize.base,fontWeight:"600",uni__dependencies:[0]},cardMeta:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,marginTop:2,uni__dependencies:[0]},cardSummary:{color:e.colors.foreground,fontSize:e.fontSize.sm,marginTop:6,lineHeight:19,uni__dependencies:[0]},cardTapHint:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,marginTop:4,uni__dependencies:[0]},hint:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,lineHeight:17,uni__dependencies:[0]},rowGap:{flexDirection:"row",flexWrap:"wrap",gap:e.spacing[1],alignItems:"center",uni__dependencies:[0]},verbChip:{minHeight:44,minWidth:44,alignItems:"center",justifyContent:"center",overflow:"hidden",borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius["2xl"],paddingHorizontal:e.spacing[2],paddingVertical:e.spacing[1],uni__dependencies:[0]},verbGlyph:{fontSize:20},verbWord:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,uni__dependencies:[0]},verbWordDanger:{color:e.colors.destructive,fontSize:e.fontSize.xs,fontWeight:"600",uni__dependencies:[0]},overlay:Object.assign({},p.StyleSheet.absoluteFillObject,{backgroundColor:e.colors.background,uni__dependencies:[0]}),sheet:{padding:e.spacing[2],gap:e.spacing[1],uni__dependencies:[0]},sheetTitle:{color:e.colors.foreground,fontSize:e.fontSize.base,fontWeight:"600",uni__dependencies:[0]},captionSheet:{position:"absolute",left:0,right:0,bottom:0,top:"42%",backgroundColor:e.colors.background,borderTopWidth:1,borderTopColor:e.colors.border,borderTopLeftRadius:e.borderRadius["2xl"],borderTopRightRadius:e.borderRadius["2xl"],uni__dependencies:[0]},sheetHead:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:e.spacing[2],borderBottomWidth:1,borderBottomColor:e.colors.border,uni__dependencies:[0]},sheetBody:{flex:1,padding:e.spacing[2],uni__dependencies:[0]},field:{marginBottom:e.spacing[1],uni__dependencies:[0]},fieldLabel:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,textTransform:"uppercase",letterSpacing:.6,marginTop:e.spacing[1],uni__dependencies:[0]},fieldValue:{color:e.colors.foreground,fontSize:e.fontSize.xs,lineHeight:18,uni__dependencies:[0]},fieldDanger:{color:e.colors.destructive,uni__dependencies:[0]},composer:{flexDirection:"row",alignItems:"center",gap:e.spacing[1],padding:e.spacing[2],borderTopWidth:1,borderTopColor:e.colors.border,uni__dependencies:[0]},composerInput:{flex:1,borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius.full,paddingHorizontal:e.spacing[2],paddingVertical:e.spacing[1],color:e.colors.foreground,fontSize:e.fontSize.xs,uni__dependencies:[0]},composerSend:{minHeight:44,justifyContent:"center",paddingHorizontal:e.spacing[1],uni__dependencies:[0]},link:{color:e.colors.accent,fontSize:e.fontSize.xs,uni__dependencies:[0]},send:{borderWidth:1,borderColor:e.colors.accent,borderRadius:e.borderRadius["2xl"],paddingHorizontal:e.spacing[2],paddingVertical:e.spacing[1],alignSelf:"flex-start",uni__dependencies:[0]},dim:{opacity:.35},pickList:{maxHeight:400},pickRow:{minHeight:44,flexDirection:"row",alignItems:"center",gap:e.spacing[1],paddingVertical:e.spacing[1],paddingHorizontal:e.spacing[1],borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius["2xl"],marginBottom:4,uni__dependencies:[0]},pickRowOn:{borderColor:e.colors.accent,uni__dependencies:[0]},pickMark:{color:e.colors.accent,fontSize:e.fontSize.sm,width:22,uni__dependencies:[0]},pickName:{color:e.colors.foreground,fontSize:e.fontSize.xs,fontWeight:"600",uni__dependencies:[0]},pickAux:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,uni__dependencies:[0]},grow:{flex:1},empty:{flex:1,alignItems:"center",justifyContent:"center",padding:e.spacing[3],uni__dependencies:[0]}})),X=[{id:"whatsapp",label:"WhatsApp"},{id:"slack",label:"Slack"},{id:"email",label:"Email"}],Z=400;function ee(e){const t=[`${e.title} (${P(String(e.statusBucket))})`,e.digest?.summary??e.digest?.goal??"",e.digest?.nextStep?`Next: ${e.digest.nextStep}`:"",e.digest?.blockers?.length?`Blocked: ${e.digest.blockers.join("; ")}`:""].filter(e=>e.length>0).join("\n");return t.length>Z?`${t.slice(0,399)}\u2026`:t}const te=[Q.fieldValue,Q.fieldDanger],ne=[Q.pickRow,Q.pickRowOn],se=[Q.verbWord,Q.verbWordDanger],oe=[Q.tagChip,Q.tagChipOn],le={selected:!0},ie={selected:!1},re=e=>e?le:ie,ce=[Q.send,Q.dim],ae=[Q.background,Q.backgroundText],de={read:"caption",snooze:"snooze",share:"share",taco:"taco",options:"options"},ue={consolidate:"consolidate",outsource:"share",automate:"automate"},he=[{id:"hourly",label:"Every hour",everyMs:36e5},{id:"daily",label:"Every day",everyMs:864e5},{id:"weekly",label:"Every week",everyMs:6048e5}];function pe(e,t){return t.dy>8}function be(e){return`${e.kind}: ${e.label??e.url}`}function ge(e,t){return(t.lastActivityAt?.getTime()??0)-(e.lastActivityAt?.getTime()??0)}function ye(e){return e.id}function xe(){return Date.now()}function me(e){return e.session}function fe(e){return{id:e.id,question:e.question}}function je(e){return e+1}function Se(e){return e+1}function ke(e){return e.session}},4566,[348,2838,349,2815,2476,4567,350,36,591,659,649,25,546,182,234,571,146,558,56,3442,4013,4016,4568,4014,4569,4570,4571,4572,4017,279]);
16324
+ __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]);r(d[1]);var s=r(d[2]),n=r(d[3]),o=r(d[4]),l=r(d[5]),c=r(d[6]),u=r(d[7]);function f(){const f=(0,t.c)(13),{serverId:S}=(0,s.useLocalSearchParams)();let p;f[0]!==S?(p=t=>t.sessions[S??""]?.agents,f[0]=S,f[1]=p):p=f[1];const k=(0,l.useSessionStore)(p);let _;e:{if(!k){let t;f[2]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[2]=t):t=f[2],_=t;break e}let t;if(f[3]!==k||f[4]!==S){let s;f[6]!==S?(s=t=>({id:t.id,serverId:S??"",title:t.title??t.id,statusBucket:(0,c.deriveSidebarStateBucket)((0,c.toBucketInput)(t)),tags:Object.entries(t.labels??{}).filter(v).map(b),digest:t.digest??null,kanban:t.labels?.kanban??null,provider:t.provider,model:t.model,lastActivityAt:t.lastActivityAt,snoozeCount:t.snooze?.count??0,snoozedUntil:t.snooze?.until??null}),f[6]=S,f[7]=s):s=f[7],t=(0,o.selectFeedCandidates)([...k.values()]).map(s),f[3]=k,f[4]=S,f[5]=t}else t=f[5];_=t}const y=_;let j;if(f[8]!==y){const t=new Set;for(const s of y)for(const n of s.tags)t.add(n);j=[...t].sort(),f[8]=y,f[9]=j}else j=f[9];const z=j;let A;return f[10]!==z||f[11]!==y?(A=(0,u.jsx)(n.ReelsScreen,{sessions:y,allTags:z}),f[10]=z,f[11]=y,f[12]=A):A=f[12],A}function b(t){const[s]=t;return s.slice(4)}function v(t){const[s]=t;return s.startsWith("tag:")}},4565,[350,36,379,4566,4573,3427,3441,279]);
16325
+ __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.shouldTrackSheetDrag=C,_e.shouldCloseOnDrag=I,_e.destructiveHint=z,_e.verbAccessibilityLabel=D,Object.defineProperty(_e,"UNWIRED_VERBS",{enumerable:!0,get:function(){return R}}),_e.bucketLabel=A,_e.relativeAge=H,_e.cardMetaLine=$,_e.backgroundTextFor=U,Object.defineProperty(_e,"ReelsScreen",{enumerable:!0,get:function(){return X}}),_e.shareTextFor=ne;var t=r(_d[0]),n=r(_d[1]),s=r(_d[2]),o=r(_d[3]),l=r(_d[4]),i=r(_d[5]),c=r(_d[6]),a=r(_d[7]),d=e(r(_d[8]));r(_d[9]);var u=e(r(_d[10]));r(_d[11]),r(_d[12]),r(_d[13]),r(_d[14]),r(_d[15]),r(_d[16]);var h=r(_d[17]),p=r(_d[18]),b=r(_d[19]),y=r(_d[20]),x=r(_d[21]),f=r(_d[22]),j=r(_d[23]),S=r(_d[24]),_=r(_d[25]),k=r(_d[26]),v=r(_d[27]),T=r(_d[28]),w=r(_d[29]);function C(e){return e>8}function I(e){return e>60}function z(e,t,n){return t&&"hold"!==t?t:e||"hold"===t?"hold to retire, this cannot be undone":n}function D(e,t){return"terminate"===e?`${t}. Hold to confirm, this cannot be undone.`:R.has(e)?`${t}. Not wired yet.`:t}const V={share:null,automate:null},R=new Set([]);function P(e){return e.key}const L={needs_input:"needs you",failed:"failed",attention:"wants a look",pending:"waiting",running:"running",done:"done"};function A(e){return L[e]??e.replace(/_/g," ")}function H(e,t=new Date){if(!e)return"";const n=t.getTime()-e.getTime();if(!Number.isFinite(n)||n<0)return"";const s=Math.floor(n/6e4);if(s<1)return"just now";if(s<60)return`${s}m`;const o=Math.floor(s/60);return o<24?`${o}h`:`${Math.floor(o/24)}d`}function $(e,t){return[A(String(e.statusBucket)),H(e.lastActivityAt,t),e.model?`${e.provider}/${e.model}`:e.provider].filter(e=>e.length>0).join(" \xb7 ")}const O=(0,a.memo)(function(e){const p=(0,c.c)(97),{session:b,visible:y,onClose:x,onSend:f,sendError:j,openDecisions:S,target:_}=e,[k,v]=(0,a.useState)(""),T=_?.question??null,C=b.digest;let z;p[0]!==f||p[1]!==k?(z=()=>{const e=k.trim();e.length>0&&(f(e),v(""))},p[0]=f,p[1]=k,p[2]=z):z=p[2];const D=z,V=(0,h.useSafeAreaInsets)(),R=Z.captionSheet,[P,L]=(0,a.useState)(!1);let A,H;p[3]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{const e=d.default.addListener("keyboardDidShow",()=>L(!0)),t=d.default.addListener("keyboardDidHide",()=>L(!1));return()=>{e.remove(),t.remove()}},H=[],p[3]=A,p[4]=H):(A=p[3],H=p[4]),(0,a.useEffect)(A,H);const $=P&&!1?0:V.bottom;let O;p[5]!==$?(O=[Z.sheetInner,{paddingBottom:$}],p[5]=$,p[6]=O):O=p[6];const M=O;let W;p[7]!==x?(W=u.default.create({onMoveShouldSetPanResponder:ge,onPanResponderRelease:(e,t)=>{I(t.dy)&&x()}}),p[7]=x,p[8]=W):W=p[8];const B=W;let F,G,N;p[9]!==x||p[10]!==y?(F=()=>{if(!y||"undefined"==typeof document)return;const e=e=>{"Escape"===e.key&&x()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},G=[x,y],p[9]=x,p[10]=y,p[11]=F,p[12]=G):(F=p[11],G=p[12]),(0,a.useEffect)(F,G),p[13]!==T||p[14]!==S.length?(N=T?(0,w.jsx)(s.Text,{style:Z.composerLabel,numberOfLines:2,testID:"reels-composer-target",children:S.length>1?`Answering the first of ${S.length} open decisions: ${T}`:`Answering: ${T}`}):null,p[13]=T,p[14]=S.length,p[15]=N):N=p[15];const K=T?"in your own words":"say what to do";let q,U,Y,J,Q;p[16]!==D||p[17]!==K||p[18]!==k?(q=(0,w.jsx)(n.TextInput,{value:k,onChangeText:v,placeholder:K,style:Z.composerInput,onSubmitEditing:D,returnKeyType:"send",testID:"reels-composer-input"}),p[16]=D,p[17]=K,p[18]=k,p[19]=q):q=p[19],p[20]===Symbol.for("react.memo_cache_sentinel")?(U=(0,w.jsx)(s.Text,{style:Z.link,children:"send"}),p[20]=U):U=p[20],p[21]!==D?(Y=(0,w.jsx)(l.Pressable,{onPress:D,style:Z.composerSend,accessibilityRole:"button",accessibilityLabel:"Send this answer",hitSlop:8,testID:"reels-composer-send",children:U}),p[21]=D,p[22]=Y):Y=p[22],p[23]!==q||p[24]!==Y?(J=(0,w.jsxs)(t.View,{style:Z.composer,children:[q,Y]}),p[23]=q,p[24]=Y,p[25]=J):J=p[25],p[26]!==J||p[27]!==N?(Q=(0,w.jsxs)(t.View,{children:[N,J]}),p[26]=J,p[27]=N,p[28]=Q):Q=p[28];const X=Q;if(!y)return null;let ee,te,ne,se,oe,le,ie;p[29]!==x?(ee=(0,w.jsx)(l.Pressable,{style:Z.captionBackdrop,onPress:x,accessibilityRole:"button",accessibilityLabel:"Close the digest",testID:"reels-caption-backdrop"}),p[29]=x,p[30]=ee):ee=p[30],p[31]===Symbol.for("react.memo_cache_sentinel")?(te=(0,w.jsx)(t.View,{style:Z.sheetHandle}),p[31]=te):te=p[31],p[32]!==B.panHandlers?(ne=(0,w.jsx)(t.View,Object.assign({},B.panHandlers,{style:Z.sheetGrab,testID:"reels-caption-grab",children:te})),p[32]=B.panHandlers,p[33]=ne):ne=p[33],p[34]!==b.title?(se=(0,w.jsx)(s.Text,{style:Z.sheetTitle,numberOfLines:1,children:b.title}),p[34]=b.title,p[35]=se):se=p[35],p[36]===Symbol.for("react.memo_cache_sentinel")?(oe=(0,w.jsx)(s.Text,{style:Z.sheetCloseGlyph,children:"\u2715"}),p[36]=oe):oe=p[36],p[37]!==x?(le=(0,w.jsx)(l.Pressable,{onPress:x,style:Z.sheetClose,hitSlop:8,accessibilityRole:"button",accessibilityLabel:"Close the digest",testID:"reels-caption-close",children:oe}),p[37]=x,p[38]=le):le=p[38],p[39]!==se||p[40]!==le?(ie=(0,w.jsxs)(t.View,{style:Z.sheetHead,children:[se,le]}),p[39]=se,p[40]=le,p[41]=ie):ie=p[41];const re=C?.summary;let ce;p[42]!==re?(ce=(0,w.jsx)(E,{label:"Summary",value:re,derived:!0}),p[42]=re,p[43]=ce):ce=p[43];const ae=C?.goal;let de;p[44]!==ae?(de=(0,w.jsx)(E,{label:"Goal",value:ae}),p[44]=ae,p[45]=de):de=p[45];const ue=C?.nextStep;let he,pe,be,xe,me,fe,je,Se,ke,ve,Te,we;if(p[46]!==ue?(he=(0,w.jsx)(E,{label:"Next step",value:ue}),p[46]=ue,p[47]=he):he=p[47],p[48]!==C?.blockers?(pe=C?.blockers?.join("\n"),p[48]=C?.blockers,p[49]=pe):pe=p[49],p[50]!==pe?(be=(0,w.jsx)(E,{label:"Blockers",value:pe,danger:!0}),p[50]=pe,p[51]=be):be=p[51],p[52]!==C?.accomplishments?(xe=C?.accomplishments?.join("\n"),p[52]=C?.accomplishments,p[53]=xe):xe=p[53],p[54]!==xe?(me=(0,w.jsx)(E,{label:"Accomplishments",value:xe,derived:!0}),p[54]=xe,p[55]=me):me=p[55],p[56]!==C?.keyFiles?(fe=C?.keyFiles?.join("\n"),p[56]=C?.keyFiles,p[57]=fe):fe=p[57],p[58]!==fe?(je=(0,w.jsx)(E,{label:"Key files",value:fe,derived:!0}),p[58]=fe,p[59]=je):je=p[59],p[60]!==C?.links?(Se=C?.links?.map(ye).join("\n"),p[60]=C?.links,p[61]=Se):Se=p[61],p[62]!==Se?(ke=(0,w.jsx)(E,{label:"Links",value:Se}),p[62]=Se,p[63]=ke):ke=p[63],p[64]!==S){let e;p[66]!==S.length?(e=(e,t)=>(0,w.jsx)(E,{label:S.length>1?`Decision ${t+1} of ${S.length}`:"Decision",value:e.question},e.id),p[66]=S.length,p[67]=e):e=p[67],ve=S.map(e),p[64]=S,p[65]=ve}else ve=p[65];p[68]!==b.tags?(Te=b.tags.join(", ")||"no tag",p[68]=b.tags,p[69]=Te):Te=p[69],p[70]!==Te?(we=(0,w.jsx)(E,{label:"Tags",value:Te}),p[70]=Te,p[71]=we):we=p[71];const Ce=b.kanban??"inbox";let Ie,ze,De,Ve,Re;return p[72]!==Ce?(Ie=(0,w.jsx)(E,{label:"Kanban",value:Ce}),p[72]=Ce,p[73]=Ie):Ie=p[73],p[74]!==ce||p[75]!==de||p[76]!==he||p[77]!==be||p[78]!==me||p[79]!==je||p[80]!==ke||p[81]!==ve||p[82]!==we||p[83]!==Ie?(ze=(0,w.jsxs)(o.ScrollView,{style:Z.sheetBody,testID:"reels-caption-body",children:[ce,de,he,be,me,je,ke,ve,we,Ie]}),p[74]=ce,p[75]=de,p[76]=he,p[77]=be,p[78]=me,p[79]=je,p[80]=ke,p[81]=ve,p[82]=we,p[83]=Ie,p[84]=ze):ze=p[84],p[85]!==j?(De=j?(0,w.jsxs)(s.Text,{style:Z.sendError,testID:"reels-composer-error",children:["Could not send that: ",j,". Nothing was recorded, so try again."]}):null,p[85]=j,p[86]=De):De=p[86],p[87]!==X||p[88]!==M||p[89]!==ne||p[90]!==ie||p[91]!==ze||p[92]!==De?(Ve=(0,w.jsx)(i.KeyboardAvoidingView,{behavior:"height",style:R,testID:"reels-caption-sheet",children:(0,w.jsxs)(t.View,{style:M,children:[ne,ie,ze,De,X]})}),p[87]=X,p[88]=M,p[89]=ne,p[90]=ie,p[91]=ze,p[92]=De,p[93]=Ve):Ve=p[93],p[94]!==ee||p[95]!==Ve?(Re=(0,w.jsxs)(w.Fragment,{children:[ee,Ve]}),p[94]=ee,p[95]=Ve,p[96]=Re):Re=p[96],Re}),E=(0,a.memo)(function(e){const n=(0,c.c)(9),{label:o,value:l,derived:i,danger:a}=e;if(!l)return null;const d=i?" (derived)":"";let u;n[0]!==o||n[1]!==d?(u=(0,w.jsxs)(s.Text,{style:Z.fieldLabel,children:[o,d]}),n[0]=o,n[1]=d,n[2]=u):u=n[2];const h=a?se:Z.fieldValue;let p,b;return n[3]!==h||n[4]!==l?(p=(0,w.jsx)(s.Text,{style:h,children:l}),n[3]=h,n[4]=l,n[5]=p):p=n[5],n[6]!==u||n[7]!==p?(b=(0,w.jsxs)(t.View,{style:Z.field,children:[u,p]}),n[6]=u,n[7]=p,n[8]=b):b=n[8],b}),M=(0,a.memo)(function(e){const t=(0,c.c)(24),{session:n,picked:o,isWinner:i,now:a,onToggle:d,onCrown:u}=e;let h;t[0]!==d||t[1]!==n.id?(h=()=>d(n.id),t[0]=d,t[1]=n.id,t[2]=h):h=t[2];const p=h;let b;t[3]!==u||t[4]!==n.id?(b=()=>u(n.id),t[3]=u,t[4]=n.id,t[5]=b):b=t[5];const y=b;let x="\u2610";o&&(x=i?"\u25c9":"\u2611");const f=o?oe:Z.pickRow,j=`reels-consolidate-pick-${n.id}`;let S,_,k;t[6]!==x?(S=(0,w.jsx)(s.Text,{style:Z.pickMark,children:x}),t[6]=x,t[7]=S):S=t[7],t[8]!==n.title?(_=(0,w.jsx)(s.Text,{style:Z.pickName,children:n.title}),t[8]=n.title,t[9]=_):_=t[9],t[10]!==a||t[11]!==n.lastActivityAt?(k=H(n.lastActivityAt,a),t[10]=a,t[11]=n.lastActivityAt,t[12]=k):k=t[12];const v=i&&o?" \xb7 survives":"";let T,C;return t[13]!==k||t[14]!==v?(T=(0,w.jsxs)(s.Text,{style:Z.pickAux,children:[k,v]}),t[13]=k,t[14]=v,t[15]=T):T=t[15],t[16]!==y||t[17]!==f||t[18]!==j||t[19]!==S||t[20]!==_||t[21]!==T||t[22]!==p?(C=(0,w.jsxs)(l.Pressable,{onPress:p,onLongPress:y,style:f,testID:j,children:[S,_,T]}),t[16]=y,t[17]=f,t[18]=j,t[19]=S,t[20]=_,t[21]=T,t[22]=p,t[23]=C):C=t[23],C}),W=(0,a.memo)(function(e){const n=(0,c.c)(48),{candidates:i,now:d,onCancel:u,onConsolidate:h}=e;let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p={},n[0]=p):p=n[0];const[b,y]=(0,a.useState)(p);let x;if(n[1]!==i||n[2]!==b){let e;n[4]!==b?(e=e=>b[e.id],n[4]=b,n[5]=e):e=n[5],x=i.filter(e),n[1]=i,n[2]=b,n[3]=x}else x=n[3];const f=x,[j,S]=(0,a.useState)(null);let _;n[6]!==f||n[7]!==j?(_=j??f.slice().sort(xe)[0]?.id??null,n[6]=f,n[7]=j,n[8]=_):_=n[8];const k=_;let v;n[9]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{y(t=>{const n=Object.assign({},t);return n[e]?delete n[e]:n[e]=!0,n})},n[9]=v):v=n[9];const T=v;let C;if(n[10]!==f||n[11]!==k){let e;n[13]!==k?(e=e=>e.id!==k,n[13]=k,n[14]=e):e=n[14],C=f.filter(e).map(me),n[10]=f,n[11]=k,n[12]=C}else C=n[12];const I=C,z=f.length>=2&&null!==k;let D;n[15]!==h||n[16]!==I||n[17]!==k?(D=()=>{k&&h(k,I)},n[15]=h,n[16]=I,n[17]=k,n[18]=D):D=n[18];const V=D;let R,P,L,A,H,$;if(n[19]===Symbol.for("react.memo_cache_sentinel")?(R=(0,w.jsx)(s.Text,{style:Z.sheetTitle,children:"Consolidate"}),P=(0,w.jsx)(s.Text,{style:Z.hint,children:"The winner keeps its transcript. The others are archived and linked to it, both ways. Nothing is deleted."}),n[19]=R,n[20]=P):(R=n[19],P=n[20]),n[21]!==i||n[22]!==d||n[23]!==b||n[24]!==k){let e;n[26]!==d||n[27]!==b||n[28]!==k?(e=e=>(0,w.jsx)(M,{session:e,picked:Boolean(b[e.id]),isWinner:k===e.id,now:d,onToggle:T,onCrown:S},e.id),n[26]=d,n[27]=b,n[28]=k,n[29]=e):e=n[29],L=i.map(e),n[21]=i,n[22]=d,n[23]=b,n[24]=k,n[25]=L}else L=n[25];n[30]!==L?(A=(0,w.jsx)(o.ScrollView,{style:Z.pickList,children:L}),n[30]=L,n[31]=A):A=n[31],n[32]===Symbol.for("react.memo_cache_sentinel")?(H=(0,w.jsx)(s.Text,{style:Z.link,children:"cancel"}),n[32]=H):H=n[32],n[33]!==u?($=(0,w.jsx)(l.Pressable,{onPress:u,style:Z.send,testID:"reels-consolidate-cancel",children:H}),n[33]=u,n[34]=$):$=n[34];const O=!z,E=z?Z.send:de;let W,B,F,G;return n[35]!==I.length?(W=(0,w.jsxs)(s.Text,{style:Z.link,children:["consolidate ",I.length]}),n[35]=I.length,n[36]=W):W=n[36],n[37]!==V||n[38]!==O||n[39]!==E||n[40]!==W?(B=(0,w.jsx)(l.Pressable,{onPress:V,disabled:O,style:E,testID:"reels-consolidate-commit",children:W}),n[37]=V,n[38]=O,n[39]=E,n[40]=W,n[41]=B):B=n[41],n[42]!==$||n[43]!==B?(F=(0,w.jsxs)(t.View,{style:Z.rowGap,children:[$,B]}),n[42]=$,n[43]=B,n[44]=F):F=n[44],n[45]!==A||n[46]!==F?(G=(0,w.jsxs)(t.View,{style:Z.sheet,testID:"reels-consolidate",children:[R,P,A,F]}),n[45]=A,n[46]=F,n[47]=G):G=n[47],G}),B=(0,a.memo)(function(e){const n=(0,c.c)(42),{verb:o,glyph:i,label:a,onVerb:d}=e,u="terminate"===o,{showLabel:h,progress:p,hint:b,handlers:y}=(0,S.useDestructiveHold)(d,o);let x;n[0]!==d||n[1]!==o?(x=()=>d(o),n[0]=d,n[1]=o,n[2]=x):x=n[2];const f=x;let j;n[3]!==p?(j=Math.round(100*p),n[3]=p,n[4]=j):j=n[4];const _=`${j}%`;let k;n[5]!==_?(k=[Z.verbFill,{width:_}],n[5]=_,n[6]=k):k=n[6];const v=k;if(!u){let e;n[7]!==a||n[8]!==o?(e=D(o,a),n[7]=a,n[8]=o,n[9]=e):e=n[9];const t=`reels-verb-${o}`;let c,d,u;return n[10]!==i?(c=(0,w.jsx)(s.Text,{style:Z.verbGlyph,children:i}),n[10]=i,n[11]=c):c=n[11],n[12]!==a?(d=(0,w.jsx)(s.Text,{style:Z.verbWord,children:a}),n[12]=a,n[13]=d):d=n[13],n[14]!==e||n[15]!==t||n[16]!==c||n[17]!==d||n[18]!==f?(u=(0,w.jsxs)(l.Pressable,{onPress:f,style:Z.verbChip,accessibilityRole:"button",accessibilityLabel:e,hitSlop:8,testID:t,children:[c,d]}),n[14]=e,n[15]=t,n[16]=c,n[17]=d,n[18]=f,n[19]=u):u=n[19],u}let T;n[20]!==a||n[21]!==o?(T=D(o,a),n[20]=a,n[21]=o,n[22]=T):T=n[22];const C=`reels-verb-${o}`;let I,V;n[23]!==v||n[24]!==p?(I=p>0?(0,w.jsx)(t.View,{style:v,testID:"reels-verb-hold-fill"}):null,n[23]=v,n[24]=p,n[25]=I):I=n[25],n[26]!==i?(V=(0,w.jsx)(s.Text,{style:Z.verbGlyph,children:i}),n[26]=i,n[27]=V):V=n[27];const R=h||b?le:Z.verbWord;let P,L,A;return n[28]!==a||n[29]!==R?(P=(0,w.jsx)(s.Text,{style:R,children:a}),n[28]=a,n[29]=R,n[30]=P):P=n[30],n[31]!==b||n[32]!==h?(L=h||b?(0,w.jsx)(s.Text,{style:Z.verbHoldLabel,testID:"reels-verb-terminate-hold",children:z(h,b,"hold to retire")}):null,n[31]=b,n[32]=h,n[33]=L):L=n[33],n[34]!==y||n[35]!==P||n[36]!==L||n[37]!==T||n[38]!==C||n[39]!==I||n[40]!==V?(A=(0,w.jsxs)(l.Pressable,Object.assign({},y,{style:Z.verbChip,accessibilityRole:"button",accessibilityLabel:T,hitSlop:8,testID:C,children:[I,V,P,L]})),n[34]=y,n[35]=P,n[36]=L,n[37]=T,n[38]=C,n[39]=I,n[40]=V,n[41]=A):A=n[41],A}),F=(0,a.memo)(function(e){const t=(0,c.c)(10),{everyMs:n,label:o,onPick:i}=e;let a;t[0]!==n||t[1]!==i?(a=()=>i(n),t[0]=n,t[1]=i,t[2]=a):a=t[2];const d=a,u=`reels-automate-${n}`;let h,p;return t[3]!==o?(h=(0,w.jsx)(s.Text,{style:Z.pickName,children:o}),t[3]=o,t[4]=h):h=t[4],t[5]!==o||t[6]!==d||t[7]!==u||t[8]!==h?(p=(0,w.jsx)(l.Pressable,{onPress:d,style:Z.pickRow,accessibilityRole:"button",accessibilityLabel:o,testID:u,children:h}),t[5]=o,t[6]=d,t[7]=u,t[8]=h,t[9]=p):p=t[9],p}),G=Object.keys(L).sort((e,t)=>(0,b.getWorkspaceStateBucketPriority)(e)-(0,b.getWorkspaceStateBucketPriority)(t)),N=(0,a.memo)(function(e){const t=(0,c.c)(14),{value:n,label:o,active:i,onCycle:a}=e;let d;t[0]!==a||t[1]!==n?(d=()=>a(n),t[0]=a,t[1]=n,t[2]=d):d=t[2];const u=d,h=i?ie:Z.tagChip;let p;t[3]!==i?(p=ae(i),t[3]=i,t[4]=p):p=t[4];const b=`reels-filter-${n}`;let y,x;return t[5]!==o?(y=(0,w.jsx)(s.Text,{style:Z.tagChipText,children:o}),t[5]=o,t[6]=y):y=t[6],t[7]!==o||t[8]!==u||t[9]!==h||t[10]!==p||t[11]!==b||t[12]!==y?(x=(0,w.jsx)(l.Pressable,{onPress:u,style:h,accessibilityRole:"button",accessibilityState:p,accessibilityLabel:o,testID:b,children:y}),t[7]=o,t[8]=u,t[9]=h,t[10]=p,t[11]=b,t[12]=y,t[13]=x):x=t[13],x}),K=(0,a.memo)(function(e){const t=(0,c.c)(10),{target:n,label:o,onShare:i}=e;let a;t[0]!==i||t[1]!==n?(a=()=>i(n),t[0]=i,t[1]=n,t[2]=a):a=t[2];const d=a,u=`Send to ${o}`,h=`reels-share-${n}`;let p,b;return t[3]!==o?(p=(0,w.jsx)(s.Text,{style:Z.pickName,children:o}),t[3]=o,t[4]=p):p=t[4],t[5]!==d||t[6]!==u||t[7]!==h||t[8]!==p?(b=(0,w.jsx)(l.Pressable,{onPress:d,style:Z.pickRow,accessibilityRole:"button",accessibilityLabel:u,testID:h,children:p}),t[5]=d,t[6]=u,t[7]=h,t[8]=p,t[9]=b):b=t[9],b}),q=(0,a.memo)(function(e){const n=(0,c.c)(42),{verb:o,glyph:i,label:a,detail:d,onVerb:u}=e,h="terminate"===o,{showLabel:p,progress:b,hint:y,handlers:x}=(0,S.useDestructiveHold)(u,o);let f;n[0]!==u||n[1]!==o?(f=()=>u(o),n[0]=u,n[1]=o,n[2]=f):f=n[2];const j=f;let _;n[3]!==b?(_=Math.round(100*b),n[3]=b,n[4]=_):_=n[4];const k=`${_}%`;let v;n[5]!==k?(v=[Z.verbFill,{width:k}],n[5]=k,n[6]=v):v=n[6];const T=v;let C;n[7]!==h||n[8]!==x||n[9]!==j?(C=h?x:{onPress:j},n[7]=h,n[8]=x,n[9]=j,n[10]=C):C=n[10];const I=C;let V;n[11]!==a||n[12]!==o?(V=D(o,a),n[11]=a,n[12]=o,n[13]=V):V=n[13];const P=`reels-taco-${o}`;let L,A,H,$,O,E,M,W;return n[14]!==h||n[15]!==b||n[16]!==T?(L=h&&b>0?(0,w.jsx)(t.View,{style:T,testID:"reels-taco-hold-fill"}):null,n[14]=h,n[15]=b,n[16]=T,n[17]=L):L=n[17],n[18]!==i?(A=(0,w.jsx)(s.Text,{style:Z.pickMark,children:i}),n[18]=i,n[19]=A):A=n[19],n[20]!==a?(H=(0,w.jsx)(s.Text,{style:Z.pickName,children:a}),n[20]=a,n[21]=H):H=n[21],n[22]!==h||n[23]!==d||n[24]!==y||n[25]!==p?($=h?z(p,y,d):d,n[22]=h,n[23]=d,n[24]=y,n[25]=p,n[26]=$):$=n[26],n[27]!==$?(O=(0,w.jsx)(s.Text,{style:Z.hint,children:$}),n[27]=$,n[28]=O):O=n[28],n[29]!==o?(E=R.has(o)?(0,w.jsx)(s.Text,{style:Z.pickAux,children:"not wired yet"}):null,n[29]=o,n[30]=E):E=n[30],n[31]!==H||n[32]!==O||n[33]!==E?(M=(0,w.jsxs)(t.View,{style:Z.grow,children:[H,O,E]}),n[31]=H,n[32]=O,n[33]=E,n[34]=M):M=n[34],n[35]!==I||n[36]!==M||n[37]!==V||n[38]!==P||n[39]!==L||n[40]!==A?(W=(0,w.jsxs)(l.Pressable,Object.assign({},I,{style:Z.pickRow,accessibilityRole:"button",accessibilityLabel:V,testID:P,children:[L,A,M]})),n[35]=I,n[36]=M,n[37]=V,n[38]=P,n[39]=L,n[40]=A,n[41]=W):W=n[41],W});function U(e){const t=e.digest,n=t?.summary??t?.goal,s=[t?.goal,t?.nextStep,t?.blockers?.length?t.blockers.join("\n"):void 0].filter(e=>Boolean(e&&e!==n));return s.length>0?s.join("\n\n"):e.title}const Y=(0,a.memo)(function(e){const n=(0,c.c)(7),{mode:o,text:l}=e;if("off"===o)return null;const i="text"===o?ue:Z.background,a=`reels-background-${o}`;let d,u;return n[0]!==o||n[1]!==l?(d="text"===o?(0,w.jsx)(s.Text,{style:Z.backgroundBody,numberOfLines:40,children:l}):null,n[0]=o,n[1]=l,n[2]=d):d=n[2],n[3]!==i||n[4]!==a||n[5]!==d?(u=(0,w.jsx)(t.View,{style:i,testID:a,children:d}),n[3]=i,n[4]=a,n[5]=d,n[6]=u):u=n[6],u}),J=(0,a.memo)(function(e){const n=(0,c.c)(23),{gated:o,allTags:l,onPickTag:i,decision:a,decisions:d,serverId:u,agentId:h,onAnswered:p,onVerb:b,actAllowed:f,capLabel:j}=e;if(o){let e;return n[0]!==l||n[1]!==i?(e=(0,w.jsx)(x.TagGate,{available:l,onPick:i}),n[0]=l,n[1]=i,n[2]=e):e=n[2],e}if(a){if(!f){let e,o,l,i,c;return n[3]!==j?(e=(0,w.jsx)(s.Text,{style:Z.hint,children:j}),n[3]=j,n[4]=e):e=n[4],n[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,w.jsx)(s.Text,{style:Z.cardTapHint,children:"Decisions are done for today. You can still retire or snooze this one."}),n[5]=o):o=n[5],n[6]!==b?(l=x.TACO_VERBS.map(e=>(0,w.jsx)(B,{verb:e.id,glyph:e.glyph,label:e.label,onVerb:b},e.id)),n[6]=b,n[7]=l):l=n[7],n[8]!==l?(i=(0,w.jsx)(t.View,{style:Z.rowGap,children:l}),n[8]=l,n[9]=i):i=n[9],n[10]!==e||n[11]!==i?(c=(0,w.jsxs)(t.View,{testID:"reels-cap-reached",children:[e,o,i]}),n[10]=e,n[11]=i,n[12]=c):c=n[12],c}let e;return n[13]!==h||n[14]!==d||n[15]!==p||n[16]!==u?(e=(0,w.jsx)(y.DecisionChips,{serverId:u,agentId:h,decisions:d,onAnswered:p}),n[13]=h,n[14]=d,n[15]=p,n[16]=u,n[17]=e):e=n[17],e}let S,_,k;return n[18]===Symbol.for("react.memo_cache_sentinel")?(S=(0,w.jsx)(s.Text,{style:Z.hint,children:"Nothing to decide. Why is this still open?"}),n[18]=S):S=n[18],n[19]!==b?(_=x.TACO_VERBS.map(e=>(0,w.jsx)(B,{verb:e.id,glyph:e.glyph,label:e.label,onVerb:b},e.id)),n[19]=b,n[20]=_):_=n[20],n[21]!==_?(k=(0,w.jsxs)(t.View,{testID:"reels-taco-row",children:[S,(0,w.jsx)(t.View,{style:Z.rowGap,children:_})]}),n[21]=_,n[22]=k):k=n[22],k}),Q=(0,a.memo)(function(e){const n=(0,c.c)(64),{overlay:i,session:a,ring:d,now:u,decisionTarget:h,onClose:p,onSend:b,onSnooze:y,onConsolidate:f,onKanban:j,onVerb:S,overlayStyle:_,sendError:k,verbError:v,openDecisions:T,onShare:C,onAutomate:I,allTags:z,statusSelection:D,tagSelection:V,onCycleStatus:R,onCycleTag:P}=e,L=a,H="caption"===i.kind;let $,E,M,B,U,Y,J,Q,X;return n[0]!==L||n[1]!==h||n[2]!==p||n[3]!==b||n[4]!==T||n[5]!==k||n[6]!==H?($=(0,w.jsx)(O,{session:L,visible:H,onClose:p,onSend:b,sendError:k,openDecisions:T,target:h},L.id),n[0]=L,n[1]=h,n[2]=p,n[3]=b,n[4]=T,n[5]=k,n[6]=H,n[7]=$):$=n[7],n[8]!==L.snoozeCount||n[9]!==p||n[10]!==y||n[11]!==i.kind||n[12]!==_?(E="snooze"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsx)(x.SnoozeSheet,{priorCount:L.snoozeCount,onCancel:p,onSnooze:y})}):null,n[8]=L.snoozeCount,n[9]=p,n[10]=y,n[11]=i.kind,n[12]=_,n[13]=E):E=n[13],n[14]!==u||n[15]!==p||n[16]!==f||n[17]!==i.kind||n[18]!==_||n[19]!==d?(M="consolidate"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsx)(W,{candidates:d,now:u,onCancel:p,onConsolidate:f})}):null,n[14]=u,n[15]=p,n[16]=f,n[17]=i.kind,n[18]=_,n[19]=d,n[20]=M):M=n[20],n[21]!==p||n[22]!==S||n[23]!==i.kind||n[24]!==_?(B="taco"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(t.View,{style:Z.sheet,testID:"reels-taco-sheet",children:[(0,w.jsx)(s.Text,{style:Z.sheetTitle,children:"TACO"}),x.TACO_VERBS.map(e=>(0,w.jsx)(q,{verb:e.id,glyph:e.glyph,label:e.label,detail:e.detail,onVerb:S},e.id)),(0,w.jsx)(l.Pressable,{onPress:p,style:Z.send,children:(0,w.jsx)(s.Text,{style:Z.link,children:"cancel"})})]})}):null,n[21]=p,n[22]=S,n[23]=i.kind,n[24]=_,n[25]=B):B=n[25],n[26]!==z||n[27]!==p||n[28]!==R||n[29]!==P||n[30]!==i.kind||n[31]!==_||n[32]!==D||n[33]!==V?(U="filters"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(o.ScrollView,{style:Z.sheet,testID:"reels-filters-sheet",children:[(0,w.jsx)(s.Text,{style:Z.sheetTitle,children:"Filter the ring"}),(0,w.jsx)(s.Text,{style:Z.hint,children:"The same filter the sessions list uses, so setting it here sets it there."}),(0,w.jsx)(s.Text,{style:Z.fieldLabel,children:"State"}),(0,w.jsx)(t.View,{style:Z.rowGap,children:G.map(e=>(0,w.jsx)(N,{value:e,label:A(e),active:D.include.includes(e),onCycle:R},e))}),(0,w.jsx)(s.Text,{style:Z.fieldLabel,children:"Tag"}),(0,w.jsx)(t.View,{style:Z.rowGap,children:z.map(e=>(0,w.jsx)(N,{value:e,label:e,active:V.include.includes(e),onCycle:P},e))}),(0,w.jsx)(l.Pressable,{onPress:p,style:Z.send,testID:"reels-filters-done",children:(0,w.jsx)(s.Text,{style:Z.link,children:"done"})})]})}):null,n[26]=z,n[27]=p,n[28]=R,n[29]=P,n[30]=i.kind,n[31]=_,n[32]=D,n[33]=V,n[34]=U):U=n[34],n[35]!==I||n[36]!==p||n[37]!==i.kind||n[38]!==_||n[39]!==v?(Y="automate"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(t.View,{style:Z.sheet,testID:"reels-automate-sheet",children:[(0,w.jsx)(s.Text,{style:Z.sheetTitle,children:"Automate"}),(0,w.jsx)(s.Text,{style:Z.hint,children:"Re-runs this session on a cadence, with its next step as the prompt."}),v?(0,w.jsx)(s.Text,{style:Z.sendError,testID:"reels-verb-error",children:v}):null,be.map(e=>(0,w.jsx)(F,{everyMs:e.everyMs,label:e.label,onPick:I},e.id)),(0,w.jsx)(l.Pressable,{onPress:p,style:Z.send,children:(0,w.jsx)(s.Text,{style:Z.link,children:"cancel"})})]})}):null,n[35]=I,n[36]=p,n[37]=i.kind,n[38]=_,n[39]=v,n[40]=Y):Y=n[40],n[41]!==p||n[42]!==C||n[43]!==i.kind||n[44]!==_||n[45]!==v?(J="share"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(t.View,{style:Z.sheet,testID:"reels-share-sheet",children:[(0,w.jsx)(s.Text,{style:Z.sheetTitle,children:"Send"}),(0,w.jsx)(s.Text,{style:Z.hint,children:"Send this card somewhere a person will read it."}),v?(0,w.jsx)(s.Text,{style:Z.sendError,testID:"reels-verb-error",children:v}):null,ee.map(e=>(0,w.jsx)(K,{target:e.id,label:e.label,onShare:C},e.id)),(0,w.jsx)(l.Pressable,{onPress:p,style:Z.send,children:(0,w.jsx)(s.Text,{style:Z.link,children:"cancel"})})]})}):null,n[41]=p,n[42]=C,n[43]=i.kind,n[44]=_,n[45]=v,n[46]=J):J=n[46],n[47]!==L.kanban||n[48]!==L.model||n[49]!==L.provider||n[50]!==p||n[51]!==j||n[52]!==i.kind||n[53]!==_?(Q="options"===i.kind?(0,w.jsx)(t.View,{style:_,children:(0,w.jsxs)(o.ScrollView,{style:Z.sheet,testID:"reels-options-sheet",children:[(0,w.jsx)(s.Text,{style:Z.sheetTitle,children:"Session options"}),(0,w.jsx)(s.Text,{style:Z.fieldLabel,children:"Kanban"}),(0,w.jsx)(x.KanbanPicker,{current:L.kanban,onPick:j}),(0,w.jsx)(s.Text,{style:Z.fieldLabel,children:"Provider and model"}),(0,w.jsx)(s.Text,{style:Z.fieldValue,children:L.model?`${L.provider}/${L.model}`:L.provider}),(0,w.jsx)(s.Text,{style:Z.hint,children:"One control in the app, not two: combined-model-selector with favourites."}),(0,w.jsx)(l.Pressable,{onPress:p,style:Z.send,children:(0,w.jsx)(s.Text,{style:Z.link,children:"close"})})]})}):null,n[47]=L.kanban,n[48]=L.model,n[49]=L.provider,n[50]=p,n[51]=j,n[52]=i.kind,n[53]=_,n[54]=Q):Q=n[54],n[55]!==$||n[56]!==E||n[57]!==M||n[58]!==B||n[59]!==U||n[60]!==Y||n[61]!==J||n[62]!==Q?(X=(0,w.jsxs)(w.Fragment,{children:[$,E,M,B,U,Y,J,Q]}),n[55]=$,n[56]=E,n[57]=M,n[58]=B,n[59]=U,n[60]=Y,n[61]=J,n[62]=Q,n[63]=X):X=n[63],X}),X=(0,a.memo)(function(e){const n=(0,c.c)(165),{sessions:o,allTags:i,actCap:d,background:u,now:p}=e,b=void 0===d?T.DEFAULT_ACT_CAP:d,y=void 0===u?"text":u,S=(0,_.useReelsVerbs)(),{answer:C}=(0,j.useAnswerDecision)(),[I,z]=(0,a.useState)(fe);let D,R,L;n[0]!==p?(D=()=>{if(p)return;const e=setInterval(()=>z(Date.now()),6e4);return()=>clearInterval(e)},R=[p],n[0]=p,n[1]=D,n[2]=R):(D=n[1],R=n[2]),(0,a.useEffect)(D,R),n[3]!==p||n[4]!==I?(L=p??new Date(I),n[3]=p,n[4]=I,n[5]=L):L=n[5];const A=L,[H,O]=(0,a.useState)(1),[E,M]=(0,a.useState)(0),[W,B]=(0,a.useState)(0);let F;n[6]===Symbol.for("react.memo_cache_sentinel")?(F={kind:"none"},n[6]=F):F=n[6];const[G,N]=(0,a.useState)(F);let K;n[7]===Symbol.for("react.memo_cache_sentinel")?(K={},n[7]=K):K=n[7];const[q,X]=(0,a.useState)(K);let ee;n[8]===Symbol.for("react.memo_cache_sentinel")?(ee={},n[8]=ee):ee=n[8];const[te,se]=(0,a.useState)(ee),[oe,le]=(0,a.useState)(null),[ie,re]=(0,a.useState)(V);let ce;n[9]===Symbol.for("react.memo_cache_sentinel")?(ce=(e,t)=>{re(n=>Object.assign({},n,{[e]:t}))},n[9]=ce):ce=n[9];const ae=ce,de=(0,a.useRef)(null);let ue;n[10]!==te||n[11]!==H||n[12]!==q||n[13]!==A||n[14]!==o?(ue={sessions:o,localTags:q,actedLaps:te,laps:H,now:A},n[10]=te,n[11]=H,n[12]=q,n[13]=A,n[14]=o,n[15]=ue):ue=n[15];const{feed:be,activeFilters:ge,statusSelection:ye,tagSelection:xe,onCycleStatus:me,onCycleTag:we}=(0,k.useReelsFeed)(ue),Ce=be[Math.min(W,Math.max(be.length-1,0))]??null,Ie=Ce?.session??null,ze=Ce?.lap??1;let De;n[16]!==ze?(De=e=>e.lap===ze,n[16]=ze,n[17]=De):De=n[17];const Ve=be.findIndex(De);let Re;if(n[18]!==be||n[19]!==ze){let e;n[21]!==ze?(e=e=>e.lap===ze,n[21]=ze,n[22]=e):e=n[22],Re=be.filter(e),n[18]=be,n[19]=ze,n[20]=Re}else Re=n[20];const Pe=Re.length;let Le;if(n[23]!==be||n[24]!==ze){let e;n[26]!==ze?(e=e=>e.lap===ze,n[26]=ze,n[27]=e):e=n[27],Le=be.filter(e).map(je),n[23]=be,n[24]=ze,n[25]=Le}else Le=n[25];const Ae=Le,He=Ie?.id??"",$e=Ie?.serverId??"";let Oe;var Ee;n[28]!==Ie?(Oe=Ie?(Ee=Ie.digest,(Ee?.pendingDecisions??[]).filter(e=>!e.answeredAt)):[],n[28]=Ie,n[29]=Oe):Oe=n[29];const Me=Oe,We=Me[0]??null;let Be;n[30]!==Me?(Be=Me.map(Se),n[30]=Me,n[31]=Be):Be=n[31];const Fe=Be,Ge=Me,Ne=!!Ie&&0===Ie.tags.length;let Ke;n[32]!==b||n[33]!==E?(Ke=(0,T.canAct)({acts:E,cap:b}),n[32]=b,n[33]=E,n[34]=Ke):Ke=n[34];const qe=Ke;let Ue;n[35]!==b||n[36]!==E?(Ue=(0,T.actCapLabel)({acts:E,cap:b}),n[35]=b,n[36]=E,n[37]=Ue):Ue=n[37];const Ye=Ue,Je=(0,h.useSafeAreaInsets)();let Qe;n[38]!==Je.top?(Qe=[Z.headerSlot,{paddingTop:Je.top}],n[38]=Je.top,n[39]=Qe):Qe=n[39];const Xe=Qe,Ze=Je.top+56;let et;n[40]!==Ze?(et=[Z.seamBanner,{paddingTop:Ze}],n[40]=Ze,n[41]=et):et=n[41];const tt=et;let nt;n[42]!==Je.bottom||n[43]!==Je.top?(nt=[Z.overlay,{paddingTop:Je.top,paddingBottom:Je.bottom}],n[42]=Je.bottom,n[43]=Je.top,n[44]=nt):nt=n[44];const st=nt;let ot;n[45]!==W?(ot=()=>{N({kind:"none"}),de.current?.scrollToIndex(W+1)},n[45]=W,n[46]=ot):ot=n[46];const lt=ot;let it;n[47]!==ze?(it=e=>{se(t=>Object.assign({},t,{[e]:ze}))},n[47]=ze,n[48]=it):it=n[48];const rt=it;let ct;n[49]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>{O(ke)},n[49]=ct):ct=n[49];const at=ct;let dt,ut,ht,pt,bt,gt;n[50]===Symbol.for("react.memo_cache_sentinel")?(dt={id:"read",glyph:"\ud83d\udcd6",label:"read"},n[50]=dt):dt=n[50],n[51]!==Ne?(ut={id:"snooze",glyph:"\ud83d\ude34",label:"snooze",disabled:Ne},n[51]=Ne,n[52]=ut):ut=n[52],n[53]===Symbol.for("react.memo_cache_sentinel")?(ht={id:"share",glyph:"\ud83d\udce4",label:"send"},n[53]=ht):ht=n[53],n[54]!==Ne?(pt={id:"taco",glyph:"\u2699\ufe0f",label:"TACO",disabled:Ne},n[54]=Ne,n[55]=pt):pt=n[55],n[56]===Symbol.for("react.memo_cache_sentinel")?(bt={id:"options",glyph:"\u22ef",label:"options"},n[56]=bt):bt=n[56],n[57]!==ut||n[58]!==pt?(gt=[dt,ut,ht,pt,bt],n[57]=ut,n[58]=pt,n[59]=gt):gt=n[59];const yt=gt;let xt;n[60]===Symbol.for("react.memo_cache_sentinel")?(xt=()=>N({kind:"caption"}),n[60]=xt):xt=n[60];const mt=xt;let ft;n[61]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>N({kind:"none"}),n[61]=ft):ft=n[61];const jt=ft;let St;n[62]===Symbol.for("react.memo_cache_sentinel")?(St=()=>N({kind:"filters"}),n[62]=St):St=n[62];const _t=St;let kt;n[63]===Symbol.for("react.memo_cache_sentinel")?(kt=e=>{re(V);const t=he[e];t&&N({kind:t})},n[63]=kt):kt=n[63];const vt=kt;let Tt;n[64]!==He||n[65]!==$e||n[66]!==S?(Tt=e=>{X(t=>Object.assign({},t,{[He]:[e]})),S.setTags({serverId:$e,agentId:He},[e])},n[64]=He,n[65]=$e,n[66]=S,n[67]=Tt):Tt=n[67];const wt=Tt;let Ct;n[68]!==lt||n[69]!==He||n[70]!==Me.length||n[71]!==rt?(Ct=()=>{M(ve),rt(He),Me.length<=1&&lt()},n[68]=lt,n[69]=He,n[70]=Me.length,n[71]=rt,n[72]=Ct):Ct=n[72];const It=Ct;let zt;n[73]!==lt||n[74]!==He||n[75]!==rt||n[76]!==$e||n[77]!==S?(zt=async e=>{if("terminate"===e)return await S.terminate({serverId:$e,agentId:He}),rt(He),void lt();re(V),N({kind:pe[e]})},n[73]=lt,n[74]=He,n[75]=rt,n[76]=$e,n[77]=S,n[78]=zt):zt=n[78];const Dt=zt;let Vt;n[79]!==lt||n[80]!==He||n[81]!==rt||n[82]!==$e||n[83]!==S?(Vt=e=>{S.snooze({serverId:$e,agentId:He},e.until,e.untilWhat,e.why),rt(He),lt()},n[79]=lt,n[80]=He,n[81]=rt,n[82]=$e,n[83]=S,n[84]=Vt):Vt=n[84];const Rt=Vt;let Pt;n[85]!==lt||n[86]!==rt||n[87]!==$e||n[88]!==S?(Pt=(e,t)=>{S.consolidate({serverId:$e,winnerId:e,sourceIds:t});for(const n of[e,...t])rt(n);lt()},n[85]=lt,n[86]=rt,n[87]=$e,n[88]=S,n[89]=Pt):Pt=n[89];const Lt=Pt;let At;n[90]!==C||n[91]!==He||n[92]!==We||n[93]!==It||n[94]!==$e?(At=e=>{const t=e.trim();0!==t.length&&We?(le(null),C({serverId:$e,agentId:He,decisionId:We.id,optionId:null,note:t}).then(()=>(It(),null)).catch(e=>{le(e instanceof Error?e.message:String(e))})):N({kind:"none"})},n[90]=C,n[91]=He,n[92]=We,n[93]=It,n[94]=$e,n[95]=At):At=n[95];const Ht=At;let $t;n[96]!==Ie||n[97]!==S?($t=e=>{Ie&&(ae("share",null),S.share(e,ne(Ie)).then(()=>(N({kind:"none"}),null)).catch(e=>{ae("share",e instanceof Error?e.message:"could not open that")}))},n[96]=Ie,n[97]=S,n[98]=$t):$t=n[98];const Ot=$t;let Et;n[99]!==lt||n[100]!==Ie||n[101]!==He||n[102]!==rt||n[103]!==$e||n[104]!==S?(Et=e=>{if(!Ie)return;ae("automate",null);const t=Ie.digest?.nextStep??Ie.digest?.goal??`Continue ${Ie.title}`;S.automate({serverId:$e,agentId:He},e,t,Ie.title).then(()=>(rt(He),lt(),null)).catch(e=>{ae("automate",e instanceof Error?e.message:"could not create the routine")})},n[99]=lt,n[100]=Ie,n[101]=He,n[102]=rt,n[103]=$e,n[104]=S,n[105]=Et):Et=n[105];const Mt=Et;let Wt;n[106]!==He||n[107]!==$e||n[108]!==S?(Wt=e=>{S.setKanban({serverId:$e,agentId:He},e),N({kind:"none"})},n[106]=He,n[107]=$e,n[108]=S,n[109]=Wt):Wt=n[109];const Bt=Wt;let Ft;n[110]!==i||n[111]!==qe||n[112]!==y||n[113]!==Ye||n[114]!==We||n[115]!==Ge||n[116]!==be||n[117]!==Ne||n[118]!==W||n[119]!==A||n[120]!==It||n[121]!==Dt||n[122]!==wt||n[123]!==yt||n[124]!==Ae.length||n[125]!==tt?(Ft=(e,n)=>{const o=n===W,c=e.session;return(0,w.jsxs)(t.View,{style:Z.card,children:[(0,w.jsx)(Y,{mode:y,text:U(c)}),e.firstOfLap&&e.lap>1?(0,w.jsx)(t.View,{style:tt,testID:`reels-seam-${e.lap}`,children:(0,w.jsx)(x.LapSeam,{lap:e.lap,ringSize:Ae.length,acted:(0,v.actedThisLap)(be.filter(t=>t.lap===e.lap-1).map(Te),e.lap-1)})}):null,(0,w.jsx)(t.View,{style:Z.middle,children:o?(0,w.jsx)(x.ReelsRail,{actions:yt,contextLabel:c.tags[0]??"untagged",onAction:vt}):null}),(0,w.jsxs)(t.View,{style:Z.bottom,children:[(0,w.jsxs)(l.Pressable,{onPress:o?mt:void 0,disabled:!o,testID:o?"reels-caption-open":void 0,accessibilityRole:"button",accessibilityLabel:`Open the full digest for ${c.title}`,style:Z.captionTap,children:[(0,w.jsx)(s.Text,{style:Z.cardTitle,children:c.title}),(0,w.jsx)(s.Text,{style:Z.cardMeta,children:$(c,A)}),(0,w.jsx)(s.Text,{style:Z.cardSummary,numberOfLines:4,children:c.digest?.summary??c.digest?.goal??"No digest yet."}),o?(0,w.jsx)(s.Text,{style:Z.cardTapHint,children:"tap for the whole digest and to talk to it"}):null]}),o?(0,w.jsx)(J,{gated:Ne,allTags:i,onPickTag:wt,decision:We,decisions:Ge,serverId:c.serverId,agentId:c.id,onAnswered:It,onVerb:Dt,actAllowed:qe,capLabel:Ye}):null]})]})},n[110]=i,n[111]=qe,n[112]=y,n[113]=Ye,n[114]=We,n[115]=Ge,n[116]=be,n[117]=Ne,n[118]=W,n[119]=A,n[120]=It,n[121]=Dt,n[122]=wt,n[123]=yt,n[124]=Ae.length,n[125]=tt,n[126]=Ft):Ft=n[126];const Gt=Ft;if(!Ie){let e;return n[127]===Symbol.for("react.memo_cache_sentinel")?(e=(0,w.jsx)(t.View,{style:Z.empty,testID:"reels-empty",children:(0,w.jsx)(s.Text,{style:Z.fieldValue,children:"No sessions in the ring."})}),n[127]=e):e=n[127],e}let Nt;n[128]!==be||n[129]!==Gt?(Nt=(0,w.jsx)(f.ReelsPager,{data:be,keyExtractor:P,renderCard:Gt,onIndexChange:B,onEndReached:at,controllerRef:de}),n[128]=be,n[129]=Gt,n[130]=Nt):Nt=n[130];const Kt=`${Ve>=0?W-Ve+1:W+1}/${Pe} \xb7 lap ${ze}`;let qt,Ut;n[131]!==b||n[132]!==ge||n[133]!==E||n[134]!==Kt?(qt=(0,w.jsx)(x.ReelsHeader,{acts:E,cap:b,activeFilters:ge,onFilter:_t,position:Kt}),n[131]=b,n[132]=ge,n[133]=E,n[134]=Kt,n[135]=qt):qt=n[135],n[136]!==Xe||n[137]!==qt?(Ut=(0,w.jsx)(t.View,{style:Xe,pointerEvents:"box-none",children:qt}),n[136]=Xe,n[137]=qt,n[138]=Ut):Ut=n[138];const Yt="automate"===G.kind?ie.automate:ie.share;let Jt,Qt;return n[139]!==i||n[140]!==Ie||n[141]!==We||n[142]!==A||n[143]!==Mt||n[144]!==Ht||n[145]!==Lt||n[146]!==me||n[147]!==we||n[148]!==Bt||n[149]!==Ot||n[150]!==Rt||n[151]!==Dt||n[152]!==Fe||n[153]!==G||n[154]!==st||n[155]!==Ae||n[156]!==oe||n[157]!==ye||n[158]!==Yt||n[159]!==xe?(Jt=(0,w.jsx)(Q,{overlay:G,session:Ie,ring:Ae,now:A,decisionTarget:We,onClose:jt,onSend:Ht,onSnooze:Rt,onConsolidate:Lt,onKanban:Bt,onVerb:Dt,overlayStyle:st,sendError:oe,verbError:Yt,openDecisions:Fe,onShare:Ot,onAutomate:Mt,allTags:i,statusSelection:ye,tagSelection:xe,onCycleStatus:me,onCycleTag:we}),n[139]=i,n[140]=Ie,n[141]=We,n[142]=A,n[143]=Mt,n[144]=Ht,n[145]=Lt,n[146]=me,n[147]=we,n[148]=Bt,n[149]=Ot,n[150]=Rt,n[151]=Dt,n[152]=Fe,n[153]=G,n[154]=st,n[155]=Ae,n[156]=oe,n[157]=ye,n[158]=Yt,n[159]=xe,n[160]=Jt):Jt=n[160],n[161]!==Nt||n[162]!==Ut||n[163]!==Jt?(Qt=(0,w.jsxs)(t.View,{style:Z.root,testID:"reels-screen",children:[Nt,Ut,Jt]}),n[161]=Nt,n[162]=Ut,n[163]=Jt,n[164]=Qt):Qt=n[164],Qt}),Z=p.StyleSheet.create(e=>({composerLabel:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,paddingHorizontal:e.spacing[2],paddingTop:e.spacing[1],uni__dependencies:[0]},sheetInner:{flex:1},tagChip:{minHeight:44,justifyContent:"center",borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius.full,paddingHorizontal:e.spacing[2],uni__dependencies:[0]},tagChipOn:{borderColor:e.colors.accent,uni__dependencies:[0]},tagChipText:{color:e.colors.foreground,fontSize:e.fontSize.xs,uni__dependencies:[0]},sheetGrab:{minHeight:44,alignItems:"center",justifyContent:"center"},sheetHandle:{width:38,height:4,borderRadius:e.borderRadius.full,backgroundColor:e.colors.border,uni__dependencies:[0]},verbFill:{position:"absolute",left:0,top:0,bottom:0,backgroundColor:e.colors.destructive,opacity:.18,borderRadius:e.borderRadius.full,uni__dependencies:[0]},sendError:{color:e.colors.destructive,fontSize:e.fontSize.xs,paddingHorizontal:e.spacing[2],uni__dependencies:[0]},verbHoldLabel:{color:e.colors.destructive,fontSize:e.fontSize.xs,uni__dependencies:[0]},captionBackdrop:Object.assign({},p.StyleSheet.absoluteFillObject,{backgroundColor:e.colors.background,opacity:.72,uni__dependencies:[0]}),sheetClose:{minWidth:44,minHeight:44,alignItems:"center",justifyContent:"center"},sheetCloseGlyph:{color:e.colors.foregroundMuted,fontSize:e.fontSize.base,uni__dependencies:[0]},card:{flex:1},seamBanner:{paddingHorizontal:e.spacing[2],uni__dependencies:[0]},headerSlot:{position:"absolute",top:0,left:0,right:0},captionTap:{minHeight:44,justifyContent:"flex-end"},root:{flex:1,backgroundColor:e.colors.background,uni__dependencies:[0]},background:Object.assign({},p.StyleSheet.absoluteFillObject,{opacity:.35,backgroundColor:e.colors.surface0,uni__dependencies:[0]}),backgroundText:{padding:e.spacing[2],uni__dependencies:[0]},backgroundBody:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,lineHeight:20,uni__dependencies:[0]},middle:{flex:1,alignItems:"flex-end",justifyContent:"flex-end",paddingHorizontal:e.spacing[2],uni__dependencies:[0]},bottom:{padding:e.spacing[2],gap:e.spacing[1],uni__dependencies:[0]},cardTitle:{color:e.colors.foreground,fontSize:e.fontSize.base,fontWeight:"600",uni__dependencies:[0]},cardMeta:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,marginTop:2,uni__dependencies:[0]},cardSummary:{color:e.colors.foreground,fontSize:e.fontSize.sm,marginTop:6,lineHeight:19,uni__dependencies:[0]},cardTapHint:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,marginTop:4,uni__dependencies:[0]},hint:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,lineHeight:17,uni__dependencies:[0]},rowGap:{flexDirection:"row",flexWrap:"wrap",gap:e.spacing[1],alignItems:"center",uni__dependencies:[0]},verbChip:{minHeight:44,minWidth:44,alignItems:"center",justifyContent:"center",overflow:"hidden",borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius["2xl"],paddingHorizontal:e.spacing[2],paddingVertical:e.spacing[1],uni__dependencies:[0]},verbGlyph:{fontSize:20},verbWord:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,uni__dependencies:[0]},verbWordDanger:{color:e.colors.destructive,fontSize:e.fontSize.xs,fontWeight:"600",uni__dependencies:[0]},overlay:Object.assign({},p.StyleSheet.absoluteFillObject,{backgroundColor:e.colors.background,uni__dependencies:[0]}),sheet:{padding:e.spacing[2],gap:e.spacing[1],uni__dependencies:[0]},sheetTitle:{color:e.colors.foreground,fontSize:e.fontSize.base,fontWeight:"600",uni__dependencies:[0]},captionSheet:{position:"absolute",left:0,right:0,bottom:0,top:"42%",backgroundColor:e.colors.background,borderTopWidth:1,borderTopColor:e.colors.border,borderTopLeftRadius:e.borderRadius["2xl"],borderTopRightRadius:e.borderRadius["2xl"],uni__dependencies:[0]},sheetHead:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:e.spacing[2],borderBottomWidth:1,borderBottomColor:e.colors.border,uni__dependencies:[0]},sheetBody:{flex:1,padding:e.spacing[2],uni__dependencies:[0]},field:{marginBottom:e.spacing[1],uni__dependencies:[0]},fieldLabel:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,textTransform:"uppercase",letterSpacing:.6,marginTop:e.spacing[1],uni__dependencies:[0]},fieldValue:{color:e.colors.foreground,fontSize:e.fontSize.xs,lineHeight:18,uni__dependencies:[0]},fieldDanger:{color:e.colors.destructive,uni__dependencies:[0]},composer:{flexDirection:"row",alignItems:"center",gap:e.spacing[1],padding:e.spacing[2],borderTopWidth:1,borderTopColor:e.colors.border,uni__dependencies:[0]},composerInput:{flex:1,borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius.full,paddingHorizontal:e.spacing[2],paddingVertical:e.spacing[1],color:e.colors.foreground,fontSize:e.fontSize.xs,uni__dependencies:[0]},composerSend:{minHeight:44,justifyContent:"center",paddingHorizontal:e.spacing[1],uni__dependencies:[0]},link:{color:e.colors.accent,fontSize:e.fontSize.xs,uni__dependencies:[0]},send:{borderWidth:1,borderColor:e.colors.accent,borderRadius:e.borderRadius["2xl"],paddingHorizontal:e.spacing[2],paddingVertical:e.spacing[1],alignSelf:"flex-start",uni__dependencies:[0]},dim:{opacity:.35},pickList:{maxHeight:400},pickRow:{minHeight:44,flexDirection:"row",alignItems:"center",gap:e.spacing[1],paddingVertical:e.spacing[1],paddingHorizontal:e.spacing[1],borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius["2xl"],marginBottom:4,uni__dependencies:[0]},pickRowOn:{borderColor:e.colors.accent,uni__dependencies:[0]},pickMark:{color:e.colors.accent,fontSize:e.fontSize.sm,width:22,uni__dependencies:[0]},pickName:{color:e.colors.foreground,fontSize:e.fontSize.xs,fontWeight:"600",uni__dependencies:[0]},pickAux:{color:e.colors.foregroundMuted,fontSize:e.fontSize.xs,uni__dependencies:[0]},grow:{flex:1},empty:{flex:1,alignItems:"center",justifyContent:"center",padding:e.spacing[3],uni__dependencies:[0]}})),ee=[{id:"whatsapp",label:"WhatsApp"},{id:"slack",label:"Slack"},{id:"email",label:"Email"}],te=400;function ne(e){const t=[`${e.title} (${A(String(e.statusBucket))})`,e.digest?.summary??e.digest?.goal??"",e.digest?.nextStep?`Next: ${e.digest.nextStep}`:"",e.digest?.blockers?.length?`Blocked: ${e.digest.blockers.join("; ")}`:""].filter(e=>e.length>0).join("\n");return t.length>te?`${t.slice(0,399)}\u2026`:t}const se=[Z.fieldValue,Z.fieldDanger],oe=[Z.pickRow,Z.pickRowOn],le=[Z.verbWord,Z.verbWordDanger],ie=[Z.tagChip,Z.tagChipOn],re={selected:!0},ce={selected:!1},ae=e=>e?re:ce,de=[Z.send,Z.dim],ue=[Z.background,Z.backgroundText],he={read:"caption",snooze:"snooze",share:"share",taco:"taco",options:"options"},pe={consolidate:"consolidate",outsource:"share",automate:"automate"},be=[{id:"hourly",label:"Every hour",everyMs:36e5},{id:"daily",label:"Every day",everyMs:864e5},{id:"weekly",label:"Every week",everyMs:6048e5}];function ge(e,t){return C(t.dy)}function ye(e){return`${e.kind}: ${e.label??e.url}`}function xe(e,t){return(t.lastActivityAt?.getTime()??0)-(e.lastActivityAt?.getTime()??0)}function me(e){return e.id}function fe(){return Date.now()}function je(e){return e.session}function Se(e){return{id:e.id,question:e.question}}function ke(e){return e+1}function ve(e){return e+1}function Te(e){return e.session}},4566,[348,2838,349,2815,2476,4567,350,36,591,659,649,25,546,182,234,571,146,558,56,3442,4013,4016,4568,4014,4569,4570,4571,4572,4017,279]);
16326
16326
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"KeyboardAvoidingView",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u=(0,r(d[1]).createUnistylesElement)(n.default)},4567,[659,274]);
16327
16327
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ReelsPager",{enumerable:!0,get:function(){return p}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);r(d[3]);var o,l=r(d[4]),s=(o=l)&&o.__esModule?o:{default:o};r(d[5]);var c=r(d[6]),u=r(d[7]),h=r(d[8]);const f={itemVisiblePercentThreshold:60};function b({data:o,keyExtractor:l,renderCard:u,onIndexChange:b,onEndReached:p,controllerRef:I,testID:R}){const{height:v}=(0,s.default)(),y=(0,n.useRef)(null),T=(0,c.useSafeAreaInsets)(),w=Math.max(1,v-T.top-T.bottom),C=(0,n.useMemo)(()=>[...o],[o]),M=(0,n.useMemo)(()=>[x.list,{paddingTop:T.top,paddingBottom:T.bottom}],[T.bottom,T.top]),E=(0,n.useRef)(b);E.current=b;const S=(0,n.useRef)(({viewableItems:e})=>{const t=e[0];null!=t?.index&&E.current(t.index)}).current,_=(0,n.useRef)(f).current;I&&(I.current={scrollToIndex:e=>{e>=0&&e<C.length&&y.current?.scrollToIndex({index:e,animated:!0})}});const P=(0,n.useCallback)((e,t)=>({length:w,offset:w*t,index:t}),[w]),j=(0,n.useMemo)(()=>({height:w}),[w]),k=(0,n.useCallback)(({item:t,index:n})=>(0,h.jsx)(e.View,{style:j,children:u(t,n,w)}),[w,j,u]);return(0,h.jsx)(t.FlatList,{ref:y,style:M,testID:R??"reels-pager",data:C,keyExtractor:l,renderItem:k,getItemLayout:P,pagingEnabled:!0,snapToInterval:w,snapToAlignment:"start",disableIntervalMomentum:!0,decelerationRate:"fast",showsVerticalScrollIndicator:!1,onViewableItemsChanged:S,viewabilityConfig:_,onEndReached:p,onEndReachedThreshold:.5,initialNumToRender:2,maxToRenderPerBatch:3,windowSize:5,removeClippedSubviews:!1})}const x=u.StyleSheet.create(()=>({list:{flex:1}})),p=(0,n.memo)(b)},4568,[348,2656,36,144,686,146,558,56,279]);
16328
16328
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILL_TICK_MS",{enumerable:!0,get:function(){return o}}),e.useDestructiveHold=function(s,u){const _=(0,t.c)(23),[f,h]=(0,n.useState)(l.idleHold),[S,b]=(0,n.useState)(null),[v,I]=(0,n.useState)(0),y=(0,n.useRef)(null);let D;_[0]===Symbol.for("react.memo_cache_sentinel")?(D=(0,l.idleHold)(),_[0]=D):D=_[0];const H=(0,n.useRef)(D),L=(0,n.useRef)(null);let P;_[1]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{null!==L.current&&(clearTimeout(L.current),L.current=null),null!==y.current&&(clearInterval(y.current),y.current=null)},_[1]=P):P=_[1];const T=P;let w;_[2]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{null!==y.current&&clearInterval(y.current),y.current=setInterval(()=>{const t=(0,l.holdProgress)(H.current,Date.now(),c);I(t),t>=1&&null!==y.current&&(clearInterval(y.current),y.current=null)},o)},_[2]=w):w=_[2];const M=w;let R;_[3]===Symbol.for("react.memo_cache_sentinel")?(R=()=>{b(null);const t=(0,l.press)(Date.now());H.current=t,h(t),T(),L.current=setTimeout(()=>{const t=(0,l.tick)(H.current,Date.now());H.current=t,h(t),M()},l.UNFURL_MS)},_[3]=R):R=_[3];const p=R;let E;_[4]!==s||_[5]!==u?(E=t=>{T();const n=(0,l.release)(H.current,Date.now(),c,t);H.current=(0,l.idleHold)(),h((0,l.idleHold)()),I(0),n.commit?(b(null),Promise.resolve(s(u)).catch(t=>{b(t instanceof Error?t.message:"could not retire it")})):b("too-short"===n.reason||"not-read"===n.reason?"hold":null)},_[4]=s,_[5]=u,_[6]=E):E=_[6];const O=E;let C;_[7]!==O?(C=()=>O(!1),_[7]=O,_[8]=C):C=_[8];const U=C;let j;_[9]!==O?(j=()=>O(!0),_[9]=O,_[10]=j):j=_[10];const F=j;let V,k,K,N,q;_[11]===Symbol.for("react.memo_cache_sentinel")?(V=()=>T,k=[T],_[11]=V,_[12]=k):(V=_[11],k=_[12]);(0,n.useEffect)(V,k),_[13]!==f?(K=(0,l.isLabelVisible)(f),_[13]=f,_[14]=K):K=_[14];_[15]!==F||_[16]!==U?(N={onPressIn:p,onPressOut:U,onTouchCancel:F},_[15]=F,_[16]=U,_[17]=N):N=_[17];_[18]!==S||_[19]!==v||_[20]!==N||_[21]!==K?(q={showLabel:K,progress:v,hint:S,handlers:N},_[18]=S,_[19]=v,_[20]=N,_[21]=K,_[22]=q):q=_[22];return q};var t=r(d[0]),n=r(d[1]),l=r(d[2]);const c={holdMs:l.DESTRUCTIVE_HOLD_MS},o=40},4569,[350,36,4018]);
@@ -16698,5 +16698,5 @@ __d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=r(d[0]),n=this&&this.__creat
16698
16698
  __r(694);
16699
16699
  __r(341);
16700
16700
  __r(0);
16701
- //# sourceMappingURL=/_expo/static/js/web/index-9b78c943c7aae1f1abdd79152ddc5c43.js.map
16702
- //# debugId=73a744a7-9c0d-406f-9ba2-010ad014e50a
16701
+ //# sourceMappingURL=/_expo/static/js/web/index-3ba653ab76a35225bea469a92344810e.js.map
16702
+ //# debugId=08f3c96b-fb83-4c65-a277-7a5bd53055ce
@@ -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-9b78c943c7aae1f1abdd79152ddc5c43.js" defer></script>
194
+ <script src="/_expo/static/js/web/index-3ba653ab76a35225bea469a92344810e.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.117",
3
+ "version": "0.3.118",
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.117",
70
- "@hyperdrive.bot/fleet-extension-sdk": "0.3.117",
71
- "@hyperdrive.bot/fleet-highlight": "0.3.117",
72
- "@hyperdrive.bot/fleet-protocol": "0.3.117",
73
- "@hyperdrive.bot/fleet-relay": "0.3.117",
69
+ "@hyperdrive.bot/fleet-client": "0.3.118",
70
+ "@hyperdrive.bot/fleet-extension-sdk": "0.3.118",
71
+ "@hyperdrive.bot/fleet-highlight": "0.3.118",
72
+ "@hyperdrive.bot/fleet-protocol": "0.3.118",
73
+ "@hyperdrive.bot/fleet-relay": "0.3.118",
74
74
  "@isaacs/ttlcache": "^2.1.4",
75
75
  "@modelcontextprotocol/sdk": "^1.20.1",
76
76
  "@opencode-ai/sdk": "1.2.6",