sliccy 2.44.0 → 2.44.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/dist/ui/assets/{adobe-D-hLaD-x.js → adobe-BnSE0P6F.js} +1 -1
- package/dist/ui/assets/{adobe-D1FP_zRf.js → adobe-DhzgtbRr.js} +1 -1
- package/dist/ui/assets/{agent-bridge-DoSAcuxM.js → agent-bridge-CS4wjpi6.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-DeLrLZek.js → agent-message-to-chat-CwJpIJto.js} +1 -1
- package/dist/ui/assets/{anthropic-DqwunbTa.js → anthropic-ChdsMP54.js} +1 -1
- package/dist/ui/assets/{anthropic-Cy3YZg7_.js → anthropic-LdP1Fr9K.js} +1 -1
- package/dist/ui/assets/{azure-openai-CnwTnqfC.js → azure-openai-CMP6n4hP.js} +1 -1
- package/dist/ui/assets/{azure-openai-BMNz5ffX.js → azure-openai-CP8rLlwf.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-DHh_s6lm.js → azure-openai-responses-C40Ovzz6.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-wHOUdP5O.js → azure-openai-responses-Cd2m0Udn.js} +1 -1
- package/dist/ui/assets/{bedrock-camp-crRFZ2W8.js → bedrock-camp-CO-LtlWi.js} +3 -3
- package/dist/ui/assets/{bedrock-camp-BFX_msim.js → bedrock-camp-DbvXXqlS.js} +2 -2
- package/dist/ui/assets/{cdp-DFN6NzHZ.js → cdp-DKUUVTVb.js} +2 -2
- package/dist/ui/assets/cost-command-CT9hMrW6.js +1 -0
- package/dist/ui/assets/{es-BNJKkttw.js → es-B3IzFpPk.js} +1 -1
- package/dist/ui/assets/{fs-DZslTGeP.js → fs-gl1-HAkd.js} +2 -2
- package/dist/ui/assets/{fs-rDyg_sTU.js → fs-huouCg6n.js} +3 -3
- package/dist/ui/assets/{github-fa1DOtxn.js → github-B4RiFgNH.js} +1 -1
- package/dist/ui/assets/{github-ClkDoNzB.js → github-sEs_jh0d.js} +2 -2
- package/dist/ui/assets/{google---mpU1A2.js → google-7YGXL9tZ.js} +1 -1
- package/dist/ui/assets/{google-DVh8iLpp.js → google-CNJj-7s8.js} +1 -1
- package/dist/ui/assets/{index-CGLexRba.js → index-B01l3iyR.js} +5 -5
- package/dist/ui/assets/{kernel-worker-BHVF6Wrj.js → kernel-worker-CuhTQELn.js} +9 -9
- package/dist/ui/assets/{local-llm-Ci9DY8Iv.js → local-llm-DdeP41yQ.js} +1 -1
- package/dist/ui/assets/{local-llm-DnQWFIW5.js → local-llm-ad-VxMi3.js} +1 -1
- package/dist/ui/assets/{magick-wasm-vD4_csmg.js → magick-wasm-DsXyiT-r.js} +1 -1
- package/dist/ui/assets/{mistral-DTeJBmOL.js → mistral-B2_Bjose.js} +1 -1
- package/dist/ui/assets/{mistral-Bm21Ik7J.js → mistral-KFfH6Dxh.js} +1 -1
- package/dist/ui/assets/{mount-w03akDjt.js → mount-D4OzfnQE.js} +2 -2
- package/dist/ui/assets/{mount-CynWzv1F.js → mount-DIP_02yA.js} +1 -1
- package/dist/ui/assets/{nuke-command-DR_oD7qB.js → nuke-command-CWvW-baL.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-B2oWVhiR.js → oauth-bootstrap-Cq1LLlYO.js} +1 -1
- package/dist/ui/assets/{oauth-service-BkqNtL_k.js → oauth-service-DIaJ5-Cm.js} +1 -1
- package/dist/ui/assets/{offscreen-client-DcZqDYRj.js → offscreen-client-Cp7a3Tzx.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-D9vn3Mut.js → onboarding-orchestrator-CuAcvNC1.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-4ylLoOp4.js → openai-codex-responses-B9_zCUq2.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-BC3W5DZd.js → openai-codex-responses-DAZN5Alp.js} +1 -1
- package/dist/ui/assets/{openai-completions-DBvBbs_X.js → openai-completions-Bf4nLLnD.js} +1 -1
- package/dist/ui/assets/{openai-completions-BvBJXjcA.js → openai-completions-DvI_DbXF.js} +1 -1
- package/dist/ui/assets/{openai-responses-CRnHC3ca.js → openai-responses-Dl-9Aeuw.js} +1 -1
- package/dist/ui/assets/{openai-responses-CWfA2TU0.js → openai-responses-IyHyVOdo.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-CiqZm_9t.js → openai-responses-shared-CL7nw0-S.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-ClP70rt7.js → openai-responses-shared-CfWMm7mp.js} +1 -1
- package/dist/ui/assets/{provider-settings-DAmKW5sM.js → provider-settings-CqKNwU09.js} +1 -1
- package/dist/ui/assets/{provider-settings-DkeLkvJL.js → provider-settings-dcU6SC8F.js} +2 -2
- package/dist/ui/assets/{providers-DSNfwlxd.js → providers-DydeDxiZ.js} +1 -1
- package/dist/ui/assets/{spawn-DATbxKvN.js → spawn-nLXi-YmQ.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-DPhMlyXC.js → upgrade-detection-3HMxgInl.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-CuhTQELn.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};
|