@ryuenn3123/agentic-senior-core 6.4.4 → 6.4.6
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/gemini-extension.json
CHANGED
|
@@ -234,6 +234,18 @@ async function installAntigravityIde(target) {
|
|
|
234
234
|
'utf8'
|
|
235
235
|
);
|
|
236
236
|
|
|
237
|
+
// Unwrap outer "hooks": { ... } key in CLI copy of hooks.json.
|
|
238
|
+
// Antigravity CLI expects top-level event keys (PreToolUse, PostToolUse, etc.) inside plugin hooks.json.
|
|
239
|
+
// Without unwrapping, agy ignores the nested events. Unwrapped, agy processes all 7 hook categories natively from the single plugin bundle.
|
|
240
|
+
const cliHooksPath = path.join(cliTargetPath, 'hooks.json');
|
|
241
|
+
if (await pathExists(cliHooksPath)) {
|
|
242
|
+
try {
|
|
243
|
+
const rawHooks = JSON.parse(await fs.readFile(cliHooksPath, 'utf8'));
|
|
244
|
+
const unwrappedHooks = rawHooks.hooks || rawHooks;
|
|
245
|
+
await fs.writeFile(cliHooksPath, JSON.stringify(unwrappedHooks, null, 2) + '\n', 'utf8');
|
|
246
|
+
} catch (_) {}
|
|
247
|
+
}
|
|
248
|
+
|
|
237
249
|
// Automatically register the plugin with Antigravity CLI if agy binary is available
|
|
238
250
|
try {
|
|
239
251
|
const { execSync } = await import('node:child_process');
|
package/package.json
CHANGED
package/plugin.yaml
CHANGED