Repository navigation
JavaScript/JSX indexing, setup commands and agent outcome harness - #7
Merged
Merged
Conversation
JavaScript and JSX - Index .js, .jsx, .mjs and .cjs with tree-sitter-javascript 0.23.1, and .mts/.cts with the TypeScript grammar. core::language is the single extension rule for discovery, freshness, navigation, test discovery and impact. - One extractor and binder for both languages. JavaScript parameter patterns are bound as locals (a shadowing parameter never resolves to an import) and class_heritage records EXTENDS. - JavaScript importers use a conservative lookup: an explicit extension names that file (else the TypeScript source of that output name), extensionless specifiers try files before directories, and candidates that tools disagree on are ambiguous. CommonJS, dynamic import() and instance dispatch stay unconfirmed. - TypeScript-only repositories produce byte-identical graphs; only the coverage wording in MCP descriptions and evidence lines changes. - Labeled fixture (fixtures/javascript, 69 edges, zero false confirmed) and an oracle evaluation against the TypeScript language service (scripts/evaluation/javascript_graph.py). Developer experience - repogi init: root detection, source counts, writes only .code-intel/.gitignore; idempotent; --dry-run and --index. - repogi doctor: read-only diagnostics with fixes for the binary, index, language coverage, freshness, memory store, ignore rules and Claude Code / Codex project configuration. - repogi agent add claude|codex: prints a single-repository MCP entry; --write creates .mcp.json or .codex/config.toml only when absent. Agent outcome benchmark - scripts/evaluation/agent_outcomes: paired baseline vs Repogi sessions on six graded tasks, hidden-test and snapshot-checked grading, mock and Claude Code adapters, digest-gated live runs, resume and reports. No live results are included. Also: tree-sitter-javascript license notice, source manifests, CI step for the harness tests, and documentation for the new behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Next release, 0.1.2 (version not bumped in this PR):
.js,.jsx,.mjs,.cjs(tree-sitter-javascript 0.23.1) and.mts/.cts, sharing one extractor, binder and graph with TypeScript. JavaScript importers use a conservative module lookup; CommonJS,import()and instance dispatch stay unconfirmed.repogi init(writes only.code-intel/.gitignore), read-onlyrepogi doctor, andrepogi agent add claude|codex(prints by default;--writecreates a project client file only when none exists).scripts/evaluation/agent_outcomes/, paired baseline vs Repogi sessions with independent grading. No live agent results are included; live runs require a reviewed plan digest.Compatibility
analysis.languagesaddsjavascript/jsx; impactcoverage.not_analysednames CommonJS and dynamic imports instead of JavaScript. Tool IDs, parameters and profiles are unchanged.repogi index(TypeScript files are not reparsed);.repogi/memory.dbis untouched.tests/dynamic.test.jsin the affected-tests fixture moves from unknown to possible (its dynamic import is still never confirmed).Evaluation
fixtures/javascript: 69 resolved edges matched exactly, zero false confirmed, 14 sites stay unconfirmed.scripts/evaluation/javascript_graph.py): Chart.js71d44212,645/2,646 resolved JS edges agree (the one difference was reviewed and is correct); react-redux-realworldee72eba361/361.Checks run locally
cargo fmt --check,cargo clippy --workspace --all-targets -- -D warnings,git diff --checkcargo test --workspace --locked -- --test-threads=1: 307 passed, 0 failed (also the new tests with a symlinkedTMPDIR)scripts/prepare_source.py,scripts/release/tests/test_installers.py,scripts/release/check_notices.pyfor all four targets,scripts/release/smoke.pyinspect_binary.py,package.py; localinstall.sh→init --index→doctorwithout Rust on PATHNot verified locally: native macOS and arm64 Linux (CI and the release dry run cover them).