codebuff 1.0.172 → 1.0.174

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 (70) hide show
  1. package/dist/browser-runner.js +7 -17
  2. package/dist/browser-runner.js.map +1 -1
  3. package/dist/chat-storage.js +7 -17
  4. package/dist/chat-storage.js.map +1 -1
  5. package/dist/checkpoint-file-manager.d.ts +14 -3
  6. package/dist/checkpoint-file-manager.js +72 -58
  7. package/dist/checkpoint-file-manager.js.map +1 -1
  8. package/dist/checkpoints.d.ts +2 -0
  9. package/dist/checkpoints.js +22 -19
  10. package/dist/checkpoints.js.map +1 -1
  11. package/dist/cli.d.ts +1 -1
  12. package/dist/cli.js +13 -18
  13. package/dist/cli.js.map +1 -1
  14. package/dist/client.d.ts +12 -12
  15. package/dist/client.js +11 -22
  16. package/dist/client.js.map +1 -1
  17. package/dist/code-map/languages.js +7 -17
  18. package/dist/code-map/languages.js.map +1 -1
  19. package/dist/code-map/parse.js +7 -17
  20. package/dist/code-map/parse.js.map +1 -1
  21. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  22. package/dist/common/actions.d.ts +168 -168
  23. package/dist/common/advanced-analyzer.d.ts +19 -0
  24. package/dist/common/advanced-analyzer.js +140 -0
  25. package/dist/common/advanced-analyzer.js.map +1 -0
  26. package/dist/common/browser-actions.d.ts +44 -44
  27. package/dist/common/constants.d.ts +3 -3
  28. package/dist/common/constants.js +1 -8
  29. package/dist/common/constants.js.map +1 -1
  30. package/dist/common/message-image-handling.d.ts +41 -0
  31. package/dist/common/message-image-handling.js +57 -0
  32. package/dist/common/message-image-handling.js.map +1 -0
  33. package/dist/common/types/agent-state.d.ts +26 -26
  34. package/dist/common/types/message.d.ts +14 -14
  35. package/dist/common/util/credentials.d.ts +2 -2
  36. package/dist/common/util/process-stream.d.ts +8 -0
  37. package/dist/common/util/process-stream.js +102 -0
  38. package/dist/common/util/process-stream.js.map +1 -0
  39. package/dist/common/websockets/websocket-schema.d.ts +451 -451
  40. package/dist/create-template-project.js +7 -17
  41. package/dist/create-template-project.js.map +1 -1
  42. package/dist/index.js +2 -4
  43. package/dist/index.js.map +1 -1
  44. package/dist/menu.js +7 -17
  45. package/dist/menu.js.map +1 -1
  46. package/dist/project-files.js +7 -17
  47. package/dist/project-files.js.map +1 -1
  48. package/dist/tool-handlers.js +7 -17
  49. package/dist/tool-handlers.js.map +1 -1
  50. package/dist/utils/spinner.js +7 -17
  51. package/dist/utils/spinner.js.map +1 -1
  52. package/dist/utils/terminal.js +7 -17
  53. package/dist/utils/terminal.js.map +1 -1
  54. package/dist/web-scraper.js +4 -8
  55. package/dist/web-scraper.js.map +1 -1
  56. package/dist/worker-script-project-context.js +5 -1
  57. package/dist/worker-script-project-context.js.map +1 -1
  58. package/package.json +2 -3
  59. package/dist/common/logger.d.ts +0 -1
  60. package/dist/common/logger.js +0 -7
  61. package/dist/common/logger.js.map +0 -1
  62. package/dist/common/util/constants.d.ts +0 -1
  63. package/dist/common/util/constants.js +0 -7
  64. package/dist/common/util/constants.js.map +0 -1
  65. package/dist/common/util/helpers.d.ts +0 -1
  66. package/dist/common/util/helpers.js +0 -6
  67. package/dist/common/util/helpers.js.map +0 -1
  68. package/dist/common/util/token-counter.d.ts +0 -3
  69. package/dist/common/util/token-counter.js +0 -27
  70. package/dist/common/util/token-counter.js.map +0 -1
