@cleocode/core 2026.10.10 → 2026.10.11

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 (78) hide show
  1. package/dist/build-provenance.json +2 -2
  2. package/dist/cloud/nexus-cloud-conflicts.d.ts +8 -3
  3. package/dist/cloud/nexus-cloud-conflicts.d.ts.map +1 -1
  4. package/dist/cloud/nexus-cloud-conflicts.js +21 -5
  5. package/dist/cloud/nexus-cloud-conflicts.js.map +1 -1
  6. package/dist/cloud/nexus-cloud-journal-activity.d.ts +15 -1
  7. package/dist/cloud/nexus-cloud-journal-activity.d.ts.map +1 -1
  8. package/dist/cloud/nexus-cloud-journal-activity.js +8 -2
  9. package/dist/cloud/nexus-cloud-journal-activity.js.map +1 -1
  10. package/dist/cloud/nexus-cloud-status.d.ts.map +1 -1
  11. package/dist/cloud/nexus-cloud-status.js +6 -2
  12. package/dist/cloud/nexus-cloud-status.js.map +1 -1
  13. package/dist/cloud/nexus-vault.d.ts.map +1 -1
  14. package/dist/cloud/nexus-vault.js +52 -8
  15. package/dist/cloud/nexus-vault.js.map +1 -1
  16. package/dist/cloud/secret-seal.d.ts +31 -0
  17. package/dist/cloud/secret-seal.d.ts.map +1 -1
  18. package/dist/cloud/secret-seal.js +82 -4
  19. package/dist/cloud/secret-seal.js.map +1 -1
  20. package/dist/internal.d.ts +2 -0
  21. package/dist/internal.d.ts.map +1 -1
  22. package/dist/internal.js +1 -0
  23. package/dist/internal.js.map +1 -1
  24. package/dist/memory/decision-cross-link.d.ts +5 -2
  25. package/dist/memory/decision-cross-link.d.ts.map +1 -1
  26. package/dist/memory/decision-cross-link.js +5 -2
  27. package/dist/memory/decision-cross-link.js.map +1 -1
  28. package/dist/memory/decisions.d.ts.map +1 -1
  29. package/dist/memory/decisions.js +13 -5
  30. package/dist/memory/decisions.js.map +1 -1
  31. package/dist/resources/admission-ledger.d.ts +7 -0
  32. package/dist/resources/admission-ledger.d.ts.map +1 -1
  33. package/dist/resources/admission-ledger.js +53 -9
  34. package/dist/resources/admission-ledger.js.map +1 -1
  35. package/dist/store/migration-runner.d.ts +17 -0
  36. package/dist/store/migration-runner.d.ts.map +1 -1
  37. package/dist/store/migration-runner.js +53 -0
  38. package/dist/store/migration-runner.js.map +1 -1
  39. package/dist/store/migration-safety.d.ts +406 -0
  40. package/dist/store/migration-safety.d.ts.map +1 -0
  41. package/dist/store/migration-safety.js +587 -0
  42. package/dist/store/migration-safety.js.map +1 -0
  43. package/dist/store/portable-bundle.d.ts +8 -0
  44. package/dist/store/portable-bundle.d.ts.map +1 -1
  45. package/dist/store/portable-bundle.js +5 -0
  46. package/dist/store/portable-bundle.js.map +1 -1
  47. package/dist/store/sync/conflicts.d.ts +37 -0
  48. package/dist/store/sync/conflicts.d.ts.map +1 -1
  49. package/dist/store/sync/conflicts.js +88 -0
  50. package/dist/store/sync/conflicts.js.map +1 -1
  51. package/dist/store/sync/merge/engine.d.ts.map +1 -1
  52. package/dist/store/sync/merge/engine.js +18 -0
  53. package/dist/store/sync/merge/engine.js.map +1 -1
  54. package/dist/store/sync/merge/rules.d.ts +2 -1
  55. package/dist/store/sync/merge/rules.d.ts.map +1 -1
  56. package/dist/store/sync/merge/rules.js +9 -2
  57. package/dist/store/sync/merge/rules.js.map +1 -1
  58. package/dist/store/sync/merge/types.d.ts +7 -0
  59. package/dist/store/sync/merge/types.d.ts.map +1 -1
  60. package/dist/store/sync/reconcile-copy.d.ts +8 -0
  61. package/dist/store/sync/reconcile-copy.d.ts.map +1 -1
  62. package/dist/store/sync/reconcile-copy.js +1 -1
  63. package/dist/store/sync/reconcile-copy.js.map +1 -1
  64. package/dist/store/sync/sealer.d.ts +5 -1
  65. package/dist/store/sync/sealer.d.ts.map +1 -1
  66. package/dist/store/sync/sealer.js +35 -3
  67. package/dist/store/sync/sealer.js.map +1 -1
  68. package/dist/store/vault-manifest.d.ts +72 -0
  69. package/dist/store/vault-manifest.d.ts.map +1 -1
  70. package/dist/store/vault-manifest.js +134 -0
  71. package/dist/store/vault-manifest.js.map +1 -1
  72. package/dist/tasks/complete.d.ts.map +1 -1
  73. package/dist/tasks/complete.js +7 -1
  74. package/dist/tasks/complete.js.map +1 -1
  75. package/package.json +13 -13
  76. package/templates/git-hooks/commit-msg +7 -2
  77. package/templates/git-hooks/legacy-hashes.json +3 -1
  78. package/templates/git-hooks/pre-push +9 -3
