@mndrk/agx 2.0.39 → 2.0.41
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/.next/BUILD_ID +1 -1
- package/cloud-runtime/standalone/.next/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
- package/cloud-runtime/standalone/.next/server/app/_global-error.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[externals]__986fcdb7._.js → [externals]__bc6c7111._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__4bce7db7._.js → [root-of-the-server]__09ca81e1._.js} +24 -24
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f9cff4b0._.js → [root-of-the-server]__1017e012._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1ac3236d._.js +25 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__762ab29c._.js → [root-of-the-server]__236c35bb._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ab7343c8._.js → [root-of-the-server]__a1e62918._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__da3a1ce7._.js → [root-of-the-server]__dc542063._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/_22fe5fd2._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_2492d514._.js +81 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_281e5787._.js +16 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_63067e21._.js +16 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_orchestrator_chat-processor_ts_4c335719._.js +134 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +82 -21
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_def8bfbe.js +11 -5
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_61a87db9._.js +1 -1
- package/cloud-runtime/standalone/.next/server/instrumentation.js +1 -1
- package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
- package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
- package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
- package/cloud-runtime/standalone/app/api/prompt-jobs/poll/route.ts +2 -2
- package/cloud-runtime/standalone/instrumentation.ts +2 -0
- package/package.json +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_17e53c87._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/lib_ea45fe73._.js +0 -94
- /package/cloud-runtime/standalone/.next/static/{9PXl40CrFxI8nirdJ1A-T → uSe1ovd3mKmeJLdjjWIQA}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{9PXl40CrFxI8nirdJ1A-T → uSe1ovd3mKmeJLdjjWIQA}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{9PXl40CrFxI8nirdJ1A-T → uSe1ovd3mKmeJLdjjWIQA}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--uSe1ovd3mKmeJLdjjWIQA--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/chunks/2473c16c0c2f6b5f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/5b567b289ca2273e.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/687d09973325dcf8.js"/><script src="/_next/static/chunks/cbdeb17a36b99000.js" async=""></script><script src="/_next/static/chunks/ee5f1457fbc593e1.js" async=""></script><script src="/_next/static/chunks/238a28856e739dc9.js" async=""></script><script src="/_next/static/chunks/1a3298f21d1040e9.js" async=""></script><script src="/_next/static/chunks/turbopack-e1d640f2fbe4fa5e.js" async=""></script><script src="/_next/static/chunks/9bde80696400d2ff.js" async=""></script><script src="/_next/static/chunks/2deeba875ec50761.js" async=""></script><script src="/_next/static/chunks/0bd6498bda341889.js" async=""></script><script src="/_next/static/chunks/01428247f94115a6.js" async=""></script><script src="/_next/static/chunks/c653186036e56204.js" async=""></script><script src="/_next/static/chunks/d78cc7d749043fef.js" async=""></script><script src="/_next/static/chunks/9f236cc9572783b9.js" async=""></script><script src="/_next/static/chunks/b6bbe747d2b0dddb.js" async=""></script><link rel="preload" href="https://www.googletagmanager.com/gtag/js?id=G-DVQQG95LNL" as="script"/><meta name="next-size-adjust" content=""/><title>AGX</title><meta name="description" content="Agent task orchestration and group chat"/><script>
|
|
2
2
|
(() => {
|
|
3
3
|
try {
|
|
4
4
|
const storedTheme = localStorage.getItem("agx-theme");
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
gtag('js', new Date());
|
|
19
19
|
gtag('config', 'G-DVQQG95LNL');
|
|
20
20
|
</script>
|
|
21
|
-
</head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased min-h-screen overflow-x-hidden overflow-y-auto bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]"><div hidden=""><!--$--><!--/$--></div><div class="min-h-screen flex items-center justify-center bg-[var(--background)]"><span class="spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"></span></div><script src="/_next/static/chunks/687d09973325dcf8.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[34088,[\"/_next/static/chunks/9bde80696400d2ff.js\"],\"default\"]\n3:I[39756,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"default\"]\n5:I[34377,[\"/_next/static/chunks/9bde80696400d2ff.js\"],\"GoogleAnalytics\"]\n6:I[15816,[\"/_next/static/chunks/9bde80696400d2ff.js\"],\"PostHogAnalytics\"]\n7:I[47257,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"ClientPageRoot\"]\n8:I[61073,[\"/_next/static/chunks/9bde80696400d2ff.js\",\"/_next/static/chunks/01428247f94115a6.js\",\"/_next/static/chunks/c653186036e56204.js\",\"/_next/static/chunks/d78cc7d749043fef.js\",\"/_next/static/chunks/9f236cc9572783b9.js\",\"/_next/static/chunks/b6bbe747d2b0dddb.js\"],\"default\"]\nb:I[97367,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"OutletBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[97367,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"ViewportBoundary\"]\n10:I[97367,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"MetadataBoundary\"]\n12:I[53348,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"default\"]\n:HL[\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"style\"]\n:HL[\"/_next/static/chunks/5b567b289ca2273e.css\",\"style\"]\n:HL[\"/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
21
|
+
</head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased min-h-screen overflow-x-hidden overflow-y-auto bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]"><div hidden=""><!--$--><!--/$--></div><div class="min-h-screen flex items-center justify-center bg-[var(--background)]"><span class="spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"></span></div><script src="/_next/static/chunks/687d09973325dcf8.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[34088,[\"/_next/static/chunks/9bde80696400d2ff.js\"],\"default\"]\n3:I[39756,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"default\"]\n5:I[34377,[\"/_next/static/chunks/9bde80696400d2ff.js\"],\"GoogleAnalytics\"]\n6:I[15816,[\"/_next/static/chunks/9bde80696400d2ff.js\"],\"PostHogAnalytics\"]\n7:I[47257,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"ClientPageRoot\"]\n8:I[61073,[\"/_next/static/chunks/9bde80696400d2ff.js\",\"/_next/static/chunks/01428247f94115a6.js\",\"/_next/static/chunks/c653186036e56204.js\",\"/_next/static/chunks/d78cc7d749043fef.js\",\"/_next/static/chunks/9f236cc9572783b9.js\",\"/_next/static/chunks/b6bbe747d2b0dddb.js\"],\"default\"]\nb:I[97367,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"OutletBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[97367,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"ViewportBoundary\"]\n10:I[97367,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"MetadataBoundary\"]\n12:I[53348,[\"/_next/static/chunks/2deeba875ec50761.js\",\"/_next/static/chunks/0bd6498bda341889.js\"],\"default\"]\n:HL[\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"style\"]\n:HL[\"/_next/static/chunks/5b567b289ca2273e.css\",\"style\"]\n:HL[\"/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"uSe1ovd3mKmeJLdjjWIQA\",\"c\":[\"\",\"welcome\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"welcome\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/5b567b289ca2273e.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/9bde80696400d2ff.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n(() =\u003e {\\n try {\\n const storedTheme = localStorage.getItem(\\\"agx-theme\\\");\\n const theme = storedTheme === \\\"dark\\\" || storedTheme === \\\"light\\\"\\n ? storedTheme\\n : (window.matchMedia(\\\"(prefers-color-scheme: dark)\\\").matches ? \\\"dark\\\" : \\\"light\\\");\\n const root = document.documentElement;\\n root.classList.toggle(\\\"dark\\\", theme === \\\"dark\\\");\\n root.style.colorScheme = theme;\\n } catch {}\\n})();\\n\"}}]}],[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased min-h-screen overflow-x-hidden overflow-y-auto bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]\",\"children\":[[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"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.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{}]]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L7\",null,{\"Component\":\"$8\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@9\",\"$@a\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/01428247f94115a6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c653186036e56204.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/d78cc7d749043fef.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/9f236cc9572783b9.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/_next/static/chunks/b6bbe747d2b0dddb.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@d\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L11\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$12\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:{}\na:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:null\n11:[[\"$\",\"title\",\"0\",{\"children\":\"AGX\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Agent task orchestration and group chat\"}]]\n"])</script></body></html>
|
|
@@ -15,7 +15,7 @@ e:I[97367,["/_next/static/chunks/2deeba875ec50761.js","/_next/static/chunks/0bd6
|
|
|
15
15
|
:HL["/_next/static/chunks/5b567b289ca2273e.css","style"]
|
|
16
16
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
17
17
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
18
|
-
0:{"P":null,"b":"
|
|
18
|
+
0:{"P":null,"b":"uSe1ovd3mKmeJLdjjWIQA","c":["","welcome"],"q":"","i":false,"f":[[["",{"children":["welcome",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/5b567b289ca2273e.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/9bde80696400d2ff.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n(() => {\n try {\n const storedTheme = localStorage.getItem(\"agx-theme\");\n const theme = storedTheme === \"dark\" || storedTheme === \"light\"\n ? storedTheme\n : (window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\");\n const root = document.documentElement;\n root.classList.toggle(\"dark\", theme === \"dark\");\n root.style.colorScheme = theme;\n } catch {}\n})();\n"}}]}],["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased min-h-screen overflow-x-hidden overflow-y-auto bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L5",null,{}],["$","$L6",null,{}]]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/01428247f94115a6.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c653186036e56204.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/d78cc7d749043fef.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/9f236cc9572783b9.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/b6bbe747d2b0dddb.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$L11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"S":true}
|
|
19
19
|
9:{}
|
|
20
20
|
a:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
21
21
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -15,7 +15,7 @@ e:I[97367,["/_next/static/chunks/2deeba875ec50761.js","/_next/static/chunks/0bd6
|
|
|
15
15
|
:HL["/_next/static/chunks/5b567b289ca2273e.css","style"]
|
|
16
16
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
17
17
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
18
|
-
0:{"P":null,"b":"
|
|
18
|
+
0:{"P":null,"b":"uSe1ovd3mKmeJLdjjWIQA","c":["","welcome"],"q":"","i":false,"f":[[["",{"children":["welcome",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/5b567b289ca2273e.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/9bde80696400d2ff.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n(() => {\n try {\n const storedTheme = localStorage.getItem(\"agx-theme\");\n const theme = storedTheme === \"dark\" || storedTheme === \"light\"\n ? storedTheme\n : (window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\");\n const root = document.documentElement;\n root.classList.toggle(\"dark\", theme === \"dark\");\n root.style.colorScheme = theme;\n } catch {}\n})();\n"}}]}],["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased min-h-screen overflow-x-hidden overflow-y-auto bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L5",null,{}],["$","$L6",null,{}]]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/01428247f94115a6.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c653186036e56204.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/d78cc7d749043fef.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/9f236cc9572783b9.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/b6bbe747d2b0dddb.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$L11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"S":true}
|
|
19
19
|
9:{}
|
|
20
20
|
a:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
21
21
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[97367,["/_next/static/chunks/2deeba875ec50761.js","/_next/static/chunks/0bd6498bda341889.js"],"ViewportBoundary"]
|
|
3
3
|
3:I[97367,["/_next/static/chunks/2deeba875ec50761.js","/_next/static/chunks/0bd6498bda341889.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
0:{"buildId":"
|
|
5
|
+
0:{"buildId":"uSe1ovd3mKmeJLdjjWIQA","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"AGX"}],["$","meta","1",{"name":"description","content":"Agent task orchestration and group chat"}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
6:I[15816,["/_next/static/chunks/9bde80696400d2ff.js"],"PostHogAnalytics"]
|
|
7
7
|
:HL["/_next/static/chunks/2473c16c0c2f6b5f.css","style"]
|
|
8
8
|
:HL["/_next/static/chunks/5b567b289ca2273e.css","style"]
|
|
9
|
-
0:{"buildId":"
|
|
9
|
+
0:{"buildId":"uSe1ovd3mKmeJLdjjWIQA","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/5b567b289ca2273e.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/9bde80696400d2ff.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n(() => {\n try {\n const storedTheme = localStorage.getItem(\"agx-theme\");\n const theme = storedTheme === \"dark\" || storedTheme === \"light\"\n ? storedTheme\n : (window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\");\n const root = document.documentElement;\n root.classList.toggle(\"dark\", theme === \"dark\");\n root.style.colorScheme = theme;\n } catch {}\n})();\n"}}]}],["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased min-h-screen overflow-x-hidden overflow-y-auto bg-[var(--background)] text-[var(--foreground)] selection:bg-[var(--primary)] selection:text-[var(--primary-foreground)]","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","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."}]}]]}]}]],[]]}]}],["$","$L5",null,{}],["$","$L6",null,{}]]}]]}]]}],"loading":null,"isPartial":false}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
:HL["/_next/static/chunks/5b567b289ca2273e.css","style"]
|
|
3
3
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
4
4
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
5
|
-
0:{"buildId":"
|
|
5
|
+
0:{"buildId":"uSe1ovd3mKmeJLdjjWIQA","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"welcome","paramType":null,"paramKey":"welcome","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
|
package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
3:I[61073,["/_next/static/chunks/9bde80696400d2ff.js","/_next/static/chunks/01428247f94115a6.js","/_next/static/chunks/c653186036e56204.js","/_next/static/chunks/d78cc7d749043fef.js","/_next/static/chunks/9f236cc9572783b9.js","/_next/static/chunks/b6bbe747d2b0dddb.js"],"default"]
|
|
4
4
|
6:I[97367,["/_next/static/chunks/2deeba875ec50761.js","/_next/static/chunks/0bd6498bda341889.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"uSe1ovd3mKmeJLdjjWIQA","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/01428247f94115a6.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/c653186036e56204.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/d78cc7d749043fef.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/9f236cc9572783b9.js","async":true}],["$","script","script-4",{"src":"/_next/static/chunks/b6bbe747d2b0dddb.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[39756,["/_next/static/chunks/2deeba875ec50761.js","/_next/static/chunks/0bd6498bda341889.js"],"default"]
|
|
3
3
|
3:I[37457,["/_next/static/chunks/2deeba875ec50761.js","/_next/static/chunks/0bd6498bda341889.js"],"default"]
|
|
4
|
-
0:{"buildId":"
|
|
4
|
+
0:{"buildId":"uSe1ovd3mKmeJLdjjWIQA","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[22734,(e,s,r)=>{s.exports=e.x("fs",()=>require("fs"))},74533,(e,s,r)=>{s.exports=e.x("node:child_process",()=>require("node:child_process"))},24868,(e,s,r)=>{s.exports=e.x("fs/promises",()=>require("fs/promises"))},12057,(e,s,r)=>{s.exports=e.x("node:util",()=>require("node:util"))},82848,e=>{e.v(s=>Promise.all(["server/chunks/[externals]_node:child_process_261e8bca._.js"].map(s=>e.l(s))).then(()=>s(74533)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Bexternals%
|
|
3
|
+
//# sourceMappingURL=%5Bexternals%5D__bc6c7111._.js.map
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},42969,e=>{"use strict";function t(e,t){let r=e.prepare(`PRAGMA ${t}`).get();if(!r)return;let i=Object.values(r);return i.length>0?i[0]:void 0}function r(e,t){return e.prepare(`PRAGMA ${t}`).all()}function i(e,t){e.exec(`PRAGMA ${t}`)}function s(e,t){e.exec("BEGIN");try{let r=t();return e.exec("COMMIT"),r}catch(t){throw e.exec("ROLLBACK"),t}}function a(e,t){return(...r)=>{e.exec("BEGIN");try{let i=t(...r);return e.exec("COMMIT"),i}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>r,"pragmaGet",()=>t,"pragmaSet",()=>i,"transaction",()=>s,"transactionFn",()=>a])},28237,e=>{"use strict";e.x("node:sqlite",()=>require("node:sqlite"),!0);var t=e.i(42969);e.i(22734);var r=e.i(46786),i=e.i(14747);let s="3.35.0",a=["json1"],n=["fts5"],o=["nfs","smb","cifs","efs","fuse.sshfs"];function l(e,t){try{if("json1"===t)return e.prepare("SELECT json('{}')").get(),!0;if("fts5"===t)return e.exec("CREATE VIRTUAL TABLE IF NOT EXISTS _fts5_check USING fts5(x)"),e.exec("DROP TABLE IF EXISTS _fts5_check"),!0;return!1}catch{return!1}}function u(u,d){let c=[],p=u.prepare("SELECT sqlite_version() as v").get();for(let e of(0>function(e,t){let r=e.split(".").map(Number),i=t.split(".").map(Number);for(let e=0;e<3;e++){let t=(r[e]||0)-(i[e]||0);if(0!==t)return t}return 0}(p.v,s)&&c.push({kind:"version_mismatch",message:`SQLite version ${p.v} is below minimum ${s}`,found:p.v,required:`>= ${s}`,fix:"Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"}),a))l(u,e)||c.push({kind:"missing_extension",message:`Required SQLite extension '${e}' is not available`,required:e,fix:`Rebuild SQLite with -DSQLITE_ENABLE_${e.toUpperCase()}=1, or use a system SQLite that includes it`});for(let e of n)l(u,e)||console.warn(`[startup] Recommended SQLite extension '${e}' is not available. Full-text search will be disabled.`);let m=function(t){"linux"!==r.default.platform()&&r.default.platform();try{let s=i.default.resolve(t),{execSync:a}=e.r(33405);if("darwin"===r.default.platform()){let e=a(`df -T "${s}" 2>/dev/null || df "${s}"`,{encoding:"utf-8",timeout:3e3}).trim().split("\n");if(e.length>=2){let t=e[1].split(/\s+/),r=t[0]?.toLowerCase()||"";if(r.includes("://")||r.includes("nfs")||r.includes("smb"))return r}}}catch{}return null}(d);m&&o.some(e=>m.toLowerCase().includes(e))&&c.push({kind:"filesystem_error",message:`Database path '${d}' is on a network filesystem (${m})`,path:d,found:m,fix:"Move the database file to a local SSD. WAL mode requires local filesystem with reliable fsync."});try{(0,t.pragmaSet)(u,"journal_mode = wal"),(0,t.pragmaSet)(u,"foreign_keys = 1"),(0,t.pragmaSet)(u,"busy_timeout = 5000"),(0,t.pragmaSet)(u,"synchronous = 1"),(0,t.pragmaSet)(u,"cache_size = -64000");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase(),r=new Set(["wal","delete"]);if(!r.has(e)){(0,t.pragmaSet)(u,"journal_mode = DELETE");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase();r.has(e)?((0,t.pragmaSet)(u,"synchronous = FULL"),console.warn(`[startup] WAL unavailable, using journal_mode=${e} with synchronous=FULL`)):c.push({kind:"pragma_error",message:`Failed to set journal_mode (got '${e}', tried WAL then DELETE)`,found:e,required:"wal or delete",fix:"Ensure the database file is on a local filesystem and no other process holds an exclusive lock."})}}catch(e){c.push({kind:"pragma_error",message:`Failed to apply required PRAGMAs: ${e.message}`,fix:"Check file permissions and ensure the database is not read-only."})}return c}e.s(["validateSQLiteEnvironment",()=>u])},57306,e=>{"use strict";var t=e.i(22734),r=e.i(46786),i=e.i(14747);let s=process.env.AGX_DATA_DIR||i.default.join(r.default.homedir(),".agx"),a=process.env.AGX_DEBUG_LOG_PATH||i.default.join(s,"logs","desktop-chat-debug.log");function n(e,t){return t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:"string"==typeof t&&t.length>2e3?`${t.slice(0,2e3)}...<truncated>`:t}function o(e,r){try{t.default.mkdirSync(i.default.dirname(a),{recursive:!0});let s=JSON.stringify({ts:new Date().toISOString(),pid:process.pid,event:e,...r?{payload:r}:{}},n);t.default.appendFileSync(a,`${s}
|
|
2
|
-
`,"utf8")}catch{}}e.s(["writeDebugLog",()=>o])},
|
|
2
|
+
`,"utf8")}catch{}}e.s(["writeDebugLog",()=>o])},90107,e=>{"use strict";var t=e.i(33405),r=e.i(22734),i=e.i(14747),s=e.i(57306);let a=e=>"string"==typeof e&&e.trim().length>0,n=e=>{try{return 0===(0,t.spawnSync)("bash",["-lc",`command -v ${e} >/dev/null 2>&1`],{encoding:"utf8"}).status}catch{return!1}},o=e=>({push:e,flush:()=>{}}),l=e=>{let t="",r=0,i=!1,s=t=>{let s=t.trim();if(s)try{let t=JSON.parse(s);i=!0;let n=(e=>{if(!e||"object"!=typeof e)return"";if("assistant"===e.type)return(Array.isArray(e?.message?.content)?e.message.content:[]).flatMap(e=>e?.type==="text"&&a(e.text)?[e.text]:[]).join("");let t=e?.event;return"stream_event"===e.type&&t?.type==="content_block_delta"&&t?.delta?.type==="text_delta"&&a(t?.delta?.text)?t.delta.text:""})(t);if(!n||t?.type==="assistant"&&r>0)return;r+=n.length,e(n)}catch{i||e(`${t}
|
|
3
|
+
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;s(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&s(t),t=""}}},u=e=>{let t="",r=!1,i="",s=t=>{let s=t.trim();if(s)try{let t=JSON.parse(s);r=!0,t?.type==="message"&&t?.role==="assistant"&&a(t?.content)&&((t,r)=>{if(t){if(r){if(i&&t.startsWith(i)){let r=t.slice(i.length);r&&e(r),i=t;return}e(t),i+=t;return}if(i&&t.startsWith(i)){let r=t.slice(i.length);r&&e(r),i=t;return}i||(e(t),i=t)}})(t.content,t?.delta===!0)}catch{r||e(`${t}
|
|
4
|
+
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;s(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&s(t),t=""}}},d=e=>{let t="",r=!1,i=new Set,s=t=>{let s=t.trim();if(s)try{let t=JSON.parse(s);if(r=!0,t?.type==="item.completed"&&a(t?.item?.id)){if(i.has(t.item.id))return;i.add(t.item.id)}let n=t&&"object"==typeof t?"item.completed"===t.type&&t.item?.type==="agent_message"&&a(t.item?.text)?t.item.text:"item.delta"===t.type&&t.item?.type==="agent_message"&&a(t.delta?.text)?t.delta.text:"":"";n&&e(n)}catch{r||e(`${t}
|
|
5
|
+
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;s(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&s(t),t=""}}},c=e=>{let t="",r=!1,i=[/^Thinking\.\.\./,/^<think>/i],s=[/\.\.\.done thinking\.?\s*/,/<\/think>/i];return{push:a=>{t+=a,(()=>{for(;t.length>0;){if(r){let e=-1,i=0;for(let r of s){let s=t.match(r);s&&void 0!==s.index&&(s.index,s[0].length,(-1===e||s.index<e)&&(e=s.index,i=s[0].length))}if(-1!==e){t=t.slice(e+i),r=!1,t=t.replace(/^\s*\n*/,"");continue}return}for(let s of i){let i=t.match(s);if(i&&void 0!==i.index){let s=t.slice(0,i.index);s&&e.push(s),t=t.slice(i.index+i[0].length),r=!0;break}}if(r)continue;let a=Math.max(0,t.length-30);a>0&&(e.push(t.slice(0,a)),t=t.slice(a));return}})()},flush:()=>{!r&&t&&e.push(t),t="",e.flush()}}},p=new Set(["claude","gemini","ollama","codex"]);function m(){let e=process.env.AGX_CLI_PATH?.trim();if(e&&r.default.existsSync(e))return e;for(let e of[i.default.resolve(process.cwd(),"..","cli","index.js"),i.default.resolve("/ROOT/lib","..","cli","index.js"),i.default.resolve(process.execPath,"..","..","Resources","cli","index.js")])if(r.default.existsSync(e))return e;return null}function f({provider:e,model:t,prompt:r,systemPrompt:i,passthroughArgs:s},a={}){let o=a.commandExists??n,l=void 0===a.bundledCliPath?m():a.bundledCliPath,u=[],d=i?`${i}
|
|
6
|
+
|
|
7
|
+
${r}`:r;if(p.has(e)){let r=function({provider:e,model:t,prompt:r,cliPath:i,passthroughArgs:s}){let a=void 0===i?m():i;if(!a)return null;let n=[a,e,"-y","--print","--prompt",r];return t&&n.push("--model",t),s&&s.length>0&&n.push("--",...s),{command:process.execPath,args:n,parser:"raw"}}({provider:e,model:t,prompt:d,cliPath:l,passthroughArgs:s});return r&&u.push(r),o("agx")&&u.push(function({provider:e,model:t,prompt:r,passthroughArgs:i}){let s=[e,"-y","--print","--prompt",r];return t&&s.push("--model",t),i&&i.length>0&&s.push("--",...i),{command:"agx",args:s,parser:"raw"}}({provider:e,model:t,prompt:d,passthroughArgs:s})),u}let c=function({provider:e,model:t,prompt:r,systemPrompt:i}){switch(e){case"claude":{let e=["-p","--verbose","--output-format","stream-json","--include-partial-messages"];return t&&e.push("--model",t),i&&e.push("--system-prompt",i),e.push(r),{command:"claude",args:e,parser:"claude-stream-json"}}case"gemini":return{command:"gemini",args:["--yolo","-p",i?`${i}
|
|
8
|
+
|
|
9
|
+
${r}`:r,"-o","stream-json"],parser:"gemini-stream-json"};case"ollama":return{command:"ollama",args:["run",t||"llama3.2",i?`${i}
|
|
10
|
+
|
|
11
|
+
${r}`:r],parser:"raw"};case"codex":{let e=["exec","--json"];return t&&e.push("--model",t),e.push(i?`${i}
|
|
12
|
+
|
|
13
|
+
${r}`:r),{command:"codex",args:e,parser:"codex-json"}}case"zai":{let e=process.env.ZAI_API_KEY?.trim(),s=["-p","--verbose","--output-format","stream-json","--include-partial-messages"];return t&&s.push("--model",t),i&&s.push("--system-prompt",i),s.push(r),{command:"claude",args:s,parser:"claude-stream-json",env:{ANTHROPIC_BASE_URL:"https://api.z.ai/api/anthropic",...e?{ANTHROPIC_AUTH_TOKEN:e}:{}}}}default:return null}}({provider:e,model:t,prompt:r,systemPrompt:i});return c&&o(c.command)&&u.push(c),u}async function h({command:e,args:r,timeoutMs:i,signal:a,onDelta:n,onLog:o,onSpawn:l,env:u}){await new Promise((d,c)=>{(0,s.writeDebugLog)("cli-runner.spawn",{command:e,args:r,timeoutMs:i,bundledCliPath:m(),isElectron:process.env.AGX_ELECTRON||null}),o&&o("stderr",`$ ${e} ${r.map(e=>e.length>80?e.slice(0,80)+"…":e).join(" ")}
|
|
14
|
+
`);let p=(0,t.spawn)(e,r,{stdio:["ignore","pipe","pipe"],env:{...process.env,CLAUDECODE:void 0,...u}}),f=!1,h="",g=!1,E=e=>{f||(f=!0,clearTimeout(b),a&&a.removeEventListener("abort",_),e?c(e):d())},_=()=>{(0,s.writeDebugLog)("cli-runner.abort",{command:e,args:r,pid:p.pid??null}),p.kill("SIGTERM"),E(Error("Chat request aborted."))};a&&a.addEventListener("abort",_,{once:!0}),l&&p.pid&&l(p.pid),(0,s.writeDebugLog)("cli-runner.spawned",{command:e,args:r,pid:p.pid??null});let b=setTimeout(()=>{g=!0,(0,s.writeDebugLog)("cli-runner.timeout",{command:e,args:r,pid:p.pid??null,timeoutMs:i}),p.kill("SIGKILL"),E(Error(`CLI request timed out after ${i}ms.`))},i);p.stdout.on("data",e=>{let t=e.toString();h+=t,n(t),o&&o("stdout",t)}),p.stderr.on("data",e=>{let t=e.toString();h+=t,o&&o("stderr",t)}),p.on("error",t=>{(0,s.writeDebugLog)("cli-runner.process_error",{command:e,args:r,pid:p.pid??null,error:t}),E(t)}),p.on("close",(t,i)=>{if(!f&&!g){if((0,s.writeDebugLog)("cli-runner.close",{command:e,args:r,pid:p.pid??null,code:t??null,signal:i??null}),0===t)return void E();E(Error(`CLI command failed (exit=${t??"unknown"} signal=${i??"none"}).${h.trim()?` ${h.trim()}`:""}`))}})})}async function g({provider:e,model:t,prompt:r,identity:i,self:a,skills:n,systemContext:p,passthroughArgs:g,signal:E,onDelta:_,onLog:b,onSpawn:L}){let y,x,S,w,T=(y=!1,x=!1,S="",w=/^(?:```|~~~|#{1,6}\s|>\s|[-*+]\s|\d+\.\s)/,e=>{let t=e.replace(/\u001B\[[0-9;]*[A-Za-z]/g,"").replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/[ \t]+\n/g,"\n").replace(/\n{3,}/g,"\n\n");if(!t.trim())return t.includes("\n")&&!y?(y=!0,"\n"):"";let r=y?t.replace(/^\n+/,"\n"):t,i=r.trimStart(),s=w.test(i),a=x&&s&&!y,n=x&&!y&&!a&&!/^\s/.test(r)&&/[.!?)]/.test(S)&&/^[A-Z0-9`(]/.test(r),o=a?`
|
|
15
|
+
|
|
16
|
+
${r}`:n?`
|
|
17
|
+
${r}`:r;y=o.endsWith("\n"),x=x||o.trim().length>0;let l=o.replace(/\s+$/g,"");return l.length>0&&(S=l[l.length-1]??S),o}),v=e=>{let t=T(e);t&&_(t)},A=[];p&&A.push(p),i&&A.push(`<identity>
|
|
18
|
+
${i}
|
|
19
|
+
</identity>`),a&&A.push(`<self>
|
|
20
|
+
${a}
|
|
21
|
+
</self>`),n&&A.push(`<skills>
|
|
22
|
+
${n}
|
|
23
|
+
</skills>`);let I=f({provider:e,model:t,prompt:r,systemPrompt:A.length>0?A.join("\n\n"):void 0,passthroughArgs:g});if(0===I.length)throw(0,s.writeDebugLog)("cli-runner.no_attempts",{provider:e,model:t,bundledCliPath:m(),isElectron:process.env.AGX_ELECTRON||null}),Error(`No CLI runner available for provider "${e}". Install agx or provider CLI.`);let N=null;for(let r of I){(0,s.writeDebugLog)("cli-runner.attempt",{provider:e,model:t,command:r.command,args:r.args,parser:r.parser});let i="claude-stream-json"===r.parser?l(v):"codex-json"===r.parser?d(v):"gemini-stream-json"===r.parser?u(v):o(v),a=r.filterThoughts?c(i):i;try{await h({command:r.command,args:r.args,timeoutMs:6e5,signal:E,onDelta:a.push,onLog:b,onSpawn:L,env:r.env}),a.flush(),(0,s.writeDebugLog)("cli-runner.success",{provider:e,model:t,command:r.command});return}catch(i){N=i instanceof Error?i:Error(String(i)),(0,s.writeDebugLog)("cli-runner.failure",{provider:e,model:t,command:r.command,error:N})}}throw N||Error("CLI execution failed.")}e.s(["buildCliAttempts",()=>f,"runCliResponse",()=>g],90107)},40793,e=>{"use strict";var t=e.x("node:sqlite",()=>require("node:sqlite"),!0),r=e.i(42969),i=e.i(66680);let s={randomUUID:i.randomUUID},a=new Uint8Array(256),n=a.length,o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let l=function(e,t,r){if(s.randomUUID&&!t&&!e)return s.randomUUID();var l=e,u=r;let d=(l=l||{}).random??l.rng?.()??(n>a.length-16&&((0,i.randomFillSync)(a),n=0),a.slice(n,n+=16));if(d.length<16)throw Error("Random bytes length must be >= 16");if(d[6]=15&d[6]|64,d[8]=63&d[8]|128,t){if((u=u||0)<0||u+16>t.length)throw RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[u+e]=d[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(d)};var u=e.i(14747),d=e.i(22734),c=e.i(46786),p=e.i(28237);process.env.AGX_MAX_WORKERS;class m{timestamps=[];lastWarning=0;WARNING_COOLDOWN_MS=6e4;record(){this.timestamps.push(Date.now())}check(){let e=Date.now(),t=e-1e4;this.timestamps=this.timestamps.filter(e=>e>=t);let r=this.timestamps.length/10,i=r>=40;return i&&e-this.lastWarning>this.WARNING_COOLDOWN_MS&&(this.lastWarning=e,console.warn(`[limits] Write QPS at ${r.toFixed(1)} — approaching ceiling of 50. See docs/LIMITS.md for mitigation steps.`)),{qps:r,warning:i}}}var f=e.i(57306);let h=process.env.AGX_DATA_DIR||u.default.join(c.default.homedir(),".agx");function g(){let e=Number(process.env.AGX_QUEUE_STALE_MS);return Number.isFinite(e)&&e>0?e:6e5}class E{db;workers=new Map;pollingInterval=null;writeRateInterval=null;writeMonitor=new m;workerId;constructor(e){this.workerId=l();const r=e||process.env.SQLITE_QUEUE_PATH||u.default.join(h,"agx-queue.db"),i=u.default.dirname(r);d.default.existsSync(i)||d.default.mkdirSync(i,{recursive:!0}),this.db=new t.DatabaseSync(r);const s=(0,p.validateSQLiteEnvironment)(this.db,r);if(s.length>0){const e=s.map(e=>e.message).join("; ");console.error(`[SQLiteQueueAdapter] Startup validation failed: ${e}`)}}async start(){this.initSchema(),this.startPolling()}async stop(){this.stopPolling(),this.db.close()}initSchema(){this.db.exec(`
|
|
3
24
|
CREATE TABLE IF NOT EXISTS agx_jobs (
|
|
4
25
|
id TEXT PRIMARY KEY,
|
|
5
26
|
queue TEXT NOT NULL,
|
|
@@ -75,27 +96,6 @@ module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},14747,(e,
|
|
|
75
96
|
worker_id = NULL,
|
|
76
97
|
error = ?
|
|
77
98
|
WHERE id = ?
|
|
78
|
-
`),n=[];for(let e of i){let r=`Job exceeded active timeout of ${g()}ms`;e.retry_count<e.retry_limit?(s.run(t,r,e.id),n.push({id:e.id,fromStatus:"active",toStatus:"retry",retryCount:e.retry_count+1})):(a.run(t,r,e.id),n.push({id:e.id,fromStatus:"active",toStatus:"failed",retryCount:e.retry_count}))}return n}}let _=null;async function b(){return _||(_=new E,await _.start()),_}async function L(){_&&(await _.stop(),_=null)}e.s(["QUEUE_NAMES",0,{TASK_PROCESS:"agx.task.process",CHAT_RUN_PROCESS:"agx.chat.process",TASK_CLEANUP:"agx.task.cleanup"},"getQueue",()=>b,"stopQueue",()=>L],40793)}
|
|
79
|
-
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;s(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&s(t),t=""}}},u=e=>{let t="",r=!1,i="",s=t=>{let s=t.trim();if(s)try{let t=JSON.parse(s);r=!0,t?.type==="message"&&t?.role==="assistant"&&a(t?.content)&&((t,r)=>{if(t){if(r){if(i&&t.startsWith(i)){let r=t.slice(i.length);r&&e(r),i=t;return}e(t),i+=t;return}if(i&&t.startsWith(i)){let r=t.slice(i.length);r&&e(r),i=t;return}i||(e(t),i=t)}})(t.content,t?.delta===!0)}catch{r||e(`${t}
|
|
80
|
-
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;s(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&s(t),t=""}}},d=e=>{let t="",r=!1,i=new Set,s=t=>{let s=t.trim();if(s)try{let t=JSON.parse(s);if(r=!0,t?.type==="item.completed"&&a(t?.item?.id)){if(i.has(t.item.id))return;i.add(t.item.id)}let n=t&&"object"==typeof t?"item.completed"===t.type&&t.item?.type==="agent_message"&&a(t.item?.text)?t.item.text:"item.delta"===t.type&&t.item?.type==="agent_message"&&a(t.delta?.text)?t.delta.text:"":"";n&&e(n)}catch{r||e(`${t}
|
|
81
|
-
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;s(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&s(t),t=""}}},c=e=>{let t="",r=!1,i=[/^Thinking\.\.\./,/^<think>/i],s=[/\.\.\.done thinking\.?\s*/,/<\/think>/i];return{push:a=>{t+=a,(()=>{for(;t.length>0;){if(r){let e=-1,i=0;for(let r of s){let s=t.match(r);s&&void 0!==s.index&&(s.index,s[0].length,(-1===e||s.index<e)&&(e=s.index,i=s[0].length))}if(-1!==e){t=t.slice(e+i),r=!1,t=t.replace(/^\s*\n*/,"");continue}return}for(let s of i){let i=t.match(s);if(i&&void 0!==i.index){let s=t.slice(0,i.index);s&&e.push(s),t=t.slice(i.index+i[0].length),r=!0;break}}if(r)continue;let a=Math.max(0,t.length-30);a>0&&(e.push(t.slice(0,a)),t=t.slice(a));return}})()},flush:()=>{!r&&t&&e.push(t),t="",e.flush()}}},p=new Set(["claude","gemini","ollama","codex"]);function m(){let e=process.env.AGX_CLI_PATH?.trim();if(e&&r.default.existsSync(e))return e;for(let e of[i.default.resolve(process.cwd(),"..","cli","index.js"),i.default.resolve("/ROOT/lib","..","cli","index.js"),i.default.resolve(process.execPath,"..","..","Resources","cli","index.js")])if(r.default.existsSync(e))return e;return null}function f({provider:e,model:t,prompt:r,systemPrompt:i,passthroughArgs:s},a={}){let o=a.commandExists??n,l=void 0===a.bundledCliPath?m():a.bundledCliPath,u=[],d=i?`${i}
|
|
82
|
-
|
|
83
|
-
${r}`:r;if(p.has(e)){let r=function({provider:e,model:t,prompt:r,cliPath:i,passthroughArgs:s}){let a=void 0===i?m():i;if(!a)return null;let n=[a,e,"-y","--print","--prompt",r];return t&&n.push("--model",t),s&&s.length>0&&n.push("--",...s),{command:process.execPath,args:n,parser:"raw"}}({provider:e,model:t,prompt:d,cliPath:l,passthroughArgs:s});return r&&u.push(r),o("agx")&&u.push(function({provider:e,model:t,prompt:r,passthroughArgs:i}){let s=[e,"-y","--print","--prompt",r];return t&&s.push("--model",t),i&&i.length>0&&s.push("--",...i),{command:"agx",args:s,parser:"raw"}}({provider:e,model:t,prompt:d,passthroughArgs:s})),u}let c=function({provider:e,model:t,prompt:r,systemPrompt:i}){switch(e){case"claude":{let e=["-p","--verbose","--output-format","stream-json","--include-partial-messages"];return t&&e.push("--model",t),i&&e.push("--system-prompt",i),e.push(r),{command:"claude",args:e,parser:"claude-stream-json"}}case"gemini":return{command:"gemini",args:["--yolo","-p",i?`${i}
|
|
84
|
-
|
|
85
|
-
${r}`:r,"-o","stream-json"],parser:"gemini-stream-json"};case"ollama":return{command:"ollama",args:["run",t||"llama3.2",i?`${i}
|
|
86
|
-
|
|
87
|
-
${r}`:r],parser:"raw"};case"codex":{let e=["exec","--json"];return t&&e.push("--model",t),e.push(i?`${i}
|
|
88
|
-
|
|
89
|
-
${r}`:r),{command:"codex",args:e,parser:"codex-json"}}case"zai":{let e=process.env.ZAI_API_KEY?.trim(),s=["-p","--verbose","--output-format","stream-json","--include-partial-messages"];return t&&s.push("--model",t),i&&s.push("--system-prompt",i),s.push(r),{command:"claude",args:s,parser:"claude-stream-json",env:{ANTHROPIC_BASE_URL:"https://api.z.ai/api/anthropic",...e?{ANTHROPIC_AUTH_TOKEN:e}:{}}}}default:return null}}({provider:e,model:t,prompt:r,systemPrompt:i});return c&&o(c.command)&&u.push(c),u}async function h({command:e,args:r,timeoutMs:i,signal:a,onDelta:n,onLog:o,onSpawn:l,env:u}){await new Promise((d,c)=>{(0,s.writeDebugLog)("cli-runner.spawn",{command:e,args:r,timeoutMs:i,bundledCliPath:m(),isElectron:process.env.AGX_ELECTRON||null}),o&&o("stderr",`$ ${e} ${r.map(e=>e.length>80?e.slice(0,80)+"…":e).join(" ")}
|
|
90
|
-
`);let p=(0,t.spawn)(e,r,{stdio:["ignore","pipe","pipe"],env:{...process.env,CLAUDECODE:void 0,...u}}),f=!1,h="",g=!1,E=e=>{f||(f=!0,clearTimeout(b),a&&a.removeEventListener("abort",_),e?c(e):d())},_=()=>{(0,s.writeDebugLog)("cli-runner.abort",{command:e,args:r,pid:p.pid??null}),p.kill("SIGTERM"),E(Error("Chat request aborted."))};a&&a.addEventListener("abort",_,{once:!0}),l&&p.pid&&l(p.pid),(0,s.writeDebugLog)("cli-runner.spawned",{command:e,args:r,pid:p.pid??null});let b=setTimeout(()=>{g=!0,(0,s.writeDebugLog)("cli-runner.timeout",{command:e,args:r,pid:p.pid??null,timeoutMs:i}),p.kill("SIGKILL"),E(Error(`CLI request timed out after ${i}ms.`))},i);p.stdout.on("data",e=>{let t=e.toString();h+=t,n(t),o&&o("stdout",t)}),p.stderr.on("data",e=>{let t=e.toString();h+=t,o&&o("stderr",t)}),p.on("error",t=>{(0,s.writeDebugLog)("cli-runner.process_error",{command:e,args:r,pid:p.pid??null,error:t}),E(t)}),p.on("close",(t,i)=>{if(!f&&!g){if((0,s.writeDebugLog)("cli-runner.close",{command:e,args:r,pid:p.pid??null,code:t??null,signal:i??null}),0===t)return void E();E(Error(`CLI command failed (exit=${t??"unknown"} signal=${i??"none"}).${h.trim()?` ${h.trim()}`:""}`))}})})}async function g({provider:e,model:t,prompt:r,identity:i,self:a,skills:n,systemContext:p,passthroughArgs:g,signal:E,onDelta:_,onLog:b,onSpawn:L}){let y,x,S,w,T=(y=!1,x=!1,S="",w=/^(?:```|~~~|#{1,6}\s|>\s|[-*+]\s|\d+\.\s)/,e=>{let t=e.replace(/\u001B\[[0-9;]*[A-Za-z]/g,"").replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/[ \t]+\n/g,"\n").replace(/\n{3,}/g,"\n\n");if(!t.trim())return t.includes("\n")&&!y?(y=!0,"\n"):"";let r=y?t.replace(/^\n+/,"\n"):t,i=r.trimStart(),s=w.test(i),a=x&&s&&!y,n=x&&!y&&!a&&!/^\s/.test(r)&&/[.!?)]/.test(S)&&/^[A-Z0-9`(]/.test(r),o=a?`
|
|
91
|
-
|
|
92
|
-
${r}`:n?`
|
|
93
|
-
${r}`:r;y=o.endsWith("\n"),x=x||o.trim().length>0;let l=o.replace(/\s+$/g,"");return l.length>0&&(S=l[l.length-1]??S),o}),v=e=>{let t=T(e);t&&_(t)},A=[];p&&A.push(p),i&&A.push(`<identity>
|
|
94
|
-
${i}
|
|
95
|
-
</identity>`),a&&A.push(`<self>
|
|
96
|
-
${a}
|
|
97
|
-
</self>`),n&&A.push(`<skills>
|
|
98
|
-
${n}
|
|
99
|
-
</skills>`);let I=f({provider:e,model:t,prompt:r,systemPrompt:A.length>0?A.join("\n\n"):void 0,passthroughArgs:g});if(0===I.length)throw(0,s.writeDebugLog)("cli-runner.no_attempts",{provider:e,model:t,bundledCliPath:m(),isElectron:process.env.AGX_ELECTRON||null}),Error(`No CLI runner available for provider "${e}". Install agx or provider CLI.`);let N=null;for(let r of I){(0,s.writeDebugLog)("cli-runner.attempt",{provider:e,model:t,command:r.command,args:r.args,parser:r.parser});let i="claude-stream-json"===r.parser?l(v):"codex-json"===r.parser?d(v):"gemini-stream-json"===r.parser?u(v):o(v),a=r.filterThoughts?c(i):i;try{await h({command:r.command,args:r.args,timeoutMs:6e5,signal:E,onDelta:a.push,onLog:b,onSpawn:L,env:r.env}),a.flush(),(0,s.writeDebugLog)("cli-runner.success",{provider:e,model:t,command:r.command});return}catch(i){N=i instanceof Error?i:Error(String(i)),(0,s.writeDebugLog)("cli-runner.failure",{provider:e,model:t,command:r.command,error:N})}}throw N||Error("CLI execution failed.")}e.s(["buildCliAttempts",()=>f,"runCliResponse",()=>g],90107)}];
|
|
99
|
+
`),n=[];for(let e of i){let r=`Job exceeded active timeout of ${g()}ms`;e.retry_count<e.retry_limit?(s.run(t,r,e.id),n.push({id:e.id,fromStatus:"active",toStatus:"retry",retryCount:e.retry_count+1})):(a.run(t,r,e.id),n.push({id:e.id,fromStatus:"active",toStatus:"failed",retryCount:e.retry_count}))}return n}}let _=null;async function b(){return _||(_=new E,await _.start()),_}async function L(){_&&(await _.stop(),_=null)}e.s(["QUEUE_NAMES",0,{TASK_PROCESS:"agx.task.process",CHAT_RUN_PROCESS:"agx.chat.process",TASK_CLEANUP:"agx.task.cleanup"},"getQueue",()=>b,"stopQueue",()=>L],40793)}];
|
|
100
100
|
|
|
101
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
101
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__09ca81e1._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[33405,(e,t,s)=>{t.exports=e.x("child_process",()=>require("child_process"))},58898,e=>{"use strict";var t=e.i(33405);function s(e,t){let s="string"==typeof e.args?.rootMessageId?e.args.rootMessageId.trim():"";return s||(t.schedule?.rootMessageId?.trim()??"")}async function r(t){try{let{getSQLiteDb:s}=await e.A(48207),r=s(),a=r.prepare("SELECT project_id FROM project_threads WHERE thread_id = ? ORDER BY created_at ASC LIMIT 1").get(t);if(!a?.project_id)return null;let n=r.prepare("SELECT agent_id FROM project_agents WHERE project_id = ? ORDER BY routing_order ASC, created_at ASC LIMIT 1").get(a.project_id);return n?.agent_id??null}catch{return null}}async function a(t,r){let a=s(t,r);if(!a)return{status:"failure",message:"thread-status requires rootMessageId"};let{getMessageThread:n,getThreadStatusSnapshot:i,sweepStaleWorkingReactions:u}=await e.A(5617),o=await n(a);if(!o)return{status:"failure",message:`Thread not found for rootMessageId: ${a}`};await u(o.threadId);let d=await i({threadId:o.threadId,rootMessageId:a});return{status:"success",output:{activeProcessCount:d.processes.filter(e=>"working"===e.status).length,messageCount:d.messages?.length??0,threadId:o.threadId,lastUpdatedAt:d.lastUpdatedAt}}}async function n(t,a){let n=s(t,a);if(!n)return{status:"failure",message:"ship-mode-act requires rootMessageId"};let i=function(e,t){let s="string"==typeof e.args?.steerNodeId&&e.args.steerNodeId.trim()?e.args.steerNodeId.trim():"steer",r=t.nodes[s];if(!r||"work"!==r.type)return null;let a=r.output;return a&&"object"==typeof a?{isDone:!!a.isDone,message:"string"==typeof a.message?a.message:""}:null}(t,a);if(!i)return{status:"failure",message:"Unable to read steer node output"};let{getMessageThread:u,saveMessages:o,updateMessageStatus:d}=await e.A(5617),{deactivateSchedulesByRootMessageId:c}=await e.A(2224),l=await u(n);if(!l)return{status:"failure",message:`Thread not found for rootMessageId: ${n}`};if(i.isDone)return c(n),await d(l.threadId,n,"in-review",null),{status:"success",output:{done:!0,action:"stopped_and_in_review"}};let m=await r(l.threadId),f=crypto.randomUUID();return await o(l.threadId,[{id:f,role:"assistant",participantId:m,content:i.message,timestamp:Date.now(),rootMessageId:n,parentMessageId:n,depth:1}]),{status:"success",output:{done:!1,action:"sent_next_steps",sender:m,messageId:f}}}async function i(e,t){if("internal"!==e.kind)return{status:"failure",message:`Unsupported function node kind: ${e.kind}`};switch(e.command){case"thread-status":return a(e,t);case"ship-mode-act":return n(e,t);default:return{status:"failure",message:`Unsupported internal function command: ${e.command}`}}}async function u(e,s){if("bash"!==e.kind)return{status:"failure",message:`Unsupported function node kind: ${e.kind}`};let r=e.command;if(!r||""===r.trim())return{status:"failure",message:"Empty command"};let a=e.timeoutMs??3e4;return new Promise(e=>{let s="",n="",i=0,u=!1,o=!1,d=(0,t.spawn)(r,[],{shell:!0,timeout:a,killSignal:"SIGTERM"}),c=setTimeout(()=>{o=!0,d.kill("SIGTERM")},a);d.stdout.on("data",e=>{if(u)return;let t=Buffer.byteLength(e.toString(),"utf8");if(i+t>65536){u=!0;return}s+=e.toString(),i+=t}),d.stderr.on("data",e=>{n+=e.toString()}),d.on("error",t=>{clearTimeout(c),e({status:"failure",message:`Failed to spawn command: ${t.message}`,error:t})}),d.on("close",t=>{if(clearTimeout(c),o)return void e({status:"failure",message:`Command timed out after ${a}ms`});if(u)return void e({status:"failure",message:"Stdout exceeded 65536 bytes limit"});if(0!==t)return void e({status:"failure",message:`Command exited with code ${t}: ${n||"(no stderr)"}`});let r=s.trim();if(""===r)return void e({status:"success",output:{}});try{let t=JSON.parse(r);e({status:"success",output:t})}catch{e({status:"success",output:{raw:r}})}})})}function o(){return async(e,t)=>{switch(e.kind){case"bash":return u(e,t);case"internal":return i(e,t);default:return{status:"failure",message:`Unsupported function node kind: ${e.kind}`}}}}e.s(["createDispatchFunction",()=>o,"dispatchBashFunction",()=>u],58898)},48207,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__255b11f2._.js","server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js"].map(t=>e.l(t))).then(()=>t(65196)))},5617,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]
|
|
1
|
+
module.exports=[33405,(e,t,s)=>{t.exports=e.x("child_process",()=>require("child_process"))},58898,e=>{"use strict";var t=e.i(33405);function s(e,t){let s="string"==typeof e.args?.rootMessageId?e.args.rootMessageId.trim():"";return s||(t.schedule?.rootMessageId?.trim()??"")}async function r(t){try{let{getSQLiteDb:s}=await e.A(48207),r=s(),a=r.prepare("SELECT project_id FROM project_threads WHERE thread_id = ? ORDER BY created_at ASC LIMIT 1").get(t);if(!a?.project_id)return null;let n=r.prepare("SELECT agent_id FROM project_agents WHERE project_id = ? ORDER BY routing_order ASC, created_at ASC LIMIT 1").get(a.project_id);return n?.agent_id??null}catch{return null}}async function a(t,r){let a=s(t,r);if(!a)return{status:"failure",message:"thread-status requires rootMessageId"};let{getMessageThread:n,getThreadStatusSnapshot:i,sweepStaleWorkingReactions:u}=await e.A(5617),o=await n(a);if(!o)return{status:"failure",message:`Thread not found for rootMessageId: ${a}`};await u(o.threadId);let d=await i({threadId:o.threadId,rootMessageId:a});return{status:"success",output:{activeProcessCount:d.processes.filter(e=>"working"===e.status).length,messageCount:d.messages?.length??0,threadId:o.threadId,lastUpdatedAt:d.lastUpdatedAt}}}async function n(t,a){let n=s(t,a);if(!n)return{status:"failure",message:"ship-mode-act requires rootMessageId"};let i=function(e,t){let s="string"==typeof e.args?.steerNodeId&&e.args.steerNodeId.trim()?e.args.steerNodeId.trim():"steer",r=t.nodes[s];if(!r||"work"!==r.type)return null;let a=r.output;return a&&"object"==typeof a?{isDone:!!a.isDone,message:"string"==typeof a.message?a.message:""}:null}(t,a);if(!i)return{status:"failure",message:"Unable to read steer node output"};let{getMessageThread:u,saveMessages:o,updateMessageStatus:d}=await e.A(5617),{deactivateSchedulesByRootMessageId:c}=await e.A(2224),l=await u(n);if(!l)return{status:"failure",message:`Thread not found for rootMessageId: ${n}`};if(i.isDone)return c(n),await d(l.threadId,n,"in-review",null),{status:"success",output:{done:!0,action:"stopped_and_in_review"}};let m=await r(l.threadId),f=crypto.randomUUID();return await o(l.threadId,[{id:f,role:"assistant",participantId:m,content:i.message,timestamp:Date.now(),rootMessageId:n,parentMessageId:n,depth:1}]),{status:"success",output:{done:!1,action:"sent_next_steps",sender:m,messageId:f}}}async function i(e,t){if("internal"!==e.kind)return{status:"failure",message:`Unsupported function node kind: ${e.kind}`};switch(e.command){case"thread-status":return a(e,t);case"ship-mode-act":return n(e,t);default:return{status:"failure",message:`Unsupported internal function command: ${e.command}`}}}async function u(e,s){if("bash"!==e.kind)return{status:"failure",message:`Unsupported function node kind: ${e.kind}`};let r=e.command;if(!r||""===r.trim())return{status:"failure",message:"Empty command"};let a=e.timeoutMs??3e4;return new Promise(e=>{let s="",n="",i=0,u=!1,o=!1,d=(0,t.spawn)(r,[],{shell:!0,timeout:a,killSignal:"SIGTERM"}),c=setTimeout(()=>{o=!0,d.kill("SIGTERM")},a);d.stdout.on("data",e=>{if(u)return;let t=Buffer.byteLength(e.toString(),"utf8");if(i+t>65536){u=!0;return}s+=e.toString(),i+=t}),d.stderr.on("data",e=>{n+=e.toString()}),d.on("error",t=>{clearTimeout(c),e({status:"failure",message:`Failed to spawn command: ${t.message}`,error:t})}),d.on("close",t=>{if(clearTimeout(c),o)return void e({status:"failure",message:`Command timed out after ${a}ms`});if(u)return void e({status:"failure",message:"Stdout exceeded 65536 bytes limit"});if(0!==t)return void e({status:"failure",message:`Command exited with code ${t}: ${n||"(no stderr)"}`});let r=s.trim();if(""===r)return void e({status:"success",output:{}});try{let t=JSON.parse(r);e({status:"success",output:t})}catch{e({status:"success",output:{raw:r}})}})})}function o(){return async(e,t)=>{switch(e.kind){case"bash":return u(e,t);case"internal":return i(e,t);default:return{status:"failure",message:`Unsupported function node kind: ${e.kind}`}}}}e.s(["createDispatchFunction",()=>o,"dispatchBashFunction",()=>u],58898)},48207,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__255b11f2._.js","server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js"].map(t=>e.l(t))).then(()=>t(65196)))},5617,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__a1e62918._.js","server/chunks/lib_history-store_ts_74d1c060._.js"].map(t=>e.l(t))).then(()=>t(55248)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1017e012._.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},42969,e=>{"use strict";function t(e,t){let r=e.prepare(`PRAGMA ${t}`).get();if(!r)return;let s=Object.values(r);return s.length>0?s[0]:void 0}function r(e,t){return e.prepare(`PRAGMA ${t}`).all()}function s(e,t){e.exec(`PRAGMA ${t}`)}function n(e,t){e.exec("BEGIN");try{let r=t();return e.exec("COMMIT"),r}catch(t){throw e.exec("ROLLBACK"),t}}function i(e,t){return(...r)=>{e.exec("BEGIN");try{let s=t(...r);return e.exec("COMMIT"),s}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>r,"pragmaGet",()=>t,"pragmaSet",()=>s,"transaction",()=>n,"transactionFn",()=>i])},28237,e=>{"use strict";e.x("node:sqlite",()=>require("node:sqlite"),!0);var t=e.i(42969);e.i(22734);var r=e.i(46786),s=e.i(14747);let n="3.35.0",i=["json1"],a=["fts5"],l=["nfs","smb","cifs","efs","fuse.sshfs"];function o(e,t){try{if("json1"===t)return e.prepare("SELECT json('{}')").get(),!0;if("fts5"===t)return e.exec("CREATE VIRTUAL TABLE IF NOT EXISTS _fts5_check USING fts5(x)"),e.exec("DROP TABLE IF EXISTS _fts5_check"),!0;return!1}catch{return!1}}function u(u,c){let d=[],p=u.prepare("SELECT sqlite_version() as v").get();for(let e of(0>function(e,t){let r=e.split(".").map(Number),s=t.split(".").map(Number);for(let e=0;e<3;e++){let t=(r[e]||0)-(s[e]||0);if(0!==t)return t}return 0}(p.v,n)&&d.push({kind:"version_mismatch",message:`SQLite version ${p.v} is below minimum ${n}`,found:p.v,required:`>= ${n}`,fix:"Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"}),i))o(u,e)||d.push({kind:"missing_extension",message:`Required SQLite extension '${e}' is not available`,required:e,fix:`Rebuild SQLite with -DSQLITE_ENABLE_${e.toUpperCase()}=1, or use a system SQLite that includes it`});for(let e of a)o(u,e)||console.warn(`[startup] Recommended SQLite extension '${e}' is not available. Full-text search will be disabled.`);let m=function(t){"linux"!==r.default.platform()&&r.default.platform();try{let n=s.default.resolve(t),{execSync:i}=e.r(33405);if("darwin"===r.default.platform()){let e=i(`df -T "${n}" 2>/dev/null || df "${n}"`,{encoding:"utf-8",timeout:3e3}).trim().split("\n");if(e.length>=2){let t=e[1].split(/\s+/),r=t[0]?.toLowerCase()||"";if(r.includes("://")||r.includes("nfs")||r.includes("smb"))return r}}}catch{}return null}(c);m&&l.some(e=>m.toLowerCase().includes(e))&&d.push({kind:"filesystem_error",message:`Database path '${c}' is on a network filesystem (${m})`,path:c,found:m,fix:"Move the database file to a local SSD. WAL mode requires local filesystem with reliable fsync."});try{(0,t.pragmaSet)(u,"journal_mode = wal"),(0,t.pragmaSet)(u,"foreign_keys = 1"),(0,t.pragmaSet)(u,"busy_timeout = 5000"),(0,t.pragmaSet)(u,"synchronous = 1"),(0,t.pragmaSet)(u,"cache_size = -64000");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase(),r=new Set(["wal","delete"]);if(!r.has(e)){(0,t.pragmaSet)(u,"journal_mode = DELETE");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase();r.has(e)?((0,t.pragmaSet)(u,"synchronous = FULL"),console.warn(`[startup] WAL unavailable, using journal_mode=${e} with synchronous=FULL`)):d.push({kind:"pragma_error",message:`Failed to set journal_mode (got '${e}', tried WAL then DELETE)`,found:e,required:"wal or delete",fix:"Ensure the database file is on a local filesystem and no other process holds an exclusive lock."})}}catch(e){d.push({kind:"pragma_error",message:`Failed to apply required PRAGMAs: ${e.message}`,fix:"Check file permissions and ensure the database is not read-only."})}return d}e.s(["validateSQLiteEnvironment",()=>u])},57306,e=>{"use strict";var t=e.i(22734),r=e.i(46786),s=e.i(14747);let n=process.env.AGX_DATA_DIR||s.default.join(r.default.homedir(),".agx"),i=process.env.AGX_DEBUG_LOG_PATH||s.default.join(n,"logs","desktop-chat-debug.log");function a(e,t){return t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:"string"==typeof t&&t.length>2e3?`${t.slice(0,2e3)}...<truncated>`:t}function l(e,r){try{t.default.mkdirSync(s.default.dirname(i),{recursive:!0});let n=JSON.stringify({ts:new Date().toISOString(),pid:process.pid,event:e,...r?{payload:r}:{}},a);t.default.appendFileSync(i,`${n}
|
|
2
|
+
`,"utf8")}catch{}}e.s(["writeDebugLog",()=>l])},90107,e=>{"use strict";var t=e.i(33405),r=e.i(22734),s=e.i(14747),n=e.i(57306);let i=e=>"string"==typeof e&&e.trim().length>0,a=e=>{try{return 0===(0,t.spawnSync)("bash",["-lc",`command -v ${e} >/dev/null 2>&1`],{encoding:"utf8"}).status}catch{return!1}},l=e=>({push:e,flush:()=>{}}),o=e=>{let t="",r=0,s=!1,n=t=>{let n=t.trim();if(n)try{let t=JSON.parse(n);s=!0;let a=(e=>{if(!e||"object"!=typeof e)return"";if("assistant"===e.type)return(Array.isArray(e?.message?.content)?e.message.content:[]).flatMap(e=>e?.type==="text"&&i(e.text)?[e.text]:[]).join("");let t=e?.event;return"stream_event"===e.type&&t?.type==="content_block_delta"&&t?.delta?.type==="text_delta"&&i(t?.delta?.text)?t.delta.text:""})(t);if(!a||t?.type==="assistant"&&r>0)return;r+=a.length,e(a)}catch{s||e(`${t}
|
|
3
|
+
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;n(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&n(t),t=""}}},u=e=>{let t="",r=!1,s="",n=t=>{let n=t.trim();if(n)try{let t=JSON.parse(n);r=!0,t?.type==="message"&&t?.role==="assistant"&&i(t?.content)&&((t,r)=>{if(t){if(r){if(s&&t.startsWith(s)){let r=t.slice(s.length);r&&e(r),s=t;return}e(t),s+=t;return}if(s&&t.startsWith(s)){let r=t.slice(s.length);r&&e(r),s=t;return}s||(e(t),s=t)}})(t.content,t?.delta===!0)}catch{r||e(`${t}
|
|
4
|
+
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;n(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&n(t),t=""}}},c=e=>{let t="",r=!1,s=new Set,n=t=>{let n=t.trim();if(n)try{let t=JSON.parse(n);if(r=!0,t?.type==="item.completed"&&i(t?.item?.id)){if(s.has(t.item.id))return;s.add(t.item.id)}let a=t&&"object"==typeof t?"item.completed"===t.type&&t.item?.type==="agent_message"&&i(t.item?.text)?t.item.text:"item.delta"===t.type&&t.item?.type==="agent_message"&&i(t.delta?.text)?t.delta.text:"":"";a&&e(a)}catch{r||e(`${t}
|
|
5
|
+
`)}};return{push:e=>{for(t+=e;;){let e=t.indexOf("\n");if(-1===e)break;n(t.slice(0,e)),t=t.slice(e+1)}},flush:()=>{t.trim()&&n(t),t=""}}},d=e=>{let t="",r=!1,s=[/^Thinking\.\.\./,/^<think>/i],n=[/\.\.\.done thinking\.?\s*/,/<\/think>/i];return{push:i=>{t+=i,(()=>{for(;t.length>0;){if(r){let e=-1,s=0;for(let r of n){let n=t.match(r);n&&void 0!==n.index&&(n.index,n[0].length,(-1===e||n.index<e)&&(e=n.index,s=n[0].length))}if(-1!==e){t=t.slice(e+s),r=!1,t=t.replace(/^\s*\n*/,"");continue}return}for(let n of s){let s=t.match(n);if(s&&void 0!==s.index){let n=t.slice(0,s.index);n&&e.push(n),t=t.slice(s.index+s[0].length),r=!0;break}}if(r)continue;let i=Math.max(0,t.length-30);i>0&&(e.push(t.slice(0,i)),t=t.slice(i));return}})()},flush:()=>{!r&&t&&e.push(t),t="",e.flush()}}},p=new Set(["claude","gemini","ollama","codex"]);function m(){let e=process.env.AGX_CLI_PATH?.trim();if(e&&r.default.existsSync(e))return e;for(let e of[s.default.resolve(process.cwd(),"..","cli","index.js"),s.default.resolve("/ROOT/lib","..","cli","index.js"),s.default.resolve(process.execPath,"..","..","Resources","cli","index.js")])if(r.default.existsSync(e))return e;return null}function f({provider:e,model:t,prompt:r,systemPrompt:s,passthroughArgs:n},i={}){let l=i.commandExists??a,o=void 0===i.bundledCliPath?m():i.bundledCliPath,u=[],c=s?`${s}
|
|
6
|
+
|
|
7
|
+
${r}`:r;if(p.has(e)){let r=function({provider:e,model:t,prompt:r,cliPath:s,passthroughArgs:n}){let i=void 0===s?m():s;if(!i)return null;let a=[i,e,"-y","--print","--prompt",r];return t&&a.push("--model",t),n&&n.length>0&&a.push("--",...n),{command:process.execPath,args:a,parser:"raw"}}({provider:e,model:t,prompt:c,cliPath:o,passthroughArgs:n});return r&&u.push(r),l("agx")&&u.push(function({provider:e,model:t,prompt:r,passthroughArgs:s}){let n=[e,"-y","--print","--prompt",r];return t&&n.push("--model",t),s&&s.length>0&&n.push("--",...s),{command:"agx",args:n,parser:"raw"}}({provider:e,model:t,prompt:c,passthroughArgs:n})),u}let d=function({provider:e,model:t,prompt:r,systemPrompt:s}){switch(e){case"claude":{let e=["-p","--verbose","--output-format","stream-json","--include-partial-messages"];return t&&e.push("--model",t),s&&e.push("--system-prompt",s),e.push(r),{command:"claude",args:e,parser:"claude-stream-json"}}case"gemini":return{command:"gemini",args:["--yolo","-p",s?`${s}
|
|
8
|
+
|
|
9
|
+
${r}`:r,"-o","stream-json"],parser:"gemini-stream-json"};case"ollama":return{command:"ollama",args:["run",t||"llama3.2",s?`${s}
|
|
10
|
+
|
|
11
|
+
${r}`:r],parser:"raw"};case"codex":{let e=["exec","--json"];return t&&e.push("--model",t),e.push(s?`${s}
|
|
12
|
+
|
|
13
|
+
${r}`:r),{command:"codex",args:e,parser:"codex-json"}}case"zai":{let e=process.env.ZAI_API_KEY?.trim(),n=["-p","--verbose","--output-format","stream-json","--include-partial-messages"];return t&&n.push("--model",t),s&&n.push("--system-prompt",s),n.push(r),{command:"claude",args:n,parser:"claude-stream-json",env:{ANTHROPIC_BASE_URL:"https://api.z.ai/api/anthropic",...e?{ANTHROPIC_AUTH_TOKEN:e}:{}}}}default:return null}}({provider:e,model:t,prompt:r,systemPrompt:s});return d&&l(d.command)&&u.push(d),u}async function h({command:e,args:r,timeoutMs:s,signal:i,onDelta:a,onLog:l,onSpawn:o,env:u}){await new Promise((c,d)=>{(0,n.writeDebugLog)("cli-runner.spawn",{command:e,args:r,timeoutMs:s,bundledCliPath:m(),isElectron:process.env.AGX_ELECTRON||null}),l&&l("stderr",`$ ${e} ${r.map(e=>e.length>80?e.slice(0,80)+"…":e).join(" ")}
|
|
14
|
+
`);let p=(0,t.spawn)(e,r,{stdio:["ignore","pipe","pipe"],env:{...process.env,CLAUDECODE:void 0,...u}}),f=!1,h="",g=!1,x=e=>{f||(f=!0,clearTimeout(y),i&&i.removeEventListener("abort",v),e?d(e):c())},v=()=>{(0,n.writeDebugLog)("cli-runner.abort",{command:e,args:r,pid:p.pid??null}),p.kill("SIGTERM"),x(Error("Chat request aborted."))};i&&i.addEventListener("abort",v,{once:!0}),o&&p.pid&&o(p.pid),(0,n.writeDebugLog)("cli-runner.spawned",{command:e,args:r,pid:p.pid??null});let y=setTimeout(()=>{g=!0,(0,n.writeDebugLog)("cli-runner.timeout",{command:e,args:r,pid:p.pid??null,timeoutMs:s}),p.kill("SIGKILL"),x(Error(`CLI request timed out after ${s}ms.`))},s);p.stdout.on("data",e=>{let t=e.toString();h+=t,a(t),l&&l("stdout",t)}),p.stderr.on("data",e=>{let t=e.toString();h+=t,l&&l("stderr",t)}),p.on("error",t=>{(0,n.writeDebugLog)("cli-runner.process_error",{command:e,args:r,pid:p.pid??null,error:t}),x(t)}),p.on("close",(t,s)=>{if(!f&&!g){if((0,n.writeDebugLog)("cli-runner.close",{command:e,args:r,pid:p.pid??null,code:t??null,signal:s??null}),0===t)return void x();x(Error(`CLI command failed (exit=${t??"unknown"} signal=${s??"none"}).${h.trim()?` ${h.trim()}`:""}`))}})})}async function g({provider:e,model:t,prompt:r,identity:s,self:i,skills:a,systemContext:p,passthroughArgs:g,signal:x,onDelta:v,onLog:y,onSpawn:L}){let _,b,w,E,S=(_=!1,b=!1,w="",E=/^(?:```|~~~|#{1,6}\s|>\s|[-*+]\s|\d+\.\s)/,e=>{let t=e.replace(/\u001B\[[0-9;]*[A-Za-z]/g,"").replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/[ \t]+\n/g,"\n").replace(/\n{3,}/g,"\n\n");if(!t.trim())return t.includes("\n")&&!_?(_=!0,"\n"):"";let r=_?t.replace(/^\n+/,"\n"):t,s=r.trimStart(),n=E.test(s),i=b&&n&&!_,a=b&&!_&&!i&&!/^\s/.test(r)&&/[.!?)]/.test(w)&&/^[A-Z0-9`(]/.test(r),l=i?`
|
|
15
|
+
|
|
16
|
+
${r}`:a?`
|
|
17
|
+
${r}`:r;_=l.endsWith("\n"),b=b||l.trim().length>0;let o=l.replace(/\s+$/g,"");return o.length>0&&(w=o[o.length-1]??w),l}),$=e=>{let t=S(e);t&&v(t)},A=[];p&&A.push(p),s&&A.push(`<identity>
|
|
18
|
+
${s}
|
|
19
|
+
</identity>`),i&&A.push(`<self>
|
|
20
|
+
${i}
|
|
21
|
+
</self>`),a&&A.push(`<skills>
|
|
22
|
+
${a}
|
|
23
|
+
</skills>`);let j=f({provider:e,model:t,prompt:r,systemPrompt:A.length>0?A.join("\n\n"):void 0,passthroughArgs:g});if(0===j.length)throw(0,n.writeDebugLog)("cli-runner.no_attempts",{provider:e,model:t,bundledCliPath:m(),isElectron:process.env.AGX_ELECTRON||null}),Error(`No CLI runner available for provider "${e}". Install agx or provider CLI.`);let C=null;for(let r of j){(0,n.writeDebugLog)("cli-runner.attempt",{provider:e,model:t,command:r.command,args:r.args,parser:r.parser});let s="claude-stream-json"===r.parser?o($):"codex-json"===r.parser?c($):"gemini-stream-json"===r.parser?u($):l($),i=r.filterThoughts?d(s):s;try{await h({command:r.command,args:r.args,timeoutMs:6e5,signal:x,onDelta:i.push,onLog:y,onSpawn:L,env:r.env}),i.flush(),(0,n.writeDebugLog)("cli-runner.success",{provider:e,model:t,command:r.command});return}catch(s){C=s instanceof Error?s:Error(String(s)),(0,n.writeDebugLog)("cli-runner.failure",{provider:e,model:t,command:r.command,error:C})}}throw C||Error("CLI execution failed.")}e.s(["buildCliAttempts",()=>f,"runCliResponse",()=>g],90107)},48207,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__255b11f2._.js","server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js"].map(t=>e.l(t))).then(()=>t(65196)))}];
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1ac3236d._.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},
|
|
1
|
+
module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},42969,e=>{"use strict";function t(e,t){let r=e.prepare(`PRAGMA ${t}`).get();if(!r)return;let o=Object.values(r);return o.length>0?o[0]:void 0}function r(e,t){return e.prepare(`PRAGMA ${t}`).all()}function o(e,t){e.exec(`PRAGMA ${t}`)}function s(e,t){e.exec("BEGIN");try{let r=t();return e.exec("COMMIT"),r}catch(t){throw e.exec("ROLLBACK"),t}}function n(e,t){return(...r)=>{e.exec("BEGIN");try{let o=t(...r);return e.exec("COMMIT"),o}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>r,"pragmaGet",()=>t,"pragmaSet",()=>o,"transaction",()=>s,"transactionFn",()=>n])},28237,e=>{"use strict";e.x("node:sqlite",()=>require("node:sqlite"),!0);var t=e.i(42969);e.i(22734);var r=e.i(46786),o=e.i(14747);let s="3.35.0",n=["json1"],i=["fts5"],a=["nfs","smb","cifs","efs","fuse.sshfs"];function d(e,t){try{if("json1"===t)return e.prepare("SELECT json('{}')").get(),!0;if("fts5"===t)return e.exec("CREATE VIRTUAL TABLE IF NOT EXISTS _fts5_check USING fts5(x)"),e.exec("DROP TABLE IF EXISTS _fts5_check"),!0;return!1}catch{return!1}}function u(u,l){let c=[],p=u.prepare("SELECT sqlite_version() as v").get();for(let e of(0>function(e,t){let r=e.split(".").map(Number),o=t.split(".").map(Number);for(let e=0;e<3;e++){let t=(r[e]||0)-(o[e]||0);if(0!==t)return t}return 0}(p.v,s)&&c.push({kind:"version_mismatch",message:`SQLite version ${p.v} is below minimum ${s}`,found:p.v,required:`>= ${s}`,fix:"Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"}),n))d(u,e)||c.push({kind:"missing_extension",message:`Required SQLite extension '${e}' is not available`,required:e,fix:`Rebuild SQLite with -DSQLITE_ENABLE_${e.toUpperCase()}=1, or use a system SQLite that includes it`});for(let e of i)d(u,e)||console.warn(`[startup] Recommended SQLite extension '${e}' is not available. Full-text search will be disabled.`);let h=function(t){"linux"!==r.default.platform()&&r.default.platform();try{let s=o.default.resolve(t),{execSync:n}=e.r(33405);if("darwin"===r.default.platform()){let e=n(`df -T "${s}" 2>/dev/null || df "${s}"`,{encoding:"utf-8",timeout:3e3}).trim().split("\n");if(e.length>=2){let t=e[1].split(/\s+/),r=t[0]?.toLowerCase()||"";if(r.includes("://")||r.includes("nfs")||r.includes("smb"))return r}}}catch{}return null}(l);h&&a.some(e=>h.toLowerCase().includes(e))&&c.push({kind:"filesystem_error",message:`Database path '${l}' is on a network filesystem (${h})`,path:l,found:h,fix:"Move the database file to a local SSD. WAL mode requires local filesystem with reliable fsync."});try{(0,t.pragmaSet)(u,"journal_mode = wal"),(0,t.pragmaSet)(u,"foreign_keys = 1"),(0,t.pragmaSet)(u,"busy_timeout = 5000"),(0,t.pragmaSet)(u,"synchronous = 1"),(0,t.pragmaSet)(u,"cache_size = -64000");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase(),r=new Set(["wal","delete"]);if(!r.has(e)){(0,t.pragmaSet)(u,"journal_mode = DELETE");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase();r.has(e)?((0,t.pragmaSet)(u,"synchronous = FULL"),console.warn(`[startup] WAL unavailable, using journal_mode=${e} with synchronous=FULL`)):c.push({kind:"pragma_error",message:`Failed to set journal_mode (got '${e}', tried WAL then DELETE)`,found:e,required:"wal or delete",fix:"Ensure the database file is on a local filesystem and no other process holds an exclusive lock."})}}catch(e){c.push({kind:"pragma_error",message:`Failed to apply required PRAGMAs: ${e.message}`,fix:"Check file permissions and ensure the database is not read-only."})}return c}e.s(["validateSQLiteEnvironment",()=>u])},12057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},9662,e=>{"use strict";var t=e.i(42873);function r(e,t=Date.now()){let o=t=>({graph:e,tickFired:!1,resetNodeIds:[],skipReason:t});if(!e.schedule)return o("no_schedule");let s=e.schedule;if("active"!==s.state)return o("not_active");if(s.tickInProgress)return o("tick_in_progress");if(null!=s.maxRuns&&s.runCount>=s.maxRuns)return o("max_runs_reached");if(s.cronExpr&&"number"==typeof s.nextTickAt){if(t<s.nextTickAt)return o("not_due")}else if(t-(s.lastTickAt??0)<s.intervalMs)return o("not_due");let n=JSON.parse(JSON.stringify(e)),i=[];for(let e of s.resetNodeIds){let t=n.nodes[e];t&&("done"===t.status||"passed"===t.status||"failed"===t.status||"skipped"===t.status)&&(n.nodes[e]={...t,status:"pending",startedAt:void 0,completedAt:void 0,metrics:void 0,..."function"===t.type?{output:void 0}:{},..."conditional"===t.type?{evaluatedTo:void 0}:{}},i.push(e))}return n.schedule={...s,tickInProgress:!0,lastTickAt:t,runCount:s.runCount+1},{graph:n,tickFired:!0,resetNodeIds:i}}function o(e){if(!e.schedule||!e.schedule.tickInProgress)return e;let r=e.schedule,o=r.nextTickAt;return r.cronExpr&&(o=(0,t.computeNextTickFromCron)(r.cronExpr)),{...e,schedule:{...r,tickInProgress:!1,nextTickAt:o}}}function s(e){if(!e.schedule)return!0;let t=new Set(["done","passed","failed","skipped"]);for(let r of e.schedule.resetNodeIds){let o=e.nodes[r];if(o&&!t.has(o.status))return!1}return!0}function n(e,t=6e4,r){return{intervalMs:t,state:"active",resetNodeIds:e,maxRuns:r,runCount:0,tickInProgress:!1,createdAt:new Date().toISOString()}}function i(e){return e.schedule&&"active"!==e.schedule.state?{...e,schedule:{...e.schedule,state:"active"}}:e}function a(e){return e.schedule?{...e,schedule:{...e.schedule,state:"stopped",tickInProgress:!1}}:e}e.s(["activateSchedule",()=>i,"completeScheduleTick",()=>o,"createThreadMonitorSchedule",()=>n,"isScheduleTickComplete",()=>s,"scheduleTickIfDue",()=>r,"stopSchedule",()=>a])},91329,e=>{"use strict";var t=e.i(65196),r=e.i(42969);let o=new Set(["replan","rollback"]);class s extends Error{expectedVersion;actualVersion;constructor(e,t){super(`Execution graph version conflict: expected ${e}, found ${t}.`),this.name="GraphVersionConflictError",this.expectedVersion=e,this.actualVersion=t}}class n extends Error{constructor(e){super(`Execution graph not found: ${e}`),this.name="GraphNotFoundError"}}class i extends Error{nodeIds;constructor(e,t){super(`Execution graph ${e} is missing node(s): ${t.join(", ")}`),this.name="GraphNodeNotFoundError",this.nodeIds=t}}class a extends Error{taskId;existingGraphId;constructor(e,t){super(`Task ${e} is already bound to execution graph ${t}.`),this.name="GraphTaskAlreadyBoundError",this.taskId=e,this.existingGraphId=t}}function d(e){return null==e?null:JSON.stringify(e)}function u(e){if(null==e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}function l(e){let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toISOString()}function c(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}function p(e){let{type:t,status:r,metrics:o,output:s,...n}=e;return{type:t,status:r,config:n,output:s??null,metrics:o??null}}function h(e){let t={...c(u(e.payload))};return"eventType"in t||(t.eventType=e.event_type),"timestamp"in t||(t.timestamp=l(e.timestamp)),t}function g(e){return{query(t,r){let o=e.prepare(t);return/^\s*(INSERT|UPDATE|DELETE)/i.test(t)&&!/RETURNING/i.test(t)?(o.run(...(r??[]).map(e=>e)),{rows:[]}):{rows:o.all(...(r??[]).map(e=>e))}}}}class f{getDb(){return(0,t.getSQLiteDb)()}createGraph(e,t){let o=this.getDb(),s=g(o);t?.skipTaskBinding&&(0,r.pragmaSet)(o,"foreign_keys = OFF");try{return(0,r.transaction)(o,()=>{let r=s.query("SELECT id FROM execution_graphs WHERE task_id = ? LIMIT 1",[e.taskId]).rows[0];if(r&&r.id!==e.id)throw new a(e.taskId,r.id);for(let[t,r]of(s.query(`INSERT INTO execution_graphs
|
|
2
2
|
(id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at)
|
|
3
3
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
4
4
|
ON CONFLICT (id) DO UPDATE SET
|
|
@@ -48,4 +48,4 @@ module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},14747,(e,
|
|
|
48
48
|
AND json_extract(schedule, '$.state') = 'active'
|
|
49
49
|
`).all().map(e=>({taskId:e.task_id,graphId:e.id,schedule:JSON.parse(e.schedule)}))}async function a(e={}){let t=new n.GraphStore,d={tickedGraphIds:[],skippedGraphIds:[],errors:[],pendingWork:[]},u=i();for(let{taskId:n}of(console.log(`[schedules:poll] found ${u.length} active schedule(s)`),u))try{let i=t.getGraph(n);if(!i){d.errors.push({graphId:n,error:Error("Graph not found")});continue}let a=(0,r.scheduleTickIfDue)(i);if(!a.tickFired){console.log(`[schedules:poll] ${n} skipped (${a.skipReason??"unknown"})`),d.skippedGraphIds.push(n);continue}console.log(`[schedules:poll] ${n} tick fired — resetting nodes`),t.updateGraphStructure(a.graph.id,{nodes:a.graph.nodes,schedule:a.graph.schedule});let u=(0,o.schedulerTick)(a.graph,e);console.log(`[schedules:poll] ${n} scheduler: fn=${u.functionToRun.length} work=${u.workToRun.length}`);let l=u.graph;for(let t of u.functionToRun){let r=l.nodes[t];if(r&&"function"===r.type)try{console.log(`[schedules:poll] ${n} executing function node "${t}"`);let r=await (0,s.executeNode)(l,t,e),o=r.graph.nodes[t];console.log(`[schedules:poll] ${n} function "${t}" → ${o?.status}`,o&&"output"in o?JSON.stringify(o.output)?.slice(0,200):""),l=r.graph}catch(e){console.error(`[schedules:poll] ${n} function "${t}" error:`,e),d.errors.push({graphId:n,error:e instanceof Error?e:Error(String(e))})}}t.updateGraphStructure(l.id,{nodes:l.nodes});let c=(0,o.schedulerTick)(l,e);for(let t of(console.log(`[schedules:poll] ${n} post-fn scheduler: cond=${c.control.conditionalNodeIds.length} work=${c.workToRun.length}`),l=c.graph,c.workToRun)){let r=l.nodes[t];if(r&&"work"===r.type)try{l=(await (0,s.executeNode)(l,t,e)).graph}catch(e){d.errors.push({graphId:n,error:e instanceof Error?e:Error(String(e))})}}if(c.workToRun.length>0){d.pendingWork.push({taskId:n,nodeIds:c.workToRun,graph:l}),t.updateGraphStructure(l.id,{nodes:l.nodes});let r=(0,o.schedulerTick)(l,e);for(let t of(console.log(`[schedules:poll] ${n} post-work scheduler: fn=${r.functionToRun.length} cond=${r.control.conditionalNodeIds.length}`),l=r.graph,r.functionToRun)){let r=l.nodes[t];if(r&&"function"===r.type)try{console.log(`[schedules:poll] ${n} executing post-work function "${t}"`),l=(await (0,s.executeNode)(l,t,e)).graph}catch(e){console.error(`[schedules:poll] ${n} post-work function "${t}" error:`,e),d.errors.push({graphId:n,error:e instanceof Error?e:Error(String(e))})}}}t.updateGraphStructure(l.id,{nodes:l.nodes});let p=Object.entries(l.nodes).map(([e,t])=>`${e}:${t.status}`).join(", ");console.log(`[schedules:poll] ${n} node states: ${p}`);let h=(0,r.isScheduleTickComplete)(l);if(console.log(`[schedules:poll] ${n} tick complete? ${h}`),h){let e=(0,r.completeScheduleTick)(l),o=e.schedule?.resetNodeIds.some(t=>e.nodes[t]?.status==="failed");if(e.schedule){let t=e.schedule.consecutiveFailures??0,r=o?t+1:0;e.schedule={...e.schedule,consecutiveFailures:r};let s=e.schedule.maxConsecutiveFailures;null!=s&&r>=s&&(e.schedule={...e.schedule,state:"paused"})}let s=t.getGraph(n);s?.schedule?.state==="stopped"&&(console.log(`[schedules:poll] ${n} schedule was stopped mid-tick, preserving stopped state`),e.schedule={...e.schedule,state:"stopped"}),t.updateGraphStructure(e.id,{nodes:e.nodes,schedule:e.schedule})}d.tickedGraphIds.push(n)}catch(e){console.error(`[schedules:poll] ${n} caught error:`,e),d.errors.push({graphId:n,error:e instanceof Error?e:Error(String(e))});try{let e=t.getGraph(n);if(e?.schedule?.tickInProgress){let o=(0,r.completeScheduleTick)(e);t.updateGraphStructure(o.id,{nodes:o.nodes,schedule:o.schedule}),console.log(`[schedules:poll] ${n} force-completed stuck tick`)}}catch{}}return d}async function d(e,t={}){let i=new n.GraphStore,a=i.getGraph(e);if(!a)return{fired:!1,graph:null,error:Error("Graph not found")};if(!a.schedule)return{fired:!1,graph:a,error:Error("No schedule on graph")};let u=(0,r.scheduleTickIfDue)(a);if(!u.tickFired)return{fired:!1,graph:u.graph};i.updateGraphStructure(u.graph.id,{nodes:u.graph.nodes,schedule:u.graph.schedule});let l=u.graph,c=0;for(;;){c++;let e=Object.entries(l.nodes).map(([e,t])=>`${e}:${t.status}`).join(", ");console.log(`[schedules:tick] loop ${c} nodes before: ${e}`);let n=(0,o.schedulerTick)(l,t);for(let e of(console.log(`[schedules:tick] loop ${c} fn=${n.functionToRun.length} work=${n.workToRun.length} cond=${n.control.conditionalNodeIds.length}`),n.functionToRun)){let r=l.nodes[e];r&&"function"===r.type&&(l=(await (0,s.executeNode)(l,e,t)).graph,console.log(`[schedules:tick] fn "${e}" → ${l.nodes[e]?.status}`))}for(let e of(n.control.conditionalNodeIds.length>0&&(l=n.graph,console.log(`[schedules:tick] applied conditional results: ${n.control.conditionalNodeIds.join(", ")}`)),n.workToRun))l=(await (0,s.executeNode)(l,e,t)).graph;let i=Object.entries(l.nodes).map(([e,t])=>`${e}:${t.status}`).join(", ");if(console.log(`[schedules:tick] loop ${c} nodes after: ${i}`),(0,r.isScheduleTickComplete)(l)){console.log(`[schedules:tick] tick complete after loop ${c}`);break}if(n.complete||!(n.workToRun.length>0||n.functionToRun.length>0))break}let p=(0,r.completeScheduleTick)(l);return i.updateGraphStructure(p.id,{nodes:p.nodes,schedule:p.schedule}),{fired:!0,graph:p}}e.s(["executeScheduleTick",()=>d,"getGraphsWithActiveSchedules",()=>i,"pollSchedules",()=>a])},82848,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_node:child_process_261e8bca._.js"].map(t=>e.l(t))).then(()=>t(74533)))}];
|
|
50
50
|
|
|
51
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
51
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__236c35bb._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[22734,(e,r,t)=>{r.exports=e.x("fs",()=>require("fs"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},42969,e=>{"use strict";function r(e,r){let t=e.prepare(`PRAGMA ${r}`).get();if(!t)return;let n=Object.values(t);return n.length>0?n[0]:void 0}function t(e,r){return e.prepare(`PRAGMA ${r}`).all()}function n(e,r){e.exec(`PRAGMA ${r}`)}function s(e,r){e.exec("BEGIN");try{let t=r();return e.exec("COMMIT"),t}catch(r){throw e.exec("ROLLBACK"),r}}function a(e,r){return(...t)=>{e.exec("BEGIN");try{let n=r(...t);return e.exec("COMMIT"),n}catch(r){throw e.exec("ROLLBACK"),r}}}e.s(["pragmaAll",()=>t,"pragmaGet",()=>r,"pragmaSet",()=>n,"transaction",()=>s,"transactionFn",()=>a])},48207,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__255b11f2._.js","server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js"].map(r=>e.l(r))).then(()=>r(65196)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__a1e62918._.js.map
|
|
@@ -10,6 +10,6 @@ If not done, message must be exactly one message that combines:
|
|
|
10
10
|
- a brief assessment of what is done vs. not done
|
|
11
11
|
- the concrete next steps for the team
|
|
12
12
|
|
|
13
|
-
Do not produce separate status and instruction messages.`;function a(){return async(a,n)=>{let i=n.schedule?.rootMessageId;if(!i)return{status:"failure",message:"No rootMessageId on graph schedule"};console.log(`[work-dispatch] Dispatching steer node "${a.title}" for graph ${n.id} (root: ${i})`);try{let{getMessageThread:a,getThreadStatusSnapshot:n,sweepStaleWorkingReactions:c}=await e.A(5617),l=await a(i);if(!l)return{status:"failure",message:`Thread not found for rootMessageId: ${i}`};await c(l.threadId);let d=await n({threadId:l.threadId,rootMessageId:i}),u=d.processes.filter(e=>"working"===e.status).length,h=(d.messages??[]).slice(-10).map(e=>{let s=e.participantId??e.role??"?",t=(e.content??"").slice(0,300);return`[${s}]: ${t}`}).join("\n");console.log(`[work-dispatch] Thread: active=${u}, msgs=${d.messages?.length??0}`);let g=["--- THREAD STATE ---",`Active agents: ${u}`,`Total messages: ${d.messages?.length??0}`,"\nRecent messages:",h,"--- END THREAD STATE ---\n\nAssess the progress and respond with the JSON object."].join("\n"),{runCliResponse:m}=await e.A(56795),p=function(e){switch(e){case"claude":case"gemini":case"ollama":case"codex":case"zai":return e;default:return"claude"}}(function(){try{let e=(0,t.join)((0,o.homedir)(),".agx","config.json");return JSON.parse((0,s.readFileSync)(e,"utf8")).defaultProvider??"claude"}catch{return"claude"}}());console.log(`[work-dispatch] Calling ${p} via runCliResponse (prompt length: ${g.length})...`);let f="";await m({provider:p,model:null,prompt:g,systemContext:r,onDelta:e=>{f+=e},onLog:(e,s)=>{console.log(`[work-dispatch] [${e}] ${s}`)}}),console.log(`[work-dispatch] Raw response: ${f.slice(0,500)}`);let w=function(e){let s=e.match(/\{[\s\S]*?"isDone"\s*:\s*(true|false)[\s\S]*?\}/);if(s)try{let e=JSON.parse(s[0]);return{isDone:!!e.isDone,message:String(e.message??"")}}catch{}return e.includes("[done]")?{isDone:!0,message:e}:{isDone:!1,message:e}}(f.trim());return console.log("[work-dispatch] Parsed result:",w),{status:"success",output:w}}catch(e){return console.error("[work-dispatch] Steer dispatch failed:",e),{status:"failure",message:e instanceof Error?e.message:String(e),error:e}}}}e.s(["createDispatchWork",()=>a])},5617,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]
|
|
13
|
+
Do not produce separate status and instruction messages.`;function a(){return async(a,n)=>{let i=n.schedule?.rootMessageId;if(!i)return{status:"failure",message:"No rootMessageId on graph schedule"};console.log(`[work-dispatch] Dispatching steer node "${a.title}" for graph ${n.id} (root: ${i})`);try{let{getMessageThread:a,getThreadStatusSnapshot:n,sweepStaleWorkingReactions:c}=await e.A(5617),l=await a(i);if(!l)return{status:"failure",message:`Thread not found for rootMessageId: ${i}`};await c(l.threadId);let d=await n({threadId:l.threadId,rootMessageId:i}),u=d.processes.filter(e=>"working"===e.status).length,h=(d.messages??[]).slice(-10).map(e=>{let s=e.participantId??e.role??"?",t=(e.content??"").slice(0,300);return`[${s}]: ${t}`}).join("\n");console.log(`[work-dispatch] Thread: active=${u}, msgs=${d.messages?.length??0}`);let g=["--- THREAD STATE ---",`Active agents: ${u}`,`Total messages: ${d.messages?.length??0}`,"\nRecent messages:",h,"--- END THREAD STATE ---\n\nAssess the progress and respond with the JSON object."].join("\n"),{runCliResponse:m}=await e.A(56795),p=function(e){switch(e){case"claude":case"gemini":case"ollama":case"codex":case"zai":return e;default:return"claude"}}(function(){try{let e=(0,t.join)((0,o.homedir)(),".agx","config.json");return JSON.parse((0,s.readFileSync)(e,"utf8")).defaultProvider??"claude"}catch{return"claude"}}());console.log(`[work-dispatch] Calling ${p} via runCliResponse (prompt length: ${g.length})...`);let f="";await m({provider:p,model:null,prompt:g,systemContext:r,onDelta:e=>{f+=e},onLog:(e,s)=>{console.log(`[work-dispatch] [${e}] ${s}`)}}),console.log(`[work-dispatch] Raw response: ${f.slice(0,500)}`);let w=function(e){let s=e.match(/\{[\s\S]*?"isDone"\s*:\s*(true|false)[\s\S]*?\}/);if(s)try{let e=JSON.parse(s[0]);return{isDone:!!e.isDone,message:String(e.message??"")}}catch{}return e.includes("[done]")?{isDone:!0,message:e}:{isDone:!1,message:e}}(f.trim());return console.log("[work-dispatch] Parsed result:",w),{status:"success",output:w}}catch(e){return console.error("[work-dispatch] Steer dispatch failed:",e),{status:"failure",message:e instanceof Error?e.message:String(e),error:e}}}}e.s(["createDispatchWork",()=>a])},5617,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__a1e62918._.js","server/chunks/lib_history-store_ts_74d1c060._.js"].map(s=>e.l(s))).then(()=>s(55248)))},56795,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__f168c6dc._.js"].map(s=>e.l(s))).then(()=>s(90107)))}];
|
|
14
14
|
|
|
15
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
15
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__dc542063._.js.map
|