mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-23 00:05:27 +00:00
test: pin Antigravity native validation to CLI 1.3.5
This commit is contained in:
1 parent
80558fe144
commit
f8a10d84ff
2 files changed
+7
-7
No files matched your search
@@ -219,7 +219,7 @@ Run the optional native check from the ECC source checkout:
|
||||
node tests/scripts/antigravity-native-plugin.test.js
|
||||
```
|
||||
|
||||
The test requires an already installed **Antigravity CLI 1.2.9** and skips with an
|
||||
The test requires an already installed **Antigravity CLI 1.3.5** and skips with an
|
||||
explicit message if that version is unavailable. It does not download the CLI.
|
||||
It installs ECC into one temporary home, runs `agy plugin validate`, imports the
|
||||
local plugin into a separate disposable CLI home with `agy plugin install`, and
|
||||
|
||||
@@ -35,8 +35,8 @@ function checked(args) {
|
||||
|
||||
try {
|
||||
const version = agy(['--version']);
|
||||
if (version.error?.code === 'ENOENT' || (version.status === 0 && version.stdout.trim() !== '1.2.9')) {
|
||||
console.log(`SKIP: native plugin validation requires installed agy 1.2.9 (found ${version.stdout?.trim() || 'none'}); no download attempted.`);
|
||||
if (version.error?.code === 'ENOENT' || (version.status === 0 && version.stdout.trim() !== '1.3.5')) {
|
||||
console.log(`SKIP: native plugin validation requires installed agy 1.3.5 (found ${version.stdout?.trim() || 'none'}); no download attempted.`);
|
||||
console.log('Results: Passed: 0, Failed: 0');
|
||||
} else {
|
||||
assert.strictEqual(version.status, 0, version.error?.message || version.stderr);
|
||||
@@ -53,11 +53,11 @@ try {
|
||||
assert.match(validation, /\[ok\]/);
|
||||
checked(['plugin', 'install', plan.targetRoot]);
|
||||
const listed = JSON.parse(checked(['plugin', 'list', '--json']));
|
||||
const plugin = listed.imports.find(entry => entry.name === 'ecc');
|
||||
const plugin = listed.find(entry => entry.name === 'ecc');
|
||||
assert.ok(plugin, 'Native CLI must discover ECC after explicit local import');
|
||||
assert.ok(plugin.components.includes('hooks'), 'Native importer must register lifecycle hooks');
|
||||
assert.ok(plugin.components.includes('mcpServers'), 'Native importer must register ECC memory');
|
||||
console.log('PASS: agy 1.2.9 validates and imports the generated ECC plugin in a disposable HOME.');
|
||||
assert.ok(plugin.hooks.includes('ecc-guard'), 'Native importer must register lifecycle hooks');
|
||||
assert.ok(plugin.mcpServers.includes('ecc-memory'), 'Native importer must register ECC memory');
|
||||
console.log('PASS: agy 1.3.5 validates and imports the generated ECC plugin in a disposable HOME.');
|
||||
console.log('NOT CHECKED: authenticated tool execution, Stop execution, and automatic IDE discovery.');
|
||||
console.log('Results: Passed: 1, Failed: 0');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user