Skip to content

Commit 67e4e70

Browse files
authored
Mariano/integrations architecture (#1880)
* feat: working version of integrations framework * feat: make integrations more robust * feat(google-workspace): add integration manifest and checks for Google Workspace * feat(integration-platform): add custom settings to OAuth app and platform credential models * feat(integration-platform): add Google Workspace sync functionality and update integration manifest * feat(integration-platform): add scheduled task for syncing employees from integrations * feat(integration-platform): add AWS SDK clients and update integration manifest * refactor(integration-platform): integrate AWS Security Hub and update cloud tests * feat(integration-platform): add Rippling integration for employee sync and update manifest * feat(integration-platform): implement employee sync provider management and update related APIs * feat(integration-platform): add employee access review check for Google Workspace * feat(gcp): add GCP integration with IAM access and monitoring checks * feat(gcp): add GCP integration with IAM access and monitoring checks * feat: working version of integrations framework * feat: make integrations more robust * feat(google-workspace): add integration manifest and checks for Google Workspace * feat(integration-platform): add custom settings to OAuth app and platform credential models * feat(integration-platform): add Google Workspace sync functionality and update integration manifest * feat(integration-platform): add scheduled task for syncing employees from integrations * feat(integration-platform): add AWS SDK clients and update integration manifest * refactor(integration-platform): integrate AWS Security Hub and update cloud tests * feat(integration-platform): add Rippling integration for employee sync and update manifest * feat(integration-platform): implement employee sync provider management and update related APIs * feat(integration-platform): add employee access review check for Google Workspace * chore: remove deprecated vector tasks and update openapi.json * feat(integration-platform): add Azure integration with credential management and checks * feat(integrations): unify integrations list and add task card component * feat(integration-platform): add auto-check runner service and related tasks * feat(integration-platform): implement GCP OAuth integration with credential management and checks * feat(integrations): add combobox support for credential fields and update AWS region type * refactor(db): fix integrations order * feat(integration-platform): add validation for API key and basic auth credentials in checks * refactor(api): add throttling and security headers with helmet integration * chore(cloud-security): add cloud security module with scanning capabilities * chore(dependencies): update next and react versions to 16.0.8 and 19.2.1 * refactor(proxy): add proxy function with request matcher configuration * chore(dependencies): update react and next versions to 19.1.1 and 16.0.8 * refactor(people): allow selectedProvider to be undefined and simplify date handling * chore(dependencies): update @ai-sdk/openai and ai package versions * refactor(onboarding): remove redundant mode parameter from generateObject calls * refactor(api): update content security policy for improved security * chore(api): build integration-platform package and update docker build process
1 parent d5f943b commit 67e4e70

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

apps/api/buildspec.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ phases:
3535
- echo "Installing API dependencies only..."
3636
- bun install --filter=@comp/api --frozen-lockfile || bun install --filter=@comp/api --ignore-scripts || bun install --ignore-scripts
3737

38+
# Build workspace packages first
39+
- echo "Building integration-platform package..."
40+
- cd packages/integration-platform
41+
- bun run build
42+
- cd ../..
43+
3844
- echo "Building NestJS application..."
3945
- echo "APP_NAME is set to $APP_NAME"
4046
- echo "Current directory $(pwd)"
@@ -60,12 +66,18 @@ phases:
6066
- mkdir -p ../docker-build/node_modules/@trycompai
6167
- mkdir -p ../docker-build/node_modules/@trycompai/utils
6268
- mkdir -p ../docker-build/node_modules/@trycompai/db
69+
- mkdir -p ../docker-build/node_modules/@comp
70+
- mkdir -p ../docker-build/node_modules/@comp/integration-platform
71+
6372
- cp -r ../../packages/utils/src ../docker-build/node_modules/@trycompai/utils/
6473
- cp ../../packages/utils/package.json ../docker-build/node_modules/@trycompai/utils/
6574

6675
- cp -r ../../packages/db/dist ../docker-build/node_modules/@trycompai/db/
6776
- cp ../../packages/db/package.json ../docker-build/node_modules/@trycompai/db/
6877

78+
- cp -r ../../packages/integration-platform/dist ../docker-build/node_modules/@comp/integration-platform/
79+
- cp ../../packages/integration-platform/package.json ../docker-build/node_modules/@comp/integration-platform/
80+
6981
- cp -r ../../node_modules/@prisma ../docker-build/node_modules/@prisma
7082
- cp -r ../../node_modules/.prisma ../docker-build/node_modules/.prisma
7183

apps/api/src/questionnaire/utils/content-extractor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ async function parseChunkWithGroq(
288288
const { object } = await generateObject({
289289
model: groq('openai/gpt-oss-120b'),
290290
schema: questionExtractionSchema,
291-
mode: 'json',
292291
prompt: QUESTION_PROMPT + content,
293292
});
294293

@@ -378,7 +377,6 @@ async function parseQuestionsWithClaude(
378377
const { object } = await generateObject({
379378
model: anthropic('claude-3-5-sonnet-latest'),
380379
schema: questionExtractionSchema,
381-
mode: 'json',
382380
prompt: QUESTION_PROMPT + content.substring(0, 80000),
383381
});
384382

0 commit comments

Comments
 (0)