@milaboratories/pl-model-middle-layer 1.30.8 → 1.30.9

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.
Files changed (86) hide show
  1. package/dist/author_marker.d.ts +1 -1
  2. package/dist/block_meta/block_components.cjs +0 -1
  3. package/dist/block_meta/block_components.cjs.map +1 -1
  4. package/dist/block_meta/block_components.d.ts.map +1 -1
  5. package/dist/block_meta/block_components.js.map +1 -1
  6. package/dist/block_meta/block_description.cjs +0 -1
  7. package/dist/block_meta/block_description.cjs.map +1 -1
  8. package/dist/block_meta/block_description.d.ts.map +1 -1
  9. package/dist/block_meta/block_description.js.map +1 -1
  10. package/dist/block_meta/block_id.cjs +0 -1
  11. package/dist/block_meta/block_id.cjs.map +1 -1
  12. package/dist/block_meta/block_id.d.ts.map +1 -1
  13. package/dist/block_meta/block_id.js.map +1 -1
  14. package/dist/block_meta/block_manifest.cjs +0 -1
  15. package/dist/block_meta/block_manifest.cjs.map +1 -1
  16. package/dist/block_meta/block_manifest.d.ts +12 -13
  17. package/dist/block_meta/block_manifest.d.ts.map +1 -1
  18. package/dist/block_meta/block_manifest.js.map +1 -1
  19. package/dist/block_meta/block_meta.cjs +26 -1
  20. package/dist/block_meta/block_meta.cjs.map +1 -1
  21. package/dist/block_meta/block_meta.d.ts.map +1 -1
  22. package/dist/block_meta/block_meta.js +26 -0
  23. package/dist/block_meta/block_meta.js.map +1 -1
  24. package/dist/block_meta/content_conversion.cjs.map +1 -1
  25. package/dist/block_meta/content_conversion.js.map +1 -1
  26. package/dist/block_meta/content_types.cjs +0 -1
  27. package/dist/block_meta/content_types.cjs.map +1 -1
  28. package/dist/block_meta/content_types.d.ts.map +1 -1
  29. package/dist/block_meta/content_types.js.map +1 -1
  30. package/dist/block_meta/index.cjs +44 -8
  31. package/dist/block_meta/index.d.ts +2 -1
  32. package/dist/block_meta/index.js +9 -8
  33. package/dist/block_meta/semver.cjs +0 -1
  34. package/dist/block_meta/semver.cjs.map +1 -1
  35. package/dist/block_meta/semver.d.ts.map +1 -1
  36. package/dist/block_meta/semver.js.map +1 -1
  37. package/dist/block_registry/block_pack_spec.cjs +25 -1
  38. package/dist/block_registry/block_pack_spec.cjs.map +1 -1
  39. package/dist/block_registry/block_pack_spec.d.ts +63 -1
  40. package/dist/block_registry/block_pack_spec.d.ts.map +1 -1
  41. package/dist/block_registry/block_pack_spec.js +25 -1
  42. package/dist/block_registry/block_pack_spec.js.map +1 -1
  43. package/dist/block_registry/index.cjs +26 -3
  44. package/dist/block_registry/index.d.ts +3 -2
  45. package/dist/block_registry/index.js +4 -3
  46. package/dist/block_registry/overview.cjs +0 -1
  47. package/dist/block_registry/overview.cjs.map +1 -1
  48. package/dist/block_registry/overview.d.ts +701 -42
  49. package/dist/block_registry/overview.d.ts.map +1 -1
  50. package/dist/block_registry/overview.js.map +1 -1
  51. package/dist/block_registry/registry_spec.cjs +0 -1
  52. package/dist/block_registry/registry_spec.cjs.map +1 -1
  53. package/dist/block_registry/registry_spec.d.ts.map +1 -1
  54. package/dist/block_registry/registry_spec.js.map +1 -1
  55. package/dist/block_settings.cjs.map +1 -1
  56. package/dist/block_settings.d.ts.map +1 -1
  57. package/dist/block_settings.js.map +1 -1
  58. package/dist/index.cjs +1 -0
  59. package/dist/index.d.ts +2 -2
  60. package/dist/index.js +2 -2
  61. package/dist/json.cjs +1 -1
  62. package/dist/json.cjs.map +1 -1
  63. package/dist/json.d.ts.map +1 -1
  64. package/dist/json.js.map +1 -1
  65. package/dist/pframe/index.d.ts +2 -1
  66. package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
  67. package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
  68. package/dist/pframe/internal_api/api_wasm.d.ts.map +1 -1
  69. package/dist/pframe/internal_api/common.d.ts.map +1 -1
  70. package/dist/pframe/internal_api/create_table.d.ts.map +1 -1
  71. package/dist/pframe/internal_api/delete_column.d.ts.map +1 -1
  72. package/dist/pframe/internal_api/discover_columns.d.ts.map +1 -1
  73. package/dist/pframe/internal_api/find_columns.d.ts.map +1 -1
  74. package/dist/pframe/internal_api/http_helpers.cjs.map +1 -1
  75. package/dist/pframe/internal_api/http_helpers.d.ts.map +1 -1
  76. package/dist/pframe/internal_api/http_helpers.js.map +1 -1
  77. package/dist/pframe/internal_api/index.cjs +4 -0
  78. package/dist/pframe/internal_api/index.d.ts +1 -1
  79. package/dist/pframe/internal_api/index.js +1 -1
  80. package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
  81. package/dist/project.d.ts.map +1 -1
  82. package/dist/project_overview.d.ts.map +1 -1
  83. package/dist/storage_debug_view.d.ts.map +1 -1
  84. package/dist/update_info.d.ts.map +1 -1
  85. package/package.json +6 -6
  86. package/src/block_registry/block_pack_spec.ts +26 -0
@@ -1,2 +1,2 @@
1
1
  import { AuthorMarker as AuthorMarker$1 } from "@milaboratories/pl-model-common";
2
- export { type AuthorMarker$1 as AuthorMarker };
2
+ export type { AuthorMarker$1 as AuthorMarker };
@@ -1,4 +1,3 @@
1
- require("../_virtual/_rolldown/runtime.cjs");
2
1
  let zod = require("zod");
3
2
  //#region src/block_meta/block_components.ts
