@kitelev/exocortex-cli 15.24.1 → 15.24.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.
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 v15.24.1
2
+ // @kitelev/exocortex-cli v15.24.2
3
3
  // CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
4
4
  // License: MIT
5
5
 
@@ -573,7 +573,7 @@ Continue? (y/n): `,s=>{r.close(),i(s.toLowerCase()==="y"||s.toLowerCase()==="yes
573
573
  ORDER BY DESC(?usageCount)
574
574
  `;a=s.parse(p),c=new Kt.AlgebraTranslator,l=c.translate(a),u=new Kt.AlgebraOptimizer,l=u.optimize(l);let S=(await f.executeAll(l)).map(A=>{let P=A.get("property"),M=A.get("usageCount");return{name:P?IC(P.toString()):"unknown",usageCount:M?parseInt(M.toString(),10):0}}),E={name:e,instanceCount:d,properties:S};if(r==="json"||t.format==="json"){let A=ve.success(E);console.log(JSON.stringify(A,null,2))}else{if(console.log(`\u{1F4CB} Class: ${e}
575
575
  `),console.log(` Instances: ${d}`),console.log(` Properties: ${S.length}
576
- `),S.length===0){console.log(" No properties found.");return}let A=Math.max(...S.map(P=>P.name.length),10);console.log(" \u250C"+"\u2500".repeat(A+2)+"\u252C"+"\u2500".repeat(10)+"\u2510"),console.log(" \u2502 "+"Property".padEnd(A)+" \u2502 "+"Usage".padEnd(8)+" \u2502"),console.log(" \u251C"+"\u2500".repeat(A+2)+"\u253C"+"\u2500".repeat(10)+"\u2524");for(let P of S)console.log(" \u2502 "+P.name.padEnd(A)+" \u2502 "+P.usageCount.toString().padStart(8)+" \u2502");console.log(" \u2514"+"\u2500".repeat(A+2)+"\u2534"+"\u2500".repeat(10)+"\u2518")}}o(OV,"showClassDetails");function IC(n){let e=n.replace(/^<|>$/g,""),t=e.lastIndexOf("#");if(t!==-1)return e.substring(t+1);let r=e.lastIndexOf("/");return r!==-1?e.substring(r+1):e}o(IC,"extractLocalName");var In=new lt;In.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.24.1");var J2=In.command("sparql").description("SPARQL query execution and cache management");J2.addCommand(Qx());J2.addCommand(Xx());J2.addCommand(Jx());In.addCommand(sC());In.addCommand(cC());In.addCommand(lC());In.addCommand(fC());In.addCommand(hC());In.addCommand(yC());In.addCommand(bC());In.addCommand(TC());In.addCommand(CC());In.parse();
576
+ `),S.length===0){console.log(" No properties found.");return}let A=Math.max(...S.map(P=>P.name.length),10);console.log(" \u250C"+"\u2500".repeat(A+2)+"\u252C"+"\u2500".repeat(10)+"\u2510"),console.log(" \u2502 "+"Property".padEnd(A)+" \u2502 "+"Usage".padEnd(8)+" \u2502"),console.log(" \u251C"+"\u2500".repeat(A+2)+"\u253C"+"\u2500".repeat(10)+"\u2524");for(let P of S)console.log(" \u2502 "+P.name.padEnd(A)+" \u2502 "+P.usageCount.toString().padStart(8)+" \u2502");console.log(" \u2514"+"\u2500".repeat(A+2)+"\u2534"+"\u2500".repeat(10)+"\u2518")}}o(OV,"showClassDetails");function IC(n){let e=n.replace(/^<|>$/g,""),t=e.lastIndexOf("#");if(t!==-1)return e.substring(t+1);let r=e.lastIndexOf("/");return r!==-1?e.substring(r+1):e}o(IC,"extractLocalName");var In=new lt;In.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.24.2");var J2=In.command("sparql").description("SPARQL query execution and cache management");J2.addCommand(Qx());J2.addCommand(Xx());J2.addCommand(Jx());In.addCommand(sC());In.addCommand(cC());In.addCommand(lC());In.addCommand(fC());In.addCommand(hC());In.addCommand(yC());In.addCommand(bC());In.addCommand(TC());In.addCommand(CC());In.parse();
577
577
  /*! Bundled license information:
578
578
 
579
579
  reflect-metadata/Reflect.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitelev/exocortex-cli",
3
- "version": "15.24.1",
3
+ "version": "15.24.2",
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": {