Skip to content

fix: add missing dist/index.js barrel file#17

Merged
TonyCasey merged 1 commit intomainfrom
git-32
Feb 11, 2026
Merged

fix: add missing dist/index.js barrel file#17
TonyCasey merged 1 commit intomainfrom
git-32

Conversation

@TonyCasey
Copy link
Copy Markdown
Owner

@TonyCasey TonyCasey commented Feb 11, 2026

Summary

  • Created src/index.ts barrel file exporting the full public API (domain, application, infrastructure, MCP)
  • Updated package.json: maindist/index.js, added typesdist/index.d.ts
  • Bumped version to 0.1.1

Fixes GIT-32

Test plan

  • npm run build — compiles successfully, dist/index.js and dist/index.d.ts generated
  • npm run lint — passes
  • npm test — all 135 tests pass
  • npm pack --dry-run — confirms dist/index.js included in package

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Chores

    • Bumped package version to 0.1.1
    • Updated entry point configuration
  • New Features

    • Added full TypeScript type definitions for improved IDE support
    • Expanded public API surface with new services and utilities

…try point

The published git-mem@0.1.0 was missing dist/index.js — consumers doing
require('git-mem') got a broken module. Created src/index.ts exporting the
full public API (domain, application, infrastructure, MCP), updated main to
dist/index.js, added types field, and bumped to 0.1.1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 11, 2026

📝 Walkthrough

Walkthrough

This PR establishes a public API surface by creating a new index.ts entry point that re-exports domain types, application services, and infrastructure implementations. Package.json is updated to reference the new main entry point and declare TypeScript declarations.

Changes

Cohort / File(s) Summary
Package Configuration
package.json
Version bumped to 0.1.1; main entry changed from dist/cli.js to dist/index.js; TypeScript types declaration added pointing to dist/index.d.ts.
Public API Surface
src/index.ts
New index file that re-exports domain entities (IMemoryEntity, ITrailer), domain types (ConfidenceLevel, MemoryLifecycle, MemoryRelationType), domain interfaces (IGitClient, INotesService, ITrailerService, IMemoryRepository, IGitTriageService, ILLMClient), domain errors (GitMemError, LLMError), domain utilities (deduplication functions), application services (MemoryService, ContextService, LiberateService, GitTriageService), infrastructure implementations (GitClient, NotesService, TrailerService, MemoryRepository, AnthropicLLMClient), pattern utilities, and MCP server factory.

Possibly related PRs

  • #154 — Adds MemoryRelationType, IMemoryRelationship, RELATION_LABELS, INVERSE_RELATIONS types that are now exposed in the public API.
  • #202 — Introduces IGitTriageService and GitTriageService implementations that are newly exported as part of the public API surface.
  • #164 — Contributes deduplication utilities (normalizeText, extractWords, jaccardSimilarity) that are now exposed publicly.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a barrel file (src/index.ts) that exports the public API, with corresponding updates to package.json to point to the new entry point.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch git-32

No actionable comments were generated in the recent review. 🎉

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

@TonyCasey TonyCasey merged commit 07e7568 into main Feb 11, 2026
3 checks passed
@TonyCasey TonyCasey deleted the git-32 branch February 11, 2026 13:18
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