@hmharness/environments 0.23.14 → 0.23.16

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.
@@ -32,6 +32,7 @@ export declare class BrowserEnvironment implements Environment {
32
32
  private opts;
33
33
  id: string;
34
34
  version: string;
35
+ snapshotClass: "observational";
35
36
  private tabs;
36
37
  private history;
37
38
  constructor(opts?: BrowserEnvOptions);
@@ -61,6 +62,7 @@ export declare class DesktopEnvironment implements Environment {
61
62
  private opts;
62
63
  id: string;
63
64
  version: string;
65
+ snapshotClass: "observational";
64
66
  private windows;
65
67
  constructor(opts?: DesktopEnvOptions);
66
68
  capabilities(): Promise<Capability[]>;
@@ -83,6 +85,7 @@ export declare class Arc3Environment implements Environment {
83
85
  private opts;
84
86
  id: string;
85
87
  version: string;
88
+ snapshotClass: "observational";
86
89
  private session;
87
90
  constructor(opts?: Arc3EnvOptions);
88
91
  capabilities(): Promise<Capability[]>;
package/dist/adapters.js CHANGED
@@ -4,6 +4,7 @@ export class BrowserEnvironment {
4
4
  opts;
5
5
  id = 'browser';
6
6
  version = '1.0.0';
7
+ snapshotClass = 'observational'; // live page/tab state cannot be rewound via CDP
7
8
  tabs = [];
8
9
  history = [];
9
10
  constructor(opts = {}) {
@@ -90,6 +91,7 @@ export class DesktopEnvironment {
90
91
  opts;
91
92
  id = 'desktop';
92
93
  version = '1.0.0';
94
+ snapshotClass = 'observational'; // UI state is not restorable (divergence audit only)
93
95
  windows = [];
94
96
  constructor(opts = {}) {
95
97
  this.opts = opts;
@@ -161,6 +163,7 @@ export class Arc3Environment {
161
163
  opts;
162
164
  id = 'arc3';
163
165
  version = '1.0.0';
166
+ snapshotClass = 'observational'; // a live ARC game cannot be rewound
164
167
  session = null;
165
168
  constructor(opts = {}) {
166
169
  this.opts = opts;
@@ -15,6 +15,7 @@ export interface HarmonyOsEnvOptions {
15
15
  export declare class HarmonyOsEnvironment implements Environment {
16
16
  id: string;
17
17
  version: string;
18
+ snapshotClass: "observational";
18
19
  private readonly hdc;
19
20
  private readonly timeoutMs;
20
21
  private lastStates;
package/dist/harmonyos.js CHANGED
@@ -3,6 +3,7 @@ import { runShell } from "./terminal.js";
3
3
  export class HarmonyOsEnvironment {
4
4
  id = 'harmonyos';
5
5
  version = '1.0.0';
6
+ snapshotClass = 'observational'; // a real device cannot be rewound
6
7
  hdc;
7
8
  timeoutMs;
8
9
  lastStates = [];
@@ -10,6 +10,7 @@ export declare class TerminalEnvironment implements Environment {
10
10
  private opts;
11
11
  id: string;
12
12
  version: string;
13
+ snapshotClass: "deterministic";
13
14
  private cwd;
14
15
  private lastOutputs;
15
16
  private actionCounter;
package/dist/terminal.js CHANGED
@@ -19,6 +19,7 @@ export class TerminalEnvironment {
19
19
  opts;
20
20
  id = 'terminal';
21
21
  version = '1.0.0';
22
+ snapshotClass = 'deterministic'; // scratch workspace state fully replays
22
23
  cwd = '';
23
24
  lastOutputs = [];
24
25
  actionCounter = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/environments",
3
- "version": "0.23.14",
3
+ "version": "0.23.16",
4
4
  "description": "HMH Cognitive OS environment adapters: Terminal (native), HarmonyOS (via domain-harmony), Browser/Desktop (via host automation bridge), ARC3 (external adapter). Every adapter implements the @hmharness/cognitive Environment protocol and must pass the shared conformance test.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "node": ">=22"
27
27
  },
28
28
  "dependencies": {
29
- "@hmharness/kernel": "0.23.14",
30
- "@hmharness/cognitive": "0.23.14"
29
+ "@hmharness/kernel": "0.23.16",
30
+ "@hmharness/cognitive": "0.23.16"
31
31
  }
32
32
  }