nodal-agents 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +629 -426
- package/docs-index.json +21 -14
- package/migrations/0123_chat_messages_stopped.sql +10 -0
- package/migrations/0124_chat_messages_cut_reason.sql +12 -0
- package/migrations/0125_shell_checklist.sql +31 -0
- package/migrations/0126_run_budget.sql +57 -0
- package/migrations/0127_agent_budget.sql +86 -0
- package/migrations/0128_shell_policy_retired_kinds.sql +52 -0
- package/migrations/meta/_journal.json +42 -0
- package/package.json +1 -1
- package/runner.js +4373 -2761
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/app-path-routes-manifest.json +6 -2
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +5 -5
- package/web/.next/routes-manifest.json +28 -0
- package/web/.next/server/app/(dashboard)/agents/[id]/channels/page.js +1 -1
- package/web/.next/server/app/(dashboard)/agents/[id]/channels/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/agents/[id]/edit/page.js +4 -4
- package/web/.next/server/app/(dashboard)/agents/[id]/edit/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/agents/[id]/telegram/page.js +1 -1
- package/web/.next/server/app/(dashboard)/agents/[id]/telegram/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/agents/page.js +1 -1
- package/web/.next/server/app/(dashboard)/agents/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/approvals/page.js +1 -1
- package/web/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/automations/[id]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/automations/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/automations/page.js +1 -1
- package/web/.next/server/app/(dashboard)/automations/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/[id]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/page.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/runs/[id]/page.js +1 -0
- package/web/.next/server/app/(dashboard)/chat/runs/[id]/page_client-reference-manifest.js +1 -0
- package/web/.next/server/app/(dashboard)/code/[id]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/code/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/code/page.js +1 -1
- package/web/.next/server/app/(dashboard)/code/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/connectors/page.js +1 -1
- package/web/.next/server/app/(dashboard)/connectors/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/credentials/page.js +1 -1
- package/web/.next/server/app/(dashboard)/credentials/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/dashboard/page.js +1 -1
- package/web/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/jobs/[id]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/jobs/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/jobs/page.js +1 -1
- package/web/.next/server/app/(dashboard)/jobs/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/learned-skills/page.js +1 -1
- package/web/.next/server/app/(dashboard)/learned-skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/llm-providers/page.js +1 -1
- package/web/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/logs/page.js +1 -1
- package/web/.next/server/app/(dashboard)/logs/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/mcp/page.js +1 -1
- package/web/.next/server/app/(dashboard)/mcp/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/memories/page.js +1 -1
- package/web/.next/server/app/(dashboard)/memories/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page.js +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/scheduled/[id]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/scheduled/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/scheduled/page.js +1 -1
- package/web/.next/server/app/(dashboard)/scheduled/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/settings/page.js +1 -1
- package/web/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/settings/root-context/page.js +1 -1
- package/web/.next/server/app/(dashboard)/settings/root-context/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/skills/[id]/edit/page.js +1 -1
- package/web/.next/server/app/(dashboard)/skills/[id]/edit/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/skills/new/page.js +1 -1
- package/web/.next/server/app/(dashboard)/skills/new/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/skills/page.js +1 -1
- package/web/.next/server/app/(dashboard)/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/spaces/[id]/files/page.js +1 -1
- package/web/.next/server/app/(dashboard)/spaces/[id]/files/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/spaces/[id]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/spaces/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/spaces/page.js +1 -1
- package/web/.next/server/app/(dashboard)/spaces/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error/page.js +2 -2
- package/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +1 -1
- package/web/.next/server/app/_global-error.rsc +2 -2
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page.js +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_not-found.html +1 -1
- package/web/.next/server/app/_not-found.rsc +3 -3
- package/web/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/web/.next/server/app/api/auth/[...all]/route.js +1 -1
- package/web/.next/server/app/api/chat/live/route.js +4 -0
- package/web/.next/server/app/api/chat/live/route_client-reference-manifest.js +1 -0
- package/web/.next/server/app/api/chat/stop/route.js +1 -0
- package/web/.next/server/app/api/chat/stop/route_client-reference-manifest.js +1 -0
- package/web/.next/server/app/api/chat/stream/route.js +3 -3
- package/web/.next/server/app/api/health/route.js +1 -1
- package/web/.next/server/app/api/oauth/[provider]/callback/route.js +1 -1
- package/web/.next/server/app/api/oauth/[provider]/start/route.js +1 -1
- package/web/.next/server/app/api/runs/[jobId]/media/route.js +1 -0
- package/web/.next/server/app/api/runs/[jobId]/media/route_client-reference-manifest.js +1 -0
- package/web/.next/server/app/auth/callback/route.js +1 -1
- package/web/.next/server/app/login/page.js +1 -1
- package/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/onboarding/page.js +2 -2
- package/web/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app-paths-manifest.json +6 -2
- package/web/.next/server/chunks/1326.js +136 -0
- package/web/.next/server/chunks/1406.js +1773 -0
- package/web/.next/server/chunks/1615.js +1 -0
- package/web/.next/server/chunks/1873.js +1 -0
- package/web/.next/server/chunks/2443.js +3 -0
- package/web/.next/server/chunks/3483.js +1 -0
- package/web/.next/server/chunks/3675.js +1 -1
- package/web/.next/server/chunks/3920.js +1 -0
- package/web/.next/server/chunks/42.js +3 -3
- package/web/.next/server/chunks/4546.js +1 -0
- package/web/.next/server/chunks/494.js +1 -1
- package/web/.next/server/chunks/5648.js +1 -0
- package/web/.next/server/chunks/5804.js +1 -1
- package/web/.next/server/chunks/592.js +1 -1
- package/web/.next/server/chunks/5976.js +1 -0
- package/web/.next/server/chunks/6915.js +1 -0
- package/web/.next/server/chunks/692.js +15 -15
- package/web/.next/server/chunks/7465.js +1 -0
- package/web/.next/server/chunks/7651.js +812 -0
- package/web/.next/server/chunks/7663.js +22 -22
- package/web/.next/server/chunks/7876.js +1 -0
- package/web/.next/server/chunks/7915.js +1 -1
- package/web/.next/server/chunks/796.js +1 -1
- package/web/.next/server/chunks/8030.js +1 -0
- package/web/.next/server/chunks/8104.js +1 -0
- package/web/.next/server/chunks/8697.js +1 -1
- package/web/.next/server/chunks/8794.js +1 -0
- package/web/.next/server/chunks/8830.js +1 -0
- package/web/.next/server/chunks/9009.js +1 -0
- package/web/.next/server/chunks/{2096.js → 9066.js} +1 -1
- package/web/.next/server/chunks/965.js +1 -1
- package/web/.next/server/chunks/{6213.js → 9844.js} +2 -2
- package/web/.next/server/chunks/9882.js +36 -0
- package/web/.next/server/middleware-build-manifest.js +1 -1
- package/web/.next/server/middleware.js +27 -27
- package/web/.next/server/pages/404.html +1 -1
- package/web/.next/server/pages/500.html +1 -1
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/static/chunks/{1091-6d0af9f18ddf99f6.js → 1091-9485133bd943918f.js} +1 -1
- package/web/.next/static/chunks/{1332-c8bed6b750598652.js → 1409-fe80b5952e1f40cb.js} +1 -1
- package/web/.next/static/chunks/1789-2566ac18a25fb387.js +1 -0
- package/web/.next/static/chunks/3844-36a00411beee6253.js +1 -0
- package/web/.next/static/chunks/4020-ec67a80b0e0b651e.js +1 -0
- package/web/.next/static/chunks/4666-5fd532303d09a950.js +1 -0
- package/web/.next/static/chunks/4771-47261da3c38b4746.js +1 -0
- package/web/.next/static/chunks/494-a34a6a0b36862877.js +1 -0
- package/web/.next/static/chunks/5034-9aff8cbeb288ac20.js +1 -0
- package/web/.next/static/chunks/5216-528f63f54d56b47a.js +1 -0
- package/web/.next/static/chunks/5575-444e6f49e2d2a328.js +1 -0
- package/web/.next/static/chunks/560-59e02268ee5fe11e.js +1 -0
- package/web/.next/static/chunks/5954-7c92f3e7812dce11.js +1 -0
- package/web/.next/static/chunks/{5925-76337eacde3c3bc8.js → 6724-8a6d2dc777961105.js} +11 -11
- package/web/.next/static/chunks/6861-5edebd867f40e3a6.js +3 -0
- package/web/.next/static/chunks/764-a883257e15345ae8.js +1 -0
- package/web/.next/static/chunks/825-c876657b507df9d8.js +1 -0
- package/web/.next/static/chunks/9052-33a3c725444cb518.js +1 -0
- package/web/.next/static/chunks/9287-41590f18e747f14c.js +1 -0
- package/web/.next/static/chunks/9484-f972307c1c78a8e8.js +1 -0
- package/web/.next/static/chunks/9643-03e18abc622d33f5.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/channels/page-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/edit/page-16e26ece80055943.js +6 -0
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/telegram/page-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/agents/page-ca54871a8009f0aa.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/approvals/page-a5d31137ad6c86c0.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/automations/[id]/{page-9ef1d76121b6030d.js → page-2ea773c99f54f674.js} +1 -1
- package/web/.next/static/chunks/app/(dashboard)/automations/page-095be3edd6287d73.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/chat/[id]/page-00acae0653281839.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/chat/page-056975f6c9d5625b.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/chat/runs/[id]/page-899772b15670d3de.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/code/[id]/page-83535784a61e8e36.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/code/page-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/connectors/page-af5150e89038a92b.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/dashboard/{page-7473d1190864cbd4.js → page-241109c80363cab1.js} +1 -1
- package/web/.next/static/chunks/app/(dashboard)/jobs/[id]/page-899772b15670d3de.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/jobs/page-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/layout-2b492fe5d87e7a8c.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/learned-skills/page-d3d0521187a02e31.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/llm-providers/page-1b5aef6848173842.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/logs/page-fd939bac9a74004e.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/mcp/page-11decdc1d91b079d.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/memories/{page-593161bc7c2a25d7.js → page-2dda98de596fe53c.js} +1 -1
- package/web/.next/static/chunks/app/(dashboard)/page-40b43271735f5935.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/scheduled/[id]/page-899772b15670d3de.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/scheduled/page-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/settings/page-420c62b3fbec2901.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/settings/root-context/page-7840e0f90ad51fd3.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/skills/page-497d3e268b76b0eb.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/files/page-d13f877dfd34c6c0.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/page-bf466093877ab1c5.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/spaces/page-1d264307964cfdfe.js +1 -0
- package/web/.next/static/chunks/app/_global-error/page-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/_not-found/page-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/auth/[...all]/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/chat/live/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/chat/stop/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/chat/stream/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/health/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/oauth/[provider]/callback/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/oauth/[provider]/start/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/api/runs/[jobId]/media/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/auth/callback/route-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/app/login/{page-5357f030e5018563.js → page-d260a3be0b6857ef.js} +1 -1
- package/web/.next/static/chunks/app/onboarding/{page-9b6955cdd3033584.js → page-07908ee9b2b6d6b5.js} +2 -2
- package/web/.next/static/chunks/next/dist/client/components/builtin/app-error-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/next/dist/client/components/builtin/forbidden-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-7b6e8b91210cb2ee.js +1 -0
- package/web/.next/static/css/55c009e1dd52d5a7.css +1 -0
- package/web/.next/static/uWxfL1NbU-xFtwNtkF4Wb/_buildManifest.js +1 -0
- package/web/.next/server/chunks/1960.js +0 -1
- package/web/.next/server/chunks/292.js +0 -1
- package/web/.next/server/chunks/3592.js +0 -1
- package/web/.next/server/chunks/409.js +0 -1
- package/web/.next/server/chunks/4357.js +0 -1
- package/web/.next/server/chunks/5547.js +0 -1
- package/web/.next/server/chunks/570.js +0 -1
- package/web/.next/server/chunks/5974.js +0 -1
- package/web/.next/server/chunks/6106.js +0 -1
- package/web/.next/server/chunks/7134.js +0 -947
- package/web/.next/server/chunks/7431.js +0 -1
- package/web/.next/server/chunks/7533.js +0 -1
- package/web/.next/server/chunks/7709.js +0 -1
- package/web/.next/server/chunks/8022.js +0 -1
- package/web/.next/server/chunks/8536.js +0 -3
- package/web/.next/server/chunks/8974.js +0 -1808
- package/web/.next/server/chunks/9200.js +0 -1
- package/web/.next/static/chunks/1054-08930540869affcc.js +0 -1
- package/web/.next/static/chunks/1577-09f4d5183fb172de.js +0 -1
- package/web/.next/static/chunks/1789-b436bca079b82fcc.js +0 -1
- package/web/.next/static/chunks/296-1b50dd61ac3198f4.js +0 -1
- package/web/.next/static/chunks/3159-f25525771781f5aa.js +0 -1
- package/web/.next/static/chunks/3775-3a5a749d63c785a1.js +0 -3
- package/web/.next/static/chunks/390-d6132d3a117487df.js +0 -1
- package/web/.next/static/chunks/4020-9778230f3cc2164a.js +0 -1
- package/web/.next/static/chunks/4771-a0aadf337f224b72.js +0 -1
- package/web/.next/static/chunks/494-ed02d105fa0ac132.js +0 -1
- package/web/.next/static/chunks/5034-fc9997ff33a114aa.js +0 -1
- package/web/.next/static/chunks/7879-67ac5a52d74c20d2.js +0 -1
- package/web/.next/static/chunks/7920-40dc6aa63e653d6b.js +0 -1
- package/web/.next/static/chunks/870-b7151716d04a13c3.js +0 -1
- package/web/.next/static/chunks/8794-2a616d1f9c210117.js +0 -1
- package/web/.next/static/chunks/8861-a108ed6178a56b21.js +0 -1
- package/web/.next/static/chunks/9643-e9c8a744dd98813d.js +0 -1
- package/web/.next/static/chunks/9952-992cabfb077d287c.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/channels/page-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/edit/page-5ca9c1eef4d0f837.js +0 -6
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/telegram/page-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/agents/page-5ffa4a2468c1f95a.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/approvals/page-cd46d5e439a20d3e.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/automations/page-46eeaa40df9e58f8.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/chat/[id]/page-25e095bf0cdd1c40.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/chat/page-e2df1a328e18da7a.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/code/[id]/page-f5f7624cfbb32ee2.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/code/page-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/connectors/page-2ecbfc5836577888.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/jobs/[id]/page-47e177ab46926fd7.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/jobs/page-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/layout-0b429859260736b2.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/learned-skills/page-596d973a31e774db.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/llm-providers/page-ba1968c9430c4dd4.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/logs/page-f74da6f66116c7e7.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/mcp/page-07bdc6780b13cfca.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/page-889d6e89a8f679f8.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/scheduled/[id]/page-47e177ab46926fd7.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/scheduled/page-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/settings/page-1b40e127c38affda.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/settings/root-context/page-6b7e1cffcad40a6a.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/skills/page-3ad87d1a3fbb4f05.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/files/page-4e2d27f80456a1ba.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/page-c81023eaa26c2c7a.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/spaces/page-9dbb35822503481b.js +0 -1
- package/web/.next/static/chunks/app/_global-error/page-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/_not-found/page-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/api/auth/[...all]/route-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/api/chat/stream/route-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/api/health/route-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/api/oauth/[provider]/callback/route-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/api/oauth/[provider]/start/route-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/app/auth/callback/route-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/next/dist/client/components/builtin/app-error-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/next/dist/client/components/builtin/forbidden-523c5d229e8520bf.js +0 -1
- package/web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-523c5d229e8520bf.js +0 -1
- package/web/.next/static/css/099c0b54fc41e5b0.css +0 -1
- package/web/.next/static/x5fvzE6AeZGASlemQTLwd/_buildManifest.js +0 -1
- /package/web/.next/static/{x5fvzE6AeZGASlemQTLwd → uWxfL1NbU-xFtwNtkF4Wb}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=1670,a.ids=[1670],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},2143:(a,b,c)=>{"use strict";c.d(b,{B2:()=>e});let d=[{key:"access",label:"Access",lede:"Who can open this dashboard, and from where.",ids:["sign-in","network","password","worker-secret"]},{key:"safety",label:"Safety",lede:"What your agents may do on their own, and what stops them.",ids:["auto-run-brake","verification","repair-turns","root-agent","mcp-server"]},{key:"workspace",label:"Workspace",lede:"Where your agents work, and the facts of this installation.",ids:["timezone","workspaces","urls","session"]},{key:"install",label:"Install",lede:"Notes every agent reads about this machine.",ids:["install-notes"]}];function e(a){let b=d.find(b=>b.key===a.page);if(b)return b;let c=d.find(b=>b.ids.includes(a.open??""));return c||d.find(a=>"access"===a.key)}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},5848:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("40e2b3ad26610b716852d20df66af356b8630d2e27",g.callServer,void 0,g.findSourceMapURL,"setMcpServerSwitchAction");var i=c(25e3),j=c(51040),k=c(31137),l=c(89386);function m({initial:a}){let[b,c]=(0,e.useState)(a.enabled),[g,n]=(0,e.useState)(!1),[o,p]=(0,e.useTransition)();function q(a){p(async()=>{let b=await h({enabled:a});b.ok?(c(a),f.oR.success(a?"MCP server enabled":"MCP server disabled")):f.oR.error(b.message)})}return(0,d.jsxs)("div",{className:"rounded-2xl border border-rule-2 bg-paper p-6",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h2",{className:"text-medium-15 text-ink",children:"MCP server"}),(0,d.jsx)(j.s,{tone:b?"agent":"ink",children:b?"on":"off"})]}),(0,d.jsxs)("p",{className:"mt-1 text-body-13 leading-[1.5]! text-ink-3",children:["Lets an external MCP client — your terminal, a coding agent — hand work to this workspace's root agent. Jobs arrive on the Runs page with channel ",(0,d.jsx)("code",{children:"mcp"})," ","and the caller's self-chosen label. MCP jobs can never use the configuration tools (create agents, skills, connectors, automations) — that is enforced in the runner, not by this switch."]}),b&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.O,{subtitle:"Connect a client (Claude Code shown):",url:"claude mcp add nodal -- nodal-agents mcp serve"}),(0,d.jsx)("p",{className:"mt-1.5 text-body-12 text-ink-4",children:"Run it on the machine that hosts Nodal."})]}),!a.isOwner&&(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."})]}),(0,d.jsx)(k.A,{checked:b,disabled:o||!a.isOwner,onChange:()=>{b?q(!1):n(!0)}})]}),(0,d.jsx)(i.A,{open:g,title:"Enable the MCP server?",message:"Any process on this machine that knows the database URL will be able to hand work to your root agent — under its approval rules and budgets, and never with the configuration tools. Turning this off later also cuts clients that are already connected.",confirmLabel:"Enable",onConfirm:()=>{n(!1),q(!0)},onCancel:()=>n(!1)})]})}},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10295:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(44928);let e=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11194:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\TimezoneForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\TimezoneForm.tsx","default")},11997:a=>{"use strict";a.exports=require("punycode")},12412:a=>{"use strict";a.exports=require("assert")},15563:(a,b,c)=>{"use strict";c.d(b,{P:()=>e});var d=c(47235);function e({label:a,sub:b,children:c}){return(0,d.jsxs)("div",{className:"flex items-center gap-3.5 px-[18px] py-3.5 border-b border-rule-2 last:border-b-0 text-body-14 leading-[1.4]! text-ink-2",children:[(0,d.jsxs)("span",{className:"flex-1 min-w-0 text-ink-2",children:[a,b&&(0,d.jsx)("span",{className:"block text-xs text-ink-4 mt-0.5",children:b})]}),(0,d.jsx)("span",{className:"inline-flex items-center gap-2 text-body-14 text-ink-2 shrink-0",children:c})]})}},16602:a=>{"use strict";a.exports=import("@whiskeysockets/baileys")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},17393:a=>{"use strict";a.exports=require("mammoth")},18595:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(27557),e=c(40236),f=c(37599);function g({display:a,value:b,href:c}){async function h(){try{await navigator.clipboard.writeText(b),e.oR.success("Path copied")}catch{e.oR.error("Could not copy")}}let i=(0,d.jsx)("span",{title:b,className:"block truncate rounded-md bg-hover px-2 py-1 text-mono-13 text-ink-2",children:a});return(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1",children:c?(0,d.jsx)("a",{href:c,title:b,className:"block min-w-0 hover:opacity-80",children:i}):i}),(0,d.jsxs)("button",{type:"button",onClick:h,title:"Copy full path",className:"inline-flex h-[28px] shrink-0 items-center gap-1.5 rounded-md border border-rule-2 px-2.5 text-medium-12 text-ink-3 transition-colors hover:border-rule hover:text-ink",children:[(0,d.jsx)(f.Q,{size:13})," Copy"]})]})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},20091:(a,b,c)=>{"use strict";c.d(b,{default:()=>r});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("40060deba770cabcaf393126defb02dc9eb6e19f62",g.callServer,void 0,g.findSourceMapURL,"updateAuthSettingsAction");var i=c(25e3),j=c(37241),k=c(24735);function l({name:a,description:b,action:c}){return(0,d.jsxs)("div",{className:"flex items-center gap-3.5 px-4 py-3.5 rounded-[10px] bg-canvas/40 border border-rule-2 mt-2",children:[(0,d.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"block text-medium-14 leading-[1.3]! text-ink",children:a}),(0,d.jsx)("span",{className:"block text-body-13 leading-[1.4]! text-ink-3 mt-0.5",children:b})]}),(0,d.jsx)("span",{className:"flex-shrink-0",children:c})]})}var m=c(98598),n=c(27339),o=c(3079),p=c(37422),q=c(9987);function r({initial:a,formId:b}){let[c,g]=(0,e.useState)(a.configuredMode),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useTransition)(),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(!1);return(0,d.jsxs)("form",{id:b,onSubmit:function(a){a.preventDefault();let b=new FormData(a.currentTarget);v(async()=>{let a=await h({mode:c,googleClientId:s?b.get("googleClientId"):void 0,googleClientSecret:s?b.get("googleClientSecret"):void 0,clearGoogle:!1});a.ok?(f.oR.success("Auth settings saved"),z(a.data.requiresRestart)):f.oR.error(a.message)})},children:[(0,d.jsxs)(n.v,{label:"Auth mode",children:[(0,d.jsx)(j.t,{active:"local-trust"===c,onClick:()=>g("local-trust"),name:"No auth (local-trust)",description:"Single hardcoded user. Recommended for solo loopback installs."}),(0,d.jsx)(j.t,{active:"local-auth"===c,onClick:()=>g("local-auth"),name:"Email + password (local-auth)",description:"Sign-up + login via better-auth. Optional Google OAuth on top."}),"local-auth"===c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.A,{variant:"info",children:"Each user signs in with email + password. Sessions are stored in the local DB and can be revoked from this page."}),(0,d.jsx)(l,{name:"Google OAuth",description:a.googleConfigured?"Configured.":"Optional. Add to allow Google sign-in alongside email + password.",action:(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(o.A,{onClick:()=>t(a=>!a),children:s?"Hide fields":a.googleConfigured?"Rotate":"Add"}),a.googleConfigured&&(0,d.jsx)(o.A,{tone:"danger",onClick:()=>x(!0),disabled:u,children:"Remove"})]})}),s&&(0,d.jsxs)("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-3 px-1",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(q.A,{htmlFor:"google-client-id",children:"Client ID"}),(0,d.jsx)(p.A,{id:"google-client-id",name:"googleClientId",type:"text",placeholder:"xxx.apps.googleusercontent.com",className:"font-mono"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(q.A,{htmlFor:"google-client-secret",children:"Client secret"}),(0,d.jsx)(p.A,{id:"google-client-secret",name:"googleClientSecret",type:"password",placeholder:a.googleConfigured?"•••••••• (overwrite)":"",className:"font-mono"})]}),(0,d.jsxs)("p",{className:"sm:col-span-2 text-body-12 text-ink-4",children:["Use authorized JavaScript origins"," ",(0,d.jsx)("code",{className:"font-mono",children:"http://localhost:3000"})," and redirect URI"," ",(0,d.jsx)("code",{className:"font-mono",children:"http://localhost:3000/api/auth/callback/google"})," ","in the Google Cloud Console."]})]})]}),!a.configPathExists&&(0,d.jsxs)(k.A,{variant:"warn",children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Config file missing"}),"~/.nodalai/config.json wasn't found. Save will fail until you've run"," ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents init"})," at least once."]}),(0,d.jsx)(k.A,{variant:"warn",children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Switching auth mode signs everyone out"}),"Active sessions are invalidated when the auth mode changes. Make sure you can still sign in with the new method before applying."]})}),y&&(0,d.jsxs)(k.A,{variant:"info",title:"Saved. Restart required.",children:["Run ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents down && nodal-agents up"})," to activate the new auth mode."]}),(0,d.jsx)(m.h,{onCancel:function(){g(a.configuredMode),t(!1),z(!1)},pending:u})]}),(0,d.jsx)(i.A,{open:w,title:"Remove Google OAuth credentials?",message:"The clientId and clientSecret will be removed from ~/.nodalai/config.json. Users with active Google sessions will need to sign in again with email + password.",confirmLabel:"Remove",onConfirm:function(){x(!1),v(async()=>{let a=await h({mode:c,clearGoogle:!0});a.ok?f.oR.success("Google credentials removed"):f.oR.error(a.message)})},onCancel:()=>x(!1)})]})}},21213:a=>{"use strict";a.exports=import("apify-client")},21463:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\McpServerSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\McpServerSection.tsx","default")},21820:a=>{"use strict";a.exports=require("os")},23658:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\AutoRunPauseSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\AutoRunPauseSection.tsx","default")},24735:(a,b,c)=>{"use strict";c.d(b,{A:()=>j});var d=c(27557),e=c(47728),f=c(84249),g=c(34252);let h={info:{bg:"bg-run-bg",icon:"text-conn-vivid",iconColor:"text-conn-vivid"},warn:{bg:"bg-warn-bg",icon:"text-skill-vivid",iconColor:"text-skill-vivid"},tip:{bg:"bg-paper border border-rule-2",icon:"text-ink-3",iconColor:"text-ink-3"}},i={info:e.R,warn:f.N,tip:g.g};function j({variant:a,title:b,children:c,className:e=""}){let f=h[a],g=i[a];return(0,d.jsxs)("div",{className:`flex items-start gap-2.5 rounded-[9px] px-3.5 py-2.5 text-body-13 leading-[1.5]! text-ink-2 ${f.bg} ${e}`,children:[(0,d.jsx)(g,{size:16,weight:"regular",className:`mt-0.5 shrink-0 ${f.iconColor}`}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[b&&(0,d.jsx)("b",{className:"block font-medium text-ink",children:b}),c]})]})}},25454:(a,b,c)=>{Promise.resolve().then(c.bind(c,23658)),Promise.resolve().then(c.bind(c,64983)),Promise.resolve().then(c.bind(c,21463)),Promise.resolve().then(c.bind(c,89901)),Promise.resolve().then(c.bind(c,25724)),Promise.resolve().then(c.bind(c,84647)),Promise.resolve().then(c.bind(c,45501)),Promise.resolve().then(c.bind(c,33537)),Promise.resolve().then(c.bind(c,59978)),Promise.resolve().then(c.bind(c,11194)),Promise.resolve().then(c.bind(c,68819)),Promise.resolve().then(c.bind(c,46110)),Promise.resolve().then(c.bind(c,86585)),Promise.resolve().then(c.bind(c,57277)),Promise.resolve().then(c.bind(c,41060)),Promise.resolve().then(c.bind(c,90356)),Promise.resolve().then(c.t.bind(c,8570,23))},25724:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\PasswordForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\PasswordForm.tsx","default")},26040:a=>{"use strict";a.exports=require("pdfjs-dist")},26071:(a,b,c)=>{"use strict";c.d(b,{L:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="EyeSlashIcon";let h=g},27014:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(27557),e=c(44928),f=c(40236),g=c(27339),h=c(98598),i=c(37422);function j({formId:a}){let[b,c]=(0,e.useState)(""),[k,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(!1);function q(){c(""),l(""),n("")}async function r(a){if(a.preventDefault(),k!==m)return void f.oR.error("New passwords do not match.");if(k.length<8)return void f.oR.error("New password must be at least 8 characters.");p(!0);try{let a=await fetch("/api/auth/change-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:b,newPassword:k,revokeOtherSessions:!0})});if(!a.ok){let b=await a.json().catch(()=>null);f.oR.error(400===a.status?b?.message??"Current password is incorrect.":b?.message??"Could not change the password.");return}q(),f.oR.success("Password changed. Other signed-in devices were signed out.")}catch{f.oR.error("Network error. Please try again.")}finally{p(!1)}}return(0,d.jsx)("form",{id:a,onSubmit:r,children:(0,d.jsxs)(g.v,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(i.A,{type:"password",value:b,onChange:a=>c(a.target.value),placeholder:"Current password",autoComplete:"current-password",required:!0}),(0,d.jsx)(i.A,{type:"password",value:k,onChange:a=>l(a.target.value),placeholder:"New password (min. 8 characters)",autoComplete:"new-password",required:!0}),(0,d.jsx)(i.A,{type:"password",value:m,onChange:a=>n(a.target.value),placeholder:"Repeat new password",autoComplete:"new-password",required:!0})]}),(0,d.jsx)(h.h,{onCancel:q,pending:o,saveLabel:"Change password"})]})})}},27339:(a,b,c)=>{"use strict";c.d(b,{v:()=>e});var d=c(27557);function e({label:a,children:b}){return(0,d.jsxs)("div",{className:"mt-3.5 bg-paper border border-rule-2 rounded-[14px] p-5",children:[a&&(0,d.jsx)("div",{className:"text-body-14 leading-none! text-ink-3 mb-2.5",children:a}),b]})}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31137:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(27557);let e={sm:"h-5 w-9",md:"h-[22px] w-[38px]"},f={sm:"h-3.5 w-3.5",md:"h-4 w-4"};function g({checked:a,onChange:b,disabled:c,size:h="md",ariaLabel:i,ariaLabelledBy:j,ariaDescribedBy:k,readOnly:l=!1}){let m=`relative inline-flex shrink-0 items-center rounded-full ${e[h]} ${a?"bg-ok":"bg-ink-4"}`,n=(0,d.jsx)("span",{className:`pointer-events-none inline-block rounded-full bg-paper ${l?"":"transition-transform duration-200"} ${f[h]} ${a?"translate-x-[19px]":"translate-x-[3px]"}`});return l?(0,d.jsx)("span",{role:"img","aria-label":i??(a?"On":"Off"),"data-state":a?"on":"off",className:`${m} ${c?"opacity-50":""}`,children:n}):(0,d.jsx)("button",{type:"button",role:"switch","aria-checked":a,"aria-label":i,"aria-labelledby":j,"aria-describedby":k,disabled:c,onClick:b,className:`${m} cursor-pointer transition-colors duration-200 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-conn-vivid/50 disabled:cursor-not-allowed disabled:opacity-50`,children:n})}},31421:a=>{"use strict";a.exports=require("node:child_process")},31535:a=>{"use strict";a.exports=require("node:path/posix")},32467:a=>{"use strict";a.exports=require("node:http2")},32519:a=>{"use strict";a.exports=import("@tavily/core")},33089:(a,b,c)=>{"use strict";c.d(b,{t:()=>e});var d=c(48601);let e=(0,d.createServerReference)("40eb98d142c5916308285052fd182f40fb53a577a4",d.callServer,void 0,d.findSourceMapURL,"setWorkspaceTimezoneAction")},33537:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\SecurityForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\SecurityForm.tsx","default")},33873:a=>{"use strict";a.exports=require("path")},33876:(a,b,c)=>{"use strict";c.d(b,{default:()=>v});var d=c(27557),e=c(44928),f=c(81023),g=c(40236),h=c(48601);let i=(0,h.createServerReference)("00920ac177f0bb48e87febc3d332553bd5dae71ff8",h.callServer,void 0,h.findSourceMapURL,"listWorkspacesAction");var j=c(63394);let k=(0,h.createServerReference)("4067cdcd01af6f350a208794a19363fcf0afee1b11",h.callServer,void 0,h.findSourceMapURL,"renameWorkspaceAction"),l=(0,h.createServerReference)("408011541bdc74610a558389ee81f105e3c66c2b98",h.callServer,void 0,h.findSourceMapURL,"deleteWorkspaceAction");var m=c(48048);h.callServer,h.findSourceMapURL;var n=c(25e3),o=c(27339),p=c(98598),q=c(86572),r=c(96269),s=c(775),t=c(3079),u=c(37422);function v({initial:a,formId:b}){let c=(0,f.useRouter)(),[h,w]=(0,e.useState)(a),[x,y]=(0,e.useState)(""),[z,A]=(0,e.useState)(r.S[0]),[B,C]=(0,e.useTransition)(),[D,E]=(0,e.useState)(null),[F,G]=(0,e.useState)(""),[H,I]=(0,e.useState)(r.S[0]),[J,K]=(0,e.useTransition)(),[L,M]=(0,e.useState)(null),[N,O]=(0,e.useTransition)(),[P,Q]=(0,e.useState)(null),[R,S]=(0,e.useState)(null);async function T(){let a=await i();a.ok&&w(a.data)}function U(){E(null),G("")}async function V(a){let b=await (0,m.W)({id:a});b.ok?(await T(),c.refresh()):g.oR.error(b.message)}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"mt-3.5 rounded-xl border border-rule-2 bg-paper overflow-hidden",children:0===h.length?(0,d.jsx)("p",{className:"px-[18px] py-4 text-body-14 text-ink-4",children:"No workspaces found."}):h.map(a=>{let b,e=D===a.id;return(0,d.jsxs)("div",{className:"flex items-center gap-3 px-[18px] py-3.5 border-b border-rule-2 last:border-b-0",children:[(0,d.jsx)("span",{className:"flex h-[28px] w-[28px] shrink-0 items-center justify-center rounded-md border border-rule-2 bg-canvas font-mono text-legacy-14 leading-none!",children:a.icon??a.name.slice(0,1).toUpperCase()}),(0,d.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[e?(0,d.jsxs)("form",{onSubmit:b=>{var d;let e;return d=a.id,b.preventDefault(),void((e=F.trim())&&K(async()=>{let a=await k({id:d,name:e,icon:H});a.ok?(g.oR.success("Workspace updated"),E(null),await T(),c.refresh()):g.oR.error(a.message)}))},className:"flex flex-col gap-2",children:[(0,d.jsx)(r.A,{value:H,onChange:I,disabled:J}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(u.A,{autoFocus:!0,type:"text",value:F,onChange:a=>G(a.target.value),maxLength:60,disabled:J,containerClassName:"w-44"}),(0,d.jsx)(s.A,{variant:"ink",size:"sm",type:"submit",disabled:!F.trim(),children:"Save"}),(0,d.jsx)(t.A,{type:"button",onClick:U,children:"Cancel"})]})]}):(0,d.jsx)("span",{className:"text-medium-14 text-ink leading-none!",children:a.name}),(0,d.jsx)("span",{className:"text-mono-11 text-ink-4 leading-none! mt-0.5",children:a.role}),(0,d.jsx)("span",{className:"text-mono-11 text-ink-4 leading-none! mt-1","data-testid":`workspace-footprint-${a.id}`,children:null!==R?R:null===P?"Measuring shared folder…":void 0===(b=P.find(b=>b.workspaceId===a.id))?"Shared folder not measured":`${function(a){if(null===a.measure)return"absent"===a.unmeasured?"No shared folder yet":"Size unreadable";let{sizeLabel:b,files:c,capped:d}=a.measure,e=1===c?"1 file":`${c} files`;return d?`At least ${b} in ${e}`:`${b} in ${e}`}(b)} \xb7 ${function(a){let b=a.lastSnapshot;if(null===b)return"No safety snapshot yet";if(null===b.ms)return"Last snapshot not timed";let c=b.ms<1e3?`${b.ms} ms`:`${(b.ms/1e3).toFixed(1)} s`;return`Last snapshot took ${c}`}(b)}`})]}),(0,d.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[a.active&&(0,d.jsx)(q.E,{variant:"ok",children:"ACTIVE"}),!a.active&&(0,d.jsx)(t.A,{onClick:()=>V(a.id),children:"Switch"}),!e&&(0,d.jsx)(t.A,{onClick:()=>{E(a.id),G(a.name),I(a.icon??r.S[0])},children:"Rename"}),"owner"===a.role&&!a.active&&(0,d.jsx)(t.A,{tone:"danger",onClick:()=>M(a),disabled:N,children:"Delete"})]})]},a.id)})}),(0,d.jsx)("form",{id:b,onSubmit:function(a){a.preventDefault();let b=x.trim();b&&C(async()=>{let a=await (0,j.O)({name:b,icon:z});a.ok?(g.oR.success(`Workspace "${b}" created`),y(""),A(r.S[0]),await T(),c.refresh()):g.oR.error(a.message)})},children:(0,d.jsxs)(o.v,{label:"Create workspace",children:[(0,d.jsx)("div",{className:"mb-2",children:(0,d.jsx)(r.A,{value:z,onChange:A,disabled:B})}),(0,d.jsx)("div",{className:"flex gap-2 items-center",children:(0,d.jsx)(u.A,{type:"text",value:x,onChange:a=>y(a.target.value),placeholder:"Workspace name",maxLength:60,disabled:B,containerClassName:"min-w-0 flex-1"})}),(0,d.jsx)(p.h,{onCancel:()=>y(""),pending:B,saveLabel:"Create"})]})}),(0,d.jsx)(n.A,{open:null!==L,title:"Delete workspace?",message:L?`This will permanently delete "${L.name}" and all its data (agents, jobs, credentials). This cannot be undone.`:"",confirmLabel:"Delete",destructive:!0,onConfirm:function(){if(!L)return;let{id:a,name:b}=L;O(async()=>{M(null);let d=await l({id:a});d.ok?(g.oR.success(`Workspace "${b}" deleted`),await T(),c.refresh()):g.oR.error(d.message)})},onCancel:()=>M(null)})]})}},34252:(a,b,c)=>{"use strict";c.d(b,{g:()=>h});var d=c(44928),e=c(46895),f=c(50626);let g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f.A}));g.displayName="LightbulbIcon";let h=g},34549:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("404c01a52bfef7c9939dcb90c4e0502f116594867d",g.callServer,void 0,g.findSourceMapURL,"setAutoRunPauseAction");var i=c(25e3),j=c(24735),k=c(51040),l=c(31137);function m({initial:a}){let[b,c]=(0,e.useState)(a.autoRunPaused),[g,n]=(0,e.useState)(!1),[o,p]=(0,e.useTransition)();function q(a){c(a),p(async()=>{let b=await h({paused:a});b.ok?f.oR.success(a?"Auto-run paused. Every command, script and coding task asks for approval again.":"Auto-run resumed. Per-agent Yolo toggles apply again."):(f.oR.error(b.message),c(!a))})}let r=!a.isOwner||o;return(0,d.jsxs)("div",{className:"flex items-start gap-4 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:"Pause all auto-run"}),(0,d.jsx)(k.s,{tone:"err",children:"owner only"})]}),(0,d.jsx)("p",{className:"mt-1 text-body-13 leading-[1.4]! text-ink-3",children:"The emergency brake. When on, every shell command, skill script and coding CLI task in this workspace asks for approval again — per-agent Yolo toggles are put to sleep, not deleted. Release the brake and they apply again as before."}),!a.isOwner&&(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."}),b&&a.isOwner&&(0,d.jsx)(j.A,{variant:"warn",children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Auto-run is paused workspace-wide"}),"Nothing runs without your approval right now, whatever the per-agent toggles say. Release the brake to re-arm them."]})})]}),(0,d.jsx)("div",{className:"mt-0.5",children:(0,d.jsx)(l.A,{checked:b,onChange:function(){b?n(!0):q(!0)},disabled:r})}),(0,d.jsx)(i.A,{open:g,title:"Release the brake?",message:"Per-agent Yolo rules re-arm exactly as they were: agents whose toggle is on will run shell commands and coding tasks again without approval.",confirmLabel:"Release",destructive:!0,onConfirm:()=>{n(!1),q(!1)},onCancel:()=>n(!1)})]})}},34589:a=>{"use strict";a.exports=require("node:assert")},34631:a=>{"use strict";a.exports=require("tls")},35184:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>D,dynamic:()=>F});var e=c(47235),f=c(57191),g=c.n(f),h=c(12406),i=c(54785),j=c(33537),k=c(25724),l=c(89901),m=c(46110),n=c(45501),o=c(23658),p=c(68819),q=c(84647),r=c(21463),s=c(64983),t=c(11194),u=c(59978),v=c(2143),w=c(59939),x=c(80241),y=c(58373),z=c(15563),A=c(35365),B=c(57277),C=a([h]);h=(C.then?(await C)():C)[0];let F="force-dynamic",G=new Set(["sign-in","network","password","worker-secret","auto-run-brake","verification","root-agent","mcp-server","timezone","install-notes","workspaces","urls","session"]);async function D({searchParams:a}){let b=await a,[c,d,f,C,F,H,I,J,K,L,M,N]=await Promise.all([(0,h.cjC)(),(0,h.oA4)(),(0,h.M3i)(),(0,h.zh4)(),(0,h.JD9)(),(0,h.$zY)(),(0,h.j4T)(),(0,h.UK3)(),(0,h.A3_)(),(0,h.wdR)(),(0,h.dSg)(),(0,h.jjn)()]),O=C.ok?C.data:[];if(!c.ok)return(0,e.jsx)(x.A,{title:"Settings",children:(0,e.jsx)("div",{className:"rounded-2xl border border-warn/40 bg-warn-bg p-5 text-sm text-warn",children:c.message})});let P=c.data,Q=F.ok?F.data.grants:i.zw,R=(0,w.U)({authMode:P.authMode,workerSecretConfigured:P.workerSecretConfigured,security:d.ok?d.data:null,network:f.ok?f.data:null,autoRunPause:I.ok?I.data:null,verification:J.ok?J.data:null,proofRepair:K.ok?K.data:null,mcpServer:L.ok?L.data:null,timezone:N.ok?N.data:null,installNotes:M.ok?M.data:null,workspaces:O,agents:H.ok?H.data:[],rootAgentId:F.ok?F.data.rootAgentId:null,rootAutonomy:Q.autonomy}),S={"sign-in":d.ok?(0,e.jsx)(j.default,{initial:d.data}):null,network:f.ok?(0,e.jsx)(l.default,{initial:f.data}):null,password:"local-auth"===P.authMode?(0,e.jsx)(k.default,{}):null,"worker-secret":(0,e.jsx)(E,{configured:P.workerSecretConfigured}),"auto-run-brake":I.ok?(0,e.jsx)(o.default,{initial:I.data}):null,verification:J.ok?(0,e.jsx)(p.default,{initial:J.data}):null,"repair-turns":K.ok?(0,e.jsx)(q.default,{initial:K.data}):null,"root-agent":(0,e.jsx)(n.default,{agents:H.ok?H.data:[],initialRootAgentId:F.ok?F.data.rootAgentId:null,initialGrants:Q}),"mcp-server":L.ok?(0,e.jsx)(r.default,{initial:L.data}):null,timezone:N.ok?(0,e.jsx)(t.default,{initial:N.data.timezone,isExplicit:N.data.isExplicit}):null,"install-notes":M.ok?(0,e.jsx)(s.default,{initial:M.data}):null,workspaces:(0,e.jsx)(m.default,{initial:O}),urls:(0,e.jsxs)(y.n,{children:[(0,e.jsx)(z.P,{label:"App URL",children:(0,e.jsx)(A.A,{children:P.appUrl})}),(0,e.jsx)(z.P,{label:"Runner URL",children:(0,e.jsx)(A.A,{children:P.runnerUrl})}),(0,e.jsx)(z.P,{label:"Webhooks",sub:"Each automation trigger has its own webhook URL.",children:(0,e.jsx)(g(),{href:"/automations",className:"text-xs text-ink-3 transition-colors hover:text-ink-2",children:"Manage webhooks in Automations"})}),(0,e.jsx)(z.P,{label:"Shared workspace",sub:"The folder your agents read and write together. Open it to grab generated files.",children:(0,e.jsx)(B.default,{display:P.sharedWorkspacePathShort,value:P.sharedWorkspacePath,href:P.sharedWorkspaceUrl})})]}),session:(0,e.jsxs)(y.n,{children:[(0,e.jsx)(z.P,{label:"User ID",sub:"Your account identifier in the local DB.",children:(0,e.jsx)(A.A,{children:P.user.userId})}),(0,e.jsx)(z.P,{label:"Workspace ID",sub:"Entity identifier scoped to this install.",children:(0,e.jsx)(A.A,{children:P.user.entityId})})]})},T=(0,v.B2)(b),U=new Set(T.ids),V=R.filter(a=>G.has(a.id)&&U.has(a.id));return(0,e.jsx)(x.A,{title:T.label,subtitle:T.lede,children:(0,e.jsx)(u.default,{rows:V,panels:S})})}function E({configured:a}){return(0,e.jsxs)(y.n,{children:[(0,e.jsx)(z.P,{label:"Status",children:a?(0,e.jsx)("span",{className:"text-medium-14 text-ink-2",children:"Set at install"}):(0,e.jsx)("span",{className:"text-medium-14 text-warn",children:"Missing, runner calls will 403"})}),(0,e.jsx)(z.P,{label:"Where it lives",sub:"Set by the installer in the environment of the web app and the runner. Restart the stack after changing it.",children:(0,e.jsx)(A.A,{children:"WORKER_SECRET"})})]})}d()}catch(a){d(a)}})},35365:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(47235);function e({children:a,className:b=""}){return(0,d.jsx)("code",{className:`inline-flex items-center rounded-[5px] bg-hover px-1.5 py-1 text-mono-12 leading-none! tracking-[0.02em] text-ink-2 ${b}`,children:a})}},35542:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(27557),e=c(55703),f=c(44928);function g({placeholder:a="Search agents, skills, runs…",keyboardShortcut:b=!0,onSubmit:c,className:h=""}){let i=(0,f.useRef)(null);return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),c?.(i.current?.value??"")},className:`flex h-[34px] min-w-[280px] items-center gap-2 rounded-md border border-rule-2 bg-paper px-3 text-body-13 text-ink-4 ${h}`,children:[(0,d.jsx)(e.e,{size:13,className:"shrink-0"}),(0,d.jsx)("input",{ref:i,type:"search",placeholder:a,className:"h-full flex-1 border-0 bg-transparent text-body-14 leading-none! text-ink outline-none placeholder:text-ink-4"}),(0,d.jsx)("span",{className:"rounded-[5px] border border-rule bg-black/5 px-1.5 py-[1px] text-mono-12 leading-none! text-ink-4 dark:bg-white/[0.06]",children:"/"})]})}},36206:(a,b,c)=>{"use strict";c.d(b,{default:()=>C});var d=c(27557),e=c(27039),f=c(44928),g=c(14778);let h=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M144,204a16,16,0,1,1-16-16A16,16,0,0,1,144,204ZM239.61,83.91a176,176,0,0,0-223.22,0,12,12,0,1,0,15.23,18.55,152,152,0,0,1,192.76,0,12,12,0,1,0,15.23-18.55Zm-32.16,35.73a128,128,0,0,0-158.9,0,12,12,0,0,0,14.9,18.81,104,104,0,0,1,129.1,0,12,12,0,0,0,14.9-18.81ZM175.07,155.3a80.05,80.05,0,0,0-94.14,0,12,12,0,0,0,14.14,19.4,56,56,0,0,1,65.86,0,12,12,0,1,0,14.14-19.4Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M238.2,87.69l-104,125.43a8,8,0,0,1-12.3,0L17.8,87.69a7.79,7.79,0,0,1,1.31-11.21,180.75,180.75,0,0,1,217.78,0A7.79,7.79,0,0,1,238.2,87.69Z",opacity:"0.2"}),f.createElement("path",{d:"M247.89,80.91a15.93,15.93,0,0,0-6.17-10.81A186.67,186.67,0,0,0,128,32,186.67,186.67,0,0,0,14.28,70.1,15.93,15.93,0,0,0,8.11,80.91,15.65,15.65,0,0,0,11.65,92.8l104,125.43A15.93,15.93,0,0,0,128,224h0a15.93,15.93,0,0,0,12.31-5.77l104-125.43A15.65,15.65,0,0,0,247.89,80.91ZM128,208,24.09,82.74A170.76,170.76,0,0,1,128,48,170.76,170.76,0,0,1,231.91,82.74Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M244.35,92.8l-104,125.43A15.93,15.93,0,0,1,128,224h0a15.93,15.93,0,0,1-12.31-5.77L11.65,92.8A15.65,15.65,0,0,1,8.11,80.91,15.93,15.93,0,0,1,14.28,70.1,186.67,186.67,0,0,1,128,32,186.67,186.67,0,0,1,241.72,70.1a15.93,15.93,0,0,1,6.17,10.81A15.65,15.65,0,0,1,244.35,92.8Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M138,204a10,10,0,1,1-10-10A10,10,0,0,1,138,204ZM235.81,88.55a170,170,0,0,0-215.62,0,6,6,0,1,0,7.62,9.27,158,158,0,0,1,200.38,0,6,6,0,1,0,7.62-9.27Zm-32.08,35.79a122,122,0,0,0-151.46,0,6,6,0,0,0,7.46,9.41,110,110,0,0,1,136.54,0A6,6,0,0,0,200,135a6,6,0,0,0,3.73-10.7Zm-32.2,35.81a74,74,0,0,0-87.06,0,6,6,0,0,0,7.06,9.7,62,62,0,0,1,72.94,0,6,6,0,0,0,8.38-1.32A6,6,0,0,0,171.53,160.15Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M140,204a12,12,0,1,1-12-12A12,12,0,0,1,140,204ZM237.08,87A172,172,0,0,0,18.92,87,8,8,0,0,0,29.08,99.37a156,156,0,0,1,197.84,0A8,8,0,0,0,237.08,87ZM205,122.77a124,124,0,0,0-153.94,0A8,8,0,0,0,61,135.31a108,108,0,0,1,134.06,0,8,8,0,0,0,11.24-1.3A8,8,0,0,0,205,122.77Zm-32.26,35.76a76.05,76.05,0,0,0-89.42,0,8,8,0,0,0,9.42,12.94,60,60,0,0,1,70.58,0,8,8,0,1,0,9.42-12.94Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,204a8,8,0,1,1-8-8A8,8,0,0,1,136,204ZM234.54,90.1a168,168,0,0,0-213.08,0,4,4,0,1,0,5.08,6.18,160,160,0,0,1,202.92,0,4,4,0,0,0,5.08-6.18Zm-32.06,35.81a120,120,0,0,0-149,0,4,4,0,0,0,5,6.27,112,112,0,0,1,139,0,4,4,0,0,0,5-6.27Zm-32.13,35.86a72,72,0,0,0-84.7,0,4,4,0,1,0,4.7,6.46,64.07,64.07,0,0,1,75.3,0,4,4,0,0,0,5.58-.87A4,4,0,0,0,170.35,161.77Z"}))]]),i=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:h}));i.displayName="WifiHighIcon";var j=c(26071),k=c(15218),l=c(81806);let m=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M152.41,88.56l-89.6,88a12,12,0,0,1-16.82,0L7.59,138.85a12,12,0,0,1,16.82-17.13l30,29.46,81.19-79.74a12,12,0,0,1,16.82,17.12Zm96.15-17a12,12,0,0,0-17-.15L150.4,151.18l-7.88-7.74a12,12,0,0,0-16.82,17.12l16.29,16a12,12,0,0,0,16.82,0l89.6-88A12,12,0,0,0,248.56,71.59Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"}),f.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM72,168a8,8,0,0,1-5.66-2.34l-24-24a8,8,0,0,1,11.32-11.32L72,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-64,64A8,8,0,0,1,72,168Zm141.66-66.34-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L144,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M148.2,84.28l-89.6,88a6,6,0,0,1-8.4,0L11.8,134.57A6,6,0,1,1,20.2,126l34.2,33.58,85.4-83.87a6,6,0,1,1,8.4,8.56Zm96.08-8.48a6,6,0,0,0-8.48-.08l-85.4,83.87-20.23-19.87a6,6,0,1,0-8.41,8.56l24.44,24a6,6,0,0,0,8.4,0l89.6-88A6,6,0,0,0,244.28,75.8Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M146.8,82.85l-89.6,88a4,4,0,0,1-5.6,0L13.2,133.14a4,4,0,0,1,5.6-5.71l35.6,35,86.8-85.24a4,4,0,0,1,5.6,5.7Zm96-5.65a4,4,0,0,0-5.65,0l-86.8,85.24-21.63-21.24a4,4,0,1,0-5.61,5.7l24.44,24a4,4,0,0,0,5.6,0l89.6-88A4,4,0,0,0,242.85,77.2Z"}))]]),n=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:m}));n.displayName="ChecksIcon";var o=c(98662),p=c(3856),q=c(94443);let r=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),s=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:r}));s.displayName="ClockIcon";var t=c(56905);let u=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"}))]]),v=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:u}));v.displayName="BrowserIcon";let w=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M87.5,151.52l64-64a12,12,0,0,1,17,17l-64,64a12,12,0,0,1-17-17Zm131-114a60.08,60.08,0,0,0-84.87,0L103.51,67.61a12,12,0,0,0,17,17l30.07-30.06a36,36,0,0,1,50.93,50.92L171.4,135.52a12,12,0,1,0,17,17l30.08-30.06A60.09,60.09,0,0,0,218.45,37.55ZM135.52,171.4l-30.07,30.08a36,36,0,0,1-50.92-50.93l30.06-30.07a12,12,0,0,0-17-17L37.55,133.58a60,60,0,0,0,84.88,84.87l30.06-30.07a12,12,0,0,0-17-17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M209.94,113.94l-96,96a48,48,0,0,1-67.88-67.88l96-96a48,48,0,0,1,67.88,67.88Z",opacity:"0.2"}),f.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM144.56,173.66l-21.45,21.45a44,44,0,0,1-62.22-62.22l21.45-21.46a8,8,0,0,1,11.32,11.31L72.2,144.2a28,28,0,0,0,39.6,39.6l21.45-21.46a8,8,0,0,1,11.31,11.32Zm-34.9-16a8,8,0,0,1-11.32-11.32l48-48a8,8,0,0,1,11.32,11.32Zm85.45-34.55-21.45,21.45a8,8,0,0,1-11.32-11.31L183.8,111.8a28,28,0,0,0-39.6-39.6L122.74,93.66a8,8,0,0,1-11.31-11.32l21.46-21.45a44,44,0,0,1,62.22,62.22Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.25,91.75a6,6,0,0,1,0,8.49l-64,64a6,6,0,0,1-8.49-8.48l64-64A6,6,0,0,1,164.25,91.75ZM214.2,41.8a54.07,54.07,0,0,0-76.38,0L107.75,71.85a6,6,0,0,0,8.49,8.49l30.07-30.06a42,42,0,0,1,59.41,59.41l-30.08,30.07a6,6,0,1,0,8.49,8.49l30.07-30.07A54,54,0,0,0,214.2,41.8ZM139.76,175.64l-30.07,30.08a42,42,0,0,1-59.41-59.41l30.06-30.07a6,6,0,0,0-8.49-8.49l-30,30.07a54,54,0,0,0,76.38,76.39l30.07-30.08a6,6,0,0,0-8.49-8.49Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.84,93.16a4,4,0,0,1,0,5.66l-64,64a4,4,0,0,1-5.66-5.66l64-64A4,4,0,0,1,162.84,93.16Zm49.95-49.95a52.07,52.07,0,0,0-73.56,0L109.17,73.27a4,4,0,0,0,5.65,5.66l30.07-30.06a44,44,0,0,1,62.24,62.24l-30.07,30.06a4,4,0,0,0,5.66,5.66l30.07-30.06A52.07,52.07,0,0,0,212.79,43.21ZM141.17,177.06l-30.06,30.07a44,44,0,0,1-62.24-62.24l30.06-30.06a4,4,0,0,0-5.66-5.66L43.21,139.23a52,52,0,0,0,73.56,73.56l30.06-30.07a4,4,0,1,0-5.66-5.66Z"}))]]),x=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:w}));x.displayName="LinkSimpleIcon";let y=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M148,108a12,12,0,0,1,12-12h28a12,12,0,0,1,0,24H160A12,12,0,0,1,148,108Zm40,28H168a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24Zm48-80V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212ZM58.28,159.37A43.82,43.82,0,0,1,71.53,142a36,36,0,1,1,56.94,0,43.84,43.84,0,0,1,13.26,17.37,12,12,0,0,1-22.15,9.26C116.48,161.19,108.42,156,100,156s-16.47,5.2-19.59,12.63a12,12,0,1,1-22.13-9.26ZM88,120a12,12,0,1,0,12-12A12,12,0,0,0,88,120Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V56A8,8,0,0,0,216,48ZM96,144a24,24,0,1,1,24-24A24,24,0,0,1,96,144Z",opacity:"0.2"}),f.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M112,120a16,16,0,1,1-16-16A16,16,0,0,1,112,120ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM135.75,166a39.76,39.76,0,0,0-17.19-23.34,32,32,0,1,0-45.12,0A39.84,39.84,0,0,0,56.25,166a8,8,0,0,0,15.5,4c2.64-10.25,13.06-18,24.25-18s21.62,7.73,24.25,18a8,8,0,1,0,15.5-4ZM200,144a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,144Zm0-32a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,112Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M198,112a6,6,0,0,1-6,6H152a6,6,0,0,1,0-12h40A6,6,0,0,1,198,112Zm-6,26H152a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm38-82V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2ZM133.81,166.51a6,6,0,0,1-11.62,3C119.34,158.38,108.08,150,96,150s-23.33,8.38-26.19,19.5a6,6,0,0,1-11.62-3A38,38,0,0,1,76.78,143a30,30,0,1,1,38.45,0A38,38,0,0,1,133.81,166.51ZM96,138a18,18,0,1,0-18-18A18,18,0,0,0,96,138Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M196,112a4,4,0,0,1-4,4H152a4,4,0,0,1,0-8h40A4,4,0,0,1,196,112Zm-4,28H152a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8Zm36-84V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4ZM131.87,167a4,4,0,1,1-7.74,2C121.06,157,109,148,96,148s-25,9-28.13,21A4,4,0,0,1,64,172a3.87,3.87,0,0,1-1-.13A4,4,0,0,1,60.13,167a36.28,36.28,0,0,1,20.43-23.66,28,28,0,1,1,30.88,0A36.2,36.2,0,0,1,131.87,167ZM96,140a20,20,0,1,0-20-20A20,20,0,0,0,96,140Z"}))]]),z=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:y}));z.displayName="IdentificationCardIcon";var A=c(86572);let B={"sign-in":e.U,network:i,password:j.L,"worker-secret":k.o,"auto-run-brake":l.v,verification:n,"repair-turns":o.P,"root-agent":p.n,"mcp-server":q.X,timezone:s,"install-notes":t.c,workspaces:v,urls:x,session:z};function C({rows:a,panels:b}){return(0,d.jsx)("div",{className:"flex flex-col gap-8","data-testid":"settings-sections",children:a.map(a=>{let c=B[a.id],e=b[a.id]??null;return(0,d.jsxs)("section",{id:a.id,"data-testid":`setting-section-${a.id}`,className:"flex flex-col gap-4",children:[(0,d.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-ink-3",children:(0,d.jsx)(c,{size:16})}),(0,d.jsx)("h2",{className:"text-title-16 text-ink",children:a.name}),a.tag&&(0,d.jsx)(A.E,{variant:a.tag.variant,children:a.tag.label})]}),(0,d.jsx)("p",{className:"text-body-13 text-ink-3",children:a.lede})]}),null===e?(0,d.jsxs)("p",{className:"text-body-13 text-warn","data-testid":`setting-unread-${a.id}`,children:[a.value,". Reload the page, and check the runner is up."]}):(0,d.jsx)("div",{className:"rounded-lg border border-rule-2 bg-paper p-4",children:e})]},a.id)})})}},37067:a=>{"use strict";a.exports=require("node:http")},37241:(a,b,c)=>{"use strict";c.d(b,{t:()=>e});var d=c(27557);function e({active:a,onClick:b,name:c,description:f,children:g,testId:h}){return(0,d.jsxs)("div",{role:"radio","aria-checked":a,"data-testid":h,tabIndex:0,onClick:b,onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),b())},className:["flex items-start gap-3.5 px-4 py-3.5 rounded-[10px] border cursor-pointer mb-2 transition-[border-color,background-color] duration-[120ms]",a?"border-conn-vivid bg-conn-vivid/[0.06]":"border-rule-2 bg-paper hover:border-rule"].join(" "),children:[(0,d.jsx)("span",{className:["mt-0.5 flex-shrink-0 w-[18px] h-[18px] rounded-full border-[1.6px] flex items-center justify-center",a?"border-conn-vivid":"border-rule"].join(" "),children:a&&(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-conn-vivid"})}),(0,d.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"block text-medium-14 leading-[1.3]! text-ink",children:c}),(0,d.jsx)("span",{className:"block text-body-13 leading-[1.4]! text-ink-3 mt-0.5",children:f}),g]})]})}},37540:a=>{"use strict";a.exports=require("node:console")},38496:a=>{"use strict";a.exports=require("@notionhq/client")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41060:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\SearchBox.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\SearchBox.tsx","default")},41115:(a,b,c)=>{"use strict";c.d(b,{default:()=>o});var d=c(27557),e=c(44928),f=c(81023),g=c(40236),h=c(99529),i=c(54029),j=c(40409),k=c(27339),l=c(98598),m=c(37241),n=c(44414);function o({agents:a,initialRootAgentId:b,initialGrants:c,formId:p}){let q=(0,f.useRouter)(),[r,s]=(0,e.useTransition)(),t=a.find(a=>a.id===b)??null,[u,v]=(0,e.useState)(c??j.zw);return(0,d.jsx)(d.Fragment,{children:null===t?(0,d.jsx)("div",{className:"mt-3.5 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:(0,d.jsxs)("p",{className:"text-body-14 text-ink-3",children:["No ROOT agent yet."," ",(0,d.jsx)("a",{href:"/agents",className:"font-medium text-ink underline decoration-rule underline-offset-[3px] hover:decoration-ink-3",children:"Create an orchestrator agent"})," ","— the first one you create becomes this workspace's ROOT automatically."]})}):(0,d.jsx)("form",{id:p,onSubmit:function(a){a.preventDefault(),s(async()=>{let a=await (0,h.S)({grants:u});a.ok?(g.oR.success("ROOT agent configuration saved"),q.refresh()):g.oR.error(a.message)})},children:(0,d.jsxs)(k.v,{children:[(0,d.jsxs)("div",{className:"mb-4",children:[(0,d.jsx)("div",{className:"mb-1.5 text-body-14 leading-none! text-ink-3",children:"ROOT agent"}),(0,d.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-rule bg-paper px-3 py-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:t.name}),(0,d.jsx)("span",{className:"rounded-full border border-rule-2 px-2 py-0.5 text-micro-11 uppercase tracking-wide text-ink-4",children:"Origin orchestrator"}),(0,d.jsx)("a",{href:"/settings/root-context",className:"ml-auto text-medium-13 text-ink-3 underline decoration-rule underline-offset-[3px] hover:text-ink hover:decoration-ink-3",children:"View & edit context →"})]})]}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mb-4",children:[(0,d.jsx)("div",{className:"mb-2 text-body-14 leading-none! text-ink-3",children:"Allowed actions"}),(0,d.jsx)("div",{className:"flex flex-col gap-1.5",children:[{key:"createAgent",label:"Create agents"},{key:"updateAgent",label:"Edit agents (model, personality, name)"},{key:"attachAgent",label:"Attach / detach sub-agents"},{key:"createSkill",label:"Create skills"},{key:"updateSkill",label:"Update skills"},{key:"assignSkill",label:"Assign / unassign skills"},{key:"createMcp",label:"Create MCP servers"},{key:"attachMcp",label:"Attach / detach MCP servers"},{key:"createConnector",label:"Create connectors"},{key:"attachConnector",label:"Attach / detach connectors"},{key:"manageSchedules",label:"Manage schedules (create / edit / pause cron)"}].map(({key:a,label:b})=>(0,d.jsx)(n.A,{tone:"connector",checked:u[a],onChange:()=>{v(b=>({...b,[a]:!b[a]}))},disabled:r,label:(0,d.jsx)("span",{className:"text-body-14 text-ink-2",children:b})},a))})]}),(0,d.jsxs)("div",{className:"mb-1",children:[(0,d.jsx)("div",{className:"mb-2.5 text-body-14 leading-none! text-ink-3",children:"Autonomy level"}),(0,d.jsx)("div",{role:"radiogroup","aria-label":"Autonomy level",children:i.u.map(a=>(0,d.jsx)(m.t,{active:u.autonomy===a.value,onClick:()=>{var b;return b=a.value,void v(a=>({...a,autonomy:b}))},name:a.name,description:a.description},a.value))})]})]}),(0,d.jsx)(l.h,{onCancel:function(){v(c??j.zw)},pending:r,saveLabel:"Save"})]})})})}},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44414:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(27557),e=c(44928);let f={ink:"accent-ink",agent:"accent-agent-vivid",skill:"accent-skill-vivid",connector:"accent-conn-vivid"};function g({label:a,tone:b="ink",id:c,className:h="",containerClassName:i="",...j}){let k=(0,e.useId)(),l=c??k,m=(0,d.jsx)("input",{id:l,type:"checkbox",className:`h-4 w-4 shrink-0 cursor-pointer rounded border-rule disabled:cursor-not-allowed disabled:opacity-50 ${f[b]} ${h}`,...j});return a?(0,d.jsxs)("label",{htmlFor:l,className:`flex cursor-pointer items-center gap-2 text-sm text-ink ${i}`,children:[m,a]}):(0,d.jsx)("div",{className:i,children:m})}},44708:a=>{"use strict";a.exports=require("node:https")},45193:(a,b,c)=>{"use strict";c.d(b,{o:()=>n});var d=c(62793),e=c(51455),f=c(20556),g=c(59538),h=c(63890),i=c(46190),j=c(24483),k=c(84969);function l(a){return{ok:!0,data:a}}async function m(){let a,b=(0,j.Iz)();try{let b=await (0,i.b3)();a=new Request("http://localhost/",{headers:b})}catch{a=new Request("http://localhost/")}let c=await (0,h.oC)(a,b);return(0,j.a1)(c,a)}async function n(){try{let a=await m(),b=(0,j.Lf)(),c=await b.select({id:f.vI.id}).from(f.V).innerJoin(f.vI,(0,f.eq)(f.vI.id,f.V.entityId)).where((0,f.eq)(f.V.userId,a.userId)).orderBy(f.vI.createdAt);if(0===c.length)return l([]);let d=[];for(let{id:a}of c){let[c]=await b.select({ms:f.jm.snapshotMs,takenAt:f.jm.takenAt,workspace:f.jm.workspace}).from(f.jm).innerJoin(f.ME,(0,f.eq)(f.ME.id,f.jm.jobId)).where((0,f.eq)(f.ME.entityId,a)).orderBy((0,f.i8)(f.jm.takenAt)).limit(1),h=(0,k._$)(a),i=null,j=null;try{if((await (0,e.stat)(h)).isDirectory()){let a=await (0,g.WI)(h);i={...a,sizeLabel:(0,g.z3)(a.bytes)}}else j="unreadable"}catch(a){j="ENOENT"===a.code?"absent":"unreadable"}d.push({workspaceId:a,path:h,measure:i,unmeasured:j,lastSnapshot:void 0===c?null:{ms:c.ms??null,takenAt:c.takenAt,workspace:c.workspace}})}return l(d)}catch(a){return console.error("[listWorkspaceFootprintsAction]",a),{ok:!1,code:"db_error",message:"Failed to read the workspace sizes"}}}(0,c(94669).D)([n]),(0,d.A)(n,"005315da89de60cd3f2f6c9ff1540638cc9bb33885",null)},45501:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\RootAgentSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\RootAgentSection.tsx","default")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46110:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\WorkspacesSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\WorkspacesSection.tsx","default")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},46895:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(44928);let e=d.forwardRef((a,b)=>{let{alt:c,color:e="currentColor",size:f="1em",weight:g="regular",mirrored:h=!1,children:i,weights:j,...k}=a;return d.createElement("svg",{ref:b,xmlns:"http://www.w3.org/2000/svg",width:f,height:f,fill:e,viewBox:"0 0 256 256",transform:h?"scale(-1, 1)":void 0,...k},!!c&&d.createElement("title",null,c),i,j.get(g))});e.displayName="SSRBase"},47728:(a,b,c)=>{"use strict";c.d(b,{R:()=>h});var d=c(44928),e=c(46895);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="InfoIcon";let h=g},48161:a=>{"use strict";a.exports=require("node:os")},51040:(a,b,c)=>{"use strict";c.d(b,{s:()=>f});var d=c(27557);let e={err:"bg-err/10 text-err",ok:"bg-ok-bg text-ok",skill:"bg-skill-vivid/10 text-skill-vivid",warn:"bg-warn/10 text-warn",agent:"bg-agent-vivid/40 text-ink-2 dark:bg-agent-vivid/20 dark:text-agent-vivid",ink:"bg-ink/10 text-ink-3"};function f({tone:a,children:b,className:c=""}){return(0,d.jsx)("span",{className:["inline-flex h-[18px] items-center rounded-full px-2 text-mono-11 uppercase tracking-[0.1em]",e[a],c].join(" "),children:b})}},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54029:(a,b,c)=>{"use strict";c.d(b,{u:()=>d});let d=[{value:"propose_confirm",name:"Propose & confirm",description:"While doing what you ask, it pauses for your approval before every action: shell commands, skill scripts, connector writes and the ROOT meta-tools (create agent, skill…) all wait in the Approvals queue before running."},{value:"destructive_gate",name:"Autonomous, gate destructive",description:"While doing what you ask, ordinary actions run without interrupting you (normal commands, scripts, meta-tools). But destructive or heavy ones still ask first: deletions, software installs / large downloads, killing processes, disk operations. The sweet spot — no friction for routine work, a checkpoint before anything risky."},{value:"fully_autonomous",name:"Fully autonomous",description:"While doing what you ask, nothing pauses for approval — every command, script and connector action, plus the ROOT meta-tools, run straight through. Only truly catastrophic shell commands (wiping the disk, etc.) still force a confirmation. Maximum power, no friction: use only if you fully trust it."}]},54522:a=>{"use strict";a.exports=import("@mendable/firecrawl-js")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},55703:(a,b,c)=>{"use strict";c.d(b,{e:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),d.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="MagnifyingGlassIcon";let h=g},56905:(a,b,c)=>{"use strict";c.d(b,{c:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M76,64A12,12,0,0,1,88,52H216a12,12,0,0,1,0,24H88A12,12,0,0,1,76,64Zm140,52H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,112a16,16,0,1,0,16,16A16,16,0,0,0,44,112Zm0-64A16,16,0,1,0,60,64,16,16,0,0,0,44,48Zm0,128a16,16,0,1,0,16,16A16,16,0,0,0,44,176Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,64V192H88V64Z",opacity:"0.2"}),d.createElement("path",{d:"M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM68,188a12,12,0,1,1,12-12A12,12,0,0,1,68,188Zm0-48a12,12,0,1,1,12-12A12,12,0,0,1,68,140Zm0-48A12,12,0,1,1,80,80,12,12,0,0,1,68,92Zm124,92H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M82,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H88A6,6,0,0,1,82,64Zm134,58H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM44,54A10,10,0,1,0,54,64,10,10,0,0,0,44,54Zm0,128a10,10,0,1,0,10,10A10,10,0,0,0,44,182Zm0-64a10,10,0,1,0,10,10A10,10,0,0,0,44,118Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M84,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H88A4,4,0,0,1,84,64Zm132,60H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM44,120a8,8,0,1,0,8,8A8,8,0,0,0,44,120Zm0-64a8,8,0,1,0,8,8A8,8,0,0,0,44,56Zm0,128a8,8,0,1,0,8,8A8,8,0,0,0,44,184Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="ListBulletsIcon";let h=g},57007:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{"000bd8157c910bf77772cc2cb9c4f81f1610d832cc":()=>g.A6,"00218821ab88df9394cf56763865a74ac442f22da7":()=>g.S9,"005315da89de60cd3f2f6c9ff1540638cc9bb33885":()=>i.o,"0084a11776601cd6136e9e880140b2129722a78468":()=>g.te,"009e5ca731f63c45e1966761276db46b2ae60ca53c":()=>f.k,"400cb808a9c061817e8d349921532a78dcf43c8b71":()=>h.uR,"400d8a21a1bf5fc96a9550cebf781eafac6bd8919a":()=>e.sc,"40197e4562d81a5a38d4dcf80bcdbbb1c85995832d":()=>h.X2,"402bbeb3e91ca0916272f7159778065334dfe7d448":()=>g.dP,"40441fc5a6341bfe063e9db7772193a1a043bfcc8f":()=>g.gL,"4051cbca859f5bd05098d09d04bc3dd1b5e48be8f4":()=>g.t8,"40554da7e37aaee6faf4fab6327cdfeb006bef80f1":()=>e.My,"405c5157869cc4cd2f63b1a8e4dafc2522077d04e0":()=>g.O0,"40620fec99ecf7c5964b221c1b989a37c00fe9c78a":()=>g.Vr,"4074c5de725bee02e0f663a2138b15d1e5e22aa677":()=>g.Kd,"4074e911becbb81bb6d5208451da6432e12876099b":()=>g.Vq,"40ac972db85279baeb887c6e0f585d5a163b7b3258":()=>h.vU,"40bd361728e465a1d4ea7a8b2dbb085f273d06532e":()=>g.zj,"40cb7c956c55a04d4400e77d3981caac044c187fcd":()=>e.W8,"40cc91a8a2422f52b934bbeaf370edacf4ebf80c75":()=>g.fn,"40e03646d17d361f60ef3b19c68f24afc0a5933c10":()=>h.lA,"40e95a60757035b9439ecd3476ae114f1acac531f4":()=>e.EY,"40ff3b3ceb10fbabd64248846fd364d973ff318685":()=>g.$A});var e=c(4420),f=c(27944),g=c(53675),h=c(34020),i=c(45193),j=a([f]);f=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},57075:a=>{"use strict";a.exports=require("node:stream")},57277:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\CopyablePath.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\CopyablePath.tsx","default")},57444:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(40236),g=c(33089),h=c(27339),i=c(98598),j=c(3079),k=c(37422);let l=["Europe/Paris","Europe/London","America/New_York","America/Los_Angeles","America/Sao_Paulo","Asia/Singapore","Asia/Tokyo","Asia/Kolkata","Asia/Dubai","Australia/Sydney","UTC"];function m({initial:a,isExplicit:b,formId:c}){let[n,o]=(0,e.useState)(a),[p,q]=(0,e.useTransition)(),r=Array.from(new Set([a,...l])),s=(()=>{try{return new Intl.DateTimeFormat("en-GB",{timeZone:n,weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date)}catch{return""}})();return(0,d.jsx)("form",{id:c,onSubmit:function(a){a.preventDefault(),q(async()=>{let a=await (0,g.t)({timezone:n});a.ok?f.oR.success(`Timezone set to ${n} — agents schedule and read time in this zone.`):f.oR.error(a.message)})},children:(0,d.jsxs)(h.v,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("p",{className:"text-body-13 leading-[1.5]! text-ink-3",children:["The timezone your agents use to tell the time and schedule automations. Detected from your browser at setup",b?"":" (currently the server default — set it to be sure)",".",s?` It is currently ${s} there.`:""]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(k.A,{list:"tz-options",value:n,onChange:a=>o(a.target.value),placeholder:"e.g. Europe/Paris"}),(0,d.jsx)("datalist",{id:"tz-options",children:r.map(a=>(0,d.jsx)("option",{value:a},a))}),(0,d.jsx)(j.A,{onClick:function(){try{let a=Intl.DateTimeFormat().resolvedOptions().timeZone;a&&o(a)}catch{f.oR.error("Could not detect the browser timezone.")}},className:"shrink-0",children:"Detect"})]})]}),(0,d.jsx)(i.h,{onCancel:()=>o(a),pending:p})]})})}},57975:a=>{"use strict";a.exports=require("node:util")},58373:(a,b,c)=>{"use strict";c.d(b,{n:()=>e});var d=c(47235);function e({children:a}){return(0,d.jsx)("div",{className:"mt-3.5 bg-paper border border-rule-2 rounded-xl overflow-hidden",children:a})}},59939:(a,b,c)=>{"use strict";c.d(b,{U:()=>j});var d=c(54785);let e=[{value:"propose_confirm",name:"Propose & confirm",description:"While doing what you ask, it pauses for your approval before every action: shell commands, skill scripts, connector writes and the ROOT meta-tools (create agent, skill…) all wait in the Approvals queue before running."},{value:"destructive_gate",name:"Autonomous, gate destructive",description:"While doing what you ask, ordinary actions run without interrupting you (normal commands, scripts, meta-tools). But destructive or heavy ones still ask first: deletions, software installs / large downloads, killing processes, disk operations. The sweet spot — no friction for routine work, a checkpoint before anything risky."},{value:"fully_autonomous",name:"Fully autonomous",description:"While doing what you ask, nothing pauses for approval — every command, script and connector action, plus the ROOT meta-tools, run straight through. Only truly catastrophic shell commands (wiping the disk, etc.) still force a confirmation. Maximum power, no friction: use only if you fully trust it."}];var f=c(17639);let g="Could not be read",h={"local-auth":"Email and password","local-trust":"No sign-in","bearer-token":"Bearer token"},i={"local-auth":{variant:"ok",label:"PASSWORD"},"bearer-token":{variant:"ok",label:"TOKEN"},"local-trust":{variant:"warn",label:"NO AUTH"}};function j(a){var b;let c,j,k,l,m=[];return m.push({id:"sign-in",group:"access",name:"Sign-in",lede:"Choose how users sign in to this workspace.",value:(c=h[a.authMode],a.security?.googleConfigured?`${c}, Google sign-in on`:c),tag:i[a.authMode]}),m.push({id:"network",group:"access",name:"Network access",lede:"Control which devices can reach the dashboard.",value:function(a){if(!a)return g;if("loopback"===a.configuredBind)return"Local only, 127.0.0.1";let b=a.lanAddresses[0];return b?`http://${b}:${a.webPort}`:"LAN, 0.0.0.0"}(a.network),tag:null===a.network?{variant:"warn",label:"UNREAD"}:"lan"===a.network.configuredBind?{variant:"warn",label:"LAN"}:{variant:"ok",label:"LOCAL"}}),"local-auth"===a.authMode&&m.push({id:"password",group:"access",name:"Password",lede:"Change your sign-in password. Other signed-in devices are signed out.",value:"Change it here"}),m.push({id:"worker-secret",group:"access",name:"Worker secret",lede:"The shared secret the web app uses to call the runner. Set by the installer.",value:a.workerSecretConfigured?"Set at install":"Missing, runner calls will 403",tag:a.workerSecretConfigured?{variant:"ok",label:"CONFIGURED"}:{variant:"warn",label:"MISSING"}}),m.push({id:"auto-run-brake",group:"safety",name:"Auto-run brake",lede:"The workspace-wide emergency brake. Pause every auto-run at once, release to re-arm.",value:null===a.autoRunPause?g:a.autoRunPause.autoRunPaused?"Paused":"Released",toggle:a.autoRunPause?.autoRunPaused??!1}),m.push({id:"verification",group:"safety",name:"Verification surfaces",lede:"Which ways of working get proven by a project's proof commands.",value:function(a){if(!a)return g;let b=d.XWN.filter(b=>a.surfaces[b]);return 0===b.length?"Nothing is verified":b.map(a=>f.Oi[a].label).join(", ")}(a.verification),tag:null===a.verification?{variant:"warn",label:"UNREAD"}:(j=d.XWN.filter(b=>a.verification.surfaces[b]).length,{variant:j===(k=d.XWN.length)?"ok":"warn",label:`${j} OF ${k}`})}),m.push({id:"repair-turns",group:"safety",name:"Repair turns",lede:"How many times a run gets to fix itself when its proof fails, and what else bounds a run.",value:null===a.proofRepair?g:0===a.proofRepair.repairAttempts?"None, a failed proof ends the run":1===a.proofRepair.repairAttempts?"One repair turn":`Up to ${a.proofRepair.repairAttempts} repair turns`,tag:null===a.proofRepair?{variant:"warn",label:"UNREAD"}:{variant:"ok",label:`${a.proofRepair.repairAttempts} MAX`}}),m.push({id:"root-agent",group:"safety",name:"ROOT agent",lede:"Your first orchestrator runs this workspace on your behalf. Tune its powers here.",value:function(a){let b=a.agents.find(b=>b.id===a.rootAgentId);if(!b)return"No ROOT agent yet";let c=e.find(b=>b.value===a.rootAutonomy);return c?`${b.name}, ${c.name.toLowerCase()}`:b.name}(a)}),m.push({id:"mcp-server",group:"safety",name:"MCP server",lede:"External clients can hand work to the root agent through Nodal's MCP server.",value:null===a.mcpServer?g:a.mcpServer.enabled?"External clients reach the root agent":"Closed to external clients",toggle:a.mcpServer?.enabled??!1}),m.push({id:"timezone",group:"workspace",name:"Timezone",lede:"The zone your agents use to tell the time and schedule automations.",value:null===a.timezone?g:a.timezone.isExplicit?a.timezone.timezone:`${a.timezone.timezone}, detected`}),m.push({id:"install-notes",group:"workspace",name:"Install notes",lede:"Machine-specific context injected into every agent's runtime block.",value:function(a){if(null===a)return g;let b=a.trim().split("\n")[0]?.trim()??"";return""===b?"Nothing yet":b.length>60?`${b.slice(0,59)}…`:b}(a.installNotes),tag:null===a.installNotes?{variant:"warn",label:"UNREAD"}:""===a.installNotes.trim()?{variant:"warn",label:"EMPTY"}:{variant:"ok",label:"SET"}}),m.push({id:"workspaces",group:"workspace",name:"Workspaces",lede:"Each workspace scopes its own agents, credentials and data.",value:(l=(b=a.workspaces).find(a=>a.active))?b.length>1?`${l.name}, ${l.role}, ${b.length} total`:l.name:0===b.length?"No workspace found":`${b.length} workspaces`,tag:a.workspaces.some(a=>a.active)?{variant:"ok",label:"ACTIVE"}:{variant:"warn",label:"NONE"}}),m.push({id:"urls",group:"advanced",name:"URLs",lede:"Where this install answers, and where its shared folder is. Read only.",value:"App, runner, webhooks, shared folder"}),m.push({id:"session",group:"advanced",name:"Session",lede:"The identifiers of your account and this workspace in the local DB. Read only.",value:"User and workspace identifiers"}),m}},59978:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\SettingsSections.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\SettingsSections.tsx","default")},61841:(a,b,c)=>{"use strict";c.d(b,{CR:()=>e,Oi:()=>d}),c(40409);let d={codeTask:{label:"Coding tool",hint:"code_task: a coding CLI called as a tool"},cliRuntime:{label:"Claude Code / Codex agents",hint:"agents that ARE a coding CLI session"},fileOps:{label:"File tools",hint:"file_write, file_edit, Office files"},shell:{label:"Commands and scripts",hint:"run_command, run_skill_script"}};function e(a){return d[a]?.label??a}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63850:a=>{"use strict";a.exports=require("googleapis")},64983:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\InstallNotesForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\InstallNotesForm.tsx","default")},65382:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(27557);function e({options:a,value:b,onChange:c,disabled:f,ariaLabel:g,className:h=""}){return(0,d.jsx)("div",{className:`flex w-fit shrink-0 overflow-hidden rounded-lg border border-rule-2 ${h}`,role:"group","aria-label":g,children:a.map((a,e)=>{let g=a.value===b;return(0,d.jsx)("button",{type:"button",disabled:f,onClick:()=>c(a.value),"data-testid":a.testId,"aria-pressed":g,className:["relative h-[32px] px-3 text-medium-13 transition-colors",e>0?"border-l border-rule-2":"",g?a.activeClassName??"bg-ink text-canvas border-ink":"bg-canvas text-ink-3 hover:bg-hover hover:text-ink-2",f?"cursor-wait opacity-60":""].join(" "),children:a.label},a.value)})})}},68819:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\VerificationSurfacesSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\VerificationSurfacesSection.tsx","default")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73031:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(27557),e=c(44928),f=c(9987);let g=(0,e.forwardRef)(function({label:a,error:b,showCount:c,id:g,className:h="",containerClassName:i="",maxLength:j,value:k,bare:l=!1,...m},n){let o=(0,e.useId)(),p=g??o;return(0,d.jsxs)("div",{className:i,children:[a&&(0,d.jsx)(f.A,{htmlFor:p,children:a}),(0,d.jsx)("textarea",{id:p,ref:n,maxLength:j,value:k,"aria-invalid":!!b||void 0,className:l?`w-full text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${h}`:`w-full resize-y rounded-md border bg-hover px-2 py-1.5 text-body-14 leading-[1.5]! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${b?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${h}`,...m}),c&&void 0!==j&&"string"==typeof k&&(0,d.jsxs)("div",{className:"mt-1 text-right text-legacy-11 text-ink-4",children:[k.length," / ",j]}),b&&(0,d.jsx)("p",{className:"mt-1 text-xs text-err",children:b})]})})},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},73566:a=>{"use strict";a.exports=require("worker_threads")},74075:a=>{"use strict";a.exports=require("zlib")},74125:(a,b,c)=>{"use strict";c.d(b,{default:()=>o});var d=c(27557),e=c(44928),f=c(40236),g=c(40409),h=c(48601);let i=(0,h.createServerReference)("402781412fb9bdbf00477c6e4c16b13dd9e139b02f",h.callServer,void 0,h.findSourceMapURL,"setVerificationSurfacesAction");var j=c(61841),k=c(25e3),l=c(44414),m=c(51040);let n=g.XWN.map(a=>({key:a,...j.Oi[a]}));function o({initial:a}){let[b,c]=(0,e.useState)(a.surfaces),[g,h]=(0,e.useState)(null),[j,p]=(0,e.useTransition)();function q(a){c(a),p(async()=>{let d=await i(a);d.ok?f.oR.success("Verification surfaces saved."):(f.oR.error(d.message),c(b))})}let r=!a.isOwner||j,s=n.find(a=>a.key===g)?.label??"";return(0,d.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:"What gets verified"}),(0,d.jsx)(m.s,{tone:"err",children:"owner only"})]}),(0,d.jsx)("p",{className:"text-body-13 leading-[1.4]! text-ink-3",children:"A checked surface declares what it changes and gets proven by the project's proof commands. An unchecked one is not verified, and every run says so. All on by default."}),(0,d.jsx)("ul",{className:"flex flex-col gap-2",children:n.map(a=>(0,d.jsxs)("li",{className:"flex items-baseline gap-2",children:[(0,d.jsx)(l.A,{tone:"ink",label:a.label,checked:b[a.key],disabled:r,onChange:c=>{var d;return d=a.key,void(!c.currentTarget.checked?h(d):q({...b,[d]:!0}))},"data-testid":`verification-surface-${a.key}`}),(0,d.jsx)("span",{className:"text-body-12 text-ink-4",children:a.hint})]},a.key))}),!a.isOwner&&(0,d.jsx)("p",{className:"text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."}),(0,d.jsx)(k.A,{open:null!==g,title:`Stop verifying ${s}?`,message:"Work coming from this surface will no longer be proven by the project's proof commands. Each run will say it was not verified.",confirmLabel:"Stop verifying",destructive:!0,onConfirm:()=>{h(null),g&&q({...b,[g]:!1})},onCancel:()=>h(null)})]})}},74552:a=>{"use strict";a.exports=require("pino")},74998:a=>{"use strict";a.exports=require("perf_hooks")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77580:(a,b,c)=>{"use strict";c.d(b,{default:()=>l});var d=c(27557),e=c(44928),f=c(40236),g=c(40409),h=c(48601);let i=(0,h.createServerReference)("4026a65ca14c354283475c21b41ba6113610c7c57b",h.callServer,void 0,h.findSourceMapURL,"setProofRepairAction");var j=c(51040),k=c(65382);function l({initial:a}){let[b,c]=(0,e.useState)(a.repairAttempts),[h,m]=(0,e.useTransition)(),n=!a.isOwner||h;return(0,d.jsxs)("div",{className:"rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:"Repair turns after a failed proof"}),(0,d.jsx)(j.s,{tone:"err",children:"owner only"})]}),(0,d.jsx)("p",{className:"mt-1 text-body-13 leading-[1.4]! text-ink-3",children:0===b?"A failed proof ends the run at once, with its red verdict.":1===b?"A failed proof reopens the run once. The agent gets the failing command and its output, fixes it, and delivers again.":`A failed proof reopens the run up to ${b} times. Each turn costs another model call and another full proof.`}),!a.isOwner&&(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."})]}),(0,d.jsx)("div",{className:"mt-0.5",children:(0,d.jsx)(k.A,{ariaLabel:"Repair turns after a failed proof",value:String(b),onChange:function(a){let d=Number(a);c(d),m(async()=>{let a=await i({repairAttempts:d});a.ok?f.oR.success(0===d?"A failed proof now ends the run at once.":`A failed proof now reopens the run ${1===d?"once":`up to ${d} times`}.`):(f.oR.error(a.message),c(b))})},disabled:n,options:g.bpx.map(a=>({value:String(a),label:String(a),testId:`repair-turns-${a}`}))})})]}),(0,d.jsxs)("div",{className:"mt-4 border-t border-rule-2 pt-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-13 text-ink-2",children:"What else bounds a run"}),(0,d.jsx)(j.s,{tone:"ink",children:"read only"})]}),(0,d.jsx)("dl",{className:"mt-2 grid gap-1.5","data-testid":"run-budgets",children:[{key:"resumes",label:"Resumes per run",value:a.budgets.resumesPerRun,hint:"Delegations picked back up, approvals answered, repair turns."},{key:"tool-calls",label:"Tool calls per turn",value:a.budgets.toolCallsPerTurn,hint:"One model turn cannot ask for more than this."},{key:"delegation",label:"Delegation depth",value:a.budgets.delegationDepth,hint:"An agent briefing an agent briefing an agent."}].map(a=>(0,d.jsxs)("div",{className:"flex items-baseline gap-3","data-testid":`budget-${a.key}`,children:[(0,d.jsx)("dt",{className:"text-body-13 text-ink-2",children:a.label}),(0,d.jsx)("dd",{className:"text-medium-13 text-ink",children:a.value}),(0,d.jsx)("span",{className:"min-w-0 truncate text-body-12 text-ink-4",children:a.hint})]},a.key))})]})]})}},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},78608:a=>{"use strict";a.exports=require("exceljs")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79592:(a,b,c)=>{"use strict";c.d(b,{default:()=>n});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("40b46fd17bf9459d4d04447ad03e654ca354524644",g.callServer,void 0,g.findSourceMapURL,"updateNetworkSettingsAction");var i=c(37241),j=c(24735),k=c(89386),l=c(98598),m=c(27339);function n({initial:a,formId:b}){let[c,g]=(0,e.useState)(a.configuredBind),[o,p]=(0,e.useTransition)(),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1);return(0,d.jsx)("form",{id:b,onSubmit:function(a){a.preventDefault(),p(async()=>{let a=await h({bind:c});a.ok?(f.oR.success("Network settings saved"),r(a.data.requiresRestart),t(a.data.authModeAligned)):f.oR.error(a.message)})},children:(0,d.jsxs)(m.v,{children:[(0,d.jsx)(i.t,{active:"loopback"===c,onClick:()=>g("loopback"),name:"Local only (127.0.0.1)",description:"Only this machine can reach the dashboard. No auth required by default."}),(0,d.jsx)(i.t,{active:"lan"===c,onClick:()=>g("lan"),name:"LAN (0.0.0.0) — accessible from your network",description:"Other devices on the same Wi-Fi can reach the dashboard. Sign-in required (local-auth)."}),"lan"===c&&a.lanAddresses.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.A,{variant:"info",children:"Any device on the same Wi-Fi can open the dashboard. Combine with email + password auth to avoid unintended access."}),a.lanAddresses.map(b=>{let c=`http://${b}:${a.webPort}`;return(0,d.jsx)(k.O,{subtitle:"From your phone or another device on the same network, open:",url:c},b)}),(0,d.jsx)("p",{className:"text-body-13 leading-[1.5]! text-ink-4 mt-2.5 mx-1",children:"Windows Defender may prompt the first time another device tries to connect — allow access on private networks."}),(0,d.jsx)(j.A,{variant:"warn",children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"LAN exposes this dashboard beyond your machine"}),"Anyone on the same Wi-Fi can attempt to reach the URL above. Keep email + password auth enabled and avoid open / public networks."]})})]}),"lan"===c&&0===a.lanAddresses.length&&(0,d.jsx)(j.A,{variant:"warn",children:"No LAN interface detected. Make sure this machine is connected to a network before enabling LAN access."}),!a.configPathExists&&(0,d.jsxs)(j.A,{variant:"warn",children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Config file missing"}),"~/.nodalai/config.json wasn't found. Save will fail until you've run"," ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents init"})," at least once."]}),s&&(0,d.jsx)(j.A,{variant:"info",title:"Sign-in enabled.",children:"LAN access requires email + password auth, so it was switched on. After the restart, the login page will ask you to create your account. Your agents and settings are kept."}),q&&(0,d.jsxs)(j.A,{variant:"info",title:"Saved. Restart required.",children:["Run ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents down && nodal-agents up"})," to activate the new network mode."]}),(0,d.jsx)(l.h,{onCancel:function(){g(a.configuredBind),r(!1),t(!1)},pending:o})]})})}},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},79868:a=>{"use strict";a.exports=require("node:sqlite")},80241:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(47235),e=c(41060),f=c(90356),g=c(86585);function h({title:a,subtitle:b,header:c}){return void 0!==c?(0,d.jsxs)("header",{className:"flex min-h-[75px] items-center gap-4 border-b border-rule-2 px-5 pt-5 pb-4 sm:px-8 lg:px-9",children:[(0,d.jsx)("div",{className:"min-w-0 flex-1",children:c}),(0,d.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,d.jsx)(e.default,{className:"hidden md:flex"}),(0,d.jsx)(g.default,{}),(0,d.jsx)(f.default,{})]})]}):(0,d.jsxs)("header",{className:"flex items-center justify-between gap-4 border-b border-rule-2 px-5 pt-5 pb-4 sm:px-8 lg:px-9",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("h1",{className:"text-display-28 leading-[1.15]! tracking-[-0.015em] text-ink",children:a}),b&&(0,d.jsx)("p",{className:"mt-1.5 text-body-14 leading-[1.5]! text-ink-3",children:b})]}),(0,d.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,d.jsx)(e.default,{className:"hidden md:flex"}),(0,d.jsx)(g.default,{}),(0,d.jsx)(f.default,{})]})]})}function i(a){let{toolbar:b,toolbarBleed:c=!1,aside:e,footer:f,children:g,fluid:i=!1,fill:j=!1,bodyClassName:k=""}=a,l=void 0!==a.header?(0,d.jsx)(h,{header:a.header}):(0,d.jsx)(h,{title:a.title,subtitle:a.subtitle});return j?(0,d.jsxs)("div",{className:"flex h-full min-h-0 flex-1 flex-col",children:[l,b&&c&&b,(0,d.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,d.jsxs)("div",{className:`flex min-w-0 min-h-0 flex-1 flex-col ${k}`,children:[b&&!c&&(0,d.jsx)("div",{className:`w-full px-5 pt-4 sm:px-8 lg:px-9 ${i?"":"mx-auto max-w-6xl"}`,children:b}),i?g:(0,d.jsx)("div",{className:"mx-auto flex min-h-0 w-full max-w-6xl flex-1 flex-col",children:g})]}),e]}),f]}):(0,d.jsxs)(d.Fragment,{children:[l,b&&c&&b,(0,d.jsxs)("div",{className:`w-full px-5 pt-6 pb-10 sm:px-8 lg:px-9 ${i?"":"mx-auto max-w-6xl"} ${k}`,children:[b&&!c&&(0,d.jsx)("div",{className:"mb-5",children:b}),g]})]})}},80526:a=>{"use strict";a.exports=import("pdf-parse")},81630:a=>{"use strict";a.exports=require("http")},81806:(a,b,c)=>{"use strict";c.d(b,{v:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),d.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="PauseIcon";let h=g},83915:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>v,handler:()=>x,routeModule:()=>w});var d=c(82735),e=c(27975),f=c(93368),g=c(80795),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,19189))),j=(0,d.p)(()=>Promise.resolve().then(c.bind(c,29481))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,53503,23))),l=(0,d.p)(()=>Promise.resolve().then(c.bind(c,22427))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,50922,23))),n=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,597,23))),o=(0,d.p)(()=>Promise.resolve().then(c.bind(c,44513))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,53503,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,50922,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,597,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,53503,23))),t={children:["",{children:["(dashboard)",{children:["settings",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,35184))),"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\page.tsx"]}]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[o,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\layout.tsx"],"global-error":[p,"next/dist/client/components/builtin/global-error.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"]},[]]},{layout:[i,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\layout.tsx"],error:[j,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\error.tsx"],"global-error":[k,"next/dist/client/components/builtin/global-error.js"],"not-found":[l,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\not-found.tsx"],forbidden:[m,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[n,"next/dist/client/components/builtin/unauthorized.js"]},[]]}.children,u=(0,e.H)({tree:t,page:"/(dashboard)/settings/page",pathname:"/settings",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),v=u.__next_app__,w=u.routeModule,x=u.handler},83997:a=>{"use strict";a.exports=require("tty")},84249:(a,b,c)=>{"use strict";c.d(b,{N:()=>h});var d=c(44928),e=c(46895),f=c(10295);let g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f.A}));g.displayName="WarningIcon";let h=g},84505:(a,b,c)=>{"use strict";c.d(b,{default:()=>k});var d=c(27557),e=c(44928),f=c(40236),g=c(96441),h=c(27339),i=c(98598),j=c(73031);function k({initial:a,formId:b}){let[c,l]=(0,e.useState)(a),[m,n]=(0,e.useTransition)();return(0,d.jsx)("form",{id:b,onSubmit:function(a){a.preventDefault(),n(async()=>{let a=await (0,g.F)(c);a.ok?f.oR.success("Install notes saved — agents will see them on the next job."):f.oR.error(a.message)})},children:(0,d.jsxs)(h.v,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("p",{className:"text-body-13 leading-[1.5]! text-ink-3",children:"These notes are injected into every agent's runtime context and apply live (no restart needed). Use them for machine-specifics the system can't auto-detect — for example: “ComfyUI runs on :8188”, a local GPU, a local API path, or services the agent should call directly."}),(0,d.jsx)(j.A,{value:c,onChange:a=>l(a.target.value),rows:5,maxLength:4e3,showCount:!0,placeholder:"e.g. ComfyUI runs on :8188 with no auth. GPU: RTX 4090. Ollama on :11434."})]}),(0,d.jsx)(i.h,{onCancel:function(){l(a)},pending:m})]})})}},84647:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\ProofRepairSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\ProofRepairSection.tsx","default")},86572:(a,b,c)=>{"use strict";c.d(b,{E:()=>e});var d=c(27557);function e({variant:a,children:b}){return(0,d.jsx)("span",{className:["inline-flex items-center gap-1.5 h-[22px] px-2 rounded-[5px] font-mono text-label-11 tracking-[0.08em]","ok"===a?"bg-lime-400/20 text-lime-600 dark:text-lime-300":"bg-orange-500/[0.13] text-orange-700 dark:text-orange-400"].join(" "),children:b})}},86585:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\NotificationsBell.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\NotificationsBell.tsx","default")},87997:a=>{"use strict";a.exports=require("node:timers")},88502:(a,b,c)=>{Promise.resolve().then(c.bind(c,34549)),Promise.resolve().then(c.bind(c,84505)),Promise.resolve().then(c.bind(c,5848)),Promise.resolve().then(c.bind(c,79592)),Promise.resolve().then(c.bind(c,27014)),Promise.resolve().then(c.bind(c,77580)),Promise.resolve().then(c.bind(c,41115)),Promise.resolve().then(c.bind(c,20091)),Promise.resolve().then(c.bind(c,36206)),Promise.resolve().then(c.bind(c,57444)),Promise.resolve().then(c.bind(c,74125)),Promise.resolve().then(c.bind(c,33876)),Promise.resolve().then(c.bind(c,7375)),Promise.resolve().then(c.bind(c,18595)),Promise.resolve().then(c.bind(c,35542)),Promise.resolve().then(c.bind(c,28198)),Promise.resolve().then(c.t.bind(c,87480,23))},89386:(a,b,c)=>{"use strict";c.d(b,{O:()=>f});var d=c(27557),e=c(40236);function f({subtitle:a,url:b}){async function c(){try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(b):g(b),e.oR.success("Copied")}catch{try{g(b),e.oR.success("Copied")}catch{e.oR.error("Could not copy")}}}function g(a){let b=document.createElement("textarea");b.value=a,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();let c=document.execCommand("copy");if(b.remove(),!c)throw Error("copy_failed")}return(0,d.jsxs)("div",{className:"flex items-center gap-3 bg-canvas/40 border border-rule-2 rounded-[9px] px-4 py-3.5 mt-2",children:[(0,d.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"block text-xs leading-[1.4] text-ink-4",children:a}),(0,d.jsx)("span",{className:"block font-mono text-legacy-14 leading-[1.4]! text-ink tracking-[0.02em] mt-1.5 break-all",children:b})]}),(0,d.jsxs)("button",{type:"button",onClick:c,className:"flex-shrink-0 flex items-center gap-1.5 px-2.5 py-1.5 border border-rule text-ink-3 rounded-[7px] text-xs font-medium hover:border-rule-2 hover:text-ink transition-colors",children:[(0,d.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"w-3.5 h-3.5",children:[(0,d.jsx)("rect",{x:"3",y:"3",width:"8",height:"8",rx:"1"}),(0,d.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1"})]}),"Copy"]})]})}},89901:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\NetworkForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\NetworkForm.tsx","default")},90356:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\ThemeToggle.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\ThemeToggle.tsx","default")},91645:a=>{"use strict";a.exports=require("net")},94685:a=>{"use strict";a.exports=require("discord.js")},94735:a=>{"use strict";a.exports=require("events")},96441:(a,b,c)=>{"use strict";c.d(b,{F:()=>e});var d=c(48601);let e=(0,d.createServerReference)("405455934cabf5f2c476e40be52d546683ac27d2df",d.callServer,void 0,d.findSourceMapURL,"setInstallNotesAction")},98598:(a,b,c)=>{"use strict";c.d(b,{h:()=>g});var d=c(27557),e=c(44928);let f=(0,e.createContext)(null);function g({onCancel:a,pending:b,saveLabel:c="Save"}){let h=(0,e.useContext)(f);h?.report;let i=(0,e.useRef)(a);return((0,e.useCallback)(()=>i.current(),[]),h)?null:(0,d.jsxs)("div",{className:"flex justify-end gap-2 mt-[18px]",children:[(0,d.jsx)("button",{type:"button",onClick:a,className:"h-[34px] px-3.5 rounded-[9px] cursor-pointer bg-paper border border-rule text-medium-14 text-ink-2 hover:bg-hover hover:border-rule-2 transition-colors",children:"Cancel"}),(0,d.jsx)("button",{type:"submit",disabled:b,className:"h-[34px] px-4 rounded-[9px] border-0 cursor-pointer bg-ink text-canvas text-medium-14 hover:brightness-90 disabled:opacity-50 transition-[filter,opacity]",children:b?"Saving…":c})]})}},98662:(a,b,c)=>{"use strict";c.d(b,{P:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),d.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="ArrowsClockwiseIcon";let h=g},99529:(a,b,c)=>{"use strict";c.d(b,{S:()=>e});var d=c(48601);let e=(0,d.createServerReference)("400a69f05e1dbe9d71a06d6a813639480b68d73cef",d.callServer,void 0,d.findSourceMapURL,"setRootAgentAction")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[7617,7927,192,1041,7663,4507,6225,1017,7134,42,692,409,8974,3675,1960],()=>b(b.s=83915));module.exports=c})();
|
|
1
|
+
(()=>{var a={};a.id=1670,a.ids=[1670],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},2143:(a,b,c)=>{"use strict";c.d(b,{B2:()=>e});let d=[{key:"access",label:"Access",lede:"Who can open this dashboard, and from where.",ids:["sign-in","network","password","worker-secret"]},{key:"safety",label:"Safety",lede:"What your agents may do on their own, and what stops them.",ids:["auto-run-brake","verification","repair-turns","run-budget","root-agent","mcp-server"]},{key:"workspace",label:"Workspace",lede:"Where your agents work, and the facts of this installation.",ids:["timezone","workspaces","urls","session"]},{key:"install",label:"Install",lede:"Notes every agent reads about this machine.",ids:["install-notes"]}];function e(a){let b=d.find(b=>b.key===a.page);if(b)return b;let c=d.find(b=>b.ids.includes(a.open??""));return c||d.find(a=>"access"===a.key)}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10295:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(44928);let e=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11044:(a,b,c)=>{Promise.resolve().then(c.bind(c,46967)),Promise.resolve().then(c.bind(c,84505)),Promise.resolve().then(c.bind(c,79100)),Promise.resolve().then(c.bind(c,17390)),Promise.resolve().then(c.bind(c,27014)),Promise.resolve().then(c.bind(c,76179)),Promise.resolve().then(c.bind(c,41115)),Promise.resolve().then(c.bind(c,46079)),Promise.resolve().then(c.bind(c,12925)),Promise.resolve().then(c.bind(c,13802)),Promise.resolve().then(c.bind(c,57444)),Promise.resolve().then(c.bind(c,11149)),Promise.resolve().then(c.bind(c,62491)),Promise.resolve().then(c.bind(c,7375)),Promise.resolve().then(c.bind(c,18595)),Promise.resolve().then(c.bind(c,35542)),Promise.resolve().then(c.bind(c,28198)),Promise.resolve().then(c.t.bind(c,87480,23))},11149:(a,b,c)=>{"use strict";c.d(b,{default:()=>o});var d=c(27557),e=c(44928),f=c(40236),g=c(73920),h=c(48601);let i=(0,h.createServerReference)("40ec73f0f62f515fb2a6b19ae37a1d90f5a15463ec",h.callServer,void 0,h.findSourceMapURL,"setVerificationSurfacesAction");var j=c(61841),k=c(25e3),l=c(44414),m=c(51040);let n=g.XWN.map(a=>({key:a,...j.Oi[a]}));function o({initial:a}){let[b,c]=(0,e.useState)(a.surfaces),[g,h]=(0,e.useState)(null),[j,p]=(0,e.useTransition)();function q(a){c(a),p(async()=>{let d=await i(a);d.ok?f.oR.success("Verification surfaces saved."):(f.oR.error(d.message),c(b))})}let r=!a.isOwner||j,s=n.find(a=>a.key===g)?.label??"";return(0,d.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:"What gets verified"}),(0,d.jsx)(m.s,{tone:"err",children:"owner only"})]}),(0,d.jsx)("p",{className:"text-body-13 leading-[1.4]! text-ink-3",children:"A checked surface declares what it changes and gets proven by the project's proof commands. An unchecked one is not verified, and every run says so. All on by default."}),(0,d.jsx)("ul",{className:"flex flex-col gap-2",children:n.map(a=>(0,d.jsxs)("li",{className:"flex items-baseline gap-2",children:[(0,d.jsx)(l.A,{tone:"ink",label:a.label,checked:b[a.key],disabled:r,onChange:c=>{var d;return d=a.key,void(!c.currentTarget.checked?h(d):q({...b,[d]:!0}))},"data-testid":`verification-surface-${a.key}`}),(0,d.jsx)("span",{className:"text-body-12 text-ink-4",children:a.hint})]},a.key))}),!a.isOwner&&(0,d.jsx)("p",{className:"text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."}),(0,d.jsx)(k.A,{open:null!==g,title:`Stop verifying ${s}?`,message:"Work coming from this surface will no longer be proven by the project's proof commands. Each run will say it was not verified.",confirmLabel:"Stop verifying",destructive:!0,onConfirm:()=>{h(null),g&&q({...b,[g]:!1})},onCancel:()=>h(null)})]})}},11194:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\TimezoneForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\TimezoneForm.tsx","default")},11997:a=>{"use strict";a.exports=require("punycode")},12412:a=>{"use strict";a.exports=require("assert")},12925:(a,b,c)=>{"use strict";c.d(b,{default:()=>r});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("405a908b05a88d40f3d9a9505281fc8e9a7f079d2b",g.callServer,void 0,g.findSourceMapURL,"updateAuthSettingsAction");var i=c(25e3),j=c(37241),k=c(24735);function l({name:a,description:b,action:c}){return(0,d.jsxs)("div",{className:"flex items-center gap-3.5 px-4 py-3.5 rounded-[10px] bg-canvas/40 border border-rule-2 mt-2",children:[(0,d.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"block text-medium-14 leading-[1.3]! text-ink",children:a}),(0,d.jsx)("span",{className:"block text-body-13 leading-[1.4]! text-ink-3 mt-0.5",children:b})]}),(0,d.jsx)("span",{className:"flex-shrink-0",children:c})]})}var m=c(98598),n=c(27339),o=c(3079),p=c(37422),q=c(9987);function r({initial:a,formId:b}){let[c,g]=(0,e.useState)(a.configuredMode),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useTransition)(),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(!1);return(0,d.jsxs)("form",{id:b,onSubmit:function(a){a.preventDefault();let b=new FormData(a.currentTarget);v(async()=>{let a=await h({mode:c,googleClientId:s?b.get("googleClientId"):void 0,googleClientSecret:s?b.get("googleClientSecret"):void 0,clearGoogle:!1});a.ok?(f.oR.success("Auth settings saved"),z(a.data.requiresRestart)):f.oR.error(a.message)})},children:[(0,d.jsxs)(n.v,{label:"Auth mode",children:[(0,d.jsx)(j.t,{active:"local-trust"===c,onClick:()=>g("local-trust"),name:"No auth (local-trust)",description:"Single hardcoded user. Recommended for solo loopback installs."}),(0,d.jsx)(j.t,{active:"local-auth"===c,onClick:()=>g("local-auth"),name:"Email + password (local-auth)",description:"Sign-up + login via better-auth. Optional Google OAuth on top."}),"local-auth"===c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.A,{variant:"info",children:"Each user signs in with email + password. Sessions are stored in the local DB and can be revoked from this page."}),(0,d.jsx)(l,{name:"Google OAuth",description:a.googleConfigured?"Configured.":"Optional. Add to allow Google sign-in alongside email + password.",action:(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(o.A,{onClick:()=>t(a=>!a),children:s?"Hide fields":a.googleConfigured?"Rotate":"Add"}),a.googleConfigured&&(0,d.jsx)(o.A,{tone:"danger",onClick:()=>x(!0),disabled:u,children:"Remove"})]})}),s&&(0,d.jsxs)("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-3 px-1",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(q.A,{htmlFor:"google-client-id",children:"Client ID"}),(0,d.jsx)(p.A,{id:"google-client-id",name:"googleClientId",type:"text",placeholder:"xxx.apps.googleusercontent.com",className:"font-mono"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(q.A,{htmlFor:"google-client-secret",children:"Client secret"}),(0,d.jsx)(p.A,{id:"google-client-secret",name:"googleClientSecret",type:"password",placeholder:a.googleConfigured?"•••••••• (overwrite)":"",className:"font-mono"})]}),(0,d.jsxs)("p",{className:"sm:col-span-2 text-body-12 text-ink-4",children:["Use authorized JavaScript origins"," ",(0,d.jsx)("code",{className:"font-mono",children:"http://localhost:3000"})," and redirect URI"," ",(0,d.jsx)("code",{className:"font-mono",children:"http://localhost:3000/api/auth/callback/google"})," ","in the Google Cloud Console."]})]})]}),!a.configPathExists&&(0,d.jsxs)(k.A,{variant:"warn",children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Config file missing"}),"~/.nodalai/config.json wasn't found. Save will fail until you've run"," ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents init"})," at least once."]}),(0,d.jsx)(k.A,{variant:"warn",children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Switching auth mode signs everyone out"}),"Active sessions are invalidated when the auth mode changes. Make sure you can still sign in with the new method before applying."]})}),y&&(0,d.jsxs)(k.A,{variant:"info",title:"Saved. Restart required.",children:["Run ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents down && nodal-agents up"})," to activate the new auth mode."]}),(0,d.jsx)(m.h,{onCancel:function(){g(a.configuredMode),t(!1),z(!1)},pending:u})]}),(0,d.jsx)(i.A,{open:w,title:"Remove Google OAuth credentials?",message:"The clientId and clientSecret will be removed from ~/.nodalai/config.json. Users with active Google sessions will need to sign in again with email + password.",confirmLabel:"Remove",onConfirm:function(){x(!1),v(async()=>{let a=await h({mode:c,clearGoogle:!0});a.ok?f.oR.success("Google credentials removed"):f.oR.error(a.message)})},onCancel:()=>x(!1)})]})}},13802:(a,b,c)=>{"use strict";c.d(b,{default:()=>E});var d=c(27557),e=c(27039),f=c(44928),g=c(14778);let h=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M144,204a16,16,0,1,1-16-16A16,16,0,0,1,144,204ZM239.61,83.91a176,176,0,0,0-223.22,0,12,12,0,1,0,15.23,18.55,152,152,0,0,1,192.76,0,12,12,0,1,0,15.23-18.55Zm-32.16,35.73a128,128,0,0,0-158.9,0,12,12,0,0,0,14.9,18.81,104,104,0,0,1,129.1,0,12,12,0,0,0,14.9-18.81ZM175.07,155.3a80.05,80.05,0,0,0-94.14,0,12,12,0,0,0,14.14,19.4,56,56,0,0,1,65.86,0,12,12,0,1,0,14.14-19.4Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M238.2,87.69l-104,125.43a8,8,0,0,1-12.3,0L17.8,87.69a7.79,7.79,0,0,1,1.31-11.21,180.75,180.75,0,0,1,217.78,0A7.79,7.79,0,0,1,238.2,87.69Z",opacity:"0.2"}),f.createElement("path",{d:"M247.89,80.91a15.93,15.93,0,0,0-6.17-10.81A186.67,186.67,0,0,0,128,32,186.67,186.67,0,0,0,14.28,70.1,15.93,15.93,0,0,0,8.11,80.91,15.65,15.65,0,0,0,11.65,92.8l104,125.43A15.93,15.93,0,0,0,128,224h0a15.93,15.93,0,0,0,12.31-5.77l104-125.43A15.65,15.65,0,0,0,247.89,80.91ZM128,208,24.09,82.74A170.76,170.76,0,0,1,128,48,170.76,170.76,0,0,1,231.91,82.74Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M244.35,92.8l-104,125.43A15.93,15.93,0,0,1,128,224h0a15.93,15.93,0,0,1-12.31-5.77L11.65,92.8A15.65,15.65,0,0,1,8.11,80.91,15.93,15.93,0,0,1,14.28,70.1,186.67,186.67,0,0,1,128,32,186.67,186.67,0,0,1,241.72,70.1a15.93,15.93,0,0,1,6.17,10.81A15.65,15.65,0,0,1,244.35,92.8Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M138,204a10,10,0,1,1-10-10A10,10,0,0,1,138,204ZM235.81,88.55a170,170,0,0,0-215.62,0,6,6,0,1,0,7.62,9.27,158,158,0,0,1,200.38,0,6,6,0,1,0,7.62-9.27Zm-32.08,35.79a122,122,0,0,0-151.46,0,6,6,0,0,0,7.46,9.41,110,110,0,0,1,136.54,0A6,6,0,0,0,200,135a6,6,0,0,0,3.73-10.7Zm-32.2,35.81a74,74,0,0,0-87.06,0,6,6,0,0,0,7.06,9.7,62,62,0,0,1,72.94,0,6,6,0,0,0,8.38-1.32A6,6,0,0,0,171.53,160.15Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M140,204a12,12,0,1,1-12-12A12,12,0,0,1,140,204ZM237.08,87A172,172,0,0,0,18.92,87,8,8,0,0,0,29.08,99.37a156,156,0,0,1,197.84,0A8,8,0,0,0,237.08,87ZM205,122.77a124,124,0,0,0-153.94,0A8,8,0,0,0,61,135.31a108,108,0,0,1,134.06,0,8,8,0,0,0,11.24-1.3A8,8,0,0,0,205,122.77Zm-32.26,35.76a76.05,76.05,0,0,0-89.42,0,8,8,0,0,0,9.42,12.94,60,60,0,0,1,70.58,0,8,8,0,1,0,9.42-12.94Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,204a8,8,0,1,1-8-8A8,8,0,0,1,136,204ZM234.54,90.1a168,168,0,0,0-213.08,0,4,4,0,1,0,5.08,6.18,160,160,0,0,1,202.92,0,4,4,0,0,0,5.08-6.18Zm-32.06,35.81a120,120,0,0,0-149,0,4,4,0,0,0,5,6.27,112,112,0,0,1,139,0,4,4,0,0,0,5-6.27Zm-32.13,35.86a72,72,0,0,0-84.7,0,4,4,0,1,0,4.7,6.46,64.07,64.07,0,0,1,75.3,0,4,4,0,0,0,5.58-.87A4,4,0,0,0,170.35,161.77Z"}))]]),i=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:h}));i.displayName="WifiHighIcon";var j=c(26071),k=c(15218),l=c(81806);let m=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M152.41,88.56l-89.6,88a12,12,0,0,1-16.82,0L7.59,138.85a12,12,0,0,1,16.82-17.13l30,29.46,81.19-79.74a12,12,0,0,1,16.82,17.12Zm96.15-17a12,12,0,0,0-17-.15L150.4,151.18l-7.88-7.74a12,12,0,0,0-16.82,17.12l16.29,16a12,12,0,0,0,16.82,0l89.6-88A12,12,0,0,0,248.56,71.59Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"}),f.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM72,168a8,8,0,0,1-5.66-2.34l-24-24a8,8,0,0,1,11.32-11.32L72,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-64,64A8,8,0,0,1,72,168Zm141.66-66.34-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L144,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M148.2,84.28l-89.6,88a6,6,0,0,1-8.4,0L11.8,134.57A6,6,0,1,1,20.2,126l34.2,33.58,85.4-83.87a6,6,0,1,1,8.4,8.56Zm96.08-8.48a6,6,0,0,0-8.48-.08l-85.4,83.87-20.23-19.87a6,6,0,1,0-8.41,8.56l24.44,24a6,6,0,0,0,8.4,0l89.6-88A6,6,0,0,0,244.28,75.8Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M146.8,82.85l-89.6,88a4,4,0,0,1-5.6,0L13.2,133.14a4,4,0,0,1,5.6-5.71l35.6,35,86.8-85.24a4,4,0,0,1,5.6,5.7Zm96-5.65a4,4,0,0,0-5.65,0l-86.8,85.24-21.63-21.24a4,4,0,1,0-5.61,5.7l24.44,24a4,4,0,0,0,5.6,0l89.6-88A4,4,0,0,0,242.85,77.2Z"}))]]),n=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:m}));n.displayName="ChecksIcon";var o=c(98662);let p=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M209.88,69.83A115.19,115.19,0,0,0,128,36h-.41C63.85,36.22,12,88.76,12,153.13V176a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V152A115.25,115.25,0,0,0,209.88,69.83ZM220,172H127.32l46.44-65A12,12,0,1,0,154.24,93L97.82,172H36V153.13c0-1.72,0-3.43.14-5.13H56a12,12,0,0,0,0-24H40.62c10.91-33.39,40-58.52,75.38-63.21V80a12,12,0,0,0,24,0V60.8A92,92,0,0,1,215.66,124H200a12,12,0,0,0,0,24h19.9c.06,1.33.1,2.66.1,4Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,152v24a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V153.13C24,95.65,70.15,48.2,127.63,48A104,104,0,0,1,232,152Z",opacity:"0.2"}),f.createElement("path",{d:"M207.06,72.67A111.24,111.24,0,0,0,128,40h-.4C66.07,40.21,16,91,16,153.13V176a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V152A111.25,111.25,0,0,0,207.06,72.67ZM224,176H119.71l54.76-75.3a8,8,0,0,0-12.94-9.42L99.92,176H32V153.13c0-3.08.15-6.12.43-9.13H56a8,8,0,0,0,0-16H35.27c10.32-38.86,44-68.24,84.73-71.66V80a8,8,0,0,0,16,0V56.33A96.14,96.14,0,0,1,221,128H200a8,8,0,0,0,0,16h23.67c.21,2.65.33,5.31.33,8Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,152v24a16,16,0,0,1-16,16H115.93a4,4,0,0,1-3.24-6.35L174.27,101a8.21,8.21,0,0,0-1.37-11.3,8,8,0,0,0-11.37,1.61l-72,99.06A4,4,0,0,1,86.25,192H32a16,16,0,0,1-16-16V153.13c0-1.79,0-3.57.13-5.33a4,4,0,0,1,4-3.8H48a8,8,0,0,0,8-8.53A8.17,8.17,0,0,0,47.73,128H23.92a4,4,0,0,1-3.87-5c12-43.84,49.66-77.13,95.52-82.28a4,4,0,0,1,4.43,4V72a8,8,0,0,0,8.53,8A8.17,8.17,0,0,0,136,71.73V44.67a4,4,0,0,1,4.43-4A112.18,112.18,0,0,1,236.23,123a4,4,0,0,1-3.88,5H208.27a8.17,8.17,0,0,0-8.25,7.47,8,8,0,0,0,8,8.53h27.92a4,4,0,0,1,4,3.86C240,149.23,240,150.61,240,152Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M205.65,74.08A109.26,109.26,0,0,0,128,42h-.39C67.17,42.21,18,92.06,18,153.13V176a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V152A109.3,109.3,0,0,0,205.65,74.08ZM226,176a2,2,0,0,1-2,2H115.78l57.07-78.47a6,6,0,0,0-9.7-7.06L100.94,178H32a2,2,0,0,1-2-2V153.13A102.36,102.36,0,0,1,30.62,142H56a6,6,0,0,0,0-12H32.71C42.6,88.4,78.53,56.86,122,54.19V80a6,6,0,0,0,12,0V54.19A98.05,98.05,0,0,1,223.53,130H200a6,6,0,0,0,0,12h25.5c.33,3.3.5,6.64.5,10Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M207.06,72.67A111.24,111.24,0,0,0,128,40h-.4C66.07,40.21,16,91,16,153.13V176a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V152A111.25,111.25,0,0,0,207.06,72.67ZM224,176H119.71l54.76-75.3a8,8,0,0,0-12.94-9.42L99.92,176H32V153.13c0-3.08.15-6.12.43-9.13H56a8,8,0,0,0,0-16H35.27c10.32-38.86,44-68.24,84.73-71.66V80a8,8,0,0,0,16,0V56.33A96.14,96.14,0,0,1,221,128H200a8,8,0,0,0,0,16h23.67c.21,2.65.33,5.31.33,8Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.23,75.5A107.37,107.37,0,0,0,127.62,44C68.28,44.21,20,93.16,20,153.13V176a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V152A107.25,107.25,0,0,0,204.23,75.5ZM228,176a4,4,0,0,1-4,4H111.85l59.38-81.65a4,4,0,1,0-6.46-4.7L102,180H32a4,4,0,0,1-4-4V153.13A103.42,103.42,0,0,1,28.84,140H56a4,4,0,0,0,0-8H30.21C39.59,87.66,77.84,53.93,124,52.09V80a4,4,0,0,0,8,0V52.08A100.08,100.08,0,0,1,226,132H200a4,4,0,0,0,0,8h27.29a101.6,101.6,0,0,1,.71,12Z"}))]]),q=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:p}));q.displayName="GaugeIcon";var r=c(3856),s=c(94443);let t=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),u=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:t}));u.displayName="ClockIcon";var v=c(56905);let w=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"}))]]),x=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:w}));x.displayName="BrowserIcon";let y=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M87.5,151.52l64-64a12,12,0,0,1,17,17l-64,64a12,12,0,0,1-17-17Zm131-114a60.08,60.08,0,0,0-84.87,0L103.51,67.61a12,12,0,0,0,17,17l30.07-30.06a36,36,0,0,1,50.93,50.92L171.4,135.52a12,12,0,1,0,17,17l30.08-30.06A60.09,60.09,0,0,0,218.45,37.55ZM135.52,171.4l-30.07,30.08a36,36,0,0,1-50.92-50.93l30.06-30.07a12,12,0,0,0-17-17L37.55,133.58a60,60,0,0,0,84.88,84.87l30.06-30.07a12,12,0,0,0-17-17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M209.94,113.94l-96,96a48,48,0,0,1-67.88-67.88l96-96a48,48,0,0,1,67.88,67.88Z",opacity:"0.2"}),f.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM144.56,173.66l-21.45,21.45a44,44,0,0,1-62.22-62.22l21.45-21.46a8,8,0,0,1,11.32,11.31L72.2,144.2a28,28,0,0,0,39.6,39.6l21.45-21.46a8,8,0,0,1,11.31,11.32Zm-34.9-16a8,8,0,0,1-11.32-11.32l48-48a8,8,0,0,1,11.32,11.32Zm85.45-34.55-21.45,21.45a8,8,0,0,1-11.32-11.31L183.8,111.8a28,28,0,0,0-39.6-39.6L122.74,93.66a8,8,0,0,1-11.31-11.32l21.46-21.45a44,44,0,0,1,62.22,62.22Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.25,91.75a6,6,0,0,1,0,8.49l-64,64a6,6,0,0,1-8.49-8.48l64-64A6,6,0,0,1,164.25,91.75ZM214.2,41.8a54.07,54.07,0,0,0-76.38,0L107.75,71.85a6,6,0,0,0,8.49,8.49l30.07-30.06a42,42,0,0,1,59.41,59.41l-30.08,30.07a6,6,0,1,0,8.49,8.49l30.07-30.07A54,54,0,0,0,214.2,41.8ZM139.76,175.64l-30.07,30.08a42,42,0,0,1-59.41-59.41l30.06-30.07a6,6,0,0,0-8.49-8.49l-30,30.07a54,54,0,0,0,76.38,76.39l30.07-30.08a6,6,0,0,0-8.49-8.49Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.84,93.16a4,4,0,0,1,0,5.66l-64,64a4,4,0,0,1-5.66-5.66l64-64A4,4,0,0,1,162.84,93.16Zm49.95-49.95a52.07,52.07,0,0,0-73.56,0L109.17,73.27a4,4,0,0,0,5.65,5.66l30.07-30.06a44,44,0,0,1,62.24,62.24l-30.07,30.06a4,4,0,0,0,5.66,5.66l30.07-30.06A52.07,52.07,0,0,0,212.79,43.21ZM141.17,177.06l-30.06,30.07a44,44,0,0,1-62.24-62.24l30.06-30.06a4,4,0,0,0-5.66-5.66L43.21,139.23a52,52,0,0,0,73.56,73.56l30.06-30.07a4,4,0,1,0-5.66-5.66Z"}))]]),z=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:y}));z.displayName="LinkSimpleIcon";let A=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M148,108a12,12,0,0,1,12-12h28a12,12,0,0,1,0,24H160A12,12,0,0,1,148,108Zm40,28H168a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24Zm48-80V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212ZM58.28,159.37A43.82,43.82,0,0,1,71.53,142a36,36,0,1,1,56.94,0,43.84,43.84,0,0,1,13.26,17.37,12,12,0,0,1-22.15,9.26C116.48,161.19,108.42,156,100,156s-16.47,5.2-19.59,12.63a12,12,0,1,1-22.13-9.26ZM88,120a12,12,0,1,0,12-12A12,12,0,0,0,88,120Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V56A8,8,0,0,0,216,48ZM96,144a24,24,0,1,1,24-24A24,24,0,0,1,96,144Z",opacity:"0.2"}),f.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M112,120a16,16,0,1,1-16-16A16,16,0,0,1,112,120ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM135.75,166a39.76,39.76,0,0,0-17.19-23.34,32,32,0,1,0-45.12,0A39.84,39.84,0,0,0,56.25,166a8,8,0,0,0,15.5,4c2.64-10.25,13.06-18,24.25-18s21.62,7.73,24.25,18a8,8,0,1,0,15.5-4ZM200,144a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,144Zm0-32a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,112Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M198,112a6,6,0,0,1-6,6H152a6,6,0,0,1,0-12h40A6,6,0,0,1,198,112Zm-6,26H152a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm38-82V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2ZM133.81,166.51a6,6,0,0,1-11.62,3C119.34,158.38,108.08,150,96,150s-23.33,8.38-26.19,19.5a6,6,0,0,1-11.62-3A38,38,0,0,1,76.78,143a30,30,0,1,1,38.45,0A38,38,0,0,1,133.81,166.51ZM96,138a18,18,0,1,0-18-18A18,18,0,0,0,96,138Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M196,112a4,4,0,0,1-4,4H152a4,4,0,0,1,0-8h40A4,4,0,0,1,196,112Zm-4,28H152a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8Zm36-84V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4ZM131.87,167a4,4,0,1,1-7.74,2C121.06,157,109,148,96,148s-25,9-28.13,21A4,4,0,0,1,64,172a3.87,3.87,0,0,1-1-.13A4,4,0,0,1,60.13,167a36.28,36.28,0,0,1,20.43-23.66,28,28,0,1,1,30.88,0A36.2,36.2,0,0,1,131.87,167ZM96,140a20,20,0,1,0-20-20A20,20,0,0,0,96,140Z"}))]]),B=f.forwardRef((a,b)=>f.createElement(g.A,{ref:b,...a,weights:A}));B.displayName="IdentificationCardIcon";var C=c(86572);let D={"sign-in":e.U,network:i,password:j.L,"worker-secret":k.o,"auto-run-brake":l.v,verification:n,"repair-turns":o.P,"run-budget":q,"root-agent":r.n,"mcp-server":s.X,timezone:u,"install-notes":v.c,workspaces:x,urls:z,session:B};function E({rows:a,panels:b}){return(0,d.jsx)("div",{className:"flex flex-col gap-8","data-testid":"settings-sections",children:a.map(a=>{let c=D[a.id],e=b[a.id]??null;return(0,d.jsxs)("section",{id:a.id,"data-testid":`setting-section-${a.id}`,className:"flex flex-col gap-4",children:[(0,d.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-ink-3",children:(0,d.jsx)(c,{size:16})}),(0,d.jsx)("h2",{className:"text-title-16 text-ink",children:a.name}),a.tag&&(0,d.jsx)(C.E,{variant:a.tag.variant,children:a.tag.label})]}),(0,d.jsx)("p",{className:"text-body-13 text-ink-3",children:a.lede})]}),null===e?(0,d.jsxs)("p",{className:"text-body-13 text-warn","data-testid":`setting-unread-${a.id}`,children:[a.value,". Reload the page, and check the runner is up."]}):(0,d.jsx)("div",{className:"rounded-lg border border-rule-2 bg-paper p-4",children:e})]},a.id)})})}},15563:(a,b,c)=>{"use strict";c.d(b,{P:()=>e});var d=c(47235);function e({label:a,sub:b,children:c}){return(0,d.jsxs)("div",{className:"flex items-center gap-3.5 px-[18px] py-3.5 border-b border-rule-2 last:border-b-0 text-body-14 leading-[1.4]! text-ink-2",children:[(0,d.jsxs)("span",{className:"flex-1 min-w-0 text-ink-2",children:[a,b&&(0,d.jsx)("span",{className:"block text-xs text-ink-4 mt-0.5",children:b})]}),(0,d.jsx)("span",{className:"inline-flex items-center gap-2 text-body-14 text-ink-2 shrink-0",children:c})]})}},16602:a=>{"use strict";a.exports=import("@whiskeysockets/baileys")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},16815:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{"0003c8b1d9675ca3b866e571ecfccdf451a6548876":()=>i.o,"009da2e78d920f04780360ea76263a23237165f799":()=>f.k,"00a6c0839636c57e0371254141b4db858db12631e6":()=>g.te,"00c3be782c080ad8be4416c2879acc7291a274f2df":()=>g.A6,"00eaddb0c43f26c8a556058fd20cf5112388ae3e7c":()=>g.S9,"400665a0d87b3323be0fc2971604d236827a13fa98":()=>h.uR,"402022959bb4b79f9f0c8e964c704a48a1d00bc07c":()=>g.dP,"4026915e0639e2a3036ebd97c417f8f63ca9bf41d7":()=>g.gL,"402859cccaa838a07dc7cd2308e312f9cb9a683f17":()=>g.$A,"40325f338db7a051d7d07e1a7452d919dc423b175f":()=>g.Vr,"403279b461055b481ada2a19e540f1cb22544a6a00":()=>g.Kd,"403a0192dd920820d8a76f6463d4b1526092fee159":()=>g.zj,"403ab2c916980a707147a9ce21c45a8a3a60335e4f":()=>g.fn,"4049f2a1bb350e93f7631ab4e84189e1ad83c6ecc5":()=>e.EY,"405dfcce02fef7d0a3fda80a8b15fcbf7b03cda19b":()=>g.O0,"4069326f867fb98ac631b7afeff956d8f17c3f5354":()=>e.My,"406968a6961a014cb45a807a92b86d0b49a59dc018":()=>g.Vq,"4079b0c191a63419311f22f9da79f5782ff52146fe":()=>e.W8,"408adabacc8a0605757d5983f1bec860265f4c9a9a":()=>h.X2,"40a295c19727b838501244c5fdd3755658fab3db51":()=>e.sc,"40a3faf2e9a8347480ae956505565c62193af0b418":()=>h.lA,"40aa91332487c9e00a95903d224c75825e1aa65541":()=>g.t8,"40bb408ec389a7a605fc9758cfb4b4dd25d7fb6c26":()=>h.vU});var e=c(4420),f=c(27944),g=c(53675),h=c(34020),i=c(45193),j=a([f]);f=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},17390:(a,b,c)=>{"use strict";c.d(b,{default:()=>n});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("40b37d4e49bdb3ca466abea0b0f352c6a40359fe24",g.callServer,void 0,g.findSourceMapURL,"updateNetworkSettingsAction");var i=c(37241),j=c(24735),k=c(89386),l=c(98598),m=c(27339);function n({initial:a,formId:b}){let[c,g]=(0,e.useState)(a.configuredBind),[o,p]=(0,e.useTransition)(),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1);return(0,d.jsx)("form",{id:b,onSubmit:function(a){a.preventDefault(),p(async()=>{let a=await h({bind:c});a.ok?(f.oR.success("Network settings saved"),r(a.data.requiresRestart),t(a.data.authModeAligned)):f.oR.error(a.message)})},children:(0,d.jsxs)(m.v,{children:[(0,d.jsx)(i.t,{active:"loopback"===c,onClick:()=>g("loopback"),name:"Local only (127.0.0.1)",description:"Only this machine can reach the dashboard. No auth required by default."}),(0,d.jsx)(i.t,{active:"lan"===c,onClick:()=>g("lan"),name:"LAN (0.0.0.0) — accessible from your network",description:"Other devices on the same Wi-Fi can reach the dashboard. Sign-in required (local-auth)."}),"lan"===c&&a.lanAddresses.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.A,{variant:"info",children:"Any device on the same Wi-Fi can open the dashboard. Combine with email + password auth to avoid unintended access."}),a.lanAddresses.map(b=>{let c=`http://${b}:${a.webPort}`;return(0,d.jsx)(k.O,{subtitle:"From your phone or another device on the same network, open:",url:c},b)}),(0,d.jsx)("p",{className:"text-body-13 leading-[1.5]! text-ink-4 mt-2.5 mx-1",children:"Windows Defender may prompt the first time another device tries to connect — allow access on private networks."}),(0,d.jsx)(j.A,{variant:"warn",children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"LAN exposes this dashboard beyond your machine"}),"Anyone on the same Wi-Fi can attempt to reach the URL above. Keep email + password auth enabled and avoid open / public networks."]})})]}),"lan"===c&&0===a.lanAddresses.length&&(0,d.jsx)(j.A,{variant:"warn",children:"No LAN interface detected. Make sure this machine is connected to a network before enabling LAN access."}),!a.configPathExists&&(0,d.jsxs)(j.A,{variant:"warn",children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Config file missing"}),"~/.nodalai/config.json wasn't found. Save will fail until you've run"," ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents init"})," at least once."]}),s&&(0,d.jsx)(j.A,{variant:"info",title:"Sign-in enabled.",children:"LAN access requires email + password auth, so it was switched on. After the restart, the login page will ask you to create your account. Your agents and settings are kept."}),q&&(0,d.jsxs)(j.A,{variant:"info",title:"Saved. Restart required.",children:["Run ",(0,d.jsx)("code",{className:"text-mono-12",children:"nodal-agents down && nodal-agents up"})," to activate the new network mode."]}),(0,d.jsx)(l.h,{onCancel:function(){g(a.configuredBind),r(!1),t(!1)},pending:o})]})})}},17393:a=>{"use strict";a.exports=require("mammoth")},18595:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(27557),e=c(40236),f=c(37599);function g({display:a,value:b,href:c}){async function h(){try{await navigator.clipboard.writeText(b),e.oR.success("Path copied")}catch{e.oR.error("Could not copy")}}let i=(0,d.jsx)("span",{title:b,className:"block truncate rounded-md bg-hover px-2 py-1 text-mono-13 text-ink-2",children:a});return(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1",children:c?(0,d.jsx)("a",{href:c,title:b,className:"block min-w-0 hover:opacity-80",children:i}):i}),(0,d.jsxs)("button",{type:"button",onClick:h,title:"Copy full path",className:"inline-flex h-[28px] shrink-0 items-center gap-1.5 rounded-md border border-rule-2 px-2.5 text-medium-12 text-ink-3 transition-colors hover:border-rule hover:text-ink",children:[(0,d.jsx)(f.Q,{size:13})," Copy"]})]})}},18805:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>v,handler:()=>x,routeModule:()=>w});var d=c(82735),e=c(27975),f=c(93368),g=c(80795),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,19189))),j=(0,d.p)(()=>Promise.resolve().then(c.bind(c,29481))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,53503,23))),l=(0,d.p)(()=>Promise.resolve().then(c.bind(c,22427))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,50922,23))),n=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,597,23))),o=(0,d.p)(()=>Promise.resolve().then(c.bind(c,44513))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,53503,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,50922,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,597,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,53503,23))),t={children:["",{children:["(dashboard)",{children:["settings",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,35184))),"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\page.tsx"]}]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[o,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\layout.tsx"],"global-error":[p,"next/dist/client/components/builtin/global-error.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"]},[]]},{layout:[i,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\layout.tsx"],error:[j,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\error.tsx"],"global-error":[k,"next/dist/client/components/builtin/global-error.js"],"not-found":[l,"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\not-found.tsx"],forbidden:[m,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[n,"next/dist/client/components/builtin/unauthorized.js"]},[]]}.children,u=(0,e.H)({tree:t,page:"/(dashboard)/settings/page",pathname:"/settings",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),v=u.__next_app__,w=u.routeModule,x=u.handler},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21213:a=>{"use strict";a.exports=import("apify-client")},21463:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\McpServerSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\McpServerSection.tsx","default")},21820:a=>{"use strict";a.exports=require("os")},21901:(a,b,c)=>{"use strict";c.d(b,{U:()=>j});var d=c(18742);let e=[{value:"propose_confirm",name:"Propose & confirm",description:"While doing what you ask, it pauses for your approval before every action: shell commands, skill scripts, connector writes and the ROOT meta-tools (create agent, skill…) all wait in the Approvals queue before running."},{value:"destructive_gate",name:"Autonomous, gate destructive",description:"While doing what you ask, ordinary actions run without interrupting you (normal commands, scripts, meta-tools). But destructive or heavy ones still ask first: deletions, software installs / large downloads, killing processes, disk operations. The sweet spot — no friction for routine work, a checkpoint before anything risky."},{value:"fully_autonomous",name:"Fully autonomous",description:"While doing what you ask, nothing pauses for approval — every command, script and connector action, plus the ROOT meta-tools, run straight through. Only truly catastrophic shell commands (wiping the disk, etc.) still force a confirmation. Maximum power, no friction: use only if you fully trust it."}];var f=c(17639);let g="Could not be read",h={"local-auth":"Email and password","local-trust":"No sign-in","bearer-token":"Bearer token"},i={"local-auth":{variant:"ok",label:"PASSWORD"},"bearer-token":{variant:"ok",label:"TOKEN"},"local-trust":{variant:"warn",label:"NO AUTH"}};function j(a){var b,c,j;let k,l,m,n,o,p,q=[];return q.push({id:"sign-in",group:"access",name:"Sign-in",lede:"Choose how users sign in to this workspace.",value:(k=h[a.authMode],a.security?.googleConfigured?`${k}, Google sign-in on`:k),tag:i[a.authMode]}),q.push({id:"network",group:"access",name:"Network access",lede:"Control which devices can reach the dashboard.",value:function(a){if(!a)return g;if("loopback"===a.configuredBind)return"Local only, 127.0.0.1";let b=a.lanAddresses[0];return b?`http://${b}:${a.webPort}`:"LAN, 0.0.0.0"}(a.network),tag:null===a.network?{variant:"warn",label:"UNREAD"}:"lan"===a.network.configuredBind?{variant:"warn",label:"LAN"}:{variant:"ok",label:"LOCAL"}}),"local-auth"===a.authMode&&q.push({id:"password",group:"access",name:"Password",lede:"Change your sign-in password. Other signed-in devices are signed out.",value:"Change it here"}),q.push({id:"worker-secret",group:"access",name:"Worker secret",lede:"The shared secret the web app uses to call the runner. Set by the installer.",value:a.workerSecretConfigured?"Set at install":"Missing, runner calls will 403",tag:a.workerSecretConfigured?{variant:"ok",label:"CONFIGURED"}:{variant:"warn",label:"MISSING"}}),q.push({id:"auto-run-brake",group:"safety",name:"Auto-run brake",lede:"The workspace-wide emergency brake. Pause every auto-run at once, release to re-arm.",value:null===a.autoRunPause?g:a.autoRunPause.autoRunPaused?"Paused":"Released",toggle:a.autoRunPause?.autoRunPaused??!1}),q.push({id:"verification",group:"safety",name:"Verification surfaces",lede:"Which ways of working get proven by a project's proof commands.",value:function(a){if(!a)return g;let b=d.XWN.filter(b=>a.surfaces[b]);return 0===b.length?"Nothing is verified":b.map(a=>f.Oi[a].label).join(", ")}(a.verification),tag:null===a.verification?{variant:"warn",label:"UNREAD"}:(l=d.XWN.filter(b=>a.verification.surfaces[b]).length,{variant:l===(m=d.XWN.length)?"ok":"warn",label:`${l} OF ${m}`})}),q.push({id:"repair-turns",group:"safety",name:"Repair turns",lede:"How many times a run gets to fix itself when its proof fails, and what else bounds a run.",value:null===a.proofRepair?g:0===a.proofRepair.repairAttempts?"None, a failed proof ends the run":1===a.proofRepair.repairAttempts?"One repair turn":`Up to ${a.proofRepair.repairAttempts} repair turns`,tag:null===a.proofRepair?{variant:"warn",label:"UNREAD"}:{variant:"ok",label:`${a.proofRepair.repairAttempts} MAX`}}),q.push({id:"run-budget",group:"safety",name:"Run budget",lede:"What one run may cost and how long it may work. A run that reaches it stops and keeps what it wrote.",value:null===a.runBudget?g:(b=a.runBudget.maxRunCostUsd,c=a.runBudget.maxRunHours,n=b>0?`$${b.toFixed(2)} per run`:"No cost ceiling",o=c>0?`${c} h of work`:"no time limit",`${n}, ${o}`),...null===a.runBudget?{tag:{variant:"warn",label:"UNREAD"}}:{}}),q.push({id:"root-agent",group:"safety",name:"ROOT agent",lede:"Your first orchestrator runs this workspace on your behalf. Tune its powers here.",value:function(a){let b=a.agents.find(b=>b.id===a.rootAgentId);if(!b)return"No ROOT agent yet";let c=e.find(b=>b.value===a.rootAutonomy);return c?`${b.name}, ${c.name.toLowerCase()}`:b.name}(a)}),q.push({id:"mcp-server",group:"safety",name:"MCP server",lede:"External clients can hand work to the root agent through Nodal's MCP server.",value:null===a.mcpServer?g:a.mcpServer.enabled?"External clients reach the root agent":"Closed to external clients",toggle:a.mcpServer?.enabled??!1}),q.push({id:"timezone",group:"workspace",name:"Timezone",lede:"The zone your agents use to tell the time and schedule automations.",value:null===a.timezone?g:a.timezone.isExplicit?a.timezone.timezone:`${a.timezone.timezone}, detected`}),q.push({id:"install-notes",group:"workspace",name:"Install notes",lede:"Machine-specific context injected into every agent's runtime block.",value:function(a){if(null===a)return g;let b=a.trim().split("\n")[0]?.trim()??"";return""===b?"Nothing yet":b.length>60?`${b.slice(0,59)}…`:b}(a.installNotes),tag:null===a.installNotes?{variant:"warn",label:"UNREAD"}:""===a.installNotes.trim()?{variant:"warn",label:"EMPTY"}:{variant:"ok",label:"SET"}}),q.push({id:"workspaces",group:"workspace",name:"Workspaces",lede:"Each workspace scopes its own agents, credentials and data.",value:(p=(j=a.workspaces).find(a=>a.active))?j.length>1?`${p.name}, ${p.role}, ${j.length} total`:p.name:0===j.length?"No workspace found":`${j.length} workspaces`,tag:a.workspaces.some(a=>a.active)?{variant:"ok",label:"ACTIVE"}:{variant:"warn",label:"NONE"}}),q.push({id:"urls",group:"advanced",name:"URLs",lede:"Where this install answers, and where its shared folder is. Read only.",value:"App, runner, webhooks, shared folder"}),q.push({id:"session",group:"advanced",name:"Session",lede:"The identifiers of your account and this workspace in the local DB. Read only.",value:"User and workspace identifiers"}),q}},23658:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\AutoRunPauseSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\AutoRunPauseSection.tsx","default")},24735:(a,b,c)=>{"use strict";c.d(b,{A:()=>j});var d=c(27557),e=c(47728),f=c(84249),g=c(34252);let h={info:{bg:"bg-run-bg",icon:"text-conn-vivid",iconColor:"text-conn-vivid"},warn:{bg:"bg-warn-bg",icon:"text-skill-vivid",iconColor:"text-skill-vivid"},tip:{bg:"bg-paper border border-rule-2",icon:"text-ink-3",iconColor:"text-ink-3"}},i={info:e.R,warn:f.N,tip:g.g};function j({variant:a,title:b,children:c,className:e=""}){let f=h[a],g=i[a];return(0,d.jsxs)("div",{className:`flex items-start gap-2.5 rounded-[9px] px-3.5 py-2.5 text-body-13 leading-[1.5]! text-ink-2 ${f.bg} ${e}`,children:[(0,d.jsx)(g,{size:16,weight:"regular",className:`mt-0.5 shrink-0 ${f.iconColor}`}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[b&&(0,d.jsx)("b",{className:"block font-medium text-ink",children:b}),c]})]})}},25724:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\PasswordForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\PasswordForm.tsx","default")},26040:a=>{"use strict";a.exports=require("pdfjs-dist")},26071:(a,b,c)=>{"use strict";c.d(b,{L:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="EyeSlashIcon";let h=g},27014:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(27557),e=c(44928),f=c(40236),g=c(27339),h=c(98598),i=c(37422);function j({formId:a}){let[b,c]=(0,e.useState)(""),[k,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(!1);function q(){c(""),l(""),n("")}async function r(a){if(a.preventDefault(),k!==m)return void f.oR.error("New passwords do not match.");if(k.length<8)return void f.oR.error("New password must be at least 8 characters.");p(!0);try{let a=await fetch("/api/auth/change-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:b,newPassword:k,revokeOtherSessions:!0})});if(!a.ok){let b=await a.json().catch(()=>null);f.oR.error(400===a.status?b?.message??"Current password is incorrect.":b?.message??"Could not change the password.");return}q(),f.oR.success("Password changed. Other signed-in devices were signed out.")}catch{f.oR.error("Network error. Please try again.")}finally{p(!1)}}return(0,d.jsx)("form",{id:a,onSubmit:r,children:(0,d.jsxs)(g.v,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(i.A,{type:"password",value:b,onChange:a=>c(a.target.value),placeholder:"Current password",autoComplete:"current-password",required:!0}),(0,d.jsx)(i.A,{type:"password",value:k,onChange:a=>l(a.target.value),placeholder:"New password (min. 8 characters)",autoComplete:"new-password",required:!0}),(0,d.jsx)(i.A,{type:"password",value:m,onChange:a=>n(a.target.value),placeholder:"Repeat new password",autoComplete:"new-password",required:!0})]}),(0,d.jsx)(h.h,{onCancel:q,pending:o,saveLabel:"Change password"})]})})}},27339:(a,b,c)=>{"use strict";c.d(b,{v:()=>e});var d=c(27557);function e({label:a,children:b}){return(0,d.jsxs)("div",{className:"mt-3.5 bg-paper border border-rule-2 rounded-[14px] p-5",children:[a&&(0,d.jsx)("div",{className:"text-body-14 leading-none! text-ink-3 mb-2.5",children:a}),b]})}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31137:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(27557);let e={sm:"h-5 w-9",md:"h-[22px] w-[38px]"},f={sm:"h-3.5 w-3.5",md:"h-4 w-4"};function g({checked:a,onChange:b,disabled:c,size:h="md",ariaLabel:i,ariaLabelledBy:j,ariaDescribedBy:k,readOnly:l=!1}){let m=`relative inline-flex shrink-0 items-center rounded-full ${e[h]} ${a?"bg-ok":"bg-ink-4"}`,n=(0,d.jsx)("span",{className:`pointer-events-none inline-block rounded-full bg-paper ${l?"":"transition-transform duration-200"} ${f[h]} ${a?"translate-x-[19px]":"translate-x-[3px]"}`});return l?(0,d.jsx)("span",{role:"img","aria-label":i??(a?"On":"Off"),"data-state":a?"on":"off",className:`${m} ${c?"opacity-50":""}`,children:n}):(0,d.jsx)("button",{type:"button",role:"switch","aria-checked":a,"aria-label":i,"aria-labelledby":j,"aria-describedby":k,disabled:c,onClick:b,className:`${m} cursor-pointer transition-colors duration-200 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-conn-vivid/50 disabled:cursor-not-allowed disabled:opacity-50`,children:n})}},31421:a=>{"use strict";a.exports=require("node:child_process")},31522:(a,b,c)=>{"use strict";c.d(b,{S:()=>e});var d=c(48601);let e=(0,d.createServerReference)("4009d5668a24a7bcf59343fa840c767315a343829c",d.callServer,void 0,d.findSourceMapURL,"setRootAgentAction")},32467:a=>{"use strict";a.exports=require("node:http2")},32519:a=>{"use strict";a.exports=import("@tavily/core")},33537:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\SecurityForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\SecurityForm.tsx","default")},33873:a=>{"use strict";a.exports=require("path")},34252:(a,b,c)=>{"use strict";c.d(b,{g:()=>h});var d=c(44928),e=c(46895),f=c(50626);let g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f.A}));g.displayName="LightbulbIcon";let h=g},34589:a=>{"use strict";a.exports=require("node:assert")},34631:a=>{"use strict";a.exports=require("tls")},35184:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>E,dynamic:()=>G});var e=c(47235),f=c(57191),g=c.n(f),h=c(12406),i=c(18742),j=c(33537),k=c(25724),l=c(89901),m=c(46110),n=c(45501),o=c(23658),p=c(68819),q=c(84647),r=c(89240),s=c(21463),t=c(64983),u=c(11194),v=c(59978),w=c(2143),x=c(21901),y=c(80241),z=c(58373),A=c(15563),B=c(35365),C=c(57277),D=a([h]);h=(D.then?(await D)():D)[0];let G="force-dynamic";async function E({searchParams:a}){let b=await a,[c,d,f,D,G,H,I,J,K,L,M,N,O]=await Promise.all([(0,h.cjC)(),(0,h.oA4)(),(0,h.M3i)(),(0,h.zh4)(),(0,h.JD9)(),(0,h.$zY)(),(0,h.j4T)(),(0,h.UK3)(),(0,h.A3_)(),(0,h.rKW)(),(0,h.wdR)(),(0,h.dSg)(),(0,h.jjn)()]),P=D.ok?D.data:[];if(!c.ok)return(0,e.jsx)(y.A,{title:"Settings",children:(0,e.jsx)("div",{className:"rounded-2xl border border-warn/40 bg-warn-bg p-5 text-sm text-warn",children:c.message})});let Q=c.data,R=G.ok?G.data.grants:i.zw,S=(0,x.U)({authMode:Q.authMode,workerSecretConfigured:Q.workerSecretConfigured,security:d.ok?d.data:null,network:f.ok?f.data:null,autoRunPause:I.ok?I.data:null,verification:J.ok?J.data:null,proofRepair:K.ok?K.data:null,runBudget:L.ok?L.data:null,mcpServer:M.ok?M.data:null,timezone:O.ok?O.data:null,installNotes:N.ok?N.data:null,workspaces:P,agents:H.ok?H.data:[],rootAgentId:G.ok?G.data.rootAgentId:null,rootAutonomy:R.autonomy}),T={"sign-in":d.ok?(0,e.jsx)(j.default,{initial:d.data}):null,network:f.ok?(0,e.jsx)(l.default,{initial:f.data}):null,password:"local-auth"===Q.authMode?(0,e.jsx)(k.default,{}):null,"worker-secret":(0,e.jsx)(F,{configured:Q.workerSecretConfigured}),"auto-run-brake":I.ok?(0,e.jsx)(o.default,{initial:I.data}):null,verification:J.ok?(0,e.jsx)(p.default,{initial:J.data}):null,"repair-turns":K.ok?(0,e.jsx)(q.default,{initial:K.data}):null,"run-budget":L.ok?(0,e.jsx)(r.default,{initial:L.data}):null,"root-agent":(0,e.jsx)(n.default,{agents:H.ok?H.data:[],initialRootAgentId:G.ok?G.data.rootAgentId:null,initialGrants:R}),"mcp-server":M.ok?(0,e.jsx)(s.default,{initial:M.data}):null,timezone:O.ok?(0,e.jsx)(u.default,{initial:O.data.timezone,isExplicit:O.data.isExplicit}):null,"install-notes":N.ok?(0,e.jsx)(t.default,{initial:N.data}):null,workspaces:(0,e.jsx)(m.default,{initial:P}),urls:(0,e.jsxs)(z.n,{children:[(0,e.jsx)(A.P,{label:"App URL",children:(0,e.jsx)(B.A,{children:Q.appUrl})}),(0,e.jsx)(A.P,{label:"Runner URL",children:(0,e.jsx)(B.A,{children:Q.runnerUrl})}),(0,e.jsx)(A.P,{label:"Webhooks",sub:"Each automation trigger has its own webhook URL.",children:(0,e.jsx)(g(),{href:"/automations",className:"text-xs text-ink-3 transition-colors hover:text-ink-2",children:"Manage webhooks in Automations"})}),(0,e.jsx)(A.P,{label:"Shared workspace",sub:"The folder your agents read and write together. Open it to grab generated files.",children:(0,e.jsx)(C.default,{display:Q.sharedWorkspacePathShort,value:Q.sharedWorkspacePath,href:Q.sharedWorkspaceUrl})})]}),session:(0,e.jsxs)(z.n,{children:[(0,e.jsx)(A.P,{label:"User ID",sub:"Your account identifier in the local DB.",children:(0,e.jsx)(B.A,{children:Q.user.userId})}),(0,e.jsx)(A.P,{label:"Workspace ID",sub:"Entity identifier scoped to this install.",children:(0,e.jsx)(B.A,{children:Q.user.entityId})})]})},U=(0,w.B2)(b),V=new Set(U.ids),W=S.filter(a=>V.has(a.id));return(0,e.jsx)(y.A,{title:U.label,subtitle:U.lede,children:(0,e.jsx)(v.default,{rows:W,panels:T})})}function F({configured:a}){return(0,e.jsxs)(z.n,{children:[(0,e.jsx)(A.P,{label:"Status",children:a?(0,e.jsx)("span",{className:"text-medium-14 text-ink-2",children:"Set at install"}):(0,e.jsx)("span",{className:"text-medium-14 text-warn",children:"Missing, runner calls will 403"})}),(0,e.jsx)(A.P,{label:"Where it lives",sub:"Set by the installer in the environment of the web app and the runner. Restart the stack after changing it.",children:(0,e.jsx)(B.A,{children:"WORKER_SECRET"})})]})}d()}catch(a){d(a)}})},35365:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(47235);function e({children:a,className:b=""}){return(0,d.jsx)("code",{className:`inline-flex items-center rounded-[5px] bg-hover px-1.5 py-1 text-mono-12 leading-none! tracking-[0.02em] text-ink-2 ${b}`,children:a})}},35542:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(27557),e=c(55703),f=c(44928);function g({placeholder:a="Search agents, skills, runs…",keyboardShortcut:b=!0,onSubmit:c,className:h=""}){let i=(0,f.useRef)(null);return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),c?.(i.current?.value??"")},className:`flex h-[34px] min-w-[280px] items-center gap-2 rounded-md border border-rule-2 bg-paper px-3 text-body-13 text-ink-4 ${h}`,children:[(0,d.jsx)(e.e,{size:13,className:"shrink-0"}),(0,d.jsx)("input",{ref:i,type:"search",placeholder:a,className:"h-full flex-1 border-0 bg-transparent text-body-14 leading-none! text-ink outline-none placeholder:text-ink-4"}),(0,d.jsx)("span",{className:"rounded-[5px] border border-rule bg-black/5 px-1.5 py-[1px] text-mono-12 leading-none! text-ink-4 dark:bg-white/[0.06]",children:"/"})]})}},37067:a=>{"use strict";a.exports=require("node:http")},37241:(a,b,c)=>{"use strict";c.d(b,{t:()=>e});var d=c(27557);function e({active:a,onClick:b,name:c,description:f,children:g,testId:h}){return(0,d.jsxs)("div",{role:"radio","aria-checked":a,"data-testid":h,tabIndex:0,onClick:b,onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),b())},className:["flex items-start gap-3.5 px-4 py-3.5 rounded-[10px] border cursor-pointer mb-2 transition-[border-color,background-color] duration-[120ms]",a?"border-conn-vivid bg-conn-vivid/[0.06]":"border-rule-2 bg-paper hover:border-rule"].join(" "),children:[(0,d.jsx)("span",{className:["mt-0.5 flex-shrink-0 w-[18px] h-[18px] rounded-full border-[1.6px] flex items-center justify-center",a?"border-conn-vivid":"border-rule"].join(" "),children:a&&(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-conn-vivid"})}),(0,d.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"block text-medium-14 leading-[1.3]! text-ink",children:c}),(0,d.jsx)("span",{className:"block text-body-13 leading-[1.4]! text-ink-3 mt-0.5",children:f}),g]})]})}},37540:a=>{"use strict";a.exports=require("node:console")},38496:a=>{"use strict";a.exports=require("@notionhq/client")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41060:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\SearchBox.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\SearchBox.tsx","default")},41115:(a,b,c)=>{"use strict";c.d(b,{default:()=>o});var d=c(27557),e=c(44928),f=c(81023),g=c(40236),h=c(31522),i=c(54029),j=c(73920),k=c(27339),l=c(98598),m=c(37241),n=c(44414);function o({agents:a,initialRootAgentId:b,initialGrants:c,formId:p}){let q=(0,f.useRouter)(),[r,s]=(0,e.useTransition)(),t=a.find(a=>a.id===b)??null,[u,v]=(0,e.useState)(c??j.zw);return(0,d.jsx)(d.Fragment,{children:null===t?(0,d.jsx)("div",{className:"mt-3.5 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:(0,d.jsxs)("p",{className:"text-body-14 text-ink-3",children:["No ROOT agent yet."," ",(0,d.jsx)("a",{href:"/agents",className:"font-medium text-ink underline decoration-rule underline-offset-[3px] hover:decoration-ink-3",children:"Create an orchestrator agent"})," ","— the first one you create becomes this workspace's ROOT automatically."]})}):(0,d.jsx)("form",{id:p,onSubmit:function(a){a.preventDefault(),s(async()=>{let a=await (0,h.S)({grants:u});a.ok?(g.oR.success("ROOT agent configuration saved"),q.refresh()):g.oR.error(a.message)})},children:(0,d.jsxs)(k.v,{children:[(0,d.jsxs)("div",{className:"mb-4",children:[(0,d.jsx)("div",{className:"mb-1.5 text-body-14 leading-none! text-ink-3",children:"ROOT agent"}),(0,d.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-rule bg-paper px-3 py-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:t.name}),(0,d.jsx)("span",{className:"rounded-full border border-rule-2 px-2 py-0.5 text-micro-11 uppercase tracking-wide text-ink-4",children:"Origin orchestrator"}),(0,d.jsx)("a",{href:"/settings/root-context",className:"ml-auto text-medium-13 text-ink-3 underline decoration-rule underline-offset-[3px] hover:text-ink hover:decoration-ink-3",children:"View & edit context →"})]})]}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mb-4",children:[(0,d.jsx)("div",{className:"mb-2 text-body-14 leading-none! text-ink-3",children:"Allowed actions"}),(0,d.jsx)("div",{className:"flex flex-col gap-1.5",children:[{key:"createAgent",label:"Create agents"},{key:"updateAgent",label:"Edit agents (model, personality, name)"},{key:"attachAgent",label:"Attach / detach sub-agents"},{key:"createSkill",label:"Create skills"},{key:"updateSkill",label:"Update skills"},{key:"assignSkill",label:"Assign / unassign skills"},{key:"createMcp",label:"Create MCP servers"},{key:"attachMcp",label:"Attach / detach MCP servers"},{key:"createConnector",label:"Create connectors"},{key:"attachConnector",label:"Attach / detach connectors"},{key:"manageSchedules",label:"Manage schedules (create / edit / pause cron)"}].map(({key:a,label:b})=>(0,d.jsx)(n.A,{tone:"connector",checked:u[a],onChange:()=>{v(b=>({...b,[a]:!b[a]}))},disabled:r,label:(0,d.jsx)("span",{className:"text-body-14 text-ink-2",children:b})},a))})]}),(0,d.jsxs)("div",{className:"mb-1",children:[(0,d.jsx)("div",{className:"mb-2.5 text-body-14 leading-none! text-ink-3",children:"Autonomy level"}),(0,d.jsx)("div",{role:"radiogroup","aria-label":"Autonomy level",children:i.u.map(a=>(0,d.jsx)(m.t,{active:u.autonomy===a.value,onClick:()=>{var b;return b=a.value,void v(a=>({...a,autonomy:b}))},name:a.name,description:a.description},a.value))})]})]}),(0,d.jsx)(l.h,{onCancel:function(){v(c??j.zw)},pending:r,saveLabel:"Save"})]})})})}},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44414:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(27557),e=c(44928);let f={ink:"accent-ink",agent:"accent-agent-vivid",skill:"accent-skill-vivid",connector:"accent-conn-vivid"};function g({label:a,tone:b="ink",id:c,className:h="",containerClassName:i="",...j}){let k=(0,e.useId)(),l=c??k,m=(0,d.jsx)("input",{id:l,type:"checkbox",className:`h-4 w-4 shrink-0 cursor-pointer rounded border-rule disabled:cursor-not-allowed disabled:opacity-50 ${f[b]} ${h}`,...j});return a?(0,d.jsxs)("label",{htmlFor:l,className:`flex cursor-pointer items-center gap-2 text-sm text-ink ${i}`,children:[m,a]}):(0,d.jsx)("div",{className:i,children:m})}},44708:a=>{"use strict";a.exports=require("node:https")},45193:(a,b,c)=>{"use strict";c.d(b,{o:()=>n});var d=c(62793),e=c(51455),f=c(15939),g=c(59538),h=c(63890),i=c(46190),j=c(24483),k=c(84969);function l(a){return{ok:!0,data:a}}async function m(){let a,b=(0,j.Iz)();try{let b=await (0,i.b3)();a=new Request("http://localhost/",{headers:b})}catch{a=new Request("http://localhost/")}let c=await (0,h.oC)(a,b);return(0,j.a1)(c,a)}async function n(){try{let a=await m(),b=(0,j.Lf)(),c=await b.select({id:f.vI.id}).from(f.V).innerJoin(f.vI,(0,f.eq)(f.vI.id,f.V.entityId)).where((0,f.eq)(f.V.userId,a.userId)).orderBy(f.vI.createdAt);if(0===c.length)return l([]);let d=[];for(let{id:a}of c){let[c]=await b.select({ms:f.jm.snapshotMs,takenAt:f.jm.takenAt,workspace:f.jm.workspace}).from(f.jm).innerJoin(f.ME,(0,f.eq)(f.ME.id,f.jm.jobId)).where((0,f.eq)(f.ME.entityId,a)).orderBy((0,f.i8)(f.jm.takenAt)).limit(1),h=(0,k._$)(a),i=null,j=null;try{if((await (0,e.stat)(h)).isDirectory()){let a=await (0,g.WI)(h);i={...a,sizeLabel:(0,g.z3)(a.bytes)}}else j="unreadable"}catch(a){j="ENOENT"===a.code?"absent":"unreadable"}d.push({workspaceId:a,path:h,measure:i,unmeasured:j,lastSnapshot:void 0===c?null:{ms:c.ms??null,takenAt:c.takenAt,workspace:c.workspace}})}return l(d)}catch(a){return console.error("[listWorkspaceFootprintsAction]",a),{ok:!1,code:"db_error",message:"Failed to read the workspace sizes"}}}(0,c(94669).D)([n]),(0,d.A)(n,"0003c8b1d9675ca3b866e571ecfccdf451a6548876",null)},45501:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\RootAgentSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\RootAgentSection.tsx","default")},45956:(a,b,c)=>{Promise.resolve().then(c.bind(c,23658)),Promise.resolve().then(c.bind(c,64983)),Promise.resolve().then(c.bind(c,21463)),Promise.resolve().then(c.bind(c,89901)),Promise.resolve().then(c.bind(c,25724)),Promise.resolve().then(c.bind(c,84647)),Promise.resolve().then(c.bind(c,45501)),Promise.resolve().then(c.bind(c,89240)),Promise.resolve().then(c.bind(c,33537)),Promise.resolve().then(c.bind(c,59978)),Promise.resolve().then(c.bind(c,11194)),Promise.resolve().then(c.bind(c,68819)),Promise.resolve().then(c.bind(c,46110)),Promise.resolve().then(c.bind(c,86585)),Promise.resolve().then(c.bind(c,57277)),Promise.resolve().then(c.bind(c,41060)),Promise.resolve().then(c.bind(c,90356)),Promise.resolve().then(c.t.bind(c,8570,23))},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46079:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(40236),g=c(73920),h=c(48601);let i=(0,h.createServerReference)("40d0b3a842b4b911db7d2b7fb197b17c2f0daee50e",h.callServer,void 0,h.findSourceMapURL,"setRunBudgetAction");var j=c(51040),k=c(775),l=c(37422);function m({initial:a}){var b,c;let h,n,[o,p]=(0,e.useState)({cost:a.maxRunCostUsd,hours:a.maxRunHours}),[q,r]=(0,e.useState)(String(a.maxRunCostUsd)),[s,t]=(0,e.useState)(String(a.maxRunHours)),[u,v]=(0,e.useTransition)(),w=Number(q),x=Number(s),y=""===q.trim()||!Number.isFinite(w)||w<0||w>g.w9j?`Enter a number from 0 to ${g.w9j}.`:void 0,z=""===s.trim()||!Number.isFinite(x)||x<0||x>g.dLr?`Enter a number from 0 to ${g.dLr}.`:void 0,A=w!==o.cost||x!==o.hours,B=!a.isOwner||u;return(0,d.jsxs)("div",{className:"rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:"Run budget"}),(0,d.jsx)(j.s,{tone:"err",children:"owner only"})]}),(0,d.jsx)("p",{className:"mt-1 text-body-13 leading-[1.4]! text-ink-3","data-testid":"run-budget-sentence",children:(b=o.cost,c=o.hours,h=b>0?`once it has cost $${b.toFixed(2)}`:null,n=c>0?`after ${c} h of work`:null,h||n?`A run stops ${[h,n].filter(Boolean).join(" or ")}. It keeps what it wrote, and says why it stopped.`:"No ceiling: a run goes on until it finishes or hits another limit.")}),(0,d.jsxs)("div",{className:"mt-3 flex flex-wrap items-start gap-4",children:[(0,d.jsx)(l.A,{label:"Cost of one run (USD)",type:"number",min:0,max:g.w9j,step:.5,value:q,onChange:a=>r(a.target.value),disabled:B,error:y,className:"w-32 font-mono","data-testid":"run-budget-cost"}),(0,d.jsx)(l.A,{label:"Working time of one run (hours)",type:"number",min:0,max:g.dLr,step:.5,value:s,onChange:a=>t(a.target.value),disabled:B,error:z,className:"w-32 font-mono","data-testid":"run-budget-hours"})]}),(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"0 means no ceiling. Waiting for an approval or for another agent does not count as work."}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(k.A,{variant:"neutral",type:"button",onClick:function(){y||z||!A||v(async()=>{let a=await i({maxRunCostUsd:w,maxRunHours:x});a.ok?(p({cost:w,hours:x}),f.oR.success("Run budget saved.")):f.oR.error(a.message)})},disabled:B||!A||!!y||!!z,"data-testid":"run-budget-save",children:u?"Saving…":"Save"})}),!a.isOwner&&(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."})]})}},46110:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\WorkspacesSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\WorkspacesSection.tsx","default")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},46835:(a,b,c)=>{"use strict";c.d(b,{t:()=>e});var d=c(48601);let e=(0,d.createServerReference)("400f2198e1c897e7b6eaa5aca947de793ef7f9f63d",d.callServer,void 0,d.findSourceMapURL,"setWorkspaceTimezoneAction")},46895:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(44928);let e=d.forwardRef((a,b)=>{let{alt:c,color:e="currentColor",size:f="1em",weight:g="regular",mirrored:h=!1,children:i,weights:j,...k}=a;return d.createElement("svg",{ref:b,xmlns:"http://www.w3.org/2000/svg",width:f,height:f,fill:e,viewBox:"0 0 256 256",transform:h?"scale(-1, 1)":void 0,...k},!!c&&d.createElement("title",null,c),i,j.get(g))});e.displayName="SSRBase"},46967:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("4032344c8016705cae0f18ca80491d05710246af5c",g.callServer,void 0,g.findSourceMapURL,"setAutoRunPauseAction");var i=c(25e3),j=c(24735),k=c(51040),l=c(31137);function m({initial:a}){let[b,c]=(0,e.useState)(a.autoRunPaused),[g,n]=(0,e.useState)(!1),[o,p]=(0,e.useTransition)();function q(a){c(a),p(async()=>{let b=await h({paused:a});b.ok?f.oR.success(a?"Auto-run paused. Every command, script and coding task asks for approval again.":"Auto-run resumed. Per-agent Yolo toggles apply again."):(f.oR.error(b.message),c(!a))})}let r=!a.isOwner||o;return(0,d.jsxs)("div",{className:"flex items-start gap-4 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:"Pause all auto-run"}),(0,d.jsx)(k.s,{tone:"err",children:"owner only"})]}),(0,d.jsx)("p",{className:"mt-1 text-body-13 leading-[1.4]! text-ink-3",children:"The emergency brake. When on, every shell command, skill script and coding CLI task in this workspace asks for approval again — per-agent Yolo toggles are put to sleep, not deleted. Release the brake and they apply again as before."}),!a.isOwner&&(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."}),b&&a.isOwner&&(0,d.jsx)(j.A,{variant:"warn",children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{className:"block font-medium text-ink",children:"Auto-run is paused workspace-wide"}),"Nothing runs without your approval right now, whatever the per-agent toggles say. Release the brake to re-arm them."]})})]}),(0,d.jsx)("div",{className:"mt-0.5",children:(0,d.jsx)(l.A,{checked:b,onChange:function(){b?n(!0):q(!0)},disabled:r})}),(0,d.jsx)(i.A,{open:g,title:"Release the brake?",message:"Per-agent Yolo rules re-arm exactly as they were: agents whose toggle is on will run shell commands and coding tasks again without approval.",confirmLabel:"Release",destructive:!0,onConfirm:()=>{n(!1),q(!1)},onCancel:()=>n(!1)})]})}},47728:(a,b,c)=>{"use strict";c.d(b,{R:()=>h});var d=c(44928),e=c(46895);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="InfoIcon";let h=g},48161:a=>{"use strict";a.exports=require("node:os")},51040:(a,b,c)=>{"use strict";c.d(b,{s:()=>f});var d=c(27557);let e={err:"bg-err/10 text-err",ok:"bg-ok-bg text-ok",skill:"bg-skill-vivid/10 text-skill-vivid",warn:"bg-warn/10 text-warn",agent:"bg-agent-vivid/40 text-ink-2 dark:bg-agent-vivid/20 dark:text-agent-vivid",ink:"bg-ink/10 text-ink-3"};function f({tone:a,children:b,className:c=""}){return(0,d.jsx)("span",{className:["inline-flex h-[18px] items-center rounded-full px-2 text-mono-11 uppercase tracking-[0.1em]",e[a],c].join(" "),children:b})}},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},53916:a=>{"use strict";a.exports=require("node:path/posix")},54029:(a,b,c)=>{"use strict";c.d(b,{u:()=>d});let d=[{value:"propose_confirm",name:"Propose & confirm",description:"While doing what you ask, it pauses for your approval before every action: shell commands, skill scripts, connector writes and the ROOT meta-tools (create agent, skill…) all wait in the Approvals queue before running."},{value:"destructive_gate",name:"Autonomous, gate destructive",description:"While doing what you ask, ordinary actions run without interrupting you (normal commands, scripts, meta-tools). But destructive or heavy ones still ask first: deletions, software installs / large downloads, killing processes, disk operations. The sweet spot — no friction for routine work, a checkpoint before anything risky."},{value:"fully_autonomous",name:"Fully autonomous",description:"While doing what you ask, nothing pauses for approval — every command, script and connector action, plus the ROOT meta-tools, run straight through. Only truly catastrophic shell commands (wiping the disk, etc.) still force a confirmation. Maximum power, no friction: use only if you fully trust it."}]},54096:(a,b,c)=>{"use strict";c.d(b,{F:()=>e});var d=c(48601);let e=(0,d.createServerReference)("40bdf07e469713aee5afd3400358ba980099a7e7b7",d.callServer,void 0,d.findSourceMapURL,"setInstallNotesAction")},54522:a=>{"use strict";a.exports=import("@mendable/firecrawl-js")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},55703:(a,b,c)=>{"use strict";c.d(b,{e:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),d.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="MagnifyingGlassIcon";let h=g},56905:(a,b,c)=>{"use strict";c.d(b,{c:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M76,64A12,12,0,0,1,88,52H216a12,12,0,0,1,0,24H88A12,12,0,0,1,76,64Zm140,52H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,112a16,16,0,1,0,16,16A16,16,0,0,0,44,112Zm0-64A16,16,0,1,0,60,64,16,16,0,0,0,44,48Zm0,128a16,16,0,1,0,16,16A16,16,0,0,0,44,176Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,64V192H88V64Z",opacity:"0.2"}),d.createElement("path",{d:"M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM68,188a12,12,0,1,1,12-12A12,12,0,0,1,68,188Zm0-48a12,12,0,1,1,12-12A12,12,0,0,1,68,140Zm0-48A12,12,0,1,1,80,80,12,12,0,0,1,68,92Zm124,92H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M82,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H88A6,6,0,0,1,82,64Zm134,58H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM44,54A10,10,0,1,0,54,64,10,10,0,0,0,44,54Zm0,128a10,10,0,1,0,10,10A10,10,0,0,0,44,182Zm0-64a10,10,0,1,0,10,10A10,10,0,0,0,44,118Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M84,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H88A4,4,0,0,1,84,64Zm132,60H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM44,120a8,8,0,1,0,8,8A8,8,0,0,0,44,120Zm0-64a8,8,0,1,0,8,8A8,8,0,0,0,44,56Zm0,128a8,8,0,1,0,8,8A8,8,0,0,0,44,184Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="ListBulletsIcon";let h=g},57075:a=>{"use strict";a.exports=require("node:stream")},57277:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\CopyablePath.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\CopyablePath.tsx","default")},57444:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(40236),g=c(46835),h=c(27339),i=c(98598),j=c(3079),k=c(37422);let l=["Europe/Paris","Europe/London","America/New_York","America/Los_Angeles","America/Sao_Paulo","Asia/Singapore","Asia/Tokyo","Asia/Kolkata","Asia/Dubai","Australia/Sydney","UTC"];function m({initial:a,isExplicit:b,formId:c}){let[n,o]=(0,e.useState)(a),[p,q]=(0,e.useTransition)(),r=Array.from(new Set([a,...l])),s=(()=>{try{return new Intl.DateTimeFormat("en-GB",{timeZone:n,weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date)}catch{return""}})();return(0,d.jsx)("form",{id:c,onSubmit:function(a){a.preventDefault(),q(async()=>{let a=await (0,g.t)({timezone:n});a.ok?f.oR.success(`Timezone set to ${n} — agents schedule and read time in this zone.`):f.oR.error(a.message)})},children:(0,d.jsxs)(h.v,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("p",{className:"text-body-13 leading-[1.5]! text-ink-3",children:["The timezone your agents use to tell the time and schedule automations. Detected from your browser at setup",b?"":" (currently the server default — set it to be sure)",".",s?` It is currently ${s} there.`:""]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(k.A,{list:"tz-options",value:n,onChange:a=>o(a.target.value),placeholder:"e.g. Europe/Paris"}),(0,d.jsx)("datalist",{id:"tz-options",children:r.map(a=>(0,d.jsx)("option",{value:a},a))}),(0,d.jsx)(j.A,{onClick:function(){try{let a=Intl.DateTimeFormat().resolvedOptions().timeZone;a&&o(a)}catch{f.oR.error("Could not detect the browser timezone.")}},className:"shrink-0",children:"Detect"})]})]}),(0,d.jsx)(i.h,{onCancel:()=>o(a),pending:p})]})})}},57975:a=>{"use strict";a.exports=require("node:util")},58373:(a,b,c)=>{"use strict";c.d(b,{n:()=>e});var d=c(47235);function e({children:a}){return(0,d.jsx)("div",{className:"mt-3.5 bg-paper border border-rule-2 rounded-xl overflow-hidden",children:a})}},59978:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\SettingsSections.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\SettingsSections.tsx","default")},61841:(a,b,c)=>{"use strict";c.d(b,{CR:()=>e,Oi:()=>d}),c(73920);let d={codeTask:{label:"Coding tool",hint:"code_task: a coding CLI called as a tool"},cliRuntime:{label:"Claude Code / Codex agents",hint:"agents that ARE a coding CLI session"},fileOps:{label:"File tools",hint:"file_write, file_edit, Office files"},shell:{label:"Commands and scripts",hint:"run_command, run_skill_script"}};function e(a){return d[a]?.label??a}},62491:(a,b,c)=>{"use strict";c.d(b,{default:()=>v});var d=c(27557),e=c(44928),f=c(81023),g=c(40236),h=c(48601);let i=(0,h.createServerReference)("00f91d325d6dbbedfba6d54edb75f0a7f9162cc3fe",h.callServer,void 0,h.findSourceMapURL,"listWorkspacesAction");var j=c(2565);let k=(0,h.createServerReference)("40b5b150d87d6d5957993bdf8720be18baeba657e8",h.callServer,void 0,h.findSourceMapURL,"renameWorkspaceAction"),l=(0,h.createServerReference)("40e8ce1fdcec334b03db9c87c1e956b7eb618914fb",h.callServer,void 0,h.findSourceMapURL,"deleteWorkspaceAction");var m=c(6529);h.callServer,h.findSourceMapURL;var n=c(25e3),o=c(27339),p=c(98598),q=c(86572),r=c(96269),s=c(775),t=c(3079),u=c(37422);function v({initial:a,formId:b}){let c=(0,f.useRouter)(),[h,w]=(0,e.useState)(a),[x,y]=(0,e.useState)(""),[z,A]=(0,e.useState)(r.S[0]),[B,C]=(0,e.useTransition)(),[D,E]=(0,e.useState)(null),[F,G]=(0,e.useState)(""),[H,I]=(0,e.useState)(r.S[0]),[J,K]=(0,e.useTransition)(),[L,M]=(0,e.useState)(null),[N,O]=(0,e.useTransition)(),[P,Q]=(0,e.useState)(null),[R,S]=(0,e.useState)(null);async function T(){let a=await i();a.ok&&w(a.data)}function U(){E(null),G("")}async function V(a){let b=await (0,m.W)({id:a});b.ok?(await T(),c.refresh()):g.oR.error(b.message)}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"mt-3.5 rounded-xl border border-rule-2 bg-paper overflow-hidden",children:0===h.length?(0,d.jsx)("p",{className:"px-[18px] py-4 text-body-14 text-ink-4",children:"No workspaces found."}):h.map(a=>{let b,e=D===a.id;return(0,d.jsxs)("div",{className:"flex items-center gap-3 px-[18px] py-3.5 border-b border-rule-2 last:border-b-0",children:[(0,d.jsx)("span",{className:"flex h-[28px] w-[28px] shrink-0 items-center justify-center rounded-md border border-rule-2 bg-canvas font-mono text-legacy-14 leading-none!",children:a.icon??a.name.slice(0,1).toUpperCase()}),(0,d.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[e?(0,d.jsxs)("form",{onSubmit:b=>{var d;let e;return d=a.id,b.preventDefault(),void((e=F.trim())&&K(async()=>{let a=await k({id:d,name:e,icon:H});a.ok?(g.oR.success("Workspace updated"),E(null),await T(),c.refresh()):g.oR.error(a.message)}))},className:"flex flex-col gap-2",children:[(0,d.jsx)(r.A,{value:H,onChange:I,disabled:J}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(u.A,{autoFocus:!0,type:"text",value:F,onChange:a=>G(a.target.value),maxLength:60,disabled:J,containerClassName:"w-44"}),(0,d.jsx)(s.A,{variant:"ink",size:"sm",type:"submit",disabled:!F.trim(),children:"Save"}),(0,d.jsx)(t.A,{type:"button",onClick:U,children:"Cancel"})]})]}):(0,d.jsx)("span",{className:"text-medium-14 text-ink leading-none!",children:a.name}),(0,d.jsx)("span",{className:"text-mono-11 text-ink-4 leading-none! mt-0.5",children:a.role}),(0,d.jsx)("span",{className:"text-mono-11 text-ink-4 leading-none! mt-1","data-testid":`workspace-footprint-${a.id}`,children:null!==R?R:null===P?"Measuring shared folder…":void 0===(b=P.find(b=>b.workspaceId===a.id))?"Shared folder not measured":`${function(a){if(null===a.measure)return"absent"===a.unmeasured?"No shared folder yet":"Size unreadable";let{sizeLabel:b,files:c,capped:d}=a.measure,e=1===c?"1 file":`${c} files`;return d?`At least ${b} in ${e}`:`${b} in ${e}`}(b)} \xb7 ${function(a){let b=a.lastSnapshot;if(null===b)return"No safety snapshot yet";if(null===b.ms)return"Last snapshot not timed";let c=b.ms<1e3?`${b.ms} ms`:`${(b.ms/1e3).toFixed(1)} s`;return`Last snapshot took ${c}`}(b)}`})]}),(0,d.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[a.active&&(0,d.jsx)(q.E,{variant:"ok",children:"ACTIVE"}),!a.active&&(0,d.jsx)(t.A,{onClick:()=>V(a.id),children:"Switch"}),!e&&(0,d.jsx)(t.A,{onClick:()=>{E(a.id),G(a.name),I(a.icon??r.S[0])},children:"Rename"}),"owner"===a.role&&!a.active&&(0,d.jsx)(t.A,{tone:"danger",onClick:()=>M(a),disabled:N,children:"Delete"})]})]},a.id)})}),(0,d.jsx)("form",{id:b,onSubmit:function(a){a.preventDefault();let b=x.trim();b&&C(async()=>{let a=await (0,j.O)({name:b,icon:z});a.ok?(g.oR.success(`Workspace "${b}" created`),y(""),A(r.S[0]),await T(),c.refresh()):g.oR.error(a.message)})},children:(0,d.jsxs)(o.v,{label:"Create workspace",children:[(0,d.jsx)("div",{className:"mb-2",children:(0,d.jsx)(r.A,{value:z,onChange:A,disabled:B})}),(0,d.jsx)("div",{className:"flex gap-2 items-center",children:(0,d.jsx)(u.A,{type:"text",value:x,onChange:a=>y(a.target.value),placeholder:"Workspace name",maxLength:60,disabled:B,containerClassName:"min-w-0 flex-1"})}),(0,d.jsx)(p.h,{onCancel:()=>y(""),pending:B,saveLabel:"Create"})]})}),(0,d.jsx)(n.A,{open:null!==L,title:"Delete workspace?",message:L?`This will permanently delete "${L.name}" and all its data (agents, jobs, credentials). This cannot be undone.`:"",confirmLabel:"Delete",destructive:!0,onConfirm:function(){if(!L)return;let{id:a,name:b}=L;O(async()=>{M(null);let d=await l({id:a});d.ok?(g.oR.success(`Workspace "${b}" deleted`),await T(),c.refresh()):g.oR.error(d.message)})},onCancel:()=>M(null)})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63850:a=>{"use strict";a.exports=require("googleapis")},64983:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\InstallNotesForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\InstallNotesForm.tsx","default")},65382:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(27557);function e({options:a,value:b,onChange:c,disabled:f,ariaLabel:g,className:h=""}){return(0,d.jsx)("div",{className:`flex w-fit shrink-0 overflow-hidden rounded-lg border border-rule-2 ${h}`,role:"group","aria-label":g,children:a.map((a,e)=>{let g=a.value===b;return(0,d.jsx)("button",{type:"button",disabled:f,onClick:()=>c(a.value),"data-testid":a.testId,"aria-pressed":g,className:["relative h-[32px] px-3 text-medium-13 transition-colors",e>0?"border-l border-rule-2":"",g?a.activeClassName??"bg-ink text-canvas border-ink":"bg-canvas text-ink-3 hover:bg-hover hover:text-ink-2",f?"cursor-wait opacity-60":""].join(" "),children:a.label},a.value)})})}},68819:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\VerificationSurfacesSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\VerificationSurfacesSection.tsx","default")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73031:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(27557),e=c(44928),f=c(9987);let g=(0,e.forwardRef)(function({label:a,error:b,showCount:c,id:g,className:h="",containerClassName:i="",maxLength:j,value:k,bare:l=!1,...m},n){let o=(0,e.useId)(),p=g??o;return(0,d.jsxs)("div",{className:i,children:[a&&(0,d.jsx)(f.A,{htmlFor:p,children:a}),(0,d.jsx)("textarea",{id:p,ref:n,maxLength:j,value:k,"aria-invalid":!!b||void 0,className:l?`w-full text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${h}`:`w-full resize-y rounded-md border bg-hover px-2 py-1.5 text-body-14 leading-[1.5]! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${b?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${h}`,...m}),c&&void 0!==j&&"string"==typeof k&&(0,d.jsxs)("div",{className:"mt-1 text-right text-legacy-11 text-ink-4",children:[k.length," / ",j]}),b&&(0,d.jsx)("p",{className:"mt-1 text-xs text-err",children:b})]})})},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},73566:a=>{"use strict";a.exports=require("worker_threads")},74075:a=>{"use strict";a.exports=require("zlib")},74552:a=>{"use strict";a.exports=require("pino")},74998:a=>{"use strict";a.exports=require("perf_hooks")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76179:(a,b,c)=>{"use strict";c.d(b,{default:()=>l});var d=c(27557),e=c(44928),f=c(40236),g=c(73920),h=c(48601);let i=(0,h.createServerReference)("4077aeba342a41eedd22ff3cba33a9d2a268b4cc38",h.callServer,void 0,h.findSourceMapURL,"setProofRepairAction");var j=c(51040),k=c(65382);function l({initial:a}){let[b,c]=(0,e.useState)(a.repairAttempts),[h,m]=(0,e.useTransition)(),n=!a.isOwner||h;return(0,d.jsxs)("div",{className:"rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-14 text-ink",children:"Repair turns after a failed proof"}),(0,d.jsx)(j.s,{tone:"err",children:"owner only"})]}),(0,d.jsx)("p",{className:"mt-1 text-body-13 leading-[1.4]! text-ink-3",children:0===b?"A failed proof ends the run at once, with its red verdict.":1===b?"A failed proof reopens the run once. The agent gets the failing command and its output, fixes it, and delivers again.":`A failed proof reopens the run up to ${b} times. Each turn costs another model call and another full proof.`}),!a.isOwner&&(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."})]}),(0,d.jsx)("div",{className:"mt-0.5",children:(0,d.jsx)(k.A,{ariaLabel:"Repair turns after a failed proof",value:String(b),onChange:function(a){let d=Number(a);c(d),m(async()=>{let a=await i({repairAttempts:d});a.ok?f.oR.success(0===d?"A failed proof now ends the run at once.":`A failed proof now reopens the run ${1===d?"once":`up to ${d} times`}.`):(f.oR.error(a.message),c(b))})},disabled:n,options:g.bpx.map(a=>({value:String(a),label:String(a),testId:`repair-turns-${a}`}))})})]}),(0,d.jsxs)("div",{className:"mt-4 border-t border-rule-2 pt-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-medium-13 text-ink-2",children:"What else bounds a run"}),(0,d.jsx)(j.s,{tone:"ink",children:"read only"})]}),(0,d.jsx)("dl",{className:"mt-2 grid gap-1.5","data-testid":"run-budgets",children:[{key:"resumes",label:"Resumes per run",value:a.budgets.resumesPerRun,hint:"Delegations picked back up, approvals answered, repair turns."},{key:"tool-calls",label:"Tool calls per turn",value:a.budgets.toolCallsPerTurn,hint:"One model turn cannot ask for more than this."},{key:"delegation",label:"Delegation depth",value:a.budgets.delegationDepth,hint:"An agent briefing an agent briefing an agent."}].map(a=>(0,d.jsxs)("div",{className:"flex items-baseline gap-3","data-testid":`budget-${a.key}`,children:[(0,d.jsx)("dt",{className:"text-body-13 text-ink-2",children:a.label}),(0,d.jsx)("dd",{className:"text-medium-13 text-ink",children:a.value}),(0,d.jsx)("span",{className:"min-w-0 truncate text-body-12 text-ink-4",children:a.hint})]},a.key))})]})]})}},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},78608:a=>{"use strict";a.exports=require("exceljs")},79100:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("40e61dada9450f1fd1c1e9ba784537d7aa480e2ab1",g.callServer,void 0,g.findSourceMapURL,"setMcpServerSwitchAction");var i=c(25e3),j=c(51040),k=c(31137),l=c(89386);function m({initial:a}){let[b,c]=(0,e.useState)(a.enabled),[g,n]=(0,e.useState)(!1),[o,p]=(0,e.useTransition)();function q(a){p(async()=>{let b=await h({enabled:a});b.ok?(c(a),f.oR.success(a?"MCP server enabled":"MCP server disabled")):f.oR.error(b.message)})}return(0,d.jsxs)("div",{className:"rounded-2xl border border-rule-2 bg-paper p-6",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h2",{className:"text-medium-15 text-ink",children:"MCP server"}),(0,d.jsx)(j.s,{tone:b?"agent":"ink",children:b?"on":"off"})]}),(0,d.jsxs)("p",{className:"mt-1 text-body-13 leading-[1.5]! text-ink-3",children:["Lets an external MCP client — your terminal, a coding agent — hand work to this workspace's root agent. Jobs arrive on the Runs page with channel ",(0,d.jsx)("code",{children:"mcp"})," ","and the caller's self-chosen label. MCP jobs can never use the configuration tools (create agents, skills, connectors, automations) — that is enforced in the runner, not by this switch."]}),b&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.O,{subtitle:"Connect a client (Claude Code shown):",url:"claude mcp add nodal -- nodal-agents mcp serve"}),(0,d.jsx)("p",{className:"mt-1.5 text-body-12 text-ink-4",children:"Run it on the machine that hosts Nodal."})]}),!a.isOwner&&(0,d.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."})]}),(0,d.jsx)(k.A,{checked:b,disabled:o||!a.isOwner,onChange:()=>{b?q(!1):n(!0)}})]}),(0,d.jsx)(i.A,{open:g,title:"Enable the MCP server?",message:"Any process on this machine that knows the database URL will be able to hand work to your root agent — under its approval rules and budgets, and never with the configuration tools. Turning this off later also cuts clients that are already connected.",confirmLabel:"Enable",onConfirm:()=>{n(!1),q(!0)},onCancel:()=>n(!1)})]})}},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},79868:a=>{"use strict";a.exports=require("node:sqlite")},80241:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(47235),e=c(41060),f=c(90356),g=c(86585);function h({title:a,subtitle:b,header:c}){return void 0!==c?(0,d.jsxs)("header",{className:"flex min-h-[75px] items-center gap-4 border-b border-rule-2 px-5 pt-5 pb-4 sm:px-8 lg:px-9",children:[(0,d.jsx)("div",{className:"min-w-0 flex-1",children:c}),(0,d.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,d.jsx)(e.default,{className:"hidden md:flex"}),(0,d.jsx)(g.default,{}),(0,d.jsx)(f.default,{})]})]}):(0,d.jsxs)("header",{className:"flex items-center justify-between gap-4 border-b border-rule-2 px-5 pt-5 pb-4 sm:px-8 lg:px-9",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("h1",{className:"text-display-28 leading-[1.15]! tracking-[-0.015em] text-ink",children:a}),b&&(0,d.jsx)("p",{className:"mt-1.5 text-body-14 leading-[1.5]! text-ink-3",children:b})]}),(0,d.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,d.jsx)(e.default,{className:"hidden md:flex"}),(0,d.jsx)(g.default,{}),(0,d.jsx)(f.default,{})]})]})}function i(a){let{toolbar:b,toolbarBleed:c=!1,aside:e,footer:f,children:g,fluid:i=!1,fill:j=!1,bodyClassName:k=""}=a,l=void 0!==a.header?(0,d.jsx)(h,{header:a.header}):(0,d.jsx)(h,{title:a.title,subtitle:a.subtitle});return j?(0,d.jsxs)("div",{className:"flex h-full min-h-0 flex-1 flex-col",children:[l,b&&c&&b,(0,d.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,d.jsxs)("div",{className:`flex min-w-0 min-h-0 flex-1 flex-col ${k}`,children:[b&&!c&&(0,d.jsx)("div",{className:`w-full px-5 pt-4 sm:px-8 lg:px-9 ${i?"":"mx-auto max-w-6xl"}`,children:b}),i?g:(0,d.jsx)("div",{className:"mx-auto flex min-h-0 w-full max-w-6xl flex-1 flex-col",children:g})]}),e]}),f]}):(0,d.jsxs)(d.Fragment,{children:[l,b&&c&&b,(0,d.jsxs)("div",{className:`w-full px-5 pt-6 pb-10 sm:px-8 lg:px-9 ${i?"":"mx-auto max-w-6xl"} ${k}`,children:[b&&!c&&(0,d.jsx)("div",{className:"mb-5",children:b}),g]})]})}},80526:a=>{"use strict";a.exports=import("pdf-parse")},81630:a=>{"use strict";a.exports=require("http")},81806:(a,b,c)=>{"use strict";c.d(b,{v:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),d.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="PauseIcon";let h=g},83997:a=>{"use strict";a.exports=require("tty")},84249:(a,b,c)=>{"use strict";c.d(b,{N:()=>h});var d=c(44928),e=c(46895),f=c(10295);let g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f.A}));g.displayName="WarningIcon";let h=g},84505:(a,b,c)=>{"use strict";c.d(b,{default:()=>k});var d=c(27557),e=c(44928),f=c(40236),g=c(54096),h=c(27339),i=c(98598),j=c(73031);function k({initial:a,formId:b}){let[c,l]=(0,e.useState)(a),[m,n]=(0,e.useTransition)();return(0,d.jsx)("form",{id:b,onSubmit:function(a){a.preventDefault(),n(async()=>{let a=await (0,g.F)(c);a.ok?f.oR.success("Install notes saved — agents will see them on the next job."):f.oR.error(a.message)})},children:(0,d.jsxs)(h.v,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("p",{className:"text-body-13 leading-[1.5]! text-ink-3",children:"These notes are injected into every agent's runtime context and apply live (no restart needed). Use them for machine-specifics the system can't auto-detect — for example: “ComfyUI runs on :8188”, a local GPU, a local API path, or services the agent should call directly."}),(0,d.jsx)(j.A,{value:c,onChange:a=>l(a.target.value),rows:5,maxLength:4e3,showCount:!0,placeholder:"e.g. ComfyUI runs on :8188 with no auth. GPU: RTX 4090. Ollama on :11434."})]}),(0,d.jsx)(i.h,{onCancel:function(){l(a)},pending:m})]})})}},84647:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\ProofRepairSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\ProofRepairSection.tsx","default")},86572:(a,b,c)=>{"use strict";c.d(b,{E:()=>e});var d=c(27557);function e({variant:a,children:b}){return(0,d.jsx)("span",{className:["inline-flex items-center gap-1.5 h-[22px] px-2 rounded-[5px] font-mono text-label-11 tracking-[0.08em]","ok"===a?"bg-lime-400/20 text-lime-600 dark:text-lime-300":"bg-orange-500/[0.13] text-orange-700 dark:text-orange-400"].join(" "),children:b})}},86585:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\NotificationsBell.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\NotificationsBell.tsx","default")},87997:a=>{"use strict";a.exports=require("node:timers")},89240:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\RunBudgetSection.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\RunBudgetSection.tsx","default")},89386:(a,b,c)=>{"use strict";c.d(b,{O:()=>f});var d=c(27557),e=c(40236);function f({subtitle:a,url:b}){async function c(){try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(b):g(b),e.oR.success("Copied")}catch{try{g(b),e.oR.success("Copied")}catch{e.oR.error("Could not copy")}}}function g(a){let b=document.createElement("textarea");b.value=a,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();let c=document.execCommand("copy");if(b.remove(),!c)throw Error("copy_failed")}return(0,d.jsxs)("div",{className:"flex items-center gap-3 bg-canvas/40 border border-rule-2 rounded-[9px] px-4 py-3.5 mt-2",children:[(0,d.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"block text-xs leading-[1.4] text-ink-4",children:a}),(0,d.jsx)("span",{className:"block font-mono text-legacy-14 leading-[1.4]! text-ink tracking-[0.02em] mt-1.5 break-all",children:b})]}),(0,d.jsxs)("button",{type:"button",onClick:c,className:"flex-shrink-0 flex items-center gap-1.5 px-2.5 py-1.5 border border-rule text-ink-3 rounded-[7px] text-xs font-medium hover:border-rule-2 hover:text-ink transition-colors",children:[(0,d.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"w-3.5 h-3.5",children:[(0,d.jsx)("rect",{x:"3",y:"3",width:"8",height:"8",rx:"1"}),(0,d.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1"})]}),"Copy"]})]})}},89901:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\settings\\\\NetworkForm.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\settings\\NetworkForm.tsx","default")},90356:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\ThemeToggle.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\ThemeToggle.tsx","default")},91645:a=>{"use strict";a.exports=require("net")},94685:a=>{"use strict";a.exports=require("discord.js")},94735:a=>{"use strict";a.exports=require("events")},98598:(a,b,c)=>{"use strict";c.d(b,{h:()=>g});var d=c(27557),e=c(44928);let f=(0,e.createContext)(null);function g({onCancel:a,pending:b,saveLabel:c="Save"}){let h=(0,e.useContext)(f);h?.report;let i=(0,e.useRef)(a);return((0,e.useCallback)(()=>i.current(),[]),h)?null:(0,d.jsxs)("div",{className:"flex justify-end gap-2 mt-[18px]",children:[(0,d.jsx)("button",{type:"button",onClick:a,className:"h-[34px] px-3.5 rounded-[9px] cursor-pointer bg-paper border border-rule text-medium-14 text-ink-2 hover:bg-hover hover:border-rule-2 transition-colors",children:"Cancel"}),(0,d.jsx)("button",{type:"submit",disabled:b,className:"h-[34px] px-4 rounded-[9px] border-0 cursor-pointer bg-ink text-canvas text-medium-14 hover:brightness-90 disabled:opacity-50 transition-[filter,opacity]",children:b?"Saving…":c})]})}},98662:(a,b,c)=>{"use strict";c.d(b,{P:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),d.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="ArrowsClockwiseIcon";let h=g}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[7617,7927,192,1041,7663,7651,4507,6225,1017,1326,42,692,1406,3920,9882,3675,7465],()=>b(b.s=18805));module.exports=c})();
|