@polka-codes/cli 0.9.83 → 0.9.85

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 (3) hide show
  1. package/README.md +177 -22
  2. package/dist/index.js +19739 -1297
  3. package/package.json +4 -3
package/README.md CHANGED
@@ -35,62 +35,217 @@ polka "implement user authentication"
35
35
 
36
36
  The CLI will intelligently determine the best workflow to handle your request. For more specific tasks, you can use the following commands:
37
37
 
38
- ### `code`
38
+ ### Core Commands
39
39
 
40
- Generate code based on a description.
40
+ #### `code`
41
+
42
+ Plan and implement a feature or task using AI agents.
41
43
 
42
44
  ```bash
43
- polka code "create a React component for a login form"
45
+ polka code "Add user authentication with OAuth"
46
+ polka code --preview "Add login form" # Show diff before applying
44
47
  ```
45
48
 
46
- ### `plan`
49
+ **Features:**
50
+ - Architect agent creates implementation plan
51
+ - Coder agent implements the plan
52
+ - Automatic fix workflow runs after implementation
53
+ - Optional diff preview mode
54
+
55
+ #### `plan`
47
56
 
48
57
  Create an implementation plan for a new feature or refactor.
49
58
 
50
59
  ```bash
51
- polka plan "refactor the database schema to support multi-tenancy"
60
+ polka plan "Add user authentication"
61
+ polka plan --plan-file auth-plan.md "Update auth system"
52
62
  ```
53
63
 
54
- ### `epic`
64
+ **Features:**
65
+ - Creates detailed step-by-step plans
66
+ - Saves to markdown files for review
67
+ - Can update existing plans
68
+
69
+ #### `epic`
55
70
 
56
- Break down a large task into smaller, manageable sub-tasks.
71
+ Orchestrate a large feature or epic, breaking it down into smaller tasks and executing them sequentially.
57
72
 
58
73
  ```bash
59
- polka epic "build a new e-commerce platform"
74
+ polka epic "Build a complete e-commerce platform"
75
+ polka epic --no-review "Quick prototype" # Skip review step
60
76
  ```
61
77
 
62
- ### `fix`
78
+ **Features:**
79
+ - Breaks large features into manageable tasks
80
+ - Maintains context across tasks
81
+ - Persistent todo list
82
+ - Optional review step
63
83
 
64
- Identify and fix bugs in your codebase by running a command (like tests) and letting Polka fix the issues.
84
+ #### `fix`
85
+
86
+ Automatically fix failing tests or commands by running them and letting AI fix errors.
65
87
 
66
88
  ```bash
67
- polka fix "npm test"
89
+ polka fix # Uses default check/test scripts
90
+ polka fix "bun test" # Fix specific test failures
91
+ polka fix -p "Focus on auth" # Provide additional context
68
92
  ```
69
93
 
70
- ### `review`
94
+ **Features:**
95
+ - Iterative fixing with bail conditions
96
+ - Uses check/test/format scripts from `.polkacodes.yml`
97
+ - Supports custom commands
98
+
99
+ #### `review`
71
100
 
72
- Review a pull request.
101
+ Review code changes (GitHub PR or local) with AI-powered feedback.
73
102
 
74
103
  ```bash
75
- polka review --pr 123
104
+ polka review # Review local changes
105
+ polka review --pr 123 # Review GitHub PR
106
+ polka review --range HEAD~5..HEAD # Review commit range
107
+ polka review --loop 3 # Re-review until clean
108
+ polka review --json # JSON output for automation
76
109
  ```
77
110
 
78
- ### `meta`
111
+ **Features:**
112
+ - Reviews staged changes, unstaged changes, or commit ranges
113
+ - GitHub PR review with `gh` integration
114
+ - Iterative remediation with `--loop`
115
+ - Can automatically apply fixes
79
116
 
80
- The `meta` command orchestrates complex workflows by running other commands in sequence. It's used internally by the CLI but can also be used for advanced use cases.
117
+ #### `commit`
81
118
 
