Skip to main content

Mere

@jeremy/merev2026.11.13.4· MIT· 10d agoBEHAVIORSWORKFLOWSREPORTSACCEPTED WARNINGS
01README

Mere recipe behaviors: parsing, upstream version lookup, bumping, and rebuilding recipes, with a pinned toolchain.

02Behaviors4
@jeremy/mere/sourcev2026.11.04.1source.ts

Global Arguments

ArgumentTypeDescription
githubToken?stringOptional. Falls back to GITHUB_TOKEN, GH_TOKEN, then `gh auth token`.
anityaBaseUrl?string
fn prepareBump(recipeBinding?: string, recipe: string, version?: string)
Decide and prepare a version bump for one recipe: look up upstream,
ArgumentTypeDescription
recipeBinding?string
recipestring
version?stringEmpty targets the newest stable release in the recipe's current
fn latest(name: string, currentVersion: string, url?: string, sourceUrl?: string, anityaProjectId?: number)
Find the newest stable upstream version of one recipe: GitHub tags
ArgumentTypeDescription
namestring
currentVersionstring
url?string
sourceUrl?string
anityaProjectId?number
fn scanLatest(recipeBinding?: string, concurrency?: number)
Look up the latest upstream version of every recipe in one call
ArgumentTypeDescription
recipeBinding?string
concurrency?number
fn fetchHash(url: string)
Download an HTTPS source and compute BLAKE3 without shell commands. HTTPS redirects are followed (max 5); a verified cache is reused by URL.
ArgumentTypeDescription
urlstring

Resources

bump(infinite)— What a bump of one recipe will do, with its new source hashes
upstream(infinite)— Latest upstream version of one recipe
artifact(infinite)— Downloaded source and its BLAKE3 digest
@jeremy/mere/toolchainv2026.11.04.1toolchain.ts

Global Arguments

