@goodandready/dsh-clinebot 0.3.5 → 0.3.6
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/CHANGELOG.md +7 -0
- package/lib/client.js +24 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to `@goodandready/dsh-clinebot` will be documented in this f
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.6] - 2026-09-09
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Restored `handleSmoke` diagnostics handler**: Re-introduced missing `handleSmoke` click callback in `SettingsPage`, fixing `handleSmoke is not defined` runtime error during Diagnostics card interaction.
|
|
12
|
+
- **Defensive ErrorBoundary child rendering**: Hardened `ErrorBoundary.render()` with `this.props?.children || null` to prevent unhandled exceptions if props are omitted.
|
|
13
|
+
- **Comprehensive UI render integrity test**: Added recursive VDOM component tree evaluation test in `test/client-modules.test.js` covering all 190+ elements and verifying definition of all 18 event handlers.
|
|
14
|
+
|
|
8
15
|
## [0.3.5] - 2026-09-09
|
|
9
16
|
|
|
10
17
|
### Fixed
|
package/lib/client.js
CHANGED
|
@@ -298,7 +298,7 @@ window.__ModuleLoader__.load({
|
|
|
298
298
|
)
|
|
299
299
|
)
|
|
300
300
|
}
|
|
301
|
-
return this.props
|
|
301
|
+
return this.props?.children || null
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
@@ -526,6 +526,29 @@ window.__ModuleLoader__.load({
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
+
// Smoke chat test
|
|
530
|
+
async function handleSmoke() {
|
|
531
|
+
setBusy('smoke')
|
|
532
|
+
setErr('')
|
|
533
|
+
setMsg('')
|
|
534
|
+
setSmokeResult(null)
|
|
535
|
+
try {
|
|
536
|
+
const res = await fetch(`${ROUTE_PREFIX}/smoke`, {
|
|
537
|
+
method: 'POST',
|
|
538
|
+
headers: { 'Content-Type': 'application/json' },
|
|
539
|
+
body: JSON.stringify({ model: draft?.defaultModel }),
|
|
540
|
+
})
|
|
541
|
+
const data = await res.json().catch(() => ({}))
|
|
542
|
+
if (!data.ok) throw new Error(data.error || `HTTP ${res.status}`)
|
|
543
|
+
setSmokeResult(data)
|
|
544
|
+
setMsg(t('diag.smoke_ok', { latency: data.latencyMs }))
|
|
545
|
+
} catch (e) {
|
|
546
|
+
setErr(String(e.message || e))
|
|
547
|
+
} finally {
|
|
548
|
+
setBusy('')
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
529
552
|
// Fast Browser Login
|
|
530
553
|
async function handleFastLogin() {
|
|
531
554
|
setBusy('fast-login')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-clinebot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "DeepSeek Harness companion for ClineBot / ClinePass: dynamic subscription models sync, quota exhaustion warnings, session metrics, dedicated settings page, live usage limits, and /cline slash-command.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|