Skip to content

JavaScript/JSX indexing, setup commands and agent outcome harness - #7

Merged
akosidencio merged 1 commit into
mainfrom
feat/v0.1.2-agent-dx-javascript
Nov 1, 2026
Merged

akosidencio merged 1 commit into
mainfrom
feat/v0.1.2-agent-dx-javascript

Conversation

@akosidencio

Copy link
Copy Markdown
Member

Summary

Next release, 0.1.2 (version not bumped in this PR):

  • JavaScript and JSX: .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.
  • Setup commands: repogi init (writes only .code-intel/.gitignore), read-only repogi doctor, and repogi agent add claude|codex (prints by default; --write creates a project client file only when none exists).
  • Agent outcome benchmark: 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

  • TypeScript-only repositories: semantic graph, status and knowledge output are byte-identical to 0.1.1. A control build with only the coverage wording reverted is byte-identical on all 11 TypeScript-only fixtures (39 outputs each).
  • Intentional output changes: MCP descriptions and instructions say "TypeScript/JavaScript" instead of "TypeScript/TSX"; navigation evidence lists all indexed extensions; manifest analysis.languages adds javascript/jsx; impact coverage.not_analysed names CommonJS and dynamic imports instead of JavaScript. Tool IDs, parameters and profiles are unchanged.
  • No schema or IR version change. An existing 0.1.1 index upgrades on the next repogi index (TypeScript files are not reparsed); .repogi/memory.db is untouched.
  • Tests that asserted JavaScript files were unsupported now assert JavaScript coverage. tests/dynamic.test.js in the affected-tests fixture moves from unknown to possible (its dynamic import is still never confirmed).

Evaluation

  • Labeled fixture fixtures/javascript: 69 resolved edges matched exactly, zero false confirmed, 14 sites stay unconfirmed.
  • TypeScript 6.0.3 language service as oracle (scripts/evaluation/javascript_graph.py): Chart.js 71d4421 2,645/2,646 resolved JS edges agree (the one difference was reviewed and is correct); react-redux-realworld ee72eba 361/361.
  • Existing investigation, knowledge, project memory and durability evaluations pass.

Checks run locally

  • cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, git diff --check
  • cargo test --workspace --locked -- --test-threads=1: 307 passed, 0 failed (also the new tests with a symlinked TMPDIR)
  • scripts/prepare_source.py, scripts/release/tests/test_installers.py, scripts/release/check_notices.py for all four targets, scripts/release/smoke.py
  • Container (bookworm) release build, inspect_binary.py, package.py; local install.sh → init --index → doctor without Rust on PATH
  • Agent harness tests and grader validation (reference solutions pass, no-op runs fail)

Not verified locally: native macOS and arm64 Linux (CI and the release dry run cover them).

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.
@akosidencio
akosidencio merged commit 2dbad89 into main Nov 1, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant