infra-kit 0.9.0 → 0.11.0
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/{boot-BL4EQMZV.js → boot-XLDVLQEG.js} +2 -2
- package/dist/boot-XLDVLQEG.js.map +7 -0
- package/dist/chunk-2H6VQIGT.js +7 -0
- package/dist/chunk-2H6VQIGT.js.map +7 -0
- package/dist/chunk-6UJQB36N.js +2 -0
- package/dist/chunk-6UJQB36N.js.map +7 -0
- package/dist/chunk-AG7XWZNT.js +3 -0
- package/dist/chunk-AG7XWZNT.js.map +7 -0
- package/dist/{chunk-HHWP3YXW.js → chunk-AWFGP6GY.js} +1 -1
- package/dist/{chunk-HHWP3YXW.js.map → chunk-AWFGP6GY.js.map} +1 -1
- package/dist/chunk-F656FWV5.js +11 -0
- package/dist/chunk-F656FWV5.js.map +7 -0
- package/dist/{chunk-X2HFNQRU.js → chunk-OWX4O3IS.js} +2 -2
- package/dist/chunk-R2SZWOPC.js +3 -0
- package/dist/chunk-R2SZWOPC.js.map +7 -0
- package/dist/chunk-RZF36IGQ.js +4 -0
- package/dist/chunk-RZF36IGQ.js.map +7 -0
- package/dist/cli.js +424 -13
- package/dist/cli.js.map +4 -4
- package/dist/dev-server.js +2 -2
- package/dist/dev-server.js.map +2 -2
- package/dist/dev-wizard-run-J5WSWCZT.js +2 -0
- package/dist/dev-wizard-run-J5WSWCZT.js.map +7 -0
- package/dist/mcp-proxy.js +9 -9
- package/dist/mcp-proxy.js.map +2 -2
- package/dist/update-check.js +1 -1
- package/dist/update-check.js.map +2 -2
- package/package.json +3 -7
- package/readme.md +4 -4
- package/dist/boot-BL4EQMZV.js.map +0 -7
- package/dist/chunk-75BE6MSY.js +0 -7
- package/dist/chunk-75BE6MSY.js.map +0 -7
- package/dist/chunk-75URROMU.js +0 -4
- package/dist/chunk-75URROMU.js.map +0 -7
- package/dist/chunk-FWINBDB5.js +0 -444
- package/dist/chunk-FWINBDB5.js.map +0 -7
- package/dist/chunk-GRWUCPQL.js +0 -2
- package/dist/chunk-GRWUCPQL.js.map +0 -7
- package/dist/chunk-H5AAXCRJ.js +0 -9
- package/dist/chunk-H5AAXCRJ.js.map +0 -7
- package/dist/chunk-IXWQ7EQT.js +0 -3
- package/dist/chunk-IXWQ7EQT.js.map +0 -7
- package/dist/dev-wizard-run-643QKSR3.js +0 -2
- package/dist/dev-wizard-run-643QKSR3.js.map +0 -7
- package/dist/mcp.js +0 -3
- package/dist/mcp.js.map +0 -7
- /package/dist/{chunk-X2HFNQRU.js.map → chunk-OWX4O3IS.js.map} +0 -0
package/dist/dev-server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as He,c as C,d as Be,h as je,j as We,n as I,o as H,p as Ge,q as B,r as Ve}from"./chunk-
|
|
1
|
+
import{a as He,c as C,d as Be,h as je,j as We,n as I,o as H,p as Ge,q as B,r as Ve}from"./chunk-OWX4O3IS.js";import{c as re,k as ne,o as Re,u as Ee}from"./chunk-AG7XWZNT.js";import"./chunk-AWFGP6GY.js";import{a as L,b as Ke}from"./chunk-VDBJ73LS.js";import{N as E,T as Te,_ as ie,ba as $,ca as F,da as $e,ea as Oe,fa as M,ga as Ce,ha as O,ia as Ie,ja as Le,ka as Ne,la as _e,ma as Ue,na as Fe,oa as Me,x as xe}from"./chunk-F656FWV5.js";import"./chunk-MFAFQVTW.js";import"./chunk-6UJQB36N.js";import{c as ke,e as te,l as Ae}from"./chunk-RZF36IGQ.js";import{Command as Wn}from"commander";import P from"node:process";import{pathToFileURL as Gn}from"node:url";import se from"node:process";var oe=r=>{try{se.stderr.write(r)}catch{}},N=(r,e,t=!0)=>{let n=e instanceof Error?`${e.message}
|
|
2
2
|
${e.stack??"(no stack)"}`:String(e);return`
|
|
3
3
|
\u26A0\uFE0F ${r}: ${n}
|
|
4
4
|
${t?` dev-server kept alive (likely a bug in a handler's async path); restart if it misbehaves.
|
|
@@ -34,5 +34,5 @@ Received ${t}, closing Orca tab "${e}"...`),await Wt(r)}})},Gt=async r=>{let e=$
|
|
|
34
34
|
`);let l=n(()=>{e(),t(Se)},i);a.shutdown().finally(()=>{l(),t(Se)}).catch(()=>{})}},Yn=["SIGINT","SIGTERM"],Xn=({forceReap:r=I,exit:e=i=>{P.exit(i)},register:t=(i,s)=>{P.on(i,s)},unregister:n=(i,s)=>{P.off(i,s)}}={})=>{let i=new Map;for(let s of Yn){let o=()=>{qt(r,e,Ge(s))};i.set(s,o),t(s,o)}return{remove:()=>{for(let[s,o]of i)n(s,o)}}},Pe=async r=>{let e=Jn(r);if(e.orca){let l=await Gt(e);if(l==="ran")return;P.stdout.write(`Orca: ${l.fallback}; falling back to single-terminal dev
|
|
35
35
|
`)}let t=null,n=qn(),i=zn({getRunner:()=>t,setTimer:n}),s=ot({onDeath:(l,u)=>{i(`stdio unwritable: ${l} ${u.code}`)}}),o=Xn();try{t=await Bt({...e,onExitRequest:l=>{P.exit(l)}})}finally{o.remove()}let a=t;Je({onFault:(l,u)=>{a.reportFault(N(l,u))},isTerminalDead:s.isDead,fileFault:(l,u)=>{a.fileFault(N(l,u,!1))},onFatal:i}),B({onSignal:async l=>{le(`
|
|
36
36
|
Received ${l}, shutting down dev-server...
|
|
37
|
-
`),await a.shutdown()},describeStall:()=>a.shutdownStage,fileReport:l=>{a.fileFault(l)},setTimer:n})},Qn=(r,e,t)=>!r.preset&&!r.app&&!r.self&&!r.orca&&!r.watch&&!r.verbose&&!r.routes&&e&&!t,Zn=(r,e)=>({watch:r.watch,orca:r.orca,include:r.include??null,preset:r.preset,presetDef:r.presetDef,self:!1,verbose:!1,routes:!1,uiHealth:e.uiHealth??!0}),Ms=async(r,e,t)=>{if(Qn(r,e,t)){let{runDevWizard:n}=await import("./dev-wizard-run-
|
|
37
|
+
`),await a.shutdown()},describeStall:()=>a.shutdownStage,fileReport:l=>{a.fileFault(l)},setTimer:n})},Qn=(r,e,t)=>!r.preset&&!r.app&&!r.self&&!r.orca&&!r.watch&&!r.verbose&&!r.routes&&e&&!t,Zn=(r,e)=>({watch:r.watch,orca:r.orca,include:r.include??null,preset:r.preset,presetDef:r.presetDef,self:!1,verbose:!1,routes:!1,uiHealth:e.uiHealth??!0}),Ms=async(r,e,t)=>{if(Qn(r,e,t)){let{runDevWizard:n}=await import("./dev-wizard-run-J5WSWCZT.js"),i=Promise.all([import("./persistent-ink-dev-ui-P65EJCC6.js"),import("./safe-stderr-ECYA6DRR.js")]).catch(()=>{}),s;try{s=await n()}catch(o){if(Ve(o))return;throw o}if(s==null)return;await i,await Pe({...Zn(s,r),tty:e,json:t});return}await Pe({...Kt(r),tty:e,json:t})},ei=async r=>{let e=new Wn;e.name("infra-kit-dev-server").description("Run local dev servers for the apps in a named devServersPresets preset (or all apps)").argument("[preset]","Named preset from devServersPresets (omit to run every app)").option("-w, --watch","Rebuild and restart on file save").option("--app <names>","Further narrow to these app folder names (comma-separated)").option("--orca","Run each app in its own Orca pane (one tab, N panes; falls back to single terminal when Orca is not running)").option("--self","Run only the app of the current directory (infer from cwd; use inside apps/<app>/\u2026)").option("-V, --verbose","Print full boot narration (default: quiet; full detail always in the session log)").option("--routes","Print each app\u2019s registered METHOD /path routes at startup (default: off)"),e.parse(r),await Pe(Kt({...e.opts(),preset:e.args[0]}))};import.meta.url===Gn(P.argv[1]??"").href&&ei(P.argv).catch(r=>{console.error(r instanceof Error?r.message:String(r)),P.exit(1)});export{zn as createFatalHandler,qn as createSharedDeadlineTimer,Xn as installBootSignalGuard,Pe as runDevServer,Ms as runDevServerCli,Qn as shouldRunWizard,Kt as toDevServerOptions};
|
|
38
38
|
//# sourceMappingURL=dev-server.js.map
|