fluxflow-cli 4.16.15 → 4.16.16
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/chunks/{ai-CNNQXF3I.js → ai-XZ3MGIQ7.js} +1 -1
- package/dist/chunks/{app-NME2CLFN.js → app-3WHQFSU3.js} +145 -145
- package/dist/chunks/{chunk-SHTF7RHG.js → chunk-J4WOA7AZ.js} +1 -1
- package/dist/chunks/{chunk-HNUV7OHA.js → chunk-QA3IBTCI.js} +1 -1
- package/dist/chunks/chunk-QT36VX2J.js +928 -0
- package/dist/chunks/{chunk-4VUJ7ITH.js → chunk-XTUFKNZX.js} +1 -1
- package/dist/chunks/{exec_command-ERULJCYR.js → exec_command-DDWE5QX2.js} +1 -1
- package/dist/chunks/{invoke-CDCGPCCW.js → invoke-FUW5RIXJ.js} +2 -2
- package/dist/chunks/{invokeSync-A2X2JQLH.js → invokeSync-HNT3GX4S.js} +2 -2
- package/dist/chunks/{update_file-U2ZALD44.js → update_file-J2Q43AEV.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/chunks/ai-LCWIVGYS.js +0 -1
- package/dist/chunks/ai-QH7QP4PV.js +0 -1
- package/dist/chunks/app-4TVG4DAT.js +0 -285
- package/dist/chunks/app-SZFXXQWI.js +0 -285
- package/dist/chunks/chunk-OWWS4KQT.js +0 -927
- package/dist/chunks/chunk-Y3JMQZN4.js +0 -927
- package/dist/chunks/chunk-ZGDWX7E2.js +0 -927
- package/dist/chunks/invoke-USNHI3CR.js +0 -6
- package/dist/chunks/invoke-WP72YFIB.js +0 -6
- package/dist/chunks/invokeSync-P3UULZBX.js +0 -3
- package/dist/chunks/invokeSync-QDDZDMTE.js +0 -3
|
@@ -8,7 +8,7 @@ import{execSync as o}from"child_process";var t=null,h=()=>{if(process.platform!=
|
|
|
8
8
|
`,i=`**Workspace Tools (path = relative; first argument; separator: '/')**
|
|
9
9
|
- ReadFile(path=string, startLine?=int, endLine?=int)${u==="Google"||c?". Supports images/docs":""}
|
|
10
10
|
- ReadFolder(path=string, recurse?=int[1..3])
|
|
11
|
-
- PatchFile(path=string, allowMultiple?=bool, searchContent1="string match OR ^LINE:start..end$", newContent1=string, ...MAX15). Small searchString. Line Anchor: ^LINE:...$ syntax, must for large blocks
|
|
11
|
+
- PatchFile(path=string, allowMultiple?=bool, searchContent1="string match OR ^LINE:start..end$", newContent1=string, ...MAX15). Small searchString. Line Anchor: ^LINE:...$ syntax, must for large blocks & escape sequences
|
|
12
12
|
- WriteFile(path=string, content=string). Creates/Overwrites. File Exist? PatchFile > WriteFile
|
|
13
13
|
- CodeSearch(keyword=string, path?="dir/file/glob/regex, inclusion/exclusion ;-separated", fuzzy?=bool, regex?=bool:auto). Find relevant code, standard junk excluded
|
|
14
14
|
- Run(command=string). Runs ${l==="Windows"?a()?"powershell":"windows CMD":"bash"} command. Destructive command \u2192 Ask user
|
|
@@ -35,7 +35,7 @@ import{c as X}from"./chunk-FDNLMLIM.js";import G from"os";var R=t=>typeof t!="st
|
|
|
35
35
|
`,i++}if(h){let k=`[DIFF_START]
|
|
36
36
|
`,u=r.substring(k.length),S=`[UI_CONTEXT] ${l}
|
|
37
37
|
`,f=u.split(S).map(c=>c.split(`
|
|
38
|
-
`).filter(w=>w.trim()!=="").length>
|
|
38
|
+
`).filter(w=>w.trim()!=="").length>120?`[[VERIFIED]]
|
|
39
39
|
${c}
|
|
40
40
|
[[/VERIFIED]]`:c);r=k+f.join(S)}return r+="[DIFF_END]",R(r)},K=t=>{if(!t)return null;let o=t.replace("[UI_CONTEXT]","").replace(/\r/g,""),p=o.startsWith("-"),x=o.startsWith("+"),h=p||x?o.substring(1):o,a=h.indexOf("|"),d=a!==-1?R(h.substring(0,a).trim()):"",y=R(a!==-1?h.substring(a+1):h);return{isR:p,isA:x,num:d,content:y}},Y=(t,o)=>{if(!t&&!o)return 1;if(!t||!o)return 0;let p=t.length,x=o.length,h=t,a=o;p<x&&(h=o,a=t);let d=h.length,y=a.length,e=new Int32Array(y+1),s=new Int32Array(y+1);for(let i=0;i<=y;i++)e[i]=i;for(let i=1;i<=d;i++){s[0]=i;let $=h[i-1];for(let b=1;b<=y;b++)$===a[b-1]?s[b]=e[b-1]:s[b]=Math.min(e[b],s[b-1],e[b-1])+1;e.set(s)}let r=e[y],l=Math.max(p,x);return l===0?1:1-r/l},z=t=>{let o=[],p=[];t.forEach((r,l)=>{r.parsed.isR?o.push({index:l,content:r.parsed.content}):r.parsed.isA&&p.push({index:l,content:r.parsed.content})});let x=o.length,h=p.length;if(x===0||h===0)return;let a=Array.from({length:x+1},()=>Array(h+1).fill(0)),d=Array.from({length:x+1},()=>Array(h+1).fill(""));for(let r=1;r<=x;r++)d[r][0]="up";for(let r=1;r<=h;r++)d[0][r]="left";let y=Array.from({length:x},()=>Array(h).fill(0));for(let r=0;r<x;r++)for(let l=0;l<h;l++)y[r][l]=Y(o[r].content.trim(),p[l].content.trim());for(let r=1;r<=x;r++)for(let l=1;l<=h;l++){let i=y[r-1][l-1],$=i>=.2?i:-10,b=a[r-1][l-1]+$,k=a[r-1][l],u=a[r][l-1];b>=k&&b>=u?(a[r][l]=b,d[r][l]="diag"):k>=u?(a[r][l]=k,d[r][l]="up"):(a[r][l]=u,d[r][l]="left")}let e=x,s=h;for(;e>0||s>0;)if(d[e][s]==="diag"){if(y[e-1][s-1]>=.2){let l=o[e-1].index,i=p[s-1].index;t[l].pairContent=t[i].parsed.content,t[i].pairContent=t[l].parsed.content}e--,s--}else d[e][s]==="up"?e--:s--},B=new Map,P=new Map,H=200,W=5,U=(t,o)=>{o.set(t.key,t),t.type==="chunk"&&t.blocks&&t.blocks.forEach(p=>U(p,o))},ht=(t,o)=>{if(!t)return{completed:[],active:[]};let p=`${t.id}-${t.text?.length||0}-${o}-${t.isStreaming}-${t.workedDuration||0}`;if(!t.isStreaming&&B.has(p))return B.get(p);let x=R(et(t.text||"",t.role)),h=`${t.id}-${o}`,a=new Map;if(t.isStreaming){let u=P.get(h);u&&x.startsWith(u.text)&&(a=u.blocksMap)}let d=(u,S,n,f={})=>{let c=a.get(u);if(c&&c.text===n&&c.type===S&&!!c.isActiveBlock==!!f.isActiveBlock&&!!c.isStreaming==!!f.isStreaming&&c.pairContent===f.pairContent)return c;let C=R(n),w={...f};return typeof w.pairContent=="string"&&(w.pairContent=R(w.pairContent)),Array.isArray(w.wrappedLines)&&(w.wrappedLines=w.wrappedLines.map(R)),{key:u,isStreamingMsg:!!t.isStreaming,workedDuration:t.workedDuration,type:S,text:C,msg:S==="full-message"?t:void 0,...w}};if(x.includes("- Content Preview:")){let u="",S=x.match(/File\s+\[(.*?)\]/i);S&&(u=S[1].split(".").pop().toLowerCase());let w=((x.split("- Content Preview:")[1]||"").split("[SYSTEM] Check the content preview for verification [/SYSTEM]")[0]?.trim()||"").split(`
|
|
41
41
|
`).map(E=>E.replace(/\r$/,"")),I=String(w.length).length,L=[],g=null,m=[],F=()=>{if(!m.length)return;let E=m;m=[],L.push(E.length===1?E[0]:{key:`${E[0].key}-chunk`,type:"chunk",blocks:E})},A=o-(I+6);return w.forEach((E,M)=>{let T=M===w.length-1,_=v(E,A).split(`
|