scai 0.1.106 → 0.1.107

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.
Files changed (2) hide show
  1. package/README.md +86 -33
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,33 @@
1
1
  # ⚙️ scai — Smart Commit AI ✨
2
2
 
3
- > AI-powered CLI tool for commit messages **and** pull request reviews — using local models.
3
+ > AI-powered CLI tool for commit messages, pull request reviews, **and agent-driven workflows** — using local models.
4
4
 
5
5
  **scai** is your AI pair‑programmer in the terminal. Focus on coding while scai:
6
-
7
- - 💬 **Suggests intelligent Git commit messages** based on your staged diff
8
- - 🤖 **Reviews open pull requests** and provides AI‑driven feedback (BETA)
9
- - 📝 **Generates comments for multiple files** while you keep coding
10
- - 📜 Auto‑updates your changelog
11
- - 🔍 (ALPHA) Search & ask questions across your codebase
12
- - 🔐 100% local no API keys, no cloud, no telemetry
6
+
7
+ * 💬 **Suggests intelligent Git commit messages** based on your staged diff
8
+ * 🤖 **Reviews open pull requests** and provides AI‑driven feedback (BETA)
9
+ * 📝 **Generates comments for multiple files** while you keep coding
10
+ * 🤖 **Runs agent workflows** to automate repetitive tasks like summarizing, commenting, or running tests — run agents on single files or entire folders with custom goals
11
+ * 📜 Auto‑updates your changelog
12
+ * 🔍 (ALPHA) Search & ask questions across your codebase
13
+ * 🔐 100% local — no API keys, no cloud, no telemetry
14
+
15
+ ---
16
+
17
+ ### 🧩 Agent Mode Examples
18
+
19
+ Run an agent workflow with goals:
20
+
21
+ ```bash
22
+ # Run comments and tests on a single file
23
+ $ scai agent run comments tests -f path/to/myfile
24
+
25
+ # Run summary on all files in a folder
26
+ $ scai agent run summary -f path/to/myfolder
27
+ ```
28
+
29
+ The agent mode allows you to chain goals (`summary → comments → tests`) while processing files or directories automatically, keeping your workflow fast and focused.
30
+
13
31
 
14
32
  ---
15
33
 
@@ -52,6 +70,42 @@ scai runs entirely on your machine and doesn't require cloud APIs or API keys. T
52
70
  scai init
53
71
  ```
54
72
 
73
+ ---
74
+
75
+ ## 🤖 Agent Workflow Command
76
+
77
+ The `agent` command allows you to run a sequence of AI-powered workflows (goals) on one or multiple files or even an entire folder. This is useful for tasks like generating comments, summaries, or tests, while letting the AI work in the background as you continue coding.
78
+
79
+ ### Usage
80
+
81
+ ```bash
82
+ # Run agent with comments and tests on a single file
83
+ scai agent run comments tests -f path/to/file.ts
84
+
85
+ # Run agent on an entire folder
86
+ scai agent run comments tests -f path/to/folder
87
+ ```
88
+
89
+ You can provide multiple goals, which will be executed in the order specified. Currently supported example goals:
90
+
91
+ * `summary` – Summarize a file
92
+ * `comments` – Add inline comments to code
93
+ * `tests` – Generate test stubs (ALPHA)
94
+
95
+ #### Features
96
+
97
+ * ✅ Works on single files or entire folders recursively
98
+ * ✅ Processes multiple files in the background, so you can continue coding
99
+ * ✅ Modular design allows you to chain goals (e.g., `comments → tests → summary`)
100
+
101
+ #### Notes
102
+
103
+ * Only `summary`, `comments`, and `tests` are currently fully supported. Other modules are experimental.
104
+ * The agent resolves folders into all supported files (`.ts`, `.js`, etc.) automatically.
105
+ * Background processing allows you to queue multiple files without waiting for each one to finish interactively.
106
+
107
+ ---
108
+
55
109
  ## ✨ AI Code Review, Powered by Your Terminal
56
110
 
57
111
  No more struggling to write pull request descriptions by hand. `scai git review` automatically generates a rich summary of your changes, complete with context, suggestions, and rationale.
@@ -95,6 +149,30 @@ To interact with GitHub and create pull requests, `scai` needs a personal access
95
149
 
96
150
  ---
97
151
  ## ⚒️ Usage Overview
152
+
153
+ ### 🔧 How to Use `scai git commit`
154
+
155
+ Use AI to suggest a meaningful commit message based on your staged code:
156
+
157
+ ```bash
158
+ git add .
159
+ scai git commit
160
+ ```
161
+
162
+ You can also include a changelog entry along with the commit:
163
+
164
+ ```bash
165
+ scai git commit --changelog
166
+ ```
167
+
168
+ This will:
169
+ 1. Suggest a commit message based on your `git diff --cached`
170
+ 2. Propose a changelog entry (if relevant)
171
+ 3. Allow you to approve, regenerate, or skip the changelog
172
+ 4. Automatically stage and commit the changes
173
+
174
+ ---
175
+
98
176
  ### 🧠 How to Use `scai git review`
99
177
 
100
178
  ```bash
@@ -182,31 +260,6 @@ You might consider renaming `sessionManager` to better reflect its dual role in
182
260
  5) 🚪 Cancel
183
261
  ```
184
262
 
185
-
186
-
187
- ### 🔧 How to Use `scai git commit`
188
-
189
- Use AI to suggest a meaningful commit message based on your staged code:
190
-
191
- ```bash
192
- git add .
193
- scai git commit
194
- ```
195
-
196
- You can also include a changelog entry along with the commit:
197
-
198
- ```bash
199
- scai git commit --changelog
200
- ```
201
-
202
- This will:
203
- 1. Suggest a commit message based on your `git diff --cached`
204
- 2. Propose a changelog entry (if relevant)
205
- 3. Allow you to approve, regenerate, or skip the changelog
206
- 4. Automatically stage and commit the changes
207
-
208
- ---
209
-
210
263
  ### 📝 Generate a Standalone Changelog Entry
211
264
 
212
265
  If you want to generate a changelog entry without committing:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scai",
3
- "version": "0.1.106",
3
+ "version": "0.1.107",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "scai": "./dist/index.js"