@milaboratories/pl-model-backend 1.4.8 → 1.4.10

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.
@@ -1,2 +1,7 @@
1
- require("./_virtual/_rolldown/runtime.cjs");
2
- require("@milaboratories/pl-client");
1
+ let _milaboratories_pl_client = require("@milaboratories/pl-client");
2
+ Object.defineProperty(exports, "hasCapability", {
3
+ enumerable: true,
4
+ get: function() {
5
+ return _milaboratories_pl_client.hasCapability;
6
+ }
7
+ });
package/dist/index.cjs CHANGED
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./_virtual/_rolldown/runtime.cjs");
3
2
  require("./capabilities.cjs");
4
3
  const require_serde = require("./serde.cjs");
5
4
  const require_template_resources_v1 = require("./template_resources_v1.cjs");
package/dist/index.d.ts CHANGED
@@ -3,4 +3,4 @@ import { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData
3
3
  import { CompiledTemplateV3, TemplateAssetDataV3, TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3, TemplateWasmDataV3 } from "./template_data_v3.js";
4
4
  import { parseTemplate, serializeTemplate } from "./serde.js";
5
5
  import { PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1, PlWasmV1 } from "./template_resources_v1.js";
6
- export { BackendCapability, CompiledTemplateV3, PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1, PlWasmV1, TemplateAssetData, TemplateAssetDataV3, TemplateData, TemplateDataV3, TemplateLibData, TemplateLibDataV3, TemplateSoftwareData, TemplateSoftwareDataV3, TemplateWasmDataV3, hasCapability, parseTemplate, serializeTemplate };
6
+ export { type BackendCapability, CompiledTemplateV3, PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1, PlWasmV1, TemplateAssetData, TemplateAssetDataV3, TemplateData, TemplateDataV3, TemplateLibData, TemplateLibDataV3, TemplateSoftwareData, TemplateSoftwareDataV3, TemplateWasmDataV3, hasCapability, parseTemplate, serializeTemplate };
package/dist/serde.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
2
2
  let node_zlib = require("node:zlib");
3
3
  let canonicalize = require("canonicalize");
4
- canonicalize = require_runtime.__toESM(canonicalize);
4
+ canonicalize = require_runtime.__toESM(canonicalize, 1);
5
5
  let zod = require("zod");
6
6
  //#region src/serde.ts
7
7
  const TypeSchema = zod.z.object({ type: zod.z.string() }).passthrough();
@@ -1 +1 @@
1
- {"version":3,"file":"serde.cjs","names":["z"],"sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"mappings":";;;;;;AAMA,MAAM,aAAaA,IAAAA,EAChB,OAAO,EACN,MAAMA,IAAAA,EAAE,QAAQ,EACjB,CAAC,CACD,aAAa;AAEhB,MAAM,yBAAyB,IAAI,aAAa;AAChD,MAAM,yBAAyB,IAAI,aAAa;AAEhD,SAAgB,cAAc,SAAwD;CACpF,MAAM,OAAO,WAAW,MAAM,KAAK,MAAM,uBAAuB,QAAA,GAAA,UAAA,YAAkB,QAAQ,CAAC,CAAC,CAAC;AAC7F,KAAI,KAAK,SAAS,0BAA0B,KAAK,SAAS,uBACxD,OAAM,IAAI,MAAM,qBAAqB;AAGvC,QAAO;;AAGT,SAAgB,kBAAkB,MAAqD;AACrF,SAAA,GAAA,UAAA,UAAgB,uBAAuB,QAAA,GAAA,aAAA,SAAoB,KAAK,CAAC,EAAE;EACjE,WAAW,MAAM;EACjB,OAAO;EACR,CAAC"}
1
+ {"version":3,"file":"serde.cjs","names":["z"],"sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"mappings":";;;;;;AAMA,MAAM,aAAaA,IAAAA,EAChB,OAAO,EACN,MAAMA,IAAAA,EAAE,OAAO,EACjB,CAAC,CAAC,CACD,YAAY;AAEf,MAAM,yBAAyB,IAAI,YAAY;AAC/C,MAAM,yBAAyB,IAAI,YAAY;AAE/C,SAAgB,cAAc,SAAwD;CACpF,MAAM,OAAO,WAAW,MAAM,KAAK,MAAM,uBAAuB,QAAA,GAAA,UAAA,WAAA,CAAkB,OAAO,CAAC,CAAC,CAAC;CAC5F,IAAI,KAAK,SAAS,0BAA0B,KAAK,SAAS,wBACxD,MAAM,IAAI,MAAM,oBAAoB;CAGtC,OAAO;AACT;AAEA,SAAgB,kBAAkB,MAAqD;CACrF,QAAA,GAAA,UAAA,SAAA,CAAgB,uBAAuB,QAAA,GAAA,aAAA,QAAA,CAAoB,IAAI,CAAC,GAAG;EACjE,WAAW,MAAM;EACjB,OAAO;CACT,CAAC;AACH"}
package/dist/serde.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"serde.js","names":[],"sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"mappings":";;;;AAMA,MAAM,aAAa,EAChB,OAAO,EACN,MAAM,EAAE,QAAQ,EACjB,CAAC,CACD,aAAa;AAEhB,MAAM,yBAAyB,IAAI,aAAa;AAChD,MAAM,yBAAyB,IAAI,aAAa;AAEhD,SAAgB,cAAc,SAAwD;CACpF,MAAM,OAAO,WAAW,MAAM,KAAK,MAAM,uBAAuB,OAAO,WAAW,QAAQ,CAAC,CAAC,CAAC;AAC7F,KAAI,KAAK,SAAS,0BAA0B,KAAK,SAAS,uBACxD,OAAM,IAAI,MAAM,qBAAqB;AAGvC,QAAO;;AAGT,SAAgB,kBAAkB,MAAqD;AACrF,QAAO,SAAS,uBAAuB,OAAO,aAAa,KAAK,CAAC,EAAE;EACjE,WAAW,MAAM;EACjB,OAAO;EACR,CAAC"}
1
+ {"version":3,"file":"serde.js","names":[],"sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"mappings":";;;;AAMA,MAAM,aAAa,EAChB,OAAO,EACN,MAAM,EAAE,OAAO,EACjB,CAAC,CAAC,CACD,YAAY;AAEf,MAAM,yBAAyB,IAAI,YAAY;AAC/C,MAAM,yBAAyB,IAAI,YAAY;AAE/C,SAAgB,cAAc,SAAwD;CACpF,MAAM,OAAO,WAAW,MAAM,KAAK,MAAM,uBAAuB,OAAO,WAAW,OAAO,CAAC,CAAC,CAAC;CAC5F,IAAI,KAAK,SAAS,0BAA0B,KAAK,SAAS,wBACxD,MAAM,IAAI,MAAM,oBAAoB;CAGtC,OAAO;AACT;AAEA,SAAgB,kBAAkB,MAAqD;CACrF,OAAO,SAAS,uBAAuB,OAAO,aAAa,IAAI,CAAC,GAAG;EACjE,WAAW,MAAM;EACjB,OAAO;CACT,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"template_data_v3.d.ts","names":[],"sources":["../src/template_data_v3.ts"],"mappings":";;;UAEiB,iBAAA;;EAEf,IAAA;EAFgC;EAIhC,OAAA;EAJgC;EAMhC,UAAA;AAAA;AAAA,UAGe,sBAAA;EAHL;EAKV,IAAA;EAFe;EAIf,OAAA;;EAEA,UAAA;AAAA;AAAA,UAGe,mBAAA;EAHf;EAKA,IAAA;EALU;EAOV,OAAA;EAJkC;EAMlC,UAAA;AAAA;AAAA,UAGe,kBAAA;EALf;EAOA,IAAA;EALU;EAOV,OAAA;EAJe;EAMf,UAAA;AAAA;AAAA,UAGe,cAAA;EAPf;EASA,IAAA;EALA;EAOA,OAAA;EAPU;EAUV,UAAA;EAP6B;;;;EAa7B,YAAA;EAKW;EAFX,IAAA,EAAM,MAAA,SAAe,iBAAA;EAIX;EAFV,SAAA,EAAW,MAAA,SAAe,cAAA;EAIlB;EAFR,QAAA,EAAU,MAAA,SAAe,sBAAA;EAMlB;EAJP,MAAA,EAAQ,MAAA,SAAe,mBAAA;EAsBiB;;;EAlBxC,IAAA,GAAO,MAAA,SAAe,kBAAA;EAnBtB;;;;;;;;;;;;;;;;EAqCA,oBAAA,GAAuB,iBAAA;AAAA;AAAA,UAGR,kBAAA;EAHyB;EAKxC,IAAA;EAFe;EAKf,YAAA,EAAc,MAAA;EAEd,QAAA,EAAU,cAAA;AAAA"}
1
+ {"version":3,"file":"template_data_v3.d.ts","names":[],"sources":["../src/template_data_v3.ts"],"mappings":";;;UAEiB,iBAAA;;EAEf,IAAA;EAFgC;EAIhC,OAAA;EAJgC;EAMhC,UAAA;AAAA;AAAA,UAGe,sBAAA;EAHL;EAKV,IAAA;EAFe;EAIf,OAAA;;EAEA,UAAA;AAAA;AAAA,UAGe,mBAAA;EAHf;EAKA,IAAA;EALU;EAOV,OAAA;EAJkC;EAMlC,UAAA;AAAA;AAAA,UAGe,kBAAA;EALf;EAOA,IAAA;EALU;EAOV,OAAA;EAJe;EAMf,UAAA;AAAA;AAAA,UAGe,cAAA;EAPf;EASA,IAAA;EALA;EAOA,OAAA;EAPU;EAUV,UAAA;EAP6B;;;;EAa7B,YAAA;EAKW;EAFX,IAAA,EAAM,MAAA,SAAe,iBAAA;EAIX;EAFV,SAAA,EAAW,MAAA,SAAe,cAAA;EAIlB;EAFR,QAAA,EAAU,MAAA,SAAe,sBAAA;EAMlB;EAJP,MAAA,EAAQ,MAAA,SAAe,mBAAA;EAsBiB;;;EAlBxC,IAAA,GAAO,MAAA,SAAe,kBAAA;EAnBtB;;;;;;;;;;;;;;;;EAqCA,oBAAA,GAAuB,iBAAA;AAAA;AAAA,UAGR,kBAAA;EAHyB;EAKxC,IAAA;EAFe;EAKf,YAAA,EAAc,MAAA;EAEd,QAAA,EAAU,cAAc;AAAA"}
@@ -1,4 +1,3 @@
1
- require("./_virtual/_rolldown/runtime.cjs");
2
1
  let _milaboratories_pl_client = require("@milaboratories/pl-client");
3
2
  //#region src/template_resources_v1.ts
4
3
  let PlTemplateLibV1;
@@ -1 +1 @@
1
- {"version":3,"file":"template_resources_v1.cjs","names":[],"sources":["../src/template_resources_v1.ts"],"sourcesContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n // Must match TengoTemplateFieldWasmPrefix in\n // core/pl/controllers/shared/resources/template_tengo.go.\n export const wasmPrefix = \"wasm\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n export function wasmField(ref: AnyResourceRef, alias: string): AnyFieldRef {\n return field(ref, `${wasmPrefix}/${alias}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlWasmV1 {\n export const type = resourceType(\"Wasm\", \"1\");\n\n // Must match controllers/shared/resources/wasm.go : WasmRuntimeWasiP2.\n export const runtimeWasiP2 = \"wasi-p2\";\n\n // Default per-instance memory cap stamped at resource creation time when\n // the template doesn't carry an explicit value. Mirrors the production\n // controller default at core/pl/controllers/workflow/internal/tplctl/\n // handle_template_pack_convert.go : defaultWasmMemoryLimit (32 MiB).\n export const defaultMemoryLimit = 32 * 1024 * 1024;\n\n export type ResourceStructure = {\n data: Data;\n };\n\n // Field names match the WasmV1Data struct in\n // core/pl/controllers/shared/resources/wasm.go. Default Go JSON\n // capitalisation — keep PascalCase.\n export type Data = {\n Name: string;\n Version: string;\n Runtime: string;\n /** Raw wasm component bytes, base64-encoded for JSON transport. */\n Code: string;\n DefaultMemoryLimit: number;\n };\n\n export function fromV3Data(\n info: infoV3.TemplateWasmDataV3,\n base64Source: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Runtime: runtimeWasiP2,\n // Wasm sources in CompiledTemplateV3.hashToSource are already\n // base64-encoded by tengo-builder (see addWasmFile in\n // tools/tengo-builder/src/compiler/main.ts).\n Code: base64Source,\n DefaultMemoryLimit: defaultMemoryLimit,\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n}\n"],"mappings":";;;AAIO,IAAA;;oEAC4B,YAAY,IAAI;CAe1C,SAAS,WAAW,MAAiD;AAC1E,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,KAAK,KAAK,OAAO,CAAC,SAAS,SAAS;GACvD,EACF;;;CAGI,SAAS,WACd,MACA,YACmB;AACnB,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,YAAY,OAAO,CAAC,SAAS,SAAS;GACzD,EACF;;;6CAEJ;AAEM,IAAA;;yEAC4B,gBAAgB,IAAI;oCAU1B;CAQpB,SAAS,WACd,MACmB;AACnB,SAAO;GACL,MAAM,KAAK;GACX,MAAM;IACJ,MAAM,KAAK;IACX,SAAS,KAAK;IACf;GACF;;;CAGI,SAAS,WACd,MACA,YACmB;AACnB,SAAO;GACL,MAAM;GACN,MAAM;IACJ,MAAM,KAAK;IACX,SAAS,KAAK;IACf;GACF;;;uDAEJ;AAEM,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AAM;;;CAOnB,SAAS,WAAW,MAA8C;AACvE,MAAI,CAAC,KAAK,aACR,OAAM,IAAI,MACR,0IACD;AAGH,SAAO,EACL,MAAM,EACJ,cAAc,KAAK,cACpB,EACF;;;CAGI,SAAS,WAAW,MAAgD;AACzE,MAAI,CAAC,KAAK,aACR,OAAM,IAAI,MACR,0IACD;AAGH,SAAO,EACL,MAAM,EACJ,cAAc,KAAK,cACpB,EACF;;;uDAEJ"}
1
+ {"version":3,"file":"template_resources_v1.cjs","names":[],"sources":["../src/template_resources_v1.ts"],"sourcesContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n // Must match TengoTemplateFieldWasmPrefix in\n // core/pl/controllers/shared/resources/template_tengo.go.\n export const wasmPrefix = \"wasm\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n export function wasmField(ref: AnyResourceRef, alias: string): AnyFieldRef {\n return field(ref, `${wasmPrefix}/${alias}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlWasmV1 {\n export const type = resourceType(\"Wasm\", \"1\");\n\n // Must match controllers/shared/resources/wasm.go : WasmRuntimeWasiP2.\n export const runtimeWasiP2 = \"wasi-p2\";\n\n // Default per-instance memory cap stamped at resource creation time when\n // the template doesn't carry an explicit value. Mirrors the production\n // controller default at core/pl/controllers/workflow/internal/tplctl/\n // handle_template_pack_convert.go : defaultWasmMemoryLimit (32 MiB).\n export const defaultMemoryLimit = 32 * 1024 * 1024;\n\n export type ResourceStructure = {\n data: Data;\n };\n\n // Field names match the WasmV1Data struct in\n // core/pl/controllers/shared/resources/wasm.go. Default Go JSON\n // capitalisation — keep PascalCase.\n export type Data = {\n Name: string;\n Version: string;\n Runtime: string;\n /** Raw wasm component bytes, base64-encoded for JSON transport. */\n Code: string;\n DefaultMemoryLimit: number;\n };\n\n export function fromV3Data(\n info: infoV3.TemplateWasmDataV3,\n base64Source: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Runtime: runtimeWasiP2,\n // Wasm sources in CompiledTemplateV3.hashToSource are already\n // base64-encoded by tengo-builder (see addWasmFile in\n // tools/tengo-builder/src/compiler/main.ts).\n Code: base64Source,\n DefaultMemoryLimit: defaultMemoryLimit,\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,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B,OAA4B;EACzE,QAAA,GAAA,0BAAA,MAAA,CAAa,KAAK,GAAG,WAAW,GAAG,OAAO;CAC5C;;CAWO,SAAS,WAAW,MAA8C;EACvE,OAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,KAAK,KAAK,MAAM,CAAC,CAAC,SAAS,QAAQ;EACvD,EACF;CACF;;CAEO,SAAS,WAAW,MAA6B,YAAuC;EAC7F,OAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,YAAY,MAAM,CAAC,CAAC,SAAS,QAAQ;EACzD,EACF;CACF;;GACD,iBAAA,eAAA,CAAA,EAAD;AAEO,IAAA;;6DAC4B,QAAQ,GAAG;CAGrC,MAAM,gBAAA,SAAA,gBAAgB;CAMtB,MAAM,qBAAA,SAAA,qBAAqB,KAAK,OAAO;CAkBvC,SAAS,WACd,MACA,cACmB;EACnB,OAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,SAAS;GAIT,MAAM;GACN,oBAAoB;EACtB,EACF;CACF;;GACD,aAAA,WAAA,CAAA,EAAD;AAEO,IAAA;;yEAC4B,yBAAyB,GAAG;CAMtD,SAAS,SAAS,KAAkC;EACzD,QAAA,GAAA,0BAAA,MAAA,CAAa,KAAK,KAAK;CACzB;;CAMO,SAAS,WAAW,MAA8C;EACvE,IAAI,CAAC,KAAK,cACR,MAAM,IAAI,MACR,yIACF;EAGF,OAAO,EACL,MAAM,EACJ,cAAc,KAAK,aACrB,EACF;CACF;;CAEO,SAAS,WAAW,MAAgD;EACzE,IAAI,CAAC,KAAK,cACR,MAAM,IAAI,MACR,yIACF;EAGF,OAAO,EACL,MAAM,EACJ,cAAc,KAAK,aACrB,EACF;CACF;;GACD,yBAAA,uBAAA,CAAA,EAAD"}
@@ -1,11 +1,10 @@
1
1
  import { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData } from "./template_data_v2.js";
2
2
  import { TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3, TemplateWasmDataV3 } from "./template_data_v3.js";
3
- import * as _$_milaboratories_pl_client0 from "@milaboratories/pl-client";
4
3
  import { AnyFieldRef, AnyResourceRef } from "@milaboratories/pl-client";
5
4
 
6
5
  //#region src/template_resources_v1.d.ts
7
6
  declare namespace PlTemplateLibV1 {
8
- const type: _$_milaboratories_pl_client0.ResourceType;
7
+ const type: import("@milaboratories/pl-client").ResourceType;
9
8
  type ResourceStructure = {
10
9
  data: Data;
11
10
  };
@@ -18,7 +17,7 @@ declare namespace PlTemplateLibV1 {
18
17
  function fromV3Data(info: TemplateLibDataV3, sourceCode: string): ResourceStructure;
19
18
  }
20
19
  declare namespace PlTemplateSoftwareV1 {
21
- const type: _$_milaboratories_pl_client0.ResourceType;
20
+ const type: import("@milaboratories/pl-client").ResourceType;
22
21
  type ResourceStructure = {
23
22
  data: Data;
24
23
  name: MetaName;
@@ -34,7 +33,7 @@ declare namespace PlTemplateSoftwareV1 {
34
33
  function fromV3Data(info: TemplateSoftwareDataV3, sourceCode: string): ResourceStructure;
35
34
  }
36
35
  declare namespace PlTemplateV1 {
37
- const type: _$_milaboratories_pl_client0.ResourceType;
36
+ const type: import("@milaboratories/pl-client").ResourceType;
38
37
  type ResourceStructure = {
39
38
  data: Data;
40
39
  };
@@ -55,7 +54,7 @@ declare namespace PlTemplateV1 {
55
54
  function fromV3Data(info: TemplateDataV3, sourceCode: string): ResourceStructure;
56
55
  }
57
56
  declare namespace PlWasmV1 {
58
- const type: _$_milaboratories_pl_client0.ResourceType;
57
+ const type: import("@milaboratories/pl-client").ResourceType;
59
58
  const runtimeWasiP2 = "wasi-p2";
60
59
  const defaultMemoryLimit: number;
61
60
  type ResourceStructure = {
@@ -71,7 +70,7 @@ declare namespace PlWasmV1 {
71
70
  function fromV3Data(info: TemplateWasmDataV3, base64Source: string): ResourceStructure;
72
71
  }
73
72
  declare namespace PlTemplateOverrideV1 {
74
- const type: _$_milaboratories_pl_client0.ResourceType;
73
+ const type: import("@milaboratories/pl-client").ResourceType;
75
74
  type ResourceStructure = {
76
75
  data: Data;
77
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"template_resources_v1.d.ts","names":[],"sources":["../src/template_resources_v1.ts"],"mappings":";;;;;;kBAIiB,eAAA;EAAA,MACF,IAAA,EADiB,4BAAA,CACb,YAAA;EAAA,KAEL,iBAAA;IACV,IAAA,EAAM,IAAA;EAAA;EAAA,KAGI,IAAA;IAPkB,2CAS5B,IAAA,UAO+B;IAL/B,OAAA,UAgBM;IAdN,IAAA;EAAA;EAAA,SAGc,UAAA,CAAW,IAAA,EAAM,eAAA,GAAyB,iBAAA;EAAA,SAU1C,UAAA,CACd,IAAA,EAAM,iBAAA,EACN,UAAA,WACC,iBAAA;AAAA;AAAA,kBAWY,oBAAA;EAAA,MACF,IAAA,EADsB,4BAAA,CAClB,YAAA;EAAA,KAEL,iBAAA;IACV,IAAA,EAAM,IAAA;IACN,IAAA,EAAM,QAAA;EAAA;EAhCN;EAAA,KAoCU,IAAA;EAAA,MAEC,WAAA;EAAA,KACD,QAAA;IApCe,0CAsCzB,IAAA,UA5Bc;IA8Bd,OAAA;EAAA;EAAA,SAGc,UAAA,CACd,IAAA,EAAM,oBAAA,GAA8B,iBAAA,GACnC,iBAAA;EAAA,SAUa,UAAA,CACd,IAAA,EAAM,sBAAA,EACN,UAAA,WACC,iBAAA;AAAA;AAAA,kBAWY,YAAA;EAAA,MACF,IAAA,EADc,4BAAA,CACV,YAAA;EAAA,KAEL,iBAAA;IACV,IAAA,EAAM,IAAA;EAAA;EAAA,MAGK,SAAA;EAAA,MACA,UAAA;EAAA,MACA,SAAA;EAAA,MAGA,UAAA;EAAA,SAEG,QAAA,CAAS,GAAA,EAAK,cAAA,EAAgB,KAAA,WAAgB,WAAA;EAAA,SAG9C,QAAA,CAAS,GAAA,EAAK,cAAA,EAAgB,KAAA,WAAgB,WAAA;EAAA,SAG9C,OA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J,aAAA;EAAA,MAMA,kBAAA;EAAA,KAED,iBAAA;IACV,IAAA,EAAM,IAAA;EAAA;EAAA,KAMI,IAAA;IACV,IAAA;IACA,OAAA;IACA,OAAA,UA3FA;IA6FA,IAAA;IACA,kBAAA;EAAA;EAAA,SAGc,UAAA,CACd,IAAA,EAAM,kBAAA,EACN,YAAA,WACC,iBAAA;AAAA;AAAA,kBAgBY,oBAAA;EAAA,MACF,IAAA,sCAAI,YAAA;EAAA,KAEL,iBAAA;IACV,IAAA,EAAM,IAAA;EAAA;EAAA,SAGQ,QAAA,CAAS,GAAA,EAAK,cAAA,GAAiB,WAAA;EAAA,KAInC,IAAA;IACV,YAAA;EAAA;EAAA,SAGc,UAAA,CAAW,IAAA,EAAM,YAAA,GAAsB,iBAAA;EAAA,SAcvC,UAAA,CAAW,IAAA,EAAM,cAAA,GAAwB,iBAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"template_resources_v1.js","names":[],"sources":["../src/template_resources_v1.ts"],"sourcesContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n // Must match TengoTemplateFieldWasmPrefix in\n // core/pl/controllers/shared/resources/template_tengo.go.\n export const wasmPrefix = \"wasm\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n export function wasmField(ref: AnyResourceRef, alias: string): AnyFieldRef {\n return field(ref, `${wasmPrefix}/${alias}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlWasmV1 {\n export const type = resourceType(\"Wasm\", \"1\");\n\n // Must match controllers/shared/resources/wasm.go : WasmRuntimeWasiP2.\n export const runtimeWasiP2 = \"wasi-p2\";\n\n // Default per-instance memory cap stamped at resource creation time when\n // the template doesn't carry an explicit value. Mirrors the production\n // controller default at core/pl/controllers/workflow/internal/tplctl/\n // handle_template_pack_convert.go : defaultWasmMemoryLimit (32 MiB).\n export const defaultMemoryLimit = 32 * 1024 * 1024;\n\n export type ResourceStructure = {\n data: Data;\n };\n\n // Field names match the WasmV1Data struct in\n // core/pl/controllers/shared/resources/wasm.go. Default Go JSON\n // capitalisation — keep PascalCase.\n export type Data = {\n Name: string;\n Version: string;\n Runtime: string;\n /** Raw wasm component bytes, base64-encoded for JSON transport. */\n Code: string;\n DefaultMemoryLimit: number;\n };\n\n export function fromV3Data(\n info: infoV3.TemplateWasmDataV3,\n base64Source: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Runtime: runtimeWasiP2,\n // Wasm sources in CompiledTemplateV3.hashToSource are already\n // base64-encoded by tengo-builder (see addWasmFile in\n // tools/tengo-builder/src/compiler/main.ts).\n Code: base64Source,\n DefaultMemoryLimit: defaultMemoryLimit,\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n}\n"],"mappings":";;AAIO,IAAA;;wBACe,aAAa,YAAY,IAAI;CAe1C,SAAS,WAAW,MAAiD;AAC1E,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,KAAK,KAAK,OAAO,CAAC,SAAS,SAAS;GACvD,EACF;;;CAGI,SAAS,WACd,MACA,YACmB;AACnB,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,YAAY,OAAO,CAAC,SAAS,SAAS;GACzD,EACF;;;6CAEJ;AAEM,IAAA;;6BACe,aAAa,gBAAgB,IAAI;oCAU1B;CAQpB,SAAS,WACd,MACmB;AACnB,SAAO;GACL,MAAM,KAAK;GACX,MAAM;IACJ,MAAM,KAAK;IACX,SAAS,KAAK;IACf;GACF;;;CAGI,SAAS,WACd,MACA,YACmB;AACnB,SAAO;GACL,MAAM;GACN,MAAM;IACJ,MAAM,KAAK;IACX,SAAS,KAAK;IACf;GACF;;;uDAEJ;AAEM,IAAA;;qBACe,aAAa,iBAAiB,IAAI;CAM/C,MAAM,YAAA,aAAA,YAAY;CAClB,MAAM,aAAA,aAAA,aAAa;CACnB,MAAM,YAAA,aAAA,YAAY;CAGlB,MAAM,aAAA,aAAA,aAAa;CAEnB,SAAS,SAAS,KAAqB,OAA4B;AACxE,SAAO,MAAM,KAAK,GAAG,UAAU,GAAG,QAAQ;;;CAErC,SAAS,SAAS,KAAqB,OAA4B;AACxE,SAAO,MA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esContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n // Must match TengoTemplateFieldWasmPrefix in\n // core/pl/controllers/shared/resources/template_tengo.go.\n export const wasmPrefix = \"wasm\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n export function wasmField(ref: AnyResourceRef, alias: string): AnyFieldRef {\n return field(ref, `${wasmPrefix}/${alias}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlWasmV1 {\n export const type = resourceType(\"Wasm\", \"1\");\n\n // Must match controllers/shared/resources/wasm.go : WasmRuntimeWasiP2.\n export const runtimeWasiP2 = \"wasi-p2\";\n\n // Default per-instance memory cap stamped at resource creation time when\n // the template doesn't carry an explicit value. Mirrors the production\n // controller default at core/pl/controllers/workflow/internal/tplctl/\n // handle_template_pack_convert.go : defaultWasmMemoryLimit (32 MiB).\n export const defaultMemoryLimit = 32 * 1024 * 1024;\n\n export type ResourceStructure = {\n data: Data;\n };\n\n // Field names match the WasmV1Data struct in\n // core/pl/controllers/shared/resources/wasm.go. Default Go JSON\n // capitalisation — keep PascalCase.\n export type Data = {\n Name: string;\n Version: string;\n Runtime: string;\n /** Raw wasm component bytes, base64-encoded for JSON transport. */\n Code: string;\n DefaultMemoryLimit: number;\n };\n\n export function fromV3Data(\n info: infoV3.TemplateWasmDataV3,\n base64Source: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Runtime: runtimeWasiP2,\n // Wasm sources in CompiledTemplateV3.hashToSource are already\n // base64-encoded by tengo-builder (see addWasmFile in\n // tools/tengo-builder/src/compiler/main.ts).\n Code: base64Source,\n DefaultMemoryLimit: defaultMemoryLimit,\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n}\n"],"mappings":";;AAIO,IAAA;;wBACe,aAAa,YAAY,GAAG;CAezC,SAAS,WAAW,MAAiD;EAC1E,OAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,KAAK,KAAK,MAAM,CAAC,CAAC,SAAS,QAAQ;EACvD,EACF;CACF;;CAEO,SAAS,WACd,MACA,YACmB;EACnB,OAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,YAAY,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;CACF;;GACD,iBAAA,eAAA,CAAA,EAAD;AAEO,IAAA;;iBACe,aAAa,QAAQ,GAAG;CAGrC,MAAM,gBAAA,SAAA,gBAAgB;CAMtB,MAAM,qBAAA,SAAA,qBAAqB,KAAK,OAAO;CAkBvC,SAAS,WACd,MACA,cACmB;EACnB,OAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,SAAS;GAIT,MAAM;GACN,oBAAoB;EACtB,EACF;CACF;;GACD,aAAA,WAAA,CAAA,EAAD;AAEO,IAAA;;6BACe,aAAa,yBAAyB,GAAG;CAMtD,SAAS,SAAS,KAAkC;EACzD,OAAO,MAAM,KAAK,KAAK;CACzB;;CAMO,SAAS,WAAW,MAA8C;EACvE,IAAI,CAAC,KAAK,cACR,MAAM,IAAI,MACR,yIACF;EAGF,OAAO,EACL,MAAM,EACJ,cAAc,KAAK,aACrB,EACF;CACF;;CAEO,SAAS,WAAW,MAAgD;EACzE,IAAI,CAAC,KAAK,cACR,MAAM,IAAI,MACR,yIACF;EAGF,OAAO,EACL,MAAM,EACJ,cAAc,KAAK,aACrB,EACF;CACF;;GACD,yBAAA,uBAAA,CAAA,EAAD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-backend",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
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.11.5"
23
+ "@milaboratories/pl-client": "3.12.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "~24.5.2",
27
27
  "@vitest/coverage-istanbul": "^4.1.3",
28
28
  "typescript": "~5.9.3",
29
29
  "vitest": "^4.1.3",
30
- "@milaboratories/build-configs": "2.0.0",
31
- "@milaboratories/ts-configs": "1.2.3",
32
- "@milaboratories/ts-builder": "1.5.2"
30
+ "@milaboratories/ts-builder": "1.6.0",
31
+ "@milaboratories/ts-configs": "1.3.0",
32
+ "@milaboratories/build-configs": "2.0.0"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "ts-builder build --target node",