@doist/doistbot-cli 1.0.7 → 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.
Files changed (29) hide show
  1. package/dist/actions/auth.js +19 -5
  2. package/dist/actions/doctor.js +3 -1
  3. package/dist/actions/review.js +9 -4
  4. package/dist/auth.js +79 -30
  5. package/dist/config.js +12 -7
  6. package/dist/input.js +11 -11
  7. package/package.json +5 -4
  8. package/sandbox/dist/core/pi.js +10 -4
  9. package/sandbox/dist/core/shared.js +9 -9
  10. package/sandbox/dist/core/span-test-helpers.js +13 -0
  11. package/sandbox/dist/main.js +3 -0
  12. package/sandbox/dist/tasks/chat/chat.js +7 -6
  13. package/sandbox/dist/tasks/issue-triage/autofix-capabilities.js +22 -0
  14. package/sandbox/dist/tasks/issue-triage/fix-attempt.js +7 -0
  15. package/sandbox/dist/tasks/issue-triage/routing.js +124 -15
  16. package/sandbox/dist/tasks/issue-triage/triage.js +2 -0
  17. package/sandbox/dist/tasks/review/engines/multi-focus.js +16 -8
  18. package/sandbox/dist/tasks/review/multi-focus-prompt.js +2 -0
  19. package/sandbox/dist/tasks/review/review-summary.js +1 -1
  20. package/sandbox/dist/tasks/review-slice-plan/context.js +69 -0
  21. package/sandbox/dist/tasks/review-slice-plan/plan.js +209 -0
  22. package/sandbox/dist/tasks/review-slice-plan/prompt.js +59 -0
  23. package/sandbox/dist/tasks/review-slice-plan/review-slice-plan.js +470 -0
  24. package/sandbox/src/tasks/review/prompts/review-focus-prompts/efficiency.md +10 -12
  25. package/sandbox/src/tasks/review/prompts/review-focus-prompts/general.md +24 -7
  26. package/sandbox/src/tasks/review/prompts/review-focus-prompts/quality.md +14 -22
  27. package/sandbox/src/tasks/review/prompts/review-focus-prompts/reuse.md +13 -0
  28. package/sandbox/src/tasks/review/prompts/review-focus-prompts/security.md +18 -0
  29. 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
- Flag findings when:
6
-
7
- - the new tests are disproportionately complex for the behavior being covered
8
- - the tests rely on unnecessary mocking or deep implementation knowledge
9
- - the change duplicates existing coverage instead of extending nearby tests
10
- - the highest-value, practically testable scenario introduced by the diff is still untested
11
- - the tests are brittle in a way that will create avoidable maintenance cost
12
-
13
- Only report a missing-test finding when all of the following are true:
14
-
15
- - you can name the specific behavior or regression path introduced by this PR
16
- - the behavior is important enough that a regression would create real user, data, integration, or maintenance risk
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.