@@ -54,8 +54,13 @@ case "$SUBJECT" in
54
54
  'fixup! '*) exit 0 ;;
55
55
  'squash! '*) exit 0 ;;
56
56
  'amend! '*) exit 0 ;;
57
- # T13577: the empty commit `cleo init` makes so HEAD resolves (exact subject).
58
- 'initial: cleo init') exit 0 ;;
57
+ # T13577: the empty commit `cleo init` makes so HEAD resolves (exact
58
+ # subject), and only as the first commit: HEAD does not resolve yet (T13582).
59
+ 'initial: cleo init')
60
+ if ! git rev-parse --verify --quiet HEAD >/dev/null 2>&1; then
61
+ exit 0
62
+ fi
63
+ ;;
59
64
  esac
60
65
 
61
66
  # Match `T` followed by 1+ digits anywhere in the subject.
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "commit-msg": [
3
3
  "4b5d6c9864e4955f0fd2e022ed4b8303d37dd222ea2a3759de9a1a500268dea7",
4
+ "4db40ad39759a5ebfa608dd1dc9c9c43abbb1b7261da56cab1728f531ada02fb",
4
5
  "71894acf732f5fd3261095d1889880dd92c3c3e5a2991c1bf1e513621e7627de",
5
6
  "95445aa6e83a36e8719378653f2c9e11b687647f1d8a3a45749f91ef2775ce6d",
6
7
  "c059daa0ba8ad6a59d178f4966373b64b555caa647b6e44b9f654d231da472db",
@@ -16,6 +17,7 @@
16
17
  "8a48d9672f27ae1ea9ebc40d7181ab737a1889e32b451594ba30ac7c2558c07c",
17
18
  "d4cfb6d3b19f3bed129f682fd7f5571b60c0f67433e5219e94c02dbb72007030",
18
19
  "eb78947e1aba2bd4e4d5aa010093aa5a927fde0acda7f7d704d41cd4851a3cfb",
19
- "f6e39d6fb79fed8c6e0bca0edb43fb9421e6a0cae52b0fe1163a8839caf50389"
20
+ "f6e39d6fb79fed8c6e0bca0edb43fb9421e6a0cae52b0fe1163a8839caf50389",
21
+ "faa0799ac981d6f45876794e6701f58bb88e7180c92af31fcfb1e99766dc47ce"
20
22
  ]
21
23
  }
@@ -37,6 +37,7 @@ FAIL_LOG=""
37
37
 
38
38
  check_subject() {
39
39
  subject="$1"
40
+ sha="$2"
40
41
  case "$subject" in
41
42
  'Merge '*) return 0 ;;
42
43
  'Revert '*) return 0 ;;
@@ -44,8 +45,13 @@ check_subject() {
44
45
  'squash! '*) return 0 ;;
45
46
  'amend! '*) return 0 ;;
46
47
  # T13577: the empty commit `cleo init` makes so HEAD resolves. Exact
47
- # subject only, never a prefix, so it opens no general bypass.
48
- 'initial: cleo init') return 0 ;;
48
+ # subject only, never a prefix, and only for a parentless (root) commit
49
+ # (T13582), so it opens no bypass for later commits.
50
+ 'initial: cleo init')
51
+ if [ "$(git rev-list --parents -n 1 "$sha" 2>/dev/null | wc -w)" -eq 1 ]; then
52
+ return 0
53
+ fi
54
+ ;;
49
55
  esac
50
56
  if printf '%s' "$subject" | grep -Eq 'T[0-9]+'; then
51
57
  return 0
@@ -81,7 +87,7 @@ while read -r local_ref local_sha remote_ref remote_sha; do
81
87
  if [ -z "$subject" ]; then
82
88
  continue
83
89
  fi
84
- if ! check_subject "$subject"; then
90
+ if ! check_subject "$subject" "$sha"; then
85
91
  FAIL=1
86
92
  FAIL_LOG="${FAIL_LOG} ${sha} ${subject}
87
93
  "