javi-forge 1.23.1 → 1.24.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,17 +1,21 @@
1
1
  {
2
2
  "pre-commit": {
3
- "version": 1,
4
- "sha256": "811f34ce57517e129554bc9c09801a66c0207332cd3e7f2950db43a40580e914",
3
+ "version": 2,
4
+ "sha256": "6155f375647d13a8e86aff74d1b17165e0781ce8c94f9f1304724a8a54948b00",
5
5
  "historical": [
6
6
  {
7
7
  "sha256": "811f34ce57517e129554bc9c09801a66c0207332cd3e7f2950db43a40580e914",
8
8
  "firstCommit": "5587b3b9b9ed3c86809c0a3d89a850dd2bce7e1a"
9
+ },
10
+ {
11
+ "sha256": "6155f375647d13a8e86aff74d1b17165e0781ce8c94f9f1304724a8a54948b00",
12
+ "firstCommit": "0779d746b23ad614a13181d60f1fe3aa034e91dd"
9
13
  }
10
14
  ]
11
15
  },
12
16
  "pre-push": {
13
- "version": 2,
14
- "sha256": "3dad58303d81fc513a35339083438a78aa483fcd28e3377f006bd26e8ce76a6d",
17
+ "version": 3,
18
+ "sha256": "c396387a15c3c448d524f68597a993f6b4341ae06143d2d5907ad914823d0ad0",
15
19
  "historical": [
16
20
  {
17
21
  "sha256": "7de58640aeef33085a49f31f1d9d0c8bacde0069d6d3265ae41aa8d3cd14d7a5",
@@ -20,6 +24,10 @@
20
24
  {
21
25
  "sha256": "3dad58303d81fc513a35339083438a78aa483fcd28e3377f006bd26e8ce76a6d",
22
26
  "firstCommit": "a35e09d39a5394d6380499d1ed73fdf22f08c829"
27
+ },
28
+ {
29
+ "sha256": "c396387a15c3c448d524f68597a993f6b4341ae06143d2d5907ad914823d0ad0",
30
+ "firstCommit": "0779d746b23ad614a13181d60f1fe3aa034e91dd"
23
31
  }
24
32
  ]
25
33
  },
@@ -1,15 +1,16 @@
1
1
  #!/bin/bash
2
- # Pre-commit: quick CI check via javi-forge
2
+ # pre-commit: javi-forge hook dispatcher
3
+ # Runs the sections enabled under hooks: in .javi-forge/ci.yaml.
4
+ # Default: quick native CI gate (setup + lint + compile + gates — no tests, no coverage).
5
+ # Requires javi-forge on PATH (npx fallback; offline npx fails -> hook fails closed).
3
6
  # To skip: git commit --no-verify
4
7
  set -e
5
- echo "PRE-COMMIT: Running quick check..."
6
- if command -v javi-forge &>/dev/null; then
7
- javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
8
+ if command -v javi-forge >/dev/null 2>&1; then
9
+ javi-forge hooks run pre-commit
8
10
  else
9
- npx javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
11
+ npx javi-forge hooks run pre-commit
10
12
  fi || {
11
13
  echo ""
12
- echo "Quick check FAILED fix the issues above before committing."
13
- echo "To skip: git commit --no-verify"
14
+ echo "pre-commit FAILED - fix the issues above."
14
15
  exit 1
15
16
  }
@@ -1,37 +1,16 @@
1
1
  #!/bin/bash
2
- # =============================================================================
3
- # PRE-PUSH: Native CI checks via javi-forge
4
- # =============================================================================
5
- # Runs the quick native gate (validate + coverage) with:
6
- # javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
7
- # This is deliberately NOT the full containerized run: the native path
8
- # sidesteps the pre-push container EACCES failure while keeping fail-closed
9
- # image-gate enforcement where it belongs — the ci gate layer REFUSES any
10
- # blocking image gate under --no-docker (see src/commands/ci.ts runGates).
11
- # Requires: npm install -g javi-forge (npx fallback used when absent).
12
- # To skip: git push --no-verify
13
- # Target: under ~180s. Elapsed time is reported below.
14
- # =============================================================================
15
-
2
+ # pre-push: javi-forge hook dispatcher
3
+ # Runs the sections enabled under hooks: in .javi-forge/ci.yaml.
4
+ # Default: quick native CI gate (setup + lint + compile + gates — no tests, no coverage).
5
+ # Requires javi-forge on PATH (npx fallback; offline npx fails -> hook fails closed).
6
+ # To skip: git push --no-verify
16
7
  set -e
17
-
18
- _start=$SECONDS
19
-
20
- echo "PRE-PUSH: Running native CI checks (validate + coverage)..."
21
8
  if command -v javi-forge >/dev/null 2>&1; then
22
- javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
9
+ javi-forge hooks run pre-push
23
10
  else
24
- npx javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
11
+ npx javi-forge hooks run pre-push
25
12
  fi || {
26
- _elapsed=$((SECONDS - _start))
27
- echo ""
28
- echo "CI FAILED after ${_elapsed}s — push aborted. Fix the issues above before pushing."
29
- echo "To skip: git push --no-verify"
30
- exit 1
13
+ echo ""
14
+ echo "pre-push FAILED - fix the issues above."
15
+ exit 1
31
16
  }
32
-
33
- _elapsed=$((SECONDS - _start))
34
- echo "PRE-PUSH: passed in ${_elapsed}s (target: 180s)"
35
- if [ "$_elapsed" -gt 300 ]; then
36
- echo " WARNING: pre-push took ${_elapsed}s, well over the 180s target."
37
- fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javi-forge",
3
- "version": "1.23.1",
3
+ "version": "1.24.0",
4
4
  "description": "Project scaffolding and AI-ready CI bootstrap",
5
5
  "type": "module",
6
6
  "bin": {