@qitqode/qitqode-android-arm64 0.2.14 → 0.2.15
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/bun +2 -2
- package/bundle/{chunk-6wmtbebc.js → chunk-2fged9vy.js} +1 -1
- package/bundle/{chunk-358wdvj7.js → chunk-2pw56zpj.js} +1 -1
- package/bundle/{chunk-6kch0q2d.js → chunk-2tkgtasa.js} +1 -1
- package/bundle/{chunk-07b4pkk6.js → chunk-4b56k59w.js} +1 -1
- package/bundle/{chunk-47jkx37s.js → chunk-4gzggzc0.js} +1 -1
- package/bundle/{chunk-fpzkyzny.js → chunk-4jfnhghx.js} +1 -1
- package/bundle/{chunk-4hvenszg.js → chunk-4xcwnwd6.js} +1 -1
- package/bundle/{chunk-1mfdmm2t.js → chunk-4yd2vvh6.js} +1 -1
- package/bundle/{chunk-y1v7mf1a.js → chunk-5asf8f41.js} +72 -72
- package/bundle/chunk-5re7995e.js +2 -0
- package/bundle/{chunk-nrzca9yd.js → chunk-6k0y2332.js} +1 -1
- package/bundle/{chunk-pp10epga.js → chunk-6qwnty59.js} +1 -1
- package/bundle/{chunk-fd04358e.js → chunk-6zdzbmzs.js} +298 -297
- package/bundle/{chunk-2w79k0mh.js → chunk-76wm7tw8.js} +1 -1
- package/bundle/{chunk-k6gdmqff.js → chunk-7t63wz2f.js} +1 -1
- package/bundle/{chunk-hx13a8es.js → chunk-83n11xym.js} +1 -1
- package/bundle/{chunk-e8s4mp5n.js → chunk-878sb0es.js} +1 -1
- package/bundle/{chunk-4p9fny77.js → chunk-8mqcar7f.js} +1 -1
- package/bundle/{chunk-j1bv93m4.js → chunk-ae1b15bd.js} +1 -1
- package/bundle/{chunk-avzaqy6a.js → chunk-apneazwv.js} +1 -1
- package/bundle/{chunk-gnh8c49b.js → chunk-aw5yv01t.js} +1 -1
- package/bundle/{chunk-1gdt9q05.js → chunk-b6m5tr80.js} +1 -1
- package/bundle/{chunk-7xc73qb1.js → chunk-baq0wk3q.js} +1 -1
- package/bundle/{chunk-ffz334ab.js → chunk-c1wc4b5q.js} +1 -1
- package/bundle/{chunk-2ascwm7j.js → chunk-csy1v12x.js} +1 -1
- package/bundle/{chunk-9z7y4x7q.js → chunk-djdfpezf.js} +1 -1
- package/bundle/{chunk-9zsp3qkh.js → chunk-dpbm03yh.js} +1 -1
- package/bundle/{chunk-7a4sb6q7.js → chunk-e37gd3p2.js} +1 -1
- package/bundle/{chunk-bga4kqd1.js → chunk-estc7tzt.js} +1 -1
- package/bundle/{chunk-9gxyt2ay.js → chunk-f0x3q5dj.js} +1 -1
- package/bundle/{chunk-vnstr4g1.js → chunk-ffynh19k.js} +1 -1
- package/bundle/{chunk-y3dpyz2d.js → chunk-fgr9xshx.js} +1 -1
- package/bundle/{chunk-qpggztkq.js → chunk-fswt9qc0.js} +1 -1
- package/bundle/{chunk-2g4kxtz0.js → chunk-gww6abk3.js} +1 -1
- package/bundle/{chunk-qqsj69m2.js → chunk-h6b5966p.js} +1 -1
- package/bundle/{chunk-jvx7jtm4.js → chunk-hmm0gj34.js} +1 -1
- package/bundle/{chunk-8b9z8j3z.js → chunk-hmmn62jg.js} +1 -1
- package/bundle/{chunk-26e51217.js → chunk-j89sv999.js} +1 -1
- package/bundle/{chunk-05bkxat0.js → chunk-k4wfq9cn.js} +1 -1
- package/bundle/{chunk-n6pn4f3r.js → chunk-k8dbc1p5.js} +1 -1
- package/bundle/{chunk-9thgxbze.js → chunk-k9b4005p.js} +1 -1
- package/bundle/{chunk-9znfb8f2.js → chunk-kegvr7wt.js} +1 -1
- package/bundle/{chunk-00r3he5x.js → chunk-kht2kwam.js} +1 -1
- package/bundle/{chunk-gkf7x1yj.js → chunk-knqpyc7s.js} +1 -1
- package/bundle/chunk-mdxtt9wv.js +8 -0
- package/bundle/{chunk-8jkqyf9n.js → chunk-mnjz8nqs.js} +1 -1
- package/bundle/{chunk-zpjtse0z.js → chunk-mq3w4z8k.js} +2 -2
- package/bundle/{chunk-0ks20gz1.js → chunk-mreacz8r.js} +1 -1
- package/bundle/{chunk-ykvgmje9.js → chunk-n4qbnecw.js} +1 -1
- package/bundle/{chunk-gvf6ek9f.js → chunk-pqzx9ha6.js} +1 -1
- package/bundle/{chunk-kdqhwa65.js → chunk-q896qkhe.js} +1 -1
- package/bundle/{chunk-ngygp66y.js → chunk-qk6jh32z.js} +1 -1
- package/bundle/{chunk-6d4xc6br.js → chunk-rk4c0zat.js} +1 -1
- package/bundle/{chunk-dn0437c1.js → chunk-rt49c6js.js} +1 -1
- package/bundle/{chunk-34yk99ep.js → chunk-tkbjcznz.js} +1 -1
- package/bundle/{chunk-7s9msscb.js → chunk-vgmgg994.js} +1 -1
- package/bundle/{chunk-chnr7pe5.js → chunk-vsv4p060.js} +1 -1
- package/bundle/{chunk-vzkdzhn0.js → chunk-w0t1ajhg.js} +1 -1
- package/bundle/{chunk-w4fr00s7.js → chunk-wne3v1fk.js} +1 -1
- package/bundle/{chunk-w214dwws.js → chunk-wyavgt96.js} +1 -1
- package/bundle/{chunk-ae1g5y4r.js → chunk-xxck1man.js} +1 -1
- package/bundle/{chunk-g738e799.js → chunk-y4cz5s3h.js} +1 -1
- package/bundle/{chunk-583d91xq.js → chunk-yhpwceqg.js} +1 -1
- package/bundle/{chunk-y5ydtbpd.js → chunk-yms3bsm7.js} +1 -1
- package/bundle/{chunk-wmj3xndt.js → chunk-ytfq6rn9.js} +1 -1
- package/bundle/{chunk-qz20b42s.js → chunk-yvtkx4x4.js} +1 -1
- package/bundle/{chunk-jwv6fda1.js → chunk-ywj77e0m.js} +1 -1
- package/bundle/{chunk-y18ptwk2.js → chunk-z93n3cbm.js} +1 -1
- package/bundle/{chunk-6y0wgz2j.js → chunk-zbt53cb5.js} +1 -1
- package/bundle/{chunk-bm8azfnt.js → chunk-zhhcfqhh.js} +1 -1
- package/bundle/{chunk-2q78bdtj.js → chunk-zwxp07yc.js} +1 -1
- package/bundle/index.js +3 -3
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-1a08ffyd.js +0 -2
- package/bundle/chunk-jvvctqjd.js +0 -8
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{zt as Y}from"./chunk-mnjz8nqs.js";import{Lt as p,Mt as B,Nt as O,Ot as G}from"./chunk-5dvy83ms.js";import{wP as N}from"./chunk-sh03ka27.js";var $={free:{providerID:"qlex",modelID:"free"},adaptive:{providerID:"qlex",modelID:"adaptive"},fast:{providerID:"qlex",modelID:"fast"},economical:{providerID:"qlex",modelID:"economical"},planner:{providerID:"qlex",modelID:"planner"},repair:{providerID:"qlex",modelID:"repair"},"max-int":{providerID:"qlex",modelID:"max-int"},orchestrated:{providerID:"qlex",modelID:"orchestrated"}},X=["free","fast","economical","adaptive","planner","repair","max-int","orchestrated"],Q=new Set(["decisions","quick-decisions"]);function u(x){let J=x?.split("/").at(-1);return J!==void 0&&Q.has(J)}var V={free:"Free (no cost)",adaptive:"Adaptive",fast:"Fast",economical:"Economy",planner:"Planner",repair:"Repair","max-int":"Max intelligence",orchestrated:"Orchestrated"},M={free:{output:64000,recommendedStep:16000,context:1e6,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:512,recommendedTotal:16000,viableTotalFloor:9600},fast:{output:32768,recommendedStep:32768,context:1048576,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32768,viableTotalFloor:2048},economical:{output:128000,recommendedStep:32000,context:1e6,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:512,recommendedTotal:32000,viableTotalFloor:9600},adaptive:{output:128000,recommendedStep:32000,context:1050000,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},planner:{output:128000,recommendedStep:32000,context:1050000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},repair:{output:128000,recommendedStep:32000,context:1050000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},"max-int":{output:128000,recommendedStep:32000,context:1e6,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},orchestrated:{output:128000,recommendedStep:32000,context:200000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048}},H={},F="pending",P=new Set;function h(){return F}function b(){F="pending",w()}function y(x){return P.add(x),()=>P.delete(x)}function w(){for(let x of[...P])try{x()}catch{}}function q(){for(let x of Object.keys(H))delete H[x];F="unavailable",w()}function f(x){return typeof x==="number"&&Number.isFinite(x)&&x>=0&&x<=10}function c(x){if(x===void 0){q();return}let J=x!==null&&typeof x==="object"&&!Array.isArray(x)?x:void 0;if(J?.success===!1){q();return}let j=J?.success===!0&&Object.prototype.hasOwnProperty.call(J,"data")?J.data:x,W={};if(j===null||typeof j!=="object"||Array.isArray(j)){q();return}for(let[K,Z]of Object.entries(j)){if(!Z||typeof Z!=="object"||Array.isArray(Z)){q();return}let z=Z;if(!f(z.intelligence)||!f(z.speed)||!f(z.cost)){q();return}W[K]={intelligence:z.intelligence,speed:z.speed,cost:z.cost}}for(let K of Object.keys(H))delete H[K];Object.assign(H,W),F="live",w()}function C(x){if(!Array.isArray(x)||x.length===0)return;let J=x.filter((K)=>!Q.has(K.id));if(J.length===0){for(let K of Q)delete $[K],delete V[K];return}let j={},W={};for(let K of J){let Z=$[K.id],z=K.modelID??Z?.modelID??K.id;j[K.id]={providerID:K.providerID??Z?.providerID??"qlex",modelID:u(z)?Z?.modelID??K.id:z},W[K.id]=K.label??V[K.id]??K.id}for(let K of Object.keys($))delete $[K];Object.assign($,j);for(let K of Object.keys(V))delete V[K];Object.assign(V,W)}var D={};N(D,{tiers:()=>d,tierRatingsState:()=>h,tierRatings:()=>E,tierBudgetFacts:()=>v,streamUrl:()=>m,streamBaseUrl:()=>R,sanitizeUpstreamError:()=>s,qlexProviderMeta:()=>n,onTierRatingsChange:()=>y,omniqueryBaseUrl:()=>l,mergeLiveTiers:()=>o,mergeLiveTierRatings:()=>_,markTierRatingsUnavailable:()=>q,loadLiveRatings:()=>S,isDecisionTier:()=>k,evaluatePermission:()=>I,copy:()=>r,beginTierRatingsLoad:()=>b,bashPrefixWith:()=>T,assertChatTierSupported:()=>g,TIER_RATINGS:()=>H,AGENT_PROMPT_NAMES:()=>a});var U=3,L=[250,750];async function S(x){for(let J=0;J<U;J++){let j=await x();if(j!==void 0)return j;let W=L[J];if(W!==void 0)await new Promise((K)=>setTimeout(K,W))}return}function o(x){C(x)}function _(x){c(x)}function d(){let x=new Set(X);return[...X.filter((j)=>$[j]!==void 0),...Object.keys($).filter((j)=>!x.has(j))].flatMap((j)=>{if(Q.has(j))return[];let W=$[j];if(!W)return[];return[{id:j,label:V[j]??j,providerID:W.providerID,modelID:W.modelID}]})}function v(x){return M[x]}function E(){return H}function k(x){let J=x.startsWith("qlex/")?x.slice(5):x;return Q.has(J)}function g(x){if(k(x))throw Error(`Tier "${x}" is not available for chat. QitQode does not use decision-only models. Use one of the available chat tiers: ${X.join(", ")}.`);if(!$[x])throw Error(`Tier "${x}" is not a recognized chat tier. Available chat tiers: ${X.join(", ")}.`)}function I(x,J,...j){return j.flat().findLast((Z)=>Y(x,Z.permission)&&Y(J,Z.pattern))??{action:"ask",permission:x,pattern:"*"}}function T(x,J){for(let j=J.length;j>0;j--){let W=J.slice(0,j).join(" "),K=x[W];if(K!==void 0)return J.slice(0,K)}if(J.length===0)return[];return J.slice(0,1)}function A(){return(process.env.QITQODE_BACKEND_URL?.trim()||p).replace(/\/+$/,"")}function m(){return`${A()}/streamTier`}function R(){return new URL(m()).origin}function l(){return A()}function n(){return B}function s(x){return O(x)}function r(){return G}var a=["generate","explore","dream","distill","summary","compaction","title"];export{$ as dt,D as et};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{dg as a,eg as b}from"./chunk-5rvvfgfy.js";import"./chunk-
|
|
2
|
+
import{dg as a,eg as b}from"./chunk-5rvvfgfy.js";import"./chunk-4yd2vvh6.js";import"./chunk-fkq0v5qv.js";import"./chunk-1e75j4m1.js";import"./chunk-mnjz8nqs.js";import"./chunk-6yshpz0z.js";import"./chunk-5dvy83ms.js";import"./chunk-ffx0cr44.js";import"./chunk-33mzqyyb.js";import"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-wfpnv00c.js";import"./chunk-9kc2th5c.js";import"./chunk-sh03ka27.js";export{a as start,b as Heap};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Qs as sZ}from"./chunk-1e75j4m1.js";import{et as J$}from"./chunk-
|
|
2
|
+
import{Qs as sZ}from"./chunk-1e75j4m1.js";import{et as J$}from"./chunk-5re7995e.js";import{Pt as R,Yt as C}from"./chunk-5dvy83ms.js";import{ju as v,mu as YZ}from"./chunk-ffx0cr44.js";import{gI as X$}from"./chunk-9kc2th5c.js";import{uP as rZ,wP as XZ,yP as GZ}from"./chunk-sh03ka27.js";function X1({onRequest:Z,onSseError:$,onSseEvent:X,responseTransformer:J,responseValidator:G,sseDefaultRetryDelay:V,sseMaxRetryAttempts:W,sseMaxRetryDelay:z,sseSleepFn:O,url:Q,...L}){let M,D=O??((U)=>new Promise((B)=>setTimeout(B,U)));return{stream:async function*(){let U=V??3000,B=0,I=L.signal??new AbortController().signal;while(!0){if(I.aborted)break;B++;let F=L.headers instanceof Headers?L.headers:new Headers(L.headers);if(M!==void 0)F.set("Last-Event-ID",M);try{let P={redirect:"follow",...L,body:L.serializedBody,headers:F,signal:I},b=new Request(Q,P);if(Z)b=await Z(Q,P);let S=await(L.fetch??globalThis.fetch)(b);if(!S.ok)throw Error(`SSE failed: ${S.status} ${S.statusText}`);if(!S.body)throw Error("No body in SSE response");let T=S.body.pipeThrough(new TextDecoderStream).getReader(),x="",a$=()=>{try{T.cancel()}catch{}};I.addEventListener("abort",a$);try{while(!0){let{done:TZ,value:wZ}=await T.read();if(TZ)break;x+=wZ,x=x.replace(/\r\n?/g,`
|
|
3
3
|
`);let t$=x.split(`
|
|
4
4
|
|
|
5
5
|
`);x=t$.pop()??"";for(let FZ of t$){let HZ=FZ.split(`
|