@doist/doistbot-cli 1.0.8 → 1.0.9
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/dist/actions/auth.js +5 -3
- package/dist/auth.js +67 -35
- package/dist/config.js +3 -1
- package/dist/input.js +11 -11
- package/package.json +5 -4
- package/sandbox/dist/core/pi.js +9 -3
- package/sandbox/dist/core/shared.js +9 -9
- package/sandbox/dist/core/span-test-helpers.js +13 -0
- package/sandbox/dist/main.js +3 -0
- package/sandbox/dist/tasks/issue-triage/autofix-capabilities.js +22 -0
- package/sandbox/dist/tasks/issue-triage/fix-attempt.js +6 -0
- package/sandbox/dist/tasks/issue-triage/routing.js +124 -15
- package/sandbox/dist/tasks/issue-triage/triage.js +2 -0
- package/sandbox/dist/tasks/review/engines/multi-focus.js +16 -8
- package/sandbox/dist/tasks/review/multi-focus-prompt.js +2 -0
- package/sandbox/dist/tasks/review/review-summary.js +1 -1
- package/sandbox/dist/tasks/review-slice-plan/context.js +69 -0
- package/sandbox/dist/tasks/review-slice-plan/plan.js +209 -0
- package/sandbox/dist/tasks/review-slice-plan/prompt.js +59 -0
- package/sandbox/dist/tasks/review-slice-plan/review-slice-plan.js +470 -0
- package/sandbox/src/tasks/review/prompts/review-focus-prompts/efficiency.md +10 -12
- package/sandbox/src/tasks/review/prompts/review-focus-prompts/general.md +24 -7
- package/sandbox/src/tasks/review/prompts/review-focus-prompts/quality.md +14 -22
- package/sandbox/src/tasks/review/prompts/review-focus-prompts/reuse.md +13 -0
- package/sandbox/src/tasks/review/prompts/review-focus-prompts/security.md +18 -0
- package/sandbox/src/tasks/review/prompts/review-focus-prompts/tests.md +12 -22
|
@@ -2,27 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
For this pass, focus only on test quality and test-design issues introduced by the diff.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- there is an existing, practical test path nearby: same module, adjacent tests, established fixture, or test harness already used for similar behavior
|
|
18
|
-
- the requested test would be reasonably scoped and would not require setting up a new test framework, major harness, large fixture system, or unrelated infrastructure first
|
|
19
|
-
|
|
20
|
-
Do not ask for tests solely because code changed. Avoid missing-test findings for CI scripts, one-off developer tooling, thin wrappers, mechanical config changes, or helper utilities unless the diff introduces meaningful branching, parsing, persistence, security-sensitive behavior, or another high-risk path with an existing practical test seam.
|
|
21
|
-
|
|
22
|
-
If a change is worth testing but the module is not currently testable without significant setup work, do not file a blocking test finding. You may mention the testability gap only when it is the core design issue introduced by the diff.
|
|
23
|
-
|
|
24
|
-
Do not ask for broad "more coverage" or tests for behavior that is already covered by adjacent tests.
|
|
25
|
-
|
|
26
|
-
Do not report production-code issues here unless they are directly tied to a test-quality problem.
|
|
5
|
+
Review the changes for potential testing issues, such as:
|
|
6
|
+
|
|
7
|
+
1. High-signal suite: favor a smaller test suite over exhaustive coverage. Treat tests as carrying maintenance cost. Each test should protect important behavior, a realistic failure mode, or a stable shared contract.
|
|
8
|
+
2. Low-value coverage: flag tests added only to cover implementation trivia. Examples include trivial getters/wrappers/constants, exact internal formatting, incidental telemetry/log details or events, timer internals, framework wiring with no behavior of its own, synthetic edge cases with no realistic breakage story, or behavior already covered by a higher-value test.
|
|
9
|
+
3. Test bloat: redundant cases, copy-paste matrices, excessive or repeated setup that should use or extract a fixture/helper, gratuitous snapshots, or unparameterized variations that increase maintenance cost without clear regression signal. Suggest consolidation or deletion in these cases.
|
|
10
|
+
4. Missing coverage: important behavior that can break without a test failing. Only ask for new tests when you can name the public/user-visible contract, security/privacy boundary, data-loss risk, serialization/wire contract, state transition, permission check, concurrency issue, or prior regression being protected.
|
|
11
|
+
5. Weak assertions: tests that do not check observable behavior or invariants.
|
|
12
|
+
6. Implementation-coupled tests: tests that assert private details, internal calls, or branch structure instead of behavior. Logs are worth testing only when logging itself is required behavior.
|
|
13
|
+
7. Over-mocking: mocks that erase the behavior under test, hide integration behavior, or only prove mocks were called/configured. Prefer real fixtures or recorded external-service interactions when local practice supports them.
|
|
14
|
+
8. Flaky patterns: time, random data, network calls, ordering, concurrency, or shared state that is not controlled by fixtures, clocks, cleanup, or deterministic assertions.
|
|
15
|
+
|
|
16
|
+
Do not ask for tests just because code changed. Only flag a missing test when you can name the important behavior or failure mode that could break. Only flag test removal/simplification when the remaining suite still protects the important intended behavior.
|
|
27
17
|
|
|
28
18
|
If the diff does not introduce any findings for this focus, return an empty comments array.
|