@hivehub/rulebook 5.4.0 → 5.5.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.
Files changed (51) hide show
  1. package/LICENSE +191 -191
  2. package/README.md +1 -0
  3. package/dist/core/generator.d.ts +1 -1
  4. package/dist/core/generator.d.ts.map +1 -1
  5. package/dist/core/generator.js +1 -0
  6. package/dist/core/generator.js.map +1 -1
  7. package/package.json +1 -1
  8. package/templates/cli/gemini-extension.json +77 -77
  9. package/templates/core/AGENTS_LEAN.md +9 -0
  10. package/templates/core/CLAUDE_MD_v2.md +9 -0
  11. package/templates/core/WORKSPACE.md +69 -69
  12. package/templates/skills/core/karpathy-guidelines/SKILL.md +93 -0
  13. package/templates/workflows/codespell.yml +31 -31
  14. package/templates/workflows/cpp-lint.yml +47 -47
  15. package/templates/workflows/cpp-publish.yml +119 -119
  16. package/templates/workflows/cpp-test.yml +77 -77
  17. package/templates/workflows/dotnet-lint.yml +29 -29
  18. package/templates/workflows/dotnet-publish.yml +40 -40
  19. package/templates/workflows/dotnet-test.yml +41 -41
  20. package/templates/workflows/elixir-lint.yml +45 -45
  21. package/templates/workflows/elixir-publish.yml +49 -49
  22. package/templates/workflows/elixir-test.yml +54 -54
  23. package/templates/workflows/erlang-lint.yml +47 -47
  24. package/templates/workflows/erlang-test.yml +62 -62
  25. package/templates/workflows/go-lint.yml +39 -39
  26. package/templates/workflows/go-publish.yml +95 -95
  27. package/templates/workflows/go-test.yml +59 -59
  28. package/templates/workflows/java-lint.yml +60 -60
  29. package/templates/workflows/java-publish.yml +120 -120
  30. package/templates/workflows/java-test.yml +85 -85
  31. package/templates/workflows/kotlin-lint.yml +34 -34
  32. package/templates/workflows/kotlin-publish.yml +56 -56
  33. package/templates/workflows/kotlin-test.yml +48 -48
  34. package/templates/workflows/php-lint.yml +39 -39
  35. package/templates/workflows/php-publish.yml +50 -50
  36. package/templates/workflows/php-test.yml +54 -54
  37. package/templates/workflows/python-lint.yml +47 -47
  38. package/templates/workflows/python-publish.yml +91 -91
  39. package/templates/workflows/python-test.yml +59 -59
  40. package/templates/workflows/rust-lint.yml +54 -54
  41. package/templates/workflows/rust-publish.yml +66 -66
  42. package/templates/workflows/rust-test.yml +75 -75
  43. package/templates/workflows/solidity-lint.yml +41 -41
  44. package/templates/workflows/solidity-test.yml +47 -47
  45. package/templates/workflows/swift-lint.yml +32 -32
  46. package/templates/workflows/swift-publish.yml +58 -58
  47. package/templates/workflows/swift-test.yml +44 -44
  48. package/templates/workflows/typescript-publish.yml +60 -60
  49. package/templates/workflows/typescript-test.yml +73 -73
  50. package/templates/workflows/zig-lint.yml +27 -27
  51. package/templates/workflows/zig-test.yml +40 -40