@@ -0,0 +1,19 @@
1
+ import { BrowserResponse } from './browser-actions';
2
+ /**
3
+ * Each detected issue includes a type, severity, detection reason,
4
+ * and an optional recommendation for the user.
5
+ */
6
+ export interface AnalysisIssue {
7
+ type: string;
8
+ severity: 'low' | 'medium' | 'high';
9
+ message: string;
10
+ recommendation?: string;
11
+ }
12
+ export interface AnalysisResult {
13
+ issues: AnalysisIssue[];
14
+ }
15
+ /**
16
+ * Entrypoint function to run a suite of heuristic checks over
17
+ * logs, network events, performance metrics, etc.
18
+ */
19
+ export declare function analyzeBrowserData(response: BrowserResponse): AnalysisResult;
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.analyzeBrowserData = analyzeBrowserData;
4
+ /**
5
+ * Entrypoint function to run a suite of heuristic checks over
6
+ * logs, network events, performance metrics, etc.
7
+ */
8
+ function analyzeBrowserData(response) {
9
+ const issues = [];
10
+ // 1. Check logs for known error patterns or repeated errors
11
+ issues.push(...analyzeLogs(response));
12
+ // 2. Check network events for 4xx, 5xx, or suspicious patterns
13
+ issues.push(...analyzeNetwork(response));
14
+ // 3. Check performance metrics (TTFB, LCP, memory usage, etc.)
15
+ if (response.metrics) {
16
+ issues.push(...analyzePerformance(response.metrics));
17
+ }
18
+ // Return combined issues
19
+ return { issues };
20
+ }
21
+ function analyzeLogs(response) {
22
+ const issues = [];
23
+ const logs = response.logs || [];
24
+ // Check for high number of JavaScript errors
25
+ const jsErrors = logs.filter((log) => log.type === 'error');
26
+ if (jsErrors.length > 5) {
27
+ issues.push({
28
+ type: 'JS_ERROR_OVERFLOW',
29
+ severity: 'medium',
30
+ message: `Detected ${jsErrors.length} JavaScript errors in logs.`,
31
+ recommendation: 'Review the console logs for repeated error patterns. Fix the root cause or handle errors in code.'
32
+ });
33
+ }
34
+ // Pattern-based error detection
35
+ const errorPatterns = {
36
+ 'not defined': {
37
+ severity: 'medium',
38
+ recommendation: 'Check for missing script dependencies or undefined variables'
39
+ },
40
+ 'Failed to fetch': {
41
+ severity: 'medium',
42
+ recommendation: 'Verify endpoint URLs and network connectivity'
43
+ },
44
+ 'SSL': {
45
+ severity: 'high',
46
+ recommendation: 'SSL certificate error - check HTTPS configuration'
47
+ },
48
+ 'ERR_NAME_NOT_RESOLVED': {
49
+ severity: 'medium',
50
+ recommendation: 'DNS resolution failed - check domain name'
51
+ },
52
+ 'ERR_CONNECTION_TIMED_OUT': {
53
+ severity: 'medium',
54
+ recommendation: 'Connection timeout - check network or firewall'
55
+ },
56
+ 'Navigation timeout': {
57
+ severity: 'medium',
58
+ recommendation: 'Page took too long to load - check performance or timeouts'
59
+ },
60
+ 'Frame detached': {
61
+ severity: 'low',
62
+ recommendation: 'Target frame or element no longer exists'
63
+ },
64
+ 'Node is detached': {
65
+ severity: 'low',
66
+ recommendation: 'Element was removed from DOM'
67
+ }
68
+ };
69
+ for (const log of jsErrors) {
70
+ for (const [pattern, { severity, recommendation }] of Object.entries(errorPatterns)) {
71
+ if (log.message.includes(pattern)) {
72
+ issues.push({
73
+ type: 'JS_ERROR',
74
+ severity,
75
+ message: `Error detected: ${log.message}`,
76
+ recommendation
77
+ });
78
+ break; // Stop after first matching pattern
79
+ }
80
+ }
81
+ }
82
+ return issues;
83
+ }
84
+ function analyzeNetwork(response) {
85
+ const issues = [];
86
+ const netEvents = response.networkEvents || [];
87
+ // Count 4xx / 5xx
88
+ const errorEvents = netEvents.filter((evt) => (evt.status && evt.status >= 400) || evt.errorText);
89
+ if (errorEvents.length > 0) {
90
+ issues.push({
91
+ type: 'NETWORK_ERRORS',
92
+ severity: 'medium',
93
+ message: `${errorEvents.length} network request(s) failed with 4xx/5xx error(s).`,
94
+ recommendation: 'Check your API endpoints and resource URLs. Verify server logs for possible configuration or routing issues.'
95
+ });
96
+ }
97
+ // Detect repeated 404s
98
+ const fourOhFours = netEvents.filter((e) => e.status === 404);
99
+ if (fourOhFours.length > 2) {
100
+ issues.push({
101
+ type: 'MISSING_RESOURCES',
102
+ severity: 'low',
103
+ message: `${fourOhFours.length} resources returned 404 Not Found.`,
104
+ recommendation: 'Ensure static assets or pages exist at the requested path.'
105
+ });
106
+ }
107
+ return issues;
108
+ }
109
+ function analyzePerformance(metrics) {
110
+ const issues = [];
111
+ // Check Time to First Byte
112
+ if ((metrics.ttfb ?? 0) > 1000) {
113
+ issues.push({
114
+ type: 'HIGH_TTFB',
115
+ severity: 'medium',
116
+ message: `Time to First Byte is ${metrics.ttfb}ms, which is high.`,
117
+ recommendation: 'Optimize server response times or check network constraints. Look for server-side bottlenecks.'
118
+ });
119
+ }
120
+ // Check memory usage
121
+ if (metrics.memoryUsage > 100_000_000) { // ~100MB in JS heap
122
+ issues.push({
123
+ type: 'HIGH_MEMORY_USAGE',
124
+ severity: 'medium',
125
+ message: `Memory usage reached ${metrics.memoryUsage} bytes in JS heap.`,
126
+ recommendation: 'Investigate potential memory leaks, unbounded data structures, or large on-page assets.'
127
+ });
128
+ }
129
+ // Check Largest Contentful Paint
130
+ if ((metrics.lcp ?? 0) > 4000) {
131
+ issues.push({
132
+ type: 'PERFORMANCE_LCP',
133
+ severity: 'medium',
134
+ message: `Largest Contentful Paint is ${metrics.lcp}ms (over 4s).`,
135
+ recommendation: 'Consider optimizing images, breaking up large bundle files, or deferring non-critical scripts.'
136
+ });
137
+ }
138
+ return issues;
139
+ }
140
+ //# sourceMappingURL=advanced-analyzer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advanced-analyzer.js","sourceRoot":"","sources":["../src/advanced-analyzer.ts"],"names":[],"mappings":";;AAqBA,gDAgBC;AApBD;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,QAAyB;IAC1D,MAAM,MAAM,GAAoB,EAAE,CAAA;IAElC,4DAA4D;IAC5D,MAAM,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAA;IAErC,+DAA+D;IAC/D,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAA;IAExC,+DAA+D;IAC/D,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;QACrB,MAAM,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAA;IACtD,CAAC;IAED,yBAAyB;IACzB,OAAO,EAAE,MAAM,EAAE,CAAA;AACnB,CAAC;AAED,SAAS,WAAW,CAAC,QAAyB;IAC5C,MAAM,MAAM,GAAoB,EAAE,CAAA;IAClC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAA;IAEhC,6CAA6C;IAC7C,MAAM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,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,kBAAkB,CAAC,OAA6C;IACvE,MAAM,MAAM,GAAoB,EAAE,CAAA;IAElC,2BAA2B;IAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,yBAAyB,OAAO,CAAC,IAAI,oBAAoB;YAClE,cAAc,EACZ,gGAAgG;SACnG,CAAC,CAAA;IACJ,CAAC;IAED,qBAAqB;IACrB,IAAI,OAAO,CAAC,WAAW,GAAG,WAAW,EAAE,CAAC,CAAC,oBAAoB;QAC3D,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,wBAAwB,OAAO,CAAC,WAAW,oBAAoB;YACxE,cAAc,EACZ,yFAAyF;SAC5F,CAAC,CAAA;IACJ,CAAC;IAED,iCAAiC;IACjC,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,+BAA+B,OAAO,CAAC,GAAG,eAAe;YAClE,cAAc,EACZ,gGAAgG;SACnG,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -250,13 +250,13 @@ export declare const BrowserResponseChunkSchema: z.ZodObject<{
250
250
  index: z.ZodNumber;
