@haus-tech/haus-workflow 6.8.0 → 7.1.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 +27 -0
- package/README.md +41 -85
- package/dist/cli.js +25386 -33982
- package/docs/before-you-start.md +17 -22
- package/docs/glossary.md +10 -8
- package/package.json +1 -6
- package/packages/agents/issue-creator.md +3 -5
- package/packages/skills/adr-decisions/SKILL.md +8 -9
- package/packages/skills/bullmq-patterns/SKILL.md +1 -11
- package/packages/skills/haus-workflow/SKILL.md +28 -41
- package/packages/skills/haus-workflow/references/init.md +38 -69
- package/packages/skills/haus-workflow/references/new.md +15 -20
- package/packages/skills/i18next-patterns/SKILL.md +1 -11
- package/packages/skills/issue-authoring/SKILL.md +18 -25
- package/packages/skills/laravel-nova-patterns/SKILL.md +1 -11
- package/packages/skills/strapi-patterns/SKILL.md +1 -11
- package/packages/skills/vendure-app-patterns/SKILL.md +1 -11
- package/packages/skills/vendure-plugin-patterns/SKILL.md +1 -11
- package/packages/skills/whats-installed/SKILL.md +10 -8
- package/packages/skills/writing-documentation/SKILL.md +2 -10
- package/packages/templates/agentic-workflow-standard.md +15 -5
- package/packages/templates/decisions-ci-gate.yml +1 -1
- package/packages/templates/lefthook-lighthouse.yml +2 -2
- package/library/catalog/decisions-triggers.json +0 -26
- package/library/catalog/haus-lock.schema.json +0 -4
- package/library/catalog/manifest.json +0 -5941
- package/library/catalog/validation-rules.json +0 -169
- package/library/global/settings-fragments/hooks.json +0 -53
- package/scripts/postinstall.mjs +0 -62
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"forbiddenTags": [
|
|
3
|
-
"rust",
|
|
4
|
-
"rustlang",
|
|
5
|
-
"java",
|
|
6
|
-
"javafx",
|
|
7
|
-
"spring",
|
|
8
|
-
"kotlin",
|
|
9
|
-
"kotlinx",
|
|
10
|
-
"flutter",
|
|
11
|
-
"flutterfire",
|
|
12
|
-
"dart",
|
|
13
|
-
"c++",
|
|
14
|
-
"perl",
|
|
15
|
-
"defi",
|
|
16
|
-
"trading"
|
|
17
|
-
],
|
|
18
|
-
"requiredSkillFrontmatter": ["description"],
|
|
19
|
-
"riskyInstallPatterns": [
|
|
20
|
-
{ "source": "\\bnpx\\s+-y\\b", "flags": "i" },
|
|
21
|
-
{ "source": "\\bnpx\\s+--yes\\b", "flags": "i" },
|
|
22
|
-
{ "source": "\\byarn\\s+dlx\\b", "flags": "i" },
|
|
23
|
-
{ "source": "\\bpnpm\\s+dlx\\b", "flags": "i" }
|
|
24
|
-
],
|
|
25
|
-
"allowedNpxPattern": { "source": "\\bnpx\\s+tsx\\b", "flags": "i" },
|
|
26
|
-
"anyNpxPattern": { "source": "\\bnpx\\s+\\S+", "flags": "i" },
|
|
27
|
-
"npxTsxOnlyExemptSources": ["curated"],
|
|
28
|
-
"httpUrlPattern": { "source": "^http:\\/\\/", "flags": "i" },
|
|
29
|
-
"placeholderPattern": { "source": "\\bTODO\\b|\\bPLACEHOLDER\\b", "flags": "i" },
|
|
30
|
-
"allowedStacks": [
|
|
31
|
-
"haus",
|
|
32
|
-
"security",
|
|
33
|
-
"quality",
|
|
34
|
-
"a11y",
|
|
35
|
-
"frontend",
|
|
36
|
-
"backend",
|
|
37
|
-
"testing",
|
|
38
|
-
"review",
|
|
39
|
-
"workflow",
|
|
40
|
-
"reference-pack",
|
|
41
|
-
"core-skill",
|
|
42
|
-
"workflow-skill",
|
|
43
|
-
"stack-skill",
|
|
44
|
-
"review-skill",
|
|
45
|
-
"agent",
|
|
46
|
-
"hook",
|
|
47
|
-
"rule",
|
|
48
|
-
"react",
|
|
49
|
-
"typescript",
|
|
50
|
-
"php",
|
|
51
|
-
"csharp",
|
|
52
|
-
"python",
|
|
53
|
-
"golang",
|
|
54
|
-
"vendure",
|
|
55
|
-
"vendure3",
|
|
56
|
-
"nestjs",
|
|
57
|
-
"graphql",
|
|
58
|
-
"nx",
|
|
59
|
-
"turbo",
|
|
60
|
-
"nextjs",
|
|
61
|
-
"react19",
|
|
62
|
-
"typescript5",
|
|
63
|
-
"vite8",
|
|
64
|
-
"tanstack-query",
|
|
65
|
-
"tanstack-router",
|
|
66
|
-
"radix",
|
|
67
|
-
"radix-ui",
|
|
68
|
-
"shadcn",
|
|
69
|
-
"shadcn-ui",
|
|
70
|
-
"tailwind",
|
|
71
|
-
"tailwindcss",
|
|
72
|
-
"scss",
|
|
73
|
-
"scss-modules",
|
|
74
|
-
"vue",
|
|
75
|
-
"expressjs",
|
|
76
|
-
"laravel",
|
|
77
|
-
"laravel-nova",
|
|
78
|
-
"wordpress",
|
|
79
|
-
"bedrock",
|
|
80
|
-
"elementor-pro",
|
|
81
|
-
"acf-pro",
|
|
82
|
-
"jetengine",
|
|
83
|
-
"dotnet",
|
|
84
|
-
"oidc",
|
|
85
|
-
"azure-ad",
|
|
86
|
-
"bankid",
|
|
87
|
-
"crypto",
|
|
88
|
-
"postgresql",
|
|
89
|
-
"mariadb",
|
|
90
|
-
"mssql",
|
|
91
|
-
"elasticsearch",
|
|
92
|
-
"yarn4",
|
|
93
|
-
"pnpm89",
|
|
94
|
-
"playwright",
|
|
95
|
-
"testing-library",
|
|
96
|
-
"phpunit",
|
|
97
|
-
"storybook",
|
|
98
|
-
"vitest",
|
|
99
|
-
"jest",
|
|
100
|
-
"redis",
|
|
101
|
-
"sanity",
|
|
102
|
-
"strapi",
|
|
103
|
-
"prisma",
|
|
104
|
-
"cms",
|
|
105
|
-
"database",
|
|
106
|
-
"mysql",
|
|
107
|
-
"saml2",
|
|
108
|
-
"next-auth",
|
|
109
|
-
"auth",
|
|
110
|
-
"expo",
|
|
111
|
-
"react-native",
|
|
112
|
-
"mobile",
|
|
113
|
-
"i18next",
|
|
114
|
-
"i18n",
|
|
115
|
-
"bullmq",
|
|
116
|
-
"queue",
|
|
117
|
-
"sentry",
|
|
118
|
-
"observability",
|
|
119
|
-
"tooling",
|
|
120
|
-
"prettier",
|
|
121
|
-
"eslint",
|
|
122
|
-
"missing-prettier",
|
|
123
|
-
"missing-eslint",
|
|
124
|
-
"docker",
|
|
125
|
-
"pm2",
|
|
126
|
-
"stripe",
|
|
127
|
-
"qliro",
|
|
128
|
-
"supabase",
|
|
129
|
-
"payments",
|
|
130
|
-
"myid",
|
|
131
|
-
"cgi",
|
|
132
|
-
"collection2",
|
|
133
|
-
"deployer-php"
|
|
134
|
-
],
|
|
135
|
-
"safetyNotesRequiredTags": [
|
|
136
|
-
"stripe",
|
|
137
|
-
"qliro",
|
|
138
|
-
"payments",
|
|
139
|
-
"bankid",
|
|
140
|
-
"myid",
|
|
141
|
-
"oidc",
|
|
142
|
-
"azure-ad",
|
|
143
|
-
"saml2",
|
|
144
|
-
"auth",
|
|
145
|
-
"next-auth"
|
|
146
|
-
],
|
|
147
|
-
"intentsRequiredTags": [
|
|
148
|
-
"stripe",
|
|
149
|
-
"qliro",
|
|
150
|
-
"payments",
|
|
151
|
-
"bankid",
|
|
152
|
-
"myid",
|
|
153
|
-
"oidc",
|
|
154
|
-
"azure-ad",
|
|
155
|
-
"saml2",
|
|
156
|
-
"auth",
|
|
157
|
-
"next-auth"
|
|
158
|
-
],
|
|
159
|
-
"alwaysAllowedTags": [
|
|
160
|
-
"haus",
|
|
161
|
-
"security",
|
|
162
|
-
"quality",
|
|
163
|
-
"review",
|
|
164
|
-
"workflow",
|
|
165
|
-
"baseline",
|
|
166
|
-
"project-instructions"
|
|
167
|
-
],
|
|
168
|
-
"patternTagSuffixes": ["-patterns"]
|
|
169
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_schema": "haus-hooks-fragment/1",
|
|
3
|
-
"hooks": [
|
|
4
|
-
{
|
|
5
|
-
"id": "hook.guard.file-access",
|
|
6
|
-
"gate": "keep",
|
|
7
|
-
"event": "PreToolUse",
|
|
8
|
-
"matcher": "Read|Edit|Write|NotebookEdit",
|
|
9
|
-
"command": "haus guard file-access --from-hook"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"id": "hook.guard.bash",
|
|
13
|
-
"gate": "keep",
|
|
14
|
-
"event": "PreToolUse",
|
|
15
|
-
"matcher": "Bash",
|
|
16
|
-
"command": "haus guard bash --from-hook"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"id": "hook.decisions.guard",
|
|
20
|
-
"gate": "keep",
|
|
21
|
-
"event": "PreToolUse",
|
|
22
|
-
"matcher": "Bash",
|
|
23
|
-
"command": "haus decisions guard --from-hook"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"id": "hook.guard.auto-merge",
|
|
27
|
-
"gate": "keep",
|
|
28
|
-
"event": "PreToolUse",
|
|
29
|
-
"matcher": "mcp__ccd_pr__set_auto_merge",
|
|
30
|
-
"command": "haus guard auto-merge --from-hook"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"id": "hook.pr.after-merge",
|
|
34
|
-
"gate": "keep",
|
|
35
|
-
"event": "PostToolUse",
|
|
36
|
-
"matcher": "Bash",
|
|
37
|
-
"command": "haus pr after-merge --from-hook"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "hook.decisions.suggest",
|
|
41
|
-
"gate": "keep",
|
|
42
|
-
"event": "Stop",
|
|
43
|
-
"matcher": "*",
|
|
44
|
-
"command": "haus decisions suggest --from-hook"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"id": "hook.session-label.prompt",
|
|
48
|
-
"gate": "gate-default-off",
|
|
49
|
-
"event": "UserPromptSubmit",
|
|
50
|
-
"command": "haus session-label --from-hook"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
package/scripts/postinstall.mjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* npm postinstall hook. On a GLOBAL install of @haus-tech/haus-workflow, runs
|
|
4
|
-
* `haus install --postinstall` automatically so a non-developer gets a working
|
|
5
|
-
* Claude Code setup with zero manual steps — then the CLI prints exactly what it
|
|
6
|
-
* changed in ~/.claude and how to undo it.
|
|
7
|
-
*
|
|
8
|
-
* Fail-open by design: this must NEVER break `npm install`. Every gate that isn't
|
|
9
|
-
* satisfied is a silent no-op, and the whole body is wrapped so any error still
|
|
10
|
-
* exits 0. Plain Node ESM (no tsx) because consumers don't have the dev toolchain.
|
|
11
|
-
*/
|
|
12
|
-
import { spawnSync } from 'node:child_process'
|
|
13
|
-
import fs from 'node:fs'
|
|
14
|
-
import path from 'node:path'
|
|
15
|
-
import { fileURLToPath } from 'node:url'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Pure gate: decides whether the postinstall should run. Kept side-effect-free and
|
|
19
|
-
* exported so it can be unit-tested across the full env/fs matrix without spawning npm.
|
|
20
|
-
*
|
|
21
|
-
* @param {{ env: Record<string, string | undefined>, distExists: boolean, srcExists: boolean }} input
|
|
22
|
-
* @returns {{ run: boolean, reason: string }}
|
|
23
|
-
*/
|
|
24
|
-
export function shouldRunPostinstall({ env, distExists, srcExists }) {
|
|
25
|
-
if (env.npm_config_global !== 'true') return { run: false, reason: 'not a global install' }
|
|
26
|
-
if (env.CI) return { run: false, reason: 'CI environment' }
|
|
27
|
-
if (env.HAUS_NO_POSTINSTALL === '1') return { run: false, reason: 'HAUS_NO_POSTINSTALL=1' }
|
|
28
|
-
if (!distExists) return { run: false, reason: 'dist/cli.js missing' }
|
|
29
|
-
// Published tarballs omit src/; its presence means we're in the package's own
|
|
30
|
-
// dev checkout, where a local `yarn install` must not self-trigger.
|
|
31
|
-
if (srcExists) return { run: false, reason: 'running inside the package dev checkout' }
|
|
32
|
-
return { run: true, reason: 'global install' }
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** Entry point: runs only when this file is invoked directly (not when imported by a test). */
|
|
36
|
-
function main() {
|
|
37
|
-
try {
|
|
38
|
-
const pkgRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
|
|
39
|
-
const cliPath = path.join(pkgRoot, 'dist', 'cli.js')
|
|
40
|
-
const decision = shouldRunPostinstall({
|
|
41
|
-
env: process.env,
|
|
42
|
-
distExists: fs.existsSync(cliPath),
|
|
43
|
-
srcExists: fs.existsSync(path.join(pkgRoot, 'src')),
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
if (!decision.run) {
|
|
47
|
-
if (process.env.HAUS_DEBUG) console.error(`[haus postinstall] skipped: ${decision.reason}`)
|
|
48
|
-
process.exit(0)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Non-fatal: a nonzero CLI exit must not fail `npm install`.
|
|
52
|
-
spawnSync(process.execPath, [cliPath, 'install', '--postinstall'], { stdio: 'inherit' })
|
|
53
|
-
} catch (err) {
|
|
54
|
-
if (process.env.HAUS_DEBUG) console.error(`[haus postinstall] error (ignored): ${err}`)
|
|
55
|
-
}
|
|
56
|
-
process.exit(0)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Run only as a script, never when imported.
|
|
60
|
-
if (process.argv[1] && fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
|
|
61
|
-
main()
|
|
62
|
-
}
|