fluxflow-cli 4.36.5 → 4.37.0
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/cat.txt +3 -3
- package/dist/chunks/{9router-4EJCHCIO.js → 9router-CKETGMBB.js} +1 -1
- package/dist/chunks/{addMemScore-BCPTSMKD.js → addMemScore-76XLEW3K.js} +1 -1
- package/dist/chunks/{ai-ZW5X4EZL.js → ai-OQIVTNU2.js} +1 -1
- package/dist/chunks/{aihubmix-ZANBMI5F.js → aihubmix-YSGVPUM4.js} +1 -1
- package/dist/chunks/{apinex-MSG2QNBL.js → apinex-VI576FVJ.js} +1 -1
- package/dist/chunks/{app-KNIDIMIZ.js → app-SOKCZSBF.js} +152 -152
- package/dist/chunks/{chat-MELTWDZ3.js → chat-RLEHK3MX.js} +1 -1
- package/dist/chunks/{chunk-4MDSKJGX.js → chunk-2VV5ZE53.js} +1 -1
- package/dist/chunks/{chunk-FQBBOFNP.js → chunk-3JI2CRXK.js} +1 -1
- package/dist/chunks/chunk-5UEMARJ5.js +919 -0
- package/dist/chunks/{chunk-SZYN3VHU.js → chunk-BTMPM5BT.js} +1 -1
- package/dist/chunks/{chunk-QYNGDXPT.js → chunk-CBFC5KUU.js} +1 -1
- package/dist/chunks/{chunk-KHCAQOSP.js → chunk-ET66XVIM.js} +1 -1
- package/dist/chunks/{chunk-JS5ZIGFR.js → chunk-FAEB3V5R.js} +1 -1
- package/dist/chunks/chunk-FSE4BZZZ.js +1 -0
- package/dist/chunks/{chunk-VYTQ6J56.js → chunk-HOZQBBAO.js} +1 -1
- package/dist/chunks/{chunk-MTPBPPXV.js → chunk-JTTVSAKS.js} +1 -1
- package/dist/chunks/{chunk-OA7SWSBR.js → chunk-K4AZXTU6.js} +1 -1
- package/dist/chunks/{chunk-KAL5XSAQ.js → chunk-LTX2IUDV.js} +9 -10
- package/dist/chunks/chunk-M2ULCOL3.js +2 -0
- package/dist/chunks/chunk-MJL6DHQM.js +5 -0
- package/dist/chunks/{chunk-BGIZLZQF.js → chunk-PRTGV2R4.js} +1 -1
- package/dist/chunks/{chunk-7SFAWGE2.js → chunk-QOT4BYHM.js} +1 -1
- package/dist/chunks/{chunk-RZTZPIC5.js → chunk-T4ZG2WCV.js} +1 -1
- package/dist/chunks/click-B4ZRHV4Z.js +2 -0
- package/dist/chunks/{computer_action-WORDXIQY.js → computer_action-2RYMIFAM.js} +1 -1
- package/dist/chunks/{custom_openai-VP2CSZUQ.js → custom_openai-TLPPKENJ.js} +1 -1
- package/dist/chunks/{deepseek-Y4NFGKGV.js → deepseek-2GJCWFSR.js} +1 -1
- package/dist/chunks/{drag-LC3MFJZ7.js → drag-RNGTIO2V.js} +1 -1
- package/dist/chunks/{emergency_rollback-6X27LZE4.js → emergency_rollback-NXD2JKBG.js} +1 -1
- package/dist/chunks/{exec_command-ZPCKBWBK.js → exec_command-KLASTN6U.js} +1 -1
- package/dist/chunks/{explabs-4D3EJOBE.js → explabs-YICY4AMR.js} +1 -1
- package/dist/chunks/{export-QFE76VEG.js → export-C6VVIYP5.js} +1 -1
- package/dist/chunks/{file_map-KS6Y7BP3.js → file_map-T5FHB3F6.js} +1 -1
- package/dist/chunks/{find_file-A6NYLQJS.js → find_file-LZR7NET3.js} +1 -1
- package/dist/chunks/{generate_image-EKX5PUUR.js → generate_image-75IV5P3L.js} +1 -1
- package/dist/chunks/{inferx-R7LOBSCS.js → inferx-YMU7LMOQ.js} +1 -1
- package/dist/chunks/{infron-DMF34OSO.js → infron-A4BOV2AA.js} +1 -1
- package/dist/chunks/{invoke-M6VUQ6GW.js → invoke-IVSN6GNM.js} +2 -2
- package/dist/chunks/{invokeSync-MW7SR3Z4.js → invokeSync-LLGAN4ZS.js} +2 -2
- package/dist/chunks/{key_press-PDKXVENN.js → key_press-3VU6SHNQ.js} +1 -1
- package/dist/chunks/{keyboard_typing-UTFSDB4P.js → keyboard_typing-PCW3ISET.js} +1 -1
- package/dist/chunks/{memory-M7ASUB6J.js → memory-4DXO4K5C.js} +1 -1
- package/dist/chunks/{mistral-LNEFQAV5.js → mistral-2CZKHKDT.js} +1 -1
- package/dist/chunks/{model_config-55WPIUYV.js → model_config-VYWFV55M.js} +1 -1
- package/dist/chunks/{nvidia-GMX2ROSD.js → nvidia-EOLGFGFZ.js} +1 -1
- package/dist/chunks/{ollama-ZPTZJK7V.js → ollama-OHD5BFI7.js} +1 -1
- package/dist/chunks/{openrouter-T22AQJY6.js → openrouter-SK7LO52I.js} +1 -1
- package/dist/chunks/paths-EQFOJDZC.js +1 -0
- package/dist/chunks/{poolside-IS5XCHAE.js → poolside-SAAXTNGR.js} +1 -1
- package/dist/chunks/{saveSummary-UGNDVNI5.js → saveSummary-ZSJ2UKLG.js} +1 -1
- package/dist/chunks/screen_grid-Z2S4GMN5.js +1 -0
- package/dist/chunks/{scroll-UPGZCBPD.js → scroll-YSFTTROP.js} +1 -1
- package/dist/chunks/search_keyword-G3PCZR3C.js +8 -0
- package/dist/chunks/{secrets-UNXNDOLK.js → secrets-GHW6AWRR.js} +1 -1
- package/dist/chunks/{sensenova-AJZGPQZ5.js → sensenova-MQKZ7TNO.js} +1 -1
- package/dist/chunks/settings-5R5ADGXX.js +1 -0
- package/dist/chunks/{todo-GFMPH2JV.js → todo-KQCKHQBJ.js} +1 -1
- package/dist/chunks/{tokenharbor-3ZMTIJ2M.js → tokenharbor-A46BJ445.js} +1 -1
- package/dist/chunks/{ui_detector_onnx-YGGFMOK5.js → ui_detector_onnx-XRKXFWLG.js} +1 -1
- package/dist/chunks/{update_file-NBLTUYHL.js → update_file-OQMKLO6R.js} +1 -1
- package/dist/chunks/{usage-CAY5LYRU.js → usage-2WRVNL44.js} +1 -1
- package/dist/chunks/{usageServer-PJOHIWJT.js → usageServer-6XH36WK3.js} +1 -1
- package/dist/chunks/view_file-TZD6DAER.js +1 -0
- package/dist/chunks/{web_scrape-JO4DDXKB.js → web_scrape-KBKSNVBI.js} +1 -1
- package/dist/chunks/{web_search-2PFIJKIL.js → web_search-HACFAHXR.js} +1 -1
- package/dist/chunks/{write_docx-4Y43QJUV.js → write_docx-M5RMUI4W.js} +1 -1
- package/dist/chunks/{write_file-FZZRCU3L.js → write_file-2ZFCDYSW.js} +1 -1
- package/dist/chunks/{write_pdf-N2Q4Z3YP.js → write_pdf-E5HQYOTR.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-DSVLWYIT.js +0 -2
- package/dist/chunks/chunk-IS6NOF47.js +0 -5
- package/dist/chunks/chunk-LFDC5AM7.js +0 -916
- package/dist/chunks/chunk-QWEEC3PP.js +0 -1
- package/dist/chunks/click-PNIGPARB.js +0 -2
- package/dist/chunks/paths-2EXHWUSL.js +0 -1
- package/dist/chunks/screen_grid-PVVRYV5G.js +0 -1
- package/dist/chunks/search_keyword-ARDEFVCK.js +0 -6
- package/dist/chunks/settings-GLFTNEAT.js +0 -1
- package/dist/chunks/view_file-2THVIMD6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"./chunk-
|
|
1
|
+
import{c as a}from"./chunk-HOZQBBAO.js";import"./chunk-3JI2CRXK.js";import{a as s}from"./chunk-Y5JU726N.js";import"./chunk-L3W2X74K.js";import"./chunk-M2ULCOL3.js";var R=async(i,o={})=>{let t=s(i).title,r=o.chatId||o.sessionId;if(!r)return"ERROR: No active chatId found in tool context.";if(!t)return"ERROR: Missing 'title' argument.";try{return await a(r,t),`Chat title updated to [${t}] for session [${r}].`}catch(e){return`ERROR: Failed to update chat title: ${e instanceof Error?e.message:String(e)}`}};export{R as chat};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as z}from"./chunk-
|
|
1
|
+
import{c as z}from"./chunk-M2ULCOL3.js";import G from"os";import{structuredPatch as V}from"diff";var R=t=>typeof t!="string"?t:t.length>12?(t+"").replace("",""):t,v=(t,r)=>{if(!t)return"";let d=/\x1B\[[0-?]*[ -/]*[@-~]/g,p=t.split(`
|
|
2
2
|
`),c=[];if(r<=5)return t;let l=e=>e<32||e>=127&&e<160||e>=768&&e<=879||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071?0:e>=4352&&e<=4447||e>=9001&&e<=9002||e>=11904&&e<=12350||e>=12352&&e<=42191||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=127744&&e<=128591||e>=128640&&e<=128767||e>=131072&&e<=262141?2:1,x=e=>{let i=e.replace(d,""),s=0;for(let o=0;o<i.length;o++){let u=i.codePointAt(o);u>65535&&o++,s+=l(u)}return s},C=(e,i)=>{let s=0,o=e.length,u=!1;for(let g=0;g<e.length;g++){if(e[g]==="\x1B"&&e[g+1]==="["&&(u=!0),u){(e[g]==="m"||e[g]>="@"&&e[g]<="~"&&e[g]!=="[")&&(u=!1);continue}let F=e.codePointAt(g);F>65535&&g++;let L=l(F);if(s+L>i){o=F>65535?g-1:g;break}if(s+=L,s>=i){o=g+1;break}}return{head:e.substring(0,o),tail:e.substring(o)}};return p.forEach(e=>{if(x(e)<=r){c.push(e);return}let s=e.split(/(\s+)/),o="",u=0,g=e.match(/^(\s*)/),F=g?g[1]:"";s.forEach(L=>{if(L.length===0)return;let h=L;for(;h.length>0;){let $=x(h);if(u+$<=r){o+=h,u+=$;break}o.trim().length>0&&(c.push(o.trimEnd()),o=F.substring(0,Math.min(F.length,8)),u=x(o));let n=Math.max(1,r-u);if(x(h)>n){let{head:a,tail:f}=C(h,n);c.push((o+a).trimEnd()),o=F.substring(0,Math.min(F.length,8)),u=x(o),h=f}else o+=h,u+=x(h),h=""}}),(o.trimEnd().length>0||o===F)&&c.push(o.trimEnd())}),R(c.join(`
|
|
3
3
|
`))},ot=t=>{if(!t)return 0;let r=0,d=t.match(/[\u4e00-\u9fa5\u3040-\u309f\u30a0-\u30ff\uac00-\ud7af]/g);d&&(r+=d.length*.55);let p=t.replace(/[\u4e00-\u9fa5\u3040-\u309f\u30a0-\u30ff\uac00-\ud7af]/g," "),c=p.match(/[<>/\._@#$%^&*+=`~|\\:;!?'"()\[\]{}-]+/g);c&&(r+=c.length);let l=p.split(/[\s<>/\._@#$%^&*+=`~|\\:;!?'"()\[\]{}-]+/g).filter(Boolean);return r+=l.length,Math.max(.1,r)},lt=t=>t?t.match(/[\u4e00-\u9fa5\u3040-\u309f\u30a0-\u30ff\uac00-\ud7af]|\s+|[<>/\._@#$%^&*+=`~|\\:;!?'"()\[\]{}-]+|[^\s<>/\._@#$%^&*+=`~|\\:;!?'"()\[\]{}\-\u4e00-\u9fa5\u3040-\u309f\u30a0-\u30ff\uac00-\ud7af]+/g)||[t]:[],ct=t=>{if(!t&&t!==0)return"0.0k";let r=typeof t=="string"?parseFloat(t):t;return r>=1e6?`${(r/1e6).toFixed(1)}m`:r>=1e3?`${(r/1e3).toFixed(1)}k`:r.toString()},at=(t,r=40)=>{let d=z.replaceAll("\\\\","\\");if(t=t.replace(G.homedir(),"~").replace(d,"FluxFlow").replaceAll("\\","/"),!t||t.length<=r)return R(t);let p=Math.floor((r-3)/2);return R(t.substring(0,p)+"..."+t.substring(t.length-p).replaceAll("\\","/"))},ft=t=>{let r=[],d=new Set,p=t.allowMultiple===!0||String(t.allowMultiple).toLowerCase()==="true";Object.keys(t).forEach(e=>{let i=e.match(/^(searchContent|search_content|replaceContent|replace_content|newContent|new_content|content_to_replace|content_to_add|searchBlock|search_block|newBlock|new_block)_?(\d+)?$/i);if(i){let s=i[2]?parseInt(i[2],10):1;d.add(s)}});let c=Array.from(d).sort((e,i)=>e-i),l=["searchContent","search_content","replaceContent","replace_content","content_to_replace","searchBlock","search_block"],x=["newContent","new_content","content_to_add","newBlock","new_block"],C=(e,i,s)=>{let o,u;for(let g of i){let F=e===1?[`${g}1`,g,`${g}_1`]:[`${g}${e}`,`${g}_${e}`];for(let L of F)if(t[L]!==void 0){o=t[L];break}if(o!==void 0)break}for(let g of s){let F=e===1?[`${g}1`,g,`${g}_1`]:[`${g}${e}`,`${g}_${e}`];for(let L of F)if(t[L]!==void 0){u=t[L];break}if(u!==void 0)break}return{r:o,n:u}};for(let e of c){let{r:i,n:s}=C(e,l,x);if(i!==void 0&&s!==void 0)r.push({replace:i,new:s});else if(i!==void 0||s!==void 0)return{error:`Mismatched replacement pair for index ${e}. Both replacement and new content must be provided.`,allowMultiple:p}}return{patchPairs:r,allowMultiple:p}},K=t=>{if(!t)return null;let r="",d=0,p=t.length;for(;d<p;){let c=t[d];if(c==="\\"){for(;d<p&&t[d]==="\\";)d++;r+="\\\\*"}else if(c===`
|
|
4
4
|
`)r+="(?:\\r?\\n|\\\\*n|\\\\*r|\\s*)",d++;else if(c==="\r")r+="(?:\\r|\\\\*r)?",d++;else if(c===" ")r+="(?:\\t|\\\\*t|\\s*)",d++;else if(c==='"'||c==="'"||c==="`")r.endsWith("\\\\*")||(r+="\\\\*"),r+=c,d++;else if(/[.*+?^${}()|[\]]/.test(c))r+="\\"+c,d++;else if(/\s/.test(c)){for(;d<p&&/\s/.test(t[d])&&t[d]!==`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v,b,c as h,d as f}from"./chunk-L3W2X74K.js";import{n as u,o as s,q as m}from"./chunk-
|
|
1
|
+
import{a as v,b,c as h,d as f}from"./chunk-L3W2X74K.js";import{n as u,o as s,q as m}from"./chunk-M2ULCOL3.js";import r from"fs-extra";import o from"path";r.ensureDirSync(u);var l=null;async function B(e,t){try{if(e.type==="create")await r.pathExists(e.filePath)&&(await r.chmod(e.filePath,438).catch(()=>{}),await r.remove(e.filePath));else if(e.type==="update"){if(!e.backupFile)return;let a=o.join(u,t.chatId,e.backupFile);if(await r.pathExists(a)){let n=h(a,null);if(!n||!n.data)throw new Error(`Backup container corrupt or empty for ${o.basename(e.filePath)}`);let p=b(n.data);await r.pathExists(e.filePath)&&await r.chmod(e.filePath,438).catch(()=>{}),await r.writeFile(e.filePath,p,"utf8")}}}catch(a){throw new Error(`Restoration failed for ${o.basename(e.filePath)}: ${a.message}`)}}async function P(e,t,a=7){let n=0;for(;n<a;)try{return await B(e,t),!0}catch{if(n++,n>=a)return!1;let d=Math.min(100*Math.pow(2,n-1),5e3);await new Promise(i=>setTimeout(i,d))}return!1}var I=null,R={async startTransaction(e,t){I=e,l={id:`tx_prompt_${Date.now()}`,chatId:e,timestamp:new Date().toISOString(),prompt:t.trim(),changes:[],reverted:!1},f(m,l)},async recordFileChange(e,t=null){try{if(!l){if(I){let i=h(s,[]),c=[...i].reverse().find(w=>w.chatId===I);if(c){if(c.changes.some(E=>E.filePath===e))return;let g=await r.pathExists(e)||t?"update":"create",y=null;if(g==="update"){let E=o.basename(e);y=`${c.id}_${E}.bak`;let x=o.join(u,c.chatId);await r.ensureDir(x);let T=o.join(x,y),F=t!==null?t:await r.readFile(e,"utf8").catch(()=>null);F!==null?f(T,{data:v(F)}):(g="create",y=null)}c.changes.push({filePath:e,type:g,backupFile:y}),f(s,i)}}return}if(l.changes.some(i=>i.filePath===e))return;let p=await r.pathExists(e)||t?"update":"create",d=null;if(p==="update"){let i=o.basename(e);d=`${l.id}_${i}.bak`;let c=o.join(u,l.chatId);await r.ensureDir(c);let w=o.join(c,d),k=t!==null?t:await r.readFile(e,"utf8").catch(()=>null);k!==null?f(w,{data:v(k)}):(p="create",d=null)}l.changes.push({filePath:e,type:p,backupFile:d}),f(m,l)}catch{}},async commitTransaction(){if(l)try{let e=h(s,[]);if(e.push(l),e.length>512e3){let t=e.shift();if(t.changes)for(let a of t.changes)a.backupFile&&await r.remove(o.join(u,t.chatId,a.backupFile)).catch(()=>{})}f(s,e),await r.remove(m).catch(()=>{})}catch{}finally{l=null}},async recoverCrashedTransaction(){try{if(await r.pathExists(m)){let e=h(m,null);if(e?.changes?.length>0){let t=h(s,[]);t.some(a=>a.id===e.id)||(t.push(e),f(s,t))}await r.remove(m).catch(()=>{})}}catch{}},async rollbackToBefore(e){let t=h(s,null);if(!t)throw new Error("No transaction ledger found.");let a=t.findIndex(i=>i.id===e);if(a===-1)throw new Error(`Transaction [${e}] not found.`);let n=t[a].chatId,p=t[a].prompt,d=t.slice(a).filter(i=>i.chatId===n&&!i.reverted).reverse();for(let i of d){for(let c of[...i.changes].reverse())await P(c,i);for(let c of i.changes)if(c.backupFile){let w=o.join(u,i.chatId,c.backupFile);await r.remove(w).catch(()=>{})}t=t.filter(c=>c.id!==i.id),f(s,t)}return{success:!0,chatId:n,targetPrompt:p}},async getChatHistory(e){try{return h(s,[]).filter(a=>a.chatId===e&&!a.reverted)}catch{return[]}},async deleteChatBackups(e){try{await r.remove(o.join(u,e));let t=h(s,[]),a=t.filter(n=>n.chatId!==e);t.length!==a.length&&f(s,a)}catch{}}};export{R as a};
|