sliccy 2.8.1 → 2.9.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.
Files changed (58) hide show
  1. package/dist/ui/assets/anthropic-BgfOCJRQ.js +39 -0
  2. package/dist/ui/assets/{azure-openai-responses-CcuuXi-2.js → azure-openai-responses-eHUnfk2s.js} +1 -1
  3. package/dist/ui/assets/{dist-Ehp5JdjU2.js → dist-BNEtmCAc2.js} +2 -2
  4. package/dist/ui/assets/{dist-BZxeNw0j.js → dist-BqCqxkrA.js} +1 -1
  5. package/dist/ui/assets/{dist-C1MjLlkt.js → dist-CxsgJFgV.js} +1 -1
  6. package/dist/ui/assets/{dist-BZOmMqub.js → dist-DPNMKo07.js} +1 -1
  7. package/dist/ui/assets/{dist-B7V-aBlB.js → dist-Sngeewv4.js} +1 -1
  8. package/dist/ui/assets/{es-DJ77iRn1.js → es-C0-6hPpi.js} +1 -1
  9. package/dist/ui/assets/{google-BANtDTmH.js → google-CvGeU3QQ.js} +1 -1
  10. package/dist/ui/assets/{google-gemini-cli-B5CjSBL1.js → google-gemini-cli-sGthcgbS.js} +1 -1
  11. package/dist/ui/assets/{google-shared-B3zPxYIU.js → google-shared-CDmR0GpA.js} +2 -2
  12. package/dist/ui/assets/google-vertex-DN1wAqZn.js +1 -0
  13. package/dist/ui/assets/{index-IDACqBJ7.js → index-BXGIjZd4.js} +997 -1000
  14. package/dist/ui/assets/{magick-wasm-frXbjDiE.js → magick-wasm-BtLTRPKb.js} +1 -1
  15. package/dist/ui/assets/{mistral-iglh-v6b.js → mistral-Bep9dNNd.js} +1 -1
  16. package/dist/ui/assets/{openai-codex-responses-G1lNlKN0.js → openai-codex-responses-CQ92hUv0.js} +2 -2
  17. package/dist/ui/assets/openai-completions-DgqBJVBn.js +5 -0
  18. package/dist/ui/assets/openai-responses-BwE7N2f4.js +1 -0
  19. package/dist/ui/assets/{openai-responses-shared-DECKIcXP.js → openai-responses-shared-Du-CnpM2.js} +1 -1
  20. package/dist/ui/assets/{pdfjs-Bc7iJ0mN.js → pdfjs-C_fzykJW.js} +1 -1
  21. package/dist/ui/assets/provider-settings-BqGdES4f.js +90 -0
  22. package/dist/ui/assets/{pyodide-B0c5k_as.js → pyodide-JXDzDQlX.js} +3 -3
  23. package/dist/ui/assets/simple-options-CP_5aL7H.js +1 -0
  24. package/dist/ui/assets/{skills-D8MzH7Ze.js → skills-CGlMp2I8.js} +1 -1
  25. package/dist/ui/assets/{slicc-editor-DqjxtQn6.js → slicc-editor-BXeXUUnd.js} +2 -2
  26. package/dist/ui/assets/{sql-wasm-CNZ88Vcf.js → sql-wasm-DsCCg8Gn.js} +1 -1
  27. package/dist/ui/index.html +11 -12
  28. package/dist/ui/lucide-icons.js +1 -1
  29. package/dist/ui/packages/webapp/index.html +11 -12
  30. package/package.json +1 -1
  31. package/dist/ui/assets/anthropic-D9AKau0f.js +0 -36
  32. package/dist/ui/assets/google-vertex-cJKBT3E8.js +0 -1
  33. package/dist/ui/assets/openai-completions-CBYiDqK8.js +0 -5
  34. package/dist/ui/assets/openai-responses-COE9LHl3.js +0 -1
  35. package/dist/ui/assets/provider-settings-4OQd2fZE.js +0 -94
  36. package/dist/ui/assets/simple-options-CkmMCYsO.js +0 -1
  37. package/dist/ui/assets/theme-DWhQUmVA.js +0 -1
  38. /package/dist/ui/assets/{__vite-browser-external-MxCBxUMe.js → __vite-browser-external-BotBUAC3.js} +0 -0
  39. /package/dist/ui/assets/{addon-fit-CniRnSyE.js → addon-fit-B0aHsvmX.js} +0 -0
  40. /package/dist/ui/assets/{bsh-watchdog-BofJVeV-.js → bsh-watchdog-DYfdvOrR.js} +0 -0
  41. /package/dist/ui/assets/{chat-fixture-CIjL7BDw.js → chat-fixture-BWvups7M.js} +0 -0
  42. /package/dist/ui/assets/{constants-MAaNOa4c.js → constants-BnzYaC4L.js} +0 -0
  43. /package/dist/ui/assets/{db-CJnk7hWr.js → db-ybNEUfR8.js} +0 -0
  44. /package/dist/ui/assets/{dist-BreQU7P7.js → dist-CPYmBmyZ.js} +0 -0
  45. /package/dist/ui/assets/{dist-CEBWSFtw.js → dist-Ct5XR8EU.js} +0 -0
  46. /package/dist/ui/assets/{github-copilot-headers-BFowJEWi.js → github-copilot-headers-BxUvy78-.js} +0 -0
  47. /package/dist/ui/assets/{hash-B7CztTb_.js → hash-BwzabXYv.js} +0 -0
  48. /package/dist/ui/assets/{headers-CrRy8cka.js → headers-BCPSYYop.js} +0 -0
  49. /package/dist/ui/assets/{lick-manager-proxy-Dw3D3AzG.js → lick-manager-proxy-BF0GrOv_.js} +0 -0
  50. /package/dist/ui/assets/{oauth-service-DUXASG7L.js → oauth-service-8Xax8Fjw.js} +0 -0
  51. /package/dist/ui/assets/{offscreen-client-Dom7iV01.js → offscreen-client-DJYi05-D.js} +0 -0
  52. /package/dist/ui/assets/{openai-5CK-qymG.js → openai-CuiHR4mv.js} +0 -0
  53. /package/dist/ui/assets/{path-utils-DFPXxD-4.js → path-utils-CgbXfwyO.js} +0 -0
  54. /package/dist/ui/assets/{preload-helper-rov5CBGT.js → preload-helper-D4M6sveU.js} +0 -0
  55. /package/dist/ui/assets/{sanitize-unicode-6mS7gbvU.js → sanitize-unicode-ncMKN_SD.js} +0 -0
  56. /package/dist/ui/assets/{secret-masking-ZNVanUmG.js → secret-masking-CXZkZ8rX.js} +0 -0
  57. /package/dist/ui/assets/{src-BqF-C6jp.js → src-Cu5WM_BM.js} +0 -0
  58. /package/dist/ui/assets/{xterm-BaLOnk9X.js → xterm-D5M9QCcR.js} +0 -0
@@ -0,0 +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-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,u as p}from"./google-shared-CDmR0GpA.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};