fluxflow-cli 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.js +32 -1
- package/package.json +9 -3
- package/fluxflow.png +0 -0
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# 🌌 Flux Flow (`fluxflow-cli`)
|
|
2
|
-

|
|
3
3
|
|
|
4
4
|
### *The High-Fidelity Agentic Terminal for the Flux Era.*
|
|
5
5
|
|
|
6
|
-
**Flux Flow** is not just another CLI—it's a high-speed, sassy, and goal-oriented
|
|
6
|
+
**Flux Flow** is not just another CLI—it's a high-speed, sassy, and goal-oriented CLI AI Agent powered by the latest Gemini frontier models. Designed for developers who demand a premium UI/UX while managing complex file-system tasks, web research, and autonomous workflows.
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,9 @@ import { render } from "ink";
|
|
|
7
7
|
// src/app.jsx
|
|
8
8
|
import React8, { useState as useState4, useEffect as useEffect3, useRef, useMemo } from "react";
|
|
9
9
|
import { Box as Box8, Text as Text8, useInput as useInput3, useStdout, Static } from "ink";
|
|
10
|
+
import fs14 from "fs-extra";
|
|
11
|
+
import path16 from "path";
|
|
12
|
+
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
10
13
|
import { MultilineInput } from "ink-multiline-input";
|
|
11
14
|
import TextInput2 from "ink-text-input";
|
|
12
15
|
|
|
@@ -1910,7 +1913,7 @@ function App() {
|
|
|
1910
1913
|
setTempKey("");
|
|
1911
1914
|
}
|
|
1912
1915
|
};
|
|
1913
|
-
const COMMANDS = ["/mode", "/thinking", "/model", "/resume", "/memory", "/profile", "/settings", "/key", "/stats", "/help", "/clear", "/quit"];
|
|
1916
|
+
const COMMANDS = ["/mode", "/thinking", "/model", "/resume", "/memory", "/profile", "/settings", "/key", "/stats", "/reset", "/help", "/clear", "/quit"];
|
|
1914
1917
|
const handleSubmit = (value) => {
|
|
1915
1918
|
const normalizedValue = value.replace(/\r\n/g, "\n").replace(/\r/g, "\n").trimEnd();
|
|
1916
1919
|
if (normalizedValue.endsWith("\\")) {
|
|
@@ -2081,6 +2084,34 @@ ${list || "No saved chats found."}` }];
|
|
|
2081
2084
|
setActiveView("memory");
|
|
2082
2085
|
break;
|
|
2083
2086
|
}
|
|
2087
|
+
case "/reset": {
|
|
2088
|
+
const runReset = async () => {
|
|
2089
|
+
const AGENT_ROOT7 = path16.join(path16.dirname(fileURLToPath9(import.meta.url)), "../");
|
|
2090
|
+
const logsDir = path16.join(AGENT_ROOT7, "logs");
|
|
2091
|
+
const secretDir = path16.join(AGENT_ROOT7, "secret");
|
|
2092
|
+
const settingsFile = path16.join(AGENT_ROOT7, "settings.json");
|
|
2093
|
+
try {
|
|
2094
|
+
setMessages((prev) => {
|
|
2095
|
+
setCompletedIndex(prev.length + 1);
|
|
2096
|
+
return [...prev, { id: Date.now(), role: "system", text: "\u2622\uFE0F [NUCLEAR] Initiating reset..." }];
|
|
2097
|
+
});
|
|
2098
|
+
if (fs14.existsSync(logsDir)) fs14.removeSync(logsDir);
|
|
2099
|
+
if (fs14.existsSync(secretDir)) fs14.removeSync(secretDir);
|
|
2100
|
+
if (fs14.existsSync(settingsFile)) fs14.removeSync(settingsFile);
|
|
2101
|
+
setTimeout(() => {
|
|
2102
|
+
setActiveView("exit");
|
|
2103
|
+
setTimeout(() => process.exit(0), 500);
|
|
2104
|
+
}, 500);
|
|
2105
|
+
} catch (err) {
|
|
2106
|
+
setMessages((prev) => {
|
|
2107
|
+
setCompletedIndex(prev.length + 1);
|
|
2108
|
+
return [...prev, { id: Date.now(), role: "system", text: `\u274C [RESET ERROR] Failed to purge data: ${err.message}` }];
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
};
|
|
2112
|
+
runReset();
|
|
2113
|
+
break;
|
|
2114
|
+
}
|
|
2084
2115
|
case "/help": {
|
|
2085
2116
|
setMessages((prev) => {
|
|
2086
2117
|
setCompletedIndex(prev.length + 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fluxflow-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A high-fidelity agentic terminal assistant for the Flux Era.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -12,12 +12,18 @@
|
|
|
12
12
|
"flux"
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/KushalRoyChowdhury/fluxflow-cli.git"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20"
|
|
21
|
+
},
|
|
15
22
|
"files": [
|
|
16
23
|
"dist",
|
|
17
24
|
"README.md",
|
|
18
25
|
"package.json",
|
|
19
|
-
"ARCHITECTURE.md"
|
|
20
|
-
"fluxflow.png"
|
|
26
|
+
"ARCHITECTURE.md"
|
|
21
27
|
],
|
|
22
28
|
"type": "module",
|
|
23
29
|
"bin": {
|
package/fluxflow.png
DELETED
|
Binary file
|