@haus-tech/haus-workflow 0.18.1 → 0.18.2
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 +6 -0
- package/README.md +1 -1
- package/dist/cli.js +159 -164
- package/library/catalog/manifest.json +1 -1
- package/package.json +4 -8
- package/tests/README.md +0 -54
- package/tests/fixtures/catalog/agents/code-reviewer.md +0 -15
- package/tests/fixtures/catalog/agents/docs-researcher.md +0 -15
- package/tests/fixtures/catalog/agents/planner.md +0 -15
- package/tests/fixtures/catalog/agents/security-reviewer.md +0 -15
- package/tests/fixtures/catalog/agents/test-reviewer.md +0 -15
- package/tests/fixtures/catalog/manifest.json +0 -1065
- package/tests/fixtures/catalog/policy-gates-manifest.json +0 -120
- package/tests/fixtures/catalog/skills/auth-oidc-azure-bankid-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/bullmq-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/database-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/dotnet-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/dotnet-service-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/eslint-setup/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/expo-react-native-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/global-engineering-rules/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/i18next-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/jest-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/laravel-nova-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/laravel-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/nestjs-graphql-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/nextauth-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/nextjs-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/nx21-monorepo-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/package-manager-yarn4-pnpm89/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/phpunit-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/playwright-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/prettier-setup/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/prisma-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/production-readiness-review/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/qliro-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/radix-shadcn-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/react-router-v7-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/react19-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/sanity-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/security-review/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/sentry-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/storybook-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/strapi-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/stripe-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/supabase-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/tailwind-scss-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/tanstack-query-router-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/testing-library-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/turbo-monorepo-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/typescript5-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/vendure-app-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/vendure-plugin-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/vite8-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/vitest-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/vue-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/wordpress-acf-elementor-jetengine-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/wordpress-bedrock-patterns/SKILL.md +0 -14
- package/tests/fixtures/catalog/skills/wordpress-patterns/SKILL.md +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-tech/haus-workflow",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "Haus AI workflow CLI for Claude Code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"scripts/postinstall.mjs",
|
|
17
17
|
"library/global",
|
|
18
18
|
"library/catalog",
|
|
19
|
-
"tests/fixtures/catalog",
|
|
20
19
|
"README.md",
|
|
21
20
|
"CHANGELOG.md"
|
|
22
21
|
],
|
|
@@ -26,16 +25,15 @@
|
|
|
26
25
|
"test": "node --import tsx --test tests/**/*.test.js",
|
|
27
26
|
"test:coverage": "c8 yarn test",
|
|
28
27
|
"coverage:check": "c8 --check-coverage yarn test",
|
|
29
|
-
"lint": "eslint src
|
|
28
|
+
"lint": "eslint src",
|
|
30
29
|
"format:check": "prettier --check .",
|
|
31
30
|
"format": "prettier --write .",
|
|
32
31
|
"typecheck": "tsc --noEmit",
|
|
33
|
-
"typecheck:scripts": "tsc --noEmit --project tsconfig.scripts.json",
|
|
34
32
|
"pack:local": "yarn pack",
|
|
35
33
|
"release": "GITHUB_TOKEN=$(gh auth token) release-it",
|
|
36
34
|
"release:dry": "GITHUB_TOKEN=$(gh auth token) release-it --dry-run",
|
|
37
35
|
"prepack": "yarn build",
|
|
38
|
-
"verify": "yarn typecheck && yarn
|
|
36
|
+
"verify": "yarn typecheck && yarn lint && yarn build && yarn test",
|
|
39
37
|
"verify:full": "yarn verify && yarn coverage:check",
|
|
40
38
|
"postinstall": "node ./scripts/postinstall.mjs || true",
|
|
41
39
|
"prepare": "lefthook install || true",
|
|
@@ -49,10 +47,8 @@
|
|
|
49
47
|
"fast-glob": "3.3.3",
|
|
50
48
|
"fs-extra": "11.3.5",
|
|
51
49
|
"ignore": "6.0.2",
|
|
52
|
-
"picomatch": "4.0.4",
|
|
53
50
|
"semver": "7.8.0",
|
|
54
|
-
"yaml": "2.8.4"
|
|
55
|
-
"zod": "3.25.76"
|
|
51
|
+
"yaml": "2.8.4"
|
|
56
52
|
},
|
|
57
53
|
"devDependencies": {
|
|
58
54
|
"@release-it/conventional-changelog": "11.0.0",
|
package/tests/README.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Tests
|
|
2
|
-
|
|
3
|
-
Node built-in test runner (`node --test`). No framework. All test files are `.js` (compiled output not required — tests import from `dist/` via `fixture-runner.js`).
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
yarn test
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
## Structure
|
|
10
|
-
|
|
11
|
-
| Path | Contents |
|
|
12
|
-
| ----------------- | ----------------------------------- |
|
|
13
|
-
| `tests/*.test.js` | Unit and integration tests |
|
|
14
|
-
| `tests/helpers/` | Shared test utilities |
|
|
15
|
-
| `tests/fixtures/` | Static fixture repos used by tests |
|
|
16
|
-
|
|
17
|
-
## helpers/fixture-runner.js
|
|
18
|
-
|
|
19
|
-
Utilities for running the compiled CLI against fixture repos in a temp directory:
|
|
20
|
-
|
|
21
|
-
- `cloneFixtureToTemp(fixtureName)` — copies `tests/fixtures/repos/<name>` to a temp dir, returns the path
|
|
22
|
-
- `runHaus(cwd, command)` — runs `node dist/cli.js <command>` in `cwd`, returns stdout
|
|
23
|
-
- `readHausJson(cwd, fileName)` — reads `.haus-workflow/<fileName>` as parsed JSON
|
|
24
|
-
|
|
25
|
-
Tests that use `fixture-runner.js` require a built `dist/` — run `yarn build && yarn test`, or use `yarn verify` which builds before running tests.
|
|
26
|
-
|
|
27
|
-
## fixtures/
|
|
28
|
-
|
|
29
|
-
### fixtures/repos/
|
|
30
|
-
|
|
31
|
-
Full fixture repos scanned by integration tests and golden tests. Each subdirectory is a minimal repo skeleton:
|
|
32
|
-
|
|
33
|
-
| Fixture | Stack |
|
|
34
|
-
| -------------------------------- | ------------------------------------- |
|
|
35
|
-
| `laravel-app` | Laravel (PHP, Composer, PHPUnit) |
|
|
36
|
-
| `laravel-with-react-frontend` | Laravel + React (pnpm) |
|
|
37
|
-
| `nest-graphql-api` | NestJS + GraphQL (Yarn) |
|
|
38
|
-
| `nextjs-app` | Next.js (pnpm) |
|
|
39
|
-
| `nx-workspace` | Nx monorepo (Yarn) |
|
|
40
|
-
| `orphan-graphql-config` | GraphQL config without backend (pnpm) |
|
|
41
|
-
| `turbo-monorepo` | Turborepo (Yarn) |
|
|
42
|
-
| `vendure-monorepo` | Vendure e-commerce (Yarn) |
|
|
43
|
-
| `vendure-with-nextjs-storefront` | Vendure + Next.js storefront (Yarn) |
|
|
44
|
-
| `wordpress-bedrock-site` | WordPress Bedrock (Composer) |
|
|
45
|
-
| `wordpress-with-node-tooling` | WordPress + Node tooling (pnpm) |
|
|
46
|
-
|
|
47
|
-
### Other fixture dirs
|
|
48
|
-
|
|
49
|
-
- `fixtures/dotnet-service/` — unsupported stack (C#/.NET), used to verify unsupported-stack handling
|
|
50
|
-
- `fixtures/unsupported-go/` — unsupported stack (Go)
|
|
51
|
-
- `fixtures/unsupported-python/` — unsupported stack (Python)
|
|
52
|
-
- `fixtures/vendure-plugin/` — minimal Vendure plugin package
|
|
53
|
-
- `fixtures/laravel-app/`, `fixtures/next-react-app/`, `fixtures/wordpress-bedrock/` — legacy shallow fixtures; prefer `fixtures/repos/` equivalents for new tests
|
|
54
|
-
|