sliccy 2.3.0 → 2.3.2
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/anthropic-BCyIsIaq.js +36 -0
- package/dist/ui/assets/azure-openai-responses-CSjq2stN.js +1 -0
- package/dist/ui/assets/{dist-CLNuUmSq.js → dist-DEO1hNOZ2.js} +2 -2
- package/dist/ui/assets/{es-B8PfOjm2.js → es-BeEDb-3s.js} +1 -1
- package/dist/ui/assets/{google-DO7yvPO4.js → google-CHyDZd_T.js} +1 -1
- package/dist/ui/assets/google-gemini-cli-CLKrNaN2.js +2 -0
- package/dist/ui/assets/{google-shared-BWQFIy8i.js → google-shared-Dm8eVEiI.js} +3 -3
- package/dist/ui/assets/google-vertex-DO4sjUxJ.js +1 -0
- package/dist/ui/assets/headers-Dr-OH1-5.js +1 -0
- package/dist/ui/assets/{index-BHX7DMdz.js → index-CPZ7V__2.js} +162 -162
- package/dist/ui/assets/mistral-DZrYPR3L.js +46 -0
- package/dist/ui/assets/openai-codex-responses-BtjFHbjN.js +7 -0
- package/dist/ui/assets/openai-completions-CvOr92bY.js +5 -0
- package/dist/ui/assets/openai-responses-D1b_e2py.js +1 -0
- package/dist/ui/assets/{openai-responses-shared-CUFAAR--.js → openai-responses-shared-D0nL21GA.js} +2 -2
- package/dist/ui/assets/{provider-settings-DUchoI6k.js → provider-settings-BNHO2Tcv.js} +5 -5
- package/dist/ui/assets/simple-options-GPCv4BUJ.js +1 -0
- package/dist/ui/index.html +3 -3
- package/dist/ui/packages/webapp/index.html +3 -3
- package/package.json +1 -1
- package/dist/ui/assets/anthropic-CMlPlDIk.js +0 -36
- package/dist/ui/assets/azure-openai-responses-D8KcZhBl.js +0 -1
- package/dist/ui/assets/google-gemini-cli-DdA3nx6W.js +0 -2
- package/dist/ui/assets/google-vertex-C5s4LVmo.js +0 -1
- package/dist/ui/assets/mistral-BPcBoGoy.js +0 -7
- package/dist/ui/assets/openai-codex-responses-N7fKFsLN.js +0 -7
- package/dist/ui/assets/openai-completions-rv4ohN_x.js +0 -5
- package/dist/ui/assets/openai-responses-D4uieQSd.js +0 -1
- package/dist/ui/assets/simple-options-B6uouUxh.js +0 -1
- /package/dist/ui/assets/{addon-fit-CVV7fTw9.js → addon-fit-CnTv21Qe.js} +0 -0
- /package/dist/ui/assets/{bsh-watchdog-C8qkdGvF.js → bsh-watchdog-BXTi5bzs.js} +0 -0
- /package/dist/ui/assets/{chat-fixture-BVDDtJMz.js → chat-fixture-Nts2sMME.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-C0FOlzjL.js → github-copilot-headers-BNWb_OCE.js} +0 -0
- /package/dist/ui/assets/{hash-CQjDwcjR.js → hash-CsofV07h.js} +0 -0
- /package/dist/ui/assets/{lick-manager-proxy-B2bMdplq.js → lick-manager-proxy-CogaR9kt.js} +0 -0
- /package/dist/ui/assets/{oauth-service-BoyG8vZW.js → oauth-service-CfTUWB9P.js} +0 -0
- /package/dist/ui/assets/{offscreen-client-CLgve4BY.js → offscreen-client-BlWuVmPl.js} +0 -0
- /package/dist/ui/assets/{pdfjs-kFXy8Q7j.js → pdfjs-DEEfCfSi.js} +0 -0
- /package/dist/ui/assets/{pyodide-Doh5i2Gj.js → pyodide-3PMN6X39.js} +0 -0
- /package/dist/ui/assets/{sanitize-unicode-BOCYaWok.js → sanitize-unicode-Dw-JFaZE.js} +0 -0
- /package/dist/ui/assets/{secret-masking-Bqg5RXZg.js → secret-masking-Bg1u5YcF.js} +0 -0
- /package/dist/ui/assets/{slicc-editor-Cgz0dhRS.js → slicc-editor-DmlPglrQ.js} +0 -0
- /package/dist/ui/assets/{sql-wasm-Dx6P9mA8.js → sql-wasm-yST8pDy6.js} +0 -0
- /package/dist/ui/assets/{xterm-ucbPh68r.js → xterm-CAZt1iF4.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,n as t,r as n,s as r}from"./simple-options-GPCv4BUJ.js";import{t as i}from"./sanitize-unicode-Dw-JFaZE.js";import{c as a,i as o,l as s,n as c,o as l,r as u,s as d,t as f}from"./google-shared-Dm8eVEiI.js";var p=`v1`,m=`gcp-vertex-credentials`,h={THINKING_LEVEL_UNSPECIFIED:s.THINKING_LEVEL_UNSPECIFIED,MINIMAL:s.MINIMAL,LOW:s.LOW,MEDIUM:s.MEDIUM,HIGH:s.HIGH},g=0,_=(t,n,i)=>{let a=new e;return(async()=>{let e={role:`assistant`,content:[],api:`google-vertex`,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 s=x(i),c=s?b(t,s,i?.headers):y(t,C(i),w(i),i?.headers),l=T(t,n,i),f=await i?.onPayload?.(l,t);f!==void 0&&(l=f);let p=await c.models.generateContentStream(l);a.push({type:`start`,partial:e});let m=null,h=e.content,_=()=>h.length-1;for await(let n of p){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);(!m||n&&m.type!==`thinking`||!n&&m.type!==`text`)&&(m&&(m.type===`text`?a.push({type:`text_end`,contentIndex:h.length-1,content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:_(),content:m.thinking,partial:e})),n?(m={type:`thinking`,thinking:``,thinkingSignature:void 0},e.content.push(m),a.push({type:`thinking_start`,contentIndex:_(),partial:e})):(m={type:`text`,text:``},e.content.push(m),a.push({type:`text_start`,contentIndex:_(),partial:e}))),m.type===`thinking`?(m.thinking+=t.text,m.thinkingSignature=d(m.thinkingSignature,t.thoughtSignature),a.push({type:`thinking_delta`,contentIndex:_(),delta:t.text,partial:e})):(m.text+=t.text,m.textSignature=d(m.textSignature,t.thoughtSignature),a.push({type:`text_delta`,contentIndex:_(),delta:t.text,partial:e}))}if(t.functionCall){m&&=(m.type===`text`?a.push({type:`text_end`,contentIndex:_(),content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:_(),content:m.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()}_${++g}`:n,name:t.functionCall.name||``,arguments:t.functionCall.args??{},...t.thoughtSignature&&{thoughtSignature:t.thoughtSignature}};e.content.push(r),a.push({type:`toolcall_start`,contentIndex:_(),partial:e}),a.push({type:`toolcall_delta`,contentIndex:_(),delta:JSON.stringify(r.arguments),partial:e}),a.push({type:`toolcall_end`,contentIndex:_(),toolCall:r,partial:e})}}i?.finishReason&&(e.stopReason=o(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(m&&(m.type===`text`?a.push({type:`text_end`,contentIndex:_(),content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:_(),content:m.thinking,partial:e})),i?.signal?.aborted)throw Error(`Request was aborted`);if(e.stopReason===`aborted`||e.stopReason===`error`)throw Error(`An unknown error occurred`);a.push({type:`done`,reason:e.stopReason,message:e}),a.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),a.push({type:`error`,reason:e.stopReason,error:e}),a.end()}})(),a},v=(e,r,i)=>{let a=t(e,i,void 0);if(!i?.reasoning)return _(e,r,{...a,thinking:{enabled:!1}});let o=n(i.reasoning),s=e;return E(s)||D(s)?_(e,r,{...a,thinking:{enabled:!0,level:k(o,s)}}):_(e,r,{...a,thinking:{enabled:!0,budgetTokens:A(s,o,i.thinkingBudgets)}})};function y(e,t,n,r){let i={};return(e.headers||r)&&(i.headers={...e.headers,...r}),new a({vertexai:!0,project:t,location:n,apiVersion:p,httpOptions:Object.values(i).some(Boolean)?i:void 0})}function b(e,t,n){let r={};return(e.headers||n)&&(r.headers={...e.headers,...n}),new a({vertexai:!0,apiKey:t,apiVersion:p,httpOptions:Object.values(r).some(Boolean)?r:void 0})}function x(e){let t=e?.apiKey?.trim()||{}.GOOGLE_CLOUD_API_KEY?.trim();if(!(!t||t===m||S(t)))return t}function S(e){return/^<[^>]+>$/.test(e)}function C(e){let t=e?.project||{}.GOOGLE_CLOUD_PROJECT||{}.GCLOUD_PROJECT;if(!t)throw Error(`Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.`);return t}function w(e){let t=e?.location||{}.GOOGLE_CLOUD_LOCATION;if(!t)throw Error(`Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.`);return t}function T(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 o={...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?o.toolConfig={functionCallingConfig:{mode:l(n.toolChoice)}}:o.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=h[n.thinking.level],o.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(o.thinkingConfig=O(e));if(n.signal){if(n.signal.aborted)throw Error(`Request aborted`);o.abortSignal=n.signal}return{model:e.id,contents:r,config:o}}function E(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function D(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function O(e){let t=e;return E(t)?{thinkingLevel:s.LOW}:D(t)?{thinkingLevel:s.MINIMAL}:{thinkingBudget:0}}function k(e,t){if(E(t))switch(e){case`minimal`:case`low`:return`LOW`;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 A(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`)?{minimal:128,low:2048,medium:8192,high:24576}[t]:-1:n[t]}export{_ as streamGoogleVertex,v as streamSimpleGoogleVertex};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){let t={};for(let[n,r]of e.entries())t[n]=r;return t}export{e as t};
|