ultrahope 0.1.2 → 0.1.4
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 +31 -0
- package/dist/git-ultrahope.js +822 -401
- package/dist/index.js +1010 -373
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ ultrahope login
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
This will display a URL and code. Open the URL in your browser, sign in, and enter the code to authorize the CLI.
|
|
22
|
+
On first successful login, `${XDG_CONFIG_HOME:-~/.config}/ultrahope/config.toml` is created automatically if missing.
|
|
22
23
|
|
|
23
24
|
### Translate
|
|
24
25
|
|
|
@@ -33,6 +34,21 @@ git diff main | ultrahope translate --target pr-title-body
|
|
|
33
34
|
|
|
34
35
|
# Analyze PR intent
|
|
35
36
|
git diff main | ultrahope translate --target pr-intent
|
|
37
|
+
|
|
38
|
+
# Override models for this run
|
|
39
|
+
git diff --staged | ultrahope translate --target vcs-commit-message --models mistral/ministral-3b,xai/grok-code-fast-1
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Guide context for commit/message generation
|
|
43
|
+
|
|
44
|
+
`git ultrahope commit` と `ultrahope jj describe` では `--guide <text>` を使って、差分だけでは分からない生成意図を補足できます。
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# git commit の生成補足
|
|
48
|
+
git add -A && git ultrahope commit --guide "GHSA-gq3j-xvxp-8hrf: override reason"
|
|
49
|
+
|
|
50
|
+
# jj describe の生成補足
|
|
51
|
+
jj ultrahope describe --guide "GHSA-gq3j-xvxp-8hrf: override reason"
|
|
36
52
|
```
|
|
37
53
|
|
|
38
54
|
#### Targets
|
|
@@ -47,6 +63,21 @@ git diff main | ultrahope translate --target pr-intent
|
|
|
47
63
|
|
|
48
64
|
- `ULTRAHOPE_API_URL` - API endpoint (default: `https://ultrahope.dev`)
|
|
49
65
|
|
|
66
|
+
### Models Configuration
|
|
67
|
+
|
|
68
|
+
Models are resolved in this order (highest priority first):
|
|
69
|
+
|
|
70
|
+
1. CLI flag: `--models <model1,model2,...>`
|
|
71
|
+
2. Project config: nearest `.ultrahope.toml` or `ultrahope.toml` in current/parent directories
|
|
72
|
+
3. Global config: `${XDG_CONFIG_HOME:-~/.config}/ultrahope/config.toml`
|
|
73
|
+
4. Built-in defaults
|
|
74
|
+
|
|
75
|
+
Example config:
|
|
76
|
+
|
|
77
|
+
```toml
|
|
78
|
+
models = ["mistral/ministral-3b", "xai/grok-code-fast-1"]
|
|
79
|
+
```
|
|
80
|
+
|
|
50
81
|
### Credentials
|
|
51
82
|
|
|
52
83
|
Credentials are stored in `~/.config/ultrahope/credentials.json`.
|