@mat3ra/esse 2026.6.16-0 → 2026.6.30-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.
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = compileTS;
6
7
  const fs_1 = __importDefault(require("fs"));
7
8
  const json_schema_to_typescript_1 = require("json-schema-to-typescript");
8
9
  const schemaUtils_1 = require("../esse/schemaUtils");
@@ -77,4 +78,3 @@ async function compileTS(schemaPath, savePath) {
77
78
  await fs_1.default.promises.appendFile(savePath, `${compiledSchema} \n`, { flag: "a+" });
78
79
  });
79
80
  }
80
- exports.default = compileTS;
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = setSchemaIds;
6
7
  const fs_1 = __importDefault(require("fs"));
7
8
  const path_1 = __importDefault(require("path"));
8
9
  const filesystem_1 = require("../utils/filesystem");
@@ -27,4 +28,3 @@ function setSchemaIds(schemaDir) {
27
28
  }
28
29
  });
29
30
  }
30
- exports.default = setSchemaIds;
@@ -2326,7 +2326,7 @@ export type SystemSchema = ({
2326
2326
  };
2327
2327
  /** Schema dist/js/schema/apse/file/applications/espresso/7.2/pw.x.json */
2328
2328
  export interface PwxMainSchema {
2329
- "&CONTROL"?: {
2329
+ CONTROL?: {
2330
2330
  /**
2331
2331
  * A string describing the task to be performed
2332
2332
  */
@@ -2445,7 +2445,7 @@ export interface PwxMainSchema {
2445
2445
  */
2446
2446
  trism?: boolean;
2447
2447
  };
2448
- "&SYSTEM"?: {
2448
+ SYSTEM?: {
2449
2449
  /**
2450
2450
  * @minItems 6
2451
2451
  * @maxItems 6
@@ -2459,7 +2459,7 @@ export interface PwxMainSchema {
2459
2459
  cosAC?: number;
2460
2460
  cosBC?: number;
2461
2461
  };
2462
- "&ELECTRONS"?: {
2462
+ ELECTRONS?: {
2463
2463
  /**
2464
2464
  * maximum number of iterations in a scf step. If exact exchange is active, this will affect the inner loops.
2465
2465
  */
@@ -2552,7 +2552,7 @@ export interface PwxMainSchema {
2552
2552
  */
2553
2553
  real_space?: boolean;
2554
2554
  };
2555
- "&IONS"?: ({
2555
+ IONS?: ({
2556
2556
  /**
2557
2557
  * CASE: calculation == 'relax'
2558
2558
  */
@@ -2573,7 +2573,7 @@ export interface PwxMainSchema {
2573
2573
  */
2574
2574
  ion_dynamics?: "beeman";
2575
2575
  }) | null;
2576
- "&CELL"?: ({
2576
+ CELL?: ({
2577
2577
  /**
2578
2578
  * CASE ( calculation == 'vc-relax' )
2579
2579
  */
package/dist/js/types.js CHANGED
@@ -29,7 +29,7 @@ var Name;
29
29
  Name["VASPInputDataManager"] = "VASPInputDataManager";
30
30
  Name["VASPNEBInputDataManager"] = "VASPNEBInputDataManager";
31
31
  Name["NWChemInputDataManager"] = "NWChemInputDataManager";
32
- })(Name = exports.Name || (exports.Name = {}));
32
+ })(Name || (exports.Name = Name = {}));
33
33
  /**
34
34
  * This interface was referenced by `ContextProvidersDirectoryEnum`'s JSON-Schema
35
35
  * via the `definition` "ContextProviderNameEnum".
@@ -61,7 +61,7 @@ var ContextProviderNameEnum;
61
61
  ContextProviderNameEnum["VASPInputDataManager"] = "VASPInputDataManager";
62
62
  ContextProviderNameEnum["VASPNEBInputDataManager"] = "VASPNEBInputDataManager";
63
63
  ContextProviderNameEnum["NWChemInputDataManager"] = "NWChemInputDataManager";
64
- })(ContextProviderNameEnum = exports.ContextProviderNameEnum || (exports.ContextProviderNameEnum = {}));
64
+ })(ContextProviderNameEnum || (exports.ContextProviderNameEnum = ContextProviderNameEnum = {}));
65
65
  /**
66
66
  * The type of the message to distinguish the direction of the message.
67
67
  */
@@ -69,7 +69,7 @@ var Type;
69
69
  (function (Type) {
70
70
  Type["fromIframeToHost"] = "from-iframe-to-host";
71
71
  Type["fromHostToIframe"] = "from-host-to-iframe";
72
- })(Type = exports.Type || (exports.Type = {}));
72
+ })(Type || (exports.Type = Type = {}));
73
73
  /**
74
74
  * The action to be performed upon receiving the message.
75
75
  */
@@ -78,7 +78,7 @@ var Action;
78
78
  Action["setData"] = "set-data";
79
79
  Action["getData"] = "get-data";
80
80
  Action["info"] = "info";
81
- })(Action = exports.Action || (exports.Action = {}));
81
+ })(Action || (exports.Action = Action = {}));
82
82
  /**
83
83
  * This interface was referenced by `WorkflowSubworkflowConvergenceEnumOptions`'s JSON-Schema
84
84
  * via the `definition` "ConvergenceParameterNameEnum".
@@ -88,4 +88,4 @@ var ConvergenceParameterNameEnum;
88
88
  ConvergenceParameterNameEnum["N_k"] = "N_k";
89
89
  ConvergenceParameterNameEnum["N_k_nonuniform"] = "N_k_nonuniform";
90
90
  ConvergenceParameterNameEnum["N_k_nonuniform_2D"] = "N_k_nonuniform_2D";
91
- })(ConvergenceParameterNameEnum = exports.ConvergenceParameterNameEnum || (exports.ConvergenceParameterNameEnum = {}));
91
+ })(ConvergenceParameterNameEnum || (exports.ConvergenceParameterNameEnum = ConvergenceParameterNameEnum = {}));
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.validateAndClean = exports.validate = exports.getValidator = void 0;
6
+ exports.getValidator = getValidator;
7
+ exports.validate = validate;
8
+ exports.validateAndClean = validateAndClean;
7
9
  const ajv_1 = __importDefault(require("ajv"));
8
10
  const ajv_formats_1 = __importDefault(require("ajv-formats"));
9
11
  const schemaUtils_1 = require("../esse/schemaUtils");
@@ -23,7 +25,7 @@ function addAdditionalPropertiesToSchema(schema, additionalProperties = false) {
23
25
  });
24
26
  }
25
27
  const ajvConfig = {
26
- strict: false,
28
+ strict: false, // TODO: adjust schemas and enable strict mode
27
29
  useDefaults: true,
28
30
  /**
29
31
  * discriminator fixes default values in oneOf
@@ -80,7 +82,6 @@ function getValidator(jsonSchema, { clean, coerceTypes, useDefaults = true, }) {
80
82
  }
81
83
  return validate;
82
84
  }
83
- exports.getValidator = getValidator;
84
85
  /**
85
86
  * Validates a given example against the schema.
86
87
  * @param example example to validate.
@@ -95,7 +96,6 @@ function validate(data, jsonSchema) {
95
96
  errors: validator.errors,
96
97
  };
97
98
  }
98
- exports.validate = validate;
99
99
  /**
100
100
  * Validates and clean a given example against the schema
101
101
  * @param example example to validate.
@@ -110,4 +110,3 @@ function validateAndClean(data, jsonSchema, { coerceTypes = false, useDefaults =
110
110
  errors: validator.errors,
111
111
  };
112
112
  }
113
- exports.validateAndClean = validateAndClean;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.safeParseJSON = exports.isInstanceOf = void 0;
3
+ exports.isInstanceOf = isInstanceOf;
4
+ exports.safeParseJSON = safeParseJSON;
4
5
  function isInstanceOf(object, type) {
5
6
  return Object.prototype.toString.call(object).slice(8, -1) === type;
6
7
  }
7
- exports.isInstanceOf = isInstanceOf;
8
8
  /**
9
9
  * Makes sure that text representing arrays is parsed into Arrays.
10
10
  */
@@ -12,4 +12,3 @@ function safeParseJSON(string) {
12
12
  const obj = JSON.parse(string);
13
13
  return string[0] === "[" ? Object.keys(obj).map((key) => obj[key]) : obj;
14
14
  }
15
- exports.safeParseJSON = safeParseJSON;
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.walkDirSync = exports.walkDir = void 0;
6
+ exports.walkDir = walkDir;
7
+ exports.walkDirSync = walkDirSync;
7
8
  /* eslint-disable no-await-in-loop */
8
9
  /* eslint-disable no-restricted-syntax */
9
10
  const fs_1 = __importDefault(require("fs"));
@@ -21,7 +22,6 @@ async function walkDir(dir, callback) {
21
22
  }
22
23
  }
23
24
  }
24
- exports.walkDir = walkDir;
25
25
  function walkDirSync(dir, callback) {
26
26
  const subDirs = fs_1.default.readdirSync(dir);
27
27
  for (const subDir of subDirs) {
@@ -35,4 +35,3 @@ function walkDirSync(dir, callback) {
35
35
  }
36
36
  }
37
37
  }
38
- exports.walkDirSync = walkDirSync;
@@ -1,5 +1,5 @@
1
1
  {
2
- "&CONTROL": {
2
+ "CONTROL": {
3
3
  "calculation": "scf",
4
4
  "title": "",
5
5
  "verbosity": "low",
@@ -12,7 +12,7 @@
12
12
  "prefix": "__prefix__",
13
13
  "pseudo_dir": "{{ JOB_WORK_DIR }}/pseudo"
14
14
  },
15
- "&SYSTEM": {
15
+ "SYSTEM": {
16
16
  "ibrav": 0,
17
17
  "nat": 2,
18
18
  "ntyp": 2,
@@ -37,15 +37,15 @@
37
37
  ]
38
38
  ]
39
39
  },
40
- "&ELECTRONS": {
40
+ "ELECTRONS": {
41
41
  "diagonalization": "david",
42
42
  "diago_david_ndim": 4,
43
43
  "diago_full_acc": true,
44
44
  "mixing_beta": 0.3,
45
45
  "startingwfc": "atomic+random"
46
46
  },
47
- "&IONS": null,
48
- "&CELL": null,
47
+ "IONS": null,
48
+ "CELL": null,
49
49
  "ATOMIC_SPECIES": {
50
50
  "values": [
51
51
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/esse",
3
- "version": "2026.6.16-0",
3
+ "version": "2026.6.30-0",
4
4
  "description": "Mat3ra's Excellent Source of Schemas and Examples (ESSE) for Digital Materials R&D",
5
5
  "scripts": {
6
6
  "transpile": "tsc -p tsconfig-transpile.json",
@@ -17,15 +17,15 @@
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "https://github.com/Exabyte-io/esse.git"
20
+ "url": "https://github.com/mat3ra/esse.git"
21
21
  },
22
22
  "main": "dist/js/esse/index.js",
23
23
  "author": "Mat3ra.com",
24
24
  "email": "info@mat3ra.com",
25
25
  "bugs": {
26
- "url": "https://github.com/Exabyte-io/exabyte-esse/issues"
26
+ "url": "https://github.com/mat3ra/esse/issues"
27
27
  },
28
- "homepage": "https://github.com/Exabyte-io/esse",
28
+ "homepage": "https://github.com/mat3ra/esse",
29
29
  "devDependencies": {
30
30
  "@exabyte-io/eslint-config": "^2025.5.13-0",
31
31
  "@mat3ra/tsconfig": "^2024.6.3-0",
@@ -58,23 +58,23 @@
58
58
  },
59
59
  "license": "Apache-2.0",
60
60
  "dependencies": {
61
- "@babel/cli": "^7.28.6",
62
- "@babel/core": "^7.29.0",
63
- "@babel/eslint-parser": "^7.28.6",
61
+ "@babel/cli": "^7.29.7",
62
+ "@babel/core": "^7.29.7",
63
+ "@babel/eslint-parser": "^7.29.7",
64
64
  "@babel/plugin-proposal-class-properties": "^7.18.6",
65
- "@babel/preset-env": "^7.29.2",
66
- "@babel/preset-react": "^7.28.5",
67
- "@babel/preset-typescript": "^7.28.5",
68
- "@babel/register": "^7.28.6",
69
- "@babel/runtime-corejs3": "^7.29.2",
70
- "@mat3ra/utils": "^2026.4.15-1",
65
+ "@babel/preset-env": "^7.29.7",
66
+ "@babel/preset-react": "^7.29.7",
67
+ "@babel/preset-typescript": "^7.29.7",
68
+ "@babel/register": "^7.29.7",
69
+ "@babel/runtime-corejs3": "^7.29.7",
70
+ "@mat3ra/utils": "^2026.6.11-0",
71
71
  "@types/chai": "^4.3.20",
72
72
  "@types/js-yaml": "^4.0.9",
73
73
  "@types/json-schema-merge-allof": "^0.6.5",
74
74
  "@types/mocha": "^10.0.10",
75
75
  "ajv": "^8.20.0",
76
76
  "ajv-formats": "^2.1.1",
77
- "js-yaml": "^4.1.1",
77
+ "js-yaml": "^4.3.0",
78
78
  "json-schema": "^0.4.0",
79
79
  "json-schema-deref-sync": "^0.14.0",
80
80
  "json-schema-merge-allof": "^0.8.1",
@@ -5,16 +5,16 @@
5
5
  "additionalProperties": false,
6
6
  "type": "object",
7
7
  "properties": {
8
- "&CONTROL": {
8
+ "CONTROL": {
9
9
  "$ref": "./pw.x/control.json"
10
10
  },
11
- "&SYSTEM": {
11
+ "SYSTEM": {
12
12
  "$ref": "./pw.x/system.json"
13
13
  },
14
- "&ELECTRONS": {
14
+ "ELECTRONS": {
15
15
  "$ref": "./pw.x/electrons.json"
16
16
  },
17
- "&IONS": {
17
+ "IONS": {
18
18
  "oneOf": [
19
19
  {
20
20
  "$ref": "./pw.x/ions.json"
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ]
26
26
  },
27
- "&CELL": {
27
+ "CELL": {
28
28
  "oneOf": [
29
29
  {
30
30
  "$ref": "./pw.x/cell.json"