@kitelev/exocortex-cli 16.198.2 → 16.198.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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// @kitelev/exocortex-cli v16.198.
|
|
2
|
+
// @kitelev/exocortex-cli v16.198.3
|
|
3
3
|
// CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
|
|
4
4
|
// License: MIT
|
|
5
5
|
|
|
@@ -623,7 +623,7 @@ Duplicate bindings (${r.duplicates.length}) \u2014 uid claimed by >1 test (warni
|
|
|
623
623
|
Skipped floor check for ${r.unknownPriority} requirement(s) with unparseable priority (fail-open).`),r.clean?e==="hard"&&!r.rampReady?console.error(`
|
|
624
624
|
FAIL (hard gate): ramp not ready \u2014 ${r.p0Orphans} P0 requirement(s) unbound`+(r.p0Total===0?" (no P0 requirements found)":"")+"."):console.log(`
|
|
625
625
|
OK: no hard findings (dangling tags + binding-class floor are clean).`):console.error(`
|
|
626
|
-
FAIL: ${r.dangling.length} dangling + ${r.floorViolations.length} floor violation(s) + ${r.activeViolations.length} active-requirement invariant violation(s) + ${r.danglingEvidence.length} dangling evidence link(s).`)}a(Vue,"renderText");function que(r,e,t){return!r.clean||t&&r.orphans.length>0||e==="hard"&&!r.rampReady}a(que,"isHardFail");function M$(){return new Ce("audit").description("Audit requirement\u2194test traceability: orphans, dangling @req tags, duplicate bindings, binding-class floor, coverage, P0 ramp-readiness").requiredOption("--reqs <path>","Directory tree containing req__Requirement assets (a vault or a reqs assetspace clone)").option("--tests <path>","Test-corpus root scanned for @req:<uid> tags",".").option("--output <type>","Response format: text|json","text").option("--strict","Also exit 1 on orphan requirements",!1).option("--gate <mode>","Gate mode: soft (warn only on hard findings) | hard (also block when the P0 checklist is not ramp-ready)","soft").action(async r=>{let e=r.output??"text";we.setFormat(e);let t=r.gate==="hard"?"hard":"soft";try{let n=(0,Qa.resolve)(r.reqs);if(!(0,Xa.existsSync)(n)||!(0,Xa.statSync)(n).isDirectory())throw new Xe(n);let i=(0,Qa.resolve)(r.tests??".");if(!(0,Xa.existsSync)(i)||!(0,Xa.statSync)(i).isDirectory())throw new Xe(i);let[s,o]=await Promise.all([Mue(n),$ue(i)]),c=Uue(s,o);e==="json"?console.log(JSON.stringify({...c,gate:t},null,2)):Vue(c,t),que(c,t,r.strict===!0)&&(process.exitCode=1)}catch(n){we.handle(n)}})}a(M$,"requirementsAuditCommand");function j$(){let r=new Ce("requirements").description("Requirements-management tooling (RFC 0003): traceability checker");return r.addCommand(M$()),r}a(j$,"requirementsCommand");function $$(){let r=new Ce("cache").description("SPARQL query-result cache maintenance (clear / stats). For read-after-write, prefer `query --no-cache` or a short `--cache-ttl`.");return r.addCommand(Gue()),r.addCommand(Wue()),r}a($$,"cacheCommand");function Gue(){return new Ce("clear").description("Remove all cached SPARQL query results from disk").option("--output <format>","Output format: text | json","text").action(async r=>{let e=new Ho,t=await e.getCacheStats();if(await e.clear(),r.output==="json"){console.log(JSON.stringify({success:!0,data:{action:"clear",cacheDir:e.getCacheDir(),clearedEntries:t.entryCount,freedBytes:t.totalSizeBytes}}));return}console.log(`\u{1F5D1}\uFE0F Cleared ${t.entryCount} cached query result(s) (${U$(t.totalSizeBytes)} freed) from ${e.getCacheDir()}`)})}a(Gue,"cacheClearCommand");function Wue(){return new Ce("stats").description("Show query-result cache entry count and total size").option("--output <format>","Output format: text | json","text").action(async r=>{let e=new Ho,t=await e.getCacheStats();if(r.output==="json"){console.log(JSON.stringify({success:!0,data:{cacheDir:e.getCacheDir(),entryCount:t.entryCount,totalSizeBytes:t.totalSizeBytes}}));return}console.log(`\u{1F4CA} SPARQL query-result cache: ${e.getCacheDir()}`),console.log(` Entries: ${t.entryCount.toLocaleString()}`),console.log(` Size: ${U$(t.totalSizeBytes)}`)})}a(Wue,"cacheStatsCommand");function U$(r){return r<1024?`${r} B`:r<1024*1024?`${(r/1024).toFixed(1)} KB`:`${(r/(1024*1024)).toFixed(1)} MB`}a(U$,"formatBytes");function w_(r){let e=new Ce;return e.name("exocortex").description("CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more").version(r??"16.198.
|
|
626
|
+
FAIL: ${r.dangling.length} dangling + ${r.floorViolations.length} floor violation(s) + ${r.activeViolations.length} active-requirement invariant violation(s) + ${r.danglingEvidence.length} dangling evidence link(s).`)}a(Vue,"renderText");function que(r,e,t){return!r.clean||t&&r.orphans.length>0||e==="hard"&&!r.rampReady}a(que,"isHardFail");function M$(){return new Ce("audit").description("Audit requirement\u2194test traceability: orphans, dangling @req tags, duplicate bindings, binding-class floor, coverage, P0 ramp-readiness").requiredOption("--reqs <path>","Directory tree containing req__Requirement assets (a vault or a reqs assetspace clone)").option("--tests <path>","Test-corpus root scanned for @req:<uid> tags",".").option("--output <type>","Response format: text|json","text").option("--strict","Also exit 1 on orphan requirements",!1).option("--gate <mode>","Gate mode: soft (warn only on hard findings) | hard (also block when the P0 checklist is not ramp-ready)","soft").action(async r=>{let e=r.output??"text";we.setFormat(e);let t=r.gate==="hard"?"hard":"soft";try{let n=(0,Qa.resolve)(r.reqs);if(!(0,Xa.existsSync)(n)||!(0,Xa.statSync)(n).isDirectory())throw new Xe(n);let i=(0,Qa.resolve)(r.tests??".");if(!(0,Xa.existsSync)(i)||!(0,Xa.statSync)(i).isDirectory())throw new Xe(i);let[s,o]=await Promise.all([Mue(n),$ue(i)]),c=Uue(s,o);e==="json"?console.log(JSON.stringify({...c,gate:t},null,2)):Vue(c,t),que(c,t,r.strict===!0)&&(process.exitCode=1)}catch(n){we.handle(n)}})}a(M$,"requirementsAuditCommand");function j$(){let r=new Ce("requirements").description("Requirements-management tooling (RFC 0003): traceability checker");return r.addCommand(M$()),r}a(j$,"requirementsCommand");function $$(){let r=new Ce("cache").description("SPARQL query-result cache maintenance (clear / stats). For read-after-write, prefer `query --no-cache` or a short `--cache-ttl`.");return r.addCommand(Gue()),r.addCommand(Wue()),r}a($$,"cacheCommand");function Gue(){return new Ce("clear").description("Remove all cached SPARQL query results from disk").option("--output <format>","Output format: text | json","text").action(async r=>{let e=new Ho,t=await e.getCacheStats();if(await e.clear(),r.output==="json"){console.log(JSON.stringify({success:!0,data:{action:"clear",cacheDir:e.getCacheDir(),clearedEntries:t.entryCount,freedBytes:t.totalSizeBytes}}));return}console.log(`\u{1F5D1}\uFE0F Cleared ${t.entryCount} cached query result(s) (${U$(t.totalSizeBytes)} freed) from ${e.getCacheDir()}`)})}a(Gue,"cacheClearCommand");function Wue(){return new Ce("stats").description("Show query-result cache entry count and total size").option("--output <format>","Output format: text | json","text").action(async r=>{let e=new Ho,t=await e.getCacheStats();if(r.output==="json"){console.log(JSON.stringify({success:!0,data:{cacheDir:e.getCacheDir(),entryCount:t.entryCount,totalSizeBytes:t.totalSizeBytes}}));return}console.log(`\u{1F4CA} SPARQL query-result cache: ${e.getCacheDir()}`),console.log(` Entries: ${t.entryCount.toLocaleString()}`),console.log(` Size: ${U$(t.totalSizeBytes)}`)})}a(Wue,"cacheStatsCommand");function U$(r){return r<1024?`${r} B`:r<1024*1024?`${(r/1024).toFixed(1)} KB`:`${(r/(1024*1024)).toFixed(1)} MB`}a(U$,"formatBytes");function w_(r){let e=new Ce;return e.name("exocortex").description("CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more").version(r??"16.198.3"),e.addCommand(O5()),e.addCommand($5()),e.addCommand(F9()),e.addCommand(k9()),e.addCommand(t5()),e.addCommand(M9()),e.addCommand(q9()),e.addCommand(c5()),e.addCommand(p5()),e.addCommand(v5()),e.addCommand(I5()),e.addCommand(x5()),e.addCommand(s$()),e.addCommand(c$()),e.addCommand(v$()),e.addCommand(A$()),e.addCommand(R$()),e.addCommand(C$()),e.addCommand(D$()),e.addCommand(h$()),e.addCommand(S$()),e.addCommand(j$()),e.addCommand($$()),e}a(w_,"createProgram");w_().parse();0&&(module.exports={createProgram});
|
|
627
627
|
/*! Bundled license information:
|
|
628
628
|
|
|
629
629
|
reflect-metadata/Reflect.js:
|
package/package.json
CHANGED