refactor: remove deprecated hook templates and related utilities

- Deleted hook-prompt-renderer.js and hook-prompts.config.js as they are no longer needed.
- Removed path-resolver.js, stop.js, and user-prompt-submit.js for streamlining the codebase.
- Updated package.json scripts to point to new build and publish scripts.
- Adjusted test imports to reflect new directory structure after removing unnecessary files.
This commit is contained in:
Alex Newman
2025-10-15 20:24:08 -04:00
parent 01b477da26
commit edeed2ee2c
17 changed files with 56 additions and 1857 deletions
+19 -7
View File
@@ -14,7 +14,7 @@ Build the project to create a bundled, minified executable:
```bash
npm run build
# or
node build.js
node scripts/build.js
```
This will:
@@ -38,7 +38,7 @@ To publish a new version to npm:
```bash
npm run publish:npm
# or
node publish.js
node scripts/publish.js
```
The publish script will:
@@ -99,12 +99,24 @@ claude-mem/
├── src/ # TypeScript source
│ ├── bin/cli.ts # CLI entry point
│ ├── commands/ # Command implementations
│ ├── services/ # Core services
── shared/ # Shared utilities
│ ├── hooks/ # Hook implementations
── sdk/ # Agent SDK worker
│ ├── services/ # SQLite and path services
│ ├── shared/ # Configuration and types
│ └── utils/ # Platform utilities
├── dist/ # Build output
│ └── claude-mem.min.js # Bundled executable
├── build.js # Build script
├── publish.js # Publish script
├── tests/ # Test files
│ ├── database-schema.test.ts
│ ├── sdk-prompts-parser.test.ts
│ ├── hooks-database-integration.test.ts
│ └── session-lifecycle.test.ts
├── docs/ # Documentation
│ ├── BUILD.md # This file
│ └── CHANGELOG.md # Release notes
├── scripts/ # Build automation
│ ├── build.js # Build script
│ └── publish.js # Publish script
└── package.json # Package configuration
```
@@ -113,4 +125,4 @@ claude-mem/
- The build process embeds the version from `package.json` at build time
- `prepublishOnly` script ensures build runs before npm publish
- Dependencies are bundled except for external packages
- The published package includes: `dist/`, `hook-templates/`, `commands/`, `src/`
- The published package includes: `dist/`, `hook-templates/`, `commands/`, `src/`, `docs/`