Repository navigation
Merged
Conversation
…gress bar Next was slow because every page asked cvcpkg.org for facets, which makes it count every match: 1.2 s for page 2 of everything and 2.4 s for page 2 of zlib, against 0.2 s and 0.4 s without. Now only a new query or filter asks for facets (the honest package count); paging reuses that count. After showing a page the search module prefetches the next one in the background and keeps the page it left, so Next and Prev are answered with no request. Requests wait in 50 ms slices (http-get-async and await with a timeout), and between slices the module draws an indeterminate progress bar at the bottom of its view; the package module does too. lib.ari gains search-key, body-text and progress-bar, and search-query takes facets. The fixture logs its requests (/_requests) and answers a slow: name after a second. Module tests show a new query asks for facets and paging doesn't, Next and Prev make no request, and the bar draws during a slow request and clears after; with prefetch disabled they fail.
# Conflicts: # share/cypkg/package.ari # share/cypkg/search.ari # share/cypkg/views.ari
…sign-in A View menu opens a window per page the registry's site has: Builders, Builds (by status, paged), Activity and Account, beside Search. Each is a module in share/cypkg/, started when its window first opens, refreshing about every 10 s while open (idle-wait answers a click at once), with a progress bar at its bottom. Signing in: bin/cypkg --token-env VAR hands a cvctok_ token to ari (--credential-env, bound to the registry by a policy file for the run). main.ari asks the host (has? works only at the top level) and hands auth.* to the modules through a hole; every request then sends the token. Account shows whoami and signs out; a refused token is dropped. Browser sign-in (device pairing) waits on sha256-hex and random-token in libcvc. net.ari holds fetch, now shared by every module, so lib.ari stays pure. --progress off makes plain blocking requests, for a browser ari without transfix/libcvc#914, which CI's browser build now merges. The fixture serves builders, builds, activity and whoami; tests cover each module, the account signed in and out, each window's frame, and opening Builders from the View menu in FTXUI and tvision.
Account > Sign in with a browser runs cvcpkg's device pairing, its OIDC route for a terminal: a random verifier (random-token), its SHA-256 sent to /v1/auth/device, the code and an absolute approval URL shown, and a poll of /v1/auth/device/token at the server's interval (slow_down honoured) with capture_auth taking the access and refresh tokens into the host. Cancel stops it; a denied or expired code says so. main.ari re-asks the host once a token is captured. Sign out revokes a paired session on the server before forgetting it. bin/cypkg keeps the sign-in in ari's credential store (--credential-store cypkg, 0600) unless --no-remember. Pairing needs sha256-hex and random-token (transfix/libcvc#911); CI now merges #911 and #912, and the resolver keeps both sides of docs and test conflicts between open PRs. The fixture plays the pairing endpoints, with /_approve standing in for a person at /link; pairing_test.ari covers approve, revoke, deny, cancel.
transfix
enabled auto-merge (squash)
October 30, 2026 23:13
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.
A menu bar whose View menu opens a window for each page cvcpkg.org's site has: Builders, Builds, Activity and Account, beside Search.
Windows
How they behave:
share/cypkg/{builders,builds,activity,account}.ari), with its view inviews.ari. A closed window's module doesn't start until the window is first opened.idle-waitwaits in 0.1 s slices and answers Refresh at once.--open builders,activityopens windows at start.Sign-in
bin/cypkg --token-env VAR(defaultCYPKG_TOKEN) hands acvctok_token to ari with--credential-env. A policy file written for the run binds it to the registry's origin (Ariadne credentials: several per reply, form and header values, --credential-env (cypkg) transfix/libcvc#895). The documents never see the token.main.ariasks the host whether it holds the credential and handsauth.*to the modules through a hole. It has to, becausehas?doesn't exist inside a module (L18). Every request then carries the token, so private orgs' packages show in search./v1/auth/device/tokenat the server's interval, honouringslow_down.capture_authtakes the access and refresh tokens into the host, so the documents never see them.bin/cypkgremembers the sign-in in ari's credential store (~/.config/cvc/credentials/cypkg, 0600), unless--no-remember.cvcpkg-cli, the only client cvcpkg.org registers, withdevice_label"cypkg".sha256-hexandrandom-tokenfrom state_exec: sha256, sha256-hex and random-token builtins transfix/libcvc#911.Under the hood
share/cypkg/net.arinow holdsfetch, shared by every module, solib.aristays pure.lib.arigainsidle-wait,closed,int-orand table formatters.fetch, and its requests send the token when signed in.--progress offmakes plain blocking requests, for a browserariwithout Ariadne L4: requests in single-threaded wasm don't stall the frame loop transfix/libcvc#914.tools/libcvc-resolve.pykeeps both sides of a conflict in docs or tests between open PRs (#911 against #896).tools/libcvc-resolve.py's twomain.cpprules work in either merge order, now that #887 has merged and #896 meets it from the other side.Tests
tests/run.shpasses locally (94 checks, on an ari from master plus every listed PR), including the integration layer against a real cvcpkg-server:fleet.json), and whoami for a test token.pairing_test.ari: approved (signed in as a session), sign-out revokes on the server, denied, Cancel. The fixture plays the pairing endpoints, and/_approvestands in for a person at/link.fleet_test.ari: the online count, Refresh answered at once, paging, the status filter, activity;account_test.ari: signed in with the test token through--credential-env, whoami, sign-out.Known
arinever resumes, before and after #914, withmain's documents too. It's reported to the L4 session (L19).tree.<id>.openthat a menu item binds as closed, somain.arisets the search window's open state explicitly.