sliccy 2.45.2 → 2.45.3
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/{adobe-BChHWQ4K.js → adobe-B4g7AOSY.js} +1 -1
- package/dist/ui/assets/{adobe-BrqOSwre.js → adobe-B6wBtBjn.js} +1 -1
- package/dist/ui/assets/{agent-bridge-CeBNOTIK.js → agent-bridge-BIqfSVu2.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-C_iWHUI4.js → agent-message-to-chat-Dnnrujom.js} +1 -1
- package/dist/ui/assets/{anthropic-BpD5B1Fs.js → anthropic-BoDcD0xs.js} +1 -1
- package/dist/ui/assets/{anthropic-BLsjcnDt.js → anthropic-vh-aBoE_.js} +1 -1
- package/dist/ui/assets/{azure-openai-csVz9MGp.js → azure-openai-CMUTac7w.js} +1 -1
- package/dist/ui/assets/{azure-openai-DbpG0Hbf.js → azure-openai-DpX78gmt.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-Co1auWhM.js → azure-openai-responses-Bx6yBVfU.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-Cpz6CFRQ.js → azure-openai-responses-Crk9DqJp.js} +1 -1
- package/dist/ui/assets/{bedrock-camp-D7wRS6iq.js → bedrock-camp-CkuZf5jK.js} +2 -2
- package/dist/ui/assets/{bedrock-camp-CkVMxsuL.js → bedrock-camp-tuaApwJn.js} +3 -3
- package/dist/ui/assets/{cdp-C1BRHvvu.js → cdp-ClOGGuy0.js} +2 -2
- package/dist/ui/assets/cost-command-BAD6Qx8Q.js +1 -0
- package/dist/ui/assets/{es-DhTPQOId.js → es-Cjr2MR0R.js} +1 -1
- package/dist/ui/assets/{fs-CPyLoMJY.js → fs-BKcSjdXB.js} +3 -3
- package/dist/ui/assets/{fs-v9Oqxwfc.js → fs-Bnfvl1-T.js} +2 -2
- package/dist/ui/assets/{github-DTXBj7mh.js → github-B97_s3v4.js} +2 -2
- package/dist/ui/assets/{github-C7uchOq9.js → github-Ctpw7yW7.js} +1 -1
- package/dist/ui/assets/{google-DiTir91u.js → google-B0fvtsLh.js} +1 -1
- package/dist/ui/assets/{google-BaB0nCS7.js → google-DMNlmX9j.js} +1 -1
- package/dist/ui/assets/{index-BzWbutsd.js → index-BepIlMll.js} +10 -10
- package/dist/ui/assets/{kernel-worker-BaiZ_JXj.js → kernel-worker-BulN1Taf.js} +9 -9
- package/dist/ui/assets/{local-llm-CGKlkTZT.js → local-llm-B4JQAghf.js} +1 -1
- package/dist/ui/assets/{local-llm-BhGnv3Sm.js → local-llm-DAt3aDPa.js} +1 -1
- package/dist/ui/assets/{magick-wasm-DNGHpXEY.js → magick-wasm-CQC5E0LF.js} +1 -1
- package/dist/ui/assets/{mistral-DCOnSIEy.js → mistral-BUFp9pi9.js} +1 -1
- package/dist/ui/assets/{mistral-DO_ug97E.js → mistral-CkD2H9Iq.js} +1 -1
- package/dist/ui/assets/{mount-DVwFEZnE.js → mount-BeFMKlu0.js} +1 -1
- package/dist/ui/assets/{mount-B88fXAEX.js → mount-D6dUvorm.js} +2 -2
- package/dist/ui/assets/{nuke-command-L314OefW.js → nuke-command-Dbhl4q0W.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-DEoP8n5I.js → oauth-bootstrap-CGg3ArUs.js} +1 -1
- package/dist/ui/assets/{oauth-service-D9QH1XwB.js → oauth-service-BhR9BE2g.js} +1 -1
- package/dist/ui/assets/{offscreen-client-CMpVSC-9.js → offscreen-client-wEL_xW9X.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-DkGVBd_P.js → onboarding-orchestrator-DwHIw7_r.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-DMSEgS21.js → openai-codex-responses-D3Gu9VHn.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-ayIPV1TD.js → openai-codex-responses-To0VPNpK.js} +1 -1
- package/dist/ui/assets/{openai-completions-a6xISPe0.js → openai-completions-BLDUKEsm.js} +1 -1
- package/dist/ui/assets/{openai-completions-BEI6j5ME.js → openai-completions-BTYtmF5L.js} +1 -1
- package/dist/ui/assets/{openai-responses-BvDCW61n.js → openai-responses-Dd1wYcsg.js} +1 -1
- package/dist/ui/assets/{openai-responses-D3tRvOWp.js → openai-responses-rbeRR8Tu.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-CqNZpLs4.js → openai-responses-shared-B2L8aVu0.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-BLGmuow5.js → openai-responses-shared-bjmGUfjZ.js} +1 -1
- package/dist/ui/assets/{provider-settings-_W9TDPL_.js → provider-settings-BMhQrltn.js} +2 -2
- package/dist/ui/assets/{provider-settings-BGlHyzNs.js → provider-settings-DoJZgrI1.js} +1 -1
- package/dist/ui/assets/{providers-BHvddfLX.js → providers-DOkzveyM.js} +1 -1
- package/dist/ui/assets/{spawn-BegESSo3.js → spawn-CyLKP0QP.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-D0D644pa.js → upgrade-detection-5S6RyXlk.js} +1 -1
- package/dist/ui/index.html +6 -6
- package/dist/ui/packages/webapp/index.html +6 -6
- package/package.json +1 -1
- package/dist/ui/assets/cost-command-CINhlBmU.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,r as n,s as r}from"./transform-messages-DlZklr1h.js";import{t as i}from"./sanitize-unicode-MlE1hQqG.js";import{r as a}from"./kernel-worker-
|
|
1
|
+
import{a as e,c as t,r as n,s as r}from"./transform-messages-DlZklr1h.js";import{t as i}from"./sanitize-unicode-MlE1hQqG.js";import{r as a}from"./kernel-worker-BulN1Taf.js";import{a as o,i as s,n as c,o as l,r as u,s as d,t as f}from"./google-shared-CEbAcMay.js";let p=0;const m=(t,n,i)=>{let o=new e;return(async()=>{let e={role:`assistant`,content:[],api:`google-generative-ai`,provider:t.provider,model:t.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:`stop`,timestamp:Date.now()};try{let c=g(t,i?.apiKey||a(t.provider)||``,i?.headers),d=_(t,n,i),f=await i?.onPayload?.(d,t);f!==void 0&&(d=f);let m=await c.models.generateContentStream(d);o.push({type:`start`,partial:e});let h=null,v=e.content,y=()=>v.length-1;for await(let n of m){e.responseId||=n.responseId;let i=n.candidates?.[0];if(i?.content?.parts)for(let t of i.content.parts){if(t.text!==void 0){let n=u(t);(!h||n&&h.type!==`thinking`||!n&&h.type!==`text`)&&(h&&(h.type===`text`?o.push({type:`text_end`,contentIndex:v.length-1,content:h.text,partial:e}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:e})),n?(h={type:`thinking`,thinking:``,thinkingSignature:void 0},e.content.push(h),o.push({type:`thinking_start`,contentIndex:y(),partial:e})):(h={type:`text`,text:``},e.content.push(h),o.push({type:`text_start`,contentIndex:y(),partial:e}))),h.type===`thinking`?(h.thinking+=t.text,h.thinkingSignature=l(h.thinkingSignature,t.thoughtSignature),o.push({type:`thinking_delta`,contentIndex:y(),delta:t.text,partial:e})):(h.text+=t.text,h.textSignature=l(h.textSignature,t.thoughtSignature),o.push({type:`text_delta`,contentIndex:y(),delta:t.text,partial:e}))}if(t.functionCall){h&&=(h.type===`text`?o.push({type:`text_end`,contentIndex:y(),content:h.text,partial:e}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:e}),null);let n=t.functionCall.id,r={type:`toolCall`,id:!n||e.content.some(e=>e.type===`toolCall`&&e.id===n)?`${t.functionCall.name}_${Date.now()}_${++p}`:n,name:t.functionCall.name||``,arguments:t.functionCall.args??{},...t.thoughtSignature&&{thoughtSignature:t.thoughtSignature}};e.content.push(r),o.push({type:`toolcall_start`,contentIndex:y(),partial:e}),o.push({type:`toolcall_delta`,contentIndex:y(),delta:JSON.stringify(r.arguments),partial:e}),o.push({type:`toolcall_end`,contentIndex:y(),toolCall:r,partial:e})}}i?.finishReason&&(e.stopReason=s(i.finishReason),e.content.some(e=>e.type===`toolCall`)&&(e.stopReason=`toolUse`)),n.usageMetadata&&(e.usage={input:(n.usageMetadata.promptTokenCount||0)-(n.usageMetadata.cachedContentTokenCount||0),output:(n.usageMetadata.candidatesTokenCount||0)+(n.usageMetadata.thoughtsTokenCount||0),cacheRead:n.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,totalTokens:n.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},r(t,e.usage))}if(h&&(h.type===`text`?o.push({type:`text_end`,contentIndex:y(),content:h.text,partial:e}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:e})),i?.signal?.aborted)throw Error(`Request was aborted`);if(e.stopReason===`aborted`||e.stopReason===`error`)throw Error(`An unknown error occurred`);o.push({type:`done`,reason:e.stopReason,message:e}),o.end()}catch(t){for(let t of e.content)`index`in t&&delete t.index;e.stopReason=i?.signal?.aborted?`aborted`:`error`,e.errorMessage=t instanceof Error?t.message:JSON.stringify(t),o.push({type:`error`,reason:e.stopReason,error:e}),o.end()}})(),o},h=(e,r,i)=>{let o=i?.apiKey||a(e.provider);if(!o)throw Error(`No API key for provider: ${e.provider}`);let s=n(e,i,o);if(!i?.reasoning)return m(e,r,{...s,thinking:{enabled:!1}});let c=t(e,i.reasoning),l=c===`off`?`high`:c,u=e;return y(u)||b(u)||v(u)?m(e,r,{...s,thinking:{enabled:!0,level:S(l,u)}}):m(e,r,{...s,thinking:{enabled:!0,budgetTokens:C(u,l,i.thinkingBudgets)}})};function g(e,t,n){let r={};return e.baseUrl&&(r.baseUrl=e.baseUrl,r.apiVersion=``),(e.headers||n)&&(r.headers={...e.headers,...n}),new d({apiKey:t,httpOptions:Object.keys(r).length>0?r:void 0})}function _(e,t,n={}){let r=f(e,t),a={};n.temperature!==void 0&&(a.temperature=n.temperature),n.maxTokens!==void 0&&(a.maxOutputTokens=n.maxTokens);let s={...Object.keys(a).length>0&&a,...t.systemPrompt&&{systemInstruction:i(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:c(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?s.toolConfig={functionCallingConfig:{mode:o(n.toolChoice)}}:s.toolConfig=void 0,n.thinking?.enabled&&e.reasoning){let e={includeThoughts:!0};n.thinking.level===void 0?n.thinking.budgetTokens!==void 0&&(e.thinkingBudget=n.thinking.budgetTokens):e.thinkingLevel=n.thinking.level,s.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(s.thinkingConfig=x(e));if(n.signal){if(n.signal.aborted)throw Error(`Request aborted`);s.abortSignal=n.signal}return{model:e.id,contents:r,config:s}}function v(e){return/gemma-?4/.test(e.id.toLowerCase())}function y(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function b(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function x(e){return y(e)?{thinkingLevel:`LOW`}:b(e)||v(e)?{thinkingLevel:`MINIMAL`}:{thinkingBudget:0}}function S(e,t){if(y(t))switch(e){case`minimal`:case`low`:return`LOW`;case`medium`:case`high`:return`HIGH`}if(v(t))switch(e){case`minimal`:case`low`:return`MINIMAL`;case`medium`:case`high`:return`HIGH`}switch(e){case`minimal`:return`MINIMAL`;case`low`:return`LOW`;case`medium`:return`MEDIUM`;case`high`:return`HIGH`}}function C(e,t,n){return n?.[t]===void 0?e.id.includes(`2.5-pro`)?{minimal:128,low:2048,medium:8192,high:32768}[t]:e.id.includes(`2.5-flash-lite`)?{minimal:512,low:2048,medium:8192,high:24576}[t]:e.id.includes(`2.5-flash`)?{minimal:128,low:2048,medium:8192,high:24576}[t]:-1:n[t]}export{m as streamGoogle,h as streamSimpleGoogle};
|