@comfanion/workflow 4.36.20 → 4.36.21
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/package.json
CHANGED
package/src/build-info.json
CHANGED
|
@@ -40,7 +40,7 @@ Checks for updates and shows a toast notification if a newer version is availabl
|
|
|
40
40
|
- Checks npm registry for latest @comfanion/workflow version
|
|
41
41
|
- Compares with locally installed version
|
|
42
42
|
- Shows toast notification if update available
|
|
43
|
-
- Caches check result for
|
|
43
|
+
- Caches check result for 1 hour
|
|
44
44
|
- Supports EN/UK/RU languages
|
|
45
45
|
|
|
46
46
|
**Toast Example:**
|
|
@@ -12,7 +12,7 @@ import https from "https"
|
|
|
12
12
|
* Configuration in .opencode/config.yaml:
|
|
13
13
|
* version_check:
|
|
14
14
|
* enabled: true # Enable version checking
|
|
15
|
-
* check_interval:
|
|
15
|
+
* check_interval: 3600000 # Check once per hour (ms)
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
const DEBUG = process.env.DEBUG?.includes('version-check') || process.env.DEBUG === '*'
|
|
@@ -118,7 +118,7 @@ async function getLanguage(directory: string): Promise<'en' | 'uk' | 'ru'> {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export const VersionCheckPlugin: Plugin = async ({ directory, client }) => {
|
|
121
|
-
const CHECK_INTERVAL =
|
|
121
|
+
const CHECK_INTERVAL = 60 * 60 * 1000 // 1 hour (you release often! 🚀)
|
|
122
122
|
|
|
123
123
|
const toast = async (message: string, variant: 'info' | 'success' | 'error' = 'info') => {
|
|
124
124
|
try {
|