4
3
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"block_components.cjs","names":["z"],"sources":["../../src/block_meta/block_components.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//\n// Workflow + BlockComponents canonical TS types.\n//\n\n/**\n * Wrapped workflow component, schema version 1. Currently the only workflow\n * schema; carries a single `main` entry pointing at the workflow source.\n */\nexport type WorkflowV1<Content> = {\n type: \"workflow-v1\";\n main: Content;\n};\n\n/**\n * Current workflow component shape. Alias to `WorkflowV1` while v1 is the\n * only version — future versions widen this to a discriminated union.\n */\nexport type Workflow<Content> = WorkflowV1<Content>;\n\n/**\n * Trio of artifacts every block ships: a workflow (Tengo source), a model\n * (compiled JS), and a UI (front-end bundle). `WMContent` carries\n * `workflow.main` and `model` together (they travel as files); `UIContent`\n * carries the UI bundle (a folder when resolved locally, a relative path in\n * manifest form). Parameterizing this lets the same shape express every\n * stage the description passes through: raw `package.json` input (bare\n * strings), manifest form (relative paths stored in the registry), resolved\n * absolute form (local file/folder paths), and the registry-reader output\n * (URLs into registry storage, produced by `blockComponentsManifestToAbsoluteUrl`).\n */\nexport type BlockComponents<WMContent, UIContent> = {\n workflow: Workflow<WMContent>;\n model: WMContent;\n ui: UIContent;\n};\n\n/**\n * Builds the zod schema for a wrapped workflow component carrying `content`\n * as the `main` payload. Shared between the `package.json` boundary parser\n * (where `content` is `z.string()`) and the manifest schema (where `content`\n * is `ContentRelative`).\n */\nexport function WorkflowSchemaV1<C extends z.ZodTypeAny>(content: C) {\n return z\n .object({\n type: z.literal(\"workflow-v1\"),\n main: content,\n })\n .strict();\n}\n\n//\n// `package.json` boundary schema. The workflow field accepts either a bare\n// string (treated as `main`) or the wrapped object form; both normalize to\n// the canonical wrapped shape.\n//\n\nconst WorkflowDescriptionRaw = z.union([\n z.string().transform<WorkflowV1<string>>((value) => ({\n type: \"workflow-v1\",\n main: value,\n })),\n WorkflowSchemaV1(z.string()),\n]) satisfies z.ZodType<Workflow<string>, z.ZodTypeDef, any>;\n\nexport type BlockComponentsDescriptionRaw = BlockComponents<string, string>;\n\nexport const BlockComponentsDescriptionRaw = z.object({\n workflow: WorkflowDescriptionRaw,\n model: z.string(),\n ui: z.string(),\n}) satisfies z.ZodType<BlockComponentsDescriptionRaw, z.ZodTypeDef, any>;\n"],"mappings":";;;;;;;;;AA4CA,SAAgB,iBAAyC,SAAY;AACnE,QAAOA,IAAAA,EACJ,OAAO;EACN,MAAMA,IAAAA,EAAE,QAAQ,cAAc;EAC9B,MAAM;EACP,CAAC,CACD,QAAQ;;AASb,MAAM,yBAAyBA,IAAAA,EAAE,MAAM,CACrCA,IAAAA,EAAE,QAAQ,CAAC,WAA+B,WAAW;CACnD,MAAM;CACN,MAAM;CACP,EAAE,EACH,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAC7B,CAAC;AAIF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,UAAU;CACV,OAAOA,IAAAA,EAAE,QAAQ;CACjB,IAAIA,IAAAA,EAAE,QAAQ;CACf,CAAC"}
1
+ {"version":3,"file":"block_components.cjs","names":["z"],"sources":["../../src/block_meta/block_components.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//\n// Workflow + BlockComponents canonical TS types.\n//\n\n/**\n * Wrapped workflow component, schema version 1. Currently the only workflow\n * schema; carries a single `main` entry pointing at the workflow source.\n */\nexport type WorkflowV1<Content> = {\n type: \"workflow-v1\";\n main: Content;\n};\n\n/**\n * Current workflow component shape. Alias to `WorkflowV1` while v1 is the\n * only version — future versions widen this to a discriminated union.\n */\nexport type Workflow<Content> = WorkflowV1<Content>;\n\n/**\n * Trio of artifacts every block ships: a workflow (Tengo source), a model\n * (compiled JS), and a UI (front-end bundle). `WMContent` carries\n * `workflow.main` and `model` together (they travel as files); `UIContent`\n * carries the UI bundle (a folder when resolved locally, a relative path in\n * manifest form). Parameterizing this lets the same shape express every\n * stage the description passes through: raw `package.json` input (bare\n * strings), manifest form (relative paths stored in the registry), resolved\n * absolute form (local file/folder paths), and the registry-reader output\n * (URLs into registry storage, produced by `blockComponentsManifestToAbsoluteUrl`).\n */\nexport type BlockComponents<WMContent, UIContent> = {\n workflow: Workflow<WMContent>;\n model: WMContent;\n ui: UIContent;\n};\n\n/**\n * Builds the zod schema for a wrapped workflow component carrying `content`\n * as the `main` payload. Shared between the `package.json` boundary parser\n * (where `content` is `z.string()`) and the manifest schema (where `content`\n * is `ContentRelative`).\n */\nexport function WorkflowSchemaV1<C extends z.ZodTypeAny>(content: C) {\n return z\n .object({\n type: z.literal(\"workflow-v1\"),\n main: content,\n })\n .strict();\n}\n\n//\n// `package.json` boundary schema. The workflow field accepts either a bare\n// string (treated as `main`) or the wrapped object form; both normalize to\n// the canonical wrapped shape.\n//\n\nconst WorkflowDescriptionRaw = z.union([\n z.string().transform<WorkflowV1<string>>((value) => ({\n type: \"workflow-v1\",\n main: value,\n })),\n WorkflowSchemaV1(z.string()),\n]) satisfies z.ZodType<Workflow<string>, z.ZodTypeDef, any>;\n\nexport type BlockComponentsDescriptionRaw = BlockComponents<string, string>;\n\nexport const BlockComponentsDescriptionRaw = z.object({\n workflow: WorkflowDescriptionRaw,\n model: z.string(),\n ui: z.string(),\n}) satisfies z.ZodType<BlockComponentsDescriptionRaw, z.ZodTypeDef, any>;\n"],"mappings":";;;;;;;;AA4CA,SAAgB,iBAAyC,SAAY;CACnE,OAAOA,IAAAA,EACJ,OAAO;EACN,MAAMA,IAAAA,EAAE,QAAQ,aAAa;EAC7B,MAAM;CACR,CAAC,CAAC,CACD,OAAO;AACZ;AAQA,MAAM,yBAAyBA,IAAAA,EAAE,MAAM,CACrCA,IAAAA,EAAE,OAAO,CAAC,CAAC,WAA+B,WAAW;CACnD,MAAM;CACN,MAAM;AACR,EAAE,GACF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAC7B,CAAC;AAID,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,UAAU;CACV,OAAOA,IAAAA,EAAE,OAAO;CAChB,IAAIA,IAAAA,EAAE,OAAO;AACf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"block_components.d.ts","names":[],"sources":["../../src/block_meta/block_components.ts"],"mappings":";;;;;AAUA;;KAAY,UAAA;EACV,IAAA;EACA,IAAA,EAAM,OAAA;AAAA;;;;;KAOI,QAAA,YAAoB,UAAA,CAAW,OAAA;;;;;;;;;AAa3C;;;KAAY,eAAA;EACV,QAAA,EAAU,QAAA,CAAS,SAAA;EACnB,KAAA,EAAO,SAAA;EACP,EAAA,EAAI,SAAA;AAAA;;;;;;;iBASU,gBAAA,WAA2B,CAAA,CAAE,UAAA,CAAA,CAAY,OAAA,EAAS,CAAA,GAAC,CAAA,CAAA,SAAA;;;;;;;;;;KAuBvD,6BAAA,GAAgC,eAAA;AAAA,cAE/B,6BAAA,EAA6B,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"block_components.d.ts","names":[],"sources":["../../src/block_meta/block_components.ts"],"mappings":";;;;;AAUA;;KAAY,UAAA;EACV,IAAA;EACA,IAAA,EAAM,OAAO;AAAA;;;;AAAA;KAOH,QAAA,YAAoB,UAAU,CAAC,OAAA;;;;;;;;AAAO;AAalD;;;KAAY,eAAA;EACV,QAAA,EAAU,QAAA,CAAS,SAAA;EACnB,KAAA,EAAO,SAAA;EACP,EAAA,EAAI,SAAA;AAAA;;;;;;;iBASU,gBAAA,WAA2B,CAAA,CAAE,UAAA,EAAY,OAAA,EAAS,CAAA,GAAC,CAAA,CAAA,SAAA;;;;;;;;;;KAuBvD,6BAAA,GAAgC,eAAe;AAAA,cAE9C,6BAAA,EAA6B,CAAA,CAAA,SAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"block_components.js","names":[],"sources":["../../src/block_meta/block_components.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//\n// Workflow + BlockComponents canonical TS types.\n//\n\n/**\n * Wrapped workflow component, schema version 1. Currently the only workflow\n * schema; carries a single `main` entry pointing at the workflow source.\n */\nexport type WorkflowV1<Content> = {\n type: \"workflow-v1\";\n main: Content;\n};\n\n/**\n * Current workflow component shape. Alias to `WorkflowV1` while v1 is the\n * only version — future versions widen this to a discriminated union.\n */\nexport type Workflow<Content> = WorkflowV1<Content>;\n\n/**\n * Trio of artifacts every block ships: a workflow (Tengo source), a model\n * (compiled JS), and a UI (front-end bundle). `WMContent` carries\n * `workflow.main` and `model` together (they travel as files); `UIContent`\n * carries the UI bundle (a folder when resolved locally, a relative path in\n * manifest form). Parameterizing this lets the same shape express every\n * stage the description passes through: raw `package.json` input (bare\n * strings), manifest form (relative paths stored in the registry), resolved\n * absolute form (local file/folder paths), and the registry-reader output\n * (URLs into registry storage, produced by `blockComponentsManifestToAbsoluteUrl`).\n */\nexport type BlockComponents<WMContent, UIContent> = {\n workflow: Workflow<WMContent>;\n model: WMContent;\n ui: UIContent;\n};\n\n/**\n * Builds the zod schema for a wrapped workflow component carrying `content`\n * as the `main` payload. Shared between the `package.json` boundary parser\n * (where `content` is `z.string()`) and the manifest schema (where `content`\n * is `ContentRelative`).\n */\nexport function WorkflowSchemaV1<C extends z.ZodTypeAny>(content: C) {\n return z\n .object({\n type: z.literal(\"workflow-v1\"),\n main: content,\n })\n .strict();\n}\n\n//\n// `package.json` boundary schema. The workflow field accepts either a bare\n// string (treated as `main`) or the wrapped object form; both normalize to\n// the canonical wrapped shape.\n//\n\nconst WorkflowDescriptionRaw = z.union([\n z.string().transform<WorkflowV1<string>>((value) => ({\n type: \"workflow-v1\",\n main: value,\n })),\n WorkflowSchemaV1(z.string()),\n]) satisfies z.ZodType<Workflow<string>, z.ZodTypeDef, any>;\n\nexport type BlockComponentsDescriptionRaw = BlockComponents<string, string>;\n\nexport const BlockComponentsDescriptionRaw = z.object({\n workflow: WorkflowDescriptionRaw,\n model: z.string(),\n ui: z.string(),\n}) satisfies z.ZodType<BlockComponentsDescriptionRaw, z.ZodTypeDef, any>;\n"],"mappings":";;;;;;;;AA4CA,SAAgB,iBAAyC,SAAY;AACnE,QAAO,EACJ,OAAO;EACN,MAAM,EAAE,QAAQ,cAAc;EAC9B,MAAM;EACP,CAAC,CACD,QAAQ;;AASb,MAAM,yBAAyB,EAAE,MAAM,CACrC,EAAE,QAAQ,CAAC,WAA+B,WAAW;CACnD,MAAM;CACN,MAAM;CACP,EAAE,EACH,iBAAiB,EAAE,QAAQ,CAAC,CAC7B,CAAC;AAIF,MAAa,gCAAgC,EAAE,OAAO;CACpD,UAAU;CACV,OAAO,EAAE,QAAQ;CACjB,IAAI,EAAE,QAAQ;CACf,CAAC"}
1
+ {"version":3,"file":"block_components.js","names":[],"sources":["../../src/block_meta/block_components.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//\n// Workflow + BlockComponents canonical TS types.\n//\n\n/**\n * Wrapped workflow component, schema version 1. Currently the only workflow\n * schema; carries a single `main` entry pointing at the workflow source.\n */\nexport type WorkflowV1<Content> = {\n type: \"workflow-v1\";\n main: Content;\n};\n\n/**\n * Current workflow component shape. Alias to `WorkflowV1` while v1 is the\n * only version — future versions widen this to a discriminated union.\n */\nexport type Workflow<Content> = WorkflowV1<Content>;\n\n/**\n * Trio of artifacts every block ships: a workflow (Tengo source), a model\n * (compiled JS), and a UI (front-end bundle). `WMContent` carries\n * `workflow.main` and `model` together (they travel as files); `UIContent`\n * carries the UI bundle (a folder when resolved locally, a relative path in\n * manifest form). Parameterizing this lets the same shape express every\n * stage the description passes through: raw `package.json` input (bare\n * strings), manifest form (relative paths stored in the registry), resolved\n * absolute form (local file/folder paths), and the registry-reader output\n * (URLs into registry storage, produced by `blockComponentsManifestToAbsoluteUrl`).\n */\nexport type BlockComponents<WMContent, UIContent> = {\n workflow: Workflow<WMContent>;\n model: WMContent;\n ui: UIContent;\n};\n\n/**\n * Builds the zod schema for a wrapped workflow component carrying `content`\n * as the `main` payload. Shared between the `package.json` boundary parser\n * (where `content` is `z.string()`) and the manifest schema (where `content`\n * is `ContentRelative`).\n */\nexport function WorkflowSchemaV1<C extends z.ZodTypeAny>(content: C) {\n return z\n .object({\n type: z.literal(\"workflow-v1\"),\n main: content,\n })\n .strict();\n}\n\n//\n// `package.json` boundary schema. The workflow field accepts either a bare\n// string (treated as `main`) or the wrapped object form; both normalize to\n// the canonical wrapped shape.\n//\n\nconst WorkflowDescriptionRaw = z.union([\n z.string().transform<WorkflowV1<string>>((value) => ({\n type: \"workflow-v1\",\n main: value,\n })),\n WorkflowSchemaV1(z.string()),\n]) satisfies z.ZodType<Workflow<string>, z.ZodTypeDef, any>;\n\nexport type BlockComponentsDescriptionRaw = BlockComponents<string, string>;\n\nexport const BlockComponentsDescriptionRaw = z.object({\n workflow: WorkflowDescriptionRaw,\n model: z.string(),\n ui: z.string(),\n}) satisfies z.ZodType<BlockComponentsDescriptionRaw, z.ZodTypeDef, any>;\n"],"mappings":";;;;;;;;AA4CA,SAAgB,iBAAyC,SAAY;CACnE,OAAO,EACJ,OAAO;EACN,MAAM,EAAE,QAAQ,aAAa;EAC7B,MAAM;CACR,CAAC,CAAC,CACD,OAAO;AACZ;AAQA,MAAM,yBAAyB,EAAE,MAAM,CACrC,EAAE,OAAO,CAAC,CAAC,WAA+B,WAAW;CACnD,MAAM;CACN,MAAM;AACR,EAAE,GACF,iBAAiB,EAAE,OAAO,CAAC,CAC7B,CAAC;AAID,MAAa,gCAAgC,EAAE,OAAO;CACpD,UAAU;CACV,OAAO,EAAE,OAAO;CAChB,IAAI,EAAE,OAAO;AACf,CAAC"}
@@ -1,4 +1,3 @@
1
- require("../_virtual/_rolldown/runtime.cjs");
2
1
  const require_block_id = require("./block_id.cjs");
3
2
  const require_block_components = require("./block_components.cjs");
4
3
  const require_block_meta = require("./block_meta.cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"block_description.cjs","names":["z","BlockComponentsDescriptionRaw","BlockPackMetaDescriptionRaw","BlockPackId"],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockCodeKnownFeatureFlags } from \"@milaboratories/pl-model-common\";\n\n/**\n * Block-pack description: a `BlockPackId`, the typed `components` and `meta`\n * payloads, and optional `featureFlags`. The two type parameters let the same\n * shape carry every form a description travels in — `package.json` source,\n * relative-path manifest, absolute-path resolved.\n */\nexport type BlockPackDescription<Components, Meta> = {\n id: BlockPackId;\n components: Components;\n meta: Meta;\n featureFlags?: BlockCodeKnownFeatureFlags;\n};\n\n/**\n * Description as it appears in the root block `package.json`. `file:`-prefixed\n * strings become `ContentRelative`; bare text strings become\n * `ContentExplicitString`. See `DescriptionContentText`/`DescriptionContentBinary`.\n */\nexport const BlockPackDescriptionFromPackageJsonRaw = z.object({\n components: BlockComponentsDescriptionRaw,\n meta: BlockPackMetaDescriptionRaw,\n});\n\nexport const FeatureFlags = z\n .record(z.string(), z.union([z.boolean(), z.number()]))\n .transform((flags) => flags as BlockCodeKnownFeatureFlags);\n\nexport function CreateBlockPackDescriptionSchema<\n Components extends ZodTypeAny,\n Meta extends ZodTypeAny,\n>(components: Components, meta: Meta) {\n return z\n .object({\n id: BlockPackId,\n components,\n meta,\n featureFlags: FeatureFlags.optional(),\n })\n .passthrough();\n}\n\nexport const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(\n BlockComponentsDescriptionRaw,\n BlockPackMetaDescriptionRaw,\n);\nexport type BlockPackDescriptionRaw = z.infer<typeof BlockPackDescriptionRaw>;\n\nexport function overrideDescriptionVersion<T extends { id: BlockPackId }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { id: { version: newVersion } }) as T;\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,YAAYC,yBAAAA;CACZ,MAAMC,mBAAAA;CACP,CAAC;AAEF,MAAa,eAAeF,IAAAA,EACzB,OAAOA,IAAAA,EAAE,QAAQ,EAAEA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,SAAS,EAAEA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CACtD,WAAW,UAAU,MAAoC;AAE5D,SAAgB,iCAGd,YAAwB,MAAY;AACpC,QAAOA,IAAAA,EACJ,OAAO;EACN,IAAIG,iBAAAA;EACJ;EACA;EACA,cAAc,aAAa,UAAU;EACtC,CAAC,CACD,aAAa;;AAGlB,MAAa,0BAA0B,iCACrCF,yBAAAA,+BACAC,mBAAAA,4BACD;AAGD,SAAgB,2BACd,UACA,YACG;AACH,SAAA,GAAA,WAAA,UAAgB,UAAU,EAAE,IAAI,EAAE,SAAS,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"block_description.cjs","names":["z","BlockComponentsDescriptionRaw","BlockPackMetaDescriptionRaw","BlockPackId"],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockCodeKnownFeatureFlags } from \"@milaboratories/pl-model-common\";\n\n/**\n * Block-pack description: a `BlockPackId`, the typed `components` and `meta`\n * payloads, and optional `featureFlags`. The two type parameters let the same\n * shape carry every form a description travels in — `package.json` source,\n * relative-path manifest, absolute-path resolved.\n */\nexport type BlockPackDescription<Components, Meta> = {\n id: BlockPackId;\n components: Components;\n meta: Meta;\n featureFlags?: BlockCodeKnownFeatureFlags;\n};\n\n/**\n * Description as it appears in the root block `package.json`. `file:`-prefixed\n * strings become `ContentRelative`; bare text strings become\n * `ContentExplicitString`. See `DescriptionContentText`/`DescriptionContentBinary`.\n */\nexport const BlockPackDescriptionFromPackageJsonRaw = z.object({\n components: BlockComponentsDescriptionRaw,\n meta: BlockPackMetaDescriptionRaw,\n});\n\nexport const FeatureFlags = z\n .record(z.string(), z.union([z.boolean(), z.number()]))\n .transform((flags) => flags as BlockCodeKnownFeatureFlags);\n\nexport function CreateBlockPackDescriptionSchema<\n Components extends ZodTypeAny,\n Meta extends ZodTypeAny,\n>(components: Components, meta: Meta) {\n return z\n .object({\n id: BlockPackId,\n components,\n meta,\n featureFlags: FeatureFlags.optional(),\n })\n .passthrough();\n}\n\nexport const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(\n BlockComponentsDescriptionRaw,\n BlockPackMetaDescriptionRaw,\n);\nexport type BlockPackDescriptionRaw = z.infer<typeof BlockPackDescriptionRaw>;\n\nexport function overrideDescriptionVersion<T extends { id: BlockPackId }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { id: { version: newVersion } }) as T;\n}\n"],"mappings":";;;;;;;;;;;AA0BA,MAAa,yCAAyCA,IAAA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;;;;KAIxB,uBAAA,GAA0B,CAAA,CAAE,KAAK,QAAQ,uBAAA;AAAA,iBAErC,0BAAA;EAAuC,EAAA,EAAI,WAAA;AAAA,GACzD,QAAA,EAAU,CAAA,EACV,UAAA,WACC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"block_description.js","names":[],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockCodeKnownFeatureFlags } from \"@milaboratories/pl-model-common\";\n\n/**\n * Block-pack description: a `BlockPackId`, the typed `components` and `meta`\n * payloads, and optional `featureFlags`. The two type parameters let the same\n * shape carry every form a description travels in — `package.json` source,\n * relative-path manifest, absolute-path resolved.\n */\nexport type BlockPackDescription<Components, Meta> = {\n id: BlockPackId;\n components: Components;\n meta: Meta;\n featureFlags?: BlockCodeKnownFeatureFlags;\n};\n\n/**\n * Description as it appears in the root block `package.json`. `file:`-prefixed\n * strings become `ContentRelative`; bare text strings become\n * `ContentExplicitString`. See `DescriptionContentText`/`DescriptionContentBinary`.\n */\nexport const BlockPackDescriptionFromPackageJsonRaw = z.object({\n components: BlockComponentsDescriptionRaw,\n meta: BlockPackMetaDescriptionRaw,\n});\n\nexport const FeatureFlags = z\n .record(z.string(), z.union([z.boolean(), z.number()]))\n .transform((flags) => flags as BlockCodeKnownFeatureFlags);\n\nexport function CreateBlockPackDescriptionSchema<\n Components extends ZodTypeAny,\n Meta extends ZodTypeAny,\n>(components: Components, meta: Meta) {\n return z\n .object({\n id: BlockPackId,\n components,\n meta,\n featureFlags: FeatureFlags.optional(),\n })\n .passthrough();\n}\n\nexport const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(\n BlockComponentsDescriptionRaw,\n BlockPackMetaDescriptionRaw,\n);\nexport type BlockPackDescriptionRaw = z.infer<typeof BlockPackDescriptionRaw>;\n\nexport function overrideDescriptionVersion<T extends { id: BlockPackId }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { id: { version: newVersion } }) as T;\n}\n"],"mappings":";;;;;;;;;;;AA0BA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,YAAY;CACZ,MAAM;CACP,CAAC;AAEF,MAAa,eAAe,EACzB,OAAO,EAAE,QAAQ,EAAE,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,CACtD,WAAW,UAAU,MAAoC;AAE5D,SAAgB,iCAGd,YAAwB,MAAY;AACpC,QAAO,EACJ,OAAO;EACN,IAAI;EACJ;EACA;EACA,cAAc,aAAa,UAAU;EACtC,CAAC,CACD,aAAa;;AAGlB,MAAa,0BAA0B,iCACrC,+BACA,4BACD;AAGD,SAAgB,2BACd,UACA,YACG;AACH,QAAO,SAAS,UAAU,EAAE,IAAI,EAAE,SAAS,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"block_description.js","names":[],"sources":["../../src/block_meta/block_description.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { z } from \"zod\";\nimport { BlockComponentsDescriptionRaw } from \"./block_components\";\nimport { BlockPackMetaDescriptionRaw } from \"./block_meta\";\nimport { BlockPackId } from \"./block_id\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockCodeKnownFeatureFlags } from \"@milaboratories/pl-model-common\";\n\n/**\n * Block-pack description: a `BlockPackId`, the typed `components` and `meta`\n * payloads, and optional `featureFlags`. The two type parameters let the same\n * shape carry every form a description travels in — `package.json` source,\n * relative-path manifest, absolute-path resolved.\n */\nexport type BlockPackDescription<Components, Meta> = {\n id: BlockPackId;\n components: Components;\n meta: Meta;\n featureFlags?: BlockCodeKnownFeatureFlags;\n};\n\n/**\n * Description as it appears in the root block `package.json`. `file:`-prefixed\n * strings become `ContentRelative`; bare text strings become\n * `ContentExplicitString`. See `DescriptionContentText`/`DescriptionContentBinary`.\n */\nexport const BlockPackDescriptionFromPackageJsonRaw = z.object({\n components: BlockComponentsDescriptionRaw,\n meta: BlockPackMetaDescriptionRaw,\n});\n\nexport const FeatureFlags = z\n .record(z.string(), z.union([z.boolean(), z.number()]))\n .transform((flags) => flags as BlockCodeKnownFeatureFlags);\n\nexport function CreateBlockPackDescriptionSchema<\n Components extends ZodTypeAny,\n Meta extends ZodTypeAny,\n>(components: Components, meta: Meta) {\n return z\n .object({\n id: BlockPackId,\n components,\n meta,\n featureFlags: FeatureFlags.optional(),\n })\n .passthrough();\n}\n\nexport const BlockPackDescriptionRaw = CreateBlockPackDescriptionSchema(\n BlockComponentsDescriptionRaw,\n BlockPackMetaDescriptionRaw,\n);\nexport type BlockPackDescriptionRaw = z.infer<typeof BlockPackDescriptionRaw>;\n\nexport function overrideDescriptionVersion<T extends { id: BlockPackId }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { id: { version: newVersion } }) as T;\n}\n"],"mappings":";;;;;;;;;;;AA0BA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,YAAY;CACZ,MAAM;AACR,CAAC;AAED,MAAa,eAAe,EACzB,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CACtD,WAAW,UAAU,KAAmC;AAE3D,SAAgB,iCAGd,YAAwB,MAAY;CACpC,OAAO,EACJ,OAAO;EACN,IAAI;EACJ;EACA;EACA,cAAc,aAAa,SAAS;CACtC,CAAC,CAAC,CACD,YAAY;AACjB;AAEA,MAAa,0BAA0B,iCACrC,+BACA,2BACF;AAGA,SAAgB,2BACd,UACA,YACG;CACH,OAAO,SAAS,UAAU,EAAE,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;AAC3D"}
