@gapi/gcli 1.8.273 → 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.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## 2026-11-18 - local-workspaces: Workspace protocol 2: announces one-way terminal frames
|
|
2
|
+
|
|
3
|
+
**Feature:** local-workspaces · **Type:** fix
|
|
4
|
+
|
|
5
|
+
- `WORKSPACE_VERSION` = `gcli-workspace/2` (`clientVersion` on every
|
|
6
|
+
heartbeat): the backend sends one-way `input` / `resize` frames only to
|
|
7
|
+
protocol 2+. It cannot tell from an npm version - gcli never reported one
|
|
8
|
+
(1.8.273 had the frames but still said /1, so it got request/response).
|
|
9
|
+
- **Test:** a workspace record's `clientVersion` after `gcli workspace:start`.
|
|
10
|
+
- **Debug:** `/1` = old gcli: keystrokes go request/response, no resize.
|
|
11
|
+
- **Verification:** tsc; the frames themselves: workspace-terminals spec (14).
|
package/package.json
CHANGED
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
|
-
|
|
324778
|
-
|
|
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();
|
|
@@ -325318,7 +325316,7 @@ var init_start4 = __esm({
|
|
|
325318
325316
|
init_config2();
|
|
325319
325317
|
init_connection2();
|
|
325320
325318
|
init_policy();
|
|
325321
|
-
WORKSPACE_VERSION = "gcli-workspace/
|
|
325319
|
+
WORKSPACE_VERSION = "gcli-workspace/2";
|
|
325322
325320
|
csv = (value) => (value ?? "").split(",").map((v) => v.trim()).filter(Boolean);
|
|
325323
325321
|
resolveWorkspace = async (root, cmd) => {
|
|
325324
325322
|
if (cmd.token) {
|
|
@@ -326256,7 +326254,7 @@ if (!isWebContainer) {
|
|
|
326256
326254
|
} else {
|
|
326257
326255
|
}
|
|
326258
326256
|
}
|
|
326259
|
-
var version2 = true ? "1.8.
|
|
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));
|