82
- ### `init`
119
+ Generate a commit message based on your staged changes.
83
120
 
84
- Initialize Polka Codes configuration for your project.
121
+ ```bash
122
+ polka commit # Generate message for staged changes
123
+ polka commit -a # Stage all changes first
124
+ polka commit --context "Fixed login bug" # Add context
125
+ ```
126
+
127
+ #### `pr`
128
+
129
+ Create a GitHub pull request with AI-generated title and description.
85
130
 
86
131
  ```bash
87
- # Create local config
88
- polka init
132
+ polka pr
133
+ polka pr --context "Implements user authentication"
134
+ ```
135
+
136
+ #### `workflow`
89
137
 
90
- # Create global config
91
- polka init --global
138
+ Run custom workflow files.
139
+
140
+ ```bash
141
+ polka workflow -f my-workflow.workflow
142
+ polka workflow -f custom.workflow -w customWorkflow
92
143
  ```
93
144
 
145
+ ### Checkpoint Commands
146
+
147
+ #### `checkpoints`
148
+
149
+ List available checkpoints for resuming work.
150
+
151
+ ```bash
152
+ polka checkpoints # List all checkpoints
153
+ polka checkpoints --verbose # Show detailed info
154
+ ```
155
+
156
+ **Output shows:**
157
+ - Checkpoint name and timestamp
158
+ - Completed, failed, and pending tasks
159
+ - Instructions to resume
160
+
161
+ #### `continue`
162
+
163
+ Resume work from a checkpoint.
164
+
165
+ ```bash
166
+ polka continue # Resume latest checkpoint
167
+ polka continue <checkpoint-name> # Resume specific checkpoint
168
+ polka continue --list # List checkpoints in continue mode
169
+ ```
170
+
171
+ **Features:**
172
+ - Shows task status (completed, failed, pending)
173
+ - Provides instructions to restore state
174
+ - Helps continue from where you left off
175
+
176
+ ### Utility Commands
177
+
178
+ #### `init`
179
+
180
+ Initialize Polka Codes configuration.
181
+
182
+ ```bash
183
+ polka init # Create local config
184
+ polka init --global # Create global config
185
+ polka init script my-script # Generate script template
186
+ polka init skill # Generate skill template
187
+ ```
188
+
189
+ #### `run`
190
+
191
+ Run custom scripts from `.polkacodes.yml`.
192
+
193
+ ```bash
194
+ polka run # List available scripts
195
+ polka run deploy # Run specific script
196
+ polka run deploy -- --prod # Pass arguments to script
197
+ ```
198
+
199
+ #### `skills`
200
+
201
+ Manage agent skills.
202
+
203
+ ```bash
204
+ polka skills # List available skills
205
+ polka skills create # Create new skill
206
+ ```
207
+
208
+ ### Advanced Commands
209
+
210
+ #### `mcp-server`
211
+
212
+ Start Polka Codes as an MCP server for Claude Code.
213
+
214
+ ```bash
215
+ polka mcp-server
216
+ ```
217
+
218
+ **Configure with Claude Code:**
219
+
220
+ ```bash
221
+ claude mcp add polka polka mcp-server
222
+ ```
223
+
224
+ Or manually edit `~/.claude/config.json`:
225
+
226
+ ```json
227
+ {
228
+ "mcpServers": {
229
+ "polka": {
230
+ "command": "polka",
231
+ "args": ["mcp-server"]
232
+ }
233
+ }
234
+ }
235
+ ```
236
+
237
+ Exposes workflows as MCP tools for use with Claude Code.
238
+
239
+ #### `agent`
240
+
241
+ Run autonomous agent for continuous improvement.
242
+
243
+ ```bash
244
+ polka agent "Fix all failing tests"
245
+ ```
246
+
247
+ **Note:** This is experimental and primarily used for task discovery and planning.
248
+
94
249
  ### Git Integration
95
250
 
96
251
  #### `commit`