@elyx-code/project-logic-tree 0.0.6128 → 0.0.6129
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.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35150,7 +35150,7 @@ const fe = class fe {
|
|
|
35150
35150
|
// Meta
|
|
35151
35151
|
d(this, "initialized", !1);
|
|
35152
35152
|
d(this, "suggestion", !1);
|
|
35153
|
-
this.initialData = e, this.project = t, this.id = e.id, this.version = e.version;
|
|
35153
|
+
this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.index = e.index;
|
|
35154
35154
|
}
|
|
35155
35155
|
/*
|
|
35156
35156
|
Takes a bare-bones object generated by the AI,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -106,7 +106,7 @@ This variable's data-type 'entity' is a ${n.type} which doesn't have any methods
|
|
|
106
106
|
Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`):n.type===i.DefinitionEntity?o=`
|
|
107
107
|
This variable's data-type 'entity' is a definition entity which extends or implements a non-interactive 'built-in-base-entity'.s`:n.type===i.BuiltInBaseEntity&&(o=`
|
|
108
108
|
This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`);const l=s.find(p=>p.id===r.declaration.id);l?l.type!==i.FunctionDeclaration&&e.push(Q({id:`${r.id}--${B.InternalCallDeclarationIsNotFunctionDeclaration}`,code:B.InternalCallDeclarationIsNotFunctionDeclaration,severity:E.Error,message:`Entity of type "${r.type}" with id "${r.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
109
|
-
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${o}`,issue:null,entity:r}).error):e.push(Q({id:`${r.id}--${B.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:B.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:E.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${r.declaration}".${o}`,issue:null,entity:r}).error)}return e}const Te=class Te{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"index");c(this,"type",i.InternalCall);c(this,"declaration");c(this,"inputs",[]);c(this,"outputs",[]);c(this,"process",null);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"error",null);c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"parent");c(this,"project");c(this,"errors",[]);c(this,"initialized",!1);c(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version}static fromGenerationTarget(e,t){const n=A(e.parent),a=t.get(n),s=A(e.declaration),o=t.get(s),l=e.calledByEntry.map(R=>{const v=A(R);return t.get(v)}),p=e.calledBySuccess.map(R=>{const v=A(R);return t.get(v)}),u=e.calledByError.map(R=>{const v=A(R);return t.get(v)}),h={id:e.id,version:1,type:i.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:l,calledBySuccess:p,calledByError:u,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},f=b(h,t);return f.setParent(a),f.initChildren(),f}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{parent:{list:!1,types:Fe}},t);n=s.modifiedData;const o=A(n.parent),l=t.get(o);if(l){const p=Yo(l),u=p==null?void 0:p.entity;if(!u)a.push(new g({id:`${n.id}--${B.InternalCallParentMissingDataType}`,code:B.InternalCallParentMissingDataType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,issue:null}));else if(![i.DefinitionEntity,i.BuiltInBaseEntity,i.PrimitiveEntity].includes(u.type))a.push(new g({id:`${n.id}--${B.InternalCallParentDeclarationEntityInvalidType}`,code:B.InternalCallParentDeclarationEntityInvalidType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
|
|
109
|
+
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${o}`,issue:null,entity:r}).error):e.push(Q({id:`${r.id}--${B.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:B.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:E.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${r.declaration}".${o}`,issue:null,entity:r}).error)}return e}const Te=class Te{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"index");c(this,"type",i.InternalCall);c(this,"declaration");c(this,"inputs",[]);c(this,"outputs",[]);c(this,"process",null);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"error",null);c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"parent");c(this,"project");c(this,"errors",[]);c(this,"initialized",!1);c(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.index=e.index}static fromGenerationTarget(e,t){const n=A(e.parent),a=t.get(n),s=A(e.declaration),o=t.get(s),l=e.calledByEntry.map(R=>{const v=A(R);return t.get(v)}),p=e.calledBySuccess.map(R=>{const v=A(R);return t.get(v)}),u=e.calledByError.map(R=>{const v=A(R);return t.get(v)}),h={id:e.id,version:1,type:i.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:l,calledBySuccess:p,calledByError:u,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},f=b(h,t);return f.setParent(a),f.initChildren(),f}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{parent:{list:!1,types:Fe}},t);n=s.modifiedData;const o=A(n.parent),l=t.get(o);if(l){const p=Yo(l),u=p==null?void 0:p.entity;if(!u)a.push(new g({id:`${n.id}--${B.InternalCallParentMissingDataType}`,code:B.InternalCallParentMissingDataType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,issue:null}));else if(![i.DefinitionEntity,i.BuiltInBaseEntity,i.PrimitiveEntity].includes(u.type))a.push(new g({id:`${n.id}--${B.InternalCallParentDeclarationEntityInvalidType}`,code:B.InternalCallParentDeclarationEntityInvalidType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
|
|
110
110
|
This variable's data-type has an 'entity' field that references an entity with id '${u.id}' and of type '${u.type}'.`,issue:null}));else{const h=lp(u);let f="";h?u.methods.length?f=`
|
|
111
111
|
All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
|
|
112
112
|
- ${u.methods.map(D=>D.id).join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6129",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|