Skip to content

The cvcpkg recipe for cypkg - #3

Merged
transfix merged 9 commits into
mainfrom
recipe
Oct 30, 2026
Merged

transfix merged 9 commits into
mainfrom
recipe

Conversation

@transfix

Copy link
Copy Markdown
Contributor

cypkg's cvcpkg recipe, in this repo as libcvc's are (recipes/cypkg/). From the repo root, cvcpkg build cypkg finds it.

  • Source and build: it vendors this repo, and one platform: any, build_type_independent build serves every platform: cypkg is documents and launchers, with nothing to compile.
  • What it installs:
    • bin/cypkg and bin/cypkg.cmd;
    • share/cypkg/*.ari;
    • share/doc/cypkg/ (LICENSE, README).
  • Dependency: ari at run time. The launcher runs the ari beside it in the prefix, else the one on PATH.
  • Checked locally:
    • cvcpkg build cypkg --local --platform any --prefix ... installs those files.
    • The installed bin/cypkg, with an ari beside it, ran cypkg against the fixture registry in tmux.
  • CI: a new recipe job builds the package and checks its files and --help.

Not published: no released ari has the libcvc PRs cypkg needs (json-parse, functions:, module on_tick). The recipe says to publish it once one does, with a minimum ari version on the dependency. Until then, an older ari stops at main.ari's requires: and says what it lacks.

tools/site.sh assembles /apps/cypkg/ from ari's xterm.js page
(transfix/libcvc#887) and share/cypkg/. web/ariadne.config.json pins
main.ari, turns the network on for the page's own origin and passes
--server {origin}, so cypkg browses the registry that serves it. The
fixture registry serves a site too (--site), with a strict CSP.

tests/browser.mjs drives the page in headless Chrome over DevTools with
real keys and checks the terminal's text: 7 steps, passing locally. The
first results show 3.7 s after navigation; ari.wasm is 3.1 MB gzipped.

CI gains a browser job that builds ari's single-threaded wasm page from
libcvc with #887 too and runs the test. tools/libcvc.sh does both jobs'
fetching and merging; tools/libcvc-resolve.py resolves the one known
conflict (#887 and #896 in src/ari/main.cpp) and fails on any other.
recipes/cypkg/ vendors this repo and installs bin/cypkg, bin/cypkg.cmd,
share/cypkg/*.ari and the licence; it depends on ari at run time, and
the launcher runs the ari beside it in the prefix. Built locally with
cvcpkg build cypkg --local --platform any, and the installed launcher
ran cypkg against the fixture registry. CI gains a job that builds the
package and checks its files.

Not published: no released ari has the libcvc PRs cypkg needs. The
recipe says to publish with a minimum ari version once one does.
Until a registry serves /apps/cypkg/, CI publishes the browser build to
https://cy-pca.github.io/cypkg/. The browser job assembles it from the
page it just tested, with web/ariadne.config.pages.json
(--net-allow https://cvcpkg.org, --server https://cvcpkg.org), and a
pages job deploys it on pushes to main. tools/site.sh takes the config
as an optional third argument.

That origin needs cvcpkg.org's CORS to allow it. Served locally from a
plain static server, the page loads and runs, and its search is blocked
only by the missing Access-Control-Allow-Origin (roadmap C5).
libcvc master (#889) added #include <cstdlib> at the top of
state_exec_builtins_test.cpp, where #883 adds #include <cmath>, so #883
stopped merging and both CI jobs failed at their checkout. A conflict
whose two sides only add #include lines now keeps both, sorted, in any
file. With it, all seven PRs merge onto master again, and tests/run.sh
passes on the ari built from them.
@transfix
transfix changed the base branch from main to m0-browser October 30, 2026 19:11
In CI every step passed, then rmSync failed with ENOTEMPTY on the
profile Chrome was still writing as it shut down, and the job failed.
Wait for Chrome's exit (at most 5 s), retry the removal, and never let
cleanup change the result.
cy-pca/llm-gate@v1 fails a pull request (and a push to main) whose
commits, title or description carry AI-assistant attribution: co-author
trailers naming an AI, "generated with" footers, AI session links, AI
bot authors. The same workflow as cy-pca/cvcpkg's, on main.
Base automatically changed from m0-browser to main October 30, 2026 19:40
@transfix
transfix merged commit 25af27b into main Oct 30, 2026
7 checks passed
@transfix
transfix deleted the recipe branch October 30, 2026 20:01
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