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=[4614,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(5050);let e=(0,d.createServerReference)("007e92d9668a7254e98f744e4dfc0ae7152424651c",d.callServer,void 0,d.findSourceMapURL,"getJevSettingsAction"),f=(0,d.createServerReference)("00ded143c9388f1b6929b398b0dec2c0be856e8f9d",d.callServer,void 0,d.findSourceMapURL,"removeJevConfigAction"),g=(0,d.createServerReference)("401b4ffefb60a89ecd280748aaf584b592e7ab665d",d.callServer,void 0,d.findSourceMapURL,"saveJevConfigAction"),h=(0,d.createServerReference)("4085746f0864553f4e65f1510a52a382371531a5cc",d.callServer,void 0,d.findSourceMapURL,"setJevModeAction");var i=a.i(18952);let j=[{value:"typesafe",label:"typesafe"},{value:"openrouter",label:"openrouter"},{value:"vercel",label:"vercel ai gateway"},{value:"cloudflare",label:"cloudflare workers ai"},{value:"custom",label:"custom endpoint"}],k=[{value:"enforce",label:"enforce — jev's verdict counts"},{value:"observe",label:"observe — log only, regex decides"},{value:"off",label:"off — keep this config, don't ask jev"}],l="failproofai";function m(a){return{provider:a.provider&&a.provider!==l?a.provider:"typesafe",baseUrl:a.baseUrl,accountId:a.accountId,mode:a.mode}}function n({id:a,label:c,hint:d,children:e}){return(0,b.jsxs)("div",{className:"set-field",children:[(0,b.jsx)("label",{className:"set-field-label",htmlFor:a,children:c}),e,d?(0,b.jsx)("span",{className:"set-hint",children:d}):null]})}a.s(["default",0,function({initial:a}){var d,o,p;let q,[r,s]=(0,c.useState)(a),[t,u]=(0,c.useState)(a?m(a):{provider:"typesafe",baseUrl:"",accountId:"",mode:"enforce"}),[v,w]=(0,c.useState)(""),[x,y]=(0,c.useState)(!1),[z,A]=(0,c.useState)(null),[B,C]=(0,c.useState)(!1),D=(0,c.useRef)(!0),E=(0,c.useRef)(!1),F=(0,c.useCallback)(async()=>{try{let a=await e();if(!D.current)return;s(a),E.current||u(m(a))}catch{}},[]);(0,c.useEffect)(()=>(D.current=!0,F(),()=>{D.current=!1}),[F]),(0,c.useEffect)(()=>{let a=()=>void F();return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[F]);let G=(0,c.useCallback)((a,b)=>{E.current=!0,u(c=>({...c,[a]:b}))},[]),H=(0,c.useCallback)(async()=>{y(!0),A(null);try{let a=await g({provider:t.provider,baseUrl:t.baseUrl,accountId:t.accountId,mode:t.mode,token:v});if(!a.ok){A(a.problem),C(!0===a.needsToken);return}E.current=!1,C(!1),w(""),s(a.view),u(m(a.view)),(0,i.toast)(a.view.on?"jev is on.":"saved.")}catch{A("could not save that.")}finally{y(!1)}},[t,v]),I=(0,c.useCallback)(async a=>{y(!0),A(null);try{let b=await h(a);if(!b.ok)return void A(b.problem);E.current=!1,s(b.view),u(m(b.view)),(0,i.toast)("off"===a?"jev is off. hooks run the regex policies.":`jev is on, in ${a} mode.`)}catch{A("could not switch that.")}finally{y(!1)}},[]),J=(0,c.useCallback)(async()=>{y(!0),A(null),C(!1);try{let a=await f();if(!a.ok)return void A(a.problem);E.current=!1,w(""),s(a.view),u(m(a.view)),(0,i.toast)("jev is off. hooks run the regex policies.")}catch{A("could not turn that off.")}finally{y(!1)}},[]),K=null!==r&&"absent"!==r.status,L=r?.provider===l,M=r?.token,N=B?"needed for this save — type the token for this endpoint":M?"cloud"===M.source?"from this machine's FailproofAI Cloud connection":"env"===M.source?"configured, read from the environment — leave blank to keep it":"configured — leave blank to keep it":r?.status==="key-missing"?"read from the environment, which is not set in this shell — leave blank to keep it that way":"sent as a bearer token; stored owner-only at 0600";return(0,b.jsxs)("div",{className:"set-cell set-jev",children:[(0,b.jsx)("h2",{className:"set-cell-title",children:"jev · semantic evaluation"}),(0,b.jsx)("div",{className:"set-row set-row-main",children:(0,b.jsxs)("div",{className:"set-row-copy",children:[(0,b.jsx)("span",{className:r?.on?"set-strong":"set-dim",children:null===r?"reading…":r.on?`on. every judged command is also asked of ${(d=r.provider)===l?"FailproofAI Cloud":d??""}.`:"off"===r.status?"off — switched off. hooks run the regex policies exactly as before.":"not-connected"===r.status?"off — this machine is not connected to FailproofAI Cloud. hooks run the regex policies.":"key-lacks-jev"===r.status?"off — no jev key is stored for this machine's FailproofAI Cloud connection. hooks run the regex policies.":"key-missing"===r.status?"off for this dashboard — FAILPROOFAI_JEV_API_KEY is not set in its environment. hooks run the regex policies wherever it is unset, including under the daemon; a session that sets it still consults jev.":"off. hooks run the regex policies exactly as before."}),(0,b.jsx)("span",{className:"set-dim",children:r?.on?"observe"===r.mode?"observe: jev's answers are logged, the regex result is what gets enforced.":"enforce: jev's answers can clear a reviewable deny.":L?"through FailproofAI Cloud, on your org's plan — no endpoint or token of your own.":"a second opinion on the commands the regex policies flag. needs your own endpoint and token."})]})}),r&&(0,b.jsx)("dl",{className:"set-how-list set-jev-cloud",children:(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"FailproofAI Cloud connection"}),(0,b.jsx)("dd",{className:"set-how-body",children:function(a){if(!a||!a.connected)return a?.jev==="yes"?"a jev key is stored, but no connection is":"not connected";let b=a.org??a.host??"connected",c="yes"===a.jev?"key carries jev":"refused"===a.jev?"jev key refused — credentials.json is not owner-only":"no jev key stored";return`connected to ${b} \xb7 ${c}`}(r.cloud)})]})}),r&&K&&(0,b.jsxs)("dl",{className:"set-how-list",children:[L&&(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"provider"}),(0,b.jsx)("dd",{className:"set-how-body",children:r.cloud?.host?`FailproofAI Cloud \xb7 ${r.cloud.host}`:"FailproofAI Cloud"})]}),(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"model"}),(0,b.jsx)("dd",{className:"set-how-body",children:function(a){switch(a.kind){case"id":return a.id;case"withheld":return"set to something that is not a model id — not shown here, in case it is a key";default:return"the provider's default"}}(r.model)})]}),(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"token"}),(0,b.jsx)("dd",{className:"set-how-body",children:M?"cloud"===M.source?"FailproofAI Cloud connection":"env"===M.source?"from FAILPROOFAI_JEV_API_KEY":"configured":L?r.cloud?.connected?"none stored for this connection":"none — this machine is not connected":"none stored"})]}),r.reviewable&&(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"reviewable"}),(0,b.jsx)("dd",{className:"set-how-body",children:r.reviewable.summary})]}),r.stats&&r.stats.total>0&&(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"fallbacks"}),(0,b.jsx)("dd",{className:"set-how-body",children:`${(o=r.stats.fallbackRate,`${Math.round(100*o)}%`)} of ${r.stats.total} calls in the last ${Number.isInteger(q=(p=r.stats.windowMs)/36e5)&&q>=1?q%24==0?`${q/24}d`:`${q}h`:`${Math.max(1,Math.round(p/6e4))}m`} fell back to the regex engine.`})]})]}),r?.problem&&(0,b.jsxs)("p",{className:"set-warn",children:[r.problem,r.fix?` — ${r.fix}`:""]}),r?.reviewable?.problem&&(0,b.jsx)("p",{className:"set-warn",children:r.reviewable.problem}),(0,b.jsx)("div",{className:"set-rule"}),L?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"set-jev-fields",children:(0,b.jsx)(n,{id:"jev-cloud-mode",label:"mode",hint:"the endpoint and key come from this machine's FailproofAI Cloud connection",children:(0,b.jsx)("select",{id:"jev-cloud-mode",className:"set-select",value:r?.mode==="enforce"?"enforce":"observe",disabled:x||r?.mode==="off",onChange:a=>void I("enforce"===a.target.value?"enforce":"observe"),children:k.filter(a=>"off"!==a.value).map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))})})}),z&&(0,b.jsx)("p",{className:"set-warn",children:z}),(0,b.jsx)("div",{className:"set-actions set-jev-actions",children:(0,b.jsx)("button",{type:"button",className:"btn btn-press",disabled:x,onClick:()=>void I(r?.mode==="off"?"observe":"off"),children:x?"[ switching… ]":r?.mode==="off"?"[ turn jev on ]":"[ turn jev off ]"})})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"set-jev-fields",children:[(0,b.jsx)(n,{id:"jev-provider",label:"provider",children:(0,b.jsx)("select",{id:"jev-provider",className:"set-select",value:t.provider,disabled:x,onChange:a=>G("provider",a.target.value),children:j.map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))})}),(0,b.jsx)(n,{id:"jev-url",label:"endpoint url",hint:["custom"===t.provider?"required — https, or http to localhost in observe mode":"leave blank for the provider's own api",r?.baseUrlQueryWithheld?"the stored url's query string is not shown here — leave the url as it is to keep it":null].filter(Boolean).join(" · "),children:(0,b.jsx)("input",{id:"jev-url",type:"text",className:"set-text",inputMode:"url",autoComplete:"off",spellCheck:!1,placeholder:"custom"===t.provider?"https://…":"the provider's own api",value:t.baseUrl,disabled:x,onChange:a=>G("baseUrl",a.target.value)})}),"cloudflare"===t.provider&&(0,b.jsx)(n,{id:"jev-account",label:"account id",hint:"32 lowercase hex characters",children:(0,b.jsx)("input",{id:"jev-account",type:"text",className:"set-text",autoComplete:"off",spellCheck:!1,value:t.accountId,disabled:x,onChange:a=>G("accountId",a.target.value)})}),(0,b.jsx)(n,{id:"jev-token",label:"token",hint:N,children:(0,b.jsx)("input",{id:"jev-token",type:"password",className:"set-text",autoComplete:"off",spellCheck:!1,placeholder:M?"•••• kept":"",value:v,disabled:x,"aria-invalid":B||void 0,onChange:a=>{E.current=!0,w(a.target.value)}})}),(0,b.jsx)(n,{id:"jev-mode",label:"mode",children:(0,b.jsx)("select",{id:"jev-mode",className:"set-select",value:t.mode,disabled:x,onChange:a=>G("mode",a.target.value),children:k.map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))})})]}),z&&(0,b.jsx)("p",{className:"set-warn",children:z}),(0,b.jsxs)("div",{className:"set-actions set-jev-actions",children:[(0,b.jsx)("button",{type:"button",className:"btn btn-press",disabled:x,onClick:()=>void H(),children:x?"[ saving… ]":K?"[ save changes ]":"[ turn jev on ]"}),K&&(0,b.jsx)("button",{type:"button",className:"set-link",disabled:x,onClick:()=>void J(),children:"turn jev off"})]})]})]})}],4614)},41857,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(5050);let e=(0,d.createServerReference)("003d3ebc32a927ac390f01302b584f3a4a51f50891",d.callServer,void 0,d.findSourceMapURL,"getScheduledAuditAction"),f=(0,d.createServerReference)("401ce6e245e8c72e7572b87cbce985019b19b195a1",d.callServer,void 0,d.findSourceMapURL,"setAutoAuditAction"),g=(0,d.createServerReference)("404600484b2ed61352c3c97eeea252534c2af8516f",d.callServer,void 0,d.findSourceMapURL,"setAuditIntervalAction");var h=a.i(89564),i=a.i(4543),j=a.i(18952),k=a.i(80977);function l(a){return new Date(a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function m(a,b){let c=a-b;if(c<=0)return"now";let d=Math.floor(c/864e5),e=Math.floor(c%864e5/36e5);return d>0?e>0?`${d}d ${e}h`:`${d}d`:e>0?`${e}h`:`${Math.max(1,Math.floor(c/6e4))}m`}function n(a){return a.toLocaleString("en-US")}function o({label:a,value:c,sub:d,tone:e}){return(0,b.jsxs)("div",{className:"set-stat",children:[(0,b.jsx)("div",{className:"set-stat-label",children:a}),(0,b.jsx)("div",{className:`set-stat-value${e?` ${e}`:""}`,children:c}),(0,b.jsx)("div",{className:"set-stat-sub",children:d??" "})]})}function p({lastRunAtMs:a,nextDueAtMs:c,now:d}){if(null==a||null==c||c<=a)return null;let e=Math.min(100,Math.max(0,(d-a)/(c-a)*100));return(0,b.jsxs)("div",{className:"tape","aria-hidden":"true",children:[(0,b.jsxs)("div",{className:"tape-rail",children:[(0,b.jsx)("div",{className:"tape-fill",style:{width:`${e}%`}}),(0,b.jsx)("div",{className:"tape-now",style:{left:`${e}%`}})]}),(0,b.jsxs)("div",{className:"tape-ends",children:[(0,b.jsxs)("span",{children:["last scan · ",l(a)]}),(0,b.jsxs)("span",{className:"tape-next",children:["next · ",m(c,d)]})]})]})}function q({enabled:a,onChange:c,disabled:d,label:e}){return(0,b.jsx)("button",{type:"button",role:"switch","aria-checked":a,"aria-label":e,disabled:d,onClick:c,className:"sw","data-on":a?"true":"false",children:(0,b.jsx)("span",{className:"sw-knob"})})}let r=[{label:"reads",body:"every session transcript on disk — your prompts, the files your agents read and wrote, and command output."},{label:"runs",body:"entirely on this machine. the transcripts never leave it."},{label:"sends",body:"counts, redacted examples, and this machine's name — and only when a scan finds something harmful."}];a.s(["default",0,function({initial:a,jevPanel:d}){let[s,t]=(0,c.useState)(a),[u,v]=(0,c.useState)(a?.auto??!1),[w,x]=(0,c.useState)(a?.intervalDays??7),[y,z]=(0,c.useState)(!1),[A,B]=(0,c.useState)(!1),[C,D]=(0,c.useState)(!1),[E,F]=(0,c.useState)(null===a),[G,H]=(0,c.useState)(0),I=(0,c.useRef)(!0),J=(0,c.useRef)(null!==a),K=(0,c.useCallback)(async()=>{try{let a=await e();if(!I.current)return;t(a),J.current=!0,v(a.auto),x(a.intervalDays),H(Date.now()),F(!1)}catch{I.current&&!J.current&&F(!0)}},[]);(0,c.useEffect)(()=>(I.current=!0,K(),()=>{I.current=!1}),[K]),(0,c.useEffect)(()=>{let a=()=>void K();return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[K]);let L=s?.signedInAs??null,M=s?.daemon==="running",N=s?.daemon==="unsupported-platform",O=s?.schedule??null,P=s?.lastScan??null,Q=O?.lastExitCode!=null&&0!==O.lastExitCode&&75!==O.lastExitCode,R=(0,c.useCallback)(async()=>{z(!0);try{let a=await f(!0);if(!a.ok){if(v(!1),"unreachable"===a.reason)return void(0,j.toast)("could not reach the server. check your connection and try again.");await K(),D(!0),(0,j.toast)("that sign-in expired. one more code and it's on.");return}v(a.auto),(0,j.toast)("scheduled audits on."),await K()}catch{v(!1),(0,j.toast)("could not turn that on.")}finally{z(!1)}},[K]),S=(0,c.useCallback)(async()=>{if(u){z(!0);try{let a=await f(!1);a.ok&&v(a.auto),(0,j.toast)("scheduled audits off."),await K()}catch{(0,j.toast)("could not turn that off.")}finally{z(!1)}return}L?await R():D(!0)},[u,R,K,L]),T=(0,c.useCallback)(async a=>{z(!0);try{let b=await g(a);x(b.intervalDays),t(a=>a?{...a,intervalDays:b.intervalDays}:a),(0,j.toast)(`scanning every ${b.intervalDays} day${1===b.intervalDays?"":"s"}.`)}catch{x(s?.intervalDays??7),(0,j.toast)("could not save that.")}finally{z(!1)}},[s?.intervalDays]),U=(0,c.useCallback)(async()=>{z(!0);try{await fetch("/api/auth/logout",{method:"POST"}),(0,j.toast)("signed out. scans continue; digests pause."),await K()}catch{(0,j.toast)("could not sign out.")}finally{z(!1)}},[K]),V=(0,c.useCallback)(async()=>{if(!A){B(!0);try{await (0,h.s)({cli:[],since:"all",noCache:!1}),(0,j.toast)("scan complete."),await K()}catch(a){(0,j.toast)(a instanceof h.t&&"timeout"===a.kind?"the scan is taking a while — it will finish in the background.":"the scan could not be completed.")}finally{B(!1)}}},[K,A]),W=(0,c.useCallback)(async a=>{D(!1),await K(),await R()},[R,K]),X=s?M?{value:"running",sub:null!=s.daemonStartedAtMs&&G>0?`up ${function(a){let b=Math.floor(a/864e5);if(b>0)return`${b}d`;let c=Math.floor(a/36e5);return c>0?`${c}h`:`${Math.max(1,Math.floor(a/6e4))}m`}(Math.max(0,G-s.daemonStartedAtMs))}`:"",tone:"ok"}:N?{value:"unavailable",sub:"not on this platform"}:"not-installed"===s.daemon?{value:"not installed",sub:"run failproofai config",tone:"warn"}:"unknown"===s.daemon?{value:"unknown",sub:"could not read it"}:{value:"stopped",sub:"run failproofai config",tone:"warn"}:{value:"…",sub:"reading"},Y=u?O?.nextDueAtMs==null?{value:"pending",sub:"after the next scan"}:{value:G>0?m(O.nextDueAtMs,G):"—",sub:l(O.nextDueAtMs)}:{value:"off",sub:"nothing scheduled"},Z=P?{value:(0,k.f)(Date.parse(P.finishedAt)),sub:null!=P.sessionsScanned?`${n(P.sessionsScanned)} sessions`:"scanned"}:{value:"none yet",sub:"run one below"},$=P?null==P.findings?{value:"—",sub:"unreadable"}:{value:n(P.findings),sub:"this scan",...P.findings>0?{tone:"warn"}:{}}:{value:"—",sub:"no scan yet"};return(0,b.jsxs)("main",{className:"report",children:[(0,b.jsxs)("section",{className:"section set-sec",children:[(0,b.jsxs)("div",{className:"set-mast",children:[(0,b.jsx)("h1",{className:"set-title",children:"settings"}),(0,b.jsx)("p",{className:"set-lede",children:"keeping watch, so you don't have to."})]}),E?(0,b.jsxs)("div",{className:"set-console",children:[(0,b.jsx)("div",{className:"set-cell",children:(0,b.jsxs)("p",{className:"set-warn",children:["could not read this machine's settings. check that the dashboard can reach ",(0,b.jsx)("code",{children:"~/.failproofai/config.json"}),"."]})}),d]}):(0,b.jsxs)("div",{className:"set-console",children:[(0,b.jsxs)("div",{className:"set-stats",children:[(0,b.jsx)(o,{label:"daemon",...X}),(0,b.jsx)(o,{label:"next scan",...Y}),(0,b.jsx)(o,{label:"last scan",...Z}),(0,b.jsx)(o,{label:"findings",...$})]}),(0,b.jsxs)("div",{className:"set-cols",children:[(0,b.jsxs)("div",{className:"set-cell set-config",children:[(0,b.jsx)("h2",{className:"set-cell-title",children:"scheduled audit"}),(0,b.jsxs)("div",{className:"set-row set-row-main",children:[(0,b.jsx)(q,{enabled:u,disabled:y||null===s,onChange:()=>void S(),label:u?"turn off scheduled audits":"turn on scheduled audits"}),(0,b.jsxs)("div",{className:"set-row-copy",children:[(0,b.jsx)("span",{className:"set-strong",children:u?"scanning on a schedule.":"scan on a schedule."}),(0,b.jsx)("span",{className:"set-dim",children:u?"you'll get an email only when a scan finds something.":"off. nothing runs and nothing is sent."})]})]}),(0,b.jsxs)("div",{className:"set-row set-row-interval",children:[(0,b.jsx)("span",{className:"set-dim",children:"scan every"}),(0,b.jsx)("input",{type:"number",className:"set-num",min:1,max:90,value:w,disabled:y||null===s,"aria-label":"days between scheduled scans",onChange:a=>x(Number(a.target.value)),onBlur:a=>{let b=Number(a.target.value);Number.isFinite(b)?b!==s?.intervalDays&&T(b):x(s?.intervalDays??7)}}),(0,b.jsx)("span",{className:"set-dim",children:"days"}),(0,b.jsxs)("span",{className:"set-hint",children:[1,"–",90]})]}),(0,b.jsx)("div",{className:"set-rule"}),(0,b.jsx)("div",{className:"set-row set-row-identity",children:L?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"set-dim",children:"reports go to"}),(0,b.jsx)("span",{className:"set-email",children:L.email}),(0,b.jsx)("button",{type:"button",className:"set-link",disabled:y,onClick:()=>void U(),children:"sign out"})]}):u?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"set-warn",children:"signed out — scans continue, digests are paused."}),(0,b.jsx)("button",{type:"button",className:"set-link",disabled:y,onClick:()=>D(!0),children:"sign in to resume"})]}):(0,b.jsx)("span",{className:"set-dim",children:"turning this on asks for an email, so there is somewhere to send the report."})}),u&&s&&!M&&(0,b.jsx)("p",{className:"set-warn",children:N?"the background service isn't available on this platform, so scheduled scans can't run here. you can still run one now.":"not-installed"===s.daemon?"the background service isn't installed, so nothing will run on the timer. install it with `failproofai config`.":"the background service is stopped, so nothing will run until it starts. repair it with `failproofai config`."}),Q&&(0,b.jsxs)("p",{className:"set-warn",children:["the last scheduled scan exited ",O?.lastExitCode,". the next one will still run."]}),(0,b.jsx)("div",{className:"set-actions",children:(0,b.jsx)("button",{type:"button",className:"btn btn-press",disabled:A,onClick:()=>void V(),children:A?"[ scanning… ]":"[ run a scan now ]"})})]}),(0,b.jsxs)("div",{className:"set-cell set-how",children:[(0,b.jsx)("h2",{className:"set-cell-title",children:"how it works"}),(0,b.jsx)("dl",{className:"set-how-list",children:r.map(a=>(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:a.label}),(0,b.jsx)("dd",{className:"set-how-body",children:a.body})]},a.label))})]})]}),d]}),u&&G>0&&(0,b.jsx)(p,{lastRunAtMs:O?.lastRunAtMs??null,nextDueAtMs:O?.nextDueAtMs??null,now:G})]}),(0,b.jsx)(i.f,{open:C,source:"settings_scheduled_audit",headline:"where should the report go?",subhead:"we'll send a one-time code to confirm.",onClose:()=>D(!1),onAuthed:a=>void W(a)})]})}],41857)}];
1
+ module.exports=[4614,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(5050);let e=(0,d.createServerReference)("00e4daaf39246f33361a1b354bd1c04dde56c6709e",d.callServer,void 0,d.findSourceMapURL,"getJevSettingsAction"),f=(0,d.createServerReference)("00db8864609335cda9fd80c581ea94f634313d9841",d.callServer,void 0,d.findSourceMapURL,"removeJevConfigAction"),g=(0,d.createServerReference)("40d107dc41ee9e5e2a2cca087cb53cc06c950a3f27",d.callServer,void 0,d.findSourceMapURL,"saveJevConfigAction"),h=(0,d.createServerReference)("406d0831600950a08d7f267f01747e680280dfca24",d.callServer,void 0,d.findSourceMapURL,"setJevModeAction");var i=a.i(18952);let j=[{value:"typesafe",label:"typesafe"},{value:"openrouter",label:"openrouter"},{value:"vercel",label:"vercel ai gateway"},{value:"cloudflare",label:"cloudflare workers ai"},{value:"custom",label:"custom endpoint"}],k=[{value:"enforce",label:"enforce — jev's verdict counts"},{value:"observe",label:"observe — log only, regex decides"},{value:"off",label:"off — keep this config, don't ask jev"}],l="failproofai";function m(a){return{provider:a.provider&&a.provider!==l?a.provider:"typesafe",baseUrl:a.baseUrl,accountId:a.accountId,mode:a.mode}}function n({id:a,label:c,hint:d,children:e}){return(0,b.jsxs)("div",{className:"set-field",children:[(0,b.jsx)("label",{className:"set-field-label",htmlFor:a,children:c}),e,d?(0,b.jsx)("span",{className:"set-hint",children:d}):null]})}a.s(["default",0,function({initial:a}){var d,o,p;let q,[r,s]=(0,c.useState)(a),[t,u]=(0,c.useState)(a?m(a):{provider:"typesafe",baseUrl:"",accountId:"",mode:"enforce"}),[v,w]=(0,c.useState)(""),[x,y]=(0,c.useState)(!1),[z,A]=(0,c.useState)(null),[B,C]=(0,c.useState)(!1),D=(0,c.useRef)(!0),E=(0,c.useRef)(!1),F=(0,c.useCallback)(async()=>{try{let a=await e();if(!D.current)return;s(a),E.current||u(m(a))}catch{}},[]);(0,c.useEffect)(()=>(D.current=!0,F(),()=>{D.current=!1}),[F]),(0,c.useEffect)(()=>{let a=()=>void F();return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[F]);let G=(0,c.useCallback)((a,b)=>{E.current=!0,u(c=>({...c,[a]:b}))},[]),H=(0,c.useCallback)(async()=>{y(!0),A(null);try{let a=await g({provider:t.provider,baseUrl:t.baseUrl,accountId:t.accountId,mode:t.mode,token:v});if(!a.ok){A(a.problem),C(!0===a.needsToken);return}E.current=!1,C(!1),w(""),s(a.view),u(m(a.view)),(0,i.toast)(a.view.on?"jev is on.":"saved.")}catch{A("could not save that.")}finally{y(!1)}},[t,v]),I=(0,c.useCallback)(async a=>{y(!0),A(null);try{let b=await h(a);if(!b.ok)return void A(b.problem);E.current=!1,s(b.view),u(m(b.view)),(0,i.toast)("off"===a?"jev is off. hooks run the regex policies.":`jev is on, in ${a} mode.`)}catch{A("could not switch that.")}finally{y(!1)}},[]),J=(0,c.useCallback)(async()=>{y(!0),A(null),C(!1);try{let a=await f();if(!a.ok)return void A(a.problem);E.current=!1,w(""),s(a.view),u(m(a.view)),(0,i.toast)("jev is off. hooks run the regex policies.")}catch{A("could not turn that off.")}finally{y(!1)}},[]),K=null!==r&&"absent"!==r.status,L=r?.provider===l,M=r?.token,N=B?"needed for this save — type the token for this endpoint":M?"cloud"===M.source?"from this machine's FailproofAI Cloud connection":"env"===M.source?"configured, read from the environment — leave blank to keep it":"configured — leave blank to keep it":r?.status==="key-missing"?"read from the environment, which is not set in this shell — leave blank to keep it that way":"sent as a bearer token; stored owner-only at 0600";return(0,b.jsxs)("div",{className:"set-cell set-jev",children:[(0,b.jsx)("h2",{className:"set-cell-title",children:"jev · semantic evaluation"}),(0,b.jsx)("div",{className:"set-row set-row-main",children:(0,b.jsxs)("div",{className:"set-row-copy",children:[(0,b.jsx)("span",{className:r?.on?"set-strong":"set-dim",children:null===r?"reading…":r.on?`on. every judged command is also asked of ${(d=r.provider)===l?"FailproofAI Cloud":d??""}.`:"off"===r.status?"off — switched off. hooks run the regex policies exactly as before.":"not-connected"===r.status?"off — this machine is not connected to FailproofAI Cloud. hooks run the regex policies.":"key-lacks-jev"===r.status?"off — no jev key is stored for this machine's FailproofAI Cloud connection. hooks run the regex policies.":"key-missing"===r.status?"off for this dashboard — FAILPROOFAI_JEV_API_KEY is not set in its environment. hooks run the regex policies wherever it is unset, including under the daemon; a session that sets it still consults jev.":"off. hooks run the regex policies exactly as before."}),(0,b.jsx)("span",{className:"set-dim",children:r?.on?"observe"===r.mode?"observe: jev's answers are logged, the regex result is what gets enforced.":"enforce: jev's answers can clear a reviewable deny.":L?"through FailproofAI Cloud, on your org's plan — no endpoint or token of your own.":"a second opinion on the commands the regex policies flag. needs your own endpoint and token."})]})}),r&&(0,b.jsx)("dl",{className:"set-how-list set-jev-cloud",children:(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"FailproofAI Cloud connection"}),(0,b.jsx)("dd",{className:"set-how-body",children:function(a){if(!a||!a.connected)return a?.jev==="yes"?"a jev key is stored, but no connection is":"not connected";let b=a.org??a.host??"connected",c="yes"===a.jev?"key carries jev":"refused"===a.jev?"jev key refused — credentials.json is not owner-only":"no jev key stored";return`connected to ${b} \xb7 ${c}`}(r.cloud)})]})}),r&&K&&(0,b.jsxs)("dl",{className:"set-how-list",children:[L&&(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"provider"}),(0,b.jsx)("dd",{className:"set-how-body",children:r.cloud?.host?`FailproofAI Cloud \xb7 ${r.cloud.host}`:"FailproofAI Cloud"})]}),(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"model"}),(0,b.jsx)("dd",{className:"set-how-body",children:function(a){switch(a.kind){case"id":return a.id;case"withheld":return"set to something that is not a model id — not shown here, in case it is a key";default:return"the provider's default"}}(r.model)})]}),(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"token"}),(0,b.jsx)("dd",{className:"set-how-body",children:M?"cloud"===M.source?"FailproofAI Cloud connection":"env"===M.source?"from FAILPROOFAI_JEV_API_KEY":"configured":L?r.cloud?.connected?"none stored for this connection":"none — this machine is not connected":"none stored"})]}),r.reviewable&&(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"reviewable"}),(0,b.jsx)("dd",{className:"set-how-body",children:r.reviewable.summary})]}),r.stats&&r.stats.total>0&&(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:"fallbacks"}),(0,b.jsx)("dd",{className:"set-how-body",children:`${(o=r.stats.fallbackRate,`${Math.round(100*o)}%`)} of ${r.stats.total} calls in the last ${Number.isInteger(q=(p=r.stats.windowMs)/36e5)&&q>=1?q%24==0?`${q/24}d`:`${q}h`:`${Math.max(1,Math.round(p/6e4))}m`} fell back to the regex engine.`})]})]}),r?.problem&&(0,b.jsxs)("p",{className:"set-warn",children:[r.problem,r.fix?` — ${r.fix}`:""]}),r?.reviewable?.problem&&(0,b.jsx)("p",{className:"set-warn",children:r.reviewable.problem}),(0,b.jsx)("div",{className:"set-rule"}),L?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"set-jev-fields",children:(0,b.jsx)(n,{id:"jev-cloud-mode",label:"mode",hint:"the endpoint and key come from this machine's FailproofAI Cloud connection",children:(0,b.jsx)("select",{id:"jev-cloud-mode",className:"set-select",value:r?.mode==="enforce"?"enforce":"observe",disabled:x||r?.mode==="off",onChange:a=>void I("enforce"===a.target.value?"enforce":"observe"),children:k.filter(a=>"off"!==a.value).map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))})})}),z&&(0,b.jsx)("p",{className:"set-warn",children:z}),(0,b.jsx)("div",{className:"set-actions set-jev-actions",children:(0,b.jsx)("button",{type:"button",className:"btn btn-press",disabled:x,onClick:()=>void I(r?.mode==="off"?"observe":"off"),children:x?"[ switching… ]":r?.mode==="off"?"[ turn jev on ]":"[ turn jev off ]"})})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"set-jev-fields",children:[(0,b.jsx)(n,{id:"jev-provider",label:"provider",children:(0,b.jsx)("select",{id:"jev-provider",className:"set-select",value:t.provider,disabled:x,onChange:a=>G("provider",a.target.value),children:j.map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))})}),(0,b.jsx)(n,{id:"jev-url",label:"endpoint url",hint:["custom"===t.provider?"required — https, or http to localhost in observe mode":"leave blank for the provider's own api",r?.baseUrlQueryWithheld?"the stored url's query string is not shown here — leave the url as it is to keep it":null].filter(Boolean).join(" · "),children:(0,b.jsx)("input",{id:"jev-url",type:"text",className:"set-text",inputMode:"url",autoComplete:"off",spellCheck:!1,placeholder:"custom"===t.provider?"https://…":"the provider's own api",value:t.baseUrl,disabled:x,onChange:a=>G("baseUrl",a.target.value)})}),"cloudflare"===t.provider&&(0,b.jsx)(n,{id:"jev-account",label:"account id",hint:"32 lowercase hex characters",children:(0,b.jsx)("input",{id:"jev-account",type:"text",className:"set-text",autoComplete:"off",spellCheck:!1,value:t.accountId,disabled:x,onChange:a=>G("accountId",a.target.value)})}),(0,b.jsx)(n,{id:"jev-token",label:"token",hint:N,children:(0,b.jsx)("input",{id:"jev-token",type:"password",className:"set-text",autoComplete:"off",spellCheck:!1,placeholder:M?"•••• kept":"",value:v,disabled:x,"aria-invalid":B||void 0,onChange:a=>{E.current=!0,w(a.target.value)}})}),(0,b.jsx)(n,{id:"jev-mode",label:"mode",children:(0,b.jsx)("select",{id:"jev-mode",className:"set-select",value:t.mode,disabled:x,onChange:a=>G("mode",a.target.value),children:k.map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))})})]}),z&&(0,b.jsx)("p",{className:"set-warn",children:z}),(0,b.jsxs)("div",{className:"set-actions set-jev-actions",children:[(0,b.jsx)("button",{type:"button",className:"btn btn-press",disabled:x,onClick:()=>void H(),children:x?"[ saving… ]":K?"[ save changes ]":"[ turn jev on ]"}),K&&(0,b.jsx)("button",{type:"button",className:"set-link",disabled:x,onClick:()=>void J(),children:"turn jev off"})]})]})]})}],4614)},41857,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(5050);let e=(0,d.createServerReference)("00506bd7e451b0ca92d28d2d9594326b4382391130",d.callServer,void 0,d.findSourceMapURL,"getScheduledAuditAction"),f=(0,d.createServerReference)("4029d3627351c36627c8161d5aa9426e2a26116c8b",d.callServer,void 0,d.findSourceMapURL,"setAutoAuditAction"),g=(0,d.createServerReference)("405a4e3e69b1e56a993e1b508ad2d9770a890f25c1",d.callServer,void 0,d.findSourceMapURL,"setAuditIntervalAction");var h=a.i(89564),i=a.i(4543),j=a.i(18952),k=a.i(80977);function l(a){return new Date(a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function m(a,b){let c=a-b;if(c<=0)return"now";let d=Math.floor(c/864e5),e=Math.floor(c%864e5/36e5);return d>0?e>0?`${d}d ${e}h`:`${d}d`:e>0?`${e}h`:`${Math.max(1,Math.floor(c/6e4))}m`}function n(a){return a.toLocaleString("en-US")}function o({label:a,value:c,sub:d,tone:e}){return(0,b.jsxs)("div",{className:"set-stat",children:[(0,b.jsx)("div",{className:"set-stat-label",children:a}),(0,b.jsx)("div",{className:`set-stat-value${e?` ${e}`:""}`,children:c}),(0,b.jsx)("div",{className:"set-stat-sub",children:d??" "})]})}function p({lastRunAtMs:a,nextDueAtMs:c,now:d}){if(null==a||null==c||c<=a)return null;let e=Math.min(100,Math.max(0,(d-a)/(c-a)*100));return(0,b.jsxs)("div",{className:"tape","aria-hidden":"true",children:[(0,b.jsxs)("div",{className:"tape-rail",children:[(0,b.jsx)("div",{className:"tape-fill",style:{width:`${e}%`}}),(0,b.jsx)("div",{className:"tape-now",style:{left:`${e}%`}})]}),(0,b.jsxs)("div",{className:"tape-ends",children:[(0,b.jsxs)("span",{children:["last scan · ",l(a)]}),(0,b.jsxs)("span",{className:"tape-next",children:["next · ",m(c,d)]})]})]})}function q({enabled:a,onChange:c,disabled:d,label:e}){return(0,b.jsx)("button",{type:"button",role:"switch","aria-checked":a,"aria-label":e,disabled:d,onClick:c,className:"sw","data-on":a?"true":"false",children:(0,b.jsx)("span",{className:"sw-knob"})})}let r=[{label:"reads",body:"every session transcript on disk — your prompts, the files your agents read and wrote, and command output."},{label:"runs",body:"entirely on this machine. the transcripts never leave it."},{label:"sends",body:"counts, redacted examples, and this machine's name — and only when a scan finds something harmful."}];a.s(["default",0,function({initial:a,jevPanel:d}){let[s,t]=(0,c.useState)(a),[u,v]=(0,c.useState)(a?.auto??!1),[w,x]=(0,c.useState)(a?.intervalDays??7),[y,z]=(0,c.useState)(!1),[A,B]=(0,c.useState)(!1),[C,D]=(0,c.useState)(!1),[E,F]=(0,c.useState)(null===a),[G,H]=(0,c.useState)(0),I=(0,c.useRef)(!0),J=(0,c.useRef)(null!==a),K=(0,c.useCallback)(async()=>{try{let a=await e();if(!I.current)return;t(a),J.current=!0,v(a.auto),x(a.intervalDays),H(Date.now()),F(!1)}catch{I.current&&!J.current&&F(!0)}},[]);(0,c.useEffect)(()=>(I.current=!0,K(),()=>{I.current=!1}),[K]),(0,c.useEffect)(()=>{let a=()=>void K();return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[K]);let L=s?.signedInAs??null,M=s?.daemon==="running",N=s?.daemon==="unsupported-platform",O=s?.schedule??null,P=s?.lastScan??null,Q=O?.lastExitCode!=null&&0!==O.lastExitCode&&75!==O.lastExitCode,R=(0,c.useCallback)(async()=>{z(!0);try{let a=await f(!0);if(!a.ok){if(v(!1),"unreachable"===a.reason)return void(0,j.toast)("could not reach the server. check your connection and try again.");await K(),D(!0),(0,j.toast)("that sign-in expired. one more code and it's on.");return}v(a.auto),(0,j.toast)("scheduled audits on."),await K()}catch{v(!1),(0,j.toast)("could not turn that on.")}finally{z(!1)}},[K]),S=(0,c.useCallback)(async()=>{if(u){z(!0);try{let a=await f(!1);a.ok&&v(a.auto),(0,j.toast)("scheduled audits off."),await K()}catch{(0,j.toast)("could not turn that off.")}finally{z(!1)}return}L?await R():D(!0)},[u,R,K,L]),T=(0,c.useCallback)(async a=>{z(!0);try{let b=await g(a);x(b.intervalDays),t(a=>a?{...a,intervalDays:b.intervalDays}:a),(0,j.toast)(`scanning every ${b.intervalDays} day${1===b.intervalDays?"":"s"}.`)}catch{x(s?.intervalDays??7),(0,j.toast)("could not save that.")}finally{z(!1)}},[s?.intervalDays]),U=(0,c.useCallback)(async()=>{z(!0);try{await fetch("/api/auth/logout",{method:"POST"}),(0,j.toast)("signed out. scans continue; digests pause."),await K()}catch{(0,j.toast)("could not sign out.")}finally{z(!1)}},[K]),V=(0,c.useCallback)(async()=>{if(!A){B(!0);try{await (0,h.s)({cli:[],since:"all",noCache:!1}),(0,j.toast)("scan complete."),await K()}catch(a){(0,j.toast)(a instanceof h.t&&"timeout"===a.kind?"the scan is taking a while — it will finish in the background.":"the scan could not be completed.")}finally{B(!1)}}},[K,A]),W=(0,c.useCallback)(async a=>{D(!1),await K(),await R()},[R,K]),X=s?M?{value:"running",sub:null!=s.daemonStartedAtMs&&G>0?`up ${function(a){let b=Math.floor(a/864e5);if(b>0)return`${b}d`;let c=Math.floor(a/36e5);return c>0?`${c}h`:`${Math.max(1,Math.floor(a/6e4))}m`}(Math.max(0,G-s.daemonStartedAtMs))}`:"",tone:"ok"}:N?{value:"unavailable",sub:"not on this platform"}:"not-installed"===s.daemon?{value:"not installed",sub:"run failproofai config",tone:"warn"}:"unknown"===s.daemon?{value:"unknown",sub:"could not read it"}:{value:"stopped",sub:"run failproofai config",tone:"warn"}:{value:"…",sub:"reading"},Y=u?O?.nextDueAtMs==null?{value:"pending",sub:"after the next scan"}:{value:G>0?m(O.nextDueAtMs,G):"—",sub:l(O.nextDueAtMs)}:{value:"off",sub:"nothing scheduled"},Z=P?{value:(0,k.f)(Date.parse(P.finishedAt)),sub:null!=P.sessionsScanned?`${n(P.sessionsScanned)} sessions`:"scanned"}:{value:"none yet",sub:"run one below"},$=P?null==P.findings?{value:"—",sub:"unreadable"}:{value:n(P.findings),sub:"this scan",...P.findings>0?{tone:"warn"}:{}}:{value:"—",sub:"no scan yet"};return(0,b.jsxs)("main",{className:"report",children:[(0,b.jsxs)("section",{className:"section set-sec",children:[(0,b.jsxs)("div",{className:"set-mast",children:[(0,b.jsx)("h1",{className:"set-title",children:"settings"}),(0,b.jsx)("p",{className:"set-lede",children:"keeping watch, so you don't have to."})]}),E?(0,b.jsxs)("div",{className:"set-console",children:[(0,b.jsx)("div",{className:"set-cell",children:(0,b.jsxs)("p",{className:"set-warn",children:["could not read this machine's settings. check that the dashboard can reach ",(0,b.jsx)("code",{children:"~/.failproofai/config.json"}),"."]})}),d]}):(0,b.jsxs)("div",{className:"set-console",children:[(0,b.jsxs)("div",{className:"set-stats",children:[(0,b.jsx)(o,{label:"daemon",...X}),(0,b.jsx)(o,{label:"next scan",...Y}),(0,b.jsx)(o,{label:"last scan",...Z}),(0,b.jsx)(o,{label:"findings",...$})]}),(0,b.jsxs)("div",{className:"set-cols",children:[(0,b.jsxs)("div",{className:"set-cell set-config",children:[(0,b.jsx)("h2",{className:"set-cell-title",children:"scheduled audit"}),(0,b.jsxs)("div",{className:"set-row set-row-main",children:[(0,b.jsx)(q,{enabled:u,disabled:y||null===s,onChange:()=>void S(),label:u?"turn off scheduled audits":"turn on scheduled audits"}),(0,b.jsxs)("div",{className:"set-row-copy",children:[(0,b.jsx)("span",{className:"set-strong",children:u?"scanning on a schedule.":"scan on a schedule."}),(0,b.jsx)("span",{className:"set-dim",children:u?"you'll get an email only when a scan finds something.":"off. nothing runs and nothing is sent."})]})]}),(0,b.jsxs)("div",{className:"set-row set-row-interval",children:[(0,b.jsx)("span",{className:"set-dim",children:"scan every"}),(0,b.jsx)("input",{type:"number",className:"set-num",min:1,max:90,value:w,disabled:y||null===s,"aria-label":"days between scheduled scans",onChange:a=>x(Number(a.target.value)),onBlur:a=>{let b=Number(a.target.value);Number.isFinite(b)?b!==s?.intervalDays&&T(b):x(s?.intervalDays??7)}}),(0,b.jsx)("span",{className:"set-dim",children:"days"}),(0,b.jsxs)("span",{className:"set-hint",children:[1,"–",90]})]}),(0,b.jsx)("div",{className:"set-rule"}),(0,b.jsx)("div",{className:"set-row set-row-identity",children:L?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"set-dim",children:"reports go to"}),(0,b.jsx)("span",{className:"set-email",children:L.email}),(0,b.jsx)("button",{type:"button",className:"set-link",disabled:y,onClick:()=>void U(),children:"sign out"})]}):u?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"set-warn",children:"signed out — scans continue, digests are paused."}),(0,b.jsx)("button",{type:"button",className:"set-link",disabled:y,onClick:()=>D(!0),children:"sign in to resume"})]}):(0,b.jsx)("span",{className:"set-dim",children:"turning this on asks for an email, so there is somewhere to send the report."})}),u&&s&&!M&&(0,b.jsx)("p",{className:"set-warn",children:N?"the background service isn't available on this platform, so scheduled scans can't run here. you can still run one now.":"not-installed"===s.daemon?"the background service isn't installed, so nothing will run on the timer. install it with `failproofai config`.":"the background service is stopped, so nothing will run until it starts. repair it with `failproofai config`."}),Q&&(0,b.jsxs)("p",{className:"set-warn",children:["the last scheduled scan exited ",O?.lastExitCode,". the next one will still run."]}),(0,b.jsx)("div",{className:"set-actions",children:(0,b.jsx)("button",{type:"button",className:"btn btn-press",disabled:A,onClick:()=>void V(),children:A?"[ scanning… ]":"[ run a scan now ]"})})]}),(0,b.jsxs)("div",{className:"set-cell set-how",children:[(0,b.jsx)("h2",{className:"set-cell-title",children:"how it works"}),(0,b.jsx)("dl",{className:"set-how-list",children:r.map(a=>(0,b.jsxs)("div",{className:"set-how-row",children:[(0,b.jsx)("dt",{className:"set-how-label",children:a.label}),(0,b.jsx)("dd",{className:"set-how-body",children:a.body})]},a.label))})]})]}),d]}),u&&G>0&&(0,b.jsx)(p,{lastRunAtMs:O?.lastRunAtMs??null,nextDueAtMs:O?.nextDueAtMs??null,now:G})]}),(0,b.jsx)(i.f,{open:C,source:"settings_scheduled_audit",headline:"where should the report go?",subhead:"we'll send a one-time code to confirm.",onClose:()=>D(!1),onAuthed:a=>void W(a)})]})}],41857)}];
2
2
 
