sliccy 2.43.0 → 2.43.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.
Files changed (50) hide show
  1. package/dist/ui/assets/{adobe-DCEW-jwu.js → adobe-DYF0SoVS.js} +1 -1
  2. package/dist/ui/assets/{adobe-C2UaIA41.js → adobe-Ds8NNVE_.js} +1 -1
  3. package/dist/ui/assets/{agent-bridge-DpnoOA1m.js → agent-bridge-eRpabEec.js} +1 -1
  4. package/dist/ui/assets/{agent-message-to-chat-BhoxpmpE.js → agent-message-to-chat-Cvy8FwWq.js} +1 -1
  5. package/dist/ui/assets/{anthropic-BBCljDKG.js → anthropic-B48g4oSz.js} +1 -1
  6. package/dist/ui/assets/{anthropic-DuP0qmVz.js → anthropic-D2GBKqcd.js} +1 -1
  7. package/dist/ui/assets/{azure-openai-DJep1H6m.js → azure-openai-CzV9y1Iw.js} +1 -1
  8. package/dist/ui/assets/{azure-openai-es2UEaVa.js → azure-openai-mp9U9rja.js} +1 -1
  9. package/dist/ui/assets/{azure-openai-responses-BasmI9oz.js → azure-openai-responses-BEENdkoy.js} +1 -1
  10. package/dist/ui/assets/{azure-openai-responses-DBAbXSTD.js → azure-openai-responses-McTfFbtv.js} +1 -1
  11. package/dist/ui/assets/{bedrock-camp-KyNM28gW.js → bedrock-camp-CddNvsC4.js} +2 -2
  12. package/dist/ui/assets/{bedrock-camp-CSp2DPSu.js → bedrock-camp-Qb53DXj3.js} +3 -3
  13. package/dist/ui/assets/cost-command-CaUbk6GF.js +1 -0
  14. package/dist/ui/assets/{es-BUhsge_v.js → es-CE6eHCV7.js} +1 -1
  15. package/dist/ui/assets/{fs-KzDX6lDt.js → fs-Bbwyzo2U.js} +3 -3
  16. package/dist/ui/assets/{fs-1U1rT6mb.js → fs-CM-rFbBn.js} +2 -2
  17. package/dist/ui/assets/{github-DZWbceUJ.js → github-Bs3A31bN.js} +1 -1
  18. package/dist/ui/assets/{github-BoI7NK5Y.js → github-Dmhwd0KL.js} +2 -2
  19. package/dist/ui/assets/{google-CcdeRF42.js → google-B7yxeZ3e.js} +1 -1
  20. package/dist/ui/assets/{google-w3iuVje2.js → google-DwlYg9Pc.js} +1 -1
  21. package/dist/ui/assets/{index-Dbfn2pUX.js → index-B3-QZuIo.js} +5 -5
  22. package/dist/ui/assets/{kernel-worker-BuJdZy5v.js → kernel-worker-CN1gCObH.js} +9 -9
  23. package/dist/ui/assets/{local-llm-D72tLY3Y.js → local-llm-B6LKfgTl.js} +1 -1
  24. package/dist/ui/assets/{local-llm-XVLqdOOf.js → local-llm-Ceq7Y_9I.js} +1 -1
  25. package/dist/ui/assets/{mistral-b5JBKUqy.js → mistral-Bq3Kjs2k.js} +1 -1
  26. package/dist/ui/assets/{mistral-DRSbEgc2.js → mistral-Cdd46x-B.js} +1 -1
  27. package/dist/ui/assets/{mount-6-HP-fzb.js → mount-8wZvrEzT.js} +1 -1
  28. package/dist/ui/assets/{mount-zcpBZ465.js → mount-Dzh1yX9m.js} +2 -2
  29. package/dist/ui/assets/{nuke-command-DTu62dL0.js → nuke-command-BqNQA1ce.js} +1 -1
  30. package/dist/ui/assets/{oauth-bootstrap-CsJTQqoE.js → oauth-bootstrap-Bv9QmMDW.js} +1 -1
  31. package/dist/ui/assets/{oauth-service-C0rdcoXi.js → oauth-service-DEZgkw0k.js} +1 -1
  32. package/dist/ui/assets/{offscreen-client-BQS5SL9t.js → offscreen-client-BLej8SL_.js} +1 -1
  33. package/dist/ui/assets/{onboarding-orchestrator-Dld2OQzb.js → onboarding-orchestrator-BbL6If5O.js} +1 -1
  34. package/dist/ui/assets/{openai-codex-responses-BIq_NjtP.js → openai-codex-responses-D2HNK7g0.js} +1 -1
  35. package/dist/ui/assets/{openai-codex-responses-Bw3r2Hnu.js → openai-codex-responses-Ds5Db2lB.js} +1 -1
  36. package/dist/ui/assets/{openai-completions-68Ek_N21.js → openai-completions-CZtyPYau.js} +1 -1
  37. package/dist/ui/assets/{openai-completions-BXM-gDWt.js → openai-completions-DxgOu3h2.js} +1 -1
  38. package/dist/ui/assets/{openai-responses-EH-UgPTz.js → openai-responses-7wteeeHY.js} +1 -1
  39. package/dist/ui/assets/{openai-responses-BoV1AGA6.js → openai-responses-DfFqxYag.js} +1 -1
  40. package/dist/ui/assets/{openai-responses-shared-sCOhnzkS.js → openai-responses-shared-BTIzb8fU.js} +1 -1
  41. package/dist/ui/assets/{openai-responses-shared-BnEuqygR.js → openai-responses-shared-CRBJwPMl.js} +1 -1
  42. package/dist/ui/assets/{provider-settings-BJW3Z-UR.js → provider-settings-9Kr0C-QT.js} +2 -2
  43. package/dist/ui/assets/{provider-settings-BwyVvIHC.js → provider-settings-BAv0p9JR.js} +1 -1
  44. package/dist/ui/assets/{providers-Bx2_S0Gs.js → providers-CQUyh2aK.js} +1 -1
  45. package/dist/ui/assets/{spawn-Bs7QOa4F.js → spawn-BhEIChxk.js} +1 -1
  46. package/dist/ui/assets/{upgrade-detection-DaIEsDu3.js → upgrade-detection-BUmjj0OX.js} +1 -1
  47. package/dist/ui/index.html +6 -6
  48. package/dist/ui/packages/webapp/index.html +6 -6
  49. package/package.json +1 -1
  50. package/dist/ui/assets/cost-command-DnyD68nK.js +0 -1
