diff --git a/.github/workflows/client-python.yml b/.github/workflows/client-python.yml index 3d53526..66a4cc9 100644 --- a/.github/workflows/client-python.yml +++ b/.github/workflows/client-python.yml @@ -7,6 +7,9 @@ on: paths: ["clients/python/**", ".github/workflows/client-python.yml"] permissions: contents: read +concurrency: + group: client-python-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: client-python: # setup-python has no 3.9 build for the Ubuntu 26.04 image behind ubuntu-latest (3.9 reached @@ -26,6 +29,8 @@ jobs: - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: ${{ matrix.python }} + cache: pip + cache-dependency-path: clients/python/pyproject.toml - run: python -m pip install -e '.[test]' mypy build - run: python -m pytest -q - if: matrix.python == '3.12' diff --git a/.github/workflows/clients-ts.yml b/.github/workflows/clients-ts.yml index 689d007..be7869b 100644 --- a/.github/workflows/clients-ts.yml +++ b/.github/workflows/clients-ts.yml @@ -7,6 +7,9 @@ on: paths: ["clients/typescript/**", "clients/mcp/**", ".github/workflows/clients-ts.yml"] permissions: contents: read +concurrency: + group: clients-ts-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: clients-ts: runs-on: ubuntu-latest @@ -15,6 +18,8 @@ jobs: - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 22 + cache: npm + cache-dependency-path: clients/*/package-lock.json - run: npm ci working-directory: clients/typescript - run: npm test diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml index ac439ea..7f9d9c2 100644 --- a/.github/workflows/docs-lint.yml +++ b/.github/workflows/docs-lint.yml @@ -7,6 +7,9 @@ on: - cron: "17 14 * * 1" permissions: contents: read +concurrency: + group: docs-lint-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: markdownlint: runs-on: ubuntu-latest diff --git a/.github/workflows/secret-scan.yml b/.github/workflows/secret-scan.yml index 2f5f004..5bf52a5 100644 --- a/.github/workflows/secret-scan.yml +++ b/.github/workflows/secret-scan.yml @@ -7,6 +7,9 @@ on: - cron: "23 13 * * *" permissions: contents: read +concurrency: + group: secret-scan-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: gitleaks: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f63357..e1a3d11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,9 @@ on: pull_request: permissions: contents: read +concurrency: + group: test-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: test: runs-on: ubuntu-latest diff --git a/clients/mcp/package-lock.json b/clients/mcp/package-lock.json index 7f45d74..8071801 100644 --- a/clients/mcp/package-lock.json +++ b/clients/mcp/package-lock.json @@ -62,10 +62,9 @@ } }, "node_modules/@hono/node-server": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.5.tgz", - "integrity": "sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==", - "license": "MIT", + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.11.tgz", + "integrity": "sha512-KzKz9vl4vvr1vgLHamj+g5uonbrj5NwAdO3yzOS6cd2HjALVeOgTgeZOyAzNxejbkfOOPIcvuf/Tg8l1pEFLog==", "engines": { "node": ">=20" }, @@ -2019,10 +2018,9 @@ } }, "node_modules/hono": { - "version": "4.13.13", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.13.tgz", - "integrity": "sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA==", - "license": "MIT", + "version": "4.13.23", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.23.tgz", + "integrity": "sha512-OS90dj7dcsftEEWCOef8jRbnHE5lbrOq0hNRqjSyPsOnaGZvvfof1KS05hQNb4kUOCfDq1mG3PmHoX37DMnHQg==", "engines": { "node": ">=16.9.0" } diff --git a/clients/mcp/package.json b/clients/mcp/package.json index 669888e..b2e0025 100644 --- a/clients/mcp/package.json +++ b/clients/mcp/package.json @@ -62,6 +62,10 @@ "sharp": "^0.35.5", "zod": "^4.6.7" }, + "overrides": { + "@hono/node-server": "^2.1.6", + "hono": "^4.13.18" + }, "devDependencies": { "@types/node": "^22.13.0", "typescript": "^7.0.2", diff --git a/package-lock.json b/package-lock.json index ac1fd2f..77b4e70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2209,13 +2209,12 @@ "license": "MIT" }, "node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.1.0.tgz", + "integrity": "sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">= 12" + "node": ">=22.12.0" } }, "node_modules/convert-source-map": { @@ -2672,17 +2671,16 @@ } }, "node_modules/katex": { - "version": "0.16.47", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", - "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", + "version": "0.18.10", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.18.10.tgz", + "integrity": "sha512-/B6p9eY9DX7aHBfpkHdpirDTZ5QH9xTwL9y837PWuzuv41O5jFdqNQwVQEQsimY0/iVNkwBY4+4hMfhQ7d4Dbw==", "dev": true, "funding": [ "https://opencollective.com/katex", "https://github.com/sponsors/katex" ], - "license": "MIT", "dependencies": { - "commander": "^8.3.0" + "commander": "^15.0.0" }, "bin": { "katex": "cli.js" diff --git a/package.json b/package.json index 9a0d4cb..0e944a3 100644 --- a/package.json +++ b/package.json @@ -28,5 +28,8 @@ "typescript": "^7.0.2", "vitest": "^4.1.0", "wrangler": "^4.0.0" + }, + "overrides": { + "katex": "^0.18.2" } } diff --git a/vitest.config.ts b/vitest.config.ts index 525fcc6..ab62f2c 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -18,7 +18,8 @@ export default defineConfig(async () => { // scripts/agent-skill.test.mjs is a Node test (npm run test:agent-skill): it reads files. exclude: [...configDefaults.exclude, "clients/**", "scripts/agent-skill.test.mjs"], setupFiles: ["./test/apply-migrations.ts"], - fileParallelism: false, + fileParallelism: true, + maxWorkers: 4, testTimeout: 30_000, hookTimeout: 30_000, },