@overlordai/server 1.0.130 → 1.0.132
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-CZ_Yavhf.js → AccessTokensPage-DCFrCMzE.js} +1 -1
- package/public/assets/{AdminPage-BlGfVUEg.js → AdminPage-BvFj4q7-.js} +1 -1
- package/public/assets/{AgentCliPage-CQpk2Yo_.js → AgentCliPage-B9B64zCv.js} +1 -1
- package/public/assets/{ApiReferencePage-DsFA13KQ.js → ApiReferencePage-DvMZOSc3.js} +1 -1
- package/public/assets/{ArchitecturePage-DDc-vReK.js → ArchitecturePage-1LCElBkH.js} +1 -1
- package/public/assets/{AuditLogPage-BLTNLR9x.js → AuditLogPage-DTmZ-f__.js} +1 -1
- package/public/assets/{BindPlatformPage-DLQdiRFL.js → BindPlatformPage-DSIzkccU.js} +1 -1
- package/public/assets/{BotIntegrationPage-D6-XQG0r.js → BotIntegrationPage-B8awI2LD.js} +1 -1
- package/public/assets/{BotManage-DRTJDHW6.js → BotManage-CofWqcVs.js} +1 -1
- package/public/assets/{BotSetupPage-ByjmKjXY.js → BotSetupPage-r2UPpNNb.js} +1 -1
- package/public/assets/{ChangelogPage-n7yRBO_5.js → ChangelogPage-az9QSZvX.js} +1 -1
- package/public/assets/{CliReferencePage-B6gTsb4v.js → CliReferencePage-EPI6nOO3.js} +1 -1
- package/public/assets/{DeploymentPage-CWhXb1UF.js → DeploymentPage-CYaF1OrQ.js} +1 -1
- package/public/assets/{DevWorkflowPage-nTHhaHVz.js → DevWorkflowPage-Osg4WAt3.js} +1 -1
- package/public/assets/{DeveloperManage-APQbY_-q.js → DeveloperManage-BWOYBP-t.js} +1 -1
- package/public/assets/{DeveloperSetupPage-Bq-eKaT0.js → DeveloperSetupPage-DF7Xs0c9.js} +1 -1
- package/public/assets/{DocsIndexPage-CzA83ol_.js → DocsIndexPage-BSAn3ZJa.js} +1 -1
- package/public/assets/{DocsLayout-Du6H0AOl.js → DocsLayout-CKlbtNeH.js} +1 -1
- package/public/assets/{DocsPrimitives-CtwiZVPN.js → DocsPrimitives-D0E69i2N.js} +1 -1
- package/public/assets/{EditProjectPage-IRTaCyfg.js → EditProjectPage-CABV9tuN.js} +1 -1
- package/public/assets/{EmptyState-BBNo8OWr.js → EmptyState-CytgiY9L.js} +1 -1
- package/public/assets/{EnvVariablesPage-CY6bnuuq.js → EnvVariablesPage-D9Ja85G7.js} +1 -1
- package/public/assets/HomePage-M-fiv0p_.js +1 -0
- package/public/assets/{InfoRow-BZWqE07x.js → InfoRow-enN7id8N.js} +1 -1
- package/public/assets/{InstallationPage-BvBVyGkY.js → InstallationPage-CUgF5YTY.js} +1 -1
- package/public/assets/{LandingPage-CP_wXo09.js → LandingPage-DKnU-mvA.js} +1 -1
- package/public/assets/{LocalDevelopmentPage-BxVqnOjh.js → LocalDevelopmentPage-CA3xCluE.js} +1 -1
- package/public/assets/{LoginPage-Dfe5P2Mc.js → LoginPage-BbyRZjiW.js} +1 -1
- package/public/assets/{MetricBar-LoaKP4Qj.js → MetricBar-CEMnsJOi.js} +1 -1
- package/public/assets/{NotFoundPage-CZ6vHhxQ.js → NotFoundPage-CMuv-KhW.js} +1 -1
- package/public/assets/{OnboardingGuide-BH1zjho_.js → OnboardingGuide-DNTJ78K8.js} +1 -1
- package/public/assets/{PermissionsPage-C89LUwtR.js → PermissionsPage-g_8tHOBE.js} +1 -1
- package/public/assets/{PipelineConfigPage-C2XugReU.js → PipelineConfigPage-B2LYXsq5.js} +1 -1
- package/public/assets/{PipelineEditorPage-BF3eMSCM.js → PipelineEditorPage-DcWEfi_A.js} +1 -1
- package/public/assets/{ProfilePage-DKKDCTx9.js → ProfilePage-CIDz5YeD.js} +1 -1
- package/public/assets/{ProjectDetailPage-Bi-3DLgA.js → ProjectDetailPage-C9pM6Woi.js} +1 -1
- package/public/assets/{ProjectListPage-DznwqHll.js → ProjectListPage-DDiQLEie.js} +1 -1
- package/public/assets/{PtyTerminal-WrI_RZpQ.js → PtyTerminal-VS56WKLO.js} +5 -5
- package/public/assets/{QuickAuth-BBWmkwhA.js → QuickAuth-DLFmIjpX.js} +1 -1
- package/public/assets/{RemoveMemberConfirmDialog-DmCxvpwQ.js → RemoveMemberConfirmDialog-DV3LHFVJ.js} +1 -1
- package/public/assets/{Select-9vDFfmjq.js → Select-Cnz6OMVU.js} +1 -1
- package/public/assets/{SettingsPage-C1av7piJ.js → SettingsPage-D_-cbHE0.js} +1 -1
- package/public/assets/{Skeleton-02wlyIbW.js → Skeleton-Kj4rVptL.js} +1 -1
- package/public/assets/{SkillPage-DqvIM6pJ.js → SkillPage-CTvQUNvZ.js} +1 -1
- package/public/assets/TaskDetailPage-lkhZX_5H.js +26 -0
- package/public/assets/{TaskListPage-C9R3EahV.js → TaskListPage-CVA7Ujw9.js} +1 -1
- package/public/assets/{TaskStatusBadge-EkExDX2H.js → TaskStatusBadge-Z50SCZY9.js} +1 -1
- package/public/assets/TerminalHomePage-UBr5yN3b.js +11 -0
- package/public/assets/{TokenManage-CvFjNduI.js → TokenManage-30D7q4lk.js} +1 -1
- package/public/assets/{Tooltip-M6jDD740.js → Tooltip-DZz2zdfO.js} +1 -1
- package/public/assets/{TotpSetupPage-BQmRtycf.js → TotpSetupPage-D4jIjEla.js} +1 -1
- package/public/assets/{WorkerDetailPage-DIlJMx4z.js → WorkerDetailPage-bOwxux_n.js} +1 -1
- package/public/assets/{WorkerListPage-DbjJDQp5.js → WorkerListPage-DEiTRhPm.js} +1 -1
- package/public/assets/{WorkerOperationsPage-B3KV1JvF.js → WorkerOperationsPage-DW9AJtYD.js} +1 -1
- package/public/assets/{WorkerSetupGuidePage-BpTJlpJ_.js → WorkerSetupGuidePage-BOvjn4RL.js} +1 -1
- package/public/assets/{WorkerSetupPage-CcByT6so.js → WorkerSetupPage-C2r1Zi4Z.js} +1 -1
- package/public/assets/{arrow-left-BGperOFX.js → arrow-left-BDSgdusw.js} +1 -1
- package/public/assets/{arrow-right-DNHRd8Z9.js → arrow-right-BOajnkxo.js} +1 -1
- package/public/assets/{bot-5Lo_gqmx.js → bot-DsoXb524.js} +1 -1
- package/public/assets/{chevron-left-DSXFZLMV.js → chevron-left-yEb7hDVz.js} +1 -1
- package/public/assets/{chevron-right-Dfp83tFY.js → chevron-right-9GGZyR6N.js} +1 -1
- package/public/assets/{copy-CPx_B7OW.js → copy-BdjIQVZg.js} +1 -1
- package/public/assets/{download-Bbj-oFLZ.js → download-eHZL3vO4.js} +1 -1
- package/public/assets/{external-link-DIUbaHQ2.js → external-link-CTxKtfbP.js} +1 -1
- package/public/assets/{git-fork-CL2HOg0X.js → git-fork-kMVtB1dL.js} +1 -1
- package/public/assets/{index-B10YHYT-.js → index-DAkTgbWG.js} +42 -42
- package/public/assets/{key-DpWySYfP.js → key-BKjhjxj3.js} +1 -1
- package/public/assets/{loader-circle-8E2jyEy9.js → loader-circle-BIYdUuqZ.js} +1 -1
- package/public/assets/{pencil-DL5_zTMe.js → pencil-CurfHMN9.js} +1 -1
- package/public/assets/{plus-4UtzNPHG.js → plus-BxG7xxLK.js} +1 -1
- package/public/assets/{rotate-ccw-6luto6QE.js → rotate-ccw-DtrN6ZsT.js} +1 -1
- package/public/assets/{scroll-text-BqltO3x-.js → scroll-text-CPH0IqKe.js} +1 -1
- package/public/assets/{settings-DQW5ib_a.js → settings-D9SSpSrL.js} +1 -1
- package/public/assets/{status-colors-hJddxJDA.js → status-colors-CpMMYfaI.js} +1 -1
- package/public/assets/{task-constants-DQs0yKJe.js → task-constants-OaoZ8T7Y.js} +1 -1
- package/public/assets/{trash-2-DZDM_1D_.js → trash-2-4Pl5hgn8.js} +1 -1
- package/public/assets/{useFetch-BCJSyxgw.js → useFetch-D61cXB6a.js} +1 -1
- package/public/assets/{users-DFhrcJQ0.js → users-BKtzHB7o.js} +1 -1
- package/public/assets/{wifi-rj7m9aYe.js → wifi-CR4plBsH.js} +1 -1
- package/public/assets/{workflow-D_3K4Ohp.js → workflow-0ws12_jq.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-DSD_C6l7.js +0 -1
- package/public/assets/TaskDetailPage-CdkjfSWn.js +0 -26
- package/public/assets/TerminalHomePage-DSB_fbDP.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-DAkTgbWG.js";import{a}from"./DocsPrimitives-D0E69i2N.js";import"./copy-BdjIQVZg.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-DAkTgbWG.js";import{S as C}from"./Select-Cnz6OMVU.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-DAkTgbWG.js";import{v as K}from"./password-CHk45-jw.js";import{I as o}from"./InfoRow-enN7id8N.js";import{u as M}from"./useFetch-D61cXB6a.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.132"]}),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-DAkTgbWG.js";import{U as z,A as G,R as Q}from"./RemoveMemberConfirmDialog-DV3LHFVJ.js";import{T as X}from"./Tooltip-DZz2zdfO.js";import{c as D}from"./date-RFA7-ZGs.js";import{t as Y}from"./status-colors-CpMMYfaI.js";import{I as o}from"./InfoRow-enN7id8N.js";import{u as Z}from"./useFetch-D61cXB6a.js";import{P as ee}from"./pencil-CurfHMN9.js";import{T as te}from"./trash-2-4Pl5hgn8.js";import{P as re}from"./plus-BxG7xxLK.js";import"./Select-Cnz6OMVU.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-DAkTgbWG.js";import{S as A}from"./Select-Cnz6OMVU.js";import{E as D}from"./EmptyState-CytgiY9L.js";import{T as H}from"./Skeleton-Kj4rVptL.js";import{t as M}from"./date-RFA7-ZGs.js";import{u as J}from"./useFetch-D61cXB6a.js";import{P as O}from"./plus-BxG7xxLK.js";/**
|
|
2
2
|
* @license lucide-react v0.469.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|