test-lah 1.0.3 → 1.0.5

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 (71) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +20 -20
  3. package/.next/standalone/.next/app-path-routes-manifest.json +3 -3
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/prerender-manifest.json +23 -23
  6. package/.next/standalone/.next/server/app/(dashboard)/integrations/page.js +1 -1
  7. package/.next/standalone/.next/server/app/(dashboard)/integrations/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/.next/server/app/(dashboard)/projects/[projectId]/page.js +5 -5
  9. package/.next/standalone/.next/server/app/(dashboard)/projects/[projectId]/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/(dashboard)/projects/[projectId]/summary/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
  13. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  15. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  16. package/.next/standalone/.next/server/app/api/e2e/route.js +8 -4
  17. package/.next/standalone/.next/server/app/api/e2e/route_client-reference-manifest.js +1 -1
  18. package/.next/standalone/.next/server/app/api/generate/route.js +6 -2
  19. package/.next/standalone/.next/server/app/api/generate/route_client-reference-manifest.js +1 -1
  20. package/.next/standalone/.next/server/app/api/llm/encrypt/route_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/api/llm/test/route.js +7 -3
  22. package/.next/standalone/.next/server/app/api/llm/test/route_client-reference-manifest.js +1 -1
  23. package/.next/standalone/.next/server/app/api/weather/route_client-reference-manifest.js +1 -1
  24. package/.next/standalone/.next/server/app/index.html +1 -1
  25. package/.next/standalone/.next/server/app/index.rsc +1 -1
  26. package/.next/standalone/.next/server/app/integrations.html +1 -1
  27. package/.next/standalone/.next/server/app/integrations.rsc +2 -2
  28. package/.next/standalone/.next/server/app/login/page.js +1 -1
  29. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  30. package/.next/standalone/.next/server/app/login.html +1 -1
  31. package/.next/standalone/.next/server/app/login.rsc +1 -1
  32. package/.next/standalone/.next/server/app/page.js +1 -1
  33. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  34. package/.next/standalone/.next/server/app/projects.html +1 -1
  35. package/.next/standalone/.next/server/app/projects.rsc +1 -1
  36. package/.next/standalone/.next/server/app-paths-manifest.json +3 -3
  37. package/.next/standalone/.next/server/chunks/615.js +1 -1
  38. package/.next/standalone/.next/server/chunks/736.js +2 -2
  39. package/.next/standalone/.next/server/chunks/845.js +5 -5
  40. package/.next/standalone/.next/server/pages/404.html +1 -1
  41. package/.next/standalone/.next/server/pages/500.html +1 -1
  42. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  44. package/.next/standalone/.next/static/chunks/app/(dashboard)/integrations/page-f5e71fcfbeffdfb1.js +1 -0
  45. package/.next/{static/chunks/app/(dashboard)/projects/[projectId]/page-73afaf41f4596daf.js → standalone/.next/static/chunks/app/(dashboard)/projects/[projectId]/page-54a0bcaf9f4781a6.js} +1 -1
  46. package/.next/standalone/node_modules/buffer-from/index.js +72 -0
  47. package/.next/standalone/node_modules/buffer-from/package.json +19 -0
  48. package/.next/standalone/node_modules/source-map/lib/array-set.js +121 -0
  49. package/.next/standalone/node_modules/source-map/lib/base64-vlq.js +140 -0
  50. package/.next/standalone/node_modules/source-map/lib/base64.js +67 -0
  51. package/.next/standalone/node_modules/source-map/lib/binary-search.js +111 -0
  52. package/.next/standalone/node_modules/source-map/lib/mapping-list.js +79 -0
  53. package/.next/standalone/node_modules/source-map/lib/quick-sort.js +114 -0
  54. package/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  55. package/.next/standalone/node_modules/source-map/lib/source-map-generator.js +425 -0
  56. package/.next/standalone/node_modules/source-map/lib/source-node.js +413 -0
  57. package/.next/standalone/node_modules/source-map/lib/util.js +488 -0
  58. package/.next/standalone/node_modules/source-map/package.json +73 -0
  59. package/.next/standalone/node_modules/source-map/source-map.js +8 -0
  60. package/.next/standalone/node_modules/source-map-support/package.json +31 -0
  61. package/.next/standalone/node_modules/source-map-support/source-map-support.js +625 -0
  62. package/.next/standalone/package.json +1 -1
  63. package/.next/static/chunks/app/(dashboard)/integrations/page-f5e71fcfbeffdfb1.js +1 -0
  64. package/.next/{standalone/.next/static/chunks/app/(dashboard)/projects/[projectId]/page-73afaf41f4596daf.js → static/chunks/app/(dashboard)/projects/[projectId]/page-54a0bcaf9f4781a6.js} +1 -1
  65. package/package.json +1 -1
  66. package/.next/standalone/.next/static/chunks/app/(dashboard)/integrations/page-80ace08b47978071.js +0 -1
  67. package/.next/static/chunks/app/(dashboard)/integrations/page-80ace08b47978071.js +0 -1
  68. /package/.next/standalone/.next/static/{_FgGlDafA-JmrzQ8CNNcc → KciO6b7pbSb5S7vZYVyl2}/_buildManifest.js +0 -0
  69. /package/.next/standalone/.next/static/{_FgGlDafA-JmrzQ8CNNcc → KciO6b7pbSb5S7vZYVyl2}/_ssgManifest.js +0 -0
  70. /package/.next/static/{_FgGlDafA-JmrzQ8CNNcc → KciO6b7pbSb5S7vZYVyl2}/_buildManifest.js +0 -0
  71. /package/.next/static/{_FgGlDafA-JmrzQ8CNNcc → KciO6b7pbSb5S7vZYVyl2}/_ssgManifest.js +0 -0
