AGENTS.md: three stale statements send contributors the wrong way
AGENTS.md is the only contributor/agent guide in the repo, and three of its statements no longer match the tree. Each one changes what a contributor does, so I'd rather report than patch someone's guide unasked — happy to open a PR if you prefer.
1. The invoke import does not exist
AGENTS.md (Tauri Invoke):
import { invoke } from '@tauri-apps/api';
The v2 root package does not export invoke:
$ node -e "import('@tauri-apps/api').then(m => console.log(Object.keys(m).join(', ')))"
app, core, dpi, event, image, menu, mocks, path, tray, webview, webviewWindow, window
All 10 call sites in src/ already use @tauri-apps/api/core. Suggested: change the one line in the snippet.
2. "No test framework currently configured"
There are 67 files in scripts/*.test.ts, and npm test runs them:
$ npm test
ℹ tests 361
ℹ pass 361
Suggested: - **Frontend**: \npm test` runs the behavior tests in `scripts/``
3. The CI line is incomplete
AGENTS.md says CI runs npm run check and cargo test. .github/workflows/test.yml also runs npm audit and npm test, so a PR can pass the documented checks and still fail CI.
Suggested: - **CI**: Runs \npm audit`, `npm run check`, `npm test` and `cargo test` on PRs`
Item 2 is the one that costs the most: a contributor reading it concludes the project has no frontend tests, writes none, and finds out at CI.