unbound-cli 1.25.1 → 1.26.0
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/README.md +5 -3
- package/package.json +1 -1
- package/src/commands/setup.js +14 -8
- package/src/commands/tools.js +1 -0
- package/src/index.js +3 -1
- package/src/toolHealth.js +15 -0
- package/test/setup-args.test.js +3 -3
- package/test/setup-tables.test.js +11 -0
- package/test/tool-detect.test.js +2 -2
- package/test/tool-health.test.js +45 -2
- package/test/tools-supported-types.test.js +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ Interactive batch setup:
|
|
|
68
68
|
| Command | Description |
|
|
69
69
|
|---------|-------------|
|
|
70
70
|
| `unbound setup` | Select and install multiple tools interactively |
|
|
71
|
-
| `unbound setup --all` | Install the default bundle: Cursor + Copilot + Augment + Claude Code hooks + Codex hooks |
|
|
71
|
+
| `unbound setup --all` | Install the default bundle: Cursor + Copilot + Augment + Antigravity + Claude Code hooks + Codex hooks |
|
|
72
72
|
|
|
73
73
|
Automated setup (downloads scripts, sets env vars, configures tool):
|
|
74
74
|
|
|
@@ -77,6 +77,7 @@ Automated setup (downloads scripts, sets env vars, configures tool):
|
|
|
77
77
|
| `unbound setup cursor` | Download hooks, set env, restart Cursor |
|
|
78
78
|
| `unbound setup copilot` | Download hooks, set env, configure GitHub Copilot |
|
|
79
79
|
| `unbound setup augment` | Download hooks, set env, configure Augment Code |
|
|
80
|
+
| `unbound setup antigravity` | Download hooks and configure Antigravity |
|
|
80
81
|
| `unbound setup claude-code` | Interactive mode selection (subscription or gateway) |
|
|
81
82
|
| `unbound setup claude-code --subscription` | Hooks only (keep your Claude subscription) |
|
|
82
83
|
| `unbound setup claude-code --gateway` | Use Unbound as the AI provider |
|
|
@@ -101,6 +102,7 @@ Remove configuration:
|
|
|
101
102
|
| `unbound setup cursor --clear` | Remove Unbound config for Cursor |
|
|
102
103
|
| `unbound setup copilot --clear` | Remove Unbound config for GitHub Copilot |
|
|
103
104
|
| `unbound setup augment --clear` | Remove Unbound config for Augment Code |
|
|
105
|
+
| `unbound setup antigravity --clear` | Remove Unbound config for Antigravity |
|
|
104
106
|
| `unbound setup claude-code --clear` | Remove Unbound config for Claude Code |
|
|
105
107
|
| `unbound setup gemini-cli --clear` | Remove Unbound config for Gemini CLI |
|
|
106
108
|
| `unbound setup codex --clear` | Remove Unbound config for Codex |
|
|
@@ -115,7 +117,7 @@ Configure all users on a device via MDM. Requires root.
|
|
|
115
117
|
| `sudo unbound setup --api-key KEY cursor codex-subscription` | Set up specific tools |
|
|
116
118
|
| `sudo unbound setup --clear cursor` | Remove config for specific tools |
|
|
117
119
|
|
|
118
|
-
Available tools: `cursor`, `copilot`, `augment`, `claude-code-subscription`, `claude-code-gateway`, `gemini-cli`, `codex-subscription`, `codex-gateway`
|
|
120
|
+
Available tools: `cursor`, `copilot`, `augment`, `antigravity`, `claude-code-subscription`, `claude-code-gateway`, `gemini-cli`, `codex-subscription`, `codex-gateway`
|
|
119
121
|
|
|
120
122
|
`claude-code-subscription` and `claude-code-gateway` are mutually exclusive. `codex-subscription` and `codex-gateway` are mutually exclusive. When using `--all`, subscription mode is used by default for Claude Code and Codex.
|
|
121
123
|
|
|
@@ -305,7 +307,7 @@ Alias: `unbound groups` works the same as `unbound user-groups`.
|
|
|
305
307
|
| `unbound tools connect <type>` | Connect a tool |
|
|
306
308
|
| `unbound tools approved` | List approved tool types |
|
|
307
309
|
|
|
308
|
-
Supported tool types: `CLAUDE_CODE`, `CURSOR`, `COPILOT`, `AUGMENT_CODE`, `ROO_CODE`, `CLINE`, `GEMINI_CLI`, `CODEX`, `KILO_CODE`, `CUSTOM_ACCESS`
|
|
310
|
+
Supported tool types: `CLAUDE_CODE`, `CURSOR`, `COPILOT`, `AUGMENT_CODE`, `ANTIGRAVITY`, `ROO_CODE`, `CLINE`, `GEMINI_CLI`, `CODEX`, `KILO_CODE`, `CUSTOM_ACCESS`
|
|
309
311
|
|
|
310
312
|
### Flags and False Positives
|
|
311
313
|
|
package/package.json
CHANGED
package/src/commands/setup.js
CHANGED
|
@@ -31,6 +31,7 @@ const SETUP_TOOLS = [
|
|
|
31
31
|
{ label: 'Cursor', value: 'cursor', script: 'cursor/setup.py' },
|
|
32
32
|
{ label: 'GitHub Copilot', value: 'copilot', script: 'copilot/hooks/setup.py' },
|
|
33
33
|
{ label: 'Augment Code', value: 'augment', script: 'augment/hooks/setup.py' },
|
|
34
|
+
{ label: 'Antigravity', value: 'antigravity', script: 'antigravity/hooks/setup.py' },
|
|
34
35
|
{ label: 'Claude Code \u2014 subscription (hooks)', value: 'claude-sub', script: 'claude-code/hooks/setup.py', group: 'claude-code' },
|
|
35
36
|
{ label: 'Claude Code \u2014 gateway (gateway)', value: 'claude-gw', script: 'claude-code/gateway/setup.py', group: 'claude-code' },
|
|
36
37
|
{ label: 'Gemini CLI', value: 'gemini', script: 'gemini-cli/gateway/setup.py' },
|
|
@@ -45,6 +46,7 @@ const MDM_TOOLS = {
|
|
|
45
46
|
'cursor': { label: 'Cursor', script: 'cursor/mdm/setup.py' },
|
|
46
47
|
'copilot': { label: 'GitHub Copilot', script: 'copilot/hooks/mdm/setup.py' },
|
|
47
48
|
'augment': { label: 'Augment Code', script: 'augment/hooks/mdm/setup.py' },
|
|
49
|
+
'antigravity': { label: 'Antigravity', script: 'antigravity/hooks/mdm/setup.py' },
|
|
48
50
|
'claude-code-subscription': { label: 'Claude Code', script: 'claude-code/hooks/mdm/setup.py' },
|
|
49
51
|
'claude-code-gateway': { label: 'Claude Code (gateway)', script: 'claude-code/gateway/mdm/setup.py' },
|
|
50
52
|
'gemini-cli': { label: 'Gemini CLI', script: 'gemini-cli/gateway/mdm/setup.py' },
|
|
@@ -54,22 +56,23 @@ const MDM_TOOLS = {
|
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
// Default MDM tools for `sudo unbound onboard` (subscription mode for Claude Code/Codex since only one can be active)
|
|
57
|
-
const MDM_ALL_TOOLS = ['cursor', 'claude-code-subscription', 'gemini-cli', 'codex-subscription', 'copilot', 'augment'];
|
|
59
|
+
const MDM_ALL_TOOLS = ['cursor', 'claude-code-subscription', 'gemini-cli', 'codex-subscription', 'copilot', 'augment', 'antigravity'];
|
|
58
60
|
|
|
59
61
|
// Tools for `sudo unbound setup --all` — identical to MDM_ALL_TOOLS today; split kept for future flexibility.
|
|
60
|
-
const MDM_SETUP_ALL_TOOLS = ['cursor', 'claude-code-subscription', 'gemini-cli', 'codex-subscription', 'copilot', 'augment'];
|
|
62
|
+
const MDM_SETUP_ALL_TOOLS = ['cursor', 'claude-code-subscription', 'gemini-cli', 'codex-subscription', 'copilot', 'augment', 'antigravity'];
|
|
61
63
|
|
|
62
64
|
// Default tools for `unbound onboard` (Cursor, Claude Code hooks, Codex hooks, Copilot hooks; no Gemini CLI).
|
|
63
|
-
const ALL_TOOLS = ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment'];
|
|
65
|
+
const ALL_TOOLS = ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment', 'antigravity'];
|
|
64
66
|
|
|
65
67
|
// Tools for `unbound setup --all` — identical to ALL_TOOLS today; split kept for future flexibility.
|
|
66
|
-
const SETUP_ALL_TOOLS = ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment'];
|
|
68
|
+
const SETUP_ALL_TOOLS = ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment', 'antigravity'];
|
|
67
69
|
|
|
68
70
|
// Tool name → script mapping for automated tools
|
|
69
71
|
const SETUP_TOOL_MAP = {
|
|
70
72
|
'cursor': { label: 'Cursor', script: 'cursor/setup.py' },
|
|
71
73
|
'copilot': { label: 'GitHub Copilot', script: 'copilot/hooks/setup.py' },
|
|
72
74
|
'augment': { label: 'Augment Code', script: 'augment/hooks/setup.py' },
|
|
75
|
+
'antigravity': { label: 'Antigravity', script: 'antigravity/hooks/setup.py' },
|
|
73
76
|
'claude-code-subscription': { label: 'Claude Code', script: 'claude-code/hooks/setup.py' },
|
|
74
77
|
'claude-code-gateway': { label: 'Claude Code (gateway)', script: 'claude-code/gateway/setup.py' },
|
|
75
78
|
'gemini-cli': { label: 'Gemini CLI', script: 'gemini-cli/gateway/setup.py' },
|
|
@@ -782,7 +785,7 @@ function register(program) {
|
|
|
782
785
|
.option('--clear', 'Remove Unbound configuration for the specified tools (no login or API key required)')
|
|
783
786
|
.option('--subscription', 'Use subscription mode for Claude Code / Codex (hooks only)')
|
|
784
787
|
.option('--gateway', 'Use gateway mode for Claude Code / Codex (Unbound as AI provider)')
|
|
785
|
-
.option('--all', 'Set up the default bundle: Cursor, Copilot, Claude Code (hooks), Codex (hooks)')
|
|
788
|
+
.option('--all', 'Set up the default bundle: Cursor, Copilot, Augment, Antigravity, Claude Code (hooks), Codex (hooks)')
|
|
786
789
|
.option('--backfill', 'Seed historical Claude Code / Codex / Copilot sessions from local transcripts into Unbound analytics (subscription/hooks mode only; Cursor unsupported)')
|
|
787
790
|
.addOption(new Option('--backend-url <url>', 'Override backend URL for setup scripts (dev only)').hideHelp())
|
|
788
791
|
.addOption(new Option('--frontend-url <url>', 'Override frontend URL for setup scripts (dev only)').hideHelp())
|
|
@@ -796,6 +799,7 @@ Available tools:
|
|
|
796
799
|
cursor Cursor IDE
|
|
797
800
|
copilot GitHub Copilot
|
|
798
801
|
augment Augment Code
|
|
802
|
+
antigravity Antigravity
|
|
799
803
|
claude-code Claude Code (use --subscription or --gateway)
|
|
800
804
|
gemini-cli Gemini CLI
|
|
801
805
|
codex Codex (use --subscription or --gateway)
|
|
@@ -816,12 +820,13 @@ Examples:
|
|
|
816
820
|
$ unbound setup cursor Set up Cursor
|
|
817
821
|
$ unbound setup copilot Set up GitHub Copilot
|
|
818
822
|
$ unbound setup augment Set up Augment Code
|
|
823
|
+
$ unbound setup antigravity Set up Antigravity
|
|
819
824
|
$ unbound setup claude-code --gateway Claude Code gateway mode
|
|
820
825
|
$ unbound setup claude-code --subscription Claude Code hooks only
|
|
821
826
|
$ unbound setup codex --gateway Codex gateway mode
|
|
822
827
|
$ unbound setup pi Set up Pi Coding Agent
|
|
823
828
|
|
|
824
|
-
Install the default bundle (Cursor + Copilot + Augment + Claude Code hooks + Codex hooks):
|
|
829
|
+
Install the default bundle (Cursor + Copilot + Augment + Antigravity + Claude Code hooks + Codex hooks):
|
|
825
830
|
$ unbound setup --all Set up the default bundle
|
|
826
831
|
$ unbound setup --all --api-key <key> Set up the bundle with a device key
|
|
827
832
|
|
|
@@ -1203,8 +1208,9 @@ Scope is chosen automatically from your privileges:
|
|
|
1203
1208
|
re-run with sudo to remove it too.
|
|
1204
1209
|
|
|
1205
1210
|
What it clears:
|
|
1206
|
-
- USER-level tool config — Cursor, GitHub Copilot,
|
|
1207
|
-
gateway), Gemini CLI, Codex (subscription +
|
|
1211
|
+
- USER-level tool config — Cursor, GitHub Copilot, Augment Code, Antigravity,
|
|
1212
|
+
Pi, Claude Code (subscription + gateway), Gemini CLI, Codex (subscription +
|
|
1213
|
+
gateway).
|
|
1208
1214
|
- The scheduled discovery scan and its stored API key — the LaunchAgent / cron /
|
|
1209
1215
|
scheduled task, and the key in Keychain / creds file / Credential Manager. Under
|
|
1210
1216
|
sudo this is torn down for the invoking user (the scan is a per-user artifact).
|
package/src/commands/tools.js
CHANGED
package/src/index.js
CHANGED
|
@@ -61,10 +61,11 @@ ONBOARDING (one-step install + discover; scope auto-detected from sudo)
|
|
|
61
61
|
|
|
62
62
|
TOOL SETUP
|
|
63
63
|
$ unbound setup Select and install multiple tools interactively
|
|
64
|
-
$ unbound setup --all Set up the default bundle (Cursor + Copilot + Augment + Claude Code hooks + Codex hooks)
|
|
64
|
+
$ unbound setup --all Set up the default bundle (Cursor + Copilot + Augment + Antigravity + Claude Code hooks + Codex hooks)
|
|
65
65
|
$ unbound setup cursor Set up Cursor
|
|
66
66
|
$ unbound setup copilot Set up GitHub Copilot
|
|
67
67
|
$ unbound setup augment Set up Augment Code
|
|
68
|
+
$ unbound setup antigravity Set up Antigravity
|
|
68
69
|
$ unbound setup claude-code Set up Claude Code (interactive mode selection)
|
|
69
70
|
$ unbound setup claude-code --gateway Use Unbound as AI provider
|
|
70
71
|
$ unbound setup claude-code --subscription Hooks only (keep your subscription)
|
|
@@ -89,6 +90,7 @@ TOOL SETUP
|
|
|
89
90
|
$ unbound setup cursor --clear Remove Unbound config for Cursor
|
|
90
91
|
$ unbound setup copilot --clear Remove Unbound config for GitHub Copilot
|
|
91
92
|
$ unbound setup augment --clear Remove Unbound config for Augment Code
|
|
93
|
+
$ unbound setup antigravity --clear Remove Unbound config for Antigravity
|
|
92
94
|
$ unbound setup claude-code --clear Remove Unbound config for Claude Code
|
|
93
95
|
$ unbound setup gemini-cli --clear Remove Unbound config for Gemini CLI
|
|
94
96
|
$ unbound setup codex --clear Remove Unbound config for Codex
|
package/src/toolHealth.js
CHANGED
|
@@ -441,6 +441,21 @@ function buildVariants(gatewayUrl, binaryPath) {
|
|
|
441
441
|
return checks;
|
|
442
442
|
},
|
|
443
443
|
},
|
|
444
|
+
{
|
|
445
|
+
key: 'antigravity', label: 'Antigravity', family: 'antigravity', mode: null,
|
|
446
|
+
checks: () => {
|
|
447
|
+
// ~/.gemini/config/hooks.json is shared with the user's own hooks; ours is its "unbound" entry, which
|
|
448
|
+
// runs the python unbound.py or the shared binary. Per-user even under MDM, like copilot.
|
|
449
|
+
// Checks the fixed path setup always writes, as cursor/copilot/augment do; setup never points the entry elsewhere.
|
|
450
|
+
const entry = (readJson('~/.gemini/config/hooks.json') || {}).unbound;
|
|
451
|
+
const hasBinary = JSON.stringify(entry || {}).includes(BINARY_MARKER);
|
|
452
|
+
const checks = [configCheck('Config', '~/.gemini/config/hooks.json', { json: true, test: (doc) => refsUnbound(doc && doc.unbound) })];
|
|
453
|
+
if (hasBinary) checks.push(scriptCheck('Hook binary', binaryPath || BINARY_PATH));
|
|
454
|
+
else checks.push(scriptCheck('Hook script', '~/.gemini/antigravity-hooks/unbound.py'));
|
|
455
|
+
checks.push(deviceTokenCheck('UNBOUND_ANTIGRAVITY_API_KEY'));
|
|
456
|
+
return checks;
|
|
457
|
+
},
|
|
458
|
+
},
|
|
444
459
|
// Gemini CLI is intentionally omitted here — it isn't part of `setup --all`
|
|
445
460
|
// and has no managed directory. Add it back when its scope is settled.
|
|
446
461
|
];
|
package/test/setup-args.test.js
CHANGED
|
@@ -142,8 +142,8 @@ test('buildScriptArgs: mdm clear without key emits --clear and no --api-key/--do
|
|
|
142
142
|
test('resolveSetupAllTools(false): install bundle is subscription-only, no gateway/gemini', () => {
|
|
143
143
|
const tools = resolveSetupAllTools(false);
|
|
144
144
|
// Membership + length (order-independent) so reordering SETUP_ALL_TOOLS doesn't break this.
|
|
145
|
-
assert.equal(tools.length,
|
|
146
|
-
for (const t of ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment']) {
|
|
145
|
+
assert.equal(tools.length, 6, `expected 6 tools, got ${tools.join(',')}`);
|
|
146
|
+
for (const t of ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment', 'antigravity']) {
|
|
147
147
|
assert.ok(tools.includes(t), `install bundle missing ${t}: ${tools.join(',')}`);
|
|
148
148
|
}
|
|
149
149
|
assert.ok(!tools.includes('claude-code-gateway'), tools.join(','));
|
|
@@ -153,7 +153,7 @@ test('resolveSetupAllTools(false): install bundle is subscription-only, no gatew
|
|
|
153
153
|
|
|
154
154
|
test('resolveSetupAllTools(true): clear-all covers every tool incl. gateway modes + gemini', () => {
|
|
155
155
|
const tools = resolveSetupAllTools(true);
|
|
156
|
-
for (const t of ['cursor', 'copilot', 'augment', 'claude-code-subscription', 'claude-code-gateway',
|
|
156
|
+
for (const t of ['cursor', 'copilot', 'augment', 'antigravity', 'claude-code-subscription', 'claude-code-gateway',
|
|
157
157
|
'gemini-cli', 'codex-subscription', 'codex-gateway']) {
|
|
158
158
|
assert.ok(tools.includes(t), `clear-all missing ${t}: ${tools.join(',')}`);
|
|
159
159
|
}
|
|
@@ -92,6 +92,17 @@ test('assertToolWired: augment is wired across all four tables', () => {
|
|
|
92
92
|
assert.equal(got.bundles.length, 4);
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
+
test('assertToolWired: antigravity is wired across all four tables and every default bundle', () => {
|
|
96
|
+
const got = assertToolWired('antigravity', {
|
|
97
|
+
script: 'antigravity/hooks/setup.py',
|
|
98
|
+
mdmScript: 'antigravity/hooks/mdm/setup.py',
|
|
99
|
+
bundles: ['SETUP_ALL_TOOLS', 'ALL_TOOLS', 'MDM_ALL_TOOLS', 'MDM_SETUP_ALL_TOOLS'],
|
|
100
|
+
});
|
|
101
|
+
assert.equal(SETUP_TOOL_MAP.antigravity.label, 'Antigravity');
|
|
102
|
+
assert.equal(MDM_TOOLS.antigravity.label, 'Antigravity');
|
|
103
|
+
assert.equal(got.bundles.length, 4);
|
|
104
|
+
});
|
|
105
|
+
|
|
95
106
|
// The regression half: a tool in SETUP_TOOL_MAP is in `--all --clear` for free,
|
|
96
107
|
// because resolveSetupAllTools(true) returns Object.keys(SETUP_TOOL_MAP).
|
|
97
108
|
test('resolveSetupAllTools: clear covers every SETUP_TOOL_MAP key, install covers the bundle only', () => {
|
package/test/tool-detect.test.js
CHANGED
|
@@ -271,8 +271,8 @@ test('pi is the only tool with detection signals', () => {
|
|
|
271
271
|
});
|
|
272
272
|
|
|
273
273
|
// ---- onboard uses the detection result ----
|
|
274
|
-
const USER_BUNDLE = ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment'];
|
|
275
|
-
const MDM_BUNDLE = ['cursor', 'claude-code-subscription', 'gemini-cli', 'codex-subscription', 'copilot', 'augment'];
|
|
274
|
+
const USER_BUNDLE = ['cursor', 'claude-code-subscription', 'codex-subscription', 'copilot', 'augment', 'antigravity'];
|
|
275
|
+
const MDM_BUNDLE = ['cursor', 'claude-code-subscription', 'gemini-cli', 'codex-subscription', 'copilot', 'augment', 'antigravity'];
|
|
276
276
|
const piDetected = (names) => ({ detected: names, missing: [] });
|
|
277
277
|
const piMissing = (names) => ({ detected: [], missing: names });
|
|
278
278
|
|
package/test/tool-health.test.js
CHANGED
|
@@ -272,10 +272,53 @@ test('copilot has no MDM scope — even with a managed dir it never reports mana
|
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
|
|
275
|
-
test('only
|
|
275
|
+
test('only six tools are reported (Gemini CLI is omitted)', () => {
|
|
276
276
|
withHome((tmp, th) => {
|
|
277
277
|
const keys = th.detectTools({ apiKey: 'k' }).map((t) => t.family);
|
|
278
|
-
assert.deepEqual(new Set(keys), new Set(['cursor', 'claude-code', 'codex', 'copilot', 'augment']));
|
|
278
|
+
assert.deepEqual(new Set(keys), new Set(['cursor', 'claude-code', 'codex', 'copilot', 'augment', 'antigravity']));
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
test('antigravity user install: our hooks.json entry + hook script + key → healthy, beside the user\'s own hooks', () => {
|
|
283
|
+
withHome((tmp, th) => {
|
|
284
|
+
const script = path.join(tmp, '.gemini', 'antigravity-hooks', 'unbound.py');
|
|
285
|
+
writeFile(path.join(tmp, '.gemini', 'config', 'hooks.json'), JSON.stringify({
|
|
286
|
+
lint: { Stop: [{ type: 'command', command: './lint.sh' }] },
|
|
287
|
+
unbound: { enabled: true, Stop: [{ type: 'command', command: script }] },
|
|
288
|
+
}));
|
|
289
|
+
writeFile(script, '#');
|
|
290
|
+
process.env.UNBOUND_ANTIGRAVITY_API_KEY = 'k';
|
|
291
|
+
try {
|
|
292
|
+
const t = th.detectTools({ apiKey: 'k' }).find((x) => x.family === 'antigravity');
|
|
293
|
+
assert.equal(t.status, 'healthy');
|
|
294
|
+
assert.notEqual(t.scope, 'mdm');
|
|
295
|
+
} finally { delete process.env.UNBOUND_ANTIGRAVITY_API_KEY; }
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
test('antigravity: hooks.json that runs only the user\'s own hooks reads as not installed', () => {
|
|
300
|
+
withHome((tmp, th) => {
|
|
301
|
+
writeFile(path.join(tmp, '.gemini', 'config', 'hooks.json'), JSON.stringify({
|
|
302
|
+
lint: { Stop: [{ type: 'command', command: './unbound.py' }] },
|
|
303
|
+
}));
|
|
304
|
+
const t = th.detectTools({ apiKey: 'k' }).find((x) => x.family === 'antigravity');
|
|
305
|
+
assert.equal(t.status, 'not-installed');
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
test('antigravity binary install: entry runs the unbound-hook binary + binary present → healthy, no script needed', () => {
|
|
310
|
+
withHome((tmp, th) => {
|
|
311
|
+
const bin = path.join(tmp, 'opt', 'unbound-hook', 'unbound-hook');
|
|
312
|
+
writeFile(bin, '#');
|
|
313
|
+
writeFile(path.join(tmp, '.gemini', 'config', 'hooks.json'), JSON.stringify({
|
|
314
|
+
unbound: { enabled: true, Stop: [{ type: 'command', command: `"${bin}" hook antigravity` }] },
|
|
315
|
+
}));
|
|
316
|
+
process.env.UNBOUND_ANTIGRAVITY_API_KEY = 'k';
|
|
317
|
+
try {
|
|
318
|
+
const t = th.detectTools({ apiKey: 'k', _binaryPath: bin }).find((x) => x.family === 'antigravity');
|
|
319
|
+
assert.equal(t.status, 'healthy');
|
|
320
|
+
assert.notEqual(t.scope, 'mdm');
|
|
321
|
+
} finally { delete process.env.UNBOUND_ANTIGRAVITY_API_KEY; }
|
|
279
322
|
});
|
|
280
323
|
});
|
|
281
324
|
|
|
@@ -12,7 +12,7 @@ const { register, SUPPORTED_TOOL_TYPES } = require('../src/commands/tools');
|
|
|
12
12
|
const BACKEND_ACCEPTED = new Set([
|
|
13
13
|
'CLAUDE_CODE', 'UNBOUND_CLAUDE_CODE', 'CURSOR', 'COPILOT',
|
|
14
14
|
'ROO_CODE', 'CLINE', 'GEMINI_CLI', 'CODEX', 'KILO_CODE', 'OPENCLAW',
|
|
15
|
-
'CUSTOM_ACCESS', 'AUGMENT_CODE',
|
|
15
|
+
'CUSTOM_ACCESS', 'AUGMENT_CODE', 'ANTIGRAVITY',
|
|
16
16
|
]);
|
|
17
17
|
|
|
18
18
|
// Drive the real `tools connect` action with login + api stubbed. Returns
|