@involvex/super-agent-cli 0.0.45 → 0.0.47
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/bunfig.toml +43 -0
- package/dist/index.js +9 -15
- package/dist/super-agent-cli.exe +0 -0
- package/package.json +4 -1
- package/.grok/settings.json +0 -3
- package/.super-agent/settings.json +0 -23
- package/dist/agent/grok-agent.d.ts +0 -54
- package/dist/agent/grok-agent.js +0 -638
- package/dist/agent/grok-agent.js.map +0 -1
- package/dist/agent/index.d.ts +0 -14
- package/dist/agent/index.js +0 -139
- package/dist/agent/index.js.map +0 -1
- package/dist/agent/super-agent.d.ts +0 -54
- package/dist/agent/super-agent.js +0 -638
- package/dist/agent/super-agent.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -2
- package/dist/commands/mcp.js +0 -247
- package/dist/commands/mcp.js.map +0 -1
- package/dist/core/client.d.ts +0 -49
- package/dist/core/client.js +0 -81
- package/dist/core/client.js.map +0 -1
- package/dist/core/tools.d.ts +0 -8
- package/dist/core/tools.js +0 -351
- package/dist/core/tools.js.map +0 -1
- package/dist/grok/client.d.ts +0 -49
- package/dist/grok/client.js +0 -81
- package/dist/grok/client.js.map +0 -1
- package/dist/grok/tools.d.ts +0 -8
- package/dist/grok/tools.js +0 -351
- package/dist/grok/tools.js.map +0 -1
- package/dist/hooks/use-enhanced-input.d.ts +0 -37
- package/dist/hooks/use-enhanced-input.js +0 -228
- package/dist/hooks/use-enhanced-input.js.map +0 -1
- package/dist/hooks/use-input-handler.d.ts +0 -34
- package/dist/hooks/use-input-handler.js +0 -607
- package/dist/hooks/use-input-handler.js.map +0 -1
- package/dist/hooks/use-input-history.d.ts +0 -9
- package/dist/hooks/use-input-history.js +0 -62
- package/dist/hooks/use-input-history.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -29
- package/dist/mcp/client.js +0 -127
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/config.d.ts +0 -13
- package/dist/mcp/config.js +0 -45
- package/dist/mcp/config.js.map +0 -1
- package/dist/mcp/transports.d.ts +0 -51
- package/dist/mcp/transports.js +0 -229
- package/dist/mcp/transports.js.map +0 -1
- package/dist/tools/bash.d.ts +0 -10
- package/dist/tools/bash.js +0 -76
- package/dist/tools/bash.js.map +0 -1
- package/dist/tools/confirmation-tool.d.ts +0 -16
- package/dist/tools/confirmation-tool.js +0 -77
- package/dist/tools/confirmation-tool.js.map +0 -1
- package/dist/tools/index.d.ts +0 -6
- package/dist/tools/index.js +0 -7
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/morph-editor.d.ts +0 -36
- package/dist/tools/morph-editor.js +0 -324
- package/dist/tools/morph-editor.js.map +0 -1
- package/dist/tools/search.d.ts +0 -69
- package/dist/tools/search.js +0 -307
- package/dist/tools/search.js.map +0 -1
- package/dist/tools/text-editor.d.ts +0 -26
- package/dist/tools/text-editor.js +0 -583
- package/dist/tools/text-editor.js.map +0 -1
- package/dist/tools/todo-tool.d.ts +0 -20
- package/dist/tools/todo-tool.js +0 -134
- package/dist/tools/todo-tool.js.map +0 -1
- package/dist/types/index.d.ts +0 -30
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/ui/app.d.ts +0 -6
- package/dist/ui/app.js +0 -76
- package/dist/ui/app.js.map +0 -1
- package/dist/ui/components/api-key-input.d.ts +0 -6
- package/dist/ui/components/api-key-input.js +0 -70
- package/dist/ui/components/api-key-input.js.map +0 -1
- package/dist/ui/components/chat-history.d.ts +0 -7
- package/dist/ui/components/chat-history.js +0 -136
- package/dist/ui/components/chat-history.js.map +0 -1
- package/dist/ui/components/chat-input.d.ts +0 -8
- package/dist/ui/components/chat-input.js +0 -47
- package/dist/ui/components/chat-input.js.map +0 -1
- package/dist/ui/components/chat-interface.d.ts +0 -7
- package/dist/ui/components/chat-interface.js +0 -213
- package/dist/ui/components/chat-interface.js.map +0 -1
- package/dist/ui/components/command-suggestions.d.ts +0 -16
- package/dist/ui/components/command-suggestions.js +0 -18
- package/dist/ui/components/command-suggestions.js.map +0 -1
- package/dist/ui/components/confirmation-dialog.d.ts +0 -10
- package/dist/ui/components/confirmation-dialog.js +0 -70
- package/dist/ui/components/confirmation-dialog.js.map +0 -1
- package/dist/ui/components/diff-renderer.d.ts +0 -13
- package/dist/ui/components/diff-renderer.js +0 -200
- package/dist/ui/components/diff-renderer.js.map +0 -1
- package/dist/ui/components/loading-spinner.d.ts +0 -7
- package/dist/ui/components/loading-spinner.js +0 -52
- package/dist/ui/components/loading-spinner.js.map +0 -1
- package/dist/ui/components/mcp-status.d.ts +0 -4
- package/dist/ui/components/mcp-status.js +0 -37
- package/dist/ui/components/mcp-status.js.map +0 -1
- package/dist/ui/components/model-selection.d.ts +0 -11
- package/dist/ui/components/model-selection.js +0 -9
- package/dist/ui/components/model-selection.js.map +0 -1
- package/dist/ui/shared/max-sized-box.d.ts +0 -8
- package/dist/ui/shared/max-sized-box.js +0 -6
- package/dist/ui/shared/max-sized-box.js.map +0 -1
- package/dist/ui/utils/code-colorizer.d.ts +0 -2
- package/dist/ui/utils/code-colorizer.js +0 -7
- package/dist/ui/utils/code-colorizer.js.map +0 -1
- package/dist/ui/utils/colors.d.ts +0 -14
- package/dist/ui/utils/colors.js +0 -15
- package/dist/ui/utils/colors.js.map +0 -1
- package/dist/ui/utils/markdown-renderer.d.ts +0 -3
- package/dist/ui/utils/markdown-renderer.js +0 -23
- package/dist/ui/utils/markdown-renderer.js.map +0 -1
- package/dist/utils/confirmation-service.d.ts +0 -33
- package/dist/utils/confirmation-service.js +0 -110
- package/dist/utils/confirmation-service.js.map +0 -1
- package/dist/utils/custom-instructions.d.ts +0 -1
- package/dist/utils/custom-instructions.js +0 -23
- package/dist/utils/custom-instructions.js.map +0 -1
- package/dist/utils/model-config.d.ts +0 -28
- package/dist/utils/model-config.js +0 -42
- package/dist/utils/model-config.js.map +0 -1
- package/dist/utils/settings-manager.d.ts +0 -99
- package/dist/utils/settings-manager.js +0 -286
- package/dist/utils/settings-manager.js.map +0 -1
- package/dist/utils/settings.d.ts +0 -1
- package/dist/utils/settings.js +0 -4
- package/dist/utils/settings.js.map +0 -1
- package/dist/utils/text-utils.d.ts +0 -80
- package/dist/utils/text-utils.js +0 -191
- package/dist/utils/text-utils.js.map +0 -1
- package/dist/utils/token-counter.d.ts +0 -33
- package/dist/utils/token-counter.js +0 -79
- package/dist/utils/token-counter.js.map +0 -1
package/bunfig.toml
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
[build]
|
|
3
|
+
# Build output directory
|
|
4
|
+
outdir = "dist"
|
|
5
|
+
entrypoints = ["src/index.ts"]
|
|
6
|
+
|
|
7
|
+
preload = ["src/index.ts"]
|
|
8
|
+
import = ["src/index.ts"]
|
|
9
|
+
require = ["src/index.ts"]
|
|
10
|
+
external = ["react-devtools-core"]
|
|
11
|
+
Includes = ["src/**", "node_modules/**"]
|
|
12
|
+
|
|
13
|
+
format = "esm"
|
|
14
|
+
packages = "auto"
|
|
15
|
+
# Minification
|
|
16
|
+
#minify = true
|
|
17
|
+
|
|
18
|
+
# Source maps
|
|
19
|
+
sourcemap = true
|
|
20
|
+
|
|
21
|
+
# Target environment
|
|
22
|
+
target = "node"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
[run]
|
|
26
|
+
# Node.js compatibility mode
|
|
27
|
+
compat = "node"
|
|
28
|
+
|
|
29
|
+
# Loader configuration for file types
|
|
30
|
+
loader = {
|
|
31
|
+
".css" = "css",
|
|
32
|
+
".js" = "jsx",
|
|
33
|
+
".ts" = "tsx",
|
|
34
|
+
".tsx" = "tsx",
|
|
35
|
+
".json" = "json",
|
|
36
|
+
".txt" = "text"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
# Environment variables
|
|
40
|
+
|
|
41
|
+
env = {
|
|
42
|
+
NODE_ENV = "production"
|
|
43
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -7,24 +7,24 @@ var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
|
7
7
|
var __toCommonJS = (from) => {
|
|
8
8
|
var entry = __moduleCache.get(from), desc;
|
|
9
9
|
if (entry)
|
|
10
|
-
return entry;
|
|
10
|
+
{return entry;}
|
|
11
11
|
entry = __defProp({}, "__esModule", { value: true });
|
|
12
12
|
if (from && typeof from === "object" || typeof from === "function")
|
|
13
|
-
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
13
|
+
{__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
14
14
|
get: () => from[key],
|
|
15
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
}));
|
|
16
|
+
}));}
|
|
17
17
|
__moduleCache.set(from, entry);
|
|
18
18
|
return entry;
|
|
19
19
|
};
|
|
20
20
|
var __export = (target, all) => {
|
|
21
21
|
for (var name in all)
|
|
22
|
-
__defProp(target, name, {
|
|
22
|
+
{__defProp(target, name, {
|
|
23
23
|
get: all[name],
|
|
24
24
|
enumerable: true,
|
|
25
25
|
configurable: true,
|
|
26
26
|
set: (newValue) => all[name] = () => newValue
|
|
27
|
-
});
|
|
27
|
+
});}
|
|
28
28
|
};
|
|
29
29
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
30
30
|
|
|
@@ -6504,15 +6504,6 @@ function ChatInterfaceWithAgent({
|
|
|
6504
6504
|
transitionGradient: true,
|
|
6505
6505
|
env: "node"
|
|
6506
6506
|
});
|
|
6507
|
-
const logoLines = logoOutput.string.split(`
|
|
6508
|
-
`);
|
|
6509
|
-
logoLines.forEach((line) => {
|
|
6510
|
-
if (line.trim()) {
|
|
6511
|
-
console.log(" " + line);
|
|
6512
|
-
} else {
|
|
6513
|
-
console.log(line);
|
|
6514
|
-
}
|
|
6515
|
-
});
|
|
6516
6507
|
console.log(" ");
|
|
6517
6508
|
setChatHistory([]);
|
|
6518
6509
|
}, []);
|
|
@@ -7093,7 +7084,7 @@ import { program } from "commander";
|
|
|
7093
7084
|
// package.json
|
|
7094
7085
|
var package_default = {
|
|
7095
7086
|
name: "@involvex/super-agent-cli",
|
|
7096
|
-
version: "0.0.
|
|
7087
|
+
version: "0.0.47",
|
|
7097
7088
|
description: "An open-source AI agent that brings the power of Super Agent directly into your terminal.",
|
|
7098
7089
|
keywords: [
|
|
7099
7090
|
"cli",
|
|
@@ -7101,6 +7092,7 @@ var package_default = {
|
|
|
7101
7092
|
"text-editor",
|
|
7102
7093
|
"ai"
|
|
7103
7094
|
],
|
|
7095
|
+
homepage: "https://involvex.github.io/super-agent-cli/",
|
|
7104
7096
|
repository: {
|
|
7105
7097
|
type: "git",
|
|
7106
7098
|
url: "https://github.com/involvex/super-agent-cli.git"
|
|
@@ -7124,6 +7116,7 @@ var package_default = {
|
|
|
7124
7116
|
build: "bun build src/index.ts --outdir ./dist --target node --packages external --format esm",
|
|
7125
7117
|
"build:bun": "bun build src/index.ts --outdir ./dist --target node --packages external --format esm",
|
|
7126
7118
|
changelog: "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
7119
|
+
compile: "bun run prebuild && bun build --compile src/index.ts --outfile ./dist/super-agent-cli.exe --config bunfig.toml",
|
|
7127
7120
|
dev: "bun run --watch src/index.ts",
|
|
7128
7121
|
"dev:node": "tsx src/index.ts",
|
|
7129
7122
|
format: "prettier --write .",
|
|
@@ -7166,6 +7159,7 @@ var package_default = {
|
|
|
7166
7159
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
7167
7160
|
"prettier-plugin-packagejson": "^3.0.0",
|
|
7168
7161
|
"prettier-plugin-sort-imports": "^1.8.9",
|
|
7162
|
+
"react-devtools-core": "^7.0.1",
|
|
7169
7163
|
tsx: "^4.21.0",
|
|
7170
7164
|
typescript: "^5.9.3",
|
|
7171
7165
|
"typescript-eslint": "^8.54.0"
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@involvex/super-agent-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "An open-source AI agent that brings the power of Super Agent directly into your terminal.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"text-editor",
|
|
9
9
|
"ai"
|
|
10
10
|
],
|
|
11
|
+
"homepage": "https://involvex.github.io/super-agent-cli/",
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
13
14
|
"url": "https://github.com/involvex/super-agent-cli.git"
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
"build": "bun build src/index.ts --outdir ./dist --target node --packages external --format esm",
|
|
32
33
|
"build:bun": "bun build src/index.ts --outdir ./dist --target node --packages external --format esm",
|
|
33
34
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
35
|
+
"compile": "bun run prebuild && bun build --compile src/index.ts --outfile ./dist/super-agent-cli.exe --config bunfig.toml",
|
|
34
36
|
"dev": "bun run --watch src/index.ts",
|
|
35
37
|
"dev:node": "tsx src/index.ts",
|
|
36
38
|
"format": "prettier --write .",
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
74
76
|
"prettier-plugin-packagejson": "^3.0.0",
|
|
75
77
|
"prettier-plugin-sort-imports": "^1.8.9",
|
|
78
|
+
"react-devtools-core": "^7.0.1",
|
|
76
79
|
"tsx": "^4.21.0",
|
|
77
80
|
"typescript": "^5.9.3",
|
|
78
81
|
"typescript-eslint": "^8.54.0"
|
package/.grok/settings.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"active_provider": "gemini",
|
|
3
|
-
"providers": {
|
|
4
|
-
"zai": {
|
|
5
|
-
"id": "zai",
|
|
6
|
-
"provider": "zai",
|
|
7
|
-
"model": "GLM-4.7",
|
|
8
|
-
"api_key": "2848b5f116bf4918a3d8f5396147cbf1.mr1ZJWiNOD01ifHY",
|
|
9
|
-
"base_url": "https://api.z.ai/api/v1",
|
|
10
|
-
"default_model": "GLM-4.7"
|
|
11
|
-
},
|
|
12
|
-
"gemini": {
|
|
13
|
-
"id": "gemini",
|
|
14
|
-
"provider": "gemini",
|
|
15
|
-
"model": "gemini-3-flash-preview",
|
|
16
|
-
"api_key": "AIzaSyCrJujbcYf2_drrGmY8LlEdK21qp7XlEe0",
|
|
17
|
-
"default_model": "gemini-3-flash-preview"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"ui": {
|
|
21
|
-
"theme": "dark"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { GrokToolCall } from "../grok/client";
|
|
2
|
-
import { ToolResult } from "../types";
|
|
3
|
-
import { EventEmitter } from "events";
|
|
4
|
-
export interface ChatEntry {
|
|
5
|
-
type: "user" | "assistant" | "tool_result" | "tool_call";
|
|
6
|
-
content: string;
|
|
7
|
-
timestamp: Date;
|
|
8
|
-
toolCalls?: GrokToolCall[];
|
|
9
|
-
toolCall?: GrokToolCall;
|
|
10
|
-
toolResult?: {
|
|
11
|
-
success: boolean;
|
|
12
|
-
output?: string;
|
|
13
|
-
error?: string;
|
|
14
|
-
};
|
|
15
|
-
isStreaming?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface StreamingChunk {
|
|
18
|
-
type: "content" | "tool_calls" | "tool_result" | "done" | "token_count";
|
|
19
|
-
content?: string;
|
|
20
|
-
toolCalls?: GrokToolCall[];
|
|
21
|
-
toolCall?: GrokToolCall;
|
|
22
|
-
toolResult?: ToolResult;
|
|
23
|
-
tokenCount?: number;
|
|
24
|
-
}
|
|
25
|
-
export declare class GrokAgent extends EventEmitter {
|
|
26
|
-
private grokClient;
|
|
27
|
-
private textEditor;
|
|
28
|
-
private morphEditor;
|
|
29
|
-
private bash;
|
|
30
|
-
private todoTool;
|
|
31
|
-
private confirmationTool;
|
|
32
|
-
private search;
|
|
33
|
-
private chatHistory;
|
|
34
|
-
private messages;
|
|
35
|
-
private tokenCounter;
|
|
36
|
-
private abortController;
|
|
37
|
-
private mcpInitialized;
|
|
38
|
-
private maxToolRounds;
|
|
39
|
-
constructor(apiKey: string, baseURL?: string, model?: string, maxToolRounds?: number);
|
|
40
|
-
private initializeMCP;
|
|
41
|
-
private isGrokModel;
|
|
42
|
-
private shouldUseSearchFor;
|
|
43
|
-
processUserMessage(message: string): Promise<ChatEntry[]>;
|
|
44
|
-
private messageReducer;
|
|
45
|
-
processUserMessageStream(message: string): AsyncGenerator<StreamingChunk, void, unknown>;
|
|
46
|
-
private executeTool;
|
|
47
|
-
private executeMCPTool;
|
|
48
|
-
getChatHistory(): ChatEntry[];
|
|
49
|
-
getCurrentDirectory(): string;
|
|
50
|
-
executeBashCommand(command: string): Promise<ToolResult>;
|
|
51
|
-
getCurrentModel(): string;
|
|
52
|
-
setModel(model: string): void;
|
|
53
|
-
abortCurrentOperation(): void;
|
|
54
|
-
}
|