cuelo 0.10.334 → 0.10.335
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +53 -53
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/attachments/[id]/transcription/route.js +1 -2
- package/.next/server/app/api/attachments/[id]/transcription/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/character-mode/route.js +1 -1
- package/.next/server/app/api/display-settings/route.js +1 -1
- package/.next/server/app/api/live/transcribe-secret/route.js +1 -1
- package/.next/server/app/api/model-roles/route.js +1 -1
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/route.js +2 -2
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/office-characters/[...path]/route.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/settings/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/theme/route.js +1 -1
- package/.next/server/app/api/updates/apply/route.js +2 -2
- package/.next/server/app/api/updates/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +3 -3
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/page.js +23 -23
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover.html +1 -1
- package/.next/server/app/recover.rsc +3 -3
- package/.next/server/app/recover.segments/_full.segment.rsc +3 -3
- package/.next/server/app/recover.segments/_head.segment.rsc +1 -1
- package/.next/server/app/recover.segments/_index.segment.rsc +3 -3
- package/.next/server/app/recover.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/recover.segments/recover/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/recover.segments/recover.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +53 -53
- package/.next/server/chunks/205.js +2 -2
- package/.next/server/chunks/2235.js +1 -1
- package/.next/server/chunks/402.js +1 -1
- package/.next/server/chunks/4831.js +1 -1
- package/.next/server/chunks/5228.js +1 -1
- package/.next/server/chunks/7738.js +1 -1
- package/.next/server/chunks/8685.js +3 -3
- package/.next/server/chunks/8741.js +1 -1
- package/.next/server/chunks/9110.js +1 -1
- package/.next/server/chunks/9467.js +3 -3
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{7664-5d1f14c5af34cc42.js → 6395-e40897941652e23e.js} +1 -1
- package/.next/static/chunks/app/{layout-1761e38b9ade9daa.js → layout-b434a5b93fea7293.js} +1 -1
- package/.next/static/chunks/app/page-51f1cc02f9acb0f1.js +78 -0
- package/.next/static/css/bd03a68f1e6e2cc8.css +1 -0
- package/.next/trace +113 -113
- package/.next/trace-build +1 -1
- package/README.md +7 -8
- package/Tools/CUELO_Setup/files/btw-server.js +1 -1
- package/Tools/CUELO_Setup/files/native-runtime-patch.js +1 -1
- package/Tools/CUELO_Setup/files/usage-server.js +55 -373
- package/Tools/OMP_Global_Config/agent/agents/maker.md +4 -4
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/argon-preflight/index.ts +16 -7
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/argon-preflight/plugin.json +6 -2
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/preflight-routing/index.ts +10 -12
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/preflight-routing/plugin.json +1 -1
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/recheck-hint/index.ts +311 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/recheck-hint/plugin.json +9 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/requirement-carry/index.ts +164 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/requirement-carry/plugin.json +9 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/requirement-carry/requirement-carry.ts +231 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/test-weakening-watch/detector.ts +239 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/test-weakening-watch/index.ts +148 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/test-weakening-watch/plugin.json +9 -0
- package/Tools/OMP_Global_Config/agent/extensions/ask-autoselect-guard.ts +4 -2
- package/Tools/OMP_Global_Config/agent/extensions/character-voice.ts +8 -74
- package/Tools/OMP_Global_Config/agent/extensions/cross-review.ts +12 -59
- package/Tools/OMP_Global_Config/agent/extensions/draft.ts +6 -7
- package/Tools/OMP_Global_Config/agent/extensions/helper-model-report-guard.ts +3 -6
- package/Tools/OMP_Global_Config/agent/extensions/korean-reply-guard.ts +1 -1
- package/Tools/OMP_Global_Config/agent/extensions/lib/cross-review.ts +62 -372
- package/Tools/OMP_Global_Config/agent/extensions/lib/interpreter.ts +7 -17
- package/Tools/OMP_Global_Config/agent/extensions/lib/model-routes.ts +3 -9
- package/Tools/OMP_Global_Config/agent/extensions/lib/preflight-check.ts +56 -173
- package/Tools/OMP_Global_Config/agent/extensions/lib/routing-ledger.ts +7 -10
- package/Tools/OMP_Global_Config/agent/extensions/lib/sandbox-policy.ts +3 -1
- package/Tools/OMP_Global_Config/agent/extensions/skim.ts +28 -34
- package/Tools/OMP_Global_Config/agent/extensions/slop-gate/review.ts +30 -70
- package/Tools/OMP_Global_Config/agent/extensions/slop-gate.ts +3 -62
- package/Tools/OMP_Global_Config/agent/rules/agent-workflow.md +0 -1
- package/Tools/OMP_Global_Config/agent/rules/cross-review-procedure.md +15 -4
- package/Tools/OMP_Global_Config/agent/rules/execution-detail.md +1 -1
- package/Tools/OMP_Global_Config/agent/rules/rule-enforcement.md +2 -2
- package/Tools/OMP_Global_Config/agent/rules/subagent.md +1 -1
- package/Tools/OMP_Global_Config/agent/rules/task-guard.md +1 -0
- package/Tools/OMP_Global_Config/agent/rules/writing-review-procedure.md +4 -7
- package/Tools/OMP_Global_Config/agent/sop/_writer.md +3 -3
- package/Tools/OMP_Global_Config/agent/tools/git-finalizer/index.ts +1 -1
- package/Tools/OMP_Global_Config/agent/tools/git-finalizer/integrate.ts +1 -1
- package/Tools/OMP_Global_Config/patches/apply-core-patch.mjs +54 -326
- package/install.mjs +1 -2
- package/package.json +1 -1
- package/public/audio/completion/voices.json +0 -198
- package/.next/static/chunks/app/page-f314a32264c7dc4a.js +0 -78
- package/.next/static/css/0a63a06c95307f6a.css +0 -1
- package/public/audio/completion/hikari/01.wav +0 -0
- package/public/audio/completion/hikari/02.wav +0 -0
- package/public/audio/completion/hikari/03.wav +0 -0
- package/public/audio/completion/hikari/04.wav +0 -0
- package/public/audio/completion/hikari/05.wav +0 -0
- package/public/audio/completion/hikari/06.wav +0 -0
- package/public/audio/completion/hikari/approval/01.wav +0 -0
- package/public/audio/completion/hikari/approval/02.wav +0 -0
- package/public/audio/completion/hikari/approval/03.wav +0 -0
- package/public/audio/completion/hikari/choice/01.wav +0 -0
- package/public/audio/completion/hikari/choice/02.wav +0 -0
- package/public/audio/completion/hikari/choice/03.wav +0 -0
- package/public/audio/completion/hikari/failed/01.wav +0 -0
- package/public/audio/completion/hikari/failed/02.wav +0 -0
- package/public/audio/completion/hikari/failed/03.wav +0 -0
- package/public/audio/completion/hikari/working/01.wav +0 -0
- package/public/audio/completion/hikari/working/02.wav +0 -0
- package/public/audio/completion/hikari/working/03.wav +0 -0
- package/public/avatars/hikari.webp +0 -0
- package/public/stickers/hikari/approval/01.webp +0 -0
- package/public/stickers/hikari/approval/02.webp +0 -0
- package/public/stickers/hikari/approval/03.webp +0 -0
- package/public/stickers/hikari/choice/01.webp +0 -0
- package/public/stickers/hikari/choice/02.webp +0 -0
- package/public/stickers/hikari/choice/03.webp +0 -0
- package/public/stickers/hikari/done/01.webp +0 -0
- package/public/stickers/hikari/done/02.webp +0 -0
- package/public/stickers/hikari/done/03.webp +0 -0
- package/public/stickers/hikari/failed/01.webp +0 -0
- package/public/stickers/hikari/failed/02.webp +0 -0
- package/public/stickers/hikari/failed/03.webp +0 -0
- package/public/stickers/hikari/working/01.webp +0 -0
- /package/.next/static/{0ggqpLXUpQu3M_9vm9Du- → 7vuLPlfGmWE4h_kZrZW6t}/_buildManifest.js +0 -0
- /package/.next/static/{0ggqpLXUpQu3M_9vm9Du- → 7vuLPlfGmWE4h_kZrZW6t}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" translate="no" class="notranslate" data-seed="true"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"/><link rel="stylesheet" href="/_next/static/css/2f46e0db0d4a3aed.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/0a63a06c95307f6a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-e9efe323dd135912.js"/><script src="/_next/static/chunks/4bd1b696-e356ca5ba0218e27.js" async=""></script><script src="/_next/static/chunks/3794-1b03b52e3112452e.js" async=""></script><script src="/_next/static/chunks/main-app-ca46ab75db2b4e4b.js" async=""></script><script src="/_next/static/chunks/app/layout-1761e38b9ade9daa.js" async=""></script><link rel="preload" href="/fonts/fonts.css" as="style"/><meta name="robots" content="noindex"/><meta name="google" content="notranslate"/><meta name="color-scheme" content="light dark"/><title>404: This page could not be found.</title><meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#16171b" media="(prefers-color-scheme: dark)"/><title>CUELO</title><meta name="description" content="Web view for the omp (oh-my-pi) coding agent"/><meta name="application-name" content="CUELO"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="CUELO"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><link rel="icon" href="/favicon.ico?bcf2d9369cb3cf33" type="image/x-icon" sizes="16x16"/><link rel="icon" href="/icons/icon-192.png" sizes="192x192" type="image/png"/><link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" sizes="180x180" type="image/png"/><link rel="stylesheet" href="/fonts/fonts.css"/><script>(function(){try{var s=localStorage,p=s.getItem("pi-theme");if(p!=="light"&&p!=="dark"&&p!=="auto"){p=s.getItem("omp-theme");if(p!=="light"&&p!=="dark")p="auto"}var m=p==="auto"?(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):p,r=document.documentElement;r.dataset.ompThemeMode=m;r.setAttribute("data-seed-color-mode",m==="dark"?"dark-only":"light-only");r.classList.toggle("dark",m==="dark");for(var i=r.style.length-1;i>=0;i--){var n=r.style.item(i);if(n.indexOf("--")===0&&n.indexOf("--omp-md-")!==0)r.style.removeProperty(n)}var c=JSON.parse(s.getItem("omp-theme-config")||"null"),v=c&&c.palettes&&c.palettes[m];if(v&&v.variables){Object.keys(v.variables).forEach(function(k){if(k.indexOf("--omp-md-")===0)r.style.setProperty(k,v.variables[k])});r.dataset.ompThemeName=v.name}}catch(e){}})();</script><script>(function(){try{var s=localStorage,r=document.documentElement;if(s.getItem("cuelo-look")!=="graphite")return;r.setAttribute("data-cuelo-look","graphite");var w=s.getItem("cuelo-look-wallpaper");if(w==="default"||w==="office")r.setAttribute("data-cuelo-wallpaper",w)}catch(e){}})()</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body translate="no" class="notranslate"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-e9efe323dd135912.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[57121,[],\"\"]\n3:I[74581,[],\"\"]\n4:I[57788,[\"7177\",\"static/chunks/app/layout-1761e38b9ade9daa.js\"],\"PwaRegistration\"]\n5:I[90484,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[90484,[],\"ViewportBoundary\"]\nb:I[90484,[],\"MetadataBoundary\"]\nd:I[27123,[],\"default\",1]\n:HL[\"/_next/static/css/2f46e0db0d4a3aed.css\",\"style\"]\n:HL[\"/_next/static/css/0a63a06c95307f6a.css\",\"style\"]\n:HL[\"/fonts/fonts.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/2f46e0db0d4a3aed.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/0a63a06c95307f6a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"translate\":\"no\",\"className\":\"notranslate\",\"data-seed\":true,\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"google\",\"content\":\"notranslate\"}],[\"$\",\"meta\",null,{\"name\":\"color-scheme\",\"content\":\"light dark\"}],[\"$\",\"link\",null,{\"rel\":\"stylesheet\",\"href\":\"/fonts/fonts.css\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var s=localStorage,p=s.getItem(\\\"pi-theme\\\");if(p!==\\\"light\\\"\u0026\u0026p!==\\\"dark\\\"\u0026\u0026p!==\\\"auto\\\"){p=s.getItem(\\\"omp-theme\\\");if(p!==\\\"light\\\"\u0026\u0026p!==\\\"dark\\\")p=\\\"auto\\\"}var m=p===\\\"auto\\\"?(window.matchMedia(\\\"(prefers-color-scheme: dark)\\\").matches?\\\"dark\\\":\\\"light\\\"):p,r=document.documentElement;r.dataset.ompThemeMode=m;r.setAttribute(\\\"data-seed-color-mode\\\",m===\\\"dark\\\"?\\\"dark-only\\\":\\\"light-only\\\");r.classList.toggle(\\\"dark\\\",m===\\\"dark\\\");for(var i=r.style.length-1;i\u003e=0;i--){var n=r.style.item(i);if(n.indexOf(\\\"--\\\")===0\u0026\u0026n.indexOf(\\\"--omp-md-\\\")!==0)r.style.removeProperty(n)}var c=JSON.parse(s.getItem(\\\"omp-theme-config\\\")||\\\"null\\\"),v=c\u0026\u0026c.palettes\u0026\u0026c.palettes[m];if(v\u0026\u0026v.variables){Object.keys(v.variables).forEach(function(k){if(k.indexOf(\\\"--omp-md-\\\")===0)r.style.setProperty(k,v.variables[k])});r.dataset.ompThemeName=v.name}}catch(e){}})();\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var s=localStorage,r=document.documentElement;if(s.getItem(\\\"cuelo-look\\\")!==\\\"graphite\\\")return;r.setAttribute(\\\"data-cuelo-look\\\",\\\"graphite\\\");var w=s.getItem(\\\"cuelo-look-wallpaper\\\");if(w===\\\"default\\\"||w===\\\"office\\\")r.setAttribute(\\\"data-cuelo-wallpaper\\\",w)}catch(e){}})()\"}}]]}],[\"$\",\"body\",null,{\"translate\":\"no\",\"className\":\"notranslate\",\"children\":[[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L4\",null,{}]]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$@8\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"0ggqpLXUpQu3M_9vm9Du-\"}\n"])</script><script>self.__next_f.push([1,"e:[]\n8:\"$We\"\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#ffffff\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"content\":\"#16171b\",\"media\":\"(prefers-color-scheme: dark)\"}]]\n"])</script><script>self.__next_f.push([1,"f:I[86869,[],\"IconMark\"]\n7:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"CUELO\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web view for the omp (oh-my-pi) coding agent\"}],[\"$\",\"meta\",\"2\",{\"name\":\"application-name\",\"content\":\"CUELO\"}],[\"$\",\"link\",\"3\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"4\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"5\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"CUELO\"}],[\"$\",\"meta\",\"7\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"8\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?bcf2d9369cb3cf33\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"link\",\"9\",{\"rel\":\"icon\",\"href\":\"/icons/icon-192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"}],[\"$\",\"link\",\"10\",{\"rel\":\"apple-touch-icon\",\"href\":\"/icons/apple-touch-icon.png\",\"sizes\":\"180x180\",\"type\":\"image/png\"}],[\"$\",\"$Lf\",\"11\",{}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html lang="en" translate="no" class="notranslate" data-seed="true"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"/><link rel="stylesheet" href="/_next/static/css/2f46e0db0d4a3aed.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/bd03a68f1e6e2cc8.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-e9efe323dd135912.js"/><script src="/_next/static/chunks/4bd1b696-e356ca5ba0218e27.js" async=""></script><script src="/_next/static/chunks/3794-1b03b52e3112452e.js" async=""></script><script src="/_next/static/chunks/main-app-ca46ab75db2b4e4b.js" async=""></script><script src="/_next/static/chunks/app/layout-b434a5b93fea7293.js" async=""></script><link rel="preload" href="/fonts/fonts.css" as="style"/><meta name="robots" content="noindex"/><meta name="google" content="notranslate"/><meta name="color-scheme" content="light dark"/><title>404: This page could not be found.</title><meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#16171b" media="(prefers-color-scheme: dark)"/><title>CUELO</title><meta name="description" content="Web view for the omp (oh-my-pi) coding agent"/><meta name="application-name" content="CUELO"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="CUELO"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><link rel="icon" href="/favicon.ico?bcf2d9369cb3cf33" type="image/x-icon" sizes="16x16"/><link rel="icon" href="/icons/icon-192.png" sizes="192x192" type="image/png"/><link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" sizes="180x180" type="image/png"/><link rel="stylesheet" href="/fonts/fonts.css"/><script>(function(){try{var s=localStorage,p=s.getItem("pi-theme");if(p!=="light"&&p!=="dark"&&p!=="auto"){p=s.getItem("omp-theme");if(p!=="light"&&p!=="dark")p="auto"}var m=p==="auto"?(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):p,r=document.documentElement;r.dataset.ompThemeMode=m;r.setAttribute("data-seed-color-mode",m==="dark"?"dark-only":"light-only");r.classList.toggle("dark",m==="dark");for(var i=r.style.length-1;i>=0;i--){var n=r.style.item(i);if(n.indexOf("--")===0&&n.indexOf("--omp-md-")!==0)r.style.removeProperty(n)}var c=JSON.parse(s.getItem("omp-theme-config")||"null"),v=c&&c.palettes&&c.palettes[m];if(v&&v.variables){Object.keys(v.variables).forEach(function(k){if(k.indexOf("--omp-md-")===0)r.style.setProperty(k,v.variables[k])});r.dataset.ompThemeName=v.name}}catch(e){}})();</script><script>(function(){try{var s=localStorage,r=document.documentElement;if(s.getItem("cuelo-look")!=="graphite")return;r.setAttribute("data-cuelo-look","graphite");var w=s.getItem("cuelo-look-wallpaper");if(w==="default"||w==="office")r.setAttribute("data-cuelo-wallpaper",w)}catch(e){}})()</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body translate="no" class="notranslate"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-e9efe323dd135912.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[57121,[],\"\"]\n3:I[74581,[],\"\"]\n4:I[57788,[\"7177\",\"static/chunks/app/layout-b434a5b93fea7293.js\"],\"PwaRegistration\"]\n5:I[90484,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[90484,[],\"ViewportBoundary\"]\nb:I[90484,[],\"MetadataBoundary\"]\nd:I[27123,[],\"default\",1]\n:HL[\"/_next/static/css/2f46e0db0d4a3aed.css\",\"style\"]\n:HL[\"/_next/static/css/bd03a68f1e6e2cc8.css\",\"style\"]\n:HL[\"/fonts/fonts.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/2f46e0db0d4a3aed.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/bd03a68f1e6e2cc8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"translate\":\"no\",\"className\":\"notranslate\",\"data-seed\":true,\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"google\",\"content\":\"notranslate\"}],[\"$\",\"meta\",null,{\"name\":\"color-scheme\",\"content\":\"light dark\"}],[\"$\",\"link\",null,{\"rel\":\"stylesheet\",\"href\":\"/fonts/fonts.css\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var s=localStorage,p=s.getItem(\\\"pi-theme\\\");if(p!==\\\"light\\\"\u0026\u0026p!==\\\"dark\\\"\u0026\u0026p!==\\\"auto\\\"){p=s.getItem(\\\"omp-theme\\\");if(p!==\\\"light\\\"\u0026\u0026p!==\\\"dark\\\")p=\\\"auto\\\"}var m=p===\\\"auto\\\"?(window.matchMedia(\\\"(prefers-color-scheme: dark)\\\").matches?\\\"dark\\\":\\\"light\\\"):p,r=document.documentElement;r.dataset.ompThemeMode=m;r.setAttribute(\\\"data-seed-color-mode\\\",m===\\\"dark\\\"?\\\"dark-only\\\":\\\"light-only\\\");r.classList.toggle(\\\"dark\\\",m===\\\"dark\\\");for(var i=r.style.length-1;i\u003e=0;i--){var n=r.style.item(i);if(n.indexOf(\\\"--\\\")===0\u0026\u0026n.indexOf(\\\"--omp-md-\\\")!==0)r.style.removeProperty(n)}var c=JSON.parse(s.getItem(\\\"omp-theme-config\\\")||\\\"null\\\"),v=c\u0026\u0026c.palettes\u0026\u0026c.palettes[m];if(v\u0026\u0026v.variables){Object.keys(v.variables).forEach(function(k){if(k.indexOf(\\\"--omp-md-\\\")===0)r.style.setProperty(k,v.variables[k])});r.dataset.ompThemeName=v.name}}catch(e){}})();\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var s=localStorage,r=document.documentElement;if(s.getItem(\\\"cuelo-look\\\")!==\\\"graphite\\\")return;r.setAttribute(\\\"data-cuelo-look\\\",\\\"graphite\\\");var w=s.getItem(\\\"cuelo-look-wallpaper\\\");if(w===\\\"default\\\"||w===\\\"office\\\")r.setAttribute(\\\"data-cuelo-wallpaper\\\",w)}catch(e){}})()\"}}]]}],[\"$\",\"body\",null,{\"translate\":\"no\",\"className\":\"notranslate\",\"children\":[[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L4\",null,{}]]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$@8\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"7vuLPlfGmWE4h_kZrZW6t\"}\n"])</script><script>self.__next_f.push([1,"e:[]\n8:\"$We\"\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#ffffff\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"content\":\"#16171b\",\"media\":\"(prefers-color-scheme: dark)\"}]]\n"])</script><script>self.__next_f.push([1,"f:I[86869,[],\"IconMark\"]\n7:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"CUELO\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web view for the omp (oh-my-pi) coding agent\"}],[\"$\",\"meta\",\"2\",{\"name\":\"application-name\",\"content\":\"CUELO\"}],[\"$\",\"link\",\"3\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"4\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"5\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"CUELO\"}],[\"$\",\"meta\",\"7\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"8\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?bcf2d9369cb3cf33\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"link\",\"9\",{\"rel\":\"icon\",\"href\":\"/icons/icon-192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"}],[\"$\",\"link\",\"10\",{\"rel\":\"apple-touch-icon\",\"href\":\"/icons/apple-touch-icon.png\",\"sizes\":\"180x180\",\"type\":\"image/png\"}],[\"$\",\"$Lf\",\"11\",{}]]\n"])</script></body></html>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[57121,[],""]
|
|
3
3
|
3:I[74581,[],""]
|
|
4
|
-
4:I[57788,["7177","static/chunks/app/layout-
|
|
4
|
+
4:I[57788,["7177","static/chunks/app/layout-b434a5b93fea7293.js"],"PwaRegistration"]
|
|
5
5
|
5:I[90484,[],"OutletBoundary"]
|
|
6
6
|
6:"$Sreact.suspense"
|
|
7
7
|
9:I[90484,[],"ViewportBoundary"]
|
|
8
8
|
b:I[90484,[],"MetadataBoundary"]
|
|
9
9
|
d:I[27123,[],"default",1]
|
|
10
10
|
:HL["/_next/static/css/2f46e0db0d4a3aed.css","style"]
|
|
11
|
-
:HL["/_next/static/css/
|
|
11
|
+
:HL["/_next/static/css/bd03a68f1e6e2cc8.css","style"]
|
|
12
12
|
:HL["/fonts/fonts.css","style"]
|
|
13
|
-
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2f46e0db0d4a3aed.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/
|
|
13
|
+
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2f46e0db0d4a3aed.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/bd03a68f1e6e2cc8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"notranslate","data-seed":true,"suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","meta",null,{"name":"color-scheme","content":"light dark"}],["$","link",null,{"rel":"stylesheet","href":"/fonts/fonts.css"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var s=localStorage,p=s.getItem(\"pi-theme\");if(p!==\"light\"&&p!==\"dark\"&&p!==\"auto\"){p=s.getItem(\"omp-theme\");if(p!==\"light\"&&p!==\"dark\")p=\"auto\"}var m=p===\"auto\"?(window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"):p,r=document.documentElement;r.dataset.ompThemeMode=m;r.setAttribute(\"data-seed-color-mode\",m===\"dark\"?\"dark-only\":\"light-only\");r.classList.toggle(\"dark\",m===\"dark\");for(var i=r.style.length-1;i>=0;i--){var n=r.style.item(i);if(n.indexOf(\"--\")===0&&n.indexOf(\"--omp-md-\")!==0)r.style.removeProperty(n)}var c=JSON.parse(s.getItem(\"omp-theme-config\")||\"null\"),v=c&&c.palettes&&c.palettes[m];if(v&&v.variables){Object.keys(v.variables).forEach(function(k){if(k.indexOf(\"--omp-md-\")===0)r.style.setProperty(k,v.variables[k])});r.dataset.ompThemeName=v.name}}catch(e){}})();"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var s=localStorage,r=document.documentElement;if(s.getItem(\"cuelo-look\")!==\"graphite\")return;r.setAttribute(\"data-cuelo-look\",\"graphite\");var w=s.getItem(\"cuelo-look-wallpaper\");if(w===\"default\"||w===\"office\")r.setAttribute(\"data-cuelo-wallpaper\",w)}catch(e){}})()"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","children":[["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L4",null,{}]]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,"$@8"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],null]}],false]],"m":"$undefined","G":["$d",[]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"7vuLPlfGmWE4h_kZrZW6t"}
|
|
14
14
|
e:[]
|
|
15
15
|
8:"$We"
|
|
16
16
|
a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#ffffff","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#16171b","media":"(prefers-color-scheme: dark)"}]]
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[57121,[],""]
|
|
3
3
|
3:I[74581,[],""]
|
|
4
|
-
4:I[57788,["7177","static/chunks/app/layout-
|
|
4
|
+
4:I[57788,["7177","static/chunks/app/layout-b434a5b93fea7293.js"],"PwaRegistration"]
|
|
5
5
|
5:I[90484,[],"OutletBoundary"]
|
|
6
6
|
6:"$Sreact.suspense"
|
|
7
7
|
9:I[90484,[],"ViewportBoundary"]
|
|
8
8
|
b:I[90484,[],"MetadataBoundary"]
|
|
9
9
|
d:I[27123,[],"default",1]
|
|
10
10
|
:HL["/_next/static/css/2f46e0db0d4a3aed.css","style"]
|
|
11
|
-
:HL["/_next/static/css/
|
|
11
|
+
:HL["/_next/static/css/bd03a68f1e6e2cc8.css","style"]
|
|
12
12
|
:HL["/fonts/fonts.css","style"]
|
|
13
|
-
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2f46e0db0d4a3aed.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/
|
|
13
|
+
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2f46e0db0d4a3aed.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/bd03a68f1e6e2cc8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"notranslate","data-seed":true,"suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","meta",null,{"name":"color-scheme","content":"light dark"}],["$","link",null,{"rel":"stylesheet","href":"/fonts/fonts.css"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var s=localStorage,p=s.getItem(\"pi-theme\");if(p!==\"light\"&&p!==\"dark\"&&p!==\"auto\"){p=s.getItem(\"omp-theme\");if(p!==\"light\"&&p!==\"dark\")p=\"auto\"}var m=p===\"auto\"?(window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"):p,r=document.documentElement;r.dataset.ompThemeMode=m;r.setAttribute(\"data-seed-color-mode\",m===\"dark\"?\"dark-only\":\"light-only\");r.classList.toggle(\"dark\",m===\"dark\");for(var i=r.style.length-1;i>=0;i--){var n=r.style.item(i);if(n.indexOf(\"--\")===0&&n.indexOf(\"--omp-md-\")!==0)r.style.removeProperty(n)}var c=JSON.parse(s.getItem(\"omp-theme-config\")||\"null\"),v=c&&c.palettes&&c.palettes[m];if(v&&v.variables){Object.keys(v.variables).forEach(function(k){if(k.indexOf(\"--omp-md-\")===0)r.style.setProperty(k,v.variables[k])});r.dataset.ompThemeName=v.name}}catch(e){}})();"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var s=localStorage,r=document.documentElement;if(s.getItem(\"cuelo-look\")!==\"graphite\")return;r.setAttribute(\"data-cuelo-look\",\"graphite\");var w=s.getItem(\"cuelo-look-wallpaper\");if(w===\"default\"||w===\"office\")r.setAttribute(\"data-cuelo-wallpaper\",w)}catch(e){}})()"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","children":[["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L4",null,{}]]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,"$@8"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],null]}],false]],"m":"$undefined","G":["$d",[]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"7vuLPlfGmWE4h_kZrZW6t"}
|
|
14
14
|
e:[]
|
|
15
15
|
8:"$We"
|
|
16
16
|
a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#ffffff","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#16171b","media":"(prefers-color-scheme: dark)"}]]
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
3:I[90484,[],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
5
|
5:I[86869,[],"IconMark"]
|
|
6
|
-
0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#ffffff","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#16171b","media":"(prefers-color-scheme: dark)"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"CUELO"}],["$","meta","1",{"name":"description","content":"Web view for the omp (oh-my-pi) coding agent"}],["$","meta","2",{"name":"application-name","content":"CUELO"}],["$","link","3",{"rel":"manifest","href":"/manifest.webmanifest"}],["$","meta","4",{"name":"format-detection","content":"telephone=no"}],["$","meta","5",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"CUELO"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","8",{"rel":"icon","href":"/favicon.ico?bcf2d9369cb3cf33","type":"image/x-icon","sizes":"16x16"}],["$","link","9",{"rel":"icon","href":"/icons/icon-192.png","sizes":"192x192","type":"image/png"}],["$","link","10",{"rel":"apple-touch-icon","href":"/icons/apple-touch-icon.png","sizes":"180x180","type":"image/png"}],["$","$L5","11",{}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
6
|
+
0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#ffffff","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#16171b","media":"(prefers-color-scheme: dark)"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"CUELO"}],["$","meta","1",{"name":"description","content":"Web view for the omp (oh-my-pi) coding agent"}],["$","meta","2",{"name":"application-name","content":"CUELO"}],["$","link","3",{"rel":"manifest","href":"/manifest.webmanifest"}],["$","meta","4",{"name":"format-detection","content":"telephone=no"}],["$","meta","5",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"CUELO"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","8",{"rel":"icon","href":"/favicon.ico?bcf2d9369cb3cf33","type":"image/x-icon","sizes":"16x16"}],["$","link","9",{"rel":"icon","href":"/icons/icon-192.png","sizes":"192x192","type":"image/png"}],["$","link","10",{"rel":"apple-touch-icon","href":"/icons/apple-touch-icon.png","sizes":"180x180","type":"image/png"}],["$","$L5","11",{}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"7vuLPlfGmWE4h_kZrZW6t"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[57121,[],""]
|
|
3
3
|
3:I[74581,[],""]
|
|
4
|
-
4:I[57788,["7177","static/chunks/app/layout-
|
|
4
|
+
4:I[57788,["7177","static/chunks/app/layout-b434a5b93fea7293.js"],"PwaRegistration"]
|
|
5
5
|
:HL["/_next/static/css/2f46e0db0d4a3aed.css","style"]
|
|
6
|
-
:HL["/_next/static/css/
|
|
6
|
+
:HL["/_next/static/css/bd03a68f1e6e2cc8.css","style"]
|
|
7
7
|
:HL["/fonts/fonts.css","style"]
|
|
8
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2f46e0db0d4a3aed.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/
|
|
8
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2f46e0db0d4a3aed.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/bd03a68f1e6e2cc8.css","precedence":"next"}]],["$","html",null,{"lang":"en","translate":"no","className":"notranslate","data-seed":true,"suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","meta",null,{"name":"color-scheme","content":"light dark"}],["$","link",null,{"rel":"stylesheet","href":"/fonts/fonts.css"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var s=localStorage,p=s.getItem(\"pi-theme\");if(p!==\"light\"&&p!==\"dark\"&&p!==\"auto\"){p=s.getItem(\"omp-theme\");if(p!==\"light\"&&p!==\"dark\")p=\"auto\"}var m=p===\"auto\"?(window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"):p,r=document.documentElement;r.dataset.ompThemeMode=m;r.setAttribute(\"data-seed-color-mode\",m===\"dark\"?\"dark-only\":\"light-only\");r.classList.toggle(\"dark\",m===\"dark\");for(var i=r.style.length-1;i>=0;i--){var n=r.style.item(i);if(n.indexOf(\"--\")===0&&n.indexOf(\"--omp-md-\")!==0)r.style.removeProperty(n)}var c=JSON.parse(s.getItem(\"omp-theme-config\")||\"null\"),v=c&&c.palettes&&c.palettes[m];if(v&&v.variables){Object.keys(v.variables).forEach(function(k){if(k.indexOf(\"--omp-md-\")===0)r.style.setProperty(k,v.variables[k])});r.dataset.ompThemeName=v.name}}catch(e){}})();"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var s=localStorage,r=document.documentElement;if(s.getItem(\"cuelo-look\")!==\"graphite\")return;r.setAttribute(\"data-cuelo-look\",\"graphite\");var w=s.getItem(\"cuelo-look-wallpaper\");if(w===\"default\"||w===\"office\")r.setAttribute(\"data-cuelo-wallpaper\",w)}catch(e){}})()"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","children":[["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}],["$","$L4",null,{}]]}]]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"7vuLPlfGmWE4h_kZrZW6t"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[90484,[],"OutletBoundary"]
|
|
3
3
|
3:"$Sreact.suspense"
|
|
4
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
4
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"7vuLPlfGmWE4h_kZrZW6t"}
|
|
5
5
|
4:null
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[57121,[],""]
|
|
3
3
|
3:I[74581,[],""]
|
|
4
4
|
4:[]
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"7vuLPlfGmWE4h_kZrZW6t"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
:HL["/_next/static/css/2f46e0db0d4a3aed.css","style"]
|
|
2
|
-
:HL["/_next/static/css/
|
|
2
|
+
:HL["/_next/static/css/bd03a68f1e6e2cc8.css","style"]
|
|
3
3
|
:HL["/fonts/fonts.css","style"]
|
|
4
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"
|
|
4
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"7vuLPlfGmWE4h_kZrZW6t"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=6450,a.ids=[6450],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1740:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/custom-tools")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3330:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/persisted-revive")},4327:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/system-prompt")},4937:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>p});var e=c(23211),f=c(16131),g=c(29021),h=c(80547),i=c(40402),j=c(11743),k=c(5908),l=c(38741),m=c(66544),n=c(4157),o=a([f,h,i,j,l]);async function p(a){let b;if(!(0,m.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});if(!(0,m.E2)(a))return e.NextResponse.json({error:"Content-Type must be application/json"},{status:415});let c=(0,n.mN)();if(c)return e.NextResponse.json({error:`CUELO update ${c.phase}`,code:"update_draining",accepted:!1,requestId:c.requestId},{status:503});let d=performance.now(),o=!1;try{let{cwd:c,...m}=await a.json();if(b="string"==typeof m.type?m.type:void 0,!c||"string"!=typeof c)return e.NextResponse.json({error:"cwd is required",..."prompt"===b?{code:"prompt_rejected",accepted:!1}:{}},{status:400});if(!(0,g.existsSync)(c))return e.NextResponse.json({error:`Directory does not exist: ${c}`,..."prompt"===b?{code:"prompt_rejected",accepted:!1}:{}},{status:400});let n=await (0,h.mc)();if(!(0,h.B7)(c,n))return e.NextResponse.json({error:"Access denied"},{status:403});let{provider:p,modelId:q,toolNames:r,thinkingLevel:s,oauthPosition:t,createRequestId:u,issue:v,autoWorktree:w,...x}=m;if(p&&!q||!p&&q)throw Error("provider and modelId must be provided together");let y=function(a){if(void 0===a)return;let b="string"==typeof a?(0,f.parseConfiguredThinkingLevel)(a):void 0;if(void 0===b)throw Error(`Invalid thinking level: ${String(a)}`);return b}(s),z=function(a){if(void 0!==a){if("number"!=typeof a||!Number.isSafeInteger(a)||a<0)throw Error(`Invalid oauthPosition: ${String(a)}`);return a}}(t);if(void 0!==z&&!(p&&q))throw Error("provider and modelId are required to select an account");let A=function(a){if(void 0!==a){if("string"!=typeof a||0===a.length||a.length>128)throw Error("Invalid createRequestId");return a}}(u);if(void 0!==w&&"boolean"!=typeof w)throw Error("autoWorktree must be boolean");if(p&&q){let{modelRegistry:a}=await (0,l.getOmpRuntime)(),b=await (0,l.findModelWithRecovery)(a,p,q,{forceDiscovery:!0});if(b.miss)throw Error((0,k.zX)(b.miss))}let{session:B,realSessionId:C,cwd:D,worktree:E}=await (0,j.WG)(A,c,{...r?{toolNames:r}:{},...p&&q?{initialModel:{provider:p,modelId:q}}:{},...y?{thinkingLevel:y}:{},...void 0!==z?{accountOauthPosition:z}:{}},{issue:v,autoWorktree:w});(0,h.wz)(D),(0,i.mD)();let F=await B.send({type:"get_state"}),G=performance.now();if("ensure_session"===x.type)return e.NextResponse.json({success:!0,sessionId:C,cwd:D,worktree:E,data:null,model:F.model?{provider:F.model.provider,modelId:F.model.id}:null,thinkingLevel:F.thinkingLevel,configuredThinkingLevel:F.configuredThinkingLevel},{headers:{"Server-Timing":`session_prepare;dur=${(G-d).toFixed(2)}`}});let H=await B.send(x);o="prompt"===x.type;let I=performance.now();return e.NextResponse.json({success:!0,sessionId:C,cwd:D,worktree:E,data:H,model:F.model?{provider:F.model.provider,modelId:F.model.id}:null,thinkingLevel:F.thinkingLevel,configuredThinkingLevel:F.configuredThinkingLevel},{headers:{"Server-Timing":`session_prepare;dur=${(G-d).toFixed(2)}, command_accept;dur=${(I-G).toFixed(2)}, request;dur=${(I-d).toFixed(2)}`}})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:String(a),..."prompt"===b&&!o?{code:"prompt_rejected",accepted:!1}:{}},{status:500})}}[f,h,i,j,l]=o.then?(await o)():o,d()}catch(a){d(a)}})},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},9015:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/plugins/loader")},9655:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/runtime-init")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},16131:a=>{a.exports=import("@oh-my-pi/pi-tui/thinking")},16647:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/builtin-names")},19819:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/goals/settings")},21820:a=>{a.exports=require("os")},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},25167:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-mode")},26854:a=>{a.exports=import("@oh-my-pi/pi-tui")},27071:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/parse")},28354:a=>{a.exports=require("util")},28518:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/utils")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30480:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/data")},31421:a=>{a.exports=require("node:child_process")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33594:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/available-commands")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},34722:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/settings")},37570:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/settings")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},42531:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/persisted-agents")},43696:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-subagents")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45511:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/helpers/parse")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},55511:a=>{a.exports=require("crypto")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},58837:a=>{a.exports=import("@oh-my-pi/pi-tui/media")},59895:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/builtin-registry")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63411:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-settings")},63833:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability")},65209:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/hook")},65942:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(4937),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/new/route",pathname:"/api/agent/new",filename:"route",bundlePath:"app/api/agent/new/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/agent/new/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/agent/new/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},66544:(a,b,c)=>{c.d(b,{E2:()=>k,EN:()=>j,e9:()=>i});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(){return[process.env.CUELO_HOSTNAME,...process.env.CUELO_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function h(a){try{return new URL(a).origin}catch{return null}}function i(a,b=g()){let c=a.headers.get("host"),h=c?f(c):null;return!!h&&(!!("localhost"===h||h.endsWith(".localhost")||(0,d.isIP)(h))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===h}))}function j(a,b=g()){return!!i(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!d)return!0;let e=(b=new URL(a.url),(c=a.headers.get("host"))?h(`${b.protocol}//${c}`):null);return null!==e&&h(d)===e}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},78772:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/settings")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A$:()=>o,B7:()=>p,Nw:()=>i.Nw,Ph:()=>r,mU:()=>s,mc:()=>n,uK:()=>m,wz:()=>i.wz});var e=c(29021),f=c(21820),g=c(33873),h=c.n(g),i=c(25252),j=c(82536),k=c(40402),l=a([k]);k=(l.then?(await l)():l)[0];let t=/^[a-zA-Z]:[\\/]/;function m(a){return t.test(a)||a.startsWith("\\\\")||a.startsWith("//")}async function n(){let a=Date.now(),b=globalThis.__ompAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,k.wb)(),d=new Set;for(let a of c)a.cwd&&d.add((0,i.Nw)(a.cwd)),a.projectRoot&&d.add((0,i.Nw)(a.projectRoot));try{for(let a of(0,e.readdirSync)((0,f.homedir)()))/^omp-cwd-\d{8}$/.test(a)&&d.add((0,i.Nw)(h().join((0,f.homedir)(),a)))}catch{}for(let a of(0,i.HM)())d.add(a);return globalThis.__ompAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function o(a,b){for(let c of b){let b=m(a)||m(c),d=b?h().win32:h(),e=b?"\\":h().sep,f=d.resolve(a),g=d.resolve(c),i=b?f.toLowerCase():f,j=b?g.toLowerCase():g,k=j.endsWith(e)?j:j+e;if(i===j||i.startsWith(k))return!0}return!1}function p(a,b){return(0,j.x)(a,b)}function q(a){return"string"==typeof a?.windows&&t.test(a.windows)&&"string"==typeof a.local&&h().posix.isAbsolute(a.local)}function r(a=(0,k.$M)()){let b=globalThis.__cueloLegacyPathMaps??=new Map,c=b.get(a);if(c)return c;let d=[];try{let b=JSON.parse((0,e.readFileSync)(h().join(a,"cuelo-legacy-paths.json"),"utf8"));Array.isArray(b?.prefixes)&&(d=b.prefixes.filter(q))}catch{}return b.set(a,d),d}function s(a,b){if(!b.length||!t.test(a))return a;let c=a=>h().win32.normalize(a).split("\\").filter(Boolean),d=c(a),e=d.map(a=>a.toLowerCase()),f=null;for(let a of b){let b=c(a.windows).map(a=>a.toLowerCase());b.length>e.length||f&&b.length<=f.length||b.every((a,b)=>a===e[b])&&(f={length:b.length,local:a.local})}return f?h().posix.join(f.local,...d.slice(f.length)):a}d()}catch(a){d(a)}})},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},82640:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/discovery/omp-extension-roots")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88692:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-resolver")},90431:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/async/job-manager")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},94285:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/acp-builtins")},94374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/extension-module")},96175:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-lifecycle")},96282:a=>{a.exports=import("@oh-my-pi/pi-tui/overlays/model-selector")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,7015,2235,2240,9467],()=>b(b.s=65942));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=6450,a.ids=[6450],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1740:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/custom-tools")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3330:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/persisted-revive")},4327:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/system-prompt")},4937:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>p});var e=c(23211),f=c(16131),g=c(29021),h=c(80547),i=c(40402),j=c(11743),k=c(5908),l=c(38741),m=c(66544),n=c(4157),o=a([f,h,i,j,l]);async function p(a){let b;if(!(0,m.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});if(!(0,m.E2)(a))return e.NextResponse.json({error:"Content-Type must be application/json"},{status:415});let c=(0,n.mN)();if(c)return e.NextResponse.json({error:`CUELO update ${c.phase}`,code:"update_draining",accepted:!1,requestId:c.requestId},{status:503});let d=performance.now(),o=!1;try{let{cwd:c,...m}=await a.json();if(b="string"==typeof m.type?m.type:void 0,!c||"string"!=typeof c)return e.NextResponse.json({error:"cwd is required",..."prompt"===b?{code:"prompt_rejected",accepted:!1}:{}},{status:400});if(!(0,g.existsSync)(c))return e.NextResponse.json({error:`Directory does not exist: ${c}`,..."prompt"===b?{code:"prompt_rejected",accepted:!1}:{}},{status:400});let n=await (0,h.mc)();if(!(0,h.B7)(c,n))return e.NextResponse.json({error:"Access denied"},{status:403});let{provider:p,modelId:q,toolNames:r,thinkingLevel:s,oauthPosition:t,createRequestId:u,issue:v,autoWorktree:w,...x}=m;if(p&&!q||!p&&q)throw Error("provider and modelId must be provided together");let y=function(a){if(void 0===a)return;let b="string"==typeof a?(0,f.parseConfiguredThinkingLevel)(a):void 0;if(void 0===b)throw Error(`Invalid thinking level: ${String(a)}`);return b}(s),z=function(a){if(void 0!==a){if("number"!=typeof a||!Number.isSafeInteger(a)||a<0)throw Error(`Invalid oauthPosition: ${String(a)}`);return a}}(t);if(void 0!==z&&!(p&&q))throw Error("provider and modelId are required to select an account");let A=function(a){if(void 0!==a){if("string"!=typeof a||0===a.length||a.length>128)throw Error("Invalid createRequestId");return a}}(u);if(void 0!==w&&"boolean"!=typeof w)throw Error("autoWorktree must be boolean");if(p&&q){let{modelRegistry:a}=await (0,l.getOmpRuntime)(),b=await (0,l.Ix)(a,p,q,{forceDiscovery:!0});if(b.miss)throw Error((0,k.zX)(b.miss))}let{session:B,realSessionId:C,cwd:D,worktree:E}=await (0,j.WG)(A,c,{...r?{toolNames:r}:{},...p&&q?{initialModel:{provider:p,modelId:q}}:{},...y?{thinkingLevel:y}:{},...void 0!==z?{accountOauthPosition:z}:{}},{issue:v,autoWorktree:w});(0,h.wz)(D),(0,i.mD)();let F=await B.send({type:"get_state"}),G=performance.now();if("ensure_session"===x.type)return e.NextResponse.json({success:!0,sessionId:C,cwd:D,worktree:E,data:null,model:F.model?{provider:F.model.provider,modelId:F.model.id}:null,thinkingLevel:F.thinkingLevel,configuredThinkingLevel:F.configuredThinkingLevel},{headers:{"Server-Timing":`session_prepare;dur=${(G-d).toFixed(2)}`}});let H=await B.send(x);o="prompt"===x.type;let I=performance.now();return e.NextResponse.json({success:!0,sessionId:C,cwd:D,worktree:E,data:H,model:F.model?{provider:F.model.provider,modelId:F.model.id}:null,thinkingLevel:F.thinkingLevel,configuredThinkingLevel:F.configuredThinkingLevel},{headers:{"Server-Timing":`session_prepare;dur=${(G-d).toFixed(2)}, command_accept;dur=${(I-G).toFixed(2)}, request;dur=${(I-d).toFixed(2)}`}})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:String(a),..."prompt"===b&&!o?{code:"prompt_rejected",accepted:!1}:{}},{status:500})}}[f,h,i,j,l]=o.then?(await o)():o,d()}catch(a){d(a)}})},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},9015:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/plugins/loader")},9655:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/runtime-init")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},16131:a=>{a.exports=import("@oh-my-pi/pi-tui/thinking")},16647:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/builtin-names")},19819:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/goals/settings")},21820:a=>{a.exports=require("os")},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},25167:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-mode")},26854:a=>{a.exports=import("@oh-my-pi/pi-tui")},27071:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/parse")},28354:a=>{a.exports=require("util")},28518:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/utils")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30480:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/data")},31421:a=>{a.exports=require("node:child_process")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33594:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/available-commands")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},34722:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/settings")},37570:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/settings")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},42531:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/persisted-agents")},43696:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-subagents")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45511:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/helpers/parse")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},55511:a=>{a.exports=require("crypto")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},58837:a=>{a.exports=import("@oh-my-pi/pi-tui/media")},59895:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/builtin-registry")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63411:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-settings")},63833:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability")},65209:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/hook")},65942:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(4937),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/new/route",pathname:"/api/agent/new",filename:"route",bundlePath:"app/api/agent/new/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/agent/new/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/agent/new/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},66544:(a,b,c)=>{c.d(b,{E2:()=>k,EN:()=>j,e9:()=>i});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(){return[process.env.CUELO_HOSTNAME,...process.env.CUELO_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function h(a){try{return new URL(a).origin}catch{return null}}function i(a,b=g()){let c=a.headers.get("host"),h=c?f(c):null;return!!h&&(!!("localhost"===h||h.endsWith(".localhost")||(0,d.isIP)(h))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===h}))}function j(a,b=g()){return!!i(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!d)return!0;let e=(b=new URL(a.url),(c=a.headers.get("host"))?h(`${b.protocol}//${c}`):null);return null!==e&&h(d)===e}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},78772:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/settings")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A$:()=>o,B7:()=>p,Nw:()=>i.Nw,Ph:()=>r,mU:()=>s,mc:()=>n,uK:()=>m,wz:()=>i.wz});var e=c(29021),f=c(21820),g=c(33873),h=c.n(g),i=c(25252),j=c(82536),k=c(40402),l=a([k]);k=(l.then?(await l)():l)[0];let t=/^[a-zA-Z]:[\\/]/;function m(a){return t.test(a)||a.startsWith("\\\\")||a.startsWith("//")}async function n(){let a=Date.now(),b=globalThis.__ompAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,k.wb)(),d=new Set;for(let a of c)a.cwd&&d.add((0,i.Nw)(a.cwd)),a.projectRoot&&d.add((0,i.Nw)(a.projectRoot));try{for(let a of(0,e.readdirSync)((0,f.homedir)()))/^omp-cwd-\d{8}$/.test(a)&&d.add((0,i.Nw)(h().join((0,f.homedir)(),a)))}catch{}for(let a of(0,i.HM)())d.add(a);return globalThis.__ompAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function o(a,b){for(let c of b){let b=m(a)||m(c),d=b?h().win32:h(),e=b?"\\":h().sep,f=d.resolve(a),g=d.resolve(c),i=b?f.toLowerCase():f,j=b?g.toLowerCase():g,k=j.endsWith(e)?j:j+e;if(i===j||i.startsWith(k))return!0}return!1}function p(a,b){return(0,j.x)(a,b)}function q(a){return"string"==typeof a?.windows&&t.test(a.windows)&&"string"==typeof a.local&&h().posix.isAbsolute(a.local)}function r(a=(0,k.$M)()){let b=globalThis.__cueloLegacyPathMaps??=new Map,c=b.get(a);if(c)return c;let d=[];try{let b=JSON.parse((0,e.readFileSync)(h().join(a,"cuelo-legacy-paths.json"),"utf8"));Array.isArray(b?.prefixes)&&(d=b.prefixes.filter(q))}catch{}return b.set(a,d),d}function s(a,b){if(!b.length||!t.test(a))return a;let c=a=>h().win32.normalize(a).split("\\").filter(Boolean),d=c(a),e=d.map(a=>a.toLowerCase()),f=null;for(let a of b){let b=c(a.windows).map(a=>a.toLowerCase());b.length>e.length||f&&b.length<=f.length||b.every((a,b)=>a===e[b])&&(f={length:b.length,local:a.local})}return f?h().posix.join(f.local,...d.slice(f.length)):a}d()}catch(a){d(a)}})},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},82640:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/discovery/omp-extension-roots")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88692:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-resolver")},90431:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/async/job-manager")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},94285:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/acp-builtins")},94374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/extension-module")},96175:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-lifecycle")},96282:a=>{a.exports=import("@oh-my-pi/pi-tui/overlays/model-selector")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,7015,2235,2240,9467],()=>b(b.s=65942));module.exports=c})();
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=5807,a.ids=[5807],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11746:a=>{a.exports=import("@oh-my-pi/pi-ai")},27427:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{bk:()=>h,eY:()=>i});var e=c(75199),f=c(45157),g=a([e,f]);[e,f]=g.then?(await g)():g;let i=15,j="openai-codex",k="audio/mpeg";async function h(a,b,d){let{getOmpRuntime:g}=await c.e(8741).then(c.bind(c,38741)),{authStorage:h}=await g();return(function({getAccess:a,fetch:b,baseUrl:c,timeoutMs:d=6e4}){return async(e,g,h)=>{let i;if(g!==k)throw Error(`Codex transcription takes only MP3 chunks, not ${g}`);let j=await a(h);if(!j?.accessToken)throw Error("No Codex OAuth credential is available");let l={Authorization:`Bearer ${j.accessToken}`,Accept:"application/json","User-Agent":`Codex Desktop/${f.CODEX_CLIENT_VERSION}`,[f.OPENAI_HEADERS.ORIGINATOR]:"Codex Desktop"},m=j.accountId??(0,f.getCodexAccountId)(j.accessToken);m&&(l[f.OPENAI_HEADERS.ACCOUNT_ID]=m),(0,f.applyCodexResidencyHeader)(l,j.accessToken);let n=new FormData;n.append("file",new File([e],"audio.mp3",{type:k}));let o=AbortSignal.timeout(d),p=await b(`${c}/transcribe`,{method:"POST",headers:l,body:n,signal:h?AbortSignal.any([h,o]):o});if(!p.ok)throw await p.body?.cancel(),Error(`Codex transcription failed (HTTP ${p.status})`);let q=await p.text();try{i=JSON.parse(q).text}catch{throw Error("Codex transcription returned a response that is not JSON")}if("string"!=typeof i)throw Error("Codex transcription response has no text");return i.trim()}})({getAccess:a=>h.oauth.access(j,void 0,{signal:a}),fetch:(0,e.wrapFetchForProxy)(fetch,j),baseUrl:f.CODEX_BASE_URL})(a,b,d)}d()}catch(a){d(a)}})},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},39379:a=>{a.exports=import("@oh-my-pi/pi-ai/error")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},48161:a=>{a.exports=require("node:os")},49974:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>m,POST:()=>n,dynamic:()=>p,runtime:()=>o});var e=c(23211),f=c(91524),g=c(27427),h=c(58824),i=c(2979),j=c(66544),k=a([f,g,h,i]);[f,g,h,i]=k.then?(await k)():k;let o="nodejs",p="force-dynamic";function l(a){if(a instanceof i.bO)switch(a.code){case"invalid_id":return e.NextResponse.json({code:a.code,error:"Invalid attachment id"},{status:400});case"not_found":return e.NextResponse.json({code:a.code,error:"Attachment not found"},{status:404});case"busy":return e.NextResponse.json({code:a.code,error:"Attachment is being cleaned up; try again"},{status:503})}return console.error("[attachments/transcription] unexpected failure",a),e.NextResponse.json({code:"internal",error:"Transcription failed unexpectedly"},{status:500})}async function m(a,{params:b}){if(!(0,j.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});let{id:c}=await b;try{return await (0,i.rE)(c,b=>(0,h.VF)(b,{resolveFfmpeg:h.hM,signal:a.signal}))}catch(a){return l(a)}}async function n(a,{params:b}){if(!(0,j.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});let{id:c}=await b,d=await (0,h.k3)(a);if(!d)return e.NextResponse.json({code:"invalid_body",error:"Body must be empty, { confirmed?: boolean } or { fallbackToken: string, approve: boolean }"},{status:400});try{return await (0,i.rE)(c,b=>(0,h.a2)(b,d,{resolveFfmpeg:h.hM,transcribe:f.Du,fallback:{transcribe:g.bk,chunkSeconds:g.eY},signal:a.signal}))}catch(a){return l(a)}}d()}catch(a){d(a)}})},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},58824:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VF:()=>C,a2:()=>D,hM:()=>p,k3:()=>E});var e=c(31421),f=c(77598),g=c(73024),h=c(51455),i=c(48161),j=c(76760),k=c(79046),l=c.n(k),m=c(91524),n=c(90876),o=a([m]);m=(o.then?(await o)():o)[0];let F=["-ac","1","-ar","16000","-c:a","libmp3lame","-b:a","32k"],G="audio/mpeg",H=/^part-\d{4}\.mp3$/;class I extends Error{constructor(a,b,c,d={}){super(b),this.code=a,this.status=c,this.details=d,this.name="AudioTranscriptionError"}}class J extends I{constructor(a){super(a.code,a.error,409,{completedParts:a.completedParts,parts:a.parts}),this.offer=a,this.name="AudioFallbackOfferError"}}let K=()=>new I("aborted","Transcription was cancelled",499),L=()=>new I("media_unreadable","The attachment has no readable audio stream",422),M=()=>new I("fallback_confirmation_expired","This fallback choice expired or was already used; nothing was sent. Start the transcription again.",409);async function p(){if(!l()||!(0,g.existsSync)(l()))throw new I("media_tool_unavailable","FFmpeg is not available on this server; reinstall CUELO to restore it",503);return l()}function q(a){return["-protocol_whitelist","file","-format_whitelist","mov,mp4,m4a,3gp,3g2,mj2,mp3,wav,ogg,flac,matroska,webm,aac,aiff","-i",`file:${a}`]}function r(a,b,c){if(c?.aborted)return Promise.reject(K());let{promise:d,resolve:f,reject:g}=Promise.withResolvers(),h=(0,e.spawn)(a,["-hide_banner","-nostdin","-v","error",...b],{stdio:["ignore","pipe","pipe"],windowsHide:!0,signal:c}),i="",j="";return h.stdout.setEncoding("utf8").on("data",a=>{i=(i+a).slice(-4096)}),h.stderr.setEncoding("utf8").on("data",a=>{j=(j+a).slice(-4096)}),h.on("error",()=>{void 0===h.pid&&g(c?.aborted?K():new I("media_tool_unavailable","FFmpeg could not be started",503))}),h.on("close",a=>c?.aborted?g(K()):0===a?f(i):void(console.warn(`[attachment-audio] ffmpeg exited with ${a}: ${j.trim()}`),g(L()))),d}async function s(a,b,c){let d=await r(a,[...q(b),"-map","0:a:0","-c","copy","-f","null","-progress","pipe:1","-nostats","-"],c),e=Number([...d.matchAll(/^out_time_us=(\d+)\s*$/gm)].at(-1)?.[1]);if(!Number.isFinite(e)||e<=0)throw L();return e/1e6}function t(a){if(!a.mimeType.toLowerCase().startsWith("audio/"))throw new I("not_audio","Only audio attachments can be transcribed",415)}let N="It splits fallback audio into 15-second MP3 chunks, which can increase request counts and account usage beyond the estimate. This endpoint is private and undocumented. A response included asset_ttl='30d'; actual retention and deletion policies remain unverified.",O=`If primary transcription fails, CUELO asks before sending the failing segment and remaining audio to ChatGPT/Codex using your existing sign-in. ${N}`,P=`Continuing sends the failed segment and remaining audio to ChatGPT/Codex using your existing sign-in. ${N}`;async function u(a,{resolveFfmpeg:b,signal:c}){let d,e,f,g;if(t(a),a.size<=n.E)return{durationSeconds:null,estimatedCalls:1,requiresConfirmation:!1,processing:"direct",notice:`The audio is sent as it is in one transcription request to the model service of the draft role. ${O}`};let h=await s(await b(),a.path,c),i=Math.ceil(h/600);return{durationSeconds:h,estimatedCalls:i,requiresConfirmation:!0,processing:"compress-and-split",notice:[`The audio is ${(d=Math.round(h),e=Math.floor(d/3600),f=Math.floor(d%3600/60),g=String(d%60).padStart(2,"0"),e>0?`${e}:${String(f).padStart(2,"0")}:${g}`:`${f}:${g}`)} long.`,`A compressed copy is split into ${i} part${1===i?"":"s"} of up to 10 minutes,`,`sent one after another as ${i} transcription request${1===i?"":"s"} billed to that model service's account.`,`Each request can take up to ${m.nA/6e4} minutes. The original file stays unchanged.`,O].join(" ")}}function v(){let a=globalThis;return a.__cueloAudioFallbackOffers??=new Map,a.__cueloAudioFallbackOffers}function w(a,b){let c=v(),d=c.get(a);d&&(!b||d===b)&&(clearTimeout(d.timer),c.delete(a))}async function x(a,b,c){let{signal:d}=c,e=await (0,h.mkdtemp)((0,j.join)(c.tmpRoot??(0,i.tmpdir)(),"cuelo-audio-chunks-"));try{let f=await c.resolveFfmpeg(),g=(0,j.join)(e,"chunk.mp3"),i=[];for(let c of a){let a=await s(f,c,d),e=Math.max(1,Math.ceil(a/b.chunkSeconds)),j=a/e,k=Array.from({length:e},(a,b)=>b*j),l=[];for(let[a,e]of k.entries()){if(d?.aborted)throw K();let i=a===k.length-1;await r(f,["-ss",String(e),...q(c),...i?[]:["-t",String(j)],"-map","0:a:0",...F,"-y",g],d);try{let a=await b.transcribe(await (0,h.readFile)(g),G,d);a.trim()&&l.push(a.trim())}catch(b){if(b instanceof I)throw b;throw Error(`chunk ${a+1} of ${k.length}: ${b instanceof Error?b.message:String(b)}`)}}i.push(l.join(" "))}return i}finally{await (0,h.rm)(e,{recursive:!0,force:!0,maxRetries:3})}}async function y(a,b,c,d,e){let{transcribe:g,fallback:i,signal:j}=d,k=(a,c)=>new I("transcription_failed",a,502,{completedParts:c,parts:b.length}),l=a=>a instanceof Error?a.message:String(a);if(e){let a;if(!i||e.parts!==b.length)throw M();let{failedIndex:c,primaryFailure:f}=e;try{a=await x(b.slice(c),i,d)}catch(a){if(j?.aborted||a instanceof I&&"aborted"===a.code)throw K();throw k(`${f}; fallback transcription failed: ${l(a)}`,c)}let g=[...e.texts,...a].filter(Boolean).join("\n\n");if(!g)throw k(`${f}; fallback transcription failed: transcription returned no text`,0);return{transcript:g,parts:b.length}}let n=[];for(let[e,o]of b.entries()){if(j?.aborted)throw K();let p=new Uint8Array(await (0,h.readFile)(o));try{n.push(await g(p,c,j))}catch(h){if(j?.aborted)throw K();let c=1===b.length?"":`part ${e+1} of ${b.length} failed: `,g=`${c}${l(h)}`;if(!i||h instanceof m.t4)throw k(g,e);try{await d.resolveFfmpeg()}catch(a){throw k(`${g}; fallback transcription failed: ${l(a)}`,e)}if(j?.aborted)throw K();throw new J(function(a,b){w(a.id);let c={...b,texts:[...b.texts],source:{...a},token:(0,f.randomBytes)(16).toString("hex"),expiresAt:Date.now()+18e5,timer:setTimeout(()=>w(a.id,c),18e5)};return c.timer.unref?.(),v().set(a.id,c),{code:"fallback_confirmation_required",error:b.primaryFailure,completedParts:b.failedIndex,parts:b.parts,fallbackToken:c.token,notice:P,expiresInSeconds:1800}}(a,{texts:n,failedIndex:e,parts:b.length,primaryFailure:g}))}}let o=n.filter(Boolean).join("\n\n");if(!o)throw k("transcription returned no text",0);return{transcript:o,parts:b.length}}async function z(a,b,c){let d=await b.resolveFfmpeg(),e=b.maxPartBytes??n.E,f=await (0,h.mkdtemp)((0,j.join)(b.tmpRoot??(0,i.tmpdir)(),"cuelo-audio-"));try{await r(d,[...q(a.path),"-map","0:a:0",...F,"-f","segment","-segment_time",String(600),"-reset_timestamps","1",(0,j.join)(f,"part-%04d.mp3")],b.signal);let g=(await (0,h.readdir)(f)).filter(a=>H.test(a)).sort().map(a=>(0,j.join)(f,a));if(0===g.length)throw L();for(let a of g)if((await (0,h.stat)(a)).size>e)throw new I("part_too_large","A converted part is larger than the transcription limit",500);return await y(a,g,G,b,c)}finally{await (0,h.rm)(f,{recursive:!0,force:!0,maxRetries:3})}}async function A(a,b){let c;t(a);let d=a.size>n.E,e=b.fallbackToken,f=void 0!==e;if(d&&!f&&!0!==b.confirmed)throw new I("confirmation_required","Large audio needs confirmation before it is transcribed",409);let g=(c=globalThis,c.__cueloAudioTranscriptions??=new Set,c.__cueloAudioTranscriptions);if(g.has(a.id))throw new I("in_progress","This attachment is already being transcribed",409);let h=f?function(a,b){let c=v().get(a.id);if(!c||c.token!==b||(w(a.id,c),c.source.path!==a.path||c.source.size!==a.size||c.source.mimeType!==a.mimeType||Date.now()>=c.expiresAt))throw M();return c}(a,e):null;f||w(a.id),g.add(a.id);try{return d?await z(a,b,h):await y(a,[a.path],a.mimeType,b,h)}finally{g.delete(a.id)}}function B(a){return a instanceof J?Response.json(a.offer,{status:a.status}):a instanceof I?Response.json({code:a.code,error:a.message,...a.details},{status:a.status}):(console.error("[attachment-audio] unexpected failure",a),Response.json({code:"internal",error:"Transcription failed unexpectedly"},{status:500}))}async function C(a,b){try{return Response.json(await u(a,b))}catch(a){return B(a)}}async function D(a,b,c){if("fallbackToken"in b&&!b.approve){var d,e;let c;return Response.json({discarded:(d=a.id,e=b.fallbackToken,!!(c=v().get(d))&&c.token===e&&(w(d,c),!0))})}let f="fallbackToken"in b?{fallbackToken:b.fallbackToken}:{confirmed:!0===b.confirmed};try{return Response.json(await A(a,{...c,...f}))}catch(b){if(!(b instanceof I)||"confirmation_required"!==b.code)return B(b);try{let d=await u(a,c);return Response.json({code:b.code,error:b.message,plan:d},{status:b.status})}catch(a){return B(a)}}}let Q=/^[0-9a-f]{32}$/;async function E(a){let b,c=await a.text();if(!c.trim())return{confirmed:!1};try{b=JSON.parse(c)}catch{return null}if(!b||"object"!=typeof b||Array.isArray(b))return null;let{confirmed:d,fallbackToken:e,approve:f}=b;return void 0!==e?"string"==typeof e&&Q.test(e)&&"boolean"==typeof f&&void 0===d?{fallbackToken:e,approve:f}:null:void 0!==f||void 0!==d&&"boolean"!=typeof d?null:{confirmed:!0===d}}d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75199:a=>{a.exports=import("@oh-my-pi/pi-ai/utils/proxy")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},79046:a=>{a.exports=require("ffmpeg-static")},85840:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(49974),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/attachments/[id]/transcription/route",pathname:"/api/attachments/[id]/transcription",filename:"route",bundlePath:"app/api/attachments/[id]/transcription/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/attachments/[id]/transcription/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/attachments/[id]/transcription/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},90876:(a,b,c)=>{c.d(b,{E:()=>d});let d=0xe00000},91524:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Du:()=>i,nA:()=>l,t4:()=>o});var e=c(39379),f=c(96282),g=c(90876),h=a([e,f]);[e,f]=h.then?(await h)():h;let j="google-vertex",k="gemini-4-argon",l=18e4,m={"google-generative-ai":!0,"google-vertex":!0};class n extends Error{}class o extends n{}let p=/finish reason:\s*(?:SAFETY|BLOCKLIST|PROHIBITED_CONTENT|SPII|IMAGE_SAFETY|IMAGE_PROHIBITED_CONTENT|IMAGE_RECITATION|RECITATION)\b/;async function i(a,b,d){let h,i,q;if(a.byteLength>g.E)throw Error(`audio exceeds the ${g.E/1024/1024} MB transcription limit`);let[{completeSimple:r},{getOmpRuntime:s}]=await Promise.all([Promise.resolve().then(c.bind(c,11746)),c.e(8741).then(c.bind(c,38741))]),{modelRegistry:t,settings:u}=await s(),v=((q=(0,f.parseModelString)(u.getModelRole("draft")?.trim()??""))?t.find(q.provider,q.id):void 0)??t.find(j,k);if(!v)throw Error(`${j}/${k} is not available`);let w=`${v.provider}/${v.id}`;if(!Object.hasOwn(m,v.api))throw Error(`${w} (${v.api}) cannot carry audio`);if(!v.input.includes("image"))throw Error(`${w} does not accept inline media`);let x=`${v.provider}/${v.id}`,y=await t.getApiKeyAndHeaders(v);if(!y.ok||!y.apiKey)throw Error(y.ok?`No credentials for ${x}`:y.error);let z=AbortSignal.timeout(l),A={messages:[{role:"user",content:[{type:"text",text:"Transcribe the speech in this audio file verbatim.\n- Keep the spoken language; do not translate or summarize.\n- Output only the transcript text: no heading, quotes, timestamps, or commentary.\n- If several people speak, start each speaker change on a new line.\n- If there is no intelligible speech, output exactly: [no speech]"},{type:"image",mimeType:b,data:Buffer.from(a).toString("base64")}],timestamp:Date.now()}]},B={apiKey:y.apiKey,headers:y.headers,maxTokens:32768,disableReasoning:!0,cacheRetention:"none",signal:d?AbortSignal.any([d,z]):z};for(let a=0;a<2;a+=1)try{return function(a){let b=a.content.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text).join("").trim();if("stop"!==a.stopReason&&"length"!==a.stopReason){let c=[a.errorMessage,b.slice(0,160)].filter(Boolean).join("; "),d=`transcription stopped: ${a.stopReason}${c?` (${c})`:""}`;throw(0,e.is)(a.errorId,e.Flag.ContentBlocked)||p.test(a.errorMessage??"")?new o(d):new n(d)}if(!b)throw Error("transcription returned no text");return"length"===a.stopReason?`${b}
|
|
2
|
-
[transcript truncated at the output limit]`:b}(await r(v,A,B))}catch(a){if(a instanceof o&&(h=a),!(a instanceof n)||B.signal.aborted)throw h??a;i=a}throw h??i}d()}catch(a){d(a)}})},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},96282:a=>{a.exports=import("@oh-my-pi/pi-tui/overlays/model-selector")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5270],()=>b(b.s=85840));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=5807,a.ids=[5807],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},27427:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{bk:()=>h,eY:()=>i});var e=c(75199),f=c(45157),g=a([e,f]);[e,f]=g.then?(await g)():g;let i=15,j="openai-codex",k="audio/mpeg";async function h(a,b,d){let{getOmpRuntime:g}=await c.e(8741).then(c.bind(c,38741)),{authStorage:h}=await g();return(function({getAccess:a,fetch:b,baseUrl:c,timeoutMs:d=6e4}){return async(e,g,h)=>{let i;if(g!==k)throw Error(`Codex transcription takes only MP3 chunks, not ${g}`);let j=await a(h);if(!j?.accessToken)throw Error("No Codex OAuth credential is available");let l={Authorization:`Bearer ${j.accessToken}`,Accept:"application/json","User-Agent":`Codex Desktop/${f.CODEX_CLIENT_VERSION}`,[f.OPENAI_HEADERS.ORIGINATOR]:"Codex Desktop"},m=j.accountId??(0,f.getCodexAccountId)(j.accessToken);m&&(l[f.OPENAI_HEADERS.ACCOUNT_ID]=m),(0,f.applyCodexResidencyHeader)(l,j.accessToken);let n=new FormData;n.append("file",new File([e],"audio.mp3",{type:k}));let o=AbortSignal.timeout(d),p=await b(`${c}/transcribe`,{method:"POST",headers:l,body:n,signal:h?AbortSignal.any([h,o]):o});if(!p.ok)throw await p.body?.cancel(),Error(`Codex transcription failed (HTTP ${p.status})`);let q=await p.text();try{i=JSON.parse(q).text}catch{throw Error("Codex transcription returned a response that is not JSON")}if("string"!=typeof i)throw Error("Codex transcription response has no text");return i.trim()}})({getAccess:a=>h.oauth.access(j,void 0,{signal:a}),fetch:(0,e.wrapFetchForProxy)(fetch,j),baseUrl:f.CODEX_BASE_URL})(a,b,d)}d()}catch(a){d(a)}})},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},48161:a=>{a.exports=require("node:os")},49974:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,POST:()=>m,dynamic:()=>o,runtime:()=>n});var e=c(23211),f=c(27427),g=c(58824),h=c(2979),i=c(66544),j=a([f,g,h]);[f,g,h]=j.then?(await j)():j;let n="nodejs",o="force-dynamic";function k(a){if(a instanceof h.bO)switch(a.code){case"invalid_id":return e.NextResponse.json({code:a.code,error:"Invalid attachment id"},{status:400});case"not_found":return e.NextResponse.json({code:a.code,error:"Attachment not found"},{status:404});case"busy":return e.NextResponse.json({code:a.code,error:"Attachment is being cleaned up; try again"},{status:503})}return console.error("[attachments/transcription] unexpected failure",a),e.NextResponse.json({code:"internal",error:"Transcription failed unexpectedly"},{status:500})}async function l(a,{params:b}){if(!(0,i.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});let{id:c}=await b;try{return await (0,h.rE)(c,b=>(0,g.VF)(b,{resolveFfmpeg:g.hM,signal:a.signal}))}catch(a){return k(a)}}async function m(a,{params:b}){if(!(0,i.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});let{id:c}=await b,d=await (0,g.k3)(a);if(!d)return e.NextResponse.json({code:"invalid_body",error:"Body must be empty, { confirmed?: boolean } or { fallbackToken: string, approve: boolean }"},{status:400});try{return await (0,h.rE)(c,b=>(0,g.a2)(b,d,{resolveFfmpeg:g.hM,transcribe:f.bk,signal:a.signal}))}catch(a){return k(a)}}d()}catch(a){d(a)}})},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},58824:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VF:()=>w,a2:()=>x,hM:()=>n,k3:()=>y});var e=c(31421),f=c(73024),g=c(51455),h=c(48161),i=c(76760),j=c(79046),k=c.n(j),l=c(27427),m=a([l]);l=(m.then?(await m)():m)[0];let z=["-ac","1","-ar","16000","-c:a","libmp3lame","-b:a","32k"];class A extends Error{constructor(a,b,c,d={}){super(b),this.code=a,this.status=c,this.details=d,this.name="AudioTranscriptionError"}}let B=()=>new A("aborted","Transcription was cancelled",499),C=()=>new A("media_unreadable","The attachment has no readable audio stream",422);async function n(){if(!k()||!(0,f.existsSync)(k()))throw new A("media_tool_unavailable","FFmpeg is not available on this server; reinstall CUELO to restore it",503);return k()}function o(a){return["-protocol_whitelist","file","-format_whitelist","mov,mp4,m4a,3gp,3g2,mj2,mp3,wav,ogg,flac,matroska,webm,aac,aiff","-i",`file:${a}`]}function p(a,b,c){if(c?.aborted)return Promise.reject(B());let{promise:d,resolve:f,reject:g}=Promise.withResolvers(),h=(0,e.spawn)(a,["-hide_banner","-nostdin","-v","error",...b],{stdio:["ignore","pipe","pipe"],windowsHide:!0,signal:c}),i="",j="";return h.stdout.setEncoding("utf8").on("data",a=>{i=(i+a).slice(-4096)}),h.stderr.setEncoding("utf8").on("data",a=>{j=(j+a).slice(-4096)}),h.on("error",()=>{void 0===h.pid&&g(c?.aborted?B():new A("media_tool_unavailable","FFmpeg could not be started",503))}),h.on("close",a=>c?.aborted?g(B()):0===a?f(i):void(console.warn(`[attachment-audio] ffmpeg exited with ${a}: ${j.trim()}`),g(C()))),d}async function q(a,b,c){let d=await p(a,[...o(b),"-map","0:a:0","-c","copy","-f","null","-progress","pipe:1","-nostats","-"],c),e=Number([...d.matchAll(/^out_time_us=(\d+)\s*$/gm)].at(-1)?.[1]);if(!Number.isFinite(e)||e<=0)throw C();return e/1e6}function r(a){if(!a.mimeType.toLowerCase().startsWith("audio/"))throw new A("not_audio","Only audio attachments can be transcribed",415)}async function s(a,{resolveFfmpeg:b,signal:c}){let d,e,f,g;r(a);let h=await q(await b(),a.path,c);return{durationSeconds:h,estimatedCalls:Math.ceil(h/l.eY),requiresConfirmation:!0,processing:"compress-and-split",notice:`The audio is ${d=Math.round(h),e=Math.floor(d/3600),f=Math.floor(d%3600/60),g=String(d%60).padStart(2,"0"),e>0?`${e}:${String(f).padStart(2,"0")}:${g}`:`${f}:${g}`} long. CUELO sends up to 15 seconds of MP3 audio per request to ChatGPT/Codex using your existing sign-in. This endpoint is private and undocumented. A response included asset_ttl='30d'; actual retention and deletion policies remain unverified.`}}async function t(a,b){let{signal:c}=b,d=await b.resolveFfmpeg(),e=await q(d,a.path,c),f=Math.ceil(e/l.eY),j=e/f,k=await (0,g.mkdtemp)((0,i.join)(b.tmpRoot??(0,h.tmpdir)(),"cuelo-audio-chunks-"));try{let e=(0,i.join)(k,"chunk.mp3"),h=[];for(let i=0;i<f;i++){if(c?.aborted)throw B();await p(d,["-ss",String(i*j),...o(a.path),...i+1===f?[]:["-t",String(j)],"-map","0:a:0",...z,"-y",e],c);let k=await (0,g.readFile)(e);if(c?.aborted)throw B();try{let a=(await b.transcribe(k,"audio/mpeg",c)).trim();if(c?.aborted)throw B();a&&h.push(a)}catch(b){if(c?.aborted)throw B();let a=b instanceof Error?b.message:String(b);throw new A("transcription_failed",`Part ${i+1} of ${f}: ${a}`,502,{completedParts:i,parts:f})}}let l=h.join("\n\n");if(!l)throw new A("transcription_failed","Transcription returned no text",502);return{transcript:l,parts:f}}finally{await (0,g.rm)(k,{recursive:!0,force:!0,maxRetries:3})}}async function u(a,b){let c;if(r(a),!0!==b.confirmed)throw new A("confirmation_required","Audio needs confirmation before it is transcribed",409);let d=(c=globalThis,c.__cueloAudioTranscriptions??=new Set,c.__cueloAudioTranscriptions);if(d.has(a.id))throw new A("in_progress","This attachment is already being transcribed",409);d.add(a.id);try{return await t(a,b)}finally{d.delete(a.id)}}function v(a){return a instanceof A?Response.json({code:a.code,error:a.message,...a.details},{status:a.status}):(console.error("[attachment-audio] unexpected failure",a),Response.json({code:"internal",error:"Transcription failed unexpectedly"},{status:500}))}async function w(a,b){try{return Response.json(await s(a,b))}catch(a){return v(a)}}async function x(a,b,c){if("fallbackToken"in b)return v(new A("fallback_confirmation_expired","This fallback choice expired; nothing was sent. Start the transcription again.",409));try{return Response.json(await u(a,{...c,confirmed:b.confirmed}))}catch(b){if(!(b instanceof A)||"confirmation_required"!==b.code)return v(b);try{let d=await s(a,c);return Response.json({code:b.code,error:b.message,plan:d},{status:b.status})}catch(a){return v(a)}}}let D=/^[0-9a-f]{32}$/;async function y(a){let b,c=await a.text();if(!c.trim())return{confirmed:!1};try{b=JSON.parse(c)}catch{return null}if(!b||"object"!=typeof b||Array.isArray(b))return null;let{confirmed:d,fallbackToken:e,approve:f}=b;return void 0!==e?"string"==typeof e&&D.test(e)&&"boolean"==typeof f&&void 0===d?{fallbackToken:e,approve:f}:null:void 0!==f||void 0!==d&&"boolean"!=typeof d?null:{confirmed:!0===d}}d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75199:a=>{a.exports=import("@oh-my-pi/pi-ai/utils/proxy")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},79046:a=>{a.exports=require("ffmpeg-static")},85840:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(49974),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/attachments/[id]/transcription/route",pathname:"/api/attachments/[id]/transcription",filename:"route",bundlePath:"app/api/attachments/[id]/transcription/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/attachments/[id]/transcription/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/attachments/[id]/transcription/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5270],()=>b(b.s=85840));module.exports=c})();
|