motifcode 0.4.4 → 0.5.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
@@ -5,7 +5,7 @@ A Claude Code-style terminal session — transcript above, prompt below, `/` com
5
5
  a permission prompt, a `.motif/` directory behind it — whose tool set, prompt layout, parser and
6
6
  failure handling follow from what is measurably true about Motif-3.
7
7
 
8
- > **Choose your provider.** First launch offers [Infron](https://infron.ai) or
8
+ > **Choose your provider.** New installations default to [OpenRouter](https://openrouter.ai/settings/keys). You can also choose [Infron](https://infron.ai) or
9
9
  > [Morphfactory (BETA)](https://cbt.morphfactory.io/console?view=keys).
10
10
  > Switch later with `/provider` or `/config`; each provider keeps its own API key.
11
11
 
@@ -20,26 +20,29 @@ npx motifcode # choose a provider and enter its API key once, the
20
20
  Or `npm install -g motifcode` directly; either way `motif` (or `motifcode`) opens the session
21
21
  from any folder afterwards, with the key saved in `~/.motif/.env`.
22
22
 
23
- 1. Create an API key at [Infron's dashboard](https://infron.ai/dashboard/apiKeys) or
24
- [Morphfactory's console](https://cbt.morphfactory.io/console?view=keys).
25
- 2. Run `motif`, choose the provider and paste its key. It is checked against the endpoint,
26
- saved to `~/.motif/.env` (readable only by you), and never shown to the model. Use
27
- `/provider` to switch, or `/login` and `/logout` to manage the selected provider's key.
28
- 3. Outside a session, use `motif login --provider morphfactory` and
29
- `motif doctor --provider morphfactory`. `--provider infron` selects Infron.
23
+ 1. Create a key for your provider. [OpenRouter keys](https://openrouter.ai/settings/keys) · [Infron keys](https://infron.ai/dashboard/apiKeys) · [Morphfactory keys](https://cbt.morphfactory.io/console?view=keys)
24
+ 2. Run `motif`, choose the provider, and paste its key. Use `/provider` to switch or `/login` and `/logout` to manage the selected provider's key.
25
+ 3. For a script, use `motif login --provider openrouter`, then `motif --provider openrouter -p "your question"`. To probe the model connection, run `motif doctor --provider openrouter`.
30
26
 
31
- The environment keys are `MOTIF_API_KEY` for Infron and `MOTIF_MORPHFACTORY_API_KEY`
32
- for Morphfactory. Use `--provider morphfactory` for a single invocation, or choose
33
- with `/provider` to save the selection. Explicit `--endpoint` and `--model` flags
34
- still override a provider preset.
27
+ In an existing session, open `/provider` and choose OpenRouter to keep working with the same conversation. Enter the new key in the masked prompt, or press Esc to cancel the switch. Use `/status` to see the active endpoint.
28
+
29
+ OpenRouter uses `OPENROUTER_API_KEY` with model `motif-technologies/motif-3`.
30
+ Infron uses `MOTIF_API_KEY`, and Morphfactory uses `MOTIF_MORPHFACTORY_API_KEY`.
31
+ Select either with `--provider infron` or `--provider morphfactory`. Explicit
32
+ `--endpoint` and `--model` flags override the preset.
35
33
 
36
34
  ```bash
37
35
  motif # interactive session in the current directory
38
36
  motif --continue # with the latest conversation here loaded
39
37
  motif "fix the failing test in tests/" # one task, then exit
40
38
  motif -p "what does src/loop.ts do?" # print only the reply, for pipes
39
+ motif -p -- "--help" # pass a flag-looking task literally: -- ends option parsing
41
40
  ```
42
41
 
42
+ A standalone `--` ends flag and subcommand recognition; everything after it is
43
+ the task, so `motif -p -- "--help"` asks about `--help` instead of printing CLI
44
+ help (plain `motif --help` still prints help).
45
+
43
46
  Connect MCP servers and check them from the CLI:
44
47
 
45
48
  ```bash
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.4",
3
- "bytes": 2742619,
4
- "node": "v22.23.4"
2
+ "version": "0.5.1",
3
+ "bytes": 2777079,
4
+ "node": "v22.23.5"
5
5
  }