Skip to content

Commit 20b284e

Browse files
chore: retire ReScript guidance text → AffineScript (Estate Item 9) (#153)
Estate language policy: RS/TS/JS → AffineScript → typed-wasm. This rewrites guidance/policy text that recommended ReScript as the TypeScript/Python replacement so it now points at AffineScript. Scope guard (deliberate): rescript-named paths and ReScript adapters are NOT touched — that work is preserved intact for the ReScript ecosystem. Only the forward-looking "use ReScript instead" recommendation is updated. Co-authored-by: hyperpolymath <hyperpolymath@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent f50c436 commit 20b284e

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/rsr-antipattern.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
- name: Check for tsconfig
169169
run: |
170170
if [ -f "tsconfig.json" ]; then
171-
echo "❌ tsconfig.json detected - use ReScript instead"
171+
echo "❌ tsconfig.json detected - use AffineScript instead"
172172
exit 1
173173
fi
174174
echo "✅ No tsconfig.json"

.github/workflows/ts-blocker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
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)
1919
2020
if [ -n "$NEW_TS" ] || [ -n "$NEW_JS" ]; then
21-
echo "❌ New TS/JS files detected. Use ReScript instead."
21+
echo "❌ New TS/JS files detected. Use AffineScript instead."
2222
[ -n "$NEW_TS" ] && echo "$NEW_TS"
2323
[ -n "$NEW_JS" ] && echo "$NEW_JS"
2424
exit 1

BOT-OPERATIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ just enroll-repos
189189
- ArangoDB + Virtuoso databases (design only)
190190
- Carbon API integration (ElectricityMaps/WattTime) - placeholder only
191191

192-
**Architecture**: Polyglot by design (Haskell/OCaml/Rust/ReScript) but only Rust is implemented. See `ARCHITECTURE.md` (31KB) for full design.
192+
**Architecture**: Polyglot by design (Haskell/OCaml/Rust/AffineScript) but only Rust is implemented. See `ARCHITECTURE.md` (31KB) for full design.
193193

194194
**CLI**: `sustainabot analyze <file>` / `sustainabot check <dir>` / `sustainabot self-analyze`
195195

bots/echidnabot/hooks/pre-commit-tsjs-blocker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ JS_FILES=$(echo "$STAGED_FILES" | grep -E '\.(js|jsx|mjs|cjs)$' | grep -v '\.res
1313
TS_CONFIGS=$(echo "$STAGED_FILES" | grep -E '(^|/)(tsconfig.*\.json|package\.json|package-lock\.json|pnpm-lock\.yaml|yarn\.lock)$' || true)
1414

1515
if [ -n "$TS_FILES" ] || [ -n "$JS_FILES" ] || [ -n "$TS_CONFIGS" ]; then
16-
echo "❌ TypeScript/JavaScript or Node config detected. Use ReScript instead."
16+
echo "❌ TypeScript/JavaScript or Node config detected. Use AffineScript instead."
1717
[ -n "$TS_FILES" ] && echo "$TS_FILES"
1818
[ -n "$JS_FILES" ] && echo "$JS_FILES"
1919
[ -n "$TS_CONFIGS" ] && echo "$TS_CONFIGS"

bots/finishingbot/src/analyzers/v1_readiness.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ impl V1ReadinessAnalyzer {
101101

102102
// Check for banned language files
103103
let banned_patterns = [
104-
("*.ts", "TypeScript files found (use ReScript instead)"),
105-
("*.py", "Python files found (use Julia/Rust/ReScript instead)"),
104+
("*.ts", "TypeScript files found (use AffineScript instead)"),
105+
("*.py", "Python files found (use Julia/Rust/AffineScript instead)"),
106106
("*.go", "Go files found (use Rust instead)"),
107107
];
108108

robot-repo-automaton/.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
| Bun | Deno |
3131
| pnpm/yarn | Deno |
3232
| Go | Rust |
33-
| Python | Julia/Rust/ReScript |
33+
| Python | Julia/Rust/AffineScript |
3434
| Java/Kotlin | Rust/Tauri/Dioxus |
3535
| Swift | Tauri/Dioxus |
3636
| React Native | Tauri/Dioxus |

robot-repo-automaton/.github/workflows/rsr-antipattern.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Check for TypeScript
2727
run: |
2828
if find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules | grep -q .; then
29-
echo "❌ TypeScript files detected - use ReScript instead"
29+
echo "❌ TypeScript files detected - use AffineScript instead"
3030
find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules
3131
exit 1
3232
fi
@@ -62,7 +62,7 @@ jobs:
6262
- name: Check for tsconfig
6363
run: |
6464
if [ -f "tsconfig.json" ]; then
65-
echo "❌ tsconfig.json detected - use ReScript instead"
65+
echo "❌ tsconfig.json detected - use AffineScript instead"
6666
exit 1
6767
fi
6868
echo "✅ No tsconfig.json"

0 commit comments

Comments
 (0)