reflex-agent 0.13.5 → 0.14.0

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.
Files changed (187) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +101 -94
  3. package/.next/app-path-routes-manifest.json +8 -7
  4. package/.next/build-manifest.json +5 -5
  5. package/.next/prerender-manifest.json +7 -7
  6. package/.next/react-loadable-manifest.json +1 -1
  7. package/.next/server/app/_not-found/page.js +1 -1
  8. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/agents/[agentId]/page.js +2 -2
  10. package/.next/server/app/agents/[agentId]/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/api/agents/[agentId]/respond/route.js +1 -1
  12. package/.next/server/app/api/agents/[agentId]/respond/route_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/images/[rootId]/[file]/route_client-reference-manifest.js +1 -1
  14. package/.next/server/app/api/oauth/callback/route_client-reference-manifest.js +1 -1
  15. package/.next/server/app/api/oauth/start/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/roots/[id]/attachments/route_client-reference-manifest.js +1 -1
  17. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js +1 -1
  18. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js +1 -1
  20. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route_client-reference-manifest.js +1 -1
  21. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js +2 -2
  22. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route_client-reference-manifest.js +1 -1
  23. package/.next/server/app/api/roots/[id]/dashboard/route.js +1 -1
  24. package/.next/server/app/api/roots/[id]/dashboard/route_client-reference-manifest.js +1 -1
  25. package/.next/server/app/api/roots/[id]/suggestions/route.js +1 -1
  26. package/.next/server/app/api/roots/[id]/suggestions/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/utilities/[scope]/[id]/bundle.js/route_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/utilities/[scope]/[id]/host/route.js +1 -1
  29. package/.next/server/app/api/utilities/[scope]/[id]/host/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/utilities/[scope]/[id]/host-api.mjs/route_client-reference-manifest.js +1 -1
  31. package/.next/server/app/api/utilities/[scope]/[id]/host-ui.mjs/route.js +53 -1
  32. package/.next/server/app/api/utilities/[scope]/[id]/host-ui.mjs/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/api/utilities/[scope]/[id]/iframe/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/utilities/[scope]/[id]/style.css/route_client-reference-manifest.js +1 -1
  35. package/.next/server/app/api/utilities/install-archive/route.js +1 -0
  36. package/.next/server/app/api/utilities/install-archive/route.js.nft.json +1 -0
  37. package/.next/server/app/api/utilities/install-archive/route_client-reference-manifest.js +1 -0
  38. package/.next/server/app/audit/page.js +1 -1
  39. package/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  40. package/.next/server/app/onboarding/page.js +3 -3
  41. package/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  42. package/.next/server/app/page.js +2 -2
  43. package/.next/server/app/page.js.nft.json +1 -1
  44. package/.next/server/app/page_client-reference-manifest.js +1 -1
  45. package/.next/server/app/roots/[id]/chat/[topicId]/page.js +2 -2
  46. package/.next/server/app/roots/[id]/chat/[topicId]/page.js.nft.json +1 -1
  47. package/.next/server/app/roots/[id]/chat/[topicId]/page_client-reference-manifest.js +1 -1
  48. package/.next/server/app/roots/[id]/kb/[...slug]/page.js +2 -2
  49. package/.next/server/app/roots/[id]/kb/[...slug]/page.js.nft.json +1 -1
  50. package/.next/server/app/roots/[id]/kb/[...slug]/page_client-reference-manifest.js +1 -1
  51. package/.next/server/app/roots/[id]/memory/page.js +1 -1
  52. package/.next/server/app/roots/[id]/memory/page_client-reference-manifest.js +1 -1
  53. package/.next/server/app/roots/[id]/page.js +4 -4
  54. package/.next/server/app/roots/[id]/page.js.nft.json +1 -1
  55. package/.next/server/app/roots/[id]/page_client-reference-manifest.js +1 -1
  56. package/.next/server/app/roots/[id]/workflows/[wfId]/page.js +2 -2
  57. package/.next/server/app/roots/[id]/workflows/[wfId]/page.js.nft.json +1 -1
  58. package/.next/server/app/roots/[id]/workflows/[wfId]/page_client-reference-manifest.js +1 -1
  59. package/.next/server/app/roots/[id]/workflows/page.js +2 -2
  60. package/.next/server/app/roots/[id]/workflows/page.js.nft.json +1 -1
  61. package/.next/server/app/roots/[id]/workflows/page_client-reference-manifest.js +1 -1
  62. package/.next/server/app/roots/new/page.js +4 -4
  63. package/.next/server/app/roots/new/page_client-reference-manifest.js +1 -1
  64. package/.next/server/app/settings/page.js +5 -5
  65. package/.next/server/app/settings/page.js.nft.json +1 -1
  66. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  67. package/.next/server/app/share/[id]/file/page.js +2 -2
  68. package/.next/server/app/share/[id]/file/page_client-reference-manifest.js +1 -1
  69. package/.next/server/app/share/[id]/page.js +2 -2
  70. package/.next/server/app/share/[id]/page_client-reference-manifest.js +1 -1
  71. package/.next/server/app/utilities/[scope]/[id]/page.js +2 -2
  72. package/.next/server/app/utilities/[scope]/[id]/page.js.nft.json +1 -1
  73. package/.next/server/app/utilities/[scope]/[id]/page_client-reference-manifest.js +1 -1
  74. package/.next/server/app/utilities/page.js +2 -2
  75. package/.next/server/app/utilities/page_client-reference-manifest.js +1 -1
  76. package/.next/server/app-paths-manifest.json +8 -7
  77. package/.next/server/chunks/1105.js +1 -1
  78. package/.next/server/chunks/1358.js +1 -1
  79. package/.next/server/chunks/285.js +9 -6
  80. package/.next/server/chunks/3091.js +1 -0
  81. package/.next/server/chunks/3332.js +1 -1
  82. package/.next/server/chunks/3795.js +3 -0
  83. package/.next/server/chunks/{7564.js → 4299.js} +2 -2
  84. package/.next/server/chunks/4812.js +1 -1
  85. package/.next/server/chunks/6648.js +1 -0
  86. package/.next/server/chunks/7300.js +56 -4
  87. package/.next/server/chunks/7358.js +3 -0
  88. package/.next/server/chunks/9098.js +1 -1
  89. package/.next/server/chunks/969.js +1 -0
  90. package/.next/server/chunks/9809.js +1 -1
  91. package/.next/server/chunks/9861.js +57 -5
  92. package/.next/server/functions-config-manifest.json +5 -4
  93. package/.next/server/middleware-build-manifest.js +1 -1
  94. package/.next/server/middleware-manifest.json +5 -5
  95. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  96. package/.next/server/pages/500.html +1 -1
  97. package/.next/server/server-reference-manifest.js +1 -1
  98. package/.next/server/server-reference-manifest.json +1 -1
  99. package/.next/static/1y4wPze4yO8DprxGKwSXQ/_buildManifest.js +1 -0
  100. package/.next/static/chunks/2608-755e5d9ca79c19dc.js +1 -0
  101. package/.next/static/chunks/4108.17cd7704e88bcb32.js +1 -0
  102. package/.next/static/chunks/4442-79daa48fe7845771.js +1 -0
  103. package/.next/static/chunks/6226-819ec17660994a7d.js +1 -0
  104. package/.next/static/chunks/7922-9a16eb68adcc7498.js +1 -0
  105. package/.next/static/chunks/9624-7dc547ab202a1d82.js +1 -0
  106. package/.next/static/chunks/app/api/agents/[agentId]/respond/route-5d0cd3b754198853.js +1 -0
  107. package/.next/static/chunks/app/api/images/[rootId]/[file]/route-5d0cd3b754198853.js +1 -0
  108. package/.next/static/chunks/app/api/oauth/callback/route-5d0cd3b754198853.js +1 -0
  109. package/.next/static/chunks/app/api/oauth/start/route-5d0cd3b754198853.js +1 -0
  110. package/.next/static/chunks/app/api/roots/[id]/attachments/route-5d0cd3b754198853.js +1 -0
  111. package/.next/static/chunks/app/api/roots/[id]/chat/[topicId]/send/route-5d0cd3b754198853.js +1 -0
  112. package/.next/static/chunks/app/api/roots/[id]/chat/[topicId]/stop/route-5d0cd3b754198853.js +1 -0
  113. package/.next/static/chunks/app/api/roots/[id]/chat/[topicId]/stream/route-5d0cd3b754198853.js +1 -0
  114. package/.next/static/chunks/app/api/roots/[id]/dashboard/route-5d0cd3b754198853.js +1 -0
  115. package/.next/static/chunks/app/api/roots/[id]/suggestions/route-5d0cd3b754198853.js +1 -0
  116. package/.next/static/chunks/app/api/utilities/[scope]/[id]/bundle.js/route-5d0cd3b754198853.js +1 -0
  117. package/.next/static/chunks/app/api/utilities/[scope]/[id]/host/route-5d0cd3b754198853.js +1 -0
  118. package/.next/static/chunks/app/api/utilities/[scope]/[id]/host-api.mjs/route-5d0cd3b754198853.js +1 -0
  119. package/.next/static/chunks/app/api/utilities/[scope]/[id]/host-ui.mjs/route-5d0cd3b754198853.js +1 -0
  120. package/.next/static/chunks/app/api/utilities/[scope]/[id]/iframe/route-5d0cd3b754198853.js +1 -0
  121. package/.next/static/chunks/app/api/utilities/[scope]/[id]/style.css/route-5d0cd3b754198853.js +1 -0
  122. package/.next/static/chunks/app/api/utilities/install-archive/route-5d0cd3b754198853.js +1 -0
  123. package/.next/static/chunks/app/layout-5caae9e60f5d6d42.js +1 -0
  124. package/.next/static/chunks/app/onboarding/page-3bb8ad02f9c88fdf.js +1 -0
  125. package/.next/static/chunks/app/page-6e32890e646e50aa.js +1 -0
  126. package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-ac00a7a8d6a16da8.js +1 -0
  127. package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-14cb4b8a24e40dc7.js +1 -0
  128. package/.next/static/chunks/app/roots/[id]/layout-5d0cd3b754198853.js +1 -0
  129. package/.next/static/chunks/app/roots/[id]/memory/page-7bbe675652b7f9e8.js +1 -0
  130. package/.next/static/chunks/app/roots/[id]/page-2080ede443a668d2.js +1 -0
  131. package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-c744450355558209.js +1 -0
  132. package/.next/static/chunks/app/roots/[id]/workflows/page-8175a0fbbc465472.js +1 -0
  133. package/.next/static/chunks/app/roots/new/page-3d83b5dfb0a8f869.js +1 -0
  134. package/.next/static/chunks/app/settings/page-550fab06213d866c.js +1 -0
  135. package/.next/static/chunks/app/share/[id]/page-c290e46d1beba1ff.js +1 -0
  136. package/.next/static/chunks/app/utilities/[scope]/[id]/{page-3c6c50d24b9aa8a3.js → page-5aaa4731a5ab783d.js} +1 -1
  137. package/.next/static/chunks/app/utilities/page-0e362fd622574297.js +1 -0
  138. package/.next/static/chunks/{webpack-87d6f4f6cb0681d9.js → webpack-e60c7ddfa84db519.js} +1 -1
  139. package/.next/trace +90 -90
  140. package/.next/types/app/api/utilities/install-archive/route.ts +347 -0
  141. package/.next/types/routes.d.ts +2 -1
  142. package/.next/types/validator.ts +9 -0
  143. package/dist/lib/reflex/prompts/defaults.js +3 -0
  144. package/dist/lib/reflex/prompts/defaults.js.map +1 -1
  145. package/package.json +2 -1
  146. package/.next/server/chunks/462.js +0 -3
  147. package/.next/server/chunks/5906.js +0 -1
  148. package/.next/server/chunks/7239.js +0 -1
  149. package/.next/server/chunks/9975.js +0 -1
  150. package/.next/static/FjPl5lLyObDgORD6F9-MK/_buildManifest.js +0 -1
  151. package/.next/static/chunks/1722-1f7df607ccd79308.js +0 -1
  152. package/.next/static/chunks/4088-7c72e188b9bde99b.js +0 -1
  153. package/.next/static/chunks/4108.7b6bc850cb87e9bc.js +0 -1
  154. package/.next/static/chunks/5757-9ae2804a278bf867.js +0 -1
  155. package/.next/static/chunks/6136-9bf50790263804d1.js +0 -1
  156. package/.next/static/chunks/7260-36ed6b2076b8a79f.js +0 -1
  157. package/.next/static/chunks/app/api/agents/[agentId]/respond/route-7e2f82a91b10b7e2.js +0 -1
  158. package/.next/static/chunks/app/api/images/[rootId]/[file]/route-7e2f82a91b10b7e2.js +0 -1
  159. package/.next/static/chunks/app/api/oauth/callback/route-7e2f82a91b10b7e2.js +0 -1
  160. package/.next/static/chunks/app/api/oauth/start/route-7e2f82a91b10b7e2.js +0 -1
  161. package/.next/static/chunks/app/api/roots/[id]/attachments/route-7e2f82a91b10b7e2.js +0 -1
  162. package/.next/static/chunks/app/api/roots/[id]/chat/[topicId]/send/route-7e2f82a91b10b7e2.js +0 -1
  163. package/.next/static/chunks/app/api/roots/[id]/chat/[topicId]/stop/route-7e2f82a91b10b7e2.js +0 -1
  164. package/.next/static/chunks/app/api/roots/[id]/chat/[topicId]/stream/route-7e2f82a91b10b7e2.js +0 -1
  165. package/.next/static/chunks/app/api/roots/[id]/dashboard/route-7e2f82a91b10b7e2.js +0 -1
  166. package/.next/static/chunks/app/api/roots/[id]/suggestions/route-7e2f82a91b10b7e2.js +0 -1
  167. package/.next/static/chunks/app/api/utilities/[scope]/[id]/bundle.js/route-7e2f82a91b10b7e2.js +0 -1
  168. package/.next/static/chunks/app/api/utilities/[scope]/[id]/host/route-7e2f82a91b10b7e2.js +0 -1
  169. package/.next/static/chunks/app/api/utilities/[scope]/[id]/host-api.mjs/route-7e2f82a91b10b7e2.js +0 -1
  170. package/.next/static/chunks/app/api/utilities/[scope]/[id]/host-ui.mjs/route-7e2f82a91b10b7e2.js +0 -1
  171. package/.next/static/chunks/app/api/utilities/[scope]/[id]/iframe/route-7e2f82a91b10b7e2.js +0 -1
  172. package/.next/static/chunks/app/api/utilities/[scope]/[id]/style.css/route-7e2f82a91b10b7e2.js +0 -1
  173. package/.next/static/chunks/app/layout-0d2ea0e793b0a0da.js +0 -1
  174. package/.next/static/chunks/app/onboarding/page-9ebf81ad78d9173a.js +0 -1
  175. package/.next/static/chunks/app/page-b926895e820623de.js +0 -1
  176. package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-1868f90d718dc449.js +0 -1
  177. package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-b112a20948212db8.js +0 -1
  178. package/.next/static/chunks/app/roots/[id]/layout-7e2f82a91b10b7e2.js +0 -1
  179. package/.next/static/chunks/app/roots/[id]/memory/page-495bfa5d5ccc95fc.js +0 -1
  180. package/.next/static/chunks/app/roots/[id]/page-df2eddea266dab67.js +0 -1
  181. package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-9dbebdc6cf006bf3.js +0 -1
  182. package/.next/static/chunks/app/roots/[id]/workflows/page-0f527d3f6b8ab4a0.js +0 -1
  183. package/.next/static/chunks/app/roots/new/page-c2ffb2099313f672.js +0 -1
  184. package/.next/static/chunks/app/settings/page-9ee28e7943ae7620.js +0 -1
  185. package/.next/static/chunks/app/share/[id]/page-1f5f909096557c29.js +0 -1
  186. package/.next/static/chunks/app/utilities/page-0944fa72a82e7a76.js +0 -1
  187. /package/.next/static/{FjPl5lLyObDgORD6F9-MK → 1y4wPze4yO8DprxGKwSXQ}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=9861,exports.ids=[9861],exports.modules={4306:(a,b,c)=>{c.d(b,{g:()=>d});let d=String.raw`import { createElement, forwardRef } from "react";
1
+ "use strict";exports.id=9861,exports.ids=[9861],exports.modules={4306:(a,b,c)=>{c.d(b,{g:()=>d});let d=String.raw`import { createElement, forwardRef, useState, useCallback } from "react";
2
2
 
3
3
  function cls(...parts) {
4
4
  return parts.filter(Boolean).join(" ");
@@ -111,7 +111,59 @@ export function ScrollArea({ className, children }) {
111
111
  className: cls("overflow-y-auto", className),
112
112
  }, children);
113
113
  }
114
- `},99861:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{actionBundlePath:()=>v,buildUtility:()=>l,rebuildUtility:()=>t,uiBundlePath:()=>u});var e=c(71152),f=c(73024),g=c(76760),h=c.n(g),i=c(36306),j=c(4306),k=a([i]);i=(k.then?(await k)():k)[0];let w=["@host/ui","@host/api"],x=[],y=["react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client","react-markdown","remark-gfm","mermaid"];async function l(a){let{manifest:b,dir:c}=a,d=h().join(c,b.ui),g=h().join(c,"bundle.js");await n(d,"ui");let i="./"+h().basename(b.ui).replace(/\.(tsx?|jsx?)$/,""),j=`import * as __user from ${JSON.stringify(i)};
114
+
115
+ // --- Routing --------------------------------------------------------------
116
+ // In-memory router for multi-view utilities. The iframe has no address
117
+ // bar, so navigation is a state stack, not a URL. Use either the hook
118
+ // (manual control) or <RouterView> (renders the active view component).
119
+
120
+ export function useReflexRoute(initial) {
121
+ const start = typeof initial === "string"
122
+ ? { route: initial, params: {} }
123
+ : (initial && initial.route ? { route: initial.route, params: initial.params || {} } : { route: "", params: {} });
124
+ const [stack, setStack] = useState([start]);
125
+ const current = stack[stack.length - 1];
126
+ const navigate = useCallback((route, params) => {
127
+ setStack((s) => [...s, { route, params: params || {} }]);
128
+ }, []);
129
+ const back = useCallback(() => {
130
+ setStack((s) => (s.length > 1 ? s.slice(0, -1) : s));
131
+ }, []);
132
+ const replace = useCallback((route, params) => {
133
+ setStack((s) => [...s.slice(0, -1), { route, params: params || {} }]);
134
+ }, []);
135
+ return {
136
+ route: current.route,
137
+ params: current.params,
138
+ canBack: stack.length > 1,
139
+ navigate,
140
+ back,
141
+ replace,
142
+ };
143
+ }
144
+
145
+ // <RouterView routes={{ board: BoardView, detail: DetailView }} initial="board" />
146
+ // Each view receives { params, navigate, back, replace, route, canBack }.
147
+ export function RouterView({ routes, initial }) {
148
+ const r = useReflexRoute(initial);
149
+ const Comp = routes ? routes[r.route] : null;
150
+ if (typeof Comp !== "function") {
151
+ return createElement(
152
+ "div",
153
+ { className: "p-4 text-sm text-slate-500" },
154
+ "No view for route: " + String(r.route),
155
+ );
156
+ }
157
+ return createElement(Comp, {
158
+ params: r.params,
159
+ navigate: r.navigate,
160
+ back: r.back,
161
+ replace: r.replace,
162
+ route: r.route,
163
+ canBack: r.canBack,
164
+ });
165
+ }
166
+ `},99861:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{actionBundlePath:()=>A,buildUtility:()=>n,rebuildUtility:()=>y,uiBundlePath:()=>z});var e=c(71152),f=c(73024),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(36306),l=c(4306),m=a([k]);k=(m.then?(await m)():m)[0];let B="esm.sh",C="react,react-dom,react-dom/client",D=["@host/ui","@host/api"],E=[],F=["react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client","react-markdown","remark-gfm","mermaid"];async function n(a){let{manifest:b,dir:c}=a,d=h().join(c,b.ui),g=h().join(c,"bundle.js"),i=b.dependencies??{},j=h().join(c,"dist",".esm-cache");await p(d,"ui");let k="./"+h().basename(b.ui).replace(/\.(tsx?|jsx?)$/,""),l=`import * as __user from ${JSON.stringify(k)};
115
167
  import { createElement } from "react";
116
168
  import { createRoot } from "react-dom/client";
117
169
  const __root = typeof document !== "undefined"
@@ -123,6 +175,6 @@ const __Component = (__user && typeof __user === "object")
123
175
  if (__root && typeof __Component === "function") {
124
176
  createRoot(__root).render(createElement(__Component));
125
177
  }
126
- `,k=await e.build({stdin:{contents:j,resolveDir:c,sourcefile:"_reflex-bootstrap.tsx",loader:"tsx"},outfile:g,bundle:!0,format:"esm",platform:"browser",target:"es2022",jsx:"automatic",minify:!1,write:!0,sourcemap:"inline",external:w,plugins:[s([...w,...y])],logLevel:"silent"});m(k,"UI bundle");let l=await f.promises.stat(g);if(l.size>0x2800000)throw Error(`UI bundle too large: ${l.size} bytes (cap 41943040)`);await o(a);let p=[];if(b.serverActions.length>0){let a=h().join(c,"dist","actions");for(let d of(await f.promises.mkdir(a,{recursive:!0}),b.serverActions)){let b=h().join(c,d.entry);await n(b,`action ${d.name}`);let g=h().join(a,`${d.name}.js`),i=await e.build({entryPoints:[b],outfile:g,bundle:!0,format:"esm",platform:"node",target:"es2022",minify:!1,write:!0,sourcemap:"inline",external:x,plugins:[{name:"reflex-host-api-virtual",setup(a){a.onResolve({filter:/^@host\/api$/},a=>({path:a.path,namespace:"reflex-host-api"})),a.onLoad({filter:/.*/,namespace:"reflex-host-api"},()=>({contents:"const h = globalThis.__reflexHost;\nif (!h) throw new Error('@host/api not available — worker not bootstrapped?');\nexport const reflex = h;\nexport const llm = h.llm;\nexport const kb = h.kb;\nexport const fs = h.fs;\nexport const web = h.web;\nexport const audit = h.audit;\nexport const actions = h.actions;\nexport const mcp = h.mcp;\nexport const secrets = h.secrets;\nexport const agent = h.agent;\nexport const workflow = h.workflow;\nexport const cards = h.cards;\nexport default h;\n",loader:"js"}))}},s([...x,"@host/api"])],logLevel:"silent"});m(i,`action ${d.name}`);let j=await f.promises.stat(g);if(j.size>0x2800000)throw Error(`action ${d.name} bundle too large: ${j.size}`);p.push({name:d.name,size:j.size})}}return{uiBundleSize:l.size,actionBundles:p}}function m(a,b){if(a.errors&&a.errors.length>0){let c=a.errors.map(a=>`${a.location?.file}:${a.location?.line??"?"}: ${a.text}`).join("\n");throw Error(`esbuild failed for ${b}:
127
- ${c}`)}}async function n(a,b){try{await f.promises.access(a)}catch{throw Error(`${b} entry not found: ${a}`)}}async function o(a){let{dir:b}=a,c=await p(b),d=new Set;for(let a of c){let b=await f.promises.readFile(a,"utf8");for(let a of q(b))d.add(a)}for(let a of q(j.g))d.add(a);let e=(await (0,i.compile)(`@import "tailwindcss";
128
- `,{base:process.cwd(),onDependency:()=>{}})).build([...d]);await f.promises.writeFile(h().join(b,"style.css"),e,"utf8")}async function p(a){let b=[],c=async a=>{for(let d of(await f.promises.readdir(a,{withFileTypes:!0}))){let e=h().join(a,d.name);if(d.isDirectory()){if("data"===d.name||"dist"===d.name||"node_modules"===d.name)continue;await c(e)}else/\.(tsx?|jsx?|html|css|md)$/.test(d.name)&&b.push(e)}};return await c(a),b}function q(a){return a.split(/[\s"'`{}();,<>=]+/).filter(a=>a.length>0&&/^[a-zA-Z@!-]/.test(a))}let z={mermaid:"dist/mermaid.esm.min.mjs"};function r(a){if(null==a)return null;if("string"==typeof a)return a;if("object"!=typeof a)return null;for(let b of["browser","import","module","default","require"])if(b in a){let c=r(a[b]);if(c)return c}return null}function s(a){let b=new Set(a),c=new Set(y),d=h().join(process.cwd(),"node_modules");return{name:"reflex-import-whitelist",setup(a){a.onResolve({filter:/.*/},a=>{if(a.importer.startsWith(d+h().sep)||a.importer.includes(h().sep+"node_modules"+h().sep)||a.path.startsWith(".")||a.path.startsWith("/")||h().isAbsolute(a.path))return null;if(a.path.startsWith("node:"))return{errors:[{text:`import "${a.path}" is not allowed in utility code`}]};if(!b.has(a.path))return{errors:[{text:`import "${a.path}" is not in the allowed list: ${Array.from(b).join(", ")}`}]};if(a.path.startsWith("@host/"))return{path:a.path,external:!0};if(c.has(a.path)){let b=function(a){let b,c=a.split("/"),d=a.startsWith("@")?c.slice(0,2).join("/"):c[0],e=a.startsWith("@")?c.slice(2):c.slice(1),g=e.length>0?"./"+e.join("/"):".",i=h().join(process.cwd(),"node_modules",d);if("."===g&&d&&z[d]){let a=h().join(i,z[d]);if((0,f.existsSync)(a))return a}let j=h().join(i,"package.json");if(!(0,f.existsSync)(j))return null;try{b=JSON.parse((0,f.readFileSync)(j,"utf8"))}catch{return null}let k=function(a,b){if(null==a)return null;if("string"==typeof a)return"."===b?a:null;if("object"!=typeof a)return null;if(Object.keys(a).some(a=>a.startsWith("."))){let c=a[b];return void 0!==c?r(c):null}return"."===b?r(a):null}(b.exports,g);if(null!==k){let a=h().join(i,k);return(0,f.existsSync)(a)?a:null}if("."===g){let a=b.module??b.main??"index.js",c=h().join(i,a);return(0,f.existsSync)(c)?c:null}for(let a of["",".js",".mjs",".cjs"]){let b=h().join(i,g.slice(2)+a);if((0,f.existsSync)(b))return b}return null}(a.path);return b?{path:b}:{errors:[{text:`could not resolve "${a.path}" from Reflex node_modules`}]}}return null})}}}async function t(a){return l(a)}function u(a){return h().join(a,"bundle.js")}function v(a,b){return h().join(a,"dist","actions",`${b}.js`)}d()}catch(a){d(a)}})}};
178
+ `,m=await e.build({stdin:{contents:l,resolveDir:c,sourcefile:"_reflex-bootstrap.tsx",loader:"tsx"},outfile:g,bundle:!0,format:"esm",platform:"browser",target:"es2022",jsx:"automatic",minify:!1,write:!0,sourcemap:"inline",external:D,plugins:[v({deps:i,cacheDir:j,target:"browser"}),x([...D,...F])],logLevel:"silent"});o(m,"UI bundle");let n=await f.promises.stat(g);if(n.size>0x2800000)throw Error(`UI bundle too large: ${n.size} bytes (cap 41943040)`);await q(a);let r=[];if(b.serverActions.length>0){let a=h().join(c,"dist","actions");for(let d of(await f.promises.mkdir(a,{recursive:!0}),b.serverActions)){let b=h().join(c,d.entry);await p(b,`action ${d.name}`);let g=h().join(a,`${d.name}.js`),k=await e.build({entryPoints:[b],outfile:g,bundle:!0,format:"esm",platform:"node",target:"es2022",minify:!1,write:!0,sourcemap:"inline",external:E,plugins:[{name:"reflex-host-api-virtual",setup(a){a.onResolve({filter:/^@host\/api$/},a=>({path:a.path,namespace:"reflex-host-api"})),a.onLoad({filter:/.*/,namespace:"reflex-host-api"},()=>({contents:"const h = globalThis.__reflexHost;\nif (!h) throw new Error('@host/api not available — worker not bootstrapped?');\nexport const reflex = h;\nexport const llm = h.llm;\nexport const kb = h.kb;\nexport const fs = h.fs;\nexport const web = h.web;\nexport const audit = h.audit;\nexport const actions = h.actions;\nexport const mcp = h.mcp;\nexport const secrets = h.secrets;\nexport const agent = h.agent;\nexport const workflow = h.workflow;\nexport const cards = h.cards;\nexport default h;\n",loader:"js"}))}},v({deps:i,cacheDir:j,target:"node"}),x([...E,"@host/api"])],logLevel:"silent"});o(k,`action ${d.name}`);let l=await f.promises.stat(g);if(l.size>0x2800000)throw Error(`action ${d.name} bundle too large: ${l.size}`);r.push({name:d.name,size:l.size})}}return{uiBundleSize:n.size,actionBundles:r}}function o(a,b){if(a.errors&&a.errors.length>0){let c=a.errors.map(a=>`${a.location?.file}:${a.location?.line??"?"}: ${a.text}`).join("\n");throw Error(`esbuild failed for ${b}:
179
+ ${c}`)}}async function p(a,b){try{await f.promises.access(a)}catch{throw Error(`${b} entry not found: ${a}`)}}async function q(a){let{dir:b}=a,c=await r(b),d=new Set;for(let a of c){let b=await f.promises.readFile(a,"utf8");for(let a of s(b))d.add(a)}for(let a of s(l.g))d.add(a);let e=(await (0,k.compile)(`@import "tailwindcss";
180
+ `,{base:process.cwd(),onDependency:()=>{}})).build([...d]);await f.promises.writeFile(h().join(b,"style.css"),e,"utf8")}async function r(a){let b=[],c=async a=>{for(let d of(await f.promises.readdir(a,{withFileTypes:!0}))){let e=h().join(a,d.name);if(d.isDirectory()){if("data"===d.name||"dist"===d.name||"node_modules"===d.name)continue;await c(e)}else/\.(tsx?|jsx?|html|css|md)$/.test(d.name)&&b.push(e)}};return await c(a),b}function s(a){return a.split(/[\s"'`{}();,<>=]+/).filter(a=>a.length>0&&/^[a-zA-Z@!-]/.test(a))}let G={mermaid:"dist/mermaid.esm.min.mjs"};function t(a){let b,c=a.split("/"),d=a.startsWith("@")?c.slice(0,2).join("/"):c[0],e=a.startsWith("@")?c.slice(2):c.slice(1),g=e.length>0?"./"+e.join("/"):".",i=h().join(process.cwd(),"node_modules",d);if("."===g&&d&&G[d]){let a=h().join(i,G[d]);if((0,f.existsSync)(a))return a}let j=h().join(i,"package.json");if(!(0,f.existsSync)(j))return null;try{b=JSON.parse((0,f.readFileSync)(j,"utf8"))}catch{return null}let k=function(a,b){if(null==a)return null;if("string"==typeof a)return"."===b?a:null;if("object"!=typeof a)return null;if(Object.keys(a).some(a=>a.startsWith("."))){let c=a[b];return void 0!==c?u(c):null}return"."===b?u(a):null}(b.exports,g);if(null!==k){let a=h().join(i,k);return(0,f.existsSync)(a)?a:null}if("."===g){let a=b.module??b.main??"index.js",c=h().join(i,a);return(0,f.existsSync)(c)?c:null}for(let a of["",".js",".mjs",".cjs"]){let b=h().join(i,g.slice(2)+a);if((0,f.existsSync)(b))return b}return null}function u(a){if(null==a)return null;if("string"==typeof a)return a;if("object"!=typeof a)return null;for(let b of["browser","import","module","default","require"])if(b in a){let c=u(a[b]);if(c)return c}return null}function v(a){let{deps:b,cacheDir:c,target:d}=a,e=new Set(F);return{name:"reflex-esm-cdn",setup(a){a.onResolve({filter:/.*/},a=>{if(/^https?:\/\//.test(a.path)){let b;try{b=new URL(a.path).host}catch{return null}return b!==B?{errors:[{text:`refusing non-esm.sh URL import: ${a.path}`}]}:{path:a.path,namespace:"esm-cdn"}}if("esm-cdn"===a.namespace){if(a.path.startsWith(".")||a.path.startsWith("/"))return{path:new URL(a.path,a.importer).href,namespace:"esm-cdn"};if(e.has(a.path)){let b=t(a.path);if(b)return{path:b}}return{path:`https://${B}/${a.path}?external=${C}${"node"===d?"&target=node":""}`,namespace:"esm-cdn"}}if(!a.path.startsWith(".")&&!a.path.startsWith("/")&&!h().isAbsolute(a.path)&&!a.path.startsWith("@host/")&&!a.path.startsWith("node:")){let c=(a=>{let c=a.split("/"),e=a.startsWith("@")?c.slice(0,2).join("/"):c[0],f=b[e];if(!f)return null;let g=a.slice(e.length);return`https://${B}/${e}@${f}${g}?external=${C}${"node"===d?"&target=node":""}`})(a.path);if(c)return{path:c,namespace:"esm-cdn"}}return null}),a.onLoad({filter:/.*/,namespace:"esm-cdn"},async a=>({contents:await w(a.path,c),loader:"js",resolveDir:c}))}}}async function w(a,b){let c,d=j().createHash("sha256").update(a).digest("hex").slice(0,32),e=h().join(b,`${d}.js`);try{return await f.promises.readFile(e,"utf8")}catch{}try{c=await fetch(a,{signal:AbortSignal.timeout(2e4)})}catch(b){throw Error(`couldn't fetch dependency from ${a}: ${b instanceof Error?b.message:String(b)}`)}if(!c.ok)throw Error(`couldn't fetch dependency from ${a}: HTTP ${c.status}`);let g=await c.text();return await f.promises.mkdir(b,{recursive:!0}),await f.promises.writeFile(e,g,"utf8"),g}function x(a){let b=new Set(a),c=new Set(F),d=h().join(process.cwd(),"node_modules");return{name:"reflex-import-whitelist",setup(a){a.onResolve({filter:/.*/},a=>{if(a.importer.startsWith(d+h().sep)||a.importer.includes(h().sep+"node_modules"+h().sep)||a.path.startsWith(".")||a.path.startsWith("/")||h().isAbsolute(a.path))return null;if(a.path.startsWith("node:"))return{errors:[{text:`import "${a.path}" is not allowed in utility code`}]};if(!b.has(a.path))return{errors:[{text:`import "${a.path}" is not in the allowed list: ${Array.from(b).join(", ")}`}]};if(a.path.startsWith("@host/"))return{path:a.path,external:!0};if(c.has(a.path)){let b=t(a.path);return b?{path:b}:{errors:[{text:`could not resolve "${a.path}" from Reflex node_modules`}]}}return null})}}}async function y(a){return n(a)}function z(a){return h().join(a,"bundle.js")}function A(a,b){return h().join(a,"dist","actions",`${b}.js`)}d()}catch(a){d(a)}})}};
@@ -4,6 +4,7 @@
4
4
  "/api/agents/[agentId]/respond": {},
5
5
  "/api/images/[rootId]/[file]": {},
6
6
  "/api/oauth/callback": {},
7
+ "/api/oauth/start": {},
7
8
  "/api/roots/[id]/attachments": {},
8
9
  "/api/roots/[id]/chat/[topicId]/send": {},
9
10
  "/api/roots/[id]/chat/[topicId]/stop": {},
@@ -11,11 +12,11 @@
11
12
  "/api/roots/[id]/dashboard": {},
12
13
  "/api/roots/[id]/suggestions": {},
13
14
  "/api/utilities/[scope]/[id]/bundle.js": {},
14
- "/api/utilities/[scope]/[id]/host-ui.mjs": {},
15
15
  "/api/utilities/[scope]/[id]/host-api.mjs": {},
16
- "/api/oauth/start": {},
17
16
  "/api/utilities/[scope]/[id]/host": {},
18
- "/api/utilities/[scope]/[id]/style.css": {},
19
- "/api/utilities/[scope]/[id]/iframe": {}
17
+ "/api/utilities/[scope]/[id]/host-ui.mjs": {},
18
+ "/api/utilities/[scope]/[id]/iframe": {},
19
+ "/api/utilities/install-archive": {},
20
+ "/api/utilities/[scope]/[id]/style.css": {}
20
21
  }
21
22
  }
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-87d6f4f6cb0681d9.js","static/chunks/6fe292aa-7126ff9d6732e864.js","static/chunks/146-ccee3b26755b68c8.js","static/chunks/main-app-ebe67847147d19aa.js"],rootMainFilesTree:{},pages:{"/_app":["static/chunks/webpack-87d6f4f6cb0681d9.js","static/chunks/framework-aaa7c1a953276299.js","static/chunks/main-bfb98fc1d6aa1d45.js","static/chunks/pages/_app-bf8bc157ace53d59.js"],"/_error":["static/chunks/webpack-87d6f4f6cb0681d9.js","static/chunks/framework-aaa7c1a953276299.js","static/chunks/main-bfb98fc1d6aa1d45.js","static/chunks/pages/_error-da89ab2956f0cf38.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-e60c7ddfa84db519.js","static/chunks/6fe292aa-7126ff9d6732e864.js","static/chunks/146-ccee3b26755b68c8.js","static/chunks/main-app-ebe67847147d19aa.js"],rootMainFilesTree:{},pages:{"/_app":["static/chunks/webpack-e60c7ddfa84db519.js","static/chunks/framework-aaa7c1a953276299.js","static/chunks/main-bfb98fc1d6aa1d45.js","static/chunks/pages/_app-bf8bc157ace53d59.js"],"/_error":["static/chunks/webpack-e60c7ddfa84db519.js","static/chunks/framework-aaa7c1a953276299.js","static/chunks/main-bfb98fc1d6aa1d45.js","static/chunks/pages/_error-da89ab2956f0cf38.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
@@ -17,11 +17,11 @@
17
17
  "wasm": [],
18
18
  "assets": [],
19
19
  "env": {
20
- "__NEXT_BUILD_ID": "FjPl5lLyObDgORD6F9-MK",
21
- "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "DBpho8mYwWRGZhEuZ2QDCzi/iXSYg3Xuz8O2GfYsp10=",
22
- "__NEXT_PREVIEW_MODE_ID": "3992827729affcdce70c9a7a7c3d9a70",
23
- "__NEXT_PREVIEW_MODE_SIGNING_KEY": "60659ef69c603968edaa178acddd858b057753b3fdd0808f1c1a888bff25bbb5",
24
- "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "3c2a7dbe20b02dfb3b94e3c77843d1a2d9b3b4a3744780ec31b2696fce7b5cde"
20
+ "__NEXT_BUILD_ID": "1y4wPze4yO8DprxGKwSXQ",
21
+ "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "vhpRaha1R344HMZXPGrIqDGROCXC3yqD+qqQpiNfytU=",
22
+ "__NEXT_PREVIEW_MODE_ID": "a62a71db82e7b6e7601405ac595ddb1a",
23
+ "__NEXT_PREVIEW_MODE_SIGNING_KEY": "b3f22f249d95b75643950cfd1c9dff36752ae1c4fddf244655bf4bc9e88475d3",
24
+ "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "a6f3a1cbe49670a20c0314c9ad32d8e8e571a3c44e90a2913b50d12588543e46"
25
25
  }
26
26
  }
27
27
  },
@@ -1 +1 @@
1
- self.__REACT_LOADABLE_MANIFEST='{"app/roots/[id]/chat/[topicId]/_components/interaction-cards.tsx -> @/lib/server/oauth-actions":{"id":94108,"files":["static/chunks/4108.7b6bc850cb87e9bc.js"]}}';
1
+ self.__REACT_LOADABLE_MANIFEST='{"app/roots/[id]/chat/[topicId]/_components/interaction-cards.tsx -> @/lib/server/oauth-actions":{"id":94108,"files":["static/chunks/4108.17cd7704e88bcb32.js"]}}';
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-87d6f4f6cb0681d9.js" defer=""></script><script src="/_next/static/chunks/framework-aaa7c1a953276299.js" defer=""></script><script src="/_next/static/chunks/main-bfb98fc1d6aa1d45.js" defer=""></script><script src="/_next/static/chunks/pages/_app-bf8bc157ace53d59.js" defer=""></script><script src="/_next/static/chunks/pages/_error-da89ab2956f0cf38.js" defer=""></script><script src="/_next/static/FjPl5lLyObDgORD6F9-MK/_buildManifest.js" defer=""></script><script src="/_next/static/FjPl5lLyObDgORD6F9-MK/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"FjPl5lLyObDgORD6F9-MK","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e60c7ddfa84db519.js" defer=""></script><script src="/_next/static/chunks/framework-aaa7c1a953276299.js" defer=""></script><script src="/_next/static/chunks/main-bfb98fc1d6aa1d45.js" defer=""></script><script src="/_next/static/chunks/pages/_app-bf8bc157ace53d59.js" defer=""></script><script src="/_next/static/chunks/pages/_error-da89ab2956f0cf38.js" defer=""></script><script src="/_next/static/1y4wPze4yO8DprxGKwSXQ/_buildManifest.js" defer=""></script><script src="/_next/static/1y4wPze4yO8DprxGKwSXQ/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"1y4wPze4yO8DprxGKwSXQ","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>