cursor-local-remote 0.1.8 → 0.1.10
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/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +23 -16
- package/.next/app-path-routes-manifest.json +3 -2
- package/.next/build-manifest.json +4 -4
- package/.next/prerender-manifest.json +22 -22
- package/.next/server/app/_not-found/page.js +11 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +11 -1
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/api/chat/route.js +1 -15
- package/.next/server/app/api/chat/route.js.nft.json +1 -1
- package/.next/server/app/api/chat/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/info/route.js +1 -1
- package/.next/server/app/api/info/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/route.js +2 -2
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/notifications/test/route.js +1 -0
- package/.next/server/app/api/notifications/test/route.js.nft.json +1 -0
- package/.next/server/app/api/notifications/test/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/projects/route.js +2 -2
- package/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/active/route.js +1 -1
- package/.next/server/app/api/sessions/active/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/history/route.js +1 -1
- package/.next/server/app/api/sessions/history/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/route.js +2 -2
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/watch/route.js +1 -1
- package/.next/server/app/api/sessions/watch/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/settings/route.js +2 -2
- package/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/upload/route_client-reference-manifest.js +1 -1
- package/.next/server/app/index.html +11 -1
- package/.next/server/app/index.rsc +5 -5
- package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +12 -2
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +3 -2
- package/.next/server/chunks/545.js +18 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-manifest.json +3 -3
- package/.next/server/pages/404.html +11 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/src/middleware.js +2 -2
- package/.next/static/-Ezkq4WMw4zu9VGp34DMl/_buildManifest.js +1 -0
- package/.next/static/chunks/app/api/chat/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/git/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/info/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/models/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/notifications/test/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/projects/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/sessions/active/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/sessions/history/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/sessions/watch/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/settings/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/api/upload/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/layout-a7c7dda1f998a1ce.js +1 -0
- package/.next/static/chunks/app/manifest.webmanifest/route-b00b337e85e306b9.js +1 -0
- package/.next/static/chunks/app/page-0a125611ef82cf2b.js +1 -0
- package/.next/static/chunks/main-fef688ac5ef45212.js +1 -0
- package/.next/static/css/62c80997800f1b21.css +1 -0
- package/README.md +32 -2
- package/package.json +1 -1
- package/public/sw.js +7 -0
- package/.next/static/1rt0ouP79NFIVzsUEvc1N/_buildManifest.js +0 -1
- package/.next/static/chunks/app/api/chat/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/git/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/info/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/models/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/projects/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/active/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/history/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/watch/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/settings/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/api/upload/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/layout-c1b1bf5b5f175921.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-4be467a4132150d7.js +0 -1
- package/.next/static/chunks/app/page-d56a0b0c17bcae14.js +0 -1
- package/.next/static/chunks/main-78288f30f936e5ed.js +0 -1
- package/.next/static/css/ce0ea98569c70835.css +0 -1
- /package/.next/static/{1rt0ouP79NFIVzsUEvc1N → -Ezkq4WMw4zu9VGp34DMl}/_ssgManifest.js +0 -0
package/.next/BUILD_ID
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
-Ezkq4WMw4zu9VGp34DMl
|
|
@@ -12,92 +12,99 @@
|
|
|
12
12
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
13
13
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
14
14
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
15
|
-
"static/css/
|
|
16
|
-
"static/chunks/app/layout-
|
|
15
|
+
"static/css/62c80997800f1b21.css",
|
|
16
|
+
"static/chunks/app/layout-a7c7dda1f998a1ce.js"
|
|
17
17
|
],
|
|
18
18
|
"/manifest.webmanifest/route": [
|
|
19
19
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
20
20
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
21
21
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
22
22
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
23
|
-
"static/chunks/app/manifest.webmanifest/route-
|
|
23
|
+
"static/chunks/app/manifest.webmanifest/route-b00b337e85e306b9.js"
|
|
24
24
|
],
|
|
25
25
|
"/api/info/route": [
|
|
26
26
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
27
27
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
28
28
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
29
29
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
30
|
-
"static/chunks/app/api/info/route-
|
|
30
|
+
"static/chunks/app/api/info/route-b00b337e85e306b9.js"
|
|
31
31
|
],
|
|
32
|
-
"/api/
|
|
32
|
+
"/api/notifications/test/route": [
|
|
33
33
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
34
34
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
35
35
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
36
36
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
37
|
-
"static/chunks/app/api/
|
|
37
|
+
"static/chunks/app/api/notifications/test/route-b00b337e85e306b9.js"
|
|
38
38
|
],
|
|
39
39
|
"/api/models/route": [
|
|
40
40
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
41
41
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
42
42
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
43
43
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
44
|
-
"static/chunks/app/api/models/route-
|
|
44
|
+
"static/chunks/app/api/models/route-b00b337e85e306b9.js"
|
|
45
|
+
],
|
|
46
|
+
"/api/projects/route": [
|
|
47
|
+
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
48
|
+
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
49
|
+
"static/chunks/255-ebd51be49873d76c.js",
|
|
50
|
+
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
51
|
+
"static/chunks/app/api/projects/route-b00b337e85e306b9.js"
|
|
45
52
|
],
|
|
46
53
|
"/api/sessions/active/route": [
|
|
47
54
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
48
55
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
49
56
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
50
57
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
51
|
-
"static/chunks/app/api/sessions/active/route-
|
|
58
|
+
"static/chunks/app/api/sessions/active/route-b00b337e85e306b9.js"
|
|
52
59
|
],
|
|
53
60
|
"/api/chat/route": [
|
|
54
61
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
55
62
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
56
63
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
57
64
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
58
|
-
"static/chunks/app/api/chat/route-
|
|
65
|
+
"static/chunks/app/api/chat/route-b00b337e85e306b9.js"
|
|
59
66
|
],
|
|
60
67
|
"/api/sessions/history/route": [
|
|
61
68
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
62
69
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
63
70
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
64
71
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
65
|
-
"static/chunks/app/api/sessions/history/route-
|
|
72
|
+
"static/chunks/app/api/sessions/history/route-b00b337e85e306b9.js"
|
|
66
73
|
],
|
|
67
74
|
"/api/sessions/route": [
|
|
68
75
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
69
76
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
70
77
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
71
78
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
72
|
-
"static/chunks/app/api/sessions/route-
|
|
79
|
+
"static/chunks/app/api/sessions/route-b00b337e85e306b9.js"
|
|
73
80
|
],
|
|
74
81
|
"/api/settings/route": [
|
|
75
82
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
76
83
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
77
84
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
78
85
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
79
|
-
"static/chunks/app/api/settings/route-
|
|
86
|
+
"static/chunks/app/api/settings/route-b00b337e85e306b9.js"
|
|
80
87
|
],
|
|
81
88
|
"/api/upload/route": [
|
|
82
89
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
83
90
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
84
91
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
85
92
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
86
|
-
"static/chunks/app/api/upload/route-
|
|
93
|
+
"static/chunks/app/api/upload/route-b00b337e85e306b9.js"
|
|
87
94
|
],
|
|
88
95
|
"/api/sessions/watch/route": [
|
|
89
96
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
90
97
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
91
98
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
92
99
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
93
|
-
"static/chunks/app/api/sessions/watch/route-
|
|
100
|
+
"static/chunks/app/api/sessions/watch/route-b00b337e85e306b9.js"
|
|
94
101
|
],
|
|
95
102
|
"/api/git/route": [
|
|
96
103
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
97
104
|
"static/chunks/4bd1b696-c023c6e3521b1417.js",
|
|
98
105
|
"static/chunks/255-ebd51be49873d76c.js",
|
|
99
106
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
100
|
-
"static/chunks/app/api/git/route-
|
|
107
|
+
"static/chunks/app/api/git/route-b00b337e85e306b9.js"
|
|
101
108
|
],
|
|
102
109
|
"/page": [
|
|
103
110
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
@@ -106,7 +113,7 @@
|
|
|
106
113
|
"static/chunks/main-app-14a04931699eb2a2.js",
|
|
107
114
|
"static/css/5eacd01f773eed7f.css",
|
|
108
115
|
"static/chunks/391-727d95bcfba987c2.js",
|
|
109
|
-
"static/chunks/app/page-
|
|
116
|
+
"static/chunks/app/page-0a125611ef82cf2b.js"
|
|
110
117
|
]
|
|
111
118
|
}
|
|
112
119
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"/_not-found/page": "/_not-found",
|
|
3
3
|
"/apple-icon.png/route": "/apple-icon.png",
|
|
4
|
-
"/manifest.webmanifest/route": "/manifest.webmanifest",
|
|
5
4
|
"/icon.png/route": "/icon.png",
|
|
5
|
+
"/manifest.webmanifest/route": "/manifest.webmanifest",
|
|
6
6
|
"/api/info/route": "/api/info",
|
|
7
|
-
"/api/
|
|
7
|
+
"/api/notifications/test/route": "/api/notifications/test",
|
|
8
8
|
"/api/models/route": "/api/models",
|
|
9
|
+
"/api/projects/route": "/api/projects",
|
|
9
10
|
"/api/sessions/active/route": "/api/sessions/active",
|
|
10
11
|
"/api/chat/route": "/api/chat",
|
|
11
12
|
"/api/sessions/history/route": "/api/sessions/history",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/-Ezkq4WMw4zu9VGp34DMl/_buildManifest.js",
|
|
9
|
+
"static/-Ezkq4WMw4zu9VGp34DMl/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [
|
|
12
12
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"/_app": [
|
|
20
20
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
21
21
|
"static/chunks/framework-7c18bae94415732c.js",
|
|
22
|
-
"static/chunks/main-
|
|
22
|
+
"static/chunks/main-fef688ac5ef45212.js",
|
|
23
23
|
"static/chunks/pages/_app-79e662cab09aea11.js"
|
|
24
24
|
],
|
|
25
25
|
"/_error": [
|
|
26
26
|
"static/chunks/webpack-d434b6449a9cd8f3.js",
|
|
27
27
|
"static/chunks/framework-7c18bae94415732c.js",
|
|
28
|
-
"static/chunks/main-
|
|
28
|
+
"static/chunks/main-fef688ac5ef45212.js",
|
|
29
29
|
"static/chunks/pages/_error-89cd7530328c75d9.js"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 4,
|
|
3
3
|
"routes": {
|
|
4
|
-
"/
|
|
4
|
+
"/manifest.webmanifest": {
|
|
5
5
|
"initialHeaders": {
|
|
6
|
-
"cache-control": "public,
|
|
7
|
-
"content-type": "
|
|
8
|
-
"x-next-cache-tags": "_N_T_/layout,_N_T_/
|
|
6
|
+
"cache-control": "public, max-age=0, must-revalidate",
|
|
7
|
+
"content-type": "application/manifest+json",
|
|
8
|
+
"x-next-cache-tags": "_N_T_/layout,_N_T_/manifest.webmanifest/layout,_N_T_/manifest.webmanifest/route,_N_T_/manifest.webmanifest"
|
|
9
9
|
},
|
|
10
10
|
"experimentalBypassFor": [
|
|
11
11
|
{
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"initialRevalidateSeconds": false,
|
|
22
|
-
"srcRoute": "/
|
|
22
|
+
"srcRoute": "/manifest.webmanifest",
|
|
23
23
|
"dataRoute": null,
|
|
24
24
|
"allowHeader": [
|
|
25
25
|
"host",
|
|
@@ -30,12 +30,8 @@
|
|
|
30
30
|
"x-next-revalidate-tag-token"
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
|
-
"/
|
|
34
|
-
"
|
|
35
|
-
"cache-control": "public, immutable, no-transform, max-age=31536000",
|
|
36
|
-
"content-type": "image/png",
|
|
37
|
-
"x-next-cache-tags": "_N_T_/layout,_N_T_/apple-icon.png/layout,_N_T_/apple-icon.png/route,_N_T_/apple-icon.png"
|
|
38
|
-
},
|
|
33
|
+
"/_not-found": {
|
|
34
|
+
"initialStatus": 404,
|
|
39
35
|
"experimentalBypassFor": [
|
|
40
36
|
{
|
|
41
37
|
"type": "header",
|
|
@@ -48,8 +44,8 @@
|
|
|
48
44
|
}
|
|
49
45
|
],
|
|
50
46
|
"initialRevalidateSeconds": false,
|
|
51
|
-
"srcRoute": "/
|
|
52
|
-
"dataRoute":
|
|
47
|
+
"srcRoute": "/_not-found",
|
|
48
|
+
"dataRoute": "/_not-found.rsc",
|
|
53
49
|
"allowHeader": [
|
|
54
50
|
"host",
|
|
55
51
|
"x-matched-path",
|
|
@@ -59,8 +55,12 @@
|
|
|
59
55
|
"x-next-revalidate-tag-token"
|
|
60
56
|
]
|
|
61
57
|
},
|
|
62
|
-
"/
|
|
63
|
-
"
|
|
58
|
+
"/icon.png": {
|
|
59
|
+
"initialHeaders": {
|
|
60
|
+
"cache-control": "public, immutable, no-transform, max-age=31536000",
|
|
61
|
+
"content-type": "image/png",
|
|
62
|
+
"x-next-cache-tags": "_N_T_/layout,_N_T_/icon.png/layout,_N_T_/icon.png/route,_N_T_/icon.png"
|
|
63
|
+
},
|
|
64
64
|
"experimentalBypassFor": [
|
|
65
65
|
{
|
|
66
66
|
"type": "header",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
}
|
|
74
74
|
],
|
|
75
75
|
"initialRevalidateSeconds": false,
|
|
76
|
-
"srcRoute": "/
|
|
77
|
-
"dataRoute":
|
|
76
|
+
"srcRoute": "/icon.png",
|
|
77
|
+
"dataRoute": null,
|
|
78
78
|
"allowHeader": [
|
|
79
79
|
"host",
|
|
80
80
|
"x-matched-path",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"x-next-revalidate-tag-token"
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
|
-
"/
|
|
87
|
+
"/apple-icon.png": {
|
|
88
88
|
"initialHeaders": {
|
|
89
|
-
"cache-control": "public, max-age=
|
|
90
|
-
"content-type": "
|
|
91
|
-
"x-next-cache-tags": "_N_T_/layout,_N_T_/
|
|
89
|
+
"cache-control": "public, immutable, no-transform, max-age=31536000",
|
|
90
|
+
"content-type": "image/png",
|
|
91
|
+
"x-next-cache-tags": "_N_T_/layout,_N_T_/apple-icon.png/layout,_N_T_/apple-icon.png/route,_N_T_/apple-icon.png"
|
|
92
92
|
},
|
|
93
93
|
"experimentalBypassFor": [
|
|
94
94
|
{
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"initialRevalidateSeconds": false,
|
|
105
|
-
"srcRoute": "/
|
|
105
|
+
"srcRoute": "/apple-icon.png",
|
|
106
106
|
"dataRoute": null,
|
|
107
107
|
"allowHeader": [
|
|
108
108
|
"host",
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
(()=>{var a={};a.id=492,a.ids=[492],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},1025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},1135:()=>{},1139:(a,b,c)=>{"use strict";c.d(b,{PwaInstall:()=>e});var d=c(1124);function e(){return(0,d.jsx)("pwa-install",{"manifest-url":"/manifest.webmanifest",name:"Cursor Local Remote",description:"Control Cursor IDE from any device on your local network",icon:"/apple-touch-icon.png"})}c(8301)},1472:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h,metadata:()=>f,viewport:()=>g});var d=c(5338),e=c(3257);c(1135);let f={title:"Cursor Local Remote",description:"Control Cursor IDE from any device on your local network",appleWebApp:{capable:!0,title:"CLR",statusBarStyle:"black-translucent"}},g={width:"device-width",initialScale:1,maximumScale:1,userScalable:!1,themeColor:"#0a0a0b"};function h({children:a}){return(0,d.jsx)("html",{lang:"en",children:(0,d.jsxs)("body",{className:"overscroll-none",children:[a,(0,d.jsx)(e.PwaInstall,{})]})})}},3033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},3257:(a,b,c)=>{"use strict";c.d(b,{PwaInstall:()=>d});let d=(0,c(7954).registerClientReference)(function(){throw Error("Attempted to call PwaInstall() from the server but PwaInstall is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/jonmakinen/Documents/cursor-local-remote/src/components/pwa-install.tsx","PwaInstall")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3971:(a,b,c)=>{Promise.resolve().then(c.bind(c,1139))},4650:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(7523);let e=async a=>[{type:"image/png",sizes:"180x180",url:(0,d.fillMetadataSegment)(".",await a.params,"apple-icon.png")+"?4e1b4f0ebf73adf0"}]},6439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},6713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},7509:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,1170,23)),Promise.resolve().then(c.t.bind(c,3597,23)),Promise.resolve().then(c.t.bind(c,6893,23)),Promise.resolve().then(c.t.bind(c,9748,23)),Promise.resolve().then(c.t.bind(c,6060,23)),Promise.resolve().then(c.t.bind(c,7184,23)),Promise.resolve().then(c.t.bind(c,9576,23)),Promise.resolve().then(c.t.bind(c,3041,23)),Promise.resolve().then(c.t.bind(c,1384,23))},7947:(a,b,c)=>{Promise.resolve().then(c.bind(c,3257))},8162:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(7523);let e=async a=>[{type:"image/png",sizes:"32x32",url:(0,d.fillMetadataSegment)(".",await a.params,"icon.png")+"?c7e4facf85613587"}]},8354:a=>{"use strict";a.exports=require("util")},9121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},9294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},9365:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,4160,23)),Promise.resolve().then(c.t.bind(c,1603,23)),Promise.resolve().then(c.t.bind(c,8495,23)),Promise.resolve().then(c.t.bind(c,5170,23)),Promise.resolve().then(c.t.bind(c,7526,23)),Promise.resolve().then(c.t.bind(c,8922,23)),Promise.resolve().then(c.t.bind(c,9234,23)),Promise.resolve().then(c.t.bind(c,2263,23)),Promise.resolve().then(c.bind(c,2146))},9724:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(9754),e=c(9117),f=c(6595),g=c(2324),h=c(9326),i=c(8928),j=c(175),k=c(12),l=c(4290),m=c(2696),n=c(2802),o=c(7533),p=c(5229),q=c(2822),r=c(261),s=c(6453),t=c(2474),u=c(6713),v=c(1356),w=c(2685),x=c(6225),y=c(3446),z=c(2762),A=c(5742),B=c(6439),C=c(1170),D=c.n(C),E=c(2506),F=c(1203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["/_not-found",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.t.bind(c,7028,23)),"next/dist/client/components/builtin/not-found.js"]}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,1472)),"/Users/jonmakinen/Documents/cursor-local-remote/src/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,1170,23)),"next/dist/client/components/builtin/global-error.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,2768,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,8162))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,4650))).default(a)],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}}]}.children,I=[],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/_not-found/page",pathname:"/_not-found",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/_not-found/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.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=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(9902).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
1
|
+
(()=>{var a={};a.id=492,a.ids=[492],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},1025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},1135:()=>{},1139:(a,b,c)=>{"use strict";c.d(b,{PwaInstall:()=>f});var d=c(1124),e=c(8301);function f(){let[a,b]=(0,e.useState)(!1);return a?(0,d.jsx)("pwa-install",{"manifest-url":"/manifest.webmanifest",name:"Cursor Local Remote",description:"Control Cursor IDE from any device on your local network",icon:"/apple-touch-icon.png"}):null}c(6931)},1472:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>i,metadata:()=>f,viewport:()=>g});var d=c(5338),e=c(3257);c(1135);let f={title:"Cursor Local Remote",description:"Control Cursor IDE from any device on your local network",appleWebApp:{capable:!0,title:"CLR",statusBarStyle:"black-translucent"}},g={width:"device-width",initialScale:1,maximumScale:1,userScalable:!1,themeColor:"#0a0a0b"},h=`
|
|
2
|
+
if('serviceWorker' in navigator){
|
|
3
|
+
navigator.serviceWorker.getRegistrations().then(function(r){
|
|
4
|
+
r.forEach(function(reg){reg.unregister()})
|
|
5
|
+
});
|
|
6
|
+
if(typeof caches!=='undefined'){
|
|
7
|
+
caches.keys().then(function(k){
|
|
8
|
+
k.forEach(function(n){caches.delete(n)})
|
|
9
|
+
})
|
|
10
|
+
}
|
|
11
|
+
}`;function i({children:a}){return(0,d.jsx)("html",{lang:"en",children:(0,d.jsxs)("body",{className:"overscroll-none",children:[(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:h}}),a,(0,d.jsx)(e.PwaInstall,{})]})})}},3033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},3257:(a,b,c)=>{"use strict";c.d(b,{PwaInstall:()=>d});let d=(0,c(7954).registerClientReference)(function(){throw Error("Attempted to call PwaInstall() from the server but PwaInstall is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/jonmakinen/Documents/cursor-local-remote/src/components/pwa-install.tsx","PwaInstall")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3971:(a,b,c)=>{Promise.resolve().then(c.bind(c,1139))},4650:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(7523);let e=async a=>[{type:"image/png",sizes:"180x180",url:(0,d.fillMetadataSegment)(".",await a.params,"apple-icon.png")+"?4e1b4f0ebf73adf0"}]},6439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},6713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},6931:(a,b,c)=>{"use strict";function d(a,b){let c=Error(b);return c.name="ApiError",c.status=a,c.body={error:b},c}c.d(b,{n:()=>g});let e=new Set([502,503,504]);async function f(a,b,c){let{timeoutMs:g=3e4,retries:h,...i}=b,j=new AbortController,k=setTimeout(()=>j.abort(),g);try{let g=await fetch(a,{...i,credentials:"same-origin",signal:j.signal});if(!g.ok){if(c>0&&e.has(g.status))return await new Promise(a=>setTimeout(a,500)),f(a,b,c-1);let h=`HTTP ${g.status}`;try{let a=await g.json();a.error&&(h=a.error)}catch{}throw d(g.status,h)}return g}catch(e){if(e instanceof Error&&"AbortError"===e.name){if(c>0)return await new Promise(a=>setTimeout(a,500)),f(a,b,c-1);throw d(0,"Request timed out")}throw e}finally{clearTimeout(k)}}function g(a,b={}){return f(a,b,b.retries??2)}},7509:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,1170,23)),Promise.resolve().then(c.t.bind(c,3597,23)),Promise.resolve().then(c.t.bind(c,6893,23)),Promise.resolve().then(c.t.bind(c,9748,23)),Promise.resolve().then(c.t.bind(c,6060,23)),Promise.resolve().then(c.t.bind(c,7184,23)),Promise.resolve().then(c.t.bind(c,9576,23)),Promise.resolve().then(c.t.bind(c,3041,23)),Promise.resolve().then(c.t.bind(c,1384,23))},7947:(a,b,c)=>{Promise.resolve().then(c.bind(c,3257))},8162:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(7523);let e=async a=>[{type:"image/png",sizes:"32x32",url:(0,d.fillMetadataSegment)(".",await a.params,"icon.png")+"?c7e4facf85613587"}]},8354:a=>{"use strict";a.exports=require("util")},9121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},9294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},9365:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,4160,23)),Promise.resolve().then(c.t.bind(c,1603,23)),Promise.resolve().then(c.t.bind(c,8495,23)),Promise.resolve().then(c.t.bind(c,5170,23)),Promise.resolve().then(c.t.bind(c,7526,23)),Promise.resolve().then(c.t.bind(c,8922,23)),Promise.resolve().then(c.t.bind(c,9234,23)),Promise.resolve().then(c.t.bind(c,2263,23)),Promise.resolve().then(c.bind(c,2146))},9724:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(9754),e=c(9117),f=c(6595),g=c(2324),h=c(9326),i=c(8928),j=c(175),k=c(12),l=c(4290),m=c(2696),n=c(2802),o=c(7533),p=c(5229),q=c(2822),r=c(261),s=c(6453),t=c(2474),u=c(6713),v=c(1356),w=c(2685),x=c(6225),y=c(3446),z=c(2762),A=c(5742),B=c(6439),C=c(1170),D=c.n(C),E=c(2506),F=c(1203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["/_not-found",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.t.bind(c,7028,23)),"next/dist/client/components/builtin/not-found.js"]}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,1472)),"/Users/jonmakinen/Documents/cursor-local-remote/src/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,1170,23)),"next/dist/client/components/builtin/global-error.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,2768,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,8162))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,4650))).default(a)],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}}]}.children,I=[],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/_not-found/page",pathname:"/_not-found",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/_not-found/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.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=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(9902).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
2
12
|
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},9902:a=>{"use strict";a.exports=require("path")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,267],()=>b(b.s=9724));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"622":{"*":{"id":"2146","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"1603","name":"*","chunks":[],"async":false}},"2317":{"*":{"id":"1139","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"5170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"2263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"8922","name":"*","chunks":[],"async":false}},"5932":{"*":{"id":"7996","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"4160","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"8495","name":"*","chunks":[],"async":false}},"
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"622":{"*":{"id":"2146","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"1603","name":"*","chunks":[],"async":false}},"2317":{"*":{"id":"1139","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"5170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"2263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"8922","name":"*","chunks":[],"async":false}},"5932":{"*":{"id":"7996","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"4160","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"8495","name":"*","chunks":[],"async":false}},"8906":{"*":{"id":"7021","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9234","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"7526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/src/app/globals.css":{"id":3673,"name":"*","chunks":["558","static/chunks/app/layout-a7c7dda1f998a1ce.js"],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/src/components/pwa-install.tsx":{"id":2317,"name":"*","chunks":["558","static/chunks/app/layout-a7c7dda1f998a1ce.js"],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/src/components/chat-workspace.tsx":{"id":8906,"name":"*","chunks":["391","static/chunks/391-727d95bcfba987c2.js","593","static/chunks/app/page-0a125611ef82cf2b.js"],"async":false},"/Users/jonmakinen/Documents/cursor-local-remote/src/components/error-boundary.tsx":{"id":5932,"name":"*","chunks":["391","static/chunks/391-727d95bcfba987c2.js","593","static/chunks/app/page-0a125611ef82cf2b.js"],"async":false}},"entryCSSFiles":{"/Users/jonmakinen/Documents/cursor-local-remote/src/":[],"/Users/jonmakinen/Documents/cursor-local-remote/src/app/layout":[{"inlined":false,"path":"static/css/62c80997800f1b21.css"}],"/Users/jonmakinen/Documents/cursor-local-remote/src/app/page":[{"inlined":false,"path":"static/css/5eacd01f773eed7f.css"}],"/Users/jonmakinen/Documents/cursor-local-remote/src/app/_not-found/page":[]},"rscModuleMapping":{"622":{"*":{"id":"1384","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"3597","name":"*","chunks":[],"async":false}},"2317":{"*":{"id":"3257","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"9748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"3041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"5932":{"*":{"id":"1706","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"1170","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"6893","name":"*","chunks":[],"async":false}},"8906":{"*":{"id":"6873","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9576","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--_Ezkq4WMw4zu9VGp34DMl--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/><link rel="stylesheet" href="/_next/static/css/62c80997800f1b21.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d434b6449a9cd8f3.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-ebd51be49873d76c.js" async=""></script><script src="/_next/static/chunks/main-app-14a04931699eb2a2.js" async=""></script><script src="/_next/static/chunks/app/layout-a7c7dda1f998a1ce.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="theme-color" content="#0a0a0b"/><title>Cursor Local Remote</title><meta name="description" content="Control Cursor IDE from any device on your local network"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="CLR"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><link rel="icon" href="/icon.png?c7e4facf85613587" type="image/png" sizes="32x32"/><link rel="apple-touch-icon" href="/apple-icon.png?4e1b4f0ebf73adf0" type="image/png" sizes="180x180"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="overscroll-none"><div hidden=""><!--$--><!--/$--></div><script>
|
|
2
|
+
if('serviceWorker' in navigator){
|
|
3
|
+
navigator.serviceWorker.getRegistrations().then(function(r){
|
|
4
|
+
r.forEach(function(reg){reg.unregister()})
|
|
5
|
+
});
|
|
6
|
+
if(typeof caches!=='undefined'){
|
|
7
|
+
caches.keys().then(function(k){
|
|
8
|
+
k.forEach(function(n){caches.delete(n)})
|
|
9
|
+
})
|
|
10
|
+
}
|
|
11
|
+
}</script><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-d434b6449a9cd8f3.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[9766,[],\"\"]\n3:I[8924,[],\"\"]\n4:I[2317,[\"558\",\"static/chunks/app/layout-a7c7dda1f998a1ce.js\"],\"PwaInstall\"]\n5:I[4431,[],\"OutletBoundary\"]\n7:I[5278,[],\"AsyncMetadataOutlet\"]\n9:I[4431,[],\"ViewportBoundary\"]\nb:I[4431,[],\"MetadataBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[7150,[],\"\"]\n:HL[\"/_next/static/css/62c80997800f1b21.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"-Ezkq4WMw4zu9VGp34DMl\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/62c80997800f1b21.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"overscroll-none\",\"children\":[[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\nif('serviceWorker' in navigator){\\n navigator.serviceWorker.getRegistrations().then(function(r){\\n r.forEach(function(reg){reg.unregister()})\\n });\\n if(typeof caches!=='undefined'){\\n caches.keys().then(function(k){\\n k.forEach(function(n){caches.delete(n)})\\n })\\n }\\n}\"}}],[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L4\",null,{}]]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$L6\",[\"$\",\"$L7\",null,{\"promise\":\"$@8\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L9\",null,{\"children\":\"$La\"}],null],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"fallback\":null,\"children\":\"$Ld\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0a0a0b\"}]]\n6:null\n"])</script><script>self.__next_f.push([1,"f:I[622,[],\"IconMark\"]\n"])</script><script>self.__next_f.push([1,"8:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Cursor Local Remote\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Control Cursor IDE from any device on your local network\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"4\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"CLR\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"link\",\"6\",{\"rel\":\"icon\",\"href\":\"/icon.png?c7e4facf85613587\",\"type\":\"image/png\",\"sizes\":\"32x32\"}],[\"$\",\"link\",\"7\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?4e1b4f0ebf73adf0\",\"type\":\"image/png\",\"sizes\":\"180x180\"}],[\"$\",\"$Lf\",\"8\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"d:\"$8:metadata\"\n"])</script></body></html>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[9766,[],""]
|
|
3
3
|
3:I[8924,[],""]
|
|
4
|
-
4:I[2317,["558","static/chunks/app/layout-
|
|
4
|
+
4:I[2317,["558","static/chunks/app/layout-a7c7dda1f998a1ce.js"],"PwaInstall"]
|
|
5
5
|
5:I[4431,[],"OutletBoundary"]
|
|
6
6
|
7:I[5278,[],"AsyncMetadataOutlet"]
|
|
7
7
|
9:I[4431,[],"ViewportBoundary"]
|
|
8
8
|
b:I[4431,[],"MetadataBoundary"]
|
|
9
9
|
c:"$Sreact.suspense"
|
|
10
10
|
e:I[7150,[],""]
|
|
11
|
-
:HL["/_next/static/css/
|
|
12
|
-
0:{"P":null,"b":"
|
|
11
|
+
:HL["/_next/static/css/62c80997800f1b21.css","style"]
|
|
12
|
+
0:{"P":null,"b":"-Ezkq4WMw4zu9VGp34DMl","p":"","c":["","_not-found"],"i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/62c80997800f1b21.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"overscroll-none","children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\nif('serviceWorker' in navigator){\n navigator.serviceWorker.getRegistrations().then(function(r){\n r.forEach(function(reg){reg.unregister()})\n });\n if(typeof caches!=='undefined'){\n caches.keys().then(function(k){\n k.forEach(function(n){caches.delete(n)})\n })\n }\n}"}}],["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L4",null,{}]]}]}]]}],{"children":["/_not-found",["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$L6",["$","$L7",null,{"promise":"$@8"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],[["$","$L9",null,{"children":"$La"}],null],["$","$Lb",null,{"children":["$","div",null,{"hidden":true,"children":["$","$c",null,{"fallback":null,"children":"$Ld"}]}]}]]}],false]],"m":"$undefined","G":["$e",[]],"s":false,"S":true}
|
|
13
13
|
a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}],["$","meta","2",{"name":"theme-color","content":"#0a0a0b"}]]
|
|
14
14
|
6:null
|
|
15
15
|
f:I[622,[],"IconMark"]
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=276,a.ids=[276],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},401:(a,b,c)=>{"use strict";c.d(b,{Mf:()=>k,QO:()=>i,UH:()=>g,Wf:()=>d,Wg:()=>l,ZU:()=>j,c1:()=>e,jf:()=>f,wS:()=>h});let d=6e4,e=12e4,f=150,g=15e3,h=800,i=3e5,j=3e4,k=300,l=3100},846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},1926:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>M,patchFetch:()=>L,routeModule:()=>H,serverHooks:()=>K,workAsyncStorage:()=>I,workUnitAsyncStorage:()=>J});var d={};c.r(d),c.d(d,{POST:()=>G,dynamic:()=>F});var e=c(5736),f=c(9117),g=c(4044),h=c(9326),i=c(2324),j=c(261),k=c(4290),l=c(5328),m=c(8928),n=c(6595),o=c(3421),p=c(7679),q=c(1681),r=c(3446),s=c(6439),t=c(1356);let u=require("node:crypto");var v=c(9646),w=c(7750);let x=!1;async function y(){return"0"!==process.env.CURSOR_TRUST&&("1"===process.env.CURSOR_TRUST||"0"!==await (0,w.zj)("trust"))}async function z(a){if(!x)try{(0,v.execFileSync)("agent",["--version"],{stdio:"ignore",timeout:5e3}),x=!0}catch{throw Error("Could not find the 'agent' CLI. Make sure Cursor is installed and the CLI is on your PATH.")}let b=["-p",a.prompt,"--output-format","stream-json","--stream-partial-output"];return await y()&&b.push("--trust"),a.sessionId&&b.push("--resume",a.sessionId),a.workspace&&b.push("--workspace",a.workspace),a.model&&b.push("--model",a.model),a.mode&&"agent"!==a.mode&&b.push("--mode",a.mode),(0,v.spawn)("agent",b,{stdio:["pipe","pipe","pipe"],env:{...process.env}})}var A=c(5221),B=c(6277),C=c(6505),D=c(7093),E=c(401);let F="force-dynamic";async function G(a){let b=await (0,D.Y2)(a);if(b instanceof Response)return b;let c=(0,C.OG)(C.LS,b);if("error"in c)return(0,D.li)(c.error);let d=c.data,e=d.workspace||(0,A.K)();try{var f;let a=(0,u.randomUUID)(),b=await z({prompt:d.prompt,sessionId:d.sessionId,workspace:e,model:d.model,mode:d.mode});(0,B.VS)(a,b,e),d.sessionId&&(0,B.Xw)(a,d.sessionId);let c="1"===process.env.CLR_VERBOSE;b.stderr?.on("data",a=>{let b=a.toString().trim();b&&console.error("[agent stderr]",b)}),c&&console.warn(`[chat] spawning agent in ${e} (model=${d.model??"default"}, mode=${d.mode??"agent"})`);let g=await (f=d.prompt,new Promise(c=>{let d=!1,g="",h=null,i=setTimeout(()=>{d||c(null)},E.Wf);b.stdout?.on("data",b=>{let j=(g+=b.toString()).split("\n");for(let b of(g=j.pop()||"",j))if(b.trim())try{let g=JSON.parse(b);!d&&"system"===g.type&&"init"===g.subtype&&g.session_id&&(d=!0,h=g.session_id,clearTimeout(i),(0,w.ih)(g.session_id,e,f),(0,B.Xw)(a,g.session_id),c(g.session_id)),h&&("user"===g.type||"assistant"===g.type)&&(0,B.D7)(h,g)}catch{}}),b.on("close",()=>{d||(clearTimeout(i),c(null))}),b.on("error",()=>{d||(clearTimeout(i),c(null))})}));if(!g)return b.kill("SIGTERM"),console.error("[chat] agent did not emit init event within timeout"),(0,D.ig)("Agent failed to start");return c&&console.warn(`[chat] agent started session ${g}`),Response.json({sessionId:g})}catch(a){return(0,D.Jo)(a,"Failed to start agent"),(0,D.ig)("Failed to start agent")}}let H=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/chat/route",pathname:"/api/chat",filename:"route",bundlePath:"app/api/chat/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/jonmakinen/Documents/cursor-local-remote/src/app/api/chat/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:I,workUnitAsyncStorage:J,serverHooks:K}=H;function L(){return(0,g.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:J})}async function M(a,b,c){var d;let e="/api/chat/route";"/index"===e&&(e="/");let g=await H.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||H.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===H.isDev||!E,I=E&&!G,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:G,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)=>H.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=>H.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(!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 H.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await H.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:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await H.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),E)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},3033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},4870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},5221:(a,b,c)=>{"use strict";c.d(b,{K:()=>e});var d=c(9902);function e(){let a=process.env.CURSOR_WORKSPACE;return a?(0,d.resolve)(a):process.cwd()}},6277:(a,b,c)=>{"use strict";c.d(b,{$m:()=>p,D7:()=>i,F1:()=>o,Ki:()=>j,VS:()=>l,Xw:()=>n,ix:()=>q,pl:()=>k,xy:()=>m});var d=c(401);let e=new Map,f=new Map,g=new Map,h=new Map;function i(a,b){let c=g.get(a);c||(c=[],g.set(a,c)),c.push(b);let d=h.get(a);if(d)for(let a of d)a()}function j(a){return g.get(a)??[]}function k(a,b){let c=h.get(a);c||(c=new Set,h.set(a,c));let d=c;return d.add(b),()=>{d.delete(b)}}function l(a,b,c){let i={child:b,sessionId:null,mapKey:a,workspace:c,startedAt:Date.now()};e.set(a,i);let j=()=>{i.sessionId??i.mapKey,e.delete(i.mapKey);let a=f.get(i.mapKey);if(a)for(let b of(f.delete(i.mapKey),a))b();setTimeout(()=>{g.delete(i.mapKey),h.delete(i.mapKey)},d.c1)};b.on("close",j),b.on("error",j)}function m(a,b){if(!e.has(a))return b(),()=>{};let c=f.get(a);c||(c=new Set,f.set(a,c));let d=c;return d.add(b),()=>{d.delete(b)}}function n(a,b){let c=e.get(a);c&&(c.sessionId=b,b!==a&&(e.set(b,c),e.delete(a),c.mapKey=b))}function o(){let a=new Set;for(let[b,c]of e)a.add(c.sessionId??b);return Array.from(a)}function p(a){return e.has(a)}function q(a){let b=e.get(a);return!!b&&(b.child.kill("SIGTERM"),!0)}},6439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},6487:()=>{},6505:(a,b,c)=>{"use strict";c.d(b,{LS:()=>f,OG:()=>i,li:()=>g,vc:()=>h});var d=c(8629);let e=d.YjP().regex(/^[a-zA-Z0-9_-]{1,128}$/,"invalid sessionId"),f=d.Ikc({prompt:d.YjP().min(1,"prompt is required"),sessionId:e.optional(),model:d.YjP().max(128).regex(/^[a-zA-Z0-9._/-]+$/,"invalid model").optional(),mode:d.k5n(["agent","ask","plan"]).optional(),workspace:d.YjP().max(512).optional()}),g=d.Ikc({sessionId:e}),h=e;function i(a,b){let c=a.safeParse(b);if(c.success)return{data:c.data};let d=c.error.issues[0];return{error:d?.message??"Validation failed"}}},7093:(a,b,c)=>{"use strict";function d(a,b){return Response.json({error:a},{status:b})}function e(a){return d(a,400)}function f(a){return d(a,404)}function g(a="Internal server error"){return d(a,500)}function h(a,b){return a instanceof Error&&console.error(a),b}async function i(a){try{return await a.json()}catch{return e("Invalid JSON body")}}c.d(b,{Jo:()=>h,Y2:()=>i,ig:()=>g,li:()=>e,mX:()=>f})},7750:(a,b,c)=>{"use strict";c.d(b,{jl:()=>v,JZ:()=>t,ME:()=>w,ag:()=>A,zj:()=>x,GW:()=>s,FF:()=>z,Nk:()=>y,Q$:()=>u,ih:()=>r});let d=require("sql.js");var e=c.n(d),f=c(9902),g=c(9439),h=c(9021);let i=(0,f.join)((0,g.homedir)(),".cursor-local-remote"),j=(0,f.join)(i,"sessions.db"),k=null,l=null;function m(){k&&(0,h.writeFileSync)(j,Buffer.from(k.export()))}async function n(){if(k)return k;let{Database:a}=await (!l&&(l=e()()),l);(0,h.mkdirSync)(i,{recursive:!0}),(k=(0,h.existsSync)(j)?new a((0,h.readFileSync)(j)):new a).run(`
|
|
2
|
-
CREATE TABLE IF NOT EXISTS sessions (
|
|
3
|
-
id TEXT PRIMARY KEY,
|
|
4
|
-
title TEXT NOT NULL,
|
|
5
|
-
workspace TEXT NOT NULL,
|
|
6
|
-
preview TEXT NOT NULL DEFAULT '',
|
|
7
|
-
created_at INTEGER NOT NULL,
|
|
8
|
-
updated_at INTEGER NOT NULL
|
|
9
|
-
)
|
|
10
|
-
`);try{k.run("ALTER TABLE sessions ADD COLUMN archived INTEGER NOT NULL DEFAULT 0")}catch{}return k.run(`
|
|
11
|
-
CREATE TABLE IF NOT EXISTS config (
|
|
12
|
-
key TEXT PRIMARY KEY,
|
|
13
|
-
value TEXT NOT NULL
|
|
14
|
-
)
|
|
15
|
-
`),m(),k}function o(a,b,c){let d=a.prepare(b);try{if(d.bind(c),d.step())return d.getAsObject();return}finally{d.free()}}function p(a,b,c=[]){let d=a.prepare(b);try{d.bind(c);let a=[];for(;d.step();)a.push(d.getAsObject());return a}finally{d.free()}}function q(a){return{id:a.id,title:a.title,workspace:a.workspace,preview:a.preview,createdAt:a.created_at,updatedAt:a.updated_at}}async function r(a,b,c){let d=await n(),e=Date.now(),f=o(d,"SELECT * FROM sessions WHERE id = ?",[a]);if(f){let b=c?c.slice(0,120):f.preview;return d.run("UPDATE sessions SET updated_at = ?, preview = ? WHERE id = ?",[e,b,a]),m(),q({...f,updated_at:e,preview:b})}let g=c.slice(0,60)||"New session",h=c.slice(0,120);return d.run("INSERT INTO sessions (id, title, workspace, preview, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?)",[a,g,b,h,e,e]),m(),{id:a,title:g,workspace:b,preview:h,createdAt:e,updatedAt:e}}async function s(a,b=!1){let c=await n(),d=b?" archived = 1":" archived = 0";return(a?p(c,"SELECT * FROM sessions WHERE workspace = ? AND"+d+" ORDER BY updated_at DESC",[a]):p(c,"SELECT * FROM sessions WHERE"+d+" ORDER BY updated_at DESC")).map(q)}async function t(a){(await n()).run("UPDATE sessions SET archived = 1 WHERE id = ?",[a]),m()}async function u(a){(await n()).run("UPDATE sessions SET archived = 0 WHERE id = ?",[a]),m()}async function v(a){let b=await n();a?b.run("UPDATE sessions SET archived = 1 WHERE workspace = ? AND archived = 0",[a]):b.run("UPDATE sessions SET archived = 1 WHERE archived = 0"),m()}async function w(a){(await n()).run("DELETE FROM sessions WHERE id = ?",[a]),m()}async function x(a){let b=o(await n(),"SELECT value FROM config WHERE key = ?",[a]);return b?.value}async function y(a,b){(await n()).run("INSERT OR REPLACE INTO config (key, value) VALUES (?, ?)",[a,b]),m()}async function z(){return p(await n(),"SELECT DISTINCT workspace FROM sessions ORDER BY workspace").map(a=>a.workspace)}async function A(){let a=p(await n(),"SELECT key, value FROM config WHERE key NOT LIKE 'vapid%'"),b={};for(let c of a)b[c.key]=c.value;return b}},8335:()=>{},9021:a=>{"use strict";a.exports=require("fs")},9294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},9439:a=>{"use strict";a.exports=require("os")},9646:a=>{"use strict";a.exports=require("child_process")},9902:a=>{"use strict";a.exports=require("path")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,878],()=>b(b.s=1926));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=276,a.ids=[276],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},1926:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>N,patchFetch:()=>M,routeModule:()=>I,serverHooks:()=>L,workAsyncStorage:()=>J,workUnitAsyncStorage:()=>K});var d={};c.r(d),c.d(d,{POST:()=>H,dynamic:()=>G});var e=c(5736),f=c(9117),g=c(4044),h=c(9326),i=c(2324),j=c(261),k=c(4290),l=c(5328),m=c(8928),n=c(6595),o=c(3421),p=c(7679),q=c(1681),r=c(3446),s=c(6439),t=c(1356);let u=require("node:crypto");var v=c(9646),w=c(6492);let x=!1;async function y(){return"0"!==process.env.CURSOR_TRUST&&("1"===process.env.CURSOR_TRUST||"0"!==await (0,w.zj)("trust"))}async function z(a){if(!x)try{(0,v.execFileSync)("agent",["--version"],{stdio:"ignore",timeout:5e3}),x=!0}catch{throw Error("Could not find the 'agent' CLI. Make sure Cursor is installed and the CLI is on your PATH.")}let b=["-p",a.prompt,"--output-format","stream-json","--stream-partial-output"];return await y()&&b.push("--trust"),a.sessionId&&b.push("--resume",a.sessionId),a.workspace&&b.push("--workspace",a.workspace),a.model&&b.push("--model",a.model),a.mode&&"agent"!==a.mode&&b.push("--mode",a.mode),(0,v.spawn)("agent",b,{stdio:["pipe","pipe","pipe"],env:{...process.env}})}var A=c(5221),B=c(6277),C=c(6505),D=c(7093),E=c(401),F=c(1849);let G="force-dynamic";async function H(a){let b=await (0,D.Y2)(a);if(b instanceof Response)return b;let c=(0,C.OG)(C.LS,b);if("error"in c)return(0,D.li)(c.error);let d=c.data,e=d.workspace||(0,A.K)();try{var f;let a=(0,u.randomUUID)(),b=await z({prompt:d.prompt,sessionId:d.sessionId,workspace:e,model:d.model,mode:d.mode});(0,B.VS)(a,b,e),d.sessionId&&(0,B.Xw)(a,d.sessionId);let c="1"===process.env.CLR_VERBOSE;b.stderr?.on("data",a=>{let b=a.toString().trim();b&&console.error("[agent stderr]",b)}),c&&console.warn(`[chat] spawning agent in ${e} (model=${d.model??"default"}, mode=${d.mode??"agent"})`);let g=await (f=d.prompt,new Promise(c=>{let d=!1,g="",h=null,i=setTimeout(()=>{d||c(null)},E.Wf);b.stdout?.on("data",b=>{let j=(g+=b.toString()).split("\n");for(let b of(g=j.pop()||"",j))if(b.trim())try{let g=JSON.parse(b);!d&&"system"===g.type&&"init"===g.subtype&&g.session_id&&(d=!0,h=g.session_id,clearTimeout(i),(0,w.ih)(g.session_id,e,f),(0,B.Xw)(a,g.session_id),c(g.session_id)),h&&("user"===g.type||"assistant"===g.type)&&(0,B.D7)(h,g)}catch{}}),b.on("close",()=>{d||(clearTimeout(i),c(null))}),b.on("error",()=>{d||(clearTimeout(i),c(null))})}));if(!g)return b.kill("SIGTERM"),console.error("[chat] agent did not emit init event within timeout"),(0,D.ig)("Agent failed to start");return c&&console.warn(`[chat] agent started session ${g}`),Response.json({sessionId:g})}catch(a){return(0,D.Jo)(a,"Failed to start agent"),(0,D.ig)("Failed to start agent")}}(0,B.l$)((a,b)=>{(0,F.O9)(a,b)});let I=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/chat/route",pathname:"/api/chat",filename:"route",bundlePath:"app/api/chat/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/jonmakinen/Documents/cursor-local-remote/src/app/api/chat/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:J,workUnitAsyncStorage:K,serverHooks:L}=I;function M(){return(0,g.patchFetch)({workAsyncStorage:J,workUnitAsyncStorage:K})}async function N(a,b,c){var d;let e="/api/chat/route";"/index"===e&&(e="/");let g=await I.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||I.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===I.isDev||!E,H=E&&!G,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: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)=>I.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=>I.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(!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 I.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await I.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:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await I.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}}},3033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},4870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},5221:(a,b,c)=>{c.d(b,{K:()=>e});var d=c(9902);function e(){let a=process.env.CURSOR_WORKSPACE;return a?(0,d.resolve)(a):process.cwd()}},6277:(a,b,c)=>{c.d(b,{$m:()=>r,D7:()=>k,F1:()=>q,Ki:()=>l,VS:()=>n,Xw:()=>p,ix:()=>s,l$:()=>f,pl:()=>m,xy:()=>o});var d=c(401);let e=null;function f(a){e=a}let g=new Map,h=new Map,i=new Map,j=new Map;function k(a,b){let c=i.get(a);c||(c=[],i.set(a,c)),c.push(b);let d=j.get(a);if(d)for(let a of d)a()}function l(a){return i.get(a)??[]}function m(a,b){let c=j.get(a);c||(c=new Set,j.set(a,c));let d=c;return d.add(b),()=>{d.delete(b)}}function n(a,b,c){let f={child:b,sessionId:null,mapKey:a,workspace:c,startedAt:Date.now()};g.set(a,f);let k=()=>{let a=f.sessionId??f.mapKey;g.delete(f.mapKey);let b=h.get(f.mapKey);if(b)for(let a of(h.delete(f.mapKey),b))a();if(e&&f.sessionId)try{e(a,f.workspace)}catch{}setTimeout(()=>{i.delete(f.mapKey),j.delete(f.mapKey)},d.c1)};b.on("close",k),b.on("error",k)}function o(a,b){if(!g.has(a))return b(),()=>{};let c=h.get(a);c||(c=new Set,h.set(a,c));let d=c;return d.add(b),()=>{d.delete(b)}}function p(a,b){let c=g.get(a);c&&(c.sessionId=b,b!==a&&(g.set(b,c),g.delete(a),c.mapKey=b))}function q(){let a=new Set;for(let[b,c]of g)a.add(c.sessionId??b);return Array.from(a)}function r(a){return g.has(a)}function s(a){let b=g.get(a);return!!b&&(b.child.kill("SIGTERM"),!0)}},6293:a=>{a.exports=require("sql.js")},6439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},6505:(a,b,c)=>{c.d(b,{LS:()=>f,OG:()=>i,li:()=>g,vc:()=>h});var d=c(8629);let e=d.YjP().regex(/^[a-zA-Z0-9_-]{1,128}$/,"invalid sessionId"),f=d.Ikc({prompt:d.YjP().min(1,"prompt is required"),sessionId:e.optional(),model:d.YjP().max(128).regex(/^[a-zA-Z0-9._/-]+$/,"invalid model").optional(),mode:d.k5n(["agent","ask","plan"]).optional(),workspace:d.YjP().max(512).optional()}),g=d.Ikc({sessionId:e}),h=e;function i(a,b){let c=a.safeParse(b);if(c.success)return{data:c.data};let d=c.error.issues[0];return{error:d?.message??"Validation failed"}}},7367:a=>{a.exports=require("fs/promises")},9021:a=>{a.exports=require("fs")},9294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},9439:a=>{a.exports=require("os")},9646:a=>{a.exports=require("child_process")},9902:a=>{a.exports=require("path")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,878,545],()=>b(b.s=1926));module.exports=c})();
|