shell-dsl 0.0.31 → 0.0.33

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.
Files changed (74) hide show
  1. package/README.md +110 -1
  2. package/dist/cjs/package.json +1 -1
  3. package/dist/cjs/src/commands/mv/mv.cjs +7 -1
  4. package/dist/cjs/src/commands/mv/mv.cjs.map +3 -3
  5. package/dist/cjs/src/commands/tree/tree.cjs +64 -27
  6. package/dist/cjs/src/commands/tree/tree.cjs.map +3 -3
  7. package/dist/cjs/src/fs/memfs-adapter.cjs +26 -3
  8. package/dist/cjs/src/fs/memfs-adapter.cjs.map +3 -3
  9. package/dist/cjs/src/fs/real-fs.cjs +32 -1
  10. package/dist/cjs/src/fs/real-fs.cjs.map +3 -3
  11. package/dist/cjs/src/fs/special-files.cjs +98 -0
  12. package/dist/cjs/src/fs/special-files.cjs.map +10 -0
  13. package/dist/cjs/src/index.cjs +3 -1
  14. package/dist/cjs/src/index.cjs.map +3 -3
  15. package/dist/cjs/src/interpreter/interpreter.cjs +9 -8
  16. package/dist/cjs/src/interpreter/interpreter.cjs.map +3 -3
  17. package/dist/cjs/src/vcs/diff.cjs +102 -0
  18. package/dist/cjs/src/vcs/diff.cjs.map +10 -0
  19. package/dist/cjs/src/vcs/index.cjs +47 -0
  20. package/dist/cjs/src/vcs/index.cjs.map +10 -0
  21. package/dist/cjs/src/vcs/match.cjs +106 -0
  22. package/dist/cjs/src/vcs/match.cjs.map +10 -0
  23. package/dist/cjs/src/vcs/snapshot.cjs +112 -0
  24. package/dist/cjs/src/vcs/snapshot.cjs.map +10 -0
  25. package/dist/cjs/src/vcs/storage.cjs +120 -0
  26. package/dist/cjs/src/vcs/storage.cjs.map +10 -0
  27. package/dist/cjs/src/vcs/types.cjs +30 -0
  28. package/dist/cjs/src/vcs/types.cjs.map +9 -0
  29. package/dist/cjs/src/vcs/vcs.cjs +305 -0
  30. package/dist/cjs/src/vcs/vcs.cjs.map +10 -0
  31. package/dist/cjs/src/vcs/walk.cjs +83 -0
  32. package/dist/cjs/src/vcs/walk.cjs.map +10 -0
  33. package/dist/mjs/package.json +1 -1
  34. package/dist/mjs/src/commands/mv/mv.mjs +7 -1
  35. package/dist/mjs/src/commands/mv/mv.mjs.map +3 -3
  36. package/dist/mjs/src/commands/tree/tree.mjs +64 -27
  37. package/dist/mjs/src/commands/tree/tree.mjs.map +3 -3
  38. package/dist/mjs/src/fs/memfs-adapter.mjs +32 -3
  39. package/dist/mjs/src/fs/memfs-adapter.mjs.map +3 -3
  40. package/dist/mjs/src/fs/real-fs.mjs +38 -1
  41. package/dist/mjs/src/fs/real-fs.mjs.map +3 -3
  42. package/dist/mjs/src/fs/special-files.mjs +58 -0
  43. package/dist/mjs/src/fs/special-files.mjs.map +10 -0
  44. package/dist/mjs/src/index.mjs +3 -1
  45. package/dist/mjs/src/index.mjs.map +3 -3
  46. package/dist/mjs/src/interpreter/interpreter.mjs +9 -8
  47. package/dist/mjs/src/interpreter/interpreter.mjs.map +3 -3
  48. package/dist/mjs/src/vcs/diff.mjs +62 -0
  49. package/dist/mjs/src/vcs/diff.mjs.map +10 -0
  50. package/dist/mjs/src/vcs/index.mjs +7 -0
  51. package/dist/mjs/src/vcs/index.mjs.map +10 -0
  52. package/dist/mjs/src/vcs/match.mjs +66 -0
  53. package/dist/mjs/src/vcs/match.mjs.map +10 -0
  54. package/dist/mjs/src/vcs/snapshot.mjs +72 -0
  55. package/dist/mjs/src/vcs/snapshot.mjs.map +10 -0
  56. package/dist/mjs/src/vcs/storage.mjs +79 -0
  57. package/dist/mjs/src/vcs/storage.mjs.map +10 -0
  58. package/dist/mjs/src/vcs/types.mjs +2 -0
  59. package/dist/mjs/src/vcs/types.mjs.map +9 -0
  60. package/dist/mjs/src/vcs/vcs.mjs +265 -0
  61. package/dist/mjs/src/vcs/vcs.mjs.map +10 -0
  62. package/dist/mjs/src/vcs/walk.mjs +43 -0
  63. package/dist/mjs/src/vcs/walk.mjs.map +10 -0
  64. package/dist/types/src/fs/special-files.d.ts +8 -0
  65. package/dist/types/src/index.d.ts +2 -0
  66. package/dist/types/src/vcs/diff.d.ts +10 -0
  67. package/dist/types/src/vcs/index.d.ts +2 -0
  68. package/dist/types/src/vcs/match.d.ts +5 -0
  69. package/dist/types/src/vcs/snapshot.d.ts +20 -0
  70. package/dist/types/src/vcs/storage.d.ts +22 -0
  71. package/dist/types/src/vcs/types.d.ts +74 -0
  72. package/dist/types/src/vcs/vcs.d.ts +35 -0
  73. package/dist/types/src/vcs/walk.d.ts +7 -0
  74. package/package.json +1 -1
