@plune-ai/cli 0.37.0 → 0.39.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.
- package/README.md +53 -13
- package/THIRD_PARTY_NOTICES +229 -0
- package/dist/cli.cjs +28785 -10697
- package/dist/index.cjs +3461 -252
- package/dist/index.d.cts +63 -9
- package/dist/index.d.ts +63 -9
- package/dist/index.js +3461 -252
- package/dist/mcp-tools.cjs +10 -10
- package/dist/mcp-tools.d.cts +7 -7
- package/dist/mcp-tools.d.ts +7 -7
- package/dist/mcp-tools.js +10 -10
- package/dist/reporter-core.cjs +264 -236
- package/dist/reporter-core.d.cts +111 -112
- package/dist/reporter-core.d.ts +111 -112
- package/dist/reporter-core.js +264 -236
- package/package.json +1 -1
- package/skills/qa-mission/SKILL.md +141 -58
- package/skills/qa-mission/references/tool-calls.md +40 -0
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ interface Summary {
|
|
|
6
6
|
failed: number;
|
|
7
7
|
errored: number;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Rows the runner said were never judged (`RowResult.inconclusive`), counted apart from
|
|
10
10
|
* `failed`. The runner always writes both; they are optional so a RunResult written before them is
|
|
11
11
|
* still valid and `schemaVersion` stays 1. With them, `passed + failed + errored + blocked + skipped`
|
|
12
12
|
* is `total`.
|
|
@@ -15,7 +15,7 @@ interface Summary {
|
|
|
15
15
|
skipped?: number;
|
|
16
16
|
cost_usd: number;
|
|
17
17
|
duration_ms: number;
|
|
18
|
-
/**
|
|
18
|
+
/** Where the answers came from. Optional and additive; absent in older runs. */
|
|
19
19
|
cache?: CacheSummary;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -90,7 +90,7 @@ interface TestCaseBase {
|
|
|
90
90
|
}
|
|
91
91
|
type TestCase = TestCaseBase & (ManualCase | AutomatedCase | EvalCase);
|
|
92
92
|
/**
|
|
93
|
-
* The two words a row may use to say the product was never judged
|
|
93
|
+
* The two words a row may use to say the product was never judged.
|
|
94
94
|
*
|
|
95
95
|
* Both are already statuses this system has — they are `RESULT_STATUSES` entries — and neither was
|
|
96
96
|
* reachable through this contract: a row could only report `passed`, `failed` or `broken`. So a
|
|
@@ -111,14 +111,14 @@ interface RowResult {
|
|
|
111
111
|
latency_ms?: number;
|
|
112
112
|
error?: RunError;
|
|
113
113
|
assertions: AssertionResultRecord[];
|
|
114
|
-
/**
|
|
114
|
+
/** On a cache hit: what the call would have cost. Optional and additive. */
|
|
115
115
|
cache_saved?: {
|
|
116
116
|
input_tokens: number;
|
|
117
117
|
output_tokens: number;
|
|
118
118
|
cost_usd: number;
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* Say it when the test was never judged, rather than letting `failed` stand for both
|
|
122
122
|
* "the environment broke" and "the code is wrong".
|
|
123
123
|
*
|
|
124
124
|
* Optional and purely additive: a producer that does not send it validates exactly as before,
|
|
@@ -221,6 +221,28 @@ interface EvalResult {
|
|
|
221
221
|
tags: string[];
|
|
222
222
|
rows: RowResult[];
|
|
223
223
|
passed: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* What the eval measured, so `plune diff` compares an overall pass rate only between runs that
|
|
226
|
+
* measured the same thing. `rows_hash` is over the rows' canonical `vars`, order aside;
|
|
227
|
+
* `assertions_hash` over the checks with their parameters; `model` is `<provider type>/<model>`.
|
|
228
|
+
* The prompt text is left out on purpose. Optional and additive: absent in older runs, which the
|
|
229
|
+
* diff reads as an unknown population. `schemaVersion` stays 1.
|
|
230
|
+
*/
|
|
231
|
+
measured?: {
|
|
232
|
+
runs: number;
|
|
233
|
+
rows: number;
|
|
234
|
+
rows_hash: string;
|
|
235
|
+
assertions_hash: string;
|
|
236
|
+
model?: string;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* The type and model this result ran on. Written only when the config lists several models, where `id` is
|
|
240
|
+
* `<eval id>@<model>`; absent for a single model, whose id is the eval id. Optional and additive.
|
|
241
|
+
*/
|
|
242
|
+
provider?: {
|
|
243
|
+
type: string;
|
|
244
|
+
model: string;
|
|
245
|
+
};
|
|
224
246
|
}
|
|
225
247
|
interface RunResult {
|
|
226
248
|
schemaVersion: 1;
|
|
@@ -228,6 +250,12 @@ interface RunResult {
|
|
|
228
250
|
started_at: string;
|
|
229
251
|
finished_at: string;
|
|
230
252
|
config_hash: string;
|
|
253
|
+
/**
|
|
254
|
+
* plune-ai/cli#244. `true` on the result of `--dry-run`: the rows were priced and none was run. No
|
|
255
|
+
* row is passed, failed or errored (each is `inconclusive: 'skipped'`), no eval is `passed`, and
|
|
256
|
+
* `cost_usd` is an estimate. Optional and additive: absent on a measured run, `schemaVersion` stays 1.
|
|
257
|
+
*/
|
|
258
|
+
dry_run?: boolean;
|
|
231
259
|
summary: Summary;
|
|
232
260
|
evals: EvalResult[];
|
|
233
261
|
}
|
|
@@ -432,6 +460,8 @@ interface EvalMcpConfig {
|
|
|
432
460
|
interface Config {
|
|
433
461
|
version: 1;
|
|
434
462
|
provider: ProviderConfig;
|
|
463
|
+
/** Set only when the config lists several models, in config order; `provider` is the first of them. */
|
|
464
|
+
providers?: ProviderConfig[];
|
|
435
465
|
defaults?: {
|
|
436
466
|
assertions?: AssertionConfig[];
|
|
437
467
|
};
|
|
@@ -625,6 +655,8 @@ interface RunOptions {
|
|
|
625
655
|
cacheMaxAgeMs?: number;
|
|
626
656
|
/** `--runs`: every row runs this many times (1–100), over `runs` in the config. */
|
|
627
657
|
runs?: number;
|
|
658
|
+
/** `--tool-description`, each as typed: `<tool>=<text>` or `<tool>=@<file>`. */
|
|
659
|
+
toolDescription?: string[];
|
|
628
660
|
}
|
|
629
661
|
declare function handleRun(options: RunOptions, depsFactory?: (config: Config, baseDir: string) => RunDeps): Promise<RunResult>;
|
|
630
662
|
|
|
@@ -660,7 +692,7 @@ interface SyncDeps {
|
|
|
660
692
|
loadToken?: () => string | null;
|
|
661
693
|
/** HTTP transport (injected in tests — e.g. a real Hono app's `request`). Defaults to global `fetch`. */
|
|
662
694
|
fetchImpl?: typeof fetch;
|
|
663
|
-
/** `--fail-on-failures`: read the run's summary back once after the upload and judge it
|
|
695
|
+
/** `--fail-on-failures`: read the run's summary back once after the upload and judge it. */
|
|
664
696
|
failOnFailures?: boolean;
|
|
665
697
|
}
|
|
666
698
|
interface SyncResult {
|
|
@@ -853,6 +885,7 @@ declare const runResultSchema: z.ZodObject<{
|
|
|
853
885
|
started_at: z.ZodString;
|
|
854
886
|
finished_at: z.ZodString;
|
|
855
887
|
config_hash: z.ZodString;
|
|
888
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
856
889
|
summary: z.ZodObject<{
|
|
857
890
|
total: z.ZodNumber;
|
|
858
891
|
passed: z.ZodNumber;
|
|
@@ -1011,10 +1044,29 @@ declare const runResultSchema: z.ZodObject<{
|
|
|
1011
1044
|
advice: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1012
1045
|
type: z.ZodString;
|
|
1013
1046
|
reason: z.ZodString;
|
|
1047
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1049
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1051
|
+
}, z.core.$strip>>>;
|
|
1052
|
+
description_overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1053
|
+
tool: z.ZodString;
|
|
1054
|
+
sha256: z.ZodString;
|
|
1014
1055
|
}, z.core.$strip>>>;
|
|
1015
1056
|
}, z.core.$strip>>;
|
|
1016
1057
|
}, z.core.$strip>>;
|
|
1017
1058
|
passed: z.ZodBoolean;
|
|
1059
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
runs: z.ZodNumber;
|
|
1061
|
+
rows: z.ZodNumber;
|
|
1062
|
+
rows_hash: z.ZodString;
|
|
1063
|
+
assertions_hash: z.ZodString;
|
|
1064
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
}, z.core.$strip>>;
|
|
1066
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
1067
|
+
type: z.ZodString;
|
|
1068
|
+
model: z.ZodString;
|
|
1069
|
+
}, z.core.$strip>>;
|
|
1018
1070
|
}, z.core.$strip>>;
|
|
1019
1071
|
}, z.core.$strip>;
|
|
1020
1072
|
/**
|
|
@@ -1170,6 +1222,8 @@ interface IngestResult {
|
|
|
1170
1222
|
skipped: number;
|
|
1171
1223
|
/** Why the platform's job queue did not take this ingest's report: the first refusal or error. The run is recorded. */
|
|
1172
1224
|
jobProblem?: string;
|
|
1225
|
+
/** What became of the run's recordings (videos, traces): a count, then a line per reason a file stayed behind. */
|
|
1226
|
+
files?: string[];
|
|
1173
1227
|
}
|
|
1174
1228
|
declare function handleIngest(deps: IngestDeps): Promise<IngestResult>;
|
|
1175
1229
|
/**
|
|
@@ -1184,12 +1238,12 @@ declare function formatIngestResult(r: IngestResult): string;
|
|
|
1184
1238
|
|
|
1185
1239
|
/** The payload version the Plune ingest endpoint validates — ours, not Cairn's. */
|
|
1186
1240
|
declare const INGEST_SCHEMA_VERSION = 1;
|
|
1187
|
-
type CairnRunMode = 'explore' | 'design' | 'api';
|
|
1241
|
+
type CairnRunMode = 'explore' | 'design' | 'api' | 'mcp';
|
|
1188
1242
|
type CairnExecution = 'auto' | 'manual';
|
|
1189
1243
|
/**
|
|
1190
|
-
* `blocked
|
|
1244
|
+
* `blocked`: the case's request got no answer — Cairn's evidence records a transport error
|
|
1191
1245
|
* after the retries — so the product never said anything either way. Sent as `failed`, it blamed the product for an
|
|
1192
|
-
* unreachable target. Needs a platform that accepts it
|
|
1246
|
+
* unreachable target. Needs a platform that accepts it; an older one refuses the payload.
|
|
1193
1247
|
*/
|
|
1194
1248
|
type CairnVerdict = 'passed' | 'failed' | 'blocked';
|
|
1195
1249
|
interface CairnIngestCase {
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface Summary {
|
|
|
6
6
|
failed: number;
|
|
7
7
|
errored: number;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Rows the runner said were never judged (`RowResult.inconclusive`), counted apart from
|
|
10
10
|
* `failed`. The runner always writes both; they are optional so a RunResult written before them is
|
|
11
11
|
* still valid and `schemaVersion` stays 1. With them, `passed + failed + errored + blocked + skipped`
|
|
12
12
|
* is `total`.
|
|
@@ -15,7 +15,7 @@ interface Summary {
|
|
|
15
15
|
skipped?: number;
|
|
16
16
|
cost_usd: number;
|
|
17
17
|
duration_ms: number;
|
|
18
|
-
/**
|
|
18
|
+
/** Where the answers came from. Optional and additive; absent in older runs. */
|
|
19
19
|
cache?: CacheSummary;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -90,7 +90,7 @@ interface TestCaseBase {
|
|
|
90
90
|
}
|
|
91
91
|
type TestCase = TestCaseBase & (ManualCase | AutomatedCase | EvalCase);
|
|
92
92
|
/**
|
|
93
|
-
* The two words a row may use to say the product was never judged
|
|
93
|
+
* The two words a row may use to say the product was never judged.
|
|
94
94
|
*
|
|
95
95
|
* Both are already statuses this system has — they are `RESULT_STATUSES` entries — and neither was
|
|
96
96
|
* reachable through this contract: a row could only report `passed`, `failed` or `broken`. So a
|
|
@@ -111,14 +111,14 @@ interface RowResult {
|
|
|
111
111
|
latency_ms?: number;
|
|
112
112
|
error?: RunError;
|
|
113
113
|
assertions: AssertionResultRecord[];
|
|
114
|
-
/**
|
|
114
|
+
/** On a cache hit: what the call would have cost. Optional and additive. */
|
|
115
115
|
cache_saved?: {
|
|
116
116
|
input_tokens: number;
|
|
117
117
|
output_tokens: number;
|
|
118
118
|
cost_usd: number;
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* Say it when the test was never judged, rather than letting `failed` stand for both
|
|
122
122
|
* "the environment broke" and "the code is wrong".
|
|
123
123
|
*
|
|
124
124
|
* Optional and purely additive: a producer that does not send it validates exactly as before,
|
|
@@ -221,6 +221,28 @@ interface EvalResult {
|
|
|
221
221
|
tags: string[];
|
|
222
222
|
rows: RowResult[];
|
|
223
223
|
passed: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* What the eval measured, so `plune diff` compares an overall pass rate only between runs that
|
|
226
|
+
* measured the same thing. `rows_hash` is over the rows' canonical `vars`, order aside;
|
|
227
|
+
* `assertions_hash` over the checks with their parameters; `model` is `<provider type>/<model>`.
|
|
228
|
+
* The prompt text is left out on purpose. Optional and additive: absent in older runs, which the
|
|
229
|
+
* diff reads as an unknown population. `schemaVersion` stays 1.
|
|
230
|
+
*/
|
|
231
|
+
measured?: {
|
|
232
|
+
runs: number;
|
|
233
|
+
rows: number;
|
|
234
|
+
rows_hash: string;
|
|
235
|
+
assertions_hash: string;
|
|
236
|
+
model?: string;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* The type and model this result ran on. Written only when the config lists several models, where `id` is
|
|
240
|
+
* `<eval id>@<model>`; absent for a single model, whose id is the eval id. Optional and additive.
|
|
241
|
+
*/
|
|
242
|
+
provider?: {
|
|
243
|
+
type: string;
|
|
244
|
+
model: string;
|
|
245
|
+
};
|
|
224
246
|
}
|
|
225
247
|
interface RunResult {
|
|
226
248
|
schemaVersion: 1;
|
|
@@ -228,6 +250,12 @@ interface RunResult {
|
|
|
228
250
|
started_at: string;
|
|
229
251
|
finished_at: string;
|
|
230
252
|
config_hash: string;
|
|
253
|
+
/**
|
|
254
|
+
* plune-ai/cli#244. `true` on the result of `--dry-run`: the rows were priced and none was run. No
|
|
255
|
+
* row is passed, failed or errored (each is `inconclusive: 'skipped'`), no eval is `passed`, and
|
|
256
|
+
* `cost_usd` is an estimate. Optional and additive: absent on a measured run, `schemaVersion` stays 1.
|
|
257
|
+
*/
|
|
258
|
+
dry_run?: boolean;
|
|
231
259
|
summary: Summary;
|
|
232
260
|
evals: EvalResult[];
|
|
233
261
|
}
|
|
@@ -432,6 +460,8 @@ interface EvalMcpConfig {
|
|
|
432
460
|
interface Config {
|
|
433
461
|
version: 1;
|
|
434
462
|
provider: ProviderConfig;
|
|
463
|
+
/** Set only when the config lists several models, in config order; `provider` is the first of them. */
|
|
464
|
+
providers?: ProviderConfig[];
|
|
435
465
|
defaults?: {
|
|
436
466
|
assertions?: AssertionConfig[];
|
|
437
467
|
};
|
|
@@ -625,6 +655,8 @@ interface RunOptions {
|
|
|
625
655
|
cacheMaxAgeMs?: number;
|
|
626
656
|
/** `--runs`: every row runs this many times (1–100), over `runs` in the config. */
|
|
627
657
|
runs?: number;
|
|
658
|
+
/** `--tool-description`, each as typed: `<tool>=<text>` or `<tool>=@<file>`. */
|
|
659
|
+
toolDescription?: string[];
|
|
628
660
|
}
|
|
629
661
|
declare function handleRun(options: RunOptions, depsFactory?: (config: Config, baseDir: string) => RunDeps): Promise<RunResult>;
|
|
630
662
|
|
|
@@ -660,7 +692,7 @@ interface SyncDeps {
|
|
|
660
692
|
loadToken?: () => string | null;
|
|
661
693
|
/** HTTP transport (injected in tests — e.g. a real Hono app's `request`). Defaults to global `fetch`. */
|
|
662
694
|
fetchImpl?: typeof fetch;
|
|
663
|
-
/** `--fail-on-failures`: read the run's summary back once after the upload and judge it
|
|
695
|
+
/** `--fail-on-failures`: read the run's summary back once after the upload and judge it. */
|
|
664
696
|
failOnFailures?: boolean;
|
|
665
697
|
}
|
|
666
698
|
interface SyncResult {
|
|
@@ -853,6 +885,7 @@ declare const runResultSchema: z.ZodObject<{
|
|
|
853
885
|
started_at: z.ZodString;
|
|
854
886
|
finished_at: z.ZodString;
|
|
855
887
|
config_hash: z.ZodString;
|
|
888
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
856
889
|
summary: z.ZodObject<{
|
|
857
890
|
total: z.ZodNumber;
|
|
858
891
|
passed: z.ZodNumber;
|
|
@@ -1011,10 +1044,29 @@ declare const runResultSchema: z.ZodObject<{
|
|
|
1011
1044
|
advice: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1012
1045
|
type: z.ZodString;
|
|
1013
1046
|
reason: z.ZodString;
|
|
1047
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1049
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1051
|
+
}, z.core.$strip>>>;
|
|
1052
|
+
description_overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1053
|
+
tool: z.ZodString;
|
|
1054
|
+
sha256: z.ZodString;
|
|
1014
1055
|
}, z.core.$strip>>>;
|
|
1015
1056
|
}, z.core.$strip>>;
|
|
1016
1057
|
}, z.core.$strip>>;
|
|
1017
1058
|
passed: z.ZodBoolean;
|
|
1059
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
runs: z.ZodNumber;
|
|
1061
|
+
rows: z.ZodNumber;
|
|
1062
|
+
rows_hash: z.ZodString;
|
|
1063
|
+
assertions_hash: z.ZodString;
|
|
1064
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
}, z.core.$strip>>;
|
|
1066
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
1067
|
+
type: z.ZodString;
|
|
1068
|
+
model: z.ZodString;
|
|
1069
|
+
}, z.core.$strip>>;
|
|
1018
1070
|
}, z.core.$strip>>;
|
|
1019
1071
|
}, z.core.$strip>;
|
|
1020
1072
|
/**
|
|
@@ -1170,6 +1222,8 @@ interface IngestResult {
|
|
|
1170
1222
|
skipped: number;
|
|
1171
1223
|
/** Why the platform's job queue did not take this ingest's report: the first refusal or error. The run is recorded. */
|
|
1172
1224
|
jobProblem?: string;
|
|
1225
|
+
/** What became of the run's recordings (videos, traces): a count, then a line per reason a file stayed behind. */
|
|
1226
|
+
files?: string[];
|
|
1173
1227
|
}
|
|
1174
1228
|
declare function handleIngest(deps: IngestDeps): Promise<IngestResult>;
|
|
1175
1229
|
/**
|
|
@@ -1184,12 +1238,12 @@ declare function formatIngestResult(r: IngestResult): string;
|
|
|
1184
1238
|
|
|
1185
1239
|
/** The payload version the Plune ingest endpoint validates — ours, not Cairn's. */
|
|
1186
1240
|
declare const INGEST_SCHEMA_VERSION = 1;
|
|
1187
|
-
type CairnRunMode = 'explore' | 'design' | 'api';
|
|
1241
|
+
type CairnRunMode = 'explore' | 'design' | 'api' | 'mcp';
|
|
1188
1242
|
type CairnExecution = 'auto' | 'manual';
|
|
1189
1243
|
/**
|
|
1190
|
-
* `blocked
|
|
1244
|
+
* `blocked`: the case's request got no answer — Cairn's evidence records a transport error
|
|
1191
1245
|
* after the retries — so the product never said anything either way. Sent as `failed`, it blamed the product for an
|
|
1192
|
-
* unreachable target. Needs a platform that accepts it
|
|
1246
|
+
* unreachable target. Needs a platform that accepts it; an older one refuses the payload.
|
|
1193
1247
|
*/
|
|
1194
1248
|
type CairnVerdict = 'passed' | 'failed' | 'blocked';
|
|
1195
1249
|
interface CairnIngestCase {
|