-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Batch Approval for AI Tool Calls, fix "AI is thinking" message, chunk JS #2430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d02597f
89d97ef
c9f527c
46ee88b
f141131
a732267
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ make/ | |
| artifacts/ | ||
| mikework/ | ||
| .env | ||
| out | ||
|
|
||
| # Yarn Modern | ||
| .pnp.* | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -130,6 +130,21 @@ export default defineConfig({ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| input: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| index: "index.html", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| output: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| manualChunks(id) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const p = id.replace(/\\/g, "/"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (p.includes("node_modules/monaco") || p.includes("node_modules/@monaco")) return "monaco"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (p.includes("node_modules/mermaid") || p.includes("node_modules/@mermaid")) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return "mermaid"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (p.includes("node_modules/katex") || p.includes("node_modules/@katex")) return "katex"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (p.includes("node_modules/shiki") || p.includes("node_modules/@shiki")) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return "shiki"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (p.includes("node_modules/cytoscape") || p.includes("node_modules/@cytoscape")) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return "cytoscape"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return undefined; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+133
to
+147
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chunk matchers miss Monaco and scoped packages; normalize paths
Refine matching and normalize separators. Apply this diff to harden matching: - output: {
- manualChunks(id) {
- if (id.includes("node_modules/monaco") || id.includes("node_modules/@monaco")) return "monaco";
- if (id.includes("node_modules/mermaid") || id.includes("node_modules/@mermaid"))
- return "mermaid";
- if (id.includes("node_modules/katex") || id.includes("node_modules/@katex")) return "katex";
- if (id.includes("node_modules/shiki") || id.includes("node_modules/@shiki")) {
- return "shiki";
- }
- if (id.includes("node_modules/cytoscape") || id.includes("node_modules/@cytoscape"))
- return "cytoscape";
- return undefined;
- },
- },
+ output: {
+ manualChunks(id) {
+ const p = id.replace(/\\/g, "/");
+ if (p.includes("/node_modules/monaco-editor")) return "monaco";
+ if (p.includes("/node_modules/mermaid") || p.includes("/node_modules/@mermaid-js/"))
+ return "mermaid";
+ if (p.includes("/node_modules/katex") || p.includes("/node_modules/@katex/")) return "katex";
+ if (p.includes("/node_modules/shiki") || p.includes("/node_modules/@shikijs/")) return "shiki";
+ if (p.includes("/node_modules/cytoscape") || p.includes("/node_modules/@cytoscape/"))
+ return "cytoscape";
+ return undefined;
+ },
+ },📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| optimizeDeps: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
manualChunks path checks may miss packages and Windows paths
id.includes("node_modules/...").@shikijs(not@shiki),@monaco-editor(not@monaco),@mermaid-js(not@mermaid).Use normalized paths and correct scopes:
📝 Committable suggestion