@bluelibs/runner 4.8.3 → 4.8.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.
@@ -1,6 +1,6 @@
1
- import type { ITaskMiddlewareConfigured } from "defs";
2
1
  export declare const ASYNC_CONTEXT_TYPES_LOADED: true;
3
2
  import { symbolAsyncContext } from "./symbols";
3
+ import { ITaskMiddlewareConfigured } from "./taskMiddleware";
4
4
  import type { IValidationSchema, IOptionalDependency } from "./utilities";
5
5
  export interface IAsyncContextDefinition<T> {
6
6
  id: string;
@@ -17,8 +17,6 @@ export declare const symbolMiddleware: unique symbol;
17
17
  export declare const symbolTaskMiddleware: unique symbol;
18
18
  export declare const symbolResourceMiddleware: unique symbol;
19
19
  export declare const symbolMiddlewareConfigured: unique symbol;
20
- /** Marks a task that has been patched by a tunnel. Value is the local side mode. */
21
- export declare const symbolTunneledTask: unique symbol;
22
20
  /** Records which tunnel resource owns the task patching (exclusivity). */
23
21
  export declare const symbolTunneledBy: unique symbol;
24
22
  /** @internal Marks hook definitions (event listeners without middleware) */
@@ -1,7 +1,7 @@
1
1
  import { DependencyMapType, DependencyValuesType, IOptionalDependency, IValidationSchema, TaskMiddlewareAttachmentType } from "../defs";
2
2
  import { TagType } from "./tag";
3
3
  import { ITaskMeta } from "./meta";
4
- import { symbolFilePath, symbolTask, symbolPhantomTask } from "./symbols";
4
+ import { symbolFilePath, symbolTask, symbolPhantomTask, symbolTunneledBy } from "./symbols";
5
5
  import { EnsureInputSatisfiesContracts, EnsureOutputSatisfiesContracts, HasInputContracts, HasOutputContracts, InferInputOrViolationFromContracts } from "./contracts";
6
6
  export interface ITaskDefinition<TInput = undefined, TOutput extends Promise<any> = any, TDependencies extends DependencyMapType = {}, TMeta extends ITaskMeta = any, TTags extends TagType[] = TagType[], TMiddleware extends TaskMiddlewareAttachmentType[] = TaskMiddlewareAttachmentType[]> {
7
7
  id: string;
@@ -36,6 +36,10 @@ export interface ITask<TInput = any, TOutput extends Promise<any> = any, TDepend
36
36
  [symbolTask]: true;
37
37
  /** Present only for phantom tasks. */
38
38
  [symbolPhantomTask]?: true;
39
+ /** Indicates if the task is tunneled through a tunnel client. */
40
+ isTunneled?: boolean;
41
+ /** Records which tunnel resource owns the task (exclusivity). */
42
+ [symbolTunneledBy]?: string;
39
43
  id: string;
40
44
  dependencies: TDependencies | (() => TDependencies);
41
45
  computedDependencies?: DependencyValuesType<TDependencies>;