@polka-codes/cli 0.9.84 → 0.9.86

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