@unotest/core 0.14.0 → 0.16.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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.16.0] - 2026-08-19
4
+
5
+ ### Minor Changes
6
+
7
+ - 4fc5e5a: `UnotestError` — the typed-error base class — now lives in
8
+ `@unotest/core` and is part of its public API. `@unotest/web` re-exports
9
+ it unchanged, so existing imports and `instanceof` chains keep working.
10
+ Motivation: other packages need the same base without copying it, and a
11
+ published package is the only home they may all import.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [bf92e6f]
16
+ - @unotest/dsl@0.16.0
17
+ - @unotest/protocol@0.16.0
18
+
19
+ ## [0.15.0] - 2026-08-17
20
+
21
+ ### Patch Changes
22
+
23
+ - @unotest/dsl@0.15.0
24
+ - @unotest/protocol@0.15.0
25
+
3
26
  ## [0.14.0] - 2026-08-16
4
27
 
5
28
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -243,4 +243,9 @@ declare function readEnvLayers(projectRoot: string, suffix: string, envName?: st
243
243
  */
244
244
  declare function applyEnvLayers(projectRoot: string, suffix: string, target?: NodeJS.ProcessEnv): string[];
245
245
 
246
- export { type ArtifactRedactor, type DebugCommandsWatcherDeps, type DebugControlTarget, type DebugWatcherLogger, type E2EFlags, type GitignoreUpdate, type IRunArtifactWriter, JsonlRunArtifactWriter, type JsonlRunArtifactWriterOptions, type RuntimeExecState, type RuntimeInspection, type RuntimeInspectionInput, type RuntimeStateExtra, type RuntimeStateWriter, type RuntimeStateWriterDeps, type WriteManifestInput, type WriteRunSourcesInput, appendUniqueLines, applyEnvLayers, buildRuntimeInspection, createRunArtifactWriter, createRuntimeStateWriter, currentLocation, extractCallStack, levenshteinDistance, parseE2EFlags, readDebuggerBreakpoints, readEnvFile, readEnvLayers, startDebugCommandsWatcher, suggestClosest, toProtocolRuntimeState, writeRunManifest, writeRunSources };
246
+ declare class UnotestError extends Error {
247
+ readonly context: Readonly<Record<string, unknown>>;
248
+ constructor(message: string, context?: Record<string, unknown>);
249
+ }
250
+
251
+ export { type ArtifactRedactor, type DebugCommandsWatcherDeps, type DebugControlTarget, type DebugWatcherLogger, type E2EFlags, type GitignoreUpdate, type IRunArtifactWriter, JsonlRunArtifactWriter, type JsonlRunArtifactWriterOptions, type RuntimeExecState, type RuntimeInspection, type RuntimeInspectionInput, type RuntimeStateExtra, type RuntimeStateWriter, type RuntimeStateWriterDeps, UnotestError, type WriteManifestInput, type WriteRunSourcesInput, appendUniqueLines, applyEnvLayers, buildRuntimeInspection, createRunArtifactWriter, createRuntimeStateWriter, currentLocation, extractCallStack, levenshteinDistance, parseE2EFlags, readDebuggerBreakpoints, readEnvFile, readEnvLayers, startDebugCommandsWatcher, suggestClosest, toProtocolRuntimeState, writeRunManifest, writeRunSources };
package/dist/index.js CHANGED
@@ -546,8 +546,25 @@ function applyEnvLayers(projectRoot, suffix, target = process.env) {
546
546
  return applied;
547
547
  }
548
548
  __name(applyEnvLayers, "applyEnvLayers");
549
+
550
+ // src/errors.ts
551
+ var UnotestError = class extends Error {
552
+ static {
553
+ __name(this, "UnotestError");
554
+ }
555
+ context;
556
+ constructor(message, context = {}) {
557
+ super(message);
558
+ this.name = new.target.name;
559
+ this.context = Object.freeze({ ...context });
560
+ if (typeof Error.captureStackTrace === "function") {
561
+ Error.captureStackTrace(this, new.target);
562
+ }
563
+ }
564
+ };
549
565
  export {
550
566
  JsonlRunArtifactWriter,
567
+ UnotestError,
551
568
  appendUniqueLines,
552
569
  applyEnvLayers,
553
570
  buildRuntimeInspection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unotest/core",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Shared runner-side utilities for the @unotest ecosystem: JSONL run-artifact writer (steps.jsonl + heartbeat), atomic run-manifest + run-sources writers, atomic runtime-state writer with a protocol-normalizing runtime-inspection helper, layered .env reader/applier (target + environment axes), idempotent .gitignore updater. Used by @unotest/web and @unotest/mobile; depends on @unotest/protocol plus a type-only import of @unotest/dsl/executor event types (M-20). Unlike protocol (pure data), this package owns the thin filesystem layer both runners need.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "chokidar": "^4.0.3",
32
- "@unotest/dsl": "^0.14.0",
33
- "@unotest/protocol": "^0.14.0"
32
+ "@unotest/dsl": "^0.16.0",
33
+ "@unotest/protocol": "^0.16.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^22.10.0",