dirsql 0.3.91 → 0.3.93

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.
@@ -23,7 +23,7 @@ glob = "books/*.json"
23
23
  on-file = "jq -c '[{title, author, year}]' {path}"
24
24
  ```
25
25
 
26
- `{path}` is the matched file, relative to the index root — one of the
26
+ `{path}` is the matched file's absolute path — one of the
27
27
  placeholders defined by the
28
28
  [command hook contract](../reference/hooks.md#on-file), which also covers
29
29
  the argv splitting, working directory, stdout protocol, and timeout shared
@@ -101,8 +101,8 @@ row-mapping rules.
101
101
 
102
102
  | Placeholder | Value |
103
103
  |---|---|
104
- | `{path}` | The matched file's path **relative to the index root**. Appended automatically as a final argument when the command omits it, so `extract.py` and `extract.py {path}` behave identically. |
105
- | `{root}` | The index root directory. |
104
+ | `{path}` | The matched file's **absolute** path. `on-file = "extract.py {path}"` — self-sufficient from any working directory, so the command resolves it even when the config lives outside the index. |
105
+ | `{root}` | The index root directory. Derive a root-relative path with `relpath({path}, {root})`. |
106
106
 
107
107
  ### `pre-query`
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirsql",
3
- "version": "0.3.91",
3
+ "version": "0.3.93",
4
4
  "description": "Ephemeral SQL index over a local directory",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/thekevinscott/dirsql",
@@ -212,15 +212,15 @@
212
212
  ]
213
213
  },
214
214
  "optionalDependencies": {
215
- "@dirsql/lib-linux-x64-gnu": "0.3.91",
216
- "@dirsql/lib-linux-arm64-gnu": "0.3.91",
217
- "@dirsql/lib-darwin-x64": "0.3.91",
218
- "@dirsql/lib-darwin-arm64": "0.3.91",
219
- "@dirsql/lib-win32-x64-msvc": "0.3.91",
220
- "@dirsql/cli-linux-x64-gnu": "0.3.91",
221
- "@dirsql/cli-linux-arm64-gnu": "0.3.91",
222
- "@dirsql/cli-darwin-x64": "0.3.91",
223
- "@dirsql/cli-darwin-arm64": "0.3.91",
224
- "@dirsql/cli-win32-x64-msvc": "0.3.91"
215
+ "@dirsql/lib-linux-x64-gnu": "0.3.93",
216
+ "@dirsql/lib-linux-arm64-gnu": "0.3.93",
217
+ "@dirsql/lib-darwin-x64": "0.3.93",
218
+ "@dirsql/lib-darwin-arm64": "0.3.93",
219
+ "@dirsql/lib-win32-x64-msvc": "0.3.93",
220
+ "@dirsql/cli-linux-x64-gnu": "0.3.93",
221
+ "@dirsql/cli-linux-arm64-gnu": "0.3.93",
222
+ "@dirsql/cli-darwin-x64": "0.3.93",
223
+ "@dirsql/cli-darwin-arm64": "0.3.93",
224
+ "@dirsql/cli-win32-x64-msvc": "0.3.93"
225
225
  }
226
226
  }