@qitqode/qitqode-android-arm64 0.1.27 → 0.1.28
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-exh6cg1r.js → chunk-04h4afhf.js} +1 -1
- package/bundle/{chunk-r1616dce.js → chunk-066eeq5q.js} +1 -1
- package/bundle/{chunk-h7yya9pv.js → chunk-0nj8axbw.js} +2 -2
- package/bundle/{chunk-cpmmvwgw.js → chunk-13hz1kvh.js} +1 -1
- package/bundle/{chunk-r08957sm.js → chunk-1etdhr36.js} +1 -1
- package/bundle/{chunk-dzxzcb2e.js → chunk-1m2e2w1q.js} +1 -1
- package/bundle/{chunk-m2x9xhha.js → chunk-1t6bvbgy.js} +1 -1
- package/bundle/{chunk-k9b1jcqw.js → chunk-24xc0dvv.js} +1 -1
- package/bundle/{chunk-nxbkh4k9.js → chunk-288hw03f.js} +1 -1
- package/bundle/{chunk-kavhpdvb.js → chunk-2abdrqrx.js} +1 -1
- package/bundle/{chunk-0srrmwqs.js → chunk-37s5hwtc.js} +1 -1
- package/bundle/{chunk-vkskqhag.js → chunk-3dvd1bb6.js} +1 -1
- package/bundle/{chunk-14n6rvh2.js → chunk-3fx5jda0.js} +1 -1
- package/bundle/{chunk-brpx707p.js → chunk-3j9hedmx.js} +1 -1
- package/bundle/{chunk-6gz9cthq.js → chunk-457y2816.js} +1 -1
- package/bundle/{chunk-vfdhqf4h.js → chunk-4sk0rmw3.js} +1 -1
- package/bundle/{chunk-zrc54vc4.js → chunk-4yawrap2.js} +1 -1
- package/bundle/{chunk-jg7s9rqz.js → chunk-5g8108nf.js} +1 -1
- package/bundle/{chunk-17psxhve.js → chunk-5syxjhg3.js} +1 -1
- package/bundle/{chunk-wrw22v0a.js → chunk-612f97vv.js} +2 -2
- package/bundle/{chunk-dqed63ek.js → chunk-61zpnwv6.js} +1 -1
- package/bundle/{chunk-55b9699f.js → chunk-8815p61h.js} +1 -1
- package/bundle/{chunk-gsvdt4kq.js → chunk-8tc8x27z.js} +4 -4
- package/bundle/{chunk-0zkejr6k.js → chunk-92d9469t.js} +1 -1
- package/bundle/chunk-a7cxf56j.js +2 -0
- package/bundle/{chunk-b2z0kjss.js → chunk-anjg3mwn.js} +1 -1
- package/bundle/{chunk-02y04bsz.js → chunk-bkbngcvc.js} +1 -1
- package/bundle/{chunk-2wcv3sq5.js → chunk-cmbxrgyx.js} +1 -1
- package/bundle/{chunk-vsjyr170.js → chunk-cwqd48xt.js} +1 -1
- package/bundle/{chunk-8cdm8gh2.js → chunk-cydewa1c.js} +1 -1
- package/bundle/{chunk-jh6yvzee.js → chunk-d7qscj5p.js} +1 -1
- package/bundle/{chunk-47b084yv.js → chunk-dafbntks.js} +2 -2
- package/bundle/{chunk-baet4zev.js → chunk-df6a167w.js} +1 -1
- package/bundle/{chunk-3c7d3dqt.js → chunk-dpkynwgm.js} +1 -1
- package/bundle/{chunk-crx18k6g.js → chunk-e0152ayv.js} +1 -1
- package/bundle/{chunk-fddsgvjy.js → chunk-ebcv65e3.js} +1 -1
- package/bundle/{chunk-zxaaxb99.js → chunk-ebrt1me3.js} +1 -1
- package/bundle/{chunk-4z4p492c.js → chunk-emtebxvs.js} +1 -1
- package/bundle/{chunk-0eqwm9a8.js → chunk-f2tdfry8.js} +1 -1
- package/bundle/{chunk-c0796v8j.js → chunk-fzna6jdj.js} +1 -1
- package/bundle/{chunk-xn2ds2s4.js → chunk-g16zb3y1.js} +1 -1
- package/bundle/{chunk-ksyh6h3a.js → chunk-gj7y56y6.js} +1 -1
- package/bundle/{chunk-c7yy1km8.js → chunk-h602h2gx.js} +1 -1
- package/bundle/{chunk-ak5ngp50.js → chunk-hk698g9e.js} +1 -1
- package/bundle/{chunk-jh3nw7fd.js → chunk-hnb8v476.js} +1 -1
- package/bundle/{chunk-1fja3j80.js → chunk-hxgs0d4t.js} +1 -1
- package/bundle/{chunk-nx90tvwg.js → chunk-jr907144.js} +1 -1
- package/bundle/{chunk-0x3sbyny.js → chunk-jx27xrk1.js} +1 -1
- package/bundle/{chunk-stezw26z.js → chunk-k2tamnfv.js} +1 -1
- package/bundle/{chunk-gbyy8sh5.js → chunk-k3epfxmq.js} +1 -1
- package/bundle/chunk-k5q52wdq.js +2 -0
- package/bundle/{chunk-b7mg883n.js → chunk-k7g3h9tn.js} +1 -1
- package/bundle/{chunk-deae0y1j.js → chunk-kb6w3wbd.js} +1 -1
- package/bundle/{chunk-wajmd3r7.js → chunk-kfsn9c7m.js} +1 -1
- package/bundle/{chunk-dtv1vp0d.js → chunk-krhkrca9.js} +1 -1
- package/bundle/chunk-my7mn79h.js +9 -0
- package/bundle/{chunk-463f9wre.js → chunk-n0mygdfp.js} +1 -1
- package/bundle/{chunk-qt1wffbh.js → chunk-pdzpfkt0.js} +1 -1
- package/bundle/{chunk-cvwa142e.js → chunk-pxtqqmkc.js} +1 -1
- package/bundle/{chunk-qt2c4bty.js → chunk-qc1w4b12.js} +1 -1
- package/bundle/{chunk-jnabd9gn.js → chunk-qvxvc2c2.js} +1 -1
- package/bundle/{chunk-90zd5rss.js → chunk-rmr38x2f.js} +1 -1
- package/bundle/{chunk-ct6dv8st.js → chunk-s1cnzvb2.js} +1 -1
- package/bundle/{chunk-b75gpv0q.js → chunk-scsf8r98.js} +1 -1
- package/bundle/{chunk-j5y10dn6.js → chunk-smt14yjb.js} +1 -1
- package/bundle/{chunk-pget15wc.js → chunk-t22jbw8x.js} +1 -1
- package/bundle/{chunk-9t84mh6t.js → chunk-t2tgz0rc.js} +1 -1
- package/bundle/{chunk-zs2a1f20.js → chunk-w9vh7rhg.js} +1 -1
- package/bundle/{chunk-4k7kbhps.js → chunk-wrfvqp2w.js} +1 -1
- package/bundle/{chunk-njnwdgvd.js → chunk-x1rx6fm7.js} +1 -1
- package/bundle/{chunk-apbgb4h0.js → chunk-x7ers083.js} +1 -1
- package/bundle/{chunk-4ypcf4tg.js → chunk-x9s04nze.js} +1 -1
- package/bundle/{chunk-m2ekhbdp.js → chunk-xvfpzmrf.js} +1 -1
- package/bundle/{chunk-ad46r434.js → chunk-y88xh6w3.js} +2 -2
- package/bundle/{chunk-y9p87bfd.js → chunk-yc1jk3rm.js} +1 -1
- package/bundle/{chunk-j94bdaav.js → chunk-z37aqajx.js} +1 -1
- package/bundle/{chunk-mdck9s88.js → chunk-z6dnv8g5.js} +1 -1
- package/bundle/{chunk-hgxdg1y5.js → chunk-zw0yh3dv.js} +1 -1
- package/bundle/index.js +3 -3
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-ew51rwdp.js +0 -9
- package/bundle/chunk-smtvgr3w.js +0 -2
- package/bundle/chunk-yhwx62yf.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{th as r}from"./chunk-
|
|
2
|
+
import{th as r}from"./chunk-0nj8axbw.js";import{kk as e}from"./chunk-8tc8x27z.js";import{xm as t}from"./chunk-5syxjhg3.js";import{$p as l}from"./chunk-v965rsr8.js";import{Uu as a}from"./chunk-k309zez0.js";import{pO as o}from"./chunk-snm5q21k.js";var S={PromptAppend:t.define("tui.prompt.append",a.object({text:a.string()})),CommandExecute:t.define("tui.command.execute",a.object({command:a.union([a.enum(["session.list","session.new","session.share","session.interrupt","session.compact","session.page.up","session.page.down","session.line.up","session.line.down","session.half.page.up","session.half.page.down","session.first","session.last","prompt.clear","prompt.submit","agent.cycle"]),a.string()])})),ToastShow:t.define("tui.toast.show",a.object({title:a.string().optional(),message:a.string(),variant:a.enum(["info","success","warning","error"]),duration:a.number().default(5000).optional().describe("Duration in milliseconds")})),SessionSelect:t.define("tui.session.select",a.object({sessionID:e.zod.describe("Session ID to navigate to")})),InstructionsLoaded:r};class m extends o.Class("ConsoleState")({consoleManagedProviders:o.mutable(o.Array(o.String)),activeOrgName:o.optional(o.String),switchableOrgCount:o.Number}){static zod=l(this)}var f=m.make({consoleManagedProviders:[],activeOrgName:void 0,switchableOrgCount:0});
|
|
3
3
|
export{S as pg,m as qg,f as rg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ud as a,vd as b}from"./chunk-
|
|
2
|
+
import{ud as a,vd as b}from"./chunk-z37aqajx.js";import"./chunk-1sgby720.js";import"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-phxrg7aw.js";import"./chunk-snm5q21k.js";import"./chunk-aztre27e.js";export{a as read,b as copy};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$k as yJ,Al as uX,Bk as KH,Bl as dX,Ck as QH,Cl as Y1,Dl as R$,Ek as qZ,Fk as FZ,Gk as pG,Jk as RZ,Kk as Q1,Lk as M8,Mk as d7,Nk as LZ,Ok as NZ,Pk as FX,Qk as IX,Rk as AX,Sk as SX,Tk as wX,Uk as fV,Vk as xV,Xj as P$,Xk as E$,Yk as VH,Zk as GH,al as TX,bl as kX,ck as Xq,cl as EX,dk as GV,ek as H7,el as a_,ik as J1,il as VX,jl as xX,kk as F0,lk as IJ,mk as f2,ml as L1,ol as z2,pk as b0,pl as WH,qk as z8,rl as B1,tk as kK,tl as k0,uk as EK,vk as R1,wk as EV,yk as D6,zk as YH}from"./chunk-
|
|
2
|
+
import{$k as yJ,Al as uX,Bk as KH,Bl as dX,Ck as QH,Cl as Y1,Dl as R$,Ek as qZ,Fk as FZ,Gk as pG,Jk as RZ,Kk as Q1,Lk as M8,Mk as d7,Nk as LZ,Ok as NZ,Pk as FX,Qk as IX,Rk as AX,Sk as SX,Tk as wX,Uk as fV,Vk as xV,Xj as P$,Xk as E$,Yk as VH,Zk as GH,al as TX,bl as kX,ck as Xq,cl as EX,dk as GV,ek as H7,el as a_,ik as J1,il as VX,jl as xX,kk as F0,lk as IJ,mk as f2,ml as L1,ol as z2,pk as b0,pl as WH,qk as z8,rl as B1,tk as kK,tl as k0,uk as EK,vk as R1,wk as EV,yk as D6,zk as YH}from"./chunk-8tc8x27z.js";import{El as g9}from"./chunk-k7g3h9tn.js";import{Rl as PG,Sl as bH,Vl as V0,Wl as e$,Xl as $1,Yl as JJ,bm as z$,cm as BJ,fm as U2,lm as H$,mm as i,om as O1}from"./chunk-rmr38x2f.js";import{qm as C9,rm as f6,sm as S1,tm as XJ,xm as Z0}from"./chunk-5syxjhg3.js";import{An as t0,Bn as i$,Cn as e0,Dn as b2,En as WX,Fm as XX,Gn as G$,In as _0,Jn as NJ,Ln as $Z,Rn as h7,co as m1,do as O8,en as f1}from"./chunk-nj4d554m.js";import{mp as g6}from"./chunk-cmbxrgyx.js";import{Gp as ZZ,Hp as vV}from"./chunk-nt4e3em9.js";import{Jp as r8,Yp as e}from"./chunk-hk698g9e.js";import{$p as U1,Zp as YZ}from"./chunk-v965rsr8.js";import{aq as T2}from"./chunk-1sgby720.js";import{bq as x$}from"./chunk-5g8108nf.js";import{$r as ZH}from"./chunk-m02zt1a3.js";import{js as HZ}from"./chunk-fzna6jdj.js";import{Bs as G2,Cs as $V,Is as v1,Js as X2}from"./chunk-4qqkqrn9.js";import{qt as l9}from"./chunk-12bssxd4.js";import{st as BH}from"./chunk-24xc0dvv.js";import{At as eU,Bt as $H,Dt as q9,Zt as jK,au as WZ,ju as D0,nu as H8,ou as f$,pu as k$,tt as E2,wt as d9,xt as tU,yu as O$}from"./chunk-ebrt1me3.js";import{Du as MH,Hu as B9,Ku as h9,Nu as y2,Ou as $$,Su as O0,zu as qG}from"./chunk-whxjkz9a.js";import{Uu as F}from"./chunk-k309zez0.js";import{AP as eQ,HG as xH,IF as H0,PI as G,RC as JH,RO as IU,SO as EG,UC as p1,VO as AU,XO as _Z,YF as UJ,ZD as D$,cK as Z8,gP as HJ,jE as h2,mG as f,oP as l$,pO as F$,tG as EH,uF as n0,wK as b1,yK as kG}from"./chunk-snm5q21k.js";import{VP as k3}from"./chunk-xpc2zgj7.js";import{$P as A9,aQ as p,bQ as o$,dQ as u0,eQ as S9,fQ as w9}from"./chunk-aztre27e.js";var wK=p((pS,P9)=>{function FK($){return Array.isArray($)?$:[$]}var w_=void 0,d6="",OK=" ",u6="\\",R_=/^\s+$/,L_=/(?:[^\\]|^)\\$/,N_=/^\\!/,y_=/^\\#/,T_=/\r?\n/g,k_=/^\.{0,2}\/|^\.{1,2}$/,E_=/\/$/,WJ="/",zK="node-ignore";if(typeof Symbol<"u")zK=Symbol.for("node-ignore");var CK=zK,jJ=($,J,Z)=>{return Object.defineProperty($,J,{value:Z}),Z},x_=/([0-z])-([0-z])/g,MK=()=>!1,b_=($)=>$.replace(x_,(J,Z,Y)=>Z.charCodeAt(0)<=Y.charCodeAt(0)?J:d6),v_=($)=>{let{length:J}=$;return $.slice(0,J-J%2)},h_=[[/^\uFEFF/,()=>d6],[/((?:\\\\)*?)(\\?\s+)$/,($,J,Z)=>J+(Z.indexOf("\\")===0?OK:d6)],[/(\\+?)\s/g,($,J)=>{let{length:Z}=J;return J.slice(0,Z-Z%2)+OK}],[/[\\$.|*+(){^]/g,($)=>`\\${$}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,($,J,Z)=>J+6<Z.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,($,J,Z)=>{let Y=Z.replace(/\\\*/g,"[^\\/]*");return J+Y}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u6],[/\\\\/g,()=>u6],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,($,J,Z,Y,K)=>J===u6?`\\[${Z}${v_(Y)}${K}`:K==="]"?Y.length%2===0?`[${b_(Z)}${Y}]`:"[]":"[]"],[/(?:[^*])$/,($)=>/\/$/.test($)?`${$}$`:`${$}(?=$|\\/$)`]],g_=/(^|\\\/)?\\\*$/,Y8="regex",M9="checkRegex",qK="_",f_={[Y8]($,J){return`${J?`${J}[^/]+`:"[^/]*"}(?=$|\\/$)`},[M9]($,J){return`${J?`${J}[^/]*`:"[^/]*"}(?=$|\\/$)`}},m_=($)=>h_.reduce((J,[Z,Y])=>J.replace(Z,Y.bind($)),$),D9=($)=>typeof $==="string",u_=($)=>$&&D9($)&&!R_.test($)&&!L_.test($)&&$.indexOf("#")!==0,d_=($)=>$.split(T_).filter(Boolean);class DK{constructor($,J,Z,Y,K,Q){this.pattern=$,this.mark=J,this.negative=K,jJ(this,"body",Z),jJ(this,"ignoreCase",Y),jJ(this,"regexPrefix",Q)}get regex(){let $=qK+Y8;if(this[$])return this[$];return this._make(Y8,$)}get checkRegex(){let $=qK+M9;if(this[$])return this[$];return this._make(M9,$)}_make($,J){let Z=this.regexPrefix.replace(g_,f_[$]),Y=this.ignoreCase?new RegExp(Z,"i"):new RegExp(Z);return jJ(this,J,Y)}}var p_=({pattern:$,mark:J},Z)=>{let Y=!1,K=$;if(K.indexOf("!")===0)Y=!0,K=K.substr(1);K=K.replace(N_,"!").replace(y_,"#");let Q=m_(K);return new DK($,J,K,Z,Y,Q)};class PK{constructor($){this._ignoreCase=$,this._rules=[]}_add($){if($&&$[CK]){this._rules=this._rules.concat($._rules._rules),this._added=!0;return}if(D9($))$={pattern:$};if(u_($.pattern)){let J=p_($,this._ignoreCase);this._added=!0,this._rules.push(J)}}add($){return this._added=!1,FK(D9($)?d_($):$).forEach(this._add,this),this._added}test($,J,Z){let Y=!1,K=!1,Q;this._rules.forEach((X)=>{let{negative:W}=X;if(K===W&&Y!==K||W&&!Y&&!K&&!J)return;if(!X[Z].test($))return;Y=!W,K=W,Q=W?w_:X});let V={ignored:Y,unignored:K};if(Q)V.rule=Q;return V}}var c_=($,J)=>{throw new J($)},h1=($,J,Z)=>{if(!D9($))return Z(`path must be a string, but got \`${J}\``,TypeError);if(!$)return Z("path must not be empty",TypeError);if(h1.isNotRelative($))return Z(`path should be a \`path.relative()\`d string, but got "${J}"`,RangeError);return!0},IK=($)=>k_.test($);h1.isNotRelative=IK;h1.convert=($)=>$;class AK{constructor({ignorecase:$=!0,ignoreCase:J=$,allowRelativePaths:Z=!1}={}){jJ(this,CK,!0),this._rules=new PK(J),this._strictPathCheck=!Z,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add($){if(this._rules.add($))this._initCache();return this}addPattern($){return this.add($)}_test($,J,Z,Y){let K=$&&h1.convert($);return h1(K,$,this._strictPathCheck?c_:MK),this._t(K,J,Z,Y)}checkIgnore($){if(!E_.test($))return this.test($);let J=$.split(WJ).filter(Boolean);if(J.pop(),J.length){let Z=this._t(J.join(WJ)+WJ,this._testCache,!0,J);if(Z.ignored)return Z}return this._rules.test($,!1,M9)}_t($,J,Z,Y){if($ in J)return J[$];if(!Y)Y=$.split(WJ).filter(Boolean);if(Y.pop(),!Y.length)return J[$]=this._rules.test($,Z,Y8);let K=this._t(Y.join(WJ)+WJ,J,Z,Y);return J[$]=K.ignored?K:this._rules.test($,Z,Y8)}ignores($){return this._test($,this._ignoreCache,!1).ignored}createFilter(){return($)=>!this.ignores($)}filter($){return FK($).filter(this.createFilter())}test($){return this._test($,this._testCache,!0)}}var p6=($)=>new AK($),l_=($)=>h1($&&h1.convert($),$,MK),SK=()=>{let $=(Z)=>/^\\\\\?\\/.test(Z)||/["<>|\u0000-\u001F]+/u.test(Z)?Z:Z.replace(/\\/g,"/");h1.convert=$;let J=/^[a-z]:\//i;h1.isNotRelative=(Z)=>J.test(Z)||IK(Z)};if(typeof process<"u"&&process.platform==="win32")SK();P9.exports=p6;p6.default=p6;P9.exports.isPathValid=l_;jJ(P9.exports,Symbol.for("setupWindows"),SK)});var R9=p((q4)=>{q4.isInteger=($)=>{if(typeof $==="number")return Number.isInteger($);if(typeof $==="string"&&$.trim()!=="")return Number.isInteger(Number($));return!1};q4.find=($,J)=>$.nodes.find((Z)=>Z.type===J);q4.exceedsLimit=($,J,Z=1,Y)=>{if(Y===!1)return!1;if(!q4.isInteger($)||!q4.isInteger(J))return!1;return(Number(J)-Number($))/Number(Z)>=Y};q4.escapeNode=($,J=0,Z)=>{let Y=$.nodes[J];if(!Y)return;if(Z&&Y.type===Z||Y.type==="open"||Y.type==="close"){if(Y.escaped!==!0)Y.value="\\"+Y.value,Y.escaped=!0}};q4.encloseBrace=($)=>{if($.type!=="brace")return!1;if($.commas>>0+$.ranges>>0===0)return $.invalid=!0,!0;return!1};q4.isInvalidBrace=($)=>{if($.type!=="brace")return!1;if($.invalid===!0||$.dollar)return!0;if($.commas>>0+$.ranges>>0===0)return $.invalid=!0,!0;if($.open!==!0||$.close!==!0)return $.invalid=!0,!0;return!1};q4.isOpenOrClose=($)=>{if($.type==="open"||$.type==="close")return!0;return $.open===!0||$.close===!0};q4.reduce=($)=>$.reduce((J,Z)=>{if(Z.type==="text")J.push(Z.value);if(Z.type==="range")Z.type="text";return J},[]);q4.flatten=(...$)=>{let J=[],Z=(Y)=>{for(let K=0;K<Y.length;K++){let Q=Y[K];if(Array.isArray(Q)){Z(Q);continue}if(Q!==void 0)J.push(Q)}return J};return Z($),J}});var L9=p((Gw,gK)=>{var hK=R9();gK.exports=($,J={})=>{let Z=(Y,K={})=>{let Q=J.escapeInvalid&&hK.isInvalidBrace(K),V=Y.invalid===!0&&J.escapeInvalid===!0,X="";if(Y.value){if((Q||V)&&hK.isOpenOrClose(Y))return"\\"+Y.value;return Y.value}if(Y.value)return Y.value;if(Y.nodes)for(let W of Y.nodes)X+=Z(W);return X};return Z($)}});var mK=p((Xw,fK)=>{/*!
|
|
3
3
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
@@ -7204,7 +7204,7 @@ For full type signatures, all available fields, and more examples:
|
|
|
7204
7204
|
- Cannot modify the permission system
|
|
7205
7205
|
- Tool output truncated at 50KB / 2000 lines
|
|
7206
7206
|
- Prefer small, composable extensions over monolithic ones
|
|
7207
|
-
`}}}catch($){if($ instanceof ReferenceError)return jV();throw $}}var Oq=_q(),qq=O$.create({service:"skill.builtin"}),HV=G.fn("Skill.extractBuiltinBundle")(function*($){let J=UV.join(H8.data,"builtin_skills",E2),Z=UV.join(J,".extracted");return yield*m9({fsys:$,bundle:Oq,root:J,marker:Z,markerContent:E2,skipIfPresent:!d9,onExtracted:(Y)=>qq.info("extracted builtin skills",{root:Y})})});var B8=O$.create({service:"skill"}),Cq=[".claude",".agents",".codex",".opencode"],BV="skills/**/SKILL.md",Mq="{skill,skills}/**/SKILL.md",p9="**/SKILL.md",_V=F.object({name:F.string(),description:F.string(),location:F.string(),content:F.string(),hidden:F.boolean().optional()}),Dq=l9.create("SkillInvalidError",F.object({path:F.string(),message:F.string().optional(),issues:F.custom().optional()})),Pq=l9.create("SkillNameMismatchError",F.object({path:F.string(),expected:F.string(),actual:F.string()})),Iq=G.fnUntraced(function*($,J,Z){let Y=yield*G.tryPromise({try:()=>H7.parse(J),catch:(Q)=>Q}).pipe(G.catch(G.fnUntraced(function*(Q){let V=H7.FrontmatterError.isInstance(Q)?Q.data.message:`Failed to parse skill ${J}`,{Session:X}=yield*G.promise(()=>import("./chunk-
|
|
7207
|
+
`}}}catch($){if($ instanceof ReferenceError)return jV();throw $}}var Oq=_q(),qq=O$.create({service:"skill.builtin"}),HV=G.fn("Skill.extractBuiltinBundle")(function*($){let J=UV.join(H8.data,"builtin_skills",E2),Z=UV.join(J,".extracted");return yield*m9({fsys:$,bundle:Oq,root:J,marker:Z,markerContent:E2,skipIfPresent:!d9,onExtracted:(Y)=>qq.info("extracted builtin skills",{root:Y})})});var B8=O$.create({service:"skill"}),Cq=[".claude",".agents",".codex",".opencode"],BV="skills/**/SKILL.md",Mq="{skill,skills}/**/SKILL.md",p9="**/SKILL.md",_V=F.object({name:F.string(),description:F.string(),location:F.string(),content:F.string(),hidden:F.boolean().optional()}),Dq=l9.create("SkillInvalidError",F.object({path:F.string(),message:F.string().optional(),issues:F.custom().optional()})),Pq=l9.create("SkillNameMismatchError",F.object({path:F.string(),expected:F.string(),actual:F.string()})),Iq=G.fnUntraced(function*($,J,Z){let Y=yield*G.tryPromise({try:()=>H7.parse(J),catch:(Q)=>Q}).pipe(G.catch(G.fnUntraced(function*(Q){let V=H7.FrontmatterError.isInstance(Q)?Q.data.message:`Failed to parse skill ${J}`,{Session:X}=yield*G.promise(()=>import("./chunk-w9vh7rhg.js"));yield*Z.publish(X.Event.Error,{error:new l9.Unknown({message:V}).toObject()}),B8.error("failed to load skill",{skill:J,err:Q});return})));if(!Y)return;let K=_V.pick({name:!0,description:!0,hidden:!0}).safeParse(Y.data);if(!K.success)return;if($.skills[K.data.name])B8.warn("duplicate skill name",{name:K.data.name,existing:$.skills[K.data.name].location,duplicate:J});$.dirs.add(zJ.dirname(J)),$.skills[K.data.name]={name:K.data.name,description:K.data.description,location:J,content:Y.content,hidden:K.data.hidden}}),x2=G.fnUntraced(function*($,J,Z,Y){let K=yield*G.tryPromise({try:()=>y2.scan(Z,{cwd:J,absolute:!0,include:"file",symlink:!0,dot:Y?.dot}),catch:(Q)=>Q}).pipe(G.catch((Q)=>{if(!Y?.scope)return G.die(Q);return B8.error(`failed to scan ${Y.scope} skills`,{dir:J,error:Q}),G.succeed([])}));for(let Q of K)$.matches.add(Q),$.dirs.add(zJ.dirname(Q))}),Aq=G.fnUntraced(function*($,J,Z,Y,K){let Q={matches:new Set,dirs:new Set};if(!k$.QITQODE_DISABLE_BUILTIN_SKILLS){let W=yield*HV(Z).pipe(G.catch(()=>G.succeed(void 0)));if(W&&(yield*Z.isDir(W)))yield*x2(Q,W,p9,{scope:"builtin"})}if(!k$.QITQODE_DISABLE_COMPOSE_SKILLS){let W=yield*WV(Z).pipe(G.catch(()=>G.succeed(void 0)));if(W&&(yield*Z.isDir(W)))yield*x2(Q,W,p9,{scope:"compose"})}if(!k$.QITQODE_DISABLE_EXTERNAL_SKILLS){let W=Cq.filter((j)=>{if(j===".claude"&&k$.QITQODE_DISABLE_CLAUDE_CODE_SKILLS)return!1;if(j===".codex"&&k$.QITQODE_DISABLE_CODEX_SKILLS)return!1;if(j===".opencode"&&k$.QITQODE_DISABLE_OPENCODE_SKILLS)return!1;return!0});for(let j of W){let _=zJ.join(f$.Path.home,j);if(!(yield*Z.isDir(_)))continue;yield*x2(Q,_,BV,{dot:!0,scope:"global"})}let B=yield*Z.up({targets:W,start:Y,stop:K}).pipe(G.catch(()=>G.succeed([])));for(let j of B)yield*x2(Q,j,BV,{dot:!0,scope:"project"})}let V=yield*$.directories();for(let W of V)yield*x2(Q,W,Mq);let X=yield*$.get();for(let W of X.skills?.paths??[]){let B=W.startsWith("~/")?zJ.join(Fq.homedir(),W.slice(2)):W,j=zJ.isAbsolute(B)?B:zJ.join(Y,B);if(!(yield*Z.isDir(j))){B8.warn("skill path not found",{path:j});continue}yield*x2(Q,j,p9)}for(let W of X.skills?.urls??[]){let B=yield*J.pull(W);for(let j of B)yield*x2(Q,j,p9)}return{matches:Array.from(Q.matches),dirs:Array.from(Q.dirs)}}),Sq=G.fnUntraced(function*($,J,Z){yield*G.forEach(J.matches,(Y)=>Iq($,Y,Z),{concurrency:16,discard:!0}),B8.info("init",{count:Object.keys($.skills).length})});class c9 extends D$.Service()("@qitqode/Skill"){}var OV=f.effect(c9,G.gen(function*(){let $=yield*FJ.Service,J=yield*R$.Service,Z=yield*P$.Service,Y=yield*$$.Service,K=yield*i.make(G.fn("Skill.discovery")(function*(_){return yield*Aq(J,$,Y,_.directory,_.worktree)})),Q=yield*i.make(G.fn("Skill.state")(function*(_){let q={skills:{},dirs:new Set};return yield*Sq(q,yield*i.get(K),Z),q})),V=G.fn("Skill.get")(function*(_){return(yield*i.get(Q)).skills[_]}),X=G.fn("Skill.all")(function*(){let _=yield*i.get(Q);return Object.values(_.skills)}),W=G.fn("Skill.dirs")(function*(){return(yield*i.get(K)).dirs}),B=G.fn("Skill.available")(function*(_){let q=yield*i.get(Q),H=Object.values(q.skills).filter((C)=>!C.hidden);if(H=H.toSorted((C,M)=>C.name.localeCompare(M.name)),!_)return H;return H.filter((C)=>E$.evaluate("skill",C.name,_.permission).action!=="deny")}),j=G.fn("Skill.reload")(function*(){yield*i.invalidate(K),yield*i.invalidate(Q)});return c9.of({get:V,all:X,dirs:W,available:B,reload:j})})),wq=OV.pipe(f.provide(FJ.defaultLayer),f.provide(R$.defaultLayer),f.provide(P$.layer),f.provide($$.defaultLayer));function Rq($,J){if($.length===0)return"No skills are currently available.";if(J.verbose)return["<available_skills>",...$.sort((Z,Y)=>Z.name.localeCompare(Y.name)).flatMap((Z)=>[" <skill>",` <name>${Z.name}</name>`,` <description>${Z.description}</description>`,` <location>${zq(Z.location).href}</location>`," </skill>"]),"</available_skills>"].join(`
|
|
7208
7208
|
`);return["## Available Skills",...$.toSorted((Z,Y)=>Z.name.localeCompare(Y.name)).map((Z)=>`- **${Z.name}**: ${Z.description}`)].join(`
|
|
7209
7209
|
`)}var g1={};o$(g1,{layer:()=>SV,defaultLayer:()=>gq,Service:()=>s9});import AV from"path";import hq from"os";import*as CJ from"fs/promises";import DV from"path";var q0=b2("memory_fts",{id:t0().primaryKey({autoIncrement:!0}),path:i$().notNull().unique(),scope:i$().notNull(),scope_id:i$().notNull().default(""),type:i$().notNull(),body:i$().notNull(),fingerprint:i$().notNull(),last_indexed_at:t0().notNull()},($)=>[e0("memory_fts_scope_idx").on($.scope,$.scope_id),e0("memory_fts_type_idx").on($.type)]);var Lq=["feedback","project","reference","user"],Nq=[{match:/^memory$/i,type:"memory"},{match:/^memory-/i,type:"memory"},{match:/^checkpoint$/,type:"checkpoint"},{match:/^checkpoint-/,type:"checkpoint"},{match:/^tasks\/[^/]+\/progress$/,type:"progress"},{match:/^tasks\/[^/]+\/notes$/,type:"notes"}];function yq($){for(let J of Nq)if(J.match.test($))return J.type;return"free"}function qV($){let Z=$.replaceAll("\\","/").match(/\/memory\/(global|projects|sessions)(?:\/([^/]+))?\/(.+)\.md$/);if(!Z)return null;let[,Y,K,Q]=Z,V=Y==="global"?"":K??"",X=Q;return{scope:Y,scope_id:V,type:yq(X),key:X}}var Tq=/\/\.claude\/projects\/([^/]+)\/memory\/(.+)\.md$/;function FV($){let J=$.replaceAll("\\","/").match(Tq);if(!J)return null;let[,Z,Y]=J;return{scope:"cc",scope_id:Z,type:"free",key:Y}}var kq=/^---\n([\s\S]*?)\n---\n/,Eq=/^[ \t]+type:[ \t]*(\w+)[ \t]*$/m;function zV($){let J=$.match(kq);if(!J)return null;let Y=J[1].match(Eq);if(!Y)return null;let K=Y[1];return Lq.includes(K)?K:null}var CV=O$.create({service:"memory.reconcile"});async function PV($){let J=[];async function Z(Y){let K=await CJ.readdir(Y,{withFileTypes:!0}).catch((Q)=>{if(Q.code==="ENOENT")return[];throw Q});for(let Q of K){let V=DV.join(Y,Q.name);if(Q.isDirectory())await Z(V);else if(Q.isFile()&&V.endsWith(".md"))J.push(V)}}return await Z($),J}async function xq($){let J=await CJ.readdir($,{withFileTypes:!0}).catch((Y)=>{if(Y.code==="ENOENT")return[];throw Y}),Z=[];for(let Y of J){if(!Y.isDirectory())continue;let K=DV.join($,Y.name,"memory");if(!await CJ.stat(K).then(()=>!0).catch(()=>!1))continue;let V=await PV(K);for(let X of V)Z.push(X)}return Z}async function MV($,J,Z,Y){let K=await CJ.stat($).catch((W)=>{if(W.code==="ENOENT")return null;throw W});if(!K)return"skipped";let Q=`${K.size}-${K.mtimeMs}`;if(Y===Q)return"hit";let V=await Bun.file($).text(),X=Z==="cc"?zV(V)??"free":J.type;return z$.use((W)=>W.insert(q0).values({path:$,scope:J.scope,scope_id:J.scope_id,type:X,body:V,fingerprint:Q,last_indexed_at:Date.now()}).onConflictDoUpdate({target:q0.path,set:{scope:J.scope,scope_id:J.scope_id,type:X,body:V,fingerprint:Q,last_indexed_at:Date.now()}}).run()),"updated"}async function B7($){let J=new Set(await PV($.qode)),Z=$.cc?new Set(await xq($.cc)):new Set,Y=new Set([...J,...Z]),K=new Map(z$.use((X)=>X.select({path:q0.path,fingerprint:q0.fingerprint}).from(q0).all()).map((X)=>[X.path,X.fingerprint])),Q=0;for(let X of K.keys())if(!Y.has(X))z$.use((W)=>W.delete(q0).where(G$(q0.path,X)).run()),Q++;let V=0;for(let X of J){let W=qV(X);if(!W){CV.warn("path outside memory layout, skipping",{path:X});continue}if(await MV(X,W,"qode",K.get(X))==="updated")V++}for(let X of Z){let W=FV(X);if(!W){CV.warn("CC path failed to parse, skipping",{path:X});continue}if(await MV(X,W,"cc",K.get(X))==="updated")V++}return{indexed:V,pruned:Q}}function o9($,J){let Z=$.match(/[\p{L}\p{N}_]+/gu)?.map((K)=>K.trim()).filter(Boolean)??[];if(Z.length===0)return null;return Z.map((K)=>`"${K.replaceAll('"',"")}"`).join(` ${J} `)}function IV($){return o9($,"OR")}var bq=64,vq=8,r9=4096;function i9($){let J=z$.Client().$client,Z=$.conditions.length>0?`WHERE ${$.conditions.join(" AND ")}`:"",Y=`
|
|
7210
7210
|
WITH matched(fts_rowid, fts_score) AS (
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{i as P,j as g,k as b,l as h,m as O}from"./chunk-c01z3cvg.js";import"./chunk-jje0srjq.js";import"./chunk-27yxgy03.js";import{Rd as u}from"./chunk-yajd975f.js";import{Vf as s}from"./chunk-7ppd2phw.js";import{hh as f}from"./chunk-
|
|
2
|
+
import{i as P,j as g,k as b,l as h,m as O}from"./chunk-c01z3cvg.js";import"./chunk-jje0srjq.js";import"./chunk-27yxgy03.js";import{Rd as u}from"./chunk-yajd975f.js";import{Vf as s}from"./chunk-7ppd2phw.js";import{hh as f}from"./chunk-612f97vv.js";import"./chunk-0nj8axbw.js";import{bi as E}from"./chunk-p68rwmhc.js";import"./chunk-0a0vat1h.js";import"./chunk-z8v2tsz2.js";import"./chunk-j8efst22.js";import"./chunk-a1pw9r6f.js";import"./chunk-d5bxan80.js";import{$j as p,_j as S}from"./chunk-8tc8x27z.js";import"./chunk-k7g3h9tn.js";import"./chunk-rmr38x2f.js";import"./chunk-5syxjhg3.js";import"./chunk-nj4d554m.js";import"./chunk-1t6bvbgy.js";import"./chunk-cmbxrgyx.js";import"./chunk-a1p2f16h.js";import"./chunk-nt4e3em9.js";import"./chunk-hk698g9e.js";import"./chunk-v965rsr8.js";import"./chunk-1sgby720.js";import"./chunk-5g8108nf.js";import"./chunk-4tbwha3m.js";import"./chunk-m612agnk.js";import"./chunk-yq3m8190.js";import"./chunk-btz9jvec.js";import"./chunk-cqtkxwd8.js";import"./chunk-fkgv2hqd.js";import"./chunk-zyhdxggp.js";import"./chunk-q6ztpfcs.js";import"./chunk-jm1ptn8n.js";import"./chunk-c5e6sk9c.js";import"./chunk-m02zt1a3.js";import"./chunk-vg2fmyje.js";import"./chunk-fzna6jdj.js";import"./chunk-x1rx6fm7.js";import"./chunk-4qqkqrn9.js";import"./chunk-j6emx6jn.js";import"./chunk-be216spx.js";import"./chunk-12bssxd4.js";import"./chunk-24xc0dvv.js";import"./chunk-ebrt1me3.js";import"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import{xA as I}from"./chunk-phxrg7aw.js";import{PI as l,UC as d,jE as D}from"./chunk-snm5q21k.js";import"./chunk-xpc2zgj7.js";import"./chunk-qjjch1zt.js";import"./chunk-aztre27e.js";var A=(o)=>l.promise(()=>E(o)),m=(o)=>l.sync(()=>s.println(o)),v=(o)=>s.Style.TEXT_DIM+o+s.Style.TEXT_NORMAL,L=(o)=>o?v(" (active)"):"",w=(o,e)=>`${o.email} ${v(o.url)}${L(e)}`,x=(o,e,t)=>`${e.name} (${o.email})${L(t)}`,C=(o,e,t)=>{let n=t?s.Style.TEXT_SUCCESS+"\u25CF"+s.Style.TEXT_NORMAL:" ",c=t?s.Style.TEXT_HIGHLIGHT_BOLD+e.name+s.Style.TEXT_NORMAL:e.name;return` ${n} ${c} ${v(o.email)} ${v(o.url)} ${v(e.id)}`},T=(o,e)=>d.isSome(o)&&o.value.id===e.accountID&&o.value.active_org_id===e.orgID,_=l.fn("login")(function*(o){let e=yield*p.Service;yield*P("Log in");let t=yield*e.login(o);yield*b.info("Go to: "+t.url),yield*b.info("Enter code: "+t.user),yield*A(t.url);let n=O();yield*n.start("Waiting for authorization...");let c=(r)=>l.gen(function*(){yield*l.sleep(r);let i=yield*e.poll(t);if(i._tag==="PollPending")return yield*c(r);if(i._tag==="PollSlow")return yield*c(D.sum(r,D.seconds(5)));return i}),a=yield*c(t.interval).pipe(l.timeout(t.expiry),l.catchTag("TimeoutError",()=>l.succeed(new S)));yield*I.valueTags(a,{PollSuccess:(r)=>l.gen(function*(){yield*n.stop("Logged in as "+r.email),yield*g("Done")}),PollExpired:()=>n.stop("Device code expired",1),PollDenied:()=>n.stop("Authorization denied",1),PollError:(r)=>n.stop("Error: "+String(r.cause),1),PollPending:()=>n.stop("Unexpected state",1),PollSlow:()=>n.stop("Unexpected state",1)})}),N=l.fn("logout")(function*(o){let e=yield*p.Service,t=yield*e.list();if(t.length===0)return yield*m("Not logged in");if(o){let i=t.find((y)=>y.email===o);if(!i)return yield*m("Account not found: "+o);yield*e.remove(i.id),yield*g("Logged out from "+o);return}let n=yield*e.active(),c=d.map(n,(i)=>i.id);yield*P("Log out");let a=t.map((i)=>{let y=d.isSome(c)&&c.value===i.id;return{value:i,label:w(i,y)}}),r=yield*h({message:"Select account to log out",options:a});if(d.isNone(r))return;yield*e.remove(r.value.id),yield*g("Logged out from "+r.value.email)}),$=l.fn("switch")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("Not logged in");let t=yield*o.active(),n=e.flatMap((r)=>r.orgs.map((i)=>{let y=T(t,{accountID:r.account.id,orgID:i.id});return{value:{orgID:i.id,accountID:r.account.id,label:i.name},label:x(r.account,i,y)}}));if(n.length===0)return yield*m("No orgs found");yield*P("Switch org");let c=yield*h({message:"Select org",options:n});if(d.isNone(c))return;let a=c.value;yield*o.use(a.accountID,d.some(a.orgID)),yield*g("Switched to "+a.label)}),R=l.fn("orgs")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("No accounts found");if(!e.some((n)=>n.orgs.length>0))return yield*m("No orgs found");let t=yield*o.active();for(let n of e)for(let c of n.orgs){let a=T(t,{accountID:n.account.id,orgID:c.id});yield*m(C(n.account,c,a))}}),M=l.fn("open")(function*(){let e=yield*(yield*p.Service).active();if(d.isNone(e))return yield*m("No active account");let t=e.value.url;yield*A(t),yield*g("Opened "+t)}),X=u({command:"login <url>",describe:!1,builder:(o)=>o.positional("url",{describe:"server URL",type:"string",demandOption:!0}),async handler(o){s.empty(),await f.runPromise(_(o.url))}}),B=u({command:"logout [email]",describe:!1,builder:(o)=>o.positional("email",{describe:"account email to log out from",type:"string"}),async handler(o){s.empty(),await f.runPromise(N(o.email))}}),U=u({command:"switch",describe:!1,async handler(){s.empty(),await f.runPromise($())}}),G=u({command:"orgs",describe:!1,async handler(){s.empty(),await f.runPromise(R())}}),H=u({command:"open",describe:!1,async handler(){s.empty(),await f.runPromise(M())}}),Y=u({command:"console",describe:!1,builder:(o)=>o.command({...X,describe:"log in to console"}).command({...B,describe:"log out from console"}).command({...U,describe:"switch active org"}).command({...G,describe:"list orgs"}).command({...H,describe:"open active console account"}).demandCommand(),async handler(){}});export{C as formatOrgLine,w as formatAccountLabel,U as SwitchCommand,G as OrgsCommand,H as OpenCommand,B as LogoutCommand,X as LoginCommand,Y as ConsoleCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{h as x}from"./chunk-
|
|
2
|
+
import{h as x}from"./chunk-cwqd48xt.js";import{j as D}from"./chunk-c01z3cvg.js";import{H as S}from"./chunk-f2tdfry8.js";import{I as A,J as R}from"./chunk-s6bar2f9.js";import{Rd as T}from"./chunk-yajd975f.js";import{Vf as j}from"./chunk-7ppd2phw.js";import{Cg as v,Dg as K,Eg as k,Gg as F,sg as Y,tg as _,ug as w,vg as O,zg as b}from"./chunk-my7mn79h.js";import{hh as $}from"./chunk-612f97vv.js";import{Jp as B,Op as W}from"./chunk-hk698g9e.js";import{PI as H}from"./chunk-snm5q21k.js";var X="forgewise",d=(J,z=process.env)=>J.trim()||z.QLEX_API_KEY?.trim()||"",u=(J)=>H.gen(function*(){let z=J.trim();if(!z)yield*H.sync(()=>{j.println(j.Style.TEXT_DANGER+"Error: API key cannot be empty."+j.Style.TEXT_NORMAL)}),process.exit(1);yield*(yield*B.Service).set(X,{type:"api",key:z,metadata:{method:"api-key"}}),yield*D(j.Style.TEXT_SUCCESS+"Signed in with API key."+j.Style.TEXT_NORMAL)}).pipe(H.withSpan("forgewise.login.apikey"));async function p(){let J=!w();try{return await K({tryOpen:J,onCode:(z)=>{if(process.stdout.write(`
|
|
3
3
|
`),process.stdout.write(" To sign in, open: "+z.verificationUri+`
|
|
4
4
|
`),process.stdout.write(" and enter code: "+z.userCode+`
|
|
5
5
|
`),z.verificationUriComplete)process.stdout.write(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Rd as a}from"./chunk-yajd975f.js";import{Sf as d}from"./chunk-
|
|
2
|
+
import{Rd as a}from"./chunk-yajd975f.js";import{Sf as d}from"./chunk-g16zb3y1.js";import{Vf as i}from"./chunk-7ppd2phw.js";import{$l as p,bm as n}from"./chunk-rmr38x2f.js";import"./chunk-5syxjhg3.js";import{ap as f}from"./chunk-nj4d554m.js";import"./chunk-nt4e3em9.js";import"./chunk-v965rsr8.js";import"./chunk-1sgby720.js";import"./chunk-5g8108nf.js";import"./chunk-fzna6jdj.js";import"./chunk-x1rx6fm7.js";import"./chunk-4qqkqrn9.js";import"./chunk-be216spx.js";import"./chunk-12bssxd4.js";import"./chunk-ebrt1me3.js";import{Bu as m}from"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import"./chunk-phxrg7aw.js";import"./chunk-snm5q21k.js";import"./chunk-aztre27e.js";import{spawn as y}from"child_process";import{Database as g}from"bun:sqlite";import{EOL as l}from"os";var b=a({command:"$0 [query]",describe:"open an interactive sqlite3 shell or run a query",builder:(t)=>{return t.positional("query",{type:"string",describe:"SQL query to execute"}).option("format",{type:"string",choices:["json","tsv"],default:"tsv",describe:"Output format"})},handler:async(t)=>{let o=t.query;if(o){let r=new g(n.Path,{readonly:!0});try{let e=r.query(o).all();if(t.format==="json")console.log(JSON.stringify(e,null,2));else if(e.length>0){let s=Object.keys(e[0]);console.log(s.join("\t"));for(let u of e)console.log(s.map((h)=>u[h]).join("\t"))}}catch(e){i.error(m(e)),process.exit(1)}r.close();return}let c=y("sqlite3",[n.Path],{stdio:"inherit"});await new Promise((r)=>c.on("close",r))}}),w=a({command:"path",describe:"print the database path",handler:()=>{console.log(n.Path)}}),q=a({command:"migrate",describe:"migrate JSON data to SQLite (merges with existing data)",handler:async()=>{let t=new g(n.Path),o=process.stderr.isTTY,c=-1;if(o)process.stderr.write("\x1B[?25l");try{let r=await p.run(f({client:t}),{progress:(e)=>{let s=Math.floor(e.current/e.total*100);if(s===c)return;if(c=s,o)process.stderr.write(d(s,`${e.current}/${e.total}`)+" ");else process.stderr.write(`sqlite-migration:${s}${l}`)}});if(o)process.stderr.write(`
|
|
3
3
|
`);if(o)process.stderr.write("\x1B[?25h");else process.stderr.write(`sqlite-migration:done${l}`);if(i.println(`Migration complete: ${r.projects} projects, ${r.sessions} sessions, ${r.messages} messages`),r.errors.length>0)i.println(`${r.errors.length} errors occurred during migration`)}catch(r){if(o)process.stderr.write("\x1B[?25h");i.error(`Migration failed: ${m(r)}`),process.exit(1)}finally{t.close()}}}),v=a({command:"db",describe:"database tools",builder:(t)=>{return t.command(b).command(w).command(q).demandCommand()},handler:()=>{}});export{v as DbCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fp as w,gp as A,jp as U,kp as O,op as R,qp as s,rp as F}from"./chunk-
|
|
2
|
+
import{fp as w,gp as A,jp as U,kp as O,op as R,qp as s,rp as F}from"./chunk-cmbxrgyx.js";import{Gp as G}from"./chunk-nt4e3em9.js";import{$p as L}from"./chunk-v965rsr8.js";import{Nu as M,Su as k}from"./chunk-whxjkz9a.js";import{pO as y}from"./chunk-snm5q21k.js";import{bQ as Y}from"./chunk-aztre27e.js";var _={};Y(_,{schema:()=>x,jsonc:()=>v,ConfigParse:()=>_});function v($,r){let E=[],J=w($,E,{allowTrailingComma:!0});if(E.length){let C=$.split(`
|
|
3
3
|
`),T=E.map((I)=>{let Z=$.substring(0,I.offset).split(`
|
|
4
4
|
`),H=Z.length,j=Z[Z.length-1].length+1,B=C[H-1],Q=`${A(I.error)} at line ${H}, column ${j}`;if(!B)return Q;return`${Q}
|
|
5
5
|
Line ${H}: ${B}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Nt as q,Pt as c,Qt as f,Rt as P,St as Y,Tt as y,Ut as F}from"./chunk-
|
|
2
|
+
import{Nt as q,Pt as c,Qt as f,Rt as P,St as Y,Tt as y,Ut as F}from"./chunk-ebrt1me3.js";import{bQ as X}from"./chunk-aztre27e.js";var W={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"}},Z={free:"Free (no cost)",default:"Default",fast:"Fast",economical:"Economy",power:"Power",orchestrated:"Orchestrated"},$={free:{intelligence:6,speed:7,cost:0},fast:{intelligence:4,speed:10,cost:1},economical:{intelligence:8,speed:2,cost:1},default:{intelligence:9,speed:1,cost:5},power:{intelligence:10,speed:4,cost:10},orchestrated:{intelligence:7,speed:6,cost:1}};function z(x){return typeof x==="number"&&Number.isFinite(x)&&x>=0&&x<=10}function D(x){if(!x||typeof x!=="object"||Array.isArray(x))return;for(let[j,H]of Object.entries(x)){if(!H||typeof H!=="object"||Array.isArray(H))continue;let K=H;if(!z(K.intelligence)||!z(K.speed)||!z(K.cost))continue;$[j]={intelligence:K.intelligence,speed:K.speed,cost:K.cost}}}function V(x){if(!Array.isArray(x)||x.length===0)return;let j={},H={};for(let K of x){let J=W[K.id];j[K.id]={providerID:K.providerID??J?.providerID??"qlex",modelID:K.modelID??J?.modelID??K.id},H[K.id]=K.label??Z[K.id]??K.id}for(let K of Object.keys(W))delete W[K];Object.assign(W,j);for(let K of Object.keys(Z))delete Z[K];Object.assign(Z,H)}var Q={};X(Q,{tiers:()=>p,tierRatings:()=>m,streamUrl:()=>w,streamBaseUrl:()=>G,sanitizeUpstreamError:()=>U,qlexProviderMeta:()=>N,omniqueryBaseUrl:()=>O,mergeLiveTiers:()=>b,mergeLiveTierRatings:()=>h,evaluatePermission:()=>M,copy:()=>d,bashPrefixWith:()=>B,TIER_RATINGS:()=>$,AGENT_PROMPT_NAMES:()=>k});function b(x){V(x)}function h(x){D(x)}function p(){return Object.entries(W).map(([x,j])=>({id:x,label:Z[x]??x,providerID:j.providerID,modelID:j.modelID}))}function m(){return $}function M(x,j,...H){return H.flat().findLast((C)=>q(x,C.permission)&&q(j,C.pattern))??{action:"ask",permission:x,pattern:"*"}}function B(x,j){for(let H=j.length;H>0;H--){let K=j.slice(0,H).join(" "),J=x[K];if(J!==void 0)return j.slice(0,J)}if(j.length===0)return[];return j.slice(0,1)}function w(){return c}function G(){return f}function O(){return P}function N(){return Y}function U(x){return y(x)}function d(){return F}var k=["generate","explore","dream","distill","summary","compaction","title"];export{W as rt,Q as st};
|