werkmeister 0.104.1 → 0.105.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/branch_cli-5N6U6W77.js +4 -0
- package/dist/budget-3VGGDFBC.js +4 -0
- package/dist/{cache-G3E2FAU4.js → cache-ME4MLP42.js} +2 -2
- package/dist/{chunk-HSW5AHGC.js → chunk-27L4LN4W.js} +2 -2
- package/dist/{chunk-A4N2LWNQ.js → chunk-2YZJBUI6.js} +2 -2
- package/dist/{chunk-SCKLISBX.js → chunk-3HJFYJ7T.js} +2 -2
- package/dist/{chunk-6G42VD2K.js → chunk-3NTAF6FW.js} +2 -2
- package/dist/{chunk-KJ3YYSWB.js → chunk-3YFRMZEM.js} +2 -2
- package/dist/{chunk-5SPRU4HN.js → chunk-3ZTBULTL.js} +2 -2
- package/dist/{chunk-WJBR4O4I.js → chunk-53GMH27V.js} +2 -2
- package/dist/{chunk-G3TORO3O.js → chunk-5PIONQLS.js} +2 -2
- package/dist/{chunk-PBSIBXA6.js → chunk-5QUW4UYX.js} +2 -2
- package/dist/{chunk-DSDJGOS2.js → chunk-6IFQGJIS.js} +2 -2
- package/dist/{chunk-NLHXRGY7.js → chunk-6JNF6KWD.js} +2 -2
- package/dist/{chunk-6QRAXG5Y.js → chunk-75WAKRC5.js} +2 -2
- package/dist/{chunk-QACMGVOE.js → chunk-7DCMQ64U.js} +2 -2
- package/dist/{chunk-JMFC6IYG.js → chunk-7O7M4ZKC.js} +2 -2
- package/dist/{chunk-M5QXPMSQ.js → chunk-AN5NZ4FP.js} +2 -2
- package/dist/{chunk-TRGORO2P.js → chunk-BC4H7FVC.js} +2 -2
- package/dist/{chunk-VPOP4GPG.js → chunk-BPRMSWTN.js} +2 -2
- package/dist/{chunk-IKSMXQV5.js → chunk-CDFBHXAC.js} +4 -4
- package/dist/{chunk-GUBCG7AK.js → chunk-CTGTKRAZ.js} +2 -2
- package/dist/{chunk-CLM3UURA.js → chunk-D4TS7B26.js} +2 -2
- package/dist/{chunk-63Y2JG4I.js → chunk-DBAOLI7M.js} +2 -2
- package/dist/{chunk-IQTEMZZL.js → chunk-DKCDKW6T.js} +2 -2
- package/dist/{chunk-PYTVZ34Y.js → chunk-DPDOHBU2.js} +2 -2
- package/dist/{chunk-ZOVQ6RF6.js → chunk-DSRK7W7N.js} +2 -2
- package/dist/{chunk-KAQMXMZO.js → chunk-EVAQN4WA.js} +2 -2
- package/dist/{chunk-LZ4WLVB7.js → chunk-EYQSYALW.js} +2 -2
- package/dist/{chunk-JUJUD63U.js → chunk-FQNMW6A5.js} +2 -2
- package/dist/{chunk-FBPGNJ2V.js → chunk-GVK4XKAN.js} +2 -2
- package/dist/{chunk-RX3EBCGQ.js → chunk-HI2JZYI7.js} +2 -2
- package/dist/{chunk-P4NU6FGG.js → chunk-HWNT7I24.js} +2 -2
- package/dist/{chunk-4CAUUCRW.js → chunk-I6MIYUAX.js} +2 -2
- package/dist/{chunk-YF3QQPIP.js → chunk-IOQBOUWY.js} +2 -2
- package/dist/{chunk-5SJ5HJVO.js → chunk-IXWQRKL6.js} +2 -2
- package/dist/{chunk-JSHOLM3K.js → chunk-JIIADHWY.js} +3 -3
- package/dist/chunk-JJ4WKBYO.js +28 -0
- package/dist/{chunk-7UY4AWCI.js → chunk-JRDXOBXR.js} +2 -2
- package/dist/chunk-LRN6P4FU.js +4 -0
- package/dist/{chunk-TN3Q3BSH.js → chunk-LY42NGAO.js} +2 -2
- package/dist/{chunk-Y6OSVKWI.js → chunk-MRT3EHET.js} +2 -2
- package/dist/{chunk-X6DLKD5P.js → chunk-NGHAWOIC.js} +2 -2
- package/dist/{chunk-H3KY5VXT.js → chunk-NPCFPKYI.js} +2 -2
- package/dist/{chunk-ZMWDLYG7.js → chunk-P77AC2EH.js} +2 -2
- package/dist/chunk-QZ5FBNIY.js +11 -0
- package/dist/{chunk-WV46H6TJ.js → chunk-R5LYMTTV.js} +2 -2
- package/dist/{chunk-UXUI4TLV.js → chunk-RF23NUNB.js} +2 -2
- package/dist/{chunk-5QERNW62.js → chunk-RV62WW6S.js} +3 -3
- package/dist/{chunk-K6TBZZYL.js → chunk-S4QA6GBI.js} +2 -2
- package/dist/{chunk-ZC7L5KDA.js → chunk-SF5I5TSH.js} +2 -2
- package/dist/{chunk-266G4VTB.js → chunk-SQBDXVWV.js} +2 -2
- package/dist/{chunk-NI5MER52.js → chunk-SQNONWYE.js} +2 -2
- package/dist/{chunk-26MDFVLL.js → chunk-T6I2KW2O.js} +3 -3
- package/dist/{chunk-PEJOPMW6.js → chunk-T6L7VZ2R.js} +2 -2
- package/dist/{chunk-H2VTBKDN.js → chunk-TTFNWKIQ.js} +2 -2
- package/dist/{chunk-7NZS3VSS.js → chunk-UUJUGQWI.js} +2 -2
- package/dist/{chunk-PHVDHEGE.js → chunk-UXBYBK5Y.js} +5 -5
- package/dist/{chunk-RC7Z2SIU.js → chunk-VH2BKOI7.js} +24 -24
- package/dist/{chunk-HP6WOUV5.js → chunk-VHV43JLM.js} +2 -2
- package/dist/{chunk-RP2SENEF.js → chunk-WCV5P2KK.js} +2 -2
- package/dist/{chunk-F3J6IFA5.js → chunk-WNPRGQ22.js} +2 -2
- package/dist/{chunk-L5YNYGGS.js → chunk-XDJNHKWA.js} +2 -2
- package/dist/{chunk-W7IJ562K.js → chunk-XKEAK44P.js} +2 -2
- package/dist/chunk-XXGP43GA.js +47 -0
- package/dist/{chunk-SAUUM3YU.js → chunk-XXTYU327.js} +2 -2
- package/dist/{chunk-2QVSZWFC.js → chunk-YVBAGNPD.js} +2 -2
- package/dist/{chunk-3MIQFO67.js → chunk-ZEQPV5AZ.js} +2 -2
- package/dist/{chunk-FKBHYTWE.js → chunk-ZMIBNFGM.js} +2 -2
- package/dist/clean-TPA4YXGY.js +8 -0
- package/dist/close_out-26LEV2FM.js +8 -0
- package/dist/code-TE5Z2U4Q.js +4 -0
- package/dist/config-RW4YCUWK.js +4 -0
- package/dist/{connect-G72TIQRR.js → connect-JYD46R5O.js} +2 -2
- package/dist/{daemon-CCKIK5AN.js → daemon-6EUEL5QO.js} +2 -2
- package/dist/dashboard.js +1 -1
- package/dist/{detect-VOZGML45.js → detect-PUM67VMB.js} +2 -2
- package/dist/{down-H3ZTNQIO.js → down-WKDH2Q57.js} +3 -3
- package/dist/{fixture-HDLIOPAU.js → fixture-M6ADCJSW.js} +2 -2
- package/dist/form-cli.js +1 -1
- package/dist/hooks-RTSGMJOV.js +4 -0
- package/dist/hooks_gen-MBTKI332.js +4 -0
- package/dist/infra-YRZSORRN.js +4 -0
- package/dist/init_workspace-IYRAIBZ3.js +4 -0
- package/dist/intercept-LABIHVGV.js +7 -0
- package/dist/{issue-OVHGXYYO.js → issue-BDWB5AMY.js} +2 -2
- package/dist/lib/agent_state.js +1 -1
- package/dist/lib/gate.js +1 -1
- package/dist/lib/pr_guard.js +1 -1
- package/dist/list_workspaces-XODG2YNM.js +7 -0
- package/dist/logs-JJMYWPLY.js +6 -0
- package/dist/main.js +27 -27
- package/dist/mcp-proxy.js +1 -1
- package/dist/mcp.js +1 -1
- package/dist/metrics-3RWXVEOL.js +8 -0
- package/dist/migrate-G6YZCPOA.js +4 -0
- package/dist/notes-AGFIWO3Q.js +4 -0
- package/dist/open-JBPGRGEO.js +6 -0
- package/dist/{optimize-MTRWRIW4.js → optimize-PSLZ4E4H.js} +2 -2
- package/dist/pause-7GU3KWI7.js +4 -0
- package/dist/pr-BNYO2WXD.js +5 -0
- package/dist/proxy_reload-67GSBSY2.js +6 -0
- package/dist/{registry-J4GOHZYX.js → registry-LKZS37CM.js} +2 -2
- package/dist/remove-UBXQYUSU.js +7 -0
- package/dist/remove_workspace-E56PMGYG.js +8 -0
- package/dist/restart-WAXICEHE.js +8 -0
- package/dist/resume-BRXULJJB.js +8 -0
- package/dist/{safari-DDDGBJEH.js → safari-WEZ2L2UW.js} +2 -2
- package/dist/sandbox-SYD442BF.js +4 -0
- package/dist/{services-HPZ3PCUM.js → services-G6JQ77MT.js} +2 -2
- package/dist/{setup-25VDJ2NT.js → setup-AZGY2DRX.js} +2 -2
- package/dist/skills-NIBLYEJ3.js +4 -0
- package/dist/{slots-YDCL5LOK.js → slots-O2NNUB7M.js} +2 -2
- package/dist/{standards-I7LAFKDM.js → standards-WPR3BP6G.js} +2 -2
- package/dist/start_args-MELEQIE4.js +4 -0
- package/dist/starting_prompt-24UNZIA3.js +4 -0
- package/dist/stats-VKH7IHQL.js +4 -0
- package/dist/{status-WJBW35J4.js → status-3DSWUHUG.js} +2 -2
- package/dist/stop-7LWGX2EC.js +9 -0
- package/dist/{telepresence-XMV5DUPK.js → telepresence-WFH2QYAH.js} +2 -2
- package/dist/{test-AQGSH3IY.js → test-6OAABLBN.js} +2 -2
- package/dist/{tokens-B6P33W7O.js → tokens-HOUEXTAB.js} +2 -2
- package/dist/{up-TSDCYBOR.js → up-TZ7M62DH.js} +3 -3
- package/dist/{v4-23V5LSKA.js → v4-L74TSJR2.js} +2 -2
- package/dist/wait_load-VBRGHA2T.js +4 -0
- package/dist/werkmeister-workspaces.vsix +0 -0
- package/dist/workspace-F47G5ZLQ.js +4 -0
- package/infra/compose/scripts/werkmeister-install-startup.sh +7 -1
- package/man/werkmeister-metrics-rebuild.1 +30 -0
- package/man/werkmeister.1 +4 -0
- package/package.json +5 -4
- package/dist/branch_cli-DWGOLYRK.js +0 -4
- package/dist/budget-PK3RKZA3.js +0 -4
- package/dist/chunk-BH53H3RF.js +0 -4
- package/dist/chunk-HAF2AAOV.js +0 -45
- package/dist/chunk-MOCWVGUL.js +0 -35
- package/dist/clean-2WI6GMHT.js +0 -8
- package/dist/close_out-E5G7XR3H.js +0 -8
- package/dist/code-XPXWVMSX.js +0 -4
- package/dist/config-CMSLGKLY.js +0 -4
- package/dist/hooks-QJYKO5DI.js +0 -4
- package/dist/hooks_gen-HAEH5FIX.js +0 -4
- package/dist/infra-3YQ6P6N3.js +0 -4
- package/dist/init_workspace-FW726LWW.js +0 -4
- package/dist/intercept-DNAQBFZK.js +0 -7
- package/dist/list_workspaces-GWSFUEIR.js +0 -7
- package/dist/logs-NFSM3JWK.js +0 -6
- package/dist/migrate-DEXUPIVL.js +0 -4
- package/dist/notes-W4BYT6DD.js +0 -4
- package/dist/open-ZLUIVWL6.js +0 -6
- package/dist/pause-H2RHL2XC.js +0 -4
- package/dist/pr-S6US2WYA.js +0 -5
- package/dist/proxy_reload-EJOYNXAA.js +0 -6
- package/dist/remove-6SX5MFSV.js +0 -7
- package/dist/remove_workspace-ZKXJMT52.js +0 -8
- package/dist/restart-OX5RWXUH.js +0 -8
- package/dist/resume-OKRKZP4E.js +0 -8
- package/dist/sandbox-GWO4ZP4B.js +0 -4
- package/dist/skills-LVCF72EC.js +0 -4
- package/dist/start_args-W4HQHO3V.js +0 -4
- package/dist/starting_prompt-SNKSIWDX.js +0 -4
- package/dist/stats-URZQNJSA.js +0 -4
- package/dist/stop-7E4FWR2W.js +0 -9
- package/dist/wait_load-KYVGSE5T.js +0 -4
- package/dist/workspace-LPVGGGNB.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as __sandboxCreateRequire } from "node:module";
|
|
2
|
+
const require = __sandboxCreateRequire(import.meta.url);
|
|
3
|
+
import{f as w}from"./chunk-EYQSYALW.js";import"./chunk-BC4H7FVC.js";import"./chunk-MRT3EHET.js";import"./chunk-I6MIYUAX.js";import"./chunk-XXGP43GA.js";import"./chunk-WCV5P2KK.js";import"./chunk-DSRK7W7N.js";import"./chunk-HWNT7I24.js";import"./chunk-DBAOLI7M.js";import"./chunk-27L4LN4W.js";import"./chunk-VH2BKOI7.js";import"./chunk-JRDXOBXR.js";import"./chunk-S4QA6GBI.js";import"./chunk-6IFQGJIS.js";import"./chunk-D4TS7B26.js";import"./chunk-AN5NZ4FP.js";import"./chunk-3HJFYJ7T.js";import{h as E}from"./chunk-CTGTKRAZ.js";import"./chunk-BPRMSWTN.js";import"./chunk-JJ4WKBYO.js";import"./chunk-CDFBHXAC.js";import"./chunk-QZ5FBNIY.js";import"./chunk-7O7M4ZKC.js";import"./chunk-SQNONWYE.js";import"./chunk-NGHAWOIC.js";import"./chunk-DKCDKW6T.js";import"./chunk-T6L7VZ2R.js";import"./chunk-GVK4XKAN.js";import"./chunk-HI2JZYI7.js";import"./chunk-UXBYBK5Y.js";import{d as h}from"./chunk-DPDOHBU2.js";import"./chunk-P77AC2EH.js";import"./chunk-UUJUGQWI.js";import"./chunk-NPCFPKYI.js";import"./chunk-XXTYU327.js";import{X as d,aa as l}from"./chunk-R5LYMTTV.js";import"./chunk-SQBDXVWV.js";import{a,f as u}from"./chunk-2YZJBUI6.js";u();import{execFileSync as g,spawn as k}from"node:child_process";import*as r from"node:fs";import*as t from"node:path";var x=["pr gate","feature up","feature stop","feature status"];function p(o){console.error(`branch-cli: ${o}`),process.exitCode=2}a(p,"refuse");async function S(o){if(!x.includes(o.slice(0,2).join(" ")))return p(`runs only ${x.map(e=>`\`${e}\``).join(", ")}; got \`${o.join(" ")}\``);let s=w(),c=E(s).find(e=>r.existsSync(t.join(e,"apps","cli","werkmeister")));if(!c)return p(`no werkmeister worktree in ${s}`);let i=t.join(c,"apps","cli","dist","main.js");if(!r.existsSync(i)){let e="";try{e=r.readFileSync(t.join(s,".env"),"utf8")}catch{}let n=/^FEATURE=(.+)$/m.exec(e)?.[1]?.trim()??"<feature>";return p(`${i} is not built. Build it in the container: docker exec -w /app ${l(n,"werkmeister-core")} pnpm turbo run build --filter=werkmeister`)}let m="?";try{m=g("git",["-C",c,"rev-parse","--short","HEAD"],{encoding:"utf8",env:h(),stdio:["ignore","pipe","ignore"]}).trim()}catch{}console.error(`branch-cli: running ${i} (worktree at ${m})`);let f=d(),$=[t.join(f,"node_modules"),process.env.NODE_PATH].filter(Boolean),j={...process.env,WERKMEISTER_ROOT:f,NODE_PATH:$.join(t.delimiter),WERKMEISTER_BRANCH_CLI:"1"};process.exitCode=await new Promise(e=>{let n=k(process.execPath,[i,...o],{stdio:"inherit",env:j});n.on("error",()=>e(1)),n.on("exit",R=>e(R??1))})}a(S,"run");export{S as run};
|
|
4
|
+
//# sourceMappingURL=branch_cli-5N6U6W77.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as __sandboxCreateRequire } from "node:module";
|
|
2
|
+
const require = __sandboxCreateRequire(import.meta.url);
|
|
3
|
+
import{e as x,n as S}from"./chunk-XXGP43GA.js";import"./chunk-WCV5P2KK.js";import"./chunk-DSRK7W7N.js";import"./chunk-HWNT7I24.js";import"./chunk-DBAOLI7M.js";import"./chunk-VH2BKOI7.js";import"./chunk-JRDXOBXR.js";import"./chunk-S4QA6GBI.js";import"./chunk-6IFQGJIS.js";import"./chunk-D4TS7B26.js";import"./chunk-AN5NZ4FP.js";import"./chunk-3HJFYJ7T.js";import"./chunk-CTGTKRAZ.js";import"./chunk-BPRMSWTN.js";import"./chunk-JJ4WKBYO.js";import"./chunk-CDFBHXAC.js";import"./chunk-QZ5FBNIY.js";import"./chunk-7O7M4ZKC.js";import"./chunk-SQNONWYE.js";import{D as b,E as y,J as v,M as k,Q as L,V as M,v as $,w as h,x as w}from"./chunk-NGHAWOIC.js";import"./chunk-DKCDKW6T.js";import"./chunk-T6L7VZ2R.js";import"./chunk-GVK4XKAN.js";import"./chunk-HI2JZYI7.js";import{t as g}from"./chunk-UXBYBK5Y.js";import"./chunk-DPDOHBU2.js";import"./chunk-P77AC2EH.js";import"./chunk-UUJUGQWI.js";import"./chunk-NPCFPKYI.js";import"./chunk-XXTYU327.js";import"./chunk-R5LYMTTV.js";import"./chunk-SQBDXVWV.js";import{a as i,f}from"./chunk-2YZJBUI6.js";f();import R from"node:os";var N=2**30,B=i((n,t)=>Number.isFinite(n)?`${Number(n.toFixed(1))}${t}`:"no limit","limit");function W(n,t=process.platform){return n?`host load limit ${n}${{darwin:" (Docker VM load on macOS)",win32:" (Docker VM load on Windows)"}[t]??""}`:"host load limit off"}i(W,"hostLoadText");async function T(n){let t=await b(),m=process.platform==="darwin"||process.platform==="win32",u=y(m&&(await v())?.cores||R.availableParallelism()),c=w(),d=await M(),r=S(),l=$(L(d,r??[])).map((e,o)=>{let s=c[e.feature]?.workspace,a=s&&g(s)?.services||null,F=s?k(s,a??void 0):null,O=o===0&&e.waitedMs>=3e5&&!e.parked&&h(t,r??[],e);return{...e,position:o+1,services:a,cost:F,holds:O}});if(n.json){let e=i(o=>Number.isFinite(o)?o:null,"n");console.log(JSON.stringify({budget:{memory:e(t.memory),cpus:e(t.cpus),preempt:t.preempt},host_load:u,leases:c,waiting:d,running:r?.map(o=>({feature:o.feature,cpus:o.cost.cpus,memory:o.cost.memory,rank:o.rank,busy:o.busy}))??null,waiters:l.map(o=>({feature:o.feature,position:o.position,services:o.services,cpus:o.cost?.cpus??null,memory:o.cost?.memory??null,waited_ms:o.waitedMs,gate:o.gate}))}));return}console.log(`Budget: ${B(t.memory/N," GiB")} memory, ${B(t.cpus," CPUs")}, ${W(u)}, preemption ${t.preempt?"on":"off"}`);let p=Object.entries(c).sort(([,e],[,o])=>e.slot-o.slot);console.log(p.length?"Slots:":"Slots: none held");for(let[e,o]of p)console.log(` ${o.slot} ${e}${o.workspace?` ${o.workspace}`:""}`);console.log(r?r.length?"Running:":"Running: none":"Running: docker unavailable");for(let e of[...r??[]].sort((o,s)=>s.cost.cpus-o.cost.cpus))console.log(` ${x(e)}`);console.log(l.length?"Waiting:":"Waiting: none");for(let e of l){let o=e.services?`${e.services.join(", ")}${e.gate?" for a running feature":""}`:"whole feature",s=e.cost?` (${Number(e.cost.cpus.toFixed(1))} CPUs, ${(e.cost.memory/N).toFixed(1)} GiB)`:"",a=e.waitedMs?` waited ${Math.round(e.waitedMs/6e4)} min${e.holds?", gets the next free room":""}`:"";console.log(` ${e.position}. ${e.feature} ${o}${s}${a}`)}}i(T,"run");export{W as hostLoadText,T as run};
|
|
4
|
+
//# sourceMappingURL=budget-3VGGDFBC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as __sandboxCreateRequire } from "node:module";
|
|
2
2
|
const require = __sandboxCreateRequire(import.meta.url);
|
|
3
|
-
import"./chunk-
|
|
4
|
-
//# sourceMappingURL=cache-
|
|
3
|
+
import"./chunk-LRN6P4FU.js";import{d as s}from"./chunk-D4TS7B26.js";import"./chunk-BPRMSWTN.js";import"./chunk-DKCDKW6T.js";import"./chunk-GVK4XKAN.js";import"./chunk-DPDOHBU2.js";import{h as e,l as c}from"./chunk-R5LYMTTV.js";import"./chunk-SQBDXVWV.js";import{a as r,f as i}from"./chunk-2YZJBUI6.js";i();async function u(o){o.action!=="prune"&&(c(`Unknown action \`${String(o.action)}\` \u2014 the only action is \`prune\`.`),process.exit(2));let t=await s({name:typeof o.name=="string"?o.name:void 0,reset:!!o.reset,force:!!o.force,dryRun:!!o.dry_run});t.length||console.log("No caches in the registry.");for(let n of t){let a=n.ok?`${e.GREEN}\u2713${e.RESET}`:`${e.RED}\u2717${e.RESET}`;console.log(`${a} ${n.name} (${n.action}): ${n.detail}`)}t.some(n=>!n.ok)&&process.exit(1)}r(u,"run");export{u as run};
|
|
4
|
+
//# sourceMappingURL=cache-ME4MLP42.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __sandboxCreateRequire } from "node:module";
|
|
2
2
|
const require = __sandboxCreateRequire(import.meta.url);
|
|
3
|
-
import{a as w,b as k}from"./chunk-
|
|
3
|
+
import{a as w,b as k}from"./chunk-GVK4XKAN.js";import{b as H}from"./chunk-UUJUGQWI.js";import{X as v,ba as F,j as f,k as b,l as g,m as $,u as T,w as D}from"./chunk-R5LYMTTV.js";import{a as s,f as C}from"./chunk-2YZJBUI6.js";C();import{spawn as Z}from"node:child_process";import*as o from"node:fs";import*as G from"node:net";import*as B from"node:os";import*as l from"node:path";var p={label:"Workspaces dashboard",dir:"werkmeister-dashboard",port:3001,stem:"mcp-server",entry:"dist/main.js",buildRef:"dist/main.js",bundled:"dist/dashboard.js"},_={label:"Werkmeister MCP server",dir:"werkmeister-mcp",get port(){return H()},stem:"sandbox-mcp",entry:"dist/main.js",buildRef:"dist/main.js",bundled:"dist/mcp.js",env:{HOST:"0.0.0.0"}},x="com.werkmeister.daemon";function tt(t=B.homedir()){return l.join(t,"Library","LaunchAgents",`${x}.plist`)}s(tt,"daemonPlistPath");function K(t){return t===_&&process.platform==="darwin"&&o.existsSync(tt())}s(K,"launchdOwns");function et(t,e){let n=`gui/${process.getuid?.()??0}/${x}`,r=k(["launchctl","kickstart",...e?["-k"]:[],n],{capture:!0,timeout:15});return r.status!==0?($(`launchctl kickstart ${n} failed: ${(r.stderr||r.stdout).trim()}`),!1):(b(`${t.label} ${e?"restarted":"started"} by launchd (${x})`),!0)}s(et,"kickstart");var M=[p,_];function O(t){return new Promise(e=>setTimeout(e,t*1e3))}s(O,"sleep");async function U(t){let e;try{e=k(["lsof","-ti",`tcp:${t}`,"-sTCP:LISTEN"],{capture:!0,timeout:5}).stdout}catch(r){if(r instanceof w&&(r.code==="ENOENT"||r.code==="ETIMEDOUT"))return;throw r}let n=e.split(/\s+/).map(r=>r.trim()).filter(r=>/^\d+$/.test(r)).map(r=>Number.parseInt(r,10));for(let r of n)try{process.kill(r,"SIGTERM")}catch{}if(n.length!==0){for(let r=0;r<20;r++){if(!await z(t))return;await O(.25)}for(let r of n)try{process.kill(r,"SIGKILL")}catch{}}}s(U,"freePort");function W(){let t=D();return o.mkdirSync(t,{recursive:!0}),t}s(W,"stateDir");function y(t){return l.join(W(),`${t.stem}.pid`)}s(y,"pidFile");function rt(t){return l.join(W(),`${t.stem}.log`)}s(rt,"logFile");function I(t){return l.join(F(),"apps",t.dir)}s(I,"appDir");function nt(t,e){let n=e.lastIndexOf("/"),r=n>=0?l.join(t,e.slice(0,n)):t,c=n>=0?e.slice(n+1):e,i=new RegExp("^"+c.split("*").map(d=>d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$"),u;try{u=o.readdirSync(r,{withFileTypes:!0})}catch{return[]}return u.filter(d=>i.test(d.name)).map(d=>l.join(r,d.name))}s(nt,"globMatch");function st(t){let e=I(t),n=l.join(e,t.buildRef),r;try{let i=o.statSync(n);if(!i.isFile())return!0;r=i.mtimeMs}catch{return!0}let c=["*.ts","*.html","package.json","tsconfig*.json","src/*.ts","src/*.css","src/lib/*.ts"];for(let i of c)for(let u of nt(e,i))try{if(o.statSync(u).mtimeMs>r)return!0}catch{}return!1}s(st,"distStale");function ot(t,e){try{return o.statSync(e).mtimeMs>o.statSync(y(t)).mtimeMs}catch{return!1}}s(ot,"buildNewerThanRunning");function it(t){let e;try{e=o.readFileSync(y(t),"utf8")}catch{return null}let n=e.trim();return/^[+-]?\d+$/.test(n)?Number.parseInt(n,10):null}s(it,"readPid");function q(t){try{process.kill(t,0)}catch(e){let n=e.code;if(n==="ESRCH")return!1;if(n==="EPERM")return!0;throw e}return!0}s(q,"alive");function z(t){return new Promise(e=>{let n=G.connect({host:"127.0.0.1",port:t}),r=s(c=>{n.destroy(),e(c)},"done");n.setTimeout(1e3,()=>r(!1)),n.once("connect",()=>r(!0)),n.once("error",()=>r(!1))})}s(z,"portOpen");async function S(t){try{let e=await fetch(`http://127.0.0.1:${t}/__werkmeister-health`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}",signal:AbortSignal.timeout(2e3)});return e.status!==400&&e.status<500}catch{return!1}}s(S,"serves");function L(t=p){let e=it(t);return e&&q(e)?[!0,e]:[!1,null]}s(L,"isRunning");async function ht(t=p){let[e,n]=L(t);return{running:e,pid:n,port:t.port,url:`http://localhost:${t.port}/`,healthy:e&&await S(t.port)}}s(ht,"status");function J(t){let e=I(t);if(o.existsSync(l.join(e,"package.json")))return{dir:e,entry:t.entry,bundled:!1};let n=t.bundled?l.join(v(),t.bundled):null;return!n||!o.existsSync(n)?null:{dir:v(),entry:n,bundled:!0}}s(J,"appEntry");function bt(t){let e=J(t);return e?l.resolve(e.dir,e.entry):void 0}s(bt,"appEntryPath");async function Q(t=p,e=!0,n=!1){let r=T();if(r)return f(`${t.label}: ${r}; leaving the machine's server on port ${t.port} alone`),S(t.port);let[c,i]=L(t);if(c&&i===process.pid)return b(`${t.label} is this process (pid ${i}); leaving it running`),!0;if(K(t))return!n&&await S(t.port)?(b(`${t.label} already running under launchd (http://localhost:${t.port}/)`),!0):et(t,n);c&&!await S(t.port)&&(f(`${t.label} (pid ${i}) is not serving on port ${t.port}; restarting it.`),n=!0);let u=J(t);if(!u)return g(`${t.label} not found at ${I(t)}; skipping`),!1;let{dir:d,entry:N}=u,X=u.bundled?N:l.join(d,t.buildRef);u.bundled&&(e=!1);let E=!1;if(e&&st(t)){f(`Building ${t.label} (sources changed)...`);let a;try{a=k(["pnpm","run","build"],{cwd:d,capture:!0,timeout:300})}catch(m){if(m instanceof w&&m.code==="ENOENT")return g(`pnpm not found; skipping ${t.label}`),!1;if(m instanceof w&&m.code==="ETIMEDOUT")return $(`${t.label} build timed out; skipping`),!1;throw m}if(a.status!==0){let m=(a.stderr.trim()||a.stdout.trim()).slice(-800);return $(`${t.label} build failed; skipping start:
|
|
4
4
|
${m}`),!1}E=!0}else e&&f(`${t.label} build up to date; skipping build`);if(c&&!E&&ot(t,X)&&(f(`Running ${t.label} predates the current build; bouncing to reload it.`),n=!0),c&&!E&&!n)return b(`${t.label} already running (pid ${i}, http://localhost:${t.port}/)`),!0;c&&await V(t),await U(t.port);let j=rt(t),Y={...process.env,PORT:String(t.port),...t.env??{}};f(`Starting ${t.label} on http://localhost:${t.port}/ ...`);let R=o.openSync(j,"w"),h=Z("node",[N],{cwd:d,detached:!0,stdio:["ignore",R,R],env:Y}),P=await new Promise(a=>{h.once("spawn",()=>a("spawned")),h.once("error",m=>a(m))});if(o.closeSync(R),P!=="spawned"){if(P.code==="ENOENT")return g(`node not found; skipping ${t.label}`),!1;throw P}h.unref(),o.writeFileSync(y(t),String(h.pid));let A=!1;h.once("exit",()=>{A=!0});for(let a=0;a<20;a++){if(A)return $(`${t.label} exited immediately (see ${j})`),o.rmSync(y(t),{force:!0}),!1;if(await z(t.port))return b(`${t.label} started (pid ${h.pid}, http://localhost:${t.port}/)`),!0;await O(.25)}return g(`${t.label} started (pid ${h.pid}) but port ${t.port} not up yet; check ${j}`),!0}s(Q,"start");async function V(t=p){if(K(t))return f(`${t.label} is kept up by launchd (${x}); leaving it running`),!1;let e=T();if(e)return f(`${t.label}: ${e}; leaving the machine's server on port ${t.port} alone`),!1;let[n,r]=L(t);if(!n||r===null)return o.rmSync(y(t),{force:!0}),!1;f(`Stopping ${t.label} (pid ${r})...`);try{process.kill(r,"SIGTERM")}catch(i){let u=i.code;if(u==="ESRCH")return o.rmSync(y(t),{force:!0}),!1;if(u==="EPERM")return $(`Cannot signal pid ${r} (owned by another user)`),!1;throw i}let c=!1;for(let i=0;i<20;i++){if(!q(r)){c=!0;break}await O(.25)}if(!c)try{process.kill(r,"SIGKILL")}catch{}return o.rmSync(y(t),{force:!0}),await U(t.port),b(`${t.label} stopped`),!0}s(V,"stop");async function ct(t=p,e=!1){await Q(t,e,!0)}s(ct,"restart");async function yt(t=!0){for(let e of M)await Q(e,t)}s(yt,"startAll");async function $t(){for(let t of M)await V(t)}s($t,"stopAll");async function pt(t=!1){for(let e of M)await ct(e,t)}s(pt,"restartAll");export{p as a,_ as b,x as c,tt as d,S as e,ht as f,J as g,bt as h,Q as i,V as j,ct as k,yt as l,$t as m,pt as n};
|
|
5
|
-
//# sourceMappingURL=chunk-
|
|
5
|
+
//# sourceMappingURL=chunk-27L4LN4W.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as __sandboxCreateRequire } from "node:module";
|
|
2
2
|
const require = __sandboxCreateRequire(import.meta.url);
|
|
3
|
-
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var p=(a,b)=>e(a,"name",{value:b,configurable:!0}),q=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var l=(a,b)=>()=>(a&&(b=a(a=0)),b);var r=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),s=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},m=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var t=(a,b,c)=>(c=a!=null?g(j(a)):{},m(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));var w,o=l(()=>{w={sha:"
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var p=(a,b)=>e(a,"name",{value:b,configurable:!0}),q=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var l=(a,b)=>()=>(a&&(b=a(a=0)),b);var r=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),s=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},m=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var t=(a,b,c)=>(c=a!=null?g(j(a)):{},m(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));var w,o=l(()=>{w={sha:"497d7986d30e6e7d49715711347a0fdc9ecfbb98",dirty:!1,content:""}});export{p as a,q as b,r as c,s as d,t as e,o as f,w as g};
|
|
4
|
+
//# sourceMappingURL=chunk-2YZJBUI6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __sandboxCreateRequire } from "node:module";
|
|
2
2
|
const require = __sandboxCreateRequire(import.meta.url);
|
|
3
|
-
import{h as W}from"./chunk-
|
|
3
|
+
import{h as W}from"./chunk-CTGTKRAZ.js";import{r as H}from"./chunk-XXTYU327.js";import{C as B,G as O,a as ne,l as K,w as U,y as G,z as D}from"./chunk-R5LYMTTV.js";import{a as Y}from"./chunk-SQBDXVWV.js";import{a as c,e as se,f as R}from"./chunk-2YZJBUI6.js";R();var $=se(ne(),1);import*as p from"node:fs";import*as V from"node:os";import*as w from"node:path";R();import*as _ from"node:fs";import*as X from"node:path";var ue=`# Port Allocation Scheme
|
|
4
4
|
# Each feature slot (1-12) gets a dedicated port range.
|
|
5
5
|
#
|
|
6
6
|
# k8s port-forward listen-ports (the 9000-range) are NOT defined here \u2014 they
|
|
@@ -64,4 +64,4 @@ to its path in \`~/.werkmeister/config.yaml\`. \`machine setup\` writes this
|
|
|
64
64
|
file only when it is missing and never overwrites it.
|
|
65
65
|
`,L={archetypes:{"node-web":{standards:["ui","config","testing"],mcp_servers:["context7"],test:"npm test"},"node-service":{standards:["service","testing"],test:"npm test"},"node-tool":{standards:["engineering","testing"],validate:"Library: run the unit/smoke tests. No URL, cookie, or Caddy step applies."},"mcp-client":{standards:["engineering","testing"],validate:"Build, then npm run test:integration (Extension Development Host via @vscode/test-cli). Walk the open items in MANUAL-CHECKLIST.md for anything visual."}},caches:{"pnpm-store":{path:"/pnpm-store",env:{npm_config_store_dir:"/pnpm-store"},detect:["pnpm-lock.yaml"]},turbo:{path:"/turbo-cache",env:{TURBO_CACHE_DIR:"/turbo-cache",TURBO_CACHE_MAX_AGE:"14d"},detect:["turbo.json"],max_age:"14d"}},mcp_servers:{context7:{type:"stdio",command:"npx",args:["-y","@upstash/context7-mcp"],env:{CONTEXT7_API_KEY:"${CONTEXT7_API_KEY:-}"}},werkmeister:{type:"http",url:"http://host.docker.internal:${WERKMEISTER_MCP_PORT:-3002}/mcp",headers:{Authorization:"Bearer ${WERKMEISTER_MCP_TOKEN}"}}}};var j=w.join(Y,"services.yaml");function N(e){let r=w.join(e,j);return p.existsSync(r)?r:null}c(N,"fragmentPath");var ie="# GENERATED by `werkmeister registry sync` \u2014 do not edit.",M=c(e=>e.startsWith("# GENERATED by "),"isGenerated"),A=["services","setup_services","infrastructure","caches"],ae=["archetypes","caches","mcp_servers","k8s_context","services","infrastructure","setup_services","repos"],h=class extends Error{static{c(this,"RegistryError")}};function m(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}c(m,"isDict");function q(e){if(!p.existsSync(e))return[];let r=[];for(let s of p.readdirSync(e).sort()){let n=N(w.join(e,s));n&&(p.statSync(w.join(e,s,".git"),{throwIfNoEntry:!1})?.isFile()||r.push(F(s,n)))}return r}c(q,"discoverFragments");function F(e,r){let s;try{s=(0,$.parse)(p.readFileSync(r,"utf8"))}catch(n){throw new h(`${r}: ${n instanceof Error?n.message:String(n)}`)}return{repo:e,path:r,doc:m(s)?s:{}}}c(F,"readFragment");var ce=/\{\{\s*(home|repos_root|workspaces_root|werkmeister_home|local_domain)\s*\}\}/g;function I(e,r){if(typeof e=="string")return e.replace(ce,(s,n)=>r[n]);if(Array.isArray(e))return e.map(s=>I(s,r));if(m(e)){let s={};for(let[n,o]of Object.entries(e))s[n]=I(o,r);return s}return e}c(I,"expandPlaceholders");function Q(e,r){let s={...e};for(let[n,o]of Object.entries(r))s[n]=m(o)&&m(s[n])?Q(s[n],o):o;return s}c(Q,"deepMerge");function C(e,r,s,n){let o=e.get(r);if(o!==void 0&&o!==s)throw new h(`${n} is defined by both ${o} and ${s}`);e.set(r,s)}c(C,"claim");function Z(e,r){let s={archetypes:structuredClone(r.defaults.archetypes??{}),caches:structuredClone(r.defaults.caches??{}),mcp_servers:structuredClone(r.defaults.mcp_servers??{}),services:{},infrastructure:{},setup_services:{},repos:{}},n=new Map;for(let o of Object.keys(s.caches))n.set(`caches/${o}`,"werkmeister");for(let o of e){let i=I(o.doc,r.paths);for(let t of Object.keys(i))if(!(t.startsWith("x-")||t==="repo"||A.includes(t)))throw new h(`${o.path}: unexpected top-level key \`${t}\` \u2014 a fragment may only contain ${A.join(", ")}, repo (and x-* anchor blocks)`);if(i.repo!==void 0){if(!m(i.repo))throw new h(`${o.path}: \`repo:\` must be a map`);Object.assign(s.repos[o.repo]??={services:[],path_mappings:{}},i.repo)}for(let t of A){let d=i[t]??{};if(!m(d))throw new h(`${o.path}: \`${t}:\` must be a map`);for(let[f,a]of Object.entries(d)){if(!m(a))throw new h(`${o.path}: \`${t}.${f}\` must be a map`);C(n,`${t}/${f}`,o.repo,`${t}.${f}`);let l=a;if(t==="services"||t==="setup_services"){if(a.repo!==void 0&&a.repo!==o.repo)throw new h(`${o.path}: ${t}.${f} says repo: ${a.repo} but lives in ${o.repo}`);if(l={repo:o.repo,...a},String(l.path??"").split(/[\\/]/).includes(".."))throw new h(`${o.path}: ${t}.${f} path ${l.path} leaves the repo (no ..)`)}if(t==="services"){l.port_offset!==void 0&&C(n,`port_offset/${l.port_offset}`,`${o.repo}:${f}`,`port_offset ${l.port_offset}`);let g=s.repos[o.repo]??={services:[],path_mappings:{}};g.services.push(f);let k=String(l.path??".").replace(/^\/+|\/+$/g,"");k!==""&&k!=="."&&(g.path_mappings[k]=f)}(t==="services"||t==="infrastructure")&&l.k8s_forward_port!==void 0&&C(n,`k8s_forward_port/${l.k8s_forward_port}`,`${o.repo}:${f}`,`k8s_forward_port ${l.k8s_forward_port}`),s[t][f]=l}}}return Q(s,r.local)}c(Z,"mergeRegistry");var v="disabled_fragments";function ee(e,r,s){let{[v]:n,...o}=r,i=n??[];if(!Array.isArray(i)||!i.every(a=>typeof a=="string"))throw new h(`${s}: ${v} must be a list of repo names`);let t=new Set(i),d=e.filter(a=>t.has(a.repo)),f=structuredClone(o);for(let a of["services","setup_services","infrastructure"]){let l=f[a];if(m(l))for(let[g,k]of Object.entries(l))(d.some(b=>m(b.doc[a])&&g in b.doc[a])||m(k)&&t.has(k.repo))&&delete l[g]}if(m(f.repos))for(let a of t)delete f.repos[a];return{fragments:e.filter(a=>!t.has(a.repo)),skipped:d,unknown:i.filter(a=>!e.some(l=>l.repo===a)),local:f}}c(ee,"applyDisabled");function fe(e,r,s,n=[]){let o={};for(let t of ae)t in e&&(o[t]=e[t]);for(let t of Object.keys(e))t in o||(o[t]=e[t]);return[ie,"# Edit a repo's .werkmeister/services.yaml fragment, or the machine overrides file, then","# run `werkmeister registry sync` (or `werkmeister machine setup`). Regenerated from:",...r.map(t=>`# Source: ${t}`),...n.map(t=>`# Disabled: ${t}`),`# Machine overrides: ${s}`,""].join(`
|
|
66
66
|
`)+(0,$.stringify)(o,{lineWidth:0})}c(fe,"renderRegistry");function le(e){if(!p.existsSync(e))return null;let r=p.readFileSync(e,"utf8");if(M(r))return null;try{let s=(0,$.parse)(r),n=m(s)?s.k8s_context:void 0;return typeof n=="string"&&n.trim()?n.trim():null}catch{return null}}c(le,"inheritedK8sContext");function de(e,r){let s;try{s=(0,$.parse)(e)}catch{return[]}if(!m(s))return[];let n=[];for(let o of A){let i=s[o];if(m(i))for(let t of Object.keys(i))t in(r[o]??{})||n.push(`${o}.${t}`)}return n}c(de,"orphanedEntries");function Se(e,r){let s=c(t=>{try{let d=t===null?null:(0,$.parse)(t);return m(d)?d:{}}catch{return{}}},"sections"),n=s(e),o=s(r),i={added:[],removed:[],changed:[]};for(let t of A){let d=m(n[t])?n[t]:{},f=m(o[t])?o[t]:{};for(let a of new Set([...Object.keys(d),...Object.keys(f)])){let l=`${t}.${a}`;a in d?a in f?JSON.stringify(d[a])!==JSON.stringify(f[a])&&i.changed.push(l):i.removed.push(l):i.added.push(l)}}for(let t of Object.values(i))t.sort();return i}c(Se,"registryChanges");function te(){return{home:V.homedir(),repos_root:O(),workspaces_root:B(),werkmeister_home:U(),local_domain:H().local_domain}}c(te,"placeholderPaths");function re(e){if(!p.existsSync(e))return{};let r;try{r=(0,$.parse)(p.readFileSync(e,"utf8"))}catch(s){throw new h(`${e}: ${s instanceof Error?s.message:String(s)}`)}if(r==null)return{};if(!m(r))throw new h(`${e}: must be a map of registry keys`);return r}c(re,"readLocalOverlay");function pe(e,r,s=O()){let n=N(r);if(!n)return null;let o=q(s).filter(a=>a.repo!==e);o.push(F(e,n));let i=D(),t=re(i),d=t[v];Array.isArray(d)&&(t[v]=d.filter(a=>a!==e));let f=ee(o,t,i);return Z(f.fragments,{defaults:L,local:f.local,paths:te()})}c(pe,"branchRegistry");function xe(e,r){let s={...e};for(let n of W(r)){let o=w.basename(n),i;try{i=pe(o,n)}catch(t){K(`${o}: branch fragment ignored: ${t instanceof Error?t.message:String(t)}`);continue}for(let[t,d]of Object.entries(i?.services??{}))d.repo===o&&(s[t]=d)}return s}c(xe,"workspaceServices");function Ae(e={}){let r="config services.yaml",s=e.reposRoot??O(),n=e.target??G(),o=D(),i;try{i=p.existsSync(n)?p.readFileSync(n,"utf8"):null}catch(u){return[{label:r,ok:!1,detail:`could not read ${n}: ${u}`}]}if(e.generatedOnly&&i!==null&&!M(i))return[{label:r,ok:!1,detail:`${n} is hand-written \u2014 left as is; \`werkmeister registry sync\` converts it (with a backup)`}];let t,d,f,a="";try{if(!e.checkOnly&&!e.target&&!p.existsSync(o)){let y=le(n)??"orbstack";z(o,J(y)),a=`; seeded ${o} (k8s_context: ${y} \u2014 edit there)`}let u=q(s);if(u.length===0)return[{label:r,ok:!1,detail:`no ${j} found under ${s} \u2014 clone your team's repos there and re-run \`werkmeister machine setup\` (or answer yes to the demo apps)`}];let E=re(o);if(e.from){let y=N(e.from);if(!y)return[{label:r,ok:!1,detail:`no ${j} in ${e.from}`}];let x=w.basename(e.from);u=[...u.filter(T=>T.repo!==x),F(x,y)];let P=E[v];Array.isArray(P)&&(E[v]=P.filter(T=>T!==x))}t=ee(u,E,o),d=Z(t.fragments,{defaults:L,local:t.local,paths:te()}),f=fe(d,t.fragments.map(y=>y.path),o,t.skipped.map(y=>y.path))}catch(u){return[{label:r,ok:!1,detail:u instanceof Error?u.message:String(u)}]}let l=[...t.skipped.map(u=>({label:`fragment ${u.repo}`,ok:!0,detail:`disabled in ${o} \u2014 skipped`})),...t.unknown.map(u=>({label:`fragment ${u}`,ok:!0,detail:`listed in ${v} in ${o}, but no fragment under ${s}`}))],g=c(u=>[u,...l],"report"),k=t.fragments.length,S=`${k} fragment${k===1?"":"s"}`;if(i===f)return g({label:r,ok:!0,detail:`up to date (${S}) at ${n}${a}`});if(e.checkOnly)return g({label:r,ok:!1,detail:i===null?`missing \u2014 would generate ${n} from ${S}`:`drift \u2014 would regenerate ${n} from ${S}`});let b="";if(i!==null&&!M(i)){let u=Math.floor((e.now??Date.now)()/1e3),E=`${n}.bak-${u}`;try{p.copyFileSync(n,E)}catch(x){return g({label:r,ok:!1,detail:`could not back up ${n}: ${x}`})}b=`; hand-written registry backed up to ${E}`;let y=de(i,d);y.length&&(b+=`; not in any fragment: ${y.join(", ")}`)}try{p.mkdirSync(w.dirname(n),{recursive:!0}),p.writeFileSync(n,f)}catch(u){return g({label:r,ok:!1,detail:`could not write ${n}: ${u}`})}return g({label:r,ok:!0,detail:`generated ${n} from ${S}${b}${a}`})}c(Ae,"syncRegistry");export{ue as a,me as b,he as c,J as d,z as e,ye as f,j as g,h,q as i,Z as j,ee as k,le as l,Se as m,re as n,pe as o,xe as p,Ae as q};
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-3HJFYJ7T.js.map
|