@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.
- package/dist/build-provenance.json +2 -2
- package/dist/cloud/nexus-cloud-conflicts.d.ts +8 -3
- package/dist/cloud/nexus-cloud-conflicts.d.ts.map +1 -1
- package/dist/cloud/nexus-cloud-conflicts.js +21 -5
- package/dist/cloud/nexus-cloud-conflicts.js.map +1 -1
- package/dist/cloud/nexus-cloud-journal-activity.d.ts +15 -1
- package/dist/cloud/nexus-cloud-journal-activity.d.ts.map +1 -1
- package/dist/cloud/nexus-cloud-journal-activity.js +8 -2
- package/dist/cloud/nexus-cloud-journal-activity.js.map +1 -1
- package/dist/cloud/nexus-cloud-status.d.ts.map +1 -1
- package/dist/cloud/nexus-cloud-status.js +6 -2
- package/dist/cloud/nexus-cloud-status.js.map +1 -1
- package/dist/cloud/nexus-vault.d.ts.map +1 -1
- package/dist/cloud/nexus-vault.js +52 -8
- package/dist/cloud/nexus-vault.js.map +1 -1
- package/dist/cloud/secret-seal.d.ts +31 -0
- package/dist/cloud/secret-seal.d.ts.map +1 -1
- package/dist/cloud/secret-seal.js +82 -4
- package/dist/cloud/secret-seal.js.map +1 -1
- package/dist/internal.d.ts +2 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +1 -0
- package/dist/internal.js.map +1 -1
- package/dist/memory/decision-cross-link.d.ts +5 -2
- package/dist/memory/decision-cross-link.d.ts.map +1 -1
- package/dist/memory/decision-cross-link.js +5 -2
- package/dist/memory/decision-cross-link.js.map +1 -1
- package/dist/memory/decisions.d.ts.map +1 -1
- package/dist/memory/decisions.js +13 -5
- package/dist/memory/decisions.js.map +1 -1
- package/dist/resources/admission-ledger.d.ts +7 -0
- package/dist/resources/admission-ledger.d.ts.map +1 -1
- package/dist/resources/admission-ledger.js +53 -9
- package/dist/resources/admission-ledger.js.map +1 -1
- package/dist/store/migration-runner.d.ts +17 -0
- package/dist/store/migration-runner.d.ts.map +1 -1
- package/dist/store/migration-runner.js +53 -0
- package/dist/store/migration-runner.js.map +1 -1
- package/dist/store/migration-safety.d.ts +406 -0
- package/dist/store/migration-safety.d.ts.map +1 -0
- package/dist/store/migration-safety.js +587 -0
- package/dist/store/migration-safety.js.map +1 -0
- package/dist/store/portable-bundle.d.ts +8 -0
- package/dist/store/portable-bundle.d.ts.map +1 -1
- package/dist/store/portable-bundle.js +5 -0
- package/dist/store/portable-bundle.js.map +1 -1
- package/dist/store/sync/conflicts.d.ts +37 -0
- package/dist/store/sync/conflicts.d.ts.map +1 -1
- package/dist/store/sync/conflicts.js +88 -0
- package/dist/store/sync/conflicts.js.map +1 -1
- package/dist/store/sync/merge/engine.d.ts.map +1 -1
- package/dist/store/sync/merge/engine.js +18 -0
- package/dist/store/sync/merge/engine.js.map +1 -1
- package/dist/store/sync/merge/rules.d.ts +2 -1
- package/dist/store/sync/merge/rules.d.ts.map +1 -1
- package/dist/store/sync/merge/rules.js +9 -2
- package/dist/store/sync/merge/rules.js.map +1 -1
- package/dist/store/sync/merge/types.d.ts +7 -0
- package/dist/store/sync/merge/types.d.ts.map +1 -1
- package/dist/store/sync/reconcile-copy.d.ts +8 -0
- package/dist/store/sync/reconcile-copy.d.ts.map +1 -1
- package/dist/store/sync/reconcile-copy.js +1 -1
- package/dist/store/sync/reconcile-copy.js.map +1 -1
- package/dist/store/sync/sealer.d.ts +5 -1
- package/dist/store/sync/sealer.d.ts.map +1 -1
- package/dist/store/sync/sealer.js +35 -3
- package/dist/store/sync/sealer.js.map +1 -1
- package/dist/store/vault-manifest.d.ts +72 -0
- package/dist/store/vault-manifest.d.ts.map +1 -1
- package/dist/store/vault-manifest.js +134 -0
- package/dist/store/vault-manifest.js.map +1 -1
- package/dist/tasks/complete.d.ts.map +1 -1
- package/dist/tasks/complete.js +7 -1
- package/dist/tasks/complete.js.map +1 -1
- package/package.json +13 -13
- package/templates/git-hooks/commit-msg +7 -2
- package/templates/git-hooks/legacy-hashes.json +3 -1
- 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
|
|
58
|
-
|
|
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,
|
|
48
|
-
|
|
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
|
"
|