@cortexkit/opencode-antigravity-auth 3.0.3 → 3.0.5

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.
Files changed (99) hide show
  1. package/README.md +7 -7
  2. package/dist/cli.js +1722 -484
  3. package/dist/cli.js.map +4 -4
  4. package/dist/cli.meta.json +440 -120
  5. package/dist/index.js +2157 -803
  6. package/dist/index.js.map +4 -4
  7. package/dist/index.meta.json +476 -141
  8. package/dist/server.js +2248 -841
  9. package/dist/server.js.map +4 -4
  10. package/dist/server.meta.json +1 -1
  11. package/dist/src/common-auth-embedded/claustrum/enrollment.d.ts +3 -2
  12. package/dist/src/common-auth-embedded/claustrum/enrollment.js +84 -42
  13. package/dist/src/common-auth-embedded/claustrum/roster.js +2 -2
  14. package/dist/src/common-auth-embedded/fs/atomic-write.d.ts +5 -0
  15. package/dist/src/common-auth-embedded/fs/atomic-write.js +21 -0
  16. package/dist/src/common-auth-embedded/fs/index.d.ts +2 -0
  17. package/dist/src/common-auth-embedded/fs/index.js +1 -0
  18. package/dist/src/common-auth-embedded/fs/private-files.d.ts +66 -0
  19. package/dist/src/common-auth-embedded/fs/private-files.js +302 -0
  20. package/dist/src/common-auth-embedded/fs/refresh-file-lock.d.ts +1 -1
  21. package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +254 -37
  22. package/dist/src/common-auth-embedded/fs/with-lock.d.ts +3 -0
  23. package/dist/src/common-auth-embedded/fs/with-lock.js +4 -0
  24. package/dist/src/common-auth-embedded/logger/engine.d.ts +6 -8
  25. package/dist/src/common-auth-embedded/logger/engine.js +126 -11
  26. package/dist/src/common-auth-embedded/pi-slot/slot.d.ts +2 -0
  27. package/dist/src/common-auth-embedded/pi-slot/slot.js +34 -6
  28. package/dist/src/common-auth-embedded/rpc/port-file.js +30 -8
  29. package/dist/src/common-auth-embedded/rpc/rpc-client.js +15 -1
  30. package/dist/src/common-auth-embedded/rpc/rpc-server.js +8 -3
  31. package/dist/src/common-auth-embedded/source-output.json +92 -76
  32. package/dist/src/common-auth-embedded/store/mutate.js +2 -2
  33. package/dist/src/common-auth-embedded/store/pool.d.ts +1 -0
  34. package/dist/src/common-auth-embedded/store/pool.js +3 -0
  35. package/dist/src/common-auth-embedded/store/refresh-lock.d.ts +4 -0
  36. package/dist/src/common-auth-embedded/store/refresh-lock.js +5 -0
  37. package/dist/src/ga/rpc/protocol.d.ts +2 -3
  38. package/dist/src/ga/rpc/protocol.d.ts.map +1 -1
  39. package/dist/src/ga/rpc/protocol.js +60 -0
  40. package/dist/src/ga/rpc/protocol.js.map +1 -1
  41. package/dist/src/ga/server/index.d.ts +3 -2
  42. package/dist/src/ga/server/index.d.ts.map +1 -1
  43. package/dist/src/ga/server/index.js +23 -7
  44. package/dist/src/ga/server/index.js.map +1 -1
  45. package/dist/src/plugin/request.d.ts.map +1 -1
  46. package/dist/src/plugin/request.js +8 -14
  47. package/dist/src/plugin/request.js.map +1 -1
  48. package/dist/src/plugin/vault-custody.d.ts +6 -0
  49. package/dist/src/plugin/vault-custody.d.ts.map +1 -1
  50. package/dist/src/plugin/vault-custody.js +81 -2
  51. package/dist/src/plugin/vault-custody.js.map +1 -1
  52. package/dist/tui-build-map.json +29 -13
  53. package/dist/tui-ga-build-map.json +1 -1
  54. package/dist/types/src/common-auth-embedded/fs/refresh-file-lock.d.ts +1 -1
  55. package/dist/types/src/common-auth-embedded/logger/engine.d.ts +6 -8
  56. package/dist/types/src/common-auth-embedded/store/pool.d.ts +1 -0
  57. package/dist/types/src/common-auth-embedded/store/refresh-lock.d.ts +4 -0
  58. package/dist/types/src/ga/rpc/protocol.d.ts +2 -3
  59. package/dist/types/src/ga/rpc/protocol.d.ts.map +1 -1
  60. package/dist/types/src/ga/server/index.d.ts +3 -2
  61. package/dist/types/src/ga/server/index.d.ts.map +1 -1
  62. package/dist/types/src/plugin/request.d.ts.map +1 -1
  63. package/dist/types/src/plugin/vault-custody.d.ts +6 -0
  64. package/dist/types/src/plugin/vault-custody.d.ts.map +1 -1
  65. package/package.json +5 -4
  66. package/src/common-auth-embedded/claustrum/enrollment.d.ts +3 -2
  67. package/src/common-auth-embedded/claustrum/enrollment.js +84 -42
  68. package/src/common-auth-embedded/claustrum/roster.js +2 -2
  69. package/src/common-auth-embedded/fs/atomic-write.d.ts +5 -0
  70. package/src/common-auth-embedded/fs/atomic-write.js +21 -0
  71. package/src/common-auth-embedded/fs/index.d.ts +2 -0
  72. package/src/common-auth-embedded/fs/index.js +1 -0
  73. package/src/common-auth-embedded/fs/private-files.d.ts +66 -0
  74. package/src/common-auth-embedded/fs/private-files.js +302 -0
  75. package/src/common-auth-embedded/fs/refresh-file-lock.d.ts +1 -1
  76. package/src/common-auth-embedded/fs/refresh-file-lock.js +254 -37
  77. package/src/common-auth-embedded/fs/with-lock.d.ts +3 -0
  78. package/src/common-auth-embedded/fs/with-lock.js +4 -0
  79. package/src/common-auth-embedded/logger/engine.d.ts +6 -8
  80. package/src/common-auth-embedded/logger/engine.js +126 -11
  81. package/src/common-auth-embedded/pi-slot/slot.d.ts +2 -0
  82. package/src/common-auth-embedded/pi-slot/slot.js +34 -6
  83. package/src/common-auth-embedded/rpc/port-file.js +30 -8
  84. package/src/common-auth-embedded/rpc/rpc-client.js +15 -1
  85. package/src/common-auth-embedded/rpc/rpc-server.js +8 -3
  86. package/src/common-auth-embedded/source-output.json +92 -76
  87. package/src/common-auth-embedded/store/mutate.js +2 -2
  88. package/src/common-auth-embedded/store/pool.d.ts +1 -0
  89. package/src/common-auth-embedded/store/pool.js +3 -0
  90. package/src/common-auth-embedded/store/refresh-lock.d.ts +4 -0
  91. package/src/common-auth-embedded/store/refresh-lock.js +5 -0
  92. package/src/tui-compiled/common-auth-embedded/fs/private-files.js +302 -0
  93. package/src/tui-compiled/common-auth-embedded/logger/engine.js +126 -11
  94. package/src/tui-compiled/common-auth-embedded/rpc/port-file.js +30 -8
  95. package/src/tui-compiled/common-auth-embedded/rpc/rpc-client.js +15 -1
  96. package/src/tui-raw/common-auth-embedded/fs/private-files.js +302 -0
  97. package/src/tui-raw/common-auth-embedded/logger/engine.js +126 -11
  98. package/src/tui-raw/common-auth-embedded/rpc/port-file.js +30 -8
  99. package/src/tui-raw/common-auth-embedded/rpc/rpc-client.js +15 -1
