gencow 0.1.210 → 0.1.212

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.
@@ -36,6 +36,10 @@ function projectSchemaSourcePaths({
36
36
  const missing = declared.filter((pathValue) => !existsSyncImpl(pathValue));
37
37
  if (missing.length > 0) throw new Error("Configured schema source is missing from the project");
38
38
  }
39
+ // An explicit schema list is the customer's immutable migration contract.
40
+ // Deploy codegen may materialize a compatibility auth schema later in the
41
+ // same workspace; it must not silently widen that declared contract.
42
+ if (config?.schema) return declared.filter((pathValue) => existsSyncImpl(pathValue));
39
43
  return resolveDrizzleSchemaPaths(config ?? { rootDir: backendDir }, {
40
44
  cwd,
41
45
  existsSyncImpl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gencow",
3
- "version": "0.1.210",
3
+ "version": "0.1.212",
4
4
  "description": "Gencow — AI Backend Engine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,9 +33,9 @@
33
33
  "devDependencies": {
34
34
  "@types/node": "^25.9.5",
35
35
  "better-auth": "^1.6.23",
36
- "@gencow/core": "0.1.43",
37
36
  "@gencow/client": "0.2.6",
38
- "@gencow/react": "0.2.6"
37
+ "@gencow/react": "0.2.6",
38
+ "@gencow/core": "0.1.43"
39
39
  },
40
40
  "scripts": {
41
41
  "prebuild": "pnpm --filter @gencow/migration-contract run build && pnpm --filter @gencow/server run build",
@@ -9660,7 +9660,13 @@ var init_deployment_executor_authority_contract = __esm({
9660
9660
  objectAuthority("app_runtime_activity_state", ["SELECT", "INSERT", "UPDATE"]),
9661
9661
  objectAuthority("app_runtime_activity_observers", ["SELECT", "INSERT", "UPDATE", "DELETE"]),
9662
9662
  objectAuthority("app_runtime_activity_leases", ["SELECT", "INSERT", "UPDATE", "DELETE"]),
9663
- objectAuthority("runtime_drain_requests", ["SELECT"]),
9663
+ // runtime_stop_intents is owned by the public runtime role and references a
9664
+ // drain request. PostgreSQL's FK check takes a KEY SHARE lock, which needs
9665
+ // UPDATE authority on one referenced column. Constrain that capability to
9666
+ // the immutable drain-request identity.
9667
+ objectAuthority("runtime_drain_requests", ["SELECT"], {
9668
+ columnPrivileges: [{ columns: ["id"], privileges: ["UPDATE"] }]
9669
+ }),
9664
9670
  // The public Platform owns node heartbeat, readiness, capacity admission,
9665
9671
  // and authenticated node administration. These are system-plane data
9666
9672
  // mutations, not lifecycle execution authority.
@@ -110044,6 +110050,32 @@ var require_output = __commonJS({
110044
110050
  }
110045
110051
  });
110046
110052
 
110053
+ // ../../node_modules/.pnpm/@img+sharp-wasm32@0.34.5/node_modules/@img/sharp-wasm32/versions.json
110054
+ var require_versions = __commonJS({
110055
+ "../../node_modules/.pnpm/@img+sharp-wasm32@0.34.5/node_modules/@img/sharp-wasm32/versions.json"(exports2, module2) {
110056
+ module2.exports = {
110057
+ aom: "3.13.1",
110058
+ cgif: "0.5.0",
110059
+ emscripten: "4.0.18",
110060
+ exif: "0.6.25",
110061
+ expat: "2.7.3",
110062
+ ffi: "3.5.2",
110063
+ glib: "2.86.1",
110064
+ heif: "1.20.2",
110065
+ highway: "1.3.0",
110066
+ imagequant: "2.4.1",
110067
+ lcms: "2.17",
110068
+ mozjpeg: "0826579",
110069
+ resvg: "0.45.1",
110070
+ spng: "0.7.4",
110071
+ tiff: "4.7.1",
110072
+ vips: "8.17.3",
110073
+ webp: "1.6.0",
110074
+ "zlib-ng": "2.2.5"
110075
+ };
110076
+ }
110077
+ });
110078
+
110047
110079
  // ../../node_modules/.pnpm/sharp@0.34.5/node_modules/sharp/lib/utility.js
110048
110080
  var require_utility = __commonJS({
110049
110081
  "../../node_modules/.pnpm/sharp@0.34.5/node_modules/sharp/lib/utility.js"(exports2, module2) {
@@ -110088,7 +110120,7 @@ var require_utility = __commonJS({
110088
110120
  }
110089
110121
  } else {
110090
110122
  try {
110091
- versions = __require("@img/sharp-wasm32/versions");
110123
+ versions = require_versions();
110092
110124
  } catch (_4) {
110093
110125
  }
110094
110126
  }
@@ -185372,7 +185404,8 @@ function fleetSelection() {
185372
185404
  return {
185373
185405
  ...bindingSelection(),
185374
185406
  authorityMode: appRuntimeDesiredState.authorityMode,
185375
- desiredRuntimeState: appRuntimeDesiredState.desiredRuntimeState
185407
+ desiredRuntimeState: appRuntimeDesiredState.desiredRuntimeState,
185408
+ hasBackend: apps.hasBackend
185376
185409
  };
185377
185410
  }
185378
185411
  function queryBindingRows(db) {
@@ -185424,6 +185457,7 @@ function fleetAuthorityDigest(rows4) {
185424
185457
  row.appId,
185425
185458
  row.appName,
185426
185459
  row.authorityMode,
185460
+ row.hasBackend,
185427
185461
  row.desiredActivationId,
185428
185462
  row.desiredRuntimeState,
185429
185463
  row.desiredActivationEpoch,
@@ -185483,7 +185517,7 @@ async function loadCanonicalTenantRouteFleetSnapshot(input) {
185483
185517
  const removalTargets = [];
185484
185518
  for (const appRows of grouped.values()) {
185485
185519
  const desired = appRows[0];
185486
- if (desired.desiredRuntimeState === "serving" && desired.desiredNodeId === input.nodeId) {
185520
+ if (desired.hasBackend && desired.desiredRuntimeState === "serving" && desired.desiredNodeId === input.nodeId) {
185487
185521
  const joinedRows = appRows.filter((row) => row.instanceId !== null);
185488
185522
  try {
185489
185523
  bindings.push(bindingFromRows(joinedRows));
@@ -401291,7 +401325,7 @@ function requestLocalHealth(url2, init) {
401291
401325
  },
401292
401326
  (response) => {
401293
401327
  const status = response.statusCode ?? 0;
401294
- response.once("end", () => resolve115({ ok: status >= 200 && status < 300 }));
401328
+ resolve115({ ok: status >= 200 && status < 300 });
401295
401329
  response.resume();
401296
401330
  }
401297
401331
  );