@power-plant/core 0.0.12 → 0.0.15
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/README.md +1 -1
- package/dist/{config-DMItzxbk.d.cts → config-D3-0eTEI.d.cts} +20 -14
- package/dist/{config-DMItzxbk.d.cts.map → config-D3-0eTEI.d.cts.map} +1 -1
- package/dist/{config-DMItzxbk.d.mts → config-D3-0eTEI.d.mts} +20 -14
- package/dist/{config-DMItzxbk.d.mts.map → config-D3-0eTEI.d.mts.map} +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/context-B4h787Dd.d.mts +185 -0
- package/dist/context-B4h787Dd.d.mts.map +1 -0
- package/dist/context-DYvyeLgC.d.cts +185 -0
- package/dist/context-DYvyeLgC.d.cts.map +1 -0
- package/dist/context.d.cts +1 -1
- package/dist/context.d.mts +1 -1
- package/dist/define.d.cts +1 -1
- package/dist/define.d.mts +1 -1
- package/dist/index.d.cts +4 -25
- package/dist/index.d.mts +4 -25
- package/dist/{type-checks-E_UZ_-fD.d.cts → type-checks-DBObymgE.d.cts} +3 -3
- package/dist/{type-checks-E_UZ_-fD.d.cts.map → type-checks-DBObymgE.d.cts.map} +1 -1
- package/dist/{type-checks-SBt7tgFq.d.mts → type-checks-DX_sqZhk.d.mts} +3 -3
- package/dist/type-checks-DX_sqZhk.d.mts.map +1 -0
- package/dist/type-checks.d.cts +1 -1
- package/dist/type-checks.d.mts +1 -1
- package/dist/types/__internal.d.cts +2 -2
- package/dist/types/__internal.d.mts +2 -2
- package/package.json +4 -4
- package/dist/context-BxqCoy9z.d.cts +0 -128
- package/dist/context-BxqCoy9z.d.cts.map +0 -1
- package/dist/context-COQtFcI5.d.mts +0 -128
- package/dist/context-COQtFcI5.d.mts.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/type-checks-SBt7tgFq.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ The Power Plant monorepo is a collection of packages that are designed to work t
|
|
|
33
33
|
|
|
34
34
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
35
35
|
|
|
36
|
-
[](https://docs.stormsoftware.com/projects/power-plant) [](http://commitizen.github.io/cz-cli/)  
|
|
37
37
|
|
|
38
38
|
<!-- prettier-ignore-start -->
|
|
39
39
|
<!-- markdownlint-disable -->
|
|
@@ -243,17 +243,13 @@ interface Input<TSpec, TOptions extends object> {
|
|
|
243
243
|
}
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region src/types/execution.d.ts
|
|
246
|
-
interface
|
|
246
|
+
interface ExecutionDocumentChunk<TSpec, TOptions extends object> {
|
|
247
247
|
/**
|
|
248
|
-
* The
|
|
249
|
-
*/
|
|
250
|
-
language?: string;
|
|
251
|
-
/**
|
|
252
|
-
* The content of the source code.
|
|
248
|
+
* The content of the chunk.
|
|
253
249
|
*/
|
|
254
250
|
content: string;
|
|
255
251
|
/**
|
|
256
|
-
* The metadata of the
|
|
252
|
+
* The metadata of the chunk.
|
|
257
253
|
*/
|
|
258
254
|
meta: Meta<TSpec, TOptions>;
|
|
259
255
|
}
|
|
@@ -263,9 +259,13 @@ interface ExecutionDocument<TSpec, TOptions extends object> {
|
|
|
263
259
|
*/
|
|
264
260
|
path: string;
|
|
265
261
|
/**
|
|
266
|
-
* The
|
|
262
|
+
* The language of the document.
|
|
267
263
|
*/
|
|
268
|
-
|
|
264
|
+
language?: string;
|
|
265
|
+
/**
|
|
266
|
+
* The chunks of the document.
|
|
267
|
+
*/
|
|
268
|
+
chunks: ExecutionDocumentChunk<TSpec, TOptions>[];
|
|
269
269
|
/**
|
|
270
270
|
* The metadata of the document.
|
|
271
271
|
*/
|
|
@@ -324,11 +324,11 @@ type ExecutionResult<TSpec, TOptions extends object, TReturns = void> = Generate
|
|
|
324
324
|
*/
|
|
325
325
|
returns?: TReturns;
|
|
326
326
|
};
|
|
327
|
-
type ExtractedExecutionSource<TSpec, TOptions extends object> = Omit<
|
|
327
|
+
type ExtractedExecutionSource<TSpec, TOptions extends object> = Omit<ExecutionDocumentChunk<TSpec, TOptions>, "meta"> & {
|
|
328
328
|
/**
|
|
329
329
|
* The extracted metadata of the execution.
|
|
330
330
|
*/
|
|
331
|
-
meta: InferExtractedMeta<
|
|
331
|
+
meta: InferExtractedMeta<ExecutionDocumentChunk<TSpec, TOptions>["meta"]>;
|
|
332
332
|
};
|
|
333
333
|
type ExtractedExecutionDocument<TSpec, TOptions extends object> = Omit<ExecutionDocument<TSpec, TOptions>, "source" | "meta"> & {
|
|
334
334
|
/**
|
|
@@ -362,12 +362,18 @@ type GeneratedDocument<TSpec, TOptions extends object> = Partial<Omit<ExecutionD
|
|
|
362
362
|
/**
|
|
363
363
|
* The sources of the document.
|
|
364
364
|
*/
|
|
365
|
-
|
|
365
|
+
chunks?: DeepPartial<ExecutionDocumentChunk<TSpec, TOptions>>[];
|
|
366
366
|
};
|
|
367
367
|
type GeneratorFunction<TSpec, TOptions extends object> = (spec: TSpec, options: TOptions) => MaybePromise<Record<string, GeneratedDocument<TSpec, TOptions>>>;
|
|
368
368
|
type GeneratorFunctionResult<TSpec, TOptions extends object> = Awaited<ReturnType<GeneratorFunction<TSpec, TOptions>>>;
|
|
369
369
|
interface GeneratorResult<TSpec, TOptions extends object, TReturns = void> {
|
|
370
|
+
/**
|
|
371
|
+
* The specification used to generate the documents.
|
|
372
|
+
*/
|
|
370
373
|
spec: TSpec;
|
|
374
|
+
/**
|
|
375
|
+
* The options used to generate the documents.
|
|
376
|
+
*/
|
|
371
377
|
options: TOptions;
|
|
372
378
|
/**
|
|
373
379
|
* The documents generated by the generator.
|
|
@@ -561,5 +567,5 @@ type UserConfigFnPromise<TSpec = any, TOptions extends object = any, TReturns =
|
|
|
561
567
|
type UserConfigFn<TSpec = any, TOptions extends object = any, TReturns = any> = (params: UserConfigParams) => UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[] | Promise<UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[]>;
|
|
562
568
|
type UserConfigExport<TSpec = any, TOptions extends object = any, TReturns = any> = UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[] | Promise<UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[]> | UserConfigFnObject<TSpec, TOptions, TReturns> | UserConfigFnPromise<TSpec, TOptions, TReturns> | UserConfigFn<TSpec, TOptions, TReturns>;
|
|
563
569
|
//#endregion
|
|
564
|
-
export { MetaDataPrimitive as $, ExtractedExecution as A, InferCreateSchemaOptions as B, GeneratorResult as C,
|
|
565
|
-
//# sourceMappingURL=config-
|
|
570
|
+
export { MetaDataPrimitive as $, ExtractedExecution as A, InferCreateSchemaOptions as B, GeneratorResult as C, ExecutionDocumentChunk as D, ExecutionDocument as E, InputConfig as F, SchemaMetaExample as G, SchemaConfigObject as H, InputConfigObject as I, InferExtractedMeta as J, SchemaOf as K, InputFunction as L, ExtractedExecutionSource as M, InferCreateInputOptions as N, ExecutionMeta as O, Input as P, MetaData as Q, InputMeta as R, GeneratorMeta as S, Execution as T, SchemaMeta as U, Schema as V, SchemaMetaConfig as W, Meta as X, InferExtractedMetaDataRecord as Y, MetaConfig as Z, Generator as _, UserConfigFnPromise as a, GeneratorFunction as b, Settings as c, OutputConfig as d, MetaDataRecord as et, OutputConfigObject as f, GeneratedDocument as g, OutputMetaConfig as h, UserConfigFnObject as i, ExtractedExecutionDocument as j, ExecutionResult as k, InferCreateOutputOptions as l, OutputMeta as m, UserConfigExport as n, MetaLink as nt, UserConfigParams as o, OutputFunction as p, BaseMeta as q, UserConfigFn as r, MetaValue as rt, Logger as s, UserConfig as t, MetaDeprecated as tt, Output as u, GeneratorConfig as v, InferCreateGeneratorOptions as w, GeneratorFunctionResult as x, GeneratorConfigObject as y, InputMetaConfig as z };
|
|
571
|
+
//# sourceMappingURL=config-D3-0eTEI.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-D3-0eTEI.d.cts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/execution.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":"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"}
|
|
@@ -243,17 +243,13 @@ interface Input<TSpec, TOptions extends object> {
|
|
|
243
243
|
}
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region src/types/execution.d.ts
|
|
246
|
-
interface
|
|
246
|
+
interface ExecutionDocumentChunk<TSpec, TOptions extends object> {
|
|
247
247
|
/**
|
|
248
|
-
* The
|
|
249
|
-
*/
|
|
250
|
-
language?: string;
|
|
251
|
-
/**
|
|
252
|
-
* The content of the source code.
|
|
248
|
+
* The content of the chunk.
|
|
253
249
|
*/
|
|
254
250
|
content: string;
|
|
255
251
|
/**
|
|
256
|
-
* The metadata of the
|
|
252
|
+
* The metadata of the chunk.
|
|
257
253
|
*/
|
|
258
254
|
meta: Meta<TSpec, TOptions>;
|
|
259
255
|
}
|
|
@@ -263,9 +259,13 @@ interface ExecutionDocument<TSpec, TOptions extends object> {
|
|
|
263
259
|
*/
|
|
264
260
|
path: string;
|
|
265
261
|
/**
|
|
266
|
-
* The
|
|
262
|
+
* The language of the document.
|
|
267
263
|
*/
|
|
268
|
-
|
|
264
|
+
language?: string;
|
|
265
|
+
/**
|
|
266
|
+
* The chunks of the document.
|
|
267
|
+
*/
|
|
268
|
+
chunks: ExecutionDocumentChunk<TSpec, TOptions>[];
|
|
269
269
|
/**
|
|
270
270
|
* The metadata of the document.
|
|
271
271
|
*/
|
|
@@ -324,11 +324,11 @@ type ExecutionResult<TSpec, TOptions extends object, TReturns = void> = Generate
|
|
|
324
324
|
*/
|
|
325
325
|
returns?: TReturns;
|
|
326
326
|
};
|
|
327
|
-
type ExtractedExecutionSource<TSpec, TOptions extends object> = Omit<
|
|
327
|
+
type ExtractedExecutionSource<TSpec, TOptions extends object> = Omit<ExecutionDocumentChunk<TSpec, TOptions>, "meta"> & {
|
|
328
328
|
/**
|
|
329
329
|
* The extracted metadata of the execution.
|
|
330
330
|
*/
|
|
331
|
-
meta: InferExtractedMeta<
|
|
331
|
+
meta: InferExtractedMeta<ExecutionDocumentChunk<TSpec, TOptions>["meta"]>;
|
|
332
332
|
};
|
|
333
333
|
type ExtractedExecutionDocument<TSpec, TOptions extends object> = Omit<ExecutionDocument<TSpec, TOptions>, "source" | "meta"> & {
|
|
334
334
|
/**
|
|
@@ -362,12 +362,18 @@ type GeneratedDocument<TSpec, TOptions extends object> = Partial<Omit<ExecutionD
|
|
|
362
362
|
/**
|
|
363
363
|
* The sources of the document.
|
|
364
364
|
*/
|
|
365
|
-
|
|
365
|
+
chunks?: DeepPartial<ExecutionDocumentChunk<TSpec, TOptions>>[];
|
|
366
366
|
};
|
|
367
367
|
type GeneratorFunction<TSpec, TOptions extends object> = (spec: TSpec, options: TOptions) => MaybePromise<Record<string, GeneratedDocument<TSpec, TOptions>>>;
|
|
368
368
|
type GeneratorFunctionResult<TSpec, TOptions extends object> = Awaited<ReturnType<GeneratorFunction<TSpec, TOptions>>>;
|
|
369
369
|
interface GeneratorResult<TSpec, TOptions extends object, TReturns = void> {
|
|
370
|
+
/**
|
|
371
|
+
* The specification used to generate the documents.
|
|
372
|
+
*/
|
|
370
373
|
spec: TSpec;
|
|
374
|
+
/**
|
|
375
|
+
* The options used to generate the documents.
|
|
376
|
+
*/
|
|
371
377
|
options: TOptions;
|
|
372
378
|
/**
|
|
373
379
|
* The documents generated by the generator.
|
|
@@ -561,5 +567,5 @@ type UserConfigFnPromise<TSpec = any, TOptions extends object = any, TReturns =
|
|
|
561
567
|
type UserConfigFn<TSpec = any, TOptions extends object = any, TReturns = any> = (params: UserConfigParams) => UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[] | Promise<UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[]>;
|
|
562
568
|
type UserConfigExport<TSpec = any, TOptions extends object = any, TReturns = any> = UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[] | Promise<UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[]> | UserConfigFnObject<TSpec, TOptions, TReturns> | UserConfigFnPromise<TSpec, TOptions, TReturns> | UserConfigFn<TSpec, TOptions, TReturns>;
|
|
563
569
|
//#endregion
|
|
564
|
-
export { MetaDataPrimitive as $, ExtractedExecution as A, InferCreateSchemaOptions as B, GeneratorResult as C,
|
|
565
|
-
//# sourceMappingURL=config-
|
|
570
|
+
export { MetaDataPrimitive as $, ExtractedExecution as A, InferCreateSchemaOptions as B, GeneratorResult as C, ExecutionDocumentChunk as D, ExecutionDocument as E, InputConfig as F, SchemaMetaExample as G, SchemaConfigObject as H, InputConfigObject as I, InferExtractedMeta as J, SchemaOf as K, InputFunction as L, ExtractedExecutionSource as M, InferCreateInputOptions as N, ExecutionMeta as O, Input as P, MetaData as Q, InputMeta as R, GeneratorMeta as S, Execution as T, SchemaMeta as U, Schema as V, SchemaMetaConfig as W, Meta as X, InferExtractedMetaDataRecord as Y, MetaConfig as Z, Generator as _, UserConfigFnPromise as a, GeneratorFunction as b, Settings as c, OutputConfig as d, MetaDataRecord as et, OutputConfigObject as f, GeneratedDocument as g, OutputMetaConfig as h, UserConfigFnObject as i, ExtractedExecutionDocument as j, ExecutionResult as k, InferCreateOutputOptions as l, OutputMeta as m, UserConfigExport as n, MetaLink as nt, UserConfigParams as o, OutputFunction as p, BaseMeta as q, UserConfigFn as r, MetaValue as rt, Logger as s, UserConfig as t, MetaDeprecated as tt, Output as u, GeneratorConfig as v, InferCreateGeneratorOptions as w, GeneratorFunctionResult as x, GeneratorConfigObject as y, InputMetaConfig as z };
|
|
571
|
+
//# sourceMappingURL=config-D3-0eTEI.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-D3-0eTEI.d.mts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/execution.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":""}
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-
|
|
1
|
+
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-D3-0eTEI.cjs";
|
|
2
2
|
//#region src/config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Type helper to make it easier to use `power-plant.config.ts` files. Accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigParams} object.
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-
|
|
1
|
+
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-D3-0eTEI.mjs";
|
|
2
2
|
//#region src/config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Type helper to make it easier to use `power-plant.config.ts` files. Accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigParams} object.
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { E as ExecutionDocument, K as SchemaOf, P as Input, T as Execution, c as Settings, s as Logger, u as Output } from "./config-D3-0eTEI.mjs";
|
|
2
|
+
import { Storage } from "unstorage";
|
|
3
|
+
//#region src/types/base.d.ts
|
|
4
|
+
interface Base {
|
|
5
|
+
/**
|
|
6
|
+
* A unique identifier for the model.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The timestamp when the model was created.
|
|
11
|
+
*/
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
/**
|
|
14
|
+
* The timestamp when the model was last updated.
|
|
15
|
+
*/
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The description of the model.
|
|
19
|
+
*/
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/types/device.d.ts
|
|
24
|
+
interface DeviceOperatingSystem {
|
|
25
|
+
/**
|
|
26
|
+
* The type of the operating system.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is the type of the operating system as returned by `os.type()`.
|
|
30
|
+
*
|
|
31
|
+
* @see https://nodejs.org/api/os.html#ostype
|
|
32
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
33
|
+
*/
|
|
34
|
+
type: string;
|
|
35
|
+
/**
|
|
36
|
+
* The release of the operating system.
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* This is the release of the operating system as returned by `os.release()`.
|
|
40
|
+
*
|
|
41
|
+
* @see https://nodejs.org/api/os.html#osrelease
|
|
42
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
43
|
+
*/
|
|
44
|
+
release: string;
|
|
45
|
+
}
|
|
46
|
+
interface Device extends Base {
|
|
47
|
+
/**
|
|
48
|
+
* The name of the device.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* This is the name of the device as returned by `os.hostname()`.
|
|
52
|
+
*
|
|
53
|
+
* @see https://nodejs.org/api/os.html#oshostname
|
|
54
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* The IP address of the device.
|
|
59
|
+
*/
|
|
60
|
+
ip?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The architecture of the device.
|
|
63
|
+
*
|
|
64
|
+
* @see https://nodejs.org/api/os.html#osarch
|
|
65
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
66
|
+
*/
|
|
67
|
+
arch: NodeJS.Architecture;
|
|
68
|
+
/**
|
|
69
|
+
* The platform of the device.
|
|
70
|
+
*
|
|
71
|
+
* @see https://nodejs.org/api/os.html#osplatform
|
|
72
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
73
|
+
*/
|
|
74
|
+
platform: NodeJS.Platform;
|
|
75
|
+
/**
|
|
76
|
+
* The operating system of the device.
|
|
77
|
+
*
|
|
78
|
+
* @see https://nodejs.org/api/os.html#osrelease
|
|
79
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
80
|
+
*/
|
|
81
|
+
os: DeviceOperatingSystem;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/types/user.d.ts
|
|
85
|
+
interface User extends Base {
|
|
86
|
+
/**
|
|
87
|
+
* The username of the user.
|
|
88
|
+
*/
|
|
89
|
+
username: string;
|
|
90
|
+
/**
|
|
91
|
+
* The email of the user.
|
|
92
|
+
*/
|
|
93
|
+
email?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The default language of the tenant.
|
|
96
|
+
*
|
|
97
|
+
* @defaultValue "en-US"
|
|
98
|
+
*/
|
|
99
|
+
language: string;
|
|
100
|
+
/**
|
|
101
|
+
* The default timezone of the tenant.
|
|
102
|
+
*
|
|
103
|
+
* @defaultValue "UTC"
|
|
104
|
+
*/
|
|
105
|
+
timezone: string;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/types/session.d.ts
|
|
109
|
+
interface Session extends Base {
|
|
110
|
+
/**
|
|
111
|
+
* The device that started the session.
|
|
112
|
+
*/
|
|
113
|
+
device: Device;
|
|
114
|
+
/**
|
|
115
|
+
* The user who started the session.
|
|
116
|
+
*/
|
|
117
|
+
user: User;
|
|
118
|
+
/**
|
|
119
|
+
* The executions of the session.
|
|
120
|
+
*/
|
|
121
|
+
executions: Execution<any, any>[];
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/types/context.d.ts
|
|
125
|
+
interface SessionContext {
|
|
126
|
+
/**
|
|
127
|
+
* The current working directory.
|
|
128
|
+
*/
|
|
129
|
+
cwd: string;
|
|
130
|
+
/**
|
|
131
|
+
* The settings for the context.
|
|
132
|
+
*/
|
|
133
|
+
settings: Settings;
|
|
134
|
+
/**
|
|
135
|
+
* The Unstorage storage for the context.
|
|
136
|
+
*
|
|
137
|
+
* @remarks
|
|
138
|
+
* This storage can be used to store the input and output of the execution.
|
|
139
|
+
*/
|
|
140
|
+
storage: Storage;
|
|
141
|
+
/**
|
|
142
|
+
* The logger for the context.
|
|
143
|
+
*/
|
|
144
|
+
logger: Logger;
|
|
145
|
+
/**
|
|
146
|
+
* The session for the context.
|
|
147
|
+
*/
|
|
148
|
+
session: Session;
|
|
149
|
+
}
|
|
150
|
+
interface ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends SessionContext, Execution<TSpec, TOptions> {
|
|
151
|
+
/**
|
|
152
|
+
* The options for the execution.
|
|
153
|
+
*/
|
|
154
|
+
options: TOptions;
|
|
155
|
+
/**
|
|
156
|
+
* The specification for the execution.
|
|
157
|
+
*/
|
|
158
|
+
get spec(): TSpec;
|
|
159
|
+
/**
|
|
160
|
+
* The schema for the execution.
|
|
161
|
+
*/
|
|
162
|
+
get schema(): SchemaOf<TSpec, TOptions>;
|
|
163
|
+
/**
|
|
164
|
+
* The input for the execution.
|
|
165
|
+
*/
|
|
166
|
+
get input(): Input<TSpec, TOptions>;
|
|
167
|
+
/**
|
|
168
|
+
* The output for the execution.
|
|
169
|
+
*/
|
|
170
|
+
get output(): Output<TSpec, TOptions, TReturns>;
|
|
171
|
+
/**
|
|
172
|
+
* The documents that are currently being processed, indexed by the document path.
|
|
173
|
+
*/
|
|
174
|
+
get documents(): Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
175
|
+
/**
|
|
176
|
+
* Adds a document to the currently processing documents.
|
|
177
|
+
*
|
|
178
|
+
* @param pathOrDocument - A string representing the path of the document to add, or the document to add.
|
|
179
|
+
* @param document - The document to add (without the path), if {@link pathOrDocument} is a string representing the document path.
|
|
180
|
+
*/
|
|
181
|
+
addDocument: (pathOrDocument: string | ExecutionDocument<TSpec, TOptions>, document?: Omit<ExecutionDocument<TSpec, TOptions>, "path">) => void;
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
184
|
+
export { Device as a, User as i, SessionContext as n, DeviceOperatingSystem as o, Session as r, Base as s, ExecutionContext as t };
|
|
185
|
+
//# sourceMappingURL=context-B4h787Dd.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-B4h787Dd.d.mts","names":[],"sources":["../src/types/base.ts","../src/types/device.ts","../src/types/user.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { E as ExecutionDocument, K as SchemaOf, P as Input, T as Execution, c as Settings, s as Logger, u as Output } from "./config-D3-0eTEI.cjs";
|
|
2
|
+
import { Storage } from "unstorage";
|
|
3
|
+
//#region src/types/base.d.ts
|
|
4
|
+
interface Base {
|
|
5
|
+
/**
|
|
6
|
+
* A unique identifier for the model.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The timestamp when the model was created.
|
|
11
|
+
*/
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
/**
|
|
14
|
+
* The timestamp when the model was last updated.
|
|
15
|
+
*/
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The description of the model.
|
|
19
|
+
*/
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/types/device.d.ts
|
|
24
|
+
interface DeviceOperatingSystem {
|
|
25
|
+
/**
|
|
26
|
+
* The type of the operating system.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is the type of the operating system as returned by `os.type()`.
|
|
30
|
+
*
|
|
31
|
+
* @see https://nodejs.org/api/os.html#ostype
|
|
32
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
33
|
+
*/
|
|
34
|
+
type: string;
|
|
35
|
+
/**
|
|
36
|
+
* The release of the operating system.
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* This is the release of the operating system as returned by `os.release()`.
|
|
40
|
+
*
|
|
41
|
+
* @see https://nodejs.org/api/os.html#osrelease
|
|
42
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
43
|
+
*/
|
|
44
|
+
release: string;
|
|
45
|
+
}
|
|
46
|
+
interface Device extends Base {
|
|
47
|
+
/**
|
|
48
|
+
* The name of the device.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* This is the name of the device as returned by `os.hostname()`.
|
|
52
|
+
*
|
|
53
|
+
* @see https://nodejs.org/api/os.html#oshostname
|
|
54
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* The IP address of the device.
|
|
59
|
+
*/
|
|
60
|
+
ip?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The architecture of the device.
|
|
63
|
+
*
|
|
64
|
+
* @see https://nodejs.org/api/os.html#osarch
|
|
65
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
66
|
+
*/
|
|
67
|
+
arch: NodeJS.Architecture;
|
|
68
|
+
/**
|
|
69
|
+
* The platform of the device.
|
|
70
|
+
*
|
|
71
|
+
* @see https://nodejs.org/api/os.html#osplatform
|
|
72
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
73
|
+
*/
|
|
74
|
+
platform: NodeJS.Platform;
|
|
75
|
+
/**
|
|
76
|
+
* The operating system of the device.
|
|
77
|
+
*
|
|
78
|
+
* @see https://nodejs.org/api/os.html#osrelease
|
|
79
|
+
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
80
|
+
*/
|
|
81
|
+
os: DeviceOperatingSystem;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/types/user.d.ts
|
|
85
|
+
interface User extends Base {
|
|
86
|
+
/**
|
|
87
|
+
* The username of the user.
|
|
88
|
+
*/
|
|
89
|
+
username: string;
|
|
90
|
+
/**
|
|
91
|
+
* The email of the user.
|
|
92
|
+
*/
|
|
93
|
+
email?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The default language of the tenant.
|
|
96
|
+
*
|
|
97
|
+
* @defaultValue "en-US"
|
|
98
|
+
*/
|
|
99
|
+
language: string;
|
|
100
|
+
/**
|
|
101
|
+
* The default timezone of the tenant.
|
|
102
|
+
*
|
|
103
|
+
* @defaultValue "UTC"
|
|
104
|
+
*/
|
|
105
|
+
timezone: string;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/types/session.d.ts
|
|
109
|
+
interface Session extends Base {
|
|
110
|
+
/**
|
|
111
|
+
* The device that started the session.
|
|
112
|
+
*/
|
|
113
|
+
device: Device;
|
|
114
|
+
/**
|
|
115
|
+
* The user who started the session.
|
|
116
|
+
*/
|
|
117
|
+
user: User;
|
|
118
|
+
/**
|
|
119
|
+
* The executions of the session.
|
|
120
|
+
*/
|
|
121
|
+
executions: Execution<any, any>[];
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/types/context.d.ts
|
|
125
|
+
interface SessionContext {
|
|
126
|
+
/**
|
|
127
|
+
* The current working directory.
|
|
128
|
+
*/
|
|
129
|
+
cwd: string;
|
|
130
|
+
/**
|
|
131
|
+
* The settings for the context.
|
|
132
|
+
*/
|
|
133
|
+
settings: Settings;
|
|
134
|
+
/**
|
|
135
|
+
* The Unstorage storage for the context.
|
|
136
|
+
*
|
|
137
|
+
* @remarks
|
|
138
|
+
* This storage can be used to store the input and output of the execution.
|
|
139
|
+
*/
|
|
140
|
+
storage: Storage;
|
|
141
|
+
/**
|
|
142
|
+
* The logger for the context.
|
|
143
|
+
*/
|
|
144
|
+
logger: Logger;
|
|
145
|
+
/**
|
|
146
|
+
* The session for the context.
|
|
147
|
+
*/
|
|
148
|
+
session: Session;
|
|
149
|
+
}
|
|
150
|
+
interface ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends SessionContext, Execution<TSpec, TOptions> {
|
|
151
|
+
/**
|
|
152
|
+
* The options for the execution.
|
|
153
|
+
*/
|
|
154
|
+
options: TOptions;
|
|
155
|
+
/**
|
|
156
|
+
* The specification for the execution.
|
|
157
|
+
*/
|
|
158
|
+
get spec(): TSpec;
|
|
159
|
+
/**
|
|
160
|
+
* The schema for the execution.
|
|
161
|
+
*/
|
|
162
|
+
get schema(): SchemaOf<TSpec, TOptions>;
|
|
163
|
+
/**
|
|
164
|
+
* The input for the execution.
|
|
165
|
+
*/
|
|
166
|
+
get input(): Input<TSpec, TOptions>;
|
|
167
|
+
/**
|
|
168
|
+
* The output for the execution.
|
|
169
|
+
*/
|
|
170
|
+
get output(): Output<TSpec, TOptions, TReturns>;
|
|
171
|
+
/**
|
|
172
|
+
* The documents that are currently being processed, indexed by the document path.
|
|
173
|
+
*/
|
|
174
|
+
get documents(): Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
175
|
+
/**
|
|
176
|
+
* Adds a document to the currently processing documents.
|
|
177
|
+
*
|
|
178
|
+
* @param pathOrDocument - A string representing the path of the document to add, or the document to add.
|
|
179
|
+
* @param document - The document to add (without the path), if {@link pathOrDocument} is a string representing the document path.
|
|
180
|
+
*/
|
|
181
|
+
addDocument: (pathOrDocument: string | ExecutionDocument<TSpec, TOptions>, document?: Omit<ExecutionDocument<TSpec, TOptions>, "path">) => void;
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
184
|
+
export { Device as a, User as i, SessionContext as n, DeviceOperatingSystem as o, Session as r, Base as s, ExecutionContext as t };
|
|
185
|
+
//# sourceMappingURL=context-DYvyeLgC.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-DYvyeLgC.d.cts","names":[],"sources":["../src/types/base.ts","../src/types/device.ts","../src/types/user.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":";;;UAkBiB;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX;;;;UCjBe;;;;;;;;;;EAUf;;;;;;;;;;EAWA;;UAGe,eAAe;;;;;;;;;;EAU9B;;;;EAKA;;;;;;;EAQA,MAAM,OAAO;;;;;;;EAQb,UAAU,OAAO;;;;;;;EAQjB,IAAI;;;;UC/DW,aAAa;;;;EAI5B;;;;EAKA;;;;;;EAOA;;;;;;EAOA;;;;UCpBe,gBAAgB;;;;EAI/B,QAAQ;;;;EAKR,MAAM;;;;EAKN,YAAY;;;;UCXG;;;;EAIf;;;;EAKA,UAAU;;;;;;;EAQV,SAAS;;;;EAKT,QAAQ;;;;EAKR,SAAS;;UAGM,iBACf,OACA,yBACA,yBAEQ,gBAAgB,UAAU,OAAO;;;;EAIzC,SAAS;;;;MAKL,QAAQ;;;;MAKR,UAAU,SAAS,OAAO;;;;MAK1B,SAAS,MAAM,OAAO;;;;MAKtB,UAAU,OAAO,OAAO,UAAU;;;;MAKlC,aAAa,eAAe,kBAAkB,OAAO;;;;;;;EAQzD,cACE,yBAAyB,kBAAkB,OAAO,WAClD,WAAW,KAAK,kBAAkB,OAAO"}
|
package/dist/context.d.cts
CHANGED
package/dist/context.d.mts
CHANGED
package/dist/define.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as InputConfig, H as SchemaConfigObject, I as InputConfigObject, d as OutputConfig, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-
|
|
1
|
+
import { F as InputConfig, H as SchemaConfigObject, I as InputConfigObject, d as OutputConfig, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-D3-0eTEI.cjs";
|
|
2
2
|
import { SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
3
3
|
//#region src/define.d.ts
|
|
4
4
|
/**
|
package/dist/define.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as InputConfig, H as SchemaConfigObject, I as InputConfigObject, d as OutputConfig, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-
|
|
1
|
+
import { F as InputConfig, H as SchemaConfigObject, I as InputConfigObject, d as OutputConfig, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-D3-0eTEI.mjs";
|
|
2
2
|
import { SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
3
3
|
//#region src/define.d.ts
|
|
4
4
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import { $ as MetaDataPrimitive, A as ExtractedExecution, B as InferCreateSchemaOptions, C as GeneratorResult, D as
|
|
1
|
+
import { $ as MetaDataPrimitive, A as ExtractedExecution, B as InferCreateSchemaOptions, C as GeneratorResult, D as ExecutionDocumentChunk, E as ExecutionDocument, F as InputConfig, G as SchemaMetaExample, H as SchemaConfigObject, I as InputConfigObject, J as InferExtractedMeta, K as SchemaOf, L as InputFunction, M as ExtractedExecutionSource, N as InferCreateInputOptions, O as ExecutionMeta, P as Input, Q as MetaData, R as InputMeta, S as GeneratorMeta, T as Execution, U as SchemaMeta, V as Schema, W as SchemaMetaConfig, X as Meta, Y as InferExtractedMetaDataRecord, Z as MetaConfig, _ as Generator, a as UserConfigFnPromise, b as GeneratorFunction, c as Settings, d as OutputConfig, et as MetaDataRecord, f as OutputConfigObject, g as GeneratedDocument, h as OutputMetaConfig, i as UserConfigFnObject, j as ExtractedExecutionDocument, k as ExecutionResult, l as InferCreateOutputOptions, m as OutputMeta, n as UserConfigExport, nt as MetaLink, o as UserConfigParams, p as OutputFunction, q as BaseMeta, r as UserConfigFn, rt as MetaValue, s as Logger, t as UserConfig, tt as MetaDeprecated, u as Output, v as GeneratorConfig, w as InferCreateGeneratorOptions, x as GeneratorFunctionResult, y as GeneratorConfigObject, z as InputMetaConfig } from "./config-D3-0eTEI.cjs";
|
|
2
2
|
import { defineConfig } from "./config.cjs";
|
|
3
|
-
import { a as
|
|
3
|
+
import { a as Device, i as User, n as SessionContext, o as DeviceOperatingSystem, r as Session, s as Base, t as ExecutionContext } from "./context-DYvyeLgC.cjs";
|
|
4
4
|
import { ContextStore, callAsyncExecutionContext, callAsyncSessionContext, callExecutionContext, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecutionContext, tryUseSessionContext, useExecutionContext, useSessionContext } from "./context.cjs";
|
|
5
5
|
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.cjs";
|
|
6
|
-
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-
|
|
7
|
-
|
|
8
|
-
interface Base {
|
|
9
|
-
/**
|
|
10
|
-
* A unique identifier for the model.
|
|
11
|
-
*/
|
|
12
|
-
id: string;
|
|
13
|
-
/**
|
|
14
|
-
* The timestamp when the model was created.
|
|
15
|
-
*/
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
/**
|
|
18
|
-
* The timestamp when the model was last updated.
|
|
19
|
-
*/
|
|
20
|
-
updatedAt: Date;
|
|
21
|
-
/**
|
|
22
|
-
* The description of the model.
|
|
23
|
-
*/
|
|
24
|
-
description?: string;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { type Base, type BaseMeta, ContextStore, type Execution, type ExecutionContext, type ExecutionDocument, type ExecutionMeta, type ExecutionResult, type ExecutionSource, type ExtractedExecution, type ExtractedExecutionDocument, type ExtractedExecutionSource, type GeneratedDocument, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorMeta, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExtractedMeta, type InferExtractedMetaDataRecord, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMeta, type InputMetaConfig, type Logger, type Meta, type MetaConfig, type MetaData, type MetaDataPrimitive, type MetaDataRecord, type MetaDeprecated, type MetaLink, type MetaValue, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type OutputMeta, type OutputMetaConfig, type Schema, type SchemaConfigObject, type SchemaMeta, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type SessionDeviceInfo, type SessionUserInfo, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecutionContext, callAsyncSessionContext, callExecutionContext, callSessionContext, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, executionAsyncLocalStorage, executionContext, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, sessionAsyncLocalStorage, sessionContext, tryUseExecutionContext, tryUseSessionContext, useExecutionContext, useSessionContext };
|
|
28
|
-
//# sourceMappingURL=index.d.cts.map
|
|
6
|
+
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-DBObymgE.cjs";
|
|
7
|
+
export { type Base, type BaseMeta, ContextStore, type Device, type DeviceOperatingSystem, type Execution, type ExecutionContext, type ExecutionDocument, type ExecutionDocumentChunk, type ExecutionMeta, type ExecutionResult, type ExtractedExecution, type ExtractedExecutionDocument, type ExtractedExecutionSource, type GeneratedDocument, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorMeta, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExtractedMeta, type InferExtractedMetaDataRecord, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMeta, type InputMetaConfig, type Logger, type Meta, type MetaConfig, type MetaData, type MetaDataPrimitive, type MetaDataRecord, type MetaDeprecated, type MetaLink, type MetaValue, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type OutputMeta, type OutputMetaConfig, type Schema, type SchemaConfigObject, type SchemaMeta, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type User, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecutionContext, callAsyncSessionContext, callExecutionContext, callSessionContext, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, executionAsyncLocalStorage, executionContext, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, sessionAsyncLocalStorage, sessionContext, tryUseExecutionContext, tryUseSessionContext, useExecutionContext, useSessionContext };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import { $ as MetaDataPrimitive, A as ExtractedExecution, B as InferCreateSchemaOptions, C as GeneratorResult, D as
|
|
1
|
+
import { $ as MetaDataPrimitive, A as ExtractedExecution, B as InferCreateSchemaOptions, C as GeneratorResult, D as ExecutionDocumentChunk, E as ExecutionDocument, F as InputConfig, G as SchemaMetaExample, H as SchemaConfigObject, I as InputConfigObject, J as InferExtractedMeta, K as SchemaOf, L as InputFunction, M as ExtractedExecutionSource, N as InferCreateInputOptions, O as ExecutionMeta, P as Input, Q as MetaData, R as InputMeta, S as GeneratorMeta, T as Execution, U as SchemaMeta, V as Schema, W as SchemaMetaConfig, X as Meta, Y as InferExtractedMetaDataRecord, Z as MetaConfig, _ as Generator, a as UserConfigFnPromise, b as GeneratorFunction, c as Settings, d as OutputConfig, et as MetaDataRecord, f as OutputConfigObject, g as GeneratedDocument, h as OutputMetaConfig, i as UserConfigFnObject, j as ExtractedExecutionDocument, k as ExecutionResult, l as InferCreateOutputOptions, m as OutputMeta, n as UserConfigExport, nt as MetaLink, o as UserConfigParams, p as OutputFunction, q as BaseMeta, r as UserConfigFn, rt as MetaValue, s as Logger, t as UserConfig, tt as MetaDeprecated, u as Output, v as GeneratorConfig, w as InferCreateGeneratorOptions, x as GeneratorFunctionResult, y as GeneratorConfigObject, z as InputMetaConfig } from "./config-D3-0eTEI.mjs";
|
|
2
2
|
import { defineConfig } from "./config.mjs";
|
|
3
|
-
import { a as
|
|
3
|
+
import { a as Device, i as User, n as SessionContext, o as DeviceOperatingSystem, r as Session, s as Base, t as ExecutionContext } from "./context-B4h787Dd.mjs";
|
|
4
4
|
import { ContextStore, callAsyncExecutionContext, callAsyncSessionContext, callExecutionContext, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecutionContext, tryUseSessionContext, useExecutionContext, useSessionContext } from "./context.mjs";
|
|
5
5
|
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
6
|
-
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-
|
|
7
|
-
|
|
8
|
-
interface Base {
|
|
9
|
-
/**
|
|
10
|
-
* A unique identifier for the model.
|
|
11
|
-
*/
|
|
12
|
-
id: string;
|
|
13
|
-
/**
|
|
14
|
-
* The timestamp when the model was created.
|
|
15
|
-
*/
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
/**
|
|
18
|
-
* The timestamp when the model was last updated.
|
|
19
|
-
*/
|
|
20
|
-
updatedAt: Date;
|
|
21
|
-
/**
|
|
22
|
-
* The description of the model.
|
|
23
|
-
*/
|
|
24
|
-
description?: string;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { type Base, type BaseMeta, ContextStore, type Execution, type ExecutionContext, type ExecutionDocument, type ExecutionMeta, type ExecutionResult, type ExecutionSource, type ExtractedExecution, type ExtractedExecutionDocument, type ExtractedExecutionSource, type GeneratedDocument, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorMeta, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExtractedMeta, type InferExtractedMetaDataRecord, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMeta, type InputMetaConfig, type Logger, type Meta, type MetaConfig, type MetaData, type MetaDataPrimitive, type MetaDataRecord, type MetaDeprecated, type MetaLink, type MetaValue, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type OutputMeta, type OutputMetaConfig, type Schema, type SchemaConfigObject, type SchemaMeta, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type SessionDeviceInfo, type SessionUserInfo, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecutionContext, callAsyncSessionContext, callExecutionContext, callSessionContext, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, executionAsyncLocalStorage, executionContext, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, sessionAsyncLocalStorage, sessionContext, tryUseExecutionContext, tryUseSessionContext, useExecutionContext, useSessionContext };
|
|
28
|
-
//# sourceMappingURL=index.d.mts.map
|
|
6
|
+
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-DX_sqZhk.mjs";
|
|
7
|
+
export { type Base, type BaseMeta, ContextStore, type Device, type DeviceOperatingSystem, type Execution, type ExecutionContext, type ExecutionDocument, type ExecutionDocumentChunk, type ExecutionMeta, type ExecutionResult, type ExtractedExecution, type ExtractedExecutionDocument, type ExtractedExecutionSource, type GeneratedDocument, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorMeta, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExtractedMeta, type InferExtractedMetaDataRecord, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMeta, type InputMetaConfig, type Logger, type Meta, type MetaConfig, type MetaData, type MetaDataPrimitive, type MetaDataRecord, type MetaDeprecated, type MetaLink, type MetaValue, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type OutputMeta, type OutputMetaConfig, type Schema, type SchemaConfigObject, type SchemaMeta, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type User, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecutionContext, callAsyncSessionContext, callExecutionContext, callSessionContext, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, executionAsyncLocalStorage, executionContext, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, sessionAsyncLocalStorage, sessionContext, tryUseExecutionContext, tryUseSessionContext, useExecutionContext, useSessionContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as SchemaConfigObject, I as InputConfigObject, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-
|
|
2
|
-
import "./context-
|
|
1
|
+
import { H as SchemaConfigObject, I as InputConfigObject, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-D3-0eTEI.cjs";
|
|
2
|
+
import "./context-DYvyeLgC.cjs";
|
|
3
3
|
//#region src/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -31,4 +31,4 @@ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns =
|
|
|
31
31
|
declare function isSchemaConfigObject<TSpec, TOptions extends object>(config: unknown): config is SchemaConfigObject<TSpec, TOptions>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { isSchemaConfigObject as i, isInputConfigObject as n, isOutputConfigObject as r, isGeneratorConfigObject as t };
|
|
34
|
-
//# sourceMappingURL=type-checks-
|
|
34
|
+
//# sourceMappingURL=type-checks-DBObymgE.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-checks-
|
|
1
|
+
{"version":3,"file":"type-checks-DBObymgE.d.cts","names":[],"sources":["../src/type-checks.ts"],"mappings":";;;;;;;;;iBAgCgB,wBACd,OACA,yBACA,iBACA,kBAAkB,UAAU,sBAAsB,OAAO,UAAU;;;;;;;iBAcrD,oBAAoB,OAAO,yBACzC,iBACC,SAAS,kBAAkB,OAAO;;;;;;;iBAUrB,qBACd,OACA,yBACA,iBACA,kBAAkB,UAAU,mBAAmB,OAAO,UAAU;;;;;;;iBAYlD,qBAAqB,OAAO,yBAC1C,kBACC,UAAU,mBAAmB,OAAO"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as SchemaConfigObject, I as InputConfigObject, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-
|
|
2
|
-
import "./context-
|
|
1
|
+
import { H as SchemaConfigObject, I as InputConfigObject, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-D3-0eTEI.mjs";
|
|
2
|
+
import "./context-B4h787Dd.mjs";
|
|
3
3
|
//#region src/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -31,4 +31,4 @@ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns =
|
|
|
31
31
|
declare function isSchemaConfigObject<TSpec, TOptions extends object>(config: unknown): config is SchemaConfigObject<TSpec, TOptions>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { isSchemaConfigObject as i, isInputConfigObject as n, isOutputConfigObject as r, isGeneratorConfigObject as t };
|
|
34
|
-
//# sourceMappingURL=type-checks-
|
|
34
|
+
//# sourceMappingURL=type-checks-DX_sqZhk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-checks-DX_sqZhk.d.mts","names":[],"sources":["../src/type-checks.ts"],"mappings":""}
|
package/dist/type-checks.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-
|
|
1
|
+
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-DBObymgE.cjs";
|
|
2
2
|
export { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
package/dist/type-checks.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-
|
|
1
|
+
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-DX_sqZhk.mjs";
|
|
2
2
|
export { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ExecutionDocument, K as SchemaOf, P as Input, u as Output } from "../config-
|
|
2
|
-
import { t as ExecutionContext } from "../context-
|
|
1
|
+
import { E as ExecutionDocument, K as SchemaOf, P as Input, u as Output } from "../config-D3-0eTEI.cjs";
|
|
2
|
+
import { t as ExecutionContext } from "../context-DYvyeLgC.cjs";
|
|
3
3
|
//#region src/types/__internal.d.ts
|
|
4
4
|
interface Unstable_ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends ExecutionContext<TSpec, TOptions, TReturns> {
|
|
5
5
|
"~spec": TSpec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ExecutionDocument, K as SchemaOf, P as Input, u as Output } from "../config-
|
|
2
|
-
import { t as ExecutionContext } from "../context-
|
|
1
|
+
import { E as ExecutionDocument, K as SchemaOf, P as Input, u as Output } from "../config-D3-0eTEI.mjs";
|
|
2
|
+
import { t as ExecutionContext } from "../context-B4h787Dd.mjs";
|
|
3
3
|
//#region src/types/__internal.d.ts
|
|
4
4
|
interface Unstable_ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends ExecutionContext<TSpec, TOptions, TReturns> {
|
|
5
5
|
"~spec": TSpec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "☢️ Text generation that gives your AI superpowers",
|
|
6
6
|
"keywords": ["power-plant", "storm-software"],
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"typings": "dist/index.d.mts",
|
|
133
133
|
"files": ["dist"],
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@power-plant/schema": "^0.0.
|
|
135
|
+
"@power-plant/schema": "^0.0.15",
|
|
136
136
|
"@stryke/string-format": "^0.17.37",
|
|
137
137
|
"@stryke/type-checks": "^0.6.28",
|
|
138
138
|
"@stryke/types": "^0.12.23",
|
|
@@ -140,10 +140,10 @@
|
|
|
140
140
|
"unstorage": "^1.17.5"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
143
|
+
"@powerlines/plugin-tsdown": "^0.1.544",
|
|
144
144
|
"@types/node": "^25.9.5",
|
|
145
145
|
"typescript": "^6.0.3"
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": { "access": "public" },
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "53b9aaba951c67546a3774251f4ad973eccc3997"
|
|
149
149
|
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { A as ExtractedExecution, E as ExecutionDocument, K as SchemaOf, P as Input, T as Execution, c as Settings, s as Logger, u as Output } from "./config-DMItzxbk.cjs";
|
|
2
|
-
import { Storage } from "unstorage";
|
|
3
|
-
//#region src/types/session.d.ts
|
|
4
|
-
interface SessionUserInfo {
|
|
5
|
-
/**
|
|
6
|
-
* The user name for the active session.
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* The display name for the active user.
|
|
11
|
-
*/
|
|
12
|
-
displayName: string;
|
|
13
|
-
/**
|
|
14
|
-
* The user's language preferences.
|
|
15
|
-
*/
|
|
16
|
-
languagePreferences: string[];
|
|
17
|
-
}
|
|
18
|
-
interface SessionDeviceInfo {
|
|
19
|
-
/**
|
|
20
|
-
* The device name for the active session.
|
|
21
|
-
*/
|
|
22
|
-
name: string;
|
|
23
|
-
/**
|
|
24
|
-
* The display name for the active device.
|
|
25
|
-
*/
|
|
26
|
-
displayName: string;
|
|
27
|
-
/**
|
|
28
|
-
* The platform identifier for the active device.
|
|
29
|
-
*/
|
|
30
|
-
platform: string;
|
|
31
|
-
/**
|
|
32
|
-
* The OS distribution for the active device.
|
|
33
|
-
*/
|
|
34
|
-
distro: string;
|
|
35
|
-
/**
|
|
36
|
-
* The desktop environment for the active device.
|
|
37
|
-
*/
|
|
38
|
-
desktopEnv: string;
|
|
39
|
-
/**
|
|
40
|
-
* The CPU architecture for the active device.
|
|
41
|
-
*/
|
|
42
|
-
cpuArch: string;
|
|
43
|
-
}
|
|
44
|
-
interface Session {
|
|
45
|
-
/**
|
|
46
|
-
* A unique identifier for the session.
|
|
47
|
-
*/
|
|
48
|
-
sessionId: string;
|
|
49
|
-
/**
|
|
50
|
-
* The timestamp indicating when the session started.
|
|
51
|
-
*/
|
|
52
|
-
startedAt: Date;
|
|
53
|
-
/**
|
|
54
|
-
* Information about the current user.
|
|
55
|
-
*/
|
|
56
|
-
user: SessionUserInfo;
|
|
57
|
-
/**
|
|
58
|
-
* Information about the current device.
|
|
59
|
-
*/
|
|
60
|
-
device: SessionDeviceInfo;
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/types/context.d.ts
|
|
64
|
-
interface SessionContext {
|
|
65
|
-
/**
|
|
66
|
-
* The current working directory.
|
|
67
|
-
*/
|
|
68
|
-
cwd: string;
|
|
69
|
-
/**
|
|
70
|
-
* The settings for the context.
|
|
71
|
-
*/
|
|
72
|
-
settings: Settings;
|
|
73
|
-
/**
|
|
74
|
-
* The Unstorage storage for the context.
|
|
75
|
-
*
|
|
76
|
-
* @remarks
|
|
77
|
-
* This storage can be used to store the input and output of the execution.
|
|
78
|
-
*/
|
|
79
|
-
storage: Storage;
|
|
80
|
-
/**
|
|
81
|
-
* The logger for the context.
|
|
82
|
-
*/
|
|
83
|
-
logger: Logger;
|
|
84
|
-
/**
|
|
85
|
-
* The session for the context.
|
|
86
|
-
*/
|
|
87
|
-
session: Session;
|
|
88
|
-
/**
|
|
89
|
-
* The executions that have been performed in the context.
|
|
90
|
-
*/
|
|
91
|
-
executions: ExtractedExecution<any, any>[];
|
|
92
|
-
}
|
|
93
|
-
interface ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends SessionContext, Execution<TSpec, TOptions> {
|
|
94
|
-
/**
|
|
95
|
-
* The options for the execution.
|
|
96
|
-
*/
|
|
97
|
-
options: TOptions;
|
|
98
|
-
/**
|
|
99
|
-
* The specification for the execution.
|
|
100
|
-
*/
|
|
101
|
-
get spec(): TSpec;
|
|
102
|
-
/**
|
|
103
|
-
* The schema for the execution.
|
|
104
|
-
*/
|
|
105
|
-
get schema(): SchemaOf<TSpec, TOptions>;
|
|
106
|
-
/**
|
|
107
|
-
* The input for the execution.
|
|
108
|
-
*/
|
|
109
|
-
get input(): Input<TSpec, TOptions>;
|
|
110
|
-
/**
|
|
111
|
-
* The output for the execution.
|
|
112
|
-
*/
|
|
113
|
-
get output(): Output<TSpec, TOptions, TReturns>;
|
|
114
|
-
/**
|
|
115
|
-
* The documents that are currently being processed, indexed by the document path.
|
|
116
|
-
*/
|
|
117
|
-
get documents(): Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
118
|
-
/**
|
|
119
|
-
* Adds a document to the currently processing documents.
|
|
120
|
-
*
|
|
121
|
-
* @param pathOrDocument - A string representing the path of the document to add, or the document to add.
|
|
122
|
-
* @param document - The document to add (without the path), if {@link pathOrDocument} is a string representing the document path.
|
|
123
|
-
*/
|
|
124
|
-
addDocument: (pathOrDocument: string | ExecutionDocument<TSpec, TOptions>, document?: Omit<ExecutionDocument<TSpec, TOptions>, "path">) => void;
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
127
|
-
export { SessionUserInfo as a, SessionDeviceInfo as i, SessionContext as n, Session as r, ExecutionContext as t };
|
|
128
|
-
//# sourceMappingURL=context-BxqCoy9z.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-BxqCoy9z.d.cts","names":[],"sources":["../src/types/session.ts","../src/types/context.ts"],"mappings":";;;UAkBiB;;;;EAIf;;;;EAKA;;;;EAKA;;UAGe;;;;EAIf;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;UAGe;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,MAAM;;;;EAKN,QAAQ;;;;UCxDO;;;;EAIf;;;;EAKA,UAAU;;;;;;;EAQV,SAAS;;;;EAKT,QAAQ;;;;EAKR,SAAS;;;;EAKT,YAAY;;UAGG,iBACf,OACA,yBACA,yBAEQ,gBAAgB,UAAU,OAAO;;;;EAIzC,SAAS;;;;MAKL,QAAQ;;;;MAKR,UAAU,SAAS,OAAO;;;;MAK1B,SAAS,MAAM,OAAO;;;;MAKtB,UAAU,OAAO,OAAO,UAAU;;;;MAKlC,aAAa,eAAe,kBAAkB,OAAO;;;;;;;EAQzD,cACE,yBAAyB,kBAAkB,OAAO,WAClD,WAAW,KAAK,kBAAkB,OAAO"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { A as ExtractedExecution, E as ExecutionDocument, K as SchemaOf, P as Input, T as Execution, c as Settings, s as Logger, u as Output } from "./config-DMItzxbk.mjs";
|
|
2
|
-
import { Storage } from "unstorage";
|
|
3
|
-
//#region src/types/session.d.ts
|
|
4
|
-
interface SessionUserInfo {
|
|
5
|
-
/**
|
|
6
|
-
* The user name for the active session.
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* The display name for the active user.
|
|
11
|
-
*/
|
|
12
|
-
displayName: string;
|
|
13
|
-
/**
|
|
14
|
-
* The user's language preferences.
|
|
15
|
-
*/
|
|
16
|
-
languagePreferences: string[];
|
|
17
|
-
}
|
|
18
|
-
interface SessionDeviceInfo {
|
|
19
|
-
/**
|
|
20
|
-
* The device name for the active session.
|
|
21
|
-
*/
|
|
22
|
-
name: string;
|
|
23
|
-
/**
|
|
24
|
-
* The display name for the active device.
|
|
25
|
-
*/
|
|
26
|
-
displayName: string;
|
|
27
|
-
/**
|
|
28
|
-
* The platform identifier for the active device.
|
|
29
|
-
*/
|
|
30
|
-
platform: string;
|
|
31
|
-
/**
|
|
32
|
-
* The OS distribution for the active device.
|
|
33
|
-
*/
|
|
34
|
-
distro: string;
|
|
35
|
-
/**
|
|
36
|
-
* The desktop environment for the active device.
|
|
37
|
-
*/
|
|
38
|
-
desktopEnv: string;
|
|
39
|
-
/**
|
|
40
|
-
* The CPU architecture for the active device.
|
|
41
|
-
*/
|
|
42
|
-
cpuArch: string;
|
|
43
|
-
}
|
|
44
|
-
interface Session {
|
|
45
|
-
/**
|
|
46
|
-
* A unique identifier for the session.
|
|
47
|
-
*/
|
|
48
|
-
sessionId: string;
|
|
49
|
-
/**
|
|
50
|
-
* The timestamp indicating when the session started.
|
|
51
|
-
*/
|
|
52
|
-
startedAt: Date;
|
|
53
|
-
/**
|
|
54
|
-
* Information about the current user.
|
|
55
|
-
*/
|
|
56
|
-
user: SessionUserInfo;
|
|
57
|
-
/**
|
|
58
|
-
* Information about the current device.
|
|
59
|
-
*/
|
|
60
|
-
device: SessionDeviceInfo;
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/types/context.d.ts
|
|
64
|
-
interface SessionContext {
|
|
65
|
-
/**
|
|
66
|
-
* The current working directory.
|
|
67
|
-
*/
|
|
68
|
-
cwd: string;
|
|
69
|
-
/**
|
|
70
|
-
* The settings for the context.
|
|
71
|
-
*/
|
|
72
|
-
settings: Settings;
|
|
73
|
-
/**
|
|
74
|
-
* The Unstorage storage for the context.
|
|
75
|
-
*
|
|
76
|
-
* @remarks
|
|
77
|
-
* This storage can be used to store the input and output of the execution.
|
|
78
|
-
*/
|
|
79
|
-
storage: Storage;
|
|
80
|
-
/**
|
|
81
|
-
* The logger for the context.
|
|
82
|
-
*/
|
|
83
|
-
logger: Logger;
|
|
84
|
-
/**
|
|
85
|
-
* The session for the context.
|
|
86
|
-
*/
|
|
87
|
-
session: Session;
|
|
88
|
-
/**
|
|
89
|
-
* The executions that have been performed in the context.
|
|
90
|
-
*/
|
|
91
|
-
executions: ExtractedExecution<any, any>[];
|
|
92
|
-
}
|
|
93
|
-
interface ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends SessionContext, Execution<TSpec, TOptions> {
|
|
94
|
-
/**
|
|
95
|
-
* The options for the execution.
|
|
96
|
-
*/
|
|
97
|
-
options: TOptions;
|
|
98
|
-
/**
|
|
99
|
-
* The specification for the execution.
|
|
100
|
-
*/
|
|
101
|
-
get spec(): TSpec;
|
|
102
|
-
/**
|
|
103
|
-
* The schema for the execution.
|
|
104
|
-
*/
|
|
105
|
-
get schema(): SchemaOf<TSpec, TOptions>;
|
|
106
|
-
/**
|
|
107
|
-
* The input for the execution.
|
|
108
|
-
*/
|
|
109
|
-
get input(): Input<TSpec, TOptions>;
|
|
110
|
-
/**
|
|
111
|
-
* The output for the execution.
|
|
112
|
-
*/
|
|
113
|
-
get output(): Output<TSpec, TOptions, TReturns>;
|
|
114
|
-
/**
|
|
115
|
-
* The documents that are currently being processed, indexed by the document path.
|
|
116
|
-
*/
|
|
117
|
-
get documents(): Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
118
|
-
/**
|
|
119
|
-
* Adds a document to the currently processing documents.
|
|
120
|
-
*
|
|
121
|
-
* @param pathOrDocument - A string representing the path of the document to add, or the document to add.
|
|
122
|
-
* @param document - The document to add (without the path), if {@link pathOrDocument} is a string representing the document path.
|
|
123
|
-
*/
|
|
124
|
-
addDocument: (pathOrDocument: string | ExecutionDocument<TSpec, TOptions>, document?: Omit<ExecutionDocument<TSpec, TOptions>, "path">) => void;
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
127
|
-
export { SessionUserInfo as a, SessionDeviceInfo as i, SessionContext as n, Session as r, ExecutionContext as t };
|
|
128
|
-
//# sourceMappingURL=context-COQtFcI5.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-COQtFcI5.d.mts","names":[],"sources":["../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/base.ts"],"mappings":";;;;;;;UAkBiB;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX"}
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/base.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-checks-SBt7tgFq.d.mts","names":[],"sources":["../src/type-checks.ts"],"mappings":""}
|