Skip to content

Commit e0a0a55

Browse files
authored
feat: Fresh start on web (#375)
1 parent 9901c85 commit e0a0a55

File tree

210 files changed

+22583
-0
lines changed

Some content is hidden

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

210 files changed

+22583
-0
lines changed

apps/web-v2/.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.next
3+
.git
4+
.env

apps/web-v2/.env.example

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# LangSmith API key required for some admin tasks.
2+
LANGSMITH_API_KEY="lsv2_..."
3+
# Whether or not to always use LangSmith auth (API key). If true, you will
4+
# not get user scoped auth by default
5+
NEXT_PUBLIC_USE_LANGSMITH_AUTH="false"
6+
7+
# The deployments to make available in the UI
8+
NEXT_PUBLIC_DEPLOYMENTS="[]"
9+
10+
# The RAG API URL for the platform.
11+
NEXT_PUBLIC_RAG_API_URL="http://localhost:8080"
12+
13+
# The base URL to the MCP server. Do not include the `/mcp` at the end.
14+
NEXT_PUBLIC_MCP_SERVER_URL=""
15+
# Whether or not the MCP server requires authentication.
16+
# If true, all requests to the MCP server will go through a proxy
17+
# route first.
18+
NEXT_PUBLIC_MCP_AUTH_REQUIRED="true"
19+
20+
# Supabase Authentication
21+
NEXT_PUBLIC_SUPABASE_ANON_KEY=""
22+
NEXT_PUBLIC_SUPABASE_URL=""
23+
24+
# Disable showing Google Auth in the UI
25+
# Defaults to false.
26+
NEXT_PUBLIC_GOOGLE_AUTH_DISABLED="false"
27+
28+
# Controls react-scan
29+
NEXT_PUBLIC_DEBUG_MODE="false"
30+
31+
# JWT secret for auth
32+
SUPABASE_JWT_SECRET=""

apps/web-v2/.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
# LangGraph API
27+
.langgraph_api
28+
.env
29+
.next/
30+
next-env.d.ts

apps/web-v2/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Open Agent Platform Web App
2+
3+
This is the web app for the Open Agent Platform.

apps/web-v2/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

apps/web-v2/eslint.config.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
6+
7+
export default tseslint.config(
8+
{ ignores: ["dist"] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ["**/*.{ts,tsx}"],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
"react-hooks": reactHooks,
18+
"react-refresh": reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
"@typescript-eslint/no-explicit-any": 0,
23+
"@typescript-eslint/no-unused-vars": [
24+
"error",
25+
{
26+
args: "none",
27+
argsIgnorePattern: "^_",
28+
varsIgnorePattern: "^_",
29+
caughtErrorsIgnorePattern: "^_",
30+
},
31+
],
32+
"react-refresh/only-export-components": [
33+
"warn",
34+
{ allowConstantExport: true },
35+
],
36+
"no-console": ["error", { allow: ["warn", "error"] }],
37+
},
38+
},
39+
);

apps/web-v2/next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {};
3+
4+
export default nextConfig;

