Commit fd75bed
feat: Phase 0+1 — Infrastructure, GHAS, GitHub Flow + SDK features
* ci: add CodeQL scanning workflow and secret scanning setup script
- Create .github/workflows/codeql.yml (JS/TS analysis, weekly + PR triggers)
- Create scripts/setup-security.sh for enabling secret scanning + push protection
- Update SECURITY.md with secret scanning documentation
Closes #78
Closes #79
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: add branch protection script and release-please workflow
- Create scripts/setup-branch-protection.sh (gh api, requires admin)
- Create .github/workflows/release.yml (release-please for semver + changelog)
- Create release-please-config.json and .release-please-manifest.json
Closes #75
Closes #80
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: enhance CI with Playwright E2E, conventional commit check, caching
- Add e2e job with Playwright desktop tests and artifact upload on failure
- Add commit-lint job checking PR title against conventional commits pattern
- Add concurrency group to cancel redundant runs
- Add npm cache via setup-node
Closes #70
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: enhance PR template, YAML issue forms, and CODEOWNERS
- Upgrade PR template with GitHub Flow + security checklist
- Convert issue templates from Markdown to YAML forms
- Add SDK feature issue template
- Add security advisory contact link
- Create CODEOWNERS with path-based ownership
Closes #73
Closes #74
Closes #77
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: add PR auto-labeler and stale issues/PR management
- Create labeler config with 10 path-based labels (backend, frontend, sdk, etc.)
- Create labeler.yml workflow using actions/labeler@v5
- Create stale.yml workflow (30-day stale, 7-day close, exempt security/killer-feature)
Closes #71
Closes #72
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: add Copilot prompt files and rewrite copilot-instructions.md
- Create 4 prompt files: generate-test, review-security, add-feature, fix-bug
- Rewrite copilot-instructions.md with accurate counts (20 components, 78 message types)
- Add skills system, testing sections, updated project structure
Closes #76
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat: adopt awesome-copilot skills, agents, instructions, and workflows
Skills added (4): github-issues, doublecheck, copilot-spaces, automate-this
Agents added (6): 4.1-Beast, critical-thinking, implementation-plan, refine-issue, polyglot-test-generator, adr-generator
Instructions added (2): code-review-generic, performance-optimization
Workflows added (2): codespell, check-pr-target
Closes #86
Closes #87
Closes #88
Closes #69
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat: add SDK SessionHooks support (#49)
Wire all six SDK session hooks (onPreToolUse, onPostToolUse,
onSessionStart, onSessionEnd, onErrorOccurred) to forward events
over WebSocket as new message types.
Changes:
- Add HookPreToolMessage, HookPostToolMessage, HookSessionStartMessage,
HookSessionEndMessage, HookErrorMessage types to ServerMessage union
- Add HookEventCallback type and buildSessionHooks() factory to session.ts
- Add onHookEvent option to CreateSessionOptions
- Wire hooks in both session creation paths in handler.ts
- Add 7 unit tests covering all hook types and wiring
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: validate attachment paths to prevent arbitrary file reads (#52)
- Add isValidAttachmentPath() to ensure attachment paths are inside the
upload directory (tmpdir/copilot-uploads/), preventing malicious
WebSocket clients from reading arbitrary server files via the SDK
- Log rejected paths via security logger at warn level
- Add unit tests for path validation (8 tests covering traversal,
relative paths, prefix spoofing, etc.)
- Add image-specific upload tests verifying all 5 image types (jpg,
jpeg, png, gif, webp) are accepted with correct MIME types
- Add test verifying upload returns absolute server-side paths
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: complete MCP server integration (#51)
- Extract parseMcpServers() helper with defense-in-depth enabled filtering
- Pass MCP servers (GitHub + user) on resume_session (SDK + fallback)
- Update ResumeSessionMessage type to include mcpServers
- Client sends enabled MCP servers when resuming sessions
- Add unit tests for MCP parser (9 tests) and session config (3 tests)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: add path traversal protection to session persistence (#55)
- Add isValidSessionId() UUID validation for getSessionDetail/buildSessionContext
- Reset isProcessing flag on resume to prevent stale state
- Add 4 unit tests for UUID validation and path traversal rejection
Closes #55
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 03bd63d commit fd75bed
49 files changed
Lines changed: 3654 additions & 116 deletions
File tree
- .github
- ISSUE_TEMPLATE
- agents
- instructions
- prompts
- workflows
- scripts
- skills
- automate-this
- copilot-spaces
- doublecheck
- github-issues
- src
- lib
- server
- copilot
- ws
- stores
- types
- routes
- api/upload
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments