@zonease/aiworker-cli 0.17.0 → 0.17.1
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/aiworker-bun.js +262 -260
- package/official-apps/aiworker-hr/dist/index.js +208 -12
- package/official-apps/aiworker-hr/dist/mounted/host-mounted.js +208 -12
- package/official-apps/aiworker-hr/dist/standalone/standalone.js +208 -12
- package/official-apps/aiworker-hr/engine-assets/skills/candidate-profile/SKILL.md +5 -3
- package/official-apps/aiworker-hr/engine-assets/skills/evidence-screening/SKILL.md +4 -0
- package/official-apps/aiworker-hr/engine-assets/skills/hiring-risk-review/SKILL.md +5 -2
- package/official-apps/aiworker-hr/engine-assets/skills/interview-brief/SKILL.md +4 -0
- package/official-apps/aiworker-hr/engine-assets/skills/profile-update-proposal/SKILL.md +31 -4
- package/official-apps/aiworker-hr/engine-assets/workspace/AGENTS.md +11 -3
- package/official-apps/aiworker-hr/engine-assets/workspace/README.md +1 -1
- package/official-apps/aiworker-hr/product/artifacts/README.md +36 -0
- package/official-apps/aiworker-hr/product/artifacts/schemas/evidence-matrix.schema.json +50 -0
- package/official-apps/aiworker-hr/product/artifacts/schemas/hiring-risk.schema.json +50 -0
- package/official-apps/aiworker-hr/product/artifacts/schemas/interview-brief.schema.json +51 -0
- package/official-apps/aiworker-hr/product/artifacts/schemas/profile-update-proposal.schema.json +44 -0
- package/official-apps/aiworker-hr/product/reviews/evidence-matrix.md +5 -0
- package/official-apps/aiworker-hr/product/reviews/hiring-risk.md +5 -0
- package/official-apps/aiworker-hr/product/reviews/interview-brief.md +5 -0
- package/official-apps/aiworker-hr/product/reviews/profile-update-proposal.md +5 -0
- package/official-apps/aiworker-hr/product/workflows/evidence-matrix/prompt.md +3 -0
- package/official-apps/aiworker-hr/product/workflows/evidence-matrix/review.md +5 -0
- package/official-apps/aiworker-hr/product/workflows/hiring-risk/prompt.md +3 -0
- package/official-apps/aiworker-hr/product/workflows/hiring-risk/review.md +5 -0
- package/official-apps/aiworker-hr/product/workflows/interview-brief/prompt.md +3 -0
- package/official-apps/aiworker-hr/product/workflows/interview-brief/review.md +5 -0
- package/official-apps/aiworker-hr/product/workflows/profile-update-proposal/prompt.md +3 -0
- package/official-apps/aiworker-hr/product/workflows/profile-update-proposal/review.md +6 -0
- package/official-apps/aiworker-hr/soul-app.manifest.json +122 -6
- package/official-apps/aiworker-qa/dist/index.js +86 -6
- package/official-apps/aiworker-qa/dist/mounted/host-mounted.js +86 -6
- package/official-apps/aiworker-qa/dist/standalone/standalone.js +86 -6
- package/package.json +1 -1
- package/web/worker/assets/index-BVL5d431.js +1472 -0
- package/web/worker/assets/index-vuCezriz.css +2 -0
- package/web/worker/assets/people-workbench-CwlISvWP.js +6 -0
- package/web/worker/index.html +2 -2
- package/web/worker/assets/index-CRzKNzRk.css +0 -2
- package/web/worker/assets/index-DXNJsxH3.js +0 -18
- package/web/worker/assets/people-workbench-BHpi7EqO.js +0 -5
|
@@ -1,5 +0,0 @@
|
|
|
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-DXNJsxH3.js";var v=o(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=o(`book-open-text`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M16 12h2`,key:`7q9ll5`}],[`path`,{d:`M16 8h2`,key:`msurwy`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}],[`path`,{d:`M6 12h2`,key:`32wvfc`}],[`path`,{d:`M6 8h2`,key:`30oboj`}]]),b=o(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),x=o(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),S=o(`file-check-corner`,[[`path`,{d:`M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6`,key:`g5mvt7`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14 20 2 2 4-4`,key:`15kota`}]]),C=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`}]]),w=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`}]]),T=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`}]]),E=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`}]]),D=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`}]]),O=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`}]]),k=e(),A=t();function j({detail:e,icon:t,title:n}){return(0,A.jsxs)(`div`,{className:`workbench-section-title`,children:[(0,A.jsx)(`span`,{className:`workbench-section-icon`,"aria-hidden":`true`,children:t}),(0,A.jsxs)(`span`,{children:[(0,A.jsx)(`strong`,{children:n}),(0,A.jsx)(`small`,{children:e})]})]})}var M=[{id:`currentProfileSummary`,title:`Current Profile Summary`},{id:`identityAndBasics`,title:`Identity And Basics`},{id:`roleContextAndResponsibilities`,title:`Role Context And Responsibilities`},{id:`capabilitiesAndStack`,title:`Capabilities And Stack`},{id:`confirmedFacts`,title:`Confirmed Facts`},{id:`evidenceStatus`,title:`Evidence Status`},{id:`risksAndGaps`,title:`Risks And Gaps`},{id:`nextHrActions`,title:`Next HR Actions`},{id:`reviewState`,title:`Review State`},{id:`acceptedExternalSections`,title:`Accepted External Sections`}],N=new Map(M.map(e=>[I(e.title),e.id]));function P(e){let t=e.replace(/\r\n/g,`
|
|
2
|
-
`).split(`
|
|
3
|
-
`),n=null,r=[];t.forEach((e,t)=>{let i=L(e,1);n===null&&i&&(n=i);let a=L(e,2);a&&r.push({heading:a,lineIndex:t})});let i=r[0]?.lineIndex??t.length,a=t.slice(0,i).join(`
|
|
4
|
-
`).trim(),o={},s=[];return r.forEach((e,n)=>{let i=e.heading,a=e.lineIndex+1,c=r[n+1]?.lineIndex??t.length,l=t.slice(a,c).join(`
|
|
5
|
-
`).trim(),u=N.get(I(i)),d={body:l,heading:i};u?o[u]=d:s.push(d)}),{intro:a,sections:o,title:n,unknownSections:s}}function F(e,t){return e.sections[t]??null}function I(e){return e.trim().toLowerCase().replace(/\s+/g,` `)}function L(e,t){let n=`#`.repeat(t);return e.startsWith(`${n} `)&&e.slice(n.length+1).trim()||null}var R=(0,k.lazy)(()=>g(()=>import(`./markdown-preview-DFe-rfff.js`).then(e=>e.t).then(e=>({default:e.MarkdownPreview})),[]));function ee({focusedProfile:e,labels:t,profilePreview:n}){let r=!!(e&&n.workspaceId===e.id),i=(0,k.useMemo)(()=>!r||n.loading||n.error?null:P(n.content),[n.content,n.error,n.loading,r]);if(!r||n.loading)return(0,A.jsx)(`div`,{className:`hr-artifact-preview-empty`,children:t.currentProfileLoading});if(n.error)return(0,A.jsx)(`div`,{className:`hr-artifact-preview-empty`,role:`alert`,children:`${t.currentProfileError} ${n.error}`});if(!i)return(0,A.jsx)(B,{content:n.content,empty:t.currentProfileEmpty});let a=F(i,`currentProfileSummary`),o=M.filter(e=>e.id!==`currentProfileSummary`);return(0,A.jsxs)(`article`,{className:`hr-reading-room`,"data-testid":`hr-current-profile-summary`,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(y,{size:15}),title:i.title??e?.name??t.profileDetailsTitle,detail:e?t.profileReadingRoomDetail(e.name):t.profileReadingRoomFallback}),(0,A.jsxs)(`section`,{className:`hr-reading-summary`,children:[(0,A.jsx)(`h2`,{children:t.profileDetailsTitle}),(0,A.jsx)(z,{content:a?.body||i.intro,empty:t.currentProfileEmpty})]}),(0,A.jsxs)(`div`,{className:`hr-reading-section-grid`,children:[o.map(e=>(0,A.jsxs)(`section`,{className:`hr-reading-section ${e.id}`,children:[(0,A.jsx)(`h3`,{children:e.title}),(0,A.jsx)(z,{content:F(i,e.id)?.body,empty:t.baseSectionEmpty})]},e.id)),i.unknownSections.length>0?(0,A.jsxs)(`section`,{className:`hr-reading-section`,children:[(0,A.jsx)(`h3`,{children:t.otherProfileNotesTitle}),i.unknownSections.map(e=>(0,A.jsxs)(`div`,{className:`hr-reading-unknown-section`,children:[(0,A.jsx)(`h4`,{children:e.heading}),(0,A.jsx)(z,{content:e.body,empty:t.baseSectionEmpty})]},e.heading))]}):null]})]})}function z({content:e,empty:t}){return(0,A.jsx)(B,{content:e?.trim()??``,empty:t})}function B({content:e,empty:t}){return(0,A.jsx)(k.Suspense,{fallback:(0,A.jsx)(`div`,{className:`hr-markdown-preview hr-reading-markdown`}),children:(0,A.jsx)(R,{className:`hr-markdown-preview hr-reading-markdown`,content:e,empty:(0,A.jsx)(`span`,{children:t})})})}function te({focusedProfile:e,labels:t,profilePreview:n}){return(0,A.jsxs)(`section`,{className:`hr-profile-details`,"aria-label":t.profileDetailsTitle,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(T,{size:15}),title:t.profileDetailsTitle,detail:e?t.profileDetailsDetail(e.name):t.profileDetailsEmpty}),(0,A.jsx)(`div`,{className:`hr-profile-details-scroll`,children:(0,A.jsx)(ee,{focusedProfile:e,labels:t,profilePreview:n})})]})}function ne({collapsedSectionIds:e,labels:t,onOpenWorkspace:n,onToggleSection:r,sections:i,selectedWorkspaceId:a,visibleCount:o}){return(0,A.jsxs)(`aside`,{className:`hr-profile-list-panel`,"aria-label":t.profileBoardLabel,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(O,{size:15}),title:t.profileBoardTitle,detail:t.profileListDetail(o)}),(0,A.jsx)(`div`,{className:`hr-profile-list-scroll`,children:i.map(i=>{let o=e.has(i.id);return(0,A.jsxs)(`section`,{className:`hr-profile-list-section`,children:[(0,A.jsxs)(`button`,{type:`button`,className:`hr-profile-section-toggle`,"aria-expanded":!o,onClick:()=>r(i.id),children:[(0,A.jsx)(`span`,{children:(0,A.jsx)(`strong`,{children:i.label})}),(0,A.jsx)(`span`,{className:`hr-section-count`,children:i.profiles.length}),(0,A.jsx)(s,{"aria-hidden":`true`,size:14})]}),o?null:(0,A.jsx)(`div`,{className:`hr-profile-section-drawer`,children:i.profiles.length>0?i.profiles.map(e=>(0,A.jsx)(V,{labels:t,profile:e,selected:a===e.id,onOpenWorkspace:n},`${i.id}-${e.id}`)):(0,A.jsx)(`span`,{className:`hr-profile-section-empty`,children:t.noProfilesInSection})})]},i.id)})})]})}function V({labels:e,onOpenWorkspace:t,profile:n,selected:r}){return(0,A.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,A.jsxs)(`span`,{className:`hr-profile-list-card-main`,children:[(0,A.jsxs)(`span`,{className:`hr-profile-list-card-copy`,children:[(0,A.jsx)(`strong`,{children:n.name}),(0,A.jsx)(`small`,{children:n.detail})]}),(0,A.jsx)(`span`,{className:`workbench-status-cell ${n.statusTone}`,children:e.lifecycleLabels[n.lifecycle]})]}),(0,A.jsxs)(`span`,{className:`hr-profile-list-card-status`,children:[(0,A.jsx)(`small`,{children:n.moment}),(0,A.jsx)(`strong`,{children:n.nextStep})]})]})}function re(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=H(e,o,s),d=o.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))[0]??null,f=s.length>0,p=K(c),m=d?.status===`failed`?`risk`:f?`good`:`warn`,h=J(p);return{artifacts:s,detail:d?X(d):a.noSessionYet,evidenceTone:m,id:e.id,initials:Y(e.name),latestSession:d,lessons:l,lifecycle:u,moment:U(u,o,s,p,a),name:e.name,nextStep:W(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=+!!G(e),r=+!!G(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 H(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 U(e,t,n,r,i){if(t.some(e=>e.status===`failed`)||r===`fail`)return i.moments.riskReview;if(q(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 W(e,t,n,r,i){if(t.some(e=>e.status===`failed`)||r===`fail`)return i.nextSteps.resolveRisk;if(n.length>0&&!q(r))return i.nextSteps.requestReview;if(q(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 ie(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 G(e){return e.sessions.length===0||e.artifacts.length===0||e.latestSession?.status===`failed`||e.reviewTone!==`good`}function K(e){return e.slice().sort((e,t)=>t.createdAt.localeCompare(e.createdAt))[0]?.verdict??`none`}function q(e){return e===`pass`||e===`warn`}function J(e){return e===`pass`?`good`:e===`fail`?`risk`:`warn`}function ae(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 oe(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 Y(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 X(e){return e.capabilityTemplateId.replace(/-/g,` `)}function se(e,t){return t.actionLabels[e.id]??e.label}var Z=(0,k.lazy)(()=>g(()=>import(`./markdown-preview-DFe-rfff.js`).then(e=>e.t).then(e=>({default:e.MarkdownPreview})),[]));function ce({activeActions:e,artifact:t,artifactPreview:n,copy:r,engineReadiness:i,focusedProfile:a,labels:o,locale:s,onActionSelect:l,onContextChange:p,onOpenSession:h,onPromoteProfileRevision:g,onSubmitSession:_,onTemplateChange:y,profileRevisionSubmitting:T,reviewGuardrails:E,selectedTemplate:D,selectedWorkspace:O,submitting:k,templates:M,timeline:N,value:P}){let F=d(D,s),I=a?.sessions.slice().sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).slice(0,3)??[],L=!!(t&&n.artifactId===t.id);return(0,A.jsxs)(`aside`,{className:`hr-profile-tools-panel`,"aria-label":o.actionComposerTitle,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(f,{size:15}),title:o.actionComposerTitle,detail:a?o.actionComposerDetail(a.name):o.actionComposerEmpty}),(0,A.jsxs)(`div`,{className:`hr-profile-tools-scroll`,children:[a?(0,A.jsxs)(`div`,{className:`hr-action-profile-card`,children:[(0,A.jsx)(`span`,{className:`hr-profile-avatar large`,"aria-hidden":`true`,children:a.initials}),(0,A.jsxs)(`span`,{children:[(0,A.jsx)(`strong`,{children:a.name}),(0,A.jsx)(`small`,{children:`${o.lifecycleLabels[a.lifecycle]} · ${a.moment}`})]})]}):null,(0,A.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":o.sourcesTitle,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(u,{size:15}),title:o.sourcesTitle,detail:o.sourcesDetail}),(0,A.jsx)(`div`,{className:`hr-source-grid`,children:o.sourceCards(a?.artifacts.length??0,a?.sessions.length??0,a?.reviews.length??0).map(e=>(0,A.jsxs)(`div`,{className:`hr-source-row`,children:[(0,A.jsx)(`span`,{children:e.label}),(0,A.jsx)(`strong`,{children:e.count}),(0,A.jsx)(`small`,{children:e.detail})]},e.label))}),(0,A.jsxs)(`div`,{className:`hr-profile-timeline`,"aria-label":o.timelineTitle,children:[(0,A.jsx)(`strong`,{children:o.timelineTitle}),N.length>0?N.map(e=>(0,A.jsxs)(`div`,{className:`hr-timeline-row`,children:[(0,A.jsx)(`span`,{className:`hr-timeline-dot ${e.tone}`,"aria-hidden":`true`}),(0,A.jsxs)(`span`,{children:[(0,A.jsx)(`strong`,{children:e.label}),(0,A.jsx)(`small`,{children:e.detail})]})]},`${e.label}-${e.detail}`)):(0,A.jsx)(`span`,{className:`hr-muted-note`,children:o.noTimeline})]})]}),(0,A.jsxs)(`section`,{className:`hr-tool-section hr-artifact-preview-card`,"aria-label":o.artifactPreviewTitle,"data-testid":`hr-proposed-change`,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(S,{size:15}),title:o.artifactPreviewTitle,detail:t?m(t.updatedAt,s):o.artifactPreviewDetail}),t?(0,A.jsx)(`strong`,{className:`hr-artifact-preview-name`,children:t.title}):null,le({artifact:t,artifactPreview:n,empty:o.artifactPreviewEmpty,error:o.artifactPreviewError,loading:o.artifactPreviewLoading,previewMatchesArtifact:L}),(0,A.jsxs)(`div`,{className:`hr-proposed-change-actions`,children:[(0,A.jsx)(`span`,{className:`hr-muted-note`,children:o.promoteProfileRevisionHint}),(0,A.jsxs)(`button`,{type:`button`,className:`secondary hr-profile-promote-button`,disabled:!t||T,onClick:()=>void g(),children:[(0,A.jsx)(b,{"aria-hidden":`true`,size:14}),(0,A.jsx)(`span`,{children:T?o.approvingProfileRevision:o.approveProfileRevision})]})]})]}),(0,A.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":o.guardrailsTitle,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(C,{size:15}),title:o.guardrailsTitle,detail:o.guardrailsDetail}),(0,A.jsx)(`ul`,{className:`hr-guardrail-list`,children:E.map(e=>(0,A.jsx)(`li`,{children:e},e))})]}),(0,A.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":o.recentSessionsTitle,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(w,{size:15}),title:o.recentSessionsTitle,detail:o.recentSessionsDetail(I.length)}),(0,A.jsx)(`div`,{className:`hr-session-card-list`,children:I.length>0?I.map(e=>(0,A.jsxs)(`button`,{type:`button`,className:`hr-session-card`,"aria-label":o.openSession(e.title),onClick:()=>h(e),children:[(0,A.jsxs)(`span`,{children:[(0,A.jsx)(`strong`,{children:e.title}),(0,A.jsx)(`small`,{children:Q(e,M,s)})]}),(0,A.jsxs)(`span`,{className:`hr-session-card-meta`,children:[(0,A.jsx)(`em`,{children:c(e.status,s)}),(0,A.jsxs)(`small`,{children:[(0,A.jsx)(x,{"aria-hidden":`true`,size:12}),m(e.updatedAt,s)]})]})]},e.id)):(0,A.jsx)(`span`,{className:`hr-profile-section-empty`,children:o.noRecentSessions})})]}),(0,A.jsxs)(`section`,{className:`hr-tool-section`,"aria-label":o.suggestedToolsTitle,children:[(0,A.jsx)(j,{icon:(0,A.jsx)(f,{size:15}),title:o.suggestedToolsTitle,detail:o.proposalOnly}),(0,A.jsx)(`div`,{className:`hr-action-list`,children:e.map((e,t)=>(0,A.jsxs)(`button`,{type:`button`,className:`hr-action-row ${t===0?`suggested`:``}`,disabled:!O,onClick:()=>l(e),children:[(0,A.jsxs)(`span`,{children:[(0,A.jsx)(`strong`,{children:se(e,o)}),(0,A.jsx)(`small`,{children:o.actionMeta(e.scope,e.outputKind)})]}),t===0?(0,A.jsx)(`em`,{children:o.recommended}):(0,A.jsx)(v,{"aria-hidden":`true`,size:14})]},e.id))})]})]}),(0,A.jsxs)(`form`,{className:`hr-task-composer`,onSubmit:_,children:[(0,A.jsxs)(`div`,{className:`hr-composer-heading`,children:[(0,A.jsx)(`strong`,{children:o.proposalComposerTitle}),(0,A.jsx)(`small`,{children:O?o.proposalComposerDetail:o.selectProfileFirst})]}),(0,A.jsx)(`label`,{htmlFor:`hr-task-template`,children:o.artifactTargetLabel}),(0,A.jsx)(`select`,{id:`hr-task-template`,value:D.id,onChange:e=>y(e.target.value),children:M.map(e=>(0,A.jsx)(`option`,{value:e.id,children:d(e,s).name},e.id))}),(0,A.jsx)(`label`,{htmlFor:`hr-task-context`,children:o.contextLabel}),(0,A.jsx)(`textarea`,{id:`hr-task-context`,value:P,placeholder:o.contextPlaceholder,onChange:e=>p(e.target.value)}),i.ready?null:(0,A.jsx)(`div`,{className:`inline-warning`,role:`status`,children:i.detail}),(0,A.jsx)(`button`,{type:`submit`,className:`primary`,disabled:!O||!P.trim()||k||!i.ready,children:(0,A.jsx)(`span`,{children:k?r.workspace.createSession:o.generate(F.outputKind)})})]})]})}function Q(e,t,n){let r=t.find(t=>t.id===e.capabilityTemplateId);return r?d(r,n).name:e.capabilityTemplateId.replace(/-/g,` `)}function le({artifact:e,artifactPreview:t,empty:n,error:r,loading:i,previewMatchesArtifact:a}){return e?!a||t.loading?(0,A.jsx)(`div`,{className:`hr-artifact-preview-empty`,children:i}):t.error?(0,A.jsx)(`div`,{className:`hr-artifact-preview-empty`,role:`alert`,children:`${r} ${t.error}`}):(0,A.jsx)(k.Suspense,{fallback:(0,A.jsx)(`div`,{className:`hr-markdown-preview`,"data-testid":`hr-artifact-markdown-preview-loading`}),children:(0,A.jsx)(Z,{className:`hr-markdown-preview`,content:t.content,"data-testid":`hr-artifact-markdown-preview`,empty:(0,A.jsx)(`span`,{children:n})})}):(0,A.jsx)(`div`,{className:`hr-artifact-preview-empty`,children:n})}function ue({labels:e,onExpand:t}){let r=[{icon:u,label:e.openProfileSources},{icon:S,label:e.openProposedChange},{icon:C,label:e.openReviewGuardrails},{icon:w,label:e.openSessionTools}];return(0,A.jsx)(`aside`,{className:`hr-profile-tools-rail`,"aria-label":e.profileToolsRailLabel,children:r.map(({icon:e,label:r})=>(0,A.jsx)(n,{"aria-label":r,className:`hr-tools-rail-button`,title:r,onClick:t,children:(0,A.jsx)(e,{"aria-hidden":`true`,size:16})},r))})}var $={actionLabels:{},actionComposerEmpty:`Select a profile`,actionMeta:(e,t)=>`${e} / ${t}`,actionComposerDetail:e=>`Prepare the next reviewable profile action for ${e}.`,actionComposerTitle:`Profile Actions`,acceptedExternalSectionsTitle:`Accepted External Sections`,artifactPatches:`artifact proposals`,artifactPreviewDetail:`Latest reviewable change proposal rendered from the workspace file.`,artifactPreviewEmpty:`No proposed change yet.`,artifactPreviewError:`Proposed change preview is unavailable.`,artifactPreviewLoading:`Loading proposed change...`,artifactPreviewTitle:`Proposed Change`,artifactTargetLabel:`Artifact proposal target`,approveProfileRevision:`Approve Profile Revision`,approvingProfileRevision:`Approving Profile Revision`,baseSectionEmpty:`No accepted content in this section yet.`,collapseProfileTools:`Collapse Profile Tools`,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...`,currentProfileEmpty:`No accepted profile summary yet. Approve a proposed change to update README.md.`,currentProfileError:`Current profile summary is unavailable.`,currentProfileLoading:`Loading current profile summary...`,emptyProfileBody:`Create a profile workspace to start connecting evidence, next steps, review, and memory.`,emptyProfileTitle:`No people profiles yet`,evidenceConnectors:`Evidence connectors`,expandProfileTools:`Expand Profile Tools`,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`,identitySnapshotTitle:`Profile baseline`,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`,openProfileSources:`Open Profile Sources`,openProposedChange:`Open Proposed Change`,openReviewGuardrails:`Open Review Guardrails`,openProfile:e=>`Open ${e} profile`,openSessionTools:`Open Session Tools`,otherProfileNotesTitle:`Other Profile Notes`,profileDetailsDetail:e=>`${e} accepted README profile baseline.`,profileDetailsEmpty:`Select a people profile to inspect its accepted README profile baseline.`,profileDetailsTitle:`Current Profile Summary`,profileReadingRoomDetail:e=>`${e} accepted README profile baseline.`,profileReadingRoomFallback:`Showing the accepted README as written.`,profileBoardDetail:e=>`${e} visible profiles`,profileBoardLabel:`People Profiles`,profileBoardTitle:`People Profiles`,profileListDetail:e=>`${e} visible profiles`,profileListSearchLabel:`Search people profiles`,profileListSearchPlaceholder:`Search people...`,profileToolsRailLabel:`Collapsed Profile Tools`,recentSessionsDetail:e=>`${e} profile sessions`,recentSessionsTitle:`Recent Sessions`,proposalComposerDetail:`Agent output remains a reviewable proposal tied to this profile.`,proposalComposerTitle:`Proposal Composer`,promoteProfileRevisionHint:`Review accepts this proposal into README.md and records a git revision.`,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 Profile Actions`,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`},de={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)=>`${pe(e)} / ${t}`,actionComposerDetail:e=>`为 ${e} 准备下一步档案操作。`,actionComposerTitle:`档案操作`,acceptedExternalSectionsTitle:`已接受的外部章节`,artifactPatches:`产物提案`,artifactPreviewDetail:`从 workspace 文件渲染最近一份可 review 的档案变更提案。`,artifactPreviewEmpty:`还没有可预览的变更提案。`,artifactPreviewError:`变更提案预览暂不可用。`,artifactPreviewLoading:`正在加载变更提案...`,artifactPreviewTitle:`变更提案`,artifactTargetLabel:`产物提案目标`,approveProfileRevision:`批准档案修订`,approvingProfileRevision:`正在批准档案修订`,baseSectionEmpty:`这个章节还没有已接受内容。`,collapseProfileTools:`收起档案工具`,commandDetail:(e,t)=>`${e}:${t}。证据、下一步、review 和 memory 状态保持在同一个闭环里。`,contextLabel:`下一份人员提案上下文`,contextPlaceholder:`描述这个人、生命周期节点、证据、开放问题,或下一份 HR 产物目标...`,currentProfileEmpty:`还没有已接受的档案摘要。批准一份变更提案后会更新 README.md。`,currentProfileError:`当前档案摘要暂不可用。`,currentProfileLoading:`正在加载当前档案摘要...`,emptyProfileBody:`创建人员档案工作区后,再把证据、下一步、review 和 memory 串起来。`,emptyProfileTitle:`还没有人员档案`,evidenceConnectors:`证据连接器`,expandProfileTools:`展开档案工具`,generate:e=>`生成 ${e}`,guardrailsDetail:`先复核,再沉淀组织记忆`,guardrailsTitle:`Review 护栏`,headerFallback:`人员档案`,hideProfileList:`隐藏 Profile List`,hideProfileTools:`隐藏 Profile Tools`,humanDecisionTag:`人类决策`,identitySnapshotTitle:`档案基线`,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`,openProfileSources:`打开档案来源`,openProposedChange:`打开变更提案`,openReviewGuardrails:`打开 Review 护栏`,openProfile:e=>`打开 ${e} 档案`,openSessionTools:`打开 Session 工具`,otherProfileNotesTitle:`其他档案备注`,profileDetailsDetail:e=>`${e} 的已接受 README 档案基线。`,profileDetailsEmpty:`选择一个人员档案后查看已接受 README 档案基线。`,profileDetailsTitle:`当前档案摘要`,profileReadingRoomDetail:e=>`${e} 的已接受 README 档案基线。`,profileReadingRoomFallback:`按原始 README 展示已接受档案。`,profileBoardDetail:e=>`${e} 个可见档案`,profileBoardLabel:`人员档案`,profileBoardTitle:`人员档案`,profileListDetail:e=>`${e} 个可见档案`,profileListSearchLabel:`搜索人员档案`,profileListSearchPlaceholder:`搜索人员...`,profileToolsRailLabel:`已收起的档案工具`,recentSessionsDetail:e=>`${e} 个 profile session`,recentSessionsTitle:`Recent Sessions`,proposalComposerDetail:`Agent 输出只作为绑定此档案的可 review 提案。`,proposalComposerTitle:`产物提案`,promoteProfileRevisionHint:`Review 通过后会把这份提案写入 README.md,并记录 git 修订。`,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:`建议档案操作`,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 fe(e){return e===`zh-CN`?de:$}function pe(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 me({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,onPromoteProfileRevision:x,onRefresh:S,onSubmitSession:C,onTemplateChange:w,profilePreview:T,profileRevisionSubmitting:O,reviews:j,selectedArtifact:M,selectedTemplate:N,selectedWorkspace:P,shellHeader:F,sessions:I,soulCopy:L,submitting:R,templates:ee,value:z,workbench:B,workerName:V,workspaces:H}}){let U=fe(u),[W,G]=(0,k.useState)(``),[K,q]=(0,k.useState)(!0),[J,Y]=(0,k.useState)(!1),[X,se]=(0,k.useState)(()=>new Set([`employee`,`alumni`])),Z=(0,k.useMemo)(()=>re(H,I,t,j,c,U,u),[t,U,c,u,j,I,H]),Q=(0,k.useMemo)(()=>Z.filter(e=>he(e,W)),[W,Z]),le=(0,k.useMemo)(()=>ie(Q,U),[U,Q]),$=(P?Z.find(e=>e.id===P.id)??null:null)??Z[0]??null,de=u===`zh-CN`?U.reviewGuardrails:B.reviewChecklist.slice(0,4),pe=ae(B.actions,$),me=$?oe($,U,u):[],ge=e=>{se(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};async function _e(e){if((await F?.onAction(e))?.ok){if(e.slot===`primary`){g();return}if(e.slot===`drawer-toggle`){Y(e=>!e);return}e.slot===`settings`&&y()}}function ve(e){let t=F?.busyActionId===e.id,n=e.slot===`settings`?r:e.slot===`refresh`?_:e.slot===`drawer-toggle`?h:i;return(0,A.jsxs)(`button`,{"aria-busy":t,className:`shell-primary-action`,disabled:!!F?.busyActionId,title:`Provided by the Soul App protocol`,type:`button`,onClick:()=>void _e(e),children:[(0,A.jsx)(n,{"aria-hidden":`true`,size:14}),(0,A.jsx)(`span`,{children:e.label})]},e.id)}return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`header`,{className:`entry-header workspace-header hr-people-header`,children:[(0,A.jsxs)(`div`,{className:`hr-header-main`,children:[(0,A.jsx)(`span`,{className:`kicker`,children:`${L.name} / ${B.name}`}),(0,A.jsx)(`h1`,{children:U.workbenchTitle}),(0,A.jsx)(`p`,{children:$?U.commandDetail($.name,$.moment):`${V} ${U.headerFallback}`})]}),(0,A.jsxs)(`div`,{className:`entry-header-right hr-header-actions`,children:[F?.search??(0,A.jsxs)(`label`,{className:`hr-profile-search`,children:[(0,A.jsx)(l,{"aria-hidden":`true`,size:14}),(0,A.jsx)(`span`,{className:`sr-only`,children:U.profileListSearchLabel}),(0,A.jsx)(`input`,{value:W,placeholder:U.profileListSearchPlaceholder,onChange:e=>G(e.target.value)})]}),(0,A.jsx)(`div`,{className:`hr-header-metrics`,"aria-label":U.metricsLabel,children:U.metrics(Z.length,t.length,c.length).map(e=>(0,A.jsx)(`span`,{children:e},e))}),F?F.actionDescriptors.map(ve):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`button`,{type:`button`,className:`primary hr-header-command`,onClick:g,children:[(0,A.jsx)(i,{"aria-hidden":`true`,size:14}),(0,A.jsx)(`span`,{children:U.newProfile})]}),(0,A.jsxs)(`button`,{type:`button`,className:`ghost hr-header-command`,onClick:f,children:[(0,A.jsx)(h,{"aria-hidden":`true`,size:14}),(0,A.jsx)(`span`,{children:U.evidenceConnectors})]})]}),(0,A.jsxs)(`div`,{className:`hr-header-icon-group`,"aria-label":U.workbenchPanelControlsLabel,children:[(0,A.jsx)(n,{"aria-label":K?U.hideProfileList:U.showProfileList,"aria-pressed":K,onClick:()=>q(e=>!e),children:K?(0,A.jsx)(E,{"aria-hidden":`true`,size:16}):(0,A.jsx)(D,{"aria-hidden":`true`,size:16})}),(0,A.jsx)(n,{"aria-label":J?U.collapseProfileTools:U.expandProfileTools,"aria-pressed":J,onClick:()=>Y(e=>!e),children:J?(0,A.jsx)(p,{"aria-hidden":`true`,size:16}):(0,A.jsx)(a,{"aria-hidden":`true`,size:16})}),F?.actionSlots.has(`refresh`)?null:(0,A.jsx)(n,{"aria-label":o.accessibility.refreshWorkspace,onClick:S,children:(0,A.jsx)(_,{"aria-hidden":`true`,size:16})}),F?.actionSlots.has(`settings`)?null:(0,A.jsx)(n,{"aria-label":o.accessibility.openSettings,onClick:y,children:(0,A.jsx)(r,{"aria-hidden":`true`,size:16})})]})]})]}),F?.status,F?.results,(0,A.jsx)(`div`,{className:`entry-tab-content workspace-content hr-people-content`,"data-testid":`hr-people-workbench`,children:(0,A.jsxs)(`div`,{className:`hr-people-layout ${K?``:`without-profile-list`} ${J?``:`with-tools-rail`}`,children:[K?(0,A.jsx)(ne,{collapsedSectionIds:X,labels:U,sections:le,selectedWorkspaceId:P?.id??null,visibleCount:Q.length,onOpenWorkspace:b,onToggleSection:ge}):null,(0,A.jsx)(te,{focusedProfile:$,labels:U,profilePreview:T}),J?(0,A.jsx)(ce,{activeActions:pe,artifact:M,artifactPreview:e,copy:o,engineReadiness:s,focusedProfile:$,labels:U,locale:u,selectedTemplate:N,selectedWorkspace:P,submitting:R,templates:ee,value:z,onActionSelect:d,onContextChange:m,onOpenSession:v,onPromoteProfileRevision:x,onSubmitSession:C,onTemplateChange:w,profileRevisionSubmitting:O,reviewGuardrails:de,timeline:me}):(0,A.jsx)(ue,{labels:U,onExpand:()=>Y(!0)})]})})]})}function he(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{me as HrPeopleWorkbench};
|