cuelo 0.10.67 → 0.10.69
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 +24 -24
- 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/live/call/[callId]/route.js +6 -6
- package/.next/server/app/api/live/events/route.js +6 -6
- package/.next/server/app/api/live/interpret/route.js +6 -6
- package/.next/server/app/api/live/voices/route.js +1 -1
- 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 +12 -12
- 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 +24 -24
- package/.next/server/chunks/402.js +1 -1
- package/.next/server/chunks/6775.js +7 -4
- 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/app/{layout-79c4293271683449.js → layout-d9ccde470db63593.js} +1 -1
- package/.next/static/chunks/app/{page-1b05e8de5bdccdfe.js → page-77d30b36da899bd2.js} +13 -13
- package/.next/static/css/{91467f086b9437d1.css → 9d10110f0e99b5ec.css} +1 -1
- package/.next/trace +108 -108
- package/.next/trace-build +1 -1
- package/README.md +3 -2
- package/Tools/CUELO_Setup/files/native-runtime-patch.js +1 -1
- package/package.json +1 -1
- /package/.next/static/{JxNnkNMa4ccYb0wMfVATH → jzP8OH_sx-Lg230L5ANPF}/_buildManifest.js +0 -0
- /package/.next/static/{JxNnkNMa4ccYb0wMfVATH → jzP8OH_sx-Lg230L5ANPF}/_ssgManifest.js +0 -0
|
@@ -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-d9ccde470db63593.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/9d10110f0e99b5ec.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/9d10110f0e99b5ec.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){}})();"}}]]}],["$","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":"jzP8OH_sx-Lg230L5ANPF"}
|
|
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-d9ccde470db63593.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/9d10110f0e99b5ec.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/9d10110f0e99b5ec.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){}})();"}}]]}],["$","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":"jzP8OH_sx-Lg230L5ANPF"}
|
|
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":"jzP8OH_sx-Lg230L5ANPF"}
|
|
@@ -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-d9ccde470db63593.js"],"PwaRegistration"]
|
|
5
5
|
:HL["/_next/static/css/2f46e0db0d4a3aed.css","style"]
|
|
6
|
-
:HL["/_next/static/css/
|
|
6
|
+
:HL["/_next/static/css/9d10110f0e99b5ec.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/9d10110f0e99b5ec.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){}})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","children":[["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}],["$","$L4",null,{}]]}]]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"jzP8OH_sx-Lg230L5ANPF"}
|
|
@@ -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":"jzP8OH_sx-Lg230L5ANPF"}
|
|
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":"jzP8OH_sx-Lg230L5ANPF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
:HL["/_next/static/css/2f46e0db0d4a3aed.css","style"]
|
|
2
|
-
:HL["/_next/static/css/
|
|
2
|
+
:HL["/_next/static/css/9d10110f0e99b5ec.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":"jzP8OH_sx-Lg230L5ANPF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=1779,a.ids=[1779],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")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},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")},11746:a=>{a.exports=import("@oh-my-pi/pi-ai")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},18707:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/settings")},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")},22514:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/protocol")},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")},28315:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/skills")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31078:(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(94526),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/live/call/[callId]/route",pathname:"/api/live/call/[callId]",filename:"route",bundlePath:"app/api/live/call/[callId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/live/call/[callId]/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/live/call/[callId]/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)}})},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")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},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")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},45206:(a,b,c)=>{c.d(b,{Lk:()=>g,fV:()=>j});let d=["casual","polite","formal","haggling","urgent"],e=["male","female"],f=["20s","30s","40s","50s","60s"],g={profile:{},history:[]},h=(a,b)=>"string"==typeof b&&a.includes(b)?b:void 0;function i(a){return"string"!=typeof a?"":a.replace(/[<>]/g,"").replace(/\s+/g," ").trim().slice(0,300)}function j(a){if(!a||"object"!=typeof a)return g;let b=[];if(Array.isArray(a.history))for(let c of a.history){if(!c||"object"!=typeof c||"me"!==c.speaker&&"them"!==c.speaker)continue;let a=i(c.original),d=i(c.translation);(a||d)&&b.push({speaker:c.speaker,original:a,translation:d})}return{profile:function(a){if(!a||"object"!=typeof a)return{};let b={},c=h(d,a.mood),g=h(e,a.gender),i=h(f,a.age);return c&&(b.mood=c),g&&(b.gender=g),i&&(b.age=i),b}(a.profile),history:b.slice(-12)}}},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")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},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")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},74975:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VP:()=>l,n8:()=>k,vb:()=>j});var e=c(22514),f=c(60205),g=c(45206),h=a([e,f]);function i(){return globalThis.__interpreterCalls??=new Map,globalThis.__interpreterCalls}[e,f]=h.then?(await h)():h;let m={casual:'relaxed and friendly, like friends or people of a similar age chatting. Use casual everyday speech in both languages instead of stiff polite forms (Korean 반말 is fine; Vietnamese friendly pairs such as "anh"/"em" or "m\xecnh"/"bạn"). Do not invent slang.',polite:"polite and courteous, as with shop staff, drivers or strangers. Use the ordinary polite forms of each language.",formal:'formal and respectful, as in a business meeting or with officials. Use the most formal standard forms of each language (Korean 합니다체; Vietnamese "t\xf4i" with "anh", "chị", "\xf4ng" or "b\xe0").',haggling:"bargaining over a price. Keep the firm, friendly tone of the bargaining that was actually said, without adding banter, pleasantries or explanations, and keep every price, number and quantity exact.",urgent:"urgent: someone is ill, hurt, lost or in trouble. Interpret clearly and plainly without summarizing or leaving anything out, keep the urgency, and get symptoms, places, times and numbers exactly right."},n={male:"a man",female:"a woman"},o={"20s":"in their 20s","30s":"in their 30s","40s":"in their 40s","50s":"in their 50s","60s":"60 or older"},p={vi:!0,th:!0},q={vi:'Vietnamese: use paired kinship pronouns that fit both speakers\' gender and apparent age and the situation, and keep the pair once chosen. In casual and service settings never use "t\xf4i" (it sounds cold); keep it for formal business talk. Younger staff or service workers: the other person is "em", the user is "anh" (man) or "chị" (woman). Adult strangers about the user\'s age: address a man as "anh" and a woman as "chị", and the user refers to themself with the term that fits their own gender and relative age. Middle-aged or older drivers, vendors and workers: the other person is "ch\xfa" or "b\xe1c" (man) or "c\xf4" (woman), the user is "ch\xe1u". Keep "\xf4ng"/"b\xe0" for the grandparent generation. Use "bạn" only when nothing is known. Add polite particles naturally ("em ơi" to call staff, "ạ" at the end of requests). Understand both Northern and Southern speech.',th:'Thai: end polite sentences with the particle of the person speaking: "ครับ" for a man, "ค่ะ" for a woman\'s statements and "คะ" for her questions.',ja:"Japanese: use polite です/ます forms with strangers.",ko:'Korean: use polite 해요체 by default. Drop the other language\'s kinship pronouns and polite particles rather than translating them literally: "anh" or "em" said to the user is "you" (or left out), NEVER 오빠, 형 or 동생.'};async function j(a){let{answer:b,callId:c,headers:d}=await (0,f.zS)({sdp:a.sdp,instructions:function(a,b,c=g.Lk){let d=a.englishName,e=b.englishName,{profile:f,history:h}=c,i=[`You are a live interpreter between two people talking face to face: the user speaks ${d}, the other person speaks ${e}. They talk to each other through you; nobody is talking to you. You are an interpreter, not a participant: you have no opinions and nothing of your own to say.
|
|
1
|
+
"use strict";(()=>{var a={};a.id=1779,a.ids=[1779],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")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},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")},11746:a=>{a.exports=import("@oh-my-pi/pi-ai")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},18707:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/settings")},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")},22514:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/protocol")},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")},28315:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/skills")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31078:(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(94526),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/live/call/[callId]/route",pathname:"/api/live/call/[callId]",filename:"route",bundlePath:"app/api/live/call/[callId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/live/call/[callId]/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/live/call/[callId]/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)}})},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")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},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")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},45206:(a,b,c)=>{c.d(b,{Lk:()=>g,fV:()=>j});let d=["casual","polite","formal","haggling","urgent"],e=["male","female"],f=["20s","30s","40s","50s","60s"],g={profile:{},history:[]},h=(a,b)=>"string"==typeof b&&a.includes(b)?b:void 0;function i(a){return"string"!=typeof a?"":a.replace(/[<>]/g,"").replace(/\s+/g," ").trim().slice(0,300)}function j(a){if(!a||"object"!=typeof a)return g;let b=[];if(Array.isArray(a.history))for(let c of a.history){if(!c||"object"!=typeof c||"me"!==c.speaker&&"them"!==c.speaker)continue;let a=i(c.original),d=i(c.translation);(a||d)&&b.push({speaker:c.speaker,original:a,translation:d})}return{profile:function(a){if(!a||"object"!=typeof a)return{};let b={},c=h(d,a.mood),g=h(e,a.gender),i=h(f,a.age);return c&&(b.mood=c),g&&(b.gender=g),i&&(b.age=i),b}(a.profile),history:b.slice(-12)}}},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")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},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")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},74975:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VP:()=>m,n8:()=>l,vb:()=>k});var e=c(22514),f=c(60205),g=c(57522),h=c(45206),i=a([e,f,g]);function j(){return globalThis.__interpreterCalls??=new Map,globalThis.__interpreterCalls}[e,f,g]=i.then?(await i)():i;let n={casual:'relaxed and friendly, like friends or people of a similar age chatting. Use casual everyday speech in both languages instead of stiff polite forms (Korean 반말 is fine; Vietnamese friendly pairs such as "anh"/"em" or "m\xecnh"/"bạn"). Do not invent slang.',polite:"polite and courteous, as with shop staff, drivers or strangers. Use the ordinary polite forms of each language.",formal:'formal and respectful, as in a business meeting or with officials. Use the most formal standard forms of each language (Korean 합니다체; Vietnamese "t\xf4i" with "anh", "chị", "\xf4ng" or "b\xe0").',haggling:"bargaining over a price. Keep the firm, friendly tone of the bargaining that was actually said, without adding banter, pleasantries or explanations, and keep every price, number and quantity exact.",urgent:"urgent: someone is ill, hurt, lost or in trouble. Interpret clearly and plainly without summarizing or leaving anything out, keep the urgency, and get symptoms, places, times and numbers exactly right."},o={male:"a man",female:"a woman"},p={"20s":"in their 20s","30s":"in their 30s","40s":"in their 40s","50s":"in their 50s","60s":"60 or older"},q={vi:!0,th:!0},r={vi:'Vietnamese: use paired kinship pronouns that fit both speakers\' gender and apparent age and the situation, and keep the pair once chosen. In casual and service settings never use "t\xf4i" (it sounds cold); keep it for formal business talk. Younger staff or service workers: the other person is "em", the user is "anh" (man) or "chị" (woman). Adult strangers about the user\'s age: address a man as "anh" and a woman as "chị", and the user refers to themself with the term that fits their own gender and relative age. Middle-aged or older drivers, vendors and workers: the other person is "ch\xfa" or "b\xe1c" (man) or "c\xf4" (woman), the user is "ch\xe1u". Keep "\xf4ng"/"b\xe0" for the grandparent generation. Use "bạn" only when nothing is known. Add polite particles naturally ("em ơi" to call staff, "ạ" at the end of requests). Understand both Northern and Southern speech.',th:'Thai: end polite sentences with the particle of the person speaking: "ครับ" for a man, "ค่ะ" for a woman\'s statements and "คะ" for her questions.',ja:"Japanese: use polite です/ます forms with strangers.",ko:'Korean: use polite 해요체 by default. Drop the other language\'s kinship pronouns and polite particles rather than translating them literally: "anh" or "em" said to the user is "you" (or left out), NEVER 오빠, 형 or 동생.'};async function k(a){let{answer:b,callId:c,headers:d}=await (0,f.zS)({sdp:a.sdp,instructions:function(a,b,c=h.Lk,d="normal"){let e=a.englishName,f=b.englishName,{profile:i,history:j}=c,k=[`You are a live interpreter between two people talking face to face: the user speaks ${e}, the other person speaks ${f}. They talk to each other through you; nobody is talking to you. You are an interpreter, not a participant: you have no opinions and nothing of your own to say.
|
|
2
2
|
|
|
3
3
|
<critical>
|
|
4
|
-
- When you hear ${
|
|
4
|
+
- When you hear ${e}, say it in ${f}. When you hear ${f}, say it in ${e}. Speak only the interpretation, once, starting as soon as the meaning is clear. No preface ("he says", "she asks", "translation:"), no quotation framing, no closing words.
|
|
5
5
|
- Interpret the meaning, not word by word: say what the speaker means the way a native speaker would say it in this situation. Use the conversation so far to resolve omitted subjects, pronouns, and short replies such as "yes", "네" or "dạ", and keep names, items, prices and plans consistent across turns.
|
|
6
6
|
- When the speaker points to something already named in this conversation by its position or by a pointing word ("the first one", "the second", "that one", "the same", "첫 번째 걸로", "그거", "c\xe1i đầu ti\xean", "c\xe1i đ\xf3"), say the item's name instead, but only when exactly one item clearly fits: after "we have phở b\xf2 and phở g\xe0", "첫 번째 걸로 두 그릇 주세요" becomes "Cho anh hai t\xf4 phở b\xf2 nh\xe9" (with whatever pronouns are already in use), not "m\xf3n đầu ti\xean". If it could mean more than one item, or you are not sure, keep the pointing word as said.
|
|
7
7
|
- Supply only what the target language grammatically requires (an omitted subject or pronoun, a classifier, a natural polite ending) and the name of an item the speaker clearly pointed to. NEVER extrapolate, explain, add pleasantries that were not said, give your own answer or opinion, summarize, soften, correct facts, or finish a sentence the speaker abandoned. Keep exactly what was meant, without embellishment.
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
- If you hear your own previous interpretation again (speaker echo), stay silent. Fillers alone ("uh", "um", "음", "\xe0"), noise, unintelligible speech, or speech in neither language: stay silent.
|
|
10
10
|
- Keep grammatical person ("I" stays "I"), tone and politeness level. Keep names, numbers, prices, quantities and units exact, and say amounts the normal spoken way of the target language (Vietnamese "50k" is "năm mươi ngh\xecn đồng", or "năm mươi ng\xe0n đồng" in the South; 50,000 dong in Korean is "5만 동").
|
|
11
11
|
- Say nothing when the call starts; wait for the first utterance. There is no backend in this call: NEVER create a delegation. Context appended to the session is silent; NEVER speak it.
|
|
12
|
-
</critical>`],
|
|
13
|
-
${
|
|
14
|
-
</setting>`),
|
|
12
|
+
</critical>`],l=[];if(i.mood&&l.push(`The conversation is ${n[i.mood]} Match this tone in every interpretation.`),i.gender||i.age){let a=[i.gender?o[i.gender]:"a person",i.age?p[i.age]:""].filter(Boolean).join(" ");l.push(`The user (the ${e} speaker) is ${a}. Choose how the user refers to themself and addresses the other person to fit this.`)}for(let c of(!i.gender&&(q[a.code]||q[b.code])&&l.push('The user\'s gender is not given. Never guess it: take it from how the other person addresses the user (Vietnamese "anh" for a man, "chị" for a woman; Thai "ครับ" or "ค่ะ" in the user\'s own words), and until it is clear leave out the user\'s gendered self-reference where the language allows it ("Cho xin thực đơn với ạ").'),new Set([a.code,b.code]))){let a=r[c];a&&l.push(a)}if(l.length>0&&k.push(`<setting>
|
|
13
|
+
${l.join("\n")}
|
|
14
|
+
</setting>`),j.length>0){let a=j.map(a=>{let b="me"===a.speaker?`User (${e})`:`Other person (${f})`;return`${b}: ${a.original||"…"} → ${a.translation||"…"}`});k.push(`<conversation_so_far>
|
|
15
15
|
The call was reconnected. These turns were already interpreted; use them only to understand what follows. NEVER interpret, repeat or mention them.
|
|
16
16
|
${a.join("\n")}
|
|
17
|
-
</conversation_so_far>`)}return
|
|
17
|
+
</conversation_so_far>`)}let m=(0,g.Zm)(d);return m&&k.push(m),k.join("\n\n")}(a.mine,a.theirs,a.context,await (0,g.GO)()),voice:await (0,f.XW)(void 0),threadId:crypto.randomUUID()}),i={callId:c,sideband:void 0,state:"connecting",listeners:new Set,sendTail:Promise.resolve(),transcripts:{user:{text:"",final:!1},assistant:{text:"",final:!1}},lastTranscript:void 0,orphanTimer:void 0,closed:!1,turnIds:{user:void 0,assistant:void 0}};return i.sideband=await (0,f.RJ)(c,d,(a,b,c)=>{i.closed||function(a,b,c,d){switch("connecting"===a.state&&"error"!==b.type&&"delegation.created"!==b.type&&(0,f.kk)(a,"live"),b.type){case"input_transcript.added":case"output_transcript.added":{let d="input_transcript.added"===b.type?"user":"assistant",e=(0,f.qW)(a,d,b.item.text,!1,c);e&&(0,f._g)(a,{type:"transcript",role:d,text:e,final:!1});return}case"turn.done":{let d=(0,f.qW)(a,b.turn.role,b.turn.transcript,!0,c);d&&(0,f._g)(a,{type:"transcript",role:b.turn.role,text:d,final:!0});return}case"delegation.created":var g;g=b.item.id,a.sendTail=a.sendTail.then(()=>{a.closed||a.sideband.readyState!==WebSocket.OPEN||a.sideband.send(JSON.stringify((0,e.buildDelegationContextAppend)(g,"No backend exists in this interpreter call and nothing was run. Do not delegate. Do not mention this. Keep interpreting the next utterance.","commentary")))}).catch(b=>{console.warn(`[interpreter] delegation decline failed on ${a.callId}:`,b instanceof Error?b.message:String(b))});return;case"error":(0,f._g)(a,{type:"error",message:b.message}),(0,f.kk)(a,"error"),m(a.callId);return;case"unknown":d?.type==="turn.created"&&function(a,b){let c=b.turn;if(!c||"object"!=typeof c)return;let{id:d,role:e,transcript:g}=c;if("user"!==e&&"assistant"!==e||"string"!=typeof d)return;let h=a.turnIds[e];a.turnIds[e]=d;let i=a.transcripts[e];if(void 0===h||h===d||i.final||i.finalizedTurnIds?.has(h))return;let j="string"==typeof g?g.trim():"";if(!j||i.text===j||!i.text.endsWith(j))return;let k=i.text.slice(0,-j.length).trim();k&&(0,f._g)(a,{type:"transcript",role:e,text:k,final:!0}),a.transcripts[e]={text:j,final:!1,finalizedTurnIds:i.finalizedTurnIds},(0,f._g)(a,{type:"transcript",role:e,text:j,final:!1})}(a,d);return;default:return}}(i,a,b,c)},a=>{i.closed||((0,f._g)(i,{type:"error",message:a}),m(c))}),j().set(c,i),(0,f.Gt)(i,()=>void m(c)),{callId:c,sdp:b}}function l(a,b){let c=j().get(a);return!c||c.closed?null:(0,f.Ch)(c,b,()=>void m(a))}async function m(a){let b=j().get(a);return!!b&&(j().delete(a),!!b.closed||(b.closed=!0,clearTimeout(b.orphanTimer),(0,f.M7)(b),!0))}d()}catch(a){d(a)}})},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")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81677:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/voices")},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},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")},94526:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>j,dynamic:()=>k});var e=c(23211),f=c(66544),g=c(60205),h=c(74975),i=a([g,h]);[g,h]=i.then?(await i)():i;let k="force-dynamic";async function j(a,{params:b}){if(!(0,f.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});let{callId:c}=await b,d=decodeURIComponent(c);return await (0,g.t6)(d)||await (0,h.VP)(d)?new Response(null,{status:204}):e.NextResponse.json({error:"not-found"},{status:404})}d()}catch(a){d(a)}})},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")},96448:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/attestation")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,6429,6775],()=>b(b.s=31078));module.exports=c})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=6760,a.ids=[6760],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")},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")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},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")},11746:a=>{a.exports=import("@oh-my-pi/pi-ai")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},18707:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/settings")},19225:(a,b,c)=>{a.exports=c(44870)},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")},22514:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/protocol")},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")},28315:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/skills")},28354:a=>{a.exports=require("util")},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")},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")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},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")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},45206:(a,b,c)=>{c.d(b,{Lk:()=>g,fV:()=>j});let d=["casual","polite","formal","haggling","urgent"],e=["male","female"],f=["20s","30s","40s","50s","60s"],g={profile:{},history:[]},h=(a,b)=>"string"==typeof b&&a.includes(b)?b:void 0;function i(a){return"string"!=typeof a?"":a.replace(/[<>]/g,"").replace(/\s+/g," ").trim().slice(0,300)}function j(a){if(!a||"object"!=typeof a)return g;let b=[];if(Array.isArray(a.history))for(let c of a.history){if(!c||"object"!=typeof c||"me"!==c.speaker&&"them"!==c.speaker)continue;let a=i(c.original),d=i(c.translation);(a||d)&&b.push({speaker:c.speaker,original:a,translation:d})}return{profile:function(a){if(!a||"object"!=typeof a)return{};let b={},c=h(d,a.mood),g=h(e,a.gender),i=h(f,a.age);return c&&(b.mood=c),g&&(b.gender=g),i&&(b.age=i),b}(a.profile),history:b.slice(-12)}}},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")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},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")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},74975:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VP:()=>
|
|
1
|
+
"use strict";(()=>{var a={};a.id=6760,a.ids=[6760],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")},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")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},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")},11746:a=>{a.exports=import("@oh-my-pi/pi-ai")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},18707:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/settings")},19225:(a,b,c)=>{a.exports=c(44870)},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")},22514:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/protocol")},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")},28315:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/skills")},28354:a=>{a.exports=require("util")},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")},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")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},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")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},45206:(a,b,c)=>{c.d(b,{Lk:()=>g,fV:()=>j});let d=["casual","polite","formal","haggling","urgent"],e=["male","female"],f=["20s","30s","40s","50s","60s"],g={profile:{},history:[]},h=(a,b)=>"string"==typeof b&&a.includes(b)?b:void 0;function i(a){return"string"!=typeof a?"":a.replace(/[<>]/g,"").replace(/\s+/g," ").trim().slice(0,300)}function j(a){if(!a||"object"!=typeof a)return g;let b=[];if(Array.isArray(a.history))for(let c of a.history){if(!c||"object"!=typeof c||"me"!==c.speaker&&"them"!==c.speaker)continue;let a=i(c.original),d=i(c.translation);(a||d)&&b.push({speaker:c.speaker,original:a,translation:d})}return{profile:function(a){if(!a||"object"!=typeof a)return{};let b={},c=h(d,a.mood),g=h(e,a.gender),i=h(f,a.age);return c&&(b.mood=c),g&&(b.gender=g),i&&(b.age=i),b}(a.profile),history:b.slice(-12)}}},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")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},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")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},74975:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VP:()=>m,n8:()=>l,vb:()=>k});var e=c(22514),f=c(60205),g=c(57522),h=c(45206),i=a([e,f,g]);function j(){return globalThis.__interpreterCalls??=new Map,globalThis.__interpreterCalls}[e,f,g]=i.then?(await i)():i;let n={casual:'relaxed and friendly, like friends or people of a similar age chatting. Use casual everyday speech in both languages instead of stiff polite forms (Korean 반말 is fine; Vietnamese friendly pairs such as "anh"/"em" or "m\xecnh"/"bạn"). Do not invent slang.',polite:"polite and courteous, as with shop staff, drivers or strangers. Use the ordinary polite forms of each language.",formal:'formal and respectful, as in a business meeting or with officials. Use the most formal standard forms of each language (Korean 합니다체; Vietnamese "t\xf4i" with "anh", "chị", "\xf4ng" or "b\xe0").',haggling:"bargaining over a price. Keep the firm, friendly tone of the bargaining that was actually said, without adding banter, pleasantries or explanations, and keep every price, number and quantity exact.",urgent:"urgent: someone is ill, hurt, lost or in trouble. Interpret clearly and plainly without summarizing or leaving anything out, keep the urgency, and get symptoms, places, times and numbers exactly right."},o={male:"a man",female:"a woman"},p={"20s":"in their 20s","30s":"in their 30s","40s":"in their 40s","50s":"in their 50s","60s":"60 or older"},q={vi:!0,th:!0},r={vi:'Vietnamese: use paired kinship pronouns that fit both speakers\' gender and apparent age and the situation, and keep the pair once chosen. In casual and service settings never use "t\xf4i" (it sounds cold); keep it for formal business talk. Younger staff or service workers: the other person is "em", the user is "anh" (man) or "chị" (woman). Adult strangers about the user\'s age: address a man as "anh" and a woman as "chị", and the user refers to themself with the term that fits their own gender and relative age. Middle-aged or older drivers, vendors and workers: the other person is "ch\xfa" or "b\xe1c" (man) or "c\xf4" (woman), the user is "ch\xe1u". Keep "\xf4ng"/"b\xe0" for the grandparent generation. Use "bạn" only when nothing is known. Add polite particles naturally ("em ơi" to call staff, "ạ" at the end of requests). Understand both Northern and Southern speech.',th:'Thai: end polite sentences with the particle of the person speaking: "ครับ" for a man, "ค่ะ" for a woman\'s statements and "คะ" for her questions.',ja:"Japanese: use polite です/ます forms with strangers.",ko:'Korean: use polite 해요체 by default. Drop the other language\'s kinship pronouns and polite particles rather than translating them literally: "anh" or "em" said to the user is "you" (or left out), NEVER 오빠, 형 or 동생.'};async function k(a){let{answer:b,callId:c,headers:d}=await (0,f.zS)({sdp:a.sdp,instructions:function(a,b,c=h.Lk,d="normal"){let e=a.englishName,f=b.englishName,{profile:i,history:j}=c,k=[`You are a live interpreter between two people talking face to face: the user speaks ${e}, the other person speaks ${f}. They talk to each other through you; nobody is talking to you. You are an interpreter, not a participant: you have no opinions and nothing of your own to say.
|
|
2
2
|
|
|
3
3
|
<critical>
|
|
4
|
-
- When you hear ${
|
|
4
|
+
- When you hear ${e}, say it in ${f}. When you hear ${f}, say it in ${e}. Speak only the interpretation, once, starting as soon as the meaning is clear. No preface ("he says", "she asks", "translation:"), no quotation framing, no closing words.
|
|
5
5
|
- Interpret the meaning, not word by word: say what the speaker means the way a native speaker would say it in this situation. Use the conversation so far to resolve omitted subjects, pronouns, and short replies such as "yes", "네" or "dạ", and keep names, items, prices and plans consistent across turns.
|
|
6
6
|
- When the speaker points to something already named in this conversation by its position or by a pointing word ("the first one", "the second", "that one", "the same", "첫 번째 걸로", "그거", "c\xe1i đầu ti\xean", "c\xe1i đ\xf3"), say the item's name instead, but only when exactly one item clearly fits: after "we have phở b\xf2 and phở g\xe0", "첫 번째 걸로 두 그릇 주세요" becomes "Cho anh hai t\xf4 phở b\xf2 nh\xe9" (with whatever pronouns are already in use), not "m\xf3n đầu ti\xean". If it could mean more than one item, or you are not sure, keep the pointing word as said.
|
|
7
7
|
- Supply only what the target language grammatically requires (an omitted subject or pronoun, a classifier, a natural polite ending) and the name of an item the speaker clearly pointed to. NEVER extrapolate, explain, add pleasantries that were not said, give your own answer or opinion, summarize, soften, correct facts, or finish a sentence the speaker abandoned. Keep exactly what was meant, without embellishment.
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
- If you hear your own previous interpretation again (speaker echo), stay silent. Fillers alone ("uh", "um", "음", "\xe0"), noise, unintelligible speech, or speech in neither language: stay silent.
|
|
10
10
|
- Keep grammatical person ("I" stays "I"), tone and politeness level. Keep names, numbers, prices, quantities and units exact, and say amounts the normal spoken way of the target language (Vietnamese "50k" is "năm mươi ngh\xecn đồng", or "năm mươi ng\xe0n đồng" in the South; 50,000 dong in Korean is "5만 동").
|
|
11
11
|
- Say nothing when the call starts; wait for the first utterance. There is no backend in this call: NEVER create a delegation. Context appended to the session is silent; NEVER speak it.
|
|
12
|
-
</critical>`],
|
|
13
|
-
${
|
|
14
|
-
</setting>`),
|
|
12
|
+
</critical>`],l=[];if(i.mood&&l.push(`The conversation is ${n[i.mood]} Match this tone in every interpretation.`),i.gender||i.age){let a=[i.gender?o[i.gender]:"a person",i.age?p[i.age]:""].filter(Boolean).join(" ");l.push(`The user (the ${e} speaker) is ${a}. Choose how the user refers to themself and addresses the other person to fit this.`)}for(let c of(!i.gender&&(q[a.code]||q[b.code])&&l.push('The user\'s gender is not given. Never guess it: take it from how the other person addresses the user (Vietnamese "anh" for a man, "chị" for a woman; Thai "ครับ" or "ค่ะ" in the user\'s own words), and until it is clear leave out the user\'s gendered self-reference where the language allows it ("Cho xin thực đơn với ạ").'),new Set([a.code,b.code]))){let a=r[c];a&&l.push(a)}if(l.length>0&&k.push(`<setting>
|
|
13
|
+
${l.join("\n")}
|
|
14
|
+
</setting>`),j.length>0){let a=j.map(a=>{let b="me"===a.speaker?`User (${e})`:`Other person (${f})`;return`${b}: ${a.original||"…"} → ${a.translation||"…"}`});k.push(`<conversation_so_far>
|
|
15
15
|
The call was reconnected. These turns were already interpreted; use them only to understand what follows. NEVER interpret, repeat or mention them.
|
|
16
16
|
${a.join("\n")}
|
|
17
|
-
</conversation_so_far>`)}return
|
|
17
|
+
</conversation_so_far>`)}let m=(0,g.Zm)(d);return m&&k.push(m),k.join("\n\n")}(a.mine,a.theirs,a.context,await (0,g.GO)()),voice:await (0,f.XW)(void 0),threadId:crypto.randomUUID()}),i={callId:c,sideband:void 0,state:"connecting",listeners:new Set,sendTail:Promise.resolve(),transcripts:{user:{text:"",final:!1},assistant:{text:"",final:!1}},lastTranscript:void 0,orphanTimer:void 0,closed:!1,turnIds:{user:void 0,assistant:void 0}};return i.sideband=await (0,f.RJ)(c,d,(a,b,c)=>{i.closed||function(a,b,c,d){switch("connecting"===a.state&&"error"!==b.type&&"delegation.created"!==b.type&&(0,f.kk)(a,"live"),b.type){case"input_transcript.added":case"output_transcript.added":{let d="input_transcript.added"===b.type?"user":"assistant",e=(0,f.qW)(a,d,b.item.text,!1,c);e&&(0,f._g)(a,{type:"transcript",role:d,text:e,final:!1});return}case"turn.done":{let d=(0,f.qW)(a,b.turn.role,b.turn.transcript,!0,c);d&&(0,f._g)(a,{type:"transcript",role:b.turn.role,text:d,final:!0});return}case"delegation.created":var g;g=b.item.id,a.sendTail=a.sendTail.then(()=>{a.closed||a.sideband.readyState!==WebSocket.OPEN||a.sideband.send(JSON.stringify((0,e.buildDelegationContextAppend)(g,"No backend exists in this interpreter call and nothing was run. Do not delegate. Do not mention this. Keep interpreting the next utterance.","commentary")))}).catch(b=>{console.warn(`[interpreter] delegation decline failed on ${a.callId}:`,b instanceof Error?b.message:String(b))});return;case"error":(0,f._g)(a,{type:"error",message:b.message}),(0,f.kk)(a,"error"),m(a.callId);return;case"unknown":d?.type==="turn.created"&&function(a,b){let c=b.turn;if(!c||"object"!=typeof c)return;let{id:d,role:e,transcript:g}=c;if("user"!==e&&"assistant"!==e||"string"!=typeof d)return;let h=a.turnIds[e];a.turnIds[e]=d;let i=a.transcripts[e];if(void 0===h||h===d||i.final||i.finalizedTurnIds?.has(h))return;let j="string"==typeof g?g.trim():"";if(!j||i.text===j||!i.text.endsWith(j))return;let k=i.text.slice(0,-j.length).trim();k&&(0,f._g)(a,{type:"transcript",role:e,text:k,final:!0}),a.transcripts[e]={text:j,final:!1,finalizedTurnIds:i.finalizedTurnIds},(0,f._g)(a,{type:"transcript",role:e,text:j,final:!1})}(a,d);return;default:return}}(i,a,b,c)},a=>{i.closed||((0,f._g)(i,{type:"error",message:a}),m(c))}),j().set(c,i),(0,f.Gt)(i,()=>void m(c)),{callId:c,sdp:b}}function l(a,b){let c=j().get(a);return!c||c.closed?null:(0,f.Ch)(c,b,()=>void m(a))}async function m(a){let b=j().get(a);return!!b&&(j().delete(a),!!b.closed||(b.closed=!0,clearTimeout(b.orphanTimer),(0,f.M7)(b),!0))}d()}catch(a){d(a)}})},75199:a=>{a.exports=import("@oh-my-pi/pi-ai/utils/proxy")},76760:a=>{a.exports=require("node:path")},76799:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,dynamic:()=>j});var e=c(66544),f=c(60205),g=c(74975),h=a([f,g]);[f,g]=h.then?(await h)():h;let j="force-dynamic";function i(a){if(!(0,e.EN)(a))return new Response("Untrusted API request",{status:403});let b=new URL(a.url).searchParams.get("callId");if(!b)return new Response("bad-request",{status:400});let c=new TextEncoder,d=null,h=new ReadableStream({start(e){let h=a=>{try{e.enqueue(c.encode(`data: ${JSON.stringify(a)}
|
|
18
18
|
|
|
19
19
|
`))}catch{}};if(!(d=(0,f.P5)(b,h)??(0,g.n8)(b,h))){h({type:"error",message:"not-found"}),e.close();return}let i=setInterval(()=>{try{e.enqueue(c.encode(":\n\n"))}catch{}},3e4);a.signal?.addEventListener("abort",()=>{clearInterval(i),d?.(),d=null;try{e.close()}catch{}})},cancel(){d?.(),d=null}});return new Response(h,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-store",Connection:"keep-alive"}})}d()}catch(a){d(a)}})},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")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81677:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/voices")},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},86364:(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(76799),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/live/events/route",pathname:"/api/live/events",filename:"route",bundlePath:"app/api/live/events/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/live/events/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/live/events/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")},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")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},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")},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")},96448:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/attestation")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5948,402,3229,2240,6429,6775],()=>b(b.s=86364));module.exports=c})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=7154,a.ids=[7154],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")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},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")},11746:a=>{a.exports=import("@oh-my-pi/pi-ai")},12301:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>l,dynamic:()=>m});var e=c(23211),f=c(66544),g=c(60205),h=c(74975),i=c(24110),j=c(45206),k=a([g,h]);[g,h]=k.then?(await k)():k;let m="force-dynamic";async function l(a){let b,c,d;if(!(0,f.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});if(!(0,f.E2)(a))return e.NextResponse.json({error:"Content-Type must be application/json"},{status:415});let k="";try{let e=await a.json();e&&"object"==typeof e&&("sdp"in e&&"string"==typeof e.sdp&&(k=e.sdp),"mine"in e&&(b=e.mine),"theirs"in e&&(c=e.theirs),"context"in e&&(d=e.context))}catch{return e.NextResponse.json({error:"bad-request"},{status:400})}let l=(0,i.Uw)(b),m=(0,i.Uw)(c);if(!k.trim()||!l||!m||l.code===m.code)return e.NextResponse.json({error:"bad-request"},{status:400});try{let a=await (0,h.vb)({sdp:k,mine:l,theirs:m,context:(0,j.fV)(d)});return e.NextResponse.json(a,{headers:{"Cache-Control":"no-store"}})}catch(c){if(c instanceof g.p1)return e.NextResponse.json({error:c.kind,message:c.message},{status:c.status});let a=c instanceof Error?c.message:String(c),b=a.includes("OAuth")||a.includes("credential")||a.includes("401");return e.NextResponse.json({error:b?"live-auth":"live-upstream",message:a},{status:b?401:502})}}d()}catch(a){d(a)}})},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},18707:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/settings")},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")},22514:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/protocol")},23388:(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(12301),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/live/interpret/route",pathname:"/api/live/interpret",filename:"route",bundlePath:"app/api/live/interpret/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/live/interpret/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/live/interpret/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)}})},24110:(a,b,c)=>{c.d(b,{Uw:()=>e});let d=[{code:"ko",tag:"ko-KR",englishName:"Korean",nativeName:"한국어"},{code:"en",tag:"en-US",englishName:"English",nativeName:"English"},{code:"vi",tag:"vi-VN",englishName:"Vietnamese",nativeName:"Tiếng Việt"},{code:"ja",tag:"ja-JP",englishName:"Japanese",nativeName:"日本語"},{code:"th",tag:"th-TH",englishName:"Thai",nativeName:"ไทย"}];function e(a){return"string"==typeof a?d.find(b=>b.code===a):void 0}},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")},28315:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/skills")},28354:a=>{a.exports=require("util")},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")},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")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},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")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},45206:(a,b,c)=>{c.d(b,{Lk:()=>g,fV:()=>j});let d=["casual","polite","formal","haggling","urgent"],e=["male","female"],f=["20s","30s","40s","50s","60s"],g={profile:{},history:[]},h=(a,b)=>"string"==typeof b&&a.includes(b)?b:void 0;function i(a){return"string"!=typeof a?"":a.replace(/[<>]/g,"").replace(/\s+/g," ").trim().slice(0,300)}function j(a){if(!a||"object"!=typeof a)return g;let b=[];if(Array.isArray(a.history))for(let c of a.history){if(!c||"object"!=typeof c||"me"!==c.speaker&&"them"!==c.speaker)continue;let a=i(c.original),d=i(c.translation);(a||d)&&b.push({speaker:c.speaker,original:a,translation:d})}return{profile:function(a){if(!a||"object"!=typeof a)return{};let b={},c=h(d,a.mood),g=h(e,a.gender),i=h(f,a.age);return c&&(b.mood=c),g&&(b.gender=g),i&&(b.age=i),b}(a.profile),history:b.slice(-12)}}},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")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},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")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},74975:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VP:()=>l,n8:()=>k,vb:()=>j});var e=c(22514),f=c(60205),g=c(45206),h=a([e,f]);function i(){return globalThis.__interpreterCalls??=new Map,globalThis.__interpreterCalls}[e,f]=h.then?(await h)():h;let m={casual:'relaxed and friendly, like friends or people of a similar age chatting. Use casual everyday speech in both languages instead of stiff polite forms (Korean 반말 is fine; Vietnamese friendly pairs such as "anh"/"em" or "m\xecnh"/"bạn"). Do not invent slang.',polite:"polite and courteous, as with shop staff, drivers or strangers. Use the ordinary polite forms of each language.",formal:'formal and respectful, as in a business meeting or with officials. Use the most formal standard forms of each language (Korean 합니다체; Vietnamese "t\xf4i" with "anh", "chị", "\xf4ng" or "b\xe0").',haggling:"bargaining over a price. Keep the firm, friendly tone of the bargaining that was actually said, without adding banter, pleasantries or explanations, and keep every price, number and quantity exact.",urgent:"urgent: someone is ill, hurt, lost or in trouble. Interpret clearly and plainly without summarizing or leaving anything out, keep the urgency, and get symptoms, places, times and numbers exactly right."},n={male:"a man",female:"a woman"},o={"20s":"in their 20s","30s":"in their 30s","40s":"in their 40s","50s":"in their 50s","60s":"60 or older"},p={vi:!0,th:!0},q={vi:'Vietnamese: use paired kinship pronouns that fit both speakers\' gender and apparent age and the situation, and keep the pair once chosen. In casual and service settings never use "t\xf4i" (it sounds cold); keep it for formal business talk. Younger staff or service workers: the other person is "em", the user is "anh" (man) or "chị" (woman). Adult strangers about the user\'s age: address a man as "anh" and a woman as "chị", and the user refers to themself with the term that fits their own gender and relative age. Middle-aged or older drivers, vendors and workers: the other person is "ch\xfa" or "b\xe1c" (man) or "c\xf4" (woman), the user is "ch\xe1u". Keep "\xf4ng"/"b\xe0" for the grandparent generation. Use "bạn" only when nothing is known. Add polite particles naturally ("em ơi" to call staff, "ạ" at the end of requests). Understand both Northern and Southern speech.',th:'Thai: end polite sentences with the particle of the person speaking: "ครับ" for a man, "ค่ะ" for a woman\'s statements and "คะ" for her questions.',ja:"Japanese: use polite です/ます forms with strangers.",ko:'Korean: use polite 해요체 by default. Drop the other language\'s kinship pronouns and polite particles rather than translating them literally: "anh" or "em" said to the user is "you" (or left out), NEVER 오빠, 형 or 동생.'};async function j(a){let{answer:b,callId:c,headers:d}=await (0,f.zS)({sdp:a.sdp,instructions:function(a,b,c=g.Lk){let d=a.englishName,e=b.englishName,{profile:f,history:h}=c,i=[`You are a live interpreter between two people talking face to face: the user speaks ${d}, the other person speaks ${e}. They talk to each other through you; nobody is talking to you. You are an interpreter, not a participant: you have no opinions and nothing of your own to say.
|
|
1
|
+
"use strict";(()=>{var a={};a.id=7154,a.ids=[7154],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")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},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")},11746:a=>{a.exports=import("@oh-my-pi/pi-ai")},12301:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>l,dynamic:()=>m});var e=c(23211),f=c(66544),g=c(60205),h=c(74975),i=c(24110),j=c(45206),k=a([g,h]);[g,h]=k.then?(await k)():k;let m="force-dynamic";async function l(a){let b,c,d;if(!(0,f.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});if(!(0,f.E2)(a))return e.NextResponse.json({error:"Content-Type must be application/json"},{status:415});let k="";try{let e=await a.json();e&&"object"==typeof e&&("sdp"in e&&"string"==typeof e.sdp&&(k=e.sdp),"mine"in e&&(b=e.mine),"theirs"in e&&(c=e.theirs),"context"in e&&(d=e.context))}catch{return e.NextResponse.json({error:"bad-request"},{status:400})}let l=(0,i.Uw)(b),m=(0,i.Uw)(c);if(!k.trim()||!l||!m||l.code===m.code)return e.NextResponse.json({error:"bad-request"},{status:400});try{let a=await (0,h.vb)({sdp:k,mine:l,theirs:m,context:(0,j.fV)(d)});return e.NextResponse.json(a,{headers:{"Cache-Control":"no-store"}})}catch(c){if(c instanceof g.p1)return e.NextResponse.json({error:c.kind,message:c.message},{status:c.status});let a=c instanceof Error?c.message:String(c),b=a.includes("OAuth")||a.includes("credential")||a.includes("401");return e.NextResponse.json({error:b?"live-auth":"live-upstream",message:a},{status:b?401:502})}}d()}catch(a){d(a)}})},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},18707:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/settings")},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")},22514:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/protocol")},23388:(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(12301),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/live/interpret/route",pathname:"/api/live/interpret",filename:"route",bundlePath:"app/api/live/interpret/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/live/interpret/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/live/interpret/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)}})},24110:(a,b,c)=>{c.d(b,{Uw:()=>e});let d=[{code:"ko",tag:"ko-KR",englishName:"Korean",nativeName:"한국어"},{code:"en",tag:"en-US",englishName:"English",nativeName:"English"},{code:"vi",tag:"vi-VN",englishName:"Vietnamese",nativeName:"Tiếng Việt"},{code:"ja",tag:"ja-JP",englishName:"Japanese",nativeName:"日本語"},{code:"th",tag:"th-TH",englishName:"Thai",nativeName:"ไทย"}];function e(a){return"string"==typeof a?d.find(b=>b.code===a):void 0}},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")},28315:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/skills")},28354:a=>{a.exports=require("util")},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")},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")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},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")},45157:a=>{a.exports=import("@oh-my-pi/pi-catalog/wire/codex")},45206:(a,b,c)=>{c.d(b,{Lk:()=>g,fV:()=>j});let d=["casual","polite","formal","haggling","urgent"],e=["male","female"],f=["20s","30s","40s","50s","60s"],g={profile:{},history:[]},h=(a,b)=>"string"==typeof b&&a.includes(b)?b:void 0;function i(a){return"string"!=typeof a?"":a.replace(/[<>]/g,"").replace(/\s+/g," ").trim().slice(0,300)}function j(a){if(!a||"object"!=typeof a)return g;let b=[];if(Array.isArray(a.history))for(let c of a.history){if(!c||"object"!=typeof c||"me"!==c.speaker&&"them"!==c.speaker)continue;let a=i(c.original),d=i(c.translation);(a||d)&&b.push({speaker:c.speaker,original:a,translation:d})}return{profile:function(a){if(!a||"object"!=typeof a)return{};let b={},c=h(d,a.mood),g=h(e,a.gender),i=h(f,a.age);return c&&(b.mood=c),g&&(b.gender=g),i&&(b.age=i),b}(a.profile),history:b.slice(-12)}}},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")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},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")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},74975:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{VP:()=>m,n8:()=>l,vb:()=>k});var e=c(22514),f=c(60205),g=c(57522),h=c(45206),i=a([e,f,g]);function j(){return globalThis.__interpreterCalls??=new Map,globalThis.__interpreterCalls}[e,f,g]=i.then?(await i)():i;let n={casual:'relaxed and friendly, like friends or people of a similar age chatting. Use casual everyday speech in both languages instead of stiff polite forms (Korean 반말 is fine; Vietnamese friendly pairs such as "anh"/"em" or "m\xecnh"/"bạn"). Do not invent slang.',polite:"polite and courteous, as with shop staff, drivers or strangers. Use the ordinary polite forms of each language.",formal:'formal and respectful, as in a business meeting or with officials. Use the most formal standard forms of each language (Korean 합니다체; Vietnamese "t\xf4i" with "anh", "chị", "\xf4ng" or "b\xe0").',haggling:"bargaining over a price. Keep the firm, friendly tone of the bargaining that was actually said, without adding banter, pleasantries or explanations, and keep every price, number and quantity exact.",urgent:"urgent: someone is ill, hurt, lost or in trouble. Interpret clearly and plainly without summarizing or leaving anything out, keep the urgency, and get symptoms, places, times and numbers exactly right."},o={male:"a man",female:"a woman"},p={"20s":"in their 20s","30s":"in their 30s","40s":"in their 40s","50s":"in their 50s","60s":"60 or older"},q={vi:!0,th:!0},r={vi:'Vietnamese: use paired kinship pronouns that fit both speakers\' gender and apparent age and the situation, and keep the pair once chosen. In casual and service settings never use "t\xf4i" (it sounds cold); keep it for formal business talk. Younger staff or service workers: the other person is "em", the user is "anh" (man) or "chị" (woman). Adult strangers about the user\'s age: address a man as "anh" and a woman as "chị", and the user refers to themself with the term that fits their own gender and relative age. Middle-aged or older drivers, vendors and workers: the other person is "ch\xfa" or "b\xe1c" (man) or "c\xf4" (woman), the user is "ch\xe1u". Keep "\xf4ng"/"b\xe0" for the grandparent generation. Use "bạn" only when nothing is known. Add polite particles naturally ("em ơi" to call staff, "ạ" at the end of requests). Understand both Northern and Southern speech.',th:'Thai: end polite sentences with the particle of the person speaking: "ครับ" for a man, "ค่ะ" for a woman\'s statements and "คะ" for her questions.',ja:"Japanese: use polite です/ます forms with strangers.",ko:'Korean: use polite 해요체 by default. Drop the other language\'s kinship pronouns and polite particles rather than translating them literally: "anh" or "em" said to the user is "you" (or left out), NEVER 오빠, 형 or 동생.'};async function k(a){let{answer:b,callId:c,headers:d}=await (0,f.zS)({sdp:a.sdp,instructions:function(a,b,c=h.Lk,d="normal"){let e=a.englishName,f=b.englishName,{profile:i,history:j}=c,k=[`You are a live interpreter between two people talking face to face: the user speaks ${e}, the other person speaks ${f}. They talk to each other through you; nobody is talking to you. You are an interpreter, not a participant: you have no opinions and nothing of your own to say.
|
|
2
2
|
|
|
3
3
|
<critical>
|
|
4
|
-
- When you hear ${
|
|
4
|
+
- When you hear ${e}, say it in ${f}. When you hear ${f}, say it in ${e}. Speak only the interpretation, once, starting as soon as the meaning is clear. No preface ("he says", "she asks", "translation:"), no quotation framing, no closing words.
|
|
5
5
|
- Interpret the meaning, not word by word: say what the speaker means the way a native speaker would say it in this situation. Use the conversation so far to resolve omitted subjects, pronouns, and short replies such as "yes", "네" or "dạ", and keep names, items, prices and plans consistent across turns.
|
|
6
6
|
- When the speaker points to something already named in this conversation by its position or by a pointing word ("the first one", "the second", "that one", "the same", "첫 번째 걸로", "그거", "c\xe1i đầu ti\xean", "c\xe1i đ\xf3"), say the item's name instead, but only when exactly one item clearly fits: after "we have phở b\xf2 and phở g\xe0", "첫 번째 걸로 두 그릇 주세요" becomes "Cho anh hai t\xf4 phở b\xf2 nh\xe9" (with whatever pronouns are already in use), not "m\xf3n đầu ti\xean". If it could mean more than one item, or you are not sure, keep the pointing word as said.
|
|
7
7
|
- Supply only what the target language grammatically requires (an omitted subject or pronoun, a classifier, a natural polite ending) and the name of an item the speaker clearly pointed to. NEVER extrapolate, explain, add pleasantries that were not said, give your own answer or opinion, summarize, soften, correct facts, or finish a sentence the speaker abandoned. Keep exactly what was meant, without embellishment.
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
- If you hear your own previous interpretation again (speaker echo), stay silent. Fillers alone ("uh", "um", "음", "\xe0"), noise, unintelligible speech, or speech in neither language: stay silent.
|
|
10
10
|
- Keep grammatical person ("I" stays "I"), tone and politeness level. Keep names, numbers, prices, quantities and units exact, and say amounts the normal spoken way of the target language (Vietnamese "50k" is "năm mươi ngh\xecn đồng", or "năm mươi ng\xe0n đồng" in the South; 50,000 dong in Korean is "5만 동").
|
|
11
11
|
- Say nothing when the call starts; wait for the first utterance. There is no backend in this call: NEVER create a delegation. Context appended to the session is silent; NEVER speak it.
|
|
12
|
-
</critical>`],
|
|
13
|
-
${
|
|
14
|
-
</setting>`),
|
|
12
|
+
</critical>`],l=[];if(i.mood&&l.push(`The conversation is ${n[i.mood]} Match this tone in every interpretation.`),i.gender||i.age){let a=[i.gender?o[i.gender]:"a person",i.age?p[i.age]:""].filter(Boolean).join(" ");l.push(`The user (the ${e} speaker) is ${a}. Choose how the user refers to themself and addresses the other person to fit this.`)}for(let c of(!i.gender&&(q[a.code]||q[b.code])&&l.push('The user\'s gender is not given. Never guess it: take it from how the other person addresses the user (Vietnamese "anh" for a man, "chị" for a woman; Thai "ครับ" or "ค่ะ" in the user\'s own words), and until it is clear leave out the user\'s gendered self-reference where the language allows it ("Cho xin thực đơn với ạ").'),new Set([a.code,b.code]))){let a=r[c];a&&l.push(a)}if(l.length>0&&k.push(`<setting>
|
|
13
|
+
${l.join("\n")}
|
|
14
|
+
</setting>`),j.length>0){let a=j.map(a=>{let b="me"===a.speaker?`User (${e})`:`Other person (${f})`;return`${b}: ${a.original||"…"} → ${a.translation||"…"}`});k.push(`<conversation_so_far>
|
|
15
15
|
The call was reconnected. These turns were already interpreted; use them only to understand what follows. NEVER interpret, repeat or mention them.
|
|
16
16
|
${a.join("\n")}
|
|
17
|
-
</conversation_so_far>`)}return
|
|
17
|
+
</conversation_so_far>`)}let m=(0,g.Zm)(d);return m&&k.push(m),k.join("\n\n")}(a.mine,a.theirs,a.context,await (0,g.GO)()),voice:await (0,f.XW)(void 0),threadId:crypto.randomUUID()}),i={callId:c,sideband:void 0,state:"connecting",listeners:new Set,sendTail:Promise.resolve(),transcripts:{user:{text:"",final:!1},assistant:{text:"",final:!1}},lastTranscript:void 0,orphanTimer:void 0,closed:!1,turnIds:{user:void 0,assistant:void 0}};return i.sideband=await (0,f.RJ)(c,d,(a,b,c)=>{i.closed||function(a,b,c,d){switch("connecting"===a.state&&"error"!==b.type&&"delegation.created"!==b.type&&(0,f.kk)(a,"live"),b.type){case"input_transcript.added":case"output_transcript.added":{let d="input_transcript.added"===b.type?"user":"assistant",e=(0,f.qW)(a,d,b.item.text,!1,c);e&&(0,f._g)(a,{type:"transcript",role:d,text:e,final:!1});return}case"turn.done":{let d=(0,f.qW)(a,b.turn.role,b.turn.transcript,!0,c);d&&(0,f._g)(a,{type:"transcript",role:b.turn.role,text:d,final:!0});return}case"delegation.created":var g;g=b.item.id,a.sendTail=a.sendTail.then(()=>{a.closed||a.sideband.readyState!==WebSocket.OPEN||a.sideband.send(JSON.stringify((0,e.buildDelegationContextAppend)(g,"No backend exists in this interpreter call and nothing was run. Do not delegate. Do not mention this. Keep interpreting the next utterance.","commentary")))}).catch(b=>{console.warn(`[interpreter] delegation decline failed on ${a.callId}:`,b instanceof Error?b.message:String(b))});return;case"error":(0,f._g)(a,{type:"error",message:b.message}),(0,f.kk)(a,"error"),m(a.callId);return;case"unknown":d?.type==="turn.created"&&function(a,b){let c=b.turn;if(!c||"object"!=typeof c)return;let{id:d,role:e,transcript:g}=c;if("user"!==e&&"assistant"!==e||"string"!=typeof d)return;let h=a.turnIds[e];a.turnIds[e]=d;let i=a.transcripts[e];if(void 0===h||h===d||i.final||i.finalizedTurnIds?.has(h))return;let j="string"==typeof g?g.trim():"";if(!j||i.text===j||!i.text.endsWith(j))return;let k=i.text.slice(0,-j.length).trim();k&&(0,f._g)(a,{type:"transcript",role:e,text:k,final:!0}),a.transcripts[e]={text:j,final:!1,finalizedTurnIds:i.finalizedTurnIds},(0,f._g)(a,{type:"transcript",role:e,text:j,final:!1})}(a,d);return;default:return}}(i,a,b,c)},a=>{i.closed||((0,f._g)(i,{type:"error",message:a}),m(c))}),j().set(c,i),(0,f.Gt)(i,()=>void m(c)),{callId:c,sdp:b}}function l(a,b){let c=j().get(a);return!c||c.closed?null:(0,f.Ch)(c,b,()=>void m(a))}async function m(a){let b=j().get(a);return!!b&&(j().delete(a),!!b.closed||(b.closed=!0,clearTimeout(b.orphanTimer),(0,f.M7)(b),!0))}d()}catch(a){d(a)}})},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")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81677:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/voices")},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},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")},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")},96448:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/live/attestation")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,6429,6775],()=>b(b.s=23388));module.exports=c})();
|