sliccy 6.44.0 → 6.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/assets/account-store-BgT4oxzX.js +68 -0
- package/dist/ui/assets/{account-store-BfqIrMMe.js → account-store-COSWL3AZ.js} +1 -1
- package/dist/ui/assets/{adobe-C6T_0i0A.js → adobe-BbYP8Pkn.js} +1 -1
- package/dist/ui/assets/adobe-CAM1ZKrf.js +2 -0
- package/dist/ui/assets/agent-message-to-chat-BuL6bt3T.js +1 -0
- package/dist/ui/assets/{anthropic-messages-CTRXVqwn.js → anthropic-messages-DzEs7DmW.js} +3 -3
- package/dist/ui/assets/{apply-layout-DPvksNi2.js → apply-layout-5mGF2ZK4.js} +1 -1
- package/dist/ui/assets/{apps-3MvdDBMc.js → apps-EyqKxwGY.js} +1 -1
- package/dist/ui/assets/azure-openai-DNWCbmA4.js +1 -0
- package/dist/ui/assets/{azure-openai-ChaObvN0.js → azure-openai-DWp2V-0F.js} +1 -1
- package/dist/ui/assets/azure-openai-responses-qqQXNCHy.js +1 -0
- package/dist/ui/assets/bedrock-camp-C8bCNVSq.js +2 -0
- package/dist/ui/assets/cerebras-B-Oj6imC.js +1 -0
- package/dist/ui/assets/{cerebras-M2wuTTRu.js → cerebras-BxAx0a41.js} +1 -1
- package/dist/ui/assets/{composer-speech-DjrdK6qX.js → composer-speech-BWgwwSEK.js} +1 -1
- package/dist/ui/assets/{connect-surface-C1kBb_wz.js → connect-surface-CmfN_SEm.js} +1 -1
- package/dist/ui/assets/{ensure-speech-assets-DO-sSGi6.js → ensure-speech-assets-PTDD7H7F.js} +1 -1
- package/dist/ui/assets/{fs-CEdcSaaF.js → fs-dzJacoXN.js} +2 -2
- package/dist/ui/assets/{fs-CwhZvLDc.js → fs-h8lgoveI.js} +1 -1
- package/dist/ui/assets/{github-h8ItWdXm.js → github-BuqGRDL4.js} +1 -1
- package/dist/ui/assets/{github-copilot-DzYB2zAw.js → github-copilot-CUadb3O1.js} +1 -1
- package/dist/ui/assets/github-copilot-CtxWCkg7.js +2 -0
- package/dist/ui/assets/{github-install-DIeJprV5.js → github-install-BrR8Gop4.js} +1 -1
- package/dist/ui/assets/{github-xXbjvj_q.js → github-lm_idBlY.js} +2 -2
- package/dist/ui/assets/{github-zip-DSYHJoT0.js → github-zip-DUMrdi6a.js} +1 -1
- package/dist/ui/assets/google-generative-ai-C9Is_VVN.js +1 -0
- package/dist/ui/assets/{google-shared-CjO3-4_Q.js → google-shared-Cde0njMr.js} +1 -1
- package/dist/ui/assets/google-vertex-DzrD0kHC.js +1 -0
- package/dist/ui/assets/{hear-CorI8zW2.js → hear-B9-zPLZr.js} +1 -1
- package/dist/ui/assets/{hear-DyYjYZXw.js → hear-BGYMcw85.js} +1 -1
- package/dist/ui/assets/{kernel-worker-BksrbsiK.js → kernel-worker-BfJlqBvg.js} +432 -430
- package/dist/ui/assets/kokoro-engine-DW_lDc5n.js +2 -0
- package/dist/ui/assets/legacy-api-aliases-C2CCsk4u.js +1 -0
- package/dist/ui/assets/{local-llm-Bi8giqeq.js → local-llm-C3Xh7lkK.js} +1 -1
- package/dist/ui/assets/{local-llm-B1inFenw.js → local-llm-SfqTUzqI.js} +1 -1
- package/dist/ui/assets/{main-BgdEVXnN.js → main-Ba6Lejzr.js} +3 -3
- package/dist/ui/assets/{mistral-conversations-DWRsBsfa.js → mistral-conversations-BKWQGrhA.js} +2 -2
- package/dist/ui/assets/{mount-DsBbQvRx.js → mount-Dcy_8vhn.js} +2 -2
- package/dist/ui/assets/{mount-BhXjPSMe.js → mount-Ir90pTiM.js} +1 -1
- package/dist/ui/assets/{mount-recovery-DapDhhBv.js → mount-recovery-BQH7W1aN.js} +1 -1
- package/dist/ui/assets/new-session-DzSjr9sl.js +2 -0
- package/dist/ui/assets/oauth-bootstrap-D3vRoN2k.js +2 -0
- package/dist/ui/assets/{openai-codex-_wi2GlfO.js → openai-codex-_8LKMJmx.js} +1 -1
- package/dist/ui/assets/openai-codex-dw7bPIN5.js +1 -0
- package/dist/ui/assets/openai-codex-responses-CeLTmOkk.js +7 -0
- package/dist/ui/assets/openai-completions-q2lvopuz.js +5 -0
- package/dist/ui/assets/openai-responses-Cpj4YO2E.js +1 -0
- package/dist/ui/assets/{openai-responses-shared-BrIGUa2e.js → openai-responses-shared-iNFeCdoC.js} +5 -5
- package/dist/ui/assets/{openrouter-DF11pL27.js → openrouter-CMKKLqQ1.js} +1 -1
- package/dist/ui/assets/openrouter-do50tpeH.js +1 -0
- package/dist/ui/assets/{openrouter-oauth-6UZDhQTB.js → openrouter-oauth-COFSZp9l.js} +1 -1
- package/dist/ui/assets/{openrouter-oauth-DQLx11_A.js → openrouter-oauth-CS8VKtxU.js} +1 -1
- package/dist/ui/assets/{panel-rpc-handlers-CDZ2M3GK.js → panel-rpc-handlers-Dqy_eTf3.js} +2 -2
- package/dist/ui/assets/preview-vfs-responder-CluNpFQR.js +1 -0
- package/dist/ui/assets/{provider-Bw_Z5wgp.js → provider-C88aDJ0w.js} +1 -1
- package/dist/ui/assets/{provider-Cg9DqCH6.js → provider-CasU9ASb.js} +2 -2
- package/dist/ui/assets/{provider-settings-0ASsdEo7.js → provider-settings-D9LNV21x.js} +1 -1
- package/dist/ui/assets/{provider-settings-CqsZtmc2.js → provider-settings-HB3iw4Ul.js} +1 -1
- package/dist/ui/assets/provider-store-access-CeLm8PkV.js +1 -0
- package/dist/ui/assets/{provider-store-access-BJPtEdx_.js → provider-store-access-eLCrRhpm.js} +2 -2
- package/dist/ui/assets/providers-CMd3ScJD.js +2 -0
- package/dist/ui/assets/{providers-DTkQsdaJ.js → providers-DNz9rfjF.js} +1 -1
- package/dist/ui/assets/quick-llm-CYCLV-ip.js +1 -0
- package/dist/ui/assets/{recovery-screen-vCthBaZL.js → recovery-screen-6YmbbZF9.js} +1 -1
- package/dist/ui/assets/{redirect-uri-pK4MGnYj.js → redirect-uri-BhNKYUXS.js} +1 -1
- package/dist/ui/assets/{session-freezer-CWeTl5Ug.js → session-freezer-DlOcCz6k.js} +18 -16
- package/dist/ui/assets/{setup-feature-flags-remote-DCnULnlG.js → setup-feature-flags-remote-BLUHhivw.js} +1 -1
- package/dist/ui/assets/{setup-standalone-prelude-CFakSgWH.js → setup-standalone-prelude-ClqELhIF.js} +1 -1
- package/dist/ui/assets/setup-sudo-C4b-3rUh.js +2 -0
- package/dist/ui/assets/{skills-BAv4QH3_.js → skills-DxW4UdPm.js} +1 -1
- package/dist/ui/assets/{speak-3ERYo9mh.js → speak-BP6s3kzt.js} +1 -1
- package/dist/ui/assets/speak-BR-XEaAe.js +3 -0
- package/dist/ui/assets/{store-VHFEG-KZ.js → store--0fpE_ZZ.js} +1 -1
- package/dist/ui/assets/{store-DmIA09wr.js → store-2ks_z1zz.js} +1 -1
- package/dist/ui/assets/{sudo-DMWEEnXF.js → sudo-DzMk01S0.js} +1 -1
- package/dist/ui/assets/{models-BSkXF4T6.js → transform-messages-N_eMsP2M.js} +1 -1
- package/dist/ui/assets/transformers-env-CvfifvRm.js +1 -0
- package/dist/ui/assets/transformers-env-h1XwWBUK.js +1 -0
- package/dist/ui/assets/{upgrade-detection-kOnlsa6m.js → upgrade-detection-hElk064d.js} +1 -1
- package/dist/ui/assets/{voice-reply-DuabCBM2.js → voice-reply-2AqNvqhZ.js} +1 -1
- package/dist/ui/assets/{wc-extension-Csg9tKxf.js → wc-extension-CXbjz6DF.js} +2 -2
- package/dist/ui/assets/wc-follower-CMmK1H5V.js +17 -0
- package/dist/ui/assets/{wc-live-DiqRwfJl.js → wc-live-CUse02DJ.js} +4 -4
- package/dist/ui/assets/wc-nav-CeJYfOlm.js +2 -0
- package/dist/ui/assets/{wc-onboarding-BSs6x2FR.js → wc-onboarding-CQF69M_E.js} +2 -2
- package/dist/ui/assets/wc-placeholder-Bs3ks0_u.js +4 -0
- package/dist/ui/assets/{wc-settings-CzWoxwvc.js → wc-settings-CTN5V7l1.js} +2 -2
- package/dist/ui/assets/wc-shell-z95OYC-X.js +117 -0
- package/dist/ui/assets/{wc-sprinkles-CCAwa0Z7.js → wc-sprinkles-COPNQIIl.js} +2 -2
- package/dist/ui/assets/wc-tray-DLhhUDvh.js +2 -0
- package/dist/ui/assets/{whisper-engine-DKSa8auO.js → whisper-engine-yUbflZgR.js} +1 -1
- package/dist/ui/assets/{whisper-session-CnbZ_WW2.js → whisper-session-CvoLVx5i.js} +2 -2
- package/dist/ui/assets/{xai-grok-DgvHKcEu.js → xai-grok-DlH7Hb4P.js} +1 -1
- package/dist/ui/assets/xai-grok-Dm1hjMEq.js +1 -0
- package/dist/ui/index.html +8 -11
- package/dist/ui/packages/webapp/index.html +8 -11
- package/dist/ui/preview-sw.js +1 -1
- package/package.json +1 -1
- package/dist/ui/assets/account-store-BkG4BDQC.js +0 -42
- package/dist/ui/assets/adobe-AHM3MRvp.js +0 -2
- package/dist/ui/assets/azure-openai-DauBJZ6w.js +0 -1
- package/dist/ui/assets/azure-openai-responses-DhklLm0Z.js +0 -1
- package/dist/ui/assets/bedrock-camp-DMGplF70.js +0 -1
- package/dist/ui/assets/cerebras-B1M_Nhi8.js +0 -1
- package/dist/ui/assets/compat-C0CyHyoL.js +0 -2
- package/dist/ui/assets/context-compaction-MXRS4Kb2.js +0 -27
- package/dist/ui/assets/github-copilot-q5qtLl1S.js +0 -2
- package/dist/ui/assets/google-generative-ai-DEcgNsJh.js +0 -1
- package/dist/ui/assets/google-vertex-CTrzlewG.js +0 -1
- package/dist/ui/assets/kokoro-engine-u_9YkV7P.js +0 -2
- package/dist/ui/assets/legacy-api-aliases-C0CAIWhd.js +0 -1
- package/dist/ui/assets/new-session-D0GziV3t.js +0 -2
- package/dist/ui/assets/oauth-bootstrap-exJhjKek.js +0 -2
- package/dist/ui/assets/openai-codex-B5d5fatr.js +0 -1
- package/dist/ui/assets/openai-codex-responses-BYAXyTDg.js +0 -7
- package/dist/ui/assets/openai-completions-DAIm60Lb.js +0 -5
- package/dist/ui/assets/openai-responses-01Q5Zv3q.js +0 -1
- package/dist/ui/assets/openrouter-PxN34b-T.js +0 -1
- package/dist/ui/assets/preview-vfs-responder-Dhck1Brc.js +0 -1
- package/dist/ui/assets/provider-store-access-Zeas5UVO.js +0 -1
- package/dist/ui/assets/providers-D2SzyuS_.js +0 -2
- package/dist/ui/assets/quick-llm-B1IKnoro.js +0 -1
- package/dist/ui/assets/setup-sudo-DLsSOUDP.js +0 -2
- package/dist/ui/assets/speak-BJfvdDl7.js +0 -3
- package/dist/ui/assets/transform-messages-XkZ1QnTb.js +0 -1
- package/dist/ui/assets/transformers-env-B2igCBi6.js +0 -1
- package/dist/ui/assets/transformers-env-DU9KkwRf.js +0 -1
- package/dist/ui/assets/wc-follower-C5ErFyaa.js +0 -17
- package/dist/ui/assets/wc-nav-_JOvFwfI.js +0 -2
- package/dist/ui/assets/wc-placeholder-UxILszwu.js +0 -4
- package/dist/ui/assets/wc-shell-FLfdSQyK.js +0 -117
- package/dist/ui/assets/wc-tray-DV5jBUwL.js +0 -2
- package/dist/ui/assets/xai-grok-BANdowXb.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e,z as t}from"./account-store-BkG4BDQC.js";import{a as n}from"./diagnostics-DN_idNHx.js";import{a as r,r as i}from"./compat-C0CyHyoL.js";import{c as a,i as o,r as s,s as c}from"./legacy-api-aliases-C0CAIWhd.js";import"./provider-settings-CqsZtmc2.js";import{n as l,r as u,t as d}from"./pkce-hGf_TEnP.js";import{XaiErrorCode as f,XaiOAuthError as p}from"./xai-grok-errors-bnlIBeu-.js";var m=`xai-grok`,h=`https://auth.x.ai`,g=`${h}/oauth2/authorize`,_=`${h}/oauth2/token`,v=`b1a00492-073a-47ea-816f-4c329264a828`,y=`openid profile email offline_access grok-cli:access api:access`,b=`http://127.0.0.1:56121/callback`,x=`http://127.0.0.1:56121/*`,S=`https://api.x.ai/v1`,C=`grok-4.5`,w=`${m}-openai`;function T(){return i(`xai`)}function E(e){return{id:e.id,name:e.name,api:`openai`,reasoning:e.reasoning,input:e.input,context_window:e.contextWindow,max_tokens:e.maxTokens,compat:e.compat,thinkingLevelMap:e.thinkingLevelMap}}function D(e){let t=T(),n=t.find(t=>t.id===e.id);if(!n&&(console.warn(`xAI model "${e.id}" is no longer in the pi-ai catalog; falling back to default "${C}"`),n=t.find(e=>e.id===C),!n))throw Error(`xAI default model "${C}" is not registered by pi-ai`);if(n.api!==`openai-responses`&&n.api!==`openai-completions`)throw Error(`Unsupported pi-ai API "${n.api}" for xAI model "${e.id}"`);return{...e,...n,baseUrl:S}}async function O(e,t){let n=new URLSearchParams({grant_type:`authorization_code`,code:e,redirect_uri:b,client_id:v,code_verifier:t}),r=await fetch(_,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:n});if(!r.ok)throw new p(`xAI token exchange failed: ${r.status} ${await r.text()}`,f.TOKEN_EXCHANGE_FAILED);let i=await r.json();if(!i.access_token)throw new p(`xAI token exchange did not return access_token.`,f.TOKEN_EXCHANGE_INVALID);return i}async function k(e){try{let t=new URLSearchParams({grant_type:`refresh_token`,refresh_token:e,client_id:v}),n=await fetch(_,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:t});return n.ok?await n.json():(console.error(`[xai-grok] refresh failed:`,n.status,await n.text()),null)}catch(e){return console.error(`[xai-grok] refresh error:`,e instanceof Error?e.message:String(e)),null}}function A(){return e().find(e=>e.providerId===m)}async function j(){let e=A();if(!e?.accessToken)throw new p("Not signed in to xAI Grok — run /login or `oauth-token xai-grok`",f.AUTH_MISSING,!0);let n=e.tokenExpiresAt??0;if(n&&Date.now()+6e4<n)return e.accessToken;if(e.refreshToken){let n=await k(e.refreshToken);if(n?.access_token)return await t({providerId:m,accessToken:n.access_token,refreshToken:n.refresh_token??e.refreshToken,tokenExpiresAt:Date.now()+(n.expires_in??21600)*1e3,scopes:n.scope??e.scopes}),n.access_token}return e.accessToken}function M(e,t){return{type:`error`,reason:`error`,error:{role:`assistant`,content:[],api:w,provider:m,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:`error`,errorMessage:t instanceof Error?t.message:String(t),timestamp:Date.now()}}}function N(e,t){return t?{...e??{},"x-grok-conv-id":t}:e}var P=(e,t,r={})=>{let i=n();return(async()=>{try{let n=await j(),a=r.sessionId,c=D(e),l={...r,apiKey:n,headers:N(r.headers,a)},u=c.api===`openai-responses`?o(c,t,l):s(c,t,l);for await(let e of u)i.push(e);i.end()}catch(t){console.error(`[xai-grok] Stream error:`,t instanceof Error?t.message:String(t)),i.push(M(e,t)),i.end()}})(),i},F=(e,t,r)=>{let i=n();return(async()=>{try{let n=await j(),o=r?.sessionId,s=D(e),l={...r,apiKey:n,headers:N(r?.headers,o)},u=s.api===`openai-responses`?a(s,t,l):c(s,t,l);for await(let e of u)i.push(e);i.end()}catch(t){console.error(`[xai-grok] Stream error:`,t instanceof Error?t.message:String(t)),i.push(M(e,t)),i.end()}})(),i},I={id:m,name:`xAI Grok (SuperGrok OAuth)`,description:`Grok via xAI OAuth — uses your SuperGrok subscription, no API key needed. Default model is Grok 4.5.`,requiresApiKey:!1,requiresBaseUrl:!1,isOAuth:!0,defaultModelId:C,oauthTokenDomains:[`api.x.ai`,`*.x.ai`,`auth.x.ai`,`accounts.x.ai`],getModelIds:()=>T().map(E),onOAuthLoginIntercepted:async(e,n,r)=>{let i=l(),a=await d(i),o=u(),s=u(),c=new URL(g);c.searchParams.set(`response_type`,`code`),c.searchParams.set(`client_id`,v),c.searchParams.set(`redirect_uri`,b),c.searchParams.set(`scope`,r?.scopes??y),c.searchParams.set(`code_challenge`,a),c.searchParams.set(`code_challenge_method`,`S256`),c.searchParams.set(`state`,o),c.searchParams.set(`nonce`,s),c.searchParams.set(`plan`,`generic`),c.searchParams.set(`referrer`,`slicc`);let h=await e({authorizeUrl:c.toString(),redirectUriPattern:x,onCapture:`close`});if(!h)throw new p(`xAI OAuth login was cancelled or timed out`,f.CALLBACK_TIMEOUT);let _=new URL(h),C=_.searchParams.get(`code`),w=_.searchParams.get(`state`);if(!C)throw new p(`xAI OAuth redirect did not include a code`,f.CODE_MISSING);if(w!==o)throw new p(`xAI OAuth state mismatch — possible CSRF, aborting`,f.STATE_MISMATCH);let T=await O(C,i);await t({providerId:m,accessToken:T.access_token,refreshToken:T.refresh_token,tokenExpiresAt:Date.now()+(T.expires_in??21600)*1e3,baseUrl:S,scopes:T.scope}),n()},onOAuthLogout:async()=>{await t({providerId:m,accessToken:``})},onSilentRenew:async()=>{let e=A();if(!e?.refreshToken)return null;let n=await k(e.refreshToken);return n?.access_token?(await t({providerId:m,accessToken:n.access_token,refreshToken:n.refresh_token??e.refreshToken,tokenExpiresAt:Date.now()+(n.expires_in??21600)*1e3,scopes:n.scope??e.scopes}),n.access_token):null}};function L(){r({api:w,stream:P,streamSimple:F})}export{f as XaiErrorCode,p as XaiOAuthError,I as config,L as register};
|