@@ -1,4 +1,3 @@
1
- require("../_virtual/_rolldown/runtime.cjs");
2
1
  const require_semver = require("./semver.cjs");
3
2
  let zod = require("zod");
4
3
  //#region src/block_meta/block_id.ts
@@ -1 +1 @@
1
- {"version":3,"file":"block_id.cjs","names":["z","SemVer"],"sources":["../../src/block_meta/block_id.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { SemVer } from \"./semver\";\n\n/** Global identifier of the block */\nexport const BlockPackId = z\n .object({\n organization: z.string(),\n name: z.string(),\n version: SemVer,\n })\n .strict();\nexport type BlockPackId = z.infer<typeof BlockPackId>;\n\nexport const BlockPackIdNoVersion = BlockPackId.omit({ version: true });\nexport type BlockPackIdNoVersion = z.infer<typeof BlockPackIdNoVersion>;\n\nexport function blockPackIdToString(bp: BlockPackId): string;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}:${bp.version}`;\n}\n\nexport function blockPackIdNoVersionToString(bp: BlockPackIdNoVersion): string;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}`;\n}\n\nexport function blockPackIdEquals(\n bp1: BlockPackId | undefined,\n bp2: BlockPackId | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return (\n bp1.name === bp2.name && bp1.organization === bp2.organization && bp1.version === bp2.version\n );\n}\n\nexport function blockPackIdNoVersionEquals(\n bp1: BlockPackIdNoVersion | undefined,\n bp2: BlockPackIdNoVersion | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return bp1.name === bp2.name && bp1.organization === bp2.organization;\n}\n"],"mappings":";;;;;AAIA,MAAa,cAAcA,IAAAA,EACxB,OAAO;CACN,cAAcA,IAAAA,EAAE,QAAQ;CACxB,MAAMA,IAAAA,EAAE,QAAQ;CAChB,SAASC,eAAAA;CACV,CAAC,CACD,QAAQ;AAGX,MAAa,uBAAuB,YAAY,KAAK,EAAE,SAAS,MAAM,CAAC;AAKvE,SAAgB,oBAAoB,IAAiD;AACnF,KAAI,OAAO,KAAA,EAAW,QAAO,KAAA;AAC7B,QAAO,GAAG,GAAG,aAAa,GAAG,GAAG,KAAK,GAAG,GAAG;;AAO7C,SAAgB,6BACd,IACoB;AACpB,KAAI,OAAO,KAAA,EAAW,QAAO,KAAA;AAC7B,QAAO,GAAG,GAAG,aAAa,GAAG,GAAG;;AAGlC,SAAgB,kBACd,KACA,KACS;AACT,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,QACE,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI,gBAAgB,IAAI,YAAY,IAAI;;AAI1F,SAAgB,2BACd,KACA,KACS;AACT,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,QAAO,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI"}
1
+ {"version":3,"file":"block_id.cjs","names":["z","SemVer"],"sources":["../../src/block_meta/block_id.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { SemVer } from \"./semver\";\n\n/** Global identifier of the block */\nexport const BlockPackId = z\n .object({\n organization: z.string(),\n name: z.string(),\n version: SemVer,\n })\n .strict();\nexport type BlockPackId = z.infer<typeof BlockPackId>;\n\nexport const BlockPackIdNoVersion = BlockPackId.omit({ version: true });\nexport type BlockPackIdNoVersion = z.infer<typeof BlockPackIdNoVersion>;\n\nexport function blockPackIdToString(bp: BlockPackId): string;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}:${bp.version}`;\n}\n\nexport function blockPackIdNoVersionToString(bp: BlockPackIdNoVersion): string;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}`;\n}\n\nexport function blockPackIdEquals(\n bp1: BlockPackId | undefined,\n bp2: BlockPackId | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return (\n bp1.name === bp2.name && bp1.organization === bp2.organization && bp1.version === bp2.version\n );\n}\n\nexport function blockPackIdNoVersionEquals(\n bp1: BlockPackIdNoVersion | undefined,\n bp2: BlockPackIdNoVersion | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return bp1.name === bp2.name && bp1.organization === bp2.organization;\n}\n"],"mappings":";;;;AAIA,MAAa,cAAcA,IAAAA,EACxB,OAAO;CACN,cAAcA,IAAAA,EAAE,OAAO;CACvB,MAAMA,IAAAA,EAAE,OAAO;CACf,SAASC,eAAAA;AACX,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,uBAAuB,YAAY,KAAK,EAAE,SAAS,KAAK,CAAC;AAKtE,SAAgB,oBAAoB,IAAiD;CACnF,IAAI,OAAO,KAAA,GAAW,OAAO,KAAA;CAC7B,OAAO,GAAG,GAAG,aAAa,GAAG,GAAG,KAAK,GAAG,GAAG;AAC7C;AAMA,SAAgB,6BACd,IACoB;CACpB,IAAI,OAAO,KAAA,GAAW,OAAO,KAAA;CAC7B,OAAO,GAAG,GAAG,aAAa,GAAG,GAAG;AAClC;AAEA,SAAgB,kBACd,KACA,KACS;CACT,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,OACE,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI,gBAAgB,IAAI,YAAY,IAAI;AAE1F;AAEA,SAAgB,2BACd,KACA,KACS;CACT,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,OAAO,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI;AAC3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"block_id.d.ts","names":[],"sources":["../../src/block_meta/block_id.ts"],"mappings":";;;;cAIa,WAAA,EAAW,CAAA,CAAA,SAAA;;;;;;;;;;;;;KAOZ,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,WAAA;AAAA,cAE5B,oBAAA,EAAoB,CAAA,CAAA,SAAA,CAAA,IAAA;;;;;;;;;;;KACrB,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,iBAElC,mBAAA,CAAoB,EAAA,EAAI,WAAA;AAAA,iBACxB,mBAAA,CAAoB,EAAA,EAAI,WAAA;AAAA,iBAMxB,4BAAA,CAA6B,EAAA,EAAI,oBAAA;AAAA,iBACjC,4BAAA,CACd,EAAA,EAAI,oBAAA;AAAA,iBASU,iBAAA,CACd,GAAA,EAAK,WAAA,cACL,GAAA,EAAK,WAAA;AAAA,iBASS,0BAAA,CACd,GAAA,EAAK,oBAAA,cACL,GAAA,EAAK,oBAAA"}
1
+ {"version":3,"file":"block_id.d.ts","names":[],"sources":["../../src/block_meta/block_id.ts"],"mappings":";;;;cAIa,WAAA,EAAW,CAAA,CAAA,SAAA;;;;;;;;;;;;;KAOZ,WAAA,GAAc,CAAA,CAAE,KAAK,QAAQ,WAAA;AAAA,cAE5B,oBAAA,EAAoB,CAAA,CAAA,SAAA,CAAA,IAAA;;;;;;;;;;;KACrB,oBAAA,GAAuB,CAAA,CAAE,KAAK,QAAQ,oBAAA;AAAA,iBAElC,mBAAA,CAAoB,EAAe,EAAX,WAAW;AAAA,iBACnC,mBAAA,CAAoB,EAA2B,EAAvB,WAAW;AAAA,iBAMnC,4BAAA,CAA6B,EAAwB,EAApB,oBAAoB;AAAA,iBACrD,4BAAA,CACd,EAAoC,EAAhC,oBAAoB;AAAA,iBASV,iBAAA,CACd,GAAA,EAAK,WAAA,cACL,GAAA,EAAK,WAAW;AAAA,iBASF,0BAAA,CACd,GAAA,EAAK,oBAAA,cACL,GAAA,EAAK,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"block_id.js","names":[],"sources":["../../src/block_meta/block_id.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { SemVer } from \"./semver\";\n\n/** Global identifier of the block */\nexport const BlockPackId = z\n .object({\n organization: z.string(),\n name: z.string(),\n version: SemVer,\n })\n .strict();\nexport type BlockPackId = z.infer<typeof BlockPackId>;\n\nexport const BlockPackIdNoVersion = BlockPackId.omit({ version: true });\nexport type BlockPackIdNoVersion = z.infer<typeof BlockPackIdNoVersion>;\n\nexport function blockPackIdToString(bp: BlockPackId): string;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}:${bp.version}`;\n}\n\nexport function blockPackIdNoVersionToString(bp: BlockPackIdNoVersion): string;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}`;\n}\n\nexport function blockPackIdEquals(\n bp1: BlockPackId | undefined,\n bp2: BlockPackId | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return (\n bp1.name === bp2.name && bp1.organization === bp2.organization && bp1.version === bp2.version\n );\n}\n\nexport function blockPackIdNoVersionEquals(\n bp1: BlockPackIdNoVersion | undefined,\n bp2: BlockPackIdNoVersion | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return bp1.name === bp2.name && bp1.organization === bp2.organization;\n}\n"],"mappings":";;;;AAIA,MAAa,cAAc,EACxB,OAAO;CACN,cAAc,EAAE,QAAQ;CACxB,MAAM,EAAE,QAAQ;CAChB,SAAS;CACV,CAAC,CACD,QAAQ;AAGX,MAAa,uBAAuB,YAAY,KAAK,EAAE,SAAS,MAAM,CAAC;AAKvE,SAAgB,oBAAoB,IAAiD;AACnF,KAAI,OAAO,KAAA,EAAW,QAAO,KAAA;AAC7B,QAAO,GAAG,GAAG,aAAa,GAAG,GAAG,KAAK,GAAG,GAAG;;AAO7C,SAAgB,6BACd,IACoB;AACpB,KAAI,OAAO,KAAA,EAAW,QAAO,KAAA;AAC7B,QAAO,GAAG,GAAG,aAAa,GAAG,GAAG;;AAGlC,SAAgB,kBACd,KACA,KACS;AACT,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,QACE,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI,gBAAgB,IAAI,YAAY,IAAI;;AAI1F,SAAgB,2BACd,KACA,KACS;AACT,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,KAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,EAAW,QAAO;AACnD,QAAO,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI"}
1
+ {"version":3,"file":"block_id.js","names":[],"sources":["../../src/block_meta/block_id.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { SemVer } from \"./semver\";\n\n/** Global identifier of the block */\nexport const BlockPackId = z\n .object({\n organization: z.string(),\n name: z.string(),\n version: SemVer,\n })\n .strict();\nexport type BlockPackId = z.infer<typeof BlockPackId>;\n\nexport const BlockPackIdNoVersion = BlockPackId.omit({ version: true });\nexport type BlockPackIdNoVersion = z.infer<typeof BlockPackIdNoVersion>;\n\nexport function blockPackIdToString(bp: BlockPackId): string;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined;\nexport function blockPackIdToString(bp: BlockPackId | undefined): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}:${bp.version}`;\n}\n\nexport function blockPackIdNoVersionToString(bp: BlockPackIdNoVersion): string;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined;\nexport function blockPackIdNoVersionToString(\n bp: BlockPackIdNoVersion | undefined,\n): string | undefined {\n if (bp === undefined) return undefined;\n return `${bp.organization}:${bp.name}`;\n}\n\nexport function blockPackIdEquals(\n bp1: BlockPackId | undefined,\n bp2: BlockPackId | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return (\n bp1.name === bp2.name && bp1.organization === bp2.organization && bp1.version === bp2.version\n );\n}\n\nexport function blockPackIdNoVersionEquals(\n bp1: BlockPackIdNoVersion | undefined,\n bp2: BlockPackIdNoVersion | undefined,\n): boolean {\n if (bp1 === undefined && bp2 === undefined) return true;\n if (bp1 === undefined || bp2 === undefined) return false;\n return bp1.name === bp2.name && bp1.organization === bp2.organization;\n}\n"],"mappings":";;;;AAIA,MAAa,cAAc,EACxB,OAAO;CACN,cAAc,EAAE,OAAO;CACvB,MAAM,EAAE,OAAO;CACf,SAAS;AACX,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,uBAAuB,YAAY,KAAK,EAAE,SAAS,KAAK,CAAC;AAKtE,SAAgB,oBAAoB,IAAiD;CACnF,IAAI,OAAO,KAAA,GAAW,OAAO,KAAA;CAC7B,OAAO,GAAG,GAAG,aAAa,GAAG,GAAG,KAAK,GAAG,GAAG;AAC7C;AAMA,SAAgB,6BACd,IACoB;CACpB,IAAI,OAAO,KAAA,GAAW,OAAO,KAAA;CAC7B,OAAO,GAAG,GAAG,aAAa,GAAG,GAAG;AAClC;AAEA,SAAgB,kBACd,KACA,KACS;CACT,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,OACE,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI,gBAAgB,IAAI,YAAY,IAAI;AAE1F;AAEA,SAAgB,2BACd,KACA,KACS;CACT,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,IAAI,QAAQ,KAAA,KAAa,QAAQ,KAAA,GAAW,OAAO;CACnD,OAAO,IAAI,SAAS,IAAI,QAAQ,IAAI,iBAAiB,IAAI;AAC3D"}
@@ -1,4 +1,3 @@
1
- require("../_virtual/_rolldown/runtime.cjs");
2
1
  const require_content_types = require("./content_types.cjs");
