werkmeister 0.59.0 → 0.59.1
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/main.js +3 -1
- package/dist/mcp.js +2 -0
- package/dist/werkmeister-workspaces.vsix +0 -0
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __sandboxCreateRequire } from "node:module";
|
|
3
3
|
const require = __sandboxCreateRequire(import.meta.url);
|
|
4
|
-
var _Y=Object.create;var dm=Object.defineProperty;var SY=Object.getOwnPropertyDescriptor;var EY=Object.getOwnPropertyNames;var $Y=Object.getPrototypeOf,OY=Object.prototype.hasOwnProperty;var i=(e,t)=>dm(e,"name",{value:t,configurable:!0}),ne=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var $=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var r in t)dm(e,r,{get:t[r],enumerable:!0})},TY=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of EY(t))!OY.call(e,s)&&s!==r&&dm(e,s,{get:()=>t[s],enumerable:!(n=SY(t,s))||n.enumerable});return e};var Te=(e,t,r)=>(r=e!=null?_Y($Y(e)):{},TY(t||!e||!e.__esModule?dm(r,"default",{value:e,enumerable:!0}):r,e));var _,h=R(()=>{_={sha:"
|
|
4
|
+
var _Y=Object.create;var dm=Object.defineProperty;var SY=Object.getOwnPropertyDescriptor;var EY=Object.getOwnPropertyNames;var $Y=Object.getPrototypeOf,OY=Object.prototype.hasOwnProperty;var i=(e,t)=>dm(e,"name",{value:t,configurable:!0}),ne=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var $=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var r in t)dm(e,r,{get:t[r],enumerable:!0})},TY=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of EY(t))!OY.call(e,s)&&s!==r&&dm(e,s,{get:()=>t[s],enumerable:!(n=SY(t,s))||n.enumerable});return e};var Te=(e,t,r)=>(r=e!=null?_Y($Y(e)):{},TY(t||!e||!e.__esModule?dm(r,"default",{value:e,enumerable:!0}):r,e));var _,h=R(()=>{_={sha:"811eb3c81ad21806ea63a958340e159cd5db17d0",dirty:!1}});var Sf=$(Jb=>{h();var pm=class extends Error{static{i(this,"CommanderError")}constructor(t,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},zb=class extends pm{static{i(this,"InvalidArgumentError")}constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Jb.CommanderError=pm;Jb.InvalidArgumentError=zb});var hm=$(Qb=>{h();var{InvalidArgumentError:AY}=Sf(),Xb=class{static{i(this,"Argument")}constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new AY(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function CY(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}i(CY,"humanReadableArgName");Qb.Argument=Xb;Qb.humanReadableArgName=CY});var tv=$(ev=>{h();var{humanReadableArgName:PY}=hm(),Zb=class{static{i(this,"Help")}constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(s=>!s._hidden),n=t._getHelpCommand();return n&&!n._hidden&&r.push(n),this.sortSubcommands&&r.sort((s,o)=>s.name().localeCompare(o.name())),r}compareOptions(t,r){let n=i(s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,""),"getSortKey");return n(t).localeCompare(n(r))}visibleOptions(t){let r=t.options.filter(s=>!s.hidden),n=t._getHelpOption();if(n&&!n.hidden){let s=n.short&&t._findOption(n.short),o=n.long&&t._findOption(n.long);!s&&!o?r.push(n):n.long&&!o?r.push(t.createOption(n.long,n.description)):n.short&&!s&&r.push(t.createOption(n.short,n.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let n=t.parent;n;n=n.parent){let s=n.options.filter(o=>!o.hidden);r.push(...s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(n=>PY(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((n,s)=>Math.max(n,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(s)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((n,s)=>Math.max(n,this.displayWidth(r.styleOptionTerm(r.optionTerm(s)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((n,s)=>Math.max(n,this.displayWidth(r.styleOptionTerm(r.optionTerm(s)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((n,s)=>Math.max(n,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(s)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let n="";for(let s=t.parent;s;s=s.parent)n=s.name()+" "+n;return n+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let n=`(${r.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatItemList(t,r,n){return r.length===0?[]:[n.styleTitle(t),...r,""]}groupItems(t,r,n){let s=new Map;return t.forEach(o=>{let a=n(o);s.has(a)||s.set(a,[])}),r.forEach(o=>{let a=n(o);s.has(a)||s.set(a,[]),s.get(a).push(o)}),s}formatHelp(t,r){let n=r.padWidth(t,r),s=r.helpWidth??80;function o(d,p){return r.formatItem(d,n,p,r)}i(o,"callFormatItem");let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],c=r.commandDescription(t);c.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(c),s),""]));let l=r.visibleArguments(t).map(d=>o(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d))));if(a=a.concat(this.formatItemList("Arguments:",l,r)),this.groupItems(t.options,r.visibleOptions(t),d=>d.helpGroupHeading??"Options:").forEach((d,p)=>{let m=d.map(x=>o(r.styleOptionTerm(r.optionTerm(x)),r.styleOptionDescription(r.optionDescription(x))));a=a.concat(this.formatItemList(p,m,r))}),r.showGlobalOptions){let d=r.visibleGlobalOptions(t).map(p=>o(r.styleOptionTerm(r.optionTerm(p)),r.styleOptionDescription(r.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",d,r))}return this.groupItems(t.commands,r.visibleCommands(t),d=>d.helpGroup()||"Commands:").forEach((d,p)=>{let m=d.map(x=>o(r.styleSubcommandTerm(r.subcommandTerm(x)),r.styleSubcommandDescription(r.subcommandDescription(x))));a=a.concat(this.formatItemList(p,m,r))}),a.join(`
|
|
5
5
|
`)}displayWidth(t){return _A(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,n,s){let a=" ".repeat(2);if(!n)return a+t;let c=t.padEnd(r+t.length-s.displayWidth(t)),l=2,f=(this.helpWidth??80)-r-l-2,d;return f<this.minWidthToWrap||s.preformatted(n)?d=n:d=s.boxWrap(n,f).replace(/\n/g,`
|
|
6
6
|
`+" ".repeat(r+l)),a+c+" ".repeat(l)+d.replace(/\n/g,`
|
|
7
7
|
${a}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let n=t.split(/\r\n|\n/),s=/[\s]*[^\s]+/g,o=[];return n.forEach(a=>{let c=a.match(s);if(c===null){o.push("");return}let l=[c.shift()],u=this.displayWidth(l[0]);c.forEach(f=>{let d=this.displayWidth(f);if(u+d<=r){l.push(f),u+=d;return}o.push(l.join(""));let p=f.trimStart();l=[p],u=this.displayWidth(p)}),o.push(l.join(""))}),o.join(`
|
|
@@ -219,6 +219,8 @@ trap 'rm -rf "$tmp"' EXIT
|
|
|
219
219
|
trap 'exit 130' HUP INT TERM
|
|
220
220
|
# Corepack keeps pnpm under HOME; without this a fresh HOME re-downloads it every run.
|
|
221
221
|
export COREPACK_HOME="\${COREPACK_HOME:-$HOME/.cache/node/corepack}"
|
|
222
|
+
# A temp HOME isolates files, not the daemon: unreachable unless the caller sets it (SW-264).
|
|
223
|
+
export WERKMEISTER_HOST="\${WERKMEISTER_HOST:-http://127.0.0.1:1}"
|
|
222
224
|
HOME=$tmp "$@"
|
|
223
225
|
status=$?
|
|
224
226
|
# A failure under load reads as load (SW-209).
|
package/dist/mcp.js
CHANGED
|
@@ -611,6 +611,8 @@ trap 'rm -rf "$tmp"' EXIT
|
|
|
611
611
|
trap 'exit 130' HUP INT TERM
|
|
612
612
|
# Corepack keeps pnpm under HOME; without this a fresh HOME re-downloads it every run.
|
|
613
613
|
export COREPACK_HOME="\${COREPACK_HOME:-$HOME/.cache/node/corepack}"
|
|
614
|
+
# A temp HOME isolates files, not the daemon: unreachable unless the caller sets it (SW-264).
|
|
615
|
+
export WERKMEISTER_HOST="\${WERKMEISTER_HOST:-http://127.0.0.1:1}"
|
|
614
616
|
HOME=$tmp "$@"
|
|
615
617
|
status=$?
|
|
616
618
|
# A failure under load reads as load (SW-209).
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "werkmeister",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Multi-feature concurrent development orchestrator CLI tool",
|
|
6
6
|
"type": "module",
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
"typescript": "^5.7.0",
|
|
119
119
|
"vitest": "^3.0.0",
|
|
120
120
|
"yaml": "^2.7.0",
|
|
121
|
-
"werkmeister-core": "0.59.
|
|
122
|
-
"werkmeister-mcp": "0.8.
|
|
121
|
+
"werkmeister-core": "0.59.1",
|
|
122
|
+
"werkmeister-mcp": "0.8.8"
|
|
123
123
|
},
|
|
124
124
|
"scripts": {
|
|
125
125
|
"build": "node esbuild.mjs",
|