Toolchain Reference myc Unified CLI

Unified myc Toolchain & Package Layout

A single command-line binary (myc) drives type checking, native compilation, manifest-driven graph testing, formatting, language-server diagnostics, Computational Office workspaces, and package publishing.

1. Core Commands

CommandResponsibility
myc check [target]Parse, bind, type-check, verify unit algebra, and report deterministic MYC#### diagnostics.
myc test [manifest.toml]Execute native test nodes, scenario sweeps, and pinned compile-fail diagnostic checks.
myc build [target]Compile modules and packages into typed binary interface/IR libraries (.mycl) and executables.
myc run <file.myc> [--node N]Evaluate target graph nodes under explicit policy settings and emit structured results.
myc fmt · myc lspCanonical source formatting and Language Server Protocol (LSP) editor integration.
myc officeLaunch the local-first Myceta Computational Office workspace server and myceta:// handler.
myc publishSign and package verified modules into distributable .mycp archives.

2. Standard Package Layout

my-structural-pack/
  myceta.toml              # package metadata, dependencies & policy profile
  src/                     # pure library & graph modules (*.myc)
  validation/              # native graph test fixtures (*.myc)
  tests/                   # TOML test manifests (parse-pass, compile-fail, test, scenario)

3. Invariant myc File-Extension Family

Every Myceta file shares the 3-letter myc prefix so shell globs separate human source from binary artifacts deterministically: *.myc matches exclusively UTF-8 source files, while *.myc? matches exclusively 8-byte magic-headed binary artifacts (MYCETA-SPEC-MIME-01):