Use moonbitlang/async for process and file IO

Process execution and file access go through @process and @fs. The spinner
is a background task in a task group, and the C stub keeps only getenv,
exit, isatty, symlink and stderr output. orbit info reads installed state
only, and it records and restores package descriptions. just install adds
Orbit's bin directory to ~/.bashrc once.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Haiku 5.5 committed 2026-11-26 22:40:18 -08:00
1 parent 65e5dc966f
commit ec21287549
11 files changed
+236 -213

No files matched your search

+6 -1
View File
@@ -114,6 +114,10 @@ moon test --target native # semver / manifest unit tests
```
Or run `just install` to build and copy the binary to `~/.local/bin/orbit`.
It also adds Orbit's package bin directory to `~/.bashrc` if the setup line
isn't already there. Open a new Bash shell or run `source ~/.bashrc` to pick
up the change in your current shell. `~/.local/bin` must already be on `PATH`
to run `orbit` itself by name.
Linux only for now: arguments come from `/proc/self/cmdline`. It needs `oras`, `tar` and `/bin/sh` on `PATH`.
@@ -171,4 +175,5 @@ Fixes needed for current MoonBit, kept here in case you build with an older comp
- Dependency resolution is greedy (highest satisfying version, first come), not a SAT solver.
- There's no lock file for concurrent runs, and no install hooks, by design.
- `search` needs the registry's catalog API, which Gitea doesn't expose. Use `orbit info <name>` there.
- `orbit info <name>` reads installed package details without contacting the registry. Use `orbit versions <name>` to check published versions.
- `search` needs the registry's catalog API, which Gitea doesn't expose. Use `orbit versions <name>` if you already know the package name.