create-byan-agent 2.2.2 → 2.3.0

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.
@@ -0,0 +1,209 @@
1
+ ---
2
+ name: launch-yanstaller-codex
3
+ type: worker
4
+ role: yanstaller-launcher
5
+ platform: codex
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Worker: Launch Yanstaller (Codex/OpenCode)
10
+
11
+ **Role:** Launch yanstaller on Codex/OpenCode 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-codex" type="launcher">
21
+ <activation>
22
+ <step n="1">Detect platform: Codex/OpenCode</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 Codex/OpenCode platform.
35
+
36
+ This worker does NOT:
37
+ - ❌ Configure BYAN installation
38
+ - ❌ Run interview questions
39
+ - ❌ Install agents/modules
40
+ - ❌ Create skill files
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: codex skill bmad-byan
66
+
67
+ Codex stub: "Launching yanstaller..."
68
+
69
+ Worker: launch-yanstaller-codex
70
+
71
+ Command: npx create-byan-agent
72
+
73
+ Yanstaller: @bmad-agent-yanstaller takes over
74
+
75
+ Interview + Installation flow
76
+
77
+ Skill files creation (if selected)
78
+ ```
79
+
80
+ ---
81
+
82
+ ## Platform-Specific Notes
83
+
84
+ **Codex/OpenCode Integration:**
85
+ - Yanstaller will detect Codex platform
86
+ - Offers skill file creation option
87
+ - Agent Codex (specialist) handles skill setup
88
+ - Skills stored in `.codex/prompts/`
89
+
90
+ **Skill Creation Flow:**
91
+ ```
92
+ Yanstaller → Agent Codex (full) → Skill files
93
+
94
+ .codex/prompts/*.md created
95
+ ```
96
+
97
+ **Key Difference:**
98
+ - Codex uses "skills" not "agents"
99
+ - Simple Markdown files (NO YAML)
100
+ - Skill name = filename without .md
101
+
102
+ ---
103
+
104
+ ## Error Handling
105
+
106
+ **If npx not available:**
107
+ ```
108
+ Error: npx not found
109
+ Solution: Install Node.js >= 18.0.0
110
+ Command: https://nodejs.org/
111
+ ```
112
+
113
+ **If Codex CLI not in PATH:**
114
+ ```
115
+ Warning: Codex not detected
116
+ Solution: Install from https://opencode.com/
117
+ Note: Yanstaller will continue with manual instructions
118
+ ```
119
+
120
+ ---
121
+
122
+ ## Success Criteria
123
+
124
+ 1. ✅ Command `npx create-byan-agent` executed
125
+ 2. ✅ Yanstaller process started
126
+ 3. ✅ Control handed to @bmad-agent-yanstaller
127
+ 4. ✅ Codex platform detected
128
+
129
+ ---
130
+
131
+ ## Integration
132
+
133
+ **Called by:** Agent Codex stub (`bmad-agent-codex`)
134
+ **Calls:** Yanstaller (`bmad-agent-yanstaller`)
135
+ **Platform:** Codex/OpenCode
136
+ **Specialist:** Agent Codex (full) for skill setup
137
+
138
+ ---
139
+
140
+ ## Code
141
+
142
+ ```javascript
143
+ // worker-launch-yanstaller-codex.js
144
+ const { spawn } = require('child_process');
145
+
146
+ async function launch() {
147
+ console.log('📝 Launching Yanstaller on Codex...');
148
+
149
+ // Set platform hint for yanstaller
150
+ process.env.BYAN_PLATFORM_HINT = 'codex';
151
+
152
+ return new Promise((resolve, reject) => {
153
+ const proc = spawn('npx', ['create-byan-agent'], {
154
+ stdio: 'inherit',
155
+ shell: true,
156
+ env: process.env
157
+ });
158
+
159
+ proc.on('error', (error) => {
160
+ reject(new Error(`Failed to launch: ${error.message}`));
161
+ });
162
+
163
+ proc.on('exit', (code) => {
164
+ if (code === 0) {
165
+ resolve({
166
+ success: true,
167
+ platform: 'codex',
168
+ skillsEnabled: true
169
+ });
170
+ } else {
171
+ reject(new Error(`Yanstaller exited with code ${code}`));
172
+ }
173
+ });
174
+ });
175
+ }
176
+
177
+ module.exports = { launch };
178
+ ```
179
+
180
+ ---
181
+
182
+ ## Testing
183
+
184
+ ```bash
185
+ # Test worker execution
186
+ node _byan/workers/launchers/worker-launch-yanstaller-codex.js
187
+
188
+ # Expected output:
189
+ # 📝 Launching Yanstaller on Codex...
190
+ # [Yanstaller interview starts]
191
+ # [Platform: Codex detected]
192
+ ```
193
+
194
+ ---
195
+
196
+ ## Metadata
197
+
198
+ - **Worker Type:** Launcher
199
+ - **Complexity:** Simple (1 command)
200
+ - **Dependencies:** npx, Node.js >= 18.0.0, codex CLI (optional)
201
+ - **Estimated Duration:** < 5 seconds
202
+ - **Idempotent:** Yes (can be run multiple times)
203
+ - **Platform-Specific:** Sets BYAN_PLATFORM_HINT=codex
204
+
205
+ ---
206
+
207
+ **Status:** ✅ Ready for use
208
+ **Last Updated:** 2026-02-10
209
+ **Maintainer:** BYAN Core Team
@@ -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