fluxflow-cli 4.42.1 → 4.43.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 +1 -0
- package/dist/chunks/{ai-GMCDSKAC.js → ai-B7PWR3ND.js} +1 -1
- package/dist/chunks/app-LSCLDAZR.js +332 -0
- package/dist/chunks/{auto_completion-EJXGALEE.js → auto_completion-DEUFQNXT.js} +1 -1
- package/dist/chunks/{chunk-3XOMPSDB.js → chunk-2SMAZY6E.js} +1 -1
- package/dist/chunks/{chunk-CTKW7YYV.js → chunk-3HU67EUI.js} +1 -2
- package/dist/chunks/chunk-7RITUQX2.js +938 -0
- package/dist/chunks/chunk-BB5UISPJ.js +1 -0
- package/dist/chunks/chunk-H3IDSRDO.js +1 -0
- package/dist/chunks/chunk-JDSDLNHL.js +1 -0
- package/dist/chunks/{chunk-ZYLACK6T.js → chunk-SML2NARF.js} +24 -22
- package/dist/chunks/{chunk-CTNSVXOH.js → chunk-TXMOUQPV.js} +1 -1
- package/dist/chunks/{chunk-XDCDANJJ.js → chunk-UFLKOWYM.js} +1 -1
- package/dist/chunks/chunk-VHCXFHUU.js +5 -0
- package/dist/chunks/{click-5WEIMJHK.js → click-C4LULADR.js} +2 -2
- package/dist/chunks/{computer_action-FVC3EXVR.js → computer_action-HG5P5DOG.js} +1 -1
- package/dist/chunks/{drag-YOWUC5B7.js → drag-CIAOFEBD.js} +1 -1
- package/dist/chunks/{exec_command-7AO6AUGQ.js → exec_command-GXJWBNEI.js} +1 -1
- package/dist/chunks/{generate_image-52GQGN2Q.js → generate_image-RAFSX2PO.js} +1 -1
- package/dist/chunks/{invoke-RGWQLLU4.js → invoke-M633DHSK.js} +2 -2
- package/dist/chunks/{invokeSync-4GMOXNSA.js → invokeSync-K4DMVFUA.js} +2 -2
- package/dist/chunks/{key_press-I4KBUAHP.js → key_press-3MUADXYA.js} +1 -1
- package/dist/chunks/{keyboard_typing-TSJ4CP4R.js → keyboard_typing-RDYAUO2I.js} +1 -1
- package/dist/chunks/{mistral-XDIMWAU3.js → mistral-KIAEM23F.js} +1 -1
- package/dist/chunks/{model_config-32SB7PTZ.js → model_config-Q3PYM77Y.js} +1 -1
- package/dist/chunks/{nvidia-PSGYXYNK.js → nvidia-2N7GMNVP.js} +1 -1
- package/dist/chunks/recapture_screen-CGAT4ZDO.js +1 -0
- package/dist/chunks/screen_grid-PAVYL4U2.js +1 -0
- package/dist/chunks/{scroll-OHT6HAHC.js → scroll-V3SVOZW6.js} +1 -1
- package/dist/chunks/{search_keyword-I5QJUL77.js → search_keyword-OHDFK7MO.js} +1 -1
- package/dist/chunks/{secrets-5TCTEPEV.js → secrets-FRPTIOJI.js} +1 -1
- package/dist/chunks/{settings-MGEVTCE4.js → settings-PADKHNGC.js} +1 -1
- package/dist/chunks/{update_file-JXUYSH2G.js → update_file-XM5PHLQU.js} +1 -1
- package/dist/chunks/{usage-MRIV7SXL.js → usage-PVC3CXDR.js} +1 -1
- package/dist/chunks/{usageServer-NH3CL6IF.js → usageServer-SMP52LUG.js} +1 -1
- package/dist/chunks/{write_file-CIOAYT4P.js → write_file-NTWH4NCN.js} +1 -1
- package/dist/chunks/xkiro-B2LYGZTF.js +2 -0
- package/dist/cli.js +5 -5
- package/dist/model_config.json +1 -0
- package/dist/package.json +2 -2
- package/model_config.json +1 -0
- package/package.json +2 -2
- package/dist/chunks/app-XA27DUTN.js +0 -332
- package/dist/chunks/chunk-FXRFFNRK.js +0 -1
- package/dist/chunks/chunk-KMOTPBF5.js +0 -1
- package/dist/chunks/chunk-UIFI2JRY.js +0 -5
- package/dist/chunks/chunk-UTOIJOO3.js +0 -931
- package/dist/chunks/chunk-Y73PU7CC.js +0 -1
- package/dist/chunks/recapture_screen-PPT2E3CK.js +0 -1
- package/dist/chunks/screen_grid-EXWAAOMK.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{B as u}from"./chunk-
|
|
1
|
+
import{B as u}from"./chunk-7RITUQX2.js";import"./chunk-HFTI3R3Q.js";import"./chunk-52STSLCN.js";import"./chunk-56EJGQU3.js";import"./chunk-SML2NARF.js";import"./chunk-3HU67EUI.js";import"./chunk-Z5D4VQSG.js";import"./chunk-6EYQQ7GQ.js";import"./chunk-4BLSASW6.js";import"./chunk-Y5JU726N.js";import{b as p}from"./chunk-BB5UISPJ.js";import"./chunk-UFLKOWYM.js";import{b as d}from"./chunk-JDSDLNHL.js";import{o as a}from"./chunk-H3IDSRDO.js";import"./chunk-P5HBJA23.js";import{a as l}from"./chunk-26BQ45XP.js";import m from"fs";import g from"path";var f=["Identity: Embedded IDE code completion engine","Context given: Code \xB1 cursor, file name & language","Task: Predict contextually accurate code at cursor position","","Rules:","- Return ONLY the raw code to insert at the cursor. No explanations, commentary or rambling","- Do NOT wrap in markdown code fences","- NEVER repeat code that exist before & after cursor, if nothing sensible possible to predict, return empty string","- Match surrounding indentation and code style","- Complete the current line statement","- Never include placeholder comments like // TODO or # your code here","- Do not put anything except the code to insert between the tags"].join(`
|
|
2
2
|
`);try{let t=g.join(l,".cache");m.existsSync(t)||m.mkdirSync(t,{recursive:!0}),m.writeFileSync(g.join(t,"completion.json"),JSON.stringify({systemPrompt:f},null,2))}catch{}var y=t=>{if(!t)return"";let e=t.match(/<completion>([\s\S]*?)<\/completion>/i);return e?e[1]:t},x=({prefix:t="",suffix:e="",fileName:o="",language:n="",recentChanges:r="",clipboard:i=""})=>{let c=r?["### Recent manual changes (context):",r,""]:[],s=i?["### Clipboard (context):",i,""]:[];return[`File: ${o}`,`Language: ${n}`,"","### Code before cursor:",t,"","[cursor here]","","### Code after cursor:",e,"",...c,...s,"### Completion to insert at cursor:"].join(`
|
|
3
3
|
`)},T=async(t={})=>{try{let e=await d(),o=e.autoCompletion||{};if(!o.enabled)return"";let n=o.provider||e.aiProvider||"Google",r=o.model&&o.model!=="Default"?o.model:e.activeModel||a(n,e.apiTier)||a(n,"paid");if(!r)return"";let i=await p(n);if(!i&&!(n==="c_openai"&&e.systemSettings?.customOpenAIBaseUrl))return"";let c={aiProvider:n,apiKey:i,model:r,mode:"flow",thinkingLevel:"Fast",systemSettings:e.systemSettings||{}},s=[{role:"user",parts:[{text:x(t)}]}],{text:h}=await u(c,r,s,f,"Fast");return y(h||"")}catch{return""}};export{f as AUTOCOMPLETE_SYSTEM_PROMPT,y as extractCompletion,T as generateAutoCompletion};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as f}from"./chunk-VHCXFHUU.js";import{mouse as c,keyboard as i,Button as u,Key as e,Point as l,clipboard as g}from"@nut-tree-fork/nut-js";c.config.autoDelayMs=50;i.config.autoDelayMs=50;async function w(){try{await i.releaseKey(e.LeftControl,e.RightControl,e.LeftAlt,e.RightAlt,e.LeftShift,e.RightShift,e.LeftSuper,e.RightSuper)}catch{}}async function h(n,t,s={}){let r=await f(t);if(!r&&(n==="move"||n==="click"||n==="drag"))return`ERROR: Invalid target location specified: ${JSON.stringify(t)}`;try{switch(n.toLowerCase()){case"move":return await c.setPosition(new l(r.x,r.y)),`Moved mouse to grid target ${typeof t=="string"?t:`(${r.x}, ${r.y})`}`;case"click":{await c.setPosition(new l(r.x,r.y));let a=s.button==="right"?u.RIGHT:s.button==="middle"?u.MIDDLE:u.LEFT;return s.clickType==="double"?await c.doubleClick(a):await c.click(a),`${s.clickType||"Single"} clicked ${s.button||"left"} button at ${typeof t=="string"?t:`(${r.x}, ${r.y})`}`}case"drag":{let a=await f(s.from||t),o=await f(s.to);return!a||!o?'ERROR: Drag requires valid "from" and "to" target coordinates/grid codes.':(await c.setPosition(new l(a.x,a.y)),await c.pressButton(u.LEFT),await c.setPosition(new l(o.x,o.y)),await c.releaseButton(u.LEFT),`Dragged mouse from (${a.x}, ${a.y}) to (${o.x}, ${o.y})`)}case"scroll":{let a=r||await f({x:640,y:360});a&&(await c.setPosition(new l(a.x,a.y)),await new Promise(d=>setTimeout(d,60)));let o=parseInt(s.amount,10);(isNaN(o)||o<=0)&&(o=5);let y=o>50?Math.min(20,Math.max(1,Math.round(o/100))):Math.min(20,o),R=s.direction==="up";for(let d=0;d<y;d++)R?await c.scrollUp(120):await c.scrollDown(120),await new Promise(L=>setTimeout(L,20));return`Scrolled ${s.direction||"down"} (${y} notches${r?` at target (${r.x}, ${r.y})`:" at screen center"})`}default:return`ERROR: Unsupported mouse action "${n}"`}}catch(a){return`ERROR: Mouse action failed: ${a.message}`}}var m={enter:e.Enter,return:e.Return,escape:e.Escape,esc:e.Escape,backspace:e.Backspace,tab:e.Tab,space:e.Space,up:e.Up,down:e.Down,left:e.Left,right:e.Right,ctrl:e.LeftControl,control:e.LeftControl,alt:e.LeftAlt,shift:e.LeftShift,cmd:e.LeftCmd,win:e.LeftWin,meta:e.LeftWin,super:e.LeftSuper,a:e.A,b:e.B,c:e.C,d:e.D,e:e.E,f:e.F,g:e.G,h:e.H,i:e.I,j:e.J,k:e.K,l:e.L,m:e.M,n:e.N,o:e.O,p:e.P,q:e.Q,r:e.R,s:e.S,t:e.T,u:e.U,v:e.V,w:e.W,x:e.X,y:e.Y,z:e.Z,0:e.Num0,1:e.Num1,2:e.Num2,3:e.Num3,4:e.Num4,5:e.Num5,6:e.Num6,7:e.Num7,8:e.Num8,9:e.Num9,f1:e.F1,f2:e.F2,f3:e.F3,f4:e.F4,f5:e.F5,f6:e.F6,f7:e.F7,f8:e.F8,f9:e.F9,f10:e.F10,f11:e.F11,f12:e.F12},p=n=>{if(!n)return;let t=String(n).toLowerCase().trim();if(m[t]!==void 0)return m[t];if(e[n]!==void 0)return e[n];if(e[t.toUpperCase()]!==void 0)return e[t.toUpperCase()]};async function E(n,t,s={}){try{switch(n.toLowerCase()){case"type":{if(typeof t!="string")return"ERROR: Type action requires a valid string input";await w(),await g.setContent(t);let a=process.platform==="darwin"?e.LeftSuper:e.LeftControl;return await i.pressKey(a,e.V),await i.releaseKey(a,e.V),await w(),s.autoPressEnter?(await new Promise(o=>setTimeout(o,50)),await i.type(e.Enter),`Typed text input ("${t.length>20?t.substring(0,20)+"...":t}") and pressed Enter`):`Typed text input ("${t.length>20?t.substring(0,20)+"...":t}")`}case"key_press":{let r=p(t);return r===void 0?`ERROR: Unknown key name "${t}"`:(await i.type(r),`Pressed key ${t}`)}case"key_combination":{if(!Array.isArray(t))return'ERROR: key_combination requires an array of keys (e.g. ["ctrl", "c"])';let r=t.map(a=>p(a)).filter(a=>a!==void 0);return r.length===0?"ERROR: Invalid key combination":(await i.pressKey(...r),await i.releaseKey(...r),`Executed key combination [${t.join(" + ")}]`)}case"clear_input":return await i.pressKey(e.LeftControl,e.A),await i.releaseKey(e.LeftControl,e.A),await i.type(e.Backspace),"Cleared active text input (Select All + Backspace)";case"browser_back":{let r=process.platform==="darwin";return r?(await i.pressKey(e.LeftSuper,e.Left),await i.releaseKey(e.LeftSuper,e.Left)):(await i.pressKey(e.LeftAlt,e.Left),await i.releaseKey(e.LeftAlt,e.Left)),await w(),`Browser back navigation (${r?"Cmd+Left":"Alt+Left"})`}default:return`ERROR: Unsupported keyboard action "${n}"`}}catch(r){return`ERROR: Keyboard action failed: ${r.message}`}}export{h as a,E as b};
|
|
@@ -33,8 +33,7 @@ Invocations:
|
|
|
33
33
|
- Scroll(direction="up/down", gridId=int). Scrolls viewport, gridId to hover over window
|
|
34
34
|
- KeyboardTyping(text=string, autoPressEnter?=bool). Type text string into currently active input. JSON escape literal escape sequences
|
|
35
35
|
- KeyPress(key="key or ;-separated combination, eg: enter, back, backspace, clearInput, ctrl;c, alt;tab, f5, f11, alt;f4"). Press key, shortcut, function key (f1-f12), or clear active input field
|
|
36
|
-
- RecaptureScreen(). Request fresh gridded screenshot
|
|
37
|
-
- Wait(seconds?=int[..120]). Wait for process to finish`;return`
|
|
36
|
+
- RecaptureScreen(canvasMode?=bool:false). Request fresh gridded screenshot. Use canvasMode when static grid needed, like paint`;return`
|
|
38
37
|
-- ACTIONS --
|
|
39
38
|
In chat output the format \`[action:ActionName(arg1="value1")]\` in NEW line
|
|
40
39
|
Rules:
|