vibe-forge 0.4.0 → 0.8.1
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/.claude/commands/clear-attention.md +63 -63
- package/.claude/commands/compact-context.md +52 -0
- package/.claude/commands/configure-vcs.md +102 -102
- package/.claude/commands/forge.md +218 -171
- package/.claude/commands/need-help.md +77 -77
- package/.claude/commands/update-status.md +64 -64
- package/.claude/commands/worker-loop.md +106 -106
- package/.claude/hooks/worker-loop.js +217 -187
- package/.claude/scripts/setup-worker-loop.sh +45 -45
- package/.claude/settings.json +89 -0
- package/LICENSE +21 -21
- package/README.md +253 -232
- package/agents/aegis/personality.md +303 -269
- package/agents/anvil/personality.md +278 -240
- package/agents/architect/personality.md +260 -234
- package/agents/crucible/personality.md +362 -309
- package/agents/crucible-x/personality.md +210 -0
- package/agents/ember/personality.md +293 -265
- package/agents/flux/personality.md +248 -0
- package/agents/furnace/personality.md +342 -291
- package/agents/herald/personality.md +249 -247
- package/agents/loki/personality.md +108 -0
- package/agents/oracle/personality.md +284 -0
- package/agents/pixel/personality.md +140 -0
- package/agents/planning-hub/personality.md +473 -251
- package/agents/scribe/personality.md +253 -251
- package/agents/slag/personality.md +268 -0
- package/agents/temper/personality.md +270 -0
- package/bin/cli.js +372 -325
- package/bin/dashboard/api/agents.js +333 -0
- package/bin/dashboard/api/dispatch.js +507 -0
- package/bin/dashboard/api/tasks.js +416 -0
- package/bin/dashboard/public/assets/index-BpHfsx1r.js +2 -0
- package/bin/dashboard/public/assets/index-QODv4Zn9.css +1 -0
- package/bin/dashboard/public/index.html +14 -0
- package/bin/dashboard/server.js +645 -0
- package/bin/forge-daemon.sh +477 -851
- package/bin/forge-setup.sh +661 -645
- package/bin/forge-spawn.sh +164 -164
- package/bin/forge.cmd +83 -83
- package/bin/forge.sh +566 -387
- package/bin/lib/agents.sh +177 -177
- package/bin/lib/check-aliases.js +50 -0
- package/bin/lib/colors.sh +44 -44
- package/bin/lib/config.sh +347 -313
- package/bin/lib/constants.sh +241 -206
- package/bin/lib/daemon/budgets.sh +107 -0
- package/bin/lib/daemon/dependencies.sh +146 -0
- package/bin/lib/daemon/display.sh +128 -0
- package/bin/lib/daemon/notifications.sh +273 -0
- package/bin/lib/daemon/routing.sh +93 -0
- package/bin/lib/daemon/state.sh +163 -0
- package/bin/lib/daemon/sync.sh +103 -0
- package/bin/lib/database.sh +357 -305
- package/bin/lib/frontmatter.js +106 -0
- package/bin/lib/heimdall-setup.js +113 -0
- package/bin/lib/heimdall.js +265 -0
- package/bin/lib/json.sh +264 -258
- package/bin/lib/terminal.js +452 -446
- package/bin/lib/util.sh +126 -126
- package/bin/lib/vcs.js +349 -349
- package/config/agent-manifest.yaml +237 -243
- package/config/agents.json +207 -132
- package/config/task-template.md +159 -87
- package/config/task-types.yaml +111 -106
- package/config/templates/handoff-template.md +40 -0
- package/context/agent-overrides/README.md +41 -0
- package/context/architecture.md +42 -0
- package/context/modern-conventions.md +129 -129
- package/context/project-context-template.md +122 -122
- package/docs/agents.md +473 -409
- package/docs/architecture.md +194 -162
- package/docs/commands.md +451 -388
- package/docs/security.md +195 -144
- package/package.json +77 -50
- package/.claude/settings.local.json +0 -33
- package/agents/forge-master/capabilities.md +0 -144
- package/agents/forge-master/context-template.md +0 -128
- package/agents/forge-master/personality.md +0 -138
- package/agents/sentinel/personality.md +0 -194
- package/context/forge-state.yaml +0 -19
- package/docs/TODO.md +0 -150
- package/docs/getting-started.md +0 -243
- package/docs/npm-publishing.md +0 -95
- package/docs/workflows/README.md +0 -32
- package/docs/workflows/azure-devops.md +0 -108
- package/docs/workflows/bitbucket.md +0 -104
- package/docs/workflows/git-only.md +0 -130
- package/docs/workflows/gitea.md +0 -168
- package/docs/workflows/github.md +0 -103
- package/docs/workflows/gitlab.md +0 -105
- package/docs/workflows.md +0 -454
- package/tasks/completed/ARCH-001-duplicate-agent-config.md +0 -121
- package/tasks/completed/ARCH-002-mixed-bash-node-implementation.md +0 -88
- package/tasks/completed/ARCH-003-worker-loop-hook-duplication.md +0 -77
- package/tasks/completed/ARCH-009-test-organization.md +0 -78
- package/tasks/completed/ARCH-011-jq-vs-nodejs-json.md +0 -94
- package/tasks/completed/ARCH-012-tmp-files-in-root.md +0 -71
- package/tasks/completed/ARCH-013-exit-code-constants.md +0 -65
- package/tasks/completed/ARCH-014-sed-incompatibility.md +0 -96
- package/tasks/completed/ARCH-015-docs-todo-tracking.md +0 -83
- package/tasks/completed/CLEAN-001.md +0 -38
- package/tasks/completed/CLEAN-003.md +0 -47
- package/tasks/completed/CLEAN-004.md +0 -56
- package/tasks/completed/CLEAN-005.md +0 -75
- package/tasks/completed/CLEAN-006.md +0 -47
- package/tasks/completed/CLEAN-007.md +0 -34
- package/tasks/completed/CLEAN-008.md +0 -49
- package/tasks/completed/CLEAN-012.md +0 -58
- package/tasks/completed/CLEAN-013.md +0 -45
- package/tasks/completed/SEC-001-sql-injection-fix.md +0 -58
- package/tasks/completed/SEC-002-notification-injection-fix.md +0 -45
- package/tasks/completed/SEC-003-eval-injection-fix.md +0 -54
- package/tasks/completed/SEC-004-pid-race-condition-fix.md +0 -49
- package/tasks/completed/SEC-005-worker-loop-path-fix.md +0 -51
- package/tasks/completed/SEC-006-eval-agent-names.md +0 -55
- package/tasks/completed/SEC-007-spawn-escaping.md +0 -67
- package/tasks/pending/ARCH-004-git-bash-detection-duplication.md +0 -72
- package/tasks/pending/ARCH-005-missing-src-directory.md +0 -95
- package/tasks/pending/ARCH-006-task-template-location.md +0 -64
- package/tasks/pending/ARCH-007-daemon-monolith.md +0 -91
- package/tasks/pending/ARCH-008-forge-master-vs-hub.md +0 -81
- package/tasks/pending/ARCH-010-missing-index-files.md +0 -84
- package/tasks/pending/CLEAN-002.md +0 -29
- package/tasks/pending/CLEAN-009.md +0 -31
- package/tasks/pending/CLEAN-010.md +0 -30
- package/tasks/pending/CLEAN-011.md +0 -30
- package/tasks/pending/CLEAN-014.md +0 -32
- package/tasks/review/task-001.md +0 -78
package/docs/workflows/gitea.md
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
# Gitea Workflow Guide
|
|
2
|
-
|
|
3
|
-
Git workflow guidance for projects hosted on Gitea (including Codeberg and other Gitea-based instances).
|
|
4
|
-
|
|
5
|
-
## Branch Naming
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
task/TASK-XXX-description # Task branches
|
|
9
|
-
feature/feature-name # Feature branches
|
|
10
|
-
bugfix/bug-description # Bug fix branches
|
|
11
|
-
hotfix/urgent-fix # Urgent production fixes
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Daily Workflow
|
|
15
|
-
|
|
16
|
-
### Starting a Task
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# Ensure you're on latest main
|
|
20
|
-
git checkout main && git pull origin main
|
|
21
|
-
|
|
22
|
-
# Create feature branch
|
|
23
|
-
git checkout -b task/TASK-XXX-description
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### During Development
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
# Stage and commit changes
|
|
30
|
-
git add .
|
|
31
|
-
git commit -m "Add feature X"
|
|
32
|
-
|
|
33
|
-
# Push to remote (first time)
|
|
34
|
-
git push -u origin task/TASK-XXX-description
|
|
35
|
-
|
|
36
|
-
# Subsequent pushes
|
|
37
|
-
git push
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Creating a Pull Request
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# Using tea CLI (Gitea's official CLI)
|
|
44
|
-
tea pr create --title "TASK-XXX: Add feature X" --description "Description of changes"
|
|
45
|
-
|
|
46
|
-
# Or create as draft
|
|
47
|
-
tea pr create --title "TASK-XXX: WIP - Add feature X" --labels "work-in-progress"
|
|
48
|
-
|
|
49
|
-
# If tea is not installed, use the web UI:
|
|
50
|
-
# Navigate to your Gitea instance -> Repository -> Pull Requests -> New Pull Request
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### After PR Approval
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# Merge via Gitea UI (squash merge recommended)
|
|
57
|
-
# Or via CLI
|
|
58
|
-
tea pr merge --style squash
|
|
59
|
-
|
|
60
|
-
# Clean up local branch
|
|
61
|
-
git checkout main
|
|
62
|
-
git pull origin main
|
|
63
|
-
git branch -d task/TASK-XXX-description
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## CI/CD with Gitea Actions
|
|
67
|
-
|
|
68
|
-
Gitea Actions (v1.19+) uses GitHub Actions-compatible workflow syntax. Configuration goes in `.gitea/workflows/`:
|
|
69
|
-
|
|
70
|
-
```yaml
|
|
71
|
-
# .gitea/workflows/ci.yml
|
|
72
|
-
name: CI
|
|
73
|
-
on: [push, pull_request]
|
|
74
|
-
|
|
75
|
-
jobs:
|
|
76
|
-
test:
|
|
77
|
-
runs-on: ubuntu-latest
|
|
78
|
-
steps:
|
|
79
|
-
- uses: actions/checkout@v4
|
|
80
|
-
- name: Setup Node.js
|
|
81
|
-
uses: actions/setup-node@v4
|
|
82
|
-
with:
|
|
83
|
-
node-version: '20'
|
|
84
|
-
- run: npm ci
|
|
85
|
-
- run: npm test
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Alternative: Drone CI
|
|
89
|
-
|
|
90
|
-
Many Gitea installations use Drone CI. Configuration goes in `.drone.yml`:
|
|
91
|
-
|
|
92
|
-
```yaml
|
|
93
|
-
# .drone.yml
|
|
94
|
-
kind: pipeline
|
|
95
|
-
type: docker
|
|
96
|
-
name: default
|
|
97
|
-
|
|
98
|
-
steps:
|
|
99
|
-
- name: test
|
|
100
|
-
image: node:20
|
|
101
|
-
commands:
|
|
102
|
-
- npm ci
|
|
103
|
-
- npm test
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Installing tea CLI
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
# macOS
|
|
110
|
-
brew install tea
|
|
111
|
-
|
|
112
|
-
# Linux (download binary)
|
|
113
|
-
curl -sL https://dl.gitea.io/tea/main/tea-main-linux-amd64 -o tea
|
|
114
|
-
chmod +x tea
|
|
115
|
-
sudo mv tea /usr/local/bin/
|
|
116
|
-
|
|
117
|
-
# Windows (via scoop)
|
|
118
|
-
scoop install tea
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### Configure tea
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
# Add your Gitea instance
|
|
125
|
-
tea login add --name myinstance --url https://gitea.example.com --token YOUR_TOKEN
|
|
126
|
-
|
|
127
|
-
# Set as default
|
|
128
|
-
tea login default myinstance
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
## Useful Commands
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
# tea CLI commands
|
|
135
|
-
tea pr list # List open PRs
|
|
136
|
-
tea pr view 123 # View PR details
|
|
137
|
-
tea pr checkout 123 # Checkout PR locally
|
|
138
|
-
tea issue list # List issues
|
|
139
|
-
tea repo list # List repositories
|
|
140
|
-
|
|
141
|
-
# With specific login
|
|
142
|
-
tea pr list --login myinstance
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Branch Protection
|
|
146
|
-
|
|
147
|
-
Configure in Repository Settings > Branches > Branch Protection:
|
|
148
|
-
- Enable branch protection for `main`
|
|
149
|
-
- Require pull request reviews
|
|
150
|
-
- Require status checks to pass
|
|
151
|
-
- Block force push
|
|
152
|
-
- Block branch deletion
|
|
153
|
-
|
|
154
|
-
## Gitea vs GitHub Differences
|
|
155
|
-
|
|
156
|
-
| Feature | GitHub | Gitea |
|
|
157
|
-
|---------|--------|-------|
|
|
158
|
-
| CLI | `gh` | `tea` |
|
|
159
|
-
| CI | GitHub Actions | Gitea Actions / Drone |
|
|
160
|
-
| Workflows | `.github/workflows/` | `.gitea/workflows/` |
|
|
161
|
-
| PR Labels | Built-in | Instance-specific |
|
|
162
|
-
|
|
163
|
-
## Self-Hosted Considerations
|
|
164
|
-
|
|
165
|
-
- **Instance URL**: Replace `gitea.example.com` with your actual instance URL
|
|
166
|
-
- **Runner Setup**: Gitea Actions requires act_runner for CI/CD
|
|
167
|
-
- **Token Scopes**: Generate tokens with appropriate scopes in Settings > Applications
|
|
168
|
-
- **Webhooks**: Configure webhooks for external CI if not using Gitea Actions
|
package/docs/workflows/github.md
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
# GitHub Workflow Guide
|
|
2
|
-
|
|
3
|
-
Git workflow guidance for projects hosted on GitHub.
|
|
4
|
-
|
|
5
|
-
## Branch Naming
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
task/TASK-XXX-description # Task branches
|
|
9
|
-
feature/feature-name # Feature branches
|
|
10
|
-
bugfix/bug-description # Bug fix branches
|
|
11
|
-
hotfix/urgent-fix # Urgent production fixes
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Daily Workflow
|
|
15
|
-
|
|
16
|
-
### Starting a Task
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# Ensure you're on latest main
|
|
20
|
-
git checkout main && git pull origin main
|
|
21
|
-
|
|
22
|
-
# Create feature branch
|
|
23
|
-
git checkout -b task/TASK-XXX-description
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### During Development
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
# Stage and commit changes
|
|
30
|
-
git add .
|
|
31
|
-
git commit -m "Add feature X"
|
|
32
|
-
|
|
33
|
-
# Push to remote (first time)
|
|
34
|
-
git push -u origin task/TASK-XXX-description
|
|
35
|
-
|
|
36
|
-
# Subsequent pushes
|
|
37
|
-
git push
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Creating a Pull Request
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# Using GitHub CLI (recommended)
|
|
44
|
-
gh pr create --title "TASK-XXX: Add feature X" --body "Description of changes"
|
|
45
|
-
|
|
46
|
-
# Or with draft PR
|
|
47
|
-
gh pr create --draft --title "TASK-XXX: WIP - Add feature X"
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### After PR Approval
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
# Squash merge via GitHub UI or CLI
|
|
54
|
-
gh pr merge --squash
|
|
55
|
-
|
|
56
|
-
# Clean up local branch
|
|
57
|
-
git checkout main
|
|
58
|
-
git pull origin main
|
|
59
|
-
git branch -d task/TASK-XXX-description
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## CI/CD
|
|
63
|
-
|
|
64
|
-
GitHub Actions configuration goes in `.github/workflows/`:
|
|
65
|
-
|
|
66
|
-
```yaml
|
|
67
|
-
# .github/workflows/ci.yml
|
|
68
|
-
name: CI
|
|
69
|
-
on: [push, pull_request]
|
|
70
|
-
|
|
71
|
-
jobs:
|
|
72
|
-
test:
|
|
73
|
-
runs-on: ubuntu-latest
|
|
74
|
-
steps:
|
|
75
|
-
- uses: actions/checkout@v4
|
|
76
|
-
- name: Run tests
|
|
77
|
-
run: npm test
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Useful Commands
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
# Check PR status
|
|
84
|
-
gh pr status
|
|
85
|
-
|
|
86
|
-
# View PR in browser
|
|
87
|
-
gh pr view --web
|
|
88
|
-
|
|
89
|
-
# List open PRs
|
|
90
|
-
gh pr list
|
|
91
|
-
|
|
92
|
-
# Check CI status
|
|
93
|
-
gh run list
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
## Branch Protection
|
|
97
|
-
|
|
98
|
-
If on a paid plan, configure branch protection rules:
|
|
99
|
-
- Require PR reviews before merging
|
|
100
|
-
- Require status checks to pass
|
|
101
|
-
- Require branches to be up to date
|
|
102
|
-
|
|
103
|
-
For free plans, use the pre-push hook in `.githooks/pre-push`.
|
package/docs/workflows/gitlab.md
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
# GitLab Workflow Guide
|
|
2
|
-
|
|
3
|
-
Git workflow guidance for projects hosted on GitLab.
|
|
4
|
-
|
|
5
|
-
## Branch Naming
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
task/TASK-XXX-description # Task branches
|
|
9
|
-
feature/feature-name # Feature branches
|
|
10
|
-
bugfix/bug-description # Bug fix branches
|
|
11
|
-
hotfix/urgent-fix # Urgent production fixes
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Daily Workflow
|
|
15
|
-
|
|
16
|
-
### Starting a Task
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# Ensure you're on latest main
|
|
20
|
-
git checkout main && git pull origin main
|
|
21
|
-
|
|
22
|
-
# Create feature branch
|
|
23
|
-
git checkout -b task/TASK-XXX-description
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### During Development
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
# Stage and commit changes
|
|
30
|
-
git add .
|
|
31
|
-
git commit -m "Add feature X"
|
|
32
|
-
|
|
33
|
-
# Push to remote (first time)
|
|
34
|
-
git push -u origin task/TASK-XXX-description
|
|
35
|
-
|
|
36
|
-
# Subsequent pushes
|
|
37
|
-
git push
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Creating a Merge Request
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# Push with merge request creation
|
|
44
|
-
git push -o merge_request.create -o merge_request.title="TASK-XXX: Add feature X"
|
|
45
|
-
|
|
46
|
-
# Or create via GitLab CLI (glab)
|
|
47
|
-
glab mr create --title "TASK-XXX: Add feature X" --description "Description of changes"
|
|
48
|
-
|
|
49
|
-
# Draft merge request
|
|
50
|
-
glab mr create --draft --title "TASK-XXX: WIP - Add feature X"
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### After MR Approval
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# Merge via GitLab UI (squash merge recommended)
|
|
57
|
-
# Or via CLI
|
|
58
|
-
glab mr merge --squash
|
|
59
|
-
|
|
60
|
-
# Clean up local branch
|
|
61
|
-
git checkout main
|
|
62
|
-
git pull origin main
|
|
63
|
-
git branch -d task/TASK-XXX-description
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## CI/CD
|
|
67
|
-
|
|
68
|
-
GitLab CI configuration goes in `.gitlab-ci.yml`:
|
|
69
|
-
|
|
70
|
-
```yaml
|
|
71
|
-
# .gitlab-ci.yml
|
|
72
|
-
stages:
|
|
73
|
-
- test
|
|
74
|
-
- build
|
|
75
|
-
|
|
76
|
-
test:
|
|
77
|
-
stage: test
|
|
78
|
-
script:
|
|
79
|
-
- npm ci
|
|
80
|
-
- npm test
|
|
81
|
-
|
|
82
|
-
build:
|
|
83
|
-
stage: build
|
|
84
|
-
script:
|
|
85
|
-
- npm run build
|
|
86
|
-
only:
|
|
87
|
-
- main
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## Useful Commands
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
# Using GitLab CLI (glab)
|
|
94
|
-
glab mr list # List open MRs
|
|
95
|
-
glab mr view # View current MR
|
|
96
|
-
glab mr checkout 123 # Checkout MR locally
|
|
97
|
-
glab ci status # Check pipeline status
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Branch Protection
|
|
101
|
-
|
|
102
|
-
Configure in Settings > Repository > Protected Branches:
|
|
103
|
-
- Require merge request approval
|
|
104
|
-
- Require pipeline to succeed
|
|
105
|
-
- Prevent force push
|