Skip to content

Commit a13dcb7

Browse files
committed
Merge branch 'refactor'
2 parents c93f1db + 2603aa2 commit a13dcb7

Some content is hidden

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

76 files changed

+18706
-2357
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @sm-moshi

.github/CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Contributing to Perplexity MCP Zerver
2+
3+
Thank you for your interest in contributing! Please follow these guidelines:
4+
5+
## Branching
6+
7+
- Use `feature/*`, `release/*`, or `hotfix/*` branches for all work.
8+
- Never commit directly to `main` or `develop`.
9+
10+
## Commit Style
11+
12+
- Use [Conventional Commits](https://www.conventionalcommits.org/).
13+
- Example: `feat: add new tool handler`
14+
15+
## Pull Requests
16+
17+
- Ensure all tests and lints pass before opening a PR.
18+
- Link related issues in your PR description.
19+
- Request review from a code owner.
20+
21+
## Code Style
22+
23+
- Use pnpm for all scripts and dependency management.
24+
- Run `pnpm lint` and `pnpm format` before committing.
25+
- Write and update tests for all new features.
26+
27+
## Review Process
28+
29+
- At least one code owner must approve before merging.
30+
- Address all review comments and suggestions.
31+
32+
## Community
33+
34+
- Be respectful and constructive in all communications.
35+
- For questions, open an issue or ask in the project chat.

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: sm-moshi

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Bug Report
2+
description: File a bug report
3+
labels: [ bug ]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for reporting a bug!
9+
- type: input
10+
id: summary
11+
attributes:
12+
label: Bug Summary
13+
description: A short summary of the bug
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: steps
18+
attributes:
19+
label: Steps to Reproduce
20+
description: How can we reproduce the bug?
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: expected
25+
attributes:
26+
label: Expected Behavior
27+
description: What did you expect to happen?
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: actual
32+
attributes:
33+
label: Actual Behavior
34+
description: What actually happened?
35+
validations:
36+
required: true
37+
- type: input
38+
id: env
39+
attributes:
40+
label: Environment
41+
description: OS, Node.js version, pnpm version, etc.
42+
validations:
43+
required: false
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Feature Request
2+
description: Suggest a new feature or improvement
3+
labels: [ enhancement ]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for suggesting a feature!
9+
- type: input
10+
id: summary
11+
attributes:
12+
label: Feature Summary
13+
description: A short summary of the feature
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: motivation
18+
attributes:
19+
label: Motivation
20+
description: Why is this feature important?
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: proposal
25+
attributes:
26+
label: Proposal
27+
description: Describe the solution you'd like
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: alternatives
32+
attributes:
33+
label: Alternatives
34+
description: Any alternative solutions or features considered?
35+
validations:
36+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Pull Request
2+
3+
## Description
4+
<!-- Please include a summary of the change and which issue is fixed. -->
5+
6+
## Checklist
7+
8+
- [ ] All tests pass (`pnpm test`)
9+
- [ ] Lint passes (`pnpm lint`)
10+
- [ ] Code is formatted (`pnpm format`)
11+
- [ ] Relevant docs updated
12+
- [ ] PR targets `develop` or a feature branch
13+
14+
## Related Issues
15+
<!-- List related issues or discussions. -->

.github/SECURITY.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
- Only the latest release is supported for security updates.
6+
7+
## Reporting a Vulnerability
8+
9+
- Please report vulnerabilities by opening a GitHub Security Advisory or emailing the maintainer.
10+
- Do **not** disclose security issues publicly until a fix is released.
11+
12+
## Best Practices
13+
14+
- Keep dependencies up to date.
15+
- Run `pnpm audit` regularly.
16+
- Never commit secrets or sensitive data.

.github/dependabot.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
updates:
3+
# npm dependencies (including pnpm/yarn, if present)
4+
- package-ecosystem: "npm"
5+
directory: "/" # Location of package.json
6+
schedule:
7+
interval: "daily"
8+
open-pull-requests-limit: 5
9+
groups:
10+
dev-dependencies:
11+
dependency-type: "development"
12+
prod-dependencies:
13+
dependency-type: "production"
14+
labels:
15+
- "dependencies"
16+
- "actions"
17+
- "automated"
18+
allow:
19+
- dependency-type: "all"
20+
21+
# GitHub Actions dependencies
22+
- package-ecosystem: "github-actions"
23+
directory: "/" # Location of workflow files
24+
schedule:
25+
interval: "daily"
26+
open-pull-requests-limit: 5
27+
labels:
28+
- "actions"
29+
- "automated"

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build & Analyze
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
permissions:
11+
contents: read
12+
actions: read
13+
security-events: write
14+
15+
jobs:
16+
analyze:
17+
name: SonarQube Analysis
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 1
24+
25+
- name: Set up pnpm
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: 10
29+
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 22
34+
cache: 'pnpm'
35+
36+
- name: Install dependencies
37+
run: pnpm install
38+
39+
- name: Run tests with coverage
40+
run: pnpm test:coverage
41+
42+
- name: Upload coverage report
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: coverage-report
46+
path: coverage/
47+
48+
- name: SonarQube Scan
49+
uses: SonarSource/sonarqube-scan-action@2500896589ef8f7247069a56136f8dc177c27ccf
50+
env:
51+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
52+
SONAR_SCANNER_OPTS: -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info

0 commit comments

Comments
 (0)