@hyperez/regna-code 0.1.3 → 0.1.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{VERSION as c}from"@earendil-works/pi-coding-agent";import{truncateToWidth as f}from"@earendil-works/pi-tui";var _="Regna Code",d="Terminal coding agent on Regna",g="regna-brand",o=!0,m=[" ____ _____ ____ _ _ _","| _ \\| ____/ ___| \\ | | / \\","| |_) | _|| | _| \\| | / _ \\","| _ <| |__| |_| | |\\ |/ ___ \\","|_| \\_\\_____\\____|_| \\_/_/ \\_\\"],l=m.reduce((n,i)=>Math.max(n,i.length),0);function p(n,i,e,a){let t=s=>i(s,e);if(e<l+4)return["",t(` ${n("accent",_)}`),t(` ${n("muted",d)}`),t(` ${n("dim","/help for commands")}`),""];let r=[""];for(let s of m)r.push(t(` ${n("accent",s)}`));return r.push(""),r.push(t(` ${n("muted",`${_} \xB7 ${d}`)}`)),r.push(t(` ${n("dim","
|
|
1
|
+
import{VERSION as c}from"@earendil-works/pi-coding-agent";import{truncateToWidth as f}from"@earendil-works/pi-tui";var _="Regna Code",d="Terminal coding agent on Regna",g="regna-brand",o=!0,m=[" ____ _____ ____ _ _ _","| _ \\| ____/ ___| \\ | | / \\","| |_) | _|| | _| \\| | / _ \\","| _ <| |__| |_| | |\\ |/ ___ \\","|_| \\_\\_____\\____|_| \\_/_/ \\_\\"],l=m.reduce((n,i)=>Math.max(n,i.length),0);function p(n,i,e,a){let t=s=>i(s,e);if(e<l+4)return["",t(` ${n("accent",_)}`),t(` ${n("muted",d)}`),t(` ${n("dim","/help for commands")}`),""];let r=[""];for(let s of m)r.push(t(` ${n("accent",s)}`));return r.push(""),r.push(t(` ${n("muted",`${_} \xB7 ${d}`)}`)),r.push(t(` ${n("dim","/help for commands")}`)),r.push(""),r}function u(n){n.setHeader((i,e)=>({render(a){return p((t,r)=>e.fg(t,r),f,a,c)},invalidate(){}})),n.setStatus(g,_),n.setTitle(_)}function h(n){n.setHeader(void 0),n.setStatus(g,void 0)}function x(n){n.on("session_start",async(i,e)=>{e.mode!=="tui"||!o||u(e.ui)}),n.registerCommand("regna-brand",{description:"Toggle Regna Code header/title branding",handler:async(i,e)=>{o=!o,o?(u(e.ui),e.ui.notify("Regna branding on","info")):(h(e.ui),e.ui.notify("Regna branding off (default header)","info"))}})}export{p as buildBrandHeaderLines,x as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperez/regna-code",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Regna Code. A terminal coding agent on Regna. Install with `npm i -g @hyperez/regna-code` and run `regna`. Works with the Regna cloud API and on-premise deployments.",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"private": false,
|