@cbuk100011/claude-mode 1.3.0 → 1.4.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -5
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -277,10 +277,10 @@ var builtInProviders = {
277
277
  "ollama-custom": {
278
278
  name: "Ollama Custom",
279
279
  key: "ollama-custom",
280
- getBaseUrl: () => process.env.OLLAMA_BASE_URL_CUSTOM || "http://192.168.86.101:11434",
280
+ getBaseUrl: () => process.env.OLLAMA_BASE_URL_CUSTOM || "",
281
281
  getAuthToken: () => "ollama",
282
282
  getDescription: () => {
283
- const url = process.env.OLLAMA_BASE_URL_CUSTOM || "http://192.168.86.101:11434";
283
+ const url = process.env.OLLAMA_BASE_URL_CUSTOM || "not configured";
284
284
  return `Ollama Custom (${url})`;
285
285
  },
286
286
  isBuiltIn: true
@@ -712,10 +712,9 @@ async function configureProvider(providerKey, skipValidation) {
712
712
  }
713
713
  if (providerKey === "ollama-custom") {
714
714
  const existingUrl = provider.getBaseUrl();
715
- const defaultUrl = existingUrl || "http://192.168.86.101:11434";
716
715
  config2.customUrl = await input({
717
716
  message: "Enter Ollama URL:",
718
- default: defaultUrl,
717
+ default: existingUrl || "",
719
718
  validate: (value) => {
720
719
  try {
721
720
  new URL(value);
@@ -870,7 +869,7 @@ function buildEnvVars(providerConfigs) {
870
869
  envVars.OLLAMA_BASE_URL_LOCAL = "http://localhost:11434";
871
870
  break;
872
871
  case "ollama-custom":
873
- if (config2.customUrl) {
872
+ if (config2.customUrl && config2.customUrl.trim()) {
874
873
  envVars.OLLAMA_BASE_URL_CUSTOM = config2.customUrl;
875
874
  }
876
875
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbuk100011/claude-mode",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "CLI launcher for Claude Code with multiple AI providers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,6 +27,7 @@
27
27
  "typecheck": "tsc --noEmit"
28
28
  },
29
29
  "dependencies": {
30
+ "@cbuk100011/claude-mode": "^1.3.0",
30
31
  "@inquirer/prompts": "^7.2.1",
31
32
  "chalk": "^5.4.1",
32
33
  "commander": "^13.1.0",