3
2
  const require_block_components = require("./block_components.cjs");
4
3
  const require_block_meta = require("./block_meta.cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"block_manifest.cjs","names":["z","WorkflowSchemaV1","ContentRelative","BlockPackMeta","ContentRelativeText","ContentRelativeBinary","CreateBlockPackDescriptionSchema"],"sources":["../../src/block_meta/block_manifest.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { BlockComponents } from \"./block_components\";\nimport { WorkflowSchemaV1 } from \"./block_components\";\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from \"./content_types\";\nimport { CreateBlockPackDescriptionSchema } from \"./block_description\";\nimport { BlockPackMeta } from \"./block_meta\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockPackId } from \"./block_id\";\n\nexport type BlockComponentsManifest = BlockComponents<ContentRelative, ContentRelative>;\n\n/**\n * Block-components shape stored in a manifest. The consolidator always writes\n * the wrapped `{type: \"workflow-v1\", main: ...}` form, so the manifest schema\n * accepts the wrapped form only.\n */\nexport const BlockComponentsManifest = z.object({\n workflow: WorkflowSchemaV1(ContentRelative),\n model: ContentRelative,\n ui: ContentRelative,\n}) satisfies z.ZodType<BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest,\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema,\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z\n .object({\n schema: z.literal(\"v2\"),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo),\n })\n .passthrough();\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = \"manifest.json\";\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,UAAUC,yBAAAA,iBAAiBC,sBAAAA,gBAAgB;CAC3C,OAAOA,sBAAAA;CACP,IAAIA,sBAAAA;CACL,CAAC;AAEF,MAAa,wBAAwBC,mBAAAA,cAAcC,sBAAAA,qBAAqBC,sBAAAA,sBAAsB;;AAI9F,MAAa,+BAA+BC,0BAAAA,iCAC1C,yBACA,sBACD;AAGD,MAAa,eAAeN,IAAAA,EACzB,QAAQ,CACR,MAAM,cAAc,CACpB,aAAa,CACb,OAAO,GAAG;AAEb,MAAa,mBAAmBA,IAAAA,EAAE,OAAO;CACvC,MAAMA,IAAAA,EAAE,QAAQ;CAChB,MAAMA,IAAAA,EAAE,QAAQ,CAAC,KAAK;CACtB,QAAQ;CACT,CAAC;AAGF,MAAa,oBAAoBA,IAAAA,EAC9B,OAAO;CACN,QAAQA,IAAAA,EAAE,QAAQ,KAAK;CACvB,aAAa;CACb,WAAWA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAChC,OAAOA,IAAAA,EAAE,MAAM,iBAAiB;CACjC,CAAC,CACD,aAAa;AAGhB,MAAa,wBAAwB;AAErC,SAAgB,wBACd,UACA,YACG;AACH,SAAA,GAAA,WAAA,UAAgB,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,YAAY,EAAE,EAAE,CAAC"}
