@manifesto-ai/core 2.9.0 → 2.11.0
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 +5 -4
- package/dist/core/action-availability.d.ts +19 -1
- package/dist/core/compute.d.ts +5 -0
- package/dist/core/type-definition-utils.d.ts +18 -0
- package/dist/core/validate.d.ts +2 -0
- package/dist/core/validation-utils.d.ts +2 -1
- package/dist/index.d.ts +9 -5
- package/dist/index.js +1 -18499
- package/dist/index.js.map +1 -1
- package/dist/schema/action.d.ts +4 -0
- package/dist/schema/domain.d.ts +4 -0
- package/dist/schema/field.d.ts +2 -0
- package/package.json +6 -2
package/dist/schema/action.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { FieldSpec } from "./field.js";
|
|
3
|
+
import { TypeDefinition } from "./type-spec.js";
|
|
3
4
|
/**
|
|
4
5
|
* ActionSpec - Maps intents to flows
|
|
5
6
|
* An action defines what happens when a particular intent is dispatched.
|
|
@@ -7,7 +8,10 @@ import { FieldSpec } from "./field.js";
|
|
|
7
8
|
export declare const ActionSpec: z.ZodObject<{
|
|
8
9
|
flow: z.ZodType<import("./flow.js").FlowNode, unknown, z.core.$ZodTypeInternals<import("./flow.js").FlowNode, unknown>>;
|
|
9
10
|
input: z.ZodOptional<z.ZodType<FieldSpec, unknown, z.core.$ZodTypeInternals<FieldSpec, unknown>>>;
|
|
11
|
+
inputType: z.ZodOptional<z.ZodType<TypeDefinition, unknown, z.core.$ZodTypeInternals<TypeDefinition, unknown>>>;
|
|
12
|
+
params: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
10
13
|
available: z.ZodOptional<z.ZodType<import("./expr.js").ExprNode, unknown, z.core.$ZodTypeInternals<import("./expr.js").ExprNode, unknown>>>;
|
|
14
|
+
dispatchable: z.ZodOptional<z.ZodType<import("./expr.js").ExprNode, unknown, z.core.$ZodTypeInternals<import("./expr.js").ExprNode, unknown>>>;
|
|
11
15
|
description: z.ZodOptional<z.ZodString>;
|
|
12
16
|
}, z.core.$strip>;
|
|
13
17
|
export type ActionSpec = z.infer<typeof ActionSpec>;
|
package/dist/schema/domain.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
27
|
state: z.ZodObject<{
|
|
28
28
|
fields: z.ZodRecord<z.ZodString, z.ZodType<import("./field.js").FieldSpec, unknown, z.core.$ZodTypeInternals<import("./field.js").FieldSpec, unknown>>>;
|
|
29
|
+
fieldTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./type-spec.js").TypeDefinition, unknown, z.core.$ZodTypeInternals<import("./type-spec.js").TypeDefinition, unknown>>>>;
|
|
29
30
|
}, z.core.$strip>;
|
|
30
31
|
computed: z.ZodObject<{
|
|
31
32
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -37,7 +38,10 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
37
38
|
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
38
39
|
flow: z.ZodType<import("./flow.js").FlowNode, unknown, z.core.$ZodTypeInternals<import("./flow.js").FlowNode, unknown>>;
|
|
39
40
|
input: z.ZodOptional<z.ZodType<import("./field.js").FieldSpec, unknown, z.core.$ZodTypeInternals<import("./field.js").FieldSpec, unknown>>>;
|
|
41
|
+
inputType: z.ZodOptional<z.ZodType<import("./type-spec.js").TypeDefinition, unknown, z.core.$ZodTypeInternals<import("./type-spec.js").TypeDefinition, unknown>>>;
|
|
42
|
+
params: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
40
43
|
available: z.ZodOptional<z.ZodType<import("./expr.js").ExprNode, unknown, z.core.$ZodTypeInternals<import("./expr.js").ExprNode, unknown>>>;
|
|
44
|
+
dispatchable: z.ZodOptional<z.ZodType<import("./expr.js").ExprNode, unknown, z.core.$ZodTypeInternals<import("./expr.js").ExprNode, unknown>>>;
|
|
41
45
|
description: z.ZodOptional<z.ZodString>;
|
|
42
46
|
}, z.core.$strip>>;
|
|
43
47
|
meta: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/field.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { TypeDefinition } from "./type-spec.js";
|
|
2
3
|
/**
|
|
3
4
|
* Field type definitions
|
|
4
5
|
*/
|
|
@@ -43,5 +44,6 @@ export declare const FieldSpec: z.ZodType<FieldSpec>;
|
|
|
43
44
|
*/
|
|
44
45
|
export declare const StateSpec: z.ZodObject<{
|
|
45
46
|
fields: z.ZodRecord<z.ZodString, z.ZodType<FieldSpec, unknown, z.core.$ZodTypeInternals<FieldSpec, unknown>>>;
|
|
47
|
+
fieldTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TypeDefinition, unknown, z.core.$ZodTypeInternals<TypeDefinition, unknown>>>>;
|
|
46
48
|
}, z.core.$strip>;
|
|
47
49
|
export type StateSpec = z.infer<typeof StateSpec>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifesto-ai/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Manifesto Core - Pure semantic calculator for deterministic state computation",
|
|
5
5
|
"author": "eggplantiny <eggplantiny@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,10 +34,14 @@
|
|
|
34
34
|
"files": [
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"zod": "^4.3.6"
|
|
39
|
+
},
|
|
37
40
|
"devDependencies": {
|
|
38
41
|
"typescript": "^5.9.3",
|
|
39
42
|
"vite": "^8.0.3",
|
|
40
|
-
"vitest": "^4.1.2"
|
|
43
|
+
"vitest": "^4.1.2",
|
|
44
|
+
"zod": "^4.3.6"
|
|
41
45
|
},
|
|
42
46
|
"scripts": {
|
|
43
47
|
"build": "rm -rf dist && tsup && tsc -p tsconfig.build.json --emitDeclarationOnly --declarationMap false --outDir dist",
|