clementine-agent 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/admin-tools.js +0 -10
- package/package.json +1 -1
|
@@ -166,16 +166,6 @@ export function registerAdminTools(server) {
|
|
|
166
166
|
logger.info({ key: normalizedKey, existed, masked: maskSecret(value), storage: useKeychain ? 'keychain' : 'env' }, 'env_set');
|
|
167
167
|
return textResult(`${existed ? 'Updated' : 'Added'} ${normalizedKey} (value: ${maskSecret(value)}). ${backendNote}. Active immediately — no restart needed.`);
|
|
168
168
|
});
|
|
169
|
-
server.tool('env_list', 'List the names of environment variables configured in ~/.clementine/.env. Returns key names only — values are masked. Owner-DM only.', {}, async () => {
|
|
170
|
-
const gate = requireOwnerDm();
|
|
171
|
-
if (!gate.ok)
|
|
172
|
-
return textResult(gate.message);
|
|
173
|
-
const map = parseEnvFile();
|
|
174
|
-
if (map.size === 0)
|
|
175
|
-
return textResult('No env vars configured in ~/.clementine/.env');
|
|
176
|
-
const lines = [...map.entries()].map(([k, v]) => `- ${k} = ${maskSecret(v)}`);
|
|
177
|
-
return textResult(`Configured env vars (${map.size}):\n${lines.join('\n')}`);
|
|
178
|
-
});
|
|
179
169
|
server.tool('env_unset', 'Remove an environment variable. Owner-DM only. Also clears from Keychain (if backed by Keychain) and from the running process.', {
|
|
180
170
|
key: z.string().describe('Env var name to remove'),
|
|
181
171
|
}, async ({ key }) => {
|