@twin.org/engine-models 0.0.2-next.7 → 0.0.2-next.9

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.
@@ -25,6 +25,21 @@ export interface IEngineCore<C extends IEngineCoreConfig = IEngineCoreConfig, S
25
25
  * @returns Nothing.
26
26
  */
27
27
  stop(): Promise<void>;
28
+ /**
29
+ * Is the engine started.
30
+ * @returns True if the engine is started.
31
+ */
32
+ isStarted(): boolean;
33
+ /**
34
+ * Is this the primary engine instance.
35
+ * @returns True if the engine is the primary instance.
36
+ */
37
+ isPrimary(): boolean;
38
+ /**
39
+ * Is this engine instance a clone.
40
+ * @returns True if the engine instance is a clone.
41
+ */
42
+ isClone(): boolean;
28
43
  /**
29
44
  * Log info.
30
45
  * @param message The message to log.
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/engine-models - Changelog
2
2
 
3
+ ## [0.0.2-next.9](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.2-next.8...engine-models-v0.0.2-next.9) (2025-08-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * add isPrimary and isClone methods ([a7c63e9](https://github.com/twinfoundation/engine/commit/a7c63e97f54c95b104cc81e66d3fa42c6607bdc1))
9
+
10
+ ## [0.0.2-next.8](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.2-next.7...engine-models-v0.0.2-next.8) (2025-08-22)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **engine-models:** Synchronize repo versions
16
+
3
17
  ## [0.0.2-next.7](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.2-next.6...engine-models-v0.0.2-next.7) (2025-08-22)
4
18
 
5
19
 
@@ -80,6 +80,48 @@ Nothing.
80
80
 
81
81
  ***
82
82
 
83
+ ### isStarted()
84
+
85
+ > **isStarted**(): `boolean`
86
+
87
+ Is the engine started.
88
+
89
+ #### Returns
90
+
91
+ `boolean`
92
+
93
+ True if the engine is started.
94
+
95
+ ***
96
+
97
+ ### isPrimary()
98
+
99
+ > **isPrimary**(): `boolean`
100
+
101
+ Is this the primary engine instance.
102
+
103
+ #### Returns
104
+
105
+ `boolean`
106
+
107
+ True if the engine is the primary instance.
108
+
109
+ ***
110
+
111
+ ### isClone()
112
+
113
+ > **isClone**(): `boolean`
114
+
115
+ Is this engine instance a clone.
116
+
117
+ #### Returns
118
+
119
+ `boolean`
120
+
121
+ True if the engine instance is a clone.
122
+
123
+ ***
124
+
83
125
  ### logInfo()
84
126
 
85
127
  > **logInfo**(`message`): `void`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-models",
3
- "version": "0.0.2-next.7",
3
+ "version": "0.0.2-next.9",
4
4
  "description": "Models which define the structure of the engine.",
5
5
  "repository": {
6
6
  "type": "git",