@@ -1,85 +1,85 @@
1
- name: Java Tests
2
-
3
- on:
4
- push:
5
- branches: [ master, main, develop ]
6
- pull_request:
7
- branches: [ '**' ]
8
-
9
- jobs:
10
- test-maven:
11
- runs-on: ${{ matrix.os }}
12
- if: hashFiles('**/pom.xml') != ''
13
- strategy:
14
- matrix:
15
- os: [ ubuntu-latest, windows-latest ]
16
- java-version: [ '17', '21' ]
17
-
18
- steps:
19
- - uses: actions/checkout@v4
20
-
21
- - name: Set up JDK ${{ matrix.java-version }}
22
- uses: actions/setup-java@v4
23
- with:
24
- java-version: ${{ matrix.java-version }}
25
- distribution: 'temurin'
26
- cache: maven
27
-
28
- - name: Build with Maven
29
- run: mvn -B compile --file pom.xml
30
-
31
- - name: Run tests
32
- run: mvn -B test --file pom.xml
33
-
34
- - name: Generate coverage report
35
- if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
36
- run: mvn -B jacoco:report
37
-
38
- - name: Upload coverage to Codecov
39
- uses: codecov/codecov-action@v4
40
- if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
41
- with:
42
- files: ./target/site/jacoco/jacoco.xml
43
- flags: unittests
44
- fail_ci_if_error: false
45
-
46
- test-gradle:
47
- runs-on: ${{ matrix.os }}
48
- if: hashFiles('**/build.gradle*') != ''
49
- strategy:
50
- matrix:
51
- os: [ ubuntu-latest, windows-latest ]
52
- java-version: [ '17', '21' ]
53
-
54
- steps:
55
- - uses: actions/checkout@v4
56
-
57
- - name: Set up JDK ${{ matrix.java-version }}
58
- uses: actions/setup-java@v4
59
- with:
60
- java-version: ${{ matrix.java-version }}
61
- distribution: 'temurin'
62
- cache: gradle
63
-
64
- - name: Grant execute permission for gradlew
65
- if: runner.os != 'Windows'
66
- run: chmod +x gradlew
67
-
68
- - name: Build with Gradle
69
- run: ./gradlew build -x test
70
-
71
- - name: Run tests
72
- run: ./gradlew test
73
-
74
- - name: Generate coverage report
75
- if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
76
- run: ./gradlew jacocoTestReport
77
-
78
- - name: Upload coverage to Codecov
79
- uses: codecov/codecov-action@v4
80
- if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
81
- with:
82
- files: ./build/reports/jacoco/test/jacocoTestReport.xml
83
- flags: unittests
84
- fail_ci_if_error: false
85
-
1
+ name: Java Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, main, develop ]
6
+ pull_request:
7
+ branches: [ '**' ]
8
+
9
+ jobs:
10
+ test-maven:
11
+ runs-on: ${{ matrix.os }}
12
+ if: hashFiles('**/pom.xml') != ''
13
+ strategy:
14
+ matrix:
15
+ os: [ ubuntu-latest, windows-latest ]
16
+ java-version: [ '17', '21' ]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Set up JDK ${{ matrix.java-version }}
22
+ uses: actions/setup-java@v4
23
+ with:
24
+ java-version: ${{ matrix.java-version }}
25
+ distribution: 'temurin'
26
+ cache: maven
27
+
28
+ - name: Build with Maven
29
+ run: mvn -B compile --file pom.xml
30
+
31
+ - name: Run tests
32
+ run: mvn -B test --file pom.xml
33
+
34
+ - name: Generate coverage report
35
+ if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
36
+ run: mvn -B jacoco:report
37
+
38
+ - name: Upload coverage to Codecov
39
+ uses: codecov/codecov-action@v4
40
+ if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
41
+ with:
42
+ files: ./target/site/jacoco/jacoco.xml
43
+ flags: unittests
44
+ fail_ci_if_error: false
45
+
46
+ test-gradle:
47
+ runs-on: ${{ matrix.os }}
48
+ if: hashFiles('**/build.gradle*') != ''
49
+ strategy:
50
+ matrix:
51
+ os: [ ubuntu-latest, windows-latest ]
52
+ java-version: [ '17', '21' ]
53
+
54
+ steps:
55
+ - uses: actions/checkout@v4
56
+
57
+ - name: Set up JDK ${{ matrix.java-version }}
58
+ uses: actions/setup-java@v4
59
+ with:
60
+ java-version: ${{ matrix.java-version }}
61
+ distribution: 'temurin'
62
+ cache: gradle
63
+
64
+ - name: Grant execute permission for gradlew
65
+ if: runner.os != 'Windows'
66
+ run: chmod +x gradlew
67
+
68
+ - name: Build with Gradle
69
+ run: ./gradlew build -x test
70
+
71
+ - name: Run tests
72
+ run: ./gradlew test
73
+
74
+ - name: Generate coverage report
75
+ if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
76
+ run: ./gradlew jacocoTestReport
77
+
78
+ - name: Upload coverage to Codecov
79
+ uses: codecov/codecov-action@v4
80
+ if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
81
+ with:
82
+ files: ./build/reports/jacoco/test/jacocoTestReport.xml
83
+ flags: unittests
84
+ fail_ci_if_error: false
85
+
@@ -1,34 +1,34 @@
1
- name: Kotlin Lint
2
-
3
- on:
4
- push:
5
- branches: [ master, main, develop ]
6
- pull_request:
7
- branches: [ '**' ]
8
-
9
- jobs:
10
- lint:
11
- runs-on: ubuntu-latest
12
-
13
- steps:
14
- - uses: actions/checkout@v5
15
-
16
- - name: Set up JDK
17
- uses: actions/setup-java@v4
18
- with:
19
- java-version: '21'
20
- distribution: 'temurin'
21
- cache: gradle
22
-
23
- - name: Grant execute permission for gradlew
24
- run: chmod +x gradlew
25
-
26
- - name: Run ktlint
27
- run: ./gradlew ktlintCheck
28
-
29
- - name: Run Detekt
30
- run: ./gradlew detekt
31
-
32
- - name: Build with warnings as errors
33
- run: ./gradlew build -x test
34
-
1
+ name: Kotlin Lint
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, main, develop ]
6
+ pull_request:
7
+ branches: [ '**' ]
8
+
9
+ jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v5
15
+
16
+ - name: Set up JDK
17
+ uses: actions/setup-java@v4
18
+ with:
19
+ java-version: '21'
20
+ distribution: 'temurin'
21
+ cache: gradle
22
+
23
+ - name: Grant execute permission for gradlew
24
+ run: chmod +x gradlew
25
+
26
+ - name: Run ktlint
27
+ run: ./gradlew ktlintCheck
28
+
29
+ - name: Run Detekt
30
+ run: ./gradlew detekt
31
+
32
+ - name: Build with warnings as errors
33
+ run: ./gradlew build -x test
34
+
@@ -1,56 +1,56 @@
1
- name: Publish Kotlin Package
2
-
3
- on:
4
- release:
5
- types: [published]
6
- workflow_dispatch:
7
- inputs:
8
- tag:
9
- description: 'Tag to publish (e.g., v1.0.0)'
10
- required: true
11
-
12
- jobs:
13
- publish:
14
- runs-on: ubuntu-latest
15
- permissions:
16
- contents: read
17
- packages: write
18
-
19
- steps:
20
- - uses: actions/checkout@v5
21
- with:
22
- ref: ${{ github.event.inputs.tag || github.ref }}
23
-
24
- - name: Set up JDK
25
- uses: actions/setup-java@v4
26
- with:
27
- java-version: '21'
28
- distribution: 'temurin'
29
- cache: gradle
30
-
31
- - name: Grant execute permission for gradlew
32
- run: chmod +x gradlew
33
-
34
- - name: Run tests
35
- run: ./gradlew test
36
-
37
- - name: Run Detekt
38
- run: ./gradlew detekt
39
-
40
- - name: Build
41
- run: ./gradlew build -x test
42
-
43
- - name: Publish to GitHub Packages
44
- run: ./gradlew publish
45
- env:
46
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
-
48
- - name: Publish to Maven Central
49
- if: secrets.SIGNING_KEY != ''
50
- run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
51
- env:
52
- SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
53
- SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
54
- SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
55
- SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
56
-
1
+ name: Publish Kotlin Package
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ tag:
9
+ description: 'Tag to publish (e.g., v1.0.0)'
10
+ required: true
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: read
17
+ packages: write
18
+
19
+ steps:
20
+ - uses: actions/checkout@v5
21
+ with:
22
+ ref: ${{ github.event.inputs.tag || github.ref }}
23
+
24
+ - name: Set up JDK
25
+ uses: actions/setup-java@v4
26
+ with:
27
+ java-version: '21'
28
+ distribution: 'temurin'
29
+ cache: gradle
30
+
31
+ - name: Grant execute permission for gradlew
32
+ run: chmod +x gradlew
33
+
34
+ - name: Run tests
35
+ run: ./gradlew test
36
+
37
+ - name: Run Detekt
38
+ run: ./gradlew detekt
39
+
40
+ - name: Build
41
+ run: ./gradlew build -x test
42
+
43
+ - name: Publish to GitHub Packages
44
+ run: ./gradlew publish
45
+ env:
46
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+
48
+ - name: Publish to Maven Central
49
+ if: secrets.SIGNING_KEY != ''
50
+ run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
51
+ env:
52
+ SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
53
+ SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
54
+ SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
55
+ SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
56
+
@@ -1,48 +1,48 @@
1
- name: Kotlin Tests
2
-
3
- on:
4
- push:
5
- branches: [ master, main, develop ]
6
- pull_request:
7
- branches: [ '**' ]
8
-
9
- jobs:
10
- test:
11
- runs-on: ${{ matrix.os }}
12
- strategy:
13
- matrix:
14
- os: [ ubuntu-latest, windows-latest ]
15
- java-version: [ '17', '21' ]
16
-
17
- steps:
18
- - uses: actions/checkout@v5
19
-
20
- - name: Set up JDK ${{ matrix.java-version }}
21
- uses: actions/setup-java@v4
22
- with:
23
- java-version: ${{ matrix.java-version }}
24
- distribution: 'temurin'
25
- cache: gradle
26
-
27
- - name: Grant execute permission for gradlew
28
- if: runner.os != 'Windows'
29
- run: chmod +x gradlew
30
-
31
- - name: Build with Gradle
32
- run: ./gradlew build -x test
33
-
34
- - name: Run tests
35
- run: ./gradlew test
36
-
37
- - name: Generate coverage report
38
- if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
39
- run: ./gradlew koverXmlReport
40
-
41
- - name: Upload coverage to Codecov
42
- uses: codecov/codecov-action@v4
43
- if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
44
- with:
45
- files: ./build/reports/kover/report.xml
46
- flags: unittests
47
- fail_ci_if_error: false
48
-
1
+ name: Kotlin Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, main, develop ]
6
+ pull_request:
7
+ branches: [ '**' ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ${{ matrix.os }}
12
+ strategy:
13
+ matrix:
14
+ os: [ ubuntu-latest, windows-latest ]
15
+ java-version: [ '17', '21' ]
16
+
17
+ steps:
18
+ - uses: actions/checkout@v5
19
+
20
+ - name: Set up JDK ${{ matrix.java-version }}
21
+ uses: actions/setup-java@v4
22
+ with:
23
+ java-version: ${{ matrix.java-version }}
24
+ distribution: 'temurin'
25
+ cache: gradle
26
+
27
+ - name: Grant execute permission for gradlew
28
+ if: runner.os != 'Windows'
29
+ run: chmod +x gradlew
30
+
31
+ - name: Build with Gradle
32
+ run: ./gradlew build -x test
33
+
34
+ - name: Run tests
35
+ run: ./gradlew test
36
+
37
+ - name: Generate coverage report
38
+ if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
39
+ run: ./gradlew koverXmlReport
40
+
41
+ - name: Upload coverage to Codecov
42
+ uses: codecov/codecov-action@v4
43
+ if: matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
44
+ with:
45
+ files: ./build/reports/kover/report.xml
46
+ flags: unittests
47
+ fail_ci_if_error: false
48
+
@@ -1,39 +1,39 @@
1
- name: PHP Lint
2
-
3
- on:
4
- push:
5
- branches: [ master, main, develop ]
6
- pull_request:
7
- branches: [ '**' ]
8
-
9
- jobs:
10
- lint:
11
- runs-on: ubuntu-latest
12
-
13
- steps:
14
- - uses: actions/checkout@v5
15
-
16
- - name: Setup PHP
17
- uses: shivammathur/setup-php@v2
18
- with:
19
- php-version: '8.3'
20
- extensions: mbstring, xml, ctype, iconv, intl
21
-
22
- - name: Cache Composer packages
23
- uses: actions/cache@v4
24
- with:
25
- path: vendor
26
- key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
27
-
28
- - name: Install dependencies
29
- run: composer install --prefer-dist --no-progress
30
-
31
- - name: Run PHP-CS-Fixer
32
- run: composer cs-check
33
-
34
- - name: Run PHPStan
35
- run: composer stan
36
-
37
- - name: Run PHPCS
38
- run: composer phpcs
39
-
1
+ name: PHP Lint
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, main, develop ]
6
+ pull_request:
7
+ branches: [ '**' ]
8
+
9
+ jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v5
15
+
16
+ - name: Setup PHP
17
+ uses: shivammathur/setup-php@v2
18
+ with:
19
+ php-version: '8.3'
20
+ extensions: mbstring, xml, ctype, iconv, intl
21
+
22
+ - name: Cache Composer packages
23
+ uses: actions/cache@v4
24
+ with:
25
+ path: vendor
26
+ key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
27
+
28
+ - name: Install dependencies
29
+ run: composer install --prefer-dist --no-progress
30
+
31
+ - name: Run PHP-CS-Fixer
32
+ run: composer cs-check
33
+
34
+ - name: Run PHPStan
35
+ run: composer stan
36
+
37
+ - name: Run PHPCS
38
+ run: composer phpcs
39
+
@@ -1,50 +1,50 @@
1
- name: Publish to Packagist
2
-
3
- # Note: Packagist automatically updates from GitHub when you push tags.
4
- # This workflow just validates the package before tagging.
5
-
6
- on:
7
- release:
8
- types: [published]
9
- workflow_dispatch:
10
- inputs:
11
- tag:
12
- description: 'Tag to publish (e.g., v1.0.0)'
13
- required: true
14
-
15
- jobs:
16
- validate:
17
- runs-on: ubuntu-latest
18
-
19
- steps:
20
- - uses: actions/checkout@v5
21
- with:
22
- ref: ${{ github.event.inputs.tag || github.ref }}
23
-
24
- - name: Setup PHP
25
- uses: shivammathur/setup-php@v2
26
- with:
27
- php-version: '8.3'
28
- extensions: mbstring, xml, ctype, iconv, intl
29
-
30
- - name: Validate composer.json
31
- run: composer validate --strict
32
-
33
- - name: Install dependencies
34
- run: composer install --prefer-dist --no-progress
35
-
36
- - name: Run tests
37
- run: composer test
38
-
39
- - name: Run PHPStan
40
- run: composer stan
41
-
42
- - name: Run PHP-CS-Fixer
43
- run: composer cs-check
44
-
45
- - name: Package validated
46
- run: |
47
- echo "✅ Package validation successful"
48
- echo "Packagist will automatically update from GitHub tag"
49
- echo "View at: https://packagist.org/packages/${{ github.repository }}"
50
-
1
+ name: Publish to Packagist
2
+
3
+ # Note: Packagist automatically updates from GitHub when you push tags.
4
+ # This workflow just validates the package before tagging.
5
+
6
+ on:
7
+ release:
8
+ types: [published]
9
+ workflow_dispatch:
10
+ inputs:
11
+ tag:
12
+ description: 'Tag to publish (e.g., v1.0.0)'
13
+ required: true
14
+
15
+ jobs:
16
+ validate:
17
+ runs-on: ubuntu-latest
18
+
19
+ steps:
20
+ - uses: actions/checkout@v5
21
+ with:
22
+ ref: ${{ github.event.inputs.tag || github.ref }}
23
+
24
+ - name: Setup PHP
25
+ uses: shivammathur/setup-php@v2
26
+ with:
27
+ php-version: '8.3'
28
+ extensions: mbstring, xml, ctype, iconv, intl
29
+
30
+ - name: Validate composer.json
31
+ run: composer validate --strict
32
+
33
+ - name: Install dependencies
34
+ run: composer install --prefer-dist --no-progress
35
+
36
+ - name: Run tests
37
+ run: composer test
38
+
39
+ - name: Run PHPStan
40
+ run: composer stan
41
+
42
+ - name: Run PHP-CS-Fixer
43
+ run: composer cs-check
44
+
45
+ - name: Package validated
46
+ run: |
47
+ echo "✅ Package validation successful"
48
+ echo "Packagist will automatically update from GitHub tag"
49
+ echo "View at: https://packagist.org/packages/${{ github.repository }}"
50
+