@resolveio/server-lib 22.3.118 → 22.3.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "22.3.118",
3
+ "version": "22.3.119",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -2332,15 +2332,39 @@ function buildResolveIORunnerQaWorkflowProbeScript() {
2332
2332
  'function readJson(filePath) { try { return JSON.parse(fs.readFileSync(filePath, "utf8")); } catch (error) { return null; } }',
2333
2333
  'function readSeedHintText() {',
2334
2334
  ' const repoRoot = path.dirname(projectRoot);',
2335
- ' const chunks = [process.env.RESOLVEIO_QA_SEED_HINTS || "", process.env.RESOLVEIO_SUPPORT_QA_SEED_HINTS || "", process.env.RESOLVEIO_RUNNER_QA_SEED_HINTS || ""];',
2335
+ ' const chunks = [',
2336
+ ' process.env.RESOLVEIO_SUPPORT_QA_ROW_FILTER || "",',
2337
+ ' process.env.RESOLVEIO_SUPPORT_QA_CURRENT_ROW_WORKFLOW || "",',
2338
+ ' process.env.RESOLVEIO_SUPPORT_QA_CURRENT_ROW_ASSERTION || "",',
2339
+ ' process.env.RESOLVEIO_RUNNER_QA_ROW_FILTER || "",',
2340
+ ' process.env.RESOLVEIO_RUNNER_QA_CURRENT_ROW_WORKFLOW || "",',
2341
+ ' process.env.RESOLVEIO_RUNNER_QA_CURRENT_ROW_ASSERTION || "",',
2342
+ ' process.env.RESOLVEIO_QA_SEED_HINTS || "",',
2343
+ ' process.env.RESOLVEIO_SUPPORT_QA_SEED_HINTS || "",',
2344
+ ' process.env.RESOLVEIO_RUNNER_QA_SEED_HINTS || ""',
2345
+ ' ];',
2336
2346
  ' const candidates = [',
2347
+ ' path.join(artifactDir, "qa-coverage-matrix.json"),',
2348
+ ' path.join(artifactDir, "qa-row-lock.json"),',
2337
2349
  ' path.join(repoRoot, ".resolveio-support-context", "manual-ticket.request.txt"),',
2338
2350
  ' path.join(projectRoot, ".resolveio-support-context", "manual-ticket.request.txt"),',
2339
2351
  ' path.join(repoRoot, ".resolveio-context", "manual-ticket.request.txt"),',
2340
2352
  ' path.join(projectRoot, ".resolveio-context", "manual-ticket.request.txt")',
2341
2353
  ' ];',
2342
2354
  ' for (const candidate of candidates) {',
2343
- ' try { chunks.push(fs.readFileSync(candidate, "utf8")); } catch (error) {}',
2355
+ ' try {',
2356
+ ' const raw = fs.readFileSync(candidate, "utf8");',
2357
+ ' chunks.push(raw);',
2358
+ ' if (/qa-coverage-matrix\\.json$/.test(candidate)) {',
2359
+ ' const matrix = JSON.parse(raw);',
2360
+ ' const rows = Array.isArray(matrix && matrix.rows) ? matrix.rows : [];',
2361
+ ' for (const row of rows) chunks.push([row.workflow, row.route, row.assertion, row.required_proof, row.data_id, row.data_name, row.blocker, row.evidence, row.caption].filter(Boolean).join("\\n"));',
2362
+ ' }',
2363
+ ' if (/qa-row-lock\\.json$/.test(candidate)) {',
2364
+ ' const lock = JSON.parse(raw);',
2365
+ ' chunks.push([lock.workflow, lock.route, lock.assertion, lock.required_proof, lock.rowFilter, lock.blocker].filter(Boolean).join("\\n"));',
2366
+ ' }',
2367
+ ' } catch (error) {}',
2344
2368
  ' }',
2345
2369
  ' return chunks.filter(Boolean).join("\\n");',
2346
2370
  '}',
@@ -2567,7 +2591,8 @@ function buildResolveIORunnerQaWorkflowProbeScript() {
2567
2591
  'function activeRowText() {',
2568
2592
  ' const matrix = readJson(matrixPath) || {};',
2569
2593
  ' const row = matrixRows(matrix).find((candidate) => !/^(pass|passed)$/i.test(String(candidate && candidate.status || ""))) || matrixRows(matrix)[0] || {};',
2570
- ' return [row.workflow, row.route, row.assertion, row.required_proof].map((value) => String(value || "")).join("\\n");',
2594
+ ' const rowText = [row.workflow, row.route, row.assertion, row.required_proof].map((value) => String(value || "")).join("\\n");',
2595
+ ' return rowText.trim() ? rowText : readSeedHintText();',
2571
2596
  '}',
2572
2597
  'function readSeedAssetContext() {',
2573
2598
  ' const seed = readJson(path.join(artifactDir, "qa-live-data-seed-result.json"));',