willfire 0.1.32 → 0.1.34

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/dist/cli.js CHANGED
File without changes
@@ -1,3 +1,4 @@
1
+ import type { YamlMap, YamlValue } from "../yamlValue.js";
1
2
  /**
2
3
  * A partially-known value.
3
4
  *
@@ -18,7 +19,7 @@ export type Val = {
18
19
  */
19
20
  | {
20
21
  kind: "json";
21
- v: unknown[] | Record<string, unknown>;
22
+ v: YamlValue[] | YamlMap;
22
23
  } | {
23
24
  kind: "truthy";
24
25
  } | {
@@ -0,0 +1,2 @@
1
+ export { makeLiveExecutor } from "./predict/makeLiveExecutor.js";
2
+ export type { GithubPullSummary } from "./predict/makeGithubClient.js";
@@ -0,0 +1,3 @@
1
+ // Not public API. The seams the in-repo dev tools under `scripts/` need and
2
+ // `.` deliberately does not publish; `src/index.test.ts` pins that surface.
3
+ export { makeLiveExecutor } from "./predict/makeLiveExecutor.js";
@@ -1 +1,2 @@
1
- export declare function lookupPath(obj: any, path: string): unknown;
1
+ import type { YamlValue } from "../yamlValue.js";
2
+ export declare function lookupPath(obj: any, path: string): YamlValue | undefined;
@@ -0,0 +1,6 @@
1
+ /** Every value a workflow document can hold, and so everything read out of one. */
2
+ export type YamlValue = string | number | boolean | null | YamlValue[] | YamlMap;
3
+ /** A mapping. `undefined` belongs to the read of an absent key, never to the document. */
4
+ export type YamlMap = {
5
+ [key: string]: YamlValue | undefined;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willfire",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "Predict the set of CI check entries GitHub Actions will create for a pull request",
5
5
  "license": "MIT",
6
6
  "packageManager": "pnpm@10.33.0",
@@ -23,6 +23,10 @@
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
25
  "default": "./dist/index.js"
26
+ },
27
+ "./internal": {
28
+ "types": "./dist/internal.d.ts",
29
+ "default": "./dist/internal.js"
26
30
  }
27
31
  },
28
32
  "bin": {
@@ -39,10 +43,11 @@
39
43
  "lint": "eslint .",
40
44
  "predict": "tsx src/cli.ts",
41
45
  "prepare": "pnpm build",
42
- "test": "vitest run",
43
- "test:coverage": "vitest run --coverage",
46
+ "record-cassette": "pnpm --filter record-cassette record",
47
+ "test": "vitest run && pnpm --filter record-cassette test",
48
+ "test:coverage": "vitest run --coverage && pnpm --filter record-cassette test:coverage",
44
49
  "test:e2e": "vitest run --config tests/e2e/vitest.config.mts",
45
- "typecheck": "tsc -p tsconfig.json",
50
+ "typecheck": "tsc -p tsconfig.json && pnpm --filter record-cassette typecheck",
46
51
  "verify": "tsx src/verify.ts"
47
52
  },
48
53
  "dependencies": {