251
251
  data: z.ZodString;
252
252
  }, "strip", z.ZodTypeAny, {
253
- id: string;
254
253
  data: string;
254
+ id: string;
255
255
  total: number;
256
256
  index: number;
257
257
  }, {
258
- id: string;
259
258
  data: string;
259
+ id: string;
260
260
  total: number;
261
261
  index: number;
262
262
  }>;
@@ -267,27 +267,27 @@ export declare const ImageContentSchema: z.ZodObject<{
267
267
  media_type: z.ZodLiteral<"image/jpeg">;
268
268
  data: z.ZodString;
269
269
  }, "strip", z.ZodTypeAny, {
270
+ data: string;
270
271
  type: "base64";
271
272
  media_type: "image/jpeg";
272
- data: string;
273
273
  }, {
274
+ data: string;
274
275
  type: "base64";
275
276
  media_type: "image/jpeg";
276
- data: string;
277
277
  }>;
278
278
  }, "strip", z.ZodTypeAny, {
279
279
  type: "image";
280
280
  source: {
281
+ data: string;
281
282
  type: "base64";
282
283
  media_type: "image/jpeg";
283
- data: string;
284
284
  };
285
285
  }, {
286
286
  type: "image";
287
287
  source: {
288
+ data: string;
288
289
  type: "base64";
289
290
  media_type: "image/jpeg";
290
- data: string;
291
291
  };
292
292
  }>;
