@youtyan/code-viewer 0.8.7 → 0.8.9

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 CHANGED
@@ -152,11 +152,19 @@ A file detail page lays out up to four tabs — **Preview**, **Code**,
152
152
  preview. Media files (images, video, audio, PDF) show a **Preview** tab only
153
153
  — there is no Code tab for binary media. `Blame` and `History` each have
154
154
  their own canonical URL (`view=blame`, `view=history`), so deep links and
155
- the browser back/forward stay in sync. The Blame tab reuses the source
155
+ the browser back/forward stay in sync. Opening another file from the
156
+ repository tree keeps the active tab (a file that cannot be previewed falls
157
+ back to Code). The Blame tab reuses the source
156
158
  view's row component, so line numbers, drag-selection of `line=` ranges,
157
159
  syntax highlighting and the Viewer Settings code font size all match the
158
160
  Code tab.
159
161
 
162
+ When the repository remote is hosted on GitHub, repository and file headers
163
+ include an **Open on GitHub** action. Selecting source lines opens a compact
164
+ action bar for copying the AI reference, opening the exact line range on
165
+ GitHub, or copying that GitHub URL. Markdown and HTML diff cards also expose a
166
+ direct **Preview** shortcut beside the regular file view action.
167
+
160
168
  Very large text files use a virtualized source viewer. Only visible rows are
161
169
  rendered, and the page includes controls to copy the full file or reopen it in
162
170
  the full non-virtual view.
@@ -213,9 +221,11 @@ root:
213
221
  - `db-snapshots.sqlite` — datastore snapshots and diff blobs.
214
222
  - `datastore-connections.json` — saved non-secret datastore connection settings.
215
223
 
216
- The `.code-viewer` directory is tool-internal: it never shows up in the file
217
- tree, searches, or diffs. Add it to `.gitignore` if you do not want to share
218
- its contents through git.
224
+ The `.code-viewer` directory is tool-managed. It appears in the repository
225
+ tree, and its text files can be inspected in the Code view, but it remains
226
+ excluded from repository searches and diffs. Treat the files as diagnostic
227
+ state rather than hand-edited configuration. Add `.code-viewer/` to
228
+ `.gitignore` if you do not want to share its contents through git.
219
229
 
220
230
  ## Datastore Viewer
221
231
 
@@ -803,6 +813,8 @@ state is saved per project).
803
813
 
804
814
  A copy button on each annotation produces a paste-ready prompt block that
805
815
  references the annotation by URL for sharing back into the originating agent.
816
+ The panel-open state, selected session, and selected annotation are also kept
817
+ in the URL, so a reload or shared link restores the same walkthrough context.
806
818
 
807
819
  The `annotate` subcommand talks to the running server for the repository
808
820
  (discovered via `~/.cache/code-viewer/servers/`); start one with
@@ -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 !== "journal")
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);
@@ -12956,7 +12956,8 @@ var init_source_meta = __esm(() => {
12956
12956
  cts: "typescript",
12957
12957
  kts: "kotlin",
12958
12958
  cxx: "cpp",
12959
- hxx: "cpp"
12959
+ hxx: "cpp",
12960
+ gd: "gdscript"
12960
12961
  };
12961
12962
  TEXT_SOURCE_EXTENSIONS = new Set([
12962
12963
  ...Object.keys(EXT_TO_LANG),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youtyan/code-viewer",
3
- "version": "0.8.7",
3
+ "version": "0.8.9",
4
4
  "description": "Local browser-based code and git diff viewer",
5
5
  "type": "module",
6
6
  "bin": {