@riflo/ryte 1.1.2 → 1.1.3
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/package.json +1 -1
- package/src/index.js +9 -9
- package/src/prompt.js +3 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -131,15 +131,15 @@ async function main() {
|
|
|
131
131
|
await handlePR();
|
|
132
132
|
} else {
|
|
133
133
|
console.log(`
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
\x1b[
|
|
142
|
-
\x1b[90mv1.1.
|
|
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
|
+
\x1b[1;38;5;39m██╔══██╗\x1b[1;38;5;63m ╚██╔╝ \x1b[1;38;5;129m ██║ \x1b[1;38;5;161m██╔══╝ \x1b[0m
|
|
138
|
+
\x1b[1;38;5;39m██║ ██║\x1b[1;38;5;63m ██║ \x1b[1;38;5;129m ██║ \x1b[1;38;5;161m███████╗\x1b[0m
|
|
139
|
+
\x1b[1;38;5;39m╚═╝ ╚═╝\x1b[1;38;5;63m ╚═╝ \x1b[1;38;5;129m ╚═╝ \x1b[1;38;5;161m╚══════╝\x1b[0m
|
|
140
|
+
|
|
141
|
+
\x1b[1;38;5;46m[ THE AI-POWERED GIT INFRASTRUCTURE ]\x1b[0m
|
|
142
|
+
\x1b[90mv1.1.3 | by Riflo\x1b[0m
|
|
143
143
|
|
|
144
144
|
\x1b[33mCOMMANDS:\x1b[0m
|
|
145
145
|
\x1b[32mryte c\x1b[0m Generate semantic commit from diff
|
package/src/prompt.js
CHANGED
|
@@ -15,7 +15,9 @@ 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-
|
|
18
|
+
9. Anti-Hallucination: Documentation files (like README.md) often contain example commit messages (e.g., "feat(auth): ..."). DO NOT assume these examples are the topic of the current change.
|
|
19
|
+
10. Logical Validation: Your suggested <scope> must be derived from actual modified logic in the diff, not from text inside code blocks, comments, or examples within a documentation file.
|
|
20
|
+
11. If only README.md or docs are changed, the type MUST be "docs" and the scope should relate to the documentation structure (e.g., "readme", "config", "intro"), NOT the example code inside it.
|
|
19
21
|
|
|
20
22
|
Example:
|
|
21
23
|
feat(ui): add loading state to checkout button
|