@vypdev/copilot 3.9.1 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -93
- package/action.yml +1 -1
- package/build/cli/index.js +317 -16
- package/build/github_action/index.js +274 -9
- package/build/web/assets/index-CfyclPC5.css +1 -0
- package/build/web/assets/index-CsboG2sG.js +3 -0
- package/build/web/index.html +2 -2
- package/package.json +1 -1
- package/setup/workflows/copilot_commit.yml +4 -0
- package/setup/workflows/copilot_issue.yml +4 -0
- package/setup/workflows/copilot_issue_comment.yml +4 -0
- package/setup/workflows/copilot_pull_request.yml +4 -0
- package/setup/workflows/copilot_pull_request_comment.yml +4 -0
- package/setup/workflows/copilot_pull_request_review_state.yml +4 -0
- package/build/web/assets/index-BTzJj-al.js +0 -3
- package/build/web/assets/index-ERZ4A62w.css +0 -1
package/README.md
CHANGED
|
@@ -3,122 +3,76 @@
|
|
|
3
3
|

|
|
4
4
|

|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
# Copilot — GitHub with super powers
|
|
8
7
|
|
|
9
|
-
**Copilot
|
|
10
|
-
|
|
11
|
-
Full documentation: **[docs.page/vypdev/copilot](https://docs.page/vypdev/copilot)**
|
|
8
|
+
**Copilot connects the work described in a GitHub issue to its branch, implementation, pull request, review, and release.** It combines a GitHub Action for repository automation with a local CLI and web setup assistant. Enable the capabilities your team needs, including optional AI analysis and code changes.
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
## What can I do with it?
|
|
14
11
|
|
|
15
|
-
|
|
12
|
+
| Your goal | What Copilot provides | Start here |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| Organize work from issues | Issue Forms, Action-managed branches, lifecycle labels, progress, and GitHub Projects updates | [Manage issues and branches](https://docs.page/vypdev/copilot/guides/issues-and-branches) |
|
|
15
|
+
| Review pull requests | Bugbot findings near the code, a current review status, optional PR descriptions, and explicit requests to fix findings | [Review PRs and resolve findings](https://docs.page/vypdev/copilot/guides/review-pull-requests) |
|
|
16
|
+
| Ask for help or implementation | Commands to explain code, diagnose problems, plan work, or apply an authorized change and run verification | [Work with the bot](https://docs.page/vypdev/copilot/guides/work-with-the-bot) |
|
|
17
|
+
| Keep working branches current | Drift notices and an authorized synchronization command that verifies the merge before pushing | [Branch synchronization](https://docs.page/vypdev/copilot/issues/branch-synchronization) |
|
|
18
|
+
| Ship releases and hotfixes | Frozen source revisions, protected promotion PRs, version tags, GitHub Releases, and reconciliation back to development | [Release and hotfix guide](https://docs.page/vypdev/copilot/guides/releases-and-hotfixes) |
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
For example, a maintainer starts an admitted issue with `in-progress`. Copilot creates and verifies its branch. A developer or an authorized bot request contributes changes on that exact branch. A linked PR receives review findings and runs the repository's checks. After an authorized merge, a separately launched release can promote the accepted production commit and reconcile it into development.
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
| [Development](https://docs.page/vypdev/copilot/development) | Architecture, testing, documentation, artifacts, and release process |
|
|
22
|
+
```mermaid
|
|
23
|
+
flowchart LR
|
|
24
|
+
I[Issue and plan] --> B[Verified working branch]
|
|
25
|
+
B --> C[Developer or authorized bot changes]
|
|
26
|
+
C --> P[Linked PR and review]
|
|
27
|
+
P --> M[Protected merge]
|
|
28
|
+
M --> R[Explicit release or hotfix]
|
|
29
|
+
R --> D[Development reconciliation]
|
|
30
|
+
```
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
AI capabilities require a configured agent runtime, an allowed model, and working authentication on the selected runner. Code-changing requests require repository write authority and run configured verification before commit/push. Release promotion follows the repository's merge policy. Installing Copilot does not grant permission to merge or deploy.
|
|
31
33
|
|
|
32
|
-
##
|
|
34
|
+
## Start with the web assistant
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
`pnpm` and initialize the target repository with `copilot setup`:
|
|
36
|
+
Use **Node.js 24 or newer**, `pnpm`, and a working checkout of the repository you want to configure:
|
|
36
37
|
|
|
37
38
|
```bash
|
|
38
39
|
pnpm add --global @vypdev/copilot
|
|
39
40
|
copilot --version
|
|
40
41
|
cd /path/to/your/repository
|
|
41
|
-
copilot setup
|
|
42
|
-
# Optional local visual assistant, in the same repository:
|
|
43
42
|
copilot setup --web
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
- configure non-sensitive Repository Variables; and
|
|
54
|
-
- validate or provision the workflow PAT and provider credentials at the selected scope.
|
|
55
|
-
|
|
56
|
-
The wizard selects issue workflow kinds with a Space/Enter multi-select; `All`
|
|
57
|
-
is the default. It also generates `.copilot/repository-profile.json`,
|
|
58
|
-
`.copilot/AGENT_GUIDE.md`, and the Codex skill
|
|
59
|
-
`.agents/skills/copilot-repository-workflow/SKILL.md` by default. The generated
|
|
60
|
-
guidance makes clear that the Action owns remote branch lifecycle: agents work
|
|
61
|
-
on the exact existing branch and push normal commits, but do not create, rename,
|
|
62
|
-
delete, replace, or force-push managed branches.
|
|
63
|
-
|
|
64
|
-
The setup PAT entered by the operator is separate from the workflow `PAT` Secret.
|
|
65
|
-
Interactive setup can guide creation of both via GitHub's prefilled PAT form:
|
|
66
|
-
picks the permission-affecting setup options first, then the operator creates a temporary setup token, and the bot account creates the
|
|
67
|
-
persistent workflow token. GitHub handles account switching, 2FA, repository
|
|
68
|
-
selection, and final creation; Copilot never creates or revokes either token.
|
|
69
|
-
Use `copilot setup --dry-run` to inspect the plan before making local or remote
|
|
70
|
-
changes. See the complete [How to use](https://docs.page/vypdev/copilot/how-to-use)
|
|
71
|
-
guide and [Authentication](https://docs.page/vypdev/copilot/authentication).
|
|
72
|
-
|
|
73
|
-
`--web` opens an ephemeral, loopback-only setup page with a six-stage progress
|
|
74
|
-
rail, plan review, separate masked inputs for the two PAT roles, and a
|
|
75
|
-
System/Light/Dark theme control. If the browser does not open, use the local
|
|
76
|
-
URL printed in the terminal. The page does not create PATs: GitHub owns the
|
|
77
|
-
form, account switch, 2FA, and token issuance. You must explicitly approve
|
|
78
|
-
the plan and Apply; `--web` cannot be combined with unattended approval or
|
|
79
|
-
secret-bearing command-line flags. The terminal wizard remains the default.
|
|
80
|
-
|
|
81
|
-
### Manual workflow integration (advanced)
|
|
82
|
-
|
|
83
|
-
You can integrate the Action manually when the CLI setup flow is not suitable:
|
|
84
|
-
copy selected files from `setup/workflows/` into `.github/workflows/` and add
|
|
85
|
-
steps such as:
|
|
86
|
-
|
|
87
|
-
```yaml
|
|
88
|
-
- uses: vypdev/copilot@v3
|
|
89
|
-
with:
|
|
90
|
-
token: ${{ secrets.PAT }}
|
|
91
|
-
```
|
|
45
|
+
The CLI opens a local browser page. Pair it with the code printed in the terminal, confirm the target repository, and choose **Basic guided setup**. The assistant explains the required permissions, guides the two separate PAT roles, and shows the files and GitHub resources affected before you approve changes.
|
|
46
|
+
|
|
47
|
+
- The temporary **setup PAT** belongs to the operator and is used locally to configure the installation.
|
|
48
|
+
- The persistent **workflow PAT** belongs to the bot account and is stored as the Actions Secret `PAT`.
|
|
49
|
+
- GitHub creates both tokens in its own tabs. The assistant never creates or revokes them.
|
|
50
|
+
|
|
51
|
+
Follow the [web setup tutorial](https://docs.page/vypdev/copilot/setup-web) through installing the generated files and verifying the result. Then complete the [first issue-to-PR workflow](https://docs.page/vypdev/copilot/first-workflow). A local configuration check alone does not prove that an Action can run successfully.
|
|
92
52
|
|
|
93
|
-
|
|
94
|
-
`copilot setup`: it does not automatically create labels, issue types, Variables,
|
|
95
|
-
Secrets, templates, or the complete set of workflows. Those resources must be
|
|
96
|
-
configured and kept consistent manually. See [Workflow setup](https://docs.page/vypdev/copilot/issues/workflow-setup)
|
|
97
|
-
for action-level examples.
|
|
53
|
+
`copilot setup` without `--web` launches the terminal assistant. Use `copilot setup --web --dry-run` for a no-change preview. The npm package installs the CLI and templates; running setup and installing its generated files enables the Action in your repository.
|
|
98
54
|
|
|
99
|
-
|
|
55
|
+
## Choose your next step
|
|
100
56
|
|
|
101
|
-
|
|
57
|
+
| You need… | Documentation |
|
|
58
|
+
|---|---|
|
|
59
|
+
| A short installation checklist | [Quick start](https://docs.page/vypdev/copilot/quick-start) |
|
|
60
|
+
| A walkthrough of browser setup | [Set up with the web assistant](https://docs.page/vypdev/copilot/setup-web) |
|
|
61
|
+
| Observable proof that the installation works | [First workflow](https://docs.page/vypdev/copilot/first-workflow) |
|
|
62
|
+
| A guide for a specific outcome | [Choose a goal](https://docs.page/vypdev/copilot/guides) |
|
|
63
|
+
| Version selection, contextual or offline help | [Use the documentation](https://docs.page/vypdev/copilot/using-the-docs) |
|
|
64
|
+
| Token ownership, permissions, or account recovery | [Authentication](https://docs.page/vypdev/copilot/authentication) |
|
|
65
|
+
| Existing-installation updates, batch setup, or manual integration | [Setup and maintenance reference](https://docs.page/vypdev/copilot/how-to-use) |
|
|
66
|
+
| Every feature, input, and operational control | [Capabilities](https://docs.page/vypdev/copilot/features), [Configuration](https://docs.page/vypdev/copilot/configuration), [Security & Operations](https://docs.page/vypdev/copilot/security-operations) |
|
|
102
67
|
|
|
103
|
-
|
|
104
|
-
- **Pull requests** — Link PRs to issues, update project columns, assign reviewers; optional AI-generated PR description and automatic Bugbot review with stable finding threads; use `/copilot analyze` or `@vypbot analyze ...` for read-only review, or request an authorized change.
|
|
105
|
-
- **Push (commits)** — Notify the issue, update size/progress, and optionally run Bugbot; a separate agent-free observer watches every branch and recommends synchronizing children when their parent moves.
|
|
106
|
-
- **Projects** — Link issues and PRs to boards and move them to the right columns.
|
|
107
|
-
- **Single actions** — On-demand maintenance and analysis, plus workflow-owned callbacks for durable release and hotfix operations.
|
|
108
|
-
- **Branch synchronization** — Authorized issue/PR commands merge parent into working branch, call the fixer only for eligible conflicts, run verification, reject remote races, push, and report exactly what happened.
|
|
109
|
-
- **Release and hotfix orchestration** — Cut from the correct immutable origin, promote through a protected production PR, publish only the accepted production commit, and reconcile it back through resumable managed PRs without keeping a runner polling checks.
|
|
110
|
-
- **Evidence and safety** — Every run writes a bounded Job Summary; PR findings are reconciled from GitHub into one status card, historical review status blocks, and a `Copilot / Review` Check Run. Actionable findings are neutral by default and fail it only when `bugbot-fail-on-unresolved` is enabled, while unknown/incomplete state always fails closed. Agent sandboxes run without approval or network access, and all agent/comment content remains bounded, secret-redacted, and treated as untrusted data.
|
|
111
|
-
- **Bugbot quality** — Hierarchical rules, semantic finding identity, safe GitHub suggestions, analysis-only dry runs, a multilingual regression corpus, real-agent benchmark runner, content-free telemetry/analytics, and the provider-neutral `@vypdev/copilot/bugbot` API.
|
|
112
|
-
- **Concurrency** — Durable mutation workflows wait only for older active runs of that same workflow, with rate-limit-aware polling and a 90-minute deadline. Commit and Pull Request templates share a branch-scoped latest-revision group so a newer Bugbot review supersedes an older one; provider re-reads and head guards make interrupted finding transitions retryable. Event templates can also skip bot-authored jobs before runner allocation through `COPILOT_BOT_LOGIN`. See [Features → Workflow concurrency](https://docs.page/vypdev/copilot/features#workflow-concurrency-and-sequential-execution).
|
|
68
|
+
Setup installs the selected workflows, Issue Forms, labels, issue types, Variables, credentials, and repository agent guidance. Projects, agent routing, release/hotfix workflows, and other capabilities follow your selections. New setup offers PR approval assessment in `recommend` mode; native bot approval requires explicitly selecting `guarded` and meeting its prerequisites. See [guarded approval](https://docs.page/vypdev/copilot/pull-requests/guarded-approval).
|
|
113
69
|
|
|
114
|
-
|
|
70
|
+
Release templates are registry-neutral. Publishing your application or package requires your own build, validation, and deployment steps. This repository's npm publishing workflow is an example, not something setup installs into every consumer repository.
|
|
115
71
|
|
|
116
|
-
|
|
117
|
-
the sole review entrypoint, and internal runtime aggregates are not exported.
|
|
118
|
-
See the [Programmatic API](https://docs.page/vypdev/copilot/bugbot/programmatic-api).
|
|
72
|
+
## Advanced integrations and contributing
|
|
119
73
|
|
|
120
|
-
|
|
74
|
+
For a manually maintained workflow, use `vypdev/copilot@v3` and supply `token: ${{ secrets.PAT }}`. Follow the [manual integration instructions](https://docs.page/vypdev/copilot/how-to-use#manual-workflow-integration-advanced) to install the supporting resources and event workflows.
|
|
121
75
|
|
|
122
|
-
|
|
76
|
+
The request-only `@vypdev/copilot/bugbot` API is documented in the [programmatic API guide](https://docs.page/vypdev/copilot/bugbot/programmatic-api). For local commands, see [Workflow & CLI](https://docs.page/vypdev/copilot/single-actions/workflow-and-cli).
|
|
123
77
|
|
|
124
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup
|
|
78
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and contribution requirements.
|
package/action.yml
CHANGED
|
@@ -45,7 +45,7 @@ inputs:
|
|
|
45
45
|
description: "Hours without issue activity before the scheduled inactivity action closes a waiting issue."
|
|
46
46
|
default: "168"
|
|
47
47
|
emoji-labeled-title:
|
|
48
|
-
description: "Enable titles
|
|
48
|
+
description: "Enable label-based issue titles and conventional linked PR titles, preserving author Conventional Commits headers."
|
|
49
49
|
default: "true"
|
|
50
50
|
issue-managed-branches:
|
|
51
51
|
description: "Let the Action create linked branches after an authorized in-progress start."
|