rigscope 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +3 -3
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +6 -6
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/administration/page_client-reference-manifest.js +1 -1
- package/.next/server/app/administration.html +1 -1
- package/.next/server/app/administration.rsc +3 -3
- package/.next/server/app/administration.segments/_full.segment.rsc +3 -3
- package/.next/server/app/administration.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/administration.segments/administration/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/alerts/page.js +1 -1
- package/.next/server/app/alerts/page_client-reference-manifest.js +1 -1
- package/.next/server/app/alerts.html +1 -1
- package/.next/server/app/alerts.rsc +4 -4
- package/.next/server/app/alerts.segments/_full.segment.rsc +4 -4
- package/.next/server/app/alerts.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/alerts.segments/alerts/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/connections/page.js +1 -1
- package/.next/server/app/connections/page.js.nft.json +1 -1
- package/.next/server/app/connections/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections.html +1 -1
- package/.next/server/app/connections.rsc +6 -6
- package/.next/server/app/connections.segments/_full.segment.rsc +6 -6
- package/.next/server/app/connections.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/connections.segments/connections/__PAGE__.segment.rsc +6 -6
- package/.next/server/app/history/page_client-reference-manifest.js +1 -1
- package/.next/server/app/history.html +1 -1
- package/.next/server/app/history.rsc +3 -3
- package/.next/server/app/history.segments/_full.segment.rsc +3 -3
- package/.next/server/app/history.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/history.segments/history/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +6 -6
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/.next/server/app/index.segments/_full.segment.rsc +6 -6
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +2 -2
- package/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/machines/[machineId]/page.js +1 -1
- package/.next/server/app/machines/[machineId]/page.js.nft.json +1 -1
- package/.next/server/app/machines/[machineId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/processes/page.js +1 -1
- package/.next/server/app/processes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/processes.html +1 -1
- package/.next/server/app/processes.rsc +4 -4
- package/.next/server/app/processes.segments/_full.segment.rsc +4 -4
- package/.next/server/app/processes.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/processes.segments/processes/__PAGE__.segment.rsc +4 -4
- package/.next/server/app-paths-manifest.json +3 -3
- package/.next/server/chunks/364.js +1 -0
- package/.next/server/chunks/751.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/103-13ec30dcc059b9d3.js +1 -0
- package/.next/static/chunks/{227-417939c480f50747.js → 130-e940915010276f88.js} +1 -1
- package/.next/static/chunks/app/alerts/{page-fe0e877778c60af8.js → page-2548b2ab0c057953.js} +1 -1
- package/.next/static/chunks/app/connections/{page-99cd54d6929b3f1f.js → page-07113bf16cb352e7.js} +1 -1
- package/.next/static/chunks/app/machines/[machineId]/{page-1a25a267563c18c0.js → page-0b89e4393a137c4d.js} +1 -1
- package/.next/static/chunks/app/{page-1ae9fc94c897785b.js → page-c68554c93016dd13.js} +1 -1
- package/.next/static/chunks/app/processes/{page-0e98a4a64e829c5f.js → page-b6d97d119f10e2a1.js} +3 -3
- package/.next/static/css/fb3ad9534f4681e6.css +1 -0
- package/CHANGELOG.md +14 -0
- package/DESIGN.md +27 -16
- package/dist/cli.cjs +1 -0
- package/dist/collector.cjs +1 -1
- package/dist/hub.cjs +1 -1
- package/docs/installation.md +6 -3
- package/docs/releasing.md +12 -12
- package/package.json +1 -1
- package/.next/server/chunks/877.js +0 -1
- package/.next/static/chunks/103-c47318242b24e9ac.js +0 -1
- package/.next/static/css/3fbf75e4c471c6a8.css +0 -1
- /package/.next/static/{-mNveXe-cHv8irQe97wI_ → oxwySrJXqXq8O6_7AzZGe}/_buildManifest.js +0 -0
- /package/.next/static/{-mNveXe-cHv8irQe97wI_ → oxwySrJXqXq8O6_7AzZGe}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/machines/[machineId]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"86673","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"40015","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"76670","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"7867","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"4833","name":"*","chunks":[],"async":false}},"2939":{"*":{"id":"81328","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"93022","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"71793","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"9479","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"81931","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"30847","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"85909","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"58910","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/triet/Project/rigscope/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/app/globals.css":{"id":1743,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/theme-provider.tsx":{"id":2737,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/live/live-provider.tsx":{"id":9939,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/machines/[machineId]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"86673","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"40015","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"76670","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"7867","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"4833","name":"*","chunks":[],"async":false}},"2939":{"*":{"id":"81328","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"93022","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"71793","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"9479","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"81931","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"30847","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"85909","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"58910","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/triet/Project/rigscope/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/app/globals.css":{"id":1743,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/theme-provider.tsx":{"id":2737,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/live/live-provider.tsx":{"id":9939,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/admin/administration-view.tsx":{"id":7044,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/alerts/alerts-view.tsx":{"id":1461,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/resources/connections-panels.tsx":{"id":5773,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/history/history-view.tsx":{"id":2939,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-navigation.tsx":{"id":1721,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/shell/sidebar.tsx":{"id":2701,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/theme-toggle.tsx":{"id":2394,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/login-view.tsx":{"id":5000,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-view.tsx":{"id":8887,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-514e554087419c71.js","103","static/chunks/103-13ec30dcc059b9d3.js","130","static/chunks/130-e940915010276f88.js","408","static/chunks/408-29f55984738967db.js","900","static/chunks/app/machines/%5BmachineId%5D/page-0b89e4393a137c4d.js"],"async":false},"/home/triet/Project/rigscope/src/components/live/fleet-view.tsx":{"id":7281,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-514e554087419c71.js","103","static/chunks/103-13ec30dcc059b9d3.js","130","static/chunks/130-e940915010276f88.js","974","static/chunks/app/page-c68554c93016dd13.js"],"async":false},"/home/triet/Project/rigscope/src/components/processes/processes-view.tsx":{"id":7339,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/triet/Project/rigscope/src/":[],"/home/triet/Project/rigscope/src/app/layout":[{"inlined":false,"path":"static/css/fb3ad9534f4681e6.css"}],"/home/triet/Project/rigscope/src/app/page":[],"/home/triet/Project/rigscope/src/app/machines/[machineId]/page":[]},"rscModuleMapping":{"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"29953","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"28565","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"46568","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"50369","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"65223","name":"*","chunks":[],"async":false}},"2939":{"*":{"id":"79173","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"52604","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"37147","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"2902","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"22993","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"89893","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"73132","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"89604","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}};
|
package/.next/server/app/page.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=974,a.ids=[974],a.modules={126:(a,b,c)=>{Promise.resolve().then(c.bind(c,22993))},1498:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4494:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g,metadata:()=>f});var d=c(5735),e=c(22993);let f={title:"Fleet"};function g(){return(0,d.jsx)(e.FleetView,{})}},7627:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>p,handler:()=>r,routeModule:()=>q});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n={children:["",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,4494))),"/home/triet/Project/rigscope/src/app/page.tsx"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[i,"/home/triet/Project/rigscope/src/app/layout.tsx"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]}.children,o=(0,e.H)({tree:n,page:"/page",pathname:"/",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),p=o.__next_app__,q=o.routeModule,r=o.handler},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},8806:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},22993:(a,b,c)=>{"use strict";c.d(b,{FleetView:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call FleetView() from the server but FleetView 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.")},"/home/triet/Project/rigscope/src/components/live/fleet-view.tsx","FleetView")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},48878:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]])},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66125:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]])},81931:(a,b,c)=>{"use strict";c.d(b,{FleetView:()=>J});var d=c(48249),e=c(2116),f=c.n(e),g=c(8806),h=c(48878),i=c(66125),j=c(1498),k=c(67484),l=c(22091),m=c(22338),n=c(81232),o=c(75006),p=c(50280),q=c(4155),r=c(93224),s=c(58910),t=c(65666),u=c(29356),v=c(99837);let w={ok:"bg-ok-soft text-ok",degraded:"bg-warn-soft text-warn",stale:"bg-warn-soft text-warn",disconnected:"bg-crit-soft text-crit",unseen:"border border-border text-muted-foreground"};function x(a){return"value"===a.state?a.stale?{out:"stale",usedBytes:a.value.usedBytes,totalBytes:a.value.totalBytes}:{out:"value",usedBytes:a.value.usedBytes,totalBytes:a.value.totalBytes}:"unavailable"===a.state?{out:"unavailable",reason:a.reason}:{out:"absent"}}function y({level:a}){return(0,d.jsxs)("span",{className:`tnum inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs ${w[a]}`,children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"inline-block h-1.5 w-1.5 rounded-full bg-current opacity-70"}),(0,r.fv)(a)]})}function z(a){return`No update for over ${(0,r.$)(a)} (judged by hub receipt time)`}function A({field:a,isHeld:b,thresholdMs:c}){return"value"===a.out?(0,d.jsxs)("span",{className:"tnum text-sm",children:[(0,r.l9)(a.value),b?(0,d.jsx)(B,{}):null]}):"stale"===a.out?(0,d.jsxs)("span",{className:"tnum text-sm",children:[(0,r.l9)(a.value),(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:z(c)})})]}):"unavailable"===a.out?(0,d.jsx)("span",{className:"text-xs text-warn",title:a.reason,children:"Unavailable"}):(0,d.jsx)("span",{className:"tnum text-sm text-muted-foreground",children:"—"})}function B(){return(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"held",title:"Last known value, kept while the connection is down"})})}function C(a){return"value"===a.out||"stale"===a.out?`${(0,r.z3)(a.usedBytes)} / ${(0,r.z3)(a.totalBytes)}`:"unavailable"===a.out?"Unavailable":"—"}function D({summary:a}){if(null===a)return(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:"No GPU data"});if(0===a.supportedCount)return(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",title:a.reason??"No supported telemetry",children:[a.count," adapter",1===a.count?"":"s"," \xb7 no telemetry"]});if(a.reason)return(0,d.jsxs)("span",{className:"text-xs text-warn",title:a.reason,children:[a.supportedCount," GPU",1===a.supportedCount?"":"s"," \xb7 unavailable"]});let b=null===a.maxUtilizationPercent?"util —":`util ${(0,r.l9)(a.maxUtilizationPercent)}`,c=null!==a.memoryUsedBytes&&null!==a.memoryTotalBytes?`${(0,r.z3)(a.memoryUsedBytes)} / ${(0,r.z3)(a.memoryTotalBytes)}`:"VRAM —";return(0,d.jsx)("span",{className:"tnum text-xs",children:a.partial?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("span",{className:"text-warn",children:[a.okCount,"/",a.supportedCount," GPUs reporting"]}),(0,d.jsxs)("span",{className:"text-muted-foreground",children:[" \xb7 ",b," \xb7 ",c," "]}),(0,d.jsx)(p.vw,{text:"partial",title:"At least one supported GPU has no current reading"}),a.stale?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"last known",title:"Retained from the last accepted sample"})}):null]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-foreground",children:a.supportedCount}),(0,d.jsxs)("span",{className:"text-muted-foreground",children:[" ","GPU",1===a.supportedCount?"":"s"," \xb7 ",b," \xb7 ",c]}),a.stale?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"last known",title:"Retained from the last accepted sample"})}):null]})})}function E({state:a}){let b=(0,v.V5)(a);return 0===b.length?null:(0,d.jsx)("ul",{className:"mt-1 flex flex-wrap gap-1",children:b.map(a=>(0,d.jsx)("li",{className:"rounded-full border border-border px-1.5 py-0.5 text-xs text-muted-foreground",children:a},a))})}function F({state:a}){let b=(0,v.v4)(a),c=[a.hostname!==b?a.hostname:null].filter(a=>!!(a&&a!==b)).join(" \xb7 ");return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,d.jsx)("span",{className:"truncate text-sm font-medium",children:b}),c?(0,d.jsx)("span",{className:"tnum truncate text-xs text-muted-foreground",children:c}):null,(0,d.jsx)(E,{state:a})]})}function G({points:a}){let b=(a.at(-1)?.receivedAtLocal??0)-6e5,c=a.filter(a=>a.receivedAtLocal>=b),e=(0,t.K)(c,160,40),f=(0,t.K)(c.map(a=>({...a,cpuPercent:a.memoryPercent})),160,40);return(0,d.jsxs)("div",{className:"w-40 max-w-full",title:"CPU and memory since sign-in",children:[(0,d.jsxs)("svg",{viewBox:"0 0 160 40",className:"h-10 w-full",role:"img","aria-label":"Recent CPU and memory usage since sign-in",children:[(0,d.jsx)("line",{x1:"4",x2:"156",y1:"36",y2:"36",stroke:"var(--border)"}),e?(0,d.jsx)("path",{d:e,fill:"none",stroke:"var(--cpu)",strokeWidth:"1.5"}):null,f?(0,d.jsx)("path",{d:f,fill:"none",stroke:"var(--mem)",strokeWidth:"1.5"}):null]}),(0,d.jsxs)("div",{className:"flex gap-3 text-xs text-muted-foreground",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-cpu"}),"CPU"]}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-mem"}),"RAM"]})]})]})}function H({state:a,now:b,held:c,points:e}){var g;let h=(0,v.hL)(a,b),i=(0,v.fp)(a,b),j=(0,r.F2)(a,b),k="stale"===h.freshness,l=z(h.thresholdMs),m=x(i.memory),n="unavailable"===h.cpu.total.state||"unavailable"===h.memory.state||"unavailable"===h.gpus.family.state||h.gpus.partial||"unavailable"===h.disks.family.state||"unavailable"===h.network.family.state,o="ok"===j.attention&&n?"degraded":j.attention;return(0,d.jsxs)("tr",{className:"transition-colors hover:bg-card-strong/60",children:[(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(f(),{href:`/machines/${encodeURIComponent(a.machineId)}`,className:"inline-flex min-w-0 flex-col rounded-sm transition-colors hover:underline",children:(0,d.jsx)(F,{state:a})})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsxs)("span",{className:"tnum inline-flex items-center gap-1.5 text-xs",children:[(0,d.jsx)("span",{"aria-hidden":!0,className:`inline-block h-1.5 w-1.5 shrink-0 rounded-full ${a.connected?"bg-ok":"bg-crit"}`}),a.connected?"Connected":"Disconnected"]})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(A,{field:"value"===(g=i.cpu).state?g.stale?{out:"stale",value:g.value}:{out:"value",value:g.value}:"unavailable"===g.state?{out:"unavailable",reason:g.reason}:{out:"absent"},isHeld:c,thresholdMs:h.thresholdMs})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsxs)("span",{className:"tnum text-sm",children:[C(m),"stale"===m.out?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:l})}):"value"===m.out&&c?(0,d.jsx)(B,{}):null]})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(D,{summary:i.gpu})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsxs)("span",{className:"tnum text-sm",children:[(0,r.nV)((0,r.A4)(a.lastReceivedAt,b)),k?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:l})}):c?(0,d.jsx)(B,{}):null]})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(G,{points:e})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5",children:(0,d.jsx)(y,{level:o})})]})}function I({state:a,now:b,held:c,points:e}){let g=(0,v.hL)(a,b),h=(0,v.fp)(a,b),i=(0,r.F2)(a,b),j="stale"===g.freshness,k=z(g.thresholdMs),l=x(h.memory),m="unavailable"===g.cpu.total.state||"unavailable"===g.memory.state||"unavailable"===g.gpus.family.state||g.gpus.partial||"unavailable"===g.disks.family.state||"unavailable"===g.network.family.state,n="ok"===i.attention&&m?"degraded":i.attention;return(0,d.jsx)("li",{children:(0,d.jsxs)(f(),{href:`/machines/${encodeURIComponent(a.machineId)}`,className:"block rounded-xl border border-border bg-card p-4 transition-colors hover:border-muted-foreground/40",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,d.jsx)(F,{state:a}),(0,d.jsx)(y,{level:n})]}),(0,d.jsxs)("dl",{className:"mt-3 grid grid-cols-2 gap-x-4 gap-y-2 text-xs",children:[(0,d.jsx)("dt",{className:"text-muted-foreground",children:"Collector"}),(0,d.jsx)("dd",{className:"tnum",children:a.connected?"Connected":"Disconnected"}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"CPU"}),(0,d.jsx)("dd",{className:"tnum",children:"value"===h.cpu.state?`${(0,r.l9)(h.cpu.value)}${h.cpu.stale?" \xb7 last known":""}`:"unavailable"===h.cpu.state?"Unavailable":"—"}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"Memory"}),(0,d.jsxs)("dd",{className:"tnum",children:[C(l),"stale"===l.out?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:k})}):null]}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"GPU"}),(0,d.jsx)("dd",{children:(0,d.jsx)(D,{summary:h.gpu})}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"Last received"}),(0,d.jsxs)("dd",{className:"tnum",children:[(0,r.nV)((0,r.A4)(a.lastReceivedAt,b)),j?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:k})}):null]})]}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(G,{points:e})})]})})}function J(){let{phase:a,machines:b,history:c,session:e}=(0,s.M)(),p=(0,q.x)(),r=(0,u.c)(),[t,w]=(0,k.useState)(""),x=b.length,y="reconnecting"===a||"disconnected"===a,z=(0,v.rn)(b,t),A=x>0&&("live"===a||y);return(0,d.jsx)(l.G,{title:"Fleet",headerRight:(0,d.jsxs)(d.Fragment,{children:["signed-in"===e.kind&&e.user.admin?(0,d.jsxs)(f(),{href:"/administration#collectors",className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs hover:bg-card-strong",children:[(0,d.jsx)(g.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Add machine"}),(0,d.jsx)("span",{className:"sr-only sm:hidden",children:"Add machine"})]}):null,(0,d.jsx)(n.$E,{}),(0,d.jsx)(o.B,{})]}),children:p||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(q.E,{}),"connecting"===a&&0===x?(0,d.jsx)(m.Z,{title:"Waiting for the first snapshot",className:"mt-10",children:(0,d.jsx)(m.p,{icon:h.A,note:"Waiting for the first snapshot…"})}):null,("live"===a||y)&&0===x?(0,d.jsx)(m.Z,{title:"No machines",className:"mt-10",children:(0,d.jsx)(m.p,{icon:i.A,note:"No machines are available in your authorized fleet."})}):null,A?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-wrap items-end justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("label",{htmlFor:"fleet-search",className:"sr-only",children:"Search machines by name or tag"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(j.A,{className:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,d.jsx)("input",{id:"fleet-search",type:"search",value:t,onChange:a=>w(a.target.value),placeholder:"Search name or tag",className:"w-64 max-w-full rounded-md border border-border bg-card py-1.5 pl-8 pr-3 text-sm text-foreground placeholder:text-muted-foreground"})]})]}),(0,d.jsxs)("p",{className:"tnum text-xs text-muted-foreground",role:"status",children:[z.length," of ",x," machine",1===x?"":"s",t.trim()?` matching “${t.trim()}”`:""]})]}),0===z.length?(0,d.jsx)(m.Z,{title:"No matching machines",children:(0,d.jsx)(m.p,{icon:j.A,note:`No machines match “${t.trim()}”.`})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"hidden md:block",children:(0,d.jsx)(m.Z,{title:"Machines",action:(0,d.jsxs)("span",{children:[x," machine",1===x?"":"s"]}),children:(0,d.jsx)("div",{className:"overflow-x-auto",children:(0,d.jsxs)("table",{className:"w-full border-separate border-spacing-0 text-left",children:[(0,d.jsx)("caption",{className:"sr-only",children:"Fleet machines with collector connection, CPU, memory, GPU summary, and sample freshness"}),(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{className:"text-xs text-muted-foreground",children:[(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Machine"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Collector"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"CPU"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Memory"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"GPU"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Last received"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Recent load"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 font-normal",children:"State"})]})}),(0,d.jsx)("tbody",{children:z.map(a=>(0,d.jsx)(H,{state:a,now:r,held:y,points:c.get(a.machineId)??[]},a.machineId))})]})})})}),(0,d.jsx)("div",{className:"md:hidden",children:(0,d.jsx)(m.Z,{title:"Machines",action:(0,d.jsxs)("span",{className:"tnum",children:[z.length," machine",1===z.length?"":"s"]}),children:(0,d.jsx)("ul",{className:"flex flex-col gap-3",children:z.map(a=>(0,d.jsx)(I,{state:a,now:r,held:y,points:c.get(a.machineId)??[]},a.machineId))})})})]})]}):null]})})}},91878:(a,b,c)=>{Promise.resolve().then(c.bind(c,81931))}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[266,430,721,161,751,877],()=>b(b.s=7627));module.exports=c})();
|
|
1
|
+
(()=>{var a={};a.id=974,a.ids=[974],a.modules={126:(a,b,c)=>{Promise.resolve().then(c.bind(c,22993))},1498:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4494:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g,metadata:()=>f});var d=c(5735),e=c(22993);let f={title:"Fleet"};function g(){return(0,d.jsx)(e.FleetView,{})}},7627:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>p,handler:()=>r,routeModule:()=>q});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n={children:["",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,4494))),"/home/triet/Project/rigscope/src/app/page.tsx"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[i,"/home/triet/Project/rigscope/src/app/layout.tsx"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]}.children,o=(0,e.H)({tree:n,page:"/page",pathname:"/",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),p=o.__next_app__,q=o.routeModule,r=o.handler},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},8806:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},22993:(a,b,c)=>{"use strict";c.d(b,{FleetView:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call FleetView() from the server but FleetView 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.")},"/home/triet/Project/rigscope/src/components/live/fleet-view.tsx","FleetView")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},48878:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]])},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66125:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]])},81931:(a,b,c)=>{"use strict";c.d(b,{FleetView:()=>J});var d=c(48249),e=c(2116),f=c.n(e),g=c(8806),h=c(48878),i=c(66125),j=c(1498),k=c(67484),l=c(22091),m=c(22338),n=c(81232),o=c(75006),p=c(50280),q=c(4155),r=c(93224),s=c(58910),t=c(65666),u=c(29356),v=c(99837);let w={ok:"bg-ok-soft text-ok",degraded:"bg-warn-soft text-warn",stale:"bg-warn-soft text-warn",disconnected:"bg-crit-soft text-crit",unseen:"border border-border text-muted-foreground"};function x(a){return"value"===a.state?a.stale?{out:"stale",usedBytes:a.value.usedBytes,totalBytes:a.value.totalBytes}:{out:"value",usedBytes:a.value.usedBytes,totalBytes:a.value.totalBytes}:"unavailable"===a.state?{out:"unavailable",reason:a.reason}:{out:"absent"}}function y({level:a}){return(0,d.jsxs)("span",{className:`tnum inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs ${w[a]}`,children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"inline-block h-1.5 w-1.5 rounded-full bg-current opacity-70"}),(0,r.fv)(a)]})}function z(a){return`No update for over ${(0,r.$)(a)} (judged by hub receipt time)`}function A({field:a,isHeld:b,thresholdMs:c}){return"value"===a.out?(0,d.jsxs)("span",{className:"tnum text-sm",children:[(0,r.l9)(a.value),b?(0,d.jsx)(B,{}):null]}):"stale"===a.out?(0,d.jsxs)("span",{className:"tnum text-sm",children:[(0,r.l9)(a.value),(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:z(c)})})]}):"unavailable"===a.out?(0,d.jsx)("span",{className:"text-xs text-warn",title:a.reason,children:"Unavailable"}):(0,d.jsx)("span",{className:"tnum text-sm text-muted-foreground",children:"—"})}function B(){return(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"held",title:"Last known value, kept while the connection is down"})})}function C(a){return"value"===a.out||"stale"===a.out?`${(0,r.z3)(a.usedBytes)} / ${(0,r.z3)(a.totalBytes)}`:"unavailable"===a.out?"Unavailable":"—"}function D({summary:a}){if(null===a)return(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:"No GPU data"});if(0===a.supportedCount)return(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",title:a.reason??"No supported telemetry",children:[a.count," adapter",1===a.count?"":"s"," \xb7 no telemetry"]});if(a.reason)return(0,d.jsxs)("span",{className:"text-xs text-warn",title:a.reason,children:[a.supportedCount," GPU",1===a.supportedCount?"":"s"," \xb7 unavailable"]});let b=null===a.maxUtilizationPercent?"util —":`util ${(0,r.l9)(a.maxUtilizationPercent)}`,c=null!==a.memoryUsedBytes&&null!==a.memoryTotalBytes?`${(0,r.z3)(a.memoryUsedBytes)} / ${(0,r.z3)(a.memoryTotalBytes)}`:"VRAM —";return(0,d.jsx)("span",{className:"tnum text-xs",children:a.partial?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("span",{className:"text-warn",children:[a.okCount,"/",a.supportedCount," GPUs reporting"]}),(0,d.jsxs)("span",{className:"text-muted-foreground",children:[" \xb7 ",b," \xb7 ",c," "]}),(0,d.jsx)(p.vw,{text:"partial",title:"At least one supported GPU has no current reading"}),a.stale?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"last known",title:"Retained from the last accepted sample"})}):null]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-foreground",children:a.supportedCount}),(0,d.jsxs)("span",{className:"text-muted-foreground",children:[" ","GPU",1===a.supportedCount?"":"s"," \xb7 ",b," \xb7 ",c]}),a.stale?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"last known",title:"Retained from the last accepted sample"})}):null]})})}function E({state:a}){let b=(0,v.V5)(a);return 0===b.length?null:(0,d.jsx)("ul",{className:"mt-1 flex flex-wrap gap-1",children:b.map(a=>(0,d.jsx)("li",{className:"rounded-full border border-border px-1.5 py-0.5 text-xs text-muted-foreground",children:a},a))})}function F({state:a}){let b=(0,v.v4)(a),c=[a.hostname!==b?a.hostname:null].filter(a=>!!(a&&a!==b)).join(" \xb7 ");return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,d.jsx)("span",{className:"truncate text-sm font-medium",children:b}),c?(0,d.jsx)("span",{className:"tnum truncate text-xs text-muted-foreground",children:c}):null,(0,d.jsx)(E,{state:a})]})}function G({points:a}){let b=(a.at(-1)?.receivedAtLocal??0)-6e5,c=a.filter(a=>a.receivedAtLocal>=b),e=(0,t.K)(c,160,40),f=(0,t.K)(c.map(a=>({...a,cpuPercent:a.memoryPercent})),160,40);return(0,d.jsxs)("div",{className:"w-40 max-w-full",title:"CPU and memory since sign-in",children:[(0,d.jsxs)("svg",{viewBox:"0 0 160 40",className:"h-10 w-full",role:"img","aria-label":"Recent CPU and memory usage since sign-in",children:[(0,d.jsx)("line",{x1:"4",x2:"156",y1:"36",y2:"36",stroke:"var(--border)"}),e?(0,d.jsx)("path",{d:e,fill:"none",stroke:"var(--cpu)",strokeWidth:"1.5"}):null,f?(0,d.jsx)("path",{d:f,fill:"none",stroke:"var(--mem)",strokeWidth:"1.5"}):null]}),(0,d.jsxs)("div",{className:"flex gap-3 text-xs text-muted-foreground",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-cpu"}),"CPU"]}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-mem"}),"RAM"]})]})]})}function H({state:a,now:b,held:c,points:e}){var g;let h=(0,v.hL)(a,b),i=(0,v.fp)(a,b),j=(0,r.F2)(a,b),k="stale"===h.freshness,l=z(h.thresholdMs),m=x(i.memory),n="unavailable"===h.cpu.total.state||"unavailable"===h.memory.state||"unavailable"===h.gpus.family.state||h.gpus.partial||"unavailable"===h.disks.family.state||"unavailable"===h.network.family.state,o="ok"===j.attention&&n?"degraded":j.attention;return(0,d.jsxs)("tr",{className:"transition-colors hover:bg-card-strong/60",children:[(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(f(),{href:`/machines/${encodeURIComponent(a.machineId)}`,className:"inline-flex min-w-0 flex-col rounded-sm transition-colors hover:underline",children:(0,d.jsx)(F,{state:a})})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsxs)("span",{className:"tnum inline-flex items-center gap-1.5 text-xs",children:[(0,d.jsx)("span",{"aria-hidden":!0,className:`inline-block h-1.5 w-1.5 shrink-0 rounded-full ${a.connected?"bg-ok":"bg-crit"}`}),a.connected?"Connected":"Disconnected"]})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(A,{field:"value"===(g=i.cpu).state?g.stale?{out:"stale",value:g.value}:{out:"value",value:g.value}:"unavailable"===g.state?{out:"unavailable",reason:g.reason}:{out:"absent"},isHeld:c,thresholdMs:h.thresholdMs})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsxs)("span",{className:"tnum text-sm",children:[C(m),"stale"===m.out?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:l})}):"value"===m.out&&c?(0,d.jsx)(B,{}):null]})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(D,{summary:i.gpu})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsxs)("span",{className:"tnum text-sm",children:[(0,r.nV)((0,r.A4)(a.lastReceivedAt,b)),k?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:l})}):c?(0,d.jsx)(B,{}):null]})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5 pr-4",children:(0,d.jsx)(G,{points:e})}),(0,d.jsx)("td",{className:"border-b border-border py-2.5",children:(0,d.jsx)(y,{level:o})})]})}function I({state:a,now:b,held:c,points:e}){let g=(0,v.hL)(a,b),h=(0,v.fp)(a,b),i=(0,r.F2)(a,b),j="stale"===g.freshness,k=z(g.thresholdMs),l=x(h.memory),m="unavailable"===g.cpu.total.state||"unavailable"===g.memory.state||"unavailable"===g.gpus.family.state||g.gpus.partial||"unavailable"===g.disks.family.state||"unavailable"===g.network.family.state,n="ok"===i.attention&&m?"degraded":i.attention;return(0,d.jsx)("li",{children:(0,d.jsxs)(f(),{href:`/machines/${encodeURIComponent(a.machineId)}`,className:"block rounded-xl border border-border bg-card p-4 transition-colors hover:border-muted-foreground/40",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,d.jsx)(F,{state:a}),(0,d.jsx)(y,{level:n})]}),(0,d.jsxs)("dl",{className:"mt-3 grid grid-cols-2 gap-x-4 gap-y-2 text-xs",children:[(0,d.jsx)("dt",{className:"text-muted-foreground",children:"Collector"}),(0,d.jsx)("dd",{className:"tnum",children:a.connected?"Connected":"Disconnected"}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"CPU"}),(0,d.jsx)("dd",{className:"tnum",children:"value"===h.cpu.state?`${(0,r.l9)(h.cpu.value)}${h.cpu.stale?" \xb7 last known":""}`:"unavailable"===h.cpu.state?"Unavailable":"—"}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"Memory"}),(0,d.jsxs)("dd",{className:"tnum",children:[C(l),"stale"===l.out?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:k})}):null]}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"GPU"}),(0,d.jsx)("dd",{children:(0,d.jsx)(D,{summary:h.gpu})}),(0,d.jsx)("dt",{className:"text-muted-foreground",children:"Last received"}),(0,d.jsxs)("dd",{className:"tnum",children:[(0,r.nV)((0,r.A4)(a.lastReceivedAt,b)),j?(0,d.jsx)("span",{className:"ml-1.5",children:(0,d.jsx)(p.vw,{text:"stale",title:k})}):null]})]}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(G,{points:e})})]})})}function J(){let{phase:a,machines:b,history:c,session:e}=(0,s.M)(),p=(0,q.x)(),r=(0,u.c)(),[t,w]=(0,k.useState)(""),x=b.length,y="reconnecting"===a||"disconnected"===a,z=(0,v.rn)(b,t),A=x>0&&("live"===a||y);return(0,d.jsx)(l.G,{title:"Fleet",headerRight:(0,d.jsxs)(d.Fragment,{children:["signed-in"===e.kind&&e.user.admin?(0,d.jsxs)(f(),{href:"/administration#collectors",className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs hover:bg-card-strong",children:[(0,d.jsx)(g.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Add machine"}),(0,d.jsx)("span",{className:"sr-only sm:hidden",children:"Add machine"})]}):null,(0,d.jsx)(n.$E,{}),(0,d.jsx)(o.B,{})]}),children:p||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(q.E,{}),"connecting"===a&&0===x?(0,d.jsx)(m.Z,{title:"Waiting for the first snapshot",className:"mt-10",children:(0,d.jsx)(m.p,{icon:h.A,note:"Waiting for the first snapshot…"})}):null,("live"===a||y)&&0===x?(0,d.jsx)(m.Z,{title:"No machines",className:"mt-10",children:(0,d.jsx)(m.p,{icon:i.A,note:"No machines are available in your authorized fleet."})}):null,A?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-wrap items-end justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("label",{htmlFor:"fleet-search",className:"sr-only",children:"Search machines by name or tag"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(j.A,{className:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,d.jsx)("input",{id:"fleet-search",type:"search",value:t,onChange:a=>w(a.target.value),placeholder:"Search name or tag",className:"w-64 max-w-full rounded-md border border-border bg-card py-1.5 pl-8 pr-3 text-sm text-foreground placeholder:text-muted-foreground"})]})]}),(0,d.jsxs)("p",{className:"tnum text-xs text-muted-foreground",role:"status",children:[z.length," of ",x," machine",1===x?"":"s",t.trim()?` matching “${t.trim()}”`:""]})]}),0===z.length?(0,d.jsx)(m.Z,{title:"No matching machines",children:(0,d.jsx)(m.p,{icon:j.A,note:`No machines match “${t.trim()}”.`})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"hidden md:block",children:(0,d.jsx)(m.Z,{title:"Machines",action:(0,d.jsxs)("span",{children:[x," machine",1===x?"":"s"]}),children:(0,d.jsx)("div",{className:"overflow-x-auto",children:(0,d.jsxs)("table",{className:"w-full border-separate border-spacing-0 text-left",children:[(0,d.jsx)("caption",{className:"sr-only",children:"Fleet machines with collector connection, CPU, memory, GPU summary, and sample freshness"}),(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{className:"text-xs text-muted-foreground",children:[(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Machine"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Collector"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"CPU"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Memory"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"GPU"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Last received"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 pr-4 font-normal",children:"Recent load"}),(0,d.jsx)("th",{scope:"col",className:"pb-2 font-normal",children:"State"})]})}),(0,d.jsx)("tbody",{children:z.map(a=>(0,d.jsx)(H,{state:a,now:r,held:y,points:c.get(a.machineId)??[]},a.machineId))})]})})})}),(0,d.jsx)("div",{className:"md:hidden",children:(0,d.jsx)(m.Z,{title:"Machines",action:(0,d.jsxs)("span",{className:"tnum",children:[z.length," machine",1===z.length?"":"s"]}),children:(0,d.jsx)("ul",{className:"flex flex-col gap-3",children:z.map(a=>(0,d.jsx)(I,{state:a,now:r,held:y,points:c.get(a.machineId)??[]},a.machineId))})})})]})]}):null]})})}},91878:(a,b,c)=>{Promise.resolve().then(c.bind(c,81931))}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[266,430,721,161,751,364],()=>b(b.s=7627));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../node_modules/next/dist/client/lib/console.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/fast-jwt/index.js","../../../node_modules/next/dist/compiled/fast-jwt/package.json","../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/compiled/source-map/package.json","../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../node_modules/next/dist/compiled/ws/index.js","../../../node_modules/next/dist/compiled/ws/package.json","../../../node_modules/next/dist/lib/client-and-server-references.js","../../../node_modules/next/dist/lib/constants.js","../../../node_modules/next/dist/lib/interop-default.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/lib/picocolors.js","../../../node_modules/next/dist/lib/scheduler.js","../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../node_modules/next/dist/server/lib/lru-cache.js","../../../node_modules/next/dist/server/lib/parse-stack.js","../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../node_modules/next/dist/server/lib/source-maps.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/server/load-manifest.external.js","../../../node_modules/next/dist/server/node-environment-baseline.js","../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../node_modules/next/dist/server/node-environment.js","../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../node_modules/next/dist/server/patch-error-inspect.js","../../../node_modules/next/dist/server/require-hook.js","../../../node_modules/next/dist/server/response-cache/types.js","../../../node_modules/next/dist/server/route-kind.js","../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/shared/lib/segment.js","../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/package.json","../../../package.json","../../package.json","../chunks/161.js","../chunks/266.js","../chunks/
|
|
1
|
+
{"version":1,"files":["../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../node_modules/next/dist/client/lib/console.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/fast-jwt/index.js","../../../node_modules/next/dist/compiled/fast-jwt/package.json","../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/compiled/source-map/package.json","../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../node_modules/next/dist/compiled/ws/index.js","../../../node_modules/next/dist/compiled/ws/package.json","../../../node_modules/next/dist/lib/client-and-server-references.js","../../../node_modules/next/dist/lib/constants.js","../../../node_modules/next/dist/lib/interop-default.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/lib/picocolors.js","../../../node_modules/next/dist/lib/scheduler.js","../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../node_modules/next/dist/server/lib/lru-cache.js","../../../node_modules/next/dist/server/lib/parse-stack.js","../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../node_modules/next/dist/server/lib/source-maps.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/server/load-manifest.external.js","../../../node_modules/next/dist/server/node-environment-baseline.js","../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../node_modules/next/dist/server/node-environment.js","../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../node_modules/next/dist/server/patch-error-inspect.js","../../../node_modules/next/dist/server/require-hook.js","../../../node_modules/next/dist/server/response-cache/types.js","../../../node_modules/next/dist/server/route-kind.js","../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/shared/lib/segment.js","../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/package.json","../../../package.json","../../package.json","../chunks/161.js","../chunks/266.js","../chunks/364.js","../chunks/430.js","../chunks/721.js","../chunks/751.js","../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"86673","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"40015","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"76670","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"7867","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"4833","name":"*","chunks":[],"async":false}},"2939":{"*":{"id":"81328","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"93022","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"71793","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"9479","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"81931","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"30847","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"85909","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"58910","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/triet/Project/rigscope/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/app/globals.css":{"id":1743,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/theme-provider.tsx":{"id":2737,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/live/live-provider.tsx":{"id":9939,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"86673","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"40015","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"76670","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"7867","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"4833","name":"*","chunks":[],"async":false}},"2939":{"*":{"id":"81328","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"93022","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"71793","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"9479","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"81931","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"30847","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"85909","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"58910","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/triet/Project/rigscope/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/app/globals.css":{"id":1743,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/theme-provider.tsx":{"id":2737,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/live/live-provider.tsx":{"id":9939,"name":"*","chunks":["939","static/chunks/939-514e554087419c71.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/admin/administration-view.tsx":{"id":7044,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/alerts/alerts-view.tsx":{"id":1461,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/resources/connections-panels.tsx":{"id":5773,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/history/history-view.tsx":{"id":2939,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-navigation.tsx":{"id":1721,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/shell/sidebar.tsx":{"id":2701,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/theme-toggle.tsx":{"id":2394,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/login-view.tsx":{"id":5000,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-view.tsx":{"id":8887,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/fleet-view.tsx":{"id":7281,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-514e554087419c71.js","103","static/chunks/103-13ec30dcc059b9d3.js","130","static/chunks/130-e940915010276f88.js","974","static/chunks/app/page-c68554c93016dd13.js"],"async":false},"/home/triet/Project/rigscope/src/components/processes/processes-view.tsx":{"id":7339,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/triet/Project/rigscope/src/":[],"/home/triet/Project/rigscope/src/app/layout":[{"inlined":false,"path":"static/css/fb3ad9534f4681e6.css"}],"/home/triet/Project/rigscope/src/app/page":[]},"rscModuleMapping":{"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"29953","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"28565","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"46568","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"50369","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"65223","name":"*","chunks":[],"async":false}},"2939":{"*":{"id":"79173","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"52604","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"37147","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"2902","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"22993","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"89893","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"73132","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"89604","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var a={};a.id=952,a.ids=[952],a.modules={104:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},1498:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},20340:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>k,metadata:()=>i});var d=c(5735),e=c(91986),f=c(88713),g=c(35448),h=c(89893);let i={title:"Processes"};function j(){return(0,d.jsx)(f.G,{title:"Processes",children:(0,d.jsx)(g.Z,{title:"Process detail",className:"mt-2",children:(0,d.jsx)("p",{role:"status",className:"py-10 text-center text-sm text-muted-foreground",children:"Loading the process view…"})})})}function k(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(j,{}),children:(0,d.jsx)(h.ProcessesView,{})})}},28354:a=>{"use strict";a.exports=require("util")},28787:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>q,handler:()=>s,routeModule:()=>r});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),o={children:["",{children:["processes",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,20340))),"/home/triet/Project/rigscope/src/app/processes/page.tsx"]}]},{"global-error":[n,"next/dist/client/components/builtin/global-error.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]},{layout:[i,"/home/triet/Project/rigscope/src/app/layout.tsx"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]}.children,p=(0,e.H)({tree:o,page:"/processes/page",pathname:"/processes",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),q=p.__next_app__,r=p.routeModule,s=p.handler},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29356:(a,b,c)=>{"use strict";c.d(b,{c:()=>e});var d=c(67484);function e(a=1e3){let[b,c]=(0,d.useState)(()=>Date.now());return b}},30847:(a,b,c)=>{"use strict";c.d(b,{ProcessesView:()=>aV});var d=c(48249),e=c(2116),f=c.n(e),g=c(48878),h=c(66125),i=c(89313),j=c(22091),k=c(22338),l=c(81232),m=c(75006),n=c(4155),o=c(58910),p=c(52464),q=c(67484),r=c(31742),s=c(93484),t=c(49187),u=c(73742),v=c(12421),w=c(90162),x=c(1498),y=c(104),z=c(64500);let A=new Set(["bash","zsh","fish","sh","dash","ksh","mksh","tcsh","csh","ash","busybox"]),B=new Set(["sshd","sshd-session","dropbear","tmux","screen","systemd"]),C=["cpuPercent","memoryRssBytes","gpuMemoryBytes","ioReadBytesPerSec","ioWriteBytesPerSec"];function D(a,b,c){return a.slice().sort((a,d)=>K(J(a,b),J(d,b),c))}function E(a){return null!==a&&!!("init.scope"===a||/^session-.+\.scope$/.test(a)||/^user@.+\.service$/.test(a))}function F(a){return null===a||!a.endsWith(".scope")&&!a.endsWith(".service")||E(a)?null:a}function G(a){let b=a.replace(/\.(scope|service)$/,"");return b.startsWith("app-gnome-")?b=b.slice(10):b.startsWith("app-")&&(b=b.slice(4)),(b=b.replace(/-\d+$/,"")).length>0?b:a}function H(a){return{key:`tree:${a.pid}:${a.startTicks}`,label:a.name,kind:"tree",leader:a}}function I(a,b){switch(b){case"cpu":return a.cpuPercent;case"memory":return a.memoryRssBytes;case"gpuMemory":return a.gpuMemoryBytes;case"ioRead":return a.ioReadBytesPerSec;case"ioWrite":return a.ioWriteBytesPerSec;case"name":return a.label;case"count":return a.count;case"pid":var c=a.members;let d=null;for(let a of c)(null===d||a.pid<d)&&(d=a.pid);return d;case"user":return a.users.length>0?a.users[0]:null}}function J(a,b){switch(b){case"cpu":return a.cpuPercent;case"memory":return a.memoryRssBytes;case"gpuMemory":return a.gpuMemoryBytes;case"ioRead":return a.ioReadBytesPerSec;case"ioWrite":return a.ioWriteBytesPerSec;case"name":return a.name;case"count":return 1;case"pid":return a.pid;case"user":return a.user}}function K(a,b,c){let d,e=null==a,f=null==b;if(e&&f)return 0;if(e)return 1;if(f)return -1;if("number"==typeof a&&"number"==typeof b)d=a-b;else{let c=String(a).toLowerCase(),e=String(b).toLowerCase();d=c<e?-1:+(c>e)}return"asc"===c?d:-d}c(25982);var L=c(93224);let M={key:"cpu",dir:"desc"};function N(a,b,c){return null!==a&&b-a>=(!Number.isFinite(c)||c<=0?1e4:Math.max(1e4,3*c))}let O=[{value:"applications",label:"Applications"},{value:"processes",label:"Processes"},{value:"tree",label:"Tree"}];function P(a){return`${a.pid}:${a.startTicks}`}function Q(a){if(void 0===a.command)return a;let{command:b,...c}=a;return c}function R(a){return null!=a&&Number.isFinite(a)?Math.round(a).toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):"—"}function S(a){switch(a){case"idle":return{label:"Not connected",tone:"muted",description:"Select a machine to request process detail.",retryable:!1};case"acquiring":return{label:"Connecting",tone:"warn",description:"Requesting process detail…",retryable:!1};case"loading":return{label:"Waiting",tone:"warn",description:"Waiting for the collector's first process snapshot…",retryable:!1};case"ready":return{label:"Live",tone:"ok",description:"Process detail is live.",retryable:!1};case"paused":return{label:"Paused",tone:"muted",description:"Process updates are paused.",retryable:!1};case"stale":return{label:"Not refreshing",tone:"warn",description:"The last snapshot is retained, but new snapshots are not arriving.",retryable:!0};case"disconnected":return{label:"Disconnected",tone:"crit",description:"The collector is disconnected; the last snapshot is not live.",retryable:!0};case"withheld":return{label:"Withheld",tone:"warn",description:"Process detail is withheld for this hub.",retryable:!0};case"unsupported":return{label:"Unsupported",tone:"warn",description:"This collector cannot provide process detail.",retryable:!0};case"busy":return{label:"Busy",tone:"warn",description:"Too many process views are open for this hub.",retryable:!0};case"expired":return{label:"Expired",tone:"warn",description:"Process detail expired before a fresh snapshot arrived.",retryable:!0};case"failed":return{label:"Scan failed",tone:"crit",description:"The process scan failed repeatedly.",retryable:!0};case"cancelled":return{label:"Stopped",tone:"muted",description:"The process detail view was stopped.",retryable:!0};case"error":return{label:"Unavailable",tone:"crit",description:"Process detail is unavailable right now.",retryable:!0}}}var T=c(29356);class U{maxAgeMs;limit;session=null;entries=new Map;constructor(a=3e5,b=32){this.maxAgeMs=a,this.limit=b}scope(a){(this.session!==a||null===a)&&this.entries.clear(),this.session=a}get(a,b,c=Date.now()){this.scope(b);let d=this.entries.get(a);return d&&c-d.lastReceivedMs>=this.maxAgeMs?void this.entries.delete(a):d}set(a,b,c){this.scope(b),this.entries.delete(a),this.entries.set(a,c),this.entries.size>this.limit&&this.entries.delete(this.entries.keys().next().value)}delete(a,b){this.scope(b),this.entries.delete(a)}}let V=new U;function W(a,b){let c=V.get(a??"",b);return void 0!==c?{phase:"stale",message:"Resuming process updates…",...c}:{phase:null===a?"idle":"acquiring",detail:null,message:null,intervalMs:1e3,leaseMs:15e3,lastReceivedMs:null}}var X=c(65366);let Y=(0,X.A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Z=(0,X.A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),$=(0,X.A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var _=c(38420),aa=c(94054);let ab=[{id:"name",label:"Application",sortKey:"name",align:"left",width:300},{id:"count",label:"Procs",sortKey:"count",align:"right",width:76},{id:"cpu",label:"CPU / core",sortKey:"cpu",align:"right",width:104},{id:"memory",label:"RSS",sortKey:"memory",align:"right",width:96},{id:"gpuMemory",label:"VRAM",sortKey:"gpuMemory",align:"right",width:96},{id:"ioRead",label:"Read",sortKey:"ioRead",align:"right",width:104},{id:"ioWrite",label:"Write",sortKey:"ioWrite",align:"right",width:104},{id:"users",label:"Users",sortKey:"user",align:"left",width:160}],ac=[{id:"name",label:"Process",sortKey:"name",align:"left",width:300},{id:"pid",label:"PID",sortKey:"pid",align:"right",width:84},{id:"user",label:"User",sortKey:"user",align:"left",width:120},{id:"cpu",label:"CPU / core",sortKey:"cpu",align:"right",width:104},{id:"memory",label:"RSS",sortKey:"memory",align:"right",width:96},{id:"gpuMemory",label:"VRAM",sortKey:"gpuMemory",align:"right",width:96},{id:"ioRead",label:"Read",sortKey:"ioRead",align:"right",width:104},{id:"ioWrite",label:"Write",sortKey:"ioWrite",align:"right",width:104},{id:"threads",label:"Threads",align:"right",width:84}],ad=Object.freeze({}),ae=Object.freeze([]),af=new Set(["cpu","memory","gpuMemory","ioRead","ioWrite","name","count","pid","user"]);function ag(a){return Math.round(Math.min(1200,Math.max(56,a)))}function ah(a){return"applications"===a||"processes"===a||"tree"===a?a:null}function ai(a){if(null===a||"object"!=typeof a)return null;let{key:b,dir:c}=a;return"string"==typeof b&&af.has(b)&&("asc"===c||"desc"===c)?{key:b,dir:c}:null}function aj(a){if(null===a||"object"!=typeof a||Array.isArray(a))return null;let b={};for(let[c,d]of Object.entries(a))"number"==typeof d&&Number.isFinite(d)&&(b[c]=ag(d));return b}function ak(a){return"string"==typeof a?a.slice(0,200):null}function al(a){return"boolean"==typeof a?a:null}function am(a){return Array.isArray(a)&&a.every(a=>"string"==typeof a)?a.slice(0,500):null}let an="overflow-hidden text-ellipsis whitespace-nowrap border-b border-border px-2 py-2 align-middle",ao=`${an} tnum text-right text-xs`,ap="relative overflow-hidden whitespace-nowrap border-b border-border px-2 py-2 text-left text-xs font-normal text-muted-foreground";function aq(a,b){return b[a.id]??a.width}function ar({label:a,width:b,onChange:c,onReset:e}){let f=(0,q.useRef)(null);return(0,d.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":`Resize ${a} column`,"aria-valuenow":b,"aria-valuemin":56,"aria-valuemax":1200,tabIndex:0,title:"Drag to resize \xb7 double-click to reset",onPointerDown:a=>{0===a.button&&(a.preventDefault(),a.stopPropagation(),a.currentTarget.setPointerCapture(a.pointerId),f.current={x:a.clientX,width:b})},onPointerMove:a=>{null!==f.current&&c(ag(f.current.width+a.clientX-f.current.x))},onPointerUp:a=>{null!==f.current&&c(ag(f.current.width+a.clientX-f.current.x)),f.current=null,a.currentTarget.hasPointerCapture(a.pointerId)&&a.currentTarget.releasePointerCapture(a.pointerId)},onPointerCancel:()=>{f.current=null},onLostPointerCapture:()=>{f.current=null},onClick:a=>a.stopPropagation(),onDoubleClick:a=>{a.stopPropagation(),e()},onKeyDown:a=>{"ArrowLeft"===a.key?(a.preventDefault(),c(ag(b-16))):"ArrowRight"===a.key&&(a.preventDefault(),c(ag(b+16)))},className:"group/handle absolute inset-y-0 right-0 z-10 flex w-2.5 cursor-col-resize touch-none select-none justify-end",children:(0,d.jsx)("span",{"aria-hidden":!0,className:"my-2 w-px bg-border transition-colors group-hover/handle:bg-accent group-focus-visible/handle:bg-accent"})})}function as({column:a,sort:b,onSort:c,width:e,onResize:f,onReset:g}){let h="right"===a.align,i=a.sortKey,j=void 0!==i?b.key!==i?"none":"asc"===b.dir?"ascending":"descending":"none",k="none"!==j,l=k?"asc"===b.dir?Z:$:Y;return(0,d.jsxs)("th",{scope:"col","aria-sort":void 0!==i?j:void 0,className:h?`${ap} text-right`:ap,children:[void 0!==i?(0,d.jsxs)("button",{type:"button",onClick:()=>c(i),className:["inline-flex min-h-6 max-w-full items-center gap-1 rounded-sm transition-colors hover:text-foreground",h?"w-full justify-end pr-1":"",k?"text-foreground":""].filter(Boolean).join(" "),children:[(0,d.jsx)("span",{className:"truncate",children:a.label}),(0,d.jsx)(l,{className:k?"h-3 w-3 shrink-0":"h-3 w-3 shrink-0 opacity-40","aria-hidden":!0})]}):(0,d.jsx)("span",{className:h?"block truncate pr-1":"block truncate",children:a.label}),(0,d.jsx)(ar,{label:a.label,width:e,onChange:f,onReset:g})]})}function at({table:a,columns:b,label:c,caption:e,sort:f,onSort:g,children:h}){let[i,j]=(0,aa.u)(`processes.widths.${a}`,ad,aj),k=(0,q.useRef)(null),[l,m]=(0,q.useState)(0),n=a=>"name"===a.id?160:56,o=b.reduce((a,b)=>a+n(b),0),p=b.reduce((a,b)=>a+aq(b,i),0),r={},s=Math.max(l||p,o),t=[...b];for(;t.length>0;){let a=t.reduce((a,b)=>a+aq(b,i),0),b=t.filter(b=>s*aq(b,i)/a<n(b));if(0===b.length){for(let b of t)r[b.id]=s*aq(b,i)/a;break}for(let a of b)r[a.id]=n(a),s-=n(a);t=t.filter(a=>!b.includes(a))}return(0,d.jsx)("div",{ref:k,className:"relative min-h-0 w-full min-w-0 flex-1 overflow-auto overscroll-contain",tabIndex:0,role:"region","aria-label":c,children:(0,d.jsxs)("table",{className:"table-fixed border-separate border-spacing-0 text-left",style:{width:"100%",minWidth:o},children:[(0,d.jsx)("caption",{className:"sr-only",children:e}),(0,d.jsx)("colgroup",{children:b.map(a=>(0,d.jsx)("col",{style:{width:r[a.id]}},a.id))}),(0,d.jsx)("thead",{className:"sticky top-0 z-20 bg-card",children:(0,d.jsx)("tr",{children:b.map(a=>(0,d.jsx)(as,{column:a,sort:f,onSort:g,width:r[a.id],onResize:c=>{let d,e,f;return d=b.indexOf(a),e=b[d+1]??b[d-1],f=Math.max(n(a)-r[a.id],Math.min(c-r[a.id],r[e.id]-n(e))),void j({...r,[a.id]:r[a.id]+f,[e.id]:r[e.id]-f})},onReset:()=>j(b=>{let{[a.id]:c,...d}=b;return d})},a.id))})}),(0,d.jsx)("tbody",{children:h})]})})}function au({value:a,kind:b,partial:c=!1}){let e=function(a,b,c=!1){let d;if(null===a||!Number.isFinite(a)||a<0)return{text:"—",atLeast:!1,title:null};switch(b){case"percent":d=(0,L.l9)(a);break;case"bytes":d=(0,L.z3)(a);break;case"rate":d=`${(0,L.z3)(a)}/s`;break;case"count":d=R(a)}return{text:d,atLeast:c,title:c?`At least ${d}: some processes in this group did not report this metric.`:null}}(a,b,c);return(0,d.jsxs)("td",{className:"—"===e.text?`${ao} text-muted-foreground`:ao,title:e.title??void 0,children:[e.atLeast?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{"aria-hidden":!0,children:"≥ "}),(0,d.jsx)("span",{className:"sr-only",children:"at least "})]}):null,e.text]})}function av(a){let b=a.name.length>0?a.name:"Unnamed process";return null!==a.unit?`${b} \xb7 ${a.unit}`:b}function aw({row:a,depth:b=0}){return(0,d.jsx)("th",{scope:"row",className:`${an} text-left text-sm font-medium`,title:av(a),children:(0,d.jsxs)("span",{style:b>0?{paddingLeft:`${14*b}px`}:void 0,children:[b>0?(0,d.jsx)("span",{className:"sr-only",children:`Nested level ${b+1}. `}):null,a.name.length>0?a.name:(0,d.jsx)("span",{className:"text-muted-foreground",children:"Unnamed process"})]})})}function ax({entries:a,sort:b,onSort:c,mode:e}){return(0,d.jsx)(at,{table:"processes",columns:ac,label:"tree"===e?"Process tree":"Process list",caption:"tree"===e?"Process tree with nesting depth, PID, user, CPU per core, resident memory, GPU memory, read and write rates, and threads":"Processes with PID, user, CPU per core, resident memory, GPU memory, read and write rates, and threads",sort:b,onSort:c,children:a.map(({row:a,depth:b})=>(0,d.jsxs)("tr",{className:"transition-colors hover:bg-card-strong/60",children:[(0,d.jsx)(aw,{row:a,depth:b}),(0,d.jsx)("td",{className:ao,children:a.pid}),(0,d.jsx)("td",{className:`${an} text-xs text-muted-foreground`,title:a.user??void 0,children:a.user??"—"}),(0,d.jsx)(au,{value:a.cpuPercent,kind:"percent"}),(0,d.jsx)(au,{value:a.memoryRssBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.gpuMemoryBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.ioReadBytesPerSec,kind:"rate"}),(0,d.jsx)(au,{value:a.ioWriteBytesPerSec,kind:"rate"}),(0,d.jsx)("td",{className:ao,children:R(a.threads)})]},P(a)))})}function ay({group:a}){return(0,d.jsx)(d.Fragment,{children:a.members.map(a=>(0,d.jsxs)("tr",{className:"bg-card-strong/40 transition-colors hover:bg-card-strong/70",children:[(0,d.jsx)("th",{scope:"row",className:`${an} text-left text-xs font-normal`,title:`${av(a)} \xb7 PID ${a.pid}`,children:(0,d.jsxs)("span",{className:"pl-5",children:[a.name.length>0?a.name:"Unnamed process",(0,d.jsx)("span",{className:"tnum ml-2 text-muted-foreground",children:a.pid})]})}),(0,d.jsx)("td",{className:ao}),(0,d.jsx)(au,{value:a.cpuPercent,kind:"percent"}),(0,d.jsx)(au,{value:a.memoryRssBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.gpuMemoryBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.ioReadBytesPerSec,kind:"rate"}),(0,d.jsx)(au,{value:a.ioWriteBytesPerSec,kind:"rate"}),(0,d.jsx)("td",{className:`${an} text-xs text-muted-foreground`,title:a.user??void 0,children:a.user??"—"})]},P(a)))})}function az({groups:a,sort:b,onSort:c,expanded:e,onToggleGroup:f}){return(0,d.jsx)(at,{table:"applications",columns:ab,label:"Applications",caption:"Applications grouped by systemd unit, process tree, or kernel, with process count, aggregate CPU per core, resident memory, GPU memory, read and write rates, and users",sort:b,onSort:c,children:a.map(a=>{var b;let c=e.has(a.key),g=a.label.length>0?a.label:"Unnamed application",h=a.users.length>0?a.users.join(", "):"—";return(0,d.jsxs)(q.Fragment,{children:[(0,d.jsxs)("tr",{className:"transition-colors hover:bg-card-strong/60",children:[(0,d.jsx)("th",{scope:"row",className:`${an} text-left font-normal`,title:`${g} \xb7 ${"unit"===(b=a.kind)?"systemd unit":"kernel"===b?"kernel":"process tree"}`,children:(0,d.jsxs)("button",{type:"button","aria-expanded":c,onClick:()=>f(a.key),className:"inline-flex min-h-6 max-w-full items-center gap-1.5 rounded-sm text-left",children:[(0,d.jsx)(_.A,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform ${c?"rotate-90":""}`,"aria-hidden":!0}),(0,d.jsx)("span",{className:"truncate text-sm font-medium",children:g})]})}),(0,d.jsx)("td",{className:ao,children:R(a.count)}),(0,d.jsx)(au,{value:a.cpuPercent,kind:"percent",partial:a.partial.cpuPercent}),(0,d.jsx)(au,{value:a.memoryRssBytes,kind:"bytes",partial:a.partial.memoryRssBytes}),(0,d.jsx)(au,{value:a.gpuMemoryBytes,kind:"bytes",partial:a.partial.gpuMemoryBytes}),(0,d.jsx)(au,{value:a.ioReadBytesPerSec,kind:"rate",partial:a.partial.ioReadBytesPerSec}),(0,d.jsx)(au,{value:a.ioWriteBytesPerSec,kind:"rate",partial:a.partial.ioWriteBytesPerSec}),(0,d.jsx)("td",{className:`${an} text-xs text-muted-foreground`,title:h,children:h})]}),c?(0,d.jsx)(ay,{group:a}):null]},a.key)})})}function aA({mode:a,groups:b,rows:c,tree:e,sort:f,onSort:g,expanded:h,onToggleGroup:i}){if("applications"===a)return(0,d.jsx)(az,{groups:b,sort:f,onSort:g,expanded:h,onToggleGroup:i});let j="tree"===a?e.map(a=>({row:a.row,depth:a.depth})):c.map(a=>({row:a,depth:0}));return(0,d.jsx)(ax,{entries:j,mode:a,sort:f,onSort:g})}var aB=c(71335),aC=c(56013);let aD=[{key:"cpuPercent",label:"cpu"},{key:"memoryRssBytes",label:"memory"},{key:"gpuMemoryBytes",label:"vram"},{key:"ioReadBytesPerSec",label:"read"},{key:"ioWriteBytesPerSec",label:"write"},{key:"threads",label:"threads"}];function aE(a){return new Date(a).toISOString()}function aF(a){return a.displayName?.trim()||a.hostname.trim()||a.machineId}function aG(a){return"applications"===a.mode?a.groups.flatMap(b=>D([...b.members],a.sort.key,a.sort.dir).map(a=>({row:a,application:b.label,applicationKind:b.kind,depth:0}))):"tree"===a.mode?a.tree.map(a=>({row:a.row,application:null,applicationKind:null,depth:a.depth})):a.sortedRows.map(a=>({row:a,application:null,applicationKind:null,depth:0}))}function aH(a){let b=a.now??Date.now(),c=null===a.receivedAtMs?null:Math.max(0,b-a.receivedAtMs),d=null===c?"receipt time unknown":`${Math.round(c/1e3)}s old`;return null===a.receivedAtMs?{label:"unknown",ageMs:null,stale:!0,note:"No browser receipt time is available for this snapshot."}:"paused"===a.phase?{label:"paused",ageMs:c,stale:!1,note:`Paused \xb7 ${d}. Not live.`}:"disconnected"===a.phase?{label:"disconnected",ageMs:c,stale:!0,note:`Collector disconnected \xb7 last snapshot ${d}. Not live.`}:"withheld"===a.phase||"unsupported"===a.phase?{label:"not live",ageMs:c,stale:!0,note:`Process detail is ${a.phase} \xb7 last snapshot ${d}.`}:"failed"===a.phase||"expired"===a.phase||"busy"===a.phase||"cancelled"===a.phase||"error"===a.phase?{label:"not live",ageMs:c,stale:!0,note:`Refresh problem \xb7 last snapshot ${d}. Not live.`}:"acquiring"===a.phase||"loading"===a.phase||"idle"===a.phase?{label:"waiting",ageMs:c,stale:!0,note:`Waiting for a fresh snapshot \xb7 ${d}.`}:N(a.receivedAtMs,b,a.intervalMs)?{label:"stale",ageMs:c,stale:!0,note:`No new snapshot has arrived \xb7 ${d}. Not live.`}:{label:"live",ageMs:c,stale:!1,note:`Live \xb7 updated ${d}.`}}function aI(a){return aD.filter(({key:b})=>null===a[b]).map(({label:a})=>a).join(" ")}function aJ(a,b){let c=aH({phase:a.phase,receivedAtMs:a.receivedAtMs,intervalMs:a.intervalMs,now:b}),d=null===a.receivedAtMs?"unknown":aE(a.receivedAtMs),e=a.query.trim();return[`Filtered process snapshot from the loaded view \xb7 ${c.note}`,`Search: ${e.length>0?e:"(none)"} \xb7 view: ${a.mode} \xb7 sort: ${a.sort.key} ${a.sort.dir}`,`Snapshot ${a.snapshot.processes.length} shown of ${a.snapshot.totalProcesses} processes \xb7 ${a.snapshot.inaccessible} unreadable${a.snapshot.truncated?" \xb7 collector kept the highest-CPU rows":""}`,`Captured ${a.capturedAt} \xb7 received ${d}`]}let aK=["name","pid","user","application","application_kind","tree_depth","cpu_percent","memory_rss_bytes","gpu_memory_bytes","io_read_bytes_per_sec","io_write_bytes_per_sec","threads","unavailable_metrics"],aL="inline-flex min-h-7 items-center rounded-md border border-border bg-background px-2 text-xs text-foreground transition-colors hover:bg-card-strong disabled:cursor-not-allowed disabled:opacity-50";function aM(a){let[b,c]=(0,q.useState)(null),e=null!==a.snapshot&&null!==a.capturedAt,f=e?"applications"===a.mode?a.filteredRows.length:"tree"===a.mode?a.tree.length:a.sortedRows.length:0,g=!e||0===f,h=b=>{if(null===a.snapshot||null===a.capturedAt)return;let d=Date.now(),e={...a,snapshot:a.snapshot,capturedAt:a.capturedAt,exportedAt:d};try{let a,g,h,i=function(a,b,c=Date.now()){let d=Date.parse(a.capturedAt);return(0,aC.Y8)("processes",aF(a.machine),Number.isFinite(d)?d:c,b)}(e,b,d),j="csv"===b?function(a){let b,c,d=a.exportedAt??Date.now(),e=(b=aG(a),c=aH({phase:a.phase,receivedAtMs:a.receivedAtMs,intervalMs:a.intervalMs,now:d}),[["Rigscope process snapshot"],["Scope",aJ(a,d)[0]],["Machine",aF(a.machine)],["Machine ID",a.machine.machineId],["Snapshot captured",a.capturedAt],["Snapshot received",null===a.receivedAtMs?"unknown":aE(a.receivedAtMs)],["Freshness",`${c.label}${null===c.ageMs?"":` \xb7 ${Math.round(c.ageMs/1e3)}s old`}`],["Search",a.query.trim()||"(none)"],["View",a.mode],["Sort",`${a.sort.key} ${a.sort.dir}`],["Snapshot rows",`${a.snapshot.processes.length} shown of ${a.snapshot.totalProcesses}`],["Unreadable",String(a.snapshot.inaccessible)],["Collector truncated",a.snapshot.truncated?"true":"false"],["Exported rows",String(b.length)],["Note",aJ(a,d).slice(1).join(" ")],[]]);for(let b of(e.push([...aK]),aG(a)))e.push(function(a){let{row:b}=a;return[b.name,b.pid,b.user,a.application,a.applicationKind,a.depth,b.cpuPercent,b.memoryRssBytes,b.gpuMemoryBytes,b.ioReadBytesPerSec,b.ioWriteBytesPerSec,b.threads,aI(b)]}(b));return(0,aB.kg)(e)}(e):(a=e.exportedAt??Date.now(),g=aH({phase:e.phase,receivedAtMs:e.receivedAtMs,intervalMs:e.intervalMs,now:a}),h={app:"Rigscope",kind:"processes",exportedAt:aE(a),scope:{description:"Filtered process snapshot from the loaded view",machine:{id:e.machine.machineId,name:aF(e.machine),hostname:e.machine.hostname,connected:e.machine.connected},query:e.query.trim(),view:e.mode,sort:e.sort},snapshot:{capturedAt:e.capturedAt,receivedAt:null===e.receivedAtMs?null:aE(e.receivedAtMs),ageMs:g.ageMs,freshness:g.label,live:!g.stale&&"live"===g.label,note:g.note,totalProcesses:e.snapshot.totalProcesses,shownProcesses:e.snapshot.processes.length,inaccessible:e.snapshot.inaccessible,truncated:e.snapshot.truncated},exportedRows:aG(e).length,notes:aJ(e,a),processes:aG(e).map(a=>({name:a.row.name,pid:a.row.pid,user:a.row.user,application:a.application,applicationKind:a.applicationKind,treeDepth:a.depth,cpuPercent:a.row.cpuPercent,memoryRssBytes:a.row.memoryRssBytes,gpuMemoryBytes:a.row.gpuMemoryBytes,ioReadBytesPerSec:a.row.ioReadBytesPerSec,ioWriteBytesPerSec:a.row.ioWriteBytesPerSec,threads:a.row.threads,unavailableMetrics:aI(a.row).split(" ").filter(Boolean)}))},`${JSON.stringify(h,null,2)}
|
|
1
|
+
(()=>{var a={};a.id=952,a.ids=[952],a.modules={104:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},1498:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},20340:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>k,metadata:()=>i});var d=c(5735),e=c(91986),f=c(88713),g=c(35448),h=c(89893);let i={title:"Processes"};function j(){return(0,d.jsx)(f.G,{title:"Processes",children:(0,d.jsx)(g.Z,{title:"Process detail",className:"mt-2",children:(0,d.jsx)("p",{role:"status",className:"py-10 text-center text-sm text-muted-foreground",children:"Loading the process view…"})})})}function k(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(j,{}),children:(0,d.jsx)(h.ProcessesView,{})})}},28354:a=>{"use strict";a.exports=require("util")},28787:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>q,handler:()=>s,routeModule:()=>r});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),o={children:["",{children:["processes",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,20340))),"/home/triet/Project/rigscope/src/app/processes/page.tsx"]}]},{"global-error":[n,"next/dist/client/components/builtin/global-error.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]},{layout:[i,"/home/triet/Project/rigscope/src/app/layout.tsx"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]}.children,p=(0,e.H)({tree:o,page:"/processes/page",pathname:"/processes",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),q=p.__next_app__,r=p.routeModule,s=p.handler},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30847:(a,b,c)=>{"use strict";c.d(b,{ProcessesView:()=>aV});var d=c(48249),e=c(2116),f=c.n(e),g=c(48878),h=c(66125),i=c(89313),j=c(22091),k=c(22338),l=c(81232),m=c(75006),n=c(4155),o=c(58910),p=c(52464),q=c(67484),r=c(31742),s=c(93484),t=c(49187),u=c(73742),v=c(12421),w=c(90162),x=c(1498),y=c(104),z=c(64500);let A=new Set(["bash","zsh","fish","sh","dash","ksh","mksh","tcsh","csh","ash","busybox"]),B=new Set(["sshd","sshd-session","dropbear","tmux","screen","systemd"]),C=["cpuPercent","memoryRssBytes","gpuMemoryBytes","ioReadBytesPerSec","ioWriteBytesPerSec"];function D(a,b,c){return a.slice().sort((a,d)=>K(J(a,b),J(d,b),c))}function E(a){return null!==a&&!!("init.scope"===a||/^session-.+\.scope$/.test(a)||/^user@.+\.service$/.test(a))}function F(a){return null===a||!a.endsWith(".scope")&&!a.endsWith(".service")||E(a)?null:a}function G(a){let b=a.replace(/\.(scope|service)$/,"");return b.startsWith("app-gnome-")?b=b.slice(10):b.startsWith("app-")&&(b=b.slice(4)),(b=b.replace(/-\d+$/,"")).length>0?b:a}function H(a){return{key:`tree:${a.pid}:${a.startTicks}`,label:a.name,kind:"tree",leader:a}}function I(a,b){switch(b){case"cpu":return a.cpuPercent;case"memory":return a.memoryRssBytes;case"gpuMemory":return a.gpuMemoryBytes;case"ioRead":return a.ioReadBytesPerSec;case"ioWrite":return a.ioWriteBytesPerSec;case"name":return a.label;case"count":return a.count;case"pid":var c=a.members;let d=null;for(let a of c)(null===d||a.pid<d)&&(d=a.pid);return d;case"user":return a.users.length>0?a.users[0]:null}}function J(a,b){switch(b){case"cpu":return a.cpuPercent;case"memory":return a.memoryRssBytes;case"gpuMemory":return a.gpuMemoryBytes;case"ioRead":return a.ioReadBytesPerSec;case"ioWrite":return a.ioWriteBytesPerSec;case"name":return a.name;case"count":return 1;case"pid":return a.pid;case"user":return a.user}}function K(a,b,c){let d,e=null==a,f=null==b;if(e&&f)return 0;if(e)return 1;if(f)return -1;if("number"==typeof a&&"number"==typeof b)d=a-b;else{let c=String(a).toLowerCase(),e=String(b).toLowerCase();d=c<e?-1:+(c>e)}return"asc"===c?d:-d}c(25982);var L=c(93224);let M={key:"cpu",dir:"desc"};function N(a,b,c){return null!==a&&b-a>=(!Number.isFinite(c)||c<=0?1e4:Math.max(1e4,3*c))}let O=[{value:"applications",label:"Applications"},{value:"processes",label:"Processes"},{value:"tree",label:"Tree"}];function P(a){return`${a.pid}:${a.startTicks}`}function Q(a){if(void 0===a.command)return a;let{command:b,...c}=a;return c}function R(a){return null!=a&&Number.isFinite(a)?Math.round(a).toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):"—"}function S(a){switch(a){case"idle":return{label:"Not connected",tone:"muted",description:"Select a machine to request process detail.",retryable:!1};case"acquiring":return{label:"Connecting",tone:"warn",description:"Requesting process detail…",retryable:!1};case"loading":return{label:"Waiting",tone:"warn",description:"Waiting for the collector's first process snapshot…",retryable:!1};case"ready":return{label:"Live",tone:"ok",description:"Process detail is live.",retryable:!1};case"paused":return{label:"Paused",tone:"muted",description:"Process updates are paused.",retryable:!1};case"stale":return{label:"Not refreshing",tone:"warn",description:"The last snapshot is retained, but new snapshots are not arriving.",retryable:!0};case"disconnected":return{label:"Disconnected",tone:"crit",description:"The collector is disconnected; the last snapshot is not live.",retryable:!0};case"withheld":return{label:"Withheld",tone:"warn",description:"Process detail is withheld for this hub.",retryable:!0};case"unsupported":return{label:"Unsupported",tone:"warn",description:"This collector cannot provide process detail.",retryable:!0};case"busy":return{label:"Busy",tone:"warn",description:"Too many process views are open for this hub.",retryable:!0};case"expired":return{label:"Expired",tone:"warn",description:"Process detail expired before a fresh snapshot arrived.",retryable:!0};case"failed":return{label:"Scan failed",tone:"crit",description:"The process scan failed repeatedly.",retryable:!0};case"cancelled":return{label:"Stopped",tone:"muted",description:"The process detail view was stopped.",retryable:!0};case"error":return{label:"Unavailable",tone:"crit",description:"Process detail is unavailable right now.",retryable:!0}}}var T=c(29356);class U{maxAgeMs;limit;session=null;entries=new Map;constructor(a=3e5,b=32){this.maxAgeMs=a,this.limit=b}scope(a){(this.session!==a||null===a)&&this.entries.clear(),this.session=a}get(a,b,c=Date.now()){this.scope(b);let d=this.entries.get(a);return d&&c-d.lastReceivedMs>=this.maxAgeMs?void this.entries.delete(a):d}set(a,b,c){this.scope(b),this.entries.delete(a),this.entries.set(a,c),this.entries.size>this.limit&&this.entries.delete(this.entries.keys().next().value)}delete(a,b){this.scope(b),this.entries.delete(a)}}let V=new U;function W(a,b){let c=V.get(a??"",b);return void 0!==c?{phase:"stale",message:"Resuming process updates…",...c}:{phase:null===a?"idle":"acquiring",detail:null,message:null,intervalMs:1e3,leaseMs:15e3,lastReceivedMs:null}}var X=c(65366);let Y=(0,X.A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Z=(0,X.A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),$=(0,X.A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var _=c(38420),aa=c(94054);let ab=[{id:"name",label:"Application",sortKey:"name",align:"left",width:300},{id:"count",label:"Procs",sortKey:"count",align:"right",width:76},{id:"cpu",label:"CPU / core",sortKey:"cpu",align:"right",width:104},{id:"memory",label:"RSS",sortKey:"memory",align:"right",width:96},{id:"gpuMemory",label:"VRAM",sortKey:"gpuMemory",align:"right",width:96},{id:"ioRead",label:"Read",sortKey:"ioRead",align:"right",width:104},{id:"ioWrite",label:"Write",sortKey:"ioWrite",align:"right",width:104},{id:"users",label:"Users",sortKey:"user",align:"left",width:160}],ac=[{id:"name",label:"Process",sortKey:"name",align:"left",width:300},{id:"pid",label:"PID",sortKey:"pid",align:"right",width:84},{id:"user",label:"User",sortKey:"user",align:"left",width:120},{id:"cpu",label:"CPU / core",sortKey:"cpu",align:"right",width:104},{id:"memory",label:"RSS",sortKey:"memory",align:"right",width:96},{id:"gpuMemory",label:"VRAM",sortKey:"gpuMemory",align:"right",width:96},{id:"ioRead",label:"Read",sortKey:"ioRead",align:"right",width:104},{id:"ioWrite",label:"Write",sortKey:"ioWrite",align:"right",width:104},{id:"threads",label:"Threads",align:"right",width:84}],ad=Object.freeze({}),ae=Object.freeze([]),af=new Set(["cpu","memory","gpuMemory","ioRead","ioWrite","name","count","pid","user"]);function ag(a){return Math.round(Math.min(1200,Math.max(56,a)))}function ah(a){return"applications"===a||"processes"===a||"tree"===a?a:null}function ai(a){if(null===a||"object"!=typeof a)return null;let{key:b,dir:c}=a;return"string"==typeof b&&af.has(b)&&("asc"===c||"desc"===c)?{key:b,dir:c}:null}function aj(a){if(null===a||"object"!=typeof a||Array.isArray(a))return null;let b={};for(let[c,d]of Object.entries(a))"number"==typeof d&&Number.isFinite(d)&&(b[c]=ag(d));return b}function ak(a){return"string"==typeof a?a.slice(0,200):null}function al(a){return"boolean"==typeof a?a:null}function am(a){return Array.isArray(a)&&a.every(a=>"string"==typeof a)?a.slice(0,500):null}let an="overflow-hidden text-ellipsis whitespace-nowrap border-b border-border px-2 py-2 align-middle",ao=`${an} tnum text-right text-xs`,ap="relative overflow-hidden whitespace-nowrap border-b border-border px-2 py-2 text-left text-xs font-normal text-muted-foreground";function aq(a,b){return b[a.id]??a.width}function ar({label:a,width:b,onChange:c,onReset:e}){let f=(0,q.useRef)(null);return(0,d.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":`Resize ${a} column`,"aria-valuenow":b,"aria-valuemin":56,"aria-valuemax":1200,tabIndex:0,title:"Drag to resize \xb7 double-click to reset",onPointerDown:a=>{0===a.button&&(a.preventDefault(),a.stopPropagation(),a.currentTarget.setPointerCapture(a.pointerId),f.current={x:a.clientX,width:b})},onPointerMove:a=>{null!==f.current&&c(ag(f.current.width+a.clientX-f.current.x))},onPointerUp:a=>{null!==f.current&&c(ag(f.current.width+a.clientX-f.current.x)),f.current=null,a.currentTarget.hasPointerCapture(a.pointerId)&&a.currentTarget.releasePointerCapture(a.pointerId)},onPointerCancel:()=>{f.current=null},onLostPointerCapture:()=>{f.current=null},onClick:a=>a.stopPropagation(),onDoubleClick:a=>{a.stopPropagation(),e()},onKeyDown:a=>{"ArrowLeft"===a.key?(a.preventDefault(),c(ag(b-16))):"ArrowRight"===a.key&&(a.preventDefault(),c(ag(b+16)))},className:"group/handle absolute inset-y-0 right-0 z-10 flex w-2.5 cursor-col-resize touch-none select-none justify-end",children:(0,d.jsx)("span",{"aria-hidden":!0,className:"my-2 w-px bg-border transition-colors group-hover/handle:bg-accent group-focus-visible/handle:bg-accent"})})}function as({column:a,sort:b,onSort:c,width:e,onResize:f,onReset:g}){let h="right"===a.align,i=a.sortKey,j=void 0!==i?b.key!==i?"none":"asc"===b.dir?"ascending":"descending":"none",k="none"!==j,l=k?"asc"===b.dir?Z:$:Y;return(0,d.jsxs)("th",{scope:"col","aria-sort":void 0!==i?j:void 0,className:h?`${ap} text-right`:ap,children:[void 0!==i?(0,d.jsxs)("button",{type:"button",onClick:()=>c(i),className:["inline-flex min-h-6 max-w-full items-center gap-1 rounded-sm transition-colors hover:text-foreground",h?"w-full justify-end pr-1":"",k?"text-foreground":""].filter(Boolean).join(" "),children:[(0,d.jsx)("span",{className:"truncate",children:a.label}),(0,d.jsx)(l,{className:k?"h-3 w-3 shrink-0":"h-3 w-3 shrink-0 opacity-40","aria-hidden":!0})]}):(0,d.jsx)("span",{className:h?"block truncate pr-1":"block truncate",children:a.label}),(0,d.jsx)(ar,{label:a.label,width:e,onChange:f,onReset:g})]})}function at({table:a,columns:b,label:c,caption:e,sort:f,onSort:g,children:h}){let[i,j]=(0,aa.u)(`processes.widths.${a}`,ad,aj),k=(0,q.useRef)(null),[l,m]=(0,q.useState)(0),n=a=>"name"===a.id?160:56,o=b.reduce((a,b)=>a+n(b),0),p=b.reduce((a,b)=>a+aq(b,i),0),r={},s=Math.max(l||p,o),t=[...b];for(;t.length>0;){let a=t.reduce((a,b)=>a+aq(b,i),0),b=t.filter(b=>s*aq(b,i)/a<n(b));if(0===b.length){for(let b of t)r[b.id]=s*aq(b,i)/a;break}for(let a of b)r[a.id]=n(a),s-=n(a);t=t.filter(a=>!b.includes(a))}return(0,d.jsx)("div",{ref:k,className:"relative min-h-0 w-full min-w-0 flex-1 overflow-auto overscroll-contain",tabIndex:0,role:"region","aria-label":c,children:(0,d.jsxs)("table",{className:"table-fixed border-separate border-spacing-0 text-left",style:{width:"100%",minWidth:o},children:[(0,d.jsx)("caption",{className:"sr-only",children:e}),(0,d.jsx)("colgroup",{children:b.map(a=>(0,d.jsx)("col",{style:{width:r[a.id]}},a.id))}),(0,d.jsx)("thead",{className:"sticky top-0 z-20 bg-card",children:(0,d.jsx)("tr",{children:b.map(a=>(0,d.jsx)(as,{column:a,sort:f,onSort:g,width:r[a.id],onResize:c=>{let d,e,f;return d=b.indexOf(a),e=b[d+1]??b[d-1],f=Math.max(n(a)-r[a.id],Math.min(c-r[a.id],r[e.id]-n(e))),void j({...r,[a.id]:r[a.id]+f,[e.id]:r[e.id]-f})},onReset:()=>j(b=>{let{[a.id]:c,...d}=b;return d})},a.id))})}),(0,d.jsx)("tbody",{children:h})]})})}function au({value:a,kind:b,partial:c=!1}){let e=function(a,b,c=!1){let d;if(null===a||!Number.isFinite(a)||a<0)return{text:"—",atLeast:!1,title:null};switch(b){case"percent":d=(0,L.l9)(a);break;case"bytes":d=(0,L.z3)(a);break;case"rate":d=`${(0,L.z3)(a)}/s`;break;case"count":d=R(a)}return{text:d,atLeast:c,title:c?`At least ${d}: some processes in this group did not report this metric.`:null}}(a,b,c);return(0,d.jsxs)("td",{className:"—"===e.text?`${ao} text-muted-foreground`:ao,title:e.title??void 0,children:[e.atLeast?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{"aria-hidden":!0,children:"≥ "}),(0,d.jsx)("span",{className:"sr-only",children:"at least "})]}):null,e.text]})}function av(a){let b=a.name.length>0?a.name:"Unnamed process";return null!==a.unit?`${b} \xb7 ${a.unit}`:b}function aw({row:a,depth:b=0}){return(0,d.jsx)("th",{scope:"row",className:`${an} text-left text-sm font-medium`,title:av(a),children:(0,d.jsxs)("span",{style:b>0?{paddingLeft:`${14*b}px`}:void 0,children:[b>0?(0,d.jsx)("span",{className:"sr-only",children:`Nested level ${b+1}. `}):null,a.name.length>0?a.name:(0,d.jsx)("span",{className:"text-muted-foreground",children:"Unnamed process"})]})})}function ax({entries:a,sort:b,onSort:c,mode:e}){return(0,d.jsx)(at,{table:"processes",columns:ac,label:"tree"===e?"Process tree":"Process list",caption:"tree"===e?"Process tree with nesting depth, PID, user, CPU per core, resident memory, GPU memory, read and write rates, and threads":"Processes with PID, user, CPU per core, resident memory, GPU memory, read and write rates, and threads",sort:b,onSort:c,children:a.map(({row:a,depth:b})=>(0,d.jsxs)("tr",{className:"transition-colors hover:bg-card-strong/60",children:[(0,d.jsx)(aw,{row:a,depth:b}),(0,d.jsx)("td",{className:ao,children:a.pid}),(0,d.jsx)("td",{className:`${an} text-xs text-muted-foreground`,title:a.user??void 0,children:a.user??"—"}),(0,d.jsx)(au,{value:a.cpuPercent,kind:"percent"}),(0,d.jsx)(au,{value:a.memoryRssBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.gpuMemoryBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.ioReadBytesPerSec,kind:"rate"}),(0,d.jsx)(au,{value:a.ioWriteBytesPerSec,kind:"rate"}),(0,d.jsx)("td",{className:ao,children:R(a.threads)})]},P(a)))})}function ay({group:a}){return(0,d.jsx)(d.Fragment,{children:a.members.map(a=>(0,d.jsxs)("tr",{className:"bg-card-strong/40 transition-colors hover:bg-card-strong/70",children:[(0,d.jsx)("th",{scope:"row",className:`${an} text-left text-xs font-normal`,title:`${av(a)} \xb7 PID ${a.pid}`,children:(0,d.jsxs)("span",{className:"pl-5",children:[a.name.length>0?a.name:"Unnamed process",(0,d.jsx)("span",{className:"tnum ml-2 text-muted-foreground",children:a.pid})]})}),(0,d.jsx)("td",{className:ao}),(0,d.jsx)(au,{value:a.cpuPercent,kind:"percent"}),(0,d.jsx)(au,{value:a.memoryRssBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.gpuMemoryBytes,kind:"bytes"}),(0,d.jsx)(au,{value:a.ioReadBytesPerSec,kind:"rate"}),(0,d.jsx)(au,{value:a.ioWriteBytesPerSec,kind:"rate"}),(0,d.jsx)("td",{className:`${an} text-xs text-muted-foreground`,title:a.user??void 0,children:a.user??"—"})]},P(a)))})}function az({groups:a,sort:b,onSort:c,expanded:e,onToggleGroup:f}){return(0,d.jsx)(at,{table:"applications",columns:ab,label:"Applications",caption:"Applications grouped by systemd unit, process tree, or kernel, with process count, aggregate CPU per core, resident memory, GPU memory, read and write rates, and users",sort:b,onSort:c,children:a.map(a=>{var b;let c=e.has(a.key),g=a.label.length>0?a.label:"Unnamed application",h=a.users.length>0?a.users.join(", "):"—";return(0,d.jsxs)(q.Fragment,{children:[(0,d.jsxs)("tr",{className:"transition-colors hover:bg-card-strong/60",children:[(0,d.jsx)("th",{scope:"row",className:`${an} text-left font-normal`,title:`${g} \xb7 ${"unit"===(b=a.kind)?"systemd unit":"kernel"===b?"kernel":"process tree"}`,children:(0,d.jsxs)("button",{type:"button","aria-expanded":c,onClick:()=>f(a.key),className:"inline-flex min-h-6 max-w-full items-center gap-1.5 rounded-sm text-left",children:[(0,d.jsx)(_.A,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform ${c?"rotate-90":""}`,"aria-hidden":!0}),(0,d.jsx)("span",{className:"truncate text-sm font-medium",children:g})]})}),(0,d.jsx)("td",{className:ao,children:R(a.count)}),(0,d.jsx)(au,{value:a.cpuPercent,kind:"percent",partial:a.partial.cpuPercent}),(0,d.jsx)(au,{value:a.memoryRssBytes,kind:"bytes",partial:a.partial.memoryRssBytes}),(0,d.jsx)(au,{value:a.gpuMemoryBytes,kind:"bytes",partial:a.partial.gpuMemoryBytes}),(0,d.jsx)(au,{value:a.ioReadBytesPerSec,kind:"rate",partial:a.partial.ioReadBytesPerSec}),(0,d.jsx)(au,{value:a.ioWriteBytesPerSec,kind:"rate",partial:a.partial.ioWriteBytesPerSec}),(0,d.jsx)("td",{className:`${an} text-xs text-muted-foreground`,title:h,children:h})]}),c?(0,d.jsx)(ay,{group:a}):null]},a.key)})})}function aA({mode:a,groups:b,rows:c,tree:e,sort:f,onSort:g,expanded:h,onToggleGroup:i}){if("applications"===a)return(0,d.jsx)(az,{groups:b,sort:f,onSort:g,expanded:h,onToggleGroup:i});let j="tree"===a?e.map(a=>({row:a.row,depth:a.depth})):c.map(a=>({row:a,depth:0}));return(0,d.jsx)(ax,{entries:j,mode:a,sort:f,onSort:g})}var aB=c(71335),aC=c(56013);let aD=[{key:"cpuPercent",label:"cpu"},{key:"memoryRssBytes",label:"memory"},{key:"gpuMemoryBytes",label:"vram"},{key:"ioReadBytesPerSec",label:"read"},{key:"ioWriteBytesPerSec",label:"write"},{key:"threads",label:"threads"}];function aE(a){return new Date(a).toISOString()}function aF(a){return a.displayName?.trim()||a.hostname.trim()||a.machineId}function aG(a){return"applications"===a.mode?a.groups.flatMap(b=>D([...b.members],a.sort.key,a.sort.dir).map(a=>({row:a,application:b.label,applicationKind:b.kind,depth:0}))):"tree"===a.mode?a.tree.map(a=>({row:a.row,application:null,applicationKind:null,depth:a.depth})):a.sortedRows.map(a=>({row:a,application:null,applicationKind:null,depth:0}))}function aH(a){let b=a.now??Date.now(),c=null===a.receivedAtMs?null:Math.max(0,b-a.receivedAtMs),d=null===c?"receipt time unknown":`${Math.round(c/1e3)}s old`;return null===a.receivedAtMs?{label:"unknown",ageMs:null,stale:!0,note:"No browser receipt time is available for this snapshot."}:"paused"===a.phase?{label:"paused",ageMs:c,stale:!1,note:`Paused \xb7 ${d}. Not live.`}:"disconnected"===a.phase?{label:"disconnected",ageMs:c,stale:!0,note:`Collector disconnected \xb7 last snapshot ${d}. Not live.`}:"withheld"===a.phase||"unsupported"===a.phase?{label:"not live",ageMs:c,stale:!0,note:`Process detail is ${a.phase} \xb7 last snapshot ${d}.`}:"failed"===a.phase||"expired"===a.phase||"busy"===a.phase||"cancelled"===a.phase||"error"===a.phase?{label:"not live",ageMs:c,stale:!0,note:`Refresh problem \xb7 last snapshot ${d}. Not live.`}:"acquiring"===a.phase||"loading"===a.phase||"idle"===a.phase?{label:"waiting",ageMs:c,stale:!0,note:`Waiting for a fresh snapshot \xb7 ${d}.`}:N(a.receivedAtMs,b,a.intervalMs)?{label:"stale",ageMs:c,stale:!0,note:`No new snapshot has arrived \xb7 ${d}. Not live.`}:{label:"live",ageMs:c,stale:!1,note:`Live \xb7 updated ${d}.`}}function aI(a){return aD.filter(({key:b})=>null===a[b]).map(({label:a})=>a).join(" ")}function aJ(a,b){let c=aH({phase:a.phase,receivedAtMs:a.receivedAtMs,intervalMs:a.intervalMs,now:b}),d=null===a.receivedAtMs?"unknown":aE(a.receivedAtMs),e=a.query.trim();return[`Filtered process snapshot from the loaded view \xb7 ${c.note}`,`Search: ${e.length>0?e:"(none)"} \xb7 view: ${a.mode} \xb7 sort: ${a.sort.key} ${a.sort.dir}`,`Snapshot ${a.snapshot.processes.length} shown of ${a.snapshot.totalProcesses} processes \xb7 ${a.snapshot.inaccessible} unreadable${a.snapshot.truncated?" \xb7 collector kept the highest-CPU rows":""}`,`Captured ${a.capturedAt} \xb7 received ${d}`]}let aK=["name","pid","user","application","application_kind","tree_depth","cpu_percent","memory_rss_bytes","gpu_memory_bytes","io_read_bytes_per_sec","io_write_bytes_per_sec","threads","unavailable_metrics"],aL="inline-flex min-h-7 items-center rounded-md border border-border bg-background px-2 text-xs text-foreground transition-colors hover:bg-card-strong disabled:cursor-not-allowed disabled:opacity-50";function aM(a){let[b,c]=(0,q.useState)(null),e=null!==a.snapshot&&null!==a.capturedAt,f=e?"applications"===a.mode?a.filteredRows.length:"tree"===a.mode?a.tree.length:a.sortedRows.length:0,g=!e||0===f,h=b=>{if(null===a.snapshot||null===a.capturedAt)return;let d=Date.now(),e={...a,snapshot:a.snapshot,capturedAt:a.capturedAt,exportedAt:d};try{let a,g,h,i=function(a,b,c=Date.now()){let d=Date.parse(a.capturedAt);return(0,aC.Y8)("processes",aF(a.machine),Number.isFinite(d)?d:c,b)}(e,b,d),j="csv"===b?function(a){let b,c,d=a.exportedAt??Date.now(),e=(b=aG(a),c=aH({phase:a.phase,receivedAtMs:a.receivedAtMs,intervalMs:a.intervalMs,now:d}),[["Rigscope process snapshot"],["Scope",aJ(a,d)[0]],["Machine",aF(a.machine)],["Machine ID",a.machine.machineId],["Snapshot captured",a.capturedAt],["Snapshot received",null===a.receivedAtMs?"unknown":aE(a.receivedAtMs)],["Freshness",`${c.label}${null===c.ageMs?"":` \xb7 ${Math.round(c.ageMs/1e3)}s old`}`],["Search",a.query.trim()||"(none)"],["View",a.mode],["Sort",`${a.sort.key} ${a.sort.dir}`],["Snapshot rows",`${a.snapshot.processes.length} shown of ${a.snapshot.totalProcesses}`],["Unreadable",String(a.snapshot.inaccessible)],["Collector truncated",a.snapshot.truncated?"true":"false"],["Exported rows",String(b.length)],["Note",aJ(a,d).slice(1).join(" ")],[]]);for(let b of(e.push([...aK]),aG(a)))e.push(function(a){let{row:b}=a;return[b.name,b.pid,b.user,a.application,a.applicationKind,a.depth,b.cpuPercent,b.memoryRssBytes,b.gpuMemoryBytes,b.ioReadBytesPerSec,b.ioWriteBytesPerSec,b.threads,aI(b)]}(b));return(0,aB.kg)(e)}(e):(a=e.exportedAt??Date.now(),g=aH({phase:e.phase,receivedAtMs:e.receivedAtMs,intervalMs:e.intervalMs,now:a}),h={app:"Rigscope",kind:"processes",exportedAt:aE(a),scope:{description:"Filtered process snapshot from the loaded view",machine:{id:e.machine.machineId,name:aF(e.machine),hostname:e.machine.hostname,connected:e.machine.connected},query:e.query.trim(),view:e.mode,sort:e.sort},snapshot:{capturedAt:e.capturedAt,receivedAt:null===e.receivedAtMs?null:aE(e.receivedAtMs),ageMs:g.ageMs,freshness:g.label,live:!g.stale&&"live"===g.label,note:g.note,totalProcesses:e.snapshot.totalProcesses,shownProcesses:e.snapshot.processes.length,inaccessible:e.snapshot.inaccessible,truncated:e.snapshot.truncated},exportedRows:aG(e).length,notes:aJ(e,a),processes:aG(e).map(a=>({name:a.row.name,pid:a.row.pid,user:a.row.user,application:a.application,applicationKind:a.applicationKind,treeDepth:a.depth,cpuPercent:a.row.cpuPercent,memoryRssBytes:a.row.memoryRssBytes,gpuMemoryBytes:a.row.gpuMemoryBytes,ioReadBytesPerSec:a.row.ioReadBytesPerSec,ioWriteBytesPerSec:a.row.ioWriteBytesPerSec,threads:a.row.threads,unavailableMetrics:aI(a.row).split(" ").filter(Boolean)}))},`${JSON.stringify(h,null,2)}
|
|
2
2
|
`);(0,aB.PE)(i,j,"csv"===b?aB.UR:aB.uW),c(`${b.toUpperCase()} downloaded \xb7 ${f} ${1===f?"process":"processes"}`)}catch{c("The process export could not be created.")}},i=e?0===f?"No processes match the current search":void 0:"A process snapshot is not available yet";return(0,d.jsxs)("div",{className:"flex min-w-0 shrink-0 items-center gap-1.5",children:[(0,d.jsx)("span",{className:"hidden text-xs text-muted-foreground sm:inline",children:"Export"}),(0,d.jsx)("button",{type:"button",onClick:()=>h("csv"),disabled:g,"aria-label":"Download current process snapshot as CSV",title:i??"Download the filtered process snapshot as CSV",className:aL,children:"CSV"}),(0,d.jsx)("button",{type:"button",onClick:()=>h("json"),disabled:g,"aria-label":"Download current process snapshot as JSON",title:i??"Download the filtered process snapshot as JSON",className:aL,children:"JSON"}),(0,d.jsxs)("span",{role:"status",className:b?.includes("could not")?"inline-flex items-center gap-1 text-xs text-warn":"sr-only",children:[b?.includes("could not")?(0,d.jsx)(v.A,{className:"h-3 w-3","aria-hidden":!0}):null,b??""]})]})}let aN={ok:"bg-ok-soft text-ok",warn:"bg-warn-soft text-warn",crit:"bg-crit-soft text-crit",muted:"border border-border text-muted-foreground"};function aO({phase:a,message:b}){return(0,d.jsxs)("span",{title:b??a.description,className:`inline-flex h-6 w-32 shrink-0 items-center gap-1.5 rounded-full px-2 py-0.5 text-xs ${aN[a.tone]}`,children:[(0,d.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full bg-current","aria-hidden":!0}),a.label]})}function aP({onClick:a,label:b="Check again"}){return(0,d.jsxs)("button",{type:"button",onClick:a,className:"inline-flex min-h-5 items-center gap-1.5 rounded-md border border-border bg-card px-2 py-1 text-xs text-foreground transition-colors hover:bg-card-strong",children:[(0,d.jsx)(r.A,{className:"h-3 w-3","aria-hidden":!0}),b]})}function aQ({phase:a,info:b,message:c,onRetry:e}){let f="withheld"===a||"unsupported"===a?s.A:"disconnected"===a||"error"===a?t.A:"paused"===a?u.A:"acquiring"===a||"loading"===a?g.A:"busy"===a||"expired"===a||"failed"===a||"stale"===a?v.A:w.A;return(0,d.jsxs)("div",{className:"flex flex-col items-center gap-2 break-words",children:[(0,d.jsx)(k.p,{icon:f,note:c??b.description,className:"min-h-64 w-full"}),"paused"!==a&&b.retryable?(0,d.jsx)(aP,{onClick:e,label:"Retry process detail"}):null]})}function aR({summary:a,lastReceivedMs:b,intervalMs:c,message:e,phase:f,hasSnapshot:g}){let h=(0,T.c)(1e3),i="ready"===f&&N(b,h,c),j=i?"stale":f,k="paused"===j,l=S(j),m=null===b?null:(0,L.nV)(Math.max(0,h-b)),n=null===m?null:"ready"===j?`Updated ${m}`:`Last snapshot ${m}`,o=k?g?"Paused. This snapshot is not live.":"Paused. Use Resume to request a fresh snapshot.":`${l.label}${i?". No new snapshot has arrived.":""}${e?`. ${e}`:""}`;return k&&!g?(0,d.jsx)("p",{role:"status",className:"sr-only",children:o}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{role:"status",className:"sr-only",children:o}),(0,d.jsxs)("div",{className:"flex min-h-6 flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[k?(0,d.jsx)("span",{children:"Paused — not live"}):(0,d.jsx)(aO,{phase:l,message:e}),g&&null!==n?(0,d.jsx)("span",{className:"tnum",children:n}):null,g&&a.truncated?(0,d.jsxs)("span",{className:"tnum",title:"The collector kept the highest-CPU rows",children:["top ",R(a.shown)," of ",R(a.total)]}):null,g&&a.inaccessible>0?(0,d.jsxs)("span",{className:"tnum text-warn",children:[R(a.inaccessible)," unreadable"]}):null]})]})}function aS({machine:a,csrfToken:b,paused:c,onPausedChange:e}){var f;let[g,h]=(0,aa.u)("processes.query","",ak,"session"),i=(0,q.useDeferredValue)(g),[j,l]=(0,aa.u)("processes.mode","applications",ah),[m,n]=(f="applications"===j?"applications":"processes",(0,aa.u)(`processes.sort.${f}`,M,ai)),[o,p]=(0,aa.u)("processes.expanded",ae,am,"session"),r=(0,q.useMemo)(()=>new Set(o),[o]),{state:s,refresh:t}=function(a){let{machineId:b,csrfToken:c,paused:d}=a,[e,f]=(0,q.useState)(()=>"u">typeof document&&document.hidden),[g,h]=(0,q.useState)(0),[i,j]=(0,q.useState)(()=>W(b,c));(0,q.useRef)(i);let k=(0,q.useRef)({machineId:b,csrfToken:c}),l=(0,q.useRef)(0),m=(0,q.useCallback)(()=>{l.current+=1,h(l.current)},[]);return{state:k.current.machineId===b&&k.current.csrfToken===c?i:W(b,c),hidden:e,refresh:m}}({machineId:a.machineId,csrfToken:b,paused:c}),v=(0,q.useMemo)(()=>s.detail?.snapshot.processes??[],[s.detail]),w=(0,q.useMemo)(()=>(function(a){if(null===a)return{total:0,shown:0,inaccessible:0,truncated:!1};let b=a.processes.length;return{total:a.totalProcesses,shown:b,inaccessible:a.inaccessible,truncated:a.truncated}})(s.detail?.snapshot??null),[s.detail]),J=(0,q.useMemo)(()=>{var a,b,c;let d;return a=v,b=i,c=a.map(Q),0===(d=b.trim().toLowerCase()).length?c.slice():c.filter(a=>!!(a.name.toLowerCase().includes(d)||null!==a.user&&a.user.toLowerCase().includes(d)||String(a.pid).includes(d)||null!==a.unit&&a.unit.toLowerCase().includes(d)||void 0!==a.command&&a.command.toLowerCase().includes(d)))},[v,i]),L=(0,q.useMemo)(()=>D(J,m.key,m.dir),[J,m]),N=(0,q.useMemo)(()=>{var a,b,c;return"applications"===j?(a=function(a){let b=new Map;for(let c of a)b.has(c.pid)||b.set(c.pid,c);let c=new Map;for(let d of a){let a=function(a,b){if(function(a,b){if(2===a.pid||2===a.ppid)return!0;let c=a,d=new Set;for(;c&&!d.has(c.pid);){if(2===c.pid)return!0;d.add(c.pid),c=b.get(c.ppid)}return!1}(a,b))return{key:"kernel",label:"kernel",kind:"kernel",leader:a};let c=F(a.unit);if(null!==c)return{key:`unit:${c}`,label:G(c),kind:"unit",leader:a};let d=a,e=new Set;for(;;){if(e.has(d.pid)){let a=d;for(let c of e){let d=b.get(c);d&&(d.pid<a.pid||d.pid===a.pid&&d.startTicks<a.startTicks)&&(a=d)}return H(a)}e.add(d.pid);let a=b.get(d.ppid);if(!a||function(a,b){if(1===a.pid)return!0;let c=a.name.toLowerCase();if(A.has(c)||B.has(c)||c.startsWith("tmux:"))return!0;if(E(a.unit)){let c=b.get(a.ppid);return void 0===c||c.unit!==a.unit}return!1}(a,b))return H(d);let c=F(a.unit);if(null!==c)return{key:`unit:${c}`,label:G(c),kind:"unit",leader:a};d=a}}(d,b),e=c.get(a.key);e?e.members.push(d):c.set(a.key,{descriptor:a,members:[d]})}return[...c.values()].map(({descriptor:a,members:b})=>(function(a,b){let c={cpuPercent:{sum:0,known:0},memoryRssBytes:{sum:0,known:0},gpuMemoryBytes:{sum:0,known:0},ioReadBytesPerSec:{sum:0,known:0},ioWriteBytesPerSec:{sum:0,known:0}},d=new Set;for(let a of b)for(let b of(null!==a.user&&d.add(a.user),C)){let d=a[b];null!==d&&Number.isFinite(d)&&(c[b].sum+=d,c[b].known++)}let e=a=>0===c[a].known?null:c[a].sum,f={};for(let a of C)f[a]=c[a].known>0&&c[a].known<b.length;return{key:a.key,label:a.label,kind:a.kind,members:a.leader!==b[0]?[a.leader,...b.filter(b=>b!==a.leader)]:b,cpuPercent:e("cpuPercent"),memoryRssBytes:e("memoryRssBytes"),gpuMemoryBytes:e("gpuMemoryBytes"),ioReadBytesPerSec:e("ioReadBytesPerSec"),ioWriteBytesPerSec:e("ioWriteBytesPerSec"),count:b.length,users:[...d].sort(),partial:f}})(a,b))}(J),b=m.key,c=m.dir,a.slice().sort((a,d)=>K(I(a,b),I(d,b),c))):[]},[J,j,m]),P=(0,q.useMemo)(()=>"tree"===j?function(a){let b=a.length,c=new Map;for(let d=0;d<b;d++)c.has(a[d].pid)||c.set(a[d].pid,d);let d=a.map(a=>{let b=c.get(a.ppid);return void 0===b?null:b}),e=new Uint8Array(b);for(let a=0;a<b;a++){if(0!==e[a])continue;let b=[],c=a;for(;null!==c&&0===e[c];)e[c]=1,b.push(c),c=d[c];for(let a of(null!==c&&1===e[c]&&(d[b[b.length-1]]=null),b))e[a]=2}let f=Array.from({length:b},()=>[]),g=[];for(let a=0;a<b;a++){let b=d[a];null===b?g.push(a):f[b].push(a)}let h=[],i=[];for(let a=g.length-1;a>=0;a--)i.push({index:g[a],depth:0});for(;i.length>0;){let{index:b,depth:c}=i.pop();h.push({row:a[b],depth:c,children:f[b].length});let d=f[b];for(let a=d.length-1;a>=0;a--)i.push({index:d[a],depth:c+1})}return h}(L):[],[j,L]),R=S(s.phase),T=null!==s.detail,U=!T&&("acquiring"===s.phase||"loading"===s.phase),V=i.trim().slice(0,80),X=(0,q.useMemo)(()=>{let a=J.length,b=i.trim().length>0,c=1!==a||b?"processes":"process";return"applications"===j?`${N.length} app${1===N.length?"":"s"} \xb7 ${a}${b?` of ${w.shown}`:""} ${c}`:`${a}${b?` of ${w.shown}`:""} ${c}`},[i,J.length,N.length,j,w.shown]);return(0,d.jsx)(k.Z,{title:"Process detail",action:T?(0,d.jsx)("span",{className:"tnum hidden max-w-[18rem] truncate text-muted-foreground sm:block",children:X}):void 0,className:"min-h-0 flex-1",children:(0,d.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:[(0,d.jsxs)("div",{className:"relative min-w-0 flex-1 basis-52",children:[(0,d.jsx)("label",{htmlFor:"process-search",className:"sr-only",children:"Search processes"}),(0,d.jsx)(x.A,{className:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,d.jsx)("input",{id:"process-search",type:"search",value:g,onChange:a=>h(a.target.value),placeholder:"Search name, user, PID, or unit",autoComplete:"off",spellCheck:!1,className:"h-9 w-full rounded-md border border-border bg-card-strong py-1.5 pl-8 pr-8 text-sm text-foreground placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-cancel-button]:[-webkit-appearance:none]"}),g.length>0?(0,d.jsx)("button",{type:"button",onClick:()=>h(""),"aria-label":"Clear search",className:"absolute right-0.5 top-1/2 flex h-7 w-7 -translate-y-1/2 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-card hover:text-foreground",children:(0,d.jsx)(y.A,{className:"h-3.5 w-3.5","aria-hidden":!0})}):null]}),(0,d.jsx)("div",{role:"group","aria-label":"Process view",className:"inline-flex shrink-0 rounded-md border border-border p-0.5",children:O.map(a=>{let b=j===a.value;return(0,d.jsx)("button",{type:"button","aria-pressed":b,onClick:()=>l(a.value),className:["rounded px-2.5 py-1 text-xs transition-colors",b?"bg-selected font-medium text-foreground":"text-muted-foreground hover:bg-card-strong hover:text-foreground"].join(" "),children:a.label},a.value)})}),(0,d.jsxs)("button",{type:"button",onClick:()=>e(!c),title:c?"Resume process updates":"Pause process updates",className:"inline-flex min-h-9 shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs text-foreground transition-colors hover:bg-card-strong",children:[c?(0,d.jsx)(z.A,{className:"h-3.5 w-3.5","aria-hidden":!0}):(0,d.jsx)(u.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),c?"Resume":"Pause"]}),(0,d.jsx)(aM,{machine:a,snapshot:s.detail?.snapshot??null,capturedAt:s.detail?.capturedAt??null,receivedAtMs:s.lastReceivedMs,intervalMs:s.intervalMs,phase:s.phase,query:i,mode:j,sort:m,filteredRows:J,sortedRows:L,groups:N,tree:P})]}),(0,d.jsx)(aR,{summary:w,lastReceivedMs:s.lastReceivedMs,intervalMs:s.intervalMs,message:s.message,phase:s.phase,hasSnapshot:T}),(0,d.jsx)("div",{"aria-busy":U||"acquiring"===s.phase,className:"flex min-h-0 flex-1 flex-col overflow-auto",children:T?0===J.length?(0,d.jsxs)("div",{className:"flex flex-col items-center gap-2 break-words",children:[(0,d.jsx)(k.p,{icon:x.A,note:0===w.shown?"The collector reported no processes in this snapshot.":i.trim().length>0?`No processes match “${V}”.`:"No processes to show.",className:"min-h-64 w-full"}),i.trim().length>0?(0,d.jsxs)("button",{type:"button",onClick:()=>h(""),className:"inline-flex min-h-6 items-center gap-1.5 rounded-md border border-border px-2 py-1 text-xs text-foreground transition-colors hover:bg-card-strong",children:[(0,d.jsx)(y.A,{className:"h-3 w-3","aria-hidden":!0}),"Clear search"]}):null]}):(0,d.jsx)(aA,{mode:j,groups:N,rows:L,tree:P,sort:m,onSort:a=>n(b=>(function(a,b){return a.key===b?{key:b,dir:"asc"===a.dir?"desc":"asc"}:{key:b,dir:"name"===b||"user"===b||"pid"===b?"asc":"desc"}})(b,a)),expanded:r,onToggleGroup:a=>{p(b=>b.includes(a)?b.filter(b=>b!==a):[...b,a])}}):(0,d.jsx)(aQ,{phase:s.phase,info:R,message:s.message,onRetry:t})})]})})}function aT({waiting:a}){return(0,d.jsx)(k.Z,{title:a?"Waiting for machines":"No machines",className:"mt-2",children:(0,d.jsx)(k.p,{icon:a?g.A:h.A,note:a?"Waiting for the fleet snapshot…":"No machines are available in your authorized fleet."})})}function aU({requested:a}){return(0,d.jsxs)(k.Z,{title:"Machine not found",className:"mt-2",children:[(0,d.jsx)(k.p,{icon:i.A,note:"This machine is unavailable or outside your access."}),(0,d.jsxs)("p",{className:"tnum mt-2 break-all text-center text-xs text-muted-foreground",children:["Requested identifier: ",a]}),(0,d.jsx)("div",{className:"flex justify-center",children:(0,d.jsx)(f(),{href:"/",className:"mt-2 inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs text-foreground transition-colors hover:bg-card-strong",children:"Back to fleet"})})]})}function aV(){let{session:a,phase:b,machines:c}=(0,o.M)(),e=(0,n.x)(),[f,g]=(0,aa.u)("processes.paused",!1,al,"session"),{machine:h,navMachineId:i,requestedMachineId:k}=(0,p.JG)("processes"),q="signed-in"===a.kind?a.user.csrfToken:null,r=0===c.length&&("connecting"===b||"idle"===b);return(0,d.jsx)(j.G,{title:"Processes",machineId:i,machineView:"processes",workspace:!0,headerRight:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.$E,{}),(0,d.jsx)(m.B,{})]}),children:e||(0,d.jsx)(d.Fragment,{children:0===c.length?(0,d.jsx)(aT,{waiting:r}):h?(0,d.jsx)(aS,{machine:h,csrfToken:q,paused:f,onPausedChange:g},`${h.machineId}:${q}`):(0,d.jsx)(aU,{requested:k??""})})})}},33873:a=>{"use strict";a.exports=require("path")},38420:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},48878:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]])},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66125:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]])},89065:(a,b,c)=>{Promise.resolve().then(c.bind(c,40015)),Promise.resolve().then(c.bind(c,30847)),Promise.resolve().then(c.bind(c,7867)),Promise.resolve().then(c.bind(c,76670))},89893:(a,b,c)=>{"use strict";c.d(b,{ProcessesView:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call ProcessesView() from the server but ProcessesView 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.")},"/home/triet/Project/rigscope/src/components/processes/processes-view.tsx","ProcessesView")},98793:(a,b,c)=>{Promise.resolve().then(c.bind(c,28565)),Promise.resolve().then(c.bind(c,89893)),Promise.resolve().then(c.bind(c,50369)),Promise.resolve().then(c.bind(c,46568))}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[266,430,721,161,751,894],()=>b(b.s=28787));module.exports=c})();
|