wasm-port: broaden native LinuxCNC interpreter probes

This commit is contained in:
2026-06-07 05:49:34 +08:00
parent 5025b0c1a1
commit eb261462c1
49 changed files with 1276 additions and 798 deletions

View File

@@ -9,6 +9,11 @@ LinuxCNC WASM Simulation Port
This skill guides work inside `wasm-port/` for building a standalone
LinuxCNC-based CNC simulation program.
The CNC simulation program must be derived primarily from the LinuxCNC source
program. Work in this port must strictly follow LinuxCNC behavior, structure,
and semantics, except where a documented standalone runtime boundary requires
an adapter.
It is intended for tasks involving:
- source extraction from upstream LinuxCNC;
@@ -33,12 +38,15 @@ Use this skill when the work involves any of the following:
## Core Principles
1. Upstream LinuxCNC is the semantic source of truth.
2. The standalone port is a separate program and separate workspace.
3. Reuse comes before rewrite.
4. Native runtime dependencies are replaced at the edges, not copied whole.
5. Machine state and controller-visible behavior are first-class compatibility
2. The CNC simulation program is primarily sourced from LinuxCNC source code;
port-specific code must adapt LinuxCNC to standalone native/WASM execution,
not replace LinuxCNC CNC behavior.
3. The standalone port is a separate program and separate workspace.
4. Reuse comes before rewrite.
5. Native runtime dependencies are replaced at the edges, not copied whole.
6. Machine state and controller-visible behavior are first-class compatibility
targets, not optional nice-to-haves.
6. Do not continue building a project-authored CNC program once the porting
7. Do not continue building a project-authored CNC program once the porting
harness runs; move behavior back to vendored LinuxCNC source functions.
## Source Reuse Priorities