@aryasaatvik/scratchpad 0.3.0 → 0.3.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## @aryasaatvik/scratchpad@0.3.2
2
+
3
+ ### Name feedback by id from any directory
4
+
5
+ `scratchpad feedback resolve` now finds an occurrence by the id after the last `-` in its file name (`c56d71da`) or by its file name, with or without `.md`, looked up in the feedback folder rather than the working directory. Paths still work. An id two files share is refused with both names.
6
+
7
+ `--review` takes a review record's file name too, looked up in this scope's `feedback/reviews/` and then the global one, so a project occurrence can cite a global review without its absolute path. `reviews/<name>` and a quoted `~/` path also work.
8
+
9
+ Both `--help` and the not-found errors now say which forms each argument accepts.
10
+
11
+ ## @aryasaatvik/scratchpad@0.3.1
12
+
13
+ ### Retire every file for a closed issue or milestone
14
+
15
+ When one issue or milestone had more than one backlog mapping, for example after two checkouts' mappings were adopted into one mount, `pull` retired only one of them on closure. The others stayed as active files and were never synced again. `pull` now retires every mapping for a closed object. For an open object it syncs through one mapping and reports any second file so you can merge it by hand. A second mapping whose file is already gone is dropped, so the next push no longer closes the issue.
16
+
17
+ ### Re-list everything with `--full`
18
+
19
+ `scratchpad pull --full` and `scratchpad sync --full` list every remote issue and milestone instead of only those changed since the last pull. Use it once to retire files for closures that an earlier incremental pull already passed.
20
+
1
21
  ## @aryasaatvik/scratchpad@0.3.0
2
22
 
3
23
  ### Upload larger files with resumable multipart transfers
package/README.md CHANGED
@@ -25,7 +25,7 @@ The SQLite store builds on drizzle-orm's native `effect-sqlite-bun` integration
25
25
 
26
26
  ## Install
27
27
 
28
- Run with Bun:
28
+ Run with Bun 1.4.4 or newer:
29
29
 
30
30
  ```sh
31
31
  bunx @aryasaatvik/scratchpad --help
@@ -110,7 +110,8 @@ the planned delete without mutating anything.
110
110
 
111
111
  Backlog files follow the Scratchpad skill's contract: `status` is free text in
112
112
  the repository's own vocabulary, the title is the first `# ` heading, and
113
- `milestone` / `depends_on` are relative paths. A status whose first word is in
113
+ `milestone` / `depends_on` are paths relative to the file that contains them, so issues
114
+ and milestones may be nested in subfolders of `backlog/issues/` and `backlog/milestones/`. A status whose first word is in
114
115
  `backlog.closedStatuses` (default `done`, `complete(d)`, `closed`, `merged`,
115
116
  `landed`, `delivered`, `cancel(l)ed`, `superseded`, `implemented`, `historical`,
116
117
  `moved`) syncs as closed; anything else is open. Files in the older shape
@@ -134,7 +135,7 @@ scratchpad backlog validate | graph # decode, check fields, links
134
135
  scratchpad feedback new "<text>" [--global] [--harness <h>] [--model <m>] [--session <id>]
135
136
  scratchpad feedback review [--global] [--classify] [--json]
136
137
  scratchpad feedback list [--global] [--status <s>] [--disposition <d>]... [--all]
137
- scratchpad feedback resolve <id-or-path> --disposition <d> --review <record> [--evidence <e>]...
138
+ scratchpad feedback resolve <id|file|path> --disposition <d> --review <name|path> [--evidence <e>]...
138
139
  scratchpad route "<correction>" [--write] [--json]
139
140
  scratchpad archive <paths...> --reason "<why>" # move into archive/<date>-<reason>/
140
141
  ```
@@ -144,7 +145,11 @@ scratchpad archive <paths...> --reason "<why>" # move into archive/<date>-<re
144
145
  repository the project id is local to the directory. `--global` feedback lives in `~/.scratchpad`
145
146
  (override with `SCRATCHPAD_GLOBAL_HOME`).
146
147
 
147
- The classifier is opt-in: set `TYPESAFE_API_KEY` and optionally choose a model
148
+ The classifier is opt-in: store a key in
149
+ `$XDG_CONFIG_HOME/scratchpad/secrets/typesafe-api-key` (default
150
+ `~/.config/scratchpad/secrets/typesafe-api-key`), or set `TYPESAFE_API_KEY` to override it.
151
+ Keep the secrets directory private (`0700`) and the key file readable only by its owner (`0600`).
152
+ Relative `XDG_CONFIG_HOME` values are ignored. Optionally choose a model
148
153
  with `SCRATCHPAD_CLASSIFIER` or `classifier.model` in `scratchpad.config.ts`
149
154
  (`SCRATCHPAD_CLASSIFIER=none` disables it). Feedback is redacted before it is
150
155
  sent for classification. Feedback files are written first, and classifier