flow-cc 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.1] - 2026-02-11
9
+
10
+ ### Fixed
11
+ - `/flow:update` changelog display — `require.resolve` fails under npx; replaced with `--changelog` flag on install.js
12
+
8
13
  ## [0.4.0] - 2026-02-11
9
14
 
10
15
  ### Added
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
package/bin/install.js CHANGED
@@ -29,6 +29,18 @@ const versionFile = path.join(pkgRoot, 'VERSION');
29
29
 
30
30
  const uninstall = process.argv.includes('--uninstall') || process.argv.includes('-u');
31
31
  const verify = process.argv.includes('--verify') || process.argv.includes('-v');
32
+ const changelog = process.argv.includes('--changelog');
33
+
34
+ // ---------- Changelog ----------
35
+ if (changelog) {
36
+ const changelogPath = path.join(pkgRoot, 'CHANGELOG.md');
37
+ try {
38
+ console.log(fs.readFileSync(changelogPath, 'utf8'));
39
+ } catch (e) {
40
+ console.log('CHANGELOG not available');
41
+ }
42
+ process.exit(0);
43
+ }
32
44
 
33
45
  // ---------- Verify ----------
34
46
  if (verify) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-cc",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Structured workflow system for Claude Code — spec interviews, agent-team execution, session handoffs, compounding knowledge",
5
5
  "author": "Troy Hoffman",
6
6
  "license": "MIT",
@@ -50,7 +50,7 @@ Flow is up to date (v<version>)
50
50
 
51
51
  Fetch the CHANGELOG.md from the Flow repo to show the user what changed:
52
52
 
53
- 1. Run: `npx -y -p flow-cc@<latest> node -e "const fs=require('fs'),p=require('path');try{console.log(fs.readFileSync(p.join(require.resolve('flow-cc/package.json'),'..','CHANGELOG.md'),'utf8'))}catch(e){console.log('CHANGELOG not available')}"`
53
+ 1. Run: `npx -y flow-cc@<latest> --changelog`
54
54
  2. Parse the output and extract only the section for `v<latest>` (from the `## [<latest>]` heading to the next `## [` heading or end of file)
55
55
  3. Print:
56
56