Repository navigation
Make JevFish installable in one line and findable at all - #4
Merged
Merged
Conversation
Two measured defects, both verified before and after. 1. The wheel shipped no UI. `uv build --wheel` gave 34 files with no web/dist, because PACKAGE_ROOT was Path(__file__).parents[2]: the repo root from a checkout, and a nonsense path inside site-packages once installed. So an installed copy served / as a 404, the bundled example seed was missing, and the key file resolved somewhere unwritable. New assets.py is the only module that knows where things live. Read-only assets moved inside the package (src/jevfish/web_dist, src/jevfish/ examples) and resolve through importlib.resources; anything written goes to the platform user-data directory. vite now builds straight into the package. PACKAGE_ROOT is gone. 2. The install was 1.1 GB and 97 percent of it was never used. camel-oasis pulled sentence-transformers, which pulled torch at 553 MB, plus scipy, transformers, pandas, sympy and sklearn. JevFish does no local inference. camel-ai, camel-oasis and PDF support are now optional extras, mcp is dropped (declared with zero imports anywhere), and pymupdf becomes pypdf. pymupdf mattered for a second reason: it is AGPL-3.0 or a paid Artifex licence, so dropping it removes a copyleft obligation that had nothing to do with MiroFish. pypdf is BSD-3-Clause. Measured, clean venv each time: core install 27 MB (was 1,100 MB) with all extras 993 MB wheel 49 files, carries web_dist and examples GET / 200 GET /api/health 200 JS bundle 200, 301,083 bytes default data_dir ~/Library/Application Support/jevfish, outside the package torch present False The full five-stage pipeline runs from the installed copy. Asking for the reddit platform without the extra now prints the install command and points at --platform lite, rather than a bare ModuleNotFoundError. Tests: 162 pass with extras, 158 pass and 4 skip on a core install, so the suite is honest either way. One test was retargeted after it revealed that the refusal fires in _import_oasis rather than make_platform, since oasis_platform imports oasis lazily. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The repo presented itself as MiroFish. The old root README opened with MiroFish's logo, its Trendshift badge, its Discord and star badges and its vision statement, mentioned MiroFish 30 times against JevFish 10, and put its first runnable command at line 112. Against 46 comparable repos the median first command sits at line 60 and ollama's at 15. New README: first command at line 11, 4 MiroFish mentions against 28 JevFish, 3 badges. It leads with the keyless demo, which already worked and was invisible, then the install, then what the tool will NOT do, placed above the screenshots on purpose: that the number is not a real-world rate, that with no resolved outcomes it reports no trustworthy interval and says so, and that it checks whether it is quoting your own prompt. MiroFish's READMEs move to docs/UPSTREAM-README.md and -ZH.md, which is also where the licence notice now points. AGPL obligations we were not meeting, all now met: section 4 NOTICE file with the copyright and warranty disclaimer section 5(a) the modification notice is now dated (17 September 2026) section 5(b) a licence section in prose, not just a LICENSE file section 6(d) release bodies will carry the source pointer Plus THIRD_PARTY.md listing every component and its licence, and recording why PyMuPDF was dropped (itself AGPL, so it carried an obligation unrelated to MiroFish) and why mcp was dropped (declared, never imported). Also deletes .github/workflows/update-star-history.yml and its data, 36 KB of scheduled job charting 666ghj/MiroFish's star count. We were advertising someone else's numbers on our own repo. Repo metadata set via gh: renamed markiewee/mirofish-jev to markiewee/jevfish, own description, own homepage, and 10 topics where there were none. Still fork=true, which is a one-click web-UI action with no API. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Packaging and presentation. No change to how a run executes.
Two measured defects
1. The wheel shipped no UI.
uv build --wheelgave 34 files with noweb/dist, becausePACKAGE_ROOTwasPath(__file__).resolve().parents[2]: the repo root from a checkout, and a nonsense path insidesite-packagesonce installed. Verified consequences: an installed copy served/as a 404, the bundled example seed was missing so "Fill in the example" broke, and the key file and data directory resolved somewhere unwritable.2. The install was 1.1 GB and 97 percent was never used.
camel-oasispulledsentence-transformers, which pulled torch at 553 MB, plus scipy 83, transformers 59, pandas 49, sympy 42, sklearn 34 and numpy 26. JevFish does no local inference; it makes HTTP calls to Jev and to an OpenAI-compatible endpoint. The code was already ready for this:make_platformand the PDF reader both already imported lazily, so only the dependency declaration forced the download.What is in it
assets.py, the only module that knows where files live. Read-only assets moved inside the package (src/jevfish/web_dist,src/jevfish/examples) and resolve throughimportlib.resources; anything written goes to the platform user-data directory.vitenow builds straight into the package.PACKAGE_ROOTis gone.camel-aiandcamel-oasisbecome[oasis], PDF support becomes[pdf].mcpis dropped, having been declared with zero imports anywhere.pymupdfbecomespypdf, which also removes a copyleft obligation: PyMuPDF is itself AGPL-3.0 or a paid Artifex licence, so it burdenedjevfish/independently of MiroFish.pypdfis BSD-3-Clause.NOTICE(section 4), a dated modification notice (5(a)), a licence section in prose (5(b)), andTHIRD_PARTY.md. Deletesupdate-star-history.ymland its data, 36 KB of scheduled job charting upstream's star count on our own repo.--platform lite, instead of a bareModuleNotFoundError.Measured, clean venv each time
web_distandexamplesGET /GET /api/healthdata_dir~/Library/Application Support/jevfishThe full five-stage pipeline runs from the installed copy.
Repo identity
Renamed
markiewee/mirofish-jevtomarkiewee/jevfishviagh, with its own description, its own homepage (wasmirofish.ai) and 10 topics where there were none.Still outstanding and it needs one click: the repo is
fork=true, and GitHub excludes forks from repository search and from topic pages. Searchingmirofish-jevreturned 0 results; withfork:trueit returned 1. Natural experiment in the same ecosystem, both figures checked against the API:nikmcfly/MiroFish-Offline, detached with 10 topics, has 2,522 stars, whileEleutheroiEdge/mirofish-offline, a fork with 0 topics and a byte-identical description, has 0. Leaving the fork network is self-service in Settings, Danger Zone, and safe here (0 stars, 0 forks, 0 open issues), but there is no REST endpoint for it and it sits next to Delete, so a human should do it.Testing
175 pass with extras; 158 pass and 4 skip on a core install, so the suite is honest either way. New
test_assets.pyandtest_optional_extras.py. The PDF test now builds a 561-byte PDF by hand, becausepypdfreads but cannot author and pulling in a writer would undo the point.One test was retargeted after it revealed the extras refusal actually fires in
_import_oasisrather thanmake_platform, sinceoasis_platformimports oasis lazily. The test now matches where the error really surfaces, verified against a real 27 MB install.🤖 Generated with Claude Code