Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
bit-pm
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
燕伟桐
bit-pm
Commits
7938b69e
Unverified
提交
7938b69e
authored
7月 31, 2025
作者:
Will Chen
提交者:
GitHub
7月 31, 2025
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Exclude .next & include .gitignore (#757)
上级
a6e0ea2f
全部展开
显示空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
415 行增加
和
26 行删除
+415
-26
astro.spec.ts_astro-1.txt
e2e-tests/snapshots/astro.spec.ts_astro-1.txt
+25
-1
chat_mode.spec.ts_chat-mode-selector---ask-mode-1.txt
...ots/chat_mode.spec.ts_chat-mode-selector---ask-mode-1.txt
+25
-1
chat_mode.spec.ts_chat-mode-selector---default-build-mode-1.txt
...ode.spec.ts_chat-mode-selector---default-build-mode-1.txt
+25
-1
context_window.spec.ts_context-window-1.txt
...sts/snapshots/context_window.spec.ts_context-window-1.txt
+25
-1
context_window.spec.ts_context-window-2.txt
...sts/snapshots/context_window.spec.ts_context-window-2.txt
+25
-1
context_window.spec.ts_context-window-3.txt
...sts/snapshots/context_window.spec.ts_context-window-3.txt
+25
-1
context_window.spec.ts_context-window-5.txt
...sts/snapshots/context_window.spec.ts_context-window-5.txt
+25
-1
dump_messages.spec.ts_dump-messages-1.txt
...tests/snapshots/dump_messages.spec.ts_dump-messages-1.txt
+25
-1
engine.spec.ts_regular-auto-should-send-message-to-engine-1.txt
....spec.ts_regular-auto-should-send-message-to-engine-1.txt
+1
-1
engine.spec.ts_send-message-to-engine---anthropic-claude-sonnet-4-1.txt
..._send-message-to-engine---anthropic-claude-sonnet-4-1.txt
+1
-1
engine.spec.ts_send-message-to-engine---openai-gpt-4-1-1.txt
...ine.spec.ts_send-message-to-engine---openai-gpt-4-1-1.txt
+1
-1
engine.spec.ts_send-message-to-engine-1.txt
...sts/snapshots/engine.spec.ts_send-message-to-engine-1.txt
+1
-1
engine.spec.ts_smart-auto-should-send-message-to-engine-1.txt
...ne.spec.ts_smart-auto-should-send-message-to-engine-1.txt
+1
-1
gateway.spec.ts_claude-4-sonnet-1.txt
e2e-tests/snapshots/gateway.spec.ts_claude-4-sonnet-1.txt
+0
-0
import.spec.ts_import-app-with-AI-rules-1.txt
...s/snapshots/import.spec.ts_import-app-with-AI-rules-1.txt
+25
-1
partial_response.spec.ts_partial-message-is-resumed-1.txt
...partial_response.spec.ts_partial-message-is-resumed-1.txt
+25
-1
problems.spec.ts_problems-auto-fix---complex-delete-rename-write-1.txt
....ts_problems-auto-fix---complex-delete-rename-write-1.txt
+25
-1
problems.spec.ts_problems-auto-fix---complex-delete-rename-write-2.txt
....ts_problems-auto-fix---complex-delete-rename-write-2.txt
+25
-1
problems.spec.ts_problems-auto-fix---enabled-1.txt
...pshots/problems.spec.ts_problems-auto-fix---enabled-1.txt
+25
-1
problems.spec.ts_problems-auto-fix---enabled-2.txt
...pshots/problems.spec.ts_problems-auto-fix---enabled-2.txt
+25
-1
problems.spec.ts_problems-auto-fix---gives-up-after-2-attempts-1.txt
...ec.ts_problems-auto-fix---gives-up-after-2-attempts-1.txt
+25
-1
problems.spec.ts_problems-auto-fix---gives-up-after-2-attempts-2.txt
...ec.ts_problems-auto-fix---gives-up-after-2-attempts-2.txt
+25
-1
thinking_budget.spec.ts_thinking-budget-2.txt
...s/snapshots/thinking_budget.spec.ts_thinking-budget-2.txt
+1
-1
thinking_budget.spec.ts_thinking-budget-4.txt
...s/snapshots/thinking_budget.spec.ts_thinking-budget-4.txt
+1
-1
thinking_budget.spec.ts_thinking-budget-6.txt
...s/snapshots/thinking_budget.spec.ts_thinking-budget-6.txt
+1
-1
codebase.ts
src/utils/codebase.ts
+7
-2
没有找到文件。
e2e-tests/snapshots/astro.spec.ts_astro-1.txt
浏览文件 @
7938b69e
...
...
@@ -332,7 +332,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="file1.txt">
...
...
e2e-tests/snapshots/chat_mode.spec.ts_chat-mode-selector---ask-mode-1.txt
浏览文件 @
7938b69e
...
...
@@ -149,7 +149,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="file1.txt">
...
...
e2e-tests/snapshots/chat_mode.spec.ts_chat-mode-selector---default-build-mode-1.txt
浏览文件 @
7938b69e
...
...
@@ -332,7 +332,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="file1.txt">
...
...
e2e-tests/snapshots/context_window.spec.ts_context-window-1.txt
浏览文件 @
7938b69e
...
...
@@ -334,7 +334,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/context_window.spec.ts_context-window-2.txt
浏览文件 @
7938b69e
...
...
@@ -334,7 +334,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/context_window.spec.ts_context-window-3.txt
浏览文件 @
7938b69e
...
...
@@ -334,7 +334,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/context_window.spec.ts_context-window-5.txt
浏览文件 @
7938b69e
...
...
@@ -334,7 +334,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/dump_messages.spec.ts_dump-messages-1.txt
浏览文件 @
7938b69e
...
...
@@ -334,7 +334,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/engine.spec.ts_regular-auto-should-send-message-to-engine-1.txt
浏览文件 @
7938b69e
...
...
@@ -23,7 +23,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
e2e-tests/snapshots/engine.spec.ts_send-message-to-engine---anthropic-claude-sonnet-4-1.txt
浏览文件 @
7938b69e
...
...
@@ -18,7 +18,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
e2e-tests/snapshots/engine.spec.ts_send-message-to-engine---openai-gpt-4-1-1.txt
浏览文件 @
7938b69e
...
...
@@ -18,7 +18,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
e2e-tests/snapshots/engine.spec.ts_send-message-to-engine-1.txt
浏览文件 @
7938b69e
...
...
@@ -23,7 +23,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
e2e-tests/snapshots/engine.spec.ts_smart-auto-should-send-message-to-engine-1.txt
浏览文件 @
7938b69e
...
...
@@ -23,7 +23,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
e2e-tests/snapshots/gateway.spec.ts_claude-4-sonnet-1.txt
浏览文件 @
7938b69e
差异被折叠。
点击展开。
e2e-tests/snapshots/import.spec.ts_import-app-with-AI-rules-1.txt
浏览文件 @
7938b69e
...
...
@@ -318,7 +318,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/partial_response.spec.ts_partial-message-is-resumed-1.txt
浏览文件 @
7938b69e
...
...
@@ -332,7 +332,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="file1.txt">
...
...
e2e-tests/snapshots/problems.spec.ts_problems-auto-fix---complex-delete-rename-write-1.txt
浏览文件 @
7938b69e
...
...
@@ -318,7 +318,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/problems.spec.ts_problems-auto-fix---complex-delete-rename-write-2.txt
浏览文件 @
7938b69e
...
...
@@ -318,7 +318,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/problems.spec.ts_problems-auto-fix---enabled-1.txt
浏览文件 @
7938b69e
...
...
@@ -318,7 +318,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/problems.spec.ts_problems-auto-fix---enabled-2.txt
浏览文件 @
7938b69e
...
...
@@ -318,7 +318,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/problems.spec.ts_problems-auto-fix---gives-up-after-2-attempts-1.txt
浏览文件 @
7938b69e
...
...
@@ -318,7 +318,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/problems.spec.ts_problems-auto-fix---gives-up-after-2-attempts-2.txt
浏览文件 @
7938b69e
...
...
@@ -318,7 +318,31 @@ You need to first add Supabase to your app and then we can add auth.
===
role: user
message: This is my codebase. <dyad-file path=".gitignore">
// File contents excluded from context
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
</dyad-file>
<dyad-file path="AI_RULES.md">
...
...
e2e-tests/snapshots/thinking_budget.spec.ts_thinking-budget-2.txt
浏览文件 @
7938b69e
...
...
@@ -31,7 +31,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
e2e-tests/snapshots/thinking_budget.spec.ts_thinking-budget-4.txt
浏览文件 @
7938b69e
...
...
@@ -39,7 +39,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
e2e-tests/snapshots/thinking_budget.spec.ts_thinking-budget-6.txt
浏览文件 @
7938b69e
...
...
@@ -47,7 +47,7 @@
"files": [
{
"path": ".gitignore",
"content": "
// File contents excluded from context
",
"content": "
# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n
",
"force": false
},
{
...
...
src/utils/codebase.ts
浏览文件 @
7938b69e
...
...
@@ -44,13 +44,18 @@ const ALLOWED_EXTENSIONS = [
];
// Directories to always exclude
const
EXCLUDED_DIRS
=
[
"node_modules"
,
".git"
,
"dist"
,
"build"
];
// Normally these files are excluded by the gitignore, but sometimes
// people don't have their gitignore setup correctly so we want to
// be conservative and never include these directories.
//
// ex: https://github.com/dyad-sh/dyad/issues/727
const
EXCLUDED_DIRS
=
[
"node_modules"
,
".git"
,
"dist"
,
"build"
,
".next"
];
// Files to always exclude
const
EXCLUDED_FILES
=
[
"pnpm-lock.yaml"
,
"package-lock.json"
];
// Files to always include, regardless of extension
const
ALWAYS_INCLUDE_FILES
=
[
"package.json"
];
const
ALWAYS_INCLUDE_FILES
=
[
"package.json"
,
".gitignore"
];
// File patterns to omit (contents will be replaced with a placeholder)
//
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论