@kaitranntt/ccs 7.53.0 → 7.54.0-dev.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.
Files changed (164) hide show
  1. package/README.md +61 -1
  2. package/config/base-codex.settings.json +4 -4
  3. package/dist/auth/profile-detector.d.ts.map +1 -1
  4. package/dist/auth/profile-detector.js +3 -1
  5. package/dist/auth/profile-detector.js.map +1 -1
  6. package/dist/ccs.d.ts +1 -1
  7. package/dist/ccs.d.ts.map +1 -1
  8. package/dist/ccs.js +1 -0
  9. package/dist/ccs.js.map +1 -1
  10. package/dist/cliproxy/binary/downloader.d.ts +1 -14
  11. package/dist/cliproxy/binary/downloader.d.ts.map +1 -1
  12. package/dist/cliproxy/binary/downloader.js +5 -43
  13. package/dist/cliproxy/binary/downloader.js.map +1 -1
  14. package/dist/cliproxy/codex-plan-compatibility.d.ts +10 -0
  15. package/dist/cliproxy/codex-plan-compatibility.d.ts.map +1 -0
  16. package/dist/cliproxy/codex-plan-compatibility.js +69 -0
  17. package/dist/cliproxy/codex-plan-compatibility.js.map +1 -0
  18. package/dist/cliproxy/config/thinking-config.d.ts.map +1 -1
  19. package/dist/cliproxy/config/thinking-config.js +9 -0
  20. package/dist/cliproxy/config/thinking-config.js.map +1 -1
  21. package/dist/cliproxy/executor/index.d.ts.map +1 -1
  22. package/dist/cliproxy/executor/index.js +8 -0
  23. package/dist/cliproxy/executor/index.js.map +1 -1
  24. package/dist/cliproxy/index.d.ts +1 -0
  25. package/dist/cliproxy/index.d.ts.map +1 -1
  26. package/dist/cliproxy/index.js +6 -2
  27. package/dist/cliproxy/index.js.map +1 -1
  28. package/dist/cliproxy/model-catalog.d.ts.map +1 -1
  29. package/dist/cliproxy/model-catalog.js +81 -12
  30. package/dist/cliproxy/model-catalog.js.map +1 -1
  31. package/dist/cliproxy/model-config.d.ts.map +1 -1
  32. package/dist/cliproxy/model-config.js +2 -2
  33. package/dist/cliproxy/model-config.js.map +1 -1
  34. package/dist/cliproxy/services/variant-settings.d.ts +3 -1
  35. package/dist/cliproxy/services/variant-settings.d.ts.map +1 -1
  36. package/dist/cliproxy/services/variant-settings.js +5 -2
  37. package/dist/cliproxy/services/variant-settings.js.map +1 -1
  38. package/dist/cliproxy/thinking-validator.js +20 -0
  39. package/dist/cliproxy/thinking-validator.js.map +1 -1
  40. package/dist/commands/config-command.d.ts.map +1 -1
  41. package/dist/commands/config-command.js +7 -0
  42. package/dist/commands/config-command.js.map +1 -1
  43. package/dist/commands/copilot-command.d.ts.map +1 -1
  44. package/dist/commands/copilot-command.js +19 -8
  45. package/dist/commands/copilot-command.js.map +1 -1
  46. package/dist/commands/env-command.d.ts.map +1 -1
  47. package/dist/commands/env-command.js +31 -76
  48. package/dist/commands/env-command.js.map +1 -1
  49. package/dist/commands/help-command.d.ts.map +1 -1
  50. package/dist/commands/help-command.js +10 -2
  51. package/dist/commands/help-command.js.map +1 -1
  52. package/dist/commands/persist-command.d.ts +4 -4
  53. package/dist/commands/persist-command.d.ts.map +1 -1
  54. package/dist/commands/persist-command.js +76 -83
  55. package/dist/commands/persist-command.js.map +1 -1
  56. package/dist/copilot/copilot-executor.d.ts.map +1 -1
  57. package/dist/copilot/copilot-executor.js +23 -14
  58. package/dist/copilot/copilot-executor.js.map +1 -1
  59. package/dist/copilot/copilot-model-normalizer.d.ts +30 -0
  60. package/dist/copilot/copilot-model-normalizer.d.ts.map +1 -0
  61. package/dist/copilot/copilot-model-normalizer.js +159 -0
  62. package/dist/copilot/copilot-model-normalizer.js.map +1 -0
  63. package/dist/copilot/copilot-models.d.ts.map +1 -1
  64. package/dist/copilot/copilot-models.js +0 -9
  65. package/dist/copilot/copilot-models.js.map +1 -1
  66. package/dist/copilot/index.d.ts +1 -0
  67. package/dist/copilot/index.d.ts.map +1 -1
  68. package/dist/copilot/index.js +9 -1
  69. package/dist/copilot/index.js.map +1 -1
  70. package/dist/cursor/cursor-anthropic-response.d.ts +6 -0
  71. package/dist/cursor/cursor-anthropic-response.d.ts.map +1 -0
  72. package/dist/cursor/cursor-anthropic-response.js +190 -0
  73. package/dist/cursor/cursor-anthropic-response.js.map +1 -0
  74. package/dist/cursor/cursor-anthropic-translator.d.ts +11 -0
  75. package/dist/cursor/cursor-anthropic-translator.d.ts.map +1 -0
  76. package/dist/cursor/cursor-anthropic-translator.js +167 -0
  77. package/dist/cursor/cursor-anthropic-translator.js.map +1 -0
  78. package/dist/cursor/cursor-anthropic-types.d.ts +46 -0
  79. package/dist/cursor/cursor-anthropic-types.d.ts.map +1 -0
  80. package/dist/cursor/cursor-anthropic-types.js +3 -0
  81. package/dist/cursor/cursor-anthropic-types.js.map +1 -0
  82. package/dist/cursor/cursor-daemon-entry.d.ts.map +1 -1
  83. package/dist/cursor/cursor-daemon-entry.js +53 -24
  84. package/dist/cursor/cursor-daemon-entry.js.map +1 -1
  85. package/dist/cursor/cursor-models.d.ts.map +1 -1
  86. package/dist/cursor/cursor-models.js +36 -2
  87. package/dist/cursor/cursor-models.js.map +1 -1
  88. package/dist/glmt/sse-parser.d.ts +2 -0
  89. package/dist/glmt/sse-parser.d.ts.map +1 -1
  90. package/dist/glmt/sse-parser.js +4 -0
  91. package/dist/glmt/sse-parser.js.map +1 -1
  92. package/dist/shared/claude-extension-hosts.d.ts +12 -0
  93. package/dist/shared/claude-extension-hosts.d.ts.map +1 -0
  94. package/dist/shared/claude-extension-hosts.js +33 -0
  95. package/dist/shared/claude-extension-hosts.js.map +1 -0
  96. package/dist/shared/claude-extension-setup.d.ts +30 -0
  97. package/dist/shared/claude-extension-setup.d.ts.map +1 -0
  98. package/dist/shared/claude-extension-setup.js +232 -0
  99. package/dist/shared/claude-extension-setup.js.map +1 -0
  100. package/dist/ui/assets/{accounts-BGeV6RYc.js → accounts-CZEg1_PX.js} +1 -1
  101. package/dist/ui/assets/{alert-dialog-BGgi27Hi.js → alert-dialog-DhwS38kc.js} +1 -1
  102. package/dist/ui/assets/{api-NqhAOtK1.js → api-sWNND4wP.js} +1 -1
  103. package/dist/ui/assets/{auth-section-B5dLDT5c.js → auth-section-nJIpOcnm.js} +1 -1
  104. package/dist/ui/assets/{backups-section-COPmsPIk.js → backups-section-D3A6hmrU.js} +1 -1
  105. package/dist/ui/assets/{checkbox-DYHfVVrN.js → checkbox-CZrxD1iS.js} +1 -1
  106. package/dist/ui/assets/claude-extension-BjInaILv.js +1 -0
  107. package/dist/ui/assets/{cliproxy-BSKey7Yk.js → cliproxy-BGiSCGkl.js} +2 -2
  108. package/dist/ui/assets/{cliproxy-control-panel-C-Yyhlim.js → cliproxy-control-panel-CKO2Sn9B.js} +1 -1
  109. package/dist/ui/assets/{confirm-dialog-B7Lzqyum.js → confirm-dialog-DTKxwrat.js} +1 -1
  110. package/dist/ui/assets/copilot-CuRngdBg.js +3 -0
  111. package/dist/ui/assets/{cursor-BH8co9su.js → cursor-Dxo0uIiU.js} +1 -1
  112. package/dist/ui/assets/{droid-C4lLcCII.js → droid-Cl8QsJJL.js} +1 -1
  113. package/dist/ui/assets/{globalenv-section-D0TAPAVS.js → globalenv-section-C3dxxoD9.js} +1 -1
  114. package/dist/ui/assets/{health-BzfCtqqG.js → health-BUifaDU7.js} +1 -1
  115. package/dist/ui/assets/icons-DrEfTmfX.js +1 -0
  116. package/dist/ui/assets/{index-DI8j_aYa.js → index-BOsbrhaa.js} +1 -1
  117. package/dist/ui/assets/index-Btf_ow2V.css +1 -0
  118. package/dist/ui/assets/{index-B3R5r7pg.js → index-CPdceT1C.js} +1 -1
  119. package/dist/ui/assets/index-CYo-E5rU.js +1 -0
  120. package/dist/ui/assets/index-Cw9Urr0S.js +47 -0
  121. package/dist/ui/assets/{index-BoCctuVm.js → index-xayyyR26.js} +1 -1
  122. package/dist/ui/assets/{proxy-status-widget-C3kt_0Qn.js → proxy-status-widget-D94htBPb.js} +1 -1
  123. package/dist/ui/assets/{separator-DJb9h9_B.js → separator-3fBbTn-V.js} +1 -1
  124. package/dist/ui/assets/{shared-CKcd4Q-6.js → shared-q_FNNbjD.js} +1 -1
  125. package/dist/ui/assets/{switch-BVx3z2gz.js → switch-5N8qBdBr.js} +1 -1
  126. package/dist/ui/assets/updates-CubQ54J0.js +1 -0
  127. package/dist/ui/index.html +3 -3
  128. package/dist/utils/fetch-proxy-setup.d.ts +13 -0
  129. package/dist/utils/fetch-proxy-setup.d.ts.map +1 -0
  130. package/dist/utils/fetch-proxy-setup.js +112 -0
  131. package/dist/utils/fetch-proxy-setup.js.map +1 -0
  132. package/dist/utils/proxy-env.d.ts +15 -0
  133. package/dist/utils/proxy-env.d.ts.map +1 -0
  134. package/dist/utils/proxy-env.js +126 -0
  135. package/dist/utils/proxy-env.js.map +1 -0
  136. package/dist/web-server/routes/claude-extension-routes.d.ts +3 -0
  137. package/dist/web-server/routes/claude-extension-routes.d.ts.map +1 -0
  138. package/dist/web-server/routes/claude-extension-routes.js +161 -0
  139. package/dist/web-server/routes/claude-extension-routes.js.map +1 -0
  140. package/dist/web-server/routes/copilot-routes.d.ts.map +1 -1
  141. package/dist/web-server/routes/copilot-routes.js +53 -45
  142. package/dist/web-server/routes/copilot-routes.js.map +1 -1
  143. package/dist/web-server/routes/copilot-settings-routes.d.ts.map +1 -1
  144. package/dist/web-server/routes/copilot-settings-routes.js +77 -36
  145. package/dist/web-server/routes/copilot-settings-routes.js.map +1 -1
  146. package/dist/web-server/routes/index.d.ts.map +1 -1
  147. package/dist/web-server/routes/index.js +2 -0
  148. package/dist/web-server/routes/index.js.map +1 -1
  149. package/dist/web-server/services/claude-extension-binding-service.d.ts +30 -0
  150. package/dist/web-server/services/claude-extension-binding-service.d.ts.map +1 -0
  151. package/dist/web-server/services/claude-extension-binding-service.js +240 -0
  152. package/dist/web-server/services/claude-extension-binding-service.js.map +1 -0
  153. package/dist/web-server/services/claude-extension-settings-service.d.ts +23 -0
  154. package/dist/web-server/services/claude-extension-settings-service.d.ts.map +1 -0
  155. package/dist/web-server/services/claude-extension-settings-service.js +493 -0
  156. package/dist/web-server/services/claude-extension-settings-service.js.map +1 -0
  157. package/package.json +2 -1
  158. package/scripts/completion/ccs.bash +11 -4
  159. package/dist/ui/assets/copilot-D-MitpPb.js +0 -3
  160. package/dist/ui/assets/icons-D2eEmpHv.js +0 -1
  161. package/dist/ui/assets/index-Br6LTYDi.js +0 -1
  162. package/dist/ui/assets/index-BusjPRWX.css +0 -1
  163. package/dist/ui/assets/index-C2HpWmQl.js +0 -47
  164. package/dist/ui/assets/updates-D-X3ZIXa.js +0 -1
