@reddb-io/red-skills 2.61.2 → 2.63.0
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/code-nav.bundle.min.mjs +1 -1
- package/dist/dev.bundle.min.mjs +504 -498
- package/dist/memory.bundle.min.mjs +1 -1
- package/dist/rsp.bundle.min.mjs +108 -113
- package/package.json +1 -1
|
@@ -6581,7 +6581,7 @@ Usage:
|
|
|
6581
6581
|
${n} archive --candidate <json> [--root <dir>] [--archive-dir <rel>]
|
|
6582
6582
|
${n} restore <name> [--root <dir>] [--archive-dir <rel>]`}function Hx(n){return dYn(typeof n.root=="string"?n.root:process.cwd())}function Pot(n){return typeof n["archive-dir"]=="string"?n["archive-dir"]:void 0}async function fj(n){let a=await Jo(n);return a?a.mode!=="graph"?{ok:!1,message:`curate: skill telemetry needs graph mode (this project is "${a.mode}") \u2014 run \`${Lwe}\``}:oZ(a)?{ok:!0}:{ok:!1,message:`curate: skill telemetry is not enabled here \u2014 run \`${Lwe}\``}:{ok:!1,message:`curate: memory is not initialized here \u2014 run \`${Lwe}\``}}function mYn(){let n=oYn(GYn(import.meta.url));return n.includes("dist/curate-skill")||n.endsWith("dist/curate-skill")?Dot(n,"..","cli.js"):Dot(n,"..","cli.ts")}async function uYn(n,a){let i=["curate","skills","--json"];a!==void 0&&i.push("--stale-days",String(a));let d=mYn(),h=d.endsWith(".ts")?jot(process.execPath,["--import","tsx",d,...i,"--root",n],{encoding:"utf8"}):jot(process.execPath,[d,...i,"--root",n],{encoding:"utf8"}),g=h.status??1;if(g!==0)throw new Error(`memory curate skills exited ${g}`);return Bot(h.stdout??"")}function bYn(n){return typeof n.flags["stale-days"]=="string"?Number(n.flags["stale-days"]):void 0}async function qot(n,a){return(a.loadCuratorReport??uYn)(Hx(n.flags),bYn(n))}async function pYn(n){let a=Hx(n.flags),i=await fj(a);return i.ok?(console.log("curate: skill telemetry is enabled \u2014 ready to curate"),0):(console.error(i.message),2)}async function ZYn(n,a){let i=Hx(n.flags),d=await fj(i);if(!d.ok)return console.error(d.message),2;let u;try{u=await qot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{candidates:h,byCategory:g,filtered:f}=kwe(u);return console.log(JSON.stringify({candidates:h,byCategory:g,filtered:f,totals:{totalSkills:u.totalSkills,curatableSkills:u.curatableSkills,readOnlySkills:u.readOnlySkills}},null,2)),0}async function hYn(n,a){let i=Hx(n.flags),d=await fj(i);if(!d.ok)return console.error(d.message),2;let u;try{u=await qot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{byCategory:h}=kwe(u);if(Awe(h)===0)return console.error("curate: no candidates \u2014 no issue filed"),0;let g=typeof n.flags.label=="string"?n.flags.label:void 0,f=await Tot({byCategory:h,totals:{totalSkills:u.totalSkills,curatableSkills:u.curatableSkills,readOnlySkills:u.readOnlySkills},generatedAt:u.generatedAt},{cwd:i,label:g});return console.log(`curate: filed background issue \u2014 ${f.output||f.title}`),0}async function WYn(n){let a=Hx(n.flags),i=await fj(a);if(!i.ok)return console.error(i.message),2;let d=n.flags.candidate;if(typeof d!="string")return console.error("curate archive: --candidate <json> is required"),2;let u;try{u=JSON.parse(d)}catch(g){return console.error(`curate archive: invalid --candidate JSON: ${g.message}`),2}let h=await Uot(u,{rootDir:a,archiveDir:Pot(n.flags)});return h.ok?(console.log(`curate: archived "${h.receipt.name}" \u2192 ${h.receipt.archiveRoot} (${h.receipt.files.length} file(s), manifest at ${h.receipt.manifestPath})`),0):(console.error(`curate archive: refused \u2014 ${h.rejection.reason}: ${h.rejection.detail}`),3)}async function NYn(n){let a=Hx(n.flags),i=await fj(a);if(!i.ok)return console.error(i.message),2;let d=n.positional[0];if(!d)return console.error("curate restore: skill name is required"),2;let u=await Mot(d,{rootDir:a,archiveDir:Pot(n.flags)});return console.log(`curate: restored "${u.name}" \u2192 ${u.restoredRoot} (${u.files.length} file(s) hash-verified)`),0}async function $ot(n,a={}){switch(n.command){case"check":return pYn(n);case"list":return ZYn(n,a);case"background":return hYn(n,a);case"archive":return WYn(n);case"restore":return NYn(n);case void 0:case"--help":case"-h":return console.log(Kot(a.usageCommand)),0;default:return console.error(`unknown curate subcommand: ${n.command}
|
|
6583
6583
|
|
|
6584
|
-
${Kot(a.usageCommand)}`),2}}function edt(n){let a={app:n,version:YYn(Qx("__RED_BUILD_VERSION__",()=>"2.
|
|
6584
|
+
${Kot(a.usageCommand)}`),2}}function edt(n){let a={app:n,version:YYn(Qx("__RED_BUILD_VERSION__",()=>"2.63.0")??"0.0.0-dev"),gitSha:Qx("__RED_BUILD_GIT_SHA__",()=>"02024a092c0721872879d105a04f0fa23f1a4683")??"unknown",buildTime:Qx("__RED_BUILD_TIME__",()=>"2026-07-17T11:14:17-03:00")??"unknown",bundleAsset:Qx("__RED_BUNDLE_ASSET__",()=>"memory.bundle.min.mjs")??"unknown"},i=Qx("__REDDB_SDK_VERSION__",()=>"1.23.1"),d=Qx("__REDDB_BINARY_TAG__",()=>"v1.23.1");return i&&(a.reddbSdkVersion=i),d&&(a.reddbBinaryTag=d),a}function YYn(n){return n.startsWith("v")?n.slice(1):n}function tdt(n){return`${n.app} ${n.version} ${n.gitSha}`}function Qx(n,a){try{let i=a();return typeof i=="string"&&i.length>0?i:void 0}catch{return process.env[n.replace(/^__|__$/g,"")]}}var ndt=`memory \u2014 governed operational memory for code agents
|
|
6585
6585
|
|
|
6586
6586
|
Common workflows:
|
|
6587
6587
|
remember one fact memory store "Decision: ..."
|