ArgumentTypeDescription
mereVersionstring
mereRoot?stringIsolated mere root. Empty derives .swamp/mere/<name>/root under the repo.
configUrl?string
publicKeyUrl?string
fn provision(archivePath: string, sha256: string)
Install an already-downloaded, checksum-verified mere binary and
ArgumentTypeDescription
archivePathstringPath of the mere binary already downloaded and checksum-verified by a
sha256stringExpected SHA-256 of the file at archivePath (from the release's SHA256SUMS).
fn status(sha256: string)
Re-verify the installed binary's digest and report the root's state.
ArgumentTypeDescription
sha256string

Resources

toolchain(infinite)— The provisioned mere binary and isolated root
@jeremy/mere/profilev2026.11.08.3profile.ts

Global Arguments

ArgumentTypeDescription
toolchain?stringName of the @jeremy/mere/toolchain binding whose provisioned binary and root this profile uses.
fn run(packages: array, argv: array, workdir?: string)
Create a temporary package profile in the provisioned Mere root and run an exact argv without shell interpretation.
ArgumentTypeDescription
packagesarrayExact Mere package names to make available in the isolated profile.
argvarrayExact command argv; argv[0] is the executable. No shell is used.
workdir?stringWorking directory for the command. The directory must exist on the host running this step.

Resources

result(infinite)— Profile command execution result
@jeremy/mere/recipev2026.11.08.11recipe.ts

Global Arguments

ArgumentTypeDescription
repoUrl?stringGit URL of the recipe repository: https, ssh:// or scp-style (git@host:path).
ref?string
checkoutPath?stringEmpty derives .swamp/mere/checkouts/merelinux under the repo.
toolchain?stringName of the @jeremy/mere/toolchain behavior whose provisioned mere
ensureCheckout?booleanClone or update the checkout through @swamp/git before reading. Set
signingKey?stringOptional base64 Mere .key signing key. The key is written only to
fn workspace(key: string)
Compute the standard paths for one piece of work: the shared
ArgumentTypeDescription
keystring
fn cleanWorktree(key: string, branch: string)
Remove a stale bump worktree and its local branch so a retry starts
ArgumentTypeDescription
keystring
branchstring
fn dependents(name: string)
List the recipes whose `depends` name this recipe or its -dev
ArgumentTypeDescription
namestring
fn summarize(recipe: string, sourceBinding?: string, runId: string)
Write the title, commit message, PR body and labels for a bump from
ArgumentTypeDescription
recipestring
sourceBinding?string
runIdstring
fn validate(recipe: string, checkoutPath: string)
Run `mere dev validate` on a recipe in a worktree: mere is the
ArgumentTypeDescription
recipestring
checkoutPathstringThe per-run worktree holding the recipe to check; absolute.
fn build()
Run `mere dev build` on a recipe in a worktree, in the isolated
fn setVersion(recipe: string, version: string, release?: number, sources?: array, checkoutPath: string, allowHardcodedVersion?: boolean)
Move a recipe to a new version in a worktree: edits only the version
ArgumentTypeDescription
recipestring
versionstring
release?number
sources?array
checkoutPathstringThe per-run worktree to edit. Never the shared checkout; required.
allowHardcodedVersion?boolean
fn bumpRelease()
Increment a recipe's release number in a worktree without changing
fn importOutputs(repository?: string)
Import the latest build outputs into a named isolated Mere development
ArgumentTypeDescription
repository?stringLocal development repository name under the isolated Mere root.
fn read(recipe: string)
Parse one recipe (<category>/<name>) from the checkout.
ArgumentTypeDescription
recipestring
fn scan()
Parse every recipe in the tree in one pass (one resource per recipe).

Resources

recipe(infinite)— One parsed recipe
change(infinite)— A recorded edit of one recipe: before and after
workspace(infinite)— Standard paths for one bump run: shared checkout and worktree
cleanup(infinite)— Result of removing a stale bump worktree
summary(infinite)— Title, commit message, PR body and labels for a change
dependents(infinite)— Recipes that depend on one recipe
validation(infinite)— Result of `mere dev validate` on one recipe
build(infinite)— Result of `mere dev build` on one recipe, with its outputs
import(infinite)— Result of importing built package outputs into a local repository
scan(infinite)— Outcome of a tree scan, including recipes that failed to parse

Files

buildLog(text/plain)— mere's build log for the latest build of a recipe
03Workflows3
@jeremy/mere/recipe-scan47f78aa9-727f-4d8d-ada1-32688f61d7e2

Parse every merelinux recipe, then look up each one's latest upstream version. Read-only and token-free; run on a schedule, then read the upstream-drift report.

scan
1.parse${{ inputs.recipeBinding }}.scan— Parse the recipe tree (one resource per recipe)
2.latest${{ inputs.sourceBinding }}.scanLatest— Look up the latest upstream version of every recipe
@jeremy/mere/recipe-bump29d815ec-61b9-4472-b17c-df785b8a9f88

Bump one merelinux recipe: decide the target version, download and hash its sources, edit the recipe in a per-run worktree, validate and build it with mere, import the outputs into an isolated local repository, run an exact argv smoke test through `@jeremy/mere/profile`, write the PR text from data, then hand the change to @jeremy/mere-delivery/deliver-change. No model calls. Defaults to the newest stable release in the recipe's current series; pass version to move to another.

prepare
1.scan${{ inputs.recipeBinding }}.scan— Update the checkout and parse the tree
2.plan${{ inputs.sourceBinding }}.prepareBump— Pick the target version and hash its sources
build
1.workspace${{ inputs.recipeBinding }}.workspace— Paths for this bump; the worktree is named by the branch
2.clean${{ inputs.recipeBinding }}.cleanWorktree— Remove a stale worktree and local branch from an earlier try
3.worktree— A per-run worktree on the bump branch
4.set-version${{ inputs.recipeBinding }}.setVersion
5.validate${{ inputs.recipeBinding }}.validate
6.build${{ inputs.recipeBinding }}.build
7.import-outputs${{ inputs.recipeBinding }}.importOutputs— Import the current build outputs into the isolated local repository
8.smoke-installed-packages— Run exact argv in the imported package profile
9.summarize${{ inputs.recipeBinding }}.summarize— Write the PR text from recorded data
deliver
1.deliver-change
@jeremy/mere/recipe-rebuild674e3d4d-56fb-4496-af95-1f97a50b2f3a

Increment one merelinux recipe's release, validate and rebuild it with mere, then hand the scoped change to @jeremy/mere-delivery/deliver-change. The caller states why the rebuild is needed, and that reason is the pull-request body. No source-version lookup or model calls.

prepare
1.scan${{ inputs.recipeBinding }}.scan— Update the checkout and parse the tree
build
1.workspace${{ inputs.recipeBinding }}.workspace— Paths for this rebuild; the worktree is named by the branch
2.clean${{ inputs.recipeBinding }}.cleanWorktree— Remove a stale worktree and local branch from an earlier try
3.worktree— A per-run worktree on the rebuild branch
4.bump-release${{ inputs.recipeBinding }}.bumpRelease— Increment only the recipe release number
5.validate${{ inputs.recipeBinding }}.validate
6.build${{ inputs.recipeBinding }}.build
deliver
1.deliver-change
04Reports2
@jeremy/mere/build-summaryworkflow
build_summary.ts

Summarize recipe build results, package outputs, durations, and failures recorded by a workflow.

merebuild
@jeremy/mere/upstream-driftworkflow
upstream_drift.ts

Which merelinux recipes are behind upstream, which could not be checked, and why.

meredrift
05Previous Versions19
2026.11.13.3MIT

Removed 3 behaviors. Removed 2 workflows. updated dependencies

2026.11.12.1MIT
2026.11.10.4MIT
2026.11.10.3MIT
2026.11.10.2MIT
2026.11.10.1MIT
2026.11.09.1MIT
2026.11.08.11MIT
2026.11.08.10MIT
2026.11.08.9MIT
2026.11.08.8MIT
2026.11.08.7MIT
2026.11.08.6MIT
2026.11.08.5MIT
2026.11.08.4MIT

Modified 1 behaviors

2026.11.08.3MIT

Added 1 behaviors

2026.11.08.2MIT

Added 1 reports. updated dependencies

2026.11.08.1MIT

Added 1 behaviors

2026.11.07.2MIT

Modified 1 workflows

06Stats
A
100 / 100
Downloads
20
Archive size
88.4 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned

08Platforms
09Labels