GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — jsfeatNext/CLAUDE.md at main · webarkit/jsfeatNext

Expand file tree

/

CLAUDE.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
15 lines (11 loc) · 2.71 KB
/

CLAUDE.md

Copy path

File metadata and controls

15 lines (11 loc) · 2.71 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

CLAUDE.md

The canonical, tool-agnostic guidance for this repo lives in AGENTS.md. It is imported below — treat it as the source of truth.

@AGENTS.md

Claude-specific notes

  • Every algorithm lives in its own module under src/<module>/<module>.ts, extending the base in src/core/core.ts; src/jsfeatNext.ts is only the aggregator that attaches the singletons (the old inline monolith and its type-only stubs are gone since #47).
  • Always run npm test (Vitest parity suite vs a vendored original-jsfeat oracle) before claiming an algorithm change is verified; for consumer-facing changes also build (npm run build-ts) and check the relevant examples/*.html, or ask the user to confirm.
  • On this Windows machine: verify formatting with node_modules/.bin/prettier directly (bare npx prettier can resolve the wrong version) and regenerate package-lock.json only with npx npm@11.
  • The audit/roadmap is in docs/jsfeat-parity-and-refactor-audit.md; the 0.9.0 API break is documented in docs/migration-0.9.md; the release runbook is in MAINTAINERS.md.
  • Keep numeric/behavioral parity with the original jsfeat; preserve the public jsfeatNext.<module> API.
  • Every new source file needs a license header. Any file you create under src/, tests/ or examples/ must start with the LGPL header, or CI fails. Run node scripts/check-license-headers.mjs --fix after adding files. The header has three variants and the script picks by path: ported/derived code gets the upstream jsfeat MIT attribution appended, code original to jsfeatNext does not (it would be a false credit), and OpenCV-derived code (src/gms/, src/teblid/, src/freak/) gets the per-file attribution from the matching ATTRIBUTION-opencv-*.txt instead of the jsfeat one: Apache-2.0 for gms and teblid (text in LICENSES/Apache-2.0.txt), BSD-3-Clause for freak (text in LICENSES/BSD-3-Clause-FREAK.txt). The check compares the applied header against its variant byte-for-byte, so the wrong one fails CI. See .agents/skills/license-header-adder/SKILL.md — and don't overwrite the existing *BSD/OpenCV notices in src/math/math.ts and src/orb/bit_pattern_31.ts.
  • OpenCV comparisons and ports use OpenCV 4.10.0 only — the reference build PureCV measures against (opencv-contrib-python pinned in scripts/requirements-fixtures.txt). Read upstream sources at that release, generate fixtures only with the pinned wheel, and state the version in any "OpenCV does X" claim. Changing it takes its own issue (plus the matching one in webarkit/purecv) and PR; see AGENTS.md, "OpenCV reference version".
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.