TidGi-Desktop/src/services
2025-12-30 13:47:29 +08:00
..
agentBrowser Feat/mini window (#642) 2025-10-21 20:07:04 +08:00
agentDefinition rename: handler -> agent framework; plugin -> tool 2025-11-27 15:33:30 +08:00
agentInstance Fix/sync sub wiki (#672) 2025-12-17 22:08:26 +08:00
auth Feat/watch fs (#649) 2025-10-28 13:25:46 +08:00
context Fix/start error (#654) 2025-11-20 17:17:11 +08:00
database rename: handler -> agent framework; plugin -> tool 2025-11-27 15:33:30 +08:00
deepLink Fix/start error (#654) 2025-11-20 17:17:11 +08:00
externalAPI Fix/edit agent and several bugs (#670) 2025-12-15 17:33:59 +08:00
git fix: review 2025-12-30 13:47:29 +08:00
libs Feat/subwiki external attachment (#671) 2025-12-16 17:01:09 +08:00
menu Feat/subwiki external attachment (#671) 2025-12-16 17:01:09 +08:00
native feat: api for plugin to create base64 file 2025-12-26 01:08:35 +08:00
notifications Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
preferences fix: review 2025-12-30 13:47:29 +08:00
sync Fix/sync sub wiki (#672) 2025-12-17 22:08:26 +08:00
systemPreferences Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
theme Feat/git chart (#651) 2025-11-08 15:04:34 +08:00
updater Feat/watch fs (#649) 2025-10-28 13:25:46 +08:00
view fix: missing return 2025-12-18 00:41:56 +08:00
wiki Fix extension filter usage and sync workspace state after save 2025-12-27 00:03:30 +08:00
wikiEmbedding fix: wikiWorkspaceDefaultValues 2025-12-19 01:24:31 +08:00
wikiGitWorkspace disable enableFileSystemWatch to prevent bug for innocent users 2025-12-26 23:31:00 +08:00
windows Fix/sub wiki tag tree (#667) 2025-12-07 03:31:34 +08:00
workspaces fix: review 2025-12-30 13:47:29 +08:00
workspacesView Fix/sub wiki tag tree (#667) 2025-12-07 03:31:34 +08:00
container.ts Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
Readme.md Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
ServiceDependencies.md Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
serviceIdentifier.ts Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
types.ts Chore/upgrade (#646) 2025-10-23 23:42:06 +08:00

services

Service Architecture

See ServiceDependencies.md for detailed documentation on:

  • Service dependency layers and relationships
  • Circular dependency chains
  • When to use constructor injection vs lazy injection vs container.get()
  • Current injection status for all services

Adding new Service

See docs/internal/ServiceIPC.md.

Injection Guidelines

  1. Use constructor injection for services in Layer 0-2 (foundation/basic/middle services)
  2. Use lazy injection for services in Layer 3-4 with circular dependencies
  3. Use container.get() only inside methods when absolutely necessary for circular dependencies
  4. Always document the reason when using lazy injection or container.get()

Before adding dependencies, check ServiceDependencies.md to understand the service layers and avoid creating new circular dependencies.