titan-agent 6.3.0 → 6.3.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.
Files changed (147) hide show
  1. package/dist/utils/constants.js +1 -1
  2. package/dist/utils/constants.js.map +1 -1
  3. package/package.json +1 -1
  4. package/ui/dist/assets/{AuditPanel-BmFAKA7p.js → AuditPanel-6hTX-30T.js} +1 -1
  5. package/ui/dist/assets/{AutonomyPanel-BzuCEsiG.js → AutonomyPanel-bEolzW0c.js} +1 -1
  6. package/ui/dist/assets/{AutopilotPanel-DA1vFEl4.js → AutopilotPanel-BBhP6EEw.js} +1 -1
  7. package/ui/dist/assets/{AutoresearchPanel-BeUCXYtX.js → AutoresearchPanel-CmSoFu9c.js} +1 -1
  8. package/ui/dist/assets/{BackupPanel-B6N1pfMT.js → BackupPanel-BMqXOM64.js} +1 -1
  9. package/ui/dist/assets/{BrowserPanel-BGHaPi3O.js → BrowserPanel-DqpJBtZO.js} +1 -1
  10. package/ui/dist/assets/{CPActivity-BUSwjFj2.js → CPActivity-kjPVmtna.js} +1 -1
  11. package/ui/dist/assets/{CPAgentDetail-DlUEVujH.js → CPAgentDetail-DJVqWbIz.js} +1 -1
  12. package/ui/dist/assets/{CPAgents-CnRmsSMo.js → CPAgents-DvoKU7K3.js} +1 -1
  13. package/ui/dist/assets/{CPApprovals-CXdkzebd.js → CPApprovals-CgkIcjKy.js} +1 -1
  14. package/ui/dist/assets/{CPCosts-CfcyIUZg.js → CPCosts-Dh2-rKBQ.js} +1 -1
  15. package/ui/dist/assets/{CPDashboard-DHlfE1mT.js → CPDashboard-Bk5ehnOo.js} +1 -1
  16. package/ui/dist/assets/{CPFiles-DyV9vsjE.js → CPFiles-85DnmiZ9.js} +1 -1
  17. package/ui/dist/assets/{CPGoals-C17G2F0e.js → CPGoals-CmaEWa0s.js} +1 -1
  18. package/ui/dist/assets/{CPInbox-D5A3ja_Q.js → CPInbox-DyrwUxsn.js} +1 -1
  19. package/ui/dist/assets/{CPIssueDetail-CoPv27Ll.js → CPIssueDetail-tuKkMZU0.js} +1 -1
  20. package/ui/dist/assets/{CPIssues-C9EdfW1J.js → CPIssues-CRkGwoU7.js} +1 -1
  21. package/ui/dist/assets/CPLayout-BUN7FasU.js +2 -0
  22. package/ui/dist/assets/{CPOrg-DzoVDLKI.js → CPOrg-BiYIRMSl.js} +1 -1
  23. package/ui/dist/assets/{CPRuns-BHAyFv0K.js → CPRuns-_2GvItJv.js} +1 -1
  24. package/ui/dist/assets/{CPSocial-CjHD8dKM.js → CPSocial-BBdyKNyq.js} +1 -1
  25. package/ui/dist/assets/{CPVoice-aybMotU5.js → CPVoice-BnYo-G04.js} +1 -1
  26. package/ui/dist/assets/{ChannelsPanel-8KfvAEYM.js → ChannelsPanel-e1nT5QcW.js} +1 -1
  27. package/ui/dist/assets/{CheckpointsPanel-BCyLRLcg.js → CheckpointsPanel-BixKyU53.js} +1 -1
  28. package/ui/dist/assets/{CommandPostHub-Ce-mWsu2.js → CommandPostHub-Ckh7LlWG.js} +3 -3
  29. package/ui/dist/assets/{CronPanel-A9JHvU_O.js → CronPanel-BMneWRHA.js} +1 -1
  30. package/ui/dist/assets/{DataTable-ol6IZMRj.js → DataTable-CEjOtKUe.js} +1 -1
  31. package/ui/dist/assets/{DreamPanel-ZiOF8ybh.js → DreamPanel-BJO5hRUh.js} +1 -1
  32. package/ui/dist/assets/{EmptyState-B1i1ZK0x.js → EmptyState-CB9me2NW.js} +1 -1
  33. package/ui/dist/assets/{EvalHarnessPanel-DRGc1zbp.js → EvalHarnessPanel-Dg_ghVTz.js} +1 -1
  34. package/ui/dist/assets/{EvalPanel-B_fiFImG.js → EvalPanel-j3fHE-k4.js} +1 -1
  35. package/ui/dist/assets/{FileViewer-D14G6MQq.js → FileViewer-C7fgbngf.js} +1 -1
  36. package/ui/dist/assets/{FilesPanel-BIsMoSfg.js → FilesPanel-Cimj2Z8k.js} +1 -1
  37. package/ui/dist/assets/{FleetPanel-CSjOOsbX.js → FleetPanel-zzprw7Ro.js} +1 -1
  38. package/ui/dist/assets/{HomelabPanel-XHMxqiHu.js → HomelabPanel-C658fL2z.js} +1 -1
  39. package/ui/dist/assets/InfraView-DAwJClAs.js +2 -0
  40. package/ui/dist/assets/{InlineEditableField-AOS-LBh_.js → InlineEditableField-ChiCaepw.js} +1 -1
  41. package/ui/dist/assets/{Input-CTK9oH9g.js → Input-DoWIY9i3.js} +1 -1
  42. package/ui/dist/assets/{IntegrationsPanel-BKuC_5El.js → IntegrationsPanel-Xy3HlXti.js} +1 -1
  43. package/ui/dist/assets/IntelligenceView-CJ2r76hu.js +2 -0
  44. package/ui/dist/assets/{LearningPanel-RpDaPvCj.js → LearningPanel-Ka17sHxK.js} +1 -1
  45. package/ui/dist/assets/{LogsPanel-9zIJP1Xv.js → LogsPanel-BiELvlMC.js} +1 -1
  46. package/ui/dist/assets/{McpPanel-CNE7MhDu.js → McpPanel-BW2r8V3m.js} +1 -1
  47. package/ui/dist/assets/{MemoryGraphPanel-9DEsbOZF.js → MemoryGraphPanel-DZTQIsys.js} +1 -1
  48. package/ui/dist/assets/{MemoryWikiPanel-CqNen9A6.js → MemoryWikiPanel-BSbG8c80.js} +1 -1
  49. package/ui/dist/assets/{MeshPanel-Bq3pHHIT.js → MeshPanel-Ch_uGo4a.js} +1 -1
  50. package/ui/dist/assets/MissionCanvas-BMv0c-RX.js +72 -0
  51. package/ui/dist/assets/{MissionChat-BDqlCplQ.js → MissionChat-CFwKDVc8.js} +1 -1
  52. package/ui/dist/assets/{MissionLibrary-9SMdJnfa.js → MissionLibrary-D2LfLlm2.js} +1 -1
  53. package/ui/dist/assets/{MissionStart-Cm7C3kyo.js → MissionStart-CTyqZWBT.js} +1 -1
  54. package/ui/dist/assets/{Modal-B9KCAwCK.js → Modal-BS3rireW.js} +1 -1
  55. package/ui/dist/assets/{NvidiaPanel-CpGBj1sn.js → NvidiaPanel-53CiSPrh.js} +1 -1
  56. package/ui/dist/assets/{OrganismPanel-DBHyylxC.js → OrganismPanel-BRbiiY5k.js} +1 -1
  57. package/ui/dist/assets/{OverviewPanel-DII4H_R7.js → OverviewPanel-CmRVwkE7.js} +1 -1
  58. package/ui/dist/assets/{PageHeader-Bzb_WXw0.js → PageHeader-Cx4DHJXy.js} +1 -1
  59. package/ui/dist/assets/{PersonaProfilesPanel-CXZTZhjo.js → PersonaProfilesPanel-hmUdUabW.js} +1 -1
  60. package/ui/dist/assets/{PersonasPanel-BYbD8XiV.js → PersonasPanel-VfvknF9L.js} +1 -1
  61. package/ui/dist/assets/{PhoneDeskPanel-Bol7fCCN.js → PhoneDeskPanel-DX_6zrt5.js} +1 -1
  62. package/ui/dist/assets/{RecipesPanel-BRbXRcEn.js → RecipesPanel-B7NygJvl.js} +1 -1
  63. package/ui/dist/assets/{SecurityPanel-BR3BT7Rb.js → SecurityPanel-DRZu6PRV.js} +1 -1
  64. package/ui/dist/assets/{SelfImprovePanel-BX9xYBxl.js → SelfImprovePanel-CgJG9v1W.js} +1 -1
  65. package/ui/dist/assets/{SelfProposalsPanel-BOoDEAYp.js → SelfProposalsPanel-BenuzEGo.js} +1 -1
  66. package/ui/dist/assets/{SessionsPanel-BICnNmn0.js → SessionsPanel-CFdsWt2W.js} +1 -1
  67. package/ui/dist/assets/{SessionsTab-X10FeDWA.js → SessionsTab-8Qtu9BMv.js} +1 -1
  68. package/ui/dist/assets/{SettingsPanel-MuC32AXw.js → SettingsPanel-CmIAAw_T.js} +1 -1
  69. package/ui/dist/assets/SettingsView-ByyjhwLz.js +2 -0
  70. package/ui/dist/assets/{SkeletonLoader-fwI4Z-f0.js → SkeletonLoader-crWOfBFq.js} +1 -1
  71. package/ui/dist/assets/{SkillsPanel-CKFndekU.js → SkillsPanel-BINP41r2.js} +1 -1
  72. package/ui/dist/assets/{SomaView-Ch7WlmBy.js → SomaView-CzZ6SCuw.js} +1 -1
  73. package/ui/dist/assets/{StatCard-Bj2Q_4WS.js → StatCard-DfoksLmM.js} +1 -1
  74. package/ui/dist/assets/{StatusBadge-NtdTQ8_L.js → StatusBadge-FyqmZDG0.js} +1 -1
  75. package/ui/dist/assets/{Tabs-CC9aTVuL.js → Tabs-BMzVMYab.js} +1 -1
  76. package/ui/dist/assets/{TeamsPanel-DjFcLsdR.js → TeamsPanel-CwVNzD77.js} +1 -1
  77. package/ui/dist/assets/{TelemetryPanel-k7gJbZyS.js → TelemetryPanel-C3JTWWQO.js} +1 -1
  78. package/ui/dist/assets/{TitanCanvas-MzLkpZhp.js → TitanCanvas-CmVs4TFr.js} +25 -25
  79. package/ui/dist/assets/{ToolsView-DcxwuM2l.js → ToolsView-C3m7TbnX.js} +2 -2
  80. package/ui/dist/assets/{Tooltip-CFYHfpgQ.js → Tooltip-DZJl8UaT.js} +1 -1
  81. package/ui/dist/assets/{TraceViewer-BfLO9vwI.js → TraceViewer-CfFZQJ3K.js} +1 -1
  82. package/ui/dist/assets/{TrainingPanel-DUl6qChY.js → TrainingPanel-BMunX3EV.js} +1 -1
  83. package/ui/dist/assets/{VoiceOverlay-Dj_cR5_Y.js → VoiceOverlay-DRjTeQgq.js} +1 -1
  84. package/ui/dist/assets/{VramPanel-th0_Eo8o.js → VramPanel-C4nG82nu.js} +1 -1
  85. package/ui/dist/assets/{WatchView-DyGhpKbv.js → WatchView-Cflz1FfL.js} +1 -1
  86. package/ui/dist/assets/{WorkTab-BG5VBljJ.js → WorkTab-BglKN8Uf.js} +1 -1
  87. package/ui/dist/assets/{WorkflowsPanel-C1hVHqAc.js → WorkflowsPanel-BZQu93gE.js} +1 -1
  88. package/ui/dist/assets/{archive-C2_hAJXj.js → archive-C10aphzL.js} +1 -1
  89. package/ui/dist/assets/{arrow-left-DFCBXvKS.js → arrow-left-CLTerrT5.js} +1 -1
  90. package/ui/dist/assets/{book-open-BgDKDGcH.js → book-open-DQ4VpfMq.js} +1 -1
  91. package/ui/dist/assets/{bot-C4ICYImG.js → bot-DNI_W-iH.js} +1 -1
  92. package/ui/dist/assets/{chart-column-BIFJOG_f.js → chart-column-COymYluE.js} +1 -1
  93. package/ui/dist/assets/{check-CmCL8yzl.js → check-Dq1bBdnM.js} +1 -1
  94. package/ui/dist/assets/{chevron-right-U0Ujye5i.js → chevron-right-Dz0EiJIX.js} +1 -1
  95. package/ui/dist/assets/{chevron-up-B6uSBxbj.js → chevron-up-CaJdgiQv.js} +1 -1
  96. package/ui/dist/assets/{circle-check-big-BFw1nom4.js → circle-check-big-Bi688_yD.js} +1 -1
  97. package/ui/dist/assets/{circle-stop-DbtGpdaw.js → circle-stop-BKeZMLyT.js} +1 -1
  98. package/ui/dist/assets/{clipboard-list-Dd3_U8cK.js → clipboard-list-BvhH8UZ-.js} +1 -1
  99. package/ui/dist/assets/{clock-DpJIc30t.js → clock-BiDhhRG4.js} +1 -1
  100. package/ui/dist/assets/{dollar-sign-DlrOHVzA.js → dollar-sign-XvC0BdrI.js} +1 -1
  101. package/ui/dist/assets/{download-CZ5kTONh.js → download-BUv-3ow-.js} +1 -1
  102. package/ui/dist/assets/{external-link-CX-GvMky.js → external-link-6i_dEGHo.js} +1 -1
  103. package/ui/dist/assets/{file-text-BtTsNJbB.js → file-text-CMteaHPb.js} +1 -1
  104. package/ui/dist/assets/{flask-conical-BaPYppKH.js → flask-conical-DOupoJs-.js} +1 -1
  105. package/ui/dist/assets/{folder-BOnpha2-.js → folder-Heg9X62R.js} +1 -1
  106. package/ui/dist/assets/{funnel-DaNi6kwp.js → funnel-C1qSeehb.js} +1 -1
  107. package/ui/dist/assets/{git-branch-gs6g9dSe.js → git-branch-BgrSzLGu.js} +1 -1
  108. package/ui/dist/assets/{index-Dbv5oKsp.js → index-CfeeNofL.js} +23 -23
  109. package/ui/dist/assets/index-DmgXt1oB.css +1 -0
  110. package/ui/dist/assets/{layers-BKZz8iD1.js → layers-BXjHgthV.js} +1 -1
  111. package/ui/dist/assets/{legacy-DbwFsW2A.js → legacy-CMWeVEm-.js} +1 -1
  112. package/ui/dist/assets/{lightbulb-DX6YLtPe.js → lightbulb-CaU3yf0V.js} +1 -1
  113. package/ui/dist/assets/{list-todo-qdMNm4-Q.js → list-todo-DIH1DDut.js} +1 -1
  114. package/ui/dist/assets/{message-square-Cwo5FOho.js → message-square-CAJnwIi8.js} +1 -1
  115. package/ui/dist/assets/{mic-BzvwK4IS.js → mic-a150MaF_.js} +1 -1
  116. package/ui/dist/assets/{missions-CYlXuJED.js → missions-BCmxIqis.js} +1 -1
  117. package/ui/dist/assets/{network-Dt-RBtO_.js → network-DpJozzT9.js} +1 -1
  118. package/ui/dist/assets/{pause-Do3XNLtx.js → pause-B7pXF6wS.js} +1 -1
  119. package/ui/dist/assets/{pencil-DAGs9RFs.js → pencil-DNQZmkMU.js} +1 -1
  120. package/ui/dist/assets/{play-CNElkzEq.js → play-CB_hciEJ.js} +1 -1
  121. package/ui/dist/assets/{plug-DCgrVnB8.js → plug-UdiCBZ6I.js} +1 -1
  122. package/ui/dist/assets/{plus-BnsXhqXc.js → plus-BNliIo_L.js} +1 -1
  123. package/ui/dist/assets/{proxy-BXHdgwrk.js → proxy-tgCU20-X.js} +1 -1
  124. package/ui/dist/assets/{radio-BPz7sHXW.js → radio-KEVgfxWk.js} +1 -1
  125. package/ui/dist/assets/{refresh-cw-Cs4oDMNE.js → refresh-cw-C4BAymqq.js} +1 -1
  126. package/ui/dist/assets/{rotate-ccw-DSpsA3Wr.js → rotate-ccw-CyT1wcCY.js} +1 -1
  127. package/ui/dist/assets/{save-BhGg2pZh.js → save-ICOKiEQf.js} +1 -1
  128. package/ui/dist/assets/{search-BtxlIgqN.js → search-qz2VMyBQ.js} +1 -1
  129. package/ui/dist/assets/{send-BzKTXI3q.js → send-AYGyxY6d.js} +1 -1
  130. package/ui/dist/assets/{server-B1gIgixS.js → server-DMkFokTU.js} +1 -1
  131. package/ui/dist/assets/{shield-check-C39B-Wi3.js → shield-check-Dtr3ujKk.js} +1 -1
  132. package/ui/dist/assets/{terminal-CubaeYlJ.js → terminal-ucriUmF-.js} +1 -1
  133. package/ui/dist/assets/{test-tube-CYYLfFIz.js → test-tube-Co4Kjj0G.js} +1 -1
  134. package/ui/dist/assets/{toggle-right-BQ3iDgLG.js → toggle-right-NKDEGJdm.js} +1 -1
  135. package/ui/dist/assets/{trash-2-CSxfLiVB.js → trash-2-CJjOlqMp.js} +1 -1
  136. package/ui/dist/assets/{trending-up-DXxKT18Q.js → trending-up-CC4itzlz.js} +1 -1
  137. package/ui/dist/assets/{trophy-osEOm2Vi.js → trophy-BP9FY35i.js} +1 -1
  138. package/ui/dist/assets/{volume-2-C1OkTurz.js → volume-2-CAQ1nA-B.js} +1 -1
  139. package/ui/dist/assets/{wifi-off-DAhvsjnD.js → wifi-off-jrnDcc0y.js} +1 -1
  140. package/ui/dist/index.html +2 -2
  141. package/ui/dist/sw.js +1 -1
  142. package/ui/dist/assets/CPLayout-CHrlktMs.js +0 -2
  143. package/ui/dist/assets/InfraView-DNYgRXkB.js +0 -2
  144. package/ui/dist/assets/IntelligenceView-BUKpVpDQ.js +0 -2
  145. package/ui/dist/assets/MissionCanvas-Ci0hbAF0.js +0 -69
  146. package/ui/dist/assets/SettingsView-Cv9IZqiU.js +0 -2
  147. package/ui/dist/assets/index-OZm1iJy9.css +0 -1
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-Dbv5oKsp.js";/**
1
+ import{c as a}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-Dbv5oKsp.js";/**
1
+ import{c}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-Dbv5oKsp.js";/**
1
+ import{c as a}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-Dbv5oKsp.js";/**
1
+ import{c as e}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-Dbv5oKsp.js";/**
1
+ import{c}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-Dbv5oKsp.js";/**
1
+ import{c as e}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-Dbv5oKsp.js";/**
1
+ import{c as e}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-Dbv5oKsp.js";/**
1
+ import{c as e}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-Dbv5oKsp.js";/**
1
+ import{c as e}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-Dbv5oKsp.js";/**
1
+ import{c as e}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-Dbv5oKsp.js";/**
1
+ import{c as a}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-Dbv5oKsp.js";/**
1
+ import{c as a}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-Dbv5oKsp.js";/**
1
+ import{c as a}from"./index-CfeeNofL.js";/**
2
2
  * @license lucide-react v0.513.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -9,8 +9,8 @@
9
9
  <link rel="manifest" href="/manifest.json" />
10
10
  <link rel="apple-touch-icon" href="/titan-logo.png" />
11
11
  <title>TITAN Mission Control</title>
12
- <script type="module" crossorigin src="/assets/index-Dbv5oKsp.js"></script>
13
- <link rel="stylesheet" crossorigin href="/assets/index-OZm1iJy9.css">
12
+ <script type="module" crossorigin src="/assets/index-CfeeNofL.js"></script>
13
+ <link rel="stylesheet" crossorigin href="/assets/index-DmgXt1oB.css">
14
14
  </head>
15
15
  <body class="bg-zinc-950 text-zinc-100">
16
16
  <div id="root"></div>
package/ui/dist/sw.js CHANGED
@@ -20,7 +20,7 @@
20
20
  * but a default falls back to the source-controlled value here.
21
21
  */
