Skip to content

fix: update npm package name and Node version; test: implement memory and telemetry tests#54

Open
Oxygen56 wants to merge 2 commits into
open-gitagent:mainfrom
Oxygen56:fix/install-sh-and-tests
Open

fix: update npm package name and Node version; test: implement memory and telemetry tests#54
Oxygen56 wants to merge 2 commits into
open-gitagent:mainfrom
Oxygen56:fix/install-sh-and-tests

Conversation

@Oxygen56
Copy link
Copy Markdown

@Oxygen56 Oxygen56 commented Jun 4, 2026

Summary

Two changes:

1. Bugfixes

  • install.sh: Fix outdated unscoped npm package name (gitagent@open-gitagent/gitagent) and incorrect Node.js version check (≥18 → ≥20 to match package.json engines field)
  • Documentation.md: Fix stale version string (1.3.3 → 1.5.2) and same npm package name issue
  • README.md: Fix npm badge URL, Node version requirement, and FAQ reference

2. Tests

  • src/tools/tests/memory.test.ts: 7 real tests replacing 3 it.todo() stubs — covering load (stored content, empty/missing file, heading-only file), save (writes content+git commit, default message, content required validation), and abort signal handling
  • src/tests/telemetry.test.ts: 4 real tests replacing 2 it.todo() stubs — covering graceful init without endpoint, init with test provider, idempotency, and shutdown state reset

Test Plan

  • All 27 existing tests pass with no regressions
  • All 11 new tests pass (7 memory + 4 telemetry)
  • Build succeeds with tsc
  • install.sh version check correctly requires Node 20+

Oxygen56 and others added 2 commits June 5, 2026 03:18
- install.sh: Update Node.js version check from >=18 to >=20 to match
  package.json engines field
- Documentation.md: Update version string from 1.3.3 to 1.5.2 and npm
  update command to use scoped package @open-gitagent/gitagent
- README.md: Update Node.js requirement from 18+ to 20+ in install
  instructions and FAQ, fix npm badge to use scoped package name
- tsconfig.json: Exclude __tests__ directories from compilation

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- src/tools/__tests__/memory.test.ts: Replace 3 it.todo() stubs with
  7 real tests covering load, save (with git commits), default message,
  content validation, and abort signal handling
- src/__tests__/telemetry.test.ts: Replace 2 it.todo() stubs with
  4 real tests covering initTelemetry behavior without endpoint,
  with _testProvider, idempotency, and shutdown state reset

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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