7 Commits
Author SHA1 Message Date
yuez c933eb39ad fix(ci): boot-check musl artifacts on Alpine, not the glibc runner 2026-10-28 16:36:34 +08:00
yuez cbe73b9aa4 fix(ci): gate secret steps on env, not the secrets context (invalid in if:) 2026-10-28 14:16:07 +08:00
yuez a50bb6e8e3 ci: add verify-secrets workflow for the Homebrew tap token and AUR key 2026-10-28 14:14:32 +08:00
yuez d2e20d428a feat: session-first workspace activity and installable daemon
Workspaces page:
- list the newest sessions across workspaces in the activity column; the
  daemon exposes GET /api/v1/sessions/recent as a disk projection and the
  browser enriches live rows from the per-workspace session relay
- put recent activity first below 1100px and fix the mobile page-header
  flex-basis gap

Smoke:
- pin PI2_HOST=127.0.0.1 in both smoke scripts and make the startup-line
  assertion follow the configured host; the daemon default stays 0.0.0.0

Install:
- standalone binary build/install scripts, packaging templates, CI/release
  hooks, CLI-first install docs and the supporting config/doctor changes
2026-10-28 10:53:48 +08:00
yuez 2589e6df72 build: publish the npm package as @yuez/pi2d
The unscoped name was rejected by the registry's similarity filter ("too similar
to existing packages pify, ping, pino, pm2, uid"), so the package moves under the
maintainer's npm scope, which is not subject to that heuristic.

The executable is still `pi2`, the GitHub repository is still `zgs225/pi2d` (the
trusted publisher matches on owner/repo/workflow filename, not the npm name), and
the tarball contents are unchanged. The releasing checklist also had the npm
account wrong: the registry account is `yuez`, while `zgs225` is the GitHub owner
the trusted publisher is configured against.
2026-10-23 10:31:32 +08:00
yuez ef0d9b9125 ci: publish npm with Trusted Publishing instead of a token
The release job now authenticates with the GitHub OIDC token: `id-token: write`,
no NPM_TOKEN anywhere near the publish step, and a guard that fails when a
leftover repository secret is still mapped in. npm 11.5.1+ is required for
trusted publishing and setup-node's node 22 ships npm 10, so the job upgrades npm
and asserts npm/node versions plus the presence of the OIDC endpoint before
publishing. Provenance then comes for free.

docs/releasing.md documents the unavoidable bootstrap: npm only offers the
trusted-publisher settings page once the package exists, so the first version is
published from the maintainer's machine and every later one from CI.
2026-10-23 10:08:15 +08:00
yuez e32e86a377 ci: add a check pipeline and a tag-driven npm release
ci runs typecheck + unit tests + build + scripts/smoke.sh and asserts the
publishable tarball embeds dist/ and web/dist/ without leaking src/ or test/.

release verifies the tag matches package.json, runs the tests and publishes
with provenance.
2026-10-22 17:19:38 +08:00