sliccy 2.8.0 → 2.8.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 (51) hide show
  1. package/dist/ui/assets/{anthropic-H12_Atst.js → anthropic-D9AKau0f.js} +1 -1
  2. package/dist/ui/assets/{azure-openai-responses-BFJMXroi.js → azure-openai-responses-CcuuXi-2.js} +1 -1
  3. package/dist/ui/assets/{dist-Sngeewv4.js → dist-B7V-aBlB.js} +1 -1
  4. package/dist/ui/assets/{dist-DPNMKo07.js → dist-BZOmMqub.js} +1 -1
  5. package/dist/ui/assets/{dist-BqCqxkrA.js → dist-BZxeNw0j.js} +1 -1
  6. package/dist/ui/assets/{dist-CxsgJFgV.js → dist-C1MjLlkt.js} +1 -1
  7. package/dist/ui/assets/{dist-BNEtmCAc2.js → dist-Ehp5JdjU2.js} +2 -2
  8. package/dist/ui/assets/{es-Cb53P3vr.js → es-DJ77iRn1.js} +1 -1
  9. package/dist/ui/assets/{google-CBNil8p2.js → google-BANtDTmH.js} +1 -1
  10. package/dist/ui/assets/{google-gemini-cli-CBH9v3m0.js → google-gemini-cli-B5CjSBL1.js} +1 -1
  11. package/dist/ui/assets/{google-shared-jyMmIrwc.js → google-shared-B3zPxYIU.js} +1 -1
  12. package/dist/ui/assets/{google-vertex-BrN3Tz3e.js → google-vertex-cJKBT3E8.js} +1 -1
  13. package/dist/ui/assets/{index-B87TbZRu.js → index-IDACqBJ7.js} +985 -986
  14. package/dist/ui/assets/{magick-wasm-BtLTRPKb.js → magick-wasm-frXbjDiE.js} +1 -1
  15. package/dist/ui/assets/{mistral-ROS5ivdx.js → mistral-iglh-v6b.js} +1 -1
  16. package/dist/ui/assets/{openai-codex-responses-C9PwP_vv.js → openai-codex-responses-G1lNlKN0.js} +1 -1
  17. package/dist/ui/assets/{openai-completions-C6XmF6cd.js → openai-completions-CBYiDqK8.js} +1 -1
  18. package/dist/ui/assets/{openai-responses-C5uhM4oI.js → openai-responses-COE9LHl3.js} +1 -1
  19. package/dist/ui/assets/{openai-responses-shared-DhRsugmK.js → openai-responses-shared-DECKIcXP.js} +1 -1
  20. package/dist/ui/assets/{pdfjs-C_fzykJW.js → pdfjs-Bc7iJ0mN.js} +1 -1
  21. package/dist/ui/assets/{provider-settings-DP1WW4DW.js → provider-settings-4OQd2fZE.js} +4 -4
  22. package/dist/ui/assets/{pyodide-JXDzDQlX.js → pyodide-B0c5k_as.js} +3 -3
  23. package/dist/ui/assets/{skills-CZB3ZWfP.js → skills-D8MzH7Ze.js} +1 -1
  24. package/dist/ui/assets/{slicc-editor-BXeXUUnd.js → slicc-editor-DqjxtQn6.js} +2 -2
  25. package/dist/ui/assets/{sql-wasm-DsCCg8Gn.js → sql-wasm-CNZ88Vcf.js} +1 -1
  26. package/dist/ui/assets/theme-DWhQUmVA.js +1 -0
  27. package/dist/ui/index.html +12 -11
  28. package/dist/ui/packages/webapp/index.html +12 -11
  29. package/package.json +1 -1
  30. /package/dist/ui/assets/{__vite-browser-external-BotBUAC3.js → __vite-browser-external-MxCBxUMe.js} +0 -0
  31. /package/dist/ui/assets/{addon-fit-B0aHsvmX.js → addon-fit-CniRnSyE.js} +0 -0
  32. /package/dist/ui/assets/{bsh-watchdog-DYfdvOrR.js → bsh-watchdog-BofJVeV-.js} +0 -0
  33. /package/dist/ui/assets/{chat-fixture-BWvups7M.js → chat-fixture-CIjL7BDw.js} +0 -0
  34. /package/dist/ui/assets/{constants-BnzYaC4L.js → constants-MAaNOa4c.js} +0 -0
  35. /package/dist/ui/assets/{db-ybNEUfR8.js → db-CJnk7hWr.js} +0 -0
  36. /package/dist/ui/assets/{dist-CPYmBmyZ.js → dist-BreQU7P7.js} +0 -0
  37. /package/dist/ui/assets/{dist-Ct5XR8EU.js → dist-CEBWSFtw.js} +0 -0
  38. /package/dist/ui/assets/{github-copilot-headers-BxUvy78-.js → github-copilot-headers-BFowJEWi.js} +0 -0
  39. /package/dist/ui/assets/{hash-BwzabXYv.js → hash-B7CztTb_.js} +0 -0
  40. /package/dist/ui/assets/{headers-BCPSYYop.js → headers-CrRy8cka.js} +0 -0
  41. /package/dist/ui/assets/{lick-manager-proxy-BF0GrOv_.js → lick-manager-proxy-Dw3D3AzG.js} +0 -0
  42. /package/dist/ui/assets/{oauth-service-8Xax8Fjw.js → oauth-service-DUXASG7L.js} +0 -0
  43. /package/dist/ui/assets/{offscreen-client-DJYi05-D.js → offscreen-client-Dom7iV01.js} +0 -0
  44. /package/dist/ui/assets/{openai-CuiHR4mv.js → openai-5CK-qymG.js} +0 -0
  45. /package/dist/ui/assets/{path-utils-CgbXfwyO.js → path-utils-DFPXxD-4.js} +0 -0
  46. /package/dist/ui/assets/{preload-helper-D4M6sveU.js → preload-helper-rov5CBGT.js} +0 -0
  47. /package/dist/ui/assets/{sanitize-unicode-ncMKN_SD.js → sanitize-unicode-6mS7gbvU.js} +0 -0
  48. /package/dist/ui/assets/{secret-masking-CXZkZ8rX.js → secret-masking-ZNVanUmG.js} +0 -0
  49. /package/dist/ui/assets/{simple-options-DEbfD_Ko.js → simple-options-CkmMCYsO.js} +0 -0
  50. /package/dist/ui/assets/{src-Cu5WM_BM.js → src-BqF-C6jp.js} +0 -0
  51. /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-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};
1
+ import{a as e,n as t,r as n,s as r}from"./simple-options-CkmMCYsO.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}from"./google-shared-B3zPxYIU.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};