polydev-ai 1.8.59 โ†’ 1.8.61

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 (2) hide show
  1. package/README.md +31 -188
  2. package/package.json +4 -1
package/README.md CHANGED
@@ -1,219 +1,62 @@
1
1
  # Polydev AI
2
2
 
3
- **Advanced Model Context Protocol Platform with Multi-LLM Integrations**
3
+ **Multi-model AI perspectives for your coding agents.**
4
4
 
5
- <!-- Last updated: 2024-12-12 -->
6
-
7
- [polydev.ai](https://polydev.ai) | Live Platform
5
+ Get insights from GPT-5.2, Claude Opus 4.5, Gemini 3 Pro, and Grok 4.1 โ€” all through one MCP server.
8
6
 
9
7
  ---
10
8
 
11
- ## Overview
12
-
13
- Polydev AI is an advanced Model Context Protocol (MCP) platform providing comprehensive multi-LLM integrations, subscription-based CLI access, OAuth bridges, and advanced tooling for AI development.
14
-
15
- ## Features
16
-
17
- ### ๐Ÿค– Comprehensive LLM Integration
18
-
19
- - **API-Based Providers**: Direct integration with 8+ providers (Anthropic, OpenAI, Google, etc.)
20
- - **Subscription-Based CLI Access**: Use your existing ChatGPT Plus, Claude Pro, GitHub Copilot subscriptions
21
- - **Unified Interface**: Single API for all providers with consistent streaming responses
22
- - **Auto-Detection**: Automatic CLI tool discovery and path configuration
23
-
24
- ### ๐Ÿ”ง CLI Provider Support
25
-
26
- | Provider | Integration | Authentication |
27
- |----------|-------------|----------------|
28
- | **Codex CLI** | Access GPT-5 with high reasoning | ChatGPT Plus subscription |
29
- | **Claude Code CLI** | Claude via Anthropic | Anthropic Pro subscription |
30
- | **Gemini CLI** | Google Cloud | Google Cloud authentication |
31
- | **GitHub Copilot** | VS Code Language Model API | GitHub Copilot subscription |
32
-
33
- ### ๐Ÿ›  Advanced Tooling
34
-
35
- - **Model Context Protocol (MCP)**: Hosted MCP server with OAuth authentication
36
- - **Multi-Authentication**: Both OAuth and API token support for maximum flexibility
37
- - **Process Execution**: Cross-platform CLI management with timeout handling
38
- - **Path Auto-Discovery**: Smart detection of CLI installations across Windows, macOS, Linux
39
- - **Real-time Status**: Live CLI availability and authentication checking
40
-
41
- ### ๐Ÿ”’ Security & Authentication
42
-
43
- - **Encrypted Storage**: Browser-based API key encryption using SubtleCrypto API
44
- - **OAuth Bridges**: Secure authentication flows
45
- - **Subscription Auth**: No API costs - use existing subscriptions
46
- - **Local Storage**: Keys never leave your device
47
-
48
- ### ๐Ÿ“Š Monitoring & Analytics
49
-
50
- - **PostHog Integration**: Advanced user analytics and feature tracking
51
- - **BetterStack Monitoring**: System health and performance monitoring
52
- - **Upstash Redis**: High-performance caching layer
53
- - **Supabase Auth**: Robust authentication system
54
-
55
- ## Tech Stack
56
-
57
- | Layer | Technology |
58
- |-------|------------|
59
- | **Frontend** | Next.js 15 (App Router), React 18, TypeScript, Tailwind CSS, shadcn/ui |
60
- | **Backend** | Supabase (PostgreSQL + Auth), Upstash Redis |
61
- | **AI Integration** | Custom TypeScript handlers for 8+ LLM providers |
62
- | **CLI Integration** | Cross-platform process execution utilities |
63
- | **Streaming** | Server-Sent Events for real-time responses |
64
- | **Monitoring** | PostHog Analytics, BetterStack |
65
-
66
- ## Supported LLM Providers
67
-
68
- | Provider | Models | Context Window | Features |
69
- |----------|--------|----------------|----------|
70
- | **Anthropic** | Claude 3.5 Sonnet, Haiku, Opus | 200K tokens | Best for reasoning and code |
71
- | **OpenAI** | GPT-4o, GPT-4 Turbo, GPT-3.5 | 128K tokens | Versatile, widely adopted |
72
- | **Google Gemini** | Gemini 1.5 Pro, Flash | 1M+ tokens | Large context window |
73
- | **OpenRouter** | 100+ models | Varies | Access to multiple providers |
74
- | **Groq** | Open-source models | Varies | Ultra-fast inference |
75
- | **Perplexity** | Search-optimized models | Varies | AI search and reasoning |
76
- | **DeepSeek** | Reasoning models | Varies | Advanced reasoning capabilities |
77
- | **Mistral AI** | European AI models | Varies | Strong performance, EU-based |
78
-
79
- ## MCP Tools Available
80
-
81
- - **Research**: Exa (web search), DeepWiki, Context7
82
- - **Storage**: Supabase, Upstash Redis, Memory (knowledge graph)
83
- - **Development**: GitHub, Git, Filesystem
84
- - **Infrastructure**: Vercel, Stripe
85
- - **AI**: Polydev (multi-model consultation)
86
- - **Communication**: Resend (email)
87
-
88
- ## Architecture
89
-
90
- ```
91
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
92
- โ”‚ Frontend UI โ”‚โ”€โ”€โ”€โ”€โ”‚ Process Utils โ”‚โ”€โ”€โ”€โ”€โ”‚ CLI Tools โ”‚
93
- โ”‚ (React/TS) โ”‚ โ”‚ (Node.js) โ”‚ โ”‚ (External) โ”‚
94
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
95
- โ”‚ โ”‚ โ”‚
96
- โ”‚ โ”‚ โ”‚
97
- โ–ผ โ–ผ โ–ผ
98
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
99
- โ”‚ LLM Service โ”‚ โ”‚ CLI Handlers โ”‚ โ”‚ Subscriptions โ”‚
100
- โ”‚ (Unified API) โ”‚ โ”‚ (Per Provider) โ”‚ โ”‚ (ChatGPT+, etc) โ”‚
101
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
102
- โ”‚ โ”‚
103
- โ”‚ โ”‚
104
- โ–ผ โ–ผ
105
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
106
- โ”‚ Supabase โ”‚ โ”‚ MCP Platform โ”‚
107
- โ”‚ (Auth + DB) โ”‚ โ”‚ (16+ Tools) โ”‚
108
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
109
- ```
110
-
111
9
  ## Quick Start
112
10
 
113
- ### Prerequisites
114
-
115
- - Node.js 18+
116
- - npm or yarn package manager
117
- - (Optional) CLI tools for subscription-based access:
118
- - Codex CLI for ChatGPT Plus integration
119
- - Claude Code CLI for Anthropic Pro integration
120
- - Gemini CLI for Google Cloud integration
121
- - VS Code with GitHub Copilot for Copilot integration
122
-
123
- ### Installation
124
-
125
11
  ```bash
126
- # Clone the repository
127
- git clone https://github.com/backspacevenkat/polydev-ai.git
128
- cd polydev-ai
129
-
130
- # Install dependencies
131
- npm install
132
-
133
- # Configure environment variables
134
- cp .env.example .env.local
135
-
136
- # Start development server
137
- npm run dev
12
+ npx polydev-ai@latest
138
13
  ```
139
14
 
140
- Open the application at http://localhost:3000
141
-
142
- ### Quick Configuration
143
-
144
- 1. **API Key Setup**: Go to Settings โ†’ API Keys tab to configure traditional API access
145
- 2. **CLI Setup**: Go to Settings โ†’ CLI Subscriptions tab to set up subscription-based access
146
- 3. **Provider Selection**: Choose your preferred LLM provider from the dropdown
147
- 4. **Test Integration**: Use the chat interface to test your configuration
148
-
149
- ## Environment Variables
15
+ ## What It Does
150
16
 
151
- ```env
152
- # Supabase
153
- NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
154
- NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
155
- SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
17
+ When your AI agent gets stuck, Polydev consults multiple frontier models simultaneously and returns their perspectives. One API call, four expert opinions.
156
18
 
157
- # PostHog Analytics
158
- NEXT_PUBLIC_POSTHOG_KEY=your_posthog_key
159
- NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
160
-
161
- # Upstash Redis
162
- UPSTASH_REDIS_REST_URL=your_upstash_redis_url
163
- UPSTASH_REDIS_REST_TOKEN=your_upstash_redis_token
164
-
165
- # BetterStack Logging
166
- BETTERSTACK_LOGS_TOKEN=your_betterstack_token
19
+ ```
20
+ Your Agent โ†’ Polydev โ†’ [GPT-5.2, Claude, Gemini, Grok] โ†’ Synthesized Answer
167
21
  ```
168
22
 
169
- ## CLI Provider Setup
23
+ ## Setup
170
24
 
171
- ### Codex CLI (ChatGPT Plus Integration)
25
+ ### Claude Code
172
26
 
173
27
  ```bash
174
- # Install and authenticate
175
- codex auth
176
- codex --version
28
+ claude mcp add polydev-ai -- npx polydev-ai@latest
177
29
  ```
178
30
 
179
- ### Claude Code CLI (Anthropic Pro Integration)
180
-
181
- ```bash
182
- # Install and authenticate
183
- claude login
184
- claude --version
185
- ```
31
+ ### Cursor / Windsurf / Cline
186
32
 
187
- ### Gemini CLI (Google Cloud Integration)
33
+ Add to your MCP config:
188
34
 
189
- ```bash
190
- # Install Google Cloud SDK and authenticate
191
- gcloud auth login
192
- gcloud auth application-default login
35
+ ```json
36
+ {
37
+ "mcpServers": {
38
+ "polydev-ai": {
39
+ "command": "npx",
40
+ "args": ["polydev-ai@latest"]
41
+ }
42
+ }
43
+ }
193
44
  ```
194
45
 
195
- ### GitHub Copilot Integration
196
-
197
- 1. Install VS Code with GitHub Copilot extension
198
- 2. Sign in with your GitHub account that has Copilot access
199
- 3. The application will detect VS Code and Copilot availability automatically
46
+ ## Usage
200
47
 
201
- ## Development Status
48
+ Once connected, your agent can call:
202
49
 
203
- **Current Status**: Active Development
50
+ ```
51
+ polydev.getPerspectives("How should I refactor this authentication flow?")
52
+ ```
204
53
 
205
- The platform is fully functional for:
206
- - Multi-LLM chat interface with streaming
207
- - API key management with client-side encryption
208
- - CLI subscription integration
209
- - MCP server with 16+ tools
210
- - Real-time streaming responses
54
+ Returns structured perspectives from multiple models with reasoning and recommendations.
211
55
 
212
- ## License
56
+ ## Why Multi-Model?
213
57
 
214
- MIT
58
+ Different models have different blind spots. Our [research](https://polydev.ai/articles/swe-bench-paper) shows that consulting multiple models improves success rates by 10%+ on coding benchmarks โ€” at lower cost than using a single frontier model.
215
59
 
216
- ## Links
60
+ ---
217
61
 
218
- - **Website**: [polydev.ai](https://polydev.ai)
219
- - **Repository**: [github.com/backspacevenkat/polydev-ai](https://github.com/backspacevenkat/polydev-ai)
62
+ **[Get Started](https://polydev.ai)** ยท **[Docs](https://polydev.ai/docs/mcp-integration)** ยท **[Research](https://polydev.ai/articles/swe-bench-paper)**
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.8.59",
3
+ "version": "1.8.61",
4
+ "engines": {
5
+ "node": ">=20.x <=22.x"
6
+ },
4
7
  "mcpName": "io.github.backspacevenkat/perspectives",
5
8
  "description": "Agentic workflow assistant with CLI integration - get diverse perspectives from multiple LLMs when stuck or need enhanced reasoning",
6
9
  "keywords": [