You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
8
8
- Lint: `npm run lint` (runs eslint check)
9
9
- Test: `npm run test` (runs vitest suite)
10
10
- Version bump: `npm run version` (updates manifest.json and versions.json via script)
11
-
-**CI/CD Monitoring**: After pushing changes, task a Haiku subagent to monitor the pipeline and report results as "Success: N stages, Failure: X stages".
12
-
-**Cost Optimization**: Always use a Haiku subagent for running tests, linting, and final commits. Report as "Success: N items, Failure: X items".
13
11
14
12
## Code Architecture
15
-
-**Type**: Obsidian Plugin (TypeScript)
16
-
-**Entry Point**: `src/main.ts` contains the main `MyPlugin` class extending `Plugin`.
17
-
-**Settings**: `src/settings.ts` defines `MyPluginSettings` interface, `DEFAULT_SETTINGS` object, and `SampleSettingTab` for the Obsidian UI.
13
+
-**Type**: Obsidian Plugin (TypeScript) that syncs vault files with a GitLab or GitHub repository.
14
+
-**Entry Point**: `src/main.ts` contains the main `GitLabFilesPush` class extending `Plugin`.
15
+
-**Settings**: `src/settings.ts` defines `GitLabFilesPushSettings` interface, `DEFAULT_SETTINGS` object, and `GitLabSyncSettingTab` for the Obsidian UI.
16
+
-**Services**: `src/services/` abstracts the git provider behind `GitServiceInterface`, with `GitHubService` and `GitLabService` implementations sharing common logic via `BaseGitService`.
17
+
-**Sync logic**: `src/logic/sync-manager.ts` handles push/pull, conflict detection, and rename detection; `src/logic/gitignore-manager.ts` merges local and remote `.gitignore` rules.
18
+
-**UI**: `src/ui/SyncStatusView.ts` renders the sync status side panel; `src/ui/components/` holds its sub-views.
18
19
-**Bundling**: Uses `esbuild.config.mjs` for compilation from TypeScript to a single `main.js` file.
19
20
-**Deployment**: Relies on `manifest.json` for plugin metadata and `versions.json` for version mapping/compatibility.
0 commit comments