@gapi/gcli 1.8.269 → 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.
|
@@ -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.
|
package/package.json
CHANGED
package/release/index.js
CHANGED
|
@@ -324033,7 +324033,9 @@ var init_files = __esm({
|
|
|
324033
324033
|
entries = entries.slice(0, limit);
|
|
324034
324034
|
await Promise.all(
|
|
324035
324035
|
entries.filter((e2) => e2.type === "file").map(async (e2) => {
|
|
324036
|
-
|
|
324036
|
+
const stat2 = await import_fs12.promises.stat((0, import_path7.join)(this.root, e2.path)).catch(() => void 0);
|
|
324037
|
+
e2.size = stat2?.size;
|
|
324038
|
+
e2.mtimeMs = stat2 ? Math.floor(stat2.mtimeMs) : void 0;
|
|
324037
324039
|
})
|
|
324038
324040
|
);
|
|
324039
324041
|
return {
|
|
@@ -326139,7 +326141,7 @@ if (!isWebContainer) {
|
|
|
326139
326141
|
} else {
|
|
326140
326142
|
}
|
|
326141
326143
|
}
|
|
326142
|
-
var version2 = true ? "1.8.
|
|
326144
|
+
var version2 = true ? "1.8.269" : "development";
|
|
326143
326145
|
var main = (argv) => {
|
|
326144
326146
|
import_commander.program.name("gcli").version(version2);
|
|
326145
326147
|
commands.map((command) => command(import_commander.program));
|