@unotest/core 0.15.0 → 0.17.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,48 +1,31 @@
1
1
  # Changelog
2
2
 
3
- ## [0.15.0] - 2026-08-17
3
+ ## [0.17.0] - 2026-08-20
4
4
 
5
- ### Patch Changes
5
+ ## [0.16.0] - 2026-08-19
6
6
 
7
- - @unotest/dsl@0.15.0
8
- - @unotest/protocol@0.15.0
7
+ ### Minor Changes
9
8
 
10
- ## [0.14.0] - 2026-08-16
9
+ - 4fc5e5a: `UnotestError` — the typed-error base class — now lives in
10
+ `@unotest/core` and is part of its public API. `@unotest/web` re-exports
11
+ it unchanged, so existing imports and `instanceof` chains keep working.
12
+ Motivation: other packages need the same base without copying it, and a
13
+ published package is the only home they may all import.
11
14
 
12
- ### Patch Changes
15
+ ## [0.15.0] - 2026-08-17
13
16
 
14
- - Updated dependencies [0255f2d]
15
- - Updated dependencies [da5badd]
16
- - @unotest/dsl@0.14.0
17
- - @unotest/protocol@0.14.0
17
+ ## [0.14.0] - 2026-08-16
18
18
 
19
19
  ## [0.13.1] - 2026-08-15
20
20
 
21
- ### Patch Changes
22
-
23
- - @unotest/dsl@0.13.1
24
- - @unotest/protocol@0.13.1
25
-
26
21
  ## [0.13.0] - 2026-08-15
27
22
 
28
23
  ### Patch Changes
29
24
 
30
- - Updated dependencies [39ca34f]
31
- - Updated dependencies [a4f0a62]
32
- - Updated dependencies [8d70df6]
33
- - @unotest/dsl@0.13.0
34
- - @unotest/protocol@0.13.0
35
-
36
25
  All notable changes to `@unotest/core` are documented in this file.
37
26
 
38
27
  ## [0.12.0] - 2026-08-14
39
28
 
40
- ### Patch Changes
41
-
42
- - Updated dependencies [40300d3]
43
- - @unotest/dsl@0.12.0
44
- - @unotest/protocol@0.12.0
45
-
46
29
  ## [0.11.0] - 2026-08-13
47
30
 
48
31
  ### Minor Changes
@@ -56,25 +39,11 @@ All notable changes to `@unotest/core` are documented in this file.
56
39
  in `@unotest/core`). The `collection` command also rejects extra
57
40
  positionals.
58
41
 
59
- ### Patch Changes
60
-
61
- - Updated dependencies [a195713]
62
- - Updated dependencies [ce25926]
63
- - Updated dependencies [5a8e92b]
64
- - Updated dependencies [d0ae620]
65
- - Updated dependencies [2a68997]
66
- - @unotest/protocol@0.11.0
67
- - @unotest/dsl@0.11.0
68
-
69
42
  ## [0.10.0] - 2026-08-06
70
43
 
71
44
  ### Patch Changes
72
45
 
73
46
  - 574841f: Dedup pass across the tree (jscpd 0 clones, ratchet threshold 0). New public export in `@unotest/grounder-client`: `intEnvInRange(env, name, def, min, max)` — the `UNOTEST_GROUNDER_*` integer-env parser shared by the consumer side and the grounder server. Everything else is internal refactoring with no behavior change: protocol gains a shared fs-safe-name validator behind `validateCollectionName` / `validateSegmentName` and a shared env-file assignment iterator; core's `RuntimeInspection` becomes a `Pick` of `RuntimeStateFile`; dsl's `ExecutionWalker` threads one `WalkCtx` object instead of an eight-argument clump and AST nodes use constructor parameter properties; web deduplicates the MCP tool scaffolds, action plugins, DSL contracts, perception LRU caches, and semantic-dom grouping passes.
74
- - Updated dependencies [7ed750c]
75
- - Updated dependencies [574841f]
76
- - @unotest/dsl@0.10.0
77
- - @unotest/protocol@0.10.0
78
47
 
79
48
  ## [0.9.2] - 2026-06-16
80
49
 
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.15.0",
3
+ "version": "0.17.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/protocol": "^0.15.0",
33
- "@unotest/dsl": "^0.15.0"
32
+ "@unotest/dsl": "^0.17.0",
33
+ "@unotest/protocol": "^0.17.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^22.10.0",