@kitelev/exocortex-cli 16.201.4 → 16.201.5

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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.201.4
2
+ // @kitelev/exocortex-cli v16.201.5
3
3
  // CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
4
4
  // License: MIT
5
5
 
@@ -638,7 +638,7 @@ Duplicate bindings (${n.duplicates.length}) \u2014 uid claimed by >1 test (warni
638
638
  Skipped floor check for ${n.unknownPriority} requirement(s) with unparseable priority (fail-open).`),n.clean?e==="hard"&&!n.rampReady?console.error(`
639
639
  FAIL (hard gate): ramp not ready \u2014 ${n.p0Orphans} P0 requirement(s) unbound`+(n.p0Total===0?" (no P0 requirements found)":"")+"."):console.log(`
640
640
  OK: no hard findings (dangling tags + binding-class floor are clean).`):console.error(`
641
- FAIL: ${n.dangling.length} dangling + ${n.floorViolations.length} floor violation(s) + ${n.activeViolations.length} active-requirement invariant violation(s) + ${n.danglingEvidence.length} dangling evidence link(s).`)}a(afe,"renderText");function cfe(n,e,t){return!n.clean||t&&n.orphans.length>0||e==="hard"&&!n.rampReady}a(cfe,"isHardFail");function t6(){return new Ie("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 n=>{let e=n.output??"text";_e.setFormat(e);let t=n.gate==="hard"?"hard":"soft";try{let r=(0,tc.resolve)(n.reqs);if(!(0,rc.existsSync)(r)||!(0,rc.statSync)(r).isDirectory())throw new Ke(r);let i=(0,tc.resolve)(n.tests??".");if(!(0,rc.existsSync)(i)||!(0,rc.statSync)(i).isDirectory())throw new Ke(i);let[s,o]=await Promise.all([rfe(r),ife(i)]),c=sfe(s,o);e==="json"?console.log(JSON.stringify({...c,gate:t},null,2)):afe(c,t),cfe(c,t,n.strict===!0)&&(process.exitCode=1)}catch(r){_e.handle(r)}})}a(t6,"requirementsAuditCommand");function r6(){let n=new Ie("requirements").description("Requirements-management tooling (RFC 0003): traceability checker");return n.addCommand(t6()),n}a(r6,"requirementsCommand");function n6(){let n=new Ie("cache").description("SPARQL query-result cache maintenance (clear / stats). For read-after-write, prefer `query --no-cache` or a short `--cache-ttl`.");return n.addCommand(lfe()),n.addCommand(ufe()),n}a(n6,"cacheCommand");function lfe(){return new Ie("clear").description("Remove all cached SPARQL query results from disk").option("--output <format>","Output format: text | json","text").action(async n=>{let e=new Ho,t=await e.getCacheStats();if(await e.clear(),n.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) (${i6(t.totalSizeBytes)} freed) from ${e.getCacheDir()}`)})}a(lfe,"cacheClearCommand");function ufe(){return new Ie("stats").description("Show query-result cache entry count and total size").option("--output <format>","Output format: text | json","text").action(async n=>{let e=new Ho,t=await e.getCacheStats();if(n.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: ${i6(t.totalSizeBytes)}`)})}a(ufe,"cacheStatsCommand");function i6(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}a(i6,"formatBytes");function N_(n){let e=new Ie;return e.name("exocortex").description("CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more").version(n??"16.201.4"),e.addCommand(Y5()),e.addCommand(n$()),e.addCommand(Y9()),e.addCommand(J9()),e.addCommand(y5()),e.addCommand(Z9()),e.addCommand(s5()),e.addCommand(T5()),e.addCommand(C5()),e.addCommand($5()),e.addCommand(B5()),e.addCommand(V5()),e.addCommand(G5()),e.addCommand(W5()),e.addCommand(v$()),e.addCommand(I$()),e.addCommand(B$()),e.addCommand(q$()),e.addCommand(H$()),e.addCommand(z$()),e.addCommand(Q$()),e.addCommand(F$()),e.addCommand(j$()),e.addCommand(r6()),e.addCommand(n6()),e}a(N_,"createProgram");N_().parse();0&&(module.exports={createProgram});
641
+ FAIL: ${n.dangling.length} dangling + ${n.floorViolations.length} floor violation(s) + ${n.activeViolations.length} active-requirement invariant violation(s) + ${n.danglingEvidence.length} dangling evidence link(s).`)}a(afe,"renderText");function cfe(n,e,t){return!n.clean||t&&n.orphans.length>0||e==="hard"&&!n.rampReady}a(cfe,"isHardFail");function t6(){return new Ie("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 n=>{let e=n.output??"text";_e.setFormat(e);let t=n.gate==="hard"?"hard":"soft";try{let r=(0,tc.resolve)(n.reqs);if(!(0,rc.existsSync)(r)||!(0,rc.statSync)(r).isDirectory())throw new Ke(r);let i=(0,tc.resolve)(n.tests??".");if(!(0,rc.existsSync)(i)||!(0,rc.statSync)(i).isDirectory())throw new Ke(i);let[s,o]=await Promise.all([rfe(r),ife(i)]),c=sfe(s,o);e==="json"?console.log(JSON.stringify({...c,gate:t},null,2)):afe(c,t),cfe(c,t,n.strict===!0)&&(process.exitCode=1)}catch(r){_e.handle(r)}})}a(t6,"requirementsAuditCommand");function r6(){let n=new Ie("requirements").description("Requirements-management tooling (RFC 0003): traceability checker");return n.addCommand(t6()),n}a(r6,"requirementsCommand");function n6(){let n=new Ie("cache").description("SPARQL query-result cache maintenance (clear / stats). For read-after-write, prefer `query --no-cache` or a short `--cache-ttl`.");return n.addCommand(lfe()),n.addCommand(ufe()),n}a(n6,"cacheCommand");function lfe(){return new Ie("clear").description("Remove all cached SPARQL query results from disk").option("--output <format>","Output format: text | json","text").action(async n=>{let e=new Ho,t=await e.getCacheStats();if(await e.clear(),n.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) (${i6(t.totalSizeBytes)} freed) from ${e.getCacheDir()}`)})}a(lfe,"cacheClearCommand");function ufe(){return new Ie("stats").description("Show query-result cache entry count and total size").option("--output <format>","Output format: text | json","text").action(async n=>{let e=new Ho,t=await e.getCacheStats();if(n.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: ${i6(t.totalSizeBytes)}`)})}a(ufe,"cacheStatsCommand");function i6(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}a(i6,"formatBytes");function N_(n){let e=new Ie;return e.name("exocortex").description("CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more").version(n??"16.201.5"),e.addCommand(Y5()),e.addCommand(n$()),e.addCommand(Y9()),e.addCommand(J9()),e.addCommand(y5()),e.addCommand(Z9()),e.addCommand(s5()),e.addCommand(T5()),e.addCommand(C5()),e.addCommand($5()),e.addCommand(B5()),e.addCommand(V5()),e.addCommand(G5()),e.addCommand(W5()),e.addCommand(v$()),e.addCommand(I$()),e.addCommand(B$()),e.addCommand(q$()),e.addCommand(H$()),e.addCommand(z$()),e.addCommand(Q$()),e.addCommand(F$()),e.addCommand(j$()),e.addCommand(r6()),e.addCommand(n6()),e}a(N_,"createProgram");N_().parse();0&&(module.exports={createProgram});
642
642
  /*! Bundled license information:
643
643
 
644
644
  reflect-metadata/Reflect.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitelev/exocortex-cli",
3
- "version": "16.201.4",
3
+ "version": "16.201.5",
4
4
  "description": "CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more",
5
5
  "main": "dist/index.js",
6
6
  "bin": {