@plune-ai/cli 0.38.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 +10 -10
- package/dist/cli.cjs +858 -362
- package/dist/index.cjs +1030 -59
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +1030 -59
- 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/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,
|
|
@@ -692,7 +692,7 @@ interface SyncDeps {
|
|
|
692
692
|
loadToken?: () => string | null;
|
|
693
693
|
/** HTTP transport (injected in tests — e.g. a real Hono app's `request`). Defaults to global `fetch`. */
|
|
694
694
|
fetchImpl?: typeof fetch;
|
|
695
|
-
/** `--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. */
|
|
696
696
|
failOnFailures?: boolean;
|
|
697
697
|
}
|
|
698
698
|
interface SyncResult {
|
|
@@ -1222,6 +1222,8 @@ interface IngestResult {
|
|
|
1222
1222
|
skipped: number;
|
|
1223
1223
|
/** Why the platform's job queue did not take this ingest's report: the first refusal or error. The run is recorded. */
|
|
1224
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[];
|
|
1225
1227
|
}
|
|
1226
1228
|
declare function handleIngest(deps: IngestDeps): Promise<IngestResult>;
|
|
1227
1229
|
/**
|
|
@@ -1239,9 +1241,9 @@ declare const INGEST_SCHEMA_VERSION = 1;
|
|
|
1239
1241
|
type CairnRunMode = 'explore' | 'design' | 'api' | 'mcp';
|
|
1240
1242
|
type CairnExecution = 'auto' | 'manual';
|
|
1241
1243
|
/**
|
|
1242
|
-
* `blocked
|
|
1244
|
+
* `blocked`: the case's request got no answer — Cairn's evidence records a transport error
|
|
1243
1245
|
* after the retries — so the product never said anything either way. Sent as `failed`, it blamed the product for an
|
|
1244
|
-
* unreachable target. Needs a platform that accepts it
|
|
1246
|
+
* unreachable target. Needs a platform that accepts it; an older one refuses the payload.
|
|
1245
1247
|
*/
|
|
1246
1248
|
type CairnVerdict = 'passed' | 'failed' | 'blocked';
|
|
1247
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,
|
|
@@ -692,7 +692,7 @@ interface SyncDeps {
|
|
|
692
692
|
loadToken?: () => string | null;
|
|
693
693
|
/** HTTP transport (injected in tests — e.g. a real Hono app's `request`). Defaults to global `fetch`. */
|
|
694
694
|
fetchImpl?: typeof fetch;
|
|
695
|
-
/** `--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. */
|
|
696
696
|
failOnFailures?: boolean;
|
|
697
697
|
}
|
|
698
698
|
interface SyncResult {
|
|
@@ -1222,6 +1222,8 @@ interface IngestResult {
|
|
|
1222
1222
|
skipped: number;
|
|
1223
1223
|
/** Why the platform's job queue did not take this ingest's report: the first refusal or error. The run is recorded. */
|
|
1224
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[];
|
|
1225
1227
|
}
|
|
1226
1228
|
declare function handleIngest(deps: IngestDeps): Promise<IngestResult>;
|
|
1227
1229
|
/**
|
|
@@ -1239,9 +1241,9 @@ declare const INGEST_SCHEMA_VERSION = 1;
|
|
|
1239
1241
|
type CairnRunMode = 'explore' | 'design' | 'api' | 'mcp';
|
|
1240
1242
|
type CairnExecution = 'auto' | 'manual';
|
|
1241
1243
|
/**
|
|
1242
|
-
* `blocked
|
|
1244
|
+
* `blocked`: the case's request got no answer — Cairn's evidence records a transport error
|
|
1243
1245
|
* after the retries — so the product never said anything either way. Sent as `failed`, it blamed the product for an
|
|
1244
|
-
* unreachable target. Needs a platform that accepts it
|
|
1246
|
+
* unreachable target. Needs a platform that accepts it; an older one refuses the payload.
|
|
1245
1247
|
*/
|
|
1246
1248
|
type CairnVerdict = 'passed' | 'failed' | 'blocked';
|
|
1247
1249
|
interface CairnIngestCase {
|