sliccy 2.4.0 → 2.5.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/{anthropic-BCyIsIaq.js → anthropic-DghSut-C.js} +7 -7
- package/dist/ui/assets/azure-openai-responses-Dnfg8pba.js +1 -0
- package/dist/ui/assets/{dist-DEO1hNOZ2.js → dist-BNEtmCAc2.js} +2 -2
- package/dist/ui/assets/{dist-DhTZTSy5.js → dist-BqCqxkrA.js} +1 -1
- package/dist/ui/assets/{dist-DJK5C7yO.js → dist-CxsgJFgV.js} +1 -1
- package/dist/ui/assets/{dist-CYRMRTTO.js → dist-DPNMKo07.js} +1 -1
- package/dist/ui/assets/{dist-CWhXzJlW.js → dist-Sngeewv4.js} +1 -1
- package/dist/ui/assets/{es-6oFxNVOv.js → es-BgWSe85_.js} +1 -1
- package/dist/ui/assets/google-_zHlLVt5.js +1 -0
- package/dist/ui/assets/{google-gemini-cli-CLKrNaN2.js → google-gemini-cli-CBH9v3m0.js} +1 -1
- package/dist/ui/assets/{google-shared-Dm8eVEiI.js → google-shared-jyMmIrwc.js} +1 -1
- package/dist/ui/assets/{google-vertex-DO4sjUxJ.js → google-vertex-BrN3Tz3e.js} +1 -1
- package/dist/ui/assets/index-DP3Ol2R4.js +15796 -0
- package/dist/ui/assets/{magick-wasm-DA8eLvGf.js → magick-wasm-BtLTRPKb.js} +1 -1
- package/dist/ui/assets/{mistral-DZrYPR3L.js → mistral-DuNLtbqK.js} +2 -2
- package/dist/ui/assets/{openai-codex-responses-BtjFHbjN.js → openai-codex-responses-h0SgBqnQ.js} +1 -1
- package/dist/ui/assets/openai-completions-BPuxYxr3.js +5 -0
- package/dist/ui/assets/openai-responses-DZjAbLKt.js +1 -0
- package/dist/ui/assets/{openai-responses-shared-D0nL21GA.js → openai-responses-shared-CrweEi92.js} +1 -1
- package/dist/ui/assets/{provider-settings-BNHO2Tcv.js → provider-settings-CTKuckn7.js} +4 -4
- package/dist/ui/assets/{pyodide-3PMN6X39.js → pyodide-JXDzDQlX.js} +2 -2
- package/dist/ui/assets/{skills-DBBQyHko.js → skills-CY7rXZij.js} +1 -1
- package/dist/ui/assets/{slicc-editor-DmlPglrQ.js → slicc-editor-BXeXUUnd.js} +2 -2
- package/dist/ui/assets/{sql-wasm-yST8pDy6.js → sql-wasm-DsCCg8Gn.js} +1 -1
- package/dist/ui/index.html +10 -15
- package/dist/ui/packages/webapp/index.html +10 -15
- package/package.json +2 -2
- package/dist/ui/assets/azure-openai-responses-CSjq2stN.js +0 -1
- package/dist/ui/assets/cdp-CsCvDwW3.js +0 -880
- package/dist/ui/assets/cost-command-DBzah9S9.js +0 -1584
- package/dist/ui/assets/env-api-keys-7VVTY3n7.js +0 -1
- package/dist/ui/assets/fs-CFxFn45v.js +0 -3
- package/dist/ui/assets/google-CHyDZd_T.js +0 -1
- package/dist/ui/assets/index-BxvCGJ1l.js +0 -13332
- package/dist/ui/assets/json-parse-Dn8fsQhn.js +0 -2
- package/dist/ui/assets/openai-completions-CvOr92bY.js +0 -5
- package/dist/ui/assets/openai-responses-D1b_e2py.js +0 -1
- package/dist/ui/assets/tray-follower-status-BlQSlF6m.js +0 -1
- /package/dist/ui/assets/{__vite-browser-external-BC516C8G.js → __vite-browser-external-BotBUAC3.js} +0 -0
- /package/dist/ui/assets/{addon-fit-CnTv21Qe.js → addon-fit-B0aHsvmX.js} +0 -0
- /package/dist/ui/assets/{bsh-watchdog-BXTi5bzs.js → bsh-watchdog-DYfdvOrR.js} +0 -0
- /package/dist/ui/assets/{chat-fixture-Nts2sMME.js → chat-fixture-BWvups7M.js} +0 -0
- /package/dist/ui/assets/{constants-DdIXxN9e.js → constants-BnzYaC4L.js} +0 -0
- /package/dist/ui/assets/{db-CmHnV4DS.js → db-ybNEUfR8.js} +0 -0
- /package/dist/ui/assets/{dist-B3YOuOiy.js → dist-CPYmBmyZ.js} +0 -0
- /package/dist/ui/assets/{dist-C43FKPek.js → dist-Ct5XR8EU.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-BNWb_OCE.js → github-copilot-headers-BxUvy78-.js} +0 -0
- /package/dist/ui/assets/{hash-CsofV07h.js → hash-BwzabXYv.js} +0 -0
- /package/dist/ui/assets/{headers-Dr-OH1-5.js → headers-BCPSYYop.js} +0 -0
- /package/dist/ui/assets/{lick-manager-proxy-CogaR9kt.js → lick-manager-proxy-BF0GrOv_.js} +0 -0
- /package/dist/ui/assets/{oauth-service-CfTUWB9P.js → oauth-service-8Xax8Fjw.js} +0 -0
- /package/dist/ui/assets/{offscreen-client-BlWuVmPl.js → offscreen-client-DGObT_O6.js} +0 -0
- /package/dist/ui/assets/{openai-CQsomflW.js → openai-CuiHR4mv.js} +0 -0
- /package/dist/ui/assets/{path-utils-CNNVZ3-O.js → path-utils-CgbXfwyO.js} +0 -0
- /package/dist/ui/assets/{pdfjs-DEEfCfSi.js → pdfjs-C_fzykJW.js} +0 -0
- /package/dist/ui/assets/{sanitize-unicode-Dw-JFaZE.js → sanitize-unicode-ncMKN_SD.js} +0 -0
- /package/dist/ui/assets/{secret-masking-Bg1u5YcF.js → secret-masking-CXZkZ8rX.js} +0 -0
- /package/dist/ui/assets/{simple-options-GPCv4BUJ.js → simple-options-DEbfD_Ko.js} +0 -0
- /package/dist/ui/assets/{src-CNgmwAf5.js → src-Cu5WM_BM.js} +0 -0
- /package/dist/ui/assets/{xterm-CAZt1iF4.js → xterm-D5M9QCcR.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,n as t,r as n,s as r}from"./simple-options-
|
|
1
|
+
import{a as e,n as t,r as n,s as r}from"./simple-options-DEbfD_Ko.js";import{t as i}from"./sanitize-unicode-ncMKN_SD.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-jyMmIrwc.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};
|