MCPcopy Index your code
hub / github.com/coder/mux / createService

Function createService

src/node/services/agentStatusService.test.ts:90–104  ·  view source on GitHub ↗
(options?: { clock?: () => number })

Source from the content-addressed store, hash-verified

88
89 // Bypass the scheduler timers so each test step is deterministic.
90 function createService(options?: { clock?: () => number }): AgentStatusService {
91 return new AgentStatusService(
92 mockConfig,
93 historyHandle.historyService,
94 mockTokenizer,
95 mockExtensionMetadata,
96 mockWorkspaceService,
97 windowService,
98 mockAiService,
99 {
100 clock: options?.clock,
101 tickIntervalMs: 60 * 60 * 1000,
102 }
103 );
104 }
105
106 function getInternals(service: AgentStatusService): AgentStatusServiceInternals {
107 return service as unknown as AgentStatusServiceInternals;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected