@kitelev/exocortex-cli 15.31.3 → 15.31.4
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 +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// @kitelev/exocortex-cli v15.31.
|
|
2
|
+
// @kitelev/exocortex-cli v15.31.4
|
|
3
3
|
// CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
|
|
4
4
|
// License: MIT
|
|
5
5
|
|
|
@@ -598,7 +598,7 @@ Continue? (y/n): `,s=>{r.close(),i(s.toLowerCase()==="y"||s.toLowerCase()==="yes
|
|
|
598
598
|
ORDER BY DESC(?usageCount)
|
|
599
599
|
`;a=s.parse(p),c=new Xt.AlgebraTranslator,l=c.translate(a),u=new Xt.AlgebraOptimizer,l=u.optimize(l);let S=(await f.executeAll(l)).map(A=>{let C=A.get("property"),k=A.get("usageCount");return{name:C?QC(C.toString()):"unknown",usageCount:k?parseInt(k.toString(),10):0}}),E={name:e,instanceCount:d,properties:S};if(r==="json"||t.format==="json"){let A=_e.success(E);console.log(JSON.stringify(A,null,2))}else{if(console.log(`\u{1F4CB} Class: ${e}
|
|
600
600
|
`),console.log(` Instances: ${d}`),console.log(` Properties: ${S.length}
|
|
601
|
-
`),S.length===0){console.log(" No properties found.");return}let A=Math.max(...S.map(C=>C.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 C of S)console.log(" \u2502 "+C.name.padEnd(A)+" \u2502 "+C.usageCount.toString().padStart(8)+" \u2502");console.log(" \u2514"+"\u2500".repeat(A+2)+"\u2534"+"\u2500".repeat(10)+"\u2518")}}o(oU,"showClassDetails");function QC(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(QC,"extractLocalName");var Pn=new ut;Pn.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.31.
|
|
601
|
+
`),S.length===0){console.log(" No properties found.");return}let A=Math.max(...S.map(C=>C.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 C of S)console.log(" \u2502 "+C.name.padEnd(A)+" \u2502 "+C.usageCount.toString().padStart(8)+" \u2502");console.log(" \u2514"+"\u2500".repeat(A+2)+"\u2534"+"\u2500".repeat(10)+"\u2518")}}o(oU,"showClassDetails");function QC(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(QC,"extractLocalName");var Pn=new ut;Pn.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.31.4");var uv=Pn.command("sparql").description("SPARQL query execution and cache management");uv.addCommand(hA());uv.addCommand(gA());uv.addCommand(yA());Pn.addCommand(xC());Pn.addCommand(IC());Pn.addCommand(OC());Pn.addCommand(RC());Pn.addCommand(DC());Pn.addCommand(kC());Pn.addCommand(UC());Pn.addCommand(GC());Pn.addCommand(zC());Pn.parse();
|
|
602
602
|
/*! Bundled license information:
|
|
603
603
|
|
|
604
604
|
reflect-metadata/Reflect.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitelev/exocortex-cli",
|
|
3
|
-
"version": "15.31.
|
|
3
|
+
"version": "15.31.4",
|
|
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": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"fs-extra": "^11.0.0",
|
|
50
50
|
"glob": "^10.3.0",
|
|
51
51
|
"js-yaml": "^4.1.1",
|
|
52
|
-
"minimatch": "^
|
|
52
|
+
"minimatch": "^10.2.4",
|
|
53
53
|
"ora": "^9.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|