Skip to content

Commit 347ce74

Browse files
authored
Merge branch 'main' into mg/OPS-3123
2 parents 83146e3 + 75b0bce commit 347ce74

5 files changed

Lines changed: 30 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ jobs:
2525
- name: Install dependencies
2626
if: steps.node-modules-cache.outputs.cache-hit != 'true'
2727
run: npm ci --no-audit --no-fund
28+
audit:
29+
name: Security Audit
30+
needs: install
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v5.0.1
34+
- name: Restore node_modules cache
35+
id: node-modules-cache
36+
uses: actions/cache/restore@v4.3.0
37+
with:
38+
path: node_modules
39+
key: node-modules-cache-${{ hashFiles('package-lock.json', '.npmrc') }}
40+
fail-on-cache-miss: true
41+
- name: Run npm audit
42+
run: npm audit --audit-level=critical
2843
lint:
2944
name: Lint
3045
needs: install

THIRD_PARTY_LICENSES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11834,7 +11834,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1183411834

1183511835
The following npm package may be included in this product:
1183611836

11837-
- form-data@4.0.0
11837+
- form-data@4.0.5
1183811838

1183911839
This package contains the following license:
1184011840

package-lock.json

Lines changed: 7 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"fastify-raw-body": "5.0.0",
189189
"fastify-socket.io": "5.1.0",
190190
"firebase-scrypt": "2.2.0",
191-
"form-data": "4.0.0",
191+
"form-data": "4.0.5",
192192
"fs-extra": "11.2.0",
193193
"fuse.js": "7.0.0",
194194
"http-status-codes": "2.2.0",

packages/server/api/src/app/ai/chat/ai-mcp-chat.controller.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,12 @@ export const aiMCPChatController: FastifyPluginAsyncTypebox = async (app) => {
228228
// Flush traces to Langfuse (critical for Fastify)
229229
const spanProcessor = getLangfuseSpanProcessor();
230230
if (spanProcessor) {
231-
await spanProcessor.forceFlush();
232-
logger.debug('Flushed Langfuse traces');
231+
try {
232+
await spanProcessor.forceFlush();
233+
logger.debug('Flushed Langfuse traces');
234+
} catch (error) {
235+
logger.error('Failed to flush Langfuse traces', { error });
236+
}
233237
}
234238
}
235239
});

0 commit comments

Comments
 (0)