@reddb-io/red-skills 2.56.2 → 2.56.3
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 +197 -197
- package/dist/memory.bundle.min.mjs +1 -1
- package/dist/rsp.bundle.min.mjs +91 -90
- package/package.json +1 -1
|
@@ -6565,7 +6565,7 @@ Usage:
|
|
|
6565
6565
|
${n} archive --candidate <json> [--root <dir>] [--archive-dir <rel>]
|
|
6566
6566
|
${n} restore <name> [--root <dir>] [--archive-dir <rel>]`}function fx(n){return UNn(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 \`${Rwe}\``}:sZ(a)?{ok:!0}:{ok:!1,message:`curate: skill telemetry is not enabled here \u2014 run \`${Rwe}\``}:{ok:!1,message:`curate: memory is not initialized here \u2014 run \`${Rwe}\``}}function BNn(){let n=ONn(MNn(import.meta.url));return n.includes("dist/curate-skill")||n.endsWith("dist/curate-skill")?Fot(n,"..","cli.js"):Fot(n,"..","cli.ts")}async function SNn(n,a){let i=["curate","skills","--json"];a!==void 0&&i.push("--stale-days",String(a));let d=BNn(),h=d.endsWith(".ts")?vot(process.execPath,["--import","tsx",d,...i,"--root",n],{encoding:"utf8"}):vot(process.execPath,[d,...i,"--root",n],{encoding:"utf8"}),y=h.status??1;if(y!==0)throw new Error(`memory curate skills exited ${y}`);return got(h.stdout??"")}function TNn(n){return typeof n.flags["stale-days"]=="string"?Number(n.flags["stale-days"]):void 0}async function wot(n,a){return(a.loadCuratorReport??SNn)(fx(n.flags),TNn(n))}async function jNn(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 DNn(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 wot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{candidates:h,byCategory:y,filtered:w}=gwe(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 KNn(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 wot(n,a)}catch(J){return console.error(`curate: ${J.message}`),1}let{byCategory:h}=gwe(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 Rot({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 PNn(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 Yot(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 qNn(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 Vot(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 Hot(n,a={}){switch(n.command){case"check":return jNn(n);case"list":return DNn(n,a);case"background":return KNn(n,a);case"archive":return PNn(n);case"restore":return qNn(n);case void 0:case"--help":case"-h":return console.log(Xot(a.usageCommand)),0;default:return console.error(`unknown curate subcommand: ${n.command}
|
|
6567
6567
|
|
|
6568
|
-
${Xot(a.usageCommand)}`),2}}function Qot(n){let a={app:n,version:$Nn(wx("__RED_BUILD_VERSION__",()=>"2.56.
|
|
6568
|
+
${Xot(a.usageCommand)}`),2}}function Qot(n){let a={app:n,version:$Nn(wx("__RED_BUILD_VERSION__",()=>"2.56.3")??"0.0.0-dev"),gitSha:wx("__RED_BUILD_GIT_SHA__",()=>"0cf438dc6d4f4938d0884e3cec60f7c102af7d61")??"unknown",buildTime:wx("__RED_BUILD_TIME__",()=>"2026-07-14T17:38:06-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 $Nn(n){return n.startsWith("v")?n.slice(1):n}function Eot(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 _ot=`memory \u2014 governed operational memory for code agents
|
|
6569
6569
|
|
|
6570
6570
|
Common workflows:
|
|
6571
6571
|
remember one fact memory store "Decision: ..."
|