Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,227 changes: 741 additions & 1,486 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,29 @@
"dependencies": {
"@ignfab/gpf-schema-store": "^0.1.5",
"@rgrove/parse-xml": "^4.2.0",
"@turf/distance": "^7.3.4",
"@turf/helpers": "^7.3.4",
"@turf/distance": "^7.3.5",
"@turf/helpers": "^7.3.5",
"jsts": "^2.12.1",
"mcp-framework": "^0.2.22",
"node-fetch": "^3.3.2",
"winston": "^3.18.3",
"winston": "^3.19.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@langchain/anthropic": "^1.3.28",
"@langchain/core": "^1.1.42",
"@langchain/langgraph": "^1.2.9",
"@langchain/core": "^1.1.44",
"@langchain/langgraph": "^1.3.0",
"@langchain/mcp-adapters": "^1.1.3",
"@langchain/ollama": "^1.2.7",
"@modelcontextprotocol/inspector": "^0.21.2",
"@modelcontextprotocol/sdk": "^1.29.0",
"@types/geojson": "^7946.0.16",
"@types/node": "^24.10.1",
"@vitest/coverage-v8": "^3.2.4",
"@types/node": "^25.6.0",
"@vitest/coverage-v8": "^4.1.5",
"langchain": "^1.3.5",
"supertest": "^7.1.4",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
"supertest": "^7.2.2",
"typescript": "^6.0.3",
"vitest": "^4.1.5"
},
"engines": {
"node": ">=22.21.0 <23 || >=24.5.0"
Expand Down
2 changes: 1 addition & 1 deletion test/gpf/adminexpress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe("Test getAdminUnits", () => {
});

afterEach(() => {
vi.restoreAllMocks();
vi.clearAllMocks();
});

it("should return the expected administrative units for Mairie de Loray", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/gpf/parcellaire-express.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe("Test getParcellaireExpress", () => {
});

afterEach(() => {
vi.restoreAllMocks();
vi.clearAllMocks();
});

it("should return the expected cadastral objects for Mairie de Loray", async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/gpf/urbanisme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe("Test getUrbanisme", () => {
});

afterEach(() => {
vi.restoreAllMocks();
vi.clearAllMocks();
});

it("should return the expected urbanisme objects for Chamonix", async () => {
Expand Down Expand Up @@ -160,7 +160,7 @@ describe("Test getAssiettesServitudes", () => {
});

afterEach(() => {
vi.restoreAllMocks();
vi.clearAllMocks();
});

it("should return the expected assiettes for Loray", async () => {
Expand Down
7 changes: 3 additions & 4 deletions test/tools/wfs/getFeatureById.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("Test GpfWfsGetFeatureByIdTool", () => {
};

afterEach(() => {
vi.restoreAllMocks();
vi.clearAllMocks();
mockGetFeatureType.mockReset();
mockFetchJSONPost.mockReset();
});
Expand Down Expand Up @@ -124,14 +124,13 @@ describe("Test GpfWfsGetFeatureByIdTool", () => {

it("should return exactly one transformed feature for results", async () => {
const tool = new GpfWfsGetFeatureByIdTool();
const requests: Array<{ url: string; query: Record<string, string>; body: string }> = [];
const requests: Array<{ url: string; query: Record<string, string> }> = [];
mockGetFeatureType.mockResolvedValue(polygonFeatureType);
mockFetchJSONPost.mockImplementation(async (url, body) => {
mockFetchJSONPost.mockImplementation(async (url, _body) => {
const [baseUrl, queryString = ""] = url.split("?");
requests.push({
url: baseUrl,
query: Object.fromEntries(new URLSearchParams(queryString).entries()),
body,
});
return {
type: "FeatureCollection",
Expand Down
2 changes: 1 addition & 1 deletion test/tools/wfs/getFeatures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe("Test GpfWfsGetFeaturesTool", () => {
}

afterEach(() => {
vi.restoreAllMocks();
vi.clearAllMocks();
mockGetFeatureType.mockReset();
mockFetchJSONPost.mockReset();
});
Expand Down
8 changes: 2 additions & 6 deletions vitest.e2e.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ export default defineConfig({
testTimeout: 120 * MILLISECONDS,
// Run sequentially: each test starts its own MCP server
pool: "forks",
poolOptions: {
forks: {
singleFork: true,
execArgv: ['--use-env-proxy']
}
},
fileParallelism: false,
execArgv: ["--use-env-proxy"],
},
});
2 changes: 1 addition & 1 deletion vitest.integration.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export default defineConfig({
testTimeout: 60 * MILLISECONDS,
// Run sequentially to avoid overloading the GPF APIs
pool: "forks",
poolOptions: { forks: { singleFork: true } },
fileParallelism: false
},
});
Loading