Skip to content

Latest commit

 

History

History
86 lines (66 loc) · 2.42 KB

File metadata and controls

86 lines (66 loc) · 2.42 KB

Deployment Checklist

✅ Completed

  • Plugin architecture for OpenCode compatibility
  • Model rotation and quota-aware selection
  • oh-my-opencode integration utilities
  • TypeScript build configuration (ESM)
  • Comprehensive README with LLM installer
  • Package.json with proper dependencies
  • LICENSE (MIT)
  • .gitignore
  • All TypeScript source files (11 files)
  • Build verification (dist/ generated successfully)

Ready to Deploy

GitHub Setup

cd /home/gooseware/repos/antigravity/quota
git init
git remote add origin git@github.com:gooseware/opencode-antigravity-autopilot.git
git add .
git commit -m "feat: initial release - quota management and model rotation"
git branch -M main
git push -u origin main

npm Publishing

npm login
npm publish

Features Delivered

  1. QuotaManager: Core quota tracking and management
  2. Model Rotation: Automatic fallback based on quota
  3. Account Rotation: Leverages opencode-antigravity-auth
  4. oh-my-opencode Integration: Agent-level model management
  5. OpenCode Plugin: Drop-in plugin support
  6. LSP Monitoring: Passive quota discovery
  7. TypeScript: Full type safety with .d.ts exports

File Count

  • Source files: 11 TypeScript files
  • Build output: dist/ with .js, .d.ts, .map files
  • Tests: Existing Jest infrastructure
  • Docs: README.md, PROJECT.md, LICENSE

Key Exports

// Main
export { AntigravityQuotaPlugin } from './plugin';
export { QuotaManager, activate } from './manager';

// oh-my-opencode
export { createOhMyOpenCodeIntegration, generateOhMyOpenCodeConfig } from './oh-my-opencode';

// Core modules
export { TokenStorageReader, AccountRotator } from './auth/*';
export { LSPFinder, QuotaPoller } from './quota/*';
export { QuotaTracker, ModelSelector } from './rotation/*';

// Types
export type { PluginConfig, ModelRotationStrategy, QuotaInfo, ... } from './types';

Integration Points

  • Reads from: ~/.config/opencode/antigravity-accounts.json (opencode-antigravity-auth)
  • Monitors: Antigravity LSP process (language_server_antigravity)
  • Works with: OpenCode, oh-my-opencode
  • Compatible: opencode-antigravity-auth@^1.2.8

Next Steps (Optional)

  • Add example configurations directory
  • Create interactive CLI installer
  • Add telemetry/logging options
  • Implement active quota polling (HTTP headers)
  • Add quota reset notifications