Skip to content

fix: add allow builds#1548

Merged
yanglbme merged 6 commits into
mainfrom
chore/deps
May 17, 2026
Merged

fix: add allow builds#1548
yanglbme merged 6 commits into
mainfrom
chore/deps

Conversation

@yanglbme
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 17, 2026 12:54
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 17, 2026

🚀 Surge Preview has been successfully deployed!

Preview URL: https://doocs-md-preview-pr-1548.surge.sh

Built with commit 773a10f

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repo’s pnpm workspace configuration to allow specific dependency build scripts, bumps/paches @codemirror/view to 6.43.0, and regenerates the pnpm lockfile accordingly. It also adds AI-agent guidance docs/config and a small ESLint ignore + import ordering tweak.

Changes:

  • Add allowBuilds to pnpm-workspace.yaml and update patchedDependencies to @codemirror/view@6.43.0.
  • Update root dependency on @codemirror/view and regenerate pnpm-lock.yaml.
  • Add AI agent documentation/config (CLAUDE.md, AGENTS.md, .claude/settings.local.json) and minor lint/import adjustments.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Adds allowBuilds; updates patched dependency to @codemirror/view@6.43.0; removes CM overrides pins.
pnpm-lock.yaml Lockfile regeneration reflecting new patch + dependency graph changes (includes some notable downgrades).
patches/@codemirror__view@6.43.0.patch New patch for CM view 6.43.0 (MeasureRequest export + macOS Alt/Shift handling).
package.json Updates @codemirror/view version range.
eslint.config.mjs Ignores an additional example assets directory.
CLAUDE.md Adds repository guidance for Claude Code (architecture, commands, dependency notes).
AGENTS.md Adds brief AI-agent quickstart pointing to CLAUDE.md.
apps/web/src/components/editor/Footer.vue Reorders icon imports.
.claude/settings.local.json Adds Claude local permissions config.
Comments suppressed due to low confidence (1)

patches/@codemirror__view@6.43.0.patch:25

  • The patched dist/index.js hunk drops the trailing && after the macOS Alt-key condition and leaves && inside a comment. That will make the generated if condition syntactically invalid (the next line starts with (baseName = …) without an operator), breaking builds when the patch is applied. Keep the && as part of the expression and put the explanatory comment on its own line (or at the end of the line) so the boolean chain remains intact.

Comment thread package.json Outdated
"dependencies": {
"@codemirror/state": "6.6.0",
"@codemirror/view": "6.42.1"
"@codemirror/view": "^6.43.0"
Comment thread pnpm-workspace.yaml
Comment on lines 51 to 53
patchedDependencies:
'@codemirror/view@6.42.1': patches/@codemirror__view@6.42.1.patch
'@codemirror/view@6.43.0': patches/@codemirror__view@6.43.0.patch
juice@11.1.1: patches/juice@11.1.1.patch
Comment thread .claude/settings.local.json Outdated
Comment on lines +3 to +9
"allow": [
"Bash(pnpm install *)",
"Bash(pnpm *)",
"Bash(git checkout *)",
"Bash(git restore *)",
"Bash(git stash *)"
]
Comment thread pnpm-lock.yaml Outdated
Comment on lines +5017 to +5023
ini@1.3.0:
resolution: {integrity: sha512-6tyfJkFAmQV64x9Li007PNZgNxqRywig4Rv8PDfzU9kgDBmURaIvjSL2wKyx45LPSIXsvDkFGbOMqMHC1PsORA==}
deprecated: Please update to ini >=1.3.6 to avoid a prototype pollution issue

ini@1.3.4:
resolution: {integrity: sha512-VUA7WAWNCWfm6/8f9kAb8Y6iGBWnmCfgFS5dTrv2C38LLm1KUmpY388mCVCJCsMKQomvOQ1oW8/edXdChd9ZXQ==}
deprecated: Please update to ini >=1.3.6 to avoid a prototype pollution issue
The lockfile was generated with pnpm v11 but CI workflows were pinned to v10,
causing surge and cloudflare preview builds to fail.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 17, 2026

🚀 Cloudflare Workers Preview has been successfully deployed!

Preview URL: https://md-pr-1548.doocs.workers.dev

Built with commit 5137b47

yanglbme and others added 3 commits May 17, 2026 21:05
- Pin @codemirror/view to exact 6.43.0 to match patchedDependencies
- Add @codemirror/view override in pnpm-workspace.yaml for reproducible installs
- Add ini >=1.3.8 override to block prototype pollution vulnerability
- Change trustPolicy from no-downgrade to audit to fix install failure
- Remove .claude/settings.local.json from git and add to .gitignore

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pnpm v11's no-downgrade trust policy blocks @webext-core/isolated-element@1.1.5
which lost its trusted publisher evidence, causing CI install failures.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Keep Docker build consistent with CI workflows and lockfile.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@yanglbme yanglbme merged commit c32fbd6 into main May 17, 2026
2 checks passed
@yanglbme yanglbme deleted the chore/deps branch May 17, 2026 13:19
@github-actions
Copy link
Copy Markdown

🗑️ Cloudflare Workers preview deployment has been cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants