@kitelev/exocortex-cli 15.43.0 → 15.43.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.
- package/README.md +17 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -495,9 +495,14 @@ npx @kitelev/exocortex-cli archive --dry-run \
|
|
|
495
495
|
- `--class <names>` - Comma-separated class short names or UUIDs (e.g. `ems__Task,ems__Meeting`) **[required for archive mode]**
|
|
496
496
|
- `--year <year>` - Filter by resolution/end timestamp year (e.g. `2025`) **[required for archive mode]**
|
|
497
497
|
- `--dry-run` - Preview without writing files
|
|
498
|
-
- `--no-referenced` - Skip assets referenced by non-archived (default
|
|
498
|
+
- `--no-referenced` - Skip assets that are still referenced by active (non-archived) files **(default behavior)**. Pass `--referenced` to include them anyway.
|
|
499
499
|
- `--json` - Output in JSON format (default: true)
|
|
500
500
|
|
|
501
|
+
**Exit codes:**
|
|
502
|
+
|
|
503
|
+
- `0` — Success (assets archived or dry-run preview completed)
|
|
504
|
+
- `1` — Error (invalid options, vault not found, missing required flags)
|
|
505
|
+
|
|
501
506
|
**What archive does:**
|
|
502
507
|
|
|
503
508
|
1. Scans active vault for assets matching class + year with `archived: true` in frontmatter
|
|
@@ -561,6 +566,11 @@ npx @kitelev/exocortex-cli unarchive --dry-run \
|
|
|
561
566
|
- `--archive-vault <path>` - Path to the archive vault **[required]**
|
|
562
567
|
- `--dry-run` - Preview without writing files
|
|
563
568
|
|
|
569
|
+
**Exit codes:**
|
|
570
|
+
|
|
571
|
+
- `0` — Success (asset restored or dry-run preview completed)
|
|
572
|
+
- `1` — Error (UUID not found in archive vault, invalid UUID format, vault not found)
|
|
573
|
+
|
|
564
574
|
**What unarchive does:**
|
|
565
575
|
|
|
566
576
|
1. Finds asset by UUID in archive vault (direct filename match, then frontmatter scan)
|
|
@@ -571,7 +581,12 @@ npx @kitelev/exocortex-cli unarchive --dry-run \
|
|
|
571
581
|
**Output (JSON to stdout):**
|
|
572
582
|
|
|
573
583
|
```json
|
|
574
|
-
{
|
|
584
|
+
{
|
|
585
|
+
"success": true,
|
|
586
|
+
"uuid": "ca0d0001-...",
|
|
587
|
+
"movedTo": "03 Knowledge/inbox/ca0d0001-....md",
|
|
588
|
+
"isDefinedBy": "[[!ems|EMS Ontology]]"
|
|
589
|
+
}
|
|
575
590
|
```
|
|
576
591
|
|
|
577
592
|
## Architecture
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// @kitelev/exocortex-cli v15.43.
|
|
2
|
+
// @kitelev/exocortex-cli v15.43.2
|
|
3
3
|
// CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
|
|
4
4
|
// License: MIT
|
|
5
5
|
|
|
@@ -627,7 +627,7 @@ ${ur.dump(i,{lineWidth:-1})}---
|
|
|
627
627
|
`),c.isDefinedBy&&process.stderr.write(`isDefinedBy: ${c.isDefinedBy}
|
|
628
628
|
`),process.stderr.write(`--- END PREVIEW ---
|
|
629
629
|
`)),process.stdout.write(JSON.stringify(c)+`
|
|
630
|
-
`),process.exit(0)}catch(e){q.handle(e)}})}o(iI,"unarchiveCommand");var Gr=new He;Gr.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.43.
|
|
630
|
+
`),process.exit(0)}catch(e){q.handle(e)}})}o(iI,"unarchiveCommand");var Gr=new He;Gr.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("15.43.2");var Sv=Gr.command("sparql").description("SPARQL query execution and cache management");Sv.addCommand(pA());Sv.addCommand(vA());Sv.addCommand(_A());Gr.addCommand(CC());Gr.addCommand(OC());Gr.addCommand(RC());Gr.addCommand(DC());Gr.addCommand(NC());Gr.addCommand($C());Gr.addCommand(qC());Gr.addCommand(HC());Gr.addCommand(YC());Gr.addCommand(eI());Gr.addCommand(nI());Gr.addCommand(iI());Gr.parse();
|
|
631
631
|
/*! Bundled license information:
|
|
632
632
|
|
|
633
633
|
reflect-metadata/Reflect.js:
|