@ycodium-ai/agent-antigravity 0.2.4194 → 0.2.4221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- var $=window.__ycodiumPluginHost.modules?.["@ycodium-ai/plugin-api/provider-settings"];if(!$)throw new Error("This plugin needs a newer Ycodium app. Update the app.");var{PROVIDER_SETTINGS_VIEW_CAPABILITY:j,accountDirectoryCandidates:Re,accountDirectorySlug:Be,accountProbeHasSignedInAccount:Ie,allocateAccountDirectory:Ae,providerInstanceAccountPaths:Te}=$;var xe=window.__ycodiumPluginHost.react;var{Activity:Ce,Children:Ee,Component:Ne,Fragment:Pe,Profiler:_e,PureComponent:Ue,StrictMode:Fe,Suspense:Me,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:Ke,__COMPILER_RUNTIME:Le,act:Oe,cache:Ve,cacheSignal:ze,captureOwnerStack:He,cloneElement:De,createContext:J,createElement:Q,createRef:Ye,forwardRef:qe,isValidElement:We,lazy:Ge,memo:$e,startTransition:je,unstable_useCacheRefresh:Je,use:Qe,useActionState:Xe,useCallback:Ze,useContext:X,useDebugValue:et,useDeferredValue:tt,useEffect:nt,useEffectEvent:rt,useId:it,useImperativeHandle:ot,useInsertionEffect:at,useLayoutEffect:lt,useMemo:st,useOptimistic:dt,useReducer:ut,useRef:ct,useState:u,useSyncExternalStore:mt,useTransition:pt,version:gt}=xe;var Z=J(null),ee=Z.Provider;function f(){let e=X(Z);if(e===null)throw new Error("Antigravity UI has not been registered.");return e}var te={"insufficient-space":"runtime.errors.insufficientSpace","download-failed":"runtime.errors.downloadFailed",timeout:"runtime.errors.timeout","verification-failed":"runtime.errors.verificationFailed","extract-failed":"runtime.errors.extractFailed","validation-failed":"runtime.errors.validationFailed","activate-failed":"runtime.errors.activateFailed","install-failed":"runtime.errors.installFailed","runtime-damaged":"runtime.errors.damaged","unsupported-platform":"runtime.errors.unsupportedPlatform","no-instance":"runtime.errors.noInstance",busy:"runtime.errors.busy","remove-failed":"runtime.errors.removeFailed","runtime-installing":"runtime.removeBlocked.installing","runtime-in-use":"runtime.removeBlocked.inUse","runtime-custom-path":"runtime.removeBlocked.customPath"},ne={installing:"runtime.removeBlocked.installing","in-use":"runtime.removeBlocked.inUse","custom-path":"runtime.removeBlocked.customPath"},V={"program-unavailable":"auth.errors.programUnavailable","too-many-processes":"auth.errors.tooManyProcesses","process-exited":"auth.errors.processExited","agent-timeout":"auth.errors.agentTimeout","invalid-url":"auth.errors.invalidUrl","multiple-urls":"auth.errors.multipleUrls",expired:"auth.errors.expired",denied:"auth.errors.denied","subscription-required":"auth.errors.subscriptionRequired","sign-in-unsupported":"auth.errors.signInUnsupported","session-init-failed":"auth.errors.sessionInitFailed","sign-in-required":"auth.errors.signInRequired","callback-too-long":"auth.errors.callbackTooLong","callback-malformed":"auth.errors.callbackMalformed","callback-mismatch":"auth.errors.callbackMismatch","callback-no-response":"auth.errors.callbackNoResponse","callback-bad-issuer":"auth.errors.callbackBadIssuer","callback-already-sent":"auth.errors.callbackAlreadySent","callback-delivery-failed":"auth.errors.callbackDeliveryFailed","no-active-sign-in":"auth.errors.noActiveSignIn","sign-in-not-ready":"auth.errors.signInNotReady","logout-unsupported":"auth.errors.logoutUnsupported","logout-failed":"auth.errors.logoutFailed","refresh-failed":"auth.errors.refreshFailed",busy:"auth.errors.busy","instance-unavailable":"auth.errors.instanceUnavailable","instance-disposed":"auth.errors.instanceDisposed","sign-in-failed":"auth.errors.signInFailed"};function b(e,t,i,p={}){let d=i.code===void 0?void 0:t[i.code];return d===void 0?i.message:e(d,p)}function A(e){return(t=>Q(f().ui[e],{...t,className:`ycodium-antigravity-ui ${typeof t.className=="string"?t.className:""}`}))}var s=A("Button"),re=A("Input"),ie=A("Badge"),oe=A("Alert"),ae=A("AlertDescription"),z=A("Spinner");function T(){let e=f().i18n.usePluginTranslation();return{t:(t,i)=>e(t,i)}}var{jsx:n,jsxs:o,Fragment:k}=window.__ycodiumPluginHost.jsxRuntime;function E(e){return o("section",{className:"grid gap-2",children:[n("h3",{className:"text-ui-md font-medium",children:e.title}),e.description===void 0?null:n("p",{className:"text-ui-sm text-muted-foreground",children:e.description}),e.children]})}function R(e){return n(oe,{variant:"error",children:n(ae,{"data-slot":"alert-description",children:e.text})})}function H(e){let[t,i]=u(!1);return t?o("div",{className:"grid gap-2",children:[n("p",{className:"text-ui-sm",children:e.prompt}),o("div",{className:"flex flex-wrap gap-2",children:[n(s,{size:"xs",variant:"destructive-outline",disabled:e.disabled,onClick:()=>{i(!1),e.onConfirm()},children:e.confirmLabel}),n(s,{size:"xs",variant:"ghost",onClick:()=>i(!1),children:e.cancelLabel})]})]}):n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",variant:"outline",disabled:e.disabled,onClick:()=>i(!0),children:e.label})})}var D=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function le(e){return!D(e)||typeof e.phase!="string"||typeof e.installed!="boolean"?null:e}function se(e){return!D(e)||typeof e.phase!="string"||typeof e.signedIn!="boolean"?null:e}function de(e){return!D(e)||!Array.isArray(e.models)?null:e}function N(e){let i=(D(e)?e:void 0)?.pluginCode,p=e instanceof Error?e.message:String(e);return{code:typeof i=="string"?i:void 0,message:p}}function h(e){let t=e/1048576;return t>=1024?`${(t/1024).toFixed(1)} GB`:`${Math.max(1,Math.round(t))} MB`}function ue(e){let{t}=T(),i=f(),p=i.useFormatTimestamp(),d={environmentId:e.environmentId},c=i.commands.useSubscription("auth.state",{instanceId:e.instanceId},d),g=se(c.data),[S,P]=u(!1),[_,C]=u(null),[l,v]=u(""),[U,r]=u(null),[m,B]=u(null),F=async(a,y)=>{P(!0);try{return await i.commands.invoke(a,y,d)}finally{P(!1)}},x=async(a,y={})=>{C(null);try{return await F(a,{instanceId:e.instanceId,...y}),!0}catch(w){return C(N(w)),!1}},M=async()=>{await x("auth.complete",{callbackUrl:l.trim()})&&v("")},ye=async()=>{r(null),B(null);try{r(de(await F("models.refresh",{instanceId:e.instanceId})))}catch(a){B(N(a))}},fe=async a=>{try{await i.writeClipboard(a),i.notify(t("auth.copied"),"success")}catch{i.notify(t("auth.copyFailed"),"error")}},he=a=>{let y=a.operation,w=y!==null,K=y==="sign-in",L=K&&a.phase==="waiting"?a.authorizationUrl:null,O=S||e.readOnly,I=w?null:a.programUnavailable,q=_??(w?null:a.error),W=I!==null&&q?.code===I.code?null:q,G=K?a.phase==="waiting"?"auth.state.waiting":a.phase==="verifying"?"auth.state.verifying":"auth.state.starting":y==="sign-out"?"auth.state.signingOut":y==="refresh-models"?"auth.state.refreshing":a.phase==="cancelled"&&!a.signedIn?"auth.state.cancelled":null;return o(k,{children:[o("p",{className:"flex items-center gap-2 text-ui-md",children:[w?n(z,{className:"size-3.5"}):n(ie,{variant:a.signedIn?"success":"outline",children:t(a.signedIn?"auth.badge.signedIn":"auth.badge.signedOut")}),G===null?null:n("span",{children:t(G)})]}),W===null?null:n(R,{text:b(t,V,W)}),I===null?null:n("p",{className:"text-ui-sm text-muted-foreground",children:b(t,V,I)}),L===null?null:o("div",{className:"grid gap-2",children:[n("p",{className:"text-ui-sm text-muted-foreground",children:t("auth.linkIntro")}),n("p",{className:"break-all text-ui-xs select-text",children:L}),o("div",{className:"flex flex-wrap gap-2",children:[n(s,{size:"xs",variant:"outline",onClick:()=>i.openExternal(L),children:t("auth.open")}),n(s,{size:"xs",variant:"outline",onClick:()=>{fe(L)},children:t("auth.copy")})]}),o("label",{className:"grid gap-1",children:[n("span",{className:"text-ui-sm font-medium",children:t("auth.pasteLabel")}),n(re,{value:l,onChange:Y=>v(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&l.trim().length>0&&!O&&M()},placeholder:t("auth.pastePlaceholder"),spellCheck:!1,autoComplete:"off","aria-label":t("auth.pasteLabel")})]}),n("p",{className:"text-ui-sm text-muted-foreground",children:t("auth.pasteHint")}),n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",disabled:O||l.trim().length===0,onClick:()=>{M()},children:t("auth.complete")})})]}),a.expiresAt!==null&&K?n("p",{className:"text-ui-xs text-muted-foreground",children:t("auth.expiresAt",{time:p(a.expiresAt)})}):null,o("div",{className:"flex flex-wrap gap-2",children:[!w&&!a.signedIn?n(s,{size:"xs",disabled:O||I!==null,onClick:()=>{v(""),x("auth.start")},children:t("auth.start")}):null,K?n(s,{size:"xs",variant:"outline",disabled:e.readOnly,onClick:()=>{v(""),x("auth.cancel")},children:t("auth.cancel")}):null]}),!w&&a.signedIn?n(H,{label:t("auth.logout"),prompt:t("auth.logoutConfirm"),confirmLabel:t("auth.logoutConfirmAction"),cancelLabel:t("common.cancel"),disabled:O||I!==null,onConfirm:()=>{x("auth.logout")}}):null]})},ve=c.error!==null?null:c.isUnavailable?n("p",{className:"text-ui-sm text-muted-foreground",children:t("common.unavailable")}):n("p",{className:"text-ui-sm text-muted-foreground",children:t("common.loading")});return o(k,{children:[o(E,{title:t("auth.title"),description:t("auth.description"),children:[c.error===null?null:n(R,{text:t("common.loadFailed",{message:c.error})}),g===null?ve:he(g)]}),o(E,{title:t("models.title"),description:t("models.description"),children:[n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",variant:"outline",disabled:g===null||g.operation!==null||g.programUnavailable!==null||S||e.readOnly,onClick:()=>{ye()},children:t("models.refresh")})}),U===null?null:n("p",{className:"text-ui-sm text-muted-foreground",children:t("models.result",{count:U.models.length})}),m===null?null:n(R,{text:b(t,V,m)})]})]})}var we=new Set(["downloading","extracting","verifying"]);function ce(e){let{t}=T(),i=f(),p={environmentId:e.environmentId},d=i.commands.useSubscription("runtime.state",{},p),c=le(d.data),[g,S]=u(!1),[P,_]=u(null),C=async(r,m)=>{_(null),S(!0);try{await i.commands.invoke(r,m,p)}catch(B){_(N(B))}finally{S(!1)}},l=c?.release??null,v={download:l===null?"":h(l.archiveBytes),installed:l===null?"":h(l.installedBytes),free:l===null?"":h(l.requiredFreeBytes),size:l===null?"":h(l.requiredFreeBytes)},U=r=>{let m=we.has(r.phase),B=l!==null&&(!r.installed||r.updateAvailable),F=m?r.phase==="downloading"?r.totalBytes===null||r.totalBytes<=0?t("runtime.state.downloadingUnknown",{done:h(r.downloadedBytes)}):t("runtime.state.downloading",{done:h(r.downloadedBytes),total:h(r.totalBytes),percent:Math.min(100,Math.floor(r.downloadedBytes*100/r.totalBytes))}):t(r.phase==="extracting"?"runtime.state.extracting":"runtime.state.verifying"):r.installed?r.updateAvailable?t("runtime.state.updateAvailable",{version:r.installedVersion??"",latest:l?.version??""}):t("runtime.state.installed",{version:r.installedVersion??""}):t(l===null?"runtime.state.unsupported":"runtime.state.notInstalled"),x=P??r.error,M=r.canRemove||r.removeBlocked!==null;return o(k,{children:[o("p",{className:"flex items-center gap-2 text-ui-md",children:[m?n(z,{className:"size-3.5"}):null,n("span",{children:F})]}),x===null||m?null:n(R,{text:b(t,te,x,v)}),B&&!m?o(k,{children:[n("p",{className:"text-ui-sm text-muted-foreground",children:t("runtime.sizes",v)}),n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",disabled:g||e.readOnly,onClick:()=>{C("runtime.install",{instanceId:e.instanceId})},children:t(r.installed?"runtime.update":"runtime.install")})})]}):null,M?o(k,{children:[n(H,{label:t("runtime.remove"),prompt:t("runtime.removeConfirm"),confirmLabel:t("runtime.removeConfirmAction"),cancelLabel:t("common.cancel"),disabled:g||e.readOnly||!r.canRemove,onConfirm:()=>{C("runtime.remove",{})}}),r.removeBlocked===null?null:n("p",{className:"text-ui-sm text-muted-foreground",children:b(t,ne,r.removeBlocked)})]}):null]})};return o(E,{title:t("runtime.title"),description:t("runtime.description"),children:[d.error===null?null:n(R,{text:t("common.loadFailed",{message:d.error})}),c!==null?U(c):d.isUnavailable?n("p",{className:"text-ui-sm text-muted-foreground",children:t("common.unavailable")}):d.error===null?n("p",{className:"text-ui-sm text-muted-foreground",children:t("common.loading")}):null]})}function me(e){let{t}=T();return e.placement==="add"||e.instanceId===null?n("p",{className:"ycodium-antigravity-ui text-ui-sm text-muted-foreground",children:t("add.hint")}):o("div",{className:"ycodium-antigravity-ui grid gap-6",children:[n(ce,{instanceId:e.instanceId,environmentId:e.environmentId,readOnly:e.readOnly}),n(ue,{instanceId:e.instanceId,environmentId:e.environmentId,readOnly:e.readOnly})]})}var pe=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
1
+ var j=window.__ycodiumPluginHost.modules?.["@ycodium-ai/plugin-api/provider-settings"];if(!j)throw new Error("This plugin needs a newer Ycodium app. Update the app.");var{PROVIDER_SETTINGS_VIEW_CAPABILITY:J,accountDirectoryCandidates:Re,accountDirectorySlug:Be,accountProbeHasSignedInAccount:Ie,allocateAccountDirectory:Ae,providerInstanceAccountPaths:Te}=j;var xe=window.__ycodiumPluginHost.react;var{Activity:Ce,Children:Ee,Component:Ne,Fragment:Pe,Profiler:_e,PureComponent:Ue,StrictMode:Fe,Suspense:Me,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:Ke,__COMPILER_RUNTIME:Le,act:Oe,cache:Ve,cacheSignal:ze,captureOwnerStack:He,cloneElement:De,createContext:Q,createElement:X,createRef:Ye,forwardRef:qe,isValidElement:We,lazy:Ge,memo:$e,startTransition:je,unstable_useCacheRefresh:Je,use:Qe,useActionState:Xe,useCallback:Ze,useContext:Z,useDebugValue:et,useDeferredValue:tt,useEffect:nt,useEffectEvent:rt,useId:it,useImperativeHandle:ot,useInsertionEffect:at,useLayoutEffect:lt,useMemo:st,useOptimistic:dt,useReducer:ut,useRef:ct,useState:c,useSyncExternalStore:mt,useTransition:pt,version:gt}=xe;var ee=Q(null),te=ee.Provider;function v(){let t=Z(ee);if(t===null)throw new Error("Antigravity UI has not been registered.");return t}var q={"insufficient-space":"runtime.errors.insufficientSpace","download-failed":"runtime.errors.downloadFailed",timeout:"runtime.errors.timeout","verification-failed":"runtime.errors.verificationFailed","extract-failed":"runtime.errors.extractFailed","validation-failed":"runtime.errors.validationFailed","activate-failed":"runtime.errors.activateFailed","install-failed":"runtime.errors.installFailed","runtime-damaged":"runtime.errors.damaged","unsupported-platform":"runtime.errors.unsupportedPlatform","no-instance":"runtime.errors.noInstance",busy:"runtime.errors.busy","remove-failed":"runtime.errors.removeFailed","runtime-installing":"runtime.removeBlocked.installing","runtime-in-use":"runtime.removeBlocked.inUse","runtime-custom-path":"runtime.removeBlocked.customPath"},ne={installing:"runtime.removeBlocked.installing","in-use":"runtime.removeBlocked.inUse","custom-path":"runtime.removeBlocked.customPath"},S={"program-unavailable":"auth.errors.programUnavailable","too-many-processes":"auth.errors.tooManyProcesses","process-exited":"auth.errors.processExited","agent-timeout":"auth.errors.agentTimeout","invalid-url":"auth.errors.invalidUrl","multiple-urls":"auth.errors.multipleUrls",expired:"auth.errors.expired",denied:"auth.errors.denied","subscription-required":"auth.errors.subscriptionRequired","sign-in-unsupported":"auth.errors.signInUnsupported","session-init-failed":"auth.errors.sessionInitFailed","sign-in-required":"auth.errors.signInRequired","callback-too-long":"auth.errors.callbackTooLong","callback-malformed":"auth.errors.callbackMalformed","callback-mismatch":"auth.errors.callbackMismatch","callback-no-response":"auth.errors.callbackNoResponse","callback-bad-issuer":"auth.errors.callbackBadIssuer","callback-already-sent":"auth.errors.callbackAlreadySent","callback-delivery-failed":"auth.errors.callbackDeliveryFailed","no-active-sign-in":"auth.errors.noActiveSignIn","sign-in-not-ready":"auth.errors.signInNotReady","logout-unsupported":"auth.errors.logoutUnsupported","logout-failed":"auth.errors.logoutFailed","refresh-failed":"auth.errors.refreshFailed",busy:"auth.errors.busy","instance-unavailable":"auth.errors.instanceUnavailable","instance-disposed":"auth.errors.instanceDisposed","sign-in-failed":"auth.errors.signInFailed"};function m(t,e,r,y={}){let d=r.code===void 0?void 0:e[r.code];return d===void 0?r.message:t(d,y)}function C(t){return(e=>X(v().ui[t],{...e,className:`ycodium-antigravity-ui ${typeof e.className=="string"?e.className:""}`}))}var s=C("Button"),re=C("Input"),ie=C("Badge"),oe=C("Alert"),ae=C("AlertDescription"),z=C("Spinner");function E(){let t=v().i18n.usePluginTranslation();return{t:(e,r)=>t(e,r)}}var{jsx:n,jsxs:o,Fragment:B}=window.__ycodiumPluginHost.jsxRuntime;function _(t){return o("section",{className:"grid gap-2",children:[n("h3",{className:"text-ui-md font-medium",children:t.title}),t.description===void 0?null:n("p",{className:"text-ui-sm text-muted-foreground",children:t.description}),t.children]})}function I(t){return n(oe,{variant:"error",children:n(ae,{"data-slot":"alert-description",children:t.text})})}function H(t){let[e,r]=c(!1);return e?o("div",{className:"grid gap-2",children:[n("p",{className:"text-ui-sm",children:t.prompt}),o("div",{className:"flex flex-wrap gap-2",children:[n(s,{size:"xs",variant:"destructive-outline",disabled:t.disabled,onClick:()=>{r(!1),t.onConfirm()},children:t.confirmLabel}),n(s,{size:"xs",variant:"ghost",onClick:()=>r(!1),children:t.cancelLabel})]})]}):n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",variant:"outline",disabled:t.disabled,onClick:()=>r(!0),children:t.label})})}var D=t=>typeof t=="object"&&t!==null&&!Array.isArray(t);function le(t){return!D(t)||typeof t.phase!="string"||typeof t.installed!="boolean"?null:t}function se(t){return!D(t)||typeof t.phase!="string"||typeof t.signedIn!="boolean"?null:t}function de(t){return!D(t)||!Array.isArray(t.models)?null:t}function U(t){let r=(D(t)?t:void 0)?.pluginCode,y=t instanceof Error?t.message:String(t);return{code:typeof r=="string"?r:void 0,message:y}}function x(t){let e=t/1048576;return e>=1024?`${(e/1024).toFixed(1)} GB`:`${Math.max(1,Math.round(e))} MB`}function ue(t){let{t:e}=E(),r=v(),y=r.useFormatTimestamp(),d={environmentId:t.environmentId},p=r.commands.useSubscription("auth.state",{instanceId:t.instanceId},d),f=se(p.data),[N,F]=c(!1),[M,P]=c(null),[l,h]=c(""),[K,i]=c(null),[g,A]=c(null),w=async(a,u)=>{F(!0);try{return await r.commands.invoke(a,u,d)}finally{F(!1)}},b=async(a,u={})=>{P(null);try{return await w(a,{instanceId:t.instanceId,...u}),!0}catch(k){let R=U(k);return P(R),r.notify(m(e,S,R),"error"),!1}},L=async()=>{await b("auth.complete",{callbackUrl:l.trim()})&&h("")},ye=async()=>{i(null),A(null);try{i(de(await w("models.refresh",{instanceId:t.instanceId})))}catch(a){let u=U(a);A(u),r.notify(m(e,S,u),"error")}},fe=async a=>{try{await r.writeClipboard(a),r.notify(e("auth.copied"),"success")}catch{r.notify(e("auth.copyFailed"),"error")}},he=a=>{let u=a.operation,k=u!==null,R=u==="sign-in",O=R&&a.phase==="waiting"?a.authorizationUrl:null,V=N||t.readOnly,T=k?null:a.programUnavailable,W=M??(k?null:a.error),G=T!==null&&W?.code===T.code?null:W,$=R?a.phase==="waiting"?"auth.state.waiting":a.phase==="verifying"?"auth.state.verifying":"auth.state.starting":u==="sign-out"?"auth.state.signingOut":u==="refresh-models"?"auth.state.refreshing":a.phase==="cancelled"&&!a.signedIn?"auth.state.cancelled":null;return o(B,{children:[o("p",{className:"flex items-center gap-2 text-ui-md",children:[k?n(z,{className:"size-3.5"}):n(ie,{variant:a.signedIn?"success":"outline",children:e(a.signedIn?"auth.badge.signedIn":"auth.badge.signedOut")}),$===null?null:n("span",{children:e($)})]}),G===null?null:n(I,{text:m(e,S,G)}),T===null?null:n("p",{className:"text-ui-sm text-muted-foreground",children:m(e,S,T)}),O===null?null:o("div",{className:"grid gap-2",children:[n("p",{className:"text-ui-sm text-muted-foreground",children:e("auth.linkIntro")}),n("p",{className:"break-all text-ui-xs select-text",children:O}),o("div",{className:"flex flex-wrap gap-2",children:[n(s,{size:"xs",variant:"outline",onClick:()=>r.openExternal(O),children:e("auth.open")}),n(s,{size:"xs",variant:"outline",onClick:()=>{fe(O)},children:e("auth.copy")})]}),o("label",{className:"grid gap-1",children:[n("span",{className:"text-ui-sm font-medium",children:e("auth.pasteLabel")}),n(re,{value:l,onChange:Y=>h(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&l.trim().length>0&&!V&&L()},placeholder:e("auth.pastePlaceholder"),spellCheck:!1,autoComplete:"off","aria-label":e("auth.pasteLabel")})]}),n("p",{className:"text-ui-sm text-muted-foreground",children:e("auth.pasteHint")}),n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",disabled:V||l.trim().length===0,onClick:()=>{L()},children:e("auth.complete")})})]}),a.expiresAt!==null&&R?n("p",{className:"text-ui-xs text-muted-foreground",children:e("auth.expiresAt",{time:y(a.expiresAt)})}):null,o("div",{className:"flex flex-wrap gap-2",children:[!k&&!a.signedIn?n(s,{size:"xs",disabled:V||T!==null,onClick:()=>{h(""),b("auth.start")},children:e("auth.start")}):null,R?n(s,{size:"xs",variant:"outline",disabled:t.readOnly,onClick:()=>{h(""),b("auth.cancel")},children:e("auth.cancel")}):null]}),!k&&a.signedIn?n(H,{label:e("auth.logout"),prompt:e("auth.logoutConfirm"),confirmLabel:e("auth.logoutConfirmAction"),cancelLabel:e("common.cancel"),disabled:V||T!==null,onConfirm:()=>{b("auth.logout")}}):null]})},ve=p.error!==null?null:p.isUnavailable?n("p",{className:"text-ui-sm text-muted-foreground",children:e("common.unavailable")}):n("p",{className:"text-ui-sm text-muted-foreground",children:e("common.loading")});return o(B,{children:[o(_,{title:e("auth.title"),description:e("auth.description"),children:[p.error===null?null:n(I,{text:e("common.loadFailed",{message:p.error})}),f===null?ve:he(f)]}),o(_,{title:e("models.title"),description:e("models.description"),children:[n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",variant:"outline",disabled:f===null||f.operation!==null||f.programUnavailable!==null||N||t.readOnly,onClick:()=>{ye()},children:e("models.refresh")})}),K===null?null:n("p",{className:"text-ui-sm text-muted-foreground",children:e("models.result",{count:K.models.length})}),g===null?null:n(I,{text:m(e,S,g)})]})]})}var we=new Set(["downloading","extracting","verifying"]);function ce(t){let{t:e}=E(),r=v(),y={environmentId:t.environmentId},d=r.commands.useSubscription("runtime.state",{},y),p=le(d.data),[f,N]=c(!1),[F,M]=c(null),P=async(i,g)=>{M(null),N(!0);try{await r.commands.invoke(i,g,y)}catch(A){let w=U(A);M(w),r.notify(m(e,q,w,h),"error")}finally{N(!1)}},l=p?.release??null,h={download:l===null?"":x(l.archiveBytes),installed:l===null?"":x(l.installedBytes),free:l===null?"":x(l.requiredFreeBytes),size:l===null?"":x(l.requiredFreeBytes)},K=i=>{let g=we.has(i.phase),A=l!==null&&(!i.installed||i.updateAvailable),w=g?i.phase==="downloading"?i.totalBytes===null||i.totalBytes<=0?e("runtime.state.downloadingUnknown",{done:x(i.downloadedBytes)}):e("runtime.state.downloading",{done:x(i.downloadedBytes),total:x(i.totalBytes),percent:Math.min(100,Math.floor(i.downloadedBytes*100/i.totalBytes))}):e(i.phase==="extracting"?"runtime.state.extracting":"runtime.state.verifying"):i.installed?i.updateAvailable?e("runtime.state.updateAvailable",{version:i.installedVersion??"",latest:l?.version??""}):e("runtime.state.installed",{version:i.installedVersion??""}):e(l===null?"runtime.state.unsupported":"runtime.state.notInstalled"),b=F??i.error,L=i.canRemove||i.removeBlocked!==null;return o(B,{children:[o("p",{className:"flex items-center gap-2 text-ui-md",children:[g?n(z,{className:"size-3.5"}):null,n("span",{children:w})]}),b===null||g?null:n(I,{text:m(e,q,b,h)}),A&&!g?o(B,{children:[n("p",{className:"text-ui-sm text-muted-foreground",children:e("runtime.sizes",h)}),n("div",{className:"flex flex-wrap gap-2",children:n(s,{size:"xs",disabled:f||t.readOnly,onClick:()=>{P("runtime.install",{instanceId:t.instanceId})},children:e(i.installed?"runtime.update":"runtime.install")})})]}):null,L?o(B,{children:[n(H,{label:e("runtime.remove"),prompt:e("runtime.removeConfirm"),confirmLabel:e("runtime.removeConfirmAction"),cancelLabel:e("common.cancel"),disabled:f||t.readOnly||!i.canRemove,onConfirm:()=>{P("runtime.remove",{})}}),i.removeBlocked===null?null:n("p",{className:"text-ui-sm text-muted-foreground",children:m(e,ne,i.removeBlocked)})]}):null]})};return o(_,{title:e("runtime.title"),description:e("runtime.description"),children:[d.error===null?null:n(I,{text:e("common.loadFailed",{message:d.error})}),p!==null?K(p):d.isUnavailable?n("p",{className:"text-ui-sm text-muted-foreground",children:e("common.unavailable")}):d.error===null?n("p",{className:"text-ui-sm text-muted-foreground",children:e("common.loading")}):null]})}function me(t){let{t:e}=E();return t.placement==="add"||t.instanceId===null?n("p",{className:"ycodium-antigravity-ui text-ui-sm text-muted-foreground",children:e("add.hint")}):o("div",{className:"ycodium-antigravity-ui grid gap-6",children:[n(ce,{instanceId:t.instanceId,environmentId:t.environmentId,readOnly:t.readOnly}),n(ue,{instanceId:t.instanceId,environmentId:t.environmentId,readOnly:t.readOnly})]})}var pe=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
2
2
  @layer properties, theme, base, components, utilities;
3
3
  @layer properties;
4
4
  @layer utilities {
@@ -92,4 +92,4 @@ var $=window.__ycodiumPluginHost.modules?.["@ycodium-ai/plugin-api/provider-sett
92
92
  }
93
93
  }
94
94
  }
95
- `;var ge="setup";function ke(e){let t=i=>o(ee,{value:e,children:[n("style",{children:pe}),n(me,{...i})]});return{pages:{},panels:{},views:{[ge]:t},viewCapabilities:{[ge]:[j]}}}export{ge as ANTIGRAVITY_SETUP_SECTION_ID,ke as default};
95
+ `;var ge="setup";function ke(t){let e=r=>o(te,{value:t,children:[n("style",{children:pe}),n(me,{...r})]});return{pages:{},panels:{},views:{[ge]:e},viewCapabilities:{[ge]:[J]}}}export{ge as ANTIGRAVITY_SETUP_SECTION_ID,ke as default};
package/dist/index.js CHANGED
@@ -1387,7 +1387,7 @@ var require_yauzl = __commonJS({
1387
1387
  import { definePlugin } from "@ycodium-ai/plugin-api";
1388
1388
 
1389
1389
  // ../../packages/plugin-api/src/version.ts
1390
- var PLUGIN_API_VERSION = 99;
1390
+ var PLUGIN_API_VERSION = 102;
1391
1391
 
1392
1392
  // src/index.ts
1393
1393
  import {
package/locales/en.json CHANGED
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "homePath": {
12
12
  "title": "Account directory",
13
- "description": "The Google sign-in and conversation history live here, so providers sharing this directory share one sign-in and can pick up each other's threads. Leave empty to give this provider its own private directory.",
13
+ "description": "The Google sign-in and thread history live here, so providers sharing this directory share one sign-in and can pick up each other's threads. Leave empty to give this provider its own private directory.",
14
14
  "placeholder": "e.g. ~/.antigravity-work",
15
15
  "private": "private to this provider",
16
16
  "newInstance": "A private directory for this provider, created when you add it"
@@ -46,7 +46,7 @@
46
46
  "removeConfirmAction": "Remove",
47
47
  "removeBlocked": {
48
48
  "installing": "Wait for the installation or removal in progress to finish.",
49
- "inUse": "Stop Antigravity conversations before removing the runtime.",
49
+ "inUse": "Stop Antigravity threads before removing the runtime.",
50
50
  "customPath": "A provider's program path points into the downloaded runtime. Clear that path first."
51
51
  },
52
52
  "errors": {
@@ -93,11 +93,11 @@
93
93
  "complete": "Finish",
94
94
  "expiresAt": "This sign-in expires at {{time}}.",
95
95
  "logout": "Sign out",
96
- "logoutConfirm": "Sign out of Google? This stops every running conversation of this provider.",
96
+ "logoutConfirm": "Sign out of Google? This stops every running thread of this provider.",
97
97
  "logoutConfirmAction": "Sign out",
98
98
  "errors": {
99
99
  "programUnavailable": "The Antigravity program could not be found. Install the runtime above or set the program path.",
100
- "tooManyProcesses": "Too many Antigravity processes are running. Close a conversation and try again.",
100
+ "tooManyProcesses": "Too many Antigravity processes are running. Close a thread and try again.",
101
101
  "processExited": "Antigravity exited before it finished. Try again.",
102
102
  "agentTimeout": "Antigravity did not answer in time. It may still be starting up; try again.",
103
103
  "invalidUrl": "Antigravity returned a sign-in link that cannot be used. Start sign-in again.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-antigravity",
3
- "version": "0.2.4194",
3
+ "version": "0.2.4221",
4
4
  "description": "Google Antigravity executor: runs the Antigravity agent over Agent Client Protocol stdio.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -31,9 +31,9 @@
31
31
  "typescript": "~6.0.3",
32
32
  "vite-plus": "0.2.2",
33
33
  "yauzl": "^3.4.0",
34
- "ycodium-acp-executor": "0.2.4194",
35
34
  "ycodium-executor-testing": "0.0.0",
36
- "@ycodium-ai/plugin-api": "0.2.4194"
35
+ "ycodium-acp-executor": "0.2.4221",
36
+ "@ycodium-ai/plugin-api": "0.2.4221"
37
37
  },
38
38
  "ycodium": {
39
39
  "plugin": "./dist/index.js",