import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import { ClaudeStatusIndicator } from './lib/indicator.js'; export default class ClaudeCodeStatusExtension extends Extension { enable() { this._indicator = new ClaudeStatusIndicator(this); // Centre box, index 1: immediately right of the clock, which is the // centre box's only occupant by default. The status area on the right // is where you look for the system's own state; sessions belong next // to the thing you already glance at. Main.panel.addToStatusArea(this.uuid, this._indicator, 1, 'center'); } disable() { this._indicator?.destroy(); this._indicator = null; } }