@agegr/pi-web 0.2.1 → 0.2.3
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/app-path-routes-manifest.json +16 -0
- package/.next/build/chunks/[root-of-the-server]__0d-m0h0._.js +206 -0
- package/.next/build/chunks/[root-of-the-server]__0ubbtyl._.js +500 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_06e.r3r._.js +13 -0
- package/.next/build/chunks/[turbopack]_runtime.js +890 -0
- package/.next/build/chunks/node_modules_13sb.px._.js +6765 -0
- package/.next/build/package.json +1 -0
- package/.next/build/postcss.js +6 -0
- package/.next/build-manifest.json +21 -0
- package/.next/diagnostics/build-diagnostics.json +6 -0
- package/.next/diagnostics/framework.json +1 -0
- package/.next/diagnostics/route-bundle-stats.json +28 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +13 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/prerender-manifest.json +114 -0
- package/.next/required-server-files.js +339 -0
- package/.next/required-server-files.json +339 -0
- package/.next/routes-manifest.json +140 -0
- package/.next/trace +1 -0
- package/.next/trace-build +1 -0
- package/.next/turbopack +0 -0
- package/.next/types/routes.d.ts +82 -0
- package/.next/types/validator.ts +160 -0
- package/README.md +12 -6
- package/bin/pi-web.js +3 -1
- package/package.json +5 -5
- package/.next/server/app/_global-error/page.js.map +0 -5
- package/.next/server/app/_not-found/page.js.map +0 -5
- package/.next/server/app/api/agent/[id]/events/route.js.map +0 -5
- package/.next/server/app/api/agent/[id]/route.js.map +0 -5
- package/.next/server/app/api/agent/new/route.js.map +0 -5
- package/.next/server/app/api/files/[...path]/route.js.map +0 -5
- package/.next/server/app/api/models/route.js.map +0 -5
- package/.next/server/app/api/models-config/route.js.map +0 -5
- package/.next/server/app/api/sessions/[id]/context/route.js.map +0 -5
- package/.next/server/app/api/sessions/[id]/route.js.map +0 -5
- package/.next/server/app/api/sessions/new/route.js.map +0 -5
- package/.next/server/app/api/sessions/route.js.map +0 -5
- package/.next/server/app/favicon.ico/route.js.map +0 -5
- package/.next/server/app/page.js.map +0 -5
- package/.next/server/chunks/[externals]_next_dist_0h.fyd6._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__002d92q._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__00a-~o4._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__06qx74m._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0_ehal9._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0a-p9wd._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0b0kii6._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0cw6f~v._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0llo_uy._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0rr3q~-._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0y7g-4j._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__11j~5mn._.js.map +0 -1
- package/.next/server/chunks/[turbopack]_runtime.js.map +0 -11
- package/.next/server/chunks/_next-internal_server_app_api_agent_[id]_events_route_actions_05o7blz.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_agent_[id]_route_actions_0kr98j0.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_agent_new_route_actions_0w3r5tj.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_files_[___path]_route_actions_0_g4akf.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_models-config_route_actions_0ipr5cq.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_models_route_actions_0vfccm4.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_sessions_[id]_context_route_actions_0d0pnzf.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_sessions_[id]_route_actions_0eo4u5w.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_sessions_new_route_actions_093p~n-.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_sessions_route_actions_0y1t9w0.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_095lj93.js.map +0 -1
- package/.next/server/chunks/lib_session-reader_ts_07kvkqq._.js.map +0 -1
- package/.next/server/chunks/node_modules_next_04~_e52._.js.map +0 -1
- package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0yubv2d.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__00d4x5d._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__02hi65f._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__06-2p1a._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__09z7o2x._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0jag6jd._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0pr3cat._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0pspq~2._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0w~zl.s._.js.map +0 -1
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +0 -11
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_09-gtaw.js.map +0 -1
- package/.next/server/chunks/ssr/app_layout_tsx_13yf0ls._.js.map +0 -1
- package/.next/server/chunks/ssr/components_ToolPanel_tsx_0r3vloj._.js.map +0 -1
- package/.next/server/chunks/ssr/components_ToolPanel_tsx_0ybdq6k._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_09w7yel._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_0vtdjw7._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_09y1ibj._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_002l7yi.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_02suzhc.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0nsg22r.js.map +0 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"pages404": true,
|
|
4
|
+
"appType": "app",
|
|
5
|
+
"caseSensitive": false,
|
|
6
|
+
"basePath": "",
|
|
7
|
+
"redirects": [
|
|
8
|
+
{
|
|
9
|
+
"source": "/:path+/",
|
|
10
|
+
"destination": "/:path+",
|
|
11
|
+
"internal": true,
|
|
12
|
+
"priority": true,
|
|
13
|
+
"statusCode": 308,
|
|
14
|
+
"regex": "^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"headers": [],
|
|
18
|
+
"onMatchHeaders": [],
|
|
19
|
+
"rewrites": {
|
|
20
|
+
"beforeFiles": [],
|
|
21
|
+
"afterFiles": [],
|
|
22
|
+
"fallback": []
|
|
23
|
+
},
|
|
24
|
+
"dynamicRoutes": [
|
|
25
|
+
{
|
|
26
|
+
"page": "/api/agent/[id]",
|
|
27
|
+
"regex": "^/api/agent/([^/]+?)(?:/)?$",
|
|
28
|
+
"routeKeys": {
|
|
29
|
+
"nxtPid": "nxtPid"
|
|
30
|
+
},
|
|
31
|
+
"namedRegex": "^/api/agent/(?<nxtPid>[^/]+?)(?:/)?$"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"page": "/api/agent/[id]/events",
|
|
35
|
+
"regex": "^/api/agent/([^/]+?)/events(?:/)?$",
|
|
36
|
+
"routeKeys": {
|
|
37
|
+
"nxtPid": "nxtPid"
|
|
38
|
+
},
|
|
39
|
+
"namedRegex": "^/api/agent/(?<nxtPid>[^/]+?)/events(?:/)?$"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"page": "/api/files/[...path]",
|
|
43
|
+
"regex": "^/api/files/(.+?)(?:/)?$",
|
|
44
|
+
"routeKeys": {
|
|
45
|
+
"nxtPpath": "nxtPpath"
|
|
46
|
+
},
|
|
47
|
+
"namedRegex": "^/api/files/(?<nxtPpath>.+?)(?:/)?$"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"page": "/api/sessions/[id]",
|
|
51
|
+
"regex": "^/api/sessions/([^/]+?)(?:/)?$",
|
|
52
|
+
"routeKeys": {
|
|
53
|
+
"nxtPid": "nxtPid"
|
|
54
|
+
},
|
|
55
|
+
"namedRegex": "^/api/sessions/(?<nxtPid>[^/]+?)(?:/)?$"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"page": "/api/sessions/[id]/context",
|
|
59
|
+
"regex": "^/api/sessions/([^/]+?)/context(?:/)?$",
|
|
60
|
+
"routeKeys": {
|
|
61
|
+
"nxtPid": "nxtPid"
|
|
62
|
+
},
|
|
63
|
+
"namedRegex": "^/api/sessions/(?<nxtPid>[^/]+?)/context(?:/)?$"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"staticRoutes": [
|
|
67
|
+
{
|
|
68
|
+
"page": "/",
|
|
69
|
+
"regex": "^/(?:/)?$",
|
|
70
|
+
"routeKeys": {},
|
|
71
|
+
"namedRegex": "^/(?:/)?$"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"page": "/_global-error",
|
|
75
|
+
"regex": "^/_global\\-error(?:/)?$",
|
|
76
|
+
"routeKeys": {},
|
|
77
|
+
"namedRegex": "^/_global\\-error(?:/)?$"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"page": "/_not-found",
|
|
81
|
+
"regex": "^/_not\\-found(?:/)?$",
|
|
82
|
+
"routeKeys": {},
|
|
83
|
+
"namedRegex": "^/_not\\-found(?:/)?$"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"page": "/api/agent/new",
|
|
87
|
+
"regex": "^/api/agent/new(?:/)?$",
|
|
88
|
+
"routeKeys": {},
|
|
89
|
+
"namedRegex": "^/api/agent/new(?:/)?$"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"page": "/api/models",
|
|
93
|
+
"regex": "^/api/models(?:/)?$",
|
|
94
|
+
"routeKeys": {},
|
|
95
|
+
"namedRegex": "^/api/models(?:/)?$"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"page": "/api/models-config",
|
|
99
|
+
"regex": "^/api/models\\-config(?:/)?$",
|
|
100
|
+
"routeKeys": {},
|
|
101
|
+
"namedRegex": "^/api/models\\-config(?:/)?$"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"page": "/api/sessions",
|
|
105
|
+
"regex": "^/api/sessions(?:/)?$",
|
|
106
|
+
"routeKeys": {},
|
|
107
|
+
"namedRegex": "^/api/sessions(?:/)?$"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"page": "/api/sessions/new",
|
|
111
|
+
"regex": "^/api/sessions/new(?:/)?$",
|
|
112
|
+
"routeKeys": {},
|
|
113
|
+
"namedRegex": "^/api/sessions/new(?:/)?$"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"page": "/favicon.ico",
|
|
117
|
+
"regex": "^/favicon\\.ico(?:/)?$",
|
|
118
|
+
"routeKeys": {},
|
|
119
|
+
"namedRegex": "^/favicon\\.ico(?:/)?$"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"dataRoutes": [],
|
|
123
|
+
"rsc": {
|
|
124
|
+
"header": "rsc",
|
|
125
|
+
"varyHeader": "rsc, next-router-state-tree, next-router-prefetch, next-router-segment-prefetch",
|
|
126
|
+
"prefetchHeader": "next-router-prefetch",
|
|
127
|
+
"didPostponeHeader": "x-nextjs-postponed",
|
|
128
|
+
"contentTypeHeader": "text/x-component",
|
|
129
|
+
"suffix": ".rsc",
|
|
130
|
+
"prefetchSegmentHeader": "next-router-segment-prefetch",
|
|
131
|
+
"prefetchSegmentSuffix": ".segment.rsc",
|
|
132
|
+
"prefetchSegmentDirSuffix": ".segments",
|
|
133
|
+
"clientParamParsing": false,
|
|
134
|
+
"dynamicRSCPrerender": false
|
|
135
|
+
},
|
|
136
|
+
"rewriteHeaders": {
|
|
137
|
+
"pathHeader": "x-nextjs-rewritten-path",
|
|
138
|
+
"queryHeader": "x-nextjs-rewritten-query"
|
|
139
|
+
}
|
|
140
|
+
}
|
package/.next/trace
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"name":"generate-buildid","duration":77,"timestamp":2678574391530,"id":4,"parentId":1,"tags":{},"startTime":1774330853905,"traceId":"da46b141a3d43ada"},{"name":"load-custom-routes","duration":164,"timestamp":2678574391650,"id":5,"parentId":1,"tags":{},"startTime":1774330853905,"traceId":"da46b141a3d43ada"},{"name":"create-dist-dir","duration":2082,"timestamp":2678574391829,"id":6,"parentId":1,"tags":{},"startTime":1774330853906,"traceId":"da46b141a3d43ada"},{"name":"clean","duration":303097,"timestamp":2678574394311,"id":7,"parentId":1,"tags":{},"startTime":1774330853908,"traceId":"da46b141a3d43ada"},{"name":"discover-routes","duration":2945,"timestamp":2678574702532,"id":8,"parentId":1,"tags":{},"startTime":1774330854216,"traceId":"da46b141a3d43ada"},{"name":"create-root-mapping","duration":24,"timestamp":2678574705496,"id":9,"parentId":1,"tags":{},"startTime":1774330854219,"traceId":"da46b141a3d43ada"},{"name":"generate-route-types","duration":9125,"timestamp":2678574706078,"id":10,"parentId":1,"tags":{},"startTime":1774330854220,"traceId":"da46b141a3d43ada"},{"name":"public-dir-conflict-check","duration":48,"timestamp":2678574715253,"id":11,"parentId":1,"tags":{},"startTime":1774330854229,"traceId":"da46b141a3d43ada"},{"name":"generate-routes-manifest","duration":1172,"timestamp":2678574715352,"id":12,"parentId":1,"tags":{},"startTime":1774330854229,"traceId":"da46b141a3d43ada"},{"name":"run-turbopack","duration":1841741,"timestamp":2678574720511,"id":14,"parentId":1,"tags":{},"startTime":1774330854234,"traceId":"da46b141a3d43ada"},{"name":"turbopack-build-events","duration":31,"timestamp":2678574819902,"id":15,"parentId":1,"tags":{},"startTime":1774330854334,"traceId":"da46b141a3d43ada"},{"name":"run-typescript","duration":1615008,"timestamp":2678576582370,"id":16,"parentId":1,"tags":{},"startTime":1774330856096,"traceId":"da46b141a3d43ada"},{"name":"generate-required-server-files","duration":467,"timestamp":2678578197774,"id":18,"parentId":1,"tags":{},"startTime":1774330857712,"traceId":"da46b141a3d43ada"},{"name":"check-static-error-page","duration":2789,"timestamp":2678578208407,"id":20,"parentId":19,"tags":{},"startTime":1774330857722,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":237092,"timestamp":2678578211503,"id":36,"parentId":22,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":239290,"timestamp":2678578209365,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1774330857723,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":272186,"timestamp":2678578211408,"id":35,"parentId":21,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":274767,"timestamp":2678578208884,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1774330857723,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":276733,"timestamp":2678578211651,"id":42,"parentId":31,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":277647,"timestamp":2678578210758,"id":31,"parentId":19,"tags":{"page":"/api/sessions/new"},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":279929,"timestamp":2678578213380,"id":46,"parentId":27,"tags":{},"startTime":1774330857727,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":282819,"timestamp":2678578210530,"id":27,"parentId":19,"tags":{"page":"/api/models-config"},"startTime":1774330857724,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":286005,"timestamp":2678578211623,"id":41,"parentId":30,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":286976,"timestamp":2678578210707,"id":30,"parentId":19,"tags":{"page":"/api/sessions/[id]"},"startTime":1774330857724,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":287482,"timestamp":2678578213449,"id":47,"parentId":28,"tags":{},"startTime":1774330857727,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":290355,"timestamp":2678578210606,"id":28,"parentId":19,"tags":{"page":"/api/models"},"startTime":1774330857724,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":289390,"timestamp":2678578211672,"id":43,"parentId":32,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":290273,"timestamp":2678578210802,"id":32,"parentId":19,"tags":{"page":"/api/sessions"},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":289447,"timestamp":2678578211691,"id":44,"parentId":33,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":290303,"timestamp":2678578210849,"id":33,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":291800,"timestamp":2678578211600,"id":40,"parentId":29,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":292767,"timestamp":2678578210662,"id":29,"parentId":19,"tags":{"page":"/api/sessions/[id]/context"},"startTime":1774330857724,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":301785,"timestamp":2678578211579,"id":39,"parentId":26,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":302900,"timestamp":2678578210485,"id":26,"parentId":19,"tags":{"page":"/api/files/[...path]"},"startTime":1774330857724,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":303185,"timestamp":2678578213536,"id":48,"parentId":34,"tags":{},"startTime":1774330857727,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":305618,"timestamp":2678578211135,"id":34,"parentId":19,"tags":{"page":"/"},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":649226,"timestamp":2678578211548,"id":38,"parentId":25,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":650364,"timestamp":2678578210440,"id":25,"parentId":19,"tags":{"page":"/api/agent/new"},"startTime":1774330857724,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":650090,"timestamp":2678578211528,"id":37,"parentId":24,"tags":{},"startTime":1774330857725,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":651246,"timestamp":2678578210386,"id":24,"parentId":19,"tags":{"page":"/api/agent/[id]"},"startTime":1774330857724,"traceId":"da46b141a3d43ada"},{"name":"is-page-static","duration":655296,"timestamp":2678578213153,"id":45,"parentId":23,"tags":{},"startTime":1774330857727,"traceId":"da46b141a3d43ada"},{"name":"check-page","duration":658987,"timestamp":2678578209475,"id":23,"parentId":19,"tags":{"page":"/api/agent/[id]/events"},"startTime":1774330857723,"traceId":"da46b141a3d43ada"},{"name":"static-check","duration":660538,"timestamp":2678578207937,"id":19,"parentId":1,"tags":{},"startTime":1774330857722,"traceId":"da46b141a3d43ada"},{"name":"write-routes-manifest","duration":339,"timestamp":2678578868936,"id":50,"parentId":1,"tags":{},"startTime":1774330858383,"traceId":"da46b141a3d43ada"},{"name":"load-dotenv","duration":10,"timestamp":2678578873161,"id":53,"parentId":52,"tags":{},"startTime":1774330858387,"traceId":"da46b141a3d43ada"},{"name":"run-export-path-map","duration":196,"timestamp":2678578874186,"id":54,"parentId":52,"tags":{},"startTime":1774330858388,"traceId":"da46b141a3d43ada"},{"name":"next-export","duration":87922,"timestamp":2678578872680,"id":52,"parentId":1,"tags":{},"startTime":1774330858386,"traceId":"da46b141a3d43ada"},{"name":"move-exported-app-not-found-","duration":339,"timestamp":2678578961242,"id":55,"parentId":51,"tags":{},"startTime":1774330858475,"traceId":"da46b141a3d43ada"},{"name":"move-exported-app-global-error-","duration":252,"timestamp":2678578961618,"id":56,"parentId":51,"tags":{},"startTime":1774330858475,"traceId":"da46b141a3d43ada"},{"name":"static-generation","duration":92171,"timestamp":2678578870341,"id":51,"parentId":1,"tags":{},"startTime":1774330858384,"traceId":"da46b141a3d43ada"},{"name":"write-routes-manifest","duration":138,"timestamp":2678578962581,"id":57,"parentId":1,"tags":{},"startTime":1774330858476,"traceId":"da46b141a3d43ada"},{"name":"print-tree-view","duration":1753,"timestamp":2678578968910,"id":58,"parentId":1,"tags":{},"startTime":1774330858483,"traceId":"da46b141a3d43ada"},{"name":"write-route-bundle-stats","duration":5489,"timestamp":2678578970671,"id":59,"parentId":1,"tags":{},"startTime":1774330858484,"traceId":"da46b141a3d43ada"},{"name":"telemetry-flush","duration":488854,"timestamp":2678578976170,"id":60,"parentId":1,"tags":{},"startTime":1774330858490,"traceId":"da46b141a3d43ada"},{"name":"next-build","duration":5092611,"timestamp":2678574372444,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1774330853886,"traceId":"da46b141a3d43ada"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"name":"run-turbopack","duration":1841741,"timestamp":2678574720511,"id":14,"parentId":1,"tags":{},"startTime":1774330854234,"traceId":"da46b141a3d43ada"},{"name":"turbopack-build-events","duration":31,"timestamp":2678574819902,"id":15,"parentId":1,"tags":{},"startTime":1774330854334,"traceId":"da46b141a3d43ada"},{"name":"run-typescript","duration":1615008,"timestamp":2678576582370,"id":16,"parentId":1,"tags":{},"startTime":1774330856096,"traceId":"da46b141a3d43ada"},{"name":"static-check","duration":660538,"timestamp":2678578207937,"id":19,"parentId":1,"tags":{},"startTime":1774330857722,"traceId":"da46b141a3d43ada"},{"name":"static-generation","duration":92171,"timestamp":2678578870341,"id":51,"parentId":1,"tags":{},"startTime":1774330858384,"traceId":"da46b141a3d43ada"},{"name":"telemetry-flush","duration":488854,"timestamp":2678578976170,"id":60,"parentId":1,"tags":{},"startTime":1774330858490,"traceId":"da46b141a3d43ada"},{"name":"next-build","duration":5092611,"timestamp":2678574372444,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1774330853886,"traceId":"da46b141a3d43ada"}]
|
package/.next/turbopack
ADDED
|
File without changes
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// This file is generated automatically by Next.js
|
|
2
|
+
// Do not edit this file manually
|
|
3
|
+
|
|
4
|
+
type AppRoutes = "/"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/events" | "/api/agent/new" | "/api/files/[...path]" | "/api/models" | "/api/models-config" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/context" | "/api/sessions/new"
|
|
6
|
+
type PageRoutes = never
|
|
7
|
+
type LayoutRoutes = "/"
|
|
8
|
+
type RedirectRoutes = never
|
|
9
|
+
type RewriteRoutes = never
|
|
10
|
+
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface ParamMap {
|
|
14
|
+
"/": {}
|
|
15
|
+
"/api/agent/[id]": { "id": string; }
|
|
16
|
+
"/api/agent/[id]/events": { "id": string; }
|
|
17
|
+
"/api/agent/new": {}
|
|
18
|
+
"/api/files/[...path]": { "path": string[]; }
|
|
19
|
+
"/api/models": {}
|
|
20
|
+
"/api/models-config": {}
|
|
21
|
+
"/api/sessions": {}
|
|
22
|
+
"/api/sessions/[id]": { "id": string; }
|
|
23
|
+
"/api/sessions/[id]/context": { "id": string; }
|
|
24
|
+
"/api/sessions/new": {}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export type ParamsOf<Route extends Routes> = ParamMap[Route]
|
|
29
|
+
|
|
30
|
+
interface LayoutSlotMap {
|
|
31
|
+
"/": never
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap, AppRouteHandlerRoutes }
|
|
36
|
+
|
|
37
|
+
declare global {
|
|
38
|
+
/**
|
|
39
|
+
* Props for Next.js App Router page components
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* export default function Page(props: PageProps<'/blog/[slug]'>) {
|
|
43
|
+
* const { slug } = await props.params
|
|
44
|
+
* return <div>Blog post: {slug}</div>
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
interface PageProps<AppRoute extends AppRoutes> {
|
|
49
|
+
params: Promise<ParamMap[AppRoute]>
|
|
50
|
+
searchParams: Promise<Record<string, string | string[] | undefined>>
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Props for Next.js App Router layout components
|
|
55
|
+
* @example
|
|
56
|
+
* ```tsx
|
|
57
|
+
* export default function Layout(props: LayoutProps<'/dashboard'>) {
|
|
58
|
+
* return <div>{props.children}</div>
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
type LayoutProps<LayoutRoute extends LayoutRoutes> = {
|
|
63
|
+
params: Promise<ParamMap[LayoutRoute]>
|
|
64
|
+
children: React.ReactNode
|
|
65
|
+
} & {
|
|
66
|
+
[K in LayoutSlotMap[LayoutRoute]]: React.ReactNode
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Context for Next.js App Router route handlers
|
|
71
|
+
* @example
|
|
72
|
+
* ```tsx
|
|
73
|
+
* export async function GET(request: NextRequest, context: RouteContext<'/api/users/[id]'>) {
|
|
74
|
+
* const { id } = await context.params
|
|
75
|
+
* return Response.json({ id })
|
|
76
|
+
* }
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
interface RouteContext<AppRouteHandlerRoute extends AppRouteHandlerRoutes> {
|
|
80
|
+
params: Promise<ParamMap[AppRouteHandlerRoute]>
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// This file is generated automatically by Next.js
|
|
2
|
+
// Do not edit this file manually
|
|
3
|
+
// This file validates that all pages and layouts export the correct types
|
|
4
|
+
|
|
5
|
+
import type { AppRoutes, LayoutRoutes, ParamMap, AppRouteHandlerRoutes } from "./routes.js"
|
|
6
|
+
import type { ResolvingMetadata, ResolvingViewport } from "next/types.js"
|
|
7
|
+
import type { NextRequest } from 'next/server.js'
|
|
8
|
+
|
|
9
|
+
type AppPageConfig<Route extends AppRoutes = AppRoutes> = {
|
|
10
|
+
default: React.ComponentType<{ params: Promise<ParamMap[Route]> } & any> | ((props: { params: Promise<ParamMap[Route]> } & any) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
11
|
+
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
12
|
+
generateMetadata?: (
|
|
13
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
14
|
+
parent: ResolvingMetadata
|
|
15
|
+
) => Promise<any> | any
|
|
16
|
+
generateViewport?: (
|
|
17
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
18
|
+
parent: ResolvingViewport
|
|
19
|
+
) => Promise<any> | any
|
|
20
|
+
metadata?: any
|
|
21
|
+
viewport?: any
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
|
|
25
|
+
default: React.ComponentType<LayoutProps<Route>> | ((props: LayoutProps<Route>) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
26
|
+
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
27
|
+
generateMetadata?: (
|
|
28
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
29
|
+
parent: ResolvingMetadata
|
|
30
|
+
) => Promise<any> | any
|
|
31
|
+
generateViewport?: (
|
|
32
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
33
|
+
parent: ResolvingViewport
|
|
34
|
+
) => Promise<any> | any
|
|
35
|
+
metadata?: any
|
|
36
|
+
viewport?: any
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRoutes> = {
|
|
40
|
+
GET?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
41
|
+
POST?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
42
|
+
PUT?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
43
|
+
PATCH?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
44
|
+
DELETE?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
45
|
+
HEAD?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
46
|
+
OPTIONS?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
// Validate ../../app/page.tsx
|
|
51
|
+
{
|
|
52
|
+
type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
|
|
53
|
+
const handler = {} as typeof import("../../app/page.js")
|
|
54
|
+
type __Check = __IsExpected<typeof handler>
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
type __Unused = __Check
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Validate ../../app/api/agent/[id]/events/route.ts
|
|
60
|
+
{
|
|
61
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/agent/[id]/events">> = Specific
|
|
62
|
+
const handler = {} as typeof import("../../app/api/agent/[id]/events/route.js")
|
|
63
|
+
type __Check = __IsExpected<typeof handler>
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
type __Unused = __Check
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Validate ../../app/api/agent/[id]/route.ts
|
|
69
|
+
{
|
|
70
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/agent/[id]">> = Specific
|
|
71
|
+
const handler = {} as typeof import("../../app/api/agent/[id]/route.js")
|
|
72
|
+
type __Check = __IsExpected<typeof handler>
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
type __Unused = __Check
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Validate ../../app/api/agent/new/route.ts
|
|
78
|
+
{
|
|
79
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/agent/new">> = Specific
|
|
80
|
+
const handler = {} as typeof import("../../app/api/agent/new/route.js")
|
|
81
|
+
type __Check = __IsExpected<typeof handler>
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
type __Unused = __Check
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Validate ../../app/api/files/[...path]/route.ts
|
|
87
|
+
{
|
|
88
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/files/[...path]">> = Specific
|
|
89
|
+
const handler = {} as typeof import("../../app/api/files/[...path]/route.js")
|
|
90
|
+
type __Check = __IsExpected<typeof handler>
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
type __Unused = __Check
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Validate ../../app/api/models-config/route.ts
|
|
96
|
+
{
|
|
97
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/models-config">> = Specific
|
|
98
|
+
const handler = {} as typeof import("../../app/api/models-config/route.js")
|
|
99
|
+
type __Check = __IsExpected<typeof handler>
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
type __Unused = __Check
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Validate ../../app/api/models/route.ts
|
|
105
|
+
{
|
|
106
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/models">> = Specific
|
|
107
|
+
const handler = {} as typeof import("../../app/api/models/route.js")
|
|
108
|
+
type __Check = __IsExpected<typeof handler>
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
type __Unused = __Check
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Validate ../../app/api/sessions/[id]/context/route.ts
|
|
114
|
+
{
|
|
115
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/sessions/[id]/context">> = Specific
|
|
116
|
+
const handler = {} as typeof import("../../app/api/sessions/[id]/context/route.js")
|
|
117
|
+
type __Check = __IsExpected<typeof handler>
|
|
118
|
+
// @ts-ignore
|
|
119
|
+
type __Unused = __Check
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Validate ../../app/api/sessions/[id]/route.ts
|
|
123
|
+
{
|
|
124
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/sessions/[id]">> = Specific
|
|
125
|
+
const handler = {} as typeof import("../../app/api/sessions/[id]/route.js")
|
|
126
|
+
type __Check = __IsExpected<typeof handler>
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
type __Unused = __Check
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Validate ../../app/api/sessions/new/route.ts
|
|
132
|
+
{
|
|
133
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/sessions/new">> = Specific
|
|
134
|
+
const handler = {} as typeof import("../../app/api/sessions/new/route.js")
|
|
135
|
+
type __Check = __IsExpected<typeof handler>
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
type __Unused = __Check
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Validate ../../app/api/sessions/route.ts
|
|
141
|
+
{
|
|
142
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/sessions">> = Specific
|
|
143
|
+
const handler = {} as typeof import("../../app/api/sessions/route.js")
|
|
144
|
+
type __Check = __IsExpected<typeof handler>
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
type __Unused = __Check
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
// Validate ../../app/layout.tsx
|
|
154
|
+
{
|
|
155
|
+
type __IsExpected<Specific extends LayoutConfig<"/">> = Specific
|
|
156
|
+
const handler = {} as typeof import("../../app/layout.js")
|
|
157
|
+
type __Check = __IsExpected<typeof handler>
|
|
158
|
+
// @ts-ignore
|
|
159
|
+
type __Unused = __Check
|
|
160
|
+
}
|
package/README.md
CHANGED
|
@@ -2,20 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
A web interface for the [pi coding agent](https://github.com/badlogic/pi-mono). Browse sessions, chat with the agent, fork conversations, and navigate message branches — all in the browser.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
9
|
-
|
|
8
|
+
npm install -g @agegr/pi-web
|
|
9
|
+
pi-web
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Open [http://localhost:3030](http://localhost:3030).
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Set a custom port with the `PORT` environment variable:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
PORT=8080 pi-web
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Development Setup
|
|
15
21
|
|
|
16
22
|
```bash
|
|
17
|
-
npm
|
|
18
|
-
npm
|
|
23
|
+
npm install
|
|
24
|
+
npm run dev
|
|
19
25
|
```
|
|
20
26
|
|
|
21
27
|
Recommended: download a pre-configured working folder (with skills already set up) from https://github.com/agegr/working-chat/
|
package/bin/pi-web.js
CHANGED
|
@@ -6,7 +6,8 @@ const path = require("path");
|
|
|
6
6
|
const fs = require("fs");
|
|
7
7
|
|
|
8
8
|
const pkgDir = path.join(__dirname, "..");
|
|
9
|
-
const
|
|
9
|
+
const isWindows = process.platform === "win32";
|
|
10
|
+
const nextBin = path.join(pkgDir, "node_modules", ".bin", isWindows ? "next.cmd" : "next");
|
|
10
11
|
const nextDir = path.join(pkgDir, ".next");
|
|
11
12
|
const port = process.env.PORT || "3030";
|
|
12
13
|
|
|
@@ -19,6 +20,7 @@ const child = spawn(nextBin, ["start", "-p", port], {
|
|
|
19
20
|
cwd: pkgDir,
|
|
20
21
|
stdio: "inherit",
|
|
21
22
|
env: { ...process.env },
|
|
23
|
+
shell: isWindows,
|
|
22
24
|
});
|
|
23
25
|
|
|
24
26
|
child.on("exit", (code) => process.exit(code ?? 0));
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agegr/pi-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Web UI for the pi coding agent",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pi-web": "bin/pi-web.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"bin",
|
|
10
|
-
".next
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
10
|
+
".next",
|
|
11
|
+
"!.next/cache",
|
|
12
|
+
"!.next/dev",
|
|
13
|
+
"!.next/**/*.js.map",
|
|
14
14
|
"public",
|
|
15
15
|
"next.config.ts",
|
|
16
16
|
"package.json"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|