@10play/expo-air 0.13.3 → 0.13.4

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.
@@ -532,7 +532,7 @@ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{v
532
532
  __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 l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};r(d[1]).default;var u={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('number'==typeof e)n.default.vibrate(e);else{if(!Array.isArray(e))throw new Error('Vibration pattern should be a number or array');n.default.vibrateByPattern(e,t?0:-1)}},cancel:function(){n.default.cancel()}},l=u},480,[481,60]);
533
533
  __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},481,[482]);
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 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')},482,[50]);
535
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.BubbleContent=function(e){e.size;var t=e.color,x=void 0===t?"#000000":t,p=e.expanded,E=void 0!==p&&p,B=e.serverUrl,v=void 0===B?"ws://localhost:3847":B,j=(0,s.useState)("chat"),A=(0,n.default)(j,2),G=A[0],w=A[1],y=(0,s.useRef)(null),N=(0,s.useState)(E),_=(0,n.default)(N,2),I=_[0],L=_[1];(0,s.useEffect)(()=>{if(P){var e=new o.NativeEventEmitter(P).addListener("onExpandCollapse",e=>{L(e.expanded)});return()=>e.remove()}},[]),(0,s.useEffect)(()=>{L(E)},[E]);var D=(0,s.useRef)(()=>{}),M=(0,s.useCallback)(e=>{D.current(e)},[]),Y=(0,b.useWebSocketMessages)({serverUrl:v,onGitMessage:M}),U=Y.status,k=Y.messages,V=Y.currentParts,H=Y.handleSubmit,z=Y.handleNewSession,W=Y.handleStop,X=(0,f.useGitState)({handleSubmit:H,setActiveTab:w});if(D.current=X.handleGitMessage,(0,s.useEffect)(()=>{I&&"chat"===G&&setTimeout(()=>y.current?.focus(),100)},[I]),!I)return(0,R.jsx)(o.View,{style:O.collapsedPill,children:(0,R.jsx)(S.PulsingIndicator,{status:U})});return(0,R.jsxs)(o.View,{style:[O.expanded,{backgroundColor:x}],children:[(0,R.jsx)(S.Header,{status:U,branchName:X.branchName,onBranchPress:X.handleBranchPress}),(0,R.jsx)(C.TabBar,{activeTab:G,onTabChange:w,onNewSession:z,canStartNew:"connected"===U,hasPR:X.hasPR,hasChanges:X.gitChanges.length>0,prNumber:X.prNumber,onCreatePR:X.handleCreatePR,onCommit:X.handleCommit,onViewPR:X.handleViewPR}),(0,R.jsx)(o.View,{style:O.body,children:"disconnected"===U&&0===k.length?(0,R.jsx)(T,{}):"chat"===G?(0,R.jsx)(l.ResponseArea,{messages:k,currentParts:V,status:U}):(0,R.jsx)(h.GitChangesTab,{changes:X.gitChanges,onDiscard:X.handleDiscard})}),"chat"===G&&"disconnected"!==U&&(0,R.jsx)(c.PromptInput,{ref:y,onSubmit:H,onStop:W,disabled:"disconnected"===U,isSending:"sending"===U,isProcessing:"processing"===U}),X.showBranchSwitcher&&(0,R.jsx)(u.BranchSwitcher,{branches:X.branches,currentBranch:X.branchName,onSelect:X.handleBranchSelect,onCreate:X.handleBranchCreate,onClose:()=>{X.setShowBranchSwitcher(!1),X.setBranchError(null)},error:X.branchError})]})};var e,t=r(d[0]),n=(e=t)&&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]),f=r(d[10]),x=r(d[11]),R=r(d[12]),P=o.NativeModules.WidgetBridge;function T(){return(0,R.jsxs)(o.View,{style:O.disconnectedContainer,children:[(0,R.jsx)(o.Text,{style:O.disconnectedTitle,children:"Server not running"}),(0,R.jsx)(o.Text,{style:O.disconnectedSubtitle,children:"Start the development server from your project directory:"}),(0,R.jsx)(o.View,{style:O.codeBlock,children:(0,R.jsx)(o.Text,{style:O.codeText,children:"npx expo-air fly"})})]})}var O=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"}})},483,[29,63,258,484,486,489,490,491,492,493,495,485,248]);
535
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.BubbleContent=function(e){e.size;var t=e.color,x=void 0===t?"#000000":t,p=e.expanded,E=void 0!==p&&p,B=e.serverUrl,v=void 0===B?"ws://localhost:3847":B,j=(0,s.useState)("chat"),A=(0,n.default)(j,2),G=A[0],w=A[1],y=(0,s.useRef)(null),N=(0,s.useState)(E),_=(0,n.default)(N,2),I=_[0],L=_[1];(0,s.useEffect)(()=>{if(P){var e=new o.NativeEventEmitter(P).addListener("onExpandCollapse",e=>{L(e.expanded)});return()=>e.remove()}},[]),(0,s.useEffect)(()=>{L(E)},[E]);var D=(0,s.useRef)(()=>{}),M=(0,s.useCallback)(e=>{D.current(e)},[]),Y=(0,b.useWebSocketMessages)({serverUrl:v,onGitMessage:M}),U=Y.status,k=Y.messages,V=Y.currentParts,H=Y.handleSubmit,z=Y.handleNewSession,W=Y.handleStop,X=(0,f.useGitState)({handleSubmit:H,setActiveTab:w});if(D.current=X.handleGitMessage,(0,s.useEffect)(()=>{I&&"chat"===G&&setTimeout(()=>y.current?.focus(),100)},[I]),!I)return(0,R.jsx)(o.View,{style:O.collapsedPill,children:(0,R.jsx)(S.PulsingIndicator,{status:U})});return(0,R.jsxs)(o.View,{style:[O.expanded,{backgroundColor:x}],children:[(0,R.jsx)(S.Header,{status:U,branchName:X.branchName,onBranchPress:X.handleBranchPress}),(0,R.jsx)(C.TabBar,{activeTab:G,onTabChange:w,onNewSession:z,canStartNew:"connected"===U,hasPR:X.hasPR,hasChanges:X.gitChanges.length>0,prNumber:X.prNumber,onCreatePR:X.handleCreatePR,onCommit:X.handleCommit,onViewPR:X.handleViewPR}),(0,R.jsx)(o.View,{style:O.body,children:"disconnected"===U&&0===k.length?(0,R.jsx)(T,{}):"chat"===G?(0,R.jsx)(l.ResponseArea,{messages:k,currentParts:V,status:U}):(0,R.jsx)(h.GitChangesTab,{changes:X.gitChanges,onDiscard:X.handleDiscard})}),"chat"===G&&(0,R.jsx)(c.PromptInput,{ref:y,onSubmit:H,onStop:W,disabled:"disconnected"===U,isSending:"sending"===U,isProcessing:"processing"===U}),X.showBranchSwitcher&&(0,R.jsx)(u.BranchSwitcher,{branches:X.branches,currentBranch:X.branchName,onSelect:X.handleBranchSelect,onCreate:X.handleBranchCreate,onClose:()=>{X.setShowBranchSwitcher(!1),X.setBranchError(null)},error:X.branchError})]})};var e,t=r(d[0]),n=(e=t)&&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]),f=r(d[10]),x=r(d[11]),R=r(d[12]),P=o.NativeModules.WidgetBridge;function T(){return(0,R.jsxs)(o.View,{style:O.disconnectedContainer,children:[(0,R.jsx)(o.Text,{style:O.disconnectedTitle,children:"Server not running"}),(0,R.jsx)(o.Text,{style:O.disconnectedSubtitle,children:"Start the development server from your project directory:"}),(0,R.jsx)(o.View,{style:O.codeBlock,children:(0,R.jsx)(o.Text,{style:O.codeText,children:"npx expo-air fly"})})]})}var O=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"}})},483,[29,63,258,484,486,489,490,491,492,493,495,485,248]);
536
536
  __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=r(d[4]),l=r(d[5]),u=(0,o.forwardRef)((e,u)=>{var b=e.onSubmit,C=e.onStop,T=e.disabled,I=void 0!==T&&T,O=e.isSending,w=void 0!==O&&O,R=e.isProcessing,v=void 0!==R&&R,f=(0,o.useState)(""),y=(0,i.default)(f,2),B=y[0],x=y[1],N=(0,o.useState)([]),L=(0,i.default)(N,2),j=L[0],A=L[1],_=(0,o.useRef)(null);(0,o.useImperativeHandle)(u,()=>({focus:()=>_.current?.focus()})),(0,o.useEffect)(()=>{if(n.NativeModules.WidgetBridge){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||v,P=()=>{var e=B.trim();!(e.length>0||j.length>0)||I||E||(b(e,j.length>0?j:void 0),x(""),A([]))},M=(function(){var e=(0,t.default)(function*(){if(n.NativeModules.WidgetBridge)if(j.length>=4)n.Alert.alert("Limit reached","Maximum 4 images per message.");else try{var e=yield n.NativeModules.WidgetBridge.pickImages(4-j.length,.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=(B.trim().length>0||j.length>0)&&!I&&!E;return(0,l.jsxs)(n.View,{style:S.outerContainer,children:[j.length>0&&(0,l.jsx)(n.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:S.previewStrip,contentContainerStyle:S.previewContent,children:j.map((e,t)=>(0,l.jsxs)(n.View,{style:S.previewItem,children:[(0,l.jsx)(n.Image,{source:{uri:e.uri},style:S.previewImage}),(0,l.jsx)(n.TouchableOpacity,{style:S.removeButton,onPress:()=>U(t),hitSlop:{top:6,bottom:6,left:6,right:6},children:(0,l.jsxs)(n.View,{style:S.removeIcon,children:[(0,l.jsx)(n.View,{style:[S.removeLine,S.removeLineA]}),(0,l.jsx)(n.View,{style:[S.removeLine,S.removeLineB]})]})})]},t))}),(0,l.jsxs)(n.View,{style:S.container,children:[(0,l.jsx)(n.TouchableOpacity,{style:S.iconButton,onPress:M,disabled:E,activeOpacity:.6,children:(0,l.jsx)(c,{})}),(0,l.jsx)(n.TextInput,{ref:_,style:S.input,placeholder:"Ask Claude...",placeholderTextColor:s.COLORS.TEXT_TERTIARY,value:B,onChangeText:x,onSubmitEditing:P,editable:!E,multiline:!0,maxLength:2e3,returnKeyType:"send",blurOnSubmit:!0}),v?(0,l.jsx)(n.TouchableOpacity,{style:[S.submitButton,S.stopButton],onPress:C,activeOpacity:.7,children:(0,l.jsx)(p,{})}):(0,l.jsx)(n.TouchableOpacity,{style:[S.submitButton,!V&&S.submitButtonDisabled],onPress:P,disabled:!V,activeOpacity:.7,children:(0,l.jsx)(h,{})})]})]})});function c(){return(0,l.jsxs)(n.View,{style:S.plusIcon,children:[(0,l.jsx)(n.View,{style:S.plusH}),(0,l.jsx)(n.View,{style:S.plusV})]})}function h(){return(0,l.jsxs)(n.View,{style:S.arrowIcon,children:[(0,l.jsx)(n.View,{style:S.arrowLine}),(0,l.jsx)(n.View,{style:S.arrowHead})]})}function p(){return(0,l.jsx)(n.View,{style:S.stopIcon})}var S=n.StyleSheet.create({outerContainer:{borderTopWidth:1,borderTopColor:s.COLORS.BORDER,backgroundColor:s.COLORS.BACKGROUND},previewStrip:{maxHeight:72,paddingHorizontal:s.LAYOUT.CONTENT_PADDING_H,paddingTop:s.SPACING.SM},previewContent:{gap:s.SPACING.SM,alignItems:"center"},previewItem:{position:"relative"},previewImage:{width:56,height:56,borderRadius:s.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:s.LAYOUT.CONTENT_PADDING_H,paddingVertical:s.SPACING.MD},iconButton:{width:s.SIZES.SUBMIT_BUTTON,height:s.SIZES.SUBMIT_BUTTON,borderRadius:s.SIZES.SUBMIT_BUTTON/2,backgroundColor:s.COLORS.BACKGROUND_INPUT,alignItems:"center",justifyContent:"center",marginRight:s.SPACING.SM},input:{flex:1,backgroundColor:s.COLORS.BACKGROUND_INPUT,borderRadius:22,paddingHorizontal:18,paddingVertical:s.SPACING.MD,color:s.COLORS.TEXT_PRIMARY,fontSize:s.TYPOGRAPHY.SIZE_LG,maxHeight:100},submitButton:{width:s.SIZES.SUBMIT_BUTTON,height:s.SIZES.SUBMIT_BUTTON,borderRadius:s.SIZES.SUBMIT_BUTTON/2,backgroundColor:s.COLORS.BACKGROUND_BUTTON,alignItems:"center",justifyContent:"center",marginLeft:s.SPACING.SM+2},submitButtonDisabled:{opacity:.4},stopButton:{backgroundColor:s.COLORS.STATUS_NEUTRAL},stopIcon:{width:12,height:12,backgroundColor:s.COLORS.TEXT_PRIMARY,borderRadius:2},arrowIcon:{width:16,height:16,alignItems:"center",justifyContent:"center"},arrowLine:{width:2,height:10,backgroundColor:s.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:s.COLORS.TEXT_PRIMARY},plusIcon:{width:18,height:18,alignItems:"center",justifyContent:"center"},plusH:{position:"absolute",width:16,height:2,borderRadius:1,backgroundColor:s.COLORS.TEXT_SECONDARY},plusV:{position:"absolute",width:2,height:16,borderRadius:1,backgroundColor:s.COLORS.TEXT_SECONDARY}})},484,[347,29,63,258,485,248]);
537
537
  __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}},485,[]);
538
538
  __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("keyboardDidShow",()=>{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}})},486,[29,63,258,487,485,248]);
