@hyperpuncher/pi-ui 0.65.3 → 0.65.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.
- package/dist/npm/server-main.js +1 -1
- package/package.json +1 -1
package/dist/npm/server-main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
var KUn=Object.create;var{getPrototypeOf:ZUn,defineProperty:pG,getOwnPropertyNames:Art,getOwnPropertyDescriptor:VUn}=Object,FCe=Object.prototype.hasOwnProperty;function urt(e){return this[e]}var XUn,e5n,mn=(e,t,n)=>{var r=e!=null&&typeof e==="object";if(r){var a=t?XUn??=new WeakMap:e5n??=new WeakMap,i=a.get(e);if(i)return i}n=e!=null?KUn(ZUn(e)):{};let o=t||!e||!e.__esModule||!FCe.call(e,"default")?pG(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let s of Art(e))if(!FCe.call(o,s))pG(o,s,{get:urt.bind(e,s),enumerable:!0})}if(r)a.set(e,o);return o},t5n=(e)=>{var t=(lrt??=new WeakMap).get(e),n;if(t)return t;if(t=pG({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var r of Art(e))if(!FCe.call(t,r))pG(t,r,{get:urt.bind(e,r),enumerable:!(n=VUn(e,r))||n.enumerable})}return lrt.set(e,t),t},lrt,yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var n5n=(e)=>e;function r5n(e,t){this[e]=n5n.bind(null,t)}var Ye=(e,t)=>{for(var n in t)pG(e,n,{get:t[n],enumerable:!0,configurable:!0,set:r5n.bind(t,n)})};var x=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(r){n=[r]}if(n)throw n[0];return t};var pn=import.meta.require;async function r0(e,t={}){let n=Bun.spawn([e,...t.args??[]],{cwd:t.cwd,env:{...process.env,...t.env},stdin:t.stdin??"ignore",stdout:"pipe",stderr:"pipe",windowsHide:!0,signal:t.signal,timeout:t.timeout}),[r,a,i]=await Promise.all([new Response(n.stdout).bytes(),new Response(n.stderr).bytes(),n.exited]);return{code:i,stdout:r,stderr:a,success:i===0,timedOut:t.timeout!==void 0&&n.signalCode==="SIGTERM"&&!t.signal?.aborted}}function NZ(e,t){return Error.isError(e)&&"code"in e&&e.code===t}function PZ(e){return NZ(e,"EEXIST")}function wc(e){return NZ(e,"ENOENT")}function TCe(e){return NZ(e,"EACCES")||NZ(e,"EPERM")}var GZ,Zu;var yv=x(()=>{GZ=globalThis.navigator?.platform??globalThis.process?.platform,Zu=GZ==="win32"||GZ?.startsWith("Win")?"windows":GZ==="darwin"||GZ?.startsWith("Mac")?"darwin":"linux"});var xrt;var Qrt=x(()=>{xrt={name:"@hyperpuncher/pi-ui",version:"0.65.
|
|
3
|
+
var KUn=Object.create;var{getPrototypeOf:ZUn,defineProperty:pG,getOwnPropertyNames:Art,getOwnPropertyDescriptor:VUn}=Object,FCe=Object.prototype.hasOwnProperty;function urt(e){return this[e]}var XUn,e5n,mn=(e,t,n)=>{var r=e!=null&&typeof e==="object";if(r){var a=t?XUn??=new WeakMap:e5n??=new WeakMap,i=a.get(e);if(i)return i}n=e!=null?KUn(ZUn(e)):{};let o=t||!e||!e.__esModule||!FCe.call(e,"default")?pG(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let s of Art(e))if(!FCe.call(o,s))pG(o,s,{get:urt.bind(e,s),enumerable:!0})}if(r)a.set(e,o);return o},t5n=(e)=>{var t=(lrt??=new WeakMap).get(e),n;if(t)return t;if(t=pG({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var r of Art(e))if(!FCe.call(t,r))pG(t,r,{get:urt.bind(e,r),enumerable:!(n=VUn(e,r))||n.enumerable})}return lrt.set(e,t),t},lrt,yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var n5n=(e)=>e;function r5n(e,t){this[e]=n5n.bind(null,t)}var Ye=(e,t)=>{for(var n in t)pG(e,n,{get:t[n],enumerable:!0,configurable:!0,set:r5n.bind(t,n)})};var x=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(r){n=[r]}if(n)throw n[0];return t};var pn=import.meta.require;async function r0(e,t={}){let n=Bun.spawn([e,...t.args??[]],{cwd:t.cwd,env:{...process.env,...t.env},stdin:t.stdin??"ignore",stdout:"pipe",stderr:"pipe",windowsHide:!0,signal:t.signal,timeout:t.timeout}),[r,a,i]=await Promise.all([new Response(n.stdout).bytes(),new Response(n.stderr).bytes(),n.exited]);return{code:i,stdout:r,stderr:a,success:i===0,timedOut:t.timeout!==void 0&&n.signalCode==="SIGTERM"&&!t.signal?.aborted}}function NZ(e,t){return Error.isError(e)&&"code"in e&&e.code===t}function PZ(e){return NZ(e,"EEXIST")}function wc(e){return NZ(e,"ENOENT")}function TCe(e){return NZ(e,"EACCES")||NZ(e,"EPERM")}var GZ,Zu;var yv=x(()=>{GZ=globalThis.navigator?.platform??globalThis.process?.platform,Zu=GZ==="win32"||GZ?.startsWith("Win")?"windows":GZ==="darwin"||GZ?.startsWith("Mac")?"darwin":"linux"});var xrt;var Qrt=x(()=>{xrt={name:"@hyperpuncher/pi-ui",version:"0.65.4",description:"keyboard-first minimal gui for pi",homepage:"https://pi-ui.app",bugs:"https://github.com/hyperpuncher/pi-ui/issues",license:"MIT",repository:{type:"git",url:"git+https://github.com/hyperpuncher/pi-ui.git"},bin:{"pi-ui":"dist/npm/server-main.js"},files:["dist/npm","static","!static/app"],type:"module",imports:{"#src/*":"./src/*","#static/*":"./static/*","#tests/*":"./tests/*","#testing/*":"./tests/src/testing/*","#tools/*":"./tools/*","#package":"./package.json","#testing/assertions":"./tests/src/testing/assertions.ts","#testing/temp":"./tests/src/testing/temp.ts"},publishConfig:{access:"public"},scripts:{dev:"bun run assets:build && bun src/server-main.ts","assets:build":"bun scripts/generate-icons.ts && bun scripts/build-assets.ts",build:"bun run assets:build && bun scripts/build.ts","npm:build":"bun run assets:build && bun scripts/build-npm.ts",prepack:"bun run npm:build",run:"./dist/pi-ui",release:"bun scripts/release.ts","schema:build":"bun scripts/generate-config-schema.ts","schema:check":"bun scripts/generate-config-schema.ts --check",fmt:"bun run schema:build && dsfmt --write . && bun fmt","fmt:check":"bun run schema:check && bun fmt --no-script --check",lint:"bunx oxlint && bun run lint:css","lint:css":'bunx stylelint "src/**/*.css"',"lint:fix":"bunx oxlint --fix && bun run lint:css --fix",check:"bun run schema:check && bun check",test:"bun test --parallel=8",audit:"bunx fallow audit"},devDependencies:{"@earendil-works/pi-ai":"^1.5.2","@earendil-works/pi-coding-agent":"^1.5.2","@earendil-works/pi-schema":"^1.5.2","@earendil-works/pi-tui":"^1.5.2","@iconify-json/lucide":"^1.2.153","@kitajs/html":"5.0.0-next.1","@oxlint/plugins":"1.93.0","@pierre/diffs":"^1.6.4","@pierre/highlights":"0.5.1","@pierre/trees":"^1.0.0","@starfederation/datastar-sdk":"^1.0.0","@types/bun":"^1.4.4","open-props":"^1.7.23",oxlint:"1.93.0",pele:"1.13.0",stylelint:"^18.0.0","stylelint-config-standard":"^41.0.0",typescript:"^7.0.2"},engines:{bun:">=1.4.4"},packageManager:"bun@1.4.4",patchedDependencies:{"@earendil-works/pi-coding-agent@1.5.2":"patches/@earendil-works%2Fpi-coding-agent@1.5.2.patch"}}});function _rt(e){return e.length===1&&e[0]==="--version"}var $Z;var qCe=x(()=>{Qrt();$Z=xrt.version});var vrt=1000,Srt=!1,Drt=!1,HCe="selector",OZ="mode",WCe="elements",gG="namespace",Rrt="useViewTransition",JCe="signals",Mrt="onlyIfMissing",zCe,YCe,Frt="outer",Trt="html";var KCe=x(()=>{zCe=["outer","inner","replace","prepend","append","before","after","remove"],YCe=["html","svg","mathml"]});var Lrt,ZCe;var VCe=x(()=>{KCe();Lrt={"Cache-Control":"no-cache",Connection:"keep-alive","Content-Type":"text/event-stream"},ZCe={[OZ]:Frt,[gG]:Trt,[Rrt]:Srt,[Mrt]:Drt}});class XCe{constructor(){}validateElementPatchMode(e){if(!zCe.includes(e))throw Error(`Invalid ElementPatchMode: "${e}". Valid modes are: ${zCe.join(", ")}`)}validateNamespace(e){if(!YCe.includes(e))throw Error(`Invalid namespace: "${e}". Valid namespaces are: ${YCe.join(", ")}`)}validateRequired(e,t){if(!e||e.trim()==="")throw Error(`${t} is required and cannot be empty`)}send(e,t,n){let{eventId:r,retryDuration:a}=n||{},i=[`event: ${e}
|
|
4
4
|
`],o=r?[`id: ${r}
|
|
5
5
|
`]:[],s=!a||a===1000?[]:[`retry: ${a??vrt}
|
|
6
6
|
`];return i.concat(o,s,t.map((c)=>`data: ${c}
|