@@ -0,0 +1,102 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/vcs/diff.ts
40
+ var exports_diff = {};
41
+ __export(exports_diff, {
42
+ diffWorkingTree: () => diffWorkingTree,
43
+ diffManifests: () => diffManifests
44
+ });
45
+ module.exports = __toCommonJS(exports_diff);
46
+ var import_walk = require("./walk.cjs");
47
+ function diffManifests(before, after) {
48
+ const entries = [];
49
+ const allPaths = new Set([...Object.keys(before), ...Object.keys(after)]);
50
+ for (const path of allPaths) {
51
+ const prev = before[path];
52
+ const curr = after[path];
53
+ if (!prev && curr) {
54
+ entries.push({ type: "add", path, content: curr.content });
55
+ } else if (prev && !curr) {
56
+ entries.push({ type: "delete", path, previousContent: prev.content });
57
+ } else if (prev && curr && prev.content !== curr.content) {
58
+ entries.push({
59
+ type: "modify",
60
+ path,
61
+ content: curr.content,
62
+ previousContent: prev.content
63
+ });
64
+ }
65
+ }
66
+ return entries.sort((a, b) => a.path.localeCompare(b.path));
67
+ }
68
+ async function diffWorkingTree(fs, rootPath, manifest, exclude = []) {
69
+ const entries = [];
70
+ const workingFiles = await import_walk.walkTree(fs, rootPath, exclude);
71
+ const manifestPaths = new Set(Object.keys(manifest));
72
+ const seenPaths = new Set;
73
+ for (const relPath of workingFiles) {
74
+ seenPaths.add(relPath);
75
+ const fullPath = fs.resolve(rootPath, relPath);
76
+ const content = await fs.readFile(fullPath);
77
+ const b64 = Buffer.from(content).toString("base64");
78
+ const prev = manifest[relPath];
79
+ if (!prev) {
80
+ entries.push({ type: "add", path: relPath, content: b64 });
81
+ } else if (prev.content !== b64) {
82
+ entries.push({
83
+ type: "modify",
84
+ path: relPath,
85
+ content: b64,
86
+ previousContent: prev.content
87
+ });
88
+ }
89
+ }
90
+ for (const manifestPath of manifestPaths) {
91
+ if (!seenPaths.has(manifestPath)) {
92
+ entries.push({
93
+ type: "delete",
94
+ path: manifestPath,
95
+ previousContent: manifest[manifestPath].content
96
+ });
97
+ }
98
+ }
99
+ return entries.sort((a, b) => a.path.localeCompare(b.path));
100
+ }
101
+
102
+ //# debugId=C182915799ABD69764756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/vcs/diff.ts"],
4
+ "sourcesContent": [
5
+ "import type { VirtualFS } from \"../types.cjs\";\nimport type { TreeManifest, DiffEntry } from \"./types.cjs\";\nimport { walkTree } from \"./walk.cjs\";\n\n/**\n * Compute diff entries between two tree manifests.\n */\nexport function diffManifests(\n before: TreeManifest,\n after: TreeManifest,\n): DiffEntry[] {\n const entries: DiffEntry[] = [];\n const allPaths = new Set([...Object.keys(before), ...Object.keys(after)]);\n\n for (const path of allPaths) {\n const prev = before[path];\n const curr = after[path];\n\n if (!prev && curr) {\n entries.push({ type: \"add\", path, content: curr.content });\n } else if (prev && !curr) {\n entries.push({ type: \"delete\", path, previousContent: prev.content });\n } else if (prev && curr && prev.content !== curr.content) {\n entries.push({\n type: \"modify\",\n path,\n content: curr.content,\n previousContent: prev.content,\n });\n }\n }\n\n return entries.sort((a, b) => a.path.localeCompare(b.path));\n}\n\n/**\n * Compute diff between a tree manifest and the current working tree.\n */\nexport async function diffWorkingTree(\n fs: VirtualFS,\n rootPath: string,\n manifest: TreeManifest,\n exclude: string[] = [],\n): Promise<DiffEntry[]> {\n const entries: DiffEntry[] = [];\n const workingFiles = await walkTree(fs, rootPath, exclude);\n const manifestPaths = new Set(Object.keys(manifest));\n const seenPaths = new Set<string>();\n\n for (const relPath of workingFiles) {\n seenPaths.add(relPath);\n const fullPath = fs.resolve(rootPath, relPath);\n const content = await fs.readFile(fullPath);\n const b64 = Buffer.from(content).toString(\"base64\");\n\n const prev = manifest[relPath];\n if (!prev) {\n entries.push({ type: \"add\", path: relPath, content: b64 });\n } else if (prev.content !== b64) {\n entries.push({\n type: \"modify\",\n path: relPath,\n content: b64,\n previousContent: prev.content,\n });\n }\n }\n\n for (const manifestPath of manifestPaths) {\n if (!seenPaths.has(manifestPath)) {\n entries.push({\n type: \"delete\",\n path: manifestPath,\n previousContent: manifest[manifestPath]!.content,\n });\n }\n }\n\n return entries.sort((a, b) => a.path.localeCompare(b.path));\n}\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;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AAQ;AAAA,IAC1C,MAAM,MAAM,OAAO,KAAK,OAAO,EAAE,SAAS,QAAQ;AAAA,IAElD,MAAM,OAAO,SAAS;AAAA,IACtB,IAAI,CAAC,MAAM;AAAA,MACT,QAAQ,KAAK,EAAE,MAAM,OAAO,MAAM,SAAS,SAAS,IAAI,CAAC;AAAA,IAC3D,EAAO,SAAI,KAAK,YAAY,KAAK;AAAA,MAC/B,QAAQ,KAAK;AAAA,QACX,MAAM;AAAA,QACN,MAAM;AAAA,QACN,SAAS;AAAA,QACT,iBAAiB,KAAK;AAAA,MACxB,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,WAAW,gBAAgB,eAAe;AAAA,IACxC,IAAI,CAAC,UAAU,IAAI,YAAY,GAAG;AAAA,MAChC,QAAQ,KAAK;AAAA,QACX,MAAM;AAAA,QACN,MAAM;AAAA,QACN,iBAAiB,SAAS,cAAe;AAAA,MAC3C,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,OAAO,QAAQ,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,IAAI,CAAC;AAAA;",
8
+ "debugId": "C182915799ABD69764756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,47 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/vcs/index.ts
40
+ var exports_vcs = {};
41
+ __export(exports_vcs, {
42
+ VersionControlSystem: () => import_vcs.VersionControlSystem
43
+ });
44
+ module.exports = __toCommonJS(exports_vcs);
45
+ var import_vcs = require("./vcs.cjs");
46
+
47
+ //# debugId=882B2013CEEDB5D864756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/vcs/index.ts"],
4
+ "sourcesContent": [
5
+ "export { VersionControlSystem } from \"./vcs.cjs\";\nexport type {\n VCSConfig,\n Revision,\n DiffEntry,\n TreeManifest,\n FileEntry,\n CommitOptions,\n CheckoutOptions,\n LogOptions,\n LogEntry,\n BranchInfo,\n} from \"./types.cjs\";\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC,IAArC;",
8
+ "debugId": "882B2013CEEDB5D864756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,106 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/vcs/match.ts
40
+ var exports_match = {};
41
+ __export(exports_match, {
42
+ matchGlobPath: () => matchGlobPath
43
+ });
44
+ module.exports = __toCommonJS(exports_match);
45
+ function matchGlobPath(pattern, filePath) {
46
+ const p = pattern.startsWith("/") ? pattern.slice(1) : pattern;
47
+ const f = filePath.startsWith("/") ? filePath.slice(1) : filePath;
48
+ const patternParts = p.split("/");
49
+ const pathParts = f.split("/");
50
+ return matchParts(patternParts, pathParts, 0, 0);
51
+ }
52
+ function matchParts(pattern, path, pi, fi) {
53
+ while (pi < pattern.length && fi < path.length) {
54
+ const seg = pattern[pi];
55
+ if (seg === "**") {
56
+ for (let i = fi;i <= path.length; i++) {
57
+ if (matchParts(pattern, path, pi + 1, i))
58
+ return true;
59
+ }
60
+ return false;
61
+ }
62
+ if (!matchSegment(seg, path[fi]))
63
+ return false;
64
+ pi++;
65
+ fi++;
66
+ }
67
+ while (pi < pattern.length && pattern[pi] === "**")
68
+ pi++;
69
+ return pi === pattern.length && fi === path.length;
70
+ }
71
+ function matchSegment(pattern, segment) {
72
+ let regex = "^";
73
+ for (let i = 0;i < pattern.length; i++) {
74
+ const c = pattern[i];
75
+ switch (c) {
76
+ case "*":
77
+ regex += "[^/]*";
78
+ break;
79
+ case "?":
80
+ regex += "[^/]";
81
+ break;
82
+ case ".":
83
+ case "^":
84
+ case "$":
85
+ case "+":
86
+ case "{":
87
+ case "}":
88
+ case "(":
89
+ case ")":
90
+ case "|":
91
+ case "\\":
92
+ regex += "\\" + c;
93
+ break;
94
+ default:
95
+ regex += c;
96
+ }
97
+ }
98
+ regex += "$";
99
+ try {
100
+ return new RegExp(regex).test(segment);
101
+ } catch {
102
+ return false;
103
+ }
104
+ }
105
+
106
+ //# debugId=9C038AE3F1837D4764756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/vcs/match.ts"],
4
+ "sourcesContent": [
5
+ "/**\n * Match a file path against a glob pattern.\n * Supports `**` for recursive directory matching, `*` for single segment wildcard.\n */\nexport function matchGlobPath(pattern: string, filePath: string): boolean {\n // Normalize: strip leading slashes\n const p = pattern.startsWith(\"/\") ? pattern.slice(1) : pattern;\n const f = filePath.startsWith(\"/\") ? filePath.slice(1) : filePath;\n\n const patternParts = p.split(\"/\");\n const pathParts = f.split(\"/\");\n\n return matchParts(patternParts, pathParts, 0, 0);\n}\n\nfunction matchParts(\n pattern: string[],\n path: string[],\n pi: number,\n fi: number,\n): boolean {\n while (pi < pattern.length && fi < path.length) {\n const seg = pattern[pi]!;\n\n if (seg === \"**\") {\n // ** matches zero or more path segments\n // Try matching rest of pattern against current position and all subsequent positions\n for (let i = fi; i <= path.length; i++) {\n if (matchParts(pattern, path, pi + 1, i)) return true;\n }\n return false;\n }\n\n if (!matchSegment(seg, path[fi]!)) return false;\n pi++;\n fi++;\n }\n\n // Skip trailing ** patterns\n while (pi < pattern.length && pattern[pi] === \"**\") pi++;\n\n return pi === pattern.length && fi === path.length;\n}\n\nfunction matchSegment(pattern: string, segment: string): boolean {\n // Convert glob segment to regex\n let regex = \"^\";\n for (let i = 0; i < pattern.length; i++) {\n const c = pattern[i]!;\n switch (c) {\n case \"*\":\n regex += \"[^/]*\";\n break;\n case \"?\":\n regex += \"[^/]\";\n break;\n case \".\":\n case \"^\":\n case \"$\":\n case \"+\":\n case \"{\":\n case \"}\":\n case \"(\":\n case \")\":\n case \"|\":\n case \"\\\\\":\n regex += \"\\\\\" + c;\n break;\n default:\n regex += c;\n }\n }\n regex += \"$\";\n\n try {\n return new RegExp(regex).test(segment);\n } catch {\n return false;\n }\n}\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,SAAS,aAAa,CAAC,SAAiB,UAA2B;AAAA,EAExE,MAAM,IAAI,QAAQ,WAAW,GAAG,IAAI,QAAQ,MAAM,CAAC,IAAI;AAAA,EACvD,MAAM,IAAI,SAAS,WAAW,GAAG,IAAI,SAAS,MAAM,CAAC,IAAI;AAAA,EAEzD,MAAM,eAAe,EAAE,MAAM,GAAG;AAAA,EAChC,MAAM,YAAY,EAAE,MAAM,GAAG;AAAA,EAE7B,OAAO,WAAW,cAAc,WAAW,GAAG,CAAC;AAAA;AAGjD,SAAS,UAAU,CACjB,SACA,MACA,IACA,IACS;AAAA,EACT,OAAO,KAAK,QAAQ,UAAU,KAAK,KAAK,QAAQ;AAAA,IAC9C,MAAM,MAAM,QAAQ;AAAA,IAEpB,IAAI,QAAQ,MAAM;AAAA,MAGhB,SAAS,IAAI,GAAI,KAAK,KAAK,QAAQ,KAAK;AAAA,QACtC,IAAI,WAAW,SAAS,MAAM,KAAK,GAAG,CAAC;AAAA,UAAG,OAAO;AAAA,MACnD;AAAA,MACA,OAAO;AAAA,IACT;AAAA,IAEA,IAAI,CAAC,aAAa,KAAK,KAAK,GAAI;AAAA,MAAG,OAAO;AAAA,IAC1C;AAAA,IACA;AAAA,EACF;AAAA,EAGA,OAAO,KAAK,QAAQ,UAAU,QAAQ,QAAQ;AAAA,IAAM;AAAA,EAEpD,OAAO,OAAO,QAAQ,UAAU,OAAO,KAAK;AAAA;AAG9C,SAAS,YAAY,CAAC,SAAiB,SAA0B;AAAA,EAE/D,IAAI,QAAQ;AAAA,EACZ,SAAS,IAAI,EAAG,IAAI,QAAQ,QAAQ,KAAK;AAAA,IACvC,MAAM,IAAI,QAAQ;AAAA,IAClB,QAAQ;AAAA,WACD;AAAA,QACH,SAAS;AAAA,QACT;AAAA,WACG;AAAA,QACH,SAAS;AAAA,QACT;AAAA,WACG;AAAA,WACA;AAAA,WACA;AAAA,WACA;AAAA,WACA;AAAA,WACA;AAAA,WACA;AAAA,WACA;AAAA,WACA;AAAA,WACA;AAAA,QACH,SAAS,OAAO;AAAA,QAChB;AAAA;AAAA,QAEA,SAAS;AAAA;AAAA,EAEf;AAAA,EACA,SAAS;AAAA,EAET,IAAI;AAAA,IACF,OAAO,IAAI,OAAO,KAAK,EAAE,KAAK,OAAO;AAAA,IACrC,MAAM;AAAA,IACN,OAAO;AAAA;AAAA;",
8
+ "debugId": "9C038AE3F1837D4764756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,112 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/vcs/snapshot.ts
40
+ var exports_snapshot = {};
41
+ __export(exports_snapshot, {
42
+ restoreTree: () => restoreTree,
43
+ buildTreeManifest: () => buildTreeManifest,
44
+ buildPartialManifest: () => buildPartialManifest
45
+ });
46
+ module.exports = __toCommonJS(exports_snapshot);
47
+ var import_walk = require("./walk.cjs");
48
+ async function buildTreeManifest(fs, rootPath, exclude = []) {
49
+ const manifest = {};
50
+ const files = await import_walk.walkTree(fs, rootPath, exclude);
51
+ for (const relPath of files) {
52
+ const fullPath = fs.resolve(rootPath, relPath);
53
+ const content = await fs.readFile(fullPath);
54
+ const buf = Buffer.from(content);
55
+ manifest[relPath] = {
56
+ content: buf.toString("base64"),
57
+ size: buf.length
58
+ };
59
+ }
60
+ return manifest;
61
+ }
62
+ async function buildPartialManifest(fs, rootPath, paths) {
63
+ const manifest = {};
64
+ for (const relPath of paths) {
65
+ const fullPath = fs.resolve(rootPath, relPath);
66
+ if (!await fs.exists(fullPath))
67
+ continue;
68
+ const stat = await fs.stat(fullPath);
69
+ if (!stat.isFile())
70
+ continue;
71
+ const content = await fs.readFile(fullPath);
72
+ const buf = Buffer.from(content);
73
+ manifest[relPath] = {
74
+ content: buf.toString("base64"),
75
+ size: buf.length
76
+ };
77
+ }
78
+ return manifest;
79
+ }
80
+ async function restoreTree(fs, rootPath, manifest, options) {
81
+ const fullRestore = options?.fullRestore ?? false;
82
+ const filterPaths = options?.paths ? new Set(options.paths) : null;
83
+ for (const [relPath, entry] of Object.entries(manifest)) {
84
+ if (filterPaths && !filterPaths.has(relPath))
85
+ continue;
86
+ await writeFileFromEntry(fs, rootPath, relPath, entry);
87
+ }
88
+ if (fullRestore) {
89
+ const exclude = getVcsDirName(rootPath);
90
+ const currentFiles = await import_walk.walkTree(fs, rootPath, exclude ? [exclude] : []);
91
+ for (const relPath of currentFiles) {
92
+ if (!manifest[relPath]) {
93
+ const fullPath = fs.resolve(rootPath, relPath);
94
+ await fs.rm(fullPath);
95
+ }
96
+ }
97
+ }
98
+ }
99
+ async function writeFileFromEntry(fs, rootPath, relPath, entry) {
100
+ const fullPath = fs.resolve(rootPath, relPath);
101
+ const dir = fs.dirname(fullPath);
102
+ if (!await fs.exists(dir)) {
103
+ await fs.mkdir(dir, { recursive: true });
104
+ }
105
+ const buf = Buffer.from(entry.content, "base64");
106
+ await fs.writeFile(fullPath, buf);
107
+ }
108
+ function getVcsDirName(_rootPath) {
109
+ return ".vcs";
110
+ }
111
+
112
+ //# debugId=E0FC26F624360D1C64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/vcs/snapshot.ts"],
4
+ "sourcesContent": [
5
+ "import type { VirtualFS } from \"../types.cjs\";\nimport type { TreeManifest, FileEntry } from \"./types.cjs\";\nimport { walkTree } from \"./walk.cjs\";\n\n/**\n * Build a TreeManifest from the current working tree.\n */\nexport async function buildTreeManifest(\n fs: VirtualFS,\n rootPath: string,\n exclude: string[] = [],\n): Promise<TreeManifest> {\n const manifest: TreeManifest = {};\n const files = await walkTree(fs, rootPath, exclude);\n\n for (const relPath of files) {\n const fullPath = fs.resolve(rootPath, relPath);\n const content = await fs.readFile(fullPath);\n const buf = Buffer.from(content);\n manifest[relPath] = {\n content: buf.toString(\"base64\"),\n size: buf.length,\n };\n }\n\n return manifest;\n}\n\n/**\n * Build a TreeManifest for only the specified relative paths.\n */\nexport async function buildPartialManifest(\n fs: VirtualFS,\n rootPath: string,\n paths: string[],\n): Promise<TreeManifest> {\n const manifest: TreeManifest = {};\n\n for (const relPath of paths) {\n const fullPath = fs.resolve(rootPath, relPath);\n if (!(await fs.exists(fullPath))) continue;\n const stat = await fs.stat(fullPath);\n if (!stat.isFile()) continue;\n\n const content = await fs.readFile(fullPath);\n const buf = Buffer.from(content);\n manifest[relPath] = {\n content: buf.toString(\"base64\"),\n size: buf.length,\n };\n }\n\n return manifest;\n}\n\n/**\n * Restore a working tree from a TreeManifest.\n *\n * If `fullRestore` is true, deletes working tree files not in the manifest.\n * If `paths` is provided, only restores matching files.\n */\nexport async function restoreTree(\n fs: VirtualFS,\n rootPath: string,\n manifest: TreeManifest,\n options?: { fullRestore?: boolean; paths?: string[] },\n): Promise<void> {\n const fullRestore = options?.fullRestore ?? false;\n const filterPaths = options?.paths ? new Set(options.paths) : null;\n\n // Write files from manifest\n for (const [relPath, entry] of Object.entries(manifest)) {\n if (filterPaths && !filterPaths.has(relPath)) continue;\n await writeFileFromEntry(fs, rootPath, relPath, entry);\n }\n\n // Delete files not in manifest (full restore only)\n if (fullRestore) {\n const exclude = getVcsDirName(rootPath);\n const currentFiles = await walkTree(fs, rootPath, exclude ? [exclude] : []);\n\n for (const relPath of currentFiles) {\n if (!manifest[relPath]) {\n const fullPath = fs.resolve(rootPath, relPath);\n await fs.rm(fullPath);\n }\n }\n }\n}\n\nasync function writeFileFromEntry(\n fs: VirtualFS,\n rootPath: string,\n relPath: string,\n entry: FileEntry,\n): Promise<void> {\n const fullPath = fs.resolve(rootPath, relPath);\n const dir = fs.dirname(fullPath);\n\n // Ensure parent directory exists\n if (!(await fs.exists(dir))) {\n await fs.mkdir(dir, { recursive: true });\n }\n\n const buf = Buffer.from(entry.content, \"base64\");\n await fs.writeFile(fullPath, buf);\n}\n\nfunction getVcsDirName(_rootPath: string): string | null {\n return \".vcs\";\n}\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEyB,IAAzB;AAKA,eAAsB,iBAAiB,CACrC,IACA,UACA,UAAoB,CAAC,GACE;AAAA,EACvB,MAAM,WAAyB,CAAC;AAAA,EAChC,MAAM,QAAQ,MAAM,qBAAS,IAAI,UAAU,OAAO;AAAA,EAElD,WAAW,WAAW,OAAO;AAAA,IAC3B,MAAM,WAAW,GAAG,QAAQ,UAAU,OAAO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,IAAI,CAAC,CAAC;AAAA,IAE1E,WAAW,WAAW,cAAc;AAAA,MAClC,IAAI,CAAC,SAAS,UAAU;AAAA,QACtB,MAAM,WAAW,GAAG,QAAQ,UAAU,OAAO;AAAA,QAC7C,MAAM,GAAG,GAAG,QAAQ;AAAA,MACtB;AAAA,IACF;AAAA,EACF;AAAA;AAGF,eAAe,kBAAkB,CAC/B,IACA,UACA,SACA,OACe;AAAA,EACf,MAAM,WAAW,GAAG,QAAQ,UAAU,OAAO;AAAA,EAC7C,MAAM,MAAM,GAAG,QAAQ,QAAQ;AAAA,EAG/B,IAAI,CAAE,MAAM,GAAG,OAAO,GAAG,GAAI;AAAA,IAC3B,MAAM,GAAG,MAAM,KAAK,EAAE,WAAW,KAAK,CAAC;AAAA,EACzC;AAAA,EAEA,MAAM,MAAM,OAAO,KAAK,MAAM,SAAS,QAAQ;AAAA,EAC/C,MAAM,GAAG,UAAU,UAAU,GAAG;AAAA;AAGlC,SAAS,aAAa,CAAC,WAAkC;AAAA,EACvD,OAAO;AAAA;",
8
+ "debugId": "E0FC26F624360D1C64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,120 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/vcs/storage.ts
40
+ var exports_storage = {};
41
+ __export(exports_storage, {
42
+ VCSStorage: () => VCSStorage
43
+ });
44
+ module.exports = __toCommonJS(exports_storage);
45
+
46
+ class VCSStorage {
47
+ fs;
48
+ basePath;
49
+ constructor(fs, basePath) {
50
+ this.fs = fs;
51
+ this.basePath = basePath;
52
+ }
53
+ path(...segments) {
54
+ return this.fs.resolve(this.basePath, ...segments);
55
+ }
56
+ async isInitialized() {
57
+ return this.fs.exists(this.path("HEAD"));
58
+ }
59
+ async initialize(defaultBranch = "main") {
60
+ await this.fs.mkdir(this.basePath, { recursive: true });
61
+ await this.fs.mkdir(this.path("refs", "heads"), { recursive: true });
62
+ await this.fs.mkdir(this.path("revisions"), { recursive: true });
63
+ await this.writeHead({ ref: `refs/heads/${defaultBranch}` });
64
+ await this.writeJSON(["counter.json"], { next: 1 });
65
+ await this.writeJSON(["config.json"], { defaultBranch });
66
+ }
67
+ async readHead() {
68
+ return this.readJSON("HEAD");
69
+ }
70
+ async writeHead(head) {
71
+ await this.writeJSON(["HEAD"], head);
72
+ }
73
+ async readBranch(name) {
74
+ const branchPath = this.path("refs", "heads", name);
75
+ if (!await this.fs.exists(branchPath))
76
+ return null;
77
+ return this.readJSON("refs", "heads", name);
78
+ }
79
+ async writeBranch(name, ref) {
80
+ await this.writeJSON(["refs", "heads", name], ref);
81
+ }
82
+ async deleteBranch(name) {
83
+ const branchPath = this.path("refs", "heads", name);
84
+ await this.fs.rm(branchPath);
85
+ }
86
+ async listBranches() {
87
+ const headsPath = this.path("refs", "heads");
88
+ try {
89
+ return await this.fs.readdir(headsPath);
90
+ } catch {
91
+ return [];
92
+ }
93
+ }
94
+ async readRevision(id) {
95
+ return this.readJSON("revisions", `${id}.json`);
96
+ }
97
+ async writeRevision(rev) {
98
+ await this.writeJSON(["revisions", `${rev.id}.json`], rev);
99
+ }
100
+ async nextRevisionId() {
101
+ const counter = await this.readJSON("counter.json");
102
+ const id = counter.next;
103
+ await this.writeJSON(["counter.json"], { next: id + 1 });
104
+ return id;
105
+ }
106
+ async readConfig() {
107
+ return this.readJSON("config.json");
108
+ }
109
+ async readJSON(...segments) {
110
+ const filePath = this.path(...segments);
111
+ const content = await this.fs.readFile(filePath, "utf8");
112
+ return JSON.parse(content);
113
+ }
114
+ async writeJSON(segments, data) {
115
+ const filePath = this.path(...segments);
116
+ await this.fs.writeFile(filePath, JSON.stringify(data, null, 2));
117
+ }
118
+ }
119
+
120
+ //# debugId=E27DBCC23E16A74564756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/vcs/storage.ts"],
4
+ "sourcesContent": [
5
+ "import type { VirtualFS } from \"../types.cjs\";\nimport type {\n HeadRef,\n BranchRef,\n RevisionCounter,\n VCSConfigFile,\n Revision,\n} from \"./types.cjs\";\n\nexport class VCSStorage {\n constructor(\n private readonly fs: VirtualFS,\n private readonly basePath: string,\n ) {}\n\n private path(...segments: string[]): string {\n return this.fs.resolve(this.basePath, ...segments);\n }\n\n // --- Init ---\n\n async isInitialized(): Promise<boolean> {\n return this.fs.exists(this.path(\"HEAD\"));\n }\n\n async initialize(defaultBranch: string = \"main\"): Promise<void> {\n await this.fs.mkdir(this.basePath, { recursive: true });\n await this.fs.mkdir(this.path(\"refs\", \"heads\"), { recursive: true });\n await this.fs.mkdir(this.path(\"revisions\"), { recursive: true });\n\n await this.writeHead({ ref: `refs/heads/${defaultBranch}` });\n await this.writeJSON([\"counter.json\"], { next: 1 } satisfies RevisionCounter);\n await this.writeJSON([\"config.json\"], { defaultBranch } satisfies VCSConfigFile);\n }\n\n // --- HEAD ---\n\n async readHead(): Promise<HeadRef> {\n return this.readJSON<HeadRef>(\"HEAD\");\n }\n\n async writeHead(head: HeadRef): Promise<void> {\n await this.writeJSON([\"HEAD\"], head);\n }\n\n // --- Branches ---\n\n async readBranch(name: string): Promise<BranchRef | null> {\n const branchPath = this.path(\"refs\", \"heads\", name);\n if (!(await this.fs.exists(branchPath))) return null;\n return this.readJSON<BranchRef>(\"refs\", \"heads\", name);\n }\n\n async writeBranch(name: string, ref: BranchRef): Promise<void> {\n await this.writeJSON([\"refs\", \"heads\", name], ref);\n }\n\n async deleteBranch(name: string): Promise<void> {\n const branchPath = this.path(\"refs\", \"heads\", name);\n await this.fs.rm(branchPath);\n }\n\n async listBranches(): Promise<string[]> {\n const headsPath = this.path(\"refs\", \"heads\");\n try {\n return await this.fs.readdir(headsPath);\n } catch {\n return [];\n }\n }\n\n // --- Revisions ---\n\n async readRevision(id: number): Promise<Revision> {\n return this.readJSON<Revision>(\"revisions\", `${id}.json`);\n }\n\n async writeRevision(rev: Revision): Promise<void> {\n await this.writeJSON([\"revisions\", `${rev.id}.json`], rev);\n }\n\n // --- Counter ---\n\n async nextRevisionId(): Promise<number> {\n const counter = await this.readJSON<RevisionCounter>(\"counter.json\");\n const id = counter.next;\n await this.writeJSON([\"counter.json\"], { next: id + 1 } satisfies RevisionCounter);\n return id;\n }\n\n // --- Config ---\n\n async readConfig(): Promise<VCSConfigFile> {\n return this.readJSON<VCSConfigFile>(\"config.json\");\n }\n\n // --- Helpers ---\n\n private async readJSON<T>(...segments: string[]): Promise<T> {\n const filePath = this.path(...segments);\n const content = await this.fs.readFile(filePath, \"utf8\");\n return JSON.parse(content) as T;\n }\n\n private async writeJSON(segments: string[], data: unknown): Promise<void> {\n const filePath = this.path(...segments);\n await this.fs.writeFile(filePath, JSON.stringify(data, null, 2));\n }\n}\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAAA;AAEnE;",
8
+ "debugId": "E27DBCC23E16A74564756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,30 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+
26
+ // src/vcs/types.ts
27
+ var exports_types = {};
28
+ module.exports = __toCommonJS(exports_types);
29
+
30
+ //# debugId=0D69226887DD202F64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "0D69226887DD202F64756E2164756E21",
8
+ "names": []
9
+ }