@rulvar/store-conformance 1.22.0 → 1.24.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -465,9 +465,15 @@ function journalStoreConformance(mk) {
465
465
  status: "suspended",
466
466
  name: "wf-a",
467
467
  tags: ["team:core"],
468
- budgetUsd: 12.5
468
+ budgetUsd: 12.5,
469
+ segments: 3,
470
+ argsProvided: true,
471
+ argsHash: "a".repeat(64)
469
472
  }));
470
- ensure((await store.listRuns()).find((candidate) => candidate.runId === RUN$1)?.budgetUsd === 12.5, "meta-separation", "putMeta/listRuns must round-trip optional RunMeta fields (budgetUsd)");
473
+ const roundTripped = (await store.listRuns()).find((candidate) => candidate.runId === RUN$1);
474
+ ensure(roundTripped?.budgetUsd === 12.5, "meta-separation", "putMeta/listRuns must round-trip optional RunMeta fields (budgetUsd)");
475
+ ensure(roundTripped?.segments === 3, "meta-separation", "putMeta/listRuns must round-trip optional RunMeta fields (segments)");
476
+ ensure(roundTripped?.argsProvided === true && roundTripped.argsHash === "a".repeat(64), "meta-separation", "putMeta/listRuns must round-trip optional RunMeta fields (argsProvided, argsHash)");
471
477
  await store.delete(RUN$1);
472
478
  ensure((await store.load(RUN$1)).length === 0 && !(await store.listRuns()).some((candidate) => candidate.runId === RUN$1), "meta-separation", "delete must remove the journal and the meta record");
473
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/store-conformance",
3
- "version": "1.22.0",
3
+ "version": "1.24.0",
4
4
  "description": "Rulvar executable store conformance kit (DEF-4).",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,7 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@rulvar/core": "1.22.0"
25
+ "@rulvar/core": "1.24.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.20.0",