create-byan-agent 2.2.2 → 2.3.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/CHANGELOG.md +346 -0
- package/README.md +46 -4
- package/TEST-GUIDE-v2.3.2.md +161 -0
- package/install/HERMES-GUIDE.md +410 -0
- package/install/bin/create-byan-agent-v2.js +104 -7
- package/install/lib/phase2-chat.js +16 -12
- package/install/lib/yanstaller/agent-launcher.js +3 -3
- package/install/lib/yanstaller/platform-selector.js +54 -3
- package/install/templates/.github/agents/hermes.md +573 -0
- package/install/templates/_byan/_config/agent-manifest.csv +1 -0
- package/install/templates/_byan/workers/launchers/README.md +308 -0
- package/install/templates/_byan/workers/launchers/launch-yanstaller-claude.md +204 -0
- package/install/templates/_byan/workers/launchers/launch-yanstaller-codex.md +209 -0
- package/install/templates/_byan/workers/launchers/launch-yanstaller-copilot.md +173 -0
- package/install/templates/_byan/workers.md +343 -1126
- package/install/templates/workers/README.md +148 -0
- package/install/templates/workers/cost-optimizer.js +169 -0
- package/package.json +8 -3
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: launch-yanstaller-copilot
|
|
3
|
+
type: worker
|
|
4
|
+
role: yanstaller-launcher
|
|
5
|
+
platform: copilot-cli
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Worker: Launch Yanstaller (Copilot CLI)
|
|
10
|
+
|
|
11
|
+
**Role:** Launch yanstaller on GitHub Copilot CLI platform
|
|
12
|
+
**Type:** Platform Launcher Worker
|
|
13
|
+
**Single Responsibility:** Execute `npx create-byan-agent` and hand off to yanstaller agent
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Activation
|
|
18
|
+
|
|
19
|
+
```xml
|
|
20
|
+
<worker id="launch-yanstaller-copilot" type="launcher">
|
|
21
|
+
<activation>
|
|
22
|
+
<step n="1">Detect platform: GitHub Copilot CLI</step>
|
|
23
|
+
<step n="2">Verify npx/npm available</step>
|
|
24
|
+
<step n="3">Execute: npx create-byan-agent</step>
|
|
25
|
+
<step n="4">Hand off to @bmad-agent-yanstaller</step>
|
|
26
|
+
</activation>
|
|
27
|
+
</worker>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Mission
|
|
33
|
+
|
|
34
|
+
**One task:** Launch yanstaller installer on Copilot CLI platform.
|
|
35
|
+
|
|
36
|
+
This worker does NOT:
|
|
37
|
+
- ❌ Configure BYAN installation
|
|
38
|
+
- ❌ Run interview questions
|
|
39
|
+
- ❌ Install agents/modules
|
|
40
|
+
- ❌ Validate project structure
|
|
41
|
+
|
|
42
|
+
This worker ONLY:
|
|
43
|
+
- ✅ Launches `npx create-byan-agent`
|
|
44
|
+
- ✅ Verifies command execution
|
|
45
|
+
- ✅ Hands off to yanstaller agent
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Command
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npx create-byan-agent
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Alternative (if already installed globally):**
|
|
56
|
+
```bash
|
|
57
|
+
create-byan-agent
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Execution Flow
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
User: @bmad-agent-marc
|
|
66
|
+
↓
|
|
67
|
+
Marc (stub): "Launching yanstaller..."
|
|
68
|
+
↓
|
|
69
|
+
Worker: launch-yanstaller-copilot
|
|
70
|
+
↓
|
|
71
|
+
Command: npx create-byan-agent
|
|
72
|
+
↓
|
|
73
|
+
Yanstaller: @bmad-agent-yanstaller takes over
|
|
74
|
+
↓
|
|
75
|
+
Interview + Installation flow
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Error Handling
|
|
81
|
+
|
|
82
|
+
**If npx not available:**
|
|
83
|
+
```
|
|
84
|
+
Error: npx not found
|
|
85
|
+
Solution: Install Node.js >= 18.0.0
|
|
86
|
+
Command: https://nodejs.org/
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**If network issues:**
|
|
90
|
+
```
|
|
91
|
+
Error: Cannot download create-byan-agent
|
|
92
|
+
Solution: Check internet connection or use offline mode
|
|
93
|
+
Command: npm install -g create-byan-agent
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Success Criteria
|
|
99
|
+
|
|
100
|
+
1. ✅ Command `npx create-byan-agent` executed
|
|
101
|
+
2. ✅ Yanstaller process started
|
|
102
|
+
3. ✅ Control handed to @bmad-agent-yanstaller
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Integration
|
|
107
|
+
|
|
108
|
+
**Called by:** Agent Marc (`bmad-agent-marc`)
|
|
109
|
+
**Calls:** Yanstaller (`bmad-agent-yanstaller`)
|
|
110
|
+
**Platform:** GitHub Copilot CLI
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Code
|
|
115
|
+
|
|
116
|
+
```javascript
|
|
117
|
+
// worker-launch-yanstaller-copilot.js
|
|
118
|
+
const { spawn } = require('child_process');
|
|
119
|
+
|
|
120
|
+
async function launch() {
|
|
121
|
+
console.log('🚀 Launching Yanstaller on Copilot CLI...');
|
|
122
|
+
|
|
123
|
+
return new Promise((resolve, reject) => {
|
|
124
|
+
const proc = spawn('npx', ['create-byan-agent'], {
|
|
125
|
+
stdio: 'inherit',
|
|
126
|
+
shell: true
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
proc.on('error', (error) => {
|
|
130
|
+
reject(new Error(`Failed to launch: ${error.message}`));
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
proc.on('exit', (code) => {
|
|
134
|
+
if (code === 0) {
|
|
135
|
+
resolve({ success: true, platform: 'copilot-cli' });
|
|
136
|
+
} else {
|
|
137
|
+
reject(new Error(`Yanstaller exited with code ${code}`));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
module.exports = { launch };
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Testing
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# Test worker execution
|
|
152
|
+
node _byan/workers/launchers/worker-launch-yanstaller-copilot.js
|
|
153
|
+
|
|
154
|
+
# Expected output:
|
|
155
|
+
# 🚀 Launching Yanstaller on Copilot CLI...
|
|
156
|
+
# [Yanstaller interview starts]
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Metadata
|
|
162
|
+
|
|
163
|
+
- **Worker Type:** Launcher
|
|
164
|
+
- **Complexity:** Simple (1 command)
|
|
165
|
+
- **Dependencies:** npx, Node.js >= 18.0.0
|
|
166
|
+
- **Estimated Duration:** < 5 seconds
|
|
167
|
+
- **Idempotent:** Yes (can be run multiple times)
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
**Status:** ✅ Ready for use
|
|
172
|
+
**Last Updated:** 2026-02-10
|
|
173
|
+
**Maintainer:** BYAN Core Team
|