@qaick/runtime 0.1.0-alpha.7 → 0.2.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/dist/index.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +7 -6
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './runtime.js';
|
|
2
2
|
export { InMemoryActionExecutor } from '@qaick/executor';
|
|
3
|
-
export type { ActionExecutionContext, ActionExecutionResult, ActionExecutor, ControlCommand, ExecutionControlState, ExecutorEvent, ExecutorRequest, ExecutorResult, ExecutorRun, } from '@qaick/executor';
|
|
3
|
+
export type { ActionExecutionContext, ActionExecutionResult, ActionExecutor, ControlCommand, ExecutionControlState, ExecutorEvent, ExecutorRequest, ExecutorResult, ExecutorRun, ActReplayTarget, ActReplayHandle, OperationReplayHandle, ExecutorStepResult, } from '@qaick/executor';
|
|
4
4
|
export { resolveDeclaredInputs } from '@qaick/executor';
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ActionExecutor, ControlCommand, ExecutionControlState, Executor, ExecutorConfiguration, ExecutorEvent, ExecutorRequest, ExecutorResult, ExecutorRun } from '@qaick/executor';
|
|
1
|
+
import type { ActionExecutor, ControlCommand, ExecutionControlState, Executor, ExecutorConfiguration, ExecutorEvent, ExecutorRequest, ExecutorResult, ExecutorRun, ActReplayTarget, ActReplayHandle, OperationReplayHandle } from '@qaick/executor';
|
|
2
2
|
export interface RuntimeConfiguration extends ExecutorConfiguration {
|
|
3
3
|
executor?: Executor;
|
|
4
4
|
}
|
|
5
|
-
export declare const RUNTIME_VERSION:
|
|
5
|
+
export declare const RUNTIME_VERSION: string;
|
|
6
6
|
export type RuntimeCapability = 'execution' | 'controls' | 'events' | 'results' | 'retries' | 'run-from-here' | 'action-executors';
|
|
7
7
|
export interface RuntimeInfo {
|
|
8
8
|
name: '@qaick/runtime';
|
|
@@ -18,9 +18,9 @@ export interface QaickRuntime {
|
|
|
18
18
|
controlState(requestId: string): ExecutionControlState | undefined;
|
|
19
19
|
events(requestId: string): AsyncIterable<ExecutorEvent>;
|
|
20
20
|
result(requestId: string): Promise<ExecutorResult>;
|
|
21
|
-
retryAction(requestId: string,
|
|
22
|
-
retryOperation(requestId: string,
|
|
23
|
-
runFromHere(requestId: string,
|
|
21
|
+
retryAction(requestId: string, target: ActReplayTarget): Promise<ActReplayHandle>;
|
|
22
|
+
retryOperation(requestId: string, target: ActReplayTarget): Promise<OperationReplayHandle>;
|
|
23
|
+
runFromHere(requestId: string, target: ActReplayTarget): Promise<ExecutorRun>;
|
|
24
24
|
registerActionExecutor(executor: ActionExecutor): void;
|
|
25
25
|
}
|
|
26
26
|
export declare function createRuntime(configuration?: RuntimeConfiguration): QaickRuntime;
|
package/dist/runtime.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { createExecutor } from '@qaick/executor';
|
|
2
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
3
|
+
export const RUNTIME_VERSION = packageJson.version;
|
|
3
4
|
export function createRuntime(configuration = {}) {
|
|
4
|
-
return new ComposedQaickRuntime(configuration.executor ??
|
|
5
|
+
return new ComposedQaickRuntime(configuration.executor ?? createExecutor(configuration));
|
|
5
6
|
}
|
|
6
7
|
class ComposedQaickRuntime {
|
|
7
8
|
executor;
|
|
@@ -23,8 +24,8 @@ class ComposedQaickRuntime {
|
|
|
23
24
|
controlState(requestId) { return this.executor.controlState(requestId); }
|
|
24
25
|
events(requestId) { return this.executor.events(requestId); }
|
|
25
26
|
result(requestId) { return this.executor.result(requestId); }
|
|
26
|
-
retryAction(requestId,
|
|
27
|
-
retryOperation(requestId,
|
|
28
|
-
runFromHere(requestId,
|
|
27
|
+
retryAction(requestId, target) { return this.executor.retryAction(requestId, target); }
|
|
28
|
+
retryOperation(requestId, target) { return this.executor.retryOperation(requestId, target); }
|
|
29
|
+
runFromHere(requestId, target) { return this.executor.runFromHere(requestId, target); }
|
|
29
30
|
registerActionExecutor(executor) { this.executor.registerActionExecutor(executor); }
|
|
30
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qaick/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Host-neutral composition layer for QAick execution.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public",
|
|
15
|
-
"tag": "
|
|
15
|
+
"tag": "latest"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@qaick/executor": "0.
|
|
36
|
+
"@qaick/executor": "0.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@qaick/http-executor": "0.
|
|
39
|
+
"@qaick/http-executor": "0.2.0",
|
|
40
40
|
"typescript": "~6.0.2",
|
|
41
41
|
"vitest": "^5.0.0"
|
|
42
42
|
}
|