fluxflow-cli 5.5.0 → 5.6.1

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 (69) hide show
  1. package/README.md +1 -0
  2. package/dist/chunks/{ai-6AZZQUJJ.js → ai-JYNVZQOI.js} +1 -1
  3. package/dist/chunks/{answerSubagent-LFLPQQSS.js → answerSubagent-PIZJSLZN.js} +1 -1
  4. package/dist/chunks/{apinex-COGJR7W4.js → apinex-BN3E62ML.js} +1 -1
  5. package/dist/chunks/{app-SKIGDYWL.js → app-NJIF4IBP.js} +168 -168
  6. package/dist/chunks/ask_user-XQ423UXL.js +1 -0
  7. package/dist/chunks/{auto_completion-ZYVGXNQC.js → auto_completion-D5GWZ3OL.js} +1 -1
  8. package/dist/chunks/{awaitSubagent-ZXLUWTW7.js → awaitSubagent-KLH7CRKF.js} +1 -1
  9. package/dist/chunks/{cancel-C2BQ3FGV.js → cancel-2PAHCMGB.js} +1 -1
  10. package/dist/chunks/{chat-34HLGFEJ.js → chat-YMCO5JNQ.js} +1 -1
  11. package/dist/chunks/chunk-3PZTWZTT.js +1 -0
  12. package/dist/chunks/chunk-3WV6FIZV.js +1 -0
  13. package/dist/chunks/{chunk-O74INBF3.js → chunk-4CWGKQHX.js} +1 -1
  14. package/dist/chunks/chunk-6LM3YRRE.js +4 -0
  15. package/dist/chunks/{chunk-YI3O7C3D.js → chunk-DWQSI6JO.js} +1 -1
  16. package/dist/chunks/{chunk-H2EXH5PL.js → chunk-F7Y2KAVQ.js} +196 -198
  17. package/dist/chunks/{chunk-ZPSNXBWW.js → chunk-KTD4WQBO.js} +1 -1
  18. package/dist/chunks/{chunk-5MJKHQVE.js → chunk-KYIMFUZS.js} +1 -1
  19. package/dist/chunks/{chunk-5KBOEKGE.js → chunk-LTNOPF2E.js} +2 -2
  20. package/dist/chunks/chunk-MS7BITZ6.js +1 -0
  21. package/dist/chunks/{chunk-3SMC2C3F.js → chunk-QN4UHB5C.js} +1 -1
  22. package/dist/chunks/{click-M5D2RARW.js → click-AJIULJEH.js} +2 -2
  23. package/dist/chunks/coarena-SGBBHWAP.js +2 -0
  24. package/dist/chunks/{computer_action-N7WIG3L4.js → computer_action-FZUWM6VL.js} +1 -1
  25. package/dist/chunks/{custom_openai-JUCNWDKV.js → custom_openai-MM5T6QBQ.js} +1 -1
  26. package/dist/chunks/{drag-K5ITERVW.js → drag-73WZE3BK.js} +1 -1
  27. package/dist/chunks/{emergency_rollback-X55BPJ7Q.js → emergency_rollback-PHH3BKRP.js} +1 -1
  28. package/dist/chunks/{exec_command-QBBSYF2H.js → exec_command-22LIHPPH.js} +1 -1
  29. package/dist/chunks/{file_map-3YMVODEE.js → file_map-4WUEPRMI.js} +1 -1
  30. package/dist/chunks/{find_file-RBJ4LKPD.js → find_file-LHPOW4ZM.js} +1 -1
  31. package/dist/chunks/{generate_image-53KQ3EDL.js → generate_image-KIZS5HAI.js} +1 -1
  32. package/dist/chunks/{getProgress-4D67AF3H.js → getProgress-MJZDAMSP.js} +1 -1
  33. package/dist/chunks/{infron-KCX7Z3RE.js → infron-4M36NBSA.js} +1 -1
  34. package/dist/chunks/{invoke-GUW4734N.js → invoke-CUYY3T4Z.js} +2 -2
  35. package/dist/chunks/{invokeSync-2PXPUJSJ.js → invokeSync-IZESPM6H.js} +2 -2
  36. package/dist/chunks/{key_press-RQ32VDHR.js → key_press-T5VHXHUL.js} +1 -1
  37. package/dist/chunks/{keyboard_typing-BH4JHUQO.js → keyboard_typing-5L2G5AHU.js} +1 -1
  38. package/dist/chunks/{ollama-BJHC4S6H.js → ollama-X7ARM2CC.js} +1 -1
  39. package/dist/chunks/{read_folder-OJ7UWWOR.js → read_folder-BJ3HS63A.js} +1 -1
  40. package/dist/chunks/recapture_screen-JVNQ2Z7L.js +1 -0
  41. package/dist/chunks/{screen_grid-Z5JHZZKA.js → screen_grid-PHZTVWOJ.js} +1 -1
  42. package/dist/chunks/{scroll-IQUZ3QLU.js → scroll-KE5TNGMD.js} +1 -1
  43. package/dist/chunks/{search_keyword-2JQ75HEQ.js → search_keyword-SSKH6AYF.js} +1 -1
  44. package/dist/chunks/{secrets-OHIQHB63.js → secrets-6RUMHIWR.js} +1 -1
  45. package/dist/chunks/{secrets_v2-W4225MDM.js → secrets_v2-5NIKKQXX.js} +1 -1
  46. package/dist/chunks/{settings-Y7ODX5TH.js → settings-UL5E3OYC.js} +1 -1
  47. package/dist/chunks/{steerSubagent-UNAOFQZJ.js → steerSubagent-B34P33YV.js} +1 -1
  48. package/dist/chunks/{todo-OX7SMIKN.js → todo-3EQZ7LZM.js} +1 -1
  49. package/dist/chunks/{tokenharbor-2TAFOMPU.js → tokenharbor-KKGRGQXG.js} +1 -1
  50. package/dist/chunks/{update_file-2EZILIMQ.js → update_file-RA745RVH.js} +1 -1
  51. package/dist/chunks/{usage-3CNTEZUA.js → usage-MKFPGZUK.js} +1 -1
  52. package/dist/chunks/{usageServer-7NPU35BP.js → usageServer-JFFFEUMY.js} +8 -2
  53. package/dist/chunks/view_file-LWURM2CE.js +1 -0
  54. package/dist/chunks/{wait-RQSCCCXW.js → wait-6WFCZDO7.js} +1 -1
  55. package/dist/chunks/{web_search-B2XM4T5D.js → web_search-XBV7AJF7.js} +1 -1
  56. package/dist/chunks/{write_docx-BMIF6ZDY.js → write_docx-54LANNV2.js} +1 -1
  57. package/dist/chunks/{write_file-O3LLIRLR.js → write_file-6KFLPINS.js} +1 -1
  58. package/dist/chunks/{write_pdf-CTBFENCU.js → write_pdf-UOCME2OY.js} +1 -1
  59. package/dist/chunks/{xkiro-GN4FCYYQ.js → xkiro-3R4IOLSP.js} +1 -1
  60. package/dist/cli.js +5 -5
  61. package/dist/package.json +1 -1
  62. package/package.json +1 -1
  63. package/dist/chunks/ask_user-4KTNP4MZ.js +0 -1
  64. package/dist/chunks/chunk-3HGLLXBK.js +0 -1
  65. package/dist/chunks/chunk-IWIVGFAT.js +0 -1
  66. package/dist/chunks/chunk-JWNCKRN6.js +0 -4
  67. package/dist/chunks/chunk-KQNW7DK5.js +0 -1
  68. package/dist/chunks/recapture_screen-YJNK64KL.js +0 -1
  69. package/dist/chunks/view_file-XYWGDYAY.js +0 -1
