@leitwerk-dev/test-support 0.5.11 → 0.5.13
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.
|
@@ -29,6 +29,8 @@ export declare class FakeGitOps {
|
|
|
29
29
|
/** @internal */
|
|
30
30
|
getHeadSha(repoDir: string): Promise<string>;
|
|
31
31
|
/** @internal */
|
|
32
|
-
|
|
32
|
+
prepareSubmodules: () => Promise<undefined>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
listFiles(repoDir: string, patterns: string[]): Promise<string[]>;
|
|
33
35
|
}
|
|
34
36
|
//# sourceMappingURL=fake-git-ops.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-git-ops.d.ts","sourceRoot":"","sources":["../../src/fakes/fake-git-ops.ts"],"names":[],"mappings":"AAEA,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAElD;;;GAGG;AACH,gBAAgB;AAChB,qBAAa,UAAU;IAOV,OAAO,CAAC,QAAQ,CAAC,SAAS;IANtC,gBAAgB;IAChB,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAM;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6B;IACnD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuE;IAEjG,gBAAgB;gBACa,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC;IAEjE,OAAO,CAAC,GAAG;IAIX,gBAAgB;IACV,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlF,gBAAgB;IACV,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIzE,gBAAgB;IACV,KAAK,CAAC,WAAW,E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AAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIzE,gBAAgB;IACV,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBlE,gBAAgB;IACV,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS9D,gBAAgB;IACV,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ3F,gBAAgB;IACV,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKzE,gBAAgB;IACV,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWlD,gBAAgB;IAChB,iBAAiB,2BAAyB;IAE1C,gBAAgB;IACV,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAsBvE"}
|
package/dist/fakes/index.js
CHANGED
|
@@ -79,7 +79,9 @@ var FakeGitOps = class {
|
|
|
79
79
|
return Buffer.from(`${repoDir}:${st.currentBranch}`).toString("hex").slice(0, 40).padEnd(40, "0");
|
|
80
80
|
}
|
|
81
81
|
/** @internal */
|
|
82
|
-
async
|
|
82
|
+
prepareSubmodules = async () => void 0;
|
|
83
|
+
/** @internal */
|
|
84
|
+
async listFiles(repoDir, patterns) {
|
|
83
85
|
const normRoot = path.normalize(repoDir);
|
|
84
86
|
const prefix = normRoot + path.sep;
|
|
85
87
|
const out = [];
|
|
@@ -92,15 +94,8 @@ var FakeGitOps = class {
|
|
|
92
94
|
continue;
|
|
93
95
|
}
|
|
94
96
|
const relPosix = rel.split(path.sep).join("/");
|
|
95
|
-
if (
|
|
96
|
-
|
|
97
|
-
out.push(relPosix);
|
|
98
|
-
}
|
|
99
|
-
} else if (pattern === "**/.cursor/skills/**/SKILL.md") {
|
|
100
|
-
if (/^\.cursor\/skills\/[^/]+\/SKILL\.md$/.test(relPosix)) {
|
|
101
|
-
out.push(relPosix);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
97
|
+
if (patterns.includes("**/AGENTS.md") && path.posix.basename(relPosix) === "AGENTS.md" || patterns.includes("**/.cursor/skills/**/SKILL.md") && /^\.cursor\/skills\/[^/]+\/SKILL\.md$/.test(relPosix))
|
|
98
|
+
out.push(relPosix);
|
|
104
99
|
}
|
|
105
100
|
return out.sort((a, b) => a.localeCompare(b));
|
|
106
101
|
}
|
package/dist/fakes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/fakes/fake-git-ops.ts"],"sourcesContent":["import path from \"node:path\";\n\n/** @internal */\nexport type RepoTemplate = Record<string, string>;\n\n/**\n * Structurally compatible with RunRootGitOps — call sites annotate\n * `const git: RunRootGitOps = new FakeGitOps(...)` so TS catches drift.\n */\n/** @internal */\nexport class FakeGitOps {\n\t/** @internal */\n\treadonly operations: string[] = [];\n\tprivate readonly files = new Map<string, string>();\n\tprivate readonly repoState = new Map<string, { currentBranch: string; branches: Set<string> }>();\n\n\t/** @internal */\n\tconstructor(private readonly templates: Map<string, RepoTemplate>) {}\n\n\tprivate abs(repoDir: string, filePath: string): string {\n\t\treturn path.normalize(path.join(repoDir, filePath));\n\t}\n\n\t/** @internal */\n\tasync writeFile(repoDir: string, filePath: string, content: string): Promise<void> {\n\t\tthis.operations.push(`writeFile:${filePath}`);\n\t\tthis.files.set(this.abs(repoDir, filePath), content);\n\t}\n\n\t/** @internal */\n\tasync readFile(repoDir: string, filePath: string): Promise<string | null> {\n\t\treturn this.files.get(this.abs(repoDir, filePath)) ?? null;\n\t}\n\n\t/** @internal */\n\tasync clone(repoLocator: string, targetDir: string): Promise<void> {\n\t\tthis.operations.push(`clone:${path.basename(targetDir)}`);\n\t\tconst n = path.normalize(targetDir);\n\t\tconst prefix = n + path.sep;\n\t\tfor (const k of [...this.files.keys()]) {\n\t\t\tif (k === n || k.startsWith(prefix)) {\n\t\t\t\tthis.files.delete(k);\n\t\t\t}\n\t\t}\n\t\tconst tmpl = this.templates.get(repoLocator);\n\t\tif (!tmpl) {\n\t\t\tthrow new Error(`unknown repo ${repoLocator}`);\n\t\t}\n\t\tfor (const [rel, content] of Object.entries(tmpl)) {\n\t\t\tthis.files.set(path.join(targetDir, rel), content);\n\t\t}\n\t\tthis.repoState.set(n, {\n\t\t\tcurrentBranch: \"main\",\n\t\t\tbranches: new Set([\"main\"]),\n\t\t});\n\t}\n\n\t/** @internal */\n\tasync checkout(repoDir: string, branch: string): Promise<void> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\tif (!st) {\n\t\t\tthrow new Error(\"not a repo\");\n\t\t}\n\t\tst.branches.add(branch);\n\t\tst.currentBranch = branch;\n\t}\n\n\t/** @internal */\n\tasync createBranch(repoDir: string, branchName: string, _startPoint: string): Promise<void> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\tif (!st) {\n\t\t\tthrow new Error(\"not a repo\");\n\t\t}\n\t\tst.branches.add(branchName);\n\t}\n\n\t/** @internal */\n\tasync branchExists(repoDir: string, branchName: string): Promise<boolean> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\treturn st?.branches.has(branchName) ?? false;\n\t}\n\n\t/** @internal */\n\tasync getHeadSha(repoDir: string): Promise<string> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\tif (!st) {\n\t\t\tthrow new Error(\"not a repo\");\n\t\t}\n\t\treturn Buffer.from(`${repoDir}:${st.currentBranch}`)\n\t\t\t.toString(\"hex\")\n\t\t\t.slice(0, 40)\n\t\t\t.padEnd(40, \"0\");\n\t}\n\n\t/** @internal */\n\tasync listFiles(repoDir: string,
|
|
1
|
+
{"version":3,"sources":["../../src/fakes/fake-git-ops.ts"],"sourcesContent":["import path from \"node:path\";\n\n/** @internal */\nexport type RepoTemplate = Record<string, string>;\n\n/**\n * Structurally compatible with RunRootGitOps — call sites annotate\n * `const git: RunRootGitOps = new FakeGitOps(...)` so TS catches drift.\n */\n/** @internal */\nexport class FakeGitOps {\n\t/** @internal */\n\treadonly operations: string[] = [];\n\tprivate readonly files = new Map<string, string>();\n\tprivate readonly repoState = new Map<string, { currentBranch: string; branches: Set<string> }>();\n\n\t/** @internal */\n\tconstructor(private readonly templates: Map<string, RepoTemplate>) {}\n\n\tprivate abs(repoDir: string, filePath: string): string {\n\t\treturn path.normalize(path.join(repoDir, filePath));\n\t}\n\n\t/** @internal */\n\tasync writeFile(repoDir: string, filePath: string, content: string): Promise<void> {\n\t\tthis.operations.push(`writeFile:${filePath}`);\n\t\tthis.files.set(this.abs(repoDir, filePath), content);\n\t}\n\n\t/** @internal */\n\tasync readFile(repoDir: string, filePath: string): Promise<string | null> {\n\t\treturn this.files.get(this.abs(repoDir, filePath)) ?? null;\n\t}\n\n\t/** @internal */\n\tasync clone(repoLocator: string, targetDir: string): Promise<void> {\n\t\tthis.operations.push(`clone:${path.basename(targetDir)}`);\n\t\tconst n = path.normalize(targetDir);\n\t\tconst prefix = n + path.sep;\n\t\tfor (const k of [...this.files.keys()]) {\n\t\t\tif (k === n || k.startsWith(prefix)) {\n\t\t\t\tthis.files.delete(k);\n\t\t\t}\n\t\t}\n\t\tconst tmpl = this.templates.get(repoLocator);\n\t\tif (!tmpl) {\n\t\t\tthrow new Error(`unknown repo ${repoLocator}`);\n\t\t}\n\t\tfor (const [rel, content] of Object.entries(tmpl)) {\n\t\t\tthis.files.set(path.join(targetDir, rel), content);\n\t\t}\n\t\tthis.repoState.set(n, {\n\t\t\tcurrentBranch: \"main\",\n\t\t\tbranches: new Set([\"main\"]),\n\t\t});\n\t}\n\n\t/** @internal */\n\tasync checkout(repoDir: string, branch: string): Promise<void> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\tif (!st) {\n\t\t\tthrow new Error(\"not a repo\");\n\t\t}\n\t\tst.branches.add(branch);\n\t\tst.currentBranch = branch;\n\t}\n\n\t/** @internal */\n\tasync createBranch(repoDir: string, branchName: string, _startPoint: string): Promise<void> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\tif (!st) {\n\t\t\tthrow new Error(\"not a repo\");\n\t\t}\n\t\tst.branches.add(branchName);\n\t}\n\n\t/** @internal */\n\tasync branchExists(repoDir: string, branchName: string): Promise<boolean> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\treturn st?.branches.has(branchName) ?? false;\n\t}\n\n\t/** @internal */\n\tasync getHeadSha(repoDir: string): Promise<string> {\n\t\tconst st = this.repoState.get(path.normalize(repoDir));\n\t\tif (!st) {\n\t\t\tthrow new Error(\"not a repo\");\n\t\t}\n\t\treturn Buffer.from(`${repoDir}:${st.currentBranch}`)\n\t\t\t.toString(\"hex\")\n\t\t\t.slice(0, 40)\n\t\t\t.padEnd(40, \"0\");\n\t}\n\n\t/** @internal */\n\tprepareSubmodules = async () => undefined;\n\n\t/** @internal */\n\tasync listFiles(repoDir: string, patterns: string[]): Promise<string[]> {\n\t\tconst normRoot = path.normalize(repoDir);\n\t\tconst prefix = normRoot + path.sep;\n\t\tconst out: string[] = [];\n\t\tfor (const k of this.files.keys()) {\n\t\t\tif (k !== normRoot && !k.startsWith(prefix)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst rel = k === normRoot ? \"\" : k.slice(prefix.length);\n\t\t\tif (!rel) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst relPosix = rel.split(path.sep).join(\"/\");\n\t\t\tif (\n\t\t\t\t(patterns.includes(\"**/AGENTS.md\") && path.posix.basename(relPosix) === \"AGENTS.md\") ||\n\t\t\t\t(patterns.includes(\"**/.cursor/skills/**/SKILL.md\") &&\n\t\t\t\t\t/^\\.cursor\\/skills\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,UAAU,OAAO;AACvC,UAAM,SAAS,WAAW,KAAK;AAC/B,UAAM,MAAgB,CAAC;AACvB,eAAW,KAAK,KAAK,MAAM,KAAK,GAAG;AAClC,UAAI,MAAM,YAAY,CAAC,EAAE,WAAW,MAAM,GAAG;AAC5C;AAAA,MACD;AACA,YAAM,MAAM,MAAM,WAAW,KAAK,EAAE,MAAM,OAAO,MAAM;AACvD,UAAI,CAAC,KAAK;AACT;AAAA,MACD;AACA,YAAM,WAAW,IAAI,MAAM,KAAK,GAAG,EAAE,KAAK,GAAG;AAC7C,UACE,SAAS,SAAS,cAAc,KAAK,KAAK,MAAM,SAAS,QAAQ,MAAM,eACvE,SAAS,SAAS,+BAA+B,KACjD,uCAAuC,KAAK,QAAQ;AAErD,YAAI,KAAK,QAAQ;AAAA,IACnB;AACA,WAAO,IAAI,KAAK,CAAC,GAAG,MAAM,EAAE,cAAc,CAAC,CAAC;AAAA,EAC7C;AACD;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitwerk-dev/test-support",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.13",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/leitwerk-dev/leitwerk.git",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@earendil-works/pi-coding-agent": "^1.7.0",
|
|
52
|
-
"@leitwerk-dev/domain": "0.5.
|
|
53
|
-
"@leitwerk-dev/extension-runtime": "0.5.
|
|
54
|
-
"@leitwerk-dev/process-sdk": "0.5.
|
|
55
|
-
"@leitwerk-dev/protocol": "0.5.
|
|
56
|
-
"@leitwerk-dev/server": "0.5.
|
|
57
|
-
"@leitwerk-dev/worker": "0.5.
|
|
58
|
-
"@leitwerk-dev/worker-protocol": "0.5.
|
|
59
|
-
"@leitwerk-dev/external-writes": "0.5.
|
|
52
|
+
"@leitwerk-dev/domain": "0.5.13",
|
|
53
|
+
"@leitwerk-dev/extension-runtime": "0.5.13",
|
|
54
|
+
"@leitwerk-dev/process-sdk": "0.5.13",
|
|
55
|
+
"@leitwerk-dev/protocol": "0.5.13",
|
|
56
|
+
"@leitwerk-dev/server": "0.5.13",
|
|
57
|
+
"@leitwerk-dev/worker": "0.5.13",
|
|
58
|
+
"@leitwerk-dev/worker-protocol": "0.5.13",
|
|
59
|
+
"@leitwerk-dev/external-writes": "0.5.13"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"tsup": "^8.5.1"
|
|
@@ -93,7 +93,10 @@ export class FakeGitOps {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/** @internal */
|
|
96
|
-
async
|
|
96
|
+
prepareSubmodules = async () => undefined;
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
async listFiles(repoDir: string, patterns: string[]): Promise<string[]> {
|
|
97
100
|
const normRoot = path.normalize(repoDir);
|
|
98
101
|
const prefix = normRoot + path.sep;
|
|
99
102
|
const out: string[] = [];
|
|
@@ -106,15 +109,12 @@ export class FakeGitOps {
|
|
|
106
109
|
continue;
|
|
107
110
|
}
|
|
108
111
|
const relPosix = rel.split(path.sep).join("/");
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
out.push(relPosix);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
112
|
+
if (
|
|
113
|
+
(patterns.includes("**/AGENTS.md") && path.posix.basename(relPosix) === "AGENTS.md") ||
|
|
114
|
+
(patterns.includes("**/.cursor/skills/**/SKILL.md") &&
|
|
115
|
+
/^\.cursor\/skills\/[^/]+\/SKILL\.md$/.test(relPosix))
|
|
116
|
+
)
|
|
117
|
+
out.push(relPosix);
|
|
118
118
|
}
|
|
119
119
|
return out.sort((a, b) => a.localeCompare(b));
|
|
120
120
|
}
|