@checksum-ai/runtime 4.5.0-beta.1 → 4.5.0-beta.2

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/.env CHANGED
@@ -1 +1 @@
1
- CHECKSUM_RUNTIME_BUILD_TIME=2026-06-25T20:27:06.360Z
1
+ CHECKSUM_RUNTIME_BUILD_TIME=2026-06-25T23:27:58.381Z
@@ -1,15 +1,11 @@
1
1
  node_modules/
2
- test-results/
3
- playwright-report/
4
- blob-report/
5
- playwright/.cache/
2
+ /test-results/
3
+ /playwright-report/
4
+ /blob-report/
5
+ /playwright/.cache/
6
6
  .auth
7
- *.eval.checksum.spec.ts
7
+ .eval.checksum.spec.ts
8
8
  *.rrweb.json.jsonl
9
9
  *.rrweb.jsonl
10
10
  .chk/
11
- test-instrumentation/
12
- .env
13
- checksum/test-data/*
14
- !checksum/test-data/bin/
15
- .DS_Store
11
+ test-instrumentation/
@@ -1,14 +1,6 @@
1
1
  import { RunMode, getChecksumConfig } from "@checksum-ai/runtime";
2
- import * as path from "path";
3
- import * as dotenv from "dotenv";
4
-
5
- // Load env vars from the repo-root .env first, then checksum/.env. dotenv does
6
- // not overwrite variables that are already set, so the repo-root .env wins on
7
- // any overlapping key and checksum/.env only fills in the rest (and anything
8
- // already exported in the real shell environment beats both files).
9
- const projectRoot = process.cwd();
10
- dotenv.config({ path: path.join(projectRoot, ".env") });
11
- dotenv.config({ path: path.join(__dirname, ".env") });
2
+ import { resolve } from "path";
3
+ require("dotenv").config({ path: resolve(__dirname, ".env") });
12
4
 
13
5
  export default getChecksumConfig({
14
6
  /**
@@ -0,0 +1,54 @@
1
+ // @ts-check
2
+ // ESLint 9+ flat config for Checksum Playwright tests
3
+ // Minimal and modern per typescript-eslint Quickstart + Playwright recommended
4
+ // Dev dependencies to add:
5
+ // npm i -D eslint @eslint/js typescript typescript-eslint @typescript-eslint/eslint-plugin eslint-plugin-playwright @stylistic/eslint-plugin
6
+
7
+ import tseslint from "typescript-eslint";
8
+ import stylistic from "@stylistic/eslint-plugin";
9
+
10
+ export default tseslint.config(
11
+ // Project-specific options for typed linting
12
+ {
13
+ files: ["**/*.{ts,tsx,mts,cts}"],
14
+ languageOptions: {
15
+ parser: tseslint.parser,
16
+ parserOptions: {
17
+ project: "./tsconfig.json",
18
+ tsconfigRootDir: import.meta.dirname,
19
+ },
20
+ },
21
+ plugins: {
22
+ "@typescript-eslint": tseslint.plugin,
23
+ "@stylistic": stylistic,
24
+ },
25
+ rules: {
26
+ "@typescript-eslint/no-floating-promises": "error",
27
+ // The Checksum REPL bootstrap — `require(...checksum-js-engine.js)` plus
28
+ // `await eval(repl())` — is an exploration-time debugging aid that belongs
29
+ // only in scratch `.eval.checksum.spec.ts` files (ignored below). Fail the
30
+ // lint if it (or any `eval` / `require`) is left in a committed test.
31
+ "no-eval": "error",
32
+ "@typescript-eslint/no-require-imports": "error",
33
+ // Formatting — kept intentionally minimal: only the two rules that caused
34
+ // real heal churn (single↔double quote flips, missing/extra semicolons).
35
+ // Auto-fixed by `eslint --fix`, so an agent's edit is normalized to this
36
+ // style instead of reflowing the file. `avoidEscape` keeps single quotes
37
+ // when the string contains a double quote (no ugly escaping).
38
+ "@stylistic/quotes": ["error", "double", { avoidEscape: true }],
39
+ "@stylistic/semi": ["error", "always"],
40
+ },
41
+ },
42
+ // Ignores
43
+ {
44
+ ignores: [
45
+ "node_modules/",
46
+ "test-results/",
47
+ "playwright-report/",
48
+ "blob-report/",
49
+ "playwright/.cache/",
50
+ "**/*.js",
51
+ "**/.eval.checksum.spec.ts",
52
+ ],
53
+ }
54
+ );
@@ -5,5 +5,5 @@
5
5
  "@checksum/*": ["./*"]
6
6
  }
7
7
  },
8
- "include": ["./tests/**/*", ".chk/**/*"]
8
+ "include": ["./**/*", ".chk/**/*"]
9
9
  }