@@ -0,0 +1,114 @@
1
+ /* -*- Mode: js; js-indent-level: 2; -*- */
2
+ /*
3
+ * Copyright 2011 Mozilla Foundation and contributors
4
+ * Licensed under the New BSD license. See LICENSE or:
5
+ * http://opensource.org/licenses/BSD-3-Clause
6
+ */
7
+
8
+ // It turns out that some (most?) JavaScript engines don't self-host
9
+ // `Array.prototype.sort`. This makes sense because C++ will likely remain
10
+ // faster than JS when doing raw CPU-intensive sorting. However, when using a
11
+ // custom comparator function, calling back and forth between the VM's C++ and
12
+ // JIT'd JS is rather slow *and* loses JIT type information, resulting in
13
+ // worse generated code for the comparator function than would be optimal. In
14
+ // fact, when sorting with a comparator, these costs outweigh the benefits of
15
+ // sorting in C++. By using our own JS-implemented Quick Sort (below), we get
16
+ // a ~3500ms mean speed-up in `bench/bench.html`.
17
+
18
+ /**
19
+ * Swap the elements indexed by `x` and `y` in the array `ary`.
20
+ *
21
+ * @param {Array} ary
22
+ * The array.
23
+ * @param {Number} x
24
+ * The index of the first item.
25
+ * @param {Number} y
26
+ * The index of the second item.
27
+ */
28
+ function swap(ary, x, y) {
29
+ var temp = ary[x];
30
+ ary[x] = ary[y];
31
+ ary[y] = temp;
32
+ }
33
+
34
+ /**
35
+ * Returns a random integer within the range `low .. high` inclusive.
36
+ *
37
+ * @param {Number} low
38
+ * The lower bound on the range.
39
+ * @param {Number} high
40
+ * The upper bound on the range.
41
+ */
42
+ function randomIntInRange(low, high) {
43
+ return Math.round(low + (Math.random() * (high - low)));
44
+ }
45
+
46
+ /**
47
+ * The Quick Sort algorithm.
48
+ *
49
+ * @param {Array} ary
50
+ * An array to sort.
51
+ * @param {function} comparator
52
+ * Function to use to compare two items.
53
+ * @param {Number} p
54
+ * Start index of the array
55
+ * @param {Number} r
56
+ * End index of the array
57
+ */
58
+ function doQuickSort(ary, comparator, p, r) {
59
+ // If our lower bound is less than our upper bound, we (1) partition the
60
+ // array into two pieces and (2) recurse on each half. If it is not, this is
61
+ // the empty array and our base case.
62
+
63
+ if (p < r) {
64
+ // (1) Partitioning.
65
+ //
66
+ // The partitioning chooses a pivot between `p` and `r` and moves all
67
+ // elements that are less than or equal to the pivot to the before it, and
68
+ // all the elements that are greater than it after it. The effect is that
69
+ // once partition is done, the pivot is in the exact place it will be when
70
+ // the array is put in sorted order, and it will not need to be moved
71
+ // again. This runs in O(n) time.
72
+
73
+ // Always choose a random pivot so that an input array which is reverse
74
+ // sorted does not cause O(n^2) running time.
75
+ var pivotIndex = randomIntInRange(p, r);
76
+ var i = p - 1;
77
+
78
+ swap(ary, pivotIndex, r);
79
+ var pivot = ary[r];
80
+
81
+ // Immediately after `j` is incremented in this loop, the following hold
82
+ // true:
83
+ //
84
+ // * Every element in `ary[p .. i]` is less than or equal to the pivot.
85
+ //
86
+ // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
87
+ for (var j = p; j < r; j++) {
88
+ if (comparator(ary[j], pivot) <= 0) {
89
+ i += 1;
90
+ swap(ary, i, j);
91
+ }
92
+ }
93
+
94
+ swap(ary, i + 1, j);
95
+ var q = i + 1;
96
+
97
+ // (2) Recurse on each half.
98
+
99
+ doQuickSort(ary, comparator, p, q - 1);
100
+ doQuickSort(ary, comparator, q + 1, r);
101
+ }
102
+ }
103
+
104
+ /**
105
+ * Sort the given array in-place with the given comparator function.
106
+ *
107
+ * @param {Array} ary
108
+ * An array to sort.
109
+ * @param {function} comparator
110
+ * Function to use to compare two items.
111
+ */
112
+ exports.quickSort = function (ary, comparator) {
113
+ doQuickSort(ary, comparator, 0, ary.length - 1);
114
+ };