From 4e8e2643902b6b54771aa4bfe287990b115fa795 Mon Sep 17 00:00:00 2001 From: zhi Date: Tue, 24 Mar 2026 19:10:23 +0000 Subject: [PATCH] feat: add default columns to ego.json Initialize ego.json with default columns on first install: - columns (Agent Scope): default-username, name, discord-id, email, role, position, date-of-birth, agent-id, gender - public-columns (Public Scope): git-host, keycloak-host --- install.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.mjs b/install.mjs index 849552d..fb607bb 100755 --- a/install.mjs +++ b/install.mjs @@ -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'); -- 2.49.1