instar 0.3.0 → 0.3.1
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/dist/commands/init.js +4 -4
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -525,15 +525,15 @@ function getDefaultJobs(port) {
|
|
|
525
525
|
{
|
|
526
526
|
slug: 'update-check',
|
|
527
527
|
name: 'Update Check',
|
|
528
|
-
description: 'Check if a newer version of instar is available. Understand what changed, notify the user
|
|
529
|
-
schedule: '
|
|
530
|
-
priority: '
|
|
528
|
+
description: 'Check if a newer version of instar is available. Understand what changed, notify the user, and apply the update. Runs frequently during early adoption.',
|
|
529
|
+
schedule: '*/30 * * * *',
|
|
530
|
+
priority: 'medium',
|
|
531
531
|
expectedDurationMinutes: 2,
|
|
532
532
|
model: 'haiku',
|
|
533
533
|
enabled: true,
|
|
534
534
|
execute: {
|
|
535
535
|
type: 'prompt',
|
|
536
|
-
value: `Check for instar updates: curl http://localhost:${port}/updates. If updateAvailable is false, do
|
|
536
|
+
value: `Check for instar updates: curl -s http://localhost:${port}/updates. If updateAvailable is false, exit silently — do NOT notify the user or produce any output. If updateAvailable is true: 1) Read the changeSummary to understand what changed. 2) Apply the update immediately: curl -s -X POST http://localhost:${port}/updates/apply. 3) After successful apply, notify the user via Telegram (if configured) with a brief, conversational message: what version was installed, what's new (plain language, not jargon), and that a server restart is needed if restartNeeded is true. 4) If the update fails, notify the user with the error. Rollback is available: curl -s -X POST http://localhost:${port}/updates/rollback. Keep this lightweight — no output when there's nothing to report.`,
|
|
537
537
|
},
|
|
538
538
|
tags: ['coherence', 'default'],
|
|
539
539
|
},
|