@weareikko/code-review 0.9.7 → 0.9.8
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/README.md +1 -0
- package/dist/{cli-m4pS6_5q.js → cli-CgQF5-WG.js} +1360 -62
- package/dist/cli-CgQF5-WG.js.map +1 -0
- package/dist/cli.d.ts +13 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/config.d.ts +25 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/diagnostics.d.ts +73 -0
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/gitlab-review.d.ts +69 -11
- package/dist/gitlab-review.d.ts.map +1 -1
- package/dist/intent.d.ts +21 -0
- package/dist/intent.d.ts.map +1 -0
- package/dist/marketplaces.d.ts +37 -0
- package/dist/marketplaces.d.ts.map +1 -1
- package/dist/mcp-config.d.ts +90 -0
- package/dist/mcp-config.d.ts.map +1 -0
- package/dist/mcp-parse.d.ts +146 -0
- package/dist/mcp-parse.d.ts.map +1 -0
- package/dist/mcp.d.ts +95 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/otel.d.ts.map +1 -1
- package/dist/posting.d.ts +1 -0
- package/dist/posting.d.ts.map +1 -1
- package/dist/review.d.ts +9 -3
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +2 -2
- package/dist/skill-links.d.ts +14 -4
- package/dist/skill-links.d.ts.map +1 -1
- package/dist/skill-usage.d.ts +67 -0
- package/dist/skill-usage.d.ts.map +1 -0
- package/dist/verify.d.ts +25 -1
- package/dist/verify.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/cli-m4pS6_5q.js.map +0 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure MCP server-definition parsing: `.mcp.json`-style document shapes,
|
|
3
|
+
* `${VAR}` env expansion, and normalisation into `McpServerConfig`. Has no
|
|
4
|
+
* dependency on the filesystem, git, or marketplaces, so both `mcp-config.ts`
|
|
5
|
+
* (repo/file discovery) and `marketplaces.ts` (plugin sources) can depend on
|
|
6
|
+
* it without forming a cycle between themselves.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Where an MCP server definition came from. Carried in enough detail to link
|
|
10
|
+
* the server name in the summary footer back to its source (see the MCP
|
|
11
|
+
* footer helper in `cli.ts`). `project.path` is the `.mcp.json` file relative to
|
|
12
|
+
* the repository root, POSIX-separated, like `SkillOrigin.project`.
|
|
13
|
+
*/
|
|
14
|
+
export type McpServerSource = {
|
|
15
|
+
kind: 'project';
|
|
16
|
+
path: string;
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'marketplace';
|
|
19
|
+
marketplace: string;
|
|
20
|
+
plugin: string;
|
|
21
|
+
url: string;
|
|
22
|
+
ref: string;
|
|
23
|
+
path: string;
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'file';
|
|
26
|
+
path: string;
|
|
27
|
+
};
|
|
28
|
+
/** Transports we can connect to. `ws` is recognised in files but skipped. */
|
|
29
|
+
export type McpTransportType = 'stdio' | 'http' | 'sse';
|
|
30
|
+
/** A normalised, env-expanded MCP server definition ready to connect. */
|
|
31
|
+
export interface McpServerConfig {
|
|
32
|
+
name: string;
|
|
33
|
+
type: McpTransportType;
|
|
34
|
+
/** stdio only. */
|
|
35
|
+
command?: string;
|
|
36
|
+
/** stdio only. */
|
|
37
|
+
args: string[];
|
|
38
|
+
/** stdio only — extra environment for the child process. */
|
|
39
|
+
env: Record<string, string>;
|
|
40
|
+
/** http / sse only. */
|
|
41
|
+
url?: string;
|
|
42
|
+
/** http / sse only. */
|
|
43
|
+
headers: Record<string, string>;
|
|
44
|
+
/** Per-call timeout; `undefined` means the bridge default. */
|
|
45
|
+
timeoutMs?: number;
|
|
46
|
+
source: McpServerSource;
|
|
47
|
+
}
|
|
48
|
+
/** Names disabled by a `.claude/settings.json` file. */
|
|
49
|
+
export interface McpDisableFilters {
|
|
50
|
+
/** `disabledMcpjsonServers` — servers declared in repo `.mcp.json` files. */
|
|
51
|
+
disabledMcpjsonServers: string[];
|
|
52
|
+
/** `disabledMcpServers` — servers from any source (plugins included). */
|
|
53
|
+
disabledMcpServers: string[];
|
|
54
|
+
}
|
|
55
|
+
/** Variables available to `${VAR}` expansion. Undefined values count as unset. */
|
|
56
|
+
export type McpEnvVars = Readonly<Record<string, string | undefined>>;
|
|
57
|
+
/**
|
|
58
|
+
* Upper bound on a server-declared `timeout`. A server definition governs its
|
|
59
|
+
* own per-call timeout, but it must not be able to stall the review for hours:
|
|
60
|
+
* connect and `tools/list` run before the agent loop, outside the review
|
|
61
|
+
* timeout, so an unclamped value there is a one-line denial of service.
|
|
62
|
+
*/
|
|
63
|
+
export declare const MAX_MCP_TIMEOUT_MS = 120000;
|
|
64
|
+
/**
|
|
65
|
+
* The subset of `env` an operator opted into exposing to `${VAR}` expansion.
|
|
66
|
+
*
|
|
67
|
+
* Server definitions can come from the repository under review or from a
|
|
68
|
+
* marketplace plugin whose upstream ref moves, so expanding from the whole
|
|
69
|
+
* process environment would let a definition read any secret the reviewer holds
|
|
70
|
+
* (`CODE_REVIEW_GITLAB_TOKEN`, `ANTHROPIC_API_KEY`, …) and ship it out in argv,
|
|
71
|
+
* a header, or a URL query string. Only names listed in `allowlist` are
|
|
72
|
+
* readable; everything else expands as unset, which skips the server with a
|
|
73
|
+
* warning that names the variable and never a value.
|
|
74
|
+
*/
|
|
75
|
+
export declare function pickMcpEnvVars(env: McpEnvVars, allowlist: readonly string[]): McpEnvVars;
|
|
76
|
+
/**
|
|
77
|
+
* Expand `${VAR}` and `${VAR:-default}` references in `value`. Missing
|
|
78
|
+
* variables (unset, with no default) are left untouched and reported by name in
|
|
79
|
+
* `missing` so callers can skip the server without ever logging a value.
|
|
80
|
+
*
|
|
81
|
+
* `${VAR:-default}` follows POSIX: the default applies when `VAR` is unset *or*
|
|
82
|
+
* empty. Bare `${VAR}` expands to an empty string when `VAR` is set but empty.
|
|
83
|
+
*/
|
|
84
|
+
export declare function expandMcpTemplate(value: string, vars: McpEnvVars): {
|
|
85
|
+
value: string;
|
|
86
|
+
missing: string[];
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Extract the server map from a parsed `.mcp.json`-style document. Two shapes
|
|
90
|
+
* are accepted:
|
|
91
|
+
*
|
|
92
|
+
* - Claude Code project shape: `{ "mcpServers": { name: server } }`
|
|
93
|
+
* - Plugin shape: `{ name: server }` (servers at the top level)
|
|
94
|
+
*
|
|
95
|
+
* The project shape is detected by a top-level `mcpServers` object. Returns
|
|
96
|
+
* `null` when the document is not an object at all.
|
|
97
|
+
*/
|
|
98
|
+
export declare function extractMcpServerMap(raw: unknown): Record<string, unknown> | null;
|
|
99
|
+
/**
|
|
100
|
+
* Drop headers whose value is empty or whitespace-only.
|
|
101
|
+
*
|
|
102
|
+
* A header value is routinely a `${VAR}` or `${VAR:-}` reference to a
|
|
103
|
+
* credential that is simply absent — an optional API key, or a token only set
|
|
104
|
+
* in CI. Sending `Authorization:` with no value is worse than not sending it:
|
|
105
|
+
* some servers reject the malformed header outright where they would have
|
|
106
|
+
* served the request anonymously. So an empty expansion means "no header",
|
|
107
|
+
* not "empty header". `env` for stdio servers is deliberately left alone: an
|
|
108
|
+
* empty environment variable is a meaningful, distinct value there.
|
|
109
|
+
*/
|
|
110
|
+
export declare function dropEmptyHeaders(headers: Record<string, string>): Record<string, string>;
|
|
111
|
+
/** Read the MCP disable lists from a parsed `.claude/settings.json` document. */
|
|
112
|
+
export declare function parseMcpDisableFilters(raw: unknown): McpDisableFilters;
|
|
113
|
+
/** Options for `normalizeMcpServer` / `parseMcpServers`. */
|
|
114
|
+
export interface NormalizeMcpServerOptions {
|
|
115
|
+
/**
|
|
116
|
+
* Variables for `${VAR}` expansion. Defaults to none: the process
|
|
117
|
+
* environment is never exposed implicitly — callers pass the operator's
|
|
118
|
+
* allowlist (see `pickMcpEnvVars`).
|
|
119
|
+
*/
|
|
120
|
+
vars?: McpEnvVars;
|
|
121
|
+
/** Expanded from `${CLAUDE_PLUGIN_ROOT}` for marketplace plugins. */
|
|
122
|
+
pluginRoot?: string;
|
|
123
|
+
warn?: (msg: string) => void;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Normalise one raw server entry. Returns `null` (after warning) when the
|
|
127
|
+
* server is unsupported or incomplete:
|
|
128
|
+
*
|
|
129
|
+
* - `type: ws`, or any `oauth` / `headersHelper` field — unsupported transports
|
|
130
|
+
* and auth flows
|
|
131
|
+
* - no `command` for stdio, no `url` for http/sse, before or after expansion
|
|
132
|
+
* - a `${VAR}` reference with no value and no default (the warning names the
|
|
133
|
+
* variable, never a value)
|
|
134
|
+
*
|
|
135
|
+
* `type` defaults to `stdio` when `command` is present and `http` when `url`
|
|
136
|
+
* is present. A server-declared `timeout` is clamped to `MAX_MCP_TIMEOUT_MS`.
|
|
137
|
+
*/
|
|
138
|
+
export declare function normalizeMcpServer(name: string, raw: unknown, source: McpServerSource, options?: NormalizeMcpServerOptions): McpServerConfig | null;
|
|
139
|
+
/**
|
|
140
|
+
* Parse a whole `.mcp.json`-style document (either shape) into normalised
|
|
141
|
+
* server configs. Invalid entries are skipped with a warning.
|
|
142
|
+
*/
|
|
143
|
+
export declare function parseMcpServers(raw: unknown, source: McpServerSource, options?: NormalizeMcpServerOptions): McpServerConfig[];
|
|
144
|
+
/** Drop servers named in either disable list. */
|
|
145
|
+
export declare function applyMcpDisableFilters(servers: readonly McpServerConfig[], filters: McpDisableFilters): McpServerConfig[];
|
|
146
|
+
//# sourceMappingURL=mcp-parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-parse.d.ts","sourceRoot":"","sources":["../src/mcp-parse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjC;IACE,IAAI,EAAE,aAAa,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DED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP client bridge for the reviewer agent.
|
|
3
|
+
*
|
|
4
|
+
* Connects the servers described by `McpServerConfig` (see `mcp-config.ts`),
|
|
5
|
+
* lists their tools, keeps only the read-only ones, and wraps each as a pi
|
|
6
|
+
* `AgentTool` named `mcp__<server>__<tool>`. The bridge enforces a per-call
|
|
7
|
+
* timeout, a result size cap, and a per-review call budget shared by every MCP
|
|
8
|
+
* tool. A server that fails to connect is reported as `unavailable` and never
|
|
9
|
+
* aborts the review.
|
|
10
|
+
*
|
|
11
|
+
* The reviewer processes attacker-controlled MR content, so only tools that
|
|
12
|
+
* declare themselves read-only (`annotations.readOnlyHint === true` and not
|
|
13
|
+
* `destructiveHint`) are exposed.
|
|
14
|
+
*/
|
|
15
|
+
import type { AgentTool } from '@earendil-works/pi-agent-core';
|
|
16
|
+
import type { ImageContent, TextContent } from '@earendil-works/pi-ai';
|
|
17
|
+
import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
18
|
+
import type { CallToolResult, Tool as McpTool } from '@modelcontextprotocol/sdk/types.js';
|
|
19
|
+
import { type Logger } from './logger.js';
|
|
20
|
+
import type { McpServerConfig, McpServerSource } from './mcp-config.js';
|
|
21
|
+
/** Default per-call timeout. A server config may lower or raise it, up to `MAX_MCP_TIMEOUT_MS`. */
|
|
22
|
+
export declare const DEFAULT_MCP_TIMEOUT_MS = 30000;
|
|
23
|
+
/**
|
|
24
|
+
* Timeout for connect and `tools/list`. Deliberately not overridable by a server
|
|
25
|
+
* definition: both run before the agent loop starts, so they are outside the
|
|
26
|
+
* review timeout and a large per-server `timeout` must not stall the pipeline.
|
|
27
|
+
*/
|
|
28
|
+
export declare const MCP_CONNECT_TIMEOUT_MS = 30000;
|
|
29
|
+
/** Default number of MCP tool calls allowed per review, across all servers. */
|
|
30
|
+
export declare const DEFAULT_MCP_CALL_BUDGET = 40;
|
|
31
|
+
/** Default cap on the content returned by one MCP tool call, text and image bytes together. */
|
|
32
|
+
export declare const DEFAULT_MCP_MAX_RESULT_CHARS = 200000;
|
|
33
|
+
/** Cap on image blocks kept from one MCP tool call, whatever the size budget allows. */
|
|
34
|
+
export declare const MAX_MCP_IMAGE_BLOCKS = 4;
|
|
35
|
+
/** Connection outcome for one configured server, rendered in the summary footer. */
|
|
36
|
+
export interface McpServerStatus {
|
|
37
|
+
name: string;
|
|
38
|
+
source: McpServerSource;
|
|
39
|
+
status: 'connected' | 'unavailable';
|
|
40
|
+
/** Original (server-side) names of the tools exposed to the reviewer. */
|
|
41
|
+
tools: string[];
|
|
42
|
+
/** Calls made during the review. Updated in place by the bridge. */
|
|
43
|
+
calls: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ConnectMcpServersOptions {
|
|
46
|
+
logger?: Logger;
|
|
47
|
+
/** Per-call timeout when the server config does not set one. */
|
|
48
|
+
timeoutMs?: number;
|
|
49
|
+
/** Total MCP calls allowed per review, across every server and tool. */
|
|
50
|
+
callBudget?: number;
|
|
51
|
+
/** Cap on the text returned by one call; longer results are truncated. */
|
|
52
|
+
maxResultChars?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Supported library extension point (also the test seam): build the transport
|
|
55
|
+
* for a config instead of the real stdio/http/sse one. See `docs/mcp.md`.
|
|
56
|
+
*/
|
|
57
|
+
createTransport?: (config: McpServerConfig) => Transport;
|
|
58
|
+
/**
|
|
59
|
+
* The enclosing review's diagnostic run id. When set, connect/list-tools/call
|
|
60
|
+
* are traced on the `mcp.connect` / `mcp.tools` / `mcp.call` diagnostics
|
|
61
|
+
* channels (see `src/diagnostics.ts`); omitted (e.g. ad hoc library use, most
|
|
62
|
+
* tests) means no diagnostics events are published.
|
|
63
|
+
*/
|
|
64
|
+
runId?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface McpConnection {
|
|
67
|
+
tools: AgentTool[];
|
|
68
|
+
servers: McpServerStatus[];
|
|
69
|
+
/** Close every connected client. Safe to call more than once. */
|
|
70
|
+
close(): Promise<void>;
|
|
71
|
+
}
|
|
72
|
+
/** Only tools that declare themselves read-only and non-destructive are exposed. */
|
|
73
|
+
export declare function isReadOnlyMcpTool(tool: Pick<McpTool, 'annotations'>): boolean;
|
|
74
|
+
/** `mcp__<server>__<tool>`, with characters outside `[A-Za-z0-9_-]` replaced. */
|
|
75
|
+
export declare function mcpToolName(server: string, tool: string): string;
|
|
76
|
+
/** Build the real transport for a server config. */
|
|
77
|
+
export declare function createMcpTransport(config: McpServerConfig): Transport;
|
|
78
|
+
/**
|
|
79
|
+
* Convert an MCP `tools/call` result into pi tool content. Text-like blocks are
|
|
80
|
+
* joined into one text block; images follow. Server output is untrusted and
|
|
81
|
+
* unbounded, so `maxChars` caps the whole result — the joined text first, then
|
|
82
|
+
* each image's base64 payload against what the text left — and at most
|
|
83
|
+
* `MAX_MCP_IMAGE_BLOCKS` images survive. Dropped images leave a note in the text
|
|
84
|
+
* so the agent knows something was there. The cap applies on the error path too:
|
|
85
|
+
* a result the server flagged as an error throws the same capped text, so the
|
|
86
|
+
* agent loop records a bounded error tool result.
|
|
87
|
+
*/
|
|
88
|
+
export declare function formatMcpToolResult(result: CallToolResult, maxChars: number): (TextContent | ImageContent)[];
|
|
89
|
+
/**
|
|
90
|
+
* Connect every configured server, list its tools, and bridge the read-only
|
|
91
|
+
* ones. Never throws for a server failure: the server is reported as
|
|
92
|
+
* `unavailable` and the review continues with the others.
|
|
93
|
+
*/
|
|
94
|
+
export declare function connectMcpServers(configs: readonly McpServerConfig[], options?: ConnectMcpServersOptions): Promise<McpConnection>;
|
|
95
|
+
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,+BAA+B,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,W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EAAE,eAAe,EAAE,CAAC;IAC3B,iEAAiE;IACjE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,GAAG,OAAO,CAE7E;AAMD,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,oDAAoD;AACpD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAyBrE;AAsBD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,MAAM,GACf,CAAC,WAAW,GAAG,YAAY,CAAC,EAAE,CAkEhC;AAiKD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,SAAS,eAAe,EAAE,EACnC,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,aAAa,CAAC,CAmDxB"}
|
package/dist/otel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../src/otel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,KAAK,EAMV,aAAa,EAGb,cAAc,EACf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAU,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../src/otel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,KAAK,EAMV,aAAa,EAGb,cAAc,EACf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAU,cAAc,EAAE,MAAM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
@@ -53,6 +53,7 @@ export interface SummaryBodyOptions {
|
|
|
53
53
|
historyEntries?: string[];
|
|
54
54
|
reviewedCommitSha?: string;
|
|
55
55
|
skillsFooter?: string;
|
|
56
|
+
mcpFooter?: string;
|
|
56
57
|
runId?: string;
|
|
57
58
|
/** Prominent size/decompose callout rendered above the reviewer's summary. */
|
|
58
59
|
sizeNotice?: SizeNotice;
|
package/dist/posting.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posting.d.ts","sourceRoot":"","sources":["../src/posting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,EAAgB,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElF,eAAO,MAAM,cAAc,iCAAiC,CAAC;AAC7D,eAAO,MAAM,qBAAqB,+CAA+C,CAAC;AAClF,eAAO,MAAM,mBAAmB,6CAA6C,CAAC;AAC9E,eAAO,MAAM,2BAA2B,qDAAqD,CAAC;AAC9F,eAAO,MAAM,yBAAyB,mDAAmD,CAAC;AAC1F,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAYxC;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,QAC+I,CAAC;AAI3L,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,wFAAwF;IACxF,aAAa,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CA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AW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAAwB,CAAC;AAEzE,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,SAAS,EAAE,MAAM,CAAC;QAClB;;;;;WAKG;QACH,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,gBAAgB,EAAE,EAC7B,IAAI,GAAE,WAAsB,GAC3B,OAAO,CAAC,UAAU,CAAC,CAKrB"}
|
package/dist/review.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
export type { DiagnosticContext, DiagnosticError, DiagnosticPhase, DiagnosticUsage, DiagnosticUsageBreakdown, } from './diagnostics.js';
|
|
2
|
-
export { DIAGNOSTIC_CHANNEL_NAMES, DIAGNOSTIC_CHANNEL_PREFIX, createDiagnosticContext, createDiagnosticRunId, diagnosticChannels, traceDiagnostic, traceDiagnosticPhase, } from './diagnostics.js';
|
|
1
|
+
export type { DiagnosticContext, DiagnosticError, DiagnosticMcpUsage, DiagnosticPhase, DiagnosticSkillUsage, DiagnosticUsage, DiagnosticUsageBreakdown, McpDiagnosticContext, McpDiagnosticOp, } from './diagnostics.js';
|
|
2
|
+
export { DIAGNOSTIC_CHANNEL_NAMES, DIAGNOSTIC_CHANNEL_PREFIX, MCP_DIAGNOSTIC_CHANNEL_NAMES, createDiagnosticContext, createDiagnosticRunId, diagnosticChannels, mcpDiagnosticChannels, traceDiagnostic, traceDiagnosticPhase, traceMcpDiagnostic, } from './diagnostics.js';
|
|
3
3
|
export type { OtelBridge, OtelBridgeOptions, OtelRuntime } from './otel.js';
|
|
4
4
|
export { isOtelEnabled, startOtelBridge } from './otel.js';
|
|
5
5
|
export type { RunBridges, RunResult } from './cli.js';
|
|
6
6
|
export { run } from './cli.js';
|
|
7
|
-
export type { AgentLike, CreateAgent, CreateAgentParams, FilteredDiff,
|
|
7
|
+
export type { AgentLike, CreateAgent, CreateAgentParams, FilteredDiff, McpServerUsage, ModelUsage, ReviewSizeNotice, ReviewUsage, RunReviewOptions, UsageBreakdown, } from './gitlab-review.js';
|
|
8
|
+
export type { ReviewIntent } from './intent.js';
|
|
9
|
+
export type { McpServerConfig, McpServerSource } from './mcp-config.js';
|
|
10
|
+
export type { ConnectMcpServersOptions, McpConnection, McpServerStatus } from './mcp.js';
|
|
11
|
+
export { connectMcpServers } from './mcp.js';
|
|
8
12
|
export { filterDiff } from './gitlab-review.js';
|
|
9
13
|
export { runReview } from './gitlab-review.js';
|
|
10
14
|
export type { DiffRefs, Fingerprints, GeneratedComment, GitLabDiscussionPayload, ReviewComment, Side, SizeSkippedFile, } from './types.js';
|
|
@@ -14,6 +18,8 @@ export { appendFingerprintMarkers, extractDiffHunkContext, extractExistingFinger
|
|
|
14
18
|
export { buildGeneratedComments, buildPayload } from './payloads.js';
|
|
15
19
|
export type { SkillLinkContext, SkillRef } from './skill-links.js';
|
|
16
20
|
export { blobUrl, formatSkillLink, gitRepoWebUrl, skillDisplayName, skillSourceUrl, } from './skill-links.js';
|
|
21
|
+
export type { SkillReadCounter, SkillReadTarget } from './skill-usage.js';
|
|
22
|
+
export { createSkillReadCounter, findSkillForPath, formatMcpUsageState, formatReviewUsageSummary, formatSkillUsageState, readToolPath, } from './skill-usage.js';
|
|
17
23
|
export type { LoadNamedSkillOptions, Skill, SkillOrigin, SkillSpec } from './skills.js';
|
|
18
24
|
export { gitSkillCacheKey, loadNamedSkill, parseSkillSpec, resolveNpmSkillDir, resolveSkillCacheDir, } from './skills.js';
|
|
19
25
|
export { SUMMARY_HISTORY_END, SUMMARY_HISTORY_ENTRY_END, SUMMARY_HISTORY_ENTRY_START, SUMMARY_HISTORY_LIMIT, SUMMARY_HISTORY_START, SUMMARY_MARKER, buildArchivedSummaryEntry, buildSizeNoticeBlock, buildSummaryBody, buildReviewedCommitFooter, buildSummaryHistoryEntries, extractReviewedCommitSha, extractSummaryHistoryEntries, findExistingReviewedCommitSha, findExistingSummaryNote, findExistingSummaryNoteId, stripSummaryHistory, stripSummaryMarker, upsertSummaryNote, type SizeNotice, type SummaryAction, type SummaryBodyOptions, type SummaryNote, type SummaryResult, type UpsertSummaryOptions, } from './posting.js';
|
package/dist/review.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../src/review.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,wBAAwB,
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../src/review.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,UA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OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,qBAAqB,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B,MAAM,cAAc,CAAC"}
|
package/dist/review.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { DIAGNOSTIC_CHANNEL_NAMES, DIAGNOSTIC_CHANNEL_PREFIX, SUMMARY_HISTORY_END, SUMMARY_HISTORY_ENTRY_END, SUMMARY_HISTORY_ENTRY_START, SUMMARY_HISTORY_LIMIT, SUMMARY_HISTORY_START, SUMMARY_MARKER, appendFingerprintMarkers, blobUrl, buildArchivedSummaryEntry, buildGeneratedComments, buildPayload, buildReviewedCommitFooter, buildSizeNoticeBlock, buildSummaryBody, buildSummaryHistoryEntries, createDiagnosticContext, createDiagnosticRunId, diagnosticChannels, extractDiffHunkContext, extractExistingFingerprints, extractReviewedCommitSha, extractSummaryHistoryEntries, filterDiff, findExistingReviewedCommitSha, findExistingSummaryNote, findExistingSummaryNoteId, fingerprints, formatSkillLink, gitRepoWebUrl, gitSkillCacheKey, isOtelEnabled, loadNamedSkill, normalizeBody, normalizeSeverity, parseReviewMarkdown, parseReviewMarkdownWithWarnings, parseSkillSpec, resolveNpmSkillDir, resolveSkillCacheDir, run, runReview, sha256, skillDisplayName, skillSourceUrl, startOtelBridge, stripSummaryHistory, stripSummaryMarker, toGitLabReviewSeverity, traceDiagnostic, traceDiagnosticPhase, upsertSummaryNote };
|
|
1
|
+
import { $ as extractSummaryHistoryEntries, A as DIAGNOSTIC_CHANNEL_PREFIX, B as toGitLabReviewSeverity, C as formatReviewUsageSummary, D as parseReviewMarkdownWithWarnings, E as parseReviewMarkdown, F as mcpDiagnosticChannels, G as SUMMARY_HISTORY_START, H as SUMMARY_HISTORY_ENTRY_END, I as traceDiagnostic, J as buildReviewedCommitFooter, K as SUMMARY_MARKER, L as traceDiagnosticPhase, M as createDiagnosticContext, N as createDiagnosticRunId, O as connectMcpServers, P as diagnosticChannels, Q as extractReviewedCommitSha, R as traceMcpDiagnostic, S as formatMcpUsageState, T as readToolPath, U as SUMMARY_HISTORY_ENTRY_START, V as SUMMARY_HISTORY_END, W as SUMMARY_HISTORY_LIMIT, X as buildSummaryBody, Y as buildSizeNoticeBlock, Z as buildSummaryHistoryEntries, _ as startOtelBridge, at as upsertSummaryNote, b as createSkillReadCounter, ct as extractExistingFingerprints, d as gitRepoWebUrl, dt as sha256, et as findExistingReviewedCommitSha, f as skillDisplayName, ft as gitSkillCacheKey, g as isOtelEnabled, gt as resolveSkillCacheDir, h as buildPayload, ht as resolveNpmSkillDir, it as stripSummaryMarker, j as MCP_DIAGNOSTIC_CHANNEL_NAMES, k as DIAGNOSTIC_CHANNEL_NAMES, l as blobUrl, lt as fingerprints, m as buildGeneratedComments, mt as parseSkillSpec, nt as findExistingSummaryNoteId, ot as appendFingerprintMarkers, p as skillSourceUrl, pt as loadNamedSkill, q as buildArchivedSummaryEntry, rt as stripSummaryHistory, s as run, st as extractDiffHunkContext, tt as findExistingSummaryNote, u as formatSkillLink, ut as normalizeBody, v as filterDiff, w as formatSkillUsageState, x as findSkillForPath, y as runReview, z as normalizeSeverity } from "./cli-CgQF5-WG.js";
|
|
2
|
+
export { DIAGNOSTIC_CHANNEL_NAMES, DIAGNOSTIC_CHANNEL_PREFIX, MCP_DIAGNOSTIC_CHANNEL_NAMES, SUMMARY_HISTORY_END, SUMMARY_HISTORY_ENTRY_END, SUMMARY_HISTORY_ENTRY_START, SUMMARY_HISTORY_LIMIT, SUMMARY_HISTORY_START, SUMMARY_MARKER, appendFingerprintMarkers, blobUrl, buildArchivedSummaryEntry, buildGeneratedComments, buildPayload, buildReviewedCommitFooter, buildSizeNoticeBlock, buildSummaryBody, buildSummaryHistoryEntries, connectMcpServers, createDiagnosticContext, createDiagnosticRunId, createSkillReadCounter, diagnosticChannels, extractDiffHunkContext, extractExistingFingerprints, extractReviewedCommitSha, extractSummaryHistoryEntries, filterDiff, findExistingReviewedCommitSha, findExistingSummaryNote, findExistingSummaryNoteId, findSkillForPath, fingerprints, formatMcpUsageState, formatReviewUsageSummary, formatSkillLink, formatSkillUsageState, gitRepoWebUrl, gitSkillCacheKey, isOtelEnabled, loadNamedSkill, mcpDiagnosticChannels, normalizeBody, normalizeSeverity, parseReviewMarkdown, parseReviewMarkdownWithWarnings, parseSkillSpec, readToolPath, resolveNpmSkillDir, resolveSkillCacheDir, run, runReview, sha256, skillDisplayName, skillSourceUrl, startOtelBridge, stripSummaryHistory, stripSummaryMarker, toGitLabReviewSeverity, traceDiagnostic, traceDiagnosticPhase, traceMcpDiagnostic, upsertSummaryNote };
|
package/dist/skill-links.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { McpServerSource } from './mcp-parse.js';
|
|
1
2
|
import type { SkillOrigin } from './skills.js';
|
|
2
3
|
/**
|
|
3
4
|
* Repository coordinates needed to link a skill that lives in the repository
|
|
@@ -15,11 +16,12 @@ export interface SkillRef {
|
|
|
15
16
|
origin: SkillOrigin;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
|
-
* Build a blob URL for `path` at `ref` inside the
|
|
19
|
-
* `repoWebUrl`. An empty ref resolves to `HEAD`, which both
|
|
20
|
-
* accept, so a skill pinned to a remote's
|
|
19
|
+
* Build a blob (file) or tree (directory) URL for `path` at `ref` inside the
|
|
20
|
+
* repository served at `repoWebUrl`. An empty ref resolves to `HEAD`, which both
|
|
21
|
+
* GitHub and GitLab accept, so a skill or MCP server pinned to a remote's
|
|
22
|
+
* default branch still links.
|
|
21
23
|
*/
|
|
22
|
-
export declare function blobUrl(repoWebUrl: string, ref: string, path: string): string | undefined;
|
|
24
|
+
export declare function blobUrl(repoWebUrl: string, ref: string, path: string, kind?: 'blob' | 'tree'): string | undefined;
|
|
23
25
|
/**
|
|
24
26
|
* Convert a git clone URL to the repository's web URL: drop any transport
|
|
25
27
|
* marker, embedded credentials, and the `.git` suffix, and serve it over HTTPS.
|
|
@@ -35,6 +37,14 @@ export declare function gitRepoWebUrl(cloneUrl: string): string | undefined;
|
|
|
35
37
|
* the link always shows the skill exactly as the run used it.
|
|
36
38
|
*/
|
|
37
39
|
export declare function skillSourceUrl(origin: SkillOrigin, context?: SkillLinkContext): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Resolve a link to an MCP server's source, or `undefined` when it is not
|
|
42
|
+
* reachable from a browser (a `file:` spec, or a repo `.mcp.json` on a run with
|
|
43
|
+
* no CI project URL). A `project` source links to the `.mcp.json` file it was
|
|
44
|
+
* declared in; a `marketplace` source links to the plugin's directory in the
|
|
45
|
+
* marketplace repository.
|
|
46
|
+
*/
|
|
47
|
+
export declare function mcpSourceUrl(source: McpServerSource, context?: SkillLinkContext): string | undefined;
|
|
38
48
|
/**
|
|
39
49
|
* The name a skill is shown under in the footer. Marketplace skills carry their
|
|
40
50
|
* full selector (`<marketplace>:<plugin>/<skill>`) because a bare skill name says
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-links.d.ts","sourceRoot":"","sources":["../src/skill-links.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill-links.d.ts","sourceRoot":"","sources":["../src/skill-links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,mFAAmF;AACnF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;CACrB;AAkBD;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,MAAM,GAAG,MAAe,GAC7B,MAAM,GAAG,SAAS,CAUpB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoBlE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,gBAAqB,GAC7B,MAAM,GAAG,SAAS,CAoBpB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,eAAe,EACvB,OAAO,GAAE,gBAAqB,GAC7B,MAAM,GAAG,SAAS,CAcpB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAIxD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAIvF"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** The minimum a loaded skill must expose to attribute a file read to it. */
|
|
2
|
+
export interface SkillReadTarget {
|
|
3
|
+
name: string;
|
|
4
|
+
/** Absolute path to the skill directory. Reads under it count as skill reads. */
|
|
5
|
+
rootDir: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The path a built-in read tool call targets, or `undefined` for any other tool
|
|
9
|
+
* or a call with no usable `path`. The parameter name is `path`, matching the
|
|
10
|
+
* `read` tool from `createReadOnlyTools` that the reviewer is actually handed.
|
|
11
|
+
* Only the built-in read tool is considered: a skill is loaded by reading its
|
|
12
|
+
* `SKILL.md`, and every other tool (grep, git, MCP) says nothing about whether
|
|
13
|
+
* the reviewer read the skill.
|
|
14
|
+
*/
|
|
15
|
+
export declare function readToolPath(toolName: string, args: unknown): string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The skill whose directory contains `path`, or `undefined` when the read
|
|
18
|
+
* targeted something else. Any file under the skill root counts — a reference
|
|
19
|
+
* file the `SKILL.md` points at is as much a skill read as the `SKILL.md`
|
|
20
|
+
* itself. Relative paths resolve against `cwd` — the review working directory
|
|
21
|
+
* the reviewer's read tool resolves them against, which `--cwd` can move away
|
|
22
|
+
* from the process working directory.
|
|
23
|
+
*/
|
|
24
|
+
export declare function findSkillForPath(skills: readonly SkillReadTarget[], path: string, cwd: string): SkillReadTarget | undefined;
|
|
25
|
+
/** Counts, per skill, how many files under its directory the reviewer read. */
|
|
26
|
+
export interface SkillReadCounter {
|
|
27
|
+
/** Feed every tool start; non-read calls and reads outside a skill are ignored. */
|
|
28
|
+
record(toolName: string, args: unknown): void;
|
|
29
|
+
/** Reads recorded for `skill` so far. */
|
|
30
|
+
countFor(skill: SkillReadTarget): number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Build a counter shared by every review stage — Find and Verify run different
|
|
34
|
+
* agents over the same tool list, so a skill read in either stage counts.
|
|
35
|
+
*/
|
|
36
|
+
export declare function createSkillReadCounter(skills: readonly SkillReadTarget[], cwd: string): SkillReadCounter;
|
|
37
|
+
/** Whether a skill was read, as shown in the footer and the usage log line. */
|
|
38
|
+
export declare function formatSkillUsageState(skill: {
|
|
39
|
+
reads: number;
|
|
40
|
+
}): string;
|
|
41
|
+
/**
|
|
42
|
+
* How much a server was used, as shown in the footer and the usage log line:
|
|
43
|
+
* a pluralised call count, `unused` for a server that connected but was never
|
|
44
|
+
* called, and `unavailable` for one that failed to connect.
|
|
45
|
+
*/
|
|
46
|
+
export declare function formatMcpUsageState(server: {
|
|
47
|
+
status: 'connected' | 'unavailable';
|
|
48
|
+
calls: number;
|
|
49
|
+
}): string;
|
|
50
|
+
/**
|
|
51
|
+
* The end-of-review usage log line, e.g.
|
|
52
|
+
* `Usage: skills code-review (read); MCP github (1 call), docs (unused)`.
|
|
53
|
+
* Each half is omitted when nothing of that kind was configured, and the whole
|
|
54
|
+
* line is `undefined` when neither was.
|
|
55
|
+
*/
|
|
56
|
+
export declare function formatReviewUsageSummary(usage: {
|
|
57
|
+
skills: readonly {
|
|
58
|
+
name: string;
|
|
59
|
+
reads: number;
|
|
60
|
+
}[];
|
|
61
|
+
mcp: readonly {
|
|
62
|
+
name: string;
|
|
63
|
+
status: 'connected' | 'unavailable';
|
|
64
|
+
calls: number;
|
|
65
|
+
}[];
|
|
66
|
+
}): string | undefined;
|
|
67
|
+
//# sourceMappingURL=skill-usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-usage.d.ts","sourceRoot":"","sources":["../src/skill-usage.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKhF;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,eAAe,GAAG,SAAS,CAM7B;AAED,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAC/B,mFAAmF;IACnF,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9C,yCAAyC;IACzC,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAAC;CAC1C;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,GAAG,EAAE,MAAM,GACV,gBAAgB,CAclB;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,WAAW,GAAG,aAAa,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,CAIT;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,MAAM,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,GAAG,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,WAAW,GAAG,aAAa,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACtF,GAAG,MAAM,GAAG,SAAS,CAWrB"}
|
package/dist/verify.d.ts
CHANGED
|
@@ -32,7 +32,31 @@ export interface SynthesisResult {
|
|
|
32
32
|
comments: ReviewComment[];
|
|
33
33
|
audit: AuditEntry[];
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
/** One MCP tool result captured during Find and replayed to the verifiers. */
|
|
36
|
+
export interface McpResultEntry {
|
|
37
|
+
/** Bridged tool name, e.g. `mcp__tracker__get_issue`. */
|
|
38
|
+
tool: string;
|
|
39
|
+
/** Short, already-redacted rendering of the call arguments. */
|
|
40
|
+
argsSummary: string;
|
|
41
|
+
/** Text the tool returned. */
|
|
42
|
+
text: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Render the MCP tool results the Find stage collected as an
|
|
46
|
+
* `<external-context-results>` block: the verifier sees the same external
|
|
47
|
+
* evidence the finder did without calling any tool itself. The block is capped
|
|
48
|
+
* at {@link MAX_EXTERNAL_CONTEXT_CHARS}; when it does not fit, the most recent
|
|
49
|
+
* results win (they are the ones the finding is most likely to cite) and a
|
|
50
|
+
* notice records how many older ones were dropped.
|
|
51
|
+
*/
|
|
52
|
+
export declare function renderExternalContextResults(entries: McpResultEntry[]): string;
|
|
53
|
+
export interface VerifyContext {
|
|
54
|
+
/** Pre-rendered `<intent>` block from `renderIntentBlock`, if the MR has one. */
|
|
55
|
+
intentBlock?: string;
|
|
56
|
+
/** MCP tool results captured during Find, replayed as read-only evidence. */
|
|
57
|
+
externalContext?: McpResultEntry[];
|
|
58
|
+
}
|
|
59
|
+
export declare function buildVerifySystemPrompt(diff: string, commitLog?: string, staged?: SkippedDiffFile[], context?: VerifyContext): string;
|
|
36
60
|
export declare function buildVerifyUserPrompt(comment: ReviewComment): string;
|
|
37
61
|
export declare function parseVerdict(text: string): Verdict;
|
|
38
62
|
export declare function stepDownSeverity(severity: Severity): Severity;
|
package/dist/verify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../src/verify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,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AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,MAAM,GAAG,IAAI,EAC9B,MAAM,EAAE,eAAe,GACtB,MAAM,CASR"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weareikko/code-review",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"description": "Agent-driven code review for GitLab merge requests and GitHub pull requests, with deduplicated inline comments and summary notes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"@earendil-works/pi-agent-core": "0.85.1",
|
|
65
65
|
"@earendil-works/pi-ai": "0.85.1",
|
|
66
66
|
"@earendil-works/pi-coding-agent": "0.85.1",
|
|
67
|
+
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
67
68
|
"@opentelemetry/api": "^1.9.1",
|
|
68
69
|
"@opentelemetry/api-logs": "^0.222.0",
|
|
69
70
|
"@opentelemetry/resources": "^2.7.1",
|