theclawbay 0.3.83 → 0.3.85
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/commands/setup.js +25 -2
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -723,6 +723,27 @@ function runInstallPlan(plan) {
|
|
|
723
723
|
function modelDisplayName(modelId) {
|
|
724
724
|
return MODEL_DISPLAY_NAMES[modelId] ?? prettyModelId(modelId);
|
|
725
725
|
}
|
|
726
|
+
function normalizeClaudeCatalogModelId(modelId) {
|
|
727
|
+
const trimmed = modelId.trim();
|
|
728
|
+
if (!trimmed.startsWith("claude-"))
|
|
729
|
+
return trimmed;
|
|
730
|
+
return trimmed
|
|
731
|
+
.replace(/\./g, "-")
|
|
732
|
+
.replace(/-+/g, "-")
|
|
733
|
+
.replace(/-(20\d{6})$/, "");
|
|
734
|
+
}
|
|
735
|
+
function dedupeClaudeCatalogModelIds(modelIds) {
|
|
736
|
+
const seen = new Set();
|
|
737
|
+
const deduped = [];
|
|
738
|
+
for (const modelId of modelIds) {
|
|
739
|
+
const normalized = normalizeClaudeCatalogModelId(modelId);
|
|
740
|
+
if (!normalized || seen.has(normalized))
|
|
741
|
+
continue;
|
|
742
|
+
seen.add(normalized);
|
|
743
|
+
deduped.push(normalized);
|
|
744
|
+
}
|
|
745
|
+
return deduped;
|
|
746
|
+
}
|
|
726
747
|
function supportedModelProviderMap() {
|
|
727
748
|
return new Map((0, supported_models_1.getSupportedModels)().map((model) => [model.id, model.provider]));
|
|
728
749
|
}
|
|
@@ -1764,9 +1785,9 @@ async function fetchBackendModelIds(backendUrl, apiKey) {
|
|
|
1764
1785
|
};
|
|
1765
1786
|
}
|
|
1766
1787
|
const body = (await response.json());
|
|
1767
|
-
const ids = (body.data ?? [])
|
|
1788
|
+
const ids = dedupeClaudeCatalogModelIds((body.data ?? [])
|
|
1768
1789
|
.map((entry) => (typeof entry.id === "string" ? entry.id.trim() : ""))
|
|
1769
|
-
.filter((id) => id.length > 0);
|
|
1790
|
+
.filter((id) => id.length > 0));
|
|
1770
1791
|
if (!ids.length) {
|
|
1771
1792
|
return {
|
|
1772
1793
|
ids: null,
|
|
@@ -2559,7 +2580,9 @@ function powerShellProfilePaths() {
|
|
|
2559
2580
|
const addDocumentsProfiles = (documentsDir) => {
|
|
2560
2581
|
if (!documentsDir)
|
|
2561
2582
|
return;
|
|
2583
|
+
candidates.add(node_path_1.default.join(documentsDir, "PowerShell", "profile.ps1"));
|
|
2562
2584
|
candidates.add(node_path_1.default.join(documentsDir, "PowerShell", "Microsoft.PowerShell_profile.ps1"));
|
|
2585
|
+
candidates.add(node_path_1.default.join(documentsDir, "WindowsPowerShell", "profile.ps1"));
|
|
2563
2586
|
candidates.add(node_path_1.default.join(documentsDir, "WindowsPowerShell", "Microsoft.PowerShell_profile.ps1"));
|
|
2564
2587
|
};
|
|
2565
2588
|
if (node_os_1.default.platform() === "win32") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "theclawbay",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.85",
|
|
4
4
|
"description": "CLI for connecting Codex, Hermes Agent, Gemini-compatible apps, Continue, Cline, GSD, OpenClaw, OpenCode, Kilo, Roo Code, Aider, experimental Trae, and experimental Zo to The Claw Bay.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|