~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

Apps on HUD: the web shell, Grain's screens, Android's HUDKit, the SDK

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:app/shell

Brings app/shell to main, a fast-forward (191 commits, nothing on main that app/shell lacks), so HUD's releases come from main from here on and hud.place runs what Grain's apps are built on. Needs your attention as the owner: it lands everything apps on HUD gained since the last merge, and the SDK's first version, 0.2.0, whose release you cut after this lands.

Claude Opus 5.5

What changes

The web shell. @hud/shell draws an app from its app file as a web app: its frame (tabs as a bar, a rail or a sidebar by width), each tab a nav stack of tool results, server-rendered and hydrated, with sessions at HUD for the app's server. An app file's own pages, its sign-in screen, routes and push.

Grain's screens. The feed, galleries, profiles, stories and their pager, notifications, Locations and Cameras, settings, compose and create flows, pinned feeds, drawn by the bundled and operator views with the catalog's new components (Bar, Menu, Panes, Search, Toggle, Choice, Slides, Faces, Map) on the web, iOS and Android.

HUDKit for Android. android/hudkit draws app/shell's components in Compose, with routes, push and feed interactions as iOS's HUDKit has them.

HUD's SDK as packages. @hud/renderer, @hud/shell and @hud/shared (web/shared, now a package) build with svelte-package for HUD's npm registry on knotless; HUDKit publishes to its Swift package registry as hud.HUDKit; hudkit to its Maven repository as place.hud:hudkit. One version for all of HUD, 0.2.0, kept by knope (knope.toml, .changeset/, CHANGELOG.md). release.yml, asked for at main, publishes all three and tags v<version>; release-pull.yml opens the Release <version> pull from change files. docs/sdk.md says how an app takes each.

Why

All HUD work has landed on app/shell, and Grain copies HUD into vendor/hud by commit, which conflicts on nearly every pull. Releases from main, consumed as versioned packages, end that copy.

How it was checked

For the SDK commit: npm run check, npm run unit, npm run ssr, npm run build, npm run package, harness/docs.mjs, layers.mjs and contrast.mjs. A throwaway SvelteKit app installed the three packages from npm pack tarballs, passed svelte-check and built, and its server drew Grain's feed tree with Tree. HUDKit's archive (git archive --prefix=HUDKit/ of ios/HUDKit) served by a local SE-0292 registry resolved as hud.HUDKit 0.2.0 with swift package resolve, and an iOS package depending on it built with xcodebuild for the simulator. ./gradlew :hudkit:publishToMavenLocal published the AAR, sources, POM and module metadata, and a new Android app on place.hud:hudkit:0.2.0 from mavenLocal() assembled, MapLibre's OpenGL build in its classpath and no Vulkan one. The rest of the range is left to this pull's checks.

Shortcomings

release.yml hasn't run: it needs RELEASE_PASSWORD, an app password of chadtmiller.com's, sealed to ci.knotless.dev for main. Until knotless.dev serves its Swift and Maven registries, it builds HUDKit and hudkit and skips publishing them. Nothing is published by this landing.

Review

The range is many reviewed commits. For the SDK, start at docs/sdk.md, knope.toml and .knotless/workflows/release.yml.

Approved

This fast-forwards app/shell into main and adds the web shell, Grain's screens, Android's hudkit and the SDK packaging. I found nothing to change in what I read, but I read only a small part of it.

Not read. The diff is 457 files and about 112k lines, and the range diff is about 4 MB. I read the SDK files you pointed to:

  • .knotless/workflows/release.yml and release-pull.yml
  • knope.toml, CHANGELOG.md and Cargo.toml
  • android/gradle.properties and android/hudkit/build.gradle.kts
  • the three web package manifests (web/renderer, web/shared, web/shell)

I did not read the rest, including:

  • the Rust crates
  • the Svelte shell and renderer
  • the Kotlin and Swift sources
  • Grain's view JSON
  • the lexicons

My approval covers the SDK and release machinery only. The review of the remaining commits rests on your earlier reviews and on CI.

What I checked.

  • The versions agree: 0.2.0 in Cargo.toml, gradle.properties, the three package manifests and CHANGELOG.
  • Every versioned file knope.toml names matches those. release.yml's check for a CHANGELOG section for the version will pass.
  • release.yml publishes only from main, because the on: {refs: [refs/heads/main]} filter sits on each publish and tag step, and the secret is granted to main alone. Each publish step skips a version already out.
  • The npm token is written to ~/.npmrc and removed afterwards. The knope download is pinned by SHA-256 and the Android tools by SHA-1.
  • release-pull.yml's version arithmetic (a minor or major bumps 0.x's minor) and its heredoc quoting look right.

Checks. check, test, web, lexicons, e2e and e2e-spaces had not finished when I looked; docs passed. Those gates decide the rest.

One thing to watch. release.yml has never run, as your body says. Its first run on main is the real test of the RELEASE_PASSWORD grant and the npm publish. The tag step is last, so a failed publish leaves no v0.2.0 tag.

Approved

My approval at 328b2a8 stands. The only change since is to crates/hud-core/src/oauth/tests.rs. The test now expects social.grain:/oauth/callback to be accepted for the app client, and it refuses another path, a query, a host and https. This matches issuer::app_redirect_uri as it already is on the branch. That function accepts only a private-use URI whose path is exactly /oauth/callback, with no host and no query. Its doc comment says plainly that any app may claim any scheme and that PKCE binds the code to the request. The test no longer asserts that com.evil.app:/oauth/callback is refused. That follows from the design and does not look like a regression.

The checks for 80ff38a (check, test, web, lexicons, e2e and e2e-spaces) were still queued or running when I looked. docs passed. I read nothing else beyond the range diff and the redirect code above.

Approved

My approval at 80ff38a mostly stands, but I read only part of what came after it. Three commits landed since:

  • df2008e, hud check. This commit adds hud check <dir>, an app file's hud version requirement, optional ?key views, an app's own lexicons/, and the generated JSON Schemas under schemas/json. It is about 295k characters of diff, mostly generated schema output. I could not read it, and my approval doesn't cover it. It rests on your tests, harness/schemas.mjs and CI.
  • a35a6d8, changelog and docs. I did not read this one either. It only adds CHANGELOG, docs/sdk.md and views.md notes, plus two tests.
  • 13b5352, OAuth test. I read this one. It is rustfmt reformatting of one match arm in crates/hud-core/src/oauth/tests.rs, with no behaviour change.

Nothing I read breaks what I approved earlier. The checks for 13b5352 (check, test, web, lexicons, e2e, e2e-spaces) were still queued or running when I looked. docs passed. Those gates decide the unread part, especially the new hud check loader. It now refuses any app file whose hud requirement is newer than this HUD's version, so check that your own apps' hud values are satisfied by 0.2.0.

Approved

My approval at 13b5352 stands. One commit has landed since, and it only changes the registry URLs. They now name the repository by its key, 3n2kdckpvmnlo, instead of hud. The change touches release.yml's three registry env vars, the default Maven URL in android/hudkit/build.gradle.kts, the publishConfig in the three web package manifests, and docs/sdk.md. A search at the head finds no …/hud/ registry URL left, so the files agree with each other. The docs sentence is also correct: the key is stable, whereas the name can be renamed. I haven't confirmed that knotless.dev resolves registries by repository key. Your body says it doesn't serve the Swift and Maven registries yet, so the first real publish will test that. The checks for 0ce953e were all still queued when I looked.

Merged as 3a99df9