Repository navigation
One 'mia' command for every service (replaces the up-scripts and ad/md) - #47
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…external Temporal) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…y to run app commands Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… ad and md tasks Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…wns the lifecycle Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…tate_dir or deployment Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…t table lists mia_ops Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…moke note, replay script) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Summary
mia_ops/with a singlepixi run miacommand:up|down|restart|ps [SERVICE...],logs SERVICE [worker|broker],attach SERVICE,exec SERVICE ARGS.... Services come from a gitignoredmia.yaml(mia.yaml.exampletracked): name -> app (autodev|mia-data) + config file. The service name is the tmux session name.temporal.managed: false(or notemporalsection) means an external Temporal (k8s) thatmiaonly health-checks and never starts or stops.managed: trueruns the dev server in its owntemporaltmux session:upstarts it first,downwith no args stops it last,down <service>never touches it.scripts/autodev-up.shandscripts/mia-data-up.sh; per-app differences are a three-field table. Every tmux command line is built withshlex.quote.autodev/ops.py, theup/down/restart/ps/attach/logssubcommands ofautodevandmia-data, and theadandmdpixi tasks. App commands are nowpixi run mia exec <service> <cmd>(sosnippetsno longer needsAUTODEV_CONFIG=...).Stackrefuses services that disagree on the Temporal address or share a config file,paths.state_dirordeployment.Spec:
notes/specs/2026-10-14-mia-services-cli.md. Plan:notes/plans/2026-10-15-mia-services-cli.md.Migration
The dev server's database moves from
<autodev state_dir>-host/temporal.dbtotemporal.state_dir(default~/.local/state/temporal). Stop the old tmux sessions and copy the file before the firstmia up, or pointtemporal.state_dirat the old-hostdir. See the runbook.Test plan
pixi run test(367 passed),pixi run lint,pixi run typecheckpixi run mia ps,pixi run mia exec snippets check(all rows ok)mia up,mia ps,mia logs,mia restart snippets,mia down(ps exits 1),mia upagain; schedules and running workflows carried overDeferred (reviewer minors, not in this PR)
Temporal.hostdoes not strip a URL scheme; namespace-create error omits stderr; managedupon a live-but-unhealthytemporalsession tracebacks;psshows managed Temporal without a health line;mia logs <svc> temporalgives argparse's invalid-choice text; tmux/curl/schedule failures surface as tracebacks; list-shapedmia.yamlgives TypeError; two stale doc phrases (mdCLI, CODEOWNERSscripts/); CLI tests import a fixture across modules.🤖 Generated with Claude Code
@StephanPreibisch