Conversation
webcmd has a logo but no character. Nothing greets a fresh `npm install -g @agentrhq/webcmd`, and `--help` shows block-letter wordmark art with no personality. Weaver is a chunky block spider: webcmd crawls a site once and weaves what it learns into local memory, so the character draws the product's own pitch — explore once, execute forever. - src/mascot.ts holds the art, the frames, and the renderer. - The sprite joins the --help banner as a third column, 73 display columns in total, inside the 80-column budget. - postinstall animates it on a global install; setup greets first run. - docs/webcmd-weaver.svg is a vector twin generated from the same sprite, for docs and merch. The art is drawn with filled block glyphs rather than box-drawing outlines so the silhouette survives with color stripped. Color is layered on top and stays purely additive, which is what keeps the existing command-presentation invariant that stripping ANSI from a colored help screen yields the plain one byte for byte. All 14 existing banner tests pass untouched. Animation is gated on the output stream being a TTY — not on prompting being possible — so piped installs and scripted setup runs get a single static frame with no escapes, and CI gets nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013dvZ6uiCdQmpUTTiQ2XJZL
`makeScreenshotCommand` and `makeDumpCommand` hardcoded `/tmp/<site>-*` as their output destination. `/tmp` is not a temp directory on Windows: Node resolves it against the current drive root, so `<site> screenshot` and `<site> dump` create a stray `\tmp` folder at the root of whichever drive the process runs from, and fail outright with EPERM when that root is not writable for the current user. Use `os.tmpdir()` for both defaults and for the `--output` help text, so the shipped `@agentrhq/webcmd/plugin-runtime` factories behave the same on every platform. An explicit `output` argument is still honoured unchanged.
Contributor
🟠 Maintainer review suggested — low confidenceThe automated review could not reach a fully supported conclusion. Limitations
This review is advisory and does not block merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
makeScreenshotCommandandmakeDumpCommandinsrc/plugin-runtime.ts— bothpart of the public
@agentrhq/webcmd/plugin-runtimesurface — hardcode/tmp/<site>-*as their output destination./tmpis not a temp directory on Windows. Node resolves it against the currentdrive root:
So on Windows
<site> screenshotand<site> dumpsilentlymkdirSynca stray\tmpfolder at the root of whichever drive the process happens to run from, andfail with
EPERMwhen that root is not writable for the current user (the commoncase for a non-elevated user on
C:\).The repo supports Windows deliberately —
win32branches already exist inplugin.ts,discovery.ts,skills.ts,external.tsanderrors.ts— so thesetwo defaults are the odd ones out.
Fix
Use
os.tmpdir()for both defaults and for the--outputhelp text. Five lines insrc/plugin-runtime.ts. Behaviour is unchanged on Linux (os.tmpdir()is/tmp),and an explicit
outputargument is still honoured exactly as before.Tests
desktop command factoriestest was asserting the/tmpliteralsitself, so it is rewritten against
os.tmpdir().defaults screenshot and dump output to the OS temp dir: relocates thetemp directory through
TMPDIR(POSIX) /TEMP+TMP(Windows) —os.tmpdir()reads those on every call, so no builtin-module mocking is needed — then asserts
the help text, both returned paths, and every file actually written land inside
it. This fails on Linux too, not just Windows.
Verification
npx vitest run --project unit src/plugin-runtime.test.ts→ 15 passed.src/plugin-runtime.tschange and re-ran the same file → 2 failed,reporting
/tmp/runtime-test-…against the expected temp dir, confirming the newtest genuinely catches the regression rather than passing vacuously.
npx tsc --noEmit→ clean.docs/,skills/,skill-src/,mcp-skills/andplugins/for thesepaths — nothing documents them, so no docs change is needed.
Deliberately out of scope
src/browser/command-catalog.ts:25also mentions/tmp/upload.pdf, but that is ahelp-text example of a caller-supplied path, not a destination webcmd writes to.