@gapi/gcli 1.8.268 → 1.8.270
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/docs/changelog.d/2026-11-18-local-workspaces-list-returns-mtimems-the-browser-s-file-cache-key.md +12 -0
- package/docs/changelog.d/2026-11-18-local-workspaces-terminal-watch-and-listings-honour-.gitignore-with-or-withou.md +23 -0
- package/docs/features/local-workspaces.md +7 -1
- package/package.json +1 -1
- package/release/index.js +594 -431
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## 2026-11-18 - local-workspaces: list returns mtimeMs (the browser's file cache key)
|
|
2
|
+
|
|
3
|
+
**Feature:** local-workspaces · **Type:** feat
|
|
4
|
+
|
|
5
|
+
- `WorkspaceFiles.list`: every file entry carries `mtimeMs` next to `size`
|
|
6
|
+
(the same `stat`). The Lambforge editor caches a local workspace's files
|
|
7
|
+
in the browser and serves one from there only while size + mtime match.
|
|
8
|
+
- **Test:** `npx jest test/workspace-gitignore.spec.ts --coverage=false`
|
|
9
|
+
(the listing has size + mtimeMs).
|
|
10
|
+
- **Debug:** the browser never caches contents -> this gcli is older (no
|
|
11
|
+
`mtimeMs` in `list`).
|
|
12
|
+
- **Verification:** tsc clean, `npm run lint`, jest workspace specs 49/49.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## 2026-11-18 - local-workspaces: Terminal watch and listings honour .gitignore, with or without git
|
|
2
|
+
|
|
3
|
+
**Feature:** local-workspaces · **Type:** fix
|
|
4
|
+
|
|
5
|
+
- Found live by the owner: with the browser terminal open, a running build
|
|
6
|
+
(dist/, .parcel-cache/) sent every written file to the editor, which read
|
|
7
|
+
each one back through the tunnel.
|
|
8
|
+
- `TerminalManager`: changed paths batched (150 ms), de-duplicated and
|
|
9
|
+
filtered by `WorkspaceFiles.notIgnored` before they are pushed.
|
|
10
|
+
- `notIgnored`: git's `check-ignore --stdin` inside a repo with git
|
|
11
|
+
installed; otherwise `gitignore.ts` (`GitignoreMatcher`, our own - no
|
|
12
|
+
package: nested `.gitignore` files, `!`, `dir/`, `/` anchors, `*`, `**`,
|
|
13
|
+
`?`, `[...]`, nothing back from inside an ignored folder). A changed
|
|
14
|
+
`.gitignore` re-reads the rules.
|
|
15
|
+
- The listing of a folder WITHOUT git now skips ignored files and folders
|
|
16
|
+
too (with git it already used `git ls-files --exclude-standard`).
|
|
17
|
+
- **Test:** `npx jest test/workspace-gitignore.spec.ts test/workspace-terminals.spec.ts --coverage=false`.
|
|
18
|
+
- **Debug:** a build still floods the editor -> its output is not in a
|
|
19
|
+
`.gitignore`; check with `git check-ignore -v <path>` (git) or the matcher
|
|
20
|
+
spec's table (no git).
|
|
21
|
+
- **Verification:** tsc clean, eslint, jest 24 suites / 208 tests (pattern
|
|
22
|
+
table 13, nested + negation, no-git folder watch filter + listing, rule
|
|
23
|
+
reload; a real git repo dropping dist/).
|
|
@@ -27,7 +27,13 @@ spawns `$SHELL -i` in the root - in a PTY through `script` (Linux
|
|
|
27
27
|
a recursive `fs.watch`. Output, exits and changed paths go out on
|
|
28
28
|
`events$`; `WorkspaceConnection` batches them (40 ms) into
|
|
29
29
|
`pushLocalWorkspaceTerminalEvents`. `terminal/input` writes stdin,
|
|
30
|
-
`terminal/close` kills the process group.
|
|
30
|
+
`terminal/close` kills the process group. Changed paths are batched
|
|
31
|
+
(150 ms) and `.gitignore`d ones dropped before they reach the browser
|
|
32
|
+
(`WorkspaceFiles.notIgnored`): git's `check-ignore` inside a repo with git
|
|
33
|
+
installed, otherwise our own matcher (`gitignore.ts`: nested files,
|
|
34
|
+
negation, `dir/`, anchors, `*`/`**`/`?`/`[...]`) - which also filters the
|
|
35
|
+
listing of a folder without git. No package for it (gcli's only dependency
|
|
36
|
+
is esbuild). Without `--allow-terminal` every
|
|
31
37
|
`terminal/*` op answers 403. Canonical: graphql-server
|
|
32
38
|
`docs/features/local-workspaces.md` "Browser terminal".
|
|
33
39
|
|