@herjarsa/omo-meta-governor 0.24.6 → 0.24.7
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lib.js +2 -2
- package/dist/lib.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ After the tool call, briefly confirm what you stored and for which tool.`};try{r
|
|
|
13
13
|
|
|
14
14
|
Please invoke the \`task\` tool with \`subagent_type=oracle\` to perform a verification pass on the current session state. Decision context: ${r.evidenceCount} evidence unit(s). After Oracle returns, you should continue with the recommended action.`;return`[MetaGovernor] Escalation to user required. Reason: ${r.reasoning}
|
|
15
15
|
|
|
16
|
-
Present a clear summary to the user with the deviation(s) detected and your recommended next steps. Wait for explicit user input before proceeding.`}var p$,qO=0,H4=null;var B4=bv(()=>{p$=new A0});var n1=Wk((i9,L0)=>{L0.exports={name:"@herjarsa/omo-meta-governor",version:"0.24.
|
|
16
|
+
Present a clear summary to the user with the deviation(s) detected and your recommended next steps. Wait for explicit user input before proceeding.`}var p$,qO=0,H4=null;var B4=bv(()=>{p$=new A0});var n1=Wk((i9,L0)=>{L0.exports={name:"@herjarsa/omo-meta-governor",version:"0.24.7",type:"module",description:"Self-judging agent orchestration layer for OpenCode. Reads memory, scores sessions, dispatches decisions.",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./lib":{types:"./dist/lib.d.ts",import:"./dist/lib.js"}},types:"./dist/index.d.ts",main:"./dist/index.js",files:["dist","README.md"],scripts:{build:"bun build.ts",typecheck:"tsc --noEmit",test:"bun test"},peerDependencies:{"@opencode-ai/plugin":">=1.0.0"},publishConfig:{access:"public",registry:"https://registry.npmjs.org/"},license:"MIT",repository:{type:"git",url:"https://github.com/herjarsa/omo-meta-governor.git"},devDependencies:{"@colbymchenry/codegraph":"^1.5.0","@opencode-ai/plugin":"^1.17.4","@types/node":"^25.9.3",typescript:"^7.0.2"}}});var dO={};wr(dO,{stripJsoncComments:()=>iO,parseJsonc:()=>lO,loadMetaGovernorConfig:()=>l1,loadJsoncFile:()=>i1,getUserConfigPath:()=>oO,getProjectConfigPath:()=>tO,deepMerge:()=>e$});import{readFile as D0,access as M0}from"node:fs/promises";import{resolve as x0,join as F0}from"node:path";import{homedir as u0}from"node:os";function iO(r){let v=[],b=0;while(b<r.length){let $=r[b];if($==='"'||$==="'"){let z=$;v.push(z),b++;while(b<r.length){let N=r[b];if(v.push(N),N==="\\"){if(b++,b<r.length)v.push(r[b])}else if(N===z){b++;break}b++}continue}if($==="/"&&b+1<r.length&&r[b+1]==="/"){b+=2;while(b<r.length&&r[b]!==`
|
|
17
17
|
`)b++;continue}if($==="/"&&b+1<r.length&&r[b+1]==="*"){b+=2;while(b<r.length){if(r[b]==="*"&&b+1<r.length&&r[b+1]==="/"){b+=2;break}b++}continue}v.push($),b++}let U=v.join("");for(let $=0;$<10;$++){let z=U;if(U=U.replace(/,(\s*[\]}])/g,"$1"),U===z)break}return U}function lO(r){try{let v=iO(r);return JSON.parse(v)}catch{return}}function oO(){return x0(u0(),".config","opencode",yO)}function tO(r){let v=r??process.cwd();return F0(v,".opencode",yO)}async function c0(r){try{return await M0(r),!0}catch{return!1}}async function i1(r){if(!await c0(r))return;try{let v=await D0(r,"utf-8");return lO(v)}catch{return}}function e$(r,v){let b={...r};for(let U of Object.keys(v)){let $=v[U],z=b[U];if($===void 0)continue;if(fO($)&&fO(z))b[U]=e$(z,$);else b[U]=$}return b}function fO(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)}async function l1(r={}){let v=[],b="defaults",U={},$=oO(),z=await i1($);if(z)U=e$(U,z),v.push(`user:${$}`),b="user";let N=tO(r.projectDir),_=await i1(N);if(_)U=e$(U,_),v.push(`project:${N}`),b="project";if(r.cliOptions&&Object.keys(r.cliOptions).length>0)U=e$(U,r.cliOptions),v.push("cli:inline"),b="cli";return{config:U,sources:v,effectiveSource:b}}var yO="omo-meta-governor.jsonc";var o1=()=>{};var vk={};wr(vk,{triggerWorkflow:()=>y0,pollRunUntilComplete:()=>f0,getLatestRunForSha:()=>h0,getFailedLogs:()=>i0,DEFAULT_CI_MONITOR_CONFIG:()=>C0});import{execFileSync as n0}from"node:child_process";function a$(r,v=1e4){try{return n0("gh",r,{encoding:"utf-8",timeout:v,stdio:["ignore","pipe","pipe"],windowsHide:!0}).toString().replace(/\r\n/g,`
|
|
18
18
|
`).trim()}catch{return null}}function h0(r){let v=a$(["run","list","--limit","1","--commit",r,"--json","databaseId,status,conclusion,displayTitle,headSha,url"],1e4);if(!v)return null;try{return JSON.parse(v)[0]??null}catch{return null}}function f0(r,v){let b=Date.now(),U="",$=a$(["run","view",String(r),"--json","status,conclusion,url,headSha,displayTitle"],1e4);if(!$)return null;let z;try{z=JSON.parse($)}catch{return null}while((z.status==="queued"||z.status==="in_progress"||z.status==="waiting"||z.status==="requested")&&Date.now()-b<v.maxWaitMs){let N=Date.now()+v.pollIntervalMs;while(Date.now()<N);let _=a$(["run","view",String(r),"--json","status,conclusion,url,headSha,displayTitle"],1e4);if(!_)return null;try{z=JSON.parse(_)}catch{return null}}return z}function y0(r,v){let b=a$(["workflow","run",r,"--ref",v],15000);return null}function i0(r,v=4000){let b=a$(["run","view",String(r),"--log-failed"],30000);if(!b)return"";if(b.length<=v)return b;return b.slice(0,v)+`
|
|
19
19
|
|
|
@@ -217,5 +217,5 @@ Current decision: ${d.message}`;D.recentInterventionTexts=[...u,`[${d.action}] $
|
|
|
217
217
|
`)}function jj(r,v,b=d0){if(r==="own"||r==="third-party")return r;try{let U=b("gh repo view --json isFork,parent",{cwd:v,stdio:"pipe",timeout:1e4}),$=JSON.parse(String(U));if($.isFork===!0&&$.parent!==null&&$.parent!==void 0)return"third-party";return"own"}catch{try{let U=b("git remote -v",{cwd:v,stdio:"pipe",timeout:1e4});if(String(U).split(`
|
|
218
218
|
`).some((z)=>/^\s*upstream\s+/.test(z)))return"third-party"}catch{}return"own"}}var Kj=_k();function L4(r,v){return Kj(r,v)}L4.id="omo-meta-governor";L4.server=L4;var aW=L4;export{aW as default};
|
|
219
219
|
|
|
220
|
-
//# debugId=
|
|
220
|
+
//# debugId=AE46E4CEA3A0EEBC64756E2164756E21
|
|
221
221
|
//# sourceMappingURL=index.js.map
|