Skip to content

Commit 40d288b

Browse files
committed
refactor(phase5): remove Graphology dependency, delete src/graphs/
- Uninstall graphology and graphology-types from package.json - Move attachment-types.ts → src/lib/attachment-types.ts - Move code-types.ts → src/lib/parsers/code-types.ts - Move file-lang.ts → src/lib/file-lang.ts - Move manager-types.ts → src/lib/embed-types.ts (only EmbedFn/EmbedFns remain) - Delete file-index-types.ts (unused) - Delete src/graphs/ directory entirely - Update all imports to new locations 1407 tests pass. Zero Graphology references remain.
1 parent c8997ee commit 40d288b

16 files changed

Lines changed: 11 additions & 65 deletions

package-lock.json

Lines changed: 0 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"dotenv": "^17.3.1",
6262
"express": "^5.2.1",
6363
"express-rate-limit": "^8.3.1",
64-
"graphology": "^0.26.0",
6564
"jsonwebtoken": "^9.0.3",
6665
"micromatch": "^4.0.8",
6766
"mime": "^4.1.0",
@@ -88,7 +87,6 @@
8887
"@types/node": "^25.4.0",
8988
"@types/supertest": "^7.2.0",
9089
"@types/ws": "^8.18.1",
91-
"graphology-types": "^0.24.8",
9290
"jest": "^30.3.0",
9391
"supertest": "^7.2.2",
9492
"ts-jest": "^29.4.6",

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import * as recallSkills from '@/api/tools/skills/recall-skills';
8585
import * as bumpSkillUsage from '@/api/tools/skills/bump-usage';
8686
import * as getContext from '@/api/tools/context/get-context';
8787

88-
import type { EmbedFn, EmbedFns } from '@/graphs/manager-types';
88+
import type { EmbedFn, EmbedFns } from '@/lib/embed-types';
8989

9090
export type { EmbedFn, EmbedFns };
9191

src/cli/indexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { parseCodeFile } from '@/lib/parsers/code';
77
import { startWatcher, ALWAYS_IGNORED, type WatcherHandle } from '@/lib/watcher';
88
import { INDEXER_PREVIEW_LEN } from '@/lib/defaults';
99
import { normalizePathForEmbed } from '@/lib/path-utils';
10-
import { getLanguage, getMimeType } from '@/graphs/file-lang';
10+
import { getLanguage, getMimeType } from '@/lib/file-lang';
1111
import type { ProjectScopedStore, DocsStore, CodeStore, FilesStore, CodeNode } from '@/store/types';
1212
import { createLogger } from '@/lib/logger';
1313

src/graphs/file-index-types.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/lib/events-log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs';
22
import * as path from 'path';
33
import type { TaskStatus, TaskPriority } from '../store/types/tasks';
44
import type { SkillSource } from '../store/types/skills';
5-
import type { AttachmentMeta } from '../graphs/attachment-types';
5+
import type { AttachmentMeta } from './attachment-types';
66
import type { EpicStatus } from '../store/types/epics';
77
import type { RelationFrontmatter } from './file-mirror';
88
import type { ParsedNoteFile, ParsedTaskFile, ParsedSkillFile, ParsedEpicFile } from './file-import';

src/lib/file-import.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { parseMarkdown } from './frontmatter';
44
import type { RelationFrontmatter } from './file-mirror';
55
import type { TaskStatus, TaskPriority } from '../store/types/tasks';
66
import type { SkillSource } from '../store/types/skills';
7-
import type { AttachmentMeta } from '../graphs/attachment-types';
7+
import type { AttachmentMeta } from './attachment-types';
88
import type { EpicStatus } from '../store/types/epics';
9-
import { scanAttachments } from '../graphs/attachment-types';
9+
import { scanAttachments } from './attachment-types';
1010
import { readEvents, replayNoteEvents, replayTaskEvents, replaySkillEvents, replayEpicEvents } from './events-log';
1111
import { createLogger } from '@/lib/logger';
1212

0 commit comments

Comments
 (0)