293
293
  export type ImageContent = z.infer<typeof ImageContentSchema>;
@@ -393,27 +393,27 @@ export declare const BrowserResponseSchema: z.ZodObject<{
393
393
  media_type: z.ZodLiteral<"image/jpeg">;
394
394
  data: z.ZodString;
395
395
  }, "strip", z.ZodTypeAny, {
396
+ data: string;
396
397
  type: "base64";
397
398
  media_type: "image/jpeg";
398
- data: string;
399
399
  }, {
400
+ data: string;
400
401
  type: "base64";
401
402
  media_type: "image/jpeg";
402
- data: string;
403
403
  }>;
404
404
  }, "strip", z.ZodTypeAny, {
405
405
  type: "image";
406
406
  source: {
407
+ data: string;
407
408
  type: "base64";
408
409
  media_type: "image/jpeg";
409
- data: string;
410
410
  };
411
411
  }, {
412
412
  type: "image";
413
413
  source: {
414
+ data: string;
414
415
  type: "base64";
415
416
  media_type: "image/jpeg";
416
- data: string;
417
417
  };
418
418
  }>>;
419
419
  post: z.ZodObject<{
@@ -423,61 +423,61 @@ export declare const BrowserResponseSchema: z.ZodObject<{
423
423
  media_type: z.ZodLiteral<"image/jpeg">;
424
424
  data: z.ZodString;
425
425
  }, "strip", z.ZodTypeAny, {
426
+ data: string;
426
427
  type: "base64";
427
428
  media_type: "image/jpeg";
428
- data: string;
429
429
  }, {
430
+ data: string;
430
431
  type: "base64";
431
432
  media_type: "image/jpeg";
432
- data: string;
433
433
  }>;
434
434
  }, "strip", z.ZodTypeAny, {
435
435
  type: "image";
436
436
  source: {
437
+ data: string;
437
438
  type: "base64";
438
439
  media_type: "image/jpeg";
439
- data: string;
440
440
  };
441
441
  }, {
442
442
  type: "image";
443
443
  source: {
444
+ data: string;
444
445
  type: "base64";
445
446
  media_type: "image/jpeg";
446
- data: string;
447
447
  };
448
448
  }>;
