@kaitranntt/ccs 8.7.0 → 8.8.1-dev.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/README.md +2 -1
- package/config/base-xai.settings.json +10 -0
- package/dist/api/services/index.d.ts +1 -1
- package/dist/api/services/index.d.ts.map +1 -1
- package/dist/api/services/index.js +2 -1
- package/dist/api/services/index.js.map +1 -1
- package/dist/api/services/profile-lifecycle-service.d.ts.map +1 -1
- package/dist/api/services/profile-lifecycle-service.js +22 -8
- package/dist/api/services/profile-lifecycle-service.js.map +1 -1
- package/dist/api/services/profile-writer.d.ts +3 -1
- package/dist/api/services/profile-writer.d.ts.map +1 -1
- package/dist/api/services/profile-writer.js +16 -4
- package/dist/api/services/profile-writer.js.map +1 -1
- package/dist/api/services/validation-service.d.ts +9 -1
- package/dist/api/services/validation-service.d.ts.map +1 -1
- package/dist/api/services/validation-service.js +21 -6
- package/dist/api/services/validation-service.js.map +1 -1
- package/dist/auth/account-context.d.ts.map +1 -1
- package/dist/auth/account-context.js +2 -1
- package/dist/auth/account-context.js.map +1 -1
- package/dist/auth/commands/create-command.d.ts.map +1 -1
- package/dist/auth/commands/create-command.js +10 -3
- package/dist/auth/commands/create-command.js.map +1 -1
- package/dist/auth/profile-detector.d.ts +4 -1
- package/dist/auth/profile-detector.d.ts.map +1 -1
- package/dist/auth/profile-detector.js +150 -44
- package/dist/auth/profile-detector.js.map +1 -1
- package/dist/cliproxy/accounts/types.d.ts.map +1 -1
- package/dist/cliproxy/accounts/types.js +1 -1
- package/dist/cliproxy/accounts/types.js.map +1 -1
- package/dist/cliproxy/auth/auth-types.d.ts +1 -0
- package/dist/cliproxy/auth/auth-types.d.ts.map +1 -1
- package/dist/cliproxy/auth/auth-types.js +8 -0
- package/dist/cliproxy/auth/auth-types.js.map +1 -1
- package/dist/cliproxy/auth/oauth-handler.d.ts +7 -1
- package/dist/cliproxy/auth/oauth-handler.d.ts.map +1 -1
- package/dist/cliproxy/auth/oauth-handler.js +3 -2
- package/dist/cliproxy/auth/oauth-handler.js.map +1 -1
- package/dist/cliproxy/auth/oauth-process.d.ts +5 -0
- package/dist/cliproxy/auth/oauth-process.d.ts.map +1 -1
- package/dist/cliproxy/auth/oauth-process.js +27 -8
- package/dist/cliproxy/auth/oauth-process.js.map +1 -1
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts +2 -2
- package/dist/cliproxy/auth/provider-refreshers/index.js +2 -2
- package/dist/cliproxy/binary/platform-detector.d.ts.map +1 -1
- package/dist/cliproxy/binary/platform-detector.js +9 -1
- package/dist/cliproxy/binary/platform-detector.js.map +1 -1
- package/dist/cliproxy/config/extended-context-config.d.ts.map +1 -1
- package/dist/cliproxy/config/extended-context-config.js +24 -5
- package/dist/cliproxy/config/extended-context-config.js.map +1 -1
- package/dist/cliproxy/config/generator.js +1 -1
- package/dist/cliproxy/model-catalog.d.ts.map +1 -1
- package/dist/cliproxy/model-catalog.js +118 -1
- package/dist/cliproxy/model-catalog.js.map +1 -1
- package/dist/cliproxy/provider-capabilities.d.ts +5 -0
- package/dist/cliproxy/provider-capabilities.d.ts.map +1 -1
- package/dist/cliproxy/provider-capabilities.js +44 -1
- package/dist/cliproxy/provider-capabilities.js.map +1 -1
- package/dist/cliproxy/services/catalog-cache.d.ts.map +1 -1
- package/dist/cliproxy/services/catalog-cache.js +6 -3
- package/dist/cliproxy/services/catalog-cache.js.map +1 -1
- package/dist/cliproxy/types/provider-types.d.ts +1 -1
- package/dist/cliproxy/types/provider-types.d.ts.map +1 -1
- package/dist/cliproxy/types/provider-types.js.map +1 -1
- package/dist/codex-auth/codex-profile-plugin-cache.d.ts +2 -0
- package/dist/codex-auth/codex-profile-plugin-cache.d.ts.map +1 -0
- package/dist/codex-auth/codex-profile-plugin-cache.js +204 -0
- package/dist/codex-auth/codex-profile-plugin-cache.js.map +1 -0
- package/dist/codex-auth/codex-profile-resources.d.ts.map +1 -1
- package/dist/codex-auth/codex-profile-resources.js +2 -0
- package/dist/codex-auth/codex-profile-resources.js.map +1 -1
- package/dist/commands/api-command/create-command.d.ts.map +1 -1
- package/dist/commands/api-command/create-command.js +16 -7
- package/dist/commands/api-command/create-command.js.map +1 -1
- package/dist/commands/bar/launch-descriptor.d.ts.map +1 -1
- package/dist/commands/bar/launch-descriptor.js +23 -1
- package/dist/commands/bar/launch-descriptor.js.map +1 -1
- package/dist/commands/cliproxy/variant-subcommand.d.ts +1 -0
- package/dist/commands/cliproxy/variant-subcommand.d.ts.map +1 -1
- package/dist/commands/cliproxy/variant-subcommand.js +15 -2
- package/dist/commands/cliproxy/variant-subcommand.js.map +1 -1
- package/dist/commands/command-catalog.d.ts +2 -0
- package/dist/commands/command-catalog.d.ts.map +1 -1
- package/dist/commands/command-catalog.js +7 -1
- package/dist/commands/command-catalog.js.map +1 -1
- package/dist/commands/completion-backend.d.ts.map +1 -1
- package/dist/commands/completion-backend.js +3 -1
- package/dist/commands/completion-backend.js.map +1 -1
- package/dist/config/loader/yaml-serializer.js +1 -1
- package/dist/config/loader/yaml-serializer.js.map +1 -1
- package/dist/config/reserved-names.d.ts +20 -1
- package/dist/config/reserved-names.d.ts.map +1 -1
- package/dist/config/reserved-names.js +26 -2
- package/dist/config/reserved-names.js.map +1 -1
- package/dist/dispatcher/pre-dispatch.d.ts.map +1 -1
- package/dist/dispatcher/pre-dispatch.js +3 -5
- package/dist/dispatcher/pre-dispatch.js.map +1 -1
- package/dist/shared/toml-object.d.ts +5 -0
- package/dist/shared/toml-object.d.ts.map +1 -1
- package/dist/shared/toml-object.js +111 -1
- package/dist/shared/toml-object.js.map +1 -1
- package/dist/ui/assets/{Trans-By7poS8F.js → Trans-BTOdiwQc.js} +1 -1
- package/dist/ui/assets/{accounts-CT4cNpXE.js → accounts-CVV5qf-s.js} +1 -1
- package/dist/ui/assets/{alert-dialog-D-4eNWT-.js → alert-dialog-dwnTAMrx.js} +1 -1
- package/dist/ui/assets/{api-BOsmB6JC.js → api-DMlBRB1d.js} +1 -1
- package/dist/ui/assets/{auth-section-BNu9bqxZ.js → auth-section-D-8VFxj-.js} +1 -1
- package/dist/ui/assets/{backups-section-QEZ5MeIb.js → backups-section-BMoPVfss.js} +1 -1
- package/dist/ui/assets/{channels-C8lOwrre.js → channels-01330zzz.js} +1 -1
- package/dist/ui/assets/{checkbox-DxCvOyao.js → checkbox-D90euwtT.js} +1 -1
- package/dist/ui/assets/{claude-extension-CvbfmbdL.js → claude-extension-YrcmNoqS.js} +1 -1
- package/dist/ui/assets/cliproxy-BKbuNYOB.js +4 -0
- package/dist/ui/assets/{cliproxy-ai-providers-jeMd_Enz.js → cliproxy-ai-providers-hIp8fhPI.js} +1 -1
- package/dist/ui/assets/{cliproxy-control-panel-Ylrw7Vt0.js → cliproxy-control-panel-DZULkDd2.js} +1 -1
- package/dist/ui/assets/codex-CPrRO-lX.js +34 -0
- package/dist/ui/assets/{confirm-dialog-BGbC3827.js → confirm-dialog-D3AQRal2.js} +1 -1
- package/dist/ui/assets/{copilot-DGVMqIvj.js → copilot-wVeMPslf.js} +1 -1
- package/dist/ui/assets/{cursor-D94mZoOn.js → cursor-CNtEFxNr.js} +1 -1
- package/dist/ui/assets/{droid-CijT6OtA.js → droid-Dux87vgL.js} +1 -1
- package/dist/ui/assets/{globalenv-section-Cro0fjBM.js → globalenv-section-DQaZlUu9.js} +1 -1
- package/dist/ui/assets/{health-DFG40_kD.js → health-gz6ld9tF.js} +1 -1
- package/dist/ui/assets/{index-Bf0--BiU.js → index-4qh8YPnm.js} +1 -1
- package/dist/ui/assets/{index-DLRoa85N.js → index-B4YzYZ3N.js} +1 -1
- package/dist/ui/assets/index-B80fcKqU.js +56 -0
- package/dist/ui/assets/{index-D77S3tlM.js → index-BqCWQTXC.js} +1 -1
- package/dist/ui/assets/{index-BfbJlKvM.js → index-Bv5KphSU.js} +1 -1
- package/dist/ui/assets/{index-Bf5DDwJP.js → index-D33IsBj2.js} +1 -1
- package/dist/ui/assets/{index-BTJNmedC.js → index-D4ZnFjI-.js} +1 -1
- package/dist/ui/assets/{logs-Bc1-UurC.js → logs-DIoXbk6b.js} +1 -1
- package/dist/ui/assets/{masked-input-uuW_Ngh8.js → masked-input-D6AHQpvJ.js} +1 -1
- package/dist/ui/assets/providers/xai.svg +4 -0
- package/dist/ui/assets/{proxy-status-widget-BFrQZqYz.js → proxy-status-widget-BgrDqD-_.js} +1 -1
- package/dist/ui/assets/{raw-json-settings-editor-panel-DEHwL2oY.js → raw-json-settings-editor-panel-kUoKhfLK.js} +1 -1
- package/dist/ui/assets/searchable-select-DO8VBumf.js +1 -0
- package/dist/ui/assets/{separator-BTcnUF3t.js → separator-BMAKvIfO.js} +1 -1
- package/dist/ui/assets/{shared-DWBCHrPI.js → shared-BMHgpQ9x.js} +1 -1
- package/dist/ui/assets/{table-DdMU9lLS.js → table-UWsBM0x-.js} +1 -1
- package/dist/ui/assets/{updates-DfYyQw34.js → updates-BMeAtdI6.js} +1 -1
- package/dist/ui/assets/{use-accounts-DnMcRpOC.js → use-accounts-r2G8nswz.js} +1 -1
- package/dist/ui/index.html +1 -1
- package/dist/web-server/model-pricing.d.ts.map +1 -1
- package/dist/web-server/model-pricing.js +15 -0
- package/dist/web-server/model-pricing.js.map +1 -1
- package/dist/web-server/routes/bar-pool-account-quota-adapter.d.ts +23 -0
- package/dist/web-server/routes/bar-pool-account-quota-adapter.d.ts.map +1 -0
- package/dist/web-server/routes/bar-pool-account-quota-adapter.js +156 -0
- package/dist/web-server/routes/bar-pool-account-quota-adapter.js.map +1 -0
- package/dist/web-server/routes/bar-routes.js +5 -6
- package/dist/web-server/routes/bar-routes.js.map +1 -1
- package/dist/web-server/routes/profile-routes.js +3 -3
- package/dist/web-server/routes/profile-routes.js.map +1 -1
- package/dist/web-server/routes/route-helpers.d.ts.map +1 -1
- package/dist/web-server/routes/route-helpers.js +27 -5
- package/dist/web-server/routes/route-helpers.js.map +1 -1
- package/dist/web-server/usage/aggregator.d.ts.map +1 -1
- package/dist/web-server/usage/aggregator.js +10 -7
- package/dist/web-server/usage/aggregator.js.map +1 -1
- package/dist/web-server/usage/native-quota-collector.d.ts.map +1 -1
- package/dist/web-server/usage/native-quota-collector.js +98 -71
- package/dist/web-server/usage/native-quota-collector.js.map +1 -1
- package/lib/hooks/websearch-transformer.cjs +3 -11
- package/package.json +1 -1
- package/scripts/run-test-bucket.js +1 -0
- package/dist/ui/assets/cliproxy-daECx_cg.js +0 -4
- package/dist/ui/assets/codex-7d3v_F3-.js +0 -30
- package/dist/ui/assets/index-K_KarWwQ.js +0 -56
- package/dist/ui/assets/searchable-select-pEfkrlZT.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./radix-ui-nu4wz29m.js";import{r as a}from"./react-vendor-Bjx91N7w.js";import{f as P,g as Q,e as $,c as w,h as B,I as G}from"./index-K_KarWwQ.js";import{aS as H,aw as L,n as V}from"./icons-DSLG1YsC.js";function S(o){return o.trim().toLowerCase()}function M(o,h){return`${o}-option-${h.replace(/[^a-z0-9_-]+/gi,"-")}`}function Z({value:o,onChange:h,options:f,groups:g,placeholder:j,searchPlaceholder:k,emptyText:E,disabled:F,className:q,triggerClassName:K,contentClassName:R}){const[l,T]=a.useState(!1),[y,A]=a.useState(""),[i,c]=a.useState(),m=a.useId(),I=a.useRef(null),N=a.useRef({}),O=a.useMemo(()=>f.find(e=>e.value===o),[f,o]),d=a.useMemo(()=>{const e=S(y);return e?f.filter(t=>[t.searchText,...t.keywords??[]].some(u=>S(u).includes(e))):f},[f,y]),z=a.useMemo(()=>{const e=new Map((g??[]).map(r=>[r.key,r])),t=d.filter(r=>!r.groupKey||!e.has(r.groupKey)),u=(g??[]).map(r=>({...r,options:d.filter(x=>x.groupKey===r.key)})).filter(r=>r.options.length>0);return t.length===0?u:[{key:"__default",options:t},...u]},[d,g]),s=a.useMemo(()=>d.filter(e=>!e.disabled),[d]),D=O?.triggerContent??O?.itemContent,v=e=>{T(e),e||(A(""),c(void 0))},b=()=>I.current?.focus();a.useEffect(()=>{if(l){if(s.length===0){c(void 0);return}c(e=>e&&s.some(t=>t.value===e)?e:s.find(t=>t.value===o)?.value??s[0]?.value)}},[s,l,o]),a.useEffect(()=>{!l||!i||N.current[i]?.scrollIntoView({block:"nearest"})},[i,l]);const p=e=>{if(s.length===0)return;if(e==="first"){c(s[0]?.value);return}if(e==="last"){c(s.at(-1)?.value);return}const t=s.findIndex(_=>_.value===i),u=e==="next"?-1:s.length,r=t>=0?t:u,x=e==="next"?Math.min(r+1,s.length-1):Math.max(r-1,0);c(s[x]?.value)},C=e=>{h(e),v(!1)},U=()=>{if(!i)return;const e=s.find(t=>t.value===i);e&&C(e.value)};return n.jsxs(P,{open:l,onOpenChange:v,children:[n.jsx(Q,{asChild:!0,children:n.jsxs($,{type:"button",variant:"outline","aria-expanded":l,"aria-controls":l?m:void 0,"aria-haspopup":"dialog",disabled:F,onKeyDown:e=>{if(e.key!=="ArrowDown"&&e.key!=="ArrowUp")return;e.preventDefault(),v(!0);const t=()=>{b(),p(e.key==="ArrowDown"?"first":"last")};if(typeof requestAnimationFrame=="function"){requestAnimationFrame(t);return}setTimeout(t,0)},className:w("w-full justify-between font-normal",q,K,!D&&"text-muted-foreground"),children:[n.jsx("div",{className:"min-w-0 flex-1 text-left",children:D??n.jsx("span",{children:j})}),n.jsx(H,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsxs(B,{align:"start",className:w("w-[var(--radix-popover-trigger-width)] p-0",R),onOpenAutoFocus:e=>{if(e.preventDefault(),typeof requestAnimationFrame=="function"){requestAnimationFrame(b);return}setTimeout(b,0)},children:[n.jsx("div",{className:"border-b p-2",children:n.jsxs("div",{className:"relative",children:[n.jsx(L,{className:"text-muted-foreground absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2"}),n.jsx(G,{ref:I,value:y,onChange:e=>A(e.target.value),role:"combobox","aria-label":k,"aria-autocomplete":"list","aria-expanded":l,"aria-controls":m,"aria-activedescendant":i?M(m,i):void 0,onKeyDown:e=>{if(e.key==="ArrowDown"){e.preventDefault(),p("next");return}if(e.key==="ArrowUp"){e.preventDefault(),p("previous");return}if(e.key==="Home"){e.preventDefault(),p("first");return}if(e.key==="End"){e.preventDefault(),p("last");return}if(e.key==="Enter"){e.preventDefault(),U();return}e.key==="Escape"&&(e.preventDefault(),v(!1))},placeholder:k,className:"pl-8"})]})}),n.jsx("div",{"data-slot":"searchable-select-scroll-container","data-testid":"searchable-select-scroll-container",className:"max-h-72 overflow-y-auto overscroll-contain",children:d.length===0?n.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:E}):n.jsx("div",{id:m,role:"listbox","aria-label":j,className:"p-1",children:z.map(e=>n.jsxs("div",{children:[e.label&&n.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:e.label}),e.options.map(t=>{const u=t.value===i,r=t.value===o;return n.jsxs("button",{id:M(m,t.value),type:"button",role:"option","aria-selected":r,disabled:t.disabled,tabIndex:-1,ref:x=>{N.current[t.value]=x},onMouseMove:()=>{t.disabled||c(t.value)},onFocus:()=>{t.disabled||c(t.value)},onClick:()=>C(t.value),className:w("hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none","focus-visible:ring-ring focus-visible:ring-1",u&&"bg-accent text-accent-foreground",r&&"bg-accent text-accent-foreground",t.disabled&&"pointer-events-none opacity-50"),children:[n.jsx("div",{className:"min-w-0 flex-1",children:t.itemContent}),r&&n.jsx(V,{className:"h-4 w-4 shrink-0"})]},t.value)})]},e.key))})})]})]})}export{Z as S};
|