@sedum-dev/reporters 0.1.0-alpha.7 → 0.1.0-alpha.9

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/dist/index.d.ts CHANGED
@@ -115,7 +115,7 @@ declare function testLabel(test: Pick<ResultTest, "file" | "description">): stri
115
115
  /** Arguments to `sedum run` that select exactly this test. */
116
116
  declare function rerunArgs(test: Pick<ResultTest, "file" | "id">): string;
117
117
  /** A step's sentence under its `ai.group` names, outermost first. */
118
- declare function stepText(step: Pick<ResultStep, "sentence" | "group">): string;
118
+ declare function stepText(step: Pick<ResultStep, "sentence" | "group" | "goal">): string;
119
119
 
120
120
  interface JunitReportOptions {
121
121
  /** Whether the run was gated with --strict (SED-13). */
package/dist/index.js CHANGED
@@ -122,7 +122,8 @@ function rerunArgs(test) {
122
122
  return isScriptTest(test) ? `${shellArg(test.file)} --id ${shellArg(test.id)}` : shellArg(test.file);
123
123
  }
124
124
  function stepText(step) {
125
- return step.group?.length ? `${step.group.join(" \u203A ")} \u203A ${step.sentence}` : step.sentence;
125
+ const text = step.goal?.text ?? step.sentence;
126
+ return step.group?.length ? `${step.group.join(" \u203A ")} \u203A ${text}` : text;
126
127
  }
127
128
 
128
129
  // src/html-fonts.ts
@@ -921,6 +922,11 @@ function flowDetail(test) {
921
922
  return out;
922
923
  }
923
924
  if (testStatus(test) === "passed") {
925
+ for (const step of steps.filter((step2) => step2.goal))
926
+ out.push(
927
+ `- **Planner completion (not independently verified)**: ${inline(stepText(step))}`,
928
+ ""
929
+ );
924
930
  const checks = steps.filter(
925
931
  (step) => step.kind === "verify" && step.judgement
926
932
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedum-dev/reporters",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.9",
4
4
  "repository": "https://github.com/sedum-dev/sedum",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,7 +20,7 @@
20
20
  "assets"
21
21
  ],
22
22
  "dependencies": {
23
- "@sedum-dev/core": "0.1.0-alpha.7"
23
+ "@sedum-dev/core": "0.1.0-alpha.9"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "tsup src/index.ts --format esm --dts --clean --out-dir dist",