@haus-tech/haus-workflow 0.26.1 → 0.27.0

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.27.0](https://github.com/WeAreHausTech/haus-workflow/compare/v0.26.1...v0.27.0) (2026-06-15)
4
+
5
+ ### Features
6
+
7
+ - **install:** suggest Caveman and RTK after global install ([#111](https://github.com/WeAreHausTech/haus-workflow/issues/111)) ([ab39845](https://github.com/WeAreHausTech/haus-workflow/commit/ab3984550f931f10083aa8e9e5b736c9a7765e94))
8
+
3
9
  ## [0.26.1](https://github.com/WeAreHausTech/haus-workflow/compare/v0.26.0...v0.26.1) (2026-06-15)
4
10
 
5
11
  ## [0.26.0](https://github.com/WeAreHausTech/haus-workflow/compare/v0.25.1...v0.26.0) (2026-06-15)
package/README.md CHANGED
@@ -87,8 +87,11 @@ project when their on-disk copy still matches the lock hash; user-edited copies
87
87
 
88
88
  ## Internal docs
89
89
 
90
+ [docs/SUMMARY.md](docs/SUMMARY.md) — full documentation index
91
+
90
92
  - [Architecture](docs/architecture.md)
93
+ - [Codebase](docs/codebase.md)
91
94
  - [CLI reference](docs/cli.md)
95
+ - [Developer scripts & release](docs/dev.md)
92
96
  - [Security](docs/security.md)
93
- - [Developer scripts](docs/dev.md)
94
97
  - [Runbook](docs/runbook.md)
package/dist/cli.js CHANGED
@@ -3794,6 +3794,59 @@ function printApplyResult(result, dryRun) {
3794
3794
  }
3795
3795
  }
3796
3796
 
3797
+ // src/install/companion-tools.ts
3798
+ import { execaSync } from "execa";
3799
+ var COMPANION_TOOLS = [
3800
+ {
3801
+ bin: "caveman",
3802
+ label: "Caveman",
3803
+ blurb: "Ultra-compressed Claude Code responses \u2014 cuts output tokens ~75%.",
3804
+ installCmds: [
3805
+ "curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash"
3806
+ ],
3807
+ url: "https://github.com/JuliusBrussee/caveman"
3808
+ },
3809
+ {
3810
+ bin: "rtk",
3811
+ label: "RTK (Rust Token Killer)",
3812
+ blurb: "Token-optimized CLI proxy \u2014 60-90% savings on dev operations.",
3813
+ installCmds: [
3814
+ "brew install rtk",
3815
+ "cargo install --git https://github.com/rtk-ai/rtk # if Homebrew is unavailable"
3816
+ ],
3817
+ url: "https://github.com/rtk-ai/rtk",
3818
+ note: 'Another crate named "rtk" (Rust Type Kit) exists on crates.io \u2014 use the commands above, not a bare `cargo install rtk`.'
3819
+ }
3820
+ ];
3821
+ function buildCompanionSuggestions(tools, isInstalled) {
3822
+ const missing = tools.filter((t) => !isInstalled(t.bin));
3823
+ if (missing.length === 0) return [];
3824
+ const lines = ["", "Optional token-saving tools you can add:"];
3825
+ for (const tool of missing) {
3826
+ lines.push("", ` ${tool.label} \u2014 ${tool.blurb}`);
3827
+ for (const cmd of tool.installCmds) {
3828
+ lines.push(` ${cmd}`);
3829
+ }
3830
+ if (tool.note) lines.push(` note: ${tool.note}`);
3831
+ lines.push(` ${tool.url}`);
3832
+ }
3833
+ return lines;
3834
+ }
3835
+ function commandExists(bin) {
3836
+ try {
3837
+ const r = execaSync("sh", ["-c", 'command -v -- "$1"', "probe", bin], { reject: false });
3838
+ return r.exitCode === 0;
3839
+ } catch {
3840
+ return false;
3841
+ }
3842
+ }
3843
+ function printCompanionToolSuggestions(deps = {}) {
3844
+ const isInstalled = deps.isInstalled ?? commandExists;
3845
+ const emit2 = deps.log ?? log;
3846
+ const lines = buildCompanionSuggestions(COMPANION_TOOLS, isInstalled);
3847
+ for (const line2 of lines) emit2(line2);
3848
+ }
3849
+
3797
3850
  // src/commands/install.ts
3798
3851
  async function runInstall(options) {
3799
3852
  try {
@@ -3806,6 +3859,7 @@ async function runInstall(options) {
3806
3859
  if (options.check && result.drift) {
3807
3860
  process.exitCode = 1;
3808
3861
  } else if (!options.check && !options.dryRun) {
3862
+ printCompanionToolSuggestions();
3809
3863
  const total = result.created.length + result.updated.length;
3810
3864
  if (options.postinstall) {
3811
3865
  log("haus configured Claude Code for you:");
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.7.0",
2
+ "version": "2.7.2",
3
3
  "items": [
4
4
  {
5
5
  "id": "haus.nextjs-patterns",
@@ -1648,7 +1648,7 @@
1648
1648
  },
1649
1649
  {
1650
1650
  "id": "haus.superpowers-using-git-worktrees",
1651
- "version": "1.0.0",
1651
+ "version": "1.0.1",
1652
1652
  "source": "curated",
1653
1653
  "type": "skill",
1654
1654
  "path": "skills/superpowers/using-git-worktrees",
@@ -1658,7 +1658,7 @@
1658
1658
  "whenNotToUse": "Do not use when current workspace isolation is already sufficient.",
1659
1659
  "tags": ["workflow", "workflow-skill"],
1660
1660
  "repoRoles": [],
1661
- "tokenEstimate": 1996,
1661
+ "tokenEstimate": 2140,
1662
1662
  "installMode": "copy-selected",
1663
1663
  "default": true,
1664
1664
  "reviewStatus": "approved",
@@ -1667,8 +1667,9 @@
1667
1667
  "license": "MIT",
1668
1668
  "licenseConfidence": "high",
1669
1669
  "originSourceId": "superpowers-pcvelz",
1670
- "originUrl": "https://github.com/pcvelz/superpowers/tree/bd000c6ec1df53449a74397f55305b22802b9a2b/skills/using-git-worktrees",
1671
- "ecosystem": "superpowers"
1670
+ "originUrl": "https://github.com/pcvelz/superpowers/tree/20c0b1ed71cb073c847432fe01379f48c5278a5f/skills/using-git-worktrees",
1671
+ "ecosystem": "superpowers",
1672
+ "pinnedRef": "20c0b1ed71cb073c847432fe01379f48c5278a5f"
1672
1673
  },
1673
1674
  {
1674
1675
  "id": "haus.superpowers-using-superpowers",
@@ -1889,7 +1890,7 @@
1889
1890
  },
1890
1891
  {
1891
1892
  "id": "haus.superpowers-onboard",
1892
- "version": "1.0.0",
1893
+ "version": "1.0.1",
1893
1894
  "source": "curated",
1894
1895
  "type": "command",
1895
1896
  "path": "commands/superpowers/onboard.md",
@@ -1899,7 +1900,7 @@
1899
1900
  "whenNotToUse": "Do not use when a more specific skill or command applies.",
1900
1901
  "tags": ["workflow"],
1901
1902
  "repoRoles": [],
1902
- "tokenEstimate": 2871,
1903
+ "tokenEstimate": 3567,
1903
1904
  "installMode": "copy-selected",
1904
1905
  "default": true,
1905
1906
  "reviewStatus": "approved",
@@ -1908,8 +1909,8 @@
1908
1909
  "license": "MIT",
1909
1910
  "licenseConfidence": "high",
1910
1911
  "originSourceId": "superpowers-pcvelz",
1911
- "originUrl": "https://github.com/pcvelz/superpowers/blob/48f5123e18a1a92dfba962da8dc2509391c821ee/commands/onboard.md",
1912
- "pinnedRef": "48f5123e18a1a92dfba962da8dc2509391c821ee",
1912
+ "originUrl": "https://github.com/pcvelz/superpowers/blob/20c0b1ed71cb073c847432fe01379f48c5278a5f/commands/onboard.md",
1913
+ "pinnedRef": "20c0b1ed71cb073c847432fe01379f48c5278a5f",
1913
1914
  "ecosystem": "superpowers"
1914
1915
  },
1915
1916
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-tech/haus-workflow",
3
- "version": "0.26.1",
3
+ "version": "0.27.0",
4
4
  "description": "Haus AI workflow CLI for Claude Code.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,7 +22,8 @@
22
22
  "scripts": {
23
23
  "build": "tsup src/cli.ts --format esm --dts --clean --out-dir dist --external @inquirer/checkbox",
24
24
  "dev": "tsx src/cli.ts",
25
- "test": "node --import tsx --test tests/**/*.test.js",
25
+ "test": "node scripts/run-tests.mjs tests/**/*.test.js",
26
+ "test:fast": "node scripts/test-fast.mjs",
26
27
  "test:coverage": "c8 yarn test",
27
28
  "coverage:check": "c8 --check-coverage yarn test",
28
29
  "lint": "eslint src",