@power-plant/core 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +23 -2
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +23 -2
- package/dist/index.d.mts.map +1 -0
- package/dist/{type-checks-U6YM1BhA.d.cts → type-checks-E_UZ_-fD.d.cts} +2 -22
- package/dist/type-checks-E_UZ_-fD.d.cts.map +1 -0
- package/dist/{type-checks-BXKHGENX.d.mts → type-checks-SBt7tgFq.d.mts} +2 -22
- package/dist/type-checks-SBt7tgFq.d.mts.map +1 -0
- package/dist/type-checks.d.cts +1 -1
- package/dist/type-checks.d.mts +1 -1
- package/package.json +3 -3
- package/dist/type-checks-BXKHGENX.d.mts.map +0 -1
- package/dist/type-checks-U6YM1BhA.d.cts.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,5 +3,26 @@ import { defineConfig } from "./config.cjs";
|
|
|
3
3
|
import { a as SessionUserInfo, i as SessionDeviceInfo, n as SessionContext, r as Session, t as ExecutionContext } from "./context-BxqCoy9z.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 {
|
|
7
|
-
|
|
6
|
+
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-E_UZ_-fD.cjs";
|
|
7
|
+
//#region src/types/base.d.ts
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
CHANGED
|
@@ -3,5 +3,26 @@ import { defineConfig } from "./config.mjs";
|
|
|
3
3
|
import { a as SessionUserInfo, i as SessionDeviceInfo, n as SessionContext, r as Session, t as ExecutionContext } from "./context-COQtFcI5.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 {
|
|
7
|
-
|
|
6
|
+
import { i as isSchemaConfigObject, n as isInputConfigObject, r as isOutputConfigObject, t as isGeneratorConfigObject } from "./type-checks-SBt7tgFq.mjs";
|
|
7
|
+
//#region src/types/base.d.ts
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/base.ts"],"mappings":""}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
import { H as SchemaConfigObject, I as InputConfigObject, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-DMItzxbk.cjs";
|
|
2
2
|
import "./context-BxqCoy9z.cjs";
|
|
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
3
|
//#region src/type-checks.d.ts
|
|
24
4
|
/**
|
|
25
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -50,5 +30,5 @@ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns =
|
|
|
50
30
|
*/
|
|
51
31
|
declare function isSchemaConfigObject<TSpec, TOptions extends object>(config: unknown): config is SchemaConfigObject<TSpec, TOptions>;
|
|
52
32
|
//#endregion
|
|
53
|
-
export {
|
|
54
|
-
//# sourceMappingURL=type-checks-
|
|
33
|
+
export { isSchemaConfigObject as i, isInputConfigObject as n, isOutputConfigObject as r, isGeneratorConfigObject as t };
|
|
34
|
+
//# sourceMappingURL=type-checks-E_UZ_-fD.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-checks-E_UZ_-fD.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,25 +1,5 @@
|
|
|
1
1
|
import { H as SchemaConfigObject, I as InputConfigObject, f as OutputConfigObject, y as GeneratorConfigObject } from "./config-DMItzxbk.mjs";
|
|
2
2
|
import "./context-COQtFcI5.mjs";
|
|
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
3
|
//#region src/type-checks.d.ts
|
|
24
4
|
/**
|
|
25
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -50,5 +30,5 @@ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns =
|
|
|
50
30
|
*/
|
|
51
31
|
declare function isSchemaConfigObject<TSpec, TOptions extends object>(config: unknown): config is SchemaConfigObject<TSpec, TOptions>;
|
|
52
32
|
//#endregion
|
|
53
|
-
export {
|
|
54
|
-
//# sourceMappingURL=type-checks-
|
|
33
|
+
export { isSchemaConfigObject as i, isInputConfigObject as n, isOutputConfigObject as r, isGeneratorConfigObject as t };
|
|
34
|
+
//# sourceMappingURL=type-checks-SBt7tgFq.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-checks-SBt7tgFq.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-E_UZ_-fD.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-SBt7tgFq.mjs";
|
|
2
2
|
export { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
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.11",
|
|
136
136
|
"@stryke/string-format": "^0.17.37",
|
|
137
137
|
"@stryke/type-checks": "^0.6.28",
|
|
138
138
|
"@stryke/types": "^0.12.23",
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"typescript": "^6.0.3"
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": { "access": "public" },
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "40b691cc9fc13d59a33e6d835697083810978ae1"
|
|
149
149
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-checks-BXKHGENX.d.mts","names":[],"sources":["../src/types/base.ts","../src/type-checks.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-checks-U6YM1BhA.d.cts","names":[],"sources":["../src/types/base.ts","../src/type-checks.ts"],"mappings":";;;UAkBiB;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX;;;;;;;;;;iBCLc,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"}
|