sliccy 2.38.0 → 2.38.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/{adobe-D8oLWIo-.js → adobe-_jqzAHnb.js} +1 -1
- package/dist/ui/assets/{agent-bridge-BT58mRch.js → agent-bridge-DJqE0yxh.js} +1 -1
- package/dist/ui/assets/{anthropic-BzHgUOet.js → anthropic-DHVzBYWh.js} +4 -4
- package/dist/ui/assets/azure-openai-responses-B9Q4eFa-.js +1 -0
- package/dist/ui/assets/azure-openai-unPzVCoj.js +1 -0
- package/dist/ui/assets/bedrock-camp-C-6MRyDN.js +4 -0
- package/dist/ui/assets/{cdp-DBSIS-0S.js → cdp-CcRorv5t.js} +2 -2
- package/dist/ui/assets/cost-command-8hWDFO7b.js +1 -0
- package/dist/ui/assets/diagnostics-BowEoTPl.js +1 -0
- package/dist/ui/assets/{dist-9z8P-p4z.js → dist-BqCqxkrA.js} +1 -1
- package/dist/ui/assets/{dist-yvpVc8xu.js → dist-CxsgJFgV.js} +1 -1
- package/dist/ui/assets/{dist-ANJCbHMD.js → dist-DPNMKo07.js} +1 -1
- package/dist/ui/assets/{dist-AKkMKegp.js → dist-Sngeewv4.js} +1 -1
- package/dist/ui/assets/{fs-BPmY0mDq.js → fs-B_7wRZYR.js} +3 -3
- package/dist/ui/assets/github-XAOxnOvj.js +2 -0
- package/dist/ui/assets/google-Dc-LVjXz.js +1 -0
- package/dist/ui/assets/google-shared-b8limp-0.js +11 -0
- package/dist/ui/assets/google-vertex-DhlxvV6o.js +1 -0
- package/dist/ui/assets/{index-DrT0PkfE.js → index-CvSIJilM.js} +150 -159
- package/dist/ui/assets/{kernel-worker-BAPLIjYj.js → kernel-worker-DTIz7wbi.js} +946 -938
- package/dist/ui/assets/{local-llm-Cj_-OnEN.js → local-llm-CjyL6Gqh.js} +1 -1
- package/dist/ui/assets/{magick-wasm-CzvO3i7g.js → magick-wasm-Cijvzqtr.js} +1 -1
- package/dist/ui/assets/{mistral-M4pPbmnt.js → mistral-BoqLGshS.js} +3 -3
- package/dist/ui/assets/mount-BURTK_uC.js +2 -0
- package/dist/ui/assets/nuke-command-D9sOFZBF.js +1 -0
- package/dist/ui/assets/{offscreen-client-hIAVAl1w.js → offscreen-client-Bu93TuML.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-CXbj5Tg9.js → onboarding-orchestrator-DKu95SgW.js} +1 -1
- package/dist/ui/assets/openai-codex-responses-CdFzoD2a.js +7 -0
- package/dist/ui/assets/openai-completions-DGTboNX8.js +5 -0
- package/dist/ui/assets/openai-responses-CiEgSX8E.js +1 -0
- package/dist/ui/assets/openai-responses-shared-CKkxIfVG.js +12 -0
- package/dist/ui/assets/page-storage-sync-BPAEqPof.js +1 -0
- package/dist/ui/assets/provider-settings-DxvzmWRl.js +2 -0
- package/dist/ui/assets/{remote-terminal-view-vwYWuPgI.js → remote-terminal-view-Xy5UcOBF.js} +1 -1
- package/dist/ui/assets/sanitize-unicode-DANurEy1.js +1 -0
- package/dist/ui/assets/simple-options-B0cR4giT.js +1 -0
- package/dist/ui/assets/{slicc-editor-DtmeEExo.js → slicc-editor-Dlpd9DEK.js} +2 -2
- package/dist/ui/assets/{spawn-CAcuh2br.js → spawn-DVbragFs.js} +1 -1
- package/dist/ui/index.html +9 -12
- package/dist/ui/packages/webapp/index.html +9 -12
- package/package.json +1 -1
- package/dist/ui/assets/azure-openai-DOBSCR_w.js +0 -1
- package/dist/ui/assets/azure-openai-responses-D1WBQ58g.js +0 -1
- package/dist/ui/assets/bedrock-camp-B-qhW5Sy.js +0 -4
- package/dist/ui/assets/cost-command-B6bKrOfT.js +0 -1
- package/dist/ui/assets/github-DC1z45QL.js +0 -2
- package/dist/ui/assets/google-BgfYUo8-.js +0 -1
- package/dist/ui/assets/google-shared-LUt7az8j.js +0 -11
- package/dist/ui/assets/google-vertex-PR1FZzCw.js +0 -1
- package/dist/ui/assets/mount-J9mNhaDL.js +0 -2
- package/dist/ui/assets/openai-codex-responses-CfekLFYj.js +0 -7
- package/dist/ui/assets/openai-completions-B0Nl8qvg.js +0 -5
- package/dist/ui/assets/openai-responses-BFbKH7tf.js +0 -1
- package/dist/ui/assets/page-storage-sync-2rMnxQPr.js +0 -1
- package/dist/ui/assets/provider-settings-Acu8xpnh.js +0 -2
- package/dist/ui/assets/simple-options-xknIywaW.js +0 -1
- /package/dist/ui/assets/{addon-fit-PERB1HRF.js → addon-fit-B0aHsvmX.js} +0 -0
- /package/dist/ui/assets/{azure-ai-foundry-DVqxYCDH.js → azure-ai-foundry-D77Y8HnD.js} +0 -0
- /package/dist/ui/assets/{chat-fixture-faom77uc.js → chat-fixture-CCNSFiNJ.js} +0 -0
- /package/dist/ui/assets/{dist-7wqtSoT3.js → dist-Ct5XR8EU.js} +0 -0
- /package/dist/ui/assets/{dist-BYoCEWmq.js → dist-zlAHCcD1.js} +0 -0
- /package/dist/ui/assets/{git-config-47_ySgKl.js → git-config-BoQzX7Xi.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-DFUtSIuj.js → github-copilot-headers-DLK82thn.js} +0 -0
- /package/dist/ui/assets/{hash-Bt1aVMQ3.js → hash-BwzabXYv.js} +0 -0
- /package/dist/ui/assets/{headers-C5V-E251.js → headers-CeeP1wvy.js} +0 -0
- /package/dist/ui/assets/{oauth-service-BKtXASqw.js → oauth-service-BoyG8vZW.js} +0 -0
- /package/dist/ui/assets/{openai-CpTflTb1.js → openai-NzrumIkM.js} +0 -0
- /package/dist/ui/assets/{path-utils-Zd1dbko2.js → path-utils-CNNVZ3-O.js} +0 -0
- /package/dist/ui/assets/{rum-wVO4iYd-.js → rum-DCU8sePD.js} +0 -0
- /package/dist/ui/assets/{sprinkle-bridge-channel-CoblvZNE.js → sprinkle-bridge-channel-Bq3JBngw.js} +0 -0
- /package/dist/ui/assets/{src-CtySarJL.js → src-oRxlT3fT.js} +0 -0
- /package/dist/ui/assets/{tray-follower-status-O2aOn13V.js → tray-follower-status-BrSKMPaE.js} +0 -0
- /package/dist/ui/assets/{xterm-BxvFlCwN.js → xterm-D5M9QCcR.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,n,s as r}from"./simple-options-B0cR4giT.js";import{t as i}from"./sanitize-unicode-DANurEy1.js";import{a,c as o,i as s,l as c,n as l,o as u,r as d,s as f,t as p}from"./google-shared-b8limp-0.js";var m=`v1`,h=`gcp-vertex-credentials`,g={THINKING_LEVEL_UNSPECIFIED:c.THINKING_LEVEL_UNSPECIFIED,MINIMAL:c.MINIMAL,LOW:c.LOW,MEDIUM:c.MEDIUM,HIGH:c.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 o=T(i),c=o?x(t,o,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=d(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=u(m.thinkingSignature,t.thoughtSignature),a.push({type:`thinking_delta`,contentIndex:g(),delta:t.text,partial:e})):(m.text+=t.text,m.textSignature=u(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=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(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=n(e,i,void 0);if(!i?.reasoning)return v(e,r,{...a,thinking:{enabled:!1}});let o=t(e,i.reasoning),s=o===`off`?`high`:o,c=e;return A(c)||j(c)?v(e,r,{...a,thinking:{enabled:!0,level:N(s,c)}}):v(e,r,{...a,thinking:{enabled:!0,budgetTokens:P(c,s,i.thinkingBudgets)}})};function b(e,t,n,r){return new f({vertexai:!0,project:t,location:n,apiVersion:m,httpOptions:S(e,r)})}function x(e,t,n){return new f({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=o.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=p(e,t),o={};n.temperature!==void 0&&(o.temperature=n.temperature),n.maxTokens!==void 0&&(o.maxOutputTokens=n.maxTokens);let s={...Object.keys(o).length>0&&o,...t.systemPrompt&&{systemInstruction:i(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:l(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?s.toolConfig={functionCallingConfig:{mode:a(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=g[n.thinking.level],s.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(s.thinkingConfig=M(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 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:c.LOW}:j(t)?{thinkingLevel:c.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};
|