The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ci): accept abbreviated commit hash in contract source
Steven Enamakeld9f0eb677e43
diff --git a/scripts/__tests__/check-module-boundaries.test.mjs b/scripts/__tests__/check-module-boundaries.test.mjsindex 71c25bba45..671013703f 100644--- a/scripts/__tests__/check-module-boundaries.test.mjs+++ b/scripts/__tests__/check-module-boundaries.test.mjs@@ -52,7 +52,7 @@ test('contracts allow pinned canonical TSD vocabulary and reject other git sourcconst m = metadata({ 'tinyjuice-bus': [['tinystoragedrivers-types']] });const types = m.packages.find(pkg => pkg.name === 'tinystoragedrivers-types');const revision = 'a'.repeat(40);- types.source = `git+https://github.com/tinyhumansai/tinystoragedrivers?rev=${revision}#${revision}`;+ types.source = `git+https://github.com/tinyhumansai/tinystoragedrivers?rev=${revision}#${revision.slice(0, 8)}`;assert.deepEqual(auditGraph(m, ['tinyjuice-bus'], strict, 'tinyjuice-bus').violations, []);types.source = `git+https://github.com/senamakel/tinystoragedrivers?rev=${revision}#${revision}`;diff --git a/scripts/ci/check-module-boundaries.mjs b/scripts/ci/check-module-boundaries.mjsindex f92cb6a61c..5b3563afde 100644--- a/scripts/ci/check-module-boundaries.mjs+++ b/scripts/ci/check-module-boundaries.mjs@@ -17,7 +17,8 @@ function contractSourceAllowed(name, source) {const prefix = `git+${repository}?rev=`;if (!source.startsWith(prefix)) return false;const [revision, resolved] = source.slice(prefix.length).split('#');- return /^[0-9a-f]{40}$/.test(revision) && resolved === revision;+ return /^[0-9a-f]{40}$/.test(revision) &&+ typeof resolved === 'string' && resolved.length >= 8 && revision.startsWith(resolved);}export const CONTRACT_CLOSURE = new Set([