Skip to content

Commit ed64b1c

Browse files
github-actions[bot]chasprowebdevdependabot[bot]Dhanus3133Marfuen
authored
[comp] Production Deploy (#1563)
* chore: upgrade db package version (#1558) * chore(deps): bump lucide-react from 0.534.0 to 0.544.0 (#1543) Bumps [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) from 0.534.0 to 0.544.0. - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/0.544.0/packages/lucide-react) --- updated-dependencies: - dependency-name: lucide-react dependency-version: 0.544.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(portal): display policies with PDF format (#1559) Co-authored-by: Mariano Fuentes <[email protected]> * feat(app): implement automated tasks (#1550) * feat(app): add automated tasks part 1 * feat(automation): implement task automation system with API integration and UI components * feat(app): improve UI for task page, including attachments and comments * feat(app): add exaSearch and firecrawl tools for web research * chore(deps): update @trycompai/db to version 1.3.6 and bump lucide-react to 0.544.0 * chore: fix parsing md * chore: update imports from @trycompai/ui to @comp/ui * chore(api): remove obsolete Lambda execution route --------- Co-authored-by: Mariano Fuentes <[email protected]> * chore(deps): update @AI-SDK packages and bump prisma binary targets (#1566) Co-authored-by: Mariano Fuentes <[email protected]> * chore: fix md file parsing and botid (#1567) * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks --------- Co-authored-by: Mariano Fuentes <[email protected]> * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle --------- Co-authored-by: Mariano Fuentes <[email protected]> * chore(app): re-enable .md imports as raw strings in webpack config * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(app): re-enable .md imports as raw strings in webpack config * chore(app): add Turbopack configuration for .md file imports --------- Co-authored-by: Mariano Fuentes <[email protected]> * chore(app): enable importing .md files as raw strings in webpack config * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(app): re-enable .md imports as raw strings in webpack config * chore(app): add Turbopack configuration for .md file imports * chore(app): enable importing .md files as raw strings in webpack config --------- Co-authored-by: Mariano Fuentes <[email protected]> * feat(secrets): fix secrets * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(app): re-enable .md imports as raw strings in webpack config * chore(app): add Turbopack configuration for .md file imports * chore(app): enable importing .md files as raw strings in webpack config * fix(secrets): implement form validation and submission for adding secrets --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/timeout (#1572) * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(app): re-enable .md imports as raw strings in webpack config * chore(app): add Turbopack configuration for .md file imports * chore(app): enable importing .md files as raw strings in webpack config * fix(secrets): implement form validation and submission for adding secrets * chore(app): add runtime configuration for long-running automation tasks --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/s3 (#1573) * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(app): re-enable .md imports as raw strings in webpack config * chore(app): add Turbopack configuration for .md file imports * chore(app): enable importing .md files as raw strings in webpack config * fix(secrets): implement form validation and submission for adding secrets * chore(app): add runtime configuration for long-running automation tasks * chore: replace S3Client instantiation with shared s3Client import --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/fix-test-automation (#1574) * chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(app): re-enable .md imports as raw strings in webpack config * chore(app): add Turbopack configuration for .md file imports * chore(app): enable importing .md files as raw strings in webpack config * fix(secrets): implement form validation and submission for adding secrets * chore(app): add runtime configuration for long-running automation tasks * chore: replace S3Client instantiation with shared s3Client import * chore: add runtime configuration for lambda functions and update S3Client usage --------- Co-authored-by: Mariano Fuentes <[email protected]> * chore(automation): update S3 client usage to shared s3Client import (#1575) Co-authored-by: Mariano Fuentes <[email protected]> * chore(s3): remove console logs and improve error handling for AWS S3 configuration (#1576) Co-authored-by: Mariano Fuentes <[email protected]> * chore(deps): update @trycompai/db package version to 1.3.7 (#1578) Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/small-ui-ux-fixes (#1579) * chore: standardize size of panels * chore: make sure latest processing message is auto expanded not only the first one * chore: make view mode switch smaller * chore: use gpt-5-mini and improve test ui * chore: add confetti animation to TestDialog on success --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/more (#1580) * chore: standardize size of panels * chore: make sure latest processing message is auto expanded not only the first one * chore: make view mode switch smaller * chore: use gpt-5-mini and improve test ui * chore: add confetti animation to TestDialog on success * chore(automation): enhance layout and improve chat message styling * chore(layout): add padding to layout components for improved spacing --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/more-2 (#1581) * chore: standardize size of panels * chore: make sure latest processing message is auto expanded not only the first one * chore: make view mode switch smaller * chore: use gpt-5-mini and improve test ui * chore: add confetti animation to TestDialog on success * chore(automation): enhance layout and improve chat message styling * chore(layout): add padding to layout components for improved spacing * chore: add logo --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/more-3 (#1583) * chore: edit empty state and add examples for task automation * chore: improve styles of the ai chat * chore: edit prompt to render UI after explaining its thoughts * chore: fix layout when file is present * chore(automation): enhance chat message handling and improve UI responsiveness * chore(automation): simplify message rendering logic in chat component --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/more-4 (#1584) * chore(tasks): remove console logs and add feature flag for automation * chore: return a nicer message at the end of the chat --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/more-5 (#1585) * chore(s3): update S3 bucket handling to use environment variable --------- Co-authored-by: Mariano Fuentes <[email protected]> * [dev] [Marfuen] mariano/more-6 (#1586) --------- Co-authored-by: Mariano Fuentes <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: chasprowebdev <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dhanus <[email protected]> Co-authored-by: Mariano Fuentes <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6737833 commit ed64b1c

File tree

230 files changed

+13365
-772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+13365
-772
lines changed

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@nestjs/core": "^11.0.1",
1212
"@nestjs/platform-express": "^11.1.5",
1313
"@nestjs/swagger": "^11.2.0",
14-
"@trycompai/db": "^1.3.4",
14+
"@trycompai/db": "^1.3.7",
1515
"archiver": "^7.0.1",
1616
"axios": "^1.12.2",
1717
"class-transformer": "^0.5.1",

apps/api/src/comments/comments.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class CommentsService {
115115
id: comment.author.user.id,
116116
name: comment.author.user.name,
117117
email: comment.author.user.email,
118+
image: comment.author.user.image,
118119
},
119120
attachments,
120121
createdAt: comment.createdAt,
@@ -209,6 +210,7 @@ export class CommentsService {
209210
id: member.user.id,
210211
name: member.user.name,
211212
email: member.user.email,
213+
image: member.user.image,
212214
},
213215
attachments: result.attachments,
214216
createdAt: result.comment.createdAt,
@@ -281,6 +283,7 @@ export class CommentsService {
281283
id: existingComment.author.user.id,
282284
name: existingComment.author.user.name,
283285
email: existingComment.author.user.email,
286+
image: existingComment.author.user.image,
284287
},
285288
attachments,
286289
createdAt: updatedComment.createdAt,

apps/api/src/comments/dto/comment-responses.dto.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ export class AuthorResponseDto {
8282
example: '[email protected]',
8383
})
8484
email: string;
85+
86+
@ApiProperty({
87+
description: 'User profile image URL',
88+
example: 'https://example.com/avatar.jpg',
89+
nullable: true,
90+
})
91+
image: string | null;
8592
}
8693

