sliccy 2.44.0 → 2.45.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/{adobe-D-hLaD-x.js → adobe-BQVBsnp5.js} +1 -1
- package/dist/ui/assets/{adobe-D1FP_zRf.js → adobe-Di26CLY-.js} +1 -1
- package/dist/ui/assets/{agent-bridge-DoSAcuxM.js → agent-bridge-iS5F-tk4.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-DeLrLZek.js → agent-message-to-chat-P-vk7oXe.js} +1 -1
- package/dist/ui/assets/{anthropic-Cy3YZg7_.js → anthropic-BAqLPYC5.js} +1 -1
- package/dist/ui/assets/{anthropic-DqwunbTa.js → anthropic-CIZZTcdx.js} +1 -1
- package/dist/ui/assets/{azure-openai-BMNz5ffX.js → azure-openai-DFSSkrVa.js} +1 -1
- package/dist/ui/assets/{azure-openai-CnwTnqfC.js → azure-openai-chXlITck.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-DHh_s6lm.js → azure-openai-responses-BSb3huh7.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-wHOUdP5O.js → azure-openai-responses-crI3YdOn.js} +1 -1
- package/dist/ui/assets/{bedrock-camp-crRFZ2W8.js → bedrock-camp-CCsolEwL.js} +3 -3
- package/dist/ui/assets/{bedrock-camp-BFX_msim.js → bedrock-camp-Dt6axHsD.js} +2 -2
- package/dist/ui/assets/{cdp-DFN6NzHZ.js → cdp-BPMNcb_i.js} +2 -2
- package/dist/ui/assets/cost-command-CfSnehYI.js +1 -0
- package/dist/ui/assets/{es-BNJKkttw.js → es-D9dwphoI.js} +1 -1
- package/dist/ui/assets/{fs-DZslTGeP.js → fs-BxEiPoSb.js} +2 -2
- package/dist/ui/assets/{fs-rDyg_sTU.js → fs-QtwJybCN.js} +3 -3
- package/dist/ui/assets/{github-ClkDoNzB.js → github-BBYysg3y.js} +2 -2
- package/dist/ui/assets/{github-fa1DOtxn.js → github-CJTRc9em.js} +1 -1
- package/dist/ui/assets/{google---mpU1A2.js → google-BEfoamCp.js} +1 -1
- package/dist/ui/assets/{google-DVh8iLpp.js → google-KQL2W1mQ.js} +1 -1
- package/dist/ui/assets/{index-CGLexRba.js → index-CtFgdedv.js} +6 -6
- package/dist/ui/assets/{kernel-worker-BHVF6Wrj.js → kernel-worker-Cq6yoQKS.js} +9 -9
- package/dist/ui/assets/{local-llm-DnQWFIW5.js → local-llm-JYVrFXSr.js} +1 -1
- package/dist/ui/assets/{local-llm-Ci9DY8Iv.js → local-llm-pmuH9Na3.js} +1 -1
- package/dist/ui/assets/{magick-wasm-vD4_csmg.js → magick-wasm-B5X3H7-c.js} +1 -1
- package/dist/ui/assets/{mistral-DTeJBmOL.js → mistral-CxFzHB_G.js} +1 -1
- package/dist/ui/assets/{mistral-Bm21Ik7J.js → mistral-DHFR36tC.js} +1 -1
- package/dist/ui/assets/{mount-w03akDjt.js → mount-BQ5EcQ8O.js} +2 -2
- package/dist/ui/assets/{mount-CynWzv1F.js → mount-bS4lqU0X.js} +1 -1
- package/dist/ui/assets/{nuke-command-DR_oD7qB.js → nuke-command-Bz-xgSwE.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-B2oWVhiR.js → oauth-bootstrap-BetQvY4O.js} +1 -1
- package/dist/ui/assets/{oauth-service-BkqNtL_k.js → oauth-service-KkPzwbzv.js} +1 -1
- package/dist/ui/assets/{offscreen-client-DcZqDYRj.js → offscreen-client-B6DOb-Xp.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-D9vn3Mut.js → onboarding-orchestrator-BQrmXLti.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-BC3W5DZd.js → openai-codex-responses-BeJ8eBlY.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-4ylLoOp4.js → openai-codex-responses-D_uk-qbw.js} +1 -1
- package/dist/ui/assets/{openai-completions-BvBJXjcA.js → openai-completions-BDwjHfsI.js} +1 -1
- package/dist/ui/assets/{openai-completions-DBvBbs_X.js → openai-completions-D4pzDqQA.js} +1 -1
- package/dist/ui/assets/{openai-responses-CRnHC3ca.js → openai-responses-BEjfT04t.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-CiqZm_9t.js → openai-responses-shared-B-29r3Hm.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-ClP70rt7.js → openai-responses-shared-DmWhD6q7.js} +1 -1
- package/dist/ui/assets/{openai-responses-CWfA2TU0.js → openai-responses-yPFLu8Dk.js} +1 -1
- package/dist/ui/assets/{provider-settings-DAmKW5sM.js → provider-settings-9diLsJqC.js} +1 -1
- package/dist/ui/assets/{provider-settings-DkeLkvJL.js → provider-settings-Bo6eT9Zl.js} +2 -2
- package/dist/ui/assets/{providers-DSNfwlxd.js → providers-BKDasrOc.js} +1 -1
- package/dist/ui/assets/{spawn-DATbxKvN.js → spawn-CaOUiyGX.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-DPhMlyXC.js → upgrade-detection-Cp1Trggy.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-DeuoPttz.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-Cq6yoQKS.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};
|