@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.
@@ -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 if (typeof out.body?.detached === "number" && out.body.detached > 0) {
1065
- log(`plune: ${out.body.detached} test case(s) marked detached \u2014 this full run no longer reports them.`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plune-ai/cli",
3
- "version": "0.17.1",
3
+ "version": "0.19.0",
4
4
  "description": "AI-powered assertion testing for LLM apps — write assertions, run them against any provider, get a pass/fail report (local, CI, or diff).",
5
5
  "keywords": [
6
6
  "ai",