8794
export class CommentResponseDto {

apps/app/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ REVALIDATION_SECRET="" # openssl rand -base64 32
77
NEXT_PUBLIC_PORTAL_URL="http://localhost:3002" # The employee portal uses port 3002 by default
88

99
# Recommended
10-
# Store attachemnts in any S3 compatible bucket, we use AWS
10+
# Store attachments in any S3 compatible bucket, we use AWS
1111
APP_AWS_ACCESS_KEY_ID="" # AWS Access Key ID
1212
APP_AWS_SECRET_ACCESS_KEY="" # AWS Secret Access Key
1313
APP_AWS_REGION="" # AWS Region

apps/app/instrumentation-client.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { initBotId } from 'botid/client/core';
2+
3+
initBotId({
4+
protect: [
5+
{ path: '/api/chat', method: 'POST' },
6+
{ path: '/api/tasks-automations/chat', method: 'POST' },
7+
{ path: '/api/tasks-automations/errors', method: 'POST' },
8+
],
9+
});

apps/app/markdown.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module '*.md' {
2+
const content: string
3+
export default content
4+
}

apps/app/next.config.ts

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,46 @@
1+
import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin';
2+
import { withBotId } from 'botid/next/config';
13
import type { NextConfig } from 'next';
24
import path from 'path';
5+
36
import './src/env.mjs';
47

58
const isStandalone = process.env.NEXT_OUTPUT_STANDALONE === 'true';
69

710
const config: NextConfig = {
11+
// Ensure Turbopack can import .md files as raw strings during dev
12+
turbopack: {
13+
root: path.join(__dirname, '..', '..'),
14+
rules: {
15+
'*.md': {
16+
loaders: ['raw-loader'],
17+
as: '*.js',
18+
},
19+
},
20+
},
21+
webpack: (config, { isServer }) => {
22+
if (isServer) {
23+
// Very important, DO NOT REMOVE, it's needed for Prisma to work in the server bundle
24+
config.plugins = [...config.plugins, new PrismaPlugin()];
25+
}
26+
27+
// Enable importing .md files as raw strings during webpack builds
28+
config.module = config.module || { rules: [] };
29+
config.module.rules = config.module.rules || [];
30+
config.module.rules.push({
31+
test: /\.md$/,
32+
type: 'asset/source',
33+
});
34+
35+
return config;
36+
},
837
// Use S3 bucket for static assets with app-specific path
938
assetPrefix:
1039
process.env.NODE_ENV === 'production' && process.env.STATIC_ASSETS_URL
1140
? `${process.env.STATIC_ASSETS_URL}/app`
1241
: '',
1342
reactStrictMode: true,
14-
transpilePackages: ['@trycompai/db'],
43+
transpilePackages: ['@trycompai/db', '@prisma/client'],
1544
images: {
1645
remotePatterns: [
1746
{
@@ -67,4 +96,4 @@ const config: NextConfig = {
6796
},
6897
};
6998

70-
export default config;
99+
export default withBotId(config);

apps/app/package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@ai-sdk/provider": "^2.0.0",
99
"@ai-sdk/react": "^2.0.0",
1010
"@ai-sdk/rsc": "^1.0.0",
11+
"@aws-sdk/client-lambda": "^3.891.0",
1112
"@aws-sdk/client-s3": "^3.859.0",
1213
"@aws-sdk/client-sts": "^3.808.0",
1314
"@aws-sdk/s3-request-presigner": "^3.859.0",
@@ -25,6 +26,7 @@
2526
"@dub/embed-react": "^0.0.16",
2627
"@hookform/resolvers": "^5.1.1",
2728
"@mendable/firecrawl-js": "^1.24.0",
29+
"@monaco-editor/react": "^4.7.0",
2830
"@nangohq/frontend": "^0.53.2",
2931
"@next/third-parties": "^15.3.1",
3032
"@number-flow/react": "^0.5.9",
@@ -46,23 +48,26 @@
4648
"@tiptap/extension-table-row": "^3.4.4",
4749
"@trigger.dev/react-hooks": "4.0.0",
4850
"@trigger.dev/sdk": "4.0.0",
49-
"@trycompai/db": "^1.3.4",
51+
"@trycompai/db": "^1.3.7",
5052
"@trycompai/email": "workspace:*",
5153
"@types/canvas-confetti": "^1.9.0",
54+
"@types/react-syntax-highlighter": "^15.5.13",
5255
"@types/three": "^0.180.0",
5356
"@uploadthing/react": "^7.3.0",
5457
"@upstash/ratelimit": "^2.0.5",
58+
"@vercel/sandbox": "^0.0.21",
5559
"@vercel/sdk": "^1.7.1",
5660
"ai": "^5.0.0",
5761
"axios": "^1.9.0",
5862
"better-auth": "^1.2.8",
63+
"botid": "^1.5.5",
5964
"canvas-confetti": "^1.9.3",
6065
"d3": "^7.9.0",
6166
"dub": "^0.66.1",
6267
"framer-motion": "^12.18.1",
6368
"geist": "^1.3.1",
6469
"jspdf": "^3.0.2",
65-
"lucide-react": "^0.534.0",
70+
"lucide-react": "^0.544.0",
6671
"motion": "^12.9.2",
6772
"next": "^15.4.6",
6873
"next-safe-action": "^8.0.3",
@@ -79,9 +84,12 @@
7984
"react-hotkeys-hook": "^5.1.0",
8085
"react-intersection-observer": "^9.16.0",
8186
"react-markdown": "10.1.0",
87+
"react-spinners": "^0.17.0",
88+
"react-syntax-highlighter": "^15.6.6",
8289
"react-textarea-autosize": "^8.5.9",
8390
"react-use-draggable-scroll": "^0.4.7",
8491
"react-wrap-balancer": "^1.1.1",
92+
"rehype-raw": "^7.0.0",
8593
"remark-gfm": "^4.0.1",
8694
"remark-parse": "^11.0.0",
8795
"resend": "^4.4.1",
@@ -91,6 +99,7 @@
9199
"ts-pattern": "^5.7.0",
92100
"use-debounce": "^10.0.4",
93101
"use-long-press": "^3.3.0",
102+
"use-stick-to-bottom": "^1.1.1",
94103
"xml2js": "^0.6.2",
95104
"zaraz-ts": "^1.2.0",
96105
"zod": "^3.25.76",
@@ -116,6 +125,7 @@
116125
"jsdom": "^26.1.0",
117126
"postcss": "^8.5.4",
118127
"prisma": "^6.13.0",
128+
"raw-loader": "^4.0.2",
119129
"tailwindcss": "^4.1.8",
120130
"typescript": "^5.8.3",
121131
"vite-tsconfig-paths": "^5.1.4",

apps/app/public/automation-bg.svg

Lines changed: 32 additions & 0 deletions
Loading

apps/app/public/compailogo.jpg

10.6 KB
Loading

0 commit comments

Comments
 (0)