Skip to content

Broken dev tooling: just recipes and stapeln.toml target the never-created src/main.ts (and dead ReScript steps) #58

Description

@hyperpolymath

After the ReScript→AffineScript migration (#47#51), src/ holds AffineScript and src/main.ts was never created. CI was repointed (#49 typecheck, #55/#54 build → deno task build in src/deno.json), but the local tooling was missed and several recipes now fail outright.

Broken — repoint at the real entrypoint (tools/mvp/svalinn_gateway.ts, or deno task in src/deno.json)

Justfile and the mirrored .machine_readable/contractiles/Justfile:

  • devcd src && deno run … main.ts (Justfile:12 / contractile:11)
  • servecd src && deno run … main.ts (Justfile:16 / contractile:15)
  • buildcd src && deno compile … -o ../dist/svalinn main.ts (Justfile:24 / contractile:23) — should delegate to deno task build (the single source of truth established in fix(ci): build svalinn binary from the real entrypoint (MVP gateway) #54)
  • checkcd src && deno check main.ts (Justfile:32 / contractile:31)

stapeln.toml:

  • commands = ["deno cache src/main.ts"] (stapeln.toml:37)

These are a safe mechanical repoint — same class of fix as #49/#55, just for local tooling.

Needs migration-direction judgment (don't auto-fix)

These steps are ReScript-era and now dead, but how to replace them depends on the AffineScript build story (see #39):

  • build recipe cd src && npx rescript build (Justfile:20 / contractile:19)
  • test recipe targeting tests/*.res.mjs with @rescript/core (Justfile:28 / contractile:25)
  • ui recipes npx rescript build (Justfile:37,57,61 / contractile:36,56,60) — is ui/ still ReScript?

Acceptance

  • just dev / just serve / just build / just check run against the real entrypoint and succeed
  • stapeln.toml no longer caches a nonexistent file
  • ReScript/ui recipes resolved per the chosen AffineScript build model (or removed)
  • Note: .machine_readable/contractiles/Justfile is a trust-deny-area (Trustfile) — change with care

Found via the wrap-up audit of the #54 session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions