sliccy 2.2.0 → 2.2.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/README.md +1 -1
- package/dist/ui/assets/__vite-browser-external-BC516C8G.js +1 -0
- package/dist/ui/assets/{anthropic-BDXWvzdA.js → anthropic-CMlPlDIk.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-CKLc7IC4.js → azure-openai-responses-D8KcZhBl.js} +1 -1
- package/dist/ui/assets/{cdp-CtEFOd-O.js → cdp-CsCvDwW3.js} +3 -3
- package/dist/ui/assets/chunk-jRWAZmH_.js +1 -0
- package/dist/ui/assets/{cost-command-CGzKvuNW.js → cost-command-DBzah9S9.js} +6 -6
- package/dist/ui/assets/{dist-CBC7OjhO.js → dist-C43FKPek.js} +2 -2
- package/dist/ui/assets/{dist--SipPaGB.js → dist-CLNuUmSq.js} +2 -2
- package/dist/ui/assets/{dist-BQ8A4EPf.js → dist-CWhXzJlW.js} +1 -1
- package/dist/ui/assets/dist-CYRMRTTO.js +1 -0
- package/dist/ui/assets/{dist-BlyYz71N.js → dist-DJK5C7yO.js} +1 -1
- package/dist/ui/assets/{dist-BbDHofFB.js → dist-DhTZTSy5.js} +1 -1
- package/dist/ui/assets/{es-DVVaE6zS.js → es-QN9gLFmd.js} +2 -2
- package/dist/ui/assets/{fs-DUWoGzSN.js → fs-bsu2i7du.js} +1 -1
- package/dist/ui/assets/{google-g3eUXCCV.js → google-DO7yvPO4.js} +1 -1
- package/dist/ui/assets/{google-gemini-cli-CiaDQBZY.js → google-gemini-cli-DdA3nx6W.js} +1 -1
- package/dist/ui/assets/{google-shared-Bc8yrzvw.js → google-shared-BWQFIy8i.js} +2 -2
- package/dist/ui/assets/{google-vertex-Cf-hp1s4.js → google-vertex-C5s4LVmo.js} +1 -1
- package/dist/ui/assets/{index-DvKgWKET.js → index-C6_QGeWn.js} +320 -294
- package/dist/ui/assets/index-CWVW-AQ9.css +1 -0
- package/dist/ui/assets/{json-parse-JW3qhabb.js → json-parse-Dn8fsQhn.js} +1 -1
- package/dist/ui/assets/{magick-wasm-D4KIq0y6.js → magick-wasm-DA8eLvGf.js} +1 -1
- package/dist/ui/assets/{mistral-CxSnkoPt.js → mistral-BPcBoGoy.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-CX6LCE-l.js → openai-codex-responses-N7fKFsLN.js} +1 -1
- package/dist/ui/assets/{openai-completions-CUKgrvVN.js → openai-completions-rv4ohN_x.js} +1 -1
- package/dist/ui/assets/{openai-responses-BthT_lNI.js → openai-responses-D4uieQSd.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-ByzYcNN-.js → openai-responses-shared-CUFAAR--.js} +1 -1
- package/dist/ui/assets/{pdfjs-Dhk_E7h9.js → pdfjs-kFXy8Q7j.js} +7 -7
- package/dist/ui/assets/{provider-settings-lHR3i2bS.js → provider-settings-DUchoI6k.js} +4 -4
- package/dist/ui/assets/{pyodide-3iToeyDO.js → pyodide-Doh5i2Gj.js} +3 -3
- package/dist/ui/assets/skills-CTCIxQqH.js +9 -0
- package/dist/ui/assets/{slicc-editor-LteGL_eD.js → slicc-editor-CWWaxccP.js} +2 -2
- package/dist/ui/assets/{sql-wasm-Z190sfbE.js → sql-wasm-Dx6P9mA8.js} +1 -1
- package/dist/ui/index.html +17 -18
- package/dist/ui/packages/webapp/index.html +17 -18
- package/package.json +3 -3
- package/dist/ui/assets/__vite-browser-external-CGni-twv.js +0 -1
- package/dist/ui/assets/agent-bridge-BQWM5sQP.js +0 -1
- package/dist/ui/assets/chunk-zsgVPwQN.js +0 -1
- package/dist/ui/assets/dist-CustHeWI.js +0 -1
- package/dist/ui/assets/index-wKcIJS6-.css +0 -1
- package/dist/ui/assets/lick-manager-D1bfS_SD.js +0 -1
- package/dist/ui/assets/pako-CM3trPL8.js +0 -1
- package/dist/ui/assets/provider-settings-CPGfcyq6.js +0 -1
- package/dist/ui/assets/providers-CgyG8QfW.js +0 -1
- package/dist/ui/assets/secret-env-D4m7q3Dc.js +0 -1
- package/dist/ui/assets/shell-DKDHQ8Ux.js +0 -1
- package/dist/ui/assets/skills-6ga2RZhv.js +0 -1
- package/dist/ui/assets/skills-agEj4Eg8.js +0 -9
- package/dist/ui/assets/sprinkle-renderer-Dj8JsQhW.js +0 -1
- /package/dist/ui/assets/{addon-fit-Dbzb3n3e.js → addon-fit-CVV7fTw9.js} +0 -0
- /package/dist/ui/assets/{bsh-watchdog-XFikI_DX.js → bsh-watchdog-C8qkdGvF.js} +0 -0
- /package/dist/ui/assets/{constants-Dqhmtsws.js → constants-DdIXxN9e.js} +0 -0
- /package/dist/ui/assets/{db-UiVJ_81p.js → db-CmHnV4DS.js} +0 -0
- /package/dist/ui/assets/{dist-zlAHCcD1.js → dist-B3YOuOiy.js} +0 -0
- /package/dist/ui/assets/{env-api-keys-qwjmVNjS.js → env-api-keys-7VVTY3n7.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-Bz8q1fNX.js → github-copilot-headers-C0FOlzjL.js} +0 -0
- /package/dist/ui/assets/{hash-D2-j0Bls.js → hash-CQjDwcjR.js} +0 -0
- /package/dist/ui/assets/{lick-manager-proxy-_h8oUTsW.js → lick-manager-proxy-B2bMdplq.js} +0 -0
- /package/dist/ui/assets/{oauth-service-dTQ65zA2.js → oauth-service-BoyG8vZW.js} +0 -0
- /package/dist/ui/assets/{offscreen-client-vFDPYD-S.js → offscreen-client-CD0tozA4.js} +0 -0
- /package/dist/ui/assets/{openai-Cn7eGqwa.js → openai-CQsomflW.js} +0 -0
- /package/dist/ui/assets/{path-utils-DAY6ORUp.js → path-utils-CNNVZ3-O.js} +0 -0
- /package/dist/ui/assets/{sanitize-unicode-DmvZGa56.js → sanitize-unicode-BOCYaWok.js} +0 -0
- /package/dist/ui/assets/{secret-masking-B0alBbYk.js → secret-masking-Bqg5RXZg.js} +0 -0
- /package/dist/ui/assets/{simple-options-DZXt61Q2.js → simple-options-B6uouUxh.js} +0 -0
- /package/dist/ui/assets/{src-DGdmJN2h.js → src-CNgmwAf5.js} +0 -0
- /package/dist/ui/assets/{tray-follower-status-LqS6IS1u.js → tray-follower-status-BlQSlF6m.js} +0 -0
- /package/dist/ui/assets/{xterm-DDjY5F5A.js → xterm-ucbPh68r.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-B6uouUxh.js";import{t as i}from"./sanitize-unicode-BOCYaWok.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-BWQFIy8i.js";var p=`v1`,m={THINKING_LEVEL_UNSPECIFIED:s.THINKING_LEVEL_UNSPECIFIED,MINIMAL:s.MINIMAL,LOW:s.LOW,MEDIUM:s.MEDIUM,HIGH:s.HIGH},h=0,g=(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=b(i),c=s?y(t,s,i?.headers):v(t,S(i),C(i),i?.headers),l=w(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,g=e.content,_=()=>g.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:g.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()}_${++h}`: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},_=(e,r,i)=>{let a=t(e,i,void 0);if(!i?.reasoning)return g(e,r,{...a,thinking:{enabled:!1}});let o=n(i.reasoning),s=e;return T(s)||E(s)?g(e,r,{...a,thinking:{enabled:!0,level:O(o,s)}}):g(e,r,{...a,thinking:{enabled:!0,budgetTokens:k(s,o,i.thinkingBudgets)}})};function v(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 y(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 b(e){let t=e?.apiKey?.trim()||{}.GOOGLE_CLOUD_API_KEY?.trim();if(!(!t||x(t)))return t}function x(e){return/^<[^>]+>$/.test(e)}function S(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 C(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 w(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=m[n.thinking.level],o.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(o.thinkingConfig=D(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 T(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function E(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function D(e){let t=e;return T(t)?{thinkingLevel:s.LOW}:E(t)?{thinkingLevel:s.MINIMAL}:{thinkingBudget:0}}function O(e,t){if(T(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 k(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{g as streamGoogleVertex,_ as streamSimpleGoogleVertex};
|