@@ -1 +0,0 @@
1
- import{j as e}from"./radix-ui-BR1vy4kf.js";import{L as P,r as o}from"./react-vendor-CNOkPC89.js";import{a as p,B as y,c as k,d as x,x as E,bg as M,C as g,j,k as N,_ as w,b as v,n as b,bh as U,bi as z,I as B,bj as L}from"./index-C2HpWmQl.js";import{V as $,O as Q,aQ as V,u as q,E as G,D as J,a3 as Y,C as F,aR as H,aj as K}from"./icons-D2eEmpHv.js";import"./tanstack-e99Cjjy2.js";import"./notifications-B2HqRBj7.js";import"./utils-CzKF5WmX.js";import"./form-utils-Bcoyqxpq.js";import"./code-highlight-BRUf_pqB.js";const W={new:"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-900/50 dark:bg-blue-900/20 dark:text-blue-300",stable:"border-green-200 bg-green-50 text-green-700 dark:border-green-900/50 dark:bg-green-900/20 dark:text-green-300",planned:"border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/50 dark:bg-amber-900/20 dark:text-amber-300"};function X({status:s,className:a}){const{t}=p(),d={new:t("updates.statusNew"),stable:t("updates.statusStable"),planned:t("updates.statusPlanned")};return e.jsx(y,{variant:"outline",className:k("font-medium",W[s],a),children:d[s]})}const R="ccs:updates:notice-progress:v1";function Z(s){return s==="new"?"new":"seen"}function u(s,a){return a[s.id]??Z(s.status)}function A(s){return s!=="done"&&s!=="dismissed"}function ee(){if(typeof window>"u")return{};try{const s=window.localStorage.getItem(R);if(!s)return{};const a=JSON.parse(s);if(!a||typeof a!="object"||Array.isArray(a))return{};const t={};for(const[d,l]of Object.entries(a))typeof d=="string"&&(l==="new"||l==="seen"||l==="done"||l==="dismissed")&&(t[d]=l);return t}catch{return{}}}function se(s){typeof window>"u"||window.localStorage.setItem(R,JSON.stringify(s))}function D({state:s,className:a}){const{t}=p(),d={new:{label:t("updates.progressNeedsAction"),className:"border-amber-300/70 bg-amber-100/70 text-amber-800 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-300",showDot:!0},seen:{label:t("updates.progressInReview"),className:"border-blue-300/70 bg-blue-100/70 text-blue-800 dark:border-blue-500/40 dark:bg-blue-500/15 dark:text-blue-300"},done:{label:t("updates.progressDone"),className:"border-emerald-300/70 bg-emerald-100/70 text-emerald-800 dark:border-emerald-500/40 dark:bg-emerald-500/15 dark:text-emerald-300"},dismissed:{label:t("updates.progressDismissed"),className:"border-muted-foreground/20 bg-muted text-muted-foreground dark:border-muted-foreground/30"}}[s];return e.jsxs(y,{variant:"outline",className:k("gap-1.5 border text-[10px] font-medium",d.className,a),children:[d.showDot&&e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current"}),d.label]})}function ae({action:s}){const{t:a}=p();return e.jsxs("div",{className:"rounded-md border bg-muted/20 p-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 space-y-0.5",children:[e.jsx("p",{className:"text-sm font-medium",children:s.label}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.description})]}),s.type==="route"&&s.path&&e.jsx(x,{size:"sm",asChild:!0,children:e.jsxs(P,{to:s.path,children:[a("updates.open"),e.jsx($,{className:"h-3.5 w-3.5"})]})})]}),s.type==="command"&&s.command&&e.jsxs("div",{className:"mt-2 flex items-center gap-2 rounded-md border bg-background px-2 py-1.5",children:[e.jsx(Q,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx("code",{className:"min-w-0 flex-1 truncate text-[11px]",children:s.command}),e.jsx(E,{value:s.command})]})]})}function re({notice:s,progress:a,relatedEntries:t,onUpdateProgress:d}){const{t:l}=p();return s?e.jsxs("div",{className:"flex-1 min-w-0 bg-background grid grid-rows-[auto_minmax(0,1fr)] overflow-hidden",children:[e.jsxs("div",{className:"border-b bg-background px-4 py-3",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("h2",{className:"text-base font-semibold leading-tight",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.summary})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[a&&e.jsx(D,{state:a}),e.jsx(X,{status:s.status})]})]}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(V,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:l("updates.published",{date:M(s.publishedAt)})})]}),e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[e.jsxs(x,{size:"sm",onClick:()=>d("done"),children:[e.jsx(q,{className:"h-4 w-4"}),l("updates.markDone")]}),e.jsxs(x,{size:"sm",variant:"outline",onClick:()=>d("dismissed"),children:[e.jsx(G,{className:"h-4 w-4"}),l("updates.dismiss")]}),e.jsxs(x,{size:"sm",variant:"ghost",onClick:()=>d("new"),children:[e.jsx(J,{className:"h-4 w-4"}),l("updates.reopen")]})]})]}),e.jsx("div",{className:"min-h-0 p-4",children:e.jsxs("div",{className:"grid h-full gap-4 xl:grid-cols-[minmax(0,1.5fr)_minmax(320px,1fr)] overflow-hidden",children:[e.jsxs(g,{className:"h-full overflow-hidden",children:[e.jsxs(j,{className:"pb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Y,{className:"h-4 w-4 text-primary"}),e.jsx(N,{className:"text-base",children:l("updates.doNext")})]}),e.jsx(w,{children:s.primaryAction})]}),e.jsx(v,{className:"min-h-0",children:e.jsx(b,{className:"h-full pr-2",children:e.jsx("div",{className:"space-y-3",children:s.actions.map(n=>e.jsx(ae,{action:n},`${s.id}-${n.id}`))})})})]}),e.jsxs("div",{className:"grid h-full grid-rows-[minmax(0,1fr)_minmax(0,1fr)] gap-4 overflow-hidden",children:[e.jsxs(g,{className:"overflow-hidden",children:[e.jsxs(j,{className:"pb-3",children:[e.jsx(N,{className:"text-base",children:l("updates.impactedIntegrations")}),e.jsx(w,{children:l("updates.impactedDesc")})]}),e.jsx(v,{className:"min-h-0",children:e.jsx(b,{className:"h-full pr-2",children:e.jsx("div",{className:"space-y-2",children:t.map(n=>e.jsxs("div",{className:"rounded-md border bg-muted/20 p-2.5",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("p",{className:"min-w-0 truncate text-sm font-medium",children:n.name}),e.jsx(y,{variant:"outline",className:"h-5 px-1.5 text-[10px]",children:U[n.scope]})]}),e.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[n.routes[0]&&e.jsx(x,{size:"sm",variant:"outline",asChild:!0,children:e.jsx(P,{to:n.routes[0].path,children:n.routes[0].label})}),n.commands[0]&&e.jsxs("div",{className:"ml-auto flex min-w-0 items-center gap-1.5",children:[e.jsx("code",{className:"truncate rounded bg-background px-1.5 py-0.5 text-[11px]",children:n.commands[0]}),e.jsx(E,{value:n.commands[0]})]})]})]},n.id))})})})]}),e.jsxs(g,{className:"overflow-hidden",children:[e.jsxs(j,{className:"pb-3",children:[e.jsx(N,{className:"text-base",children:l("updates.whyMatters")}),e.jsx(w,{children:l("updates.whyMattersDesc")})]}),e.jsx(v,{className:"min-h-0",children:e.jsx(b,{className:"h-full pr-2",children:e.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:s.highlights.map(n=>e.jsxs("li",{children:["- ",n]},`${s.id}-${n}`))})})})]})]})]})})]}):e.jsx("div",{className:"flex h-full items-center justify-center rounded-lg border border-dashed bg-muted/20 p-6",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:l("updates.noUpdates")})})}function te({notice:s,progress:a,selected:t,onSelect:d}){return e.jsxs("button",{type:"button",onClick:d,className:k("w-full rounded-lg border px-3 py-3 text-left transition-colors",t?"border-primary/30 bg-primary/10":"border-transparent bg-background/40 hover:border-border hover:bg-muted/70"),children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:s.title}),e.jsx("p",{className:"line-clamp-2 text-xs text-muted-foreground",children:s.primaryAction})]}),e.jsx(F,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground"})]}),e.jsxs("div",{className:"mt-2 flex items-center justify-between gap-2",children:[e.jsx("span",{className:"text-[11px] text-muted-foreground",children:M(s.publishedAt)}),e.jsx(D,{state:a})]})]})}function de(s,a){return a?[s.title,s.summary,s.primaryAction,...s.highlights,...s.commands,...s.actions.map(d=>`${d.label} ${d.description} ${d.command||""}`),...s.routes.map(d=>d.label)].join(" ").toLowerCase().includes(a):!0}function be(){const{t:s}=p(),a=o.useMemo(()=>[...z].sort((r,i)=>i.publishedAt.localeCompare(r.publishedAt)),[]),[t,d]=o.useState("inbox"),[l,n]=o.useState(""),[c,C]=o.useState(()=>ee()),[S,I]=o.useState(null);o.useEffect(()=>{se(c)},[c]);const h=o.useMemo(()=>{const r=l.trim().toLowerCase();return a.filter(i=>{const f=u(i,c);return de(i,r)?t==="done"?f==="done":t==="inbox"?A(f):!0:!1})},[a,c,l,t]),m=o.useMemo(()=>{const r=t==="all"?a:h;return r.find(i=>i.id===S)??r[0]??null},[a,S,t,h]),O=r=>{I(r.id),C(i=>u(r,i)!=="new"?i:{...i,[r.id]:"seen"})},T=o.useMemo(()=>a.filter(r=>A(u(r,c))).length,[a,c]),_=o.useMemo(()=>a.filter(r=>u(r,c)==="done").length,[a,c]);return e.jsxs("div",{className:"h-[calc(100vh-100px)] flex overflow-hidden",children:[e.jsxs("div",{className:"w-80 border-r bg-muted/30 flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"p-4 border-b bg-background space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(H,{className:"h-5 w-5 text-primary"}),e.jsx("h1",{className:"font-semibold",children:s("updates.inboxTitle")})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("updates.inboxSubtitle")})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[e.jsxs("div",{className:"rounded-md border bg-background px-2 py-1.5",children:[e.jsx("p",{className:"text-muted-foreground",children:s("updates.needsAction")}),e.jsx("p",{className:"text-base font-semibold",children:T})]}),e.jsxs("div",{className:"rounded-md border bg-background px-2 py-1.5",children:[e.jsx("p",{className:"text-muted-foreground",children:s("updates.doneCount")}),e.jsx("p",{className:"text-base font-semibold",children:_})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(K,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(B,{value:l,onChange:r=>n(r.target.value),placeholder:s("updates.searchPlaceholder"),className:"h-9 pl-8"})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:[{id:"inbox",label:s("updates.actionRequired")},{id:"done",label:s("updates.done")},{id:"all",label:s("updates.all")}].map(r=>e.jsx(x,{size:"sm",variant:t===r.id?"default":"outline",onClick:()=>d(r.id),children:r.label},r.id))})]}),e.jsx(b,{className:"flex-1",children:e.jsx("div",{className:"space-y-2 p-2",children:h.length===0?e.jsx("div",{className:"rounded-md border border-dashed p-3 text-xs text-muted-foreground",children:s("updates.noNotices")}):h.map(r=>e.jsx(te,{notice:r,progress:u(r,c),selected:m?.id===r.id,onSelect:()=>O(r)},r.id))})})]}),e.jsx(re,{notice:m,progress:m?u(m,c):null,relatedEntries:m?L(m):[],onUpdateProgress:r=>{m&&C(i=>({...i,[m.id]:r}))}})]})}export{be as UpdatesPage};