-
-
Notifications
You must be signed in to change notification settings - Fork 0
policy: Bun is tier 1, Deno is being removed — correct local CLAUDE.md #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
30b04bd
46e6c3b
15adf8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,14 +51,14 @@ The following files in `.machine_readable/` contain structured project metadata: | |
|
|
||
| | Language/Tool | Use Case | Notes | | ||
| |---------------|----------|-------| | ||
| | **AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or Deno-ESM | | ||
| | **Deno** | Runtime & package management | Replaces Node/npm/bun | | ||
| | **AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or ESM | | ||
| | **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 | | ||
| | **Dioxus** | Mobile apps (native UI) | Pure Rust, React-like | | ||
| | **Gleam** | Backend services | Runs on BEAM or compiles to JS | | ||
| | **Bash/POSIX Shell** | Scripts, automation | Keep minimal | | ||
| | **JavaScript** | Only where AffineScript cannot | MCP protocol glue, Deno APIs | | ||
| | **JavaScript** | Only where AffineScript cannot | MCP protocol glue, Bun APIs | | ||
| | **Nickel** | Configuration language | For complex configs | | ||
| | **Guile Scheme** | State/meta files | .machine_readable/6a2/STATE.a2ml, .machine_readable/6a2/META.a2ml, .machine_readable/6a2/ECOSYSTEM.a2ml | | ||
| | **Julia** | Batch scripts, data processing | Per RSR | | ||
|
|
@@ -71,10 +71,10 @@ The following files in `.machine_readable/` contain structured project metadata: | |
| |--------|-------------| | ||
| | TypeScript | AffineScript | | ||
| | ReScript | AffineScript | | ||
| | Node.js | Deno | | ||
| | npm | Deno | | ||
| | Bun | Deno | | ||
| | pnpm/yarn | Deno | | ||
| | Deno | Bun | | ||
| | Node.js | Bun | | ||
| | npm | Bun | | ||
| | pnpm/yarn | Bun | | ||
|
Comment on lines
+75
to
+77
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- changed hunk ---'
git diff -- .claude/CLAUDE.md
printf '%s\n' '--- relevant tool configuration ---'
cat -n mise.toml | sed -n '1,40p'
printf '%s\n' '--- direct references to the policy and mise configuration ---'
rg -n --glob '!node_modules' --glob '!dist' --glob '!build' \
'CLAUDE\.md|mise\.toml|mise install|mise run|mise exec|bun install|npm |pnpm |yarn |node ' \
.github .claude README.md CONTRIBUTING.md package.json 2>/dev/null || trueRepository: hyperpolymath/nextgen-languages Length of output: 1477 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- policy section ---'
cat -n .claude/CLAUDE.md | sed -n '40,85p'
printf '%s\n' '--- tracked automation/configuration files ---'
git ls-files | rg '(^|/)(\.github/|\.claude/|mise\.toml$|Makefile$|Taskfile|justfile|package\.json$|README|CONTRIBUTING)' || true
printf '%s\n' '--- all tracked references to mise and tool activation ---'
rg -n --hidden --glob '!.git/**' --glob '!node_modules/**' \
'mise(\.toml| install| activate| exec| run)?|mise use|mise-en-place|claude|npm install|pnpm install|yarn install|bun install' \
. || trueRepository: hyperpolymath/nextgen-languages Length of output: 5883 Align
🤖 Prompt for AI Agents |
||
| | Go | Rust | | ||
| | Python | Julia/Rust | | ||
| | Java/Kotlin | Rust/Tauri/Dioxus | | ||
|
|
@@ -94,8 +94,8 @@ Both are FOSS with independent governance (no Big Tech). | |
| ### Enforcement Rules | ||
|
|
||
| 1. **No new TypeScript or ReScript files** - Convert existing TS/ReScript (`.ts`/`.tsx`/`.res`/`.resi`) to AffineScript | ||
| 2. **No package.json for runtime deps** - Use deno.json imports | ||
| 3. **No node_modules in production** - Deno caches deps automatically | ||
| 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, AffineScript for apps | ||
| 6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus | ||
|
|
@@ -104,7 +104,7 @@ Both are FOSS with independent governance (no Big Tech). | |
|
|
||
| - **Primary**: Guix (guix.scm) | ||
| - **Fallback**: Nix (flake.nix) | ||
| - **JS deps**: Deno (deno.json imports) | ||
| - **JS deps**: Bun (`package.json` + `bun.lock`). Declare tooling as a devDependency and run `bunx --no-install --bun <tool>` — a bare `bunx <tool>` can fetch an unpinned package and may start Node via its shebang. | ||
|
|
||
| ### Security Requirements | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Synchronise the machine-readable policy contracts.
.claude/CLAUDE.mdnow selects Bun and requirespackage.jsonplusbun.lock, but.machine_readable/bot_directives/gitbot-fleet.a2ml:44-46still deniesnpm/bun/yarn/pnpmdependencies and.machine_readable/contractiles/Mustfile.a2ml:25-29still declaresDeno only. Active bots or agents that read those contracts can reject the Bun workflow required here. Update those contracts in the same change, or define and enforce one precedence rule.Also applies to: 74-77, 97-98, 107-107
🧰 Tools
🪛 LanguageTool
[misspelling] ~55-~55: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...ESM/JS directly — no bundler step. Uses an npm-compatible
package.jsonplus `bun...(EN_A_VS_AN)
[misspelling] ~55-~55: This word is normally spelled as one.
Context: ...lus
bun.lock— both are expected, not anti-patterns. | | Rust | Performance-critical, s...(EN_COMPOUNDS_ANTI_PATTERNS)
🤖 Prompt for AI Agents