diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 8ac87d3..8c77d71 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -19,7 +19,7 @@ The following files in `.machine_readable/` contain structured project metadata: | Language/Tool | Use Case | Notes | |---------------|----------|-------| -| **ReScript** | Primary application code | Compiles to JS, type-safe | +| **AffineScript** | Primary application code | Compiles to JS, type-safe | | **Bun** | JS runtime & package management (tier 1) | Default for all new work. Runs compiled ESM/JS directly — no bundler step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. | | **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools | | **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI | @@ -37,13 +37,13 @@ The following files in `.machine_readable/` contain structured project metadata: | Banned | Replacement | |--------|-------------| -| TypeScript | ReScript | +| TypeScript | AffineScript | | Deno | Bun | | Node.js | Bun | | npm | Bun | | pnpm/yarn | Bun | | Go | Rust | -| Python | Julia/Rust/ReScript | +| Python | Julia/Rust/AffineScript | | Java/Kotlin | Rust/Tauri/Dioxus | | Swift | Tauri/Dioxus | | React Native | Tauri/Dioxus | @@ -53,7 +53,7 @@ The following files in `.machine_readable/` contain structured project metadata: **No exceptions for Kotlin/Swift** - use Rust-first approach: -1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0 +1. **Tauri 2.0+** - Web UI (AffineScript) + Rust backend, MIT/Apache-2.0 2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0 Both are FOSS with independent governance (no Big Tech). @@ -64,7 +64,7 @@ Both are FOSS with independent governance (no Big Tech). 2. **Use `package.json` + `bun.lock` for JS runtime deps** - Bun is npm-compatible; a manifest is REQUIRED 3. **`bun install --production --frozen-lockfile` for production deps** - resolved from `package.json` and pinned via `bun.lock`; `--frozen-lockfile` makes a lockfile mismatch a build failure rather than a silent re-resolve 4. **No Go code** - Use Rust instead -5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, ReScript for apps +5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps 6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus ### Package Management diff --git a/.github/workflows/ts-blocker.yml b/.github/workflows/ts-blocker.yml index 741352d..4cd4afe 100644 --- a/.github/workflows/ts-blocker.yml +++ b/.github/workflows/ts-blocker.yml @@ -17,9 +17,9 @@ jobs: NEW_JS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E '\.(js|jsx)$' | grep -v '\.res\.js$' | grep -v '\.gen\.' | grep -v 'node_modules' || true) if [ -n "$NEW_TS" ] || [ -n "$NEW_JS" ]; then - echo "❌ New TS/JS files detected. Use ReScript instead." + echo "❌ New TS/JS files detected. Use AffineScript instead." [ -n "$NEW_TS" ] && echo "$NEW_TS" [ -n "$NEW_JS" ] && echo "$NEW_JS" exit 1 fi - echo "✅ ReScript policy enforced" + echo "✅ AffineScript policy enforced" diff --git a/casket-ssg/.claude/CLAUDE.md b/casket-ssg/.claude/CLAUDE.md index 8ac87d3..8c77d71 100644 --- a/casket-ssg/.claude/CLAUDE.md +++ b/casket-ssg/.claude/CLAUDE.md @@ -19,7 +19,7 @@ The following files in `.machine_readable/` contain structured project metadata: | Language/Tool | Use Case | Notes | |---------------|----------|-------| -| **ReScript** | Primary application code | Compiles to JS, type-safe | +| **AffineScript** | Primary application code | Compiles to JS, type-safe | | **Bun** | JS runtime & package management (tier 1) | Default for all new work. Runs compiled ESM/JS directly — no bundler step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. | | **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools | | **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI | @@ -37,13 +37,13 @@ The following files in `.machine_readable/` contain structured project metadata: | Banned | Replacement | |--------|-------------| -| TypeScript | ReScript | +| TypeScript | AffineScript | | Deno | Bun | | Node.js | Bun | | npm | Bun | | pnpm/yarn | Bun | | Go | Rust | -| Python | Julia/Rust/ReScript | +| Python | Julia/Rust/AffineScript | | Java/Kotlin | Rust/Tauri/Dioxus | | Swift | Tauri/Dioxus | | React Native | Tauri/Dioxus | @@ -53,7 +53,7 @@ The following files in `.machine_readable/` contain structured project metadata: **No exceptions for Kotlin/Swift** - use Rust-first approach: -1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0 +1. **Tauri 2.0+** - Web UI (AffineScript) + Rust backend, MIT/Apache-2.0 2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0 Both are FOSS with independent governance (no Big Tech). @@ -64,7 +64,7 @@ Both are FOSS with independent governance (no Big Tech). 2. **Use `package.json` + `bun.lock` for JS runtime deps** - Bun is npm-compatible; a manifest is REQUIRED 3. **`bun install --production --frozen-lockfile` for production deps** - resolved from `package.json` and pinned via `bun.lock`; `--frozen-lockfile` makes a lockfile mismatch a build failure rather than a silent re-resolve 4. **No Go code** - Use Rust instead -5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, ReScript for apps +5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps 6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus ### Package Management diff --git a/casket-ssg/.github/workflows/rsr-antipattern.yml b/casket-ssg/.github/workflows/rsr-antipattern.yml index b04e35a..1ff3534 100644 --- a/casket-ssg/.github/workflows/rsr-antipattern.yml +++ b/casket-ssg/.github/workflows/rsr-antipattern.yml @@ -3,7 +3,7 @@ # SPDX-License-Identifier: PMPL-1.0-or-later # # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm -# Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme +# Allows: AffineScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme name: RSR Anti-Pattern Check @@ -30,7 +30,7 @@ jobs: # Exclude .d.ts files - those are TypeScript type declarations for ReScript FFI TS_FILES=$(find . \( -name "*.ts" -o -name "*.tsx" \) | grep -v node_modules | grep -v 'bindings/deno' | grep -v '\.d\.ts$' || true) if [ -n "$TS_FILES" ]; then - echo "❌ TypeScript files detected - use ReScript instead" + echo "❌ TypeScript files detected - use AffineScript instead" echo "$TS_FILES" exit 1 fi @@ -66,7 +66,7 @@ jobs: - name: Check for tsconfig run: | if [ -f "tsconfig.json" ]; then - echo "❌ tsconfig.json detected - use ReScript instead" + echo "❌ tsconfig.json detected - use AffineScript instead" exit 1 fi echo "✅ No tsconfig.json" @@ -85,7 +85,7 @@ jobs: echo "╔════════════════════════════════════════════════════════════╗" echo "║ RSR Anti-Pattern Check Passed ✅ ║" echo "║ ║" - echo "║ Allowed: ReScript, Deno, WASM, Rust, OCaml, Haskell, ║" + echo "║ Allowed: AffineScript, Deno, WASM, Rust, OCaml, Haskell, ║" echo "║ Guile/Scheme, SaltStack (Python) ║" echo "║ ║" echo "║ Blocked: TypeScript, Go, npm, Python (non-Salt) ║" diff --git a/casket-ssg/.github/workflows/ts-blocker.yml b/casket-ssg/.github/workflows/ts-blocker.yml index a26367b..98885d1 100644 --- a/casket-ssg/.github/workflows/ts-blocker.yml +++ b/casket-ssg/.github/workflows/ts-blocker.yml @@ -17,9 +17,9 @@ jobs: NEW_JS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E '\.(js|jsx)$' | grep -v '\.res\.js$' | grep -v '\.gen\.' | grep -v 'node_modules' || true) if [ -n "$NEW_TS" ] || [ -n "$NEW_JS" ]; then - echo "❌ New TS/JS files detected. Use ReScript instead." + echo "❌ New TS/JS files detected. Use AffineScript instead." [ -n "$NEW_TS" ] && echo "$NEW_TS" [ -n "$NEW_JS" ] && echo "$NEW_JS" exit 1 fi - echo "✅ ReScript policy enforced" + echo "✅ AffineScript policy enforced" diff --git a/casket-ssg/RSR_OUTLINE.adoc b/casket-ssg/RSR_OUTLINE.adoc index fc4f4ba..374d4f7 100644 --- a/casket-ssg/RSR_OUTLINE.adoc +++ b/casket-ssg/RSR_OUTLINE.adoc @@ -146,7 +146,7 @@ project/ === Language Tiers -* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript +* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript * **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Nix * **Infrastructure**: Guix channels, derivations @@ -166,7 +166,7 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) diff --git a/mcp/.claude/CLAUDE.md b/mcp/.claude/CLAUDE.md index 8ac87d3..8c77d71 100644 --- a/mcp/.claude/CLAUDE.md +++ b/mcp/.claude/CLAUDE.md @@ -19,7 +19,7 @@ The following files in `.machine_readable/` contain structured project metadata: | Language/Tool | Use Case | Notes | |---------------|----------|-------| -| **ReScript** | Primary application code | Compiles to JS, type-safe | +| **AffineScript** | Primary application code | Compiles to JS, type-safe | | **Bun** | JS runtime & package management (tier 1) | Default for all new work. Runs compiled ESM/JS directly — no bundler step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. | | **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools | | **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI | @@ -37,13 +37,13 @@ The following files in `.machine_readable/` contain structured project metadata: | Banned | Replacement | |--------|-------------| -| TypeScript | ReScript | +| TypeScript | AffineScript | | Deno | Bun | | Node.js | Bun | | npm | Bun | | pnpm/yarn | Bun | | Go | Rust | -| Python | Julia/Rust/ReScript | +| Python | Julia/Rust/AffineScript | | Java/Kotlin | Rust/Tauri/Dioxus | | Swift | Tauri/Dioxus | | React Native | Tauri/Dioxus | @@ -53,7 +53,7 @@ The following files in `.machine_readable/` contain structured project metadata: **No exceptions for Kotlin/Swift** - use Rust-first approach: -1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0 +1. **Tauri 2.0+** - Web UI (AffineScript) + Rust backend, MIT/Apache-2.0 2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0 Both are FOSS with independent governance (no Big Tech). @@ -64,7 +64,7 @@ Both are FOSS with independent governance (no Big Tech). 2. **Use `package.json` + `bun.lock` for JS runtime deps** - Bun is npm-compatible; a manifest is REQUIRED 3. **`bun install --production --frozen-lockfile` for production deps** - resolved from `package.json` and pinned via `bun.lock`; `--frozen-lockfile` makes a lockfile mismatch a build failure rather than a silent re-resolve 4. **No Go code** - Use Rust instead -5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, ReScript for apps +5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps 6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus ### Package Management diff --git a/mcp/.githooks/pre-commit b/mcp/.githooks/pre-commit index 7296c2c..9857607 100755 --- a/mcp/.githooks/pre-commit +++ b/mcp/.githooks/pre-commit @@ -24,7 +24,7 @@ for file in $STAGED_FILES; do # Check for TypeScript files (forbidden) case "$file" in *.ts|*.tsx) - VIOLATIONS="$VIOLATIONS\n - $file (TypeScript forbidden - use ReScript)" + VIOLATIONS="$VIOLATIONS\n - $file (TypeScript forbidden - use AffineScript)" ;; esac diff --git a/mcp/.github/workflows/rsr-antipattern.yml b/mcp/.github/workflows/rsr-antipattern.yml index 86a006a..52fd96e 100644 --- a/mcp/.github/workflows/rsr-antipattern.yml +++ b/mcp/.github/workflows/rsr-antipattern.yml @@ -3,7 +3,7 @@ # SPDX-License-Identifier: PMPL-1.0-or-later # # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm -# Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme +# Allows: AffineScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme name: RSR Anti-Pattern Check @@ -30,7 +30,7 @@ jobs: # Exclude .d.ts files - those are TypeScript type declarations for ReScript FFI TS_FILES=$(find . \( -name "*.ts" -o -name "*.tsx" \) | grep -v node_modules | grep -v 'bindings/deno' | grep -v '\.d\.ts$' || true) if [ -n "$TS_FILES" ]; then - echo "❌ TypeScript files detected - use ReScript instead" + echo "❌ TypeScript files detected - use AffineScript instead" echo "$TS_FILES" exit 1 fi @@ -66,7 +66,7 @@ jobs: - name: Check for tsconfig run: | if [ -f "tsconfig.json" ]; then - echo "❌ tsconfig.json detected - use ReScript instead" + echo "❌ tsconfig.json detected - use AffineScript instead" exit 1 fi echo "✅ No tsconfig.json" @@ -85,7 +85,7 @@ jobs: echo "╔════════════════════════════════════════════════════════════╗" echo "║ RSR Anti-Pattern Check Passed ✅ ║" echo "║ ║" - echo "║ Allowed: ReScript, Deno, WASM, Rust, OCaml, Haskell, ║" + echo "║ Allowed: AffineScript, Deno, WASM, Rust, OCaml, Haskell, ║" echo "║ Guile/Scheme, SaltStack (Python) ║" echo "║ ║" echo "║ Blocked: TypeScript, Go, npm, Python (non-Salt) ║" diff --git a/mcp/.github/workflows/ts-blocker.yml b/mcp/.github/workflows/ts-blocker.yml index f2762d9..d9d1113 100644 --- a/mcp/.github/workflows/ts-blocker.yml +++ b/mcp/.github/workflows/ts-blocker.yml @@ -17,9 +17,9 @@ jobs: NEW_JS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E '\.(js|jsx)$' | grep -v '\.res\.js$' | grep -v '\.gen\.' | grep -v 'node_modules' || true) if [ -n "$NEW_TS" ] || [ -n "$NEW_JS" ]; then - echo "❌ New TS/JS files detected. Use ReScript instead." + echo "❌ New TS/JS files detected. Use AffineScript instead." [ -n "$NEW_TS" ] && echo "$NEW_TS" [ -n "$NEW_JS" ] && echo "$NEW_JS" exit 1 fi - echo "✅ ReScript policy enforced" + echo "✅ AffineScript policy enforced" diff --git a/mcp/CLAUDE.md b/mcp/CLAUDE.md index 3b3106d..540bf3a 100644 --- a/mcp/CLAUDE.md +++ b/mcp/CLAUDE.md @@ -68,7 +68,7 @@ src/ — ReScript source - **License**: MIT with SPDX headers - **Primary Language**: ReScript (compiled to ES6) -- **No TypeScript**: Use ReScript instead +- **No TypeScript**: Use AffineScript instead - **No JavaScript adapters**: All adapters must be ReScript - **main.js exception**: Entry shim only (imports ReScript modules) diff --git a/scripts/check-language-policy.js b/scripts/check-language-policy.js index 1ec8e4d..7e2e8db 100644 --- a/scripts/check-language-policy.js +++ b/scripts/check-language-policy.js @@ -3,14 +3,14 @@ // Language Policy Enforcement Script // // This script enforces the Hyperpolymath Language Policy: -// - TypeScript is BANNED (use ReScript instead) +// - TypeScript is BANNED (use AffineScript instead) // - Node.js/npm is BANNED (use Deno instead) // - Go is BANNED (use Rust instead) // - Python is BANNED except for SaltStack const BANNED_EXTENSIONS = [ - ".ts", // TypeScript - use ReScript - ".tsx", // TypeScript JSX - use ReScript + ".ts", // TypeScript - use AffineScript + ".tsx", // TypeScript JSX - use AffineScript ".go", // Go - use Rust ]; @@ -67,7 +67,7 @@ async function checkPolicy() { } const replacement = ext === ".ts" || ext === ".tsx" - ? "ReScript (.res)" + ? "AffineScript (.affine)" : ext === ".go" ? "Rust (.rs)" : "approved language"; @@ -95,7 +95,7 @@ async function checkPolicy() { if (!isAllowed) { violations.push({ file: relPath, - reason: "Python is only allowed for SaltStack - use ReScript or Rust instead", + reason: "Python is only allowed for SaltStack - use AffineScript or Rust instead", }); } } diff --git a/sites-build/generated/7tentacles.org/about.html b/sites-build/generated/7tentacles.org/about.html index e003853..4061338 100644 --- a/sites-build/generated/7tentacles.org/about.html +++ b/sites-build/generated/7tentacles.org/about.html @@ -56,7 +56,7 @@