diff --git a/package-lock.json b/package-lock.json index 52873424a2..5655b95f8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "experiments/js-parse-and-output" ], "dependencies": { + "@anthropic-ai/claude-agent-sdk": "^0.1.14", "javascript-time-ago": "^2.5.11", "json-colorizer": "^3.0.1", "open": "^10.1.0", @@ -269,6 +270,26 @@ "node": ">=6.0.0" } }, + "node_modules/@anthropic-ai/claude-agent-sdk": { + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.1.14.tgz", + "integrity": "sha512-FdFPxeogLCOzk+ok5ITTwaemr1gGj104ynHt3LJdTADE8idsWlbJjaWlybx5WYpN+UtJTeVi3bQ8BQLojpO8ww==", + "license": "SEE LICENSE IN README.md", + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "^0.33.5", + "@img/sharp-darwin-x64": "^0.33.5", + "@img/sharp-linux-arm": "^0.33.5", + "@img/sharp-linux-arm64": "^0.33.5", + "@img/sharp-linux-x64": "^0.33.5", + "@img/sharp-win32-x64": "^0.33.5" + }, + "peerDependencies": { + "zod": "^3.24.1" + } + }, "node_modules/@anthropic-ai/sdk": { "version": "0.26.1", "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.26.1.tgz", @@ -17427,9 +17448,9 @@ } }, "node_modules/zod": { - "version": "3.23.8", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", - "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "license": "MIT", "peer": true, "funding": { diff --git a/package.json b/package.json index aad6784de0..be1e074999 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ ] }, "dependencies": { + "@anthropic-ai/claude-agent-sdk": "^0.1.14", "javascript-time-ago": "^2.5.11", "json-colorizer": "^3.0.1", "open": "^10.1.0", diff --git a/src/gui/src/UI/Settings/UITabAccount.js b/src/gui/src/UI/Settings/UITabAccount.js index 95de65cf62..8b29917d4e 100644 --- a/src/gui/src/UI/Settings/UITabAccount.js +++ b/src/gui/src/UI/Settings/UITabAccount.js @@ -22,7 +22,7 @@ import UIWindowChangeEmail from './UIWindowChangeEmail.js'; import UIWindowChangeUsername from '../UIWindowChangeUsername.js'; import UIWindowConfirmUserDeletion from './UIWindowConfirmUserDeletion.js'; import UIWindowManageSessions from '../UIWindowManageSessions.js'; -import UIWindow from '../UIWindow.js'; +import UIWindow from '../UIWindow.js' // About export default { @@ -37,6 +37,7 @@ export default { h += `
`; h += `
`; h += `
`; + h += ``; h += `
`; // change password button @@ -177,5 +178,13 @@ export default { } } }) + + // Add event listener for the "Remove Profile Picture" button + document.querySelector('.remove-profile-picture').addEventListener('click', () => { + update_profile(window.user.username, { picture: null }); // Clear the profile picture + document.querySelector('.profile-picture').style.backgroundImage = `url('${window.icons['profile.svg']}')`; // Revert to default avatar + $('.profile-image').css('background-image', `url('${window.icons['profile.svg']}')`); // Update other UI elements + $('.profile-image').removeClass('profile-image-has-picture'); + }); }, };