@staff0rd/assist 0.127.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/assist.cli-reads +17 -0
- package/claude/commands/raven.md +28 -0
- package/claude/settings.json +0 -16
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/assist.cli-reads
CHANGED
|
@@ -1902,6 +1902,22 @@ az webapp traffic-routing show
|
|
|
1902
1902
|
az webapp vnet-integration list
|
|
1903
1903
|
az webapp webjob continuous list
|
|
1904
1904
|
az webapp webjob triggered list
|
|
1905
|
+
cat
|
|
1906
|
+
cut
|
|
1907
|
+
date
|
|
1908
|
+
echo
|
|
1909
|
+
find
|
|
1910
|
+
grep
|
|
1911
|
+
head
|
|
1912
|
+
jq
|
|
1913
|
+
ls
|
|
1914
|
+
printf
|
|
1915
|
+
sort
|
|
1916
|
+
tail
|
|
1917
|
+
tee
|
|
1918
|
+
tr
|
|
1919
|
+
uniq
|
|
1920
|
+
wc
|
|
1905
1921
|
gh agent-task list
|
|
1906
1922
|
gh agent-task view
|
|
1907
1923
|
gh alias list
|
|
@@ -1974,6 +1990,7 @@ git diff-files
|
|
|
1974
1990
|
git diff-index
|
|
1975
1991
|
git diff-tree
|
|
1976
1992
|
git for-each-ref
|
|
1993
|
+
git fetch
|
|
1977
1994
|
git fsck
|
|
1978
1995
|
git grep
|
|
1979
1996
|
git help
|
|
@@ -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/claude/settings.json
CHANGED
|
@@ -46,22 +46,6 @@
|
|
|
46
46
|
"Bash(assist ravendb auth list:*)",
|
|
47
47
|
"Bash(assist seq query:*)",
|
|
48
48
|
"Bash(assist seq auth list:*)",
|
|
49
|
-
"Bash(head:*)",
|
|
50
|
-
"Bash(tail:*)",
|
|
51
|
-
"Bash(grep:*)",
|
|
52
|
-
"Bash(cat:*)",
|
|
53
|
-
"Bash(wc:*)",
|
|
54
|
-
"Bash(sort:*)",
|
|
55
|
-
"Bash(uniq:*)",
|
|
56
|
-
"Bash(cut:*)",
|
|
57
|
-
"Bash(tr:*)",
|
|
58
|
-
"Bash(tee:*)",
|
|
59
|
-
"Bash(find:*)",
|
|
60
|
-
"Bash(ls:*)",
|
|
61
|
-
"Bash(echo:*)",
|
|
62
|
-
"Bash(printf:*)",
|
|
63
|
-
"Bash(date:*)",
|
|
64
|
-
"Bash(jq:*)",
|
|
65
49
|
"SlashCommand(/next-backlog-item)",
|
|
66
50
|
"SlashCommand(/verify)",
|
|
67
51
|
"SlashCommand(/commit)",
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.129.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -2875,9 +2875,12 @@ function saveCliReads(commands) {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
function findCliRead(command) {
|
|
2877
2877
|
const words = command.split(/\s+/);
|
|
2878
|
+
if (words.length === 0) return void 0;
|
|
2879
|
+
const lines = getCliReadsLines();
|
|
2880
|
+
if (lines.includes(words[0])) return words[0];
|
|
2878
2881
|
if (words.length < 2) return void 0;
|
|
2879
2882
|
const prefix2 = `${words[0]} ${words[1]}`;
|
|
2880
|
-
const candidates =
|
|
2883
|
+
const candidates = lines.filter(
|
|
2881
2884
|
(line) => line === prefix2 || line.startsWith(`${prefix2} `)
|
|
2882
2885
|
);
|
|
2883
2886
|
return candidates.sort((a, b) => b.length - a.length).find((rc) => command === rc || command.startsWith(`${rc} `));
|