feat: add default columns to ego.json #13
@@ -296,13 +296,13 @@ async function install() {
|
||||
// Initialize ego.json if it doesn't exist
|
||||
const egoJsonPath = join(openclawPath, 'ego.json');
|
||||
if (!existsSync(egoJsonPath)) {
|
||||
const emptyEgo = {
|
||||
columns: [],
|
||||
'public-columns': [],
|
||||
const defaultEgo = {
|
||||
columns: ['default-username', 'name', 'discord-id', 'email', 'role', 'position', 'date-of-birth', 'agent-id', 'gender'],
|
||||
'public-columns': ['git-host', 'keycloak-host'],
|
||||
'public-scope': {},
|
||||
'agent-scope': {},
|
||||
};
|
||||
writeFileSync(egoJsonPath, JSON.stringify(emptyEgo, null, 2) + '\n', { mode: 0o644 });
|
||||
writeFileSync(egoJsonPath, JSON.stringify(defaultEgo, null, 2) + '\n', { mode: 0o644 });
|
||||
logOk('Created ego.json');
|
||||
} else {
|
||||
logOk('ego.json already exists');
|
||||
|
||||
Reference in New Issue
Block a user