codemaxxing 0.3.1 → 0.4.1

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/README.md CHANGED
@@ -12,34 +12,34 @@ Open-source terminal coding agent. Connect **any** LLM — local or remote — a
12
12
 
13
13
  Every coding agent locks you into their API. Codemaxxing doesn't. Run it with LM Studio, Ollama, OpenRouter, OpenAI, or any OpenAI-compatible endpoint. Your machine, your model, your rules.
14
14
 
15
- ## Quick Install (Recommended)
15
+ ## Install
16
16
 
17
- **Linux / macOS:**
17
+ **If you have Node.js:**
18
18
  ```bash
19
- bash -c "$(curl -fsSL https://raw.githubusercontent.com/MarcosV6/codemaxxing/main/install.sh)"
19
+ npm install -g codemaxxing
20
20
  ```
21
21
 
22
- **Windows (PowerShell as Administrator):**
23
- ```powershell
24
- curl -fsSL -o $env:TEMP\install-codemaxxing.bat https://raw.githubusercontent.com/MarcosV6/codemaxxing/main/install.bat; & $env:TEMP\install-codemaxxing.bat
22
+ **If you don't have Node.js:**
23
+
24
+ The one-line installers below will install Node.js first, then codemaxxing.
25
+
26
+ *Linux / macOS:*
27
+ ```bash
28
+ bash -c "$(curl -fsSL https://raw.githubusercontent.com/MarcosV6/codemaxxing/main/install.sh)"
25
29
  ```
26
30
 
27
- **Windows (CMD as Administrator):**
31
+ *Windows (CMD as Administrator):*
28
32
  ```
29
33
  curl -fsSL -o %TEMP%\install-codemaxxing.bat https://raw.githubusercontent.com/MarcosV6/codemaxxing/main/install.bat && %TEMP%\install-codemaxxing.bat
30
34
  ```
31
35
 
32
- > **Note:** Restart your terminal after installation to ensure everything works.
33
-
34
- ## Manual Installation
35
-
36
- **Prerequisites:** [Node.js](https://nodejs.org) 20 or later.
37
-
38
- **NPM:**
39
- ```bash
40
- npm install -g codemaxxing
36
+ *Windows (PowerShell as Administrator):*
37
+ ```powershell
38
+ curl -fsSL -o $env:TEMP\install-codemaxxing.bat https://raw.githubusercontent.com/MarcosV6/codemaxxing/main/install.bat; & $env:TEMP\install-codemaxxing.bat
41
39
  ```
42
40
 
41
+ > **Windows note:** If Node.js was just installed, you may need to close and reopen your terminal, then run `npm install -g codemaxxing` manually. This is a Windows PATH limitation.
42
+
43
43
  ## Updating
44
44
 
45
45
  ```bash
package/dist/config.d.ts CHANGED
@@ -17,6 +17,7 @@ export interface CodemaxxingConfig {
17
17
  contextCompressionThreshold?: number;
18
18
  architectModel?: string;
19
19
  autoLint?: boolean;
20
+ stopOllamaOnExit?: boolean;
20
21
  };
21
22
  }
22
23
  export interface CLIArgs {
@@ -30,6 +31,8 @@ export interface CLIArgs {
30
31
  */
31
32
  export declare function parseCLIArgs(): CLIArgs;
32
33
  export declare function loadConfig(): CodemaxxingConfig;
34
+ /** Save config to disk (merges with existing) */
35
+ export declare function saveConfig(updates: Partial<CodemaxxingConfig>): void;
33
36
  /**
34
37
  * Apply CLI overrides to a provider config
35
38
  */
package/dist/config.js CHANGED
@@ -102,6 +102,19 @@ export function loadConfig() {
102
102
  return DEFAULT_CONFIG;
103
103
  }
104
104
  }
105
+ /** Save config to disk (merges with existing) */
106
+ export function saveConfig(updates) {
107
+ const current = loadConfig();
108
+ const merged = {
109
+ ...current,
110
+ ...updates,
111
+ defaults: { ...current.defaults, ...(updates.defaults ?? {}) },
112
+ };
113
+ if (!existsSync(CONFIG_DIR)) {
114
+ mkdirSync(CONFIG_DIR, { recursive: true });
115
+ }
116
+ writeFileSync(CONFIG_FILE, JSON.stringify(merged, null, 2));
117
+ }
105
118
  /**
106
119
  * Apply CLI overrides to a provider config
107
120
  */