Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Cross-platform document editor with format tabs, allowing users to view and edit
- Ada (TUI)
- Nickel (pipelines, config)
- Guile Scheme (SCM files)
- Deno (runtime)
- Bun (runtime, first choice)

### BANNED - Do Not Use
- TypeScript (use AffineScript)
- Node.js/npm/bun (use Deno)
- Node.js/npm (use Bun first)
- Go (use Rust)
- Python (not applicable here)
- Makefiles (use justfile)
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# package.json is JCS-canonical (LANGUAGE-POLICY §1.4).
# Prettier must not reformat it.
package.json
15 changes: 15 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 19 additions & 25 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
[tools]
# Language runtimes
node = "latest"
python = "latest"
rust = "latest"
go = "latest"
zig = "latest"
java = "latest"
bun = "latest"
denojs = "latest"
bun = "1.4"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep provisioning Deno until its callers are migrated

On a fresh checkout provisioned through mise, Deno is no longer installed, but the repository still unconditionally requires it in Justfile:195 and invokes it for the documented UI build in Justfile:98; the Gossamer build hooks also call it in crates/formatrix-gui/gossamer.conf.json:9-10. Consequently, just deps and the UI portion of just build fail in the environment this configuration now creates. Either retain denojs until those callers are migrated or update all of them to Bun in this change.

Useful? React with 👍 / 👎.


# Package managers
npm = "latest"
yarn = "latest"
pnpm = "latest"
pip = "latest"
cargo = "latest"
go-task = "latest"

# Formatting & Linting
gofmt = "latest"
black = "latest"
isort = "latest"
ruff = "latest"
prettier = "latest"
shfmt = "latest"
stylua = "latest"

# Build tools
cmake = "latest"
make = "latest"
ninja = "latest"

# Shell tools
Expand All @@ -38,20 +24,28 @@ gnu-tar = "latest"
gnu-grep = "latest"

# Testing
vitest = "latest"
pytest = "latest"
jest = "latest"

[env]
# Common environment variables
NODE_ENV = "development"
PYTHONDONTWRITEBYTECODE = "1"
PYTHONUNBUFFERED = "1"

# Task runner alias
[alias]
task = "go-task"
build = "cargo build --release || npm run build || go build"
test = "cargo test || npm test || go test ./..."
lint = "ruff check . || prettier --check . || black --check ."
fmt = "ruff format . || prettier --write . || black ."

[tasks.setup]
description = "Install pinned JS dev tools (Prettier) from bun.lock"
run = "bun install --frozen-lockfile"

[tasks.build]
run = "cargo build --release --workspace"

[tasks.test]
run = "cargo test --workspace"

[tasks.lint]
depends = ["setup"]
run = 'bunx --no-install --bun prettier --check --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"'
Comment thread
hyperpolymath marked this conversation as resolved.
Resolved

[tasks.fmt]
depends = ["setup"]
run = 'bunx --no-install --bun prettier --write --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"'
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"devDependencies": {
"prettier": "3.10.1"
},
Comment on lines +1 to +4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Regenerate every runtime artifact for the new manifest

This non-empty dependency manifest is pretty-printed rather than JCS-canonical, and the committed tree contains only bun.lock, with no deno.lock or pnpm-lock.yaml. The cited LANGUAGE-POLICY §1.4 makes js-runtimes regen the sole writer, requires it to canonicalize package.json and generate all three runtime locks, and states that governance rejects a noncanonical manifest or missing lock. Run that generator and commit its complete output; otherwise this change fails the package-policy gate.

Useful? React with 👍 / 👎.

"license": "MPL-2.0",
"name": "docmatrix",
"private": true
}
Loading