fluxflow-cli 4.23.5 → 4.24.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.
Files changed (67) hide show
  1. package/dist/chunks/{addMemScore-COX3MDEK.js → addMemScore-PWP7GFSP.js} +1 -1
  2. package/dist/chunks/{ai-IOEGZWGA.js → ai-NFNMNHUW.js} +1 -1
  3. package/dist/chunks/{app-OWHF6FXI.js → app-KJGLCANP.js} +142 -142
  4. package/dist/chunks/{chat-J5AAPLPF.js → chat-7T6MVHC3.js} +1 -1
  5. package/dist/chunks/{chunk-BSUDXEA2.js → chunk-3CZWTXIR.js} +1 -1
  6. package/dist/chunks/{chunk-CXNFFI7L.js → chunk-3LTI7Z7N.js} +1 -1
  7. package/dist/chunks/{chunk-7UNVYHZ7.js → chunk-4XXLWMY6.js} +1 -1
  8. package/dist/chunks/{chunk-COUKJJ4O.js → chunk-6AWSJNXE.js} +14 -14
  9. package/dist/chunks/{chunk-P52SKLRJ.js → chunk-7SFAWGE2.js} +1 -1
  10. package/dist/chunks/{chunk-WMRT2YZU.js → chunk-AF7LASZ3.js} +1 -1
  11. package/dist/chunks/chunk-DSVLWYIT.js +2 -0
  12. package/dist/chunks/{chunk-IRFTRBG2.js → chunk-FQBBOFNP.js} +1 -1
  13. package/dist/chunks/{chunk-OOTXMJIA.js → chunk-GRQ7JZZP.js} +1 -1
  14. package/dist/chunks/{chunk-U6UKO6MO.js → chunk-JCT3YL5A.js} +1 -1
  15. package/dist/chunks/chunk-JQ5Y2VZD.js +914 -0
  16. package/dist/chunks/{chunk-6KFABN4O.js → chunk-KNCL7AK2.js} +1 -1
  17. package/dist/chunks/{chunk-QGPOMXO4.js → chunk-OSDQRSY6.js} +1 -1
  18. package/dist/chunks/{chunk-HRKT75ZJ.js → chunk-PQRLA35M.js} +15 -15
  19. package/dist/chunks/{chunk-2KD7V3OK.js → chunk-RZTZPIC5.js} +1 -1
  20. package/dist/chunks/{chunk-RLT6EHPQ.js → chunk-SZYN3VHU.js} +1 -1
  21. package/dist/chunks/{chunk-Z4HHJIHG.js → chunk-VYTQ6J56.js} +1 -1
  22. package/dist/chunks/{chunk-UDJ2C3N3.js → chunk-ZRP6USHC.js} +28 -28
  23. package/dist/chunks/{click-HS7NJR6J.js → click-5ZKBFZ4N.js} +2 -2
  24. package/dist/chunks/{computer_action-YCFAAZNA.js → computer_action-7U3W3F6L.js} +1 -1
  25. package/dist/chunks/{drag-SBWNKGDV.js → drag-YHHKJGL6.js} +1 -1
  26. package/dist/chunks/{emergency_rollback-6M5EH75W.js → emergency_rollback-DXN5WNPR.js} +1 -1
  27. package/dist/chunks/{exec_command-27EPEAE5.js → exec_command-GVLMN5KT.js} +1 -1
  28. package/dist/chunks/export-DEFENSGY.js +1 -0
  29. package/dist/chunks/{file_map-XK7BFZFI.js → file_map-KS6Y7BP3.js} +1 -1
  30. package/dist/chunks/find_file-A6NYLQJS.js +4 -0
  31. package/dist/chunks/{generate_image-S6M2GCD7.js → generate_image-HVWLRINC.js} +1 -1
  32. package/dist/chunks/{getProgress-VG2IBPZU.js → getProgress-A2TW34Q7.js} +2 -2
  33. package/dist/chunks/{invoke-GKLK35YP.js → invoke-A65SLWMF.js} +4 -4
  34. package/dist/chunks/{invokeSync-7PK3CJVJ.js → invokeSync-KP33D2NU.js} +2 -2
  35. package/dist/chunks/{key_press-BT6QQ24M.js → key_press-ZZNA3PF3.js} +1 -1
  36. package/dist/chunks/{keyboard_typing-IWKUCQE4.js → keyboard_typing-QL3DF67Z.js} +1 -1
  37. package/dist/chunks/{memory-5CNSGF6X.js → memory-SRDCQNML.js} +1 -1
  38. package/dist/chunks/{model_config-UZLNHYP5.js → model_config-M24OEKJE.js} +1 -1
  39. package/dist/chunks/paths-2EXHWUSL.js +1 -0
  40. package/dist/chunks/{read_folder-OOKZITME.js → read_folder-EI2CNHNS.js} +5 -5
  41. package/dist/chunks/{saveSummary-XQ2STWSN.js → saveSummary-VKGBD4CG.js} +1 -1
  42. package/dist/chunks/{screen_grid-YL4W6LEM.js → screen_grid-GBIGOR5Q.js} +1 -1
  43. package/dist/chunks/{scroll-TA2JTVSR.js → scroll-C4Z57VQS.js} +1 -1
  44. package/dist/chunks/search_keyword-CSRQFPHQ.js +6 -0
  45. package/dist/chunks/{secrets-BJGXCZRP.js → secrets-LPVNWDTB.js} +1 -1
  46. package/dist/chunks/settings-KKYNW25D.js +1 -0
  47. package/dist/chunks/{todo-C5HHG7TN.js → todo-VG2CVRUI.js} +1 -1
  48. package/dist/chunks/{update_file-2YCGNOBP.js → update_file-WTXXQ4RB.js} +1 -1
  49. package/dist/chunks/{usage-6BBHZ76S.js → usage-VLICZGBC.js} +1 -1
  50. package/dist/chunks/usageServer-HY4ME2BW.js +1 -0
  51. package/dist/chunks/view_file-2THVIMD6.js +1 -0
  52. package/dist/chunks/{web_scrape-LAQI7CVA.js → web_scrape-BHSQTMX4.js} +1 -1
  53. package/dist/chunks/{web_search-D2GOWARI.js → web_search-2PFIJKIL.js} +1 -1
  54. package/dist/chunks/{write_docx-J5OO4ZSE.js → write_docx-I7T3575T.js} +1 -1
  55. package/dist/chunks/{write_file-MDPZMOG3.js → write_file-V6HKMWFB.js} +1 -1
  56. package/dist/chunks/{write_pdf-KF7HZODR.js → write_pdf-XDDKM7V5.js} +1 -1
  57. package/dist/cli.js +8 -8
  58. package/dist/package.json +1 -1
  59. package/package.json +1 -1
  60. package/dist/chunks/chunk-5LRTKLA4.js +0 -923
  61. package/dist/chunks/chunk-RI37VZYB.js +0 -1
  62. package/dist/chunks/export-YTWRQ63I.js +0 -1
  63. package/dist/chunks/paths-Y7ACZJAE.js +0 -1
  64. package/dist/chunks/search_keyword-EAMQWPPI.js +0 -8
  65. package/dist/chunks/settings-ZDBO3FHN.js +0 -1
  66. package/dist/chunks/usageServer-CSS2XQH3.js +0 -1
  67. package/dist/chunks/view_file-4UCCUBFK.js +0 -1
