Lines 1-23javascript
1import{createRequire as Qw}from"node:module";var{defineProperty:k4,getOwnPropertyNames:Jw,getOwnPropertyDescriptor:cw}=Object,Kw=Object.prototype.hasOwnProperty;function Xw(r){return this[r]}var Sw=(r)=>{var v=(hg??=new WeakMap).get(r),b;if(v)return v;if(v=k4({},"__esModule",{value:!0}),r&&typeof r==="object"||typeof r==="function"){for(var I of Jw(r))if(!Kw.call(v,I))k4(v,I,{get:Xw.bind(r,I),enumerable:!(b=cw(r,I))||b.enumerable})}return hg.set(r,v),v},hg;var Ww=(r)=>r;function Vw(r,v){this[r]=Ww.bind(null,v)}var Nr=(r,v)=>{for(var b in v)k4(r,b,{get:v[b],enumerable:!0,configurable:!0,set:Vw. ...
2`}catch{g=JSON.stringify({timestamp:U.timestamp,level:r,message:v,data:"[unserializable]"})+`
3`}try{jk(a,g)}catch{}if(r==="error")console.error(`[meta-governor] ${v}`);else if(r==="warn")console.warn(`[meta-governor] ${v}`);else console.log(`[meta-governor] ${v}`)}function o(r,v,b){hn(r,v,b)}function Yk(r){hn(r.level,r.message,r.data,r.event,r.sessionID)}function Gk(){try{if(U4(a))return Tn(a).size}catch{}return 0}function Ak(){let r=0;for(let v=1;v<=Gg;v++)if(U4(`${a}.${v}`))r=v;else break;return r}var a,Wk=10485760,Gg=5;var I4=Cg(()=>{a=Kk(Sk(),".config","opencode","meta-governor.log")});var Nw={};Nr(Nw,{stripJsoncComments:()=>Lg,parseJsonc:()=>Dg,loadMetaGovernorConfig:()=>ww,loadJs ...
4`)b++;continue}if($==="/"&&b+1<r.length&&r[b+1]==="*"){b+=2;while(b<r.length){if(r[b]==="*"&&b+1<r.length
5 const {execSync} = require("child_process");
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L3 HighRuntime Package Install
Package source invokes a package manager install command at runtime.
dist/index.jsView on unpkg · L3 7 try { execSync("npx codegraph update 2>/dev/null", {cwd: ${JSON.stringify(r)}, stdio: "ignore"}); }
8 catch(e) { /* best effort */ }
11 setInterval(run, 30_000);
12 `],{stdio:"ignore",detached:!0});else I=ig("python3",["-m","graphify",".","--no-viz","--watch"],{cwd:r,stdio:"ignore",detached:!0});I.unref(),er.set(b,{process:I,tool:v}),I.on("exit",()=>{er.delete(b)})}catch{}}function qw(r){for(let[v,b]of er)if(!r||v.startsWith(r)){try{b.process.kill("SIGTERM")}catch{}setTimeout(()=>{try{b.process.kill("SIGKILL")}catch{}},2000).unref(),er.delete(v)}}async function o$(r={enabled:!0,watch:!1,autoInstall:!0,installTimeoutMs:60000}){let v=[],b=r.projectDir??process.cwd();if(!r.enabled)return{attempted:!1,codes:["disabled"],availability:{codegraph:!1,gr ...
13`)[0]??"").match(/graphifyy\s*\(?([0-9]+\.[0-9]+\.[0-9]+[^\s)]*)/);if(I)return I[1]}catch{}try{let b=r(`python3 -c "import urllib.request, json; d=json.load(urllib.request.urlopen('https://pypi.org/pypi/graphifyy/json')); print(d['info']['version'])"`,{stdio:["ignore"
14CREATE TABLE IF NOT EXISTS _meta (
19CREATE TABLE IF NOT EXISTS entries (
21 kind TEXT NOT NULL CHECK(kind IN ('lesson', 'memory', 'crystal')),
22 title TEXT NOT NULL DEFAULT '',
23 content TEXT NOT NULL,
Long lines were clipped for display.