@bluelibs/runner 4.5.9 → 4.5.10
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/AI.md +48 -102
- package/README.md +43 -4
- package/dist/index.d.ts +14 -9
- package/package.json +1 -1
package/AI.md
CHANGED
|
@@ -184,9 +184,7 @@ import { globals, task } from "@bluelibs/runner";
|
|
|
184
184
|
|
|
185
185
|
const critical = task({
|
|
186
186
|
id: "app.tasks.critical",
|
|
187
|
-
tags: [
|
|
188
|
-
globals.tags.debug.with({ logTaskInput: true, logTaskOutput: true }),
|
|
189
|
-
],
|
|
187
|
+
tags: [globals.tags.debug.with({ logTaskInput: true, logTaskOutput: true })],
|
|
190
188
|
run: async () => "ok",
|
|
191
189
|
});
|
|
192
190
|
```
|
|
@@ -203,7 +201,7 @@ const logsExtension = resource({
|
|
|
203
201
|
logger.info("test", { example: 123 }); // "trace", "debug", "info", "warn", "error", "critical"
|
|
204
202
|
const sublogger = logger.with({
|
|
205
203
|
source: "app.logs",
|
|
206
|
-
|
|
204
|
+
additionalContext: {},
|
|
207
205
|
});
|
|
208
206
|
logger.onLog((log) => {
|
|
209
207
|
// ship or transform
|
|
@@ -238,7 +236,8 @@ export async function getRunner() {
|
|
|
238
236
|
// handler.ts
|
|
239
237
|
export const handler = async (event: any, context: any) => {
|
|
240
238
|
const rr: any = await getRunner();
|
|
241
|
-
const method =
|
|
239
|
+
const method =
|
|
240
|
+
event?.requestContext?.http?.method ?? event?.httpMethod ?? "GET";
|
|
242
241
|
const path = event?.rawPath || event?.path || "/";
|
|
243
242
|
const rawBody = event?.body
|
|
244
243
|
? event.isBase64Encoded
|
|
@@ -247,9 +246,12 @@ export const handler = async (event: any, context: any) => {
|
|
|
247
246
|
: undefined;
|
|
248
247
|
const body = rawBody ? JSON.parse(rawBody) : undefined;
|
|
249
248
|
|
|
250
|
-
return RequestCtx.provide(
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
return RequestCtx.provide(
|
|
250
|
+
{ requestId: context?.awsRequestId ?? "local", method, path },
|
|
251
|
+
async () => {
|
|
252
|
+
// route and call rr.runTask(...)
|
|
253
|
+
},
|
|
254
|
+
);
|
|
253
255
|
};
|
|
254
256
|
```
|
|
255
257
|
|
|
@@ -396,6 +398,21 @@ const { dispose } = await run(app, {
|
|
|
396
398
|
});
|
|
397
399
|
```
|
|
398
400
|
|
|
401
|
+
## Type Helpers
|
|
402
|
+
|
|
403
|
+
Extract generics from tasks, resources, and events without re-declaring their shapes and avoid use of 'any'.
|
|
404
|
+
|
|
405
|
+
```ts
|
|
406
|
+
import { task, resource, event } from "@bluelibs/runner";
|
|
407
|
+
import type {
|
|
408
|
+
ExtractTaskInput, // ExtractTaskInput(typeof myTask)
|
|
409
|
+
ExtractTaskOutput,
|
|
410
|
+
ExtractResourceConfig,
|
|
411
|
+
ExtractResourceValue,
|
|
412
|
+
ExtractEventPayload,
|
|
413
|
+
} from "@bluelibs/runner";
|
|
414
|
+
```
|
|
415
|
+
|
|
399
416
|
## Run Options (high‑level)
|
|
400
417
|
|
|
401
418
|
- debug: "normal" | "verbose" | DebugConfig
|
|
@@ -521,115 +538,40 @@ Coverage tip: the script name is `npm run coverage`.
|
|
|
521
538
|
|
|
522
539
|
## Metadata & Tags
|
|
523
540
|
|
|
541
|
+
Tags and meta can be applied to all elements.
|
|
542
|
+
|
|
524
543
|
```ts
|
|
525
544
|
import { tag, globals, task, resource } from "@bluelibs/runner";
|
|
526
545
|
|
|
527
|
-
// Simple tags and debug/system globals
|
|
528
|
-
const perf = tag<{ warnAboveMs: number }>({ id: "perf" });
|
|
529
546
|
const contractTag = tag<void, void, { result: string }>({ id: "contract" });
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
id: "app.tasks.pay",
|
|
533
|
-
tags: [perf.with({ warnAboveMs: 1000 })],
|
|
534
|
-
meta: {
|
|
535
|
-
title: "Process Payment",
|
|
536
|
-
description: "Detailed",
|
|
537
|
-
},
|
|
538
|
-
run: async () => {
|
|
539
|
-
/* ... */
|
|
540
|
-
},
|
|
541
|
-
});
|
|
542
|
-
|
|
543
|
-
const internalSvc = resource({
|
|
544
|
-
id: "app.resources.internal",
|
|
545
|
-
register: [perf],
|
|
546
|
-
tags: [globals.tags.system],
|
|
547
|
-
init: async () => ({}),
|
|
548
|
-
});
|
|
549
|
-
```
|
|
550
|
-
|
|
551
|
-
### Tag Contracts (type‑enforced returns)
|
|
552
|
-
|
|
553
|
-
```ts
|
|
554
|
-
// Contract enforces the awaited return type (Config, Input, Output)
|
|
555
|
-
const userContract = tag<void, void, { name: string }>({ id: "contract.user" });
|
|
556
|
-
|
|
557
|
-
const getProfile = task({
|
|
558
|
-
id: "app.tasks.getProfile",
|
|
559
|
-
tags: [userContract],
|
|
560
|
-
run: async () => ({ name: "Ada" }), // must contain { name: string }
|
|
547
|
+
const httpRouteTag = tag<{ method: "GET" | "POST"; path: string }>({
|
|
548
|
+
id: "httpRoute",
|
|
561
549
|
});
|
|
562
550
|
|
|
563
|
-
const
|
|
564
|
-
id: "app.
|
|
565
|
-
tags: [
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
### Tag Extraction (behavior flags)
|
|
571
|
-
|
|
572
|
-
```ts
|
|
573
|
-
const perf = tag<{ warnAboveMs: number }>({ id: "perf" });
|
|
574
|
-
|
|
575
|
-
const perfMiddleware = taskMiddleware({
|
|
576
|
-
id: "app.middleware.perf",
|
|
577
|
-
run: async ({ task, next }) => {
|
|
578
|
-
const cfg = perf.extract(task.definition);
|
|
579
|
-
// use perf.exists(task.definition) to check for existence
|
|
580
|
-
if (!cfg) return next(task.input);
|
|
581
|
-
// performance hooks here ...
|
|
551
|
+
const task = task({
|
|
552
|
+
id: "app.tasks.myTask",
|
|
553
|
+
tags: [contractTag, httpRouteTag.with({ method: "POST", path: "/do" })],
|
|
554
|
+
run: async () => ({ result: "ok" }), // must return { result: string }
|
|
555
|
+
meta: {
|
|
556
|
+
title: "My Task",
|
|
557
|
+
description: "Does something important", // multi-line description, markdown
|
|
582
558
|
},
|
|
583
559
|
});
|
|
584
560
|
```
|
|
585
561
|
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
Use a hook on `globals.events.ready` to discover and intercept tasks by tag:
|
|
562
|
+
Usage:
|
|
589
563
|
|
|
590
564
|
```ts
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
const apiTag = tag<void>({ id: "api" });
|
|
594
|
-
|
|
595
|
-
const addTracingToApiTasks = hook({
|
|
596
|
-
id: "app.hooks.traceApis",
|
|
565
|
+
const onReady = hook({
|
|
566
|
+
id: "app.hooks.onReady",
|
|
597
567
|
on: globals.events.ready,
|
|
598
568
|
dependencies: { store: globals.resources.store },
|
|
599
569
|
run: async (_, { store }) => {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
taskDef.intercept(async (next, input) => {
|
|
603
|
-
// ...
|
|
604
|
-
});
|
|
605
|
-
});
|
|
606
|
-
// Apply same concept to routing like fastify, express routes based on tag config to your fastify instance.
|
|
607
|
-
},
|
|
608
|
-
});
|
|
609
|
-
```
|
|
610
|
-
|
|
611
|
-
### Route registration via tags (ready hook)
|
|
612
|
-
|
|
613
|
-
```ts
|
|
614
|
-
import { hook, globals } from "@bluelibs/runner";
|
|
615
|
-
import { httpTag } from "./http.tag"; // your structured tag (method, path, schemas, etc.)
|
|
616
|
-
import { expressServer } from "./expressServer"; // resource that returns { app, port }
|
|
617
|
-
|
|
618
|
-
const registerRoutes = hook({
|
|
619
|
-
id: "app.hooks.registerRoutes",
|
|
620
|
-
on: globals.events.ready,
|
|
621
|
-
dependencies: { store: globals.resources.store, server: expressServer },
|
|
622
|
-
run: async (_, { store, server }) => {
|
|
623
|
-
const tasks = store.getTasksWithTag(httpTag);
|
|
570
|
+
// Same concept for resources
|
|
571
|
+
const tasks = store.getTasksWithTag(httpRouteTag); // uses httpRouteTag.exists(component);
|
|
624
572
|
tasks.forEach((t) => {
|
|
625
|
-
const cfg =
|
|
626
|
-
|
|
627
|
-
const { method, path } = cfg.config;
|
|
628
|
-
if (!method || !path) return;
|
|
629
|
-
(server.app as any)[method.toLowerCase()](path, async (req, res) => {
|
|
630
|
-
const result = await t({ ...req.body, ...req.query, ...req.params });
|
|
631
|
-
res.json(result);
|
|
632
|
-
});
|
|
573
|
+
const cfg = httpRouteTag.extract(tasks); // { method, path }
|
|
574
|
+
// you can even do t
|
|
633
575
|
});
|
|
634
576
|
},
|
|
635
577
|
});
|
|
@@ -704,7 +646,7 @@ interface IValidationSchema<T> {
|
|
|
704
646
|
}
|
|
705
647
|
```
|
|
706
648
|
|
|
707
|
-
Works out of the box with Zod (`z.object(...).parse`), and can be adapted for Yup/Joi with small wrappers.
|
|
649
|
+
Works out of the box with Zod (`z.object(...).parse`), and can be adapted for Yup/Joi with small wrappers. As it only needs a parse() method.
|
|
708
650
|
|
|
709
651
|
```ts
|
|
710
652
|
import { z } from "zod";
|
|
@@ -728,6 +670,10 @@ event({
|
|
|
728
670
|
payloadSchema, // Runs on event emission
|
|
729
671
|
});
|
|
730
672
|
|
|
673
|
+
tag({
|
|
674
|
+
configSchema, // Tag config validation (runs on .with())
|
|
675
|
+
});
|
|
676
|
+
|
|
731
677
|
// Middleware config validation (runs on .with())
|
|
732
678
|
middleware({
|
|
733
679
|
// ...
|
package/README.md
CHANGED
|
@@ -958,6 +958,43 @@ const handleRequest = resource({
|
|
|
958
958
|
});
|
|
959
959
|
```
|
|
960
960
|
|
|
961
|
+
## Type Helpers
|
|
962
|
+
|
|
963
|
+
These utility types help you extract the generics from tasks, resources, and events without re-declaring them. Import them from `@bluelibs/runner`.
|
|
964
|
+
|
|
965
|
+
```ts
|
|
966
|
+
import { task, resource, event } from "@bluelibs/runner";
|
|
967
|
+
import type {
|
|
968
|
+
ExtractTaskInput,
|
|
969
|
+
ExtractTaskOutput,
|
|
970
|
+
ExtractResourceConfig,
|
|
971
|
+
ExtractResourceValue,
|
|
972
|
+
ExtractEventPayload,
|
|
973
|
+
} from "@bluelibs/runner";
|
|
974
|
+
|
|
975
|
+
// Task example
|
|
976
|
+
const add = task({
|
|
977
|
+
id: "calc.add",
|
|
978
|
+
run: async (input: { a: number; b: number }) => input.a + input.b,
|
|
979
|
+
});
|
|
980
|
+
|
|
981
|
+
type AddInput = ExtractTaskInput<typeof add>; // { a: number; b: number }
|
|
982
|
+
type AddOutput = ExtractTaskOutput<typeof add>; // number
|
|
983
|
+
|
|
984
|
+
// Resource example
|
|
985
|
+
const config = resource({
|
|
986
|
+
id: "app.config",
|
|
987
|
+
init: async (cfg: { baseUrl: string }) => ({ baseUrl: cfg.baseUrl }),
|
|
988
|
+
});
|
|
989
|
+
|
|
990
|
+
type ConfigInput = ExtractResourceConfig<typeof config>; // { baseUrl: string }
|
|
991
|
+
type ConfigValue = ExtractResourceValue<typeof config>; // { baseUrl: string }
|
|
992
|
+
|
|
993
|
+
// Event example
|
|
994
|
+
const userRegistered = event<{ userId: string; email: string }>({ id: "app.events.userRegistered" });
|
|
995
|
+
type UserRegisteredPayload = ExtractEventPayload<typeof userRegistered>; // { userId: string; email: string }
|
|
996
|
+
```
|
|
997
|
+
|
|
961
998
|
### Context with Middleware
|
|
962
999
|
|
|
963
1000
|
Context shines when combined with middleware for request-scoped data:
|
|
@@ -1328,7 +1365,7 @@ BlueLibs Runner achieves high performance while providing enterprise features:
|
|
|
1328
1365
|
| Event System | ~0.013ms | Loose coupling, observability |
|
|
1329
1366
|
| Middleware Chain | ~0.0003ms/middleware | Cross-cutting concerns |
|
|
1330
1367
|
| Resource Management | One-time init | Singleton pattern, lifecycle |
|
|
1331
|
-
| Built-in Caching |
|
|
1368
|
+
| Built-in Caching | Variable speedup | Automatic optimization |
|
|
1332
1369
|
|
|
1333
1370
|
**Bottom line**: The framework adds minimal overhead (~0.005ms per task) while providing significant architectural benefits.
|
|
1334
1371
|
|
|
@@ -1552,10 +1589,12 @@ const requestHandler = task({
|
|
|
1552
1589
|
const request = RequestContext.use();
|
|
1553
1590
|
|
|
1554
1591
|
// Create a contextual logger with bound metadata with source and context
|
|
1555
|
-
const requestLogger = logger.with(
|
|
1592
|
+
const requestLogger = logger.with({
|
|
1556
1593
|
source: requestHandler.id,
|
|
1557
|
-
|
|
1558
|
-
|
|
1594
|
+
additionalContext: {
|
|
1595
|
+
requestId: request.requestId,
|
|
1596
|
+
userId: request.userId,
|
|
1597
|
+
},
|
|
1559
1598
|
});
|
|
1560
1599
|
|
|
1561
1600
|
// All logs from this logger will include the bound context
|
package/dist/index.d.ts
CHANGED
|
@@ -395,7 +395,7 @@ interface IHookDefinition<TDependencies extends DependencyMapType = {}, TOn exte
|
|
|
395
395
|
/** Listener execution order. Lower numbers run first. */
|
|
396
396
|
order?: number;
|
|
397
397
|
meta?: TMeta;
|
|
398
|
-
run: (event: IEventEmission<TOn extends "*" ? any : TOn extends readonly IEventDefinition<any>[] ? CommonPayload<TOn> :
|
|
398
|
+
run: (event: IEventEmission<TOn extends "*" ? any : TOn extends readonly IEventDefinition<any>[] ? CommonPayload<TOn> : ExtractEventPayload<TOn>>, dependencies: DependencyValuesType<TDependencies>) => Promise<any>;
|
|
399
399
|
tags?: TagType[];
|
|
400
400
|
}
|
|
401
401
|
interface IHook<TDependencies extends DependencyMapType = {}, TOn extends OnType = any, TMeta extends ITaskMeta = any> extends IHookDefinition<TDependencies, TOn, TMeta> {
|
|
@@ -529,12 +529,13 @@ interface IOptionalDependency<T> {
|
|
|
529
529
|
}
|
|
530
530
|
type ExtractTaskInput<T> = T extends ITask<infer I, any, infer D> ? I : never;
|
|
531
531
|
type ExtractTaskOutput<T> = T extends ITask<any, infer O, infer D> ? O : never;
|
|
532
|
+
type ExtractResourceConfig<T> = T extends IResource<infer C, any, any> ? C : never;
|
|
532
533
|
type ExtractResourceValue<T> = T extends IResource<any, infer V, infer D> ? V extends Promise<infer U> ? U : V : never;
|
|
533
|
-
type
|
|
534
|
+
type ExtractEventPayload<T> = T extends IEventDefinition<infer P> ? P : T extends IEvent<infer P> ? P : never;
|
|
534
535
|
type UnionToIntersection<U> = (U extends any ? (x: U) => any : never) extends (x: infer I) => any ? I : never;
|
|
535
536
|
type CommonPayload<T extends readonly IEventDefinition<any>[] | IEventDefinition<any>> = T extends readonly IEventDefinition<any>[] ? {
|
|
536
|
-
[K in keyof
|
|
537
|
-
} :
|
|
537
|
+
[K in keyof ExtractEventPayload<T[number]>]: UnionToIntersection<ExtractEventPayload<T[number]> extends any ? ExtractEventPayload<T[number]>[K] : never>;
|
|
538
|
+
} : ExtractEventPayload<T>;
|
|
538
539
|
/**
|
|
539
540
|
* Task dependencies transform into callable functions: call with the task input
|
|
540
541
|
* and you receive the task output.
|
|
@@ -555,7 +556,7 @@ type EventDependency<P> = P extends void ? (() => Promise<void>) & ((input?: Rec
|
|
|
555
556
|
* - Resource -> resolved value
|
|
556
557
|
* - Event -> emit function
|
|
557
558
|
*/
|
|
558
|
-
type DependencyValueType<T> = T extends ITask<any, any, any> ? TaskDependency<ExtractTaskInput<T>, ExtractTaskOutput<T>> : T extends IResource<any, any> ? ResourceDependency<ExtractResourceValue<T>> : T extends IEventDefinition<any> ? EventDependency<
|
|
559
|
+
type DependencyValueType<T> = T extends ITask<any, any, any> ? TaskDependency<ExtractTaskInput<T>, ExtractTaskOutput<T>> : T extends IResource<any, any> ? ResourceDependency<ExtractResourceValue<T>> : T extends IEventDefinition<any> ? EventDependency<ExtractEventPayload<T>> : T extends IOptionalDependency<infer U> ? DependencyValueType<U> | undefined : never;
|
|
559
560
|
type DependencyValuesType<T extends DependencyMapType> = {
|
|
560
561
|
[K in keyof T]: DependencyValueType<T[K]>;
|
|
561
562
|
};
|
|
@@ -564,7 +565,7 @@ type TaskDependencyWithIntercept<TInput, TOutput> = TaskDependency<TInput, TOutp
|
|
|
564
565
|
intercept: (middleware: TaskLocalInterceptor<TInput, TOutput>) => void;
|
|
565
566
|
};
|
|
566
567
|
/** Resource-context dependency typing where tasks expose intercept() */
|
|
567
|
-
type ResourceDependencyValueType<T> = T extends ITask<any, any, any> ? TaskDependencyWithIntercept<ExtractTaskInput<T>, ExtractTaskOutput<T>> : T extends IResource<any, any> ? ResourceDependency<ExtractResourceValue<T>> : T extends IEventDefinition<any> ? EventDependency<
|
|
568
|
+
type ResourceDependencyValueType<T> = T extends ITask<any, any, any> ? TaskDependencyWithIntercept<ExtractTaskInput<T>, ExtractTaskOutput<T>> : T extends IResource<any, any> ? ResourceDependency<ExtractResourceValue<T>> : T extends IEventDefinition<any> ? EventDependency<ExtractEventPayload<T>> : T extends IOptionalDependency<infer U> ? ResourceDependencyValueType<U> | undefined : never;
|
|
568
569
|
type ResourceDependencyValuesType<T extends DependencyMapType> = {
|
|
569
570
|
[K in keyof T]: ResourceDependencyValueType<T[K]>;
|
|
570
571
|
};
|
|
@@ -870,7 +871,11 @@ type defs_DependencyValueType<T> = DependencyValueType<T>;
|
|
|
870
871
|
type defs_DependencyValuesType<T extends DependencyMapType> = DependencyValuesType<T>;
|
|
871
872
|
type defs_EventHandlerType<T = any> = EventHandlerType<T>;
|
|
872
873
|
type defs_EventStoreElementType = EventStoreElementType;
|
|
873
|
-
type
|
|
874
|
+
type defs_ExtractEventPayload<T> = ExtractEventPayload<T>;
|
|
875
|
+
type defs_ExtractResourceConfig<T> = ExtractResourceConfig<T>;
|
|
876
|
+
type defs_ExtractResourceValue<T> = ExtractResourceValue<T>;
|
|
877
|
+
type defs_ExtractTaskInput<T> = ExtractTaskInput<T>;
|
|
878
|
+
type defs_ExtractTaskOutput<T> = ExtractTaskOutput<T>;
|
|
874
879
|
type defs_HookStoreElementType<D extends DependencyMapType = any, TOn extends "*" | IEventDefinition = any> = HookStoreElementType<D, TOn>;
|
|
875
880
|
type defs_ICacheInstance = ICacheInstance;
|
|
876
881
|
type defs_IEvent<TPayload = any> = IEvent<TPayload>;
|
|
@@ -938,7 +943,7 @@ declare const defs_symbolTagConfigured: typeof symbolTagConfigured;
|
|
|
938
943
|
declare const defs_symbolTask: typeof symbolTask;
|
|
939
944
|
declare const defs_symbolTaskMiddleware: typeof symbolTaskMiddleware;
|
|
940
945
|
declare namespace defs {
|
|
941
|
-
export { type defs_CommonPayload as CommonPayload, type defs_DependencyMapType as DependencyMapType, type defs_DependencyValueType as DependencyValueType, type defs_DependencyValuesType as DependencyValuesType, type defs_EventHandlerType as EventHandlerType, type defs_EventStoreElementType as EventStoreElementType, type
|
|
946
|
+
export { type defs_CommonPayload as CommonPayload, type defs_DependencyMapType as DependencyMapType, type defs_DependencyValueType as DependencyValueType, type defs_DependencyValuesType as DependencyValuesType, type defs_EventHandlerType as EventHandlerType, type defs_EventStoreElementType as EventStoreElementType, type defs_ExtractEventPayload as ExtractEventPayload, type defs_ExtractResourceConfig as ExtractResourceConfig, type defs_ExtractResourceValue as ExtractResourceValue, type defs_ExtractTaskInput as ExtractTaskInput, type defs_ExtractTaskOutput as ExtractTaskOutput, type defs_HookStoreElementType as HookStoreElementType, type defs_ICacheInstance as ICacheInstance, type defs_IEvent as IEvent, type defs_IEventDefinition as IEventDefinition, type defs_IEventEmission as IEventEmission, type defs_IEventMeta as IEventMeta, type defs_IHook as IHook, type defs_IHookDefinition as IHookDefinition, type defs_IMeta as IMeta, type defs_IMiddlewareMeta as IMiddlewareMeta, type defs_IOptionalDependency as IOptionalDependency, type defs_IResource as IResource, type defs_IResourceDefinition as IResourceDefinition, type defs_IResourceMeta as IResourceMeta, type defs_IResourceMiddleware as IResourceMiddleware, type defs_IResourceMiddlewareConfigured as IResourceMiddlewareConfigured, type defs_IResourceMiddlewareDefinition as IResourceMiddlewareDefinition, type defs_IResourceMiddlewareExecutionInput as IResourceMiddlewareExecutionInput, type defs_IResourceWithConfig as IResourceWithConfig, type defs_ITag as ITag, type defs_ITagConfigured as ITagConfigured, type defs_ITagDefinition as ITagDefinition, type defs_ITagMeta as ITagMeta, type defs_ITaggable as ITaggable, type defs_ITask as ITask, type defs_ITaskDefinition as ITaskDefinition, type defs_ITaskMeta as ITaskMeta, type defs_ITaskMiddleware as ITaskMiddleware, type defs_ITaskMiddlewareConfigured as ITaskMiddlewareConfigured, type defs_ITaskMiddlewareDefinition as ITaskMiddlewareDefinition, type defs_ITaskMiddlewareExecutionInput as ITaskMiddlewareExecutionInput, type defs_IValidationSchema as IValidationSchema, type defs_OverridableElements as OverridableElements, type defs_RegisterableItems as RegisterableItems, type defs_RequiredKeys as RequiredKeys, type defs_ResourceDependencyValueType as ResourceDependencyValueType, type defs_ResourceDependencyValuesType as ResourceDependencyValuesType, type defs_ResourceMiddlewareAttachmentType as ResourceMiddlewareAttachmentType, type defs_ResourceMiddlewareStoreElementType as ResourceMiddlewareStoreElementType, type defs_ResourceStoreElementType as ResourceStoreElementType, type defs_RunOptions as RunOptions, type defs_TagType as TagType, type defs_TaskDependencyWithIntercept as TaskDependencyWithIntercept, type defs_TaskLocalInterceptor as TaskLocalInterceptor, type defs_TaskMiddlewareAttachmentType as TaskMiddlewareAttachmentType, type defs_TaskMiddlewareStoreElementType as TaskMiddlewareStoreElementType, type defs_TaskStoreElementType as TaskStoreElementType, type defs_UnionToIntersection as UnionToIntersection, defs_isOneOf as isOneOf, defs_onAnyOf as onAnyOf, defs_symbolDispose as symbolDispose, defs_symbolEvent as symbolEvent, defs_symbolFilePath as symbolFilePath, defs_symbolHook as symbolHook, defs_symbolIndexResource as symbolIndexResource, defs_symbolMiddleware as symbolMiddleware, defs_symbolMiddlewareConfigured as symbolMiddlewareConfigured, defs_symbolOptionalDependency as symbolOptionalDependency, defs_symbolResource as symbolResource, defs_symbolResourceMiddleware as symbolResourceMiddleware, defs_symbolResourceWithConfig as symbolResourceWithConfig, defs_symbolStore as symbolStore, defs_symbolTag as symbolTag, defs_symbolTagConfigured as symbolTagConfigured, defs_symbolTask as symbolTask, defs_symbolTaskMiddleware as symbolTaskMiddleware };
|
|
942
947
|
}
|
|
943
948
|
|
|
944
949
|
/**
|
|
@@ -1756,4 +1761,4 @@ declare const globals: {
|
|
|
1756
1761
|
};
|
|
1757
1762
|
};
|
|
1758
1763
|
|
|
1759
|
-
export { type CommonPayload, type Context, type DebugConfig, type DebugFriendlyConfig, type DependencyMapType, DependencyProcessor, type DependencyValueType, type DependencyValuesType, errors as Errors, type EventEmissionInterceptor, type EventHandlerType, EventManager, type EventStoreElementType, type
|
|
1764
|
+
export { type CommonPayload, type Context, type DebugConfig, type DebugFriendlyConfig, type DependencyMapType, DependencyProcessor, type DependencyValueType, type DependencyValuesType, errors as Errors, type EventEmissionInterceptor, type EventHandlerType, EventManager, type EventStoreElementType, type ExtractEventPayload, type ExtractResourceConfig, type ExtractResourceValue, type ExtractTaskInput, type ExtractTaskOutput, type HookExecutionInterceptor, type HookStoreElementType, type ICacheInstance, type IEvent, type IEventDefinition, type IEventEmission, type IEventHandlerOptions, type IEventMeta, type IHook, type IHookDefinition, type ILog, type ILogInfo, type IMeta, type IMiddlewareMeta, type IOptionalDependency, type IResource, type IResourceDefinition, type IResourceMeta, type IResourceMiddleware, type IResourceMiddlewareConfigured, type IResourceMiddlewareDefinition, type IResourceMiddlewareExecutionInput, type IResourceWithConfig, type ITag, type ITagConfigured, type ITagDefinition, type ITagMeta, type ITaggable, type ITask, type ITaskDefinition, type ITaskMeta, type ITaskMiddleware, type ITaskMiddlewareConfigured, type ITaskMiddlewareDefinition, type ITaskMiddlewareExecutionInput, type IValidationSchema, type LogLevels, Logger, MiddlewareManager, type OnUnhandledError, type OnUnhandledErrorInfo, type OverridableElements, type PrintStrategy, Queue, type RegisterableItems, type RequiredKeys, type ResourceDependencyValueType, type ResourceDependencyValuesType, ResourceInitializer, type ResourceMiddlewareAttachmentType, type ResourceMiddlewareInterceptor, type ResourceMiddlewareStoreElementType, type ResourceStoreElementType, type RunOptions, RunResult, Semaphore, Store, type TagType, type TaskDependencyWithIntercept, type TaskLocalInterceptor, type TaskMiddlewareAttachmentType, type TaskMiddlewareInterceptor, type TaskMiddlewareStoreElementType, TaskRunner, type TaskStoreElementType, type UnhandledErrorKind, type UnionToIntersection, allFalse, bindProcessErrorHandler, createContext, createDefaultUnhandledError, createTestResource, defs as definitions, defineEvent as event, getConfig, globals, defineHook as hook, isOneOf, levelNormal, levelVerbose, onAnyOf, defineOverride as override, defineResource as resource, defineResourceMiddleware as resourceMiddleware, run, safeReportUnhandledError, symbolDispose, symbolEvent, symbolFilePath, symbolHook, symbolIndexResource, symbolMiddleware, symbolMiddlewareConfigured, symbolOptionalDependency, symbolResource, symbolResourceMiddleware, symbolResourceWithConfig, symbolStore, symbolTag, symbolTagConfigured, symbolTask, symbolTaskMiddleware, defineTag as tag, defineTask as task, defineTaskMiddleware as taskMiddleware };
|