@youtyan/code-viewer 0.8.7 → 0.8.8
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 +13 -3
- package/dist/code-viewer.js +1 -1
- package/package.json +1 -1
- package/web/app.js +646 -273
- package/web/index.html +10 -9
- package/web/style.css +1548 -366
package/README.md
CHANGED
|
@@ -157,6 +157,12 @@ view's row component, so line numbers, drag-selection of `line=` ranges,
|
|
|
157
157
|
syntax highlighting and the Viewer Settings code font size all match the
|
|
158
158
|
Code tab.
|
|
159
159
|
|
|
160
|
+
When the repository remote is hosted on GitHub, repository and file headers
|
|
161
|
+
include an **Open on GitHub** action. Selecting source lines opens a compact
|
|
162
|
+
action bar for copying the AI reference, opening the exact line range on
|
|
163
|
+
GitHub, or copying that GitHub URL. Markdown and HTML diff cards also expose a
|
|
164
|
+
direct **Preview** shortcut beside the regular file view action.
|
|
165
|
+
|
|
160
166
|
Very large text files use a virtualized source viewer. Only visible rows are
|
|
161
167
|
rendered, and the page includes controls to copy the full file or reopen it in
|
|
162
168
|
the full non-virtual view.
|
|
@@ -213,9 +219,11 @@ root:
|
|
|
213
219
|
- `db-snapshots.sqlite` — datastore snapshots and diff blobs.
|
|
214
220
|
- `datastore-connections.json` — saved non-secret datastore connection settings.
|
|
215
221
|
|
|
216
|
-
The `.code-viewer` directory is tool-
|
|
217
|
-
tree,
|
|
218
|
-
|
|
222
|
+
The `.code-viewer` directory is tool-managed. It appears in the repository
|
|
223
|
+
tree, and its text files can be inspected in the Code view, but it remains
|
|
224
|
+
excluded from repository searches and diffs. Treat the files as diagnostic
|
|
225
|
+
state rather than hand-edited configuration. Add `.code-viewer/` to
|
|
226
|
+
`.gitignore` if you do not want to share its contents through git.
|
|
219
227
|
|
|
220
228
|
## Datastore Viewer
|
|
221
229
|
|
|
@@ -803,6 +811,8 @@ state is saved per project).
|
|
|
803
811
|
|
|
804
812
|
A copy button on each annotation produces a paste-ready prompt block that
|
|
805
813
|
references the annotation by URL for sharing back into the originating agent.
|
|
814
|
+
The panel-open state, selected session, and selected annotation are also kept
|
|
815
|
+
in the URL, so a reload or shared link restores the same walkthrough context.
|
|
806
816
|
|
|
807
817
|
The `annotate` subcommand talks to the running server for the repository
|
|
808
818
|
(discovered via `~/.cache/code-viewer/servers/`); start one with
|
package/dist/code-viewer.js
CHANGED
|
@@ -196,7 +196,7 @@ function buildRoute(route) {
|
|
|
196
196
|
}
|
|
197
197
|
case "journal": {
|
|
198
198
|
const params = new URLSearchParams;
|
|
199
|
-
if (route.tab && route.tab !== "
|
|
199
|
+
if (route.tab && route.tab !== "tasks")
|
|
200
200
|
params.set("tab", route.tab);
|
|
201
201
|
if (route.date)
|
|
202
202
|
params.set("date", route.date);
|