@youtyan/code-viewer 0.1.45 → 0.1.47
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 +11 -0
- package/package.json +1 -1
- package/web/app.js +887 -82
- package/web/index.html +5 -0
- package/web/style.css +174 -21
package/README.md
CHANGED
|
@@ -13,6 +13,8 @@ Requires Node.js 20 or newer when installed from npm. Development uses
|
|
|
13
13
|
- Open files directly from the repository or diff view, including large generated files.
|
|
14
14
|
- Preview Markdown with a table of contents, task lists, Mermaid diagrams, and Shiki code highlighting.
|
|
15
15
|
- Preview browser-safe media and show metadata for binary files that cannot be rendered.
|
|
16
|
+
- Switch the viewer UI between English and Japanese from Viewer Settings.
|
|
17
|
+
- Read the built-in Help page for repository browsing, diffs, annotations, agent skills, and shortcuts.
|
|
16
18
|
- Open repository folders in the OS file manager from localhost-only actions.
|
|
17
19
|
- Upload files into worktree folders when upload is explicitly enabled.
|
|
18
20
|
|
|
@@ -64,6 +66,11 @@ code-viewer HEAD~1 HEAD
|
|
|
64
66
|
code-viewer --cwd /path/to/repo --staged
|
|
65
67
|
```
|
|
66
68
|
|
|
69
|
+
Open **Viewer Settings** in the header to change display options such as
|
|
70
|
+
theme, layout, sidebar mode, font sizes, and UI language. The language setting
|
|
71
|
+
translates the viewer chrome itself, including the Help page, settings labels,
|
|
72
|
+
sidebars, history controls, and annotation panel labels.
|
|
73
|
+
|
|
67
74
|
## Repository View
|
|
68
75
|
|
|
69
76
|
Open the root URL to browse the repository tree. Folder pages keep the sidebar
|
|
@@ -150,6 +157,10 @@ than the current directory, or `--server <url>` to target a specific server.
|
|
|
150
157
|
run `annotate start` again to begin a new session, or pass `--session <id>`
|
|
151
158
|
to target a specific one.
|
|
152
159
|
|
|
160
|
+
The in-app Help page includes a dedicated annotations guide for AI agents,
|
|
161
|
+
covering when to start a session, how to choose focused line ranges, how to
|
|
162
|
+
write concise Markdown explanations, and how to install the bundled agent skill.
|
|
163
|
+
|
|
153
164
|
### Agent Skill
|
|
154
165
|
|
|
155
166
|
The package bundles an [Agent Skill](https://agentskills.io) (the SKILL.md
|