@haus-tech/haus-workflow 6.5.0 → 6.7.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.12.0",
2
+ "version": "6.13.2",
3
3
  "manifestFormat": 2,
4
4
  "globalPlugins": [
5
5
  {
@@ -26,6 +26,7 @@
26
26
  "haus.lefthook-quality",
27
27
  "haus.lefthook-branch-guard",
28
28
  "haus.lefthook-security",
29
+ "haus.lefthook-lighthouse",
29
30
  "haus.decision-template",
30
31
  "haus.decisions-ci-gate",
31
32
  "haus.adr-decisions",
@@ -54,7 +55,7 @@
54
55
  "items": [
55
56
  {
56
57
  "id": "haus.agentic-workflow-standard",
57
- "version": "2.4.1",
58
+ "version": "2.7.0",
58
59
  "source": "haus",
59
60
  "type": "template",
60
61
  "path": "templates/agentic-workflow-standard.md",
@@ -65,7 +66,7 @@
65
66
  "tags": ["workflow", "baseline", "project-instructions"],
66
67
  "repoRoles": [],
67
68
  "installMode": "copy-selected",
68
- "tokenEstimate": 3508,
69
+ "tokenEstimate": 3899,
69
70
  "tokenBudget": 5131,
70
71
  "default": true,
71
72
  "reviewStatus": "approved",
@@ -1599,6 +1600,52 @@
1599
1600
  "reviewStatus": "approved",
1600
1601
  "riskLevel": "low"
1601
1602
  },
1603
+ {
1604
+ "id": "haus.lefthook-lighthouse",
1605
+ "version": "1.0.0",
1606
+ "source": "haus",
1607
+ "type": "template",
1608
+ "path": "templates/lefthook-lighthouse.yml",
1609
+ "title": "Lefthook Lighthouse pre-push",
1610
+ "purpose": "Pre-push performance gate for web front ends: builds the production front end and runs Lighthouse CI against it, so a change that slows a page down stops before the PR instead of after the deploy.",
1611
+ "whenToUse": "Web front ends (React, Next.js, Vite, React Router, Vue, WordPress) whose page speed matters. Pair it with the haus.lighthouserc config, which holds the URLs, the server command and the limits; replace the glob and the build command after install.",
1612
+ "whenNotToUse": "Repos without a front end someone loads in a browser, or where the production build cannot be served locally yet: a gate that cannot start the site fails every push.",
1613
+ "tags": ["workflow", "quality", "frontend"],
1614
+ "repoRoles": [],
1615
+ "requiresAny": [
1616
+ {
1617
+ "role": "react-app"
1618
+ },
1619
+ {
1620
+ "role": "next-app"
1621
+ },
1622
+ {
1623
+ "role": "vite-app"
1624
+ },
1625
+ {
1626
+ "role": "react-router-app"
1627
+ },
1628
+ {
1629
+ "role": "wordpress-site"
1630
+ },
1631
+ {
1632
+ "role": "wordpress-bedrock-site"
1633
+ },
1634
+ {
1635
+ "role": "wordpress-vanilla-site"
1636
+ },
1637
+ {
1638
+ "stack": "vue"
1639
+ }
1640
+ ],
1641
+ "ecosystem": "quality",
1642
+ "installMode": "copy-selected",
1643
+ "tokenEstimate": 477,
1644
+ "tokenBudget": 585,
1645
+ "default": false,
1646
+ "reviewStatus": "approved",
1647
+ "riskLevel": "low"
1648
+ },
1602
1649
  {
1603
1650
  "id": "haus.decision-template",
1604
1651
  "version": "1.0.0",
@@ -1661,7 +1708,7 @@
1661
1708
  },
1662
1709
  {
1663
1710
  "id": "haus.adr-decisions",
1664
- "version": "1.2.0",
1711
+ "version": "1.3.0",
1665
1712
  "source": "haus",
1666
1713
  "type": "skill",
1667
1714
  "path": "skills/haus-owned/general/adr-decisions",
@@ -1673,8 +1720,8 @@
1673
1720
  "repoRoles": [],
1674
1721
  "ecosystem": "general",
1675
1722
  "installMode": "copy-selected",
1676
- "tokenEstimate": 924,
1677
- "tokenBudget": 1122,
1723
+ "tokenEstimate": 1209,
1724
+ "tokenBudget": 1572,
1678
1725
  "default": true,
1679
1726
  "reviewStatus": "approved",
1680
1727
  "riskLevel": "low"
@@ -1959,6 +2006,50 @@
1959
2006
  "reviewStatus": "approved",
1960
2007
  "riskLevel": "low"
1961
2008
  },
2009
+ {
2010
+ "id": "haus.lighthouserc",
2011
+ "version": "1.0.0",
2012
+ "source": "haus",
2013
+ "type": "config",
2014
+ "path": "configs/lighthouse/lighthouserc.yml",
2015
+ "title": "Haus Lighthouse CI config",
2016
+ "purpose": "Starter lighthouserc.yml for the haus.lefthook-lighthouse gate: mobile emulation as PageSpeed Insights measures, three runs per page, limits on the performance score, LCP, CLS and TBT, reports kept on the machine.",
2017
+ "whenToUse": "Together with haus.lefthook-lighthouse. Run `haus configs haus.lighthouserc` to copy it to the project root, then replace the server command and the URLs with the project's own.",
2018
+ "whenNotToUse": "Skip it if the project already has its own Lighthouse CI config.",
2019
+ "tags": ["tooling", "quality", "frontend"],
2020
+ "repoRoles": [],
2021
+ "requiresAny": [
2022
+ {
2023
+ "role": "react-app"
2024
+ },
2025
+ {
2026
+ "role": "next-app"
2027
+ },
2028
+ {
2029
+ "role": "vite-app"
2030
+ },
2031
+ {
2032
+ "role": "react-router-app"
2033
+ },
2034
+ {
2035
+ "role": "wordpress-site"
2036
+ },
2037
+ {
2038
+ "role": "wordpress-bedrock-site"
2039
+ },
2040
+ {
2041
+ "role": "wordpress-vanilla-site"
2042
+ },
2043
+ {
2044
+ "stack": "vue"
2045
+ }
2046
+ ],
2047
+ "ecosystem": "tooling",
2048
+ "tokenEstimate": 0,
2049
+ "installMode": "copy-selected",
2050
+ "reviewStatus": "approved",
2051
+ "riskLevel": "low"
2052
+ },
1962
2053
  {
1963
2054
  "id": "haus.qliro-patterns",
1964
2055
  "version": "1.0.0",
@@ -42,6 +42,12 @@
42
42
  "event": "Stop",
43
43
  "matcher": "*",
44
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"
45
51
  }
46
52
  ]
47
53
  }
@@ -625,7 +625,7 @@ export const avvikelseEtikett = (text) => {
625
625
  /**
626
626
  * Fritexten efter etiketten, utan inledande skiljetecken eller streck
627
627
  * (bindestreck, U+2012, U+2013, U+2014; #753), eller null när raden saknas
628
- * eller ingen text följer. Bär etikettraden ingen text läses första
628
+ * eller ingen text följer. Bär etikettraden av en motsägelse ingen text läses första
629
629
  * icke-tomma raden efter den, utom när den raden är nästa fält (`**…:**`)
630
630
  * eller en rubrik (#753). Etiketten själv läses lika strikt som förut.
631
631
  * precheck skriver texten som `AVVIKELSE-TEXT:` så orkestratorn kan se en
@@ -640,6 +640,8 @@ export const avvikelseText = (text) => {
640
640
  if (!m) return null
641
641
  const rest = m[1].trim()
642
642
  if (rest !== '') return rest
643
+ // Bara motsägelsen fortsätter på nästa rad; ingen och precisering gör det aldrig (#836).
644
+ if (avvikelseEtikett(str) !== 'motsägelse') return null
643
645
  const nasta = str
644
646
  .slice(m.index + m[0].length)
645
647
  .split(/\r?\n/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-tech/haus-workflow",
3
- "version": "6.5.0",
3
+ "version": "6.7.0",
4
4
  "description": "Haus AI workflow CLI for Claude Code.",
5
5
  "type": "module",
6
6
  "bin": {