Skip to content

Conversation

@hyperpolymath
Copy link
Owner

This commit implements the Hyperpolymath language policy migration:

LANGUAGE CHANGES:

  • Convert all TypeScript files to ReScript (.res)
  • Remove TypeScript entirely from codebase (12 files, ~3,121 lines)
  • Add minimal JavaScript FFI glue for Deno-specific APIs
  • ReScript compiles to ES modules that Deno runs directly

NEW FILES:

  • src/engine/Core.res - Mill-Based Synthesis Engine
  • src/ssg/Types.res - Type definitions
  • src/ssg/Build.res - Build system
  • src/noteg-lang/Lexer.res - NoteG language lexer
  • src/noteg-lang/Parser.res - NoteG language parser
  • src/noteg-lang/lsp/Server.res - LSP implementation
  • src/noteg-mcp/Server.res - MCP server
  • src/Mod.res - Module entry point
  • src/tests/Engine_test.res - Test suite

CONFIGURATION:

  • Add rescript.json for ReScript 11+ configuration
  • Update deno.json for ReScript output paths
  • Add package.json for ReScript compiler only (not runtime)
  • Create Mustfile.ncl with Nickel for deployment transitions
  • Update justfile with ReScript build steps and must-* transitions

POLICY ENFORCEMENT:

  • Add .githooks/pre-commit to block banned file types
  • Add scripts/check-policy.js for comprehensive policy checking
  • Update .gitattributes with banned file markers
  • Enforce: No TypeScript, No Makefile, No npm/bun runtime

The codebase now follows the Hyperpolymath Standard:

  • Primary: ReScript → JavaScript (Deno runtime)
  • Config: Nickel (Mustfile.ncl)
  • Build: just + must transitions
  • Container: Podman

This commit implements the Hyperpolymath language policy migration:

LANGUAGE CHANGES:
- Convert all TypeScript files to ReScript (.res)
- Remove TypeScript entirely from codebase (12 files, ~3,121 lines)
- Add minimal JavaScript FFI glue for Deno-specific APIs
- ReScript compiles to ES modules that Deno runs directly

NEW FILES:
- src/engine/Core.res - Mill-Based Synthesis Engine
- src/ssg/Types.res - Type definitions
- src/ssg/Build.res - Build system
- src/noteg-lang/Lexer.res - NoteG language lexer
- src/noteg-lang/Parser.res - NoteG language parser
- src/noteg-lang/lsp/Server.res - LSP implementation
- src/noteg-mcp/Server.res - MCP server
- src/Mod.res - Module entry point
- src/tests/Engine_test.res - Test suite

CONFIGURATION:
- Add rescript.json for ReScript 11+ configuration
- Update deno.json for ReScript output paths
- Add package.json for ReScript compiler only (not runtime)
- Create Mustfile.ncl with Nickel for deployment transitions
- Update justfile with ReScript build steps and must-* transitions

POLICY ENFORCEMENT:
- Add .githooks/pre-commit to block banned file types
- Add scripts/check-policy.js for comprehensive policy checking
- Update .gitattributes with banned file markers
- Enforce: No TypeScript, No Makefile, No npm/bun runtime

The codebase now follows the Hyperpolymath Standard:
- Primary: ReScript → JavaScript (Deno runtime)
- Config: Nickel (Mustfile.ncl)
- Build: just + must transitions
- Container: Podman
@hyperpolymath hyperpolymath merged commit 4d3b5de into main Dec 26, 2025
0 of 2 checks passed
@hyperpolymath hyperpolymath deleted the claude/migrate-rescript-deno-E1M0I branch December 26, 2025 23:36
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.

2 participants