@plune-ai/cli 0.17.1 → 0.19.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 +25 -7
- package/dist/cli.cjs +209 -130
- package/dist/index.cjs +110 -76
- package/dist/index.d.cts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +110 -76
- package/dist/reporter-core.cjs +9 -4
- package/dist/reporter-core.d.cts +17 -3
- package/dist/reporter-core.d.ts +17 -3
- package/dist/reporter-core.js +9 -4
- package/package.json +1 -1
package/dist/reporter-core.js
CHANGED
|
@@ -166,7 +166,7 @@ function createClient(opts) {
|
|
|
166
166
|
if (res.status === 429 && retryAfterMs(res) === null) {
|
|
167
167
|
last.kind = "invalid";
|
|
168
168
|
last.detail = "quota exceeded (no Retry-After)";
|
|
169
|
-
if (said.detail) last.detail += ` \u2014 ${said.detail}`;
|
|
169
|
+
if (said.detail) last.detail += ` \u2014 ${scrub(said.detail)}`;
|
|
170
170
|
break;
|
|
171
171
|
}
|
|
172
172
|
if (attempt < RETRY_DELAYS_MS.length) {
|
|
@@ -1051,21 +1051,26 @@ async function startRun(passed, declared) {
|
|
|
1051
1051
|
},
|
|
1052
1052
|
flush,
|
|
1053
1053
|
async finish(reason) {
|
|
1054
|
-
if (done) return;
|
|
1054
|
+
if (done) return void 0;
|
|
1055
1055
|
done = true;
|
|
1056
1056
|
await flush();
|
|
1057
1057
|
await offer();
|
|
1058
|
+
let frozen;
|
|
1058
1059
|
if (runId !== null && !offline) {
|
|
1059
1060
|
const out = await client.post(`/v1/runs/${runId}/events`, {
|
|
1060
1061
|
event: "finish",
|
|
1061
1062
|
...reason !== void 0 ? { reason } : {}
|
|
1062
1063
|
});
|
|
1063
1064
|
if (!out.ok) log(`plune: could not close run ${runId} (${out.detail || out.kind}).`);
|
|
1064
|
-
else
|
|
1065
|
-
|
|
1065
|
+
else {
|
|
1066
|
+
frozen = out.body?.summary ?? void 0;
|
|
1067
|
+
if (typeof out.body?.detached === "number" && out.body.detached > 0) {
|
|
1068
|
+
log(`plune: ${out.body.detached} test case(s) marked detached \u2014 this full run no longer reports them.`);
|
|
1069
|
+
}
|
|
1066
1070
|
}
|
|
1067
1071
|
}
|
|
1068
1072
|
summarise();
|
|
1073
|
+
return frozen;
|
|
1069
1074
|
},
|
|
1070
1075
|
async leaveOpen() {
|
|
1071
1076
|
if (done) return;
|
package/package.json
CHANGED