@reventlessdev/reventless-local 3.0.0-alpha.178 → 3.0.0-alpha.180
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 3.0.0-alpha.180 (2026-07-30)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **core,aws:** provision the side-effect handler Lambda, which never existed ([d07311e](https://github.com/ReventlessDev/reventless-core/commit/d07311e0cfc368e9b3d51596e775a58b55a2fc0e))
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **spec,core,local:** emit capabilities.json from the plugin build ([57a3276](https://github.com/ReventlessDev/reventless-core/commit/57a3276a6b02af93490a8b460e3aa158b7e0e0f8))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# 3.0.0-alpha.179 (2026-07-29)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @reventlessdev/reventless-local
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
# 3.0.0-alpha.178 (2026-07-28)
|
|
7
25
|
|
|
8
26
|
### Features
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Emit `capabilities.json` beside a plugin's generated `Plugin.res`.
|
|
3
|
+
//
|
|
4
|
+
// Applies the plugin's compiled composition root to the local platform and
|
|
5
|
+
// renders the structure-derived capability manifest — the same
|
|
6
|
+
// `pluginStructure.requiredStores` walk the deployed plugin reports at
|
|
7
|
+
// runtime, never a second scan of the sources. Untyped by necessity: a
|
|
8
|
+
// dynamically imported module cannot be functor-applied from ReScript, so the
|
|
9
|
+
// reflection lives here and everything typed lives in
|
|
10
|
+
// `Reventless.CapabilityManifest`.
|
|
11
|
+
//
|
|
12
|
+
// Usage: emit-capabilities <srcDir> (run from the plugin package, after `rescript build`)
|
|
13
|
+
|
|
14
|
+
import fs from "node:fs";
|
|
15
|
+
import path from "node:path";
|
|
16
|
+
import { pathToFileURL } from "node:url";
|
|
17
|
+
|
|
18
|
+
// The local platform defaults to Debug-level logging; a build step should not.
|
|
19
|
+
if (process.env.LOG_LEVEL === undefined) process.env.LOG_LEVEL = "warn";
|
|
20
|
+
|
|
21
|
+
const srcDirArg = process.argv[2];
|
|
22
|
+
if (srcDirArg === undefined || srcDirArg === "") {
|
|
23
|
+
console.error("Usage: emit-capabilities <srcDir>");
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const srcDir = path.resolve(srcDirArg);
|
|
28
|
+
const pluginModulePath = path.join(srcDir, "Plugin.res.mjs");
|
|
29
|
+
if (!fs.existsSync(pluginModulePath)) {
|
|
30
|
+
console.error(
|
|
31
|
+
`emit-capabilities: ${pluginModulePath} not found — run \`rescript build\` first.`,
|
|
32
|
+
);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const LocalPlatform = await import(
|
|
37
|
+
new URL("./src/Platform.res.mjs", import.meta.url)
|
|
38
|
+
);
|
|
39
|
+
const CapabilityManifest = await import(
|
|
40
|
+
"@reventlessdev/reventless-spec/src/components/CapabilityManifest.res.mjs"
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
const Platform = LocalPlatform.Make();
|
|
44
|
+
const Plugin = await import(pathToFileURL(pluginModulePath));
|
|
45
|
+
const { pluginStructure } = Plugin.Make(Platform);
|
|
46
|
+
|
|
47
|
+
const manifestPath = path.join(srcDir, "capabilities.json");
|
|
48
|
+
fs.writeFileSync(manifestPath, CapabilityManifest.renderForStructure(pluginStructure));
|
|
49
|
+
console.log("Generated: " + manifestPath);
|
|
50
|
+
|
|
51
|
+
// Applying the platform functor wires in-process infrastructure; exit
|
|
52
|
+
// explicitly so no lingering handle keeps the build step alive.
|
|
53
|
+
process.exit(0);
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-local",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.180",
|
|
4
4
|
"description": "Local platform for Reventless (in-memory or SQLite backend, for development and testing without AWS)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"bin": {
|
|
7
|
+
"emit-capabilities": "./emit-capabilities.mjs"
|
|
8
|
+
},
|
|
6
9
|
"jest": {
|
|
7
10
|
"testMatch": [
|
|
8
11
|
"<rootDir>/tests/**/*Test.res.mjs",
|
|
@@ -31,17 +34,17 @@
|
|
|
31
34
|
"graphql-yoga": "^5.21.0",
|
|
32
35
|
"sury": "11.0.0-alpha.4",
|
|
33
36
|
"ws": "^8.18.0",
|
|
37
|
+
"@reventlessdev/rescript-effect": "0.1.0-alpha.31",
|
|
34
38
|
"@reventlessdev/rescript-graphql-yoga": "1.0.0-alpha.25",
|
|
35
39
|
"@reventlessdev/rescript-jest": "1.0.0-alpha.9",
|
|
36
|
-
"@reventlessdev/rescript-effect": "0.1.0-alpha.31",
|
|
37
|
-
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.17",
|
|
38
40
|
"@reventlessdev/rescript-mcp-sdk": "1.0.0-alpha.20",
|
|
39
|
-
"@reventlessdev/
|
|
40
|
-
"@reventlessdev/reventless-
|
|
41
|
-
"@reventlessdev/reventless-
|
|
42
|
-
"@reventlessdev/reventless-
|
|
43
|
-
"@reventlessdev/reventless-
|
|
44
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
41
|
+
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.17",
|
|
42
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.192",
|
|
43
|
+
"@reventlessdev/reventless-graphql-server": "1.0.0-alpha.40",
|
|
44
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.139",
|
|
45
|
+
"@reventlessdev/reventless-postgres": "3.0.0-alpha.56",
|
|
46
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.85",
|
|
47
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.110"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
50
|
"rescript": "12.3.0",
|