sliccy 2.10.0 → 2.12.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/{anthropic-MK42z37Q.js → anthropic-BJ4cfn0r.js} +2 -2
- package/dist/ui/assets/{azure-openai-responses-6sx0CeiG.js → azure-openai-responses-BuUMFoco.js} +1 -1
- package/dist/ui/assets/{dist-Sngeewv4.js → dist-B7V-aBlB.js} +1 -1
- package/dist/ui/assets/{dist-DPNMKo07.js → dist-BZOmMqub.js} +1 -1
- package/dist/ui/assets/{dist-BqCqxkrA.js → dist-BZxeNw0j.js} +1 -1
- package/dist/ui/assets/{dist-CxsgJFgV.js → dist-C1MjLlkt.js} +1 -1
- package/dist/ui/assets/{dist-BNEtmCAc2.js → dist-VQCt339k2.js} +2 -2
- package/dist/ui/assets/{es-CipkQKU_.js → es-C1Up63y-.js} +1 -1
- package/dist/ui/assets/fs-CuJwg7sR.js +3 -0
- package/dist/ui/assets/{google-CZ8m9iXo.js → google-By0-Jnus.js} +1 -1
- package/dist/ui/assets/{google-gemini-cli-sGthcgbS.js → google-gemini-cli-CvfYAGzv.js} +1 -1
- package/dist/ui/assets/{google-shared-CDmR0GpA.js → google-shared-FQyNXg85.js} +1 -1
- package/dist/ui/assets/{google-vertex-DN1wAqZn.js → google-vertex-DmvsouTy.js} +1 -1
- package/dist/ui/assets/{index-CS-Tbqyy.js → index-CfYvpVNi.js} +918 -913
- package/dist/ui/assets/{magick-wasm-BtLTRPKb.js → magick-wasm-BuraEslY.js} +1 -1
- package/dist/ui/assets/{mistral-DJsZqDXM.js → mistral-C69rSnwD.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-CV9PVGy1.js → openai-codex-responses-ByQ3dUnP.js} +1 -1
- package/dist/ui/assets/{openai-completions-CaZHHvas.js → openai-completions-OxPOkgVA.js} +1 -1
- package/dist/ui/assets/{openai-responses-Cxl9Qt8B.js → openai-responses-TNToi7-a.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-DDd_xmLk.js → openai-responses-shared-CvLy7xFR.js} +1 -1
- package/dist/ui/assets/provider-settings-C7iUrrU9.js +90 -0
- package/dist/ui/assets/{pyodide-JXDzDQlX.js → pyodide-ZBgukovK.js} +2 -2
- package/dist/ui/assets/{skills-GoXEY9ZL.js → skills-B1zKlleu.js} +1 -1
- package/dist/ui/assets/{slicc-editor-BXeXUUnd.js → slicc-editor-DRq182-r.js} +2 -2
- package/dist/ui/assets/{sql-wasm-DsCCg8Gn.js → sql-wasm-CNZ88Vcf.js} +1 -1
- package/dist/ui/index.html +9 -8
- package/dist/ui/packages/webapp/index.html +9 -8
- package/package.json +1 -1
- package/dist/ui/assets/provider-settings-0fVX3aJb.js +0 -90
- /package/dist/ui/assets/{__vite-browser-external-BotBUAC3.js → __vite-browser-external-MxCBxUMe.js} +0 -0
- /package/dist/ui/assets/{addon-fit-B0aHsvmX.js → addon-fit-CniRnSyE.js} +0 -0
- /package/dist/ui/assets/{bsh-watchdog-DYfdvOrR.js → bsh-watchdog-BofJVeV-.js} +0 -0
- /package/dist/ui/assets/{chat-fixture-BWvups7M.js → chat-fixture-CIjL7BDw.js} +0 -0
- /package/dist/ui/assets/{db-ybNEUfR8.js → db-CJnk7hWr.js} +0 -0
- /package/dist/ui/assets/{dist-CPYmBmyZ.js → dist-BreQU7P7.js} +0 -0
- /package/dist/ui/assets/{dist-Ct5XR8EU.js → dist-CEBWSFtw.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-BxUvy78-.js → github-copilot-headers-BFowJEWi.js} +0 -0
- /package/dist/ui/assets/{hash-BwzabXYv.js → hash-B7CztTb_.js} +0 -0
- /package/dist/ui/assets/{headers-BCPSYYop.js → headers-CrRy8cka.js} +0 -0
- /package/dist/ui/assets/{lick-manager-proxy-BF0GrOv_.js → lick-manager-proxy-Dw3D3AzG.js} +0 -0
- /package/dist/ui/assets/{oauth-service-8Xax8Fjw.js → oauth-service-DUXASG7L.js} +0 -0
- /package/dist/ui/assets/{offscreen-client-DJYi05-D.js → offscreen-client-Dom7iV01.js} +0 -0
- /package/dist/ui/assets/{path-utils-CgbXfwyO.js → path-utils-DFPXxD-4.js} +0 -0
- /package/dist/ui/assets/{pdfjs-C_fzykJW.js → pdfjs-exDS4aMq.js} +0 -0
- /package/dist/ui/assets/{sanitize-unicode-ncMKN_SD.js → sanitize-unicode-6mS7gbvU.js} +0 -0
- /package/dist/ui/assets/{secret-masking-CXZkZ8rX.js → secret-masking-ZNVanUmG.js} +0 -0
- /package/dist/ui/assets/{src-Cu5WM_BM.js → src-BqF-C6jp.js} +0 -0
- /package/dist/ui/assets/{xterm-D5M9QCcR.js → xterm-BaLOnk9X.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,n as t,r as n,s as r}from"./simple-options-CP_5aL7H.js";import{t as i}from"./sanitize-unicode-
|
|
1
|
+
import{a as e,n as t,r as n,s as r}from"./simple-options-CP_5aL7H.js";import{t as i}from"./sanitize-unicode-6mS7gbvU.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,u as p}from"./google-shared-FQyNXg85.js";var m=`v1`,h=`gcp-vertex-credentials`,g={THINKING_LEVEL_UNSPECIFIED:p.THINKING_LEVEL_UNSPECIFIED,MINIMAL:p.MINIMAL,LOW:p.LOW,MEDIUM:p.MEDIUM,HIGH:p.HIGH},_=0,v=(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=T(i),c=s?x(t,s,i?.headers):b(t,D(i),O(i),i?.headers),l=k(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,g=()=>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:g(),content:m.thinking,partial:e})),n?(m={type:`thinking`,thinking:``,thinkingSignature:void 0},e.content.push(m),a.push({type:`thinking_start`,contentIndex:g(),partial:e})):(m={type:`text`,text:``},e.content.push(m),a.push({type:`text_start`,contentIndex:g(),partial:e}))),m.type===`thinking`?(m.thinking+=t.text,m.thinkingSignature=d(m.thinkingSignature,t.thoughtSignature),a.push({type:`thinking_delta`,contentIndex:g(),delta:t.text,partial:e})):(m.text+=t.text,m.textSignature=d(m.textSignature,t.thoughtSignature),a.push({type:`text_delta`,contentIndex:g(),delta:t.text,partial:e}))}if(t.functionCall){m&&=(m.type===`text`?a.push({type:`text_end`,contentIndex:g(),content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),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()}_${++_}`:n,name:t.functionCall.name||``,arguments:t.functionCall.args??{},...t.thoughtSignature&&{thoughtSignature:t.thoughtSignature}};e.content.push(r),a.push({type:`toolcall_start`,contentIndex:g(),partial:e}),a.push({type:`toolcall_delta`,contentIndex:g(),delta:JSON.stringify(r.arguments),partial:e}),a.push({type:`toolcall_end`,contentIndex:g(),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:g(),content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),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},y=(e,r,i)=>{let a=t(e,i,void 0);if(!i?.reasoning)return v(e,r,{...a,thinking:{enabled:!1}});let o=n(i.reasoning),s=e;return A(s)||j(s)?v(e,r,{...a,thinking:{enabled:!0,level:N(o,s)}}):v(e,r,{...a,thinking:{enabled:!0,budgetTokens:P(s,o,i.thinkingBudgets)}})};function b(e,t,n,r){return new a({vertexai:!0,project:t,location:n,apiVersion:m,httpOptions:S(e,r)})}function x(e,t,n){return new a({vertexai:!0,apiKey:t,apiVersion:m,httpOptions:S(e,n)})}function S(e,t){let n={},r=C(e.baseUrl);return r&&(n.baseUrl=r,n.baseUrlResourceScope=s.COLLECTION,w(r)&&(n.apiVersion=``)),(e.headers||t)&&(n.headers={...e.headers,...t}),Object.keys(n).length>0?n:void 0}function C(e){let t=e.trim();if(!(!t||t.includes(`{location}`)))return t}function w(e){try{return new URL(e).pathname.split(`/`).some(e=>/^v\d+(?:beta\d*)?$/.test(e))}catch{return/(?:^|\/)v\d+(?:beta\d*)?(?:\/|$)/.test(e)}}function T(e){let t=e?.apiKey?.trim()||{}.GOOGLE_CLOUD_API_KEY?.trim();if(!(!t||t===h||E(t)))return t}function E(e){return/^<[^>]+>$/.test(e)}function D(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 O(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 k(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=g[n.thinking.level],o.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(o.thinkingConfig=M(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 A(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function j(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function M(e){let t=e;return A(t)?{thinkingLevel:p.LOW}:j(t)?{thinkingLevel:p.MINIMAL}:{thinkingBudget:0}}function N(e,t){if(A(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 P(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{v as streamGoogleVertex,y as streamSimpleGoogleVertex};
|