@@ -107,11 +107,13 @@ import type {
107107} from "@posthog/platform/analytics" ;
108108import type { APP_LIFECYCLE_SERVICE } from "@posthog/platform/app-lifecycle" ;
109109import type { APP_META_SERVICE } from "@posthog/platform/app-meta" ;
110+ import type { APP_METRICS_SERVICE } from "@posthog/platform/app-metrics" ;
110111import type { BUNDLED_RESOURCES_SERVICE } from "@posthog/platform/bundled-resources" ;
111112import type { CLIPBOARD_SERVICE } from "@posthog/platform/clipboard" ;
112113import type { CONTEXT_MENU_SERVICE } from "@posthog/platform/context-menu" ;
113114import type { CRYPTO_SERVICE } from "@posthog/platform/crypto" ;
114115import type { DEEP_LINK_SERVICE } from "@posthog/platform/deep-link" ;
116+ import type { DEV_HOST_ACTIONS_SERVICE } from "@posthog/platform/dev-host-actions" ;
115117import type { DIALOG_SERVICE } from "@posthog/platform/dialog" ;
116118import type { FILE_ICON_SERVICE } from "@posthog/platform/file-icon" ;
117119import type { IMAGE_PROCESSOR_SERVICE } from "@posthog/platform/image-processor" ;
@@ -126,11 +128,13 @@ import type { WORKSPACE_SETTINGS_SERVICE } from "@posthog/platform/workspace-set
126128import type { WorkspaceClient } from "@posthog/workspace-client/client" ;
127129import type { DatabaseService } from "@posthog/workspace-server/db/service" ;
128130import type { GIT_SERVICE as WS_GIT_SERVICE } from "@posthog/workspace-server/di/tokens" ;
131+ import type { AgentService } from "@posthog/workspace-server/services/agent/agent" ;
129132import type {
130133 AGENT_AUTH ,
131134 AGENT_LOGGER ,
132135 AGENT_MCP_APPS ,
133136 AGENT_REPO_FILES ,
137+ AGENT_SERVICE ,
134138 AGENT_SLEEP_COORDINATOR ,
135139} from "@posthog/workspace-server/services/agent/identifiers" ;
136140import type {
@@ -207,10 +211,12 @@ import type { WorkspaceService } from "@posthog/workspace-server/services/worksp
207211import type { FileWatcherBridge } from "../index" ;
208212import type { ElectronAppLifecycle } from "../platform-adapters/electron-app-lifecycle" ;
209213import type { ElectronAppMeta } from "../platform-adapters/electron-app-meta" ;
214+ import type { ElectronAppMetrics } from "../platform-adapters/electron-app-metrics" ;
210215import type { ElectronBundledResources } from "../platform-adapters/electron-bundled-resources" ;
211216import type { ElectronClipboard } from "../platform-adapters/electron-clipboard" ;
212217import type { ElectronContextMenu } from "../platform-adapters/electron-context-menu" ;
213218import type { ElectronCrypto } from "../platform-adapters/electron-crypto" ;
219+ import type { ElectronDevHostActions } from "../platform-adapters/electron-dev-host-actions" ;
214220import type { ElectronDialog } from "../platform-adapters/electron-dialog" ;
215221import type { ElectronFileIcon } from "../platform-adapters/electron-file-icon" ;
216222import type { ElectronImageProcessor } from "../platform-adapters/electron-image-processor" ;
@@ -231,6 +237,11 @@ import type {
231237 TokenCipherPortAdapter ,
232238} from "../services/auth/port-adapters" ;
233239import type { DeepLinkService } from "../services/deep-link/service" ;
240+ import type { DevActionsService } from "../services/dev-actions/service" ;
241+ import type { DevFlagsService } from "../services/dev-flags/service" ;
242+ import type { DevLogsService } from "../services/dev-logs/service" ;
243+ import type { DevMetricsService } from "../services/dev-metrics/service" ;
244+ import type { DevNetworkService } from "../services/dev-network/service" ;
234245import type { DiscordPresenceService } from "../services/discord-presence/service" ;
235246import type { EncryptionService } from "../services/encryption/service" ;
236247import type { SecureStoreService } from "../services/secure-store/service" ;
@@ -250,6 +261,11 @@ import type {
250261 DATABASE_SERVICE as MAIN_DATABASE_SERVICE ,
251262 DEEP_LINK_SERVICE as MAIN_DEEP_LINK_SERVICE ,
252263 DEFAULT_ADDITIONAL_DIRECTORY_REPOSITORY as MAIN_DEFAULT_ADDITIONAL_DIRECTORY_REPOSITORY ,
264+ DEV_ACTIONS_SERVICE as MAIN_DEV_ACTIONS_SERVICE ,
265+ DEV_FLAGS_SERVICE as MAIN_DEV_FLAGS_SERVICE ,
266+ DEV_LOGS_SERVICE as MAIN_DEV_LOGS_SERVICE ,
267+ DEV_METRICS_SERVICE as MAIN_DEV_METRICS_SERVICE ,
268+ DEV_NETWORK_SERVICE as MAIN_DEV_NETWORK_SERVICE ,
253269 DISCORD_PRESENCE_SERVICE as MAIN_DISCORD_PRESENCE_SERVICE ,
254270 ENCRYPTION_SERVICE as MAIN_ENCRYPTION_SERVICE ,
255271 EXTERNAL_APPS_SERVICE as MAIN_EXTERNAL_APPS_SERVICE ,
@@ -301,6 +317,8 @@ export interface MainBindings {
301317 [ BUNDLED_RESOURCES_SERVICE ] : ElectronBundledResources ;
302318 [ IMAGE_PROCESSOR_SERVICE ] : ElectronImageProcessor ;
303319 [ WORKSPACE_SETTINGS_SERVICE ] : ElectronWorkspaceSettings ;
320+ [ APP_METRICS_SERVICE ] : ElectronAppMetrics ;
321+ [ DEV_HOST_ACTIONS_SERVICE ] : ElectronDevHostActions ;
304322
305323 // Database (main aliases + ws-server source tokens via toService)
306324 [ MAIN_DATABASE_SERVICE ] : DatabaseService ;
@@ -441,6 +459,13 @@ export interface MainBindings {
441459 [ MAIN_ENCRYPTION_SERVICE ] : EncryptionService ;
442460 [ MAIN_DISCORD_PRESENCE_SERVICE ] : DiscordPresenceService ;
443461
462+ // Dev toolbar diagnostics
463+ [ MAIN_DEV_FLAGS_SERVICE ] : DevFlagsService ;
464+ [ MAIN_DEV_METRICS_SERVICE ] : DevMetricsService ;
465+ [ MAIN_DEV_NETWORK_SERVICE ] : DevNetworkService ;
466+ [ MAIN_DEV_LOGS_SERVICE ] : DevLogsService ;
467+ [ MAIN_DEV_ACTIONS_SERVICE ] : DevActionsService ;
468+
444469 // ws-server git service (bound to(GitService))
445470 [ WS_GIT_SERVICE ] : GitService ;
446471
@@ -458,6 +483,7 @@ export interface MainBindings {
458483 [ FS_SERVICE ] : FsCapability ;
459484
460485 // Typed container.get-only tokens (bound via loaded modules)
486+ [ AGENT_SERVICE ] : AgentService ;
461487 [ OAUTH_SERVICE ] : OAuthService ;
462488 [ GITHUB_INTEGRATION_SERVICE ] : GitHubIntegrationService ;
463489 [ SLACK_INTEGRATION_SERVICE ] : SlackIntegrationService ;
0 commit comments