@@ -534,7 +534,7 @@ __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;var t=e.color,f=void 0===t?"#000000":t,O=e.expanded,p=void 0!==O&&O,B=e.serverUrl,E=void 0===B?"ws://localhost:3847":B,j=(0,s.useState)("chat"),A=(0,n.default)(j,2),G=A[0],w=A[1],y=(0,s.useRef)(null),_=(0,s.useState)(p),v=(0,n.default)(_,2),N=v[0],I=v[1];(0,s.useEffect)(()=>{},[]),(0,s.useEffect)(()=>{I(p)},[p]);var D=(0,s.useRef)(()=>{}),L=(0,s.useCallback)(e=>{D.current(e)},[]),M=(0,b.useWebSocketMessages)({serverUrl:E,onGitMessage:L}),Y=M.status,U=M.messages,k=M.currentParts,V=M.handleSubmit,H=M.handleNewSession,z=M.handleStop,W=(0,R.useGitState)({handleSubmit:V,setActiveTab:w});if(D.current=W.handleGitMessage,(0,s.useEffect)(()=>{N&&"chat"===G&&setTimeout(()=>y.current?.focus(),100)},[N]),!N)return(0,x.jsx)(o.View,{style:T.collapsedPill,children:(0,x.jsx)(S.PulsingIndicator,{status:Y})});return(0,x.jsxs)(o.View,{style:[T.expanded,{backgroundColor:f}],children:[(0,x.jsx)(S.Header,{status:Y,branchName:W.branchName,onBranchPress:W.handleBranchPress}),(0,x.jsx)(C.TabBar,{activeTab:G,onTabChange:w,onNewSession:H,canStartNew:"connected"===Y,hasPR:W.hasPR,hasChanges:W.gitChanges.length>0,prNumber:W.prNumber,onCreatePR:W.handleCreatePR,onCommit:W.handleCommit,onViewPR:W.handleViewPR}),(0,x.jsx)(o.View,{style:T.body,children:"disconnected"===Y&&0===U.length?(0,x.jsx)(P,{}):"chat"===G?(0,x.jsx)(l.ResponseArea,{messages:U,currentParts:k,status:Y}):(0,x.jsx)(h.GitChangesTab,{changes:W.gitChanges,onDiscard:W.handleDiscard})}),"chat"===G&&"disconnected"!==Y&&(0,x.jsx)(c.PromptInput,{ref:y,onSubmit:V,onStop:z,disabled:"disconnected"===Y,isSending:"sending"===Y,isProcessing:"processing"===Y}),W.showBranchSwitcher&&(0,x.jsx)(u.BranchSwitcher,{branches:W.branches,currentBranch:W.branchName,onSelect:W.handleBranchSelect,onCreate:W.handleBranchCreate,onClose:()=>{W.setShowBranchSwitcher(!1),W.setBranchError(null)},error:W.branchError})]})};var e,t=r(d[0]),n=(e=t)&&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]),f=r(d[11]),x=r(d[12]);o.NativeModules.WidgetBridge;function P(){return(0,x.jsxs)(o.View,{style:T.disconnectedContainer,children:[(0,x.jsx)(o.Text,{style:T.disconnectedTitle,children:"Server not running"}),(0,x.jsx)(o.Text,{style:T.disconnectedSubtitle,children:"Start the development server from your project directory:"}),(0,x.jsx)(o.View,{style:T.codeBlock,children:(0,x.jsx)(o.Text,{style:T.codeText,children:"npx expo-air fly"})})]})}var T=o.StyleSheet.create({collapsedPill:{width:100,height:32,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"},expanded:{flex:1,backgroundColor:f.COLORS.BACKGROUND,borderRadius:f.LAYOUT.BORDER_RADIUS_LG,overflow:"hidden"},body:{flex:1,backgroundColor:f.COLORS.BACKGROUND_ELEVATED},disconnectedContainer:{flex:1,justifyContent:"center",alignItems:"center",paddingHorizontal:f.SPACING.XXL},disconnectedTitle:{color:f.COLORS.TEXT_MUTED,fontSize:f.TYPOGRAPHY.SIZE_LG,fontWeight:f.TYPOGRAPHY.WEIGHT_SEMIBOLD,marginBottom:f.SPACING.SM},disconnectedSubtitle:{color:f.COLORS.TEXT_MUTED,fontSize:f.TYPOGRAPHY.SIZE_SM,textAlign:"center",marginBottom:f.SPACING.LG},codeBlock:{backgroundColor:"rgba(255,255,255,0.06)",borderRadius:f.LAYOUT.BORDER_RADIUS_SM,paddingHorizontal:f.SPACING.LG,paddingVertical:f.SPACING.MD,borderWidth:1,borderColor:f.COLORS.BORDER},codeText:{color:f.COLORS.TEXT_SECONDARY,fontSize:f.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo"}})},485,[29,63,258,486,488,491,492,493,494,495,497,487,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;var t=e.color,f=void 0===t?"#000000":t,O=e.expanded,p=void 0!==O&&O,B=e.serverUrl,E=void 0===B?"ws://localhost:3847":B,j=(0,s.useState)("chat"),A=(0,n.default)(j,2),G=A[0],w=A[1],y=(0,s.useRef)(null),_=(0,s.useState)(p),v=(0,n.default)(_,2),N=v[0],I=v[1];(0,s.useEffect)(()=>{},[]),(0,s.useEffect)(()=>{I(p)},[p]);var D=(0,s.useRef)(()=>{}),L=(0,s.useCallback)(e=>{D.current(e)},[]),M=(0,b.useWebSocketMessages)({serverUrl:E,onGitMessage:L}),Y=M.status,U=M.messages,k=M.currentParts,V=M.handleSubmit,H=M.handleNewSession,z=M.handleStop,W=(0,R.useGitState)({handleSubmit:V,setActiveTab:w});if(D.current=W.handleGitMessage,(0,s.useEffect)(()=>{N&&"chat"===G&&setTimeout(()=>y.current?.focus(),100)},[N]),!N)return(0,x.jsx)(o.View,{style:T.collapsedPill,children:(0,x.jsx)(S.PulsingIndicator,{status:Y})});return(0,x.jsxs)(o.View,{style:[T.expanded,{backgroundColor:f}],children:[(0,x.jsx)(S.Header,{status:Y,branchName:W.branchName,onBranchPress:W.handleBranchPress}),(0,x.jsx)(C.TabBar,{activeTab:G,onTabChange:w,onNewSession:H,canStartNew:"connected"===Y,hasPR:W.hasPR,hasChanges:W.gitChanges.length>0,prNumber:W.prNumber,onCreatePR:W.handleCreatePR,onCommit:W.handleCommit,onViewPR:W.handleViewPR}),(0,x.jsx)(o.View,{style:T.body,children:"disconnected"===Y&&0===U.length?(0,x.jsx)(P,{}):"chat"===G?(0,x.jsx)(l.ResponseArea,{messages:U,currentParts:k,status:Y}):(0,x.jsx)(h.GitChangesTab,{changes:W.gitChanges,onDiscard:W.handleDiscard})}),"chat"===G&&(0,x.jsx)(c.PromptInput,{ref:y,onSubmit:V,onStop:z,disabled:"disconnected"===Y,isSending:"sending"===Y,isProcessing:"processing"===Y}),W.showBranchSwitcher&&(0,x.jsx)(u.BranchSwitcher,{branches:W.branches,currentBranch:W.branchName,onSelect:W.handleBranchSelect,onCreate:W.handleBranchCreate,onClose:()=>{W.setShowBranchSwitcher(!1),W.setBranchError(null)},error:W.branchError})]})};var e,t=r(d[0]),n=(e=t)&&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]),f=r(d[11]),x=r(d[12]);o.NativeModules.WidgetBridge;function P(){return(0,x.jsxs)(o.View,{style:T.disconnectedContainer,children:[(0,x.jsx)(o.Text,{style:T.disconnectedTitle,children:"Server not running"}),(0,x.jsx)(o.Text,{style:T.disconnectedSubtitle,children:"Start the development server from your project directory:"}),(0,x.jsx)(o.View,{style:T.codeBlock,children:(0,x.jsx)(o.Text,{style:T.codeText,children:"npx expo-air fly"})})]})}var T=o.StyleSheet.create({collapsedPill:{width:100,height:32,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"},expanded:{flex:1,backgroundColor:f.COLORS.BACKGROUND,borderRadius:f.LAYOUT.BORDER_RADIUS_LG,overflow:"hidden"},body:{flex:1,backgroundColor:f.COLORS.BACKGROUND_ELEVATED},disconnectedContainer:{flex:1,justifyContent:"center",alignItems:"center",paddingHorizontal:f.SPACING.XXL},disconnectedTitle:{color:f.COLORS.TEXT_MUTED,fontSize:f.TYPOGRAPHY.SIZE_LG,fontWeight:f.TYPOGRAPHY.WEIGHT_SEMIBOLD,marginBottom:f.SPACING.SM},disconnectedSubtitle:{color:f.COLORS.TEXT_MUTED,fontSize:f.TYPOGRAPHY.SIZE_SM,textAlign:"center",marginBottom:f.SPACING.LG},codeBlock:{backgroundColor:"rgba(255,255,255,0.06)",borderRadius:f.LAYOUT.BORDER_RADIUS_SM,paddingHorizontal:f.SPACING.LG,paddingVertical:f.SPACING.MD,borderWidth:1,borderColor:f.COLORS.BORDER},codeText:{color:f.COLORS.TEXT_SECONDARY,fontSize:f.TYPOGRAPHY.SIZE_SM,fontFamily:"Menlo"}})},485,[29,63,258,486,488,491,492,493,494,495,497,487,250]);
538
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=r(d[4]),l=r(d[5]),u=(0,o.forwardRef)((e,u)=>{var b=e.onSubmit,C=e.onStop,T=e.disabled,I=void 0!==T&&T,O=e.isSending,w=void 0!==O&&O,R=e.isProcessing,v=void 0!==R&&R,f=(0,o.useState)(""),y=(0,i.default)(f,2),B=y[0],x=y[1],N=(0,o.useState)([]),L=(0,i.default)(N,2),j=L[0],A=L[1],_=(0,o.useRef)(null);(0,o.useImperativeHandle)(u,()=>({focus:()=>_.current?.focus()})),(0,o.useEffect)(()=>{if(n.NativeModules.WidgetBridge){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||v,P=()=>{var e=B.trim();!(e.length>0||j.length>0)||I||E||(b(e,j.length>0?j:void 0),x(""),A([]))},M=(function(){var e=(0,t.default)(function*(){if(n.NativeModules.WidgetBridge)if(j.length>=4)n.Alert.alert("Limit reached","Maximum 4 images per message.");else try{var e=yield n.NativeModules.WidgetBridge.pickImages(4-j.length,.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=(B.trim().length>0||j.length>0)&&!I&&!E;return(0,l.jsxs)(n.View,{style:S.outerContainer,children:[j.length>0&&(0,l.jsx)(n.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:S.previewStrip,contentContainerStyle:S.previewContent,children:j.map((e,t)=>(0,l.jsxs)(n.View,{style:S.previewItem,children:[(0,l.jsx)(n.Image,{source:{uri:e.uri},style:S.previewImage}),(0,l.jsx)(n.TouchableOpacity,{style:S.removeButton,onPress:()=>U(t),hitSlop:{top:6,bottom:6,left:6,right:6},children:(0,l.jsxs)(n.View,{style:S.removeIcon,children:[(0,l.jsx)(n.View,{style:[S.removeLine,S.removeLineA]}),(0,l.jsx)(n.View,{style:[S.removeLine,S.removeLineB]})]})})]},t))}),(0,l.jsxs)(n.View,{style:S.container,children:[(0,l.jsx)(n.TouchableOpacity,{style:S.iconButton,onPress:M,disabled:E,activeOpacity:.6,children:(0,l.jsx)(c,{})}),(0,l.jsx)(n.TextInput,{ref:_,style:S.input,placeholder:"Ask Claude...",placeholderTextColor:s.COLORS.TEXT_TERTIARY,value:B,onChangeText:x,onSubmitEditing:P,editable:!E,multiline:!0,maxLength:2e3,returnKeyType:"send",blurOnSubmit:!0}),v?(0,l.jsx)(n.TouchableOpacity,{style:[S.submitButton,S.stopButton],onPress:C,activeOpacity:.7,children:(0,l.jsx)(p,{})}):(0,l.jsx)(n.TouchableOpacity,{style:[S.submitButton,!V&&S.submitButtonDisabled],onPress:P,disabled:!V,activeOpacity:.7,children:(0,l.jsx)(h,{})})]})]})});function c(){return(0,l.jsxs)(n.View,{style:S.plusIcon,children:[(0,l.jsx)(n.View,{style:S.plusH}),(0,l.jsx)(n.View,{style:S.plusV})]})}function h(){return(0,l.jsxs)(n.View,{style:S.arrowIcon,children:[(0,l.jsx)(n.View,{style:S.arrowLine}),(0,l.jsx)(n.View,{style:S.arrowHead})]})}function p(){return(0,l.jsx)(n.View,{style:S.stopIcon})}var S=n.StyleSheet.create({outerContainer:{borderTopWidth:1,borderTopColor:s.COLORS.BORDER,backgroundColor:s.COLORS.BACKGROUND},previewStrip:{maxHeight:72,paddingHorizontal:s.LAYOUT.CONTENT_PADDING_H,paddingTop:s.SPACING.SM},previewContent:{gap:s.SPACING.SM,alignItems:"center"},previewItem:{position:"relative"},previewImage:{width:56,height:56,borderRadius:s.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:s.LAYOUT.CONTENT_PADDING_H,paddingVertical:s.SPACING.MD},iconButton:{width:s.SIZES.SUBMIT_BUTTON,height:s.SIZES.SUBMIT_BUTTON,borderRadius:s.SIZES.SUBMIT_BUTTON/2,backgroundColor:s.COLORS.BACKGROUND_INPUT,alignItems:"center",justifyContent:"center",marginRight:s.SPACING.SM},input:{flex:1,backgroundColor:s.COLORS.BACKGROUND_INPUT,borderRadius:22,paddingHorizontal:18,paddingVertical:s.SPACING.MD,color:s.COLORS.TEXT_PRIMARY,fontSize:s.TYPOGRAPHY.SIZE_LG,maxHeight:100},submitButton:{width:s.SIZES.SUBMIT_BUTTON,height:s.SIZES.SUBMIT_BUTTON,borderRadius:s.SIZES.SUBMIT_BUTTON/2,backgroundColor:s.COLORS.BACKGROUND_BUTTON,alignItems:"center",justifyContent:"center",marginLeft:s.SPACING.SM+2},submitButtonDisabled:{opacity:.4},stopButton:{backgroundColor:s.COLORS.STATUS_NEUTRAL},stopIcon:{width:12,height:12,backgroundColor:s.COLORS.TEXT_PRIMARY,borderRadius:2},arrowIcon:{width:16,height:16,alignItems:"center",justifyContent:"center"},arrowLine:{width:2,height:10,backgroundColor:s.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:s.COLORS.TEXT_PRIMARY},plusIcon:{width:18,height:18,alignItems:"center",justifyContent:"center"},plusH:{position:"absolute",width:16,height:2,borderRadius:1,backgroundColor:s.COLORS.TEXT_SECONDARY},plusV:{position:"absolute",width:2,height:16,borderRadius:1,backgroundColor:s.COLORS.TEXT_SECONDARY}})},486,[346,29,63,258,487,250]);
539
539
  __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}},487,[]);
540
540
  __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}})},488,[29,63,258,489,487,250]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10play/expo-air",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "Vibe Coding for React-Native",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -121,7 +121,7 @@ export function BubbleContent({
121
121
  <GitChangesTab changes={git.gitChanges} onDiscard={git.handleDiscard} />
122
122
  )}
123
123
  </View>
124
- {activeTab === "chat" && status !== "disconnected" && (
124
+ {activeTab === "chat" && (
125
125
  <PromptInput
126
126
  ref={promptInputRef}
127
127
  onSubmit={handleSubmit}