mlai-code 0.3.0 → 0.3.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
@@ -1,13 +1,13 @@
1
- # @mlai/code 0.3.0
1
+ # mlai-code 0.3.1
2
2
 
3
3
  ML AI Code in your terminal. The agent works in your project on this machine; models run in ML AI Code's cloud.
4
4
 
5
- npm install -g @mlai/code
5
+ npm install -g mlai-code
6
6
  mlai login
7
7
  mlai # interactive session in the current folder
8
8
  mlai -p "task" # one task without prompts (scripts, CI)
9
9
  mlai cloud --help # cloud workspace commands
10
10
 
11
- Update with `npm install -g @mlai/code@latest` (`mlai update` tells you when one is available).
11
+ Update with `npm install -g mlai-code@latest` (`mlai update` tells you when one is available).
12
12
  Shell completion: `mlai completion bash|zsh|fish|powershell`. Requires Node.js 20 or newer.
13
13
  Docs: https://mlai-mini-code.vercel.app/docs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlai-code",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "ML AI Code in your terminal: an agent that reads, edits and runs code in your project, on your machine.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,7 +27,7 @@ import {VERSION,DEFAULT_SERVER,home} from './home.mjs';
27
27
  import {ENGINE_PUBLIC_KEY} from './engine-key.mjs';
28
28
 
29
29
  export const PROTOCOL=1;
30
- export const NPM_PACKAGE='@mlai/code';
30
+ export const NPM_PACKAGE='mlai-code';
31
31
  export const BREW_FORMULA='mlai';
32
32
  export const CHECK_EVERY_MS=24*3600_000;
33
33
  const KEEP_VERSIONS=3;
@@ -204,7 +204,7 @@ async function withLock(dir,fn){
204
204
  /**
205
205
  * How this copy was installed, from where its files are:
206
206
  * managed ~/.mlai/cli/versions/<id> (install.sh / install.ps1) -> mlai update replaces it
207
- * npm .../node_modules/@mlai/code -> npm install -g @mlai/code@latest
207
+ * npm .../node_modules/mlai-code -> npm install -g mlai-code@latest
208
208
  * brew .../Cellar/mlai/... -> brew upgrade mlai
209
209
  * app inside the Mac app bundle -> updates with the app
210
210
  * source a repository checkout -> git pull
@@ -214,7 +214,7 @@ export function installKind(file=fileURLToPath(import.meta.url),dir=cliDir()){
214
214
  if(f.startsWith(v))return 'managed';
215
215
  const n=f.split(path.sep).join('/');
216
216
  if(/\/Cellar\/mlai\//.test(n)||/\/homebrew\/.*\/mlai\//i.test(n)&&!/node_modules/.test(n))return 'brew';
217
- if(/\/node_modules\/@mlai\/code\//.test(n))return 'npm';
217
+ if(/\/node_modules\/mlai-code\//.test(n))return 'npm';
218
218
  if(/\.app\/Contents\/Resources\//.test(n))return 'app';
219
219
  return 'source';
220
220
  }
package/src/home.mjs CHANGED
@@ -3,7 +3,7 @@ import path from 'node:path';
3
3
  import {mkdirSync,chmodSync,statSync} from 'node:fs';
4
4
  import {fileURLToPath} from 'node:url';
5
5
 
6
- export const VERSION='0.3.0';
6
+ export const VERSION='0.3.1';
7
7
  export const DEFAULT_SERVER='https://mlai-mini-code.vercel.app';
8
8
  /** All local state lives here; nothing is written into the user's repository except what the agent edits. */
9
9
  export function home(){