@qitqode/qitqode-android-arm64 0.2.3 → 0.2.5
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/bundle/{chunk-52w60e1f.js → chunk-03bp59wq.js} +1 -1
- package/bundle/{chunk-083wpv6r.js → chunk-0g7acwt1.js} +1 -1
- package/bundle/{chunk-8mm92zn2.js → chunk-0j5rzaxx.js} +1 -1
- package/bundle/{chunk-fsahzvd5.js → chunk-13rsd5vv.js} +1 -1
- package/bundle/{chunk-xq2kcar4.js → chunk-2b3fn9xv.js} +1 -1
- package/bundle/{chunk-65t9b9eq.js → chunk-2nv1scj9.js} +1 -1
- package/bundle/{chunk-msdypt5f.js → chunk-36xm6mgm.js} +1 -1
- package/bundle/{chunk-0nbteyb0.js → chunk-3akv2xqh.js} +1 -1
- package/bundle/{chunk-nftgx6bz.js → chunk-3cqrz7g1.js} +1 -1
- package/bundle/{chunk-qqxrvyx0.js → chunk-41cq88js.js} +1 -1
- package/bundle/{chunk-0nqf1k20.js → chunk-44723rmb.js} +1 -1
- package/bundle/{chunk-cejyed1j.js → chunk-45k7qm85.js} +1 -1
- package/bundle/{chunk-qznr1emx.js → chunk-52frd9p0.js} +4 -4
- package/bundle/{chunk-h99tj1e4.js → chunk-5gsdnejs.js} +1 -1
- package/bundle/{chunk-4websxrs.js → chunk-5qsr1q4t.js} +1 -1
- package/bundle/{chunk-rscfes01.js → chunk-6sxx56b2.js} +1 -1
- package/bundle/{chunk-hzrxmdqm.js → chunk-6t48g4x5.js} +1 -1
- package/bundle/{chunk-3atcc483.js → chunk-7ayb3k5p.js} +1 -1
- package/bundle/{chunk-4dnntf9k.js → chunk-826r9svy.js} +1 -1
- package/bundle/{chunk-ha8b2n4x.js → chunk-89b4k585.js} +1 -1
- package/bundle/{chunk-tdyvps17.js → chunk-93gdcrbc.js} +1 -1
- package/bundle/{chunk-n0b0dfqk.js → chunk-98b7ecrk.js} +1 -1
- package/bundle/{chunk-88q0mtgp.js → chunk-a9a0cwmf.js} +1 -1
- package/bundle/{chunk-56v352f8.js → chunk-acpjrs02.js} +1 -1
- package/bundle/{chunk-78pt314g.js → chunk-af81r4v7.js} +1 -1
- package/bundle/{chunk-g06a4chw.js → chunk-bbdp6dj4.js} +1 -1
- package/bundle/{chunk-7knnz5f1.js → chunk-bch1rj72.js} +1 -1
- package/bundle/{chunk-0vxnkstz.js → chunk-c55f729m.js} +1 -1
- package/bundle/{chunk-nvwzam7a.js → chunk-cfjjx3sh.js} +1 -1
- package/bundle/{chunk-z4kjxtjq.js → chunk-cq9sd32h.js} +1 -1
- package/bundle/{chunk-qktzz0sy.js → chunk-ct693qsd.js} +1 -1
- package/bundle/{chunk-zgv1e250.js → chunk-dt5aae7t.js} +1 -1
- package/bundle/{chunk-enmsp09e.js → chunk-eb4y8bjv.js} +1 -1
- package/bundle/{chunk-dqp4nmxs.js → chunk-fxx0z4yb.js} +1 -1
- package/bundle/{chunk-4086z5ys.js → chunk-g3y5xemb.js} +1 -1
- package/bundle/{chunk-262s2yz2.js → chunk-h5pnng66.js} +1 -1
- package/bundle/{chunk-yvn8dmah.js → chunk-hgmqz75r.js} +1 -1
- package/bundle/{chunk-nbd13scz.js → chunk-jxwey5py.js} +1 -1
- package/bundle/{chunk-s2gg38y0.js → chunk-jyt2xvha.js} +1 -1
- package/bundle/{chunk-h823m51m.js → chunk-kdj7xvz7.js} +1 -1
- package/bundle/{chunk-a7wmadf1.js → chunk-kf2f3mza.js} +1 -1
- package/bundle/{chunk-0vakk88p.js → chunk-kj8cmn7z.js} +1 -1
- package/bundle/{chunk-rp9r3cvt.js → chunk-kn8w69g9.js} +1 -1
- package/bundle/{chunk-epgcsjfp.js → chunk-kxwkab31.js} +1 -1
- package/bundle/{chunk-49xhybc2.js → chunk-m7v4ky0y.js} +1 -1
- package/bundle/{chunk-96wwns35.js → chunk-mtpzcc14.js} +1 -1
- package/bundle/{chunk-jvybgsz5.js → chunk-np12r26m.js} +1 -1
- package/bundle/{chunk-bvf2dcq4.js → chunk-nw3e93y8.js} +1 -1
- package/bundle/{chunk-wg55bwqh.js → chunk-nymf08b4.js} +2 -2
- package/bundle/{chunk-tza09w2q.js → chunk-pxv12ctq.js} +1 -1
- package/bundle/{chunk-qqrc1h5b.js → chunk-r1xh50b2.js} +1 -1
- package/bundle/{chunk-qrxqfp59.js → chunk-rn043d0r.js} +1 -1
- package/bundle/chunk-rrd0fdra.js +2 -0
- package/bundle/{chunk-z8mj4z6e.js → chunk-sf5zc4kc.js} +1 -1
- package/bundle/{chunk-vdxar0ct.js → chunk-t5xxs5kp.js} +1 -1
- package/bundle/{chunk-p27a88vp.js → chunk-t9pwz4ws.js} +1 -1
- package/bundle/{chunk-5bjtq8t2.js → chunk-ty2vg1a5.js} +1 -1
- package/bundle/{chunk-azpnrnv9.js → chunk-v3nqkqhz.js} +307 -305
- package/bundle/{chunk-v6h3nes1.js → chunk-vp9scf28.js} +1 -1
- package/bundle/{chunk-565855py.js → chunk-vwh6mv37.js} +1 -1
- package/bundle/chunk-w2cb8cry.js +2 -0
- package/bundle/{chunk-47z3x3dp.js → chunk-wmezdcdh.js} +2 -2
- package/bundle/{chunk-9fyz4sxa.js → chunk-xhtcegk0.js} +1 -1
- package/bundle/{chunk-brws2aht.js → chunk-xmb8jy13.js} +1 -1
- package/bundle/{chunk-6tstcwxp.js → chunk-xqnzmr7a.js} +1 -1
- package/bundle/{chunk-16w710kf.js → chunk-xy3c8f1h.js} +1 -1
- package/bundle/{chunk-jrwnz64e.js → chunk-xynwfaf1.js} +1 -1
- package/bundle/{chunk-p3rd2q47.js → chunk-yfzyzsr4.js} +1 -1
- package/bundle/{chunk-snbw69t6.js → chunk-yv5aehqq.js} +1 -1
- package/bundle/{chunk-c74cxhjb.js → chunk-zgcabs1k.js} +1 -1
- package/bundle/index.js +18 -18
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-hbyrwmne.js +0 -2
- package/bundle/chunk-x9ptmxt7.js +0 -2
package/bundle/worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fg as V}from"./chunk-5zkj5xv9.js";import{kg as x}from"./chunk-
|
|
2
|
+
import{fg as V}from"./chunk-5zkj5xv9.js";import{kg as x}from"./chunk-vp9scf28.js";import"./chunk-kdj7xvz7.js";import"./chunk-0j5rzaxx.js";import"./chunk-36xm6mgm.js";import"./chunk-f0t7rryn.js";import"./chunk-nfg7nt13.js";import"./chunk-450fef7h.js";import"./chunk-yfzyzsr4.js";import{Bh as O,ah as S}from"./chunk-v3nqkqhz.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import{dl as Z,wj as Y}from"./chunk-52frd9p0.js";import{fl as N}from"./chunk-xqnzmr7a.js";import{Nl as q,ql as P}from"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import"./chunk-mh19kwzw.js";import"./chunk-a9a0cwmf.js";import"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-kn8w69g9.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import{Hr as z}from"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import{$r as C}from"./chunk-7vmx8bg9.js";import"./chunk-tkrwcjkr.js";import"./chunk-w2cb8cry.js";import{Cs as j,ds as X,gs as G}from"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import{Ns as T,Ws as W}from"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";var $=W.create({service:"upgrade"});function k(D,E){if(D===!1)return"disabled";if(D===!0&&E==="patch")return"install";return"notify"}async function M(){if(G)return;let D=await O.runPromise(Z.Service.use((J)=>J.getGlobal())),E=await O.runPromise(N.Service.use((J)=>J.method())),K=await O.runPromise(N.Service.use((J)=>J.latest(E))).catch((J)=>{$.warn("failed to check for updates",{method:E,error:String(J)})});if(!K)return;if(!N.isNewerVersion(X,K)){$.warn("ignoring non-newer update version",{current:X,latest:K});return}if(T.QITQODE_ALWAYS_NOTIFY_UPDATE){await Y.publish(N.Event.UpdateAvailable,{version:K});return}if(T.QITQODE_DISABLE_AUTOUPDATE)return;let _=N.getReleaseType(X,K),Q=k(D.autoupdate,_);if(Q==="disabled")return;if(Q==="notify"){await Y.publish(N.Event.UpdateAvailable,{version:K});return}if(E==="unknown")return;await O.runPromise(N.Service.use((J)=>J.upgrade(E,K))).then(()=>Y.publish(N.Event.Updated,{version:K})).catch((J)=>{$.warn("auto-upgrade failed",{method:E,target:K,error:String(J)})})}import{writeHeapSnapshot as w}from"v8";j("worker");await W.init({print:process.argv.includes("--print-logs"),dev:N.isLocal(),level:(()=>{if(N.isLocal())return"DEBUG";return"INFO"})()});V.start();C("worker");P.on("event",(D)=>{z.emit("global.event",D)});var U,H={async ping(){return"pong"},async fetch(D){let E={...D.headers},K=L();if(K&&!E.authorization&&!E.Authorization)E.Authorization=K;let _=new Request(D.url,{method:D.method,headers:E,body:D.body}),Q=await x.Default().app.fetch(_),J=await Q.text();return{status:Q.status,headers:Object.fromEntries(Q.headers.entries()),body:J}},snapshot(){return w("server.heapsnapshot")},async server(D){if(U)await U.stop(!0);return U=await x.listen(D),{url:U.url.toString()}},async checkUpgrade(D){await q.provide({directory:D.directory,init:()=>O.runPromise(S),fn:async()=>{await M().catch(()=>{})}})},async reload(){await O.runPromise(Z.Service.use((D)=>D.invalidate(!0)))},async shutdown(){if(W.Default.info("worker shutting down"),await q.disposeAll(),U)await U.stop(!0)}};z.listen(H);function L(){let D=T.QITQODE_SERVER_PASSWORD;if(!D)return;let E=T.QITQODE_SERVER_USERNAME??"qitqode";return`Basic ${btoa(`${E}:${D}`)}`}export{H as rpc};
|
package/package.json
CHANGED
package/bundle/chunk-hbyrwmne.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cl as a}from"./chunk-qznr1emx.js";import"./chunk-6tstcwxp.js";import"./chunk-qqrc1h5b.js";import"./chunk-fsahzvd5.js";import"./chunk-mh19kwzw.js";import"./chunk-88q0mtgp.js";import"./chunk-bvf2dcq4.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-rp9r3cvt.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-xq2kcar4.js";import"./chunk-qrxqfp59.js";import"./chunk-73r8bjjz.js";import"./chunk-vdxar0ct.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-x9ptmxt7.js";import"./chunk-0vakk88p.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{a as Session};
|
package/bundle/chunk-x9ptmxt7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xs as P}from"./chunk-0vakk88p.js";import{Js as w,Ks as O,Ls as b,Ms as B}from"./chunk-tr6rdr6h.js";import{uO as p}from"./chunk-r9w0thdk.js";var H={free:{providerID:"qlex",modelID:"free"},default:{providerID:"qlex",modelID:"default"},fast:{providerID:"qlex",modelID:"fast"},economical:{providerID:"qlex",modelID:"economical"},power:{providerID:"qlex",modelID:"power"},orchestrated:{providerID:"qlex",modelID:"orchestrated"}},V={free:"Free (no cost)",default:"Default",fast:"Fast",economical:"Economy",power:"Power",orchestrated:"Orchestrated"},Y={free:{output:128000,recommendedStep:32000,context:262144,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:512,recommendedTotal:9600,viableTotalFloor:9600},fast:{output:65536,recommendedStep:50000,context:1048576,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:50000,viableTotalFloor:2048},economical:{output:209715,recommendedStep:32000,context:1048576,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:512,recommendedTotal:9600,viableTotalFloor:9600},default:{output:128000,recommendedStep:32000,context:1050000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},power:{output:200000,recommendedStep:32000,context:200000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},orchestrated:{output:128000,recommendedStep:32000,context:200000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048}},Z={},D="pending",X=new Set;function c(){return D}function C(){D="pending",F()}function M(x){return X.add(x),()=>X.delete(x)}function F(){for(let x of[...X])try{x()}catch{}}function q(){for(let x of Object.keys(Z))delete Z[x];D="unavailable",F()}function Q(x){return typeof x==="number"&&Number.isFinite(x)&&x>=0&&x<=10}function f(x){if(x===void 0){q();return}let K=x!==null&&typeof x==="object"&&!Array.isArray(x)?x:void 0;if(K?.success===!1){q();return}let J=K?.success===!0&&Object.prototype.hasOwnProperty.call(K,"data")?K.data:x,j={};if(J===null||typeof J!=="object"||Array.isArray(J)){q();return}for(let[W,$]of Object.entries(J)){if(!$||typeof $!=="object"||Array.isArray($)){q();return}let z=$;if(!Q(z.intelligence)||!Q(z.speed)||!Q(z.cost)){q();return}j[W]={intelligence:z.intelligence,speed:z.speed,cost:z.cost}}for(let W of Object.keys(Z))delete Z[W];Object.assign(Z,j),D="live",F()}function h(x){if(!Array.isArray(x)||x.length===0)return;let K={},J={};for(let j of x){let W=H[j.id];K[j.id]={providerID:j.providerID??W?.providerID??"qlex",modelID:j.modelID??W?.modelID??j.id},J[j.id]=j.label??V[j.id]??j.id}for(let j of Object.keys(H))delete H[j];Object.assign(H,K);for(let j of Object.keys(V))delete V[j];Object.assign(V,J)}var N={};p(N,{tiers:()=>L,tierRatingsState:()=>c,tierRatings:()=>_,tierBudgetFacts:()=>S,streamUrl:()=>G,streamBaseUrl:()=>E,sanitizeUpstreamError:()=>g,qlexProviderMeta:()=>v,onTierRatingsChange:()=>M,omniqueryBaseUrl:()=>o,mergeLiveTiers:()=>k,mergeLiveTierRatings:()=>u,markTierRatingsUnavailable:()=>q,loadLiveRatings:()=>A,evaluatePermission:()=>d,copy:()=>T,beginTierRatingsLoad:()=>C,bashPrefixWith:()=>I,TIER_RATINGS:()=>Z,AGENT_PROMPT_NAMES:()=>R});var m=3,U=[250,750];async function A(x){for(let K=0;K<m;K++){let J=await x();if(J!==void 0)return J;let j=U[K];if(j!==void 0)await new Promise((W)=>setTimeout(W,j))}return}function k(x){h(x)}function u(x){f(x)}function L(){return Object.entries(H).map(([x,K])=>({id:x,label:V[x]??x,providerID:K.providerID,modelID:K.modelID}))}function S(x){return Y[x]}function _(){return Z}function d(x,K,...J){return J.flat().findLast(($)=>P(x,$.permission)&&P(K,$.pattern))??{action:"ask",permission:x,pattern:"*"}}function I(x,K){for(let J=K.length;J>0;J--){let j=K.slice(0,J).join(" "),W=x[j];if(W!==void 0)return K.slice(0,W)}if(K.length===0)return[];return K.slice(0,1)}function y(){return(process.env.QITQODE_BACKEND_URL?.trim()||w).replace(/\/+$/,"")}function G(){return`${y()}/streamTier`}function E(){return new URL(G()).origin}function o(){return y()}function v(){return O}function g(x){return b(x)}function T(){return B}var R=["generate","explore","dream","distill","summary","compaction","title"];export{H as bs,N as cs};
|