File size: 1,162 Bytes
f50dbbb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Issue

**Title:** [v2] Implement LazyInitEmitter for deferred plugin-loading

## Description

*Issue #, if available:*

* Contributes to 

*Description of changes:*

* Implemented `LazyInitEmitter`: an alternative event emitter that lazily loads plugins when events that they depend on are emitted. When `building-command-table.main` is emitted, if the plugin only adds/removes to the command table, we wrap the command in a `LazyCommand` wrapper to defer loading the plugin module until the command is invoked or the help docs are generated.
* Implemented unit tests for the new `LazyInitEmitter`.

*Description of tests:*

* Successfully ran pre-production build workflow (see Build Internal GH Action).



By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

## Task

Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `b151d1243199`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.