@interf/compiler 0.16.0 → 0.18.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.
- package/LICENSE.md +1 -0
- package/README.md +10 -7
- package/TRADEMARKS.md +4 -4
- package/builtin-methods/interf-default/README.md +6 -7
- package/builtin-methods/interf-default/method.json +7 -68
- package/builtin-methods/interf-default/method.schema.json +52 -50
- package/dist/cli/commands/prep.js +58 -2
- package/dist/cli/commands/verify.d.ts +2 -0
- package/dist/cli/commands/verify.js +17 -8
- package/dist/cli/commands/wizard.js +122 -14
- package/dist/compiler-ui/404.html +1 -1
- package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
- package/dist/compiler-ui/__next._full.txt +3 -3
- package/dist/compiler-ui/__next._head.txt +1 -1
- package/dist/compiler-ui/__next._index.txt +2 -2
- package/dist/compiler-ui/__next._tree.txt +2 -2
- package/dist/compiler-ui/_next/static/chunks/{13awzu4tooflw.css → 0_c_tvh-cukjz.css} +1 -1
- package/dist/compiler-ui/_next/static/chunks/{0jipmpez3_ehh.js → 0f_geuwdesg_c.js} +42 -17
- package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
- package/dist/compiler-ui/_not-found.html +1 -1
- package/dist/compiler-ui/_not-found.txt +2 -2
- package/dist/compiler-ui/index.html +1 -1
- package/dist/compiler-ui/index.txt +3 -3
- package/dist/packages/contracts/index.d.ts +2 -2
- package/dist/packages/contracts/index.js +1 -1
- package/dist/packages/contracts/lib/schema.d.ts +271 -72
- package/dist/packages/contracts/lib/schema.js +243 -83
- package/dist/packages/engine/action-definitions.js +1 -1
- package/dist/packages/engine/agents/lib/shells.d.ts +12 -4
- package/dist/packages/engine/agents/lib/shells.js +127 -120
- package/dist/packages/engine/cloud-seams.d.ts +115 -0
- package/dist/packages/engine/cloud-seams.js +84 -0
- package/dist/packages/engine/compile/artifact-counts.d.ts +1 -1
- package/dist/packages/engine/compile/artifact-counts.js +3 -3
- package/dist/packages/engine/compile/artifact-status.d.ts +41 -0
- package/dist/packages/engine/compile/artifact-status.js +166 -0
- package/dist/packages/engine/compile/billing-events.d.ts +89 -0
- package/dist/packages/engine/compile/billing-events.js +74 -0
- package/dist/packages/engine/compile/check-evaluator.d.ts +66 -0
- package/dist/packages/engine/compile/check-evaluator.js +298 -0
- package/dist/packages/engine/compile/compiled-schema.d.ts +7 -17
- package/dist/packages/engine/compile/compiled-schema.js +55 -70
- package/dist/packages/engine/compile/compiled-stage-plan.d.ts +1 -0
- package/dist/packages/engine/compile/compiled-stage-plan.js +32 -15
- package/dist/packages/engine/compile/compiled-stage-runner.js +1 -1
- package/dist/packages/engine/compile/index.d.ts +0 -1
- package/dist/packages/engine/compile/index.js +0 -1
- package/dist/packages/engine/compile/lib/schema.d.ts +111 -92
- package/dist/packages/engine/compile/lib/schema.js +35 -39
- package/dist/packages/engine/compile/method-primitives.d.ts +2 -2
- package/dist/packages/engine/compile/method-primitives.js +1 -1
- package/dist/packages/engine/compile/reset.js +4 -4
- package/dist/packages/engine/compile/runtime-contracts.js +2 -1
- package/dist/packages/engine/compile/runtime-prompt.js +3 -2
- package/dist/packages/engine/compile/runtime-reconcile.js +35 -35
- package/dist/packages/engine/compile/runtime-runs.js +0 -1
- package/dist/packages/engine/compile/runtime-types.d.ts +7 -8
- package/dist/packages/engine/compile/runtime.d.ts +1 -2
- package/dist/packages/engine/compile/runtime.js +0 -1
- package/dist/packages/engine/compile/state-health.js +6 -6
- package/dist/packages/engine/compile/state-view.js +7 -6
- package/dist/packages/engine/compile/validate-compiled.js +61 -30
- package/dist/packages/engine/compile/validate.js +26 -24
- package/dist/packages/engine/execution/lib/schema.d.ts +79 -33
- package/dist/packages/engine/execution/lib/schema.js +13 -5
- package/dist/packages/engine/index.d.ts +2 -2
- package/dist/packages/engine/index.js +1 -1
- package/dist/packages/engine/lib/schema.d.ts +551 -242
- package/dist/packages/engine/lib/schema.js +53 -17
- package/dist/packages/engine/native-run-handlers.js +15 -7
- package/dist/packages/engine/preparation-store.d.ts +6 -0
- package/dist/packages/engine/preparation-store.js +8 -0
- package/dist/packages/engine/routes.d.ts +6 -0
- package/dist/packages/engine/routes.js +6 -0
- package/dist/packages/engine/run-observability.js +1 -2
- package/dist/packages/engine/runtime-event-applier.js +7 -0
- package/dist/packages/engine/runtime-proposal-helpers.js +1 -1
- package/dist/packages/engine/runtime-resource-builders.d.ts +6 -6
- package/dist/packages/engine/runtime-resource-builders.js +5 -4
- package/dist/packages/engine/runtime.d.ts +67 -7
- package/dist/packages/engine/runtime.js +159 -29
- package/dist/packages/engine/server.d.ts +25 -0
- package/dist/packages/engine/server.js +62 -3
- package/dist/packages/engine/verify/index.d.ts +10 -10
- package/dist/packages/engine/verify/index.js +8 -8
- package/dist/packages/engine/verify/readiness-check-run.d.ts +27 -4
- package/dist/packages/engine/verify/readiness-check-run.js +92 -24
- package/dist/packages/engine/verify/{test-execution.d.ts → verify-execution.d.ts} +2 -2
- package/dist/packages/engine/verify/{test-execution.js → verify-execution.js} +2 -2
- package/dist/packages/engine/verify/{test-paths.d.ts → verify-paths.d.ts} +1 -1
- package/dist/packages/engine/verify/{test-sandbox.d.ts → verify-sandbox.d.ts} +1 -1
- package/dist/packages/engine/verify/{test-specs.d.ts → verify-specs.d.ts} +1 -1
- package/dist/packages/engine/verify/{test-specs.js → verify-specs.js} +1 -1
- package/dist/packages/engine/verify/{test-targets.d.ts → verify-targets.d.ts} +1 -1
- package/dist/packages/engine/verify/{test.d.ts → verify.d.ts} +4 -4
- package/dist/packages/engine/verify/{test.js → verify.js} +3 -3
- package/dist/packages/engine/wire-schemas.d.ts +545 -0
- package/dist/packages/engine/wire-schemas.js +59 -0
- package/dist/packages/methods/authoring/method-authoring.d.ts +2 -0
- package/dist/packages/methods/authoring/method-authoring.js +99 -18
- package/dist/packages/methods/authoring/method-edit-session.js +5 -5
- package/dist/packages/methods/authoring/method-improvement.js +1 -1
- package/dist/packages/methods/package/builtin-compiled-method.d.ts +12 -12
- package/dist/packages/methods/package/builtin-compiled-method.js +25 -22
- package/dist/packages/methods/package/context-interface.d.ts +39 -26
- package/dist/packages/methods/package/context-interface.js +48 -39
- package/dist/packages/methods/package/interf-method-package.js +28 -47
- package/dist/packages/methods/package/local-methods.d.ts +3 -4
- package/dist/packages/methods/package/local-methods.js +34 -62
- package/dist/packages/methods/package/method-definitions.d.ts +4 -6
- package/dist/packages/methods/package/method-definitions.js +0 -4
- package/dist/packages/methods/package/method-helpers.d.ts +0 -2
- package/dist/packages/methods/package/method-helpers.js +0 -4
- package/dist/packages/project/interf-scaffold.js +12 -12
- package/dist/packages/project/source-config.js +2 -1
- package/package.json +6 -16
- package/dist/packages/engine/compile/runtime-acceptance.d.ts +0 -9
- package/dist/packages/engine/compile/runtime-acceptance.js +0 -265
- /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → 6qyE1u9m_oBUkvAhhoCmO}/_buildManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → 6qyE1u9m_oBUkvAhhoCmO}/_clientMiddlewareManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → 6qyE1u9m_oBUkvAhhoCmO}/_ssgManifest.js +0 -0
- /package/dist/packages/engine/verify/{test-paths.js → verify-paths.js} +0 -0
- /package/dist/packages/engine/verify/{test-profile-presets.d.ts → verify-profile-presets.d.ts} +0 -0
- /package/dist/packages/engine/verify/{test-profile-presets.js → verify-profile-presets.js} +0 -0
- /package/dist/packages/engine/verify/{test-sandbox.js → verify-sandbox.js} +0 -0
- /package/dist/packages/engine/verify/{test-targets.js → verify-targets.js} +0 -0
- /package/dist/packages/engine/verify/{test-types.d.ts → verify-types.d.ts} +0 -0
- /package/dist/packages/engine/verify/{test-types.js → verify-types.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
|
-
import { buildTestSpecFromCompiledPreparationConfig, fingerprintReadinessChecks, } from "../../project/source-config.js";
|
|
4
|
-
import { asPreparationDataDir, preparationLatestReadinessRunPath, preparationLatestReadinessSummaryPath, preparationTestRunPath, preparationTestRunsRoot, normalizePreparationTestRunId, preparationPortableContextPath, } from "../../contracts/lib/preparation-paths.js";
|
|
3
|
+
import { buildTestSpecFromCompiledPreparationConfig, buildTestSpecFromSourceFolderConfig, fingerprintReadinessChecks, resolveConfiguredSourceFolderPath, resolveSourcePreparationPath, } from "../../project/source-config.js";
|
|
4
|
+
import { asPreparationDataDir, preparationLatestReadinessRunPath, preparationLatestReadinessSummaryPath, preparationTestRunPath, preparationTestRunsRoot, preparationTestsRoot, normalizePreparationTestRunId, preparationPortableContextPath, } from "../../contracts/lib/preparation-paths.js";
|
|
5
5
|
import { testRootForCompiled } from "../compile/compiled-paths.js";
|
|
6
6
|
import { readJsonFileWithSchema } from "../../contracts/utils/parse.js";
|
|
7
7
|
import { resolveMethodId } from "../../methods/method-resolution.js";
|
|
8
|
-
import { createCompiledTestTarget, runTargetTestsAuto, saveTargetTestRun, } from "./
|
|
8
|
+
import { createCompiledTestTarget, createSourceFilesTestTarget, runTargetTestsAuto, saveTargetTestRun, } from "./verify.js";
|
|
9
9
|
import { ReadinessCheckRunSchema, } from "./lib/schema.js";
|
|
10
10
|
export function readinessPassRate(outcome) {
|
|
11
11
|
return outcome.result.totalCases > 0
|
|
@@ -80,33 +80,48 @@ export function readCurrentSavedReadinessCheckRun(options) {
|
|
|
80
80
|
}
|
|
81
81
|
return { readinessRun: latestRun, stale: false };
|
|
82
82
|
}
|
|
83
|
+
function modeForOutcomes(sourceFilesOutcome, compiledOutcome) {
|
|
84
|
+
if (sourceFilesOutcome && compiledOutcome)
|
|
85
|
+
return "both";
|
|
86
|
+
if (sourceFilesOutcome)
|
|
87
|
+
return "source-files";
|
|
88
|
+
return "compiled";
|
|
89
|
+
}
|
|
90
|
+
function passRateOf(summary) {
|
|
91
|
+
if (!summary)
|
|
92
|
+
return null;
|
|
93
|
+
if (summary.total_cases <= 0)
|
|
94
|
+
return 0;
|
|
95
|
+
return Math.round((summary.passed_cases / summary.total_cases) * 100);
|
|
96
|
+
}
|
|
83
97
|
export function saveReadinessCheckRun(options) {
|
|
84
98
|
const generatedAt = new Date().toISOString();
|
|
99
|
+
const sourceFilesOutcome = options.sourceFilesOutcome ?? null;
|
|
100
|
+
const sourceFilesSummary = sourceFilesOutcome
|
|
101
|
+
? summarizeSavedTestOutcome("Source Files", sourceFilesOutcome)
|
|
102
|
+
: null;
|
|
85
103
|
const compiledSummary = options.compiledOutcome
|
|
86
104
|
? summarizeSavedTestOutcome("Portable Context", options.compiledOutcome)
|
|
87
105
|
: null;
|
|
88
|
-
const compiledPassRate = compiledSummary
|
|
89
|
-
? Math.round((compiledSummary.passed_cases / compiledSummary.total_cases) * 100)
|
|
90
|
-
: null;
|
|
91
106
|
const payload = {
|
|
92
107
|
kind: "interf-readiness-check-run",
|
|
93
108
|
version: 1,
|
|
94
109
|
generated_at: generatedAt,
|
|
95
|
-
// 0.
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
mode:
|
|
110
|
+
// 0.17 — verify carries the target it ran against on the wire so
|
|
111
|
+
// dashboards and the UI can show source-files baselines alongside
|
|
112
|
+
// compiled judgments. `both` is reserved for future combined runs.
|
|
113
|
+
mode: modeForOutcomes(sourceFilesOutcome, options.compiledOutcome),
|
|
99
114
|
source_path: options.sourcePath,
|
|
100
115
|
checks_fingerprint: options.checksFingerprint,
|
|
101
116
|
preparation: {
|
|
102
117
|
name: options.preparationName,
|
|
103
118
|
portable_context_path: options.portableContextPath,
|
|
104
119
|
},
|
|
105
|
-
source_files:
|
|
120
|
+
source_files: sourceFilesSummary,
|
|
106
121
|
compiled: compiledSummary,
|
|
107
122
|
summary: {
|
|
108
|
-
source_files_pass_rate:
|
|
109
|
-
portable_context_pass_rate:
|
|
123
|
+
source_files_pass_rate: passRateOf(sourceFilesSummary),
|
|
124
|
+
portable_context_pass_rate: passRateOf(compiledSummary),
|
|
110
125
|
},
|
|
111
126
|
};
|
|
112
127
|
const latestStatePath = preparationLatestReadinessRunPath(asPreparationDataDir(options.sourcePath), options.preparationName);
|
|
@@ -156,19 +171,71 @@ export async function runSavedPortableContextCheck(options) {
|
|
|
156
171
|
result,
|
|
157
172
|
};
|
|
158
173
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
174
|
+
/**
|
|
175
|
+
* 0.17 — restored. Runs the saved readiness checks against the source
|
|
176
|
+
* folder baseline (no portable-context indirection) so users can see how
|
|
177
|
+
* much value the Method actually adds. The lower-level `verify-execution`
|
|
178
|
+
* + `verify-sandbox` source-files paths have stayed in tree since 0.13;
|
|
179
|
+
* this is the orchestrator hook that was missing.
|
|
180
|
+
*/
|
|
181
|
+
export async function runSavedSourceFilesCheck(options) {
|
|
182
|
+
const spec = buildTestSpecFromSourceFolderConfig({
|
|
183
|
+
prepDataDir: options.sourcePath,
|
|
184
|
+
targetName: options.preparationConfig.name,
|
|
185
|
+
targetType: "source-files",
|
|
186
|
+
});
|
|
187
|
+
if (!spec)
|
|
188
|
+
return null;
|
|
189
|
+
const sourceFolderPath = resolveConfiguredSourceFolderPath(options.sourcePath) ??
|
|
190
|
+
resolveSourcePreparationPath(options.sourcePath, options.preparationConfig);
|
|
191
|
+
const target = createSourceFilesTestTarget(sourceFolderPath);
|
|
192
|
+
if (!target.eligible)
|
|
193
|
+
return null;
|
|
194
|
+
const run = await runTargetTestsAuto(sourceFolderPath, spec, [target], {
|
|
166
195
|
executor: options.executor,
|
|
167
|
-
|
|
168
|
-
|
|
196
|
+
preserveSandboxes: options.preserveSandboxes ?? "on-failure",
|
|
197
|
+
artifactRootPath: preparationTestsRoot(asPreparationDataDir(options.sourcePath), options.preparationConfig.name),
|
|
198
|
+
});
|
|
199
|
+
const result = run.results[0];
|
|
200
|
+
if (!result)
|
|
201
|
+
return null;
|
|
202
|
+
const preparationRunPath = writePreparationTargetRun({
|
|
203
|
+
prepDataDir: options.sourcePath,
|
|
204
|
+
preparationName: options.preparationConfig.name,
|
|
205
|
+
target: "source-files",
|
|
206
|
+
generatedAt: run.generated_at,
|
|
207
|
+
runId: normalizePreparationTestRunId(spec.id),
|
|
169
208
|
runSuffix: options.runSuffix,
|
|
209
|
+
payload: run,
|
|
170
210
|
});
|
|
171
|
-
|
|
211
|
+
return {
|
|
212
|
+
runPath: preparationRunPath,
|
|
213
|
+
target,
|
|
214
|
+
result,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
export async function runReadinessChecksForExecutor(options) {
|
|
218
|
+
const target = options.target ?? "compiled";
|
|
219
|
+
const compiledOutcome = target === "compiled"
|
|
220
|
+
? await runSavedPortableContextCheck({
|
|
221
|
+
sourcePath: options.sourcePath,
|
|
222
|
+
preparationConfig: options.preparationConfig,
|
|
223
|
+
executor: options.executor,
|
|
224
|
+
portableContextPath: options.portableContextPath,
|
|
225
|
+
preserveSandboxes: options.preserveSandboxes,
|
|
226
|
+
runSuffix: options.runSuffix,
|
|
227
|
+
})
|
|
228
|
+
: null;
|
|
229
|
+
const sourceFilesOutcome = target === "source-files"
|
|
230
|
+
? await runSavedSourceFilesCheck({
|
|
231
|
+
sourcePath: options.sourcePath,
|
|
232
|
+
preparationConfig: options.preparationConfig,
|
|
233
|
+
executor: options.executor,
|
|
234
|
+
preserveSandboxes: options.preserveSandboxes,
|
|
235
|
+
runSuffix: options.runSuffix,
|
|
236
|
+
})
|
|
237
|
+
: null;
|
|
238
|
+
const modeSatisfied = Boolean(compiledOutcome) || Boolean(sourceFilesOutcome);
|
|
172
239
|
const shouldSave = options.saveLatest !== false;
|
|
173
240
|
const readinessRunPath = shouldSave && modeSatisfied
|
|
174
241
|
? saveReadinessCheckRun({
|
|
@@ -176,6 +243,7 @@ export async function runReadinessChecksForExecutor(options) {
|
|
|
176
243
|
portableContextPath: options.portableContextPath,
|
|
177
244
|
preparationName: options.preparationConfig.name,
|
|
178
245
|
checksFingerprint: fingerprintReadinessChecks(options.preparationConfig.checks),
|
|
246
|
+
sourceFilesOutcome,
|
|
179
247
|
compiledOutcome,
|
|
180
248
|
})
|
|
181
249
|
: null;
|
|
@@ -186,7 +254,7 @@ export async function runReadinessChecksForExecutor(options) {
|
|
|
186
254
|
sourcePath: options.sourcePath,
|
|
187
255
|
preparationConfig: options.preparationConfig,
|
|
188
256
|
portableContextPath: options.portableContextPath,
|
|
189
|
-
sourceFilesOutcome
|
|
257
|
+
sourceFilesOutcome,
|
|
190
258
|
compiledOutcome,
|
|
191
259
|
readinessRunPath,
|
|
192
260
|
readinessRun,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MethodExecutor } from "../agents/lib/executors.js";
|
|
2
|
-
import type { TestTargetRun, TestTargetCandidate, LoadedTestSpec } from "./
|
|
3
|
-
import { type TestSandboxRetentionMode } from "./
|
|
2
|
+
import type { TestTargetRun, TestTargetCandidate, LoadedTestSpec } from "./verify-types.js";
|
|
3
|
+
import { type TestSandboxRetentionMode } from "./verify-sandbox.js";
|
|
4
4
|
export declare function runTargetTests(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[]): TestTargetRun;
|
|
5
5
|
export declare function runTargetTestsWithJudge(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[], executor: MethodExecutor, options?: {
|
|
6
6
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
@@ -2,8 +2,8 @@ import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { tmpdir } from "node:os";
|
|
4
4
|
import { buildRuntimeExecutorInfo } from "../agents/lib/executors.js";
|
|
5
|
-
import { targetTestRunGitignorePath, targetTestRunsPath, targetTestSandboxGitignorePath, targetTestSandboxesPath, normalizeTestId, } from "./
|
|
6
|
-
import { createTestSandbox, } from "./
|
|
5
|
+
import { targetTestRunGitignorePath, targetTestRunsPath, targetTestSandboxGitignorePath, targetTestSandboxesPath, normalizeTestId, } from "./verify-paths.js";
|
|
6
|
+
import { createTestSandbox, } from "./verify-sandbox.js";
|
|
7
7
|
function parseWords(content) {
|
|
8
8
|
return content.trim().split(/\s+/).filter(Boolean).length;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TestTargetType } from "./
|
|
1
|
+
import type { TestTargetType } from "./verify-types.js";
|
|
2
2
|
export declare const TEST_SPEC_EXTENSIONS: Set<string>;
|
|
3
3
|
export declare function testSpecRootPath(sourcePath: string): string;
|
|
4
4
|
export declare function testSpecTypePath(sourcePath: string, type: TestTargetType): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TestSpec, TestTargetType, LoadedTestSpec } from "./
|
|
1
|
+
import type { TestSpec, TestTargetType, LoadedTestSpec } from "./verify-types.js";
|
|
2
2
|
export declare function listTestSpecs(sourcePath: string, type: TestTargetType): LoadedTestSpec[];
|
|
3
3
|
export declare function loadTestSpec(sourcePath: string, type: TestTargetType, id: string): LoadedTestSpec | null;
|
|
4
4
|
export declare function loadTestSpecFromFile(filePath: string): LoadedTestSpec | null;
|
|
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, readdirSync, writeFileSync, } from "node:fs";
|
|
|
2
2
|
import { basename, extname, join } from "node:path";
|
|
3
3
|
import { readJsonFileWithSchema } from "../../contracts/utils/parse.js";
|
|
4
4
|
import { TestSpecSchema } from "./lib/schema.js";
|
|
5
|
-
import { TEST_SPEC_EXTENSIONS, assertTestId, assertWritableTestSpecPath, testSpecFilePath, testSpecTypePath, normalizeTestId, } from "./
|
|
5
|
+
import { TEST_SPEC_EXTENSIONS, assertTestId, assertWritableTestSpecPath, testSpecFilePath, testSpecTypePath, normalizeTestId, } from "./verify-paths.js";
|
|
6
6
|
function readTestSpecFile(filePath) {
|
|
7
7
|
const extension = extname(filePath).toLowerCase();
|
|
8
8
|
if (!TEST_SPEC_EXTENSIONS.has(extension))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TestTargetCandidate } from "./
|
|
1
|
+
import type { TestTargetCandidate } from "./verify-types.js";
|
|
2
2
|
export declare function listCompiledTestTargets(sourcePath: string): TestTargetCandidate[];
|
|
3
3
|
export declare function createCompiledTestTarget(compiledPath: string, compiledName: string, methodId?: string): TestTargetCandidate;
|
|
4
4
|
export declare function createSourceFilesTestTarget(sourcePath: string): TestTargetCandidate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { TestCaseExpect, TestCase, TestSpec, TestCheckResult, TestCaseResult, TestTargetResult, TestTargetRun, TestTargetType, LoadedTestSpec, TestTargetCandidate, } from "./
|
|
2
|
-
export { listTestSpecs, loadTestSpec, loadTestSpecFromFile, writeTestSpec, } from "./
|
|
3
|
-
export { createSourceFilesTestTarget, createCompiledTestTarget, listCompiledTestTargets, listTestTargets, } from "./
|
|
4
|
-
export { runTargetTests, runTargetTestsWithJudge, runTargetTestsAuto, saveTargetTestRun, } from "./
|
|
1
|
+
export type { TestCaseExpect, TestCase, TestSpec, TestCheckResult, TestCaseResult, TestTargetResult, TestTargetRun, TestTargetType, LoadedTestSpec, TestTargetCandidate, } from "./verify-types.js";
|
|
2
|
+
export { listTestSpecs, loadTestSpec, loadTestSpecFromFile, writeTestSpec, } from "./verify-specs.js";
|
|
3
|
+
export { createSourceFilesTestTarget, createCompiledTestTarget, listCompiledTestTargets, listTestTargets, } from "./verify-targets.js";
|
|
4
|
+
export { runTargetTests, runTargetTestsWithJudge, runTargetTestsAuto, saveTargetTestRun, } from "./verify-execution.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { listTestSpecs, loadTestSpec, loadTestSpecFromFile, writeTestSpec, } from "./
|
|
2
|
-
export { createSourceFilesTestTarget, createCompiledTestTarget, listCompiledTestTargets, listTestTargets, } from "./
|
|
3
|
-
export { runTargetTests, runTargetTestsWithJudge, runTargetTestsAuto, saveTargetTestRun, } from "./
|
|
1
|
+
export { listTestSpecs, loadTestSpec, loadTestSpecFromFile, writeTestSpec, } from "./verify-specs.js";
|
|
2
|
+
export { createSourceFilesTestTarget, createCompiledTestTarget, listCompiledTestTargets, listTestTargets, } from "./verify-targets.js";
|
|
3
|
+
export { runTargetTests, runTargetTestsWithJudge, runTargetTestsAuto, saveTargetTestRun, } from "./verify-execution.js";
|