@zonease/aiworker-cli 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{i as e,n as t}from"./markdown-preview-DFe-rfff.js";import{a as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _}from"./index-ByOwFiyz.js";var v=o(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=o(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),b=o(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),x=o(`message-square-text`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),S=o(`notebook-text`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M9.5 8h5`,key:`11mslq`}],[`path`,{d:`M9.5 12H16`,key:`ktog6x`}],[`path`,{d:`M9.5 16H14`,key:`p1seyn`}]]),C=o(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),w=o(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),T=o(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),E=e(),D=t();function O({detail:e,icon:t,title:n}){return(0,D.jsxs)(`div`,{className:`workbench-section-title`,children:[(0,D.jsx)(`span`,{className:`workbench-section-icon`,"aria-hidden":`true`,children:t}),(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:n}),(0,D.jsx)(`small`,{children:e})]})]})}var k=(0,E.lazy)(()=>g(()=>import(`./markdown-preview-DFe-rfff.js`).then(e=>e.t).then(e=>({default:e.MarkdownPreview})),[]));function ee({artifact:e,artifactPreview:t,focusedProfile:n,labels:r,locale:i,reviewGuardrails:a,timeline:o}){let s=!!(e&&t.artifactId===e.id);return(0,D.jsxs)(`section`,{className:`hr-profile-details`,"aria-label":r.profileDetailsTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(S,{size:15}),title:r.profileDetailsTitle,detail:n?r.profileDetailsDetail(n.name):r.profileDetailsEmpty}),(0,D.jsxs)(`div`,{className:`hr-profile-details-scroll`,children:[(0,D.jsxs)(`div`,{className:`hr-details-grid`,children:[(0,D.jsxs)(`article`,{className:`hr-details-card`,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(u,{size:15}),title:r.sourcesTitle,detail:r.sourcesDetail}),(0,D.jsx)(`div`,{className:`hr-source-grid`,children:r.sourceCards(n?.artifacts.length??0,n?.sessions.length??0,n?.reviews.length??0).map(e=>(0,D.jsxs)(`div`,{className:`hr-source-row`,children:[(0,D.jsx)(`span`,{children:e.label}),(0,D.jsx)(`strong`,{children:e.count}),(0,D.jsx)(`small`,{children:e.detail})]},e.label))}),(0,D.jsxs)(`div`,{className:`hr-profile-timeline`,"aria-label":r.timelineTitle,children:[(0,D.jsx)(`strong`,{children:r.timelineTitle}),o.length>0?o.map(e=>(0,D.jsxs)(`div`,{className:`hr-timeline-row`,children:[(0,D.jsx)(`span`,{className:`hr-timeline-dot ${e.tone}`,"aria-hidden":`true`}),(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:e.label}),(0,D.jsx)(`small`,{children:e.detail})]})]},`${e.label}-${e.detail}`)):(0,D.jsx)(`span`,{className:`hr-muted-note`,children:r.noTimeline})]})]}),(0,D.jsxs)(`article`,{className:`hr-details-card hr-artifact-preview-card`,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(u,{size:15}),title:r.artifactPreviewTitle,detail:e?m(e.updatedAt,i):r.artifactPreviewDetail}),e?(0,D.jsx)(`strong`,{className:`hr-artifact-preview-name`,children:e.title}):null,A({artifact:e,artifactPreview:t,empty:r.artifactPreviewEmpty,error:r.artifactPreviewError,loading:r.artifactPreviewLoading,previewMatchesArtifact:s})]})]}),(0,D.jsxs)(`div`,{className:`hr-guardrail-panel`,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(b,{size:15}),title:r.guardrailsTitle,detail:r.guardrailsDetail}),(0,D.jsx)(`ul`,{className:`hr-guardrail-list`,children:a.map(e=>(0,D.jsx)(`li`,{children:e},e))})]})]})]})}function A({artifact:e,artifactPreview:t,empty:n,error:r,loading:i,previewMatchesArtifact:a}){return e?!a||t.loading?(0,D.jsx)(`div`,{className:`hr-artifact-preview-empty`,children:i}):t.error?(0,D.jsx)(`div`,{className:`hr-artifact-preview-empty`,role:`alert`,children:`${r} ${t.error}`}):(0,D.jsx)(E.Suspense,{fallback:(0,D.jsx)(`div`,{className:`hr-markdown-preview`,"data-testid":`hr-artifact-markdown-preview-loading`}),children:(0,D.jsx)(k,{className:`hr-markdown-preview`,content:t.content,"data-testid":`hr-artifact-markdown-preview`,empty:(0,D.jsx)(`span`,{children:n})})}):(0,D.jsx)(`div`,{className:`hr-artifact-preview-empty`,children:n})}function te({collapsedSectionIds:e,labels:t,onOpenWorkspace:n,onToggleSection:r,sections:i,selectedWorkspaceId:a,visibleCount:o}){return(0,D.jsxs)(`aside`,{className:`hr-profile-list-panel`,"aria-label":t.profileBoardLabel,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(T,{size:15}),title:t.profileBoardTitle,detail:t.profileListDetail(o)}),(0,D.jsx)(`div`,{className:`hr-profile-list-scroll`,children:i.map(i=>{let o=e.has(i.id);return(0,D.jsxs)(`section`,{className:`hr-profile-list-section`,children:[(0,D.jsxs)(`button`,{type:`button`,className:`hr-profile-section-toggle`,"aria-expanded":!o,onClick:()=>r(i.id),children:[(0,D.jsx)(`span`,{children:(0,D.jsx)(`strong`,{children:i.label})}),(0,D.jsx)(`span`,{className:`hr-section-count`,children:i.profiles.length}),(0,D.jsx)(s,{"aria-hidden":`true`,size:14})]}),o?null:(0,D.jsx)(`div`,{className:`hr-profile-section-drawer`,children:i.profiles.length>0?i.profiles.map(e=>(0,D.jsx)(j,{labels:t,profile:e,selected:a===e.id,onOpenWorkspace:n},`${i.id}-${e.id}`)):(0,D.jsx)(`span`,{className:`hr-profile-section-empty`,children:t.noProfilesInSection})})]},i.id)})})]})}function j({labels:e,onOpenWorkspace:t,profile:n,selected:r}){return(0,D.jsxs)(`button`,{type:`button`,className:`hr-profile-list-card ${n.lifecycle} ${r?`active`:``}`,"aria-label":e.openProfile(n.name),onClick:()=>t(n.workspace),children:[(0,D.jsxs)(`span`,{className:`hr-profile-list-card-main`,children:[(0,D.jsxs)(`span`,{className:`hr-profile-list-card-copy`,children:[(0,D.jsx)(`strong`,{children:n.name}),(0,D.jsx)(`small`,{children:n.detail})]}),(0,D.jsx)(`span`,{className:`workbench-status-cell ${n.statusTone}`,children:e.lifecycleLabels[n.lifecycle]})]}),(0,D.jsxs)(`span`,{className:`hr-profile-list-card-status`,children:[(0,D.jsx)(`small`,{children:n.moment}),(0,D.jsx)(`strong`,{children:n.nextStep})]})]})}function ne(e,t,n,r,i,a,o){return e.map(e=>{let o=t.filter(t=>t.workspaceId===e.id),s=n.filter(t=>t.workspaceId===e.id),c=r.filter(t=>t.workspaceId===e.id),l=i.filter(t=>t.workspaceId===e.id),u=M(e,o,s),d=o.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))[0]??null,f=s.length>0,p=L(c),m=d?.status===`failed`?`risk`:f?`good`:`warn`,h=z(p);return{artifacts:s,detail:d?U(d):a.noSessionYet,evidenceTone:m,id:e.id,initials:H(e.name),latestSession:d,lessons:l,lifecycle:u,moment:N(u,o,s,p,a),name:e.name,nextStep:P(u,o,s,p,a),reviews:c,reviewState:p,reviewStatus:a.reviewStatus(p),reviewTone:h,sessions:o,status:f?a.status.evidenceReady:a.status.evidenceMissing,statusTone:m,workspace:{...e,updatedAt:e.updatedAt||new Date().toISOString()}}}).sort((e,t)=>{let n=+!!I(e),r=+!!I(t);return n===r?t.workspace.updatedAt.localeCompare(e.workspace.updatedAt):r-n}).map(e=>({...e,detail:`${e.detail} · ${m(e.workspace.updatedAt,o)}`}))}function M(e,t,n){let r=[e.name,e.type,...t.map(e=>`${e.title} ${e.capabilityTemplateId}`),...n.map(e=>`${e.kind} ${e.title}`)].join(` `).toLowerCase();return/alumni|offboard|depart|exit|handoff|离职|交接|校友/.test(r)?`alumni`:/employee|onboard|new hire|check.?in|growth|retention|员工|入职|在职|试用/.test(r)?`employee`:`candidate`}function N(e,t,n,r,i){if(t.some(e=>e.status===`failed`)||r===`fail`)return i.moments.riskReview;if(R(r))return i.moments.reviewed;if(n.length>0)return i.moments.artifactReady;if(t.length>0)return i.moments.inProgress;switch(e){case`alumni`:return i.moments.offboardingNeeded;case`employee`:return i.moments.checkinNeeded;case`candidate`:return i.moments.intakeNeeded}}function P(e,t,n,r,i){if(t.some(e=>e.status===`failed`)||r===`fail`)return i.nextSteps.resolveRisk;if(n.length>0&&!R(r))return i.nextSteps.requestReview;if(R(r))return i.nextSteps.captureMemory;if(t.length>0)return i.nextSteps.completeArtifact;switch(e){case`alumni`:return i.nextSteps.offboarding;case`employee`:return i.nextSteps.checkin;case`candidate`:return i.nextSteps.profileSnapshot}}function F(e,t){return[{id:`candidate`,label:t.lifecycleFilters.candidate,profiles:e.filter(e=>e.lifecycle===`candidate`)},{id:`employee`,label:t.lifecycleFilters.employee,profiles:e.filter(e=>e.lifecycle===`employee`)},{id:`alumni`,label:t.lifecycleFilters.alumni,profiles:e.filter(e=>e.lifecycle===`alumni`)}]}function I(e){return e.sessions.length===0||e.artifacts.length===0||e.latestSession?.status===`failed`||e.reviewTone!==`good`}function L(e){return e.slice().sort((e,t)=>t.createdAt.localeCompare(e.createdAt))[0]?.verdict??`none`}function R(e){return e===`pass`||e===`warn`}function z(e){return e===`pass`?`good`:e===`fail`?`risk`:`warn`}function B(e,t){let n=t?.lifecycle===`employee`?[`prepare-next-step`,`draft-onboarding-plan`,`summarize-profile`,`check-risky-wording`]:t?.lifecycle===`alumni`?[`prepare-offboarding-summary`,`summarize-profile`,`prepare-next-step`,`check-risky-wording`]:[`summarize-profile`,`extract-evidence`,`draft-interview-kit`,`build-evidence-matrix`],r=new Map(n.map((e,t)=>[e,t]));return e.slice().sort((e,t)=>(r.get(e.id)??99)-(r.get(t.id)??99)).slice(0,5)}function V(e,t,n){let r=[{detail:t.timelineUpdated(m(e.workspace.updatedAt,n)),label:t.timelineLabels.profile,tone:`muted`}];e.latestSession&&r.push({detail:`${e.latestSession.title} · ${c(e.latestSession.status,n)}`,label:t.timelineLabels.session,tone:e.latestSession.status===`failed`?`risk`:`good`});let i=e.artifacts.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))[0];return i&&r.push({detail:i.title,label:t.timelineLabels.artifact,tone:`good`}),e.reviews.length>0&&r.push({detail:t.timelineReviewCount(e.reviews.length),label:t.timelineLabels.review,tone:`good`}),e.lessons.length>0&&r.push({detail:t.timelineLessonCount(e.lessons.length),label:t.timelineLabels.memory,tone:`warn`}),r.slice(0,5)}function H(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length>=2?`${t[0]?.[0]??``}${t[1]?.[0]??``}`.toUpperCase():Array.from(e.trim()).slice(0,2).join(``).toUpperCase()||`HR`}function U(e){return e.capabilityTemplateId.replace(/-/g,` `)}function W(e,t){return t.actionLabels[e.id]??e.label}function re({activeActions:e,copy:t,engineReadiness:n,focusedProfile:r,labels:i,locale:a,onActionSelect:o,onContextChange:s,onOpenSession:l,onSubmitSession:u,onTemplateChange:p,selectedTemplate:h,selectedWorkspace:g,submitting:_,templates:b,value:S}){let C=d(h,a),w=r?.sessions.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).slice(0,3)??[];return(0,D.jsxs)(`aside`,{className:`hr-profile-tools-panel`,"aria-label":i.actionComposerTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(f,{size:15}),title:i.actionComposerTitle,detail:r?i.actionComposerDetail(r.name):i.actionComposerEmpty}),(0,D.jsxs)(`div`,{className:`hr-profile-tools-scroll`,children:[r?(0,D.jsxs)(`div`,{className:`hr-action-profile-card`,children:[(0,D.jsx)(`span`,{className:`hr-profile-avatar large`,"aria-hidden":`true`,children:r.initials}),(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:r.name}),(0,D.jsx)(`small`,{children:`${i.lifecycleLabels[r.lifecycle]} · ${r.moment}`})]})]}):null,(0,D.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":i.recentSessionsTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(x,{size:15}),title:i.recentSessionsTitle,detail:i.recentSessionsDetail(w.length)}),(0,D.jsx)(`div`,{className:`hr-session-card-list`,children:w.length>0?w.map(e=>(0,D.jsxs)(`button`,{type:`button`,className:`hr-session-card`,"aria-label":i.openSession(e.title),onClick:()=>l(e),children:[(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:e.title}),(0,D.jsx)(`small`,{children:G(e,b,a)})]}),(0,D.jsxs)(`span`,{className:`hr-session-card-meta`,children:[(0,D.jsx)(`em`,{children:c(e.status,a)}),(0,D.jsxs)(`small`,{children:[(0,D.jsx)(y,{"aria-hidden":`true`,size:12}),m(e.updatedAt,a)]})]})]},e.id)):(0,D.jsx)(`span`,{className:`hr-profile-section-empty`,children:i.noRecentSessions})})]}),(0,D.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":i.suggestedToolsTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(f,{size:15}),title:i.suggestedToolsTitle,detail:i.proposalOnly}),(0,D.jsx)(`div`,{className:`hr-action-list`,children:e.map((e,t)=>(0,D.jsxs)(`button`,{type:`button`,className:`hr-action-row ${t===0?`suggested`:``}`,disabled:!g,onClick:()=>o(e),children:[(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:W(e,i)}),(0,D.jsx)(`small`,{children:i.actionMeta(e.scope,e.outputKind)})]}),t===0?(0,D.jsx)(`em`,{children:i.recommended}):(0,D.jsx)(v,{"aria-hidden":`true`,size:14})]},e.id))})]})]}),(0,D.jsxs)(`form`,{className:`hr-task-composer`,onSubmit:u,children:[(0,D.jsxs)(`div`,{className:`hr-composer-heading`,children:[(0,D.jsx)(`strong`,{children:i.proposalComposerTitle}),(0,D.jsx)(`small`,{children:g?i.proposalComposerDetail:i.selectProfileFirst})]}),(0,D.jsx)(`label`,{htmlFor:`hr-task-template`,children:i.artifactTargetLabel}),(0,D.jsx)(`select`,{id:`hr-task-template`,value:h.id,onChange:e=>p(e.target.value),children:b.map(e=>(0,D.jsx)(`option`,{value:e.id,children:d(e,a).name},e.id))}),(0,D.jsx)(`label`,{htmlFor:`hr-task-context`,children:i.contextLabel}),(0,D.jsx)(`textarea`,{id:`hr-task-context`,value:S,placeholder:i.contextPlaceholder,onChange:e=>s(e.target.value)}),n.ready?null:(0,D.jsx)(`div`,{className:`inline-warning`,role:`status`,children:n.detail}),(0,D.jsx)(`button`,{type:`submit`,className:`primary`,disabled:!g||!S.trim()||_||!n.ready,children:(0,D.jsx)(`span`,{children:_?t.workspace.createSession:i.generate(C.outputKind)})})]})]})}function G(e,t,n){let r=t.find(t=>t.id===e.capabilityTemplateId);return r?d(r,n).name:e.capabilityTemplateId.replace(/-/g,` `)}var K={actionLabels:{},actionComposerEmpty:`Select a profile`,actionMeta:(e,t)=>`${e} / ${t}`,actionComposerDetail:e=>`Prepare the next reviewable artifact for ${e}.`,actionComposerTitle:`Profile Tools`,artifactPatches:`artifact proposals`,artifactPreviewDetail:`Latest reviewable artifact rendered from the workspace file.`,artifactPreviewEmpty:`No artifact preview yet.`,artifactPreviewError:`Artifact preview is unavailable.`,artifactPreviewLoading:`Loading artifact preview...`,artifactPreviewTitle:`Artifact preview`,artifactTargetLabel:`Artifact proposal target`,commandDetail:(e,t)=>`${e}: ${t}. Keep evidence, next step, review, and memory status connected.`,contextLabel:`Context for the next profile proposal`,contextPlaceholder:`Describe this person, lifecycle moment, evidence, open questions, or the next HR artifact...`,emptyProfileBody:`Create a profile workspace to start connecting evidence, next steps, review, and memory.`,emptyProfileTitle:`No people profiles yet`,evidenceConnectors:`Evidence connectors`,generate:e=>`Generate ${e}`,guardrailsDetail:`Review before memory`,guardrailsTitle:`Review guardrails`,headerFallback:`People Profiles`,hideProfileList:`Hide Profile List`,hideProfileTools:`Hide Profile Tools`,humanDecisionTag:`human decision`,latestSession:e=>`Latest session ${e}.`,lifecycleFilterLabel:`Lifecycle filters`,lifecycleFilters:{all:`All people`,alumni:`Alumni`,attention:`Needs attention`,candidate:`Candidates`,employee:`Employees`},lifecycleLabels:{alumni:`Alumni`,candidate:`Candidate`,employee:`Employee`},memoryCandidates:`memory candidates`,metrics:(e,t,n)=>[`${e} profiles`,`${t} artifacts`,`${n} lessons`],metricsLabel:`HR workbench metrics`,moments:{artifactReady:`Artifact ready for review`,checkinNeeded:`Check-in needed`,inProgress:`Session in progress`,intakeNeeded:`Profile intake needed`,offboardingNeeded:`Offboarding notes needed`,reviewed:`Reviewed`,riskReview:`Risk review needed`},newProfile:`New profile`,nextLabel:`Next`,nextSteps:{captureMemory:`Capture lesson candidate`,checkin:`Prepare check-in`,completeArtifact:`Complete proposal`,offboarding:`Prepare offboarding summary`,profileSnapshot:`Summarize profile`,requestReview:`Request review`,resolveRisk:`Resolve risk`},noSessionYet:`No session yet`,noTimeline:`Select or create a profile to build the timeline.`,noProfilesInSection:`No profiles in this section.`,noRecentSessions:`No agent sessions for this profile yet.`,openSession:e=>`Open ${e} session`,openLatestSession:`Open latest session`,openProfile:e=>`Open ${e} profile`,profileDetailsDetail:e=>`${e} evidence, timeline, review, and artifact preview.`,profileDetailsEmpty:`Select a profile to inspect evidence, timeline, review guardrails, and the latest artifact preview.`,profileDetailsTitle:`Profile Details`,profileBoardDetail:e=>`${e} visible profiles`,profileBoardLabel:`Profile List`,profileBoardTitle:`Profile List`,profileListDetail:e=>`${e} visible profiles`,profileListSearchLabel:`Search people profiles`,profileListSearchPlaceholder:`Search people...`,recentSessionsDetail:e=>`${e} profile sessions`,recentSessionsTitle:`Recent Sessions`,proposalComposerDetail:`Agent output remains a reviewable proposal tied to this profile.`,proposalComposerTitle:`Proposal Composer`,proposalOnly:`Agent output remains a proposal until review.`,recommended:`Recommended`,reviewGuardrails:[`Evidence is tied to role-related or lifecycle-relevant criteria and source references.`,`Missing, weak, and conflicting signals are visible.`,`Sensitive details are not promoted into durable memory without review.`,`Hiring and employment decisions remain explicitly human-owned.`],reviewStatus:e=>e===`pass`?`reviewed`:e===`warn`?`review warnings`:e===`fail`?`review failed`:`needs review`,selectProfileFirst:`Select a profile card before generating a proposal.`,sessionLoops:`session loops`,showProfileList:`Show Profile List`,showProfileTools:`Show Profile Tools`,sourceCards:(e,t,n)=>[{count:e,detail:`reviewable outputs`,label:`Artifact evidence`},{count:t,detail:`profile work loops`,label:`Session context`},{count:n,detail:`human checks`,label:`Review records`}],sourcesDetail:`Selected profile inventory`,sourcesTitle:`Profile sources`,suggestedToolsTitle:`Suggested Tools`,status:{evidenceMissing:`needs evidence`,evidenceReady:`evidence ready`},timelineLabels:{artifact:`Artifact`,memory:`Memory`,profile:`Profile`,review:`Review`,session:`Session`},timelineLessonCount:e=>`${e} memory candidates`,timelineReviewCount:e=>`${e} review records`,timelineTitle:`Profile timeline`,timelineUpdated:e=>`Updated ${e}`,workbenchPanelControlsLabel:`Workbench panel controls`,workbenchTitle:`People Workbench`},q={actionLabels:{"build-evidence-matrix":`构建证据矩阵`,"check-risky-wording":`检查风险表述`,"draft-interview-kit":`生成面试提纲`,"draft-onboarding-plan":`生成入职计划`,"extract-evidence":`抽取人员证据`,"prepare-next-step":`准备下一步触点`,"prepare-offboarding-summary":`准备离职交接`,"summarize-profile":`生成人员档案`},actionComposerEmpty:`选择一个人员档案`,actionMeta:(e,t)=>`${J(e)} / ${t}`,actionComposerDetail:e=>`为 ${e} 准备下一份可 review 产物。`,actionComposerTitle:`Profile Tools`,artifactPatches:`产物提案`,artifactPreviewDetail:`从 workspace 文件渲染最近一份可 review 产物。`,artifactPreviewEmpty:`还没有可预览的产物。`,artifactPreviewError:`产物预览暂不可用。`,artifactPreviewLoading:`正在加载产物预览...`,artifactPreviewTitle:`产物预览`,artifactTargetLabel:`产物提案目标`,commandDetail:(e,t)=>`${e}:${t}。证据、下一步、review 和 memory 状态保持在同一个闭环里。`,contextLabel:`下一份人员提案上下文`,contextPlaceholder:`描述这个人、生命周期节点、证据、开放问题,或下一份 HR 产物目标...`,emptyProfileBody:`创建人员档案工作区后,再把证据、下一步、review 和 memory 串起来。`,emptyProfileTitle:`还没有人员档案`,evidenceConnectors:`证据连接器`,generate:e=>`生成 ${e}`,guardrailsDetail:`先复核,再沉淀组织记忆`,guardrailsTitle:`Review 护栏`,headerFallback:`人员档案`,hideProfileList:`隐藏 Profile List`,hideProfileTools:`隐藏 Profile Tools`,humanDecisionTag:`人类决策`,latestSession:e=>`最近 session ${e}。`,lifecycleFilterLabel:`生命周期筛选`,lifecycleFilters:{all:`全部人员`,alumni:`离职 / Alumni`,attention:`需要关注`,candidate:`候选人`,employee:`在职员工`},lifecycleLabels:{alumni:`离职`,candidate:`候选人`,employee:`在职`},memoryCandidates:`memory 候选`,metrics:(e,t,n)=>[`${e} 个人员档案`,`${t} 个产物`,`${n} 条 lesson`],metricsLabel:`HR 工作台指标`,moments:{artifactReady:`产物可 review`,checkinNeeded:`需要 check-in`,inProgress:`session 进行中`,intakeNeeded:`需要补齐档案`,offboardingNeeded:`需要离职交接记录`,reviewed:`已 review`,riskReview:`需要风险复核`},newProfile:`新建人员档案`,nextLabel:`下一步`,nextSteps:{captureMemory:`沉淀 lesson 候选`,checkin:`准备 check-in`,completeArtifact:`补齐产物提案`,offboarding:`准备离职交接`,profileSnapshot:`生成人员档案`,requestReview:`请求 review`,resolveRisk:`处理风险`},noSessionYet:`还没有 session`,noTimeline:`选择或创建人员档案后开始形成时间线。`,noProfilesInSection:`这个分组里还没有人员档案。`,noRecentSessions:`这个人员档案还没有 agent session。`,openSession:e=>`打开 ${e} session`,openLatestSession:`打开最近 session`,openProfile:e=>`打开 ${e} 档案`,profileDetailsDetail:e=>`${e} 的证据、时间线、review 和产物预览。`,profileDetailsEmpty:`选择一个人员档案后查看证据、时间线、review 护栏和最近产物预览。`,profileDetailsTitle:`Profile Details`,profileBoardDetail:e=>`${e} 个可见档案`,profileBoardLabel:`Profile List`,profileBoardTitle:`Profile List`,profileListDetail:e=>`${e} 个可见档案`,profileListSearchLabel:`搜索人员档案`,profileListSearchPlaceholder:`搜索人员...`,recentSessionsDetail:e=>`${e} 个 profile session`,recentSessionsTitle:`Recent Sessions`,proposalComposerDetail:`Agent 输出只作为绑定此档案的可 review 提案。`,proposalComposerTitle:`产物提案`,proposalOnly:`Agent 输出在 review 前都只是提案。`,recommended:`建议`,reviewGuardrails:[`证据必须绑定岗位相关或生命周期相关标准和来源引用。`,`缺失、薄弱和冲突信号必须保持可见。`,`敏感信息未经 review 不进入 durable memory。`,`招聘和雇佣决策必须明确由人类负责。`],reviewStatus:e=>e===`pass`?`已 review`:e===`warn`?`review 有警告`:e===`fail`?`review 未通过`:`待 review`,selectProfileFirst:`先选择一个人员档案卡片,再生成提案。`,sessionLoops:`session 循环`,showProfileList:`显示 Profile List`,showProfileTools:`显示 Profile Tools`,sourceCards:(e,t,n)=>[{count:e,detail:`可 review 的输出`,label:`产物证据`},{count:t,detail:`人员工作循环`,label:`Session 上下文`},{count:n,detail:`人工质量检查`,label:`Review 记录`}],sourcesDetail:`所选人员证据库存`,sourcesTitle:`档案来源`,suggestedToolsTitle:`Suggested Tools`,status:{evidenceMissing:`需要证据`,evidenceReady:`证据就绪`},timelineLabels:{artifact:`产物`,memory:`Memory`,profile:`档案`,review:`Review`,session:`Session`},timelineLessonCount:e=>`${e} 条 memory 候选`,timelineReviewCount:e=>`${e} 条 review 记录`,timelineTitle:`档案时间线`,timelineUpdated:e=>`更新于 ${e}`,workbenchPanelControlsLabel:`工作台面板控制`,workbenchTitle:`People Workbench`};function ie(e){return e===`zh-CN`?q:K}function J(e){switch(e){case`alumni`:return`离职`;case`artifact`:return`产物`;case`candidate`:return`候选人`;case`employee`:return`员工`;case`interview`:return`面试`;case`lifecycle`:return`生命周期`;case`person`:return`人员`;case`pool`:return`候选池`;case`role`:return`岗位`}}function Y({context:{artifactPreview:e,artifacts:t,copy:o,engineReadiness:s,lessons:c,locale:u,onActionSelect:d,onOpenConnectors:f,onContextChange:m,onCreateWorkspace:g,onOpenSession:v,onOpenSettings:y,onOpenWorkspace:b,onRefresh:x,onSubmitSession:S,onTemplateChange:T,reviews:O,selectedArtifact:k,selectedTemplate:A,selectedWorkspace:j,shellHeader:M,sessions:N,soulCopy:P,submitting:I,templates:L,value:R,workbench:z,workerName:H,workspaces:U}}){let W=ie(u),[G,K]=(0,E.useState)(``),[q,J]=(0,E.useState)(!0),[Y,X]=(0,E.useState)(!0),[oe,se]=(0,E.useState)(()=>new Set([`employee`,`alumni`])),Z=(0,E.useMemo)(()=>ne(U,N,t,O,c,W,u),[t,W,c,u,O,N,U]),Q=(0,E.useMemo)(()=>Z.filter(e=>ae(e,G)),[G,Z]),ce=(0,E.useMemo)(()=>F(Q,W),[W,Q]),$=(j?Z.find(e=>e.id===j.id)??null:null)??Z[0]??null,le=u===`zh-CN`?W.reviewGuardrails:z.reviewChecklist.slice(0,4),ue=B(z.actions,$),de=$?V($,W,u):[],fe=e=>{se(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};async function pe(e){if((await M?.onAction(e))?.ok){if(e.slot===`primary`){g();return}if(e.slot===`drawer-toggle`){X(e=>!e);return}e.slot===`settings`&&y()}}function me(e){let t=M?.busyActionId===e.id,n=e.slot===`settings`?r:e.slot===`refresh`?_:e.slot===`drawer-toggle`?h:i;return(0,D.jsxs)(`button`,{"aria-busy":t,className:`shell-primary-action`,disabled:!!M?.busyActionId,title:`Provided by the Soul App protocol`,type:`button`,onClick:()=>void pe(e),children:[(0,D.jsx)(n,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{children:e.label})]},e.id)}return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`header`,{className:`entry-header workspace-header hr-people-header`,children:[(0,D.jsxs)(`div`,{className:`hr-header-main`,children:[(0,D.jsx)(`span`,{className:`kicker`,children:`${P.name} / ${z.name}`}),(0,D.jsx)(`h1`,{children:W.workbenchTitle}),(0,D.jsx)(`p`,{children:$?W.commandDetail($.name,$.moment):`${H} ${W.headerFallback}`})]}),(0,D.jsxs)(`div`,{className:`entry-header-right hr-header-actions`,children:[M?.search??(0,D.jsxs)(`label`,{className:`hr-profile-search`,children:[(0,D.jsx)(l,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{className:`sr-only`,children:W.profileListSearchLabel}),(0,D.jsx)(`input`,{value:G,placeholder:W.profileListSearchPlaceholder,onChange:e=>K(e.target.value)})]}),(0,D.jsx)(`div`,{className:`hr-header-metrics`,"aria-label":W.metricsLabel,children:W.metrics(Z.length,t.length,c.length).map(e=>(0,D.jsx)(`span`,{children:e},e))}),M?M.actionDescriptors.map(me):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`button`,{type:`button`,className:`primary hr-header-command`,onClick:g,children:[(0,D.jsx)(i,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{children:W.newProfile})]}),(0,D.jsxs)(`button`,{type:`button`,className:`ghost hr-header-command`,onClick:f,children:[(0,D.jsx)(h,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{children:W.evidenceConnectors})]})]}),(0,D.jsxs)(`div`,{className:`hr-header-icon-group`,"aria-label":W.workbenchPanelControlsLabel,children:[(0,D.jsx)(n,{"aria-label":q?W.hideProfileList:W.showProfileList,"aria-pressed":q,onClick:()=>J(e=>!e),children:q?(0,D.jsx)(C,{"aria-hidden":`true`,size:16}):(0,D.jsx)(w,{"aria-hidden":`true`,size:16})}),(0,D.jsx)(n,{"aria-label":Y?W.hideProfileTools:W.showProfileTools,"aria-pressed":Y,onClick:()=>X(e=>!e),children:Y?(0,D.jsx)(p,{"aria-hidden":`true`,size:16}):(0,D.jsx)(a,{"aria-hidden":`true`,size:16})}),M?.actionSlots.has(`refresh`)?null:(0,D.jsx)(n,{"aria-label":o.accessibility.refreshWorkspace,onClick:x,children:(0,D.jsx)(_,{"aria-hidden":`true`,size:16})}),M?.actionSlots.has(`settings`)?null:(0,D.jsx)(n,{"aria-label":o.accessibility.openSettings,onClick:y,children:(0,D.jsx)(r,{"aria-hidden":`true`,size:16})})]})]})]}),M?.status,M?.results,(0,D.jsx)(`div`,{className:`entry-tab-content workspace-content hr-people-content`,"data-testid":`hr-people-workbench`,children:(0,D.jsxs)(`div`,{className:`hr-people-layout ${q?``:`without-profile-list`} ${Y?``:`without-profile-tools`}`,children:[q?(0,D.jsx)(te,{collapsedSectionIds:oe,labels:W,sections:ce,selectedWorkspaceId:j?.id??null,visibleCount:Q.length,onOpenWorkspace:b,onToggleSection:fe}):null,(0,D.jsx)(ee,{artifact:k,artifactPreview:e,focusedProfile:$,labels:W,locale:u,reviewGuardrails:le,timeline:de}),Y?(0,D.jsx)(re,{activeActions:ue,copy:o,engineReadiness:s,focusedProfile:$,labels:W,locale:u,selectedTemplate:A,selectedWorkspace:j,submitting:I,templates:L,value:R,onActionSelect:d,onContextChange:m,onOpenSession:v,onSubmitSession:S,onTemplateChange:T}):null]})})]})}function ae(e,t){let n=t.trim().toLowerCase();return n?[e.name,e.detail,e.moment,e.nextStep,e.status,e.reviewStatus,e.lifecycle].some(e=>e.toLowerCase().includes(n)):!0}export{Y as HrPeopleWorkbench};
1
+ import{i as e,n as t}from"./markdown-preview-DFe-rfff.js";import{a as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _}from"./index-YNnnk64n.js";var v=o(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=o(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),b=o(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),x=o(`message-square-text`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),S=o(`notebook-text`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M9.5 8h5`,key:`11mslq`}],[`path`,{d:`M9.5 12H16`,key:`ktog6x`}],[`path`,{d:`M9.5 16H14`,key:`p1seyn`}]]),C=o(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),w=o(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),T=o(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),E=e(),D=t();function O({detail:e,icon:t,title:n}){return(0,D.jsxs)(`div`,{className:`workbench-section-title`,children:[(0,D.jsx)(`span`,{className:`workbench-section-icon`,"aria-hidden":`true`,children:t}),(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:n}),(0,D.jsx)(`small`,{children:e})]})]})}var k=(0,E.lazy)(()=>g(()=>import(`./markdown-preview-DFe-rfff.js`).then(e=>e.t).then(e=>({default:e.MarkdownPreview})),[]));function ee({artifact:e,artifactPreview:t,focusedProfile:n,labels:r,locale:i,reviewGuardrails:a,timeline:o}){let s=!!(e&&t.artifactId===e.id);return(0,D.jsxs)(`section`,{className:`hr-profile-details`,"aria-label":r.profileDetailsTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(S,{size:15}),title:r.profileDetailsTitle,detail:n?r.profileDetailsDetail(n.name):r.profileDetailsEmpty}),(0,D.jsxs)(`div`,{className:`hr-profile-details-scroll`,children:[(0,D.jsxs)(`div`,{className:`hr-details-grid`,children:[(0,D.jsxs)(`article`,{className:`hr-details-card`,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(u,{size:15}),title:r.sourcesTitle,detail:r.sourcesDetail}),(0,D.jsx)(`div`,{className:`hr-source-grid`,children:r.sourceCards(n?.artifacts.length??0,n?.sessions.length??0,n?.reviews.length??0).map(e=>(0,D.jsxs)(`div`,{className:`hr-source-row`,children:[(0,D.jsx)(`span`,{children:e.label}),(0,D.jsx)(`strong`,{children:e.count}),(0,D.jsx)(`small`,{children:e.detail})]},e.label))}),(0,D.jsxs)(`div`,{className:`hr-profile-timeline`,"aria-label":r.timelineTitle,children:[(0,D.jsx)(`strong`,{children:r.timelineTitle}),o.length>0?o.map(e=>(0,D.jsxs)(`div`,{className:`hr-timeline-row`,children:[(0,D.jsx)(`span`,{className:`hr-timeline-dot ${e.tone}`,"aria-hidden":`true`}),(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:e.label}),(0,D.jsx)(`small`,{children:e.detail})]})]},`${e.label}-${e.detail}`)):(0,D.jsx)(`span`,{className:`hr-muted-note`,children:r.noTimeline})]})]}),(0,D.jsxs)(`article`,{className:`hr-details-card hr-artifact-preview-card`,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(u,{size:15}),title:r.artifactPreviewTitle,detail:e?m(e.updatedAt,i):r.artifactPreviewDetail}),e?(0,D.jsx)(`strong`,{className:`hr-artifact-preview-name`,children:e.title}):null,A({artifact:e,artifactPreview:t,empty:r.artifactPreviewEmpty,error:r.artifactPreviewError,loading:r.artifactPreviewLoading,previewMatchesArtifact:s})]})]}),(0,D.jsxs)(`div`,{className:`hr-guardrail-panel`,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(b,{size:15}),title:r.guardrailsTitle,detail:r.guardrailsDetail}),(0,D.jsx)(`ul`,{className:`hr-guardrail-list`,children:a.map(e=>(0,D.jsx)(`li`,{children:e},e))})]})]})]})}function A({artifact:e,artifactPreview:t,empty:n,error:r,loading:i,previewMatchesArtifact:a}){return e?!a||t.loading?(0,D.jsx)(`div`,{className:`hr-artifact-preview-empty`,children:i}):t.error?(0,D.jsx)(`div`,{className:`hr-artifact-preview-empty`,role:`alert`,children:`${r} ${t.error}`}):(0,D.jsx)(E.Suspense,{fallback:(0,D.jsx)(`div`,{className:`hr-markdown-preview`,"data-testid":`hr-artifact-markdown-preview-loading`}),children:(0,D.jsx)(k,{className:`hr-markdown-preview`,content:t.content,"data-testid":`hr-artifact-markdown-preview`,empty:(0,D.jsx)(`span`,{children:n})})}):(0,D.jsx)(`div`,{className:`hr-artifact-preview-empty`,children:n})}function te({collapsedSectionIds:e,labels:t,onOpenWorkspace:n,onToggleSection:r,sections:i,selectedWorkspaceId:a,visibleCount:o}){return(0,D.jsxs)(`aside`,{className:`hr-profile-list-panel`,"aria-label":t.profileBoardLabel,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(T,{size:15}),title:t.profileBoardTitle,detail:t.profileListDetail(o)}),(0,D.jsx)(`div`,{className:`hr-profile-list-scroll`,children:i.map(i=>{let o=e.has(i.id);return(0,D.jsxs)(`section`,{className:`hr-profile-list-section`,children:[(0,D.jsxs)(`button`,{type:`button`,className:`hr-profile-section-toggle`,"aria-expanded":!o,onClick:()=>r(i.id),children:[(0,D.jsx)(`span`,{children:(0,D.jsx)(`strong`,{children:i.label})}),(0,D.jsx)(`span`,{className:`hr-section-count`,children:i.profiles.length}),(0,D.jsx)(s,{"aria-hidden":`true`,size:14})]}),o?null:(0,D.jsx)(`div`,{className:`hr-profile-section-drawer`,children:i.profiles.length>0?i.profiles.map(e=>(0,D.jsx)(j,{labels:t,profile:e,selected:a===e.id,onOpenWorkspace:n},`${i.id}-${e.id}`)):(0,D.jsx)(`span`,{className:`hr-profile-section-empty`,children:t.noProfilesInSection})})]},i.id)})})]})}function j({labels:e,onOpenWorkspace:t,profile:n,selected:r}){return(0,D.jsxs)(`button`,{type:`button`,className:`hr-profile-list-card ${n.lifecycle} ${r?`active`:``}`,"aria-label":e.openProfile(n.name),onClick:()=>t(n.workspace),children:[(0,D.jsxs)(`span`,{className:`hr-profile-list-card-main`,children:[(0,D.jsxs)(`span`,{className:`hr-profile-list-card-copy`,children:[(0,D.jsx)(`strong`,{children:n.name}),(0,D.jsx)(`small`,{children:n.detail})]}),(0,D.jsx)(`span`,{className:`workbench-status-cell ${n.statusTone}`,children:e.lifecycleLabels[n.lifecycle]})]}),(0,D.jsxs)(`span`,{className:`hr-profile-list-card-status`,children:[(0,D.jsx)(`small`,{children:n.moment}),(0,D.jsx)(`strong`,{children:n.nextStep})]})]})}function ne(e,t,n,r,i,a,o){return e.map(e=>{let o=t.filter(t=>t.workspaceId===e.id),s=n.filter(t=>t.workspaceId===e.id),c=r.filter(t=>t.workspaceId===e.id),l=i.filter(t=>t.workspaceId===e.id),u=M(e,o,s),d=o.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))[0]??null,f=s.length>0,p=L(c),m=d?.status===`failed`?`risk`:f?`good`:`warn`,h=z(p);return{artifacts:s,detail:d?U(d):a.noSessionYet,evidenceTone:m,id:e.id,initials:H(e.name),latestSession:d,lessons:l,lifecycle:u,moment:N(u,o,s,p,a),name:e.name,nextStep:P(u,o,s,p,a),reviews:c,reviewState:p,reviewStatus:a.reviewStatus(p),reviewTone:h,sessions:o,status:f?a.status.evidenceReady:a.status.evidenceMissing,statusTone:m,workspace:{...e,updatedAt:e.updatedAt||new Date().toISOString()}}}).sort((e,t)=>{let n=+!!I(e),r=+!!I(t);return n===r?t.workspace.updatedAt.localeCompare(e.workspace.updatedAt):r-n}).map(e=>({...e,detail:`${e.detail} · ${m(e.workspace.updatedAt,o)}`}))}function M(e,t,n){let r=[e.name,e.type,...t.map(e=>`${e.title} ${e.capabilityTemplateId}`),...n.map(e=>`${e.kind} ${e.title}`)].join(` `).toLowerCase();return/alumni|offboard|depart|exit|handoff|离职|交接|校友/.test(r)?`alumni`:/employee|onboard|new hire|check.?in|growth|retention|员工|入职|在职|试用/.test(r)?`employee`:`candidate`}function N(e,t,n,r,i){if(t.some(e=>e.status===`failed`)||r===`fail`)return i.moments.riskReview;if(R(r))return i.moments.reviewed;if(n.length>0)return i.moments.artifactReady;if(t.length>0)return i.moments.inProgress;switch(e){case`alumni`:return i.moments.offboardingNeeded;case`employee`:return i.moments.checkinNeeded;case`candidate`:return i.moments.intakeNeeded}}function P(e,t,n,r,i){if(t.some(e=>e.status===`failed`)||r===`fail`)return i.nextSteps.resolveRisk;if(n.length>0&&!R(r))return i.nextSteps.requestReview;if(R(r))return i.nextSteps.captureMemory;if(t.length>0)return i.nextSteps.completeArtifact;switch(e){case`alumni`:return i.nextSteps.offboarding;case`employee`:return i.nextSteps.checkin;case`candidate`:return i.nextSteps.profileSnapshot}}function F(e,t){return[{id:`candidate`,label:t.lifecycleFilters.candidate,profiles:e.filter(e=>e.lifecycle===`candidate`)},{id:`employee`,label:t.lifecycleFilters.employee,profiles:e.filter(e=>e.lifecycle===`employee`)},{id:`alumni`,label:t.lifecycleFilters.alumni,profiles:e.filter(e=>e.lifecycle===`alumni`)}]}function I(e){return e.sessions.length===0||e.artifacts.length===0||e.latestSession?.status===`failed`||e.reviewTone!==`good`}function L(e){return e.slice().sort((e,t)=>t.createdAt.localeCompare(e.createdAt))[0]?.verdict??`none`}function R(e){return e===`pass`||e===`warn`}function z(e){return e===`pass`?`good`:e===`fail`?`risk`:`warn`}function B(e,t){let n=t?.lifecycle===`employee`?[`prepare-next-step`,`draft-onboarding-plan`,`summarize-profile`,`check-risky-wording`]:t?.lifecycle===`alumni`?[`prepare-offboarding-summary`,`summarize-profile`,`prepare-next-step`,`check-risky-wording`]:[`summarize-profile`,`extract-evidence`,`draft-interview-kit`,`build-evidence-matrix`],r=new Map(n.map((e,t)=>[e,t]));return e.slice().sort((e,t)=>(r.get(e.id)??99)-(r.get(t.id)??99)).slice(0,5)}function V(e,t,n){let r=[{detail:t.timelineUpdated(m(e.workspace.updatedAt,n)),label:t.timelineLabels.profile,tone:`muted`}];e.latestSession&&r.push({detail:`${e.latestSession.title} · ${c(e.latestSession.status,n)}`,label:t.timelineLabels.session,tone:e.latestSession.status===`failed`?`risk`:`good`});let i=e.artifacts.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))[0];return i&&r.push({detail:i.title,label:t.timelineLabels.artifact,tone:`good`}),e.reviews.length>0&&r.push({detail:t.timelineReviewCount(e.reviews.length),label:t.timelineLabels.review,tone:`good`}),e.lessons.length>0&&r.push({detail:t.timelineLessonCount(e.lessons.length),label:t.timelineLabels.memory,tone:`warn`}),r.slice(0,5)}function H(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length>=2?`${t[0]?.[0]??``}${t[1]?.[0]??``}`.toUpperCase():Array.from(e.trim()).slice(0,2).join(``).toUpperCase()||`HR`}function U(e){return e.capabilityTemplateId.replace(/-/g,` `)}function W(e,t){return t.actionLabels[e.id]??e.label}function re({activeActions:e,copy:t,engineReadiness:n,focusedProfile:r,labels:i,locale:a,onActionSelect:o,onContextChange:s,onOpenSession:l,onSubmitSession:u,onTemplateChange:p,selectedTemplate:h,selectedWorkspace:g,submitting:_,templates:b,value:S}){let C=d(h,a),w=r?.sessions.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).slice(0,3)??[];return(0,D.jsxs)(`aside`,{className:`hr-profile-tools-panel`,"aria-label":i.actionComposerTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(f,{size:15}),title:i.actionComposerTitle,detail:r?i.actionComposerDetail(r.name):i.actionComposerEmpty}),(0,D.jsxs)(`div`,{className:`hr-profile-tools-scroll`,children:[r?(0,D.jsxs)(`div`,{className:`hr-action-profile-card`,children:[(0,D.jsx)(`span`,{className:`hr-profile-avatar large`,"aria-hidden":`true`,children:r.initials}),(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:r.name}),(0,D.jsx)(`small`,{children:`${i.lifecycleLabels[r.lifecycle]} · ${r.moment}`})]})]}):null,(0,D.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":i.recentSessionsTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(x,{size:15}),title:i.recentSessionsTitle,detail:i.recentSessionsDetail(w.length)}),(0,D.jsx)(`div`,{className:`hr-session-card-list`,children:w.length>0?w.map(e=>(0,D.jsxs)(`button`,{type:`button`,className:`hr-session-card`,"aria-label":i.openSession(e.title),onClick:()=>l(e),children:[(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:e.title}),(0,D.jsx)(`small`,{children:G(e,b,a)})]}),(0,D.jsxs)(`span`,{className:`hr-session-card-meta`,children:[(0,D.jsx)(`em`,{children:c(e.status,a)}),(0,D.jsxs)(`small`,{children:[(0,D.jsx)(y,{"aria-hidden":`true`,size:12}),m(e.updatedAt,a)]})]})]},e.id)):(0,D.jsx)(`span`,{className:`hr-profile-section-empty`,children:i.noRecentSessions})})]}),(0,D.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":i.suggestedToolsTitle,children:[(0,D.jsx)(O,{icon:(0,D.jsx)(f,{size:15}),title:i.suggestedToolsTitle,detail:i.proposalOnly}),(0,D.jsx)(`div`,{className:`hr-action-list`,children:e.map((e,t)=>(0,D.jsxs)(`button`,{type:`button`,className:`hr-action-row ${t===0?`suggested`:``}`,disabled:!g,onClick:()=>o(e),children:[(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`strong`,{children:W(e,i)}),(0,D.jsx)(`small`,{children:i.actionMeta(e.scope,e.outputKind)})]}),t===0?(0,D.jsx)(`em`,{children:i.recommended}):(0,D.jsx)(v,{"aria-hidden":`true`,size:14})]},e.id))})]})]}),(0,D.jsxs)(`form`,{className:`hr-task-composer`,onSubmit:u,children:[(0,D.jsxs)(`div`,{className:`hr-composer-heading`,children:[(0,D.jsx)(`strong`,{children:i.proposalComposerTitle}),(0,D.jsx)(`small`,{children:g?i.proposalComposerDetail:i.selectProfileFirst})]}),(0,D.jsx)(`label`,{htmlFor:`hr-task-template`,children:i.artifactTargetLabel}),(0,D.jsx)(`select`,{id:`hr-task-template`,value:h.id,onChange:e=>p(e.target.value),children:b.map(e=>(0,D.jsx)(`option`,{value:e.id,children:d(e,a).name},e.id))}),(0,D.jsx)(`label`,{htmlFor:`hr-task-context`,children:i.contextLabel}),(0,D.jsx)(`textarea`,{id:`hr-task-context`,value:S,placeholder:i.contextPlaceholder,onChange:e=>s(e.target.value)}),n.ready?null:(0,D.jsx)(`div`,{className:`inline-warning`,role:`status`,children:n.detail}),(0,D.jsx)(`button`,{type:`submit`,className:`primary`,disabled:!g||!S.trim()||_||!n.ready,children:(0,D.jsx)(`span`,{children:_?t.workspace.createSession:i.generate(C.outputKind)})})]})]})}function G(e,t,n){let r=t.find(t=>t.id===e.capabilityTemplateId);return r?d(r,n).name:e.capabilityTemplateId.replace(/-/g,` `)}var K={actionLabels:{},actionComposerEmpty:`Select a profile`,actionMeta:(e,t)=>`${e} / ${t}`,actionComposerDetail:e=>`Prepare the next reviewable artifact for ${e}.`,actionComposerTitle:`Profile Tools`,artifactPatches:`artifact proposals`,artifactPreviewDetail:`Latest reviewable artifact rendered from the workspace file.`,artifactPreviewEmpty:`No artifact preview yet.`,artifactPreviewError:`Artifact preview is unavailable.`,artifactPreviewLoading:`Loading artifact preview...`,artifactPreviewTitle:`Artifact preview`,artifactTargetLabel:`Artifact proposal target`,commandDetail:(e,t)=>`${e}: ${t}. Keep evidence, next step, review, and memory status connected.`,contextLabel:`Context for the next profile proposal`,contextPlaceholder:`Describe this person, lifecycle moment, evidence, open questions, or the next HR artifact...`,emptyProfileBody:`Create a profile workspace to start connecting evidence, next steps, review, and memory.`,emptyProfileTitle:`No people profiles yet`,evidenceConnectors:`Evidence connectors`,generate:e=>`Generate ${e}`,guardrailsDetail:`Review before memory`,guardrailsTitle:`Review guardrails`,headerFallback:`People Profiles`,hideProfileList:`Hide Profile List`,hideProfileTools:`Hide Profile Tools`,humanDecisionTag:`human decision`,latestSession:e=>`Latest session ${e}.`,lifecycleFilterLabel:`Lifecycle filters`,lifecycleFilters:{all:`All people`,alumni:`Alumni`,attention:`Needs attention`,candidate:`Candidates`,employee:`Employees`},lifecycleLabels:{alumni:`Alumni`,candidate:`Candidate`,employee:`Employee`},memoryCandidates:`memory candidates`,metrics:(e,t,n)=>[`${e} profiles`,`${t} artifacts`,`${n} lessons`],metricsLabel:`HR workbench metrics`,moments:{artifactReady:`Artifact ready for review`,checkinNeeded:`Check-in needed`,inProgress:`Session in progress`,intakeNeeded:`Profile intake needed`,offboardingNeeded:`Offboarding notes needed`,reviewed:`Reviewed`,riskReview:`Risk review needed`},newProfile:`New profile`,nextLabel:`Next`,nextSteps:{captureMemory:`Capture lesson candidate`,checkin:`Prepare check-in`,completeArtifact:`Complete proposal`,offboarding:`Prepare offboarding summary`,profileSnapshot:`Summarize profile`,requestReview:`Request review`,resolveRisk:`Resolve risk`},noSessionYet:`No session yet`,noTimeline:`Select or create a profile to build the timeline.`,noProfilesInSection:`No profiles in this section.`,noRecentSessions:`No agent sessions for this profile yet.`,openSession:e=>`Open ${e} session`,openLatestSession:`Open latest session`,openProfile:e=>`Open ${e} profile`,profileDetailsDetail:e=>`${e} evidence, timeline, review, and artifact preview.`,profileDetailsEmpty:`Select a profile to inspect evidence, timeline, review guardrails, and the latest artifact preview.`,profileDetailsTitle:`Profile Details`,profileBoardDetail:e=>`${e} visible profiles`,profileBoardLabel:`Profile List`,profileBoardTitle:`Profile List`,profileListDetail:e=>`${e} visible profiles`,profileListSearchLabel:`Search people profiles`,profileListSearchPlaceholder:`Search people...`,recentSessionsDetail:e=>`${e} profile sessions`,recentSessionsTitle:`Recent Sessions`,proposalComposerDetail:`Agent output remains a reviewable proposal tied to this profile.`,proposalComposerTitle:`Proposal Composer`,proposalOnly:`Agent output remains a proposal until review.`,recommended:`Recommended`,reviewGuardrails:[`Evidence is tied to role-related or lifecycle-relevant criteria and source references.`,`Missing, weak, and conflicting signals are visible.`,`Sensitive details are not promoted into durable memory without review.`,`Hiring and employment decisions remain explicitly human-owned.`],reviewStatus:e=>e===`pass`?`reviewed`:e===`warn`?`review warnings`:e===`fail`?`review failed`:`needs review`,selectProfileFirst:`Select a profile card before generating a proposal.`,sessionLoops:`session loops`,showProfileList:`Show Profile List`,showProfileTools:`Show Profile Tools`,sourceCards:(e,t,n)=>[{count:e,detail:`reviewable outputs`,label:`Artifact evidence`},{count:t,detail:`profile work loops`,label:`Session context`},{count:n,detail:`human checks`,label:`Review records`}],sourcesDetail:`Selected profile inventory`,sourcesTitle:`Profile sources`,suggestedToolsTitle:`Suggested Tools`,status:{evidenceMissing:`needs evidence`,evidenceReady:`evidence ready`},timelineLabels:{artifact:`Artifact`,memory:`Memory`,profile:`Profile`,review:`Review`,session:`Session`},timelineLessonCount:e=>`${e} memory candidates`,timelineReviewCount:e=>`${e} review records`,timelineTitle:`Profile timeline`,timelineUpdated:e=>`Updated ${e}`,workbenchPanelControlsLabel:`Workbench panel controls`,workbenchTitle:`People Workbench`},q={actionLabels:{"build-evidence-matrix":`构建证据矩阵`,"check-risky-wording":`检查风险表述`,"draft-interview-kit":`生成面试提纲`,"draft-onboarding-plan":`生成入职计划`,"extract-evidence":`抽取人员证据`,"prepare-next-step":`准备下一步触点`,"prepare-offboarding-summary":`准备离职交接`,"summarize-profile":`生成人员档案`},actionComposerEmpty:`选择一个人员档案`,actionMeta:(e,t)=>`${J(e)} / ${t}`,actionComposerDetail:e=>`为 ${e} 准备下一份可 review 产物。`,actionComposerTitle:`Profile Tools`,artifactPatches:`产物提案`,artifactPreviewDetail:`从 workspace 文件渲染最近一份可 review 产物。`,artifactPreviewEmpty:`还没有可预览的产物。`,artifactPreviewError:`产物预览暂不可用。`,artifactPreviewLoading:`正在加载产物预览...`,artifactPreviewTitle:`产物预览`,artifactTargetLabel:`产物提案目标`,commandDetail:(e,t)=>`${e}:${t}。证据、下一步、review 和 memory 状态保持在同一个闭环里。`,contextLabel:`下一份人员提案上下文`,contextPlaceholder:`描述这个人、生命周期节点、证据、开放问题,或下一份 HR 产物目标...`,emptyProfileBody:`创建人员档案工作区后,再把证据、下一步、review 和 memory 串起来。`,emptyProfileTitle:`还没有人员档案`,evidenceConnectors:`证据连接器`,generate:e=>`生成 ${e}`,guardrailsDetail:`先复核,再沉淀组织记忆`,guardrailsTitle:`Review 护栏`,headerFallback:`人员档案`,hideProfileList:`隐藏 Profile List`,hideProfileTools:`隐藏 Profile Tools`,humanDecisionTag:`人类决策`,latestSession:e=>`最近 session ${e}。`,lifecycleFilterLabel:`生命周期筛选`,lifecycleFilters:{all:`全部人员`,alumni:`离职 / Alumni`,attention:`需要关注`,candidate:`候选人`,employee:`在职员工`},lifecycleLabels:{alumni:`离职`,candidate:`候选人`,employee:`在职`},memoryCandidates:`memory 候选`,metrics:(e,t,n)=>[`${e} 个人员档案`,`${t} 个产物`,`${n} 条 lesson`],metricsLabel:`HR 工作台指标`,moments:{artifactReady:`产物可 review`,checkinNeeded:`需要 check-in`,inProgress:`session 进行中`,intakeNeeded:`需要补齐档案`,offboardingNeeded:`需要离职交接记录`,reviewed:`已 review`,riskReview:`需要风险复核`},newProfile:`新建人员档案`,nextLabel:`下一步`,nextSteps:{captureMemory:`沉淀 lesson 候选`,checkin:`准备 check-in`,completeArtifact:`补齐产物提案`,offboarding:`准备离职交接`,profileSnapshot:`生成人员档案`,requestReview:`请求 review`,resolveRisk:`处理风险`},noSessionYet:`还没有 session`,noTimeline:`选择或创建人员档案后开始形成时间线。`,noProfilesInSection:`这个分组里还没有人员档案。`,noRecentSessions:`这个人员档案还没有 agent session。`,openSession:e=>`打开 ${e} session`,openLatestSession:`打开最近 session`,openProfile:e=>`打开 ${e} 档案`,profileDetailsDetail:e=>`${e} 的证据、时间线、review 和产物预览。`,profileDetailsEmpty:`选择一个人员档案后查看证据、时间线、review 护栏和最近产物预览。`,profileDetailsTitle:`Profile Details`,profileBoardDetail:e=>`${e} 个可见档案`,profileBoardLabel:`Profile List`,profileBoardTitle:`Profile List`,profileListDetail:e=>`${e} 个可见档案`,profileListSearchLabel:`搜索人员档案`,profileListSearchPlaceholder:`搜索人员...`,recentSessionsDetail:e=>`${e} 个 profile session`,recentSessionsTitle:`Recent Sessions`,proposalComposerDetail:`Agent 输出只作为绑定此档案的可 review 提案。`,proposalComposerTitle:`产物提案`,proposalOnly:`Agent 输出在 review 前都只是提案。`,recommended:`建议`,reviewGuardrails:[`证据必须绑定岗位相关或生命周期相关标准和来源引用。`,`缺失、薄弱和冲突信号必须保持可见。`,`敏感信息未经 review 不进入 durable memory。`,`招聘和雇佣决策必须明确由人类负责。`],reviewStatus:e=>e===`pass`?`已 review`:e===`warn`?`review 有警告`:e===`fail`?`review 未通过`:`待 review`,selectProfileFirst:`先选择一个人员档案卡片,再生成提案。`,sessionLoops:`session 循环`,showProfileList:`显示 Profile List`,showProfileTools:`显示 Profile Tools`,sourceCards:(e,t,n)=>[{count:e,detail:`可 review 的输出`,label:`产物证据`},{count:t,detail:`人员工作循环`,label:`Session 上下文`},{count:n,detail:`人工质量检查`,label:`Review 记录`}],sourcesDetail:`所选人员证据库存`,sourcesTitle:`档案来源`,suggestedToolsTitle:`Suggested Tools`,status:{evidenceMissing:`需要证据`,evidenceReady:`证据就绪`},timelineLabels:{artifact:`产物`,memory:`Memory`,profile:`档案`,review:`Review`,session:`Session`},timelineLessonCount:e=>`${e} 条 memory 候选`,timelineReviewCount:e=>`${e} 条 review 记录`,timelineTitle:`档案时间线`,timelineUpdated:e=>`更新于 ${e}`,workbenchPanelControlsLabel:`工作台面板控制`,workbenchTitle:`People Workbench`};function ie(e){return e===`zh-CN`?q:K}function J(e){switch(e){case`alumni`:return`离职`;case`artifact`:return`产物`;case`candidate`:return`候选人`;case`employee`:return`员工`;case`interview`:return`面试`;case`lifecycle`:return`生命周期`;case`person`:return`人员`;case`pool`:return`候选池`;case`role`:return`岗位`}}function Y({context:{artifactPreview:e,artifacts:t,copy:o,engineReadiness:s,lessons:c,locale:u,onActionSelect:d,onOpenConnectors:f,onContextChange:m,onCreateWorkspace:g,onOpenSession:v,onOpenSettings:y,onOpenWorkspace:b,onRefresh:x,onSubmitSession:S,onTemplateChange:T,reviews:O,selectedArtifact:k,selectedTemplate:A,selectedWorkspace:j,shellHeader:M,sessions:N,soulCopy:P,submitting:I,templates:L,value:R,workbench:z,workerName:H,workspaces:U}}){let W=ie(u),[G,K]=(0,E.useState)(``),[q,J]=(0,E.useState)(!0),[Y,X]=(0,E.useState)(!0),[oe,se]=(0,E.useState)(()=>new Set([`employee`,`alumni`])),Z=(0,E.useMemo)(()=>ne(U,N,t,O,c,W,u),[t,W,c,u,O,N,U]),Q=(0,E.useMemo)(()=>Z.filter(e=>ae(e,G)),[G,Z]),ce=(0,E.useMemo)(()=>F(Q,W),[W,Q]),$=(j?Z.find(e=>e.id===j.id)??null:null)??Z[0]??null,le=u===`zh-CN`?W.reviewGuardrails:z.reviewChecklist.slice(0,4),ue=B(z.actions,$),de=$?V($,W,u):[],fe=e=>{se(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};async function pe(e){if((await M?.onAction(e))?.ok){if(e.slot===`primary`){g();return}if(e.slot===`drawer-toggle`){X(e=>!e);return}e.slot===`settings`&&y()}}function me(e){let t=M?.busyActionId===e.id,n=e.slot===`settings`?r:e.slot===`refresh`?_:e.slot===`drawer-toggle`?h:i;return(0,D.jsxs)(`button`,{"aria-busy":t,className:`shell-primary-action`,disabled:!!M?.busyActionId,title:`Provided by the Soul App protocol`,type:`button`,onClick:()=>void pe(e),children:[(0,D.jsx)(n,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{children:e.label})]},e.id)}return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`header`,{className:`entry-header workspace-header hr-people-header`,children:[(0,D.jsxs)(`div`,{className:`hr-header-main`,children:[(0,D.jsx)(`span`,{className:`kicker`,children:`${P.name} / ${z.name}`}),(0,D.jsx)(`h1`,{children:W.workbenchTitle}),(0,D.jsx)(`p`,{children:$?W.commandDetail($.name,$.moment):`${H} ${W.headerFallback}`})]}),(0,D.jsxs)(`div`,{className:`entry-header-right hr-header-actions`,children:[M?.search??(0,D.jsxs)(`label`,{className:`hr-profile-search`,children:[(0,D.jsx)(l,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{className:`sr-only`,children:W.profileListSearchLabel}),(0,D.jsx)(`input`,{value:G,placeholder:W.profileListSearchPlaceholder,onChange:e=>K(e.target.value)})]}),(0,D.jsx)(`div`,{className:`hr-header-metrics`,"aria-label":W.metricsLabel,children:W.metrics(Z.length,t.length,c.length).map(e=>(0,D.jsx)(`span`,{children:e},e))}),M?M.actionDescriptors.map(me):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`button`,{type:`button`,className:`primary hr-header-command`,onClick:g,children:[(0,D.jsx)(i,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{children:W.newProfile})]}),(0,D.jsxs)(`button`,{type:`button`,className:`ghost hr-header-command`,onClick:f,children:[(0,D.jsx)(h,{"aria-hidden":`true`,size:14}),(0,D.jsx)(`span`,{children:W.evidenceConnectors})]})]}),(0,D.jsxs)(`div`,{className:`hr-header-icon-group`,"aria-label":W.workbenchPanelControlsLabel,children:[(0,D.jsx)(n,{"aria-label":q?W.hideProfileList:W.showProfileList,"aria-pressed":q,onClick:()=>J(e=>!e),children:q?(0,D.jsx)(C,{"aria-hidden":`true`,size:16}):(0,D.jsx)(w,{"aria-hidden":`true`,size:16})}),(0,D.jsx)(n,{"aria-label":Y?W.hideProfileTools:W.showProfileTools,"aria-pressed":Y,onClick:()=>X(e=>!e),children:Y?(0,D.jsx)(p,{"aria-hidden":`true`,size:16}):(0,D.jsx)(a,{"aria-hidden":`true`,size:16})}),M?.actionSlots.has(`refresh`)?null:(0,D.jsx)(n,{"aria-label":o.accessibility.refreshWorkspace,onClick:x,children:(0,D.jsx)(_,{"aria-hidden":`true`,size:16})}),M?.actionSlots.has(`settings`)?null:(0,D.jsx)(n,{"aria-label":o.accessibility.openSettings,onClick:y,children:(0,D.jsx)(r,{"aria-hidden":`true`,size:16})})]})]})]}),M?.status,M?.results,(0,D.jsx)(`div`,{className:`entry-tab-content workspace-content hr-people-content`,"data-testid":`hr-people-workbench`,children:(0,D.jsxs)(`div`,{className:`hr-people-layout ${q?``:`without-profile-list`} ${Y?``:`without-profile-tools`}`,children:[q?(0,D.jsx)(te,{collapsedSectionIds:oe,labels:W,sections:ce,selectedWorkspaceId:j?.id??null,visibleCount:Q.length,onOpenWorkspace:b,onToggleSection:fe}):null,(0,D.jsx)(ee,{artifact:k,artifactPreview:e,focusedProfile:$,labels:W,locale:u,reviewGuardrails:le,timeline:de}),Y?(0,D.jsx)(re,{activeActions:ue,copy:o,engineReadiness:s,focusedProfile:$,labels:W,locale:u,selectedTemplate:A,selectedWorkspace:j,submitting:I,templates:L,value:R,onActionSelect:d,onContextChange:m,onOpenSession:v,onSubmitSession:S,onTemplateChange:T}):null]})})]})}function ae(e,t){let n=t.trim().toLowerCase();return n?[e.name,e.detail,e.moment,e.nextStep,e.status,e.reviewStatus,e.lifecycle].some(e=>e.toLowerCase().includes(n)):!0}export{Y as HrPeopleWorkbench};
@@ -8,7 +8,7 @@
8
8
  <link rel="preload" href="/fonts/jetbrains-mono-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
10
10
  <title>AIWorker · Soul Workspace</title>
11
- <script type="module" crossorigin src="/assets/index-ByOwFiyz.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-YNnnk64n.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="/assets/markdown-preview-DFe-rfff.js">
13
13
  <link rel="stylesheet" crossorigin href="/assets/index-K-y56wrL.css">
14
14
  </head>