failproofai 1.0.15 → 1.0.16-beta.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 (159) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +13 -13
  3. package/.next/standalone/.next/prerender-manifest.json +4 -4
  4. package/.next/standalone/.next/required-server-files.json +1 -1
  5. package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
  6. package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
  7. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  8. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.rsc +2 -2
  11. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  12. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
  15. package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  16. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  17. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  19. package/.next/standalone/.next/server/app/_not-found.rsc +4 -4
  20. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  22. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/api/audit/run/route.js +22 -21
  25. package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
  33. package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
  34. package/.next/standalone/.next/server/app/audit/page.js +4 -3
  35. package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/index.html +1 -1
  38. package/.next/standalone/.next/server/app/index.rsc +4 -4
  39. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  40. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
  41. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  42. package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
  43. package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
  44. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
  47. package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
  48. package/.next/standalone/.next/server/app/policies/page.js +8 -7
  49. package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
  50. package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
  51. package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
  52. package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
  53. package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
  54. package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
  55. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
  56. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
  57. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
  58. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
  60. package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
  61. package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
  62. package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  64. package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
  65. package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +8 -8
  66. package/.next/standalone/.next/server/app/settings/page.js +8 -7
  67. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  68. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  69. package/.next/standalone/.next/server/chunks/[root-of-the-server]__048f1wnr8pysf._.js +4 -4
  70. package/.next/standalone/.next/server/chunks/_0tovk6q0miud6._.js +1 -1
  71. package/.next/standalone/.next/server/chunks/_0trp3ycqv17cl._.js +1 -1
  72. package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4vkpxxu7._.js +1 -1
  73. package/.next/standalone/.next/server/chunks/src_hooks_0fmclqlaj83-2._.js +5 -0
  74. package/.next/standalone/.next/server/chunks/src_hooks_15j31lnj-km9r._.js +3 -0
  75. package/.next/standalone/.next/server/chunks/src_hooks_daemon-client_ts_0il_yu1zc0291._.js +1 -1
  76. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__08ch3staq3ejw._.js +1 -1
  77. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bigvy9xmv2ka._.js +1 -1
  78. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h86bl2qf0k_o._.js +1 -1
  79. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0pia5h3p8re4c._.js +1 -1
  80. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0t76rmc_vci18._.js +3 -0
  81. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1vofkb2oq7p7e._.js → [root-of-the-server]__0tayeyopslkf1._.js} +1 -1
  82. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-ey9fgesfbc0._.js +1 -1
  83. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__15usvs-ms-0hf._.js +1 -1
  84. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__16gb3_92zvk5x._.js +1 -1
  85. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1avi2kypusyb_._.js +1 -1
  86. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1r7drlqli-ado._.js +1 -1
  87. package/.next/standalone/.next/server/chunks/ssr/_0eoura3_9gjb-._.js +1 -1
  88. package/.next/standalone/.next/server/chunks/ssr/_0f-kswpk5hx7v._.js +3 -0
  89. package/.next/standalone/.next/server/chunks/ssr/_0pedwblqdoh58._.js +1 -1
  90. package/.next/standalone/.next/server/chunks/ssr/_1djqs9i27e4kg._.js +1 -1
  91. package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo5_vm5f.js +5 -5
  92. package/.next/standalone/.next/server/chunks/ssr/app_actions_get-scheduled-audit_ts_0ei9snixb5fd-._.js +1 -1
  93. package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47q0xq5w._.js +1 -1
  94. package/.next/standalone/.next/server/chunks/ssr/app_components_project-list_tsx_1ke6anr0vt64h._.js +1 -1
  95. package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x33jqb6._.js +1 -1
  96. package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpcz0uxur._.js +1 -1
  97. package/.next/standalone/.next/server/chunks/ssr/app_settings_02tf1h47jmhhd._.js +1 -1
  98. package/.next/standalone/.next/server/chunks/ssr/{node_modules_html-to-image_es_index_0e3yg5gbcfsai.js → node_modules_html-to-image_es_index_0wgfci23_yqs_.js} +1 -1
  99. package/.next/standalone/.next/server/chunks/ssr/package_json_[json]_cjs_013tntikdft59._.js +1 -1
  100. package/.next/standalone/.next/server/chunks/ssr/src_hooks_1-ytegsicaf2d._.js +5 -0
  101. package/.next/standalone/.next/server/chunks/ssr/src_hooks_1euxn1va7c5gq._.js +5 -0
  102. package/.next/standalone/.next/server/chunks/ssr/src_hooks_daemon-client_ts_0k41_i7jg6ndv._.js +1 -1
  103. package/.next/standalone/.next/server/chunks/ssr/src_hooks_daemon-service_ts_0ibufora3s_bw._.js +1 -1
  104. package/.next/standalone/.next/server/chunks/ssr/src_hooks_effective-reviewers_ts_1h4wtvo55j16x._.js +3 -0
  105. package/.next/standalone/.next/server/middleware-build-manifest.js +13 -13
  106. package/.next/standalone/.next/server/pages/404.html +1 -1
  107. package/.next/standalone/.next/server/pages/500.html +1 -1
  108. package/.next/standalone/.next/server/preview-props.json +3 -3
  109. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  110. package/.next/standalone/.next/server/server-reference-manifest.json +23 -23
  111. package/.next/standalone/.next/static/chunks/{0oxlfb02aqo3e.js → 0fqjv13piwa6z.js} +1 -1
  112. package/.next/standalone/.next/static/chunks/{1osrmi14e2jub.js → 0y9qczsccrmmf.js} +1 -1
  113. package/.next/standalone/.next/static/chunks/{0p14j2e6dnj1x.js → 0z70k3nof30ws.js} +1 -1
  114. package/.next/standalone/.next/static/chunks/{05g1pu2r8o5q3.js → 167exo9u6npy3.js} +1 -1
  115. package/.next/standalone/.next/static/chunks/{098vx6twrn-vk.js → 1xwh61k4505md.js} +1 -1
  116. package/.next/standalone/.next/static/chunks/{3d6_vjbvr0c2n.js → 24nikgpkr0qas.js} +1 -1
  117. package/.next/standalone/.next/static/chunks/{38lnk75xvqiug.js → 2ayu58wi805x4.js} +1 -1
  118. package/.next/standalone/.next/static/chunks/{0tiuj32d-qcy3.js → 2swcvie6i54dn.js} +1 -1
  119. package/.next/standalone/.next/static/chunks/2xx-2wehe-kwl.js +1 -0
  120. package/.next/standalone/.next/static/chunks/{1i9zuw01f0ogt.js → 3r-j6pmqrq4l1.js} +2 -2
  121. package/.next/standalone/.next/static/chunks/{2zwsbp8xyfv__.js → 3tfcj166ki-08.js} +1 -1
  122. package/.next/standalone/.next/static/chunks/{12ys9uaq6i1h2.js → 3uj5quosl7j_x.js} +1 -1
  123. package/.next/standalone/hermes-plugin/client.py +97 -37
  124. package/.next/standalone/hermes-plugin/plugin.yaml +1 -1
  125. package/.next/standalone/package.json +9 -9
  126. package/.next/standalone/server.js +1 -1
  127. package/bin/failproofai.mjs +66 -90
  128. package/dist/cli.mjs +1421 -1489
  129. package/dist/worker.mjs +19 -4
  130. package/hermes-plugin/client.py +97 -37
  131. package/hermes-plugin/plugin.yaml +1 -1
  132. package/openclaw-plugin/daemon-client.js +72 -16
  133. package/openclaw-plugin/hooks.js +12 -0
  134. package/package.json +9 -9
  135. package/pi-extension/index.ts +2 -0
  136. package/src/hooks/cloud-managed-policies.ts +22 -0
  137. package/src/hooks/config-status.ts +34 -21
  138. package/src/hooks/configure-wizard.ts +16 -3
  139. package/src/hooks/daemon-client.ts +59 -16
  140. package/src/hooks/daemon-service.ts +167 -19
  141. package/src/hooks/delivery-health.ts +10 -0
  142. package/src/hooks/fp-home.ts +8 -0
  143. package/src/hooks/fp-reset.ts +8 -2
  144. package/src/hooks/gateway-restart.ts +248 -0
  145. package/src/hooks/handler.ts +39 -2
  146. package/src/hooks/hermes-update.ts +18 -2
  147. package/src/hooks/hook-activity-store.ts +5 -0
  148. package/src/hooks/manager.ts +43 -9
  149. package/src/hooks/shell-quote.ts +19 -0
  150. package/src/hooks/update-run.ts +276 -0
  151. package/.next/standalone/.next/server/chunks/src_hooks_0_em82s16zfym._.js +0 -5
  152. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__05-glpesefmmi._.js +0 -3
  153. package/.next/standalone/.next/server/chunks/ssr/_0ge1hz9485xpp._.js +0 -3
  154. package/.next/standalone/.next/server/chunks/ssr/src_hooks_0agdmptetetdt._.js +0 -5
  155. package/.next/standalone/.next/server/chunks/ssr/src_hooks_0mdwgjisv4fub._.js +0 -5
  156. package/.next/standalone/.next/static/chunks/2o8j51ujh1ox4.js +0 -1
  157. /package/.next/standalone/.next/static/{-AugwIGiiIYcahO4J7mdM → _rnWxsoAWV0JPMURamq78}/_buildManifest.js +0 -0
  158. /package/.next/standalone/.next/static/{-AugwIGiiIYcahO4J7mdM → _rnWxsoAWV0JPMURamq78}/_clientMiddlewareManifest.js +0 -0
  159. /package/.next/standalone/.next/static/{-AugwIGiiIYcahO4J7mdM → _rnWxsoAWV0JPMURamq78}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[17694,e=>{"use strict";var t=e.i(32127);e.s(["f",0,function(){if("1"===process.env.FAILPROOFAI_TELEMETRY_DISABLED)return!1;try{return(0,t.f)().telemetry.enabled}catch{return!0}}])},10659,e=>{"use strict";let t;var i=e.i(2157),a=e.i(50227),r=e.i(60526),s=e.i(66680);e.i(74533);var n=e.i(79857);let o=a.default.join(r.default.homedir(),".failproofai"),l=a.default.join(o,"instance-id");function c(e){return s.default.createHmac("sha256","failproofai-telemetry-v1").update(e).digest("hex")}function d(e){let t;try{if(t=(0,n.z)(),i.default.readFileSync(t,"utf-8").trim()===e)return}catch{try{t=(0,n.z)()}catch{return}}try{i.default.mkdirSync(a.default.dirname(t),{recursive:!0});let r=`${t}.${process.pid}.tmp`;i.default.writeFileSync(r,e,{encoding:"utf-8",mode:384}),i.default.renameSync(r,t)}catch{}}e.s(["f",0,function(){if(t)return t;let e=function(){try{for(let e of(r.default.platform(),["/etc/machine-id","/var/lib/dbus/machine-id"]))try{let t=i.default.readFileSync(e,"utf-8").trim();if(t)return t}catch{}}catch{}}();if(e)return d(t=c(e)),t;let a=[r.default.hostname(),r.default.homedir(),r.default.platform(),r.default.arch(),r.default.cpus()[0]?.model??""].join(":");return a?d(t=c(a)):d(t=function(){try{let e=i.default.readFileSync(l,"utf-8").trim();if(e)return e}catch{}let e=s.default.randomUUID();try{i.default.mkdirSync(o,{recursive:!0}),i.default.writeFileSync(l,e,"utf-8")}catch{}return e}()),t}])},24214,(e,t,i)=>{t.exports={name:"failproofai",version:"1.0.15",description:"The reliability layer for AI agents: see every failure, stop it in realtime. Policies hooked into 12 agent harnesses — Claude Code, Codex, Cursor, Hermes, OpenClaw and more — block the tool call before it runs. Local dashboard included, no account needed.",bin:{failproofai:"./dist/cli.mjs",failproofaid:"./bin/failproofaid-shim.mjs"},files:["bin/","src/","scripts/","lib/","pi-extension/","hermes-plugin/","openclaw-plugin/",".next/standalone/","dist/","README.md"],engines:{node:">=20.9.0",bun:">=1.3.0"},scripts:{predev:"bun run build:cli && bun link",dev:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/dev.ts --port 8020","build:cli":"bun build --target=node --format=esm --outfile=dist/cli.mjs bin/failproofai.mjs --external posthog-node --external sql.js && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli.mjs','utf8');fs.writeFileSync('dist/cli.mjs',c.replace('#!/usr/bin/env bun','#!/usr/bin/env node').replace('// @bun\\n',''))\"","build:worker":"bun build --target=node --format=esm --outfile=dist/worker.mjs bin/failproofai-worker.mjs --external posthog-node --external sql.js",build:"bun build --target=node --format=cjs --outfile=dist/index.js src/index.ts && bun run build:cli && bun run build:worker && bun --bun next build && node -e \"const {cpSync}=require('fs');cpSync('.next/static','.next/standalone/.next/static',{recursive:true});\" && node scripts/prune-standalone.mjs",prestart:"bun run build:cli && bun link",start:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/start.ts",test:"vitest","test:run":"vitest run",lint:"eslint . --config eslint.config.mjs",prepare:"bun run build","test:e2e":"vitest run --config vitest.config.e2e.mts","test:e2e:watch":"vitest --config vitest.config.e2e.mts",translate:"bun scripts/translate-docs/cli.ts","translate:readme":"bun scripts/translate-docs/cli.ts --readme-only","translate:docs":"bun scripts/translate-docs/cli.ts --docs-only","translate:dry-run":"bun scripts/translate-docs/cli.ts --dry-run","translate:validate":"bun scripts/translate-docs/cli.ts --validate","validate:mdx":"bun scripts/validate-mdx.ts","docs:audit":"bun scripts/docs-audit.ts","build:pack":"bun scripts/build-policy-pack.mjs"},keywords:["agent-observability","llm-observability","agent-tracing","agent-monitoring","agent-harness","guardrails","enforcement","policies","evals","ai-agent","autonomous-agent","agent-reliability","failure-prevention","claude-code","codex","hermes","openclaw","cli","local-first","hooks"],author:"ExosphereHost Inc. <failproofai@exosphere.host>",license:"SEE LICENSE IN LICENSE",homepage:"https://github.com/FailproofAI/failproofai",repository:{type:"git",url:"https://github.com/FailproofAI/failproofai.git"},bugs:{url:"https://github.com/FailproofAI/failproofai/issues"},publishConfig:{access:"public"},devDependencies:{"@anthropic-ai/sdk":"^1.3.0","@mdx-js/mdx":"^3.1.1","@tailwindcss/postcss":"^4.3.1","@tanstack/react-virtual":"^3.14.10","@testing-library/jest-dom":"^7.0.0","@testing-library/react":"^16.3.2","@testing-library/user-event":"^14.6.5","@types/node":"26.6.6","@types/react":"19.3.0","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^6.1.0",clsx:"^2.1.1",eslint:"^10.9.0","eslint-config-next":"^16.3.2",jsdom:"^31.0.0","lucide-react":"^1.33.0",next:"^16.3.8",react:"^19.2.4","react-dom":"^19.2.4","tailwind-merge":"^3.4.0",tailwindcss:"^4.3.1",typescript:"6.0.3",vitest:"^5.0.0"},dependencies:{"html-to-image":"^1.11.13","jsonc-parser":"^3.3.1","posthog-node":"^5.50.0","smol-toml":"^1.9.1","sql.js":"^1.14.1",yaml:"^2.9.0"},overrides:{nanoid:"3.3.18",postcss:"8.5.26","eslint-plugin-react-hooks":"7.0.1",vite:"8.1.6",undici:"7.30.1",zod:"4.6.6","brace-expansion":"5.0.12",sharp:"0.35.5","source-map-js":"1.2.2",browserslist:"4.28.8",minimatch:"11.0.3"},optionalDependencies:{"@failproofai/failproofaid-linux-x64":"1.0.15","@failproofai/failproofaid-linux-arm64":"1.0.15","@failproofai/failproofaid-darwin-x64":"1.0.15","@failproofai/failproofaid-darwin-arm64":"1.0.15"},failproofaidBinaries:{"linux-x64":"e5c7543ab9aeb5366e804d4cf5aef8ee35ef340f145c1c15f683b76761426fe6","linux-arm64":"06d27497490f7a1cec34f03808a3bf6a5644830fdf7db9133642b464f5affcde","darwin-x64":"763e6a6790d8c247765a83c92f9de65875807c96fee098c15748ac098ff99513","darwin-arm64":"a422303761f70023ad9a8d3a9b0b0e8689adc4669bddd90f72722b3df6b33ab4"}}},28067,e=>{"use strict";e.s(["_",0,"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX","W",0,"failproofai-oss"])}];
1
+ module.exports=[17694,e=>{"use strict";var t=e.i(32127);e.s(["f",0,function(){if("1"===process.env.FAILPROOFAI_TELEMETRY_DISABLED)return!1;try{return(0,t.f)().telemetry.enabled}catch{return!0}}])},10659,e=>{"use strict";let t;var i=e.i(2157),a=e.i(50227),r=e.i(60526),s=e.i(66680);e.i(74533);var n=e.i(79857);let o=a.default.join(r.default.homedir(),".failproofai"),l=a.default.join(o,"instance-id");function c(e){return s.default.createHmac("sha256","failproofai-telemetry-v1").update(e).digest("hex")}function d(e){let t;try{if(t=(0,n.z)(),i.default.readFileSync(t,"utf-8").trim()===e)return}catch{try{t=(0,n.z)()}catch{return}}try{i.default.mkdirSync(a.default.dirname(t),{recursive:!0});let r=`${t}.${process.pid}.tmp`;i.default.writeFileSync(r,e,{encoding:"utf-8",mode:384}),i.default.renameSync(r,t)}catch{}}e.s(["f",0,function(){if(t)return t;let e=function(){try{for(let e of(r.default.platform(),["/etc/machine-id","/var/lib/dbus/machine-id"]))try{let t=i.default.readFileSync(e,"utf-8").trim();if(t)return t}catch{}}catch{}}();if(e)return d(t=c(e)),t;let a=[r.default.hostname(),r.default.homedir(),r.default.platform(),r.default.arch(),r.default.cpus()[0]?.model??""].join(":");return a?d(t=c(a)):d(t=function(){try{let e=i.default.readFileSync(l,"utf-8").trim();if(e)return e}catch{}let e=s.default.randomUUID();try{i.default.mkdirSync(o,{recursive:!0}),i.default.writeFileSync(l,e,"utf-8")}catch{}return e}()),t}])},24214,(e,t,i)=>{t.exports={name:"failproofai",version:"1.0.16-beta.0",description:"The reliability layer for AI agents: see every failure, stop it in realtime. Policies hooked into 12 agent harnesses — Claude Code, Codex, Cursor, Hermes, OpenClaw and more — block the tool call before it runs. Local dashboard included, no account needed.",bin:{failproofai:"./dist/cli.mjs",failproofaid:"./bin/failproofaid-shim.mjs"},files:["bin/","src/","scripts/","lib/","pi-extension/","hermes-plugin/","openclaw-plugin/",".next/standalone/","dist/","README.md"],engines:{node:">=20.9.0",bun:">=1.3.0"},scripts:{predev:"bun run build:cli && bun link",dev:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/dev.ts --port 8020","build:cli":"bun build --target=node --format=esm --outfile=dist/cli.mjs bin/failproofai.mjs --external posthog-node --external sql.js && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli.mjs','utf8');fs.writeFileSync('dist/cli.mjs',c.replace('#!/usr/bin/env bun','#!/usr/bin/env node').replace('// @bun\\n',''))\"","build:worker":"bun build --target=node --format=esm --outfile=dist/worker.mjs bin/failproofai-worker.mjs --external posthog-node --external sql.js",build:"bun build --target=node --format=cjs --outfile=dist/index.js src/index.ts && bun run build:cli && bun run build:worker && bun --bun next build && node -e \"const {cpSync}=require('fs');cpSync('.next/static','.next/standalone/.next/static',{recursive:true});\" && node scripts/prune-standalone.mjs",prestart:"bun run build:cli && bun link",start:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/start.ts",test:"vitest","test:run":"vitest run",lint:"eslint . --config eslint.config.mjs",prepare:"bun run build","test:e2e":"vitest run --config vitest.config.e2e.mts","test:e2e:watch":"vitest --config vitest.config.e2e.mts",translate:"bun scripts/translate-docs/cli.ts","translate:readme":"bun scripts/translate-docs/cli.ts --readme-only","translate:docs":"bun scripts/translate-docs/cli.ts --docs-only","translate:dry-run":"bun scripts/translate-docs/cli.ts --dry-run","translate:validate":"bun scripts/translate-docs/cli.ts --validate","validate:mdx":"bun scripts/validate-mdx.ts","docs:audit":"bun scripts/docs-audit.ts","build:pack":"bun scripts/build-policy-pack.mjs"},keywords:["agent-observability","llm-observability","agent-tracing","agent-monitoring","agent-harness","guardrails","enforcement","policies","evals","ai-agent","autonomous-agent","agent-reliability","failure-prevention","claude-code","codex","hermes","openclaw","cli","local-first","hooks"],author:"ExosphereHost Inc. <failproofai@exosphere.host>",license:"SEE LICENSE IN LICENSE",homepage:"https://github.com/FailproofAI/failproofai",repository:{type:"git",url:"https://github.com/FailproofAI/failproofai.git"},bugs:{url:"https://github.com/FailproofAI/failproofai/issues"},publishConfig:{access:"public"},devDependencies:{"@anthropic-ai/sdk":"^1.3.0","@mdx-js/mdx":"^3.1.1","@tailwindcss/postcss":"^4.3.1","@tanstack/react-virtual":"^3.14.10","@testing-library/jest-dom":"^7.0.0","@testing-library/react":"^16.3.2","@testing-library/user-event":"^14.6.5","@types/node":"26.6.6","@types/react":"19.3.0","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^6.1.0",clsx:"^2.1.1",eslint:"^10.9.0","eslint-config-next":"^16.3.2",jsdom:"^31.0.0","lucide-react":"^1.33.0",next:"^16.3.8",react:"^19.2.4","react-dom":"^19.2.4","tailwind-merge":"^3.4.0",tailwindcss:"^4.3.1",typescript:"6.0.3",vitest:"^5.0.0"},dependencies:{"html-to-image":"^1.11.13","jsonc-parser":"^3.3.1","posthog-node":"^5.50.0","smol-toml":"^1.9.1","sql.js":"^1.14.1",yaml:"^2.9.0"},overrides:{nanoid:"3.3.18",postcss:"8.5.26","eslint-plugin-react-hooks":"7.0.1",vite:"8.1.6",undici:"7.30.1",zod:"4.6.6","brace-expansion":"5.0.12",sharp:"0.35.5","source-map-js":"1.2.2",browserslist:"4.28.8",minimatch:"11.0.3"},optionalDependencies:{"@failproofai/failproofaid-linux-x64":"1.0.16-beta.0","@failproofai/failproofaid-linux-arm64":"1.0.16-beta.0","@failproofai/failproofaid-darwin-x64":"1.0.16-beta.0","@failproofai/failproofaid-darwin-arm64":"1.0.16-beta.0"},failproofaidBinaries:{"linux-x64":"201c0518311a351fafb7ba856a8a6f441d3100497c8ce68f2954575c57bd90a9","linux-arm64":"9dfbd061d38024e3680060fb753129b63e032404948f40db825517584a1b9fb4","darwin-x64":"9b4f2b8476cddbaca32f1afe1f5c37b542d08308f58cb23277cf885dc497c157","darwin-arm64":"3b7de91ac706baa744fc7c2c059ae5ebfd5b4600a6a3c726561d685cfb13c0e8"}}},28067,e=>{"use strict";e.s(["_",0,"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX","W",0,"failproofai-oss"])}];
2
2
 
3
3
  //# sourceMappingURL=_0tovk6q0miud6._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[17694,e=>{"use strict";var t=e.i(32127);e.s(["f",0,function(){if("1"===process.env.FAILPROOFAI_TELEMETRY_DISABLED)return!1;try{return(0,t.f)().telemetry.enabled}catch{return!0}}])},10659,e=>{"use strict";let t;var i=e.i(2157),a=e.i(50227),r=e.i(60526),s=e.i(66680);e.i(74533);var n=e.i(79857);let o=a.default.join(r.default.homedir(),".failproofai"),l=a.default.join(o,"instance-id");function c(e){return s.default.createHmac("sha256","failproofai-telemetry-v1").update(e).digest("hex")}function d(e){let t;try{if(t=(0,n.z)(),i.default.readFileSync(t,"utf-8").trim()===e)return}catch{try{t=(0,n.z)()}catch{return}}try{i.default.mkdirSync(a.default.dirname(t),{recursive:!0});let r=`${t}.${process.pid}.tmp`;i.default.writeFileSync(r,e,{encoding:"utf-8",mode:384}),i.default.renameSync(r,t)}catch{}}e.s(["f",0,function(){if(t)return t;let e=function(){try{for(let e of(r.default.platform(),["/etc/machine-id","/var/lib/dbus/machine-id"]))try{let t=i.default.readFileSync(e,"utf-8").trim();if(t)return t}catch{}}catch{}}();if(e)return d(t=c(e)),t;let a=[r.default.hostname(),r.default.homedir(),r.default.platform(),r.default.arch(),r.default.cpus()[0]?.model??""].join(":");return a?d(t=c(a)):d(t=function(){try{let e=i.default.readFileSync(l,"utf-8").trim();if(e)return e}catch{}let e=s.default.randomUUID();try{i.default.mkdirSync(o,{recursive:!0}),i.default.writeFileSync(l,e,"utf-8")}catch{}return e}()),t}])},24214,(e,t,i)=>{t.exports={name:"failproofai",version:"1.0.15",description:"The reliability layer for AI agents: see every failure, stop it in realtime. Policies hooked into 12 agent harnesses — Claude Code, Codex, Cursor, Hermes, OpenClaw and more — block the tool call before it runs. Local dashboard included, no account needed.",bin:{failproofai:"./dist/cli.mjs",failproofaid:"./bin/failproofaid-shim.mjs"},files:["bin/","src/","scripts/","lib/","pi-extension/","hermes-plugin/","openclaw-plugin/",".next/standalone/","dist/","README.md"],engines:{node:">=20.9.0",bun:">=1.3.0"},scripts:{predev:"bun run build:cli && bun link",dev:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/dev.ts --port 8020","build:cli":"bun build --target=node --format=esm --outfile=dist/cli.mjs bin/failproofai.mjs --external posthog-node --external sql.js && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli.mjs','utf8');fs.writeFileSync('dist/cli.mjs',c.replace('#!/usr/bin/env bun','#!/usr/bin/env node').replace('// @bun\\n',''))\"","build:worker":"bun build --target=node --format=esm --outfile=dist/worker.mjs bin/failproofai-worker.mjs --external posthog-node --external sql.js",build:"bun build --target=node --format=cjs --outfile=dist/index.js src/index.ts && bun run build:cli && bun run build:worker && bun --bun next build && node -e \"const {cpSync}=require('fs');cpSync('.next/static','.next/standalone/.next/static',{recursive:true});\" && node scripts/prune-standalone.mjs",prestart:"bun run build:cli && bun link",start:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/start.ts",test:"vitest","test:run":"vitest run",lint:"eslint . --config eslint.config.mjs",prepare:"bun run build","test:e2e":"vitest run --config vitest.config.e2e.mts","test:e2e:watch":"vitest --config vitest.config.e2e.mts",translate:"bun scripts/translate-docs/cli.ts","translate:readme":"bun scripts/translate-docs/cli.ts --readme-only","translate:docs":"bun scripts/translate-docs/cli.ts --docs-only","translate:dry-run":"bun scripts/translate-docs/cli.ts --dry-run","translate:validate":"bun scripts/translate-docs/cli.ts --validate","validate:mdx":"bun scripts/validate-mdx.ts","docs:audit":"bun scripts/docs-audit.ts","build:pack":"bun scripts/build-policy-pack.mjs"},keywords:["agent-observability","llm-observability","agent-tracing","agent-monitoring","agent-harness","guardrails","enforcement","policies","evals","ai-agent","autonomous-agent","agent-reliability","failure-prevention","claude-code","codex","hermes","openclaw","cli","local-first","hooks"],author:"ExosphereHost Inc. <failproofai@exosphere.host>",license:"SEE LICENSE IN LICENSE",homepage:"https://github.com/FailproofAI/failproofai",repository:{type:"git",url:"https://github.com/FailproofAI/failproofai.git"},bugs:{url:"https://github.com/FailproofAI/failproofai/issues"},publishConfig:{access:"public"},devDependencies:{"@anthropic-ai/sdk":"^1.3.0","@mdx-js/mdx":"^3.1.1","@tailwindcss/postcss":"^4.3.1","@tanstack/react-virtual":"^3.14.10","@testing-library/jest-dom":"^7.0.0","@testing-library/react":"^16.3.2","@testing-library/user-event":"^14.6.5","@types/node":"26.6.6","@types/react":"19.3.0","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^6.1.0",clsx:"^2.1.1",eslint:"^10.9.0","eslint-config-next":"^16.3.2",jsdom:"^31.0.0","lucide-react":"^1.33.0",next:"^16.3.8",react:"^19.2.4","react-dom":"^19.2.4","tailwind-merge":"^3.4.0",tailwindcss:"^4.3.1",typescript:"6.0.3",vitest:"^5.0.0"},dependencies:{"html-to-image":"^1.11.13","jsonc-parser":"^3.3.1","posthog-node":"^5.50.0","smol-toml":"^1.9.1","sql.js":"^1.14.1",yaml:"^2.9.0"},overrides:{nanoid:"3.3.18",postcss:"8.5.26","eslint-plugin-react-hooks":"7.0.1",vite:"8.1.6",undici:"7.30.1",zod:"4.6.6","brace-expansion":"5.0.12",sharp:"0.35.5","source-map-js":"1.2.2",browserslist:"4.28.8",minimatch:"11.0.3"},optionalDependencies:{"@failproofai/failproofaid-linux-x64":"1.0.15","@failproofai/failproofaid-linux-arm64":"1.0.15","@failproofai/failproofaid-darwin-x64":"1.0.15","@failproofai/failproofaid-darwin-arm64":"1.0.15"},failproofaidBinaries:{"linux-x64":"e5c7543ab9aeb5366e804d4cf5aef8ee35ef340f145c1c15f683b76761426fe6","linux-arm64":"06d27497490f7a1cec34f03808a3bf6a5644830fdf7db9133642b464f5affcde","darwin-x64":"763e6a6790d8c247765a83c92f9de65875807c96fee098c15748ac098ff99513","darwin-arm64":"a422303761f70023ad9a8d3a9b0b0e8689adc4669bddd90f72722b3df6b33ab4"}}},28067,e=>{"use strict";e.s(["_",0,"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX","W",0,"failproofai-oss"])}];
1
+ module.exports=[17694,e=>{"use strict";var t=e.i(32127);e.s(["f",0,function(){if("1"===process.env.FAILPROOFAI_TELEMETRY_DISABLED)return!1;try{return(0,t.f)().telemetry.enabled}catch{return!0}}])},10659,e=>{"use strict";let t;var i=e.i(2157),a=e.i(50227),r=e.i(60526),s=e.i(66680);e.i(74533);var n=e.i(79857);let o=a.default.join(r.default.homedir(),".failproofai"),l=a.default.join(o,"instance-id");function c(e){return s.default.createHmac("sha256","failproofai-telemetry-v1").update(e).digest("hex")}function d(e){let t;try{if(t=(0,n.z)(),i.default.readFileSync(t,"utf-8").trim()===e)return}catch{try{t=(0,n.z)()}catch{return}}try{i.default.mkdirSync(a.default.dirname(t),{recursive:!0});let r=`${t}.${process.pid}.tmp`;i.default.writeFileSync(r,e,{encoding:"utf-8",mode:384}),i.default.renameSync(r,t)}catch{}}e.s(["f",0,function(){if(t)return t;let e=function(){try{for(let e of(r.default.platform(),["/etc/machine-id","/var/lib/dbus/machine-id"]))try{let t=i.default.readFileSync(e,"utf-8").trim();if(t)return t}catch{}}catch{}}();if(e)return d(t=c(e)),t;let a=[r.default.hostname(),r.default.homedir(),r.default.platform(),r.default.arch(),r.default.cpus()[0]?.model??""].join(":");return a?d(t=c(a)):d(t=function(){try{let e=i.default.readFileSync(l,"utf-8").trim();if(e)return e}catch{}let e=s.default.randomUUID();try{i.default.mkdirSync(o,{recursive:!0}),i.default.writeFileSync(l,e,"utf-8")}catch{}return e}()),t}])},24214,(e,t,i)=>{t.exports={name:"failproofai",version:"1.0.16-beta.0",description:"The reliability layer for AI agents: see every failure, stop it in realtime. Policies hooked into 12 agent harnesses — Claude Code, Codex, Cursor, Hermes, OpenClaw and more — block the tool call before it runs. Local dashboard included, no account needed.",bin:{failproofai:"./dist/cli.mjs",failproofaid:"./bin/failproofaid-shim.mjs"},files:["bin/","src/","scripts/","lib/","pi-extension/","hermes-plugin/","openclaw-plugin/",".next/standalone/","dist/","README.md"],engines:{node:">=20.9.0",bun:">=1.3.0"},scripts:{predev:"bun run build:cli && bun link",dev:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/dev.ts --port 8020","build:cli":"bun build --target=node --format=esm --outfile=dist/cli.mjs bin/failproofai.mjs --external posthog-node --external sql.js && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli.mjs','utf8');fs.writeFileSync('dist/cli.mjs',c.replace('#!/usr/bin/env bun','#!/usr/bin/env node').replace('// @bun\\n',''))\"","build:worker":"bun build --target=node --format=esm --outfile=dist/worker.mjs bin/failproofai-worker.mjs --external posthog-node --external sql.js",build:"bun build --target=node --format=cjs --outfile=dist/index.js src/index.ts && bun run build:cli && bun run build:worker && bun --bun next build && node -e \"const {cpSync}=require('fs');cpSync('.next/static','.next/standalone/.next/static',{recursive:true});\" && node scripts/prune-standalone.mjs",prestart:"bun run build:cli && bun link",start:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/start.ts",test:"vitest","test:run":"vitest run",lint:"eslint . --config eslint.config.mjs",prepare:"bun run build","test:e2e":"vitest run --config vitest.config.e2e.mts","test:e2e:watch":"vitest --config vitest.config.e2e.mts",translate:"bun scripts/translate-docs/cli.ts","translate:readme":"bun scripts/translate-docs/cli.ts --readme-only","translate:docs":"bun scripts/translate-docs/cli.ts --docs-only","translate:dry-run":"bun scripts/translate-docs/cli.ts --dry-run","translate:validate":"bun scripts/translate-docs/cli.ts --validate","validate:mdx":"bun scripts/validate-mdx.ts","docs:audit":"bun scripts/docs-audit.ts","build:pack":"bun scripts/build-policy-pack.mjs"},keywords:["agent-observability","llm-observability","agent-tracing","agent-monitoring","agent-harness","guardrails","enforcement","policies","evals","ai-agent","autonomous-agent","agent-reliability","failure-prevention","claude-code","codex","hermes","openclaw","cli","local-first","hooks"],author:"ExosphereHost Inc. <failproofai@exosphere.host>",license:"SEE LICENSE IN LICENSE",homepage:"https://github.com/FailproofAI/failproofai",repository:{type:"git",url:"https://github.com/FailproofAI/failproofai.git"},bugs:{url:"https://github.com/FailproofAI/failproofai/issues"},publishConfig:{access:"public"},devDependencies:{"@anthropic-ai/sdk":"^1.3.0","@mdx-js/mdx":"^3.1.1","@tailwindcss/postcss":"^4.3.1","@tanstack/react-virtual":"^3.14.10","@testing-library/jest-dom":"^7.0.0","@testing-library/react":"^16.3.2","@testing-library/user-event":"^14.6.5","@types/node":"26.6.6","@types/react":"19.3.0","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^6.1.0",clsx:"^2.1.1",eslint:"^10.9.0","eslint-config-next":"^16.3.2",jsdom:"^31.0.0","lucide-react":"^1.33.0",next:"^16.3.8",react:"^19.2.4","react-dom":"^19.2.4","tailwind-merge":"^3.4.0",tailwindcss:"^4.3.1",typescript:"6.0.3",vitest:"^5.0.0"},dependencies:{"html-to-image":"^1.11.13","jsonc-parser":"^3.3.1","posthog-node":"^5.50.0","smol-toml":"^1.9.1","sql.js":"^1.14.1",yaml:"^2.9.0"},overrides:{nanoid:"3.3.18",postcss:"8.5.26","eslint-plugin-react-hooks":"7.0.1",vite:"8.1.6",undici:"7.30.1",zod:"4.6.6","brace-expansion":"5.0.12",sharp:"0.35.5","source-map-js":"1.2.2",browserslist:"4.28.8",minimatch:"11.0.3"},optionalDependencies:{"@failproofai/failproofaid-linux-x64":"1.0.16-beta.0","@failproofai/failproofaid-linux-arm64":"1.0.16-beta.0","@failproofai/failproofaid-darwin-x64":"1.0.16-beta.0","@failproofai/failproofaid-darwin-arm64":"1.0.16-beta.0"},failproofaidBinaries:{"linux-x64":"201c0518311a351fafb7ba856a8a6f441d3100497c8ce68f2954575c57bd90a9","linux-arm64":"9dfbd061d38024e3680060fb753129b63e032404948f40db825517584a1b9fb4","darwin-x64":"9b4f2b8476cddbaca32f1afe1f5c37b542d08308f58cb23277cf885dc497c157","darwin-arm64":"3b7de91ac706baa744fc7c2c059ae5ebfd5b4600a6a3c726561d685cfb13c0e8"}}},28067,e=>{"use strict";e.s(["_",0,"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX","W",0,"failproofai-oss"])}];
2
2
 
3
3
  //# sourceMappingURL=_0trp3ycqv17cl._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[93133,(e,i,t)=>{i.exports={name:"failproofai",version:"1.0.15",description:"The reliability layer for AI agents: see every failure, stop it in realtime. Policies hooked into 12 agent harnesses — Claude Code, Codex, Cursor, Hermes, OpenClaw and more — block the tool call before it runs. Local dashboard included, no account needed.",bin:{failproofai:"./dist/cli.mjs",failproofaid:"./bin/failproofaid-shim.mjs"},files:["bin/","src/","scripts/","lib/","pi-extension/","hermes-plugin/","openclaw-plugin/",".next/standalone/","dist/","README.md"],engines:{node:">=20.9.0",bun:">=1.3.0"},scripts:{predev:"bun run build:cli && bun link",dev:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/dev.ts --port 8020","build:cli":"bun build --target=node --format=esm --outfile=dist/cli.mjs bin/failproofai.mjs --external posthog-node --external sql.js && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli.mjs','utf8');fs.writeFileSync('dist/cli.mjs',c.replace('#!/usr/bin/env bun','#!/usr/bin/env node').replace('// @bun\\n',''))\"","build:worker":"bun build --target=node --format=esm --outfile=dist/worker.mjs bin/failproofai-worker.mjs --external posthog-node --external sql.js",build:"bun build --target=node --format=cjs --outfile=dist/index.js src/index.ts && bun run build:cli && bun run build:worker && bun --bun next build && node -e \"const {cpSync}=require('fs');cpSync('.next/static','.next/standalone/.next/static',{recursive:true});\" && node scripts/prune-standalone.mjs",prestart:"bun run build:cli && bun link",start:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/start.ts",test:"vitest","test:run":"vitest run",lint:"eslint . --config eslint.config.mjs",prepare:"bun run build","test:e2e":"vitest run --config vitest.config.e2e.mts","test:e2e:watch":"vitest --config vitest.config.e2e.mts",translate:"bun scripts/translate-docs/cli.ts","translate:readme":"bun scripts/translate-docs/cli.ts --readme-only","translate:docs":"bun scripts/translate-docs/cli.ts --docs-only","translate:dry-run":"bun scripts/translate-docs/cli.ts --dry-run","translate:validate":"bun scripts/translate-docs/cli.ts --validate","validate:mdx":"bun scripts/validate-mdx.ts","docs:audit":"bun scripts/docs-audit.ts","build:pack":"bun scripts/build-policy-pack.mjs"},keywords:["agent-observability","llm-observability","agent-tracing","agent-monitoring","agent-harness","guardrails","enforcement","policies","evals","ai-agent","autonomous-agent","agent-reliability","failure-prevention","claude-code","codex","hermes","openclaw","cli","local-first","hooks"],author:"ExosphereHost Inc. <failproofai@exosphere.host>",license:"SEE LICENSE IN LICENSE",homepage:"https://github.com/FailproofAI/failproofai",repository:{type:"git",url:"https://github.com/FailproofAI/failproofai.git"},bugs:{url:"https://github.com/FailproofAI/failproofai/issues"},publishConfig:{access:"public"},devDependencies:{"@anthropic-ai/sdk":"^1.3.0","@mdx-js/mdx":"^3.1.1","@tailwindcss/postcss":"^4.3.1","@tanstack/react-virtual":"^3.14.10","@testing-library/jest-dom":"^7.0.0","@testing-library/react":"^16.3.2","@testing-library/user-event":"^14.6.5","@types/node":"26.6.6","@types/react":"19.3.0","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^6.1.0",clsx:"^2.1.1",eslint:"^10.9.0","eslint-config-next":"^16.3.2",jsdom:"^31.0.0","lucide-react":"^1.33.0",next:"^16.3.8",react:"^19.2.4","react-dom":"^19.2.4","tailwind-merge":"^3.4.0",tailwindcss:"^4.3.1",typescript:"6.0.3",vitest:"^5.0.0"},dependencies:{"html-to-image":"^1.11.13","jsonc-parser":"^3.3.1","posthog-node":"^5.50.0","smol-toml":"^1.9.1","sql.js":"^1.14.1",yaml:"^2.9.0"},overrides:{nanoid:"3.3.18",postcss:"8.5.26","eslint-plugin-react-hooks":"7.0.1",vite:"8.1.6",undici:"7.30.1",zod:"4.6.6","brace-expansion":"5.0.12",sharp:"0.35.5","source-map-js":"1.2.2",browserslist:"4.28.8",minimatch:"11.0.3"},optionalDependencies:{"@failproofai/failproofaid-linux-x64":"1.0.15","@failproofai/failproofaid-linux-arm64":"1.0.15","@failproofai/failproofaid-darwin-x64":"1.0.15","@failproofai/failproofaid-darwin-arm64":"1.0.15"},failproofaidBinaries:{"linux-x64":"e5c7543ab9aeb5366e804d4cf5aef8ee35ef340f145c1c15f683b76761426fe6","linux-arm64":"06d27497490f7a1cec34f03808a3bf6a5644830fdf7db9133642b464f5affcde","darwin-x64":"763e6a6790d8c247765a83c92f9de65875807c96fee098c15748ac098ff99513","darwin-arm64":"a422303761f70023ad9a8d3a9b0b0e8689adc4669bddd90f72722b3df6b33ab4"}}}];
1
+ module.exports=[93133,(e,i,t)=>{i.exports={name:"failproofai",version:"1.0.16-beta.0",description:"The reliability layer for AI agents: see every failure, stop it in realtime. Policies hooked into 12 agent harnesses — Claude Code, Codex, Cursor, Hermes, OpenClaw and more — block the tool call before it runs. Local dashboard included, no account needed.",bin:{failproofai:"./dist/cli.mjs",failproofaid:"./bin/failproofaid-shim.mjs"},files:["bin/","src/","scripts/","lib/","pi-extension/","hermes-plugin/","openclaw-plugin/",".next/standalone/","dist/","README.md"],engines:{node:">=20.9.0",bun:">=1.3.0"},scripts:{predev:"bun run build:cli && bun link",dev:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/dev.ts --port 8020","build:cli":"bun build --target=node --format=esm --outfile=dist/cli.mjs bin/failproofai.mjs --external posthog-node --external sql.js && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli.mjs','utf8');fs.writeFileSync('dist/cli.mjs',c.replace('#!/usr/bin/env bun','#!/usr/bin/env node').replace('// @bun\\n',''))\"","build:worker":"bun build --target=node --format=esm --outfile=dist/worker.mjs bin/failproofai-worker.mjs --external posthog-node --external sql.js",build:"bun build --target=node --format=cjs --outfile=dist/index.js src/index.ts && bun run build:cli && bun run build:worker && bun --bun next build && node -e \"const {cpSync}=require('fs');cpSync('.next/static','.next/standalone/.next/static',{recursive:true});\" && node scripts/prune-standalone.mjs",prestart:"bun run build:cli && bun link",start:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/start.ts",test:"vitest","test:run":"vitest run",lint:"eslint . --config eslint.config.mjs",prepare:"bun run build","test:e2e":"vitest run --config vitest.config.e2e.mts","test:e2e:watch":"vitest --config vitest.config.e2e.mts",translate:"bun scripts/translate-docs/cli.ts","translate:readme":"bun scripts/translate-docs/cli.ts --readme-only","translate:docs":"bun scripts/translate-docs/cli.ts --docs-only","translate:dry-run":"bun scripts/translate-docs/cli.ts --dry-run","translate:validate":"bun scripts/translate-docs/cli.ts --validate","validate:mdx":"bun scripts/validate-mdx.ts","docs:audit":"bun scripts/docs-audit.ts","build:pack":"bun scripts/build-policy-pack.mjs"},keywords:["agent-observability","llm-observability","agent-tracing","agent-monitoring","agent-harness","guardrails","enforcement","policies","evals","ai-agent","autonomous-agent","agent-reliability","failure-prevention","claude-code","codex","hermes","openclaw","cli","local-first","hooks"],author:"ExosphereHost Inc. <failproofai@exosphere.host>",license:"SEE LICENSE IN LICENSE",homepage:"https://github.com/FailproofAI/failproofai",repository:{type:"git",url:"https://github.com/FailproofAI/failproofai.git"},bugs:{url:"https://github.com/FailproofAI/failproofai/issues"},publishConfig:{access:"public"},devDependencies:{"@anthropic-ai/sdk":"^1.3.0","@mdx-js/mdx":"^3.1.1","@tailwindcss/postcss":"^4.3.1","@tanstack/react-virtual":"^3.14.10","@testing-library/jest-dom":"^7.0.0","@testing-library/react":"^16.3.2","@testing-library/user-event":"^14.6.5","@types/node":"26.6.6","@types/react":"19.3.0","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^6.1.0",clsx:"^2.1.1",eslint:"^10.9.0","eslint-config-next":"^16.3.2",jsdom:"^31.0.0","lucide-react":"^1.33.0",next:"^16.3.8",react:"^19.2.4","react-dom":"^19.2.4","tailwind-merge":"^3.4.0",tailwindcss:"^4.3.1",typescript:"6.0.3",vitest:"^5.0.0"},dependencies:{"html-to-image":"^1.11.13","jsonc-parser":"^3.3.1","posthog-node":"^5.50.0","smol-toml":"^1.9.1","sql.js":"^1.14.1",yaml:"^2.9.0"},overrides:{nanoid:"3.3.18",postcss:"8.5.26","eslint-plugin-react-hooks":"7.0.1",vite:"8.1.6",undici:"7.30.1",zod:"4.6.6","brace-expansion":"5.0.12",sharp:"0.35.5","source-map-js":"1.2.2",browserslist:"4.28.8",minimatch:"11.0.3"},optionalDependencies:{"@failproofai/failproofaid-linux-x64":"1.0.16-beta.0","@failproofai/failproofaid-linux-arm64":"1.0.16-beta.0","@failproofai/failproofaid-darwin-x64":"1.0.16-beta.0","@failproofai/failproofaid-darwin-arm64":"1.0.16-beta.0"},failproofaidBinaries:{"linux-x64":"201c0518311a351fafb7ba856a8a6f441d3100497c8ce68f2954575c57bd90a9","linux-arm64":"9dfbd061d38024e3680060fb753129b63e032404948f40db825517584a1b9fb4","darwin-x64":"9b4f2b8476cddbaca32f1afe1f5c37b542d08308f58cb23277cf885dc497c157","darwin-arm64":"3b7de91ac706baa744fc7c2c059ae5ebfd5b4600a6a3c726561d685cfb13c0e8"}}}];
2
2
 
3
3
  //# sourceMappingURL=package_json_%5Bjson%5D_cjs_1nxcc4vkpxxu7._.js.map
@@ -0,0 +1,5 @@
1
+ module.exports=[16560,38441,e=>{"use strict";let t=["claude","codex","copilot","cursor","opencode","pi","hermes","openclaw","factory","devin","antigravity","goose"],r=["SessionStart","SessionEnd","UserPromptSubmit","PreToolUse","PermissionRequest","PermissionDenied","PostToolUse","PostToolUseFailure","Notification","SubagentStart","SubagentStop","TaskCreated","TaskCompleted","Stop","StopFailure","TeammateIdle","InstructionsLoaded","ConfigChange","CwdChanged","FileChanged","WorktreeCreate","WorktreeRemove","PreCompact","PostCompact","Elicitation","ElicitationResult","UserPromptExpansion","PostToolBatch","Setup"].filter(e=>"WorktreeCreate"!==e);e.s(["X",0,["PreToolUse","PostToolUse","PreInvocation","Stop"],"m",0,["user","project"],"H",0,{Bash:{CommandLine:"command",Cwd:"cwd"},Write:{Path:"file_path",Content:"content",TargetFile:"file_path",CodeContent:"content"},Edit:{Path:"file_path",Target:"old_string",Replacement:"new_string",TargetFile:"file_path"},Read:{Path:"file_path",TargetFile:"file_path",AbsolutePath:"file_path",File:"file_path"}},"I",0,{run_command:"Bash",write_to_file:"Write",write_file:"Write",read_file:"Read",view_file:"Read",edit_file:"Edit",replace_file_content:"Edit",list_dir:"LS",find_by_name:"Glob",grep_search:"Grep",read_url_content:"WebFetch",search_web:"WebSearch"},"J",0,r,"p",0,{session_start:"SessionStart",pre_tool_use:"PreToolUse",permission_request:"PermissionRequest",post_tool_use:"PostToolUse",user_prompt_submit:"UserPromptSubmit",stop:"Stop",subagent_start:"SubagentStart",pre_compact:"PreCompact",post_compact:"PostCompact",subagent_stop:"SubagentStop"},"W",0,["session_start","pre_tool_use","permission_request","post_tool_use","user_prompt_submit","stop","subagent_start","pre_compact","post_compact","subagent_stop"],"L",0,["user","project"],"j",0,{apply_patch:"Edit",write_stdin:"Bash"},"d",0,["SessionStart","SessionEnd","UserPromptSubmit","PreToolUse","PostToolUse","Stop","SubagentStop","PostToolUseFailure","ErrorOccurred","PreCompact","PermissionRequest","Notification"],"w",0,["user","project"],"U",0,{Read:{path:"file_path"},Write:{path:"file_path",file_text:"content"},Edit:{path:"file_path",old_str:"old_string",new_str:"new_string"}},"s",0,{bash:"Bash",powershell:"Bash",list_bash:"Bash",read_bash:"Bash",stop_bash:"Bash",write_bash:"Bash",list_powershell:"Bash",read_powershell:"Bash",stop_powershell:"Bash",write_powershell:"Bash",read:"Read",view:"Read",show_file:"Read",write:"Write",create:"Write",edit:"Edit",apply_patch:"Edit",str_replace_editor:"Edit",glob:"Glob",grep:"Grep",rg:"Grep",ls:"LS",web_fetch:"WebFetch"},"t",0,["sessionStart","sessionEnd","beforeSubmitPrompt","preToolUse","postToolUse","stop","subagentStop"],"Y",0,["user","project"],"D",0,{Shell:"Bash"},"E",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","PermissionRequest","Stop","SessionEnd"],"c",0,["user","project"],"u",0,{exec:"Bash"},"n",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","Notification","Stop","SubagentStop","PreCompact","SessionEnd"],"B",0,["user","project"],"r",0,{Execute:"Bash",Read:"Read",Edit:"Edit",Create:"Write",Grep:"Grep",Glob:"Glob",LS:"LS",FetchUrl:"WebFetch",WebSearch:"WebSearch",TodoWrite:"TodoWrite",Task:"Task"},"Z",0,"__failproofai_hook__","i",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","SessionEnd"],"x",0,["user","project"],"M",0,{Read:{path:"file_path",source:"file_path"},Write:{path:"file_path"},Edit:{path:"file_path"},LS:{path:"file_path"}},"K",0,{shell:"Bash",write:"Write",edit:"Edit",view:"Read",read_image:"Read",glob:"Glob",grep:"Grep",tree:"LS",delegate:"Task",todo__todo_write:"TodoWrite"},"y",0,["pre_tool_call","post_tool_call","on_session_start","on_session_end","subagent_stop"],"N",0,["user"],"z",0,{Read:{path:"file_path"},Write:{path:"file_path"},Edit:{path:"file_path"}},"C",0,{terminal:"Bash",bash:"Bash",read_file:"Read",write_file:"Write",patch:"Edit",web_search:"WebSearch",web_extract:"WebFetch",search_files:"Grep",todo:"TodoWrite",todo_list:"TodoWrite",process_manage:"process",cronjob_manage:"cronjob"},"F",0,["user","project","local"],"_",0,t,"P",0,["before_tool_call","after_tool_call","before_agent_run","before_agent_finalize","session_start","session_end","subagent_ended","before_compaction"],"G",0,["user"],"v",0,{Read:{path:"file_path"},Write:{path:"file_path"},Edit:{path:"file_path"}},"e",0,{exec:"Bash",read:"Read",write:"Write",edit:"Edit",grep:"Grep",glob:"Glob",web_search:"WebSearch",web_fetch:"WebFetch"},"f",0,["tool.execute.before","tool.execute.after","session.created","session.deleted","session.idle","message.updated","permission.ask"],"O",0,["user","project"],"k",0,{Read:{filePath:"file_path"},Write:{filePath:"file_path"},Edit:{filePath:"file_path",oldString:"old_string",newString:"new_string",replaceAll:"replace_all"}},"A",0,{bash:"Bash",read:"Read",write:"Write",edit:"Edit",apply_patch:"Edit",glob:"Glob",grep:"Grep",list:"LS",webfetch:"WebFetch",websearch:"WebSearch",todowrite:"TodoWrite",todoread:"TodoRead"},"Q",0,["session_start","session_shutdown","input","tool_call","user_bash","tool_result","agent_end"],"R",0,["user","project"],"V",0,{Read:{path:"file_path"},Write:{path:"file_path"},Edit:{path:"file_path"}},"S",0,{bash:"Bash",read:"Read",write:"Write",edit:"Edit",glob:"Glob",grep:"Grep"}],38441);let i=/^agt_[0-9a-f]{16,32}$/,o=new Set(t);e.s(["i",0,function(e,t){return void 0===e||!!(!(!t||"object"!=typeof t||Array.isArray(t))&&Object.keys(t).every(e=>"integration"===e||"instanceId"===e)&&"string"==typeof t.integration&&o.has(t.integration)&&"string"==typeof t.instanceId&&i.test(t.instanceId))&&e.some(e=>e.integration===t.integration&&(void 0===e.instanceId||e.instanceId===t.instanceId))},"P",0,function(e,t){if(null==e)return;if(t<3||!Array.isArray(e)||e.length<1||e.length>32)throw Error("invalid agentTargets in cloud-managed active manifest");let r=new Set;return e.map(e=>{if(!e||"object"!=typeof e||Array.isArray(e)||Object.keys(e).some(e=>"integration"!==e&&"instanceId"!==e)||"string"!=typeof e.integration||!o.has(e.integration)||void 0!==e.instanceId&&("string"!=typeof e.instanceId||!i.test(e.instanceId)))throw Error("invalid agentTargets in cloud-managed active manifest");let t=`${e.integration}\0${e.instanceId??""}`;if(r.has(t))throw Error("duplicate agentTargets in cloud-managed active manifest");return r.add(t),{integration:e.integration,...void 0!==e.instanceId?{instanceId:e.instanceId}:{}}})}],16560)},62176,99891,e=>{"use strict";e.i(66680);var t=e.i(2157),r=e.i(50227),i=e.i(79857),o=e.i(16560);e.i(97348);let a=new Set(["destructive-deletion","production-infra-change","git-history-rewrite","push-to-protected-branch","commit-on-protected-branch","secret-exposure","credential-exfiltration","remote-code-execution","privilege-escalation","database-destruction","read-outside-workspace","agent-config-tampering","system-modification","env-secrets-dump","external-destructive-action","external-data-egress"]),s=new Set,n=e=>"string"==typeof e&&e.length>0;function l(e){let t={};("hard"===e.authority||"reviewable"===e.authority)&&(t.authority=e.authority);let r=e.reviewedBy;return Array.isArray(r)&&r.length>0&&r.every(n)&&(t.reviewedBy=[...r]),t}e.s(["_",0,s,"g",0,a,"i",0,l,"d",0,function(e,t=s,r){let i=e?.authority==="reviewable";if(!e||"hard"==(!0!==e.alwaysOn&&"reviewable"===e.authority&&Array.isArray(e.reviewedBy)&&e.reviewedBy.filter(e=>"string"==typeof e&&e.length>0).length>0?"reviewable":"hard")){var o;return i?{authority:"hard",downgraded:!0===(o=e).alwaysOn?"it is alwaysOn, and the self-protection guard is never reviewable":Array.isArray(o.reviewedBy)&&0!==o.reviewedBy.length?"reviewedBy is not a list of semantic policy names":"reviewedBy does not name any semantic policy"}:{authority:"hard"}}let l=e.reviewedBy;if(!l.every(n))return{authority:"hard",downgraded:"reviewedBy is not a list of semantic policy names"};let c=l.filter(e=>!t.has(e));return 0!==t.size||c.some(e=>r?.has(e))?c.length>0?{authority:"hard",downgraded:`reviewedBy names ${c.map(e=>(function(e,t,r){let i=JSON.stringify(e),o=r?.get(e);if(o)return`${i}, which packs ${o.join(" and ")} declare differently, so it is asked for neither`;if(t===a)return`${i}, which is not a semantic policy in this build`;let s=[...t].sort(),n=s.length>6?`${s.slice(0,6).join(", ")} and ${s.length-6} more`:s.join(", ");return`${i}, which is not among the Jev checks it is judged against (${n})`})(e,t,r)).join("; ")}`}:{authority:"reviewable",reviewedBy:[...new Set(l)]}:{authority:"hard"}}],99891);let c=[1,2,3];function d(){return process.env.FAILPROOFAI_CLOUD_POLICY_DIR??(0,i.I)()}function p(){try{let e=JSON.parse((0,t.readFileSync)((0,i.y)(),"utf8"));if(!e||"object"!=typeof e||Array.isArray(e))return!1;let r=e.mode;return!!r&&"object"==typeof r&&!Array.isArray(r)&&"oss"===r.kind}catch{return!1}}let h=null;function u(){if(p()){h=null;return}let e=(0,r.resolve)(d(),"active.json"),i=function(e){try{let r=(0,t.statSync)(e,{bigint:!0});return`${r.dev}:${r.ino}:${r.mode}:${r.size}:${r.mtimeNs}:${r.ctimeNs}`}catch(t){let e=t.code;if("ENOENT"===e||"ENOTDIR"===e)return null;throw t}}(e);if(null===i){h=null;return}if(h&&h.path===e&&h.version===i)return h.value;let o=JSON.parse((0,t.readFileSync)(e,"utf8"));return h={path:e,version:i,value:o},o}let f=/^cloud:[^/]+\/./;e.s(["M",0,function(){let e;if(p())return!1;try{e=(0,t.readFileSync)((0,r.resolve)(d(),"active.json"),"utf8")}catch(e){return"ENOENT"!==e.code}try{let t=JSON.parse(e)?.schemaVersion;return!("number"==typeof t&&Number.isInteger(t)&&t<3)}catch{return!0}},"O",0,function(e,t){let r=[];for(let i of e){let e=function(e,t){return"reviewable"!==e.authority?e.authority?{authority:e.authority}:{}:"observe"===e.effect||"observe"!==t&&"enforce"!==t?{authority:"hard"}:{authority:"reviewable",reviewedBy:(e.reviewedBy??[]).map(t=>{var r;return f.test(t)?t:(r=e.id,`cloud:${r}/${t}`)})}}(i,t);"reviewable"===e.authority&&r.push(...e.reviewedBy??[])}return r},"E",0,function(e=null){try{let t=u();if(void 0===t)return[];let r=function(e){if(!e||"object"!=typeof e)throw Error("active manifest is not an object");if(!c.includes(e.schemaVersion))throw Error(`unsupported active manifest schema ${String(e.schemaVersion)} (supported: ${c.join(", ")})`);let t=e.deployment??e.generation;if(!Number.isSafeInteger(t)||(t??-1)<0)throw Error("active manifest deployment is invalid");if(!Array.isArray(e.policies))throw Error("active manifest policies is not an array");let r=e.policies.map(e=>({...e,version:e.version??e.revision}));return{schemaVersion:e.schemaVersion,deployment:t,policies:r}}(t);return r.policies.flatMap(t=>{if("string"!=typeof t.id)return[];let i=(0,o.P)(t.agentTargets,r.schemaVersion);return(0,o.i)(i,e)?[{id:t.id,effect:"observe"===t.effect?"observe":"enforce",...i?{agentTargets:i}:{},...l(t)}]:[]})}catch{return[]}},"D",0,function(){try{var e;return e=function(){let e=u();if(void 0===e)return null;if(!e||"object"!=typeof e||Array.isArray(e))throw Error("active manifest is not an object");if(!c.includes(e.schemaVersion))throw Error(`unsupported active manifest schema ${String(e.schemaVersion)}`);return e}()?.jevMode,"off"===e||"observe"===e||"enforce"===e?e:null}catch{return null}},"t",0,function(e,i){if(!i||(0,r.isAbsolute)(i))throw Error(`unsafe managed policy path ${JSON.stringify(i)}`);let o=(0,r.resolve)(e,i),a=(0,r.relative)(e,o);if(a.startsWith("..")||(0,r.isAbsolute)(a))throw Error(`managed policy path escapes its root: ${JSON.stringify(i)}`);let s=(0,t.realpathSync)(e),n=(0,t.realpathSync)(o),l=(0,r.relative)(s,n);if(l.startsWith("..")||(0,r.isAbsolute)(l))throw Error(`managed policy symlink escapes its root: ${JSON.stringify(i)}`);return n}],62176)},97348,e=>{"use strict";var t=e.i(2157),r=e.i(50227),i=e.i(79857);let o={info:0,warn:1,error:2},a=(0,i.A)(),s=!1,n="warn",l=!1,c=a;function d(e){return!function(){if(s)return;s=!0;let e=(process.env.FAILPROOFAI_LOG_LEVEL??"").toLowerCase();("info"===e||"warn"===e||"error"===e)&&(n=e);let t=(process.env.FAILPROOFAI_HOOK_LOG_FILE??"").trim();t&&(l=!0,"1"!==t&&"true"!==t&&(c=t))}(),o[e]>=o[n]}function p(e,t){process.stderr.write(`[failproofai:hook] ${e} ${t}
2
+ `)}function h(e,i){if(l)try{(0,t.existsSync)(c)||(0,t.mkdirSync)(c,{recursive:!0});let o=(0,r.join)(c,"hooks.log");try{if((0,t.statSync)(o).size>=524288){let e=`hooks-${Date.now()}.log`;(0,t.renameSync)(o,(0,r.join)(c,e))}}catch{}let a=new Date().toISOString(),s=`[${a}] ${e} ${i}
3
+ `;(0,t.appendFileSync)(o,s,"utf-8")}catch{}}e.s(["F",0,function(e){d("error")&&(p("ERROR",e),h("ERROR",e))},"Q",0,function(e){d("info")&&(p("INFO",e),h("INFO",e))},"g",0,function(e){d("warn")&&(p("WARN",e),h("WARN",e))}])}];
4
+
5
+ //# sourceMappingURL=src_hooks_0fmclqlaj83-2._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[16774,98901,52306,e=>{"use strict";let r;var t=e.i(66680),i=e.i(2157),o=e.i(50227),n=e.i(24214),s=e.i(79857),a=e.i(62176),c=e.i(99891);let l=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/,f=/^(?:0|[1-9]\d*)$/;function p(e){if("string"!=typeof e)return null;let r=l.exec(e);return r?{major:Number(r[1]),minor:Number(r[2]),patch:Number(r[3]),prerelease:void 0===r[4]?[]:r[4].split(".").map(e=>f.test(e)?Number(e):e)}:null}let d=(e,r)=>e<r?-1:+(e>r),u=["always","protected_branch","in_git_repo","has_paths","paths_outside_project","system_or_root_paths"];function h(e){return"string"==typeof e&&u.includes(e)}e.s(["B",0,u,"M",0,h],98901);let m=[1],y=/^[a-f0-9]{64}$/,g=/^[A-Za-z0-9._-]{1,64}\/[A-Za-z0-9._-]{1,64}$/,$=/^[A-Za-z0-9][A-Za-z0-9._+-]{0,63}$/,w=/^[0-9a-f]{7,40}$/,b=/^[A-Za-z0-9._-]{1,128}$/,v=/^[a-z][a-z0-9_]{0,31}$/,A=new Set(["exempt","user_asked"]),O=new Set(["shell","write","read","network","other"]),E=new Set(["string","number","boolean","string[]","pattern[]"]);function k(e,r,t,i){if("string"!=typeof t||0===t.length)throw Error(`${e} is missing ${r}`);if(t.length>i)throw Error(`${e} has a ${r} of ${t.length} characters, over the ${i}-character cap`);return t}function S(e,r,t){let i;if(!r||"object"!=typeof r||Array.isArray(r))throw Error(`${e} is not an object`);if(null!==t)i=t;else{if("string"!=typeof r.id||!v.test(r.id))throw Error(`${e} has an unsafe id ${JSON.stringify(r.id)}`);if(A.has(r.id))throw Error(`${e} uses the reserved probe id ${JSON.stringify(r.id)}`);i=r.id}let o=k(e,"instructions",r.instructions,600);if(void 0===r.criteria)return{id:i,instructions:o};if(!r.criteria||"object"!=typeof r.criteria||Array.isArray(r.criteria))throw Error(`${e} has criteria that is not an object`);let n=r.criteria;return{id:i,instructions:o,criteria:{true:k(e,"criteria.true",n.true,300),false:k(e,"criteria.false",n.false,300)}}}function j(){let e,r=process.env.FAILPROOFAI_PACK_DIR?(0,o.resolve)(process.env.FAILPROOFAI_PACK_DIR,"installed.json"):(0,s.v)();if(!(0,i.existsSync)(r))return{packs:[],errors:[]};try{e=JSON.parse((0,i.readFileSync)(r,"utf8"))}catch(e){return{packs:[],errors:[{id:null,reason:`unreadable pack manifest: ${P(e)}`}]}}if(!e||"object"!=typeof e)return{packs:[],errors:[{id:null,reason:"pack manifest is not an object"}]};let l=e;if(!m.includes(l.schemaVersion))return{packs:[],errors:[{id:null,reason:`unsupported pack manifest schema ${String(l.schemaVersion)} (supported: ${m.join(", ")})`}]};if(!Array.isArray(l.packs))return{packs:[],errors:[{id:null,reason:"pack manifest packs is not an array"}]};let f=process.env.FAILPROOFAI_PACK_DIR??(0,s.n)(),v=[],A=[],j=[],_=new Set;for(let e of l.packs){let r=e&&"object"==typeof e&&"string"==typeof e.id?e.id:null,o=[];try{let r=function(e,r,o){if(!r||"object"!=typeof r)throw Error("pack entry is not an object");let s=function(e){if("string"!=typeof e.id||!g.test(e.id))throw Error(`unsafe pack id ${JSON.stringify(e.id)}`);if("string"!=typeof e.version||!$.test(e.version))throw Error(`invalid version for pack ${e.id}`);if(void 0!==e.effect&&"enforce"!==e.effect&&"observe"!==e.effect)throw Error(`unknown effect ${JSON.stringify(e.effect)} for pack ${e.id}`);let r="string"==typeof e.commit&&w.test(e.commit.trim().toLowerCase())?e.commit.trim().toLowerCase():void 0;return{id:e.id,version:e.version,effect:e.effect??"enforce",...r?{commit:r}:{}}}(r);if("string"!=typeof r.source||0===r.source.length)throw Error(`pack ${r.id} has no source`);if("string"!=typeof r.sha256||!y.test(r.sha256))throw Error(`invalid SHA-256 for pack ${r.id}`);let l=s.effect,f=function(e,r,t=n.version){if(void 0===r)return{kind:"satisfied"};let i=function(e,r){let t=p(e),i=p(r);return t&&i?d(t.major,i.major)||d(t.minor,i.minor)||d(t.patch,i.patch)||function(e,r){if(0===e.length&&0===r.length)return 0;if(0===e.length)return 1;if(0===r.length)return -1;for(let t=0;t<Math.min(e.length,r.length);t++){let i=e[t],o=r[t];if(i===o)continue;let n="number"==typeof i,s="number"==typeof o;if(n!==s)return n?-1:1;if(n&&s)return d(i,o);return i<o?-1:1}return d(e.length,r.length)}(t.prerelease,i.prerelease):null}(t,r);return null===i?{kind:"unreadable",reason:`pack ${e} declares minCliVersion ${JSON.stringify(r)}, which is not a version this CLI can compare against its own (${t}) — the requirement was ignored`}:i<0?{kind:"too-old",reason:`pack ${e} needs failproofai ${String(r)} or newer and this is ${t} — run \`npm i -g "failproofai@>=${String(r)}" && failproofai update\``}:{kind:"satisfied",declared:r}}(s.id,r.minCliVersion);if("too-old"===f.kind)throw Error(f.reason);"unreadable"===f.kind&&o.push(f.reason);let m=(0,a.t)(e,r.entry),v=(0,t.createHash)("sha256").update((0,i.readFileSync)(m)).digest("hex");if(v!==r.sha256)throw Error(`pack ${r.id} failed integrity verification: expected ${r.sha256}, got ${v}`);if(!Array.isArray(r.policies))throw Error(`pack ${r.id} policies is not an array`);let A=r.policies.map((e,t)=>(function(e,r,t,i){let o=`${e} policy #${t}`;if(!r||"object"!=typeof r)throw Error(`${o} is not an object`);let n=r.name;if("string"!=typeof n||!b.test(n))throw Error(`${o} has an unsafe name ${JSON.stringify(n)}`);if("alwaysOn"in r)throw Error(`${o} declares alwaysOn, which packs may not set`);if("string"!=typeof r.description||0===r.description.length)throw Error(`${o} is missing a description`);if("string"!=typeof r.category||0===r.category.length)throw Error(`${o} is missing a category`);if("boolean"!=typeof r.defaultEnabled)throw Error(`${o} is missing defaultEnabled`);if(!r.match||"object"!=typeof r.match)throw Error(`${o} is missing a match`);let s=r.match;for(let e of["events","toolNames"]){let r=s[e];if(void 0!==r&&(!Array.isArray(r)||r.some(e=>"string"!=typeof e||0===e.length)))throw Error(`${o} has a match.${e} that is not a list of names`)}let a=(0,c.i)(r),l=["authority","reviewedBy"].filter(e=>e in r&&!(e in a));if("params"in r){let e=function(e){if(!e||"object"!=typeof e||Array.isArray(e))return"params is not an object";for(let[r,t]of Object.entries(e)){if(0===r.length)return"params has an empty parameter name";if(!t||"object"!=typeof t||Array.isArray(t))return`params.${r} is not an object`;if("string"!=typeof t.type||!E.has(t.type))return`params.${r} has type ${JSON.stringify(t.type)}, which is not one of ${[...E].join(", ")}`;if("string"!=typeof t.description||0===t.description.length)return`params.${r} is missing a description`;if(!("default"in t))return`params.${r} is missing a default`}}(r.params);e&&(i?.push(`${o} declares a params schema that was dropped: ${e}`),l.push("params"))}return l.length>0?Object.fromEntries(Object.entries(r).filter(([e])=>!l.includes(e))):r})(r.id,e,t,o)),j=new Set;for(let e of A){if(j.has(e.name))throw Error(`pack ${r.id} declares ${e.name} twice`);j.add(e.name)}let _=null;if(void 0!==r.enabled){if(!Array.isArray(r.enabled)||r.enabled.some(e=>"string"!=typeof e))throw Error(`pack ${r.id} enabled is not an array of names`);_=r.enabled.filter(e=>j.has(e))}let N=null;if(void 0!==r.clis){if(!Array.isArray(r.clis)||r.clis.some(e=>"string"!=typeof e))throw Error(`pack ${r.id} clis is not an array of agent names`);N=r.clis}return{clis:N,id:s.id,version:s.version,source:r.source,path:m,sha256:r.sha256,effect:l,policies:A,semantic:function(e,r,t){if(void 0===r)return[];if(!Array.isArray(r))return t.push(`pack ${e} semantic is not an array, so none of it was loaded`),[];let i=[],o=new Set;for(let[n,s]of r.entries()){if(i.length>=24){t.push(`pack ${e} declares more than 24 semantic policies; the ${r.length-24} past that cap were dropped`);break}try{let r=function(e,r,t){let i=`${e} semantic policy #${t}`;if(!r||"object"!=typeof r||Array.isArray(r))throw Error(`${i} is not an object`);let o=r.name;if("string"!=typeof o||!b.test(o))throw Error(`${i} has an unsafe name ${JSON.stringify(o)}`);if("alwaysOn"in r)throw Error(`${i} declares alwaysOn, which packs may not set`);let n=k(`${e} semantic policy ${o}`,"title",r.title,120),s=`${e} semantic policy ${o}`;if(!Array.isArray(r.appliesTo)||0===r.appliesTo.length)throw Error(`${s} has no appliesTo tool classes`);let a=r.appliesTo.find(e=>"string"!=typeof e||!O.has(e));if(void 0!==a)throw Error(`${s} applies to ${JSON.stringify(a)}, which is not a tool class (${[...O].join(", ")})`);if("deny"!==r.mode&&"instruct"!==r.mode)throw Error(`${s} has mode ${JSON.stringify(r.mode)}, which must be "deny" or "instruct"`);if("boolean"!=typeof r.userCanOverride)throw Error(`${s} is missing userCanOverride, which has no default`);if(!Array.isArray(r.probes)||0===r.probes.length)throw Error(`${s} declares no probes`);if(r.probes.length>6)throw Error(`${s} declares ${r.probes.length} probes, over the cap of 6`);let c=r.probes.map((e,r)=>S(`${s} probe #${r}`,e,null)),l=new Set;for(let e of c){if(l.has(e.id))throw Error(`${s} declares probe ${e.id} twice`);l.add(e.id)}let f=void 0===r.exempt?void 0:S(`${s} exempt`,r.exempt,"exempt");if(void 0!==r.precondition&&!h(r.precondition))throw Error(`${s} names precondition ${JSON.stringify(r.precondition)}, which this build does not have (${u.join(", ")})`);let p=k(s,"guidance",r.guidance,600);return{name:o,title:n,appliesTo:r.appliesTo,mode:r.mode,userCanOverride:r.userCanOverride,probes:c,...f?{exempt:f}:{},...void 0!==r.precondition?{precondition:r.precondition}:{},guidance:p}}(e,s,n);if(o.has(r.name))throw Error(`pack ${e} declares semantic policy ${r.name} twice`);o.add(r.name),i.push(r)}catch(e){t.push(P(e))}}return i}(s.id,r.semantic,o),..."satisfied"===f.kind&&f.declared?{minCliVersion:f.declared}:{},enabled:_}}(f,e,o);if(_.has(r.id))throw Error(`duplicate pack id ${r.id}`);_.add(r.id),v.push(r),j.push(...o)}catch(i){let t=e&&("observe"===e.effect||"enforce"===e.effect)?e.effect:"enforce";A.push({id:r,reason:P(i),effect:t,...Array.isArray(e?.policies)?{declared:function(e){let r=[];for(let t of e)t&&"object"==typeof t&&"string"==typeof t.name&&t.match&&"object"==typeof t.match&&r.push(t);return r}(e.policies)}:{},...Array.isArray(e?.policies)&&0===e.policies.length?{semanticOnly:!0}:{},...Array.isArray(e?.clis)&&e.clis.every(e=>"string"==typeof e)?{clis:e.clis}:{}})}}return{packs:v,errors:A,...j.length>0?{warnings:j}:{}}}function P(e){return e instanceof Error?e.message:String(e)}e.s(["f",0,j],52306);let _=null,N=null;function C(e){let r=new Map,t=new Map;for(let i of e)for(let e of i.semantic??[]){if(I(i,e.name))continue;let o=function e(r){if(Array.isArray(r))return`[${r.map(e).join(",")}]`;if(null!==r&&"object"==typeof r){let t=Object.entries(r).filter(([,e])=>void 0!==e).sort(([e],[r])=>e<r?-1:+(e>r));return`{${t.map(([r,t])=>`${JSON.stringify(r)}:${e(t)}`).join(",")}}`}return JSON.stringify(r)??"null"}(e),n=r.get(e.name);if(void 0===n){r.set(e.name,{form:o,ids:[i.id]});continue}n.ids.push(i.id),n.form!==o&&t.set(e.name,n.ids)}return t}function I(e,r){return c.g.has(r)&&!/^github:FailproofAI\//i.test(e.source??"")}e.s(["j",0,function(){if(_)return _;let e=c._;try{var t,i,o;let n,s,a=(t=j().packs,i=r,t.filter(e=>"observe"!==e.effect&&!(i&&Array.isArray(e.clis)&&e.clis.length>0&&!e.clis.includes(i))));(o=a,n=C(o),s=o.flatMap(e=>(e.semantic??[]).filter(r=>!I(e,r.name)).map(e=>e.name)).filter(e=>!n.has(e)),e=0===s.length?c._:new Set(s)).size,C(a)}catch{}try{let r=(0,a.O)((0,a.E)(N),(0,a.D)());r.length>0&&(e=new Set([...e,...r]))}catch{}return _=e,e},"Z",0,function(e,t=null){_=null,r=e,N=t}],16774)},73136,49335,e=>{"use strict";var r=e.i(2157),t=e.i(50227),i=e.i(60526),o=e.i(97348),n=e.i(79857);function s(e){if(!(0,r.existsSync)(e))return{};try{let t=(0,r.readFileSync)(e,"utf8");return JSON.parse(t)}catch(r){return(0,o.g)(`failed to parse config at ${e}: ${r instanceof Error?r.message:String(r)}`),{}}}e.s(["f",0,function(e){let o=function(e){let o=(0,i.homedir)(),n=(0,t.resolve)(e);for(;n!==o;){let e=(0,t.resolve)(n,".failproofai");try{if((0,r.statSync)(e).isDirectory())return n}catch{}let i=(0,t.dirname)(n);if(i===n)break;n=i}return(0,t.resolve)(e)}(e??process.cwd()),a=(0,t.resolve)(o,".failproofai","policies-config.json"),c=(0,t.resolve)(o,".failproofai","policies-config.local.json"),l=(0,n.O)(),f=s(a),p=s(c),d=s(l),u=new Set([...f.enabledPolicies??[],...p.enabledPolicies??[],...d.enabledPolicies??[]]),h={};for(let e of[f,p,d])if(e.policyParams)for(let[r,t]of Object.entries(e.policyParams))r in h||(h[r]=t);let m=[f,p,d].map(e=>void 0!==e.customPoliciesPaths?e.customPoliciesPaths:void 0!==e.customPoliciesPath?[e.customPoliciesPath]:void 0).find(e=>void 0!==e),y=new Set([...f.disabledCustomPolicies??[],...p.disabledCustomPolicies??[],...d.disabledCustomPolicies??[]]),g=f.customPoliciesEnabled??p.customPoliciesEnabled??d.customPoliciesEnabled,$=f.llm??p.llm??d.llm;return{enabledPolicies:[...u],...Object.keys(h).length>0?{policyParams:h}:{},...void 0!==m?{customPoliciesPaths:m}:{},...y.size?{disabledCustomPolicies:[...y]}:{},...void 0!==g?{customPoliciesEnabled:g}:{},...void 0!==$?{llm:$}:{}}}],73136);var a=e.i(24214),c=e.i(28067),l=e.i(17694);let f=c._,p=new Set;async function d(e,r,t){let i=JSON.stringify({api_key:process.env.FAILPROOFAI_POSTHOG_KEY??f,event:r,distinct_id:e,properties:{...t,$lib:"failproofai-hooks",failproofai_version:a.version,product:c.W}});try{await fetch(process.env.FAILPROOFAI_POSTHOG_HOST?`${process.env.FAILPROOFAI_POSTHOG_HOST}/capture/`:"https://us.i.posthog.com/capture/",{method:"POST",headers:{"Content-Type":"application/json"},body:i,signal:AbortSignal.timeout(5e3)})}catch{}}async function u(e,r,t){if(!(0,l.f)())return;let i=d(e,r,t);p.add(i),i.finally(()=>p.delete(i)),await i}e.s(["f",0,u],49335)}];
2
+
3
+ //# sourceMappingURL=src_hooks_15j31lnj-km9r._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[4464,e=>{"use strict";var t=e.i(61095);e.i(2157);var n=e.i(79857);async function o(e=150){return new Promise(n=>{let o=!1,a=e=>{o||(o=!0,clearTimeout(s),i.removeAllListeners(),i.destroy(),n(e))},i=(0,t.createConnection)({path:r()}),s=setTimeout(()=>a(!1),e);s.unref?.(),i.on("connect",()=>a(!0)),i.on("error",()=>a(!1))})}function r(){return process.env.FAILPROOFAI_DAEMON_SOCKET?process.env.FAILPROOFAI_DAEMON_SOCKET:(0,n._)()}async function a(e,n){let o=n?.responseTimeoutMs??3e4;return new Promise(n=>{let a,i=!1,s=e=>{clearTimeout(a),a=setTimeout(()=>u("unreachable"),e),a.unref?.()},c=e=>{i||(i=!0,clearTimeout(a),l.removeAllListeners(),l.destroy(),n(e))},u=e=>c({ok:!1,failure:e}),l=(0,t.createConnection)({path:r()});s(150);let f=Buffer.alloc(0),d=null;l.on("connect",()=>{let t,n;s(o),l.write((t=Buffer.from(JSON.stringify(e),"utf8"),(n=Buffer.alloc(4)).writeUInt32BE(t.length,0),Buffer.concat([n,t])))}),l.on("data",e=>{let t;if(f=Buffer.concat([f,e]),null===d){if(f.length<4)return;if((d=f.readUInt32BE(0))>0x1000000)return void u("unreachable");f=f.subarray(4)}if(f.length<d)return;let n=f.subarray(0,d);try{t=JSON.parse(n.toString("utf8"))}catch{u("unreachable");return}if(!t||"object"!=typeof t||Array.isArray(t))return void u("unreachable");let o=t;2!==o.protocolVersion?u("protocol-mismatch"):c({ok:!0,message:o})}),l.on("error",()=>u("unreachable")),l.on("close",()=>u("unreachable"))})}async function i(e,t){let n=await a({type:"hook",protocolVersion:2,hookEvent:e.hookEvent,cli:e.cli,stdin:e.stdin,cwd:e.cwd,agentSettingsPath:e.agentSettingsPath},t);if(!n.ok)return n;let o=n.message;return"hookResult"===o.type&&"number"==typeof o.exitCode&&"string"==typeof o.stdout&&"string"==typeof o.stderr?{ok:!0,response:{exitCode:o.exitCode,stdout:o.stdout,stderr:o.stderr}}:{ok:!1,failure:"unreachable"}}function s(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)}async function c(e,t){let n=await a({type:"policyEvaluation",protocolVersion:2,integration:e.integration,event:e.event,payload:e.payload,cwd:e.cwd,agentSettingsPath:e.agentSettingsPath},t);if(!n.ok)return n;let o=n.message,r=e=>null==e||"string"==typeof e;return"policyResult"===o.type&&("allow"===o.decision||"deny"===o.decision||"instruct"===o.decision)&&s(o.policyNames)&&r(o.reason)&&s(o.matchedPolicies)&&"number"==typeof o.durationMs&&Number.isInteger(o.durationMs)&&o.durationMs>=0&&r(o.toolName)?{ok:!0}:{ok:!1,failure:"unreachable"}}e.i(32127),e.s(["attemptDaemonHook",0,i,"attemptDaemonPolicyEvaluation",0,c,"daemonAcceptsConnections",0,o])}];
1
+ module.exports=[4464,e=>{"use strict";var t=e.i(61095);e.i(2157);var r=e.i(79857);e.i(32127);var o=e.i(62176);async function n(e=150){return new Promise(r=>{let o=!1,n=e=>{o||(o=!0,clearTimeout(u),a.removeAllListeners(),a.destroy(),r(e))},a=(0,t.createConnection)({path:i()}),u=setTimeout(()=>n(!1),e);u.unref?.(),a.on("connect",()=>n(!0)),a.on("error",()=>n(!1))})}function i(){return process.env.FAILPROOFAI_DAEMON_SOCKET?process.env.FAILPROOFAI_DAEMON_SOCKET:(0,r._)()}async function a(e,t){let r=await s(2,e,t),n=r.ok?void 0:r.daemonVersion;if(void 0===n||!Number.isInteger(n)||n<1||n>=2||(0,o.M)())return u(r);let i=await s(n,e,t);return(0,o.M)()?u(r):u(i)}function u(e){return e.ok?e:{ok:!1,failure:e.failure}}async function s(e,r,o){let n=r(e),a=o?.responseTimeoutMs??3e4;return new Promise(r=>{let o,u=!1,s=e=>{clearTimeout(o),o=setTimeout(()=>l("unreachable"),e),o.unref?.()},c=e=>{u||(u=!0,clearTimeout(o),f.removeAllListeners(),f.destroy(),r(e))},l=e=>c({ok:!1,failure:e}),f=(0,t.createConnection)({path:i()});s(150);let d=Buffer.alloc(0),y=null;f.on("connect",()=>{let e,t;s(a),f.write((e=Buffer.from(JSON.stringify(n),"utf8"),(t=Buffer.alloc(4)).writeUInt32BE(e.length,0),Buffer.concat([t,e])))}),f.on("data",t=>{let r;if(d=Buffer.concat([d,t]),null===y){if(d.length<4)return;if((y=d.readUInt32BE(0))>0x1000000)return void l("unreachable");d=d.subarray(4)}if(d.length<y)return;let o=d.subarray(0,y);try{r=JSON.parse(o.toString("utf8"))}catch{l("unreachable");return}if(!r||"object"!=typeof r||Array.isArray(r))return void l("unreachable");let n=r;n.protocolVersion!==e?c({ok:!1,failure:"protocol-mismatch",daemonVersion:"number"==typeof n.protocolVersion?n.protocolVersion:void 0}):c({ok:!0,message:n})}),f.on("error",()=>l("unreachable")),f.on("close",()=>l("unreachable"))})}function c(e,t){return e>=2?{agentSettingsPath:t}:{}}async function l(e,t){let r=await a(t=>({type:"hook",protocolVersion:t,hookEvent:e.hookEvent,cli:e.cli,stdin:e.stdin,cwd:e.cwd,...c(t,e.agentSettingsPath)}),t);if(!r.ok)return r;let o=r.message;return"hookResult"===o.type&&"number"==typeof o.exitCode&&"string"==typeof o.stdout&&"string"==typeof o.stderr?{ok:!0,response:{exitCode:o.exitCode,stdout:o.stdout,stderr:o.stderr}}:{ok:!1,failure:"unreachable"}}function f(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)}async function d(e,t){let r=await a(t=>({type:"policyEvaluation",protocolVersion:t,integration:e.integration,event:e.event,payload:e.payload,cwd:e.cwd,...c(t,e.agentSettingsPath)}),t);if(!r.ok)return r;let o=r.message,n=e=>null==e||"string"==typeof e;return"policyResult"===o.type&&("allow"===o.decision||"deny"===o.decision||"instruct"===o.decision)&&f(o.policyNames)&&n(o.reason)&&f(o.matchedPolicies)&&"number"==typeof o.durationMs&&Number.isInteger(o.durationMs)&&o.durationMs>=0&&n(o.toolName)?{ok:!0}:{ok:!1,failure:"unreachable"}}e.s(["attemptDaemonHook",0,l,"attemptDaemonPolicyEvaluation",0,d,"daemonAcceptsConnections",0,n])}];
2
2
 
3
3
  //# sourceMappingURL=src_hooks_daemon-client_ts_0il_yu1zc0291._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},26035,a=>{"use strict";var b=a.i(36359);a.S([b,"00eeeb479449840c0b5aa2e97196df42859b33a929,f"],26035)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},26035,a=>{"use strict";var b=a.i(36359);a.S([b,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd,f"],26035)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__08ch3staq3ejw._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},99558,a=>{"use strict";var b=a.i(36359),c=a.i(37936),d=a.i(15501);async function e(){let a=(0,d.x)();if(!a){let a=(0,d.t)();return{status:"empty",expired:null!==a,expiredAt:a?.cachedAt??null}}return{status:"cached",cachedAt:a.cachedAt,params:a.params,result:a.result}}(0,a.i(13095).ensureServerEntryExports)([e]),(0,c.registerServerReference)(e,"00558e822c47f7b62018bbe0bf09d6ab41e62f5300",null),a.s(["00558e822c47f7b62018bbe0bf09d6ab41e62f5300",0,e,"00eeeb479449840c0b5aa2e97196df42859b33a929",()=>b.f],99558)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},99558,a=>{"use strict";var b=a.i(36359),c=a.i(37936),d=a.i(15501);async function e(){let a=(0,d.x)();if(!a){let a=(0,d.t)();return{status:"empty",expired:null!==a,expiredAt:a?.cachedAt??null}}return{status:"cached",cachedAt:a.cachedAt,params:a.params,result:a.result}}(0,a.i(13095).ensureServerEntryExports)([e]),(0,c.registerServerReference)(e,"007a98a03459850d9d849980b0a804fa75f3c4f4c2",null),a.s(["007a98a03459850d9d849980b0a804fa75f3c4f4c2",0,e,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",()=>b.f],99558)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0bigvy9xmv2ka._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},7292,a=>{"use strict";var b=a.i(37936),c=a.i(1144);async function d(a){return(0,c.b)(a)}async function e(a,b){return(0,c.c)(a,b)}(0,a.i(13095).ensureServerEntryExports)([d,e]),(0,b.registerServerReference)(d,"40d6ef65e513fffc1b3cf165801f1c614a7147fe31",null),(0,b.registerServerReference)(e,"60a33362691acd2f1b37952bae9d0312e29b51dc58",null),a.s(["x",0,d,"m",0,e])},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},7292,a=>{"use strict";var b=a.i(37936),c=a.i(1144);async function d(a){return(0,c.b)(a)}async function e(a,b){return(0,c.c)(a,b)}(0,a.i(13095).ensureServerEntryExports)([d,e]),(0,b.registerServerReference)(d,"40d32963e64638b8f7aef0fac490990b60a5c58a8b",null),(0,b.registerServerReference)(e,"6025757781d5477fc9ceed924282f5459530ce3920",null),a.s(["x",0,d,"m",0,e])},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0h86bl2qf0k_o._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},7292,a=>{"use strict";var b=a.i(37936),c=a.i(1144);async function d(a){return(0,c.b)(a)}async function e(a,b){return(0,c.c)(a,b)}(0,a.i(13095).ensureServerEntryExports)([d,e]),(0,b.registerServerReference)(d,"40d6ef65e513fffc1b3cf165801f1c614a7147fe31",null),(0,b.registerServerReference)(e,"60a33362691acd2f1b37952bae9d0312e29b51dc58",null),a.s(["x",0,d,"m",0,e])},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},7292,a=>{"use strict";var b=a.i(37936),c=a.i(1144);async function d(a){return(0,c.b)(a)}async function e(a,b){return(0,c.c)(a,b)}(0,a.i(13095).ensureServerEntryExports)([d,e]),(0,b.registerServerReference)(d,"40d32963e64638b8f7aef0fac490990b60a5c58a8b",null),(0,b.registerServerReference)(e,"6025757781d5477fc9ceed924282f5459530ce3920",null),a.s(["x",0,d,"m",0,e])},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0pia5h3p8re4c._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(a,b,c)=>{b.exports=a.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},7075,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",b.callServer,void 0,b.findSourceMapURL,"getTelemetryConfig");a.s(["f",0,c])},3171,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(7075),e=a.i(66036);a.s(["default",0,function({error:a,reset:f}){return(0,c.useEffect)(()=>{(0,d.f)().then(b=>{(0,e.$)(b),(0,e.L)("client_error",{error_message:a.message,error_name:a.name,error_digest:a.digest,boundary:"global"})}).catch(()=>{})},[a]),(0,b.jsx)("html",{children:(0,b.jsx)("body",{children:(0,b.jsx)("main",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#031035",color:"#f8fafc",fontFamily:"system-ui, sans-serif"},children:(0,b.jsxs)("div",{style:{textAlign:"center",padding:"2rem",border:"1px solid rgba(239,68,68,0.4)",borderRadius:"0.5rem",maxWidth:"500px"},children:[(0,b.jsx)("h2",{style:{color:"#ef4444",marginBottom:"0.5rem",fontSize:"1.25rem"},children:"Something went wrong"}),(0,b.jsx)("p",{style:{color:"#94a3b8",marginBottom:"1.5rem"},children:a.message||"An unexpected error occurred."}),(0,b.jsx)("button",{onClick:f,style:{padding:"0.5rem 1.25rem",background:"#3b82f6",color:"white",border:"none",borderRadius:"0.375rem",cursor:"pointer",fontSize:"0.875rem"},children:"Try again"})]})})})})}])},66036,a=>{"use strict";a.s(["L",0,function(a,b){},"$",0,function(a){}])},5050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20611),g=a.r(1722),h=a.r(38783)},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0t76rmc_vci18._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[60815,a=>{a.v(a=>Promise.resolve().then(()=>a(24868)))},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__0ilfh9mfnzsth._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))},6188,a=>{a.v(a=>Promise.resolve().then(()=>a(15638)))},84670,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_net_1yam_zj43-40b._.js","server/chunks/ssr/src_hooks_daemon-client_ts_0k41_i7jg6ndv._.js"].map(b=>a.l(b))).then(()=>b(32271)))},49679,a=>{a.v(b=>Promise.all(["server/chunks/ssr/src_hooks_semantic_pack-policies_ts_0gh_bu_3oswax._.js","server/chunks/ssr/src_hooks_pack-cli_ts_0t7me658zqmh_._.js"].map(b=>a.l(b))).then(()=>b(31934)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__1vofkb2oq7p7e._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0tayeyopslkf1._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},24190,a=>{"use strict";var b=a.i(36359);a.S([b,"00eeeb479449840c0b5aa2e97196df42859b33a929,f"],24190)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},24190,a=>{"use strict";var b=a.i(36359);a.S([b,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd,f"],24190)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__1-ey9fgesfbc0._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[24868,(a,b,c)=>{b.exports=a.x("fs/promises",()=>require("fs/promises"))},74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},12714,(a,b,c)=>{b.exports=a.x("node:fs/promises",()=>require("node:fs/promises"))},44376,(a,b,c)=>{b.exports=a.x("node:module",()=>require("node:module"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},57764,(a,b,c)=>{b.exports=a.x("node:url",()=>require("node:url"))},46786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},14747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},92509,(a,b,c)=>{b.exports=a.x("url",()=>require("url"))},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
1
+ module.exports=[24868,(a,b,c)=>{b.exports=a.x("fs/promises",()=>require("fs/promises"))},74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},12714,(a,b,c)=>{b.exports=a.x("node:fs/promises",()=>require("node:fs/promises"))},44376,(a,b,c)=>{b.exports=a.x("node:module",()=>require("node:module"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},57764,(a,b,c)=>{b.exports=a.x("node:url",()=>require("node:url"))},46786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},14747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},92509,(a,b,c)=>{b.exports=a.x("url",()=>require("url"))},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__15usvs-ms-0hf._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},37985,a=>{"use strict";var b=a.i(36359);a.S([b,"00eeeb479449840c0b5aa2e97196df42859b33a929,f"],37985)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},37985,a=>{"use strict";var b=a.i(36359);a.S([b,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd,f"],37985)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__16gb3_92zvk5x._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},39027,a=>{"use strict";var b=a.i(36359);a.S([b,"00eeeb479449840c0b5aa2e97196df42859b33a929,f"],39027)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},39027,a=>{"use strict";var b=a.i(36359);a.S([b,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd,f"],39027)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__1avi2kypusyb_._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},165,a=>{"use strict";var b=a.i(36359);a.S([b,"00eeeb479449840c0b5aa2e97196df42859b33a929,f"],165)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00eeeb479449840c0b5aa2e97196df42859b33a929",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
1
+ module.exports=[74533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},165,a=>{"use strict";var b=a.i(36359);a.S([b,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd,f"],165)},36359,a=>{"use strict";var b=a.i(37936),c=a.i(69839);a.i(93328);var d=a.i(31920),e=a.i(12072);async function f(){let a=(0,d.f)();return{enabled:a,distinctId:a?(0,c._)():"",apiKey:process.env.FAILPROOFAI_POSTHOG_KEY??"phc_Ac1Ww1GqKc0z1SyrRWbmatEeQdlOQIsDEEdP8l8JRgX",host:process.env.FAILPROOFAI_POSTHOG_HOST??"https://us.i.posthog.com",version:e.version}}(0,a.i(13095).ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",null),a.s(["f",0,f])},8674,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(66680);a.s(["f",0,function(a,e,f={}){let g=f.mode??384,h=f.dirMode??448,i=(0,c.dirname)(a);(0,b.existsSync)(i)||(0,b.mkdirSync)(i,{recursive:!0,mode:h});let j=`${a}.${process.pid}.${(0,d.randomBytes)(6).toString("hex")}.tmp`;try{(0,b.writeFileSync)(j,JSON.stringify(e,null,2),{mode:g});try{(63&(0,b.statSync)(j).mode)!=0&&(0,b.chmodSync)(j,g)}catch{}(0,b.renameSync)(j,a);try{(63&(0,b.statSync)(a).mode)!=0&&(0,b.chmodSync)(a,g)}catch{}}catch(a){try{(0,b.rmSync)(j,{force:!0})}catch{}throw a}}])},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__1r7drlqli-ado._.js.map
@@ -1,4 +1,4 @@
1
- module.exports=[35874,a=>{"use strict";var b=a.i(36359),c=a.i(36119),d=a.i(41289),e=a.i(37936),f=a.i(2157),g=a.i(50227),h=a.i(5246),i=a.i(8674),j=a.i(21572);let k=new Set(["localhost","127.0.0.1","::1","[::1]","0:0:0:0:0:0:0:1"]);function l(a){let b=a.trim().toLowerCase();return!!b&&(!!k.has(b)||/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(b))}var m=a.i(87481),n=a.i(55113),o=a.i(13095);let p="this request did not come from the dashboard in your browser, so nothing was written.",q="env-key-stand-in";async function r(){var a,b;let c;try{c=await (0,h.headers)()}catch{return p}let d=l((a=void 0,b=process.env.FAILPROOFAI_DASHBOARD_HOST,(a??b??"").trim()||"127.0.0.1")),e=c.get("host");if(d&&(!e||!l(function(a){let b=a.trim();if(b.startsWith("[")){let a=b.indexOf("]");return -1===a?b:b.slice(0,a+1)}let c=b.indexOf(":");return -1===c?b:b.slice(0,c)}(e))))return p;let f=c.get("origin");if(!f)return d?null:p;let g=null;try{g=new URL(f).host.toLowerCase()}catch{g=null}return g&&g===(e??"").toLowerCase()?null:p}function s(a){if(!a)return null;let b=(0,m.A)(a);if(!b.ok)return null;try{let a=new URL(b.value).origin;return"null"===a?null:a}catch{return null}}function t(a){let b=(0,g.dirname)(a);try{let a=511&(0,f.statSync)(b).mode;(18&a)!=0&&(0,f.chmodSync)(b,-19&a)}catch{}}async function u(a){let b=await r();if(b)return{ok:!1,problem:b};let c=a.provider.trim();if(!m.n.includes(c))return{ok:!1,problem:`provider must be one of ${m.n.join(", ")}`};if(c===m.e)return{ok:!1,problem:"FailproofAI Cloud's Jev is turned on by connecting this machine (failproofai config --token <key>), and switched with the mode control — not saved from this form."};let e=(0,m._)(a.mode);if(null===e)return{ok:!1,problem:'mode must be "off", "observe" or "enforce".'};let f=a.baseUrl.trim(),g=f?(0,m.A)(f):null;if(g&&!g.ok)return{ok:!1,problem:g.problem};let h=(0,m.Z)(),j=h?.raw??null,k=null!==j&&j.provider===c;if(g?.ok){let a=(0,m.A)(j?.baseUrl),b=k&&a.ok&&(0,m.T)(a.value).url===(0,m.T)(g.value).url,d=b?null:(0,m.O)(c,g.value);if(d)return{ok:!1,problem:`${d}.`};let e=b?null:(0,m.f)(g.value);if(e)return{ok:!1,problem:`that url is an endpoint, not an api base — its path ends in ${e.suffix}. ${(0,n.G)(g.value)} Use ${(0,m.T)(e.base).url} instead.`}}let l=k?{...j}:{};!k&&j&&(void 0!==j.mode&&(l.mode=j.mode),void 0!==j.timeoutMs&&(l.timeoutMs=j.timeoutMs)),l.provider=c,f?l.baseUrl=function(a,b){if("string"!=typeof b||""===b)return a;let c=(0,m.A)(b);if(!c.ok)return a;let d=(0,m.T)(c.value);if(!d.hadQuery)return a;let e=(0,m.A)(a);return e.ok&&e.value===d.url?c.value:a}(f,j?.baseUrl):delete l.baseUrl;let o=a.accountId.trim();"cloudflare"===c&&o?l.accountId=o:delete l.accountId,l.mode=e;let p=k&&h?.tooOpen!==!0&&s(f)===s("string"==typeof j?.baseUrl?j.baseUrl:""),u="string"==typeof j?.apiKey&&""!==j.apiKey,v=null!==j&&!u&&(0,m.P)(j,q).ok,w=a.token.trim();if(w){let a=(0,m.$)(w);if(a)return{ok:!1,problem:a,needsToken:!0};l.apiKey=w}else if(!p&&!v)return{ok:!1,needsToken:!0,problem:u?k&&h?.tooOpen===!0?`${(0,m.W)()} was open to other users, so the endpoint it names may not be one you chose and its stored token is not reused. check the endpoint above, then enter the token for it.`:k?"that endpoint is not the one the stored token was given for, so it is not sent there. enter the token for it.":"enter the token for this provider.":"enter the token for this provider."};let x=void 0===l.apiKey,y=(0,m.P)(l,x?q:null);if(!y.ok)return{ok:!1,problem:y.problem,...!0===y.missingKey?{needsToken:!0}:{}};let z=(0,m.W)();try{(0,i.f)(z,l,{mode:384,dirMode:448})}catch(a){return{ok:!1,problem:`could not write ${z} (${a.code??"error"}).`}}return t(z),{ok:!0,view:await (0,d.f)()}}async function v(a){let b=await r();if(b)return{ok:!1,problem:b};let c=(0,m._)(a);if(null===c)return{ok:!1,problem:'mode must be "off", "observe" or "enforce".'};if((0,j.M)())return{ok:!1,problem:j.H};let e=(0,m.Z)();if(null===e)return{ok:!1,problem:`there is no readable ${(0,m.W)()} to switch. connect this machine (failproofai config --token <key>) or set up your own endpoint below.`};if(e.tooOpen)return{ok:!1,problem:`${(0,m.W)()} is open to other users, so Jev is already off and the endpoint it names is not trusted. fix its permissions first (chmod 600, and chmod 700 on its directory).`};let f={...e.raw,mode:c},g=f.provider===m.e,h=(0,m.P)(f,g||"string"==typeof f.apiKey?null:q,g?{url:function(a){if("string"!=typeof a)return"";try{return new URL(a).origin}catch{return""}}(f.baseUrl),key:q}:null);if(!h.ok)return{ok:!1,problem:h.problem};let k=(0,m.W)();try{(0,i.f)(k,f,{mode:384,dirMode:448})}catch(a){return{ok:!1,problem:`could not write ${k} (${a.code??"error"}).`}}return t(k),{ok:!0,view:await (0,d.f)()}}async function w(){let a=await r();if(a)return{ok:!1,problem:a};let b=(0,m.W)();if((0,f.existsSync)(b))try{(0,f.unlinkSync)(b)}catch(a){return{ok:!1,problem:`could not remove ${b} (${a.code??"error"}).`}}return{ok:!0,view:await (0,d.f)()}}(0,o.ensureServerEntryExports)([u,v,w]),(0,e.registerServerReference)(u,"401b4ffefb60a89ecd280748aaf584b592e7ab665d",null),(0,e.registerServerReference)(v,"4085746f0864553f4e65f1510a52a382371531a5cc",null),(0,e.registerServerReference)(w,"00ded143c9388f1b6929b398b0dec2c0be856e8f9d",null);var x=a.i(81243);async function y(a){if(a&&!await (0,x.s)()){let a=(0,x.M)();return{ok:!1,reason:a&&1e3*a.refresh_expires_at>Date.now()?"unreachable":"signed-out"}}return{ok:!0,auto:(0,j.t)({audit:a?{auto:!0,reportsConsentedAt:Date.now()}:{auto:!1}}).audit.auto}}async function z(a){return(0,j.t)({audit:{intervalDays:a}}),{intervalDays:(0,j.s)().audit.intervalDays}}(0,o.ensureServerEntryExports)([y,z]),(0,e.registerServerReference)(y,"401ce6e245e8c72e7572b87cbce985019b19b195a1",null),(0,e.registerServerReference)(z,"404600484b2ed61352c3c97eeea252534c2af8516f",null),a.s(["003d3ebc32a927ac390f01302b584f3a4a51f50891",()=>c.f,"007e92d9668a7254e98f744e4dfc0ae7152424651c",()=>d.f,"00ded143c9388f1b6929b398b0dec2c0be856e8f9d",0,w,"00eeeb479449840c0b5aa2e97196df42859b33a929",()=>b.f,"401b4ffefb60a89ecd280748aaf584b592e7ab665d",0,u,"401ce6e245e8c72e7572b87cbce985019b19b195a1",0,y,"404600484b2ed61352c3c97eeea252534c2af8516f",0,z,"4085746f0864553f4e65f1510a52a382371531a5cc",0,v],35874)},8018,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return i}});let d=function(a){if(a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var b=e(void 0);if(b&&b.has(a))return b.get(a);var c={__proto__:null},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if("default"!==f&&Object.prototype.hasOwnProperty.call(a,f)){var g=d?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(c,f,g):c[f]=a[f]}return c.default=a,b&&b.set(a,c),c}(a.r(717));function e(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(e=function(a){return a?c:b})(a)}let f={current:null},g="function"==typeof d.cache?d.cache:a=>a,h=console.warn;function i(a){return function(...b){h(a(...b))}}g(a=>{try{h(f.current)}finally{f.current=null}})},81740,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"cookies",{enumerable:!0,get:function(){return o}});let d=a.r(14896),e=a.r(63681),f=a.r(56704),g=a.r(32319),h=a.r(60384),i=a.r(60312),j=a.r(13091),k=a.r(8018),l=a.r(28091),m=a.r(50640),n=a.r(55907);function o(){let a="cookies",b=f.workAsyncStorage.getStore(),c=g.workUnitAsyncStorage.getStore();if(b){if(c&&!(0,l.isRequestApiAllowedInCurrentPhase)(c))throw Error(`Route ${b.route} used \`cookies()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`);if(b.forceStatic)return q(d.RequestCookiesAdapter.seal(new e.RequestCookies(new Headers({}))));if(b.dynamicShouldError)throw new i.StaticGenBailoutError(`Route ${b.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(c)switch(c.type){case"cache":let f=(0,n.createCookiesInUseCacheError)(b.route);throw Error.captureStackTrace(f,o),(0,j.applyOwnerStack)(f),b.invalidDynamicUsageError??=f,f;case"unstable-cache":throw(0,n.createCookiesInUnstableCacheError)(b.route);case"build-time-generator":throw Error(`Route ${b.route} used \`cookies()\` inside \`${c.functionName}\`. This is not supported because \`${c.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`);case"prerender":var k=b,r=c;let g=p.get(r);if(g)return g;let s=(0,j.makeSessionDataHangingPromise)(r.renderSignal,k.route,"`cookies()`",r);return p.set(r,s),s;case"prerender-client":case"validation-client":let t="`cookies`";throw new m.InvariantError(`${t} must not be used within a Client Component. Next.js should be preventing ${t} from being included in Client Components statically, but did not in this case.`);case"prerender-legacy":return(0,h.throwToInterruptStaticGeneration)(a,b,c);case"prerender-runtime":{let{stagedRendering:a}=c;if(a)return a.delayUntilStage(j.RENDER_STAGES_BY_DATA_KIND.sessionData,"cookies",c.cookies);return q(c.cookies)}case"private-cache":return q(c.cookies);case"request":let u;if((0,h.trackDynamicDataInDynamicRender)(c),u=(0,d.areCookiesMutableInCurrentPhase)(c)?c.userspaceMutableCookies:c.cookies,!c.asyncApiPromises)return q(u);if(u===c.mutableCookies)return c.asyncApiPromises.mutableCookies;return c.asyncApiPromises.cookies}}(0,g.throwForMissingRequestStore)(a)}let p=new WeakMap;function q(a){let b=p.get(a);if(b)return b;let c=Promise.resolve(a);return p.set(a,c),c}(0,k.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Error(`${c}used ${b}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)})},51125,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"draftMode",{enumerable:!0,get:function(){return m}});let d=a.r(32319),e=a.r(56704),f=a.r(60384),g=a.r(8018),h=a.r(60312),i=a.r(96556),j=a.r(50640),k=a.r(55907);a.r(51409);let l=a.r(13091);function m(){let a="draftMode",b=e.workAsyncStorage.getStore(),c=d.workUnitAsyncStorage.getStore();switch((!b||!c)&&(0,d.throwForMissingRequestStore)(a),c.type){case"prerender-runtime":{let{stagedRendering:a}=c;if(a)return a.delayUntilStage(l.RENDER_STAGES_BY_DATA_KIND.sessionData,"draftMode",new q(c.draftMode));return n(c.draftMode,b)}case"request":return n(c.draftMode,b);case"cache":case"private-cache":case"unstable-cache":let f=(0,d.getDraftModeProviderForCacheScope)(b,c);if(f)return n(f,b);case"prerender":case"prerender-legacy":return n(null,b);case"prerender-client":case"validation-client":{let a="`draftMode`";throw new j.InvariantError(`${a} must not be used within a Client Component. Next.js should be preventing ${a} from being included in Client Components statically, but did not in this case.`)}case"build-time-generator":throw Error(`Route ${b.route} used \`${a}()\` inside \`${c.functionName}\`. This is not supported because \`${c.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`);default:return c}}function n(a,b){let c=p.get(a??o);return c||Promise.resolve(new q(a))}let o={},p=new WeakMap;class q{constructor(a){this._provider=a}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){r("draftMode().enable()",this.enable),null!==this._provider&&this._provider.enable()}disable(){r("draftMode().disable()",this.disable),null!==this._provider&&this._provider.disable()}}function r(a,b){let c=e.workAsyncStorage.getStore(),g=d.workUnitAsyncStorage.getStore();if(c){if((null==g?void 0:g.phase)==="after")throw Error(`Route ${c.route} used "${a}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`);if(c.dynamicShouldError)throw new h.StaticGenBailoutError(`Route ${c.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${a}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(g)switch(g.type){case"cache":case"private-cache":{let d=(0,k.createDraftModeMutationInUseCacheError)(c.route,a);throw Error.captureStackTrace(d,b),(0,l.applyOwnerStack)(d),c.invalidDynamicUsageError??=d,d}case"unstable-cache":throw(0,k.createDraftModeMutationInUnstableCacheError)(c.route,a);case"prerender":case"prerender-runtime":{let b=Error(`Route ${c.route} used ${a} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`);return(0,f.abortAndThrowOnSynchronousRequestDataAccess)(c.route,a,b,g)}case"prerender-client":case"validation-client":let d="`draftMode`";throw new j.InvariantError(`${d} must not be used within a Client Component. Next.js should be preventing ${d} from being included in Client Components statically, but did not in this case.`);case"prerender-legacy":g.revalidate=0;let e=new i.DynamicServerError(`Route ${c.route} couldn't be rendered statically because it used \`${a}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw c.dynamicUsageDescription=a,c.dynamicUsageStack=e.stack,e;case"request":(0,f.trackDynamicDataInDynamicRender)(g);break;case"build-time-generator":throw Error(`Route ${c.route} used \`${a}\` inside \`${g.functionName}\`. This is not supported because \`${g.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}}}(0,g.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Error(`${c}used ${b}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)})},35754,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"headers",{enumerable:!0,get:function(){return n}});let d=a.r(29927),e=a.r(56704),f=a.r(32319),g=a.r(60384),h=a.r(60312),i=a.r(13091),j=a.r(8018),k=a.r(28091),l=a.r(50640),m=a.r(55907);function n(){let a="headers",b=e.workAsyncStorage.getStore(),c=f.workUnitAsyncStorage.getStore();if(b){if(c&&!(0,k.isRequestApiAllowedInCurrentPhase)(c))throw Error(`Route ${b.route} used \`headers()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`);if(b.forceStatic)return p(d.HeadersAdapter.seal(new Headers({})));if(c)switch(c.type){case"cache":{let a=(0,m.createHeadersInUseCacheError)(b.route);throw Error.captureStackTrace(a,n),(0,i.applyOwnerStack)(a),b.invalidDynamicUsageError??=a,a}case"unstable-cache":throw(0,m.createHeadersInUnstableCacheError)(b.route);case"build-time-generator":throw Error(`Route ${b.route} used \`headers()\` inside \`${c.functionName}\`. This is not supported because \`${c.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}if(b.dynamicShouldError)throw new h.StaticGenBailoutError(`Route ${b.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(c)switch(c.type){case"prerender":var j=b,q=c;let e=o.get(q);if(e)return e;let f=(0,i.makeSessionDataHangingPromise)(q.renderSignal,j.route,"`headers()`",q);return o.set(q,f),f;case"prerender-client":case"validation-client":let r="`headers`";throw new l.InvariantError(`${r} must not be used within a client component. Next.js should be preventing ${r} from being included in client components statically, but did not in this case.`);case"prerender-legacy":return(0,g.throwToInterruptStaticGeneration)(a,b,c);case"prerender-runtime":{let{stagedRendering:a}=c;if(a)return a.delayUntilStage(i.RENDER_STAGES_BY_DATA_KIND.sessionData,"headers",c.headers);return p(c.headers)}case"private-cache":return p(c.headers);case"request":if((0,g.trackDynamicDataInDynamicRender)(c),c.asyncApiPromises)return c.asyncApiPromises.headers;return p(c.headers)}}(0,f.throwForMissingRequestStore)(a)}let o=new WeakMap;function p(a){let b=o.get(a);if(b)return b;let c=Promise.resolve(a);return o.set(a,c),c}(0,j.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Error(`${c}used ${b}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)})},28091,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={isRequestApiAllowedInCurrentPhase:function(){return l},throwForSearchParamsAccessInUseCache:function(){return k},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(60312),g=a.r(20635),h=a.r(24725),i=a.r(55907);function j(a,b){throw new f.StaticGenBailoutError(`Route ${a} with \`dynamic = "error"\` couldn't be rendered statically because it used ${b}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function k(a,b){let c=(0,i.createSearchParamsInUseCacheError)(a.route);throw Error.captureStackTrace(c,b),a.invalidDynamicUsageError??=c,c}function l(a){switch(a.phase){case"action":case"render":return!0;case"after":{let a=g.actionAsyncStorage.getStore();if(a&&(a.isAppRoute||a.isAction))return!0;let b=h.afterTaskAsyncStorage.getStore();if(b)return"action"===b.rootTaskSpawnPhase;return!1}}}},55907,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={createCacheLifeOutsideUseCacheError:function(){return B},createCacheTagOutsideUseCacheError:function(){return A},createConnectionInPrivateUseCacheError:function(){return q},createConnectionInPublicUseCacheError:function(){return p},createConnectionInUnstableCacheError:function(){return r},createCookiesInUnstableCacheError:function(){return l},createCookiesInUseCacheError:function(){return k},createDraftModeMutationInUnstableCacheError:function(){return v},createDraftModeMutationInUseCacheError:function(){return u},createHeadersInUnstableCacheError:function(){return n},createHeadersInUseCacheError:function(){return m},createNestedCacheShortExpireError:function(){return D},createNestedCacheZeroRevalidateError:function(){return C},createRevalidateDuringRenderError:function(){return w},createRevalidateInBuildTimeGeneratorError:function(){return y},createRevalidateInCachedFunctionError:function(){return x},createRouteHandlerRequestInUnstableCacheError:function(){return t},createRouteHandlerRequestInUseCacheError:function(){return s},createSearchParamsInUseCacheError:function(){return o},createUseCachePrivateInsidePublicUseCacheError:function(){return E},createUseCachePrivateInsideUnstableCacheError:function(){return F},createUseCachePrivateOutsideRequestContextError:function(){return G}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="https://nextjs.org/docs/messages/next-request-in-use-cache",g="https://nextjs.org/docs/app/api-reference/functions/unstable_cache",h="https://nextjs.org/docs/messages/use-cache-private-composition",i="https://nextjs.org/docs/messages/revalidate-in-use-cache",j="https://nextjs.org/docs/messages/nested-use-cache-no-explicit-cachelife";function k(a){return Error(`Route "${a}": \`cookies()\` can't be read inside \`"use cache"\`. Read it outside the cached function and pass what you need as an argument.
1
+ module.exports=[35874,a=>{"use strict";var b=a.i(36359),c=a.i(36119),d=a.i(41289),e=a.i(37936),f=a.i(2157),g=a.i(50227),h=a.i(5246),i=a.i(8674),j=a.i(21572);let k=new Set(["localhost","127.0.0.1","::1","[::1]","0:0:0:0:0:0:0:1"]);function l(a){let b=a.trim().toLowerCase();return!!b&&(!!k.has(b)||/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(b))}var m=a.i(87481),n=a.i(55113),o=a.i(13095);let p="this request did not come from the dashboard in your browser, so nothing was written.",q="env-key-stand-in";async function r(){var a,b;let c;try{c=await (0,h.headers)()}catch{return p}let d=l((a=void 0,b=process.env.FAILPROOFAI_DASHBOARD_HOST,(a??b??"").trim()||"127.0.0.1")),e=c.get("host");if(d&&(!e||!l(function(a){let b=a.trim();if(b.startsWith("[")){let a=b.indexOf("]");return -1===a?b:b.slice(0,a+1)}let c=b.indexOf(":");return -1===c?b:b.slice(0,c)}(e))))return p;let f=c.get("origin");if(!f)return d?null:p;let g=null;try{g=new URL(f).host.toLowerCase()}catch{g=null}return g&&g===(e??"").toLowerCase()?null:p}function s(a){if(!a)return null;let b=(0,m.A)(a);if(!b.ok)return null;try{let a=new URL(b.value).origin;return"null"===a?null:a}catch{return null}}function t(a){let b=(0,g.dirname)(a);try{let a=511&(0,f.statSync)(b).mode;(18&a)!=0&&(0,f.chmodSync)(b,-19&a)}catch{}}async function u(a){let b=await r();if(b)return{ok:!1,problem:b};let c=a.provider.trim();if(!m.n.includes(c))return{ok:!1,problem:`provider must be one of ${m.n.join(", ")}`};if(c===m.e)return{ok:!1,problem:"FailproofAI Cloud's Jev is turned on by connecting this machine (failproofai config --token <key>), and switched with the mode control — not saved from this form."};let e=(0,m._)(a.mode);if(null===e)return{ok:!1,problem:'mode must be "off", "observe" or "enforce".'};let f=a.baseUrl.trim(),g=f?(0,m.A)(f):null;if(g&&!g.ok)return{ok:!1,problem:g.problem};let h=(0,m.Z)(),j=h?.raw??null,k=null!==j&&j.provider===c;if(g?.ok){let a=(0,m.A)(j?.baseUrl),b=k&&a.ok&&(0,m.T)(a.value).url===(0,m.T)(g.value).url,d=b?null:(0,m.O)(c,g.value);if(d)return{ok:!1,problem:`${d}.`};let e=b?null:(0,m.f)(g.value);if(e)return{ok:!1,problem:`that url is an endpoint, not an api base — its path ends in ${e.suffix}. ${(0,n.G)(g.value)} Use ${(0,m.T)(e.base).url} instead.`}}let l=k?{...j}:{};!k&&j&&(void 0!==j.mode&&(l.mode=j.mode),void 0!==j.timeoutMs&&(l.timeoutMs=j.timeoutMs)),l.provider=c,f?l.baseUrl=function(a,b){if("string"!=typeof b||""===b)return a;let c=(0,m.A)(b);if(!c.ok)return a;let d=(0,m.T)(c.value);if(!d.hadQuery)return a;let e=(0,m.A)(a);return e.ok&&e.value===d.url?c.value:a}(f,j?.baseUrl):delete l.baseUrl;let o=a.accountId.trim();"cloudflare"===c&&o?l.accountId=o:delete l.accountId,l.mode=e;let p=k&&h?.tooOpen!==!0&&s(f)===s("string"==typeof j?.baseUrl?j.baseUrl:""),u="string"==typeof j?.apiKey&&""!==j.apiKey,v=null!==j&&!u&&(0,m.P)(j,q).ok,w=a.token.trim();if(w){let a=(0,m.$)(w);if(a)return{ok:!1,problem:a,needsToken:!0};l.apiKey=w}else if(!p&&!v)return{ok:!1,needsToken:!0,problem:u?k&&h?.tooOpen===!0?`${(0,m.W)()} was open to other users, so the endpoint it names may not be one you chose and its stored token is not reused. check the endpoint above, then enter the token for it.`:k?"that endpoint is not the one the stored token was given for, so it is not sent there. enter the token for it.":"enter the token for this provider.":"enter the token for this provider."};let x=void 0===l.apiKey,y=(0,m.P)(l,x?q:null);if(!y.ok)return{ok:!1,problem:y.problem,...!0===y.missingKey?{needsToken:!0}:{}};let z=(0,m.W)();try{(0,i.f)(z,l,{mode:384,dirMode:448})}catch(a){return{ok:!1,problem:`could not write ${z} (${a.code??"error"}).`}}return t(z),{ok:!0,view:await (0,d.f)()}}async function v(a){let b=await r();if(b)return{ok:!1,problem:b};let c=(0,m._)(a);if(null===c)return{ok:!1,problem:'mode must be "off", "observe" or "enforce".'};if((0,j.M)())return{ok:!1,problem:j.H};let e=(0,m.Z)();if(null===e)return{ok:!1,problem:`there is no readable ${(0,m.W)()} to switch. connect this machine (failproofai config --token <key>) or set up your own endpoint below.`};if(e.tooOpen)return{ok:!1,problem:`${(0,m.W)()} is open to other users, so Jev is already off and the endpoint it names is not trusted. fix its permissions first (chmod 600, and chmod 700 on its directory).`};let f={...e.raw,mode:c},g=f.provider===m.e,h=(0,m.P)(f,g||"string"==typeof f.apiKey?null:q,g?{url:function(a){if("string"!=typeof a)return"";try{return new URL(a).origin}catch{return""}}(f.baseUrl),key:q}:null);if(!h.ok)return{ok:!1,problem:h.problem};let k=(0,m.W)();try{(0,i.f)(k,f,{mode:384,dirMode:448})}catch(a){return{ok:!1,problem:`could not write ${k} (${a.code??"error"}).`}}return t(k),{ok:!0,view:await (0,d.f)()}}async function w(){let a=await r();if(a)return{ok:!1,problem:a};let b=(0,m.W)();if((0,f.existsSync)(b))try{(0,f.unlinkSync)(b)}catch(a){return{ok:!1,problem:`could not remove ${b} (${a.code??"error"}).`}}return{ok:!0,view:await (0,d.f)()}}(0,o.ensureServerEntryExports)([u,v,w]),(0,e.registerServerReference)(u,"40d107dc41ee9e5e2a2cca087cb53cc06c950a3f27",null),(0,e.registerServerReference)(v,"406d0831600950a08d7f267f01747e680280dfca24",null),(0,e.registerServerReference)(w,"00db8864609335cda9fd80c581ea94f634313d9841",null);var x=a.i(81243);async function y(a){if(a&&!await (0,x.s)()){let a=(0,x.M)();return{ok:!1,reason:a&&1e3*a.refresh_expires_at>Date.now()?"unreachable":"signed-out"}}return{ok:!0,auto:(0,j.t)({audit:a?{auto:!0,reportsConsentedAt:Date.now()}:{auto:!1}}).audit.auto}}async function z(a){return(0,j.t)({audit:{intervalDays:a}}),{intervalDays:(0,j.s)().audit.intervalDays}}(0,o.ensureServerEntryExports)([y,z]),(0,e.registerServerReference)(y,"4029d3627351c36627c8161d5aa9426e2a26116c8b",null),(0,e.registerServerReference)(z,"405a4e3e69b1e56a993e1b508ad2d9770a890f25c1",null),a.s(["00506bd7e451b0ca92d28d2d9594326b4382391130",()=>c.f,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",()=>b.f,"00db8864609335cda9fd80c581ea94f634313d9841",0,w,"00e4daaf39246f33361a1b354bd1c04dde56c6709e",()=>d.f,"4029d3627351c36627c8161d5aa9426e2a26116c8b",0,y,"405a4e3e69b1e56a993e1b508ad2d9770a890f25c1",0,z,"406d0831600950a08d7f267f01747e680280dfca24",0,v,"40d107dc41ee9e5e2a2cca087cb53cc06c950a3f27",0,u],35874)},8018,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return i}});let d=function(a){if(a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var b=e(void 0);if(b&&b.has(a))return b.get(a);var c={__proto__:null},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if("default"!==f&&Object.prototype.hasOwnProperty.call(a,f)){var g=d?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(c,f,g):c[f]=a[f]}return c.default=a,b&&b.set(a,c),c}(a.r(717));function e(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(e=function(a){return a?c:b})(a)}let f={current:null},g="function"==typeof d.cache?d.cache:a=>a,h=console.warn;function i(a){return function(...b){h(a(...b))}}g(a=>{try{h(f.current)}finally{f.current=null}})},81740,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"cookies",{enumerable:!0,get:function(){return o}});let d=a.r(14896),e=a.r(63681),f=a.r(56704),g=a.r(32319),h=a.r(60384),i=a.r(60312),j=a.r(13091),k=a.r(8018),l=a.r(28091),m=a.r(50640),n=a.r(55907);function o(){let a="cookies",b=f.workAsyncStorage.getStore(),c=g.workUnitAsyncStorage.getStore();if(b){if(c&&!(0,l.isRequestApiAllowedInCurrentPhase)(c))throw Error(`Route ${b.route} used \`cookies()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`);if(b.forceStatic)return q(d.RequestCookiesAdapter.seal(new e.RequestCookies(new Headers({}))));if(b.dynamicShouldError)throw new i.StaticGenBailoutError(`Route ${b.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(c)switch(c.type){case"cache":let f=(0,n.createCookiesInUseCacheError)(b.route);throw Error.captureStackTrace(f,o),(0,j.applyOwnerStack)(f),b.invalidDynamicUsageError??=f,f;case"unstable-cache":throw(0,n.createCookiesInUnstableCacheError)(b.route);case"build-time-generator":throw Error(`Route ${b.route} used \`cookies()\` inside \`${c.functionName}\`. This is not supported because \`${c.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`);case"prerender":var k=b,r=c;let g=p.get(r);if(g)return g;let s=(0,j.makeSessionDataHangingPromise)(r.renderSignal,k.route,"`cookies()`",r);return p.set(r,s),s;case"prerender-client":case"validation-client":let t="`cookies`";throw new m.InvariantError(`${t} must not be used within a Client Component. Next.js should be preventing ${t} from being included in Client Components statically, but did not in this case.`);case"prerender-legacy":return(0,h.throwToInterruptStaticGeneration)(a,b,c);case"prerender-runtime":{let{stagedRendering:a}=c;if(a)return a.delayUntilStage(j.RENDER_STAGES_BY_DATA_KIND.sessionData,"cookies",c.cookies);return q(c.cookies)}case"private-cache":return q(c.cookies);case"request":let u;if((0,h.trackDynamicDataInDynamicRender)(c),u=(0,d.areCookiesMutableInCurrentPhase)(c)?c.userspaceMutableCookies:c.cookies,!c.asyncApiPromises)return q(u);if(u===c.mutableCookies)return c.asyncApiPromises.mutableCookies;return c.asyncApiPromises.cookies}}(0,g.throwForMissingRequestStore)(a)}let p=new WeakMap;function q(a){let b=p.get(a);if(b)return b;let c=Promise.resolve(a);return p.set(a,c),c}(0,k.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Error(`${c}used ${b}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)})},51125,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"draftMode",{enumerable:!0,get:function(){return m}});let d=a.r(32319),e=a.r(56704),f=a.r(60384),g=a.r(8018),h=a.r(60312),i=a.r(96556),j=a.r(50640),k=a.r(55907);a.r(51409);let l=a.r(13091);function m(){let a="draftMode",b=e.workAsyncStorage.getStore(),c=d.workUnitAsyncStorage.getStore();switch((!b||!c)&&(0,d.throwForMissingRequestStore)(a),c.type){case"prerender-runtime":{let{stagedRendering:a}=c;if(a)return a.delayUntilStage(l.RENDER_STAGES_BY_DATA_KIND.sessionData,"draftMode",new q(c.draftMode));return n(c.draftMode,b)}case"request":return n(c.draftMode,b);case"cache":case"private-cache":case"unstable-cache":let f=(0,d.getDraftModeProviderForCacheScope)(b,c);if(f)return n(f,b);case"prerender":case"prerender-legacy":return n(null,b);case"prerender-client":case"validation-client":{let a="`draftMode`";throw new j.InvariantError(`${a} must not be used within a Client Component. Next.js should be preventing ${a} from being included in Client Components statically, but did not in this case.`)}case"build-time-generator":throw Error(`Route ${b.route} used \`${a}()\` inside \`${c.functionName}\`. This is not supported because \`${c.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`);default:return c}}function n(a,b){let c=p.get(a??o);return c||Promise.resolve(new q(a))}let o={},p=new WeakMap;class q{constructor(a){this._provider=a}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){r("draftMode().enable()",this.enable),null!==this._provider&&this._provider.enable()}disable(){r("draftMode().disable()",this.disable),null!==this._provider&&this._provider.disable()}}function r(a,b){let c=e.workAsyncStorage.getStore(),g=d.workUnitAsyncStorage.getStore();if(c){if((null==g?void 0:g.phase)==="after")throw Error(`Route ${c.route} used "${a}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`);if(c.dynamicShouldError)throw new h.StaticGenBailoutError(`Route ${c.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${a}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(g)switch(g.type){case"cache":case"private-cache":{let d=(0,k.createDraftModeMutationInUseCacheError)(c.route,a);throw Error.captureStackTrace(d,b),(0,l.applyOwnerStack)(d),c.invalidDynamicUsageError??=d,d}case"unstable-cache":throw(0,k.createDraftModeMutationInUnstableCacheError)(c.route,a);case"prerender":case"prerender-runtime":{let b=Error(`Route ${c.route} used ${a} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`);return(0,f.abortAndThrowOnSynchronousRequestDataAccess)(c.route,a,b,g)}case"prerender-client":case"validation-client":let d="`draftMode`";throw new j.InvariantError(`${d} must not be used within a Client Component. Next.js should be preventing ${d} from being included in Client Components statically, but did not in this case.`);case"prerender-legacy":g.revalidate=0;let e=new i.DynamicServerError(`Route ${c.route} couldn't be rendered statically because it used \`${a}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw c.dynamicUsageDescription=a,c.dynamicUsageStack=e.stack,e;case"request":(0,f.trackDynamicDataInDynamicRender)(g);break;case"build-time-generator":throw Error(`Route ${c.route} used \`${a}\` inside \`${g.functionName}\`. This is not supported because \`${g.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}}}(0,g.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Error(`${c}used ${b}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)})},35754,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"headers",{enumerable:!0,get:function(){return n}});let d=a.r(29927),e=a.r(56704),f=a.r(32319),g=a.r(60384),h=a.r(60312),i=a.r(13091),j=a.r(8018),k=a.r(28091),l=a.r(50640),m=a.r(55907);function n(){let a="headers",b=e.workAsyncStorage.getStore(),c=f.workUnitAsyncStorage.getStore();if(b){if(c&&!(0,k.isRequestApiAllowedInCurrentPhase)(c))throw Error(`Route ${b.route} used \`headers()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`);if(b.forceStatic)return p(d.HeadersAdapter.seal(new Headers({})));if(c)switch(c.type){case"cache":{let a=(0,m.createHeadersInUseCacheError)(b.route);throw Error.captureStackTrace(a,n),(0,i.applyOwnerStack)(a),b.invalidDynamicUsageError??=a,a}case"unstable-cache":throw(0,m.createHeadersInUnstableCacheError)(b.route);case"build-time-generator":throw Error(`Route ${b.route} used \`headers()\` inside \`${c.functionName}\`. This is not supported because \`${c.functionName}\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}if(b.dynamicShouldError)throw new h.StaticGenBailoutError(`Route ${b.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(c)switch(c.type){case"prerender":var j=b,q=c;let e=o.get(q);if(e)return e;let f=(0,i.makeSessionDataHangingPromise)(q.renderSignal,j.route,"`headers()`",q);return o.set(q,f),f;case"prerender-client":case"validation-client":let r="`headers`";throw new l.InvariantError(`${r} must not be used within a client component. Next.js should be preventing ${r} from being included in client components statically, but did not in this case.`);case"prerender-legacy":return(0,g.throwToInterruptStaticGeneration)(a,b,c);case"prerender-runtime":{let{stagedRendering:a}=c;if(a)return a.delayUntilStage(i.RENDER_STAGES_BY_DATA_KIND.sessionData,"headers",c.headers);return p(c.headers)}case"private-cache":return p(c.headers);case"request":if((0,g.trackDynamicDataInDynamicRender)(c),c.asyncApiPromises)return c.asyncApiPromises.headers;return p(c.headers)}}(0,f.throwForMissingRequestStore)(a)}let o=new WeakMap;function p(a){let b=o.get(a);if(b)return b;let c=Promise.resolve(a);return o.set(a,c),c}(0,j.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Error(`${c}used ${b}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)})},28091,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={isRequestApiAllowedInCurrentPhase:function(){return l},throwForSearchParamsAccessInUseCache:function(){return k},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(60312),g=a.r(20635),h=a.r(24725),i=a.r(55907);function j(a,b){throw new f.StaticGenBailoutError(`Route ${a} with \`dynamic = "error"\` couldn't be rendered statically because it used ${b}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function k(a,b){let c=(0,i.createSearchParamsInUseCacheError)(a.route);throw Error.captureStackTrace(c,b),a.invalidDynamicUsageError??=c,c}function l(a){switch(a.phase){case"action":case"render":return!0;case"after":{let a=g.actionAsyncStorage.getStore();if(a&&(a.isAppRoute||a.isAction))return!0;let b=h.afterTaskAsyncStorage.getStore();if(b)return"action"===b.rootTaskSpawnPhase;return!1}}}},55907,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={createCacheLifeOutsideUseCacheError:function(){return B},createCacheTagOutsideUseCacheError:function(){return A},createConnectionInPrivateUseCacheError:function(){return q},createConnectionInPublicUseCacheError:function(){return p},createConnectionInUnstableCacheError:function(){return r},createCookiesInUnstableCacheError:function(){return l},createCookiesInUseCacheError:function(){return k},createDraftModeMutationInUnstableCacheError:function(){return v},createDraftModeMutationInUseCacheError:function(){return u},createHeadersInUnstableCacheError:function(){return n},createHeadersInUseCacheError:function(){return m},createNestedCacheShortExpireError:function(){return D},createNestedCacheZeroRevalidateError:function(){return C},createRevalidateDuringRenderError:function(){return w},createRevalidateInBuildTimeGeneratorError:function(){return y},createRevalidateInCachedFunctionError:function(){return x},createRouteHandlerRequestInUnstableCacheError:function(){return t},createRouteHandlerRequestInUseCacheError:function(){return s},createSearchParamsInUseCacheError:function(){return o},createUseCachePrivateInsidePublicUseCacheError:function(){return E},createUseCachePrivateInsideUnstableCacheError:function(){return F},createUseCachePrivateOutsideRequestContextError:function(){return G}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="https://nextjs.org/docs/messages/next-request-in-use-cache",g="https://nextjs.org/docs/app/api-reference/functions/unstable_cache",h="https://nextjs.org/docs/messages/use-cache-private-composition",i="https://nextjs.org/docs/messages/revalidate-in-use-cache",j="https://nextjs.org/docs/messages/nested-use-cache-no-explicit-cachelife";function k(a){return Error(`Route "${a}": \`cookies()\` can't be read inside \`"use cache"\`. Read it outside the cached function and pass what you need as an argument.
2
2
  Learn more: ${f}`)}function l(a){return Error(`Route "${a}": \`cookies()\` can't be read inside \`unstable_cache()\`. Read it outside the cached function and pass what you need as an argument.
3
3
  Learn more: ${g}`)}function m(a){return Error(`Route "${a}": \`headers()\` can't be read inside \`"use cache"\`. Read it outside the cached function and pass what you need as an argument.
4
4
  Learn more: ${f}`)}function n(a){return Error(`Route "${a}": \`headers()\` can't be read inside \`unstable_cache()\`. Read it outside the cached function and pass what you need as an argument.
@@ -0,0 +1,3 @@
1
+ module.exports=[7075,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd",b.callServer,void 0,b.findSourceMapURL,"getTelemetryConfig");a.s(["f",0,c])},18952,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=[],e=0,f=new Set;function g(){for(let a of f)a()}function h(a){return f.add(a),()=>f.delete(a)}function i(){return d}function j({message:a}){let[d,e]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{requestAnimationFrame(()=>e(!0));let a=setTimeout(()=>e(!1),2e3);return()=>clearTimeout(a)},[]),(0,b.jsx)("div",{className:`bg-card border border-border text-foreground text-sm px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 ${d?"opacity-100":"opacity-0"}`,children:a})}a.s(["Toaster",0,function(){let a=(0,c.useSyncExternalStore)(h,i,i);return(0,b.jsx)("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2",children:a.map(a=>(0,b.jsx)(j,{message:a.message},a.id))})},"toast",0,function(a){let b=e++;d=[...d,{id:b,message:a}],g(),setTimeout(()=>{d=d.filter(a=>a.id!==b),g()},2500)}])},10765,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944),e=a.i(7075),f=a.i(66036);let g=(0,c.createContext)(void 0);a.s(["PostHogProvider",0,function({children:a}){let h=(0,d.usePathname)(),i=(0,c.useRef)(null),j=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let a=!1;return(0,e.f)().then(b=>{a||((0,f.$)(b),j.current=!0,(0,f.L)("$pageview"),i.current=window.location.pathname)}),()=>{a=!0}},[]),(0,c.useEffect)(()=>{j.current&&i.current!==h&&(i.current=h,(0,f.L)("$pageview"))},[h]);let k=c.default.useCallback((a,b)=>{(0,f.L)(a,b)},[]);return(0,b.jsx)(g.Provider,{value:{capture:k},children:a})},"usePostHog",0,function(){let a=(0,c.useContext)(g);if(void 0===a)throw Error("usePostHog must be used within a PostHogProvider");return a}])},66036,a=>{"use strict";a.s(["L",0,function(a,b){},"$",0,function(a){}])},5050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20611),g=a.r(1722),h=a.r(38783)}];
2
+
3
+ //# sourceMappingURL=_0f-kswpk5hx7v._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[21776,a=>{"use strict";var b=a.i(36359),c=a.i(7292);a.S([b,"00eeeb479449840c0b5aa2e97196df42859b33a929,f",0,c,"60a33362691acd2f1b37952bae9d0312e29b51dc58,m"],21776)},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
1
+ module.exports=[21776,a=>{"use strict";var b=a.i(36359),c=a.i(7292);a.S([b,"00d25d432ab44d24ae5a4d3ee1f0bd5e723bc490dd,f",0,c,"6025757781d5477fc9ceed924282f5459530ce3920,m"],21776)},2726,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__12qr51qgrrt6o._.js","server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js"].map(b=>a.l(b))).then(()=>b(74493)))}];
2
2
 
3
3
  //# sourceMappingURL=_0pedwblqdoh58._.js.map