@ebowwa/coder 0.1.7 → 0.1.9
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/dist/cli.js +1 -1
- package/dist/index-6fvnkedw.js +240 -0
- package/dist/index-ycjxx9ft.js +240 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as kz,A as p,B as Qz,C as Vz,D as Wz,E as Xz,F as Yz,G as Zz,H as $z,I as Ez,J as Fz,K as Hz,L as Sz,M as Uz,N as bz,O as qz,P as _z,Q as Nz,R as Q,T as Pz,U as Rz,V as gz,W as yz,X as Lz,Y as fz,Z as wz,_ as Mz,aa as Cz,b as Dz,ba as pz,c as Gz,ca as vz,d as Iz,da as Tz,e as Jz,ea as hz,f as Kz,g as Oz,h as E,i as F,j as H,k as S,l as U,m as b,n as q,o as _,p as N,q as P,r as R,s as g,t as y,u as L,v as f,w,x as M,y as k,z as C}from"./index-
|
|
2
|
+
import{$ as kz,A as p,B as Qz,C as Vz,D as Wz,E as Xz,F as Yz,G as Zz,H as $z,I as Ez,J as Fz,K as Hz,L as Sz,M as Uz,N as bz,O as qz,P as _z,Q as Nz,R as Q,T as Pz,U as Rz,V as gz,W as yz,X as Lz,Y as fz,Z as wz,_ as Mz,aa as Cz,b as Dz,ba as pz,c as Gz,ca as vz,d as Iz,da as Tz,e as Jz,ea as hz,f as Kz,g as Oz,h as E,i as F,j as H,k as S,l as U,m as b,n as q,o as _,p as N,q as P,r as R,s as g,t as y,u as L,v as f,w,x as M,y as k,z as C}from"./index-ycjxx9ft.js";import{dlopen as V,suffix as W}from"bun:ffi";import{join as X,dirname as Y}from"path";import{fileURLToPath as Z}from"url";var I=null;function O(){if(I)return I;try{let z=Y(Z(import.meta.url)),B=X(z,"..","native",`claude_code_native.${W}`);return I=V(B,{search_files:{args:["cstring","cstring","pointer"],returns:"pointer"},count_tokens:{args:["cstring"],returns:"u32"},calculate_diff:{args:["cstring","cstring"],returns:"pointer"},compact_content:{args:["cstring","u32","cstring"],returns:"pointer"}}).symbols,I}catch(z){return console.warn("Native module not available, using JS fallback:",z),$()}}function m(){try{return O(),I!==null}catch{return!1}}function $(){return{search_files:(z,B,D)=>{return{matches:[],total_count:0,files_searched:0}},count_tokens:(z)=>{return Math.ceil(z.length/4)},calculate_diff:(z,B)=>{let D=z.split(`
|
|
3
3
|
`),J=B.split(`
|
|
4
4
|
`),A=[];if(z!==B)A.push({old_start:1,old_lines:D.length,new_start:1,new_lines:J.length,content:`- ${D.join(`
|
|
5
5
|
- `)}
|