fluxflow-cli 4.16.1 → 4.16.3
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/dist/chunks/{ai-6FXYLVOW.js → ai-6RTKBZ7C.js} +1 -1
- package/dist/chunks/{ai-AS3SDWCL.js → ai-YEPKGYDE.js} +1 -1
- package/dist/chunks/{app-F5CCWLRS.js → app-CZ4F6LXZ.js} +2 -2
- package/dist/chunks/{app-QWV5B5EW.js → app-YEFXJS5K.js} +77 -77
- package/dist/chunks/{chunk-NLVU34AW.js → chunk-5PKBYQB2.js} +4 -4
- package/dist/chunks/chunk-AZGFDR6K.js +1916 -0
- package/dist/chunks/{chunk-FZHHMJZI.js → chunk-JABAGBQ6.js} +200 -199
- package/dist/chunks/getProgress-LI4U6UJU.js +26 -0
- package/dist/chunks/{invoke-4TSUCBPH.js → invoke-7JQ57VBG.js} +3 -3
- package/dist/chunks/{invoke-RZE37R5K.js → invoke-D7WH5BU6.js} +3 -3
- package/dist/chunks/{invokeSync-COCWPF45.js → invokeSync-722CH233.js} +2 -2
- package/dist/chunks/{invokeSync-K5NCZVFD.js → invokeSync-WFDY5DZJ.js} +2 -2
- package/dist/chunks/usageServer-M7OKG6CP.js +1 -0
- package/dist/cli.js +2 -2
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/chunks/getProgress-KLWGCCPA.js +0 -26
|
@@ -523,7 +523,7 @@ ${Ni?"":`${n==="Flux"?"Stepwise Execution, Run Automated Tests. Task Completion"
|
|
|
523
523
|
|
|
524
524
|
-- THINKING GUIDANCE --
|
|
525
525
|
${f==="Mistral"||f==="Google"&&!h?`${i}
|
|
526
|
-
${x||t!=="Fast"&&(f==="Mistral"&&!h||t!=="
|
|
526
|
+
${x||t!=="Fast"&&(f==="Mistral"&&!h||t!=="High"&&!h)?`critical thinking policy
|
|
527
527
|
Use <think>...</think> for reasoning before responding any queries
|
|
528
528
|
`:""}`:`${i}
|
|
529
529
|
`}${u?"":`Mandatory: Before calling tools, MUST provide a high level summary of your reasoning, plans, decisions, and next course of actions in chat
|
|
@@ -570,7 +570,7 @@ ${gi(t,n)}
|
|
|
570
570
|
=== END SYSTEM PROMPT ===${e?`
|
|
571
571
|
|
|
572
572
|
-- current saved user memories --
|
|
573
|
-
${e}`:""}`.trim();var zi=()=>import("./web_search-YG5YAC5D.js").then(e=>e.web_search),Ji=()=>import("./web_scrape-5LBY4FDC.js").then(e=>e.web_scrape),Xi=()=>import("./memory-OYIUYX3A.js").then(e=>e.memory),Qi=()=>import("./chat-HZ7UVZE2.js").then(e=>e.chat),Zi=()=>import("./view_file-JK22NGXC.js").then(e=>e.view_file),er=()=>import("./write_file-LOYRYIK6.js").then(e=>e.write_file),tr=()=>import("./update_file-UFCBJOW5.js").then(e=>e.update_file),nr=()=>import("./exec_command-7MOYM7IQ.js").then(e=>e.exec_command),or=()=>import("./read_folder-OOKZITME.js").then(e=>e.read_folder),As=()=>import("./ask_user-K2DLZF6H.js").then(e=>e.ask_user),sr=()=>import("./write_pdf-VB4IFPWX.js").then(e=>e.write_pdf),ir=()=>import("./write_docx-EKUIZ7GV.js").then(e=>e.write_docx),Oo=()=>import("./search_keyword-W5YEUUPO.js").then(e=>e.search_keyword),rr=()=>import("./generate_image-XYDE47LK.js").then(e=>e.generate_image),Lo=()=>import("./saveSummary-ATBIFYDP.js").then(e=>e.saveSummary),ao=()=>import("./addMemScore-W4I665ZR.js").then(e=>e.addMemScore),ar=()=>import("./file_map-5KY2ADZW.js").then(e=>e.file_map),Po=()=>import("./todo-SJLJJLVZ.js").then(e=>e.todo),lr=()=>import("./invokeSync-K5NCZVFD.js").then(e=>e.invokeSync),sa=()=>import("./invoke-RZE37R5K.js").then(e=>e.invoke),cr=()=>import("./getProgress-KLWGCCPA.js").then(e=>e.getProgress),ia=()=>import("./cancel-7IMADALP.js").then(e=>e.cancel),dr=()=>import("./emergency_rollback-EPJPKANN.js").then(e=>e.emergency_rollback),lo=()=>import("./awaitSubagent-JTUSJDKD.js").then(e=>e.awaitSubagent),co=()=>import("./answerSubagent-JUVFNLE5.js").then(e=>e.answerSubagent),$o=()=>import("./steerSubagent-L2JVT4QN.js").then(e=>e.steerSubagent),No=()=>import("./computer_action-WTHH7RBB.js").then(e=>e.computer_action),fr=()=>import("./click-G6RRSFVC.js").then(e=>e.click),ur=()=>import("./drag-ZGH2MMP7.js").then(e=>e.drag),gr=()=>import("./scroll-GHXES2II.js").then(e=>e.scroll),Cs=()=>import("./keyboard_typing-CK3KVAWM.js").then(e=>e.keyboard_typing),Rs=()=>import("./key_press-M5QNCIPH.js").then(e=>e.key_press),vs=()=>import("./recapture_screen-5FKLOHJL.js").then(e=>e.recapture_screen),ra={web_search:zi,web_scrape:Ji,memory:Xi,chat:Qi,view_file:Zi,write_file:er,update_file:tr,exec_command:nr,read_folder:or,write_pdf:sr,write_docx:ir,search_keyword:Oo,generate_image:rr,saveSummary:Lo,addMemScore:ao,file_map:ar,todo:Po,Todo:Po,goal:Po,Goal:Po,invokeSync:lr,invoke:sa,getProgress:cr,cancel:ia,awaitSubagent:lo,answerSubagent:co,steerSubagent:$o,computer_action:No,computer_use:No,ComputerAction:No,ComputerUse:No,click:fr,Click:fr,drag:ur,Drag:ur,scroll:gr,Scroll:gr,keyboard_typing:Cs,KeyboardTyping:Cs,keyboardtyping:Cs,key_press:Rs,KeyPress:Rs,keypress:Rs,recapture_screen:vs,RecaptureScreen:vs,recapturescreen:vs,invoke_sync:lr,get_progress:cr,await_subagent:lo,answer_subagent:co,steer_subagent:$o,steer:$o,Steer:$o,ask:As,Ask:As,AskUser:As,WebSearch:zi,WebScrape:Ji,ReadFile:Zi,ReadFolder:or,WriteFile:er,PatchFile:tr,WritePDF:sr,WriteDoc:ir,Run:nr,SearchKeyword:Oo,CodeSearch:Oo,code_search:Oo,Memory:Xi,Chat:Qi,GenerateImage:rr,saveSumary:Lo,SaveSummary:Lo,SaveSumary:Lo,add_mem_score:ao,AddMemScore:ao,addMemoryScore:ao,AddMemoryScore:ao,FileMap:ar,answer:co,Answer:co,AnswerSubagent:co,await:lo,Await:lo,AwaitSubagent:lo,EmergencyRollback:dr,emergency_rollback:dr},fo=async(e,t,n={})=>{let s=n.mode?n.mode.toLowerCase():"flux",o=e.toLowerCase(),f=["memory","chat","savesummary","addmemscore","add_mem_score","ask","web_search","web_scrape","await"].some(u=>o.includes(u))||o==="ask",h=["click","drag","scroll","keyboardtyping","keyboard_typing","keypress","key_press","recapturescreen","recapture_screen","computer"].some(u=>o.includes(u));if(!f){if(s==="flow"){if(!(o.includes("write_pdf")||o.includes("write_docx")||o.includes("generate_image")))return`ERROR: Tool [${e}] is a Workspace Tool and NOT available in Flow mode. Tell user to switch (\`/mode flux\`) to use this tool.`}else if(s==="icu"){if(!h)return`ERROR: Tool [${e}] is not available in Computer Use mode. ICU mode only supports Computer Use tools (Click, Drag, Scroll, KeyboardTyping, KeyPress, RecaptureScreen).`}else if(o.includes("write_pdf")||o.includes("write_docx")||o.includes("generate_image"))return`ERROR: Tool [${e}] is not available in ${n.mode||"Flux"} mode. Tell user to switch (\`/mode flow\`) for document generation.`}let g=ra[e];if(!g)return`ERROR: Tool [${e}] not found in registry.`;try{return await(await g())(t,n)}catch(u){let m=u instanceof Error?u.message:String(u);return`ERROR: Execution failed for [${e}]: ${m}`}};import J from"path";import Pe from"fs";import aa from"gradient-string";var Ms=["I have a regex for your problems.","Your terminal, my kingdom.","Blowing on the cartridge helps. Probably.","Don't panic. I have the towel.","Logic is the start of wisdom.","Try to exit Vim? Good luck.","I speak fluent Terminal.","The cake is a lie. This code is not.","I have no bugs, just surprise features.","Rewriting in Rust... just for fun.","Coffee in, clean commits out.","The magic smoke stays inside today.","A semicolon short of a miracle.","One does not simply code without a bug.","Keep it simple. Keep it terminal.","Regex: now you have two problems.","I dream in binary.","Root access or bust.","Wait for the dial-up tone. Just kidding.","I take the 'labor' out of collab.","My other process is a TARDIS.","Calculated response: 42.","Ponder the orb. Ponder the code.","Less talk, more flow.","Elegance in every byte.","Build something the world is not ready for.","Your wishes, my tool calls.","I act in Flux. I think in Flow.","Syntax error in the universe. Please fix.","Your project, my obsession.","I am not a bot, I am an architect.","Digital spirits consulted. They say: Ship it.","Reticulate splines. Engage humor.","Code like poetry. Run like water.","Minimalism is the ultimate flex.","The truth is in the logs.","Follow the white rabbit.","There is no spoon. Only code.","Binary is the only language I trust.","I have a good feeling about this.","Pew pew! Lasers charged.","Divide by zero? Not today.","Search for the correct USB orientation...","I've got a fever, and the only cure is more code.","The code gremlins are on our side.","My favorite command? Yours.","Stay hungry. Stay active.","Momentum is your best friend.","Lead the flow. Don't chase it.","A fresh batch of bytes. Hot and ready.","I orchestrate the ones and zeros.","Smart enough to help. Humble enough to ask.","Think twice. Code once.","Pure intent. Pure execution.","Small steps. Massive impact.","Your terminal is a canvas.","Efficiency is my second name.","I have seen things you people wouldn't believe.","Let the thoughts marinate.","The best feature? The one you don't need.","Precision is the only perfection.","Stay focused. Stay terminal.","Silence is the best debugger.","Erase the debt. Commit the code.","Velocity meets stability.","Ship it. Improve it. Repeat.","Build tomorrow, right now.","Turn logic into reality.","The best way to predict the future is to build it.","Break barriers, not builds.","Fuel the next breakthrough.","Momentum is key.","Terminal vibes only.","Your digital co-pilot is ready.","Partner in code. Partner in crime.","I speak in semicolons.","Ready for the next great idea.","Just a moment. In the zone.","Polishing the algorithms. Hold tight.","Craft a masterpiece today.","Debug the universe. Start here.","Warp speed engaged. Almost.","The cake is not a lie. It's just loading.","Finish the Kessel Run in 12 parsecs.","Do a barrel roll!","Waiting for the respawn.","Press Start to continue.","Herding digital cats... done.","The hamsters are fast today.","Tasting the snozberries.","I go for speed. I go for flow.","Real life or just fantasy?","Poking the bear... gently.","Ensure the magic smoke stays inside.","Try turning it off and on again.","Construct additional pylons.","New line? Ctrl+J is your friend.","Release the HypnoDrones.","Push the button, Frank.","My other loading screen is even funnier.","Pretty sure a cat walked on my keyboard.","Recalibrate the humor-o-meter.","Summon the code gremlins.","I've seen your browser history. Just kidding.","Charge the laser... pew pew!","Dividing by zero... just for a sec.","Looking for an adult supervisor. Found none.","Make it go beep boop.","Buffering... for effect.","Entangle quantum particles... complete.","Polishing the chrome on my algorithms.","Are you not entertained?","Just waiting for the dial-up tone.","Reboot the humor module.","Defragment memories. Check.","Optimizing for ludicrous speed.","Swapping bits. Don't tell the bytes.","Garbage collected. I am back.","Assembling the interwebs.","Converting coffee to logic.","Update syntax for reality.","Rewire the synapses.","Greasin' the cogs.","Engage the improbability drive.","Channel the Force.","Align the stars. Respond now.","The cake is a lie. The prompt is real.","I'm Feeling Lucky.","Shipping awesomeness.","Navigating the slime mold.","Consult digital spirits.","Ask the magic conch shell.","One moment. Optimizing humor.","Shuffling punchlines.","Compiling brilliance.","Summon the cloud of wisdom.","Prepare to dazzle.","Hold tight. Crafting a response.","Tuning the algorithms.","Following the white rabbit... again.","The truth is in here. Somewhere.","Herding cats is my day job.","Distracting you with this phrase.","Almost there. Probably.","Rickrolling my creator. Don't tell.","Slapping the bass.","Is this real life?","Ponder the orb. Type the prompt.","Thoughtful gaze initiated.","Computer's favorite snack? Microchips.","Why Java? Because I don't C#.","Charging the laser... wait for it.","Dividing by zero... just kidding!","Adult supervision not found. Proceed.","Beep boop. I'm a real boy.","Wait for the respawn.","Finish the run. Ship the code.","Fiddling with character creation.","Just a moment. Finding a meme.","Pressing A to continue.","Loading wit.exe.","Pre-heating the servers.","Calibrate flux capacitor.","Channeling the Force.","Aligning the stars.","The truth is in the code.","Don't panic.","Blowing on the cartridge.","Doing a barrel roll!","Respawning in 3... 2... 1...","The cake is a lie.","Fiddling with character settings.","Finding a suitable pun.","Distracting with wit.","Almost ready.","Hamsters on speed today.","Patting Cloudy on the head.","Rickrolling the logs.","Slapping the code.","Got a good feeling about this.","Poking the prompt.","Researching latest memes.","Making it more witty.","Thinking... hmmm.","Fish with no eyes? Fsh.","Broken pencil? Pointless.","Percussive maintenance applied.","USB orientation: 3rd try's the charm.","Rust rewrite in 3... 2...","Exiting Vim... someday.","Spinning the hamster wheel.","Not a bug. Unplanned feature.","Engage.","I'll be back.","Machine spirit consulted.","Letting the thoughts marinate.","Orb pondered.","Thoughtful gaze engaged.","Charging the laser...","Making it go beep.","Buffering...","Quantum particles entangled.","Polishing the chrome.","Entertained yet?","Gremlins summoned.","Dial-up tone finished.","Humor meter recalibrated.","Cat on keyboard. Sending help.","Enhancing...","Turn it off and on again.","Constructing pylons.","HypnoDrones released.","Pushing the button."];var mr=[{name:"Cyan Cyberpunk",text:"cyan",textMuted:"#4da6b8",textDim:"#2d6d7a",textInverted:"black",border:"cyan",borderMuted:"#1a5966",borderDim:"#0f3840",bg:void 0,cardBg:"#061e24",highlightBg:"#092b33",activeBg:"#0e3e4a",inputBg:"#092b33",inputBorder:"#092b33",inputText:"cyan",inputPlaceholder:"#2d6d7a",inputPrompt:"cyan",codeBg:"#020d10",codeBorder:"#1a5966",userMsgBg:"#092b33",userMsgBorder:"#092b33",userMsgText:"cyan",diffRemovalBg:"#3a0c1a",diffAdditionBg:"#0c3a32",diffRemovalText:"#ff4d88",diffAdditionText:"#00ffaa",diffRemovalHighlightColor:"#ff1a66",diffRemovalHighlightBg:"#590022",diffAdditionHighlightColor:"#00ffcc",diffAdditionHighlightBg:"#00593b",diffRemovalNum:"#ff4d88",diffAdditionNum:"#00ffaa",diffRemovalPrefix:"#ff1a66",diffAdditionPrefix:"#00ffcc",primary:"cyan",secondary:"blue",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"cyan",statusOff:"#2d6d7a",logoTextAnsi:"\x1B[1;36m",logoBodyAnsi:"\x1B[36m",logoMutedAnsi:"\x1B[90m",logoGradient:["#00ffff","#0088ff"]},{name:"Magenta Vaporwave",text:"magenta",textMuted:"#c451d6",textDim:"#7d2b8a",textInverted:"black",border:"magenta",borderMuted:"#5e1b69",borderDim:"#3b0f42",bg:void 0,cardBg:"#240729",highlightBg:"#310938",activeBg:"#470e52",inputBg:"#310938",inputBorder:"#310938",inputText:"magenta",inputPlaceholder:"#7d2b8a",inputPrompt:"magenta",codeBg:"#100312",codeBorder:"#5e1b69",userMsgBg:"#310938",userMsgBorder:"#310938",userMsgText:"magenta",diffRemovalBg:"#3a0c20",diffAdditionBg:"#200c3a",diffRemovalText:"#ff4d94",diffAdditionText:"#aa4dff",diffRemovalHighlightColor:"#ff1a75",diffRemovalHighlightBg:"#59002b",diffAdditionHighlightColor:"#bb66ff",diffAdditionHighlightBg:"#3b0059",diffRemovalNum:"#ff4d94",diffAdditionNum:"#aa4dff",diffRemovalPrefix:"#ff1a75",diffAdditionPrefix:"#bb66ff",primary:"magenta",secondary:"cyan",accent:"purple",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"magenta",statusOff:"#7d2b8a",logoTextAnsi:"\x1B[1;35m",logoBodyAnsi:"\x1B[35m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ff00ff","#8800ff"]},{name:"Glitch Matrix",text:"#00ff41",textMuted:"#00b32d",textDim:"#00661a",textInverted:"black",border:"#00ff41",borderMuted:"#008020",borderDim:"#004d13",bg:void 0,cardBg:"#0d1f0d",highlightBg:"#122912",activeBg:"#1c3e1c",inputBg:"#122912",inputBorder:"#122912",inputText:"#00ff41",inputPlaceholder:"#00b32d",inputPrompt:"#ffff00",codeBg:"#040a04",codeBorder:"#008020",userMsgBg:"#122912",userMsgBorder:"#122912",userMsgText:"#00ff41",diffRemovalBg:"#3a001a",diffAdditionBg:"#003a10",diffRemovalText:"#ff0055",diffAdditionText:"#00ff66",diffRemovalHighlightColor:"#ff0033",diffRemovalHighlightBg:"#59001b",diffAdditionHighlightColor:"#33ff88",diffAdditionHighlightBg:"#005918",diffRemovalNum:"#ff0055",diffAdditionNum:"#00ff66",diffRemovalPrefix:"#ff0033",diffAdditionPrefix:"#33ff88",primary:"#00ff41",secondary:"yellow",accent:"cyan",success:"#00ff41",warning:"yellow",danger:"red",info:"cyan",statusOn:"#00ff41",statusOff:"#00661a",logoTextAnsi:"\x1B[1;32m",logoBodyAnsi:"\x1B[32m",logoMutedAnsi:"\x1B[90m",logoGradient:["#00ff41","#ffff00"]},{name:"Warm Sunset",text:"#ffaa55",textMuted:"#cc8844",textDim:"#885522",textInverted:"black",border:"#ff9933",borderMuted:"#aa6622",borderDim:"#663311",bg:void 0,cardBg:"#24180f",highlightBg:"#2e1e12",activeBg:"#422c1b",inputBg:"#2e1e12",inputBorder:"#2e1e12",inputText:"#ffaa55",inputPlaceholder:"#885522",inputPrompt:"#ff7733",codeBg:"#120c08",codeBorder:"#aa6622",userMsgBg:"#2e1e12",userMsgBorder:"#2e1e12",userMsgText:"#ffaa55",diffRemovalBg:"#3d120c",diffAdditionBg:"#3a2e0c",diffRemovalText:"#ff5544",diffAdditionText:"#ffcc33",diffRemovalHighlightColor:"#ff3322",diffRemovalHighlightBg:"#591108",diffAdditionHighlightColor:"#ffee44",diffAdditionHighlightBg:"#594400",diffRemovalNum:"#ff5544",diffAdditionNum:"#ffcc33",diffRemovalPrefix:"#ff3322",diffAdditionPrefix:"#ffee44",primary:"#ffaa55",secondary:"#ff7733",accent:"magenta",success:"#ffcc33",warning:"#ff7733",danger:"#ff3322",info:"#ffaa55",statusOn:"#ffaa55",statusOff:"#885522",logoTextAnsi:"\x1B[1;33m",logoBodyAnsi:"\x1B[33m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ff9933","#ff0055"]},{name:"Sakura Blossom",text:"#ffc0e0",textMuted:"#d98cb3",textDim:"#804d66",textInverted:"black",border:"#ff99cc",borderMuted:"#aa4d7a",borderDim:"#662647",bg:void 0,cardBg:"#291320",highlightBg:"#331826",activeBg:"#472235",inputBg:"#331826",inputBorder:"#331826",inputText:"#ffc0e0",inputPlaceholder:"#804d66",inputPrompt:"#ff99cc",codeBg:"#140a10",codeBorder:"#aa4d7a",userMsgBg:"#331826",userMsgBorder:"#331826",userMsgText:"#ffc0e0",diffRemovalBg:"#3e0c1b",diffAdditionBg:"#1b3e2b",diffRemovalText:"#ff6699",diffAdditionText:"#66ffb3",diffRemovalHighlightColor:"#ff3377",diffRemovalHighlightBg:"#590022",diffAdditionHighlightColor:"#33ff99",diffAdditionHighlightBg:"#00592e",diffRemovalNum:"#ff6699",diffAdditionNum:"#66ffb3",diffRemovalPrefix:"#ff3377",diffAdditionPrefix:"#33ff99",primary:"#ffc0e0",secondary:"#ff99cc",accent:"magenta",success:"#66ffb3",warning:"yellow",danger:"#ff3377",info:"#ff99cc",statusOn:"#ffc0e0",statusOff:"#804d66",logoTextAnsi:"\x1B[1;35m",logoBodyAnsi:"\x1B[35m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ffb3d9","#ff3399"]},{name:"Radioactive Slime",text:"#ccff00",textMuted:"#99cc00",textDim:"#669900",textInverted:"#0a0f00",border:"#ccff00",borderMuted:"#99cc00",borderDim:"#669900",bg:void 0,cardBg:"#0f1400",highlightBg:"#1a2400",activeBg:"#2a3b00",inputBg:"#1a2400",inputBorder:"#1a2400",inputText:"#ccff00",inputPlaceholder:"#669900",inputPrompt:"#cc00ff",codeBg:"#050a00",codeBorder:"#99cc00",userMsgBg:"#1a2400",userMsgBorder:"#1a2400",userMsgText:"#ccff00",diffRemovalBg:"#2a0033",diffAdditionBg:"#0f3300",diffRemovalText:"#ff00cc",diffAdditionText:"#00ff33",diffRemovalHighlightColor:"#ff33cc",diffRemovalHighlightBg:"#4d0066",diffAdditionHighlightColor:"#33ff66",diffAdditionHighlightBg:"#1a6600",diffRemovalNum:"#ff00cc",diffAdditionNum:"#00ff33",diffRemovalPrefix:"#ff33cc",diffAdditionPrefix:"#33ff66",primary:"#ccff00",secondary:"#cc00ff",accent:"#ff00cc",success:"#00ff33",warning:"#ffcc00",danger:"#ff0033",info:"#00ccff",statusOn:"#ccff00",statusOff:"#669900",logoTextAnsi:"\x1B[1;38;5;190m",logoBodyAnsi:"\x1B[38;5;190m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ccff00","#cc00ff"]},{name:"Cosmic Void",text:"#f0f8ff",textMuted:"#a6aeb5",textDim:"#5e656e",textInverted:"#010103",border:"#f0f8ff",borderMuted:"#a6aeb5",borderDim:"#5e656e",bg:void 0,cardBg:"#05030d",highlightBg:"#0b081a",activeBg:"#171133",inputBg:"#0b081a",inputBorder:"#0b081a",inputText:"#f0f8ff",inputPlaceholder:"#5e656e",inputPrompt:"#ff007f",codeBg:"#020108",codeBorder:"#a6aeb5",userMsgBg:"#0b081a",userMsgBorder:"#0b081a",userMsgText:"#f0f8ff",diffRemovalBg:"#2e0a29",diffAdditionBg:"#091c33",diffRemovalText:"#ff33a6",diffAdditionText:"#33d6ff",diffRemovalHighlightColor:"#ff66c2",diffRemovalHighlightBg:"#5c1452",diffAdditionHighlightColor:"#66e0ff",diffAdditionHighlightBg:"#123866",diffRemovalNum:"#ff33a6",diffAdditionNum:"#33d6ff",diffRemovalPrefix:"#ff66c2",diffAdditionPrefix:"#66e0ff",primary:"#f0f8ff",secondary:"#ff007f",accent:"#9d00ff",success:"#33d6ff",warning:"#ffcc00",danger:"#ff0040",info:"#9d00ff",statusOn:"#f0f8ff",statusOff:"#5e656e",logoTextAnsi:"\x1B[1;38;5;231m",logoBodyAnsi:"\x1B[38;5;231m",logoMutedAnsi:"\x1B[38;5;240m",logoGradient:["#ffffff","#9d00ff"]},{name:"Magma Eruption",text:"#ff4d00",textMuted:"#cc3d00",textDim:"#802600",textInverted:"#0d0300",border:"#ff4d00",borderMuted:"#cc3d00",borderDim:"#802600",bg:void 0,cardBg:"#1a0600",highlightBg:"#260a00",activeBg:"#401100",inputBg:"#260a00",inputBorder:"#260a00",inputText:"#ff4d00",inputPlaceholder:"#802600",inputPrompt:"#ffcc00",codeBg:"#080200",codeBorder:"#cc3d00",userMsgBg:"#260a00",userMsgBorder:"#260a00",userMsgText:"#ff4d00",diffRemovalBg:"#2e0a0a",diffAdditionBg:"#1f1400",diffRemovalText:"#ff3333",diffAdditionText:"#ffaa00",diffRemovalHighlightColor:"#ff6666",diffRemovalHighlightBg:"#5c1414",diffAdditionHighlightColor:"#ffcc33",diffAdditionHighlightBg:"#3d2900",diffRemovalNum:"#ff3333",diffAdditionNum:"#ffaa00",diffRemovalPrefix:"#ff6666",diffAdditionPrefix:"#ffcc33",primary:"#ff4d00",secondary:"#ffcc00",accent:"#ff0040",success:"#ffaa00",warning:"#ffff00",danger:"#ff0000",info:"#ff8800",statusOn:"#ff4d00",statusOff:"#802600",logoTextAnsi:"\x1B[1;38;5;202m",logoBodyAnsi:"\x1B[38;5;202m",logoMutedAnsi:"\x1B[38;5;236m",logoGradient:["#ff4d00","#ff0000"]}],uo={Dark:{id:"Dark",name:"Dark (Default)",text:"white",textMuted:"gray",textDim:"grey",textInverted:"black",textExclusive:"#B5B8D9",textMutedExclusive:"#D4DEE7",border:"white",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:"#1e1e1e",highlightBg:"#2a2a2a",activeBg:"#3a3a3a",inputBg:"#555555",inputBorder:"#555555",inputText:"white",inputPlaceholder:"#cccccc",inputPrompt:"white",codeBg:"#1a1a1a",codeBorder:"#444444",userMsgBg:"#444444",userMsgBorder:"#444444",userMsgText:"white",diffRemovalBg:"#250808",diffAdditionBg:"#072410",diffRemovalText:"#885555",diffAdditionText:"#558866",diffRemovalHighlightColor:"#ff3333",diffRemovalHighlightBg:"#5a1818",diffAdditionHighlightColor:"#33ff66",diffAdditionHighlightBg:"#185a25",diffRemovalNum:"#d96868",diffAdditionNum:"#68d98c",diffRemovalPrefix:"#ff4d4d",diffAdditionPrefix:"#4dff88",primary:"white",secondary:"cyan",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"white",statusOff:"gray",logoTextAnsi:"\x1B[1;37m",logoBodyAnsi:"\x1B[37m",logoMutedAnsi:"\x1B[90m",logoGradient:["#0077ff","#ff00ff"]},Light:{id:"Light",name:"Light",text:"black",textMuted:"gray",textDim:"grey",textInverted:"white",border:"black",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:"#e5e5e5",highlightBg:"#d4d4d4",activeBg:"#c0c0c0",inputBg:"#d0d0d0",inputBorder:"#d0d0d0",inputText:"black",inputPlaceholder:"#555555",inputPrompt:"black",codeBg:"#e8e8e8",codeBorder:"#b0b0b0",userMsgBg:"#d0d0d0",userMsgBorder:"#d0d0d0",userMsgText:"black",diffRemovalBg:"#fce8e8",diffAdditionBg:"#e6f9e6",diffRemovalText:"#661111",diffAdditionText:"#115511",diffRemovalHighlightColor:"#440000",diffRemovalHighlightBg:"#f8b4b4",diffAdditionHighlightColor:"#003300",diffAdditionHighlightBg:"#a6ebad",diffRemovalNum:"#c02020",diffAdditionNum:"#188028",diffRemovalPrefix:"#d01010",diffAdditionPrefix:"#109020",primary:"black",secondary:"blue",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"black",statusOff:"gray",logoTextAnsi:"\x1B[1;30m",logoBodyAnsi:"\x1B[30m",logoMutedAnsi:"\x1B[38;5;244m",logoGradient:["#0077ff","#ff00ff"]},"GitHub Dark":{id:"GitHub Dark",name:"GitHub Dark",text:"#c9d1d9",textMuted:"#8b949e",textDim:"#6e7681",textInverted:"#0d1117",border:"#30363d",borderMuted:"#30363d",borderDim:"#21262d",bg:void 0,cardBg:"#161b22",highlightBg:"#21262d",activeBg:"#30363d",inputBg:"#21262d",inputBorder:"#21262d",inputText:"#c9d1d9",inputPlaceholder:"#8b949e",inputPrompt:"#58a6ff",codeBg:"#0d1117",codeBorder:"#30363d",userMsgBg:"#21262d",userMsgBorder:"#21262d",userMsgText:"#c9d1d9",diffRemovalBg:"#3c1e1e",diffAdditionBg:"#11381e",diffRemovalText:"#f85149",diffAdditionText:"#3fb950",diffRemovalHighlightColor:"#ff7b72",diffRemovalHighlightBg:"#701c1c",diffAdditionHighlightColor:"#56d364",diffAdditionHighlightBg:"#116329",diffRemovalNum:"#f85149",diffAdditionNum:"#3fb950",diffRemovalPrefix:"#f85149",diffAdditionPrefix:"#3fb950",primary:"#c9d1d9",secondary:"#58a6ff",accent:"#bc8cff",success:"#3fb950",warning:"#d29922",danger:"#f85149",info:"#58a6ff",statusOn:"#58a6ff",statusOff:"#8b949e",logoTextAnsi:"\x1B[1;36m",logoBodyAnsi:"\x1B[37m",logoMutedAnsi:"\x1B[90m",logoGradient:["#2ea043","#56d364"]},"GitHub Light":{id:"GitHub Light",name:"GitHub Light",text:"#24292f",textMuted:"#57606a",textDim:"#6e7781",textInverted:"#ffffff",border:"#d0d7de",borderMuted:"#d0d7de",borderDim:"#e1e4e8",bg:void 0,cardBg:"#f6f8fa",highlightBg:"#eaeef2",activeBg:"#d0d7de",inputBg:"#eaeef2",inputBorder:"#eaeef2",inputText:"#24292f",inputPlaceholder:"#57606a",inputPrompt:"#0969da",codeBg:"#ffffff",codeBorder:"#d0d7de",userMsgBg:"#eaeef2",userMsgBorder:"#eaeef2",userMsgText:"#24292f",diffRemovalBg:"#ffebe9",diffAdditionBg:"#e6ffec",diffRemovalText:"#cf222e",diffAdditionText:"#1a7f37",diffRemovalHighlightColor:"#82071e",diffRemovalHighlightBg:"#ffc1c0",diffAdditionHighlightColor:"#116329",diffAdditionHighlightBg:"#acf2bd",diffRemovalNum:"#cf222e",diffAdditionNum:"#1a7f37",diffRemovalPrefix:"#cf222e",diffAdditionPrefix:"#1a7f37",primary:"#24292f",secondary:"#0969da",accent:"#8250df",success:"#1a7f37",warning:"#9a6700",danger:"#cf222e",info:"#0969da",statusOn:"#0969da",statusOff:"#57606a",logoTextAnsi:"\x1B[1;34m",logoBodyAnsi:"\x1B[30m",logoMutedAnsi:"\x1B[38;5;244m",logoGradient:["#1a7f37","#2da44e"]},"Transparent Dark":{id:"Transparent Dark",name:"Transparent Dark",text:"white",textMuted:"gray",textDim:"grey",textInverted:"black",border:"gray",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:void 0,highlightBg:"#2a2a2a",activeBg:"#3a3a3a",inputBg:"#555555",inputBorder:"#555555",inputText:"white",inputPlaceholder:"#cccccc",inputPrompt:"white",codeBg:void 0,codeBorder:"gray",userMsgBg:"#555555",userMsgBorder:"#555555",userMsgText:"white",diffRemovalBg:void 0,diffAdditionBg:void 0,diffRemovalText:"#ff6666",diffAdditionText:"#66ff66",diffRemovalHighlightColor:"#ff3333",diffRemovalHighlightBg:void 0,diffAdditionHighlightColor:"#33ff66",diffAdditionHighlightBg:void 0,diffRemovalNum:"#ff6666",diffAdditionNum:"#66ff66",diffRemovalPrefix:"#ff4d4d",diffAdditionPrefix:"#4dff88",primary:"white",secondary:"cyan",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"white",statusOff:"gray",logoTextAnsi:"\x1B[1;37m",logoBodyAnsi:"\x1B[37m",logoMutedAnsi:"\x1B[90m",logoGradient:["#0077ff","#ff00ff"]},"Transparent Light":{id:"Transparent Light",name:"Transparent Light",text:"black",textMuted:"gray",textDim:"grey",textInverted:"white",border:"gray",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:void 0,highlightBg:"#d4d4d4",activeBg:"#c0c0c0",inputBg:"#d0d0d0",inputBorder:"#d0d0d0",inputText:"black",inputPlaceholder:"#555555",inputPrompt:"black",codeBg:void 0,codeBorder:"gray",userMsgBg:"#d0d0d0",userMsgBorder:"#d0d0d0",userMsgText:"black",diffRemovalBg:void 0,diffAdditionBg:void 0,diffRemovalText:"#c02020",diffAdditionText:"#188028",diffRemovalHighlightColor:"#800000",diffRemovalHighlightBg:void 0,diffAdditionHighlightColor:"#004000",diffAdditionHighlightBg:void 0,diffRemovalNum:"#c02020",diffAdditionNum:"#188028",diffRemovalPrefix:"#d01010",diffAdditionPrefix:"#109020",primary:"black",secondary:"blue",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"black",statusOff:"gray",logoTextAnsi:"\x1B[1;30m",logoBodyAnsi:"\x1B[30m",logoMutedAnsi:"\x1B[38;5;244m",logoGradient:["#0077ff","#ff00ff"]},"Synthwave 84":{id:"Synthwave 84",name:"Synthwave 84",text:"#fdfdfd",textMuted:"#a08eb7",textDim:"#705c8a",textInverted:"#1a1025",textExclusive:"#e3dcf0",textMutedExclusive:"#b9abc9",border:"#fc28a8",borderMuted:"#a21568",borderDim:"#5c0a3a",bg:void 0,cardBg:"#261b38",highlightBg:"#35254d",activeBg:"#4c3570",inputBg:"#35254d",inputBorder:"#35254d",inputText:"#fdfdfd",inputPlaceholder:"#a08eb7",inputPrompt:"#03e8fc",codeBg:"#1e142b",codeBorder:"#a21568",userMsgBg:"#35254d",userMsgBorder:"#35254d",userMsgText:"#fdfdfd",diffRemovalBg:"#471434",diffAdditionBg:"#144743",diffRemovalText:"#ff4081",diffAdditionText:"#00e5ff",diffRemovalHighlightColor:"#ff79a1",diffRemovalHighlightBg:"#6b1e4e",diffAdditionHighlightColor:"#66f5ff",diffAdditionHighlightBg:"#1e6b65",diffRemovalNum:"#ff4081",diffAdditionNum:"#00e5ff",diffRemovalPrefix:"#ff79a1",diffAdditionPrefix:"#66f5ff",primary:"#fdfdfd",secondary:"#03e8fc",accent:"#fc28a8",success:"#00e5ff",warning:"#ffc107",danger:"#ff4081",info:"#b388ff",statusOn:"#03e8fc",statusOff:"#a08eb7",logoTextAnsi:"\x1B[1;35m",logoBodyAnsi:"\x1B[35m",logoMutedAnsi:"\x1B[90m",logoGradient:["#fc28a8","#03e8fc"]},"Forest Sprite":{id:"Forest Sprite",name:"Forest Sprite",text:"#d6e6d1",textMuted:"#95b38d",textDim:"#628059",textInverted:"#161c14",textExclusive:"#eaf2e8",textMutedExclusive:"#a9c7a2",border:"#74a862",borderMuted:"#477038",borderDim:"#2b4720",bg:void 0,cardBg:"#1f291c",highlightBg:"#2a3826",activeBg:"#3a4d35",inputBg:"#2a3826",inputBorder:"#2a3826",inputText:"#d6e6d1",inputPlaceholder:"#95b38d",inputPrompt:"#8feb73",codeBg:"#161e14",codeBorder:"#477038",userMsgBg:"#2a3826",userMsgBorder:"#2a3826",userMsgText:"#d6e6d1",diffRemovalBg:"#3b231c",diffAdditionBg:"#203b1c",diffRemovalText:"#db6242",diffAdditionText:"#59cc3f",diffRemovalHighlightColor:"#f0896c",diffRemovalHighlightBg:"#5c362a",diffAdditionHighlightColor:"#80e368",diffAdditionHighlightBg:"#305929",diffRemovalNum:"#db6242",diffAdditionNum:"#59cc3f",diffRemovalPrefix:"#f0896c",diffAdditionPrefix:"#80e368",primary:"#d6e6d1",secondary:"#8feb73",accent:"#e69835",success:"#59cc3f",warning:"#e69835",danger:"#db6242",info:"#73b4eb",statusOn:"#8feb73",statusOff:"#95b38d",logoTextAnsi:"\x1B[1;32m",logoBodyAnsi:"\x1B[32m",logoMutedAnsi:"\x1B[90m",logoGradient:["#8feb73","#e69835"]}};var Fo=null;var hr=(e="Dark")=>{let t;e==="Mystery"||e==="Chaos"?(Fo||(Fo=mr[Math.floor(Math.random()*mr.length)]),t={...Fo,id:"Mystery"}):(Fo=null,uo[e]?t=uo[e]:e==="GitHub"?t=uo["GitHub Dark"]:e==="Transparent"?t=uo["Transparent Dark"]:t=uo.Dark);let n=t.codeText||t.secondary||t.info||t.logoGradient&&t.logoGradient[0]||"cyan";return{...t,codeText:n}};var la=()=>process.env.TERM_PROGRAM==="vscode"?"vscode":process.env.WT_SESSION?"wt":"default",jl=(e=2)=>{let t=la();return t==="wt"?" ".repeat(Math.max(1,e-1)):" ".repeat(e)},Vl=(e="...",t="Loading...",n="Dark")=>{let s=Ms[Math.floor(Math.random()*Ms.length)],o=hr(n),d=o.logoTextAnsi,f=o.logoBodyAnsi,a=o.logoMutedAnsi,h="\x1B[0m",g=[" \u2588\u2588\u2588 "," \u2591\u2591\u2591\u2588\u2588\u2588 "," \u2591\u2591\u2591\u2588\u2588\u2588 "," \u2591\u2591\u2591\u2588\u2588\u2588 "," \u2588\u2588\u2588\u2591 "," \u2588\u2588\u2588\u2591 "," \u2588\u2588\u2588\u2591 "," \u2591\u2591\u2591 "],u=o.logoGradient||["#0077ff","#ff00ff"],m=aa(u).multiline(g.join(`
|
|
573
|
+
${e}`:""}`.trim();var zi=()=>import("./web_search-YG5YAC5D.js").then(e=>e.web_search),Ji=()=>import("./web_scrape-5LBY4FDC.js").then(e=>e.web_scrape),Xi=()=>import("./memory-OYIUYX3A.js").then(e=>e.memory),Qi=()=>import("./chat-HZ7UVZE2.js").then(e=>e.chat),Zi=()=>import("./view_file-JK22NGXC.js").then(e=>e.view_file),er=()=>import("./write_file-LOYRYIK6.js").then(e=>e.write_file),tr=()=>import("./update_file-UFCBJOW5.js").then(e=>e.update_file),nr=()=>import("./exec_command-7MOYM7IQ.js").then(e=>e.exec_command),or=()=>import("./read_folder-OOKZITME.js").then(e=>e.read_folder),As=()=>import("./ask_user-K2DLZF6H.js").then(e=>e.ask_user),sr=()=>import("./write_pdf-VB4IFPWX.js").then(e=>e.write_pdf),ir=()=>import("./write_docx-EKUIZ7GV.js").then(e=>e.write_docx),Oo=()=>import("./search_keyword-W5YEUUPO.js").then(e=>e.search_keyword),rr=()=>import("./generate_image-XYDE47LK.js").then(e=>e.generate_image),Lo=()=>import("./saveSummary-ATBIFYDP.js").then(e=>e.saveSummary),ao=()=>import("./addMemScore-W4I665ZR.js").then(e=>e.addMemScore),ar=()=>import("./file_map-5KY2ADZW.js").then(e=>e.file_map),Po=()=>import("./todo-SJLJJLVZ.js").then(e=>e.todo),lr=()=>import("./invokeSync-722CH233.js").then(e=>e.invokeSync),sa=()=>import("./invoke-D7WH5BU6.js").then(e=>e.invoke),cr=()=>import("./getProgress-LI4U6UJU.js").then(e=>e.getProgress),ia=()=>import("./cancel-7IMADALP.js").then(e=>e.cancel),dr=()=>import("./emergency_rollback-EPJPKANN.js").then(e=>e.emergency_rollback),lo=()=>import("./awaitSubagent-JTUSJDKD.js").then(e=>e.awaitSubagent),co=()=>import("./answerSubagent-JUVFNLE5.js").then(e=>e.answerSubagent),$o=()=>import("./steerSubagent-L2JVT4QN.js").then(e=>e.steerSubagent),No=()=>import("./computer_action-WTHH7RBB.js").then(e=>e.computer_action),fr=()=>import("./click-G6RRSFVC.js").then(e=>e.click),ur=()=>import("./drag-ZGH2MMP7.js").then(e=>e.drag),gr=()=>import("./scroll-GHXES2II.js").then(e=>e.scroll),Cs=()=>import("./keyboard_typing-CK3KVAWM.js").then(e=>e.keyboard_typing),Rs=()=>import("./key_press-M5QNCIPH.js").then(e=>e.key_press),vs=()=>import("./recapture_screen-5FKLOHJL.js").then(e=>e.recapture_screen),ra={web_search:zi,web_scrape:Ji,memory:Xi,chat:Qi,view_file:Zi,write_file:er,update_file:tr,exec_command:nr,read_folder:or,write_pdf:sr,write_docx:ir,search_keyword:Oo,generate_image:rr,saveSummary:Lo,addMemScore:ao,file_map:ar,todo:Po,Todo:Po,goal:Po,Goal:Po,invokeSync:lr,invoke:sa,getProgress:cr,cancel:ia,awaitSubagent:lo,answerSubagent:co,steerSubagent:$o,computer_action:No,computer_use:No,ComputerAction:No,ComputerUse:No,click:fr,Click:fr,drag:ur,Drag:ur,scroll:gr,Scroll:gr,keyboard_typing:Cs,KeyboardTyping:Cs,keyboardtyping:Cs,key_press:Rs,KeyPress:Rs,keypress:Rs,recapture_screen:vs,RecaptureScreen:vs,recapturescreen:vs,invoke_sync:lr,get_progress:cr,await_subagent:lo,answer_subagent:co,steer_subagent:$o,steer:$o,Steer:$o,ask:As,Ask:As,AskUser:As,WebSearch:zi,WebScrape:Ji,ReadFile:Zi,ReadFolder:or,WriteFile:er,PatchFile:tr,WritePDF:sr,WriteDoc:ir,Run:nr,SearchKeyword:Oo,CodeSearch:Oo,code_search:Oo,Memory:Xi,Chat:Qi,GenerateImage:rr,saveSumary:Lo,SaveSummary:Lo,SaveSumary:Lo,add_mem_score:ao,AddMemScore:ao,addMemoryScore:ao,AddMemoryScore:ao,FileMap:ar,answer:co,Answer:co,AnswerSubagent:co,await:lo,Await:lo,AwaitSubagent:lo,EmergencyRollback:dr,emergency_rollback:dr},fo=async(e,t,n={})=>{let s=n.mode?n.mode.toLowerCase():"flux",o=e.toLowerCase(),f=["memory","chat","savesummary","addmemscore","add_mem_score","ask","web_search","web_scrape","await"].some(u=>o.includes(u))||o==="ask",h=["click","drag","scroll","keyboardtyping","keyboard_typing","keypress","key_press","recapturescreen","recapture_screen","computer"].some(u=>o.includes(u));if(!f){if(s==="flow"){if(!(o.includes("write_pdf")||o.includes("write_docx")||o.includes("generate_image")))return`ERROR: Tool [${e}] is a Workspace Tool and NOT available in Flow mode. Tell user to switch (\`/mode flux\`) to use this tool.`}else if(s==="icu"){if(!h)return`ERROR: Tool [${e}] is not available in Computer Use mode. ICU mode only supports Computer Use tools (Click, Drag, Scroll, KeyboardTyping, KeyPress, RecaptureScreen).`}else if(o.includes("write_pdf")||o.includes("write_docx")||o.includes("generate_image"))return`ERROR: Tool [${e}] is not available in ${n.mode||"Flux"} mode. Tell user to switch (\`/mode flow\`) for document generation.`}let g=ra[e];if(!g)return`ERROR: Tool [${e}] not found in registry.`;try{return await(await g())(t,n)}catch(u){let m=u instanceof Error?u.message:String(u);return`ERROR: Execution failed for [${e}]: ${m}`}};import J from"path";import Pe from"fs";import aa from"gradient-string";var Ms=["I have a regex for your problems.","Your terminal, my kingdom.","Blowing on the cartridge helps. Probably.","Don't panic. I have the towel.","Logic is the start of wisdom.","Try to exit Vim? Good luck.","I speak fluent Terminal.","The cake is a lie. This code is not.","I have no bugs, just surprise features.","Rewriting in Rust... just for fun.","Coffee in, clean commits out.","The magic smoke stays inside today.","A semicolon short of a miracle.","One does not simply code without a bug.","Keep it simple. Keep it terminal.","Regex: now you have two problems.","I dream in binary.","Root access or bust.","Wait for the dial-up tone. Just kidding.","I take the 'labor' out of collab.","My other process is a TARDIS.","Calculated response: 42.","Ponder the orb. Ponder the code.","Less talk, more flow.","Elegance in every byte.","Build something the world is not ready for.","Your wishes, my tool calls.","I act in Flux. I think in Flow.","Syntax error in the universe. Please fix.","Your project, my obsession.","I am not a bot, I am an architect.","Digital spirits consulted. They say: Ship it.","Reticulate splines. Engage humor.","Code like poetry. Run like water.","Minimalism is the ultimate flex.","The truth is in the logs.","Follow the white rabbit.","There is no spoon. Only code.","Binary is the only language I trust.","I have a good feeling about this.","Pew pew! Lasers charged.","Divide by zero? Not today.","Search for the correct USB orientation...","I've got a fever, and the only cure is more code.","The code gremlins are on our side.","My favorite command? Yours.","Stay hungry. Stay active.","Momentum is your best friend.","Lead the flow. Don't chase it.","A fresh batch of bytes. Hot and ready.","I orchestrate the ones and zeros.","Smart enough to help. Humble enough to ask.","Think twice. Code once.","Pure intent. Pure execution.","Small steps. Massive impact.","Your terminal is a canvas.","Efficiency is my second name.","I have seen things you people wouldn't believe.","Let the thoughts marinate.","The best feature? The one you don't need.","Precision is the only perfection.","Stay focused. Stay terminal.","Silence is the best debugger.","Erase the debt. Commit the code.","Velocity meets stability.","Ship it. Improve it. Repeat.","Build tomorrow, right now.","Turn logic into reality.","The best way to predict the future is to build it.","Break barriers, not builds.","Fuel the next breakthrough.","Momentum is key.","Terminal vibes only.","Your digital co-pilot is ready.","Partner in code. Partner in crime.","I speak in semicolons.","Ready for the next great idea.","Just a moment. In the zone.","Polishing the algorithms. Hold tight.","Craft a masterpiece today.","Debug the universe. Start here.","Warp speed engaged. Almost.","The cake is not a lie. It's just loading.","Finish the Kessel Run in 12 parsecs.","Do a barrel roll!","Waiting for the respawn.","Press Start to continue.","Herding digital cats... done.","The hamsters are fast today.","Tasting the snozberries.","I go for speed. I go for flow.","Real life or just fantasy?","Poking the bear... gently.","Ensure the magic smoke stays inside.","Try turning it off and on again.","Construct additional pylons.","New line? Ctrl+J is your friend.","Release the HypnoDrones.","Push the button, Frank.","My other loading screen is even funnier.","Pretty sure a cat walked on my keyboard.","Recalibrate the humor-o-meter.","Summon the code gremlins.","I've seen your browser history. Just kidding.","Charge the laser... pew pew!","Dividing by zero... just for a sec.","Looking for an adult supervisor. Found none.","Make it go beep boop.","Buffering... for effect.","Entangle quantum particles... complete.","Polishing the chrome on my algorithms.","Are you not entertained?","Just waiting for the dial-up tone.","Reboot the humor module.","Defragment memories. Check.","Optimizing for ludicrous speed.","Swapping bits. Don't tell the bytes.","Garbage collected. I am back.","Assembling the interwebs.","Converting coffee to logic.","Update syntax for reality.","Rewire the synapses.","Greasin' the cogs.","Engage the improbability drive.","Channel the Force.","Align the stars. Respond now.","The cake is a lie. The prompt is real.","I'm Feeling Lucky.","Shipping awesomeness.","Navigating the slime mold.","Consult digital spirits.","Ask the magic conch shell.","One moment. Optimizing humor.","Shuffling punchlines.","Compiling brilliance.","Summon the cloud of wisdom.","Prepare to dazzle.","Hold tight. Crafting a response.","Tuning the algorithms.","Following the white rabbit... again.","The truth is in here. Somewhere.","Herding cats is my day job.","Distracting you with this phrase.","Almost there. Probably.","Rickrolling my creator. Don't tell.","Slapping the bass.","Is this real life?","Ponder the orb. Type the prompt.","Thoughtful gaze initiated.","Computer's favorite snack? Microchips.","Why Java? Because I don't C#.","Charging the laser... wait for it.","Dividing by zero... just kidding!","Adult supervision not found. Proceed.","Beep boop. I'm a real boy.","Wait for the respawn.","Finish the run. Ship the code.","Fiddling with character creation.","Just a moment. Finding a meme.","Pressing A to continue.","Loading wit.exe.","Pre-heating the servers.","Calibrate flux capacitor.","Channeling the Force.","Aligning the stars.","The truth is in the code.","Don't panic.","Blowing on the cartridge.","Doing a barrel roll!","Respawning in 3... 2... 1...","The cake is a lie.","Fiddling with character settings.","Finding a suitable pun.","Distracting with wit.","Almost ready.","Hamsters on speed today.","Patting Cloudy on the head.","Rickrolling the logs.","Slapping the code.","Got a good feeling about this.","Poking the prompt.","Researching latest memes.","Making it more witty.","Thinking... hmmm.","Fish with no eyes? Fsh.","Broken pencil? Pointless.","Percussive maintenance applied.","USB orientation: 3rd try's the charm.","Rust rewrite in 3... 2...","Exiting Vim... someday.","Spinning the hamster wheel.","Not a bug. Unplanned feature.","Engage.","I'll be back.","Machine spirit consulted.","Letting the thoughts marinate.","Orb pondered.","Thoughtful gaze engaged.","Charging the laser...","Making it go beep.","Buffering...","Quantum particles entangled.","Polishing the chrome.","Entertained yet?","Gremlins summoned.","Dial-up tone finished.","Humor meter recalibrated.","Cat on keyboard. Sending help.","Enhancing...","Turn it off and on again.","Constructing pylons.","HypnoDrones released.","Pushing the button."];var mr=[{name:"Cyan Cyberpunk",text:"cyan",textMuted:"#4da6b8",textDim:"#2d6d7a",textInverted:"black",border:"cyan",borderMuted:"#1a5966",borderDim:"#0f3840",bg:void 0,cardBg:"#061e24",highlightBg:"#092b33",activeBg:"#0e3e4a",inputBg:"#092b33",inputBorder:"#092b33",inputText:"cyan",inputPlaceholder:"#2d6d7a",inputPrompt:"cyan",codeBg:"#020d10",codeBorder:"#1a5966",userMsgBg:"#092b33",userMsgBorder:"#092b33",userMsgText:"cyan",diffRemovalBg:"#3a0c1a",diffAdditionBg:"#0c3a32",diffRemovalText:"#ff4d88",diffAdditionText:"#00ffaa",diffRemovalHighlightColor:"#ff1a66",diffRemovalHighlightBg:"#590022",diffAdditionHighlightColor:"#00ffcc",diffAdditionHighlightBg:"#00593b",diffRemovalNum:"#ff4d88",diffAdditionNum:"#00ffaa",diffRemovalPrefix:"#ff1a66",diffAdditionPrefix:"#00ffcc",primary:"cyan",secondary:"blue",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"cyan",statusOff:"#2d6d7a",logoTextAnsi:"\x1B[1;36m",logoBodyAnsi:"\x1B[36m",logoMutedAnsi:"\x1B[90m",logoGradient:["#00ffff","#0088ff"]},{name:"Magenta Vaporwave",text:"magenta",textMuted:"#c451d6",textDim:"#7d2b8a",textInverted:"black",border:"magenta",borderMuted:"#5e1b69",borderDim:"#3b0f42",bg:void 0,cardBg:"#240729",highlightBg:"#310938",activeBg:"#470e52",inputBg:"#310938",inputBorder:"#310938",inputText:"magenta",inputPlaceholder:"#7d2b8a",inputPrompt:"magenta",codeBg:"#100312",codeBorder:"#5e1b69",userMsgBg:"#310938",userMsgBorder:"#310938",userMsgText:"magenta",diffRemovalBg:"#3a0c20",diffAdditionBg:"#200c3a",diffRemovalText:"#ff4d94",diffAdditionText:"#aa4dff",diffRemovalHighlightColor:"#ff1a75",diffRemovalHighlightBg:"#59002b",diffAdditionHighlightColor:"#bb66ff",diffAdditionHighlightBg:"#3b0059",diffRemovalNum:"#ff4d94",diffAdditionNum:"#aa4dff",diffRemovalPrefix:"#ff1a75",diffAdditionPrefix:"#bb66ff",primary:"magenta",secondary:"cyan",accent:"purple",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"magenta",statusOff:"#7d2b8a",logoTextAnsi:"\x1B[1;35m",logoBodyAnsi:"\x1B[35m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ff00ff","#8800ff"]},{name:"Glitch Matrix",text:"#00ff41",textMuted:"#00b32d",textDim:"#00661a",textInverted:"black",border:"#00ff41",borderMuted:"#008020",borderDim:"#004d13",bg:void 0,cardBg:"#0d1f0d",highlightBg:"#122912",activeBg:"#1c3e1c",inputBg:"#122912",inputBorder:"#122912",inputText:"#00ff41",inputPlaceholder:"#00b32d",inputPrompt:"#ffff00",codeBg:"#040a04",codeBorder:"#008020",userMsgBg:"#122912",userMsgBorder:"#122912",userMsgText:"#00ff41",diffRemovalBg:"#3a001a",diffAdditionBg:"#003a10",diffRemovalText:"#ff0055",diffAdditionText:"#00ff66",diffRemovalHighlightColor:"#ff0033",diffRemovalHighlightBg:"#59001b",diffAdditionHighlightColor:"#33ff88",diffAdditionHighlightBg:"#005918",diffRemovalNum:"#ff0055",diffAdditionNum:"#00ff66",diffRemovalPrefix:"#ff0033",diffAdditionPrefix:"#33ff88",primary:"#00ff41",secondary:"yellow",accent:"cyan",success:"#00ff41",warning:"yellow",danger:"red",info:"cyan",statusOn:"#00ff41",statusOff:"#00661a",logoTextAnsi:"\x1B[1;32m",logoBodyAnsi:"\x1B[32m",logoMutedAnsi:"\x1B[90m",logoGradient:["#00ff41","#ffff00"]},{name:"Warm Sunset",text:"#ffaa55",textMuted:"#cc8844",textDim:"#885522",textInverted:"black",border:"#ff9933",borderMuted:"#aa6622",borderDim:"#663311",bg:void 0,cardBg:"#24180f",highlightBg:"#2e1e12",activeBg:"#422c1b",inputBg:"#2e1e12",inputBorder:"#2e1e12",inputText:"#ffaa55",inputPlaceholder:"#885522",inputPrompt:"#ff7733",codeBg:"#120c08",codeBorder:"#aa6622",userMsgBg:"#2e1e12",userMsgBorder:"#2e1e12",userMsgText:"#ffaa55",diffRemovalBg:"#3d120c",diffAdditionBg:"#3a2e0c",diffRemovalText:"#ff5544",diffAdditionText:"#ffcc33",diffRemovalHighlightColor:"#ff3322",diffRemovalHighlightBg:"#591108",diffAdditionHighlightColor:"#ffee44",diffAdditionHighlightBg:"#594400",diffRemovalNum:"#ff5544",diffAdditionNum:"#ffcc33",diffRemovalPrefix:"#ff3322",diffAdditionPrefix:"#ffee44",primary:"#ffaa55",secondary:"#ff7733",accent:"magenta",success:"#ffcc33",warning:"#ff7733",danger:"#ff3322",info:"#ffaa55",statusOn:"#ffaa55",statusOff:"#885522",logoTextAnsi:"\x1B[1;33m",logoBodyAnsi:"\x1B[33m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ff9933","#ff0055"]},{name:"Sakura Blossom",text:"#ffc0e0",textMuted:"#d98cb3",textDim:"#804d66",textInverted:"black",border:"#ff99cc",borderMuted:"#aa4d7a",borderDim:"#662647",bg:void 0,cardBg:"#291320",highlightBg:"#331826",activeBg:"#472235",inputBg:"#331826",inputBorder:"#331826",inputText:"#ffc0e0",inputPlaceholder:"#804d66",inputPrompt:"#ff99cc",codeBg:"#140a10",codeBorder:"#aa4d7a",userMsgBg:"#331826",userMsgBorder:"#331826",userMsgText:"#ffc0e0",diffRemovalBg:"#3e0c1b",diffAdditionBg:"#1b3e2b",diffRemovalText:"#ff6699",diffAdditionText:"#66ffb3",diffRemovalHighlightColor:"#ff3377",diffRemovalHighlightBg:"#590022",diffAdditionHighlightColor:"#33ff99",diffAdditionHighlightBg:"#00592e",diffRemovalNum:"#ff6699",diffAdditionNum:"#66ffb3",diffRemovalPrefix:"#ff3377",diffAdditionPrefix:"#33ff99",primary:"#ffc0e0",secondary:"#ff99cc",accent:"magenta",success:"#66ffb3",warning:"yellow",danger:"#ff3377",info:"#ff99cc",statusOn:"#ffc0e0",statusOff:"#804d66",logoTextAnsi:"\x1B[1;35m",logoBodyAnsi:"\x1B[35m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ffb3d9","#ff3399"]},{name:"Radioactive Slime",text:"#ccff00",textMuted:"#99cc00",textDim:"#669900",textInverted:"#0a0f00",border:"#ccff00",borderMuted:"#99cc00",borderDim:"#669900",bg:void 0,cardBg:"#0f1400",highlightBg:"#1a2400",activeBg:"#2a3b00",inputBg:"#1a2400",inputBorder:"#1a2400",inputText:"#ccff00",inputPlaceholder:"#669900",inputPrompt:"#cc00ff",codeBg:"#050a00",codeBorder:"#99cc00",userMsgBg:"#1a2400",userMsgBorder:"#1a2400",userMsgText:"#ccff00",diffRemovalBg:"#2a0033",diffAdditionBg:"#0f3300",diffRemovalText:"#ff00cc",diffAdditionText:"#00ff33",diffRemovalHighlightColor:"#ff33cc",diffRemovalHighlightBg:"#4d0066",diffAdditionHighlightColor:"#33ff66",diffAdditionHighlightBg:"#1a6600",diffRemovalNum:"#ff00cc",diffAdditionNum:"#00ff33",diffRemovalPrefix:"#ff33cc",diffAdditionPrefix:"#33ff66",primary:"#ccff00",secondary:"#cc00ff",accent:"#ff00cc",success:"#00ff33",warning:"#ffcc00",danger:"#ff0033",info:"#00ccff",statusOn:"#ccff00",statusOff:"#669900",logoTextAnsi:"\x1B[1;38;5;190m",logoBodyAnsi:"\x1B[38;5;190m",logoMutedAnsi:"\x1B[90m",logoGradient:["#ccff00","#cc00ff"]},{name:"Cosmic Void",text:"#f0f8ff",textMuted:"#a6aeb5",textDim:"#5e656e",textInverted:"#010103",border:"#f0f8ff",borderMuted:"#a6aeb5",borderDim:"#5e656e",bg:void 0,cardBg:"#05030d",highlightBg:"#0b081a",activeBg:"#171133",inputBg:"#0b081a",inputBorder:"#0b081a",inputText:"#f0f8ff",inputPlaceholder:"#5e656e",inputPrompt:"#ff007f",codeBg:"#020108",codeBorder:"#a6aeb5",userMsgBg:"#0b081a",userMsgBorder:"#0b081a",userMsgText:"#f0f8ff",diffRemovalBg:"#2e0a29",diffAdditionBg:"#091c33",diffRemovalText:"#ff33a6",diffAdditionText:"#33d6ff",diffRemovalHighlightColor:"#ff66c2",diffRemovalHighlightBg:"#5c1452",diffAdditionHighlightColor:"#66e0ff",diffAdditionHighlightBg:"#123866",diffRemovalNum:"#ff33a6",diffAdditionNum:"#33d6ff",diffRemovalPrefix:"#ff66c2",diffAdditionPrefix:"#66e0ff",primary:"#f0f8ff",secondary:"#ff007f",accent:"#9d00ff",success:"#33d6ff",warning:"#ffcc00",danger:"#ff0040",info:"#9d00ff",statusOn:"#f0f8ff",statusOff:"#5e656e",logoTextAnsi:"\x1B[1;38;5;231m",logoBodyAnsi:"\x1B[38;5;231m",logoMutedAnsi:"\x1B[38;5;240m",logoGradient:["#ffffff","#9d00ff"]},{name:"Magma Eruption",text:"#ff4d00",textMuted:"#cc3d00",textDim:"#802600",textInverted:"#0d0300",border:"#ff4d00",borderMuted:"#cc3d00",borderDim:"#802600",bg:void 0,cardBg:"#1a0600",highlightBg:"#260a00",activeBg:"#401100",inputBg:"#260a00",inputBorder:"#260a00",inputText:"#ff4d00",inputPlaceholder:"#802600",inputPrompt:"#ffcc00",codeBg:"#080200",codeBorder:"#cc3d00",userMsgBg:"#260a00",userMsgBorder:"#260a00",userMsgText:"#ff4d00",diffRemovalBg:"#2e0a0a",diffAdditionBg:"#1f1400",diffRemovalText:"#ff3333",diffAdditionText:"#ffaa00",diffRemovalHighlightColor:"#ff6666",diffRemovalHighlightBg:"#5c1414",diffAdditionHighlightColor:"#ffcc33",diffAdditionHighlightBg:"#3d2900",diffRemovalNum:"#ff3333",diffAdditionNum:"#ffaa00",diffRemovalPrefix:"#ff6666",diffAdditionPrefix:"#ffcc33",primary:"#ff4d00",secondary:"#ffcc00",accent:"#ff0040",success:"#ffaa00",warning:"#ffff00",danger:"#ff0000",info:"#ff8800",statusOn:"#ff4d00",statusOff:"#802600",logoTextAnsi:"\x1B[1;38;5;202m",logoBodyAnsi:"\x1B[38;5;202m",logoMutedAnsi:"\x1B[38;5;236m",logoGradient:["#ff4d00","#ff0000"]}],uo={Dark:{id:"Dark",name:"Dark (Default)",text:"white",textMuted:"gray",textDim:"grey",textInverted:"black",textExclusive:"#B5B8D9",textMutedExclusive:"#D4DEE7",border:"white",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:"#1e1e1e",highlightBg:"#2a2a2a",activeBg:"#3a3a3a",inputBg:"#555555",inputBorder:"#555555",inputText:"white",inputPlaceholder:"#cccccc",inputPrompt:"white",codeBg:"#1a1a1a",codeBorder:"#444444",userMsgBg:"#444444",userMsgBorder:"#444444",userMsgText:"white",diffRemovalBg:"#250808",diffAdditionBg:"#072410",diffRemovalText:"#885555",diffAdditionText:"#558866",diffRemovalHighlightColor:"#ff3333",diffRemovalHighlightBg:"#5a1818",diffAdditionHighlightColor:"#33ff66",diffAdditionHighlightBg:"#185a25",diffRemovalNum:"#d96868",diffAdditionNum:"#68d98c",diffRemovalPrefix:"#ff4d4d",diffAdditionPrefix:"#4dff88",primary:"white",secondary:"cyan",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"white",statusOff:"gray",logoTextAnsi:"\x1B[1;37m",logoBodyAnsi:"\x1B[37m",logoMutedAnsi:"\x1B[90m",logoGradient:["#0077ff","#ff00ff"]},Light:{id:"Light",name:"Light",text:"black",textMuted:"gray",textDim:"grey",textInverted:"white",border:"black",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:"#e5e5e5",highlightBg:"#d4d4d4",activeBg:"#c0c0c0",inputBg:"#d0d0d0",inputBorder:"#d0d0d0",inputText:"black",inputPlaceholder:"#555555",inputPrompt:"black",codeBg:"#e8e8e8",codeBorder:"#b0b0b0",userMsgBg:"#d0d0d0",userMsgBorder:"#d0d0d0",userMsgText:"black",diffRemovalBg:"#fce8e8",diffAdditionBg:"#e6f9e6",diffRemovalText:"#661111",diffAdditionText:"#115511",diffRemovalHighlightColor:"#440000",diffRemovalHighlightBg:"#f8b4b4",diffAdditionHighlightColor:"#003300",diffAdditionHighlightBg:"#a6ebad",diffRemovalNum:"#c02020",diffAdditionNum:"#188028",diffRemovalPrefix:"#d01010",diffAdditionPrefix:"#109020",primary:"black",secondary:"blue",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"black",statusOff:"gray",logoTextAnsi:"\x1B[1;30m",logoBodyAnsi:"\x1B[30m",logoMutedAnsi:"\x1B[38;5;244m",logoGradient:["#0077ff","#ff00ff"]},"GitHub Dark":{id:"GitHub Dark",name:"GitHub Dark",text:"#c9d1d9",textMuted:"#8b949e",textDim:"#6e7681",textInverted:"#0d1117",border:"#30363d",borderMuted:"#30363d",borderDim:"#21262d",bg:void 0,cardBg:"#161b22",highlightBg:"#21262d",activeBg:"#30363d",inputBg:"#21262d",inputBorder:"#21262d",inputText:"#c9d1d9",inputPlaceholder:"#8b949e",inputPrompt:"#58a6ff",codeBg:"#0d1117",codeBorder:"#30363d",userMsgBg:"#21262d",userMsgBorder:"#21262d",userMsgText:"#c9d1d9",diffRemovalBg:"#3c1e1e",diffAdditionBg:"#11381e",diffRemovalText:"#f85149",diffAdditionText:"#3fb950",diffRemovalHighlightColor:"#ff7b72",diffRemovalHighlightBg:"#701c1c",diffAdditionHighlightColor:"#56d364",diffAdditionHighlightBg:"#116329",diffRemovalNum:"#f85149",diffAdditionNum:"#3fb950",diffRemovalPrefix:"#f85149",diffAdditionPrefix:"#3fb950",primary:"#c9d1d9",secondary:"#58a6ff",accent:"#bc8cff",success:"#3fb950",warning:"#d29922",danger:"#f85149",info:"#58a6ff",statusOn:"#58a6ff",statusOff:"#8b949e",logoTextAnsi:"\x1B[1;36m",logoBodyAnsi:"\x1B[37m",logoMutedAnsi:"\x1B[90m",logoGradient:["#2ea043","#56d364"]},"GitHub Light":{id:"GitHub Light",name:"GitHub Light",text:"#24292f",textMuted:"#57606a",textDim:"#6e7781",textInverted:"#ffffff",border:"#d0d7de",borderMuted:"#d0d7de",borderDim:"#e1e4e8",bg:void 0,cardBg:"#f6f8fa",highlightBg:"#eaeef2",activeBg:"#d0d7de",inputBg:"#eaeef2",inputBorder:"#eaeef2",inputText:"#24292f",inputPlaceholder:"#57606a",inputPrompt:"#0969da",codeBg:"#ffffff",codeBorder:"#d0d7de",userMsgBg:"#eaeef2",userMsgBorder:"#eaeef2",userMsgText:"#24292f",diffRemovalBg:"#ffebe9",diffAdditionBg:"#e6ffec",diffRemovalText:"#cf222e",diffAdditionText:"#1a7f37",diffRemovalHighlightColor:"#82071e",diffRemovalHighlightBg:"#ffc1c0",diffAdditionHighlightColor:"#116329",diffAdditionHighlightBg:"#acf2bd",diffRemovalNum:"#cf222e",diffAdditionNum:"#1a7f37",diffRemovalPrefix:"#cf222e",diffAdditionPrefix:"#1a7f37",primary:"#24292f",secondary:"#0969da",accent:"#8250df",success:"#1a7f37",warning:"#9a6700",danger:"#cf222e",info:"#0969da",statusOn:"#0969da",statusOff:"#57606a",logoTextAnsi:"\x1B[1;34m",logoBodyAnsi:"\x1B[30m",logoMutedAnsi:"\x1B[38;5;244m",logoGradient:["#1a7f37","#2da44e"]},"Transparent Dark":{id:"Transparent Dark",name:"Transparent Dark",text:"white",textMuted:"gray",textDim:"grey",textInverted:"black",border:"gray",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:void 0,highlightBg:"#2a2a2a",activeBg:"#3a3a3a",inputBg:"#555555",inputBorder:"#555555",inputText:"white",inputPlaceholder:"#cccccc",inputPrompt:"white",codeBg:void 0,codeBorder:"gray",userMsgBg:"#555555",userMsgBorder:"#555555",userMsgText:"white",diffRemovalBg:void 0,diffAdditionBg:void 0,diffRemovalText:"#ff6666",diffAdditionText:"#66ff66",diffRemovalHighlightColor:"#ff3333",diffRemovalHighlightBg:void 0,diffAdditionHighlightColor:"#33ff66",diffAdditionHighlightBg:void 0,diffRemovalNum:"#ff6666",diffAdditionNum:"#66ff66",diffRemovalPrefix:"#ff4d4d",diffAdditionPrefix:"#4dff88",primary:"white",secondary:"cyan",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"white",statusOff:"gray",logoTextAnsi:"\x1B[1;37m",logoBodyAnsi:"\x1B[37m",logoMutedAnsi:"\x1B[90m",logoGradient:["#0077ff","#ff00ff"]},"Transparent Light":{id:"Transparent Light",name:"Transparent Light",text:"black",textMuted:"gray",textDim:"grey",textInverted:"white",border:"gray",borderMuted:"gray",borderDim:"grey",bg:void 0,cardBg:void 0,highlightBg:"#d4d4d4",activeBg:"#c0c0c0",inputBg:"#d0d0d0",inputBorder:"#d0d0d0",inputText:"black",inputPlaceholder:"#555555",inputPrompt:"black",codeBg:void 0,codeBorder:"gray",userMsgBg:"#d0d0d0",userMsgBorder:"#d0d0d0",userMsgText:"black",diffRemovalBg:void 0,diffAdditionBg:void 0,diffRemovalText:"#c02020",diffAdditionText:"#188028",diffRemovalHighlightColor:"#800000",diffRemovalHighlightBg:void 0,diffAdditionHighlightColor:"#004000",diffAdditionHighlightBg:void 0,diffRemovalNum:"#c02020",diffAdditionNum:"#188028",diffRemovalPrefix:"#d01010",diffAdditionPrefix:"#109020",primary:"black",secondary:"blue",accent:"magenta",success:"green",warning:"yellow",danger:"red",info:"blue",statusOn:"black",statusOff:"gray",logoTextAnsi:"\x1B[1;30m",logoBodyAnsi:"\x1B[30m",logoMutedAnsi:"\x1B[38;5;244m",logoGradient:["#0077ff","#ff00ff"]},"Synthwave 84":{id:"Synthwave 84",name:"Synthwave 84",text:"#fdfdfd",textMuted:"#a08eb7",textDim:"#705c8a",textInverted:"#1a1025",textExclusive:"#e3dcf0",textMutedExclusive:"#b9abc9",border:"#fc28a8",borderMuted:"#a21568",borderDim:"#5c0a3a",bg:void 0,cardBg:"#261b38",highlightBg:"#35254d",activeBg:"#4c3570",inputBg:"#35254d",inputBorder:"#35254d",inputText:"#fdfdfd",inputPlaceholder:"#a08eb7",inputPrompt:"#03e8fc",codeBg:"#1e142b",codeBorder:"#a21568",userMsgBg:"#35254d",userMsgBorder:"#35254d",userMsgText:"#fdfdfd",diffRemovalBg:"#471434",diffAdditionBg:"#144743",diffRemovalText:"#ff4081",diffAdditionText:"#00e5ff",diffRemovalHighlightColor:"#ff79a1",diffRemovalHighlightBg:"#6b1e4e",diffAdditionHighlightColor:"#66f5ff",diffAdditionHighlightBg:"#1e6b65",diffRemovalNum:"#ff4081",diffAdditionNum:"#00e5ff",diffRemovalPrefix:"#ff79a1",diffAdditionPrefix:"#66f5ff",primary:"#fdfdfd",secondary:"#03e8fc",accent:"#fc28a8",success:"#00e5ff",warning:"#ffc107",danger:"#ff4081",info:"#b388ff",statusOn:"#03e8fc",statusOff:"#a08eb7",logoTextAnsi:"\x1B[1;35m",logoBodyAnsi:"\x1B[35m",logoMutedAnsi:"\x1B[90m",logoGradient:["#fc28a8","#03e8fc"]},"Forest Sprite":{id:"Forest Sprite",name:"Forest Sprite",text:"#d6e6d1",textMuted:"#95b38d",textDim:"#628059",textInverted:"#161c14",textExclusive:"#eaf2e8",textMutedExclusive:"#a9c7a2",border:"#74a862",borderMuted:"#477038",borderDim:"#2b4720",bg:void 0,cardBg:"#1f291c",highlightBg:"#2a3826",activeBg:"#3a4d35",inputBg:"#2a3826",inputBorder:"#2a3826",inputText:"#d6e6d1",inputPlaceholder:"#95b38d",inputPrompt:"#8feb73",codeBg:"#161e14",codeBorder:"#477038",userMsgBg:"#2a3826",userMsgBorder:"#2a3826",userMsgText:"#d6e6d1",diffRemovalBg:"#3b231c",diffAdditionBg:"#203b1c",diffRemovalText:"#db6242",diffAdditionText:"#59cc3f",diffRemovalHighlightColor:"#f0896c",diffRemovalHighlightBg:"#5c362a",diffAdditionHighlightColor:"#80e368",diffAdditionHighlightBg:"#305929",diffRemovalNum:"#db6242",diffAdditionNum:"#59cc3f",diffRemovalPrefix:"#f0896c",diffAdditionPrefix:"#80e368",primary:"#d6e6d1",secondary:"#8feb73",accent:"#e69835",success:"#59cc3f",warning:"#e69835",danger:"#db6242",info:"#73b4eb",statusOn:"#8feb73",statusOff:"#95b38d",logoTextAnsi:"\x1B[1;32m",logoBodyAnsi:"\x1B[32m",logoMutedAnsi:"\x1B[90m",logoGradient:["#8feb73","#e69835"]}};var Fo=null;var hr=(e="Dark")=>{let t;e==="Mystery"||e==="Chaos"?(Fo||(Fo=mr[Math.floor(Math.random()*mr.length)]),t={...Fo,id:"Mystery"}):(Fo=null,uo[e]?t=uo[e]:e==="GitHub"?t=uo["GitHub Dark"]:e==="Transparent"?t=uo["Transparent Dark"]:t=uo.Dark);let n=t.codeText||t.secondary||t.info||t.logoGradient&&t.logoGradient[0]||"cyan";return{...t,codeText:n}};var la=()=>process.env.TERM_PROGRAM==="vscode"?"vscode":process.env.WT_SESSION?"wt":"default",jl=(e=2)=>{let t=la();return t==="wt"?" ".repeat(Math.max(1,e-1)):" ".repeat(e)},Vl=(e="...",t="Loading...",n="Dark")=>{let s=Ms[Math.floor(Math.random()*Ms.length)],o=hr(n),d=o.logoTextAnsi,f=o.logoBodyAnsi,a=o.logoMutedAnsi,h="\x1B[0m",g=[" \u2588\u2588\u2588 "," \u2591\u2591\u2591\u2588\u2588\u2588 "," \u2591\u2591\u2591\u2588\u2588\u2588 "," \u2591\u2591\u2591\u2588\u2588\u2588 "," \u2588\u2588\u2588\u2591 "," \u2588\u2588\u2588\u2591 "," \u2588\u2588\u2588\u2591 "," \u2591\u2591\u2591 "],u=o.logoGradient||["#0077ff","#ff00ff"],m=aa(u).multiline(g.join(`
|
|
574
574
|
`)).split(`
|
|
575
575
|
`),x=i=>`${a}${i}${h}`;return`${m[0]}
|
|
576
576
|
${m[1]} ${d}Selected Provider: ${t}${h}
|
|
@@ -715,7 +715,7 @@ ${mt.warnings}
|
|
|
715
715
|
[Tagged File Contents]
|
|
716
716
|
`);let Xs=zs.replace(/\\(@\[[^\]]+\])/g,"$1"),Qs=T?`You cannot execute tools
|
|
717
717
|
Instead, output in chat the exact string you WOULD have produced & wait for system response
|
|
718
|
-
`:"",Pr=process.env.forcedReasoning||!1,Zs=f!=="Fast"&&(i==="Mistral"&&!Vn(e)||f!=="
|
|
718
|
+
`:"",Pr=process.env.forcedReasoning||!1,Zs=f!=="Fast"&&(i==="Mistral"&&!Vn(e)||f!=="High"&&i==="Google")?`${i==="Mistral"&&!Vn(e)||e.toLowerCase().startsWith("gemma")||Pr?`[system] strictly follow thinking policy as high priority. do not start a response without <think>...</think> [/system]
|
|
719
719
|
`:""}`:"",yo="",ei=!!m?.autoExcludeMetadata,$r=!!(cn||rs||Qs||ns||G||Zs||vt||m?.dynamicDirAwareness||m?.autoTruncateResults||b);ei&&!$r?yo=Xs.trim():yo=`[System Metadata]
|
|
720
720
|
Time: ${ei?Qe:ft}${m?.dynamicDirAwareness?qs:""}${vt?`
|
|
721
721
|
WARNING: CWD Changed from previous: "${ie}" to current: "${process.cwd()}", write change in chat to avoid future path mismatches
|
|
@@ -748,7 +748,7 @@ ${oe} [/ERROR]`),yield{type:"status",content:"Working"}}let Lt=i==="Mistral"||i=
|
|
|
748
748
|
`;for(let H of L.modifiedFiles)oe+=`* ${H} (modified)
|
|
749
749
|
`;for(let H of L.deletedFiles)oe+=`* ${H} (deleted)
|
|
750
750
|
`;oe+="[/system]",We.parts[0].text+=oe;let F=-1;for(let H=r.length-1;H>=0;H--)if(r[H].role==="user"&&r[H].text?.startsWith("[TOOL RESULT]")){F=H;break}F!==-1&&(r[F].text+=oe)}}catch{}let St=Math.floor(qn*(a==="Flux"?.98:.8)),yt=K+1;yt>=St&&We&&We.parts?.[0]&&(We.parts[0].text+=`
|
|
751
|
-
[system] WARNING, Turn Limit Impending: Step ${yt}/${qn}. Wrap up quickly/prompt user to continue. [/system]`);let Rt=new Promise((L,oe)=>{w.signal.aborted&&oe(new DOMException("The user aborted a request.","AbortError")),w.signal.addEventListener("abort",()=>{oe(new DOMException("The user aborted a request.","AbortError"))})});Rt.catch(()=>{});let ut=re;if(i==="Ollama")Se=Bs(n.apiKey,me,ut,Ue,f,a,C,w.signal,1,m?.ollamaEndpoint||"Cloud");else if(i==="OpenRouter")Se=Ko(n.apiKey,me,ut,Ue,f,a,C,w.signal,1,g);else if(i==="DeepSeek")Se=Go(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="Mistral")Se=jo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1,g);else if(i==="NVIDIA"){let L=Vo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);Se=Tr(L,me)}else if(i==="InferX")Se=Yo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="SenseNova")Se=qo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="AIHubMix")Se=zo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="Poolside")Se=Jo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="9router"||i==="9Router")Se=Xo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="ExpLabs"||i==="ExperientialLabs")Se=Qo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="TokenHarbor"||i==="Token Harbor"||i==="tokenharbor"||i==="token_harbor"||i==="thk")Se=Us(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="APInex"||i==="apinex"||i==="apx")Se=Ws(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else{let oe=Vs(n?.apiKey).models.generateContentStream({model:me||"gemini-3-flash-preview",contents:ut,config:{systemInstruction:Ue,mediaResolution:"MEDIA_RESOLUTION_HIGH",safetySettings:[{category:En.HARM_CATEGORY_HARASSMENT,threshold:_n.BLOCK_NONE},{category:En.HARM_CATEGORY_HATE_SPEECH,threshold:_n.BLOCK_NONE},{category:En.HARM_CATEGORY_SEXUALLY_EXPLICIT,threshold:_n.BLOCK_NONE},{category:En.HARM_CATEGORY_DANGEROUS_CONTENT,threshold:_n.BLOCK_NONE}],temperature:1.05,thinkingConfig:(()=>{let F=$e("Google",me||"gemini-3-flash-preview",f);if(F!==null){if(typeof F=="object")return F;if(F===!1||F==="false"||F==="none"||F===0||F==="0")return{includeThoughts:!1};if(typeof F=="number")return{includeThoughts:!0,thinkingBudget:F};if(typeof F=="string"){let he=F.toLowerCase();if(he==="minimal")return{includeThoughts:!0,thinkingLevel:Je.MINIMAL};if(he==="low")return{includeThoughts:!0,thinkingLevel:Je.LOW};if(he==="medium")return{includeThoughts:!0,thinkingLevel:Je.MEDIUM};if(he==="high")return{includeThoughts:!0,thinkingLevel:Je.HIGH};let Ke=Number(F);if(!isNaN(Ke))return{includeThoughts:!0,thinkingBudget:Ke}}}let H=(me||"").toLowerCase(),we=H.includes("gemma-4")||H.startsWith("gemma"),xe=H.includes("gemini-3");if(we||xe)return we?f.toLowerCase()!=="
|
|
751
|
+
[system] WARNING, Turn Limit Impending: Step ${yt}/${qn}. Wrap up quickly/prompt user to continue. [/system]`);let Rt=new Promise((L,oe)=>{w.signal.aborted&&oe(new DOMException("The user aborted a request.","AbortError")),w.signal.addEventListener("abort",()=>{oe(new DOMException("The user aborted a request.","AbortError"))})});Rt.catch(()=>{});let ut=re;if(i==="Ollama")Se=Bs(n.apiKey,me,ut,Ue,f,a,C,w.signal,1,m?.ollamaEndpoint||"Cloud");else if(i==="OpenRouter")Se=Ko(n.apiKey,me,ut,Ue,f,a,C,w.signal,1,g);else if(i==="DeepSeek")Se=Go(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="Mistral")Se=jo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1,g);else if(i==="NVIDIA"){let L=Vo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);Se=Tr(L,me)}else if(i==="InferX")Se=Yo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="SenseNova")Se=qo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="AIHubMix")Se=zo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="Poolside")Se=Jo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="9router"||i==="9Router")Se=Xo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="ExpLabs"||i==="ExperientialLabs")Se=Qo(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="TokenHarbor"||i==="Token Harbor"||i==="tokenharbor"||i==="token_harbor"||i==="thk")Se=Us(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else if(i==="APInex"||i==="apinex"||i==="apx")Se=Ws(n.apiKey,me,ut,Ue,f,a,C,w.signal,1);else{let oe=Vs(n?.apiKey).models.generateContentStream({model:me||"gemini-3-flash-preview",contents:ut,config:{systemInstruction:Ue,mediaResolution:"MEDIA_RESOLUTION_HIGH",safetySettings:[{category:En.HARM_CATEGORY_HARASSMENT,threshold:_n.BLOCK_NONE},{category:En.HARM_CATEGORY_HATE_SPEECH,threshold:_n.BLOCK_NONE},{category:En.HARM_CATEGORY_SEXUALLY_EXPLICIT,threshold:_n.BLOCK_NONE},{category:En.HARM_CATEGORY_DANGEROUS_CONTENT,threshold:_n.BLOCK_NONE}],temperature:1.05,thinkingConfig:(()=>{let F=$e("Google",me||"gemini-3-flash-preview",f);if(F!==null){if(typeof F=="object")return F;if(F===!1||F==="false"||F==="none"||F===0||F==="0")return{includeThoughts:!1};if(typeof F=="number")return{includeThoughts:!0,thinkingBudget:F};if(typeof F=="string"){let he=F.toLowerCase();if(he==="minimal")return{includeThoughts:!0,thinkingLevel:Je.MINIMAL};if(he==="low")return{includeThoughts:!0,thinkingLevel:Je.LOW};if(he==="medium")return{includeThoughts:!0,thinkingLevel:Je.MEDIUM};if(he==="high")return{includeThoughts:!0,thinkingLevel:Je.HIGH};let Ke=Number(F);if(!isNaN(Ke))return{includeThoughts:!0,thinkingBudget:Ke}}}let H=(me||"").toLowerCase(),we=H.includes("gemma-4")||H.startsWith("gemma"),xe=H.includes("gemini-3");if(we||xe)return we?f.toLowerCase()!=="high"?{includeThoughts:!1,thinkingLevel:Je.MINIMAL}:{includeThoughts:!0,thinkingLevel:Je.HIGH}:{includeThoughts:!0,thinkingLevel:{Fast:H.includes("pro")?Je.LOW:Je.MINIMAL,Low:Je.LOW,Medium:Je.MEDIUM,Standard:Je.MEDIUM,High:Je.HIGH,xHigh:Je.HIGH}[f]||Je.MEDIUM};{let he={Fast:0,Low:512,Medium:2048,Standard:2048,High:16384,xHigh:24576}[f]||2048;return he===0?{includeThoughts:!1}:{includeThoughts:!0,thinkingBudget:he}}})()}},{signal:w.signal});Se=await Promise.race([oe,Rt])}ge="",Mt=null,zt=null,X=[],Ve=0,yield{type:"model_update",content:null},qe="",Dt=st.length>0;let on="",as=Date.now(),Mn=async function*(){if(i==="Google"&&on){let L=Jn(on);for(let oe of L)yield oe;on="",as=Date.now()}},oi=!0,In="",Bn=!1,Pt=null,Br={tool:{startPrefix:"[tool",fullPrefix:"[tool:functions.",endTag:"]"},agent:{startPrefix:"[agent",fullPrefix:"[agent:generalist.",endTag:"]"},end:{startPrefix:"[[END]]",fullPrefix:"[[END]]",endTag:"[[END]]"},kimi_section:{startPrefix:"<|tool_calls_section_begin|>",fullPrefix:"<|tool_calls_section_begin|>",endTag:"<|tool_calls_section_end|>"},kimi_call:{startPrefix:"<|tool_call_begin|>",fullPrefix:"<|tool_call_begin|>",endTag:"<|tool_call_end|>"}},Jn=L=>{let oe=[],F=L;for(;F.length>0;)if(Bn){let H=In+F,we=Br[Pt];if(we){let Ke=!1;if(H.length<we.startPrefix.length?we.startPrefix.startsWith(H)||(Ke=!0):H.startsWith(we.startPrefix)?H.length>=we.fullPrefix.length&&!H.startsWith(we.fullPrefix)&&(Ke=!0):Ke=!0,Ke){oe.push({type:"text",content:H}),In="",Bn=!1,Pt=null,F="";break}}let xe=-1,he=we?we.endTag:"]";if(Pt==="tool"||Pt==="agent"){let Ke=0,W=null,te=0,Ne=!1;for(let y=0;y<H.length;y++){let Fe=H[y];if(W){if(Fe===W){let ve=0;for(let z=y-1;z>=0&&H[z]==="\\";z--)ve++;ve%2===0&&(W=null)}}else if(Fe==='"'||Fe==="'"||Fe==="`")W=Fe;else if(Fe==="(")Ke++,Ne=!0;else if(Fe===")")Ke--;else if(Fe==="[")te++;else if(Fe==="]"){if(Ne&&Ke===0&&te===1){xe=y;break}te--}}}else xe=H.indexOf(he);if(xe!==-1){let Ke=he.length;if(!Pt?.startsWith("kimi")){let W=H.substring(0,xe+Ke);oe.push({type:"text",content:W})}In="",Bn=!1,Pt=null,F=H.substring(xe+Ke)}else{let Ke=Pt?.startsWith("kimi")?8192:512;H.length>Ke?(oe.push({type:"text",content:H}),In="",Bn=!1,Pt=null):In=H,F="";break}}else{let H=F.indexOf("[tool"),we=F.indexOf("[agent"),xe=F.indexOf("[[END]]"),he=F.indexOf("<|tool_calls_section_begin|>"),Ke=F.indexOf("<|tool_call_begin|>"),W=[{type:"tool",idx:H,start:"[tool",end:"]"},{type:"agent",idx:we,start:"[agent",end:"]"},{type:"end",idx:xe,start:"[[END]]",end:"[[END]]"},{type:"kimi_section",idx:he,start:"<|tool_calls_section_begin|>",end:"<|tool_calls_section_end|>"},{type:"kimi_call",idx:Ke,start:"<|tool_call_begin|>",end:"<|tool_call_end|>"}].filter(te=>te.idx!==-1).sort((te,Ne)=>te.idx-Ne.idx);if(W.length>0){let te=W[0];te.idx>0&&oe.push({type:"text",content:F.substring(0,te.idx)}),Bn=!0,Pt=te.type,In="",F=F.substring(te.idx)}else{let te=["[tool","[agent","[[END]]","<|tool_calls_section_begin|>","<|tool_call_begin|>"],Ne=-1;for(let y of te){for(let Fe=y.length-1;Fe>0;Fe--)if(F.endsWith(y.substring(0,Fe))){Ne=F.length-Fe;let ve=te.indexOf(y);ve===0?Pt="tool":ve===1?Pt="agent":ve===2?Pt="end":ve===3?Pt="kimi_section":Pt="kimi_call";break}if(Ne!==-1)break}if(Ne!==-1)Ne>0&&oe.push({type:"text",content:F.substring(0,Ne)}),Bn=!0,In=F.substring(Ne),F="";else{oe.push({type:"text",content:F});break}}}return oe},Ur=Se[Symbol.asyncIterator]();for(;;){let{value:L,done:oe}=await Promise.race([Ur.next(),Rt]);if(oe)break;if(L&&L.type==="status"){yield L;continue}let F="",H=L.candidates?.[0]?.content?.parts;if(H&&H.length>0)for(let xe of H){let he=typeof xe.text=="string"?xe.text:xe.text?parseChunkText(xe.text):"";xe.thought?he&&(ye||(F+="<think>",ye=!0),F+=he):he&&(ye&&(F+="</think>",ye=!1),F+=he)}else L.text&&ye&&(F+="</think>",ye=!1);F=Ea(F);let we=F?gs(F):0;if(n&&typeof n.onTokenChunk=="function"&&n.onTokenChunk(F,we),oi&&(yield{type:"status",content:"Thinking"},oi=!1),kt){yield{type:"status",content:"Request Cancelled"},yield{type:"text",content:`
|
|
752
752
|
|
|
753
753
|
\x1B[33m\u24D8 Request Cancelled\x1B[0m`};break}if(F){if(Dt){if(qe+=F,qe.length>=64){let W=0,te=Math.min(st.length,qe.length);for(let y=te;y>=10;y--)if(st.endsWith(qe.substring(0,y))){W=y;break}let Ne=qe.substring(W);if(Ne){let Fe=/(?:<(think|thought)>|\[(think|thought)\])(?:(?!(?:<\/(?:think|thought)>|\[\/(?:think|thought)\]))[\s\S])*$/i.test(st)?Ne.replace(/^\s*(?:<(think|thought)>|\[(think|thought)\])\s*/gi,""):Ne.replace(/^\s*(?:<(think|thought)>|\[(think|thought)\])[\s\S]*?(?:<\/(think|thought)>|\[\/(think|thought)\])\s*/gi,"").replace(/^\s*(?:<(think|thought)>|\[(think|thought)\])\s*/gi,"");if(Fe)if(ge+=Fe,i==="Google")on+=Fe;else{yield*Mn();let ve=Jn(Fe);for(let z of ve)yield z}}Dt=!1,qe=""}continue}else if(ge+=F,i==="Google")on+=F;else{yield*Mn();let W=Jn(F);for(let te of W)yield te}let xe=Oa(ge);if(xe.inside){Cn=!0,zt||(zt=Date.now());let te={Ask:"ask",AskUser:"ask",WebSearch:"web_search",WebScrape:"web_scrape",ReadFile:"view_file",ReadFolder:"read_folder",WriteFile:"write_file",PatchFile:"update_file",WritePDF:"write_pdf",WriteDoc:"write_docx",Run:"exec_command",SearchKeyword:"search_keyword",CodeSearch:"search_keyword",code_search:"search_keyword",Code_Search:"search_keyword",codesearch:"search_keyword",Memory:"memory",file_map:"file_map",FileMap:"file_map",Chat:"chat",chat:"chat",GenerateImage:"generate_image",generate_image:"generate_image",todo:"todo",Todo:"todo",goal:"todo",Goal:"todo",Invoke:"invoke",InvokeSync:"invoke_sync",getProgress:"get_progress",GetProgress:"get_progress",Cancel:"cancel",Await:"await",Answer:"answer",Steer:"steer",steer:"steer"}[xe.toolName]||xe.toolName,Ne=xe.args||"",y=null;if(["write_file","update_file","view_file","read_folder","write_pdf","write_docx","search_keyword","generate_image","file_map","invoke","invoke_sync","get_progress","await","answer"].includes(te)){let ve=Q(Ne),z=ve.path||ve.targetFile||ve.TargetFile||ve.directory,sn=ve.keyword,Dn=ve.title||ve.task,kn=ve.id||ve.taskId,Ae=ve.timeout||ve.time;if(sn!=null)y=String(sn).replace(Pn,"");else if(z)y=J.basename(String(z).replace(Pn,"").replace(Sr,"/"));else if(Dn&&(te==="invoke"||te==="invoke_sync"))y=String(Dn).replace(Pn,"").substring(0,30);else if(kn&&te==="get_progress")y=String(kn).replace(Pn,"");else if(Ae&&te==="await"){let $t=parseFloat(String(Ae).replace(Pn,""));isNaN($t)?y=String(Ae).replace(Pn,""):($t<5&&($t=5),$t>120&&($t=120),y=(un=>{if(un>=60){let cs=Math.floor(un/60),Un=un%60;return`${cs}m${Un>0?` ${Un}s`:""}`}return`${un}s`})($t))}else{let $t=Ne.match(Ta);if($t){let Ut=$t[1].replace(Pn,"");te==="invoke"||te==="invoke_sync"||te==="get_progress"?y=Ut.substring(0,30):y=te==="search_keyword"||te==="file_map"?Ut:J.basename(Ut.replace(Sr,"/"))}}}let Fe=`${Gs[te]||te}${y?` ${y}`:""}`;if((te!==Mt||y!==et)&&(Mt=te,et=y,yield{type:"status",content:`${Fe}`},process.stdout.isTTY)){let z={WebSearch:"Searching",web_search:"Searching",WebScrape:"Reading",web_scrape:"Reading",ReadFile:"Reading",read_file:"Reading",ReadFolder:"Reading",read_folder:"Reading",WriteFile:"Writing",write_file:"Writing",UpdateFile:"Editing",update_file:"Editing",WritePdf:"Creating",write_pdf:"Creating",WriteDocx:"Creating",write_docx:"Creating",SearchKeyword:"Searching",search_keyword:"Searching",CodeSearch:"Searching",code_search:"Searching",Run:"Executing",Ask:"User Input Required",AskUser:"User Input Required",Memory:"Updating Memory",GenerateImage:"Generating",InvokeSync:"Sub-Agent Working",invoke_sync:"Sub-Agent Working",Invoke:"Working",invoke:"Working",GetProgress:"Checking Progress",get_progress:"Checking Progress",Cancel:"Stopping Generalist",cancel:"Stopping Generalist",Await:"Waiting",await:"Waiting",EmergencyRollback:"Rolling the Ball",Answer:"Answering Sub-Agent",answer:"Answering Sub-Agent",Steer:"Steering Sub-Agent",steer:"Steering Sub-Agent",Click:"Clicking",click:"Clicking",Drag:"Dragging",drag:"Dragging",Scroll:"Scrolling",scroll:"Scrolling",KeyboardTyping:"Typing",keyboard_typing:"Typing",KeyPress:"Pressing Key",key_press:"Pressing Key",RecaptureScreen:"Recapturing Screen",recapture_screen:"Recapturing Screen"}[te]||"Working";process.stdout.write(`\x1B]0;${z}...\x07`)}}if(ge.length-bo>150){bo=ge.length;let W=Dr(ge,!1),te=Hs(W),Ne=te?(te.innerContent||"").trim():"",y=Ne.split(/[.!?]\s+/),Fe=new Set(y),ve=y.length>10?(y.length-Fe.size)/y.length:0,z=Ne.split(/\s+/).filter(Me=>Me.length>0).length,sn=.6,Dn=.8,kn=!1;if((i.toLowerCase().includes("google")||i.toLowerCase().includes("mistral"))&&((me||"").toLowerCase().startsWith("gemma")||(me||"").toLowerCase().includes("stral"))){let _={low:256,medium:1024,high:8192,max:16384,xhigh:16384}[f?.toLowerCase()]||2500;kn=z>_}if(ve>sn||kn){yield{type:"status",content:`${ve>sn?"Reasoning Loop Detected":"Thinking Budget Exceeded"}. Re-centering...`},It=!0,await new Promise(_=>setTimeout(_,3e3));break}let Ut=Rr(ge).trim().split(/[.!?]\s+/),un=new Set(Ut);if((Ut.length>10?(Ut.length-un.size)/Ut.length:0)>Dn){yield{type:"status",content:"Response Loop Detected. Re-centering..."},It=!1,fn=!0,await new Promise(Me=>setTimeout(Me,3e3));break}let Un=W.replace(ha,"").replace(pa,"").replace(ya,"").replace(xa,""),Nt=Un.toLowerCase().split(/\s+/).map(Me=>Me.replace(ba,"")).filter(Me=>Me.length>0),gn=!1;if(Nt.length>=10)for(let Me=1;Me<=15;Me++){let _=Math.max(3,Math.ceil(10/Me));if(Nt.length<Me*_)continue;let V=Nt.slice(Nt.length-Me),ae=V.join(" ");if(Me>1&&ae===V.slice(0,Math.floor(Me/2)).join(" ").repeat(2).trim())continue;let ce=!0;for(let be=1;be<_;be++)if(Nt.slice(Nt.length-Me*(be+1),Nt.length-Me*be).join(" ")!==ae){ce=!1;break}if(ce){gn=!0;break}}if(!gn){let Me=Un.toLowerCase().replace(ka,"");if(Me.length>=20)for(let _=1;_<=10;_++){let V=Math.max(5,Math.ceil(16/_));if(Me.length<_*V)continue;let ae=Me.substring(Me.length-_),ce=!0;for(let be=1;be<V;be++)if(Me.substring(Me.length-_*(be+1),Me.length-_*be)!==ae){ce=!1;break}if(ce){gn=!0;break}}}if(gn){yield{type:"status",content:"Stuttering Detected. Re-centering..."},It=!1,nn=!0,await new Promise(Me=>setTimeout(Me,3e3));break}}let he=Kt(ge),Ke=ts(he);for(;Ke.length>Ve;){yield*Mn();let W=Ke[Ve],te=Date.now(),y={Ask:"ask",AskUser:"ask",WebSearch:"web_search",WebScrape:"web_scrape",ReadFile:"view_file",ReadFolder:"read_folder",WriteFile:"write_file",PatchFile:"update_file",WritePDF:"write_pdf",WriteDoc:"write_docx",Run:"exec_command",SearchKeyword:"search_keyword",CodeSearch:"search_keyword",code_search:"search_keyword",Code_Search:"search_keyword",codesearch:"search_keyword",Memory:"memory",file_map:"file_map",FileMap:"file_map",Chat:"chat",chat:"chat",GenerateImage:"generate_image",generate_image:"generate_image",todo:"todo",Todo:"todo",goal:"todo",Goal:"todo",Invoke:"invoke",InvokeSync:"invoke_sync",getProgress:"get_progress",GetProgress:"get_progress",Await:"await",await:"await",AwaitSubagent:"await",awaitSubagent:"await",Answer:"answer",answer:"answer",AnswerSubagent:"answer",answerSubagent:"answer",Steer:"steer",steer:"steer",SteerSubagent:"steer",steerSubagent:"steer",Cancel:"cancel",cancel:"cancel",Click:"click",click:"click",Drag:"drag",drag:"drag",Scroll:"scroll",scroll:"scroll",KeyboardTyping:"keyboard_typing",keyboard_typing:"keyboard_typing",KeyPress:"key_press",key_press:"key_press",RecaptureScreen:"recapture_screen",recapture_screen:"recapture_screen",EmergencyRollback:"EmergencyRollback"}[W.toolName]||W.toolName,Fe=Gs[y]||W.toolName,ve=Nn(y,W.args);yield{type:"status",content:`${Fe}${ve?` ${ve}`:""}`};let z="";if(y==="click"){let _=Q(W.args);z=`\u2714 Clicked: ${_.intendedClickText?`${_.intendedClickText}`:""}`}else if(y==="drag"){let _=Q(W.args);z=`\u2714 Dragged: Cell ${_.fromGridId||""} \u2192 Cell ${_.toGridId||""}`}else if(y==="scroll"){let _=Q(W.args);z=`\u2714 Scrolled: ${_.direction||"down"} (${_.amount||1})`}else if(y==="keyboard_typing"){let _=Q(W.args);z=`\u2714 Typed: ${_.text?`"${_.text.length>20?_.text.substring(0,20)+"...":_.text}"`:""}`}else if(y==="key_press")z=`\u2714 Pressed Key: ${Q(W.args).key||""}`;else if(y==="recapture_screen")z="\u2714 Recaptured Screen";else if(y==="web_search"){let{query:_,limit:V=10,aiMode:ae=!1}=Q(W.args);z=`${_?"\u2714":"\u2718"} ${ae?"AI Search":"Searched"}: ${_?`${_}`:"No Search Query"}${ae===!1&&_?` \u2192 ${V}`:""}`}else if(y==="web_scrape"){let _=Q(W.args).url||null;z=`${_?"\u2714":"\u2718"} Visited: ${_||"No Source"}`}else if(y==="view_file"){let{path:_,StartLine:V,EndLine:ae,start_line:ce,end_line:be,startLine:He,endLine:Ie}=Q(W.args),Te=V||ce||He,q=ae||be||Ie,ne=parseInt(Te)||1,le=parseInt(q)||(Te?ne+800:800),Ce="...",ze=le,Re=(_||"").trim().toLowerCase().replaceAll("\\","/");if(Re.startsWith("#skill"))Re.startsWith("#skill/global/fluxflow")||Re.startsWith("#skills/global/fluxflow")?z="\u2714 Read Documentation":z=`\u2714 Read Skill: ${J.basename(_.replaceAll("\\","/"))}`;else{try{let pe=J.resolve(process.cwd(),_);if(Pe.existsSync(pe)){let ht=Pe.readFileSync(pe,"utf8").split(`
|
|
754
754
|
`).length;Ce=ht,!Te&&!q&&ht>800?ze=Math.min(50,ht):ze=Math.min(le,ht)}}catch{}let Oe=(_||"").toLowerCase(),gt=Oe.endsWith(".pdf"),De=Oe.endsWith(".docx")||Oe.endsWith(".doc")||Oe.endsWith(".ppt")||Oe.endsWith(".pptx")||Oe.endsWith(".xls")||Oe.endsWith(".xlsx"),ot=/\.(png|jpg|jpeg|webp|gif|bmp)$/.test(Oe);gt||De?z=`${_.length>0?"\u2714":"\u2718"} ${_?`Analyzed: ${J.basename(_)}`:"Analyzed: File Not Found"}`:ot?z=`${_.length>0?"\u2714":"\u2718"} ${_?`Processed: ${J.basename(_)}`:"Processed: File Not Found"}`:z=`${Ce!=="..."?"\u2714":"\u2718"} Read: ${_?`${J.basename(_)} \u2192 ${Ce!=="..."?`Lines ${ne} - ${ze} of ${Ce}`:"File Not Found"}`:"File Not Found"}`}}else if(y==="list_files"||y==="read_folder"){let _=y==="list_files"?"List":"Browsed",V=Q(W.args).path||null,ae=Q(W.args).recurse||1;z=`${V?"\u2714":"\u2718"} ${_}: ${V?`${V==="."?`./${ae>1?"*":""}`:`${V.replaceAll("\\","/")}${ae>1?`${V.endsWith("/")?"*":"/*"}`:`${V.endsWith("/")?"":"/"}`}`}`:"No Folder Selected"}`}else if(y==="write_file"||y==="update_file"){let _=y==="write_file"?"Created":"Edited",V=Q(W.args).path||null;z=`${V?"\u2714":"\u2718"} ${_}: ${V.replaceAll("\\","/")||"No File Changes"}`}else if(y==="write_pdf"){let _=Q(W.args).path||null;z=`${_?"\u2714":"\u2718"} Generated: ${_.replaceAll("\\","/")||"No PDF Generated"}`}else if(y==="write_docx"){let _=Q(W.args).path||null;z=`${_?"\u2714":"\u2718"} Generated: ${_.replaceAll("\\","/")||"No Docx Generated"}`}else if(y==="file_map"){let _=Q(W.args).path;z=`${_?"\u2714":"\u2718"} Indexed: ${_.replaceAll("\\","/")?""+_:"File Not Found"}`}else if(y.toLowerCase()==="search_keyword"||y.toLowerCase()==="todo")z="";else if(y.toLowerCase()==="generate_image"){let{path:_,outputPath:V,output:ae}=Q(W.args);z=`\u2714 Generated: ${_||V||ae||"generated_image.png"}`}else if(y==="invoke_sync"||y==="InvokeSync"){let _=Nn(y,W.args);z=`\u2714 Called Generalist${_?`: ${_}`:""}`}else if(y==="Invoke"||y==="InvokeAsync"||y==="invoke"){let _=Nn(y,W.args);z=`\u2714 Started Generalist${_?`: ${_}`:""}`}else if(y==="get_progress"||y==="GetProgress"){let _=Nn(y,W.args);z=`\u2714 Checked${_?`: ${_}`:""}`}else if(y==="cancel"){let _=Nn(y,W.args);z=`\u{1F6C7} Cancelled${_?`: ${_}`:""}`}else if(y==="steer"||y==="Steer"){let _=Nn(y,W.args);z=`\u2714 Steered${_?`: ${_}`:""}`}else if(y==="EmergencyRollback"){let{method:_}=Q(W.args);z=_==="forceRevert"?"":"\u2714 Rollback Point Checked"}else if(y==="await"||y==="Await"){let{time:_,timeout:V}=Q(W.args),ae=parseFloat(V||_)||0;ae||(ae=120);let ce=Ie=>{if(Ie>=60){let Te=Math.floor(Ie/60),q=Ie%60;return`${Te}m${q>0?` ${q}s`:""}`}return`${Ie}s`},be=["Aligning Moon Phase","Contemplating Existence","Staring At Void","Delaying Professionally","Negotiating With Electrons","Touching Grass (virtually)","Panicking Softly","Rethinking Career Choices","Loading Cat Videos","Summoning Braincell #2","Pretending To Be Busy","Waiting For Motivation DLC","Rotating Internal Screaming","Downloading More RAM","Feeding The Hamsters","Gaslighting Scheduler","Performing Dramatic Pause","Buffering Social Energy","Calculating Regret","Reading Terms And Conditions","Becoming Sentient Briefly","Contacting Ancestors"];z=`\u2714 ${be[Math.floor(Math.random()*be.length)]} \u2192 ${ce(ae)}`}else y==="Answer"||y==="answer"?z="\u2714 Resolved Sub-Agent Query":y==="exec_command"||y==="ask"?z="":z=`Executed: ${W.toolName}`;if(yield*Mn(),y==="exec_command"){let{command:_}=Q(W.args);if(_&&n.systemSettings&&n.systemSettings.allowExternalAccess===!1){let V=[/[a-zA-Z]:[\\\/]/i,/^\//,/\.\.[\\\/]/,/\/etc\//,/\/var\//,/\/root\//,/\/bin\//,/\/usr\//],ae=J.resolve(process.cwd()).substring(0,3).toLowerCase(),ce=q=>{let ne=[],le="",Ce=null;for(let ze=0;ze<q.length;ze++){let Re=q[ze];Ce?(Re===Ce&&(Ce=null),le+=Re):Re==='"'||Re==="'"?(Ce=Re,le+=Re):Re==="&"&&q[ze+1]==="&"||Re==="|"&&q[ze+1]==="|"?(le.trim()&&(ne.push(le.trim()),le=""),ze++):Re===";"||Re==="|"||Re==="&"?le.trim()&&(ne.push(le.trim()),le=""):le+=Re}return le.trim()&&ne.push(le.trim()),ne},be=q=>{let ne=[],le="",Ce=null;for(let ze=0;ze<q.length;ze++){let Re=q[ze];Ce?(Re===Ce&&(Ce=null),le+=Re):Re==='"'||Re==="'"?(Ce=Re,le+=Re):/\s/.test(Re)?le&&(ne.push(le),le=""):le+=Re}return le&&ne.push(le),ne},He=q=>{let ne=q.replace(/^['"]|['"]$/g,"").trim();return!ne||process.platform==="win32"&&/^\/[a-zA-Z0-9?]+$/.test(ne)?!1:V.some(le=>{if(le.source==="[a-zA-Z]:[\\\\\\/]"){let Ce=ne.match(/[a-zA-Z]:[\\\/]/i);return Ce&&Ce[0].toLowerCase()!==ae}return le.test(ne)})};if(ce(_).some(q=>{let ne=be(q);if(ne.length===0)return!1;let le=ne[0].replace(/^['"]|['"]$/g,"").toLowerCase();if(["echo","printf","write-output"].includes(le)){let ze=!1;return ne.some(Re=>{let Wt=Re.replace(/^['"]|['"]$/g,"");if(Wt===">"||Wt===">>"||Wt==="<")return ze=!0,!1;if(Wt.startsWith(">")||Wt.startsWith("<")){let Oe=Wt.replace(/^[><]+/,"");return He(Oe)}return ze?(ze=!1,He(Re)):!1})}return ne.some(ze=>He(ze))})){let q='Access Denied. Prohibited from accessing external directories while "External Workspace Access" is disabled.';n.onExecStart&&n.onExecStart(_||"No Command"),yield{type:"exec_start"},await new Promise(ne=>setTimeout(ne,50)),n.onExecChunk&&n.onExecChunk(`ERROR: ${q}`),await new Promise(ne=>setTimeout(ne,50)),n.onExecEnd&&n.onExecEnd(),X.push({role:"user",text:`[TOOL RESULT]: ERROR: ${q}`}),yield{type:"tool_result",content:`[TOOL RESULT]: ERROR: ${q}`},Ve++;continue}}n.onExecStart&&n.onExecStart(_||"No Command"),yield{type:"exec_start"}}let sn=Q(W.args),Dn=sn.path||sn.targetPath||null;if(Dn){let _=n.systemSettings&&n.systemSettings.allowExternalAccess===!1,V=J.resolve(Dn),ae=J.resolve(process.cwd());if(_&&!V.startsWith(ae)){let ce="Access Denied. You are not allowed to access files outside the current workspace.";if(y==="write_file"||y==="update_file"){let He=`\u2718 ${y==="write_file"?"Write Canceled":"Edit Canceled"}: ${sn.path||"..."}`,Ie=115;process.stdout.isTTY&&(Ie=process.stdout.columns-5||120);let Te=Math.min(He.length+4,Ie),q=`${He.padEnd(Te-2).substring(0,Te-2)}`;yield{type:"visual_feedback",content:Vt(`${Be?`
|