Skip to content

Commit 7e617d8

Browse files
committed
release: 0.7.6 (fix permission denied on global install)
The 0.7.5 tarball shipped `dist/bin/codegraph.js` without the executable bit set, causing `zsh: permission denied: codegraph` after a fresh global install. The build script now `chmod +x`'s the binary before packing. Also adds CHANGELOG.md and documents the release workflow in CLAUDE.md.
1 parent 6ac2066 commit 7e617d8

4 files changed

Lines changed: 70 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Changelog
2+
3+
All notable changes to CodeGraph are documented here. Each entry also ships as
4+
a [GitHub Release](https://github.com/colbymchenry/codegraph/releases) tagged
5+
`vX.Y.Z`, which is where most people will look.
6+
7+
This project follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
8+
and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9+
10+
## [0.7.6] - 2026-05-13
11+
12+
### Fixed
13+
- `codegraph` CLI failing with `zsh: permission denied: codegraph` after a fresh
14+
global install. The published 0.7.5 tarball shipped `dist/bin/codegraph.js`
15+
without the executable bit, so the shell refused to run it through the npm
16+
symlink. The build now `chmod +x`'s the binary before packing.
17+
18+
Already on 0.7.5? Either upgrade to 0.7.6, or unblock yourself in place:
19+
```bash
20+
chmod +x "$(npm root -g)/@colbymchenry/codegraph/dist/bin/codegraph.js"
21+
```
22+
23+
[0.7.6]: https://github.com/colbymchenry/codegraph/releases/tag/v0.7.6

CLAUDE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,49 @@ CodeGraph provides **code context**, not product requirements. For new features,
139139
- Edge cases and error handling
140140
- Acceptance criteria
141141

142+
## Releases
143+
144+
Releases are published to npm **and** mirrored as GitHub Releases on the
145+
[Releases page](https://github.com/colbymchenry/codegraph/releases), which is
146+
where most users look for change history. `CHANGELOG.md` at the repo root is
147+
the source of truth — each GitHub Release's notes are extracted from it.
148+
149+
### Writing changelog entries
150+
151+
When the user asks for a changelog entry for a new version:
152+
153+
1. Add a new `## [X.Y.Z] - YYYY-MM-DD` block at the **top** of `CHANGELOG.md`
154+
(directly under the intro, above the previous version).
155+
2. Group changes under `### Added`, `### Changed`, `### Fixed`, `### Removed`,
156+
`### Deprecated`, `### Security` — only include sections that have entries.
157+
3. Write entries from the **user's perspective**, not the implementation's.
158+
Lead with the observable symptom or capability, then mention internals only
159+
if a user needs them (e.g., to work around an existing bad install).
160+
4. Add the link reference at the bottom:
161+
`[X.Y.Z]: https://github.com/colbymchenry/codegraph/releases/tag/vX.Y.Z`
162+
163+
### Release commands (the user runs these)
164+
165+
After the changelog entry is written and the version is bumped in `package.json`:
166+
167+
```bash
168+
git add package.json package-lock.json CHANGELOG.md
169+
git commit -m "release: X.Y.Z (<one-line summary>)"
170+
git push
171+
172+
npm publish
173+
174+
git tag vX.Y.Z
175+
git push origin vX.Y.Z
176+
gh release create vX.Y.Z \
177+
--title "vX.Y.Z" \
178+
--notes-file <(awk '/^## \[X.Y.Z\]/,/^## \[/{ if (/^## \[/ && !/X.Y.Z/) exit; print }' CHANGELOG.md)
179+
```
180+
181+
Do **not** run `npm publish`, `git tag`, `git push`, or `gh release create`
182+
yourself — these are publish actions that affect shared state. Write the file,
183+
hand the user the commands.
184+
142185
## Test Structure
143186

144187
Tests are in `__tests__/` directory with files mirroring the module structure:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@colbymchenry/codegraph",
3-
"version": "0.7.2",
3+
"version": "0.7.6",
44
"description": "Supercharge Claude Code with semantic code intelligence. 94% fewer tool calls • 77% faster exploration • 100% local.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
1313
"README.md"
1414
],
1515
"scripts": {
16-
"build": "tsc && npm run copy-assets",
16+
"build": "tsc && npm run copy-assets && node -e \"require('fs').chmodSync('dist/bin/codegraph.js', 0o755)\"",
1717
"preuninstall": "node dist/bin/uninstall.js",
1818
"copy-assets": "node -e \"const fs=require('fs');fs.mkdirSync('dist/db',{recursive:true});fs.copyFileSync('src/db/schema.sql','dist/db/schema.sql');fs.mkdirSync('dist/extraction/wasm',{recursive:true});fs.readdirSync('src/extraction/wasm').filter(f=>f.endsWith('.wasm')).forEach(f=>fs.copyFileSync('src/extraction/wasm/'+f,'dist/extraction/wasm/'+f))\"",
1919
"dev": "tsc --watch",

0 commit comments

Comments
 (0)