Add Khanegi default appearance snapshot seed and strip SA meta from get_user.
Mirrors Hamkar so each khanegi tenant can restore its factory ui-config without exposing defaultSnapshot publicly. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -148,7 +148,7 @@ export function buildKhanegiUiFromColors(input: {
|
||||
onAccent: '#ffffff',
|
||||
}
|
||||
|
||||
return {
|
||||
const base = {
|
||||
schemaId: 'ui-config',
|
||||
version: '1.0.0',
|
||||
app: {
|
||||
@@ -198,4 +198,12 @@ export function buildKhanegiUiFromColors(input: {
|
||||
pages: {},
|
||||
_backfill: 'colors-from-live-registry',
|
||||
}
|
||||
|
||||
return {
|
||||
...base,
|
||||
defaultSnapshot: {
|
||||
app: JSON.parse(JSON.stringify(base.app)),
|
||||
pages: JSON.parse(JSON.stringify(base.pages || {})),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user