oneie 3.6.5 → 3.6.7

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 (98) hide show
  1. package/.claude/commands/onboard.md +179 -0
  2. package/.claude/commands/one copy.md +565 -0
  3. package/.claude/commands/one.md +125 -487
  4. package/.claude/commands/server.md +333 -0
  5. package/.claude/hooks/README-knowledge-hooks.md +265 -0
  6. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  7. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  8. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  9. package/.claude/hooks/check-filenames.py +40 -0
  10. package/.claude/hooks/clean-post.py +301 -0
  11. package/.claude/hooks/clean-pre.py +308 -0
  12. package/.claude/hooks/done.py +175 -0
  13. package/.claude/hooks/format-hook.sh +75 -0
  14. package/.claude/hooks/hook-logger.sh +59 -0
  15. package/.claude/hooks/knowledge-post.py +251 -0
  16. package/.claude/hooks/knowledge-pre.py +150 -0
  17. package/.claude/hooks/notification-hook.sh +112 -0
  18. package/.claude/hooks/security-hook.sh +157 -0
  19. package/.claude/hooks/tag-all-docs.py +338 -0
  20. package/.claude/hooks/todo.py +298 -0
  21. package/.claude/hooks/validate-ontology-structure.py +455 -0
  22. package/.claude/skills/astro/add-content-collection.md +30 -0
  23. package/.claude/skills/astro/check-build.md +29 -0
  24. package/.claude/skills/astro/create-component.md +29 -0
  25. package/.claude/skills/astro/create-page.md +30 -0
  26. package/.claude/skills/astro/optimize-performance.md +21 -0
  27. package/.claude/skills/convex/check-deployment.md +46 -0
  28. package/.claude/skills/convex/create-mutation.md +405 -0
  29. package/.claude/skills/convex/create-query.md +52 -0
  30. package/.claude/skills/convex/read-schema.md +373 -0
  31. package/.claude/skills/convex/test-function.md +50 -0
  32. package/.claude/skills/deployment/check-deployment-health.md +20 -0
  33. package/.claude/skills/deployment/create-release.md +21 -0
  34. package/.claude/skills/deployment/deploy-cloudflare.md +31 -0
  35. package/.claude/skills/deployment/deploy-convex.md +30 -0
  36. package/.claude/skills/deployment/sync-repositories.md +19 -0
  37. package/.claude/skills/design/check-accessibility.md +21 -0
  38. package/.claude/skills/design/create-component-spec.md +27 -0
  39. package/.claude/skills/design/generate-design-tokens.md +24 -0
  40. package/.claude/skills/design/generate-wireframe.md +30 -0
  41. package/.claude/skills/documentation/create-migration-guide.md +20 -0
  42. package/.claude/skills/documentation/generate-api-docs.md +27 -0
  43. package/.claude/skills/documentation/generate-readme.md +22 -0
  44. package/.claude/skills/documentation/update-knowledge.md +20 -0
  45. package/.claude/skills/integration/connect-external-system.md +21 -0
  46. package/.claude/skills/integration/implement-a2a.md +20 -0
  47. package/.claude/skills/integration/implement-acp.md +20 -0
  48. package/.claude/skills/integration/verify-integration.md +20 -0
  49. package/.claude/skills/ontology/README.md +255 -0
  50. package/.claude/skills/ontology/check-dimension.md +307 -0
  51. package/.claude/skills/ontology/generate-entity-type.md +339 -0
  52. package/.claude/skills/ontology/validate-schema.md +229 -0
  53. package/.claude/skills/ontology/verify-relationships.md +310 -0
  54. package/.claude/skills/problem-solving/analyze-test-failure.md +21 -0
  55. package/.claude/skills/problem-solving/identify-root-cause.md +20 -0
  56. package/.claude/skills/problem-solving/propose-solution.md +29 -0
  57. package/.claude/skills/problem-solving/verify-fix.md +21 -0
  58. package/.claude/skills/sales/generate-demo-script.md +21 -0
  59. package/.claude/skills/sales/qualify-lead.md +30 -0
  60. package/.claude/skills/sales/track-trial.md +20 -0
  61. package/.claude/skills/sales/verify-kyc.md +20 -0
  62. package/.claude/skills/testing/analyze-coverage.md +24 -0
  63. package/.claude/skills/testing/generate-tests.md +24 -0
  64. package/.claude/skills/testing/run-tests.md +27 -0
  65. package/.claude/skills/testing/validate-e2e.md +25 -0
  66. package/.mcp.json +30 -3
  67. package/dist/commands/init.d.ts.map +1 -1
  68. package/dist/commands/init.js +13 -6
  69. package/dist/commands/init.js.map +1 -1
  70. package/dist/utils/launch-claude.d.ts +3 -2
  71. package/dist/utils/launch-claude.d.ts.map +1 -1
  72. package/dist/utils/launch-claude.js +64 -29
  73. package/dist/utils/launch-claude.js.map +1 -1
  74. package/folders.yaml +1 -1
  75. package/one/.obsidian/workspace.json +22 -22
  76. package/one/events/CREATE-WEBSITE.md +442 -0
  77. package/one/events/CUSTOM-DOMAIN.md +357 -0
  78. package/one/events/DEPLOYMENT copy.md +426 -0
  79. package/one/events/ECOMMERCE-BEFORE-AFTER.md +251 -0
  80. package/one/events/ECOMMERCE-ENHANCEMENTS.md +576 -0
  81. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +421 -0
  82. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +196 -0
  83. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +396 -0
  84. package/one/events/INSTALLATION_FOLDERS.md +516 -0
  85. package/one/events/INSTALLATION_FOLDERS_FILES.md +205 -0
  86. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +419 -0
  87. package/one/events/LICENSE.md +89 -0
  88. package/one/events/MCP-CONFIGURATION.md +336 -0
  89. package/one/events/MCP-SETUP-COMPLETE.md +205 -0
  90. package/one/events/NODE-UPGRADE.md +111 -0
  91. package/one/events/PACKAGE-STRUCTURE.md +310 -0
  92. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +331 -0
  93. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +567 -0
  94. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +262 -0
  95. package/one/events/STRIPE-INTEGRATION.md +414 -0
  96. package/one/events/STRIPE-SETUP-GUIDE.md +462 -0
  97. package/one/events/TRANSPARENCY-FIXES.md +275 -0
  98. package/package.json +4 -2
