@lark-base-open/base-database-toolchain 1.6.0 → 1.7.0

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
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.7.0] - 2026-12-02
4
+
5
+ ### Added
6
+
7
+ - Expose `verify-locked-contracts` in the JSON subprocess so hosts can validate dependency locks and verify contracts in a single worker when reusing an installation.
8
+ - Share the App SDK 0.11.x server and shared modules across eligible Functions in the same site build.
9
+
3
10
  ## [1.6.0] - 2026-12-02
4
11
 
5
12
  ### Added
package/README.md CHANGED
@@ -46,7 +46,9 @@ Run `base-database-toolchain` with one JSON object on stdin. It exits after one
46
46
  }
47
47
  ```
48
48
 
49
- Supported operations: `contracts`, `verify-contracts`, `build`, `build-server`, `durable-dev`, `validate-locks`, `validate-dependencies` and `inspect-page`. `validate-dependencies` requires the caller-provided `dependencyPolicy`; `build-server` skips Page builds. `runtimeOnly` selects runtime metadata generation and `durableDev` carries local debug options. The worker requires template.version 2, page/server workspaces and named Page inputs; legacy server layouts, sql/ directories, legacyBuild=true and positional inputs are rejected before compilation. Page builds remain the caller's responsibility.
49
+ Supported operations: `contracts`, `verify-contracts`, `verify-locked-contracts`, `build`, `build-server`, `durable-dev`, `validate-locks`, `validate-dependencies` and `inspect-page`. `validate-dependencies` requires the caller-provided `dependencyPolicy`; `build-server` skips Page builds. `runtimeOnly` selects runtime metadata generation and `durableDev` carries local debug options. The worker requires template.version 2, page/server workspaces and named Page inputs; legacy server layouts, sql/ directories, legacyBuild=true and positional inputs are rejected before compilation. Page builds remain the caller's responsibility.
50
+
51
+ On an installation cache hit, a host may call `verify-locked-contracts` when it appears in the installed package’s `siteCompilerOperations`. It validates the locks before verifying contracts in the same worker. Without that capability, use separate operations.
50
52
 
51
53
  For SQL batch clients, supply an authenticated, consistently discovered `batchSnapshot` with the siteToken, environment, versionId, skillHash and per-Function detail. The toolchain binds it to the actual project token, `runtimeProfile` (default online), and current local SQL source hashes. Verification reuses that bound observation; edited declarations lose the cached capability until a new discovery. An execution view is provenance, not a future lock. An older SDK can still generate single-call clients and returns a `BATCH_SDK_UNSUPPORTED` warning; no batch types are synthesized.
52
54
 
@@ -278,7 +278,7 @@ export function isSupportedSharedVersion(packageName, version) {
278
278
  if (packageName === 'zod')
279
279
  return major === 4;
280
280
  if (packageName === '@lark-base-open/base-database-app-sdk')
281
- return major === 0 && minor >= 8 && minor <= 10;
281
+ return major === 0 && minor >= 8 && minor <= 11;
282
282
  return false;
283
283
  }
284
284
  function canonicalInput(root, file) {
@@ -1 +1 @@
1
- {"type":"module","version":"1.0.13"}
1
+ {"type":"module","version":"1.0.14"}
@@ -1,11 +1 @@
1
- export declare function runCompiler(request: any): Promise<{
2
- protocolVersion: 1;
3
- bootstrap: import("./page-bootstrap.js").DevBootstrapStatus;
4
- warnings: import("./page-link-guard.js").LinkGuardWarning[];
5
- ok: boolean;
6
- operation: any;
7
- } | {
8
- ok: boolean;
9
- operation: any;
10
- warnings?: any[] | undefined;
11
- } | undefined>;
1
+ export declare function runCompiler(request: any): any;
@@ -35,6 +35,14 @@ export async function runCompiler(request) {
35
35
  request.server !== 'server' ||
36
36
  request.legacyBuild === true)
37
37
  throw Error('PROJECT_LAYOUT_UNSUPPORTED: compiler requires a version 2 workspace with named inputs');
38
+ if (request.operation === 'verify-locked-contracts') {
39
+ await runCompiler({ ...request, operation: 'validate-locks' });
40
+ const verified = await runCompiler({
41
+ ...request,
42
+ operation: 'verify-contracts',
43
+ });
44
+ return { ...verified, operation: request.operation };
45
+ }
38
46
  projectLayout(request.root);
39
47
  if (request.operation === 'validate-dependencies') {
40
48
  const policy = parsePackageDependencyPolicy(request.dependencyPolicy);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@lark-base-open/base-database-toolchain",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@lark-base-open/base-database-toolchain",
9
- "version": "1.6.0",
9
+ "version": "1.7.0",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "dependencies": {
12
12
  "@babel/parser": "7.28.5",
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@lark-base-open/base-database-toolchain",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Shared local development toolchain for Base Database application CLIs",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "engines": {
8
8
  "node": ">=20.19.0"
9
9
  },
10
+ "siteCompilerOperations": [
11
+ "verify-locked-contracts"
12
+ ],
10
13
  "bin": {
11
14
  "base-database-toolchain": "bin/base-database-toolchain.mjs",
12
15
  "base-database-dev": "bin/base-database-dev.mjs"