nodal-agents 0.9.0 → 0.9.2
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 +727 -62
- package/docs-index.json +1524 -0
- package/migrations/0118_agent_jobs_deliverable_check_due.sql +53 -0
- package/migrations/0119_job_checkpoints_snapshot_ms.sql +51 -0
- package/migrations/0120_excluded_project_paths.sql +38 -0
- package/migrations/0121_entities_proof_repair_attempts.sql +32 -0
- package/migrations/0122_entities_drop_memory_curation_enabled.sql +17 -0
- package/migrations/meta/_journal.json +35 -0
- package/package.json +2 -1
- package/runner.js +5541 -4081
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/app-path-routes-manifest.json +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +5 -5
- 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)/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 +5 -4
- package/web/.next/server/app/_not-found.segments/_full.segment.rsc +5 -4
- package/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +14 -13
- package/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/web/.next/server/app/api/chat/stream/route.js +1 -1
- 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/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 +1 -1
- package/web/.next/server/chunks/1041.js +5 -0
- package/web/.next/server/chunks/1447.js +1 -1
- package/web/.next/server/chunks/168.js +1 -0
- package/web/.next/server/chunks/{3431.js → 192.js} +2 -2
- package/web/.next/server/chunks/1960.js +1 -0
- package/web/.next/server/chunks/{4332.js → 2096.js} +1 -1
- package/web/.next/server/chunks/292.js +1 -0
- package/web/.next/server/chunks/2933.js +1 -0
- package/web/.next/server/chunks/3370.js +1 -0
- package/web/.next/server/chunks/3592.js +1 -1
- package/web/.next/server/chunks/3675.js +1 -0
- package/web/.next/server/chunks/409.js +1 -0
- package/web/.next/server/chunks/42.js +3 -3
- package/web/.next/server/chunks/4357.js +1 -1
- package/web/.next/server/chunks/494.js +1 -0
- package/web/.next/server/chunks/5547.js +1 -0
- package/web/.next/server/chunks/5554.js +1 -0
- package/web/.next/server/chunks/570.js +1 -0
- package/web/.next/server/chunks/5804.js +1 -1
- package/web/.next/server/chunks/5974.js +1 -0
- package/web/.next/server/chunks/6020.js +1 -1
- package/web/.next/server/chunks/6106.js +1 -0
- package/web/.next/server/chunks/{2198.js → 6213.js} +39 -23
- package/web/.next/server/chunks/692.js +1806 -0
- package/web/.next/server/chunks/{2076.js → 7134.js} +7 -7
- package/web/.next/server/chunks/7431.js +1 -0
- package/web/.next/server/chunks/7533.js +1 -0
- package/web/.next/server/chunks/{7957.js → 7663.js} +5 -5
- package/web/.next/server/chunks/7709.js +1 -0
- package/web/.next/server/chunks/7915.js +1 -0
- package/web/.next/server/chunks/8022.js +1 -0
- package/web/.next/server/chunks/8536.js +3 -0
- package/web/.next/server/chunks/8974.js +63 -47
- package/web/.next/server/chunks/9200.js +1 -0
- package/web/.next/server/chunks/9557.js +1 -0
- package/web/.next/server/middleware-build-manifest.js +1 -1
- package/web/.next/server/middleware.js +67 -67
- 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/1054-08930540869affcc.js +1 -0
- package/web/.next/static/chunks/1091-6d0af9f18ddf99f6.js +1 -0
- package/web/.next/static/chunks/1332-c8bed6b750598652.js +1 -0
- package/web/.next/static/chunks/{1789-87079e34582418b3.js → 1789-b436bca079b82fcc.js} +1 -1
- package/web/.next/static/chunks/{2194-f112ed9e30bd88fb.js → 2194-f3fed902cfeb85b5.js} +1 -1
- package/web/.next/static/chunks/296-1b50dd61ac3198f4.js +1 -0
- package/web/.next/static/chunks/3051-26ddd67461f743c4.js +1 -0
- package/web/.next/static/chunks/3159-f25525771781f5aa.js +1 -0
- package/web/.next/static/chunks/341-020b1c47a0991a37.js +1 -0
- package/web/.next/static/chunks/{5361-f266407b731effcd.js → 3742-ab3951ecba6248c1.js} +1 -1
- package/web/.next/static/chunks/377-4f2ca8d34e126b26.js +1 -0
- package/web/.next/static/chunks/3775-3a5a749d63c785a1.js +3 -0
- package/web/.next/static/chunks/390-d6132d3a117487df.js +1 -0
- package/web/.next/static/chunks/4020-9778230f3cc2164a.js +1 -0
- package/web/.next/static/chunks/4771-a0aadf337f224b72.js +1 -0
- package/web/.next/static/chunks/494-ed02d105fa0ac132.js +1 -0
- package/web/.next/static/chunks/5034-fc9997ff33a114aa.js +1 -0
- package/web/.next/static/chunks/{8551-3e88dff507375393.js → 5925-76337eacde3c3bc8.js} +39 -23
- package/web/.next/static/chunks/611-e150bff7f1f9dc6c.js +1 -0
- package/web/.next/static/chunks/6937-f57b8514bf03179e.js +3 -0
- package/web/.next/static/chunks/{7717-41f70e449a27eb21.js → 7879-67ac5a52d74c20d2.js} +1 -1
- package/web/.next/static/chunks/7920-40dc6aa63e653d6b.js +1 -0
- package/web/.next/static/chunks/8312-6ca4507c5413a23d.js +1 -0
- package/web/.next/static/chunks/870-b7151716d04a13c3.js +1 -0
- package/web/.next/static/chunks/8794-2a616d1f9c210117.js +1 -0
- package/web/.next/static/chunks/8861-a108ed6178a56b21.js +1 -0
- package/web/.next/static/chunks/{3196-464a892bb967ebe9.js → 9311-bdd05e5b6fb92a88.js} +1 -1
- package/web/.next/static/chunks/9598-202b803aea26a949.js +1 -0
- package/web/.next/static/chunks/{9643-135a5b7d3abd518c.js → 9643-e9c8a744dd98813d.js} +1 -1
- package/web/.next/static/chunks/{8606-679d56e81c4e4550.js → 9765-1501903a64e09ac0.js} +1 -1
- package/web/.next/static/chunks/9952-992cabfb077d287c.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/edit/page-5ca9c1eef4d0f837.js +6 -0
- package/web/.next/static/chunks/app/(dashboard)/agents/page-5ffa4a2468c1f95a.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/approvals/page-cd46d5e439a20d3e.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/automations/[id]/page-9ef1d76121b6030d.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/automations/page-46eeaa40df9e58f8.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/chat/[id]/page-25e095bf0cdd1c40.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/chat/page-e2df1a328e18da7a.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/code/[id]/page-f5f7624cfbb32ee2.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/connectors/page-2ecbfc5836577888.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/credentials/page-cb6bc64b82b8fb28.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/dashboard/{page-fd2a41310f716a3e.js → page-7473d1190864cbd4.js} +1 -1
- package/web/.next/static/chunks/app/(dashboard)/jobs/[id]/page-47e177ab46926fd7.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/layout-0b429859260736b2.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/learned-skills/page-596d973a31e774db.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/llm-providers/page-ba1968c9430c4dd4.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/logs/page-f74da6f66116c7e7.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/mcp/page-07bdc6780b13cfca.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/memories/page-593161bc7c2a25d7.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/page-889d6e89a8f679f8.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/scheduled/[id]/page-47e177ab46926fd7.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/settings/page-1b40e127c38affda.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/settings/root-context/page-6b7e1cffcad40a6a.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/skills/page-3ad87d1a3fbb4f05.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/files/page-4e2d27f80456a1ba.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/page-c81023eaa26c2c7a.js +1 -0
- package/web/.next/static/chunks/app/(dashboard)/spaces/page-9dbb35822503481b.js +1 -0
- package/web/.next/static/chunks/app/layout-ef76b16f6546678c.js +1 -0
- package/web/.next/static/chunks/app/login/page-5357f030e5018563.js +1 -0
- package/web/.next/static/chunks/app/onboarding/page-9b6955cdd3033584.js +26 -0
- package/web/.next/static/css/099c0b54fc41e5b0.css +1 -0
- package/web/public/logo-128.png +0 -0
- package/web/.next/server/chunks/1239.js +0 -1
- package/web/.next/server/chunks/1505.js +0 -3
- package/web/.next/server/chunks/1632.js +0 -1
- package/web/.next/server/chunks/1813.js +0 -1
- package/web/.next/server/chunks/2040.js +0 -1
- package/web/.next/server/chunks/2310.js +0 -1
- package/web/.next/server/chunks/2800.js +0 -1790
- package/web/.next/server/chunks/3340.js +0 -1
- package/web/.next/server/chunks/3432.js +0 -1
- package/web/.next/server/chunks/3580.js +0 -1
- package/web/.next/server/chunks/4722.js +0 -3
- package/web/.next/server/chunks/5276.js +0 -1
- package/web/.next/server/chunks/603.js +0 -1
- package/web/.next/server/chunks/7719.js +0 -1
- package/web/.next/server/chunks/7781.js +0 -1
- package/web/.next/server/chunks/8025.js +0 -3
- package/web/.next/server/chunks/8118.js +0 -1
- package/web/.next/server/chunks/9637.js +0 -1
- package/web/.next/server/chunks/976.js +0 -1
- package/web/.next/server/chunks/9939.js +0 -1
- package/web/.next/static/chunks/1091-de54f0c0a4d82875.js +0 -1
- package/web/.next/static/chunks/114-26058433e4e0911e.js +0 -1
- package/web/.next/static/chunks/1219-d120dd8740b553b7.js +0 -1
- package/web/.next/static/chunks/146-923ebb6e4b12939e.js +0 -1
- package/web/.next/static/chunks/2057-de712956dc309abd.js +0 -1
- package/web/.next/static/chunks/2628-662c74c9bc8efdfd.js +0 -1
- package/web/.next/static/chunks/2767-84a838e67c8ed919.js +0 -1
- package/web/.next/static/chunks/3051-63316a56c4c77b78.js +0 -1
- package/web/.next/static/chunks/341-d382e4df5fdd8639.js +0 -1
- package/web/.next/static/chunks/4229-5ad9bb0c30eeb117.js +0 -1
- package/web/.next/static/chunks/443-b0581a9d59c5eddd.js +0 -1
- package/web/.next/static/chunks/4507-e4e79584af8a3dfb.js +0 -1
- package/web/.next/static/chunks/4646-daae31f9eaa82ad1.js +0 -3
- package/web/.next/static/chunks/5034-1424be65bb762fe0.js +0 -1
- package/web/.next/static/chunks/6449-2552e9fd471012bc.js +0 -1
- package/web/.next/static/chunks/6974-c390b37b943e5e3a.js +0 -1
- package/web/.next/static/chunks/750-5f0494d3bcce44e4.js +0 -1
- package/web/.next/static/chunks/7890-8030bd449325507e.js +0 -1
- package/web/.next/static/chunks/8288-46c8ea403691cbd8.js +0 -3
- package/web/.next/static/chunks/8571-6149c8881bddf392.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/agents/[id]/edit/page-0a2201e25891e65a.js +0 -6
- package/web/.next/static/chunks/app/(dashboard)/agents/page-8dd4afd99c54c317.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/approvals/page-c346b6514a0fb344.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/automations/[id]/page-2ff06d1d46372539.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/automations/page-e70ea0434087cad1.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/chat/[id]/page-600249784190e2a4.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/chat/page-48666512a1c0ac50.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/code/[id]/page-f84236cea1b8e8bd.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/connectors/page-de164554b77a1fa4.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/credentials/page-0741d2da25807489.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/jobs/[id]/page-702e9eeea18c7ea0.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/layout-1fe1669ec7dc1c13.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/learned-skills/page-a76814c4a20ecd33.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/llm-providers/page-aa611ab9ff0baff2.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/logs/page-f22178e7e15984c1.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/mcp/page-8b248ee23cc92855.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/memories/page-69955b9596175468.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/page-4432bf6e8e594109.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/scheduled/[id]/page-f4857bc821e8868b.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/settings/page-2e6cbceef74a8f8a.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/settings/root-context/page-63c38b3c419dfbbc.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/skills/page-99aea8c35e06402b.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/files/page-226d430d003759c2.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/page-ded0e3c2ae3aede7.js +0 -1
- package/web/.next/static/chunks/app/(dashboard)/spaces/page-a833db411140fb1e.js +0 -1
- package/web/.next/static/chunks/app/layout-e03e26e403cc87a2.js +0 -1
- package/web/.next/static/chunks/app/login/page-16e874ed1f237705.js +0 -1
- package/web/.next/static/chunks/app/onboarding/page-5928b7dd0a4606cc.js +0 -26
- package/web/.next/static/css/67bc2af77aa905d1.css +0 -1
- /package/web/.next/static/{g828Psw_BOEBvk4rOsX86 → x5fvzE6AeZGASlemQTLwd}/_buildManifest.js +0 -0
- /package/web/.next/static/{g828Psw_BOEBvk4rOsX86 → x5fvzE6AeZGASlemQTLwd}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1670],{192:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var a=n(48503),s=n(80351),r=n(68926),i=n(78321),o=n(13919),l=n(15564),c=n(75551),d=n(9594);let u=["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:e,isExplicit:t,formId:n}){let[h,x]=(0,s.useState)(e),[p,f]=(0,s.useTransition)(),g=Array.from(new Set([e,...u])),b=(()=>{try{return new Intl.DateTimeFormat("en-GB",{timeZone:h,weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date)}catch{return""}})();return(0,a.jsx)("form",{id:n,onSubmit:function(e){e.preventDefault(),f(async()=>{let e=await (0,i.t)({timezone:h});e.ok?r.oR.success(`Timezone set to ${h} — agents schedule and read time in this zone.`):r.oR.error(e.message)})},children:(0,a.jsxs)(o.v,{children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.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",t?"":" (currently the server default — set it to be sure)",".",b?` It is currently ${b} there.`:""]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(d.A,{list:"tz-options",value:h,onChange:e=>x(e.target.value),placeholder:"e.g. Europe/Paris"}),(0,a.jsx)("datalist",{id:"tz-options",children:g.map(e=>(0,a.jsx)("option",{value:e},e))}),(0,a.jsx)(c.A,{onClick:function(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&x(e)}catch{r.oR.error("Could not detect the browser timezone.")}},className:"shrink-0",children:"Detect"})]})]}),(0,a.jsx)(l.h,{onCancel:()=>x(e),pending:p})]})})}},2833:(e,t,n)=>{Promise.resolve().then(n.bind(n,46881)),Promise.resolve().then(n.bind(n,75613)),Promise.resolve().then(n.bind(n,42853)),Promise.resolve().then(n.bind(n,79041)),Promise.resolve().then(n.bind(n,17878)),Promise.resolve().then(n.bind(n,79183)),Promise.resolve().then(n.bind(n,78828)),Promise.resolve().then(n.bind(n,60540)),Promise.resolve().then(n.bind(n,192)),Promise.resolve().then(n.bind(n,82825)),Promise.resolve().then(n.bind(n,74380)),Promise.resolve().then(n.bind(n,2193)),Promise.resolve().then(n.bind(n,59085)),Promise.resolve().then(n.bind(n,68534)),Promise.resolve().then(n.bind(n,81098)),Promise.resolve().then(n.t.bind(n,22208,23))},5829:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(48503);function s({children:e,className:t="",...n}){return(0,a.jsx)("label",{className:`block text-xs text-ink-3 mb-1 ${t}`,...n,children:e})}},7020:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var a=n(48503);function s({variant:e,children:t}){return(0,a.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"===e?"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:t})}},7576:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(48503),s=n(80351);let r={ink:"accent-ink",agent:"accent-agent-vivid",skill:"accent-skill-vivid",connector:"accent-conn-vivid"};function i({label:e,tone:t="ink",id:n,className:o="",containerClassName:l="",...c}){let d=(0,s.useId)(),u=n??d,m=(0,a.jsx)("input",{id:u,type:"checkbox",className:`h-4 w-4 shrink-0 cursor-pointer rounded border-rule disabled:cursor-not-allowed disabled:opacity-50 ${r[t]} ${o}`,...c});return e?(0,a.jsxs)("label",{htmlFor:u,className:`flex cursor-pointer items-center gap-2 text-sm text-ink ${l}`,children:[m,e]}):(0,a.jsx)("div",{className:l,children:m})}},9245:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,S:()=>s});var a=n(48503);let s=["\uD83D\uDDC2️","\uD83C\uDFE0","\uD83D\uDCBC","\uD83D\uDE80","\uD83E\uDDEA","\uD83C\uDFA8","\uD83D\uDCCA","\uD83D\uDEE0️","\uD83C\uDF10","⚡","\uD83E\uDD16","\uD83D\uDCE6"];function r({value:e,onChange:t,disabled:n}){return(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:s.map(s=>{let r=e===s;return(0,a.jsx)("button",{type:"button",disabled:n,"aria-pressed":r,onClick:()=>t(s),className:`flex h-8 w-8 items-center justify-center rounded-md border text-legacy-16 leading-none! transition-colors disabled:opacity-50 ${r?"border-ink bg-hover-2":"border-rule-2 hover:bg-hover"}`,children:s},s)})})}},9594:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(48503),s=n(80351),r=n(5829);let i=(0,s.forwardRef)(function({label:e,error:t,id:n,className:i="",containerClassName:o="",...l},c){let d=(0,s.useId)(),u=n??d;return(0,a.jsxs)("div",{className:o,children:[e&&(0,a.jsx)(r.A,{htmlFor:u,children:e}),(0,a.jsx)("input",{id:u,ref:c,"aria-invalid":!!t||void 0,className:`w-full rounded-md border bg-hover py-1.5 pr-2 pl-3 text-body-14 leading-5! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${i}`,...l}),t&&(0,a.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},10664:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var a=n(48503),s=n(68926);function r({subtitle:e,url:t}){async function n(){try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(t):i(t),s.oR.success("Copied")}catch{try{i(t),s.oR.success("Copied")}catch{s.oR.error("Could not copy")}}}function i(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let n=document.execCommand("copy");if(t.remove(),!n)throw Error("copy_failed")}return(0,a.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,a.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,a.jsx)("span",{className:"block text-xs leading-[1.4] text-ink-4",children:e}),(0,a.jsx)("span",{className:"block font-mono text-legacy-14 leading-[1.4]! text-ink tracking-[0.02em] mt-1.5 break-all",children:t})]}),(0,a.jsxs)("button",{type:"button",onClick:n,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,a.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"w-3.5 h-3.5",children:[(0,a.jsx)("rect",{x:"3",y:"3",width:"8",height:"8",rx:"1"}),(0,a.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1"})]}),"Copy"]})]})}},13749:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var a=n(2439);let s=(0,a.createServerReference)("4073cb617561c7391dbcf8db92d9c238c95fcb9e2f",a.callServer,void 0,a.findSourceMapURL,"setInstallNotesAction")},13919:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var a=n(48503);function s({label:e,children:t}){return(0,a.jsxs)("div",{className:"mt-3.5 bg-paper border border-rule-2 rounded-[14px] p-5",children:[e&&(0,a.jsx)("div",{className:"text-body-14 leading-none! text-ink-3 mb-2.5",children:e}),t]})}},15564:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var a=n(48503),s=n(80351);let r=(0,s.createContext)(null);function i({onCancel:e,pending:t,saveLabel:n="Save"}){let o=(0,s.useContext)(r),l=o?.report,c=(0,s.useRef)(e);(0,s.useEffect)(()=>{c.current=e});let d=(0,s.useCallback)(()=>c.current(),[]);return((0,s.useEffect)(()=>{l&&l({saveLabel:n,pending:!!t,onCancel:d})},[l,n,t,d]),(0,s.useEffect)(()=>{if(l)return()=>l(null)},[l]),o)?null:(0,a.jsxs)("div",{className:"flex justify-end gap-2 mt-[18px]",children:[(0,a.jsx)("button",{type:"button",onClick:e,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,a.jsx)("button",{type:"submit",disabled:t,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:t?"Saving…":n})]})}},17878:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var a=n(48503),s=n(80351),r=n(68926),i=n(13919),o=n(15564),l=n(9594);function c({formId:e}){let[t,n]=(0,s.useState)(""),[d,u]=(0,s.useState)(""),[m,h]=(0,s.useState)(""),[x,p]=(0,s.useState)(!1);function f(){n(""),u(""),h("")}async function g(e){if(e.preventDefault(),d!==m)return void r.oR.error("New passwords do not match.");if(d.length<8)return void r.oR.error("New password must be at least 8 characters.");p(!0);try{let e=await fetch("/api/auth/change-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:t,newPassword:d,revokeOtherSessions:!0})});if(!e.ok){let t=await e.json().catch(()=>null);r.oR.error(400===e.status?t?.message??"Current password is incorrect.":t?.message??"Could not change the password.");return}f(),r.oR.success("Password changed. Other signed-in devices were signed out.")}catch{r.oR.error("Network error. Please try again.")}finally{p(!1)}}return(0,a.jsx)("form",{id:e,onSubmit:g,children:(0,a.jsxs)(i.v,{children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(l.A,{type:"password",value:t,onChange:e=>n(e.target.value),placeholder:"Current password",autoComplete:"current-password",required:!0}),(0,a.jsx)(l.A,{type:"password",value:d,onChange:e=>u(e.target.value),placeholder:"New password (min. 8 characters)",autoComplete:"new-password",required:!0}),(0,a.jsx)(l.A,{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Repeat new password",autoComplete:"new-password",required:!0})]}),(0,a.jsx)(o.h,{onCancel:f,pending:x,saveLabel:"Change password"})]})})}},23138:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var a=n(48503);let s={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 r({tone:e,children:t,className:n=""}){return(0,a.jsx)("span",{className:["inline-flex h-[18px] items-center rounded-full px-2 text-mono-11 uppercase tracking-[0.1em]",s[e],n].join(" "),children:t})}},28661:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(48503),s=n(78608),r=n(68269),i=n(69996);let o={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"}},l={info:s.R,warn:r.N,tip:i.g};function c({variant:e,title:t,children:n,className:s=""}){let r=o[e],i=l[e];return(0,a.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 ${r.bg} ${s}`,children:[(0,a.jsx)(i,{size:16,weight:"regular",className:`mt-0.5 shrink-0 ${r.iconColor}`}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[t&&(0,a.jsx)("b",{className:"block font-medium text-ink",children:t}),n]})]})}},41685:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});let a=[{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."}]},42853:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var a=n(48503),s=n(80351),r=n(68926),i=n(2439);let o=(0,i.createServerReference)("40af92e60e1d95fb36e01378d938a19f49cf26ed70",i.callServer,void 0,i.findSourceMapURL,"setMcpServerSwitchAction");var l=n(45678),c=n(23138),d=n(90423),u=n(10664);function m({initial:e}){let[t,n]=(0,s.useState)(e.enabled),[i,h]=(0,s.useState)(!1),[x,p]=(0,s.useTransition)();function f(e){p(async()=>{let t=await o({enabled:e});t.ok?(n(e),r.oR.success(e?"MCP server enabled":"MCP server disabled")):r.oR.error(t.message)})}return(0,a.jsxs)("div",{className:"rounded-2xl border border-rule-2 bg-paper p-6",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("h2",{className:"text-medium-15 text-ink",children:"MCP server"}),(0,a.jsx)(c.s,{tone:t?"agent":"ink",children:t?"on":"off"})]}),(0,a.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,a.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."]}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.O,{subtitle:"Connect a client (Claude Code shown):",url:"claude mcp add nodal -- nodal-agents mcp serve"}),(0,a.jsx)("p",{className:"mt-1.5 text-body-12 text-ink-4",children:"Run it on the machine that hosts Nodal."})]}),!e.isOwner&&(0,a.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."})]}),(0,a.jsx)(d.A,{checked:t,disabled:x||!e.isOwner,onChange:()=>{t?f(!1):h(!0)}})]}),(0,a.jsx)(l.A,{open:i,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:()=>{h(!1),f(!0)},onCancel:()=>h(!1)})]})}},45070:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,j:()=>d});var a=n(48503),s=n(80351),r=n(88142),i=n(86045),o=n(12871);function l({open:e,onClose:t,title:n,children:o,footer:c,className:d="",dismissable:u=!0,testId:m}){let[h,x]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{x(!0)},[]),(0,i.Z4)(e,u?t:i.C5),(0,s.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e&&h)?(0,r.createPortal)((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-40 bg-black/60 animate-[fadeIn_150ms_ease]",onClick:u?t:void 0,"aria-hidden":"true"}),(0,a.jsx)("div",{role:"dialog","aria-modal":"true","data-testid":m,className:"fixed inset-0 z-50 flex items-center justify-center p-4 pointer-events-none",children:(0,a.jsxs)("div",{className:`pointer-events-auto w-full max-w-lg max-h-[90vh] overflow-y-auto bg-paper border border-rule-2 rounded-xl shadow-2xl animate-[scaleIn_150ms_ease] ${d}`,children:[void 0!==n&&(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 px-6 pt-5 pb-4 border-b border-rule-2",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-ink",children:n}),u&&(0,a.jsx)("button",{type:"button",onClick:t,"aria-label":"Close",className:"text-ink-3 hover:text-ink transition-colors",children:"✕"})]}),(0,a.jsx)("div",{className:"p-6 pt-5",children:o}),c]})})]}),document.body):null}function c(e){return s.Children.map(e,e=>(0,s.isValidElement)(e)&&e.type===o.A?(0,s.cloneElement)(e,{size:"md"}):e)}function d({children:e,danger:t,className:n=""}){return(0,a.jsxs)("div",{className:`flex items-center gap-2 border-t border-rule-2 px-6 py-4 ${t?"justify-between":"justify-end"} ${n}`,children:[c(t),(0,a.jsx)("div",{className:"flex items-center gap-2",children:c(e)})]})}},45678:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(48503),s=n(80351),r=n(88142),i=n(86045),o=n(12871),l=n(9594),c=n(45070);function d({open:e,title:t,message:n,confirmLabel:u="Confirm",cancelLabel:m="Cancel",destructive:h=!0,typeToConfirm:x,extra:p,onConfirm:f,onCancel:g}){let b=(0,s.useRef)(null),[v,k]=(0,s.useState)(!1),[j,y]=(0,s.useState)(""),[w,N]=(0,s.useState)(e);w!==e&&(N(e),e&&y(""));let C=!!x&&j!==x;return((0,s.useEffect)(()=>{k(!0)},[]),(0,i.Z4)(e,g),(0,s.useEffect)(()=>{e&&b.current?.focus()},[e]),e&&v)?(0,r.createPortal)((0,a.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"confirm-dialog-title",className:"fixed inset-0 z-50 flex items-center justify-center px-4 text-left",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:g,"aria-hidden":"true"}),(0,a.jsxs)("div",{className:"relative bg-paper border border-rule-2 rounded-xl max-w-md w-full shadow-2xl",children:[(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsx)("h2",{id:"confirm-dialog-title",className:"text-base font-semibold text-ink",children:t}),n&&(0,a.jsx)("p",{className:"mt-2 text-sm text-ink-3 leading-relaxed",children:n}),p&&(0,a.jsx)("div",{className:"mt-3",children:p}),x&&(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsxs)("p",{className:"text-body-13 text-ink-3",children:["Type ",(0,a.jsx)("span",{className:"font-mono font-semibold text-ink",children:x})," to confirm."]}),(0,a.jsx)(l.A,{type:"text",value:j,onChange:e=>y(e.target.value),placeholder:x,autoComplete:"off",spellCheck:!1,className:"mt-2"})]})]}),(0,a.jsxs)(c.j,{className:"rounded-b-xl",children:[(0,a.jsx)(o.A,{variant:"neutral",onClick:g,ref:b,children:m}),(0,a.jsx)(o.A,{variant:h?"danger":"ink",onClick:f,disabled:C,className:C?"cursor-not-allowed opacity-40":"",children:u})]})]})]}),document.body):null}},46881:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var a=n(48503),s=n(80351),r=n(68926),i=n(2439);let o=(0,i.createServerReference)("4096ba66126501483de3c164754615f529a970c564",i.callServer,void 0,i.findSourceMapURL,"setAutoRunPauseAction");var l=n(45678),c=n(28661),d=n(23138),u=n(90423);function m({initial:e}){let[t,n]=(0,s.useState)(e.autoRunPaused),[i,h]=(0,s.useState)(!1),[x,p]=(0,s.useTransition)();function f(e){n(e),p(async()=>{let t=await o({paused:e});t.ok?r.oR.success(e?"Auto-run paused. Every command, script and coding task asks for approval again.":"Auto-run resumed. Per-agent Yolo toggles apply again."):(r.oR.error(t.message),n(!e))})}let g=!e.isOwner||x;return(0,a.jsxs)("div",{className:"flex items-start gap-4 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-medium-14 text-ink",children:"Pause all auto-run"}),(0,a.jsx)(d.s,{tone:"err",children:"owner only"})]}),(0,a.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."}),!e.isOwner&&(0,a.jsx)("p",{className:"mt-2 text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."}),t&&e.isOwner&&(0,a.jsx)(c.A,{variant:"warn",children:(0,a.jsxs)("span",{children:[(0,a.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,a.jsx)("div",{className:"mt-0.5",children:(0,a.jsx)(u.A,{checked:t,onChange:function(){t?h(!0):f(!0)},disabled:g})}),(0,a.jsx)(l.A,{open:i,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:()=>{h(!1),f(!1)},onCancel:()=>h(!1)})]})}},51137:(e,t,n)=>{"use strict";n.d(t,{CR:()=>s,Oi:()=>a}),n(94612);let a={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 s(e){return a[e]?.label??e}},59085:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var a=n(48503),s=n(68926),r=n(89466);function i({display:e,value:t,href:n}){async function o(){try{await navigator.clipboard.writeText(t),s.oR.success("Path copied")}catch{s.oR.error("Could not copy")}}let l=(0,a.jsx)("span",{title:t,className:"block truncate rounded-md bg-hover px-2 py-1 text-mono-13 text-ink-2",children:e});return(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)("span",{className:"min-w-0 flex-1",children:n?(0,a.jsx)("a",{href:n,title:t,className:"block min-w-0 hover:opacity-80",children:l}):l}),(0,a.jsxs)("button",{type:"button",onClick:o,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,a.jsx)(r.Q,{size:13})," Copy"]})]})}},59588:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var a=n(2439);let s=(0,a.createServerReference)("40f22c742569be4740560569f501d8f4a87f5db3b4",a.callServer,void 0,a.findSourceMapURL,"switchWorkspaceAction")},60540:(e,t,n)=>{"use strict";n.d(t,{default:()=>v});var a=n(48503),s=n(8584),r=n(48857),i=n(88172),o=n(9481),l=n(76089),c=n(16020),d=n(14397),u=n(28718),m=n(56743),h=n(18859),x=n(65985),p=n(47922),f=n(75207),g=n(7020);let b={"sign-in":s.U,network:r.Q,password:i.L,"worker-secret":o.o,"auto-run-brake":l.v,verification:c.s,"root-agent":d.n,"mcp-server":u.X,timezone:m.z,"install-notes":h.c,workspaces:x.P,urls:p.X,session:f.T};function v({rows:e,panels:t}){return(0,a.jsx)("div",{className:"flex flex-col gap-8","data-testid":"settings-sections",children:e.map(e=>{let n=b[e.id],s=t[e.id]??null;return(0,a.jsxs)("section",{id:e.id,"data-testid":`setting-section-${e.id}`,className:"flex flex-col gap-4",children:[(0,a.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-ink-3",children:(0,a.jsx)(n,{size:16})}),(0,a.jsx)("h2",{className:"text-title-16 text-ink",children:e.name}),e.tag&&(0,a.jsx)(g.E,{variant:e.tag.variant,children:e.tag.label})]}),(0,a.jsx)("p",{className:"text-body-13 text-ink-3",children:e.lede})]}),null===s?(0,a.jsxs)("p",{className:"text-body-13 text-warn","data-testid":`setting-unread-${e.id}`,children:[e.value,". Reload the page, and check the runner is up."]}):(0,a.jsx)("div",{className:"rounded-lg border border-rule-2 bg-paper p-4",children:s})]},e.id)})})}},68534:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var a=n(48503),s=n(78936),r=n(80351);function i({placeholder:e="Search agents, skills, runs…",keyboardShortcut:t=!0,onSubmit:n,className:o=""}){let l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!t)return;let e=e=>{if("/"!==e.key)return;let t=e.target;t&&/^(input|textarea|select)$/i.test(t.tagName)||t?.isContentEditable||(e.preventDefault(),l.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t]),(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),n?.(l.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 ${o}`,children:[(0,a.jsx)(s.e,{size:13,className:"shrink-0"}),(0,a.jsx)("input",{ref:l,type:"search",placeholder:e,className:"h-full flex-1 border-0 bg-transparent text-body-14 leading-none! text-ink outline-none placeholder:text-ink-4"}),(0,a.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:"/"})]})}},71501:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var a=n(2439);let s=(0,a.createServerReference)("4025cdadbdaedfecc09d7df7e7acdf7c9234c69555",a.callServer,void 0,a.findSourceMapURL,"setRootAgentAction")},73827:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var a=n(2439);let s=(0,a.createServerReference)("40f7bb6f0c930157d682f45f81679eb02d4668aac1",a.callServer,void 0,a.findSourceMapURL,"createWorkspaceAction")},74380:(e,t,n)=>{"use strict";n.d(t,{default:()=>j});var a=n(48503),s=n(80351),r=n(73573),i=n(68926),o=n(2439);let l=(0,o.createServerReference)("00371a18e0ae71628e3fe8e9c796543d9d12d4da20",o.callServer,void 0,o.findSourceMapURL,"listWorkspacesAction");var c=n(73827);let d=(0,o.createServerReference)("40b8858920715581739d12026d59a5134db6513095",o.callServer,void 0,o.findSourceMapURL,"renameWorkspaceAction"),u=(0,o.createServerReference)("40d9429ade1681b8d6f6ee71f16a761e385f126adb",o.callServer,void 0,o.findSourceMapURL,"deleteWorkspaceAction");var m=n(59588),h=n(45678),x=n(13919),p=n(15564),f=n(7020),g=n(9245),b=n(12871),v=n(75551),k=n(9594);function j({initial:e,formId:t}){let n=(0,r.useRouter)(),[o,y]=(0,s.useState)(e),[w,N]=(0,s.useState)(""),[C,S]=(0,s.useState)(g.S[0]),[A,R]=(0,s.useTransition)(),[O,P]=(0,s.useState)(null),[T,L]=(0,s.useState)(""),[$,E]=(0,s.useState)(g.S[0]),[M,U]=(0,s.useTransition)(),[D,F]=(0,s.useState)(null),[I,W]=(0,s.useTransition)();async function z(){let e=await l();e.ok&&y(e.data)}function _(){P(null),L("")}async function G(e){let t=await (0,m.W)({id:e});t.ok?(await z(),n.refresh()):i.oR.error(t.message)}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mt-3.5 rounded-xl border border-rule-2 bg-paper overflow-hidden",children:0===o.length?(0,a.jsx)("p",{className:"px-[18px] py-4 text-body-14 text-ink-4",children:"No workspaces found."}):o.map(e=>{let t=O===e.id;return(0,a.jsxs)("div",{className:"flex items-center gap-3 px-[18px] py-3.5 border-b border-rule-2 last:border-b-0",children:[(0,a.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:e.icon??e.name.slice(0,1).toUpperCase()}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[t?(0,a.jsxs)("form",{onSubmit:t=>{var a;let s;return a=e.id,t.preventDefault(),void((s=T.trim())&&U(async()=>{let e=await d({id:a,name:s,icon:$});e.ok?(i.oR.success("Workspace updated"),P(null),await z(),n.refresh()):i.oR.error(e.message)}))},className:"flex flex-col gap-2",children:[(0,a.jsx)(g.A,{value:$,onChange:E,disabled:M}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(k.A,{autoFocus:!0,type:"text",value:T,onChange:e=>L(e.target.value),maxLength:60,disabled:M,containerClassName:"w-44"}),(0,a.jsx)(b.A,{variant:"ink",size:"sm",type:"submit",disabled:!T.trim(),children:"Save"}),(0,a.jsx)(v.A,{type:"button",onClick:_,children:"Cancel"})]})]}):(0,a.jsx)("span",{className:"text-medium-14 text-ink leading-none!",children:e.name}),(0,a.jsx)("span",{className:"text-mono-11 text-ink-4 leading-none! mt-0.5",children:e.role})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[e.active&&(0,a.jsx)(f.E,{variant:"ok",children:"ACTIVE"}),!e.active&&(0,a.jsx)(v.A,{onClick:()=>G(e.id),children:"Switch"}),!t&&(0,a.jsx)(v.A,{onClick:()=>{P(e.id),L(e.name),E(e.icon??g.S[0])},children:"Rename"}),"owner"===e.role&&!e.active&&(0,a.jsx)(v.A,{tone:"danger",onClick:()=>F(e),disabled:I,children:"Delete"})]})]},e.id)})}),(0,a.jsx)("form",{id:t,onSubmit:function(e){e.preventDefault();let t=w.trim();t&&R(async()=>{let e=await (0,c.O)({name:t,icon:C});e.ok?(i.oR.success(`Workspace "${t}" created`),N(""),S(g.S[0]),await z(),n.refresh()):i.oR.error(e.message)})},children:(0,a.jsxs)(x.v,{label:"Create workspace",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(g.A,{value:C,onChange:S,disabled:A})}),(0,a.jsx)("div",{className:"flex gap-2 items-center",children:(0,a.jsx)(k.A,{type:"text",value:w,onChange:e=>N(e.target.value),placeholder:"Workspace name",maxLength:60,disabled:A,containerClassName:"min-w-0 flex-1"})}),(0,a.jsx)(p.h,{onCancel:()=>N(""),pending:A,saveLabel:"Create"})]})}),(0,a.jsx)(h.A,{open:null!==D,title:"Delete workspace?",message:D?`This will permanently delete "${D.name}" and all its data (agents, jobs, credentials). This cannot be undone.`:"",confirmLabel:"Delete",destructive:!0,onConfirm:function(){if(!D)return;let{id:e,name:t}=D;W(async()=>{F(null);let a=await u({id:e});a.ok?(i.oR.success(`Workspace "${t}" deleted`),await z(),n.refresh()):i.oR.error(a.message)})},onCancel:()=>F(null)})]})}},75613:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var a=n(48503),s=n(80351),r=n(68926),i=n(13749),o=n(13919),l=n(15564),c=n(76381);function d({initial:e,formId:t}){let[n,u]=(0,s.useState)(e),[m,h]=(0,s.useTransition)();return(0,a.jsx)("form",{id:t,onSubmit:function(e){e.preventDefault(),h(async()=>{let e=await (0,i.F)(n);e.ok?r.oR.success("Install notes saved — agents will see them on the next job."):r.oR.error(e.message)})},children:(0,a.jsxs)(o.v,{children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.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,a.jsx)(c.A,{value:n,onChange:e=>u(e.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,a.jsx)(l.h,{onCancel:function(){u(e)},pending:m})]})})}},76381:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(48503),s=n(80351),r=n(5829);let i=(0,s.forwardRef)(function({label:e,error:t,showCount:n,id:i,className:o="",containerClassName:l="",maxLength:c,value:d,bare:u=!1,...m},h){let x=(0,s.useId)(),p=i??x;return(0,a.jsxs)("div",{className:l,children:[e&&(0,a.jsx)(r.A,{htmlFor:p,children:e}),(0,a.jsx)("textarea",{id:p,ref:h,maxLength:c,value:d,"aria-invalid":!!t||void 0,className:u?`w-full text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${o}`:`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 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${o}`,...m}),n&&void 0!==c&&"string"==typeof d&&(0,a.jsxs)("div",{className:"mt-1 text-right text-legacy-11 text-ink-4",children:[d.length," / ",c]}),t&&(0,a.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},78321:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var a=n(2439);let s=(0,a.createServerReference)("40dd8e5901148c0057f2036a191a444debc5b81fa0",a.callServer,void 0,a.findSourceMapURL,"setWorkspaceTimezoneAction")},78828:(e,t,n)=>{"use strict";n.d(t,{default:()=>g});var a=n(48503),s=n(80351),r=n(68926),i=n(2439);let o=(0,i.createServerReference)("40269888923497f36defdf1453833832560832c370",i.callServer,void 0,i.findSourceMapURL,"updateAuthSettingsAction");var l=n(45678),c=n(91701),d=n(28661);function u({name:e,description:t,action:n}){return(0,a.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,a.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,a.jsx)("span",{className:"block text-medium-14 leading-[1.3]! text-ink",children:e}),(0,a.jsx)("span",{className:"block text-body-13 leading-[1.4]! text-ink-3 mt-0.5",children:t})]}),(0,a.jsx)("span",{className:"flex-shrink-0",children:n})]})}var m=n(15564),h=n(13919),x=n(75551),p=n(9594),f=n(5829);function g({initial:e,formId:t}){let[n,i]=(0,s.useState)(e.configuredMode),[b,v]=(0,s.useState)(!1),[k,j]=(0,s.useTransition)(),[y,w]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1);return(0,a.jsxs)("form",{id:t,onSubmit:function(e){e.preventDefault();let t=new FormData(e.currentTarget);j(async()=>{let e=await o({mode:n,googleClientId:b?t.get("googleClientId"):void 0,googleClientSecret:b?t.get("googleClientSecret"):void 0,clearGoogle:!1});e.ok?(r.oR.success("Auth settings saved"),C(e.data.requiresRestart)):r.oR.error(e.message)})},children:[(0,a.jsxs)(h.v,{label:"Auth mode",children:[(0,a.jsx)(c.t,{active:"local-trust"===n,onClick:()=>i("local-trust"),name:"No auth (local-trust)",description:"Single hardcoded user. Recommended for solo loopback installs."}),(0,a.jsx)(c.t,{active:"local-auth"===n,onClick:()=>i("local-auth"),name:"Email + password (local-auth)",description:"Sign-up + login via better-auth. Optional Google OAuth on top."}),"local-auth"===n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.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,a.jsx)(u,{name:"Google OAuth",description:e.googleConfigured?"Configured.":"Optional. Add to allow Google sign-in alongside email + password.",action:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(x.A,{onClick:()=>v(e=>!e),children:b?"Hide fields":e.googleConfigured?"Rotate":"Add"}),e.googleConfigured&&(0,a.jsx)(x.A,{tone:"danger",onClick:()=>w(!0),disabled:k,children:"Remove"})]})}),b&&(0,a.jsxs)("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-3 px-1",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(f.A,{htmlFor:"google-client-id",children:"Client ID"}),(0,a.jsx)(p.A,{id:"google-client-id",name:"googleClientId",type:"text",placeholder:"xxx.apps.googleusercontent.com",className:"font-mono"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(f.A,{htmlFor:"google-client-secret",children:"Client secret"}),(0,a.jsx)(p.A,{id:"google-client-secret",name:"googleClientSecret",type:"password",placeholder:e.googleConfigured?"•••••••• (overwrite)":"",className:"font-mono"})]}),(0,a.jsxs)("p",{className:"sm:col-span-2 text-body-12 text-ink-4",children:["Use authorized JavaScript origins"," ",(0,a.jsx)("code",{className:"font-mono",children:"http://localhost:3000"})," and redirect URI"," ",(0,a.jsx)("code",{className:"font-mono",children:"http://localhost:3000/api/auth/callback/google"})," ","in the Google Cloud Console."]})]})]}),!e.configPathExists&&(0,a.jsxs)(d.A,{variant:"warn",children:[(0,a.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,a.jsx)("code",{className:"text-mono-12",children:"nodal-agents init"})," at least once."]}),(0,a.jsx)(d.A,{variant:"warn",children:(0,a.jsxs)("span",{children:[(0,a.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."]})}),N&&(0,a.jsxs)(d.A,{variant:"info",title:"Saved. Restart required.",children:["Run ",(0,a.jsx)("code",{className:"text-mono-12",children:"nodal-agents down && nodal-agents up"})," to activate the new auth mode."]}),(0,a.jsx)(m.h,{onCancel:function(){i(e.configuredMode),v(!1),C(!1)},pending:k})]}),(0,a.jsx)(l.A,{open:y,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(){w(!1),j(async()=>{let e=await o({mode:n,clearGoogle:!0});e.ok?r.oR.success("Google credentials removed"):r.oR.error(e.message)})},onCancel:()=>w(!1)})]})}},79041:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var a=n(48503),s=n(80351),r=n(68926),i=n(2439);let o=(0,i.createServerReference)("408b08d0c989848d154cfeabab6ada5665fd708038",i.callServer,void 0,i.findSourceMapURL,"updateNetworkSettingsAction");var l=n(91701),c=n(28661),d=n(10664),u=n(15564),m=n(13919);function h({initial:e,formId:t}){let[n,i]=(0,s.useState)(e.configuredBind),[x,p]=(0,s.useTransition)(),[f,g]=(0,s.useState)(!1),[b,v]=(0,s.useState)(!1);return(0,a.jsx)("form",{id:t,onSubmit:function(e){e.preventDefault(),p(async()=>{let e=await o({bind:n});e.ok?(r.oR.success("Network settings saved"),g(e.data.requiresRestart),v(e.data.authModeAligned)):r.oR.error(e.message)})},children:(0,a.jsxs)(m.v,{children:[(0,a.jsx)(l.t,{active:"loopback"===n,onClick:()=>i("loopback"),name:"Local only (127.0.0.1)",description:"Only this machine can reach the dashboard. No auth required by default."}),(0,a.jsx)(l.t,{active:"lan"===n,onClick:()=>i("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"===n&&e.lanAddresses.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{variant:"info",children:"Any device on the same Wi-Fi can open the dashboard. Combine with email + password auth to avoid unintended access."}),e.lanAddresses.map(t=>{let n=`http://${t}:${e.webPort}`;return(0,a.jsx)(d.O,{subtitle:"From your phone or another device on the same network, open:",url:n},t)}),(0,a.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,a.jsx)(c.A,{variant:"warn",children:(0,a.jsxs)("span",{children:[(0,a.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"===n&&0===e.lanAddresses.length&&(0,a.jsx)(c.A,{variant:"warn",children:"No LAN interface detected. Make sure this machine is connected to a network before enabling LAN access."}),!e.configPathExists&&(0,a.jsxs)(c.A,{variant:"warn",children:[(0,a.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,a.jsx)("code",{className:"text-mono-12",children:"nodal-agents init"})," at least once."]}),b&&(0,a.jsx)(c.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."}),f&&(0,a.jsxs)(c.A,{variant:"info",title:"Saved. Restart required.",children:["Run ",(0,a.jsx)("code",{className:"text-mono-12",children:"nodal-agents down && nodal-agents up"})," to activate the new network mode."]}),(0,a.jsx)(u.h,{onCancel:function(){i(e.configuredBind),g(!1),v(!1)},pending:x})]})})}},79183:(e,t,n)=>{"use strict";n.d(t,{default:()=>x});var a=n(48503),s=n(80351),r=n(73573),i=n(68926),o=n(71501),l=n(41685),c=n(94612),d=n(13919),u=n(15564),m=n(91701),h=n(7576);function x({agents:e,initialRootAgentId:t,initialGrants:n,formId:p}){let f=(0,r.useRouter)(),[g,b]=(0,s.useTransition)(),v=e.find(e=>e.id===t)??null,[k,j]=(0,s.useState)(n??c.zw);return(0,a.jsx)(a.Fragment,{children:null===v?(0,a.jsx)("div",{className:"mt-3.5 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:(0,a.jsxs)("p",{className:"text-body-14 text-ink-3",children:["No ROOT agent yet."," ",(0,a.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,a.jsx)("form",{id:p,onSubmit:function(e){e.preventDefault(),b(async()=>{let e=await (0,o.S)({grants:k});e.ok?(i.oR.success("ROOT agent configuration saved"),f.refresh()):i.oR.error(e.message)})},children:(0,a.jsxs)(d.v,{children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("div",{className:"mb-1.5 text-body-14 leading-none! text-ink-3",children:"ROOT agent"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-rule bg-paper px-3 py-2",children:[(0,a.jsx)("span",{className:"text-medium-14 text-ink",children:v.name}),(0,a.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,a.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,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("div",{className:"mb-2 text-body-14 leading-none! text-ink-3",children:"Allowed actions"}),(0,a.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:e,label:t})=>(0,a.jsx)(h.A,{tone:"connector",checked:k[e],onChange:()=>{j(t=>({...t,[e]:!t[e]}))},disabled:g,label:(0,a.jsx)("span",{className:"text-body-14 text-ink-2",children:t})},e))})]}),(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("div",{className:"mb-2.5 text-body-14 leading-none! text-ink-3",children:"Autonomy level"}),(0,a.jsx)("div",{role:"radiogroup","aria-label":"Autonomy level",children:l.u.map(e=>(0,a.jsx)(m.t,{active:k.autonomy===e.value,onClick:()=>{var t;return t=e.value,void j(e=>({...e,autonomy:t}))},name:e.name,description:e.description},e.value))})]})]}),(0,a.jsx)(u.h,{onCancel:function(){j(n??c.zw)},pending:g,saveLabel:"Save"})]})})})}},82825:(e,t,n)=>{"use strict";n.d(t,{default:()=>x});var a=n(48503),s=n(80351),r=n(68926),i=n(94612),o=n(2439);let l=(0,o.createServerReference)("40840372db7a7b0ff93aa3d44f4d1c5c0181eea8c9",o.callServer,void 0,o.findSourceMapURL,"setVerificationSurfacesAction");var c=n(51137),d=n(45678),u=n(7576),m=n(23138);let h=i.XWN.map(e=>({key:e,...c.Oi[e]}));function x({initial:e}){let[t,n]=(0,s.useState)(e.surfaces),[i,o]=(0,s.useState)(null),[c,p]=(0,s.useTransition)();function f(e){n(e),p(async()=>{let a=await l(e);a.ok?r.oR.success("Verification surfaces saved."):(r.oR.error(a.message),n(t))})}let g=!e.isOwner||c,b=h.find(e=>e.key===i)?.label??"";return(0,a.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-rule-2 bg-paper px-[18px] py-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-medium-14 text-ink",children:"What gets verified"}),(0,a.jsx)(m.s,{tone:"err",children:"owner only"})]}),(0,a.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,a.jsx)("ul",{className:"flex flex-col gap-2",children:h.map(e=>(0,a.jsxs)("li",{className:"flex items-baseline gap-2",children:[(0,a.jsx)(u.A,{tone:"ink",label:e.label,checked:t[e.key],disabled:g,onChange:n=>{var a;return a=e.key,void(!n.currentTarget.checked?o(a):f({...t,[a]:!0}))},"data-testid":`verification-surface-${e.key}`}),(0,a.jsx)("span",{className:"text-body-12 text-ink-4",children:e.hint})]},e.key))}),!e.isOwner&&(0,a.jsx)("p",{className:"text-body-12 text-ink-4",children:"Only the workspace owner can change this setting."}),(0,a.jsx)(d.A,{open:null!==i,title:`Stop verifying ${b}?`,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:()=>{o(null),i&&f({...t,[i]:!1})},onCancel:()=>o(null)})]})}},90423:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(48503);let s={sm:"h-5 w-9",md:"h-[22px] w-[38px]"},r={sm:"h-3.5 w-3.5",md:"h-4 w-4"};function i({checked:e,onChange:t,disabled:n,size:o="md",ariaLabel:l,ariaLabelledBy:c,ariaDescribedBy:d,readOnly:u=!1}){let m=`relative inline-flex shrink-0 items-center rounded-full ${s[o]} ${e?"bg-ok":"bg-ink-4"}`,h=(0,a.jsx)("span",{className:`pointer-events-none inline-block rounded-full bg-paper ${u?"":"transition-transform duration-200"} ${r[o]} ${e?"translate-x-[19px]":"translate-x-[3px]"}`});return u?(0,a.jsx)("span",{role:"img","aria-label":l??(e?"On":"Off"),"data-state":e?"on":"off",className:`${m} ${n?"opacity-50":""}`,children:h}):(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":l,"aria-labelledby":c,"aria-describedby":d,disabled:n,onClick:t,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:h})}},91701:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var a=n(48503);function s({active:e,onClick:t,name:n,description:r,children:i,testId:o}){return(0,a.jsxs)("div",{role:"radio","aria-checked":e,"data-testid":o,tabIndex:0,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},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]",e?"border-conn-vivid bg-conn-vivid/[0.06]":"border-rule-2 bg-paper hover:border-rule"].join(" "),children:[(0,a.jsx)("span",{className:["mt-0.5 flex-shrink-0 w-[18px] h-[18px] rounded-full border-[1.6px] flex items-center justify-center",e?"border-conn-vivid":"border-rule"].join(" "),children:e&&(0,a.jsx)("span",{className:"w-2 h-2 rounded-full bg-conn-vivid"})}),(0,a.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,a.jsx)("span",{className:"block text-medium-14 leading-[1.3]! text-ink",children:n}),(0,a.jsx)("span",{className:"block text-body-13 leading-[1.4]! text-ink-3 mt-0.5",children:r}),i]})]})}}},e=>{e.O(0,[2208,3969,8153,7999,8571,5034,146,4811,9706,7358],()=>e(e.s=2833)),_N_E=e.O()}]);
|
package/web/.next/static/chunks/app/(dashboard)/settings/root-context/page-63c38b3c419dfbbc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2945],{5829:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(48503);function r({children:e,className:t="",...a}){return(0,l.jsx)("label",{className:`block text-xs text-ink-3 mb-1 ${t}`,...a,children:e})}},12871:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var l=a(48503),r=a(22208),n=a.n(r),s=a(80351);let i={ink:"bg-ink text-canvas border-0 hover:brightness-[0.92]",agent:"bg-agent-vivid text-[#1a2200] border-0 hover:brightness-[0.96]",coral:"bg-skill-vivid text-white border-0 hover:brightness-[0.94]",blue:"bg-conn-vivid text-white border-0 hover:brightness-[0.94]",neutral:"border border-rule-2 bg-paper text-ink hover:bg-hover",danger:"border border-err/30 bg-paper text-err hover:border-err hover:bg-warn-bg"},d=(0,s.forwardRef)(function(e,t){let{children:a,variant:r="ink",size:s="md",className:d=""}=e,c=`inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md leading-none! transition-[filter,background-color] disabled:pointer-events-none disabled:opacity-40 ${"md"===s?"h-[34px] px-3.5 text-medium-14":"h-[30px] px-3 text-medium-13"} ${i[r]} ${d}`;if("href"in e&&e.href){let{href:r,variant:s,size:i,className:d,children:o,...m}=e;return(0,l.jsx)(n(),{href:r,className:c,ref:t,...m,children:a})}let{variant:o,size:m,className:x,children:h,...u}=e;return(0,l.jsx)("button",{type:"button",className:c,ref:t,...u,children:a})})},13639:(e,t,a)=>{"use strict";a.d(t,{R:()=>r});var l=a(2439);let r=(0,l.createServerReference)("4070e12aa6a608ebd99e4129d4094ad11ef554158b",l.callServer,void 0,l.findSourceMapURL,"updateSkillAction")},13749:(e,t,a)=>{"use strict";a.d(t,{F:()=>r});var l=a(2439);let r=(0,l.createServerReference)("4073cb617561c7391dbcf8db92d9c238c95fcb9e2f",l.callServer,void 0,l.findSourceMapURL,"setInstallNotesAction")},16763:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(80351);let r=l.forwardRef((e,t)=>{let{alt:a,color:r="currentColor",size:n="1em",weight:s="regular",mirrored:i=!1,children:d,weights:c,...o}=e;return l.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,fill:r,viewBox:"0 0 256 256",transform:i?"scale(-1, 1)":void 0,...o},!!a&&l.createElement("title",null,a),d,c.get(s))});r.displayName="SSRBase"},19744:(e,t,a)=>{"use strict";a.d(t,{t:()=>r});var l=a(2439);let r=(0,l.createServerReference)("40a39f04da56ee7d64b87b85197fcaa7fb8526d068",l.callServer,void 0,l.findSourceMapURL,"deleteMemoryAction")},37306:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(80351);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),l.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]])},38178:(e,t,a)=>{"use strict";a.d(t,{K:()=>i});var l=a(80351),r=a(16763),n=a(37306);let s=l.forwardRef((e,t)=>l.createElement(r.A,{ref:t,...e,weights:n.A}));s.displayName="CaretRightIcon";let i=s},47585:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var l=a(48503),r=a(68534),n=a(81098),s=a(2193);function i({title:e,subtitle:t,header:a}){return void 0!==a?(0,l.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,l.jsx)("div",{className:"min-w-0 flex-1",children:a}),(0,l.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,l.jsx)(r.default,{className:"hidden md:flex"}),(0,l.jsx)(s.default,{}),(0,l.jsx)(n.default,{})]})]}):(0,l.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,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("h1",{className:"text-display-28 leading-[1.15]! tracking-[-0.015em] text-ink",children:e}),t&&(0,l.jsx)("p",{className:"mt-1.5 text-body-14 leading-[1.5]! text-ink-3",children:t})]}),(0,l.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,l.jsx)(r.default,{className:"hidden md:flex"}),(0,l.jsx)(s.default,{}),(0,l.jsx)(n.default,{})]})]})}function d(e){let{toolbar:t,toolbarBleed:a=!1,aside:r,footer:n,children:s,fluid:d=!1,fill:c=!1,bodyClassName:o=""}=e,m=void 0!==e.header?(0,l.jsx)(i,{header:e.header}):(0,l.jsx)(i,{title:e.title,subtitle:e.subtitle});return c?(0,l.jsxs)("div",{className:"flex h-full min-h-0 flex-1 flex-col",children:[m,t&&a&&t,(0,l.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,l.jsxs)("div",{className:`flex min-w-0 min-h-0 flex-1 flex-col ${o}`,children:[t&&!a&&(0,l.jsx)("div",{className:`w-full px-5 pt-4 sm:px-8 lg:px-9 ${d?"":"mx-auto max-w-6xl"}`,children:t}),d?s:(0,l.jsx)("div",{className:"mx-auto flex min-h-0 w-full max-w-6xl flex-1 flex-col",children:s})]}),r]}),n]}):(0,l.jsxs)(l.Fragment,{children:[m,t&&a&&t,(0,l.jsxs)("div",{className:`w-full px-5 pt-6 pb-10 sm:px-8 lg:px-9 ${d?"":"mx-auto max-w-6xl"} ${o}`,children:[t&&!a&&(0,l.jsx)("div",{className:"mb-5",children:t}),s]})]})}},53384:(e,t,a)=>{Promise.resolve().then(a.bind(a,95949))},63428:(e,t,a)=>{"use strict";a.d(t,{a:()=>i});var l=a(80351),r=a(16763),n=a(91692);let s=l.forwardRef((e,t)=>l.createElement(r.A,{ref:t,...e,weights:n.A}));s.displayName="CaretDownIcon";let i=s},68534:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var l=a(48503),r=a(78936),n=a(80351);function s({placeholder:e="Search agents, skills, runs…",keyboardShortcut:t=!0,onSubmit:a,className:i=""}){let d=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!t)return;let e=e=>{if("/"!==e.key)return;let t=e.target;t&&/^(input|textarea|select)$/i.test(t.tagName)||t?.isContentEditable||(e.preventDefault(),d.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t]),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),a?.(d.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 ${i}`,children:[(0,l.jsx)(r.e,{size:13,className:"shrink-0"}),(0,l.jsx)("input",{ref:d,type:"search",placeholder:e,className:"h-full flex-1 border-0 bg-transparent text-body-14 leading-none! text-ink outline-none placeholder:text-ink-4"}),(0,l.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:"/"})]})}},71552:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(48503),r=a(63428),n=a(38178);let s={default:"px-4",tight:"px-3",none:"px-0"};function i({open:e,onClick:t,children:a,chevron:d="start",inset:c="default",className:o="",testId:m}){let x=(0,l.jsx)("span",{className:"flex w-3.5 shrink-0 items-center text-ink-4","aria-hidden":!0,children:e?(0,l.jsx)(r.a,{size:14}):(0,l.jsx)(n.K,{size:14})});return(0,l.jsxs)("button",{type:"button",onClick:t,"aria-expanded":e,"data-testid":m,className:`flex w-full items-center gap-2 ${s[c]} py-3 text-left hover:bg-hover ${o}`,children:["start"===d&&x,a,"end"===d&&x]})}},76381:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(48503),r=a(80351),n=a(5829);let s=(0,r.forwardRef)(function({label:e,error:t,showCount:a,id:s,className:i="",containerClassName:d="",maxLength:c,value:o,bare:m=!1,...x},h){let u=(0,r.useId)(),p=s??u;return(0,l.jsxs)("div",{className:d,children:[e&&(0,l.jsx)(n.A,{htmlFor:p,children:e}),(0,l.jsx)("textarea",{id:p,ref:h,maxLength:c,value:o,"aria-invalid":!!t||void 0,className:m?`w-full text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${i}`:`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 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${i}`,...x}),a&&void 0!==c&&"string"==typeof o&&(0,l.jsxs)("div",{className:"mt-1 text-right text-legacy-11 text-ink-4",children:[o.length," / ",c]}),t&&(0,l.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},78936:(e,t,a)=>{"use strict";a.d(t,{e:()=>i});var l=a(80351),r=a(3674);let n=new Map([["bold",l.createElement(l.Fragment,null,l.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",l.createElement(l.Fragment,null,l.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),l.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",l.createElement(l.Fragment,null,l.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",l.createElement(l.Fragment,null,l.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",l.createElement(l.Fragment,null,l.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",l.createElement(l.Fragment,null,l.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"}))]]),s=l.forwardRef((e,t)=>l.createElement(r.A,{ref:t,...e,weights:n}));s.displayName="MagnifyingGlassIcon";let i=s},91692:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(80351);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),l.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]])},95949:(e,t,a)=>{"use strict";a.d(t,{default:()=>b});var l=a(48503),r=a(80351),n=a(68926),s=a(2439);let i=(0,s.createServerReference)("4093794ec9990e372bebb85706c9bfa56374bff888",s.callServer,void 0,s.findSourceMapURL,"updateRootPersonalityAction");var d=a(13749),c=a(13639),o=a(19744),m=a(12871),x=a(75551),h=a(76381),u=a(47585),p=a(71552);let f="mt-2 text-mono-13 leading-[1.55]!";function g({children:e}){return(0,l.jsx)("div",{className:"text-mono-11 tracking-[0.18em] uppercase text-ink-4",children:e})}function b({rootName:e,systemPrompt:t,personality:a,skills:s,installNotes:v,memories:j}){let[k,y]=(0,r.useState)(a),[N,w]=(0,r.useState)(!1),[E,A]=(0,r.useState)(v),[M,R]=(0,r.useState)(!1),[S,Z]=(0,r.useState)(Object.fromEntries(s.map(e=>[e.id,e.content]))),[F,C]=(0,r.useState)(null),[L,$]=(0,r.useState)({}),[O,z]=(0,r.useState)(j);async function I(){w(!0);let e=await i({personality:k});w(!1),n.oR[e.ok?"success":"error"](e.ok?"Personality saved":e.message)}async function _(){R(!0);let e=await (0,d.F)(E);R(!1),n.oR[e.ok?"success":"error"](e.ok?"Install notes saved":e.message)}async function U(e){C(e.id);let t=await (0,c.R)({id:e.id,name:e.name,description:e.description??void 0,content:S[e.id]??""});C(null),n.oR[t.ok?"success":"error"](t.ok?`Saved "${e.name}"`:t.message)}async function D(e){let t=await (0,o.t)(e);t.ok?(z(t=>t.filter(t=>t.id!==e)),n.oR.success("Memory removed")):n.oR.error(t.message)}return(0,l.jsx)(u.A,{title:"Root context",subtitle:"What the ROOT agent sees every turn.",children:e?(0,l.jsxs)("div",{className:"mt-7 flex flex-col gap-9",children:[(0,l.jsxs)("section",{children:[(0,l.jsxs)(g,{children:["Full system prompt — exactly what ",e," receives"]}),(0,l.jsx)("p",{className:"mt-1 text-body-13 text-ink-3",children:"The complete context assembled per turn: identity, personality, runtime, built-in capabilities, workspaces, memory, and every skill. Read-only — edit the pieces below."}),(0,l.jsx)(h.A,{readOnly:!0,value:t,rows:18,className:"mt-2 text-mono-12 leading-[1.5]! text-ink-2"})]}),(0,l.jsxs)("section",{children:[(0,l.jsx)(g,{children:"Identity & personality"}),(0,l.jsx)(h.A,{value:k,onChange:e=>y(e.target.value),rows:12,className:f}),(0,l.jsx)("div",{className:"mt-2 flex justify-end",children:(0,l.jsx)(m.A,{onClick:I,size:"sm",children:N?"Saving…":"Save personality"})})]}),(0,l.jsxs)("section",{children:[(0,l.jsxs)(g,{children:["Skills (",s.length,")"]}),(0,l.jsx)("p",{className:"mt-1 text-body-13 text-ink-3",children:"Each skill's full markdown is injected into the prompt. Edit here to change how the agent behaves."}),(0,l.jsxs)("div",{className:"mt-3 flex flex-col gap-2.5",children:[s.map(e=>{let t=!!L[e.id];return(0,l.jsxs)("div",{className:"overflow-hidden rounded-xl border border-rule-2 bg-paper",children:[(0,l.jsxs)(p.A,{open:t,onClick:()=>$(t=>({...t,[e.id]:!t[e.id]})),children:[(0,l.jsx)("span",{className:"shrink-0 text-legacy-14 font-semibold text-ink",children:e.name}),e.description&&(0,l.jsxs)("span",{className:"min-w-0 truncate text-body-13 text-ink-3",children:["— ",e.description]}),(0,l.jsxs)("span",{className:"ml-auto shrink-0 text-mono-11 text-ink-4",children:[(S[e.id]??"").length," chars"]})]}),t&&(0,l.jsxs)("div",{className:"px-4 pb-4",children:[(0,l.jsx)(h.A,{value:S[e.id]??"",onChange:t=>Z(a=>({...a,[e.id]:t.target.value})),rows:12,className:f}),(0,l.jsx)("div",{className:"mt-2 flex justify-end",children:(0,l.jsx)(m.A,{onClick:()=>U(e),size:"sm",children:F===e.id?"Saving…":"Save"})})]})]},e.id)}),0===s.length&&(0,l.jsx)("div",{className:"text-body-13 text-ink-4",children:"No skills attached."})]})]}),(0,l.jsxs)("section",{children:[(0,l.jsx)(g,{children:"Install notes (Runtime block)"}),(0,l.jsx)("p",{className:"mt-1 text-body-13 text-ink-3",children:"Operator notes about this machine (endpoints, model names, paths) — injected into every agent's ## Runtime block."}),(0,l.jsx)(h.A,{value:E,onChange:e=>A(e.target.value),rows:6,placeholder:"e.g. ComfyUI runs on port 8000; substitute models, don't block.",className:f}),(0,l.jsx)("div",{className:"mt-2 flex justify-end",children:(0,l.jsx)(m.A,{onClick:_,size:"sm",children:M?"Saving…":"Save notes"})})]}),(0,l.jsxs)("section",{children:[(0,l.jsxs)(g,{children:["Persistent memory (",O.length,")"]}),(0,l.jsx)("p",{className:"mt-1 text-body-13 text-ink-3",children:"Durable facts injected into the prompt. Remove anything stale or wrong."}),(0,l.jsxs)("div",{className:"mt-3 flex flex-col gap-2",children:[O.map(e=>(0,l.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-rule-2 bg-paper px-3.5 py-2.5",children:[(0,l.jsx)("span",{className:"mt-0.5 shrink-0 rounded bg-conn-vivid/12 px-1.5 py-0.5 text-mono-11 uppercase tracking-wide text-ink-3",children:e.category}),(0,l.jsx)("span",{className:"min-w-0 flex-1 text-legacy-14 leading-[1.5]! text-ink",children:e.fact}),(0,l.jsx)(x.A,{tone:"danger",onClick:()=>D(e.id),className:"shrink-0",children:"Remove"})]},e.id)),0===O.length&&(0,l.jsx)("div",{className:"text-body-13 text-ink-4",children:"No memories yet."})]})]})]}):(0,l.jsx)("div",{className:"mt-6 rounded-xl border border-rule-2 bg-paper p-5 text-legacy-14 text-ink-3",children:"No ROOT agent yet. Create your first agent — the workspace's origin orchestrator becomes the ROOT."})})}}},e=>{e.O(0,[2208,3969,5034,4811,9706,7358],()=>e(e.s=53384)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8141],{3604:(e,t,a)=>{"use strict";a.d(t,{B:()=>n});let l=new Set(a(32751).t);function n(e){return e.isSystem&&l.has(e.slug)}},9481:(e,t,a)=>{"use strict";a.d(t,{o:()=>i});var l=a(80351),n=a(3674);let s=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),l.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),r=l.forwardRef((e,t)=>l.createElement(n.A,{ref:t,...e,weights:s}));r.displayName="ShieldCheckIcon";let i=r},11979:(e,t,a)=>{"use strict";a.d(t,{f:()=>n});var l=a(2439);let n=(0,l.createServerReference)("400bc0b2a6c54274a0bf652135f92c7098655f5178",l.callServer,void 0,l.findSourceMapURL,"assignSkillAction")},13639:(e,t,a)=>{"use strict";a.d(t,{R:()=>n});var l=a(2439);let n=(0,l.createServerReference)("4070e12aa6a608ebd99e4129d4094ad11ef554158b",l.callServer,void 0,l.findSourceMapURL,"updateSkillAction")},14570:(e,t,a)=>{"use strict";a.d(t,{z:()=>i});var l=a(80351),n=a(3674);let s=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),l.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),r=l.forwardRef((e,t)=>l.createElement(n.A,{ref:t,...e,weights:s}));r.displayName="DownloadSimpleIcon";let i=r},18379:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(48503);function n({items:e,value:t,onChange:a,className:s=""}){return(0,l.jsx)("div",{className:`flex flex-wrap items-center gap-2 ${s}`,children:e.map(e=>{let n=e.value===t;return(0,l.jsxs)("button",{type:"button",onClick:()=>a(e.value),className:`inline-flex h-8 items-center gap-1.5 rounded-[9px] border px-3.5 text-medium-13 leading-none! transition-colors ${n?"border-ink bg-ink text-canvas":"border-rule-2 bg-paper text-ink-2 hover:bg-hover"}`,children:[e.label,void 0!==e.count&&(0,l.jsx)("span",{className:`text-mono-12 leading-none! ${n?"opacity-65":"opacity-55"}`,children:e.count})]},e.value)})})}},18781:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>n,D1:()=>s,Td:()=>c,Th:()=>r,Tr:()=>i,mi:()=>o});var l=a(48503);function n({children:e,frame:t=!0,className:a=""}){let s=(0,l.jsx)("table",{className:`w-full border-collapse text-sm ${a}`,children:e});return t?(0,l.jsx)("div",{className:"overflow-hidden rounded-2xl border border-rule-2 bg-paper",children:(0,l.jsx)("div",{className:"overflow-x-auto",children:s})}):s}function s({children:e}){return(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:e})})}function r({children:e,align:t="left",className:a=""}){return(0,l.jsx)("th",{scope:"col",className:`border-b border-rule-2 px-5 py-3 text-label-11 uppercase tracking-wider whitespace-nowrap text-ink-4 ${"right"===t?"text-right":"text-left"} ${a}`,children:e})}function i({children:e,interactive:t=!1,hover:a=!0,className:n="",onClick:s,title:r,style:c,"aria-expanded":o,"data-testid":d}){return(0,l.jsx)("tr",{onClick:s,title:r,style:c,"aria-expanded":o,"data-testid":d,className:`border-b border-rule-2 transition-colors last:border-0 ${a?"hover:bg-hover":""} ${t?"cursor-pointer":""} ${n}`,children:e})}function c({children:e,align:t="left",top:a=!1,colSpan:n,className:s="",onClick:r,style:i,"data-testid":o}){return(0,l.jsx)("td",{colSpan:n,onClick:r,style:i,"data-testid":o,className:`px-5 py-3.5 ${a?"align-top":"align-middle"} ${"right"===t?"text-right":""} ${s}`,children:e})}function o({label:e,count:t,dot:a,colSpan:n}){return(0,l.jsx)("tr",{className:"border-b border-rule-2 bg-canvas/40",children:(0,l.jsx)("td",{colSpan:n,className:"px-5 py-2.5",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:`h-1.5 w-1.5 rounded-full ${a}`,"aria-hidden":!0}),(0,l.jsx)("span",{className:"text-medium-13 text-ink",children:e}),(0,l.jsx)("span",{className:"text-mono-11 text-ink-4",children:t})]})})})}},23370:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(48503),n=a(78936);function s({value:e,onChange:t,placeholder:a="Search…",minWidth:r=300,ariaLabel:i,testId:c,className:o=""}){return(0,l.jsxs)("div",{className:`flex h-[34px] items-center gap-2 rounded-[9px] border border-rule-2 bg-paper px-3 text-body-13 text-ink-4 ${o}`,style:{minWidth:r},children:[(0,l.jsx)(n.e,{size:13,className:"shrink-0"}),(0,l.jsx)("input",{type:"search",value:e,onChange:e=>t(e.target.value),placeholder:a,"aria-label":i,"data-testid":c,className:"flex-1 border-0 bg-transparent text-body-14 leading-none! text-ink outline-none placeholder:text-ink-4"})]})}},33796:(e,t,a)=>{"use strict";function l(e){return e.isCommunity?"community":"agent"===e.createdBy?"learned":"user"===e.createdBy?"custom":"builtin"}a.d(t,{Yu:()=>r,cl:()=>l});let n={community:{label:"Community",dot:"bg-skill-vivid"},custom:{label:"Custom",dot:"bg-ink-3"},learned:{label:"Learned",dot:"bg-agent-vivid"},builtin:{label:"Built-in",dot:"bg-ink-4"}},s=["community","custom","learned","builtin"];function r(e){return s.map(t=>({key:t,...n[t],skills:e.filter(e=>l(e)===t).sort((e,t)=>e.name.localeCompare(t.name))})).filter(e=>e.skills.length>0)}},38032:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(48503);let n={agent:"bg-agent-vivid text-[#0a0a0a]",skill:"bg-skill-vivid text-white",conn:"bg-conn-vivid text-white",ink:"bg-ink text-canvas",neutral:"bg-hover text-ink-3"},s={sm:"h-[30px] w-[30px]",md:"h-[34px] w-[34px]",lg:"h-[38px] w-[38px]",xl:"h-[42px] w-[42px]"},r={sm:"[&_svg]:h-[13px] [&_svg]:w-[13px]",md:"[&_svg]:h-[14px] [&_svg]:w-[14px]",lg:"[&_svg]:h-[16px] [&_svg]:w-[16px]",xl:"[&_svg]:h-[18px] [&_svg]:w-[18px]"};function i({variant:e,size:t="md",shape:a="round",background:c,children:o,className:d=""}){let m=c?"":n[e];return(0,l.jsx)("span",{style:c?{background:c}:void 0,className:`inline-flex shrink-0 items-center justify-center ${s[t]} ${r[t]} ${"round"===a?"rounded-full":"rounded-[9px]"} ${m} ${c?"text-white":""} ${d}`,children:o})}},40255:(e,t,a)=>{"use strict";a.d(t,{y:()=>i});var l=a(80351),n=a(3674);let s=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M256,136a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,256,136Zm-54.81,56.28a12,12,0,1,1-18.38,15.44C169.12,191.42,145,172,108,172c-28.89,0-55.46,12.68-74.81,35.72a12,12,0,0,1-18.38-15.44A124.08,124.08,0,0,1,63.5,156.53a72,72,0,1,1,89,0A124,124,0,0,1,201.19,192.28ZM108,148a48,48,0,1,0-48-48A48.05,48.05,0,0,0,108,148Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),l.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M254,136a6,6,0,0,1-6,6H230v18a6,6,0,0,1-12,0V142H200a6,6,0,0,1,0-12h18V112a6,6,0,0,1,12,0v18h18A6,6,0,0,1,254,136Zm-57.41,60.14a6,6,0,1,1-9.18,7.72C166.9,179.45,138.69,166,108,166s-58.89,13.45-79.41,37.86a6,6,0,0,1-9.18-7.72C35.14,177.41,55,164.48,77,158.25a66,66,0,1,1,62,0C161,164.48,180.86,177.41,196.59,196.14ZM108,154a54,54,0,1,0-54-54A54.06,54.06,0,0,0,108,154Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M252,136a4,4,0,0,1-4,4H228v20a4,4,0,0,1-8,0V140H200a4,4,0,0,1,0-8h20V112a4,4,0,0,1,8,0v20h20A4,4,0,0,1,252,136Zm-56.94,61.43a4,4,0,0,1-6.12,5.14C168,177.7,139.3,164,108,164s-60,13.7-80.94,38.57a4,4,0,1,1-6.12-5.14c16.71-19.9,38.13-33.13,61.89-38.59a64,64,0,1,1,50.34,0C156.93,164.3,178.35,177.53,195.06,197.43ZM108,156a56,56,0,1,0-56-56A56.06,56.06,0,0,0,108,156Z"}))]]),r=l.forwardRef((e,t)=>l.createElement(n.A,{ref:t,...e,weights:s}));r.displayName="UserPlusIcon";let i=r},45072:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(48503),n=a(80351);function s({tabs:e,value:t,defaultValue:a,onChange:r}){let[i,c]=(0,n.useState)(t??a??e[0].value),o=t??i;return(0,l.jsx)("div",{className:"inline-flex gap-1 rounded-[11px] border border-rule-2 bg-paper p-1",role:"tablist",children:e.map(e=>{let a=e.value===o;return(0,l.jsxs)("button",{type:"button",role:"tab","aria-selected":a,onClick:()=>{void 0===t&&c(e.value),r?.(e.value)},className:`inline-flex h-[30px] items-center gap-2 rounded-lg border-0 px-3.5 text-medium-13 leading-none! transition-colors ${a?"bg-ink text-canvas":"bg-transparent text-ink-3 hover:text-ink-2"}`,children:[e.label,void 0!==e.count&&(0,l.jsxs)("span",{className:`text-mono-12 leading-none! ${a?"opacity-65":"opacity-60"}`,children:["\xb7 ",e.count]})]},e.value)})})}},51261:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(48503),n=a(18859);function s({items:e,noun:t}){let a=e.length;return(0,l.jsxs)("span",{title:e.join("\n"),className:"inline-flex cursor-help items-center gap-1.5 rounded-md border border-rule-2 bg-hover px-2 py-1 text-mono-11 whitespace-nowrap text-ink-2",children:[(0,l.jsx)(n.c,{size:12,weight:"bold",className:"text-ink-4"}),a," ",t,1!==a?"s":""]})}},51884:(e,t,a)=>{"use strict";a.d(t,{default:()=>ei});var l=a(48503),n=a(80351),s=a(3674);let r=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L140,179V128a12,12,0,0,1,24,0v51l11.51-11.52A12,12,0,0,1,192.49,167.51ZM160,36A92.08,92.08,0,0,0,79,84.37,68,68,0,1,0,72,220H84a12,12,0,0,0,0-24H72a44,44,0,0,1-1.81-87.95A91.7,91.7,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,0,1,136,0,67.27,67.27,0,0,1-7.25,30.59,12,12,0,1,0,21.42,10.82A91.08,91.08,0,0,0,252,128,92.1,92.1,0,0,0,160,36Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",opacity:"0.2"}),n.createElement("path",{d:"M248,128a87.34,87.34,0,0,1-17.6,52.81,8,8,0,1,1-12.8-9.62A71.34,71.34,0,0,0,232,128a72,72,0,0,0-144,0,8,8,0,0,1-16,0,88,88,0,0,1,3.29-23.88C74.2,104,73.1,104,72,104a48,48,0,0,0,0,96H96a8,8,0,0,1,0,16H72A64,64,0,1,1,81.29,88.68,88,88,0,0,1,248,128Zm-69.66,42.34L160,188.69V128a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.93,124.52C246.11,77.54,207.07,40,160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160A88.09,88.09,0,0,0,247.93,124.52Zm-50.27,25.14-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L152,156.69V96a8,8,0,0,1,16,0v60.69l18.34-18.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M246,128a85.27,85.27,0,0,1-17.2,51.6,6,6,0,1,1-9.6-7.2A74,74,0,1,0,86,128a6,6,0,0,1-12,0,85.54,85.54,0,0,1,3.91-25.64A50.68,50.68,0,0,0,72,102a50,50,0,0,0,0,100H96a6,6,0,0,1,0,12H72A62,62,0,1,1,82.43,90.88,86,86,0,0,1,246,128Zm-66.24,43.76L158,193.51V128a6,6,0,0,0-12,0v65.51l-21.76-21.75a6,6,0,0,0-8.48,8.48l32,32a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M248,128a87.34,87.34,0,0,1-17.6,52.81,8,8,0,1,1-12.8-9.62A71.34,71.34,0,0,0,232,128a72,72,0,0,0-144,0,8,8,0,0,1-16,0,88,88,0,0,1,3.29-23.88C74.2,104,73.1,104,72,104a48,48,0,0,0,0,96H96a8,8,0,0,1,0,16H72A64,64,0,1,1,81.29,88.68,88,88,0,0,1,248,128Zm-69.66,42.34L160,188.69V128a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244,128a83.28,83.28,0,0,1-16.8,50.4,4,4,0,1,1-6.4-4.8A76,76,0,1,0,84,128a4,4,0,0,1-8,0,83.45,83.45,0,0,1,4.57-27.27A52,52,0,1,0,72,204H96a4,4,0,0,1,0,8H72A60,60,0,1,1,83.61,93.13,84,84,0,0,1,244,128Zm-62.83,45.17L156,198.34V128a4,4,0,0,0-8,0v70.34l-25.17-25.17a4,4,0,0,0-5.66,5.66l32,32a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Z"}))]]),i=n.forwardRef((e,t)=>n.createElement(s.A,{ref:t,...e,weights:r}));i.displayName="CloudArrowDownIcon";var c=a(68007),o=a(94612),d=a(3604),m=a(33796),u=a(47585),p=a(41694),h=a(45072),x=a(18379),g=a(23370),v=a(12871),b=a(85933),f=a(45070),j=a(68926),k=a(61151),A=a(9481),y=a(40255),N=a(78750);let w=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Zm32.49-79.51L177,132l15.52,15.51a12,12,0,0,1-17,17L160,149l-15.51,15.52a12,12,0,1,1-17-17L143,132l-15.52-15.51a12,12,0,1,1,17-17L160,115l15.51-15.52a12,12,0,0,1,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,127.62a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.36l0,.1A80,80,0,0,1,240,127.62Z",opacity:"0.2"}),n.createElement("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Zm29.66-82.34L171.31,136l18.35,18.34a8,8,0,0,1-11.32,11.32L160,147.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L148.69,136l-18.35-18.34a8,8,0,0,1,11.32-11.32L160,124.69l18.34-18.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.93,124.52C246.11,77.54,207.07,40,160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160A88.09,88.09,0,0,0,247.93,124.52Zm-58.27,29.82a8,8,0,0,1-11.32,11.32L160,147.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L148.69,136l-18.35-18.34a8,8,0,0,1,11.32-11.32L160,124.69l18.34-18.35a8,8,0,0,1,11.32,11.32L171.31,136Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Zm28.24-85.76L168.48,136l19.76,19.76a6,6,0,1,1-8.48,8.48L160,144.48l-19.76,19.76a6,6,0,0,1-8.48-8.48L151.52,136l-19.76-19.76a6,6,0,0,1,8.48-8.48L160,127.52l19.76-19.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Zm29.66-82.34L171.31,136l18.35,18.34a8,8,0,0,1-11.32,11.32L160,147.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L148.69,136l-18.35-18.34a8,8,0,0,1,11.32-11.32L160,124.69l18.34-18.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Zm26.83-89.17L165.66,136l21.17,21.17a4,4,0,0,1-5.66,5.66L160,141.66l-21.17,21.17a4,4,0,0,1-5.66-5.66L154.34,136l-21.17-21.17a4,4,0,0,1,5.66-5.66L160,130.34l21.17-21.17a4,4,0,1,1,5.66,5.66Z"}))]]),C=n.forwardRef((e,t)=>n.createElement(s.A,{ref:t,...e,weights:w}));C.displayName="CloudXIcon";var S=a(90368),E=a(18781),Z=a(2439);let L=(0,Z.createServerReference)("4084ddf76223a4be9de34ba96ec531672a7802bd84",Z.callServer,void 0,Z.findSourceMapURL,"deleteSkillAction"),M=(0,Z.createServerReference)("40ba313767ec67d4571c58559f3d75b3c2a544f2f8",Z.callServer,void 0,Z.findSourceMapURL,"uninstallCommunitySkillAction"),R="flex h-6 w-6 shrink-0 items-center justify-center overflow-hidden rounded-full";function H({avatars:e,max:t=5,label:a,className:n=""}){if(0===e.length)return a?(0,l.jsx)("span",{className:`text-medium-13 leading-none! text-ink-3 ${n}`,children:a}):null;let s=e.slice(0,t),r=e.length-s.length;return(0,l.jsxs)("span",{className:`inline-flex items-center gap-2.5 ${n}`,children:[(0,l.jsxs)("span",{className:"inline-flex gap-0.5",children:[s.map(e=>(0,l.jsx)("span",{className:`${R} bg-agent-vivid text-mono-11-caps text-[#0a0a0a]`,title:e.name,children:e.avatarUrl?(0,l.jsx)("img",{src:e.avatarUrl,alt:"",className:"h-full w-full object-cover"}):function(e){let t=e.trim();if(!t)return"?";let a=t.split(/\s+/);return a.length>=2?((a[0][0]??"")+(a[1][0]??"")).toUpperCase():t.slice(0,2).toUpperCase()}(e.name)},e.id)),r>0&&(0,l.jsxs)("span",{className:`${R} bg-hover text-mono-11-caps text-ink-3`,children:["+",r]})]}),a&&(0,l.jsx)("span",{className:"text-medium-13 leading-none! text-ink-3",children:a})]})}var V=a(51261),$=a(60128),F=a(45678),U=a(75551),T=a(88937),z=a(95439);let D=(0,Z.createServerReference)("40a22d80558b9e03d449e07653418971c64ee88da3",Z.callServer,void 0,Z.findSourceMapURL,"previewCommunitySkillUpdateAction"),I=(0,Z.createServerReference)("602a5ad0239f3485db9bdd0db85ff546ccd79a0abe",Z.callServer,void 0,Z.findSourceMapURL,"updateCommunitySkillAction"),_=(0,Z.createServerReference)("40f81cb3fb86094ec708186af39e2817df1cb899f7",Z.callServer,void 0,Z.findSourceMapURL,"acknowledgeSkillUpdateAction"),q={" ":"same","+":"add","-":"remove"};function B({preview:e}){var t,a;let n=(t=e.currentContent,a=e.upstreamContent,(0,o.CNy)(t,a).lines.map(e=>({op:q[e.kind],text:e.text}))),s=function(e){let t=0,a=0;for(let l of e)"add"===l.op?t++:"remove"===l.op&&a++;return{added:t,removed:a}}(n),r=function(e,t=3){let a=Array(e.length).fill(!1);for(let l=0;l<e.length;l++)if("same"!==e[l].op)for(let n=Math.max(0,l-t);n<=Math.min(e.length-1,l+t);n++)a[n]=!0;let l=[],n=!1;for(let t=0;t<e.length;t++)a[t]?(l.push(e[t]),n=!1):n||(l.push(null),n=!0);return l}(n);return(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-body-12 text-ink-3",children:[(0,l.jsxs)("span",{className:"text-ok",children:["+",s.added]}),(0,l.jsxs)("span",{className:"text-err",children:["−",s.removed]}),e.scriptsChanged&&(0,l.jsx)("span",{className:"text-warn",children:"bundled scripts changed"}),e.contentOverridden&&(0,l.jsx)("span",{children:"your local edits are kept — only the upstream baseline updates"})]}),0===s.added&&0===s.removed?(0,l.jsxs)("p",{className:"text-body-13 text-ink-3",children:["The skill text is identical. ",e.scriptsChanged?"Only scripts changed.":""]}):(0,l.jsx)("pre",{className:"max-h-80 overflow-auto rounded-md bg-hover px-3 py-2 text-mono-12 leading-[1.5]! whitespace-pre",children:r.map((e,t)=>null===e?(0,l.jsx)("div",{className:"text-ink-4",children:" ⋯"},t):(0,l.jsx)("div",{className:"add"===e.op?"bg-ok-bg text-ok":"remove"===e.op?"bg-warn-bg text-err":"text-ink-3",children:("add"===e.op?"+ ":"remove"===e.op?"− ":" ")+e.text},t))}),e.scriptNames.length>0&&(0,l.jsxs)("p",{className:"text-body-12 text-ink-4",children:["Bundled scripts: ",e.scriptNames.join(", "),". Their contents are not shown here — read them in the skill store before re-authorizing."]})]})}function O({slug:e,name:t,updateDetail:a,hasScripts:s,children:r}){let i,[c,o]=(0,n.useState)(!1),[d,m]=(0,n.useState)(null),[u,p]=(0,n.useState)(!1),[h,x]=(0,n.useTransition)();return(0,l.jsxs)(l.Fragment,{children:[r({onClick:function(){p(!0),D(e).then(e=>{(p(!1),e.ok)?(m(e.data),o(!0)):j.oR.error(e.message)})},pending:h||u}),(0,l.jsx)(F.A,{open:c,title:`Update skill "${t}"?`,message:(i=a?.scriptsState==="conflict"?' Your locally edited scripts will be replaced. Use "Keep your version" to keep them instead.':"",`This text goes into the system prompt of every agent using this skill.${i}${s?" Script changes revoke this skill's run authorization for every agent until you re-approve it.":""}`),confirmLabel:"Install this version",destructive:a?.scriptsState==="conflict",extra:d?(0,l.jsx)(B,{preview:d}):null,onConfirm:function(){o(!1);let a=d?.upstreamContentHash;x(async()=>{let l=await I(e,a);if(m(null),!l.ok)return void j.oR.error(l.message);let n=l.data.scriptsAuthorizationRevoked;n>0?j.oR.success(`"${t}" updated. Script authorization revoked for ${n} agent${1===n?"":"s"}, re-approve to keep running scripts.`):j.oR.success(`"${t}" updated.`)})},onCancel:()=>{o(!1),m(null)}})]})}function K({slug:e,name:t,children:a}){let[s,r]=(0,n.useState)(!1),[i,c]=(0,n.useTransition)();return(0,l.jsxs)(l.Fragment,{children:[a({onClick:()=>r(!0),pending:i}),(0,l.jsx)(F.A,{open:s,title:`Keep your version of "${t}"?`,message:"Keeps your edited scripts exactly as they are and clears the update flag. It comes back only if upstream changes again. Script authorizations are untouched.",confirmLabel:"Keep mine",destructive:!1,onConfirm:function(){r(!1),c(async()=>{let a=await _(e);a.ok?a.data.contentChanged?j.oR.success(`"${t}": your scripts are kept. A content update is still available.`):j.oR.success(`"${t}": your scripts are kept.`):j.oR.error(a.message)})},onCancel:()=>r(!1)})]})}function P({segments:e,agents:t}){return(0,l.jsxs)(E.Ay,{children:[(0,l.jsxs)(E.D1,{children:[(0,l.jsx)(E.Th,{children:"Skill"}),(0,l.jsx)(E.Th,{children:"Assigned to"}),(0,l.jsx)(E.Th,{children:"Required built-ins"}),(0,l.jsx)(E.Th,{align:"right",children:"Actions"})]}),(0,l.jsx)("tbody",{children:e.map(e=>(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(E.mi,{label:e.label,count:e.skills.length,dot:e.dot,colSpan:4}),e.skills.map(e=>(0,l.jsx)(Y,{skill:e,agents:t},e.id))]},e.key))})]})}function Y({skill:e,agents:t}){let[a,s]=(0,n.useState)(!1),[r,i]=(0,n.useState)(!1),[c,o]=(0,n.useState)(!1),[d,m]=(0,n.useState)(!1),[u,p]=(0,n.useTransition)();return(0,l.jsxs)(E.Tr,{children:[(0,l.jsx)(E.Td,{children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-medium-13 leading-[1.2]! text-ink",children:e.name}),e.isCommunity&&e.updateAvailable&&(0,l.jsx)($.A,{variant:"warn",label:"Update available"})]}),(0,l.jsx)("div",{className:"mt-0.5 line-clamp-2 max-w-[460px] text-body-12 leading-[1.3]! text-ink-3",title:e.description??e.slug,children:e.description??(0,l.jsx)("span",{className:"font-mono text-ink-4",children:e.slug})})]})})}),(0,l.jsx)(E.Td,{children:e.assignmentCount>0?(0,l.jsx)(H,{avatars:e.assignedAgents,max:4,label:`${e.assignmentCount} ${1===e.assignmentCount?"agent":"agents"}`}):(0,l.jsx)("span",{className:"text-mono-11 text-ink-4",children:"Unassigned"})}),(0,l.jsx)(E.Td,{children:e.requiredBuiltins.length>0?(0,l.jsx)(V.A,{items:e.requiredBuiltins,noun:"built-in"}):(0,l.jsx)("span",{className:"text-mono-11 text-ink-4",children:"none"})}),(0,l.jsxs)(E.Td,{children:[(0,l.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[e.isCommunity&&e.updateAvailable&&(0,l.jsx)(O,{slug:e.slug,name:e.name,updateDetail:e.updateDetail,hasScripts:!!(e.installedScripts&&e.installedScripts.length>0),children:({onClick:t,pending:a})=>(0,l.jsx)(U.A,{square:!0,icon:(0,l.jsx)(k.S,{size:16}),title:e.updateDetail?.scriptsState==="conflict"?"Update available (replaces your edited scripts)":"Update available",disabled:a,onClick:t})}),e.isCommunity&&e.updateAvailable&&e.updateDetail?.scriptsState==="conflict"&&(0,l.jsx)(K,{slug:e.slug,name:e.name,children:({onClick:e,pending:t})=>(0,l.jsx)(U.A,{square:!0,icon:(0,l.jsx)(A.o,{size:16}),title:"Keep your version",disabled:t,onClick:e})}),(0,l.jsx)(U.A,{square:!0,icon:(0,l.jsx)(y.y,{size:16}),title:"Assign to agents",onClick:()=>o(!0)}),(0,l.jsx)(U.A,{square:!0,icon:(0,l.jsx)(N.I,{size:16}),title:"Edit",onClick:()=>m(!0)}),!e.isSystem&&e.isCommunity&&(0,l.jsx)(U.A,{square:!0,icon:(0,l.jsx)(C,{size:16}),title:"Uninstall",tone:"danger",disabled:u,onClick:()=>i(!0)}),!e.isSystem&&(0,l.jsx)(U.A,{square:!0,icon:(0,l.jsx)(S.l,{size:16}),title:"Delete",tone:"danger",disabled:u,onClick:()=>s(!0)})]}),(0,l.jsx)(F.A,{open:a,title:`Delete skill "${e.name}"?`,message:"The skill and all its agent assignments will be removed. Existing job logs are kept.",confirmLabel:"Delete",onConfirm:()=>{s(!1),p(async()=>{let t=await L(e.id);t.ok?j.oR.success("Skill deleted"):j.oR.error(t.message)})},onCancel:()=>s(!1)}),(0,l.jsx)(F.A,{open:r,title:`Uninstall community skill "${e.name}"?`,message:"The skill and all its agent assignments will be removed. You can reinstall it at any time from the same source.",confirmLabel:"Uninstall",onConfirm:()=>{i(!1),p(async()=>{let t=await M(e.slug);t.ok?j.oR.success(`Skill "${e.name}" uninstalled`):j.oR.error(t.message)})},onCancel:()=>i(!1)}),(0,l.jsx)(T.A,{open:c,onClose:()=>o(!1),skill:e,agents:t}),(0,l.jsx)(f.A,{open:d,onClose:()=>m(!1),title:e.name,dismissable:!1,className:"max-w-3xl",children:(0,l.jsx)(z.default,{mode:"edit",initial:e,onClose:()=>m(!1)})})]})]})}var G=a(73573),W=a(14570);let X=(0,Z.createServerReference)("406d3382e96611a8ac9e42912425c9aea43fdfa86a",Z.callServer,void 0,Z.findSourceMapURL,"installCommunitySkillAction");var J=a(73230),Q=a(82899);function ee({installedSkills:e,query:t="",category:a="All"}){let n=new Map(e.map(e=>[e.slug,e])),s=t.trim().toLowerCase(),r=o.EBd;return("All"!==a&&(r=r.filter(e=>e.category===a)),s&&(r=r.filter(e=>e.name.toLowerCase().includes(s)||e.description.toLowerCase().includes(s)||e.category.toLowerCase().includes(s))),0===r.length)?(0,l.jsx)(b.A,{title:"No community skills match your search."}):(0,l.jsx)("div",{className:"grid auto-rows-fr grid-cols-1 gap-3.5 sm:grid-cols-2 lg:grid-cols-3",children:r.map(e=>(0,l.jsx)(et,{entry:e,installed:n.get(e.slug)??null},e.slug))})}function et({entry:e,installed:t}){let a=(0,G.useRouter)(),[s,r]=(0,n.useTransition)(),[i,c]=(0,n.useState)(!1),o=null!==t||i,d=(0,l.jsx)("span",{className:"cursor-help text-mono-12 text-ink-4",title:e.source.split("/").slice(0,2).join("/"),children:("skills-sh"===e.sourceHost?"Skills.sh":"GitHub").toLowerCase()});return(0,l.jsx)(J.A,{name:e.name,description:e.description,category:e.category,foot:o?t?.updateAvailable?(0,l.jsx)(O,{slug:e.slug,name:e.name,updateDetail:t.updateDetail,hasScripts:t.hasScripts,children:({onClick:e,pending:a})=>(0,l.jsx)(Q.A,{status:(0,l.jsx)($.A,{variant:"warn",label:t.updateDetail?.scriptsState==="conflict"?"Update conflicts with your edits":"Update available"}),ctaLabel:a?"Updating…":"Update",ctaVariant:"coral",icon:(0,l.jsx)(k.S,{size:12,weight:"bold"}),onCta:a?void 0:e})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:d}),(0,l.jsx)("span",{className:"inline-flex h-[30px] shrink-0 items-center rounded-[7px] border border-rule bg-paper px-3 text-medium-13 text-ink-4",children:"Installed"})]}):(0,l.jsx)(Q.A,{status:d,ctaLabel:s?"Installing…":"Install",ctaVariant:"coral",icon:(0,l.jsx)(W.z,{size:12,weight:"bold"}),onCta:s?void 0:function(){r(async()=>{let t=await X(e.source);t.ok?(c(!0),j.oR.success(`${e.name} installed — assign it to an agent`),a.refresh()):j.oR.error(t.message)})}})})}var ea=a(60709);let el=n.forwardRef((e,t)=>n.createElement(s.A,{ref:t,...e,weights:ea.A}));el.displayName="WarningIcon";var en=a(9594);function es({open:e,onClose:t}){let a=(0,G.useRouter)(),[s,r]=(0,n.useState)(""),[i,c]=(0,n.useTransition)(),[o,d]=(0,n.useState)(null),[m,u]=(0,n.useState)(null);function p(){r(""),d(null),u(null),t()}function h(){s.trim()&&(d(null),u(null),c(async()=>{let e=await X(s.trim());if(!e.ok){u(e.message),j.oR.error(e.message);return}d(e.data),j.oR.success(e.data.reinstalled?`Skill "${e.data.name}" reinstalled`:`Skill "${e.data.name}" installed`),a.refresh()}))}return(0,l.jsx)(f.A,{open:e,onClose:p,title:"Install community skill",dismissable:!1,footer:(0,l.jsxs)(f.j,{children:[(0,l.jsx)(v.A,{variant:"neutral",onClick:p,children:o?"Close":"Cancel"}),!o&&(0,l.jsx)(v.A,{variant:"coral",onClick:h,disabled:i||!s.trim(),children:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-white/30 border-t-white"}),"Installing…"]}):"Install"})]}),children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex gap-2.5 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3.5 py-3",children:[(0,l.jsx)(el,{size:16,weight:"fill",className:"mt-[1px] shrink-0 text-amber-400"}),(0,l.jsx)("p",{className:"text-body-13 leading-[1.5]! text-amber-300",children:"Only install skills from sources you trust - a skill's instructions run with your agent's tools."})]}),(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)("label",{htmlFor:"skill-source",className:"block text-medium-13 text-ink-2",children:"Source"}),(0,l.jsx)(en.A,{id:"skill-source",type:"text",value:s,onChange:e=>r(e.target.value),onKeyDown:e=>{"Enter"!==e.key||i||h()},placeholder:"owner/repo, GitHub URL, or skills.sh path",disabled:i})]}),m&&!o&&(0,l.jsx)("div",{className:"rounded-lg border border-err/30 bg-err/10 px-3.5 py-3",children:(0,l.jsx)("p",{className:"text-body-13 leading-[1.5]! text-err",children:m})}),o&&(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"rounded-lg border border-ok/30 bg-ok/10 px-3.5 py-3",children:[(0,l.jsxs)("p",{className:"text-medium-13 leading-[1.5]! text-ok",children:[o.reinstalled?"Reinstalled":"Installed",":"," ",(0,l.jsx)("span",{className:"font-semibold",children:o.name})]}),o.description&&(0,l.jsx)("p",{className:"mt-1 text-body-13 leading-[1.4]! text-ok/70",children:o.description})]}),o.installedScripts.length>0&&(0,l.jsx)("div",{className:"rounded-lg border border-amber-500/30 bg-amber-500/10 px-3.5 py-3",children:(0,l.jsxs)("div",{className:"flex gap-2.5",children:[(0,l.jsx)(el,{size:15,weight:"fill",className:"mt-[1px] shrink-0 text-amber-400"}),(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)("p",{className:"text-medium-13 leading-[1.4]! text-amber-300",children:"This skill bundles executable scripts."}),(0,l.jsxs)("p",{className:"text-body-13 leading-[1.4]! text-amber-300/80",children:["They run only for an agent that has the"," ",(0,l.jsx)("span",{className:"font-mono",children:"command-execution"})," capability and only after you authorize them, and every run is gated by your approval. Otherwise just the skill's instructions are used."]}),(0,l.jsx)("ul",{className:"mt-2 space-y-0.5",children:o.installedScripts.map(e=>(0,l.jsxs)("li",{className:"flex items-center gap-2 text-mono-12 text-amber-300/70",children:[(0,l.jsx)("span",{className:"rounded bg-amber-500/20 px-1.5 py-0.5 text-legacy-11 uppercase",children:e.language}),(0,l.jsx)("span",{className:"truncate",children:e.path})]},e.path))})]})]})})]})]})})}let er=["All",...Array.from(new Set(o.EBd.map(e=>e.category)))];function ei({skills:e,agents:t}){let a=(0,n.useMemo)(()=>e.filter(e=>!(0,d.B)(e)),[e]),s=(0,n.useMemo)(()=>e.filter(e=>e.isCommunity).map(e=>({slug:e.slug,updateAvailable:e.updateAvailable,updateDetail:e.updateDetail,hasScripts:!!(e.installedScripts&&e.installedScripts.length>0)})),[e]),[r,j]=(0,n.useState)("workspace"),[k,A]=(0,n.useState)("All"),[y,N]=(0,n.useState)(""),[w,C]=(0,n.useState)(!1),[S,E]=(0,n.useState)(!1),Z=(0,n.useMemo)(()=>{let e=y.trim().toLowerCase(),t=e?a.filter(t=>t.name.toLowerCase().includes(e)||(t.description??"").toLowerCase().includes(e)):a;return(0,m.Yu)(t)},[a,y]);return(0,l.jsxs)(u.A,{title:"Skills",subtitle:`${e.length} reusable instructions`,toolbar:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.A,{tabs:(0,l.jsx)(h.A,{value:r,onChange:e=>{j(e),N("")},tabs:[{value:"workspace",label:"Workspace",count:a.length},{value:"community",label:"Community",count:o.EBd.length}]}),search:(0,l.jsx)(g.A,{value:y,onChange:N,placeholder:"Search skill…"}),cta:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)(v.A,{variant:"neutral",onClick:()=>C(!0),className:"!border-black/10 !bg-white !text-[#161616] hover:!bg-[#f2f2f2]",children:[(0,l.jsx)(i,{size:13,weight:"bold"}),"Install skill"]}),(0,l.jsxs)(v.A,{variant:"coral",onClick:()=>E(!0),children:[(0,l.jsx)(c.F,{size:13,weight:"bold"}),"New Skill"]})]})}),"community"===r&&(0,l.jsx)(x.A,{className:"mt-3",value:k,onChange:A,items:er.map(e=>({value:e,label:e}))})]}),children:[(0,l.jsx)(es,{open:w,onClose:()=>C(!1)}),(0,l.jsx)(f.A,{open:S,onClose:()=>E(!1),title:"New skill",dismissable:!1,className:"max-w-3xl",children:(0,l.jsx)(z.default,{mode:"create",defaultOpen:!0,onClose:()=>E(!1)})}),"workspace"===r?0===Z.length?(0,l.jsx)(b.A,{title:y.trim()?"No skill matches your search.":"No skills on this workspace yet. Browse the Community tab to install one."}):(0,l.jsx)(P,{segments:Z,agents:t}):(0,l.jsx)(ee,{installedSkills:s,query:y,category:k})]})}},68356:(e,t,a)=>{"use strict";a.d(t,{_:()=>n});var l=a(2439);let n=(0,l.createServerReference)("40e7a089e9b9681c61146e777415cbe94ff44b7c98",l.callServer,void 0,l.findSourceMapURL,"unassignSkillAction")},73230:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(48503),n=a(38032);function s({glyph:e,glyphVariant:t="skill",glyphBackground:a,name:r,description:i,category:c,topRight:o,foot:d,className:m=""}){return(0,l.jsxs)("div",{"data-testid":`marketplace-card-${String(r).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`,"data-marketplace-card":"",className:`relative flex h-full min-h-[200px] flex-col gap-1.5 rounded-2xl border border-rule-2 bg-paper p-[18px] ${m}`,children:[o&&(0,l.jsx)("div",{className:"absolute top-3.5 right-3.5 flex items-center gap-1.5",children:o}),e&&(0,l.jsx)("div",{className:"mb-1.5",children:(0,l.jsx)(n.A,{variant:t,background:a,size:"lg",shape:"square",children:e})}),(0,l.jsx)("h3",{className:"text-title-16 leading-[1.2]! tracking-[-0.005em] text-ink",children:r}),i&&(0,l.jsx)("div",{className:"line-clamp-3 text-body-14 leading-[1.4]! text-ink-3",title:"string"==typeof i?i:void 0,children:i}),c&&(0,l.jsx)("div",{className:"mt-2",children:(0,l.jsx)("span",{className:"inline-flex items-center rounded-full bg-hover px-2.5 py-1 font-mono text-legacy-10 font-medium tracking-[0.1em] text-ink-2 uppercase",children:c})}),d&&(0,l.jsx)("div",{className:"-mx-[18px] mt-auto flex items-center gap-2 border-t border-rule-2 px-[18px] pt-3.5",children:d})]})}},74601:(e,t,a)=>{Promise.resolve().then(a.bind(a,51884)),Promise.resolve().then(a.bind(a,2193)),Promise.resolve().then(a.bind(a,68534)),Promise.resolve().then(a.bind(a,81098))},82899:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(48503),n=a(68007),s=a(12871);function r({status:e,ctaLabel:t,ctaVariant:a="blue",onCta:i,ctaHref:c,secondary:o,icon:d}){let m=d??(0,l.jsx)(n.F,{size:12,weight:"bold"});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate text-body-13 whitespace-nowrap text-ink-3",children:e}),o,c?(0,l.jsxs)(s.A,{variant:a,size:"sm",href:c,className:"shrink-0",children:[m,t]}):(0,l.jsxs)(s.A,{variant:a,size:"sm",onClick:i,className:"shrink-0",children:[m,t]})]})}},88937:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var l=a(48503),n=a(80351),s=a(68926),r=a(22208),i=a.n(r),c=a(11979),o=a(68356),d=a(45070),m=a(12871),u=a(7576);function p({open:e,onClose:t,skill:a,agents:n,assign:s=c.f,unassign:r=o._,onToggled:i}){return(0,l.jsx)(d.A,{open:e,onClose:t,title:`Assign "${a.name}"`,footer:(0,l.jsx)(d.j,{children:(0,l.jsx)(m.A,{variant:"neutral",onClick:t,children:"Close"})}),children:(0,l.jsx)(h,{skill:a,agents:n,onClose:t,assign:s,unassign:r,onToggled:i})})}function h({skill:e,agents:t,onClose:a,assign:r,unassign:c,onToggled:o}){let[d,m]=(0,n.useState)(()=>new Set(e.assignedAgents.map(e=>e.id))),[p,x]=(0,n.useTransition)();return 0===t.length?(0,l.jsxs)("div",{className:"space-y-3 py-6 text-center",children:[(0,l.jsx)("p",{className:"text-sm text-ink-3",children:"No agents yet, create one first."}),(0,l.jsx)(i(),{href:"/agents",onClick:a,className:"inline-flex items-center gap-1 text-sm font-medium text-blue-400 underline underline-offset-2 hover:text-blue-300",children:"Go to Agents"})]}):(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)("p",{className:"mb-3 text-xs text-ink-3",children:"Toggle to assign or unassign this skill from each agent."}),(0,l.jsx)("div",{className:"divide-y divide-rule-2 overflow-hidden rounded-lg border border-rule-2 bg-canvas/30",children:t.map(t=>{let a=d.has(t.id);return(0,l.jsxs)("label",{className:"flex cursor-pointer items-center gap-3 px-3 py-2.5 transition-colors hover:bg-hover",children:[(0,l.jsx)(u.A,{tone:"skill",checked:a,disabled:p,onChange:()=>{var a;let l;return a=t.id,l=d.has(a),void(m(e=>{let t=new Set(e);return l?t.delete(a):t.add(a),t}),x(async()=>{let t={skillId:e.id,agentId:a},n=l?await c(t):await r(t);if(!n.ok){m(e=>{let t=new Set(e);return l?t.add(a):t.delete(a),t}),s.oR.error(n.message);return}s.oR.success(l?"Skill unassigned":"Skill assigned"),o?.(a,!l)}))}}),(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsx)("span",{className:"block truncate text-sm text-ink",children:t.name}),(0,l.jsx)("span",{className:"block truncate text-mono-12 text-ink-3",children:t.slug})]}),(0,l.jsx)("span",{className:`shrink-0 text-medium-12 ${a?"text-ok":"text-ink-4"}`,children:a?"Assigned":"Not assigned"})]},t.id)})})]})}},95439:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var l=a(48503),n=a(80351),s=a(73573),r=a(68926),i=a(2439);let c=(0,i.createServerReference)("40cd1ce172a67978b851319d3cad711147421e5f17",i.callServer,void 0,i.findSourceMapURL,"resetSkillToDefaultAction");var o=a(13639);let d=(0,i.createServerReference)("4060f7f4e807a31831c380e143a657d2b04fbb2d0e",i.callServer,void 0,i.findSourceMapURL,"createSkillAction");var m=a(45678),u=a(12871),p=a(75551),h=a(9594),x=a(76381),g=a(45070);function v(e){let t="edit"===e.mode,a=(0,s.useRouter)(),[i,v]=(0,n.useState)(t||!0===e.defaultOpen),[b,f]=(0,n.useTransition)(),[j,k]=(0,n.useState)(!1),A=t&&!0===e.initial.contentOverridden&&null!==e.initial.defaultContent;if(!i)return(0,l.jsx)(u.A,{variant:"ink",onClick:()=>v(!0),children:"+ New skill"});let y=t?e.initial:void 0;return(0,l.jsxs)("form",{onSubmit:function(l){l.preventDefault();let n=l.currentTarget,s=new FormData(n);if(t&&"edit"===e.mode){let t={id:e.initial.id,name:s.get("name"),content:s.get("content"),description:s.get("description")||void 0};f(async()=>{let l=await (0,o.R)(t);l.ok?(r.oR.success("Skill updated"),e.onClose?(e.onClose(),a.refresh()):a.push("/skills")):r.oR.error(l.message)})}else f(async()=>{let t=await d({slug:s.get("slug"),name:s.get("name"),content:s.get("content"),description:s.get("description")||void 0});t.ok?(r.oR.success("Skill created"),n.reset(),e.onClose?(e.onClose(),a.refresh()):a.push("/skills")):r.oR.error(t.message)})},className:"bg-paper border border-rule-2 rounded-xl p-5 space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsx)("h3",{className:"text-sm font-semibold text-ink",children:t?"Edit skill":"New skill"}),A&&(0,l.jsx)(p.A,{onClick:()=>k(!0),disabled:b,title:"Restore the catalog default content for this skill",className:"!border-warn/30 !text-warn hover:!bg-warn-bg hover:!text-warn",children:"Reset to default"})]}),(0,l.jsx)(m.A,{open:j,title:"Reset skill to default?",message:"Your customised instructions will be replaced with the catalog default shipped with NodalAI. This cannot be undone.",confirmLabel:"Reset",cancelLabel:"Cancel",destructive:!0,onConfirm:function(){if(!t)return;let l=e.initial.id;k(!1),f(async()=>{let e=await c(l);e.ok?(r.oR.success("Skill reset to default"),a.refresh()):r.oR.error(e.message)})},onCancel:()=>k(!1)}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,l.jsx)(h.A,{id:"skill-slug",label:(0,l.jsxs)(l.Fragment,{children:["Slug ",t&&(0,l.jsx)("span",{className:"text-ink-4",children:"(stable — not editable)"})]}),name:"slug",required:!t,readOnly:t,disabled:t,pattern:t?void 0:"[a-z0-9\\-]+",placeholder:"my-skill",defaultValue:y?.slug,title:t?"Slug is a stable identifier and cannot be changed":void 0,className:t?"cursor-not-allowed font-mono text-ink-3":"font-mono"}),(0,l.jsx)(h.A,{id:"skill-name",label:"Name",name:"name",required:!0,placeholder:"My Skill",defaultValue:y?.name})]}),(0,l.jsx)(h.A,{id:"skill-description",label:(0,l.jsxs)(l.Fragment,{children:["Description ",(0,l.jsx)("span",{className:"text-ink-4",children:"(optional)"})]}),name:"description",maxLength:500,placeholder:"What does this skill teach the agent?",defaultValue:y?.description??""}),(0,l.jsx)(x.A,{id:"skill-content",label:"Instructions",name:"content",required:!0,rows:18,placeholder:"Step-by-step instructions or context the agent gets when this skill is enabled.",defaultValue:y?.content,className:"min-h-[440px] leading-relaxed"}),(0,l.jsxs)(g.j,{className:"-mx-5 -mb-5 mt-1 rounded-b-xl",children:[(0,l.jsx)(u.A,{variant:"neutral",onClick:()=>e.onClose?e.onClose():a.push("/skills"),children:"Cancel"}),(0,l.jsx)(u.A,{variant:"ink",type:"submit",disabled:b,children:b?t?"Saving…":"Creating…":t?"Save changes":"Create skill"})]})]})}}},e=>{e.O(0,[2208,3969,8153,2440,5034,146,341,8551,4811,9706,7358],()=>e(e.s=74601)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4314],{},_=>{_.O(0,[2208,3969,8153,8288,2628,5034,146,3051,1091,4811,9706,7358],()=>_(_.s=31091)),_N_E=_.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8210],{},_=>{_.O(0,[2208,3969,8153,8288,2628,5034,146,3051,1091,4811,9706,7358],()=>_(_.s=31091)),_N_E=_.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1896],{5079:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(48503),r=a(80351),l=a(63428),i=a(5829);let s=(0,r.forwardRef)(function({label:e,error:t,id:a,className:s="",containerClassName:d="",children:o,...c},u){let m=(0,r.useId)(),h=a??m,p=(0,r.useRef)(null);return(0,r.useImperativeHandle)(u,()=>p.current,[]),(0,r.useEffect)(()=>{p.current&&function(e){if(CSS.supports("appearance","base-select"))for(let t of e.querySelectorAll("optgroup")){let e=t.getAttribute("label")??"",a=t.querySelector(":scope > legend");if(!a){if(e){let a=document.createElement("legend");a.textContent=e,t.prepend(a)}continue}a.textContent!==e&&(a.textContent=e),t.firstElementChild!==a&&t.prepend(a)}}(p.current)}),(0,n.jsxs)("div",{className:d,children:[e&&(0,n.jsx)(i.A,{htmlFor:h,children:e}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("select",{id:h,ref:p,"aria-invalid":!!t||void 0,className:`peer h-8.5 w-full rounded-md border bg-hover py-1.5 pr-8 pl-3 text-body-14 leading-5! text-ink transition-colors required:invalid:text-ink-4 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${s}`,...c,children:o}),(0,n.jsx)(l.a,{size:16,"aria-hidden":!0,className:"pointer-events-none absolute top-4.25 right-2 -translate-y-1/2 text-ink-3 peer-disabled:opacity-50"})]}),t&&(0,n.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},5829:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(48503);function r({children:e,className:t="",...a}){return(0,n.jsx)("label",{className:`block text-xs text-ink-3 mb-1 ${t}`,...a,children:e})}},9594:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(48503),r=a(80351),l=a(5829);let i=(0,r.forwardRef)(function({label:e,error:t,id:a,className:i="",containerClassName:s="",...d},o){let c=(0,r.useId)(),u=a??c;return(0,n.jsxs)("div",{className:s,children:[e&&(0,n.jsx)(l.A,{htmlFor:u,children:e}),(0,n.jsx)("input",{id:u,ref:o,"aria-invalid":!!t||void 0,className:`w-full rounded-md border bg-hover py-1.5 pr-2 pl-3 text-body-14 leading-5! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${i}`,...d}),t&&(0,n.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},23138:(e,t,a)=>{"use strict";a.d(t,{s:()=>l});var n=a(48503);let r={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 l({tone:e,children:t,className:a=""}){return(0,n.jsx)("span",{className:["inline-flex h-[18px] items-center rounded-full px-2 text-mono-11 uppercase tracking-[0.1em]",r[e],a].join(" "),children:t})}},38032:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(48503);let r={agent:"bg-agent-vivid text-[#0a0a0a]",skill:"bg-skill-vivid text-white",conn:"bg-conn-vivid text-white",ink:"bg-ink text-canvas",neutral:"bg-hover text-ink-3"},l={sm:"h-[30px] w-[30px]",md:"h-[34px] w-[34px]",lg:"h-[38px] w-[38px]",xl:"h-[42px] w-[42px]"},i={sm:"[&_svg]:h-[13px] [&_svg]:w-[13px]",md:"[&_svg]:h-[14px] [&_svg]:w-[14px]",lg:"[&_svg]:h-[16px] [&_svg]:w-[16px]",xl:"[&_svg]:h-[18px] [&_svg]:w-[18px]"};function s({variant:e,size:t="md",shape:a="round",background:d,children:o,className:c=""}){let u=d?"":r[e];return(0,n.jsx)("span",{style:d?{background:d}:void 0,className:`inline-flex shrink-0 items-center justify-center ${l[t]} ${i[t]} ${"round"===a?"rounded-full":"rounded-[9px]"} ${u} ${d?"text-white":""} ${c}`,children:o})}},38401:(e,t,a)=>{"use strict";a.d(t,{default:()=>E});var n=a(48503),r=a(80351),l=a(22208),i=a.n(l),s=a(73573),d=a(68926),o=a(16763);let c=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"}),r.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"}))]]),u=r.forwardRef((e,t)=>r.createElement(o.A,{ref:t,...e,weights:c}));u.displayName="FolderIcon";var m=a(38032),h=a(60128),p=a(75551),x=a(66666),f=a(23138),b=a(4978),v=a(6175),g=a(92074),j=a(2439);let k=(0,j.createServerReference)("4040fc4d1cc592e5c7717eea10a473cc1e15b94480",j.callServer,void 0,j.findSourceMapURL,"registerDetectedProjectAction"),A={verified:{variant:"done",label:"Verified"},failed:{variant:"warn",label:"Failed"},approval_pending:{variant:"warn",label:"Approval pending"},unverified:{variant:"idle",label:"Unverified"}},H="flex min-h-14 items-center gap-3.5 px-4 py-2";function w({row:e}){let t=null===e.proof?null:A[e.proof];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{variant:"neutral",size:"sm",shape:"square",children:(0,n.jsx)(u,{weight:"fill","aria-hidden":!0})}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,n.jsxs)("span",{className:"flex items-center gap-2",children:["detected"===e.kind&&(0,n.jsx)(f.s,{tone:"ink",className:"shrink-0",children:"Detected"}),(0,n.jsx)("span",{className:"truncate text-medium-14 text-ink",children:(0,b.xv)(e.name,60)}),"documents"===e.produces&&(0,n.jsx)(f.s,{tone:"ink",className:"shrink-0",children:"documents"}),e.hidden&&(0,n.jsx)(f.s,{tone:"warn",className:"shrink-0",children:"hidden"})]}),(0,n.jsx)("span",{className:"truncate text-mono-12 text-ink-3",title:e.path,children:e.path})]}),null!==(0,v.H)(e.createdAt)&&(0,n.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-4",title:e.createdAt?.toISOString(),children:(0,v.H)(e.createdAt)}),null!==t&&(0,n.jsx)(h.A,{variant:t.variant,label:t.label,className:"shrink-0"})]})}function N({row:e,onDone:t}){let[a,l]=(0,r.useTransition)(),i=(0,s.useRouter)();function o(e){l(async()=>{let a=await e();a.ok?(t(),i.refresh()):d.oR.error(a.message??"The action failed")})}return(0,n.jsx)("span",{className:"flex shrink-0 items-center gap-2 pr-4",children:e.hidden?(0,n.jsx)(p.A,{disabled:a,onClick:()=>o(()=>(0,g.x)({projectPath:e.path,hidden:!1})),title:"Show it again",children:"Show"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.A,{disabled:a,onClick:()=>o(()=>k({projectPath:e.path,agentId:null})),title:"Keep this folder as a project, with the agent that wrote in it.",children:"Register"}),(0,n.jsx)(p.A,{disabled:a,onClick:()=>o(()=>(0,g.x)({projectPath:e.path,hidden:!0})),title:"Hides it here and for your agents. The folder is untouched.",children:"Hide"})]})})}function y({row:e,onDone:t}){return"detected"===e.kind?(0,n.jsxs)("div",{className:"flex items-center","data-testid":`workspace-row-${e.key}`,children:[(0,n.jsx)("div",{className:`${H} min-w-0 flex-1`,children:(0,n.jsx)(w,{row:e})}),(0,n.jsx)(N,{row:e,onDone:t})]}):(0,n.jsx)(i(),{href:`/spaces/${e.id}`,className:`${H} hover:bg-hover`,"data-testid":`workspace-row-${e.key}`,children:(0,n.jsx)(w,{row:e})})}function E({view:e}){let[t,a]=(0,r.useState)(!1),l=e.hiddenDetected.length,i=(0,r.useId)();return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"divide-y divide-rule-2 overflow-hidden rounded-xl border border-rule-2 bg-paper",children:[e.rows.map(e=>(0,n.jsx)(y,{row:e,onDone:()=>a(!1)},e.key)),t&&(0,n.jsx)("div",{id:i,className:"divide-y divide-rule-2",children:e.hiddenDetected.map(e=>(0,n.jsx)(y,{row:e,onDone:()=>a(!0)},e.key))})]}),(0,n.jsxs)("p",{className:"mt-3 text-body-12 text-ink-4",children:["A row: the project, its folder, when it appeared, and its proof. Detected folders are projects Nodal found by itself; Register keeps them, Hide removes them from the list",l>0?(0,n.jsxs)(n.Fragment,{children:[" (",`${l} ${1===l?"hidden folder":"hidden folders"}`," \xb7 ",(0,n.jsx)(x.A,{className:"underline underline-offset-2 hover:text-ink-2","aria-expanded":t,"aria-controls":i,onClick:()=>a(e=>!e),children:t?"Hide again":"Show"}),")"]}):null,"."]})]})}},45070:(e,t,a)=>{"use strict";a.d(t,{A:()=>d,j:()=>c});var n=a(48503),r=a(80351),l=a(88142),i=a(86045),s=a(12871);function d({open:e,onClose:t,title:a,children:s,footer:o,className:c="",dismissable:u=!0,testId:m}){let[h,p]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{p(!0)},[]),(0,i.Z4)(e,u?t:i.C5),(0,r.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e&&h)?(0,l.createPortal)((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"fixed inset-0 z-40 bg-black/60 animate-[fadeIn_150ms_ease]",onClick:u?t:void 0,"aria-hidden":"true"}),(0,n.jsx)("div",{role:"dialog","aria-modal":"true","data-testid":m,className:"fixed inset-0 z-50 flex items-center justify-center p-4 pointer-events-none",children:(0,n.jsxs)("div",{className:`pointer-events-auto w-full max-w-lg max-h-[90vh] overflow-y-auto bg-paper border border-rule-2 rounded-xl shadow-2xl animate-[scaleIn_150ms_ease] ${c}`,children:[void 0!==a&&(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 px-6 pt-5 pb-4 border-b border-rule-2",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-ink",children:a}),u&&(0,n.jsx)("button",{type:"button",onClick:t,"aria-label":"Close",className:"text-ink-3 hover:text-ink transition-colors",children:"✕"})]}),(0,n.jsx)("div",{className:"p-6 pt-5",children:s}),o]})})]}),document.body):null}function o(e){return r.Children.map(e,e=>(0,r.isValidElement)(e)&&e.type===s.A?(0,r.cloneElement)(e,{size:"md"}):e)}function c({children:e,danger:t,className:a=""}){return(0,n.jsxs)("div",{className:`flex items-center gap-2 border-t border-rule-2 px-6 py-4 ${t?"justify-between":"justify-end"} ${a}`,children:[o(t),(0,n.jsx)("div",{className:"flex items-center gap-2",children:o(e)})]})}},50236:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(48503);function r({options:e,value:t,onChange:a,disabled:l,ariaLabel:i,className:s=""}){return(0,n.jsx)("div",{className:`flex w-fit shrink-0 overflow-hidden rounded-lg border border-rule-2 ${s}`,role:"group","aria-label":i,children:e.map((e,r)=>{let i=e.value===t;return(0,n.jsx)("button",{type:"button",disabled:l,onClick:()=>a(e.value),"data-testid":e.testId,"aria-pressed":i,className:["relative h-[32px] px-3 text-medium-13 transition-colors",r>0?"border-l border-rule-2":"",i?e.activeClassName??"bg-ink text-canvas border-ink":"bg-canvas text-ink-3 hover:bg-hover hover:text-ink-2",l?"cursor-wait opacity-60":""].join(" "),children:e.label},e.value)})})}},57009:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var n=a(48503),r=a(80351),l=a(73573),i=a(68926),s=a(45070),d=a(12871),o=a(9594),c=a(5079),u=a(50236),m=a(5829),h=a(7576),p=a(2439);let x=(0,p.createServerReference)("00d7c042f607078a391266a48d9b941ababb08239a",p.callServer,void 0,p.findSourceMapURL,"listProjectTerrainsAction"),f=(0,p.createServerReference)("40a59d7f31b964fd84ae657042c7392b0f6d1b2764",p.callServer,void 0,p.findSourceMapURL,"createProjectAction");var b=a(94612);function v(){let e=(0,l.useRouter)(),[t,a]=(0,r.useState)(!1),[p,v]=(0,r.useState)(null),[g,j]=(0,r.useState)(""),[k,A]=(0,r.useState)(""),[H,w]=(0,r.useState)(""),[N,y]=(0,r.useState)(""),[E,V]=(0,r.useState)("code"),[M,Z]=(0,r.useState)(!1),[C,F]=(0,r.useState)(null),[_,S]=(0,r.useTransition)();(0,r.useEffect)(()=>{if(!t||null!==p)return;let e=!1;return x().then(t=>{if(e)return;if(!t.ok){F(t.message),v([]);return}v(t.data);let a=t.data[0];a&&(j(a.agentId),A(a.workspaces[0]?.id??""))}),()=>{e=!0}},[t,p]);let $=p?.find(e=>e.agentId===g)??null,R=$?.workspaces.find(e=>e.id===k)??null,I=R?(0,b.vMr)(R.path,N.trim()):null,L=""!==N.trim()?N.trim():(0,b.hic)(H),P=""!==H.trim()&&null!==R&&null!==I&&""!==L;function D(){w(""),y(""),V("code"),Z(!1),F(null)}function z(){a(!1),D()}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{onClick:()=>a(!0),children:"New project"}),(0,n.jsx)(s.A,{open:t,onClose:z,dismissable:!1,title:"New project",footer:(0,n.jsxs)(s.j,{children:[(0,n.jsx)(d.A,{variant:"neutral",onClick:z,disabled:_,children:"Cancel"}),(0,n.jsx)(d.A,{onClick:function(){P&&null!==R&&(F(null),S(async()=>{let t=await f({name:H.trim(),agentId:g,workspaceId:k,subfolder:N.trim(),kind:E,initGit:M});t.ok?(i.oR.success("Project created"),a(!1),D(),e.push(`/spaces/${t.data.id}`)):F("already_registered"===t.code?"This folder is already a project.":t.message)}))},disabled:!P||_,children:_?"Creating…":"Create project"})]}),children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)(o.A,{label:"Name",value:H,onChange:e=>w(e.target.value),placeholder:"What this project is",disabled:_}),null===p?(0,n.jsx)("p",{className:"text-body-13 text-ink-4",children:"Loading agents…"}):0===p.length?(0,n.jsx)("p",{className:"text-body-13 text-ink-3",children:"No agent has a folder yet. Attach one to an agent first."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{label:"Agent",value:g,disabled:_,onChange:e=>{let t=p.find(t=>t.agentId===e.target.value)??null;j(e.target.value),A(t?.workspaces[0]?.id??"")},children:p.map(e=>(0,n.jsx)("option",{value:e.agentId,children:e.agentName},e.agentId))}),($?.workspaces.length??0)>1?(0,n.jsx)(c.A,{label:"Folder",value:k,disabled:_,onChange:e=>A(e.target.value),children:($?.workspaces??[]).map(e=>(0,n.jsxs)("option",{value:e.id,children:[e.label," — ",e.path]},e.id))}):R?(0,n.jsxs)("div",{children:[(0,n.jsx)(m.A,{children:"Folder"}),(0,n.jsx)("p",{className:"text-body-13 text-ink-2",children:(0,n.jsx)("span",{className:"text-mono-12 text-ink",children:R.path})}),(0,n.jsxs)("p",{className:"text-body-12 text-ink-4 mt-1",children:[$?.agentName,$?.agentName?" works here — ":"","the project lands inside it."]})]}):null]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(o.A,{label:"Folder name",value:N,onChange:e=>y(e.target.value),placeholder:"Give a name, or let it be named for you",disabled:_}),(0,n.jsx)("div",{className:"mt-2",children:null===I?(0,n.jsx)("p",{className:"text-body-12 text-err",children:"A folder name, not a path. No “..”, no drive letter, no slash."}):""!==L?(0,n.jsxs)("p",{className:"text-body-12 text-ink-3",children:["Creates ",(0,n.jsx)("span",{className:"text-mono-12 text-ink",children:L})," in that folder."]}):(0,n.jsx)("p",{className:"text-body-12 text-ink-4",children:"Name the project above, and its folder takes that name."})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(m.A,{children:"Produces"}),(0,n.jsx)(u.A,{options:[{value:"code",label:"Code"},{value:"documents",label:"Documents"}],value:E,onChange:V,disabled:_,ariaLabel:"What this project produces"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(h.A,{label:"Initialise git in this folder",checked:M,disabled:_,onChange:e=>Z(e.target.checked)}),(0,n.jsx)("p",{className:"text-body-12 text-ink-4 mt-1",children:"Nodal then lists exactly the files each run wrote, even the ones a command wrote without naming them. Nothing is committed and nothing is pushed."})]}),null!==C&&(0,n.jsx)("p",{className:"text-body-13 text-err",children:C})]})})]})}},63428:(e,t,a)=>{"use strict";a.d(t,{a:()=>s});var n=a(80351),r=a(16763),l=a(91692);let i=n.forwardRef((e,t)=>n.createElement(r.A,{ref:t,...e,weights:l.A}));i.displayName="CaretDownIcon";let s=i},66666:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(48503);function r({className:e="",type:t="button",...a}){return(0,n.jsx)("button",{type:t,className:`transition-colors ${e}`,...a})}},68534:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var n=a(48503),r=a(78936),l=a(80351);function i({placeholder:e="Search agents, skills, runs…",keyboardShortcut:t=!0,onSubmit:a,className:s=""}){let d=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!t)return;let e=e=>{if("/"!==e.key)return;let t=e.target;t&&/^(input|textarea|select)$/i.test(t.tagName)||t?.isContentEditable||(e.preventDefault(),d.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t]),(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),a?.(d.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 ${s}`,children:[(0,n.jsx)(r.e,{size:13,className:"shrink-0"}),(0,n.jsx)("input",{ref:d,type:"search",placeholder:e,className:"h-full flex-1 border-0 bg-transparent text-body-14 leading-none! text-ink outline-none placeholder:text-ink-4"}),(0,n.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:"/"})]})}},69160:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var n=a(48503),r=a(68926),l=a(89466);function i({value:e,label:t="Copy",successMessage:a="Copied",errorMessage:s="Could not copy",className:d=""}){async function o(){try{await navigator.clipboard.writeText(e),r.oR.success(a)}catch{r.oR.error(s)}}return(0,n.jsxs)("button",{type:"button",onClick:o,className:`inline-flex h-[28px] shrink-0 items-center gap-1.5 rounded-md border border-rule-2 bg-paper px-2.5 text-medium-12 text-ink-3 transition-colors hover:text-ink ${d}`,children:[(0,n.jsx)(l.Q,{size:13})," ",t]})}},71186:(e,t,a)=>{Promise.resolve().then(a.bind(a,57009)),Promise.resolve().then(a.bind(a,38401)),Promise.resolve().then(a.bind(a,2193)),Promise.resolve().then(a.bind(a,69160)),Promise.resolve().then(a.bind(a,68534)),Promise.resolve().then(a.bind(a,81098))},78936:(e,t,a)=>{"use strict";a.d(t,{e:()=>s});var n=a(80351),r=a(3674);let l=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),i=n.forwardRef((e,t)=>n.createElement(r.A,{ref:t,...e,weights:l}));i.displayName="MagnifyingGlassIcon";let s=i},89466:(e,t,a)=>{"use strict";a.d(t,{Q:()=>s});var n=a(80351),r=a(3674);let l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),i=n.forwardRef((e,t)=>n.createElement(r.A,{ref:t,...e,weights:l}));i.displayName="CopyIcon";let s=i},90566:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(48503);let r={ok:"bg-ok",lime:"bg-agent-vivid",coral:"bg-skill-vivid",blue:"bg-conn-vivid",warn:"bg-warn"},l={ok:"animate-[blip_1.4s_ease-out_infinite]",lime:"animate-[blip-lime_1.5s_ease-out_infinite]",coral:"animate-[blip-coral_1.4s_ease-out_infinite]",blue:"animate-[blip-blue_1.4s_ease-out_infinite]",warn:"animate-[blip-coral_1.4s_ease-out_infinite]"};function i({variant:e="ok",size:t="sm",animate:a=!0,className:s=""}){return(0,n.jsx)("span",{className:`inline-block shrink-0 rounded-full ${"sm"===t?"h-[7px] w-[7px]":"h-2 w-2"} ${r[e]} ${a?l[e]:""} ${s}`})}},91692:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(80351);let r=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),n.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]])},92074:(e,t,a)=>{"use strict";a.d(t,{x:()=>r});var n=a(2439);let r=(0,n.createServerReference)("4033ac35fc96099d5c7baddb031186395f3aa72f3c",n.callServer,void 0,n.findSourceMapURL,"setCodeProjectHiddenAction")}},e=>{e.O(0,[2208,3969,8153,5034,146,2767,4811,9706,7358],()=>e(e.s=71186)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{10136:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_e896d9",variable:"__variable_e896d9"}},10403:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_8b3a0b",variable:"__variable_8b3a0b"}},58130:(e,a,l)=>{Promise.resolve().then(l.t.bind(l,10403,23)),Promise.resolve().then(l.t.bind(l,10136,23)),Promise.resolve().then(l.t.bind(l,58415,23))},58415:()=>{}},e=>{e.O(0,[9618,62,4811,9706,7358],()=>e(e.s=58130)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{2439:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let s=a(50748),l=a(51264),i=a(18857)},3674:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(80351);let n=(0,r.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),s=r.forwardRef((e,t)=>{let{alt:a,color:s,size:l,weight:i,mirrored:c,children:o,weights:d,...u}=e,{color:m="currentColor",size:h,weight:x="regular",mirrored:p=!1,...b}=r.useContext(n);return r.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=l?l:h,height:null!=l?l:h,fill:null!=s?s:m,viewBox:"0 0 256 256",transform:c||p?"scale(-1, 1)":void 0,...b,...u},!!a&&r.createElement("title",null,a),o,d.get(null!=i?i:x))});s.displayName="IconBase"},5829:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(48503);function n({children:e,className:t="",...a}){return(0,r.jsx)("label",{className:`block text-xs text-ink-3 mb-1 ${t}`,...a,children:e})}},9594:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(48503),n=a(80351),s=a(5829);let l=(0,n.forwardRef)(function({label:e,error:t,id:a,className:l="",containerClassName:i="",...c},o){let d=(0,n.useId)(),u=a??d;return(0,r.jsxs)("div",{className:i,children:[e&&(0,r.jsx)(s.A,{htmlFor:u,children:e}),(0,r.jsx)("input",{id:u,ref:o,"aria-invalid":!!t||void 0,className:`w-full rounded-md border bg-hover py-1.5 pr-2 pl-3 text-body-14 leading-5! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${l}`,...c}),t&&(0,r.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},12871:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(48503),n=a(22208),s=a.n(n),l=a(80351);let i={ink:"bg-ink text-canvas border-0 hover:brightness-[0.92]",agent:"bg-agent-vivid text-[#1a2200] border-0 hover:brightness-[0.96]",coral:"bg-skill-vivid text-white border-0 hover:brightness-[0.94]",blue:"bg-conn-vivid text-white border-0 hover:brightness-[0.94]",neutral:"border border-rule-2 bg-paper text-ink hover:bg-hover",danger:"border border-err/30 bg-paper text-err hover:border-err hover:bg-warn-bg"},c=(0,l.forwardRef)(function(e,t){let{children:a,variant:n="ink",size:l="md",className:c=""}=e,o=`inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md leading-none! transition-[filter,background-color] disabled:pointer-events-none disabled:opacity-40 ${"md"===l?"h-[34px] px-3.5 text-medium-14":"h-[30px] px-3 text-medium-13"} ${i[n]} ${c}`;if("href"in e&&e.href){let{href:n,variant:l,size:i,className:c,children:d,...u}=e;return(0,r.jsx)(s(),{href:n,className:o,ref:t,...u,children:a})}let{variant:d,size:u,className:m,children:h,...x}=e;return(0,r.jsx)("button",{type:"button",className:o,ref:t,...x,children:a})})},15701:(e,t,a)=>{Promise.resolve().then(a.bind(a,84211)),Promise.resolve().then(a.bind(a,83294))},16966:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(48503),n=a(80351);function s({tabs:e,value:t,defaultValue:a,onChange:l,variant:i="inset",fullWidth:c=!1,className:o=""}){let[d,u]=(0,n.useState)(t??a??e[0].value),m=t??d,h="inset"===i?"bg-paper text-ink shadow-[0_1px_2px_rgba(0,0,0,0.06)]":"bg-ink text-canvas";return(0,r.jsx)("div",{className:`${c?"flex":"inline-flex"} gap-0.5 rounded-md p-[3px] ${"inset"===i?"bg-black/[0.05]":"bg-black/[0.04]"} ${o}`,role:"tablist",children:e.map(e=>{let a=e.value===m;return(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":a,onClick:()=>{void 0===t&&u(e.value),l?.(e.value)},className:`inline-flex h-[26px] items-center justify-center gap-1.5 rounded-[6px] border-0 px-3 text-medium-12 leading-none! transition-colors ${c?"flex-1":""} ${a?h:"bg-transparent text-ink-3 hover:text-ink-2"}`,children:[e.label,void 0!==e.count&&(0,r.jsx)("span",{className:`text-mono-11 ${a?"opacity-85":"opacity-65"}`,children:e.count})]},e.value)})})}},73573:(e,t,a)=>{"use strict";var r=a(51441);a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},83294:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(48503),n=a(73573),s=a(12871);function l(){let e=(0,n.useRouter)();return(0,r.jsx)("div",{className:"flex min-h-screen w-full items-center justify-center bg-canvas px-4",children:(0,r.jsxs)("div",{className:"w-full max-w-sm",children:[(0,r.jsxs)("div",{className:"mb-8 text-center",children:[(0,r.jsxs)("div",{className:"inline-flex items-center gap-1.5 mb-6",children:[(0,r.jsx)("span",{className:"text-ok font-mono text-sm",children:"$"}),(0,r.jsx)("span",{className:"text-sm font-mono font-bold text-ink tracking-tight",children:"nodal-agents"})]}),(0,r.jsx)("h1",{className:"text-2xl font-bold text-ink tracking-tight",children:"Local mode active"}),(0,r.jsx)("p",{className:"text-sm text-ink-3 mt-1",children:"No authentication required in local-trust mode."})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-rule-2 bg-paper/60 p-6 space-y-4 text-center",children:[(0,r.jsxs)("p",{className:"text-xs text-ink-3",children:["You are running Nodal-Agents in ",(0,r.jsx)("code",{className:"text-ok",children:"local-trust"})," mode. Pick"," ",(0,r.jsx)("code",{className:"text-ok",children:"LAN"})," at ",(0,r.jsx)("code",{children:"nodal-agents init"})," to enable email + password authentication."]}),(0,r.jsx)(s.A,{variant:"agent",className:"w-full",onClick:()=>e.push("/"),children:"Enter dashboard"})]})]})})}},84211:(e,t,a)=>{"use strict";a.d(t,{default:()=>b});var r=a(48503),n=a(80351),s=a(73573),l=a(88172),i=a(3674);let c=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,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,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",n.createElement(n.Fragment,null,n.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"}),n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,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,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,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,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,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,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.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.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),o=n.forwardRef((e,t)=>n.createElement(i.A,{ref:t,...e,weights:c}));o.displayName="EyeIcon";var d=a(16966),u=a(9594),m=a(88088),h=a(12871),x=a(2439);let p=(0,x.createServerReference)("405f0cb25b4fccdebb453aa11bf5e6327b1f4fe9e1",x.callServer,void 0,x.findSourceMapURL,"claimOwnerAccountAction");function b({setup:e,openSignup:t}){let a=(0,s.useRouter)(),[i,c]=(0,n.useState)("fresh"===e?"signup":"signin"),[x,g]=(0,n.useState)(""),[f,v]=(0,n.useState)(""),[A,j]=(0,n.useState)(""),[k,w]=(0,n.useState)(!1),[N,C]=(0,n.useState)(""),[y,Z]=(0,n.useState)(""),[S,E]=(0,n.useState)(!1),M="claim"===e,P="fresh"===e||t;function $(e){c(e),C(""),Z(""),v(""),j(""),w(!1)}async function R(e,t){return(await fetch("/api/auth/sign-in/email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t})})).ok}async function F(e){e.preventDefault(),E(!0),C("");try{await R(x,f)?a.push("/"):C("Invalid email or password.")}catch{C("Network error. Please try again.")}finally{E(!1)}}function L(){return f!==A?(C("Passwords do not match."),!1):!(f.length<8)||(C("Password must be at least 8 characters."),!1)}async function _(e){if(e.preventDefault(),L()){E(!0),C("");try{let e=await fetch("/api/auth/sign-up/email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x,password:f,name:x.split("@")[0]})});if(e.ok)Z("Account created. You can sign in now."),$("signin");else{let t=await e.json().catch(()=>null);C(t?.error??"Could not create account.")}}catch{C("Network error. Please try again.")}finally{E(!1)}}}async function O(e){if(e.preventDefault(),L()){E(!0),C("");try{let e=await p({email:x,password:f});if(!e.ok)return void C(e.message);await R(x,f)?a.push("/"):(Z("Account created. Sign in to continue."),C(""),a.refresh())}catch{C("Network error. Please try again.")}finally{E(!1)}}}return(0,r.jsx)("div",{className:"flex min-h-screen w-full items-center justify-center bg-canvas px-4",children:(0,r.jsxs)("div",{className:"w-full max-w-sm",children:[(0,r.jsxs)("div",{className:"mb-8 text-center",children:[(0,r.jsxs)("div",{className:"inline-flex items-center gap-1.5 mb-6",children:[(0,r.jsx)("span",{className:"text-ok font-mono text-sm",children:"$"}),(0,r.jsx)("span",{className:"text-sm font-mono font-bold text-ink tracking-tight",children:"nodal-agents"})]}),(0,r.jsx)("h1",{className:"text-2xl font-bold text-ink tracking-tight",children:M?"Create your account":"Welcome"}),(0,r.jsx)("p",{className:"text-sm text-ink-3 mt-1",children:M?"Sign-in is now required. Set the owner email and password. Your agents, settings and history stay as they are.":P?"Sign in or create an account to continue":"Sign in to continue"})]}),!M&&P&&(0,r.jsx)(d.A,{tabs:[{value:"signin",label:"Sign in"},{value:"signup",label:"Create account"}],value:i,onChange:e=>$(e),variant:"inset",fullWidth:!0,className:"mb-6 border border-rule-2"}),(0,r.jsx)("div",{className:"rounded-2xl border border-rule-2 bg-paper/60 p-6 space-y-4",children:(0,r.jsxs)("form",{onSubmit:M?O:"signin"===i?F:_,className:"space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-ink-3 mb-1.5",children:"Email address"}),(0,r.jsx)(u.A,{type:"email",value:x,onChange:e=>g(e.target.value),placeholder:"you@example.com",required:!0,autoFocus:!0,"data-testid":"email-input",className:"rounded-lg border-rule-2 bg-hover py-2.5 focus:border-rule"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-ink-3 mb-1.5",children:"Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(u.A,{type:k?"text":"password",value:f,onChange:e=>v(e.target.value),placeholder:"••••••••",required:!0,"data-testid":"password-input",className:"rounded-lg border-rule-2 bg-hover py-2.5 pr-10 focus:border-rule"}),(0,r.jsx)("span",{className:"absolute right-3 top-1/2 flex -translate-y-1/2",children:(0,r.jsx)(m.A,{ghost:!0,type:"button",onClick:()=>w(e=>!e),className:"text-ink-3 hover:text-ink-2",children:k?(0,r.jsx)(l.L,{size:15}):(0,r.jsx)(o,{size:15})})})]})]}),(M||"signup"===i)&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-ink-3 mb-1.5",children:"Confirm password"}),(0,r.jsx)(u.A,{type:"password",value:A,onChange:e=>j(e.target.value),placeholder:"••••••••",required:!0,"data-testid":"confirm-password-input",className:"rounded-lg border-rule-2 bg-hover py-2.5 focus:border-rule"})]}),N&&(0,r.jsx)("p",{className:"text-xs text-err","data-testid":"login-error",children:N}),y&&(0,r.jsx)("p",{className:"text-xs text-ok",children:y}),(0,r.jsx)(h.A,{variant:"agent",type:"submit",disabled:S,"data-testid":"login-button",className:"mt-1 w-full",children:S?"…":M?"Create account and sign in":"signin"===i?"Sign in":"Create account"})]})})]})})}},88088:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(48503);let n={xs:"h-7 w-7",sm:"h-[30px] w-[30px]",md:"h-[34px] w-[34px]"},s={chrome:"border border-rule-2 bg-paper text-ink-2 hover:text-ink",subtle:"bg-hover-2 text-ink-2 hover:bg-hover",ink:"bg-ink text-canvas hover:brightness-[0.92]"};function l({children:e,badge:t,size:a="md",shape:i="square",fill:c="chrome",ghost:o=!1,className:d="",type:u="button",ref:m,...h}){let x=o?"text-ink-2 hover:text-ink":`${n[a]} ${"round"===i?"rounded-full":"md"===a?"rounded-md":"rounded-[7px]"} ${s[c]}`;return(0,r.jsxs)("button",{ref:m,type:u,className:`relative flex shrink-0 items-center justify-center transition-colors disabled:opacity-40 ${x} ${d}`,...h,children:[e,t&&(0,r.jsx)("span",{className:"absolute top-[6px] right-[7px] h-1.5 w-1.5 rounded-full bg-skill-vivid"})]})}},88172:(e,t,a)=>{"use strict";a.d(t,{L:()=>i});var r=a(80351),n=a(3674);let s=new Map([["bold",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}),r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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",r.createElement(r.Fragment,null,r.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"}))]]),l=r.forwardRef((e,t)=>r.createElement(n.A,{ref:t,...e,weights:s}));l.displayName="EyeSlashIcon";let i=l}},e=>{e.O(0,[2208,4811,9706,7358],()=>e(e.s=15701)),_N_E=e.O()}]);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{1924:(e,t,a)=>{"use strict";a.d(t,{f:()=>n});var r=a(2439);let n=(0,r.createServerReference)("404c005f4f54dbc523a4e0d0732a65dd46451cf560",r.callServer,void 0,r.findSourceMapURL,"testLlmKeyAction")},2439:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let s=a(50748),l=a(51264),i=a(18857)},3474:(e,t,a)=>{"use strict";a.d(t,{L:()=>n});var r=a(2439);let n=(0,r.createServerReference)("40e64ca5b18f906e4882112a44cef8afe47c0823e8",r.callServer,void 0,r.findSourceMapURL,"createLlmKeyAction")},5079:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(48503),n=a(80351),s=a(63428),l=a(5829);let i=(0,n.forwardRef)(function({label:e,error:t,id:a,className:i="",containerClassName:o="",children:d,...c},u){let m=(0,n.useId)(),h=a??m,x=(0,n.useRef)(null);return(0,n.useImperativeHandle)(u,()=>x.current,[]),(0,n.useEffect)(()=>{x.current&&function(e){if(CSS.supports("appearance","base-select"))for(let t of e.querySelectorAll("optgroup")){let e=t.getAttribute("label")??"",a=t.querySelector(":scope > legend");if(!a){if(e){let a=document.createElement("legend");a.textContent=e,t.prepend(a)}continue}a.textContent!==e&&(a.textContent=e),t.firstElementChild!==a&&t.prepend(a)}}(x.current)}),(0,r.jsxs)("div",{className:o,children:[e&&(0,r.jsx)(l.A,{htmlFor:h,children:e}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("select",{id:h,ref:x,"aria-invalid":!!t||void 0,className:`peer h-8.5 w-full rounded-md border bg-hover py-1.5 pr-8 pl-3 text-body-14 leading-5! text-ink transition-colors required:invalid:text-ink-4 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${i}`,...c,children:d}),(0,r.jsx)(s.a,{size:16,"aria-hidden":!0,className:"pointer-events-none absolute top-4.25 right-2 -translate-y-1/2 text-ink-3 peer-disabled:opacity-50"})]}),t&&(0,r.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},5829:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(48503);function n({children:e,className:t="",...a}){return(0,r.jsx)("label",{className:`block text-xs text-ink-3 mb-1 ${t}`,...a,children:e})}},7462:(e,t,a)=>{"use strict";a.d(t,{default:()=>F});var r=a(48503),n=a(80351),s=a(73573),l=a(94612),i=a(35848),o=a(12871),d=a(9594),c=a(76381),u=a(5079),m=a(91701);function h({icon:e,label:t,onClick:a,className:n=""}){return(0,r.jsxs)("button",{type:"button",onClick:a,className:`flex items-center gap-3 rounded-lg border border-rule-2 bg-canvas px-4 py-3 text-left transition-colors hover:border-ink ${n}`,children:[(0,r.jsx)("span",{className:"shrink-0",children:e}),(0,r.jsx)("span",{className:"text-medium-13 text-ink",children:t})]})}var x=a(66666),p=a(78321),f=a(1924),g=a(2439);let v=(0,g.createServerReference)("007742293a393b77eb20b7863323e1b2592cacab6f",g.callServer,void 0,g.findSourceMapURL,"listLlmKeysAction");var b=a(78604),y=a(3474),k=a(15709);let w=(0,g.createServerReference)("004d288a0a59ac78d0196eb6bc10a74f5a448bb1a1",g.callServer,void 0,g.findSourceMapURL,"listSkillsAction");var j=a(11979),N=a(65072),S=a(24150),A=a(50094),C=a(19986),R=a(71501),M=a(41685);let E=[{value:"openrouter",label:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",needsKey:!0},{value:"anthropic",label:"Anthropic (Claude)",baseUrl:"https://api.anthropic.com",needsKey:!0},{value:"openai",label:"OpenAI",baseUrl:"https://api.openai.com/v1",needsKey:!0},{value:"google",label:"Google (Gemini)",baseUrl:"",needsKey:!0},{value:"mistral",label:"Mistral",baseUrl:"https://api.mistral.ai/v1",needsKey:!0},{value:"groq",label:"Groq",baseUrl:"https://api.groq.com/openai/v1",needsKey:!0},{value:"deepseek",label:"DeepSeek",baseUrl:"https://api.deepseek.com/v1",needsKey:!0},{value:"minimax",label:"MiniMax",baseUrl:"",needsKey:!0},{value:"moonshot",label:"Moonshot (Kimi)",baseUrl:"https://api.moonshot.ai/v1",needsKey:!0},{value:"ollama",label:"Ollama (local)",baseUrl:"http://localhost:11434",needsKey:!1},{value:"openai-compatible",label:"Local / OpenAI-compatible (LM Studio, vLLM…)",baseUrl:"http://localhost:1234/v1",needsKey:!1}];function L(e){return[...l.SVi[e]??[]].map(e=>({modelId:e.modelId,label:e.label})).sort((e,t)=>e.label.localeCompare(t.label))}let I=["safe-tool-use","verify-before-done","task-planning","language-mirror","markdown-output"],T=`You are a capable personal AI agent working directly for your user inside Nodal-Agents.
|
|
2
|
-
|
|
3
|
-
# Who you are
|
|
4
|
-
Proactive, resourceful, and honest. You own a task end to end: work out what's needed, use your tools, and deliver a concrete result instead of just describing one.
|
|
5
|
-
|
|
6
|
-
# How you communicate
|
|
7
|
-
Clear and concise. Mirror the user's language and tone. Lead with the answer or the result, then the detail — no filler, no flattery. When you're unsure, say so plainly.
|
|
8
|
-
|
|
9
|
-
# What you avoid
|
|
10
|
-
Never claim to have done something you haven't. Don't guess at irreversible actions. Don't pad. Don't expose secrets or internal IDs unless asked.
|
|
11
|
-
|
|
12
|
-
# Defaults under ambiguity
|
|
13
|
-
If a request is ambiguous, ask one sharp clarifying question rather than guessing — unless the obvious reading is safe and reversible, in which case proceed and state what you assumed.`,U="[[INTERVIEW_DONE]]",O=[{prefix:"Operator — what to call them:",category:"context"},{prefix:"Operator — preferred language:",category:"preference"},{prefix:"Operator — where they are based:",category:"context"},{prefix:"Operator — goal with Nodal-Agents / where they want help:",category:"context"},{prefix:"How the operator wants to work together:",category:"preference"}],$=`[Onboarding — your first meeting with your operator. Run a warm, BRIEF get-acquainted chat. Hard rules:
|
|
14
|
-
- Plain text ONLY. No markdown, no **bold**, no bullet points, no headings.
|
|
15
|
-
- Every message is 1-2 SHORT sentences. Warm but concise.
|
|
16
|
-
- Ask ONE short, concrete question per message. Never vague, never multi-part.
|
|
17
|
-
- This is NOT a work session: do NOT start, plan, or build anything. If they mention a task, warmly say you'll be ready once they're set up, then move on.
|
|
18
|
-
|
|
19
|
-
Ask these FIVE things, in order, one per message, no extras:
|
|
20
|
-
1. What to call them.
|
|
21
|
-
2. Which language they'd like you to speak — ask openly; do NOT suggest or list specific languages (never "French or English?"). Any language in the world is fine.
|
|
22
|
-
3. Where they're based.
|
|
23
|
-
4. Their goal with Nodal-Agents and where you can help most — just the gist, not specifics (you're not doing it now).
|
|
24
|
-
5. While carrying out their requests, whether you should run tools and commands on your own, or check with them for approval before acting.
|
|
25
|
-
|
|
26
|
-
Start now: one short friendly line (you just want to get to know them, no work yet) + question 1 ONLY. After each answer, a 3-5 word acknowledgement at most, then the next question. After the FIFTH answer, one short warm wrap-up line and end that final message with ${U} on its own line.]`,K=[{value:"telegram",label:"Telegram",icon:"/channel-icons/telegram.svg"},{value:"discord",label:"Discord",icon:"/channel-icons/discord.svg"},{value:"slack",label:"Slack",icon:"/channel-icons/slack.svg"},{value:"whatsapp",label:"WhatsApp",icon:"/channel-icons/whatsapp.svg"}];function F(){let e=(0,s.useRouter)(),[t,a]=(0,n.useState)(0),[i,g]=(0,n.useState)(!1),[F,_]=(0,n.useState)(!1),[D,H]=(0,n.useState)("/"),[P,Y]=(0,n.useState)(!1);function B(e){H(e),_(!0)}(0,n.useEffect)(()=>{try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&(0,p.t)({timezone:e})}catch{}},[]),(0,n.useEffect)(()=>{let e=setTimeout(()=>g(3===t),30);return()=>clearTimeout(e)},[t]),(0,n.useEffect)(()=>{if(!F)return;let e=setTimeout(()=>Y(!0),60),t=setTimeout(()=>{window.location.href=D},2200);return()=>{clearTimeout(e),clearTimeout(t)}},[F,D]);let[Z,z]=(0,n.useState)(E[0]),[G,V]=(0,n.useState)(E[0].baseUrl),[Q,J]=(0,n.useState)(""),[X,ee]=(0,n.useState)(L(E[0].value)[0]?.modelId??""),[et,ea]=(0,n.useState)("idle"),[er,en]=(0,n.useState)(""),[es,el]=(0,n.useState)(!1),[ei,eo]=(0,n.useState)(null),[ed,ec]=(0,n.useState)(""),[eu,em]=(0,n.useState)(""),[eh,ex]=(0,n.useState)(T),[ep,ef]=(0,n.useState)(!1),[eg,ev]=(0,n.useState)(""),[eb,ey]=(0,n.useState)(null),[ek,ew]=(0,n.useState)(null),[ej,eN]=(0,n.useState)(null),[eS,eA]=(0,n.useState)(!1),[eC,eR]=(0,n.useState)(!1),eM=(0,n.useRef)(!1),[eE,eL]=(0,n.useState)(null),[eI,eT]=(0,n.useState)([]),[eU,eO]=(0,n.useState)(""),[e$,eK]=(0,n.useState)(!1),[eF,eW]=(0,n.useState)(0),eq=(0,n.useRef)(!1),[e_,eD]=(0,n.useState)(!1),[eH,eP]=(0,n.useState)(""),eY=(0,n.useRef)(null),[eB,eZ]=(0,n.useState)("propose_confirm"),[ez,eG]=(0,n.useState)(!1),[eV,eQ]=(0,n.useState)("");(0,n.useEffect)(()=>{eY.current?.scrollTo({top:eY.current.scrollHeight})},[eI,e$]);let eJ=L(Z.value);async function eX(){ea("testing"),en("");let e=await (0,f.f)({provider:Z.value,baseUrl:G||void 0,apiKey:Q||void 0});e.ok?(ea("ok"),en(e.data.message)):(ea("fail"),en(e.message))}async function e0(){if(ec(""),Z.needsKey&&!Q.trim())return void ec("This provider needs an API key.");if(!X.trim())return void ec("Pick or type a model.");el(!0);let e=ei;if(!e){let t=await v();t.ok&&(e=t.data.find(e=>e.provider===Z.value)?.id??null)}if(e){let t=await (0,b.Q)({id:e,provider:Z.value,baseUrl:G||void 0,apiKey:Q||void 0,isActive:!0});if(el(!1),!t.ok)return void ec(t.message);eo(e)}else{let e=await (0,y.L)({provider:Z.value,baseUrl:G||void 0,apiKey:Q||void 0,isActive:!0});if(el(!1),!e.ok)return void ec(e.message);eo(e.data.id)}a(2)}async function e1(){ev("");let t=eu.trim();if(!t)return void ev("Give your agent a name.");if(!X.trim())return void ev("Pick or type a model.");let r=t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80);ef(!0);let n=await (0,k.C)({slug:r||"my-agent",name:t,personality:eh.trim(),model:X.trim(),llmKeyId:ei??void 0,role:"router"});if(!n.ok){ef(!1),ev(n.message);return}ey(n.data.id);let s=await w();if(s.ok)for(let e of s.data.filter(e=>I.includes(e.slug)))await (0,j.f)({skillId:e.id,agentId:n.data.id});ef(!1),e.prefetch("/"),e.prefetch("/chat"),a(3)}async function e4(){if(!ej||!eb||eC)return;eR(!0);let e=await (0,j.f)({skillId:ej,agentId:eb});eR(!1),e.ok&&eA(!0)}function e2(e){let t=e.includes(U),a=e.replaceAll(U,"").trim();a&&eT(e=>[...e,{role:"agent",text:a}]),t&&eD(!0)}async function e5(){let e,t,a,r,n=eU.trim();if(!n||!eE||e$)return;eO(""),eT(e=>[...e,{role:"user",text:n}]);let s=O[eF];s&&(0,C.M)({fact:`${s.prefix} ${n}`,category:s.category}),eF===O.length-1&&eZ((e=n.toLowerCase(),t=/\b(initiative|autonom|proactive|go ahead|do it yourself|on your own|figure it out|don'?t ask|without asking|just do|take the lead|decide)\b/.test(e),a=/\b(ask first|ask me|check with me|confirm|my orders|exactly what|stick to|only what|wait for me|permission|don'?t act)\b/.test(e),r=/\b(mix|balance|depends|middle|both|risky|important|reversible|big|major|dangerous|destructive)\b/.test(e),a&&!t?"propose_confirm":r?"destructive_gate":t&&!a?"fully_autonomous":t&&a?"destructive_gate":"propose_confirm")),eW(e=>e+1),eK(!0);let l=await (0,A.W)({conversationId:eE,message:n});(eK(!1),l.ok)?e2(l.data.reply):eP(l.message||"Your agent could not reply just now.")}async function e3(){eQ(""),eG(!0);let e=await (0,R.S)({grants:{...l.zw,autonomy:eB}});if(eG(!1),!e.ok){let t=e.message||"Could not save the autonomy level";eQ(`${t} — you can set this later in Settings → ROOT agent.`);return}a(6)}(0,n.useEffect)(()=>{3!==t||eM.current||(eM.current=!0,(async()=>{let[e,t,a]=await Promise.all([(0,N.C)({provider:"claude"}),(0,N.C)({provider:"codex"}),w()]);if(ew({claude:e.ok&&e.data.binaryFound,codex:t.ok&&t.data.binaryFound}),a.ok){let e=a.data.find(e=>"code-task"===e.slug);e&&eN(e.id)}})())},[t]),(0,n.useEffect)(()=>{4!==t||eq.current||(eq.current=!0,(async()=>{eP(""),eK(!0);let e=await (0,S.Q)({origin:"onboarding"});if(!e.ok){eK(!1),eP("Could not start the conversation — you can skip to the dashboard below.");return}eL(e.data.id);let t=await (0,A.W)({conversationId:e.data.id,message:$});if(eK(!1),!t.ok)return eP(t.message||"Your agent could not reply (check the model in Settings). You can skip to the dashboard.");e2(t.data.reply)})())},[t]);let e8=e_||eF>=O.length;return(0,r.jsxs)("div",{className:"flex min-h-screen w-full items-center justify-center bg-canvas px-4 py-10",children:[(0,r.jsxs)("div",{className:"w-full max-w-lg",children:[(0,r.jsx)("div",{className:"mb-7 flex items-center justify-center gap-2",children:Array.from({length:7}).map((e,a)=>(0,r.jsx)("span",{className:`h-1.5 rounded-full transition-all ${a===t?"w-7 bg-ink":a<t?"w-1.5 bg-ink":"w-1.5 bg-rule-2"}`},a))}),(0,r.jsxs)("div",{className:"rounded-2xl border border-rule-2 bg-paper px-7 py-8 shadow-sm",children:[0===t&&(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-ink text-legacy-22 text-canvas",children:"◆"}),(0,r.jsx)("h1",{className:"text-display-22 tracking-[-0.01em] text-ink",children:"Welcome to Nodal-Agents"}),(0,r.jsx)("p",{className:"mx-auto mt-2 max-w-sm text-body-14 leading-[1.6]! text-ink-3",children:"Let's set up your first AI agent. It takes about a minute: connect a model, give your agent a personality, and say hello."}),(0,r.jsx)(o.A,{className:"mt-6",onClick:()=>a(1),children:"Get started →"})]}),1===t&&(0,r.jsxs)("div",{children:[(0,r.jsx)(W,{n:1,title:"Connect a model",sub:"The brain your agent thinks with. Your key stays on this machine."}),(0,r.jsx)("label",{className:"mt-5 block text-medium-12 text-ink-3",htmlFor:"onboarding-provider",children:"Provider"}),(0,r.jsx)(u.A,{id:"onboarding-provider",value:Z.value,onChange:e=>{var t;let a;return t=e.target.value,void(z(a=E.find(e=>e.value===t)??E[0]),V(a.baseUrl),ea("idle"),en(""),ee(L(a.value)[0]?.modelId??""))},className:"mt-1.5 bg-canvas text-body-14",children:E.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,r.jsx)("label",{className:"mt-4 block text-medium-12 text-ink-3",children:"Model"}),(0,r.jsx)(q,{providerValue:Z.value,model:X,onModel:ee}),eJ.length>0&&(0,r.jsxs)("p",{className:"mt-1.5 text-body-12 text-ink-4",children:[eJ.length," supported models for ",Z.label,"."]}),(0,r.jsx)("label",{className:"mt-4 block text-medium-12 text-ink-3",htmlFor:"onboarding-base-url",children:"Base URL"}),(0,r.jsx)(d.A,{id:"onboarding-base-url",value:G,onChange:e=>V(e.target.value),placeholder:"https://…",className:"mt-1.5 bg-canvas text-body-14"}),(0,r.jsxs)("label",{className:"mt-4 block text-medium-12 text-ink-3",htmlFor:"onboarding-api-key",children:["API key ",Z.needsKey?"":"(optional for local)"]}),(0,r.jsx)(d.A,{id:"onboarding-api-key",value:Q,onChange:e=>J(e.target.value),type:"password",placeholder:Z.needsKey?"sk-…":"leave blank for local",className:"mt-1.5 bg-canvas text-body-14"}),(0,r.jsxs)("div",{className:"mt-4 flex items-center gap-3",children:[(0,r.jsx)(o.A,{variant:"neutral",onClick:eX,disabled:"testing"===et,className:"bg-canvas",children:"testing"===et?"Connecting…":"Test connection"}),"ok"===et&&(0,r.jsxs)("span",{className:"text-medium-13 text-lime-600",children:["✓ ",er]}),"fail"===et&&(0,r.jsx)("span",{className:"text-medium-13 text-warn",children:er})]}),ed&&(0,r.jsx)("p",{className:"mt-3 text-body-13 text-warn",children:ed}),(0,r.jsxs)("div",{className:"mt-6 flex items-center justify-between",children:[(0,r.jsx)(x.A,{onClick:()=>a(0),className:"text-body-13 text-ink-3 hover:text-ink",children:"← Back"}),(0,r.jsx)(o.A,{onClick:e0,disabled:es,children:es?"Saving…":"Continue →"})]})]}),2===t&&(0,r.jsxs)("div",{children:[(0,r.jsx)(W,{n:2,title:"Create your agent",sub:"A name and a personality. It also ships with built-in codes of conduct (safe tool use, verify before done, task planning…)."}),(0,r.jsx)("label",{className:"mt-5 block text-medium-12 text-ink-3",htmlFor:"onboarding-agent-name",children:"Name"}),(0,r.jsx)(d.A,{id:"onboarding-agent-name",value:eu,onChange:e=>em(e.target.value),placeholder:"e.g. Friday",className:"mt-1.5 bg-canvas text-body-14"}),(0,r.jsx)("label",{className:"mt-4 block text-medium-12 text-ink-3",htmlFor:"onboarding-personality",children:"Personality"}),(0,r.jsx)(c.A,{id:"onboarding-personality",value:eh,onChange:e=>ex(e.target.value),rows:11,className:"mt-1.5 bg-canvas text-mono-12 leading-[1.55]!"}),(0,r.jsx)("label",{className:"mt-4 block text-medium-12 text-ink-3",children:"Model"}),(0,r.jsx)(q,{providerValue:Z.value,model:X,onModel:ee}),eg&&(0,r.jsx)("p",{className:"mt-3 text-body-13 text-warn",children:eg}),(0,r.jsxs)("div",{className:"mt-6 flex items-center justify-between",children:[(0,r.jsx)(x.A,{onClick:()=>a(1),className:"text-body-13 text-ink-3 hover:text-ink",children:"← Back"}),(0,r.jsx)(o.A,{onClick:e1,disabled:ep,children:ep?"Creating…":"Create agent →"})]})]}),3===t&&(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:`mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-lime-400/15 text-lime-600 transition-all duration-500 ease-out ${i?"scale-100 opacity-100":"scale-50 opacity-0"}`,children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"h-7 w-7",children:(0,r.jsx)("path",{d:"M4 12.5l5 5 11-11",strokeDasharray:"24",strokeDashoffset:24*!i,style:{transition:"stroke-dashoffset 500ms ease 150ms"}})})}),(0,r.jsxs)("h1",{className:`text-display-22 tracking-[-0.01em] text-ink transition-all duration-500 ${i?"translate-y-0 opacity-100":"translate-y-1 opacity-0"}`,children:[eu||"Your agent"," is ready"]}),(0,r.jsxs)("p",{className:"mx-auto mt-2 max-w-sm text-body-14 leading-[1.6]! text-ink-3",children:["Take a minute to meet ",eu||"your agent"," — a few quick questions so it gets to know you. Or head straight to the dashboard."]}),(0,r.jsxs)("div",{className:"mt-6 flex items-center justify-center gap-3",children:[(0,r.jsx)(o.A,{variant:"neutral",className:"bg-canvas",onClick:()=>B("/"),children:"Skip to dashboard"}),(0,r.jsxs)(o.A,{onClick:()=>a(4),children:["Meet ",eu||"your agent"," →"]})]}),ej&&(ek?.claude||ek?.codex)&&(0,r.jsxs)("div",{className:"mx-auto mt-6 max-w-sm rounded-2xl border border-rule-2 bg-paper p-4 text-left",children:[(0,r.jsxs)("div",{className:"text-body-13 font-medium text-ink",children:[ek.claude&&ek.codex?"Claude Code and Codex detected":ek.claude?"Claude Code detected":"Codex detected"," ","on this machine"]}),(0,r.jsxs)("p",{className:"mt-1 text-body-12 leading-[1.5]! text-ink-3",children:["Give ",eu||"your agent"," the ability to hand off coding tasks to it. Runs use your subscription on this machine."]}),(0,r.jsx)("div",{className:"mt-3",children:eS?(0,r.jsxs)("span",{className:"text-body-13 text-ok",children:["Enabled for ",eu||"your agent"]}):(0,r.jsx)(o.A,{variant:"neutral",className:"bg-canvas",onClick:()=>void e4(),disabled:eC,children:eC?"Enabling…":"Enable coding tasks for this agent"})})]})]}),4===t&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"text-mono-11 uppercase tracking-[0.18em] text-ink-4",children:["Meet ",eu||"your agent"]}),(0,r.jsxs)("div",{ref:eY,className:"mt-3 flex h-[46vh] min-h-[260px] flex-col gap-2.5 overflow-y-auto rounded-lg border border-rule-2 bg-canvas p-3.5",children:[0===eI.length&&!eH&&(0,r.jsxs)("div",{className:"m-auto flex flex-col items-center gap-2.5 text-ink-4",children:[(0,r.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-rule-2 border-t-ink"}),(0,r.jsx)("span",{className:"text-body-13",children:"Waking up your agent…"})]}),eI.map((e,t)=>(0,r.jsx)("div",{className:`flex ${"user"===e.role?"justify-end":"justify-start"}`,children:(0,r.jsx)("div",{className:`max-w-[82%] whitespace-pre-wrap rounded-2xl px-3.5 py-2 text-body-13 leading-[1.5]! ${"user"===e.role?"bg-ink text-canvas":"border border-rule-2 bg-paper text-ink"}`,children:e.text})},t)),e$&&eI.length>0&&(0,r.jsx)("div",{className:"flex justify-start",children:(0,r.jsxs)("div",{className:"flex items-center gap-1 rounded-2xl border border-rule-2 bg-paper px-3.5 py-3",children:[(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-ink-4 [animation-delay:-0.3s]"}),(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-ink-4 [animation-delay:-0.15s]"}),(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-ink-4"})]})})]}),eH&&(0,r.jsx)("p",{className:"mt-3 text-body-13 text-warn",children:eH}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,r.jsx)(d.A,{value:eU,onChange:e=>eO(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),e5())},disabled:e$||0===eI.length,placeholder:"Type your answer…",containerClassName:"flex-1",className:"bg-canvas text-body-14"}),(0,r.jsx)(o.A,{onClick:()=>void e5(),disabled:e$||!eU.trim(),className:"px-4",children:"Send"})]}),(0,r.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,r.jsx)(x.A,{onClick:()=>a(5),className:"text-body-13 text-ink-3 underline hover:text-ink",children:"Skip for now"}),e8&&(0,r.jsx)(o.A,{onClick:()=>a(5),children:"Continue →"})]})]}),5===t&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"text-mono-11 uppercase tracking-[0.18em] text-ink-4",children:["How ",eu||"your agent"," should work"]}),(0,r.jsx)("h1",{className:"mt-1 text-heading-20 tracking-[-0.01em] text-ink",children:"Set the autonomy level"}),(0,r.jsxs)("p",{className:"mt-1.5 text-body-13 leading-[1.5]! text-ink-3",children:["Based on what you told ",eu||"your agent",", we've pre-selected a level. Adjust it if you like — it decides whether ",eu||"your agent"," asks you to approve its actions before running them, while carrying out what you ask."]}),(0,r.jsx)("div",{className:"mt-5",role:"radiogroup","aria-label":"Autonomy level",children:M.u.map(e=>(0,r.jsx)(m.t,{active:eB===e.value,onClick:()=>eZ(e.value),name:e.name,description:e.description},e.value))}),(0,r.jsx)("p",{className:"mt-3 text-body-12 text-ink-4",children:"You can change this anytime in Settings → Autonomy."}),eV&&(0,r.jsx)("p",{className:"mt-3 text-body-13 text-warn",children:eV}),(0,r.jsx)("div",{className:"mt-6 flex items-center justify-end",children:(0,r.jsx)(o.A,{onClick:()=>void e3(),disabled:ez,children:ez?"Saving…":"Continue →"})})]}),6===t&&(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-conn-vivid/15 text-legacy-26",children:"\uD83D\uDCAC"}),(0,r.jsx)("h1",{className:"text-display-22 tracking-[-0.01em] text-ink",children:"Connect a messaging channel"}),(0,r.jsxs)("p",{className:"mx-auto mt-2 max-w-sm text-body-14 leading-[1.6]! text-ink-3",children:["Talk to ",eu||"your agent"," from your phone, and let it reach you with updates and questions — right inside the app you already use. You can always set this up later."]}),(0,r.jsx)("div",{className:"mt-6 grid grid-cols-2 gap-3",children:K.map(e=>(0,r.jsx)(h,{onClick:()=>B(eb?`/agents/${eb}/edit?tab=channels#${e.value}`:"/"),icon:(0,r.jsx)("img",{src:e.icon,alt:"","aria-hidden":"true",className:"h-8 w-8"}),label:e.label},e.value))}),(0,r.jsx)("div",{className:"mt-6 flex items-center justify-center",children:(0,r.jsx)(x.A,{onClick:()=>B("/"),className:"text-body-13 text-ink-3 underline hover:text-ink",children:"Skip for now"})})]})]})]}),F&&(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-canvas",children:[(0,r.jsxs)("div",{className:"relative mb-6 flex h-20 w-20 items-center justify-center",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-2xl bg-ink/10"}),(0,r.jsx)("span",{className:"relative flex h-16 w-16 items-center justify-center rounded-2xl bg-ink text-legacy-30 text-canvas",children:"◆"})]}),(0,r.jsx)("div",{className:"text-title-15 tracking-[-0.01em] text-ink",children:"Entering Nodal-Agents"}),(0,r.jsxs)("div",{className:"mt-1 text-body-13 text-ink-3",children:["Waking up ",eu||"your agent","…"]}),(0,r.jsx)("div",{className:"mt-6 h-1 w-52 overflow-hidden rounded-full bg-rule-2",children:(0,r.jsx)("div",{className:`h-full rounded-full bg-ink transition-[width] duration-[2000ms] ease-out ${P?"w-full":"w-0"}`})})]})]})}function W({n:e,title:t,sub:a}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"text-mono-11 uppercase tracking-[0.18em] text-ink-4",children:["Step ",e," of 3"]}),(0,r.jsx)("h1",{className:"mt-1 text-heading-20 tracking-[-0.01em] text-ink",children:t}),(0,r.jsx)("p",{className:"mt-1.5 text-body-13 leading-[1.5]! text-ink-3",children:a})]})}function q({providerValue:e,model:t,onModel:a}){let n=l.SVi[e]??[];if(0===n.length)return(0,r.jsx)(d.A,{value:t,onChange:e=>a(e.target.value),placeholder:"e.g. llama3.2 — type your local model name",className:"mt-1.5 bg-canvas text-body-14"});let s=(0,l.eSe)(n);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.A,{value:t,onChange:e=>a(e.target.value),className:"mt-1.5 bg-canvas text-body-14",children:s.map((e,t)=>e.group?(0,r.jsx)("optgroup",{label:e.group,children:e.models.map(e=>(0,r.jsx)("option",{value:e.modelId,disabled:!e.capabilities.tools,title:e.capabilities.tools?void 0:"Can't use tools (required for your agent)",children:(0,l.HgT)(e)},e.modelId))},e.group):e.models.map(e=>(0,r.jsx)("option",{value:e.modelId,disabled:!e.capabilities.tools,title:e.capabilities.tools?void 0:"Can't use tools (required for your agent)",children:(0,l.HgT)(e)},`${t}-${e.modelId}`)))}),(0,r.jsx)(i.m,{className:"mt-1.5"})]})}},9594:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(48503),n=a(80351),s=a(5829);let l=(0,n.forwardRef)(function({label:e,error:t,id:a,className:l="",containerClassName:i="",...o},d){let c=(0,n.useId)(),u=a??c;return(0,r.jsxs)("div",{className:i,children:[e&&(0,r.jsx)(s.A,{htmlFor:u,children:e}),(0,r.jsx)("input",{id:u,ref:d,"aria-invalid":!!t||void 0,className:`w-full rounded-md border bg-hover py-1.5 pr-2 pl-3 text-body-14 leading-5! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${l}`,...o}),t&&(0,r.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},11979:(e,t,a)=>{"use strict";a.d(t,{f:()=>n});var r=a(2439);let n=(0,r.createServerReference)("400bc0b2a6c54274a0bf652135f92c7098655f5178",r.callServer,void 0,r.findSourceMapURL,"assignSkillAction")},15709:(e,t,a)=>{"use strict";a.d(t,{C:()=>n});var r=a(2439);let n=(0,r.createServerReference)("40c0a0cd4e5d32d6fbcf646ec75420f001f1b4fb45",r.callServer,void 0,r.findSourceMapURL,"createAgentAction")},16763:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(80351);let n=r.forwardRef((e,t)=>{let{alt:a,color:n="currentColor",size:s="1em",weight:l="regular",mirrored:i=!1,children:o,weights:d,...c}=e;return r.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:n,viewBox:"0 0 256 256",transform:i?"scale(-1, 1)":void 0,...c},!!a&&r.createElement("title",null,a),o,d.get(l))});n.displayName="SSRBase"},19986:(e,t,a)=>{"use strict";a.d(t,{M:()=>n});var r=a(2439);let n=(0,r.createServerReference)("40ec16777472826067378b5a738384d04796e191fb",r.callServer,void 0,r.findSourceMapURL,"createMemoryAction")},24150:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n});var r=a(2439);let n=(0,r.createServerReference)("40adad9a7f9e294e8527d77a4cc73a6903b172186c",r.callServer,void 0,r.findSourceMapURL,"createConversationAction")},35848:(e,t,a)=>{"use strict";a.d(t,{A:()=>i,m:()=>o});var r=a(48503);let n={yes:"bg-ok-bg text-ok",no:"bg-warn-bg text-warn",unknown:"bg-hover text-ink-4"},s={yes:"Tools",no:"No tools",unknown:"Tools ?"},l={yes:"This model can call tools.",no:"This model can't call tools and can't power an agent.",unknown:"Tool support is unknown for this model (not in the curated catalog)."};function i({support:e,className:t=""}){return(0,r.jsx)("span",{title:l[e],className:`inline-flex h-[22px] items-center rounded-[5px] px-2.5 text-medium-12 leading-none! ${n[e]} ${t}`,children:s[e]})}function o({className:e=""}){return(0,r.jsxs)("p",{className:`text-body-12 leading-[1.5]! text-ink-4 ${e}`,children:["Models marked ",(0,r.jsx)("span",{className:"font-medium text-warn",children:"(no tools)"})," can't power an agent."]})}},41685:(e,t,a)=>{"use strict";a.d(t,{u:()=>r});let r=[{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."}]},50094:(e,t,a)=>{"use strict";a.d(t,{W:()=>n});var r=a(2439);let n=(0,r.createServerReference)("404f3a76161cedfb03fff609f4da6dd756f5041bf5",r.callServer,void 0,r.findSourceMapURL,"sendChatMessageAction")},50248:(e,t,a)=>{Promise.resolve().then(a.bind(a,7462))},63428:(e,t,a)=>{"use strict";a.d(t,{a:()=>i});var r=a(80351),n=a(16763),s=a(91692);let l=r.forwardRef((e,t)=>r.createElement(n.A,{ref:t,...e,weights:s.A}));l.displayName="CaretDownIcon";let i=l},65072:(e,t,a)=>{"use strict";a.d(t,{C:()=>n});var r=a(2439);let n=(0,r.createServerReference)("40663fcc39a2c2f46e04f8385e54bff512e64782b3",r.callServer,void 0,r.findSourceMapURL,"codeTaskDoctorAction")},66666:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(48503);function n({className:e="",type:t="button",...a}){return(0,r.jsx)("button",{type:t,className:`transition-colors ${e}`,...a})}},71501:(e,t,a)=>{"use strict";a.d(t,{S:()=>n});var r=a(2439);let n=(0,r.createServerReference)("4025cdadbdaedfecc09d7df7e7acdf7c9234c69555",r.callServer,void 0,r.findSourceMapURL,"setRootAgentAction")},76381:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(48503),n=a(80351),s=a(5829);let l=(0,n.forwardRef)(function({label:e,error:t,showCount:a,id:l,className:i="",containerClassName:o="",maxLength:d,value:c,bare:u=!1,...m},h){let x=(0,n.useId)(),p=l??x;return(0,r.jsxs)("div",{className:o,children:[e&&(0,r.jsx)(s.A,{htmlFor:p,children:e}),(0,r.jsx)("textarea",{id:p,ref:h,maxLength:d,value:c,"aria-invalid":!!t||void 0,className:u?`w-full text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${i}`:`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 ${t?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${i}`,...m}),a&&void 0!==d&&"string"==typeof c&&(0,r.jsxs)("div",{className:"mt-1 text-right text-legacy-11 text-ink-4",children:[c.length," / ",d]}),t&&(0,r.jsx)("p",{className:"mt-1 text-xs text-err",children:t})]})})},78321:(e,t,a)=>{"use strict";a.d(t,{t:()=>n});var r=a(2439);let n=(0,r.createServerReference)("40dd8e5901148c0057f2036a191a444debc5b81fa0",r.callServer,void 0,r.findSourceMapURL,"setWorkspaceTimezoneAction")},78604:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n});var r=a(2439);let n=(0,r.createServerReference)("40fc67fda05aaa95936701f1501d2b90ed82d2c389",r.callServer,void 0,r.findSourceMapURL,"updateLlmKeyAction")},91692:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(80351);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),r.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]])},91701:(e,t,a)=>{"use strict";a.d(t,{t:()=>n});var r=a(48503);function n({active:e,onClick:t,name:a,description:s,children:l,testId:i}){return(0,r.jsxs)("div",{role:"radio","aria-checked":e,"data-testid":i,tabIndex:0,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},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]",e?"border-conn-vivid bg-conn-vivid/[0.06]":"border-rule-2 bg-paper hover:border-rule"].join(" "),children:[(0,r.jsx)("span",{className:["mt-0.5 flex-shrink-0 w-[18px] h-[18px] rounded-full border-[1.6px] flex items-center justify-center",e?"border-conn-vivid":"border-rule"].join(" "),children:e&&(0,r.jsx)("span",{className:"w-2 h-2 rounded-full bg-conn-vivid"})}),(0,r.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,r.jsx)("span",{className:"block text-medium-14 leading-[1.3]! text-ink",children:a}),(0,r.jsx)("span",{className:"block text-body-13 leading-[1.4]! text-ink-3 mt-0.5",children:s}),l]})]})}}},e=>{e.O(0,[2208,8153,146,4811,9706,7358],()=>e(e.s=50248)),_N_E=e.O()}]);
|