@elyx-code/project-logic-tree 0.0.595 → 0.0.596

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 CHANGED
@@ -30260,92 +30260,82 @@ const le = class le {
30260
30260
  );
30261
30261
  i = s.modifiedData;
30262
30262
  const o = pf(i, t);
30263
- if (console.log(
30264
- "Checking that the argument declaration does not overlap with the implemented signature"
30265
- ), i.parent) {
30263
+ if (i.parent) {
30266
30264
  const d = t.get(
30267
30265
  P(i.parent)
30268
30266
  );
30269
- if (d)
30270
- if (console.log("Parent found"), $e.includes(d.type)) {
30271
- console.log("Parent is an entry point");
30272
- const u = d.implements;
30273
- if (u)
30274
- if (console.log("Parent implements a descriptor. Argument type: ", u.argumentsType), u.argumentsType === V.Fixed) {
30275
- console.log("Descriptor has fixed arguments");
30276
- const y = u.fixedArguments.find(
30277
- ($) => $.name === i.name
30278
- ), f = u.fixedArguments.filter(($) => !d.inputs.find(
30267
+ if (d && $e.includes(d.type)) {
30268
+ const u = d.implements;
30269
+ if (u)
30270
+ if (u.argumentsType === V.Fixed) {
30271
+ const y = u.fixedArguments.find(
30272
+ ($) => $.name === i.name
30273
+ ), f = u.fixedArguments.filter(($) => !d.inputs.find(
30274
+ // @ts-ignore
30275
+ (Ct) => (
30279
30276
  // @ts-ignore
30280
- (Ct) => (
30281
- // @ts-ignore
30282
- Ct.type === r.ArgumentDeclaration && // @ts-ignore
30283
- Ct.name === $.name
30284
- )
30285
- )), m = (
30277
+ Ct.type === r.ArgumentDeclaration && // @ts-ignore
30278
+ Ct.name === $.name
30279
+ )
30280
+ )), m = (
30281
+ // @ts-ignore
30282
+ d.inputs.filter(
30286
30283
  // @ts-ignore
30287
- d.inputs.filter(
30284
+ ($) => (
30288
30285
  // @ts-ignore
30289
- ($) => (
30290
- // @ts-ignore
30291
- $.type === r.ArgumentDeclaration
30292
- )
30286
+ $.type === r.ArgumentDeclaration
30293
30287
  )
30294
- ), R = m.find(
30295
- ($) => $.name === i.name
30296
- ), g = m.length ? `The parent entity already implements the following arguments: ${M(
30297
- m.map(
30298
- ($) => `'${$.id}' (${$.name})`
30299
- ),
30300
- ", ",
30301
- " and "
30302
- )}.` : "The parent entity does not yet have any implemented arguments.", A = f.length ? `The parent entity is still missing the following arguments in the implementation: ${M(
30303
- f.map(
30304
- ($) => `'${$.id}' (${$.name})`
30305
- ),
30306
- ", ",
30307
- " and "
30308
- )}.` : "The parent entity has all the arguments it needs implemented.";
30309
- y ? R && (console.log("Argument with the same name already implemented"), a.push(
30310
- new T({
30311
- id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
30312
- code: b.NoOverlapWithImplementedSignature,
30313
- severity: h.Error,
30314
- message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with fixed arguments.
30288
+ )
30289
+ ), R = m.find(
30290
+ ($) => $.name === i.name
30291
+ ), g = m.length ? `The parent entity already implements the following arguments: ${M(
30292
+ m.map(
30293
+ ($) => `'${$.id}' (${$.name})`
30294
+ ),
30295
+ ", ",
30296
+ " and "
30297
+ )}.` : "The parent entity does not yet have any implemented arguments.", A = f.length ? `The parent entity is still missing the following arguments in the implementation: ${M(
30298
+ f.map(
30299
+ ($) => `'${$.id}' (${$.name})`
30300
+ ),
30301
+ ", ",
30302
+ " and "
30303
+ )}.` : "The parent entity has all the arguments it needs implemented.";
30304
+ y ? R && a.push(
30305
+ new T({
30306
+ id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
30307
+ code: b.NoOverlapWithImplementedSignature,
30308
+ severity: h.Error,
30309
+ message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with fixed arguments.
30315
30310
  Adding a new argument would make the implementation invalid. An argument with the same name already exists in the parent entity.
30316
30311
  ${g}
30317
30312
  ${A}`,
30318
- issue: null
30319
- })
30320
- )) : (console.log("No argument with the same name in the descriptor"), a.push(
30321
- new T({
30322
- id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
30323
- code: b.NoOverlapWithImplementedSignature,
30324
- severity: h.Error,
30325
- message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with fixed arguments.
30313
+ issue: null
30314
+ })
30315
+ ) : a.push(
30316
+ new T({
30317
+ id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
30318
+ code: b.NoOverlapWithImplementedSignature,
30319
+ severity: h.Error,
30320
+ message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with fixed arguments.
30326
30321
  Adding a new argument would make the implementation invalid. There are no arguments in the descriptor with the same name.
30327
30322
  ${g}
30328
30323
  ${A}`,
30329
- issue: null
30330
- })
30331
- ));
30332
- } else
30333
- u.argumentsType === V.Dynamic ? console.log("Descriptor has dynamic arguments") : u.argumentsType === V.None && (console.log("Descriptor has no arguments"), a.push(
30334
- new T({
30335
- id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
30336
- code: b.NoOverlapWithImplementedSignature,
30337
- severity: h.Error,
30338
- message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with no arguments.
30324
+ issue: null
30325
+ })
30326
+ );
30327
+ } else
30328
+ u.argumentsType === V.Dynamic || u.argumentsType === V.None && a.push(
30329
+ new T({
30330
+ id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
30331
+ code: b.NoOverlapWithImplementedSignature,
30332
+ severity: h.Error,
30333
+ message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with no arguments.
30339
30334
  Adding a new argument would make the implementation invalid.`,
30340
- issue: null
30341
- })
30342
- ));
30343
- else
30344
- console.log("Parent does not implement a descriptor");
30345
- } else
30346
- console.log("Parent is not an entry point");
30347
- else
30348
- console.log("Parent not found");
30335
+ issue: null
30336
+ })
30337
+ );
30338
+ }
30349
30339
  }
30350
30340
  return a.push(
30351
30341
  ...s.errors,
@@ -40078,11 +40068,10 @@ function x9(n) {
40078
40068
  }
40079
40069
  const nr = {}, ea = {};
40080
40070
  async function $9(n, e = {}) {
40081
- console.log("Fetching project", n, "with options", e);
40082
40071
  const t = {
40083
40072
  ...cG
40084
40073
  };
40085
- return t.id = n.id, e.empty ? (console.log("Returning empty project"), {
40074
+ return t.id = n.id, e.empty ? {
40086
40075
  data: {
40087
40076
  id: n.id,
40088
40077
  type: r.Project,
@@ -40101,30 +40090,28 @@ async function $9(n, e = {}) {
40101
40090
  searches: [],
40102
40091
  events: []
40103
40092
  }
40104
- }) : (console.log("Returning project data", t), { data: t });
40093
+ } : { data: t };
40105
40094
  }
40106
40095
  function V9(n) {
40107
- console.log("Initializing project", n);
40108
40096
  const e = new x(n);
40109
40097
  return B9(e), w9(e), O9(e), _9(e), M9(e), N9(e), x9(e), e.initChildren(), e;
40110
40098
  }
40111
40099
  async function g3(n, e = {}) {
40112
40100
  try {
40113
- if (console.log("Getting project", n, "with options", e), n.id && nr[n.id])
40114
- return console.log("Project already cached", n.id), nr[n.id];
40101
+ if (n.id && nr[n.id])
40102
+ return nr[n.id];
40115
40103
  if (n.id && ea[n.id])
40116
- return console.log("Project already being fetched", n.id), await ea[n.id], nr[n.id];
40104
+ return await ea[n.id], nr[n.id];
40117
40105
  const t = $9(n, e);
40118
40106
  n.id && (ea[n.id] = t);
40119
40107
  const i = await t;
40120
40108
  if (i.data) {
40121
- console.log("Fetched project", i.data);
40122
40109
  const a = V9(i.data);
40123
- return nr[n.id] = a, n.id && (console.log("Deleting currently fetching", n.id), delete ea[n.id]), console.log("Returning project state", a), a;
40110
+ return nr[n.id] = a, n.id && delete ea[n.id], a;
40124
40111
  }
40125
40112
  return null;
40126
- } catch (t) {
40127
- return console.error("Error fetching project", t), null;
40113
+ } catch {
40114
+ return null;
40128
40115
  }
40129
40116
  }
40130
40117
  function I3(n) {