sliccy 2.41.4 → 2.42.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-CqL9wyDB.js +1 -0
- package/dist/ui/assets/adobe-Dz3AQqOU.js +1 -0
- package/dist/ui/assets/{agent-bridge-BlJXkod_.js → agent-bridge-DPiRY9Cp.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-MNM38dyt.js → agent-message-to-chat-DPXL2yWd.js} +1 -1
- package/dist/ui/assets/{anthropic-DIK0AGND.js → anthropic-DNaAx4PR.js} +1 -1
- package/dist/ui/assets/{anthropic-D0T8mqRV.js → anthropic-z3OB3Fnl.js} +1 -1
- package/dist/ui/assets/{azure-openai-DojHdJL3.js → azure-openai-BittXGOl.js} +1 -1
- package/dist/ui/assets/{azure-openai-DiTytjhJ.js → azure-openai-T9qO12vJ.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-C3mV0HRP.js → azure-openai-responses-DBxhuZoo.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-CV1ipjUS.js → azure-openai-responses-DviTxw7q.js} +1 -1
- package/dist/ui/assets/{bedrock-camp-CkDNhlzI.js → bedrock-camp-CHTXSY1O.js} +3 -3
- package/dist/ui/assets/{bedrock-camp-CSnbcnRX.js → bedrock-camp-MgGI9Yh2.js} +2 -2
- package/dist/ui/assets/cost-command-CmqxOe10.js +1 -0
- package/dist/ui/assets/{es-Bu6eKDug.js → es-CMpEjX7X.js} +1 -1
- package/dist/ui/assets/{fs-gdBGOI77.js → fs-CJrk6h4U.js} +2 -2
- package/dist/ui/assets/{fs-DLmF36ib.js → fs-IOuBZ0fU.js} +3 -3
- package/dist/ui/assets/{github-BQrJLgkA.js → github-B1wRLpqB.js} +1 -1
- package/dist/ui/assets/{github-B32rSqUy.js → github-BtI_MJWq.js} +2 -2
- package/dist/ui/assets/{google-O7ym9XvO.js → google-BSQPUbsD.js} +1 -1
- package/dist/ui/assets/{google-Cbh4PPo4.js → google-B_wiPl8S.js} +1 -1
- package/dist/ui/assets/{index-9RNwBuQi.js → index-DOah61oi.js} +4 -4
- package/dist/ui/assets/{kernel-worker-D5nK6-Lp.js → kernel-worker-Ct6nuQEv.js} +7 -7
- package/dist/ui/assets/{local-llm-D3sFAL4U.js → local-llm-BKrBXM1b.js} +1 -1
- package/dist/ui/assets/{local-llm-DLpX9b2N.js → local-llm-DG_WcsYf.js} +1 -1
- package/dist/ui/assets/{mistral-BYAsX48J.js → mistral-cWWq2371.js} +1 -1
- package/dist/ui/assets/{mistral-C0WEyWP1.js → mistral-oA9eus1c.js} +1 -1
- package/dist/ui/assets/{mount-5yZEk140.js → mount-BE4HlHj3.js} +1 -1
- package/dist/ui/assets/{mount-CYLV7YdV.js → mount-d5zFj5UF.js} +2 -2
- package/dist/ui/assets/{nuke-command-DZ_jreqt.js → nuke-command-Do01VR7B.js} +1 -1
- package/dist/ui/assets/{offscreen-client-D6Tnw-Q6.js → offscreen-client-D96UbGR3.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-BSkXArrf.js → onboarding-orchestrator-D1l-w9_h.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-Dp-5SEuz.js → openai-codex-responses-ChYFmtB8.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-BXWvnlPi.js → openai-codex-responses-DYtt5_H9.js} +1 -1
- package/dist/ui/assets/{openai-completions-BE9W0d4w.js → openai-completions-CkeC09FW.js} +1 -1
- package/dist/ui/assets/{openai-completions-D2C4y3qd.js → openai-completions-pJVLdfB5.js} +1 -1
- package/dist/ui/assets/{openai-responses-B_9yL_Y1.js → openai-responses-BtUhfSCM.js} +1 -1
- package/dist/ui/assets/{openai-responses-BvAlkAlM.js → openai-responses-CfoWjQjX.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-Cn97lSlK.js → openai-responses-shared-BL73-u8o.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-RmEhlV31.js → openai-responses-shared-BT4PBv9i.js} +1 -1
- package/dist/ui/assets/{provider-settings-oSgrKsb-.js → provider-settings-CvNDi0PS.js} +1 -1
- package/dist/ui/assets/{provider-settings-CNuleEei.js → provider-settings-DUgrWSPY.js} +2 -2
- package/dist/ui/assets/{providers-BXn6VB-n.js → providers-DDa7zuci.js} +1 -1
- package/dist/ui/assets/{spawn-Cz9T1Juk.js → spawn-CIR7ZcER.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-DPUv129B.js → upgrade-detection-CHed1OmR.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/adobe-BsSm3jFi.js +0 -1
- package/dist/ui/assets/adobe-CXSEcJ7K.js +0 -1
- package/dist/ui/assets/cost-command-HWF_AGaW.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,r as n,s as r}from"./transform-messages-BdxHijhT.js";import{t as i}from"./sanitize-unicode-BzRhXPLL.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-BdxHijhT.js";import{t as i}from"./sanitize-unicode-BzRhXPLL.js";import{r as a}from"./kernel-worker-Ct6nuQEv.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-D8AVju7J.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};
|