@youtyan/code-viewer 0.1.54 → 0.2.1
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/README.md +38 -6
- package/dist/code-viewer.js +3829 -642
- package/package.json +1 -1
- package/skills/code-viewer-annotate/SKILL.md +26 -0
- package/web/app.js +9636 -6469
- package/web/index.html +5 -2
- package/web/style.css +996 -37
package/package.json
CHANGED
|
@@ -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,
|