opencode-navigator 0.27.3 → 0.27.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.
- package/CHANGELOG.md +16 -0
- package/HOST_API.md +17 -0
- package/PROVIDERS.md +4 -0
- package/README.md +72 -5
- package/dist/{chunk-fd7394y1.js → chunk-4rh7rb74.js} +15 -1
- package/dist/chunk-sm9ej5ac.js +6 -0
- package/dist/chunk-tq2z58v5.js +23 -0
- package/dist/chunk-v6qckzat.js +838 -0
- package/dist/gui-experimental.cjs +9567 -8828
- package/dist/native-todo-setup.js +5 -830
- package/dist/navigator-updates.js +671 -321
- package/dist/provider-limits.js +491 -239
- package/dist/sidebar-settings.js +14 -17
- package/dist/tui.js +172 -132
- package/dist/upgrade-notes.js +4 -2
- package/package.json +5 -1
- package/dist/chunk-rrvwmnyh.js +0 -22
package/dist/sidebar-settings.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {SIDEBAR_SECTIONS,SECTION_DEFINITIONS,PLUGIN_ID,DEFAULT_SEARCH_KEY
|
|
2
2
|
} from "./chunk-dm1y8x49.js"
|
|
3
|
+
import {navigatorUpdateAction
|
|
4
|
+
} from "./chunk-tq2z58v5.js"
|
|
3
5
|
import {isNewerVersion
|
|
4
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4rh7rb74.js"
|
|
5
7
|
import"./chunk-qmntexwm.js";
|
|
6
8
|
import {use as _$use5} from "@opentui/solid"
|
|
7
9
|
import {createComponent as _$createComponent12} from "@opentui/solid"
|
|
@@ -473,16 +475,10 @@ import {supportsSidebarSection} from "./tui.js"
|
|
|
473
475
|
import {getNavigatorAboutServices} from "./tui.js"
|
|
474
476
|
function aboutSettingsOptions(api,icons){const service=getNavigatorAboutServices(api)
|
|
475
477
|
const state=service?.checkState()
|
|
476
|
-
const
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
else if(service?.updating())
|
|
481
|
-
updateDescription="Installing\u2026"
|
|
482
|
-
else if(state?.status==="available")
|
|
483
|
-
updateDescription=`Install ${state.latest}`
|
|
484
|
-
return [{title:`${icons.icon("retry")} Check for updates`,value:"about:check",description:service?.checking()?"Checking\u2026":"Check the published Navigator version",disabled:busy
|
|
485
|
-
},{title:`${icons.icon("update")} Update Navigator\u2026`,value:"about:update",description:updateDescription,disabled:busy||state?.status!=="available"||Boolean(service?.installed?.())
|
|
478
|
+
const action=navigatorUpdateAction({checking:service?.checking()??false,busy:!service||service.updating(),available:state?.status==="available",latest:state?.latest,restart:service?.installed?.(),progress:service?.installation?.navigatorProgress()
|
|
479
|
+
})
|
|
480
|
+
const icon=action.kind==="update"?"update":"retry"
|
|
481
|
+
return [{title:`${icons.icon(icon)} ${action.label}`,value:"about:check",description:action.detail,disabled:action.kind==="waiting"||action.kind==="restart"
|
|
486
482
|
},{title:`${icons.icon("history")} Changelog by version\u2026`,value:"about:changelog",description:"Browse the bundled release history",disabled:!service
|
|
487
483
|
},{title:`${icons.icon("bug")} Report a bug\u2026`,value:"about:bug-report",description:"Edit a Bug report; send with gh or open your browser",disabled:!service
|
|
488
484
|
}]
|
|
@@ -734,8 +730,11 @@ import {getNavigatorAboutServices as getNavigatorAboutServices2} from "./tui.js"
|
|
|
734
730
|
function selectAboutAction(api,dialogs,value,openBugReport){const service=getNavigatorAboutServices2(api)
|
|
735
731
|
if(!service)
|
|
736
732
|
return
|
|
737
|
-
switch(value){case "about:check":{if(!service.checking()&&!service.updating())
|
|
733
|
+
switch(value){case "about:check":{if(!service.checking()&&!service.updating()&&!service.installed?.()){if(service.checkState().status==="available")
|
|
734
|
+
service.update(dialogs)
|
|
735
|
+
else
|
|
738
736
|
service.check()
|
|
737
|
+
}
|
|
739
738
|
break
|
|
740
739
|
}
|
|
741
740
|
case "about:update":{if(service.checkState().status==="available"&&!service.updating())
|
|
@@ -1105,14 +1104,12 @@ _$insert6(_el$4,()=>service()?.openCodeVersion??props.api.app?.version??"version
|
|
|
1105
1104
|
_$setProp8(_el$6,"height",1)
|
|
1106
1105
|
_$setProp8(_el$6,"truncate",true)
|
|
1107
1106
|
_$setProp8(_el$6,"wrapMode","none")
|
|
1108
|
-
_$insert6(_el$6,(
|
|
1109
|
-
return()=>_c$()?"Installing Navigator. Restart OpenCode after completion.":status()
|
|
1110
|
-
})())
|
|
1107
|
+
_$insert6(_el$6,()=>service()?.installation?.navigatorError()||(service()?.updating()?"Keep OpenCode open while Navigator updates.":status()))
|
|
1111
1108
|
_$setProp8(_el$7,"height",1)
|
|
1112
1109
|
_$setProp8(_el$7,"truncate",true)
|
|
1113
1110
|
_$setProp8(_el$7,"wrapMode","none")
|
|
1114
|
-
_$insert6(_el$7,(()=>{var _c
|
|
1115
|
-
return()=>_c$
|
|
1111
|
+
_$insert6(_el$7,(()=>{var _c$=_$memo2(()=>!!service()?.checkState().checkedAt)
|
|
1112
|
+
return()=>_c$()?`Last check: ${new Date(service().checkState().checkedAt).toLocaleTimeString()}`:"Check manually when needed."
|
|
1116
1113
|
})())
|
|
1117
1114
|
_$insert6(_el$,_$createComponent10(Show3,{get when(){return service()?.installed?.()
|
|
1118
1115
|
},children:(version)=>(()=>{var _el$8=_$createElement9("text"),_el$9=_$createTextNode7(`Restart OpenCode to use Navigator `),_el$0=_$createTextNode7(`.`)
|