claude-intern 1.1.0 → 1.1.2

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 +25 -0
  2. package/dist/index.js +157 -153
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -240,6 +240,31 @@ claude-intern --jql "\"Epic Link\" = PROJ-100" --create-pr
240
240
  claude-intern --jql "sprint in openSprints() AND assignee = currentUser()" --max-turns 500
241
241
  ```
242
242
 
243
+ ### Automated Processing with Cron
244
+
245
+ You can set up automated task processing using cron jobs. This is useful for continuously picking up new tasks labeled for the intern to work on:
246
+
247
+ ```bash
248
+ # Example: Process tasks labeled "Intern" in open sprints every 10 minutes
249
+ # Add to crontab (run: crontab -e)
250
+ */10 * * * * cd /path/to/your/project && claude-intern --jql 'statusCategory = "To Do" AND sprint in openSprints() AND labels IN (Intern) ORDER BY created DESC' --max-turns 500 --create-pr --pr-target-branch master >> /tmp/claude-intern-cron.log 2>&1
251
+
252
+ # Example: Process assigned tasks every hour
253
+ 0 * * * * cd /path/to/your/project && claude-intern --jql 'assignee = currentUser() AND status = "To Do" AND labels IN (AutoImpl)' --create-pr >> /tmp/claude-intern-cron.log 2>&1
254
+
255
+ # Example: Process high-priority bugs twice daily
256
+ 0 9,17 * * * cd /path/to/your/project && claude-intern --jql 'type = Bug AND priority = High AND status = "To Do" AND labels IN (Intern)' --max-turns 300 --create-pr >> /tmp/claude-intern-cron.log 2>&1
257
+ ```
258
+
259
+ **Important notes for cron setup:**
260
+ - Always change to your project directory (`cd /path/to/your/project`) to ensure the correct `.claude-intern/.env` is loaded
261
+ - Use absolute paths or ensure PATH includes `claude-intern` and `claude` binaries
262
+ - Redirect output to a log file for monitoring (`>> /tmp/claude-intern-cron.log 2>&1`)
263
+ - Use the `ORDER BY created DESC` clause to process newest tasks first
264
+ - Consider using labels (e.g., `labels = "Intern"`) to mark tasks for automated processing
265
+ - Test your JQL query manually before adding to cron to ensure it returns the expected tasks
266
+ - Monitor the log file regularly to ensure the cron job is running successfully
267
+
243
268
  ## What it does
244
269
 
245
270
  1. Fetches the JIRA task details including: