Skip to content

tracking: compile and run the complete OpenCode source graph without feature stripping or a JS runtime #8506

Description

@proggeramlug

Goal

Compile and run upstream OpenCode directly from its TypeScript/JavaScript source graph with Perry:

  • entry: packages/opencode/src/index.ts
  • reference revision from the current corpus: fc80874f45a595ff6874a4d36b1090f6a64424d2
  • no pre-bundled optimized OpenCode artifact
  • no feature-removal/minimal-profile patch
  • no V8 or runtime JavaScript fallback
  • preserve the full CLI, TUI, providers, Code Mode, database, watcher, image, shell, LSP/formatter, plugin, mDNS, and web UI paths

This supersedes the narrower milestone tracked by #6566. That issue proved selected Bun/Node surfaces against an earlier target; this tracker requires the complete current upstream source graph.

Native/runtime workstreams

Compiler/linker workstreams

Native adapters must not conceal compiler bugs in pure JS/TS dependencies.

Acceptance

  1. A clean checkout of the pinned OpenCode revision installs normally.
  2. Perry compiles the complete source graph from packages/opencode/src/index.ts without a feature-removal patch.
  3. The output contains no runtime JavaScript engine and does not route reachable JS modules to one.
  4. Headless commands, server mode, the full TUI, persistence, providers, Code Mode, shell/PTY, watcher, image/tree-sitter paths, plugins, mDNS, and web UI receive smoke coverage.
  5. CI retains a pinned full-source OpenCode corpus fixture and reports compile time, output size, and smoke-test status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew capability or improvementparityCompatibility gap with Node.js, ECMAScript, or the supported ecosystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions