Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `.github/workflows/release-notify-tagged.yml`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
Problem: this repo's @bitbaum package was published to npm with a maintainer token, so nothing proves npm trusts this workflow, and the next release is the first test. Change: the fleet's current publish.yml (bitbaum/fleet#314): the same publish path as before, plus a diagnose_auth input on Run workflow that asks npm whether it trusts this workflow for this package (HTTP 200 linked, 404 not) and publishes nothing.
Problem: the README told a reader to install a Git tag or a raw commit (2 files changed, 21 insertions(+), 1 deletion(-)). The package is on npm and fleet's SHARED.md and registers/packages.json name npm as the install route; a Git pin hides the version and defeats semver updates. Change: the install line is the npm one. Nothing else in the README changed.
Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `.github/workflows/release-notify.yml`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `AGENTS.md`
- `CLAUDE.md`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `.github/dependabot.yml`
- `.github/workflows/git-release.yml`
- `.github/workflows/release.yml`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
One publish.yml for every @bitbaum package:
- a merged version bump releases itself (also v* tags, and Run workflow);
- already on npm → tokenless Trusted Publishing (OIDC) with provenance;
- not on npm yet → the first version uses the org secret
NPM_BOOTSTRAP_TOKEN, then links this workflow as trusted publisher;
- neither → skips green and says what is missing.
The unscoped name "listkit" belongs to someone else on npm. Consumers that
install from git keep working: their alias name is theirs to choose.
Author set to Cato, the public name.
Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk
Co-authored-by: Claude <noreply@anthropic.com>
v0.1 matched the whole query as one substring and sorted matches like
any other row. Three ways that failed people:
- word order: "bike sell" did not find "Sell my old bike";
- accents: "zurich" did not find "Zürich", "strasse" not "Straße";
- ranking: a title hit and a hit deep in a description sorted alike.
Now (src/search.ts):
- searchMatches: every folded word must appear in some field;
- normalise: NFKD, marks stripped, ß→ss, casefold, collapse spaces;
- searchScore: field position (most important first) × match quality
(whole field > field start > word start > inside), plus a phrase bonus;
- applyQuery ranks by score while a search is active and the sort is the
default; ties keep the default order; a chosen sort wins;
`?sort=relevance` asks explicitly; `search.rank: false` opts out;
- searchTerms(q) so SQL builders AND one likeContains per word.
Filtering only widens (no previous match is lost), so this is a minor
bump. 9 new tests; verify green.
Claude-Session: https://claude.ai/code/session_01TAtbutb1k6VKYMPLVfSt92
Co-authored-by: Claude <noreply@anthropic.com>
* feat(ci): listkit had a complete verify and nothing to run it
The repo shipped its entire first commit with `format:check && lint &&
typecheck && build && test`, 43 passing tests — and no .github directory
at all. fleet's floor audit reported it as "CI never runs verify", which
understated the case: there was nothing to run anything. Every push and
every PR landed ungated.
A shared package is the worst place in the fleet for that hole. A break
here does not stay here; it reaches every adopter at their next install,
and the first signal is their build, not ours.
ci.yml is the golden floor from fleet templates/ci/ci-pnpm.yml with two
deliberate departures, both noted in the file:
- no .next/cache step — this is a library, not a Next app;
- no separate Build step. The template carries one because `verify` is
usually lint+typecheck+test and the shipped artifact is otherwise
never compiled. Here `verify` already ends in `build`, so a second
step would compile the package twice per run for no extra coverage —
the same defect as a deploy re-running CI's bundle, which the hygiene
audit keeps at zero.
auto-merge.yml calls the reusable sweep rather than copying it (22 copies
once drifted into 8 versions). No deploy_workflow: listkit is a package
with no box to reconcile against, and naming a workflow the repo does not
have is precisely the `automerge-miswired` finding.
Proven the gate can go red rather than asserted. `verify` first caught
this commit's own unformatted YAML. Then, by mutation: dropping the
Math.max(1, …) clamp on the requested page turned test 34 — "a nonsense
page or size can never produce a negative slice" — red, and restoring it
returned 43/43. Baseline green, mutant red, restored green.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(ci): pnpm version is pinned in package.json, not twice
pnpm/action-setup@v4 hard-errors when a `version:` input sits alongside
package.json `packageManager` — "Multiple versions of pnpm specified" —
and kills the run in 5 seconds before a step executes.
The fleet template carried that input while all seven pnpm repos checked
had quietly dropped it, so the golden floor could not be copied into any
repo that pins packageManager, which is all of them. Copying it verbatim
here is what surfaced it; fleet's template is corrected in the same pass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Filtering, sorting, searching and paging are the same problem everywhere
and were solved separately everywhere. A survey of twelve repositories in
this fleet on 2026-09-11 found twelve incompatible filter-state shapes and
no two alike, ~34 hand-built URL builders, ~25 copies of "toggle a value
in a set" in two encodings, ~11 debounces at five different delays, ~11
copies of Math.ceil(total / pageSize) with three in one repo, and three of
the seven repos that need to escape a SQL LIKE pattern doing so.
Two of the toggle copies are character-for-character identical in repos
that share no code. One repo writes the same three-line body eight times
for eight facets plus eleven more for its boolean flags — about a hundred
and twenty lines expressing one idea. This is well past the rule of three.
Four live bugs were among the URL builders, and the codec here exists so
they cannot be written again: a preset that rebuilt the params from
scratch and wiped the reader's search; a date range that did not clear
page and stranded the reader past the end; a builder that preserved three
params by name so every later param had to be remembered in six template
strings; and a debounced box using push rather than replace, so the back
button walked through every spelling of the word.
What it ships is the decisions. Five facet kinds — one, many, flag, range,
ordinal — with the empty selection as the only sentinel, because one repo
used its translated label as the all-value and made filter identity depend
on the reader's language. A comparator that puts missing values last in
BOTH directions, since a record with no date is not the oldest record. Page
arithmetic that cannot produce a negative offset and gives an empty list
one page rather than "page 1 of 0". Facet counts computed with that
facet's own selection lifted, so an unselected option never reads as a
dead end.
What it deliberately does not ship is markup, tokens, React, a search
engine or an HTTP client. Nine token vocabularies and six chip treatments
were found among the same repos, several different on purpose. The fleet
has already run the experiment where a shared renderer owns the markup: it
reached two consumers of twenty and shipped the same two defects to both,
unfixable downstream. Centralize the rule; render it locally.
43 tests, importing the package by name so a broken exports map fails here
rather than at the first consumer's install.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY