Skip to content

feat: add an offline asset CLI for fonts and Twemoji - #39

Merged
otnc merged 1 commit into
mainfrom
feat/offline
Aug 24, 2026
Merged

otnc merged 1 commit into
mainfrom
feat/offline

Conversation

@otnc

@otnc otnc commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds miq/makeitaquote install|uninstall|ls|search|outdated so renders can run with the network down, instead of always fetching fonts and Twemoji on first use. install/uninstall/ls cover downloading, removing and listing what's on disk (Twemoji included); search lists the font names miq knows how to install by name; outdated checks miq itself, Twemoji, and every installed font against what's currently published.
  • Argv parsing, aliases (add/i, remove/rm/un, list, find/s) and --help/--version text are handled by cleye rather than a hand-rolled dispatcher, so the CLI's help is assembled from structured description/examples/alias fields instead of a hand-maintained usage string. Command bodies stay fully dependency-injected and disk/network-free to test (src/cli/commands.ts); only cleye's own console/process.exit-driven paths (--help, --version, unknown args) sit outside that seam.
  • Downloaded fonts and Twemoji default to <project root>/.makeitaquote (nearest ancestor package.json from cwd) rather than a cache shared by every project on the machine, so one project's uninstall can't reach into another's, and two projects on different miq versions don't fight over the same files. MIQ_FONT_CACHE_DIR/MIQ_TWEMOJI_CACHE_DIR still override it.
  • See INFO.md for the cleye and storage-location rationale, and the updated README.md "Offline use" section for the full command table.

Test plan

  • npm run typecheck
  • npm run ci (biome lint + format)
  • npm run test (621 tests)
  • npm run build
  • npm run check:build (63 checks — dual CJS/ESM output, native binding stays external, makeitaquote/api excludes the rendering stack)
  • Manually exercised the compiled CLI (dist/cli/main.mjs): bare invocation, --help/-h, help, --version, an unknown command, every alias, search, and a real install/ls/outdated round trip confirming project-local storage under .makeitaquote/

Adds `miq`/`makeitaquote install|uninstall|ls|search|outdated`, so renders
can run with the network down instead of always fetching fonts and Twemoji
on first use. `install`/`uninstall`/`ls` cover downloading, removing and
listing what's on disk (Twemoji included); `search` lists the font names
miq knows how to install by name; `outdated` checks miq itself, Twemoji,
and every installed font against what's currently published.

Argv parsing, aliases (`add`/`i`, `remove`/`rm`/`un`, `list`, `find`/`s`)
and --help/--version text are handled by cleye rather than a hand-rolled
dispatcher, so the CLI's own help is assembled from structured
description/examples/alias fields instead of a maintained-by-hand usage
string. Command bodies stay fully dependency-injected and disk/network-free
to test; only cleye's own console/process.exit-driven paths sit outside
that seam.

Downloaded fonts and Twemoji default to `<project root>/.makeitaquote`
(nearest ancestor `package.json` from cwd) rather than a cache shared by
every project on the machine, so one project's uninstall can't reach into
another's, and two projects on different miq versions don't fight over the
same files. MIQ_FONT_CACHE_DIR/MIQ_TWEMOJI_CACHE_DIR still override it.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcleye@​2.6.01001009985100

View full report

@otnc otnc self-assigned this Aug 24, 2026
@otnc
otnc merged commit e7d7c4a into main Aug 24, 2026
7 checks passed
@otnc
otnc deleted the feat/offline branch August 24, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant