@mduan/paseo-cli 0.11.0-fork.41 → 0.11.0-fork.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@getpaseo/client/package.json +3 -3
- package/node_modules/@getpaseo/highlight/package.json +1 -1
- package/node_modules/@getpaseo/plugin/package.json +3 -3
- package/node_modules/@getpaseo/protocol/package.json +1 -1
- package/node_modules/@getpaseo/relay/package.json +1 -1
- package/node_modules/@getpaseo/server/dist/server/builtin-plugins/package.json +1 -1
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/css/xterm-3bb1704bf6cb0876640973dc0244b4cb.css.gz +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/desktop-attachment-bridge-e52f9cb2de89e698c51c18241d12cb99.js.gz +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/desktop-attachment-store-8cb998792f7a176d7612229dafb2c2d3.js.gz +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/{index-f059924fa42cdb1fe502c33e29b321d1.js → index-0739ccf1e0ed249272ed6917bd9a68ec.js} +2 -2
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/{index-f059924fa42cdb1fe502c33e29b321d1.js.br → index-0739ccf1e0ed249272ed6917bd9a68ec.js.br} +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/index-0739ccf1e0ed249272ed6917bd9a68ec.js.gz +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/indexeddb-attachment-store-cf65163fc7d8cd4c646c36e83771e937.js.gz +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/native-file-attachment-store-da2a50627d6e788990a7f324838c24d2.js.gz +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/index.html +1 -1
- package/node_modules/@getpaseo/server/dist/server/web-ui/index.html.br +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/index.html.gz +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/manifest.json.gz +0 -0
- package/node_modules/@getpaseo/server/package.json +6 -6
- package/package.json +7 -7
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/index-f059924fa42cdb1fe502c33e29b321d1.js.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/client",
|
|
3
|
-
"version": "0.11.0-fork.
|
|
3
|
+
"version": "0.11.0-fork.42",
|
|
4
4
|
"description": "Paseo client SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"vitest": "^4.1.6"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@getpaseo/protocol": "0.11.0-fork.
|
|
48
|
-
"@getpaseo/relay": "0.11.0-fork.
|
|
47
|
+
"@getpaseo/protocol": "0.11.0-fork.42",
|
|
48
|
+
"@getpaseo/relay": "0.11.0-fork.42"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/plugin",
|
|
3
|
-
"version": "0.11.0-fork.
|
|
3
|
+
"version": "0.11.0-fork.42",
|
|
4
4
|
"description": "Paseo plugin SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"test": "vitest run"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@getpaseo/client": "0.11.0-fork.
|
|
70
|
-
"@getpaseo/protocol": "0.11.0-fork.
|
|
69
|
+
"@getpaseo/client": "0.11.0-fork.42",
|
|
70
|
+
"@getpaseo/protocol": "0.11.0-fork.42",
|
|
71
71
|
"@types/node": "^20.9.0",
|
|
72
72
|
"@types/react": "~19.2.0",
|
|
73
73
|
"react": "19.1.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -15169,7 +15169,7 @@ __d(function(g,r,i,_a,m,e,d){'use strict';const t=r(d[0]);m.exports=(s,c,n)=>t(s
|
|
|
15169
15169
|
__d(function(g,r,i,_a,m,e,d){'use strict';const t=r(d[0]);m.exports=(s,c,n)=>t(s,c,n)<=0},3524,[2992]);
|
|
15170
15170
|
__d(function(g,r,i,a,m,e,d){'use strict';const t=r(d[0]);m.exports=(n,c,s)=>{try{c=new t(c,s)}catch(t){return!1}return c.test(n)}},3525,[3516]);
|
|
15171
15171
|
__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}},3526,[702,3527]);
|
|
15172
|
-
__d(function(e,t,r,o,i,a,n){i.exports={name:"@getpaseo/app",version:"0.11.0-fork.
|
|
15172
|
+
__d(function(e,t,r,o,i,a,n){i.exports={name:"@getpaseo/app",version:"0.11.0-fork.42",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","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 --clean --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 --clean --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=browser","test:e2e:diff-performance":"cross-env PASEO_DIFF_PERF_E2E=1 playwright test --project=browser e2e/browser/diff-performance.spec.ts","test:e2e:stream-smoothness":"cross-env PASEO_AGENT_STREAM_PERF_E2E=1 playwright test --project=browser e2e/browser/agent-stream-smoothness.spec.ts","test:e2e:real":"cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=real-provider","test:e2e:relay-deployment":"npm --prefix ../.. run build:server && npm --prefix ../.. run build:daemon-web-ui && cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=relay-deployment e2e/browser/relay-deployment-reconnect.real.spec.ts","test:e2e:ui":"playwright test --ui",build:"npm run build:web","build:web":"npm --prefix ../.. run build:app-deps && expo export --platform web","profile:composer-typing":"node ./scripts/profile-composer-typing.mjs","profile:explorer-toggle":"node ./scripts/profile-explorer-toggle.mjs","profile:side-pane":"playwright test --config playwright.profile.config.ts side-pane-performance.spec.ts","profile:workspace-switching":"node ./scripts/profile-workspace-switching.mjs","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","build:terminal-webview":"node ./scripts/build-terminal-webview-html.mjs","build:mermaid-runtime":"node ./src/components/markdown/fence/mermaid/build-runtime.mjs"},dependencies:{"@codemirror/commands":"6.10.4","@codemirror/language":"6.12.4","@codemirror/search":"6.7.1","@codemirror/state":"6.7.1","@codemirror/view":"6.43.6","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@floating-ui/react-native":"^0.10.7","@getpaseo/client":"*","@getpaseo/expo-two-way-audio":"*","@getpaseo/highlight":"*","@getpaseo/plugin":"*","@getpaseo/protocol":"*","@gorhom/bottom-sheet":"^5.2.14","@gorhom/portal":"^1.0.14","@marijn/find-cluster-break":"^1.0.2","@mattermost/react-native-paste-input":"2.0.1","@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","@replit/codemirror-vim":"6.3.0","@shopify/react-native-skia":"2.2.12","@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-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-splash-screen":"~31.0.10","expo-sqlite":"~16.0.10","expo-system-ui":"~6.0.7","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",mermaid:"^11.16.0","mnemonic-id":"^3.2.7",qrcode:"^1.5.4",react:"19.1.0","react-dom":"19.1.0","react-freeze":"1.0.4","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.12","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",turndown:"^7.2.4","turndown-plugin-gfm":"^1.0.2","use-sync-external-store":"^1.6.0",yaml:"^2.8.4",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/markdown-it":"^14.1.2","@types/node":"~22.19.0","@types/qrcode":"^1.5.6","@types/react":"~19.2.0","@types/turndown":"^5.0.6","@types/ws":"^8.18.1","@vitest/browser":"^4.1.7","@vitest/browser-playwright":"^4.1.7","@xterm/headless":"^6.1.0-beta.213",dotenv:"^17.2.3","eas-cli":"^16.24.1",esbuild:"0.28.1",eslint:"^9.25.0","eslint-config-expo":"~10.0.0","expo-gradle-jvmargs":"^1.1.2","fake-indexeddb":"^6.2.5",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"},reanimated:{staticFeatureFlags:{FORCE_REACT_RENDER_FOR_SETTLED_ANIMATIONS:!1}}}},3527,[]);
|
|
15173
15173
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createPluginClientRuntime=function(p){const I=(0,l.createPluginClientStateSource)(p.serverId),P=(0,o.createPluginCapabilities)(p,(0,s.createPluginNavigation)({serverId:p.serverId,workspaceId:null}));return Object.assign({},P,{hosts:(0,n.createPluginHosts)((0,t.getHostRuntimeStore)(),p.lifetime.signal),addComposerPill:t=>u.pluginButtonStore.addComposerPill(p,t),addHeaderButton:t=>u.pluginButtonStore.addHeaderButton(p,t),openPanel(t,n){c({installation:p,state:I,panelId:t,options:n})}})};var t=r(d[0]),n=r(d[1]),o=r(d[2]),l=r(d[3]),s=r(d[4]),u=r(d[5]);function c(t){const{installation:n,state:l,panelId:u,options:c}=t,p=c.workspaceId.trim(),I=c.agentId?.trim(),P=(0,s.createPluginNavigation)({serverId:n.serverId,workspaceId:p}),v=I?(0,o.createPluginAgentActionContext)({plugin:n,navigation:P,state:l,workspaceId:p,agentId:I}):(0,o.createPluginWorkspaceActionContext)({plugin:n,navigation:P,state:l,workspaceId:p});if(!v)throw new Error("Plugin panel context is unavailable");v.openPanel(u,{location:c.location})}},3528,[3529,3652,3653,3664,3670,3681]);
|
|
15174
15174
|
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["password"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.isHostRuntimeConnected=te,_e.isHostRuntimeDirectoryLoading=ne,Object.defineProperty(_e,"HostRuntimeController",{enumerable:!0,get:function(){return ye}}),_e.readInitialDaemonConnectionHint=be,_e.hasConfiguredLocalDaemonOverride=function(){return null!==we()},Object.defineProperty(_e,"HostRuntimeStore",{enumerable:!0,get:function(){return De}}),_e.getHostRuntimeStore=Pe,_e.getHostRuntimeConnectionStatusSince=function(e){return Pe().getConnectionStatusSince(e)},_e.useHostRuntimeSnapshot=function(e){const t=(0,s.c)(5);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c,h,u;t[1]!==e?(c=t=>o.subscribe(e,t),h=()=>o.getSnapshot(e),u=()=>o.getSnapshot(e),t[1]=e,t[2]=c,t[3]=h,t[4]=u):(c=t[2],h=t[3],u=t[4]);return(0,l.useSyncExternalStore)(c,h,u)},_e.useHostRuntimeClient=function(e){const t=(0,s.c)(5);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c,h,u;t[1]!==e?(c=t=>o.subscribe(e,t),h=()=>o.getSnapshot(e)?.client??null,u=()=>o.getSnapshot(e)?.client??null,t[1]=e,t[2]=c,t[3]=h,t[4]=u):(c=t[2],h=t[3],u=t[4]);return(0,l.useSyncExternalStore)(c,h,u)},_e.useHostRuntimeIsConnected=function(e){const t=(0,s.c)(5);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c,h,u;t[1]!==e?(c=t=>o.subscribe(e,t),h=()=>te(o.getSnapshot(e)),u=()=>te(o.getSnapshot(e)),t[1]=e,t[2]=c,t[3]=h,t[4]=u):(c=t[2],h=t[3],u=t[4]);return(0,l.useSyncExternalStore)(c,h,u)},_e.useHostRuntimeConnectionStatus=function(e){const t=(0,s.c)(5);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c,h,u;t[1]!==e?(c=t=>o.subscribe(e,t),h=()=>o.getSnapshot(e)?.connectionStatus??"connecting",u=()=>o.getSnapshot(e)?.connectionStatus??"connecting",t[1]=e,t[2]=c,t[3]=h,t[4]=u):(c=t[2],h=t[3],u=t[4]);return(0,l.useSyncExternalStore)(c,h,u)},_e.useHostRuntimeConnectionStatuses=function(e){const t=(0,s.c)(7);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c;t[1]!==e?(c=()=>e.map(e=>o.getSnapshot(e)?.connectionStatus??"connecting").join("\n"),t[1]=e,t[2]=c):c=t[2];const h=c;let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=e=>o.subscribeAll(e),t[3]=u):u=t[3];const p=(0,l.useSyncExternalStore)(u,h,h);let y;if(t[4]!==e||t[5]!==p){const n=p.split("\n");y=new Map(e.map((e,t)=>[e,n[t]])),t[4]=e,t[5]=p,t[6]=y}else y=t[6];return y},_e.useHostRuntimeLastError=function(e){const t=(0,s.c)(5);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c,h,u;t[1]!==e?(c=t=>o.subscribe(e,t),h=()=>o.getSnapshot(e)?.lastError??null,u=()=>o.getSnapshot(e)?.lastError??null,t[1]=e,t[2]=c,t[3]=h,t[4]=u):(c=t[2],h=t[3],u=t[4]);return(0,l.useSyncExternalStore)(c,h,u)},_e.useHostRuntimeAgentDirectoryStatus=function(e){const t=(0,s.c)(5);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c,h,u;t[1]!==e?(c=t=>o.subscribe(e,t),h=()=>o.getSnapshot(e)?.agentDirectoryStatus??"idle",u=()=>o.getSnapshot(e)?.agentDirectoryStatus??"idle",t[1]=e,t[2]=c,t[3]=h,t[4]=u):(c=t[2],h=t[3],u=t[4]);return(0,l.useSyncExternalStore)(c,h,u)},_e.useHostRuntimeIsDirectoryLoading=function(e){const t=(0,s.c)(5);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Pe(),t[0]=n):n=t[0];const o=n;let c,h,u;t[1]!==e?(c=t=>o.subscribe(e,t),h=()=>ne(o.getSnapshot(e)),u=()=>ne(o.getSnapshot(e)),t[1]=e,t[2]=c,t[3]=h,t[4]=u):(c=t[2],h=t[3],u=t[4]);return(0,l.useSyncExternalStore)(c,h,u)},_e.useHosts=function(){const e=(0,s.c)(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Pe(),e[0]=t):t=e[0];const n=t;let o,c,h;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=e=>n.subscribeHostList(e),c=()=>n.getHosts(),h=()=>n.getHosts(),e[1]=o,e[2]=c,e[3]=h):(o=e[1],c=e[2],h=e[3]);return(0,l.useSyncExternalStore)(o,c,h)},_e.useHostRegistryStatus=function(){const e=(0,s.c)(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Pe(),e[0]=t):t=e[0];const n=t;let o,c,h;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=e=>n.subscribeHostList(e),c=()=>n.getHostRegistryStatus(),h=()=>n.getHostRegistryStatus(),e[1]=o,e[2]=c,e[3]=h):(o=e[1],c=e[2],h=e[3]);return(0,l.useSyncExternalStore)(o,c,h)},_e.useHostRegistryLoaded=function(){const e=(0,s.c)(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Pe(),e[0]=t):t=e[0];const n=t;let o,c,h;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=e=>n.subscribeHostList(e),c=()=>n.isHostRegistryLoaded(),h=()=>n.isHostRegistryLoaded(),e[1]=o,e[2]=c,e[3]=h):(o=e[1],c=e[2],h=e[3]);return(0,l.useSyncExternalStore)(o,c,h)},_e.useHostConfirmation=function(){const e=(0,s.c)(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Pe(),e[0]=t):t=e[0];const n=t;let o,c,h;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=e=>n.subscribeHostConfirmation(e),c=()=>n.getPendingHostConfirmation(),h=()=>n.getPendingHostConfirmation(),e[1]=o,e[2]=c,e[3]=h):(o=e[1],c=e[2],h=e[3]);const u=(0,l.useSyncExternalStore)(o,c,h);let p,y;e[4]!==u?(p=e=>{u&&n.answerHostConfirmation(u.id,e)},e[4]=u,e[5]=p):p=e[5];e[6]!==u||e[7]!==p?(y={pending:u,answer:p},e[6]=u,e[7]=p,e[8]=y):y=e[8];return y},_e.useHostMutations=function(){const e=(0,s.c)(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Pe(),e[0]=t):t=e[0];const n=t;let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={upsertDirectConnection:e=>n.upsertDirectConnection(e),probeAndUpsertDirectConnection:e=>n.probeAndUpsertDirectConnection(e),probeAndUpsertRemoteSshConnection:e=>n.probeAndUpsertRemoteSshConnection(e),beginLinkPairing:()=>n.beginLinkPairing(),renameHost:(e,t)=>n.renameHost(e,t),setHostColor:(e,t)=>n.setHostColor(e,t),setHostBadgeDisplay:(e,t)=>n.setHostBadgeDisplay(e,t),removeHost:e=>n.removeHost(e),removeConnection:(e,t)=>n.removeConnection(e,t)},e[1]=o):o=e[1];return o};var n=t(r(d[0])),s=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),h=t(r(d[5])),u=t(r(d[6])),p=r(d[7]),y=r(d[8]),S=r(d[9]),f=r(d[10]),C=r(d[11]),v=r(d[12]),b=r(d[13]),w=r(d[14]),I=r(d[15]),A=r(d[16]),H=r(d[17]),R=r(d[18]),D=r(d[19]),E=r(d[20]),L=r(d[21]),P=r(d[22]),O=r(d[23]),_=r(d[24]),M=r(d[25]),k=r(d[26]),T=r(d[27]),B=r(d[28]),F=r(d[29]),j=r(d[30]),q=r(d[31]),x=r(d[32]),U=r(d[33]),V=r(d[34]),W=r(d[35]),N=r(d[36]),$=r(d[37]),G=r(d[38]),z=r(d[39]),K=r(d[40]),Q=r(d[41]),J=r(d[42]),X=r(d[43]),Y=r(d[44]),Z=r(d[45]);function ee(e,t,n){e[t]=n}function te(e){return"online"===e?.connectionStatus}function ne(e){return!e||("initial_loading"===e.agentDirectoryStatus||"revalidating"===e.agentDirectoryStatus||!e.hasEverLoadedAgentDirectory&&("connecting"===e.connectionStatus||"online"===e.connectionStatus))}function se(e){return e instanceof Error?e.message:String(e)}function ie(e){let t=0;for(let n=0;n<e.length;n+=1)t=31*t+e.charCodeAt(n)|0;return`h_${Math.abs(t).toString(16)}`}function oe(e){return"directSocket"===e.type?{type:"directSocket",endpoint:e.path,display:"socket"}:"directPipe"===e.type?{type:"directPipe",endpoint:e.path,display:"pipe"}:"remoteSsh"===e.type?{type:"remoteSsh",endpoint:e.host,display:e.host}:"directTcp"===e.type?{type:"directTcp",endpoint:e.endpoint,display:e.endpoint}:{type:"relay",endpoint:e.relayEndpoint,display:"relay"}}function re(e){return"connecting"===e.tag||"online"===e.tag||"offline"===e.tag||"error"===e.tag?{id:e.activeConnectionId,connection:e.activeConnection}:{id:null,connection:null}}function ce(e,t,n){const s=n.state.status;return"connected"===s?{tag:"online",activeConnectionId:e,activeConnection:t,lastOnlineAt:(new Date).toISOString()}:"connecting"===s||"idle"===s?{tag:"connecting",activeConnectionId:e,activeConnection:t}:"disposed"===s?{tag:"offline",activeConnectionId:e,activeConnection:t}:null}function ae(e,t,n){const s=ce(e,t,n);if(s)return s;const o=("disconnected"===n.state.status?n.state.reason??null:null)??n.lastError??null;return o&&"client_closed"!==o?{tag:"error",activeConnectionId:e,activeConnection:t,message:o}:{tag:"offline",activeConnectionId:e,activeConnection:t}}function le(e){const{state:t,event:n}=e;if("select_connection"===n.type)return{tag:"connecting",activeConnectionId:n.connectionId,activeConnection:n.connection};if("connect_failed"===n.type){const e=re(t);return{tag:"error",activeConnectionId:e.id,activeConnection:e.connection,message:n.message}}if("no_connections"===n.type||"stopped"===n.type)return{tag:"offline",activeConnectionId:null,activeConnection:null};const s=re(t);return s.id&&s.connection?ae(s.id,s.connection,n):"booting"===t.tag?t:{tag:"offline",activeConnectionId:null,activeConnection:null}}function he(e,t){return"booting"===e.tag?{activeConnectionId:null,activeConnection:null,connectionStatus:"connecting",lastError:null,lastOnlineAt:null,connectionEpoch:t}:"connecting"===e.tag?{activeConnectionId:e.activeConnectionId,activeConnection:e.activeConnection,connectionStatus:"connecting",lastError:null,lastOnlineAt:null,connectionEpoch:t}:"online"===e.tag?{activeConnectionId:e.activeConnectionId,activeConnection:e.activeConnection,connectionStatus:"online",lastError:null,lastOnlineAt:e.lastOnlineAt,connectionEpoch:t}:"offline"===e.tag?{activeConnectionId:e.activeConnectionId,activeConnection:e.activeConnection,connectionStatus:"offline",lastError:null,lastOnlineAt:null,connectionEpoch:t}:{activeConnectionId:e.activeConnectionId,activeConnection:e.activeConnection,connectionStatus:"error",lastError:e.message,lastOnlineAt:null,connectionEpoch:t}}function de(e){return e.connections.map(e=>({connectionId:e.id,connection:e}))}function ue(e,t){return t?e.connections.find(e=>e.id===t)??null:null}function pe(e,t,n,s){if(t)return 1e4;if(n)return 12e4;const o=s-e;return o<1e4?2e3:o<3e4?5e3:o<6e4?1e4:3e4}function ge(){const e="function"==typeof(0,P.getDesktopHost)()?.browser?.executeAutomationCommand?{[_.CLIENT_CAPS.browserHost]:{supportedCommands:[...M.BROWSER_AUTOMATION_COMMAND_NAMES],hostKind:"desktop app"}}:void 0,t=Object.assign({},e);return{createClient:({host:e,connection:n,clientId:s,runtimeGeneration:l})=>{const h=(0,L.createDesktopDaemonTransportFactory)(),u={webSocketFactory:(0,Z.createAppWebSocketFactory)()},y=Object.assign({suppressSendErrors:!0,clientId:s,clientType:"mobile",appVersion:(0,C.resolveAppVersion)()??void 0,deviceLabel:o.getAppDeviceLabel,deviceKind:(0,o.getAppDeviceKind)(),connectionTransport:"remoteSsh"===n.type?c.ConnectionTransport.SshTunnel:void 0,runtimeGeneration:l,capabilities:t,trace:X.nativePerformanceTrace,providerSnapshots:"wire"},e.password?{password:e.password}:{},{localCredential:()=>(0,O.readDesktopManagedLocalCredential)(n)});if("directSocket"===n.type||"directPipe"===n.type)return new p.DaemonClient(Object.assign({},y,h?{transportFactory:h}:{},{url:(0,L.buildDesktopDaemonTransportUrl)({transportType:"directSocket"===n.type?"socket":"pipe",transportPath:n.path})}));if("remoteSsh"===n.type){if(!h)throw new Error("Remote SSH is only available in the desktop app.");return new p.DaemonClient(Object.assign({},y,{transportFactory:h,url:(0,L.buildDesktopDaemonTransportUrl)(Object.assign({transportType:"ssh",host:n.host},void 0!==n.sshPort?{sshPort:n.sshPort}:{},void 0!==n.daemonPort?{daemonPort:n.daemonPort}:{}))}))}return"directTcp"===n.type?new p.DaemonClient(Object.assign({},y,u,{url:(0,f.buildDaemonWebSocketUrl)(n.endpoint,{useTls:n.useTls??!1})})):new p.DaemonClient(Object.assign({},y,u,{url:(0,f.buildRelayWebSocketUrl)({endpoint:n.relayEndpoint,useTls:n.useTls??(0,f.shouldUseTlsForDefaultHostedRelay)(n.relayEndpoint),serverId:e.serverId}),e2ee:{enabled:!0,daemonPublicKeyB64:n.daemonPublicKeyB64}}))},connectToDaemon:({host:e,connection:n,timeoutMs:s})=>(0,A.connectToDaemon)(n,Object.assign({},e.serverId?{serverId:e.serverId}:{},e.password?{password:e.password}:{},{localCredential:()=>(0,O.readDesktopManagedLocalCredential)(n)},void 0!==s?{timeoutMs:s}:{},{capabilities:t,trace:X.nativePerformanceTrace})),getClientId:()=>(0,H.getOrCreateClientId)(),mountClientHandlers:({client:t,host:n})=>{const s=(0,j.mountServerDataPushRouter)({client:t,queryClient:F.queryClient,serverId:n.serverId});if(!e)return s;const o=(0,q.mountBrowserAutomationDaemonClientHandler)(t,{serverId:n.serverId});return()=>{o(),s()}}}}class ye{connectionEpoch=0;listeners=new Set;activeClient=null;unsubscribeClientStatus=null;unsubscribeClientHandlers=null;probeIntervalHandle=null;started=!1;connectionFirstSeenAt=new Map;connectionLastProbedAt=new Map;switchCandidateConnectionId=null;switchCandidateHitCount=0;clientIdPromise=null;clientIdHash=null;switchRequestVersion=0;probeRequestVersion=0;probeCycleInFlight=null;authRejectedConnectionIds=new Set;constructor(e){this.host=e.host,this.deps=e.deps??ge(),this.onReconcileServerId=e.onReconcileServerId??null,this.connectionMachineState={tag:"booting"},this.snapshot=Object.assign({serverId:this.host.serverId},he(this.connectionMachineState,this.connectionEpoch),{client:null,agentDirectoryStatus:"idle",agentDirectoryError:null,hasEverLoadedAgentDirectory:!1,probeByConnectionId:new Map,clientGeneration:0})}getSnapshot(){return this.snapshot}getClient(){return this.snapshot.client}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}async start(e){this.started||(this.started=!0,this.trackConnectionFirstSeen(),e?.initialConnection&&(await this.switchToConnection({connectionId:e.initialConnection.connectionId,existingClient:e.initialConnection.existingClient}),!this.started)||(await this.runProbeCycleNow(),this.started&&!1!==e?.autoProbe&&(this.probeIntervalHandle=setInterval(()=>{this.runProbeCycleNow()},2e3))))}async stop(){if(this.switchRequestVersion+=1,this.probeRequestVersion+=1,this.started=!1,this.probeIntervalHandle&&(clearInterval(this.probeIntervalHandle),this.probeIntervalHandle=null),this.unsubscribeClientStatus&&(this.unsubscribeClientStatus(),this.unsubscribeClientStatus=null),this.unsubscribeClientHandlers&&(this.unsubscribeClientHandlers(),this.unsubscribeClientHandlers=null),this.activeClient){const e=this.activeClient;this.activeClient=null,await e.close().catch(()=>{})}this.applyConnectionEvent({type:"stopped"}),this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch),{client:null}))}async updateHost(e){const t=this.host.password!==e.password;t&&(this.probeRequestVersion+=1,this.authRejectedConnectionIds.clear(),this.updateSnapshot({authFailureReason:null}));const n=this.snapshot.activeConnectionId,s=ue(this.host,n);this.host=e,this.trackConnectionFirstSeen();const o=ue(this.host,n);n&&s&&o&&(!(0,u.default)(s,o)||t)&&(this.connectionLastProbedAt.delete(n),await this.switchToConnection({connectionId:n})),t&&this.connectionLastProbedAt.clear(),t&&await this.probeCycleInFlight,await this.runProbeCycleNow()}ensureConnected(e){this.activeClient?.ensureConnected(e)}markAgentDirectorySyncLoading(){const e=this.snapshot.hasEverLoadedAgentDirectory?"revalidating":"initial_loading";this.updateSnapshot({agentDirectoryStatus:e,agentDirectoryError:null})}markAgentDirectorySyncReady(){this.updateSnapshot({agentDirectoryStatus:"ready",agentDirectoryError:null,hasEverLoadedAgentDirectory:!0})}markAgentDirectorySyncError(e){const t=this.snapshot.hasEverLoadedAgentDirectory;this.updateSnapshot({agentDirectoryStatus:t?"error_after_ready":"error_before_first_success",agentDirectoryError:e,hasEverLoadedAgentDirectory:t})}markAgentDirectorySyncIdle(){this.updateSnapshot({agentDirectoryStatus:this.snapshot.hasEverLoadedAgentDirectory?"ready":"idle",agentDirectoryError:null})}markStartupError(e){this.applyConnectionEvent({type:"connect_failed",message:e}),this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch)))}async activateConnection(e){await this.switchToConnection(e)}async runProbeCycleNow(){if(this.probeCycleInFlight)return this.probeCycleInFlight;const e=this.runProbeCycle().finally(()=>{this.probeCycleInFlight===e&&(this.probeCycleInFlight=null)});return this.probeCycleInFlight=e,e}async runProbeCycle(){const e=++this.probeRequestVersion;if(0===this.host.connections.length){if(!this.isCurrentProbeRequest(e))return;return this.applyConnectionEvent({type:"no_connections"}),void this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch),{probeByConnectionId:new Map}))}const t=performance.now(),n="online"===this.snapshot.connectionStatus,s=this.snapshot.activeConnectionId,o=n&&null!==s,c=this.host.connections.filter(e=>{if(this.authRejectedConnectionIds.has(e.id))return!1;const c=this.connectionLastProbedAt.get(e.id);if(null==c)return!0;const l=pe(this.connectionFirstSeenAt.get(e.id)??t,n&&e.id===s,o,t);return t-c>=l});if(0===c.length)return;const l=new Map(this.snapshot.probeByConnectionId);for(const e of c){this.connectionLastProbedAt.set(e.id,performance.now());const t=l.get(e.id);n&&e.id===s&&"available"===t?.status||l.set(e.id,{status:"pending",latencyMs:null})}this.updateSnapshot({probeByConnectionId:new Map(l)});let h=c.length,u=null,y=null;const S=()=>{this.isCurrentProbeRequest(e)&&this.updateSnapshot({probeByConnectionId:new Map(l)})},f=async(t,n)=>{for(;!this.snapshot.activeConnectionId;){if(!y)return y=this.switchToConnection({connectionId:t,expectedProbeVersion:e,existingClient:n}).finally(()=>{y=null}),await y,this.snapshot.activeConnectionId===t;await y}return!1},C=async()=>{if(h>0||!this.isCurrentProbeRequest(e))return;const t=this.snapshot.activeConnectionId,n=t?l.get(t):null;if(!t||!ue(this.host,t)){const t=(0,E.selectBestConnection)({candidates:de(this.host),probeByConnectionId:l});if(t)await this.switchToConnection({connectionId:t,expectedProbeVersion:e});else if(u){const e=new p.DaemonAuthenticationError(u).message;this.applyConnectionEvent({type:"connect_failed",message:e}),this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch),{authFailureReason:u}))}return}if(this.isConnectionUnavailable(t,n)){const n=(0,E.selectBestConnection)({candidates:de(this.host),probeByConnectionId:l});return n&&n!==t&&await this.switchToConnection({connectionId:n,expectedProbeVersion:e}),this.switchCandidateConnectionId=null,void(this.switchCandidateHitCount=0)}if(!n||"available"!==n.status)return;const s=Array.from(l.entries()).filter(e=>"available"===e[1].status).map(([e,t])=>({connectionId:e,latencyMs:t.latencyMs})).sort((e,t)=>e.latencyMs-t.latencyMs)[0]??null;if(!s||s.connectionId===t)return this.switchCandidateConnectionId=null,void(this.switchCandidateHitCount=0);if(n.latencyMs-s.latencyMs<40)return this.switchCandidateConnectionId=null,void(this.switchCandidateHitCount=0);this.switchCandidateConnectionId===s.connectionId?this.switchCandidateHitCount+=1:(this.switchCandidateConnectionId=s.connectionId,this.switchCandidateHitCount=1),this.switchCandidateHitCount>=3&&(this.switchCandidateConnectionId=null,this.switchCandidateHitCount=0,await this.switchToConnection({connectionId:s.connectionId,expectedProbeVersion:e}))};await new Promise(t=>{for(const n of c)(async()=>{let s=null,o=!1;try{const t=this.snapshot.activeConnectionId===n.id?this.snapshot.client:null;if(t)s=t;else{const{client:e,serverId:t}=await this.deps.connectToDaemon({host:this.host,connection:n});if(t!==this.host.serverId){if(!Ae(this.host.serverId)||!this.onReconcileServerId)throw await e.close().catch(()=>{}),new Error(`Connection resolved to ${t}, expected ${this.host.serverId}.`);this.onReconcileServerId(this.host.serverId,t)}s=e,o=!0}if(!this.isCurrentProbeRequest(e))return;const c=await f(n.id,s);if(o=o&&!c,t){const s=t.getLastLivenessRttMs();if(!this.isCurrentProbeRequest(e))return;return void(null!==s&&(l.set(n.id,{status:"available",latencyMs:s}),S()))}const h=await s.measureLatency({timeoutMs:5e3});if(!this.isCurrentProbeRequest(e))return;l.set(n.id,{status:"available",latencyMs:h}),S()}catch(t){if(this.isCurrentProbeRequest(e)){const e=(0,A.getConnectionAuthFailureReason)(t);e&&(this.authRejectedConnectionIds.add(n.id),u=e),l.set(n.id,{status:"unavailable",latencyMs:null}),S()}}finally{s&&o&&await s.close().catch(()=>{}),h-=1,C().finally(()=>{0===h&&t()})}})()})}isConnectionUnavailable(e,t){return"unavailable"===t?.status||this.authRejectedConnectionIds.has(e)}updateSnapshot(e){const t=Object.assign({},e);let n=this.host.serverId!==this.snapshot.serverId;for(const s of Object.keys(e)){const o=e[s];(0,u.default)(this.snapshot[s],o)?ee(t,s,this.snapshot[s]):n=!0}if(n){this.snapshot=Object.assign({},this.snapshot,t,{serverId:this.host.serverId});for(const e of this.listeners)e()}}applyConnectionEvent(e){const t=this.connectionMachineState,n=le({state:t,event:e});"online"!==t.tag&&"online"===n.tag&&(this.connectionEpoch+=1),this.connectionMachineState=n,this.logConnectionTransition({from:t.tag,to:n.tag,event:e})}logConnectionTransition(e){}trackConnectionFirstSeen(){const e=performance.now(),t=new Set(this.host.connections.map(e=>e.id));for(const e of this.connectionFirstSeenAt.keys())t.has(e)||(this.connectionFirstSeenAt.delete(e),this.connectionLastProbedAt.delete(e));for(const t of this.host.connections)this.connectionFirstSeenAt.has(t.id)||this.connectionFirstSeenAt.set(t.id,e)}isCurrentSwitchRequest(e){return e===this.switchRequestVersion}isCurrentProbeRequest(e){return e===this.probeRequestVersion}canProceedForProbe(e){return void 0===e||this.isCurrentProbeRequest(e)}async abortSwitchWithClient(e){e&&await e.close().catch(()=>{})}isSwitchStillValid(e,t){return this.isCurrentSwitchRequest(e)&&this.canProceedForProbe(t)}async resolveClientIdForSwitch(e){try{return await this.resolveClientId()}catch(t){if(await this.abortSwitchWithClient(e.existingClient),!this.isCurrentSwitchRequest(e.requestVersion))return null;const n=se(t);return this.applyConnectionEvent({type:"connect_failed",message:`Failed to resolve client id: ${n}`}),this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch))),null}}async disposePreviousActiveClient(){if(this.unsubscribeClientStatus&&(this.unsubscribeClientStatus(),this.unsubscribeClientStatus=null),this.unsubscribeClientHandlers&&(this.unsubscribeClientHandlers(),this.unsubscribeClientHandlers=null),this.activeClient){const e=this.activeClient;this.activeClient=null,await e.close().catch(()=>{})}}buildAgentDirectoryStatusPatch(){if(this.snapshot.hasEverLoadedAgentDirectory)return{};const e=this.connectionMachineState.tag;return"connecting"===e||"online"===e?{agentDirectoryStatus:"initial_loading",agentDirectoryError:null}:"error"===e?{agentDirectoryStatus:"error_before_first_success",agentDirectoryError:this.connectionMachineState.message}:{agentDirectoryStatus:"idle",agentDirectoryError:null}}async switchToConnection(e){const{connectionId:t,expectedProbeVersion:n,existingClient:s}=e;if(!this.canProceedForProbe(n))return void await this.abortSwitchWithClient(s);const o=ue(this.host,t);if(!o)return void await this.abortSwitchWithClient(s);const c=++this.switchRequestVersion,l=await this.resolveClientIdForSwitch({existingClient:s,requestVersion:c});if(null===l)return;if(!this.isSwitchStillValid(c,n))return void await this.abortSwitchWithClient(s);if(await this.disposePreviousActiveClient(),!this.isSwitchStillValid(c,n))return void await this.abortSwitchWithClient(s);const h=this.snapshot.clientGeneration+1,u=s??this.deps.createClient({host:this.host,connection:o,clientId:l,runtimeGeneration:h});if(u.setReconnectEnabled(!0),!this.isSwitchStillValid(c,n))return void await u.close().catch(()=>{});this.activeClient=u,this.applyConnectionEvent({type:"select_connection",connectionId:o.id,connection:oe(o)}),this.snapshot=Object.assign({},this.snapshot,{clientGeneration:h}),this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch),{client:null}));const y=async e=>{if(!this.isCurrentSwitchRequest(c)||this.activeClient!==u)return;const t=(0,A.getConnectionAuthFailureReason)(e);if(t&&this.authRejectedConnectionIds.add(o.id),this.unsubscribeClientStatus?.(),this.unsubscribeClientStatus=null,this.unsubscribeClientHandlers?.(),this.unsubscribeClientHandlers=null,u.setReconnectEnabled(!1),this.applyConnectionEvent({type:"connect_failed",message:se(e)}),this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch),{client:null,authFailureReason:t})),t){const e=new Map(this.snapshot.probeByConnectionId);e.set(o.id,{status:"unavailable",latencyMs:null}),this.updateSnapshot({probeByConnectionId:e});for(const e of this.host.connections)this.authRejectedConnectionIds.has(e.id)||this.connectionLastProbedAt.delete(e.id)}try{await u.close()}catch{}t&&this.host.connections.some(e=>!this.authRejectedConnectionIds.has(e.id))&&this.runProbeCycleNow()};try{if(s||await u.connect(),!this.isCurrentSwitchRequest(c)||this.activeClient!==u)return;this.unsubscribeClientHandlers=this.deps.mountClientHandlers?.({client:u,host:this.host,connection:o})??null,this.unsubscribeClientStatus=u.subscribeConnectionStatus(e=>{this.isCurrentSwitchRequest(c)&&this.activeClient===u&&(u.authFailureReason?y(new p.DaemonAuthenticationError(u.authFailureReason)):(this.applyConnectionEvent({type:"client_state",state:e,lastError:u.lastError}),this.updateSnapshot(Object.assign({},he(this.connectionMachineState,this.connectionEpoch),this.buildAgentDirectoryStatusPatch(),{client:u,authFailureReason:null}))))})}catch(e){await y(e)}}adoptReconciledServerId(e){this.host=Object.assign({},this.host,{serverId:e}),this.snapshot=Object.assign({},this.snapshot,{serverId:e});for(const e of this.listeners)e()}resolveClientId(){return this.clientIdPromise||(this.clientIdPromise=this.deps.getClientId().then(e=>(this.clientIdHash=ie(e),e))),this.clientIdPromise}}const Se="@paseo:daemon-registry",fe="localhost:6767",Ce=2500,ve="__PASEO_INITIAL_DAEMON_CONNECTION__",me=R.z.object({listen:R.z.string().trim().min(1),useTls:R.z.boolean().optional().default(!1)});function be(e){if(!(e?.isWebRuntime??I.isWeb)||"undefined"==typeof globalThis)return null;const t=me.safeParse(Reflect.get(globalThis,ve));return t.success?t.data:null}function we(){return null}function Ie(e){if(e.trim().startsWith("relay://")||e.includes("#connect="))return(0,f.parseRelayConnectionUri)(e);const t="#offer=",n=e.indexOf(t);if(-1===n)throw new Error("Missing #offer= fragment");const s=e.slice(n+7).trim();if(!s)throw new Error("Offer payload is empty");const o=(0,f.decodeOfferFragmentPayload)(s);return{offer:v.ConnectionOfferSchema.parse(o)}}function Ae(e){return e.startsWith("local:")}function He(e){return new Promise(t=>setTimeout(t,e))}function Re(e,t,n){const s=e.get(t);void 0!==s&&(e.delete(t),e.set(n,s))}class De{controllers=new Map;serverListeners=new Map;globalListeners=new Set;hostListListeners=new Set;version=0;hostListVersion=0;hostRegistryLoaded=!1;hosts=[];hostAppearanceMutationTail=Promise.resolve();hostRegistryStatus="loading";lastConnectionStatusByServer=new Map;connectionStatusStartedAtByServer=new Map;queuedAgentDrainInFlight=new Set;directorySyncByServer=new Map;nextCancellationRequestId=0;timelineReplicaByServer=new Map;configuredOverrideBootstrapInFlight=null;bootPromise=null;registryLoad=null;hostConfirmations=new b.HostConfirmations;constructor(e){this.deps=e?.deps??ge(),this.storage=e?.storage??h.default,this.replicaCache=new z.ReplicaCache(e?.replicaRowStore??(0,K.createReplicaRowStore)()),this.revokePushNotifications=e?.revokePushNotifications??Y.revokePushNotifications}getHosts(){return this.hosts}getHostRegistryStatus(){return this.hostRegistryStatus}subscribeHostList(e){return this.hostListListeners.add(e),()=>{this.hostListListeners.delete(e)}}getHostListVersion(){return this.hostListVersion}isHostRegistryLoaded(){return this.hostRegistryLoaded}boot(){return this.bootPromise||(this.bootPromise=this.runBoot()),this.bootPromise}async runBoot(){await this.loadRegistry();let e=null;try{e=await(0,D.readValidatedString)(this.storage,"@paseo:e2e",R.z.string().min(1))}catch{return}if(e)return;if((0,w.shouldUseDesktopDaemon)())return;const t=this.deps.readInitialConnectionHint?this.deps.readInitialConnectionHint():be();if(t){if(await this.bootstrapInitialConnectionHint(t))return}await this.bootstrapDefaultLocalhost()}loadRegistry(){return this.registryLoad||(this.registryLoad=this.loadFromStorage().then(()=>this.markHostRegistryLoaded())),this.registryLoad}async loadFromStorage(){let e=!1,t=[];try{const n=await(0,D.readValidatedJson)(this.storage,Se,y.StoredHostRegistrySchema);if(n){const s=[];for(const t of n){const n=(0,y.normalizeStoredHostProfile)(t);if(!n){await this.storage.removeItem(Se),s.length=0;break}t.connections.some(e=>"directTcp"===e.type&&e.password)&&(e=!0),s.push(n)}t=s.filter(e=>!Ae(e.serverId)),t.length!==s.length&&(e=!0)}this.hosts=t,this.replicaCache.setHosts(t.map(e=>e.serverId)),J.projectIconCache.setHosts(t.map(e=>e.serverId)),await J.projectIconCache.restore(),this.syncHosts(t);for(const e of t)this.directorySyncByServer.get(e.serverId)?.restoreCachedDirectory().catch(()=>{})}catch(e){console.error("[HostRuntime] Failed to load host registry from storage",e)}finally{this.hostRegistryStatus="ready",this.emitHostList(),e&&this.persistHosts().catch(e=>console.error("[HostRuntime] Failed to persist host registry",e))}}markHostRegistryLoaded(){this.hostRegistryLoaded||(this.hostRegistryLoaded=!0,this.emitHostList())}async bootstrapDefaultLocalhost(){const e=(0,y.connectionFromListen)(fe);if(e&&!(0,y.registryHasConnection)(this.hosts,e))try{await this.probeAndUpsertConnection({connection:e,timeoutMs:Ce})}catch(e){console.warn("[HostRuntime] bootstrap probe failed",{endpoint:fe,error:e})}}bootstrapConfiguredOverride(e){const t=(0,y.connectionFromListen)(e);if(!t)return;if((0,y.registryHasConnection)(this.hosts,t))return;if(this.configuredOverrideBootstrapInFlight)return;const n=this.runConfiguredOverrideBootstrap(e,t).finally(()=>{this.configuredOverrideBootstrapInFlight===n&&(this.configuredOverrideBootstrapInFlight=null)});this.configuredOverrideBootstrapInFlight=n}async runConfiguredOverrideBootstrap(e,t){let n=0;for(;!(0,y.registryHasConnection)(this.hosts,t);){n+=1;try{return void await this.probeAndUpsertConnection({connection:t,timeoutMs:Ce})}catch(t){1!==n&&n%10!=0||console.warn("[HostRuntime] configured bootstrap probe failed",{endpoint:e,attempt:n,error:t}),await He(1e3)}}}async bootstrapInitialConnectionHint(e){const t=(0,y.connectionFromListen)(e.listen);if(!t)return!1;const n="directTcp"===t.type?Object.assign({},t,{useTls:e.useTls??t.useTls??!1}):t;if((0,y.registryHasConnection)(this.hosts,n))return!0;try{return await this.probeAndUpsertConnection({connection:n,timeoutMs:Ce}),!0}catch(t){return console.warn("[HostRuntime] initial connection hint probe failed",{listen:e.listen,useTls:e.useTls,error:t}),!1}}reconcileServerId(e,t){if(e===t)return;const n=this.controllers.get(e);if(!n)return;if(this.controllers.has(t))return;Re(this.controllers,e,t),Re(this.lastConnectionStatusByServer,e,t),Re(this.connectionStatusStartedAtByServer,e,t),this.replicaCache.reconcileServerId(e,t),J.projectIconCache.reconcileServerId(e,t),this.directorySyncByServer.get(e)?.dispose(),this.directorySyncByServer.delete(e),this.timelineReplicaByServer.delete(e);const s=new G.DirectorySync(t,{onAgentStoppedRunning:e=>this.drainQueuedAgentMessage(t,e),markAgentLoading:()=>n.markAgentDirectorySyncLoading(),markAgentReady:()=>n.markAgentDirectorySyncReady(),markAgentError:e=>n.markAgentDirectorySyncError(e)},this.replicaCache);this.directorySyncByServer.set(t,s),this.timelineReplicaByServer.set(t,(0,Q.createTimelineReplica)({serverId:t,storage:this.replicaCache,prepareAgent:e=>s.prepareAgentRoute(e)})),n.adoptReconciledServerId(t);const o=n.getSnapshot();this.clearHostReplica(e),this.syncSessionReplica(t,o),s.connectionChanged({client:o.client,status:"online"===o.connectionStatus?"online":"offline",source:{clientGeneration:o.clientGeneration,connectionEpoch:o.connectionEpoch}});const c=this.serverListeners.get(e);if(c){this.serverListeners.delete(e);const n=this.serverListeners.get(t)??new Set;for(const e of c)n.add(e);this.serverListeners.set(t,n)}this.hosts=this.hosts.map(n=>n.serverId===e?Object.assign({},n,{serverId:t,updatedAt:(new Date).toISOString()}):n),this.emitHostList(),this.emit(t),this.persistHosts().catch(e=>console.error("[HostRuntime] Failed to persist host registry",e))}async upsertDirectConnection(e){const t=(0,f.normalizeHostPort)(e.endpoint),n=e.password?.trim();return this.upsertHostConnection({serverId:e.serverId,label:e.label,password:n,connection:{id:`direct:${t}`,type:"directTcp",endpoint:t,useTls:e.useTls??!1},existingClient:e.existingClient})}async probeAndUpsertConnection(e){if("relay"===e.connection.type)throw new Error("Cannot probe a relay connection without a server id.");const t=Object.assign({serverId:""},e.password?{password:e.password}:{},{label:e.label??e.connection.id,appearance:(0,S.defaultHostAppearance)(),lifecycle:{},connections:[e.connection],preferredConnectionId:e.connection.id,createdAt:new Date(0).toISOString(),updatedAt:new Date(0).toISOString()}),{client:n,serverId:s,hostname:o}=await this.deps.connectToDaemon(Object.assign({host:t,connection:e.connection},void 0!==e.timeoutMs?{timeoutMs:e.timeoutMs}:{}));return{profile:await this.upsertHostConnection({serverId:s,label:e.label??o??void 0,password:e.password,connection:e.connection,existingClient:n}),serverId:s,hostname:o}}async probeAndUpsertDirectConnection(e){const t=(0,f.normalizeHostPort)(e.endpoint),n=e.password?.trim();return this.probeAndUpsertConnection({label:e.label,password:n,connection:{id:`direct:${t}`,type:"directTcp",endpoint:t,useTls:e.useTls??!1}})}async probeAndUpsertRemoteSshConnection(e){return this.probeAndUpsertConnection({label:e.label,connection:(0,y.createRemoteSshHostConnection)(e)})}async upsertRelayConnection(e){const t=(0,f.normalizeHostPort)(e.relayEndpoint),n=e.useTls??!1,s=e.daemonPublicKeyB64.trim();if(!s)throw new Error("daemonPublicKeyB64 is required");const o=void 0!==e.useTls,c=await this.upsertHostConnection({serverId:e.serverId,label:e.label,connection:Object.assign({id:n?`relay:wss:${t}`:`relay:${t}`,type:"relay",relayEndpoint:t},o?{useTls:n}:{},{daemonPublicKeyB64:s})});return e.password?(await this.setHostPassword(c.serverId,e.password),this.hosts.find(e=>e.serverId===c.serverId)??c):c}async confirmLink(e){return await this.loadRegistry(),this.hostConfirmations.confirmLink(e,this.hosts)}getPendingHostConfirmation(){return this.hostConfirmations.getPending()}subscribeHostConfirmation(e){return this.hostConfirmations.subscribe(e)}answerHostConfirmation(e,t){this.hostConfirmations.answer(e,t)}beginLinkPairing(){let e=null;return{submit:async(t,n)=>{const{offer:s,password:o}=Ie(t);if(!e||(l=s,(c=e).serverId!==l.serverId||!(0,u.default)((0,y.relayConnectionFromOffer)(c),(0,y.relayConnectionFromOffer)(l)))){if(!await this.confirmLink(s))return{status:"cancelled"};e=s}var c,l;const h=await this.probeAndUpsertOffer(s,n??o);return Object.assign({status:"connected"},h)}}}async importConnectionLink(e,t){if("openProject"===t){const{offer:t,password:n}=Ie(e);if(!await this.confirmLink(t))return{status:"cancelled"};return{status:"connected",serverId:(await this.upsertConnectionFromOffer(t,void 0,n)).serverId}}const n=this.beginLinkPairing();try{const t=await n.submit(e);return"cancelled"===t.status?t:{status:"connected",serverId:t.serverId}}catch(t){if(!(0,A.getConnectionAuthFailureReason)(t))throw t;return{status:"password_required",link:e,pairing:n}}}async upsertConnectionFromOffer(e,t,n){const s=(0,y.relayConnectionFromOffer)(e);return this.upsertRelayConnection({serverId:e.serverId,relayEndpoint:s.relayEndpoint,useTls:s.useTls,daemonPublicKeyB64:s.daemonPublicKeyB64,label:t,password:n})}async probeAndUpsertOffer(e,t){const n=(0,y.relayConnectionFromOffer)(e),s=Object.assign({serverId:e.serverId},t?{password:t}:{},{label:e.serverId,appearance:(0,S.defaultHostAppearance)(),lifecycle:{},connections:[n],preferredConnectionId:n.id,createdAt:new Date(0).toISOString(),updatedAt:new Date(0).toISOString()}),{client:o,hostname:c}=await this.deps.connectToDaemon({host:s,connection:n});await o.close().catch(()=>{});return{profile:await this.upsertConnectionFromOffer(e,c??void 0,t),serverId:e.serverId,hostname:c}}async upsertConnectionFromListen(e){const t=e.listenAddress.trim(),n=e.serverId.trim(),s=(0,y.connectionFromListen)(t);if(!s)throw new Error(`Unsupported listen address: ${e.listenAddress}`);if(!n)throw new Error("Desktop daemon did not return a server id.");return this.upsertHostConnection({serverId:n,label:e.hostname??void 0,connection:s})}async updateHost(e,t){const n=(new Date).toISOString(),s=this.hosts.map(s=>s.serverId===e?Object.assign({},t(s),{updatedAt:n}):s);this.setHostsAndSync(s),await this.persistHosts()}async renameHost(e,t){await this.updateHost(e,e=>Object.assign({},e,{label:t}))}async setHostPassword(t,s){await this.updateHost(t,t=>{const o=(0,n.default)(t,e);return s?Object.assign({},o,{password:s}):o})}async setHostColor(e,t){await this.updateHostAppearance(e,e=>Object.assign({},e,{appearance:Object.assign({},e.appearance,{color:t})}))}async setHostBadgeDisplay(e,t){await this.updateHostAppearance(e,e=>Object.assign({},e,{appearance:Object.assign({},e.appearance,{badgeDisplay:t})}))}updateHostAppearance(e,t){const n=this.hostAppearanceMutationTail.then(()=>this.applyHostAppearance(e,t));return this.hostAppearanceMutationTail=n.catch(()=>{}),n}async applyHostAppearance(e,t){const n=(new Date).toISOString(),s=this.hosts.map(s=>s.serverId===e?Object.assign({},t(s),{updatedAt:n}):s);await this.persistHosts(s),this.setHostsAndSync(s)}async removeHost(e){await this.revokePushNotifications({client:this.getClient(e),serverId:e});const t=this.hosts.filter(t=>t.serverId!==e);this.setHostsAndSync(t),await this.persistHosts()}async removeConnection(e,t){const n=this.hosts.find(t=>t.serverId===e);if(1===n?.connections.length&&n.connections[0]?.id===t)return void await this.removeHost(e);const s=(new Date).toISOString(),o=this.hosts.map(n=>{if(n.serverId!==e)return n;const o=n.connections.filter(e=>e.id!==t);if(0===o.length)return null;const c=n.preferredConnectionId===t?o[0]?.id??null:n.preferredConnectionId;return Object.assign({},n,{connections:o,preferredConnectionId:c,updatedAt:s})}).filter(e=>null!==e);this.setHostsAndSync(o),await this.persistHosts()}async upsertHostConnection(e){const t=(new Date).toISOString(),n=(0,y.upsertHostConnectionInProfiles)({profiles:this.hosts,serverId:e.serverId,label:e.label,connection:e.connection,password:e.password,now:t});this.setHostsAndSync(n,{initialConnectionByServerId:e.existingClient?new Map([[e.serverId,{connectionId:e.connection.id,existingClient:e.existingClient}]]):void 0}),this.persistHosts().catch(e=>console.error("[HostRuntime] Failed to persist host registry",e));const s=n.find(t=>t.serverId===e.serverId);if(!s)throw new Error(`Host ${e.serverId} was not inserted`);return s}setHostsAndSync(e,t){this.hosts=e,this.syncHosts(e,t),this.emitHostList()}async persistHosts(e=this.hosts){await this.storage.setItem(Se,JSON.stringify(e))}emitHostList(){this.hostListVersion+=1;for(const e of this.hostListListeners)e()}syncHosts(e,t){this.replicaCache.setHosts(e.map(e=>e.serverId)),J.projectIconCache.setHosts(e.map(e=>e.serverId));const n=new Set(e.map(e=>e.serverId));for(const[e,t]of this.controllers)n.has(e)||(this.controllers.delete(e),this.lastConnectionStatusByServer.delete(e),this.connectionStatusStartedAtByServer.delete(e),this.directorySyncByServer.get(e)?.dispose(),this.directorySyncByServer.delete(e),this.timelineReplicaByServer.delete(e),this.clearHostReplica(e),t.stop(),this.emit(e));for(const n of e){const e=t?.initialConnectionByServerId?.get(n.serverId),s=this.controllers.get(n.serverId);if(s){s.updateHost(n),e&&s.activateConnection(e).catch(()=>{e.existingClient.close().catch(()=>{})});continue}const o=new ye({host:n,deps:this.deps,onReconcileServerId:(e,t)=>this.reconcileServerId(e,t)});this.controllers.set(n.serverId,o),k.useSessionStore.getState().initializeSession(n.serverId,null);const c=new G.DirectorySync(n.serverId,{onAgentStoppedRunning:e=>this.drainQueuedAgentMessage(n.serverId,e),markAgentLoading:()=>o.markAgentDirectorySyncLoading(),markAgentReady:()=>o.markAgentDirectorySyncReady(),markAgentError:e=>o.markAgentDirectorySyncError(e)},this.replicaCache);this.directorySyncByServer.set(n.serverId,c),this.timelineReplicaByServer.set(n.serverId,(0,Q.createTimelineReplica)({serverId:n.serverId,storage:this.replicaCache,prepareAgent:e=>c.prepareAgentRoute(e)}));const l=o.getSnapshot();this.lastConnectionStatusByServer.set(n.serverId,l.connectionStatus),this.connectionStatusStartedAtByServer.set(n.serverId,Date.now()),o.subscribe(()=>{const e=o.getSnapshot();this.syncSessionReplica(e.serverId,e),this.syncDirectoryConnection(e.serverId),this.emit(e.serverId)}),o.start(e?{initialConnection:e}:{}).catch(e=>{const t=e instanceof Error?e.message:String(e);o.markStartupError(t)}),this.emit(n.serverId)}}syncSessionReplica(e,t){if(!t.client)return;const n=k.useSessionStore.getState();n.initializeSession(e,t.client,t.clientGeneration),n.updateSessionClient(e,t.client,t.clientGeneration);const s=t.client.getLastServerInfoMessage();s&&n.updateSessionServerInfo(e,(0,k.toDaemonServerInfo)(s))}clearHostReplica(e){k.useSessionStore.getState().clearSession(e),T.useWorkspaceSetupStore.getState().clearServer(e)}syncDirectoryConnection(e){const t=this.controllers.get(e);if(!t)return this.lastConnectionStatusByServer.delete(e),void this.connectionStatusStartedAtByServer.delete(e);const n=t.getSnapshot(),s=this.directorySyncByServer.get(e);s?.connectionChanged({client:n.client,status:"online"===n.connectionStatus?"online":"offline",source:{clientGeneration:n.clientGeneration,connectionEpoch:n.connectionEpoch}});const o=this.lastConnectionStatusByServer.get(e),c=o!==n.connectionStatus,l="online"!==n.connectionStatus&&"idle"!==n.connectionStatus;!c||void 0!==o&&"online"!==o&&"idle"!==o&&l||this.connectionStatusStartedAtByServer.set(e,Date.now()),this.lastConnectionStatusByServer.set(e,n.connectionStatus);"online"===n.connectionStatus&&"online"!==o&&(k.useSessionStore.getState().bumpHistorySyncGeneration(e),(0,B.invalidateCheckoutGitQueriesForServer)(F.queryClient,e),(0,j.invalidateServerDataQueriesAfterReconnect)({queryClient:F.queryClient,serverId:e}),F.queryClient.invalidateQueries({queryKey:x.schedulesQueryBaseKey}))}drainQueuedAgentMessage(e,t){const n=`${e}:${t}`;if(this.queuedAgentDrainInFlight.has(n))return;const s=k.useSessionStore.getState().sessions[e],o=s?.queuedMessages.get(t),c=s?.client;if(!c||!o?.length||!0===s.initializingAgents.get(t))return;if((0,W.getActiveMessageSubmissions)(s.messageSubmissions.get(t)).length>0)return;this.queuedAgentDrainInFlight.add(n);const l=o[0];(0,U.sendQueuedComposerMessageNow)({agentId:t,messageId:l.id,queue:{read:t=>k.useSessionStore.getState().sessions[e]?.queuedMessages.get(t)??[],write:t=>k.useSessionStore.getState().setQueuedMessages(e,t)},submitMessage:async({text:n,attachments:s})=>{const o=!0===k.useSessionStore.getState().sessions[e]?.serverInfo?.features?.forgeSearch;await(0,U.dispatchComposerAgentMessage)({client:c,agentId:t,text:n,attachments:s,attachmentSubmitFormat:(0,N.resolveComposerAttachmentSubmitFormat)({supportsForgeAttachments:o}),encodeImages:$.encodeImages,submission:(0,V.createMessageSubmissionWriter)(e)})}}).then(n=>("failed"===n.status&&console.error("[HostRuntime] failed to drain queued agent message",{serverId:e,agentId:t,error:n.errorMessage}),n)).finally(()=>{this.queuedAgentDrainInFlight.delete(n)})}applyAgentTurnLiveness(e,t,n){this.directorySyncByServer.get(e)?.applyAgentTurnLiveness(t,n)}beginAgentCancellation(e,t){const n=++this.nextCancellationRequestId;return this.applyAgentTurnLiveness(e,t,{type:"cancellation_started",requestId:n}),n}settleAgentCancellation(e,t,n){this.applyAgentTurnLiveness(e,t,{type:"cancellation_settled",requestId:n})}acceptAgentSnapshot(e,t){return this.requireDirectory(e).acceptAgent(t)}archiveAgentSnapshot(e,t,n){this.requireDirectory(e).archiveAgent(t,n)}restoreAgentSnapshot(e,t,n){const s=this.requireDirectory(e);n?s.acceptAgent(n):s.removeAgent(t)}acceptWorkspaceSnapshots(e,t){this.requireDirectory(e).acceptWorkspaces(t)}acceptProjectSnapshot(e,t){this.requireDirectory(e).acceptProject(t)}removeWorkspaceSnapshot(e,t){this.requireDirectory(e).removeWorkspace(t)}requireDirectory(e){const t=this.directorySyncByServer.get(e);if(!t)throw new Error(`Unknown host runtime for serverId ${e}`);return t}getSnapshot(e){return this.controllers.get(e)?.getSnapshot()??null}getConnectionStatusSince(e){return this.connectionStatusStartedAtByServer.get(e)??null}getVersion(){return this.version}getClient(e){return this.controllers.get(e)?.getClient()??null}subscribe(e,t){const n=this.serverListeners.get(e)??new Set;return n.add(t),this.serverListeners.set(e,n),()=>{const n=this.serverListeners.get(e);n&&(n.delete(t),0===n.size&&this.serverListeners.delete(e))}}subscribeAll(e){return this.globalListeners.add(e),()=>{this.globalListeners.delete(e)}}getEarliestOnlineHostServerId(){let e=null,t=null;for(const n of this.hosts){const s=this.getSnapshot(n.serverId);te(s)&&s?.lastOnlineAt&&((!t||s.lastOnlineAt<t)&&(t=s.lastOnlineAt,e=n.serverId))}return e}ensureConnectedAll(e){for(const t of this.controllers.values())t.ensureConnected(e)}setAppVisible(e){e?this.ensureConnectedAll({verify:!0}):this.replicaCache.flush()}runProbeCycleNow(e){return e?this.controllers.get(e)?.runProbeCycleNow()??Promise.resolve():Promise.all(Array.from(this.controllers.values(),e=>e.runProbeCycleNow())).then(()=>{})}async refreshAgentDirectory(e){const t=this.directorySyncByServer.get(e.serverId);if(!t)throw new Error(`Unknown host runtime for serverId ${e.serverId}`);return t.refreshAgents(e)}async refreshWorkspaceDirectory(e){const t=this.directorySyncByServer.get(e.serverId);if(!t)throw new Error(`Unknown host runtime for serverId ${e.serverId}`);await t.refreshWorkspaces({subscribe:e.subscribe})}async refreshDirectories(e){const t=this.directorySyncByServer.get(e);if(!t)throw new Error(`Unknown host runtime for serverId ${e}`);await t.refreshDemand()}acquireDirectoryDemand(e){const t=this.directorySyncByServer.get(e);if(!t)return()=>{};const n={};return t.setDemand(n,!0),()=>t.setDemand(n,!1)}async prepareAgentRoute(e,t){const n=this.directorySyncByServer.get(e);if(!n)throw new Error(`Unknown host runtime for serverId ${e}`);await n.prepareAgentRoute(t)}async prepareWorkspaceRoute(e,t){const n=this.directorySyncByServer.get(e);if(!n)throw new Error(`Unknown host runtime for serverId ${e}`);await n.prepareWorkspaceRoute(t)}async prepareAgentTimeline(e,t){const n=this.timelineReplicaByServer.get(e);if(!n)throw new Error(`Unknown host runtime for serverId ${e}`);await n.prepare(t)}async fetchAgentTimeline(e,t,n){const s=this.directorySyncByServer.get(e);if(!s)throw new Error(`Unknown host runtime for serverId ${e}`);const o=k.useSessionStore.getState().sessions[e]?.viewedTimelineSync,c=await s.fetchTimeline(t,n);return o&&k.useSessionStore.getState().sessions[e]?.viewedTimelineSync===o&&(o.flushStreamAgent(t),o.applyTimelineResponse(c)),c}createViewedTimelineOwner(e,t){const n=this.directorySyncByServer.get(e);if(!n)throw new Error(`Unknown host runtime for serverId ${e}`);const s=this.timelineReplicaByServer.get(e);if(!s)throw new Error(`Unknown host runtime for serverId ${e}`);return(0,Q.createViewedTimelineOwner)({serverId:e,replica:s,replaceDemandedAgentIds:e=>n.setAgentRouteDemand(e),drainQueuedAgentMessage:t=>this.drainQueuedAgentMessage(e,t),ports:t})}emit(e){this.version+=1;const t=this.serverListeners.get(e);if(t){for(const e of t)e();for(const e of this.globalListeners)e()}else for(const e of this.globalListeners)e()}}let Ee=null;const Le="__paseoHostRuntimeStore";function Pe(){if(Ee)return Ee;const e=Reflect.get(globalThis,Le);return e instanceof De?(Ee=e,e):(Ee=new De,Reflect.set(globalThis,Le,Ee),Ee)}},3529,[36,454,3530,2982,37,885,3531,3482,3532,3535,3537,3526,3538,3539,3540,881,3542,3543,2898,3018,3546,3544,882,3547,2994,3007,3459,3548,3555,849,3557,3567,3585,3587,3600,3467,3591,3601,3607,3637,3641,3642,3646,3648,3650,3651]);
|
|
15175
15175
|
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getAppDeviceKind=function(){return(0,n.getIsElectron)()?o.DeviceKind.Desktop:n.isWeb?o.DeviceKind.Browser:o.DeviceKind.Mobile},_e.getAppDeviceLabel=async function(){if((0,n.getIsElectron)()){const e=await((0,s.getDesktopHost)()?.invoke?.("desktop_get_computer_name").catch(()=>{}));return"string"==typeof e?`Paseo Desktop \xb7 ${e}`:"Paseo Desktop"}if(n.isWeb){let e="Web";return/Safari\//.test(navigator.userAgent)&&(e="Safari"),/Chrome\//.test(navigator.userAgent)&&(e="Chrome"),/Firefox\//.test(navigator.userAgent)&&(e="Firefox"),/Edg\//.test(navigator.userAgent)&&(e="Edge"),`Browser \xb7 ${e}`}return"Android"};var e,t=r(d[0]),o=((e=t)&&e.__esModule,r(d[1])),n=r(d[2]),s=r(d[3])},3530,[26,2982,881,882]);
|
|
@@ -16290,7 +16290,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
|
|
|
16290
16290
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.hasPointerDragStarted=function(n){return!!n.alreadyDragging||Math.hypot(n.x-n.startX,n.y-n.startY)>=t};const t=4},4635,[]);
|
|
16291
16291
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.retainDiffViewport=function(t,h){return h.width<=0||h.height<=0||t.width===h.width&&t.height===h.height?t:h}},4636,[]);
|
|
16292
16292
|
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.createDiffDocumentWorkspaceCache=p,_e.DiffDocumentWorkspaceCacheProvider=function(e){const o=(0,t.c)(3),{children:s}=e,[l]=(0,n.useState)(p);let u;o[0]!==l||o[1]!==s?(u=(0,c.jsx)(k.Provider,{value:l,children:s}),o[0]=l,o[1]=s,o[2]=u):u=o[2];return u},_e.useDiffDocumentWorkspaceCache=function(){const e=(0,n.useContext)(k);return(0,s.default)(e,"DiffDocumentWorkspaceCacheProvider is required"),e};var e,t=r(d[0]),n=r(d[1]),o=r(d[2]),s=(e=o)&&e.__esModule?e:{default:e},l=r(d[3]),u=r(d[4]),c=r(d[5]);const f=4,y=4;function p(){let e=[];const t=new Map;return{buildModel(t){const n=v(t),o=x(t),s=e.findIndex(e=>e.key===n&&e.measureText===t.measureText),l=-1===s?void 0:e[s];if(l?.exactKey===o&&l.model.files.length===t.files.length&&l.model.files.every((e,n)=>e.file===t.files[n]))return e.splice(s,1),e.unshift(l),l.model;const c=(0,u.buildDiffDocumentModel)(Object.assign({},t,{reuseFrom:l?.models})),y={measureText:t.measureText,key:n,exactKey:o,model:c,models:(0,u.retainReusableModels)(l?.models,c)};return-1!==s&&e.splice(s,1),e.unshift(y),e=e.slice(0,f),c},typography(e){const n=b(e.typography),o=t.get(n);if(o)return t.delete(n),t.set(n,o),o;const s=h(e);for(t.set(n,s);t.size>y;){const e=t.keys().next().value;if(void 0===e)break;t.delete(e)}return s}}}function h(e){let t=!1,n=null;return{typography:e.typography,measureText:e.createMeasurer(),isReady:()=>t,load:()=>t?Promise.resolve(e.typography):(n??=e.load().then(()=>(t=!0,e.typography)),n)}}function v(e){return JSON.stringify([e.layout,e.wrapLines,e.viewportWidth,b(e.typography),D(e.palette),e.labels.binary,e.labels.tooLarge,e.labels.gap({lines:2,comments:1}),e.labels.deferred({size:1,load:l.DeferredDiffLoad.Idle}),!0===e.expandableGaps])}function x(e){const t=[...e.collapsedFilePaths].sort(),n=(0,u.reviewGeometryKey)(e.reviewActions),o=e.materializationWindow?[e.materializationWindow.top,e.materializationWindow.height]:null,s=[...e.deferredFileLoads??[]].sort();return JSON.stringify([t,n,o,s])}function b(e){return JSON.stringify([e.family,e.size,e.lineHeight])}function D(e){const t=Object.keys(e.syntax).sort().map(t=>[t,e.syntax[t]]);return JSON.stringify([e.surface,e.headerSurface,e.border,e.foreground,e.foregroundMuted,e.addition,e.deletion,e.additionBackground,e.deletionBackground,e.emptyBackground,e.selection,e.headerActiveSurface,e.headerBorder,e.statusSuccess,e.statusDanger,e.statusWarning,t])}const k=(0,n.createContext)(null)},4637,[454,37,3576,4610,4627,280]);
|
|
16293
|
-
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.resolveDiffLayout=ee,_e.DiffLayoutToggle=function(s){const n=(0,o.c)(19),{layout:l,isMobile:d,testID:p,toggleStyle:u,onToggle:f}=s,h=void 0===p?"changes-toggle-layout":p;let b;n[0]!==d?(b=Ge(!1,void 0,d),n[0]=d,n[1]=b):b=n[1];const x=b,{t:w}=(0,c.useTranslation)();let y;n[2]!==l||n[3]!==w?(y=w("unified"===l?"workspace.git.diff.switchToSplit":"workspace.git.diff.switchToUnified"),n[2]=l,n[3]=w,n[4]=y):y=n[4];const S=y,T=u??x;let C,j,I,L;n[5]!==d||n[6]!==l?(C="unified"===l?(0,Z.jsx)(re,{size:d?18:14,uniProps:oe}):(0,Z.jsx)(ie,{size:d?18:14,uniProps:oe}),n[5]=d,n[6]=l,n[7]=C):C=n[7];n[8]!==S||n[9]!==f||n[10]!==T||n[11]!==C||n[12]!==h?(j=(0,Z.jsx)(F.TooltipTrigger,{asChild:!0,children:(0,Z.jsx)(e.Pressable,{accessibilityRole:"button",accessibilityLabel:S,testID:h,onPress:f,style:T,children:C})}),n[8]=S,n[9]=f,n[10]=T,n[11]=C,n[12]=h,n[13]=j):j=n[13];n[14]!==S?(I=(0,Z.jsx)(F.TooltipContent,{side:"bottom",children:(0,Z.jsx)(t.Text,{style:qe.tooltipText,children:S})}),n[14]=S,n[15]=I):I=n[15];n[16]!==j||n[17]!==I?(L=(0,Z.jsxs)(F.Tooltip,{delayDuration:300,children:[j,I]}),n[16]=j,n[17]=I,n[18]=L):L=n[18];return L},_e.DiffModeMenu=Se,_e.ChangesDiffToolbar=Re,_e.ChangesSurface=function({serverId:e,workspaceId:o,cwd:n,enabled:d,presentation:p="combined",focusPath:u,focusRequestId:f,onOpenFile:b,onOpenToSide:y,onSelectDiffFile:C,onAddToChat:j,onRevealInExplorer:I,state:M,onStateChange:F}){const{settings:P}=(0,L.useAppSettings)(),{preferences:W,updatePreferences:z}=(0,k.useChangesPreferences)(),{t:V}=(0,c.useTranslation)(),O=(0,h.useIsCompactFormFactor)(),G=q.isWeb&&!O,N=M??x.defaultChangesState,$=F??pe,J=W.wrapLines,K=N.treeVisible,oe=ee(W.layout,G),ne=N.collapsedFilePaths,ie=(0,l.useCallback)(e=>$(Object.assign({},N,{collapsedFilePaths:e})),[N,$]),re=(0,l.useCallback)(e=>$(Object.assign({},N,{collapsedFolderPaths:e})),[N,$]),le=(0,l.useMemo)(()=>({paths:ne,onChange:ie}),[ne,ie]),ae=(0,l.useCallback)(()=>{z({wrapLines:!J})},[z,J]),ce=(0,l.useCallback)(()=>{z({hideWhitespace:!W.hideWhitespace})},[W.hideWhitespace,z]),de=(0,l.useCallback)(()=>{const e="unified"===W.layout?"split":"unified";z({layout:e})},[W.layout,z]),ue=P.codeFontSize,fe=(0,B.useToast)(),ge=(0,X.useRevealInFileManager)({serverId:e,workspaceRoot:n}),he=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.checkoutRefresh),me=(0,H.useSessionStore)(t=>t.sessions[e]?.client),be=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.fsEntryDuplicate),xe=(0,E.useCheckoutGitActionsStore)(e=>e.refresh),we="pending"===(0,E.useCheckoutGitActionsStore)(t=>t.getStatus({serverId:e,cwd:n,actionId:"refresh"})),ye=(0,l.useCallback)(()=>{we||xe({serverId:e,cwd:n}).catch(e=>{fe.error(e instanceof Error?e.message:V("workspace.git.diff.failedRefresh"))})},[n,we,xe,e,V,fe]),{status:Se,isStatusLoading:je,isGit:Ie,notGit:Le,statusErrorMessage:ke,currentBranchName:Me,diffMode:De,selectUncommitted:ve,selectBase:Re,selectAll:Fe,turnModes:Pe,commitRange:We,selectCommitRange:Ae,isTurnSnapshotMissing:Ge,files:$e,diffPayloadError:Qe,diffTooLarge:Ke,isDiffLoading:Xe,historyStatus:Ye,retryHistory:Ze,reviewActions:et,commentsCapabilityMissing:tt,onExpandGap:st,deferredFileLoads:ot,onLoadDeferredFile:nt}=(0,Q.useWorkingDiff)({serverId:e,workspaceId:o??void 0,cwd:n,ignoreWhitespace:W.hideWhitespace,enabled:!1!==d}),{githubFeaturesEnabled:it,forge:rt,authState:lt,payloadError:at}=(0,T.useCheckoutPrStatusQuery)({serverId:e,cwd:n,enabled:Ie}),ct=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.forgeProviders),dt=Ve({forge:rt,forgeProvidersSupported:ct,authState:lt}),pt=(0,l.useMemo)(()=>{return Oe({action:dt,forge:rt,host:(e=Se?.remoteUrl,e?(0,U.parseGitRemoteLocation)(e)?.host??null:null),t:V});var e},[dt,rt,Se?.remoteUrl,V]),ut=(0,l.useCallback)(()=>{$(Object.assign({},N,{treeVisible:!K}))},[K,N,$]),ft=(0,l.useCallback)(e=>$(Object.assign({},N,{treeWidth:e})),[N,$]),gt=(0,l.useMemo)(()=>({layout:oe,wrapLines:J,codeFontSize:ue,monoFontFamily:P.monoFontFamily}),[P.monoFontFamily,ue,oe,J]),ht=(0,v.useFileDownload)({serverId:e,workspaceId:o,workspaceRoot:n}),mt=(0,l.useCallback)(e=>{D.setStringAsync((0,R.buildAbsoluteExplorerPath)({workspaceRoot:n,entryPath:e}))},[n]),bt=(0,l.useCallback)(e=>{D.setStringAsync(e)},[]),xt=(0,l.useCallback)(e=>{ht({fileName:e.split("/").pop()??e,path:e})},[ht]),wt=(0,l.useCallback)(async e=>{if(me)try{const t=await me.duplicateFileEntry({cwd:n,path:e});t.success||fe.error(t.error??V("workspace.fileExplorer.errors.duplicateFailed"))}catch(e){fe.error(e instanceof Error?e.message:String(e))}},[me,n,V,fe]),yt=se({serverId:e,cwd:n,diffMode:De}),[St,Tt]=(0,l.useState)(null),Ct=(0,l.useMemo)(()=>u?{path:u,revision:f??0}:null,[u,f]),jt=St&&(!Ct||St.revision>=Ct.revision)?St:Ct,It=(0,l.useCallback)(e=>{"tree"===p&&C?C(e):Tt(t=>({path:e,revision:Math.max(Date.now(),(t?.revision??0)+1)}))},[C,p]),Lt=(0,l.useMemo)(()=>({kind:"working",reviewActions:et,focusPath:jt?.path,focusRequestId:jt?.revision,workspaceFileDragScope:o?{serverId:e,workspaceId:o}:void 0,onOpenFile:b,onOpenToSide:y,onAddToChat:j,onCopyPath:mt,onCopyRelativePath:bt,onReveal:ge?.reveal,onRevealInExplorer:I,revealTargetName:ge?.targetName,onDownload:xt,onDuplicate:be?wt:void 0,onRevert:yt}),[et,jt?.path,jt?.revision,e,o,b,y,j,I,mt,bt,xt,wt,ge,be,yt]),kt=$e.length>0,Mt=Ne({isCompact:O,presentation:p,hasChanges:kt,isDiffLoading:Xe}),Dt=Mt>0,vt=(0,l.useMemo)(()=>te($e,Xe),[$e,Xe]),Rt=kt&&$e.every(e=>ne.includes(e.path)),Ft=(0,l.useCallback)(()=>ie($e.map(e=>e.path)),[$e,ie]),Pt=(0,l.useCallback)(()=>ie([]),[ie]),Wt=Qe?.message??null,At=He(it,at),_t=Ue(Se),{gitActions:zt}=(0,A.useGitActions)({serverId:e,cwd:n,icons:_.GIT_ACTION_ICONS}),Ut=Ee({diffMode:De,isTurnSnapshotMissing:Ge,t:V}),Et=Be({hideWhitespace:W.hideWhitespace,diffMode:De,status:Se,seeUncommittedLabel:V("workspace.git.diff.seeUncommittedChanges"),seeCommittedLabel:V("workspace.git.diff.seeCommittedChanges"),selectUncommitted:ve,selectBase:Re}),Bt=(0,Z.jsx)(ze,{isStatusLoading:je,statusErrorMessage:ke,notGit:Le,isDiffLoading:Xe,historyStatus:Ye,historyLoadingLabel:V("workspace.git.diff.fetchingHistory"),historyRetryLabel:V("workspace.git.diff.fetchMoreHistory"),onRetryHistory:Ze,diffErrorMessage:Wt,diffTooLarge:Ke,hasChanges:kt,emptyMessage:Ut,emptyAction:Et,checkingRepositoryLabel:V("workspace.git.diff.checkingRepository"),notRepositoryLabel:V("workspace.git.diff.notRepository"),children:(0,Z.jsx)(w.DiffDocument,{files:$e,contentInsetBottom:Mt,collapseState:le,displayPreferences:gt,mode:Lt,onExpandGap:st,deferredFileLoads:ot,onLoadDeferredFile:nt})}),Ht=(0,Z.jsx)(Je,{isLoading:Xe,errorMessage:Wt,presentation:p,desktopTreeVisible:K,isMobile:O,files:$e,mode:Lt,onSelectFile:It,treeWidth:N.treeWidth,onTreeWidthChange:ft,collapsedFolderPaths:N.collapsedFolderPaths,onCollapsedFolderPathsChange:re,children:Bt}),Vt=(0,l.useMemo)(()=>Te({presentation:p,compact:O,hasChanges:kt,canUseSplitLayout:G,refreshSupported:he,isRefreshing:we,layout:W.layout,hideWhitespace:W.hideWhitespace,wrapLines:J,treeVisible:K,onRefresh:ye,onCollapseAll:Ft,onExpandAll:Pt,allFilesCollapsed:Rt,onToggleLayout:de,onToggleHideWhitespace:ce,onToggleWrapLines:ae,onToggleTree:ut}),[Rt,G,K,Ft,Pt,ye,ut,ce,de,ae,kt,W.hideWhitespace,W.layout,O,we,p,he,J]),Ot=(0,l.useMemo)(()=>Ae?{serverId:e,cwd:n,selected:We,select:Ae}:null,[We,n,Ae,e]),Gt=(0,l.useMemo)(()=>{return{repository:{baseRefLabel:(t={baseRefLabel:_t,branchName:Me,compact:O,cwd:n,diffMode:De,turnModes:Pe,commitRanges:Ot,gitActions:zt,mode:Vt,onSelectBase:Re,onSelectAll:Fe,onSelectUncommitted:ve,selectedDiffStat:vt,serverId:e,workspaceId:o}).baseRefLabel,branchName:t.branchName,cwd:t.cwd,gitActions:t.compact&&!(0,Y.isSnapshotDiffComparison)(t.diffMode)?t.gitActions:null,serverId:t.serverId,workspaceId:t.workspaceId},comparison:{diffMode:t.diffMode,turnModes:t.turnModes,commitRanges:t.commitRanges,mode:t.mode,selectedDiffStat:t.selectedDiffStat,onSelectBase:t.onSelectBase,onSelectAll:t.onSelectAll,onSelectUncommitted:t.onSelectUncommitted}};var t},[_t,Me,n,De,Pe,Ot,zt,Re,Fe,ve,O,vt,e,Vt,o]);return(0,Z.jsxs)(s.View,{onContextMenu:e=>e.preventDefault?.(),style:qe.container,children:[Ie?(0,Z.jsx)(Ce,{compact:O,repository:Gt.repository,comparison:Gt.comparison,sidebarSurface:"tree"===p}):null,pt?(0,Z.jsx)(s.View,{style:qe.forgeSetupCallout,testID:"forge-setup-callout",children:(0,Z.jsx)(t.Text,{style:qe.forgeSetupCalloutText,children:pt})}):null,At?(0,Z.jsx)(t.Text,{style:qe.actionErrorText,children:At}):null,tt?(0,Z.jsx)(s.View,{style:qe.forgeSetupCallout,testID:"last-turn-comments-capability-missing",children:(0,Z.jsx)(t.Text,{style:qe.forgeSetupCalloutText,children:V("panels.diff.commentsCapabilityMissing")})}):null,(0,Z.jsxs)(s.View,{style:qe.diffContainer,children:[Ht,Dt?(0,Z.jsx)(S.JumpToFile,{files:$e,mode:Lt,onSelectFile:It}):null]})]})};var e=r(_d[0]),t=r(_d[1]),s=r(_d[2]),o=r(_d[3]),n=r(_d[4]),l=r(_d[5]),c=r(_d[6]),d=r(_d[7]),p=r(_d[8]),u=r(_d[9]);r(_d[10]),r(_d[11]),r(_d[12]);var f=r(_d[13]),h=r(_d[14]),b=r(_d[15]),x=r(_d[16]),w=r(_d[17]),y=r(_d[18]),S=r(_d[19]),T=r(_d[20]),C=r(_d[21]),j=r(_d[22]),I=r(_d[23]),L=r(_d[24]),k=r(_d[25]),M=r(_d[26]),D=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[27])),v=r(_d[28]),R=r(_d[29]),F=r(_d[30]),P=r(_d[31]),W=r(_d[32]),A=r(_d[33]),_=r(_d[34]),z=r(_d[35]),U=r(_d[36]),E=r(_d[37]),B=r(_d[38]),H=r(_d[39]),V=r(_d[40]),O=r(_d[41]),G=r(_d[42]),N=r(_d[43]),$=r(_d[44]),J=r(_d[45]),q=r(_d[46]),Q=r(_d[47]),K=r(_d[48]),X=r(_d[49]),Y=r(_d[50]),Z=r(_d[51]);function ee(e,t){return t?e:"unified"}function te(e,t){return t?null:(0,I.sumDiffStat)(e)}function se({serverId:e,cwd:t,diffMode:s}){const{t:o}=(0,c.useTranslation)(),n=(0,B.useToast)(),d=(0,E.useCheckoutGitActionsStore)(e=>e.discardChanges),p=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.checkoutDiscardChanges),u=(0,l.useCallback)(async(s,l)=>{if(await(0,V.confirmDialog)({title:o("workspace.fileActions.confirmRevert.title"),message:o("workspace.fileActions.confirmRevert.message",{name:s}),confirmLabel:o("workspace.fileActions.confirmRevert.confirm"),cancelLabel:o("workspace.fileActions.confirmRevert.cancel"),destructive:!0}))try{await d({serverId:e,cwd:t,paths:l?[s,l]:[s]})}catch(e){n.error(e instanceof Error?e.message:o("workspace.fileActions.confirmRevert.failed"))}},[t,d,e,o,n]),f=(0,l.useCallback)((e,t)=>{u(e,t)},[u]);return p&&"uncommitted"===s?f:void 0}const oe=e=>({color:e.colors.foregroundMuted}),ne=(0,f.withUnistyles)(O.LoadingSpinner),ie=(0,f.withUnistyles)(b.AlignJustify),re=(0,f.withUnistyles)(b.Columns2),le=(0,f.withUnistyles)(b.Pilcrow),ae=(0,f.withUnistyles)(b.WrapText),ce=(0,f.withUnistyles)(b.ListChevronsDownUp),de=(0,f.withUnistyles)(b.ListChevronsUpDown),pe=()=>{},ue=(0,f.withUnistyles)(b.ChevronDown),fe=(0,f.withUnistyles)(b.MoreHorizontal),ge=(0,Z.jsx)(le,{size:14,uniProps:oe}),he=(0,Z.jsx)(ae,{size:14,uniProps:oe}),me=(0,Z.jsx)(re,{size:14,uniProps:oe}),be=(0,Z.jsx)(ce,{size:14,uniProps:oe}),xe=(0,Z.jsx)(de,{size:14,uniProps:oe});const we={uncommitted:"workspace.git.diff.uncommitted",base:"workspace.git.diff.committed",last_turn:"workspace.git.diff.lastTurn",[Y.LiveDiffComparison.All]:"workspace.git.diff.allChanges"};function ye(e){const t=(0,o.c)(13),{t:s}=(0,c.useTranslation)(),{diffMode:n,commitRanges:l}=e,d="commit_range"===n?l?.selected:void 0,p=l?.serverId??"",u=l?.cwd??"",f=Boolean(d);let h;t[0]!==p||t[1]!==u||t[2]!==f?(h={serverId:p,cwd:u,enabled:f},t[0]=p,t[1]=u,t[2]=f,t[3]=h):h=t[3];const{shas:b}=(0,C.useWorkspaceCommits)(h);if("commit_range"!==n){const e=we[n];let o;return t[4]!==s||t[5]!==e?(o=s(e),t[4]=s,t[5]=e,t[6]=o):o=t[6],o}if(!d){let e;return t[7]!==s?(e=s("workspace.git.diff.committed"),t[7]=s,t[8]=e):e=t[8],e}let x;if(t[9]!==d||t[10]!==b||t[11]!==s){const e=(0,j.commitRangeSpan)(b,d);x=(0,C.formatCommitRange)({t:s,range:d,count:e&&e.oldest-e.newest+1}),t[9]=d,t[10]=b,t[11]=s,t[12]=x}else x=t[12];return x}function Se(e){const s=(0,o.c)(48),{diffMode:n,testIDPrefix:l,onSelectUncommitted:d,onSelectBase:p,onSelectAll:u,turnModes:f,commitRanges:h}=e,b=void 0===l?"changes-diff":l,{t:x}=(0,c.useTranslation)();let w;s[0]!==h||s[1]!==n?(w={diffMode:n,commitRanges:h},s[0]=h,s[1]=n,s[2]=w):w=s[2];const y=ye(w),S=`${b}-status-trigger`;let T,j,I;s[3]!==x?(T=x("workspace.git.diff.diffMode"),s[3]=x,s[4]=T):T=s[4],s[5]!==y?(j=e=>{const s=(0,J.isToolbarLabelTriggerHighlighted)(e);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(t.Text,{style:(0,J.toolbarLabelTriggerTextStyle)(s),numberOfLines:1,children:y}),(0,Z.jsx)(J.ToolbarLabelTriggerIcon,{children:(0,Z.jsx)(ue,{size:12,uniProps:$.extraMutedIconColorMapping})})]})},s[5]=y,s[6]=j):j=s[6],s[7]!==S||s[8]!==T||s[9]!==j?(I=(0,Z.jsx)(M.DropdownMenuTrigger,{testID:S,style:J.toolbarLabelTriggerStyle,accessibilityRole:"button",accessibilityLabel:T,children:j}),s[7]=S,s[8]=T,s[9]=j,s[10]=I):I=s[10];const L=h?380:260,k=`${b}-status-menu`,D=`${b}-mode-uncommitted`,v="uncommitted"===n;let R,F;s[11]!==x?(R=x(we.uncommitted),s[11]=x,s[12]=R):R=s[12],s[13]!==d||s[14]!==v||s[15]!==R||s[16]!==D?(F=(0,Z.jsx)(M.DropdownMenuItem,{testID:D,selected:v,onSelect:d,children:R}),s[13]=d,s[14]=v,s[15]=R,s[16]=D,s[17]=F):F=s[17];const P=`${b}-mode-committed`,W="base"===n;let A,_,z,U,E,B,H;return s[18]!==x?(A=x(we.base),s[18]=x,s[19]=A):A=s[19],s[20]!==p||s[21]!==P||s[22]!==W||s[23]!==A?(_=(0,Z.jsx)(M.DropdownMenuItem,{testID:P,selected:W,onSelect:p,children:A}),s[20]=p,s[21]=P,s[22]=W,s[23]=A,s[24]=_):_=s[24],s[25]!==n||s[26]!==u||s[27]!==x||s[28]!==b?(z=u?(0,Z.jsx)(M.DropdownMenuItem,{testID:`${b}-mode-all`,selected:n===Y.LiveDiffComparison.All,onSelect:u,children:x(we[Y.LiveDiffComparison.All])}):null,s[25]=n,s[26]=u,s[27]=x,s[28]=b,s[29]=z):z=s[29],s[30]!==n||s[31]!==x||s[32]!==b||s[33]!==f?(U=f?(0,Z.jsx)(M.DropdownMenuItem,{testID:`${b}-mode-last-turn`,selected:"last_turn"===n,onSelect:f.selectLastTurn,children:x(we.last_turn)}):null,s[30]=n,s[31]=x,s[32]=b,s[33]=f,s[34]=U):U=s[34],s[35]!==h?(E=h?(0,Z.jsx)(C.CommitRangeMenuSection,{serverId:h.serverId,cwd:h.cwd,selected:h.selected,onSave:h.select}):null,s[35]=h,s[36]=E):E=s[36],s[37]!==F||s[38]!==_||s[39]!==z||s[40]!==U||s[41]!==E||s[42]!==L||s[43]!==k?(B=(0,Z.jsxs)(M.DropdownMenuContent,{align:"start",width:L,testID:k,children:[F,_,z,U,E]}),s[37]=F,s[38]=_,s[39]=z,s[40]=U,s[41]=E,s[42]=L,s[43]=k,s[44]=B):B=s[44],s[45]!==B||s[46]!==I?(H=(0,Z.jsxs)(M.DropdownMenu,{children:[I,B]}),s[45]=B,s[46]=I,s[47]=H):H=s[47],H}function Te(e){const t=e.refreshSupported?{isRefreshing:e.isRefreshing,onRefresh:e.onRefresh}:null;if("tree"===e.presentation)return{kind:"tree",refresh:t};const s={collapse:e.hasChanges?{allFilesCollapsed:e.allFilesCollapsed,onCollapseAll:e.onCollapseAll,onExpandAll:e.onExpandAll}:null,layout:e.canUseSplitLayout?{value:e.layout,onToggle:e.onToggleLayout}:null,hideWhitespace:e.hideWhitespace,wrapLines:e.wrapLines,onToggleHideWhitespace:e.onToggleHideWhitespace,onToggleWrapLines:e.onToggleWrapLines};return"diff"===e.presentation?{kind:"diff",options:s,refresh:t}:{kind:"combined",options:s,refresh:t,treeToggle:!e.compact&&e.hasChanges?{visible:e.treeVisible,onToggle:e.onToggleTree}:null}}function Ce(e){const t=(0,o.c)(15),{compact:n,repository:l,comparison:c,sidebarSurface:d}=e;if("diff"===c.mode.kind){let e;return t[0]!==n||t[1]!==c.mode||t[2]!==d?(e=(0,Z.jsx)(je,{compact:n,mode:c.mode,sidebarSurface:d}),t[0]=n,t[1]=c.mode,t[2]=d,t[3]=e):e=t[3],e}let p,u,f;return t[4]!==n||t[5]!==l||t[6]!==d?(p=(0,Z.jsx)(Me,{compact:n,model:l,sidebarSurface:d}),t[4]=n,t[5]=l,t[6]=d,t[7]=p):p=t[7],t[8]!==n||t[9]!==c||t[10]!==d?(u=(0,Z.jsx)(De,{compact:n,model:c,sidebarSurface:d}),t[8]=n,t[9]=c,t[10]=d,t[11]=u):u=t[11],t[12]!==p||t[13]!==u?(f=(0,Z.jsxs)(s.View,{children:[p,u]}),t[12]=p,t[13]=u,t[14]=f):f=t[14],f}function je(e){const t=(0,o.c)(8),{compact:s,mode:n,sidebarSurface:l}=e;let c,d,p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,Z.jsx)(Le,{}),t[0]=c):c=t[0],t[1]!==s||t[2]!==n?(d=(0,Z.jsx)(ke,{children:(0,Z.jsx)(ve,{mode:n,compact:s})}),t[1]=s,t[2]=n,t[3]=d):d=t[3],t[4]!==s||t[5]!==l||t[6]!==d?(p=(0,Z.jsxs)(Ie,{compact:s,sidebarSurface:l,testID:"changes-header",trailing:"glyph",children:[c,d]}),t[4]=s,t[5]=l,t[6]=d,t[7]=p):p=t[7],p}function Ie(e){const t=(0,o.c)(12),{children:s,compact:n,sidebarSurface:l,testID:c,trailing:d}=e;let p,u;t[0]!==n||t[1]!==d?(p=(0,N.paneContentToolbarTrailingPadding)(n,d),t[0]=n,t[1]=d,t[2]=p):p=t[2],t[3]!==p?(u={paddingRight:p},t[3]=p,t[4]=u):u=t[4];const f=l?qe.changesToolbarSidebar:null;let h;t[5]!==u||t[6]!==f?(h=[qe.changesToolbar,u,f],t[5]=u,t[6]=f,t[7]=h):h=t[7];const b=h;let x;return t[8]!==s||t[9]!==c||t[10]!==b?(x=(0,Z.jsx)(N.PaneContentToolbar,{style:b,testID:c,children:s}),t[8]=s,t[9]=c,t[10]=b,t[11]=x):x=t[11],x}function Le(e){const t=(0,o.c)(2),{children:n}=e;let l;return t[0]!==n?(l=(0,Z.jsx)(s.View,{style:qe.changesToolbarIdentity,children:n}),t[0]=n,t[1]=l):l=t[1],l}function ke(e){const t=(0,o.c)(2),{children:s}=e;let n;return t[0]!==s?(n=(0,Z.jsx)(N.ToolbarControls,{style:qe.changesToolbarControls,children:s}),t[0]=s,t[1]=n):n=t[1],n}function Me(e){const n=(0,o.c)(25),{compact:l,model:d,sidebarSurface:p}=e,{t:u}=(0,c.useTranslation)(),f=d.gitActions?"framed":"glyph";let h,b,x,w,y,S,T,C,j;return n[0]===Symbol.for("react.memo_cache_sentinel")?(h=(0,J.toolbarLabelTriggerFrameStyle)(),n[0]=h):h=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(b=(0,J.toolbarLabelTriggerTextStyle)(!1),n[1]=b):b=n[1],n[2]!==d.branchName||n[3]!==u?(x=d.branchName??u("branchSwitcher.detachedHead"),n[2]=d.branchName,n[3]=u,n[4]=x):x=n[4],n[5]!==x?(w=(0,Z.jsx)(s.View,{style:h,children:(0,Z.jsx)(t.Text,{testID:"changes-current-branch",style:b,numberOfLines:1,children:x})}),n[5]=x,n[6]=w):w=n[6],n[7]!==d.baseRefLabel||n[8]!==d.cwd||n[9]!==d.serverId||n[10]!==d.workspaceId?(y=d.baseRefLabel?(0,Z.jsx)(W.BaseRefSwitcher,{baseRefLabel:d.baseRefLabel,serverId:d.serverId,workspaceId:d.workspaceId??d.cwd,cwd:d.cwd}):null,n[7]=d.baseRefLabel,n[8]=d.cwd,n[9]=d.serverId,n[10]=d.workspaceId,n[11]=y):y=n[11],n[12]!==w||n[13]!==y?(S=(0,Z.jsxs)(Le,{children:[w,y]}),n[12]=w,n[13]=y,n[14]=S):S=n[14],n[15]!==d.gitActions?(T=d.gitActions?(0,Z.jsx)(P.GitActionsSplitButton,{gitActions:d.gitActions,menuOnly:!0}):null,n[15]=d.gitActions,n[16]=T):T=n[16],n[17]!==T?(C=(0,Z.jsx)(ke,{children:T}),n[17]=T,n[18]=C):C=n[18],n[19]!==l||n[20]!==p||n[21]!==f||n[22]!==S||n[23]!==C?(j=(0,Z.jsxs)(Ie,{compact:l,sidebarSurface:p,testID:"changes-repository-header",trailing:f,children:[S,C]}),n[19]=l,n[20]=p,n[21]=f,n[22]=S,n[23]=C,n[24]=j):j=n[24],j}function De(e){const t=(0,o.c)(20),{compact:s,model:n,sidebarSurface:l}=e;let c,d,p,f,h;return t[0]!==n.commitRanges||t[1]!==n.diffMode||t[2]!==n.onSelectAll||t[3]!==n.onSelectBase||t[4]!==n.onSelectUncommitted||t[5]!==n.turnModes?(c=(0,Z.jsx)(Se,{diffMode:n.diffMode,onSelectUncommitted:n.onSelectUncommitted,onSelectBase:n.onSelectBase,onSelectAll:n.onSelectAll,turnModes:n.turnModes,commitRanges:n.commitRanges}),t[0]=n.commitRanges,t[1]=n.diffMode,t[2]=n.onSelectAll,t[3]=n.onSelectBase,t[4]=n.onSelectUncommitted,t[5]=n.turnModes,t[6]=c):c=t[6],t[7]!==n.selectedDiffStat?(d=n.selectedDiffStat?(0,Z.jsx)(u.DiffStat,{additions:n.selectedDiffStat.additions,deletions:n.selectedDiffStat.deletions,testID:"changes-selected-diff-stat"}):null,t[7]=n.selectedDiffStat,t[8]=d):d=t[8],t[9]!==c||t[10]!==d?(p=(0,Z.jsxs)(Le,{children:[c,d]}),t[9]=c,t[10]=d,t[11]=p):p=t[11],t[12]!==s||t[13]!==n.mode?(f=(0,Z.jsx)(ke,{children:(0,Z.jsx)(ve,{mode:n.mode,compact:s})}),t[12]=s,t[13]=n.mode,t[14]=f):f=t[14],t[15]!==s||t[16]!==l||t[17]!==p||t[18]!==f?(h=(0,Z.jsxs)(Ie,{compact:s,sidebarSurface:l,testID:"changes-header",trailing:"glyph",children:[p,f]}),t[15]=s,t[16]=l,t[17]=p,t[18]=f,t[19]=h):h=t[19],h}function ve(e){const t=(0,o.c)(24),{mode:s,compact:n}=e;if("tree"===s.kind){let e;return t[0]!==n||t[1]!==s.refresh?(e=s.refresh?(0,Z.jsx)(Fe,{refresh:s.refresh,compact:n}):null,t[0]=n,t[1]=s.refresh,t[2]=e):e=t[2],e}if("diff"===s.kind){let e,o,l;return t[3]!==n||t[4]!==s.refresh?(e=s.refresh?(0,Z.jsx)(Fe,{refresh:s.refresh,compact:n}):null,t[3]=n,t[4]=s.refresh,t[5]=e):e=t[5],t[6]!==n||t[7]!==s.options?(o=(0,Z.jsx)(Re,{options:s.options,compact:n}),t[6]=n,t[7]=s.options,t[8]=o):o=t[8],t[9]!==e||t[10]!==o?(l=(0,Z.jsxs)(Z.Fragment,{children:[e,o]}),t[9]=e,t[10]=o,t[11]=l):l=t[11],l}let l,c,d,u;return t[12]!==s.treeToggle?(l=s.treeToggle?(0,Z.jsx)(p.TreeRailToggle,{visible:s.treeToggle.visible,testID:"changes-toggle-tree",onToggle:s.treeToggle.onToggle}):null,t[12]=s.treeToggle,t[13]=l):l=t[13],t[14]!==n||t[15]!==s.refresh?(c=s.refresh?(0,Z.jsx)(Fe,{refresh:s.refresh,compact:n}):null,t[14]=n,t[15]=s.refresh,t[16]=c):c=t[16],t[17]!==n||t[18]!==s.options?(d=(0,Z.jsx)(Pe,{options:s.options,compact:n}),t[17]=n,t[18]=s.options,t[19]=d):d=t[19],t[20]!==l||t[21]!==c||t[22]!==d?(u=(0,Z.jsxs)(Z.Fragment,{children:[l,c,d]}),t[20]=l,t[21]=c,t[22]=d,t[23]=u):u=t[23],u}function Re(e){const t=(0,o.c)(45),{options:s,compact:n}=e,{t:l}=(0,c.useTranslation)();let d;t[0]!==n?(d=(0,N.paneContentToolbarIconSize)(n),t[0]=n,t[1]=d):d=t[1];const p=d,u=s.collapse?.allFilesCollapsed?"workspace.git.diff.expandAllFiles":"workspace.git.diff.collapseAllFiles";let f;t[2]!==l||t[3]!==u?(f=l(u),t[2]=l,t[3]=u,t[4]=f):f=t[4];const h=f;let b;t[5]!==s.hideWhitespace||t[6]!==l?(b=s.hideWhitespace?l("workspace.git.diff.showWhitespace"):l("workspace.git.diff.hideWhitespace"),t[5]=s.hideWhitespace,t[6]=l,t[7]=b):b=t[7];const x=b;let w;t[8]!==s.wrapLines||t[9]!==l?(w=s.wrapLines?l("workspace.git.diff.scrollLongLines"):l("workspace.git.diff.wrapLongLines"),t[8]=s.wrapLines,t[9]=l,t[10]=w):w=t[10];const y=w;let S;t[11]!==s.layout?.value||t[12]!==l?(S="split"===s.layout?.value?l("workspace.git.diff.switchToUnified"):l("workspace.git.diff.switchToSplit"),t[11]=s.layout?.value,t[12]=l,t[13]=S):S=t[13];const T=S;let C,j,I,L,k,M,D;return t[14]!==h||t[15]!==n||t[16]!==p||t[17]!==s.collapse?(C=s.collapse?(0,Z.jsx)(N.ToolbarButton,{compact:n,label:h,testID:"changes-toggle-collapse-all",onPress:s.collapse.allFilesCollapsed?s.collapse.onExpandAll:s.collapse.onCollapseAll,children:s.collapse.allFilesCollapsed?(0,Z.jsx)(de,{size:p,uniProps:$.extraMutedIconColorMapping}):(0,Z.jsx)(ce,{size:p,uniProps:$.extraMutedIconColorMapping})}):null,t[14]=h,t[15]=n,t[16]=p,t[17]=s.collapse,t[18]=C):C=t[18],t[19]!==n||t[20]!==p||t[21]!==T||t[22]!==s.layout?(j=s.layout?(0,Z.jsx)(N.ToolbarButton,{compact:n,label:T,selected:"split"===s.layout.value,testID:"changes-toggle-layout",onPress:s.layout.onToggle,children:(0,Z.jsx)(re,{size:p,uniProps:$.extraMutedIconColorMapping})}):null,t[19]=n,t[20]=p,t[21]=T,t[22]=s.layout,t[23]=j):j=t[23],t[24]!==p?(I=(0,Z.jsx)(le,{size:p,uniProps:$.extraMutedIconColorMapping}),t[24]=p,t[25]=I):I=t[25],t[26]!==n||t[27]!==s.hideWhitespace||t[28]!==s.onToggleHideWhitespace||t[29]!==I||t[30]!==x?(L=(0,Z.jsx)(N.ToolbarButton,{compact:n,label:x,selected:s.hideWhitespace,testID:"changes-toggle-whitespace",onPress:s.onToggleHideWhitespace,children:I}),t[26]=n,t[27]=s.hideWhitespace,t[28]=s.onToggleHideWhitespace,t[29]=I,t[30]=x,t[31]=L):L=t[31],t[32]!==p?(k=(0,Z.jsx)(ae,{size:p,uniProps:$.extraMutedIconColorMapping}),t[32]=p,t[33]=k):k=t[33],t[34]!==n||t[35]!==s.onToggleWrapLines||t[36]!==s.wrapLines||t[37]!==k||t[38]!==y?(M=(0,Z.jsx)(N.ToolbarButton,{compact:n,label:y,selected:s.wrapLines,testID:"changes-toggle-wrap-lines",onPress:s.onToggleWrapLines,children:k}),t[34]=n,t[35]=s.onToggleWrapLines,t[36]=s.wrapLines,t[37]=k,t[38]=y,t[39]=M):M=t[39],t[40]!==L||t[41]!==M||t[42]!==C||t[43]!==j?(D=(0,Z.jsxs)(Z.Fragment,{children:[C,j,L,M]}),t[40]=L,t[41]=M,t[42]=C,t[43]=j,t[44]=D):D=t[44],D}function Fe(e){const t=(0,o.c)(12),{refresh:s,compact:n}=e,{t:l}=(0,c.useTranslation)();let d;t[0]!==s.isRefreshing||t[1]!==l?(d=s.isRefreshing?l("workspace.git.diff.refreshing"):l("workspace.git.diff.refresh"),t[0]=s.isRefreshing,t[1]=l,t[2]=d):d=t[2];const p=d;let u,f;return t[3]!==n||t[4]!==s.isRefreshing?(u=s.isRefreshing?(0,Z.jsx)(ne,{size:(0,N.paneContentToolbarIconSize)(n),uniProps:$.extraMutedIconColorMapping}):(0,Z.jsx)(Ae,{size:(0,N.paneContentToolbarIconSize)(n),uniProps:$.extraMutedIconColorMapping}),t[3]=n,t[4]=s.isRefreshing,t[5]=u):u=t[5],t[6]!==n||t[7]!==s.isRefreshing||t[8]!==s.onRefresh||t[9]!==p||t[10]!==u?(f=(0,Z.jsx)(N.ToolbarButton,{label:p,compact:n,disabled:s.isRefreshing,testID:"changes-refresh",onPress:s.onRefresh,children:u}),t[6]=n,t[7]=s.isRefreshing,t[8]=s.onRefresh,t[9]=p,t[10]=u,t[11]=f):f=t[11],f}function Pe(e){const t=(0,o.c)(15),{options:s,compact:n}=e,{t:l}=(0,c.useTranslation)();let d;t[0]!==l?(d=l("workspace.git.diff.options"),t[0]=l,t[1]=d):d=t[1];const p=d;let u,f,h,b,x;return t[2]!==n?(u=(0,N.paneContentToolbarIconSize)(n),t[2]=n,t[3]=u):u=t[3],t[4]!==u?(f=(0,Z.jsx)(fe,{size:u,uniProps:$.extraMutedIconColorMapping}),t[4]=u,t[5]=f):f=t[5],t[6]!==n||t[7]!==p||t[8]!==f?(h=(0,Z.jsx)(N.ToolbarButton,{kind:"menu",label:p,compact:n,testID:"changes-options-menu",children:f}),t[6]=n,t[7]=p,t[8]=f,t[9]=h):h=t[9],t[10]!==s?(b=(0,Z.jsx)(M.DropdownMenuContent,{align:"end",width:240,testID:"changes-options-menu-content",children:(0,Z.jsx)(We,{options:s})}),t[10]=s,t[11]=b):b=t[11],t[12]!==h||t[13]!==b?(x=(0,Z.jsxs)(M.DropdownMenu,{children:[h,b]}),t[12]=h,t[13]=b,t[14]=x):x=t[14],x}function We(e){const t=(0,o.c)(28),{options:s}=e,{t:n}=(0,c.useTranslation)(),l=s.collapse?.allFilesCollapsed?"workspace.git.diff.expandAllFiles":"workspace.git.diff.collapseAllFiles";let d;t[0]!==n||t[1]!==l?(d=n(l),t[0]=n,t[1]=l,t[2]=d):d=t[2];const p=d;let u;t[3]!==s.hideWhitespace||t[4]!==n?(u=s.hideWhitespace?n("workspace.git.diff.showWhitespace"):n("workspace.git.diff.hideWhitespace"),t[3]=s.hideWhitespace,t[4]=n,t[5]=u):u=t[5];const f=u;let h;t[6]!==s.wrapLines||t[7]!==n?(h=s.wrapLines?n("workspace.git.diff.scrollLongLines"):n("workspace.git.diff.wrapLongLines"),t[6]=s.wrapLines,t[7]=n,t[8]=h):h=t[8];const b=h;let x,w,y,S,T;return t[9]!==p||t[10]!==s.collapse?(x=s.collapse?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(M.DropdownMenuItem,{leading:s.collapse.allFilesCollapsed?xe:be,testID:"changes-toggle-collapse-all",onSelect:s.collapse.allFilesCollapsed?s.collapse.onExpandAll:s.collapse.onCollapseAll,children:p}),(0,Z.jsx)(M.DropdownMenuSeparator,{})]}):null,t[9]=p,t[10]=s.collapse,t[11]=x):x=t[11],t[12]!==s.layout||t[13]!==n?(w=s.layout?(0,Z.jsx)(M.DropdownMenuItem,{leading:me,selected:"split"===s.layout.value,testID:"changes-toggle-layout",onSelect:s.layout.onToggle,children:n("workspace.git.diff.split")}):null,t[12]=s.layout,t[13]=n,t[14]=w):w=t[14],t[15]!==s.hideWhitespace||t[16]!==s.onToggleHideWhitespace||t[17]!==f?(y=(0,Z.jsx)(M.DropdownMenuItem,{leading:ge,selected:s.hideWhitespace,testID:"changes-toggle-whitespace",onSelect:s.onToggleHideWhitespace,children:f}),t[15]=s.hideWhitespace,t[16]=s.onToggleHideWhitespace,t[17]=f,t[18]=y):y=t[18],t[19]!==s.onToggleWrapLines||t[20]!==s.wrapLines||t[21]!==b?(S=(0,Z.jsx)(M.DropdownMenuItem,{leading:he,selected:s.wrapLines,testID:"changes-toggle-wrap-lines",onSelect:s.onToggleWrapLines,children:b}),t[19]=s.onToggleWrapLines,t[20]=s.wrapLines,t[21]=b,t[22]=S):S=t[22],t[23]!==x||t[24]!==w||t[25]!==y||t[26]!==S?(T=(0,Z.jsxs)(Z.Fragment,{children:[x,w,y,S]}),t[23]=x,t[24]=w,t[25]=y,t[26]=S,t[27]=T):T=t[27],T}const Ae=(0,f.withUnistyles)(b.RotateCw);function ze(e){const l=(0,o.c)(29),{isStatusLoading:c,statusErrorMessage:d,notGit:p,isDiffLoading:u,diffErrorMessage:f,diffTooLarge:h,hasChanges:b,emptyMessage:x,emptyAction:w,children:y,historyStatus:S,historyLoadingLabel:T,historyRetryLabel:C,onRetryHistory:j,checkingRepositoryLabel:I,notRepositoryLabel:L}=e;if(c){let e,o;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Z.jsx)(ne,{size:"large",uniProps:oe}),l[0]=e):e=l[0],l[1]!==I?(o=(0,Z.jsxs)(s.View,{style:qe.loadingContainer,children:[e,(0,Z.jsx)(t.Text,{style:qe.loadingText,children:I})]}),l[1]=I,l[2]=o):o=l[2],o}if(d){let e;return l[3]!==d?(e=(0,Z.jsx)(s.View,{style:qe.errorContainer,children:(0,Z.jsx)(t.Text,{style:qe.errorText,children:d})}),l[3]=d,l[4]=e):e=l[4],e}if(p){let e;return l[5]!==L?(e=(0,Z.jsx)(s.View,{style:qe.emptyContainer,testID:"changes-not-git",children:(0,Z.jsx)(t.Text,{style:qe.emptyText,children:L})}),l[5]=L,l[6]=e):e=l[6],e}if(u){let e,o,c;return l[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Z.jsx)(ne,{size:"large",uniProps:oe}),l[7]=e):e=l[7],l[8]!==T||l[9]!==S?(o=S===n.CheckoutDiffHistoryStatus.Fetching?(0,Z.jsx)(t.Text,{style:qe.loadingText,children:T}):null,l[8]=T,l[9]=S,l[10]=o):o=l[10],l[11]!==o?(c=(0,Z.jsxs)(s.View,{style:qe.loadingContainer,testID:"changes-loading",children:[e,o]}),l[11]=o,l[12]=c):c=l[12],c}if(h){let e;return l[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Z.jsx)(K.DiffTooLargeState,{}),l[13]=e):e=l[13],e}if(f){let e,o,n;return l[14]!==f?(e=(0,Z.jsx)(t.Text,{style:qe.errorText,children:f}),l[14]=f,l[15]=e):e=l[15],l[16]!==C||l[17]!==j?(o=j?(0,Z.jsx)(G.Button,{variant:"ghost",size:"xs",testID:"changes-deepen-history",onPress:j,children:C}):null,l[16]=C,l[17]=j,l[18]=o):o=l[18],l[19]!==e||l[20]!==o?(n=(0,Z.jsxs)(s.View,{style:qe.errorContainer,children:[e,o]}),l[19]=e,l[20]=o,l[21]=n):n=l[21],n}if(!b){let e,o,n;return l[22]!==x?(e=(0,Z.jsx)(t.Text,{style:qe.emptyText,children:x}),l[22]=x,l[23]=e):e=l[23],l[24]!==w?(o=w?(0,Z.jsx)(G.Button,{variant:"ghost",size:"xs",testID:"changes-empty-switch-mode",onPress:w.onPress,children:w.label}):null,l[24]=w,l[25]=o):o=l[25],l[26]!==e||l[27]!==o?(n=(0,Z.jsxs)(s.View,{style:qe.emptyContainer,children:[e,o]}),l[26]=e,l[27]=o,l[28]=n):n=l[28],n}return y}function Ue(e){return e?.baseRefLabel??e?.baseRef??null}function Ee(e){return e.isTurnSnapshotMissing?e.t("workspace.git.diff.noTurnSnapshot"):"last_turn"===e.diffMode?e.t("workspace.git.diff.noLastTurnChanges"):e.t("diffViewer.empty")}function Be(e){return e.hideWhitespace||!e.status?.isGit?null:"base"===e.diffMode&&e.status.isDirty?{label:e.seeUncommittedLabel,onPress:e.selectUncommitted}:"uncommitted"===e.diffMode&&(e.status.aheadBehind?.ahead??0)>0?{label:e.seeCommittedLabel,onPress:e.selectBase}:null}function He(e,t){return e?t?.message??null:null}function Ve(e){if("github"!==e.forge&&!e.forgeProvidersSupported)return null;switch(e.authState){case"cli_missing":return"install_cli";case"unauthenticated":return"sign_in";default:return null}}function Oe(e){if(!e.action)return null;const{brandLabel:t,signInCli:s}=(0,z.getForgePresentation)(e.forge);if(null===s)return e.t("workspace.git.forgeSetup.generic",{brand:t});if("install_cli"===e.action)return e.t("workspace.git.forgeSetup.installCli",{cli:s,brand:t});const o=(0,z.buildForgeSignInCommand)(e.forge,e.host);return e.t("workspace.git.forgeSetup.signIn",{command:o,brand:t})}function Ge(e,t,s=!1){return o=>[t,(0,N.paneContentToolbarIconButtonStyle)(o,e,s)]}function Ne(e){return e.isCompact&&"combined"===e.presentation?!e.hasChanges||e.isDiffLoading?0:S.JUMP_TO_FILE_CLEARANCE:0}function $e(e){const t=(0,o.c)(11),{shown:s,children:n,files:l,mode:c,onSelectFile:p,treeWidth:u,onTreeWidthChange:f,collapsedFolderPaths:h,onCollapsedFolderPathsChange:b}=e;if(!s)return n;const x=u??220;let w,S;return t[0]!==h||t[1]!==l||t[2]!==c||t[3]!==b||t[4]!==p?(w=(0,Z.jsx)(y.ChangedFilesTree,{files:l,mode:c,onSelectFile:p,collapsedFolderPaths:h,onCollapsedFolderPathsChange:b}),t[0]=h,t[1]=l,t[2]=c,t[3]=b,t[4]=p,t[5]=w):w=t[5],t[6]!==n||t[7]!==f||t[8]!==x||t[9]!==w?(S=(0,Z.jsxs)(d.TreeRail,{testID:"changes-tree-rail",width:x,onWidthChange:f,children:[n,w]}),t[6]=n,t[7]=f,t[8]=x,t[9]=w,t[10]=S):S=t[10],S}function Je(e){const t=(0,o.c)(16),{isLoading:s,errorMessage:n,presentation:l,children:c,desktopTreeVisible:d,isMobile:p,files:u,mode:f,onSelectFile:h,treeWidth:b,onTreeWidthChange:x,collapsedFolderPaths:w,onCollapsedFolderPathsChange:S}=e;if(s||n)return c;if("tree"===l){if(0===u.length)return c;let e;return t[0]!==w||t[1]!==u||t[2]!==f||t[3]!==S||t[4]!==h?(e=(0,Z.jsx)(y.ChangedFilesTree,{files:u,mode:f,onSelectFile:h,collapsedFolderPaths:w,onCollapsedFolderPathsChange:S}),t[0]=w,t[1]=u,t[2]=f,t[3]=S,t[4]=h,t[5]=e):e=t[5],e}if("diff"===l)return c;const T=d&&!p&&u.length>0;let C;return t[6]!==c||t[7]!==w||t[8]!==u||t[9]!==f||t[10]!==S||t[11]!==h||t[12]!==x||t[13]!==T||t[14]!==b?(C=(0,Z.jsx)($e,{shown:T,files:u,mode:f,onSelectFile:h,treeWidth:b,onTreeWidthChange:x,collapsedFolderPaths:w,onCollapsedFolderPathsChange:S,children:c}),t[6]=c,t[7]=w,t[8]=u,t[9]=f,t[10]=S,t[11]=h,t[12]=x,t[13]=T,t[14]=b,t[15]=C):C=t[15],C}const qe=f.StyleSheet.create(e=>({container:{flex:1,minHeight:0},changesToolbar:{flexDirection:"row",alignItems:"center",gap:e.spacing[2],paddingLeft:e.spacing[2],uni__dependencies:[0]},changesToolbarSidebar:{backgroundColor:e.colors.surfaceSidebar,uni__dependencies:[0]},changesToolbarIdentity:{flex:1,minWidth:0,flexDirection:"row",alignItems:"center",gap:e.spacing[1],uni__dependencies:[0]},changesToolbarControls:{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0},diffStatusIconHidden:{opacity:0},actionErrorText:{paddingHorizontal:e.spacing[3],paddingBottom:e.spacing[1],fontSize:e.fontSize.sm,color:e.colors.destructive,uni__dependencies:[0]},forgeSetupCallout:{marginHorizontal:e.spacing[3],marginBottom:e.spacing[2],paddingHorizontal:e.spacing[3],paddingVertical:e.spacing[2],borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius.md,backgroundColor:e.colors.surface1,uni__dependencies:[0]},forgeSetupCalloutText:{fontSize:e.fontSize.sm,color:e.colors.foregroundMuted,uni__dependencies:[0]},diffContainer:{flex:1,minHeight:0,position:"relative"},scrollContainer:{flex:1,minHeight:0,position:"relative"},loadingContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingTop:e.spacing[16],gap:e.spacing[4],uni__dependencies:[0]},loadingText:{fontSize:e.fontSize.base,color:e.colors.foregroundMuted,uni__dependencies:[0]},errorContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingTop:e.spacing[16],paddingHorizontal:e.spacing[6],uni__dependencies:[0]},errorText:{fontSize:e.fontSize.base,color:e.colors.destructive,textAlign:"center",uni__dependencies:[0]},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingTop:e.spacing[16],gap:e.spacing[2],uni__dependencies:[0]},emptyText:{fontSize:e.fontSize.base,color:e.colors.foregroundMuted,uni__dependencies:[0]},tooltipText:{fontSize:e.fontSize.sm,color:e.colors.foreground,uni__dependencies:[0]}}))},4638,[898,897,896,454,2977,37,854,4639,4641,4206,147,235,426,57,1217,1218,4642,4616,4643,4645,3874,4647,4652,4207,884,4649,3703,3884,4653,4334,3712,4654,4655,3850,3849,3770,3771,3868,894,3459,3541,3023,3022,4178,4049,4656,881,4605,4657,4333,3873,280]);
|
|
16293
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.resolveDiffLayout=ee,_e.DiffLayoutToggle=function(s){const n=(0,o.c)(19),{layout:l,isMobile:d,testID:p,toggleStyle:u,onToggle:f}=s,h=void 0===p?"changes-toggle-layout":p;let b;n[0]!==d?(b=Oe(!1,void 0,d),n[0]=d,n[1]=b):b=n[1];const x=b,{t:w}=(0,c.useTranslation)();let y;n[2]!==l||n[3]!==w?(y=w("unified"===l?"workspace.git.diff.switchToSplit":"workspace.git.diff.switchToUnified"),n[2]=l,n[3]=w,n[4]=y):y=n[4];const S=y,T=u??x;let C,j,I,L;n[5]!==d||n[6]!==l?(C="unified"===l?(0,Z.jsx)(re,{size:d?18:14,uniProps:oe}):(0,Z.jsx)(ie,{size:d?18:14,uniProps:oe}),n[5]=d,n[6]=l,n[7]=C):C=n[7];n[8]!==S||n[9]!==f||n[10]!==T||n[11]!==C||n[12]!==h?(j=(0,Z.jsx)(F.TooltipTrigger,{asChild:!0,children:(0,Z.jsx)(e.Pressable,{accessibilityRole:"button",accessibilityLabel:S,testID:h,onPress:f,style:T,children:C})}),n[8]=S,n[9]=f,n[10]=T,n[11]=C,n[12]=h,n[13]=j):j=n[13];n[14]!==S?(I=(0,Z.jsx)(F.TooltipContent,{side:"bottom",children:(0,Z.jsx)(t.Text,{style:Je.tooltipText,children:S})}),n[14]=S,n[15]=I):I=n[15];n[16]!==j||n[17]!==I?(L=(0,Z.jsxs)(F.Tooltip,{delayDuration:300,children:[j,I]}),n[16]=j,n[17]=I,n[18]=L):L=n[18];return L},_e.DiffModeMenu=Se,_e.ChangesDiffToolbar=ve,_e.ChangesSurface=function({serverId:e,workspaceId:o,cwd:n,enabled:d,presentation:p="combined",focusPath:u,focusRequestId:f,onOpenFile:b,onOpenToSide:y,onSelectDiffFile:C,onAddToChat:j,onRevealInExplorer:I,state:M,onStateChange:F}){const{settings:P}=(0,L.useAppSettings)(),{preferences:W,updatePreferences:z}=(0,k.useChangesPreferences)(),{t:V}=(0,c.useTranslation)(),O=(0,h.useIsCompactFormFactor)(),G=q.isWeb&&!O,N=M??x.defaultChangesState,$=F??pe,J=W.wrapLines,K=N.treeVisible,oe=ee(W.layout,G),ne=N.collapsedFilePaths,ie=(0,l.useCallback)(e=>$(Object.assign({},N,{collapsedFilePaths:e})),[N,$]),re=(0,l.useCallback)(e=>$(Object.assign({},N,{collapsedFolderPaths:e})),[N,$]),le=(0,l.useMemo)(()=>({paths:ne,onChange:ie}),[ne,ie]),ae=(0,l.useCallback)(()=>{z({wrapLines:!J})},[z,J]),ce=(0,l.useCallback)(()=>{z({hideWhitespace:!W.hideWhitespace})},[W.hideWhitespace,z]),de=(0,l.useCallback)(()=>{const e="unified"===W.layout?"split":"unified";z({layout:e})},[W.layout,z]),ue=P.codeFontSize,fe=(0,B.useToast)(),ge=(0,X.useRevealInFileManager)({serverId:e,workspaceRoot:n}),he=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.checkoutRefresh),me=(0,H.useSessionStore)(t=>t.sessions[e]?.client),be=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.fsEntryDuplicate),xe=(0,E.useCheckoutGitActionsStore)(e=>e.refresh),we="pending"===(0,E.useCheckoutGitActionsStore)(t=>t.getStatus({serverId:e,cwd:n,actionId:"refresh"})),ye=(0,l.useCallback)(()=>{we||xe({serverId:e,cwd:n}).catch(e=>{fe.error(e instanceof Error?e.message:V("workspace.git.diff.failedRefresh"))})},[n,we,xe,e,V,fe]),{status:Se,isStatusLoading:je,isGit:Ie,notGit:Le,statusErrorMessage:ke,currentBranchName:Me,diffMode:De,selectUncommitted:ve,selectBase:Re,selectAll:Fe,turnModes:Pe,commitRange:We,selectCommitRange:Oe,isTurnSnapshotMissing:Ne,files:qe,diffPayloadError:Qe,diffTooLarge:Ke,isDiffLoading:Xe,historyStatus:Ye,retryHistory:Ze,reviewActions:et,commentsCapabilityMissing:tt,onExpandGap:st,deferredFileLoads:ot,onLoadDeferredFile:nt}=(0,Q.useWorkingDiff)({serverId:e,workspaceId:o??void 0,cwd:n,ignoreWhitespace:W.hideWhitespace,enabled:!1!==d}),{githubFeaturesEnabled:it,forge:rt,authState:lt,payloadError:at}=(0,T.useCheckoutPrStatusQuery)({serverId:e,cwd:n,enabled:Ie}),ct=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.forgeProviders),dt=He({forge:rt,forgeProvidersSupported:ct,authState:lt}),pt=(0,l.useMemo)(()=>{return Ve({action:dt,forge:rt,host:(e=Se?.remoteUrl,e?(0,U.parseGitRemoteLocation)(e)?.host??null:null),t:V});var e},[dt,rt,Se?.remoteUrl,V]),ut=(0,l.useCallback)(()=>{$(Object.assign({},N,{treeVisible:!K}))},[K,N,$]),ft=(0,l.useCallback)(e=>$(Object.assign({},N,{treeWidth:e})),[N,$]),gt=(0,l.useMemo)(()=>({layout:oe,wrapLines:J,codeFontSize:ue,monoFontFamily:P.monoFontFamily}),[P.monoFontFamily,ue,oe,J]),ht=(0,v.useFileDownload)({serverId:e,workspaceId:o,workspaceRoot:n}),mt=(0,l.useCallback)(e=>{D.setStringAsync((0,R.buildAbsoluteExplorerPath)({workspaceRoot:n,entryPath:e}))},[n]),bt=(0,l.useCallback)(e=>{D.setStringAsync(e)},[]),xt=(0,l.useCallback)(e=>{ht({fileName:e.split("/").pop()??e,path:e})},[ht]),wt=(0,l.useCallback)(async e=>{if(me)try{const t=await me.duplicateFileEntry({cwd:n,path:e});t.success||fe.error(t.error??V("workspace.fileExplorer.errors.duplicateFailed"))}catch(e){fe.error(e instanceof Error?e.message:String(e))}},[me,n,V,fe]),yt=se({serverId:e,cwd:n,diffMode:De}),[St,Tt]=(0,l.useState)(null),Ct=(0,l.useMemo)(()=>u?{path:u,revision:f??0}:null,[u,f]),jt=St&&(!Ct||St.revision>=Ct.revision)?St:Ct,It=(0,l.useCallback)(e=>{"tree"===p&&C?C(e):Tt(t=>({path:e,revision:Math.max(Date.now(),(t?.revision??0)+1)}))},[C,p]),Lt=(0,l.useMemo)(()=>({kind:"working",reviewActions:et,focusPath:jt?.path,focusRequestId:jt?.revision,workspaceFileDragScope:o?{serverId:e,workspaceId:o}:void 0,onOpenFile:b,onOpenToSide:y,onAddToChat:j,onCopyPath:mt,onCopyRelativePath:bt,onReveal:ge?.reveal,onRevealInExplorer:I,revealTargetName:ge?.targetName,onDownload:xt,onDuplicate:be?wt:void 0,onRevert:yt}),[et,jt?.path,jt?.revision,e,o,b,y,j,I,mt,bt,xt,wt,ge,be,yt]),kt=qe.length>0,Mt=Ge({isCompact:O,presentation:p,hasChanges:kt,isDiffLoading:Xe}),Dt=Mt>0,vt=(0,l.useMemo)(()=>te(qe,Xe),[qe,Xe]),Rt=kt&&qe.every(e=>ne.includes(e.path)),Ft=(0,l.useCallback)(()=>ie(qe.map(e=>e.path)),[qe,ie]),Pt=(0,l.useCallback)(()=>ie([]),[ie]),Wt=Qe?.message??null,At=Be(it,at),_t=ze(Se),{gitActions:zt}=(0,A.useGitActions)({serverId:e,cwd:n,icons:_.GIT_ACTION_ICONS}),Ut=Ue({diffMode:De,isTurnSnapshotMissing:Ne,t:V}),Et=Ee({hideWhitespace:W.hideWhitespace,diffMode:De,status:Se,seeUncommittedLabel:V("workspace.git.diff.seeUncommittedChanges"),seeCommittedLabel:V("workspace.git.diff.seeCommittedChanges"),selectUncommitted:ve,selectBase:Re}),Bt=(0,Z.jsx)(Ae,{isStatusLoading:je,statusErrorMessage:ke,notGit:Le,isDiffLoading:Xe,historyStatus:Ye,historyLoadingLabel:V("workspace.git.diff.fetchingHistory"),historyRetryLabel:V("workspace.git.diff.fetchMoreHistory"),onRetryHistory:Ze,diffErrorMessage:Wt,diffTooLarge:Ke,hasChanges:kt,emptyMessage:Ut,emptyAction:Et,checkingRepositoryLabel:V("workspace.git.diff.checkingRepository"),notRepositoryLabel:V("workspace.git.diff.notRepository"),children:(0,Z.jsx)(w.DiffDocument,{files:qe,contentInsetBottom:Mt,collapseState:le,displayPreferences:gt,mode:Lt,onExpandGap:st,deferredFileLoads:ot,onLoadDeferredFile:nt})}),Ht=(0,Z.jsx)($e,{isLoading:Xe,errorMessage:Wt,presentation:p,desktopTreeVisible:K,isMobile:O,files:qe,mode:Lt,onSelectFile:It,treeWidth:N.treeWidth,onTreeWidthChange:ft,collapsedFolderPaths:N.collapsedFolderPaths,onCollapsedFolderPathsChange:re,children:Bt}),Vt=(0,l.useMemo)(()=>Te({presentation:p,compact:O,hasChanges:kt,canUseSplitLayout:G,refreshSupported:he,isRefreshing:we,layout:W.layout,hideWhitespace:W.hideWhitespace,wrapLines:J,treeVisible:K,onRefresh:ye,onCollapseAll:Ft,onExpandAll:Pt,allFilesCollapsed:Rt,onToggleLayout:de,onToggleHideWhitespace:ce,onToggleWrapLines:ae,onToggleTree:ut}),[Rt,G,K,Ft,Pt,ye,ut,ce,de,ae,kt,W.hideWhitespace,W.layout,O,we,p,he,J]),Ot=(0,l.useMemo)(()=>Oe?{serverId:e,cwd:n,selected:We,select:Oe}:null,[We,n,Oe,e]),Gt=(0,l.useMemo)(()=>{return{repository:{baseRefLabel:(t={baseRefLabel:_t,branchName:Me,compact:O,cwd:n,diffMode:De,turnModes:Pe,commitRanges:Ot,gitActions:zt,mode:Vt,onSelectBase:Re,onSelectAll:Fe,onSelectUncommitted:ve,selectedDiffStat:vt,serverId:e,workspaceId:o}).baseRefLabel,branchName:t.branchName,cwd:t.cwd,gitActions:t.compact&&!(0,Y.isSnapshotDiffComparison)(t.diffMode)?t.gitActions:null,serverId:t.serverId,workspaceId:t.workspaceId},comparison:{diffMode:t.diffMode,turnModes:t.turnModes,commitRanges:t.commitRanges,mode:t.mode,selectedDiffStat:t.selectedDiffStat,onSelectBase:t.onSelectBase,onSelectAll:t.onSelectAll,onSelectUncommitted:t.onSelectUncommitted}};var t},[_t,Me,n,De,Pe,Ot,zt,Re,Fe,ve,O,vt,e,Vt,o]);return(0,Z.jsxs)(s.View,{onContextMenu:e=>e.preventDefault?.(),style:Je.container,children:[Ie?(0,Z.jsx)(Ce,{compact:O,repository:Gt.repository,comparison:Gt.comparison,sidebarSurface:"tree"===p}):null,pt?(0,Z.jsx)(s.View,{style:Je.forgeSetupCallout,testID:"forge-setup-callout",children:(0,Z.jsx)(t.Text,{style:Je.forgeSetupCalloutText,children:pt})}):null,At?(0,Z.jsx)(t.Text,{style:Je.actionErrorText,children:At}):null,tt?(0,Z.jsx)(s.View,{style:Je.forgeSetupCallout,testID:"last-turn-comments-capability-missing",children:(0,Z.jsx)(t.Text,{style:Je.forgeSetupCalloutText,children:V("panels.diff.commentsCapabilityMissing")})}):null,(0,Z.jsxs)(s.View,{style:Je.diffContainer,children:[Ht,Dt?(0,Z.jsx)(S.JumpToFile,{files:qe,mode:Lt,onSelectFile:It}):null]})]})};var e=r(_d[0]),t=r(_d[1]),s=r(_d[2]),o=r(_d[3]),n=r(_d[4]),l=r(_d[5]),c=r(_d[6]),d=r(_d[7]),p=r(_d[8]),u=r(_d[9]);r(_d[10]),r(_d[11]),r(_d[12]);var f=r(_d[13]),h=r(_d[14]),b=r(_d[15]),x=r(_d[16]),w=r(_d[17]),y=r(_d[18]),S=r(_d[19]),T=r(_d[20]),C=r(_d[21]),j=r(_d[22]),I=r(_d[23]),L=r(_d[24]),k=r(_d[25]),M=r(_d[26]),D=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[27])),v=r(_d[28]),R=r(_d[29]),F=r(_d[30]),P=r(_d[31]),W=r(_d[32]),A=r(_d[33]),_=r(_d[34]),z=r(_d[35]),U=r(_d[36]),E=r(_d[37]),B=r(_d[38]),H=r(_d[39]),V=r(_d[40]),O=r(_d[41]),G=r(_d[42]),N=r(_d[43]),$=r(_d[44]),J=r(_d[45]),q=r(_d[46]),Q=r(_d[47]),K=r(_d[48]),X=r(_d[49]),Y=r(_d[50]),Z=r(_d[51]);function ee(e,t){return t?e:"unified"}function te(e,t){return t?null:(0,I.sumDiffStat)(e)}function se({serverId:e,cwd:t,diffMode:s}){const{t:o}=(0,c.useTranslation)(),n=(0,B.useToast)(),d=(0,E.useCheckoutGitActionsStore)(e=>e.discardChanges),p=(0,H.useSessionStore)(t=>!0===t.sessions[e]?.serverInfo?.features?.checkoutDiscardChanges),u=(0,l.useCallback)(async(s,l)=>{if(await(0,V.confirmDialog)({title:o("workspace.fileActions.confirmRevert.title"),message:o("workspace.fileActions.confirmRevert.message",{name:s}),confirmLabel:o("workspace.fileActions.confirmRevert.confirm"),cancelLabel:o("workspace.fileActions.confirmRevert.cancel"),destructive:!0}))try{await d({serverId:e,cwd:t,paths:l?[s,l]:[s]})}catch(e){n.error(e instanceof Error?e.message:o("workspace.fileActions.confirmRevert.failed"))}},[t,d,e,o,n]),f=(0,l.useCallback)((e,t)=>{u(e,t)},[u]);return p&&"uncommitted"===s?f:void 0}const oe=e=>({color:e.colors.foregroundMuted}),ne=(0,f.withUnistyles)(O.LoadingSpinner),ie=(0,f.withUnistyles)(b.AlignJustify),re=(0,f.withUnistyles)(b.Columns2),le=(0,f.withUnistyles)(b.Pilcrow),ae=(0,f.withUnistyles)(b.WrapText),ce=(0,f.withUnistyles)(b.ListChevronsDownUp),de=(0,f.withUnistyles)(b.ListChevronsUpDown),pe=()=>{},ue=(0,f.withUnistyles)(b.ChevronDown),fe=(0,f.withUnistyles)(b.MoreHorizontal),ge=(0,Z.jsx)(le,{size:14,uniProps:oe}),he=(0,Z.jsx)(ae,{size:14,uniProps:oe}),me=(0,Z.jsx)(re,{size:14,uniProps:oe}),be=(0,Z.jsx)(ce,{size:14,uniProps:oe}),xe=(0,Z.jsx)(de,{size:14,uniProps:oe});const we={uncommitted:"workspace.git.diff.uncommitted",base:"workspace.git.diff.committed",last_turn:"workspace.git.diff.lastTurn",[Y.LiveDiffComparison.All]:"workspace.git.diff.allChanges"};function ye(e){const t=(0,o.c)(13),{t:s}=(0,c.useTranslation)(),{diffMode:n,commitRanges:l}=e,d="commit_range"===n?l?.selected:void 0,p=l?.serverId??"",u=l?.cwd??"",f=Boolean(d);let h;t[0]!==p||t[1]!==u||t[2]!==f?(h={serverId:p,cwd:u,enabled:f},t[0]=p,t[1]=u,t[2]=f,t[3]=h):h=t[3];const{shas:b}=(0,C.useWorkspaceCommits)(h);if("commit_range"!==n){const e=we[n];let o;return t[4]!==s||t[5]!==e?(o=s(e),t[4]=s,t[5]=e,t[6]=o):o=t[6],o}if(!d){let e;return t[7]!==s?(e=s("workspace.git.diff.committed"),t[7]=s,t[8]=e):e=t[8],e}let x;if(t[9]!==d||t[10]!==b||t[11]!==s){const e=(0,j.commitRangeSpan)(b,d);x=(0,C.formatCommitRange)({t:s,range:d,count:e&&e.oldest-e.newest+1}),t[9]=d,t[10]=b,t[11]=s,t[12]=x}else x=t[12];return x}function Se(e){const s=(0,o.c)(48),{diffMode:n,testIDPrefix:l,onSelectUncommitted:d,onSelectBase:p,onSelectAll:u,turnModes:f,commitRanges:h}=e,b=void 0===l?"changes-diff":l,{t:x}=(0,c.useTranslation)();let w;s[0]!==h||s[1]!==n?(w={diffMode:n,commitRanges:h},s[0]=h,s[1]=n,s[2]=w):w=s[2];const y=ye(w),S=`${b}-status-trigger`;let T,j,I;s[3]!==x?(T=x("workspace.git.diff.diffMode"),s[3]=x,s[4]=T):T=s[4],s[5]!==y?(j=e=>{const s=(0,J.isToolbarLabelTriggerHighlighted)(e);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(t.Text,{style:(0,J.toolbarLabelTriggerTextStyle)(s),numberOfLines:1,children:y}),(0,Z.jsx)(J.ToolbarLabelTriggerIcon,{children:(0,Z.jsx)(ue,{size:12,uniProps:$.extraMutedIconColorMapping})})]})},s[5]=y,s[6]=j):j=s[6],s[7]!==S||s[8]!==T||s[9]!==j?(I=(0,Z.jsx)(M.DropdownMenuTrigger,{testID:S,style:J.toolbarLabelTriggerStyle,accessibilityRole:"button",accessibilityLabel:T,children:j}),s[7]=S,s[8]=T,s[9]=j,s[10]=I):I=s[10];const L=h?380:260,k=`${b}-status-menu`,D=`${b}-mode-uncommitted`,v="uncommitted"===n;let R,F;s[11]!==x?(R=x(we.uncommitted),s[11]=x,s[12]=R):R=s[12],s[13]!==d||s[14]!==v||s[15]!==R||s[16]!==D?(F=(0,Z.jsx)(M.DropdownMenuItem,{testID:D,selected:v,onSelect:d,children:R}),s[13]=d,s[14]=v,s[15]=R,s[16]=D,s[17]=F):F=s[17];const P=`${b}-mode-committed`,W="base"===n;let A,_,z,U,E,B,H;return s[18]!==x?(A=x(we.base),s[18]=x,s[19]=A):A=s[19],s[20]!==p||s[21]!==P||s[22]!==W||s[23]!==A?(_=(0,Z.jsx)(M.DropdownMenuItem,{testID:P,selected:W,onSelect:p,children:A}),s[20]=p,s[21]=P,s[22]=W,s[23]=A,s[24]=_):_=s[24],s[25]!==n||s[26]!==u||s[27]!==x||s[28]!==b?(z=u?(0,Z.jsx)(M.DropdownMenuItem,{testID:`${b}-mode-all`,selected:n===Y.LiveDiffComparison.All,onSelect:u,children:x(we[Y.LiveDiffComparison.All])}):null,s[25]=n,s[26]=u,s[27]=x,s[28]=b,s[29]=z):z=s[29],s[30]!==n||s[31]!==x||s[32]!==b||s[33]!==f?(U=f?(0,Z.jsx)(M.DropdownMenuItem,{testID:`${b}-mode-last-turn`,selected:"last_turn"===n,onSelect:f.selectLastTurn,children:x(we.last_turn)}):null,s[30]=n,s[31]=x,s[32]=b,s[33]=f,s[34]=U):U=s[34],s[35]!==h?(E=h?(0,Z.jsx)(C.CommitRangeMenuSection,{serverId:h.serverId,cwd:h.cwd,selected:h.selected,onSave:h.select}):null,s[35]=h,s[36]=E):E=s[36],s[37]!==F||s[38]!==_||s[39]!==z||s[40]!==U||s[41]!==E||s[42]!==L||s[43]!==k?(B=(0,Z.jsxs)(M.DropdownMenuContent,{align:"start",width:L,testID:k,children:[F,_,z,U,E]}),s[37]=F,s[38]=_,s[39]=z,s[40]=U,s[41]=E,s[42]=L,s[43]=k,s[44]=B):B=s[44],s[45]!==B||s[46]!==I?(H=(0,Z.jsxs)(M.DropdownMenu,{children:[I,B]}),s[45]=B,s[46]=I,s[47]=H):H=s[47],H}function Te(e){const t=e.refreshSupported?{isRefreshing:e.isRefreshing,onRefresh:e.onRefresh}:null;if("tree"===e.presentation)return{kind:"tree",refresh:t};const s={collapse:e.hasChanges?{allFilesCollapsed:e.allFilesCollapsed,onCollapseAll:e.onCollapseAll,onExpandAll:e.onExpandAll}:null,layout:e.canUseSplitLayout?{value:e.layout,onToggle:e.onToggleLayout}:null,hideWhitespace:e.hideWhitespace,wrapLines:e.wrapLines,onToggleHideWhitespace:e.onToggleHideWhitespace,onToggleWrapLines:e.onToggleWrapLines};return"diff"===e.presentation?{kind:"diff",options:s,refresh:t}:{kind:"combined",options:s,refresh:t,treeToggle:!e.compact&&e.hasChanges?{visible:e.treeVisible,onToggle:e.onToggleTree}:null}}function Ce(e){const t=(0,o.c)(15),{compact:n,repository:l,comparison:c,sidebarSurface:d}=e;if("diff"===c.mode.kind){let e;return t[0]!==n||t[1]!==c||t[2]!==d?(e=(0,Z.jsx)(Me,{compact:n,model:c,sidebarSurface:d}),t[0]=n,t[1]=c,t[2]=d,t[3]=e):e=t[3],e}let p,u,f;return t[4]!==n||t[5]!==l||t[6]!==d?(p=(0,Z.jsx)(ke,{compact:n,model:l,sidebarSurface:d}),t[4]=n,t[5]=l,t[6]=d,t[7]=p):p=t[7],t[8]!==n||t[9]!==c||t[10]!==d?(u=(0,Z.jsx)(Me,{compact:n,model:c,sidebarSurface:d}),t[8]=n,t[9]=c,t[10]=d,t[11]=u):u=t[11],t[12]!==p||t[13]!==u?(f=(0,Z.jsxs)(s.View,{children:[p,u]}),t[12]=p,t[13]=u,t[14]=f):f=t[14],f}function je(e){const t=(0,o.c)(12),{children:s,compact:n,sidebarSurface:l,testID:c,trailing:d}=e;let p,u;t[0]!==n||t[1]!==d?(p=(0,N.paneContentToolbarTrailingPadding)(n,d),t[0]=n,t[1]=d,t[2]=p):p=t[2],t[3]!==p?(u={paddingRight:p},t[3]=p,t[4]=u):u=t[4];const f=l?Je.changesToolbarSidebar:null;let h;t[5]!==u||t[6]!==f?(h=[Je.changesToolbar,u,f],t[5]=u,t[6]=f,t[7]=h):h=t[7];const b=h;let x;return t[8]!==s||t[9]!==c||t[10]!==b?(x=(0,Z.jsx)(N.PaneContentToolbar,{style:b,testID:c,children:s}),t[8]=s,t[9]=c,t[10]=b,t[11]=x):x=t[11],x}function Ie(e){const t=(0,o.c)(2),{children:n}=e;let l;return t[0]!==n?(l=(0,Z.jsx)(s.View,{style:Je.changesToolbarIdentity,children:n}),t[0]=n,t[1]=l):l=t[1],l}function Le(e){const t=(0,o.c)(2),{children:s}=e;let n;return t[0]!==s?(n=(0,Z.jsx)(N.ToolbarControls,{style:Je.changesToolbarControls,children:s}),t[0]=s,t[1]=n):n=t[1],n}function ke(e){const n=(0,o.c)(25),{compact:l,model:d,sidebarSurface:p}=e,{t:u}=(0,c.useTranslation)(),f=d.gitActions?"framed":"glyph";let h,b,x,w,y,S,T,C,j;return n[0]===Symbol.for("react.memo_cache_sentinel")?(h=(0,J.toolbarLabelTriggerFrameStyle)(),n[0]=h):h=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(b=(0,J.toolbarLabelTriggerTextStyle)(!1),n[1]=b):b=n[1],n[2]!==d.branchName||n[3]!==u?(x=d.branchName??u("branchSwitcher.detachedHead"),n[2]=d.branchName,n[3]=u,n[4]=x):x=n[4],n[5]!==x?(w=(0,Z.jsx)(s.View,{style:h,children:(0,Z.jsx)(t.Text,{testID:"changes-current-branch",style:b,numberOfLines:1,children:x})}),n[5]=x,n[6]=w):w=n[6],n[7]!==d.baseRefLabel||n[8]!==d.cwd||n[9]!==d.serverId||n[10]!==d.workspaceId?(y=d.baseRefLabel?(0,Z.jsx)(W.BaseRefSwitcher,{baseRefLabel:d.baseRefLabel,serverId:d.serverId,workspaceId:d.workspaceId??d.cwd,cwd:d.cwd}):null,n[7]=d.baseRefLabel,n[8]=d.cwd,n[9]=d.serverId,n[10]=d.workspaceId,n[11]=y):y=n[11],n[12]!==w||n[13]!==y?(S=(0,Z.jsxs)(Ie,{children:[w,y]}),n[12]=w,n[13]=y,n[14]=S):S=n[14],n[15]!==d.gitActions?(T=d.gitActions?(0,Z.jsx)(P.GitActionsSplitButton,{gitActions:d.gitActions,menuOnly:!0}):null,n[15]=d.gitActions,n[16]=T):T=n[16],n[17]!==T?(C=(0,Z.jsx)(Le,{children:T}),n[17]=T,n[18]=C):C=n[18],n[19]!==l||n[20]!==p||n[21]!==f||n[22]!==S||n[23]!==C?(j=(0,Z.jsxs)(je,{compact:l,sidebarSurface:p,testID:"changes-repository-header",trailing:f,children:[S,C]}),n[19]=l,n[20]=p,n[21]=f,n[22]=S,n[23]=C,n[24]=j):j=n[24],j}function Me(e){const t=(0,o.c)(20),{compact:s,model:n,sidebarSurface:l}=e;let c,d,p,f,h;return t[0]!==n.commitRanges||t[1]!==n.diffMode||t[2]!==n.onSelectAll||t[3]!==n.onSelectBase||t[4]!==n.onSelectUncommitted||t[5]!==n.turnModes?(c=(0,Z.jsx)(Se,{diffMode:n.diffMode,onSelectUncommitted:n.onSelectUncommitted,onSelectBase:n.onSelectBase,onSelectAll:n.onSelectAll,turnModes:n.turnModes,commitRanges:n.commitRanges}),t[0]=n.commitRanges,t[1]=n.diffMode,t[2]=n.onSelectAll,t[3]=n.onSelectBase,t[4]=n.onSelectUncommitted,t[5]=n.turnModes,t[6]=c):c=t[6],t[7]!==n.selectedDiffStat?(d=n.selectedDiffStat?(0,Z.jsx)(u.DiffStat,{additions:n.selectedDiffStat.additions,deletions:n.selectedDiffStat.deletions,testID:"changes-selected-diff-stat"}):null,t[7]=n.selectedDiffStat,t[8]=d):d=t[8],t[9]!==c||t[10]!==d?(p=(0,Z.jsxs)(Ie,{children:[c,d]}),t[9]=c,t[10]=d,t[11]=p):p=t[11],t[12]!==s||t[13]!==n.mode?(f=(0,Z.jsx)(Le,{children:(0,Z.jsx)(De,{mode:n.mode,compact:s})}),t[12]=s,t[13]=n.mode,t[14]=f):f=t[14],t[15]!==s||t[16]!==l||t[17]!==p||t[18]!==f?(h=(0,Z.jsxs)(je,{compact:s,sidebarSurface:l,testID:"changes-header",trailing:"glyph",children:[p,f]}),t[15]=s,t[16]=l,t[17]=p,t[18]=f,t[19]=h):h=t[19],h}function De(e){const t=(0,o.c)(24),{mode:s,compact:n}=e;if("tree"===s.kind){let e;return t[0]!==n||t[1]!==s.refresh?(e=s.refresh?(0,Z.jsx)(Re,{refresh:s.refresh,compact:n}):null,t[0]=n,t[1]=s.refresh,t[2]=e):e=t[2],e}if("diff"===s.kind){let e,o,l;return t[3]!==n||t[4]!==s.options?(e=(0,Z.jsx)(ve,{options:s.options,compact:n}),t[3]=n,t[4]=s.options,t[5]=e):e=t[5],t[6]!==n||t[7]!==s.refresh?(o=s.refresh?(0,Z.jsx)(Re,{refresh:s.refresh,compact:n}):null,t[6]=n,t[7]=s.refresh,t[8]=o):o=t[8],t[9]!==e||t[10]!==o?(l=(0,Z.jsxs)(Z.Fragment,{children:[e,o]}),t[9]=e,t[10]=o,t[11]=l):l=t[11],l}let l,c,d,u;return t[12]!==s.treeToggle?(l=s.treeToggle?(0,Z.jsx)(p.TreeRailToggle,{visible:s.treeToggle.visible,testID:"changes-toggle-tree",onToggle:s.treeToggle.onToggle}):null,t[12]=s.treeToggle,t[13]=l):l=t[13],t[14]!==n||t[15]!==s.options?(c=(0,Z.jsx)(Fe,{options:s.options,compact:n}),t[14]=n,t[15]=s.options,t[16]=c):c=t[16],t[17]!==n||t[18]!==s.refresh?(d=s.refresh?(0,Z.jsx)(Re,{refresh:s.refresh,compact:n}):null,t[17]=n,t[18]=s.refresh,t[19]=d):d=t[19],t[20]!==l||t[21]!==c||t[22]!==d?(u=(0,Z.jsxs)(Z.Fragment,{children:[l,c,d]}),t[20]=l,t[21]=c,t[22]=d,t[23]=u):u=t[23],u}function ve(e){const t=(0,o.c)(45),{options:s,compact:n}=e,{t:l}=(0,c.useTranslation)();let d;t[0]!==n?(d=(0,N.paneContentToolbarIconSize)(n),t[0]=n,t[1]=d):d=t[1];const p=d,u=s.collapse?.allFilesCollapsed?"workspace.git.diff.expandAllFiles":"workspace.git.diff.collapseAllFiles";let f;t[2]!==l||t[3]!==u?(f=l(u),t[2]=l,t[3]=u,t[4]=f):f=t[4];const h=f;let b;t[5]!==s.hideWhitespace||t[6]!==l?(b=s.hideWhitespace?l("workspace.git.diff.showWhitespace"):l("workspace.git.diff.hideWhitespace"),t[5]=s.hideWhitespace,t[6]=l,t[7]=b):b=t[7];const x=b;let w;t[8]!==s.wrapLines||t[9]!==l?(w=s.wrapLines?l("workspace.git.diff.scrollLongLines"):l("workspace.git.diff.wrapLongLines"),t[8]=s.wrapLines,t[9]=l,t[10]=w):w=t[10];const y=w;let S;t[11]!==s.layout?.value||t[12]!==l?(S="split"===s.layout?.value?l("workspace.git.diff.switchToUnified"):l("workspace.git.diff.switchToSplit"),t[11]=s.layout?.value,t[12]=l,t[13]=S):S=t[13];const T=S;let C,j,I,L,k,M,D;return t[14]!==h||t[15]!==n||t[16]!==p||t[17]!==s.collapse?(C=s.collapse?(0,Z.jsx)(N.ToolbarButton,{compact:n,label:h,testID:"changes-toggle-collapse-all",onPress:s.collapse.allFilesCollapsed?s.collapse.onExpandAll:s.collapse.onCollapseAll,children:s.collapse.allFilesCollapsed?(0,Z.jsx)(de,{size:p,uniProps:$.extraMutedIconColorMapping}):(0,Z.jsx)(ce,{size:p,uniProps:$.extraMutedIconColorMapping})}):null,t[14]=h,t[15]=n,t[16]=p,t[17]=s.collapse,t[18]=C):C=t[18],t[19]!==n||t[20]!==p||t[21]!==T||t[22]!==s.layout?(j=s.layout?(0,Z.jsx)(N.ToolbarButton,{compact:n,label:T,selected:"split"===s.layout.value,testID:"changes-toggle-layout",onPress:s.layout.onToggle,children:(0,Z.jsx)(re,{size:p,uniProps:$.extraMutedIconColorMapping})}):null,t[19]=n,t[20]=p,t[21]=T,t[22]=s.layout,t[23]=j):j=t[23],t[24]!==p?(I=(0,Z.jsx)(le,{size:p,uniProps:$.extraMutedIconColorMapping}),t[24]=p,t[25]=I):I=t[25],t[26]!==n||t[27]!==s.hideWhitespace||t[28]!==s.onToggleHideWhitespace||t[29]!==I||t[30]!==x?(L=(0,Z.jsx)(N.ToolbarButton,{compact:n,label:x,selected:s.hideWhitespace,testID:"changes-toggle-whitespace",onPress:s.onToggleHideWhitespace,children:I}),t[26]=n,t[27]=s.hideWhitespace,t[28]=s.onToggleHideWhitespace,t[29]=I,t[30]=x,t[31]=L):L=t[31],t[32]!==p?(k=(0,Z.jsx)(ae,{size:p,uniProps:$.extraMutedIconColorMapping}),t[32]=p,t[33]=k):k=t[33],t[34]!==n||t[35]!==s.onToggleWrapLines||t[36]!==s.wrapLines||t[37]!==k||t[38]!==y?(M=(0,Z.jsx)(N.ToolbarButton,{compact:n,label:y,selected:s.wrapLines,testID:"changes-toggle-wrap-lines",onPress:s.onToggleWrapLines,children:k}),t[34]=n,t[35]=s.onToggleWrapLines,t[36]=s.wrapLines,t[37]=k,t[38]=y,t[39]=M):M=t[39],t[40]!==L||t[41]!==M||t[42]!==C||t[43]!==j?(D=(0,Z.jsxs)(Z.Fragment,{children:[C,j,L,M]}),t[40]=L,t[41]=M,t[42]=C,t[43]=j,t[44]=D):D=t[44],D}function Re(e){const t=(0,o.c)(12),{refresh:s,compact:n}=e,{t:l}=(0,c.useTranslation)();let d;t[0]!==s.isRefreshing||t[1]!==l?(d=s.isRefreshing?l("workspace.git.diff.refreshing"):l("workspace.git.diff.refresh"),t[0]=s.isRefreshing,t[1]=l,t[2]=d):d=t[2];const p=d;let u,f;return t[3]!==n||t[4]!==s.isRefreshing?(u=s.isRefreshing?(0,Z.jsx)(ne,{size:(0,N.paneContentToolbarIconSize)(n),uniProps:$.extraMutedIconColorMapping}):(0,Z.jsx)(We,{size:(0,N.paneContentToolbarIconSize)(n),uniProps:$.extraMutedIconColorMapping}),t[3]=n,t[4]=s.isRefreshing,t[5]=u):u=t[5],t[6]!==n||t[7]!==s.isRefreshing||t[8]!==s.onRefresh||t[9]!==p||t[10]!==u?(f=(0,Z.jsx)(N.ToolbarButton,{label:p,compact:n,disabled:s.isRefreshing,testID:"changes-refresh",onPress:s.onRefresh,children:u}),t[6]=n,t[7]=s.isRefreshing,t[8]=s.onRefresh,t[9]=p,t[10]=u,t[11]=f):f=t[11],f}function Fe(e){const t=(0,o.c)(15),{options:s,compact:n}=e,{t:l}=(0,c.useTranslation)();let d;t[0]!==l?(d=l("workspace.git.diff.options"),t[0]=l,t[1]=d):d=t[1];const p=d;let u,f,h,b,x;return t[2]!==n?(u=(0,N.paneContentToolbarIconSize)(n),t[2]=n,t[3]=u):u=t[3],t[4]!==u?(f=(0,Z.jsx)(fe,{size:u,uniProps:$.extraMutedIconColorMapping}),t[4]=u,t[5]=f):f=t[5],t[6]!==n||t[7]!==p||t[8]!==f?(h=(0,Z.jsx)(N.ToolbarButton,{kind:"menu",label:p,compact:n,testID:"changes-options-menu",children:f}),t[6]=n,t[7]=p,t[8]=f,t[9]=h):h=t[9],t[10]!==s?(b=(0,Z.jsx)(M.DropdownMenuContent,{align:"end",width:240,testID:"changes-options-menu-content",children:(0,Z.jsx)(Pe,{options:s})}),t[10]=s,t[11]=b):b=t[11],t[12]!==h||t[13]!==b?(x=(0,Z.jsxs)(M.DropdownMenu,{children:[h,b]}),t[12]=h,t[13]=b,t[14]=x):x=t[14],x}function Pe(e){const t=(0,o.c)(28),{options:s}=e,{t:n}=(0,c.useTranslation)(),l=s.collapse?.allFilesCollapsed?"workspace.git.diff.expandAllFiles":"workspace.git.diff.collapseAllFiles";let d;t[0]!==n||t[1]!==l?(d=n(l),t[0]=n,t[1]=l,t[2]=d):d=t[2];const p=d;let u;t[3]!==s.hideWhitespace||t[4]!==n?(u=s.hideWhitespace?n("workspace.git.diff.showWhitespace"):n("workspace.git.diff.hideWhitespace"),t[3]=s.hideWhitespace,t[4]=n,t[5]=u):u=t[5];const f=u;let h;t[6]!==s.wrapLines||t[7]!==n?(h=s.wrapLines?n("workspace.git.diff.scrollLongLines"):n("workspace.git.diff.wrapLongLines"),t[6]=s.wrapLines,t[7]=n,t[8]=h):h=t[8];const b=h;let x,w,y,S,T;return t[9]!==p||t[10]!==s.collapse?(x=s.collapse?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(M.DropdownMenuItem,{leading:s.collapse.allFilesCollapsed?xe:be,testID:"changes-toggle-collapse-all",onSelect:s.collapse.allFilesCollapsed?s.collapse.onExpandAll:s.collapse.onCollapseAll,children:p}),(0,Z.jsx)(M.DropdownMenuSeparator,{})]}):null,t[9]=p,t[10]=s.collapse,t[11]=x):x=t[11],t[12]!==s.layout||t[13]!==n?(w=s.layout?(0,Z.jsx)(M.DropdownMenuItem,{leading:me,selected:"split"===s.layout.value,testID:"changes-toggle-layout",onSelect:s.layout.onToggle,children:n("workspace.git.diff.split")}):null,t[12]=s.layout,t[13]=n,t[14]=w):w=t[14],t[15]!==s.hideWhitespace||t[16]!==s.onToggleHideWhitespace||t[17]!==f?(y=(0,Z.jsx)(M.DropdownMenuItem,{leading:ge,selected:s.hideWhitespace,testID:"changes-toggle-whitespace",onSelect:s.onToggleHideWhitespace,children:f}),t[15]=s.hideWhitespace,t[16]=s.onToggleHideWhitespace,t[17]=f,t[18]=y):y=t[18],t[19]!==s.onToggleWrapLines||t[20]!==s.wrapLines||t[21]!==b?(S=(0,Z.jsx)(M.DropdownMenuItem,{leading:he,selected:s.wrapLines,testID:"changes-toggle-wrap-lines",onSelect:s.onToggleWrapLines,children:b}),t[19]=s.onToggleWrapLines,t[20]=s.wrapLines,t[21]=b,t[22]=S):S=t[22],t[23]!==x||t[24]!==w||t[25]!==y||t[26]!==S?(T=(0,Z.jsxs)(Z.Fragment,{children:[x,w,y,S]}),t[23]=x,t[24]=w,t[25]=y,t[26]=S,t[27]=T):T=t[27],T}const We=(0,f.withUnistyles)(b.RotateCw);function Ae(e){const l=(0,o.c)(29),{isStatusLoading:c,statusErrorMessage:d,notGit:p,isDiffLoading:u,diffErrorMessage:f,diffTooLarge:h,hasChanges:b,emptyMessage:x,emptyAction:w,children:y,historyStatus:S,historyLoadingLabel:T,historyRetryLabel:C,onRetryHistory:j,checkingRepositoryLabel:I,notRepositoryLabel:L}=e;if(c){let e,o;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Z.jsx)(ne,{size:"large",uniProps:oe}),l[0]=e):e=l[0],l[1]!==I?(o=(0,Z.jsxs)(s.View,{style:Je.loadingContainer,children:[e,(0,Z.jsx)(t.Text,{style:Je.loadingText,children:I})]}),l[1]=I,l[2]=o):o=l[2],o}if(d){let e;return l[3]!==d?(e=(0,Z.jsx)(s.View,{style:Je.errorContainer,children:(0,Z.jsx)(t.Text,{style:Je.errorText,children:d})}),l[3]=d,l[4]=e):e=l[4],e}if(p){let e;return l[5]!==L?(e=(0,Z.jsx)(s.View,{style:Je.emptyContainer,testID:"changes-not-git",children:(0,Z.jsx)(t.Text,{style:Je.emptyText,children:L})}),l[5]=L,l[6]=e):e=l[6],e}if(u){let e,o,c;return l[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Z.jsx)(ne,{size:"large",uniProps:oe}),l[7]=e):e=l[7],l[8]!==T||l[9]!==S?(o=S===n.CheckoutDiffHistoryStatus.Fetching?(0,Z.jsx)(t.Text,{style:Je.loadingText,children:T}):null,l[8]=T,l[9]=S,l[10]=o):o=l[10],l[11]!==o?(c=(0,Z.jsxs)(s.View,{style:Je.loadingContainer,testID:"changes-loading",children:[e,o]}),l[11]=o,l[12]=c):c=l[12],c}if(h){let e;return l[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Z.jsx)(K.DiffTooLargeState,{}),l[13]=e):e=l[13],e}if(f){let e,o,n;return l[14]!==f?(e=(0,Z.jsx)(t.Text,{style:Je.errorText,children:f}),l[14]=f,l[15]=e):e=l[15],l[16]!==C||l[17]!==j?(o=j?(0,Z.jsx)(G.Button,{variant:"ghost",size:"xs",testID:"changes-deepen-history",onPress:j,children:C}):null,l[16]=C,l[17]=j,l[18]=o):o=l[18],l[19]!==e||l[20]!==o?(n=(0,Z.jsxs)(s.View,{style:Je.errorContainer,children:[e,o]}),l[19]=e,l[20]=o,l[21]=n):n=l[21],n}if(!b){let e,o,n;return l[22]!==x?(e=(0,Z.jsx)(t.Text,{style:Je.emptyText,children:x}),l[22]=x,l[23]=e):e=l[23],l[24]!==w?(o=w?(0,Z.jsx)(G.Button,{variant:"ghost",size:"xs",testID:"changes-empty-switch-mode",onPress:w.onPress,children:w.label}):null,l[24]=w,l[25]=o):o=l[25],l[26]!==e||l[27]!==o?(n=(0,Z.jsxs)(s.View,{style:Je.emptyContainer,children:[e,o]}),l[26]=e,l[27]=o,l[28]=n):n=l[28],n}return y}function ze(e){return e?.baseRefLabel??e?.baseRef??null}function Ue(e){return e.isTurnSnapshotMissing?e.t("workspace.git.diff.noTurnSnapshot"):"last_turn"===e.diffMode?e.t("workspace.git.diff.noLastTurnChanges"):e.t("diffViewer.empty")}function Ee(e){return e.hideWhitespace||!e.status?.isGit?null:"base"===e.diffMode&&e.status.isDirty?{label:e.seeUncommittedLabel,onPress:e.selectUncommitted}:"uncommitted"===e.diffMode&&(e.status.aheadBehind?.ahead??0)>0?{label:e.seeCommittedLabel,onPress:e.selectBase}:null}function Be(e,t){return e?t?.message??null:null}function He(e){if("github"!==e.forge&&!e.forgeProvidersSupported)return null;switch(e.authState){case"cli_missing":return"install_cli";case"unauthenticated":return"sign_in";default:return null}}function Ve(e){if(!e.action)return null;const{brandLabel:t,signInCli:s}=(0,z.getForgePresentation)(e.forge);if(null===s)return e.t("workspace.git.forgeSetup.generic",{brand:t});if("install_cli"===e.action)return e.t("workspace.git.forgeSetup.installCli",{cli:s,brand:t});const o=(0,z.buildForgeSignInCommand)(e.forge,e.host);return e.t("workspace.git.forgeSetup.signIn",{command:o,brand:t})}function Oe(e,t,s=!1){return o=>[t,(0,N.paneContentToolbarIconButtonStyle)(o,e,s)]}function Ge(e){return e.isCompact&&"combined"===e.presentation?!e.hasChanges||e.isDiffLoading?0:S.JUMP_TO_FILE_CLEARANCE:0}function Ne(e){const t=(0,o.c)(11),{shown:s,children:n,files:l,mode:c,onSelectFile:p,treeWidth:u,onTreeWidthChange:f,collapsedFolderPaths:h,onCollapsedFolderPathsChange:b}=e;if(!s)return n;const x=u??220;let w,S;return t[0]!==h||t[1]!==l||t[2]!==c||t[3]!==b||t[4]!==p?(w=(0,Z.jsx)(y.ChangedFilesTree,{files:l,mode:c,onSelectFile:p,collapsedFolderPaths:h,onCollapsedFolderPathsChange:b}),t[0]=h,t[1]=l,t[2]=c,t[3]=b,t[4]=p,t[5]=w):w=t[5],t[6]!==n||t[7]!==f||t[8]!==x||t[9]!==w?(S=(0,Z.jsxs)(d.TreeRail,{testID:"changes-tree-rail",width:x,onWidthChange:f,children:[n,w]}),t[6]=n,t[7]=f,t[8]=x,t[9]=w,t[10]=S):S=t[10],S}function $e(e){const t=(0,o.c)(16),{isLoading:s,errorMessage:n,presentation:l,children:c,desktopTreeVisible:d,isMobile:p,files:u,mode:f,onSelectFile:h,treeWidth:b,onTreeWidthChange:x,collapsedFolderPaths:w,onCollapsedFolderPathsChange:S}=e;if(s||n)return c;if("tree"===l){if(0===u.length)return c;let e;return t[0]!==w||t[1]!==u||t[2]!==f||t[3]!==S||t[4]!==h?(e=(0,Z.jsx)(y.ChangedFilesTree,{files:u,mode:f,onSelectFile:h,collapsedFolderPaths:w,onCollapsedFolderPathsChange:S}),t[0]=w,t[1]=u,t[2]=f,t[3]=S,t[4]=h,t[5]=e):e=t[5],e}if("diff"===l)return c;const T=d&&!p&&u.length>0;let C;return t[6]!==c||t[7]!==w||t[8]!==u||t[9]!==f||t[10]!==S||t[11]!==h||t[12]!==x||t[13]!==T||t[14]!==b?(C=(0,Z.jsx)(Ne,{shown:T,files:u,mode:f,onSelectFile:h,treeWidth:b,onTreeWidthChange:x,collapsedFolderPaths:w,onCollapsedFolderPathsChange:S,children:c}),t[6]=c,t[7]=w,t[8]=u,t[9]=f,t[10]=S,t[11]=h,t[12]=x,t[13]=T,t[14]=b,t[15]=C):C=t[15],C}const Je=f.StyleSheet.create(e=>({container:{flex:1,minHeight:0},changesToolbar:{flexDirection:"row",alignItems:"center",gap:e.spacing[2],paddingLeft:e.spacing[2],uni__dependencies:[0]},changesToolbarSidebar:{backgroundColor:e.colors.surfaceSidebar,uni__dependencies:[0]},changesToolbarIdentity:{flex:1,minWidth:0,flexDirection:"row",alignItems:"center",gap:e.spacing[1],uni__dependencies:[0]},changesToolbarControls:{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0},diffStatusIconHidden:{opacity:0},actionErrorText:{paddingHorizontal:e.spacing[3],paddingBottom:e.spacing[1],fontSize:e.fontSize.sm,color:e.colors.destructive,uni__dependencies:[0]},forgeSetupCallout:{marginHorizontal:e.spacing[3],marginBottom:e.spacing[2],paddingHorizontal:e.spacing[3],paddingVertical:e.spacing[2],borderWidth:1,borderColor:e.colors.border,borderRadius:e.borderRadius.md,backgroundColor:e.colors.surface1,uni__dependencies:[0]},forgeSetupCalloutText:{fontSize:e.fontSize.sm,color:e.colors.foregroundMuted,uni__dependencies:[0]},diffContainer:{flex:1,minHeight:0,position:"relative"},scrollContainer:{flex:1,minHeight:0,position:"relative"},loadingContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingTop:e.spacing[16],gap:e.spacing[4],uni__dependencies:[0]},loadingText:{fontSize:e.fontSize.base,color:e.colors.foregroundMuted,uni__dependencies:[0]},errorContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingTop:e.spacing[16],paddingHorizontal:e.spacing[6],uni__dependencies:[0]},errorText:{fontSize:e.fontSize.base,color:e.colors.destructive,textAlign:"center",uni__dependencies:[0]},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingTop:e.spacing[16],gap:e.spacing[2],uni__dependencies:[0]},emptyText:{fontSize:e.fontSize.base,color:e.colors.foregroundMuted,uni__dependencies:[0]},tooltipText:{fontSize:e.fontSize.sm,color:e.colors.foreground,uni__dependencies:[0]}}))},4638,[898,897,896,454,2977,37,854,4639,4641,4206,147,235,426,57,1217,1218,4642,4616,4643,4645,3874,4647,4652,4207,884,4649,3703,3884,4653,4334,3712,4654,4655,3850,3849,3770,3771,3868,894,3459,3541,3023,3022,4178,4049,4656,881,4605,4657,4333,3873,280]);
|
|
16294
16294
|
__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.TreeRail=function({children:e,testID:u,width:E,onWidthChange:I,minimumWidth:p}){const[C,x]=n.Children.toArray(e),D=(0,f.usePanelStore)(e=>e.treeRailWidth),N=(0,f.usePanelStore)(e=>e.setTreeRailWidth),V=E??D,{width:A}=(0,s.default)(),[F,G]=(0,n.useState)(A),y=(0,R.resolveVisibleTreeRailWidth)(V,F,p),H=(0,n.useRef)(y),J=(0,o.useSharedValue)(y),[j,B]=(0,n.useState)(!1),L=(0,n.useCallback)(()=>B(!0),[]),X=(0,n.useCallback)(()=>B(!1),[]);(0,n.useEffect)(()=>{J.value=y},[J,y]);const M=(0,n.useMemo)(()=>h.Gesture.Pan().hitSlop({left:8,right:8,top:0,bottom:0}).onBegin((function({_worklet_17448693172920_init_data:e,scheduleOnRN:t,showResizeGrip:n}){const s=()=>t(n);return s.__closure={scheduleOnRN:t,showResizeGrip:n},s.__workletHash=0xfde97288ab8,s.__initData=e,s})({_worklet_17448693172920_init_data:T,scheduleOnRN:_.scheduleOnRN,showResizeGrip:L})).activeOffsetX([-c.SIDEBAR_RESIZE_ACTIVATION_OFFSET,c.SIDEBAR_RESIZE_ACTIVATION_OFFSET]).failOffsetY([-c.SIDEBAR_RESIZE_FAIL_OFFSET,c.SIDEBAR_RESIZE_FAIL_OFFSET]).onStart((function({_worklet_7357229007257_init_data:e,startWidthRef:t,visibleWidth:n,resizeWidth:s}){const h=function(e){t.current=n+e.translationX,s.value=n};return h.__closure={startWidthRef:t,visibleWidth:n,resizeWidth:s},h.__workletHash=7357229007257,h.__initData=e,h})({_worklet_7357229007257_init_data:O,startWidthRef:H,visibleWidth:y,resizeWidth:J})).onUpdate((function({_worklet_8787700249463_init_data:e,resizeWidth:t,resolveVisibleTreeRailWidth:n,startWidthRef:s,containerWidth:h,minimumWidth:o}){const l=function(e){t.value=n(s.current-e.translationX,h,o)};return l.__closure={resizeWidth:t,resolveVisibleTreeRailWidth:n,startWidthRef:s,containerWidth:h,minimumWidth:o},l.__workletHash=8787700249463,l.__initData=e,l})({_worklet_8787700249463_init_data:w,resizeWidth:J,resolveVisibleTreeRailWidth:R.resolveVisibleTreeRailWidth,startWidthRef:H,containerWidth:F,minimumWidth:p})).onEnd((function({_worklet_11137593383363_init_data:e,runOnJS:t,onWidthChange:n,setSharedWidth:s,resizeWidth:h}){const o=()=>t(n??s)(h.value);return o.__closure={runOnJS:t,onWidthChange:n,setSharedWidth:s,resizeWidth:h},o.__workletHash=0xa212c4c19c3,o.__initData=e,o})({_worklet_11137593383363_init_data:z,runOnJS:o.runOnJS,onWidthChange:I,setSharedWidth:N,resizeWidth:J})).onFinalize((function({_worklet_11286250233692_init_data:e,scheduleOnRN:t,hideResizeGrip:n}){const s=()=>t(n);return s.__closure={scheduleOnRN:t,hideResizeGrip:n},s.__workletHash=0xa43c8ef9f5c,s.__initData=e,s})({_worklet_11286250233692_init_data:S,scheduleOnRN:_.scheduleOnRN,hideResizeGrip:X})),[F,X,I,p,J,N,L,y]),P=(0,o.useAnimatedStyle)((function({_worklet_3209148057289_init_data:e,resizeWidth:t}){const n=()=>({width:t.value});return n.__closure={resizeWidth:t},n.__workletHash=3209148057289,n.__initData=e,n})({_worklet_3209148057289_init_data:b,resizeWidth:J})),Z=(0,n.useCallback)(e=>G(t=>(0,R.acceptTreeRailContainerMeasurement)(t,e.nativeEvent.layout.width)),[]);return(0,v.jsxs)(t.View,{style:k.container,testID:u,onLayout:Z,children:[(0,v.jsx)(t.View,{style:k.content,testID:u?`${u}-content`:void 0,children:C}),(0,v.jsxs)(l.default.View,{style:[k.rail,P],testID:u?`${u}-tree`:void 0,children:[(0,v.jsx)(W.SidebarResizeHandle,{edge:"left",gesture:M,pressed:j,testID:u?`${u}-resize-handle`:"tree-rail-resize-handle"}),x]})]})};var t=r(d[0]),n=r(d[1]);r(d[2]);var s=e(r(d[3])),h=r(d[4]),o=r(d[5]),l=e(o),_=r(d[6]),u=r(d[7]),c=r(d[8]),W=r(d[9]),R=r(d[10]),f=r(d[11]),v=r(d[12]);const S={code:"function treeRailTsx1(){const{scheduleOnRN,hideResizeGrip}=this.__closure;return scheduleOnRN(hideResizeGrip);}"},z={code:"function treeRailTsx2(){const{runOnJS,onWidthChange,setSharedWidth,resizeWidth}=this.__closure;var _onWidthChange;return runOnJS((_onWidthChange=onWidthChange)!==null&&_onWidthChange!==void 0?_onWidthChange:setSharedWidth)(resizeWidth.value);}"},w={code:"function treeRailTsx3(event_0){const{resizeWidth,resolveVisibleTreeRailWidth,startWidthRef,containerWidth,minimumWidth}=this.__closure;resizeWidth.value=resolveVisibleTreeRailWidth(startWidthRef.current-event_0.translationX,containerWidth,minimumWidth);}"},O={code:"function treeRailTsx4(event){const{startWidthRef,visibleWidth,resizeWidth}=this.__closure;startWidthRef.current=visibleWidth+event.translationX;resizeWidth.value=visibleWidth;}"},T={code:"function treeRailTsx5(){const{scheduleOnRN,showResizeGrip}=this.__closure;return scheduleOnRN(showResizeGrip);}"},b={code:"function treeRailTsx6(){const{resizeWidth}=this.__closure;return{width:resizeWidth.value};}"};const k=u.StyleSheet.create(e=>({container:{flex:1,minHeight:0,flexDirection:"row"},content:{flex:1,minWidth:0},rail:{position:"relative",flexShrink:0,borderLeftWidth:1,borderLeftColor:e.colors.border,uni__dependencies:[0]}}))},4639,[896,37,147,451,3037,899,902,57,4120,4161,4640,3799,280]);
|
|
16295
16295
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveVisibleTreeRailWidth=function(c,o,u=t.MIN_TREE_RAIL_WIDTH){const s=Math.max(u,o-n);return Math.min(Math.max(u,Math.min(600,c)),s)},e.acceptTreeRailContainerMeasurement=function(t,n){return n>0?n:t};var t=r(d[0]);const n=240},4640,[3799]);
|
|
16296
16296
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.TreeRailToggle=function(n){const s=(0,o.c)(9),{visible:p,testID:b,onToggle:_}=n,{t:h}=(0,t.useTranslation)(),f=p?"workspace.tree.hideFolderTree":"workspace.tree.showFolderTree";let w;s[0]!==h||s[1]!==f?(w=h(f),s[0]=h,s[1]=f,s[2]=w):w=s[2];const I=w;let j,v;s[3]===Symbol.for("react.memo_cache_sentinel")?(j=(0,u.jsx)(T,{size:(0,l.paneContentToolbarIconSize)(!1),uniProps:c.extraMutedIconColorMapping}),s[3]=j):j=s[3];s[4]!==I||s[5]!==_||s[6]!==b||s[7]!==p?(v=(0,u.jsx)(l.ToolbarButton,{label:I,selected:p,"aria-selected":p,testID:b,onPress:_,children:j}),s[4]=I,s[5]=_,s[6]=b,s[7]=p,s[8]=v):v=s[8];return v};var o=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]);const T=(0,s.withUnistyles)(n.FolderTree)},4641,[454,854,1218,57,4178,4049,280]);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -92,6 +92,6 @@
|
|
|
92
92
|
<body>
|
|
93
93
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
94
94
|
<div id="root"></div>
|
|
95
|
-
<script src="/_expo/static/js/web/index-
|
|
95
|
+
<script src="/_expo/static/js/web/index-0739ccf1e0ed249272ed6917bd9a68ec.js" defer></script>
|
|
96
96
|
</body>
|
|
97
97
|
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/server",
|
|
3
|
-
"version": "0.11.0-fork.
|
|
3
|
+
"version": "0.11.0-fork.42",
|
|
4
4
|
"description": "Paseo backend server",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/server",
|
|
@@ -125,10 +125,10 @@
|
|
|
125
125
|
"lightningcss": "1.30.1"
|
|
126
126
|
},
|
|
127
127
|
"dependencies": {
|
|
128
|
-
"@getpaseo/client": "0.11.0-fork.
|
|
129
|
-
"@getpaseo/highlight": "0.11.0-fork.
|
|
130
|
-
"@getpaseo/plugin": "0.11.0-fork.
|
|
131
|
-
"@getpaseo/protocol": "0.11.0-fork.
|
|
132
|
-
"@getpaseo/relay": "0.11.0-fork.
|
|
128
|
+
"@getpaseo/client": "0.11.0-fork.42",
|
|
129
|
+
"@getpaseo/highlight": "0.11.0-fork.42",
|
|
130
|
+
"@getpaseo/plugin": "0.11.0-fork.42",
|
|
131
|
+
"@getpaseo/protocol": "0.11.0-fork.42",
|
|
132
|
+
"@getpaseo/relay": "0.11.0-fork.42"
|
|
133
133
|
}
|
|
134
134
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mduan/paseo-cli",
|
|
3
|
-
"version": "0.11.0-fork.
|
|
3
|
+
"version": "0.11.0-fork.42",
|
|
4
4
|
"description": "Paseo CLI - control your AI coding agents from the command line (mduan fork)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"paseo": "bin/paseo"
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@clack/prompts": "^1.0.0",
|
|
22
22
|
"@codemirror/language": "6.12.4",
|
|
23
23
|
"@codemirror/legacy-modes": "^6.5.3",
|
|
24
|
-
"@getpaseo/client": "0.11.0-fork.
|
|
25
|
-
"@getpaseo/highlight": "0.11.0-fork.
|
|
26
|
-
"@getpaseo/plugin": "0.11.0-fork.
|
|
27
|
-
"@getpaseo/protocol": "0.11.0-fork.
|
|
28
|
-
"@getpaseo/relay": "0.11.0-fork.
|
|
29
|
-
"@getpaseo/server": "0.11.0-fork.
|
|
24
|
+
"@getpaseo/client": "0.11.0-fork.42",
|
|
25
|
+
"@getpaseo/highlight": "0.11.0-fork.42",
|
|
26
|
+
"@getpaseo/plugin": "0.11.0-fork.42",
|
|
27
|
+
"@getpaseo/protocol": "0.11.0-fork.42",
|
|
28
|
+
"@getpaseo/relay": "0.11.0-fork.42",
|
|
29
|
+
"@getpaseo/server": "0.11.0-fork.42",
|
|
30
30
|
"@isaacs/ttlcache": "^2.1.4",
|
|
31
31
|
"@lezer/common": "^1.5.0",
|
|
32
32
|
"@lezer/cpp": "^1.1.5",
|