fix(antigravity): fix agent tools, sandbox permissions, and relocate global msd-core
Some checks failed
Tests / PR mergeability (push) Successful in 30s
Tests / Detect test scope (push) Successful in 21s
Tests / lint-tests (push) Failing after 3m39s
Tests / plugin-validate (push) Successful in 2m22s
Tests / test (inert CI) (push) Has been skipped
Tests / conformance test (macos-latest, 24) (push) Blocked by required conditions
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Blocked by required conditions
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Blocked by required conditions
Tests / Required tests (push) Blocked by required conditions
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Blocked by required conditions
Tests / Base branch health (push) Successful in 12s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 20s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24) (push) Failing after 17s
Tests / QA loop walk (smell ratchet) (push) Failing after 20s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 21s
Some checks failed
Tests / PR mergeability (push) Successful in 30s
Tests / Detect test scope (push) Successful in 21s
Tests / lint-tests (push) Failing after 3m39s
Tests / plugin-validate (push) Successful in 2m22s
Tests / test (inert CI) (push) Has been skipped
Tests / conformance test (macos-latest, 24) (push) Blocked by required conditions
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Blocked by required conditions
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Blocked by required conditions
Tests / Required tests (push) Blocked by required conditions
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Blocked by required conditions
Tests / Base branch health (push) Successful in 12s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 20s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24) (push) Failing after 17s
Tests / QA loop walk (smell ratchet) (push) Failing after 20s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 21s
- Map Glob, WebSearch, WebFetch to Antigravity-native tool names (find_by_name, search_web, read_url_content) and drop unmapped tools instead of lowercasing - Emit absolute, glob-free trailing-slash read_file() allow rules in settings.json and strip legacy globbed/tilde rules that crash the Antigravity terminal sandbox - Relocate global Antigravity msd-core/ and sibling scripts/ outside ~/.gemini/ to ~/.msd/antigravity/ (avoiding AGY CLI's hardcoded ~/.gemini/** protection boundary) - Update content rewriters, msd-run-resolver.md, update-context, and update.md to resolve ~/.msd/antigravity/msd-core/ and .agents/msd-core/ - Replace Discord invite link in installer banner with Golem15 Wavepath join URL
This commit is contained in:
@@ -223,7 +223,7 @@ describe('#1928 Antigravity preserved (shared surface with the removed gemini ru
|
||||
const toolsBlock = result.slice(result.indexOf('tools:')).split('\n').filter((l) => l.startsWith('- '));
|
||||
assert.ok(toolsBlock.includes('- view_file'), 'Read → view_file (native name, #4705)');
|
||||
assert.ok(toolsBlock.includes('- write_file'), 'Write → write_file');
|
||||
assert.ok(toolsBlock.includes('- web_fetch'), 'WebFetch → web_fetch');
|
||||
assert.ok(toolsBlock.includes('- read_url_content'), 'WebFetch → read_url_content');
|
||||
assert.ok(!toolsBlock.some((l) => /\bskill\b/.test(l)), 'Skill is still excluded (would be an invalid backend tool name)');
|
||||
});
|
||||
|
||||
@@ -251,8 +251,10 @@ describe('#1928 Antigravity preserved (shared surface with the removed gemini ru
|
||||
'the retired gemini-named function must not still be exported — a surviving alias means the rename never finished',
|
||||
);
|
||||
|
||||
// The #4727 rename remains a pure identifier change: same KEYS, same shape
|
||||
// (an added OR removed key still fails). The VALUES moved from the Gemini
|
||||
// The #4727 rename remains a pure identifier change (an added OR removed
|
||||
// key still fails). TodoWrite left the map on purpose: Antigravity has no
|
||||
// registered equivalent, and its old `write_todos` value stopped agents
|
||||
// from starting. The VALUES moved from the Gemini
|
||||
// CLI dialect to Antigravity-native names in #4705 — Antigravity's own
|
||||
// documented subagent contract (antigravity.google/docs/subagents) names
|
||||
// view_file / replace_file_content / grep_search / run_command as native,
|
||||
@@ -264,12 +266,11 @@ describe('#1928 Antigravity preserved (shared surface with the removed gemini ru
|
||||
Write: 'write_file',
|
||||
Edit: 'replace_file_content',
|
||||
Bash: 'run_command',
|
||||
Glob: 'glob',
|
||||
Glob: 'find_by_name',
|
||||
Grep: 'grep_search',
|
||||
WebSearch: 'google_web_search',
|
||||
WebFetch: 'web_fetch',
|
||||
TodoWrite: 'write_todos',
|
||||
}, 'the tool map keys are the #4727 rename surface (add/remove still fails); the VALUES are the #4705 Antigravity-native vocabulary');
|
||||
WebSearch: 'search_web',
|
||||
WebFetch: 'read_url_content',
|
||||
}, 'the tool map keys are the #4727 rename surface (add/remove still fails); the VALUES are names the Antigravity tool registry resolves');
|
||||
|
||||
// In-set / out-of-set boundary pair: the excluded ids still return null individually...
|
||||
for (const excluded of ['mcp__anything', 'Task', 'Agent', 'AskUserQuestion', 'ask_user', 'Skill', 'SlashCommand']) {
|
||||
@@ -279,12 +280,16 @@ describe('#1928 Antigravity preserved (shared surface with the removed gemini ru
|
||||
`${excluded} must still be excluded from the Antigravity tool dialect after the rename`,
|
||||
);
|
||||
}
|
||||
// ...and an unmapped name still falls through to the lowercase default.
|
||||
assert.strictEqual(
|
||||
mod.convertAntigravityToolName('SomeOtherTool'),
|
||||
'someothertool',
|
||||
'an unmapped tool name must still lowercase-fallback after the rename',
|
||||
);
|
||||
// ...and an unmapped name is dropped too: Antigravity refuses to start an
|
||||
// agent that grants a name its registry does not know, so a lowercased
|
||||
// guess would break the agent.
|
||||
for (const unmapped of ['SomeOtherTool', 'TodoWrite', 'constructor']) {
|
||||
assert.strictEqual(
|
||||
mod.convertAntigravityToolName(unmapped),
|
||||
null,
|
||||
`${unmapped} has no registered Antigravity tool and must be dropped`,
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user