3
3
  //# sourceMappingURL=app_settings_02tf1h47jmhhd._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[3900,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_html-to-image_es_index_1ao30b1e-jmzy.js"].map(b=>a.l(b))).then(()=>b(63460)))}];
2
2
 
3
- //# sourceMappingURL=node_modules_html-to-image_es_index_0e3yg5gbcfsai.js.map
3
+ //# sourceMappingURL=node_modules_html-to-image_es_index_0wgfci23_yqs_.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[12072,(a,b,c)=>{b.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=[12072,(a,b,c)=>{b.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_013tntikdft59._.js.map
@@ -0,0 +1,5 @@
1
+ module.exports=[86017,91997,a=>{"use strict";let b=["claude","codex","copilot","cursor","opencode","pi","hermes","openclaw","factory","devin","antigravity","goose"],c=["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(a=>"WorktreeCreate"!==a);a.s(["X",0,["PreToolUse","PostToolUse","PreInvocation","Stop"],"m",0,["user","project"],"I",0,c,"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"],"d",0,["SessionStart","SessionEnd","UserPromptSubmit","PreToolUse","PostToolUse","Stop","SubagentStop","PostToolUseFailure","ErrorOccurred","PreCompact","PermissionRequest","Notification"],"w",0,["user","project"],"s",0,["sessionStart","sessionEnd","beforeSubmitPrompt","preToolUse","postToolUse","stop","subagentStop"],"Y",0,["user","project"],"D",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","PermissionRequest","Stop","SessionEnd"],"c",0,["user","project"],"n",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","Notification","Stop","SubagentStop","PreCompact","SessionEnd"],"B",0,["user","project"],"Z",0,"__failproofai_hook__","i",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","SessionEnd"],"x",0,["user","project"],"y",0,["pre_tool_call","post_tool_call","on_session_start","on_session_end","subagent_stop"],"M",0,["user"],"F",0,["user","project","local"],"z",0,b,"P",0,["before_tool_call","after_tool_call","before_agent_run","before_agent_finalize","session_start","session_end","subagent_ended","before_compaction"],"E",0,["user"],"e",0,["tool.execute.before","tool.execute.after","session.created","session.deleted","session.idle","message.updated","permission.ask"],"O",0,["user","project"],"J",0,["session_start","session_shutdown","input","tool_call","user_bash","tool_result","agent_end"],"G",0,["user","project"]],91997);let d=/^agt_[0-9a-f]{16,32}$/,e=new Set(b);a.s(["f",0,function(a,b){if(null==a)return;if(b<3||!Array.isArray(a)||a.length<1||a.length>32)throw Error("invalid agentTargets in cloud-managed active manifest");let c=new Set;return a.map(a=>{if(!a||"object"!=typeof a||Array.isArray(a)||Object.keys(a).some(a=>"integration"!==a&&"instanceId"!==a)||"string"!=typeof a.integration||!e.has(a.integration)||void 0!==a.instanceId&&("string"!=typeof a.instanceId||!d.test(a.instanceId)))throw Error("invalid agentTargets in cloud-managed active manifest");let b=`${a.integration}\0${a.instanceId??""}`;if(c.has(b))throw Error("duplicate agentTargets in cloud-managed active manifest");return c.add(b),{integration:a.integration,...void 0!==a.instanceId?{instanceId:a.instanceId}:{}}})}],86017)},89790,91609,a=>{"use strict";var b=a.i(66680),c=a.i(2157),d=a.i(50227),e=a.i(75818),f=a.i(86017);a.i(10695);let g=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"]),h=new Set,i=a=>"string"==typeof a&&a.length>0;function j(a){let b={};("hard"===a.authority||"reviewable"===a.authority)&&(b.authority=a.authority);let c=a.reviewedBy;return Array.isArray(c)&&c.length>0&&c.every(i)&&(b.reviewedBy=[...c]),b}a.s(["g",0,g,"i",0,j,"d",0,function(a,b=h,c){let d=a?.authority==="reviewable";if(!a||"hard"==(!0!==a.alwaysOn&&"reviewable"===a.authority&&Array.isArray(a.reviewedBy)&&a.reviewedBy.filter(a=>"string"==typeof a&&a.length>0).length>0?"reviewable":"hard")){var e;return d?{authority:"hard",downgraded:!0===(e=a).alwaysOn?"it is alwaysOn, and the self-protection guard is never reviewable":Array.isArray(e.reviewedBy)&&0!==e.reviewedBy.length?"reviewedBy is not a list of semantic policy names":"reviewedBy does not name any semantic policy"}:{authority:"hard"}}let f=a.reviewedBy;if(!f.every(i))return{authority:"hard",downgraded:"reviewedBy is not a list of semantic policy names"};let j=f.filter(a=>!b.has(a));return 0!==b.size||j.some(a=>c?.has(a))?j.length>0?{authority:"hard",downgraded:`reviewedBy names ${j.map(a=>(function(a,b,c){let d=JSON.stringify(a),e=c?.get(a);if(e)return`${d}, which packs ${e.join(" and ")} declare differently, so it is asked for neither`;if(b===g)return`${d}, which is not a semantic policy in this build`;let f=[...b].sort(),h=f.length>6?`${f.slice(0,6).join(", ")} and ${f.length-6} more`:f.join(", ");return`${d}, which is not among the Jev checks it is judged against (${h})`})(a,b,c)).join("; ")}`}:{authority:"reviewable",reviewedBy:[...new Set(f)]}:{authority:"hard"}}],91609);let k=[1,2,3],l=/^[a-f0-9]{64}$/,m=/^[A-Za-z0-9._-]{1,128}$/;function n(){return process.env.FAILPROOFAI_CLOUD_POLICY_DIR??(0,e.I)()}function o(){try{let a=JSON.parse((0,c.readFileSync)((0,e.y)(),"utf8"));if(!a||"object"!=typeof a||Array.isArray(a))return!1;let b=a.mode;return!!b&&"object"==typeof b&&!Array.isArray(b)&&"oss"===b.kind}catch{return!1}}function p(a,b){if(!b||(0,d.isAbsolute)(b))throw Error(`unsafe managed policy path ${JSON.stringify(b)}`);let e=(0,d.resolve)(a,b),f=(0,d.relative)(a,e);if(f.startsWith("..")||(0,d.isAbsolute)(f))throw Error(`managed policy path escapes its root: ${JSON.stringify(b)}`);let g=(0,c.realpathSync)(a),h=(0,c.realpathSync)(e),i=(0,d.relative)(g,h);if(i.startsWith("..")||(0,d.isAbsolute)(i))throw Error(`managed policy symlink escapes its root: ${JSON.stringify(b)}`);return h}let q=null;function r(){if(o()){q=null;return}let a=(0,d.resolve)(n(),"active.json"),b=function(a){try{let b=(0,c.statSync)(a,{bigint:!0});return`${b.dev}:${b.ino}:${b.mode}:${b.size}:${b.mtimeNs}:${b.ctimeNs}`}catch(b){let a=b.code;if("ENOENT"===a||"ENOTDIR"===a)return null;throw b}}(a);if(null===b){q=null;return}if(q&&q.path===a&&q.version===b)return q.value;let e=JSON.parse((0,c.readFileSync)(a,"utf8"));return q={path:a,version:b,value:e},e}let s=/^cloud:[^/]+\/./;function t(a,b){return"reviewable"!==a.authority?a.authority?{authority:a.authority}:{}:"observe"===a.effect||"observe"!==b&&"enforce"!==b?{authority:"hard"}:{authority:"reviewable",reviewedBy:(a.reviewedBy??[]).map(b=>{var c;return s.test(b)?b:(c=a.id,`cloud:${c}/${b}`)})}}a.s(["i",0,t,"M",0,function(){let a;if(o())return!1;try{a=(0,c.readFileSync)((0,d.resolve)(n(),"active.json"),"utf8")}catch(a){return"ENOENT"!==a.code}try{let b=JSON.parse(a)?.schemaVersion;return!("number"==typeof b&&Number.isInteger(b)&&b<3)}catch{return!0}},"O",0,function(a,b){let c=[];for(let d of a){let a=t(d,b);"reviewable"===a.authority&&c.push(...a.reviewedBy??[])}return c},"h",0,function(){return function(a){let d,e=n();try{d=r()}catch(a){throw Error(`failed to read cloud-managed active manifest: ${a instanceof Error?a.message:String(a)}`)}if(void 0===d)return[];let g=function(a){if(!a||"object"!=typeof a)throw Error("active manifest is not an object");if(!k.includes(a.schemaVersion))throw Error(`unsupported active manifest schema ${String(a.schemaVersion)} (supported: ${k.join(", ")})`);let b=a.deployment??a.generation;if(!Number.isSafeInteger(b)||(b??-1)<0)throw Error("active manifest deployment is invalid");if(!Array.isArray(a.policies))throw Error("active manifest policies is not an array");let c=a.policies.map(a=>({...a,version:a.version??a.revision}));return{schemaVersion:a.schemaVersion,deployment:b,policies:c}}(d),h=g.policies.filter(b=>a((0,f.f)(b.agentTargets,g.schemaVersion))),i=new Set;return h.map(a=>{if(!m.test(a.id)||"."===a.id||".."===a.id)throw Error(`unsafe cloud-managed policy id ${JSON.stringify(a.id)}`);if(!Number.isSafeInteger(a.version)||a.version<0)throw Error(`invalid version for cloud-managed policy ${a.id}`);if(!l.test(a.sha256))throw Error(`invalid SHA-256 for cloud-managed policy ${a.id}`);if(i.has(a.id))throw Error(`duplicate cloud-managed policy id ${a.id}`);i.add(a.id);let d=p(e,a.path),h=(0,c.readFileSync)(d),k=(0,b.createHash)("sha256").update(h).digest("hex");if(k!==a.sha256)throw Error(`cloud-managed policy ${a.id} failed integrity verification: expected ${a.sha256}, got ${k}`);if(void 0!==a.effect&&"enforce"!==a.effect&&"observe"!==a.effect)throw Error(`unknown effect ${JSON.stringify(a.effect)} for cloud-managed policy ${a.id}`);return{id:a.id,version:a.version,effect:a.effect??"enforce",sha256:a.sha256,path:d,deployment:g.deployment,...(0,f.f)(a.agentTargets,g.schemaVersion)?{agentTargets:(0,f.f)(a.agentTargets,g.schemaVersion)}:{},...j(a)}})}(()=>!0)},"D",0,function(){try{var a;return a=function(){let a=r();if(void 0===a)return null;if(!a||"object"!=typeof a||Array.isArray(a))throw Error("active manifest is not an object");if(!k.includes(a.schemaVersion))throw Error(`unsupported active manifest schema ${String(a.schemaVersion)}`);return a}()?.jevMode,"off"===a||"observe"===a||"enforce"===a?a:null}catch{return null}},"t",0,p],89790)},10695,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(75818);let e={info:0,warn:1,error:2},f=(0,d.A)(),g=!1,h="warn",i=!1,j=f;function k(a){return!function(){if(g)return;g=!0;let a=(process.env.FAILPROOFAI_LOG_LEVEL??"").toLowerCase();("info"===a||"warn"===a||"error"===a)&&(h=a);let b=(process.env.FAILPROOFAI_HOOK_LOG_FILE??"").trim();b&&(i=!0,"1"!==b&&"true"!==b&&(j=b))}(),e[a]>=e[h]}function l(a,b){process.stderr.write(`[failproofai:hook] ${a} ${b}
2
+ `)}function m(a,d){if(i)try{(0,b.existsSync)(j)||(0,b.mkdirSync)(j,{recursive:!0});let e=(0,c.join)(j,"hooks.log");try{if((0,b.statSync)(e).size>=524288){let a=`hooks-${Date.now()}.log`;(0,b.renameSync)(e,(0,c.join)(j,a))}}catch{}let f=new Date().toISOString(),g=`[${f}] ${a} ${d}
3
+ `;(0,b.appendFileSync)(e,g,"utf-8")}catch{}}a.s(["F",0,function(a){k("error")&&(l("ERROR",a),m("ERROR",a))},"g",0,function(a){k("warn")&&(l("WARN",a),m("WARN",a))}])}];
4
+
5
+ //# sourceMappingURL=src_hooks_1-ytegsicaf2d._.js.map
@@ -0,0 +1,5 @@
1
+ module.exports=[86017,91997,a=>{"use strict";let b=["claude","codex","copilot","cursor","opencode","pi","hermes","openclaw","factory","devin","antigravity","goose"],c=["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(a=>"WorktreeCreate"!==a);a.s(["X",0,["PreToolUse","PostToolUse","PreInvocation","Stop"],"m",0,["user","project"],"I",0,c,"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"],"d",0,["SessionStart","SessionEnd","UserPromptSubmit","PreToolUse","PostToolUse","Stop","SubagentStop","PostToolUseFailure","ErrorOccurred","PreCompact","PermissionRequest","Notification"],"w",0,["user","project"],"s",0,["sessionStart","sessionEnd","beforeSubmitPrompt","preToolUse","postToolUse","stop","subagentStop"],"Y",0,["user","project"],"D",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","PermissionRequest","Stop","SessionEnd"],"c",0,["user","project"],"n",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","Notification","Stop","SubagentStop","PreCompact","SessionEnd"],"B",0,["user","project"],"Z",0,"__failproofai_hook__","i",0,["SessionStart","UserPromptSubmit","PreToolUse","PostToolUse","SessionEnd"],"x",0,["user","project"],"y",0,["pre_tool_call","post_tool_call","on_session_start","on_session_end","subagent_stop"],"M",0,["user"],"F",0,["user","project","local"],"z",0,b,"P",0,["before_tool_call","after_tool_call","before_agent_run","before_agent_finalize","session_start","session_end","subagent_ended","before_compaction"],"E",0,["user"],"e",0,["tool.execute.before","tool.execute.after","session.created","session.deleted","session.idle","message.updated","permission.ask"],"O",0,["user","project"],"J",0,["session_start","session_shutdown","input","tool_call","user_bash","tool_result","agent_end"],"G",0,["user","project"]],91997);let d=/^agt_[0-9a-f]{16,32}$/,e=new Set(b);a.s(["f",0,function(a,b){if(null==a)return;if(b<3||!Array.isArray(a)||a.length<1||a.length>32)throw Error("invalid agentTargets in cloud-managed active manifest");let c=new Set;return a.map(a=>{if(!a||"object"!=typeof a||Array.isArray(a)||Object.keys(a).some(a=>"integration"!==a&&"instanceId"!==a)||"string"!=typeof a.integration||!e.has(a.integration)||void 0!==a.instanceId&&("string"!=typeof a.instanceId||!d.test(a.instanceId)))throw Error("invalid agentTargets in cloud-managed active manifest");let b=`${a.integration}\0${a.instanceId??""}`;if(c.has(b))throw Error("duplicate agentTargets in cloud-managed active manifest");return c.add(b),{integration:a.integration,...void 0!==a.instanceId?{instanceId:a.instanceId}:{}}})}],86017)},89790,91609,a=>{"use strict";var b=a.i(66680),c=a.i(2157),d=a.i(50227),e=a.i(75818),f=a.i(86017);a.i(10695);let g=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"]),h=new Set,i=a=>"string"==typeof a&&a.length>0;function j(a){let b={};("hard"===a.authority||"reviewable"===a.authority)&&(b.authority=a.authority);let c=a.reviewedBy;return Array.isArray(c)&&c.length>0&&c.every(i)&&(b.reviewedBy=[...c]),b}a.s(["g",0,g,"i",0,j,"d",0,function(a,b=h,c){let d=a?.authority==="reviewable";if(!a||"hard"==(!0!==a.alwaysOn&&"reviewable"===a.authority&&Array.isArray(a.reviewedBy)&&a.reviewedBy.filter(a=>"string"==typeof a&&a.length>0).length>0?"reviewable":"hard")){var e;return d?{authority:"hard",downgraded:!0===(e=a).alwaysOn?"it is alwaysOn, and the self-protection guard is never reviewable":Array.isArray(e.reviewedBy)&&0!==e.reviewedBy.length?"reviewedBy is not a list of semantic policy names":"reviewedBy does not name any semantic policy"}:{authority:"hard"}}let f=a.reviewedBy;if(!f.every(i))return{authority:"hard",downgraded:"reviewedBy is not a list of semantic policy names"};let j=f.filter(a=>!b.has(a));return 0!==b.size||j.some(a=>c?.has(a))?j.length>0?{authority:"hard",downgraded:`reviewedBy names ${j.map(a=>(function(a,b,c){let d=JSON.stringify(a),e=c?.get(a);if(e)return`${d}, which packs ${e.join(" and ")} declare differently, so it is asked for neither`;if(b===g)return`${d}, which is not a semantic policy in this build`;let f=[...b].sort(),h=f.length>6?`${f.slice(0,6).join(", ")} and ${f.length-6} more`:f.join(", ");return`${d}, which is not among the Jev checks it is judged against (${h})`})(a,b,c)).join("; ")}`}:{authority:"reviewable",reviewedBy:[...new Set(f)]}:{authority:"hard"}}],91609);let k=[1,2,3],l=/^[a-f0-9]{64}$/,m=/^[A-Za-z0-9._-]{1,128}$/;function n(){return process.env.FAILPROOFAI_CLOUD_POLICY_DIR??(0,e.I)()}function o(){try{let a=JSON.parse((0,c.readFileSync)((0,e.y)(),"utf8"));if(!a||"object"!=typeof a||Array.isArray(a))return!1;let b=a.mode;return!!b&&"object"==typeof b&&!Array.isArray(b)&&"oss"===b.kind}catch{return!1}}function p(a,b){if(!b||(0,d.isAbsolute)(b))throw Error(`unsafe managed policy path ${JSON.stringify(b)}`);let e=(0,d.resolve)(a,b),f=(0,d.relative)(a,e);if(f.startsWith("..")||(0,d.isAbsolute)(f))throw Error(`managed policy path escapes its root: ${JSON.stringify(b)}`);let g=(0,c.realpathSync)(a),h=(0,c.realpathSync)(e),i=(0,d.relative)(g,h);if(i.startsWith("..")||(0,d.isAbsolute)(i))throw Error(`managed policy symlink escapes its root: ${JSON.stringify(b)}`);return h}let q=null;function r(){if(o()){q=null;return}let a=(0,d.resolve)(n(),"active.json"),b=function(a){try{let b=(0,c.statSync)(a,{bigint:!0});return`${b.dev}:${b.ino}:${b.mode}:${b.size}:${b.mtimeNs}:${b.ctimeNs}`}catch(b){let a=b.code;if("ENOENT"===a||"ENOTDIR"===a)return null;throw b}}(a);if(null===b){q=null;return}if(q&&q.path===a&&q.version===b)return q.value;let e=JSON.parse((0,c.readFileSync)(a,"utf8"));return q={path:a,version:b,value:e},e}let s=/^cloud:[^/]+\/./;function t(a,b){return"reviewable"!==a.authority?a.authority?{authority:a.authority}:{}:"observe"===a.effect||"observe"!==b&&"enforce"!==b?{authority:"hard"}:{authority:"reviewable",reviewedBy:(a.reviewedBy??[]).map(b=>{var c;return s.test(b)?b:(c=a.id,`cloud:${c}/${b}`)})}}a.s(["i",0,t,"M",0,function(){let a;if(o())return!1;try{a=(0,c.readFileSync)((0,d.resolve)(n(),"active.json"),"utf8")}catch(a){return"ENOENT"!==a.code}try{let b=JSON.parse(a)?.schemaVersion;return!("number"==typeof b&&Number.isInteger(b)&&b<3)}catch{return!0}},"O",0,function(a,b){let c=[];for(let d of a){let a=t(d,b);"reviewable"===a.authority&&c.push(...a.reviewedBy??[])}return c},"h",0,function(){return function(a){let d,e=n();try{d=r()}catch(a){throw Error(`failed to read cloud-managed active manifest: ${a instanceof Error?a.message:String(a)}`)}if(void 0===d)return[];let g=function(a){if(!a||"object"!=typeof a)throw Error("active manifest is not an object");if(!k.includes(a.schemaVersion))throw Error(`unsupported active manifest schema ${String(a.schemaVersion)} (supported: ${k.join(", ")})`);let b=a.deployment??a.generation;if(!Number.isSafeInteger(b)||(b??-1)<0)throw Error("active manifest deployment is invalid");if(!Array.isArray(a.policies))throw Error("active manifest policies is not an array");let c=a.policies.map(a=>({...a,version:a.version??a.revision}));return{schemaVersion:a.schemaVersion,deployment:b,policies:c}}(d),h=g.policies.filter(b=>a((0,f.f)(b.agentTargets,g.schemaVersion))),i=new Set;return h.map(a=>{if(!m.test(a.id)||"."===a.id||".."===a.id)throw Error(`unsafe cloud-managed policy id ${JSON.stringify(a.id)}`);if(!Number.isSafeInteger(a.version)||a.version<0)throw Error(`invalid version for cloud-managed policy ${a.id}`);if(!l.test(a.sha256))throw Error(`invalid SHA-256 for cloud-managed policy ${a.id}`);if(i.has(a.id))throw Error(`duplicate cloud-managed policy id ${a.id}`);i.add(a.id);let d=p(e,a.path),h=(0,c.readFileSync)(d),k=(0,b.createHash)("sha256").update(h).digest("hex");if(k!==a.sha256)throw Error(`cloud-managed policy ${a.id} failed integrity verification: expected ${a.sha256}, got ${k}`);if(void 0!==a.effect&&"enforce"!==a.effect&&"observe"!==a.effect)throw Error(`unknown effect ${JSON.stringify(a.effect)} for cloud-managed policy ${a.id}`);return{id:a.id,version:a.version,effect:a.effect??"enforce",sha256:a.sha256,path:d,deployment:g.deployment,...(0,f.f)(a.agentTargets,g.schemaVersion)?{agentTargets:(0,f.f)(a.agentTargets,g.schemaVersion)}:{},...j(a)}})}(()=>!0)},"D",0,function(){try{var a;return a=function(){let a=r();if(void 0===a)return null;if(!a||"object"!=typeof a||Array.isArray(a))throw Error("active manifest is not an object");if(!k.includes(a.schemaVersion))throw Error(`unsupported active manifest schema ${String(a.schemaVersion)}`);return a}()?.jevMode,"off"===a||"observe"===a||"enforce"===a?a:null}catch{return null}},"t",0,p],89790)},10695,a=>{"use strict";var b=a.i(2157),c=a.i(50227),d=a.i(75818);let e={info:0,warn:1,error:2},f=(0,d.A)(),g=!1,h="warn",i=!1,j=f;function k(a){return!function(){if(g)return;g=!0;let a=(process.env.FAILPROOFAI_LOG_LEVEL??"").toLowerCase();("info"===a||"warn"===a||"error"===a)&&(h=a);let b=(process.env.FAILPROOFAI_HOOK_LOG_FILE??"").trim();b&&(i=!0,"1"!==b&&"true"!==b&&(j=b))}(),e[a]>=e[h]}function l(a,b){process.stderr.write(`[failproofai:hook] ${a} ${b}
2
+ `)}function m(a,d){if(i)try{(0,b.existsSync)(j)||(0,b.mkdirSync)(j,{recursive:!0});let e=(0,c.join)(j,"hooks.log");try{if((0,b.statSync)(e).size>=524288){let a=`hooks-${Date.now()}.log`;(0,b.renameSync)(e,(0,c.join)(j,a))}}catch{}let f=new Date().toISOString(),g=`[${f}] ${a} ${d}
3
+ `;(0,b.appendFileSync)(e,g,"utf-8")}catch{}}a.s(["F",0,function(a){k("error")&&(l("ERROR",a),m("ERROR",a))},"g",0,function(a){k("warn")&&(l("WARN",a),m("WARN",a))}])}];
4
+
5
+ //# sourceMappingURL=src_hooks_1euxn1va7c5gq._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[32271,a=>{"use strict";var b=a.i(61095);a.i(2157);var c=a.i(75818);async function d(a=150){return new Promise(c=>{let d=!1,f=a=>{d||(d=!0,clearTimeout(h),g.removeAllListeners(),g.destroy(),c(a))},g=(0,b.createConnection)({path:e()}),h=setTimeout(()=>f(!1),a);h.unref?.(),g.on("connect",()=>f(!0)),g.on("error",()=>f(!1))})}function e(){return process.env.FAILPROOFAI_DAEMON_SOCKET?process.env.FAILPROOFAI_DAEMON_SOCKET:(0,c._)()}async function f(a,c){let d=c?.responseTimeoutMs??3e4;return new Promise(c=>{let f,g=!1,h=a=>{clearTimeout(f),f=setTimeout(()=>j("unreachable"),a),f.unref?.()},i=a=>{g||(g=!0,clearTimeout(f),k.removeAllListeners(),k.destroy(),c(a))},j=a=>i({ok:!1,failure:a}),k=(0,b.createConnection)({path:e()});h(150);let l=Buffer.alloc(0),m=null;k.on("connect",()=>{let b,c;h(d),k.write((b=Buffer.from(JSON.stringify(a),"utf8"),(c=Buffer.alloc(4)).writeUInt32BE(b.length,0),Buffer.concat([c,b])))}),k.on("data",a=>{let b;if(l=Buffer.concat([l,a]),null===m){if(l.length<4)return;if((m=l.readUInt32BE(0))>0x1000000)return void j("unreachable");l=l.subarray(4)}if(l.length<m)return;let c=l.subarray(0,m);try{b=JSON.parse(c.toString("utf8"))}catch{j("unreachable");return}if(!b||"object"!=typeof b||Array.isArray(b))return void j("unreachable");let d=b;2!==d.protocolVersion?j("protocol-mismatch"):i({ok:!0,message:d})}),k.on("error",()=>j("unreachable")),k.on("close",()=>j("unreachable"))})}async function g(a,b){let c=await f({type:"hook",protocolVersion:2,hookEvent:a.hookEvent,cli:a.cli,stdin:a.stdin,cwd:a.cwd,agentSettingsPath:a.agentSettingsPath},b);if(!c.ok)return c;let d=c.message;return"hookResult"===d.type&&"number"==typeof d.exitCode&&"string"==typeof d.stdout&&"string"==typeof d.stderr?{ok:!0,response:{exitCode:d.exitCode,stdout:d.stdout,stderr:d.stderr}}:{ok:!1,failure:"unreachable"}}function h(a){return Array.isArray(a)&&a.every(a=>"string"==typeof a)}async function i(a,b){let c=await f({type:"policyEvaluation",protocolVersion:2,integration:a.integration,event:a.event,payload:a.payload,cwd:a.cwd,agentSettingsPath:a.agentSettingsPath},b);if(!c.ok)return c;let d=c.message,e=a=>null==a||"string"==typeof a;return"policyResult"===d.type&&("allow"===d.decision||"deny"===d.decision||"instruct"===d.decision)&&h(d.policyNames)&&e(d.reason)&&h(d.matchedPolicies)&&"number"==typeof d.durationMs&&Number.isInteger(d.durationMs)&&d.durationMs>=0&&e(d.toolName)?{ok:!0}:{ok:!1,failure:"unreachable"}}a.i(21572),a.s(["attemptDaemonHook",0,g,"attemptDaemonPolicyEvaluation",0,i,"daemonAcceptsConnections",0,d])}];
1
+ module.exports=[32271,a=>{"use strict";var b=a.i(61095);a.i(2157);var c=a.i(75818);a.i(21572);var d=a.i(89790);async function e(a=150){return new Promise(c=>{let d=!1,e=a=>{d||(d=!0,clearTimeout(h),g.removeAllListeners(),g.destroy(),c(a))},g=(0,b.createConnection)({path:f()}),h=setTimeout(()=>e(!1),a);h.unref?.(),g.on("connect",()=>e(!0)),g.on("error",()=>e(!1))})}function f(){return process.env.FAILPROOFAI_DAEMON_SOCKET?process.env.FAILPROOFAI_DAEMON_SOCKET:(0,c._)()}async function g(a,b){let c=await i(2,a,b),e=c.ok?void 0:c.daemonVersion;if(void 0===e||!Number.isInteger(e)||e<1||e>=2||(0,d.M)())return h(c);let f=await i(e,a,b);return(0,d.M)()?h(c):h(f)}function h(a){return a.ok?a:{ok:!1,failure:a.failure}}async function i(a,c,d){let e=c(a),g=d?.responseTimeoutMs??3e4;return new Promise(c=>{let d,h=!1,i=a=>{clearTimeout(d),d=setTimeout(()=>k("unreachable"),a),d.unref?.()},j=a=>{h||(h=!0,clearTimeout(d),l.removeAllListeners(),l.destroy(),c(a))},k=a=>j({ok:!1,failure:a}),l=(0,b.createConnection)({path:f()});i(150);let m=Buffer.alloc(0),n=null;l.on("connect",()=>{let a,b;i(g),l.write((a=Buffer.from(JSON.stringify(e),"utf8"),(b=Buffer.alloc(4)).writeUInt32BE(a.length,0),Buffer.concat([b,a])))}),l.on("data",b=>{let c;if(m=Buffer.concat([m,b]),null===n){if(m.length<4)return;if((n=m.readUInt32BE(0))>0x1000000)return void k("unreachable");m=m.subarray(4)}if(m.length<n)return;let d=m.subarray(0,n);try{c=JSON.parse(d.toString("utf8"))}catch{k("unreachable");return}if(!c||"object"!=typeof c||Array.isArray(c))return void k("unreachable");let e=c;e.protocolVersion!==a?j({ok:!1,failure:"protocol-mismatch",daemonVersion:"number"==typeof e.protocolVersion?e.protocolVersion:void 0}):j({ok:!0,message:e})}),l.on("error",()=>k("unreachable")),l.on("close",()=>k("unreachable"))})}function j(a,b){return a>=2?{agentSettingsPath:b}:{}}async function k(a,b){let c=await g(b=>({type:"hook",protocolVersion:b,hookEvent:a.hookEvent,cli:a.cli,stdin:a.stdin,cwd:a.cwd,...j(b,a.agentSettingsPath)}),b);if(!c.ok)return c;let d=c.message;return"hookResult"===d.type&&"number"==typeof d.exitCode&&"string"==typeof d.stdout&&"string"==typeof d.stderr?{ok:!0,response:{exitCode:d.exitCode,stdout:d.stdout,stderr:d.stderr}}:{ok:!1,failure:"unreachable"}}function l(a){return Array.isArray(a)&&a.every(a=>"string"==typeof a)}async function m(a,b){let c=await g(b=>({type:"policyEvaluation",protocolVersion:b,integration:a.integration,event:a.event,payload:a.payload,cwd:a.cwd,...j(b,a.agentSettingsPath)}),b);if(!c.ok)return c;let d=c.message,e=a=>null==a||"string"==typeof a;return"policyResult"===d.type&&("allow"===d.decision||"deny"===d.decision||"instruct"===d.decision)&&l(d.policyNames)&&e(d.reason)&&l(d.matchedPolicies)&&"number"==typeof d.durationMs&&Number.isInteger(d.durationMs)&&d.durationMs>=0&&e(d.toolName)?{ok:!0}:{ok:!1,failure:"unreachable"}}a.s(["attemptDaemonHook",0,k,"attemptDaemonPolicyEvaluation",0,m,"daemonAcceptsConnections",0,e])}];
2
2
 
3
3
  //# sourceMappingURL=src_hooks_daemon-client_ts_0k41_i7jg6ndv._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[8284,a=>{"use strict";var b=a.i(2157),c=a.i(60526),d=a.i(50227),e=a.i(74533);function f(){return(0,c.userInfo)().username}function g(a=f()){return`failproofaid@${a}.service`}function h(a=f()){return(0,d.resolve)(process.env.FAILPROOFAI_SYSTEMD_DIR||"/etc/systemd/system",g(a))}function i(a,b){let[c,d]="function"==typeof process.getuid&&0===process.getuid()?[a,b]:["sudo",["-n",a,...b]];(0,e.execFileSync)(c,d,{stdio:"ignore",timeout:1e4})}async function j(){try{let{attemptDaemonHook:b,daemonAcceptsConnections:c}=await a.A(84670),d=Date.now()+1e4,e=!1;for(;;){if(await c()){e=!0;let a=await b({hookEvent:"SessionStart",cli:"claude",stdin:JSON.stringify({hook_event_name:"SessionStart",source:"failproofai-health-probe"})},{responseTimeoutMs:5e3});if(a.ok||"protocol-mismatch"===a.failure)return{ok:!0}}if(Date.now()>=d)break;await new Promise(a=>setTimeout(a,150))}return{ok:!1,reason:e?"worker":"unreachable"}}catch{return{ok:!1,reason:"unreachable"}}}async function k(){return(await j()).ok}async function l(){if(!await k())return!1;try{let{attemptDaemonPolicyEvaluation:b}=await a.A(84670);return(await b({integration:"hermes",event:"on_session_start",payload:{hook_event_name:"on_session_start",source:"failproofai-native-policy-health-probe"}},{responseTimeoutMs:5e3})).ok}catch{return!1}}function m(){try{var a;return a=(0,e.execFileSync)("systemctl",["show",g(),"--property=ConditionResult","--value"],{stdio:["ignore","pipe","ignore"],timeout:1e4}).toString(),"no"===a.trim()?"condition-failed":"stopped"}catch{return"stopped"}}a.i(10695),a.i(66680),a.i(44376),a.i(27028),a.i(75818),a.i(21572),a.s(["e",0,function(){if("function"==typeof process.getuid&&0===process.getuid())return!0;try{return(0,e.execFileSync)("sudo",["-n","true"],{stdio:"ignore",timeout:1e4}),!0}catch{return!1}},"v",0,function(){if("linux"!==process.platform&&process.platform,!(0,b.existsSync)(h()))return"not-installed";try{let a=(0,e.execFileSync)("systemctl",["is-active",g()],{stdio:["ignore","pipe","ignore"],timeout:1e4}).toString().trim();return"active"===a?"running":m()}catch{return m()}},"u",0,function(){if(!(0,b.existsSync)(h()))return null;try{let a=(0,e.execFileSync)("systemctl",["show",g(),"-p","ActiveEnterTimestampMonotonic","--value"],{stdio:["ignore","pipe","ignore"],timeout:1e4}).toString().trim();return function(a,b,c){if(!Number.isFinite(a)||a<=0||!Number.isFinite(b)||b<=0)return null;let d=(b-a)/1e3;return d<0?null:Math.round(c-d)}(Number(a),Math.floor(Number(process.hrtime.bigint())/1e3),Date.now())}catch{return null}},"F",0,l,"p",0,i,"C",0,function(a,e,f="0644"){let g=(0,b.mkdtempSync)((0,d.resolve)((0,c.tmpdir)(),"failproofaid-stage-")),h=(0,d.resolve)(g,"service-definition");try{(0,b.writeFileSync)(h,e,"utf8"),i("install",["-m",f,h,a])}finally{(0,b.rmSync)(g,{recursive:!0,force:!0})}}],8284)}];
1
+ module.exports=[8284,a=>{"use strict";var b=a.i(2157),c=a.i(60526),d=a.i(50227),e=a.i(74533);function f(){return(0,c.userInfo)().username}function g(a=f()){return`failproofaid@${a}.service`}function h(a=f()){return(0,d.resolve)(process.env.FAILPROOFAI_SYSTEMD_DIR||"/etc/systemd/system",g(a))}function i(a,b){let[c,d]="function"==typeof process.getuid&&0===process.getuid()?[a,b]:["sudo",["-n",a,...b]];(0,e.execFileSync)(c,d,{stdio:"ignore",timeout:1e4})}async function j(){try{let{attemptDaemonHook:b,daemonAcceptsConnections:c}=await a.A(84670),d=Date.now()+1e4,e=!1;for(;;){if(await c()){e=!0;let a=await b({hookEvent:"SessionStart",cli:"claude",stdin:JSON.stringify({hook_event_name:"SessionStart",source:"failproofai-health-probe"})},{responseTimeoutMs:5e3});if(a.ok||"protocol-mismatch"===a.failure)return{ok:!0}}if(Date.now()>=d)break;await new Promise(a=>setTimeout(a,150))}return{ok:!1,reason:e?"worker":"unreachable"}}catch{return{ok:!1,reason:"unreachable"}}}async function k(){return(await j()).ok}async function l(){if(!await k())return!1;try{let{attemptDaemonPolicyEvaluation:b}=await a.A(84670);return(await b({integration:"hermes",event:"on_session_start",payload:{hook_event_name:"on_session_start",source:"failproofai-native-policy-health-probe"}},{responseTimeoutMs:5e3})).ok}catch{return!1}}function m(){try{var a;return a=(0,e.execFileSync)("systemctl",["show",g(),"--property=ConditionResult","--value"],{stdio:["ignore","pipe","ignore"],timeout:1e4}).toString(),"no"===a.trim()?"condition-failed":"stopped"}catch{return"stopped"}}a.i(10695),a.i(66680),a.i(44376),a.i(27028),a.i(75818),a.i(21572),a.s(["e",0,function(){if("function"==typeof process.getuid&&0===process.getuid())return!0;try{return(0,e.execFileSync)("sudo",["-n","true"],{stdio:"ignore",timeout:1e4}),!0}catch{return!1}},"v",0,function(){if("linux"!==process.platform&&process.platform,!(0,b.existsSync)(h()))return"not-installed";try{let a=(0,e.execFileSync)("systemctl",["is-active",g()],{stdio:["ignore","pipe","ignore"],timeout:1e4}).toString().trim();return"active"===a?"running":m()}catch{return m()}},"u",0,function(){if(!(0,b.existsSync)(h()))return null;try{let a=(0,e.execFileSync)("systemctl",["show",g(),"-p","ActiveEnterTimestampMonotonic","--value"],{stdio:["ignore","pipe","ignore"],timeout:1e4}).toString().trim();return function(a,b,c){if(!Number.isFinite(a)||a<=0||!Number.isFinite(b)||b<=0)return null;let d=(b-a)/1e3;return d<0?null:Math.round(c-d)}(Number(a),Math.floor(Number(process.hrtime.bigint())/1e3),Date.now())}catch{return null}},"F",0,l,"p",0,i,"C",0,function(a,e,f="0644"){let g=(0,b.mkdtempSync)((0,d.resolve)((0,c.tmpdir)(),"failproofaid-stage-")),h=(0,d.resolve)(g,"service-definition");try{(0,b.writeFileSync)(h,e,"utf8");let c=`${a}.failproofai-new`;i("install",["-m",f,h,c]),i("mv",["-f",c,a])}finally{(0,b.rmSync)(g,{recursive:!0,force:!0})}}],8284)}];
2
2
 
3
3
  //# sourceMappingURL=src_hooks_daemon-service_ts_0ibufora3s_bw._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[86304,68561,48630,9909,a=>{"use strict";var b=a.i(66680),c=a.i(2157),d=a.i(50227),e=a.i(12072),f=a.i(75818),g=a.i(89790),h=a.i(91609);let i=/^(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-]+)*))?$/,j=/^(?:0|[1-9]\d*)$/;function k(a){if("string"!=typeof a)return null;let b=i.exec(a);return b?{major:Number(b[1]),minor:Number(b[2]),patch:Number(b[3]),prerelease:void 0===b[4]?[]:b[4].split(".").map(a=>j.test(a)?Number(a):a)}:null}let l=(a,b)=>a<b?-1:+(a>b);function m(a,b){let c=k(a),d=k(b);return c&&d?l(c.major,d.major)||l(c.minor,d.minor)||l(c.patch,d.patch)||function(a,b){if(0===a.length&&0===b.length)return 0;if(0===a.length)return 1;if(0===b.length)return -1;for(let c=0;c<Math.min(a.length,b.length);c++){let d=a[c],e=b[c];if(d===e)continue;let f="number"==typeof d,g="number"==typeof e;if(f!==g)return f?-1:1;if(f&&g)return l(d,e);return d<e?-1:1}return l(a.length,b.length)}(c.prerelease,d.prerelease):null}a.s(["f",0,m],68561);let n=["always","protected_branch","in_git_repo","has_paths","paths_outside_project","system_or_root_paths"];function o(a){return"string"==typeof a&&n.includes(a)}a.s(["B",0,n,"M",0,o],48630);let p=[1],q=/^[a-f0-9]{64}$/,r=/^[A-Za-z0-9._-]{1,64}\/[A-Za-z0-9._-]{1,64}$/,s=/^[A-Za-z0-9][A-Za-z0-9._+-]{0,63}$/,t=/^[0-9a-f]{7,40}$/,u=/^[A-Za-z0-9._-]{1,128}$/,v=/^[a-z][a-z0-9_]{0,31}$/,w=new Set(["exempt","user_asked"]),x=new Set(["shell","write","read","network","other"]);function y(){return process.env.FAILPROOFAI_PACK_DIR??(0,f.n)()}function z(a){if("string"!=typeof a.id||!r.test(a.id))throw Error(`unsafe pack id ${JSON.stringify(a.id)}`);if("string"!=typeof a.version||!s.test(a.version))throw Error(`invalid version for pack ${a.id}`);if(void 0!==a.effect&&"enforce"!==a.effect&&"observe"!==a.effect)throw Error(`unknown effect ${JSON.stringify(a.effect)} for pack ${a.id}`);let b="string"==typeof a.commit&&t.test(a.commit.trim().toLowerCase())?a.commit.trim().toLowerCase():void 0;return{id:a.id,version:a.version,effect:a.effect??"enforce",...b?{commit:b}:{}}}function A(){return process.env.FAILPROOFAI_PACK_DIR?(0,d.resolve)(process.env.FAILPROOFAI_PACK_DIR,"installed.json"):(0,f.v)()}let B=new Set(["string","number","boolean","string[]","pattern[]"]);function C(a,b,c,d){let e=`${a} policy #${c}`;if(!b||"object"!=typeof b)throw Error(`${e} is not an object`);let f=b.name;if("string"!=typeof f||!u.test(f))throw Error(`${e} has an unsafe name ${JSON.stringify(f)}`);if("alwaysOn"in b)throw Error(`${e} declares alwaysOn, which packs may not set`);if("string"!=typeof b.description||0===b.description.length)throw Error(`${e} is missing a description`);if("string"!=typeof b.category||0===b.category.length)throw Error(`${e} is missing a category`);if("boolean"!=typeof b.defaultEnabled)throw Error(`${e} is missing defaultEnabled`);if(!b.match||"object"!=typeof b.match)throw Error(`${e} is missing a match`);let g=b.match;for(let a of["events","toolNames"]){let b=g[a];if(void 0!==b&&(!Array.isArray(b)||b.some(a=>"string"!=typeof a||0===a.length)))throw Error(`${e} has a match.${a} that is not a list of names`)}let i=(0,h.i)(b),j=["authority","reviewedBy"].filter(a=>a in b&&!(a in i));if("params"in b){let a=function(a){if(!a||"object"!=typeof a||Array.isArray(a))return"params is not an object";for(let[b,c]of Object.entries(a)){if(0===b.length)return"params has an empty parameter name";if(!c||"object"!=typeof c||Array.isArray(c))return`params.${b} is not an object`;if("string"!=typeof c.type||!B.has(c.type))return`params.${b} has type ${JSON.stringify(c.type)}, which is not one of ${[...B].join(", ")}`;if("string"!=typeof c.description||0===c.description.length)return`params.${b} is missing a description`;if(!("default"in c))return`params.${b} is missing a default`}}(b.params);a&&(d?.push(`${e} declares a params schema that was dropped: ${a}`),j.push("params"))}return j.length>0?Object.fromEntries(Object.entries(b).filter(([a])=>!j.includes(a))):b}function D(a,b,c=e.version){if(void 0===b)return{kind:"satisfied"};let d=m(c,b);return null===d?{kind:"unreadable",reason:`pack ${a} declares minCliVersion ${JSON.stringify(b)}, which is not a version this CLI can compare against its own (${c}) — the requirement was ignored`}:d<0?{kind:"too-old",reason:`pack ${a} needs failproofai ${String(b)} or newer and this is ${c} — run \`npm i -g "failproofai@>=${String(b)}" && failproofai update\``}:{kind:"satisfied",declared:b}}function E(a,b,c,d){if("string"!=typeof c||0===c.length)throw Error(`${a} is missing ${b}`);if(c.length>d)throw Error(`${a} has a ${b} of ${c.length} characters, over the ${d}-character cap`);return c}function F(a,b,c){let d;if(!b||"object"!=typeof b||Array.isArray(b))throw Error(`${a} is not an object`);if(null!==c)d=c;else{if("string"!=typeof b.id||!v.test(b.id))throw Error(`${a} has an unsafe id ${JSON.stringify(b.id)}`);if(w.has(b.id))throw Error(`${a} uses the reserved probe id ${JSON.stringify(b.id)}`);d=b.id}let e=E(a,"instructions",b.instructions,600);if(void 0===b.criteria)return{id:d,instructions:e};if(!b.criteria||"object"!=typeof b.criteria||Array.isArray(b.criteria))throw Error(`${a} has criteria that is not an object`);let f=b.criteria;return{id:d,instructions:e,criteria:{true:E(a,"criteria.true",f.true,300),false:E(a,"criteria.false",f.false,300)}}}function G(a,b,c){let d=`${a} semantic policy #${c}`;if(!b||"object"!=typeof b||Array.isArray(b))throw Error(`${d} is not an object`);let e=b.name;if("string"!=typeof e||!u.test(e))throw Error(`${d} has an unsafe name ${JSON.stringify(e)}`);if("alwaysOn"in b)throw Error(`${d} declares alwaysOn, which packs may not set`);let f=E(`${a} semantic policy ${e}`,"title",b.title,120),g=`${a} semantic policy ${e}`;if(!Array.isArray(b.appliesTo)||0===b.appliesTo.length)throw Error(`${g} has no appliesTo tool classes`);let h=b.appliesTo.find(a=>"string"!=typeof a||!x.has(a));if(void 0!==h)throw Error(`${g} applies to ${JSON.stringify(h)}, which is not a tool class (${[...x].join(", ")})`);if("deny"!==b.mode&&"instruct"!==b.mode)throw Error(`${g} has mode ${JSON.stringify(b.mode)}, which must be "deny" or "instruct"`);if("boolean"!=typeof b.userCanOverride)throw Error(`${g} is missing userCanOverride, which has no default`);if(!Array.isArray(b.probes)||0===b.probes.length)throw Error(`${g} declares no probes`);if(b.probes.length>6)throw Error(`${g} declares ${b.probes.length} probes, over the cap of 6`);let i=b.probes.map((a,b)=>F(`${g} probe #${b}`,a,null)),j=new Set;for(let a of i){if(j.has(a.id))throw Error(`${g} declares probe ${a.id} twice`);j.add(a.id)}let k=void 0===b.exempt?void 0:F(`${g} exempt`,b.exempt,"exempt");if(void 0!==b.precondition&&!o(b.precondition))throw Error(`${g} names precondition ${JSON.stringify(b.precondition)}, which this build does not have (${n.join(", ")})`);let l=E(g,"guidance",b.guidance,600);return{name:e,title:f,appliesTo:b.appliesTo,mode:b.mode,userCanOverride:b.userCanOverride,probes:i,...k?{exempt:k}:{},...void 0!==b.precondition?{precondition:b.precondition}:{},guidance:l}}function H(a){return a instanceof Error?a.message:String(a)}function I(a){return/^github:FailproofAI\//i.test(a.source??"")}function J(a,b){return h.g.has(b)&&!I(a)}a.s(["P",0,24,"r",0,t,"T",0,D,"Q",0,function(){try{let a=JSON.parse((0,c.readFileSync)(A(),"utf8"));if(!Array.isArray(a.packs))return!1;return a.packs.some(a=>!!a&&"object"==typeof a&&Array.isArray(a.policies)&&a.policies.length>0)}catch{return!1}},"E",0,function(a){return a.semantic??[]},"N",0,y,"$",0,z,"Z",0,C,"U",0,G,"V",0,function(){let a,d=A();if(!(0,c.existsSync)(d))return{packs:[],errors:[]};try{a=JSON.parse((0,c.readFileSync)(d,"utf8"))}catch(a){return{packs:[],errors:[{id:null,reason:`unreadable pack manifest: ${H(a)}`}]}}if(!a||"object"!=typeof a)return{packs:[],errors:[{id:null,reason:"pack manifest is not an object"}]};let e=a;if(!p.includes(e.schemaVersion))return{packs:[],errors:[{id:null,reason:`unsupported pack manifest schema ${String(e.schemaVersion)} (supported: ${p.join(", ")})`}]};if(!Array.isArray(e.packs))return{packs:[],errors:[{id:null,reason:"pack manifest packs is not an array"}]};let f=y(),h=[],i=[],j=[],k=new Set;for(let a of e.packs){let d=a&&"object"==typeof a&&"string"==typeof a.id?a.id:null,e=[];try{let d=function(a,d,e){if(!d||"object"!=typeof d)throw Error("pack entry is not an object");let f=z(d);if("string"!=typeof d.source||0===d.source.length)throw Error(`pack ${d.id} has no source`);if("string"!=typeof d.sha256||!q.test(d.sha256))throw Error(`invalid SHA-256 for pack ${d.id}`);let h=f.effect,i=D(f.id,d.minCliVersion);if("too-old"===i.kind)throw Error(i.reason);"unreadable"===i.kind&&e.push(i.reason);let j=(0,g.t)(a,d.entry),k=(0,b.createHash)("sha256").update((0,c.readFileSync)(j)).digest("hex");if(k!==d.sha256)throw Error(`pack ${d.id} failed integrity verification: expected ${d.sha256}, got ${k}`);if(!Array.isArray(d.policies))throw Error(`pack ${d.id} policies is not an array`);let l=d.policies.map((a,b)=>C(d.id,a,b,e)),m=new Set;for(let a of l){if(m.has(a.name))throw Error(`pack ${d.id} declares ${a.name} twice`);m.add(a.name)}let n=null;if(void 0!==d.enabled){if(!Array.isArray(d.enabled)||d.enabled.some(a=>"string"!=typeof a))throw Error(`pack ${d.id} enabled is not an array of names`);n=d.enabled.filter(a=>m.has(a))}let o=null;if(void 0!==d.clis){if(!Array.isArray(d.clis)||d.clis.some(a=>"string"!=typeof a))throw Error(`pack ${d.id} clis is not an array of agent names`);o=d.clis}return{clis:o,id:f.id,version:f.version,source:d.source,path:j,sha256:d.sha256,effect:h,policies:l,semantic:function(a,b,c){if(void 0===b)return[];if(!Array.isArray(b))return c.push(`pack ${a} semantic is not an array, so none of it was loaded`),[];let d=[],e=new Set;for(let[f,g]of b.entries()){if(d.length>=24){c.push(`pack ${a} declares more than 24 semantic policies; the ${b.length-24} past that cap were dropped`);break}try{let b=G(a,g,f);if(e.has(b.name))throw Error(`pack ${a} declares semantic policy ${b.name} twice`);e.add(b.name),d.push(b)}catch(a){c.push(H(a))}}return d}(f.id,d.semantic,e),..."satisfied"===i.kind&&i.declared?{minCliVersion:i.declared}:{},enabled:n}}(f,a,e);if(k.has(d.id))throw Error(`duplicate pack id ${d.id}`);k.add(d.id),h.push(d),j.push(...e)}catch(c){let b=a&&("observe"===a.effect||"enforce"===a.effect)?a.effect:"enforce";i.push({id:d,reason:H(c),effect:b,...Array.isArray(a?.policies)?{declared:function(a){let b=[];for(let c of a)c&&"object"==typeof c&&"string"==typeof c.name&&c.match&&"object"==typeof c.match&&b.push(c);return b}(a.policies)}:{},...Array.isArray(a?.policies)&&0===a.policies.length?{semanticOnly:!0}:{},...Array.isArray(a?.clis)&&a.clis.every(a=>"string"==typeof a)?{clis:a.clis}:{}})}}return{packs:h,errors:i,...j.length>0?{warnings:j}:{}}},"M",0,function(a){return a.exempt?[...a.probes,a.exempt]:a.probes}],9909),a.s(["v",0,function(a){let b=new Map,c=new Map;for(let d of a)for(let a of d.semantic??[]){if(J(d,a.name))continue;let e=function a(b){if(Array.isArray(b))return`[${b.map(a).join(",")}]`;if(null!==b&&"object"==typeof b){let c=Object.entries(b).filter(([,a])=>void 0!==a).sort(([a],[b])=>a<b?-1:+(a>b));return`{${c.map(([b,c])=>`${JSON.stringify(b)}:${a(c)}`).join(",")}}`}return JSON.stringify(b)??"null"}(a),f=b.get(a.name);if(void 0===f){b.set(a.name,{form:e,ids:[d.id]});continue}f.ids.push(d.id),f.form!==e&&c.set(a.name,f.ids)}return c},"g",0,I,"B",0,J,"r",0,function(a,b){return a.filter(a=>"observe"!==a.effect&&!(b&&Array.isArray(a.clis)&&a.clis.length>0&&!a.clis.includes(b)))}],86304)}];
2
+
3
+ //# sourceMappingURL=src_hooks_effective-reviewers_ts_1h4wtvo55j16x._.js.map
@@ -7,14 +7,14 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/0cz1d0mv5g_q7.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/-AugwIGiiIYcahO4J7mdM/_buildManifest.js",
11
- "static/-AugwIGiiIYcahO4J7mdM/_ssgManifest.js",
12
- "static/-AugwIGiiIYcahO4J7mdM/_clientMiddlewareManifest.js"
10
+ "static/_rnWxsoAWV0JPMURamq78/_buildManifest.js",
11
+ "static/_rnWxsoAWV0JPMURamq78/_ssgManifest.js",
12
+ "static/_rnWxsoAWV0JPMURamq78/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/3i_9ugyh1q1o1.js",
16
16
  "static/chunks/2hqfk_jgesiw2.js",
17
- "static/chunks/1i9zuw01f0ogt.js",
17
+ "static/chunks/3r-j6pmqrq4l1.js",
18
18
  "static/chunks/34rjkinfk6d4p.js",
19
19
  "static/chunks/turbopack-2u1d16houkiyo.js"
20
20
  ],
