@10play/expo-air 0.12.4 → 0.12.5

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.
@@ -534,8 +534,8 @@ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{v
534
534
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=(r(d[1]).default,!1),o=0;function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u||(u=!0,0===e[0]&&(n.default.vibrate(400),e=e.slice(1)),0!==e.length?setTimeout(()=>l(++o,e,t,1),e[0]):u=!1)}function l(e,t,f,v){if(u&&e===o){if(n.default.vibrate(400),v>=t.length){if(!f)return void(u=!1);v=0}setTimeout(()=>l(e,t,f,v+1),t[v])}}var v={vibrate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!u)if('number'==typeof e)n.default.vibrate(e);else{if(!Array.isArray(e))throw new Error('Vibration pattern should be a number or array');f(e,t)}},cancel:function(){u=!1}},c=v},482,[483,60]);
535
535
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e=r(d[0]);Object.keys(e).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(_e,t)||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return e[t]}})});var t,n=((t=e)&&t.__esModule?t:{default:t}).default},483,[484]);
536
536
  __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).getEnforcing('Vibration')},484,[50]);
537
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.BubbleContent=function(e){e.size,e.color;var n=e.expanded,x=void 0!==n&&n,O=e.serverUrl,p=void 0===O?"ws://localhost:3847":O,B=(0,s.useState)("chat"),j=(0,t.default)(B,2),A=j[0],E=j[1],G=(0,s.useRef)(null),w=(0,s.useRef)(()=>{}),y=(0,s.useCallback)(e=>{w.current(e)},[]),_=(0,b.useWebSocketMessages)({serverUrl:p,onGitMessage:y}),I=_.status,N=_.messages,D=_.currentParts,L=_.handleSubmit,v=_.handleNewSession,M=_.handleStop,Y=(0,R.useGitState)({handleSubmit:L,setActiveTab:E});if(w.current=Y.handleGitMessage,(0,s.useEffect)(()=>{x&&"chat"===A&&setTimeout(()=>G.current?.focus(),100)},[x]),!x)return(0,P.jsx)(o.View,{style:f.collapsedPill,children:(0,P.jsx)(S.PulsingIndicator,{status:I})});return(0,P.jsxs)(o.View,{style:f.expanded,children:[(0,P.jsx)(S.Header,{status:I,branchName:Y.branchName,onBranchPress:Y.handleBranchPress}),(0,P.jsx)(C.TabBar,{activeTab:A,onTabChange:E,onNewSession:v,canStartNew:"connected"===I,hasPR:Y.hasPR,hasChanges:Y.gitChanges.length>0,prNumber:Y.prNumber,onCreatePR:Y.handleCreatePR,onCommit:Y.handleCommit,onViewPR:Y.handleViewPR}),(0,P.jsx)(o.View,{style:f.body,children:"disconnected"===I&&0===N.length?(0,P.jsx)(T,{}):"chat"===A?(0,P.jsx)(l.ResponseArea,{messages:N,currentParts:D}):(0,P.jsx)(h.GitChangesTab,{changes:Y.gitChanges,onDiscard:Y.handleDiscard})}),"chat"===A&&"disconnected"!==I&&(0,P.jsx)(c.PromptInput,{ref:G,onSubmit:L,onStop:M,disabled:"disconnected"===I,isProcessing:"processing"===I}),Y.showBranchSwitcher&&(0,P.jsx)(u.BranchSwitcher,{branches:Y.branches,currentBranch:Y.branchName,onSelect:Y.handleBranchSelect,onCreate:Y.handleBranchCreate,onClose:()=>{Y.setShowBranchSwitcher(!1),Y.setBranchError(null)},error:Y.branchError})]})};var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),h=r(d[5]),u=r(d[6]),S=r(d[7]),C=r(d[8]),b=r(d[9]),R=r(d[10]),x=r(d[11]),P=r(d[12]);function T(){return(0,P.jsxs)(o.View,{style:f.disconnectedContainer,children:[(0,P.jsx)(o.Text,{style:f.disconnectedTitle,children:"Server not running"}),(0,P.jsx)(o.Text,{style:f.disconnectedSubtitle,children:"Start the development server from your project directory:"}),(0,P.jsx)(o.View,{style:f.codeBlock,children:(0,P.jsx)(o.Text,{style:f.codeText,children:"npx expo-air fly"})})]})}var f=o.StyleSheet.create({collapsedPill:{width:100,height:32,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"},expanded:{flex:1,backgroundColor:x.COLORS.BACKGROUND,borderRadius:x.LAYOUT.BORDER_RADIUS_LG,overflow:"hidden"},body:{flex:1,backgroundColor:x.COLORS.BACKGROUND_ELEVATED},disconnectedContainer:{flex:1,justifyContent:"center",alignItems:"center",paddingHorizontal:x.SPACING.XXL},disconnectedTitle:{color:x.COLORS.TEXT_MUTED,fontSize:x.TYPOGRAPHY.SIZE_LG,fontWeight:x.TYPOGRAPHY.WEIGHT_SEMIBOLD,marginBottom:x.SPACING.SM},disconnectedSubtitle:{color:x.COLORS.TEXT_MUTED,fontSize:x.TYPOGRAPHY.SIZE_SM,textAlign:"center",marginBottom:x.SPACING.LG},codeBlock:{backgroundColor:"rgba(255,255,255,0.06)",borderRadius:x.LAYOUT.BORDER_RADIUS_SM,paddingHorizontal:x.SPACING.LG,paddingVertical:x.SPACING.MD,borderWidth:1,borderColor:x.COLORS.BORDER},codeText:{color:x.COLORS.TEXT_SECONDARY,fontSize:x.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo"}})},485,[29,63,258,486,520,523,524,525,526,527,530,519,250]);
538
- __d(function(g,r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PromptInput",{enumerable:!0,get:function(){return u}});var t=e(r(_d[0])),i=e(r(_d[1])),o=r(_d[2]),n=r(_d[3]),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),t.default=e,t})(r(_d[4])),l=r(_d[5]),d=r(_d[6]),u=(0,o.forwardRef)((e,u)=>{var C=e.onSubmit,T=e.onStop,S=e.disabled,O=void 0!==S&&S,I=e.isProcessing,w=void 0!==I&&I,y=(0,o.useState)(""),f=(0,i.default)(y,2),v=f[0],R=f[1],j=(0,o.useState)([]),x=(0,i.default)(j,2),L=x[0],B=x[1],_=(0,o.useRef)(null);(0,o.useImperativeHandle)(u,()=>({focus:()=>_.current?.focus()})),(0,o.useEffect)(()=>{var e=new n.NativeEventEmitter(n.NativeModules.WidgetBridge).addListener('onClipboardImagePaste',e=>{B(t=>t.length>=4?t:[...t,e])});return()=>e.remove()},[]);var A=()=>{var e=v.trim();!(e.length>0||L.length>0)||O||w||(C(e,L.length>0?L:void 0),R(""),B([]))},P=(function(){var e=(0,t.default)(function*(){if(L.length>=4)n.Alert.alert("Limit reached","Maximum 4 images per message.");else try{var e=yield s.launchImageLibraryAsync({mediaTypes:["images"],allowsMultipleSelection:!0,selectionLimit:4-L.length,quality:.7});if(!e.canceled&&e.assets.length>0){var t=e.assets.map(e=>({uri:e.uri,width:e.width,height:e.height}));B(e=>[...e,...t].slice(0,4))}}catch(e){console.warn("[expo-air] Image picker error:",e)}});return function(){return e.apply(this,arguments)}})(),E=e=>{B(t=>t.filter((t,i)=>i!==e))},N=(v.trim().length>0||L.length>0)&&!O&&!w;return(0,d.jsxs)(n.View,{style:b.outerContainer,children:[L.length>0&&(0,d.jsx)(n.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:b.previewStrip,contentContainerStyle:b.previewContent,children:L.map((e,t)=>(0,d.jsxs)(n.View,{style:b.previewItem,children:[(0,d.jsx)(n.Image,{source:{uri:e.uri},style:b.previewImage}),(0,d.jsx)(n.TouchableOpacity,{style:b.removeButton,onPress:()=>E(t),hitSlop:{top:6,bottom:6,left:6,right:6},children:(0,d.jsxs)(n.View,{style:b.removeIcon,children:[(0,d.jsx)(n.View,{style:[b.removeLine,b.removeLineA]}),(0,d.jsx)(n.View,{style:[b.removeLine,b.removeLineB]})]})})]},t))}),(0,d.jsxs)(n.View,{style:b.container,children:[(0,d.jsx)(n.TouchableOpacity,{style:b.iconButton,onPress:P,disabled:w,activeOpacity:.6,children:(0,d.jsx)(c,{})}),(0,d.jsx)(n.TextInput,{ref:_,style:b.input,placeholder:"Ask Claude...",placeholderTextColor:l.COLORS.TEXT_TERTIARY,value:v,onChangeText:R,onSubmitEditing:A,editable:!w,multiline:!0,maxLength:2e3,returnKeyType:"send",blurOnSubmit:!0}),w?(0,d.jsx)(n.TouchableOpacity,{style:[b.submitButton,b.stopButton],onPress:T,activeOpacity:.7,children:(0,d.jsx)(p,{})}):(0,d.jsx)(n.TouchableOpacity,{style:[b.submitButton,!N&&b.submitButtonDisabled],onPress:A,disabled:!N,activeOpacity:.7,children:(0,d.jsx)(h,{})})]})]})});function c(){return(0,d.jsxs)(n.View,{style:b.plusIcon,children:[(0,d.jsx)(n.View,{style:b.plusH}),(0,d.jsx)(n.View,{style:b.plusV})]})}function h(){return(0,d.jsxs)(n.View,{style:b.arrowIcon,children:[(0,d.jsx)(n.View,{style:b.arrowLine}),(0,d.jsx)(n.View,{style:b.arrowHead})]})}function p(){return(0,d.jsx)(n.View,{style:b.stopIcon})}var b=n.StyleSheet.create({outerContainer:{borderTopWidth:1,borderTopColor:l.COLORS.BORDER,backgroundColor:l.COLORS.BACKGROUND},previewStrip:{maxHeight:72,paddingHorizontal:l.LAYOUT.CONTENT_PADDING_H,paddingTop:l.SPACING.SM},previewContent:{gap:l.SPACING.SM,alignItems:"center"},previewItem:{position:"relative"},previewImage:{width:56,height:56,borderRadius:l.SPACING.SM,backgroundColor:"rgba(255,255,255,0.1)"},removeButton:{position:"absolute",top:-3,right:-3,width:18,height:18,borderRadius:9,backgroundColor:"#1C1C1E",alignItems:"center",justifyContent:"center"},removeIcon:{width:8,height:8,alignItems:"center",justifyContent:"center"},removeLine:{position:"absolute",width:9,height:1.2,backgroundColor:"rgba(255,255,255,0.9)",borderRadius:1},removeLineA:{transform:[{rotate:"45deg"}]},removeLineB:{transform:[{rotate:"-45deg"}]},container:{flexDirection:"row",alignItems:"flex-end",paddingHorizontal:l.LAYOUT.CONTENT_PADDING_H,paddingVertical:l.SPACING.MD},iconButton:{width:36,height:l.SIZES.SUBMIT_BUTTON,alignItems:"center",justifyContent:"center",marginRight:4},input:{flex:1,backgroundColor:l.COLORS.BACKGROUND_INPUT,borderRadius:22,paddingHorizontal:18,paddingVertical:l.SPACING.MD,color:l.COLORS.TEXT_PRIMARY,fontSize:l.TYPOGRAPHY.SIZE_LG,maxHeight:100},submitButton:{width:l.SIZES.SUBMIT_BUTTON,height:l.SIZES.SUBMIT_BUTTON,borderRadius:l.SIZES.SUBMIT_BUTTON/2,backgroundColor:l.COLORS.BACKGROUND_BUTTON,alignItems:"center",justifyContent:"center",marginLeft:l.SPACING.SM+2},submitButtonDisabled:{opacity:.4},stopButton:{backgroundColor:l.COLORS.STATUS_NEUTRAL},stopIcon:{width:12,height:12,backgroundColor:l.COLORS.TEXT_PRIMARY,borderRadius:2},arrowIcon:{width:16,height:16,alignItems:"center",justifyContent:"center"},arrowLine:{width:2,height:10,backgroundColor:l.COLORS.TEXT_PRIMARY,borderRadius:1},arrowHead:{position:"absolute",top:0,width:0,height:0,borderLeftWidth:5,borderRightWidth:5,borderBottomWidth:6,borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:l.COLORS.TEXT_PRIMARY},plusIcon:{width:18,height:18,alignItems:"center",justifyContent:"center"},plusH:{position:"absolute",width:16,height:2,borderRadius:1,backgroundColor:l.COLORS.TEXT_MUTED},plusV:{position:"absolute",width:2,height:16,borderRadius:1,backgroundColor:l.COLORS.TEXT_MUTED}})},486,[346,29,63,258,487,519,250]);
537
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.BubbleContent=function(e){e.size,e.color;var n=e.expanded,x=void 0!==n&&n,O=e.serverUrl,p=void 0===O?"ws://localhost:3847":O,B=(0,s.useState)("chat"),j=(0,t.default)(B,2),A=j[0],E=j[1],G=(0,s.useRef)(null),w=(0,s.useRef)(()=>{}),y=(0,s.useCallback)(e=>{w.current(e)},[]),_=(0,b.useWebSocketMessages)({serverUrl:p,onGitMessage:y}),I=_.status,N=_.messages,D=_.currentParts,L=_.handleSubmit,v=_.handleNewSession,M=_.handleStop,Y=(0,R.useGitState)({handleSubmit:L,setActiveTab:E});if(w.current=Y.handleGitMessage,(0,s.useEffect)(()=>{x&&"chat"===A&&setTimeout(()=>G.current?.focus(),100)},[x]),!x)return(0,P.jsx)(o.View,{style:f.collapsedPill,children:(0,P.jsx)(S.PulsingIndicator,{status:I})});return(0,P.jsxs)(o.View,{style:f.expanded,children:[(0,P.jsx)(S.Header,{status:I,branchName:Y.branchName,onBranchPress:Y.handleBranchPress}),(0,P.jsx)(C.TabBar,{activeTab:A,onTabChange:E,onNewSession:v,canStartNew:"connected"===I,hasPR:Y.hasPR,hasChanges:Y.gitChanges.length>0,prNumber:Y.prNumber,onCreatePR:Y.handleCreatePR,onCommit:Y.handleCommit,onViewPR:Y.handleViewPR}),(0,P.jsx)(o.View,{style:f.body,children:"disconnected"===I&&0===N.length?(0,P.jsx)(T,{}):"chat"===A?(0,P.jsx)(l.ResponseArea,{messages:N,currentParts:D,status:I}):(0,P.jsx)(h.GitChangesTab,{changes:Y.gitChanges,onDiscard:Y.handleDiscard})}),"chat"===A&&"disconnected"!==I&&(0,P.jsx)(c.PromptInput,{ref:G,onSubmit:L,onStop:M,disabled:"disconnected"===I,isSending:"sending"===I,isProcessing:"processing"===I}),Y.showBranchSwitcher&&(0,P.jsx)(u.BranchSwitcher,{branches:Y.branches,currentBranch:Y.branchName,onSelect:Y.handleBranchSelect,onCreate:Y.handleBranchCreate,onClose:()=>{Y.setShowBranchSwitcher(!1),Y.setBranchError(null)},error:Y.branchError})]})};var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),h=r(d[5]),u=r(d[6]),S=r(d[7]),C=r(d[8]),b=r(d[9]),R=r(d[10]),x=r(d[11]),P=r(d[12]);function T(){return(0,P.jsxs)(o.View,{style:f.disconnectedContainer,children:[(0,P.jsx)(o.Text,{style:f.disconnectedTitle,children:"Server not running"}),(0,P.jsx)(o.Text,{style:f.disconnectedSubtitle,children:"Start the development server from your project directory:"}),(0,P.jsx)(o.View,{style:f.codeBlock,children:(0,P.jsx)(o.Text,{style:f.codeText,children:"npx expo-air fly"})})]})}var f=o.StyleSheet.create({collapsedPill:{width:100,height:32,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"},expanded:{flex:1,backgroundColor:x.COLORS.BACKGROUND,borderRadius:x.LAYOUT.BORDER_RADIUS_LG,overflow:"hidden"},body:{flex:1,backgroundColor:x.COLORS.BACKGROUND_ELEVATED},disconnectedContainer:{flex:1,justifyContent:"center",alignItems:"center",paddingHorizontal:x.SPACING.XXL},disconnectedTitle:{color:x.COLORS.TEXT_MUTED,fontSize:x.TYPOGRAPHY.SIZE_LG,fontWeight:x.TYPOGRAPHY.WEIGHT_SEMIBOLD,marginBottom:x.SPACING.SM},disconnectedSubtitle:{color:x.COLORS.TEXT_MUTED,fontSize:x.TYPOGRAPHY.SIZE_SM,textAlign:"center",marginBottom:x.SPACING.LG},codeBlock:{backgroundColor:"rgba(255,255,255,0.06)",borderRadius:x.LAYOUT.BORDER_RADIUS_SM,paddingHorizontal:x.SPACING.LG,paddingVertical:x.SPACING.MD,borderWidth:1,borderColor:x.COLORS.BORDER},codeText:{color:x.COLORS.TEXT_SECONDARY,fontSize:x.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo"}})},485,[29,63,258,486,520,523,524,525,526,527,530,519,250]);
538
+ __d(function(g,r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PromptInput",{enumerable:!0,get:function(){return u}});var t=e(r(_d[0])),i=e(r(_d[1])),o=r(_d[2]),n=r(_d[3]),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),t.default=e,t})(r(_d[4])),l=r(_d[5]),d=r(_d[6]),u=(0,o.forwardRef)((e,u)=>{var C=e.onSubmit,T=e.onStop,S=e.disabled,O=void 0!==S&&S,I=e.isSending,w=void 0!==I&&I,y=e.isProcessing,f=void 0!==y&&y,v=(0,o.useState)(""),R=(0,i.default)(v,2),j=R[0],x=R[1],L=(0,o.useState)([]),B=(0,i.default)(L,2),_=B[0],A=B[1],P=(0,o.useRef)(null);(0,o.useImperativeHandle)(u,()=>({focus:()=>P.current?.focus()})),(0,o.useEffect)(()=>{var e=new n.NativeEventEmitter(n.NativeModules.WidgetBridge).addListener('onClipboardImagePaste',e=>{A(t=>t.length>=4?t:[...t,e])});return()=>e.remove()},[]);var E=w||f,N=()=>{var e=j.trim();!(e.length>0||_.length>0)||O||E||(C(e,_.length>0?_:void 0),x(""),A([]))},M=(function(){var e=(0,t.default)(function*(){if(_.length>=4)n.Alert.alert("Limit reached","Maximum 4 images per message.");else try{var e=yield s.launchImageLibraryAsync({mediaTypes:["images"],allowsMultipleSelection:!0,selectionLimit:4-_.length,quality:.7});if(!e.canceled&&e.assets.length>0){var t=e.assets.map(e=>({uri:e.uri,width:e.width,height:e.height}));A(e=>[...e,...t].slice(0,4))}}catch(e){console.warn("[expo-air] Image picker error:",e)}});return function(){return e.apply(this,arguments)}})(),U=e=>{A(t=>t.filter((t,i)=>i!==e))},V=(j.trim().length>0||_.length>0)&&!O&&!E;return(0,d.jsxs)(n.View,{style:b.outerContainer,children:[_.length>0&&(0,d.jsx)(n.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:b.previewStrip,contentContainerStyle:b.previewContent,children:_.map((e,t)=>(0,d.jsxs)(n.View,{style:b.previewItem,children:[(0,d.jsx)(n.Image,{source:{uri:e.uri},style:b.previewImage}),(0,d.jsx)(n.TouchableOpacity,{style:b.removeButton,onPress:()=>U(t),hitSlop:{top:6,bottom:6,left:6,right:6},children:(0,d.jsxs)(n.View,{style:b.removeIcon,children:[(0,d.jsx)(n.View,{style:[b.removeLine,b.removeLineA]}),(0,d.jsx)(n.View,{style:[b.removeLine,b.removeLineB]})]})})]},t))}),(0,d.jsxs)(n.View,{style:b.container,children:[(0,d.jsx)(n.TouchableOpacity,{style:b.iconButton,onPress:M,disabled:E,activeOpacity:.6,children:(0,d.jsx)(c,{})}),(0,d.jsx)(n.TextInput,{ref:P,style:b.input,placeholder:"Ask Claude...",placeholderTextColor:l.COLORS.TEXT_TERTIARY,value:j,onChangeText:x,onSubmitEditing:N,editable:!E,multiline:!0,maxLength:2e3,returnKeyType:"send",blurOnSubmit:!0}),f?(0,d.jsx)(n.TouchableOpacity,{style:[b.submitButton,b.stopButton],onPress:T,activeOpacity:.7,children:(0,d.jsx)(p,{})}):(0,d.jsx)(n.TouchableOpacity,{style:[b.submitButton,!V&&b.submitButtonDisabled],onPress:N,disabled:!V,activeOpacity:.7,children:(0,d.jsx)(h,{})})]})]})});function c(){return(0,d.jsxs)(n.View,{style:b.plusIcon,children:[(0,d.jsx)(n.View,{style:b.plusH}),(0,d.jsx)(n.View,{style:b.plusV})]})}function h(){return(0,d.jsxs)(n.View,{style:b.arrowIcon,children:[(0,d.jsx)(n.View,{style:b.arrowLine}),(0,d.jsx)(n.View,{style:b.arrowHead})]})}function p(){return(0,d.jsx)(n.View,{style:b.stopIcon})}var b=n.StyleSheet.create({outerContainer:{borderTopWidth:1,borderTopColor:l.COLORS.BORDER,backgroundColor:l.COLORS.BACKGROUND},previewStrip:{maxHeight:72,paddingHorizontal:l.LAYOUT.CONTENT_PADDING_H,paddingTop:l.SPACING.SM},previewContent:{gap:l.SPACING.SM,alignItems:"center"},previewItem:{position:"relative"},previewImage:{width:56,height:56,borderRadius:l.SPACING.SM,backgroundColor:"rgba(255,255,255,0.1)"},removeButton:{position:"absolute",top:-3,right:-3,width:18,height:18,borderRadius:9,backgroundColor:"#1C1C1E",alignItems:"center",justifyContent:"center"},removeIcon:{width:8,height:8,alignItems:"center",justifyContent:"center"},removeLine:{position:"absolute",width:9,height:1.2,backgroundColor:"rgba(255,255,255,0.9)",borderRadius:1},removeLineA:{transform:[{rotate:"45deg"}]},removeLineB:{transform:[{rotate:"-45deg"}]},container:{flexDirection:"row",alignItems:"flex-end",paddingHorizontal:l.LAYOUT.CONTENT_PADDING_H,paddingVertical:l.SPACING.MD},iconButton:{width:36,height:l.SIZES.SUBMIT_BUTTON,alignItems:"center",justifyContent:"center",marginRight:4},input:{flex:1,backgroundColor:l.COLORS.BACKGROUND_INPUT,borderRadius:22,paddingHorizontal:18,paddingVertical:l.SPACING.MD,color:l.COLORS.TEXT_PRIMARY,fontSize:l.TYPOGRAPHY.SIZE_LG,maxHeight:100},submitButton:{width:l.SIZES.SUBMIT_BUTTON,height:l.SIZES.SUBMIT_BUTTON,borderRadius:l.SIZES.SUBMIT_BUTTON/2,backgroundColor:l.COLORS.BACKGROUND_BUTTON,alignItems:"center",justifyContent:"center",marginLeft:l.SPACING.SM+2},submitButtonDisabled:{opacity:.4},stopButton:{backgroundColor:l.COLORS.STATUS_NEUTRAL},stopIcon:{width:12,height:12,backgroundColor:l.COLORS.TEXT_PRIMARY,borderRadius:2},arrowIcon:{width:16,height:16,alignItems:"center",justifyContent:"center"},arrowLine:{width:2,height:10,backgroundColor:l.COLORS.TEXT_PRIMARY,borderRadius:1},arrowHead:{position:"absolute",top:0,width:0,height:0,borderLeftWidth:5,borderRightWidth:5,borderBottomWidth:6,borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:l.COLORS.TEXT_PRIMARY},plusIcon:{width:18,height:18,alignItems:"center",justifyContent:"center"},plusH:{position:"absolute",width:16,height:2,borderRadius:1,backgroundColor:l.COLORS.TEXT_MUTED},plusV:{position:"absolute",width:2,height:16,borderRadius:1,backgroundColor:l.COLORS.TEXT_MUTED}})},486,[346,29,63,258,487,519,250]);
539
539
  __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.getCameraPermissionsAsync=f,_e.getMediaLibraryPermissionsAsync=p,_e.requestCameraPermissionsAsync=v,_e.requestMediaLibraryPermissionsAsync=P,Object.defineProperty(_e,"useMediaLibraryPermissions",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"useCameraPermissions",{enumerable:!0,get:function(){return M}}),_e.getPendingResultAsync=function(){return I.apply(this,arguments)},_e.launchCameraAsync=function(){return E.apply(this,arguments)},_e.launchImageLibraryAsync=function(){return L.apply(this,arguments)},Object.defineProperty(_e,"PermissionStatus",{enumerable:!0,get:function(){return u.PermissionStatus}});var n=e(r(d[0])),t=e(r(d[1])),u=r(d[2]),s=e(r(d[3])),o=r(d[4]),l=r(d[5]);function c(e){var n=e.aspect,s=e.quality,o=e.videoMaxDuration;if(null!=n){var l=(0,t.default)(n,2),c=l[0],f=l[1];if(c<=0||f<=0)throw new u.CodedError('ERR_INVALID_ARGUMENT',`Invalid aspect ratio values ${c}:${f}. Provide positive numbers.`)}if(s&&(s<0||s>1))throw new u.CodedError('ERR_INVALID_ARGUMENT',`Invalid 'quality' value ${s}. Provide a value between 0 and 1.`);if(o&&o<0)throw new u.CodedError('ERR_INVALID_ARGUMENT',`Invalid 'videoMaxDuration' value ${o}. Provide a non-negative number.`);return e}function f(){return y.apply(this,arguments)}function y(){return(y=(0,n.default)(function*(){return s.default.getCameraPermissionsAsync()})).apply(this,arguments)}function p(){return h.apply(this,arguments)}function h(){return h=(0,n.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s.default.getMediaLibraryPermissionsAsync(e)}),h.apply(this,arguments)}function v(){return b.apply(this,arguments)}function b(){return(b=(0,n.default)(function*(){return s.default.requestCameraPermissionsAsync()})).apply(this,arguments)}function P(){return A.apply(this,arguments)}function A(){return A=(0,n.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,s.default.requestMediaLibraryPermissionsAsync)(e)}),A.apply(this,arguments)}Object.keys(l).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return l[e]}})});var w=(0,u.createPermissionHook)({getMethod:e=>p(e?.writeOnly),requestMethod:e=>P(e?.writeOnly)}),M=(0,u.createPermissionHook)({getMethod:f,requestMethod:v});function I(){return(I=(0,n.default)(function*(){return s.default.getPendingResultAsync?s.default.getPendingResultAsync():null})).apply(this,arguments)}function E(){return E=(0,n.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!s.default.launchCameraAsync)throw new u.UnavailabilityError('ImagePicker','launchCameraAsync');var n=(0,o.mapDeprecatedOptions)(e);return yield s.default.launchCameraAsync(c(n))}),E.apply(this,arguments)}function L(){return L=(0,n.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,o.mapDeprecatedOptions)(e);if(!s.default.launchImageLibraryAsync)throw new u.UnavailabilityError('ImagePicker','launchImageLibraryAsync');return n?.allowsEditing&&n.allowsMultipleSelection&&console.warn("[expo-image-picker] `allowsEditing` is not supported when `allowsMultipleSelection` is enabled and will be ignored.Disable either 'allowsEditing' or 'allowsMultipleSelection' in 'launchImageLibraryAsync' to fix this warning."),yield s.default.launchImageLibraryAsync(n)}),L.apply(this,arguments)}},487,[346,29,488,516,517,518]);
