chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:40:11 +08:00
commit 3b061d0e53
248 changed files with 40470 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
name: Bug Report
description: Report a bug
title: '[Bug] '
type: Bug
body:
- type: markdown
attributes:
value: |
Thanks for your interest in improving the project! Before submitting, please search for existing issues.
感谢参与我们的社区!请先搜索现有 Issue,避免重复提交。
- [Code of Conduct](https://github.com/alibaba/page-agent/blob/main/docs/CODE_OF_CONDUCT.md)
- [Contributing Guide](https://github.com/alibaba/page-agent/blob/main/CONTRIBUTING.md)
> 为了让更多人参与讨论,请尽量使用英文提交 Issue,感谢理解 🙏
- type: textarea
id: description
attributes:
label: What happened? / 问题描述
description: Describe what you expected vs what actually happened.
placeholder: 'A clear description of the bug.'
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: How to reproduce / 如何复现
description: Provide steps, URL, config or code snippet to reproduce the bug.
placeholder: '1. Open URL: https://...'
validations:
required: true
- type: input
id: version
attributes:
label: Version
placeholder: '0.0.0'
- type: input
id: browser
attributes:
label: Browser
placeholder: 'e.g. Chrome 130'
- type: checkboxes
id: checklist
attributes:
label: Before submitting
options:
- label: I will be polite and respectful. / 我会保持礼貌与尊重。
required: true
- label: I have read the Code of Conduct. / 我已阅读行为准则。
required: true
- label: I have searched existing issues and this is not a duplicate.
required: true
validations:
required: true
+8
View File
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Contributing Guide / 贡献指南
url: https://github.com/alibaba/page-agent/blob/main/CONTRIBUTING.md
about: How to contribute code and ideas. 如何进行贡献与提交代码。
- name: Code of Conduct / 行为准则
url: https://github.com/alibaba/page-agent/blob/main/docs/CODE_OF_CONDUCT.md
about: Community expectations and standards. 社区行为期望与标准。
@@ -0,0 +1,42 @@
name: Feature Request
description: Suggest a feature
title: '[Feature] '
type: Feature
body:
- type: markdown
attributes:
value: |
Thanks for your interest in improving the project! Before submitting, please search for existing issues.
感谢参与我们的社区!请先搜索现有 Issue,避免重复提交。
- [Code of Conduct](https://github.com/alibaba/page-agent/blob/main/docs/CODE_OF_CONDUCT.md)
- [Contributing Guide](https://github.com/alibaba/page-agent/blob/main/CONTRIBUTING.md)
> 为了让更多人参与讨论,请尽量使用英文提交 Issue,感谢理解 🙏
- type: textarea
id: description
attributes:
label: Feature Description / 功能描述
description: Describe the problem, solution, and any API changes.
placeholder: |
**Problem**:
**Solution**:
**Proposed API**:
```
validations:
required: true
- type: checkboxes
id: community
attributes:
label: Before submitting
options:
- label: I will be polite and respectful. / 我会保持礼貌与尊重。
required: true
- label: I have read the CODE_OF_CONDUCT.md and CONTRIBUTING.md. / 我已阅读行为准则。
required: true
- label: I have searched existing issues and this is not a duplicate.
required: true
validations:
required: true
+24
View File
@@ -0,0 +1,24 @@
## What
Brief description of changes.
Closes #(issue)
## Type
- [ ] Breaking change
- [ ] Bug fix
- [ ] Feature / Improvement
- [ ] Refactor / Chores
- [ ] Documentation / Website / Demo / Testing
## Testing
- [ ] `npm run ci` passes
- [ ] Tested in modern browsers
- [ ] Types/doc added
## Requirements / 要求
- [ ] I have read and follow the [Code of Conduct](../docs/CODE_OF_CONDUCT.md) and [Contributing Guide](../CONTRIBUTING.md) . / 我已阅读并遵守行为准则。
- [ ] This PR is NOT generated by a bot or AI agent acting autonomously. I have authored or meaningfully reviewed every change. / 此 PR 不是由 bot 或 AI 自主生成的,我已亲自编写或充分审查了每一处变更。
+39
View File
@@ -0,0 +1,39 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
labels:
- 'dependencies'
groups:
production-dependencies:
dependency-type: 'production'
update-types:
- 'minor'
- 'patch'
development-dependencies:
dependency-type: 'development'
update-types:
- 'minor'
- 'patch'
development-major:
dependency-type: 'development'
update-types:
- 'major'
# Production major updates are intentionally ungrouped for individual review.
# Security updates are also ungrouped — Dependabot prioritizes them automatically.
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
labels:
- 'dependencies'
groups:
github-actions:
patterns:
- '*'
+27
View File
@@ -0,0 +1,27 @@
name: CI
permissions:
contents: read
on:
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: CI checks
run: node scripts/ci.js
+40
View File
@@ -0,0 +1,40 @@
name: Deploy Website
on:
push:
branches: [main]
jobs:
deploy:
runs-on: page-agent-trusted
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build:website
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: './packages/website/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
+29
View File
@@ -0,0 +1,29 @@
# Runs only for code already on main, on the self-hosted runner.
# PR-triggered CI must stay on GitHub-hosted runners (see ci.yml).
name: Main CI
permissions:
contents: read
on:
push:
branches: [main]
jobs:
test:
runs-on: page-agent-trusted
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: CI checks
run: node scripts/ci.js
+45
View File
@@ -0,0 +1,45 @@
name: Release
on:
push:
tags:
- 'v*'
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
release:
# Only the repo owner may trigger a release, even if tag protection is bypassed
if: github.actor == 'gaomeng1900'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
# Stay on the latest npm 11 release
- name: Update npm
run: npm install -g npm@11
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:libs
- name: Publish all public packages
run: |
VERSION=${GITHUB_REF#refs/tags/v}
if [[ "$VERSION" == *"-"* ]]; then
# Prerelease version (e.g., 0.3.0-beta.1) -> extract tag name before the dot
TAG=$(echo "$VERSION" | sed 's/.*-\([a-zA-Z]*\).*/\1/')
npm publish --workspaces --access public --tag "$TAG"
else
npm publish --workspaces --access public
fi