@manifesto-ai/compiler 5.0.0 → 5.0.1
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 +38 -27
- package/dist/analyzer/validator.d.ts +0 -1
- package/dist/chunk-C5V4IBWA.js +23 -0
- package/dist/{chunk-HOS3TLHW.js → chunk-FZGHNM7N.js} +1 -1
- package/dist/{chunk-A356Y7I6.js → chunk-ZYXA2NXJ.js} +1 -1
- package/dist/esbuild.js +1 -1
- package/dist/evaluation/evaluate-patch.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lexer/lexer.d.ts +0 -1
- package/dist/node-loader.js +1 -1
- package/dist/parser/precedence.d.ts +1 -1
- package/dist/rollup.js +1 -1
- package/dist/rspack.js +1 -1
- package/dist/vite.js +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +9 -9
- package/dist/chunk-JYNK3VUK.js +0 -23
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as j,A as ze,B as He,C as Ke,D as x,E as Xe,F as Ye,G as R,H as W,I as z,J as H,K,L as X,M as Y,N as J,O as Q,P as Z,Q as ee,R as te,S as ne,T as re,U as ie,V as Je,W as w,X as D,Y as P,Z as Qe,_ as v,a as Ae,aa as Ze,b as Oe,ba as et,c as Te,ca as tt,d as be,e as Fe,f as Ce,g as Se,h as _e,i as Re,j as we,k as De,l as T,m as Pe,n as ve,o as je,p as Ie,q as Me,r as Le,s as Ue,t as Ve,u as qe,v as b,w as Ge,x as Be,y as _,z as We}from"./chunk-
|
|
1
|
+
import{$ as j,A as ze,B as He,C as Ke,D as x,E as Xe,F as Ye,G as R,H as W,I as z,J as H,K,L as X,M as Y,N as J,O as Q,P as Z,Q as ee,R as te,S as ne,T as re,U as ie,V as Je,W as w,X as D,Y as P,Z as Qe,_ as v,a as Ae,aa as Ze,b as Oe,ba as et,c as Te,ca as tt,d as be,e as Fe,f as Ce,g as Se,h as _e,i as Re,j as we,k as De,l as T,m as Pe,n as ve,o as je,p as Ie,q as Me,r as Le,s as Ue,t as Ve,u as qe,v as b,w as Ge,x as Be,y as _,z as We}from"./chunk-C5V4IBWA.js";var I={E001:{code:"E001",message:"$runtime.* and $context.* can be used only in bound action flow expressions",category:"semantic"},E002:{code:"E002",message:"Dollar namespace values cannot be used in state initializers",category:"semantic"},E003:{code:"E003",message:"Invalid or retired dollar namespace reference",category:"semantic"},E004:{code:"E004",message:"Identifier starts with reserved prefix '__sys__'",category:"syntax"},E005:{code:"E005",message:"available expression must be pure over schema and snapshot only",category:"semantic"},E006:{code:"E006",message:"fail must be inside a guard (when, once, or onceIntent)",category:"semantic"},E007:{code:"E007",message:"stop must be inside a guard (when, once, or onceIntent)",category:"semantic"},E008:{code:"E008",message:"stop message suggests waiting/pending - use 'Already processed' style instead",category:"semantic"},E009:{code:"E009",message:"Primitive aggregation (sum, min, max) only allowed in computed",category:"semantic"},E010:{code:"E010",message:"Primitive aggregation does not allow composition - use direct reference only",category:"semantic"},E011:{code:"E011",message:"reduce/fold/scan is forbidden - use sum, min, max for aggregation",category:"semantic"},E013:{code:"E013",message:"Circular include detected",category:"semantic"},E014:{code:"E014",message:"Include expansion depth exceeds limit",category:"semantic"},E015:{code:"E015",message:"Include target is not a declared flow",category:"semantic"},E016:{code:"E016",message:"Include not allowed in InnerStmt position",category:"semantic"},E017:{code:"E017",message:"once() not allowed in flow",category:"semantic"},E018:{code:"E018",message:"onceIntent not allowed in flow",category:"semantic"},E019:{code:"E019",message:"patch not allowed in flow",category:"semantic"},E020:{code:"E020",message:"effect not allowed in flow",category:"semantic"},E021:{code:"E021",message:"Flow parameter name conflicts with top-level identifier",category:"semantic"},E022:{code:"E022",message:"Flow and action share the same name",category:"semantic"},E023:{code:"E023",message:"Wrong number of arguments for included flow",category:"semantic"},E024:{code:"E024",message:"Include argument type mismatch",category:"type"},E030:{code:"E030",message:"Collection element type does not have an 'id' field",category:"type"},E030a:{code:"E030a",message:"Collection element 'id' field is not a primitive type",category:"type"},E030b:{code:"E030b",message:"Duplicate '.id' values detected in state initializer",category:"type"},E031:{code:"E031",message:"updateById/removeById not allowed in this context",category:"semantic"},E032:{code:"E032",message:"Nested transform primitive",category:"semantic"},E033:{code:"E033",message:"Transform primitive collection argument is not a state path",category:"semantic"},E034:{code:"E034",message:"Transform primitive in guard condition",category:"semantic"},E035:{code:"E035",message:"Transform primitive in available condition",category:"semantic"},E040:{code:"E040",message:"Circular computed dependency",category:"semantic"},E041:{code:"E041",message:"Computed references undeclared identifier",category:"semantic"},E042:{code:"E042",message:"State initializer references non-constant value",category:"semantic"},E043:{code:"E043",message:"Non-trivial union type cannot be lowered to FieldSpec",category:"type"},E044:{code:"E044",message:"Recursive named type cannot be lowered to FieldSpec",category:"type"},E045:{code:"E045",message:"Nullable type cannot be lowered to FieldSpec",category:"type"},E046:{code:"E046",message:"Record type cannot be lowered to FieldSpec",category:"type"},E047:{code:"E047",message:"dispatchable expression must be pure (state/computed/action parameters only)",category:"semantic"},E048:{code:"E048",message:"Transform primitive in dispatchable condition",category:"semantic"},E049:{code:"E049",message:"Invalid literal clamp bounds",category:"semantic"},E050:{code:"E050",message:"Invalid match() form",category:"semantic"},E051:{code:"E051",message:"Duplicate match() key",category:"semantic"},E052:{code:"E052",message:"Invalid argmax()/argmin() form",category:"semantic"},E053:{code:"E053",message:"@meta can attach only to domain, type, type field, state field, computed, or action declarations",category:"syntax"},E054:{code:"E054",message:"Action-parameter annotations are not part of the current MEL syntax",category:"syntax"},E055:{code:"E055",message:"Annotation payloads must be JSON-like literals",category:"semantic"},E056:{code:"E056",message:"Annotation payload nesting exceeds the current MEL limit of 2 levels",category:"semantic"},E057:{code:"E057",message:"Annotation target does not map to the emitted DomainSchema",category:"semantic"},E058:{code:"E058",message:"Source-map target does not map to the emitted DomainSchema",category:"semantic"},E_STALE_MODULE:{code:"E_STALE_MODULE",message:"baseModule source hash does not match baseSource",category:"semantic"},E_FRAGMENT_PARSE_FAILED:{code:"E_FRAGMENT_PARSE_FAILED",message:"Fragment failed its operation-specific parser",category:"syntax"},E_FRAGMENT_SCOPE_VIOLATION:{code:"E_FRAGMENT_SCOPE_VIOLATION",message:"Fragment violates the requested edit scope",category:"semantic"},E_TARGET_NOT_FOUND:{code:"E_TARGET_NOT_FOUND",message:"Edit target does not exist",category:"semantic"},E_TARGET_KIND_MISMATCH:{code:"E_TARGET_KIND_MISMATCH",message:"Edit target kind is invalid for the requested operation",category:"semantic"},E_UNSAFE_RENAME_AMBIGUOUS:{code:"E_UNSAFE_RENAME_AMBIGUOUS",message:"Rename cannot update references safely and deterministically",category:"semantic"},E_REMOVE_BLOCKED_BY_REFERENCES:{code:"E_REMOVE_BLOCKED_BY_REFERENCES",message:"Remove would leave references dangling",category:"semantic"},E_UNDEFINED:{code:"E_UNDEFINED",message:"Undefined identifier",category:"semantic"},E_DUPLICATE:{code:"E_DUPLICATE",message:"Duplicate identifier",category:"semantic"},E_INVALID_ACCESS:{code:"E_INVALID_ACCESS",message:"Invalid access to identifier in this context",category:"semantic"},E_UNGUARDED_STMT:{code:"E_UNGUARDED_STMT",message:"Statement must be inside a guard (when or once)",category:"semantic"},E_UNGUARDED_PATCH:{code:"E_UNGUARDED_PATCH",message:"Patch must be inside a guard",category:"semantic"},E_UNGUARDED_EFFECT:{code:"E_UNGUARDED_EFFECT",message:"Effect must be inside a guard",category:"semantic"},E_ARG_COUNT:{code:"E_ARG_COUNT",message:"Wrong number of arguments",category:"type"},E_TYPE_MISMATCH:{code:"E_TYPE_MISMATCH",message:"Type mismatch",category:"type"},W_NON_BOOL_COND:{code:"W_NON_BOOL_COND",message:"Condition may not be boolean",category:"semantic"},W_UNUSED:{code:"W_UNUSED",message:"Unused identifier",category:"semantic"},W012:{code:"W012",message:"Anonymous object type in state field - use named type declaration instead",category:"type"},MEL_LEXER:{code:"MEL_LEXER",message:"Lexer error",category:"syntax"},MEL_PARSER:{code:"MEL_PARSER",message:"Parser error",category:"syntax"}};function at(e){return I[e]}function ot(e){let t=I[e];return t?`${e}: ${t.message}`:e}function M(e,t){let{code:n,message:a,location:i}=e;if(!i||i.start.line===0&&i.start.column===0)return`[${n}] ${a}`;let{line:p,column:c}=i.start,g=`[${n}] ${a} (${p}:${c})`;if(!t)return g;let y=t.split(`
|
|
2
2
|
`)[p-1];if(!y)return g;let u=String(p).padStart(4," "),d=`${u} | ${y}`,s=Math.max(1,i.end.line===i.start.line?Math.min(i.end.column-c,y.length-c+1):1),E=`${" ".repeat(u.length+3+c-1)}${"^".repeat(s)}`;return`${g}
|
|
3
3
|
${d}
|
|
4
4
|
${E}`}function ae(e,t){return e.map(n=>M(n,t)).join(`
|
package/dist/lexer/lexer.d.ts
CHANGED
package/dist/node-loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n}from"./chunk-
|
|
1
|
+
import{c as n}from"./chunk-FZGHNM7N.js";import"./chunk-C5V4IBWA.js";import{readFile as i}from"fs/promises";import{fileURLToPath as c}from"url";function u(o){let[t]=o.split("?",1),[r]=t.split("#",1);return r}function s(o){return u(o).endsWith(".mel")}function a(o){try{return c(o)}catch{return o}}var h=async(o,t,r)=>s(o)?{...await r(o,t),shortCircuit:!0}:r(o,t),p=async(o,t,r)=>{if(!s(o))return r(o,t);let e=await i(new URL(o),"utf8");return{format:"module",source:n(e,a(o)),shortCircuit:!0}};export{p as load,h as resolve};
|
package/dist/rollup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-ZYXA2NXJ.js";import"./chunk-FZGHNM7N.js";import"./chunk-C5V4IBWA.js";var l=e.rollup,t=l;export{t as default,l as melPlugin};
|
package/dist/rspack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-ZYXA2NXJ.js";import"./chunk-FZGHNM7N.js";import"./chunk-C5V4IBWA.js";var t=e.rspack,o=t;export{o as default,t as melPlugin};
|
package/dist/vite.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-ZYXA2NXJ.js";import"./chunk-FZGHNM7N.js";import"./chunk-C5V4IBWA.js";var t=e.vite,o=t;export{o as default,t as melPlugin};
|
package/dist/webpack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-ZYXA2NXJ.js";import"./chunk-FZGHNM7N.js";import"./chunk-C5V4IBWA.js";var t=e.webpack,o=t;export{o as default,t as melPlugin};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifesto-ai/compiler",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Manifesto Compiler - MEL (Manifesto Expression Language) to DomainSchema compiler",
|
|
5
5
|
"author": "eggplantiny <eggplantiny@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@anthropic-ai/sdk": "^0.
|
|
64
|
-
"@manifesto-ai/core": "^5.
|
|
63
|
+
"@anthropic-ai/sdk": "^0.91.1",
|
|
64
|
+
"@manifesto-ai/core": "^5.1.0",
|
|
65
65
|
"openai": "^4.0.0",
|
|
66
66
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
67
67
|
"zod": "^4.3.6"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"unplugin": "^3.0.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@anthropic-ai/sdk": "^0.
|
|
84
|
+
"@anthropic-ai/sdk": "^0.91.1",
|
|
85
85
|
"@types/node": "^25.5.2",
|
|
86
86
|
"@types/react": "^19.2.14",
|
|
87
87
|
"dotenv": "^17.4.2",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"vitest": "^4.1.2",
|
|
98
98
|
"webpack": "^5.106.1",
|
|
99
99
|
"zod": "^4.3.6",
|
|
100
|
-
"@manifesto-ai/core": "5.
|
|
100
|
+
"@manifesto-ai/core": "5.1.0"
|
|
101
101
|
},
|
|
102
102
|
"files": [
|
|
103
103
|
"dist"
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"scripts": {
|
|
106
106
|
"build": "rm -rf dist && tsup && tsc -p tsconfig.build.json --emitDeclarationOnly --declarationMap false --outDir dist",
|
|
107
107
|
"clean": "rm -rf dist",
|
|
108
|
-
"lint": "
|
|
109
|
-
"test": "node ../../
|
|
110
|
-
"test:coverage": "node ../../
|
|
111
|
-
"test:watch": "node ../../
|
|
108
|
+
"lint": "node ../../node_modules/@biomejs/biome/bin/biome check src",
|
|
109
|
+
"test": "node ../../scripts/run-vitest.mjs run",
|
|
110
|
+
"test:coverage": "node ../../scripts/run-vitest.mjs run --coverage",
|
|
111
|
+
"test:watch": "node ../../scripts/run-vitest.mjs",
|
|
112
112
|
"example": "npx tsx examples/simple-compile.ts",
|
|
113
113
|
"cli": "node ./dist/cli/index.js"
|
|
114
114
|
}
|