540
540
  __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"EventEmitter",{enumerable:!0,get:function(){return t.EventEmitter}}),Object.defineProperty(_e,"NativeModule",{enumerable:!0,get:function(){return n.NativeModule}}),Object.defineProperty(_e,"SharedObject",{enumerable:!0,get:function(){return o.SharedObject}}),Object.defineProperty(_e,"SharedRef",{enumerable:!0,get:function(){return u.SharedRef}}),Object.defineProperty(_e,"Platform",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"uuid",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"requireNativeViewManager",{enumerable:!0,get:function(){return b.requireNativeViewManager}}),Object.defineProperty(_e,"CodedError",{enumerable:!0,get:function(){return h.CodedError}}),Object.defineProperty(_e,"UnavailabilityError",{enumerable:!0,get:function(){return E.UnavailabilityError}}),Object.defineProperty(_e,"LegacyEventEmitter",{enumerable:!0,get:function(){return w.LegacyEventEmitter}}),Object.defineProperty(_e,"NativeModulesProxy",{enumerable:!0,get:function(){return k.default}}),r(d[0]),r(d[1]);var t=r(d[2]),n=r(d[3]),o=r(d[4]),u=r(d[5]),c=e(r(d[6])),f=e(r(d[7])),b=r(d[8]),l=r(d[9]);Object.keys(l).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return l[e]}})});var y=r(d[10]);Object.keys(y).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return y[e]}})});var O=r(d[11]);Object.keys(O).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return O[e]}})});var p=r(d[12]);Object.keys(p).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return p[e]}})});var j=r(d[13]);Object.keys(j).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return j[e]}})});var P=r(d[14]);Object.keys(P).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return P[e]}})});var s=r(d[15]);Object.keys(s).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return s[e]}})});var v=r(d[16]);Object.keys(v).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return v[e]}})});var h=r(d[17]),E=r(d[18]),w=r(d[19]),k=e(r(d[20]))},488,[489,498,499,500,501,502,495,503,506,491,507,508,509,510,511,512,513,497,514,515,492]);
541
541
  __d(function(g,r,i,a,m,_e,d){"use strict";var o,e=r(d[0]);(o=e)&&o.__esModule;r(d[1]);var s=r(d[2]);globalThis.ExpoModulesCore_CodedError=s.CodedError},489,[490,495,497]);
