@power-plant/core 0.0.51 → 0.0.52
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/{context-DSkOqDWy.d.cts → context-C3M0YsM_.d.cts} +5 -3
- package/dist/context-C3M0YsM_.d.cts.map +1 -0
- package/dist/{context-DMA3S81W.d.mts → context-FIedZFci.d.mts} +5 -3
- package/dist/context-FIedZFci.d.mts.map +1 -0
- package/dist/context.d.cts +1 -1
- package/dist/context.d.mts +1 -1
- package/dist/helpers/type-checks.d.cts +1 -1
- package/dist/helpers/type-checks.d.mts +1 -1
- package/dist/{index-CWjICo_s.d.mts → index-BbAnTHxk.d.mts} +1 -1
- package/dist/{index-DWiKtHVE.d.cts → index-CXUTyD9L.d.cts} +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/package.json +4 -4
- package/dist/context-DMA3S81W.d.mts.map +0 -1
- package/dist/context-DSkOqDWy.d.cts.map +0 -1
|
@@ -38,11 +38,13 @@ interface Session extends Base {
|
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/types/context.d.ts
|
|
41
|
-
interface
|
|
41
|
+
interface Context {
|
|
42
42
|
/**
|
|
43
43
|
* The current working directory.
|
|
44
44
|
*/
|
|
45
45
|
cwd: string;
|
|
46
|
+
}
|
|
47
|
+
interface SessionContext extends Context {
|
|
46
48
|
/**
|
|
47
49
|
* The settings for the context.
|
|
48
50
|
*/
|
|
@@ -101,5 +103,5 @@ interface LocalStore {
|
|
|
101
103
|
user?: string;
|
|
102
104
|
}
|
|
103
105
|
//#endregion
|
|
104
|
-
export {
|
|
105
|
-
//# sourceMappingURL=context-
|
|
106
|
+
export { Session as a, SessionContext as i, ExecutionContext as n, Base as o, LocalStore as r, Context as t };
|
|
107
|
+
//# sourceMappingURL=context-C3M0YsM_.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-C3M0YsM_.d.cts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":";;;;UAkBiB;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX;;;;UChBe,gBAAgB;;;;EAI/B;;;;EAKA;;;;EAKA,YAAY;;;;UCRG;;;;EAIf;;UAGe,uBAAuB;;;;EAItC,UAAU;;;;;;;EAQV,SAAS;;;;EAKT,QAAQ;;;;EAKR,SAAS;;UAGM,iBACf,OACA,yBACA,yBAEQ,gBAAgB,UAAU;;;;EAIlC,SAAS;;;;MAKL,QAAQ;;;;MAKR,UAAU,SAAS;;;;MAKnB,SAAS,MAAM,OAAO;;;;MAKtB,UAAU,OAAO,OAAO,UAAU;;;;MAKlC,aAAa,eAAe;;;;;;;EAQhC,cACE,yBAAyB,mBACzB,WAAW,KAAK;;UAIH;EACf;EACA"}
|
|
@@ -38,11 +38,13 @@ interface Session extends Base {
|
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/types/context.d.ts
|
|
41
|
-
interface
|
|
41
|
+
interface Context {
|
|
42
42
|
/**
|
|
43
43
|
* The current working directory.
|
|
44
44
|
*/
|
|
45
45
|
cwd: string;
|
|
46
|
+
}
|
|
47
|
+
interface SessionContext extends Context {
|
|
46
48
|
/**
|
|
47
49
|
* The settings for the context.
|
|
48
50
|
*/
|
|
@@ -101,5 +103,5 @@ interface LocalStore {
|
|
|
101
103
|
user?: string;
|
|
102
104
|
}
|
|
103
105
|
//#endregion
|
|
104
|
-
export {
|
|
105
|
-
//# sourceMappingURL=context-
|
|
106
|
+
export { Session as a, SessionContext as i, ExecutionContext as n, Base as o, LocalStore as r, Context as t };
|
|
107
|
+
//# sourceMappingURL=context-FIedZFci.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-FIedZFci.d.mts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
package/dist/context.d.cts
CHANGED
package/dist/context.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as InputConfigObject, R as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-DS1cj7j6.cjs";
|
|
2
|
-
import "../index-
|
|
2
|
+
import "../index-CXUTyD9L.cjs";
|
|
3
3
|
//#region src/helpers/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as InputConfigObject, R as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-ZvnnxGt9.mjs";
|
|
2
|
-
import "../index-
|
|
2
|
+
import "../index-BbAnTHxk.mjs";
|
|
3
3
|
//#region src/helpers/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as InferCreateInputOptions, B as SchemaMetaExample, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InputMetaConfig, G as MetaLink, H as BaseMetaConfig, I as InferCreateSchemaOptions, L as Schema, M as InputConfig, N as InputConfigObject, O as InferOutputConfig, P as InputFunction, R as SchemaConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as MetaConfig, V as SchemaOf, W as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as Input, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as SchemaMetaConfig } from "./config-DS1cj7j6.cjs";
|
|
2
2
|
import { defineConfig } from "./config.cjs";
|
|
3
3
|
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-vXX_IEkO.cjs";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as Session, i as SessionContext, n as ExecutionContext, o as Base, r as LocalStore, t as Context } from "./context-C3M0YsM_.cjs";
|
|
5
5
|
import { ContextStore, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext } from "./context.cjs";
|
|
6
6
|
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.cjs";
|
|
7
7
|
import { createExecute, execute } from "./execute.cjs";
|
|
8
|
-
import "./index-
|
|
9
|
-
export { type Base, type BaseMetaConfig, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
|
8
|
+
import "./index-CXUTyD9L.cjs";
|
|
9
|
+
export { type Base, type BaseMetaConfig, type Context, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as InferCreateInputOptions, B as SchemaMetaExample, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InputMetaConfig, G as MetaLink, H as BaseMetaConfig, I as InferCreateSchemaOptions, L as Schema, M as InputConfig, N as InputConfigObject, O as InferOutputConfig, P as InputFunction, R as SchemaConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as MetaConfig, V as SchemaOf, W as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as Input, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as SchemaMetaConfig } from "./config-ZvnnxGt9.mjs";
|
|
2
2
|
import { defineConfig } from "./config.mjs";
|
|
3
3
|
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-BaOcMIgV.mjs";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as Session, i as SessionContext, n as ExecutionContext, o as Base, r as LocalStore, t as Context } from "./context-FIedZFci.mjs";
|
|
5
5
|
import { ContextStore, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext } from "./context.mjs";
|
|
6
6
|
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
7
7
|
import { createExecute, execute } from "./execute.mjs";
|
|
8
|
-
import "./index-
|
|
9
|
-
export { type Base, type BaseMetaConfig, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
|
8
|
+
import "./index-BbAnTHxk.mjs";
|
|
9
|
+
export { type Base, type BaseMetaConfig, type Context, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "☢️ Generate anything from a specification",
|
|
6
6
|
"keywords": ["power-plant", "storm-software"],
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"typings": "dist/index.d.mts",
|
|
161
161
|
"files": ["dist"],
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@power-plant/schema": "^0.0.
|
|
163
|
+
"@power-plant/schema": "^0.0.50",
|
|
164
164
|
"@stryke/string-format": "^0.17.40",
|
|
165
165
|
"@stryke/type-checks": "^0.6.31",
|
|
166
166
|
"@stryke/types": "^0.12.26",
|
|
@@ -179,10 +179,10 @@
|
|
|
179
179
|
"unstorage": "^1.17.5"
|
|
180
180
|
},
|
|
181
181
|
"devDependencies": {
|
|
182
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
182
|
+
"@powerlines/plugin-tsdown": "^0.1.571",
|
|
183
183
|
"@types/node": "^25.9.5",
|
|
184
184
|
"typescript": "^6.0.3"
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "a8883e25106245e992efe78d27b4ec985b3a9b31"
|
|
188
188
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-DMA3S81W.d.mts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-DSkOqDWy.d.cts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":";;;;UAkBiB;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX;;;;UChBe,gBAAgB;;;;EAI/B;;;;EAKA;;;;EAKA,YAAY;;;;UCRG;;;;EAIf;;;;EAKA,UAAU;;;;;;;EAQV,SAAS;;;;EAKT,QAAQ;;;;EAKR,SAAS;;UAGM,iBACf,OACA,yBACA,yBAEQ,gBAAgB,UAAU;;;;EAIlC,SAAS;;;;MAKL,QAAQ;;;;MAKR,UAAU,SAAS;;;;MAKnB,SAAS,MAAM,OAAO;;;;MAKtB,UAAU,OAAO,OAAO,UAAU;;;;MAKlC,aAAa,eAAe;;;;;;;EAQhC,cACE,yBAAyB,mBACzB,WAAW,KAAK;;UAIH;EACf;EACA"}
|