@jxsuite/protocol 6.0.0 → 6.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/protocol",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "The Studio Backend Protocol — wire types and the canonical route table every Jx Studio backend implements",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/routes.ts CHANGED
@@ -382,6 +382,14 @@ export const STUDIO_ROUTES = {
382
382
  gitFetch: route("POST", "/__studio/git/fetch", "Refresh remote tracking state"),
383
383
  gitCheckout: route("POST", "/__studio/git/checkout", "Switch branches"),
384
384
  gitCreateBranch: route("POST", "/__studio/git/create-branch", "Create a branch"),
385
+ gitCommitBranch: route(
386
+ "POST",
387
+ "/__studio/git/commit-branch",
388
+ "Commit the change set as a NEW branch off the session's base, then take it out of this one " +
389
+ "→ GitCommitBranchResult; 409 branch_exists",
390
+ "A publish the remote conflicts with reports the conflict alone, and Send for review stays " +
391
+ "refused on a branch whose every commit is live.",
392
+ ),
385
393
  gitDiff: route("GET", "/__studio/git/diff", "Unified diff of dirty files (or one path)"),
386
394
  gitShow: route("GET", "/__studio/git/show", "File content at a ref"),
387
395
  gitDiscard: route("POST", "/__studio/git/discard", "Discard working changes"),
package/src/types.ts CHANGED
@@ -238,6 +238,18 @@ export interface GitLogEntry {
238
238
  date: string;
239
239
  }
240
240
 
241
+ /**
242
+ * Response of `git/commit-branch` (see StudioPlatform.gitCommitBranch): the branch the change set
243
+ * now lives on, its commit, and which files left this session (`moved`) or stayed because they were
244
+ * edited while it was made (`kept`).
245
+ */
246
+ export interface GitCommitBranchResult {
247
+ branch: string;
248
+ sha: string;
249
+ moved: string[];
250
+ kept: string[];
251
+ }
252
+
241
253
  /** Response of the pull-request route (see StudioPlatform.createPullRequest). */
242
254
  export interface PullRequestInfo {
243
255
  url: string;