werkmeister 0.87.0 → 0.87.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/dashboard.js +1 -1
- package/dist/form-cli.js +1 -1
- package/dist/main.js +2 -2
- package/dist/mcp.js +53 -53
- package/dist/werkmeister-workspaces.vsix +0 -0
- package/package.json +3 -3
package/dist/dashboard.js
CHANGED
|
@@ -392,7 +392,7 @@ exit "$status"
|
|
|
392
392
|
## Harness
|
|
393
393
|
|
|
394
394
|
This workspace was generated for the \`mcp\` harness. Werkmeister's tools come from the MCP server \`werkmeister\` at ${_E()}/mcp (how to register it: docs/harnesses.md in the werkmeister repo). Hooks are unavailable on this harness: werkmeister's session-start context, standards gate, PR guard and agent state do not run here (Codex: use \`harness: codex\`). Open PRs only with \`werkmeister pr open\`.
|
|
395
|
-
`,"notice")}});import*as ml from"node:fs";import*as l1 from"node:path";function V3e(){return[Xae,"[mcp_servers.werkmeister]",`url = "http://127.0.0.1:${_a()}/mcp"`,"#
|
|
395
|
+
`,"notice")}});import*as ml from"node:fs";import*as l1 from"node:path";function V3e(){return[Xae,"[mcp_servers.werkmeister]",`url = "http://127.0.0.1:${_a()}/mcp"`,"# The daemon refuses a call without a token; the workspace token scopes the pre-approved tools to this workspace.",'bearer_token_env_var = "WERKMEISTER_MCP_TOKEN"',"# codex exec refuses non-read-only MCP tools unless pre-approved; the 300 s default cut off a first `up` (SW-188).",'default_tools_approval_mode = "approve"',"tool_timeout_sec = 1800",""].join(`
|
|
396
396
|
`)}function ece(e){let t=l1.join(e,x6);return ml.existsSync(t)&&ml.readFileSync(t,"utf8").split(`
|
|
397
397
|
`,1)[0]!==Xae?(N(`${x6} was not written by werkmeister; left as is (add [mcp_servers.werkmeister], docs/harnesses.md)`),t):(ml.mkdirSync(l1.dirname(t),{recursive:!0}),ml.writeFileSync(t,V3e()),t)}var k6,x6,um,Xae,Qae,yb=R(()=>{"use strict";f();nl();Me();w6();k6=".codex/hooks.json",x6=".codex/config.toml",um="WERKMEISTER_MCP_TOKEN=$(cat .werkmeister/token) codex",Xae="# Generated by werkmeister (harness: codex). Do not hand-edit; rerun `werkmeister workspace init`.",Qae={...c1,id:"codex",hooks:{available:!0},notice:s(()=>`
|
|
398
398
|
## Harness
|
package/dist/form-cli.js
CHANGED
|
@@ -239,7 +239,7 @@ Then output ONLY <result>{"ok":true}</result>, or <result>{"ok":false,"error":"<
|
|
|
239
239
|
## Harness
|
|
240
240
|
|
|
241
241
|
This workspace was generated for the \`mcp\` harness. Werkmeister's tools come from the MCP server \`werkmeister\` at ${gp()}/mcp (how to register it: docs/harnesses.md in the werkmeister repo). Hooks are unavailable on this harness: werkmeister's session-start context, standards gate, PR guard and agent state do not run here (Codex: use \`harness: codex\`). Open PRs only with \`werkmeister pr open\`.
|
|
242
|
-
`,"notice")}});import*as si from"node:fs";import*as vp from"node:path";function Z5(){return[Z_,"[mcp_servers.werkmeister]",`url = "http://127.0.0.1:${ii()}/mcp"`,"#
|
|
242
|
+
`,"notice")}});import*as si from"node:fs";import*as vp from"node:path";function Z5(){return[Z_,"[mcp_servers.werkmeister]",`url = "http://127.0.0.1:${ii()}/mcp"`,"# The daemon refuses a call without a token; the workspace token scopes the pre-approved tools to this workspace.",'bearer_token_env_var = "WERKMEISTER_MCP_TOKEN"',"# codex exec refuses non-read-only MCP tools unless pre-approved; the 300 s default cut off a first `up` (SW-188).",'default_tools_approval_mode = "approve"',"tool_timeout_sec = 1800",""].join(`
|
|
243
243
|
`)}function t1(e){let t=vp.join(e,Fg);return si.existsSync(t)&&si.readFileSync(t,"utf8").split(`
|
|
244
244
|
`,1)[0]!==Z_?(C(`${Fg} was not written by werkmeister; left as is (add [mcp_servers.werkmeister], docs/harnesses.md)`),t):(si.mkdirSync(vp.dirname(t),{recursive:!0}),si.writeFileSync(t,Z5()),t)}var Dg,Fg,tc,Z_,e1,nc=D(()=>{"use strict";f();zi();Q();Lg();Dg=".codex/hooks.json",Fg=".codex/config.toml",tc="WERKMEISTER_MCP_TOKEN=$(cat .werkmeister/token) codex",Z_="# Generated by werkmeister (harness: codex). Do not hand-edit; rerun `werkmeister workspace init`.",e1={...yp,id:"codex",hooks:{available:!0},notice:o(()=>`
|
|
245
245
|
## Harness
|
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 jee=Object.create;var lg=Object.defineProperty;var Lee=Object.getOwnPropertyDescriptor;var Dee=Object.getOwnPropertyNames;var Fee=Object.getPrototypeOf,Mee=Object.prototype.hasOwnProperty;var i=(e,t)=>lg(e,"name",{value:t,configurable:!0}),oe=(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 A=(e,t)=>()=>(e&&(t=e(e=0)),t);var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ie=(e,t)=>{for(var r in t)lg(e,r,{get:t[r],enumerable:!0})},Bee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Dee(t))!Mee.call(e,s)&&s!==r&&lg(e,s,{get:()=>t[s],enumerable:!(n=Lee(t,s))||n.enumerable});return e};var Te=(e,t,r)=>(r=e!=null?jee(Fee(e)):{},Bee(t||!e||!e.__esModule?lg(r,"default",{value:e,enumerable:!0}):r,e));var v,h=A(()=>{v={sha:"
|
|
4
|
+
var jee=Object.create;var lg=Object.defineProperty;var Lee=Object.getOwnPropertyDescriptor;var Dee=Object.getOwnPropertyNames;var Fee=Object.getPrototypeOf,Mee=Object.prototype.hasOwnProperty;var i=(e,t)=>lg(e,"name",{value:t,configurable:!0}),oe=(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 A=(e,t)=>()=>(e&&(t=e(e=0)),t);var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ie=(e,t)=>{for(var r in t)lg(e,r,{get:t[r],enumerable:!0})},Bee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Dee(t))!Mee.call(e,s)&&s!==r&&lg(e,s,{get:()=>t[s],enumerable:!(n=Lee(t,s))||n.enumerable});return e};var Te=(e,t,r)=>(r=e!=null?jee(Fee(e)):{},Bee(t||!e||!e.__esModule?lg(r,"default",{value:e,enumerable:!0}):r,e));var v,h=A(()=>{v={sha:"38812efd98b38f4b7eebdb7e9d7ba3c5ec7de11b",dirty:!1}});var Zd=T(_S=>{h();var ug=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}},SS=class extends ug{static{i(this,"InvalidArgumentError")}constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};_S.CommanderError=ug;_S.InvalidArgumentError=SS});var fg=T($S=>{h();var{InvalidArgumentError:qee}=Zd(),ES=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 qee(`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 Wee(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}i(Wee,"humanReadableArgName");$S.Argument=ES;$S.humanReadableArgName=Wee});var RS=T(TS=>{h();var{humanReadableArgName:Hee}=fg(),OS=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=>Hee(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(w=>o(r.styleOptionTerm(r.optionTerm(w)),r.styleOptionDescription(r.optionDescription(w))));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(w=>o(r.styleSubcommandTerm(r.subcommandTerm(w)),r.styleSubcommandDescription(r.subcommandDescription(w))));a=a.concat(this.formatItemList(p,m,r))}),a.join(`
|
|
5
5
|
`)}displayWidth(t){return QI(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(`
|
|
@@ -292,7 +292,7 @@ Then output ONLY <result>{"ok":true}</result>, or <result>{"ok":false,"error":"<
|
|
|
292
292
|
## Harness
|
|
293
293
|
|
|
294
294
|
This workspace was generated for the \`mcp\` harness. Werkmeister's tools come from the MCP server \`werkmeister\` at ${Hp()}/mcp (how to register it: docs/harnesses.md in the werkmeister repo). Hooks are unavailable on this harness: werkmeister's session-start context, standards gate, PR guard and agent state do not run here (Codex: use \`harness: codex\`). Open PRs only with \`werkmeister pr open\`.
|
|
295
|
-
`,"notice")}});import*as Ta from"node:fs";import*as mw from"node:path";function Rae(){return[n4,"[mcp_servers.werkmeister]",`url = "http://127.0.0.1:${ai()}/mcp"`,"#
|
|
295
|
+
`,"notice")}});import*as Ta from"node:fs";import*as mw from"node:path";function Rae(){return[n4,"[mcp_servers.werkmeister]",`url = "http://127.0.0.1:${ai()}/mcp"`,"# The daemon refuses a call without a token; the workspace token scopes the pre-approved tools to this workspace.",'bearer_token_env_var = "WERKMEISTER_MCP_TOKEN"',"# codex exec refuses non-read-only MCP tools unless pre-approved; the 300 s default cut off a first `up` (SW-188).",'default_tools_approval_mode = "approve"',"tool_timeout_sec = 1800",""].join(`
|
|
296
296
|
`)}function o4(e){let t=mw.join(e,E$);return Ta.existsSync(t)&&Ta.readFileSync(t,"utf8").split(`
|
|
297
297
|
`,1)[0]!==n4?(C(`${E$} was not written by werkmeister; left as is (add [mcp_servers.werkmeister], docs/harnesses.md)`),t):(Ta.mkdirSync(mw.dirname(t),{recursive:!0}),Ta.writeFileSync(t,Rae()),t)}var $$,E$,Xc,n4,s4,gh=A(()=>{"use strict";h();lo();xe();_$();$$=".codex/hooks.json",E$=".codex/config.toml",Xc="WERKMEISTER_MCP_TOKEN=$(cat .werkmeister/token) codex",n4="# Generated by werkmeister (harness: codex). Do not hand-edit; rerun `werkmeister workspace init`.",s4={...hw,id:"codex",hooks:{available:!0},notice:i(()=>`
|
|
298
298
|
## Harness
|