@overlordai/server 1.0.131 → 1.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/lark/lark.controller.d.ts.map +1 -1
- package/dist/adapters/lark/lark.controller.js +16 -1
- package/dist/adapters/lark/lark.controller.js.map +1 -1
- package/dist/adapters/slack/slack.controller.d.ts.map +1 -1
- package/dist/adapters/slack/slack.controller.js +35 -19
- package/dist/adapters/slack/slack.controller.js.map +1 -1
- package/dist/dispatcher/heartbeat.service.js +2 -2
- package/dist/dispatcher/heartbeat.service.js.map +1 -1
- package/dist/dispatcher/task-creation.service.d.ts +3 -1
- package/dist/dispatcher/task-creation.service.d.ts.map +1 -1
- package/dist/dispatcher/task-creation.service.js +16 -2
- package/dist/dispatcher/task-creation.service.js.map +1 -1
- package/dist/notifier/notification-consumer.d.ts.map +1 -1
- package/dist/notifier/notification-consumer.js +21 -0
- package/dist/notifier/notification-consumer.js.map +1 -1
- package/dist/web/task.controller.d.ts +12 -2
- package/dist/web/task.controller.d.ts.map +1 -1
- package/dist/web/task.controller.js +14 -6
- package/dist/web/task.controller.js.map +1 -1
- package/package.json +4 -4
- package/public/assets/{AccessTokensPage-B1G2-mUi.js → AccessTokensPage-B_di-j0j.js} +1 -1
- package/public/assets/{AdminPage-BfQmSXQa.js → AdminPage-DIyGC-b1.js} +1 -1
- package/public/assets/{AgentCliPage-D7QPKJpY.js → AgentCliPage-CiSE6MOL.js} +1 -1
- package/public/assets/{ApiReferencePage-DIYFxzq0.js → ApiReferencePage-Cv1THMOi.js} +1 -1
- package/public/assets/{ArchitecturePage-DZqBL3l7.js → ArchitecturePage-H1WtP2sH.js} +1 -1
- package/public/assets/{AuditLogPage-BGxaXcKz.js → AuditLogPage-Q-izWOoJ.js} +1 -1
- package/public/assets/{BindPlatformPage-rtjDTUn-.js → BindPlatformPage-S-s2YO1G.js} +1 -1
- package/public/assets/{BotIntegrationPage-DhApmTBA.js → BotIntegrationPage-CzgR3bDN.js} +1 -1
- package/public/assets/{BotManage-Db0KRZ8H.js → BotManage-Cmb0u2y7.js} +1 -1
- package/public/assets/{BotSetupPage-BKSV06rk.js → BotSetupPage-DCuRv9lx.js} +1 -1
- package/public/assets/{ChangelogPage-C3gSpp3g.js → ChangelogPage-DGVNwh9w.js} +1 -1
- package/public/assets/{CliReferencePage-ejyySCuq.js → CliReferencePage-DKZZacin.js} +1 -1
- package/public/assets/{DeploymentPage-Cq1gui8d.js → DeploymentPage-Cd_K6k-C.js} +1 -1
- package/public/assets/{DevWorkflowPage-CqU3wVnM.js → DevWorkflowPage-DY1Kcsg7.js} +1 -1
- package/public/assets/{DeveloperManage-CpSvUtkr.js → DeveloperManage-BnhZ_Aqp.js} +1 -1
- package/public/assets/{DeveloperSetupPage-bXuJM2eH.js → DeveloperSetupPage-C3519X2U.js} +1 -1
- package/public/assets/{DocsIndexPage-D_GPFyTY.js → DocsIndexPage-BXNlGsUi.js} +1 -1
- package/public/assets/{DocsLayout-BY6F_ywj.js → DocsLayout-CZh1AEB5.js} +1 -1
- package/public/assets/{DocsPrimitives-DX-7e1im.js → DocsPrimitives-DNdGlGlH.js} +1 -1
- package/public/assets/{EditProjectPage-D0JZ_TKw.js → EditProjectPage-BMsLYq9D.js} +1 -1
- package/public/assets/{EmptyState-mJyWr5uH.js → EmptyState-9Eqw0iR8.js} +1 -1
- package/public/assets/{EnvVariablesPage-fLXzba5e.js → EnvVariablesPage-Cddaji3m.js} +1 -1
- package/public/assets/HomePage-CRZSG4wX.js +1 -0
- package/public/assets/{InfoRow-Y1sU0G2n.js → InfoRow-C3ZXZz4q.js} +1 -1
- package/public/assets/{InstallationPage-BI1eTsYg.js → InstallationPage-BTbG8z22.js} +1 -1
- package/public/assets/{LandingPage-B29hFr5l.js → LandingPage-DpdvNKYz.js} +1 -1
- package/public/assets/{LocalDevelopmentPage-DKZu2NH2.js → LocalDevelopmentPage-CqPNGlUK.js} +1 -1
- package/public/assets/{LoginPage-DxhouRBW.js → LoginPage-CzJDQ0H0.js} +1 -1
- package/public/assets/{MetricBar-eTMDxsUA.js → MetricBar-CixGVqjI.js} +1 -1
- package/public/assets/{NotFoundPage-C0EcsleR.js → NotFoundPage-DdxosdYc.js} +1 -1
- package/public/assets/{OnboardingGuide-Da2v37e-.js → OnboardingGuide-C1-sQUW7.js} +1 -1
- package/public/assets/{PermissionsPage-gn5TccJJ.js → PermissionsPage-Db7ynPhr.js} +1 -1
- package/public/assets/{PipelineConfigPage-Dpg_1f8s.js → PipelineConfigPage-DM_btq4K.js} +1 -1
- package/public/assets/{PipelineEditorPage-EWSpEJ5f.js → PipelineEditorPage-CAO4j2sA.js} +1 -1
- package/public/assets/{ProfilePage-DELsbzEP.js → ProfilePage-5b64UEF7.js} +1 -1
- package/public/assets/{ProjectDetailPage-CNiRP1xl.js → ProjectDetailPage-B9my9oLw.js} +1 -1
- package/public/assets/{ProjectListPage-CYcEgWyH.js → ProjectListPage-D0ArUg7q.js} +1 -1
- package/public/assets/{PtyTerminal-BnlhlDB0.js → PtyTerminal-C9Bp0uS_.js} +5 -5
- package/public/assets/{QuickAuth-BJjb8FUv.js → QuickAuth-C1XxLYNZ.js} +1 -1
- package/public/assets/{RemoveMemberConfirmDialog-DTCM7tSO.js → RemoveMemberConfirmDialog-gohLNDc5.js} +1 -1
- package/public/assets/{Select-DqguHTDG.js → Select-CkMgU0Lq.js} +1 -1
- package/public/assets/{SettingsPage-DZJf1o-J.js → SettingsPage-Crc4EZDF.js} +1 -1
- package/public/assets/{Skeleton-D6Pa0ZVm.js → Skeleton-DI-HCY-N.js} +1 -1
- package/public/assets/{SkillPage-BvcpkVCR.js → SkillPage-SmsZWW8c.js} +1 -1
- package/public/assets/TaskDetailPage-cjzjPYPW.js +26 -0
- package/public/assets/{TaskListPage-wY64PBlG.js → TaskListPage-BCj8HmhB.js} +1 -1
- package/public/assets/{TaskStatusBadge-mCwzxB1W.js → TaskStatusBadge-B49xL6ug.js} +1 -1
- package/public/assets/TerminalHomePage-BmShj9-L.js +11 -0
- package/public/assets/{TokenManage-CyUVin7L.js → TokenManage-CXGZwaVK.js} +1 -1
- package/public/assets/{Tooltip-BPOc-WnR.js → Tooltip-DrIj1IXL.js} +1 -1
- package/public/assets/{TotpSetupPage-DjccU57R.js → TotpSetupPage-B81U1CZB.js} +1 -1
- package/public/assets/{WorkerDetailPage-CE4-kfOS.js → WorkerDetailPage-D3l1CEg-.js} +1 -1
- package/public/assets/{WorkerListPage-C0rAZuEy.js → WorkerListPage-CR3ptj-n.js} +1 -1
- package/public/assets/{WorkerOperationsPage-B3P0RNCo.js → WorkerOperationsPage-CcfPJ-Vx.js} +1 -1
- package/public/assets/{WorkerSetupGuidePage-m-iSn-iM.js → WorkerSetupGuidePage-C_GA4jv_.js} +1 -1
- package/public/assets/{WorkerSetupPage-CLOruE6A.js → WorkerSetupPage-hV7T8eEi.js} +1 -1
- package/public/assets/{arrow-left-PTRz8m1_.js → arrow-left-BwtdfCwD.js} +1 -1
- package/public/assets/{arrow-right-DZEEeomG.js → arrow-right-BQPypZRF.js} +1 -1
- package/public/assets/{bot-DO5AEPZ9.js → bot-3i2pb58N.js} +1 -1
- package/public/assets/{chevron-left-xzCRCgCf.js → chevron-left-6cPJJmnY.js} +1 -1
- package/public/assets/{chevron-right-BbeAvkMB.js → chevron-right-DxtB9dXk.js} +1 -1
- package/public/assets/{copy-DS3maJzX.js → copy-BckVr8cJ.js} +1 -1
- package/public/assets/{download-CAQcL8_2.js → download-DnrLGHSN.js} +1 -1
- package/public/assets/{external-link-FvIHStgA.js → external-link-BWs-24k_.js} +1 -1
- package/public/assets/{git-fork-BP1TgVm_.js → git-fork-DxuKN6TL.js} +1 -1
- package/public/assets/{index-CbvYIryv.js → index-D3ZK8e35.js} +42 -42
- package/public/assets/{key-BvFrEADj.js → key-BjxaakEN.js} +1 -1
- package/public/assets/{loader-circle-BMEwIEOC.js → loader-circle-fKTUhuFx.js} +1 -1
- package/public/assets/{pencil-BqFS4_42.js → pencil-BGn762Xd.js} +1 -1
- package/public/assets/{plus-DD4TjVZi.js → plus-DfeF35ew.js} +1 -1
- package/public/assets/{rotate-ccw-DPfDjC5H.js → rotate-ccw-DnJi9esb.js} +1 -1
- package/public/assets/{scroll-text-Cdl7phHH.js → scroll-text-CDAXkr64.js} +1 -1
- package/public/assets/{settings-CsNMSeUW.js → settings-BQ40mw10.js} +1 -1
- package/public/assets/{status-colors-DzMGFhKZ.js → status-colors-BgploKhY.js} +1 -1
- package/public/assets/{task-constants-DmpuTnwm.js → task-constants-eOji5WUw.js} +1 -1
- package/public/assets/{trash-2-Dyd_X4uS.js → trash-2-B6XaTY-0.js} +1 -1
- package/public/assets/{useFetch-Czyzp06l.js → useFetch-CSoNR_l8.js} +1 -1
- package/public/assets/{users-Cok9LpO-.js → users-DI9FgcZa.js} +1 -1
- package/public/assets/{wifi-U3S68mli.js → wifi-D9JcPn5X.js} +1 -1
- package/public/assets/{workflow-CbWymCow.js → workflow-DRETOaoe.js} +1 -1
- package/public/index.html +1 -1
- package/public/manifest.webmanifest +1 -1
- package/public/sw.js +1 -1
- package/public/assets/HomePage-kOecxD0_.js +0 -1
- package/public/assets/TaskDetailPage-Bj7vrwv0.js +0 -26
- package/public/assets/TerminalHomePage-DmYjzI7b.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-D3ZK8e35.js";import{a}from"./DocsPrimitives-DNdGlGlH.js";import"./copy-BckVr8cJ.js";const c=`[
|
|
2
2
|
{
|
|
3
3
|
"name": "develop",
|
|
4
4
|
"command": "/develop {description}",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as g,r as x,j as e,Q as $,A as I,f as M,h as S,t as y}from"./index-
|
|
1
|
+
import{a as g,r as x,j as e,Q as $,A as I,f as M,h as S,t as y}from"./index-D3ZK8e35.js";import{S as C}from"./Select-CkMgU0Lq.js";const O={stages:[]};function q(){return{name:"",prompt:""}}function b({children:t}){return e.jsx("label",{className:"mb-1 block font-mono text-[11px] text-[var(--text-secondary)]",children:t})}function j({value:t,onChange:o,placeholder:a,type:r="text",className:c=""}){return e.jsx("input",{type:r,value:t,onChange:s=>o(s.target.value),placeholder:a,className:`w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] px-2.5 py-1.5 font-mono text-xs text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:border-[var(--accent)] focus:outline-none ${c}`})}function J({checked:t,onChange:o}){return e.jsx("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>o(!t),className:`relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-[var(--border)] transition-colors ${t?"bg-[var(--accent)]":"bg-[var(--bg-primary)]"}`,children:e.jsx("span",{className:`inline-block h-3.5 w-3.5 rounded-full bg-white shadow transition-transform ${t?"translate-x-[18px]":"translate-x-[2px]"}`})})}function N({value:t,onChange:o,placeholder:a,rows:r=4}){return e.jsx("textarea",{value:t,onChange:c=>o(c.target.value),placeholder:a,rows:r,className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] px-2.5 py-1.5 font-mono text-xs leading-relaxed text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:border-[var(--accent)] focus:outline-none"})}function T({stage:t,index:o,selected:a,onSelect:r,onDelete:c}){const{t:s}=g(),i=t.prompt?$(t.prompt,60):"";return e.jsxs("div",{role:"button",tabIndex:0,onClick:r,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),r())},className:`group relative flex w-full items-start gap-3 rounded-[4px] border px-4 py-3 text-left transition-colors ${a?"border-[var(--accent)] bg-[var(--bg-card)]":"border-[var(--border)] bg-[var(--bg-card)] hover:border-[var(--text-muted)]"}`,style:{borderLeftWidth:3,borderLeftColor:"var(--accent)"},children:[e.jsx("span",{className:"mt-0.5 shrink-0 font-mono text-[11px] text-[var(--text-muted)]",children:String(o+1).padStart(2,"0")}),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 font-mono text-xs font-bold text-[var(--text-primary)]",children:t.name||"unnamed"}),t.label&&e.jsx("span",{className:"truncate font-mono text-[11px] text-[var(--text-muted)]",children:t.label})]}),i&&e.jsxs("div",{className:"mt-0.5 truncate font-mono text-[11px] text-[var(--text-muted)]",children:["// ",i]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2 font-mono text-[11px] text-[var(--text-muted)]",children:[t.gate&&e.jsx("span",{children:"gate"}),t.requireConfirm&&e.jsx("span",{children:"confirm"}),t.timeout!=null&&e.jsxs("span",{children:["timeout:",t.timeout,"s"]})]})]}),e.jsx("button",{type:"button",onClick:d=>{d.stopPropagation(),c()},className:"mt-0.5 shrink-0 rounded-[4px] p-0.5 text-[var(--text-muted)] opacity-0 transition-opacity hover:text-[var(--destructive)] group-hover:opacity-100","aria-label":s("pipeline.delete_stage"),children:e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"3 6 5 6 21 6"}),e.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})})]})}function _({stage:t,onChange:o,allStageNames:a}){const{t:r}=g(),c=x.useMemo(()=>{const s=[{value:"",label:"-- select --"}];for(const i of a)i&&i!==t.name&&s.push({value:i,label:i});return s},[a,t.name]);return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"font-mono text-sm font-semibold text-[var(--accent)]",children:r("pipeline.stage_properties")}),e.jsx("p",{className:"font-mono text-[11px] text-[var(--text-muted)]",children:r("pipeline.editing",{name:t.name||r("pipeline.unnamed")})}),e.jsxs("div",{children:[e.jsxs(b,{children:[r("pipeline.name")," *"]}),e.jsx(j,{value:t.name,onChange:s=>o({name:s}),placeholder:r("pipeline.stage_name")})]}),e.jsxs("div",{children:[e.jsx(b,{children:"label"}),e.jsx(j,{value:t.label??"",onChange:s=>o({label:s||void 0}),placeholder:"optional display label"})]}),e.jsxs("div",{children:[e.jsx(b,{children:"prompt *"}),e.jsx(N,{value:t.prompt,onChange:s=>o({prompt:s}),placeholder:"instructions for the agent...",rows:8})]}),e.jsxs("div",{children:[e.jsx(b,{children:"gate"}),e.jsx(j,{value:t.gate??"",onChange:s=>o({gate:s||void 0}),placeholder:"Pass condition, e.g.: no P1-P3 issues"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(b,{children:r("pipeline.confirm_required")}),e.jsx(J,{checked:t.requireConfirm??!1,onChange:s=>o({requireConfirm:s})})]}),e.jsxs("div",{children:[e.jsx(b,{children:r("pipeline.timeout")}),e.jsx(j,{type:"number",value:String(t.timeout??""),onChange:s=>o({timeout:s?parseInt(s,10):void 0}),placeholder:"600"})]}),e.jsxs("div",{className:"border-t border-[var(--border)] pt-3",children:[e.jsx("p",{className:"mb-3 font-mono text-[11px] text-[var(--text-muted)]",children:r("pipeline.on_failure_section")}),e.jsxs("div",{className:"mb-3",children:[e.jsx(b,{children:r("pipeline.on_failure")}),e.jsx(C,{value:t.onFailure?"goto":"stop",onChange:s=>{o(s==="stop"?{onFailure:void 0}:{onFailure:{goto:"",maxLoops:3}})},options:[{value:"stop",label:r("pipeline.stop")},{value:"goto",label:r("pipeline.goto_stage")}]})]}),t.onFailure&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx(b,{children:r("pipeline.goto")}),e.jsx(C,{value:t.onFailure.goto,onChange:s=>{var i;return o({onFailure:{goto:s,maxLoops:((i=t.onFailure)==null?void 0:i.maxLoops)??3}})},options:c})]}),e.jsxs("div",{children:[e.jsx(b,{children:r("pipeline.max_loops")}),e.jsx(j,{type:"number",value:String(t.onFailure.maxLoops),onChange:s=>{var i;return o({onFailure:{goto:((i=t.onFailure)==null?void 0:i.goto)??"",maxLoops:s?parseInt(s,10):3}})},placeholder:"3"})]})]})]}),e.jsxs("div",{className:"border-t border-[var(--border)] pt-3",children:[e.jsx("h4",{className:"mb-2 font-mono text-xs font-semibold text-[var(--accent)]",children:"params"}),e.jsx(N,{value:t.params?Object.entries(t.params).map(([s,i])=>`${s}=${i}`).join(`
|
|
2
2
|
`):"",onChange:s=>{if(!s.trim()){o({params:void 0});return}const i={};s.split(`
|
|
3
3
|
`).forEach(d=>{const l=d.indexOf("=");l>0&&(i[d.slice(0,l).trim()]=d.slice(l+1).trim())}),o({params:i})},placeholder:"KEY=value (one per line)",rows:3})]})]})}function D({value:t,onChange:o}){const[a,r]=x.useState(t.trim().length>0);return x.useEffect(()=>{!a&&t.trim().length>0&&r(!0)},[t,a]),e.jsxs("div",{className:"rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)]",children:[e.jsxs("button",{type:"button",onClick:()=>r(c=>!c),className:"flex w-full items-center justify-between px-4 py-3 text-left font-mono text-xs font-semibold text-[var(--accent)]",children:[e.jsx("span",{children:"preamble"}),e.jsx("span",{className:"text-[11px] text-[var(--text-muted)]",children:a?"[-]":"[+]"})]}),a&&e.jsx("div",{className:"border-t border-[var(--border)] px-4 py-3",children:e.jsx(N,{value:t,onChange:o,placeholder:"Global pre-prompt injected before all stages",rows:4})})]})}function A({value:t,onChange:o}){const{t:a}=g(),[r,c]=x.useState(null),[s,i]=x.useState(!1),d=x.useMemo(()=>t??O,[t]),l=d.stages,h=r!=null?l[r]??null:null,f=x.useMemo(()=>l.map(n=>n.name),[l]),v=x.useCallback(n=>{o({...d,stages:n})},[o,d]),F=x.useCallback(()=>{const n=[...l,q()];v(n),c(n.length-1)},[l,v]),E=x.useCallback(n=>{const p=l.filter((m,u)=>u!==n);v(p),r===n?c(p.length>0?Math.min(n,p.length-1):null):r!=null&&r>n&&c(r-1)},[l,r,v]),w=x.useCallback((n,p)=>{const m=l.map((u,P)=>P===n?{...u,...p}:u);v(m)},[l,v]),k=x.useCallback((n,p)=>{const m=p==="up"?n-1:n+1;if(m<0||m>=l.length)return;const u=[...l];[u[n],u[m]]=[u[m],u[n]],v(u),r===n?c(m):r===m&&c(n)},[l,r,v]),L=x.useMemo(()=>JSON.stringify(d,null,2),[d]);return e.jsxs("div",{className:"flex flex-col gap-0",children:[e.jsx("div",{className:"mb-4 flex items-center gap-2",children:e.jsxs("button",{type:"button",onClick:()=>i(n=>!n),className:`rounded-[4px] border px-2 py-1 font-mono text-[11px] transition-colors ${s?"border-[var(--accent)] text-[var(--accent)]":"border-[var(--border)] text-[var(--text-muted)] hover:text-[var(--text-primary)]"}`,children:[a("pipeline.json_toggle")," ⇅"]})}),s&&e.jsx("pre",{className:"mb-4 max-h-[400px] overflow-auto rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] p-3 font-mono text-[11px] leading-relaxed text-[var(--text-primary)]",children:L}),e.jsx("div",{className:"mb-4",children:e.jsx(D,{value:d.preamble??"",onChange:n=>o({...d,preamble:n||void 0})})}),e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[l.map((n,p)=>{var m;return e.jsxs("div",{children:[e.jsx(T,{stage:n,index:p,selected:r===p,onSelect:()=>c(p),onDelete:()=>E(p)}),p<l.length-1&&e.jsxs("div",{className:"flex items-center justify-center gap-2 py-2",children:[e.jsx("div",{className:"h-6 w-px bg-[var(--border)]"}),e.jsx("span",{className:"text-[11px] text-[var(--text-muted)]",children:"▼"}),e.jsx("div",{className:"h-6 w-px bg-[var(--border)]"})]}),((m=n.onFailure)==null?void 0:m.goto)&&e.jsx("div",{className:"flex items-center justify-center gap-1.5 py-1",children:e.jsxs("span",{className:"text-[11px] text-[var(--warning)]",children:["↺ loop → ",n.onFailure.goto," (max ",n.onFailure.maxLoops,")"]})})]},`${p}-${n.name}`)}),r!=null&&l.length>1&&e.jsxs("div",{className:"flex items-center gap-1 pl-7 pt-2",children:[e.jsxs("button",{type:"button",disabled:r===0,onClick:()=>k(r,"up"),className:"rounded-[4px] border border-[var(--border)] px-2 py-0.5 font-mono text-[11px] text-[var(--text-muted)] transition-colors hover:text-[var(--text-primary)] disabled:opacity-30",children:["▲ ",a("pipeline.up")]}),e.jsxs("button",{type:"button",disabled:r===l.length-1,onClick:()=>k(r,"down"),className:"rounded-[4px] border border-[var(--border)] px-2 py-0.5 font-mono text-[11px] text-[var(--text-muted)] transition-colors hover:text-[var(--text-primary)] disabled:opacity-30",children:["▼ ",a("pipeline.down")]})]}),e.jsx("div",{className:"flex items-center justify-center py-3",children:e.jsxs("button",{type:"button",onClick:F,className:"flex items-center gap-1.5 rounded-[4px] border border-dashed border-[var(--border)] px-4 py-2 font-mono text-xs text-[var(--accent)] transition-colors hover:border-[var(--accent)] hover:bg-[var(--bg-secondary)]",children:[e.jsx("span",{className:"text-sm leading-none",children:"+"})," ",a("pipeline.add_stage")]})}),h&&e.jsxs("div",{className:"mt-4 rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 lg:hidden",children:[e.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[e.jsx("span",{className:"font-mono text-xs font-semibold text-[var(--accent)]",children:a("pipeline.stage_properties")}),e.jsx("button",{type:"button",onClick:()=>c(null),className:"rounded-[4px] border border-[var(--border)] px-2 py-1 font-mono text-[11px] text-[var(--text-muted)]",children:"x"})]}),e.jsx(_,{stage:h,onChange:n=>w(r,n),allStageNames:f})]})]}),e.jsx("div",{className:"hidden w-[360px] shrink-0 rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-5 lg:block",style:{alignSelf:"flex-start",position:"sticky",top:0},children:h?e.jsx(_,{stage:h,onChange:n=>w(r,n),allStageNames:f}):e.jsx("div",{className:"flex min-h-[200px] items-center justify-center",children:e.jsx("p",{className:"font-mono text-xs text-[var(--text-muted)]",children:a("pipeline.select_stage")})})})]})]})}function K(){const{key:t}=I(),o=M(),{t:a}=g(),[r,c]=x.useState(null),[s,i]=x.useState(!0),[d,l]=x.useState(!1);x.useEffect(()=>{t&&S.get(`web/projects/${t}`).json().then(f=>{if(f.pipeline)try{c(JSON.parse(f.pipeline))}catch{c(null)}}).catch(()=>y.error(a("pipeline.failed_to_load_project"))).finally(()=>i(!1))},[t,a]);const h=x.useCallback(async()=>{if(t){l(!0);try{await S.put(`web/projects/${t}`,{json:{pipeline:r?JSON.stringify(r):null}}),y.success(a("pipeline.saved"))}catch{y.error(a("pipeline.failed_to_save"))}finally{l(!1)}}},[t,r,a]);return s?e.jsx("div",{className:"flex h-full items-center justify-center font-mono",children:e.jsx("p",{className:"text-sm text-[var(--text-muted)]",children:a("pipeline.loading_pipeline")})}):e.jsxs("div",{className:"flex h-full flex-col font-mono lowercase",children:[e.jsxs("div",{className:"flex flex-col gap-3 border-b border-[var(--border)] px-4 md:px-8 py-5 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("span",{className:"text-base font-medium text-[var(--text-primary)] shrink-0",children:a("pipeline.title")}),e.jsx("span",{className:"text-sm text-[var(--text-muted)] truncate",children:a("pipeline.subtitle",{key:t??""})})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsx("button",{type:"button",onClick:h,disabled:d,className:"rounded-[4px] bg-[var(--accent)] px-4 py-1.5 text-xs font-bold text-black disabled:opacity-50",children:a(d?"common.saving":"pipeline.save")}),e.jsx("button",{type:"button",onClick:()=>o(`/projects/${t}`),className:"rounded-[4px] border border-[var(--border)] px-4 py-1.5 text-xs text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:a("pipeline.cancel")})]})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-4 md:p-8",children:e.jsx(A,{value:r,onChange:c})})]})}export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A,u as F,f as T,r as s,j as e,L as z,U as I,V,v as $,h as p,t as c}from"./index-
|
|
1
|
+
import{a as A,u as F,f as T,r as s,j as e,L as z,U as I,V,v as $,h as p,t as c}from"./index-D3ZK8e35.js";import{v as K}from"./password-CHk45-jw.js";import{I as o}from"./InfoRow-C3ZXZz4q.js";import{u as M}from"./useFetch-CSoNR_l8.js";function Q(){var y,k,C,P;const{t:r}=A(),{logout:L}=F(),E=T(),[S,m]=s.useState(!1),{data:t,loading:U,refetch:D}=M(()=>p.get("web/profile").json(),[]),[x,u]=s.useState(""),[d,b]=s.useState(""),[f,v]=s.useState(""),[g,h]=s.useState(!1),[j,n]=s.useState(""),[i,_]=s.useState(""),[w,N]=s.useState(!1);async function O(){if(n(""),!x){n(r("profile.current_password_required"));return}if(!d){n(r("profile.new_password_required"));return}const a=K(d);if(a){n(r(a));return}if(d!==f){n(r("profile.passwords_do_not_match"));return}try{h(!0),await p.put("web/profile/password",{json:{currentPassword:x,newPassword:d}}),c.success(r("profile.password_changed")),u(""),b(""),v("")}catch(l){const q=l instanceof Error?l.message:r("profile.failed_to_change_password");n(q)}finally{h(!1)}}async function R(){if(!i||i.length!==6){c.error(r("profile.totp_code_required"));return}try{N(!0),await p.post("web/profile/totp/regenerate",{json:{code:i}}),c.success(r("profile.two_fa_regenerated")),_(""),D()}catch(a){const l=a instanceof Error?a.message:r("profile.totp_code_invalid");c.error(l)}finally{N(!1)}}return U?e.jsx("div",{className:"flex justify-center py-20",children:e.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-[var(--border)] border-t-[var(--accent)]"})}):e.jsxs("div",{className:"mx-auto max-w-xl space-y-8 px-4 md:px-6 py-8 font-mono lowercase",children:[e.jsxs("h1",{className:"text-lg text-[var(--text-primary)]",children:[r("profile.title")," ",e.jsx("span",{className:"text-[var(--text-muted)]",children:r("profile.personal_settings")})]}),e.jsxs("section",{className:"rounded-[4px] bg-[var(--bg-card)] border border-[var(--border)] p-5",children:[e.jsx("h2",{className:"mb-4 text-sm font-semibold text-[var(--accent)]",children:r("profile.profile_info")}),t?e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{variant:"fixed-label",label:r("profile.username"),value:t.name}),e.jsx(o,{variant:"fixed-label",label:r("common.role"),value:t.role}),e.jsx(o,{variant:"fixed-label",label:r("profile.git_name"),value:t.gitName||r("common.not_set")}),e.jsx(o,{variant:"fixed-label",label:r("profile.git_email"),value:t.gitEmail||r("common.not_set")}),e.jsx(o,{variant:"fixed-label",label:r("profile.status"),value:t.status}),e.jsx(o,{variant:"fixed-label",label:r("profile.created_at"),value:new Date(t.createdAt).toLocaleDateString()})]}):e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:r("profile.unable_to_load_profile")})]}),e.jsxs("section",{className:"rounded-[4px] bg-[var(--bg-card)] border border-[var(--border)] p-5",children:[e.jsx("h2",{className:"mb-4 text-sm font-semibold text-[var(--accent)]",children:r("profile.platform_accounts")}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{variant:"fixed-label",label:"lark",value:(y=t==null?void 0:t.platformUids)!=null&&y.lark?`${t.platformUids.lark.slice(0,12)}... ✓`:r("profile.not_linked")}),e.jsx(o,{variant:"fixed-label",label:"slack",value:(k=t==null?void 0:t.platformUids)!=null&&k.slack?`${t.platformUids.slack.slice(0,12)}... ✓`:r("profile.not_linked")})]}),(!((C=t==null?void 0:t.platformUids)!=null&&C.lark)||!((P=t==null?void 0:t.platformUids)!=null&&P.slack))&&e.jsx("p",{className:"mt-3 text-xs text-[var(--text-muted)]",children:r("profile.bind_hint")})]}),e.jsxs("section",{className:"rounded-[4px] bg-[var(--bg-card)] border border-[var(--border)] p-5",children:[e.jsx("h2",{className:"mb-4 text-sm font-semibold text-[var(--accent)]",children:r("profile.change_password")}),e.jsxs("div",{className:"space-y-4",children:[j&&e.jsx("div",{className:"rounded-[4px] border border-[var(--destructive)] bg-[var(--bg-input)] px-3 py-2 text-sm text-[var(--destructive)]",children:j}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-xs text-[var(--text-secondary)]",children:r("profile.current_password")}),e.jsx("input",{type:"password",value:x,onChange:a=>u(a.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-sm text-[var(--text-primary)] outline-none focus:border-[var(--accent)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-xs text-[var(--text-secondary)]",children:r("profile.new_password")}),e.jsx("input",{type:"password",value:d,onChange:a=>b(a.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-sm text-[var(--text-primary)] outline-none focus:border-[var(--accent)]"}),e.jsx("p",{className:"mt-1 text-xs text-[var(--text-muted)]",children:r("profile.password_hint_10_20")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-xs text-[var(--text-secondary)]",children:r("profile.confirm_password")}),e.jsx("input",{type:"password",value:f,onChange:a=>v(a.target.value),className:"w-full rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-sm text-[var(--text-primary)] outline-none focus:border-[var(--accent)]"})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx("button",{onClick:O,disabled:g,className:"rounded-[4px] bg-[var(--accent)] px-4 py-2 text-xs font-medium text-black disabled:opacity-50",children:r(g?"common.updating":"profile.update_password")})})]})]}),e.jsxs("section",{className:"rounded-[4px] bg-[var(--bg-card)] border border-[var(--border)] p-5",children:[e.jsx("h2",{className:"mb-4 text-sm font-semibold text-[var(--accent)]",children:r("profile.two_factor_auth")}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex items-center gap-2 text-sm",children:t!=null&&t.totpEnabled?e.jsxs("span",{className:"text-[var(--accent)]",children:["● ",r("profile.two_fa_enabled")]}):e.jsxs("span",{className:"text-[var(--text-muted)]",children:["● ",r("profile.two_fa_not_setup")]})}),(t==null?void 0:t.totpEnabled)&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:r("profile.regenerate_2fa_warning")}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-xs text-[var(--text-secondary)]",children:r("profile.current_totp_code")}),e.jsx("input",{type:"text",inputMode:"numeric",maxLength:6,placeholder:r("profile.totp_code_placeholder"),value:i,onChange:a=>{const l=a.target.value.replace(/\D/g,"").slice(0,6);_(l)},className:"w-full max-w-xs rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-2 text-sm text-[var(--text-primary)] outline-none focus:border-[var(--accent)] font-mono tracking-widest"})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx("button",{onClick:R,disabled:w||i.length!==6,className:"rounded-[4px] border border-[var(--warning)] bg-transparent px-4 py-2 text-xs font-medium text-[var(--warning)] hover:bg-[var(--warning)] hover:text-black disabled:opacity-50 transition-colors",children:r(w?"profile.regenerating":"profile.regenerate_2fa")})})]})]})]}),e.jsxs(z,{to:"/access-tokens",className:"flex items-center gap-3 rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 transition-colors hover:border-[var(--accent)]",children:[e.jsx(I,{size:16,className:"text-[var(--accent)]"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-[var(--text-primary)]",children:r("profile.access_tokens")}),e.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:r("profile.access_tokens_desc")})]})]}),e.jsxs("button",{onClick:()=>m(!0),className:"flex w-full items-center gap-3 rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] p-4 transition-colors hover:border-[var(--destructive)] text-left",children:[e.jsx(V,{size:16,className:"text-[var(--destructive)]"}),e.jsx("span",{className:"text-sm text-[var(--destructive)]",children:r("common.log_out")})]}),e.jsxs("div",{className:"pt-2 pb-4 text-center text-xs text-[var(--text-muted)]",children:["overlord v","1.0.133"]}),e.jsx($,{isOpen:S,onClose:()=>m(!1),onConfirm:()=>{L(),E("/login")},title:r("common.logout_title"),message:r("common.logout_message"),confirmLabel:r("common.logout"),confirmVariant:"warning"})]})}export{Q as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as F,a as I,j as e,v as U,A as E,f as R,u as K,i as q,r as x,J as A,w as J,l as B,n as H,K as V,h as v}from"./index-
|
|
1
|
+
import{c as F,a as I,j as e,v as U,A as E,f as R,u as K,i as q,r as x,J as A,w as J,l as B,n as H,K as V,h as v}from"./index-D3ZK8e35.js";import{U as z,A as G,R as Q}from"./RemoveMemberConfirmDialog-gohLNDc5.js";import{T as X}from"./Tooltip-DrIj1IXL.js";import{c as D}from"./date-RFA7-ZGs.js";import{t as Y}from"./status-colors-BgploKhY.js";import{I as o}from"./InfoRow-C3ZXZz4q.js";import{u as Z}from"./useFetch-CSoNR_l8.js";import{P as ee}from"./pencil-BGn762Xd.js";import{T as te}from"./trash-2-B6XaTY-0.js";import{P as re}from"./plus-DfeF35ew.js";import"./Select-CkMgU0Lq.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 R,a as z,r as o,G as m,F as u,j as e,h as E,f as G,w as I}from"./index-
|
|
1
|
+
import{c as R,a as z,r as o,G as m,F as u,j as e,h as E,f as G,w as I}from"./index-D3ZK8e35.js";import{S as A}from"./Select-CkMgU0Lq.js";import{E as D}from"./EmptyState-9Eqw0iR8.js";import{T as H}from"./Skeleton-DI-HCY-N.js";import{t as M}from"./date-RFA7-ZGs.js";import{u as J}from"./useFetch-CSoNR_l8.js";import{P as O}from"./plus-DfeF35ew.js";/**
|
|
2
2
|
* @license lucide-react v0.469.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|