@overlordai/server 1.0.150 → 1.0.151

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 (148) hide show
  1. package/database/migrations/015-automation-template-taxonomy.sql +99 -0
  2. package/dist/adapters/lark/lark.controller.js +1 -1
  3. package/dist/adapters/lark/lark.controller.js.map +1 -1
  4. package/dist/adapters/slack/slack.controller.d.ts.map +1 -1
  5. package/dist/adapters/slack/slack.controller.js +4 -1
  6. package/dist/adapters/slack/slack.controller.js.map +1 -1
  7. package/dist/automation/automation-template.service.d.ts +4 -1
  8. package/dist/automation/automation-template.service.d.ts.map +1 -1
  9. package/dist/automation/automation-template.service.js +9 -2
  10. package/dist/automation/automation-template.service.js.map +1 -1
  11. package/dist/automation/builtin-templates.d.ts +14 -0
  12. package/dist/automation/builtin-templates.d.ts.map +1 -0
  13. package/dist/automation/builtin-templates.js +327 -0
  14. package/dist/automation/builtin-templates.js.map +1 -0
  15. package/dist/database/repositories/automation.repository.d.ts +12 -0
  16. package/dist/database/repositories/automation.repository.d.ts.map +1 -1
  17. package/dist/database/repositories/automation.repository.js +63 -2
  18. package/dist/database/repositories/automation.repository.js.map +1 -1
  19. package/dist/dispatcher/dispatcher.service.d.ts.map +1 -1
  20. package/dist/dispatcher/dispatcher.service.js +6 -1
  21. package/dist/dispatcher/dispatcher.service.js.map +1 -1
  22. package/dist/dispatcher/dispatcher.types.d.ts +2 -0
  23. package/dist/dispatcher/dispatcher.types.d.ts.map +1 -1
  24. package/dist/notifier/notification-consumer.d.ts +1 -8
  25. package/dist/notifier/notification-consumer.d.ts.map +1 -1
  26. package/dist/notifier/notification-consumer.js +4 -58
  27. package/dist/notifier/notification-consumer.js.map +1 -1
  28. package/dist/notifier/template.service.d.ts.map +1 -1
  29. package/dist/notifier/template.service.js +14 -7
  30. package/dist/notifier/template.service.js.map +1 -1
  31. package/dist/web/automation.controller.js +1 -1
  32. package/dist/web/automation.controller.js.map +1 -1
  33. package/package.json +4 -4
  34. package/public/assets/{AccessTokensPage-Cxf8lX2l.js → AccessTokensPage-DOQYcLSs.js} +1 -1
  35. package/public/assets/{AdminPage-CYbg2MAm.js → AdminPage-vaAs4nmP.js} +1 -1
  36. package/public/assets/{AgentCliPage-B927spLk.js → AgentCliPage-BXGIfvSo.js} +1 -1
  37. package/public/assets/{ApiReferencePage-Dg2PEPIj.js → ApiReferencePage-ChGlKtFZ.js} +1 -1
  38. package/public/assets/{ArchitecturePage-DpdvWol1.js → ArchitecturePage-BDo0Sz0V.js} +1 -1
  39. package/public/assets/{AuditLogPage-DC0cHKgp.js → AuditLogPage-CDonhWBh.js} +1 -1
  40. package/public/assets/AutomationCreatePage-C1_2qnf5.js +1 -0
  41. package/public/assets/{AutomationDetailPage-Dzkc_ZgE.js → AutomationDetailPage-BruGQNkV.js} +1 -1
  42. package/public/assets/{AutomationEditPage-HuEyfsd4.js → AutomationEditPage-BVlx-7AI.js} +1 -1
  43. package/public/assets/AutomationListPage-BprhRKdu.js +26 -0
  44. package/public/assets/{AutomationRunDetailPage-DpbJ8WGA.js → AutomationRunDetailPage-BWRONm49.js} +2 -2
  45. package/public/assets/{BindPlatformPage-BsEqhv2c.js → BindPlatformPage-B-jO83qZ.js} +1 -1
  46. package/public/assets/BotIntegrationPage-CfWOXPnJ.js +1 -0
  47. package/public/assets/{BotManage-ClYWS35N.js → BotManage-Dt4gvWW6.js} +1 -1
  48. package/public/assets/{BotSetupPage-i-AQ7pd6.js → BotSetupPage-BAtr0Wem.js} +1 -1
  49. package/public/assets/ChangelogPage-CbYmEPo0.js +1 -0
  50. package/public/assets/{CliReferencePage-DE7sjttz.js → CliReferencePage-DzBrPSnn.js} +1 -1
  51. package/public/assets/ConfirmStageDialog-CJ8pWink.js +6 -0
  52. package/public/assets/{DeploymentPage-DSE4lkjS.js → DeploymentPage-DngrSHQT.js} +1 -1
  53. package/public/assets/{DevWorkflowPage-BANLgjo2.js → DevWorkflowPage-BQfJaZyg.js} +1 -1
  54. package/public/assets/{DeveloperManage-D1SXqVFy.js → DeveloperManage-whlVH116.js} +1 -1
  55. package/public/assets/{DeveloperSetupPage-C_2BhtWg.js → DeveloperSetupPage-LrbpgJ2C.js} +1 -1
  56. package/public/assets/DocsIndexPage-vE4yr9Si.js +26 -0
  57. package/public/assets/{DocsLayout-DF24edES.js → DocsLayout-ByGEAOqk.js} +1 -1
  58. package/public/assets/{DocsPrimitives-m1oUERel.js → DocsPrimitives-DCBNKtsW.js} +1 -1
  59. package/public/assets/{EditProjectPage-DBMoGsR8.js → EditProjectPage-CjJMof0e.js} +2 -2
  60. package/public/assets/{EmptyState-tRn0r3m4.js → EmptyState-BfgwLg0u.js} +1 -1
  61. package/public/assets/{EnvVariablesPage-C6aJgjAB.js → EnvVariablesPage-D5h_sa-J.js} +1 -1
  62. package/public/assets/{HomePage-Bk-TkaC8.js → HomePage-BfETjlYe.js} +1 -1
  63. package/public/assets/{InfoRow-DNGAuZW7.js → InfoRow-CIwHf1Un.js} +1 -1
  64. package/public/assets/{InstallationPage-D8L9Higi.js → InstallationPage-2uTV3WlY.js} +1 -1
  65. package/public/assets/{LandingPage-DWUNOSPY.js → LandingPage-DMFC0PF_.js} +1 -1
  66. package/public/assets/{LocalDevelopmentPage-EmrG2Khk.js → LocalDevelopmentPage-9g3s63GP.js} +1 -1
  67. package/public/assets/{LoginPage-DGikIseW.js → LoginPage-CXwygPZl.js} +1 -1
  68. package/public/assets/{MetricBar-DJJX8LMi.js → MetricBar-BWuqiydF.js} +1 -1
  69. package/public/assets/{NotFoundPage-C8KIi602.js → NotFoundPage-Cs7ae_Mz.js} +1 -1
  70. package/public/assets/{OnboardingGuide-hzsHrV8w.js → OnboardingGuide-uCrXzgnL.js} +1 -1
  71. package/public/assets/{PermissionsPage-CViv0974.js → PermissionsPage-CVrdX2r2.js} +1 -1
  72. package/public/assets/{PipelineConfigPage-DAL7k_Mn.js → PipelineConfigPage-BxkXW1la.js} +1 -1
  73. package/public/assets/{PipelineEditorPage-c8vBg5bb.js → PipelineEditorPage-DiyMvTIg.js} +2 -2
  74. package/public/assets/{PlanPage-to7JvocS.js → PlanPage-B-NSg434.js} +1 -1
  75. package/public/assets/{ProfilePage-FkoPFABx.js → ProfilePage-CRMCbMyc.js} +1 -1
  76. package/public/assets/{ProjectDetailPage-CLcnGmQC.js → ProjectDetailPage-Bx1DUkpw.js} +3 -3
  77. package/public/assets/{ProjectListPage-xapZ35at.js → ProjectListPage-D1LzmIVf.js} +2 -2
  78. package/public/assets/PtyTerminal-CxBKQBbF.js +38 -0
  79. package/public/assets/{QuickAuth-tYYBxSU8.js → QuickAuth-BMY6Nw6u.js} +1 -1
  80. package/public/assets/{RemoveMemberConfirmDialog-KoNueMWe.js → RemoveMemberConfirmDialog-Da3XlOxO.js} +1 -1
  81. package/public/assets/{ReviewAggregatePage-BTN2bkEA.js → ReviewAggregatePage-mnnW-Nli.js} +2 -2
  82. package/public/assets/{ReviewPage-DKVAeNjP.js → ReviewPage-_pd3mJC1.js} +1 -1
  83. package/public/assets/{Select-ucU6_0EP.js → Select-CaAVBHmI.js} +1 -1
  84. package/public/assets/{SettingsPage-Dv6y5QEu.js → SettingsPage-CsDJ7FS9.js} +1 -1
  85. package/public/assets/{Skeleton-BAYr4eiz.js → Skeleton-CNV0Dyd8.js} +1 -1
  86. package/public/assets/{SkillPage-B3Iw74cZ.js → SkillPage-CQyxaNa5.js} +1 -1
  87. package/public/assets/TaskDetailPage-Dn7Vl2tI.js +21 -0
  88. package/public/assets/{TaskGuidePage-BBFKjc9w.js → TaskGuidePage-Ch465zVv.js} +1 -1
  89. package/public/assets/{TaskListPage-DUUYPpEt.js → TaskListPage-DbQbJMDj.js} +1 -1
  90. package/public/assets/{TaskStatusBadge-BD3WJQkl.js → TaskStatusBadge-Dzloj2eJ.js} +1 -1
  91. package/public/assets/TerminalHomePage-C2bwGFkH.js +6 -0
  92. package/public/assets/TokenManage-mToToJ_g.js +1 -0
  93. package/public/assets/{Tooltip-DfB8CAIs.js → Tooltip-DzkVglKi.js} +1 -1
  94. package/public/assets/{TotpSetupPage-DwXxvB-k.js → TotpSetupPage-Dk00_OYo.js} +1 -1
  95. package/public/assets/{WorkerDetailPage-aLNOgmfW.js → WorkerDetailPage-C8_zfmSR.js} +1 -1
  96. package/public/assets/{WorkerListPage-CrJESAH0.js → WorkerListPage-kKUioe-i.js} +2 -2
  97. package/public/assets/{WorkerOperationsPage-rHLL8hJa.js → WorkerOperationsPage-CBzwbV8I.js} +1 -1
  98. package/public/assets/{WorkerSetupGuidePage-Ckrfo8-b.js → WorkerSetupGuidePage-DvaP5u6N.js} +1 -1
  99. package/public/assets/{WorkerSetupPage-Cwf4AXe9.js → WorkerSetupPage-BD-EAPKM.js} +1 -1
  100. package/public/assets/{agent-type-options-Vn2Ar3HP.js → agent-type-options-BiwwFXJv.js} +1 -1
  101. package/public/assets/{arrow-left-C08vc7G2.js → arrow-left-BnN4eZhK.js} +1 -1
  102. package/public/assets/{arrow-right-CiCC0owG.js → arrow-right-BDaYPEVr.js} +1 -1
  103. package/public/assets/{bot-BpRqYalx.js → bot-jsWsZ197.js} +1 -1
  104. package/public/assets/{chevron-down-54sz-rQX.js → chevron-down-DyqUpmgf.js} +1 -1
  105. package/public/assets/{chevron-left-D9iQafYD.js → chevron-left-D5fJVFiB.js} +1 -1
  106. package/public/assets/{chevron-right-Ccp2bQ3u.js → chevron-right-Bz-j2WmS.js} +1 -1
  107. package/public/assets/{chevron-up-Cm7Jc-Tg.js → chevron-up-DEXIEMJO.js} +1 -1
  108. package/public/assets/{circle-alert-DKHl7f_Q.js → circle-alert-DE06tNOV.js} +1 -1
  109. package/public/assets/{clock-B6V-4VR5.js → clock-DyV22whY.js} +1 -1
  110. package/public/assets/{copy-B-4Hfvcn.js → copy-Dtpgo9EK.js} +1 -1
  111. package/public/assets/{download-3Syugo5K.js → download-DVCPTZuD.js} +1 -1
  112. package/public/assets/{external-link-B4tgsST2.js → external-link-Bbo-dc9z.js} +1 -1
  113. package/public/assets/{git-fork-BhXdgj_k.js → git-fork-A1WGp9ha.js} +1 -1
  114. package/public/assets/index-Du11Fv9c.css +1 -0
  115. package/public/assets/{index-D3EF0BU0.js → index-PZwTchr_.js} +32 -27
  116. package/public/assets/{key-BTztJw3V.js → key-BDx4jfUG.js} +1 -1
  117. package/public/assets/{loader-circle-CPOjAAu7.js → loader-circle-nKG9e8iK.js} +1 -1
  118. package/public/assets/{pencil-eGjyAgrM.js → pencil-Dgj4md4-.js} +1 -1
  119. package/public/assets/{play-BjFnzBVa.js → play-DFj8BMl8.js} +1 -1
  120. package/public/assets/{plus-BwhhTyaX.js → plus-CCF-PMRF.js} +1 -1
  121. package/public/assets/{rotate-ccw-CesPJxB6.js → rotate-ccw-CyltG4Qx.js} +1 -1
  122. package/public/assets/{scroll-text-BcO-tu0h.js → scroll-text-IFQgBRlh.js} +1 -1
  123. package/public/assets/{settings-Cpf4Aw4Z.js → settings-CYtYYzCu.js} +1 -1
  124. package/public/assets/{skip-forward-tHDn4amf.js → skip-forward-Ck7tY58a.js} +1 -1
  125. package/public/assets/{status-colors-BNBcbZVQ.js → status-colors-DDycfcf7.js} +1 -1
  126. package/public/assets/{task-constants-v3cKX5sS.js → task-constants-CSVY_jfk.js} +1 -1
  127. package/public/assets/{task.store-B1f8yuTU.js → task.store-BTXbcXgO.js} +1 -1
  128. package/public/assets/{timer-D4gHmYOk.js → timer-CXsWiTNP.js} +1 -1
  129. package/public/assets/{trash-2-B0gTlwTA.js → trash-2-DXJqRCdo.js} +1 -1
  130. package/public/assets/{useFetch-DqA_6ili.js → useFetch-6R6P2rOm.js} +1 -1
  131. package/public/assets/{users-BDhUOLR9.js → users-BZPY-p6E.js} +1 -1
  132. package/public/assets/{wifi-CpsnZ0me.js → wifi-Bgq95lS8.js} +1 -1
  133. package/public/assets/{workflow-D6VrmpVC.js → workflow-RqNfx4vc.js} +1 -1
  134. package/public/assets/{zap-ChFVfVhi.js → zap-BIwamY7L.js} +1 -1
  135. package/public/index.html +2 -2
  136. package/public/sw.js +1 -1
  137. package/public/assets/AutomationCreatePage-BvFaaM3C.js +0 -1
  138. package/public/assets/AutomationListPage-Ds8g44m8.js +0 -16
  139. package/public/assets/BotIntegrationPage-ClfrH4Nq.js +0 -1
  140. package/public/assets/ChangelogPage-C-xth3KP.js +0 -1
  141. package/public/assets/ConfirmStageDialog-DvTvViy4.js +0 -7
  142. package/public/assets/DocsIndexPage-Ch2Rj0KS.js +0 -26
  143. package/public/assets/PtyTerminal-CvlgzMDa.js +0 -38
  144. package/public/assets/TaskDetailPage-Dm9O3GpZ.js +0 -21
  145. package/public/assets/TerminalHomePage-By_ngoYD.js +0 -6
  146. package/public/assets/TokenManage-BK36rX8P.js +0 -1
  147. package/public/assets/file-text-BfrzBouS.js +0 -6
  148. package/public/assets/index-CdJk2QGi.css +0 -1
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-D3EF0BU0.js";/**
1
+ import{c as e}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as e}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as a}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as o}from"./index-D3EF0BU0.js";/**
1
+ import{c as o}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as e}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as t}from"./index-D3EF0BU0.js";/**
1
+ import{c as t}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as a}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as a}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as o}from"./index-D3EF0BU0.js";/**
1
+ import{c as o}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{W as r,o as e,ab as s,ac as u,a7 as a}from"./index-D3EF0BU0.js";const n={[e.QUEUED]:"var(--text-muted)",[e.ASSIGNED]:"#60a5fa",[e.RUNNING]:"var(--accent)",[e.SUSPENDED]:"var(--warning)",[e.COMPLETED]:"var(--info)",[e.FAILED]:"var(--destructive)",[e.CANCELLED]:"var(--text-muted)"};function v(t){return n[t]??"var(--text-muted)"}const o={[r.ONLINE]:"var(--accent)",[r.OFFLINE]:"var(--destructive)",[r.DRAINING]:"var(--warning)",[r.DECOMMISSIONED]:"var(--text-muted)"};function E(t){return o[t]??"var(--text-muted)"}function x(t){switch(t){case s.ACTIVE:return"text-green-400";case s.DISABLED:return"text-red-400";default:return"text-[var(--text-muted)]"}}function S(t){switch(t){case a.ACTIVE:return"text-green-400";case a.USED:return"text-blue-400";case a.REVOKED:return"text-red-400";case a.EXPIRED:return"text-[var(--text-muted)]";default:return"text-[var(--text-muted)]"}}function d(t){switch(t){case u.ACTIVE:return"text-green-400";case"error":return"text-red-400";default:return"text-[var(--text-muted)]"}}function i(t){return t>.8?"var(--destructive)":t>.6?"var(--warning)":"var(--accent)"}export{v as a,i as b,x as c,d,S as e,E as g,n as t,o as w};
1
+ import{W as r,o as e,aa as s,ab as u,a7 as a}from"./index-PZwTchr_.js";const n={[e.QUEUED]:"var(--text-muted)",[e.ASSIGNED]:"#60a5fa",[e.RUNNING]:"var(--accent)",[e.SUSPENDED]:"var(--warning)",[e.COMPLETED]:"var(--info)",[e.FAILED]:"var(--destructive)",[e.CANCELLED]:"var(--text-muted)"};function v(t){return n[t]??"var(--text-muted)"}const o={[r.ONLINE]:"var(--accent)",[r.OFFLINE]:"var(--destructive)",[r.DRAINING]:"var(--warning)",[r.DECOMMISSIONED]:"var(--text-muted)"};function E(t){return o[t]??"var(--text-muted)"}function x(t){switch(t){case s.ACTIVE:return"text-green-400";case s.DISABLED:return"text-red-400";default:return"text-[var(--text-muted)]"}}function S(t){switch(t){case a.ACTIVE:return"text-green-400";case a.USED:return"text-blue-400";case a.REVOKED:return"text-red-400";case a.EXPIRED:return"text-[var(--text-muted)]";default:return"text-[var(--text-muted)]"}}function d(t){switch(t){case u.ACTIVE:return"text-green-400";case"error":return"text-red-400";default:return"text-[var(--text-muted)]"}}function i(t){return t>.8?"var(--destructive)":t>.6?"var(--warning)":"var(--accent)"}export{v as a,i as b,x as c,d,S as e,E as g,n as t,o as w};
@@ -1 +1 @@
1
- import{o as a,Q as t}from"./index-D3EF0BU0.js";import{a as l}from"./agent-type-options-Vn2Ar3HP.js";const r=[a.COMPLETED,a.FAILED,a.CANCELLED],E=[{value:"feat",label:"feat"},{value:"fix",label:"fix"},{value:"refactor",label:"refactor"},{value:"docs",label:"docs"},{value:"chore",label:"chore"}],o=l(e=>e);[...o];function c(e){return(e??t.CLAUDE).toLowerCase()}export{r as T,E as a,c as g};
1
+ import{o as a,O as t}from"./index-PZwTchr_.js";import{a as l}from"./agent-type-options-BiwwFXJv.js";const r=[a.COMPLETED,a.FAILED,a.CANCELLED],E=[{value:"feat",label:"feat"},{value:"fix",label:"fix"},{value:"refactor",label:"refactor"},{value:"docs",label:"docs"},{value:"chore",label:"chore"}],o=l(e=>e);[...o];function c(e){return(e??t.CLAUDE).toLowerCase()}export{r as T,E as a,c as g};
@@ -1 +1 @@
1
- import{n as i,h as c}from"./index-D3EF0BU0.js";const k=i((a,o)=>({tasks:[],currentTask:null,loading:!1,error:null,nextCursor:null,_fetchTasksAbort:null,_fetchTasksRequestId:0,fetchTasks:async s=>{const t=o()._fetchTasksAbort;t&&t.abort();const e=new AbortController,n=o()._fetchTasksRequestId+1;a({loading:!0,error:null,_fetchTasksAbort:e,_fetchTasksRequestId:n});try{const r={};s!=null&&s.status&&(r.status=s.status),s!=null&&s.projectKey&&(r.projectKey=s.projectKey),s!=null&&s.developerId&&(r.developerId=s.developerId),s!=null&&s.cursor&&(r.cursor=s.cursor),s!=null&&s.limit&&(r.limit=String(s.limit));const l=await c.get("web/tasks",{searchParams:r,signal:e.signal}).json();if(o()._fetchTasksRequestId!==n)return;a({tasks:l.data,nextCursor:l.nextCursor??null,_fetchTasksAbort:null})}catch(r){if(r instanceof DOMException&&r.name==="AbortError")return;o()._fetchTasksRequestId===n&&a({error:r instanceof Error?r.message:"Failed to fetch tasks"})}finally{o()._fetchTasksRequestId===n&&a({loading:!1,_fetchTasksAbort:null})}},fetchTask:async s=>{a({loading:!0,error:null});try{const t=await c.get(`web/tasks/${s}`).json();a({currentTask:t})}catch(t){a({error:t instanceof Error?t.message:"Failed to fetch task"})}finally{a({loading:!1})}},createTask:async s=>{a({error:null});try{const t=await c.post("web/tasks",{json:s}).json();return a(e=>({tasks:[t,...e.tasks]})),t}catch(t){throw a({error:t instanceof Error?t.message:"Failed to create task"}),t}},cancelTask:async s=>{a({error:null});try{await c.post(`web/tasks/${s}/cancel`);const{currentTask:t}=o();(t==null?void 0:t.id)===s&&await o().fetchTask(s)}catch(t){throw a({error:t instanceof Error?t.message:"Failed to cancel task"}),t}},reset:()=>{a({tasks:[],currentTask:null,loading:!1,error:null,nextCursor:null,_fetchTasksAbort:null,_fetchTasksRequestId:0})}}));export{k as u};
1
+ import{n as i,h as c}from"./index-PZwTchr_.js";const k=i((a,o)=>({tasks:[],currentTask:null,loading:!1,error:null,nextCursor:null,_fetchTasksAbort:null,_fetchTasksRequestId:0,fetchTasks:async s=>{const t=o()._fetchTasksAbort;t&&t.abort();const e=new AbortController,n=o()._fetchTasksRequestId+1;a({loading:!0,error:null,_fetchTasksAbort:e,_fetchTasksRequestId:n});try{const r={};s!=null&&s.status&&(r.status=s.status),s!=null&&s.projectKey&&(r.projectKey=s.projectKey),s!=null&&s.developerId&&(r.developerId=s.developerId),s!=null&&s.cursor&&(r.cursor=s.cursor),s!=null&&s.limit&&(r.limit=String(s.limit));const l=await c.get("web/tasks",{searchParams:r,signal:e.signal}).json();if(o()._fetchTasksRequestId!==n)return;a({tasks:l.data,nextCursor:l.nextCursor??null,_fetchTasksAbort:null})}catch(r){if(r instanceof DOMException&&r.name==="AbortError")return;o()._fetchTasksRequestId===n&&a({error:r instanceof Error?r.message:"Failed to fetch tasks"})}finally{o()._fetchTasksRequestId===n&&a({loading:!1,_fetchTasksAbort:null})}},fetchTask:async s=>{a({loading:!0,error:null});try{const t=await c.get(`web/tasks/${s}`).json();a({currentTask:t})}catch(t){a({error:t instanceof Error?t.message:"Failed to fetch task"})}finally{a({loading:!1})}},createTask:async s=>{a({error:null});try{const t=await c.post("web/tasks",{json:s}).json();return a(e=>({tasks:[t,...e.tasks]})),t}catch(t){throw a({error:t instanceof Error?t.message:"Failed to create task"}),t}},cancelTask:async s=>{a({error:null});try{await c.post(`web/tasks/${s}/cancel`);const{currentTask:t}=o();(t==null?void 0:t.id)===s&&await o().fetchTask(s)}catch(t){throw a({error:t instanceof Error?t.message:"Failed to cancel task"}),t}},reset:()=>{a({tasks:[],currentTask:null,loading:!1,error:null,nextCursor:null,_fetchTasksAbort:null,_fetchTasksRequestId:0})}}));export{k as u};
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-D3EF0BU0.js";/**
1
+ import{c as e}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as e}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{r as e}from"./index-D3EF0BU0.js";function p(s,l){const[i,d]=e.useState(null),[R,a]=e.useState(!0),[m,o]=e.useState(null),f=e.useRef(s);f.current=s;const r=e.useRef(0),t=e.useRef(!0),u=e.useCallback(async()=>{const c=++r.current;a(!0),o(null);try{const n=await f.current();t.current&&c===r.current&&d(n)}catch(n){if(t.current&&c===r.current){const E=n instanceof Error?n.message:"An unexpected error occurred";o(E)}}finally{t.current&&c===r.current&&a(!1)}},l);return e.useEffect(()=>{u()},[u]),e.useEffect(()=>()=>{t.current=!1,r.current+=1},[]),{data:i,loading:R,error:m,refetch:u}}export{p as u};
1
+ import{r as e}from"./index-PZwTchr_.js";function p(s,l){const[i,d]=e.useState(null),[R,a]=e.useState(!0),[m,o]=e.useState(null),f=e.useRef(s);f.current=s;const r=e.useRef(0),t=e.useRef(!0),u=e.useCallback(async()=>{const c=++r.current;a(!0),o(null);try{const n=await f.current();t.current&&c===r.current&&d(n)}catch(n){if(t.current&&c===r.current){const E=n instanceof Error?n.message:"An unexpected error occurred";o(E)}}finally{t.current&&c===r.current&&a(!1)}},l);return e.useEffect(()=>{u()},[u]),e.useEffect(()=>()=>{t.current=!1,r.current+=1},[]),{data:i,loading:R,error:m,refetch:u}}export{p as u};
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-D3EF0BU0.js";/**
1
+ import{c as e}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as e}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-D3EF0BU0.js";/**
1
+ import{c}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.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-D3EF0BU0.js";/**
1
+ import{c as a}from"./index-PZwTchr_.js";/**
2
2
  * @license lucide-react v0.469.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
package/public/index.html CHANGED
@@ -28,8 +28,8 @@
28
28
  href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap"
29
29
  rel="stylesheet"
30
30
  />
31
- <script type="module" crossorigin src="/assets/index-D3EF0BU0.js"></script>
32
- <link rel="stylesheet" crossorigin href="/assets/index-CdJk2QGi.css">
31
+ <script type="module" crossorigin src="/assets/index-PZwTchr_.js"></script>
32
+ <link rel="stylesheet" crossorigin href="/assets/index-Du11Fv9c.css">
33
33
  <link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
34
34
  <body>
35
35
  <div id="root"></div>
package/public/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(i,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let a={};const u=s=>l(s,r),o={module:{uri:r},exports:a,require:u};e[r]=Promise.all(i.map(s=>o[s]||u(s))).then(s=>(n(...s),a))}}define(["./workbox-6e9b121d"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"og-image.png",revision:"f1563b4bdc7d1a4ab0aef864b0c2294e"},{url:"index.html",revision:"2f8622f1e04d62dc43eecb1d65b26587"},{url:"icon-maskable-512x512.png",revision:"69ada030d99c4a087bc309c00d716654"},{url:"icon-maskable-192x192.png",revision:"bf88226fe789dcb35bf89a307d3ba1af"},{url:"icon-512x512.png",revision:"74e561c3eb152bbb9cdcb333b5f1f3be"},{url:"icon-192x192.png",revision:"0bc2b74efb274c01d9eb50f717f4b7cf"},{url:"favicon.svg",revision:"e91ea32c7308cc2267ae15a5974a27f8"},{url:"apple-touch-icon-180x180.png",revision:"34c1b155ebc55bee221777f86f4612d8"},{url:"apple-touch-icon-152x152.png",revision:"8cc7ef3bc3aa19c3d8a29a58646d0636"},{url:"apple-touch-icon-120x120.png",revision:"7057fb6fb60df3fcf3cd49883db13be9"},{url:"assets/zap-ChFVfVhi.js",revision:null},{url:"assets/workflow-D6VrmpVC.js",revision:null},{url:"assets/wifi-CpsnZ0me.js",revision:null},{url:"assets/users-BDhUOLR9.js",revision:null},{url:"assets/useFetch-DqA_6ili.js",revision:null},{url:"assets/trash-2-B0gTlwTA.js",revision:null},{url:"assets/timer-D4gHmYOk.js",revision:null},{url:"assets/task.store-B1f8yuTU.js",revision:null},{url:"assets/task-constants-v3cKX5sS.js",revision:null},{url:"assets/status-colors-BNBcbZVQ.js",revision:null},{url:"assets/skip-forward-tHDn4amf.js",revision:null},{url:"assets/settings-Cpf4Aw4Z.js",revision:null},{url:"assets/scroll-text-BcO-tu0h.js",revision:null},{url:"assets/rotate-ccw-CesPJxB6.js",revision:null},{url:"assets/plus-BwhhTyaX.js",revision:null},{url:"assets/play-BjFnzBVa.js",revision:null},{url:"assets/pencil-eGjyAgrM.js",revision:null},{url:"assets/password-CHk45-jw.js",revision:null},{url:"assets/loader-circle-CPOjAAu7.js",revision:null},{url:"assets/key-BTztJw3V.js",revision:null},{url:"assets/index-D3EF0BU0.js",revision:null},{url:"assets/index-CdJk2QGi.css",revision:null},{url:"assets/git-fork-BhXdgj_k.js",revision:null},{url:"assets/file-text-BfrzBouS.js",revision:null},{url:"assets/external-link-B4tgsST2.js",revision:null},{url:"assets/download-3Syugo5K.js",revision:null},{url:"assets/date-RFA7-ZGs.js",revision:null},{url:"assets/copy-B-4Hfvcn.js",revision:null},{url:"assets/clock-B6V-4VR5.js",revision:null},{url:"assets/circle-alert-DKHl7f_Q.js",revision:null},{url:"assets/chevron-up-Cm7Jc-Tg.js",revision:null},{url:"assets/chevron-right-Ccp2bQ3u.js",revision:null},{url:"assets/chevron-left-D9iQafYD.js",revision:null},{url:"assets/chevron-down-54sz-rQX.js",revision:null},{url:"assets/bot-BpRqYalx.js",revision:null},{url:"assets/arrow-right-CiCC0owG.js",revision:null},{url:"assets/arrow-left-C08vc7G2.js",revision:null},{url:"assets/agent-type-options-Vn2Ar3HP.js",revision:null},{url:"assets/WorkerSetupPage-Cwf4AXe9.js",revision:null},{url:"assets/WorkerSetupGuidePage-Ckrfo8-b.js",revision:null},{url:"assets/WorkerOperationsPage-rHLL8hJa.js",revision:null},{url:"assets/WorkerListPage-CrJESAH0.js",revision:null},{url:"assets/WorkerDetailPage-aLNOgmfW.js",revision:null},{url:"assets/TotpSetupPage-DwXxvB-k.js",revision:null},{url:"assets/Tooltip-DfB8CAIs.js",revision:null},{url:"assets/TokenManage-BK36rX8P.js",revision:null},{url:"assets/TerminalHomePage-By_ngoYD.js",revision:null},{url:"assets/TaskStatusBadge-BD3WJQkl.js",revision:null},{url:"assets/TaskListPage-DUUYPpEt.js",revision:null},{url:"assets/TaskGuidePage-BBFKjc9w.js",revision:null},{url:"assets/TaskDetailPage-Dm9O3GpZ.js",revision:null},{url:"assets/SkillPage-B3Iw74cZ.js",revision:null},{url:"assets/Skeleton-BAYr4eiz.js",revision:null},{url:"assets/SettingsPage-Dv6y5QEu.js",revision:null},{url:"assets/Select-ucU6_0EP.js",revision:null},{url:"assets/ReviewPage-DKVAeNjP.js",revision:null},{url:"assets/ReviewAggregatePage-BTN2bkEA.js",revision:null},{url:"assets/RemoveMemberConfirmDialog-KoNueMWe.js",revision:null},{url:"assets/QuickAuth-tYYBxSU8.js",revision:null},{url:"assets/PtyTerminal-CvlgzMDa.js",revision:null},{url:"assets/PtyTerminal-6GBZ9nXN.css",revision:null},{url:"assets/ProjectListPage-xapZ35at.js",revision:null},{url:"assets/ProjectDetailPage-CLcnGmQC.js",revision:null},{url:"assets/ProfilePage-FkoPFABx.js",revision:null},{url:"assets/PlanPage-to7JvocS.js",revision:null},{url:"assets/PipelineEditorPage-c8vBg5bb.js",revision:null},{url:"assets/PipelineConfigPage-DAL7k_Mn.js",revision:null},{url:"assets/PermissionsPage-CViv0974.js",revision:null},{url:"assets/OnboardingGuide-hzsHrV8w.js",revision:null},{url:"assets/NotFoundPage-C8KIi602.js",revision:null},{url:"assets/MetricBar-DJJX8LMi.js",revision:null},{url:"assets/LoginPage-DGikIseW.js",revision:null},{url:"assets/LocalDevelopmentPage-EmrG2Khk.js",revision:null},{url:"assets/LandingPage-DWUNOSPY.js",revision:null},{url:"assets/InstallationPage-D8L9Higi.js",revision:null},{url:"assets/InfoRow-DNGAuZW7.js",revision:null},{url:"assets/HomePage-Bk-TkaC8.js",revision:null},{url:"assets/EnvVariablesPage-C6aJgjAB.js",revision:null},{url:"assets/EmptyState-tRn0r3m4.js",revision:null},{url:"assets/EditProjectPage-DBMoGsR8.js",revision:null},{url:"assets/DocsPrimitives-m1oUERel.js",revision:null},{url:"assets/DocsLayout-DF24edES.js",revision:null},{url:"assets/DocsIndexPage-Ch2Rj0KS.js",revision:null},{url:"assets/DeveloperSetupPage-C_2BhtWg.js",revision:null},{url:"assets/DeveloperManage-D1SXqVFy.js",revision:null},{url:"assets/DevWorkflowPage-BANLgjo2.js",revision:null},{url:"assets/DeploymentPage-DSE4lkjS.js",revision:null},{url:"assets/ConfirmStageDialog-DvTvViy4.js",revision:null},{url:"assets/CliReferencePage-DE7sjttz.js",revision:null},{url:"assets/ChangelogPage-C-xth3KP.js",revision:null},{url:"assets/BotSetupPage-i-AQ7pd6.js",revision:null},{url:"assets/BotManage-ClYWS35N.js",revision:null},{url:"assets/BotIntegrationPage-ClfrH4Nq.js",revision:null},{url:"assets/BindPlatformPage-BsEqhv2c.js",revision:null},{url:"assets/AutomationRunDetailPage-DpbJ8WGA.js",revision:null},{url:"assets/AutomationListPage-Ds8g44m8.js",revision:null},{url:"assets/AutomationEditPage-HuEyfsd4.js",revision:null},{url:"assets/AutomationDetailPage-Dzkc_ZgE.js",revision:null},{url:"assets/AutomationCreatePage-BvFaaM3C.js",revision:null},{url:"assets/AuditLogPage-DC0cHKgp.js",revision:null},{url:"assets/ArchitecturePage-DpdvWol1.js",revision:null},{url:"assets/ApiReferencePage-Dg2PEPIj.js",revision:null},{url:"assets/AgentCliPage-B927spLk.js",revision:null},{url:"assets/AdminPage-CYbg2MAm.js",revision:null},{url:"assets/AccessTokensPage-Cxf8lX2l.js",revision:null},{url:"apple-touch-icon-180x180.png",revision:"34c1b155ebc55bee221777f86f4612d8"},{url:"favicon.svg",revision:"e91ea32c7308cc2267ae15a5974a27f8"},{url:"icon-192x192.png",revision:"0bc2b74efb274c01d9eb50f717f4b7cf"},{url:"icon-512x512.png",revision:"74e561c3eb152bbb9cdcb333b5f1f3be"},{url:"icon-maskable-192x192.png",revision:"bf88226fe789dcb35bf89a307d3ba1af"},{url:"icon-maskable-512x512.png",revision:"69ada030d99c4a087bc309c00d716654"},{url:"manifest.webmanifest",revision:"e3100788a89f54481dbd663d57df57a6"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("/index.html"))),s.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new s.CacheFirst({cacheName:"google-fonts-stylesheets",plugins:[]}),"GET"),s.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new s.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new s.ExpirationPlugin({maxEntries:10,maxAgeSeconds:31536e3})]}),"GET")});
1
+ if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(i,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let a={};const u=s=>l(s,r),o={module:{uri:r},exports:a,require:u};e[r]=Promise.all(i.map(s=>o[s]||u(s))).then(s=>(n(...s),a))}}define(["./workbox-6e9b121d"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"og-image.png",revision:"f1563b4bdc7d1a4ab0aef864b0c2294e"},{url:"index.html",revision:"9526da827e6a97666f08eaf2e07eec02"},{url:"icon-maskable-512x512.png",revision:"69ada030d99c4a087bc309c00d716654"},{url:"icon-maskable-192x192.png",revision:"bf88226fe789dcb35bf89a307d3ba1af"},{url:"icon-512x512.png",revision:"74e561c3eb152bbb9cdcb333b5f1f3be"},{url:"icon-192x192.png",revision:"0bc2b74efb274c01d9eb50f717f4b7cf"},{url:"favicon.svg",revision:"e91ea32c7308cc2267ae15a5974a27f8"},{url:"apple-touch-icon-180x180.png",revision:"34c1b155ebc55bee221777f86f4612d8"},{url:"apple-touch-icon-152x152.png",revision:"8cc7ef3bc3aa19c3d8a29a58646d0636"},{url:"apple-touch-icon-120x120.png",revision:"7057fb6fb60df3fcf3cd49883db13be9"},{url:"assets/zap-BIwamY7L.js",revision:null},{url:"assets/workflow-RqNfx4vc.js",revision:null},{url:"assets/wifi-Bgq95lS8.js",revision:null},{url:"assets/users-BZPY-p6E.js",revision:null},{url:"assets/useFetch-6R6P2rOm.js",revision:null},{url:"assets/trash-2-DXJqRCdo.js",revision:null},{url:"assets/timer-CXsWiTNP.js",revision:null},{url:"assets/task.store-BTXbcXgO.js",revision:null},{url:"assets/task-constants-CSVY_jfk.js",revision:null},{url:"assets/status-colors-DDycfcf7.js",revision:null},{url:"assets/skip-forward-Ck7tY58a.js",revision:null},{url:"assets/settings-CYtYYzCu.js",revision:null},{url:"assets/scroll-text-IFQgBRlh.js",revision:null},{url:"assets/rotate-ccw-CyltG4Qx.js",revision:null},{url:"assets/plus-CCF-PMRF.js",revision:null},{url:"assets/play-DFj8BMl8.js",revision:null},{url:"assets/pencil-Dgj4md4-.js",revision:null},{url:"assets/password-CHk45-jw.js",revision:null},{url:"assets/loader-circle-nKG9e8iK.js",revision:null},{url:"assets/key-BDx4jfUG.js",revision:null},{url:"assets/index-PZwTchr_.js",revision:null},{url:"assets/index-Du11Fv9c.css",revision:null},{url:"assets/git-fork-A1WGp9ha.js",revision:null},{url:"assets/external-link-Bbo-dc9z.js",revision:null},{url:"assets/download-DVCPTZuD.js",revision:null},{url:"assets/date-RFA7-ZGs.js",revision:null},{url:"assets/copy-Dtpgo9EK.js",revision:null},{url:"assets/clock-DyV22whY.js",revision:null},{url:"assets/circle-alert-DE06tNOV.js",revision:null},{url:"assets/chevron-up-DEXIEMJO.js",revision:null},{url:"assets/chevron-right-Bz-j2WmS.js",revision:null},{url:"assets/chevron-left-D5fJVFiB.js",revision:null},{url:"assets/chevron-down-DyqUpmgf.js",revision:null},{url:"assets/bot-jsWsZ197.js",revision:null},{url:"assets/arrow-right-BDaYPEVr.js",revision:null},{url:"assets/arrow-left-BnN4eZhK.js",revision:null},{url:"assets/agent-type-options-BiwwFXJv.js",revision:null},{url:"assets/WorkerSetupPage-BD-EAPKM.js",revision:null},{url:"assets/WorkerSetupGuidePage-DvaP5u6N.js",revision:null},{url:"assets/WorkerOperationsPage-CBzwbV8I.js",revision:null},{url:"assets/WorkerListPage-kKUioe-i.js",revision:null},{url:"assets/WorkerDetailPage-C8_zfmSR.js",revision:null},{url:"assets/TotpSetupPage-Dk00_OYo.js",revision:null},{url:"assets/Tooltip-DzkVglKi.js",revision:null},{url:"assets/TokenManage-mToToJ_g.js",revision:null},{url:"assets/TerminalHomePage-C2bwGFkH.js",revision:null},{url:"assets/TaskStatusBadge-Dzloj2eJ.js",revision:null},{url:"assets/TaskListPage-DbQbJMDj.js",revision:null},{url:"assets/TaskGuidePage-Ch465zVv.js",revision:null},{url:"assets/TaskDetailPage-Dn7Vl2tI.js",revision:null},{url:"assets/SkillPage-CQyxaNa5.js",revision:null},{url:"assets/Skeleton-CNV0Dyd8.js",revision:null},{url:"assets/SettingsPage-CsDJ7FS9.js",revision:null},{url:"assets/Select-CaAVBHmI.js",revision:null},{url:"assets/ReviewPage-_pd3mJC1.js",revision:null},{url:"assets/ReviewAggregatePage-mnnW-Nli.js",revision:null},{url:"assets/RemoveMemberConfirmDialog-Da3XlOxO.js",revision:null},{url:"assets/QuickAuth-BMY6Nw6u.js",revision:null},{url:"assets/PtyTerminal-CxBKQBbF.js",revision:null},{url:"assets/PtyTerminal-6GBZ9nXN.css",revision:null},{url:"assets/ProjectListPage-D1LzmIVf.js",revision:null},{url:"assets/ProjectDetailPage-Bx1DUkpw.js",revision:null},{url:"assets/ProfilePage-CRMCbMyc.js",revision:null},{url:"assets/PlanPage-B-NSg434.js",revision:null},{url:"assets/PipelineEditorPage-DiyMvTIg.js",revision:null},{url:"assets/PipelineConfigPage-BxkXW1la.js",revision:null},{url:"assets/PermissionsPage-CVrdX2r2.js",revision:null},{url:"assets/OnboardingGuide-uCrXzgnL.js",revision:null},{url:"assets/NotFoundPage-Cs7ae_Mz.js",revision:null},{url:"assets/MetricBar-BWuqiydF.js",revision:null},{url:"assets/LoginPage-CXwygPZl.js",revision:null},{url:"assets/LocalDevelopmentPage-9g3s63GP.js",revision:null},{url:"assets/LandingPage-DMFC0PF_.js",revision:null},{url:"assets/InstallationPage-2uTV3WlY.js",revision:null},{url:"assets/InfoRow-CIwHf1Un.js",revision:null},{url:"assets/HomePage-BfETjlYe.js",revision:null},{url:"assets/EnvVariablesPage-D5h_sa-J.js",revision:null},{url:"assets/EmptyState-BfgwLg0u.js",revision:null},{url:"assets/EditProjectPage-CjJMof0e.js",revision:null},{url:"assets/DocsPrimitives-DCBNKtsW.js",revision:null},{url:"assets/DocsLayout-ByGEAOqk.js",revision:null},{url:"assets/DocsIndexPage-vE4yr9Si.js",revision:null},{url:"assets/DeveloperSetupPage-LrbpgJ2C.js",revision:null},{url:"assets/DeveloperManage-whlVH116.js",revision:null},{url:"assets/DevWorkflowPage-BQfJaZyg.js",revision:null},{url:"assets/DeploymentPage-DngrSHQT.js",revision:null},{url:"assets/ConfirmStageDialog-CJ8pWink.js",revision:null},{url:"assets/CliReferencePage-DzBrPSnn.js",revision:null},{url:"assets/ChangelogPage-CbYmEPo0.js",revision:null},{url:"assets/BotSetupPage-BAtr0Wem.js",revision:null},{url:"assets/BotManage-Dt4gvWW6.js",revision:null},{url:"assets/BotIntegrationPage-CfWOXPnJ.js",revision:null},{url:"assets/BindPlatformPage-B-jO83qZ.js",revision:null},{url:"assets/AutomationRunDetailPage-BWRONm49.js",revision:null},{url:"assets/AutomationListPage-BprhRKdu.js",revision:null},{url:"assets/AutomationEditPage-BVlx-7AI.js",revision:null},{url:"assets/AutomationDetailPage-BruGQNkV.js",revision:null},{url:"assets/AutomationCreatePage-C1_2qnf5.js",revision:null},{url:"assets/AuditLogPage-CDonhWBh.js",revision:null},{url:"assets/ArchitecturePage-BDo0Sz0V.js",revision:null},{url:"assets/ApiReferencePage-ChGlKtFZ.js",revision:null},{url:"assets/AgentCliPage-BXGIfvSo.js",revision:null},{url:"assets/AdminPage-vaAs4nmP.js",revision:null},{url:"assets/AccessTokensPage-DOQYcLSs.js",revision:null},{url:"apple-touch-icon-180x180.png",revision:"34c1b155ebc55bee221777f86f4612d8"},{url:"favicon.svg",revision:"e91ea32c7308cc2267ae15a5974a27f8"},{url:"icon-192x192.png",revision:"0bc2b74efb274c01d9eb50f717f4b7cf"},{url:"icon-512x512.png",revision:"74e561c3eb152bbb9cdcb333b5f1f3be"},{url:"icon-maskable-192x192.png",revision:"bf88226fe789dcb35bf89a307d3ba1af"},{url:"icon-maskable-512x512.png",revision:"69ada030d99c4a087bc309c00d716654"},{url:"manifest.webmanifest",revision:"e3100788a89f54481dbd663d57df57a6"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("/index.html"))),s.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new s.CacheFirst({cacheName:"google-fonts-stylesheets",plugins:[]}),"GET"),s.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new s.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new s.ExpirationPlugin({maxEntries:10,maxAgeSeconds:31536e3})]}),"GET")});
@@ -1 +0,0 @@
1
- import{f as G,a as Z,B as H,a1 as C,r,h as J,t as i,j as t}from"./index-D3EF0BU0.js";import{A as Q}from"./arrow-left-C08vc7G2.js";const W=[{label:"every_hour",value:"0 * * * *"},{label:"every_6_hours",value:"0 */6 * * *"},{label:"daily_midnight",value:"0 0 * * *"},{label:"daily_9am",value:"0 9 * * *"},{label:"weekly_monday",value:"0 9 * * 1"},{label:"custom",value:""}],X=[{label:"completed",value:"COMPLETED"},{label:"failed",value:"FAILED"},{label:"cancelled",value:"CANCELLED"}],ee=[{label:"claude",value:"claude"},{label:"cursor",value:"cursor"},{label:"codex",value:"codex"}],te=["UTC","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","Europe/London","Europe/Berlin","Asia/Tokyo","Asia/Shanghai","Australia/Sydney"];function ae(d){const a=d.trim().split(/\s+/);return a.length===5||a.length===6}function ne(){const d=G(),{t:a}=Z(),[I]=H(),x=I.get("templateId"),{createAutomation:T}=C(),[p,S]=r.useState(""),[f,E]=r.useState(""),[v,$]=r.useState(""),[l,w]=r.useState("cron"),[O,y]=r.useState("0 0 * * *"),[m,j]=r.useState("0 0 * * *"),[N,A]=r.useState("UTC"),[_,P]=r.useState("COMPLETED"),[b,F]=r.useState(""),[h,M]=r.useState(""),[g,K]=r.useState("readonly"),[k,L]=r.useState("claude"),[q,B]=r.useState({}),[R,Y]=r.useState([]),[D,z]=r.useState(!1);r.useEffect(()=>{let e=!1;return J.get("web/projects").json().then(c=>{e||Y(c)}).catch(()=>{e||i.error(a("automation.failed_load_projects"))}),()=>{e=!0}},[a]),r.useEffect(()=>{if(!x)return;let e=!1;return C.getState().fetchTemplates().then(()=>{if(e)return;const o=C.getState().templates.find(n=>n.id===Number(x));if(o){S(o.name),E(o.taskDescription),w(o.triggerType),K(o.executionMode);const n=o.triggerConfig;if(o.triggerType==="cron"&&n.cron&&(j(n.cron),y(""),n.timezone&&A(n.timezone)),o.triggerType==="task_event"&&n.event){P(n.event);const s=n.filter;s!=null&&s.projectKey&&F(s.projectKey),s!=null&&s.taskMode&&M(s.taskMode)}const u=o.taskConfig;u&&B(u),u!=null&&u.agentType&&L(u.agentType)}}),()=>{e=!0}},[x]);const U=e=>{y(e),e&&j(e)},V=r.useCallback(async()=>{if(!p.trim()){i.error(a("automation.name_required"));return}if(!v){i.error(a("automation.project_required"));return}let e={};if(l==="cron"){if(!m.trim()){i.error(a("automation.cron_expression_required"));return}if(!ae(m)){i.error(a("automation.cron_expression_invalid"));return}e={cron:m,timezone:N}}else l==="task_event"&&(e={event:_,filter:{...b&&{projectKey:b},...h&&{taskMode:h}}});z(!0);try{const c=await T({projectKey:v,name:p.trim(),description:f.trim(),triggerType:l,triggerConfig:e,executionMode:g,taskConfig:{...q,agentType:k},...x?{templateId:Number(x)}:{}});i.success(a("automation.automation_created")),d(`/automations/${c.id}`)}catch(c){const o=c instanceof Error?c.message:a("automation.failed_create");i.error(o)}finally{z(!1)}},[p,f,v,l,m,N,_,b,h,g,k,x,T,d,a]);return t.jsxs("div",{className:"mx-auto max-w-2xl px-2 py-4 md:px-4 md:py-6 font-mono",children:[t.jsxs("div",{className:"mb-6 flex items-center gap-3",children:[t.jsx("button",{onClick:()=>d("/automations"),className:"rounded-[4px] p-1.5 text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:t.jsx(Q,{className:"h-4 w-4"})}),t.jsx("h1",{className:"text-sm font-bold text-[var(--text-primary)]",children:a("automation.create_title")})]}),t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-project",className:"mb-1.5 block text-[11px] text-[var(--text-muted)]",children:a("automation.project")}),t.jsxs("select",{id:"create-project",value:v,onChange:e=>$(e.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] outline-none focus:border-[var(--accent)]",children:[t.jsx("option",{value:"",children:a("automation.select_project")}),R.map(e=>t.jsxs("option",{value:e.key,children:[e.name," (",e.key,")"]},e.key))]})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-name",className:"mb-1.5 block text-[11px] text-[var(--text-muted)]",children:a("automation.name")}),t.jsx("input",{id:"create-name",type:"text",value:p,onChange:e=>S(e.target.value),placeholder:a("automation.name_placeholder"),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] placeholder:text-[var(--text-muted)] outline-none focus:border-[var(--accent)]"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-description",className:"mb-1.5 block text-[11px] text-[var(--text-muted)]",children:a("automation.description")}),t.jsx("textarea",{id:"create-description",value:f,onChange:e=>E(e.target.value),rows:4,placeholder:a("automation.description_placeholder"),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] placeholder:text-[var(--text-muted)] outline-none focus:border-[var(--accent)] resize-none"}),t.jsx("p",{className:"mt-1 text-[10px] text-[var(--text-muted)]",children:a("automation.template_vars")})]}),t.jsxs("div",{children:[t.jsx("label",{className:"mb-1.5 block text-[11px] text-[var(--text-muted)]",children:a("automation.trigger_type")}),t.jsx("div",{className:"flex gap-2",children:["cron","task_event","manual"].map(e=>t.jsx("button",{onClick:()=>w(e),className:`flex-1 rounded-[4px] border px-3 py-2 text-xs transition-colors ${l===e?"border-[var(--accent)] text-[var(--accent)] bg-[var(--accent)]/5":"border-[var(--border)] text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:e},e))})]}),l==="cron"&&t.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[t.jsx("label",{className:"block text-[11px] font-bold text-[var(--text-primary)]",children:a("automation.cron_config")}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-cron-preset",className:"mb-1 block text-[10px] text-[var(--text-muted)]",children:a("automation.preset")}),t.jsx("select",{id:"create-cron-preset",value:O,onChange:e=>U(e.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] outline-none focus:border-[var(--accent)]",children:W.map(e=>t.jsxs("option",{value:e.value,children:[e.label," ",e.value?`(${e.value})`:""]},e.label))})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-cron-expression",className:"mb-1 block text-[10px] text-[var(--text-muted)]",children:a("automation.cron_expression")}),t.jsx("input",{id:"create-cron-expression",type:"text",value:m,onChange:e=>{j(e.target.value),y("")},placeholder:"* * * * *",className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs font-mono text-[var(--text-primary)] placeholder:text-[var(--text-muted)] outline-none focus:border-[var(--accent)]"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-timezone",className:"mb-1 block text-[10px] text-[var(--text-muted)]",children:a("automation.timezone")}),t.jsx("select",{id:"create-timezone",value:N,onChange:e=>A(e.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] outline-none focus:border-[var(--accent)]",children:te.map(e=>t.jsx("option",{value:e,children:e},e))})]})]}),l==="task_event"&&t.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[t.jsx("label",{className:"block text-[11px] font-bold text-[var(--text-primary)]",children:a("automation.task_event_config")}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-event-type",className:"mb-1 block text-[10px] text-[var(--text-muted)]",children:a("automation.event_type")}),t.jsx("select",{id:"create-event-type",value:_,onChange:e=>P(e.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] outline-none focus:border-[var(--accent)]",children:X.map(e=>t.jsx("option",{value:e.value,children:e.label},e.value))})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-filter-project",className:"mb-1 block text-[10px] text-[var(--text-muted)]",children:a("automation.filter_project_key")}),t.jsx("input",{id:"create-filter-project",type:"text",value:b,onChange:e=>F(e.target.value),placeholder:a("automation.filter_project_key_placeholder"),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] placeholder:text-[var(--text-muted)] outline-none focus:border-[var(--accent)]"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:"create-filter-mode",className:"mb-1 block text-[10px] text-[var(--text-muted)]",children:a("automation.filter_task_mode")}),t.jsxs("select",{id:"create-filter-mode",value:h,onChange:e=>M(e.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-xs text-[var(--text-primary)] outline-none focus:border-[var(--accent)]",children:[t.jsx("option",{value:"",children:a("automation.all_modes")}),t.jsx("option",{value:"develop",children:"develop"}),t.jsx("option",{value:"review",children:"review"})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"mb-1.5 block text-[11px] text-[var(--text-muted)]",children:a("automation.execution_mode")}),t.jsx("div",{className:"flex gap-2",children:["readonly","writable"].map(e=>t.jsx("button",{onClick:()=>K(e),className:`flex-1 rounded-[4px] border px-3 py-2 text-xs transition-colors ${g===e?"border-[var(--accent)] text-[var(--accent)] bg-[var(--accent)]/5":"border-[var(--border)] text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:e},e))}),t.jsx("p",{className:"mt-1 text-[10px] text-[var(--text-muted)]",children:a(g==="writable"?"automation.writable_hint":"automation.readonly_hint")})]}),t.jsxs("div",{children:[t.jsx("label",{className:"mb-1.5 block text-[11px] text-[var(--text-muted)]",children:a("automation.agent_type")}),t.jsx("div",{className:"flex gap-2",children:ee.map(e=>t.jsx("button",{onClick:()=>L(e.value),className:`flex-1 rounded-[4px] border px-3 py-2 text-xs transition-colors ${k===e.value?"border-[var(--accent)] text-[var(--accent)] bg-[var(--accent)]/5":"border-[var(--border)] text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:e.label},e.value))})]}),t.jsxs("div",{className:"flex gap-3 pt-2",children:[t.jsx("button",{onClick:V,disabled:D,className:"flex-1 rounded-[4px] bg-[var(--accent)] px-4 py-2.5 text-xs font-bold text-black disabled:opacity-40 disabled:cursor-not-allowed transition-opacity hover:opacity-90",children:a(D?"automation.creating":"automation.create_automation")}),t.jsx("button",{onClick:()=>d("/automations"),className:"rounded-[4px] border border-[var(--border)] px-4 py-2.5 text-xs text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:a("automation.cancel")})]})]})]})}export{ne as default};
@@ -1,16 +0,0 @@
1
- import{c as N,f,a as g,r as u,a1 as b,w as B,j as e,a2 as P,a3 as C,a4 as V,Y as M,V as L,t as m}from"./index-D3EF0BU0.js";import{E as w}from"./EmptyState-tRn0r3m4.js";import{T as _}from"./Skeleton-BAYr4eiz.js";import{f as k}from"./date-RFA7-ZGs.js";import{P as S}from"./plus-BwhhTyaX.js";import{C as T}from"./clock-B6V-4VR5.js";import{C as U}from"./circle-alert-DKHl7f_Q.js";import{P as q}from"./play-BjFnzBVa.js";import{Z as D}from"./zap-ChFVfVhi.js";import{T as W}from"./timer-D4gHmYOk.js";/**
2
- * @license lucide-react v0.469.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 Z=N("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
7
- * @license lucide-react v0.469.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 F=N("BookDashed",[["path",{d:"M12 17h1.5",key:"1gkc67"}],["path",{d:"M12 22h1.5",key:"1my7sn"}],["path",{d:"M12 2h1.5",key:"19tvb7"}],["path",{d:"M17.5 22H19a1 1 0 0 0 1-1",key:"10akbh"}],["path",{d:"M17.5 2H19a1 1 0 0 1 1 1v1.5",key:"1vrfjs"}],["path",{d:"M20 14v3h-2.5",key:"1naeju"}],["path",{d:"M20 8.5V10",key:"1ctpfu"}],["path",{d:"M4 10V8.5",key:"1o3zg5"}],["path",{d:"M4 19.5V14",key:"ob81pf"}],["path",{d:"M4 4.5A2.5 2.5 0 0 1 6.5 2H8",key:"s8vcyb"}],["path",{d:"M8 22H6.5a1 1 0 0 1 0-5H8",key:"1cu73q"}]]);/**
12
- * @license lucide-react v0.469.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const O=N("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);function Q({severity:r}){const t={critical:"border-[var(--destructive)] text-[var(--destructive)]",warning:"border-[var(--warning)] text-[var(--warning)]",info:"border-[var(--info)] text-[var(--info)]"};return e.jsx("span",{className:`rounded-[4px] border px-1.5 py-0.5 text-[10px] ${t[r]??"border-[var(--border)] text-[var(--text-muted)]"}`,children:r})}function A({type:r}){const n={cron:W,task_event:D,manual:q}[r]??T;return e.jsxs("span",{className:"flex items-center gap-1 rounded-[4px] border border-[var(--border)] px-1.5 py-0.5 text-[10px] text-[var(--text-muted)]",children:[e.jsx(n,{className:"h-2.5 w-2.5"}),r]})}function R({mode:r}){const t=r==="writable";return e.jsx("span",{className:`rounded-[4px] border px-1.5 py-0.5 text-[10px] ${t?"border-[var(--warning)] text-[var(--warning)]":"border-[var(--border)] text-[var(--text-muted)]"}`,children:r})}function Y(){const r=f(),{t}=g(),{runs:n,loading:h,fetchRuns:i,updateRunStatus:p,batchUpdateRuns:o,clearRunQuery:c}=b(),[s,d]=u.useState(new Set),l=u.useRef(!1);u.useEffect(()=>(i({inboxStatus:"unread",limit:50}),()=>{c()}),[i,c]),u.useEffect(()=>{l.current=!0;const a=P.onStatus(v=>{l.current&&v==="connected"&&i({inboxStatus:"unread",limit:50})});return()=>{l.current=!1,a()}},[i]);const I=a=>{d(v=>{const x=new Set(v);return x.has(a)?x.delete(a):x.add(a),x})},E=()=>{s.size===n.length?d(new Set):d(new Set(n.map(a=>a.id)))},$=async a=>{try{await p(a,"read"),m.success(t("automation.marked_as_read"))}catch{m.error(t("automation.failed_mark_read"))}},z=async a=>{try{await p(a,"archived"),m.success(t("automation.archived"))}catch{m.error(t("automation.failed_archive"))}},H=async()=>{if(s.size!==0)try{await o(Array.from(s),"read"),d(new Set),m.success(t("automation.marked_n_read",{n:s.size}))}catch{m.error(t("automation.failed_batch_update"))}},j=a=>a.findings&&Array.isArray(a.findings)?a.findings.length:0;if(h&&n.length===0)return e.jsx("div",{className:"p-4",children:e.jsx(_,{rows:4})});const y=n.filter(a=>a.inboxStatus==="unread");return y.length===0?e.jsx(w,{icon:O,title:t("automation.no_unread_findings"),description:t("automation.inbox_description")}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[e.jsx("button",{onClick:E,className:"rounded-[4px] border border-[var(--border)] px-2.5 py-1.5 text-[11px] text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:s.size===y.length?t("automation.deselect_all"):t("automation.select_all")}),s.size>0&&e.jsxs("button",{onClick:H,className:"flex items-center gap-1 rounded-[4px] border border-[var(--border)] px-2.5 py-1.5 text-[11px] text-[var(--text-secondary)] hover:text-[var(--accent)] transition-colors",children:[e.jsx(C,{className:"h-3 w-3"}),t("automation.mark_all_read")," (",s.size,")"]})]}),e.jsx("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)]",children:y.map(a=>e.jsxs("div",{className:"flex items-center gap-3 border-b border-[var(--border)] px-4 py-3 last:border-b-0",children:[e.jsx("input",{type:"checkbox",checked:s.has(a.id),onChange:()=>I(a.id),className:"h-3.5 w-3.5 shrink-0 accent-[var(--accent)]"}),e.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full bg-[var(--accent)]"}),e.jsxs("div",{className:"flex min-w-0 flex-1 cursor-pointer flex-col gap-0.5",onClick:()=>r(`/automations/runs/${a.id}`),children:[e.jsx("span",{className:"truncate text-xs text-[var(--text-primary)] hover:text-[var(--accent)] transition-colors",children:t("automation.run_label",{id:a.id,automationId:a.automationId})}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{type:a.triggerType}),a.findings&&Array.isArray(a.findings)&&a.findings.length>0&&e.jsx("span",{className:"text-[10px] text-[var(--text-muted)]",children:j(a)!==1?t("automation.findings_count",{count:j(a)}):t("automation.finding_count",{count:j(a)})}),a.findings&&Array.isArray(a.findings)&&(()=>{const v=new Set(a.findings.map(x=>x.severity));return Array.from(v).map(x=>e.jsx(Q,{severity:x},x))})()]})]}),e.jsx("span",{className:"shrink-0 text-[11px] text-[var(--text-muted)]",children:k(a.createdAt)}),e.jsx("button",{onClick:()=>$(a.id),className:"shrink-0 rounded-[4px] p-1.5 text-[var(--text-muted)] hover:text-[var(--accent)] transition-colors",title:t("automation.mark_read"),children:e.jsx(C,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:()=>z(a.id),className:"shrink-0 rounded-[4px] p-1.5 text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:t("automation.archive"),children:e.jsx(Z,{className:"h-3.5 w-3.5"})})]},a.id))})]})}function G(){const r=f(),{t}=g(),{automations:n,loading:h,fetchAutomations:i,enableAutomation:p,disableAutomation:o}=b();u.useEffect(()=>{i()},[i]);const c=async s=>{try{s.enabled?(await o(s.id),m.success(t("automation.automation_disabled"))):(await p(s.id),m.success(t("automation.automation_enabled")))}catch{m.error(t("automation.failed_toggle"))}};return h&&n.length===0?e.jsx("div",{className:"p-4",children:e.jsx(_,{rows:4})}):n.length===0?e.jsx(w,{icon:V,title:t("automation.no_automations"),description:t("automation.create_first_description"),actionLabel:t("automation.new_automation"),onAction:()=>r("/automations/new")}):e.jsx("div",{className:"grid gap-3 md:grid-cols-2",children:n.map(s=>e.jsxs("div",{className:"cursor-pointer rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 transition-colors hover:border-[var(--accent)]/30",onClick:()=>r(`/automations/${s.id}`),children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate text-xs font-bold text-[var(--text-primary)]",children:s.name}),e.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${s.enabled?"bg-[var(--accent)]":"bg-[var(--text-muted)]"}`})]}),s.description&&e.jsx("p",{className:"mt-1 truncate text-[11px] text-[var(--text-muted)]",children:s.description})]}),e.jsx("button",{onClick:d=>{d.stopPropagation(),c(s)},className:`relative h-5 w-9 shrink-0 rounded-full transition-colors ${s.enabled?"bg-[var(--accent)]":"bg-[var(--border)]"}`,children:e.jsx("span",{className:`absolute top-0.5 h-4 w-4 rounded-full bg-white transition-transform ${s.enabled?"translate-x-4":"translate-x-0.5"}`})})]}),e.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[e.jsx(A,{type:s.triggerType}),e.jsx(R,{mode:s.executionMode})]}),e.jsxs("div",{className:"mt-2 flex items-center gap-3 text-[10px] text-[var(--text-muted)]",children:[s.lastRunAt&&e.jsx("span",{children:t("automation.last_run",{time:k(s.lastRunAt)})}),s.nextRunAt&&e.jsx("span",{children:t("automation.next_run",{time:k(s.nextRunAt)})}),!s.lastRunAt&&!s.nextRunAt&&e.jsx("span",{children:t("automation.no_runs_yet")})]})]},s.id))})}function J(){const r=f(),{t}=g(),{templates:n,loading:h,fetchTemplates:i}=b();if(u.useEffect(()=>{i()},[i]),h&&n.length===0)return e.jsx("div",{className:"p-4",children:e.jsx(_,{rows:4})});if(n.length===0)return e.jsx(w,{icon:F,title:t("automation.no_templates"),description:t("automation.templates_description")});const p=n.reduce((c,s)=>{const d=s.category||"other";return c[d]||(c[d]=[]),c[d].push(s),c},{}),o={security:L,quality:U,reporting:M,maintenance:T};return e.jsx("div",{className:"space-y-6",children:Object.entries(p).map(([c,s])=>{const d=o[c]??M;return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center gap-1.5 text-xs text-[var(--text-muted)]",children:[e.jsx(d,{className:"h-3 w-3"}),e.jsx("span",{children:c})]}),e.jsx("div",{className:"grid gap-3 md:grid-cols-2",children:s.map(l=>e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4",children:[e.jsx("div",{className:"flex items-start justify-between gap-2",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"text-xs font-bold text-[var(--text-primary)]",children:l.name}),e.jsx("p",{className:"mt-1 text-[11px] text-[var(--text-muted)] line-clamp-2",children:l.description})]})}),e.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[e.jsx(A,{type:l.triggerType}),e.jsx(R,{mode:l.executionMode})]}),e.jsxs("button",{onClick:()=>r(`/automations/new?templateId=${l.id}`),className:"mt-3 flex items-center gap-1 rounded-[4px] bg-[var(--accent)] px-3 py-1.5 text-[11px] font-bold text-black transition-opacity hover:opacity-90",children:[e.jsx(S,{className:"h-3 w-3"}),t("automation.use_template")]})]},l.id))})]},c)})})}function ce(){const r=f(),{t}=g(),[n,h]=u.useState("inbox"),i=b(o=>o.inboxUnreadCount);u.useEffect(()=>{b.getState().fetchInboxCount()},[]),B(u.useMemo(()=>e.jsxs("button",{onClick:()=>r("/automations/new"),className:"flex items-center gap-1.5 rounded-[4px] bg-[var(--accent)] px-3 py-1.5 text-xs font-mono text-black transition-opacity hover:opacity-90",children:[e.jsx(S,{className:"h-3.5 w-3.5"}),t("automation.new_automation")]}),[r,t]));const p=[{key:"inbox",label:t("automation.tab_inbox"),count:i>0?i:void 0},{key:"automations",label:t("automation.tab_automations")},{key:"templates",label:t("automation.tab_templates")}];return e.jsxs("div",{className:"mx-auto max-w-6xl px-2 py-4 md:px-4 md:py-6 font-mono",children:[e.jsx("h1",{className:"sr-only",children:t("automation.title")}),e.jsx("div",{className:"mb-4 flex items-center gap-1 overflow-x-auto pb-1 no-scrollbar",children:p.map(o=>e.jsxs("button",{onClick:()=>h(o.key),className:`shrink-0 rounded-[4px] px-3 py-2 h-8 text-xs transition-colors flex items-center gap-1.5 ${n===o.key?"text-[var(--accent)] bg-[var(--bg-input)]":"text-[var(--text-muted)] bg-[var(--bg-card)] hover:text-[var(--text-secondary)]"}`,children:[o.label,o.count!==void 0&&e.jsx("span",{className:"flex h-4 min-w-[16px] items-center justify-center rounded-full bg-[var(--accent)] px-1 text-[10px] font-bold text-black",children:o.count})]},o.key))}),n==="inbox"&&e.jsx(Y,{}),n==="automations"&&e.jsx(G,{}),n==="templates"&&e.jsx(J,{})]})}export{ce as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./index-D3EF0BU0.js";function t(){return e.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6 py-8 font-mono lowercase",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-sm text-[var(--text-primary)]",children:"// bot integration"}),e.jsx("p",{className:"mt-2 text-xs text-[var(--text-muted)]",children:"advanced bot integration topics — interactive cards, troubleshooting, and the adapter pattern. for initial bot setup (lark, slack), see the bot setup guide."})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-4",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> interactive cards"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"when a pipeline reaches a stage that requires user input, the bot sends an interactive card. there are three card modes:"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"confirm mode"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"sent when a stage needs explicit approval before proceeding. the card shows a summary of what will happen and two buttons:"}),e.jsxs("ul",{className:"space-y-1 text-xs text-[var(--text-secondary)] pl-4",children:[e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-[var(--accent)]",children:"confirm"})," — advance the pipeline to the next stage"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-[var(--accent)]",children:"reject"})," — skip or abort the current stage (you can also cancel the entire task with ",e.jsx("code",{className:"text-[var(--accent)]",children:"cancel #id"}),")"]})]}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"example: a deploy stage waiting for human sign-off before pushing to production. the bot updates the card in-place after the user responds, replacing the buttons with the outcome."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"choice mode"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"sent when the pipeline branches and the user must pick one of several options. each option is rendered as a button. the selected option determines which branch the pipeline follows."}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"example: choosing a deploy target (staging / production / canary) mid-pipeline."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"input mode"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"sent when the pipeline needs free-form text input from the user. the bot sends a card with a link to the web dashboard where the user submits their input. the submitted value is injected into the pipeline context as a variable."}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"example: providing a hotfix version number or a rollback reason."})]})]}),e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> card lifecycle"}),e.jsxs("div",{className:"space-y-2 text-xs text-[var(--text-secondary)]",children:[e.jsx("p",{children:"1. bot sends the card when the stage starts"}),e.jsx("p",{children:"2. card remains active until a user responds or the stage times out (default: 10 minutes)"}),e.jsx("p",{children:"3. on response, the bot updates the card to show the result and the pipeline continues"}),e.jsx("p",{children:"4. if the stage times out, the card is updated with a timeout message and the pipeline follows the timeout path (fail or fallback)"})]}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"only users with the appropriate project role can interact with cards. unauthorized clicks return an ephemeral error."})]}),e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> notification routing"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"when a task progresses through its lifecycle, the bot sends notifications to relevant parties. routing depends on who created the task and who is assigned to execute it."}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-xs",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("th",{className:"py-2 pr-4 text-left text-[var(--text-muted)]",children:"event"}),e.jsx("th",{className:"py-2 pr-4 text-left text-[var(--text-muted)]",children:"method"}),e.jsx("th",{className:"py-2 pr-4 text-left text-[var(--text-muted)]",children:"executor"}),e.jsx("th",{className:"py-2 pr-4 text-left text-[var(--text-muted)]",children:"creator (if ≠)"}),e.jsx("th",{className:"py-2 text-left text-[var(--text-muted)]",children:"project chats"})]})}),e.jsxs("tbody",{className:"text-[var(--text-secondary)]",children:[e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"assigned"}),e.jsx("td",{className:"py-2 pr-4",children:"card update"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"—"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"running"}),e.jsx("td",{className:"py-2 pr-4",children:"card update"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"—"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"stage_changed"}),e.jsx("td",{className:"py-2 pr-4",children:"card update"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"—"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"completed"}),e.jsx("td",{className:"py-2 pr-4",children:"new message"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (source chat)"}),e.jsx("td",{className:"py-2",children:"yes"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"failed"}),e.jsx("td",{className:"py-2 pr-4",children:"new message"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (source chat)"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"cancelled"}),e.jsx("td",{className:"py-2 pr-4",children:"new message"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"—"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"suspended"}),e.jsx("td",{className:"py-2 pr-4",children:"new message"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"—"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"resumed"}),e.jsx("td",{className:"py-2 pr-4",children:"card update"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"—"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"stage_confirm_required"}),e.jsx("td",{className:"py-2 pr-4",children:"new dm"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (dm only)"}),e.jsx("td",{className:"py-2 pr-4",children:"—"}),e.jsx("td",{className:"py-2",children:"—"})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-4",children:"review_round_complete"}),e.jsx("td",{className:"py-2 pr-4",children:"new message"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (source chat or dm)"}),e.jsx("td",{className:"py-2 pr-4",children:"yes (source chat)"}),e.jsx("td",{className:"py-2",children:"—"})]})]})]})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"creator = executor"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"intermediate updates (assigned, running, stage changes) update the original task card in-place. important events (completed, failed, cancelled, suspended) send a new message. stage confirmation requests are always sent as a dm."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"creator ≠ executor"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"when a task is assigned to another developer via @mention, the executor receives all notifications via dm. the creator receives completed, failed, and review_round_complete notifications. stage confirmations go exclusively to the executor."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"stage confirmation via commands"}),e.jsxs("p",{className:"text-xs text-[var(--text-muted)]",children:["in addition to card buttons, users can type ",e.jsx("code",{className:"text-[var(--accent)]",children:"confirm #id"})," or ",e.jsx("code",{className:"text-[var(--accent)]",children:"reject #id"}),". when replying directly to the bot's confirmation dm, the task id can be omitted — the bot infers it from the parent message."]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"stage confirmation timeout"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"if the executor does not respond to a stage confirmation within 10 minutes, the task is automatically marked as failed with a timeout error."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"web-created tasks"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"tasks created via the web dashboard also receive DM notifications if the developer has linked their Lark or Slack account. both in-app (bell icon) and platform DM notifications are delivered."})]}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"if the target developer has not linked their platform account, notifications fall back to the web dashboard's in-app notification system."})]}),e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> plan and review commands"}),e.jsxs("p",{className:"text-xs text-[var(--text-muted)]",children:["in addition to ",e.jsx("span",{className:"text-[var(--accent)]",children:"develop"})," and ",e.jsx("span",{className:"text-[var(--accent)]",children:"fork"}),", the bot supports two higher-level commands:"]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"plan"}),e.jsxs("p",{className:"text-xs text-[var(--text-muted)]",children:["starts an interactive planning session where an ai agent reads the project codebase, discusses requirements with you, and produces a spec document saved to the project repository. use ",e.jsx("span",{className:"text-[var(--accent)]",children:"--project KEY"})," to specify the target project."]}),e.jsx("code",{className:"block text-xs text-[var(--text-secondary)] bg-[var(--bg-primary)] rounded-[4px] px-3 py-2",children:'@bot plan "implement user authentication system" --project WEB'})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"review"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"triggers cross-model code review on a completed develop task. each specified agent runs a parallel review task and produces a structured report. only completed develop tasks can be reviewed."}),e.jsx("code",{className:"block text-xs text-[var(--text-secondary)] bg-[var(--bg-primary)] rounded-[4px] px-3 py-2",children:"@bot review #42 --agent codex,cursor"})]})]})]}),e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> troubleshooting"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"common issues when running bots in production:"}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-xs",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("th",{className:"py-2 pr-4 text-left text-[var(--text-muted)]",children:"symptom"}),e.jsx("th",{className:"py-2 pr-4 text-left text-[var(--text-muted)]",children:"cause"}),e.jsx("th",{className:"py-2 text-left text-[var(--text-muted)]",children:"fix"})]})}),e.jsxs("tbody",{className:"text-[var(--text-secondary)]",children:[e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"bot doesn't respond to mentions"}),e.jsx("td",{className:"py-2 pr-4",children:"webhook url not reachable"}),e.jsx("td",{className:"py-2",children:"verify the url is publicly accessible and returns 200 to the platform's verification challenge"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"401 on webhook"}),e.jsx("td",{className:"py-2 pr-4",children:"wrong verification token / signing secret"}),e.jsx("td",{className:"py-2",children:"check webhooktoken matches the platform's verification token (lark) or signing secret (slack)"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"commands work but no cards"}),e.jsx("td",{className:"py-2 pr-4",children:"missing card event subscription"}),e.jsx("td",{className:"py-2",children:"lark: set callback configuration request url to your webhook url. slack: enable interactivity and set the interact url"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"user not found error"}),e.jsx("td",{className:"py-2 pr-4",children:"developer account not linked"}),e.jsx("td",{className:"py-2",children:"set platform_uid on the developer record to their platform user id"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"bot responds in wrong project"}),e.jsx("td",{className:"py-2 pr-4",children:"chat group bound to wrong project"}),e.jsx("td",{className:"py-2",children:"update the binding via admin - bot management or the bindings api"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"duplicate messages"}),e.jsx("td",{className:"py-2 pr-4",children:"multiple bot instances handling same event"}),e.jsx("td",{className:"py-2",children:"ensure only one overlord instance processes webhooks, or use the built-in dedup"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"card buttons do nothing"}),e.jsx("td",{className:"py-2 pr-4",children:"interact url misconfigured"}),e.jsx("td",{className:"py-2",children:"slack: check interactivity request url. lark: check card action callback url"})]}),e.jsxs("tr",{className:"border-b border-[var(--border)]",children:[e.jsx("td",{className:"py-2 pr-4",children:"/overlord slash command 404"}),e.jsx("td",{className:"py-2 pr-4",children:"command url wrong"}),e.jsx("td",{className:"py-2",children:"verify the slash command request url matches your-server/webhook/slack/commands"})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-4",children:"bot stops responding after deploy"}),e.jsx("td",{className:"py-2 pr-4",children:"webhook url changed"}),e.jsx("td",{className:"py-2",children:"update the request url in the platform's app settings to match the new server address"})]})]})]})})]}),e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> adapter pattern"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"the bot system uses an adapter pattern internally. each platform (lark, slack, discord) implements an adapter interface:"}),e.jsxs("div",{className:"space-y-1 text-xs text-[var(--text-secondary)]",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("code",{className:"shrink-0 text-[var(--accent)]",children:"handleWebhook(req)"}),e.jsx("span",{children:"— receive platform events, verify signatures, parse into commands"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("code",{className:"shrink-0 text-[var(--accent)]",children:"sendMessage(chatId, content)"}),e.jsx("span",{children:"— send messages (text or cards)"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("code",{className:"shrink-0 text-[var(--accent)]",children:"updateMessage(msgId, content)"}),e.jsx("span",{children:"— update existing messages (progress updates)"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("code",{className:"shrink-0 text-[var(--accent)]",children:"resolveUser(platformUid)"}),e.jsx("span",{children:"— map platform user id to overlord developer"})]})]}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"to add a custom platform adapter, implement the interface and register it in the bot service config. see the lark and slack adapters in the codebase for reference."})]}),e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> multi-bot architecture"}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"overlord supports multiple bot instances across different platforms simultaneously. each project or group can have its own bot. all bots share the same overlord backend."}),e.jsxs("div",{className:"space-y-2 text-xs text-[var(--text-secondary)]",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[var(--accent)]",children:"lark"})," — single webhook url (/webhook/lark), bot identified by app_id in the request payload"]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[var(--accent)]",children:"slack"})," — separate endpoints for events, interactivity, and commands (/webhook/slack/events, /webhook/slack/interact, /webhook/slack/commands), bot identified by app_id in the request headers"]})]}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"you can run multiple bots on the same platform (e.g., one slack bot per team) by registering each with a unique app id. a discord adapter is planned for a future release."})]})]})]})}export{t as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./index-D3EF0BU0.js";function s(){return e.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6 py-8 font-mono lowercase",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-sm text-[var(--text-primary)]",children:"// changelog"}),e.jsx("p",{className:"mt-2 text-xs text-[var(--text-muted)]",children:"release history and notable changes."})]}),e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-baseline gap-3",children:[e.jsx("h2",{className:"text-sm text-[var(--accent)]",children:"> v1.0.28"}),e.jsx("span",{className:"text-xs text-[var(--text-muted)]",children:"2026-03-13"})]}),e.jsx("h3",{className:"text-xs text-[var(--text-primary)]",children:"initial public release"}),e.jsxs("div",{className:"space-y-1 text-xs text-[var(--text-secondary)]",children:[e.jsx("p",{children:"- full task orchestration platform with multi-agent support (claude code, cursor, codex)"}),e.jsx("p",{children:"- real-time pty terminal streaming via xterm.js in web dashboard"}),e.jsx("p",{children:"- skill pipeline system with confirmation, choice, and input stages"}),e.jsx("p",{children:"- multi-machine worker fleet with intelligent task routing"}),e.jsx("p",{children:"- lark bot integration with interactive message cards"}),e.jsx("p",{children:"- developer cli (ov) for task management and terminal attachment"}),e.jsx("p",{children:"- operations cli (overlord) for server/worker lifecycle management"}),e.jsx("p",{children:"- role-based access control (developer, lead, admin)"}),e.jsx("p",{children:"- totp two-factor authentication"}),e.jsx("p",{children:"- personal access tokens for api/cli authentication"}),e.jsx("p",{children:"- cursor remote tunnel support for workspace access"}),e.jsx("p",{children:"- project-level configuration with pipeline definitions"}),e.jsx("p",{children:"- audit logging for all administrative actions"}),e.jsx("p",{children:"- cloudflare zero trust deployment support"}),e.jsx("p",{children:"- sqlite database with wal mode"}),e.jsx("p",{children:"- redis-backed task queue via bullmq"}),e.jsx("p",{children:"- comprehensive web dashboard with dark/light theme"})]})]})})]})}export{s as default};
@@ -1,7 +0,0 @@
1
- import{c as O,r as i,a as z,j as s,I as Q,J as Z,n as I,u as $,h as F,v as ee,K as te,M as ne}from"./index-D3EF0BU0.js";import{L as re}from"./loader-circle-CPOjAAu7.js";import{R as se}from"./rotate-ccw-CesPJxB6.js";import{a as ae,P as G}from"./PtyTerminal-CvlgzMDa.js";import{a as oe}from"./date-RFA7-ZGs.js";import{F as ce}from"./file-text-BfrzBouS.js";import{C as ie}from"./clock-B6V-4VR5.js";/**
2
- * @license lucide-react v0.469.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 K=O("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]),H="claude";function Ce(t){if(t.agentType)return t.agentType;if(!t.configSnapshot)return H;try{const n=JSON.parse(t.configSnapshot);return typeof n.agentType=="string"&&n.agentType?n.agentType:H}catch{return H}}const le=768,V=`(max-width: ${le-1}px)`;function Y(){const[t,n]=i.useState(()=>typeof window>"u"?!1:window.matchMedia(V).matches);return i.useEffect(()=>{const e=window.matchMedia(V);n(e.matches);const r=a=>n(a.matches);return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[]),t}function ue({state:t,onRelease:n,onRequestTakeover:e,denialReason:r,retryAttempt:a=1,maxRetries:o=3}){const{t:u}=z(),[l,c]=i.useState(!0);return i.useEffect(()=>{c(!0)},[t]),l?s.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--border)] px-3 py-2",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[t==="auto"&&s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"h-3 w-3 text-[var(--accent)]"}),s.jsx("span",{className:"text-[11px] font-medium text-[var(--accent)]",children:u("tasks.auto_pipeline")})]}),t==="requesting"&&s.jsxs(s.Fragment,{children:[s.jsx(re,{className:"h-3 w-3 animate-spin text-amber-500"}),s.jsx("span",{className:"text-[11px] font-medium text-amber-500",children:u("tasks.requesting_takeover")})]}),t==="manual"&&s.jsxs(s.Fragment,{children:[s.jsx(K,{className:"h-3 w-3 text-amber-500"}),s.jsx("span",{className:"text-[11px] font-medium text-amber-500",children:u("tasks.manual_takeover")})]}),t==="denied"&&s.jsxs("div",{className:"flex items-center gap-1.5 rounded-[4px] border border-red-900 bg-red-950 px-2.5 py-1",children:[s.jsx(Z,{className:"h-3 w-3 text-red-500"}),s.jsxs("span",{className:"text-[11px] font-medium text-red-500",children:[u("tasks.takeover_denied"),r?`: ${r}`:""]})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[(t==="auto"||t==="denied")&&e&&s.jsx("button",{type:"button",onClick:e,className:"inline-flex items-center rounded-[4px] border border-[var(--border)] p-1.5 text-amber-500 hover:bg-white/5","aria-label":u("tasks.take_over"),children:s.jsx(K,{className:"h-3.5 w-3.5"})}),t==="manual"&&n&&s.jsx("button",{type:"button",onClick:n,className:"inline-flex items-center rounded-[4px] bg-[var(--accent)] p-1.5","aria-label":u("tasks.restore_auto"),children:s.jsx(se,{className:"h-3.5 w-3.5 text-black"})})]})]}):null}function de({value:t,onChange:n,onSubmit:e,isMobile:r=!1,inputDisabled:a=!1,sendDisabled:o=!1}){function u(c){c.preventDefault(),!o&&e()}function l(c){if(!(c.nativeEvent.isComposing||c.keyCode===229)&&c.key==="Enter"&&!c.shiftKey){if(c.preventDefault(),o)return;e()}}return s.jsxs("form",{onSubmit:u,className:"flex flex-col gap-2 rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] p-2",children:[s.jsx("textarea",{value:t,onChange:c=>n(c.target.value),onKeyDown:l,rows:r?3:4,spellCheck:!1,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",placeholder:"type a command...",disabled:a,className:"min-h-20 resize-none rounded-[4px] border border-[var(--border)] bg-transparent px-3 py-2 font-mono text-xs text-[var(--text-primary)] outline-none placeholder:text-[var(--text-muted)] disabled:cursor-not-allowed disabled:opacity-60"}),s.jsx("div",{className:"flex items-center justify-end",children:s.jsx("button",{type:"submit",disabled:o,className:"rounded-[4px] bg-[var(--accent)] px-3 py-1.5 text-xs font-medium text-black disabled:cursor-not-allowed disabled:opacity-60",children:"send"})})]})}const P=new Map;function X(t){const n=(P.get(t)??0)+1;return P.set(t,n),n}function fe(){for(const[t,n]of P.entries())P.set(t,n+1)}function U(t,n){return P.get(t)===n}const A=I((t,n)=>({connections:new Map,statuses:new Map,connect:async(e,r,a)=>{const o=X(e),u=n().connections.get(e);u&&(u.dispose(),t(b=>{const p=new Map(b.connections);p.delete(e);const v=new Map(b.statuses);return v.delete(e),{connections:p,statuses:v}}));const l=$.getState().accessToken;if(!l)throw new Error("Not authenticated");const{channelToken:c}=await F.post(`web/tasks/${e}/pty-token`).json(),f=async()=>(await F.post(`web/tasks/${e}/pty-token`).json()).channelToken,h=new ae({taskId:e,accessToken:l,channelToken:c,getChannelToken:f,getAccessToken:()=>$.getState().accessToken,onData:r,onMessage:a,onStatus:b=>{U(e,o)&&t(p=>{if(p.statuses.get(e)===b)return p;const v=new Map(p.statuses);return v.set(e,b),{statuses:v}})}});if(!U(e,o)){h.dispose();return}t(b=>{const p=new Map(b.connections);return p.set(e,h),{connections:p}}),h.connect()},disconnect:e=>{X(e);const r=n().connections.get(e);r&&(r.dispose(),t(a=>{const o=new Map(a.connections);o.delete(e);const u=new Map(a.statuses);return u.delete(e),{connections:o,statuses:u}}))},write:(e,r)=>{var a;(a=n().connections.get(e))==null||a.sendData(r)},resize:(e,r,a)=>{var o;(o=n().connections.get(e))==null||o.sendResize(r,a)},requestTakeover:(e,r)=>{var a;(a=n().connections.get(e))==null||a.requestTakeover(r)},releaseTakeover:e=>{var r;(r=n().connections.get(e))==null||r.releaseTakeover()},forceTakeover:e=>{var r;(r=n().connections.get(e))==null||r.send({type:"force_takeover"})},disconnectAll:()=>{fe();for(const e of n().connections.values())e.dispose();t({connections:new Map,statuses:new Map})}})),J="\x1B",pe=new Set(["h","l"]),xe=new Set(["1049","1047","47"]);function W(){return{visibleText:"",inAlternateScreen:!1,fullscreenTuiDetected:!1,pendingControlSequence:""}}function me(t,n){const e=be(t.pendingControlSequence+n),r=(t.visibleText+e.visibleText).slice(-12e4);let a=t.inAlternateScreen,o=t.fullscreenTuiDetected;for(const u of e.alternateScreenTransitions)a=u==="enter",u==="enter"&&(o=!0);return{visibleText:r,inAlternateScreen:a,fullscreenTuiDetected:o,pendingControlSequence:e.pendingControlSequence}}function be(t){let n="";const e=[];let r="";for(let a=0;a<t.length;){const o=t[a];if(o!==J){o!=="\r"&&o!=="\x07"&&(n+=o),a+=1;continue}if(a===t.length-1){r=t.slice(a);break}const u=t[a+1];if(u==="["){const c=ve(t,a+2);if(c===-1){r=t.slice(a);break}const f=t.slice(a,c+1),h=ge(f);h&&e.push(h),a=c+1;continue}if(u==="]"){const c=he(t,a+2);if(c===-1){r=t.slice(a);break}a=c+1;continue}const l=we(t,a+1);if(l===-1){r=t.slice(a);break}a=l+1}return{visibleText:n,alternateScreenTransitions:e,pendingControlSequence:r}}function ve(t,n){let e=n;for(;e<t.length;){const r=t.charCodeAt(e);if(r>=64&&r<=126)return e;if(r>=48&&r<=63||r>=32&&r<=47){e+=1;continue}return-1}return-1}function he(t,n){for(let e=n;e<t.length;e+=1){if(t[e]==="\x07")return e;if(t[e]===J&&t[e+1]==="\\")return e+1}return-1}function we(t,n){let e=n;for(;e<t.length;){const r=t.charCodeAt(e);if(r>=48&&r<=126)return e;if(r>=32&&r<=47){e+=1;continue}return-1}return-1}function ge(t){if(!t.startsWith("\x1B[?"))return null;const n=t.at(-1);if(!n||!pe.has(n))return null;const e=t.slice(3,-1);return xe.has(e)?n==="h"?"enter":"exit":null}const ye=i.forwardRef(function({taskId:n,taskFinished:e=!1,onOpenFullTerminal:r,onStatusChange:a,onTakeoverChange:o},u){const l=Y(),{t:c}=z(),f=A(x=>x.connect),h=A(x=>x.disconnect),b=A(x=>x.write),p=A(x=>x.forceTakeover),v=A(x=>x.releaseTakeover),_=A(x=>x.statuses.get(n)),[g,k]=i.useState(""),[S,E]=i.useState(W()),[j,y]=i.useState("auto"),[C,d]=i.useState();i.useEffect(()=>{k(""),E(W()),y("auto"),d(void 0)},[n]),i.useEffect(()=>{e&&(y("auto"),d(void 0))},[e]),i.useEffect(()=>{a==null||a(_??"disconnected")},[a,_]),i.useEffect(()=>{o==null||o(j)},[o,j]),i.useEffect(()=>{if(e)return;let x=!0,q,m=0;const T=5,B=()=>{f(n,D=>{x&&E(L=>me(L,D))},D=>{if(!x)return;const L=D;switch(L.type){case"takeover_granted":y("manual"),d(void 0);break;case"takeover_denied":y("denied"),d(L.reason??L.message);break;case"writer_revoked":y("auto"),d(void 0);break}}).catch(()=>{if(x&&m<T){const D=Math.min(3e3*2**m,3e4);m++,q=setTimeout(B,D)}})};return B(),()=>{x=!1,q&&clearTimeout(q),h(n)}},[f,h,e,n]);const w=_==="connected"&&j==="manual",N=i.useCallback(()=>{w&&(b(n,`${g}
7
- `),k(""))},[g,w,n,b]),M=i.useCallback(()=>{y("requesting"),d(void 0),p(n)},[p,n]),R=i.useCallback(()=>{v(n),y("auto"),d(void 0)},[v,n]);return i.useImperativeHandle(u,()=>({requestTakeover:M,releaseTakeover:R}),[R,M]),s.jsxs("div",{"data-testid":"companion-terminal",className:"flex h-full min-h-0 flex-col rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] font-mono text-xs text-[var(--text-primary)]",children:[s.jsx(ue,{state:j,onRequestTakeover:e?void 0:M,onRelease:e?void 0:R,denialReason:C}),s.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:[r&&s.jsx("div",{className:"mb-3 flex justify-end",children:s.jsx("button",{type:"button",onClick:r,className:"rounded-[4px] border border-[var(--border)] px-3 py-1.5 text-[11px] text-[var(--text-primary)] hover:bg-white/5",children:c("tasks.full_terminal")})}),S.fullscreenTuiDetected&&s.jsx("div",{className:"mb-3 rounded-[4px] border border-amber-900 bg-amber-950/40 px-3 py-2 text-[11px] text-amber-300",children:c("tasks.complex_terminal_hint")}),s.jsx("pre",{"data-testid":"companion-terminal-output","aria-label":"terminal output",className:"min-h-[120px] overflow-auto whitespace-pre-wrap break-words rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] p-3 text-[12px] leading-5 text-[var(--text-primary)]",children:S.visibleText||c("tasks.no_output")})]}),s.jsx("div",{className:"shrink-0 border-t border-[var(--border)] p-3",children:s.jsx(de,{value:g,onChange:k,onSubmit:N,isMobile:l,inputDisabled:e,sendDisabled:e||!w})})]})}),Me=i.forwardRef(function({taskId:n,sessionId:e,taskFinished:r,onStatusChange:a,onTakeoverChange:o},u){const l=Y(),{t:c}=z(),[f,h]=i.useState("companion"),[b,p]=i.useState(!1),[v,_]=i.useState("disconnected"),[g,k]=i.useState("auto"),[S,E]=i.useState("disconnected"),[j,y]=i.useState("auto"),[C,d]=i.useState(null),w=i.useRef(null),N=i.useRef(null);i.useEffect(()=>{h("companion"),p(!1),_("disconnected"),k("auto"),E("disconnected"),y("auto"),d(null)},[n]);const M=f==="full"?S:v,R=f==="full"?j:g;i.useEffect(()=>{l&&(a==null||a(M))},[M,l,a]),i.useEffect(()=>{l&&(o==null||o(R))},[R,l,o]),i.useEffect(()=>{var m,T;if(!(!l||!C)){if(C==="full"){if(S!=="connected")return;(m=N.current)==null||m.requestTakeover(),d(null);return}v==="connected"&&((T=w.current)==null||T.requestTakeover(),d(null))}},[v,S,l,C]);const x=i.useCallback(()=>{var m;g==="manual"&&((m=w.current)==null||m.releaseTakeover(),d("full")),p(!0),h("full")},[g]),q=i.useCallback(()=>{var m;j==="manual"&&((m=N.current)==null||m.releaseTakeover(),d("companion")),h("companion")},[j]);return i.useImperativeHandle(u,()=>({requestTakeover(){var m,T;if(!l||f==="full"){(m=N.current)==null||m.requestTakeover();return}(T=w.current)==null||T.requestTakeover()},releaseTakeover(){var m,T;if(!l||f==="full"){(m=N.current)==null||m.releaseTakeover();return}(T=w.current)==null||T.releaseTakeover()}}),[l,f]),l?s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2 overflow-hidden",children:[f==="full"&&s.jsx("button",{type:"button",onClick:q,className:"self-start rounded-[4px] border border-[var(--border)] px-3 py-2 text-[11px] text-[var(--text-primary)]",children:c("tasks.return_to_companion")}),s.jsx("div",{className:f==="companion"?"min-h-0 flex-1 overflow-hidden":"hidden",children:s.jsx(ye,{ref:w,taskId:n,taskFinished:r,onOpenFullTerminal:x,onStatusChange:_,onTakeoverChange:k})}),b&&s.jsx("div",{className:f==="full"?"min-h-0 flex-1 overflow-hidden":"hidden",children:s.jsx(G,{ref:N,taskId:n,sessionId:e,taskFinished:r,onStatusChange:E,onTakeoverChange:y})})]}):s.jsx(G,{ref:N,taskId:n,sessionId:e,taskFinished:r,onStatusChange:a,onTakeoverChange:o})});function Re({isOpen:t,onClose:n,taskId:e,stageName:r,timeoutSeconds:a,confirmType:o="confirm",prompt:u,onSubmitted:l}){const{t:c}=z();ee(t);const[f,h]=i.useState(a),[b,p]=i.useState(!1),[v,_]=i.useState(""),g=o==="plan_review"||o==="code_review",k=o==="plan_decompose";i.useEffect(()=>{if(!t)return;h(a),_("");const d=setInterval(()=>{h(w=>w<=1?(clearInterval(d),0):w-1)},1e3);return()=>clearInterval(d)},[t,a]),i.useEffect(()=>{f===0&&t&&n()},[f,t,n]);const S=i.useCallback(async d=>{p(!0);try{const w={stageName:r,approved:d};g&&!k&&v.trim()&&(w.feedback=v.trim()),await F.post(`web/tasks/${e}/confirm-stage`,{json:w}),l==null||l(),n()}catch{}finally{p(!1)}},[e,r,v,g,k,n,l]);if(!t)return null;const E=o==="plan_review"||o==="plan_decompose"?ce:o==="code_review"?te:ne,j=o==="plan_review"?c("tasks.plan_review_message",{name:r}):o==="plan_decompose"?c(u==="SPEC_PUSH_FAILED"?"tasks.plan_decompose_push_failed_message":"tasks.plan_decompose_message"):o==="code_review"?c("tasks.code_review_message",{name:r}):c("tasks.confirm_stage_message",{name:r}),y=c(o==="plan_review"?"tasks.approve_plan":o==="plan_decompose"?"tasks.approve_plan_decompose":o==="code_review"?"tasks.approve_review":"tasks.confirm_and_proceed"),C=c(o==="plan_decompose"?"tasks.reject_plan_decompose":g?"tasks.request_changes":"tasks.reject");return s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{backdropFilter:"blur(2px)"},children:[s.jsx("div",{className:"fixed inset-0 bg-[var(--modal-backdrop)]"}),s.jsxs("div",{className:"relative z-10 w-full max-w-[480px] rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] font-mono",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--border)] px-5 py-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(E,{className:"h-4 w-4 text-[var(--accent)]"}),s.jsxs("h3",{className:"text-sm text-[var(--text-primary)]",children:["// stage: ",r]})]}),a>0&&s.jsxs("span",{className:"flex items-center gap-1 text-xs text-[var(--text-muted)]",children:[s.jsx(ie,{className:"h-3.5 w-3.5"}),oe(f)]})]}),s.jsxs("div",{className:"space-y-4 px-5 py-5",children:[s.jsx("p",{className:"whitespace-pre-wrap text-xs text-[var(--text-primary)]",children:j}),g&&!k&&s.jsx("textarea",{className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] px-3 py-2 text-xs text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:border-[var(--accent)] focus:outline-none resize-y",rows:4,placeholder:c("tasks.feedback_placeholder"),value:v,onChange:d=>_(d.target.value)})]}),s.jsxs("div",{className:"flex items-center justify-end gap-2 border-t border-[var(--border)] px-5 py-4",children:[s.jsx("button",{type:"button",className:"rounded-[4px] border border-[var(--border)] px-3 py-1.5 text-xs text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors disabled:opacity-50",disabled:b,onClick:()=>S(!1),children:C}),s.jsx("button",{type:"button",className:"rounded-[4px] bg-[var(--accent)] px-3 py-1.5 text-xs text-black hover:opacity-90 transition-opacity disabled:opacity-50",disabled:b,onClick:()=>S(!0),children:b?c("tasks.stage_submitting"):y})]})]})]})}export{Re as C,K as H,Me as M,Ce as g,Y as u};
@@ -1,26 +0,0 @@
1
- import{c,a as _,j as s,K as t,S as p,b as h,M as m,a8 as y,d as x,L as v}from"./index-D3EF0BU0.js";import{D as k}from"./download-3Syugo5K.js";import{B as b}from"./bot-BpRqYalx.js";import{G as a,W as g}from"./workflow-D6VrmpVC.js";import{S as u}from"./settings-Cpf4Aw4Z.js";import{F as w}from"./file-text-BfrzBouS.js";/**
2
- * @license lucide-react v0.469.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 K=c("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
7
- * @license lucide-react v0.469.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 f=c("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
12
- * @license lucide-react v0.469.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const j=c("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
17
- * @license lucide-react v0.469.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const M=c("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
22
- * @license lucide-react v0.469.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const N=c("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),z=[{titleKey:"docs.docs_nav_getting_started",cards:[{to:"/docs/installation",label:"docs.docs_installation",descKey:"docs.docs_desc_installation",icon:k},{to:"/docs/developer-setup",label:"docs.docs_developer_setup",descKey:"docs.docs_desc_developer_setup",icon:t},{to:"/docs/worker-setup",label:"docs.docs_worker_setup",descKey:"docs.docs_desc_worker_setup",icon:p},{to:"/docs/bot-setup",label:"docs.docs_bot_setup",descKey:"docs.docs_desc_bot_setup",icon:b}]},{titleKey:"docs.docs_nav_guides",cards:[{to:"/docs/local-development",label:"docs.docs_local_dev",descKey:"docs.docs_desc_local_dev",icon:j},{to:"/docs/worker-operations",label:"docs.docs_worker_ops",descKey:"docs.docs_desc_worker_ops",icon:K},{to:"/docs/deployment",label:"docs.docs_deployment",descKey:"docs.docs_desc_deployment",icon:N},{to:"/docs/pipeline-config",label:"docs.docs_pipeline",descKey:"docs.docs_desc_pipeline",icon:a},{to:"/docs/dev-workflow",label:"docs.docs_dev_workflow",descKey:"docs.docs_desc_dev_workflow",icon:g}]},{titleKey:"docs.docs_nav_reference",cards:[{to:"/docs/cli",label:"docs.docs_cli",descKey:"docs.docs_desc_cli",icon:h},{to:"/docs/api",label:"docs.docs_api",descKey:"docs.docs_desc_api",icon:t},{to:"/docs/task-guide",label:"docs.docs_task_guide",descKey:"docs.docs_desc_task_guide",icon:a},{to:"/docs/bot",label:"docs.docs_bot_integration",descKey:"docs.docs_desc_bot_integration",icon:m},{to:"/docs/skill",label:"docs.docs_skill",descKey:"docs.docs_desc_skill",icon:y},{to:"/docs/permissions",label:"docs.docs_permissions",descKey:"docs.docs_desc_permissions",icon:x},{to:"/docs/env-variables",label:"docs.docs_env_vars",descKey:"docs.docs_desc_env_vars",icon:u},{to:"/docs/agent-cli",label:"docs.docs_agent_cli",descKey:"docs.docs_desc_agent_cli",icon:f}]},{titleKey:"docs.docs_nav_other",cards:[{to:"/docs/architecture",label:"docs.docs_architecture",descKey:"docs.docs_desc_architecture",icon:M},{to:"/docs/changelog",label:"docs.docs_changelog",descKey:"docs.docs_desc_changelog",icon:w}]}];function C(){const{t:e}=_();return s.jsxs("div",{className:"mx-auto max-w-4xl font-mono lowercase",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h1",{className:"text-sm text-[var(--text-primary)]",children:e("docs.docs_all_title")}),s.jsx("p",{className:"mt-1 text-xs text-[var(--text-muted)]",children:e("docs.docs_all_subtitle")})]}),s.jsx("div",{className:"space-y-8",children:z.map(({titleKey:o,cards:l})=>s.jsxs("section",{children:[s.jsx("h2",{className:"mb-3 text-xs font-semibold text-[var(--accent)]",children:e(o)}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:l.map(({to:d,label:i,descKey:r,icon:n})=>s.jsxs(v,{to:d,className:"flex items-start gap-3 rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 transition-colors hover:border-[var(--accent)]",children:[s.jsx(n,{size:16,className:"mt-0.5 shrink-0 text-[var(--accent)]"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm text-[var(--text-primary)]",children:e(i)}),s.jsx("p",{className:"mt-0.5 text-xs text-[var(--text-muted)]",children:e(r)})]})]},d))})]},o))})]})}export{C as default};