@qaick/runner 0.2.0-alpha.12 → 0.2.0-alpha.13
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-dist/package.json +1 -1
- package/package-dist/src/build-info.js +1 -1
- package/package-dist/src/runner/RunnerModule.js +9 -9
- package/package-dist/src/runner/catalog.js +1 -1
- package/package-dist/src/runner/fixture.js +1 -1
- package/package-dist/src/runner/history.js +1 -1
- package/package-dist/src/runner/package-loader.js +4 -4
- package/package-dist/src/runner/result-export.js +1 -1
- package/package-dist/src/runner/studio-artifact-loader.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import packageJson from '../package.json';
|
|
1
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
2
2
|
export const RUNNER_VERSION = packageJson.version;
|
|
3
3
|
export const RUNNER_BUILD_ID = import.meta.env.VITE_BUILD_ID ?? import.meta.env.MODE;
|
|
4
4
|
export const RUNNER_BUILD_LABEL = `v${RUNNER_VERSION} · ${RUNNER_BUILD_ID}`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { checkoutNestedPackage, checkoutPackage, checkoutProjectPackage } from './fixture';
|
|
4
|
-
import { loadExecutionPackage, PackageLoadError } from './package-loader';
|
|
5
|
-
import { PackageCatalog } from './catalog';
|
|
6
|
-
import { RUNNER_CONTRACT_VERSION } from './types';
|
|
7
|
-
import { RunnerWalkthrough } from '../demo/RunnerWalkthrough';
|
|
8
|
-
import { RUNNER_BUILD_LABEL } from '../build-info';
|
|
9
|
-
import { collectSecretValues, redactExecutionEvent, redactExecutionResult, redactKeyValuePairs } from './redaction';
|
|
10
|
-
import { createResultExport } from './result-export';
|
|
11
|
-
import { persistRunHistory } from './history';
|
|
3
|
+
import { checkoutNestedPackage, checkoutPackage, checkoutProjectPackage } from './fixture.js';
|
|
4
|
+
import { loadExecutionPackage, PackageLoadError } from './package-loader.js';
|
|
5
|
+
import { PackageCatalog } from './catalog.js';
|
|
6
|
+
import { RUNNER_CONTRACT_VERSION } from './types.js';
|
|
7
|
+
import { RunnerWalkthrough } from '../demo/RunnerWalkthrough.js';
|
|
8
|
+
import { RUNNER_BUILD_LABEL } from '../build-info.js';
|
|
9
|
+
import { collectSecretValues, redactExecutionEvent, redactExecutionResult, redactKeyValuePairs } from './redaction.js';
|
|
10
|
+
import { createResultExport } from './result-export.js';
|
|
11
|
+
import { persistRunHistory } from './history.js';
|
|
12
12
|
const HISTORY_KEY = 'qaick-runner.history.v1';
|
|
13
13
|
const HISTORY_RETENTION_KEY = 'qaick-runner.history-retention.v1';
|
|
14
14
|
const IMPORTED_PACKAGE_KEY = 'qaick-runner.imported-package.v1';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import nestedSerializedFixture from '../../fixtures/checkout-nested.qaick.json';
|
|
1
|
+
import nestedSerializedFixture from '../../fixtures/checkout-nested.qaick.json' with { type: 'json' };
|
|
2
2
|
export const checkoutPackage = {
|
|
3
3
|
schemaVersion: 6, packageId: 'checkout-regression',
|
|
4
4
|
target: { kind: 'flow', id: 'customer-checkout', name: 'Customer Checkout' },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { redactExecutionResult } from './redaction';
|
|
1
|
+
import { redactExecutionResult } from './redaction.js';
|
|
2
2
|
export function persistRunHistory(storage, key, entries, retention, secretValues = []) {
|
|
3
3
|
const next = entries.slice(0, retention).map(entry => ({ ...entry, result: redactExecutionResult(entry.result, secretValues) }));
|
|
4
4
|
storage.setItem(key, JSON.stringify(next));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RUNNER_PACKAGE_SCHEMA_VERSION, STUDIO_ARTIFACT_SCHEMA_VERSION } from './types';
|
|
1
|
+
import { RUNNER_PACKAGE_SCHEMA_VERSION, STUDIO_ARTIFACT_SCHEMA_VERSION } from './types.js';
|
|
2
2
|
import { validateArtifact } from '@qaick/contract';
|
|
3
|
-
import { loadStudioFlowArtifact, loadStudioProjectFile } from './studio-artifact-loader';
|
|
4
|
-
import { PackageLoadError } from './package-load-error';
|
|
5
|
-
export { PackageLoadError } from './package-load-error';
|
|
3
|
+
import { loadStudioFlowArtifact, loadStudioProjectFile } from './studio-artifact-loader.js';
|
|
4
|
+
import { PackageLoadError } from './package-load-error.js';
|
|
5
|
+
export { PackageLoadError } from './package-load-error.js';
|
|
6
6
|
export function loadExecutionPackage(serialized) {
|
|
7
7
|
let candidate;
|
|
8
8
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RUNNER_PACKAGE_SCHEMA_VERSION, STUDIO_ARTIFACT_SCHEMA_VERSION } from './types';
|
|
1
|
+
import { RUNNER_PACKAGE_SCHEMA_VERSION, STUDIO_ARTIFACT_SCHEMA_VERSION } from './types.js';
|
|
2
2
|
import { isApiResponseField } from '@qaick/contract';
|
|
3
|
-
import { PackageLoadError } from './package-load-error';
|
|
3
|
+
import { PackageLoadError } from './package-load-error.js';
|
|
4
4
|
/** Converts the Studio schema 7 Flow envelope into Runner's execution port. */
|
|
5
5
|
export function loadStudioFlowArtifact(candidate) {
|
|
6
6
|
if (candidate.artifactKind !== 'flow' || candidate.schemaVersion !== 7 || !isRecord(candidate.flow)) {
|