@@ -569,15 +569,15 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
569
569
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.parseMediaTypes=p,e.mapDeprecatedOptions=function(s){if(!s.mediaTypes)return s;return{...s,mediaTypes:p(s.mediaTypes??[])}};var s=r(d[0]);function p(p){return p===s.MediaTypeOptions.Images||p===s.MediaTypeOptions.Videos||p===s.MediaTypeOptions.All?(console.warn('[expo-image-picker] `ImagePicker.MediaTypeOptions` have been deprecated. Use `ImagePicker.MediaType` or an array of `ImagePicker.MediaType` instead.'),{Images:['images'],Videos:['videos'],All:['images','videos']}[p]):'string'==typeof p?[p]:p}},517,[518]);
570
570
  __d(function(g,r,i,a,m,e,d){"use strict";var t,n,o,u,c,l;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MediaTypeOptions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"VideoExportPreset",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UIImagePickerControllerQualityType",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"UIImagePickerPresentationStyle",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"UIImagePickerPreferredAssetRepresentationMode",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"CameraType",{enumerable:!0,get:function(){return l}}),(function(t){t.All="All",t.Videos="Videos",t.Images="Images"})(t||(t={})),(function(t){t[t.Passthrough=0]="Passthrough",t[t.LowQuality=1]="LowQuality",t[t.MediumQuality=2]="MediumQuality",t[t.HighestQuality=3]="HighestQuality",t[t.H264_640x480=4]="H264_640x480",t[t.H264_960x540=5]="H264_960x540",t[t.H264_1280x720=6]="H264_1280x720",t[t.H264_1920x1080=7]="H264_1920x1080",t[t.H264_3840x2160=8]="H264_3840x2160",t[t.HEVC_1920x1080=9]="HEVC_1920x1080",t[t.HEVC_3840x2160=10]="HEVC_3840x2160"})(n||(n={})),(function(t){t[t.High=0]="High",t[t.Medium=1]="Medium",t[t.Low=2]="Low",t[t.VGA640x480=3]="VGA640x480",t[t.IFrame1280x720=4]="IFrame1280x720",t[t.IFrame960x540=5]="IFrame960x540"})(o||(o={})),(function(t){t.FULL_SCREEN="fullScreen",t.PAGE_SHEET="pageSheet",t.FORM_SHEET="formSheet",t.CURRENT_CONTEXT="currentContext",t.OVER_FULL_SCREEN="overFullScreen",t.OVER_CURRENT_CONTEXT="overCurrentContext",t.POPOVER="popover",t.AUTOMATIC="automatic"})(u||(u={})),(function(t){t.Automatic="automatic",t.Compatible="compatible",t.Current="current"})(c||(c={})),(function(t){t.back="back",t.front="front"})(l||(l={}))},518,[]);
571
571
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPACING",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"LAYOUT",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"COLORS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"TYPOGRAPHY",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"SIZES",{enumerable:!0,get:function(){return D}});var T={XS:4,SM:8,MD:12,LG:16,XL:20,XXL:24},_={CONTENT_PADDING_H:T.LG,SECTION_PADDING_V:T.MD,ELEMENT_GAP:T.MD,BORDER_RADIUS_LG:32,BORDER_RADIUS_MD:20,BORDER_RADIUS_SM:14},E={BACKGROUND:"#000",BACKGROUND_ELEVATED:"rgba(255,255,255,0.03)",BACKGROUND_INTERACTIVE:"rgba(255,255,255,0.08)",BACKGROUND_INPUT:"rgba(255,255,255,0.1)",BACKGROUND_BUTTON:"rgba(255,255,255,0.15)",TEXT_PRIMARY:"#fff",TEXT_SECONDARY:"rgba(255,255,255,0.6)",TEXT_TERTIARY:"rgba(255,255,255,0.5)",TEXT_MUTED:"rgba(255,255,255,0.4)",BORDER:"rgba(255,255,255,0.08)",STATUS_SUCCESS:"#30D158",STATUS_ERROR:"#FF3B30",STATUS_INFO:"#007AFF",STATUS_NEUTRAL:"#8E8E93"},S={SIZE_XS:11,SIZE_SM:13,SIZE_MD:14,SIZE_LG:15,SIZE_XL:17,WEIGHT_NORMAL:"400",WEIGHT_MEDIUM:"500",WEIGHT_SEMIBOLD:"600"},D={STATUS_DOT:8,CLOSE_BUTTON:30,SUBMIT_BUTTON:40,CTA_PADDING_V:6,CTA_PADDING_H:12}},519,[]);
572
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.ResponseArea=function(e){var t=e.messages,c=e.currentParts,h=(0,o.useRef)(null),T=(0,o.useState)(!0),p=(0,n.default)(T,2),y=p[0],C=p[1],S=(0,o.useRef)(0),x=(0,o.useRef)(0),E=(0,o.useCallback)(e=>{var t=e.nativeEvent,n=t.contentOffset,o=t.contentSize,l=t.layoutMeasurement,s=o.height-l.height-n.y;C(s<50)},[]),O=(0,o.useCallback)((e,t)=>{S.current=t},[]),b=(0,o.useCallback)(e=>{x.current=e.nativeEvent.layout.height},[]);(0,o.useEffect)(()=>{if(y){var e=setTimeout(()=>{h.current?.scrollToEnd({animated:!1})},16);return()=>clearTimeout(e)}},[t,c,y]),(0,o.useEffect)(()=>{var e=t[t.length-1];"user_prompt"===e?.type&&(h.current?.scrollToEnd({animated:!0}),C(!0))},[t]),(0,o.useEffect)(()=>{var e=l.Keyboard.addListener("keyboardWillShow",()=>{y&&setTimeout(()=>{h.current?.scrollToEnd({animated:!0})},100)});return()=>e.remove()},[y]);var v=(0,o.useCallback)(()=>{h.current?.scrollToEnd({animated:!0}),C(!0)},[]);if(!(t.length>0||c.length>0))return(0,u.jsx)(l.View,{style:f.emptyContainer,children:(0,u.jsx)(l.Text,{style:f.emptyText,children:"Send a prompt to start coding with Claude"})});return(0,u.jsxs)(l.View,{style:f.wrapper,children:[(0,u.jsxs)(l.ScrollView,{ref:h,style:f.container,contentContainerStyle:f.content,showsVerticalScrollIndicator:!0,onScroll:E,onContentSizeChange:O,onLayout:b,scrollEventThrottle:16,children:[t.map((e,t)=>(0,u.jsx)(s.MessageItem,{message:e},t)),c.length>0&&(0,u.jsx)(s.PartsRenderer,{parts:c,isStreaming:!0})]}),!y&&(0,u.jsx)(l.TouchableOpacity,{style:f.scrollButton,onPress:v,activeOpacity:.8,children:(0,u.jsx)(l.Text,{style:f.scrollButtonText,children:"\u2193"})})]})};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),l=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]);var f=l.StyleSheet.create({wrapper:{flex:1,position:"relative"},container:{flex:1,backgroundColor:c.COLORS.BACKGROUND},content:{padding:c.LAYOUT.CONTENT_PADDING_H,paddingBottom:c.SPACING.XXL},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",padding:c.SPACING.XXL},emptyText:{color:c.COLORS.TEXT_MUTED,fontSize:c.TYPOGRAPHY.SIZE_LG,textAlign:"center",lineHeight:22},scrollButton:{position:"absolute",bottom:c.LAYOUT.CONTENT_PADDING_H,alignSelf:"center",left:"50%",marginLeft:-18,width:36,height:36,borderRadius:18,backgroundColor:"rgba(255,255,255,0.12)",borderWidth:1,borderColor:"rgba(255,255,255,0.2)",alignItems:"center",justifyContent:"center"},scrollButtonText:{color:c.COLORS.TEXT_PRIMARY,fontSize:18,fontWeight:c.TYPOGRAPHY.WEIGHT_SEMIBOLD}})},520,[29,63,258,521,519,250]);
573
- __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.MessageItem=function(e){var t=e.message;switch(t.type){case"stream":case"status":default:return null;case"tool":return(0,u.jsx)(P,{tool:t});case"result":return(0,u.jsx)(b,{result:t});case"error":return(0,u.jsx)(n.View,{style:j.errorContainer,children:(0,u.jsx)(n.Text,{style:j.errorText,children:t.message})});case"user_prompt":return(0,u.jsx)(S,{message:t});case"history_result":return(0,u.jsx)(x,{message:t});case"assistant_parts":return(0,u.jsx)(p,{message:t});case"system_message":return(0,u.jsx)(T,{message:t})}},_e.PartsRenderer=f;var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e},l=r(d[1]),n=r(d[2]),i=r(d[3]),o=r(d[4]),u=r(d[5]);function c(e){var t=e.uri,i=(0,l.useState)(!0),c=(0,s.default)(i,2),S=c[0],x=c[1],T=(0,l.useState)(!1),f=(0,s.default)(T,2),p=f[0],h=f[1];return(0,u.jsxs)(n.View,{style:j.userImageThumb,children:[S&&!p&&(0,u.jsx)(n.ActivityIndicator,{size:"small",color:"rgba(255,255,255,0.4)",style:n.StyleSheet.absoluteFill}),p?null:(0,u.jsx)(n.Image,{source:{uri:t},style:[n.StyleSheet.absoluteFill,{borderRadius:o.SPACING.SM}],onLoad:()=>x(!1),onError:()=>{x(!1),h(!0)}})]})}function S(e){var t=e.message;return(0,u.jsxs)(n.View,{style:j.userPromptContainer,children:[t.images&&t.images.length>0&&(0,u.jsx)(n.View,{style:j.userImages,children:t.images.map((e,t)=>(0,u.jsx)(c,{uri:e.uri},t))}),t.content?(0,u.jsx)(n.Text,{style:j.userPromptText,selectable:!0,children:t.content}):null]})}function x(e){var t=e.message;return(0,u.jsx)(n.View,{style:j.resultContainer,children:(0,u.jsx)(i.FormattedText,{content:t.content})})}function T(e){var t=e.message;return"error"===t.messageType?(0,u.jsx)(n.View,{style:j.errorContainer,children:(0,u.jsx)(n.Text,{style:j.errorText,children:t.content})}):(0,u.jsx)(n.View,{style:j.systemContainer,children:(0,u.jsx)(n.Text,{style:j.systemText,children:t.content})})}function f(e){var t=e.parts,s=e.isStreaming;return(0,u.jsx)(n.View,{style:j.partsContainer,children:t.map((e,l)=>{if("text"===e.type){var o=l===t.length-1;return(0,u.jsx)(n.View,{style:j.messageContainer,children:(0,u.jsx)(i.FormattedText,{content:e.content,isStreaming:s&&o})},e.id)}return"tool"===e.type?(0,u.jsx)(C,{part:e},e.id):null})})}function p(e){var t=e.message;return(0,u.jsxs)(n.View,{style:j.resultContainer,children:[(0,u.jsx)(f,{parts:t.parts,isStreaming:!1}),!t.isComplete&&(0,u.jsx)(n.Text,{style:j.interruptedText,children:"(interrupted)"})]})}function h(e,t){var s=e=>e.split('/').pop()||e;switch(e){case"Read":return{label:"read",value:s(t?.file_path||"file")};case"Edit":return{label:"edit",value:s(t?.file_path||"file")};case"Write":return{label:"write",value:s(t?.file_path||"file")};case"Bash":var l=t?.command||"";return{label:"$",value:l.length>45?l.slice(0,45)+"\u2026":l};case"Glob":return{label:"glob",value:t?.pattern||"*"};case"Grep":return{label:"grep",value:t?.pattern||"search"};case"Task":return{label:"agent",value:t?.description||"task"};default:return{label:e.toLowerCase(),value:""}}}function y(e){var t=e.toolName,s=e.input,l=e.isFailed,i=h(t,s),o=i.label,c=i.value;return(0,u.jsxs)(n.View,{style:j.toolLine,children:[(0,u.jsx)(n.Text,{style:l?j.toolLabelFailed:j.toolLabel,children:o}),(0,u.jsx)(n.Text,{style:l?j.toolValueFailed:j.toolValue,numberOfLines:1,children:c}),l&&(0,u.jsx)(n.Text,{style:j.toolLabelFailed,children:" \u2715"})]})}function C(e){var t=e.part;return"started"===t.status?null:(0,u.jsx)(y,{toolName:t.toolName,input:t.input,isFailed:"failed"===t.status})}function P(e){var t=e.tool;return"started"===t.status?null:(0,u.jsx)(y,{toolName:t.toolName,input:t.input,isFailed:"failed"===t.status})}function b(e){var t=e.result;return!t.success&&t.error?(0,u.jsx)(n.View,{style:j.errorContainer,children:(0,u.jsx)(n.Text,{style:j.errorText,children:t.error})}):(0,u.jsxs)(n.View,{style:j.resultContainer,children:[t.result&&(0,u.jsx)(n.Text,{style:j.responseText,selectable:!0,children:t.result}),void 0!==t.durationMs&&(0,u.jsx)(n.Text,{style:j.metaText,children:`${t.durationMs}ms`})]})}var j=n.StyleSheet.create({messageContainer:{flexDirection:"row",flexWrap:"wrap"},responseText:{color:"rgba(255,255,255,0.95)",fontSize:o.TYPOGRAPHY.SIZE_LG,lineHeight:22},resultContainer:{marginTop:o.SPACING.SM},partsContainer:{},interruptedText:{color:o.COLORS.TEXT_MUTED,fontSize:o.TYPOGRAPHY.SIZE_XS+1,fontStyle:"italic",marginTop:o.SPACING.XS},metaText:{color:o.COLORS.TEXT_MUTED,fontSize:o.TYPOGRAPHY.SIZE_XS+1,marginTop:o.SPACING.SM+2},errorContainer:{backgroundColor:"rgba(255,59,48,0.15)",borderRadius:o.SPACING.MD,padding:o.SPACING.MD,marginVertical:o.SPACING.SM-2},errorText:{color:"#FF6B6B",fontSize:o.TYPOGRAPHY.SIZE_MD},systemContainer:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:o.SPACING.MD,padding:o.SPACING.MD,marginVertical:o.SPACING.SM-2},systemText:{color:o.COLORS.TEXT_TERTIARY,fontSize:o.TYPOGRAPHY.SIZE_MD,fontStyle:"italic"},toolLine:{flexDirection:"row",alignItems:"center",marginVertical:o.SPACING.XS},toolLabel:{color:o.COLORS.TEXT_MUTED,fontSize:o.TYPOGRAPHY.SIZE_XS+1,fontFamily:"Menlo",marginRight:o.SPACING.SM,minWidth:36},toolLabelFailed:{color:"rgba(255,100,100,0.6)",fontSize:o.TYPOGRAPHY.SIZE_XS+1,fontFamily:"Menlo",marginRight:o.SPACING.SM,minWidth:36},toolValue:{color:"rgba(255,255,255,0.7)",fontSize:o.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo",flexShrink:1},toolValueFailed:{color:"rgba(255,100,100,0.7)",fontSize:o.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo",flexShrink:1},userPromptContainer:{backgroundColor:"rgba(0,122,255,0.15)",borderRadius:o.LAYOUT.BORDER_RADIUS_SM+2,padding:o.SPACING.MD,marginVertical:o.SPACING.SM,alignSelf:"flex-end",maxWidth:"85%"},userPromptText:{color:o.COLORS.TEXT_PRIMARY,fontSize:o.TYPOGRAPHY.SIZE_LG,lineHeight:20},userImages:{flexDirection:"row",flexWrap:"wrap",gap:o.SPACING.SM,marginBottom:o.SPACING.SM},userImageThumb:{width:80,height:80,borderRadius:o.SPACING.SM,backgroundColor:"rgba(255,255,255,0.1)",overflow:"hidden",justifyContent:"center",alignItems:"center"}})},521,[29,63,258,522,519,250]);
572
+ __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.ResponseArea=function(e){var t=e.messages,l=e.currentParts,f=e.status,p=(0,i.useRef)(null),T=(0,i.useState)(!0),y=(0,n.default)(T,2),C=y[0],S=y[1],v=(0,i.useRef)(0),E=(0,i.useRef)(0),x=(0,i.useCallback)(e=>{var t=e.nativeEvent,n=t.contentOffset,i=t.contentSize,o=t.layoutMeasurement,s=i.height-o.height-n.y;S(s<50)},[]),A=(0,i.useCallback)((e,t)=>{v.current=t},[]),O=(0,i.useCallback)(e=>{E.current=e.nativeEvent.layout.height},[]);(0,i.useEffect)(()=>{if(C){var e=setTimeout(()=>{p.current?.scrollToEnd({animated:!1})},16);return()=>clearTimeout(e)}},[t,l,C]),(0,i.useEffect)(()=>{var e=t[t.length-1];"user_prompt"===e?.type&&(p.current?.scrollToEnd({animated:!0}),S(!0))},[t]),(0,i.useEffect)(()=>{var e=o.Keyboard.addListener("keyboardWillShow",()=>{C&&setTimeout(()=>{p.current?.scrollToEnd({animated:!0})},100)});return()=>e.remove()},[C]);var b=(0,i.useCallback)(()=>{p.current?.scrollToEnd({animated:!0}),S(!0)},[]);if(!(t.length>0||l.length>0))return(0,c.jsx)(o.View,{style:h.emptyContainer,children:(0,c.jsx)(o.Text,{style:h.emptyText,children:"Send a prompt to start coding with Claude"})});return(0,c.jsxs)(o.View,{style:h.wrapper,children:[(0,c.jsxs)(o.ScrollView,{ref:p,style:h.container,contentContainerStyle:h.content,showsVerticalScrollIndicator:!0,onScroll:x,onContentSizeChange:A,onLayout:O,scrollEventThrottle:16,children:[t.map((e,t)=>(0,c.jsx)(s.MessageItem,{message:e},t)),l.length>0&&(0,c.jsx)(s.PartsRenderer,{parts:l,isStreaming:!0}),"processing"===f&&0===l.length&&(0,c.jsx)(u,{})]}),!C&&(0,c.jsx)(o.TouchableOpacity,{style:h.scrollButton,onPress:b,activeOpacity:.8,children:(0,c.jsx)(o.Text,{style:h.scrollButtonText,children:"\u2193"})})]})};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},i=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]);function u(){var e=(0,i.useRef)(new o.Animated.Value(.3)).current,t=(0,i.useRef)(new o.Animated.Value(.3)).current,n=(0,i.useRef)(new o.Animated.Value(.3)).current;return(0,i.useEffect)(()=>{var i=(e,t)=>o.Animated.loop(o.Animated.sequence([o.Animated.delay(t),o.Animated.timing(e,{toValue:1,duration:400,easing:o.Easing.ease,useNativeDriver:!0}),o.Animated.timing(e,{toValue:.3,duration:400,easing:o.Easing.ease,useNativeDriver:!0})])),s=i(e,0),l=i(t,150),c=i(n,300);return s.start(),l.start(),c.start(),()=>{s.stop(),l.stop(),c.stop()}},[e,t,n]),(0,c.jsx)(o.View,{style:h.thinkingContainer,children:[e,t,n].map((e,t)=>(0,c.jsx)(o.Animated.View,{style:[h.thinkingDot,{opacity:e}]},t))})}var h=o.StyleSheet.create({wrapper:{flex:1,position:"relative"},container:{flex:1,backgroundColor:l.COLORS.BACKGROUND},content:{padding:l.LAYOUT.CONTENT_PADDING_H,paddingBottom:l.SPACING.XXL},thinkingContainer:{flexDirection:"row",gap:6,paddingVertical:l.SPACING.MD},thinkingDot:{width:6,height:6,borderRadius:3,backgroundColor:l.COLORS.TEXT_MUTED},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",padding:l.SPACING.XXL},emptyText:{color:l.COLORS.TEXT_MUTED,fontSize:l.TYPOGRAPHY.SIZE_LG,textAlign:"center",lineHeight:22},scrollButton:{position:"absolute",bottom:l.LAYOUT.CONTENT_PADDING_H,alignSelf:"center",left:"50%",marginLeft:-18,width:36,height:36,borderRadius:18,backgroundColor:"rgba(255,255,255,0.12)",borderWidth:1,borderColor:"rgba(255,255,255,0.2)",alignItems:"center",justifyContent:"center"},scrollButtonText:{color:l.COLORS.TEXT_PRIMARY,fontSize:18,fontWeight:l.TYPOGRAPHY.WEIGHT_SEMIBOLD}})},520,[29,63,258,521,519,250]);
573
+ __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.MessageItem=function(e){var t=e.message;switch(t.type){case"stream":case"status":default:return null;case"tool":return(0,u.jsx)(C,{tool:t});case"result":return(0,u.jsx)(b,{result:t});case"error":return(0,u.jsx)(l.View,{style:j.errorContainer,children:(0,u.jsx)(l.Text,{style:j.errorText,children:t.message})});case"user_prompt":return(0,u.jsx)(S,{message:t});case"history_result":return(0,u.jsx)(x,{message:t});case"assistant_parts":return(0,u.jsx)(f,{message:t});case"system_message":return(0,u.jsx)(T,{message:t})}},_e.PartsRenderer=p;var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),l=r(d[2]),i=r(d[3]),o=r(d[4]),u=r(d[5]);function c(e){var t=e.uri,i=(0,s.useState)(!0),c=(0,n.default)(i,2),S=c[0],x=c[1],T=(0,s.useState)(!1),p=(0,n.default)(T,2),f=p[0],h=p[1];return(0,u.jsxs)(l.View,{style:j.userImageThumb,children:[S&&!f&&(0,u.jsx)(l.ActivityIndicator,{size:"small",color:"rgba(255,255,255,0.4)",style:l.StyleSheet.absoluteFill}),f?null:(0,u.jsx)(l.Image,{source:{uri:t},style:[l.StyleSheet.absoluteFill,{borderRadius:o.SPACING.SM}],onLoad:()=>x(!1),onError:()=>{x(!1),h(!0)}})]})}function S(e){var t=e.message;return(0,u.jsxs)(l.View,{style:[j.userPromptContainer,t.pending&&j.userPromptPending],children:[t.images&&t.images.length>0&&(0,u.jsx)(l.View,{style:j.userImages,children:t.images.map((e,t)=>(0,u.jsx)(c,{uri:e.uri},t))}),t.content?(0,u.jsx)(l.Text,{style:j.userPromptText,selectable:!0,children:t.content}):null]})}function x(e){var t=e.message;return(0,u.jsx)(l.View,{style:j.resultContainer,children:(0,u.jsx)(i.FormattedText,{content:t.content})})}function T(e){var t=e.message;return"error"===t.messageType?(0,u.jsx)(l.View,{style:j.errorContainer,children:(0,u.jsx)(l.Text,{style:j.errorText,children:t.content})}):(0,u.jsx)(l.View,{style:j.systemContainer,children:(0,u.jsx)(l.Text,{style:j.systemText,children:t.content})})}function p(e){var t=e.parts,n=e.isStreaming;return(0,u.jsx)(l.View,{style:j.partsContainer,children:t.map((e,s)=>{if("text"===e.type){var o=s===t.length-1;return(0,u.jsx)(l.View,{style:j.messageContainer,children:(0,u.jsx)(i.FormattedText,{content:e.content,isStreaming:n&&o})},e.id)}return"tool"===e.type?(0,u.jsx)(P,{part:e},e.id):null})})}function f(e){var t=e.message;return(0,u.jsxs)(l.View,{style:j.resultContainer,children:[(0,u.jsx)(p,{parts:t.parts,isStreaming:!1}),!t.isComplete&&(0,u.jsx)(l.Text,{style:j.interruptedText,children:"(interrupted)"})]})}function h(e,t){var n=e=>e.split('/').pop()||e;switch(e){case"Read":return{label:"read",value:n(t?.file_path||"file")};case"Edit":return{label:"edit",value:n(t?.file_path||"file")};case"Write":return{label:"write",value:n(t?.file_path||"file")};case"Bash":var s=t?.command||"";return{label:"$",value:s.length>45?s.slice(0,45)+"\u2026":s};case"Glob":return{label:"glob",value:t?.pattern||"*"};case"Grep":return{label:"grep",value:t?.pattern||"search"};case"Task":return{label:"agent",value:t?.description||"task"};default:return{label:e.toLowerCase(),value:""}}}function y(e){var t=e.toolName,n=e.input,s=e.isFailed,i=h(t,n),o=i.label,c=i.value;return(0,u.jsxs)(l.View,{style:j.toolLine,children:[(0,u.jsx)(l.Text,{style:s?j.toolLabelFailed:j.toolLabel,children:o}),(0,u.jsx)(l.Text,{style:s?j.toolValueFailed:j.toolValue,numberOfLines:1,children:c}),s&&(0,u.jsx)(l.Text,{style:j.toolLabelFailed,children:" \u2715"})]})}function P(e){var t=e.part;return"started"===t.status?null:(0,u.jsx)(y,{toolName:t.toolName,input:t.input,isFailed:"failed"===t.status})}function C(e){var t=e.tool;return"started"===t.status?null:(0,u.jsx)(y,{toolName:t.toolName,input:t.input,isFailed:"failed"===t.status})}function b(e){var t=e.result;return!t.success&&t.error?(0,u.jsx)(l.View,{style:j.errorContainer,children:(0,u.jsx)(l.Text,{style:j.errorText,children:t.error})}):(0,u.jsxs)(l.View,{style:j.resultContainer,children:[t.result&&(0,u.jsx)(l.Text,{style:j.responseText,selectable:!0,children:t.result}),void 0!==t.durationMs&&(0,u.jsx)(l.Text,{style:j.metaText,children:`${t.durationMs}ms`})]})}var j=l.StyleSheet.create({messageContainer:{flexDirection:"row",flexWrap:"wrap"},responseText:{color:"rgba(255,255,255,0.95)",fontSize:o.TYPOGRAPHY.SIZE_LG,lineHeight:22},resultContainer:{marginTop:o.SPACING.SM},partsContainer:{},interruptedText:{color:o.COLORS.TEXT_MUTED,fontSize:o.TYPOGRAPHY.SIZE_XS+1,fontStyle:"italic",marginTop:o.SPACING.XS},metaText:{color:o.COLORS.TEXT_MUTED,fontSize:o.TYPOGRAPHY.SIZE_XS+1,marginTop:o.SPACING.SM+2},errorContainer:{backgroundColor:"rgba(255,59,48,0.15)",borderRadius:o.SPACING.MD,padding:o.SPACING.MD,marginVertical:o.SPACING.SM-2},errorText:{color:"#FF6B6B",fontSize:o.TYPOGRAPHY.SIZE_MD},systemContainer:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:o.SPACING.MD,padding:o.SPACING.MD,marginVertical:o.SPACING.SM-2},systemText:{color:o.COLORS.TEXT_TERTIARY,fontSize:o.TYPOGRAPHY.SIZE_MD,fontStyle:"italic"},toolLine:{flexDirection:"row",alignItems:"center",marginVertical:o.SPACING.XS},toolLabel:{color:o.COLORS.TEXT_MUTED,fontSize:o.TYPOGRAPHY.SIZE_XS+1,fontFamily:"Menlo",marginRight:o.SPACING.SM,minWidth:36},toolLabelFailed:{color:"rgba(255,100,100,0.6)",fontSize:o.TYPOGRAPHY.SIZE_XS+1,fontFamily:"Menlo",marginRight:o.SPACING.SM,minWidth:36},toolValue:{color:"rgba(255,255,255,0.7)",fontSize:o.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo",flexShrink:1},toolValueFailed:{color:"rgba(255,100,100,0.7)",fontSize:o.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo",flexShrink:1},userPromptContainer:{backgroundColor:"rgba(0,122,255,0.15)",borderRadius:o.LAYOUT.BORDER_RADIUS_SM+2,padding:o.SPACING.MD,marginVertical:o.SPACING.SM,alignSelf:"flex-end",maxWidth:"85%"},userPromptPending:{opacity:.7},userPromptText:{color:o.COLORS.TEXT_PRIMARY,fontSize:o.TYPOGRAPHY.SIZE_LG,lineHeight:20},userImages:{flexDirection:"row",flexWrap:"wrap",gap:o.SPACING.SM,marginBottom:o.SPACING.SM},userImageThumb:{width:80,height:80,borderRadius:o.SPACING.SM,backgroundColor:"rgba(255,255,255,0.1)",overflow:"hidden",justifyContent:"center",alignItems:"center"}})},521,[29,63,258,522,519,250]);
574
574
  __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.FormattedText=function(e){var i=e.content,h=e.isStreaming,c=i.split('\n'),S=[],x=0;for(;x<c.length;){var u=c[x],P=u.trim();if(P.startsWith('```')){var f=[],G=P.slice(3).trim();for(x++;x<c.length&&!c[x].trim().startsWith('```');)f.push(c[x]),x++;S.push((0,o.jsxs)(l.View,{style:T.codeBlock,children:[G&&(0,o.jsx)(l.Text,{style:T.codeLang,children:G}),(0,o.jsx)(l.Text,{style:T.codeText,selectable:!0,children:f.join('\n')})]},`code-${x}`)),x++}else{var I=P.match(/^(#{1,6})\s+(.+)$/);if(I){var O=I[1].length,A=O<=2?T.heading1:O<=4?T.heading2:T.heading3;S.push((0,o.jsx)(l.Text,{style:A,selectable:!0,children:s(I[2])},x)),x++}else if(P.startsWith('> ')||'>'===P){for(var C=[];x<c.length&&(c[x].trim().startsWith('> ')||'>'===c[x].trim());){var R=c[x].trim().startsWith('> ')?c[x].trim().slice(2):'';C.push(R),x++}S.push((0,o.jsx)(l.View,{style:T.blockquote,children:(0,o.jsx)(l.Text,{style:T.blockquoteText,selectable:!0,children:s(C.join('\n'))})},`quote-${x}`))}else{var p=P.match(/^[-*]\s+\[([ xX])\]\s+(.+)$/);if(p){var L=' '!==p[1];S.push((0,o.jsxs)(l.View,{style:T.listItem,children:[(0,o.jsx)(l.Text,{style:T.listBullet,children:L?'\u2611':'\u2610'}),(0,o.jsx)(l.Text,{style:T.listText,selectable:!0,children:s(p[2])})]},x)),x++}else{var Y=u.match(/^(\s*)(\d+)\.\s+(.+)$/);if(Y){var E=Math.floor(Y[1].length/2),M=(0,t.default)(Y,4),b=M[2],y=M[3];S.push((0,o.jsxs)(l.View,{style:[T.listItem,E>0&&{paddingLeft:n.SPACING.SM+E*n.SPACING.LG}],children:[(0,o.jsxs)(l.Text,{style:T.listNumber,children:[b,"."]}),(0,o.jsx)(l.Text,{style:T.listText,selectable:!0,children:s(y)})]},x)),x++}else{var _=u.match(/^(\s*)[-*]\s+(.+)$/);if(_){var H=Math.floor(_[1].length/2),j=0===H?'\u2022':1===H?'\u25e6':'\u25aa';S.push((0,o.jsxs)(l.View,{style:[T.listItem,H>0&&{paddingLeft:n.SPACING.SM+H*n.SPACING.LG}],children:[(0,o.jsx)(l.Text,{style:T.listBullet,children:j}),(0,o.jsx)(l.Text,{style:T.listText,selectable:!0,children:s(_[2])})]},x)),x++}else/^[-*_]{3,}$/.test(P)?(S.push((0,o.jsx)(l.View,{style:T.horizontalRule},x)),x++):P?(S.push((0,o.jsx)(l.Text,{style:T.responseText,selectable:!0,children:s(u)},x)),x++):(S.push((0,o.jsx)(l.View,{style:T.paragraphBreak},x)),x++)}}}}}return(0,o.jsxs)(l.View,{style:T.formattedContainer,children:[S,h&&(0,o.jsx)(l.View,{style:T.cursor})]})};var t=e(r(d[0])),i=e(r(d[1])),l=r(d[2]),n=r(d[3]),o=r(d[4]);function s(e){var t=e.split(/(`[^`]+`)/g);return 1===t.length?h(e):t.map((e,t)=>e.startsWith('`')&&e.endsWith('`')?(0,o.jsx)(l.Text,{style:T.inlineCode,children:e.slice(1,-1)},t):(0,o.jsx)(i.default.Fragment,{children:h(e)},t))}function h(e){var t=e.split(/(\[[^\]]+\]\([^)]+\))/g);return 1===t.length?c(e):t.map((e,t)=>{var n=e.match(/^\[([^\]]+)\]\(([^)]+)\)$/);return n?(0,o.jsx)(l.Text,{style:T.linkText,onPress:()=>l.Linking.openURL(n[2]),children:n[1]},t):(0,o.jsx)(i.default.Fragment,{children:c(e)},t)})}function c(e){var t=e.split(/(\*\*[^*]+\*\*|~~[^~]+~~|\*[^*]+\*)/g);return 1===t.length?e:t.map((e,t)=>e.startsWith('**')&&e.endsWith('**')?(0,o.jsx)(l.Text,{style:T.boldText,children:e.slice(2,-2)},t):e.startsWith('~~')&&e.endsWith('~~')?(0,o.jsx)(l.Text,{style:T.strikethroughText,children:e.slice(2,-2)},t):e.startsWith('*')&&e.endsWith('*')?(0,o.jsx)(l.Text,{style:T.italicText,children:e.slice(1,-1)},t):e)}var T=l.StyleSheet.create({formattedContainer:{flexDirection:"column"},responseText:{color:"rgba(255,255,255,0.95)",fontSize:n.TYPOGRAPHY.SIZE_LG,lineHeight:22},cursor:{width:2,height:18,backgroundColor:n.COLORS.TEXT_PRIMARY,marginLeft:2,opacity:.7},listItem:{flexDirection:"row",marginVertical:n.SPACING.XS/2,paddingLeft:n.SPACING.SM},listNumber:{color:n.COLORS.TEXT_MUTED,fontSize:n.TYPOGRAPHY.SIZE_LG,lineHeight:22,width:24,fontWeight:n.TYPOGRAPHY.WEIGHT_MEDIUM},listBullet:{color:n.COLORS.TEXT_MUTED,fontSize:n.TYPOGRAPHY.SIZE_LG,lineHeight:22,width:18},listText:{flex:1,color:"rgba(255,255,255,0.95)",fontSize:n.TYPOGRAPHY.SIZE_LG,lineHeight:22},codeBlock:{backgroundColor:"rgba(255,255,255,0.06)",borderRadius:n.SPACING.SM,padding:n.SPACING.MD,marginVertical:n.SPACING.SM},codeLang:{color:n.COLORS.TEXT_MUTED,fontSize:n.TYPOGRAPHY.SIZE_XS,fontFamily:"Menlo",marginBottom:n.SPACING.XS,textTransform:"uppercase"},codeText:{color:"rgba(255,255,255,0.85)",fontSize:n.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo",lineHeight:18},inlineCode:{backgroundColor:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.9)",fontFamily:"Menlo",fontSize:n.TYPOGRAPHY.SIZE_MD,paddingHorizontal:4,borderRadius:3},heading1:{color:n.COLORS.TEXT_PRIMARY,fontSize:n.TYPOGRAPHY.SIZE_XL,fontWeight:n.TYPOGRAPHY.WEIGHT_SEMIBOLD,lineHeight:24,marginTop:n.SPACING.MD,marginBottom:n.SPACING.XS},heading2:{color:"rgba(255,255,255,0.9)",fontSize:n.TYPOGRAPHY.SIZE_LG,fontWeight:n.TYPOGRAPHY.WEIGHT_SEMIBOLD,lineHeight:22,marginTop:n.SPACING.SM,marginBottom:n.SPACING.XS},heading3:{color:"rgba(255,255,255,0.85)",fontSize:n.TYPOGRAPHY.SIZE_LG,fontWeight:n.TYPOGRAPHY.WEIGHT_MEDIUM,lineHeight:22,marginTop:n.SPACING.SM,marginBottom:n.SPACING.XS},boldText:{fontWeight:n.TYPOGRAPHY.WEIGHT_SEMIBOLD,color:n.COLORS.TEXT_PRIMARY},italicText:{fontStyle:"italic",color:"rgba(255,255,255,0.85)"},strikethroughText:{textDecorationLine:"line-through",color:n.COLORS.TEXT_MUTED},linkText:{color:n.COLORS.STATUS_INFO,textDecorationLine:"underline"},blockquote:{borderLeftWidth:3,borderLeftColor:"rgba(255,255,255,0.15)",paddingLeft:n.SPACING.MD,marginVertical:n.SPACING.XS},blockquoteText:{color:n.COLORS.TEXT_SECONDARY,fontSize:n.TYPOGRAPHY.SIZE_LG,lineHeight:22,fontStyle:"italic"},horizontalRule:{height:1,backgroundColor:n.COLORS.BORDER,marginVertical:n.SPACING.MD},paragraphBreak:{height:n.SPACING.SM}})},522,[29,63,258,519,250]);
575
575
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.GitChangesTab=function(c){var f=c.changes,x=c.onDiscard;if(!(f.length>0))return(0,n.jsxs)(t.View,{style:s.emptyContainer,children:[(0,n.jsx)(t.Text,{style:s.emptyTitle,children:"No uncommitted changes"}),(0,n.jsx)(t.Text,{style:s.emptySubtext,children:"Your working directory is clean"})]});return(0,n.jsxs)(t.View,{style:s.container,children:[(0,n.jsx)(t.ScrollView,{style:s.fileList,contentContainerStyle:s.fileListContent,children:f.map((c,f)=>(0,n.jsxs)(t.View,{style:s.fileRow,children:[(0,n.jsx)(t.Text,{style:[s.statusIcon,{color:l[c.status]}],children:o[c.status]}),(0,n.jsx)(t.Text,{style:s.fileName,numberOfLines:1,children:c.file})]},`${c.file}-${f}`))}),(0,n.jsxs)(t.View,{style:s.footer,children:[(0,n.jsx)(t.TouchableOpacity,{style:s.discardButton,onPress:x,children:(0,n.jsx)(t.Text,{style:s.discardText,children:"Discard All Changes"})}),(0,n.jsx)(t.Text,{style:s.warningText,children:"Note: Discarding won't reset memory"})]})]})},r(d[0]);var t=r(d[1]),n=r(d[2]),o={added:"A",modified:"M",deleted:"D",renamed:"R",untracked:"?"},l={added:"#30D158",modified:"#FFD60A",deleted:"#FF453A",renamed:"#BF5AF2",untracked:"#8E8E93"};var s=t.StyleSheet.create({container:{flex:1,backgroundColor:"#000"},emptyContainer:{flex:1,backgroundColor:"#000",alignItems:"center",justifyContent:"center",padding:24},emptyTitle:{color:"rgba(255,255,255,0.6)",fontSize:16,fontWeight:"500",marginBottom:8},emptySubtext:{color:"rgba(255,255,255,0.4)",fontSize:14},fileList:{flex:1},fileListContent:{padding:16},fileRow:{flexDirection:"row",alignItems:"center",paddingVertical:8,borderBottomWidth:1,borderBottomColor:"rgba(255,255,255,0.06)"},statusIcon:{width:20,fontSize:13,fontWeight:"600",fontFamily:"Menlo"},fileName:{flex:1,color:"rgba(255,255,255,0.8)",fontSize:14,fontFamily:"Menlo"},footer:{padding:16,borderTopWidth:1,borderTopColor:"rgba(255,255,255,0.08)",alignItems:"center"},discardButton:{backgroundColor:"rgba(255,59,48,0.15)",borderRadius:12,paddingVertical:12,paddingHorizontal:24,marginBottom:8},discardText:{color:"#FF3B30",fontSize:15,fontWeight:"500"},warningText:{color:"rgba(255,255,255,0.3)",fontSize:12}})},523,[63,258,250]);
576
576
  __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.BranchSwitcher=function(e){var t=e.branches,s=e.currentBranch,S=e.loading,b=e.onSelect,C=e.onCreate,p=e.onClose,I=e.error,P=(0,o.useState)(!1),x=(0,n.default)(P,2),f=x[0],A=x[1],O=(0,o.useState)(""),R=(0,n.default)(O,2),G=R[0],y=R[1],M=u(t,""),E=()=>{var e=G.trim();e&&(C(e),y(""),A(!1))},H=(e,t)=>{var n=e.name===s;return(0,c.jsxs)(i.TouchableOpacity,{style:[T.branchItem,n&&T.branchItemCurrent,t&&T.branchItemFirst],onPress:()=>{n||b(e.name)},activeOpacity:n?1:.6,children:[(0,c.jsxs)(i.View,{style:T.branchInfo,children:[(0,c.jsx)(i.Text,{style:[T.branchName,n&&T.branchNameCurrent],numberOfLines:1,children:e.name}),e.prNumber&&(0,c.jsx)(i.View,{style:T.prBadge,children:(0,c.jsxs)(i.Text,{style:T.prBadgeText,children:["#",e.prNumber]})}),e.isRemote&&(0,c.jsx)(i.View,{style:T.remoteBadge,children:(0,c.jsx)(i.Text,{style:T.remoteBadgeText,children:"remote"})})]}),n&&(0,c.jsx)(i.Text,{style:T.currentIndicator,children:"\u2713"})]},e.name)};return(0,c.jsxs)(i.View,{style:T.overlay,children:[(0,c.jsx)(i.TouchableOpacity,{style:T.backdrop,onPress:p,activeOpacity:1}),(0,c.jsxs)(i.View,{style:T.dropdown,children:[I&&(0,c.jsx)(i.View,{style:T.errorBanner,children:(0,c.jsx)(i.Text,{style:T.errorText,numberOfLines:2,children:I})}),S&&0===t.length?(0,c.jsx)(i.View,{style:T.loadingContainer,children:(0,c.jsx)(h,{})}):(0,c.jsx)(i.ScrollView,{style:T.branchList,bounces:!1,children:M.map(e=>(0,c.jsxs)(i.View,{children:[(0,c.jsx)(i.View,{style:T.sectionHeader,children:(0,c.jsx)(i.Text,{style:T.sectionHeaderText,children:e.title})}),e.branches.map((e,t)=>H(e,0===t))]},e.title))}),(0,c.jsx)(i.View,{style:T.createSection,children:f?(0,c.jsxs)(i.View,{style:T.createInputRow,children:[(0,c.jsx)(i.TextInput,{style:T.createInput,value:G,onChangeText:y,placeholder:"branch-name",placeholderTextColor:l.COLORS.TEXT_MUTED,autoFocus:!0,autoCapitalize:"none",autoCorrect:!1,onSubmitEditing:E,returnKeyType:"done"}),(0,c.jsx)(i.TouchableOpacity,{style:[T.createConfirmButton,!G.trim()&&T.createConfirmDisabled],onPress:E,disabled:!G.trim(),children:(0,c.jsx)(i.Text,{style:T.createConfirmText,children:"Create"})})]}):(0,c.jsx)(i.TouchableOpacity,{style:T.createButton,onPress:()=>A(!0),children:(0,c.jsx)(i.Text,{style:T.createButtonText,children:"+ New branch from main"})})})]})]})};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),i=r(d[2]),l=r(d[3]),c=r(d[4]),s=["main","master"],S=5;function u(e,t){var n=t.toLowerCase().trim(),o=n?e.filter(e=>e.name.toLowerCase().includes(n)):e,i=o.filter(e=>s.includes(e.name)),l=o.filter(e=>!s.includes(e.name)),c=l.filter(e=>!e.isRemote).slice(0,S),u=new Set(c.map(e=>e.name)),h=l.filter(e=>!u.has(e.name)),T=[];return i.length>0&&T.push({title:"Default",branches:i}),c.length>0&&T.push({title:"Recent",branches:c}),h.length>0&&T.push({title:"Other",branches:h}),T}function h(){var e=(0,o.useRef)(new i.Animated.Value(.3)).current,t=(0,o.useRef)(new i.Animated.Value(.3)).current,n=(0,o.useRef)(new i.Animated.Value(.3)).current;return(0,o.useEffect)(()=>{var o=(e,t)=>i.Animated.loop(i.Animated.sequence([i.Animated.delay(t),i.Animated.timing(e,{toValue:1,duration:300,easing:i.Easing.inOut(i.Easing.ease),useNativeDriver:!0}),i.Animated.timing(e,{toValue:.3,duration:300,easing:i.Easing.inOut(i.Easing.ease),useNativeDriver:!0})])),l=o(e,0),c=o(t,150),s=o(n,300);return l.start(),c.start(),s.start(),()=>{l.stop(),c.stop(),s.stop()}},[e,t,n]),(0,c.jsx)(i.View,{style:T.loadingDots,children:[e,t,n].map((e,t)=>(0,c.jsx)(i.Animated.View,{style:[T.loadingDot,{opacity:e}]},t))})}var T=i.StyleSheet.create({overlay:{...i.StyleSheet.absoluteFillObject,zIndex:100},backdrop:{...i.StyleSheet.absoluteFillObject,backgroundColor:"rgba(0,0,0,0.3)"},dropdown:{position:"absolute",top:49,left:l.SPACING.SM,right:l.SPACING.SM,maxHeight:"60%",backgroundColor:"#1C1C1E",borderRadius:l.LAYOUT.BORDER_RADIUS_SM,borderWidth:1,borderColor:"rgba(255,255,255,0.12)",overflow:"hidden"},loadingContainer:{paddingVertical:l.SPACING.XL,alignItems:"center",justifyContent:"center"},loadingDots:{flexDirection:"row",gap:6},loadingDot:{width:6,height:6,borderRadius:3,backgroundColor:"rgba(255,255,255,0.5)"},branchList:{maxHeight:300},sectionHeader:{paddingHorizontal:l.SPACING.LG,paddingTop:l.SPACING.MD,paddingBottom:l.SPACING.XS},sectionHeaderText:{color:l.COLORS.TEXT_MUTED,fontSize:l.TYPOGRAPHY.SIZE_XS,fontWeight:l.TYPOGRAPHY.WEIGHT_SEMIBOLD,textTransform:"uppercase",letterSpacing:.5},branchItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:l.SPACING.LG,paddingVertical:l.SPACING.MD+2,borderBottomWidth:i.StyleSheet.hairlineWidth,borderBottomColor:"rgba(255,255,255,0.06)"},branchItemFirst:{paddingTop:l.SPACING.MD+2},branchItemCurrent:{backgroundColor:"rgba(255,255,255,0.06)"},branchInfo:{flex:1,flexDirection:"row",alignItems:"center",gap:l.SPACING.SM},branchName:{color:"rgba(255,255,255,0.85)",fontSize:l.TYPOGRAPHY.SIZE_MD,fontWeight:l.TYPOGRAPHY.WEIGHT_NORMAL,flexShrink:1},branchNameCurrent:{color:l.COLORS.TEXT_PRIMARY,fontWeight:l.TYPOGRAPHY.WEIGHT_MEDIUM},prBadge:{backgroundColor:"rgba(0,122,255,0.15)",paddingHorizontal:l.SPACING.SM,paddingVertical:2,borderRadius:8},prBadgeText:{color:l.COLORS.STATUS_INFO,fontSize:l.TYPOGRAPHY.SIZE_XS,fontWeight:l.TYPOGRAPHY.WEIGHT_MEDIUM},remoteBadge:{backgroundColor:"rgba(255,255,255,0.06)",paddingHorizontal:l.SPACING.SM,paddingVertical:2,borderRadius:8},remoteBadgeText:{color:l.COLORS.TEXT_MUTED,fontSize:l.TYPOGRAPHY.SIZE_XS,fontWeight:l.TYPOGRAPHY.WEIGHT_NORMAL},currentIndicator:{color:l.COLORS.STATUS_SUCCESS,fontSize:l.TYPOGRAPHY.SIZE_SM,marginLeft:l.SPACING.SM},createSection:{paddingHorizontal:l.SPACING.LG,paddingVertical:l.SPACING.MD,borderTopWidth:i.StyleSheet.hairlineWidth,borderTopColor:"rgba(255,255,255,0.08)"},createButton:{paddingVertical:l.SPACING.XS},createButtonText:{color:l.COLORS.STATUS_INFO,fontSize:l.TYPOGRAPHY.SIZE_MD,fontWeight:l.TYPOGRAPHY.WEIGHT_MEDIUM},createInputRow:{flexDirection:"row",alignItems:"center",gap:l.SPACING.SM},createInput:{flex:1,backgroundColor:"rgba(255,255,255,0.08)",color:l.COLORS.TEXT_PRIMARY,fontSize:l.TYPOGRAPHY.SIZE_MD,paddingHorizontal:l.SPACING.MD,paddingVertical:l.SPACING.SM,borderRadius:10},createConfirmButton:{backgroundColor:l.COLORS.STATUS_INFO,paddingHorizontal:l.SPACING.MD,paddingVertical:l.SPACING.SM,borderRadius:10},createConfirmDisabled:{opacity:.4},createConfirmText:{color:l.COLORS.TEXT_PRIMARY,fontSize:l.TYPOGRAPHY.SIZE_SM,fontWeight:l.TYPOGRAPHY.WEIGHT_SEMIBOLD},errorBanner:{backgroundColor:"rgba(255,59,48,0.15)",paddingHorizontal:l.SPACING.LG,paddingVertical:l.SPACING.SM,borderBottomWidth:i.StyleSheet.hairlineWidth,borderBottomColor:"rgba(255,59,48,0.3)"},errorText:{color:"#FF6B6B",fontSize:l.TYPOGRAPHY.SIZE_SM}})},524,[29,63,258,519,250]);
