plugin-gentleman 1.1.2 → 1.1.3
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/components.tsx +7 -9
- package/package.json +1 -1
package/components.tsx
CHANGED
|
@@ -74,7 +74,7 @@ export const SidebarMustachi = (props: { theme: TuiThemeCurrent; config: Cfg; is
|
|
|
74
74
|
const randomDir = 1 + Math.floor(Math.random() * (pupilPositionFrames.length - 1))
|
|
75
75
|
setPupilIndex(randomDir)
|
|
76
76
|
}
|
|
77
|
-
},
|
|
77
|
+
}, 3000) // Natural cadence: check every 3s for eye movement
|
|
78
78
|
|
|
79
79
|
onCleanup(() => clearInterval(interval))
|
|
80
80
|
})
|
|
@@ -97,13 +97,12 @@ export const SidebarMustachi = (props: { theme: TuiThemeCurrent; config: Cfg; is
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
const interval = setInterval(() => {
|
|
100
|
-
//
|
|
100
|
+
// Natural blink frequency (~every 5-6 seconds)
|
|
101
101
|
// 35% chance every 2s = average 5.7s between blinks
|
|
102
|
-
|
|
103
|
-
if (Math.random() < 0.6) {
|
|
102
|
+
if (Math.random() < 0.35) {
|
|
104
103
|
blinkSequence()
|
|
105
104
|
}
|
|
106
|
-
},
|
|
105
|
+
}, 2000) // Natural cadence: check every 2s for blink
|
|
107
106
|
|
|
108
107
|
onCleanup(() => clearInterval(interval))
|
|
109
108
|
})
|
|
@@ -173,14 +172,13 @@ export const SidebarMustachi = (props: { theme: TuiThemeCurrent; config: Cfg; is
|
|
|
173
172
|
}, 8000)
|
|
174
173
|
}
|
|
175
174
|
|
|
176
|
-
//
|
|
177
|
-
|
|
178
|
-
const firstDelay = 5000 + Math.random() * 3000
|
|
175
|
+
// First cycle after 30-45s, then every 45-60s (calm, occasional expressiveness)
|
|
176
|
+
const firstDelay = 30000 + Math.random() * 15000
|
|
179
177
|
const firstTimeout = setTimeout(triggerExpressiveCycle, firstDelay)
|
|
180
178
|
|
|
181
179
|
const interval = setInterval(() => {
|
|
182
180
|
triggerExpressiveCycle()
|
|
183
|
-
},
|
|
181
|
+
}, 45000 + Math.random() * 15000)
|
|
184
182
|
|
|
185
183
|
onCleanup(() => {
|
|
186
184
|
clearTimeout(firstTimeout)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "plugin-gentleman",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"description": "OpenCode TUI plugin featuring Mustachi - an animated ASCII mascot with eyes, mustache, and optional motivational phrases during busy states",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|