@@ -0,0 +1,567 @@
1
+ # PROMPT: Fix Frontend-Only Mode in npx oneie Source
2
+
3
+ ## Context
4
+
5
+ The `npx oneie` package installs a web application that crashes with "Client created with undefined deployment address" error when `ONE_BACKEND=off` is set. This breaks the onboarding flow for new users.
6
+
7
+ ## Task
8
+
9
+ Apply the following fixes to `/Users/toc/Server/ONE/web/` source directory to enable frontend-only mode support. These changes will be synced to the npm package via `/release`.
10
+
11
+ ---
12
+
13
+ ## Step 1: Create Convex Client Helper
14
+
15
+ **Create new file:** `/Users/toc/Server/ONE/web/src/lib/convex-client.ts`
16
+
17
+ ```typescript
18
+ /**
19
+ * Convex Client Helper
20
+ *
21
+ * Provides safe Convex client creation that handles frontend-only mode
22
+ * when ONE_BACKEND=off
23
+ */
24
+
25
+ import { ConvexHttpClient } from "convex/browser";
26
+
27
+ /**
28
+ * Get Convex client URL from environment
29
+ * Returns null if backend is disabled
30
+ */
31
+ export function getConvexUrl(): string | null {
32
+ // Check if backend is disabled
33
+ const backendEnabled = import.meta.env.ONE_BACKEND !== 'off';
34
+
35
+ if (!backendEnabled) {
36
+ console.log('[Frontend-Only Mode] Backend disabled, skipping Convex client creation');
37
+ return null;
38
+ }
39
+
40
+ const url = import.meta.env.PUBLIC_CONVEX_URL || import.meta.env.NEXT_PUBLIC_CONVEX_URL;
41
+
42
+ if (!url) {
43
+ console.warn('[Convex] No PUBLIC_CONVEX_URL found in environment');
44
+ return null;
45
+ }
46
+
47
+ return url;
48
+ }
49
+
50
+ /**
51
+ * Create Convex HTTP client safely
52
+ * Returns null if backend is disabled or URL is missing
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * const client = createConvexClient();
57
+ * if (client) {
58
+ * // Use client
59
+ * } else {
60
+ * // Frontend-only mode - skip backend operations
61
+ * }
62
+ * ```
63
+ */
64
+ export function createConvexClient(): ConvexHttpClient | null {
65
+ const url = getConvexUrl();
66
+
67
+ if (!url) {
68
+ return null;
69
+ }
70
+
71
+ return new ConvexHttpClient(url);
72
+ }
73
+
74
+ /**
75
+ * Check if backend is enabled
76
+ */
77
+ export function isBackendEnabled(): boolean {
78
+ return import.meta.env.ONE_BACKEND !== 'off';
79
+ }
80
+ ```
81
+
82
+ ---
83
+
84
+ ## Step 2: Update Configuration Loader
85
+
86
+ **File:** `/Users/toc/Server/ONE/web/src/config/providers.ts`
87
+
88
+ Find this function (around line 129):
89
+
90
+ ```typescript
91
+ export function loadProviderConfig(): ProviderConfig {
92
+ const providerType = import.meta.env.BACKEND_PROVIDER || import.meta.env.PUBLIC_BACKEND_PROVIDER;
93
+
94
+ if (!providerType) {
95
+ throw new Error(
96
+ "BACKEND_PROVIDER environment variable required. " +
97
+ "Set to: convex, wordpress, notion, or supabase"
98
+ );
99
+ }
100
+ ```
101
+
102
+ Replace with:
103
+
104
+ ```typescript
105
+ export function loadProviderConfig(): ProviderConfig | null {
106
+ // Check if backend is disabled
107
+ const backendEnabled = import.meta.env.ONE_BACKEND !== 'off';
108
+
109
+ if (!backendEnabled) {
110
+ console.log('[Frontend-Only Mode] Backend disabled via ONE_BACKEND=off');
111
+ return null;
112
+ }
113
+
114
+ const providerType = import.meta.env.BACKEND_PROVIDER || import.meta.env.PUBLIC_BACKEND_PROVIDER;
115
+
116
+ if (!providerType) {
117
+ throw new Error(
118
+ "BACKEND_PROVIDER environment variable required. " +
119
+ "Set to: convex, wordpress, notion, or supabase"
120
+ );
121
+ }
122
+ ```
123
+
124
+ ---
125
+
126
+ ## Step 3: Update ConfigService (3 functions)
127
+
128
+ **File:** `/Users/toc/Server/ONE/web/src/services/ConfigService.ts`
129
+
130
+ ### 3a. Update `getForOrganization()` (around line 209)
131
+
132
+ Find:
133
+
134
+ ```typescript
135
+ // Fall back to default config
136
+ try {
137
+ const defaultConfig = loadProviderConfig();
138
+ return defaultConfig;
139
+ } catch (error) {
140
+ ```
141
+
142
+ Replace with:
143
+
144
+ ```typescript
145
+ // Fall back to default config
146
+ try {
147
+ const defaultConfig = loadProviderConfig();
148
+
149
+ // Handle frontend-only mode (backend disabled)
150
+ if (defaultConfig === null) {
151
+ return yield* Effect.fail(
152
+ new ConfigNotFoundError({
153
+ organizationId,
154
+ message: `Backend disabled (ONE_BACKEND=off). Frontend-only mode active.`,
155
+ })
156
+ );
157
+ }
158
+
159
+ return defaultConfig;
160
+ } catch (error) {
161
+ ```
162
+
163
+ ### 3b. Update `initializeProvider()` (around line 380)
164
+
165
+ Find:
166
+
167
+ ```typescript
168
+ try {
169
+ return loadProviderConfig();
170
+ } catch (error) {
171
+ return yield* Effect.fail(
172
+ ```
173
+
174
+ Replace with:
175
+
176
+ ```typescript
177
+ try {
178
+ const defaultConfig = loadProviderConfig();
179
+
180
+ // Handle frontend-only mode
181
+ if (defaultConfig === null) {
182
+ return yield* Effect.fail(
183
+ new ConfigNotFoundError({
184
+ organizationId,
185
+ message: `Backend disabled (ONE_BACKEND=off). Frontend-only mode active.`,
186
+ })
187
+ );
188
+ }
189
+
190
+ return defaultConfig;
191
+ } catch (error) {
192
+ return yield* Effect.fail(
193
+ ```
194
+
195
+ ### 3c. Update `getDefault()` (around line 428)
196
+
197
+ Find:
198
+
199
+ ```typescript
200
+ getDefault: () =>
201
+ Effect.sync(() => {
202
+ try {
203
+ return loadProviderConfig();
204
+ } catch {
205
+ ```
206
+
207
+ Replace with:
208
+
209
+ ```typescript
210
+ getDefault: () =>
211
+ Effect.sync(() => {
212
+ try {
213
+ const config = loadProviderConfig();
214
+
215
+ // Handle frontend-only mode
216
+ if (config === null) {
217
+ // Return dummy config for frontend-only mode
218
+ return {
219
+ type: "convex" as const,
220
+ client: null as any,
221
+ cacheEnabled: false,
222
+ cacheTTL: 0,
223
+ };
224
+ }
225
+
226
+ return config;
227
+ } catch {
228
+ ```
229
+
230
+ ---
231
+
232
+ ## Step 4: Update Auth API Route
233
+
234
+ **File:** `/Users/toc/Server/ONE/web/src/pages/api/auth/[...all].ts`
235
+
236
+ Find (lines 1-12):
237
+
238
+ ```typescript
239
+ import type { APIRoute } from "astro"
240
+ import { ConvexHttpClient } from "convex/browser"
241
+ import { api } from "@/lib/convex-api"
242
+
243
+ export const prerender = false
244
+
245
+ const convex = new ConvexHttpClient(
246
+ import.meta.env.PUBLIC_CONVEX_URL || import.meta.env.NEXT_PUBLIC_CONVEX_URL
247
+ )
248
+
249
+ // Bridge Better Auth UI requests to our custom Convex auth
250
+ export const ALL: APIRoute = async ({ request, cookies }) => {
251
+ const url = new URL(request.url)
252
+ ```
253
+
254
+ Replace with:
255
+
256
+ ```typescript
257
+ import type { APIRoute } from "astro"
258
+ import { createConvexClient } from "@/lib/convex-client"
259
+ import { api } from "@/lib/convex-api"
260
+
261
+ export const prerender = false
262
+
263
+ const convex = createConvexClient()
264
+
265
+ // Bridge Better Auth UI requests to our custom Convex auth
266
+ export const ALL: APIRoute = async ({ request, cookies }) => {
267
+ // Handle frontend-only mode (backend disabled)
268
+ if (!convex) {
269
+ return new Response(
270
+ JSON.stringify({
271
+ user: null,
272
+ session: null,
273
+ message: "Backend disabled (ONE_BACKEND=off). Frontend-only mode active."
274
+ }),
275
+ {
276
+ status: 200,
277
+ headers: { "Content-Type": "application/json" },
278
+ }
279
+ )
280
+ }
281
+
282
+ const url = new URL(request.url)
283
+ ```
284
+
285
+ ---
286
+
287
+ ## Step 5: Update GitHub OAuth Callback
288
+
289
+ **File:** `/Users/toc/Server/ONE/web/src/pages/api/auth/github/callback.ts`
290
+
291
+ Find (around line 128):
292
+
293
+ ```typescript
294
+ const { api } = await import("@/lib/convex-api");
295
+
296
+ const convex = new ConvexHttpClient(
297
+ import.meta.env.PUBLIC_CONVEX_URL || import.meta.env.NEXT_PUBLIC_CONVEX_URL
298
+ );
299
+ ```
300
+
301
+ Replace with:
302
+
303
+ ```typescript
304
+ const { api } = await import("@/lib/convex-api");
305
+ const { createConvexClient } = await import("@/lib/convex-client");
306
+
307
+ const convex = createConvexClient();
308
+
309
+ if (!convex) {
310
+ return new Response("Backend disabled", { status: 503 });
311
+ }
312
+ ```
313
+
314
+ ---
315
+
316
+ ## Step 6: Update Google OAuth Callback
317
+
318
+ **File:** `/Users/toc/Server/ONE/web/src/pages/api/auth/google/callback.ts`
319
+
320
+ Find (around line 88):
321
+
322
+ ```typescript
323
+ const { api } = await import("@/lib/convex-api");
324
+
325
+ const convex = new ConvexHttpClient(
326
+ import.meta.env.PUBLIC_CONVEX_URL || import.meta.env.NEXT_PUBLIC_CONVEX_URL
327
+ );
328
+ ```
329
+
330
+ Replace with:
331
+
332
+ ```typescript
333
+ const { api } = await import("@/lib/convex-api");
334
+ const { createConvexClient } = await import("@/lib/convex-client");
335
+
336
+ const convex = createConvexClient();
337
+
338
+ if (!convex) {
339
+ return new Response("Backend disabled", { status: 503 });
340
+ }
341
+ ```
342
+
343
+ ---
344
+
345
+ ## Step 7: Update Account Settings Page
346
+
347
+ **File:** `/Users/toc/Server/ONE/web/src/pages/account/settings.astro`
348
+
349
+ Find (around line 188):
350
+
351
+ ```typescript
352
+ const convexUrl =
353
+ import.meta.env.PUBLIC_CONVEX_URL || import.meta.env.NEXT_PUBLIC_CONVEX_URL;
354
+ const client = new ConvexHttpClient(convexUrl);
355
+ ```
356
+
357
+ Replace with:
358
+
359
+ ```typescript
360
+ import { createConvexClient } from '@/lib/convex-client';
361
+ const client = createConvexClient();
362
+
363
+ if (!client) {
364
+ console.warn('Backend disabled, skipping 2FA setup');
365
+ }
366
+ ```
367
+
368
+ ---
369
+
370
+ ## Step 8: Update Magic Link Form Component
371
+
372
+ **File:** `/Users/toc/Server/ONE/web/src/components/auth/RequestMagicLinkForm.tsx`
373
+
374
+ Find (around line 10):
375
+
376
+ ```typescript
377
+ import { api } from "@/lib/convex-api"
378
+
379
+ const convex = new ConvexHttpClient(
380
+ import.meta.env.PUBLIC_CONVEX_URL || import.meta.env.NEXT_PUBLIC_CONVEX_URL
381
+ )
382
+ ```
383
+
384
+ Replace with:
385
+
386
+ ```typescript
387
+ import { api } from "@/lib/convex-api"
388
+ import { createConvexClient } from "@/lib/convex-client"
389
+
390
+ const convex = createConvexClient()
391
+ ```
392
+
393
+ Then find the `handleSubmit` function and add null check at the start:
394
+
395
+ ```typescript
396
+ const handleSubmit = async (e: React.FormEvent) => {
397
+ e.preventDefault()
398
+
399
+ if (!convex) {
400
+ setError("Backend disabled (frontend-only mode)")
401
+ return
402
+ }
403
+
404
+ // ... rest of code
405
+ }
406
+ ```
407
+
408
+ ---
409
+
410
+ ## Step 9: Update Two-Factor Settings Component
411
+
412
+ **File:** `/Users/toc/Server/ONE/web/src/components/auth/TwoFactorSettings.tsx`
413
+
414
+ Find (around line 12):
415
+
416
+ ```typescript
417
+ import QRCode from "qrcode"
418
+
419
+ const convex = new ConvexHttpClient(
420
+ import.meta.env.PUBLIC_CONVEX_URL || import.meta.env.NEXT_PUBLIC_CONVEX_URL
421
+ )
422
+ ```
423
+
424
+ Replace with:
425
+
426
+ ```typescript
427
+ import QRCode from "qrcode"
428
+ import { createConvexClient } from "@/lib/convex-client"
429
+
430
+ const convex = createConvexClient()
431
+ ```
432
+
433
+ Then add null checks to all async functions:
434
+
435
+ ```typescript
436
+ const handleEnable2FA = async () => {
437
+ if (!convex) {
438
+ console.error("Backend disabled")
439
+ return
440
+ }
441
+ // ... rest of code
442
+ }
443
+
444
+ const handleDisable2FA = async () => {
445
+ if (!convex) {
446
+ console.error("Backend disabled")
447
+ return
448
+ }
449
+ // ... rest of code
450
+ }
451
+
452
+ const handleVerify = async () => {
453
+ if (!convex) {
454
+ console.error("Backend disabled")
455
+ return
456
+ }
457
+ // ... rest of code
458
+ }
459
+ ```
460
+
461
+ ---
462
+
463
+ ## Step 10: Update Convex Provider
464
+
465
+ **File:** `/Users/toc/Server/ONE/web/src/providers/convex/ConvexProvider.ts`
466
+
467
+ Find (around line 53):
468
+
469
+ ```typescript
470
+ export const makeConvexProvider = (config: ConvexProviderConfig): DataProvider => {
471
+ const client = config.client || new ConvexHttpClient(config.url);
472
+ ```
473
+
474
+ Replace with:
475
+
476
+ ```typescript
477
+ export const makeConvexProvider = (config: ConvexProviderConfig): DataProvider => {
478
+ if (!config.client && !config.url) {
479
+ throw new Error("ConvexProvider requires either client or url in config");
480
+ }
481
+
482
+ const client = config.client || new ConvexHttpClient(config.url);
483
+ ```
484
+
485
+ ---
486
+
487
+ ## Step 11: Test Changes
488
+
489
+ After applying all fixes:
490
+
491
+ ```bash
492
+ cd /Users/toc/Server/ONE/web
493
+
494
+ # Test 1: Frontend-only mode
495
+ echo "ONE_BACKEND=off" > .env.local
496
+ echo "ORG_NAME=test" >> .env.local
497
+ echo "ORG_WEBSITE=https://test.com" >> .env.local
498
+ echo "ORG_FOLDER=test" >> .env.local
499
+ bun run dev
500
+ # Should start without errors, log "[Frontend-Only Mode]" messages
501
+
502
+ # Test 2: With Convex backend
503
+ echo "ONE_BACKEND=on" > .env.local
504
+ echo "PUBLIC_CONVEX_URL=https://shocking-falcon-870.convex.cloud" >> .env.local
505
+ echo "CONVEX_DEPLOYMENT=prod:shocking-falcon-870" >> .env.local
506
+ bun run dev
507
+ # Should connect to Convex successfully
508
+
509
+ # Test 3: Type checking
510
+ bunx astro check
511
+ # Should have no type errors
512
+ ```
513
+
514
+ ---
515
+
516
+ ## Step 12: Release to NPM
517
+
518
+ After all tests pass:
519
+
520
+ ```bash
521
+ cd /Users/toc/Server/ONE
522
+
523
+ # Sync changes to cli and apps/one
524
+ /release sync
525
+
526
+ # Test the package
527
+ cd cli
528
+ npm publish --dry-run
529
+
530
+ # Publish if everything looks good
531
+ npm version patch # or minor/major
532
+ npm publish
533
+ ```
534
+
535
+ ---
536
+
537
+ ## Expected Results
538
+
539
+ After these fixes are applied and published:
540
+
541
+ ✅ Users running `npx oneie init` will get a working frontend-only setup
542
+ ✅ No "undefined deployment address" errors
543
+ ✅ Clear console messages: "[Frontend-Only Mode] Backend disabled"
544
+ ✅ Graceful degradation when backend is unavailable
545
+ ✅ Easy toggle between frontend-only and full-stack mode
546
+ ✅ All existing functionality preserved (backwards compatible)
547
+
548
+ ---
549
+
550
+ ## Files Modified Summary
551
+
552
+ **1 new file:**
553
+ - `web/src/lib/convex-client.ts`
554
+
555
+ **9 existing files updated:**
556
+ 1. `web/src/config/providers.ts` (1 function signature + logic)
557
+ 2. `web/src/services/ConfigService.ts` (3 functions)
558
+ 3. `web/src/pages/api/auth/[...all].ts` (imports + null check)
559
+ 4. `web/src/pages/api/auth/github/callback.ts` (imports + null check)
560
+ 5. `web/src/pages/api/auth/google/callback.ts` (imports + null check)
561
+ 6. `web/src/pages/account/settings.astro` (imports + null check)
562
+ 7. `web/src/components/auth/RequestMagicLinkForm.tsx` (imports + null check)
563
+ 8. `web/src/components/auth/TwoFactorSettings.tsx` (imports + null checks)
564
+ 9. `web/src/providers/convex/ConvexProvider.ts` (validation)
565
+
566
+ **Estimated time:** 30 minutes
567
+ **Risk level:** Low (all changes backwards compatible)