@ai-devkit/agent-manager 0.43.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -3
- package/.swcrc +0 -27
- package/dist/__tests__/AgentManager.test.js +0 -1727
- package/dist/__tests__/AgentManager.test.js.map +0 -1
- package/dist/__tests__/adapters/IncrementalSessionRefresh.test.js +0 -486
- package/dist/__tests__/adapters/IncrementalSessionRefresh.test.js.map +0 -1
- package/dist/__tests__/adapters/adapterProcessImports.test.js +0 -52
- package/dist/__tests__/adapters/adapterProcessImports.test.js.map +0 -1
- package/dist/__tests__/adapters/adapterSnapshotCandidates.test.js +0 -247
- package/dist/__tests__/adapters/adapterSnapshotCandidates.test.js.map +0 -1
- package/dist/__tests__/capacity/anthropic.test.js +0 -115
- package/dist/__tests__/capacity/anthropic.test.js.map +0 -1
- package/dist/__tests__/capacity/boundaries.test.js +0 -45
- package/dist/__tests__/capacity/boundaries.test.js.map +0 -1
- package/dist/__tests__/capacity/claude.test.js +0 -485
- package/dist/__tests__/capacity/claude.test.js.map +0 -1
- package/dist/__tests__/capacity/codex.test.js +0 -339
- package/dist/__tests__/capacity/codex.test.js.map +0 -1
- package/dist/__tests__/capacity/devin.test.js +0 -239
- package/dist/__tests__/capacity/devin.test.js.map +0 -1
- package/dist/__tests__/capacity/index.test.js +0 -53
- package/dist/__tests__/capacity/index.test.js.map +0 -1
- package/dist/__tests__/capacity/openai.test.js +0 -687
- package/dist/__tests__/capacity/openai.test.js.map +0 -1
- package/dist/__tests__/capacity/wham.test.js +0 -159
- package/dist/__tests__/capacity/wham.test.js.map +0 -1
- package/dist/__tests__/capacity/zai.test.js +0 -212
- package/dist/__tests__/capacity/zai.test.js.map +0 -1
- package/dist/__tests__/fixtures.test.js +0 -218
- package/dist/__tests__/fixtures.test.js.map +0 -1
- package/dist/__tests__/harnesses/BoundedSummarySkip.test.js +0 -568
- package/dist/__tests__/harnesses/BoundedSummarySkip.test.js.map +0 -1
- package/dist/__tests__/harnesses/SessionSummaryEquivalence.test.js +0 -1089
- package/dist/__tests__/harnesses/SessionSummaryEquivalence.test.js.map +0 -1
- package/dist/__tests__/harnesses/antigravity/AntigravityCliAdapter.subprocess.test.js +0 -143
- package/dist/__tests__/harnesses/antigravity/AntigravityCliAdapter.subprocess.test.js.map +0 -1
- package/dist/__tests__/harnesses/antigravity/AntigravityCliAdapter.test.js +0 -462
- package/dist/__tests__/harnesses/antigravity/AntigravityCliAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/builtinAdapters.test.js +0 -33
- package/dist/__tests__/harnesses/builtinAdapters.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/ClaudeAgentMapper.test.js +0 -79
- package/dist/__tests__/harnesses/claude/ClaudeAgentMapper.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/ClaudeCodeAdapter.test.js +0 -1881
- package/dist/__tests__/harnesses/claude/ClaudeCodeAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/ClaudeSessionLocator.test.js +0 -425
- package/dist/__tests__/harnesses/claude/ClaudeSessionLocator.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/ClaudeSessionParser.test.js +0 -314
- package/dist/__tests__/harnesses/claude/ClaudeSessionParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/durable/ClaudeCliProbe.test.js +0 -49
- package/dist/__tests__/harnesses/claude/durable/ClaudeCliProbe.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/durable/ClaudePrintAgent.integration.test.js +0 -76
- package/dist/__tests__/harnesses/claude/durable/ClaudePrintAgent.integration.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/durable/ClaudePrintAgentService.test.js +0 -173
- package/dist/__tests__/harnesses/claude/durable/ClaudePrintAgentService.test.js.map +0 -1
- package/dist/__tests__/harnesses/claude/durable/ClaudePrintRunner.test.js +0 -181
- package/dist/__tests__/harnesses/claude/durable/ClaudePrintRunner.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/CodexAdapter.test.js +0 -685
- package/dist/__tests__/harnesses/codex/CodexAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/CodexSessionLocator.test.js +0 -463
- package/dist/__tests__/harnesses/codex/CodexSessionLocator.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/CodexSessionMapping.test.js +0 -86
- package/dist/__tests__/harnesses/codex/CodexSessionMapping.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/CodexSessionParser.test.js +0 -254
- package/dist/__tests__/harnesses/codex/CodexSessionParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/durable/CodexCliProbe.test.js +0 -121
- package/dist/__tests__/harnesses/codex/durable/CodexCliProbe.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/durable/CodexDurableAgentRepository.test.js +0 -84
- package/dist/__tests__/harnesses/codex/durable/CodexDurableAgentRepository.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/durable/CodexPrintAgent.integration.test.js +0 -128
- package/dist/__tests__/harnesses/codex/durable/CodexPrintAgent.integration.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/durable/CodexPrintAgentService.test.js +0 -246
- package/dist/__tests__/harnesses/codex/durable/CodexPrintAgentService.test.js.map +0 -1
- package/dist/__tests__/harnesses/codex/durable/CodexPrintRunner.test.js +0 -384
- package/dist/__tests__/harnesses/codex/durable/CodexPrintRunner.test.js.map +0 -1
- package/dist/__tests__/harnesses/copilot/CopilotAdapter.test.js +0 -659
- package/dist/__tests__/harnesses/copilot/CopilotAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/copilot/CopilotRefreshIO.test.js +0 -290
- package/dist/__tests__/harnesses/copilot/CopilotRefreshIO.test.js.map +0 -1
- package/dist/__tests__/harnesses/devin/DevinAdapter.test.js +0 -597
- package/dist/__tests__/harnesses/devin/DevinAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/devin/DevinAgentMapper.test.js +0 -99
- package/dist/__tests__/harnesses/devin/DevinAgentMapper.test.js.map +0 -1
- package/dist/__tests__/harnesses/devin/DevinSessionLocator.test.js +0 -192
- package/dist/__tests__/harnesses/devin/DevinSessionLocator.test.js.map +0 -1
- package/dist/__tests__/harnesses/devin/DevinSessionParser.test.js +0 -407
- package/dist/__tests__/harnesses/devin/DevinSessionParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/devin/fixtures.js +0 -95
- package/dist/__tests__/harnesses/devin/fixtures.js.map +0 -1
- package/dist/__tests__/harnesses/gemini/GeminiCliAdapter.test.js +0 -1454
- package/dist/__tests__/harnesses/gemini/GeminiCliAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/gemini/GeminiSessionJsonl.test.js +0 -491
- package/dist/__tests__/harnesses/gemini/GeminiSessionJsonl.test.js.map +0 -1
- package/dist/__tests__/harnesses/gemini/GeminiSessionLocator.test.js +0 -399
- package/dist/__tests__/harnesses/gemini/GeminiSessionLocator.test.js.map +0 -1
- package/dist/__tests__/harnesses/grok/GrokAgentMapper.test.js +0 -56
- package/dist/__tests__/harnesses/grok/GrokAgentMapper.test.js.map +0 -1
- package/dist/__tests__/harnesses/grok/GrokCliAdapter.test.js +0 -421
- package/dist/__tests__/harnesses/grok/GrokCliAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/grok/GrokIncrementalRefresh.test.js +0 -167
- package/dist/__tests__/harnesses/grok/GrokIncrementalRefresh.test.js.map +0 -1
- package/dist/__tests__/harnesses/grok/GrokSessionLocator.test.js +0 -133
- package/dist/__tests__/harnesses/grok/GrokSessionLocator.test.js.map +0 -1
- package/dist/__tests__/harnesses/grok/GrokSessionParser.test.js +0 -301
- package/dist/__tests__/harnesses/grok/GrokSessionParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/kiro/KiroAdapter.test.js +0 -662
- package/dist/__tests__/harnesses/kiro/KiroAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/muse/MuseAdapter.test.js +0 -247
- package/dist/__tests__/harnesses/muse/MuseAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/muse/MuseAgentMapper.test.js +0 -81
- package/dist/__tests__/harnesses/muse/MuseAgentMapper.test.js.map +0 -1
- package/dist/__tests__/harnesses/muse/MuseSessionLocator.test.js +0 -185
- package/dist/__tests__/harnesses/muse/MuseSessionLocator.test.js.map +0 -1
- package/dist/__tests__/harnesses/muse/MuseSessionParser.test.js +0 -328
- package/dist/__tests__/harnesses/muse/MuseSessionParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/opencode/OpenCodeAdapter.test.js +0 -213
- package/dist/__tests__/harnesses/opencode/OpenCodeAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/opencode/OpenCodeAgentMapper.test.js +0 -108
- package/dist/__tests__/harnesses/opencode/OpenCodeAgentMapper.test.js.map +0 -1
- package/dist/__tests__/harnesses/opencode/OpenCodeSessionLocator.test.js +0 -94
- package/dist/__tests__/harnesses/opencode/OpenCodeSessionLocator.test.js.map +0 -1
- package/dist/__tests__/harnesses/opencode/OpenCodeSessionParser.test.js +0 -147
- package/dist/__tests__/harnesses/opencode/OpenCodeSessionParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/PiAdapter.test.js +0 -367
- package/dist/__tests__/harnesses/pi/PiAdapter.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/PiDiscoveryIO.test.js +0 -382
- package/dist/__tests__/harnesses/pi/PiDiscoveryIO.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/PiSessionParser.test.js +0 -416
- package/dist/__tests__/harnesses/pi/PiSessionParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/PiSessionTracker.test.js +0 -108
- package/dist/__tests__/harnesses/pi/PiSessionTracker.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/durable/PiCliProbe.test.js +0 -70
- package/dist/__tests__/harnesses/pi/durable/PiCliProbe.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/durable/PiDurableAgentRepository.test.js +0 -43
- package/dist/__tests__/harnesses/pi/durable/PiDurableAgentRepository.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/durable/PiPrintAgentService.test.js +0 -192
- package/dist/__tests__/harnesses/pi/durable/PiPrintAgentService.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/durable/PiPrintProtocol.test.js +0 -119
- package/dist/__tests__/harnesses/pi/durable/PiPrintProtocol.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/durable/PiPrintRunner.test.js +0 -382
- package/dist/__tests__/harnesses/pi/durable/PiPrintRunner.test.js.map +0 -1
- package/dist/__tests__/harnesses/pi/durable/PiStreamParser.test.js +0 -34
- package/dist/__tests__/harnesses/pi/durable/PiStreamParser.test.js.map +0 -1
- package/dist/__tests__/harnesses/readiness/AgentReadiness.test.js +0 -446
- package/dist/__tests__/harnesses/readiness/AgentReadiness.test.js.map +0 -1
- package/dist/__tests__/harnesses/runtimeProfiles.test.js +0 -101
- package/dist/__tests__/harnesses/runtimeProfiles.test.js.map +0 -1
- package/dist/__tests__/print/DurableAgent.test.js +0 -15
- package/dist/__tests__/print/DurableAgent.test.js.map +0 -1
- package/dist/__tests__/print/DurableAgentRepository.sqlite.test.js +0 -186
- package/dist/__tests__/print/DurableAgentRepository.sqlite.test.js.map +0 -1
- package/dist/__tests__/print/DurableAgentRepository.test.js +0 -249
- package/dist/__tests__/print/DurableAgentRepository.test.js.map +0 -1
- package/dist/__tests__/readiness-fixtures.test.js +0 -54
- package/dist/__tests__/readiness-fixtures.test.js.map +0 -1
- package/dist/__tests__/runtime/AgentRuntime.test.js +0 -13
- package/dist/__tests__/runtime/AgentRuntime.test.js.map +0 -1
- package/dist/__tests__/runtime/HerdrAgentDiscovery.test.js +0 -164
- package/dist/__tests__/runtime/HerdrAgentDiscovery.test.js.map +0 -1
- package/dist/__tests__/runtime/HerdrAgentRuntime.test.js +0 -488
- package/dist/__tests__/runtime/HerdrAgentRuntime.test.js.map +0 -1
- package/dist/__tests__/runtime/ManagedAgentRuntime.test.js +0 -637
- package/dist/__tests__/runtime/ManagedAgentRuntime.test.js.map +0 -1
- package/dist/__tests__/terminal/GhosttyBackend.test.js +0 -334
- package/dist/__tests__/terminal/GhosttyBackend.test.js.map +0 -1
- package/dist/__tests__/terminal/TerminalFocusManager.test.js +0 -253
- package/dist/__tests__/terminal/TerminalFocusManager.test.js.map +0 -1
- package/dist/__tests__/terminal/TmuxManager.test.js +0 -168
- package/dist/__tests__/terminal/TmuxManager.test.js.map +0 -1
- package/dist/__tests__/terminal/TtyWriter.test.js +0 -386
- package/dist/__tests__/terminal/TtyWriter.test.js.map +0 -1
- package/dist/__tests__/utils/AgentRegistry.test.js +0 -636
- package/dist/__tests__/utils/AgentRegistry.test.js.map +0 -1
- package/dist/__tests__/utils/IncrementalJsonlSummary.test.js +0 -650
- package/dist/__tests__/utils/IncrementalJsonlSummary.test.js.map +0 -1
- package/dist/__tests__/utils/agent-requests.test.js +0 -90
- package/dist/__tests__/utils/agent-requests.test.js.map +0 -1
- package/dist/__tests__/utils/conversationTail.bench.test.js +0 -258
- package/dist/__tests__/utils/conversationTail.bench.test.js.map +0 -1
- package/dist/__tests__/utils/conversationTailParity.test.js +0 -588
- package/dist/__tests__/utils/conversationTailParity.test.js.map +0 -1
- package/dist/__tests__/utils/jsonlTail.test.js +0 -360
- package/dist/__tests__/utils/jsonlTail.test.js.map +0 -1
- package/dist/__tests__/utils/matching.test.js +0 -324
- package/dist/__tests__/utils/matching.test.js.map +0 -1
- package/dist/__tests__/utils/matchingConstants.test.js +0 -35
- package/dist/__tests__/utils/matchingConstants.test.js.map +0 -1
- package/dist/__tests__/utils/process.test.js +0 -818
- package/dist/__tests__/utils/process.test.js.map +0 -1
- package/dist/__tests__/utils/session.test.js +0 -175
- package/dist/__tests__/utils/session.test.js.map +0 -1
- package/project.json +0 -29
- package/scripts/benchmark-cold-start.mjs +0 -350
- package/src/AgentManager.ts +0 -559
- package/src/__tests__/AgentManager.test.ts +0 -1578
- package/src/__tests__/adapters/IncrementalSessionRefresh.test.ts +0 -437
- package/src/__tests__/adapters/adapterProcessImports.test.ts +0 -58
- package/src/__tests__/adapters/adapterSnapshotCandidates.test.ts +0 -243
- package/src/__tests__/capacity/anthropic.test.ts +0 -105
- package/src/__tests__/capacity/boundaries.test.ts +0 -36
- package/src/__tests__/capacity/claude.test.ts +0 -462
- package/src/__tests__/capacity/codex.test.ts +0 -311
- package/src/__tests__/capacity/devin.test.ts +0 -210
- package/src/__tests__/capacity/fixtures/claude-credentials.json +0 -7
- package/src/__tests__/capacity/fixtures/claude-usage-malformed.json +0 -1
- package/src/__tests__/capacity/fixtures/claude-usage-partial.json +0 -15
- package/src/__tests__/capacity/fixtures/claude-usage.json +0 -63
- package/src/__tests__/capacity/fixtures/devin-config.json +0 -6
- package/src/__tests__/capacity/fixtures/devin-credentials.toml +0 -4
- package/src/__tests__/capacity/fixtures/devin-quota-nonplan.json +0 -5
- package/src/__tests__/capacity/fixtures/devin-quota.json +0 -10
- package/src/__tests__/capacity/fixtures/openai-auth.json +0 -6
- package/src/__tests__/capacity/fixtures/openai-codex-auth.json +0 -9
- package/src/__tests__/capacity/fixtures/openai-usage-completions.json +0 -67
- package/src/__tests__/capacity/fixtures/openai-usage-responses.json +0 -20
- package/src/__tests__/capacity/fixtures/wham-usage.json +0 -45
- package/src/__tests__/capacity/fixtures/zai-auth.json +0 -6
- package/src/__tests__/capacity/fixtures/zai-quota-invalid.json +0 -7
- package/src/__tests__/capacity/fixtures/zai-quota.json +0 -38
- package/src/__tests__/capacity/index.test.ts +0 -54
- package/src/__tests__/capacity/openai.test.ts +0 -571
- package/src/__tests__/capacity/wham.test.ts +0 -122
- package/src/__tests__/capacity/zai.test.ts +0 -151
- package/src/__tests__/fixtures.test.ts +0 -245
- package/src/__tests__/harnesses/BoundedSummarySkip.test.ts +0 -496
- package/src/__tests__/harnesses/SessionSummaryEquivalence.test.ts +0 -726
- package/src/__tests__/harnesses/antigravity/AntigravityCliAdapter.subprocess.test.ts +0 -133
- package/src/__tests__/harnesses/antigravity/AntigravityCliAdapter.test.ts +0 -396
- package/src/__tests__/harnesses/builtinAdapters.test.ts +0 -33
- package/src/__tests__/harnesses/claude/ClaudeAgentMapper.test.ts +0 -84
- package/src/__tests__/harnesses/claude/ClaudeCodeAdapter.test.ts +0 -1793
- package/src/__tests__/harnesses/claude/ClaudeSessionLocator.test.ts +0 -423
- package/src/__tests__/harnesses/claude/ClaudeSessionParser.test.ts +0 -300
- package/src/__tests__/harnesses/claude/durable/ClaudeCliProbe.test.ts +0 -34
- package/src/__tests__/harnesses/claude/durable/ClaudePrintAgent.integration.test.ts +0 -61
- package/src/__tests__/harnesses/claude/durable/ClaudePrintAgentService.test.ts +0 -129
- package/src/__tests__/harnesses/claude/durable/ClaudePrintRunner.test.ts +0 -152
- package/src/__tests__/harnesses/codex/CodexAdapter.test.ts +0 -652
- package/src/__tests__/harnesses/codex/CodexSessionLocator.test.ts +0 -419
- package/src/__tests__/harnesses/codex/CodexSessionMapping.test.ts +0 -63
- package/src/__tests__/harnesses/codex/CodexSessionParser.test.ts +0 -192
- package/src/__tests__/harnesses/codex/durable/CodexCliProbe.test.ts +0 -80
- package/src/__tests__/harnesses/codex/durable/CodexDurableAgentRepository.test.ts +0 -65
- package/src/__tests__/harnesses/codex/durable/CodexPrintAgent.integration.test.ts +0 -104
- package/src/__tests__/harnesses/codex/durable/CodexPrintAgentService.test.ts +0 -201
- package/src/__tests__/harnesses/codex/durable/CodexPrintRunner.test.ts +0 -299
- package/src/__tests__/harnesses/copilot/CopilotAdapter.test.ts +0 -614
- package/src/__tests__/harnesses/copilot/CopilotRefreshIO.test.ts +0 -270
- package/src/__tests__/harnesses/devin/DevinAdapter.test.ts +0 -290
- package/src/__tests__/harnesses/devin/DevinAgentMapper.test.ts +0 -101
- package/src/__tests__/harnesses/devin/DevinSessionLocator.test.ts +0 -139
- package/src/__tests__/harnesses/devin/DevinSessionParser.test.ts +0 -212
- package/src/__tests__/harnesses/devin/fixtures.ts +0 -144
- package/src/__tests__/harnesses/gemini/GeminiCliAdapter.test.ts +0 -1336
- package/src/__tests__/harnesses/gemini/GeminiSessionJsonl.test.ts +0 -402
- package/src/__tests__/harnesses/gemini/GeminiSessionLocator.test.ts +0 -396
- package/src/__tests__/harnesses/grok/GrokAgentMapper.test.ts +0 -57
- package/src/__tests__/harnesses/grok/GrokCliAdapter.test.ts +0 -376
- package/src/__tests__/harnesses/grok/GrokIncrementalRefresh.test.ts +0 -170
- package/src/__tests__/harnesses/grok/GrokSessionLocator.test.ts +0 -106
- package/src/__tests__/harnesses/grok/GrokSessionParser.test.ts +0 -230
- package/src/__tests__/harnesses/kiro/KiroAdapter.test.ts +0 -552
- package/src/__tests__/harnesses/muse/MuseAdapter.test.ts +0 -197
- package/src/__tests__/harnesses/muse/MuseAgentMapper.test.ts +0 -83
- package/src/__tests__/harnesses/muse/MuseSessionLocator.test.ts +0 -177
- package/src/__tests__/harnesses/muse/MuseSessionParser.test.ts +0 -279
- package/src/__tests__/harnesses/opencode/OpenCodeAdapter.test.ts +0 -215
- package/src/__tests__/harnesses/opencode/OpenCodeAgentMapper.test.ts +0 -101
- package/src/__tests__/harnesses/opencode/OpenCodeSessionLocator.test.ts +0 -84
- package/src/__tests__/harnesses/opencode/OpenCodeSessionParser.test.ts +0 -149
- package/src/__tests__/harnesses/pi/PiAdapter.test.ts +0 -325
- package/src/__tests__/harnesses/pi/PiDiscoveryIO.test.ts +0 -337
- package/src/__tests__/harnesses/pi/PiSessionParser.test.ts +0 -280
- package/src/__tests__/harnesses/pi/PiSessionTracker.test.ts +0 -79
- package/src/__tests__/harnesses/pi/durable/PiCliProbe.test.ts +0 -50
- package/src/__tests__/harnesses/pi/durable/PiDurableAgentRepository.test.ts +0 -33
- package/src/__tests__/harnesses/pi/durable/PiPrintAgentService.test.ts +0 -138
- package/src/__tests__/harnesses/pi/durable/PiPrintProtocol.test.ts +0 -71
- package/src/__tests__/harnesses/pi/durable/PiPrintRunner.test.ts +0 -252
- package/src/__tests__/harnesses/pi/durable/PiStreamParser.test.ts +0 -26
- package/src/__tests__/harnesses/readiness/AgentReadiness.test.ts +0 -362
- package/src/__tests__/harnesses/runtimeProfiles.test.ts +0 -123
- package/src/__tests__/print/DurableAgent.test.ts +0 -15
- package/src/__tests__/print/DurableAgentRepository.sqlite.test.ts +0 -128
- package/src/__tests__/print/DurableAgentRepository.test.ts +0 -184
- package/src/__tests__/readiness-fixtures.test.ts +0 -79
- package/src/__tests__/runtime/AgentRuntime.test.ts +0 -8
- package/src/__tests__/runtime/HerdrAgentDiscovery.test.ts +0 -131
- package/src/__tests__/runtime/HerdrAgentRuntime.test.ts +0 -377
- package/src/__tests__/runtime/ManagedAgentRuntime.test.ts +0 -590
- package/src/__tests__/terminal/GhosttyBackend.test.ts +0 -271
- package/src/__tests__/terminal/TerminalFocusManager.test.ts +0 -280
- package/src/__tests__/terminal/TmuxManager.test.ts +0 -185
- package/src/__tests__/terminal/TtyWriter.test.ts +0 -454
- package/src/__tests__/utils/AgentRegistry.test.ts +0 -532
- package/src/__tests__/utils/IncrementalJsonlSummary.test.ts +0 -414
- package/src/__tests__/utils/agent-requests.test.ts +0 -94
- package/src/__tests__/utils/conversationTail.bench.test.ts +0 -193
- package/src/__tests__/utils/conversationTailParity.test.ts +0 -365
- package/src/__tests__/utils/jsonlTail.test.ts +0 -317
- package/src/__tests__/utils/matching.test.ts +0 -234
- package/src/__tests__/utils/matchingConstants.test.ts +0 -40
- package/src/__tests__/utils/process.test.ts +0 -596
- package/src/__tests__/utils/session.test.ts +0 -158
- package/src/adapters/AgentAdapter.ts +0 -255
- package/src/capacity/index.ts +0 -127
- package/src/capacity/providers/anthropic.ts +0 -198
- package/src/capacity/providers/devin.ts +0 -121
- package/src/capacity/providers/openai-platform.ts +0 -150
- package/src/capacity/providers/openai-subscription.ts +0 -184
- package/src/capacity/providers/zai.ts +0 -155
- package/src/capacity/sources/claude.ts +0 -30
- package/src/capacity/sources/codex.ts +0 -251
- package/src/capacity/sources/devin.ts +0 -49
- package/src/capacity/sources/pi.ts +0 -131
- package/src/capacity/types.ts +0 -29
- package/src/database/connection.ts +0 -96
- package/src/database/index.ts +0 -7
- package/src/database/migrations/001_initial.sql +0 -12
- package/src/database/migrations/002_pins.sql +0 -1
- package/src/database/migrations/003_durable_agents.sql +0 -43
- package/src/database/migrations/004_codex_durable_sessions.sql +0 -1
- package/src/database/migrations/005_agent_runtime.sql +0 -2
- package/src/database/schema.ts +0 -64
- package/src/durable/DurableAgent.ts +0 -139
- package/src/durable/DurableAgentRepository.ts +0 -485
- package/src/durable/process.ts +0 -29
- package/src/durable/run.ts +0 -84
- package/src/durable/utils.ts +0 -66
- package/src/fixtures/bundle.ts +0 -130
- package/src/fixtures/capture.ts +0 -364
- package/src/harnesses/antigravity/AntigravityAgentMapper.ts +0 -34
- package/src/harnesses/antigravity/AntigravityCliAdapter.ts +0 -126
- package/src/harnesses/antigravity/AntigravitySessionLocator.ts +0 -75
- package/src/harnesses/antigravity/AntigravitySessionParser.ts +0 -252
- package/src/harnesses/claude/ClaudeAgentMapper.ts +0 -55
- package/src/harnesses/claude/ClaudeCodeAdapter.ts +0 -175
- package/src/harnesses/claude/ClaudeSessionLocator.ts +0 -358
- package/src/harnesses/claude/ClaudeSessionParser.ts +0 -524
- package/src/harnesses/claude/credentials.ts +0 -122
- package/src/harnesses/claude/durable/ClaudeCliProbe.ts +0 -57
- package/src/harnesses/claude/durable/ClaudePrintAgentService.ts +0 -79
- package/src/harnesses/claude/durable/ClaudePrintRunner.ts +0 -102
- package/src/harnesses/claude/durable/ClaudeStreamParser.ts +0 -108
- package/src/harnesses/claude/readiness.ts +0 -69
- package/src/harnesses/codex/CodexAdapter.ts +0 -337
- package/src/harnesses/codex/CodexAgentMapper.ts +0 -26
- package/src/harnesses/codex/CodexSessionLocator.ts +0 -509
- package/src/harnesses/codex/CodexSessionMapping.ts +0 -89
- package/src/harnesses/codex/CodexSessionParser.ts +0 -462
- package/src/harnesses/codex/credentials.ts +0 -81
- package/src/harnesses/codex/durable/CodexCliProbe.ts +0 -68
- package/src/harnesses/codex/durable/CodexPrintAgentService.ts +0 -79
- package/src/harnesses/codex/durable/CodexPrintRunner.ts +0 -104
- package/src/harnesses/codex/durable/CodexStreamParser.ts +0 -117
- package/src/harnesses/codex/readiness.ts +0 -72
- package/src/harnesses/copilot/CopilotAdapter.ts +0 -161
- package/src/harnesses/copilot/CopilotAgentMapper.ts +0 -27
- package/src/harnesses/copilot/CopilotSessionLocator.ts +0 -161
- package/src/harnesses/copilot/CopilotSessionParser.ts +0 -380
- package/src/harnesses/copilot/readiness.ts +0 -33
- package/src/harnesses/devin/DevinAdapter.ts +0 -212
- package/src/harnesses/devin/DevinAgentMapper.ts +0 -39
- package/src/harnesses/devin/DevinSessionLocator.ts +0 -230
- package/src/harnesses/devin/DevinSessionParser.ts +0 -227
- package/src/harnesses/devin/credentials.ts +0 -88
- package/src/harnesses/devin/readiness.ts +0 -36
- package/src/harnesses/gemini/GeminiAgentMapper.ts +0 -27
- package/src/harnesses/gemini/GeminiCliAdapter.ts +0 -272
- package/src/harnesses/gemini/GeminiSessionLocator.ts +0 -394
- package/src/harnesses/gemini/GeminiSessionParser.ts +0 -395
- package/src/harnesses/gemini/fileSignature.ts +0 -10
- package/src/harnesses/grok/GrokAgentMapper.ts +0 -32
- package/src/harnesses/grok/GrokCliAdapter.ts +0 -126
- package/src/harnesses/grok/GrokSessionLocator.ts +0 -179
- package/src/harnesses/grok/GrokSessionParser.ts +0 -251
- package/src/harnesses/index.ts +0 -32
- package/src/harnesses/kiro/KiroAdapter.ts +0 -143
- package/src/harnesses/kiro/KiroAgentMapper.ts +0 -34
- package/src/harnesses/kiro/KiroSessionLocator.ts +0 -143
- package/src/harnesses/kiro/KiroSessionParser.ts +0 -376
- package/src/harnesses/muse/MuseAdapter.ts +0 -157
- package/src/harnesses/muse/MuseAgentMapper.ts +0 -33
- package/src/harnesses/muse/MuseSessionLocator.ts +0 -286
- package/src/harnesses/muse/MuseSessionParser.ts +0 -435
- package/src/harnesses/muse/readiness.ts +0 -38
- package/src/harnesses/opencode/OpenCodeAdapter.ts +0 -110
- package/src/harnesses/opencode/OpenCodeAgentMapper.ts +0 -49
- package/src/harnesses/opencode/OpenCodeSessionLocator.ts +0 -151
- package/src/harnesses/opencode/OpenCodeSessionParser.ts +0 -146
- package/src/harnesses/opencode/readiness.ts +0 -48
- package/src/harnesses/pi/PiAdapter.ts +0 -197
- package/src/harnesses/pi/PiAgentMapper.ts +0 -27
- package/src/harnesses/pi/PiSessionLocator.ts +0 -288
- package/src/harnesses/pi/PiSessionParser.ts +0 -488
- package/src/harnesses/pi/PiSessionTracker.ts +0 -87
- package/src/harnesses/pi/credentials.ts +0 -129
- package/src/harnesses/pi/durable/PiCliProbe.ts +0 -56
- package/src/harnesses/pi/durable/PiPrintAgentService.ts +0 -77
- package/src/harnesses/pi/durable/PiPrintProtocol.ts +0 -41
- package/src/harnesses/pi/durable/PiPrintRunner.ts +0 -95
- package/src/harnesses/pi/durable/PiStreamParser.ts +0 -94
- package/src/harnesses/pi/readiness.ts +0 -104
- package/src/harnesses/readiness/AgentReadiness.ts +0 -91
- package/src/harnesses/readiness/checks.ts +0 -336
- package/src/harnesses/readiness/types.ts +0 -90
- package/src/harnesses/runtimeProfiles.ts +0 -105
- package/src/harnesses/shared.ts +0 -124
- package/src/index.ts +0 -71
- package/src/runtime/ManagedAgentRuntime.ts +0 -253
- package/src/runtime/RuntimeFactory.ts +0 -13
- package/src/runtime/errors.ts +0 -50
- package/src/runtime/herdr/HerdrAgentDiscovery.ts +0 -166
- package/src/runtime/herdr/HerdrAgentRuntime.ts +0 -216
- package/src/runtime/herdr/HerdrCliClient.ts +0 -78
- package/src/runtime/herdr/HerdrErrors.ts +0 -9
- package/src/runtime/herdr/HerdrResponseParsers.ts +0 -86
- package/src/runtime/herdr/HerdrRuntimeRef.ts +0 -41
- package/src/runtime/tmux/PidPolling.ts +0 -34
- package/src/runtime/tmux/TmuxAgentRuntime.ts +0 -113
- package/src/runtime/tmux/TmuxManager.ts +0 -102
- package/src/runtime/tmux/TmuxRuntimeRef.ts +0 -9
- package/src/runtime/types.ts +0 -56
- package/src/terminal/TerminalFocusManager.ts +0 -52
- package/src/terminal/TtyWriter.ts +0 -26
- package/src/terminal/backends/ghostty.ts +0 -180
- package/src/terminal/backends/index.ts +0 -23
- package/src/terminal/backends/iterm2.ts +0 -126
- package/src/terminal/backends/shared.ts +0 -47
- package/src/terminal/backends/terminal-app.ts +0 -122
- package/src/terminal/backends/tmux.ts +0 -62
- package/src/terminal/backends/wezterm.ts +0 -65
- package/src/terminal/types.ts +0 -23
- package/src/utils/AgentRegistry.ts +0 -351
- package/src/utils/IncrementalJsonlSummary.ts +0 -306
- package/src/utils/agent-requests.ts +0 -28
- package/src/utils/applescript.ts +0 -10
- package/src/utils/jsonlTail.ts +0 -349
- package/src/utils/matching.ts +0 -96
- package/src/utils/matchingConstants.ts +0 -15
- package/src/utils/process.ts +0 -604
- package/src/utils/session.ts +0 -144
- package/src/utils/sortAgents.ts +0 -54
- package/tsconfig.json +0 -11
- package/vitest.config.ts +0 -20
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Refresh-path I/O tests for Copilot: lock discovery must not rescan all
|
|
3
|
-
* session history, and unchanged events.jsonl files must not be re-read.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as fs from "fs";
|
|
7
|
-
import * as os from "os";
|
|
8
|
-
import * as path from "path";
|
|
9
|
-
|
|
10
|
-
import type { ProcessInfo } from "../../../adapters/AgentAdapter.js";
|
|
11
|
-
import { CopilotAdapter } from "../../../harnesses/copilot/CopilotAdapter.js";
|
|
12
|
-
import { CopilotSessionLocator } from "../../../harnesses/copilot/CopilotSessionLocator.js";
|
|
13
|
-
import { CopilotSessionParser } from "../../../harnesses/copilot/CopilotSessionParser.js";
|
|
14
|
-
import { AgentRegistry } from "../../../utils/AgentRegistry.js";
|
|
15
|
-
|
|
16
|
-
vi.mock("fs", async (importOriginal) => {
|
|
17
|
-
const actual = (await importOriginal()) as typeof import("fs");
|
|
18
|
-
return {
|
|
19
|
-
...actual,
|
|
20
|
-
readdirSync: vi.fn(actual.readdirSync),
|
|
21
|
-
statSync: vi.fn(actual.statSync),
|
|
22
|
-
openSync: vi.fn(actual.openSync),
|
|
23
|
-
readSync: vi.fn(actual.readSync),
|
|
24
|
-
readFileSync: vi.fn(actual.readFileSync),
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const mockedReaddirSync = vi.mocked(fs.readdirSync);
|
|
29
|
-
const mockedStatSync = vi.mocked(fs.statSync);
|
|
30
|
-
const mockedOpenSync = vi.mocked(fs.openSync);
|
|
31
|
-
const mockedReadSync = vi.mocked(fs.readSync);
|
|
32
|
-
const mockedReadFileSync = vi.mocked(fs.readFileSync);
|
|
33
|
-
|
|
34
|
-
function resetFsCalls(): void {
|
|
35
|
-
mockedReaddirSync.mockClear();
|
|
36
|
-
mockedStatSync.mockClear();
|
|
37
|
-
mockedOpenSync.mockClear();
|
|
38
|
-
mockedReadSync.mockClear();
|
|
39
|
-
mockedReadFileSync.mockClear();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function readdirPaths(): string[] {
|
|
43
|
-
return mockedReaddirSync.mock.calls.map((call) => String(call[0]));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function fsCallCount(): number {
|
|
47
|
-
return (
|
|
48
|
-
mockedReaddirSync.mock.calls.length +
|
|
49
|
-
mockedStatSync.mock.calls.length +
|
|
50
|
-
mockedOpenSync.mock.calls.length +
|
|
51
|
-
mockedReadSync.mock.calls.length +
|
|
52
|
-
mockedReadFileSync.mock.calls.length
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** Bytes read from `filePath` via readFileSync or fd reads since the last reset. */
|
|
57
|
-
function bytesReadFrom(filePath: string): number {
|
|
58
|
-
const opens = mockedOpenSync.mock.calls.map((call, index) => ({
|
|
59
|
-
path: String(call[0]),
|
|
60
|
-
fd: mockedOpenSync.mock.results[index]?.value as number,
|
|
61
|
-
order: mockedOpenSync.mock.invocationCallOrder[index],
|
|
62
|
-
}));
|
|
63
|
-
|
|
64
|
-
let total = 0;
|
|
65
|
-
mockedReadSync.mock.calls.forEach((call, index) => {
|
|
66
|
-
const result = mockedReadSync.mock.results[index];
|
|
67
|
-
const order = mockedReadSync.mock.invocationCallOrder[index];
|
|
68
|
-
const open = opens.filter((o) => o.fd === call[0] && o.order < order).at(-1);
|
|
69
|
-
if (result?.type === "return" && open?.path === filePath) {
|
|
70
|
-
total += result.value as number;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
mockedReadFileSync.mock.calls.forEach((call, index) => {
|
|
74
|
-
const result = mockedReadFileSync.mock.results[index];
|
|
75
|
-
if (result?.type === "return" && String(call[0]) === filePath) {
|
|
76
|
-
total += Buffer.byteLength(result.value as string | Buffer);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
return total;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function jsonl(entries: unknown[]): string {
|
|
83
|
-
return entries.map((entry) => `${JSON.stringify(entry)}\n`).join("");
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const HISTORY_COUNT = 1000;
|
|
87
|
-
const LIVE_PID = 43001;
|
|
88
|
-
|
|
89
|
-
// Building 1,000 fixture directories is slow on loaded machines
|
|
90
|
-
describe("Copilot refresh I/O", { timeout: 60_000 }, () => {
|
|
91
|
-
let tmpDir: string;
|
|
92
|
-
let sessionStateDir: string;
|
|
93
|
-
let liveDir: string;
|
|
94
|
-
let eventsFile: string;
|
|
95
|
-
let processes: ProcessInfo[];
|
|
96
|
-
|
|
97
|
-
beforeEach(() => {
|
|
98
|
-
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "copilot-refresh-"));
|
|
99
|
-
sessionStateDir = path.join(tmpDir, "session-state");
|
|
100
|
-
fs.mkdirSync(sessionStateDir, { recursive: true });
|
|
101
|
-
|
|
102
|
-
// 1,000 historical session directories last modified two days ago; some
|
|
103
|
-
// still carry stale locks (including one for the live PID, i.e. PID reuse).
|
|
104
|
-
const old = new Date(Date.now() - 2 * 24 * 60 * 60 * 1000);
|
|
105
|
-
for (let i = 0; i < HISTORY_COUNT; i++) {
|
|
106
|
-
const dir = path.join(sessionStateDir, `history-${String(i).padStart(4, "0")}`);
|
|
107
|
-
fs.mkdirSync(dir);
|
|
108
|
-
fs.writeFileSync(
|
|
109
|
-
path.join(dir, "events.jsonl"),
|
|
110
|
-
jsonl([{ type: "session.start", data: { sessionId: `history-${i}` } }]),
|
|
111
|
-
);
|
|
112
|
-
if (i % 100 === 0) {
|
|
113
|
-
fs.writeFileSync(path.join(dir, `inuse.${i === 0 ? LIVE_PID : 50000 + i}.lock`), "");
|
|
114
|
-
}
|
|
115
|
-
fs.utimesSync(dir, old, old);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const startTime = new Date(Date.now() - 10_000);
|
|
119
|
-
liveDir = path.join(sessionStateDir, "live-session");
|
|
120
|
-
fs.mkdirSync(liveDir);
|
|
121
|
-
eventsFile = path.join(liveDir, "events.jsonl");
|
|
122
|
-
fs.writeFileSync(
|
|
123
|
-
eventsFile,
|
|
124
|
-
jsonl([
|
|
125
|
-
{
|
|
126
|
-
type: "session.start",
|
|
127
|
-
data: { sessionId: "live-session", context: { cwd: "/repo/live" } },
|
|
128
|
-
timestamp: startTime.toISOString(),
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
type: "user.message",
|
|
132
|
-
data: { content: "live task" },
|
|
133
|
-
timestamp: new Date().toISOString(),
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
type: "assistant.message",
|
|
137
|
-
data: { content: "y".repeat(300_000) },
|
|
138
|
-
timestamp: new Date().toISOString(),
|
|
139
|
-
},
|
|
140
|
-
]),
|
|
141
|
-
);
|
|
142
|
-
fs.writeFileSync(path.join(liveDir, `inuse.${LIVE_PID}.lock`), "");
|
|
143
|
-
|
|
144
|
-
processes = [
|
|
145
|
-
{ pid: LIVE_PID, command: "copilot", cwd: "/repo/live", tty: "ttys001", startTime },
|
|
146
|
-
];
|
|
147
|
-
resetFsCalls();
|
|
148
|
-
}, 60_000);
|
|
149
|
-
|
|
150
|
-
afterEach(() => {
|
|
151
|
-
fs.rmSync(tmpDir, { recursive: true, force: true });
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
describe("CopilotSessionLocator.discoverActiveLocks", () => {
|
|
155
|
-
it("reads only session directories modified since the live process started", () => {
|
|
156
|
-
const locator = new CopilotSessionLocator({ sessionStateDir });
|
|
157
|
-
|
|
158
|
-
const locks = locator.discoverActiveLocks(processes);
|
|
159
|
-
|
|
160
|
-
expect(locks).toEqual([{ sessionDir: liveDir, sessionId: "live-session", pid: LIVE_PID }]);
|
|
161
|
-
expect(readdirPaths().sort()).toEqual([sessionStateDir, liveDir].sort());
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
it("re-validates a known live lock with a single stat and no readdir", () => {
|
|
165
|
-
const locator = new CopilotSessionLocator({ sessionStateDir });
|
|
166
|
-
locator.discoverActiveLocks(processes);
|
|
167
|
-
resetFsCalls();
|
|
168
|
-
|
|
169
|
-
const locks = locator.discoverActiveLocks(processes);
|
|
170
|
-
|
|
171
|
-
expect(locks).toEqual([{ sessionDir: liveDir, sessionId: "live-session", pid: LIVE_PID }]);
|
|
172
|
-
expect(mockedReaddirSync).not.toHaveBeenCalled();
|
|
173
|
-
expect(fsCallCount()).toBe(1);
|
|
174
|
-
expect(String(mockedStatSync.mock.calls[0][0])).toBe(
|
|
175
|
-
path.join(liveDir, `inuse.${LIVE_PID}.lock`),
|
|
176
|
-
);
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
it("rediscovers when the known lock disappears", () => {
|
|
180
|
-
const locator = new CopilotSessionLocator({ sessionStateDir });
|
|
181
|
-
locator.discoverActiveLocks(processes);
|
|
182
|
-
fs.unlinkSync(path.join(liveDir, `inuse.${LIVE_PID}.lock`));
|
|
183
|
-
const nextDir = path.join(sessionStateDir, "next-session");
|
|
184
|
-
fs.mkdirSync(nextDir);
|
|
185
|
-
fs.writeFileSync(path.join(nextDir, `inuse.${LIVE_PID}.lock`), "");
|
|
186
|
-
resetFsCalls();
|
|
187
|
-
|
|
188
|
-
const locks = locator.discoverActiveLocks(processes);
|
|
189
|
-
|
|
190
|
-
expect(locks).toEqual([{ sessionDir: nextDir, sessionId: "next-session", pid: LIVE_PID }]);
|
|
191
|
-
expect(readdirPaths()).not.toContain(path.join(sessionStateDir, "history-0000"));
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
it("does not reuse a cached lock after the PID is reused by a new process", () => {
|
|
195
|
-
const locator = new CopilotSessionLocator({ sessionStateDir });
|
|
196
|
-
locator.discoverActiveLocks(processes);
|
|
197
|
-
resetFsCalls();
|
|
198
|
-
|
|
199
|
-
const reused = [{ ...processes[0], startTime: new Date(Date.now() + 1_000) }];
|
|
200
|
-
locator.discoverActiveLocks(reused);
|
|
201
|
-
|
|
202
|
-
expect(readdirPaths()).toContain(sessionStateDir);
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
it("scans every session directory when a process start time is unknown", () => {
|
|
206
|
-
const locator = new CopilotSessionLocator({ sessionStateDir });
|
|
207
|
-
|
|
208
|
-
const locks = locator.discoverActiveLocks([{ pid: LIVE_PID }]);
|
|
209
|
-
|
|
210
|
-
expect(mockedReaddirSync).toHaveBeenCalledTimes(HISTORY_COUNT + 2);
|
|
211
|
-
expect(locks.map((lock) => lock.sessionId).sort()).toEqual(["history-0000", "live-session"]);
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
describe("CopilotSessionParser.readSessionDirIncremental", () => {
|
|
216
|
-
it("matches readSessionDir before and after an append", () => {
|
|
217
|
-
const parser = new CopilotSessionParser();
|
|
218
|
-
expect(parser.readSessionDirIncremental(liveDir, "fallback")).toEqual(
|
|
219
|
-
parser.readSessionDir(liveDir, "fallback"),
|
|
220
|
-
);
|
|
221
|
-
|
|
222
|
-
fs.appendFileSync(
|
|
223
|
-
eventsFile,
|
|
224
|
-
'{"type":"assistant.message","data":{"content":"done"}}\nnot json\n',
|
|
225
|
-
);
|
|
226
|
-
expect(parser.readSessionDirIncremental(liveDir, "fallback")).toEqual(
|
|
227
|
-
parser.readSessionDir(liveDir, "fallback"),
|
|
228
|
-
);
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
describe("CopilotAdapter.detectAgents", () => {
|
|
233
|
-
it("reads 0 bytes of an unchanged events.jsonl and only appended bytes afterwards", async () => {
|
|
234
|
-
const adapter = new CopilotAdapter(new AgentRegistry(path.join(tmpDir, "agents.json")), {
|
|
235
|
-
sessionStateDir,
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
const first = await adapter.detectAgents({ processes });
|
|
239
|
-
expect(first).toHaveLength(1);
|
|
240
|
-
expect(first[0]).toMatchObject({
|
|
241
|
-
pid: LIVE_PID,
|
|
242
|
-
sessionId: "live-session",
|
|
243
|
-
projectPath: "/repo/live",
|
|
244
|
-
summary: "live task",
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
resetFsCalls();
|
|
248
|
-
const second = await adapter.detectAgents({ processes });
|
|
249
|
-
expect(second).toEqual(first);
|
|
250
|
-
expect(bytesReadFrom(eventsFile)).toBe(0);
|
|
251
|
-
expect(mockedReaddirSync).not.toHaveBeenCalled();
|
|
252
|
-
|
|
253
|
-
const appended = jsonl([
|
|
254
|
-
{
|
|
255
|
-
type: "user.message",
|
|
256
|
-
data: { content: "follow up" },
|
|
257
|
-
timestamp: new Date().toISOString(),
|
|
258
|
-
},
|
|
259
|
-
]);
|
|
260
|
-
fs.appendFileSync(eventsFile, appended);
|
|
261
|
-
resetFsCalls();
|
|
262
|
-
|
|
263
|
-
const third = await adapter.detectAgents({ processes });
|
|
264
|
-
expect(third[0]).toMatchObject({ sessionId: "live-session", summary: "live task" });
|
|
265
|
-
expect(bytesReadFrom(eventsFile)).toBeLessThanOrEqual(
|
|
266
|
-
Buffer.byteLength(appended) + 64 * 1024,
|
|
267
|
-
);
|
|
268
|
-
});
|
|
269
|
-
});
|
|
270
|
-
});
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import * as fs from "fs";
|
|
2
|
-
import * as os from "os";
|
|
3
|
-
import * as path from "path";
|
|
4
|
-
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
5
|
-
import { AgentStatus, type ProcessInfo } from "../../../adapters/AgentAdapter.js";
|
|
6
|
-
import { DevinAdapter } from "../../../harnesses/devin/DevinAdapter.js";
|
|
7
|
-
import { writeDatabase, writeLocks } from "./fixtures.js";
|
|
8
|
-
|
|
9
|
-
describe("DevinAdapter", () => {
|
|
10
|
-
let adapter: DevinAdapter;
|
|
11
|
-
let tmpDir: string;
|
|
12
|
-
let dbPath: string;
|
|
13
|
-
let locksDir: string;
|
|
14
|
-
|
|
15
|
-
beforeEach(() => {
|
|
16
|
-
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "devin-adapter-test-"));
|
|
17
|
-
dbPath = path.join(tmpDir, "sessions.db");
|
|
18
|
-
locksDir = path.join(tmpDir, "session_locks");
|
|
19
|
-
adapter = new DevinAdapter(dbPath, locksDir);
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
afterEach(() => {
|
|
23
|
-
adapter.close();
|
|
24
|
-
fs.rmSync(tmpDir, { recursive: true, force: true });
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it("accepts agent invocations and rejects utility subcommands", () => {
|
|
28
|
-
const cases: [string, boolean][] = [
|
|
29
|
-
["devin", true],
|
|
30
|
-
["/usr/local/bin/devin", true],
|
|
31
|
-
["devin -r brawny-shirt", true],
|
|
32
|
-
["devin --resume brawny-shirt --model x", true],
|
|
33
|
-
["devin -p fix the bug", true],
|
|
34
|
-
["devin -p update the schema", true],
|
|
35
|
-
["devin --print list files", true],
|
|
36
|
-
["devin -r", true],
|
|
37
|
-
["devin --resume", true],
|
|
38
|
-
["devin --cloud", true],
|
|
39
|
-
["devin acp", true],
|
|
40
|
-
["/Users/x/.local/bin/devin acp --cloud", true],
|
|
41
|
-
["devin -- list the files", true],
|
|
42
|
-
["devin list", false],
|
|
43
|
-
["devin ls", false],
|
|
44
|
-
["devin doctor", false],
|
|
45
|
-
["devin auth status", false],
|
|
46
|
-
["devin ssh sess-1", false],
|
|
47
|
-
["devin forward 8080", false],
|
|
48
|
-
["devin models", false],
|
|
49
|
-
["devin skills list", false],
|
|
50
|
-
["devin rules", false],
|
|
51
|
-
["devin mcp add x", false],
|
|
52
|
-
["devin plugins list", false],
|
|
53
|
-
["devin cloud ls", false],
|
|
54
|
-
["devin desktop /repo", false],
|
|
55
|
-
["devin update", false],
|
|
56
|
-
["devin version", false],
|
|
57
|
-
["devin migrate", false],
|
|
58
|
-
["devin sandbox run", false],
|
|
59
|
-
["devin setup", false],
|
|
60
|
-
["devin uninstall", false],
|
|
61
|
-
["devin rm sess-1", false],
|
|
62
|
-
["devin help", false],
|
|
63
|
-
["devin --model opus list", false],
|
|
64
|
-
["devin --model=opus list", false],
|
|
65
|
-
["devin --config /tmp/c.json update", false],
|
|
66
|
-
["devin --prompt-file /tmp/p.txt rm", false],
|
|
67
|
-
["node devin.js", false],
|
|
68
|
-
["devinition", false],
|
|
69
|
-
];
|
|
70
|
-
for (const [command, expected] of cases) {
|
|
71
|
-
expect(adapter.canHandle({ pid: 1, command, cwd: "/repo", tty: "ttys001" })).toBe(
|
|
72
|
-
expected,
|
|
73
|
-
command,
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
it("returns process-only agents when no database or lock exists", async () => {
|
|
79
|
-
const agents = await adapter.detectAgents({
|
|
80
|
-
processes: [{ pid: 100, command: "devin", cwd: "/repo", tty: "ttys001" }],
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
expect(agents).toEqual([
|
|
84
|
-
expect.objectContaining({
|
|
85
|
-
type: "devin",
|
|
86
|
-
status: AgentStatus.RUNNING,
|
|
87
|
-
pid: 100,
|
|
88
|
-
sessionId: "pid-100",
|
|
89
|
-
summary: "Devin process running",
|
|
90
|
-
}),
|
|
91
|
-
]);
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
it("matches a TUI to its session through the acp backend's lock", async () => {
|
|
95
|
-
const now = Math.floor(Date.now() / 1000);
|
|
96
|
-
writeDatabase(dbPath, {
|
|
97
|
-
sessions: [{ id: "brawny-shirt", directory: "/repo", timeCreated: now - 100 }],
|
|
98
|
-
nodes: [
|
|
99
|
-
{
|
|
100
|
-
sessionId: "brawny-shirt",
|
|
101
|
-
nodeId: 1,
|
|
102
|
-
role: "user",
|
|
103
|
-
content: "fix the tests",
|
|
104
|
-
isUserInput: true,
|
|
105
|
-
createdAt: now - 90,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
sessionId: "brawny-shirt",
|
|
109
|
-
nodeId: 2,
|
|
110
|
-
role: "assistant",
|
|
111
|
-
content: "on it",
|
|
112
|
-
createdAt: now - 60,
|
|
113
|
-
},
|
|
114
|
-
],
|
|
115
|
-
prompts: [{ sessionId: "brawny-shirt", content: "fix the tests", timestamp: now - 90 }],
|
|
116
|
-
});
|
|
117
|
-
writeLocks(locksDir, { "brawny-shirt": 201 });
|
|
118
|
-
|
|
119
|
-
const tui: ProcessInfo = { pid: 200, command: "devin", cwd: "/repo", tty: "ttys001" };
|
|
120
|
-
const acp: ProcessInfo = {
|
|
121
|
-
pid: 201,
|
|
122
|
-
ppid: 200,
|
|
123
|
-
command: "/usr/local/bin/devin acp",
|
|
124
|
-
cwd: "/repo",
|
|
125
|
-
tty: "??",
|
|
126
|
-
};
|
|
127
|
-
const agents = await adapter.detectAgents({ processes: [tui, acp] });
|
|
128
|
-
|
|
129
|
-
expect(agents).toHaveLength(1);
|
|
130
|
-
expect(agents[0]).toMatchObject({
|
|
131
|
-
type: "devin",
|
|
132
|
-
status: AgentStatus.WAITING,
|
|
133
|
-
pid: 200,
|
|
134
|
-
sessionId: "brawny-shirt",
|
|
135
|
-
summary: "fix the tests",
|
|
136
|
-
sessionFilePath: `${dbPath}::brawny-shirt`,
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
it("lists a standalone devin acp process as an agent via its own lock", async () => {
|
|
141
|
-
const now = Math.floor(Date.now() / 1000);
|
|
142
|
-
writeDatabase(dbPath, {
|
|
143
|
-
sessions: [{ id: "merry-frog", directory: "/repo", timeCreated: now - 50 }],
|
|
144
|
-
nodes: [
|
|
145
|
-
{
|
|
146
|
-
sessionId: "merry-frog",
|
|
147
|
-
nodeId: 1,
|
|
148
|
-
role: "tool",
|
|
149
|
-
content: "running",
|
|
150
|
-
createdAt: now - 10,
|
|
151
|
-
},
|
|
152
|
-
],
|
|
153
|
-
});
|
|
154
|
-
writeLocks(locksDir, { "merry-frog": 300 });
|
|
155
|
-
|
|
156
|
-
const acp: ProcessInfo = {
|
|
157
|
-
pid: 300,
|
|
158
|
-
ppid: 999,
|
|
159
|
-
command: "devin acp",
|
|
160
|
-
cwd: "/repo",
|
|
161
|
-
tty: "??",
|
|
162
|
-
};
|
|
163
|
-
const agents = await adapter.detectAgents({ processes: [acp] });
|
|
164
|
-
|
|
165
|
-
expect(agents).toHaveLength(1);
|
|
166
|
-
expect(agents[0]).toMatchObject({
|
|
167
|
-
type: "devin",
|
|
168
|
-
status: AgentStatus.RUNNING,
|
|
169
|
-
pid: 300,
|
|
170
|
-
sessionId: "merry-frog",
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
it("ignores stale locks whose holder is not a live devin process", async () => {
|
|
175
|
-
const now = Math.floor(Date.now() / 1000);
|
|
176
|
-
writeDatabase(dbPath, {
|
|
177
|
-
sessions: [{ id: "dead-session", directory: "/repo", timeCreated: now - 500 }],
|
|
178
|
-
});
|
|
179
|
-
writeLocks(locksDir, { "dead-session": 4242 });
|
|
180
|
-
|
|
181
|
-
const agents = await adapter.detectAgents({
|
|
182
|
-
processes: [{ pid: 100, command: "devin", cwd: "/repo", tty: "ttys001" }],
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
// No lock match; cwd fallback still finds the session row.
|
|
186
|
-
expect(agents).toHaveLength(1);
|
|
187
|
-
expect(agents[0]).toMatchObject({ type: "devin", sessionId: "dead-session", pid: 100 });
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
it("ignores a lock when its pid is reused by a non-devin process", async () => {
|
|
191
|
-
const now = Math.floor(Date.now() / 1000);
|
|
192
|
-
writeDatabase(dbPath, {
|
|
193
|
-
sessions: [{ id: "reused-pid", directory: "/other", timeCreated: now - 500 }],
|
|
194
|
-
});
|
|
195
|
-
writeLocks(locksDir, { "reused-pid": 777 });
|
|
196
|
-
|
|
197
|
-
const processes: ProcessInfo[] = [
|
|
198
|
-
{ pid: 777, command: "redis-server", cwd: "/", tty: "??" },
|
|
199
|
-
{ pid: 100, command: "devin", cwd: "/repo", tty: "ttys001" },
|
|
200
|
-
];
|
|
201
|
-
const agents = await adapter.detectAgents({ processes });
|
|
202
|
-
|
|
203
|
-
expect(agents).toHaveLength(1);
|
|
204
|
-
expect(agents[0]).toMatchObject({ sessionId: "pid-100" });
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
it("disambiguates two TUIs in the same directory via their locks", async () => {
|
|
208
|
-
const now = Math.floor(Date.now() / 1000);
|
|
209
|
-
writeDatabase(dbPath, {
|
|
210
|
-
sessions: [
|
|
211
|
-
{ id: "first", directory: "/repo", timeCreated: now - 200 },
|
|
212
|
-
{ id: "second", directory: "/repo", timeCreated: now - 100 },
|
|
213
|
-
],
|
|
214
|
-
nodes: [
|
|
215
|
-
{ sessionId: "first", nodeId: 1, role: "assistant", content: "a", createdAt: now - 50 },
|
|
216
|
-
{ sessionId: "second", nodeId: 1, role: "assistant", content: "b", createdAt: now - 40 },
|
|
217
|
-
],
|
|
218
|
-
});
|
|
219
|
-
writeLocks(locksDir, { first: 401, second: 501 });
|
|
220
|
-
|
|
221
|
-
const processes: ProcessInfo[] = [
|
|
222
|
-
{ pid: 400, command: "devin", cwd: "/repo", tty: "ttys001" },
|
|
223
|
-
{ pid: 401, ppid: 400, command: "devin acp", cwd: "/repo", tty: "??" },
|
|
224
|
-
{ pid: 500, command: "devin", cwd: "/repo", tty: "ttys002" },
|
|
225
|
-
{ pid: 501, ppid: 500, command: "devin acp", cwd: "/repo", tty: "??" },
|
|
226
|
-
];
|
|
227
|
-
const agents = await adapter.detectAgents({ processes });
|
|
228
|
-
|
|
229
|
-
expect(agents).toHaveLength(2);
|
|
230
|
-
expect(agents.find((a) => a.pid === 400)?.sessionId).toBe("first");
|
|
231
|
-
expect(agents.find((a) => a.pid === 500)?.sessionId).toBe("second");
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
it("falls back to working_directory matching without a lock", async () => {
|
|
235
|
-
const now = Math.floor(Date.now() / 1000);
|
|
236
|
-
writeDatabase(dbPath, {
|
|
237
|
-
sessions: [
|
|
238
|
-
{ id: "older", directory: "/repo", timeCreated: now - 300, lastActivityAt: now - 300 },
|
|
239
|
-
{ id: "newer", directory: "/repo", timeCreated: now - 200, lastActivityAt: now - 60 },
|
|
240
|
-
{ id: "hidden-sess", directory: "/repo", timeCreated: now - 10, hidden: 1 },
|
|
241
|
-
],
|
|
242
|
-
nodes: [{ sessionId: "newer", nodeId: 1, role: "user", content: "hi", createdAt: now - 60 }],
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
const agents = await adapter.detectAgents({
|
|
246
|
-
processes: [{ pid: 100, command: "devin -p work", cwd: "/repo", tty: "ttys001" }],
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
expect(agents).toHaveLength(1);
|
|
250
|
-
expect(agents[0]).toMatchObject({ sessionId: "newer", type: "devin" });
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
it("survives an unreadable database", async () => {
|
|
254
|
-
fs.writeFileSync(dbPath, "not sqlite at all");
|
|
255
|
-
const agents = await adapter.detectAgents({
|
|
256
|
-
processes: [{ pid: 100, command: "devin", cwd: "/repo", tty: "ttys001" }],
|
|
257
|
-
});
|
|
258
|
-
expect(agents).toEqual([expect.objectContaining({ sessionId: "pid-100" })]);
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
it("returns conversation messages for encoded session refs", () => {
|
|
262
|
-
writeDatabase(dbPath, {
|
|
263
|
-
sessions: [{ id: "sess-1", directory: "/repo", timeCreated: 1000 }],
|
|
264
|
-
nodes: [
|
|
265
|
-
{ sessionId: "sess-1", nodeId: 1, role: "user", content: "hello", isUserInput: true },
|
|
266
|
-
{ sessionId: "sess-1", nodeId: 2, role: "assistant", content: "hi there" },
|
|
267
|
-
],
|
|
268
|
-
});
|
|
269
|
-
|
|
270
|
-
expect(adapter.getConversation(`${dbPath}::sess-1`)).toEqual([
|
|
271
|
-
{ role: "user", content: "hello" },
|
|
272
|
-
{ role: "assistant", content: "hi there" },
|
|
273
|
-
]);
|
|
274
|
-
expect(adapter.getConversation("/not-a-ref")).toEqual([]);
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
it("finds sessions by exact slug", async () => {
|
|
278
|
-
writeDatabase(dbPath, {
|
|
279
|
-
sessions: [
|
|
280
|
-
{ id: "wanted", directory: "/repo", timeCreated: 1000 },
|
|
281
|
-
{ id: "other", directory: "/other", timeCreated: 999 },
|
|
282
|
-
],
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
await expect(adapter.findSessionsById("wanted")).resolves.toEqual([
|
|
286
|
-
expect.objectContaining({ type: "devin", sessionId: "wanted" }),
|
|
287
|
-
]);
|
|
288
|
-
await expect(adapter.findSessionsById("missing")).resolves.toEqual([]);
|
|
289
|
-
});
|
|
290
|
-
});
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
-
import { AgentStatus, type ProcessInfo } from "../../../adapters/AgentAdapter.js";
|
|
3
|
-
import { DevinAgentMapper } from "../../../harnesses/devin/DevinAgentMapper.js";
|
|
4
|
-
import type { DevinSession } from "../../../harnesses/devin/DevinSessionLocator.js";
|
|
5
|
-
|
|
6
|
-
const DB_PATH = "/data/devin/cli/sessions.db";
|
|
7
|
-
|
|
8
|
-
function session(overrides: Partial<DevinSession> = {}): DevinSession {
|
|
9
|
-
return {
|
|
10
|
-
sessionId: "brawny-shirt",
|
|
11
|
-
directory: "/repo",
|
|
12
|
-
title: null,
|
|
13
|
-
timeCreated: Date.now() - 60_000,
|
|
14
|
-
lastActivityAt: Date.now() - 30_000,
|
|
15
|
-
...overrides,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function proc(overrides: Partial<ProcessInfo> = {}): ProcessInfo {
|
|
20
|
-
return { pid: 42, command: "devin", cwd: "/repo", tty: "ttys001", ...overrides };
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
describe("DevinAgentMapper", () => {
|
|
24
|
-
const mapper = new DevinAgentMapper(DB_PATH);
|
|
25
|
-
|
|
26
|
-
it("maps a session to a waiting agent when the frontier node is assistant", () => {
|
|
27
|
-
const agent = mapper.mapSessionToAgent(
|
|
28
|
-
session(),
|
|
29
|
-
{ lastRole: "assistant", lastTimeUpdated: Date.now() - 1000, summary: "fix tests" },
|
|
30
|
-
proc(),
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
expect(agent).toMatchObject({
|
|
34
|
-
type: "devin",
|
|
35
|
-
status: AgentStatus.WAITING,
|
|
36
|
-
pid: 42,
|
|
37
|
-
projectPath: "/repo",
|
|
38
|
-
sessionId: "brawny-shirt",
|
|
39
|
-
summary: "fix tests",
|
|
40
|
-
sessionFilePath: `${DB_PATH}::brawny-shirt`,
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it("maps running status for user/tool frontier nodes", () => {
|
|
45
|
-
for (const lastRole of ["user", "tool", null]) {
|
|
46
|
-
const agent = mapper.mapSessionToAgent(
|
|
47
|
-
session(),
|
|
48
|
-
{ lastRole, lastTimeUpdated: Date.now() - 1000, summary: "" },
|
|
49
|
-
proc(),
|
|
50
|
-
);
|
|
51
|
-
expect(agent.status).toBe(AgentStatus.RUNNING);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it("marks stale sessions idle", () => {
|
|
56
|
-
const agent = mapper.mapSessionToAgent(
|
|
57
|
-
session(),
|
|
58
|
-
{
|
|
59
|
-
lastRole: "user",
|
|
60
|
-
lastTimeUpdated: Date.now() - 10 * 60 * 1000,
|
|
61
|
-
summary: "",
|
|
62
|
-
},
|
|
63
|
-
proc(),
|
|
64
|
-
);
|
|
65
|
-
expect(agent.status).toBe(AgentStatus.IDLE);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it("keeps stale sessions awaiting input waiting", () => {
|
|
69
|
-
const agent = mapper.mapSessionToAgent(
|
|
70
|
-
session(),
|
|
71
|
-
{
|
|
72
|
-
lastRole: "assistant",
|
|
73
|
-
lastTimeUpdated: Date.now() - 10 * 60 * 1000,
|
|
74
|
-
summary: "",
|
|
75
|
-
},
|
|
76
|
-
proc(),
|
|
77
|
-
);
|
|
78
|
-
expect(agent.status).toBe(AgentStatus.WAITING);
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
it("falls back to session title then directory for summary and project path", () => {
|
|
82
|
-
const agent = mapper.mapSessionToAgent(
|
|
83
|
-
session({ title: "Hello Greeting Session" }),
|
|
84
|
-
{ lastRole: "assistant", lastTimeUpdated: 0, summary: "" },
|
|
85
|
-
proc({ cwd: "/elsewhere" }),
|
|
86
|
-
);
|
|
87
|
-
expect(agent.summary).toBe("Hello Greeting Session");
|
|
88
|
-
expect(agent.projectPath).toBe("/repo");
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
it("maps a process-only agent", () => {
|
|
92
|
-
const agent = mapper.mapProcessOnlyAgent(proc({ pid: 7 }));
|
|
93
|
-
expect(agent).toMatchObject({
|
|
94
|
-
type: "devin",
|
|
95
|
-
status: AgentStatus.RUNNING,
|
|
96
|
-
pid: 7,
|
|
97
|
-
sessionId: "pid-7",
|
|
98
|
-
summary: "Devin process running",
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
});
|