Skip to content

feat: amicode-managed Julia setup via juliaup (#8, layers 1-3) - #151

Merged
jack-champagne merged 2 commits into
mainfrom
feat/julia-managed-setup
Jul 16, 2026
Merged

feat: amicode-managed Julia setup via juliaup (#8, layers 1-3)#151
jack-champagne merged 2 commits into
mainfrom
feat/julia-managed-setup

Conversation

@jack-champagne

Copy link
Copy Markdown
Member

#8: amicode manages the Julia toolchain via juliaup instead of dying and
telling the user to do it by hand. Pins the juliaup channel to the Manifest's
minor (1.12 → latest patch, e.g. 1.12.6 vs the pinned 1.12.3 — a patch
drift install.sh already treats as fine), never touching the user's global
default.

What

  • substrate/julia_setup.ts (core, 13 unit tests) — parse Manifest minor,
    detect juliaup + channel, shouldOfferJuliaSetup() gate, resolveChannelJulia()
    (channel binary for the existing --julia plumbing), buildSetupSteps()
    (juliaup install → juliaup add <minor> → instantiate).
  • extension.tsrunJuliaSetup + amicode.setupJulia command + first-run
    gate, mirroring the feat: Run Inspector aesthetic pass — status badge, metric cards, branded chrome #13 vault-setup flow. Runs the steps in a visible
    terminal
    (the consent surface for the network installer).
  • install.sh — offers a juliaup install when Julia is absent, adds the
    pinned-minor channel, and routes its own calls through julia +<minor>.

Behavior

  • Fresh machine: juliaup makes the added channel the default, so bare julia
    (what the agent runs today) resolves to it → solves work with no further wiring.
  • Existing juliaup w/ a different default: setup still adds the 1.12 channel;
    routing the runtime explicitly through it is the follow-up below.

Verified

tsc clean; fast suite 598 pass / 4 skip; bash -n install.sh clean;
13 julia_setup unit tests.

Follow-up (layer 4, deliberately scoped out)

Route the solve runtime through the managed channel for the already-has-juliaup
case: add a {{JULIA_BINARY}} substitution (like {{JULIA_PROJECT}}) to AGENTS.md's
amico-run … --julia launch + instantiate lines, resolved via resolveChannelJulia.
Touches the agent prompt + solve path, so it wants its own e2e-validated PR.

Also future: entitlement-gated package management (the paid Piccolissimo set) —
today only the pinned public Manifest is instantiated.

julia_setup.ts: parse Manifest minor, detect juliaup + channel, gate
(shouldOfferJuliaSetup), resolveChannelJulia (channel binary for the
--julia plumbing, no global-default clobber), buildSetupSteps (consented
juliaup install -> juliaup add <minor> -> instantiate). 13 unit tests.
…rs 2-3)

extension.ts: runJuliaSetup + amicode.setupJulia command + first-run
gate (shouldOfferJuliaSetup), mirroring the vault-setup flow. Runs the
juliaup install -> juliaup add <minor> -> instantiate steps in a visible
terminal (the consent surface). install.sh: offer juliaup install when
Julia is absent, add the pinned-minor channel, and route its own calls
through 'julia +<minor>' (no global-default clobber).
@jack-champagne
jack-champagne merged commit 17c2278 into main Jul 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant