@phpsandbox/sdk 0.6.0-canary.0 → 0.6.0-canary.2

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/git.d.ts CHANGED
@@ -130,17 +130,22 @@ export type GitMergeInput = GitRemoteSource & {
130
130
  token?: string;
131
131
  ref?: string;
132
132
  expectedBaseRef?: string;
133
+ /** Apply only changes after this source checkpoint, using three-way conflict detection. Requires runtime baselineRef support. */
134
+ baselineRef?: string;
133
135
  author?: string;
134
136
  message?: string;
135
137
  };
136
138
  export type GitMergeResult = {
137
139
  status: 'merged';
140
+ /** Confirms that the runtime applied the requested baseline delta. */
141
+ baselineRef?: string;
138
142
  message: string;
139
143
  baseRef: string;
140
144
  targetRef: string;
141
145
  ref: string;
142
146
  } | {
143
147
  status: 'conflict';
148
+ baselineRef?: string;
144
149
  message: string;
145
150
  baseRef: string;
146
151
  targetRef: string;
@@ -152,6 +157,7 @@ export type GitMergeResult = {
152
157
  baseRef: string;
153
158
  } | {
154
159
  status: 'up_to_date' | 'unrelated';
160
+ baselineRef?: string;
155
161
  message: string;
156
162
  baseRef: string;
157
163
  targetRef: string;
@@ -176,6 +176,20 @@ export interface PublicationManagedAddress {
176
176
  export type PublicationRouting = PublicationRoutingDraft & {
177
177
  managedAddress: PublicationManagedAddress;
178
178
  };
179
+ export interface PublicationProcessRole {
180
+ name: string;
181
+ kind: 'web' | 'worker' | 'scheduler';
182
+ command: string[];
183
+ instances: number;
184
+ cpu: number;
185
+ memoryMiB: number;
186
+ shutdownSeconds: number;
187
+ }
188
+ export interface PublicationReleaseCommand {
189
+ command: string[];
190
+ timeoutSeconds: number;
191
+ backwardCompatible: true;
192
+ }
179
193
  export type PublicationContainerRuntime = {
180
194
  mode: 'container';
181
195
  port: number;
@@ -184,6 +198,11 @@ export type PublicationContainerRuntime = {
184
198
  };
185
199
  command?: string[];
186
200
  };
201
+ export type PublicationSshRuntime = PublicationContainerRuntime & {
202
+ roles?: PublicationProcessRole[];
203
+ release?: PublicationReleaseCommand;
204
+ storagePath?: string;
205
+ };
187
206
  export type PublicationNativeRuntime = {
188
207
  mode: 'provider-native';
189
208
  port?: never;
@@ -205,7 +224,7 @@ export type PublicationAppDraft = PublicationAppDraftBase & ({
205
224
  serverId?: string;
206
225
  };
207
226
  build: PublicationContainerBuild;
208
- runtime: PublicationContainerRuntime;
227
+ runtime: PublicationSshRuntime;
209
228
  } | {
210
229
  destination: {
211
230
  provider: 'cloudflare-containers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phpsandbox/sdk",
3
- "version": "0.6.0-canary.0",
3
+ "version": "0.6.0-canary.2",
4
4
  "description": "The TypeScript SDK for PHPSandbox cloud development environments",
5
5
  "keywords": [
6
6
  "cloud",