@aravhawk/cc-switch 3.0.0 → 3.1.0
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 +20 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -137,9 +137,9 @@ var PROVIDER_TEMPLATES = [
|
|
|
137
137
|
label: "MiniMax",
|
|
138
138
|
requiresApiKey: true,
|
|
139
139
|
baseUrl: "https://api.minimax.io/anthropic",
|
|
140
|
-
haikuModel: "MiniMax-M2.
|
|
141
|
-
sonnetModel: "MiniMax-M2.
|
|
142
|
-
opusModel: "MiniMax-M2.
|
|
140
|
+
haikuModel: "MiniMax-M2.7",
|
|
141
|
+
sonnetModel: "MiniMax-M2.7",
|
|
142
|
+
opusModel: "MiniMax-M2.7"
|
|
143
143
|
}
|
|
144
144
|
];
|
|
145
145
|
var TEMPLATE_ALIASES = /* @__PURE__ */ new Map();
|
|
@@ -511,8 +511,8 @@ async function showProfileList(profiles) {
|
|
|
511
511
|
for (const profile of resolvedProfiles) {
|
|
512
512
|
const markers = [];
|
|
513
513
|
if (profile.isActive) markers.push("active");
|
|
514
|
-
|
|
515
|
-
const suffix =
|
|
514
|
+
markers.push(profile.type === "full" ? "full" : "settings");
|
|
515
|
+
const suffix = ` (${markers.join(", ")})`;
|
|
516
516
|
console.log(` ${profile.name}${suffix}`);
|
|
517
517
|
}
|
|
518
518
|
console.log();
|
|
@@ -522,20 +522,24 @@ async function interactiveMode() {
|
|
|
522
522
|
clack.intro("cc-switch - Claude Code Profile Manager");
|
|
523
523
|
try {
|
|
524
524
|
const profiles = await listProfiles();
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
const hasProfiles = profiles.length > 0;
|
|
526
|
+
const menuOptions = hasProfiles ? [
|
|
527
|
+
{ value: "current", label: "Show current profile" },
|
|
528
|
+
{ value: "switch", label: "Switch profile" },
|
|
529
|
+
{ value: "create", label: "Create new profile" },
|
|
530
|
+
{ value: "delete", label: "Delete profile" },
|
|
531
|
+
{ value: "rename", label: "Rename profile" },
|
|
532
|
+
{ value: "list", label: "List profiles" }
|
|
533
|
+
] : [
|
|
534
|
+
{ value: "create", label: "Create your first profile" },
|
|
535
|
+
{ value: "current", label: "Show current profile" }
|
|
536
|
+
];
|
|
537
|
+
if (!hasProfiles) {
|
|
538
|
+
clack.log.info("No profiles found yet. Create one to get started.");
|
|
528
539
|
}
|
|
529
540
|
const action = await clack.select({
|
|
530
541
|
message: "What would you like to do?",
|
|
531
|
-
options:
|
|
532
|
-
{ value: "current", label: "Show current profile" },
|
|
533
|
-
{ value: "switch", label: "Switch profile" },
|
|
534
|
-
{ value: "create", label: "Create new profile" },
|
|
535
|
-
{ value: "delete", label: "Delete profile" },
|
|
536
|
-
{ value: "rename", label: "Rename profile" },
|
|
537
|
-
{ value: "list", label: "List profiles" }
|
|
538
|
-
]
|
|
542
|
+
options: menuOptions
|
|
539
543
|
});
|
|
540
544
|
if (clack.isCancel(action)) {
|
|
541
545
|
clack.cancel("Operation cancelled");
|