@reddb-io/red-skills 2.57.0 → 2.57.2
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 +459 -449
- package/dist/memory.bundle.min.mjs +1 -1
- package/dist/rsp.bundle.min.mjs +80 -80
- package/package.json +1 -1
|
@@ -6577,7 +6577,7 @@ Usage:
|
|
|
6577
6577
|
${n} archive --candidate <json> [--root <dir>] [--archive-dir <rel>]
|
|
6578
6578
|
${n} restore <name> [--root <dir>] [--archive-dir <rel>]`}function gx(n){return NNn(typeof n.root=="string"?n.root:process.cwd())}function Yot(n){return typeof n["archive-dir"]=="string"?n["archive-dir"]:void 0}async function hj(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 \`${Vwe}\``}:sZ(a)?{ok:!0}:{ok:!1,message:`curate: skill telemetry is not enabled here \u2014 run \`${Vwe}\``}:{ok:!1,message:`curate: memory is not initialized here \u2014 run \`${Vwe}\``}}function VNn(){let n=WNn(YNn(import.meta.url));return n.includes("dist/curate-skill")||n.endsWith("dist/curate-skill")?Wot(n,"..","cli.js"):Wot(n,"..","cli.ts")}async function gNn(n,a){let i=["curate","skills","--json"];a!==void 0&&i.push("--stale-days",String(a));let d=VNn(),h=d.endsWith(".ts")?hot(process.execPath,["--import","tsx",d,...i,"--root",n],{encoding:"utf8"}):hot(process.execPath,[d,...i,"--root",n],{encoding:"utf8"}),y=h.status??1;if(y!==0)throw new Error(`memory curate skills exited ${y}`);return uot(h.stdout??"")}function yNn(n){return typeof n.flags["stale-days"]=="string"?Number(n.flags["stale-days"]):void 0}async function Vot(n,a){return(a.loadCuratorReport??gNn)(gx(n.flags),yNn(n))}async function RNn(n){let a=gx(n.flags),i=await hj(a);return i.ok?(console.log("curate: skill telemetry is enabled \u2014 ready to curate"),0):(console.error(i.message),2)}async function vNn(n,a){let i=gx(n.flags),d=await hj(i);if(!d.ok)return console.error(d.message),2;let b;try{b=await Vot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{candidates:h,byCategory:y,filtered:w}=Nwe(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 FNn(n,a){let i=gx(n.flags),d=await hj(i);if(!d.ok)return console.error(d.message),2;let b;try{b=await Vot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{byCategory:h}=Nwe(b);if(Ywe(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 Zot({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 XNn(n){let a=gx(n.flags),i=await hj(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 mot(b,{rootDir:a,archiveDir:Yot(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 fNn(n){let a=gx(n.flags),i=await hj(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 bot(d,{rootDir:a,archiveDir:Yot(n.flags)});return console.log(`curate: restored "${b.name}" \u2192 ${b.restoredRoot} (${b.files.length} file(s) hash-verified)`),0}async function got(n,a={}){switch(n.command){case"check":return RNn(n);case"list":return vNn(n,a);case"background":return FNn(n,a);case"archive":return XNn(n);case"restore":return fNn(n);case void 0:case"--help":case"-h":return console.log(Not(a.usageCommand)),0;default:return console.error(`unknown curate subcommand: ${n.command}
|
|
6579
6579
|
|
|
6580
|
-
${Not(a.usageCommand)}`),2}}function yot(n){let a={app:n,version:wNn(yx("__RED_BUILD_VERSION__",()=>"2.57.
|
|
6580
|
+
${Not(a.usageCommand)}`),2}}function yot(n){let a={app:n,version:wNn(yx("__RED_BUILD_VERSION__",()=>"2.57.2")??"0.0.0-dev"),gitSha:yx("__RED_BUILD_GIT_SHA__",()=>"50513f32fbfe148d55f35746bfbf9bbe990e5809")??"unknown",buildTime:yx("__RED_BUILD_TIME__",()=>"2026-07-15T02:20:33-03:00")??"unknown",bundleAsset:yx("__RED_BUNDLE_ASSET__",()=>"memory.bundle.min.mjs")??"unknown"},i=yx("__REDDB_SDK_VERSION__",()=>"1.23.1"),d=yx("__REDDB_BINARY_TAG__",()=>"v1.23.1");return i&&(a.reddbSdkVersion=i),d&&(a.reddbBinaryTag=d),a}function wNn(n){return n.startsWith("v")?n.slice(1):n}function Rot(n){return`${n.app} ${n.version} ${n.gitSha}`}function yx(n,a){try{let i=a();return typeof i=="string"&&i.length>0?i:void 0}catch{return process.env[n.replace(/^__|__$/g,"")]}}var vot=`memory \u2014 governed operational memory for code agents
|
|
6581
6581
|
|
|
6582
6582
|
Common workflows:
|
|
6583
6583
|
remember one fact memory store "Decision: ..."
|