22
22
 
23
- const CACHE_NAME = 'titan-' + ('1779213142665');
23
+ const CACHE_NAME = 'titan-' + ('1779216447261');
24
24
  const ASSETS_PREFIX = '/assets/';
25
25
 
26
26
  self.addEventListener('install', (event) => {
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CommandPostHub-Ce-mWsu2.js","assets/index-Dbv5oKsp.js","assets/index-OZm1iJy9.css","assets/Input-CTK9oH9g.js","assets/clsx-B-dksMZM.js","assets/Modal-B9KCAwCK.js","assets/proxy-BXHdgwrk.js","assets/InlineEditableField-AOS-LBh_.js","assets/check-CmCL8yzl.js","assets/pencil-DAGs9RFs.js","assets/Tooltip-CFYHfpgQ.js","assets/approvalHeadline-DB9SgR-9.js","assets/chevron-right-U0Ujye5i.js","assets/bot-C4ICYImG.js","assets/pause-Do3XNLtx.js","assets/dollar-sign-DlrOHVzA.js","assets/git-branch-gs6g9dSe.js","assets/chart-column-BIFJOG_f.js","assets/clock-DpJIc30t.js","assets/message-square-Cwo5FOho.js","assets/file-text-BtTsNJbB.js","assets/terminal-CubaeYlJ.js","assets/refresh-cw-Cs4oDMNE.js","assets/circle-stop-DbtGpdaw.js","assets/send-BzKTXI3q.js","assets/plus-BnsXhqXc.js","assets/trash-2-CSxfLiVB.js","assets/CPIssues-C9EdfW1J.js","assets/StatusBadge-NtdTQ8_L.js","assets/PageHeader-Bzb_WXw0.js","assets/EmptyState-B1i1ZK0x.js","assets/Tabs-CC9aTVuL.js","assets/SkeletonLoader-fwI4Z-f0.js","assets/list-todo-qdMNm4-Q.js","assets/CPIssueDetail-CoPv27Ll.js","assets/arrow-left-DFCBXvKS.js","assets/CPAgents-CnRmsSMo.js","assets/CPAgentDetail-DlUEVujH.js","assets/circle-check-big-BFw1nom4.js","assets/save-BhGg2pZh.js","assets/CPApprovals-CXdkzebd.js","assets/shield-check-C39B-Wi3.js","assets/CPActivity-BUSwjFj2.js","assets/CPGoals-C17G2F0e.js","assets/CPRuns-BHAyFv0K.js","assets/play-CNElkzEq.js","assets/CPCosts-CfcyIUZg.js","assets/CPOrg-DzoVDLKI.js","assets/network-Dt-RBtO_.js","assets/CPFiles-DyV9vsjE.js","assets/folder-BOnpha2-.js","assets/flask-conical-BaPYppKH.js","assets/search-BtxlIgqN.js"])))=>i.map(i=>d[i]);
2
- import{j as t,r as s,q as _,v as e,N as l,_ as o}from"./index-Dbv5oKsp.js";const a=s.lazy(()=>o(()=>import("./CommandPostHub-Ce-mWsu2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]))),i=s.lazy(()=>o(()=>import("./CPIssues-C9EdfW1J.js"),__vite__mapDeps([27,1,2,3,4,28,29,12,30,31,5,6,32,25,33]))),r=s.lazy(()=>o(()=>import("./CPIssueDetail-CoPv27Ll.js"),__vite__mapDeps([34,1,2,3,4,28,29,12,32,35,19,24]))),n=s.lazy(()=>o(()=>import("./CPAgents-CnRmsSMo.js"),__vite__mapDeps([36,1,2,3,4,28,29,12,30,32]))),x=s.lazy(()=>o(()=>import("./CPAgentDetail-DlUEVujH.js"),__vite__mapDeps([37,1,2,3,4,28,29,12,30,31,32,35,38,15,18,39]))),m=s.lazy(()=>o(()=>import("./CPApprovals-CXdkzebd.js"),__vite__mapDeps([40,1,2,3,4,28,29,12,30,31,32,11,41,8]))),j=s.lazy(()=>o(()=>import("./CPActivity-BUSwjFj2.js"),__vite__mapDeps([42,1,2,3,4,29,12,30,31,32,41,15,13]))),p=s.lazy(()=>o(()=>import("./CPGoals-C17G2F0e.js"),__vite__mapDeps([43,1,2,3,4,28,29,12,30,5,6,32,25,26]))),u=s.lazy(()=>o(()=>import("./CPRuns-BHAyFv0K.js"),__vite__mapDeps([44,1,2,3,4,28,29,12,30,32,45]))),c=s.lazy(()=>o(()=>import("./CPCosts-CfcyIUZg.js"),__vite__mapDeps([46,1,2,3,4,28,29,12,30,5,6,32,25,15,26]))),d=s.lazy(()=>o(()=>import("./CPOrg-DzoVDLKI.js"),__vite__mapDeps([47,1,2,3,4,28,29,12,30,32,48,26]))),P=s.lazy(()=>o(()=>import("./CPFiles-DyV9vsjE.js"),__vite__mapDeps([49,1,2,50,51,52,22,20])));function E(){return t.jsx("div",{className:"flex items-center justify-center h-full text-sm",style:{color:"#c4b49a"},children:"Loading..."})}function h(){return t.jsx("div",{className:"h-full overflow-hidden",children:t.jsx("div",{className:"h-full overflow-auto",children:t.jsx(s.Suspense,{fallback:t.jsx(E,{}),children:t.jsxs(_,{children:[t.jsx(e,{index:!0,element:t.jsx(a,{})}),t.jsx(e,{path:"dashboard",element:t.jsx(a,{})}),t.jsx(e,{path:"issues",element:t.jsx(i,{})}),t.jsx(e,{path:"issues/:id",element:t.jsx(r,{})}),t.jsx(e,{path:"agents",element:t.jsx(n,{})}),t.jsx(e,{path:"agents/:id",element:t.jsx(x,{})}),t.jsx(e,{path:"approvals",element:t.jsx(m,{})}),t.jsx(e,{path:"activity",element:t.jsx(j,{})}),t.jsx(e,{path:"goals",element:t.jsx(p,{})}),t.jsx(e,{path:"runs",element:t.jsx(u,{})}),t.jsx(e,{path:"costs",element:t.jsx(c,{})}),t.jsx(e,{path:"org",element:t.jsx(d,{})}),t.jsx(e,{path:"files",element:t.jsx(P,{})}),t.jsx(e,{path:"*",element:t.jsx(l,{to:"/command-post",replace:!0})})]})})})})}export{h as CPLayout,h as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomelabPanel-XHMxqiHu.js","assets/index-Dbv5oKsp.js","assets/index-OZm1iJy9.css","assets/PageHeader-Bzb_WXw0.js","assets/chevron-right-U0Ujye5i.js","assets/StatCard-Bj2Q_4WS.js","assets/SkeletonLoader-fwI4Z-f0.js","assets/clsx-B-dksMZM.js","assets/refresh-cw-Cs4oDMNE.js","assets/clock-DpJIc30t.js","assets/message-square-Cwo5FOho.js","assets/server-B1gIgixS.js","assets/chart-column-BIFJOG_f.js","assets/network-Dt-RBtO_.js","assets/circle-check-big-BFw1nom4.js","assets/wifi-off-DAhvsjnD.js","assets/dollar-sign-DlrOHVzA.js","assets/NvidiaPanel-CpGBj1sn.js","assets/save-BhGg2pZh.js","assets/external-link-CX-GvMky.js","assets/search-BtxlIgqN.js","assets/FilesPanel-BIsMoSfg.js","assets/plus-BnsXhqXc.js","assets/arrow-left-DFCBXvKS.js","assets/pencil-DAGs9RFs.js","assets/trash-2-CSxfLiVB.js","assets/download-CZ5kTONh.js","assets/check-CmCL8yzl.js","assets/TitanCanvas-MzLkpZhp.js","assets/chevron-up-B6uSBxbj.js","assets/file-text-BtTsNJbB.js","assets/terminal-CubaeYlJ.js","assets/book-open-BgDKDGcH.js","assets/rotate-ccw-DSpsA3Wr.js","assets/send-BzKTXI3q.js","assets/mic-BzvwK4IS.js","assets/flask-conical-BaPYppKH.js","assets/archive-C2_hAJXj.js","assets/radio-BPz7sHXW.js","assets/test-tube-CYYLfFIz.js","assets/VoiceOverlay-Dj_cR5_Y.js","assets/volume-2-C1OkTurz.js","assets/folder-BOnpha2-.js","assets/shield-check-C39B-Wi3.js","assets/bot-C4ICYImG.js","assets/TitanCanvas-BfitWg9R.css","assets/LogsPanel-9zIJP1Xv.js","assets/TelemetryPanel-k7gJbZyS.js","assets/git-branch-gs6g9dSe.js"])))=>i.map(i=>d[i]);
2
- import{r as t,j as e,_ as a}from"./index-Dbv5oKsp.js";import{c as i}from"./clsx-B-dksMZM.js";const r=t.lazy(()=>a(()=>import("./HomelabPanel-XHMxqiHu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),d=t.lazy(()=>a(()=>import("./NvidiaPanel-CpGBj1sn.js"),__vite__mapDeps([17,1,2,8,18,14,19,20]))),n=t.lazy(()=>a(()=>import("./FilesPanel-BIsMoSfg.js"),__vite__mapDeps([21,1,2,22,8,4,23,9,24,25,18,26,27,28,29,30,11,13,31,32,33,20,34,10,35,36,37,38,39,40,41,42,43,19,44,15,45]))),c=t.lazy(()=>a(()=>import("./LogsPanel-9zIJP1Xv.js"),__vite__mapDeps([46,1,2,8]))),m=t.lazy(()=>a(()=>import("./TelemetryPanel-k7gJbZyS.js"),__vite__mapDeps([47,1,2,5,9,48,12,11]))),x=[{id:"homelab",label:"Homelab"},{id:"gpu",label:"GPU / NVIDIA"},{id:"files",label:"Files"},{id:"logs",label:"Logs"},{id:"telemetry",label:"Telemetry"}];function p(){const[l,o]=t.useState("homelab");return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"shrink-0 px-5 pt-4 pb-0",children:[e.jsx("h1",{className:"text-sm font-semibold text-text mb-3",children:"Infrastructure"}),e.jsx("div",{className:"flex items-center gap-0.5 border-b border-border/50",children:x.map(s=>e.jsxs("button",{onClick:()=>o(s.id),className:i("px-3 py-2 text-xs font-medium transition-colors relative",l===s.id?"text-accent":"text-text-muted hover:text-text-secondary"),children:[s.label,l===s.id&&e.jsx("div",{className:"absolute bottom-0 left-1 right-1 h-[2px] bg-accent rounded-full"})]},s.id))})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-auto p-5",children:e.jsxs(t.Suspense,{fallback:e.jsx("div",{className:"skeleton-shimmer h-40 rounded-lg"}),children:[l==="homelab"&&e.jsx(r,{}),l==="gpu"&&e.jsx(d,{}),l==="files"&&e.jsx(n,{}),l==="logs"&&e.jsx(c,{}),l==="telemetry"&&e.jsx(m,{})]})})]})}export{p as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AutopilotPanel-DA1vFEl4.js","assets/index-Dbv5oKsp.js","assets/index-OZm1iJy9.css","assets/PageHeader-Bzb_WXw0.js","assets/chevron-right-U0Ujye5i.js","assets/WorkflowsPanel-C1hVHqAc.js","assets/Input-CTK9oH9g.js","assets/clsx-B-dksMZM.js","assets/InlineEditableField-AOS-LBh_.js","assets/check-CmCL8yzl.js","assets/pencil-DAGs9RFs.js","assets/refresh-cw-Cs4oDMNE.js","assets/plus-BnsXhqXc.js","assets/play-CNElkzEq.js","assets/pause-Do3XNLtx.js","assets/trash-2-CSxfLiVB.js","assets/clock-DpJIc30t.js","assets/toggle-right-BQ3iDgLG.js","assets/book-open-BgDKDGcH.js","assets/LearningPanel-RpDaPvCj.js","assets/lightbulb-DX6YLtPe.js","assets/TitanCanvas-MzLkpZhp.js","assets/chevron-up-B6uSBxbj.js","assets/file-text-BtTsNJbB.js","assets/server-B1gIgixS.js","assets/network-Dt-RBtO_.js","assets/terminal-CubaeYlJ.js","assets/save-BhGg2pZh.js","assets/rotate-ccw-DSpsA3Wr.js","assets/search-BtxlIgqN.js","assets/send-BzKTXI3q.js","assets/message-square-Cwo5FOho.js","assets/mic-BzvwK4IS.js","assets/flask-conical-BaPYppKH.js","assets/archive-C2_hAJXj.js","assets/radio-BPz7sHXW.js","assets/test-tube-CYYLfFIz.js","assets/VoiceOverlay-Dj_cR5_Y.js","assets/volume-2-C1OkTurz.js","assets/folder-BOnpha2-.js","assets/shield-check-C39B-Wi3.js","assets/external-link-CX-GvMky.js","assets/bot-C4ICYImG.js","assets/wifi-off-DAhvsjnD.js","assets/TitanCanvas-BfitWg9R.css","assets/trending-up-DXxKT18Q.js","assets/MemoryGraphPanel-9DEsbOZF.js","assets/SelfImprovePanel-BX9xYBxl.js","assets/circle-check-big-BFw1nom4.js","assets/trophy-osEOm2Vi.js","assets/PersonasPanel-BYbD8XiV.js"])))=>i.map(i=>d[i]);
2
- import{r as o,j as e,_ as t}from"./index-Dbv5oKsp.js";import{c as a}from"./clsx-B-dksMZM.js";const i=o.lazy(()=>t(()=>import("./AutopilotPanel-DA1vFEl4.js"),__vite__mapDeps([0,1,2,3,4]))),n=o.lazy(()=>t(()=>import("./WorkflowsPanel-C1hVHqAc.js"),__vite__mapDeps([5,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18]))),d=o.lazy(()=>t(()=>import("./LearningPanel-RpDaPvCj.js"),__vite__mapDeps([19,1,2,3,4,11,18,20,21,22,12,23,24,25,26,27,10,28,29,30,31,32,33,16,34,35,36,37,38,39,9,40,41,42,43,44,45]))),c=o.lazy(()=>t(()=>import("./MemoryGraphPanel-9DEsbOZF.js"),__vite__mapDeps([46,1,2,25,11,15,29]))),m=o.lazy(()=>t(()=>import("./SelfImprovePanel-BX9xYBxl.js"),__vite__mapDeps([47,1,2,11,48,16,49,45,42,4,13,26,35,15]))),x=o.lazy(()=>t(()=>import("./PersonasPanel-BYbD8XiV.js"),__vite__mapDeps([50,1,2]))),p=[{id:"autopilot",label:"Autopilot"},{id:"workflows",label:"Workflows"},{id:"learning",label:"Learning"},{id:"memory",label:"Memory & Graph"},{id:"self-improve",label:"Self-Improve"},{id:"personas",label:"Personas"}];function f(){const[l,r]=o.useState("autopilot");return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"shrink-0 px-5 pt-4 pb-0",children:[e.jsx("h1",{className:"text-sm font-semibold text-text mb-3",children:"Intelligence"}),e.jsx("div",{className:"flex items-center gap-0.5 border-b border-border/50",children:p.map(s=>e.jsxs("button",{onClick:()=>r(s.id),className:a("px-3 py-2 text-xs font-medium transition-colors relative",l===s.id?"text-accent":"text-text-muted hover:text-text-secondary"),children:[s.label,l===s.id&&e.jsx("div",{className:"absolute bottom-0 left-1 right-1 h-[2px] bg-accent rounded-full"})]},s.id))})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-auto p-5",children:e.jsxs(o.Suspense,{fallback:e.jsx("div",{className:"skeleton-shimmer h-40 rounded-lg"}),children:[l==="autopilot"&&e.jsx(i,{}),l==="workflows"&&e.jsx(n,{}),l==="learning"&&e.jsx(d,{}),l==="memory"&&e.jsx(c,{}),l==="self-improve"&&e.jsx(m,{}),l==="personas"&&e.jsx(x,{})]})})]})}export{f as default};
@@ -1,69 +0,0 @@
1
- import{r as i,j as e,p as Ne,u as Se,aB as Ce}from"./index-Dbv5oKsp.js";import{p as ee,f as Me,h as $e,i as De,g as Te,a as ce,s as Ae,b as ze,d as Oe,e as Fe}from"./missions-CYlXuJED.js";import{F as Ee}from"./FileViewer-D14G6MQq.js";function Le({member:t,room:a,anchor:r,availableModels:o,onClose:u,onTalkInChat:g}){const p=i.useRef(null),[d,y]=i.useState("main"),[v,x]=i.useState(""),[b,l]=i.useState(!1),[f,h]=i.useState(!1),[w,j]=i.useState(null);i.useEffect(()=>{const m=L=>{L.key==="Escape"&&u()};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[u]);const A=320,T=360,M=Re(r,A,T);async function S(){h(!0),j(null);try{await ee(a.id,`@${t.name} quick check-in — how's it going? Anything I can clear for you?`),u()}catch(m){j(m.message)}finally{h(!1)}}async function E(m){const L=v.trim();if(!(!L||b)){l(!0),j(null);try{await ee(a.id,`@${t.name} ${m}${L}`),x(""),u()}catch(W){j(W.message)}finally{l(!1)}}}async function z(m){h(!0),j(null);try{await De(a.id,t.agentId,m),y("main")}catch(L){j(L.message)}finally{h(!1)}}async function k(){h(!0),j(null);try{await Me(a.id,t.agentId,!t.paused)}catch(m){j(m.message)}finally{h(!1)}}async function R(){h(!0),j(null);try{await $e(a.id,!a.longRunningMode)}catch(m){j(m.message)}finally{h(!1)}}return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-[60]",onClick:u,"aria-hidden":!0}),e.jsxs("div",{ref:p,className:"absolute z-[61] flex flex-col titan-modal-surface overflow-hidden",style:{left:M.x,top:M.y,width:A,maxHeight:T,borderRadius:12},onClick:m=>m.stopPropagation(),children:[e.jsx("div",{className:"h-1.5",style:{background:`linear-gradient(90deg, ${t.color}, ${ue(t.color,-25)})`}}),e.jsxs("div",{className:"px-4 pt-3 pb-2 flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center text-white font-bold text-[14px]",style:{background:`linear-gradient(135deg, ${t.color}, ${ue(t.color,-25)})`},children:t.name[0]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"font-semibold text-sm",children:t.name}),e.jsxs("div",{className:"text-[11px] text-text-muted",children:[t.role," · ",Pe(t)]})]}),e.jsx("button",{onClick:u,"aria-label":"Close",className:"titan-close-btn w-7 h-7 rounded-full flex items-center justify-center text-sm",style:{border:"1px solid var(--theme-menu-border)"},children:"✕"})]}),t.currentActivity&&e.jsxs("div",{className:"px-4 pb-2 text-[11px] text-text-secondary italic leading-snug border-b border-border/60",children:['"',t.currentActivity,'"']}),w&&e.jsx("div",{className:"px-4 py-2 text-[11px] text-error bg-error/10 border-b border-error/30",children:w}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[d==="main"&&e.jsxs("div",{className:"p-2 grid grid-cols-2 gap-2",children:[e.jsx(H,{icon:"👋",label:"Nudge",hint:"A friendly check-in",onClick:S,disabled:f}),e.jsx(H,{icon:"💬",label:"Talk to them",hint:"Send a message just to them",onClick:()=>{g?(g(t.agentId,`@${t.name} `),u()):y("talk")},disabled:f}),e.jsx(H,{icon:"🧭",label:"Steer",hint:"Redirect them mid-task",onClick:()=>y("steer"),disabled:f}),e.jsx(H,{icon:"🧠",label:"Model",hint:t.modelOverride?Be(t.modelOverride):"default",onClick:()=>y("model"),disabled:f}),e.jsx(H,{icon:t.paused?"▶":"⏸",label:t.paused?"Resume agent":"Pause agent",hint:t.paused?"Bring them back":"Skip them for now",onClick:k,disabled:f,wide:!1}),e.jsx(H,{icon:"🏃",label:a.longRunningMode?"Marathon ON":"Marathon mode",hint:a.longRunningMode?"running 72h goal":"72h auto-run",onClick:R,disabled:f,active:!!a.longRunningMode})]}),(d==="talk"||d==="steer")&&e.jsxs("div",{className:"p-3 flex flex-col gap-2",children:[e.jsx("div",{className:"text-[10px] uppercase tracking-widest text-text-muted",children:d==="talk"?`Message ${t.name}`:`Steer ${t.name}`}),e.jsx("textarea",{autoFocus:!0,value:v,onChange:m=>x(m.target.value),rows:4,onKeyDown:m=>{m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&(m.preventDefault(),E(d==="steer"?"steer: ":""))},placeholder:d==="steer"?'e.g. "skip the chart, focus on cost comparison"':"Type a private note to them…",className:"bg-bg-tertiary border border-border rounded-lg p-2 text-sm text-text outline-none focus:border-accent resize-none"}),d==="steer"&&e.jsx("div",{className:"flex flex-wrap gap-1.5",children:["Slow down","Be thorough","Wrap it up","Skip the chart"].map(m=>e.jsx("button",{onClick:()=>x(m.toLowerCase()),className:"px-2 py-0.5 text-[11px] bg-bg-tertiary border border-border rounded-full text-text-muted hover:text-text",children:m},m))}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("button",{onClick:()=>y("main"),className:"text-xs text-text-muted hover:text-text",children:"← Back"}),e.jsx("button",{onClick:()=>E(d==="steer"?"steer: ":""),disabled:!v.trim()||b,className:"px-3 py-1.5 rounded-lg font-bold text-bg-deep bg-gradient-to-br from-accent to-accent2 disabled:opacity-50 text-xs",children:b?"Sending…":"Send ⌘↵"})]})]}),d==="model"&&e.jsxs("div",{className:"p-3 flex flex-col gap-2",children:[e.jsxs("div",{className:"text-[10px] uppercase tracking-widest text-text-muted",children:[t.name,"'s brain"]}),e.jsx("div",{className:"text-[11px] text-text-secondary leading-snug",children:"Pick a specific model for this agent on this mission. Empty = the role's default."}),t.modelOverride&&e.jsxs("div",{className:"px-2.5 py-1.5 rounded-lg bg-accent/10 border border-accent/40 text-[12px] text-text flex items-center justify-between",children:[e.jsxs("span",{className:"truncate",children:["Now: ",e.jsx("b",{children:t.modelOverride})]}),e.jsx("button",{onClick:()=>z(null),className:"text-[11px] text-text-muted hover:text-text shrink-0",children:"clear"})]}),e.jsx("div",{className:"flex flex-col gap-1 max-h-48 overflow-y-auto",children:o.length===0?e.jsx("div",{className:"text-[11px] text-text-muted italic",children:"No models discovered. /api/models returned empty."}):o.map(m=>{const L=t.modelOverride===m.id;return e.jsxs("button",{onClick:()=>z(m.id),disabled:f,className:`flex items-center justify-between px-2.5 py-1.5 rounded-lg text-[12px] border text-left ${L?"bg-accent/10 border-accent/60 text-text":"bg-bg-tertiary/40 border-border text-text-secondary hover:text-text hover:border-border-light"}`,children:[e.jsx("span",{className:"truncate",children:m.id}),e.jsx("span",{className:"text-[10px] text-text-muted ml-2 shrink-0",children:m.provider})]},m.id)})}),e.jsx("button",{onClick:()=>y("main"),className:"text-xs text-text-muted hover:text-text self-start mt-1",children:"← Back"})]})]})]})]})}function H({icon:t,label:a,hint:r,onClick:o,disabled:u,wide:g,active:p}){return e.jsxs("button",{onClick:o,disabled:u,className:`text-left p-2.5 rounded-xl border transition-colors ${p?"bg-accent/15 border-accent/50 text-text":"bg-bg-tertiary/40 border-border text-text-secondary hover:text-text hover:border-border-light"} ${g?"col-span-2":""} disabled:opacity-50`,children:[e.jsx("div",{className:"text-lg leading-none mb-1",children:t}),e.jsx("div",{className:"text-[12px] font-semibold leading-tight",children:a}),r&&e.jsx("div",{className:"text-[10px] text-text-muted leading-snug mt-0.5 truncate",children:r})]})}function Re({x:t,y:a},r,o){const u=window.innerWidth,g=window.innerHeight;return{x:Math.max(8,Math.min(t,u-r-8)),y:Math.max(8,Math.min(a,g-o-8))}}function Pe(t){return t.paused?"paused (by you)":t.state==="working"?"working":t.state==="editing"?"editing":t.state==="blocked"?"needs you":t.state==="done"?"done":"idle"}function Be(t){return t.length<=24?t:t.slice(0,22)+"…"}function ue(t,a){const r=t.replace("#","");if(r.length!==6)return t;const o=parseInt(r,16);let u=o>>16&255,g=o>>8&255,p=o&255;const d=Math.round(255*(a/100));return u=Math.max(0,Math.min(255,u+d)),g=Math.max(0,Math.min(255,g+d)),p=Math.max(0,Math.min(255,p+d)),"#"+(u<<16|g<<8|p).toString(16).padStart(6,"0")}const Ie=[{cmd:"/slow down",label:"Slow down",hint:"be more careful"},{cmd:"/be thorough",label:"Be thorough",hint:"dig deeper"},{cmd:"/wrap it up",label:"Wrap it up",hint:"finish what you have"},{cmd:"/pause",label:"Pause",hint:"pause the team"}];function Ye(t){try{const a=localStorage.getItem(he(t));return a?JSON.parse(a):{}}catch{return{}}}function We(t,a){try{localStorage.setItem(he(t),JSON.stringify(a))}catch{}}function he(t){return`titan-desk:${t}`}function fe(t){return`titan-desk-furniture:${t}`}function He(t){const a={cabinet:[],trash:[],permanentlyHidden:[],cabinetOpen:!1,trashOpen:!1};try{const r=localStorage.getItem(fe(t));if(!r)return a;const o=JSON.parse(r);return{cabinet:Array.isArray(o.cabinet)?o.cabinet:[],trash:Array.isArray(o.trash)?o.trash:[],permanentlyHidden:Array.isArray(o.permanentlyHidden)?o.permanentlyHidden:[],cabinetOpen:!!o.cabinetOpen,trashOpen:!!o.trashOpen}}catch{return a}}function Ge(t,a){try{localStorage.setItem(fe(t),JSON.stringify(a))}catch{}}function Ct(){const{id:t}=Ne(),a=Se(),[r,o]=i.useState(null),[u,g]=i.useState(!0),[p,d]=i.useState(null),[y,v]=i.useState(""),[x,b]=i.useState(!1),[l,f]=i.useState(!1),h=i.useRef(null),[w,j]=i.useState(()=>({width:typeof window>"u"?1400:window.innerWidth,height:typeof window>"u"?800:window.innerHeight}));i.useLayoutEffect(()=>{const n=h.current;if(!n)return;const s=()=>{const C=n.getBoundingClientRect();j($=>{const P=Math.max(320,Math.round(C.width)),N=Math.max(320,Math.round(C.height));return $.width===P&&$.height===N?$:{width:P,height:N}})};s();const c=typeof ResizeObserver<"u"?new ResizeObserver(s):null;return c==null||c.observe(n),window.addEventListener("resize",s),()=>{c==null||c.disconnect(),window.removeEventListener("resize",s)}},[u,r==null?void 0:r.id]);const A=i.useCallback(()=>{var s;const n=(s=h.current)==null?void 0:s.getBoundingClientRect();return n||{left:0,top:0,width:typeof window>"u"?1400:window.innerWidth,height:typeof window>"u"?800:window.innerHeight}},[]),T=i.useCallback((n,s)=>{const c=A();return{x:n-c.left,y:s-c.top}},[A]),M=i.useCallback((n,s)=>{const c=T(n,s);return{x:Math.max(8,Math.min(c.x,w.width-328)),y:Math.max(8,Math.min(c.y,w.height-368))}},[w,T]),[S,E]=i.useState({});i.useEffect(()=>{t&&E(Ye(t))},[t]);const z=i.useCallback(n=>{E(n),t&&We(t,n)},[t]),[k,R]=i.useState({cabinet:[],trash:[],permanentlyHidden:[],cabinetOpen:!1,trashOpen:!1});i.useEffect(()=>{t&&R(He(t))},[t]);const m=i.useCallback(n=>{R(n),t&&Ge(t,n)},[t]),[L,W]=i.useState([]);i.useEffect(()=>{Ce().then(W).catch(()=>W([]))},[]);const[I,G]=i.useState(null),[V,J]=i.useState(null),te=i.useCallback(async n=>{if(t){J({ref:n,loading:!0});try{const s=await Te(t,n);J({ref:n,loading:!1,file:s})}catch(s){J({ref:n,loading:!1,error:s.message})}}},[t]);i.useEffect(()=>{if(!t)return;let n=!0;return g(!0),ce(t).then(({mission:s})=>{n&&(o(s),g(!1))}).catch(s=>{n&&(d(s.message),g(!1))}),()=>{n=!1}},[t]),i.useEffect(()=>t?Ae(t,s=>{if(s.kind==="mission_deleted"){a("/mission");return}s.kind!=="hello"&&ce(t).then(({mission:c})=>o(c)).catch(()=>{})}):void 0,[t,a]);const ae=i.useCallback(async n=>{if(!(!r||!n.trim()||x)){b(!0);try{await ee(r.id,n.trim()),v("")}catch(s){d(s.message)}finally{b(!1)}}},[r,x]),me=i.useCallback(async(n,s)=>{if(r)try{await ze(r.id,n,s)}catch(c){d(c.message)}},[r]),ge=i.useCallback(async()=>{if(!r)return;const n=r.status==="paused"?"working":"paused";try{await Oe(r.id,n)}catch(s){d(s.message)}},[r]),be=i.useCallback(async()=>{if(!(!r||!window.confirm(`Delete this mission?
2
-
3
- "${r.goal.slice(0,120)}${r.goal.length>120?"…":""}"
4
-
5
- The file is renamed on disk (recoverable manually), but the mission disappears from the UI immediately.`)))try{await Fe(r.id),a("/mission")}catch(s){d(s.message)}},[r,a]),K=i.useMemo(()=>r?[...r.messages].reverse().find(s=>s.kind==="question"&&!s.answer):void 0,[r]),X=i.useMemo(()=>{if(!r)return[];const n=new Map;for(const s of r.messages)if(!(s.kind!=="agent"||!Array.isArray(s.sources)))for(const c of s.sources)(c.type==="file"||c.type==="report")&&n.set(c.ref,{ref:c.ref,description:c.description,type:c.type});return Array.from(n.values())},[r]),_=i.useMemo(()=>{if(!r)return[];const n=[];for(const s of r.team){const c=s.activityLog??[];for(const C of c)n.push({id:`${s.agentId}:${C.at}:${C.icon}`,agentId:s.agentId,agentName:s.name,agentColor:s.color,icon:C.icon,activity:C.activity,detail:C.detail,at:C.at})}return n.sort((s,c)=>s.at<c.at?1:-1),n.slice(0,12)},[r]),U=i.useMemo(()=>{if(!r)return[];const n=new Map;for(const s of r.messages)if(!(s.kind!=="agent"||!Array.isArray(s.sources)))for(const c of s.sources)c.type==="fact"&&n.set(c.ref,{ref:c.ref,description:c.description});return Array.from(n.values()).slice(0,8)},[r]),O=i.useMemo(()=>{if(!r)return[];const n=[];n.push({id:"goal",kind:"goal"}),n.push({id:"document",kind:"document"}),n.push({id:"cost",kind:"cost"}),n.push({id:"clock",kind:"clock"}),n.push({id:"cabinet",kind:"cabinet"}),n.push({id:"trash",kind:"trash"});for(const s of r.team)n.push({id:`agent:${s.agentId}`,kind:"agent",ref:s.agentId});for(const s of X)n.push({id:`file:${s.ref}`,kind:"file",ref:s.ref});for(const s of U)n.push({id:`fact:${s.ref}`,kind:"fact",ref:s.ref});for(const s of _)n.push({id:s.id,kind:"activity",ref:s.id});return K&&n.push({id:`q:${K.approvalId}`,kind:"question",ref:K.approvalId}),n},[r,X,U,_,K]),ne=i.useCallback(n=>k.cabinet.includes(n)||k.trash.includes(n)||k.permanentlyHidden.includes(n),[k]),ve=i.useCallback((n,s)=>s==="cabinet"?(m({...k,cabinet:[...new Set([...k.cabinet,n])],trash:k.trash.filter(c=>c!==n)}),!0):s==="trash"?(m({...k,trash:[...new Set([...k.trash,n])],cabinet:k.cabinet.filter(c=>c!==n)}),!0):!1,[k,m]),re=i.useCallback(n=>{m({...k,cabinet:k.cabinet.filter(s=>s!==n),trash:k.trash.filter(s=>s!==n)})},[k,m]),se=i.useCallback(()=>{m({...k,cabinetOpen:!k.cabinetOpen})},[k,m]),ie=i.useCallback(()=>{m({...k,trashOpen:!k.trashOpen})},[k,m]),ye=i.useCallback(n=>{m({...k,trash:k.trash.filter(s=>s!==n),permanentlyHidden:[...new Set([...k.permanentlyHidden,n])]})},[k,m]),Y=i.useCallback((n,s)=>{const c=w.width,C=w.height,$=c/2,P=C/2;if(n.kind==="goal")return{x:$-220,y:90,z:5,rotation:-1.2};if(n.kind==="document")return{x:$-240,y:P-220,z:4,rotation:.4};if(n.kind==="cost")return{x:c-130,y:90,z:6,rotation:2};if(n.kind==="clock")return{x:c-440,y:C-240,z:7,rotation:-1.5};if(n.kind==="cabinet")return{x:30,y:C-280,z:3,rotation:0};if(n.kind==="trash")return{x:c-130,y:C-220,z:13,rotation:0};if(n.kind==="question")return{x:$+120,y:200,z:30,rotation:-3};if(n.kind==="agent"){const N=s.filter(F=>F.kind==="agent").findIndex(F=>F.id===n.id),D=N%2,B=Math.floor(N/2);return{x:c-280+D*20,y:200+B*180+D*30,z:10+N,rotation:(N%2===0?-1:1)*(1.5+N*.5)}}if(n.kind==="file"){const N=s.filter(F=>F.kind==="file").findIndex(F=>F.id===n.id),D=N%2,B=Math.floor(N/2);return{x:60+D*30,y:180+B*180+D*25,z:8+N,rotation:(N%2===0?1:-1)*(2+N*.3)}}if(n.kind==="fact"){const N=s.filter(F=>F.kind==="fact").findIndex(F=>F.id===n.id),D=N%3,B=Math.floor(N/3);return{x:$-160+D*100+(B%2===0?0:25),y:C-280+B*80,z:12+N,rotation:(N%2===0?-1:1)*(4+N*.7)}}if(n.kind==="activity"){const N=s.filter(Z=>Z.kind==="activity").findIndex(Z=>Z.id===n.id),D=Math.max(4,Math.floor((c-120)/180)),B=N%D,F=Math.floor(N/D);return{x:40+B*180+(F%2===0?0:40),y:C-200-F*110,z:14+N,rotation:(N%2===0?-1:1)*(2+N*.3)}}return{x:100,y:100,z:1,rotation:0}},[w]),oe=i.useCallback(n=>S[n.id]??Y(n,O),[S,O,Y]),q=i.useCallback((n,s)=>{const c={...S,[n]:s};z(c)},[S,z]),ke=i.useCallback(n=>{const s=Math.max(0,...O.map(C=>(S[C.id]??Y(C,O)).z)),c=S[n]??Y(O.find(C=>C.id===n),O);c.z>=s||q(n,{...c,z:s+1})},[O,S,Y,q]),we=i.useCallback(()=>{t&&z({})},[t,z]),je=i.useCallback((n,s,c)=>{m({...k,cabinet:k.cabinet.filter(D=>D!==n),trash:k.trash.filter(D=>D!==n)});const C=Math.max(0,...O.map(D=>(S[D.id]??Y(D,O)).z)),$=S[n],P=($==null?void 0:$.rotation)??Math.random()*6-3,N=T(s,c);q(n,{x:N.x-80,y:N.y-20,z:C+1,rotation:P})},[k,m,O,S,Y,q,T]);if(u)return e.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-sm",style:{background:"var(--theme-bg-base, #3a2a1c)",color:"var(--theme-paper-fg, #f3e9d0)"},children:"Setting the desk…"});if(p||!r)return e.jsxs("div",{className:"absolute inset-0 flex items-center justify-center flex-col gap-3",style:{background:"var(--theme-bg-base, #3a2a1c)"},children:[e.jsx("div",{className:"text-[#ffb4a2] text-sm",children:p??"Mission not found."}),e.jsx("button",{onClick:()=>a("/mission"),className:"text-sm hover:underline",style:{color:"var(--theme-paper-fg, #f3e9d0)"},children:"← Start a new mission"})]});const{working:le,blocked:de}=pe(r);return e.jsxs("div",{ref:h,className:"absolute inset-0 overflow-hidden font-sans",style:{...ct,color:"var(--theme-paper-fg, #f3e9d0)",fontFamily:"var(--theme-font-display, ui-sans-serif, system-ui)"},children:[e.jsx("div",{className:"pointer-events-none absolute inset-0",style:ut}),e.jsx("div",{className:"pointer-events-none absolute inset-0",style:xt}),e.jsxs("header",{className:"relative z-30 flex flex-wrap items-center justify-between gap-3 px-4 py-3 sm:px-5 sm:py-3.5",children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-3",children:[e.jsx("button",{onClick:()=>a("/mission"),className:"hover:text-white text-sm",style:{color:"var(--theme-metal-bright, #e7d6a8)"},title:"New mission",children:"←"}),e.jsx("button",{onClick:()=>a("/mission/library"),className:"text-[10px] uppercase tracking-widest hover:text-white rounded-full px-2 py-0.5",style:{color:"var(--theme-ink-soft, #d9c08c)",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))"},title:"Browse past missions",children:"Library"}),e.jsx("button",{onClick:()=>a("/space/home"),className:"text-[10px] uppercase tracking-widest hover:text-white rounded-full px-2 py-0.5 inline-flex items-center gap-1",style:{color:"var(--theme-ink-soft, #d9c08c)",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))"},title:"Back to the canvas spaces",children:"🌌 Canvas"}),e.jsxs("div",{className:"min-w-0 font-semibold tracking-tight",style:{color:"var(--theme-paper-fg, #f3e9d0)"},children:[e.jsx("span",{style:{background:"linear-gradient(90deg, var(--theme-metal-bright, #f3d27a), var(--theme-metal, #d8a85a))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"TITAN"}),e.jsx("span",{className:"font-normal",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:"  ›  "}),e.jsx("span",{className:"font-normal",style:{color:"var(--theme-metal-bright, #e7d6a8)"},children:"Desk"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center justify-start gap-2 sm:justify-end",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs",style:{background:"var(--theme-leather, rgba(42,29,17,0.7))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))"},children:[e.jsx("span",{className:`w-2 h-2 rounded-full ${de>0?"bg-error animate-pulse":le>0?"bg-accent animate-pulse":"bg-success"}`}),e.jsx("span",{style:{color:"var(--theme-metal-bright, #e7d6a8)"},children:mt(r.status,le,de)})]}),r.longRunningMode&&e.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold",style:{background:"linear-gradient(90deg, rgba(245,210,122,0.18), rgba(176,138,58,0.18))",border:"1px solid var(--theme-metal-dark, #b08a3a)",color:"var(--theme-metal-bright, #ffd86e)"},title:"Marathon mode — long-running multi-agent collaboration (72h cap)",children:"🏃 Marathon"}),e.jsx("button",{onClick:we,className:"px-3 py-1.5 text-xs rounded-full hover:text-white",style:{background:"var(--theme-leather, rgba(42,29,17,0.7))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))",color:"var(--theme-metal-bright, #e7d6a8)"},title:"Reset every item to a sensible starting position",children:"Tidy up"}),e.jsx("button",{onClick:()=>a(`/mission/${r.id}`),className:"px-3 py-1.5 text-xs rounded-full hover:text-white",style:{background:"var(--theme-leather, rgba(42,29,17,0.7))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))",color:"var(--theme-metal-bright, #e7d6a8)"},title:"Switch to the chat thread view",children:"Chat view"}),e.jsx("button",{onClick:ge,className:"px-3 py-1.5 text-xs rounded-full hover:text-white",style:{background:"var(--theme-leather, rgba(42,29,17,0.7))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))",color:"var(--theme-metal-bright, #e7d6a8)"},children:r.status==="paused"?"Resume":"Pause"}),e.jsx("button",{onClick:be,className:"px-3 py-1.5 text-xs rounded-full hover:text-[#ff9c9c] hover:border-[#ff9c9c]/50 transition-colors",style:{background:"var(--theme-leather, rgba(42,29,17,0.7))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))",color:"var(--theme-ink-soft, #d9c08c)"},title:"Delete this mission",children:"🗑 Delete"}),e.jsx("button",{onClick:()=>f(n=>!n),className:"w-8 h-8 rounded-full hover:text-white font-semibold text-sm flex items-center justify-center",style:{background:"var(--theme-leather, rgba(42,29,17,0.7))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))",color:"var(--theme-metal-bright, #e7d6a8)"},title:"What's this?",children:"?"})]})]}),e.jsx(ft,{items:O,room:r,poseOf:oe,isHidden:ne}),e.jsx("div",{className:"absolute inset-0 z-10 pointer-events-none",children:O.map(n=>{if(ne(n.id))return null;const s=oe(n),c=n.kind==="agent",C=n.kind==="file"||n.kind==="fact"||n.kind==="activity";return e.jsx(Ke,{pose:s,onGrab:()=>ke(n.id),onPose:$=>q(n.id,$),onClick:c?($,P)=>G({agentId:n.ref,anchor:M($,P)}):void 0,onDrop:C?$=>ve(n.id,$):void 0,children:e.jsx(Xe,{item:n,room:r,openQuestion:K,fileSources:X,factSources:U,activityStickies:_,furniture:k,onOpenCabinet:se,onOpenTrash:ie,onOpenFile:te,onAnswer:me})},n.id)})}),k.cabinetOpen&&e.jsx(lt,{itemIds:k.cabinet,items:O,fileSources:X,factSources:U,activityStickies:_,onRestore:re,onRestoreAt:je,onOpenFile:te,onClose:se}),k.trashOpen&&e.jsx(dt,{itemIds:k.trash,items:O,fileSources:X,factSources:U,activityStickies:_,onRestore:re,onDeleteForever:ye,onClose:ie}),I&&(()=>{const n=r.team.find(c=>c.agentId===I.agentId);if(!n)return null;const s=L.map(c=>({id:c.id,label:c.name,provider:c.provider}));return e.jsx(Le,{member:n,room:r,anchor:I.anchor,availableModels:s,onClose:()=>G(null)})})(),e.jsxs("footer",{className:"absolute left-0 right-0 bottom-0 z-30 px-3 pb-12 pt-3 sm:px-5 md:pb-8 flex flex-col gap-2",style:{background:"linear-gradient(to top, var(--theme-leather-edge, rgba(29,19,10,0.95)), transparent)"},children:[e.jsxs("div",{className:"flex max-h-24 flex-wrap items-center gap-2 overflow-y-auto pr-1 max-w-5xl mx-auto w-full sm:max-h-none sm:overflow-visible sm:pr-0",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-widest",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:"quick steer"}),Ie.map(n=>e.jsx("button",{onClick:()=>ae(n.cmd),disabled:x,title:n.hint,className:"px-2.5 py-1 text-[11px] rounded-full hover:text-white disabled:opacity-50",style:{color:"var(--theme-metal-bright, #e7d6a8)",background:"var(--theme-leather, rgba(42,29,17,0.7))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))"},children:n.label},n.cmd))]}),e.jsx("div",{className:"flex items-center gap-3 max-w-5xl mx-auto w-full",children:e.jsxs("form",{onSubmit:n=>{n.preventDefault(),ae(y)},className:"min-w-0 flex-1 h-11 flex items-center gap-2.5 px-3.5 rounded-full",style:{background:"var(--theme-leather, rgba(42,29,17,0.8))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))"},children:[e.jsx("input",{value:y,onChange:n=>v(n.target.value),placeholder:'Tell the team — "Add a one-line risk note at the top"',className:"min-w-0 flex-1 bg-transparent outline-none text-sm placeholder:text-[#d9c08c]/50",style:{color:"var(--theme-paper-fg, #f3e9d0)"}}),e.jsx("span",{className:"px-2 py-1 text-[10px] uppercase tracking-widest rounded",style:{color:"var(--theme-ink-soft, #d9c08c)",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))"},children:"↵"})]})}),e.jsx("div",{className:"max-w-5xl mx-auto w-full text-center text-[11px] italic",style:{color:"var(--theme-ink-soft, #d9c08c)",opacity:.7},children:"Your team works independently, but asks before risky or sensitive changes."})]}),V&&e.jsx(Ee,{state:V,onClose:()=>J(null)}),l&&e.jsxs("div",{className:"absolute left-4 right-4 top-20 z-40 rounded-xl p-4 backdrop-blur-xl shadow-2xl sm:left-auto sm:right-5 sm:w-80",style:{background:"var(--theme-leather, rgba(42,29,17,0.95))",border:"1px solid var(--theme-metal-dark, rgba(138,106,58,0.6))"},children:[e.jsx("button",{onClick:()=>f(!1),className:"absolute top-3 right-3 hover:text-white text-sm",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:"✕"}),e.jsx("h3",{className:"font-semibold text-sm mb-2",style:{color:"var(--theme-paper-fg, #f3e9d0)"},children:"The desk"}),e.jsxs("p",{className:"text-xs leading-relaxed mb-3",style:{color:"var(--theme-metal-bright, #e7d6a8)"},children:["Everything the team produces lands on this desk as a physical object. Drag anything anywhere. ",e.jsx("b",{children:"Tidy up"})," resets the layout if it gets cluttered."]}),e.jsxs("ul",{className:"space-y-2 text-xs",style:{color:"var(--theme-metal-bright, #e7d6a8)"},children:[e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{children:"📜"}),e.jsxs("span",{children:[e.jsx("b",{className:"text-white",children:"Leather placard"})," — your mission goal."]})]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{children:"📄"}),e.jsxs("span",{children:[e.jsx("b",{className:"text-white",children:"Paper sheets"})," — files the team wrote. Double-click to open."]})]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{children:"👤"}),e.jsxs("span",{children:[e.jsx("b",{className:"text-white",children:"Index cards"})," — each AI helper, showing what they're doing now."]})]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{children:"💡"}),e.jsxs("span",{children:[e.jsx("b",{className:"text-white",children:"Sticky notes"})," — facts the team picked up while working."]})]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{children:"📕"}),e.jsxs("span",{children:[e.jsx("b",{className:"text-white",children:"Pink card"})," — a question waiting on you."]})]})]})]}),e.jsx("style",{children:ht})]})}function Ke({pose:t,onGrab:a,onPose:r,onClick:o,onDrop:u,children:g}){const[p,d]=i.useState(null),y=p?{x:p.x,y:p.y}:{x:t.x,y:t.y},v=i.useCallback(x=>{if(x.pointerType==="mouse"&&x.button!==0||x.target.closest("[data-no-drag]"))return;x.preventDefault(),a();const l=x.currentTarget,f=x.clientX,h=x.clientY,w=x.pointerId,j=t.x,A=t.y;d({dx:0,dy:0,x:j,y:A});try{l.setPointerCapture(w)}catch{}const T=S=>{if(S.pointerId!==w)return;const E=S.clientX-f,z=S.clientY-h;d({dx:E,dy:z,x:j+E,y:A+z})},M=S=>{if(S.pointerId!==w)return;const E=S.clientX-f,z=S.clientY-h;window.removeEventListener("pointermove",T),window.removeEventListener("pointerup",M),window.removeEventListener("pointercancel",M);try{l.releasePointerCapture(w)}catch{}const k=j+E,R=A+z;if(d(null),!(Math.abs(E)>4||Math.abs(z)>4)){o&&o(S.clientX,S.clientY);return}if(u){const L=document.elementsFromPoint(S.clientX,S.clientY);for(const W of L){const I=W.closest("[data-drop-target]");if(!I||I.contains(l))continue;const G=I.getAttribute("data-drop-target");if(G){if(u(G)!==!1)return;break}}}r({...t,x:k,y:R})};window.addEventListener("pointermove",T),window.addEventListener("pointerup",M),window.addEventListener("pointercancel",M)},[t,a,r,o,u]);return e.jsx("div",{onPointerDown:v,className:"absolute select-none pointer-events-auto cursor-grab touch-none active:cursor-grabbing",style:{left:y.x,top:y.y,zIndex:p?999:t.z,transform:`rotate(${t.rotation}deg) ${p?"scale(1.03)":""}`,transition:p?"transform 80ms ease-out":"transform 200ms ease-out",filter:p?"drop-shadow(0 22px 32px rgba(0,0,0,0.55))":"drop-shadow(0 6px 14px rgba(0,0,0,0.42))",willChange:p?"left, top":void 0},children:g})}function Xe({item:t,room:a,openQuestion:r,fileSources:o,factSources:u,activityStickies:g,furniture:p,onOpenCabinet:d,onOpenTrash:y,onOpenFile:v,onAnswer:x}){if(t.kind==="goal")return e.jsx(_e,{goal:a.goal,status:a.status});if(t.kind==="document")return e.jsx(Ue,{room:a});if(t.kind==="cost")return e.jsx(Je,{room:a});if(t.kind==="clock")return e.jsx(Ve,{room:a});if(t.kind==="cabinet")return e.jsx(it,{count:p.cabinet.length,onOpen:d});if(t.kind==="trash")return e.jsx(ot,{count:p.trash.length,onOpen:y});if(t.kind==="agent"){const b=a.team.find(l=>l.agentId===t.ref);return b?e.jsx(Qe,{member:b}):null}if(t.kind==="file"){const b=o.find(l=>l.ref===t.ref);return b?e.jsx(tt,{file:b,onOpen:()=>v(b.ref)}):null}if(t.kind==="fact"){const b=u.find(l=>l.ref===t.ref);return b?e.jsx(at,{fact:b}):null}if(t.kind==="activity"){const b=g.find(l=>l.id===t.ref);return b?e.jsx(nt,{sticky:b}):null}return t.kind==="question"&&r?e.jsx(st,{msg:r,onAnswer:b=>x(r.approvalId,b)}):null}function _e({goal:t,status:a}){const r={forming:{text:"forming the team…",dotColor:"#c4a14a",dotGlow:"#c4a14a"},working:{text:"in progress — TITAN",dotColor:"#8ed1ff",dotGlow:"#8ed1ff"},paused:{text:"paused — your call",dotColor:"#d9c08c",dotGlow:"#d9c08c"},blocked:{text:"needs your input",dotColor:"#ff9c9c",dotGlow:"#ff9c9c"},done:{text:"complete · signed off",dotColor:"#22c55e",dotGlow:"#22c55e"},failed:{text:"stopped — see chat",dotColor:"#ef4444",dotGlow:"#ef4444"}},o=r[a]??r.working;return e.jsxs("div",{className:"w-[420px] px-5 py-4 relative",style:{background:"linear-gradient(140deg, var(--theme-leather, #6b2c2a) 0%, var(--theme-leather-edge, #4a1816) 60%, var(--theme-bolt, #3b110f) 100%)",border:"1px solid var(--theme-bolt, #2a0908)",borderRadius:10,boxShadow:"inset 0 0 24px var(--theme-shadow, rgba(0,0,0,0.5)), 0 0 0 4px rgba(0,0,0,0.08), 0 0 32px color-mix(in srgb, var(--theme-accent, #c45a30) 28%, transparent)",backgroundBlendMode:"multiply",color:"var(--theme-paper-fg, #f3e9d0)"},children:[e.jsx("div",{className:"text-[10px] uppercase mb-1.5",style:{letterSpacing:"0.16em",color:"var(--theme-ink-soft, #d9c08c)",fontWeight:600},children:"Active Mission"}),e.jsx("div",{className:"leading-snug font-semibold tracking-tight",style:{fontSize:22,color:"var(--theme-paper-fg, #f3e9d0)"},children:t}),e.jsxs("div",{className:"mt-2 flex items-center gap-2 text-[10px] uppercase tracking-widest",style:{color:"var(--theme-ink-soft, rgba(217,192,140,0.7))"},children:[e.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${a==="working"||a==="blocked"||a==="forming"?"animate-pulse":""}`,style:{background:o.dotColor,boxShadow:`0 0 6px ${o.dotGlow}`}}),e.jsx("span",{children:o.text})]})]})}function Ue({room:t}){var v;const a=((v=t.artifact)==null?void 0:v.content)??"",r=i.useRef(a.length),[o,u]=i.useState(!1);i.useEffect(()=>{if(a.length>r.current){u(!0);const x=setTimeout(()=>u(!1),2e3);return r.current=a.length,()=>clearTimeout(x)}r.current=a.length},[a]);const g=i.useMemo(()=>a.split(`
6
- `).filter(b=>b.trim().length>0).slice(0,10),[a]),p=a.trim().split(/\s+/).filter(Boolean).length,d=t.team.some(x=>x.state==="working"||x.state==="editing"),y=d&&t.team.some(x=>(x.state==="working"||x.state==="editing")&&(x.name.toLowerCase().includes("analyst")||(x.role??"").toLowerCase().includes("analyst")));return e.jsxs("div",{className:"w-[620px] max-w-[92vw] rounded-md p-8 pt-7 relative",style:{background:"var(--theme-paper, #f7f5ee)",color:"var(--theme-ink, #1a1f2e)",fontFamily:'var(--theme-font-display, "Iowan Old Style", "Charter", "Georgia", serif)',backgroundImage:"repeating-linear-gradient(180deg, transparent 0 26px, var(--theme-paper-line, #d8d3c2) 26px 27px)",backgroundPosition:"0 56px",boxShadow:"0 18px 40px var(--theme-shadow, rgba(0,0,0,0.45)), 0 6px 14px var(--theme-shadow, rgba(0,0,0,0.35)), 0 0 0 1px color-mix(in srgb, var(--theme-accent, #c45a30) 12%, transparent)"},children:[e.jsx("h1",{className:"text-[22px] font-semibold tracking-tight leading-tight mb-1",children:bt(t.goal,70)}),e.jsxs("div",{className:"text-[11px] uppercase tracking-widest mb-4 flex items-center gap-2",style:{color:"var(--theme-ink-soft, #8a8472)"},children:[e.jsxs("span",{children:["Draft · ",p," words · ",gt(t.status)]}),o&&d&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full animate-pulse",style:{background:"var(--theme-accent, #c4a35a)"}}),e.jsx("span",{className:"text-[10px] italic",children:"Writing…"})]})]}),g.length>0?e.jsx("div",{className:"text-[14px] leading-[1.6] space-y-3",children:g.map((x,b)=>e.jsxs("p",{children:[x,o&&d&&b===g.length-1&&e.jsx("span",{className:"inline-block w-0.5 h-3.5 ml-0.5 align-middle animate-pulse",style:{background:"var(--theme-accent, #c4a35a)"}})]},b))}):e.jsx("div",{className:"text-[12px] italic py-6 text-center",style:{color:"var(--theme-ink-soft, #8a8472)"},children:"The team is just getting started — your document fills in as they work."}),y&&e.jsx(qe,{})]})}function qe(){return e.jsxs("div",{className:"mt-5 pt-4",style:{borderTop:"1px dashed var(--theme-paper-line, #d8d3c2)"},children:[e.jsxs("svg",{viewBox:"0 0 320 110",className:"w-full h-[110px]","aria-hidden":!0,style:{overflow:"visible"},children:[e.jsx("line",{x1:"22",y1:"6",x2:"22",y2:"92",stroke:"var(--theme-ink-soft, #8a8472)",strokeWidth:"1",opacity:"0.5"}),e.jsx("line",{x1:"22",y1:"92",x2:"312",y2:"92",stroke:"var(--theme-ink-soft, #8a8472)",strokeWidth:"1",opacity:"0.5"}),[20,44,68].map(t=>e.jsx("line",{x1:"18",y1:t,x2:"22",y2:t,stroke:"var(--theme-ink-soft, #8a8472)",strokeWidth:"1",opacity:"0.35"},t)),[{x:40,h:52},{x:82,h:68},{x:124,h:32},{x:166,h:78},{x:208,h:46},{x:250,h:62},{x:292,h:40}].map((t,a)=>e.jsx("rect",{x:t.x-12,y:92-t.h,width:24,height:t.h,fill:"none",stroke:"var(--theme-accent, #c45a30)",strokeWidth:"1.5",strokeDasharray:"4 3",opacity:"0.55",style:{animation:"tetherFlow 2.4s linear infinite"}},a))]}),e.jsx("div",{className:"text-[11px] italic mt-1 text-center",style:{color:"var(--theme-ink-soft, #8a8472)"},children:"Analyst computing…"})]})}function Je({room:t}){return e.jsxs("div",{className:"w-[110px] h-[110px] rounded-full flex flex-col items-center justify-center",style:{background:"radial-gradient(circle at 35% 30%, var(--theme-leather, #2b1a14) 0%, var(--theme-leather-edge, #1a0e08) 70%)",boxShadow:"inset 0 0 18px var(--theme-shadow, rgba(0,0,0,0.6)), 0 0 0 5px var(--theme-metal-dark, #6e4a26), 0 0 0 6px var(--theme-bolt, #382213)",color:"var(--theme-paper-fg, #f3e9d0)"},title:"Tokens + dollars spent this mission",children:[e.jsx("span",{className:"text-[9px] uppercase tracking-widest",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:"spent"}),e.jsxs("span",{className:"text-[20px] font-bold tabular-nums",children:["$",t.cost.usd.toFixed(2)]}),e.jsxs("span",{className:"text-[9px] tabular-nums",style:{color:"var(--theme-ink-soft, rgba(217,192,140,0.8))"},children:[(t.cost.tokens/1e3).toFixed(1),"k tok"]})]})}function Ve({room:t}){const[a,r]=i.useState(()=>new Date);i.useEffect(()=>{const f=setInterval(()=>r(new Date),1e3);return()=>clearInterval(f)},[]);const o=String(a.getHours()).padStart(2,"0"),u=String(a.getMinutes()).padStart(2,"0"),g=String(a.getSeconds()).padStart(2,"0"),p=i.useMemo(()=>{try{const f=new Intl.DateTimeFormat(void 0,{timeZoneName:"short"}).formatToParts(new Date).find(h=>h.type==="timeZoneName");return(f==null?void 0:f.value)??""}catch{return""}},[]),d=i.useMemo(()=>new Date(t.createdAt).getTime(),[t.createdAt]),y=t.status==="paused"||t.status==="done"||t.status==="failed",v=y?Math.max(0,new Date(t.updatedAt).getTime()-d):Math.max(0,a.getTime()-d),x=Ze(v),{working:b,blocked:l}=pe(t);return e.jsxs("div",{className:"w-[260px] p-4 pb-3",style:{background:"radial-gradient(ellipse at 30% 25%, var(--theme-leather, #4a2e18) 0%, var(--theme-bolt, #2a1808) 75%, var(--theme-leather-edge, #1a0e04) 100%)",borderRadius:14,boxShadow:"0 0 0 3px var(--theme-metal-dark, #b08a3a), 0 0 0 5px var(--theme-bolt, #5a3a14), 0 12px 22px var(--theme-shadow, rgba(0,0,0,0.5)), inset 0 0 16px rgba(0,0,0,0.6)",color:"var(--theme-metal-bright, #f5d27a)"},children:[e.jsxs("div",{className:"text-[9px] uppercase tracking-[0.28em] text-center mb-1.5",style:{color:"var(--theme-metal, #c4a14a)"},children:["TITAN",p?" · "+p:""]}),e.jsxs("div",{className:"flex items-baseline justify-center gap-1 mb-1",style:{fontFamily:'"DSEG7 Classic", "Orbitron", "Menlo", monospace',textShadow:"0 0 10px rgba(245,210,122,0.65), 0 0 22px rgba(245,210,122,0.35)"},children:[e.jsx(xe,{value:o}),e.jsx("span",{className:"text-[28px] font-bold opacity-80 -translate-y-0.5 animate-pulse",children:":"}),e.jsx(xe,{value:u}),e.jsx("span",{className:"text-[20px] font-bold opacity-60 -translate-y-0.5",children:":"}),e.jsx("span",{className:"text-[24px] font-bold opacity-80 tabular-nums",children:g})]}),e.jsxs("div",{className:"text-center text-[10px] uppercase tracking-[0.22em] mb-1.5",style:{fontFamily:"system-ui",color:"var(--theme-metal, rgba(196,161,74,0.85))"},children:["Mission · ",x.hh,":",x.mm,":",x.ss,y&&e.jsxs("span",{className:"ml-1.5",style:{color:"var(--theme-ink-soft, rgba(217,192,140,0.7))"},children:["· ",t.status]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-3 pt-2",style:{fontFamily:"system-ui",borderTop:"1px solid var(--theme-bolt, rgba(90,58,20,0.6))"},children:[e.jsx(Q,{n:b,label:"working",tone:"accent"}),e.jsx(Q,{n:l,label:l===1?"needs you":"need you",tone:"warn"}),e.jsx(Q,{n:t.team.length,label:"on team",tone:"muted"})]})]})}function xe({value:t}){return e.jsx("span",{className:"text-[34px] font-bold tabular-nums leading-none",children:t})}function Q({n:t,label:a,tone:r}){const o=r==="accent"?"#8ed1ff":r==="warn"?"#ff9c9c":"var(--theme-metal, #c4a14a)";return e.jsxs("div",{className:"flex flex-col items-center leading-tight",children:[e.jsx("span",{className:"text-[18px] font-bold tabular-nums",style:{color:o},children:t}),e.jsx("span",{className:"text-[9px] uppercase tracking-widest",style:{color:"var(--theme-metal, rgba(196,161,74,0.8))"},children:a})]})}function Ze(t){const a=Math.floor(t/1e3),r=String(Math.floor(a/3600)).padStart(2,"0"),o=String(Math.floor(a%3600/60)).padStart(2,"0"),u=String(a%60).padStart(2,"0");return{hh:r,mm:o,ss:u}}function Qe({member:t}){const a=t.state==="blocked",r=t.state==="editing",o=t.state==="working",u=t.state==="done",g=o||r,p=et(t.color,a),d=g?`${t.agentId.charCodeAt(0)%10*.34}s`:"0s",y=a?"stickyBreatheUrgent 1.2s ease-in-out infinite":o?"stickyBreathe 1.8s ease-in-out infinite":r?"stickyBreathe 2.4s ease-in-out infinite":"none",v=u?.65:1,x=kt(t.state),b=t.currentActivity??(u?"wrapped up":a?"awaiting your call":"standing by");return e.jsxs("div",{className:"w-[220px] p-3.5 pt-5 text-[#2a2418] relative",style:{background:p,boxShadow:"0 1px 0 rgba(255,255,255,0.55) inset, 0 12px 18px rgba(0,0,0,0.42)",fontFamily:'"Bradley Hand", "Marker Felt", "Comic Sans MS", cursive',animation:y,animationDelay:d,opacity:v,transition:"opacity 400ms ease-out"},children:[e.jsx("div",{className:"absolute -top-1.5 left-1/2 -translate-x-1/2 w-20 h-4 opacity-70 pointer-events-none",style:{background:"linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.25))",boxShadow:"0 1px 2px rgba(0,0,0,0.15)"}}),e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-md flex items-center justify-center text-white font-bold text-[13px]",style:{background:`linear-gradient(135deg, ${t.color}, ${wt(t.color,-25)})`,boxShadow:`0 2px 6px ${t.color}55`,fontFamily:"system-ui"},children:t.name[0]}),e.jsxs("div",{className:"leading-tight",children:[e.jsx("div",{className:"font-semibold text-[15px] text-[#2a2418]",children:t.name}),e.jsx("div",{className:"text-[10px] uppercase tracking-widest text-[#6b5a3a]",style:{fontFamily:"system-ui"},children:t.role})]}),e.jsxs("div",{className:"ml-auto flex items-center gap-1 text-[10px] text-[#6b5a3a]",style:{fontFamily:"system-ui"},children:[u?e.jsx("span",{className:"text-[12px] leading-none","aria-label":"done",children:"✓"}):e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${vt(t.state)}`,style:{boxShadow:`0 0 6px ${yt(t.state)}`}}),e.jsx("span",{children:x})]})]}),e.jsx("div",{className:"text-[14px] text-[#2a2418] leading-snug min-h-[2.4rem] break-words",children:t.currentActivity??e.jsx("span",{className:"italic text-[#6b5a3a]",children:b})}),(g||a)&&e.jsx("div",{className:"absolute -inset-1 -z-10 pointer-events-none rounded-[2px] blur-md",style:{background:a?"radial-gradient(circle at 50% 50%, rgba(239,68,68,0.6), transparent 70%)":`radial-gradient(circle at 30% 30%, ${t.color}55, transparent 70%)`,animation:a?"deskAlarm 1.2s ease-in-out infinite":"deskGlow 4.2s ease-in-out infinite"}})]})}function et(t,a){if(a)return"linear-gradient(165deg, #ffd6d6 0%, #ffbaba 100%), linear-gradient(45deg, transparent 49%, rgba(0,0,0,0.04) 49% 51%, transparent 51%)";const r=t.toLowerCase();return r.includes("6366f1")||r.includes("8b5cf6")?"linear-gradient(160deg, #e7e1ff 0%, #cfc4ff 100%)":r.includes("22c55e")||r.includes("10b981")?"linear-gradient(160deg, #d9f7d9 0%, #b8edb8 100%)":r.includes("f59e0b")||r.includes("eab308")?"linear-gradient(160deg, #fff2a8 0%, #ffe88a 100%)":r.includes("ef4444")||r.includes("f97316")?"linear-gradient(160deg, #ffd6c2 0%, #ffbf9e 100%)":r.includes("06b6d4")||r.includes("0ea5e9")?"linear-gradient(160deg, #cef3f7 0%, #a8e4ec 100%)":"linear-gradient(160deg, #fff2a8 0%, #ffe88a 100%)"}function tt({file:t,onOpen:a}){const r=i.useMemo(()=>{const o=t.ref.lastIndexOf("/");return o>=0?t.ref.slice(o+1):t.ref},[t.ref]);return e.jsxs("div",{onDoubleClick:a,title:"Double-click to open",className:"w-[200px] p-3",style:{background:"linear-gradient(170deg, var(--theme-paper, #fdfbf3) 0%, var(--theme-paper, #f1eada) 100%)",color:"var(--theme-ink, #1a1f2e)",borderRadius:4,boxShadow:"0 1px 0 rgba(255,255,255,0.6) inset, 0 0 0 1px rgba(0,0,0,0.06)"},children:[e.jsx("div",{className:"absolute top-0 right-0 w-4 h-4",style:{background:"linear-gradient(225deg, var(--theme-paper-line, #d8cdb3) 0%, var(--theme-paper, #f1eada) 50%, transparent 50%)",borderBottomLeftRadius:4}}),e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx("span",{className:"text-base leading-none",children:t.type==="report"?"📊":"📄"}),e.jsx("span",{className:"text-[9px] uppercase tracking-widest",style:{color:"var(--theme-ink-soft, #8a8472)"},children:t.type})]}),e.jsx("div",{className:"font-semibold text-[12px] leading-tight break-words",style:{color:"var(--theme-ink, #1a1f2e)"},children:r}),t.description&&e.jsx("div",{className:"text-[10px] mt-1 leading-snug line-clamp-2",style:{color:"var(--theme-ink-soft, #5a5240)"},children:t.description}),e.jsx("button",{"data-no-drag":!0,onClick:a,className:"mt-2 w-full px-2 py-1 text-[10px] font-semibold uppercase tracking-widest rounded",style:{background:"var(--theme-ink, #1a1f2e)",color:"var(--theme-paper-fg, #f3e9d0)"},children:"Open ↗"})]})}function at({fact:t}){const a=t.description??t.ref;return e.jsxs("div",{className:"w-[160px] p-3",style:{background:"linear-gradient(160deg, var(--theme-sticky-yellow, #fff2a8) 0%, var(--theme-sticky-yellow, #ffe88a) 100%)",boxShadow:"0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 14px var(--theme-shadow, rgba(0,0,0,0.35))",fontFamily:'"Bradley Hand", "Comic Sans MS", cursive',color:"var(--theme-ink, #3a2e10)"},children:[e.jsx("div",{className:"absolute -top-2 left-1/2 -translate-x-1/2 w-12 h-3.5 opacity-60",style:{background:"linear-gradient(180deg, var(--theme-sticky-tape, rgba(255,255,255,0.65)), rgba(255,255,255,0.25))"}}),e.jsx("div",{className:"text-[12px] leading-snug",children:a})]})}function nt({sticky:t}){const a=rt(t.agentColor);return e.jsxs("div",{className:"w-[170px] p-2.5 relative",title:`${t.agentName} ${t.activity}${t.detail?": "+t.detail:""} · ${new Date(t.at).toLocaleTimeString()}`,style:{background:a,boxShadow:"0 1px 0 rgba(255,255,255,0.55) inset, 0 6px 10px var(--theme-shadow, rgba(0,0,0,0.32))",fontFamily:'"Bradley Hand", "Marker Felt", "Comic Sans MS", cursive',color:"var(--theme-ink, #2a2418)"},children:[e.jsx("div",{className:"absolute -top-1.5 left-1/2 -translate-x-1/2 w-10 h-3 opacity-60 pointer-events-none",style:{background:"linear-gradient(180deg, var(--theme-sticky-tape, rgba(255,255,255,0.7)), rgba(255,255,255,0.25))"}}),e.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[e.jsx("span",{className:"text-base leading-none",children:t.icon}),e.jsx("span",{className:"text-[10px] uppercase tracking-widest truncate",style:{fontFamily:"system-ui",color:"var(--theme-ink-soft, #6b5a3a)"},children:t.agentName})]}),e.jsx("div",{className:"text-[12px] leading-snug",children:t.activity}),t.detail&&e.jsx("div",{className:"text-[11px] mt-1 leading-snug break-words line-clamp-3",style:{color:"var(--theme-ink-soft, #5a4818)"},children:t.detail})]})}function rt(t){const a=t.toLowerCase();return a.includes("6366f1")||a.includes("8b5cf6")?"linear-gradient(160deg, #efeaff 0%, #e0d5ff 100%)":a.includes("22c55e")||a.includes("10b981")||a.includes("4adbb5")?"linear-gradient(160deg, #e7faea 0%, #cef0d4 100%)":a.includes("f59e0b")||a.includes("eab308")||a.includes("ff9a4a")?"linear-gradient(160deg, #fff8c8 0%, #ffefa3 100%)":a.includes("ef4444")||a.includes("f97316")||a.includes("ff5d6c")?"linear-gradient(160deg, #ffe2d4 0%, #ffcfba 100%)":a.includes("06b6d4")||a.includes("0ea5e9")||a.includes("6ea8ff")?"linear-gradient(160deg, #e0f5fa 0%, #c5e9f1 100%)":"linear-gradient(160deg, #fff8c8 0%, #ffefa3 100%)"}function st({msg:t,onAnswer:a}){const[r,o]=i.useState(!1),[u,g]=i.useState(""),p=i.useRef(null);return i.useEffect(()=>{r&&p.current&&p.current.focus()},[r]),e.jsxs("div",{className:"w-[300px] p-4 rounded-xl",style:{background:"linear-gradient(180deg, var(--theme-sticky-pink, #ffe9eb), var(--theme-sticky-pink, #ffd0d4))",boxShadow:"0 18px 36px rgba(255,93,108,0.45), 0 0 0 1.5px var(--theme-accent, rgba(196,90,48,0.6)), 0 0 0 4px rgba(255,93,108,0.12)",animation:"questionLift 4s ease-in-out infinite",color:"#5c1820",transform:"translateY(-10px)"},children:[e.jsx("div",{className:"absolute -top-2 -right-2 w-5 h-5 rounded-full",style:{background:"radial-gradient(circle at 35% 30%, var(--theme-metal-bright, #ffd86e) 0%, var(--theme-metal-dark, #b07a1a) 70%, var(--theme-bolt, #6a4710) 100%)",boxShadow:"0 2px 4px var(--theme-shadow, rgba(0,0,0,0.5))"}}),e.jsxs("div",{className:"text-[10px] uppercase mb-1.5",style:{letterSpacing:"0.16em",color:"rgba(92,24,32,0.7)",fontWeight:600},children:[t.from.name," asks"]}),e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 mb-2 bg-[#5c1820] text-[#ffd0d4] text-[10px] uppercase tracking-widest font-bold rounded-full",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"}),"TITAN paused — your call."]}),e.jsx("div",{className:"text-[13px] leading-snug",children:t.content}),r?e.jsxs("div",{className:"mt-3",children:[e.jsx("textarea",{ref:p,"data-no-drag":!0,value:u,onChange:d=>g(d.target.value),onKeyDown:d=>{if(d.key==="Enter"&&(d.metaKey||d.ctrlKey)){d.preventDefault();const y=u.trim();y&&a(y)}else d.key==="Escape"&&o(!1)},rows:2,placeholder:"Your answer…",className:"w-full bg-white/90 border border-[rgba(160,41,56,0.25)] rounded-lg p-2 text-[12px] text-[#5c1820] outline-none"}),e.jsxs("div",{className:"flex items-center justify-end gap-2 mt-1",children:[e.jsx("button",{"data-no-drag":!0,onClick:()=>o(!1),className:"text-[10px] text-[#5c1820]/70 hover:text-[#5c1820]",children:"cancel"}),e.jsx("button",{"data-no-drag":!0,onClick:()=>{const d=u.trim();d&&a(d)},disabled:!u.trim(),className:"px-2 py-0.5 rounded text-[11px] font-semibold disabled:opacity-50 text-[var(--theme-paper,#f3e9d0)] bg-[var(--theme-ink,#1a1f2e)]",children:"Send"})]})]}):e.jsxs("div",{className:"mt-3 flex flex-wrap gap-1.5",children:[t.quickReplies.map((d,y)=>e.jsx("button",{"data-no-drag":!0,onClick:()=>a(d),className:`px-2.5 py-1 rounded-lg text-[11px] font-semibold border ${y===t.quickReplies.length-1?"border-transparent text-[var(--theme-paper,#f3e9d0)] bg-[var(--theme-ink,#1a1f2e)]":"bg-white border-[rgba(160,41,56,0.25)] text-[#5c1820]"}`,children:d},d)),e.jsx("button",{"data-no-drag":!0,onClick:()=>o(!0),className:"px-2.5 py-1 rounded-lg text-[11px] font-medium underline underline-offset-2 text-[#5c1820]/80 hover:text-[#5c1820]",children:"or type…"})]})]})}function it({count:t,onOpen:a}){return e.jsxs("div",{"data-drop-target":"cabinet",className:"w-[140px] flex flex-col",style:{color:"var(--theme-metal-bright, #f5d27a)"},title:t>0?`${t} filed — click to open`:"Drop files & notes here",children:[e.jsx("button",{"data-no-drag":!0,onClick:a,className:"text-left flex flex-col gap-1 p-0 bg-transparent border-none",children:[0,1].map(r=>e.jsxs("div",{className:"relative w-full h-[58px] flex items-center justify-center",style:{background:"linear-gradient(180deg, var(--theme-leather, #5a3a18) 0%, var(--theme-leather-edge, #3a230b) 100%), repeating-linear-gradient(90deg, rgba(255,180,90,0.05) 0px, rgba(60,30,10,0.08) 2px)",border:"1px solid var(--theme-bolt, #2a1808)",boxShadow:"inset 0 -2px 0 rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.08) inset"},children:[e.jsx("div",{className:"px-3 py-0.5 text-[10px] uppercase tracking-widest font-bold",style:{background:"linear-gradient(180deg, var(--theme-metal-bright, #ffd86e) 0%, var(--theme-metal-dark, #b07a1a) 100%)",borderRadius:2,boxShadow:"0 1px 2px var(--theme-shadow, rgba(0,0,0,0.4))",color:"var(--theme-bolt, #3a2a10)"},children:r===0?"Files":"Drafts"}),e.jsx("div",{className:"absolute right-3 w-6 h-1.5 rounded",style:{background:"linear-gradient(180deg, var(--theme-metal-bright, #ffd86e) 0%, var(--theme-metal-dark, #8a5810) 100%)",boxShadow:"0 1px 2px var(--theme-shadow, rgba(0,0,0,0.5))"}})]},r))}),t>0&&e.jsxs("div",{className:"mt-1 text-center text-[10px] uppercase tracking-widest",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:[t," ",t===1?"item":"items"," inside"]})]})}function ot({count:t,onOpen:a}){const r=Math.min(t,6);return e.jsxs("button",{type:"button","data-drop-target":"trash","data-no-drag":!0,onClick:a,className:"relative w-[110px] h-[120px] p-0 bg-transparent border-none cursor-pointer",title:t>0?`${t} tossed — click to open the bin`:"Drop notes here to toss them",children:[e.jsx("div",{className:"absolute inset-x-3 top-3 bottom-12 flex flex-wrap gap-1 items-end justify-center overflow-hidden",children:Array.from({length:r}).map((o,u)=>e.jsx("div",{className:"rounded-full",style:{width:18+u*5%14,height:18+u*7%12,background:"radial-gradient(circle at 35% 30%, var(--theme-paper, #fffaee) 0%, var(--theme-paper-line, #d6cdb1) 70%, var(--theme-ink-soft, #a99b71) 100%)",boxShadow:"inset -2px -2px 4px rgba(0,0,0,0.18), 0 1px 2px var(--theme-shadow, rgba(0,0,0,0.3))",transform:`rotate(${u*37%60-30}deg)`}},u))}),e.jsx("div",{className:"absolute left-2 right-2 bottom-0 h-[80px] overflow-hidden",style:{clipPath:"polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%)",background:"repeating-linear-gradient(90deg, var(--theme-leather, #5a3a18) 0px, var(--theme-leather, #5a3a18) 2px, var(--theme-leather-edge, #3a230b) 2px, var(--theme-leather-edge, #3a230b) 4px),repeating-linear-gradient(0deg, transparent 0 6px, rgba(0,0,0,0.25) 6px 7px)",border:"1px solid var(--theme-bolt, #2a1808)",borderRadius:4,boxShadow:"inset 0 4px 8px var(--theme-shadow, rgba(0,0,0,0.5))"}}),e.jsx("div",{className:"absolute left-1 right-1 bottom-[78px] h-2.5 rounded-sm",style:{background:"linear-gradient(180deg, var(--theme-metal-dark, #6b4720) 0%, var(--theme-leather-edge, #3a230b) 100%)",border:"1px solid var(--theme-bolt, #1a0f05)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.1)"}}),t>0&&e.jsxs("div",{className:"absolute -bottom-5 left-1/2 -translate-x-1/2 text-[10px] uppercase tracking-widest whitespace-nowrap",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:[t," tossed"]})]})}function lt({itemIds:t,items:a,fileSources:r,factSources:o,activityStickies:u,onRestore:g,onRestoreAt:p,onOpenFile:d,onClose:y}){const[v,x]=i.useState(null);i.useEffect(()=>{if(!v)return;const l=h=>{x(w=>w?{...w,x:h.clientX,y:h.clientY}:null)},f=h=>{p(v.itemId,h.clientX,h.clientY),x(null)};return window.addEventListener("mousemove",l),window.addEventListener("mouseup",f),()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",f)}},[v,p]);function b(l,f,h,w){l.target.closest("[data-no-drag]")||(l.preventDefault(),x({itemId:f,label:h,icon:w,x:l.clientX,y:l.clientY}),y())}return e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm p-6",onClick:y,children:[e.jsxs("div",{className:"relative w-full max-w-2xl max-h-[80vh] flex flex-col rounded-2xl overflow-hidden",onClick:l=>l.stopPropagation(),style:{background:"linear-gradient(180deg, var(--theme-leather, #4a2e18) 0%, var(--theme-bolt, #2a1808) 100%)",boxShadow:"0 0 0 3px var(--theme-metal-dark, #b08a3a), 0 30px 60px var(--theme-shadow, rgba(0,0,0,0.6))",color:"var(--theme-metal-bright, #f5d27a)"},children:[e.jsxs("div",{className:"flex items-center gap-3 px-5 py-3",style:{borderBottom:"1px solid var(--theme-metal-dark, #6e4724)"},children:[e.jsx("span",{className:"text-2xl",children:"🗄️"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-sm font-semibold tracking-tight",children:"Filing cabinet"}),e.jsxs("div",{className:"text-[11px]",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:[t.length," item",t.length===1?"":"s"," filed · drag a row out, or click ",e.jsx("b",{children:"to desk"})]})]}),e.jsx("button",{"data-no-drag":!0,onClick:y,className:"w-8 h-8 rounded-full hover:text-white flex items-center justify-center",style:{background:"var(--theme-leather-edge, #1a0f05)",border:"1px solid var(--theme-metal-dark, #6e4724)",color:"var(--theme-ink-soft, #d9c08c)"},children:"✕"})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 flex flex-col gap-2",children:[t.length===0&&e.jsx("div",{className:"text-center py-12 italic",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:"Nothing filed yet. Drag a file or sticky note onto the cabinet to file it."}),t.map(l=>{const f=a.find(M=>M.id===l);if(!f)return e.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-lg",style:{background:"var(--theme-leather-edge, rgba(26,15,5,0.4))",border:"1px solid var(--theme-metal-dark, rgba(110,71,36,0.5))",color:"var(--theme-ink-soft, rgba(217,192,140,0.7))"},children:[e.jsxs("span",{className:"text-xs italic",children:[l," (no longer in mission)"]}),e.jsx("button",{"data-no-drag":!0,onClick:()=>g(l),className:"text-[11px] hover:text-white",children:"remove"})]},l);const h=f.kind==="file"?r.find(M=>M.ref===f.ref):void 0,w=f.kind==="fact"?o.find(M=>M.ref===f.ref):void 0,j=f.kind==="activity"?u.find(M=>M.id===f.ref):void 0,A=h?h.type==="report"?"📊":"📄":w?"💡":j?j.icon:"📌",T=(h==null?void 0:h.ref)??(w==null?void 0:w.ref)??(j?`${j.agentName} · ${j.activity}`:l);return e.jsxs("div",{onMouseDown:M=>b(M,l,T,A),className:"flex items-center gap-3 px-3 py-2 rounded-lg transition-colors cursor-grab active:cursor-grabbing",style:{background:"var(--theme-leather-edge, rgba(26,15,5,0.4))",border:"1px solid var(--theme-metal-dark, rgba(110,71,36,0.5))"},title:"Drag out to place on the desk, or use the buttons →",children:[e.jsx("span",{className:"text-lg leading-none",children:A}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs truncate",style:{color:"var(--theme-metal-bright, #f5d27a)"},children:T}),((h==null?void 0:h.description)??(w==null?void 0:w.description))&&e.jsx("div",{className:"text-[10px] truncate",style:{color:"var(--theme-ink-soft, #d9c08c)"},children:(h==null?void 0:h.description)??(w==null?void 0:w.description)})]}),h&&e.jsx("button",{"data-no-drag":!0,onClick:()=>d(h.ref),className:"px-2 py-1 text-[10px] rounded hover:text-white",style:{background:"var(--theme-metal-dark, #6e4724)",border:"1px solid var(--theme-metal-dark, #b08a3a)",color:"var(--theme-metal-bright, #f5d27a)"},children:"Open ↗"}),e.jsx("button",{"data-no-drag":!0,onClick:()=>g(l),className:"px-2 py-1 text-[10px] rounded hover:text-white",style:{background:"var(--theme-leather-edge, #1a0f05)",border:"1px solid var(--theme-metal-dark, #6e4724)",color:"var(--theme-ink-soft, #d9c08c)"},children:"to desk"})]},l)})]})]}),v&&e.jsx("div",{className:"fixed z-[70] pointer-events-none",style:{left:v.x-80,top:v.y-20},children:e.jsxs("div",{className:"px-3 py-2 rounded text-xs flex items-center gap-2 shadow-2xl",style:{transform:"rotate(-2deg)",background:"var(--theme-paper, #fdfbf3)",color:"var(--theme-ink, #1a1f2e)"},children:[e.jsx("span",{children:v.icon}),e.jsx("span",{className:"font-semibold truncate max-w-[200px]",children:v.label})]})})]})}function dt({itemIds:t,items:a,fileSources:r,factSources:o,activityStickies:u,onRestore:g,onDeleteForever:p,onClose:d}){return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm p-6",onClick:d,children:e.jsxs("div",{className:"relative w-full max-w-2xl max-h-[80vh] flex flex-col rounded-2xl overflow-hidden text-[#f5d27a]",onClick:y=>y.stopPropagation(),style:{background:"linear-gradient(180deg, #4a2018 0%, #2a0e08 100%)",boxShadow:"0 0 0 3px #c46a52, 0 30px 60px var(--theme-shadow, rgba(0,0,0,0.6))"},children:[e.jsxs("div",{className:"flex items-center gap-3 px-5 py-3 border-b border-[#6e3024]",children:[e.jsx("span",{className:"text-2xl",children:"🗑️"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-sm font-semibold tracking-tight",children:"Wastebasket"}),e.jsxs("div",{className:"text-[11px] text-[#e9b09a]",children:[t.length," item",t.length===1?"":"s"," tossed ·",e.jsx("span",{className:"ml-1",children:"restore to desk, or delete forever"})]})]}),e.jsx("button",{onClick:d,className:"w-8 h-8 rounded-full bg-[#1a0a08] border border-[#6e3024] text-[#e9b09a] hover:text-white flex items-center justify-center",children:"✕"})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 flex flex-col gap-2",children:[t.length===0&&e.jsx("div",{className:"text-center py-12 text-[#e9b09a] italic",children:"Nothing in the bin. Drag a file, sticky, or activity onto the wastebasket to toss it."}),t.map(y=>{const v=a.find(j=>j.id===y),x=(v==null?void 0:v.kind)==="file"?r.find(j=>j.ref===v.ref):void 0,b=(v==null?void 0:v.kind)==="fact"?o.find(j=>j.ref===v.ref):void 0,l=(v==null?void 0:v.kind)==="activity"?u.find(j=>j.id===v.ref):void 0,f=x?x.type==="report"?"📊":"📄":b?"💡":l?l.icon:"📌",h=(x==null?void 0:x.ref)??(b==null?void 0:b.ref)??(l?`${l.agentName} · ${l.activity}`:y),w=(x==null?void 0:x.description)??(b==null?void 0:b.description)??(l==null?void 0:l.detail);return e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 bg-[#1a0a08]/60 border border-[#6e3024]/50 rounded-lg hover:bg-[#1a0a08]/80 transition-colors",title:v?"Restore to the desk or delete forever":"This item no longer exists in the mission",children:[e.jsx("span",{className:"text-lg leading-none opacity-70",children:f}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs text-[#f5d27a] truncate line-through decoration-[#c46a52]/50",children:h}),w&&e.jsx("div",{className:"text-[10px] text-[#e9b09a]/80 truncate",children:w})]}),e.jsx("button",{"data-no-drag":!0,onClick:()=>g(y),className:"px-2.5 py-1 text-[10px] bg-[#1a0a08] border border-[#6e3024] rounded text-[#e9b09a] hover:text-white hover:border-[#c46a52]",title:"Pull this item back out of the bin and put it on the desk",children:"↩ to desk"}),e.jsx("button",{"data-no-drag":!0,onClick:()=>{window.confirm(`Delete this forever?
7
-
8
- "${h.slice(0,100)}${h.length>100?"…":""}"
9
-
10
- The item will never reappear on the desk again, even after a reload. This is UI-only — the underlying mission file/note isn't deleted on disk.`)&&p(y)},className:"px-2.5 py-1 text-[10px] bg-[#3a0a08] border border-[#c46a52]/60 rounded text-[#ff9c9c] hover:text-white hover:bg-[#5a0e0a] hover:border-[#ff9c9c]",title:"Permanently hide this item — gone for good",children:"✕ Delete forever"})]},y)})]}),t.length>0&&e.jsx("div",{className:"px-5 py-2 border-t border-[#6e3024] text-center text-[10px] text-[#e9b09a]/70 uppercase tracking-widest",children:"tip: drag items onto the wastebasket from the desk · restore is non-destructive"})]})})}const ct={background:["radial-gradient(ellipse 120px 80px at 78% 28%, rgba(40,18,8,0.55) 0%, rgba(40,18,8,0) 70%)","radial-gradient(ellipse 90px 60px at 22% 72%, rgba(40,18,8,0.45) 0%, rgba(40,18,8,0) 75%)","repeating-linear-gradient(92deg, rgba(255,180,90,0.05) 0px, rgba(60,30,10,0.08) 3px, rgba(255,180,90,0.04) 7px, rgba(60,30,10,0.10) 11px, rgba(255,180,90,0.06) 16px)","repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.03) 4px)","linear-gradient(180deg, var(--theme-bg-base, #6e4724) 0%, var(--theme-bg-grain, #5a3717) 50%, var(--theme-leather-edge, #482a13) 100%)"].join(",")},ut={background:"radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255,220,140,0.18) 0%, rgba(0,0,0,0) 55%)"},xt={background:"radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 50%, var(--theme-bg-vignette, rgba(0,0,0,0.45)) 100%)"},ht=`
11
- @keyframes deskGlow {
12
- 0%, 100% { opacity: 0.5; }
13
- 50% { opacity: 0.8; }
14
- }
15
- @keyframes deskAlarm {
16
- 0%, 100% { opacity: 0.5; }
17
- 50% { opacity: 1; }
18
- }
19
- @keyframes deskFloat {
20
- 0%, 100% { transform: translateY(0); }
21
- 50% { transform: translateY(-3px); }
22
- }
23
- /* Phase 3 polish — Sage decision card sits ~10px elevated and
24
- floats gently. Uses an offset baseline so the card stays raised
25
- relative to the rest of the desk furniture. */
26
- @keyframes questionLift {
27
- 0%, 100% { transform: translateY(-10px); }
28
- 50% { transform: translateY(-13px); }
29
- }
30
- /* v6.1.0-alpha.24 — gentle bob on working sticky notes. Lives on an
31
- INNER wrapper so it composes with the parent Draggable's rotation
32
- transform. */
33
- @keyframes stickyBreathe {
34
- 0%, 100% { transform: translateY(0); }
35
- 50% { transform: translateY(-2.5px); }
36
- }
37
- /* Phase 2 polish — faster breath for "needs you" cards (1.2s). */
38
- @keyframes stickyBreatheUrgent {
39
- 0%, 100% { transform: translateY(0); }
40
- 50% { transform: translateY(-3.5px); }
41
- }
42
- /* Phase 2 polish — generic bead-fade keyframe. Actual path travel
43
- is implemented via SVG animateMotion + mpath in LivingDeskLayer
44
- so it works without offset-path support. Kept as a fallback. */
45
- @keyframes beadFlow {
46
- 0%, 100% { opacity: 0; }
47
- 10%, 90% { opacity: 0.9; }
48
- }
49
- /* Tether-line dash flow — animates stroke-dashoffset to give the
50
- thread a moving-current feel. The dasharray defines the segment
51
- pattern. */
52
- @keyframes tetherFlow {
53
- to { stroke-dashoffset: -20; }
54
- }
55
- /* Dust mote drift — slow vertical drift with a gentle horizontal
56
- wobble. Two duration variants so motes don't tick in unison. */
57
- @keyframes mote1 {
58
- 0% { transform: translate(0, 0) scale(1); opacity: 0; }
59
- 10% { opacity: 0.55; }
60
- 90% { opacity: 0.45; }
61
- 100% { transform: translate(14px, -90vh) scale(1.1); opacity: 0; }
62
- }
63
- @keyframes mote2 {
64
- 0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
65
- 10% { opacity: 0.4; }
66
- 90% { opacity: 0.3; }
67
- 100% { transform: translate(-12px, -90vh) scale(1); opacity: 0; }
68
- }
69
- `;function ft({items:t,room:a,poseOf:r,isHidden:o}){const u=t.find(l=>l.kind==="document"),g=u&&!o(u.id)?r(u):null,p=i.useMemo(()=>{if(!g)return[];const l=[];for(const f of t){if(f.kind!=="agent"||o(f.id))continue;const h=a.team.find(w=>w.agentId===f.ref);h&&(h.paused||h.state!=="working"&&h.state!=="editing"||l.push({item:f,member:h,pose:r(f)}))}return l},[t,a.team,r,o,g]),d=p.length>0,y=220,v=110,x=620,b=300;return e.jsxs(e.Fragment,{children:[g&&p.length>0&&e.jsxs("svg",{className:"absolute inset-0 w-full h-full pointer-events-none",style:{zIndex:5},"aria-hidden":!0,children:[e.jsx("defs",{children:e.jsxs("radialGradient",{id:"tetherNodeGlow",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--theme-metal-bright, #ffd86e)",stopOpacity:"0.9"}),e.jsx("stop",{offset:"100%",stopColor:"var(--theme-metal-bright, #ffd86e)",stopOpacity:"0"})]})}),p.map(({item:l,member:f,pose:h})=>{const w=h.x+y/2,j=h.y+v/2,A=g.x+x/2,T=g.y+b/2,M=(w+A)/2,S=(j+T)/2-40,E=`M ${w} ${j} Q ${M} ${S}, ${A} ${T}`,z=f.state==="editing"?"rgba(245, 158, 11, 0.55)":f.state==="blocked"?"rgba(239, 68, 68, 0.7)":"rgba(255, 216, 110, 0.55)",k=f.color,R=`tether-path-${l.id}`;return e.jsxs("g",{children:[e.jsx("path",{id:R,d:E,fill:"none",stroke:z,strokeWidth:1.4,strokeDasharray:"8 8",style:{animation:"tetherFlow 1.6s linear infinite"}}),e.jsx("circle",{cx:w,cy:j,r:14,fill:"url(#tetherNodeGlow)"}),e.jsx("circle",{r:3.2,fill:k,opacity:.95,children:e.jsx("animateMotion",{dur:"2.2s",repeatCount:"indefinite",children:e.jsx("mpath",{href:`#${R}`})})})]},l.id)})]}),d&&e.jsx("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",style:{zIndex:6},"aria-hidden":!0,children:pt.map((l,f)=>e.jsx("span",{className:"absolute rounded-full",style:{left:`${l.left}vw`,bottom:`${-5+l.delay%12}vh`,width:l.size,height:l.size,background:"radial-gradient(circle at 35% 30%, rgba(255,250,235,0.85) 0%, rgba(212,196,158,0.4) 60%, rgba(0,0,0,0) 100%)",animation:`${f%2===0?"mote1":"mote2"} ${l.duration}s linear infinite`,animationDelay:`${l.delay}s`,filter:"blur(0.4px)"}},f))})]})}const pt=[{left:6,size:3,duration:28,delay:0},{left:14,size:2,duration:36,delay:3},{left:22,size:4,duration:30,delay:8},{left:30,size:2,duration:40,delay:1},{left:38,size:3,duration:26,delay:5},{left:46,size:3,duration:34,delay:11},{left:54,size:2,duration:38,delay:2},{left:62,size:4,duration:32,delay:7},{left:70,size:3,duration:30,delay:9},{left:78,size:2,duration:36,delay:4},{left:86,size:3,duration:28,delay:12},{left:94,size:4,duration:34,delay:6}];function pe(t){let a=0,r=0;for(const o of t.team)(o.state==="working"||o.state==="editing")&&a++,o.state==="blocked"&&r++;return{working:a,blocked:r}}function mt(t,a,r){return t==="paused"?"Paused":t==="done"?"Done":t==="failed"?"Stopped":r>0?`${a} working · ${r} needs you`:a>0?`${a} working`:t==="forming"?"Forming team…":"Idle"}function gt(t){return t==="paused"?"paused":t==="done"?"done":t==="failed"?"stopped":t==="blocked"?"waiting on you":"auto-saving"}function bt(t,a){return t.length<=a?t:t.slice(0,a-1)+"…"}function vt(t){switch(t){case"working":return"bg-accent animate-pulse";case"editing":return"bg-warning animate-pulse";case"blocked":return"bg-error animate-pulse";case"done":return"bg-success";default:return"bg-text-muted"}}function yt(t){switch(t){case"working":return"#6366f1";case"editing":return"#f59e0b";case"blocked":return"#ef4444";case"done":return"#22c55e";default:return"#71717a"}}function kt(t){return t==="working"?"working":t==="editing"?"editing":t==="blocked"?"needs you":t==="done"?"done":"idle"}function wt(t,a){const r=t.replace("#","");if(r.length!==6)return t;const o=parseInt(r,16);let u=o>>16&255,g=o>>8&255,p=o&255;const d=Math.round(255*(a/100));return u=Math.max(0,Math.min(255,u+d)),g=Math.max(0,Math.min(255,g+d)),p=Math.max(0,Math.min(255,p+d)),"#"+(u<<16|g<<8|p).toString(16).padStart(6,"0")}export{Ct as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SettingsPanel-MuC32AXw.js","assets/index-Dbv5oKsp.js","assets/index-OZm1iJy9.css","assets/Input-CTK9oH9g.js","assets/clsx-B-dksMZM.js","assets/PageHeader-Bzb_WXw0.js","assets/chevron-right-U0Ujye5i.js","assets/Tooltip-CFYHfpgQ.js","assets/circle-check-big-BFw1nom4.js","assets/mic-BzvwK4IS.js","assets/refresh-cw-Cs4oDMNE.js","assets/wifi-off-DAhvsjnD.js","assets/download-CZ5kTONh.js","assets/play-CNElkzEq.js","assets/save-BhGg2pZh.js","assets/SecurityPanel-BR3BT7Rb.js","assets/AuditPanel-BmFAKA7p.js","assets/clipboard-list-Dd3_U8cK.js","assets/funnel-DaNi6kwp.js","assets/AutonomyPanel-BzuCEsiG.js","assets/rotate-ccw-DSpsA3Wr.js","assets/radio-BPz7sHXW.js","assets/bot-C4ICYImG.js","assets/server-B1gIgixS.js","assets/network-Dt-RBtO_.js","assets/message-square-Cwo5FOho.js","assets/TitanCanvas-MzLkpZhp.js","assets/chevron-up-B6uSBxbj.js","assets/plus-BnsXhqXc.js","assets/file-text-BtTsNJbB.js","assets/terminal-CubaeYlJ.js","assets/book-open-BgDKDGcH.js","assets/pencil-DAGs9RFs.js","assets/search-BtxlIgqN.js","assets/send-BzKTXI3q.js","assets/flask-conical-BaPYppKH.js","assets/clock-DpJIc30t.js","assets/archive-C2_hAJXj.js","assets/test-tube-CYYLfFIz.js","assets/VoiceOverlay-Dj_cR5_Y.js","assets/volume-2-C1OkTurz.js","assets/folder-BOnpha2-.js","assets/check-CmCL8yzl.js","assets/shield-check-C39B-Wi3.js","assets/external-link-CX-GvMky.js","assets/TitanCanvas-BfitWg9R.css"])))=>i.map(i=>d[i]);
2
- import{r as s,j as e,_ as i}from"./index-Dbv5oKsp.js";import{c as o}from"./clsx-B-dksMZM.js";const r=s.lazy(()=>i(()=>import("./SettingsPanel-MuC32AXw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),n=s.lazy(()=>i(()=>import("./SecurityPanel-BR3BT7Rb.js"),__vite__mapDeps([15,1,2,5,6]))),d=s.lazy(()=>i(()=>import("./AuditPanel-BmFAKA7p.js"),__vite__mapDeps([16,1,2,17,10,18]))),c=s.lazy(()=>i(()=>import("./AutonomyPanel-BzuCEsiG.js"),__vite__mapDeps([19,1,2,14,8,10,20,21,22,23,24,13,25,26,27,28,29,30,31,32,33,34,9,35,36,37,38,39,6,40,41,42,43,44,11,45]))),x=[{id:"general",label:"General"},{id:"autonomy",label:"Autonomy"},{id:"security",label:"Security"},{id:"audit",label:"Audit Log"}];function _(){const[t,a]=s.useState("general");return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"shrink-0 px-5 pt-4 pb-0",children:[e.jsx("h1",{className:"text-sm font-semibold text-text mb-3",children:"Settings"}),e.jsx("div",{className:"flex items-center gap-0.5 border-b border-border/50",children:x.map(l=>e.jsxs("button",{onClick:()=>a(l.id),className:o("px-3 py-2 text-xs font-medium transition-colors relative",t===l.id?"text-accent":"text-text-muted hover:text-text-secondary"),children:[l.label,t===l.id&&e.jsx("div",{className:"absolute bottom-0 left-1 right-1 h-[2px] bg-accent rounded-full"})]},l.id))})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-auto p-5",children:e.jsxs(s.Suspense,{fallback:e.jsx("div",{className:"skeleton-shimmer h-40 rounded-lg"}),children:[t==="general"&&e.jsx(r,{}),t==="autonomy"&&e.jsx(c,{}),t==="security"&&e.jsx(n,{}),t==="audit"&&e.jsx(d,{})]})})]})}export{_ as default};