@@ -1 +1 @@
1
- import{a as e,c as t,n,s as r}from"./simple-options-B0cR4giT.js";import{l as i}from"./index-Dbfn2pUX.js";import{t as a}from"./sanitize-unicode-DANurEy1.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-b8limp-0.js";var p=0,m=(t,n,a)=>{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,a?.apiKey||i(t.provider)||``,a?.headers),d=_(t,n,a),f=await a?.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})),a?.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=a?.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,a)=>{let o=a?.apiKey||i(e.provider);if(!o)throw Error(`No API key for provider: ${e.provider}`);let s=n(e,a,o);if(!a?.reasoning)return m(e,r,{...s,thinking:{enabled:!1}});let c=t(e,a.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,a.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),i={};n.temperature!==void 0&&(i.temperature=n.temperature),n.maxTokens!==void 0&&(i.maxOutputTokens=n.maxTokens);let s={...Object.keys(i).length>0&&i,...t.systemPrompt&&{systemInstruction:a(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};
1
+ import{a as e,c as t,n,s as r}from"./simple-options-B0cR4giT.js";import{l as i}from"./index-B3-QZuIo.js";import{t as a}from"./sanitize-unicode-DANurEy1.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-b8limp-0.js";var p=0,m=(t,n,a)=>{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,a?.apiKey||i(t.provider)||``,a?.headers),d=_(t,n,a),f=await a?.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})),a?.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=a?.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,a)=>{let o=a?.apiKey||i(e.provider);if(!o)throw Error(`No API key for provider: ${e.provider}`);let s=n(e,a,o);if(!a?.reasoning)return m(e,r,{...s,thinking:{enabled:!1}});let c=t(e,a.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,a.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),i={};n.temperature!==void 0&&(i.temperature=n.temperature),n.maxTokens!==void 0&&(i.maxOutputTokens=n.maxTokens);let s={...Object.keys(i).length>0&&i,...t.systemPrompt&&{systemInstruction:a(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};