@stigmer/plugin-package 0.1.0-dev.20261017020314.g644422724c27
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/LICENSE +194 -0
- package/README.md +72 -0
- package/client/archive.d.ts +27 -0
- package/client/archive.d.ts.map +1 -0
- package/client/archive.js +38 -0
- package/client/archive.js.map +1 -0
- package/client/builtin.d.ts +37 -0
- package/client/builtin.d.ts.map +1 -0
- package/client/builtin.js +49 -0
- package/client/builtin.js.map +1 -0
- package/client/ignore/defaults.d.ts +2 -0
- package/client/ignore/defaults.d.ts.map +1 -0
- package/client/ignore/defaults.js +140 -0
- package/client/ignore/defaults.js.map +1 -0
- package/client/ignore/match.d.ts +3 -0
- package/client/ignore/match.d.ts.map +1 -0
- package/client/ignore/match.js +166 -0
- package/client/ignore/match.js.map +1 -0
- package/client/ignore/matcher.d.ts +50 -0
- package/client/ignore/matcher.d.ts.map +1 -0
- package/client/ignore/matcher.js +116 -0
- package/client/ignore/matcher.js.map +1 -0
- package/client/ignore/pattern.d.ts +13 -0
- package/client/ignore/pattern.d.ts.map +1 -0
- package/client/ignore/pattern.js +119 -0
- package/client/ignore/pattern.js.map +1 -0
- package/client/prepare-eval.d.ts +62 -0
- package/client/prepare-eval.d.ts.map +1 -0
- package/client/prepare-eval.js +60 -0
- package/client/prepare-eval.js.map +1 -0
- package/client/prepare.d.ts +99 -0
- package/client/prepare.d.ts.map +1 -0
- package/client/prepare.js +89 -0
- package/client/prepare.js.map +1 -0
- package/client/presentation.d.ts +19 -0
- package/client/presentation.d.ts.map +1 -0
- package/client/presentation.js +44 -0
- package/client/presentation.js.map +1 -0
- package/client/refs.d.ts +76 -0
- package/client/refs.d.ts.map +1 -0
- package/client/refs.js +123 -0
- package/client/refs.js.map +1 -0
- package/client/release.d.ts +20 -0
- package/client/release.d.ts.map +1 -0
- package/client/release.js +28 -0
- package/client/release.js.map +1 -0
- package/client/reroot.d.ts +21 -0
- package/client/reroot.d.ts.map +1 -0
- package/client/reroot.js +37 -0
- package/client/reroot.js.map +1 -0
- package/client/select.d.ts +74 -0
- package/client/select.d.ts.map +1 -0
- package/client/select.js +121 -0
- package/client/select.js.map +1 -0
- package/client/vocabulary.d.ts +13 -0
- package/client/vocabulary.d.ts.map +1 -0
- package/client/vocabulary.js +17 -0
- package/client/vocabulary.js.map +1 -0
- package/client.d.ts +51 -0
- package/client.d.ts.map +1 -0
- package/client.js +51 -0
- package/client.js.map +1 -0
- package/detect.d.ts +83 -0
- package/detect.d.ts.map +1 -0
- package/detect.js +210 -0
- package/detect.js.map +1 -0
- package/dialects/claude.d.ts +34 -0
- package/dialects/claude.d.ts.map +1 -0
- package/dialects/claude.js +84 -0
- package/dialects/claude.js.map +1 -0
- package/dialects/codex.d.ts +20 -0
- package/dialects/codex.d.ts.map +1 -0
- package/dialects/codex.js +21 -0
- package/dialects/codex.js.map +1 -0
- package/dialects/cursor.d.ts +25 -0
- package/dialects/cursor.d.ts.map +1 -0
- package/dialects/cursor.js +66 -0
- package/dialects/cursor.js.map +1 -0
- package/dialects/manifest.d.ts +164 -0
- package/dialects/manifest.d.ts.map +1 -0
- package/dialects/manifest.js +256 -0
- package/dialects/manifest.js.map +1 -0
- package/dialects/open.d.ts +19 -0
- package/dialects/open.d.ts.map +1 -0
- package/dialects/open.js +49 -0
- package/dialects/open.js.map +1 -0
- package/documents.d.ts +58 -0
- package/documents.d.ts.map +1 -0
- package/documents.js +121 -0
- package/documents.js.map +1 -0
- package/evals/eval-dir.d.ts +59 -0
- package/evals/eval-dir.d.ts.map +1 -0
- package/evals/eval-dir.js +84 -0
- package/evals/eval-dir.js.map +1 -0
- package/evals/fields.d.ts +78 -0
- package/evals/fields.d.ts.map +1 -0
- package/evals/fields.js +156 -0
- package/evals/fields.js.map +1 -0
- package/evals/glob.d.ts +40 -0
- package/evals/glob.d.ts.map +1 -0
- package/evals/glob.js +146 -0
- package/evals/glob.js.map +1 -0
- package/evals/graders.d.ts +52 -0
- package/evals/graders.d.ts.map +1 -0
- package/evals/graders.js +279 -0
- package/evals/graders.js.map +1 -0
- package/evals/markdown.d.ts +24 -0
- package/evals/markdown.d.ts.map +1 -0
- package/evals/markdown.js +48 -0
- package/evals/markdown.js.map +1 -0
- package/evals/mocks.d.ts +50 -0
- package/evals/mocks.d.ts.map +1 -0
- package/evals/mocks.js +182 -0
- package/evals/mocks.js.map +1 -0
- package/evals/read-eval-suite.d.ts +110 -0
- package/evals/read-eval-suite.d.ts.map +1 -0
- package/evals/read-eval-suite.js +603 -0
- package/evals/read-eval-suite.js.map +1 -0
- package/evals/summary.d.ts +61 -0
- package/evals/summary.d.ts.map +1 -0
- package/evals/summary.js +69 -0
- package/evals/summary.js.map +1 -0
- package/evals/types.d.ts +203 -0
- package/evals/types.d.ts.map +1 -0
- package/evals/types.js +21 -0
- package/evals/types.js.map +1 -0
- package/files.d.ts +135 -0
- package/files.d.ts.map +1 -0
- package/files.js +209 -0
- package/files.js.map +1 -0
- package/frontmatter.d.ts +51 -0
- package/frontmatter.d.ts.map +1 -0
- package/frontmatter.js +61 -0
- package/frontmatter.js.map +1 -0
- package/index.d.ts +37 -0
- package/index.d.ts.map +1 -0
- package/index.js +33 -0
- package/index.js.map +1 -0
- package/marketplace/messages.d.ts +20 -0
- package/marketplace/messages.d.ts.map +1 -0
- package/marketplace/messages.js +49 -0
- package/marketplace/messages.js.map +1 -0
- package/marketplace/outcome.d.ts +70 -0
- package/marketplace/outcome.d.ts.map +1 -0
- package/marketplace/outcome.js +29 -0
- package/marketplace/outcome.js.map +1 -0
- package/marketplace/read-marketplace.d.ts +52 -0
- package/marketplace/read-marketplace.d.ts.map +1 -0
- package/marketplace/read-marketplace.js +351 -0
- package/marketplace/read-marketplace.js.map +1 -0
- package/messages.d.ts +55 -0
- package/messages.d.ts.map +1 -0
- package/messages.js +167 -0
- package/messages.js.map +1 -0
- package/normalise/hooks.d.ts +91 -0
- package/normalise/hooks.d.ts.map +1 -0
- package/normalise/hooks.js +437 -0
- package/normalise/hooks.js.map +1 -0
- package/normalise/ignored.d.ts +34 -0
- package/normalise/ignored.d.ts.map +1 -0
- package/normalise/ignored.js +78 -0
- package/normalise/ignored.js.map +1 -0
- package/normalise/mcp-servers.d.ts +50 -0
- package/normalise/mcp-servers.d.ts.map +1 -0
- package/normalise/mcp-servers.js +398 -0
- package/normalise/mcp-servers.js.map +1 -0
- package/normalise/settings.d.ts +32 -0
- package/normalise/settings.d.ts.map +1 -0
- package/normalise/settings.js +72 -0
- package/normalise/settings.js.map +1 -0
- package/normalise/skills.d.ts +39 -0
- package/normalise/skills.d.ts.map +1 -0
- package/normalise/skills.js +135 -0
- package/normalise/skills.js.map +1 -0
- package/normalise/stigmer-folder.d.ts +17 -0
- package/normalise/stigmer-folder.d.ts.map +1 -0
- package/normalise/stigmer-folder.js +19 -0
- package/normalise/stigmer-folder.js.map +1 -0
- package/normalise/sub-agents.d.ts +54 -0
- package/normalise/sub-agents.d.ts.map +1 -0
- package/normalise/sub-agents.js +219 -0
- package/normalise/sub-agents.js.map +1 -0
- package/normalise/variables.d.ts +31 -0
- package/normalise/variables.d.ts.map +1 -0
- package/normalise/variables.js +170 -0
- package/normalise/variables.js.map +1 -0
- package/outcome.d.ts +59 -0
- package/outcome.d.ts.map +1 -0
- package/outcome.js +32 -0
- package/outcome.js.map +1 -0
- package/package.json +47 -0
- package/placeholders.d.ts +65 -0
- package/placeholders.d.ts.map +1 -0
- package/placeholders.js +99 -0
- package/placeholders.js.map +1 -0
- package/presentation.d.ts +53 -0
- package/presentation.d.ts.map +1 -0
- package/presentation.js +156 -0
- package/presentation.js.map +1 -0
- package/read-plugin-package.d.ts +20 -0
- package/read-plugin-package.d.ts.map +1 -0
- package/read-plugin-package.js +73 -0
- package/read-plugin-package.js.map +1 -0
- package/src/client/archive.ts +44 -0
- package/src/client/builtin.ts +60 -0
- package/src/client/ignore/defaults.ts +155 -0
- package/src/client/ignore/match.ts +158 -0
- package/src/client/ignore/matcher.ts +156 -0
- package/src/client/ignore/pattern.ts +132 -0
- package/src/client/prepare-eval.ts +92 -0
- package/src/client/prepare.ts +160 -0
- package/src/client/presentation.ts +47 -0
- package/src/client/refs.ts +170 -0
- package/src/client/release.ts +29 -0
- package/src/client/reroot.ts +35 -0
- package/src/client/select.ts +161 -0
- package/src/client/vocabulary.ts +19 -0
- package/src/client.ts +102 -0
- package/src/detect.ts +245 -0
- package/src/dialects/claude.ts +102 -0
- package/src/dialects/codex.ts +26 -0
- package/src/dialects/cursor.ts +77 -0
- package/src/dialects/manifest.ts +316 -0
- package/src/dialects/open.ts +50 -0
- package/src/documents.ts +158 -0
- package/src/evals/eval-dir.ts +101 -0
- package/src/evals/fields.ts +184 -0
- package/src/evals/glob.ts +141 -0
- package/src/evals/graders.ts +293 -0
- package/src/evals/markdown.ts +56 -0
- package/src/evals/mocks.ts +202 -0
- package/src/evals/read-eval-suite.ts +713 -0
- package/src/evals/summary.ts +100 -0
- package/src/evals/types.ts +217 -0
- package/src/files.ts +235 -0
- package/src/frontmatter.ts +70 -0
- package/src/index.ts +129 -0
- package/src/marketplace/messages.ts +61 -0
- package/src/marketplace/outcome.ts +91 -0
- package/src/marketplace/read-marketplace.ts +388 -0
- package/src/messages.ts +248 -0
- package/src/normalise/hooks.ts +469 -0
- package/src/normalise/ignored.ts +79 -0
- package/src/normalise/mcp-servers.ts +423 -0
- package/src/normalise/settings.ts +81 -0
- package/src/normalise/skills.ts +145 -0
- package/src/normalise/stigmer-folder.ts +23 -0
- package/src/normalise/sub-agents.ts +231 -0
- package/src/normalise/variables.ts +181 -0
- package/src/outcome.ts +158 -0
- package/src/placeholders.ts +110 -0
- package/src/presentation.ts +170 -0
- package/src/read-plugin-package.ts +80 -0
- package/src/testing.ts +347 -0
- package/src/tool-names.ts +30 -0
- package/src/trim.ts +10 -0
- package/src/types.ts +214 -0
- package/testing.d.ts +127 -0
- package/testing.d.ts.map +1 -0
- package/testing.js +266 -0
- package/testing.js.map +1 -0
- package/tool-names.d.ts +21 -0
- package/tool-names.d.ts.map +1 -0
- package/tool-names.js +28 -0
- package/tool-names.js.map +1 -0
- package/trim.d.ts +7 -0
- package/trim.d.ts.map +1 -0
- package/trim.js +12 -0
- package/trim.js.map +1 -0
- package/types.d.ts +179 -0
- package/types.d.ts.map +1 -0
- package/types.js +19 -0
- package/types.js.map +1 -0
package/evals/mocks.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A case's MCP mocks, in the plugin-eval format's layout: the suite's
|
|
3
|
+
* `<suite>/mocks/<server>/` and the case's own `<case>/mocks/<server>/`,
|
|
4
|
+
* merged file by file with the case's file winning, so a case overrides
|
|
5
|
+
* one tool and keeps the suite's others.
|
|
6
|
+
*
|
|
7
|
+
* In a server's directory:
|
|
8
|
+
* - `<tool>.md`: one tool. Frontmatter `type` (`fixed`, the default, or
|
|
9
|
+
* `agent`), `expect`, `error` (`fixed` only) and `abort_when` (`agent`
|
|
10
|
+
* only); the body answers.
|
|
11
|
+
* - `_server.md`: one `agent` mock for the tools its `tools:` key lists; a
|
|
12
|
+
* `<tool>.md` for the same tool takes precedence. Its `expect:` is
|
|
13
|
+
* accepted only when `tools:` lists one tool.
|
|
14
|
+
* - `_tools.json`: the real server's saved `tools/list`, recorded by path
|
|
15
|
+
* for the runner to offer real descriptions and schemas.
|
|
16
|
+
* - `fixtures/`: files a body inserts; the runner resolves them, case
|
|
17
|
+
* directory first.
|
|
18
|
+
* `mocks/.replay/` holds adopted agent-mock recordings, which Stigmer does
|
|
19
|
+
* not read; the case only notes that it has them.
|
|
20
|
+
*
|
|
21
|
+
* A file that breaks these rules (an unknown key, a wrong type, an `expect`
|
|
22
|
+
* pattern outside the dialect) is an `eval-mock-invalid` finding of the
|
|
23
|
+
* case, which then does not load, as Claude Code stops such a case. Which
|
|
24
|
+
* servers a suite may mock is its reader's rule ({@link MockServerRule}): a
|
|
25
|
+
* plugin's suite mocks only the servers the plugin declares, a pushed
|
|
26
|
+
* folder any server whose name could be one. A directory the rule refuses
|
|
27
|
+
* is a finding of the suite and is ignored: no try could reach that server.
|
|
28
|
+
*/
|
|
29
|
+
import { compileExpect } from "@stigmer/eval-runtime";
|
|
30
|
+
import { isJsonObject } from "../documents.js";
|
|
31
|
+
import { comparePaths, joinPath } from "../files.js";
|
|
32
|
+
import { readNonEmptyString, readStringList, unknownKeys, wrong } from "./fields.js";
|
|
33
|
+
import { readMarkdown } from "./markdown.js";
|
|
34
|
+
/** The directory under the suite or a case that holds mocks. */
|
|
35
|
+
export const MOCKS_DIR = "mocks";
|
|
36
|
+
/** Adopted agent-mock recordings, under a mocks directory. */
|
|
37
|
+
const REPLAY_DIR = ".replay";
|
|
38
|
+
const SERVER_FILE = "_server.md";
|
|
39
|
+
const TOOLS_FILE = "_tools.json";
|
|
40
|
+
const TOOL_KEYS = new Set(["type", "expect", "error", "abort_when"]);
|
|
41
|
+
const SERVER_KEYS = new Set(["type", "tools", "expect", "abort_when"]);
|
|
42
|
+
/**
|
|
43
|
+
* Read the mocks one case sees. A mock directory `rule` refuses adds a
|
|
44
|
+
* finding to `suiteFindings` (once per directory: `reported` remembers the
|
|
45
|
+
* suite's) and is skipped.
|
|
46
|
+
*/
|
|
47
|
+
export function readCaseMocks(index, suiteDir, caseDir, rule, findings, suiteFindings, reported) {
|
|
48
|
+
const suiteMocks = joinPath(suiteDir, MOCKS_DIR);
|
|
49
|
+
const caseMocks = `${caseDir}/${MOCKS_DIR}`;
|
|
50
|
+
const replays = index.isDirectory(`${suiteMocks}/${REPLAY_DIR}`) || index.isDirectory(`${caseMocks}/${REPLAY_DIR}`);
|
|
51
|
+
const names = new Set([...index.childDirectories(suiteMocks), ...index.childDirectories(caseMocks)]);
|
|
52
|
+
names.delete(REPLAY_DIR);
|
|
53
|
+
const servers = [];
|
|
54
|
+
for (const server of [...names].sort(comparePaths)) {
|
|
55
|
+
const problem = rule(server);
|
|
56
|
+
if (problem !== undefined) {
|
|
57
|
+
for (const dir of [`${suiteMocks}/${server}`, `${caseMocks}/${server}`]) {
|
|
58
|
+
if (!index.isDirectory(dir) || reported.has(dir))
|
|
59
|
+
continue;
|
|
60
|
+
reported.add(dir);
|
|
61
|
+
suiteFindings.push({ kind: "eval-mock-invalid", path: dir, message: `${dir}: ${problem}` });
|
|
62
|
+
}
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
const read = readServer(index, `${suiteMocks}/${server}`, `${caseMocks}/${server}`, server, findings);
|
|
66
|
+
if (read !== undefined)
|
|
67
|
+
servers.push(read);
|
|
68
|
+
}
|
|
69
|
+
return { servers, replays };
|
|
70
|
+
}
|
|
71
|
+
/** One server's mocks, the case's files over the suite's. */
|
|
72
|
+
function readServer(index, suiteDir, caseDir, server, findings) {
|
|
73
|
+
const files = new Map();
|
|
74
|
+
for (const dir of [suiteDir, caseDir]) {
|
|
75
|
+
for (const file of index.childFiles(dir))
|
|
76
|
+
files.set(file, `${dir}/${file}`);
|
|
77
|
+
}
|
|
78
|
+
const tools = new Map();
|
|
79
|
+
for (const [file, path] of [...files].sort(([a], [b]) => comparePaths(a, b))) {
|
|
80
|
+
if (!file.endsWith(".md") || file.startsWith("_"))
|
|
81
|
+
continue;
|
|
82
|
+
const tool = readToolMock(index, path, file.slice(0, -".md".length), findings);
|
|
83
|
+
if (tool !== undefined)
|
|
84
|
+
tools.set(tool.tool, tool);
|
|
85
|
+
}
|
|
86
|
+
const serverPath = files.get(SERVER_FILE);
|
|
87
|
+
if (serverPath !== undefined) {
|
|
88
|
+
for (const tool of readServerMock(index, serverPath, findings)) {
|
|
89
|
+
if (!tools.has(tool.tool))
|
|
90
|
+
tools.set(tool.tool, tool);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const toolsFile = files.get(TOOLS_FILE);
|
|
94
|
+
return {
|
|
95
|
+
server,
|
|
96
|
+
tools: [...tools.values()].sort((a, b) => comparePaths(a.tool, b.tool)),
|
|
97
|
+
...(toolsFile !== undefined && { toolsFile }),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function scopeOf(path, findings) {
|
|
101
|
+
return { path, label: "", invalid: "eval-mock-invalid", findings };
|
|
102
|
+
}
|
|
103
|
+
function readToolMock(index, path, tool, findings) {
|
|
104
|
+
const scope = scopeOf(path, findings);
|
|
105
|
+
const document = readMarkdown(index, scope);
|
|
106
|
+
if (document === undefined)
|
|
107
|
+
return undefined;
|
|
108
|
+
const { fields } = document;
|
|
109
|
+
unknownKeys(fields, TOOL_KEYS, scope, "eval-mock-invalid", "frontmatter key");
|
|
110
|
+
const kind = readKind(fields["type"], scope);
|
|
111
|
+
const error = fields["error"];
|
|
112
|
+
if (error !== undefined && typeof error !== "boolean")
|
|
113
|
+
wrong(scope, "error", "true or false");
|
|
114
|
+
if (error === true && kind === "agent")
|
|
115
|
+
wrong(scope, "error", "unset on an agent mock (it applies to fixed mocks)");
|
|
116
|
+
const abortWhen = readNonEmptyString(fields, "abort_when", scope);
|
|
117
|
+
if (abortWhen !== undefined && kind === "fixed")
|
|
118
|
+
wrong(scope, "abort_when", "unset on a fixed mock (it applies to agent mocks)");
|
|
119
|
+
const expect = readExpect(fields["expect"], scope);
|
|
120
|
+
if (kind === undefined)
|
|
121
|
+
return undefined;
|
|
122
|
+
return {
|
|
123
|
+
tool,
|
|
124
|
+
file: path,
|
|
125
|
+
kind,
|
|
126
|
+
error: error === true,
|
|
127
|
+
...(expect !== undefined && { expect }),
|
|
128
|
+
...(abortWhen !== undefined && { abortWhen }),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/** `_server.md`'s tools, each answered by it as an agent. */
|
|
132
|
+
function readServerMock(index, path, findings) {
|
|
133
|
+
const scope = scopeOf(path, findings);
|
|
134
|
+
const document = readMarkdown(index, scope);
|
|
135
|
+
if (document === undefined)
|
|
136
|
+
return [];
|
|
137
|
+
const { fields } = document;
|
|
138
|
+
unknownKeys(fields, SERVER_KEYS, scope, "eval-mock-invalid", "frontmatter key");
|
|
139
|
+
const kind = readKind(fields["type"] ?? "agent", scope);
|
|
140
|
+
if (kind === "fixed")
|
|
141
|
+
wrong(scope, "type", "agent (a _server.md answers as an agent)");
|
|
142
|
+
const tools = readStringList(fields, "tools", scope);
|
|
143
|
+
if (tools === undefined || tools.length === 0) {
|
|
144
|
+
if (fields["tools"] === undefined || tools !== undefined)
|
|
145
|
+
wrong(scope, "tools", "a list of the tools it answers");
|
|
146
|
+
return [];
|
|
147
|
+
}
|
|
148
|
+
const expect = readExpect(fields["expect"], scope);
|
|
149
|
+
if (expect !== undefined && tools.length !== 1) {
|
|
150
|
+
wrong(scope, "expect", "on a tool's own <tool>.md when tools lists more than one tool");
|
|
151
|
+
}
|
|
152
|
+
const abortWhen = readNonEmptyString(fields, "abort_when", scope);
|
|
153
|
+
return tools.map((tool) => ({
|
|
154
|
+
tool,
|
|
155
|
+
file: path,
|
|
156
|
+
kind: "agent",
|
|
157
|
+
error: false,
|
|
158
|
+
...(expect !== undefined && tools.length === 1 && { expect }),
|
|
159
|
+
...(abortWhen !== undefined && { abortWhen }),
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
162
|
+
function readKind(value, scope) {
|
|
163
|
+
if (value === undefined || value === "fixed")
|
|
164
|
+
return "fixed";
|
|
165
|
+
if (value === "agent")
|
|
166
|
+
return "agent";
|
|
167
|
+
return wrong(scope, "type", "fixed or agent");
|
|
168
|
+
}
|
|
169
|
+
/** An `expect:` block, compiled once so a pattern outside the dialect stops the case here. */
|
|
170
|
+
function readExpect(value, scope) {
|
|
171
|
+
if (value === undefined)
|
|
172
|
+
return undefined;
|
|
173
|
+
if (!isJsonObject(value))
|
|
174
|
+
return wrong(scope, "expect", "a map from input paths to rules");
|
|
175
|
+
const compiled = compileExpect(value);
|
|
176
|
+
if (!compiled.ok) {
|
|
177
|
+
scope.findings.add(scope.invalid, scope.path, compiled.error);
|
|
178
|
+
return undefined;
|
|
179
|
+
}
|
|
180
|
+
return value;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=mocks.js.map
|
|
@@ -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,EAAE,KAAiB;IACjD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC;IAC7D,IAAI,KAAK,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC;IACtC,OAAO,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAChD,CAAC;AAED,8FAA8F;AAC9F,SAAS,UAAU,CAAC,KAAc,EAAE,KAAiB;IACnD,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,iCAAiC,CAAC,CAAC;IAC3F,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACtC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC9D,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `readEvalSuite`: a plugin's eval suite, in Claude Code's plugin-eval
|
|
3
|
+
* format, read from the same `PluginFiles` the install reads; and
|
|
4
|
+
* `readEvalFolder`: a pushed eval, the same format with the archive's root
|
|
5
|
+
* as the suite's directory. Both read cases one way; they differ in where
|
|
6
|
+
* the suite is and which servers its mocks may stand in for (the end of
|
|
7
|
+
* this comment).
|
|
8
|
+
*
|
|
9
|
+
* Pure and synchronous like `readPluginPackage`, and never a refusal: a
|
|
10
|
+
* suite is the author's tests, not part of what Stigmer installs, so a case
|
|
11
|
+
* that cannot load is a finding and the rest of the suite still reads. The
|
|
12
|
+
* install summarises the result on the plugin; the eval workflow reads the
|
|
13
|
+
* archive again at the digest it runs, so both see one reading.
|
|
14
|
+
*
|
|
15
|
+
* The directory is `evals/`, or a Claude-shaped manifest's
|
|
16
|
+
* `experimental.evals` when that is a relative path of plain directory
|
|
17
|
+
* names clear of the plugin's skills (with or without a `./` prefix, or an
|
|
18
|
+
* array's first entry); any other value is an
|
|
19
|
+
* `eval-dir-invalid` finding and `evals/` is used, the format's rule for an
|
|
20
|
+
* unusable manifest value. Skills a manifest declares in `evals/` leave the
|
|
21
|
+
* plugin no suite: an `eval-dir-invalid` finding and no case, since the
|
|
22
|
+
* skills keep their files. The manifest is found by the library's own
|
|
23
|
+
* detection, so the reader and the install never disagree on which manifest
|
|
24
|
+
* a plugin has, and the rule is `eval-dir.ts`'s, which the skill listing
|
|
25
|
+
* shares to leave the suite out of every skill.
|
|
26
|
+
*
|
|
27
|
+
* A case is a directory under the suite holding `prompt.md` or `case.yaml`;
|
|
28
|
+
* a directory that is neither may group cases beneath it, and everything
|
|
29
|
+
* inside a case belongs to it (its `graders/`, fixtures, its own `mocks/`).
|
|
30
|
+
* `results/` and `mocks/` at the suite root are the runner's output and the
|
|
31
|
+
* suite's MCP mocks, never cases. Every file is read through the
|
|
32
|
+
* `evalDocument` cap. A case's mocks are its own `mocks/` over the suite's,
|
|
33
|
+
* file by file (`mocks.ts`).
|
|
34
|
+
*
|
|
35
|
+
* The search goes at most {@link EVAL_MAX_CASE_DEPTH} directories below the
|
|
36
|
+
* suite, and a deeper directory is a finding rather than a recursion that
|
|
37
|
+
* runs out of stack: the install accepts any depth its archive holds. A
|
|
38
|
+
* case's name is at most {@link EVAL_MAX_CASE_NAME} characters and its
|
|
39
|
+
* directory's path at most {@link EVAL_MAX_CASE_DIR} characters, else the
|
|
40
|
+
* case is invalid: both are matched against an eval's `case_glob` on the
|
|
41
|
+
* server's request path, and both are stored on the plugin and every eval.
|
|
42
|
+
*
|
|
43
|
+
* Fields follow the format's precedence: `prompt.md` frontmatter overrides
|
|
44
|
+
* the matching `case.yaml` field (a whole field, a list included, never
|
|
45
|
+
* merged), the `prompt.md` body is the prompt and `execution.prompt` the
|
|
46
|
+
* fallback when that body is blank, and the graders are `case.yaml`'s list
|
|
47
|
+
* then `graders/*.md` in path order. An unknown key in either file is an
|
|
48
|
+
* error for that case, as Claude Code treats it.
|
|
49
|
+
*
|
|
50
|
+
* A case's `context` paths are checked against its files, as a baseline
|
|
51
|
+
* grader's file is: the scaffold script a file, each of `add_dirs` a
|
|
52
|
+
* directory, the history a `.jsonl` file whose conversation can be resumed
|
|
53
|
+
* (`@stigmer/eval-runtime`'s transcript reader, tool calls and results
|
|
54
|
+
* paired). A path that climbs out of the case or names nothing there stops
|
|
55
|
+
* the case.
|
|
56
|
+
*
|
|
57
|
+
* A case that uses a feature Stigmer does not run yet still loads, with
|
|
58
|
+
* `unsupported` naming the first such feature in `EVAL_UNSUPPORTED_FEATURES`
|
|
59
|
+
* order: running it without the feature would produce a wrong score. A
|
|
60
|
+
* feature one engine cannot run is that engine's alone
|
|
61
|
+
* ({@link evalCaseUnsupportedOnCursor}): the server lists the case as not
|
|
62
|
+
* run on that engine's targets and runs it on the others.
|
|
63
|
+
*
|
|
64
|
+
* A plugin's suite may mock only the servers its plugin declares, the
|
|
65
|
+
* suite's `servers`. A pushed folder names no plugin, so it keeps every
|
|
66
|
+
* mock directory whose name could be an MCP server's
|
|
67
|
+
* (`isToolNameSegment`), and its `servers` are those directories' names:
|
|
68
|
+
* which agent server each stands in for is decided when the eval runs on
|
|
69
|
+
* an agent, not here. A manifest in the folder is a file like any other,
|
|
70
|
+
* and a case naming `plugins` is unsupported: the agent's plugins load,
|
|
71
|
+
* never a folder.
|
|
72
|
+
*/
|
|
73
|
+
import { type PluginFiles } from "../files.js";
|
|
74
|
+
import type { EvalCase, EvalSuite } from "./types.js";
|
|
75
|
+
export { DEFAULT_EVAL_DIR } from "./eval-dir.js";
|
|
76
|
+
/** Graders a case may carry and still run: one Score criterion per grader, and a Score holds 32. */
|
|
77
|
+
export declare const EVAL_MAX_GRADERS = 32;
|
|
78
|
+
/** The most directories a case may sit below the suite's directory. */
|
|
79
|
+
export declare const EVAL_MAX_CASE_DEPTH = 32;
|
|
80
|
+
/** The longest case name, in characters (code points). */
|
|
81
|
+
export declare const EVAL_MAX_CASE_NAME = 200;
|
|
82
|
+
/** The longest plugin-relative path of a case's directory, in characters (code points). */
|
|
83
|
+
export declare const EVAL_MAX_CASE_DIR = 1024;
|
|
84
|
+
/** The longest `append_system_prompt` a case may carry, in characters: the most a run takes (`RunSpec.append_system_prompt`). */
|
|
85
|
+
export declare const EVAL_MAX_APPEND_SYSTEM_PROMPT = 32768;
|
|
86
|
+
/**
|
|
87
|
+
* The features Stigmer reads but does not run yet, in the order a case is
|
|
88
|
+
* checked for them; `EvalCase.unsupported` is one of these phrases.
|
|
89
|
+
*/
|
|
90
|
+
export declare const EVAL_UNSUPPORTED_FEATURES: readonly ["plugins", "more than 32 graders"];
|
|
91
|
+
export type EvalUnsupportedFeature = (typeof EVAL_UNSUPPORTED_FEATURES)[number];
|
|
92
|
+
/**
|
|
93
|
+
* The features the Cursor engine cannot run, in the order a case is
|
|
94
|
+
* checked for them. Its SDK keeps a conversation's history in a store it
|
|
95
|
+
* owns, so a recorded conversation cannot be resumed there, and its shell
|
|
96
|
+
* runs in the runner's process with no per-run environment, so `env` cannot
|
|
97
|
+
* reach it.
|
|
98
|
+
*/
|
|
99
|
+
export declare const EVAL_CURSOR_UNSUPPORTED_FEATURES: readonly ["resumed conversations", "env"];
|
|
100
|
+
export type EvalCursorUnsupportedFeature = (typeof EVAL_CURSOR_UNSUPPORTED_FEATURES)[number];
|
|
101
|
+
/** The first feature of `evalCase` the Cursor engine cannot run, or `undefined`. */
|
|
102
|
+
export declare function evalCaseUnsupportedOnCursor(evalCase: EvalCase): EvalCursorUnsupportedFeature | undefined;
|
|
103
|
+
export declare function readEvalSuite(files: PluginFiles): EvalSuite;
|
|
104
|
+
/**
|
|
105
|
+
* A pushed eval: the folder at the archive's root, read as a suite whose
|
|
106
|
+
* mocks may stand in for any server a name could be (the module comment).
|
|
107
|
+
* `dir` is the empty string, the root.
|
|
108
|
+
*/
|
|
109
|
+
export declare function readEvalFolder(files: PluginFiles): EvalSuite;
|
|
110
|
+
//# sourceMappingURL=read-eval-suite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-eval-suite.d.ts","sourceRoot":"","sources":["../src/evals/read-eval-suite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AAIH,OAAO,EAAiE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAwB9G,OAAO,KAAK,EAAE,QAAQ,EAA+B,SAAS,EAAoB,MAAM,YAAY,CAAC;AAErG,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,oGAAoG;AACpG,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,2FAA2F;AAC3F,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC,iIAAiI;AACjI,eAAO,MAAM,6BAA6B,QAAS,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8CAA+C,CAAC;AAEtF,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,2CAA4C,CAAC;AAE1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7F,oFAAoF;AACpF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,GAAG,4BAA4B,GAAG,SAAS,CAIxG;AAmED,wBAAgB,aAA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