package/README.md CHANGED
@@ -42,6 +42,7 @@ fluxflow-cli
42
42
  - **Poolside** (*Removed due to provider inference shutdown*)
43
43
  - **Token Harbor**
44
44
  - **APInex**
45
+ - **CoArena AI**
45
46
  - **Infron**
46
47
  - **xKiro**
47
48
  - **9Router**
@@ -1 +1 @@
1
- import{A as p,B as q,C as r,D as s,E as t,F as u,G as v,m as b,n as c,o as d,p as e,q as f,r as g,s as h,t as i,u as j,v as k,w as l,x as m,y as n,z as o}from"./chunk-H2EXH5PL.js";import"./chunk-UM5SNZ6X.js";import"./chunk-NJTM7OYZ.js";import"./chunk-56EJGQU3.js";import"./chunk-O74INBF3.js";import"./chunk-JMMO76HS.js";import"./chunk-5KBOEKGE.js";import"./chunk-VOUGMIAJ.js";import"./chunk-2RTYI6K3.js";import"./chunk-JWNCKRN6.js";import"./chunk-3HGLLXBK.js";import"./chunk-IWIVGFAT.js";import"./chunk-5MJKHQVE.js";import"./chunk-KQNW7DK5.js";import{l as a}from"./chunk-Y6O7SAPD.js";import"./chunk-ZGORMZE5.js";import"./chunk-NPXJIGAI.js";export{c as RE_LEADING_THINK,b as convertChannelThinkTags,r as detectToolCalls,e as findGenuineThinkClose,t as generateSimpleContent,u as getAIStream,q as getActiveToolContext,j as getCleanGroupedLength,m as getGoogleClient,f as getLeadingThinkBlock,s as initAI,d as isInsideBacktick,a as isModelMultimodal,l as isTerminationSignaled,o as maskCodeSpans,p as maskExecutedTools,n as runJanitorTask,v as runSubagent,k as signalTermination,g as stripLeadingThinking,h as stripNakedXmlTags,i as stripTrailingFluffAfterTools};
1
+ import{A as o,B as p,C as q,D as r,E as s,F as t,G as u,H as v,n as b,o as c,p as d,q as e,r as f,s as g,t as h,u as i,v as j,w as k,x as l,y as m,z as n}from"./chunk-F7Y2KAVQ.js";import"./chunk-UM5SNZ6X.js";import"./chunk-NJTM7OYZ.js";import"./chunk-56EJGQU3.js";import"./chunk-4CWGKQHX.js";import"./chunk-JMMO76HS.js";import"./chunk-LTNOPF2E.js";import"./chunk-VOUGMIAJ.js";import"./chunk-2RTYI6K3.js";import"./chunk-6LM3YRRE.js";import"./chunk-3WV6FIZV.js";import"./chunk-3PZTWZTT.js";import"./chunk-KYIMFUZS.js";import"./chunk-MS7BITZ6.js";import{l as a}from"./chunk-Y6O7SAPD.js";import"./chunk-ZGORMZE5.js";import"./chunk-NPXJIGAI.js";export{c as RE_LEADING_THINK,b as convertChannelThinkTags,r as detectToolCalls,e as findGenuineThinkClose,t as generateSimpleContent,u as getAIStream,q as getActiveToolContext,j as getCleanGroupedLength,m as getGoogleClient,f as getLeadingThinkBlock,s as initAI,d as isInsideBacktick,a as isModelMultimodal,l as isTerminationSignaled,o as maskCodeSpans,p as maskExecutedTools,n as runJanitorTask,v as runSubagent,k as signalTermination,g as stripLeadingThinking,h as stripNakedXmlTags,i as stripTrailingFluffAfterTools};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-56EJGQU3.js";import{a as i}from"./chunk-JWNCKRN6.js";var w=async(g,a={})=>{let r=i(g,["id","answer","response"]),n=r.id,t=r.answer||r.response;if(!n)return'ERROR: Missing "id" argument for Answer.';if(!t)return'ERROR: Missing "answer" argument for Answer.';let s=u.find(e=>e.id===n);if(!s)return`ERROR: Subagent task with ID [${n}] not found.`;if(!s.questions||s.questions.length===0)return`Subagent task [${n}] has no pending questions.`;let o=s.questions.filter(e=>!e.answered);return o.length===0?`Subagent task [${n}] has no unanswered questions.`:(o.forEach(e=>{e.answered=!0,e.answer=t,e.answeredAt=Date.now(),e._resolve&&e._resolve(t)}),s.status="running",a.onSubagentUpdate&&a.onSubagentUpdate(),`Answer provided to subagent task [${n}]. Subagent execution resumed.`)};export{w as answerSubagent};
1
+ import{a as u}from"./chunk-56EJGQU3.js";import{a as i}from"./chunk-6LM3YRRE.js";var w=async(g,a={})=>{let r=i(g,["id","answer","response"]),n=r.id,t=r.answer||r.response;if(!n)return'ERROR: Missing "id" argument for Answer.';if(!t)return'ERROR: Missing "answer" argument for Answer.';let s=u.find(e=>e.id===n);if(!s)return`ERROR: Subagent task with ID [${n}] not found.`;if(!s.questions||s.questions.length===0)return`Subagent task [${n}] has no pending questions.`;let o=s.questions.filter(e=>!e.answered);return o.length===0?`Subagent task [${n}] has no unanswered questions.`:(o.forEach(e=>{e.answered=!0,e.answer=t,e.answeredAt=Date.now(),e._resolve&&e._resolve(t)}),s.status="running",a.onSubagentUpdate&&a.onSubagentUpdate(),`Answer provided to subagent task [${n}]. Subagent execution resumed.`)};export{w as answerSubagent};
@@ -1,2 +1,2 @@
1
- import{a as P}from"./chunk-PTFCY2D5.js";import{a as A}from"./chunk-UM5SNZ6X.js";import"./chunk-NPXJIGAI.js";var H=async function*(b,_,E,x,y,j,C,M,I=1){let g=[];x&&g.push({role:"system",content:x});for(let o of E){let m=o.role==="user"?"user":"assistant",e=[];if(Array.isArray(o.parts)){for(let n of o.parts)if(n.text)e.push({type:"text",text:n.text});else if(n.inlineData&&C){let i=n.inlineData.mimeType,p=n.inlineData.data;i.startsWith("image/")&&e.push({type:"image_url",image_url:{url:`data:${i};base64,${p}`}})}}else{let n=o.text||"";n&&e.push({type:"text",text:n})}g.push({role:m,content:e.length===1&&e[0].type==="text"?e[0].text:e})}let k=A("APInex",_,y),w=k!==null?k:{Fast:"low",Low:"low",Medium:"medium",Standard:"medium",High:"high",xHigh:"high"}[y],T={model:_,messages:g,stream:!0,stream_options:{include_usage:!0},temperature:I,tools:[],tool_choice:"none"};w&&(T.reasoning_effort=w);let F=process.env.APINEX_URL||"https://api.apinex.bond/v1/chat/completions",D={"Content-Type":"application/json","X-Title":"Flux-Flow","User-Agent":"Flux-Flow","HTTP-Referer":"https://fluxflow-cli.onrender.com/"},N=b||process.env.APINEX_API_KEY||"";D.Authorization=`Bearer ${N}`;let l=await P(F,{method:"POST",headers:D,body:JSON.stringify(T),signal:M});if(!l.ok){let o=await l.json().catch(()=>({}));throw new Error(`APInex Error (${l.status}): ${o.error?.message||o.message||l.statusText}`)}let v=l.body.getReader(),S=new TextDecoder,h="",t=[],c=null,u=Date.now(),s=!1;for(;;){let{done:o,value:m}=await v.read();if(o){s&&(t.length>0||c)&&(yield{candidates:t.length>0?[{content:{parts:t}}]:[],usageMetadata:c});break}h+=S.decode(m,{stream:!0});let e=h.split(`
1
+ import{a as P}from"./chunk-PTFCY2D5.js";import{a as A}from"./chunk-UM5SNZ6X.js";import"./chunk-NPXJIGAI.js";var H=async function*(b,_,E,x,y,j,C,M,I=1){let g=[];x&&g.push({role:"system",content:x});for(let o of E){let m=o.role==="user"?"user":"assistant",e=[];if(Array.isArray(o.parts)){for(let n of o.parts)if(n.text)e.push({type:"text",text:n.text});else if(n.inlineData&&C){let i=n.inlineData.mimeType,p=n.inlineData.data;i.startsWith("image/")&&e.push({type:"image_url",image_url:{url:`data:${i};base64,${p}`}})}}else{let n=o.text||"";n&&e.push({type:"text",text:n})}g.push({role:m,content:e.length===1&&e[0].type==="text"?e[0].text:e})}let k=A("APInex",_,y),w=k!==null?k:{Fast:"low",Low:"low",Medium:"medium",Standard:"medium",High:"high",xHigh:"high"}[y],T={model:_,messages:g,stream:!0,stream_options:{include_usage:!0},temperature:I,tools:[],tool_choice:"none"};w&&(T.reasoning_effort=w);let F=process.env.APINEX_URL||"https://api.apinex.bond/v1/chat/completions",D={"Content-Type":"application/json","X-Title":"FluxFlow","User-Agent":"FluxFlow","HTTP-Referer":"https://fluxflow-cli.onrender.com/"},N=b||process.env.APINEX_API_KEY||"";D.Authorization=`Bearer ${N}`;let l=await P(F,{method:"POST",headers:D,body:JSON.stringify(T),signal:M});if(!l.ok){let o=await l.json().catch(()=>({}));throw new Error(`APInex Error (${l.status}): ${o.error?.message||o.message||l.statusText}`)}let v=l.body.getReader(),S=new TextDecoder,h="",t=[],c=null,u=Date.now(),s=!1;for(;;){let{done:o,value:m}=await v.read();if(o){s&&(t.length>0||c)&&(yield{candidates:t.length>0?[{content:{parts:t}}]:[],usageMetadata:c});break}h+=S.decode(m,{stream:!0});let e=h.split(`
2
2
  `);h=e.pop();for(let n of e){let i=n.trim();if(!i||!i.startsWith("data: "))continue;let p=!1;if(i==="data: [DONE]")p=!0;else try{let d=JSON.parse(i.substring(6)),r=d.choices?.[0]?.delta,a=d.usage;if(a&&(c={totalTokenCount:a.total_tokens||(a.prompt_tokens||0)+(a.completion_tokens||0),promptTokenCount:a.prompt_tokens||0,candidatesTokenCount:a.completion_tokens||0,cachedContentTokenCount:a.prompt_tokens_details?.cached_tokens||0,thoughtsTokenCount:a.completion_tokens_details?.reasoning_tokens||a.reasoning_tokens||0},s=!0),r){let f=r.reasoning_content||r.reasoning||null;!f&&Array.isArray(r.reasoning_details)&&r.reasoning_details.length>0&&(f=r.reasoning_details.map($=>$.text||"").filter(Boolean).join("")),f&&(t.push({text:f,thought:!0}),s=!0),r.content&&(t.push({text:r.content}),s=!0)}}catch{}if((p||Date.now()-u>=150)&&s&&(yield{candidates:t.length>0?[{content:{parts:[...t]}}]:[],usageMetadata:c},t=[],u=Date.now(),s=!1),p)break}Date.now()-u>=150&&s&&(yield{candidates:t.length>0?[{content:{parts:[...t]}}]:[],usageMetadata:c},t=[],u=Date.now(),s=!1)}};export{H as getAPInexStream};