Lines 1-23javascript
1import{createRequire as Hz}from"node:module";var{defineProperty:u4,getOwnPropertyNames:Qz,getOwnPropertyDescriptor:Yz}=Object,Gz=Object.prototype.hasOwnProperty;function Az(r){return this[r]}var Lz=(r)=>{var v=(C_??=new WeakMap).get(r),b;if(v)return v;if(v=u4({},"__esModule",{value:!0}),r&&typeof r==="object"||typeof r==="function"){for(var I of Qz(r))if(!Gz.call(v,I))u4(v,I,{get:Az.bind(r,I),enumerable:!(b=Yz(r,I))||b.enumerable})}return C_.set(r,v),v},C_;var Ez=(r)=>r;function qz(r,v){this[r]=Ez.bind(null,v)}var Or=(r,v)=>{for(var b in v)u4(r,b,{get:v[b],enumerable:!0,configurable:!0,set:qz. ...
2`}catch{_=JSON.stringify({timestamp:U.timestamp,level:r,message:v,data:"[unserializable]"})+`
3`}try{Vn(a,_)}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){Cw(r,v,b)}function Dn(r){Cw(r.level,r.message,r.data,r.event,r.sessionID)}function Bn(){try{if(U4(a))return hw(a).size}catch{}return 0}function Fn(){let r=0;for(let v=1;v<=G_;v++)if(U4(`${a}.${v}`))r=v;else break;return r}var a,En=10485760,G_=5;var I4=f_(()=>{a=Gn(Ln(),".config","opencode","meta-governor.log")});var jz={};Or(jz,{stripJsoncComments:()=>L_,parseJsonc:()=>E_,loadMetaGovernorConfig:()=>uz,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=i_("python3",["-m","graphify",".","--no-viz","--watch"],{cwd:r,stdio:"ignore",detached:!0});I.unref(),ar.set(b,{process:I,tool:v}),I.on("exit",()=>{ar.delete(b)})}catch{}}function Rz(r){for(let[v,b]of ar)if(!r||v.startsWith(r)){try{b.process.kill("SIGTERM")}catch{}setTimeout(()=>{try{b.process.kill("SIGKILL")}catch{}},2000).unref(),ar.delete(v)}}async function y$(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.