mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-27 18:20:23 +08:00
适配 master 当前提示词组合
This commit is contained in:
1 parent
057e473a6c
commit
fdfecb09fc
18 files changed
+104
-143
No files matched your search
@@ -19,7 +19,7 @@ export interface UnrestrictedSettings {
|
||||
|
||||
/** Per-preset fusion state reported by the host half. */
|
||||
export interface UnrestrictedModeState {
|
||||
state: 'off' | 'checking' | 'active' | 'incompatible'
|
||||
state: 'off' | 'checking' | 'active' | 'failed'
|
||||
issues: string[]
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ export interface UnrestrictedModeState {
|
||||
export interface UnrestrictedStatus {
|
||||
enabled: boolean
|
||||
modes: Record<string, UnrestrictedModeState>
|
||||
supported: { version: string; commit: string }
|
||||
}
|
||||
|
||||
/** Full view snapshot the card subscribes to. */
|
||||
@@ -132,7 +131,7 @@ export function createUnrestrictedController(ctx: Context) {
|
||||
async function setEnabled(enabled: boolean): Promise<void> {
|
||||
await settings.set('enabled', enabled)
|
||||
publish()
|
||||
// The host applies the toggle on the same commit; give it one turn first.
|
||||
// Give the host settings watcher one turn before reading its derived state.
|
||||
setTimeout(() => void refresh(), 300)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user