@@ -24,7 +24,7 @@ globalThis.__BUILD_MANIFEST = {
24
24
  "otherChunks": [
25
25
  "static/chunks/3i_9ugyh1q1o1.js",
26
26
  "static/chunks/2hqfk_jgesiw2.js",
27
- "static/chunks/1i9zuw01f0ogt.js",
27
+ "static/chunks/3r-j6pmqrq4l1.js",
28
28
  "static/chunks/34rjkinfk6d4p.js"
29
29
  ],
30
30
  "runtimeModuleIds": [
@@ -35,7 +35,7 @@ globalThis.__BUILD_MANIFEST = {
35
35
  "otherChunks": [
36
36
  "static/chunks/3i_9ugyh1q1o1.js",
37
37
  "static/chunks/2hqfk_jgesiw2.js",
38
- "static/chunks/1i9zuw01f0ogt.js",
38
+ "static/chunks/3r-j6pmqrq4l1.js",
39
39
  "static/chunks/34rjkinfk6d4p.js"
40
40
  ],
41
41
  "runtimeModuleIds": [
@@ -46,7 +46,7 @@ globalThis.__BUILD_MANIFEST = {
46
46
  "otherChunks": [
47
47
  "static/chunks/3i_9ugyh1q1o1.js",
48
48
  "static/chunks/2hqfk_jgesiw2.js",
49
- "static/chunks/1i9zuw01f0ogt.js",
49
+ "static/chunks/3r-j6pmqrq4l1.js",
50
50
  "static/chunks/34rjkinfk6d4p.js"
51
51
  ],
52
52
  "runtimeModuleIds": [
@@ -57,7 +57,7 @@ globalThis.__BUILD_MANIFEST = {
57
57
  "otherChunks": [
58
58
  "static/chunks/3i_9ugyh1q1o1.js",
59
59
  "static/chunks/2hqfk_jgesiw2.js",
60
- "static/chunks/1i9zuw01f0ogt.js",
60
+ "static/chunks/3r-j6pmqrq4l1.js",
61
61
  "static/chunks/34rjkinfk6d4p.js"
62
62
  ],
63
63
  "runtimeModuleIds": [
@@ -68,7 +68,7 @@ globalThis.__BUILD_MANIFEST = {
68
68
  "otherChunks": [
69
69
  "static/chunks/3i_9ugyh1q1o1.js",
70
70
  "static/chunks/2hqfk_jgesiw2.js",
71
- "static/chunks/1i9zuw01f0ogt.js",
71
+ "static/chunks/3r-j6pmqrq4l1.js",
72
72
  "static/chunks/34rjkinfk6d4p.js"
73
73
  ],
74
74
  "runtimeModuleIds": [
@@ -79,7 +79,7 @@ globalThis.__BUILD_MANIFEST = {
79
79
  "otherChunks": [
80
80
  "static/chunks/3i_9ugyh1q1o1.js",
81
81
  "static/chunks/2hqfk_jgesiw2.js",
82
- "static/chunks/1i9zuw01f0ogt.js",
82
+ "static/chunks/3r-j6pmqrq4l1.js",
83
83
  "static/chunks/34rjkinfk6d4p.js"
84
84
  ],
85
85
  "runtimeModuleIds": [
@@ -90,7 +90,7 @@ globalThis.__BUILD_MANIFEST = {
90
90
  "otherChunks": [
91
91
  "static/chunks/3i_9ugyh1q1o1.js",
92
92
  "static/chunks/2hqfk_jgesiw2.js",
93
- "static/chunks/1i9zuw01f0ogt.js",
93
+ "static/chunks/3r-j6pmqrq4l1.js",
94
94
  "static/chunks/34rjkinfk6d4p.js"
95
95
  ],
96
96
  "runtimeModuleIds": [
@@ -101,7 +101,7 @@ globalThis.__BUILD_MANIFEST = {
101
101
  "otherChunks": [
102
102
  "static/chunks/3i_9ugyh1q1o1.js",
103
103
  "static/chunks/2hqfk_jgesiw2.js",
104
- "static/chunks/1i9zuw01f0ogt.js",
104
+ "static/chunks/3r-j6pmqrq4l1.js",
105
105
  "static/chunks/34rjkinfk6d4p.js"
106
106
  ],
107
107
  "runtimeModuleIds": [
@@ -112,7 +112,7 @@ globalThis.__BUILD_MANIFEST = {
112
112
  "otherChunks": [
113
113
  "static/chunks/3i_9ugyh1q1o1.js",
114
114
  "static/chunks/2hqfk_jgesiw2.js",
115
- "static/chunks/1i9zuw01f0ogt.js",
115
+ "static/chunks/3r-j6pmqrq4l1.js",
116
116
  "static/chunks/34rjkinfk6d4p.js"
117
117
  ],
118
118
  "runtimeModuleIds": [
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" href="/logo.svg"/><link rel="stylesheet" href="/_next/static/chunks/41ujrab732qi3.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3i_9ugyh1q1o1.js"/><script src="/_next/static/chunks/2hqfk_jgesiw2.js" async=""></script><script src="/_next/static/chunks/1i9zuw01f0ogt.js" async=""></script><script src="/_next/static/chunks/34rjkinfk6d4p.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/0tiuj32d-qcy3.js" async=""></script><script src="/_next/static/chunks/2j5zpvs3pd7mw.js" async=""></script><script src="/_next/static/chunks/2o8j51ujh1ox4.js" async=""></script><script src="/_next/static/chunks/436g_rqa42mr7.js" async=""></script><script src="/_next/static/chunks/3d6_vjbvr0c2n.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Failproof AI - Hooks &amp; Project Monitor</title><meta name="description" content="Open-source hooks, policies, and project visualization for Claude Code &amp; Agents SDK"/><link rel="icon" href="/icon.svg"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="antialiased"><div hidden=""><!--$--><!--/$--></div><header class="app-header"><a href="https://github.com/failproofai/failproofai" target="_blank" rel="noopener noreferrer" class="h-brand" style="flex:none" aria-label="failproof ai · GitHub"><img src="/logo.svg" alt="failproof_ai" style="height:18px;display:block;flex-shrink:0"/></a><nav class="tabs" style="border:none;padding:0;gap:0"><a class="tab" href="/projects">projects</a><a class="tab" href="/policies">policies</a><a class="tab" href="/audit">audit</a></nav><div style="flex:1"></div><div class="h-meta"><span class="h-version">v<!-- -->1.0.15</span></div><div class="h-actions"><div class="inline-flex items-center rounded-lg border border-border bg-muted/50 p-0.5 gap-0.5"><button title="Refresh" class="inline-flex items-center justify-center rounded-md p-1.5 transition-colors text-muted-foreground hover:text-foreground hover:bg-muted"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw w-3.5 h-3.5" aria-hidden="true"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg></button><div class="w-px h-4 bg-border"></div><div class="inline-flex items-center gap-0.5" role="group" aria-label="Auto-refresh interval"><button aria-pressed="true" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors bg-background text-foreground shadow-sm">Off</button><button aria-pressed="false" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors text-muted-foreground hover:text-foreground hover:bg-muted">5s</button><button aria-pressed="false" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors text-muted-foreground hover:text-foreground hover:bg-muted">10s</button><button aria-pressed="false" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors text-muted-foreground hover:text-foreground hover:bg-muted">30s</button></div></div><span style="width:1px;height:18px;background:var(--line);margin:0 6px"></span><a class="h-icon-btn" aria-label="settings" title="settings" href="/settings"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings w-3.5 h-3.5" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></a><span style="width:1px;height:18px;background:var(--line);margin:0 6px"></span><div class="relative"><button class="justify-center rounded-md text-sm font-medium transition-[background-color,color,box-shadow,border-color] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:opacity-50 disabled:pointer-events-none hover:bg-muted h-9 px-3 relative z-50 flex items-center gap-1.5 text-muted-foreground hover:text-foreground" type="button" aria-expanded="false" aria-haspopup="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-git-branch h-4 w-4" aria-hidden="true"><path d="M15 6a9 9 0 0 0-9 9V3"></path><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle></svg><span class="hidden sm:inline text-xs whitespace-nowrap">Reach Us</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-3 w-3 transition-transform" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button></div></div></header><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><div class="fixed bottom-4 right-4 z-50 flex flex-col gap-2"></div><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3i_9ugyh1q1o1.js","static/chunks/2hqfk_jgesiw2.js","static/chunks/1i9zuw01f0ogt.js","static/chunks/34rjkinfk6d4p.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3i_9ugyh1q1o1.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0tiuj32d-qcy3.js\"\n3:\"/_next/static/chunks/2j5zpvs3pd7mw.js\"\n4:\"/_next/static/chunks/2o8j51ujh1ox4.js\"\n5:I[12344,[\"$2\",\"$3\",\"$4\"],\"PostHogProvider\"]\n6:\"GlobalErrorListeners\"\n7:I[97917,[\"$2\",\"$3\",\"$4\"],\"$6\"]\n8:\"AutoRefreshProvider\"\n9:I[85881,[\"$2\",\"$3\",\"$4\"],\"$8\"]\na:I[63780,[\"$2\",\"$3\",\"$4\"],\"Navbar\"]\nb:I[39756,[\"$2\",\"$3\",\"$4\"],\"default\"]\nc:\"/_next/static/chunks/436g_rqa42mr7.js\"\nd:I[8821,[\"$2\",\"$3\",\"$4\",\"$c\"],\"default\"]\ne:I[37457,[\"$2\",\"$3\",\"$4\"],\"default\"]\nf:I[55574,[\"$2\",\"$3\",\"$4\"],\"Toaster\"]\n13:I[97367,[\"$2\",\"$3\",\"$4\"],\"OutletBoundary\"]\n14:\"$Sreact.suspense\"\n16:\"ViewportBoundary\"\n17:I[97367,[\"$2\",\"$3\",\"$4\"],\"$16\"]\n19:\"MetadataBoundary\"\n1a:I[97367,[\"$2\",\"$3\",\"$4\"],\"$19\"]\n1c:\"/_next/static/chunks/3d6_vjbvr0c2n.js\"\n1d:I[53348,[\"$2\",\"$3\",\"$4\",\"$1c\"],\"default\"]\n:HL[\"/_next/static/chunks/41ujrab732qi3.css\",\"style\"]\n11:X\n"])</script><script>self.__next_f.push([1,"12:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@15\"}]}]]}],\"p\":false,\"v\":null}}]]\n"])</script><script>self.__next_f.push([1,"10:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$11\"},\"c\":\"$Q12\"}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/41ujrab732qi3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0tiuj32d-qcy3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/2j5zpvs3pd7mw.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2o8j51ujh1ox4.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"antialiased\",\"children\":[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L7\",null,{}],[\"$\",\"$L9\",null,{\"children\":[[\"$\",\"$La\",null,{\"disabledPages\":[]}],[\"$\",\"$Lb\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$d\",\"errorStyles\":[],\"errorScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/436g_rqa42mr7.js\",\"async\":true,\"nonce\":\"$undefined\"}]],\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],[\"$\",\"$Lf\",null,{}]]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q10\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L17\",null,{\"children\":\"$L18\"}],[\"$\",\"$L1a\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L1b\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$1d\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/41ujrab732qi3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"-AugwIGiiIYcahO4J7mdM\"}\n"])</script><script>self.__next_f.push([1,"11:C\n18:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"1e:I[27201,[\"$2\",\"$3\",\"$4\"],\"IconMark\"]\n15:null\n1b:[[\"$\",\"title\",\"0\",{\"children\":\"Failproof AI - Hooks \u0026 Project Monitor\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Open-source hooks, policies, and project visualization for Claude Code \u0026 Agents SDK\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg\"}],[\"$\",\"$L1e\",\"3\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" href="/logo.svg"/><link rel="stylesheet" href="/_next/static/chunks/41ujrab732qi3.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3i_9ugyh1q1o1.js"/><script src="/_next/static/chunks/2hqfk_jgesiw2.js" async=""></script><script src="/_next/static/chunks/3r-j6pmqrq4l1.js" async=""></script><script src="/_next/static/chunks/34rjkinfk6d4p.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/2swcvie6i54dn.js" async=""></script><script src="/_next/static/chunks/2j5zpvs3pd7mw.js" async=""></script><script src="/_next/static/chunks/2xx-2wehe-kwl.js" async=""></script><script src="/_next/static/chunks/436g_rqa42mr7.js" async=""></script><script src="/_next/static/chunks/24nikgpkr0qas.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Failproof AI - Hooks &amp; Project Monitor</title><meta name="description" content="Open-source hooks, policies, and project visualization for Claude Code &amp; Agents SDK"/><link rel="icon" href="/icon.svg"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="antialiased"><div hidden=""><!--$--><!--/$--></div><header class="app-header"><a href="https://github.com/failproofai/failproofai" target="_blank" rel="noopener noreferrer" class="h-brand" style="flex:none" aria-label="failproof ai · GitHub"><img src="/logo.svg" alt="failproof_ai" style="height:18px;display:block;flex-shrink:0"/></a><nav class="tabs" style="border:none;padding:0;gap:0"><a class="tab" href="/projects">projects</a><a class="tab" href="/policies">policies</a><a class="tab" href="/audit">audit</a></nav><div style="flex:1"></div><div class="h-meta"><span class="h-version">v<!-- -->1.0.16-beta.0</span></div><div class="h-actions"><div class="inline-flex items-center rounded-lg border border-border bg-muted/50 p-0.5 gap-0.5"><button title="Refresh" class="inline-flex items-center justify-center rounded-md p-1.5 transition-colors text-muted-foreground hover:text-foreground hover:bg-muted"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw w-3.5 h-3.5" aria-hidden="true"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg></button><div class="w-px h-4 bg-border"></div><div class="inline-flex items-center gap-0.5" role="group" aria-label="Auto-refresh interval"><button aria-pressed="true" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors bg-background text-foreground shadow-sm">Off</button><button aria-pressed="false" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors text-muted-foreground hover:text-foreground hover:bg-muted">5s</button><button aria-pressed="false" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors text-muted-foreground hover:text-foreground hover:bg-muted">10s</button><button aria-pressed="false" class="px-2 py-1 text-[11px] font-medium rounded-md transition-colors text-muted-foreground hover:text-foreground hover:bg-muted">30s</button></div></div><span style="width:1px;height:18px;background:var(--line);margin:0 6px"></span><a class="h-icon-btn" aria-label="settings" title="settings" href="/settings"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings w-3.5 h-3.5" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></a><span style="width:1px;height:18px;background:var(--line);margin:0 6px"></span><div class="relative"><button class="justify-center rounded-md text-sm font-medium transition-[background-color,color,box-shadow,border-color] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:opacity-50 disabled:pointer-events-none hover:bg-muted h-9 px-3 relative z-50 flex items-center gap-1.5 text-muted-foreground hover:text-foreground" type="button" aria-expanded="false" aria-haspopup="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-git-branch h-4 w-4" aria-hidden="true"><path d="M15 6a9 9 0 0 0-9 9V3"></path><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle></svg><span class="hidden sm:inline text-xs whitespace-nowrap">Reach Us</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-3 w-3 transition-transform" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button></div></div></header><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><div class="fixed bottom-4 right-4 z-50 flex flex-col gap-2"></div><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3i_9ugyh1q1o1.js","static/chunks/2hqfk_jgesiw2.js","static/chunks/3r-j6pmqrq4l1.js","static/chunks/34rjkinfk6d4p.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3i_9ugyh1q1o1.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2swcvie6i54dn.js\"\n3:\"/_next/static/chunks/2j5zpvs3pd7mw.js\"\n4:\"/_next/static/chunks/2xx-2wehe-kwl.js\"\n5:I[12344,[\"$2\",\"$3\",\"$4\"],\"PostHogProvider\"]\n6:\"GlobalErrorListeners\"\n7:I[97917,[\"$2\",\"$3\",\"$4\"],\"$6\"]\n8:\"AutoRefreshProvider\"\n9:I[85881,[\"$2\",\"$3\",\"$4\"],\"$8\"]\na:I[63780,[\"$2\",\"$3\",\"$4\"],\"Navbar\"]\nb:I[39756,[\"$2\",\"$3\",\"$4\"],\"default\"]\nc:\"/_next/static/chunks/436g_rqa42mr7.js\"\nd:I[8821,[\"$2\",\"$3\",\"$4\",\"$c\"],\"default\"]\ne:I[37457,[\"$2\",\"$3\",\"$4\"],\"default\"]\nf:I[55574,[\"$2\",\"$3\",\"$4\"],\"Toaster\"]\n13:I[97367,[\"$2\",\"$3\",\"$4\"],\"OutletBoundary\"]\n14:\"$Sreact.suspense\"\n16:\"ViewportBoundary\"\n17:I[97367,[\"$2\",\"$3\",\"$4\"],\"$16\"]\n19:\"MetadataBoundary\"\n1a:I[97367,[\"$2\",\"$3\",\"$4\"],\"$19\"]\n1c:\"/_next/static/chunks/24nikgpkr0qas.js\"\n1d:I[53348,[\"$2\",\"$3\",\"$4\",\"$1c\"],\"default\"]\n:HL[\"/_next/static/chunks/41ujrab732qi3.css\",\"style\"]\n11:X\n"])</script><script>self.__next_f.push([1,"12:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:1:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@15\"}]}]]}],\"p\":false,\"v\":null}}]]\n"])</script><script>self.__next_f.push([1,"10:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$11\"},\"c\":\"$Q12\"}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/41ujrab732qi3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2swcvie6i54dn.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/2j5zpvs3pd7mw.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2xx-2wehe-kwl.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"antialiased\",\"children\":[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L7\",null,{}],[\"$\",\"$L9\",null,{\"children\":[[\"$\",\"$La\",null,{\"disabledPages\":[]}],[\"$\",\"$Lb\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$d\",\"errorStyles\":[],\"errorScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/436g_rqa42mr7.js\",\"async\":true,\"nonce\":\"$undefined\"}]],\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],[\"$\",\"$Lf\",null,{}]]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q10\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L17\",null,{\"children\":\"$L18\"}],[\"$\",\"$L1a\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L1b\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$1d\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/41ujrab732qi3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"_rnWxsoAWV0JPMURamq78\"}\n"])</script><script>self.__next_f.push([1,"11:C\n18:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"1e:I[27201,[\"$2\",\"$3\",\"$4\"],\"IconMark\"]\n15:null\n1b:[[\"$\",\"title\",\"0\",{\"children\":\"Failproof AI - Hooks \u0026 Project Monitor\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Open-source hooks, policies, and project visualization for Claude Code \u0026 Agents SDK\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg\"}],[\"$\",\"$L1e\",\"3\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3i_9ugyh1q1o1.js"/><script src="/_next/static/chunks/2hqfk_jgesiw2.js" async=""></script><script src="/_next/static/chunks/1i9zuw01f0ogt.js" async=""></script><script src="/_next/static/chunks/34rjkinfk6d4p.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/0oxlfb02aqo3e.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3i_9ugyh1q1o1.js","static/chunks/2hqfk_jgesiw2.js","static/chunks/1i9zuw01f0ogt.js","static/chunks/34rjkinfk6d4p.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3i_9ugyh1q1o1.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0oxlfb02aqo3e.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n7:I[97367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[97367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[97367,[\"$2\"],\"$d\"]\n10:I[53348,[\"$2\"],\"default\"]\n5:X\n"])</script><script>self.__next_f.push([1,"6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"-AugwIGiiIYcahO4J7mdM\"}\n"])</script><script>self.__next_f.push([1,"5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"9:null\nf:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3i_9ugyh1q1o1.js"/><script src="/_next/static/chunks/2hqfk_jgesiw2.js" async=""></script><script src="/_next/static/chunks/3r-j6pmqrq4l1.js" async=""></script><script src="/_next/static/chunks/34rjkinfk6d4p.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/0fqjv13piwa6z.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3i_9ugyh1q1o1.js","static/chunks/2hqfk_jgesiw2.js","static/chunks/3r-j6pmqrq4l1.js","static/chunks/34rjkinfk6d4p.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3i_9ugyh1q1o1.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0fqjv13piwa6z.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n7:I[97367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[97367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[97367,[\"$2\"],\"$d\"]\n10:I[53348,[\"$2\"],\"default\"]\n5:X\n"])</script><script>self.__next_f.push([1,"6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"_rnWxsoAWV0JPMURamq78\"}\n"])</script><script>self.__next_f.push([1,"5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"9:null\nf:[]\n"])</script></body></html>