@milaboratories/pl-model-backend 1.4.21 → 1.4.23
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/_virtual/_rolldown/runtime.js +13 -0
- package/dist/serde.d.ts +2 -4
- package/dist/serde.d.ts.map +1 -1
- package/dist/template_data_v2.d.ts +8 -6
- package/dist/template_data_v2.d.ts.map +1 -1
- package/dist/template_data_v3.d.ts +10 -9
- package/dist/template_data_v3.d.ts.map +1 -1
- package/dist/template_resources_v1.d.ts +22 -15
- package/dist/template_resources_v1.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
package/dist/serde.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { TemplateData } from "./template_data_v2.js";
|
|
2
2
|
import { CompiledTemplateV3 } from "./template_data_v3.js";
|
|
3
|
-
|
|
4
3
|
//#region src/serde.d.ts
|
|
5
|
-
declare function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3;
|
|
6
|
-
declare function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array;
|
|
4
|
+
export declare function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3;
|
|
5
|
+
export declare function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { parseTemplate, serializeTemplate };
|
|
9
7
|
//# sourceMappingURL=serde.d.ts.map
|
package/dist/serde.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serde.d.ts","names":[],"sources":["../src/serde.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"serde.d.ts","names":[],"sources":["../src/serde.ts"],"mappings":";;;wBAegB,cAAc,SAAS,aAAa,eAAe;wBASnD,kBAAkB,MAAM,eAAe,qBAAqB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare namespace template_data_v2_d_exports {
|
|
2
|
+
export { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData };
|
|
3
|
+
}
|
|
4
|
+
export interface TemplateLibData {
|
|
3
5
|
/** i.e. @milaboratory/some-package:lib1 */
|
|
4
6
|
name: string;
|
|
5
7
|
/** i.e. 1.2.3 */
|
|
@@ -7,7 +9,7 @@ interface TemplateLibData {
|
|
|
7
9
|
/** full source code */
|
|
8
10
|
src: string;
|
|
9
11
|
}
|
|
10
|
-
interface TemplateSoftwareData {
|
|
12
|
+
export interface TemplateSoftwareData {
|
|
11
13
|
/** i.e. @milaboratory/mixcr:main */
|
|
12
14
|
name: string;
|
|
13
15
|
/** i.e. 4.2.3 */
|
|
@@ -15,7 +17,7 @@ interface TemplateSoftwareData {
|
|
|
15
17
|
/** full contents of software dependency description */
|
|
16
18
|
src: string;
|
|
17
19
|
}
|
|
18
|
-
interface TemplateAssetData {
|
|
20
|
+
export interface TemplateAssetData {
|
|
19
21
|
/** i.e. @milaboratory/mixcr:main */
|
|
20
22
|
name: string;
|
|
21
23
|
/** i.e. 4.2.3 */
|
|
@@ -23,7 +25,7 @@ interface TemplateAssetData {
|
|
|
23
25
|
/** full contents of asset dependency description */
|
|
24
26
|
src: string;
|
|
25
27
|
}
|
|
26
|
-
interface TemplateData {
|
|
28
|
+
export interface TemplateData {
|
|
27
29
|
/** Discriminator for future use */
|
|
28
30
|
type: "pl.tengo-template.v2";
|
|
29
31
|
/** i.e. @milaboratory/some-package:template */
|
|
@@ -47,5 +49,5 @@ interface TemplateData {
|
|
|
47
49
|
src: string;
|
|
48
50
|
}
|
|
49
51
|
//#endregion
|
|
50
|
-
export {
|
|
52
|
+
export { template_data_v2_d_exports };
|
|
51
53
|
//# sourceMappingURL=template_data_v2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template_data_v2.d.ts","names":[],"sources":["../src/template_data_v2.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"template_data_v2.d.ts","names":[],"sources":["../src/template_data_v2.ts"],"mappings":";;;iBAAiB;;EAEf;;EAEA;;EAEA;;iBAGe;;EAEf;;EAEA;;EAEA;;iBAGe;;EAEf;;EAEA;;EAEA;;iBAGe;;EAEf;;EAGA;;EAEA;;;;;EAMA;;EAGA,MAAM,eAAe;;EAErB,WAAW,eAAe;;EAE1B,UAAU,eAAe;;EAEzB,QAAQ,eAAe;;EAEvB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BackendCapability } from "./capabilities.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare namespace template_data_v3_d_exports {
|
|
3
|
+
export { CompiledTemplateV3, TemplateAssetDataV3, TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3, TemplateWasmDataV3 };
|
|
4
|
+
}
|
|
5
|
+
export interface TemplateLibDataV3 {
|
|
5
6
|
/** i.e. @milaboratory/some-package:lib1 */
|
|
6
7
|
name: string;
|
|
7
8
|
/** i.e. 1.2.3 */
|
|
@@ -9,7 +10,7 @@ interface TemplateLibDataV3 {
|
|
|
9
10
|
/** hash of the source code */
|
|
10
11
|
sourceHash: string;
|
|
11
12
|
}
|
|
12
|
-
interface TemplateSoftwareDataV3 {
|
|
13
|
+
export interface TemplateSoftwareDataV3 {
|
|
13
14
|
/** i.e. @milaboratory/mixcr:main */
|
|
14
15
|
name: string;
|
|
15
16
|
/** i.e. 4.2.3 */
|
|
@@ -17,7 +18,7 @@ interface TemplateSoftwareDataV3 {
|
|
|
17
18
|
/** hash of the source code */
|
|
18
19
|
sourceHash: string;
|
|
19
20
|
}
|
|
20
|
-
interface TemplateAssetDataV3 {
|
|
21
|
+
export interface TemplateAssetDataV3 {
|
|
21
22
|
/** i.e. @milaboratory/mixcr:main */
|
|
22
23
|
name: string;
|
|
23
24
|
/** i.e. 4.2.3 */
|
|
@@ -25,7 +26,7 @@ interface TemplateAssetDataV3 {
|
|
|
25
26
|
/** hash of the full contents of asset dependency description */
|
|
26
27
|
sourceHash: string;
|
|
27
28
|
}
|
|
28
|
-
interface TemplateWasmDataV3 {
|
|
29
|
+
export interface TemplateWasmDataV3 {
|
|
29
30
|
/** i.e. @milaboratories/pframes-rs-wasip2:main */
|
|
30
31
|
name: string;
|
|
31
32
|
/** i.e. 0.0.0 */
|
|
@@ -33,7 +34,7 @@ interface TemplateWasmDataV3 {
|
|
|
33
34
|
/** sha256 of the base64-encoded wasm bytes stored in hashToSource */
|
|
34
35
|
sourceHash: string;
|
|
35
36
|
}
|
|
36
|
-
interface TemplateDataV3 {
|
|
37
|
+
export interface TemplateDataV3 {
|
|
37
38
|
/** i.e. @milaboratory/some-package:template */
|
|
38
39
|
name: string;
|
|
39
40
|
/** i.e. 1.2.3 */
|
|
@@ -75,7 +76,7 @@ interface TemplateDataV3 {
|
|
|
75
76
|
*/
|
|
76
77
|
requiredCapabilities?: BackendCapability[];
|
|
77
78
|
}
|
|
78
|
-
interface CompiledTemplateV3 {
|
|
79
|
+
export interface CompiledTemplateV3 {
|
|
79
80
|
/** Discriminator for future use */
|
|
80
81
|
type: "pl.tengo-template.v3";
|
|
81
82
|
/** Hashes of all artifacts to sources itself. */
|
|
@@ -83,5 +84,5 @@ interface CompiledTemplateV3 {
|
|
|
83
84
|
template: TemplateDataV3;
|
|
84
85
|
}
|
|
85
86
|
//#endregion
|
|
86
|
-
export {
|
|
87
|
+
export { template_data_v3_d_exports };
|
|
87
88
|
//# sourceMappingURL=template_data_v3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template_data_v3.d.ts","names":[],"sources":["../src/template_data_v3.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"template_data_v3.d.ts","names":[],"sources":["../src/template_data_v3.ts"],"mappings":";;;;iBAEiB;;EAEf;;EAEA;;EAEA;;iBAGe;;EAEf;;EAEA;;EAEA;;iBAGe;;EAEf;;EAEA;;EAEA;;iBAGe;;EAEf;;EAEA;;EAEA;;iBAGe;;EAEf;;EAEA;;EAGA;;;;;EAMA;;EAGA,MAAM,eAAe;;EAErB,WAAW,eAAe;;EAE1B,UAAU,eAAe;;EAEzB,QAAQ,eAAe;;;;EAIvB,OAAO,eAAe;;;;;;;;;;;;;;;;;EAkBtB,uBAAuB;;iBAGR;;EAEf;;EAGA,cAAc;EAEd,UAAU"}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData } from "./template_data_v2.js";
|
|
2
|
-
import { TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3, TemplateWasmDataV3 } from "./template_data_v3.js";
|
|
1
|
+
import { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData, template_data_v2_d_exports } from "./template_data_v2.js";
|
|
2
|
+
import { TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3, TemplateWasmDataV3, template_data_v3_d_exports } from "./template_data_v3.js";
|
|
3
3
|
import { AnyFieldRef, AnyResourceRef } from "@milaboratories/pl-client";
|
|
4
|
-
|
|
5
4
|
//#region src/template_resources_v1.d.ts
|
|
6
|
-
declare namespace PlTemplateLibV1 {
|
|
5
|
+
export declare namespace PlTemplateLibV1 {
|
|
7
6
|
const type: import("@milaboratories/pl-client").ResourceType;
|
|
8
7
|
type ResourceStructure = {
|
|
9
8
|
data: Data;
|
|
10
9
|
};
|
|
11
10
|
type Data = {
|
|
12
|
-
/** i.e. @milaboratory/some-package:lib1 */
|
|
13
|
-
|
|
11
|
+
/** i.e. @milaboratory/some-package:lib1 */
|
|
12
|
+
Name: string;
|
|
13
|
+
/** i.e. 1.2.3 */
|
|
14
|
+
Version: string;
|
|
15
|
+
/** Full source code encoded with Base64 */
|
|
14
16
|
Code: string;
|
|
15
17
|
};
|
|
16
18
|
function fromV2Data(info: TemplateLibData): ResourceStructure;
|
|
17
19
|
function fromV3Data(info: TemplateLibDataV3, sourceCode: string): ResourceStructure;
|
|
18
20
|
}
|
|
19
|
-
declare namespace PlTemplateSoftwareV1 {
|
|
21
|
+
export declare namespace PlTemplateSoftwareV1 {
|
|
20
22
|
const type: import("@milaboratories/pl-client").ResourceType;
|
|
21
23
|
type ResourceStructure = {
|
|
22
24
|
data: Data;
|
|
@@ -26,13 +28,15 @@ declare namespace PlTemplateSoftwareV1 {
|
|
|
26
28
|
type Data = string;
|
|
27
29
|
const metaNameKey = "ctl/runner/package/name";
|
|
28
30
|
type MetaName = {
|
|
29
|
-
/** i.e. @milaboratory/some-package:sw1 */
|
|
31
|
+
/** i.e. @milaboratory/some-package:sw1 */
|
|
32
|
+
Name: string;
|
|
33
|
+
/** i.e. 1.2.3 */
|
|
30
34
|
Version: string;
|
|
31
35
|
};
|
|
32
36
|
function fromV2Data(info: TemplateSoftwareData | TemplateAssetData): ResourceStructure;
|
|
33
37
|
function fromV3Data(info: TemplateSoftwareDataV3, sourceCode: string): ResourceStructure;
|
|
34
38
|
}
|
|
35
|
-
declare namespace PlTemplateV1 {
|
|
39
|
+
export declare namespace PlTemplateV1 {
|
|
36
40
|
const type: import("@milaboratories/pl-client").ResourceType;
|
|
37
41
|
type ResourceStructure = {
|
|
38
42
|
data: Data;
|
|
@@ -46,14 +50,17 @@ declare namespace PlTemplateV1 {
|
|
|
46
50
|
function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef;
|
|
47
51
|
function wasmField(ref: AnyResourceRef, alias: string): AnyFieldRef;
|
|
48
52
|
type Data = {
|
|
49
|
-
/** i.e. @milaboratory/some-package:tpl1 */
|
|
50
|
-
|
|
53
|
+
/** i.e. @milaboratory/some-package:tpl1 */
|
|
54
|
+
Name: string;
|
|
55
|
+
/** i.e. 1.2.3 */
|
|
56
|
+
Version: string;
|
|
57
|
+
/** Full source code encoded with Base64 */
|
|
51
58
|
Code: string;
|
|
52
59
|
};
|
|
53
60
|
function fromV2Data(info: TemplateData): ResourceStructure;
|
|
54
61
|
function fromV3Data(info: TemplateDataV3, sourceCode: string): ResourceStructure;
|
|
55
62
|
}
|
|
56
|
-
declare namespace PlWasmV1 {
|
|
63
|
+
export declare namespace PlWasmV1 {
|
|
57
64
|
const type: import("@milaboratories/pl-client").ResourceType;
|
|
58
65
|
const runtimeWasiP2 = "wasi-p2";
|
|
59
66
|
const defaultMemoryLimit: number;
|
|
@@ -63,13 +70,14 @@ declare namespace PlWasmV1 {
|
|
|
63
70
|
type Data = {
|
|
64
71
|
Name: string;
|
|
65
72
|
Version: string;
|
|
66
|
-
Runtime: string;
|
|
73
|
+
Runtime: string;
|
|
74
|
+
/** Raw wasm component bytes, base64-encoded for JSON transport. */
|
|
67
75
|
Code: string;
|
|
68
76
|
DefaultMemoryLimit: number;
|
|
69
77
|
};
|
|
70
78
|
function fromV3Data(info: TemplateWasmDataV3, base64Source: string): ResourceStructure;
|
|
71
79
|
}
|
|
72
|
-
declare namespace PlTemplateOverrideV1 {
|
|
80
|
+
export declare namespace PlTemplateOverrideV1 {
|
|
73
81
|
const type: import("@milaboratories/pl-client").ResourceType;
|
|
74
82
|
type ResourceStructure = {
|
|
75
83
|
data: Data;
|
|
@@ -82,5 +90,4 @@ declare namespace PlTemplateOverrideV1 {
|
|
|
82
90
|
function fromV3Data(info: TemplateDataV3): ResourceStructure;
|
|
83
91
|
}
|
|
84
92
|
//#endregion
|
|
85
|
-
export { PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1, PlWasmV1 };
|
|
86
93
|
//# sourceMappingURL=template_resources_v1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template_resources_v1.d.ts","names":[],"sources":["../src/template_resources_v1.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"template_resources_v1.d.ts","names":[],"sources":["../src/template_resources_v1.ts"],"mappings":";;;;yBAIiB;QACF,0CAAI;OAEL;IACV,MAAM;;OAGI;;IAEV;;IAEA;;IAEA;;WAGc,WAAW,MAAM,kBAAyB;WAU1C,WACd,MAAM,mBACN,qBACC;;yBAWY;QACF,0CAAI;OAEL;IACV,MAAM;IACN,MAAM;;;OAII;QAEC;OACD;;IAEV;;IAEA;;WAGc,WACd,MAAM,uBAA8B,oBACnC;WAUa,WACd,MAAM,wBACN,qBACC;;yBAWY;QACF,0CAAI;OAEL;IACV,MAAM;;QAGK;QACA;QACA;QAGA;WAEG,SAAS,KAAK,gBAAgB,gBAAgB;WAG9C,SAAS,KAAK,gBAAgB,gBAAgB;WAG9C,QAAQ,KAAK,gBAAgB,qBAAqB;WAGlD,UAAU,KAAK,gBAAgB,gBAAgB;OAInD;;IAEV;;IAEA;;IAEA;;WAGc,WAAW,MAAM,eAAsB;WAUvC,WAAW,MAAM,gBAAuB,qBAAqB;;yBAW9D;QACF,0CAAI;QAGJ;QAMA;OAED;IACV,MAAM;;OAMI;IACV;IACA;IACA;;IAEA;IACA;;WAGc,WACd,MAAM,oBACN,uBACC;;yBAgBY;QACF,0CAAI;OAEL;IACV,MAAM;;WAGQ,SAAS,KAAK,iBAAiB;OAInC;IACV;;WAGc,WAAW,MAAM,eAAsB;WAcvC,WAAW,MAAM,iBAAwB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-backend",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.23",
|
|
4
4
|
"description": "Backend model for Platforma.bio",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/**/*",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"canonicalize": "~2.1.0",
|
|
22
22
|
"zod": "~3.25.76",
|
|
23
|
-
"@milaboratories/pl-client": "3.
|
|
23
|
+
"@milaboratories/pl-client": "3.16.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "~24.5.2",
|
|
27
27
|
"@vitest/coverage-istanbul": "^4.1.3",
|
|
28
|
-
"typescript": "
|
|
28
|
+
"typescript": "7.0.2",
|
|
29
29
|
"vitest": "^4.1.3",
|
|
30
|
-
"@milaboratories/
|
|
31
|
-
"@milaboratories/
|
|
32
|
-
"@milaboratories/ts-
|
|
30
|
+
"@milaboratories/ts-builder": "1.7.2",
|
|
31
|
+
"@milaboratories/build-configs": "2.0.1",
|
|
32
|
+
"@milaboratories/ts-configs": "1.4.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "ts-builder build --target node",
|