1
+ {"version":3,"file":"block_manifest.cjs","names":["z","WorkflowSchemaV1","ContentRelative","BlockPackMeta","ContentRelativeText","ContentRelativeBinary","CreateBlockPackDescriptionSchema"],"sources":["../../src/block_meta/block_manifest.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { BlockComponents } from \"./block_components\";\nimport { WorkflowSchemaV1 } from \"./block_components\";\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from \"./content_types\";\nimport { CreateBlockPackDescriptionSchema } from \"./block_description\";\nimport { BlockPackMeta } from \"./block_meta\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockPackId } from \"./block_id\";\n\nexport type BlockComponentsManifest = BlockComponents<ContentRelative, ContentRelative>;\n\n/**\n * Block-components shape stored in a manifest. The consolidator always writes\n * the wrapped `{type: \"workflow-v1\", main: ...}` form, so the manifest schema\n * accepts the wrapped form only.\n */\nexport const BlockComponentsManifest = z.object({\n workflow: WorkflowSchemaV1(ContentRelative),\n model: ContentRelative,\n ui: ContentRelative,\n}) satisfies z.ZodType<BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest,\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema,\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z\n .object({\n schema: z.literal(\"v2\"),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo),\n })\n .passthrough();\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = \"manifest.json\";\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,UAAUC,yBAAAA,iBAAiBC,sBAAAA,eAAe;CAC1C,OAAOA,sBAAAA;CACP,IAAIA,sBAAAA;AACN,CAAC;AAED,MAAa,wBAAwBC,mBAAAA,cAAcC,sBAAAA,qBAAqBC,sBAAAA,qBAAqB;;AAI7F,MAAa,+BAA+BC,0BAAAA,iCAC1C,yBACA,qBACF;AAGA,MAAa,eAAeN,IAAAA,EACzB,OAAO,CAAC,CACR,MAAM,aAAa,CAAC,CACpB,YAAY,CAAC,CACb,OAAO,EAAE;AAEZ,MAAa,mBAAmBA,IAAAA,EAAE,OAAO;CACvC,MAAMA,IAAAA,EAAE,OAAO;CACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;CACrB,QAAQ;AACV,CAAC;AAGD,MAAa,oBAAoBA,IAAAA,EAC9B,OAAO;CACN,QAAQA,IAAAA,EAAE,QAAQ,IAAI;CACtB,aAAa;CACb,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,OAAOA,IAAAA,EAAE,MAAM,gBAAgB;AACjC,CAAC,CAAC,CACD,YAAY;AAGf,MAAa,wBAAwB;AAErC,SAAgB,wBACd,UACA,YACG;CACH,QAAA,GAAA,WAAA,SAAA,CAAgB,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,WAAW,EAAE,EAAE,CAAC;AAC5E"}
@@ -2,7 +2,6 @@ import { ContentRelative } from "./content_types.js";
2
2
  import { BlockPackId } from "./block_id.js";
3
3
  import { BlockComponents } from "./block_components.js";
4
4
  import { z } from "zod";
5
- import * as _$_milaboratories_pl_model_common0 from "@milaboratories/pl-model-common";
6
5
 
7
6
  //#region src/block_meta/block_manifest.d.ts
8
7
  type BlockComponentsManifest = BlockComponents<ContentRelative, ContentRelative>;
@@ -1075,7 +1074,7 @@ declare const BlockPackDescriptionManifest: z.ZodObject<{
1075
1074
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
1076
1075
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1077
1076
  }, z.ZodTypeAny, "passthrough">>;
1078
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
1077
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
1079
1078
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1080
1079
  id: z.ZodObject<{
1081
1080
  organization: z.ZodString;
@@ -1614,7 +1613,7 @@ declare const BlockPackDescriptionManifest: z.ZodObject<{
1614
1613
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
1615
1614
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1616
1615
  }, z.ZodTypeAny, "passthrough">>;
1617
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
1616
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
1618
1617
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1619
1618
  id: z.ZodObject<{
1620
1619
  organization: z.ZodString;
@@ -2153,7 +2152,7 @@ declare const BlockPackDescriptionManifest: z.ZodObject<{
2153
2152
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
2154
2153
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2155
2154
  }, z.ZodTypeAny, "passthrough">>;
2156
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
2155
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
2157
2156
  }, z.ZodTypeAny, "passthrough">>;
2158
2157
  type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;
2159
2158
  declare const Sha256Schema: z.ZodString;
@@ -2711,7 +2710,7 @@ declare const BlockPackManifest: z.ZodObject<{
2711
2710
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
2712
2711
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2713
2712
  }, z.ZodTypeAny, "passthrough">>;
2714
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
2713
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
2715
2714
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2716
2715
  id: z.ZodObject<{
2717
2716
  organization: z.ZodString;
@@ -3250,7 +3249,7 @@ declare const BlockPackManifest: z.ZodObject<{
3250
3249
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
3251
3250
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3252
3251
  }, z.ZodTypeAny, "passthrough">>;
3253
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
3252
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
3254
3253
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3255
3254
  id: z.ZodObject<{
3256
3255
  organization: z.ZodString;
@@ -3789,7 +3788,7 @@ declare const BlockPackManifest: z.ZodObject<{
3789
3788
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
3790
3789
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3791
3790
  }, z.ZodTypeAny, "passthrough">>;
3792
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
3791
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
3793
3792
  }, z.ZodTypeAny, "passthrough">>;
3794
3793
  timestamp: z.ZodOptional<z.ZodNumber>;
3795
3794
  files: z.ZodArray<z.ZodObject<{
@@ -4345,7 +4344,7 @@ declare const BlockPackManifest: z.ZodObject<{
4345
4344
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
4346
4345
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4347
4346
  }, z.ZodTypeAny, "passthrough">>;
4348
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
4347
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
4349
4348
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4350
4349
  id: z.ZodObject<{
4351
4350
  organization: z.ZodString;
@@ -4884,7 +4883,7 @@ declare const BlockPackManifest: z.ZodObject<{
4884
4883
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
4885
4884
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4886
4885
  }, z.ZodTypeAny, "passthrough">>;
4887
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
4886
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
4888
4887
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4889
4888
  id: z.ZodObject<{
4890
4889
  organization: z.ZodString;
@@ -5423,7 +5422,7 @@ declare const BlockPackManifest: z.ZodObject<{
5423
5422
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
5424
5423
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5425
5424
  }, z.ZodTypeAny, "passthrough">>;
5426
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
5425
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
5427
5426
  }, z.ZodTypeAny, "passthrough">>;
5428
5427
  timestamp: z.ZodOptional<z.ZodNumber>;
5429
5428
  files: z.ZodArray<z.ZodObject<{
@@ -5979,7 +5978,7 @@ declare const BlockPackManifest: z.ZodObject<{
5979
5978
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
5980
5979
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5981
5980
  }, z.ZodTypeAny, "passthrough">>;
5982
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
5981
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
5983
5982
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5984
5983
  id: z.ZodObject<{
5985
5984
  organization: z.ZodString;
@@ -6518,7 +6517,7 @@ declare const BlockPackManifest: z.ZodObject<{
6518
6517
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
6519
6518
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6520
6519
  }, z.ZodTypeAny, "passthrough">>;
6521
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
6520
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
6522
6521
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6523
6522
  id: z.ZodObject<{
6524
6523
  organization: z.ZodString;
@@ -7057,7 +7056,7 @@ declare const BlockPackManifest: z.ZodObject<{
7057
7056
  supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
7058
7057
  requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7059
7058
  }, z.ZodTypeAny, "passthrough">>;
7060
- featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, _$_milaboratories_pl_model_common0.BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
7059
+ featureFlags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, import("@milaboratories/pl-model-common").BlockCodeKnownFeatureFlags, Record<string, number | boolean>>>;
7061
7060
  }, z.ZodTypeAny, "passthrough">>;
7062
7061
  timestamp: z.ZodOptional<z.ZodNumber>;
7063
7062
  files: z.ZodArray<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"block_manifest.d.ts","names":[],"sources":["../../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block_meta/block_manifest.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { BlockComponents } from \"./block_components\";\nimport { WorkflowSchemaV1 } from \"./block_components\";\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from \"./content_types\";\nimport { CreateBlockPackDescriptionSchema } from \"./block_description\";\nimport { BlockPackMeta } from \"./block_meta\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockPackId } from \"./block_id\";\n\nexport type BlockComponentsManifest = BlockComponents<ContentRelative, ContentRelative>;\n\n/**\n * Block-components shape stored in a manifest. The consolidator always writes\n * the wrapped `{type: \"workflow-v1\", main: ...}` form, so the manifest schema\n * accepts the wrapped form only.\n */\nexport const BlockComponentsManifest = z.object({\n workflow: WorkflowSchemaV1(ContentRelative),\n model: ContentRelative,\n ui: ContentRelative,\n}) satisfies z.ZodType<BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest,\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema,\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z\n .object({\n schema: z.literal(\"v2\"),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo),\n })\n .passthrough();\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = \"manifest.json\";\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,iBAAiB,gBAAgB;CAC3C,OAAO;CACP,IAAI;CACL,CAAC;AAEF,MAAa,wBAAwB,cAAc,qBAAqB,sBAAsB;;AAI9F,MAAa,+BAA+B,iCAC1C,yBACA,sBACD;AAGD,MAAa,eAAe,EACzB,QAAQ,CACR,MAAM,cAAc,CACpB,aAAa,CACb,OAAO,GAAG;AAEb,MAAa,mBAAmB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ;CAChB,MAAM,EAAE,QAAQ,CAAC,KAAK;CACtB,QAAQ;CACT,CAAC;AAGF,MAAa,oBAAoB,EAC9B,OAAO;CACN,QAAQ,EAAE,QAAQ,KAAK;CACvB,aAAa;CACb,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,OAAO,EAAE,MAAM,iBAAiB;CACjC,CAAC,CACD,aAAa;AAGhB,MAAa,wBAAwB;AAErC,SAAgB,wBACd,UACA,YACG;AACH,QAAO,SAAS,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,YAAY,EAAE,EAAE,CAAC"}
1
+ {"version":3,"file":"block_manifest.js","names":[],"sources":["../../src/block_meta/block_manifest.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { BlockComponents } from \"./block_components\";\nimport { WorkflowSchemaV1 } from \"./block_components\";\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from \"./content_types\";\nimport { CreateBlockPackDescriptionSchema } from \"./block_description\";\nimport { BlockPackMeta } from \"./block_meta\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockPackId } from \"./block_id\";\n\nexport type BlockComponentsManifest = BlockComponents<ContentRelative, ContentRelative>;\n\n/**\n * Block-components shape stored in a manifest. The consolidator always writes\n * the wrapped `{type: \"workflow-v1\", main: ...}` form, so the manifest schema\n * accepts the wrapped form only.\n */\nexport const BlockComponentsManifest = z.object({\n workflow: WorkflowSchemaV1(ContentRelative),\n model: ContentRelative,\n ui: ContentRelative,\n}) satisfies z.ZodType<BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest,\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema,\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z\n .object({\n schema: z.literal(\"v2\"),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo),\n })\n .passthrough();\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = \"manifest.json\";\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,iBAAiB,eAAe;CAC1C,OAAO;CACP,IAAI;AACN,CAAC;AAED,MAAa,wBAAwB,cAAc,qBAAqB,qBAAqB;;AAI7F,MAAa,+BAA+B,iCAC1C,yBACA,qBACF;AAGA,MAAa,eAAe,EACzB,OAAO,CAAC,CACR,MAAM,aAAa,CAAC,CACpB,YAAY,CAAC,CACb,OAAO,EAAE;AAEZ,MAAa,mBAAmB,EAAE,OAAO;CACvC,MAAM,EAAE,OAAO;CACf,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI;CACrB,QAAQ;AACV,CAAC;AAGD,MAAa,oBAAoB,EAC9B,OAAO;CACN,QAAQ,EAAE,QAAQ,IAAI;CACtB,aAAa;CACb,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,OAAO,EAAE,MAAM,gBAAgB;AACjC,CAAC,CAAC,CACD,YAAY;AAGf,MAAa,wBAAwB;AAErC,SAAgB,wBACd,UACA,YACG;CACH,OAAO,SAAS,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,WAAW,EAAE,EAAE,CAAC;AAC5E"}
@@ -1,4 +1,3 @@
1
- require("../_virtual/_rolldown/runtime.cjs");
2
1
  const require_content_types = require("./content_types.cjs");
3
2
  let zod = require("zod");
4
3
  //#region src/block_meta/block_meta.ts
@@ -26,10 +25,36 @@ function BlockPackMeta(longString, binary) {
26
25
  url: zod.z.string().url(),
27
26
  logo: binary.optional()
28
27
  }).passthrough(),
28
+ /**
29
+ * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
30
+ * `undefined` value or absent field is treated exactly the same as number `0`.
31
+ */
29
32
  marketplaceRanking: zod.z.number().optional(),
33
+ /**
34
+ * If true, the block is deprecated and should not be used.
35
+ */
30
36
  deprecated: zod.z.boolean().optional(),
37
+ /**
38
+ * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
39
+ */
31
40
  termsOfServiceUrl: zod.z.string().url().optional(),
41
+ /**
42
+ * Supported operating systems.
43
+ * If not provided, the block is supported on all operating systems.
44
+ */
32
45
  supportedPlatforms: zod.z.array(BlockPlatform).optional(),
46
+ /**
47
+ * Runtime capabilities the block needs from the backend (e.g.
48
+ * "wasm:v1"). Desktop refuses to install if any listed token is
49
+ * missing from the backend's `serverInfo.capabilities`.
50
+ *
51
+ * Tokens follow the backend's `<feature>:<version>` format defined in
52
+ * `core/pl/platform/api/plapiserver/server_capabilities.go`. The
53
+ * schema itself accepts loose strings (not an enum) so future
54
+ * capabilities don't break Desktops that ship before each token is
55
+ * added — the same forward-compat property `BlockPackMeta` itself
56
+ * enjoys at the field level, applied recursively at the token level.
57
+ */
33
58
  requiredCapabilities: zod.z.array(zod.z.string()).optional()
34
59
  }).passthrough();
35
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.cjs","names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from \"./content_types\";\n\nexport const BlockPlatform = z.enum([\n \"windows-x64\",\n \"windows-aarch64\",\n \"macosx-x64\",\n \"macosx-aarch64\",\n \"linux-x64\",\n \"linux-aarch64\",\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\n/**\n * Static metadata a block author ships: title, descriptions, logos, social\n * links, and capability requirements. Parameterized by the carriers used for\n * long-string fields (`LongString`) and binary fields (`Binary`); the same\n * shape carries `package.json` form (loose strings), manifest form (relative\n * paths), and embedded form (inlined base64 or bytes).\n *\n * Forward-compatibility: the boundary zod schemas (`BlockPackMeta(...)` and\n * `organization`) use `.passthrough()` so that unknown sibling fields survive\n * parse/round-trip verbatim. A registry mutator that predates a new meta\n * field must not silently strip it (otherwise mark-stable / refresh-overview\n * / restore-overview would quietly undo publishes). Code consuming these\n * objects sees only the known fields listed below; the schemas guard the\n * round-trip behavior. Combined with the `require-latest @platforma-sdk/block-tools`\n * CI gate, this future-proofs every subsequent field addition.\n */\nexport type BlockPackMeta<LongString, Binary> = {\n title: string;\n description: string;\n longDescription?: LongString;\n changelog?: LongString;\n logo?: Binary;\n url?: string;\n docs?: string;\n support?: string;\n tags?: string[];\n organization: {\n name: string;\n url: string;\n logo?: Binary;\n };\n marketplaceRanking?: number;\n deprecated?: boolean;\n termsOfServiceUrl?: string;\n supportedPlatforms?: BlockPlatform[];\n requiredCapabilities?: string[];\n};\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z\n .object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z\n .object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n })\n .passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n /**\n * Runtime capabilities the block needs from the backend (e.g.\n * \"wasm:v1\"). Desktop refuses to install if any listed token is\n * missing from the backend's `serverInfo.capabilities`.\n *\n * Tokens follow the backend's `<feature>:<version>` format defined in\n * `core/pl/platform/api/plapiserver/server_capabilities.go`. The\n * schema itself accepts loose strings (not an enum) so future\n * capabilities don't break Desktops that ship before each token is\n * added — the same forward-compat property `BlockPackMeta` itself\n * enjoys at the field level, applied recursively at the token level.\n */\n requiredCapabilities: z.array(z.string()).optional(),\n })\n .passthrough();\n // `.passthrough()` is intentional — see forward-compat note on\n // `BlockPackMeta` type above.\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBase64);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(), ContentExplicitBytes);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"mappings":";;;;AAQA,MAAa,gBAAgBA,IAAAA,EAAE,KAAK;CAClC;CACA;CACA;CACA;CACA;CACA;CACD,CAAC;AAyCF,SAAgB,cAGd,YAA4B,QAAoB;AAChD,QAAOA,IAAAA,EACJ,OAAO;EACN,OAAOA,IAAAA,EAAE,QAAQ;EACjB,aAAaA,IAAAA,EAAE,QAAQ;EACvB,iBAAiB,WAAW,UAAU;EACtC,WAAW,WAAW,UAAU;EAChC,MAAM,OAAO,UAAU;EACvB,KAAKA,IAAAA,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU;EAChC,MAAMA,IAAAA,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU;EACjC,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,KAAK,EAAEA,IAAAA,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU;EACnE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,UAAU;EACpC,cAAcA,IAAAA,EACX,OAAO;GACN,MAAMA,IAAAA,EAAE,QAAQ;GAChB,KAAKA,IAAAA,EAAE,QAAQ,CAAC,KAAK;GACrB,MAAM,OAAO,UAAU;GACxB,CAAC,CACD,aAAa;EAKhB,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,UAAU;EAIzC,YAAYA,IAAAA,EAAE,SAAS,CAAC,UAAU;EAIlC,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU;EAK9C,oBAAoBA,IAAAA,EAAE,MAAM,cAAc,CAAC,UAAU;EAarD,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,UAAU;EACrD,CAAC,CACD,aAAa;;AAKlB,MAAa,8BAA8B,cACzCC,sBAAAA,wBACAC,sBAAAA,yBACD;AAGD,MAAa,8BAA8B,cAAcF,IAAAA,EAAE,QAAQ,EAAEG,sBAAAA,sBAAsB;AAG3F,MAAa,6BAA6B,cAAcH,IAAAA,EAAE,QAAQ,EAAEI,sBAAAA,qBAAqB"}
1
+ {"version":3,"file":"block_meta.cjs","names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from \"./content_types\";\n\nexport const BlockPlatform = z.enum([\n \"windows-x64\",\n \"windows-aarch64\",\n \"macosx-x64\",\n \"macosx-aarch64\",\n \"linux-x64\",\n \"linux-aarch64\",\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\n/**\n * Static metadata a block author ships: title, descriptions, logos, social\n * links, and capability requirements. Parameterized by the carriers used for\n * long-string fields (`LongString`) and binary fields (`Binary`); the same\n * shape carries `package.json` form (loose strings), manifest form (relative\n * paths), and embedded form (inlined base64 or bytes).\n *\n * Forward-compatibility: the boundary zod schemas (`BlockPackMeta(...)` and\n * `organization`) use `.passthrough()` so that unknown sibling fields survive\n * parse/round-trip verbatim. A registry mutator that predates a new meta\n * field must not silently strip it (otherwise mark-stable / refresh-overview\n * / restore-overview would quietly undo publishes). Code consuming these\n * objects sees only the known fields listed below; the schemas guard the\n * round-trip behavior. Combined with the `require-latest @platforma-sdk/block-tools`\n * CI gate, this future-proofs every subsequent field addition.\n */\nexport type BlockPackMeta<LongString, Binary> = {\n title: string;\n description: string;\n longDescription?: LongString;\n changelog?: LongString;\n logo?: Binary;\n url?: string;\n docs?: string;\n support?: string;\n tags?: string[];\n organization: {\n name: string;\n url: string;\n logo?: Binary;\n };\n marketplaceRanking?: number;\n deprecated?: boolean;\n termsOfServiceUrl?: string;\n supportedPlatforms?: BlockPlatform[];\n requiredCapabilities?: string[];\n};\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z\n .object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z\n .object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n })\n .passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n /**\n * Runtime capabilities the block needs from the backend (e.g.\n * \"wasm:v1\"). Desktop refuses to install if any listed token is\n * missing from the backend's `serverInfo.capabilities`.\n *\n * Tokens follow the backend's `<feature>:<version>` format defined in\n * `core/pl/platform/api/plapiserver/server_capabilities.go`. The\n * schema itself accepts loose strings (not an enum) so future\n * capabilities don't break Desktops that ship before each token is\n * added — the same forward-compat property `BlockPackMeta` itself\n * enjoys at the field level, applied recursively at the token level.\n */\n requiredCapabilities: z.array(z.string()).optional(),\n })\n .passthrough();\n // `.passthrough()` is intentional — see forward-compat note on\n // `BlockPackMeta` type above.\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBase64);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(), ContentExplicitBytes);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"mappings":";;;AAQA,MAAa,gBAAgBA,IAAAA,EAAE,KAAK;CAClC;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAyCD,SAAgB,cAGd,YAA4B,QAAoB;CAChD,OAAOA,IAAAA,EACJ,OAAO;EACN,OAAOA,IAAAA,EAAE,OAAO;EAChB,aAAaA,IAAAA,EAAE,OAAO;EACtB,iBAAiB,WAAW,SAAS;EACrC,WAAW,WAAW,SAAS;EAC/B,MAAM,OAAO,SAAS;EACtB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EAC/B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EAChC,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;EAClE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACnC,cAAcA,IAAAA,EACX,OAAO;GACN,MAAMA,IAAAA,EAAE,OAAO;GACf,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GACpB,MAAM,OAAO,SAAS;EACxB,CAAC,CAAC,CACD,YAAY;;;;;EAKf,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;;;;EAIxC,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;;;;EAIjC,mBAAmBA,IAAAA,EAA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A2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAC5B,2BAAA,GAA8B,CAAA,CAAE,KAAK,QAAQ,2BAAA;AAAA,cAE5C,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAC3B,0BAAA,GAA6B,CAAA,CAAE,KAAK,QAAQ,0BAAA"}
@@ -25,10 +25,36 @@ function BlockPackMeta(longString, binary) {
25
25
  url: z.string().url(),
26
26
  logo: binary.optional()
27
27
  }).passthrough(),
28
+ /**
29
+ * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
30
+ * `undefined` value or absent field is treated exactly the same as number `0`.
31
+ */
28
32
  marketplaceRanking: z.number().optional(),
33
+ /**
34
+ * If true, the block is deprecated and should not be used.
35
+ */
29
36
  deprecated: z.boolean().optional(),
37
+ /**
38
+ * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
39
+ */
30
40
  termsOfServiceUrl: z.string().url().optional(),
41
+ /**
42
+ * Supported operating systems.
43
+ * If not provided, the block is supported on all operating systems.
44
+ */
31
45
  supportedPlatforms: z.array(BlockPlatform).optional(),
46
+ /**
47
+ * Runtime capabilities the block needs from the backend (e.g.
48
+ * "wasm:v1"). Desktop refuses to install if any listed token is
49
+ * missing from the backend's `serverInfo.capabilities`.
50
+ *
51
+ * Tokens follow the backend's `<feature>:<version>` format defined in
52
+ * `core/pl/platform/api/plapiserver/server_capabilities.go`. The
53
+ * schema itself accepts loose strings (not an enum) so future
54
+ * capabilities don't break Desktops that ship before each token is
55
+ * added — the same forward-compat property `BlockPackMeta` itself
56
+ * enjoys at the field level, applied recursively at the token level.
57
+ */
32
58
  requiredCapabilities: z.array(z.string()).optional()
33
59
  }).passthrough();
34
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.js","names":[],"sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from \"./content_types\";\n\nexport const BlockPlatform = z.enum([\n \"windows-x64\",\n \"windows-aarch64\",\n \"macosx-x64\",\n \"macosx-aarch64\",\n \"linux-x64\",\n \"linux-aarch64\",\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\n/**\n * Static metadata a block author ships: title, descriptions, logos, social\n * links, and capability requirements. Parameterized by the carriers used for\n * long-string fields (`LongString`) and binary fields (`Binary`); the same\n * shape carries `package.json` form (loose strings), manifest form (relative\n * paths), and embedded form (inlined base64 or bytes).\n *\n * Forward-compatibility: the boundary zod schemas (`BlockPackMeta(...)` and\n * `organization`) use `.passthrough()` so that unknown sibling fields survive\n * parse/round-trip verbatim. A registry mutator that predates a new meta\n * field must not silently strip it (otherwise mark-stable / refresh-overview\n * / restore-overview would quietly undo publishes). Code consuming these\n * objects sees only the known fields listed below; the schemas guard the\n * round-trip behavior. Combined with the `require-latest @platforma-sdk/block-tools`\n * CI gate, this future-proofs every subsequent field addition.\n */\nexport type BlockPackMeta<LongString, Binary> = {\n title: string;\n description: string;\n longDescription?: LongString;\n changelog?: LongString;\n logo?: Binary;\n url?: string;\n docs?: string;\n support?: string;\n tags?: string[];\n organization: {\n name: string;\n url: string;\n logo?: Binary;\n };\n marketplaceRanking?: number;\n deprecated?: boolean;\n termsOfServiceUrl?: string;\n supportedPlatforms?: BlockPlatform[];\n requiredCapabilities?: string[];\n};\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z\n .object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z\n .object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n })\n .passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n /**\n * Runtime capabilities the block needs from the backend (e.g.\n * \"wasm:v1\"). Desktop refuses to install if any listed token is\n * missing from the backend's `serverInfo.capabilities`.\n *\n * Tokens follow the backend's `<feature>:<version>` format defined in\n * `core/pl/platform/api/plapiserver/server_capabilities.go`. The\n * schema itself accepts loose strings (not an enum) so future\n * capabilities don't break Desktops that ship before each token is\n * added — the same forward-compat property `BlockPackMeta` itself\n * enjoys at the field level, applied recursively at the token level.\n */\n requiredCapabilities: z.array(z.string()).optional(),\n })\n .passthrough();\n // `.passthrough()` is intentional — see forward-compat note on\n // `BlockPackMeta` type above.\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBase64);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(), ContentExplicitBytes);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"mappings":";;;AAQA,MAAa,gBAAgB,EAAE,KAAK;CAClC;CACA;CACA;CACA;CACA;CACA;CACD,CAAC;AAyCF,SAAgB,cAGd,YAA4B,QAAoB;AAChD,QAAO,EACJ,OAAO;EACN,OAAO,EAAE,QAAQ;EACjB,aAAa,EAAE,QAAQ;EACvB,iBAAiB,WAAW,UAAU;EACtC,WAAW,WAAW,UAAU;EAChC,MAAM,OAAO,UAAU;EACvB,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU;EAChC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU;EACjC,SAAS,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU;EACnE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;EACpC,cAAc,EACX,OAAO;GACN,MAAM,EAAE,QAAQ;GAChB,KAAK,EAAE,QAAQ,CAAC,KAAK;GACrB,MAAM,OAAO,UAAU;GACxB,CAAC,CACD,aAAa;EAKhB,oBAAoB,EAAE,QAAQ,CAAC,UAAU;EAIzC,YAAY,EAAE,SAAS,CAAC,UAAU;EAIlC,mBAAmB,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU;EAK9C,oBAAoB,EAAE,MAAM,cAAc,CAAC,UAAU;EAarD,sBAAsB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;EACrD,CAAC,CACD,aAAa;;AAKlB,MAAa,8BAA8B,cACzC,wBACA,yBACD;AAGD,MAAa,8BAA8B,cAAc,EAAE,QAAQ,EAAE,sBAAsB;AAG3F,MAAa,6BAA6B,cAAc,EAAE,QAAQ,EAAE,qBAAqB"}
1
+ {"version":3,"file":"block_meta.js","names":[],"sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from \"./content_types\";\n\nexport const BlockPlatform = z.enum([\n \"windows-x64\",\n \"windows-aarch64\",\n \"macosx-x64\",\n \"macosx-aarch64\",\n \"linux-x64\",\n \"linux-aarch64\",\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\n/**\n * Static metadata a block author ships: title, descriptions, logos, social\n * links, and capability requirements. Parameterized by the carriers used for\n * long-string fields (`LongString`) and binary fields (`Binary`); the same\n * shape carries `package.json` form (loose strings), manifest form (relative\n * paths), and embedded form (inlined base64 or bytes).\n *\n * Forward-compatibility: the boundary zod schemas (`BlockPackMeta(...)` and\n * `organization`) use `.passthrough()` so that unknown sibling fields survive\n * parse/round-trip verbatim. A registry mutator that predates a new meta\n * field must not silently strip it (otherwise mark-stable / refresh-overview\n * / restore-overview would quietly undo publishes). Code consuming these\n * objects sees only the known fields listed below; the schemas guard the\n * round-trip behavior. Combined with the `require-latest @platforma-sdk/block-tools`\n * CI gate, this future-proofs every subsequent field addition.\n */\nexport type BlockPackMeta<LongString, Binary> = {\n title: string;\n description: string;\n longDescription?: LongString;\n changelog?: LongString;\n logo?: Binary;\n url?: string;\n docs?: string;\n support?: string;\n tags?: string[];\n organization: {\n name: string;\n url: string;\n logo?: Binary;\n };\n marketplaceRanking?: number;\n deprecated?: boolean;\n termsOfServiceUrl?: string;\n supportedPlatforms?: BlockPlatform[];\n requiredCapabilities?: string[];\n};\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z\n .object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z\n .object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n })\n .passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n /**\n * Runtime capabilities the block needs from the backend (e.g.\n * \"wasm:v1\"). Desktop refuses to install if any listed token is\n * missing from the backend's `serverInfo.capabilities`.\n *\n * Tokens follow the backend's `<feature>:<version>` format defined in\n * `core/pl/platform/api/plapiserver/server_capabilities.go`. The\n * schema itself accepts loose strings (not an enum) so future\n * capabilities don't break Desktops that ship before each token is\n * added — the same forward-compat property `BlockPackMeta` itself\n * enjoys at the field level, applied recursively at the token level.\n */\n requiredCapabilities: z.array(z.string()).optional(),\n })\n .passthrough();\n // `.passthrough()` is intentional — see forward-compat note on\n // `BlockPackMeta` type above.\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBase64);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(), ContentExplicitBytes);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"mappings":";;;AAQA,MAAa,gBAAgB,EAAE,KAAK;CAClC;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAyCD,SAAgB,cAGd,YAA4B,QAAoB;CAChD,OAAO,EACJ,OAAO;EACN,OAAO,EAAE,OAAO;EAChB,aAAa,EAAE,OAAO;EACtB,iBAAiB,WAAW,SAAS;EACrC,WAAW,WAAW,SAAS;EAC/B,MAAM,OAAO,SAAS;EACtB,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EAC/B,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EAChC,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACnC,cAAc,EACX,OAAO;GACN,MAAM,EAAE,OAAO;GACf,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI;GACpB,MAAM,OAAO,SAAS;EACxB,CAAC,CAAC,CACD,YAAY;;;;;EAKf,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS;;;;EAIxC,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS;;;;EAIjC,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;;;;;EAK7C,oBAAoB,EAAE,MAAM,aAAa,CAAC,CAAC,SAAS;;;;;;;;;;;;;EAapD,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC,CAAC,CACD,YAAY;AAGjB;AAEA,MAAa,8BAA8B,cACzC,wBACA,wBACF;AAGA,MAAa,8BAA8B,cAAc,EAAE,OAAO,GAAG,qBAAqB;AAG1F,MAAa,6BAA6B,cAAc,EAAE,OAAO,GAAG,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"content_conversion.cjs","names":[],"sources":["../../src/block_meta/content_conversion.ts"],"sourcesContent":["import type {\n ContentAbsoluteUrl,\n ContentAnyLocal,\n ContentExplicitOrRelative,\n ContentRelative,\n} from \"./content_types\";\n\nexport function mapRemoteToAbsolute(\n rootUrl: string,\n): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl {\n const rootWithSlash = rootUrl.endsWith(\"/\") ? rootUrl : `${rootUrl}/`;\n return <T extends ContentAnyLocal>(value: T) =>\n value.type === \"relative\"\n ? { type: \"absolute-url\", url: rootWithSlash + value.path }\n : (value as Exclude<T, ContentRelative>);\n}\n\n/**\n * Creates transformer of relative content paths, that adds a specific prefix to the relative path.\n *\n * If prefix = \"nested-path/\", paths like \"somefile.txt\" will be transformed to \"nested-path/somefile.txt\".\n *\n * @param prefix prefix to add to the relative path, slash at the end will be added automatically if missed\n */\nexport function addPrefixToRelative(\n prefix: string,\n): <T extends ContentExplicitOrRelative>(value: T) => T {\n const prefixWithSlash = prefix.endsWith(\"/\") ? prefix : `${prefix}/`;\n return <T extends ContentExplicitOrRelative>(value: T) =>\n (value.type === \"relative\"\n ? { type: \"relative\", path: prefixWithSlash + value.path }\n : value) as T;\n}\n"],"mappings":";AAOA,SAAgB,oBACd,SAC2F;CAC3F,MAAM,gBAAgB,QAAQ,SAAS,IAAI,GAAG,UAAU,GAAG,QAAQ;AACnE,SAAmC,UACjC,MAAM,SAAS,aACX;EAAE,MAAM;EAAgB,KAAK,gBAAgB,MAAM;EAAM,GACxD;;;;;;;;;AAUT,SAAgB,oBACd,QACsD;CACtD,MAAM,kBAAkB,OAAO,SAAS,IAAI,GAAG,SAAS,GAAG,OAAO;AAClE,SAA6C,UAC1C,MAAM,SAAS,aACZ;EAAE,MAAM;EAAY,MAAM,kBAAkB,MAAM;EAAM,GACxD"}
1
+ {"version":3,"file":"content_conversion.cjs","names":[],"sources":["../../src/block_meta/content_conversion.ts"],"sourcesContent":["import type {\n ContentAbsoluteUrl,\n ContentAnyLocal,\n ContentExplicitOrRelative,\n ContentRelative,\n} from \"./content_types\";\n\nexport function mapRemoteToAbsolute(\n rootUrl: string,\n): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl {\n const rootWithSlash = rootUrl.endsWith(\"/\") ? rootUrl : `${rootUrl}/`;\n return <T extends ContentAnyLocal>(value: T) =>\n value.type === \"relative\"\n ? { type: \"absolute-url\", url: rootWithSlash + value.path }\n : (value as Exclude<T, ContentRelative>);\n}\n\n/**\n * Creates transformer of relative content paths, that adds a specific prefix to the relative path.\n *\n * If prefix = \"nested-path/\", paths like \"somefile.txt\" will be transformed to \"nested-path/somefile.txt\".\n *\n * @param prefix prefix to add to the relative path, slash at the end will be added automatically if missed\n */\nexport function addPrefixToRelative(\n prefix: string,\n): <T extends ContentExplicitOrRelative>(value: T) => T {\n const prefixWithSlash = prefix.endsWith(\"/\") ? prefix : `${prefix}/`;\n return <T extends ContentExplicitOrRelative>(value: T) =>\n (value.type === \"relative\"\n ? { type: \"relative\", path: prefixWithSlash + value.path }\n : value) as T;\n}\n"],"mappings":";AAOA,SAAgB,oBACd,SAC2F;CAC3F,MAAM,gBAAgB,QAAQ,SAAS,GAAG,IAAI,UAAU,GAAG,QAAQ;CACnE,QAAmC,UACjC,MAAM,SAAS,aACX;EAAE,MAAM;EAAgB,KAAK,gBAAgB,MAAM;CAAK,IACvD;AACT;;;;;;;;AASA,SAAgB,oBACd,QACsD;CACtD,MAAM,kBAAkB,OAAO,SAAS,GAAG,IAAI,SAAS,GAAG,OAAO;CAClE,QAA6C,UAC1C,MAAM,SAAS,aACZ;EAAE,MAAM;EAAY,MAAM,kBAAkB,MAAM;CAAK,IACvD;AACR"}
@@ -1 +1 @@
1
- {"version":3,"file":"content_conversion.js","names":[],"sources":["../../src/block_meta/content_conversion.ts"],"sourcesContent":["import type {\n ContentAbsoluteUrl,\n ContentAnyLocal,\n ContentExplicitOrRelative,\n ContentRelative,\n} from \"./content_types\";\n\nexport function mapRemoteToAbsolute(\n rootUrl: string,\n): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl {\n const rootWithSlash = rootUrl.endsWith(\"/\") ? rootUrl : `${rootUrl}/`;\n return <T extends ContentAnyLocal>(value: T) =>\n value.type === \"relative\"\n ? { type: \"absolute-url\", url: rootWithSlash + value.path }\n : (value as Exclude<T, ContentRelative>);\n}\n\n/**\n * Creates transformer of relative content paths, that adds a specific prefix to the relative path.\n *\n * If prefix = \"nested-path/\", paths like \"somefile.txt\" will be transformed to \"nested-path/somefile.txt\".\n *\n * @param prefix prefix to add to the relative path, slash at the end will be added automatically if missed\n */\nexport function addPrefixToRelative(\n prefix: string,\n): <T extends ContentExplicitOrRelative>(value: T) => T {\n const prefixWithSlash = prefix.endsWith(\"/\") ? prefix : `${prefix}/`;\n return <T extends ContentExplicitOrRelative>(value: T) =>\n (value.type === \"relative\"\n ? { type: \"relative\", path: prefixWithSlash + value.path }\n : value) as T;\n}\n"],"mappings":";AAOA,SAAgB,oBACd,SAC2F;CAC3F,MAAM,gBAAgB,QAAQ,SAAS,IAAI,GAAG,UAAU,GAAG,QAAQ;AACnE,SAAmC,UACjC,MAAM,SAAS,aACX;EAAE,MAAM;EAAgB,KAAK,gBAAgB,MAAM;EAAM,GACxD;;;;;;;;;AAUT,SAAgB,oBACd,QACsD;CACtD,MAAM,kBAAkB,OAAO,SAAS,IAAI,GAAG,SAAS,GAAG,OAAO;AAClE,SAA6C,UAC1C,MAAM,SAAS,aACZ;EAAE,MAAM;EAAY,MAAM,kBAAkB,MAAM;EAAM,GACxD"}
1
+ {"version":3,"file":"content_conversion.js","names":[],"sources":["../../src/block_meta/content_conversion.ts"],"sourcesContent":["import type {\n ContentAbsoluteUrl,\n ContentAnyLocal,\n ContentExplicitOrRelative,\n ContentRelative,\n} from \"./content_types\";\n\nexport function mapRemoteToAbsolute(\n rootUrl: string,\n): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl {\n const rootWithSlash = rootUrl.endsWith(\"/\") ? rootUrl : `${rootUrl}/`;\n return <T extends ContentAnyLocal>(value: T) =>\n value.type === \"relative\"\n ? { type: \"absolute-url\", url: rootWithSlash + value.path }\n : (value as Exclude<T, ContentRelative>);\n}\n\n/**\n * Creates transformer of relative content paths, that adds a specific prefix to the relative path.\n *\n * If prefix = \"nested-path/\", paths like \"somefile.txt\" will be transformed to \"nested-path/somefile.txt\".\n *\n * @param prefix prefix to add to the relative path, slash at the end will be added automatically if missed\n */\nexport function addPrefixToRelative(\n prefix: string,\n): <T extends ContentExplicitOrRelative>(value: T) => T {\n const prefixWithSlash = prefix.endsWith(\"/\") ? prefix : `${prefix}/`;\n return <T extends ContentExplicitOrRelative>(value: T) =>\n (value.type === \"relative\"\n ? { type: \"relative\", path: prefixWithSlash + value.path }\n : value) as T;\n}\n"],"mappings":";AAOA,SAAgB,oBACd,SAC2F;CAC3F,MAAM,gBAAgB,QAAQ,SAAS,GAAG,IAAI,UAAU,GAAG,QAAQ;CACnE,QAAmC,UACjC,MAAM,SAAS,aACX;EAAE,MAAM;EAAgB,KAAK,gBAAgB,MAAM;CAAK,IACvD;AACT;;;;;;;;AASA,SAAgB,oBACd,QACsD;CACtD,MAAM,kBAAkB,OAAO,SAAS,GAAG,IAAI,SAAS,GAAG,OAAO;CAClE,QAA6C,UAC1C,MAAM,SAAS,aACZ;EAAE,MAAM;EAAY,MAAM,kBAAkB,MAAM;CAAK,IACvD;AACR"}
@@ -1,4 +1,3 @@
1
- require("../_virtual/_rolldown/runtime.cjs");
2
1
  let zod = require("zod");
3
2
  //#region src/block_meta/content_types.ts
4
3
  const absPathRegex = new RegExp(`^(/|[A-Z]:\\\\)`);