@supacloud/cli 0.64.3 → 0.64.4

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 (2) hide show
  1. package/dist/index.js +13 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -213443,7 +213443,9 @@ var DeliveryObjectSchema = _Object_2({
213443
213443
  entryKind: Union3([
213444
213444
  Literal2("compiled-module-factory"),
213445
213445
  Literal2("bun-http-application"),
213446
- Literal2("bun-worker-application")
213446
+ Literal2("bun-worker-application"),
213447
+ Literal2("go-worker-application"),
213448
+ Literal2("scriptc-worker-application")
213447
213449
  ]),
213448
213450
  runtimeImports: _Array_(String3()),
213449
213451
  files: _Array_(_Object_2({
@@ -213497,6 +213499,9 @@ function parseDeliveryBuildManifest(value) {
213497
213499
  if (!Check3(DeliveryBuildManifestSchema, value))
213498
213500
  throw new Error("Invalid delivery build manifest.");
213499
213501
  validateWorkerExecution(value.plan.targets.flatMap((target) => target.execution ? [target.execution] : []));
213502
+ if (value.plan.targets.reduce((count, target) => count + (target.execution?.replicas ?? 1), 0) > 32) {
213503
+ throw new Error("Invalid delivery replica count.");
213504
+ }
213500
213505
  for (const target of value.plan.targets) {
213501
213506
  if (target.execution && (target.kind !== "jobs" || target.isolation !== "process" || target.execution.target !== target.name || target.jobs.length !== 1 || target.jobs[0]?.name !== target.execution.taskKey || value.objects.find((object) => object.name === target.name)?.entryKind !== "bun-worker-application")) {
213502
213507
  throw new Error("Invalid delivery execution binding.");
@@ -213510,7 +213515,7 @@ function parseDeliveryBuildManifest(value) {
213510
213515
  }
213511
213516
  for (const object of value.objects) {
213512
213517
  const target = value.plan.targets.find((target) => target.name === object.name);
213513
- if (object.entryKind === "bun-worker-application" && target?.kind !== "jobs" || object.entryKind === "bun-http-application" && target?.kind === "jobs") {
213518
+ if (["bun-worker-application", "go-worker-application", "scriptc-worker-application"].includes(object.entryKind) && target?.kind !== "jobs" || object.entryKind === "bun-http-application" && target?.kind === "jobs") {
213514
213519
  throw new Error("Delivery executable kind does not match its target.");
213515
213520
  }
213516
213521
  if (new Set(object.files.map((file) => file.path)).size !== object.files.length || !object.files.some((file) => file.path === object.entrypoint) || deliveryObjectDigest(object) !== object.objectId) {
@@ -213610,6 +213615,9 @@ function parseApplicationReleaseRecord(candidate) {
213610
213615
  throw new Error("Invalid application release record.");
213611
213616
  }
213612
213617
  validateWorkerExecution(candidate.targets.flatMap((target) => target.execution ? [target.execution] : []));
213618
+ if (candidate.targets.reduce((count, target) => count + (target.execution?.replicas ?? 1), 0) > 32) {
213619
+ throw new Error("Invalid application replica count.");
213620
+ }
213613
213621
  if (candidate.targets.some((target) => target.execution && (target.kind !== "worker" || target.execution.target !== target.name))) {
213614
213622
  throw new Error("Invalid application execution binding.");
213615
213623
  }
@@ -254579,7 +254587,7 @@ function registerRemoteDevTools(server2, options = {}) {
254579
254587
  // package.json
254580
254588
  var package_default = {
254581
254589
  name: "@supacloud/cli",
254582
- version: "0.64.3",
254590
+ version: "0.64.4",
254583
254591
  description: "Project-scoped CLI for SupaCloud users",
254584
254592
  type: "module",
254585
254593
  main: "./dist/index.js",
@@ -254615,13 +254623,13 @@ var package_default = {
254615
254623
  dependencies: {
254616
254624
  "@sinclair/typebox": "^0.34.52",
254617
254625
  "@supacloud/compiler": "^0.32.0",
254618
- "@supacloud/delivery": "0.5.0",
254626
+ "@supacloud/delivery": "0.6.0",
254619
254627
  "@supacloud/db": "^0.2.0",
254620
254628
  fflate: "^0.8.3",
254621
254629
  typebox: "1.3.34"
254622
254630
  },
254623
254631
  overrides: {
254624
- "@supacloud/delivery": "0.5.0"
254632
+ "@supacloud/delivery": "0.6.0"
254625
254633
  },
254626
254634
  devDependencies: {
254627
254635
  "@supacloud/elysia": "^0.23.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.64.3",
3
+ "version": "0.64.4",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -36,13 +36,13 @@
36
36
  "dependencies": {
37
37
  "@sinclair/typebox": "^0.34.52",
38
38
  "@supacloud/compiler": "^0.32.0",
39
- "@supacloud/delivery": "0.5.0",
39
+ "@supacloud/delivery": "0.6.0",
40
40
  "@supacloud/db": "^0.2.0",
41
41
  "fflate": "^0.8.3",
42
42
  "typebox": "1.3.34"
43
43
  },
44
44
  "overrides": {
45
- "@supacloud/delivery": "0.5.0"
45
+ "@supacloud/delivery": "0.6.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@supacloud/elysia": "^0.23.1",