577
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.Header=function(e){var s=e.status,c=e.branchName,l=e.onBranchPress,T={disconnected:n.COLORS.STATUS_ERROR,connecting:n.COLORS.STATUS_INFO,connected:n.COLORS.STATUS_SUCCESS,processing:n.COLORS.STATUS_INFO};return(0,o.jsxs)(t.View,{style:u.header,children:[(0,o.jsx)(t.TouchableOpacity,{onPress:S,style:u.closeButton,children:(0,o.jsx)(t.Text,{style:u.closeButtonText,children:"\u2715"})}),(0,o.jsx)(t.TouchableOpacity,{style:u.branchButton,onPress:l,disabled:!c,children:c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.Text,{style:u.branchName,numberOfLines:1,children:c}),(0,o.jsx)(t.Text,{style:u.branchChevron,children:"\u25be"})]}):(0,o.jsx)(t.View,{style:u.branchLoadingBar})}),(0,o.jsx)(t.View,{style:[u.statusDot,{backgroundColor:T[s]}]})]})},_e.PulsingIndicator=function(c){var l=c.status,S={disconnected:n.COLORS.STATUS_ERROR,connecting:n.COLORS.STATUS_INFO,connected:n.COLORS.STATUS_SUCCESS,processing:n.COLORS.STATUS_INFO},T="processing"===l||"connecting"===l,O=(0,e.useRef)(new t.Animated.Value(1)).current,h=(0,e.useRef)(new t.Animated.Value(.4)).current;return(0,e.useEffect)(()=>{if(T){var e=t.Animated.loop(t.Animated.sequence([t.Animated.parallel([t.Animated.timing(O,{toValue:1.3,duration:1200,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:!0}),t.Animated.timing(h,{toValue:0,duration:1200,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:!0})]),t.Animated.parallel([t.Animated.timing(O,{toValue:1,duration:0,useNativeDriver:!0}),t.Animated.timing(h,{toValue:.4,duration:0,useNativeDriver:!0})])]));return e.start(),()=>e.stop()}O.setValue(1),h.setValue(.4)},[T,O,h]),(0,o.jsxs)(t.View,{style:u.indicatorContainer,children:[(0,o.jsx)(t.View,{style:[u.indicator,{backgroundColor:S[l]}]}),T&&(0,o.jsx)(s,{style:[u.indicatorRing,{borderColor:S[l],transform:[{scale:O}],opacity:h}]})]})};var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=t.Animated.View,c=t.NativeModules.WidgetBridge,l=t.NativeModules.ExpoAir;function S(){try{c?.collapse?c.collapse():l?.collapse?l.collapse():console.warn("[expo-air] No collapse method available")}catch(e){console.warn("[expo-air] Failed to collapse:",e)}}var u=t.StyleSheet.create({header:{flexDirection:"row",alignItems:"center",paddingHorizontal:n.LAYOUT.CONTENT_PADDING_H,paddingVertical:n.SPACING.MD+2,borderBottomWidth:1,borderBottomColor:n.COLORS.BORDER},closeButton:{width:n.SIZES.CLOSE_BUTTON,height:n.SIZES.CLOSE_BUTTON,borderRadius:n.SIZES.CLOSE_BUTTON/2,backgroundColor:"transparent",alignItems:"center",justifyContent:"center",marginRight:n.SPACING.MD},closeButtonText:{color:"transparent",fontSize:n.TYPOGRAPHY.SIZE_MD,fontWeight:n.TYPOGRAPHY.WEIGHT_SEMIBOLD},branchButton:{flex:1,flexDirection:"row",alignItems:"center"},branchName:{flexShrink:1,color:n.COLORS.TEXT_SECONDARY,fontSize:n.TYPOGRAPHY.SIZE_MD,fontWeight:n.TYPOGRAPHY.WEIGHT_MEDIUM},branchChevron:{color:n.COLORS.TEXT_MUTED,fontSize:n.TYPOGRAPHY.SIZE_SM,marginLeft:n.SPACING.XS},branchLoadingBar:{width:80,height:12,borderRadius:6,backgroundColor:"rgba(255,255,255,0.08)"},statusDot:{width:n.SIZES.STATUS_DOT,height:n.SIZES.STATUS_DOT,borderRadius:n.SIZES.STATUS_DOT/2,marginLeft:n.SPACING.MD},collapsedPill:{width:100,height:32,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"},indicatorContainer:{width:20,height:20,alignItems:"center",justifyContent:"center"},indicator:{width:n.SIZES.STATUS_DOT,height:n.SIZES.STATUS_DOT,borderRadius:n.SIZES.STATUS_DOT/2},indicatorRing:{position:"absolute",width:16,height:16,borderRadius:8,borderWidth:1.5,opacity:.4}})},525,[63,258,519,250]);
577
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.Header=function(e){var s=e.status,c=e.branchName,l=e.onBranchPress,u={disconnected:n.COLORS.STATUS_ERROR,connecting:n.COLORS.STATUS_INFO,connected:n.COLORS.STATUS_SUCCESS,sending:n.COLORS.STATUS_INFO,processing:n.COLORS.STATUS_INFO};return(0,o.jsxs)(t.View,{style:T.header,children:[(0,o.jsx)(t.TouchableOpacity,{onPress:S,style:T.closeButton,children:(0,o.jsx)(t.Text,{style:T.closeButtonText,children:"\u2715"})}),(0,o.jsx)(t.TouchableOpacity,{style:T.branchButton,onPress:l,disabled:!c,children:c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.Text,{style:T.branchName,numberOfLines:1,children:c}),(0,o.jsx)(t.Text,{style:T.branchChevron,children:"\u25be"})]}):(0,o.jsx)(t.View,{style:T.branchLoadingBar})}),(0,o.jsx)(t.View,{style:[T.statusDot,{backgroundColor:u[s]}]})]})},_e.PulsingIndicator=function(c){var l=c.status,S={disconnected:n.COLORS.STATUS_ERROR,connecting:n.COLORS.STATUS_INFO,connected:n.COLORS.STATUS_SUCCESS,sending:n.COLORS.STATUS_INFO,processing:n.COLORS.STATUS_INFO},u="processing"===l||"connecting"===l||"sending"===l,O=(0,e.useRef)(new t.Animated.Value(1)).current,h=(0,e.useRef)(new t.Animated.Value(.4)).current;return(0,e.useEffect)(()=>{if(u){var e=t.Animated.loop(t.Animated.sequence([t.Animated.parallel([t.Animated.timing(O,{toValue:1.3,duration:1200,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:!0}),t.Animated.timing(h,{toValue:0,duration:1200,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:!0})]),t.Animated.parallel([t.Animated.timing(O,{toValue:1,duration:0,useNativeDriver:!0}),t.Animated.timing(h,{toValue:.4,duration:0,useNativeDriver:!0})])]));return e.start(),()=>e.stop()}O.setValue(1),h.setValue(.4)},[u,O,h]),(0,o.jsxs)(t.View,{style:T.indicatorContainer,children:[(0,o.jsx)(t.View,{style:[T.indicator,{backgroundColor:S[l]}]}),u&&(0,o.jsx)(s,{style:[T.indicatorRing,{borderColor:S[l],transform:[{scale:O}],opacity:h}]})]})};var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=t.Animated.View,c=t.NativeModules.WidgetBridge,l=t.NativeModules.ExpoAir;function S(){try{c?.collapse?c.collapse():l?.collapse?l.collapse():console.warn("[expo-air] No collapse method available")}catch(e){console.warn("[expo-air] Failed to collapse:",e)}}var T=t.StyleSheet.create({header:{flexDirection:"row",alignItems:"center",paddingHorizontal:n.LAYOUT.CONTENT_PADDING_H,paddingVertical:n.SPACING.MD+2,borderBottomWidth:1,borderBottomColor:n.COLORS.BORDER},closeButton:{width:n.SIZES.CLOSE_BUTTON,height:n.SIZES.CLOSE_BUTTON,borderRadius:n.SIZES.CLOSE_BUTTON/2,backgroundColor:"transparent",alignItems:"center",justifyContent:"center",marginRight:n.SPACING.MD},closeButtonText:{color:"transparent",fontSize:n.TYPOGRAPHY.SIZE_MD,fontWeight:n.TYPOGRAPHY.WEIGHT_SEMIBOLD},branchButton:{flex:1,flexDirection:"row",alignItems:"center"},branchName:{flexShrink:1,color:n.COLORS.TEXT_SECONDARY,fontSize:n.TYPOGRAPHY.SIZE_MD,fontWeight:n.TYPOGRAPHY.WEIGHT_MEDIUM},branchChevron:{color:n.COLORS.TEXT_MUTED,fontSize:n.TYPOGRAPHY.SIZE_SM,marginLeft:n.SPACING.XS},branchLoadingBar:{width:80,height:12,borderRadius:6,backgroundColor:"rgba(255,255,255,0.08)"},statusDot:{width:n.SIZES.STATUS_DOT,height:n.SIZES.STATUS_DOT,borderRadius:n.SIZES.STATUS_DOT/2,marginLeft:n.SPACING.MD},collapsedPill:{width:100,height:32,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"},indicatorContainer:{width:20,height:20,alignItems:"center",justifyContent:"center"},indicator:{width:n.SIZES.STATUS_DOT,height:n.SIZES.STATUS_DOT,borderRadius:n.SIZES.STATUS_DOT/2},indicatorRing:{position:"absolute",width:16,height:16,borderRadius:8,borderWidth:1.5,opacity:.4}})},525,[63,258,519,250]);
578
578
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.TabBar=function(t){var s=t.activeTab,c=t.onTabChange,u=t.onNewSession,h=t.canStartNew,x=t.hasPR,b=t.hasChanges,O=t.prNumber,P=t.onCreatePR,A=t.onCommit,R=t.onViewPR;return(0,o.jsxs)(n.View,{style:T.tabBar,children:[(0,o.jsxs)(n.View,{style:T.tabButtons,children:[(0,o.jsx)(n.TouchableOpacity,{onPress:()=>c("chat"),children:(0,o.jsx)(n.Text,{style:[T.tabText,"chat"===s?T.tabTextActive:T.tabTextInactive],children:"Chat"})}),(0,o.jsx)(n.TouchableOpacity,{onPress:()=>c("changes"),children:(0,o.jsx)(n.Text,{style:[T.tabText,"changes"===s?T.tabTextActive:T.tabTextInactive],children:"Changes"})})]}),"chat"===s?(0,o.jsx)(n.TouchableOpacity,{onPress:u,style:[T.ctaButton,!h&&T.ctaButtonDisabled],disabled:!h,children:(0,o.jsx)(n.Text,{style:[T.ctaText,!h&&T.ctaTextDisabled],children:"New"})}):!x&&b?(0,o.jsx)(l,{onPress:P,children:"Create PR"}):x&&b?(0,o.jsx)(l,{onPress:A,children:"Commit"}):x&&!b&&O?(0,o.jsxs)(l,{onPress:R,children:["#",O]}):null]})};var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=n.Animated.Text;function l(s){var l=s.children,u=s.onPress,h=(0,t.useRef)(new n.Animated.Value(.6)).current;return(0,t.useEffect)(()=>{var t=n.Animated.loop(n.Animated.sequence([n.Animated.timing(h,{toValue:.9,duration:1500,easing:n.Easing.inOut(n.Easing.ease),useNativeDriver:!0}),n.Animated.timing(h,{toValue:.6,duration:1500,easing:n.Easing.inOut(n.Easing.ease),useNativeDriver:!0})]));return t.start(),()=>t.stop()},[h]),(0,o.jsx)(n.TouchableOpacity,{onPress:u,style:T.ctaButton,activeOpacity:.7,children:(0,o.jsx)(c,{style:[T.ctaText,{opacity:h}],children:l})})}var T=n.StyleSheet.create({tabBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:s.LAYOUT.CONTENT_PADDING_H,paddingVertical:s.SPACING.SM+2,borderBottomWidth:1,borderBottomColor:s.COLORS.BORDER},tabButtons:{flexDirection:"row",gap:s.SPACING.XL},tabText:{fontSize:s.TYPOGRAPHY.SIZE_LG,fontWeight:s.TYPOGRAPHY.WEIGHT_MEDIUM},tabTextActive:{color:s.COLORS.TEXT_PRIMARY},tabTextInactive:{color:s.COLORS.TEXT_MUTED},ctaButton:{paddingHorizontal:s.SIZES.CTA_PADDING_H,paddingVertical:s.SIZES.CTA_PADDING_V,borderRadius:s.LAYOUT.BORDER_RADIUS_SM,backgroundColor:s.COLORS.BACKGROUND_INTERACTIVE},ctaButtonDisabled:{opacity:.4},ctaText:{color:s.COLORS.TEXT_PRIMARY,fontSize:s.TYPOGRAPHY.SIZE_SM,fontWeight:s.TYPOGRAPHY.WEIGHT_SEMIBOLD},ctaTextDisabled:{opacity:.6}})},526,[63,258,519,250]);
579
- __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.useWebSocketMessages=function(e){var o=e.serverUrl,l=e.onGitMessage,p=(0,n.useState)("disconnected"),f=(0,s.default)(p,2),v=f[0],h=f[1],b=(0,n.useState)([]),k=(0,s.default)(b,2),y=k[0],C=k[1],_=(0,n.useState)([]),S=(0,s.default)(_,2),w=S[0],M=S[1],P=(0,n.useRef)([]),W=(0,n.useRef)(null),I=(0,n.useRef)(0),N=(0,n.useRef)(!1),x=(0,n.useRef)(l);(0,n.useEffect)(()=>{x.current=l},[l]);var R=(0,n.useCallback)((e,t)=>{var s=P.current;if(s.length>0){var n={type:"assistant_parts",promptId:e,parts:s,isComplete:t,timestamp:Date.now()};C(e=>[...e,n])}P.current=[],W.current=null,M([])},[]),E=(0,n.useCallback)(e=>{switch(e.type){case"stream":if(e.promptId!==W.current&&(P.current.length>0&&W.current&&R(W.current,!1),W.current=e.promptId),!e.done&&e.chunk){var t=P.current,s=t[t.length-1];"text"===s?.type?(s.content+=e.chunk,P.current=[...t]):P.current=[...t,{type:"text",id:"text-"+I.current++,content:e.chunk}],M([...P.current])}break;case"tool":if("started"!==e.status){var n={type:"tool",id:"tool-"+I.current++,toolName:e.toolName,status:e.status,input:e.input,output:e.output,timestamp:e.timestamp};P.current=[...P.current,n],M([...P.current])}break;case"result":if(P.current.length>0){var u={type:"assistant_parts",promptId:e.promptId,parts:P.current,isComplete:!0,timestamp:e.timestamp};if(void 0!==e.costUsd||void 0!==e.durationMs||!e.success&&e.error){var c={...e,result:void 0};C(e=>[...e,u,c])}else C(e=>[...e,u])}else(void 0!==e.costUsd||void 0!==e.durationMs||!e.success&&e.error)&&C(t=>[...t,e]);P.current=[],W.current=null,M([]);break;case"error":if(P.current.length>0&&W.current){var o={type:"assistant_parts",promptId:W.current,parts:P.current,isComplete:!1,timestamp:Date.now()};C(t=>[...t,o,e])}else C(t=>[...t,e]);P.current=[],W.current=null,M([]);break;case"status":break;case"session_cleared":C([]),P.current=[],W.current=null,I.current=0,M([]);break;case"stopped":P.current.length>0&&W.current?R(W.current,!1):(P.current=[],W.current=null,M([]));break;case"history":var l=e.entries.flatMap(e=>{if("user"===e.role){var t=e.imagePaths&&e.imagePaths.length>0?e.imagePaths.map(e=>({uri:e})):void 0;return[{type:"user_prompt",content:e.content,images:t,timestamp:e.timestamp}]}return"assistant"===e.role?[{type:"history_result",content:e.content,timestamp:e.timestamp}]:"tool"===e.role?[{type:"tool",promptId:"",toolName:e.toolName,status:e.status,input:e.input,output:e.output,timestamp:e.timestamp}]:"system"===e.role?[{type:"system_message",messageType:e.type,content:e.content,timestamp:e.timestamp}]:[]});C(l);break;case"git_status":case"branches_list":case"branch_switched":case"branch_created":x.current(e)}},[R]);(0,n.useEffect)(()=>{console.log("[expo-air] Connecting to:",o?.replace(/([?&])secret=[^&]+/,"$1secret=***"));var e=(0,u.createWebSocketClient)({url:o,onStatusChange:h,onMessage:E,onError:e=>{console.warn("[expo-air] WebSocket error:",e)}});return e.connect(),()=>{e.disconnect()}},[o]),(0,n.useEffect)(()=>(0,c.setupTapHandler)((e,t)=>{var s=(0,u.getWebSocketClient)();s&&!s.isConnected()&&s.connect()}),[]);var T=(0,n.useCallback)((function(){var e=(0,t.default)(function*(e,t){if(!N.current){var s=yield(0,c.requestPushToken)();if(s){var n=(0,u.getWebSocketClient)();n?.isConnected()&&(n.sendPushToken(s),N.current=!0)}}C(s=>[...s,{type:"user_prompt",content:e,images:t,timestamp:Date.now()}]),P.current=[],W.current=null,M([]);var o=t&&t.length>0?t.map(e=>e.uri):void 0,l=(0,u.getWebSocketClient)();l&&l.sendPrompt(e,o)});return function(t,s){return e.apply(this,arguments)}})(),[]),q=(0,n.useCallback)(()=>{var e=(0,u.getWebSocketClient)();e&&e.requestNewSession()},[]),D=(0,n.useCallback)(()=>{var e=(0,u.getWebSocketClient)();e&&e.requestStop()},[]);return{status:v,messages:y,currentParts:w,handleSubmit:T,handleNewSession:q,handleStop:D}};var t=e(r(d[0])),s=e(r(d[1])),n=r(d[2]),u=r(d[3]),c=r(d[4])},527,[346,29,63,528,529]);
580
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"WebSocketClient",{enumerable:!0,get:function(){return n}}),_e.getWebSocketClient=function(){return o},_e.createWebSocketClient=function(t){o&&o.disconnect();return o=new n(t)};var e=t(r(d[0])),s=t(r(d[1])),n=(function(){return(0,s.default)(function t(s){(0,e.default)(this,t),this.ws=null,this.reconnectAttempts=0,this.reconnectTimeout=null,this._status="disconnected",this.shouldReconnect=!0,this.options={reconnectInterval:3e3,maxReconnectAttempts:10,onConnect:()=>{},onDisconnect:()=>{},onMessage:()=>{},onError:()=>{},onStatusChange:()=>{},...s}},[{key:"status",get:function(){return this._status}},{key:"setStatus",value:function(t){this._status=t,this.options.onStatusChange(t)}},{key:"connect",value:function(){if(this.ws?.readyState!==WebSocket.OPEN){this.shouldReconnect=!0,this.setStatus("connecting");try{this.ws=new WebSocket(this.options.url),this.ws.onopen=()=>{this.reconnectAttempts=0,this.setStatus("connected"),this.options.onConnect()},this.ws.onclose=()=>{this.setStatus("disconnected"),this.options.onDisconnect(),this.attemptReconnect()},this.ws.onerror=()=>{var t=new Error("WebSocket error");this.options.onError(t)},this.ws.onmessage=t=>{try{var e=JSON.parse(t.data);this.handleMessage(e)}catch(t){console.warn("[expo-air] Failed to parse message:",t)}}}catch(t){this.options.onError(t),this.attemptReconnect()}}}},{key:"handleMessage",value:function(t){"status"===t.type?"processing"===t.status?this.setStatus("processing"):"idle"!==t.status&&"connected"!==t.status||this.setStatus("connected"):"result"===t.type||"error"===t.type?this.setStatus("connected"):"stopped"!==t.type&&"session_cleared"!==t.type||this.setStatus("connected"),this.options.onMessage(t)}},{key:"attemptReconnect",value:function(){this.shouldReconnect&&(this.reconnectAttempts>=this.options.maxReconnectAttempts?console.log("[expo-air] Max reconnect attempts reached"):(this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectAttempts++,console.log(`[expo-air] Reconnecting... (attempt ${this.reconnectAttempts}/${this.options.maxReconnectAttempts})`),this.reconnectTimeout=setTimeout(()=>{this.connect()},this.options.reconnectInterval)))}},{key:"disconnect",value:function(){this.shouldReconnect=!1,this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}},{key:"sendPrompt",value:function(t,e){if(this.ws&&this.ws.readyState===WebSocket.OPEN){var s={type:"prompt",content:t,id:Math.random().toString(36).substring(2,15)};e&&e.length>0&&(s.imagePaths=e),this.ws.send(JSON.stringify(s)),this.setStatus("processing")}else this.options.onError(new Error("Not connected"))}},{key:"requestNewSession",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"new_session"})):this.options.onError(new Error("Not connected"))}},{key:"requestStop",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"stop"})):this.options.onError(new Error("Not connected"))}},{key:"requestDiscardChanges",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"discard_changes"})):this.options.onError(new Error("Not connected"))}},{key:"sendPushToken",value:function(t){this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"register_push_token",token:t}))}},{key:"requestBranches",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"list_branches"}))}},{key:"requestSwitchBranch",value:function(t){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"switch_branch",branchName:t})):this.options.onError(new Error("Not connected"))}},{key:"requestCreateBranch",value:function(t){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"create_branch",branchName:t})):this.options.onError(new Error("Not connected"))}},{key:"isConnected",value:function(){return this.ws?.readyState===WebSocket.OPEN}}])})();var o=null},528,[8,9]);
579
+ __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.useWebSocketMessages=function(e){var o=e.serverUrl,p=e.onGitMessage,l=(0,n.useState)("disconnected"),f=(0,s.default)(l,2),v=f[0],h=f[1],b=(0,n.useState)([]),k=(0,s.default)(b,2),y=k[0],_=k[1],C=(0,n.useState)([]),S=(0,s.default)(C,2),w=S[0],M=S[1],P=(0,n.useRef)([]),W=(0,n.useRef)(null),I=(0,n.useRef)(0),N=(0,n.useRef)(!1),x=(0,n.useRef)(p);(0,n.useEffect)(()=>{x.current=p},[p]);var R=(0,n.useCallback)((e,t)=>{var s=P.current;if(s.length>0){var n={type:"assistant_parts",promptId:e,parts:s,isComplete:t,timestamp:Date.now()};_(e=>[...e,n])}P.current=[],W.current=null,M([])},[]),E=(0,n.useCallback)(e=>{switch(e.type){case"stream":if(e.promptId!==W.current&&(P.current.length>0&&W.current&&R(W.current,!1),W.current=e.promptId),!e.done&&e.chunk){var t=P.current,s=t[t.length-1];"text"===s?.type?(s.content+=e.chunk,P.current=[...t]):P.current=[...t,{type:"text",id:"text-"+I.current++,content:e.chunk}],M([...P.current])}break;case"tool":if("started"!==e.status){var n={type:"tool",id:"tool-"+I.current++,toolName:e.toolName,status:e.status,input:e.input,output:e.output,timestamp:e.timestamp};P.current=[...P.current,n],M([...P.current])}break;case"result":if(P.current.length>0){var u={type:"assistant_parts",promptId:e.promptId,parts:P.current,isComplete:!0,timestamp:e.timestamp};if(void 0!==e.costUsd||void 0!==e.durationMs||!e.success&&e.error){var c={...e,result:void 0};_(e=>[...e,u,c])}else _(e=>[...e,u])}else(void 0!==e.costUsd||void 0!==e.durationMs||!e.success&&e.error)&&_(t=>[...t,e]);P.current=[],W.current=null,M([]);break;case"error":if(P.current.length>0&&W.current){var o={type:"assistant_parts",promptId:W.current,parts:P.current,isComplete:!1,timestamp:Date.now()};_(t=>[...t,o,e])}else _(t=>[...t,e]);P.current=[],W.current=null,M([]);break;case"status":"processing"===e.status&&_(e=>{var t=e[e.length-1];return"user_prompt"===t?.type&&t.pending?[...e.slice(0,-1),{...t,pending:!1}]:e});break;case"session_cleared":_([]),P.current=[],W.current=null,I.current=0,M([]);break;case"stopped":P.current.length>0&&W.current?R(W.current,!1):(P.current=[],W.current=null,M([]));break;case"history":var p=e.entries.flatMap(e=>{if("user"===e.role){var t=e.imagePaths&&e.imagePaths.length>0?e.imagePaths.map(e=>({uri:e})):void 0;return[{type:"user_prompt",content:e.content,images:t,timestamp:e.timestamp}]}return"assistant"===e.role?[{type:"history_result",content:e.content,timestamp:e.timestamp}]:"tool"===e.role?[{type:"tool",promptId:"",toolName:e.toolName,status:e.status,input:e.input,output:e.output,timestamp:e.timestamp}]:"system"===e.role?[{type:"system_message",messageType:e.type,content:e.content,timestamp:e.timestamp}]:[]});_(p);break;case"git_status":case"branches_list":case"branch_switched":case"branch_created":x.current(e)}},[R]);(0,n.useEffect)(()=>{console.log("[expo-air] Connecting to:",o?.replace(/([?&])secret=[^&]+/,"$1secret=***"));var e=(0,u.createWebSocketClient)({url:o,onStatusChange:h,onMessage:E,onError:e=>{console.warn("[expo-air] WebSocket error:",e)}});return e.connect(),()=>{e.disconnect()}},[o]),(0,n.useEffect)(()=>(0,c.setupTapHandler)((e,t)=>{var s=(0,u.getWebSocketClient)();s&&!s.isConnected()&&s.connect()}),[]);var T=(0,n.useCallback)((function(){var e=(0,t.default)(function*(e,t){_(s=>[...s,{type:"user_prompt",content:e,images:t,pending:!0,timestamp:Date.now()}]),P.current=[],W.current=null,M([]);var s=t&&t.length>0?t.map(e=>e.uri):void 0,n=(0,u.getWebSocketClient)();if(n&&n.sendPrompt(e,s),!N.current){var o=yield(0,c.requestPushToken)();if(o){var p=(0,u.getWebSocketClient)();p?.isConnected()&&(p.sendPushToken(o),N.current=!0)}}});return function(t,s){return e.apply(this,arguments)}})(),[]),q=(0,n.useCallback)(()=>{var e=(0,u.getWebSocketClient)();e&&e.requestNewSession()},[]),D=(0,n.useCallback)(()=>{var e=(0,u.getWebSocketClient)();e&&e.requestStop()},[]);return{status:v,messages:y,currentParts:w,handleSubmit:T,handleNewSession:q,handleStop:D}};var t=e(r(d[0])),s=e(r(d[1])),n=r(d[2]),u=r(d[3]),c=r(d[4])},527,[346,29,63,528,529]);
580
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"WebSocketClient",{enumerable:!0,get:function(){return n}}),_e.getWebSocketClient=function(){return o},_e.createWebSocketClient=function(t){o&&o.disconnect();return o=new n(t)};var e=t(r(d[0])),s=t(r(d[1])),n=(function(){return(0,s.default)(function t(s){(0,e.default)(this,t),this.ws=null,this.reconnectAttempts=0,this.reconnectTimeout=null,this._status="disconnected",this.shouldReconnect=!0,this.options={reconnectInterval:3e3,maxReconnectAttempts:10,onConnect:()=>{},onDisconnect:()=>{},onMessage:()=>{},onError:()=>{},onStatusChange:()=>{},...s}},[{key:"status",get:function(){return this._status}},{key:"setStatus",value:function(t){this._status=t,this.options.onStatusChange(t)}},{key:"connect",value:function(){if(this.ws?.readyState!==WebSocket.OPEN){this.shouldReconnect=!0,this.setStatus("connecting");try{this.ws=new WebSocket(this.options.url),this.ws.onopen=()=>{this.reconnectAttempts=0,this.setStatus("connected"),this.options.onConnect()},this.ws.onclose=()=>{this.setStatus("disconnected"),this.options.onDisconnect(),this.attemptReconnect()},this.ws.onerror=()=>{var t=new Error("WebSocket error");this.options.onError(t)},this.ws.onmessage=t=>{try{var e=JSON.parse(t.data);this.handleMessage(e)}catch(t){console.warn("[expo-air] Failed to parse message:",t)}}}catch(t){this.options.onError(t),this.attemptReconnect()}}}},{key:"handleMessage",value:function(t){"status"===t.type?"processing"===t.status?this.setStatus("processing"):"idle"!==t.status&&"connected"!==t.status||this.setStatus("connected"):"result"===t.type||"error"===t.type?this.setStatus("connected"):"stopped"!==t.type&&"session_cleared"!==t.type||this.setStatus("connected"),this.options.onMessage(t)}},{key:"attemptReconnect",value:function(){this.shouldReconnect&&(this.reconnectAttempts>=this.options.maxReconnectAttempts?console.log("[expo-air] Max reconnect attempts reached"):(this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectAttempts++,console.log(`[expo-air] Reconnecting... (attempt ${this.reconnectAttempts}/${this.options.maxReconnectAttempts})`),this.reconnectTimeout=setTimeout(()=>{this.connect()},this.options.reconnectInterval)))}},{key:"disconnect",value:function(){this.shouldReconnect=!1,this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}},{key:"sendPrompt",value:function(t,e){if(this.ws&&this.ws.readyState===WebSocket.OPEN){var s={type:"prompt",content:t,id:Math.random().toString(36).substring(2,15)};e&&e.length>0&&(s.imagePaths=e),this.ws.send(JSON.stringify(s)),this.setStatus("sending")}else this.options.onError(new Error("Not connected"))}},{key:"requestNewSession",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"new_session"})):this.options.onError(new Error("Not connected"))}},{key:"requestStop",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"stop"})):this.options.onError(new Error("Not connected"))}},{key:"requestDiscardChanges",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"discard_changes"})):this.options.onError(new Error("Not connected"))}},{key:"sendPushToken",value:function(t){this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"register_push_token",token:t}))}},{key:"requestBranches",value:function(){this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"list_branches"}))}},{key:"requestSwitchBranch",value:function(t){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"switch_branch",branchName:t})):this.options.onError(new Error("Not connected"))}},{key:"requestCreateBranch",value:function(t){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify({type:"create_branch",branchName:t})):this.options.onError(new Error("Not connected"))}},{key:"isConnected",value:function(){return this.ws?.readyState===WebSocket.OPEN}}])})();var o=null},528,[8,9]);
581
581
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.requestPushToken=function(){return u.apply(this,arguments)},_e.setupTapHandler=function(e){return console.log("[expo-air] setupTapHandler: tap handling managed by main app"),()=>{}};var e,n=r(d[0]),o=(e=n)&&e.__esModule?e:{default:e},t=r(d[1]).NativeModules.WidgetBridge;function u(){return(u=(0,o.default)(function*(){try{if(!t?.requestPushToken)return console.log("[expo-air] WidgetBridge.requestPushToken not available"),null;console.log("[expo-air] Requesting push token via native bridge");var e=yield t.requestPushToken();return e?(console.log("[expo-air] Got push token:",e),e):(console.log("[expo-air] Push notification permission denied or token unavailable"),null)}catch(e){return console.error("[expo-air] Failed to get push token:",e),null}})).apply(this,arguments)}},529,[346,258]);
582
582
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useGitState=function(e){var t=e.handleSubmit,u=e.setActiveTab,h=(0,n.useState)(""),o=(0,s.default)(h,2),b=o[0],C=o[1],S=(0,n.useState)([]),f=(0,s.default)(S,2),k=f[0],p=f[1],v=(0,n.useState)(!1),w=(0,s.default)(v,2),_=w[0],B=w[1],P=(0,n.useState)(),y=(0,s.default)(P,2),R=y[0],q=y[1],L=(0,n.useState)(!1),W=(0,s.default)(L,2),M=W[0],N=W[1],U=(0,n.useState)([]),D=(0,s.default)(U,2),E=D[0],G=D[1],T=(0,n.useState)(!1),j=(0,s.default)(T,2),A=j[0],F=j[1],O=(0,n.useState)(null),V=(0,s.default)(O,2),x=V[0],z=V[1],H=(0,n.useRef)(""),I=R?.match(/\/pull\/(\d+)/)?.[1],J=(0,n.useCallback)(e=>{switch(e.type){case"git_status":C(e.branchName),p(e.changes),B(e.hasPR),q(e.prUrl);break;case"branches_list":G(e.branches),F(!1);break;case"branch_switched":if(e.success)z(null);else if(e.error){var t=H.current;C(t),G(e=>e.map(e=>({...e,isCurrent:e.name===t}))),N(!0),z(e.error)}break;case"branch_created":e.success?(N(!1),z(null)):e.error&&z(e.error)}},[]),K=(0,n.useCallback)(()=>{u("chat"),t("Look at my current git changes and create a commit with a good conventional commit message. Stage all changes, commit them, and push to the remote.")},[t,u]),Q=(0,n.useCallback)(()=>{u("chat"),t("Create a pull request for my current branch. First commit any uncommitted changes with a good message. Then generate a title and description based on the commits, and use `gh pr create --title \"...\" --body \"...\"` (non-interactive mode) to create it. Push to remote first if needed.")},[t,u]),X=(0,n.useCallback)(()=>{R&&l.Linking.openURL(R)},[R]),Y=(0,n.useCallback)(()=>{var e=(0,c.getWebSocketClient)();e&&e.requestDiscardChanges()},[]),Z=(0,n.useCallback)(()=>{if(N(e=>!e),!M){F(!0);var e=(0,c.getWebSocketClient)();e&&e.requestBranches()}},[M]),$=(0,n.useCallback)(e=>{z(null),H.current=b,C(e),G(t=>t.map(t=>({...t,isCurrent:t.name===e}))),N(!1);var t=(0,c.getWebSocketClient)();t&&t.requestSwitchBranch(e)},[b]),ee=(0,n.useCallback)(e=>{z(null);var t=(0,c.getWebSocketClient)();t&&t.requestCreateBranch(e)},[]);return{branchName:b,gitChanges:k,hasPR:_,prUrl:R,prNumber:I,showBranchSwitcher:M,branches:E,branchesLoading:A,branchError:x,handleGitMessage:J,handleCommit:K,handleCreatePR:Q,handleViewPR:X,handleDiscard:Y,handleBranchPress:Z,handleBranchSelect:$,handleBranchCreate:ee,setShowBranchSwitcher:N,setBranchError:z}};var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),c=r(d[2]),l=r(d[3])},530,[29,63,528,258]);
583
583
  __r(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10play/expo-air",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "Vibe Coding for React-Native",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -94,7 +94,7 @@ export function BubbleContent({
94
94
  {status === "disconnected" && messages.length === 0 ? (
95
95
  <DisconnectedView />
96
96
  ) : activeTab === "chat" ? (
97
- <ResponseArea messages={messages} currentParts={currentParts} />
97
+ <ResponseArea messages={messages} currentParts={currentParts} status={status} />
98
98
  ) : (
99
99
  <GitChangesTab changes={git.gitChanges} onDiscard={git.handleDiscard} />
100
100
  )}
@@ -105,6 +105,7 @@ export function BubbleContent({
105
105
  onSubmit={handleSubmit}
106
106
  onStop={handleStop}
107
107
  disabled={status === "disconnected"}
108
+ isSending={status === "sending"}
108
109
  isProcessing={status === "processing"}
109
110
  />
110
111
  )}
@@ -32,10 +32,11 @@ interface HeaderProps {
32
32
  }
33
33
 
34
34
  export function Header({ status, branchName, onBranchPress }: HeaderProps) {
35
- const statusColors = {
35
+ const statusColors: Record<ConnectionStatus, string> = {
36
36
  disconnected: COLORS.STATUS_ERROR,
37
37
  connecting: COLORS.STATUS_INFO,
38
38
  connected: COLORS.STATUS_SUCCESS,
39
+ sending: COLORS.STATUS_INFO,
39
40
  processing: COLORS.STATUS_INFO,
40
41
  };
41
42
 
@@ -64,14 +65,15 @@ export function Header({ status, branchName, onBranchPress }: HeaderProps) {
64
65
  }
65
66
 
66
67
  export function PulsingIndicator({ status }: { status: ConnectionStatus }) {
67
- const colors = {
68
+ const colors: Record<ConnectionStatus, string> = {
68
69
  disconnected: COLORS.STATUS_ERROR,
69
70
  connecting: COLORS.STATUS_INFO,
70
71
  connected: COLORS.STATUS_SUCCESS,
72
+ sending: COLORS.STATUS_INFO,
71
73
  processing: COLORS.STATUS_INFO,
72
74
  };
73
75
 
74
- const isAnimating = status === "processing" || status === "connecting";
76
+ const isAnimating = status === "processing" || status === "connecting" || status === "sending";
75
77
 
76
78
  // Animated values for the pulsing ring
77
79
  const scaleAnim = useRef(new Animated.Value(1)).current;
@@ -78,7 +78,7 @@ function ChatImageThumb({ uri }: { uri: string }) {
78
78
 
79
79
  function UserPromptItem({ message }: { message: UserPromptMessage }) {
80
80
  return (
81
- <View style={styles.userPromptContainer}>
81
+ <View style={[styles.userPromptContainer, message.pending && styles.userPromptPending]}>
82
82
  {message.images && message.images.length > 0 && (
83
83
  <View style={styles.userImages}>
84
84
  {message.images.map((img, i) => (
@@ -312,6 +312,9 @@ const styles = StyleSheet.create({
312
312
  alignSelf: "flex-end",
313
313
  maxWidth: "85%",
314
314
  },
315
+ userPromptPending: {
316
+ opacity: 0.7,
317
+ },
315
318
  userPromptText: {
316
319
  color: COLORS.TEXT_PRIMARY,
317
320
  fontSize: TYPOGRAPHY.SIZE_LG,
@@ -22,6 +22,7 @@ interface PromptInputProps {
22
22
  onSubmit: (prompt: string, images?: ImageAttachment[]) => void;
23
23
  onStop?: () => void;
24
24
  disabled?: boolean;
25
+ isSending?: boolean;
25
26
  isProcessing?: boolean;
26
27
  }
27
28
 
@@ -31,6 +32,7 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(({
31
32
  onSubmit,
32
33
  onStop,
33
34
  disabled = false,
35
+ isSending = false,
34
36
  isProcessing = false,
35
37
  }, ref) => {
36
38
  const [text, setText] = useState("");
@@ -53,10 +55,12 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(({
53
55
  return () => subscription.remove();
54
56
  }, []);
55
57
 
58
+ const isBusy = isSending || isProcessing;
59
+
56
60
  const handleSubmit = () => {
57
61
  const trimmed = text.trim();
58
62
  const hasContent = trimmed.length > 0 || images.length > 0;
59
- if (hasContent && !disabled && !isProcessing) {
63
+ if (hasContent && !disabled && !isBusy) {
60
64
  onSubmit(trimmed, images.length > 0 ? images : undefined);
61
65
  setText("");
62
66
  setImages([]);
@@ -94,7 +98,7 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(({
94
98
  setImages((prev) => prev.filter((_, i) => i !== index));
95
99
  };
96
100
 
97
- const canSubmit = (text.trim().length > 0 || images.length > 0) && !disabled && !isProcessing;
101
+ const canSubmit = (text.trim().length > 0 || images.length > 0) && !disabled && !isBusy;
98
102
 
99
103
  return (
100
104
  <View style={styles.outerContainer}>
@@ -126,7 +130,7 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(({
126
130
  <TouchableOpacity
127
131
  style={styles.iconButton}
128
132
  onPress={handlePickImages}
129
- disabled={isProcessing}
133
+ disabled={isBusy}
130
134
  activeOpacity={0.6}
131
135
  >
132
136
  <PlusIcon />
@@ -139,7 +143,7 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(({
139
143
  value={text}
140
144
  onChangeText={setText}
141
145
  onSubmitEditing={handleSubmit}
142
- editable={!isProcessing}
146
+ editable={!isBusy}
143
147
  multiline
144
148
  maxLength={2000}
145
149
  returnKeyType="send"
@@ -1,15 +1,16 @@
1
1
  import React, { useRef, useEffect, useState, useCallback } from "react";
2
- import { View, Text, ScrollView, StyleSheet, TouchableOpacity, NativeScrollEvent, Keyboard, Platform } from "react-native";
3
- import type { ServerMessage, AssistantPart } from "../services/websocket";
2
+ import { View, Text, ScrollView, StyleSheet, TouchableOpacity, NativeScrollEvent, Keyboard, Platform, Animated, Easing } from "react-native";
3
+ import type { ServerMessage, AssistantPart, ConnectionStatus } from "../services/websocket";
4
4
  import { MessageItem, PartsRenderer } from "./MessageItems";
5
5
  import { SPACING, LAYOUT, COLORS, TYPOGRAPHY } from "../constants/design";
6
6
 
7
7
  interface ResponseAreaProps {
8
8
  messages: ServerMessage[];
9
9
  currentParts: AssistantPart[];
10
+ status: ConnectionStatus;
10
11
  }
11
12
 
12
- export function ResponseArea({ messages, currentParts }: ResponseAreaProps) {
13
+ export function ResponseArea({ messages, currentParts, status }: ResponseAreaProps) {
13
14
  const scrollViewRef = useRef<ScrollView>(null);
14
15
  const [isAtBottom, setIsAtBottom] = useState(true);
15
16
  const contentHeightRef = useRef(0);
@@ -113,6 +114,9 @@ export function ResponseArea({ messages, currentParts }: ResponseAreaProps) {
113
114
  {currentParts.length > 0 && (
114
115
  <PartsRenderer parts={currentParts} isStreaming={true} />
115
116
  )}
117
+ {status === "processing" && currentParts.length === 0 && (
118
+ <ThinkingDots />
119
+ )}
116
120
  </ScrollView>
117
121
  {!isAtBottom && (
118
122
  <TouchableOpacity
@@ -127,6 +131,36 @@ export function ResponseArea({ messages, currentParts }: ResponseAreaProps) {
127
131
  );
128
132
  }
129
133
 
134
+ function ThinkingDots() {
135
+ const dot1 = useRef(new Animated.Value(0.3)).current;
136
+ const dot2 = useRef(new Animated.Value(0.3)).current;
137
+ const dot3 = useRef(new Animated.Value(0.3)).current;
138
+
139
+ useEffect(() => {
140
+ const animate = (dot: Animated.Value, delay: number) =>
141
+ Animated.loop(
142
+ Animated.sequence([
143
+ Animated.delay(delay),
144
+ Animated.timing(dot, { toValue: 1, duration: 400, easing: Easing.ease, useNativeDriver: true }),
145
+ Animated.timing(dot, { toValue: 0.3, duration: 400, easing: Easing.ease, useNativeDriver: true }),
146
+ ])
147
+ );
148
+ const a1 = animate(dot1, 0);
149
+ const a2 = animate(dot2, 150);
150
+ const a3 = animate(dot3, 300);
151
+ a1.start(); a2.start(); a3.start();
152
+ return () => { a1.stop(); a2.stop(); a3.stop(); };
153
+ }, [dot1, dot2, dot3]);
154
+
155
+ return (
156
+ <View style={styles.thinkingContainer}>
157
+ {[dot1, dot2, dot3].map((opacity, i) => (
158
+ <Animated.View key={i} style={[styles.thinkingDot, { opacity }]} />
159
+ ))}
160
+ </View>
161
+ );
162
+ }
163
+
130
164
  const styles = StyleSheet.create({
131
165
  wrapper: {
132
166
  flex: 1,
@@ -140,6 +174,17 @@ const styles = StyleSheet.create({
140
174
  padding: LAYOUT.CONTENT_PADDING_H,
141
175
  paddingBottom: SPACING.XXL,
142
176
  },
177
+ thinkingContainer: {
178
+ flexDirection: "row",
179
+ gap: 6,
180
+ paddingVertical: SPACING.MD,
181
+ },
182
+ thinkingDot: {
183
+ width: 6,
184
+ height: 6,
185
+ borderRadius: 3,
186
+ backgroundColor: COLORS.TEXT_MUTED,
187
+ },
143
188
  emptyContainer: {
144
189
  flex: 1,
145
190
  alignItems: "center",
@@ -3,7 +3,7 @@
3
3
  * Handles connection lifecycle, message parsing, and reconnection.
4
4
  */
5
5
 
6
- export type ConnectionStatus = "disconnected" | "connecting" | "connected" | "processing";
6
+ export type ConnectionStatus = "disconnected" | "connecting" | "connected" | "sending" | "processing";
7
7
 
8
8
  export interface StreamMessage {
9
9
  type: "stream";
@@ -104,6 +104,7 @@ export interface UserPromptMessage {
104
104
  type: "user_prompt";
105
105
  content: string;
106
106
  images?: ImageAttachment[];
107
+ pending?: boolean;
107
108
  timestamp: number;
108
109
  }
109
110
 
@@ -367,7 +368,7 @@ export class WebSocketClient {
367
368
  }
368
369
 
369
370
  this.ws.send(JSON.stringify(message));
370
- this.setStatus("processing");
371
+ this.setStatus("sending");
371
372
  }
372
373
 
373
374
  requestNewSession(): void {