@supacloud/cli 0.124.1 → 0.126.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.
@@ -128,6 +128,7 @@ export declare const ApplicationPromotionPlanSchema: import("typebox").TObject<{
128
128
  configuration_id: import("typebox").TString;
129
129
  created_at: import("typebox").TString;
130
130
  bun_version: import("typebox").TString;
131
+ startup_timeout_seconds: import("typebox").TOptional<import("typebox").TInteger>;
131
132
  targets: import("typebox").TArray<import("typebox").TObject<{
132
133
  name: import("typebox").TString;
133
134
  kind: import("typebox").TUnion<[import("typebox").TLiteral<"http">, import("typebox").TLiteral<"worker">]>;
@@ -162,6 +163,7 @@ export declare const ApplicationDeployRequestSchema: import("typebox").TObject<{
162
163
  expected_configuration_id: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
163
164
  configuration: import("typebox").TObject<{
164
165
  bun_version: import("typebox").TString;
166
+ startup_timeout_seconds: import("typebox").TOptional<import("typebox").TInteger>;
165
167
  targets: import("typebox").TArray<import("typebox").TObject<{
166
168
  name: import("typebox").TString;
167
169
  kind: import("typebox").TUnion<[import("typebox").TLiteral<"http">, import("typebox").TLiteral<"worker">]>;
@@ -69,6 +69,7 @@ export declare const APPLICATION_TOOL_SCHEMA: {
69
69
  configuration_id: Type.TString;
70
70
  created_at: Type.TString;
71
71
  bun_version: Type.TString;
72
+ startup_timeout_seconds: Type.TOptional<Type.TInteger>;
72
73
  targets: Type.TArray<Type.TObject<{
73
74
  name: Type.TString;
74
75
  kind: Type.TUnion<[Type.TLiteral<"http">, Type.TLiteral<"worker">]>;
@@ -48,5 +48,15 @@ export declare function createFrontendArchive(outputDirectory: string): Promise<
48
48
  fileCount: number;
49
49
  cleanup(): Promise<void>;
50
50
  }>;
51
+ export declare function publishWorkspaceFrontend(http: HttpTransport, input: {
52
+ projectRef: string;
53
+ environment: string;
54
+ deploymentId: string;
55
+ root: string;
56
+ buildCommand: string;
57
+ skipBuild: boolean;
58
+ json: boolean;
59
+ environmentVariables: Readonly<Record<string, string>>;
60
+ }): Promise<ToolResponse>;
51
61
  export declare function registerDeployTools(server: ToolServer, http: HttpTransport, options?: DeployToolOptions): void;
52
62
  export {};
@@ -31,7 +31,6 @@ export type FunctionIdentityResponse = {
31
31
  background_routes: string[];
32
32
  framework?: FunctionFramework;
33
33
  version?: string;
34
- import_map?: string;
35
34
  entrypoint?: string;
36
35
  capabilities?: FunctionCapabilities;
37
36
  limits?: FunctionLimits;
@@ -16,10 +16,13 @@ export declare class WorkspacePlanError extends Error {
16
16
  readonly code: string;
17
17
  constructor(code: string, message: string);
18
18
  }
19
- export interface WorkspaceBinding {
19
+ export type WorkspaceBinding = {
20
20
  project_ref: string;
21
21
  application_id: string;
22
- }
22
+ } | {
23
+ project_ref: string;
24
+ frontend_deployment_id: string;
25
+ };
23
26
  export interface WorkspacePlanTask {
24
27
  kind: "build" | "deploy";
25
28
  status: "planned";
@@ -78,6 +81,8 @@ export interface WorkspacePlan {
78
81
  export declare const workspaceToolSchema: ToolSchema;
79
82
  /** Checked-out commit. This does not accept a caller-supplied revision as its own proof. */
80
83
  export declare function readWorkspaceHead(root: string): Promise<string>;
84
+ export declare function workspaceCheckoutClean(root: string): Promise<boolean>;
85
+ export declare function workspaceTracksFile(root: string, path: string): Promise<boolean>;
81
86
  /** Read a changed-path list only when it is a regular file inside the workspace. */
82
87
  export declare function readWorkspaceChangedList(root: string, changed: string): Promise<string[]>;
83
88
  /** Same rename/delete input rule as scripts/workspace: both sides are visible, and a missing baseline is explicit. */
@@ -96,4 +101,5 @@ export declare function runWorkspacePlan(args: Record<string, unknown>, cwd?: st
96
101
  export declare function registerWorkspaceTools(server: ToolServer, options?: {
97
102
  cwd?: string;
98
103
  getHttp?: () => import("../transports/http").HttpTransport | null;
104
+ context?: Pick<import("../context").ResolvedContext, "projectRef" | "environment" | "environmentVariables">;
99
105
  }): void;
@@ -0,0 +1,4 @@
1
+ import type { ResolvedContext } from "../context";
2
+ import type { ToolResult } from "../tool-server";
3
+ import type { HttpTransport } from "../transports/http";
4
+ export declare function runWorkspacePublish(args: Record<string, unknown>, cwd: string, http: HttpTransport | null, context?: Pick<ResolvedContext, "projectRef" | "environment" | "environmentVariables">): Promise<ToolResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.124.1",
3
+ "version": "0.126.0",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,24 +52,24 @@
52
52
  "directory": "packages/cli"
53
53
  },
54
54
  "dependencies": {
55
- "@supacloud/compiler": "^0.62.8",
56
- "@supacloud/delivery": "0.28.0",
57
- "@supacloud/db": "0.25.1",
55
+ "@supacloud/compiler": "^0.63.0",
56
+ "@supacloud/delivery": "0.30.0",
57
+ "@supacloud/db": "0.25.2",
58
58
  "typebox": "1.4.3"
59
59
  },
60
60
  "overrides": {
61
- "@supacloud/contracts": "0.16.2",
62
- "@supacloud/delivery": "0.28.0",
61
+ "@supacloud/contracts": "0.16.3",
62
+ "@supacloud/delivery": "0.30.0",
63
63
  "@graphql-tools/utils": "^12.0.4",
64
- "@supacloud/compiler": "^0.62.8",
65
- "@supacloud/db": "0.25.1",
64
+ "@supacloud/compiler": "^0.63.0",
65
+ "@supacloud/db": "0.25.2",
66
66
  "deepmerge-ts": "8.0.2",
67
67
  "prisma": "6.19.3"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@supabase/supabase-js": "2.118.0",
71
- "@supacloud/elysia": "0.42.5",
72
- "@types/bun": "^1.4.4",
71
+ "@supacloud/elysia": "0.42.6",
72
+ "@types/bun": "^1.4.5",
73
73
  "effect": "4.0.5",
74
74
  "elysia": "2.0.0-rc.4",
75
75
  "typescript": "7.1.0-beta"