@mat3ra/wode 2025.11.26-0 → 2025.11.26-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/dist/js/context/providers/by_application/ExecutableContextProvider.js +9 -0
- package/dist/js/context/providers/by_application/espresso/QENEBContextProvider.js +1 -0
- package/dist/js/context/providers/by_application/espresso/QEPWXContextProvider.js +1 -0
- package/dist/js/context/providers/by_application/nwchem/NWChemTotalEnergyContextProvider.js +1 -0
- package/dist/js/context/providers/by_application/vasp/VASPContextProvider.js +1 -0
- package/dist/js/context/providers/by_application/vasp/VASPNEBContextProvider.js +1 -0
- package/package.json +3 -3
- package/src/js/context/providers/by_application/ExecutableContextProvider.js +7 -0
- package/src/js/context/providers/by_application/espresso/QENEBContextProvider.js +2 -0
- package/src/js/context/providers/by_application/espresso/QEPWXContextProvider.js +2 -0
- package/src/js/context/providers/by_application/nwchem/NWChemTotalEnergyContextProvider.js +3 -0
- package/src/js/context/providers/by_application/vasp/VASPContextProvider.js +2 -0
- package/src/js/context/providers/by_application/vasp/VASPNEBContextProvider.js +2 -0
|
@@ -5,12 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ade = require("@mat3ra/ade");
|
|
8
|
+
var _JSONSchemasInterface = _interopRequireDefault(require("@mat3ra/esse/dist/js/esse/JSONSchemasInterface"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
13
|
class ExecutableContextProvider extends _ade.ContextProvider {
|
|
9
14
|
constructor(config) {
|
|
10
15
|
super({
|
|
11
16
|
...config,
|
|
12
17
|
domain: "executable"
|
|
13
18
|
});
|
|
19
|
+
_defineProperty(this, "jsonSchemaId", "context-provider");
|
|
20
|
+
}
|
|
21
|
+
get jsonSchema() {
|
|
22
|
+
return _JSONSchemasInterface.default.getSchemaById(this.jsonSchemaId);
|
|
14
23
|
}
|
|
15
24
|
}
|
|
16
25
|
exports.default = ExecutableContextProvider;
|
|
@@ -20,6 +20,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
20
20
|
class QENEBContextProvider extends _ExecutableContextProvider.default {
|
|
21
21
|
constructor(config) {
|
|
22
22
|
super(config);
|
|
23
|
+
_defineProperty(this, "jsonSchemaId", "context-providers-directory/by-application/qe-neb-context-provider");
|
|
23
24
|
_defineProperty(this, "_material", undefined);
|
|
24
25
|
_defineProperty(this, "_materials", []);
|
|
25
26
|
_defineProperty(this, "_materialsSet", undefined);
|
|
@@ -20,6 +20,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
20
20
|
class QEPWXContextProvider extends _ExecutableContextProvider.default {
|
|
21
21
|
constructor(config) {
|
|
22
22
|
super(config);
|
|
23
|
+
_defineProperty(this, "jsonSchemaId", "context-providers-directory/by-application/qe-pwx-context-provider");
|
|
23
24
|
_defineProperty(this, "_material", undefined);
|
|
24
25
|
_defineProperty(this, "_materials", []);
|
|
25
26
|
this.initMaterialsContextMixin();
|
|
@@ -20,6 +20,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
20
20
|
class NWChemTotalEnergyContextProvider extends _ExecutableContextProvider.default {
|
|
21
21
|
constructor(config) {
|
|
22
22
|
super(config);
|
|
23
|
+
_defineProperty(this, "jsonSchemaId", "context-providers-directory/by-application/nwchem-total-energy-context-provider");
|
|
23
24
|
_defineProperty(this, "_material", undefined);
|
|
24
25
|
this.initMethodDataContextMixin();
|
|
25
26
|
this.initWorkflowContextMixin();
|
|
@@ -17,6 +17,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
17
17
|
class VASPContextProvider extends _ExecutableContextProvider.default {
|
|
18
18
|
constructor(config) {
|
|
19
19
|
super(config);
|
|
20
|
+
_defineProperty(this, "jsonSchemaId", "context-providers-directory/by-application/vasp-context-provider");
|
|
20
21
|
_defineProperty(this, "_material", undefined);
|
|
21
22
|
_defineProperty(this, "_materials", []);
|
|
22
23
|
this.initJobContextMixin();
|
|
@@ -19,6 +19,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
19
19
|
class VASPNEBContextProvider extends _ExecutableContextProvider.default {
|
|
20
20
|
constructor(config) {
|
|
21
21
|
super(config);
|
|
22
|
+
_defineProperty(this, "jsonSchemaId", "context-providers-directory/by-application/vasp-neb-context-provider");
|
|
22
23
|
_defineProperty(this, "_materials", []);
|
|
23
24
|
this.initMaterialContextMixin();
|
|
24
25
|
this.initMaterialsContextMixin();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/wode",
|
|
3
|
-
"version": "2025.11.26-
|
|
3
|
+
"version": "2025.11.26-1",
|
|
4
4
|
"description": "WOrkflow DEfinitions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "nyc --reporter=text mocha --recursive --bail --require @babel/register/lib --require tests/js/setup.js tests/js",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"v20": "^0.1.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@mat3ra/ade": "2025.11.
|
|
50
|
+
"@mat3ra/ade": "2025.11.26-0",
|
|
51
51
|
"@exabyte-io/eslint-config": "2025.5.13-0",
|
|
52
52
|
"@mat3ra/ide": "2025.11.19-0",
|
|
53
53
|
"@mat3ra/mode": "2025.11.13-0",
|
|
54
54
|
"@mat3ra/utils": "2025.9.20-0",
|
|
55
55
|
"@mat3ra/code": "2025.10.24-0",
|
|
56
|
-
"@mat3ra/esse": "
|
|
56
|
+
"@mat3ra/esse": "2025.11.26-0",
|
|
57
57
|
"@mat3ra/made": "2025.7.15-0",
|
|
58
58
|
"@mat3ra/standata": "2025.11.12-0",
|
|
59
59
|
"chai": "^4.3.4",
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { ContextProvider } from "@mat3ra/ade";
|
|
2
|
+
import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
|
|
2
3
|
|
|
3
4
|
export default class ExecutableContextProvider extends ContextProvider {
|
|
5
|
+
jsonSchemaId = "context-provider";
|
|
6
|
+
|
|
4
7
|
constructor(config) {
|
|
5
8
|
super({
|
|
6
9
|
...config,
|
|
7
10
|
domain: "executable",
|
|
8
11
|
});
|
|
9
12
|
}
|
|
13
|
+
|
|
14
|
+
get jsonSchema() {
|
|
15
|
+
return JSONSchemasInterface.getSchemaById(this.jsonSchemaId);
|
|
16
|
+
}
|
|
10
17
|
}
|
|
@@ -10,6 +10,8 @@ import ExecutableContextProvider from "../ExecutableContextProvider";
|
|
|
10
10
|
import QEPWXContextProvider from "./QEPWXContextProvider";
|
|
11
11
|
|
|
12
12
|
export default class QENEBContextProvider extends ExecutableContextProvider {
|
|
13
|
+
jsonSchemaId = "context-providers-directory/by-application/qe-neb-context-provider";
|
|
14
|
+
|
|
13
15
|
_material = undefined;
|
|
14
16
|
|
|
15
17
|
_materials = [];
|
|
@@ -10,6 +10,8 @@ import { workflowContextMixin } from "../../../mixins/WorkflowContextMixin";
|
|
|
10
10
|
import ExecutableContextProvider from "../ExecutableContextProvider";
|
|
11
11
|
|
|
12
12
|
export default class QEPWXContextProvider extends ExecutableContextProvider {
|
|
13
|
+
jsonSchemaId = "context-providers-directory/by-application/qe-pwx-context-provider";
|
|
14
|
+
|
|
13
15
|
_material = undefined;
|
|
14
16
|
|
|
15
17
|
_materials = [];
|
|
@@ -10,6 +10,9 @@ import { workflowContextMixin } from "../../../mixins/WorkflowContextMixin";
|
|
|
10
10
|
import ExecutableContextProvider from "../ExecutableContextProvider";
|
|
11
11
|
|
|
12
12
|
export default class NWChemTotalEnergyContextProvider extends ExecutableContextProvider {
|
|
13
|
+
jsonSchemaId =
|
|
14
|
+
"context-providers-directory/by-application/nwchem-total-energy-context-provider";
|
|
15
|
+
|
|
13
16
|
_material = undefined;
|
|
14
17
|
|
|
15
18
|
constructor(config) {
|
|
@@ -6,6 +6,8 @@ import { workflowContextMixin } from "../../../mixins/WorkflowContextMixin";
|
|
|
6
6
|
import ExecutableContextProvider from "../ExecutableContextProvider";
|
|
7
7
|
|
|
8
8
|
export default class VASPContextProvider extends ExecutableContextProvider {
|
|
9
|
+
jsonSchemaId = "context-providers-directory/by-application/vasp-context-provider";
|
|
10
|
+
|
|
9
11
|
_material = undefined;
|
|
10
12
|
|
|
11
13
|
_materials = [];
|
|
@@ -8,6 +8,8 @@ import ExecutableContextProvider from "../ExecutableContextProvider";
|
|
|
8
8
|
import VASPContextProvider from "./VASPContextProvider";
|
|
9
9
|
|
|
10
10
|
export default class VASPNEBContextProvider extends ExecutableContextProvider {
|
|
11
|
+
jsonSchemaId = "context-providers-directory/by-application/vasp-neb-context-provider";
|
|
12
|
+
|
|
11
13
|
_materials = [];
|
|
12
14
|
|
|
13
15
|
constructor(config) {
|