Lines 1-23javascript
1import{createRequire as $w}from"node:module";var{defineProperty:H4,getOwnPropertyNames:o1,getOwnPropertyDescriptor:t1}=Object,d1=Object.prototype.hasOwnProperty;function p1(r){return this[r]}var e1=(r)=>{var v=(_z??=new WeakMap).get(r),b;if(v)return v;if(v=H4({},"__esModule",{value:!0}),r&&typeof r==="object"||typeof r==="function"){for(var I of o1(r))if(!d1.call(v,I))H4(v,I,{get:p1.bind(r,I),enumerable:!(b=t1(r,I))||b.enumerable})}return _z.set(r,v),v},_z,a1=(r,v)=>()=>(v||r((v={exports:{}}).exports,v),v.exports);var s1=(r)=>r;function rw(r,v){this[r]=s1.bind(null,v)}var Qr=(r,v)=>{for(var b ...
2`}catch{N=JSON.stringify({timestamp:z.timestamp,level:r,message:v,data:"[unserializable]"})+`
3`}try{oj(vr,N)}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 f(r,v,b){z1(r,v,b)}function IJ(r){z1(r.level,r.message,r.data,r.event,r.sessionID)}function _J(){try{if(g4(vr))return I1(vr).size}catch{}return 0}function zJ(){let r=0;for(let v=1;v<=R_;v++)if(g4(`${vr}.${v}`))r=v;else break;return r}var rJ,$J,vr,vJ=10485760,R_=5;var P4=zz(()=>{rJ=[/eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/g,/sk-(?:proj-|svc-|)[a-zA-Z0-9]{20,}/g,/pk-[a-zA-Z0-9]{20,}/g,/ghp_[a-zA-Z0-9]{36,}/ ...
4`)b++;continue}if($==="/"&&b+1<r.length&&r[b+1]==="*"){b+=2;while(b<r.length){if(r[b]==="*"&&b+1<r.
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=Nz("python3",["-m","graphify",".","--no-viz","--watch"],{cwd:r,stdio:"ignore",detached:!0});I.unref(),_$.set(b,{process:I,tool:v}),I.on("exit",()=>{_$.delete(b)})}catch{}}function ww(r){for(let[v,b]of _$)if(!r||v.startsWith(r)){try{b.process.kill("SIGTERM")}catch{}setTimeout(()=>{try{b.process.kill("SIGKILL")}catch{}},2000).unref(),_$.delete(v)}}async function $v(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
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.