@gapi/gcli 1.8.274 → 1.8.275

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.
@@ -0,0 +1,12 @@
1
+ ## 2026-11-18 - local-workspaces: A new editor watch at the cap drops the oldest instead of being refused
2
+
3
+ **Feature:** local-workspaces · **Type:** fix
4
+
5
+ - A reloaded or closed browser tab never closes its file watch. After four
6
+ reloads `watch/open` answered "At most 4 editors watching at a time" and
7
+ the editor silently showed no changes from disk (found when the assistant
8
+ wrote a file that never appeared). `TerminalManager.watch` now closes the
9
+ oldest watch at the cap.
10
+ - **Test:** `npx jest test/workspace-terminals.spec.ts --forceExit` (15).
11
+ - **Debug:** graphql-server log: an error on `watchLocalWorkspace`.
12
+ - **Verification:** 15/15, lint clean.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gapi/gcli",
3
- "version": "1.8.274",
3
+ "version": "1.8.275",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Stradivario/gapi.git"
package/release/index.js CHANGED
@@ -324774,10 +324774,8 @@ ${e2.message}\r
324774
324774
  */
324775
324775
  watch() {
324776
324776
  if (this.watches.size >= MAX_SESSIONS) {
324777
- throw new WorkspaceError(
324778
- `At most ${MAX_SESSIONS} editors watching at a time.`,
324779
- 429
324780
- );
324777
+ const oldest = this.watches.keys().next().value;
324778
+ this.unwatch(oldest);
324781
324779
  }
324782
324780
  const sessionId = (0, import_crypto3.randomUUID)();
324783
324781
  const changed$ = new import_rxjs70.Subject();
@@ -326256,7 +326254,7 @@ if (!isWebContainer) {
326256
326254
  } else {
326257
326255
  }
326258
326256
  }
326259
- var version2 = true ? "1.8.273" : "development";
326257
+ var version2 = true ? "1.8.274" : "development";
326260
326258
  var main = (argv) => {
326261
326259
  import_commander.program.name("gcli").version(version2);
326262
326260
  commands.map((command) => command(import_commander.program));