@youtyan/code-viewer 0.1.53 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youtyan/code-viewer",
3
- "version": "0.1.53",
3
+ "version": "0.2.0",
4
4
  "description": "Local browser-based code and git diff viewer",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,6 +38,32 @@ text-to-speech playback.
38
38
  code-viewer annotate add --file src/cache.ts --line 42-58 --body "..."
39
39
  ```
40
40
 
41
+ 3. Fix ordering without deleting stable ids:
42
+
43
+ ```sh
44
+ code-viewer annotate add --after a-existing --file src/cache.ts --line 80 --body "..."
45
+ code-viewer annotate move a-late --before a-early
46
+ ```
47
+
48
+ 4. Annotate the Database screen when the explanation is about data, schema,
49
+ query behavior, ER diagrams, global search, or snapshots:
50
+
51
+ ```sh
52
+ code-viewer annotate add-db --db app.db --table users --tab schema --body "..."
53
+ code-viewer annotate add-db --db app.db --table orders --tab data \
54
+ --grid-search failed --filter status=failed --sort created_at:desc \
55
+ --body "..."
56
+ code-viewer annotate add-db --db app.db --tab query \
57
+ --sql "select * from orders where status = 'failed'" --run-query \
58
+ --body "..."
59
+ code-viewer annotate add-db --db app.db --tab search --search-term failed \
60
+ --include-non-text --run-search --body "..."
61
+ ```
62
+
63
+ If the browser is already on the exact Database state, use the annotations
64
+ panel pin button to capture the current data grid, query editor, or global
65
+ search state instead of reconstructing it by hand.
66
+
41
67
  ## Full reference
42
68
 
43
69
  Before composing annotations, read the complete agent guide (all commands,