@kitelev/exocortex-cli 16.178.2 → 16.178.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/README.md +3 -40
- package/dist/index.js +185 -200
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -236,21 +236,12 @@ npx @kitelev/exocortex-cli index --vault ~/vault --stats
|
|
|
236
236
|
|
|
237
237
|
### validate
|
|
238
238
|
|
|
239
|
-
Validate vault files. Parent command with
|
|
239
|
+
Validate vault files. Parent command with `schema` and `vault` subcommands.
|
|
240
240
|
|
|
241
241
|
```bash
|
|
242
|
-
npx @kitelev/exocortex-cli validate <
|
|
242
|
+
npx @kitelev/exocortex-cli validate <schema|vault> [options]
|
|
243
243
|
```
|
|
244
244
|
|
|
245
|
-
#### validate iri
|
|
246
|
-
|
|
247
|
-
Check vault files for IRI issues (spaces, special characters) without building the cache. Exits `1` if issues are found.
|
|
248
|
-
|
|
249
|
-
| Option | Default | Description |
|
|
250
|
-
| ----------------- | ------- | --------------------------------- |
|
|
251
|
-
| `--vault <path>` | cwd | Path to Obsidian vault |
|
|
252
|
-
| `--output <type>` | `text` | Response format: `text` or `json` |
|
|
253
|
-
|
|
254
245
|
#### validate schema
|
|
255
246
|
|
|
256
247
|
Check frontmatter properties against the ontology (schema linting), or run SHACL-lite shapes validation with `--shapes-mode`. Exits `1` if violations are found.
|
|
@@ -274,16 +265,6 @@ npx @kitelev/exocortex-cli validate schema --shapes-mode --vault ~/vault
|
|
|
274
265
|
npx @kitelev/exocortex-cli validate schema --staged --vault ~/vault
|
|
275
266
|
```
|
|
276
267
|
|
|
277
|
-
#### validate frontmatter
|
|
278
|
-
|
|
279
|
-
Check vault frontmatter for missing/empty properties and malformed IRIs.
|
|
280
|
-
|
|
281
|
-
| Option | Default | Description |
|
|
282
|
-
| ----------------- | ------- | ------------------------------------ |
|
|
283
|
-
| `--vault <path>` | cwd | Path to Obsidian vault |
|
|
284
|
-
| `--output <type>` | `text` | Response format: `text` or `json` |
|
|
285
|
-
| `--staged` | off | Only validate git-staged `.md` files |
|
|
286
|
-
|
|
287
268
|
---
|
|
288
269
|
|
|
289
270
|
## Auxiliary Commands
|
|
@@ -354,24 +335,6 @@ npx @kitelev/exocortex-cli resolve a1b2 --partial --format path --vault ~/vault
|
|
|
354
335
|
| `--output <type>` | `text` | Response format: `text` or `json` (for MCP tools) |
|
|
355
336
|
| `--partial` | off | Match partial UUIDs (returns all matches) |
|
|
356
337
|
|
|
357
|
-
### workflow
|
|
358
|
-
|
|
359
|
-
Manage custom workflow definitions stored in the vault.
|
|
360
|
-
|
|
361
|
-
```bash
|
|
362
|
-
npx @kitelev/exocortex-cli workflow list --vault ~/vault
|
|
363
|
-
npx @kitelev/exocortex-cli workflow show <uid> --vault ~/vault
|
|
364
|
-
npx @kitelev/exocortex-cli workflow validate <uid> --vault ~/vault
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
| Subcommand | Description |
|
|
368
|
-
| ---------------- | ------------------------------------------ |
|
|
369
|
-
| `list` | List all workflow definitions in the vault |
|
|
370
|
-
| `show <uid>` | Show details of a workflow definition |
|
|
371
|
-
| `validate <uid>` | Validate a workflow definition |
|
|
372
|
-
|
|
373
|
-
All subcommands accept `--vault <path>` (default: cwd) and `--output text|json` (default: `text`).
|
|
374
|
-
|
|
375
338
|
### recover
|
|
376
339
|
|
|
377
340
|
Detect and recover orphaned `claude-child` tmux sessions. A session is orphaned when its corresponding vault task is not in Doing status. Default mode is dry-run.
|
|
@@ -602,7 +565,7 @@ All commands use standardized exit codes following Unix conventions (`src/utils/
|
|
|
602
565
|
| `7` | `TRANSACTION_FAILED` | Atomic operation could not complete |
|
|
603
566
|
| `8` | `CONCURRENT_MODIFICATION` | File changed during operation |
|
|
604
567
|
|
|
605
|
-
Validation commands (`validate
|
|
568
|
+
Validation commands (`validate schema`, `validate vault`, `audit co-location`, `audit ontology-imports`) exit `1` when issues/violations are found, for CI/pre-commit integration.
|
|
606
569
|
|
|
607
570
|
## Structured JSON Responses
|
|
608
571
|
|