@pi-unipi/updater 3.0.0-alpha.22 → 3.0.0-alpha.23

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/settings.ts +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/updater",
3
- "version": "3.0.0-alpha.22",
3
+ "version": "3.0.0-alpha.23",
4
4
  "description": "Auto-updater, changelog browser, and readme browser for Unipi — checks npm registry, renders CHANGELOG.md and README.md files in TUI overlays",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@pi-unipi/core": "3.0.0-alpha.22"
37
+ "@pi-unipi/core": "3.0.0-alpha.23"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@earendil-works/pi-coding-agent": "^0.87.1",
package/src/settings.ts CHANGED
@@ -46,19 +46,25 @@ registerSettings({
46
46
  key: "checkIntervalMs",
47
47
  type: "enum",
48
48
  label: "Check interval",
49
+ plainOptions: true,
50
+ description: "How often to check npm for updates.",
49
51
  options: [
50
52
  { value: "1800000", label: "30 min" },
51
53
  { value: "3600000", label: "1 hour" },
52
54
  { value: "21600000", label: "6 hours" },
53
55
  { value: "86400000", label: "daily" },
54
56
  ],
55
- description: "How often to check npm for updates",
56
57
  },
57
58
  {
58
59
  key: "autoUpdate",
59
60
  type: "enum",
60
61
  label: "Auto update",
61
- options: ["disabled", "notify", "auto"],
62
+ description: "What happens when an update is found.",
63
+ options: [
64
+ { value: "disabled", label: "disabled", description: "check nothing; update manually" },
65
+ { value: "notify", label: "notify", description: "tell you; you install" },
66
+ { value: "auto", label: "auto", description: "install the update itself" },
67
+ ],
62
68
  },
63
69
  ],
64
70
  },