refactor(semantics): migrate legacy @TIER to @COMPLEXITY annotations

- Replaced @TIER: TRIVIAL with @COMPLEXITY: 1
- Replaced @TIER: STANDARD with @COMPLEXITY: 3
- Replaced @TIER: CRITICAL with @COMPLEXITY: 5
- Manually elevated specific critical/complex components to levels 2 and 4
- Ignored legacy, specs, and node_modules directories
- Updated generated semantic map
This commit is contained in:
2026-03-16 10:06:44 +03:00
parent 321e0eb2db
commit 274510fc38
321 changed files with 30101 additions and 58483 deletions

View File

@@ -1,5 +1,5 @@
// [DEF:frontend.src.lib.stores.__tests__.assistantChat:Module]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @SEMANTICS: test, store, assistant, toggle, conversation
// @PURPOSE: Validate assistant chat store visibility and conversation binding transitions.
// @LAYER: UI Tests
@@ -17,7 +17,7 @@ import {
} from '../assistantChat.js';
// [DEF:assistantChatStore_tests:Function]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Group store unit scenarios for assistant panel behavior.
// @PRE: Store can be reset to baseline state in beforeEach hook.
// @POST: Open/close/toggle/conversation transitions are validated.

View File

@@ -1,5 +1,5 @@
// [DEF:mock_env_public:Module]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Mock for $env/static/public SvelteKit module in vitest
// @LAYER: UI (Tests)
export const PUBLIC_WS_URL = 'ws://localhost:8000';

View File

@@ -1,5 +1,5 @@
// [DEF:setupTests:Module]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Global test setup with mocks for SvelteKit modules
// @LAYER: UI

View File

@@ -1,6 +1,6 @@
// @RELATION: VERIFIES -> frontend/src/lib/stores/sidebar.js
// [DEF:frontend.src.lib.stores.__tests__.sidebar:Module]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @SEMANTICS: sidebar, store, tests, mobile, navigation
// @PURPOSE: Unit tests for sidebar store
// @LAYER: Domain (Tests)

View File

@@ -1,5 +1,5 @@
// [DEF:frontend.src.lib.stores.__tests__.test_activity:Module]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Unit tests for activity store
// @LAYER: UI
// @RELATION: VERIFIES -> frontend.src.lib.stores.activity

View File

@@ -1,5 +1,5 @@
// [DEF:frontend.src.lib.stores.__tests__.test_sidebar:Module]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Unit tests for sidebar store
// @LAYER: UI
// @RELATION: VERIFIES -> frontend.src.lib.stores.sidebar

View File

@@ -1,5 +1,5 @@
// [DEF:frontend.src.lib.stores.__tests__.test_taskDrawer:Module]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @SEMANTICS: task-drawer, store, mapping, tests
// @PURPOSE: Unit tests for task drawer store
// @LAYER: UI

View File

@@ -1,5 +1,5 @@
// [DEF:activity:Store]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Track active task count for navbar indicator
// @LAYER: UI
// @RELATION: DEPENDS_ON -> WebSocket connection, taskDrawer store

View File

@@ -1,5 +1,5 @@
// [DEF:assistantChat:Store]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @SEMANTICS: assistant, store, ui-state, conversation
// @PURPOSE: Control assistant chat panel visibility and active conversation binding.
// @LAYER: UI

View File

@@ -1,5 +1,5 @@
// [DEF:environmentContext:Store]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Global selected environment context for navigation and safety cues.
// @LAYER: UI-State

View File

@@ -1,5 +1,5 @@
// [DEF:health_store:Store]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Manage dashboard health summary state and failing counts for UI badges.
// @LAYER: UI
// @RELATION: DEPENDS_ON -> api.getHealthSummary

View File

@@ -1,5 +1,5 @@
// [DEF:sidebar:Store]
// @TIER: STANDARD
// @COMPLEXITY: 3
// @PURPOSE: Manage sidebar visibility and navigation state
// @LAYER: UI
// @INVARIANT: isExpanded state is always synced with localStorage

View File

@@ -1,5 +1,5 @@
// [DEF:taskDrawer:Store]
// @TIER: CRITICAL
// @COMPLEXITY: 5
// @PURPOSE: Manage Task Drawer visibility and resource-to-task mapping
// @LAYER: UI
// @INVARIANT: resourceTaskMap always reflects current task associations