@kitelev/exocortex-cli 15.10.0 → 15.10.1

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.10.0
2
+ // @kitelev/exocortex-cli v15.10.1
3
3
  // CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
4
4
  // License: MIT
5
5
 
@@ -457,7 +457,7 @@ globstar while`,e,d,t,p,_),this.matchOne(e.slice(d),t.slice(p),r))return this.de
457
457
  ${t}
458
458
  Continue? (y/n): `,s=>{r.close(),i(s.toLowerCase()==="y"||s.toLowerCase()==="yes")})})}};var Bd=class{static{o(this,"CLIContainer")}static setup(){sc.container.register(Wu.DI_TOKENS.ILogger,{useFactory:o(()=>new Md("exocortex-cli"),"useFactory")}),sc.container.register(Wu.DI_TOKENS.IEventBus,{useClass:kd}),sc.container.register(Wu.DI_TOKENS.IConfiguration,{useClass:jd}),sc.container.register(Wu.DI_TOKENS.INotificationService,{useClass:Vd})}static reset(){sc.container.clearInstances()}};function zu(n){Bd.setup(),Oa.container.register(Ps.DI_TOKENS.IVaultAdapter,{useFactory:o(()=>new Si(n),"useFactory")})}o(zu,"setupContainer");function m$(n){if(n.length===0)return"No practices found.";let e=[];for(let t of n){let r="\u2B1C";t.doneToday?r="\u2705":t.inProgressToday&&(r="\u{1F504}");let i=t.estimatedDuration?` (${t.estimatedDuration}m)`:"";e.push(`${r} ${t.label}${i}`)}return e.join(`
459
459
  `)}o(m$,"formatPractices");function g$(n){let e=[`\u{1F4C5} Daily Review: ${n.date}`,"","\u{1F4CA} Tasks:",` Planned: ${n.plannedCount}`,` Completed: ${n.completedCount}`,` In Progress: ${n.inProgressCount}`,` Progress: ${n.completionPercentage}%`,"",`\u23F1\uFE0F Total time: ${Math.round(n.totalTimeMinutes)} minutes`];if(n.practicesDue.length>0){e.push(""),e.push(`\u{1F4CB} Practices due (${n.practicesDue.length}):`);for(let t of n.practicesDue){let r=t.estimatedDuration?` (${t.estimatedDuration}m)`:"";e.push(` \u2B1C ${t.label}${r}`)}}return e.join(`
460
- `)}o(g$,"formatSummary");function Vx(){let n=new xt("daily").description("Daily review operations for mobile-friendly workflow");return n.command("practices").description("List today's practices (recurring tasks)").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").action(async e=>{let t=e.format||"text";H.setFormat(t);try{let r=(0,ac.resolve)(e.vault);if(!(0,oc.existsSync)(r))throw new Mt(r);zu(r);let s=await Oa.container.resolve(Ps.DailyReviewService).getPractices();if(t==="json"){let a=Be.success({practices:s,count:s.length});console.log(JSON.stringify(a,null,2))}else console.log(m$(s))}catch(r){H.handle(r)}}),n.command("summary").description("Show today's daily review summary").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").option("--date <value>","Date in YYYY-MM-DD format (default: today)").action(async e=>{let t=e.format||"text";H.setFormat(t);try{let r=(0,ac.resolve)(e.vault);if(!(0,oc.existsSync)(r))throw new Mt(r);zu(r);let i=Oa.container.resolve(Ps.DailyReviewService),s;if(e.date&&(s=new Date(e.date),isNaN(s.getTime())))throw new it(`Invalid date format: ${e.date}`,"exocortex daily summary --date YYYY-MM-DD",{date:e.date});let a=await i.getDailyReviewSummary(s);if(t==="json"){let c=Be.success(a);console.log(JSON.stringify(c,null,2))}else console.log(g$(a))}catch(r){H.handle(r)}}),n.command("log").description("Quick capture an activity").argument("<label>","Activity label/description").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").option("--start","Start the task immediately (default: true)").option("--no-start","Don't start the task immediately").action(async(e,t)=>{let r=t.format||"text";H.setFormat(r);try{let i=(0,ac.resolve)(t.vault);if(!(0,oc.existsSync)(i))throw new Mt(i);zu(i);let s=Oa.container.resolve(Ps.DailyReviewService),a=t.start!==!1,c=await s.quickCapture(e,a);if(r==="json"){let u=Be.success(c);console.log(JSON.stringify(u,null,2))}else{let u=c.started?"\u{1F504}":"\u2B1C";console.log(`${u} Created: ${c.label}`),console.log(` Path: ${c.path}`)}}catch(i){H.handle(i)}}),n.command("start").description("Start a practice (create task instance from prototype)").argument("<prototype-uid>","Practice/prototype UID to start").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").action(async(e,t)=>{let r=t.format||"text";H.setFormat(r);try{let i=(0,ac.resolve)(t.vault);if(!(0,oc.existsSync)(i))throw new Mt(i);zu(i);let a=await Oa.container.resolve(Ps.DailyReviewService).createFromPractice({prototypeUid:e,startImmediately:!0});if(r==="json"){let c=Be.success(a);console.log(JSON.stringify(c,null,2))}else console.log(`\u{1F504} Started: ${a.label}`),console.log(` Path: ${a.path}`)}catch(i){H.handle(i)}}),n.command("done").description("Mark a practice as done").argument("<prototype-uid>","Practice/prototype UID to mark as done").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").action(async(e,t)=>{let r=t.format||"text";H.setFormat(r);try{let i=(0,ac.resolve)(t.vault);if(!(0,oc.existsSync)(i))throw new Mt(i);if(zu(i),await Oa.container.resolve(Ps.DailyReviewService).markPracticeDone(e),r==="json"){let a=Be.success({prototypeUid:e,status:"done"});console.log(JSON.stringify(a,null,2))}else console.log(`\u2705 Marked as done: ${e}`)}catch(i){H.handle(i)}}),n}o(Vx,"dailyReviewCommand");var Ai=new xt;Ai.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.10.0");var Bx=Ai.command("sparql").description("SPARQL query execution and cache management");Bx.addCommand(pA());Bx.addCommand(yA());Ai.addCommand(Tx());Ai.addCommand(Cx());Ai.addCommand(Ix());Ai.addCommand(Px());Ai.addCommand(Dx());Ai.addCommand(Mx());Ai.addCommand(Vx());Ai.parse();
460
+ `)}o(g$,"formatSummary");function Vx(){let n=new xt("daily").description("Daily review operations for mobile-friendly workflow");return n.command("practices").description("List today's practices (recurring tasks)").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").action(async e=>{let t=e.format||"text";H.setFormat(t);try{let r=(0,ac.resolve)(e.vault);if(!(0,oc.existsSync)(r))throw new Mt(r);zu(r);let s=await Oa.container.resolve(Ps.DailyReviewService).getPractices();if(t==="json"){let a=Be.success({practices:s,count:s.length});console.log(JSON.stringify(a,null,2))}else console.log(m$(s))}catch(r){H.handle(r)}}),n.command("summary").description("Show today's daily review summary").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").option("--date <value>","Date in YYYY-MM-DD format (default: today)").action(async e=>{let t=e.format||"text";H.setFormat(t);try{let r=(0,ac.resolve)(e.vault);if(!(0,oc.existsSync)(r))throw new Mt(r);zu(r);let i=Oa.container.resolve(Ps.DailyReviewService),s;if(e.date&&(s=new Date(e.date),isNaN(s.getTime())))throw new it(`Invalid date format: ${e.date}`,"exocortex daily summary --date YYYY-MM-DD",{date:e.date});let a=await i.getDailyReviewSummary(s);if(t==="json"){let c=Be.success(a);console.log(JSON.stringify(c,null,2))}else console.log(g$(a))}catch(r){H.handle(r)}}),n.command("log").description("Quick capture an activity").argument("<label>","Activity label/description").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").option("--start","Start the task immediately (default: true)").option("--no-start","Don't start the task immediately").action(async(e,t)=>{let r=t.format||"text";H.setFormat(r);try{let i=(0,ac.resolve)(t.vault);if(!(0,oc.existsSync)(i))throw new Mt(i);zu(i);let s=Oa.container.resolve(Ps.DailyReviewService),a=t.start!==!1,c=await s.quickCapture(e,a);if(r==="json"){let u=Be.success(c);console.log(JSON.stringify(u,null,2))}else{let u=c.started?"\u{1F504}":"\u2B1C";console.log(`${u} Created: ${c.label}`),console.log(` Path: ${c.path}`)}}catch(i){H.handle(i)}}),n.command("start").description("Start a practice (create task instance from prototype)").argument("<prototype-uid>","Practice/prototype UID to start").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").action(async(e,t)=>{let r=t.format||"text";H.setFormat(r);try{let i=(0,ac.resolve)(t.vault);if(!(0,oc.existsSync)(i))throw new Mt(i);zu(i);let a=await Oa.container.resolve(Ps.DailyReviewService).createFromPractice({prototypeUid:e,startImmediately:!0});if(r==="json"){let c=Be.success(a);console.log(JSON.stringify(c,null,2))}else console.log(`\u{1F504} Started: ${a.label}`),console.log(` Path: ${a.path}`)}catch(i){H.handle(i)}}),n.command("done").description("Mark a practice as done").argument("<prototype-uid>","Practice/prototype UID to mark as done").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--format <type>","Output format: text|json","text").action(async(e,t)=>{let r=t.format||"text";H.setFormat(r);try{let i=(0,ac.resolve)(t.vault);if(!(0,oc.existsSync)(i))throw new Mt(i);if(zu(i),await Oa.container.resolve(Ps.DailyReviewService).markPracticeDone(e),r==="json"){let a=Be.success({prototypeUid:e,status:"done"});console.log(JSON.stringify(a,null,2))}else console.log(`\u2705 Marked as done: ${e}`)}catch(i){H.handle(i)}}),n}o(Vx,"dailyReviewCommand");var Ai=new xt;Ai.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.10.1");var Bx=Ai.command("sparql").description("SPARQL query execution and cache management");Bx.addCommand(pA());Bx.addCommand(yA());Ai.addCommand(Tx());Ai.addCommand(Cx());Ai.addCommand(Ix());Ai.addCommand(Px());Ai.addCommand(Dx());Ai.addCommand(Mx());Ai.addCommand(Vx());Ai.parse();
461
461
  /*! Bundled license information:
462
462
 
463
463
  reflect-metadata/Reflect.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitelev/exocortex-cli",
3
- "version": "15.10.0",
3
+ "version": "15.10.1",
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": {