Skip to content

Commit d78f9ae

Browse files
chadd28gundermanc
andauthored
feat(caretaker): implement Cloud Run webhook ingestion service (google-gemini#28015)
Co-authored-by: Christian Gunderman <gundermanc@google.com>
1 parent e3893a2 commit d78f9ae

12 files changed

Lines changed: 994 additions & 3 deletions

File tree

eslint.config.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default tseslint.config(
5656
'eslint.config.js',
5757
'**/coverage/**',
5858
'packages/**/dist/**',
59+
'tools/**/dist/**',
5960
'bundle/**',
6061
'package/bundle/**',
6162
'.integration-tests/**',
@@ -80,8 +81,8 @@ export default tseslint.config(
8081
},
8182
},
8283
{
83-
// Rules for packages/*/src (TS/TSX)
84-
files: ['packages/*/src/**/*.{ts,tsx}'],
84+
// Rules for packages/*/src and tools/caretaker-agent (TS/TSX)
85+
files: ['packages/*/src/**/*.{ts,tsx}', 'tools/caretaker-agent/**/*.{ts,tsx}'],
8586
plugins: {
8687
import: importPlugin,
8788
},
@@ -284,7 +285,7 @@ export default tseslint.config(
284285
},
285286
},
286287
{
287-
files: ['packages/*/src/**/*.test.{ts,tsx}'],
288+
files: ['packages/*/src/**/*.test.{ts,tsx}', 'tools/**/*.test.ts'],
288289
plugins: {
289290
vitest,
290291
},
@@ -410,6 +411,13 @@ export default tseslint.config(
410411
'@typescript-eslint/no-require-imports': 'off',
411412
},
412413
},
414+
// Allow console logging for backend services (Cloud Logging)
415+
{
416+
files: ['tools/**/*.ts', 'tools/**/*.test.ts'],
417+
rules: {
418+
'no-console': 'off',
419+
},
420+
},
413421
// Prettier config must be last
414422
prettierConfig,
415423
// extra settings for scripts that we run directly with node
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
dist
3+
npm-debug.log
4+
.git
5+
.gitignore
6+
*.py
7+
*.pyc
8+
__pycache__
9+
requirements.txt
10+
project.toml
11+
**/*.test.ts
12+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:20-slim
2+
WORKDIR /app
3+
COPY package*.json ./
4+
RUN npm ci
5+
COPY . .
6+
RUN npm run build
7+
EXPOSE 8080
8+
CMD ["node", "dist/server.js"]
9+

0 commit comments

Comments
 (0)