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
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
watch_file flake.nix flake.lock package.json package-lock.json
nix_direnv_disallow_fallback
use flake . --no-pure-eval
19 changes: 0 additions & 19 deletions .github/workflows/feature.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/staging.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/tag.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,10 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Local development state
/.direnv
/.devenv
/.agents
/.prettiercache
!/.envrc
5 changes: 5 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[submodule ".matrixai/matrixai-standards"]
path = .matrixai/matrixai-standards
url = git@github.com:MatrixAI/matrixai-standards.git
branch = master
shallow = true
1 change: 1 addition & 0 deletions .matrixai/matrixai-standards
Submodule matrixai-standards added at 993c59
1 change: 1 addition & 0 deletions .matrixai/repo-profile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
profile: library-js
15 changes: 0 additions & 15 deletions .npmignore

This file was deleted.

51 changes: 51 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# AGENTS

- This is a library-js repository. The profile selector is
[`.matrixai/repo-profile.yml`](.matrixai/repo-profile.yml).
- Use Node.js 24 or newer for development. Publish one ES2022/NodeNext ESM
artifact for Node, browsers, and workers; do not add platform SDKs or builtins
to runtime source.
- Source imports are relative. Tests import built modules through the package
import mapping. Local tests build incrementally; hermetic checks use prebuilt
output. Preserve explicit type imports and standard-track decorators.
- Run `npm run lintfix` during development; reserve `npm run lint` for
non-mutating verification. MatrixAI lint owns formatting across supported
domains. Do not invoke underlying formatters directly.
- Golden commands: `npm run build`, `npm test`, `npm run lintfix`, and
`nix build '.#checks.x86_64-linux.runtime'`.
- Use Vitest with explicit imports, a 20-second default timeout, and
JUnit/coverage artifacts under `tmp/`.
- Documentation is handwritten Markdown. Do not restore TypeDoc or generated API
documentation, add GitHub Actions, or publish/tag without approval.
- Keep prepared npm archives verbatim: preserve the canonical manifest and
dependency declarations. Resolve runtime producers from the lockfile-selected
commit, validate their descriptors, and use importNpmLock's matching hook.
- Prefer Git-backed flake refs. Review Git status and stage only exact new flake
inputs when needed; preserve unrelated index state.
- Run project commands directly in an inherited activated environment. Do not
load credentials or change persistent shell options during activation.
- Follow the two-space, LF, final-newline editor configuration. Use ASCII prose
punctuation. Never encode line numbers in repository Markdown link targets.
- Read the standards submodule at `.matrixai/matrixai-standards`: enforce its
universal hotset, prose rules, and library-js profile, with this repository's
explicit handwritten-docs override. Refresh it only with authorized access.
- Materialize profile-selected skills after standards updates with
`nix run './.matrixai/matrixai-standards#skills-materializer' -- --standards-root ./.matrixai/matrixai-standards`.

## Development environment and lint

- User-authorized override: obtain MatrixAI lint from the selected public
package set through `pkgs.matrixai-lint.withTools`, not an npm lint dependency
or direct js-lint flake input. Keep TypeScript as a consumer development
dependency.
- Share one lint environment, including nixfmt and ShellCheck, between the
integrated devenv shell, `formatter`, and independent `lint.mkCheck` gate.
- Use `npm run lintfix` for development and `npm run lint` for non-mutating
verification. `nix fmt` uses the same bundled CLI and formatting authority.
This replaces the previous local prohibition on a flake formatter entrypoint.
- The bundled toolchain CLI owns lint configuration. Do not restore consumer
configuration imports from npm lint or invoke underlying formatters directly.
- Keep runtime Git-provider archive preparation and descriptor validation
intact. Relevant domains must not rely on user-profile tools or silently skip
missing backends. Use `npm run lintfix -- --explain` to inspect domain
decisions.
Loading
Loading