@riflo/ryte 1.0.1 → 1.1.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
@@ -2,17 +2,21 @@
2
2
 
3
3
  > **Write it right.** AI-powered Git workflow CLI for developers who care about clean history and velocity.
4
4
 
5
+ *Turn messy git logs into structured, semantic history — instantly.*
6
+
5
7
  [![npm version](https://img.shields.io/npm/v/@riflo/ryte.svg?style=flat-square)](https://www.npmjs.com/package/@riflo/ryte)
6
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
7
9
  [![Node Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg?style=flat-square)](https://nodejs.org)
8
10
 
9
11
  ---
10
12
 
13
+ ![RYTE Demo](demo.gif)
14
+
11
15
  ## Introduction
12
16
 
13
17
  Writing meaningful commit messages and well-structured Pull Requests is critical for team collaboration, but it’s often a friction point in a fast-paced development cycle.
14
18
 
15
- **ryte** is your CLI companion that bridge the gap between "coding" and "documenting". It reads your git diffs, understands the context of your changes, and generates professional, semantic-compliant messages in seconds.
19
+ **ryte** is your CLI companion that **bridges** the gap between "coding" and "documenting". It reads your git diffs, understands the context of your changes, and generates professional, semantic-compliant messages in seconds.
16
20
 
17
21
  ### Core Value
18
22
  - **Zero Friction**: Stay in the terminal. No Web UI, no heavy extensions.
@@ -29,7 +33,10 @@ Writing meaningful commit messages and well-structured Pull Requests is critical
29
33
  npm install -g @riflo/ryte
30
34
 
31
35
  # 2. Set your free AI key (get one at console.groq.com)
36
+ # Mac/Linux:
32
37
  export GROQ_API_KEY="gsk_..."
38
+ # Windows (PowerShell):
39
+ $env:GROQ_API_KEY="gsk_..."
33
40
 
34
41
  # 3. Stage your changes and go
35
42
  git add .
@@ -56,7 +63,19 @@ With `ryte c`, it looks like this:
56
63
  ✅ chore: update dependencies to remove security vulnerabilities
57
64
  ```
58
65
 
59
- One command. Same diff. Zero manual thinking.
66
+ ### See the Magic
67
+
68
+ **What RYTE sees (`git diff --staged`):**
69
+ ```diff
70
+ + const refreshToken = generateToken(user.id)
71
+ + await saveTokenToDB(refreshToken)
72
+ + return res.cookie('refresh_token', refreshToken, { httpOnly: true })
73
+ ```
74
+
75
+ **What RYTE writes:**
76
+ > `feat(auth): implement JWT refresh token rotation via HTTP-only cookies`
77
+
78
+ One command. Same diff. Clean history.
60
79
 
61
80
  ---
62
81
 
@@ -141,7 +160,8 @@ Fair question. Here's an honest comparison:
141
160
  | Free tier available | ❌ | ✅ (via Groq) |
142
161
  | BYOK (Bring Your Own Key) | ❌ | ✅ |
143
162
 
144
- Copilot is great for writing code. RYTE is for **documenting the intent** behind it.
163
+ *Copilot helps you write code.*
164
+ **RYTE helps your future self understand it.**
145
165
 
146
166
  ---
147
167
 
@@ -165,7 +185,7 @@ We understand that sending code to an external API is a sensitive decision. Here
165
185
 
166
186
  ## Configuration
167
187
 
168
- **ryte** requires an API key to function. We support two providers:
188
+ **ryte** requires an API key to function. We support high-performance LLM providers like Groq and OpenAI.
169
189
 
170
190
  ### Groq (Recommended - Free & Instant)
171
191
  Get your free key at [console.groq.com](https://console.groq.com/keys).
@@ -205,7 +225,7 @@ We believe that **every commit should be written right**. A clean git history is
205
225
 
206
226
  Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
207
227
 
208
- Please see [CONTRIBUTING.md](file:///d:/pact/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.
228
+ Please see our [Contributing Guide](https://github.com/Rifuroo/ryte/blob/main/CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
209
229
 
210
230
  ---
211
231
 
package/demo.gif ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riflo/ryte",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "AI Git Workflow Assistant - Generate semantic commits and PRs",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -128,14 +128,24 @@ async function main() {
128
128
  await handlePR();
129
129
  } else {
130
130
  console.log(`
131
- \x1b[36mRYTE - AI Git Workflow Assistant\x1b[0m
132
- Author: Riflo
133
-
134
- Usage:
135
- ryte c Generate semantic commit from staged diff
136
- ryte pr Generate PR markdown description from branch commits
137
-
138
- Set GROQ_API_KEY (Free) or OPENAI_API_KEY environment variable.
131
+ \x1b[1;38;5;39m██████╗ \x1b[1;38;5;63m██╗ ██╗\x1b[1;38;5;129m████████╗\x1b[1;38;5;161m███████╗\x1b[0m
132
+ \x1b[1;38;5;39m██╔══██╗\x1b[1;38;5;63m╚██╗ ██╔╝\x1b[1;38;5;129m╚══██╔══╝\x1b[1;38;5;161m██╔════╝\x1b[0m
133
+ \x1b[1;38;5;39m██████╔╝\x1b[1;38;5;63m ╚████╔╝ \x1b[1;38;5;129m ██║ \x1b[1;38;5;161m█████╗ \x1b[0m
134
+ \x1b[1;38;5;39m██╔══██╗\x1b[1;38;5;63m ╚██╔╝ \x1b[1;38;5;129m ██║ \x1b[1;38;5;161m██╔══╝ \x1b[0m
135
+ \x1b[1;38;5;39m██║ ██║\x1b[1;38;5;63m ██║ \x1b[1;38;5;129m ██║ \x1b[1;38;5;161m███████╗\x1b[0m
136
+ \x1b[1;38;5;39m╚═╝ ╚═╝\x1b[1;38;5;63m ╚═╝ \x1b[1;38;5;129m ╚═╝ \x1b[1;38;5;161m╚══════╝\x1b[0m
137
+
138
+ \x1b[90mAI-Powered Git Workflow Assistant\x1b[0m
139
+ \x1b[90mv1.1.1 | by Riflo\x1b[0m
140
+
141
+ \x1b[33mCOMMANDS:\x1b[0m
142
+ \x1b[32mryte c\x1b[0m Generate semantic commit from diff
143
+ \x1b[32mryte pr\x1b[0m Generate PR markdown from branch commits
144
+
145
+ \x1b[33mGETTING STARTED:\x1b[0m
146
+ Set either environment variable to unleash the AI:
147
+ • \x1b[36mGROQ_API_KEY\x1b[0m (Recommended / Free tier)
148
+ • \x1b[36mOPENAI_API_KEY\x1b[0m (OpenAI API key)
139
149
  `);
140
150
  }
141
151
 
package/src/prompt.js CHANGED
@@ -15,6 +15,7 @@ RULES:
15
15
  6. Scope: If the diff is localized, infer a scope (e.g., "auth", "ui", "config").
16
16
  7. Body (Optional): If the change is complex, add a brief body after 1 blank line to explain technical nuances.
17
17
  8. Context: If a branch name or ticket is provided, incorporate it into the scope or footer if applicable.
18
+ 9. Anti-Plagiarism: If the diff shows documentation changes containing example commit messages, DO NOT copy those examples. Always synthesize a new message describing the actual change.
18
19
 
19
20
  Example:
20
21
  feat(ui): add loading state to checkout button