TidGi-Desktop/src/services
2025-12-10 21:03:48 +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: legacy usage 2025-12-10 20:31:59 +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: not loadin initial data 2025-12-10 21:03:48 +08:00
git Fix/api config and git log support search (#668) 2025-12-08 02:05:31 +08:00
libs Chore/upgrade2 (#656) 2025-11-23 12:31:02 +08:00
menu Fix/sub wiki tag tree (#667) 2025-12-07 03:31:34 +08:00
native Fix/sub wiki tag tree (#667) 2025-12-07 03:31:34 +08:00
notifications Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
preferences Feat/git chart (#651) 2025-11-08 15:04:34 +08:00
sync Feat/git chart (#651) 2025-11-08 15:04:34 +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/sub wiki tag tree (#667) 2025-12-07 03:31:34 +08:00
wiki feat: load prompt from plugin in a wiki, let agent know what to do 2025-12-08 23:09:45 +08:00
wikiEmbedding Fix/api config and git log support search (#668) 2025-12-08 02:05:31 +08:00
wikiGitWorkspace Fix/sub wiki tag tree (#667) 2025-12-07 03:31:34 +08:00
windows Fix/sub wiki tag tree (#667) 2025-12-07 03:31:34 +08:00
workspaces Fix/api config and git log support search (#668) 2025-12-08 02:05:31 +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.