@@ -1 +0,0 @@
1
- import f from"os";import t from"path";import a from"fs";import E from"crypto";var n=t.join(f.homedir(),".fluxflow"),j=t.join(n,"settings.json"),x=null;try{if(a.existsSync(j)){let s=a.readFileSync(j,"utf8").trim(),r;if(s.startsWith("{"))r=JSON.parse(s);else{let e=s.split(":");if(e.length===2){let _=Buffer.from(e[0],"hex"),I=e[1],l=E.createHash("sha256").update("fluxflow-cli-sanctuary-key").digest(),c=E.createDecipheriv("aes-256-cbc",l,_),p=c.update(I,"hex","utf8");p+=c.final("utf8"),r=JSON.parse(p)}}if(r){let e=r.systemSettings||{};e.useExternalData&&e.externalDataPath&&(x=t.normalize(e.externalDataPath.trim()))}}}catch{}var i=x||n,F=t.join(i,"logs"),o=t.join(i,"secret"),S=t.join(o,"history.json"),R=t.join(o,"history"),T=t.join(n,"usage.json"),u=t.join(o,"usage.json"),y=t.join(o,"timed_usage"),A=t.join(o,"memories.json"),g=t.join(o,"memory-temp.json"),d=t.join(o,"temp-memory-chat.json"),C=t.join(i,"backups"),O=t.join(o,"ledger.json"),G=t.join(o,"ledgerAdvance.json"),M=t.join(o,"active_tx.json"),N=t.join(o,"path.json"),H=t.join(o,"context.json"),P=t.join(i,"parsers"),U=t.join(n,".cache","CU"),k=t.join(n,"thinking_config.json");export{n as a,j as b,i as c,F as d,o as e,S as f,R as g,T as h,u as i,y as j,A as k,g as l,d as m,C as n,O as o,G as p,M as q,N as r,H as s,P as t,U as u,k as v};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e}from"./chunk-COUKJJ4O.js";import"./chunk-RI37VZYB.js";export{b as exportCurrentChat,d as exportErrorLogs,e as handleExport,a as parseAgentText,c as parseLogEntries};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"./chunk-RI37VZYB.js";export{q as ACTIVE_TX_FILE,n as BACKUPS_DIR,s as CONTEXT_FILE,u as CU_CACHE_DIR,c as DATA_DIR,a as FLUXFLOW_DIR,g as HISTORY_DIR,f as HISTORY_FILE,p as LEDGER_ADVANCE_FILE,o as LEDGER_FILE,d as LOGS_DIR,k as MEMORIES_FILE,t as PARSER_DIR,r as PATHS_FILE,e as SECRET_DIR,b as SETTINGS_FILE,m as TEMP_MEM_CHAT_FILE,l as TEMP_MEM_FILE,v as THINKING_CONFIG_FILE,i as USAGE_FILE,h as USAGE_FILE_OLD,j as USAGE_FILE_TIMED};
@@ -1,8 +0,0 @@
1
- import{a as H}from"./chunk-Y5JU726N.js";import{a as q}from"./chunk-RI37VZYB.js";import A from"fs/promises";import P from"path";import V from"fast-glob";import{Minimatch as U}from"minimatch";import J from"fs";async function k(a,r,t=a,u=1){if(u>12)return[];let i=[],s;try{s=await A.readdir(a,{withFileTypes:!0})}catch{return[]}for(let e of s){let n=P.join(a,e.name),o=P.relative(t,n),h=o.split(P.sep).map(p=>p.toLowerCase()),C=e.name.toLowerCase();if(!r.some(p=>{let L=p.toLowerCase();return L.startsWith(".")&&C.endsWith(L)?!0:h.some(W=>W===L||W.startsWith(".pnpm"))}))if(e.isDirectory()){let p=await k(n,r,t,u+1);i=i.concat(p)}else e.isFile()&&i.push({fullPath:n,relativePath:o})}return i}function Q(a,r,t=1/0){if(a===r)return 0;if(a.length===0)return r.length;if(r.length===0)return a.length;if(Math.abs(a.length-r.length)>t)return t+1;let u=Array.from({length:r.length+1},(i,s)=>s);for(let i=1;i<=a.length;i++){let s=[i],e=i;for(let n=1;n<=r.length;n++){let o=a[i-1]===r[n-1]?0:1,h=Math.min(s[n-1]+1,u[n]+1,u[n-1]+o);s.push(h),h<e&&(e=h)}if(u=s,e>t)return t+1}return u[r.length]}function ee(a,r){if(!a||!r)return!1;let t=a.toLowerCase(),u=r.toLowerCase();if(t.includes(u))return!0;let i=t.split(/[^a-z0-9]+/).filter(e=>e.length>0),s=u.split(/[^a-z0-9]+/).filter(e=>e.length>1||u.length===1&&e.length>0);return s.length===0?!1:s.every(e=>{let n=e.length<=2?0:e.length<=5?1:2;for(let o of i)if(o.includes(e)||e.length>=3&&o.length>=3&&Math.abs(o.length-e.length)<=n&&Q(e,o,n)<=n)return!0;return!1})}async function te(a){let r=P.join(q,"skills","fluxflow"),t=P.join(r,"references");if(!J.existsSync(t))return"No documentation found in #docs.";let u=async o=>{let h=[];try{let C=await A.readdir(o,{withFileTypes:!0});for(let D of C){let p=P.join(o,D.name);D.isDirectory()?h=h.concat(await u(p)):D.isFile()&&h.push(p)}}catch{}return h},i=await u(t);if(i.length===0)return"No documentation found in #docs.";let s=null;try{s=new RegExp(a,"i")}catch{}let e=a.toLowerCase(),n=[];for(let o of i)try{let h=await A.readFile(o,"utf8");if(s&&s.test(h)||h.toLowerCase().includes(e)){let D=P.relative(r,o).replace(/\\/g,"/");n.push(D)}}catch{}return n.length===0?`No matches found for "${a}" in #docs.`:`DOCs Search "${a}":
2
- ${n.map(o=>`- ${o}`).join(`
3
- `)}`}var ce=async a=>{let{keyword:r,path:t,fuzzy:u,subString:i,regex:s}=H(a);if(r==null)return'ERROR: Missing "keyword" argument.';let e=String(r);if(t&&(t.trim().toLowerCase()==="#docs"||t.trim().toLowerCase()==="#doc"||t.trim().toLowerCase()==="#documentation"||t.trim().toLowerCase().includes("#skill/global/fluxflow")))return te(e);let n=f=>f===!0||f==="true"||f===1||f==="1"||f==="yes",o=s===!1||s==="false"||s===0||s==="0"||s==="no",h=s===!0||s==="true"||s===1||s==="1"||s==="yes",C=n(u)||n(i),D=null,p=null;if(o)C||(p=new RegExp(`(?<![\\w])${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?![\\w])`,"i"));else{try{D=new RegExp(e,"i")}catch(f){if(h)return`ERROR: Invalid regex pattern "${e}": ${f.message}`}p=new RegExp(`(?<![\\w])${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?![\\w])`,"i")}let L=[".git","node_modules",".gemini","dist","build",".next","out",".cache","bin","obj","vendor","venv",".idea",".gradle",".terraform","target","coverage",".vscode",".svn",".hg",".fslckout",".github",".gitlab",".circleci",".gitea",".gitee",".lerna",".changeset",".nx",".npm",".yarn",".pnpm-store",".pnpm",".expo",".nuxt",".svelte-kit",".docusaurus",".turbo",".vercel","bower_components",".netlify",".vuepress",".quasar",".output",".angular","jspm_packages",".parcel-cache",".rollup.cache",".rspack",".vitepress","__pycache__",".pytest_cache",".mypy_cache",".tox",".poetry","env","vhdl",".ipynb_checkpoints",".jupyter",".conda",".pdm-build",".bundle",".yardoc",".metadata","App_Data","ClientBin",".cargo",".rustc_info",".go","Godeps","_vendor",".rake_tasks","CMakefiles",".wakatime",".dart_tool",".fvm",".cocoapods","Pods",".pub-cache",".symlinks","DerivedData",".xcworkspace",".serverless",".aws",".gcloud",".azure",".kube",".vagrant",".docker","postgres-data","redis-data","mongo-data",".Spotlight-V100",".Trashes","$RECYCLE.BIN","System Volume Information",".DocumentRevisions-V100",".fseventsd","AppData","Application Data","Local","LocalLow","Roaming","$WinREAgent","$WINDOWS.~BT","$WINDOWS.~WS","scw","System32","SysWOW64",".AppleDouble",".AppleDB",".AppleDesktop","_CodeSignature",".cmio",".LSOverride",".localized",".TemporaryItems",".Trash",".Trash-0",".Trash-1000",".gvfs",".local",".config",".dbus",".fontconfig",".snap",".var",".lost+found","lost+found",".thumb",".thumbnails","EFI","boot","grub","logs","log",".nyc_output",".sonar",".ruff_cache",".VSCodeCounter",".exe",".dll",".so",".dylib",".png",".jpg",".jpeg",".gif",".ico",".svg",".webp",".mp3",".mp4",".avi",".zip",".tgz",".tar",".gz",".7z",".rar",".pdf",".docx",".xlsx",".pptx",".woff",".woff2",".ttf",".eot",".skills","skills"],W=150;try{let f=[],R=process.cwd(),m=null;if(t){let l=t.split(";").map(c=>c.trim()).filter(Boolean),$=l.some(c=>c.startsWith("!"));if(l.some(c=>V.isDynamicPattern(c)||/[*?{}[\]()|+]/.test(c))){m="glob";let c=t.replace(/\\/g,"/"),z=l.map(d=>d.replace(/\\/g,"/")),g=L.map(d=>d.startsWith(".")?`**/*${d}`:`**/${d}/**`);if($&&!l.some(d=>!d.startsWith("!"))){let d=await k(R,L,R),x=w=>w.endsWith("/")?w+"**":w,y=z.filter(w=>w.startsWith("!")).map(w=>x(w.slice(1))),F=z.filter(w=>!w.startsWith("!")).map(x);f=d.filter(w=>{let v=w.relativePath.replace(/\\/g,"/"),T=F.length===0||F.some(M=>{try{return new U(M).match(v)}catch{return!1}}),G=y.some(M=>{try{return new U(M).match(v)}catch{return!1}});return T&&!G})}else{let d=z.some(y=>/[\(\)\|]|\.\*/.test(y)),x=[];if(!d)try{x=await V(z,{cwd:R,ignore:g,dot:!0,onlyFiles:!0,absolute:!1})}catch{x=[]}if(x.length===0&&(d||V.isDynamicPattern(c))){let y=c.match(/^([^\*\?\(\)\|\[\]\s]+)\//),F=y&&!/[\*\?\(\)\|\[\]]/.test(y[1])?P.resolve(R,y[1]):R,w=await k(F,L,R);try{let v=c.replace(/^\.\//,"");v=v.replace(/\.\*\/(\\.|[^\/])/g,".*$1"),!v.startsWith("^")&&!v.startsWith(".*")&&(v=`.*${v}`);let T=new RegExp(v.endsWith("$")?v:`${v}$`,"i");f=w.filter(G=>{let M=G.relativePath.replace(/\\/g,"/");return T.test(M)})}catch{f=[]}}else f=x.map(y=>({fullPath:P.resolve(R,y),relativePath:y}))}}else{let c=[],z=!1,g=!1;for(let S of l){let d=S.replace(/[\/\\]+$/,""),x=P.resolve(R,d);try{let y=await A.stat(x);if(y.isDirectory()){g=!0;let F=await k(x,L,R);c.push(...F)}else if(y.isFile())z=!0,c.push({fullPath:x,relativePath:P.relative(R,x)});else return`ERROR: Path is neither a file nor a directory: ${S}`}catch{return`ERROR: Path not found: ${S}`}}f=c,z&&!g?m="file":m="dir"}}else f=await k(R,L);let X=f.map(async l=>{try{let $=await A.readFile(l.fullPath,"utf-8");if($.includes("\0"))return[];let b=$.split(/\r?\n/),c=[];for(let g=0;g<b.length;g++)(C?b[g].toLowerCase().includes(e.toLowerCase())||ee(b[g],e):o?p&&p.test(b[g]):D&&D.test(b[g])||p&&p.test(b[g]))&&c.push({line:g+1,content:b[g].trim()});return c.length===0?null:{path:l.relativePath.replace(/\\/g,"/"),matches:c}}catch{return[]}}),Y=await Promise.all(X),E=[],_=0;for(let l of Y){if(!l||!l.matches)continue;if(_>=W)break;let $=W-_,b=l.matches.slice(0,$);E.push({path:l.path,matches:b}),_+=b.length}typeof global.gc=="function"&&global.gc();let O=C?"(fuzzy mode)":h?"(regex mode)":o?"(keyword mode)":"(standard mode)";if(E.length===0){let l=m==="file"?` in '${t}'`:m==="dir"||m==="glob"?` in '${t}'`:". Try to specify files",$=m==="dir"?"[DIR]":m==="glob"?"[GLOB]":"";return`${$}${$?" ":""}Found 0 matches of '${e}'${l}${O?` ${O}`:""}`}let N=O?` ${O}`:"",K=`${E.length} file${E.length===1?"":"s"}`,B=`${_} match${_===1?"":"es"}`,I;m==="file"?I=`Found ${B} of '${e}' in '${t}'${N}:`:m==="dir"||m==="glob"?I=`Found ${B} of '${e}' in '${t}' across ${K}${N}:`:I=`Found ${B} of '${e}' across ${K}${N}:`;let Z=m==="dir"?"[DIR]":m==="glob"?"[GLOB]":"",j=`${Z}${Z?" ":""}${I}
4
-
5
- `;for(let l of E){j+=`${l.path}
6
- `;for(let $ of l.matches)j+=` ${$.line}: ${$.content}
7
- `;j+=`
8
- `}return j.trimEnd()}catch(f){return`ERROR: ${f.message}`}};export{ce as search_keyword};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-OOTXMJIA.js";import"./chunk-QGPOMXO4.js";import"./chunk-L3W2X74K.js";import"./chunk-RI37VZYB.js";export{a as loadSettings,b as saveSettings};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-WMRT2YZU.js";import"./chunk-7UNVYHZ7.js";import"./chunk-OOTXMJIA.js";import"./chunk-QGPOMXO4.js";import"./chunk-L3W2X74K.js";import"./chunk-RI37VZYB.js";export{b as openUsageDashboard,a as startUsageServer};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-2KD7V3OK.js";import"./chunk-Y5JU726N.js";import"./chunk-RI37VZYB.js";export{a as view_file};