@qaick/runtime 0.1.0-alpha.2 → 0.1.0-alpha.4
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/runtime.js +7 -1
- package/package.json +13 -5
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createMigratedExecutor } from '@qaick/executor';
|
|
2
2
|
export const RUNTIME_VERSION = '0.1.0-alpha.2';
|
|
3
|
+
const EXECUTION_ID_RUNTIME_VALUE = '__qaick_execution_id';
|
|
3
4
|
export function createRuntime(configuration = {}) {
|
|
4
5
|
return new ComposedQaickRuntime(configuration.executor ?? createMigratedExecutor(configuration));
|
|
5
6
|
}
|
|
@@ -15,7 +16,12 @@ class ComposedQaickRuntime {
|
|
|
15
16
|
capabilities: ['execution', 'controls', 'events', 'results', 'retries', 'run-from-here', 'action-executors'],
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
|
-
execute(request) {
|
|
19
|
+
execute(request) {
|
|
20
|
+
return this.executor.execute({
|
|
21
|
+
...request,
|
|
22
|
+
runtimeValues: { ...(request.runtimeValues ?? {}), [EXECUTION_ID_RUNTIME_VALUE]: request.requestId },
|
|
23
|
+
});
|
|
24
|
+
}
|
|
19
25
|
cancel(requestId) { return this.executor.cancel(requestId); }
|
|
20
26
|
control(requestId, command) { return this.executor.control(requestId, command); }
|
|
21
27
|
controlState(requestId) { return this.executor.controlState(requestId); }
|
package/package.json
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qaick/runtime",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"description": "Host-neutral composition layer for QAick execution.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=20"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"tag": "alpha"
|
|
16
|
+
},
|
|
9
17
|
"repository": {
|
|
10
18
|
"type": "git",
|
|
11
19
|
"url": "git+https://github.com/vladmus/QAICK_Runtime.git"
|
|
@@ -28,7 +36,7 @@
|
|
|
28
36
|
"@qaick/executor": "^0.1.0-alpha.1"
|
|
29
37
|
},
|
|
30
38
|
"devDependencies": {
|
|
31
|
-
"@qaick/http-executor": "0.1.0-alpha.
|
|
39
|
+
"@qaick/http-executor": "0.1.0-alpha.4",
|
|
32
40
|
"typescript": "~6.0.2",
|
|
33
41
|
"vitest": "^5.0.0"
|
|
34
42
|
}
|