feat: add dynamic OAuth prompt system with conditional fields

- Add PromptFieldSchema supporting text and select input types
- Support conditional prompt visibility based on previous inputs
- Add inputs parameter to OAuth authorize request
- Update OAuth dialogs to render dynamic prompts
- Add OPENCODE_PUBLIC_URL config for OAuth callback URLs
- Remove redundant OAuthMethod enum in favor of backend schema
This commit is contained in:
Chris Scott committed 2026-04-15 14:10:19 -04:00
1 parent 9d94c333b4
commit 2b5e130916
12 files changed
+371 -78

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ export const DEFAULTS = {
OPENCODE: {
PORT: 5551,
HOST: '127.0.0.1',
PUBLIC_URL: '', // Optional: public URL for OAuth callbacks (e.g., https://mydomain.com)
},
DATABASE: {
+1
View File
@@ -53,6 +53,7 @@ export const ENV = {
OPENCODE: {
PORT: getEnvNumber('OPENCODE_SERVER_PORT', DEFAULTS.OPENCODE.PORT),
HOST: getEnvString('OPENCODE_HOST', DEFAULTS.OPENCODE.HOST),
PUBLIC_URL: getEnvString('OPENCODE_PUBLIC_URL', ''), // Public URL for OAuth callbacks
},
DATABASE: {