apps/web-v2/package.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"name": "@open-agent-platform/web-v2",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "next dev",
8+
"build": "turbo build:internal --filter=@open-agent-platform/web-v2",
9+
"build:internal": "next build",
10+
"start": "next start",
11+
"lint": "next lint",
12+
"lint:fix": "next lint --fix",
13+
"format": "prettier --write .",
14+
"format:check": "prettier --check .",
15+
"clean": "rm -rf .next .turbo || true"
16+
},
17+
"dependencies": {
18+
"@langchain/auth": "^0.0.0",
19+
"@langchain/core": "^0.3.44",
20+
"@langchain/langgraph-sdk": "^0.0.109",
21+
"@modelcontextprotocol/sdk": "^1.11.4",
22+
"@open-agent-platform/deep-agent-chat": "*",
23+
"@radix-ui/react-alert-dialog": "^1.1.11",
24+
"@radix-ui/react-avatar": "^1.1.4",
25+
"@radix-ui/react-checkbox": "^1.3.3",
26+
"@radix-ui/react-collapsible": "^1.1.4",
27+
"@radix-ui/react-dialog": "^1.1.7",
28+
"@radix-ui/react-dropdown-menu": "^2.1.7",
29+
"@radix-ui/react-hover-card": "1.1.2",
30+
"@radix-ui/react-icons": "^1.3.2",
31+
"@radix-ui/react-label": "^2.1.3",
32+
"@radix-ui/react-popover": "^1.1.7",
33+
"@radix-ui/react-progress": "1.1.0",
34+
"@radix-ui/react-scroll-area": "^1.2.5",
35+
"@radix-ui/react-select": "^2.2.2",
36+
"@radix-ui/react-separator": "^1.1.3",
37+
"@radix-ui/react-slider": "^1.3.2",
38+
"@radix-ui/react-slot": "^1.2.0",
39+
"@radix-ui/react-switch": "^1.2.2",
40+
"@radix-ui/react-tabs": "^1.1.7",
41+
"@radix-ui/react-toast": "1.1.0",
42+
"@radix-ui/react-tooltip": "^1.2.3",
43+
"@supabase/ssr": "^0.6.1",
44+
"@supabase/supabase-js": "^2.49.4",
45+
"@types/js-yaml": "^4.0.9",
46+
"@xyflow/react": "^12.8.4",
47+
"class-variance-authority": "^0.7.1",
48+
"clsx": "^2.1.1",
49+
"cmdk": "^1.1.1",
50+
"date-fns": "4.1.0",
51+
"diff": "^8.0.2",
52+
"framer-motion": "^12.7.3",
53+
"js-yaml": "^4.1.0",
54+
"jsonwebtoken": "^9.0.2",
55+
"katex": "latest",
56+
"langgraph-nextjs-api-passthrough": "^0.1.0",
57+
"lodash": "^4.17.21",
58+
"lucide-react": "^0.488.0",
59+
"next-themes": "^0.4.6",
60+
"nuqs": "^2.4.1",
61+
"react": "^19.0.0",
62+
"react-dom": "^19.0.0",
63+
"react-hook-form": "^7.56.3",
64+
"react-markdown": "^10.1.0",
65+
"react-resizable-panels": "^3.0.2",
66+
"react-syntax-highlighter": "^15.6.1",
67+
"rehype-katex": "^7.0.1",
68+
"rehype-raw": "7.0.0",
69+
"remark-gfm": "^4.0.1",
70+
"remark-math": "^6.0.0",
71+
"sonner": "^2.0.3",
72+
"tailwind-merge": "^3.0.2",
73+
"use-stick-to-bottom": "^1.1.0",
74+
"uuid": "^11.1.0",
75+
"zod": "3.23.8",
76+
"zustand": "^5.0.3"
77+
},
78+
"devDependencies": {
79+
"@eslint/js": "^9.19.0",
80+
"@tailwindcss/postcss": "^4.0.13",
81+
"@types/jsonwebtoken": "^9.0.10",
82+
"@types/lodash": "^4.17.16",
83+
"@types/node": "22.15.2",
84+
"@types/react": "^19.0.8",
85+
"@types/react-dom": "^19.1.2",
86+
"@types/react-syntax-highlighter": "^15.5.13",
87+
"@types/uuid": "10.0.0",
88+
"autoprefixer": "^10.4.20",
89+
"dotenv": "^16.5.0",
90+
"eslint": "^9.19.0",
91+
"eslint-config-next": "15.2.2",
92+
"eslint-plugin-react-hooks": "^5.0.0",
93+
"eslint-plugin-react-refresh": "^0.4.18",
94+
"globals": "^15.14.0",
95+
"next": "^15.3.1",
96+
"postcss": "^8.5.3",
97+
"prettier": "^3.5.2",
98+
"prettier-plugin-tailwindcss": "^0.6.11",
99+
"tailwindcss": "^4.0.13",
100+
"tailwindcss-animate": "^1.0.7",
101+
"turbo": "^2.5.0",
102+
"typescript": "~5.7.2",
103+
"typescript-eslint": "^8.22.0"
104+
},
105+
"overrides": {
106+
"react-is": "^19.0.0-rc-69d4b800-20241021"
107+
}
108+
}

apps/web-v2/postcss.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
plugins: {
3+
"@tailwindcss/postcss": {},
4+
},
5+
};

apps/web-v2/prettier.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* @see https://prettier.io/docs/configuration
3+
* @type {import("prettier").Config}
4+
*/
5+
const config = {
6+
endOfLine: "auto",
7+
singleAttributePerLine: true,
8+
plugins: ["prettier-plugin-tailwindcss"],
9+
};
10+
11+
export default config;

0 commit comments

Comments
 (0)