@reddb-io/red-skills 2.53.0 → 2.53.1
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 +313 -313
- package/dist/memory.bundle.min.mjs +1 -1
- package/dist/rsp.bundle.min.mjs +84 -81
- package/package.json +1 -1
|
@@ -6563,7 +6563,7 @@ Usage:
|
|
|
6563
6563
|
${n} archive --candidate <json> [--root <dir>] [--archive-dir <rel>]
|
|
6564
6564
|
${n} restore <name> [--root <dir>] [--archive-dir <rel>]`}function fx(n){return kNn(typeof n.root=="string"?n.root:process.cwd())}function Fot(n){return typeof n["archive-dir"]=="string"?n["archive-dir"]:void 0}async function vj(n){let a=await Co(n);return a?a.mode!=="graph"?{ok:!1,message:`curate: skill telemetry needs graph mode (this project is "${a.mode}") \u2014 run \`${ywe}\``}:sZ(a)?{ok:!0}:{ok:!1,message:`curate: skill telemetry is not enabled here \u2014 run \`${ywe}\``}:{ok:!1,message:`curate: memory is not initialized here \u2014 run \`${ywe}\``}}function LNn(){let n=JNn(ANn(import.meta.url));return n.includes("dist/curate-skill")||n.endsWith("dist/curate-skill")?Rot(n,"..","cli.js"):Rot(n,"..","cli.ts")}async function xNn(n,a){let i=["curate","skills","--json"];a!==void 0&&i.push("--stale-days",String(a));let d=LNn(),h=d.endsWith(".ts")?yot(process.execPath,["--import","tsx",d,...i,"--root",n],{encoding:"utf8"}):yot(process.execPath,[d,...i,"--root",n],{encoding:"utf8"}),y=h.status??1;if(y!==0)throw new Error(`memory curate skills exited ${y}`);return Yot(h.stdout??"")}function zNn(n){return typeof n.flags["stale-days"]=="string"?Number(n.flags["stale-days"]):void 0}async function Xot(n,a){return(a.loadCuratorReport??xNn)(fx(n.flags),zNn(n))}async function ONn(n){let a=fx(n.flags),i=await vj(a);return i.ok?(console.log("curate: skill telemetry is enabled \u2014 ready to curate"),0):(console.error(i.message),2)}async function UNn(n,a){let i=fx(n.flags),d=await vj(i);if(!d.ok)return console.error(d.message),2;let b;try{b=await Xot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{candidates:h,byCategory:y,filtered:w}=Vwe(b);return console.log(JSON.stringify({candidates:h,byCategory:y,filtered:w,totals:{totalSkills:b.totalSkills,curatableSkills:b.curatableSkills,readOnlySkills:b.readOnlySkills}},null,2)),0}async function MNn(n,a){let i=fx(n.flags),d=await vj(i);if(!d.ok)return console.error(d.message),2;let b;try{b=await Xot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{byCategory:h}=Vwe(b);if(gwe(h)===0)return console.error("curate: no candidates \u2014 no issue filed"),0;let y=typeof n.flags.label=="string"?n.flags.label:void 0,w=await got({byCategory:h,totals:{totalSkills:b.totalSkills,curatableSkills:b.curatableSkills,readOnlySkills:b.readOnlySkills},generatedAt:b.generatedAt},{cwd:i,label:y});return console.log(`curate: filed background issue \u2014 ${w.output||w.title}`),0}async function BNn(n){let a=fx(n.flags),i=await vj(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 b;try{b=JSON.parse(d)}catch(y){return console.error(`curate archive: invalid --candidate JSON: ${y.message}`),2}let h=await Wot(b,{rootDir:a,archiveDir:Fot(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 SNn(n){let a=fx(n.flags),i=await vj(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 b=await Not(d,{rootDir:a,archiveDir:Fot(n.flags)});return console.log(`curate: restored "${b.name}" \u2192 ${b.restoredRoot} (${b.files.length} file(s) hash-verified)`),0}async function fot(n,a={}){switch(n.command){case"check":return ONn(n);case"list":return UNn(n,a);case"background":return MNn(n,a);case"archive":return BNn(n);case"restore":return SNn(n);case void 0:case"--help":case"-h":return console.log(vot(a.usageCommand)),0;default:return console.error(`unknown curate subcommand: ${n.command}
|
|
6565
6565
|
|
|
6566
|
-
${vot(a.usageCommand)}`),2}}function wot(n){let a={app:n,version:TNn(wx("__RED_BUILD_VERSION__",()=>"2.53.
|
|
6566
|
+
${vot(a.usageCommand)}`),2}}function wot(n){let a={app:n,version:TNn(wx("__RED_BUILD_VERSION__",()=>"2.53.1")??"0.0.0-dev"),gitSha:wx("__RED_BUILD_GIT_SHA__",()=>"edb9247168a7138eda26e59f5fe75c1d7e3cadbd")??"unknown",buildTime:wx("__RED_BUILD_TIME__",()=>"2026-07-13T14:55:49-03:00")??"unknown",bundleAsset:wx("__RED_BUNDLE_ASSET__",()=>"memory.bundle.min.mjs")??"unknown"},i=wx("__REDDB_SDK_VERSION__",()=>"1.23.1"),d=wx("__REDDB_BINARY_TAG__",()=>"v1.23.1");return i&&(a.reddbSdkVersion=i),d&&(a.reddbBinaryTag=d),a}function TNn(n){return n.startsWith("v")?n.slice(1):n}function Hot(n){return`${n.app} ${n.version} ${n.gitSha}`}function wx(n,a){try{let i=a();return typeof i=="string"&&i.length>0?i:void 0}catch{return process.env[n.replace(/^__|__$/g,"")]}}var Qot=`memory \u2014 governed operational memory for code agents
|
|
6567
6567
|
|
|
6568
6568
|
Common workflows:
|
|
6569
6569
|
remember one fact memory store "Decision: ..."
|