@involvex/super-agent-cli 0.0.85 → 0.0.88
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/index.js
CHANGED
|
@@ -1731,7 +1731,7 @@ var init_indexer = __esm(() => {
|
|
|
1731
1731
|
var require_package = __commonJS((exports, module) => {
|
|
1732
1732
|
module.exports = {
|
|
1733
1733
|
name: "@involvex/super-agent-cli",
|
|
1734
|
-
version: "0.0.
|
|
1734
|
+
version: "0.0.88",
|
|
1735
1735
|
description: "An open-source AI agent that brings the power of Super Agent directly into your terminal.",
|
|
1736
1736
|
keywords: [
|
|
1737
1737
|
"cli",
|
|
@@ -2345,6 +2345,9 @@ function useEnhancedInput({
|
|
|
2345
2345
|
return;
|
|
2346
2346
|
}
|
|
2347
2347
|
if (key.ctrl && (inputChar === "c" || inputChar === "C") || inputChar === "\x03") {
|
|
2348
|
+
if (input.length === 0) {
|
|
2349
|
+
process.exit(0);
|
|
2350
|
+
}
|
|
2348
2351
|
setInputState("");
|
|
2349
2352
|
setCursorPositionState(0);
|
|
2350
2353
|
setOriginalInput("");
|
|
@@ -7572,7 +7575,7 @@ function MarkdownRenderer({ content }) {
|
|
|
7572
7575
|
}
|
|
7573
7576
|
|
|
7574
7577
|
// src/ui/components/chat-history.tsx
|
|
7575
|
-
import { Box as Box11, Text as Text11 } from "ink";
|
|
7578
|
+
import { Box as Box11, Static, Text as Text11 } from "ink";
|
|
7576
7579
|
import React3 from "react";
|
|
7577
7580
|
import { jsxDEV as jsxDEV12 } from "react/jsx-dev-runtime";
|
|
7578
7581
|
var MemoizedChatEntry = React3.memo(({ entry, index }) => {
|
|
@@ -7790,10 +7793,13 @@ function ChatHistory({
|
|
|
7790
7793
|
const filteredEntries = isConfirmationActive ? entries.filter((entry) => !(entry.type === "tool_call" && entry.content === "Executing...")) : entries;
|
|
7791
7794
|
return /* @__PURE__ */ jsxDEV12(Box11, {
|
|
7792
7795
|
flexDirection: "column",
|
|
7793
|
-
children:
|
|
7794
|
-
|
|
7795
|
-
index
|
|
7796
|
-
|
|
7796
|
+
children: /* @__PURE__ */ jsxDEV12(Static, {
|
|
7797
|
+
items: filteredEntries,
|
|
7798
|
+
children: (entry, index) => /* @__PURE__ */ jsxDEV12(MemoizedChatEntry, {
|
|
7799
|
+
entry,
|
|
7800
|
+
index
|
|
7801
|
+
}, `${entry.timestamp.getTime()}-${index}`, false, undefined, this)
|
|
7802
|
+
}, undefined, false, undefined, this)
|
|
7797
7803
|
}, undefined, false, undefined, this);
|
|
7798
7804
|
}
|
|
7799
7805
|
|
|
@@ -13003,6 +13009,81 @@ function createGitCommand() {
|
|
|
13003
13009
|
return gitCommand;
|
|
13004
13010
|
}
|
|
13005
13011
|
|
|
13012
|
+
// src/commands/statusbar.ts
|
|
13013
|
+
init_settings_manager();
|
|
13014
|
+
import { Command as Command11 } from "commander";
|
|
13015
|
+
import { prompt } from "enquirer";
|
|
13016
|
+
function createStatusBarCommand() {
|
|
13017
|
+
const command = new Command11("statusbar");
|
|
13018
|
+
command.description("Configure status bar settings").action(async () => {
|
|
13019
|
+
const manager = getSettingsManager();
|
|
13020
|
+
const settings = manager.loadUserSettings();
|
|
13021
|
+
const currentConfig = settings.ui.statusbar_config || {
|
|
13022
|
+
show_model: true,
|
|
13023
|
+
show_tokens: true,
|
|
13024
|
+
show_git_status: true,
|
|
13025
|
+
show_memory: false,
|
|
13026
|
+
show_context: false
|
|
13027
|
+
};
|
|
13028
|
+
try {
|
|
13029
|
+
const response = await prompt({
|
|
13030
|
+
type: "multiselect",
|
|
13031
|
+
name: "features",
|
|
13032
|
+
message: "Select status bar features to display:",
|
|
13033
|
+
choices: [
|
|
13034
|
+
{
|
|
13035
|
+
name: "show_model",
|
|
13036
|
+
message: "Model Name",
|
|
13037
|
+
value: "show_model",
|
|
13038
|
+
enabled: currentConfig.show_model
|
|
13039
|
+
},
|
|
13040
|
+
{
|
|
13041
|
+
name: "show_tokens",
|
|
13042
|
+
message: "Token Count",
|
|
13043
|
+
value: "show_tokens",
|
|
13044
|
+
enabled: currentConfig.show_tokens
|
|
13045
|
+
},
|
|
13046
|
+
{
|
|
13047
|
+
name: "show_git_status",
|
|
13048
|
+
message: "Git Status",
|
|
13049
|
+
value: "show_git_status",
|
|
13050
|
+
enabled: currentConfig.show_git_status
|
|
13051
|
+
},
|
|
13052
|
+
{
|
|
13053
|
+
name: "show_memory",
|
|
13054
|
+
message: "Memory Usage",
|
|
13055
|
+
value: "show_memory",
|
|
13056
|
+
enabled: currentConfig.show_memory
|
|
13057
|
+
},
|
|
13058
|
+
{
|
|
13059
|
+
name: "show_context",
|
|
13060
|
+
message: "Context Size",
|
|
13061
|
+
value: "show_context",
|
|
13062
|
+
enabled: currentConfig.show_context
|
|
13063
|
+
}
|
|
13064
|
+
]
|
|
13065
|
+
});
|
|
13066
|
+
const newConfig = {
|
|
13067
|
+
show_model: response.features.includes("show_model"),
|
|
13068
|
+
show_tokens: response.features.includes("show_tokens"),
|
|
13069
|
+
show_git_status: response.features.includes("show_git_status"),
|
|
13070
|
+
show_memory: response.features.includes("show_memory"),
|
|
13071
|
+
show_context: response.features.includes("show_context")
|
|
13072
|
+
};
|
|
13073
|
+
manager.saveUserSettings({
|
|
13074
|
+
ui: {
|
|
13075
|
+
...settings.ui,
|
|
13076
|
+
statusbar_config: newConfig
|
|
13077
|
+
}
|
|
13078
|
+
});
|
|
13079
|
+
console.log("✓ Status bar configuration updated");
|
|
13080
|
+
} catch (error) {
|
|
13081
|
+
console.error("Failed to update status bar configuration:", error);
|
|
13082
|
+
}
|
|
13083
|
+
});
|
|
13084
|
+
return command;
|
|
13085
|
+
}
|
|
13086
|
+
|
|
13006
13087
|
// src/commands/index.ts
|
|
13007
13088
|
function registerCommands(program) {
|
|
13008
13089
|
program.addCommand(createMCPCommand());
|
|
@@ -13016,6 +13097,7 @@ function registerCommands(program) {
|
|
|
13016
13097
|
program.addCommand(createProviderCommand());
|
|
13017
13098
|
program.addCommand(createIndexCommand());
|
|
13018
13099
|
program.addCommand(createRepositoryCommand());
|
|
13100
|
+
program.addCommand(createStatusBarCommand());
|
|
13019
13101
|
}
|
|
13020
13102
|
|
|
13021
13103
|
// src/index.ts
|
|
@@ -13088,12 +13170,12 @@ function loadModel2() {
|
|
|
13088
13170
|
}
|
|
13089
13171
|
return model;
|
|
13090
13172
|
}
|
|
13091
|
-
async function processPromptHeadless(
|
|
13173
|
+
async function processPromptHeadless(prompt2, apiKey, baseURL, model, maxToolRounds) {
|
|
13092
13174
|
try {
|
|
13093
13175
|
const agent = new SuperAgent(apiKey, baseURL, model, maxToolRounds);
|
|
13094
13176
|
const confirmationService = ConfirmationService.getInstance();
|
|
13095
13177
|
confirmationService.setSessionFlag("allOperations", true);
|
|
13096
|
-
const chatEntries = await agent.processUserMessage(
|
|
13178
|
+
const chatEntries = await agent.processUserMessage(prompt2);
|
|
13097
13179
|
const messages = [];
|
|
13098
13180
|
for (const entry of chatEntries) {
|
|
13099
13181
|
switch (entry.type) {
|
package/dist/super-agent-cli.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"compile": "tsc -p ./",
|
|
22
22
|
"copy-assets": "node build.js",
|
|
23
23
|
"lint": "eslint src --ext ts",
|
|
24
|
-
"package": "vsce package --no-dependencies",
|
|
24
|
+
"package": "bun run build && vsce package --no-dependencies",
|
|
25
25
|
"typecheck": "tsc --noEmit",
|
|
26
26
|
"vscode:prepublish": "npm run compile && npm run copy-assets",
|
|
27
27
|
"watch": "tsc -w -p ./"
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
"title": "Reconnect to CLI",
|
|
39
39
|
"icon": "icon.png"
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"command": "super-agent.startServer",
|
|
43
|
+
"title": "Start CLI Server",
|
|
44
|
+
"icon": "icon.png"
|
|
45
|
+
},
|
|
41
46
|
{
|
|
42
47
|
"command": "super-agent.mentionFile",
|
|
43
48
|
"title": "Mention File in Chat"
|