Squash the current repository state back into one baseline commit while
preserving the README reframing and repository contents.

Constraint: User explicitly requested a single squashed commit with subject "asdf"
Confidence: high
Scope-risk: broad
Reversibility: clean
Directive: This commit intentionally rewrites published history; coordinate before future force-pushes
Tested: git status clean; local history rewritten to one commit; force-pushed main to origin and instructkr
Not-tested: Fresh clone verification after push
This commit is contained in:
did:key:z6MkqDnb7Siv3Cwj7pGJq4T5EsUisECqR8KpnDLwcaZq5TPr
2026-03-31 03:34:03 -07:00
commit d2542c9a62
1903 changed files with 513517 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { saveGlobalConfig } from '../utils/config.js'
/**
* Migrate the `replBridgeEnabled` config key to `remoteControlAtStartup`.
*
* The old key was an implementation detail that leaked into user-facing config.
* This migration copies the value to the new key and removes the old one.
* Idempotent — only acts when the old key exists and the new one doesn't.
*/
export function migrateReplBridgeEnabledToRemoteControlAtStartup(): void {
saveGlobalConfig(prev => {
// The old key is no longer in the GlobalConfig type, so access it via
// an untyped cast. Only migrate if the old key exists and the new key
// hasn't been set yet.
const oldValue = (prev as Record<string, unknown>)['replBridgeEnabled']
if (oldValue === undefined) return prev
if (prev.remoteControlAtStartup !== undefined) return prev
const next = { ...prev, remoteControlAtStartup: Boolean(oldValue) }
delete (next as Record<string, unknown>)['replBridgeEnabled']
return next
})
}