@smithers-orchestrator/accounts 0.20.4 → 0.21.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smithers-orchestrator/accounts",
3
- "version": "0.20.4",
4
- "description": "Manage multiple Claude/Codex/Gemini/Kimi subscription and API-key accounts that Smithers agents can round-robin through.",
3
+ "version": "0.21.0",
4
+ "description": "Manage multiple Claude/Antigravity/Codex/Gemini/Kimi subscription and API-key accounts that Smithers agents can round-robin through.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -20,7 +20,7 @@
20
20
  "src/"
21
21
  ],
22
22
  "dependencies": {
23
- "@smithers-orchestrator/errors": "0.20.4"
23
+ "@smithers-orchestrator/errors": "0.21.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/bun": "latest",
package/src/Account.ts CHANGED
@@ -12,7 +12,7 @@ export type Account = {
12
12
  provider: AccountProvider;
13
13
  /**
14
14
  * Absolute path to the per-account CLI config directory. Set for
15
- * subscription providers (claude-code, codex, gemini, kimi).
15
+ * subscription providers (claude-code, antigravity, codex, gemini, kimi).
16
16
  */
17
17
  configDir?: string;
18
18
  /**
@@ -5,6 +5,7 @@
5
5
  */
6
6
  export type AccountProvider =
7
7
  | "claude-code"
8
+ | "antigravity"
8
9
  | "codex"
9
10
  | "gemini"
10
11
  | "kimi"
@@ -15,6 +15,11 @@ export function accountToProviderEnv(account) {
15
15
  throw new SmithersError("ACCOUNT_INVALID", `claude-code account "${account.label}" missing configDir`);
16
16
  }
17
17
  return { CLAUDE_CONFIG_DIR: account.configDir };
18
+ case "antigravity":
19
+ if (!account.configDir) {
20
+ throw new SmithersError("ACCOUNT_INVALID", `antigravity account "${account.label}" missing configDir`);
21
+ }
22
+ return { GEMINI_DIR: account.configDir };
18
23
  case "codex":
19
24
  if (!account.configDir) {
20
25
  throw new SmithersError("ACCOUNT_INVALID", `codex account "${account.label}" missing configDir`);
package/src/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * authenticated by a CLI config directory; API providers are authenticated by
4
4
  * an API key.
5
5
  */
6
- type AccountProvider = "claude-code" | "codex" | "gemini" | "kimi" | "anthropic-api" | "openai-api" | "gemini-api";
6
+ type AccountProvider = "claude-code" | "antigravity" | "codex" | "gemini" | "kimi" | "anthropic-api" | "openai-api" | "gemini-api";
7
7
 
8
8
  /**
9
9
  * A single registered account. Either `configDir` (subscription providers) or
@@ -17,7 +17,7 @@ type Account$1 = {
17
17
  provider: AccountProvider;
18
18
  /**
19
19
  * Absolute path to the per-account CLI config directory. Set for
20
- * subscription providers (claude-code, codex, gemini, kimi).
20
+ * subscription providers (claude-code, antigravity, codex, gemini, kimi).
21
21
  */
22
22
  configDir?: string;
23
23
  /**
@@ -2,6 +2,7 @@ import { SmithersError } from "@smithers-orchestrator/errors/SmithersError";
2
2
 
3
3
  const VALID_PROVIDERS = new Set([
4
4
  "claude-code",
5
+ "antigravity",
5
6
  "codex",
6
7
  "gemini",
7
8
  "kimi",
@@ -12,6 +13,7 @@ const VALID_PROVIDERS = new Set([
12
13
 
13
14
  const SUBSCRIPTION_PROVIDERS = new Set([
14
15
  "claude-code",
16
+ "antigravity",
15
17
  "codex",
16
18
  "gemini",
17
19
  "kimi",