@ddtcorex/dsh-maestro-review 0.5.0 → 0.6.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.
Files changed (52) hide show
  1. package/README.md +2 -1
  2. package/lib/ci-coexist.d.ts +6 -4
  3. package/lib/ci-coexist.d.ts.map +1 -1
  4. package/lib/ci-coexist.js +6 -4
  5. package/lib/ci-coexist.js.map +1 -1
  6. package/lib/events.d.ts +4 -0
  7. package/lib/events.d.ts.map +1 -1
  8. package/lib/gitlab-client.d.ts +7 -0
  9. package/lib/gitlab-client.d.ts.map +1 -1
  10. package/lib/gitlab-client.js +21 -0
  11. package/lib/gitlab-client.js.map +1 -1
  12. package/lib/incremental.d.ts.map +1 -1
  13. package/lib/incremental.js +3 -2
  14. package/lib/incremental.js.map +1 -1
  15. package/lib/orchestrator.d.ts +15 -2
  16. package/lib/orchestrator.d.ts.map +1 -1
  17. package/lib/orchestrator.js +61 -11
  18. package/lib/orchestrator.js.map +1 -1
  19. package/lib/providers/ci-trigger.d.ts +2 -1
  20. package/lib/providers/ci-trigger.d.ts.map +1 -1
  21. package/lib/providers/ci-trigger.js +12 -8
  22. package/lib/providers/ci-trigger.js.map +1 -1
  23. package/lib/providers/gitlab.d.ts.map +1 -1
  24. package/lib/providers/gitlab.js +16 -4
  25. package/lib/providers/gitlab.js.map +1 -1
  26. package/lib/review-history.d.ts +2 -1
  27. package/lib/review-history.d.ts.map +1 -1
  28. package/lib/review-history.js +67 -40
  29. package/lib/review-history.js.map +1 -1
  30. package/lib/review-intake.d.ts +9 -0
  31. package/lib/review-intake.d.ts.map +1 -1
  32. package/lib/review-intake.js +34 -1
  33. package/lib/review-intake.js.map +1 -1
  34. package/lib/review-signals.d.ts.map +1 -1
  35. package/lib/review-signals.js +9 -3
  36. package/lib/review-signals.js.map +1 -1
  37. package/package.json +10 -9
  38. package/profiles/reviewer-ci/package.json +4 -4
  39. package/profiles/reviewer-ci/pnpm-lock.yaml +4934 -22
  40. package/profiles/reviewer-ci/pnpm-workspace.yaml +11 -0
  41. package/src/host/ci-coexist.ts +6 -4
  42. package/src/host/events.ts +4 -0
  43. package/src/host/gitlab-client.ts +21 -0
  44. package/src/host/incremental.ts +3 -2
  45. package/src/host/orchestrator.ts +65 -11
  46. package/src/host/providers/ci-trigger.ts +14 -10
  47. package/src/host/providers/gitlab.ts +19 -5
  48. package/src/host/review-history.ts +65 -35
  49. package/src/host/review-intake.ts +36 -1
  50. package/src/host/review-signals.ts +6 -4
  51. package/templates/reviewer-project.gitlab-ci.yml +15 -12
  52. package/templates/source-project.gitlab-ci.yml +1 -2
@@ -3,7 +3,7 @@ stages: [review]
3
3
 
4
4
  variables:
5
5
  # Image registry — pin the SHA for reproducibility
6
- REVIEWER_IMAGE: "ddtcorex/maestro-reviewer:latest"
6
+ REVIEWER_IMAGE: "ddtcorex/maestro-reviewer:0.1.0"
7
7
  # Or use $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA when building the image in the same project
8
8
 
9
9
  review:
@@ -42,18 +42,21 @@ review:
42
42
  # the run would "complete" without ever posting. A human-tied PAT needs yearly
43
43
  # rotation; prefer a bot/group token where the instance allows creating one.
44
44
  # MAESTRO_GITLAB_TOKEN (api scope) — required
45
- # Route selection is key-based (entrypoint.sh swaps the baked settings variant):
46
- # OPENCODE_GO_API_KEY → opencode profile (default, host mirror; serves opencode-go
47
- # AND deepseek-official-via-zen). Set alone, or with DEEPSEEK_API_KEY (opencode wins).
48
- # DEEPSEEK_API_KEY → deepseek profile ONLY when OPENCODE_GO_API_KEY is absent
49
- # (deepseek-official straight from api.deepseek.com — needs a LIVE deepseek.com key).
45
+ # Model route selection — deepseek is the sole baked default; set
46
+ # REVIEW_LLM_API_KEY to overlay any OpenAI-compatible endpoint instead:
47
+ # DEEPSEEK_API_KEY (required unless using the route below) — deepseek-official
48
+ # straight from api.deepseek.com.
49
+ # REVIEW_LLM_API_KEY / REVIEW_LLM_BASE_URL / REVIEW_LLM_MODEL — bring-your-own
50
+ # OpenAI-compatible endpoint (self-hosted, Azure OpenAI, OpenRouter, a
51
+ # private gateway, ...). All three required together; the job fails closed
52
+ # if REVIEW_LLM_API_KEY is set without the other two. Optional
53
+ # REVIEW_LLM_API selects the wire protocol (openai-completions [default]
54
+ # or openai-responses).
50
55
  # TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID (optional)
51
- # Opencode model (optional, one variable — default muse-spark-1.3-contributor):
52
- # OPENCODE_MODEL: "muse-spark-1.3-contributor"
53
- # Model pin (optional, as a pair — unset both for the host-mirrored default
54
- # = opencode-go/muse-spark-1.3-contributor, baked in docker/ci-settings.yaml):
55
- # REVIEW_MODEL_PROVIDER: "opencode-go" # or "deepseek-official"
56
- # REVIEW_MODEL: "muse-spark-1.3-contributor" # e.g. deepseek-v4-flash (deepseek-official via zen)
56
+ # Model pin (optional, as a pair — unset both for the active route's default
57
+ # model, baked in docker/ci-settings.*.yaml):
58
+ # REVIEW_MODEL_PROVIDER: "deepseek-official" # or "custom-openai"
59
+ # REVIEW_MODEL: "deepseek-v4-flash" # the active route's model id
57
60
  # Only the provider's key is needed — no settings mount required. ID without
58
61
  # provider fails the review with a provider error (not silently the wrong
59
62
  # model); provider without ID is ignored.
@@ -15,8 +15,7 @@ maestro:trigger-review:
15
15
  SOURCE_PROJECT_ID: $CI_PROJECT_ID
16
16
  MR_IID: $CI_MERGE_REQUEST_IID
17
17
  GITLAB_HOST: $CI_SERVER_HOST
18
- SOURCE_SHA: $CI_COMMIT_SHA
19
- REVIEW_MODE: "quick" # or "deep" for a govard audit
18
+ REVIEW_MODE: "quick" # or "deep" for a static-only audit (no govard runtime in CI)
20
19
  REVIEW_PROFILE: "generic" # per-project skill profile: magento2 | laravel | symfony | wordpress | generic
21
20
  # REVIEW_ON_PUSH: "1" # uncomment to re-review every push (default: only the opened review runs)
22
21