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.
@@ -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 conversationally, and offer to apply the update.',
529
- schedule: '0 9 * * *',
530
- priority: 'low',
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 nothing. If updateAvailable is true: 1) Read the changeSummary field to understand what changed. 2) Check .instar/config.json for updates.autoApply if true, apply automatically. If false (default): notify the user conversationally via Telegram (if configured) tell them what version is available, what changed (in plain language, not technical jargon), and ask if they'd like to apply it. 3) When approved (or auto-apply is on), apply: curl -X POST http://localhost:${port}/updates/apply. 4) Report the result — whether it succeeded, what version is now installed, and whether a restart is needed. If something goes wrong after an update, rollback is available: curl -X POST http://localhost:${port}/updates/rollback.`,
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Persistent autonomy infrastructure for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",