fluxflow-cli 4.48.0 → 4.50.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/README.md +2 -0
- package/dist/chunks/ai-EWDCEXLL.js +1 -0
- package/dist/chunks/app-C7G3NWAQ.js +333 -0
- package/dist/chunks/{auto_completion-JQ37MRZ7.js → auto_completion-5WD4TTIP.js} +1 -1
- package/dist/chunks/{chunk-U2GX6WT2.js → chunk-5KSNFTQN.js} +1 -1
- package/dist/chunks/{chunk-MS33ZWST.js → chunk-6JMPGZPV.js} +1 -1
- package/dist/chunks/chunk-OB2V6ZNC.js +951 -0
- package/dist/chunks/chunk-PACSPBDP.js +1 -0
- package/dist/chunks/{chunk-OSSZ4LIE.js → chunk-T5CUPXCW.js} +1 -1
- package/dist/chunks/{chunk-ER3SNTS7.js → chunk-TRVRMCHV.js} +1 -1
- package/dist/chunks/chunk-TX3H7HDF.js +44 -0
- package/dist/chunks/{chunk-XDY4KWTM.js → chunk-ZURGYQ4L.js} +1 -1
- package/dist/chunks/{click-R35XTYKT.js → click-F4M4FVLQ.js} +2 -2
- package/dist/chunks/{computer_action-WNXZNAIZ.js → computer_action-72ZORSKW.js} +1 -1
- package/dist/chunks/{custom_openai-YS5EV6DG.js → custom_openai-BLC4CWOL.js} +1 -1
- package/dist/chunks/{drag-IB5WSI6F.js → drag-OT2BJZ4P.js} +1 -1
- package/dist/chunks/{generate_image-VW5VG6VI.js → generate_image-V4OMOT7Z.js} +1 -1
- package/dist/chunks/{invoke-IUEAUE3X.js → invoke-L2V4QMJG.js} +3 -3
- package/dist/chunks/{invokeSync-4JX2JCZC.js → invokeSync-7NWIYBX5.js} +2 -2
- package/dist/chunks/{key_press-XDYBP7DW.js → key_press-IVB7R7CK.js} +1 -1
- package/dist/chunks/{keyboard_typing-YHYH7O66.js → keyboard_typing-A6VFLI7Q.js} +1 -1
- package/dist/chunks/{ollama-QB7WX7VD.js → ollama-DIFOZ4PM.js} +1 -1
- package/dist/chunks/{recapture_screen-F6ZPZU56.js → recapture_screen-TVTRNE7C.js} +1 -1
- package/dist/chunks/{screen_grid-IWNA3DA2.js → screen_grid-AEHMTXP3.js} +1 -1
- package/dist/chunks/{scroll-GIP2J2QN.js → scroll-KFID5QKZ.js} +1 -1
- package/dist/chunks/{search_keyword-O52M65TB.js → search_keyword-666PL7YG.js} +1 -1
- package/dist/chunks/{secrets-YIWFP4S2.js → secrets-JMSL57D2.js} +1 -1
- package/dist/chunks/{secrets_v2-TEUFHDI7.js → secrets_v2-U7JR7ZO6.js} +1 -1
- package/dist/chunks/{settings-HSQ2K6DN.js → settings-3VSVCZDF.js} +1 -1
- package/dist/chunks/{update_file-QKDDZKOX.js → update_file-RG5QSLR2.js} +1 -1
- package/dist/chunks/{usage-6V4XZT3Q.js → usage-AJDMLXTH.js} +1 -1
- package/dist/chunks/{usageServer-4XHUFY7X.js → usageServer-4X7T4FDJ.js} +1 -1
- package/dist/chunks/write_file-AQJXPIUV.js +32 -0
- package/dist/cli.js +20 -20
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/chunks/ai-BIUKENP6.js +0 -1
- package/dist/chunks/app-OC5IRTIV.js +0 -333
- package/dist/chunks/chunk-45DLFA4C.js +0 -1
- package/dist/chunks/chunk-AMFNIFF3.js +0 -44
- package/dist/chunks/chunk-GRNJ7SA3.js +0 -937
- package/dist/chunks/write_file-D7QA2LB2.js +0 -29
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{a as S}from"./chunk-6EYQQ7GQ.js";import{a as y}from"./chunk-Y5JU726N.js";import{b as R}from"./chunk-45DLFA4C.js";import"./chunk-HTOLY3HR.js";import"./chunk-P5HBJA23.js";import"./chunk-26BQ45XP.js";import r from"fs";import F from"path";var B=async(v,E={})=>{let{path:s,content:o}=y(v);if(!s)return'ERROR: Missing "path" argument for WriteFile.';if(o===void 0)return'ERROR: Missing "content" argument for WriteFile.';o=o.replace(/^```[\w]*\n?/,"").replace(/```\s*$/,"").replace(/\r\n/g,`
|
|
2
|
-
`).replace(/\r/g,`
|
|
3
|
-
`);let t=F.resolve(process.cwd(),s),m=F.dirname(t);try{await S.recordFileChange(t);let n="";if(r.existsSync(t))try{n=`Old File contents:
|
|
4
|
-
${r.readFileSync(t,"utf8").split(/\r?\n/).map((g,j)=>`${j+1} | ${g}`).join(`
|
|
5
|
-
`)}
|
|
6
|
-
|
|
7
|
-
`}catch{n=`[Note: Could not read existing file for reversal reference]
|
|
8
|
-
|
|
9
|
-
`}r.existsSync(m)||r.mkdirSync(m,{recursive:!0});let p=(e=>e.replace(/^```[\w]*\n?/,"").replace(/```\s*$/,"").replace(/\r\n/g,`
|
|
10
|
-
`).replace(/\r/g,`
|
|
11
|
-
`))(o),l=p.endsWith(`
|
|
12
|
-
`)?p:p+`
|
|
13
|
-
`,L=l.split(/\r?\n/).length,C=Buffer.byteLength(l,"utf8");r.writeFileSync(t,l,"utf8");let c=r.readFileSync(t,"utf8"),$=Buffer.byteLength(c,"utf8"),i=c.split(/\r?\n/),a=i.length;if($===0&&C>0)return c=null,`ERROR: CRITICAL FAILURE: Verification failed. File [${s}] is empty on disk!`;let d="";if(a<=690)d=i.join(`
|
|
14
|
-
`);else{let e=i.slice(0,300).join(`
|
|
15
|
-
`),f=i.slice(-300).join(`
|
|
16
|
-
`);d=`${e}
|
|
17
|
-
|
|
18
|
-
... [${a-100} lines truncated] ...
|
|
19
|
-
|
|
20
|
-
${f}`}c=null;let{systemSettings:w}=await R(),u=`File [${s}] saved.
|
|
21
|
-
- Stats: [${a} lines, ${($/1024).toFixed(1)} KB]
|
|
22
|
-
${n}- Content Preview:
|
|
23
|
-
|
|
24
|
-
${d}`;if(w?.compressToolResults&&a>6e3){let e=l.split(/\r?\n/),f=e.slice(0,25).join(`
|
|
25
|
-
`)===i.slice(0,25).join(`
|
|
26
|
-
`),g=e.slice(-25).join(`
|
|
27
|
-
`)===i.slice(-25).join(`
|
|
28
|
-
`);f&&g&&(u=`[[SAME]]
|
|
29
|
-
${u}`)}return u}catch(n){let h=n instanceof Error?n.message:String(n);return`ERROR: Failed to write file [${s}]: ${h}`}};export{B as write_file};
|