dirsql 0.4.71 → 0.4.72
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.
|
@@ -22,7 +22,7 @@ const NATIVE_CONFIG_SUFFIXES = [".py", ".js", ".mjs", ".cjs"];
|
|
|
22
22
|
* launcher as a clean error).
|
|
23
23
|
*/
|
|
24
24
|
export async function withResolvedExtensions(argv) {
|
|
25
|
-
if (argv[0] === "init") {
|
|
25
|
+
if (argv[0] === "init" || argv[0] === "context") {
|
|
26
26
|
return argv;
|
|
27
27
|
}
|
|
28
28
|
const configPaths = getCore()
|
package/docs/reference/cli.md
CHANGED
|
@@ -11,6 +11,7 @@ The `dirsql` binary has these modes:
|
|
|
11
11
|
| `dirsql query "<sql>"` | Explicit synonym for the default one-shot query. |
|
|
12
12
|
| `dirsql server` | Start a long-lived HTTP server exposing a SQL view of a directory. See [HTTP API](./http-api.md). |
|
|
13
13
|
| `dirsql init` | Generate a `.dirsql.toml`. |
|
|
14
|
+
| `dirsql context` | Print the usage guide for this version, for an agent to read. |
|
|
14
15
|
| `dirsql` (bare) | Open a [REPL](#the-repl) over the current directory, reading statements until EOF. |
|
|
15
16
|
|
|
16
17
|
Bare `dirsql` does **not** start the server — that is `dirsql server`.
|
|
@@ -441,6 +442,17 @@ All failures exit `1` with a message on stderr:
|
|
|
441
442
|
|
|
442
443
|
On success, `init` exits `0`.
|
|
443
444
|
|
|
445
|
+
## `dirsql context`
|
|
446
|
+
|
|
447
|
+
```sh
|
|
448
|
+
uvx dirsql context
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
Prints a markdown guide for an agent that is about to query files: the
|
|
452
|
+
first line is `dirsql <version>`, then sections on usage, recipes and
|
|
453
|
+
troubleshooting. The guide is compiled into the binary, so it describes the
|
|
454
|
+
version that prints it. It takes no flags and exits `0`.
|
|
455
|
+
|
|
444
456
|
## Plugins
|
|
445
457
|
|
|
446
458
|
A **plugin** is an ordinary Python package that ships a `dirsql.toml` config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dirsql",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.72",
|
|
4
4
|
"description": "Ephemeral SQL index over a local directory",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/thekevinscott/dirsql",
|
|
@@ -221,10 +221,10 @@
|
|
|
221
221
|
]
|
|
222
222
|
},
|
|
223
223
|
"optionalDependencies": {
|
|
224
|
-
"@dirsql/lib-linux-x64-gnu": "0.4.
|
|
225
|
-
"@dirsql/lib-linux-arm64-gnu": "0.4.
|
|
226
|
-
"@dirsql/lib-darwin-x64": "0.4.
|
|
227
|
-
"@dirsql/lib-darwin-arm64": "0.4.
|
|
228
|
-
"@dirsql/lib-win32-x64-msvc": "0.4.
|
|
224
|
+
"@dirsql/lib-linux-x64-gnu": "0.4.72",
|
|
225
|
+
"@dirsql/lib-linux-arm64-gnu": "0.4.72",
|
|
226
|
+
"@dirsql/lib-darwin-x64": "0.4.72",
|
|
227
|
+
"@dirsql/lib-darwin-arm64": "0.4.72",
|
|
228
|
+
"@dirsql/lib-win32-x64-msvc": "0.4.72"
|
|
229
229
|
}
|
|
230
230
|
}
|