package/README.md CHANGED
@@ -134,11 +134,9 @@ The model registry lives at `packages/core/src/model-registry.ts`; the OpenCode
134
134
 
135
135
  | Model | Variants | Quota group |
136
136
  | --- | --- | --- |
137
- | `antigravity-gemini-3.8-flash` | `low`, `high` | `gemini-flash` |
138
- | `antigravity-gemini-3.7-flash` | `low`, `high` | `gemini-flash` |
139
- | `antigravity-gemini-3.6-flash` | `low`, `high` | `gemini-flash` |
140
- | `antigravity-gemini-3.5-flash` | `low`, `high` | `gemini-flash` |
141
- | `antigravity-gemini-3.1-pro` | `low`, `high` | `gemini-pro` |
137
+ | `antigravity-gemini-4-argon` | `low`, `medium` (default), `high` | Per-model quota; weekly pool attribution unverified |
138
+ | `antigravity-gemini-3.8-flash` | `low`, `medium`, `high` | `gemini-flash` |
139
+ | `antigravity-gemini-3.5-flash` | `low`, `medium`, `high` | `gemini-flash` |
142
140
  | `antigravity-gemini-3.1-flash-image` | — | `gemini-flash` |
143
141
  | `antigravity-claude-sonnet-5-5` | low / medium / high | `claude` |
144
142
  | `antigravity-claude-opus-5-5` | low / medium / high | `claude` |
@@ -146,14 +144,16 @@ The model registry lives at `packages/core/src/model-registry.ts`; the OpenCode
146
144
 
147
145
  > Claude 5.5 has a 1,000,000-token context and 128,000-token output limit, with adaptive thinking. Claude 4.6 requests refuse rather than redirecting to a different model.
148
146
 
149
- > Gemini 3.8 Flash Cyber is absent from the captured AGY 1.3.3 server catalog, so it is not exposed by this plugin. Gemini 3.5 Flash-Lite is also absent from the AGY catalog, and Gemini 3.5 Flash Cyber remains restricted to a limited-access CodeMender pilot.
147
+ > Gemini 4 Argon requires **Google AI Ultra**, with 1,048,576 context and 65,536 output tokens. Gemini 3.1 Pro, Gemini 3.6/3.7 Flash and `gemini-pro-agent` were withdrawn by Antigravity; grouped and native tier selections refuse without redirects. Historical transcripts remain readable.
148
+
149
+ > Gemini 3.8 Flash Cyber is absent from the captured AGY 1.3.5 server catalog, so it is not exposed by this plugin. Gemini 3.5 Flash Lite is a server helper route, not a public picker entry. Gemini 3.5 Flash Cyber remains restricted to a limited-access CodeMender pilot.
150
150
 
151
151
  ### Routing
152
152
 
153
153
  - **Antigravity-first (default).** Gemini requests go to the Antigravity header style first; on `429 RESOURCE_EXHAUSTED` they fall back to the Gemini CLI header set.
154
154
  - **CLI-first** (`cli_first: true`). Flip the order — Gemini CLI first, Antigravity fallback. Change the live setting in `/antigravity` → Routing.
155
155
  - **Style-fallback** (`quota_style_fallback: true`). Re-send the SAME request through the other header set on a rate limit. Default OFF because retrying can consume quota from both header-style pools. Change it in `/antigravity` → Routing.
156
- - **Claude and image models** always use Antigravity regardless of toggles.
156
+ - **Argon, Claude and image models** always use Antigravity regardless of toggles.
157
157
  - Model names transform automatically between Antigravity and Gemini CLI namespaces (`antigravity-gemini-3-flash` ↔ `gemini-3-flash-preview`).
158
158
 
159
159
  ### Quota, killswitch, and the soft-threshold fail-open