@contextrail/code-review-agent 0.1.2-alpha.2 → 0.1.2-alpha.3

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.
@@ -31,6 +31,14 @@ export type ValidatedReviewAgentConfig = {
31
31
  contextLines: number;
32
32
  reviewDomains?: string[];
33
33
  };
34
+ /**
35
+ * Shared base config for agent-level operations (orchestrator, executor, etc.).
36
+ * Derived from ValidatedReviewAgentConfig to eliminate duplicated field definitions.
37
+ */
38
+ export type SharedAgentOpConfig = Pick<ValidatedReviewAgentConfig, 'openRouterApiKey' | 'reviewDomains'> & {
39
+ maxSteps?: number;
40
+ prDescription?: string;
41
+ };
34
42
  export declare const loadConfig: () => ReviewAgentConfig;
35
43
  export declare const applyCliArgs: (config: ReviewAgentConfig, args: CliArgs) => void;
36
44
  export declare const validateConfig: (config: ReviewAgentConfig) => ValidatedReviewAgentConfig;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import type { ReviewInputs } from '../review-inputs/index.js';
3
3
  import type { McpClient } from '../mcp/client.js';
4
4
  import type { Logger } from '../logging/logger.js';
5
+ import type { SharedAgentOpConfig } from '../config/index.js';
5
6
  import type { LlmService } from '../llm/service.js';
6
7
  declare const orchestratorOutputSchema: z.ZodObject<{
7
8
  understanding: z.ZodString;
@@ -14,12 +15,8 @@ declare const orchestratorOutputSchema: z.ZodObject<{
14
15
  reviewers: string[];
15
16
  }>;
16
17
  export type OrchestratorOutput = z.infer<typeof orchestratorOutputSchema>;
17
- export type AgenticOrchestratorConfig = {
18
- openRouterApiKey: string;
18
+ export type AgenticOrchestratorConfig = SharedAgentOpConfig & {
19
19
  orchestratorModel: string;
20
- maxSteps?: number;
21
- prDescription?: string;
22
- reviewDomains?: string[];
23
20
  };
24
21
  export type AgenticOrchestratorDeps = {
25
22
  mcpClient: McpClient;
@@ -3,6 +3,7 @@ import { type ChunkingConfig } from '../review-inputs/chunking.js';
3
3
  import { type FilePatterns } from '../review-inputs/file-patterns.js';
4
4
  import type { McpClient } from '../mcp/client.js';
5
5
  import type { ReviewerFindings } from '../output/schema.js';
6
+ import type { SharedAgentOpConfig } from '../config/index.js';
6
7
  import type { Logger } from '../logging/logger.js';
7
8
  import type { LlmService } from '../llm/service.js';
8
9
  /**
@@ -12,15 +13,11 @@ import type { LlmService } from '../llm/service.js';
12
13
  * @returns FilePatterns if found, undefined otherwise
13
14
  */
14
15
  export declare function extractFilePatterns(metadata: unknown): FilePatterns | undefined;
15
- export type AgenticExecutorConfig = {
16
- openRouterApiKey: string;
16
+ export type AgenticExecutorConfig = SharedAgentOpConfig & {
17
17
  reviewerModel: string;
18
18
  criticModel?: string;
19
- maxSteps?: number;
20
19
  maxIterations?: number;
21
20
  chunking?: ChunkingConfig;
22
- prDescription?: string;
23
- reviewDomains?: string[];
24
21
  };
25
22
  export type AgenticExecutorDeps = {
26
23
  mcpClient: McpClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextrail/code-review-agent",
3
- "version": "0.1.2-alpha.2",
3
+ "version": "0.1.2-alpha.3",
4
4
  "description": "CLI tool for orchestrating ContextRail-powered code reviews",
5
5
  "homepage": "https://contextrail.app",
6
6
  "repository": {