feat(core): add embedded v2 session runtime and tool foundation (#30632)

This commit is contained in:
Kit Langton
2026-06-03 23:02:17 -04:00
committed by GitHub
parent c35267776a
commit 76ee87ead8
215 changed files with 31344 additions and 3278 deletions
@@ -354,13 +354,18 @@ describe("FSUtil", () => {
test("contains checks path containment", () => {
expect(FSUtil.contains("/a/b", "/a/b/c")).toBe(true)
expect(FSUtil.contains("/a/b", "/a/b")).toBe(true)
expect(FSUtil.contains("/a/b", "/a/c")).toBe(false)
expect(FSUtil.contains("/a/b", "/a/bad")).toBe(false)
if (process.platform === "win32") expect(FSUtil.contains("C:\\a", "D:\\b")).toBe(false)
})
test("overlaps detects overlapping paths", () => {
expect(FSUtil.overlaps("/a/b", "/a/b/c")).toBe(true)
expect(FSUtil.overlaps("/a/b/c", "/a/b")).toBe(true)
expect(FSUtil.overlaps("/a", "/b")).toBe(false)
expect(FSUtil.overlaps("/a/b", "/a/bad")).toBe(false)
if (process.platform === "win32") expect(FSUtil.overlaps("C:\\a", "D:\\b")).toBe(false)
})
})
})