From 01b477da26a08aa8b80857a55c6792881c5bba58 Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Wed, 15 Oct 2025 20:23:32 -0400 Subject: [PATCH] feat: Add build and publish scripts for claude-mem - Implemented build.js to bundle TypeScript source into a minified executable using Bun. - Created publish.js to handle version bumping, building, and publishing to npm with user prompts. - Added tests for database schema and hook functions in database-schema.test.ts. - Introduced integration tests for hooks database in hooks-database-integration.test.ts. - Developed end-to-end tests for SDK prompts and parser in sdk-prompts-parser.test.ts. - Created session lifecycle tests to simulate complete Claude Code session in session-lifecycle.test.ts. --- BUILD.md => docs/BUILD.md | 0 CHANGELOG.md => docs/CHANGELOG.md | 0 build.js => scripts/build.js | 0 publish.js => scripts/publish.js | 0 test-phase1.ts => tests/database-schema.test.ts | 0 .../hooks-database-integration.test.ts | 0 test-phase2.ts => tests/sdk-prompts-parser.test.ts | 0 test-phase3-e2e.ts => tests/session-lifecycle.test.ts | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename BUILD.md => docs/BUILD.md (100%) rename CHANGELOG.md => docs/CHANGELOG.md (100%) rename build.js => scripts/build.js (100%) rename publish.js => scripts/publish.js (100%) rename test-phase1.ts => tests/database-schema.test.ts (100%) rename test-phase3-integration.ts => tests/hooks-database-integration.test.ts (100%) rename test-phase2.ts => tests/sdk-prompts-parser.test.ts (100%) rename test-phase3-e2e.ts => tests/session-lifecycle.test.ts (100%) diff --git a/BUILD.md b/docs/BUILD.md similarity index 100% rename from BUILD.md rename to docs/BUILD.md diff --git a/CHANGELOG.md b/docs/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to docs/CHANGELOG.md diff --git a/build.js b/scripts/build.js similarity index 100% rename from build.js rename to scripts/build.js diff --git a/publish.js b/scripts/publish.js similarity index 100% rename from publish.js rename to scripts/publish.js diff --git a/test-phase1.ts b/tests/database-schema.test.ts similarity index 100% rename from test-phase1.ts rename to tests/database-schema.test.ts diff --git a/test-phase3-integration.ts b/tests/hooks-database-integration.test.ts similarity index 100% rename from test-phase3-integration.ts rename to tests/hooks-database-integration.test.ts diff --git a/test-phase2.ts b/tests/sdk-prompts-parser.test.ts similarity index 100% rename from test-phase2.ts rename to tests/sdk-prompts-parser.test.ts diff --git a/test-phase3-e2e.ts b/tests/session-lifecycle.test.ts similarity index 100% rename from test-phase3-e2e.ts rename to tests/session-lifecycle.test.ts