EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
tray.js
Go to the documentation of this file.
1// Backend plugin definition for Windows System Tray
2// This is loaded by the backend to register the tray plugin
3
4module.exports = {
5 name: 'tray',
6 displayName: 'System Tray Icon',
7 description: 'Display agent status icon in Windows system tray with quick access menu',
8 version: '1.0.0',
9 platform: 'windows',
10 type: 'agent-ui',
11
12 // Plugin is enabled by default for all Windows agents
13 defaultEnabled: true,
14
15 // No configuration needed
16 configSchema: null,
17
18 // Files to deploy to agent
19 files: [
20 {
21 source: 'agent/plugins/tray/tray-windows.js',
22 destination: 'plugins/tray-windows.js',
23 platform: 'windows'
24 }
25 ],
26
27 // Install/uninstall hooks
28 async install(agent, config) {
29 console.log(`[Plugin:tray] Installing tray icon for agent ${agent.agent_uuid}`);
30 return { success: true };
31 },
32
33 async uninstall(agent) {
34 console.log(`[Plugin:tray] Uninstalling tray icon for agent ${agent.agent_uuid}`);
35 // Plugin will stop when agent restarts
36 return { success: true };
37 },
38
39 async configure(agent, config) {
40 console.log(`[Plugin:tray] Configuring tray icon for agent ${agent.agent_uuid}`);
41 return { success: true };
42 }
43};