SuperCharge Claude Code v1.0.0 - Complete Customization Package
Features: - 30+ Custom Skills (cognitive, development, UI/UX, autonomous agents) - RalphLoop autonomous agent integration - Multi-AI consultation (Qwen) - Agent management system with sync capabilities - Custom hooks for session management - MCP servers integration - Plugin marketplace setup - Comprehensive installation script Components: - Skills: always-use-superpowers, ralph, brainstorming, ui-ux-pro-max, etc. - Agents: 100+ agents across engineering, marketing, product, etc. - Hooks: session-start-superpowers, qwen-consult, ralph-auto-trigger - Commands: /brainstorm, /write-plan, /execute-plan - MCP Servers: zai-mcp-server, web-search-prime, web-reader, zread - Binaries: ralphloop wrapper Installation: ./supercharge.sh
This commit is contained in:
28
skills/dev-browser/extension/services/StateManager.ts
Normal file
28
skills/dev-browser/extension/services/StateManager.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* StateManager - Manages extension active/inactive state with persistence.
|
||||
*/
|
||||
|
||||
const STORAGE_KEY = "devBrowserActiveState";
|
||||
|
||||
export interface ExtensionState {
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
export class StateManager {
|
||||
/**
|
||||
* Get the current extension state.
|
||||
* Defaults to inactive if no state is stored.
|
||||
*/
|
||||
async getState(): Promise<ExtensionState> {
|
||||
const result = await chrome.storage.local.get(STORAGE_KEY);
|
||||
const state = result[STORAGE_KEY] as ExtensionState | undefined;
|
||||
return state ?? { isActive: false };
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the extension state.
|
||||
*/
|
||||
async setState(state: ExtensionState): Promise<void> {
|
||||
await chrome.storage.local.set({ [STORAGE_KEY]: state });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user