ccgauge 0.4.0 → 1.0.0
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.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +42 -42
- package/.next/standalone/.next/app-path-routes-manifest.json +7 -7
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/blocks/route.js +1 -1
- package/.next/standalone/.next/server/app/api/blocks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/export/usage/route.js +1 -1
- package/.next/standalone/.next/server/app/api/export/usage/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/export/usage/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/pricing/route.js +1 -1
- package/.next/standalone/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/scan/route.js +1 -1
- package/.next/standalone/.next/server/app/api/scan/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/usage/route.js +1 -1
- package/.next/standalone/.next/server/app/api/usage/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/models/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/page.js +2 -2
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page.js +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/sessions/page.js +1 -1
- package/.next/standalone/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page.js +2 -2
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/usage/page.js +2 -2
- package/.next/standalone/.next/server/app/usage/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +7 -7
- package/.next/standalone/.next/server/chunks/426.js +9 -4
- package/.next/standalone/.next/server/chunks/716.js +1 -1
- package/.next/standalone/.next/server/chunks/775.js +1 -1
- package/.next/standalone/.next/server/functions-config-manifest.json +3 -3
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/static/chunks/148-557ee562aff993b1.js +1 -0
- package/.next/standalone/.next/static/chunks/app/{error-89ee9e078058915d.js → error-3e48784f89c5ae8d.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/layout-6c973d790f015707.js +1 -0
- package/.next/standalone/.next/static/chunks/app/models/page-dff43b9050382020.js +1 -0
- package/.next/standalone/.next/static/chunks/app/page-6d87d7a8aa752100.js +1 -0
- package/.next/standalone/.next/static/chunks/app/projects/[id]/page-3f812f0e20137f2b.js +1 -0
- package/.next/standalone/.next/static/chunks/app/sessions/[id]/page-3f812f0e20137f2b.js +1 -0
- package/.next/standalone/.next/static/chunks/app/settings/{page-334168b522eac1b1.js → page-d1af886a5c22af9b.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/usage/page-26297e0641d51da8.js +1 -0
- package/.next/standalone/.next/static/css/b07523b7c353538d.css +3 -0
- package/.next/standalone/node_modules/next/node_modules/postcss/package.json +0 -0
- package/.next/standalone/package.json +15 -4
- package/CHANGELOG.md +147 -0
- package/README.md +41 -2
- package/README.zh-CN.md +39 -2
- package/bin/cli.mjs +83 -3
- package/dist/mcp/server.mjs +71 -29
- package/dist/report/index.mjs +2098 -0
- package/package.json +26 -17
- package/.next/standalone/.next/static/chunks/454-d0e7d0fa6f643c41.js +0 -1
- package/.next/standalone/.next/static/chunks/app/layout-a6e30ba3a7f39737.js +0 -1
- package/.next/standalone/.next/static/chunks/app/models/page-e0e1b5979547421a.js +0 -1
- package/.next/standalone/.next/static/chunks/app/page-9347dfa20dabb24b.js +0 -1
- package/.next/standalone/.next/static/chunks/app/projects/[id]/page-5804875e3dc384df.js +0 -1
- package/.next/standalone/.next/static/chunks/app/sessions/[id]/page-5804875e3dc384df.js +0 -1
- package/.next/standalone/.next/static/chunks/app/usage/page-7789fec27778df9a.js +0 -1
- package/.next/standalone/.next/static/css/c34cd36ce5fc39e2.css +0 -3
- /package/.next/standalone/.next/static/{w_l54xHgbhALYXmZcmUxC → ZPycmg0NLiIflO5NXMT75}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{w_l54xHgbhALYXmZcmUxC → ZPycmg0NLiIflO5NXMT75}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ZPycmg0NLiIflO5NXMT75
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
13
13
|
"static/chunks/255-249e483089def0f6.js",
|
|
14
14
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
15
|
-
"static/css/
|
|
15
|
+
"static/css/b07523b7c353538d.css",
|
|
16
16
|
"static/chunks/760-24bf5ac5820b9230.js",
|
|
17
17
|
"static/chunks/619-f072ac750404f9da.js",
|
|
18
|
-
"static/chunks/
|
|
19
|
-
"static/chunks/app/layout-
|
|
18
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
19
|
+
"static/chunks/app/layout-6c973d790f015707.js"
|
|
20
20
|
],
|
|
21
21
|
"/error": [
|
|
22
22
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
23
23
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
24
24
|
"static/chunks/255-249e483089def0f6.js",
|
|
25
25
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
26
|
-
"static/chunks/
|
|
27
|
-
"static/chunks/app/error-
|
|
26
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
27
|
+
"static/chunks/app/error-3e48784f89c5ae8d.js"
|
|
28
28
|
],
|
|
29
29
|
"/loading": [
|
|
30
30
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
@@ -33,54 +33,54 @@
|
|
|
33
33
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
34
34
|
"static/chunks/app/loading-33a382d58df5da76.js"
|
|
35
35
|
],
|
|
36
|
-
"/api/
|
|
36
|
+
"/api/pricing/route": [
|
|
37
37
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
38
38
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
39
39
|
"static/chunks/255-249e483089def0f6.js",
|
|
40
40
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
41
|
-
"static/chunks/app/api/
|
|
41
|
+
"static/chunks/app/api/pricing/route-33a382d58df5da76.js"
|
|
42
42
|
],
|
|
43
|
-
"/api/
|
|
43
|
+
"/api/scan/route": [
|
|
44
44
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
45
45
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
46
46
|
"static/chunks/255-249e483089def0f6.js",
|
|
47
47
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
48
|
-
"static/chunks/app/api/
|
|
48
|
+
"static/chunks/app/api/scan/route-33a382d58df5da76.js"
|
|
49
49
|
],
|
|
50
|
-
"/api/
|
|
50
|
+
"/api/blocks/route": [
|
|
51
51
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
52
52
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
53
53
|
"static/chunks/255-249e483089def0f6.js",
|
|
54
54
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
55
|
-
"static/chunks/app/api/
|
|
55
|
+
"static/chunks/app/api/blocks/route-33a382d58df5da76.js"
|
|
56
56
|
],
|
|
57
|
-
"/api/
|
|
57
|
+
"/api/export/usage/route": [
|
|
58
58
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
59
59
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
60
60
|
"static/chunks/255-249e483089def0f6.js",
|
|
61
61
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
62
|
-
"static/chunks/app/api/
|
|
62
|
+
"static/chunks/app/api/export/usage/route-33a382d58df5da76.js"
|
|
63
63
|
],
|
|
64
|
-
"/api/
|
|
64
|
+
"/api/projects/route": [
|
|
65
65
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
66
66
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
67
67
|
"static/chunks/255-249e483089def0f6.js",
|
|
68
68
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
69
|
-
"static/chunks/app/api/
|
|
69
|
+
"static/chunks/app/api/projects/route-33a382d58df5da76.js"
|
|
70
70
|
],
|
|
71
|
-
"/api/
|
|
71
|
+
"/api/sessions/route": [
|
|
72
72
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
73
73
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
74
74
|
"static/chunks/255-249e483089def0f6.js",
|
|
75
75
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
76
|
-
"static/chunks/app/api/
|
|
76
|
+
"static/chunks/app/api/sessions/route-33a382d58df5da76.js"
|
|
77
77
|
],
|
|
78
|
-
"/api/
|
|
78
|
+
"/api/usage/route": [
|
|
79
79
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
80
80
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
81
81
|
"static/chunks/255-249e483089def0f6.js",
|
|
82
82
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
83
|
-
"static/chunks/app/api/
|
|
83
|
+
"static/chunks/app/api/usage/route-33a382d58df5da76.js"
|
|
84
84
|
],
|
|
85
85
|
"/projects/[id]/page": [
|
|
86
86
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"static/chunks/760-24bf5ac5820b9230.js",
|
|
91
91
|
"static/chunks/930-3035d0b294080d0b.js",
|
|
92
92
|
"static/chunks/619-f072ac750404f9da.js",
|
|
93
|
-
"static/chunks/
|
|
94
|
-
"static/chunks/app/projects/[id]/page-
|
|
93
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
94
|
+
"static/chunks/app/projects/[id]/page-3f812f0e20137f2b.js"
|
|
95
95
|
],
|
|
96
96
|
"/sessions/page": [
|
|
97
97
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
@@ -101,63 +101,63 @@
|
|
|
101
101
|
"static/chunks/619-f072ac750404f9da.js",
|
|
102
102
|
"static/chunks/app/sessions/page-32204fdab7bf3e79.js"
|
|
103
103
|
],
|
|
104
|
-
"/
|
|
104
|
+
"/sessions/[id]/page": [
|
|
105
105
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
106
106
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
107
107
|
"static/chunks/255-249e483089def0f6.js",
|
|
108
108
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
109
109
|
"static/chunks/760-24bf5ac5820b9230.js",
|
|
110
110
|
"static/chunks/930-3035d0b294080d0b.js",
|
|
111
|
-
"static/chunks/
|
|
112
|
-
"static/chunks/
|
|
111
|
+
"static/chunks/619-f072ac750404f9da.js",
|
|
112
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
113
|
+
"static/chunks/app/sessions/[id]/page-3f812f0e20137f2b.js"
|
|
113
114
|
],
|
|
114
|
-
"/
|
|
115
|
+
"/usage/page": [
|
|
115
116
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
116
117
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
117
118
|
"static/chunks/255-249e483089def0f6.js",
|
|
118
119
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
119
|
-
"static/chunks/
|
|
120
|
-
"static/chunks/
|
|
120
|
+
"static/chunks/760-24bf5ac5820b9230.js",
|
|
121
|
+
"static/chunks/930-3035d0b294080d0b.js",
|
|
122
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
123
|
+
"static/chunks/app/usage/page-26297e0641d51da8.js"
|
|
121
124
|
],
|
|
122
|
-
"/
|
|
125
|
+
"/projects/page": [
|
|
123
126
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
124
127
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
125
128
|
"static/chunks/255-249e483089def0f6.js",
|
|
126
129
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
127
|
-
"static/chunks/760-24bf5ac5820b9230.js",
|
|
128
|
-
"static/chunks/930-3035d0b294080d0b.js",
|
|
129
130
|
"static/chunks/619-f072ac750404f9da.js",
|
|
130
|
-
"static/chunks/
|
|
131
|
-
"static/chunks/app/sessions/[id]/page-5804875e3dc384df.js"
|
|
131
|
+
"static/chunks/app/projects/page-32204fdab7bf3e79.js"
|
|
132
132
|
],
|
|
133
|
-
"/page": [
|
|
133
|
+
"/models/page": [
|
|
134
134
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
135
135
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
136
136
|
"static/chunks/255-249e483089def0f6.js",
|
|
137
137
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
138
138
|
"static/chunks/760-24bf5ac5820b9230.js",
|
|
139
139
|
"static/chunks/930-3035d0b294080d0b.js",
|
|
140
|
-
"static/chunks/
|
|
141
|
-
"static/chunks/app/page-
|
|
140
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
141
|
+
"static/chunks/app/models/page-dff43b9050382020.js"
|
|
142
142
|
],
|
|
143
|
-
"/
|
|
143
|
+
"/page": [
|
|
144
144
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
145
145
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
146
146
|
"static/chunks/255-249e483089def0f6.js",
|
|
147
147
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
148
148
|
"static/chunks/760-24bf5ac5820b9230.js",
|
|
149
|
-
"static/chunks/
|
|
150
|
-
"static/chunks/
|
|
149
|
+
"static/chunks/930-3035d0b294080d0b.js",
|
|
150
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
151
|
+
"static/chunks/app/page-6d87d7a8aa752100.js"
|
|
151
152
|
],
|
|
152
|
-
"/
|
|
153
|
+
"/settings/page": [
|
|
153
154
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
154
155
|
"static/chunks/4bd1b696-409494caf8c83275.js",
|
|
155
156
|
"static/chunks/255-249e483089def0f6.js",
|
|
156
157
|
"static/chunks/main-app-414f78df832b23a6.js",
|
|
157
158
|
"static/chunks/760-24bf5ac5820b9230.js",
|
|
158
|
-
"static/chunks/
|
|
159
|
-
"static/chunks/
|
|
160
|
-
"static/chunks/app/usage/page-7789fec27778df9a.js"
|
|
159
|
+
"static/chunks/148-557ee562aff993b1.js",
|
|
160
|
+
"static/chunks/app/settings/page-d1af886a5c22af9b.js"
|
|
161
161
|
]
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"/_not-found/page": "/_not-found",
|
|
3
|
-
"/api/blocks/route": "/api/blocks",
|
|
4
3
|
"/api/pricing/route": "/api/pricing",
|
|
5
|
-
"/api/projects/route": "/api/projects",
|
|
6
4
|
"/api/scan/route": "/api/scan",
|
|
5
|
+
"/api/blocks/route": "/api/blocks",
|
|
6
|
+
"/api/export/usage/route": "/api/export/usage",
|
|
7
|
+
"/api/projects/route": "/api/projects",
|
|
7
8
|
"/api/sessions/route": "/api/sessions",
|
|
8
9
|
"/api/usage/route": "/api/usage",
|
|
9
|
-
"/api/export/usage/route": "/api/export/usage",
|
|
10
10
|
"/projects/[id]/page": "/projects/[id]",
|
|
11
11
|
"/sessions/page": "/sessions",
|
|
12
|
-
"/models/page": "/models",
|
|
13
|
-
"/projects/page": "/projects",
|
|
14
12
|
"/sessions/[id]/page": "/sessions/[id]",
|
|
13
|
+
"/usage/page": "/usage",
|
|
14
|
+
"/projects/page": "/projects",
|
|
15
|
+
"/models/page": "/models",
|
|
15
16
|
"/page": "/",
|
|
16
|
-
"/settings/page": "/settings"
|
|
17
|
-
"/usage/page": "/usage"
|
|
17
|
+
"/settings/page": "/settings"
|
|
18
18
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/ZPycmg0NLiIflO5NXMT75/_buildManifest.js",
|
|
9
|
+
"static/ZPycmg0NLiIflO5NXMT75/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [
|
|
12
12
|
"static/chunks/webpack-3fcacae817f3ffab.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"7152":{"*":{"id":"75268","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"39472","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"82140","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"60505","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"17290","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"32560","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"88253","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"95546","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"99955","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"72267","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"24919","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"28607","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"77731","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"88267","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"48507","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/globals.css":{"id":41290,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","454","static/chunks/454-d0e7d0fa6f643c41.js","177","static/chunks/app/layout-a6e30ba3a7f39737.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/nav.tsx":{"id":57581,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","454","static/chunks/454-d0e7d0fa6f643c41.js","177","static/chunks/app/layout-a6e30ba3a7f39737.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/providers.tsx":{"id":12112,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","454","static/chunks/454-d0e7d0fa6f643c41.js","177","static/chunks/app/layout-a6e30ba3a7f39737.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error.tsx":{"id":49567,"name":"*","chunks":["454","static/chunks/454-d0e7d0fa6f643c41.js","39","static/chunks/app/error-89ee9e078058915d.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/token-stack-chart.tsx":{"id":38059,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","454","static/chunks/454-d0e7d0fa6f643c41.js","974","static/chunks/app/page-9347dfa20dabb24b.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/block-progress.tsx":{"id":25763,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","454","static/chunks/454-d0e7d0fa6f643c41.js","974","static/chunks/app/page-9347dfa20dabb24b.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/model-bar-chart.tsx":{"id":8608,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","454","static/chunks/454-d0e7d0fa6f643c41.js","974","static/chunks/app/page-9347dfa20dabb24b.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/language-switcher.tsx":{"id":21264,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/pricing-table.tsx":{"id":8783,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/scan-refresh.tsx":{"id":91107,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/theme-switcher.tsx":{"id":44703,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/granularity-picker.tsx":{"id":16633,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/model-filter.tsx":{"id":8336,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/project-filter.tsx":{"id":14920,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/range-picker.tsx":{"id":7152,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/usage-table.tsx":{"id":25577,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/layout":[{"inlined":false,"path":"static/css/c34cd36ce5fc39e2.css"}],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/loading":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/page":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/_not-found/page":[]},"rscModuleMapping":{"7152":{"*":{"id":"58258","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"36666","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"60798","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"87639","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"66664","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"21966","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"49863","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"98392","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"21092","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"88622","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"89605","name":"*","chunks":[],"async":false}},"41290":{"*":{"id":"82704","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"29509","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"41697","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"65169","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"64285","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"84701","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"5248":{"*":{"id":"39422","name":"*","chunks":[],"async":false}},"7152":{"*":{"id":"75268","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"39472","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"82140","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"60505","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"17290","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"32560","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"88253","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"95546","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"99955","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"72267","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"24919","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"28607","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"77731","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"88267","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"69612":{"*":{"id":"42629","name":"*","chunks":[],"async":false}},"77549":{"*":{"id":"24961","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"48507","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/globals.css":{"id":41290,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","148","static/chunks/148-557ee562aff993b1.js","177","static/chunks/app/layout-6c973d790f015707.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/nav.tsx":{"id":57581,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","148","static/chunks/148-557ee562aff993b1.js","177","static/chunks/app/layout-6c973d790f015707.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/providers.tsx":{"id":12112,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","148","static/chunks/148-557ee562aff993b1.js","177","static/chunks/app/layout-6c973d790f015707.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error.tsx":{"id":49567,"name":"*","chunks":["148","static/chunks/148-557ee562aff993b1.js","39","static/chunks/app/error-3e48784f89c5ae8d.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/token-stack-chart.tsx":{"id":38059,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/auto-refresh.tsx":{"id":77549,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/granularity-picker.tsx":{"id":16633,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/model-filter.tsx":{"id":8336,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/overview-toggle.tsx":{"id":5248,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/project-filter.tsx":{"id":14920,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/range-picker.tsx":{"id":7152,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/usage-table.tsx":{"id":25577,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/activity-stats.tsx":{"id":69612,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/block-progress.tsx":{"id":25763,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/model-bar-chart.tsx":{"id":8608,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/language-switcher.tsx":{"id":21264,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/pricing-table.tsx":{"id":8783,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/scan-refresh.tsx":{"id":91107,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/theme-switcher.tsx":{"id":44703,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/layout":[{"inlined":false,"path":"static/css/b07523b7c353538d.css"}],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/loading":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/page":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/_not-found/page":[]},"rscModuleMapping":{"5248":{"*":{"id":"68264","name":"*","chunks":[],"async":false}},"7152":{"*":{"id":"58258","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"36666","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"60798","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"87639","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"66664","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"21966","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"49863","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"98392","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"21092","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"88622","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"89605","name":"*","chunks":[],"async":false}},"41290":{"*":{"id":"82704","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"29509","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"41697","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"65169","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"64285","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"69612":{"*":{"id":"4001","name":"*","chunks":[],"async":false}},"77549":{"*":{"id":"62035","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"84701","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=236,a.ids=[236],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1853:(a,b,c)=>{c.d(b,{ls:()=>f,y2:()=>e});var d=c(50160);function e(a,b=18e6){if(0===a.length)return[];let c=[...a].sort((a,b)=>a.timestamp.localeCompare(b.timestamp)),f=[],g=null,h=0,i=Date.now();for(let a of c){let c=new Date(a.timestamp).getTime();(!g||c-h>=b)&&(h=c,g={id:a.timestamp,startTime:a.timestamp,endTime:new Date(c+b).toISOString(),actualEndTime:a.timestamp,isActive:!1,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,models:[],requests:0},f.push(g));let e=(0,d.SI)(a);g.inputTokens+=a.usage.input_tokens,g.outputTokens+=a.usage.output_tokens,g.cacheReadTokens+=a.usage.cache_read_input_tokens,g.cacheCreationTokens+=a.usage.cache_creation_input_tokens,g.totalTokens=g.inputTokens+g.outputTokens+g.cacheReadTokens+g.cacheCreationTokens,g.cost+=e.total,g.saved+=e.saved,g.requests+=1,g.actualEndTime=a.timestamp,g.models.includes(a.model)||g.models.push(a.model)}for(let a of f){let b=new Date(a.endTime).getTime();a.isActive=i<b}return f}function f(a,b=18e6){let c=function(a,b=18e6){return e(a,b).find(a=>a.isActive)??null}(a,b);if(!c)return{block:null,windowMs:b,elapsedMs:0,remainingMs:0,progress:0,burnRatePerMin:0,costPerMin:0,projectedTotal:0,projectedCost:0};let d=Date.now(),g=new Date(c.startTime).getTime(),h=new Date(c.endTime).getTime(),i=d-g,j=Math.max(0,h-d),k=Math.min(1,i/b),l=i/6e4,m=l>0?c.totalTokens/l:0,n=l>0?c.cost/l:0,o=b/6e4;return{block:c,windowMs:b,elapsedMs:i,remainingMs:j,progress:k,burnRatePerMin:m,costPerMin:n,projectedTotal:m*o,projectedCost:n*o}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11233:(a,b,c)=>{c.d(b,{C:()=>
|
|
1
|
+
"use strict";(()=>{var a={};a.id=236,a.ids=[236],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1853:(a,b,c)=>{c.d(b,{ls:()=>f,y2:()=>e});var d=c(50160);function e(a,b=18e6){if(0===a.length)return[];let c=[...a].sort((a,b)=>a.timestamp.localeCompare(b.timestamp)),f=[],g=null,h=0,i=Date.now();for(let a of c){let c=new Date(a.timestamp).getTime();(!g||c-h>=b)&&(h=c,g={id:a.timestamp,startTime:a.timestamp,endTime:new Date(c+b).toISOString(),actualEndTime:a.timestamp,isActive:!1,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,models:[],requests:0},f.push(g));let e=(0,d.SI)(a);g.inputTokens+=a.usage.input_tokens,g.outputTokens+=a.usage.output_tokens,g.cacheReadTokens+=a.usage.cache_read_input_tokens,g.cacheCreationTokens+=a.usage.cache_creation_input_tokens,g.totalTokens=g.inputTokens+g.outputTokens+g.cacheReadTokens+g.cacheCreationTokens,g.cost+=e.total,g.saved+=e.saved,g.requests+=1,g.actualEndTime=a.timestamp,g.models.includes(a.model)||g.models.push(a.model)}for(let a of f){let b=new Date(a.endTime).getTime();a.isActive=i<b}return f}function f(a,b=18e6){let c=function(a,b=18e6){return e(a,b).find(a=>a.isActive)??null}(a,b);if(!c)return{block:null,windowMs:b,elapsedMs:0,remainingMs:0,progress:0,burnRatePerMin:0,costPerMin:0,projectedTotal:0,projectedCost:0};let d=Date.now(),g=new Date(c.startTime).getTime(),h=new Date(c.endTime).getTime(),i=d-g,j=Math.max(0,h-d),k=Math.min(1,i/b),l=i/6e4,m=l>0?c.totalTokens/l:0,n=l>0?c.cost/l:0,o=b/6e4;return{block:c,windowMs:b,elapsedMs:i,remainingMs:j,progress:k,burnRatePerMin:m,costPerMin:n,projectedTotal:m*o,projectedCost:n*o}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11233:(a,b,c)=>{c.d(b,{C:()=>h,l:()=>i});var d=c(10641),e=c(48161);let f=c.n(e)().homedir();function g(a){if(!f)return a;let b=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return a.replace(RegExp(b,"g"),"~")}function h(a){return async(b,c)=>{try{return await a(b,c)}catch(b){console.error("[ccgauge:api] handler threw",b.stack||b.message||String(b));let a={error:"internal_error",message:g(b.message||"unexpected server error")};return d.NextResponse.json(a,{status:500})}}}function i(a,b="bad_request"){let c={error:"bad_request",code:b,message:g(a)};return d.NextResponse.json(c,{status:400})}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46796:(a,b,c)=>{c.d(b,{ev:()=>f,rY:()=>g});var d=c(86802),e=c(60704);async function f(a){if(a&&(0,e.rl)(a))return a;let b=await (0,d.UL)(),c=b.get("ccgauge_source")?.value,f=c&&(0,e.rl)(c)?c:e.Gr,g=await (0,e.Fw)();return g.length>0&&!g.includes(f)?g[0]:f}function g(a,b){return a.filter(a=>a.source===b)}},48161:a=>{a.exports=require("node:os")},50160:(a,b,c)=>{c.d(b,{SI:()=>e});var d=c(60704);function e(a){let b=(0,d.sO)(a.source),{pricing:c}=b.resolvePricing(a.model);return b.costFromUsage(a.usage,c)}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},80481:a=>{a.exports=require("node:readline")},85205:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>I,patchFetch:()=>H,routeModule:()=>D,serverHooks:()=>G,workAsyncStorage:()=>E,workUnitAsyncStorage:()=>F});var d={};c.r(d),c.d(d,{GET:()=>C,dynamic:()=>B,runtime:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(27520),w=c(1853),x=c(46796),y=c(60704),z=c(11233);let A="nodejs",B="force-dynamic",C=(0,z.C)(async a=>{let b=new URL(a.url),c=await (0,x.ev)(b.searchParams.get("source")),d=await (0,v.So)(),e=(0,x.rY)(d.records,c),f=(0,y.sO)(c).capabilities.blockWindowMs,g=(0,w.y2)(e,f),h=(0,w.ls)(e,f);return u.NextResponse.json({source:c,blocks:g,progress:h,windowMs:f})}),D=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/blocks/route",pathname:"/api/blocks",filename:"route",bundlePath:"app/api/blocks/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/api/blocks/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:E,workUnitAsyncStorage:F,serverHooks:G}=D;function H(){return(0,g.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:F})}async function I(a,b,c){var d;let e="/api/blocks/route";"/index"===e&&(e="/");let g=await D.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[C]);if(F&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||D.isDev||x||(G="/index"===(G=C)?"/":G);let H=!0===D.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>D.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>D.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await D.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await D.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await D.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[331,802,692,716,520],()=>b(b.s=85205));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/blocks/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"7152":{"*":{"id":"75268","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"39472","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"82140","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"60505","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"17290","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"32560","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"88253","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"95546","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"99955","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"72267","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"24919","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"28607","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"77731","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"88267","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"48507","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/globals.css":{"id":41290,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","454","static/chunks/454-d0e7d0fa6f643c41.js","177","static/chunks/app/layout-a6e30ba3a7f39737.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/nav.tsx":{"id":57581,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","454","static/chunks/454-d0e7d0fa6f643c41.js","177","static/chunks/app/layout-a6e30ba3a7f39737.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/providers.tsx":{"id":12112,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","454","static/chunks/454-d0e7d0fa6f643c41.js","177","static/chunks/app/layout-a6e30ba3a7f39737.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error.tsx":{"id":49567,"name":"*","chunks":["454","static/chunks/454-d0e7d0fa6f643c41.js","39","static/chunks/app/error-89ee9e078058915d.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/token-stack-chart.tsx":{"id":38059,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","454","static/chunks/454-d0e7d0fa6f643c41.js","974","static/chunks/app/page-9347dfa20dabb24b.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/block-progress.tsx":{"id":25763,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","454","static/chunks/454-d0e7d0fa6f643c41.js","974","static/chunks/app/page-9347dfa20dabb24b.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/model-bar-chart.tsx":{"id":8608,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","454","static/chunks/454-d0e7d0fa6f643c41.js","974","static/chunks/app/page-9347dfa20dabb24b.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/language-switcher.tsx":{"id":21264,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/pricing-table.tsx":{"id":8783,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/scan-refresh.tsx":{"id":91107,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/theme-switcher.tsx":{"id":44703,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/granularity-picker.tsx":{"id":16633,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/model-filter.tsx":{"id":8336,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/project-filter.tsx":{"id":14920,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/range-picker.tsx":{"id":7152,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/usage-table.tsx":{"id":25577,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/layout":[{"inlined":false,"path":"static/css/c34cd36ce5fc39e2.css"}],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/loading":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/page":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/api/blocks/route":[]},"rscModuleMapping":{"7152":{"*":{"id":"58258","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"36666","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"60798","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"87639","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"66664","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"21966","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"49863","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"98392","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"21092","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"88622","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"89605","name":"*","chunks":[],"async":false}},"41290":{"*":{"id":"82704","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"29509","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"41697","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"65169","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"64285","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"84701","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/blocks/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"5248":{"*":{"id":"39422","name":"*","chunks":[],"async":false}},"7152":{"*":{"id":"75268","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"39472","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"82140","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"60505","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"17290","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"32560","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"88253","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"95546","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"99955","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"72267","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"24919","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"28607","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"77731","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"88267","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"69612":{"*":{"id":"42629","name":"*","chunks":[],"async":false}},"77549":{"*":{"id":"24961","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"48507","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/globals.css":{"id":41290,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","148","static/chunks/148-557ee562aff993b1.js","177","static/chunks/app/layout-6c973d790f015707.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/nav.tsx":{"id":57581,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","148","static/chunks/148-557ee562aff993b1.js","177","static/chunks/app/layout-6c973d790f015707.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/providers.tsx":{"id":12112,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","619","static/chunks/619-f072ac750404f9da.js","148","static/chunks/148-557ee562aff993b1.js","177","static/chunks/app/layout-6c973d790f015707.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error.tsx":{"id":49567,"name":"*","chunks":["148","static/chunks/148-557ee562aff993b1.js","39","static/chunks/app/error-3e48784f89c5ae8d.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/token-stack-chart.tsx":{"id":38059,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/node_modules/next/dist/esm/client/app-dir/link.js":{"id":52619,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/auto-refresh.tsx":{"id":77549,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/granularity-picker.tsx":{"id":16633,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/model-filter.tsx":{"id":8336,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/overview-toggle.tsx":{"id":5248,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/project-filter.tsx":{"id":14920,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/range-picker.tsx":{"id":7152,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/usage-table.tsx":{"id":25577,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/activity-stats.tsx":{"id":69612,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/block-progress.tsx":{"id":25763,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/charts/model-bar-chart.tsx":{"id":8608,"name":"*","chunks":["760","static/chunks/760-24bf5ac5820b9230.js","930","static/chunks/930-3035d0b294080d0b.js","148","static/chunks/148-557ee562aff993b1.js","974","static/chunks/app/page-6d87d7a8aa752100.js"],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/language-switcher.tsx":{"id":21264,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/pricing-table.tsx":{"id":8783,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/scan-refresh.tsx":{"id":91107,"name":"*","chunks":[],"async":false},"/Users/zuopeng.cheng/personal/workspace/ccgauge/components/theme-switcher.tsx":{"id":44703,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/zuopeng.cheng/personal/workspace/ccgauge/":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/layout":[{"inlined":false,"path":"static/css/b07523b7c353538d.css"}],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/error":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/loading":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/page":[],"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/api/blocks/route":[]},"rscModuleMapping":{"5248":{"*":{"id":"68264","name":"*","chunks":[],"async":false}},"7152":{"*":{"id":"58258","name":"*","chunks":[],"async":false}},"8336":{"*":{"id":"36666","name":"*","chunks":[],"async":false}},"8608":{"*":{"id":"60798","name":"*","chunks":[],"async":false}},"8783":{"*":{"id":"87639","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"12112":{"*":{"id":"66664","name":"*","chunks":[],"async":false}},"14920":{"*":{"id":"21966","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"16633":{"*":{"id":"49863","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"21264":{"*":{"id":"98392","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25577":{"*":{"id":"21092","name":"*","chunks":[],"async":false}},"25763":{"*":{"id":"88622","name":"*","chunks":[],"async":false}},"38059":{"*":{"id":"89605","name":"*","chunks":[],"async":false}},"41290":{"*":{"id":"82704","name":"*","chunks":[],"async":false}},"44703":{"*":{"id":"29509","name":"*","chunks":[],"async":false}},"49567":{"*":{"id":"41697","name":"*","chunks":[],"async":false}},"52619":{"*":{"id":"65169","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"57581":{"*":{"id":"64285","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"69612":{"*":{"id":"4001","name":"*","chunks":[],"async":false}},"77549":{"*":{"id":"62035","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"91107":{"*":{"id":"84701","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=872,a.ids=[872],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11233:(a,b,c)=>{c.d(b,{C:()=>g});var d=c(10641),e=c(48161);let f=c.n(e)().homedir();function g(a){return async(b,c)=>{try{return await a(b,c)}catch(b){console.error("[ccgauge:api] handler threw",b.stack||b.message||String(b));let a={error:"internal_error",message:function(a){if(!f)return a;let b=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return a.replace(RegExp(b,"g"),"~")}(b.message||"unexpected server error")};return d.NextResponse.json(a,{status:500})}}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23158:(a,b,c)=>{c.d(b,{N0:()=>e,go:()=>f});var d=c(50160);function e(a){return a&&a.block?{hasBlock:!0,startTime:a.block.startTime,endTime:a.block.endTime,totalTokens:a.block.totalTokens,cost:a.block.cost,requests:a.block.requests,models:a.block.models,burnRatePerMin:a.burnRatePerMin,costPerMin:a.costPerMin,projectedTotal:a.projectedTotal,projectedCost:a.projectedCost}:{hasBlock:!1,totalTokens:0,cost:0,requests:0,models:[],burnRatePerMin:0,costPerMin:0,projectedTotal:0,projectedCost:0}}function f(a,b,c){let e=function(a,b,c){let d=new Map;for(let a of b)a.textPreview&&a.textPreview.trim()&&d.set(a.uuid,a.textPreview);let e=new Map,f=new Map;for(let b of a)e.set(b.uuid,function(a){let b=[],e=a,g=null,h=0,i=new Set;for(;e&&h++<5e3&&!i.has(e);){i.add(e);let a=f.get(e);if(a){g=a;break}if(b.push(e),d.has(e)){g=e;break}e=c[e]??null}for(let c of(g||(g=a),b))f.set(c,g);return g}(b.uuid));return e}(a,b,c),f=new Map;for(let a of b)f.set(a.uuid,a);let g=new Map,h=new Map;for(let b of a){let a=e.get(b.uuid)??b.uuid,c=(0,d.SI)(b),f={uuid:b.uuid,timestamp:b.timestamp,model:b.model,cwd:b.cwd,sessionId:b.sessionId,inputTokens:b.usage.input_tokens,outputTokens:b.usage.output_tokens,cacheReadTokens:b.usage.cache_read_input_tokens,cacheCreationTokens:b.usage.cache_creation_input_tokens,reasoningTokens:b.usage.reasoning_tokens??0,totalTokens:b.usage.input_tokens+b.usage.output_tokens+b.usage.cache_read_input_tokens+b.usage.cache_creation_input_tokens,cost:c.total,costInput:c.input,costOutput:c.output,costCacheRead:c.cacheRead,costCacheWrite:c.cacheCreation5m+c.cacheCreation1h,toolNames:b.toolNames},i=g.get(a);i?i.push(f):g.set(a,[f]),h.has(a)||h.set(a,b)}let i=[];for(let[a,b]of g){b.sort((a,b)=>a.timestamp<b.timestamp?-1:1);let c=b[0],d=b[b.length-1],e=new Set,g=new Set,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;for(let a of b){for(let b of(e.add(a.model),a.toolNames))g.add(b);h+=a.inputTokens,j+=a.outputTokens,k+=a.cacheReadTokens,l+=a.cacheCreationTokens,m+=a.reasoningTokens,n+=a.cost,o+=a.costInput,p+=a.costOutput,q+=a.costCacheRead,r+=a.costCacheWrite}let s=f.get(a);i.push({turnId:a,timestamp:c.timestamp,endTimestamp:d.timestamp,cwd:c.cwd,sessionId:c.sessionId,models:Array.from(e),callCount:b.length,inputTokens:h,outputTokens:j,cacheReadTokens:k,cacheCreationTokens:l,reasoningTokens:m,totalTokens:h+j+k+l,cost:n,costInput:o,costOutput:p,costCacheRead:q,costCacheWrite:r,toolNames:Array.from(g),userText:s?.textPreview??"",children:b})}return i.sort((a,b)=>a.endTimestamp<b.endTimestamp?1:-1),i}},25367:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>J,patchFetch:()=>I,routeModule:()=>E,serverHooks:()=>H,workAsyncStorage:()=>F,workUnitAsyncStorage:()=>G});var d={};c.r(d),c.d(d,{GET:()=>D,dynamic:()=>B,runtime:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(27520),v=c(23158),w=c(40236),x=c(46796),y=c(76559),z=c(11233);let A="nodejs",B="force-dynamic";function C(a){let b=String(a??"");return(b.length>0&&/^[=+\-@\t\r]/.test(b)&&(b=`'${b}`),b.includes(",")||b.includes('"')||b.includes("\n")||b.includes("\r"))?`"${b.replace(/"/g,'""')}"`:b}let D=(0,z.C)(async a=>{let b=new URL(a.url),c=await (0,x.ev)(b.searchParams.get("source")),d=b.searchParams.get("range")||"all",e=b.searchParams.get("models")?.split(",").filter(Boolean)??[],f=b.searchParams.get("projects")?.split(",").filter(Boolean)??[],g=(b.searchParams.get("q")||"").trim(),h=b.searchParams.get("sort"),i=h&&(0,y.Yb)(h)?h:"timestamp",j="asc"===b.searchParams.get("dir")?"asc":"desc",k=await (0,u.So)(),l=(0,x.rY)(k.records,c),m=(0,x.rY)(k.userRecords,c),n=(0,w.C)(d),o=l.filter(a=>!(n.from&&a.timestamp<n.from.toISOString()||n.to&&a.timestamp>n.to.toISOString())&&(!e.length||!!e.includes(a.model))&&(!f.length||!!f.includes(a.cwd))),p=function(a,b,c){let d=a.slice();return d.sort((a,d)=>{let e="timestamp"===b?a.endTimestamp:a[b],f="timestamp"===b?d.endTimestamp:d[b];return e===f?0:("asc"===c?1:-1)*(e<f?-1:1)}),d}(function(a,b){if(!b)return a;let c=b.toLowerCase();return a.filter(a=>a.userText.toLowerCase().includes(c)||a.cwd.toLowerCase().includes(c)||a.sessionId.toLowerCase().includes(c)||a.models.some(a=>a.toLowerCase().includes(c))||a.toolNames.some(a=>a.toLowerCase().includes(c)))}((0,v.go)(o,m,k.parentMap),g),i,j),q=["turn_id","timestamp","model","project","session","input","output","cache_read","cache_create","total_tokens","cost","tools"],r=new ReadableStream({start(a){let b=new TextEncoder,h=c=>a.enqueue(b.encode(c+"\n"));try{h(`# generated_at=${new Date().toISOString()}`),h(`# source=${c}`),h(`# range=${d}`),e.length&&h(`# models=${e.join(";")}`),f.length&&h(`# projects=${f.map(a=>a.replace(/[,;]/g," ")).join(";")}`),g&&h(`# search=${g.replace(/[,\n\r]/g," ")}`),h(`# turns=${p.length}`);let b=p.reduce((a,b)=>a+b.callCount,0);for(let a of(h(`# rows=${b}`),h(q.join(",")),p))for(let b of a.children)h([C(a.turnId),C(b.timestamp),C(b.model),C(b.cwd),C(b.sessionId),b.inputTokens,b.outputTokens,b.cacheReadTokens,b.cacheCreationTokens,b.totalTokens,b.cost.toFixed(6),C(b.toolNames.join(";"))].join(","));a.close()}catch(c){let b=c.message||"export error";console.error("[ccgauge:api] /api/export/usage stream failed",c.stack||b);try{h(`# error: export aborted: ${b.replace(/[\n\r,]/g," ")}`)}catch{}a.error(c)}}});return new Response(r,{headers:{"Content-Type":"text/csv; charset=utf-8","Content-Disposition":`attachment; filename="ccgauge-usage-${c}-${new Date().toISOString().slice(0,10)}.csv"`,"Cache-Control":"no-store"}})}),E=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/export/usage/route",pathname:"/api/export/usage",filename:"route",bundlePath:"app/api/export/usage/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/api/export/usage/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:F,workUnitAsyncStorage:G,serverHooks:H}=E;function I(){return(0,g.patchFetch)({workAsyncStorage:F,workUnitAsyncStorage:G})}async function J(a,b,c){var d;let e="/api/export/usage/route";"/index"===e&&(e="/");let g=await E.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=g,D=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[D]||y.routes[C]);if(F&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||E.isDev||x||(G="/index"===(G=C)?"/":G);let H=!0===E.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>E.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>E.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await E.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await E.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await E.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},40236:(a,b,c)=>{c.d(b,{C:()=>d});function d(a){let b=new Date;if(!a||"all"===a)return{};if("1d"===a)return{from:new Date(b.getFullYear(),b.getMonth(),b.getDate())};let c=a.match(/^(\d+)([dwm])$/);if(!c)return{};let d=parseInt(c[1],10),e=c[2],f=new Date(b);return"d"===e?f.setDate(f.getDate()-d):"w"===e?f.setDate(f.getDate()-7*d):"m"===e&&f.setMonth(f.getMonth()-d),{from:f}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46796:(a,b,c)=>{c.d(b,{ev:()=>f,rY:()=>g});var d=c(86802),e=c(60704);async function f(a){if(a&&(0,e.rl)(a))return a;let b=await (0,d.UL)(),c=b.get("ccgauge_source")?.value,f=c&&(0,e.rl)(c)?c:e.Gr,g=await (0,e.Fw)();return g.length>0&&!g.includes(f)?g[0]:f}function g(a,b){return a.filter(a=>a.source===b)}},48161:a=>{a.exports=require("node:os")},50160:(a,b,c)=>{c.d(b,{SI:()=>e});var d=c(60704);function e(a){let b=(0,d.sO)(a.source),{pricing:c}=b.resolvePricing(a.model);return b.costFromUsage(a.usage,c)}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76559:(a,b,c)=>{c.d(b,{PR:()=>g,QE:()=>d,Yb:()=>f});let d=25,e=["timestamp","cost","inputTokens","outputTokens","cacheReadTokens","cacheCreationTokens","totalTokens","callCount"];function f(a){return"string"==typeof a&&e.includes(a)}function g(a){if(!a)return 0;let b=Number(a);return!Number.isFinite(b)||b<1?0:Math.floor(b)-1}},76760:a=>{a.exports=require("node:path")},80481:a=>{a.exports=require("node:readline")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[331,802,692,716,520],()=>b(b.s=25367));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=872,a.ids=[872],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5693:(a,b,c)=>{c.d(b,{N0:()=>k,go:()=>l});var d=c(50160),e=c(73024),f=c(76760),g=c(95012);let h=new Map,i=/^(.+?)[/\\]\.git[/\\]worktrees[/\\]([^/\\]+)[/\\]?$/;function j(a){let b=h.get(a);if(b)return b.label;let c=function(a){let b=(0,g.PJ)(a);if(!a)return{label:b,isWorktree:!1,mainName:b,worktreeName:""};try{let c=`${a}/.git`;if(!(0,e.statSync)(c).isFile())return{label:b,isWorktree:!1,mainName:b,worktreeName:""};let d=(0,e.readFileSync)(c,"utf8").trim().split(/\r?\n/,1)[0]??"",g=/^gitdir:\s*(.+)$/.exec(d);if(!g)return{label:b,isWorktree:!1,mainName:b,worktreeName:""};let h=g[1].trim(),j=i.exec(h);if(!j)return{label:b,isWorktree:!1,mainName:b,worktreeName:""};let k=j[1],l=j[2],m=(0,f.basename)(k)||k;return{label:`${m} (${l})`,isWorktree:!0,mainName:m,worktreeName:l}}catch{return{label:b,isWorktree:!1,mainName:b,worktreeName:""}}}(a);return h.set(a,c),c.label}function k(a){return a&&a.block?{hasBlock:!0,startTime:a.block.startTime,endTime:a.block.endTime,totalTokens:a.block.totalTokens,cost:a.block.cost,requests:a.block.requests,models:a.block.models,burnRatePerMin:a.burnRatePerMin,costPerMin:a.costPerMin,projectedTotal:a.projectedTotal,projectedCost:a.projectedCost}:{hasBlock:!1,totalTokens:0,cost:0,requests:0,models:[],burnRatePerMin:0,costPerMin:0,projectedTotal:0,projectedCost:0}}function l(a,b,c){let e=function(a,b,c){let d=new Map;for(let a of b)!a.isSynthetic&&a.textPreview&&a.textPreview.trim()&&d.set(a.uuid,a.textPreview);let e=new Map,f=new Map;for(let b of a)e.set(b.uuid,function(a){let b=[],e=a,g=null,h=0,i=new Set;for(;e&&h++<5e3&&!i.has(e);){i.add(e);let a=f.get(e);if(a){g=a;break}if(b.push(e),d.has(e)){g=e;break}e=c[e]??null}for(let c of(g||(g=a),b))f.set(c,g);return g}(b.uuid));return e}(a,b,c),f=new Map;for(let a of b)f.set(a.uuid,a);let g=new Map,h=new Map,i=new Map;for(let b of a){let a=e.get(b.uuid)??b.uuid,k=(0,d.SI)(b),l=function(a){let b=g.get(a);if(void 0!==b)return b;let d=[],e=a,h="",i=new Set;for(;e&&!i.has(e);){i.add(e);let a=g.get(e);if(void 0!==a){h=a;break}d.push(e);let b=f.get(e);if(b&&b.textPreview&&b.textPreview.trim()){h=b.textPreview;break}e=c[e]??null}for(let a of d)g.set(a,h);return h}(b.uuid),m={uuid:b.uuid,timestamp:b.timestamp,source:b.source,model:b.model,cwd:b.cwd,projectLabel:j(b.cwd),sessionId:b.sessionId,inputTokens:b.usage.input_tokens,outputTokens:b.usage.output_tokens,cacheReadTokens:b.usage.cache_read_input_tokens,cacheCreationTokens:b.usage.cache_creation_input_tokens,reasoningTokens:b.usage.reasoning_tokens??0,totalTokens:b.usage.input_tokens+b.usage.output_tokens+b.usage.cache_read_input_tokens+b.usage.cache_creation_input_tokens,cost:k.total,costInput:k.input,costOutput:k.output,costCacheRead:k.cacheRead,costCacheWrite:k.cacheCreation5m+k.cacheCreation1h,toolNames:b.toolNames,effort:b.effort,directPrompt:l||void 0},n=h.get(a);n?n.push(m):h.set(a,[m]),i.has(a)||i.set(a,b)}let k=[];for(let[a,b]of h){b.sort((a,b)=>a.timestamp<b.timestamp?-1:1);let c=b[0],d=b[b.length-1],e=new Set,g=new Set,h=new Set,i=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;for(let a of b){for(let b of(e.add(a.model),a.toolNames))g.add(b);a.effort&&h.add(a.effort),i+=a.inputTokens,l+=a.outputTokens,m+=a.cacheReadTokens,n+=a.cacheCreationTokens,o+=a.reasoningTokens,p+=a.cost,q+=a.costInput,r+=a.costOutput,s+=a.costCacheRead,t+=a.costCacheWrite}let u=f.get(a);k.push({turnId:a,timestamp:c.timestamp,endTimestamp:d.timestamp,cwd:c.cwd,projectLabel:j(c.cwd),sessionId:c.sessionId,models:Array.from(e),callCount:b.length,inputTokens:i,outputTokens:l,cacheReadTokens:m,cacheCreationTokens:n,reasoningTokens:o,totalTokens:i+l+m+n,cost:p,costInput:q,costOutput:r,costCacheRead:s,costCacheWrite:t,toolNames:Array.from(g),efforts:Array.from(h),userText:u?.textPreview??"",children:b})}return k.sort((a,b)=>a.endTimestamp<b.endTimestamp?1:-1),k}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11233:(a,b,c)=>{c.d(b,{C:()=>h,l:()=>i});var d=c(10641),e=c(48161);let f=c.n(e)().homedir();function g(a){if(!f)return a;let b=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return a.replace(RegExp(b,"g"),"~")}function h(a){return async(b,c)=>{try{return await a(b,c)}catch(b){console.error("[ccgauge:api] handler threw",b.stack||b.message||String(b));let a={error:"internal_error",message:g(b.message||"unexpected server error")};return d.NextResponse.json(a,{status:500})}}}function i(a,b="bad_request"){let c={error:"bad_request",code:b,message:g(a)};return d.NextResponse.json(c,{status:400})}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},25367:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>O,patchFetch:()=>N,routeModule:()=>J,serverHooks:()=>M,workAsyncStorage:()=>K,workUnitAsyncStorage:()=>L});var d={};c.r(d),c.d(d,{GET:()=>I,dynamic:()=>D,runtime:()=>C});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(27520),v=c(5693),w=c(40236),x=c(46796),y=c(76559),z=c(11233),A=c(60704),B=c(95012);let C="nodejs",D="force-dynamic";function E(a){let b=String(a??"");return(b.length>0&&/^[=+\-@\t\r]/.test(b)&&(b=`'${b}`),b.includes(",")||b.includes('"')||b.includes("\n")||b.includes("\r"))?`"${b.replace(/"/g,'""')}"`:b}function F(a){return a.replace(/[\r\n\t]+/g," ").trim()}let G=["turn_id","turn_started_at","turn_ended_at","timestamp","source","model","model_short","effort","project_name","project_path","session","user_prompt","tool_names","input_tokens","output_tokens","reasoning_tokens","cache_read_tokens","cache_create_tokens","total_tokens","cost_usd"],H=["turn_id","started_at","ended_at","duration_seconds","source","models","effort","project_name","project_path","session","user_prompt","call_count","tool_names","input_tokens","output_tokens","reasoning_tokens","cache_read_tokens","cache_create_tokens","total_tokens","cost_usd"],I=(0,z.C)(async a=>{let b=new URL(a.url),c=await (0,x.ev)(b.searchParams.get("source")),d=b.searchParams.get("range")||"all";if(!(0,w.dg)(d))return(0,z.l)(`invalid range: ${d}`,"invalid_range");let e="turn"===(b.searchParams.get("level")||"call").toLowerCase()?"turn":"call",f=b.searchParams.get("models")?.split(",").filter(Boolean)??[],g=b.searchParams.get("projects")?.split(",").filter(Boolean)??[],h=(b.searchParams.get("q")||"").trim(),i=b.searchParams.get("sort"),j=i&&(0,y.Yb)(i)?i:"timestamp",k="asc"===b.searchParams.get("dir")?"asc":"desc",l=await (0,u.So)(),m=(0,x.rY)(l.records,c),n=(0,x.rY)(l.userRecords,c),o=(0,w.Cw)(d),p=m.filter(a=>!(o.from&&a.timestamp<o.from.toISOString()||o.to&&a.timestamp>o.to.toISOString())&&(!f.length||!!f.includes(a.model))&&(!g.length||!!g.includes(a.cwd))),q=function(a,b,c){let d=a.slice();return d.sort((a,d)=>{let e="timestamp"===b?a.endTimestamp:a[b],f="timestamp"===b?d.endTimestamp:d[b];return e===f?0:("asc"===c?1:-1)*(e<f?-1:1)}),d}(function(a,b){if(!b)return a;let c=b.toLowerCase();return a.filter(a=>a.userText.toLowerCase().includes(c)||a.cwd.toLowerCase().includes(c)||a.sessionId.toLowerCase().includes(c)||a.models.some(a=>a.toLowerCase().includes(c))||a.toolNames.some(a=>a.toLowerCase().includes(c)))}((0,v.go)(p,n,l.parentMap),h),j,k),r=q.reduce((a,b)=>a+b.callCount,0),s="turn"===e?H:G,t=["ccgauge-usage",c,"all"!==d?d:null,"call"!==e?e:null,new Date().toISOString().slice(0,10)].filter(Boolean).join("-")+".csv",C=new ReadableStream({start(a){let b=new TextEncoder,i=c=>a.enqueue(b.encode(c+"\n"));try{if(a.enqueue(b.encode("\uFEFF")),i(`# generated_at=${new Date().toISOString()}`),i(`# source=${c}`),i(`# range=${d}`),i(`# level=${e}`),f.length&&i(`# models=${f.join(";")}`),g.length&&i(`# projects=${g.map(a=>a.replace(/[,;]/g," ")).join(";")}`),h&&i(`# search=${h.replace(/[,\n\r]/g," ")}`),i(`# turns=${q.length}`),i(`# rows=${"turn"===e?q.length:r}`),i(s.join(",")),"turn"===e)for(let a of q)i(function(a){let b=new Date(a.timestamp).getTime(),c=new Date(a.endTimestamp).getTime(),d=Number.isFinite(b)&&Number.isFinite(c)?Math.max(0,Math.round((c-b)/1e3)):0;return[E(a.turnId),E(a.timestamp),E(a.endTimestamp),d,E(a.children[0]?.source??""),E(a.models.join(";")),E(a.efforts.join(";")),E(a.projectLabel||(0,B.PJ)(a.cwd)),E(a.cwd),E(a.sessionId),E(F(a.userText)),a.callCount,E(a.toolNames.join(";")),a.inputTokens,a.outputTokens,a.reasoningTokens,a.cacheReadTokens,a.cacheCreationTokens,a.totalTokens,a.cost.toFixed(6)].join(",")}(a));else for(let a of q)for(let b of a.children)i(function(a,b){let c=(0,A.sO)(b.source);return[E(a.turnId),E(a.timestamp),E(a.endTimestamp),E(b.timestamp),E(b.source),E(b.model),E(c.shortenModel(b.model)),E(b.effort??""),E(b.projectLabel||(0,B.PJ)(b.cwd)),E(b.cwd),E(b.sessionId),E(F(a.userText)),E(b.toolNames.join(";")),b.inputTokens,b.outputTokens,b.reasoningTokens,b.cacheReadTokens,b.cacheCreationTokens,b.totalTokens,b.cost.toFixed(6)].join(",")}(a,b));a.close()}catch(c){let b=c.message||"export error";console.error("[ccgauge:api] /api/export/usage stream failed",c.stack||b);try{i(`# error: export aborted: ${b.replace(/[\n\r,]/g," ")}`)}catch{}a.error(c)}}});return new Response(C,{headers:{"Content-Type":"text/csv; charset=utf-8","Content-Disposition":`attachment; filename="${t}"`,"Cache-Control":"no-store"}})}),J=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/export/usage/route",pathname:"/api/export/usage",filename:"route",bundlePath:"app/api/export/usage/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/zuopeng.cheng/personal/workspace/ccgauge/app/api/export/usage/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:K,workUnitAsyncStorage:L,serverHooks:M}=J;function N(){return(0,g.patchFetch)({workAsyncStorage:K,workUnitAsyncStorage:L})}async function O(a,b,c){var d;let e="/api/export/usage/route";"/index"===e&&(e="/");let g=await J.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=g,D=(0,j.normalizeAppPath)(e),E=!!(y.dynamicRoutes[D]||y.routes[C]);if(E&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let F=null;!E||J.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===J.isDev||!E,H=E&&!G,I=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:G,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:H,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>J.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>J.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${I} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${I} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!E)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await J.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await J.handleResponse({req:a,nextConfig:w,cacheKey:F,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!E)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&E||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${I} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":I,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await J.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})}),E)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},40236:(a,b,c)=>{c.d(b,{Cw:()=>g,UF:()=>f,dg:()=>e});let d=["1d","7d","30d","90d","all"];function e(a){return"string"==typeof a&&d.includes(a)}function f(a,b="7d"){return e(a)?a:b}function g(a){let b=new Date;if("all"===a)return{};if("1d"===a)return{from:new Date(b.getFullYear(),b.getMonth(),b.getDate())};let c=a.match(/^(\d+)([dwm])$/);if(!c)return{};let d=parseInt(c[1],10),e=c[2],f=new Date(b);return"d"===e?f.setDate(f.getDate()-d):"w"===e?f.setDate(f.getDate()-7*d):"m"===e&&f.setMonth(f.getMonth()-d),{from:f}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46796:(a,b,c)=>{c.d(b,{ev:()=>f,rY:()=>g});var d=c(86802),e=c(60704);async function f(a){if(a&&(0,e.rl)(a))return a;let b=await (0,d.UL)(),c=b.get("ccgauge_source")?.value,f=c&&(0,e.rl)(c)?c:e.Gr,g=await (0,e.Fw)();return g.length>0&&!g.includes(f)?g[0]:f}function g(a,b){return a.filter(a=>a.source===b)}},48161:a=>{a.exports=require("node:os")},50160:(a,b,c)=>{c.d(b,{SI:()=>e});var d=c(60704);function e(a){let b=(0,d.sO)(a.source),{pricing:c}=b.resolvePricing(a.model);return b.costFromUsage(a.usage,c)}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76559:(a,b,c)=>{c.d(b,{PR:()=>g,QE:()=>d,Yb:()=>f});let d=25,e=["timestamp","cost","inputTokens","outputTokens","cacheReadTokens","cacheCreationTokens","totalTokens","callCount"];function f(a){return"string"==typeof a&&e.includes(a)}function g(a){if(!a)return 0;let b=Number(a);return!Number.isFinite(b)||b<1?0:Math.floor(b)-1}},76760:a=>{a.exports=require("node:path")},80481:a=>{a.exports=require("node:readline")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},95012:(a,b,c)=>{c.d(b,{BC:()=>o,PJ:()=>n,R8:()=>j,a3:()=>k,az:()=>i,cn:()=>f,jh:()=>h,om:()=>l,r6:()=>m});var d=c(81171),e=c(11167);function f(...a){return(0,e.QP)((0,d.$)(a))}function g(a,b){return new Intl.NumberFormat("en-US",{maximumFractionDigits:b?.maxFrac??0}).format(a)}function h(a,b="en"){return Number.isFinite(a)?"zh"===b?a>=1e8?(a/1e8).toFixed(2)+"亿":a>=1e4?(a/1e4).toFixed(1)+"万":g(a):a>=1e9?(a/1e9).toFixed(2)+"B":a>=1e6?(a/1e6).toFixed(2)+"M":a>=1e3?(a/1e3).toFixed(1)+"K":g(a):"0"}function i(a,b){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:b?.minFrac??2,maximumFractionDigits:b?.maxFrac??2}).format(a)}function j(a,b=1){return Number.isFinite(a)?`${(100*a).toFixed(b)}%`:"0%"}function k(a){if(a<1e3)return`${a}ms`;let b=Math.floor(a/1e3);if(b<60)return`${b}s`;let c=Math.floor(b/60);if(c<60){let a=b%60;return a?`${c}m ${a}s`:`${c}m`}let d=Math.floor(c/60),e=c%60;return e?`${d}h ${e}m`:`${d}h`}function l(a,b="en"){let c="string"==typeof a||"number"==typeof a?new Date(a):a,d=Date.now()-c.getTime(),e="zh"===b;if(d<0)return e?"刚刚":"just now";let f=Math.floor(d/1e3);if(f<60)return e?"刚刚":`${f}s ago`;let g=Math.floor(f/60);if(g<60)return e?`${g} 分钟前`:`${g}m ago`;let h=Math.floor(g/60);if(h<24)return e?`${h} 小时前`:`${h}h ago`;let i=Math.floor(h/24);if(i<7)return e?`${i} 天前`:`${i}d ago`;let j=Math.floor(i/7);if(j<5)return e?`${j} 周前`:`${j}w ago`;let k=Math.floor(i/30);if(k<12)return e?`${k} 个月前`:`${k}mo ago`;let m=Math.floor(i/365);return e?`${m} 年前`:`${m}y ago`}function m(a){let b="string"==typeof a||"number"==typeof a?new Date(a):a;if(Number.isNaN(b.getTime()))return"";let c=b.getFullYear(),d=String(b.getMonth()+1).padStart(2,"0"),e=String(b.getDate()).padStart(2,"0"),f=String(b.getHours()).padStart(2,"0"),g=String(b.getMinutes()).padStart(2,"0"),h=String(b.getSeconds()).padStart(2,"0");return`${c}-${d}-${e} ${f}:${g}:${h}`}function n(a){if(!a)return"(unknown)";let b=a.replace(/[/\\]+$/,"").split(/[/\\]+/);return b[b.length-1]||a}function o(a,b=8){return a?a.replace(/-/g,"").slice(0,b):""}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[331,802,153,692,716,520],()=>b(b.s=25367));module.exports=c})();
|