@mndrk/agx 1.4.33 → 1.4.34
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/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/BUILD_ID +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/app-build-manifest.json +51 -51
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/app-path-routes-manifest.json +13 -13
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/build-manifest.json +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/prerender-manifest.json +18 -18
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/required-server-files.json +2 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/audit/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/auth/daemon-secret/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/auth/device/code/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/auth/device/token/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/auth/refresh/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/domains/[id]/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/domains/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/learnings/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/logs/stream/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/start/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/status/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/queue/complete/route.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/queue/complete/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/queue/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/stage-prompts/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/comments/[commentId]/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/comments/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/heartbeat/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/history/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/logs/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/route.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/stream/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/user-settings/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/workflows/[id]/nodes/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/workflows/[id]/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/auth/callback/route_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/auth/device/page.js +5 -5
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/auth/device/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/auth/device.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/auth/device.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/dashboard.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/dashboard.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/login.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/login.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/tasks/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/workflow/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app-paths-manifest.json +13 -13
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/6317.js +16 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/7699.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/8978.js +1141 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/edge-instrumentation.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/functions-config-manifest.json +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/instrumentation.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/middleware-manifest.json +6 -5
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/pages/404.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/pages/500.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/server-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/server-reference-manifest.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/app/auth/device/page-af9fda9ec7668e77.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/worker/index.js +45 -13
- package/lib/cli/cloud/taskLogger.js +58 -70
- package/package.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/_error.js +0 -28
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/app/auth/device/page-ccd70ca63478d630.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/fallback/amp.js +0 -1015
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/fallback/main-app.js +0 -1893
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/fallback/main.js +0 -1616
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/fallback/pages/_app.js +0 -28
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/fallback/pages/_error.js +0 -28
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/fallback/react-refresh.js +0 -62
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/fallback/webpack.js +0 -1368
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/main.js +0 -1616
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/pages/_app.js +0 -28
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/pages/_error.js +0 -28
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/polyfills.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/react-refresh.js +0 -62
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/webpack.js +0 -1405
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/development/_buildManifest.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/development/_ssgManifest.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/webpack/3f44f671f4861aa9.webpack.hot-update.json +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/webpack/webpack.3f44f671f4861aa9.hot-update.js +0 -12
- /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{DMNQmUkQjUP3zxWUwUUqb → D_7sZpASpEwgzK6REgmIt}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{DMNQmUkQjUP3zxWUwUUqb → D_7sZpASpEwgzK6REgmIt}/_ssgManifest.js +0 -0
package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/edge-instrumentation.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[183],{240:(a,b,c)=>{"use strict";async function d(){}c.r(b),c.d(b,{register:()=>d})}},a=>{var b=a(a.s=240);(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES).middleware_instrumentation=b}]);
|
|
2
|
+
//# sourceMappingURL=edge-instrumentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{var a={};a.id=6183,a.ids=[6183],a.modules={29021:a=>{a.exports=require("fs")},34589:a=>{a.exports=require("node:assert")},52586:(a,b,c)=>{async function d(){{let{getBoss:a,QUEUE_NAMES:b}=await c.e(7699).then(c.bind(c,17699)),{taskProcessor:d}=await c.e(6317).then(c.bind(c,46317)),e=await a();await e.work(b.TASK_PROCESS,{batchSize:5},d),console.log("[worker] pg-boss worker started (embedded)")}}c.r(b),c.d(b,{register:()=>d})},58500:a=>{a.exports=require("node:timers/promises")},64939:a=>{a.exports=import("pg")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79748:a=>{a.exports=require("fs/promises")}};var b=require("./webpack-runtime.js");b.C(a);var c=b(b.s=52586);module.exports=c})();
|
package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/middleware-manifest.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"middleware": {
|
|
4
4
|
"/": {
|
|
5
5
|
"files": [
|
|
6
|
+
"server/edge-instrumentation.js",
|
|
6
7
|
"server/edge-runtime-webpack.js",
|
|
7
8
|
"server/middleware.js"
|
|
8
9
|
],
|
|
@@ -17,11 +18,11 @@
|
|
|
17
18
|
"wasm": [],
|
|
18
19
|
"assets": [],
|
|
19
20
|
"env": {
|
|
20
|
-
"__NEXT_BUILD_ID": "
|
|
21
|
-
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "
|
|
22
|
-
"__NEXT_PREVIEW_MODE_ID": "
|
|
23
|
-
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "
|
|
24
|
-
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "
|
|
21
|
+
"__NEXT_BUILD_ID": "D_7sZpASpEwgzK6REgmIt",
|
|
22
|
+
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "p7jY7WGAdMZwhYL5+TdNCYv3AgYeRpT6daUxruucs9o=",
|
|
23
|
+
"__NEXT_PREVIEW_MODE_ID": "070526727319c0f5a7fd2f135ba5bc72",
|
|
24
|
+
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "46718f197b42fcb746185053a71afb501bd79c1375f8b2a17b636a5bdd664343",
|
|
25
|
+
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "35bda68f5030518aa4c4a7e5eeee6788c413e1b9f10fc054f660c866a377ed2a"
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--D_7sZpASpEwgzK6REgmIt--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/684e3dda28b1eb43.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d282787ed3063711.js"/><script src="/_next/static/chunks/4bd1b696-f785427dddbba9fb.js" async=""></script><script src="/_next/static/chunks/1255-a390e12b70b4a9fb.js" async=""></script><script src="/_next/static/chunks/main-app-c3d1ac80a13099fb.js" async=""></script><script src="/_next/static/chunks/app/layout-a88b659f348808e1.js" async=""></script><link rel="preload" href="https://www.googletagmanager.com/gtag/js?id=G-DVQQG95LNL" as="script"/><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>AGX Board - Agent Task Orchestration</title><meta name="description" content="Orchestrate and manage AI agent tasks on AGX Board"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="antialiased min-h-screen bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]"><div hidden=""><!--$--><!--/$--></div><div class="fixed inset-0 -z-10 h-full w-full bg-[radial-gradient(#27272a_1px,transparent_1px)] [background-size:16px_16px] opacity-20"></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-d282787ed3063711.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1402,[\"7177\",\"static/chunks/app/layout-a88b659f348808e1.js\"],\"\"]\n3:I[4647,[\"7177\",\"static/chunks/app/layout-a88b659f348808e1.js\"],\"AuthProvider\"]\n4:I[9766,[],\"\"]\n5:I[8924,[],\"\"]\n6:I[4431,[],\"OutletBoundary\"]\n8:I[5278,[],\"AsyncMetadataOutlet\"]\na:I[4431,[],\"ViewportBoundary\"]\nc:I[4431,[],\"MetadataBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[7150,[],\"\"]\n:HL[\"/_next/static/css/684e3dda28b1eb43.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"D_7sZpASpEwgzK6REgmIt\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/684e3dda28b1eb43.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"$L2\",null,{\"async\":true,\"src\":\"https://www.googletagmanager.com/gtag/js?id=G-DVQQG95LNL\",\"strategy\":\"afterInteractive\"}],[\"$\",\"$L2\",null,{\"id\":\"google-analytics\",\"strategy\":\"afterInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"\\n window.dataLayer = window.dataLayer || [];\\n function gtag(){dataLayer.push(arguments);}\\n gtag('js', new Date());\\n gtag('config', 'G-DVQQG95LNL');\\n \"}}]]}],[\"$\",\"body\",null,{\"className\":\"antialiased min-h-screen bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]\",\"children\":[[\"$\",\"div\",null,{\"className\":\"fixed inset-0 -z-10 h-full w-full bg-[radial-gradient(#27272a_1px,transparent_1px)] [background-size:16px_16px] opacity-20\"}],[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$L7\",[\"$\",\"$L8\",null,{\"promise\":\"$@9\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],null],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$d\",null,{\"fallback\":null,\"children\":\"$Le\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n7:null\n"])</script><script>self.__next_f.push([1,"9:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"AGX Board - Agent Task Orchestration\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Orchestrate and manage AI agent tasks on AGX Board\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"e:\"$9:metadata\"\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-d282787ed3063711.js" defer=""></script><script src="/_next/static/chunks/framework-e60c938074ff7136.js" defer=""></script><script src="/_next/static/chunks/main-8c662602f1324852.js" defer=""></script><script src="/_next/static/chunks/pages/_app-6c8c2371b16a04b8.js" defer=""></script><script src="/_next/static/chunks/pages/_error-94812ad32cad7365.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-d282787ed3063711.js" defer=""></script><script src="/_next/static/chunks/framework-e60c938074ff7136.js" defer=""></script><script src="/_next/static/chunks/main-8c662602f1324852.js" defer=""></script><script src="/_next/static/chunks/pages/_app-6c8c2371b16a04b8.js" defer=""></script><script src="/_next/static/chunks/pages/_error-94812ad32cad7365.js" defer=""></script><script src="/_next/static/D_7sZpASpEwgzK6REgmIt/_buildManifest.js" defer=""></script><script src="/_next/static/D_7sZpASpEwgzK6REgmIt/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"D_7sZpASpEwgzK6REgmIt","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/server-reference-manifest.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\"node\":{\"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\"node\":{\"402af22e910eb71e0867f901bdd4e9ceaeb0263b84\":{\"workers\":{\"app/auth/device/page\":{\"moduleId\":\"18142\",\"async\":true}},\"layer\":{\"app/auth/device/page\":\"action-browser\"},\"filename\":\"lib/device-actions.ts\",\"exportedName\":\"approveDeviceCode\"}},\"edge\":{},\"encryptionKey\":\"process.env.NEXT_SERVER_ACTIONS_ENCRYPTION_KEY\"}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{"
|
|
1
|
+
{"node":{"402af22e910eb71e0867f901bdd4e9ceaeb0263b84":{"workers":{"app/auth/device/page":{"moduleId":"18142","async":true}},"layer":{"app/auth/device/page":"action-browser"},"filename":"lib/device-actions.ts","exportedName":"approveDeviceCode"}},"edge":{},"encryptionKey":"p7jY7WGAdMZwhYL5+TdNCYv3AgYeRpT6daUxruucs9o="}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8008],{63:(e,t,r)=>{"use strict";var s=r(7260);r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return s.callServer},createServerReference:function(){return c.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let s=r(1209),n=r(5153),c=r(7197)},5109:(e,t,r)=>{Promise.resolve().then(r.bind(r,9053))},9053:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(5155),n=r(2115),c=r(63),a=r(926);let l=(0,a.createServerReference)("402af22e910eb71e0867f901bdd4e9ceaeb0263b84",a.callServer,void 0,a.findSourceMapURL,"approveDeviceCode");function o(){let e=(0,c.useSearchParams)(),t=(0,c.useRouter)(),r=e.get("user_code")||"",[a,o]=(0,n.useState)(r),[u,i]=(0,n.useState)(!1),[d,f]=(0,n.useState)(null),[x,h]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(x){let e=setTimeout(()=>{t.push("/projects")},3e3);return()=>clearTimeout(e)}},[x,t]);let m=async e=>{e.preventDefault(),i(!0),f(null);try{let e=await l(a);if(!e.success)throw Error(e.error);h(!0)}catch(e){f(e.message)}finally{i(!1)}};return x?(0,s.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-neutral-900 text-white p-4",children:(0,s.jsxs)("div",{className:"max-w-md w-full bg-neutral-800 p-8 rounded-xl shadow-2xl text-center",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold mb-4 text-green-400",children:"Success!"}),(0,s.jsx)("p",{className:"text-gray-300 mb-2",children:"You have successfully authenticated your device."}),(0,s.jsx)("p",{className:"text-gray-400 text-sm mb-6 italic",children:"Redirecting to projects in a few seconds..."}),(0,s.jsx)("button",{onClick:()=>t.push("/projects"),className:"w-full py-3 px-4 bg-white text-black font-semibold rounded-lg hover:bg-gray-200 transition-colors",children:"Go to Projects"})]})}):(0,s.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-neutral-900 text-white p-4",children:(0,s.jsxs)("div",{className:"max-w-md w-full bg-neutral-800 p-8 rounded-xl shadow-2xl",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold mb-6 text-center",children:"Connect Device"}),(0,s.jsx)("p",{className:"text-gray-400 mb-8 text-center text-sm",children:"Enter the code displayed on your device to authorize it."}),(0,s.jsxs)("form",{onSubmit:m,className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"code",className:"block text-sm font-medium text-gray-400 mb-2",children:"Device Code"}),(0,s.jsx)("input",{type:"text",id:"code",value:a,onChange:e=>o(e.target.value.toUpperCase()),placeholder:"BCDF-XXXX",className:"w-full px-4 py-3 bg-neutral-900 border border-neutral-700 rounded-lg text-white placeholder-neutral-600 focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-center tracking-widest text-lg uppercase",required:!0})]}),d&&(0,s.jsx)("div",{className:"p-3 bg-red-900/50 border border-red-800 rounded-lg text-red-200 text-center text-sm",children:d}),(0,s.jsx)("button",{type:"submit",disabled:u,className:"w-full py-3 px-4 bg-white text-black font-semibold rounded-lg hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Verifying...":"Authorize Device"})]})]})})}function u(){return(0,s.jsx)(n.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading..."}),children:(0,s.jsx)(o,{})})}}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=5109)),_N_E=e.O()}]);
|
|
@@ -18329,6 +18329,7 @@ var init_dist = __esm({
|
|
|
18329
18329
|
|
|
18330
18330
|
// ../agx-cloud/lib/queue/boss.ts
|
|
18331
18331
|
var boss = null;
|
|
18332
|
+
var bossPromise = null;
|
|
18332
18333
|
var PgBossCtor = null;
|
|
18333
18334
|
async function loadPgBoss() {
|
|
18334
18335
|
if (PgBossCtor) return PgBossCtor;
|
|
@@ -18336,34 +18337,65 @@ async function loadPgBoss() {
|
|
|
18336
18337
|
PgBossCtor = mod.PgBoss || mod.default || mod;
|
|
18337
18338
|
return PgBossCtor;
|
|
18338
18339
|
}
|
|
18340
|
+
function getConnectionString() {
|
|
18341
|
+
return process.env.DATABASE_URL || "postgresql://agx:agx@localhost:55432/agx";
|
|
18342
|
+
}
|
|
18343
|
+
function getConnectionTimeoutMillis() {
|
|
18344
|
+
const raw = String(process.env.PG_BOSS_CONNECTION_TIMEOUT_MS || "").trim();
|
|
18345
|
+
if (!raw) return void 0;
|
|
18346
|
+
const n = Number(raw);
|
|
18347
|
+
if (!Number.isFinite(n) || n <= 0) return void 0;
|
|
18348
|
+
return Math.floor(n);
|
|
18349
|
+
}
|
|
18339
18350
|
async function getBoss() {
|
|
18340
|
-
if (
|
|
18351
|
+
if (boss) return boss;
|
|
18352
|
+
if (bossPromise) return bossPromise;
|
|
18353
|
+
bossPromise = (async () => {
|
|
18341
18354
|
const Boss2 = await loadPgBoss();
|
|
18342
|
-
|
|
18343
|
-
|
|
18355
|
+
const connectionString = getConnectionString();
|
|
18356
|
+
const connectionTimeoutMillis = getConnectionTimeoutMillis();
|
|
18357
|
+
const instance = new Boss2({
|
|
18358
|
+
connectionString,
|
|
18359
|
+
...connectionTimeoutMillis ? { connectionTimeoutMillis } : {},
|
|
18344
18360
|
// Use existing schema. In dev/test, allow auto-migrate so local installs work out of the box.
|
|
18345
18361
|
schema: "pgboss",
|
|
18346
18362
|
migrate: process.env.PG_BOSS_MIGRATE === "1" || process.env.NODE_ENV !== "production"
|
|
18347
18363
|
});
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18351
|
-
|
|
18364
|
+
instance.on?.("error", (error) => {
|
|
18365
|
+
console.error("[pg-boss] error:", error);
|
|
18366
|
+
});
|
|
18367
|
+
try {
|
|
18368
|
+
await instance.start();
|
|
18369
|
+
const maybeCreateQueue = async (name) => {
|
|
18370
|
+
const fn = instance?.createQueue;
|
|
18371
|
+
if (typeof fn !== "function") return;
|
|
18372
|
+
try {
|
|
18373
|
+
await fn.call(instance, name);
|
|
18374
|
+
} catch {
|
|
18375
|
+
}
|
|
18376
|
+
};
|
|
18377
|
+
await maybeCreateQueue(QUEUE_NAMES.TASK_PROCESS);
|
|
18378
|
+
await maybeCreateQueue(QUEUE_NAMES.TASK_CLEANUP);
|
|
18379
|
+
boss = instance;
|
|
18380
|
+
return instance;
|
|
18381
|
+
} catch (error) {
|
|
18352
18382
|
try {
|
|
18353
|
-
await
|
|
18383
|
+
await instance.stop();
|
|
18354
18384
|
} catch {
|
|
18355
18385
|
}
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18386
|
+
throw error;
|
|
18387
|
+
} finally {
|
|
18388
|
+
if (!boss) bossPromise = null;
|
|
18389
|
+
}
|
|
18390
|
+
})();
|
|
18391
|
+
return bossPromise;
|
|
18361
18392
|
}
|
|
18362
18393
|
async function stopBoss() {
|
|
18363
18394
|
if (boss) {
|
|
18364
18395
|
await boss.stop();
|
|
18365
18396
|
boss = null;
|
|
18366
18397
|
}
|
|
18398
|
+
bossPromise = null;
|
|
18367
18399
|
}
|
|
18368
18400
|
var QUEUE_NAMES = {
|
|
18369
18401
|
// pg-boss queue names are restricted to: [a-zA-Z0-9_.-]
|
|
@@ -8,6 +8,7 @@ function createCloudTaskHelpers(env) {
|
|
|
8
8
|
fetch,
|
|
9
9
|
logExecutionFlow,
|
|
10
10
|
postTaskLog,
|
|
11
|
+
postTaskComment,
|
|
11
12
|
SWARM_LOG_FLUSH_MS,
|
|
12
13
|
SWARM_LOG_MAX_BYTES,
|
|
13
14
|
appendTail,
|
|
@@ -19,6 +20,9 @@ function createCloudTaskHelpers(env) {
|
|
|
19
20
|
// {
|
|
20
21
|
// "taskSectionUpdates": { "enabled": false, "flushMs": 2000 }
|
|
21
22
|
// }
|
|
23
|
+
//
|
|
24
|
+
// Historical note: this used to PUT "## Output"/"## Error" into task.content.
|
|
25
|
+
// That mutates user-authored task content, so we now post output tails as task comments instead.
|
|
22
26
|
const cfg = typeof loadConfig === 'function' ? loadConfig() : null;
|
|
23
27
|
const sectionCfg = cfg?.taskSectionUpdates || cfg?.daemon?.taskSectionUpdates || null;
|
|
24
28
|
|
|
@@ -39,12 +43,41 @@ function createCloudTaskHelpers(env) {
|
|
|
39
43
|
function normalizeTailChunk(chunk) {
|
|
40
44
|
const text = Buffer.isBuffer(chunk) ? chunk.toString() : String(chunk || '');
|
|
41
45
|
// Reduce churn from TTY control sequences and carriage returns.
|
|
42
|
-
// This is only used for the small "tail" that gets
|
|
46
|
+
// This is only used for the small "tail" that gets posted as task comments.
|
|
43
47
|
return text
|
|
44
48
|
.replace(/\r/g, '')
|
|
45
49
|
.replace(/\x1b\[[0-9;?]*[A-Za-z]/g, '');
|
|
46
50
|
}
|
|
47
51
|
|
|
52
|
+
function computeTailDelta(prevTail, nextTail) {
|
|
53
|
+
const prev = String(prevTail || '');
|
|
54
|
+
const next = String(nextTail || '');
|
|
55
|
+
if (!prev) return next;
|
|
56
|
+
if (!next) return '';
|
|
57
|
+
if (next.startsWith(prev)) return next.slice(prev.length);
|
|
58
|
+
|
|
59
|
+
// Best-effort overlap: find longest suffix of prev that is a prefix of next.
|
|
60
|
+
const max = Math.min(prev.length, next.length);
|
|
61
|
+
for (let i = max; i > 0; i -= 1) {
|
|
62
|
+
if (prev.slice(-i) === next.slice(0, i)) return next.slice(i);
|
|
63
|
+
}
|
|
64
|
+
return next;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function wrapInCodeFence(text, lang = 'text') {
|
|
68
|
+
const raw = String(text ?? '');
|
|
69
|
+
const matches = raw.match(/`+/g) || [];
|
|
70
|
+
const maxRun = matches.reduce((m, s) => Math.max(m, s.length), 0);
|
|
71
|
+
const fence = '`'.repeat(Math.max(3, maxRun + 1));
|
|
72
|
+
return `${fence}${lang ? String(lang) : ''}\n${raw}\n${fence}`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function formatTailComment(label, delta) {
|
|
76
|
+
const body = String(delta || '');
|
|
77
|
+
if (!body.trim()) return '';
|
|
78
|
+
return `**${label} (tail)**\n\n${wrapInCodeFence(body, 'text')}\n`;
|
|
79
|
+
}
|
|
80
|
+
|
|
48
81
|
async function patchTaskState(taskId, state) {
|
|
49
82
|
const cloudConfig = loadCloudConfigFile();
|
|
50
83
|
if (!cloudConfig?.apiUrl) return;
|
|
@@ -69,7 +102,7 @@ function createCloudTaskHelpers(env) {
|
|
|
69
102
|
}
|
|
70
103
|
|
|
71
104
|
function createTaskLogger(taskId) {
|
|
72
|
-
const { enabled:
|
|
105
|
+
const { enabled: enableTailComments, flushMs: tailCommentFlushMs } = readTaskSectionSettings();
|
|
73
106
|
const buffers = {
|
|
74
107
|
output: '',
|
|
75
108
|
error: '',
|
|
@@ -102,32 +135,40 @@ function createCloudTaskHelpers(env) {
|
|
|
102
135
|
};
|
|
103
136
|
|
|
104
137
|
const scheduleSectionUpdate = (type) => {
|
|
105
|
-
if (!
|
|
138
|
+
if (!enableTailComments) return;
|
|
139
|
+
if (typeof postTaskComment !== 'function') return;
|
|
106
140
|
if (sectionTimers[type]) return;
|
|
107
141
|
sectionTimers[type] = setTimeout(() => {
|
|
108
142
|
sectionTimers[type] = null;
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
if (!
|
|
112
|
-
if (
|
|
113
|
-
lastSection[type]
|
|
114
|
-
|
|
115
|
-
|
|
143
|
+
const label = type === 'output' ? 'Output' : 'Error';
|
|
144
|
+
const nextTail = tails[type] || '';
|
|
145
|
+
if (!nextTail) return;
|
|
146
|
+
if (nextTail === lastSection[type]) return;
|
|
147
|
+
const delta = computeTailDelta(lastSection[type], nextTail);
|
|
148
|
+
lastSection[type] = nextTail;
|
|
149
|
+
const comment = formatTailComment(label, delta);
|
|
150
|
+
if (!comment) return;
|
|
151
|
+
updateChain = updateChain.then(() => postTaskComment(taskId, comment));
|
|
152
|
+
}, tailCommentFlushMs);
|
|
116
153
|
};
|
|
117
154
|
|
|
118
155
|
const flushSectionUpdates = async () => {
|
|
119
|
-
if (!
|
|
156
|
+
if (!enableTailComments) return;
|
|
157
|
+
if (typeof postTaskComment !== 'function') return;
|
|
120
158
|
for (const type of ['output', 'error']) {
|
|
121
159
|
if (sectionTimers[type]) {
|
|
122
160
|
clearTimeout(sectionTimers[type]);
|
|
123
161
|
sectionTimers[type] = null;
|
|
124
162
|
}
|
|
125
|
-
const
|
|
126
|
-
const
|
|
127
|
-
if (!
|
|
128
|
-
if (
|
|
129
|
-
lastSection[type]
|
|
130
|
-
|
|
163
|
+
const label = type === 'output' ? 'Output' : 'Error';
|
|
164
|
+
const nextTail = tails[type] || '';
|
|
165
|
+
if (!nextTail) continue;
|
|
166
|
+
if (nextTail === lastSection[type]) continue;
|
|
167
|
+
const delta = computeTailDelta(lastSection[type], nextTail);
|
|
168
|
+
lastSection[type] = nextTail;
|
|
169
|
+
const comment = formatTailComment(label, delta);
|
|
170
|
+
if (!comment) continue;
|
|
171
|
+
updateChain = updateChain.then(() => postTaskComment(taskId, comment));
|
|
131
172
|
}
|
|
132
173
|
await updateChain.catch(() => { });
|
|
133
174
|
};
|
|
@@ -143,59 +184,6 @@ function createCloudTaskHelpers(env) {
|
|
|
143
184
|
await postTaskLog(taskId, content, type);
|
|
144
185
|
};
|
|
145
186
|
|
|
146
|
-
const updateTaskSection = async (heading, content, mode = 'replace') => {
|
|
147
|
-
const cloudConfig = loadCloudConfigFile();
|
|
148
|
-
if (!cloudConfig?.apiUrl) return;
|
|
149
|
-
|
|
150
|
-
logExecutionFlow('updateTaskSection', 'input', `taskId=${taskId}, heading=${heading}, mode=${mode}`);
|
|
151
|
-
logExecutionFlow('updateTaskSection', 'processing', `GET /api/tasks/${taskId}`);
|
|
152
|
-
try {
|
|
153
|
-
const res = await fetch(`${cloudConfig.apiUrl}/api/tasks/${taskId}`, {
|
|
154
|
-
headers: {
|
|
155
|
-
'Content-Type': 'application/json',
|
|
156
|
-
...(cloudConfig?.token ? { 'Authorization': `Bearer ${cloudConfig.token}` } : {}),
|
|
157
|
-
'x-user-id': cloudConfig.userId || '',
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
if (!res.ok) return;
|
|
161
|
-
const data = await res.json();
|
|
162
|
-
const task = data.task;
|
|
163
|
-
if (!task?.content) return;
|
|
164
|
-
|
|
165
|
-
const original = task.content;
|
|
166
|
-
const sectionRegex = new RegExp(`(^##\\s+${heading}\\s*$)([\\s\\S]*?)(?=^##\\s+|\\Z)`, 'im');
|
|
167
|
-
let updated = original;
|
|
168
|
-
if (sectionRegex.test(original)) {
|
|
169
|
-
updated = original.replace(sectionRegex, (m, h, body) => {
|
|
170
|
-
if (mode === 'append') {
|
|
171
|
-
const existing = body.trim();
|
|
172
|
-
const nextBody = existing ? `${existing}\n${content}` : content;
|
|
173
|
-
return `${h}\n\n${nextBody}\n`;
|
|
174
|
-
}
|
|
175
|
-
return `${h}\n\n${content}\n`;
|
|
176
|
-
});
|
|
177
|
-
} else {
|
|
178
|
-
updated = `${original.trim()}\n\n## ${heading}\n\n${content}\n`;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
if (updated !== original) {
|
|
182
|
-
logExecutionFlow('updateTaskSection', 'processing', 'PUT content update');
|
|
183
|
-
await fetch(`${cloudConfig.apiUrl}/api/tasks/${taskId}`, {
|
|
184
|
-
method: 'PUT',
|
|
185
|
-
headers: {
|
|
186
|
-
'Content-Type': 'application/json',
|
|
187
|
-
...(cloudConfig?.token ? { 'Authorization': `Bearer ${cloudConfig.token}` } : {}),
|
|
188
|
-
'x-user-id': cloudConfig.userId || '',
|
|
189
|
-
},
|
|
190
|
-
body: JSON.stringify({ content: updated })
|
|
191
|
-
});
|
|
192
|
-
logExecutionFlow('updateTaskSection', 'output', 'updated');
|
|
193
|
-
}
|
|
194
|
-
} catch (err) {
|
|
195
|
-
logExecutionFlow('updateTaskSection', 'output', `failed ${err?.message || err}`);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
|
|
199
187
|
const log = (type, data) => {
|
|
200
188
|
const chunk = Buffer.isBuffer(data) ? data.toString() : String(data || '');
|
|
201
189
|
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
3
|
-
* This devtool is neither made for production nor for readable output files.
|
|
4
|
-
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
5
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
-
* or disable the default devtool with "devtool: false".
|
|
7
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
-
*/
|
|
9
|
-
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([["/_error"],{
|
|
10
|
-
|
|
11
|
-
/***/ "(pages-dir-browser)/./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2FUsers%2Fmendrika%2FProjects%2FAgents%2Fagx-cloud%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error!":
|
|
12
|
-
/*!************************************************************************************************************************************************************************************************************************!*\
|
|
13
|
-
!*** ./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2FUsers%2Fmendrika%2FProjects%2FAgents%2Fagx-cloud%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error! ***!
|
|
14
|
-
\************************************************************************************************************************************************************************************************************************/
|
|
15
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
|
-
|
|
17
|
-
eval(__webpack_require__.ts("\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/_error\",\n function () {\n return __webpack_require__(/*! ./node_modules/next/dist/pages/_error.js */ \"(pages-dir-browser)/./node_modules/next/dist/pages/_error.js\");\n }\n ]);\n if(true) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/_error\"])\n });\n }\n //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKHBhZ2VzLWRpci1icm93c2VyKS8uL25vZGVfbW9kdWxlcy9uZXh0L2Rpc3QvYnVpbGQvd2VicGFjay9sb2FkZXJzL25leHQtY2xpZW50LXBhZ2VzLWxvYWRlci5qcz9hYnNvbHV0ZVBhZ2VQYXRoPSUyRlVzZXJzJTJGbWVuZHJpa2ElMkZQcm9qZWN0cyUyRkFnZW50cyUyRmFneC1jbG91ZCUyRm5vZGVfbW9kdWxlcyUyRm5leHQlMkZkaXN0JTJGcGFnZXMlMkZfZXJyb3IuanMmcGFnZT0lMkZfZXJyb3IhIiwibWFwcGluZ3MiOiI7QUFDQTtBQUNBO0FBQ0E7QUFDQSxlQUFlLG1CQUFPLENBQUMsOEdBQTBDO0FBQ2pFO0FBQ0E7QUFDQSxPQUFPLElBQVU7QUFDakIsTUFBTSxVQUFVO0FBQ2hCO0FBQ0EsT0FBTztBQUNQO0FBQ0EiLCJzb3VyY2VzIjpbIiJdLCJzb3VyY2VzQ29udGVudCI6WyJcbiAgICAod2luZG93Ll9fTkVYVF9QID0gd2luZG93Ll9fTkVYVF9QIHx8IFtdKS5wdXNoKFtcbiAgICAgIFwiL19lcnJvclwiLFxuICAgICAgZnVuY3Rpb24gKCkge1xuICAgICAgICByZXR1cm4gcmVxdWlyZShcIi4vbm9kZV9tb2R1bGVzL25leHQvZGlzdC9wYWdlcy9fZXJyb3IuanNcIik7XG4gICAgICB9XG4gICAgXSk7XG4gICAgaWYobW9kdWxlLmhvdCkge1xuICAgICAgbW9kdWxlLmhvdC5kaXNwb3NlKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgd2luZG93Ll9fTkVYVF9QLnB1c2goW1wiL19lcnJvclwiXSlcbiAgICAgIH0pO1xuICAgIH1cbiAgIl0sIm5hbWVzIjpbXSwiaWdub3JlTGlzdCI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///(pages-dir-browser)/./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2FUsers%2Fmendrika%2FProjects%2FAgents%2Fagx-cloud%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error!\n"));
|
|
18
|
-
|
|
19
|
-
/***/ })
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
/******/ __webpack_require__ => { // webpackRuntimeModules
|
|
23
|
-
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
24
|
-
/******/ __webpack_require__.O(0, ["main"], () => (__webpack_exec__("(pages-dir-browser)/./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2FUsers%2Fmendrika%2FProjects%2FAgents%2Fagx-cloud%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error!")));
|
|
25
|
-
/******/ var __webpack_exports__ = __webpack_require__.O();
|
|
26
|
-
/******/ _N_E = __webpack_exports__;
|
|
27
|
-
/******/ }
|
|
28
|
-
]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8008],{63:(e,t,r)=>{"use strict";var s=r(7260);r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return s.callServer},createServerReference:function(){return c.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let s=r(1209),n=r(5153),c=r(7197)},3744:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(5155),n=r(2115),c=r(63),a=r(926);let l=(0,a.createServerReference)("40360d3bb555564372f1c62e83ae82cd34c82a9910",a.callServer,void 0,a.findSourceMapURL,"approveDeviceCode");function o(){let e=(0,c.useSearchParams)(),t=(0,c.useRouter)(),r=e.get("user_code")||"",[a,o]=(0,n.useState)(r),[u,i]=(0,n.useState)(!1),[d,f]=(0,n.useState)(null),[x,h]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(x){let e=setTimeout(()=>{t.push("/projects")},3e3);return()=>clearTimeout(e)}},[x,t]);let m=async e=>{e.preventDefault(),i(!0),f(null);try{let e=await l(a);if(!e.success)throw Error(e.error);h(!0)}catch(e){f(e.message)}finally{i(!1)}};return x?(0,s.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-neutral-900 text-white p-4",children:(0,s.jsxs)("div",{className:"max-w-md w-full bg-neutral-800 p-8 rounded-xl shadow-2xl text-center",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold mb-4 text-green-400",children:"Success!"}),(0,s.jsx)("p",{className:"text-gray-300 mb-2",children:"You have successfully authenticated your device."}),(0,s.jsx)("p",{className:"text-gray-400 text-sm mb-6 italic",children:"Redirecting to projects in a few seconds..."}),(0,s.jsx)("button",{onClick:()=>t.push("/projects"),className:"w-full py-3 px-4 bg-white text-black font-semibold rounded-lg hover:bg-gray-200 transition-colors",children:"Go to Projects"})]})}):(0,s.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-neutral-900 text-white p-4",children:(0,s.jsxs)("div",{className:"max-w-md w-full bg-neutral-800 p-8 rounded-xl shadow-2xl",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold mb-6 text-center",children:"Connect Device"}),(0,s.jsx)("p",{className:"text-gray-400 mb-8 text-center text-sm",children:"Enter the code displayed on your device to authorize it."}),(0,s.jsxs)("form",{onSubmit:m,className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"code",className:"block text-sm font-medium text-gray-400 mb-2",children:"Device Code"}),(0,s.jsx)("input",{type:"text",id:"code",value:a,onChange:e=>o(e.target.value.toUpperCase()),placeholder:"BCDF-XXXX",className:"w-full px-4 py-3 bg-neutral-900 border border-neutral-700 rounded-lg text-white placeholder-neutral-600 focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-center tracking-widest text-lg uppercase",required:!0})]}),d&&(0,s.jsx)("div",{className:"p-3 bg-red-900/50 border border-red-800 rounded-lg text-red-200 text-center text-sm",children:d}),(0,s.jsx)("button",{type:"submit",disabled:u,className:"w-full py-3 px-4 bg-white text-black font-semibold rounded-lg hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Verifying...":"Authorize Device"})]})]})})}function u(){return(0,s.jsx)(n.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading..."}),children:(0,s.jsx)(o,{})})}},5109:(e,t,r)=>{Promise.resolve().then(r.bind(r,3744))}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=5109)),_N_E=e.O()}]);
|