@hyperframes/studio-server 0.8.74 → 0.8.75

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.
@@ -72,6 +72,18 @@ interface ProjectHistory {
72
72
  beginWindow(who: HistoryWho, label: string, options?: {
73
73
  idleMs?: number;
74
74
  }): Promise<HistoryWindow>;
75
+ /**
76
+ * For a writer that records after writing (Studio): takes in every write so far and moves the not yet committed
77
+ * outside changes to `paths` into one entry of `who`'s. Claims with the same coalesceKey merge until a claim with
78
+ * another key, `idleMs` (default quietMs) without one, or any operation. Null when nothing was claimed, or
79
+ * when a coalescing claim's writes net to nothing (a drag back to where it started).
80
+ */
81
+ claim(who: HistoryWho, label: string, paths: readonly string[], options?: {
82
+ coalesceKey?: string;
83
+ idleMs?: number;
84
+ }): Promise<{
85
+ id: string;
86
+ } | null>;
75
87
  /** A watcher saw `path` change (project-relative or absolute). */
76
88
  noteChange(path: string): void;
77
89
  list(): HistoryListItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/studio-server",
3
- "version": "0.8.74",
3
+ "version": "0.8.75",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -64,8 +64,8 @@
64
64
  "linkedom": "^0.18.12",
65
65
  "postcss": "^8.5.8",
66
66
  "postcss-selector-parser": "^7.1.2",
67
- "@hyperframes/parsers": "0.8.74",
68
- "@hyperframes/core": "0.8.74"
67
+ "@hyperframes/core": "0.8.75",
68
+ "@hyperframes/parsers": "0.8.75"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/node": "^25.0.10",