@supacloud/cli 0.112.2 → 0.113.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/dist/index.js CHANGED
@@ -10842,6 +10842,10 @@ var ApplicationPreviewReceiptSchema = _Object_({
10842
10842
  status: phaseStatus,
10843
10843
  activation_id: Union([ApplicationActivationIdSchema, Null()])
10844
10844
  }, closed4),
10845
+ functions: Optional(_Object_({
10846
+ status: phaseStatus,
10847
+ slugs: _Array_(String2({ pattern: "^[A-Za-z0-9_-]{1,128}$" }), { maxItems: 64 })
10848
+ }, closed4)),
10845
10849
  smoke_test: _Object_({
10846
10850
  status: phaseStatus,
10847
10851
  checks: _Array_(String2({ minLength: 1, maxLength: 64 }), { maxItems: 32 }),
@@ -17948,6 +17952,10 @@ var ApplicationPreviewReceiptSchema2 = _Object_({
17948
17952
  test_secret: _Object_({ status: phase, name, value_issued: Literal(false) }, closed9),
17949
17953
  configuration_revision: _Object_({ status: phase, configuration_id: Union([ApplicationConfigurationIdSchema2, Null()]) }, closed9),
17950
17954
  application_activation: _Object_({ status: phase, activation_id: nullableUuid }, closed9),
17955
+ functions: Optional(_Object_({
17956
+ status: phase,
17957
+ slugs: _Array_(String2({ pattern: "^[A-Za-z0-9_-]{1,128}$" }), { maxItems: 64, uniqueItems: true })
17958
+ }, closed9)),
17951
17959
  smoke_test: _Object_({ status: phase, checks, passed: checks, failed: checks }, closed9)
17952
17960
  }, closed9),
17953
17961
  cleanup: _Object_({
@@ -18120,6 +18128,10 @@ var receiptSchema = _Object_({
18120
18128
  test_secret: _Object_({ status: phase2, name: String2({ pattern: "^[A-Z0-9_-]{1,128}$" }), value_issued: Literal(false) }, strict),
18121
18129
  configuration_revision: _Object_({ status: phase2, configuration_id: revision }, strict),
18122
18130
  application_activation: _Object_({ status: phase2, activation_id: Union([previewIdSchema, Null()]) }, strict),
18131
+ functions: Optional(_Object_({
18132
+ status: phase2,
18133
+ slugs: _Array_(String2({ pattern: "^[A-Za-z0-9_-]{1,128}$" }), { maxItems: 64, uniqueItems: true })
18134
+ }, strict)),
18123
18135
  smoke_test: _Object_({ status: phase2, checks: checks2, passed: checks2, failed: checks2 }, strict)
18124
18136
  }, strict),
18125
18137
  cleanup: _Object_({
@@ -18174,7 +18186,7 @@ function receipt(value, identity) {
18174
18186
  throw new Error("Incomplete preview readiness");
18175
18187
  }
18176
18188
  }
18177
- if (value.status === "cleaned" && (!value.cleanup.completed || value.cleanup.required || [
18189
+ if (value.status === "cleaned" && (!value.cleanup.completed || value.cleanup.required || value.resources.functions !== undefined && value.resources.functions.status !== "cleaned" || [
18178
18190
  value.resources.database_branch,
18179
18191
  value.resources.queue_namespace,
18180
18192
  value.resources.storage_namespace,
@@ -21983,7 +21995,7 @@ var starter_metadata_default = {
21983
21995
  generatedBy: "supacloud/starter-metadata-v1",
21984
21996
  packages: {
21985
21997
  compiler: {
21986
- version: "0.52.2"
21998
+ version: "0.53.0"
21987
21999
  },
21988
22000
  app: {
21989
22001
  version: "0.35.0",
@@ -33619,7 +33631,7 @@ async function runProjectDeployment(http, args) {
33619
33631
  // package.json
33620
33632
  var package_default = {
33621
33633
  name: "@supacloud/cli",
33622
- version: "0.112.2",
33634
+ version: "0.113.0",
33623
33635
  description: "Project-scoped CLI for SupaCloud users",
33624
33636
  type: "module",
33625
33637
  main: "./dist/index.js",
@@ -33671,14 +33683,14 @@ var package_default = {
33671
33683
  directory: "packages/cli"
33672
33684
  },
33673
33685
  dependencies: {
33674
- "@supacloud/compiler": "^0.52.2",
33675
- "@supacloud/delivery": "0.23.1",
33686
+ "@supacloud/compiler": "^0.53.0",
33687
+ "@supacloud/delivery": "0.24.0",
33676
33688
  "@supacloud/db": "0.20.3",
33677
33689
  typebox: "1.4.3"
33678
33690
  },
33679
33691
  overrides: {
33680
33692
  "@supacloud/contracts": "0.15.2",
33681
- "@supacloud/delivery": "0.23.1",
33693
+ "@supacloud/delivery": "0.24.0",
33682
33694
  "@graphql-tools/utils": "^12.0.4"
33683
33695
  },
33684
33696
  devDependencies: {
@@ -50,6 +50,10 @@ declare const receiptSchema: Type.TObject<{
50
50
  status: Type.TEnum<("cleaned" | "failed" | "pending" | "ready")[]>;
51
51
  activation_id: Type.TUnion<[Type.TString, Type.TNull]>;
52
52
  }>;
53
+ functions: Type.TOptional<Type.TObject<{
54
+ status: Type.TEnum<("cleaned" | "failed" | "pending" | "ready")[]>;
55
+ slugs: Type.TArray<Type.TString>;
56
+ }>>;
53
57
  smoke_test: Type.TObject<{
54
58
  status: Type.TEnum<("cleaned" | "failed" | "pending" | "ready")[]>;
55
59
  checks: Type.TArray<Type.TString>;
@@ -64,6 +64,10 @@ export declare const ApplicationPreviewReceiptSchema: Type.TObject<{
64
64
  status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>;
65
65
  activation_id: Type.TUnion<[Type.TString, Type.TNull]>;
66
66
  }>;
67
+ functions: Type.TOptional<Type.TObject<{
68
+ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>;
69
+ slugs: Type.TArray<Type.TString>;
70
+ }>>;
67
71
  smoke_test: Type.TObject<{
68
72
  status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>;
69
73
  checks: Type.TArray<Type.TString>;
@@ -151,6 +155,10 @@ export declare function parsePreviewReceipt(value: unknown, identity: Applicatio
151
155
  status: "cleaned" | "failed" | "pending" | "ready";
152
156
  activation_id: string | null;
153
157
  };
158
+ functions?: {
159
+ status: "cleaned" | "failed" | "pending" | "ready";
160
+ slugs: string[];
161
+ } | undefined;
154
162
  smoke_test: {
155
163
  status: "cleaned" | "failed" | "pending" | "ready";
156
164
  checks: string[];
@@ -214,6 +222,10 @@ export declare function parsePreviewList(value: unknown, identity: ApplicationWo
214
222
  status: "cleaned" | "failed" | "pending" | "ready";
215
223
  activation_id: string | null;
216
224
  };
225
+ functions?: {
226
+ status: "cleaned" | "failed" | "pending" | "ready";
227
+ slugs: string[];
228
+ } | undefined;
217
229
  smoke_test: {
218
230
  status: "cleaned" | "failed" | "pending" | "ready";
219
231
  checks: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.112.2",
3
+ "version": "0.113.0",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,14 +52,14 @@
52
52
  "directory": "packages/cli"
53
53
  },
54
54
  "dependencies": {
55
- "@supacloud/compiler": "^0.52.2",
56
- "@supacloud/delivery": "0.23.1",
55
+ "@supacloud/compiler": "^0.53.0",
56
+ "@supacloud/delivery": "0.24.0",
57
57
  "@supacloud/db": "0.20.3",
58
58
  "typebox": "1.4.3"
59
59
  },
60
60
  "overrides": {
61
61
  "@supacloud/contracts": "0.15.2",
62
- "@supacloud/delivery": "0.23.1",
62
+ "@supacloud/delivery": "0.24.0",
63
63
  "@graphql-tools/utils": "^12.0.4"
64
64
  },
65
65
  "devDependencies": {