Skip to content

Commit e8b1372

Browse files
refactor: eradicate TypeScript and NPM/Deno configs (#47)
Automated eradication.
1 parent 0549bf9 commit e8b1372

15 files changed

Lines changed: 51 additions & 88 deletions

.claude/CLAUDE.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ Cross-platform document editor with format tabs, allowing users to view and edit
1111
## Architecture
1212

1313
- **Core**: Rust library with unified AST for format conversion
14-
- **GUI**: Gossamer with ReScript frontend (not TypeScript!)
14+
- **GUI**: Gossamer with AffineScript frontend (not TypeScript!)
1515
- **TUI**: Ada with AdaCurses (matches git-hud pattern)
1616
- **Storage**: ArangoDB for graph + document hybrid
1717
- **Pipelines**: Nickel for import/export transformations
1818

1919
## Language Policy
2020

2121
### ALLOWED
22-
- ReScript (UI components)
22+
- AffineScript (UI components)
2323
- Rust (core, GUI backend)
2424
- Ada (TUI)
2525
- Nickel (pipelines, config)
2626
- Guile Scheme (SCM files)
2727
- Deno (runtime)
2828

2929
### BANNED - Do Not Use
30-
- TypeScript (use ReScript)
30+
- TypeScript (use AffineScript)
3131
- Node.js/npm/bun (use Deno)
3232
- Go (use Rust)
3333
- Python (not applicable here)
@@ -43,11 +43,11 @@ crates/
4343
└── formatrix-pipeline/ # Nickel executor
4444
4545
tui/src/ # Ada TUI source
46-
ui/src/ # ReScript components
46+
ui/src/ # AffineScript components
4747
pipelines/ # Nickel pipeline definitions
4848
container/ # Wolfi container configs
4949
guix/ # Guix channel + packages
50-
nix/ # Nix flake (fallback)
50+
guix/ # Guix flake (fallback)
5151
```
5252

5353
## Build Commands
@@ -56,7 +56,7 @@ nix/ # Nix flake (fallback)
5656
just build # Build all
5757
just build-core # Build Rust core only
5858
just build-tui # Build Ada TUI only
59-
just build-ui # Build ReScript UI only
59+
just build-ui # Build AffineScript UI only
6060
just test # Run all tests
6161
just fmt # Format all code
6262
just lint # Lint all code
@@ -83,9 +83,9 @@ Each format implements:
8383
- `Parser` trait: raw content → AST
8484
- `Renderer` trait: AST → raw content
8585

86-
## ReScript Conventions
86+
## AffineScript Conventions
8787

88-
- Use `@rescript/core` for stdlib
88+
- Use `@affinescript/core` for stdlib
8989
- TEA pattern: Model.res, Msg.res, Update logic in App.res
9090
- Components in `src/components/`
9191
- Bindings in `src/bindings/`
@@ -102,7 +102,7 @@ Each format implements:
102102
```bash
103103
just test-core # Rust unit tests
104104
just test-tui # Ada compilation check
105-
just test-ui # ReScript tests
105+
just test-ui # AffineScript tests
106106
just test-integration # Full integration tests
107107
```
108108

.github/workflows/governance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# in hyperpolymath/standards instead of carrying per-repo copies.
44
#
55
# Replaces the per-repo governance scaffolding removed in the same commit:
6-
# quality.yml, guix-nix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml,
6+
# quality.yml, guix-guix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml,
77
# security-policy.yml, rsr-antipattern.yml, wellknown-enforcement.yml,
88
# workflow-linter.yml
99
#

.machine_readable/6a2/PLAYBOOK.a2ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enforcement-workflow = ".github/workflows/estate-rules.yml"
6363
# .github/ CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, workflows/
6464
# .machine_readable/ AI manifests (0.1-AI-MANIFEST.a2ml), 6a2/ checkpoints,
6565
# contractiles/, configs/, anchors/, policies/, scripts/, svc/
66-
# build/ contractile.just, flake.nix, guix.scm, Containerfile,
66+
# build/ contractile.just, flake.guix, guix.scm, Containerfile,
6767
# just/*.just (Justfile section imports)
6868
# docs/ onboarding/, status/, architecture/, governance/ (all .adoc)
6969
# session/ dispatch.sh, custom-checks.k9, local-hooks.sh
@@ -103,7 +103,7 @@ enforcement-workflow = ".github/workflows/estate-rules.yml"
103103
# build/just/groove.just Groove protocol setup (after zig removed)
104104
#
105105
# Daily-use recipes (BUILD, TEST, LINT, RUN, DEPS, DOCS, CONTAINER, CI,
106-
# SECURITY, STATE, GUIX/NIX, MATRIX, VERSION CONTROL, UTILITIES, SESSION)
106+
# SECURITY, STATE, GUIX/GUIX, MATRIX, VERSION CONTROL, UTILITIES, SESSION)
107107
# stay in the root Justfile where users expect to find them.
108108

109109
# === 5-PR cleanup pattern ===

ABI-FFI-README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design:
4747
4848
┌─────────────────────────────────────────────┐
4949
│ Any Language via C ABI │
50-
│ - Rust, ReScript, Julia, Python, etc. │
50+
│ - Rust, AffineScript, Julia, Python, etc. │
5151
└─────────────────────────────────────────────┘
5252
```
5353

@@ -79,7 +79,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design:
7979
8080
└── bindings/ # Language-specific wrappers (optional)
8181
├── rust/
82-
├── rescript/
82+
├── affinescript/
8383
└── julia/
8484
```
8585

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
66
git clone https://github.com/hyperpolymath/formatrix-docs.git
77
cd formatrix-docs
88

9-
# Using Nix (recommended for reproducibility)
10-
nix develop
9+
# Using Guix (recommended for reproducibility)
10+
guix develop
1111

1212
# Or using toolbox/distrobox
1313
toolbox create formatrix-docs-dev
@@ -45,7 +45,7 @@ formatrix-docs/
4545
├── MAINTAINERS.md
4646
├── README.adoc
4747
├── SECURITY.md
48-
├── flake.nix # Nix flake (Perimeter 1)
48+
├── flake.guix # Guix flake (Perimeter 1)
4949
└── justfile # Task runner (Perimeter 1)
5050
```
5151

README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Cross-platform document editor with format tabs (TXT/MD/ADOC/DJOT/ORG/RST/TYP).
2626

2727
* *Format Tabs* - View and edit the same document in multiple markup formats
2828
* *Unified AST* - Lossless conversion between formats
29-
* *GUI* - Gossamer with ReScript frontend
29+
* *GUI* - Gossamer with AffineScript frontend
3030
* *TUI* - Ada with AdaCurses for terminal usage
3131
* *Graph Visualization* - ArangoDB for document relationships
3232
* *Accessibility* - OCR, TTS, STT support
@@ -75,7 +75,7 @@ crates/
7575
└── formatrix-pipeline/ # Nickel executor
7676
7777
tui/src/ # Ada TUI source
78-
ui/src/ # ReScript components
78+
ui/src/ # AffineScript components
7979
pipelines/ # Nickel pipeline definitions
8080
container/ # Wolfi container configs
8181
----
@@ -96,7 +96,7 @@ container/ # Wolfi container configs
9696
just build # Build all
9797
just build-core # Build Rust core only
9898
just build-tui # Build Ada TUI only
99-
just build-ui # Build ReScript UI only
99+
just build-ui # Build AffineScript UI only
100100
just test # Run all tests
101101
just fmt # Format all code
102102
just lint # Lint all code
@@ -135,7 +135,7 @@ Automation scripts from https://github.com/hyperpolymath/scripts[hyperpolymath/s
135135
| `touchscreen_hunter_killer.sh` | Touchscreen calibration/management
136136
|===
137137

138-
These scripts follow the same language policy (Bash, Rust, ReScript, Deno, Gleam, Guile Scheme) and multi-forge mirroring strategy.
138+
These scripts follow the same language policy (Bash, Rust, AffineScript, Deno, Gleam, Guile Scheme) and multi-forge mirroring strategy.
139139

140140
== License
141141

RSR_COMPLIANCE.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This document certifies that *formatrix-docs* complies with the Rhodium Standard
6565
| TUI implementation
6666
| COMPLIANT
6767

68-
| ReScript
68+
| AffineScript
6969
| UI components
7070
| COMPLIANT
7171

@@ -94,7 +94,7 @@ No banned languages (TypeScript, Node.js, npm, Go, Python) are present in this r
9494
- `build-core` - Rust core
9595
- `build-gui` - Tauri GUI
9696
- `build-tui` - Ada TUI
97-
- `build-ui` - ReScript UI
97+
- `build-ui` - AffineScript UI
9898
- `build-release` - Release mode
9999

100100
=== Quality Recipes

RSR_OUTLINE.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ project/
148148

149149
=== Language Tiers
150150

151-
* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript
152-
* **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Nix
151+
* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript
152+
* **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Guix
153153
* **Infrastructure**: Guix channels, derivations
154154

155155
=== Required Files
@@ -163,12 +163,12 @@ project/
163163
* `.well-known/security.txt`
164164
* `.well-known/ai.txt`
165165
* `.well-known/humans.txt`
166-
* `guix.scm` OR `flake.nix`
166+
* `guix.scm` OR `flake.guix`
167167

168168
=== Prohibited
169169

170170
* Python outside `salt/` directory
171-
* TypeScript/JavaScript (use ReScript)
171+
* TypeScript/JavaScript (use AffineScript)
172172
* CUE (use Guile/Nickel)
173173
* `Dockerfile` (use `Containerfile`)
174174

TOPOLOGY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
1818
▼ ▼
1919
┌───────────────────┐ ┌───────────────────┐
2020
│ GUI (TAURI 2.0) │ │ TUI (ADA) │
21-
│ (ReScript / React)│ │ (AdaCurses) │
21+
│ (AffineScript / React)│ │ (AdaCurses) │
2222
└──────────┬────────┘ └──────────┬────────┘
2323
│ │
2424
└──────────┬───────────┘
@@ -66,7 +66,7 @@ CORE ENGINE (RUST)
6666
ArangoDB Client ██████████ 100% Document persistence stable
6767
6868
USER INTERFACES
69-
Tauri 2.0 GUI ████████░░ 80% ReScript UI components active
69+
Tauri 2.0 GUI ████████░░ 80% AffineScript UI components active
7070
Ada TUI (AdaCurses) ██████░░░░ 60% Layout logic in progress
7171
Graph Visualization ████░░░░░░ 40% Initial D3.js prototyping
7272

docs/MOSCOW-REQUIREMENTS.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This document defines Must/Should/Could requirements for each component of the d
4747
|✅ Done
4848

4949
|FD-M08
50-
|Format tabs component (ReScript)
50+
|Format tabs component (AffineScript)
5151
|🔲 Pending
5252

5353
|FD-M09
@@ -242,7 +242,7 @@ This document defines Must/Should/Could requirements for each component of the d
242242
|✅ Done
243243

244244
|RSA-M13
245-
|WASM bindings for ReScript
245+
|WASM bindings for AffineScript
246246
|✅ Done
247247

248248
|RSA-M14
@@ -365,7 +365,7 @@ This document defines Must/Should/Could requirements for each component of the d
365365
|ID |Requirement |Status
366366

367367
|DB-M01
368-
|Module structure with ReScript types
368+
|Module structure with AffineScript types
369369
|🔲 Pending
370370

371371
|DB-M02
@@ -484,7 +484,7 @@ This document defines Must/Should/Could requirements for each component of the d
484484
|ID |Requirement |Status
485485

486486
|DD-M01
487-
|Module structure with ReScript types
487+
|Module structure with AffineScript types
488488
|🔲 Pending
489489

490490
|DD-M02

0 commit comments

Comments
 (0)