@calamity-inc/slave 0.3.1 → 0.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.
package/README.md CHANGED
@@ -5,7 +5,9 @@ Vibe coding without the kaboom factor.
5
5
  ## Setup
6
6
 
7
7
  1. Install slave: `npm i -g @calamity-inc/slave`
8
- 2. Create a default profile, e.g. `slave --create-profile default openai gpt-6-luna` or `slave --create-profile default anthropic claude-haiku-5-5`
8
+ 2. Create a profile, e.g.:
9
+ - `slave --create-profile luna openai gpt-6-luna --set-default`
10
+ - `slave --create-profile haiku anthropic claude-haiku-5-5 --set-default`
9
11
 
10
12
  ## Usage
11
13
 
@@ -30,8 +32,10 @@ Options:
30
32
  Single-character flags can be combined, so `slave -cw prompt` is equivalent to `slave -c -w prompt`.
31
33
 
32
34
  Subcommands:
33
- - `--create-profile <name> <provider> <model>` — create a profile
35
+ - `--create-profile <name> <provider> <model> [--set-default]` — create a profile
34
36
  - `provider` can be `openai`, `anthropic`, or an OpenAI-compatible base URL like `http://127.0.0.1:1234/v1` for [LM Studio](https://lmstudio.ai/developers).
37
+ - `--update-profile <name> <provider> <model> [--set-default]` — update a profile
38
+ - `--set-default <profile name>` — set default profile
35
39
  - `--list-profiles` — list all profiles
36
40
  - `--delete-profile <name>` — delete a profile
37
41
  - `--update-api-key <provider>` — update an API Key
package/package.json CHANGED
@@ -4,10 +4,10 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/calamity-inc/slave.git"
6
6
  },
7
- "version": "0.3.1",
8
- "type": "module",
7
+ "version": "0.4.0",
8
+ "type": "commonjs",
9
9
  "bin": {
10
- "slave": "index.js"
10
+ "slave": "src/main.js"
11
11
  },
12
12
  "dependencies": {
13
13
  "@anthropic-ai/sdk": "^1.3.0",