@growthub/cli 0.3.10 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/runtime/server/dist/routes/gtm.d.ts.map +1 -1
  2. package/dist/runtime/server/dist/routes/gtm.js +26 -14
  3. package/dist/runtime/server/dist/routes/gtm.js.map +1 -1
  4. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/_journal.json +7 -0
  5. package/dist/runtime/server/ui-dist/assets/{OnboardingWizard-B6t7W0wI.js → OnboardingWizard-BiZHH3vY.js} +4 -4
  6. package/dist/runtime/server/ui-dist/assets/{_basePickBy-AK_SWane.js → _basePickBy-DOJDGGWo.js} +1 -1
  7. package/dist/runtime/server/ui-dist/assets/{_baseUniq-Ce_AndV1.js → _baseUniq-DjoWC9VG.js} +1 -1
  8. package/dist/runtime/server/ui-dist/assets/{arc-s2YdnNJl.js → arc-DzAhgPuQ.js} +1 -1
  9. package/dist/runtime/server/ui-dist/assets/{architectureDiagram-VXUJARFQ-BcfuW_eB.js → architectureDiagram-VXUJARFQ-CFxoZ9U1.js} +1 -1
  10. package/dist/runtime/server/ui-dist/assets/{blockDiagram-VD42YOAC-BMTE1VUZ.js → blockDiagram-VD42YOAC-CmcNReYb.js} +1 -1
  11. package/dist/runtime/server/ui-dist/assets/{c4Diagram-YG6GDRKO-B-NXglhR.js → c4Diagram-YG6GDRKO-62g03z24.js} +1 -1
  12. package/dist/runtime/server/ui-dist/assets/channel-CyMiLt_6.js +1 -0
  13. package/dist/runtime/server/ui-dist/assets/{chunk-4BX2VUAB-D-7wJtkB.js → chunk-4BX2VUAB-DdKgkZWf.js} +1 -1
  14. package/dist/runtime/server/ui-dist/assets/{chunk-55IACEB6-Duej5TeT.js → chunk-55IACEB6-BG61sDBH.js} +1 -1
  15. package/dist/runtime/server/ui-dist/assets/{chunk-B4BG7PRW-BoPmWIN4.js → chunk-B4BG7PRW-jHjDOzs3.js} +1 -1
  16. package/dist/runtime/server/ui-dist/assets/{chunk-DI55MBZ5-C3HY62-t.js → chunk-DI55MBZ5-QWOEgAft.js} +1 -1
  17. package/dist/runtime/server/ui-dist/assets/{chunk-FMBD7UC4-CVNH703m.js → chunk-FMBD7UC4-BTtsDCBm.js} +1 -1
  18. package/dist/runtime/server/ui-dist/assets/{chunk-QN33PNHL-DA7w4NyY.js → chunk-QN33PNHL-DQ0G5mTp.js} +1 -1
  19. package/dist/runtime/server/ui-dist/assets/{chunk-QZHKN3VN-SFQMSZap.js → chunk-QZHKN3VN-CwD654Gq.js} +1 -1
  20. package/dist/runtime/server/ui-dist/assets/{chunk-TZMSLE5B-BiEhEwtG.js → chunk-TZMSLE5B-BW4AfItk.js} +1 -1
  21. package/dist/runtime/server/ui-dist/assets/classDiagram-2ON5EDUG-Bpt4jbt_.js +1 -0
  22. package/dist/runtime/server/ui-dist/assets/classDiagram-v2-WZHVMYZB-Bpt4jbt_.js +1 -0
  23. package/dist/runtime/server/ui-dist/assets/clone-C1pAl4cM.js +1 -0
  24. package/dist/runtime/server/ui-dist/assets/{cose-bilkent-S5V4N54A-vRH8NlIE.js → cose-bilkent-S5V4N54A-Cl5X2jL8.js} +1 -1
  25. package/dist/runtime/server/ui-dist/assets/{dagre-6UL2VRFP-CzSFYyZ_.js → dagre-6UL2VRFP-B2u9a5zG.js} +1 -1
  26. package/dist/runtime/server/ui-dist/assets/{diagram-PSM6KHXK-CKcj_yeO.js → diagram-PSM6KHXK-DsSVNioI.js} +1 -1
  27. package/dist/runtime/server/ui-dist/assets/{diagram-QEK2KX5R-h0Roaj0i.js → diagram-QEK2KX5R-C2oaCik_.js} +1 -1
  28. package/dist/runtime/server/ui-dist/assets/{diagram-S2PKOQOG-DCSBAsRf.js → diagram-S2PKOQOG-CuEvUbkw.js} +1 -1
  29. package/dist/runtime/server/ui-dist/assets/{dx-root-B0w_gPhT.js → dx-root-B5r5o3mh.js} +1 -1
  30. package/dist/runtime/server/ui-dist/assets/{erDiagram-Q2GNP2WA-DpWT9dJS.js → erDiagram-Q2GNP2WA-_1lFdkqV.js} +1 -1
  31. package/dist/runtime/server/ui-dist/assets/{flowDiagram-NV44I4VS-BisMBMKb.js → flowDiagram-NV44I4VS-DUoF0DLT.js} +1 -1
  32. package/dist/runtime/server/ui-dist/assets/{ganttDiagram-JELNMOA3-CmekAzdE.js → ganttDiagram-JELNMOA3-CruQ7D3m.js} +1 -1
  33. package/dist/runtime/server/ui-dist/assets/{gitGraphDiagram-V2S2FVAM-Br_qlrxw.js → gitGraphDiagram-V2S2FVAM-BDuS9ljz.js} +1 -1
  34. package/dist/runtime/server/ui-dist/assets/{graph-D-V_UoCw.js → graph-BFy59M3M.js} +1 -1
  35. package/dist/runtime/server/ui-dist/assets/gtm-root-bgiNL285.js +11 -0
  36. package/dist/runtime/server/ui-dist/assets/{index-DdaDZR2v.js → index--dv-yDMD.js} +1 -1
  37. package/dist/runtime/server/ui-dist/assets/{index-Durw9xRw.js → index-A_Utfb1G.js} +1 -1
  38. package/dist/runtime/server/ui-dist/assets/{index-CSgPEZIf.js → index-AaLnuKvn.js} +1 -1
  39. package/dist/runtime/server/ui-dist/assets/{index-DS6VElYc.js → index-B9Xd_vMV.js} +1 -1
  40. package/dist/runtime/server/ui-dist/assets/{index-XVREjU0u.js → index-BCphYMJ8.js} +1 -1
  41. package/dist/runtime/server/ui-dist/assets/{index-zRyuq4cJ.js → index-BKO_Nk8c.js} +1 -1
  42. package/dist/runtime/server/ui-dist/assets/{index-D9rVjAIH.js → index-BMwN19Gi.js} +1 -1
  43. package/dist/runtime/server/ui-dist/assets/{index-BFQEyPDo.js → index-Bz0rSFov.js} +1 -1
  44. package/dist/runtime/server/ui-dist/assets/{index-COe0-YYa.js → index-BzNjBEzf.js} +1 -1
  45. package/dist/runtime/server/ui-dist/assets/{index-CAU5OZcp.js → index-CLWYCHoS.js} +1 -1
  46. package/dist/runtime/server/ui-dist/assets/{index-B7EJswmR.js → index-CZVyxyFA.js} +1 -1
  47. package/dist/runtime/server/ui-dist/assets/{index-Dwmb9KgG.js → index-Cpqm25YS.js} +1 -1
  48. package/dist/runtime/server/ui-dist/assets/{index-CwPfxt9_.js → index-Cv5ClxEP.js} +1 -1
  49. package/dist/runtime/server/ui-dist/assets/{index-hB0NRj8J.js → index-D2MHxpCH.js} +2 -2
  50. package/dist/runtime/server/ui-dist/assets/{index-DlgNqdiq.js → index-D3MPbMGr.js} +1 -1
  51. package/dist/runtime/server/ui-dist/assets/{index-BL5lcbji.js → index-DFUgoz9_.js} +1 -1
  52. package/dist/runtime/server/ui-dist/assets/{index-COGi5Wb7.js → index-DL95rih-.js} +1 -1
  53. package/dist/runtime/server/ui-dist/assets/{index-BL7iND8Y.js → index-DY60bSWi.js} +1 -1
  54. package/dist/runtime/server/ui-dist/assets/{index-D2G9ZSV4.js → index-DcoQC6ia.js} +1 -1
  55. package/dist/runtime/server/ui-dist/assets/{index-eCHfIyqy.js → index-DfnTp5y6.js} +1 -1
  56. package/dist/runtime/server/ui-dist/assets/{index-BheLWZ0d.js → index-Fb7iEaRG.js} +1 -1
  57. package/dist/runtime/server/ui-dist/assets/{index-CTAGezRr.js → index-TPJ_0VD8.js} +1 -1
  58. package/dist/runtime/server/ui-dist/assets/{index-Bn3GeDyS.js → index-WuexBBBr.js} +1 -1
  59. package/dist/runtime/server/ui-dist/assets/{infoDiagram-HS3SLOUP-BXSSUIic.js → infoDiagram-HS3SLOUP-CiI6r25R.js} +1 -1
  60. package/dist/runtime/server/ui-dist/assets/{journeyDiagram-XKPGCS4Q-plV2BdJI.js → journeyDiagram-XKPGCS4Q-BMmOHrov.js} +1 -1
  61. package/dist/runtime/server/ui-dist/assets/{kanban-definition-3W4ZIXB7-C_-AwmSZ.js → kanban-definition-3W4ZIXB7-BxeYeVi1.js} +1 -1
  62. package/dist/runtime/server/ui-dist/assets/{layout-5aphL7em.js → layout-anG6DZ8y.js} +1 -1
  63. package/dist/runtime/server/ui-dist/assets/{linear-CUh-S_3C.js → linear-CDTAlHE-.js} +1 -1
  64. package/dist/runtime/server/ui-dist/assets/{mermaid.core-BRfo14rF.js → mermaid.core-DNt7uRm5.js} +4 -4
  65. package/dist/runtime/server/ui-dist/assets/{mindmap-definition-VGOIOE7T-C1A43zg5.js → mindmap-definition-VGOIOE7T-DTO5b9so.js} +1 -1
  66. package/dist/runtime/server/ui-dist/assets/{pieDiagram-ADFJNKIX-CKDydAai.js → pieDiagram-ADFJNKIX-BteTAzPn.js} +1 -1
  67. package/dist/runtime/server/ui-dist/assets/{quadrantDiagram-AYHSOK5B-CgicP7a2.js → quadrantDiagram-AYHSOK5B-_gG2aKm4.js} +1 -1
  68. package/dist/runtime/server/ui-dist/assets/{requirementDiagram-UZGBJVZJ-CgUaakqy.js → requirementDiagram-UZGBJVZJ-CcOvI4e8.js} +1 -1
  69. package/dist/runtime/server/ui-dist/assets/{sankeyDiagram-TZEHDZUN-D5ZOuvY3.js → sankeyDiagram-TZEHDZUN-C1Rbdzvp.js} +1 -1
  70. package/dist/runtime/server/ui-dist/assets/{sequenceDiagram-WL72ISMW-BY_eD4WY.js → sequenceDiagram-WL72ISMW-DPx4fWtG.js} +1 -1
  71. package/dist/runtime/server/ui-dist/assets/{stateDiagram-FKZM4ZOC-C1PJa9GA.js → stateDiagram-FKZM4ZOC-CID-77J9.js} +1 -1
  72. package/dist/runtime/server/ui-dist/assets/stateDiagram-v2-4FDKWEC3-DF70krIP.js +1 -0
  73. package/dist/runtime/server/ui-dist/assets/{timeline-definition-IT6M3QCI-mnsvrXms.js → timeline-definition-IT6M3QCI-CyA1h3jY.js} +1 -1
  74. package/dist/runtime/server/ui-dist/assets/{treemap-GDKQZRPO-CrhnH0yt.js → treemap-GDKQZRPO-nqrXf2kh.js} +1 -1
  75. package/dist/runtime/server/ui-dist/assets/{xychartDiagram-PRI3JC2R-D0-VyuWz.js → xychartDiagram-PRI3JC2R-CS0bUj41.js} +1 -1
  76. package/dist/runtime/server/ui-dist/index.html +1 -1
  77. package/package.json +1 -1
  78. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0000_mature_masked_marvel.sql +0 -208
  79. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0001_fast_northstar.sql +0 -87
  80. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0002_big_zaladane.sql +0 -1
  81. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0003_shallow_quentin_quire.sql +0 -5
  82. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0004_issue_identifiers.sql +0 -28
  83. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0005_chief_luke_cage.sql +0 -19
  84. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0006_overjoyed_mister_sinister.sql +0 -36
  85. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0007_new_quentin_quire.sql +0 -20
  86. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0008_amused_zzzax.sql +0 -1
  87. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0009_fast_jackal.sql +0 -36
  88. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0010_stale_justin_hammer.sql +0 -37
  89. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0011_windy_corsair.sql +0 -18
  90. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0012_perpetual_ser_duncan.sql +0 -2
  91. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0013_dashing_wasp.sql +0 -4
  92. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0014_many_mikhail_rasputin.sql +0 -135
  93. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0015_project_color_archived.sql +0 -2
  94. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0016_agent_icon.sql +0 -1
  95. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0017_tiresome_gabe_jones.sql +0 -51
  96. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0018_flat_sleepwalker.sql +0 -26
  97. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0019_public_victor_mancha.sql +0 -18
  98. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0020_white_anita_blake.sql +0 -1
  99. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0021_chief_vindicator.sql +0 -1
  100. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0022_company_brand_color.sql +0 -1
  101. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0023_fair_lethal_legion.sql +0 -3
  102. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0024_far_beast.sql +0 -2
  103. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0025_nasty_salo.sql +0 -15
  104. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0026_lying_pete_wisdom.sql +0 -39
  105. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0027_tranquil_tenebrous.sql +0 -2
  106. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0028_harsh_goliath.sql +0 -54
  107. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0029_plugin_tables.sql +0 -177
  108. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0030_rich_magneto.sql +0 -12
  109. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0031_zippy_magma.sql +0 -51
  110. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0032_pretty_doctor_octopus.sql +0 -102
  111. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0033_shiny_black_tarantula.sql +0 -2
  112. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0034_fat_dormammu.sql +0 -2
  113. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0035_marvelous_satana.sql +0 -91
  114. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0036_cheerful_nitro.sql +0 -9
  115. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0037_friendly_eddie_brock.sql +0 -29
  116. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0038_careless_iron_monger.sql +0 -5
  117. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0039_tickets.sql +0 -25
  118. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0000_snapshot.json +0 -1743
  119. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0001_snapshot.json +0 -2441
  120. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0002_snapshot.json +0 -2454
  121. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0003_snapshot.json +0 -2502
  122. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0005_snapshot.json +0 -2719
  123. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0006_snapshot.json +0 -3048
  124. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0007_snapshot.json +0 -3258
  125. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0008_snapshot.json +0 -3264
  126. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0009_snapshot.json +0 -3587
  127. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0010_snapshot.json +0 -3929
  128. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0011_snapshot.json +0 -4068
  129. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0012_snapshot.json +0 -4087
  130. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0013_snapshot.json +0 -4118
  131. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0014_snapshot.json +0 -5187
  132. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0017_snapshot.json +0 -5215
  133. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0018_snapshot.json +0 -5450
  134. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0019_snapshot.json +0 -5603
  135. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0020_snapshot.json +0 -5603
  136. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0021_snapshot.json +0 -5609
  137. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0023_snapshot.json +0 -5633
  138. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0024_snapshot.json +0 -5693
  139. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0025_snapshot.json +0 -5849
  140. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0027_snapshot.json +0 -6205
  141. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0028_snapshot.json +0 -6710
  142. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0029_snapshot.json +0 -7899
  143. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0030_snapshot.json +0 -8003
  144. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0031_snapshot.json +0 -7242
  145. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0032_snapshot.json +0 -7733
  146. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0033_snapshot.json +0 -9038
  147. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0034_snapshot.json +0 -9039
  148. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0035_snapshot.json +0 -9959
  149. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0036_snapshot.json +0 -10023
  150. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0037_snapshot.json +0 -10263
  151. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0038_snapshot.json +0 -10301
  152. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/_journal.json +0 -293
  153. package/dist/runtime/server/ui-dist/assets/channel-DA_OM8-V.js +0 -1
  154. package/dist/runtime/server/ui-dist/assets/classDiagram-2ON5EDUG-Cf6Zhi-x.js +0 -1
  155. package/dist/runtime/server/ui-dist/assets/classDiagram-v2-WZHVMYZB-Cf6Zhi-x.js +0 -1
  156. package/dist/runtime/server/ui-dist/assets/clone-KxtiqD4L.js +0 -1
  157. package/dist/runtime/server/ui-dist/assets/gtm-root-D-OVTmcg.js +0 -11
  158. package/dist/runtime/server/ui-dist/assets/stateDiagram-v2-4FDKWEC3-C5p_b2GK.js +0 -1
  159. /package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/{migrations/0040_ticket_meta.sql → 0040_ticket_meta.sql} +0 -0
