@staff0rd/assist 0.128.0 → 0.129.0
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/claude/commands/raven.md +28 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Query and manage RavenDB connections and collections
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
The user wants to interact with RavenDB. Use the `assist ravendb` CLI commands below.
|
|
6
|
+
|
|
7
|
+
## Connection management
|
|
8
|
+
|
|
9
|
+
- `assist ravendb auth add` — interactively add a named connection
|
|
10
|
+
- `assist ravendb auth list` — list configured connections
|
|
11
|
+
- `assist ravendb auth remove <name>` — remove a connection
|
|
12
|
+
- `assist ravendb set-connection <name>` — set the default connection
|
|
13
|
+
|
|
14
|
+
## Querying
|
|
15
|
+
|
|
16
|
+
- `assist ravendb collections [connection]` — list collections in a database
|
|
17
|
+
- `assist ravendb query [connection] [collection]` — query a collection
|
|
18
|
+
- `--page-size <n>` — documents per page (default 25)
|
|
19
|
+
- `--sort <field>` — sort field, prefix `-` for descending (default `-@metadata.Last-Modified`)
|
|
20
|
+
- `--query <lucene>` — Lucene filter query
|
|
21
|
+
- `--limit <n>` — max total documents to fetch
|
|
22
|
+
|
|
23
|
+
## Workflow
|
|
24
|
+
|
|
25
|
+
1. If no connections are configured, tell the user to run `assist ravendb auth add`. Do NOT attempt to add connections yourself.
|
|
26
|
+
2. If the user doesn't specify a connection, omit it to use the default.
|
|
27
|
+
3. Display query results to the user. If the output is large, summarise the key documents and highlight anything notable.
|
|
28
|
+
4. If the user asks follow-up questions, refine the query options and re-query.
|
package/dist/index.js
CHANGED