@involvex/super-agent-cli 0.0.64 → 0.0.66
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 +111 -8
- package/dist/super-agent-cli.exe +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -978,7 +978,7 @@ var init_session_manager = __esm(() => {
|
|
|
978
978
|
var require_package = __commonJS((exports, module) => {
|
|
979
979
|
module.exports = {
|
|
980
980
|
name: "@involvex/super-agent-cli",
|
|
981
|
-
version: "0.0.
|
|
981
|
+
version: "0.0.66",
|
|
982
982
|
description: "An open-source AI agent that brings the power of Super Agent directly into your terminal.",
|
|
983
983
|
keywords: [
|
|
984
984
|
"cli",
|
|
@@ -3098,13 +3098,19 @@ function useInputHandler({
|
|
|
3098
3098
|
const commandSuggestions = [
|
|
3099
3099
|
{ command: "/help", description: "Show help information" },
|
|
3100
3100
|
{ command: "/clear", description: "Clear chat history" },
|
|
3101
|
+
{ command: "/doctor", description: "Check status & connection" },
|
|
3101
3102
|
{ command: "/models", description: "Switch Super Agent Model" },
|
|
3102
3103
|
{ command: "/config", description: "View or edit configuration" },
|
|
3104
|
+
{ command: "/commands", description: "Manage custom commands" },
|
|
3103
3105
|
{ command: "/provider", description: "Manage AI providers" },
|
|
3104
3106
|
{ command: "/chat save <name>", description: "Save current chat" },
|
|
3105
3107
|
{ command: "/chat load <name>", description: "Load a saved chat" },
|
|
3106
3108
|
{ command: "/chat list", description: "List saved chats" },
|
|
3107
3109
|
{ command: "/chat delete <name>", description: "Delete a saved chat" },
|
|
3110
|
+
{ command: "/skills", description: "Manage AI skills" },
|
|
3111
|
+
{ command: "/agents", description: "Manage AI agents" },
|
|
3112
|
+
{ command: "/import", description: "Import from other AI assistants" },
|
|
3113
|
+
{ command: "/index", description: "Index current directory" },
|
|
3108
3114
|
{
|
|
3109
3115
|
command: "/mcp <action>",
|
|
3110
3116
|
description: "Manage MCP servers"
|
|
@@ -3171,9 +3177,11 @@ function useInputHandler({
|
|
|
3171
3177
|
Built-in Commands:
|
|
3172
3178
|
/clear - Clear chat history
|
|
3173
3179
|
/help - Show this help
|
|
3180
|
+
/doctor - Check system health & connection
|
|
3174
3181
|
/models - Switch between available models
|
|
3175
3182
|
/config - View current configuration
|
|
3176
3183
|
/provider - List or switch AI providers
|
|
3184
|
+
/commands - Manage custom slash commands
|
|
3177
3185
|
/exit - Exit application
|
|
3178
3186
|
exit, quit - Exit application
|
|
3179
3187
|
|
|
@@ -3190,6 +3198,7 @@ Config Commands:
|
|
|
3190
3198
|
/config - View current active configuration
|
|
3191
3199
|
/provider - List configured providers
|
|
3192
3200
|
/provider use <id> - Switch active AI provider
|
|
3201
|
+
/provider set-account <id> <acc_id> - Set account ID (e.g. workers-ai)
|
|
3193
3202
|
/model set <id> - Set active model for current provider
|
|
3194
3203
|
`,
|
|
3195
3204
|
timestamp: new Date
|
|
@@ -3257,14 +3266,95 @@ Config Commands:
|
|
|
3257
3266
|
return true;
|
|
3258
3267
|
}
|
|
3259
3268
|
if (trimmedInput.startsWith("/commands ")) {
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3269
|
+
const args = trimmedInput.split(" ");
|
|
3270
|
+
const action = args[1];
|
|
3271
|
+
const manager = getSettingsManager();
|
|
3272
|
+
const settings = manager.loadUserSettings();
|
|
3273
|
+
const customCommands = settings.custom_commands || {};
|
|
3274
|
+
if (action === "add") {
|
|
3275
|
+
const name = args[2];
|
|
3276
|
+
const prompt = args.slice(3).join(" ");
|
|
3277
|
+
if (!name || !prompt) {
|
|
3278
|
+
setChatHistory((prev) => [
|
|
3279
|
+
...prev,
|
|
3280
|
+
{
|
|
3281
|
+
type: "assistant",
|
|
3282
|
+
content: "❌ Usage: /commands add <name> <prompt>",
|
|
3283
|
+
timestamp: new Date
|
|
3284
|
+
}
|
|
3285
|
+
]);
|
|
3286
|
+
clearInput();
|
|
3287
|
+
return true;
|
|
3266
3288
|
}
|
|
3267
|
-
|
|
3289
|
+
const newCommands = { ...customCommands, [name]: prompt };
|
|
3290
|
+
manager.updateUserSetting("custom_commands", newCommands);
|
|
3291
|
+
setChatHistory((prev) => [
|
|
3292
|
+
...prev,
|
|
3293
|
+
{
|
|
3294
|
+
type: "assistant",
|
|
3295
|
+
content: `✅ Custom command '/${name}' created.`,
|
|
3296
|
+
timestamp: new Date
|
|
3297
|
+
}
|
|
3298
|
+
]);
|
|
3299
|
+
} else if (action === "remove") {
|
|
3300
|
+
const name = args[2];
|
|
3301
|
+
if (!name || !customCommands[name]) {
|
|
3302
|
+
setChatHistory((prev) => [
|
|
3303
|
+
...prev,
|
|
3304
|
+
{
|
|
3305
|
+
type: "assistant",
|
|
3306
|
+
content: `❌ Command '/${name}' not found.`,
|
|
3307
|
+
timestamp: new Date
|
|
3308
|
+
}
|
|
3309
|
+
]);
|
|
3310
|
+
clearInput();
|
|
3311
|
+
return true;
|
|
3312
|
+
}
|
|
3313
|
+
const newCommands = { ...customCommands };
|
|
3314
|
+
delete newCommands[name];
|
|
3315
|
+
manager.updateUserSetting("custom_commands", newCommands);
|
|
3316
|
+
setChatHistory((prev) => [
|
|
3317
|
+
...prev,
|
|
3318
|
+
{
|
|
3319
|
+
type: "assistant",
|
|
3320
|
+
content: `✅ Custom command '/${name}' removed.`,
|
|
3321
|
+
timestamp: new Date
|
|
3322
|
+
}
|
|
3323
|
+
]);
|
|
3324
|
+
} else if (action === "list") {
|
|
3325
|
+
const commandList = Object.keys(customCommands);
|
|
3326
|
+
if (commandList.length === 0) {
|
|
3327
|
+
setChatHistory((prev) => [
|
|
3328
|
+
...prev,
|
|
3329
|
+
{
|
|
3330
|
+
type: "assistant",
|
|
3331
|
+
content: "No custom commands defined. Use /commands add to create one.",
|
|
3332
|
+
timestamp: new Date
|
|
3333
|
+
}
|
|
3334
|
+
]);
|
|
3335
|
+
} else {
|
|
3336
|
+
const list = commandList.map((name) => ` /${name} - ${customCommands[name]}`).join(`
|
|
3337
|
+
`);
|
|
3338
|
+
setChatHistory((prev) => [
|
|
3339
|
+
...prev,
|
|
3340
|
+
{
|
|
3341
|
+
type: "assistant",
|
|
3342
|
+
content: `Custom Commands:
|
|
3343
|
+
${list}`,
|
|
3344
|
+
timestamp: new Date
|
|
3345
|
+
}
|
|
3346
|
+
]);
|
|
3347
|
+
}
|
|
3348
|
+
} else {
|
|
3349
|
+
setChatHistory((prev) => [
|
|
3350
|
+
...prev,
|
|
3351
|
+
{
|
|
3352
|
+
type: "assistant",
|
|
3353
|
+
content: "❌ Usage: /commands <add|remove|list> [name] [prompt]",
|
|
3354
|
+
timestamp: new Date
|
|
3355
|
+
}
|
|
3356
|
+
]);
|
|
3357
|
+
}
|
|
3268
3358
|
clearInput();
|
|
3269
3359
|
return true;
|
|
3270
3360
|
}
|
|
@@ -4145,6 +4235,19 @@ ${structure}
|
|
|
4145
4235
|
} catch (e) {}
|
|
4146
4236
|
}
|
|
4147
4237
|
}
|
|
4238
|
+
if (userInput.startsWith("/")) {
|
|
4239
|
+
const commandName = userInput.split(" ")[0].slice(1);
|
|
4240
|
+
const manager = getSettingsManager();
|
|
4241
|
+
const settings = manager.loadUserSettings();
|
|
4242
|
+
const customCommands = settings.custom_commands || {};
|
|
4243
|
+
if (customCommands[commandName]) {
|
|
4244
|
+
const args = userInput.split(" ").slice(1);
|
|
4245
|
+
resolvedInput = customCommands[commandName];
|
|
4246
|
+
if (args.length > 0) {
|
|
4247
|
+
resolvedInput += " " + args.join(" ");
|
|
4248
|
+
}
|
|
4249
|
+
}
|
|
4250
|
+
}
|
|
4148
4251
|
if (agentMode === "plan") {
|
|
4149
4252
|
resolvedInput = `[MODE: PLAN] ${resolvedInput}`;
|
|
4150
4253
|
} else if (agentMode === "debug") {
|
package/dist/super-agent-cli.exe
CHANGED
|
Binary file
|