@youtyan/code-viewer 0.6.3 → 0.6.5
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 +14 -12
- package/dist/code-viewer.js +2395 -203
- package/package.json +4 -3
- package/skills/code-viewer-journal/SKILL.md +131 -0
- package/web/app.js +2609 -265
- package/web/index.html +1 -0
- package/web/style.css +1653 -169
- package/web/vendor/README.md +10 -6
- package/web/vendor/THIRD_PARTY_NOTICES.txt +41 -1
- package/web/vendor/highlight.js/highlight.min.js +47301 -1213
package/README.md
CHANGED
|
@@ -101,8 +101,9 @@ Common options:
|
|
|
101
101
|
- `--open` — open the printed URL in the default browser.
|
|
102
102
|
- `--port <port>` — bind to a specific port (default: pick a free port).
|
|
103
103
|
- `--bin <name>=<absolute-path>` — override an external command path
|
|
104
|
-
(`git`, `rg`, or `
|
|
105
|
-
`CODE_VIEWER_BIN_GIT`, `CODE_VIEWER_BIN_RG`,
|
|
104
|
+
(`git`, `rg`, `docker`, or `gh`). The same values can be supplied through
|
|
105
|
+
`CODE_VIEWER_BIN_GIT`, `CODE_VIEWER_BIN_RG`, `CODE_VIEWER_BIN_DOCKER`, and
|
|
106
|
+
`CODE_VIEWER_BIN_GH`.
|
|
106
107
|
- `--scope-omit-dir <name>` — skip a directory under the worktree (repeatable;
|
|
107
108
|
overrides the Viewer Settings list for this session).
|
|
108
109
|
- `--version`, `-v` — print the installed version.
|
|
@@ -512,8 +513,8 @@ stdout and adds `text truncated` to stderr when the server flagged
|
|
|
512
513
|
truncation. `--json` always emits the full server response envelope.
|
|
513
514
|
|
|
514
515
|
AI agents who don't yet know which subcommand they need can run
|
|
515
|
-
`code-viewer agent-help` once. It prints a short index of the
|
|
516
|
-
AI-facing entry points (`status`, `query`, `annotate`, `search`,
|
|
516
|
+
`code-viewer agent-help` once. It prints a short index of the eight
|
|
517
|
+
AI-facing entry points (`status`, `query`, `annotate`, `journal`, `search`,
|
|
517
518
|
`file`, `skill`, `doctor`) with the exact `code-viewer <name>
|
|
518
519
|
agent-help` command for each full guide. The index runs without any
|
|
519
520
|
preflight, so it works even before SQLite or a running server is set
|
|
@@ -666,8 +667,8 @@ including the JSON contract for each subcommand.
|
|
|
666
667
|
|
|
667
668
|
The same diagnostic report behind the Environment Doctor sheet (see
|
|
668
669
|
Features above) is available from the terminal without a browser, so AI
|
|
669
|
-
agents and CI can introspect the runtime, SQLite driver, Git,
|
|
670
|
-
discovery, and snapshot store status directly.
|
|
670
|
+
agents and CI can introspect the runtime, SQLite driver, Git, GitHub CLI,
|
|
671
|
+
Docker discovery, and snapshot store status directly.
|
|
671
672
|
|
|
672
673
|
```sh
|
|
673
674
|
# Human-readable status summary.
|
|
@@ -676,7 +677,7 @@ code-viewer doctor
|
|
|
676
677
|
# Full DoctorReport JSON (matches the /_doctor endpoint).
|
|
677
678
|
code-viewer doctor --json
|
|
678
679
|
code-viewer doctor --cwd /path/to/repo --port 64160 --json
|
|
679
|
-
code-viewer doctor --bin git=/opt/bin/git --bin docker=/opt/bin/docker --json
|
|
680
|
+
code-viewer doctor --bin git=/opt/bin/git --bin docker=/opt/bin/docker --bin gh=/opt/bin/gh --json
|
|
680
681
|
```
|
|
681
682
|
|
|
682
683
|
The exit code is `1` iff the worst check status is `"error"` (never on
|
|
@@ -767,11 +768,12 @@ write concise Markdown explanations, and how to install the bundled agent skill.
|
|
|
767
768
|
|
|
768
769
|
### Agent Skill
|
|
769
770
|
|
|
770
|
-
The package bundles
|
|
771
|
-
(the SKILL.md open standard) — `code-viewer-annotate`,
|
|
772
|
-
and `code-viewer-snapshot` —
|
|
773
|
-
|
|
774
|
-
|
|
771
|
+
The package bundles four [Agent Skills](https://agentskills.io)
|
|
772
|
+
(the SKILL.md open standard) — `code-viewer-annotate`,
|
|
773
|
+
`code-viewer-journal`, `code-viewer-query`, and `code-viewer-snapshot` —
|
|
774
|
+
that teach AI coding agents when and how to use `annotate`, Work Log task
|
|
775
|
+
queues, read-only `query`, and snapshot / diff workflows. A single
|
|
776
|
+
`skill install` copies all four into the selected agent directories:
|
|
775
777
|
|
|
776
778
|
```sh
|
|
777
779
|
npx -y @youtyan/code-viewer skill install # Claude Code (.claude/skills/)
|