449
449
  }, "strip", z.ZodTypeAny, {
450
450
  post: {
451
451
  type: "image";
452
452
  source: {
453
+ data: string;
453
454
  type: "base64";
454
455
  media_type: "image/jpeg";
455
- data: string;
456
456
  };
457
457
  };
458
458
  pre?: {
459
459
  type: "image";
460
460
  source: {
461
+ data: string;
461
462
  type: "base64";
462
463
  media_type: "image/jpeg";
463
- data: string;
464
464
  };
465
465
  } | undefined;
466
466
  }, {
467
467
  post: {
468
468
  type: "image";
469
469
  source: {
470
+ data: string;
470
471
  type: "base64";
471
472
  media_type: "image/jpeg";
472
- data: string;
473
473
  };
474
474
  };
475
475
  pre?: {
476
476
  type: "image";
477
477
  source: {
478
+ data: string;
478
479
  type: "base64";
479
480
  media_type: "image/jpeg";
480
- data: string;
481
481
  };
482
482
  } | undefined;
483
483
  }>>;
@@ -521,17 +521,17 @@ export declare const BrowserResponseSchema: z.ZodObject<{
521
521
  post: {
522
522
  type: "image";
523
523
  source: {
524
+ data: string;
524
525
  type: "base64";
525
526
  media_type: "image/jpeg";
526
- data: string;
527
527
  };
528
528
  };
529
529
  pre?: {
530
530
  type: "image";
531
531
  source: {
532
+ data: string;
532
533
  type: "base64";
533
534
  media_type: "image/jpeg";
534
- data: string;
535
535
  };
536
536
  } | undefined;
537
537
  } | undefined;
@@ -575,17 +575,17 @@ export declare const BrowserResponseSchema: z.ZodObject<{
575
575
  post: {
576
576
  type: "image";
577
577
  source: {
578
+ data: string;
578
579
  type: "base64";
579
580
  media_type: "image/jpeg";
580
- data: string;
581
581
  };
582
582
  };
583
583
  pre?: {
584
584
  type: "image";
585
585
  source: {
586
+ data: string;
586
587
  type: "base64";
587
588
  media_type: "image/jpeg";
588
- data: string;
589
589
  };
590
590
  } | undefined;
591
591
  } | undefined;
@@ -832,12 +832,12 @@ export declare const RequiredBrowserTypeActionSchema: z.ZodObject<{
832
832
  selector: z.ZodString;
833
833
  text: z.ZodString;
834
834
  }, "strip", z.ZodTypeAny, {
835
- type: "type";
836
835
  text: string;
836
+ type: "type";
837
837
  selector: string;
838
838
  }, {
839
- type: "type";
840
839
  text: string;
840
+ type: "type";
841
841
  selector: string;
842
842
  }>;
843
843
  export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -876,8 +876,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
876
876
  }>, {
877
877
  delay: z.ZodOptional<z.ZodNumber>;
878
878
  }>, "strip", z.ZodTypeAny, {
879
- type: "type";
880
879
  text: string;
880
+ type: "type";
881
881
  selector: string;
882
882
  debug?: boolean | undefined;
883
883
  timeout?: number | undefined;
@@ -893,8 +893,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
893
893
  } | undefined;
894
894
  delay?: number | undefined;
895
895
  }, {
896
- type: "type";
897
896
  text: string;
897
+ type: "type";
898
898
  selector: string;
899
899
  debug?: boolean | undefined;
900
900
  timeout?: number | undefined;
@@ -1380,8 +1380,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1380
1380
  }>, {
1381
1381
  delay: z.ZodOptional<z.ZodNumber>;
1382
1382
  }>, "strip", z.ZodTypeAny, {
1383
- type: "type";
1384
1383
  text: string;
1384
+ type: "type";
1385
1385
  selector: string;
1386
1386
  debug?: boolean | undefined;
1387
1387
  timeout?: number | undefined;
@@ -1397,8 +1397,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1397
1397
  } | undefined;
