flowdular 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Flowdular: Build your business platform](https://cdn.jsdelivr.net/npm/flowdular@latest/assets/flowdular-banner.png)](https://flowdular.com)
1
+ [![Flowdular: Build your business platform](https://cdn.jsdelivr.net/npm/flowdular@latest/assets/flowdular-banner.webp)](https://flowdular.com)
2
2
 
3
3
  # Flowdular CLI
4
4
 
Binary file
@@ -3115,7 +3115,7 @@ var moduleCatalogSchema = module_catalog_schema_default;
3115
3115
  var moduleArtifactSchema = module_artifact_schema_default;
3116
3116
 
3117
3117
  // ../contracts/src/index.ts
3118
- var PLATFORM_API_VERSION = "0.1.8";
3118
+ var PLATFORM_API_VERSION = "0.1.9";
3119
3119
 
3120
3120
  // ../kernel/src/module-compatibility.ts
3121
3121
  function satisfiesModuleVersion(version, range) {
@@ -3796,7 +3796,7 @@ import { dirname as dirname6, join as join6, relative as relative5 } from "node:
3796
3796
  import { createRequire } from "node:module";
3797
3797
  import { readFile as readFile5 } from "node:fs/promises";
3798
3798
  import { dirname as dirname4, join as join3 } from "node:path";
3799
- var SDK_VERSION = "0.3.1";
3799
+ var SDK_VERSION = "0.3.2";
3800
3800
  function npmPackage(specifier) {
3801
3801
  return specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
3802
3802
  }
@@ -4710,8 +4710,8 @@ import type { WebMount } from '${serverPackage}';
4710
4710
  ` + capabilityScope(module) + ` metrics: createModuleMetrics('${module.id}'),
4711
4711
  }), moduleId: '${module.id}' },`
4712
4712
  ).join("\n");
4713
- return GENERATED_HEADER + typeImport + `import { createModuleMetrics } from '${serverPackage}';
4714
- ` + imports + "\n\nexport function composeModuleServer(\n context: PlatformServerContext,\n): readonly PlatformServerComposition[] {\n return [\n" + calls + "\n ];\n}\n\nexport const moduleWebMounts: readonly WebMount[] = " + JSON.stringify(mounts) + " as const;\nexport const applicationBasePath = " + JSON.stringify(applicationPath) + ";\n";
4713
+ return GENERATED_HEADER + typeImport + `import { bindModuleCompositions, createModuleMetrics } from '${serverPackage}';
4714
+ ` + imports + "\n\nexport function composeModuleServer(\n context: PlatformServerContext,\n): readonly PlatformServerComposition[] {\n return bindModuleCompositions([\n" + calls + "\n ]);\n}\n\nexport const moduleWebMounts: readonly WebMount[] = " + JSON.stringify(mounts) + " as const;\nexport const applicationBasePath = " + JSON.stringify(applicationPath) + ";\n";
4715
4715
  }
4716
4716
  function generateClientComposition(modules, sdk = false, applicationPath = "/app") {
4717
4717
  const client = modules.filter((module) => module.client);
package/dist/index.js CHANGED
@@ -3287,7 +3287,7 @@ var moduleCatalogSchema = module_catalog_schema_default;
3287
3287
  var moduleArtifactSchema = module_artifact_schema_default;
3288
3288
 
3289
3289
  // ../contracts/src/index.ts
3290
- var PLATFORM_API_VERSION = "0.1.8";
3290
+ var PLATFORM_API_VERSION = "0.1.9";
3291
3291
 
3292
3292
  // src/module-templates.ts
3293
3293
  function packageSuffix(id) {
@@ -6137,7 +6137,7 @@ import { dirname as dirname6, join as join5, relative as relative5 } from "node:
6137
6137
  import { createRequire } from "node:module";
6138
6138
  import { readFile as readFile4 } from "node:fs/promises";
6139
6139
  import { dirname as dirname4, join as join2 } from "node:path";
6140
- var SDK_VERSION = "0.3.1";
6140
+ var SDK_VERSION = "0.3.2";
6141
6141
  var LIBRARIES = /* @__PURE__ */ new Set([
6142
6142
  "ai-provider",
6143
6143
  "cli-protocol",
@@ -9685,8 +9685,8 @@ import type { WebMount } from '${serverPackage}';
9685
9685
  ` + capabilityScope(module) + ` metrics: createModuleMetrics('${module.id}'),
9686
9686
  }), moduleId: '${module.id}' },`
9687
9687
  ).join("\n");
9688
- return GENERATED_HEADER + typeImport + `import { createModuleMetrics } from '${serverPackage}';
9689
- ` + imports + "\n\nexport function composeModuleServer(\n context: PlatformServerContext,\n): readonly PlatformServerComposition[] {\n return [\n" + calls + "\n ];\n}\n\nexport const moduleWebMounts: readonly WebMount[] = " + JSON.stringify(mounts) + " as const;\nexport const applicationBasePath = " + JSON.stringify(applicationPath) + ";\n";
9688
+ return GENERATED_HEADER + typeImport + `import { bindModuleCompositions, createModuleMetrics } from '${serverPackage}';
9689
+ ` + imports + "\n\nexport function composeModuleServer(\n context: PlatformServerContext,\n): readonly PlatformServerComposition[] {\n return bindModuleCompositions([\n" + calls + "\n ]);\n}\n\nexport const moduleWebMounts: readonly WebMount[] = " + JSON.stringify(mounts) + " as const;\nexport const applicationBasePath = " + JSON.stringify(applicationPath) + ";\n";
9690
9690
  }
9691
9691
  function generateClientComposition(modules, sdk = false, applicationPath = "/app") {
9692
9692
  const client = modules.filter((module) => module.client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowdular",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "flowdular": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "ajv": "8.20.0",
17
17
  "pg": "8.23.0",
18
18
  "yaml": "2.9.0",
19
- "@flowdular/sdk": "0.3.1"
19
+ "@flowdular/sdk": "0.3.2"
20
20
  },
21
21
  "license": "MIT",
22
22
  "repository": {
Binary file