@luzzle/cli 0.0.243 → 0.0.245
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 +2 -83
- package/dist/src/version.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/vite.config.js +1 -1
- package/dist/vite.config.js.map +1 -1
- package/package.json +8 -10
- package/dist/src/lib/config.mock.d.ts +0 -5
- package/dist/src/lib/config.mock.js +0 -10
- package/dist/src/lib/config.mock.js.map +0 -1
- package/dist/src/lib/database.mock.d.ts +0 -22
- package/dist/src/lib/database.mock.js +0 -34
- package/dist/src/lib/database.mock.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,84 +1,3 @@
|
|
|
1
|
-
# @luzzle/cli
|
|
1
|
+
# @luzzle/cli
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
manage, validate, and query your piece archive directly from your terminal.
|
|
5
|
-
|
|
6
|
-
## Installation 🚀
|
|
7
|
-
|
|
8
|
-
Install the CLI globally:
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm install -g @luzzle/cli
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Configuration ⚙️
|
|
15
|
-
|
|
16
|
-
The CLI is configured via a YAML file. By default, it reads from the OS-specific
|
|
17
|
-
standard user config path. You can customize settings like storage paths, SQLite
|
|
18
|
-
database locations, and Gemini API keys.
|
|
19
|
-
|
|
20
|
-
For detailed options, see the [CLI Configuration Reference](./docs/config.md).
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Commands Reference 🛠️
|
|
25
|
-
|
|
26
|
-
All commands support a `--dry-run` flag to run without making permanent changes
|
|
27
|
-
to your disk or database, and a `--verbose` flag for detailed logs.
|
|
28
|
-
|
|
29
|
-
### 1. `init <dir>`
|
|
30
|
-
|
|
31
|
-
Initializes a new Luzzle repository inside the specified directory. This sets up
|
|
32
|
-
the database client and runs Kysely schema migrations.
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
luzzle init ./my-archive
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### 2. `sync`
|
|
39
|
-
|
|
40
|
-
Scans your archive directory, parses new or updated piece files, and updates the local SQLite cache index.
|
|
41
|
-
|
|
42
|
-
- **`--force`** (`-f`): Force updates on all items, ignoring file modification times.
|
|
43
|
-
- **`--prune`** (`-p`): Delete orphaned assets from disk that are no longer referenced by any piece.
|
|
44
|
-
|
|
45
|
-
### 3. `create <title> [fields]`
|
|
46
|
-
|
|
47
|
-
Creates a new piece file with the proper extension and schema layout.
|
|
48
|
-
|
|
49
|
-
- **`--piece`** (`-p`): Piece type name (e.g. `books`, `films`). (Required)
|
|
50
|
-
- **`--directory`** (`-d`): Directory path where the piece should be created. (Required)
|
|
51
|
-
- **`--input`** (`-i`): Input format of the `[fields]` argument (`yaml` or `json`). Defaults to `yaml`.
|
|
52
|
-
|
|
53
|
-
### 4. `field <piece-path> [field] [value]`
|
|
54
|
-
|
|
55
|
-
Gets, edits, or removes a frontmatter field for a specific piece file.
|
|
56
|
-
|
|
57
|
-
- **`--remove`** (`-r`): Remove the specified field from the piece.
|
|
58
|
-
|
|
59
|
-
### 5. `validate <piece-path>`
|
|
60
|
-
|
|
61
|
-
Validates a specific piece file's YAML frontmatter against its registered JSON schema.
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
luzzle validate ./archive/books/dune.books.md
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### 6. `assistant`
|
|
68
|
-
|
|
69
|
-
Prompts the Gemini AI assistant to generate or update piece metadata based on a natural language prompt or attached files.
|
|
70
|
-
|
|
71
|
-
- **`--prompt`**: A sentence describing the piece or where to find info. (Required)
|
|
72
|
-
- **`--piece`** (`-p`): Target piece type. (Required)
|
|
73
|
-
- **`--update`** (`-u`): Path to an existing piece to modify.
|
|
74
|
-
- **`--directory`** (`-d`): Folder to write a new piece file.
|
|
75
|
-
- **`--title`**: Title of the new piece.
|
|
76
|
-
- **`--file`**: Path to reference documents/images (can be specified multiple times).
|
|
77
|
-
|
|
78
|
-
### 7. `attach <piece-path> <file-or-url>`
|
|
79
|
-
|
|
80
|
-
Attaches a local file or an HTTP(S) URL to an existing piece. The CLI opens
|
|
81
|
-
local files explicitly and sends their contents to core as streams.
|
|
82
|
-
|
|
83
|
-
- **`--name`** (`-n`): Use a custom attachment filename. If it has no extension,
|
|
84
|
-
the original file or URL extension is retained.
|
|
3
|
+
Manage your archive from the terminal. [CLI guide](../../docs/cli.md).
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default "0.0.
|
|
1
|
+
export default "0.0.245";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|