@@ -1,293 +0,0 @@
1
- {
2
- "version": "7",
3
- "dialect": "postgresql",
4
- "entries": [
5
- {
6
- "idx": 0,
7
- "version": "7",
8
- "when": 1771300567463,
9
- "tag": "0000_mature_masked_marvel",
10
- "breakpoints": true
11
- },
12
- {
13
- "idx": 1,
14
- "version": "7",
15
- "when": 1771349039633,
16
- "tag": "0001_fast_northstar",
17
- "breakpoints": true
18
- },
19
- {
20
- "idx": 2,
21
- "version": "7",
22
- "when": 1771349403162,
23
- "tag": "0002_big_zaladane",
24
- "breakpoints": true
25
- },
26
- {
27
- "idx": 3,
28
- "version": "7",
29
- "when": 1771456737635,
30
- "tag": "0003_shallow_quentin_quire",
31
- "breakpoints": true
32
- },
33
- {
34
- "idx": 4,
35
- "version": "7",
36
- "when": 1771545600000,
37
- "tag": "0004_issue_identifiers",
38
- "breakpoints": true
39
- },
40
- {
41
- "idx": 5,
42
- "version": "7",
43
- "when": 1771545601000,
44
- "tag": "0005_chief_luke_cage",
45
- "breakpoints": true
46
- },
47
- {
48
- "idx": 6,
49
- "version": "7",
50
- "when": 1771545602000,
51
- "tag": "0006_overjoyed_mister_sinister",
52
- "breakpoints": true
53
- },
54
- {
55
- "idx": 7,
56
- "version": "7",
57
- "when": 1771545603000,
58
- "tag": "0007_new_quentin_quire",
59
- "breakpoints": true
60
- },
61
- {
62
- "idx": 8,
63
- "version": "7",
64
- "when": 1771534160426,
65
- "tag": "0008_amused_zzzax",
66
- "breakpoints": true
67
- },
68
- {
69
- "idx": 9,
70
- "version": "7",
71
- "when": 1771534211029,
72
- "tag": "0009_fast_jackal",
73
- "breakpoints": true
74
- },
75
- {
76
- "idx": 10,
77
- "version": "7",
78
- "when": 1771605173513,
79
- "tag": "0010_stale_justin_hammer",
80
- "breakpoints": true
81
- },
82
- {
83
- "idx": 11,
84
- "version": "7",
85
- "when": 1771616419708,
86
- "tag": "0011_windy_corsair",
87
- "breakpoints": true
88
- },
89
- {
90
- "idx": 12,
91
- "version": "7",
92
- "when": 1771619674673,
93
- "tag": "0012_perpetual_ser_duncan",
94
- "breakpoints": true
95
- },
96
- {
97
- "idx": 13,
98
- "version": "7",
99
- "when": 1771623691139,
100
- "tag": "0013_dashing_wasp",
101
- "breakpoints": true
102
- },
103
- {
104
- "idx": 14,
105
- "version": "7",
106
- "when": 1771691806349,
107
- "tag": "0014_many_mikhail_rasputin",
108
- "breakpoints": true
109
- },
110
- {
111
- "idx": 15,
112
- "version": "7",
113
- "when": 1771865100000,
114
- "tag": "0015_project_color_archived",
115
- "breakpoints": true
116
- },
117
- {
118
- "idx": 16,
119
- "version": "7",
120
- "when": 1771955900000,
121
- "tag": "0016_agent_icon",
122
- "breakpoints": true
123
- },
124
- {
125
- "idx": 17,
126
- "version": "7",
127
- "when": 1771883888199,
128
- "tag": "0017_tiresome_gabe_jones",
129
- "breakpoints": true
130
- },
131
- {
132
- "idx": 18,
133
- "version": "7",
134
- "when": 1771897769629,
135
- "tag": "0018_flat_sleepwalker",
136
- "breakpoints": true
137
- },
138
- {
139
- "idx": 19,
140
- "version": "7",
141
- "when": 1772029333401,
142
- "tag": "0019_public_victor_mancha",
143
- "breakpoints": true
144
- },
145
- {
146
- "idx": 20,
147
- "version": "7",
148
- "when": 1772032176413,
149
- "tag": "0020_white_anita_blake",
150
- "breakpoints": true
151
- },
152
- {
153
- "idx": 21,
154
- "version": "7",
155
- "when": 1772122471656,
156
- "tag": "0021_chief_vindicator",
157
- "breakpoints": true
158
- },
159
- {
160
- "idx": 22,
161
- "version": "7",
162
- "when": 1772186400000,
163
- "tag": "0022_company_brand_color",
164
- "breakpoints": true
165
- },
166
- {
167
- "idx": 23,
168
- "version": "7",
169
- "when": 1772139727599,
170
- "tag": "0023_fair_lethal_legion",
171
- "breakpoints": true
172
- },
173
- {
174
- "idx": 24,
175
- "version": "7",
176
- "when": 1772806603601,
177
- "tag": "0024_far_beast",
178
- "breakpoints": true
179
- },
180
- {
181
- "idx": 25,
182
- "version": "7",
183
- "when": 1772807461603,
184
- "tag": "0025_nasty_salo",
185
- "breakpoints": true
186
- },
187
- {
188
- "idx": 26,
189
- "version": "7",
190
- "when": 1773089625430,
191
- "tag": "0026_lying_pete_wisdom",
192
- "breakpoints": true
193
- },
194
- {
195
- "idx": 27,
196
- "version": "7",
197
- "when": 1773150731736,
198
- "tag": "0027_tranquil_tenebrous",
199
- "breakpoints": true
200
- },
201
- {
202
- "idx": 28,
203
- "version": "7",
204
- "when": 1773432085646,
205
- "tag": "0028_harsh_goliath",
206
- "breakpoints": true
207
- },
208
- {
209
- "idx": 29,
210
- "version": "7",
211
- "when": 1773417600000,
212
- "tag": "0029_plugin_tables",
213
- "breakpoints": true
214
- },
215
- {
216
- "idx": 30,
217
- "version": "7",
218
- "when": 1773670925214,
219
- "tag": "0030_rich_magneto",
220
- "breakpoints": true
221
- },
222
- {
223
- "idx": 31,
224
- "version": "7",
225
- "when": 1773511922713,
226
- "tag": "0031_zippy_magma",
227
- "breakpoints": true
228
- },
229
- {
230
- "idx": 32,
231
- "version": "7",
232
- "when": 1773542934499,
233
- "tag": "0032_pretty_doctor_octopus",
234
- "breakpoints": true
235
- },
236
- {
237
- "idx": 33,
238
- "version": "7",
239
- "when": 1773664961967,
240
- "tag": "0033_shiny_black_tarantula",
241
- "breakpoints": true
242
- },
243
- {
244
- "idx": 34,
245
- "version": "7",
246
- "when": 1773697572188,
247
- "tag": "0034_fat_dormammu",
248
- "breakpoints": true
249
- },
250
- {
251
- "idx": 35,
252
- "version": "7",
253
- "when": 1773698696169,
254
- "tag": "0035_marvelous_satana",
255
- "breakpoints": true
256
- },
257
- {
258
- "idx": 36,
259
- "version": "7",
260
- "when": 1773756213455,
261
- "tag": "0036_cheerful_nitro",
262
- "breakpoints": true
263
- },
264
- {
265
- "idx": 37,
266
- "version": "7",
267
- "when": 1773756922363,
268
- "tag": "0037_friendly_eddie_brock",
269
- "breakpoints": true
270
- },
271
- {
272
- "idx": 38,
273
- "version": "7",
274
- "when": 1773931592563,
275
- "tag": "0038_careless_iron_monger",
276
- "breakpoints": true
277
- },
278
- {
279
- "idx": 39,
280
- "version": "7",
281
- "when": 1742601600000,
282
- "tag": "0039_tickets",
283
- "breakpoints": true
284
- },
285
- {
286
- "idx": 40,
287
- "version": "7",
288
- "when": 1742688000000,
289
- "tag": "0040_ticket_meta",
290
- "breakpoints": true
291
- }
292
- ]
293
- }
@@ -1 +0,0 @@
1
- import{U as a,C as n}from"./mermaid.core-BRfo14rF.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-BoPmWIN4.js";import{_ as i}from"./mermaid.core-BRfo14rF.js";import"./chunk-FMBD7UC4-CVNH703m.js";import"./chunk-55IACEB6-Duej5TeT.js";import"./chunk-QN33PNHL-DA7w4NyY.js";import"./index-hB0NRj8J.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-BoPmWIN4.js";import{_ as i}from"./mermaid.core-BRfo14rF.js";import"./chunk-FMBD7UC4-CVNH703m.js";import"./chunk-55IACEB6-Duej5TeT.js";import"./chunk-QN33PNHL-DA7w4NyY.js";import"./index-hB0NRj8J.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./_baseUniq-Ce_AndV1.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1,11 +0,0 @@
1
- import{j as e,t as ce,s as We,r as u,R as us}from"./index-hB0NRj8J.js";import{K as ze,M as T,R as ms,O as i,Q as X,S as xs,U as gs,V as hs,W as Re,X as Y,Y as Ce,Z as Ve,_ as Me,$ as Ge,a0 as x,a1 as Ae,a2 as ps,a3 as js,a4 as fs,a5 as ys,a6 as He,a7 as Ye,a8 as Xe,a9 as bs,aa as vs,ab as Ze,ac as Ns,ad as ws,ae as U,af as Je,ag as ks,ah as es,ai as Cs,aj as b,ak as Se,al as we,am as Q,an as K,ao as z,ap as _,aq as V,ar as H,as as Ss,at as Ts,au as E,av as je,aw as fe,ax as ye,ay as be,az as ve,aA as W,aB as Ne,aC as Oe,aD as qs,aE as ss,aF as Z,aG as Pe,aH as Fe,aI as Qe,aJ as Is,aK as Ue,aL as As,aM as Ps,aN as Rs,aO as Fs,aP as Ms,aQ as _e,aR as Gs,aS as Qs,aT as Ks,aU as Es,aV as $s,aW as Ls,aX as Ds,aY as Os,aZ as Us,a_ as _s,a$ as Bs,b0 as Ws,b1 as zs,b2 as Vs,b3 as Hs,b4 as Ys,b5 as Xs,b6 as Zs,b7 as Js}from"./OnboardingWizard-B6t7W0wI.js";/**
2
- * @license lucide-react v0.574.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const et=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],st=ze("refresh-ccw",et);/**
7
- * @license lucide-react v0.574.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const tt=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],ts=ze("workflow",tt),y={getProfile:()=>T.get("/gtm/profile"),getKnowledge:()=>T.get("/gtm/knowledge"),getConnectors:()=>T.get("/gtm/connectors"),getConnection:()=>T.get("/gtm/connection"),saveConnectionConfig:s=>T.post("/gtm/connection/config",s),getWorkflow:()=>T.get("/gtm/workflow"),launchWorkflow:()=>T.post("/gtm/workflow/run",{}),listAgents:s=>T.get(`/gtm/companies/${s}/agents`),createAgent:(s,t)=>T.post(`/gtm/companies/${s}/agents`,t),invokeAgent:(s,t)=>T.post(`/gtm/agents/${s}/invoke?companyId=${encodeURIComponent(t)}`,{}),pauseAgent:(s,t)=>T.post(`/gtm/agents/${s}/pause?companyId=${encodeURIComponent(t)}`,{}),resumeAgent:(s,t)=>T.post(`/gtm/agents/${s}/resume?companyId=${encodeURIComponent(t)}`,{}),listTickets:s=>T.get(`/gtm/companies/${s}/tickets`),createTicket:(s,t)=>T.post(`/gtm/companies/${s}/tickets`,t),listIssues:s=>T.get(`/gtm/companies/${s}/issues`),createIssue:(s,t)=>T.post(`/gtm/companies/${s}/issues`,t),listInbox:s=>T.get(`/gtm/companies/${s}/inbox`),listRuns:s=>T.get(`/gtm/companies/${s}/runs`),getWorkspaceConfig:s=>T.get(`/gtm/companies/${s}/workspace-config`),upsertWorkspaceClaudeBrowser:(s,t)=>T.post(`/gtm/companies/${s}/workspace-config/claude-browser`,t)},G=We.slice(1),nt=new RegExp(`^${We}(?=/|$)`),w={agents:s=>["gtm","agents",s],tickets:s=>["gtm","tickets",s],issues:s=>["gtm","issues",s],inbox:s=>["gtm","inbox",s]},at=[{value:"claude_local",label:"Claude Code"},{value:"codex_local",label:"Codex"},{value:"gemini_local",label:"Gemini CLI"},{value:"opencode_local",label:"OpenCode"},{value:"cursor",label:"Cursor"},{value:"pi_local",label:"Pi"},{value:"openclaw_gateway",label:"OpenClaw Gateway"}],rt=["critical","high","medium","low"],it=["planning","execution","qa","human"];function ns(s){return s&&typeof s=="object"&&!Array.isArray(s)?s:null}function pe(s){return typeof s=="string"&&s.trim().length>0?s.trim():null}function Be(s){const t=ns(s.contextSnapshot);return t?pe(t.issueId)??pe(t.taskId):null}function ot(s){const t={},o=ns(s.contextSnapshot);if(!o)return t;const r=pe(o.issueId),d=pe(o.taskId),h=pe(o.taskKey);return r&&(t.issueId=r),d&&(t.taskId=d),h&&(t.taskKey=h),t}function lt({hasActiveInvite:s=!1}){return e.jsx("div",{className:"mx-auto max-w-xl py-10",children:e.jsxs("div",{className:"rounded-lg border border-border bg-card p-6",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"Instance setup required"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:s?"No instance admin exists yet. A bootstrap invite is already active. Check your local startup logs for the first admin invite URL, or run this command to rotate it:":"No instance admin exists yet. Run this command in your local environment to generate the first admin invite URL:"}),e.jsx("pre",{className:"mt-4 overflow-x-auto rounded-md border border-border bg-muted/30 p-3 text-xs",children:"pnpm growthub auth bootstrap-ceo"})]})})}function ct(){var d,h;const s=Ce(),t=b({queryKey:_e.health,queryFn:()=>Gs.get(),retry:!1,refetchInterval:p=>{const j=p.state.data;return(j==null?void 0:j.deploymentMode)==="authenticated"&&j.bootstrapStatus==="bootstrap_pending"?2e3:!1},refetchIntervalInBackground:!0}),o=((d=t.data)==null?void 0:d.deploymentMode)==="authenticated",r=b({queryKey:_e.auth.session,queryFn:()=>Qs.getSession(),enabled:o,retry:!1});if(t.isLoading||o&&r.isLoading)return e.jsx("div",{className:"mx-auto max-w-xl py-10 text-sm text-muted-foreground",children:"Loading..."});if(t.error)return e.jsx("div",{className:"mx-auto max-w-xl py-10 text-sm text-destructive",children:t.error instanceof Error?t.error.message:"Failed to load app state"});if(o&&((h=t.data)==null?void 0:h.bootstrapStatus)==="bootstrap_pending")return e.jsx(lt,{hasActiveInvite:t.data.bootstrapInviteActive});if(o&&!r.data){const p=encodeURIComponent(`${s.pathname}${s.search}`);return e.jsx(X,{to:`/auth?next=${p}`,replace:!0})}return e.jsx(es,{})}function dt(s){if(!s)return"Not available";const t=s instanceof Date?s:new Date(s);return Number.isNaN(t.getTime())?"Not available":t.toLocaleString()}function de(s,t){const o=t.startsWith("/")?t:`/${t}`;return ce(`${s??""}${o}`)}function ut(){const{companies:s,selectedCompany:t,loading:o}=Y(),r=Ce();if(o)return e.jsx("div",{className:"mx-auto max-w-xl py-10 text-sm text-muted-foreground",children:"Loading..."});const d=t??s[0]??null;return d?e.jsx(X,{to:ce(`${d.issuePrefix}/workspace`),replace:!0}):Ve({pathname:r.pathname,hasCompanies:!1})?e.jsx(X,{to:ce("onboarding"),replace:!0}):e.jsx(as,{})}function L(){const s=Ce(),{companies:t,selectedCompany:o,loading:r}=Y();if(r)return e.jsx("div",{className:"mx-auto max-w-xl py-10 text-sm text-muted-foreground",children:"Loading..."});const d=o??t[0]??null;return d?e.jsx(X,{to:ce(`${d.issuePrefix}${s.pathname.replace(nt,"")}${s.search}${s.hash}`),replace:!0}):Ve({pathname:s.pathname,hasCompanies:!1})?e.jsx(X,{to:ce("onboarding"),replace:!0}):e.jsx(as,{})}function as(){const{openOnboarding:s}=Me();return e.jsx("div",{className:"mx-auto max-w-xl py-10",children:e.jsxs("div",{className:"rounded-lg border border-border bg-card p-6",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"Create your first company"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Get started by creating a company."}),e.jsx("div",{className:"mt-4",children:e.jsx(x,{onClick:()=>s(),children:"New Company"})})]})})}function rs(){const{companies:s}=Y(),{openOnboarding:t}=Me(),{companyPrefix:o}=Ge(),r=o?s.find(p=>p.issuePrefix.toUpperCase()===o.toUpperCase())??null:null,d=r?`Add another agent to ${r.name}`:s.length>0?"Create another company":"Create your first company",h=r?"Run onboarding again to add an agent and a starter task for this company.":s.length>0?"Run onboarding again to create another company and seed its first agent.":"Get started by creating a company and your first agent.";return e.jsx("div",{className:"mx-auto max-w-xl py-10",children:e.jsxs("div",{className:"rounded-lg border border-border bg-card p-6",children:[e.jsx("h1",{className:"text-xl font-semibold",children:d}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:h}),e.jsx("div",{className:"mt-4",children:e.jsx(x,{onClick:()=>r?t({initialStep:2,companyId:r.id}):t(),children:r?"Add Agent":"Start Onboarding"})})]})})}function mt(s){const t=b({queryKey:["gtm","profile"],queryFn:()=>y.getProfile()}),o=b({queryKey:["gtm","knowledge"],queryFn:()=>y.getKnowledge()}),r=b({queryKey:["gtm","connectors"],queryFn:()=>y.getConnectors()}),d=b({queryKey:["gtm","connection"],queryFn:()=>y.getConnection()}),h=b({queryKey:["gtm","workflow"],queryFn:()=>y.getWorkflow()}),p=b({queryKey:s?w.agents(s):["gtm","agents","none"],queryFn:()=>y.listAgents(s),enabled:!!s}),j=b({queryKey:s?w.tickets(s):["gtm","tickets","none"],queryFn:()=>y.listTickets(s),enabled:!!s}),f=b({queryKey:s?w.issues(s):["gtm","issues","none"],queryFn:()=>y.listIssues(s),enabled:!!s});return{profileQuery:t,knowledgeQuery:o,connectorsQuery:r,connectionQuery:d,workflowQuery:h,agentsQuery:p,ticketsQuery:j,issuesQuery:f}}function xt(){var Le,De;const{selectedCompanyId:s,selectedCompany:t}=Y(),{pushToast:o}=Se(),r=we(),[d,h]=u.useState(!1),[p,j]=u.useState(!1),[f,S]=u.useState(""),[q,A]=u.useState(""),[P,v]=u.useState("claude"),[I,R]=u.useState(""),[N,m]=u.useState("claude-sonnet-4-6"),[F,$]=u.useState(!0),[n,k]=u.useState(""),{profileQuery:M,knowledgeQuery:B,connectorsQuery:l,connectionQuery:g,workflowQuery:se,agentsQuery:ue,ticketsQuery:te,issuesQuery:me}=mt(s),ne=b({queryKey:s?["gtm","workspace-config",s]:["gtm","workspace-config","none"],queryFn:()=>y.getWorkspaceConfig(s),enabled:!!s}),xe=b({queryKey:s?["gtm","runs",s]:["gtm","runs","none"],queryFn:()=>Qe.list(s,void 0,8),enabled:!!s}),D=Q({mutationFn:()=>y.upsertWorkspaceClaudeBrowser(s,{name:f,title:q,adapterConfig:{command:P,cwd:I,model:N,chrome:F}}),onSuccess:async()=>{h(!1),await Promise.all([r.invalidateQueries({queryKey:["gtm","workspace-config",s]}),r.invalidateQueries({queryKey:w.agents(s)})]),o({title:"Workspace configured",body:"Claude browser agent is configured for this workspace.",tone:"success"})},onError:c=>{o({title:"Workspace setup failed",body:c instanceof Error?c.message:"Failed to configure workspace agent",tone:"error"})}}),O=Q({mutationFn:()=>y.launchWorkflow(),onSuccess:async()=>{await r.invalidateQueries({queryKey:["gtm","workflow"]}),o({title:"Workflow started",body:"Local SDR execution launched.",tone:"success"})},onError:c=>{o({title:"Workflow failed",body:c instanceof Error?c.message:"Failed to launch workflow",tone:"error"})}}),a=Q({mutationFn:async()=>await y.saveConnectionConfig({baseUrl:n.trim()}),onSuccess:async()=>{await Promise.all([r.invalidateQueries({queryKey:["gtm","connection"]}),r.invalidateQueries({queryKey:["gtm","connectors"]})])},onError:c=>{o({title:"Configuration failed",body:c instanceof Error?c.message:"Failed to save Growthub configuration",tone:"error"})}});if(u.useEffect(()=>{var c;(c=g.data)!=null&&c.baseUrl&&k(g.data.baseUrl)},[(Le=g.data)==null?void 0:Le.baseUrl]),!s)return e.jsx("div",{className:"rounded-lg border border-border bg-card p-6 text-sm text-muted-foreground",children:"Select or create a company to open the GTM workspace."});const J=[M,B,l,g,se,ue,te,me,ne,xe].some(c=>c.isLoading),ae=[M.error,B.error,l.error,g.error,se.error,ue.error,te.error,me.error,ne.error,xe.error].find(Boolean);if(J)return e.jsx("div",{className:"py-8 text-sm text-muted-foreground",children:"Loading GTM workspace…"});if(ae)return e.jsx("div",{className:"rounded-lg border border-destructive/30 bg-card p-6 text-sm text-destructive",children:ae instanceof Error?ae.message:"Failed to load GTM workspace"});const Te=M.data,Ke=B.data;l.data;const ge=g.data,qe=se.data,is=ue.data??[],os=te.data??[],ls=me.data??[],ee=ne.data,Ee=xe.data??[],C=ee.existingAgent,re=ee.environmentTest,Ie=c=>de(t==null?void 0:t.issuePrefix,c),$e=()=>{const c=C??ee.defaults,ie=(C==null?void 0:C.adapterConfig)??ee.defaults.adapterConfig;S(c.name??"SDR Browser Agent"),A(((C==null?void 0:C.title)??ee.defaults.title)||""),v(String(ie.command??"claude")),R(String(ie.cwd??"")),m(String(ie.model??"claude-sonnet-4-6")),$(!!(ie.chrome??!0)),h(!0)},cs=()=>{k(ge.baseUrl),j(!0)},ds=async()=>{const c=await a.mutateAsync(),ie=`${c.baseUrl}/local-auth?return_url=${encodeURIComponent(c.callbackUrl)}`;window.open(ie,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"space-y-6",children:[e.jsx(K,{children:e.jsxs(z,{className:"gap-4 lg:flex-row lg:items-start lg:justify-between",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(_,{variant:"secondary",children:"GTM Workspace"}),e.jsx(_,{variant:"outline",children:qe.status}),e.jsx(_,{variant:C?"secondary":"outline",children:C?"Agent ready":"Needs setup"})]}),e.jsxs("div",{children:[e.jsx(V,{children:(t==null?void 0:t.name)??Te.workspace}),e.jsx(H,{children:"Build campaigns, queue work, configure the local Claude browser agent, and launch GTM workflows without exposing board planning surfaces."})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(x,{onClick:$e,children:[e.jsx(Ss,{className:"mr-2 h-4 w-4"}),C?"Update agent setup":"Configure browser agent"]}),e.jsx(x,{asChild:!0,variant:"outline",children:e.jsx(U,{to:Ie("/agents/all"),children:"Open agents"})}),e.jsx(x,{asChild:!0,variant:"outline",children:e.jsx(U,{to:Ie("/tickets"),children:"Open campaigns"})}),e.jsxs(x,{onClick:()=>O.mutate(),disabled:O.isPending,children:[e.jsx(Ts,{className:"mr-2 h-4 w-4"}),qe.actionLabel]})]})]})}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:[e.jsx(ke,{title:"Agents",value:String(is.length),detail:"GTM-configured agents",icon:Xe}),e.jsx(ke,{title:"Campaigns",value:String(os.length),detail:"Workflow tickets",icon:Ye}),e.jsx(ke,{title:"Queue",value:String(ls.length),detail:"Active GTM issues",icon:ts}),e.jsx(ke,{title:"Knowledge",value:String(Ke.items.length),detail:Ke.group.label,icon:He})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-3",children:[e.jsxs(K,{children:[e.jsxs(z,{children:[e.jsx(V,{children:"Workspace Agent Setup"}),e.jsx(H,{children:"Default done-for-you Claude browser agent binding for this workspace."})]}),e.jsxs(E,{className:"space-y-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Agent"}),e.jsx("p",{className:"mt-1",children:(C==null?void 0:C.name)??"Not configured"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Binding Status"}),e.jsx("p",{className:"mt-1",children:re?re.status:"Not tested"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Claude Command"}),e.jsx("p",{className:"mt-1 break-all",children:String(((C==null?void 0:C.adapterConfig)??ee.defaults.adapterConfig).command??"claude")})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Working Directory"}),e.jsx("p",{className:"mt-1 break-all",children:String(((C==null?void 0:C.adapterConfig)??ee.defaults.adapterConfig).cwd??"Not configured")})]}),(De=re==null?void 0:re.checks)!=null&&De.length?e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Latest Binding Check"}),re.checks.slice(0,3).map(c=>e.jsxs("div",{className:"rounded-md border border-border p-3",children:[e.jsx("p",{className:"font-medium",children:c.message}),c.hint?e.jsx("p",{className:"mt-1 text-muted-foreground",children:c.hint}):null]},c.code))]}):null,e.jsxs("div",{className:"flex gap-2 pt-1",children:[e.jsx(x,{size:"sm",variant:"outline",onClick:$e,children:"Configure"}),C?e.jsx(x,{size:"sm",asChild:!0,variant:"outline",children:e.jsx(U,{to:Ie(`/agents/${C.id}`),children:"Open detail"})}):null]})]})]}),e.jsxs(K,{children:[e.jsxs(z,{children:[e.jsx(V,{children:"Growthub Connection"}),e.jsx(H,{children:"Connect this local installer to the hosted Growthub workspace."})]}),e.jsxs(E,{className:"space-y-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Status"}),e.jsx("p",{className:"mt-1",children:ge.connected?"Connected":"Needs attention"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Base URL"}),e.jsx("p",{className:"mt-1 break-all",children:ge.baseUrl})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Callback URL"}),e.jsx("p",{className:"mt-1 break-all",children:ge.callbackUrl})]}),e.jsxs("div",{className:"flex gap-2 pt-1",children:[e.jsx(x,{size:"sm",variant:"outline",onClick:cs,children:"Open Configuration"}),e.jsx(x,{size:"sm",variant:"outline",onClick:()=>{g.refetch(),l.refetch()},children:"Refresh"})]})]})]}),e.jsxs(K,{children:[e.jsxs(z,{children:[e.jsx(V,{children:"Runtime"}),e.jsx(H,{children:"Workflow, connections, and recent runs."})]}),e.jsxs(E,{className:"space-y-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Account"}),e.jsx("p",{className:"mt-1",children:Te.account})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"App Connection"}),e.jsx("p",{className:"mt-1 break-all",children:Te.appConnection})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Runner"}),e.jsx("p",{className:"mt-1 break-all",children:qe.runner})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Recent Runs"}),Ee.length===0?e.jsx("p",{className:"mt-1 text-muted-foreground",children:"No runs yet."}):e.jsx("div",{className:"mt-1 space-y-2",children:Ee.slice(0,4).map(c=>e.jsxs("div",{className:"rounded-md border border-border p-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("p",{className:"font-medium",children:c.status}),e.jsx("span",{className:"text-xs text-muted-foreground",children:dt(c.createdAt)})]}),e.jsx("p",{className:"mt-1 text-muted-foreground",children:c.triggerDetail??c.invocationSource})]},c.id))})]})]})]})]}),e.jsx(je,{open:d,onOpenChange:h,children:e.jsxs(fe,{children:[e.jsxs(ye,{children:[e.jsx(be,{children:"Workspace browser agent"}),e.jsx(ve,{children:"Bind the workspace to the local Claude app and make the default SDR browser agent runnable out of the box."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Agent name"}),e.jsx(W,{value:f,onChange:c=>S(c.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Title"}),e.jsx(W,{value:q,onChange:c=>A(c.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Claude command"}),e.jsx(W,{value:P,onChange:c=>v(c.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Working directory"}),e.jsx(W,{value:I,onChange:c=>R(c.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Model"}),e.jsx(W,{value:N,onChange:c=>m(c.target.value)})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{type:"checkbox",checked:F,onChange:c=>$(c.target.checked)}),"Enable Claude browser mode"]})]}),e.jsxs(Ne,{children:[e.jsx(x,{variant:"outline",onClick:()=>h(!1),children:"Cancel"}),e.jsxs(x,{onClick:()=>D.mutate(),disabled:!f.trim()||!P.trim()||!I.trim()||D.isPending,children:[D.isPending?e.jsx(Oe,{className:"mr-2 h-4 w-4 animate-spin"}):e.jsx(qs,{className:"mr-2 h-4 w-4"}),"Save and test"]})]})]})}),e.jsx(je,{open:p,onOpenChange:j,children:e.jsxs(fe,{children:[e.jsxs(ye,{children:[e.jsx(be,{children:"Growthub Configuration"}),e.jsx(ve,{children:"Set the hosted Growthub URL for this installer, then open the auth flow."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Growthub base URL"}),e.jsx(W,{value:n,onChange:c=>k(c.target.value)})]}),e.jsxs("div",{className:"rounded-md border border-border p-3 text-sm text-muted-foreground",children:["Callback: ",ge.callbackUrl]})]}),e.jsxs(Ne,{children:[e.jsx(x,{variant:"outline",onClick:()=>j(!1),children:"Cancel"}),e.jsxs(x,{onClick:()=>void ds(),disabled:!n.trim()||a.isPending,children:[a.isPending?e.jsx(Oe,{className:"mr-2 h-4 w-4 animate-spin"}):e.jsx(ss,{className:"mr-2 h-4 w-4"}),"Open Configuration"]})]})]})})]})}function ke({title:s,value:t,detail:o,icon:r}){return e.jsx(K,{children:e.jsxs(E,{className:"flex items-start justify-between gap-4 pt-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:s}),e.jsx("p",{className:"mt-2 text-2xl font-semibold",children:t}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:o})]}),e.jsx("div",{className:"rounded-lg bg-muted p-2 text-muted-foreground",children:e.jsx(r,{className:"h-4 w-4"})})]})})}function he(){const{selectedCompanyId:s,selectedCompany:t}=Y(),{agentId:o}=Ge(),{pushToast:r}=Se(),d=we(),[h,p]=u.useState(!1),[j,f]=u.useState(""),[S,q]=u.useState(""),[A,P]=u.useState("codex_local"),v=b({queryKey:s?w.agents(s):["gtm","agents","none"],queryFn:()=>y.listAgents(s),enabled:!!s}),I=Q({mutationFn:()=>y.createAgent(s,{name:j,title:S,role:"general",adapterType:A}),onSuccess:async()=>{p(!1),f(""),q(""),P("codex_local"),await d.invalidateQueries({queryKey:w.agents(s)}),r({title:"Agent created",body:"The GTM agent is ready for assignment.",tone:"success"})},onError:a=>{r({title:"Agent creation failed",body:a instanceof Error?a.message:"Failed to create agent",tone:"error"})}}),R=Q({mutationFn:async({action:a,agentId:J})=>{if(!s)throw new Error("No company selected");return a==="invoke"?y.invokeAgent(J,s):a==="pause"?y.pauseAgent(J,s):y.resumeAgent(J,s)},onSuccess:async()=>{await d.invalidateQueries({queryKey:w.agents(s)})},onError:a=>{r({title:"Agent action failed",body:a instanceof Error?a.message:"Failed to control agent",tone:"error"})}});if(!s)return e.jsx("div",{className:"rounded-lg border border-border bg-card p-6 text-sm text-muted-foreground",children:"Select a company to manage GTM agents."});if(v.isLoading)return e.jsx("div",{className:"py-8 text-sm text-muted-foreground",children:"Loading agents…"});if(v.error)return e.jsx("div",{className:"rounded-lg border border-destructive/30 bg-card p-6 text-sm text-destructive",children:v.error instanceof Error?v.error.message:"Failed to load agents"});const N=v.data??[],m=N.some(a=>a.id===o)?o??null:null,F=a=>de(t==null?void 0:t.issuePrefix,a),$=b({queryKey:m?["gtm","agent-detail",m]:["gtm","agent-detail","none"],queryFn:()=>Z.get(m,s),enabled:!!s&&!!m});b({queryKey:m?["gtm","agent-runtime",m]:["gtm","agent-runtime","none"],queryFn:()=>Z.runtimeState(m,s),enabled:!!s&&!!m}),b({queryKey:m?["gtm","agent-sessions",m]:["gtm","agent-sessions","none"],queryFn:()=>Z.taskSessions(m,s),enabled:!!s&&!!m}),b({queryKey:m?["gtm","agent-runs",m]:["gtm","agent-runs","none"],queryFn:()=>Qe.list(s,m,8),enabled:!!s&&!!m});const[n,k]=u.useState(""),[M,B]=u.useState(""),[l,g]=u.useState(""),[se,ue]=u.useState(""),[te,me]=u.useState(""),[ne,xe]=u.useState(!1);Q({mutationFn:()=>{var a;return Z.update(m,{name:n,title:M,adapterConfig:{...((a=$.data)==null?void 0:a.adapterConfig)??{},command:l,cwd:se,model:te,chrome:ne}},s)},onSuccess:async()=>{await Promise.all([d.invalidateQueries({queryKey:w.agents(s)}),d.invalidateQueries({queryKey:["gtm","agent-detail",m]})]),r({title:"Agent updated",body:"Agent configuration saved.",tone:"success"})},onError:a=>{r({title:"Agent update failed",body:a instanceof Error?a.message:"Failed to update agent",tone:"error"})}}),Q({mutationFn:()=>{var a;return Z.testEnvironment(s,"claude_local",{adapterConfig:{...((a=$.data)==null?void 0:a.adapterConfig)??{},command:l,cwd:se,model:te,chrome:ne}})},onSuccess:a=>{var ae;const J=((ae=a.checks[0])==null?void 0:ae.message)??"Adapter test complete";r({title:`Binding ${a.status}`,body:J,tone:a.status==="fail"?"error":a.status==="warn"?"warn":"success"})},onError:a=>{r({title:"Binding test failed",body:a instanceof Error?a.message:"Failed to test binding",tone:"error"})}}),Q({mutationFn:()=>Z.loginWithClaude(m,s),onSuccess:a=>{r({title:"Claude login probe complete",body:a.loginUrl??a.stderr??a.stdout??"Claude login checked.",tone:a.loginUrl?"warn":"success"})},onError:a=>{r({title:"Claude login failed",body:a instanceof Error?a.message:"Failed to run Claude login",tone:"error"})}}),Q({mutationFn:()=>Z.resetSession(m,null,s),onSuccess:async()=>{await d.invalidateQueries({queryKey:["gtm","agent-sessions",m]}),r({title:"Session reset",body:"Agent task session reset.",tone:"success"})}});const D=$.data,O=(D==null?void 0:D.adapterConfig)??{};return u.useEffect(()=>{D&&(k(D.name),B(D.title??""),g(String(O.command??"claude")),ue(String(O.cwd??"")),me(String(O.model??"claude-sonnet-4-6")),xe(!!(O.chrome??!1)))},[D,O.command,O.cwd,O.model,O.chrome]),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Agents"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"GTM-only agent inventory and controls."})]}),e.jsx(x,{onClick:()=>p(!0),children:"New Agent"})]}),e.jsx(K,{children:e.jsx(E,{className:"p-0",children:N.length===0?e.jsx("div",{className:"p-6 text-sm text-muted-foreground",children:"No GTM agents configured yet."}):e.jsx("div",{className:"divide-y divide-border",children:N.map(a=>e.jsxs("div",{className:"flex flex-col gap-3 px-6 py-4 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx(U,{to:F(`/agents/${a.id}`),className:"truncate font-medium hover:underline",children:a.name}),e.jsx("p",{className:"truncate text-sm text-muted-foreground",children:a.title??a.role})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(_,{variant:"outline",children:a.adapterType}),e.jsx(_,{variant:"outline",children:a.status}),e.jsx(x,{size:"icon-sm",variant:"outline",asChild:!0,"aria-label":`Open settings for ${a.name}`,children:e.jsx(U,{to:F(`/agents/${a.id}`),children:e.jsx(Ze,{className:"h-4 w-4"})})}),e.jsx(x,{size:"sm",variant:"outline",onClick:()=>R.mutate({action:"invoke",agentId:a.id}),children:"Run"}),a.status==="paused"?e.jsx(x,{size:"sm",variant:"outline",onClick:()=>R.mutate({action:"resume",agentId:a.id}),children:"Resume"}):e.jsx(x,{size:"sm",variant:"outline",onClick:()=>R.mutate({action:"pause",agentId:a.id}),children:"Pause"})]})]},a.id))})})}),e.jsx(je,{open:h,onOpenChange:p,children:e.jsxs(fe,{children:[e.jsxs(ye,{children:[e.jsx(be,{children:"Create GTM agent"}),e.jsx(ve,{children:"Hire a local or browser-facing GTM agent without entering the DX agent builder."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Agent name"}),e.jsx(W,{value:j,onChange:a=>f(a.target.value),placeholder:"SDR Browser Agent"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Title"}),e.jsx(W,{value:S,onChange:a=>q(a.target.value),placeholder:"Outbound automation"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Adapter"}),e.jsx("select",{className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 text-sm",value:A,onChange:a=>P(a.target.value),children:at.map(a=>e.jsx("option",{value:a.value,children:a.label},a.value))})]})]}),e.jsxs(Ne,{children:[e.jsx(x,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),e.jsx(x,{onClick:()=>I.mutate(),disabled:!j.trim()||I.isPending,children:"Create Agent"})]})]})})]})}function gt(){const{selectedCompanyId:s,selectedCompany:t}=Y(),{ticketId:o}=Ge(),{pushToast:r}=Se(),d=we(),[h,p]=u.useState(!1),[j,f]=u.useState(""),[S,q]=u.useState(""),[A,P]=u.useState(""),v=b({queryKey:s?w.tickets(s):["gtm","tickets","none"],queryFn:()=>y.listTickets(s),enabled:!!s}),I=Q({mutationFn:()=>y.createTicket(s,{title:j,description:S,instructions:A,stageOrder:[...it]}),onSuccess:async()=>{p(!1),f(""),q(""),P(""),await d.invalidateQueries({queryKey:w.tickets(s)}),await d.invalidateQueries({queryKey:w.inbox(s)}),r({title:"Campaign created",body:"The GTM campaign is ready for queue work.",tone:"success"})},onError:g=>{r({title:"Campaign creation failed",body:g instanceof Error?g.message:"Failed to create campaign",tone:"error"})}});if(!s)return e.jsx("div",{className:"rounded-lg border border-border bg-card p-6 text-sm text-muted-foreground",children:"Select a company to manage GTM campaigns."});if(v.isLoading)return e.jsx("div",{className:"py-8 text-sm text-muted-foreground",children:"Loading campaigns…"});if(v.error)return e.jsx("div",{className:"rounded-lg border border-destructive/30 bg-card p-6 text-sm text-destructive",children:v.error instanceof Error?v.error.message:"Failed to load campaigns"});const R=v.data??[],N=R.some(g=>g.id===o)?o??null:null,m=g=>de(t==null?void 0:t.issuePrefix,g),F=b({queryKey:N?["gtm","ticket-detail",N]:["gtm","ticket-detail","none"],queryFn:()=>Pe.get(s,N),enabled:!!s&&!!N}),[$,n]=u.useState(""),[k,M]=u.useState(""),[B,l]=u.useState("");return u.useEffect(()=>{const g=F.data;g&&(n(g.title),M(g.description??""),l(g.instructions??""))},[F.data]),Q({mutationFn:()=>Pe.update(s,N,{title:$,description:k}),onSuccess:async()=>{await Promise.all([d.invalidateQueries({queryKey:w.tickets(s)}),d.invalidateQueries({queryKey:["gtm","ticket-detail",N]})]),r({title:"Campaign updated",body:"Campaign controls saved.",tone:"success"})}}),Q({mutationFn:()=>Pe.advanceStage(s,N),onSuccess:async()=>{await Promise.all([d.invalidateQueries({queryKey:w.tickets(s)}),d.invalidateQueries({queryKey:["gtm","ticket-detail",N]})]),r({title:"Campaign advanced",body:"Moved campaign to the next stage.",tone:"success"})}}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Campaigns"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"GTM workflow tickets only."})]}),e.jsx(x,{onClick:()=>p(!0),children:"New Campaign"})]}),e.jsx(K,{children:e.jsx(E,{className:"p-0",children:R.length===0?e.jsx("div",{className:"p-6 text-sm text-muted-foreground",children:"No GTM campaigns yet."}):e.jsx("div",{className:"divide-y divide-border",children:R.map(g=>e.jsxs("div",{className:"flex items-center justify-between gap-4 px-6 py-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx(U,{to:m(`/tickets/${g.id}`),className:"truncate font-medium hover:underline",children:g.title}),e.jsx("p",{className:"truncate text-sm text-muted-foreground",children:g.identifier})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(_,{variant:"outline",children:g.currentStage}),e.jsx(_,{variant:"outline",children:g.status})]})]},g.id))})})}),e.jsx(je,{open:h,onOpenChange:p,children:e.jsxs(fe,{children:[e.jsxs(ye,{children:[e.jsx(be,{children:"Create campaign"}),e.jsx(ve,{children:"Create a GTM workflow ticket without repo, PR, or board planning bindings."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Campaign title"}),e.jsx(W,{value:j,onChange:g=>f(g.target.value),placeholder:"Launch outbound sequence for ICP A"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Description"}),e.jsx(Fe,{value:S,onChange:g=>q(g.target.value),placeholder:"Goal, audience, timing, constraints."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Instructions"}),e.jsx(Fe,{value:A,onChange:g=>P(g.target.value),placeholder:"Execution instructions for GTM agents."})]})]}),e.jsxs(Ne,{children:[e.jsx(x,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),e.jsx(x,{onClick:()=>I.mutate(),disabled:!j.trim()||I.isPending,children:"Create Campaign"})]})]})})]})}function oe(){const{selectedCompanyId:s,selectedCompany:t}=Y(),{pushToast:o}=Se(),r=we(),[d,h]=u.useState(!1),[p,j]=u.useState(""),[f,S]=u.useState(""),[q,A]=u.useState("medium"),[P,v]=u.useState(""),[I,R]=u.useState(""),N=b({queryKey:s?w.tickets(s):["gtm","tickets","none"],queryFn:()=>y.listTickets(s),enabled:!!s}),m=b({queryKey:s?w.agents(s):["gtm","agents","none"],queryFn:()=>y.listAgents(s),enabled:!!s}),F=b({queryKey:s?w.issues(s):["gtm","issues","none"],queryFn:()=>y.listIssues(s),enabled:!!s}),$=Q({mutationFn:()=>y.createIssue(s,{title:p,description:f,priority:q,ticketId:P,assigneeAgentId:I||null}),onSuccess:async()=>{h(!1),j(""),S(""),A("medium"),v(""),R(""),await r.invalidateQueries({queryKey:w.issues(s)}),await r.invalidateQueries({queryKey:w.inbox(s)}),o({title:"Issue created",body:"The GTM queue item is ready for execution.",tone:"success"})},onError:l=>{o({title:"Issue creation failed",body:l instanceof Error?l.message:"Failed to create issue",tone:"error"})}});if(!s)return e.jsx("div",{className:"rounded-lg border border-border bg-card p-6 text-sm text-muted-foreground",children:"Select a company to manage the GTM queue."});if(F.isLoading||N.isLoading||m.isLoading)return e.jsx("div",{className:"py-8 text-sm text-muted-foreground",children:"Loading queue…"});if(F.error||N.error||m.error){const l=F.error??N.error??m.error;return e.jsx("div",{className:"rounded-lg border border-destructive/30 bg-card p-6 text-sm text-destructive",children:l instanceof Error?l.message:"Failed to load queue"})}const n=F.data??[],k=N.data??[],M=m.data??[],B=l=>de(t==null?void 0:t.issuePrefix,l);return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Queue"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Queue work scoped to GTM campaigns only."})]}),e.jsx(x,{onClick:()=>h(!0),disabled:k.length===0,children:"New Issue"})]}),e.jsx(K,{children:e.jsx(E,{className:"p-0",children:n.length===0?e.jsx("div",{className:"p-6 text-sm text-muted-foreground",children:k.length===0?"Create a campaign first, then add queue work.":"No GTM issues in queue."}):e.jsx("div",{className:"divide-y divide-border",children:n.map(l=>e.jsxs("div",{className:"flex items-center justify-between gap-4 px-6 py-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx(U,{to:B(`/issues/${l.id}`),className:"truncate font-medium hover:underline",children:l.title}),e.jsx("p",{className:"truncate text-sm text-muted-foreground",children:l.identifier??l.id})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(_,{variant:"outline",children:l.priority}),e.jsx(_,{variant:"outline",children:l.status})]})]},l.id))})})}),e.jsx(je,{open:d,onOpenChange:h,children:e.jsxs(fe,{children:[e.jsxs(ye,{children:[e.jsx(be,{children:"Create queue issue"}),e.jsx(ve,{children:"Assign GTM work to a campaign and optionally bind it to a GTM agent."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Issue title"}),e.jsx(W,{value:p,onChange:l=>j(l.target.value),placeholder:"Draft 50 outbound messages"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Campaign"}),e.jsxs("select",{className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 text-sm",value:P,onChange:l=>v(l.target.value),children:[e.jsx("option",{value:"",children:"Select campaign"}),k.map(l=>e.jsx("option",{value:l.id,children:l.title},l.id))]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Assign agent"}),e.jsxs("select",{className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 text-sm",value:I,onChange:l=>R(l.target.value),children:[e.jsx("option",{value:"",children:"Unassigned"}),M.map(l=>e.jsx("option",{value:l.id,children:l.name},l.id))]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Priority"}),e.jsx("select",{className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 text-sm",value:q,onChange:l=>A(l.target.value),children:rt.map(l=>e.jsx("option",{value:l,children:l},l))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"Description"}),e.jsx(Fe,{value:f,onChange:l=>S(l.target.value),placeholder:"Context, acceptance criteria, and execution notes."})]})]}),e.jsxs(Ne,{children:[e.jsx(x,{variant:"outline",onClick:()=>h(!1),children:"Cancel"}),e.jsx(x,{onClick:()=>$.mutate(),disabled:!p.trim()||!P||$.isPending,children:"Create Issue"})]})]})})]})}function le(){const{selectedCompanyId:s,selectedCompany:t}=Y(),o=we(),[r,d]=u.useState(!1),h=b({queryKey:s?w.agents(s):["gtm","agents","none"],queryFn:()=>y.listAgents(s),enabled:!!s}),p=b({queryKey:s?w.issues(s):["gtm","issues","none"],queryFn:()=>y.listIssues(s),enabled:!!s}),j=b({queryKey:s?["gtm","inbox-runs",s]:["gtm","inbox-runs","none"],queryFn:()=>y.listRuns(s),enabled:!!s}),f=Q({mutationFn:n=>Qe.cancel(n),onSuccess:async()=>{s&&await Promise.all([o.invalidateQueries({queryKey:["gtm","inbox-runs",s]}),o.invalidateQueries({queryKey:w.inbox(s)})])}}),S=Q({mutationFn:async n=>{const k=await Z.wakeup(n.agentId,{source:"on_demand",triggerDetail:"manual",reason:"retry_failed_gtm_run",payload:ot(n)},s);if(!("id"in k))throw new Error("Retry was skipped because the agent is not currently invokable.");return k},onSuccess:async()=>{s&&await Promise.all([o.invalidateQueries({queryKey:["gtm","inbox-runs",s]}),o.invalidateQueries({queryKey:w.inbox(s)})])}});if(!s)return e.jsx("div",{className:"rounded-lg border border-border bg-card p-6 text-sm text-muted-foreground",children:"Select a company to open the GTM inbox."});if(h.isLoading||p.isLoading||j.isLoading)return e.jsx("div",{className:"py-8 text-sm text-muted-foreground",children:"Loading inbox…"});const q=h.error??p.error??j.error;if(q)return e.jsx("div",{className:"rounded-lg border border-destructive/30 bg-card p-6 text-sm text-destructive",children:q instanceof Error?q.message:"Failed to load inbox"});const A=[...p.data??[]].sort((n,k)=>new Date(k.updatedAt).getTime()-new Date(n.updatedAt).getTime()),P=new Map((h.data??[]).map(n=>[n.id,n.name])),v=[...j.data??[]].sort((n,k)=>new Date(k.updatedAt).getTime()-new Date(n.updatedAt).getTime()),I=n=>de(t==null?void 0:t.issuePrefix,n),R=new Map(A.map(n=>[n.id,n])),N=new Set(v.filter(n=>n.status==="running"||n.status==="queued").map(n=>Be(n)).filter(n=>!!n)),m=v.filter(n=>n.status==="running"||n.status==="queued"),F=v.filter(n=>!m.includes(n)).slice(0,10),$=A.slice(0,5);return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Inbox"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Live runs, assigned work, and issue activity for GTM agents."})]}),e.jsxs(K,{children:[e.jsxs(z,{className:"flex flex-row items-start justify-between gap-4 space-y-0",children:[e.jsxs("div",{children:[e.jsx(V,{children:"Assigned issues"}),e.jsx(H,{children:"Issue activity for GTM campaigns and GTM-assigned agents."})]}),e.jsx(x,{asChild:!0,variant:"outline",size:"sm",className:"shrink-0",children:e.jsx(U,{to:I("/issues"),children:"View more"})})]}),e.jsx(E,{className:"p-0",children:A.length===0?e.jsx("div",{className:"p-6 text-sm text-muted-foreground",children:"No GTM issues yet. Runs without issue assignments still appear above."}):e.jsx("div",{className:"divide-y divide-border",children:$.map(n=>e.jsx(Is,{issue:n,desktopMetaLeading:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"hidden sm:inline-flex",children:e.jsx(As,{priority:n.priority})}),e.jsx("span",{className:"hidden shrink-0 sm:inline-flex",children:e.jsx(Ps,{status:n.status})}),e.jsx("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:n.identifier??n.id.slice(0,8)}),N.has(n.id)?e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-blue-500/10 px-1.5 py-0.5 sm:gap-1.5 sm:px-2",children:[e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"absolute inline-flex h-full w-full animate-pulse rounded-full bg-blue-400 opacity-75"}),e.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-blue-500"})]}),e.jsx("span",{className:"hidden text-[11px] font-medium text-blue-600 dark:text-blue-400 sm:inline",children:"Live"})]}):null]}),mobileMeta:`updated ${Ue(n.updatedAt)}`,trailingMeta:`updated ${Ue(n.updatedAt)}`},n.id))})})]}),e.jsxs(K,{children:[e.jsxs(z,{className:"flex flex-row items-start justify-between gap-4 space-y-0",children:[e.jsxs("div",{children:[e.jsx(V,{children:"Live runs"}),e.jsx(H,{children:"Manage active and recent GTM agent execution directly from the inbox."})]}),e.jsx(x,{variant:"ghost",size:"sm",className:"shrink-0",onClick:()=>d(n=>!n),children:e.jsx(Rs,{className:Je("h-4 w-4 transition-transform",r?"rotate-180":"")})})]}),r?e.jsx(E,{className:"space-y-3",children:v.length===0?e.jsx("div",{className:"text-sm text-muted-foreground",children:"No GTM runs yet."}):e.jsx(e.Fragment,{children:(m.length>0?m:F).map(n=>{const k=Be(n),M=k?R.get(k)??null:null,B=n.status==="running"||n.status==="queued",l=n.status==="failed"||n.status==="timed_out";return e.jsx("div",{className:"rounded-md border border-border p-4",children:e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[e.jsxs("div",{className:"min-w-0 space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(Fs,{status:n.status}),e.jsx("span",{className:"text-sm font-medium",children:n.invocationSource.replaceAll("_"," ")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:Ms(n.updatedAt)})]}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:["Agent ",e.jsx("span",{className:"font-medium text-foreground",children:P.get(n.agentId)??n.agentId}),n.triggerDetail?e.jsxs(e.Fragment,{children:[" · trigger ",n.triggerDetail]}):null]}),M?e.jsxs(U,{to:I(`/issues/${M.id}`),className:"block text-sm font-medium hover:underline",children:[M.identifier??M.id.slice(0,8)," · ",M.title]}):e.jsx("div",{className:"text-sm text-muted-foreground",children:"No assigned GTM issue linked to this run yet."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(x,{asChild:!0,variant:"outline",size:"sm",children:e.jsxs(U,{to:I(`/agents/${n.agentId}/runs/${n.id}`),children:[e.jsx(ss,{className:"mr-1.5 h-3.5 w-3.5"}),"View run"]})}),e.jsxs(x,{variant:"outline",size:"sm",onClick:()=>S.mutate(n),disabled:!l||S.isPending,children:[e.jsx(st,{className:"mr-1.5 h-3.5 w-3.5"}),"Retry"]}),e.jsx(x,{variant:"outline",size:"sm",onClick:()=>f.mutate(n.id),disabled:!B||f.isPending,children:"Pause"})]})]})},n.id)})})}):null]})]})}function ht(){const{companies:s,selectedCompany:t}=Y(),{openOnboarding:o}=Me();return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Workspace Management"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Company selection and GTM workspace setup."})]}),e.jsx(x,{onClick:()=>o(),children:"Add Company"})]}),e.jsx(K,{children:e.jsx(E,{className:"divide-y divide-border p-0",children:s.map(r=>e.jsxs("div",{className:"flex items-center justify-between gap-4 px-6 py-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:r.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r.issuePrefix})]}),(t==null?void 0:t.id)===r.id?e.jsx(_,{children:"Active"}):e.jsx(_,{variant:"outline",children:"Available"})]},r.id))})})]})}function pt(){const s=b({queryKey:["gtm","profile"],queryFn:()=>y.getProfile()}),t=b({queryKey:["gtm","knowledge"],queryFn:()=>y.getKnowledge()}),o=b({queryKey:["gtm","connectors"],queryFn:()=>y.getConnectors()}),r=b({queryKey:["gtm","workflow"],queryFn:()=>y.getWorkflow()});if(s.isLoading||t.isLoading||o.isLoading||r.isLoading)return e.jsx("div",{className:"py-8 text-sm text-muted-foreground",children:"Loading settings…"});const d=s.error??t.error??o.error??r.error;if(d)return e.jsx("div",{className:"rounded-lg border border-destructive/30 bg-card p-6 text-sm text-destructive",children:d instanceof Error?d.message:"Failed to load settings"});const h=s.data,p=t.data,j=o.data,f=r.data;return e.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[e.jsxs(K,{children:[e.jsxs(z,{children:[e.jsx(V,{children:"Profile"}),e.jsx(H,{children:"Visible GTM workspace configuration."})]}),e.jsxs(E,{className:"space-y-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Workspace:"})," ",h.workspace]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Account:"})," ",h.account]}),e.jsxs("div",{className:"break-all",children:[e.jsx("span",{className:"text-muted-foreground",children:"App:"})," ",h.appConnection]})]})]}),e.jsxs(K,{children:[e.jsxs(z,{children:[e.jsx(V,{children:"Workflow"}),e.jsx(H,{children:"Runner and launch state."})]}),e.jsxs(E,{className:"space-y-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Label:"})," ",f.label]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Status:"})," ",f.status]}),e.jsxs("div",{className:"break-all",children:[e.jsx("span",{className:"text-muted-foreground",children:"Runner:"})," ",f.runner]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Last Run:"})," ",f.lastRunAt]})]})]}),e.jsxs(K,{children:[e.jsxs(z,{children:[e.jsx(V,{children:"Knowledge"}),e.jsx(H,{children:"Knowledge group visible to GTM."})]}),e.jsxs(E,{className:"space-y-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Group:"})," ",p.group.label]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Items:"})," ",p.group.itemCount]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Connector:"})," ",p.group.connector]})]})]}),e.jsxs(K,{children:[e.jsxs(z,{children:[e.jsx(V,{children:"Connectors"}),e.jsx(H,{children:"Connector visibility for GTM."})]}),e.jsx(E,{className:"space-y-3 text-sm",children:j.length===0?e.jsx("p",{className:"text-muted-foreground",children:"No connectors configured."}):j.map(S=>e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:S.label}),e.jsx("p",{className:"text-muted-foreground",children:S.summary})]},S.label))})]})]})}function jt(){const{selectedCompany:s}=Y(),{theme:t,toggleTheme:o}=fs(),{sidebarOpen:r,setSidebarOpen:d}=ys(),h=Ce(),p=u.useMemo(()=>[{to:"/workspace",label:"Workspace",icon:He},{to:"/tickets",label:"Campaigns",icon:Ye},{to:"/agents/all",label:"Agents",icon:Xe},{to:"/issues",label:"Queue",icon:ts},{to:"/inbox",label:"Inbox",icon:bs},{to:"/companies",label:"Companies",icon:vs},{to:"/company/settings",label:"Settings",icon:Ze}],[]),j=f=>de(s==null?void 0:s.issuePrefix,f);return e.jsxs("div",{className:"bg-background text-foreground pt-[env(safe-area-inset-top)] md:flex md:h-dvh md:overflow-hidden",children:[r?e.jsx("button",{type:"button",className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>d(!1),"aria-label":"Close GTM navigation"}):null,e.jsxs("aside",{className:Je("fixed inset-y-0 left-0 z-50 flex w-72 flex-col border-r border-border bg-background transition-transform duration-150 md:static md:translate-x-0",r?"translate-x-0":"-translate-x-full"),children:[e.jsxs("div",{className:"flex h-14 items-center justify-between border-b border-border px-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Go To Market"}),e.jsx("p",{className:"truncate text-sm font-semibold",children:(s==null?void 0:s.name)??"Workspace"})]}),e.jsx(x,{variant:"ghost",size:"icon-sm",onClick:o,"aria-label":"Toggle theme",children:t==="dark"?e.jsx(Ns,{className:"h-4 w-4"}):e.jsx(ws,{className:"h-4 w-4"})})]}),e.jsx("nav",{className:"flex-1 overflow-y-auto p-3",children:e.jsx("div",{className:"flex flex-col gap-1",children:p.map(f=>{const S=f.icon,q=h.pathname.includes(f.to);return e.jsx(x,{asChild:!0,variant:q?"secondary":"ghost",className:"justify-start",onClick:()=>d(!1),children:e.jsxs(U,{to:j(f.to),children:[e.jsx(S,{className:"h-4 w-4"}),f.label]})},f.to)})})})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col md:h-full",children:[e.jsx(ks,{}),e.jsx("div",{className:"min-h-0 flex-1 overflow-auto",children:e.jsx("main",{id:"main-content",tabIndex:-1,className:"p-4 md:p-6",children:e.jsx(es,{})})})]}),e.jsx(Cs,{})]})}function ft(){return e.jsxs(e.Fragment,{children:[e.jsx(i,{index:!0,element:e.jsx(X,{to:"workspace",replace:!0})}),e.jsx(i,{path:"dashboard",element:e.jsx(X,{to:"../workspace",replace:!0})}),e.jsx(i,{path:"workspace",element:e.jsx(xt,{})}),e.jsx(i,{path:"onboarding",element:e.jsx(rs,{})}),e.jsx(i,{path:"companies",element:e.jsx(ht,{})}),e.jsx(i,{path:"company/settings",element:e.jsx(pt,{})}),e.jsx(i,{path:"agents",element:e.jsx(X,{to:"../agents/all",replace:!0})}),e.jsx(i,{path:"agents/all",element:e.jsx(he,{})}),e.jsx(i,{path:"agents/active",element:e.jsx(he,{})}),e.jsx(i,{path:"agents/paused",element:e.jsx(he,{})}),e.jsx(i,{path:"agents/error",element:e.jsx(he,{})}),e.jsx(i,{path:"agents/new",element:e.jsx(he,{})}),e.jsx(i,{path:"agents/:agentId",element:e.jsx(Ae,{})}),e.jsx(i,{path:"agents/:agentId/:tab",element:e.jsx(Ae,{})}),e.jsx(i,{path:"agents/:agentId/runs/:runId",element:e.jsx(Ae,{})}),e.jsx(i,{path:"tickets",element:e.jsx(gt,{})}),e.jsx(i,{path:"tickets/:ticketId",element:e.jsx(ps,{})}),e.jsx(i,{path:"issues",element:e.jsx(oe,{})}),e.jsx(i,{path:"issues/all",element:e.jsx(oe,{})}),e.jsx(i,{path:"issues/active",element:e.jsx(oe,{})}),e.jsx(i,{path:"issues/backlog",element:e.jsx(oe,{})}),e.jsx(i,{path:"issues/done",element:e.jsx(oe,{})}),e.jsx(i,{path:"issues/recent",element:e.jsx(oe,{})}),e.jsx(i,{path:"issues/:issueId",element:e.jsx(js,{})}),e.jsx(i,{path:"activity",element:e.jsx(le,{})}),e.jsx(i,{path:"inbox",element:e.jsx(le,{})}),e.jsx(i,{path:"inbox/recent",element:e.jsx(le,{})}),e.jsx(i,{path:"inbox/unread",element:e.jsx(le,{})}),e.jsx(i,{path:"inbox/all",element:e.jsx(le,{})}),e.jsx(i,{path:"inbox/new",element:e.jsx(le,{})}),e.jsx(i,{path:"*",element:e.jsx(Re,{scope:"board"})})]})}function yt(){return e.jsxs(ms,{children:[e.jsx(i,{path:"/",element:e.jsx(X,{to:ce(),replace:!0})}),e.jsx(i,{path:"auth",element:e.jsx(xs,{})}),e.jsx(i,{path:"board-claim/:token",element:e.jsx(gs,{})}),e.jsx(i,{path:"invite/:token",element:e.jsx(hs,{})}),e.jsxs(i,{element:e.jsx(ct,{}),children:[e.jsx(i,{path:G,element:e.jsx(ut,{})}),e.jsx(i,{path:`${G}/onboarding`,element:e.jsx(rs,{})}),e.jsx(i,{path:`${G}/companies`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/tickets`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/tickets/:ticketId`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/issues`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/issues/:issueId`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/activity`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/inbox`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/agents`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/agents/new`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/agents/:agentId`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/agents/:agentId/:tab`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/agents/:agentId/runs/:runId`,element:e.jsx(L,{})}),e.jsx(i,{path:`${G}/:companyPrefix`,element:e.jsx(jt,{}),children:ft()}),e.jsx(i,{path:"dx/*",element:e.jsx(Re,{scope:"global"})}),e.jsx(i,{path:"*",element:e.jsx(Re,{scope:"global"})})]})]})}Zs(us,Js);const bt=new Es({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!0}}});function wt(){return e.jsx(Ks,{client:bt,children:e.jsx($s,{children:e.jsx(Ls,{children:e.jsx(Ds,{children:e.jsx(Os,{children:e.jsx(Us,{children:e.jsx(_s,{children:e.jsx(Bs,{children:e.jsx(Ws,{children:e.jsx(zs,{children:e.jsx(Vs,{children:e.jsxs(Hs,{children:[e.jsx(yt,{}),e.jsx(Ys,{}),e.jsx(Xs,{})]})})})})})})})})})})})})}export{wt as GtmRoot};
@@ -1 +0,0 @@
1
- import{s as e,b as r,a,S as s}from"./chunk-DI55MBZ5-C3HY62-t.js";import{_ as i}from"./mermaid.core-BRfo14rF.js";import"./chunk-55IACEB6-Duej5TeT.js";import"./chunk-QN33PNHL-DA7w4NyY.js";import"./index-hB0NRj8J.js";var p={parser:a,get db(){return new s(2)},renderer:r,styles:e,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{p as diagram};