1398
1398
  delay?: number | undefined;
1399
1399
  }, {
1400
- type: "type";
1401
1400
  text: string;
1401
+ type: "type";
1402
1402
  selector: string;
1403
1403
  debug?: boolean | undefined;
1404
1404
  timeout?: number | undefined;
@@ -1665,8 +1665,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1665
1665
  visualVerify?: boolean | undefined;
1666
1666
  visualThreshold?: number | undefined;
1667
1667
  } | {
1668
- type: "type";
1669
1668
  text: string;
1669
+ type: "type";
1670
1670
  selector: string;
1671
1671
  debug?: boolean | undefined;
1672
1672
  timeout?: number | undefined;
@@ -1787,8 +1787,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1787
1787
  visualVerify?: boolean | undefined;
1788
1788
  visualThreshold?: number | undefined;
1789
1789
  } | {
1790
- type: "type";
1791
1790
  text: string;
1791
+ type: "type";
1792
1792
  selector: string;
1793
1793
  debug?: boolean | undefined;
1794
1794
  timeout?: number | undefined;
@@ -2132,8 +2132,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2132
2132
  }>, {
2133
2133
  delay: z.ZodOptional<z.ZodNumber>;
2134
2134
  }>, "strip", z.ZodTypeAny, {
2135
- type: "type";
2136
2135
  text: string;
2136
+ type: "type";
2137
2137
  selector: string;
2138
2138
  debug?: boolean | undefined;
2139
2139
  timeout?: number | undefined;
@@ -2149,8 +2149,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2149
2149
  } | undefined;
2150
2150
  delay?: number | undefined;
2151
2151
  }, {
2152
- type: "type";
2153
2152
  text: string;
2153
+ type: "type";
2154
2154
  selector: string;
2155
2155
  debug?: boolean | undefined;
2156
2156
  timeout?: number | undefined;
@@ -2417,8 +2417,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2417
2417
  visualVerify?: boolean | undefined;
2418
2418
  visualThreshold?: number | undefined;
2419
2419
  } | {
2420
- type: "type";
2421
2420
  text: string;
2421
+ type: "type";
2422
2422
  selector: string;
2423
2423
  debug?: boolean | undefined;
2424
2424
  timeout?: number | undefined;
@@ -2539,8 +2539,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2539
2539
  visualVerify?: boolean | undefined;
2540
2540
  visualThreshold?: number | undefined;
2541
2541
  } | {
2542
- type: "type";
2543
2542
  text: string;
2543
+ type: "type";
2544
2544
  selector: string;
2545
2545
  debug?: boolean | undefined;
2546
2546
  timeout?: number | undefined;
@@ -2667,8 +2667,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2667
2667
  visualVerify?: boolean | undefined;
2668
2668
  visualThreshold?: number | undefined;
2669
2669
  } | {
2670
- type: "type";
2671
2670
  text: string;
2671
+ type: "type";
2672
2672
  selector: string;
2673
2673
  debug?: boolean | undefined;
2674
2674
  timeout?: number | undefined;
@@ -2807,8 +2807,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2807
2807
  visualVerify?: boolean | undefined;
2808
2808
  visualThreshold?: number | undefined;
2809
2809
  } | {
2810
- type: "type";
2811
2810
  text: string;
2811
+ type: "type";
2812
2812
  selector: string;
2813
2813
  debug?: boolean | undefined;
2814
2814
  timeout?: number | undefined;
@@ -3136,8 +3136,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3136
3136
  }>, {
3137
3137
  delay: z.ZodOptional<z.ZodNumber>;
3138
3138
  }>, "strip", z.ZodTypeAny, {
3139
- type: "type";
3140
3139
  text: string;
3140
+ type: "type";
3141
3141
  selector: string;
3142
3142
  debug?: boolean | undefined;
3143
3143
  timeout?: number | undefined;
@@ -3153,8 +3153,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3153
3153
  } | undefined;
3154
3154
  delay?: number | undefined;
3155
3155
  }, {
3156
- type: "type";
3157
3156
  text: string;
3157
+ type: "type";
3158
3158
  selector: string;
3159
3159
  debug?: boolean | undefined;
3160
3160
  timeout?: number | undefined;
@@ -3638,8 +3638,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3638
3638
  }>, {
3639
3639
  delay: z.ZodOptional<z.ZodNumber>;
3640
3640
  }>, "strip", z.ZodTypeAny, {
3641
- type: "type";
3642
3641
  text: string;
3642
+ type: "type";
3643
3643
  selector: string;
3644
3644
  debug?: boolean | undefined;
3645
3645
  timeout?: number | undefined;
@@ -3655,8 +3655,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3655
3655
  } | undefined;
3656
3656
  delay?: number | undefined;
3657
3657
  }, {
3658
- type: "type";
3659
3658
  text: string;
3659
+ type: "type";
3660
3660
  selector: string;
3661
3661
  debug?: boolean | undefined;
3662
3662
  timeout?: number | undefined;
@@ -3923,8 +3923,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3923
3923
  visualVerify?: boolean | undefined;
3924
3924
  visualThreshold?: number | undefined;
3925
3925
  } | {
3926
- type: "type";
3927
3926
  text: string;
3927
+ type: "type";
3928
3928
  selector: string;
3929
3929
  debug?: boolean | undefined;
3930
3930
  timeout?: number | undefined;
@@ -4045,8 +4045,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
4045
4045
  visualVerify?: boolean | undefined;
4046
4046
  visualThreshold?: number | undefined;
4047
4047
  } | {
4048
- type: "type";
4049
4048
  text: string;
4049
+ type: "type";
4050
4050
  selector: string;
4051
4051
  debug?: boolean | undefined;
4052
4052
  timeout?: number | undefined;
@@ -4173,8 +4173,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
4173
4173
  visualVerify?: boolean | undefined;
4174
4174
  visualThreshold?: number | undefined;
4175
4175
  } | {
4176
- type: "type";
4177
4176
  text: string;
4177
+ type: "type";
4178
4178
  selector: string;
4179
4179
  debug?: boolean | undefined;
4180
4180
  timeout?: number | undefined;
@@ -4313,8 +4313,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
4313
4313
  visualVerify?: boolean | undefined;
4314
4314
  visualThreshold?: number | undefined;
4315
4315
  } | {
4316
- type: "type";
4317
4316
  text: string;
4317
+ type: "type";
4318
4318
  selector: string;
4319
4319
  debug?: boolean | undefined;
4320
4320
  timeout?: number | undefined;
@@ -29,9 +29,9 @@ export declare const PLAN_CONFIGS: Record<UsageLimits, PlanConfig>;
29
29
  export declare const CREDITS_USAGE_LIMITS: Record<UsageLimits, number>;
30
30
  export declare const costModes: readonly ["lite", "normal", "max"];
31
31
  export type CostMode = (typeof costModes)[number];
32
- export declare const getModelForMode: (costMode: CostMode, operation: "agent" | "file-requests" | "check-new-files") => "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022" | "gpt-4o-2024-08-06" | "gpt-4o-mini-2024-07-18";
32
+ export declare const getModelForMode: (costMode: CostMode, operation: "agent" | "file-requests" | "check-new-files") => "claude-3-5-sonnet-20241022" | "claude-3-5-haiku-20241022" | "gpt-4o-2024-08-06" | "gpt-4o-mini-2024-07-18";
33
33
  export declare const claudeModels: {
34
- readonly sonnet: "claude-3-7-sonnet-20250219";
34
+ readonly sonnet: "claude-3-5-sonnet-20241022";
35
35
  readonly haiku: "claude-3-5-haiku-20241022";
36
36
  };
37
37
  export type AnthropicModel = (typeof claudeModels)[keyof typeof claudeModels];
@@ -59,7 +59,7 @@ export declare const models: {
59
59
  readonly gpt4omini: "gpt-4o-mini-2024-07-18";
60
60
  readonly o3mini: "o3-mini-2025-01-31";
61
61
  readonly generatePatch: "ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk";
62
- readonly sonnet: "claude-3-7-sonnet-20250219";
62
+ readonly sonnet: "claude-3-5-sonnet-20241022";
63
63
  readonly haiku: "claude-3-5-haiku-20241022";
64
64
  };
65
65
  export type Model = (typeof models)[keyof typeof models];
@@ -76,12 +76,10 @@ exports.BILLING_PERIOD_DAYS = 30;
76
76
  exports.OVERAGE_RATE_PRO = 0.99;
77
77
  exports.OVERAGE_RATE_MOAR_PRO = 0.9;
78
78
  exports.CREDITS_REFERRAL_BONUS = 500;
79
- // Helper to convert from UsageLimits to display names
80
79
  const getPlanDisplayName = (limit) => {
81
80
  return exports.PLAN_CONFIGS[limit].displayName;
82
81
  };
83
82
  exports.getPlanDisplayName = getPlanDisplayName;
84
- // Helper to convert from display name to UsageLimits
85
83
  const getUsageLimitFromPlanName = (planName) => {
86
84
  const entry = Object.entries(exports.PLAN_CONFIGS).find(([_, config]) => config.planName === planName);
87
85
  if (!entry) {
@@ -96,7 +94,6 @@ exports.UsageLimits = {
96
94
  PRO: 'PRO',
97
95
  MOAR_PRO: 'MOAR_PRO',
98
96
  };
99
- // Define base configs with production values
100
97
  exports.PLAN_CONFIGS = {
101
98
  ANON: {
102
99
  limit: 250,
@@ -127,16 +124,13 @@ exports.PLAN_CONFIGS = {
127
124
  overageRate: exports.OVERAGE_RATE_MOAR_PRO,
128
125
  },
129
126
  };
130
- // Increase limits by 1000 in local environment to make testing easier
131
127
  if (process.env.NEXT_PUBLIC_ENVIRONMENT === 'local') {
132
128
  Object.values(exports.PLAN_CONFIGS).forEach((config) => {
133
129
  config.limit *= 1000;
134
130
  });
135
131
  }
136
- // Helper to get credits limit from a plan config
137
132
  exports.CREDITS_USAGE_LIMITS = Object.fromEntries(Object.entries(exports.PLAN_CONFIGS).map(([key, config]) => [key, config.limit]));
138
133
  exports.costModes = ['lite', 'normal', 'max'];
139
- // NOTE: This function not kept up to date.
140
134
  const getModelForMode = (costMode, operation) => {
141
135
  if (operation === 'agent') {
142
136
  return costMode === 'lite' ? exports.claudeModels.haiku : exports.claudeModels.sonnet;
@@ -151,8 +145,7 @@ const getModelForMode = (costMode, operation) => {
151
145
  };
152
146
  exports.getModelForMode = getModelForMode;
153
147
  exports.claudeModels = {
154
- sonnet: 'claude-3-7-sonnet-20250219',
155
- // sonnet: 'claude-3-5-sonnet-20241022',
148
+ sonnet: 'claude-3-5-sonnet-20241022',
156
149
  haiku: 'claude-3-5-haiku-20241022',
157
150
  };
158
151
  exports.openaiModels = {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,SAAS;IACT,cAAc;IACd,MAAM;IACN,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,aAAa;IACb,OAAO;IACP,WAAW;IACX,eAAe;IACf,aAAa;IACb,aAAa;IACb,OAAO;IACP,mBAAmB;IACnB,WAAW;CACZ,CAAA;AAEY,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;IACN,IAAI;IACJ,OAAO;IACP,SAAS;IACT,OAAO;IACP,IAAI;CACL,CAAA;AAEY,QAAA,6BAA6B,GAAG,CAAC,CAAA;AACjC,QAAA,QAAQ,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAA;AACnC,QAAA,mBAAmB,GAAG,EAAE,CAAA;AACxB,QAAA,gBAAgB,GAAG,IAAI,CAAA;AACvB,QAAA,qBAAqB,GAAG,GAAG,CAAA;AAC3B,QAAA,sBAAsB,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