create-byan-agent 1.0.0 → 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Yan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-byan-agent",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "NPX installer for BYAN - Builder of YAN agent creator",
5
5
  "bin": {
6
6
  "create-byan-agent": "./bin/create-byan-agent.js"
@@ -23,14 +23,19 @@
23
23
  "author": "Yan",
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "chalk": "^5.3.0",
26
+ "chalk": "^4.1.2",
27
27
  "commander": "^11.1.0",
28
- "inquirer": "^9.2.12",
28
+ "inquirer": "^8.2.5",
29
29
  "fs-extra": "^11.2.0",
30
30
  "js-yaml": "^4.1.0",
31
- "ora": "^7.0.1"
31
+ "ora": "^5.4.1"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=18.0.0"
35
- }
35
+ },
36
+ "files": [
37
+ "bin/",
38
+ "README.md",
39
+ "LICENSE"
40
+ ]
36
41
  }
package/install.sh DELETED
@@ -1,239 +0,0 @@
1
- #!/bin/bash
2
- # BYAN Installer Script
3
- # Version: 1.0.0
4
- # Compatible: GitHub Copilot CLI, VSCode, Claude Code, Codex
5
-
6
- set -e
7
-
8
- # Colors
9
- RED='\033[0;31m'
10
- GREEN='\033[0;32m'
11
- YELLOW='\033[1;33m'
12
- BLUE='\033[0;34m'
13
- NC='\033[0m' # No Color
14
-
15
- # Configuration
16
- BYAN_VERSION="1.0.0"
17
- PROJECT_ROOT="$(pwd)"
18
- BMAD_DIR="${PROJECT_ROOT}/_bmad"
19
- INSTALL_DIR="${BMAD_DIR}/bmb"
20
-
21
- echo -e "${BLUE}"
22
- echo "╔════════════════════════════════════════════════════════════╗"
23
- echo "║ ║"
24
- echo "║ 🏗️ BYAN INSTALLER v${BYAN_VERSION} ║"
25
- echo "║ Builder of YAN - Agent Creator ║"
26
- echo "║ ║"
27
- echo "║ Methodology: Merise Agile + TDD + 64 Mantras ║"
28
- echo "║ ║"
29
- echo "╚════════════════════════════════════════════════════════════╝"
30
- echo -e "${NC}"
31
-
32
- # Check if running in project directory
33
- if [ ! -d ".git" ] && [ ! -f "package.json" ] && [ ! -f "pyproject.toml" ]; then
34
- echo -e "${YELLOW}⚠️ Warning: Not in a recognized project directory${NC}"
35
- echo "BYAN works best when installed in a project with version control."
36
- echo ""
37
- read -p "Continue anyway? (y/n): " -n 1 -r
38
- echo
39
- if [[ ! $REPLY =~ ^[Yy]$ ]]; then
40
- echo "Installation cancelled."
41
- exit 1
42
- fi
43
- fi
44
-
45
- # Step 1: Detect platform
46
- echo -e "${BLUE}[1/7] Detecting platform...${NC}"
47
-
48
- PLATFORM=""
49
- if command -v gh &> /dev/null && gh copilot --version &> /dev/null 2>&1; then
50
- PLATFORM="copilot"
51
- echo -e "${GREEN}✓ GitHub Copilot CLI detected${NC}"
52
- elif command -v code &> /dev/null; then
53
- PLATFORM="vscode"
54
- echo -e "${GREEN}✓ VSCode detected${NC}"
55
- elif command -v claude &> /dev/null; then
56
- PLATFORM="claude"
57
- echo -e "${GREEN}✓ Claude Code detected${NC}"
58
- else
59
- echo -e "${YELLOW}⚠️ No specific platform detected${NC}"
60
- echo "Select platform to install for:"
61
- echo "1) GitHub Copilot CLI"
62
- echo "2) VSCode"
63
- echo "3) Claude Code"
64
- echo "4) Codex"
65
- echo "5) All platforms"
66
- read -p "Choice (1-5): " platform_choice
67
-
68
- case $platform_choice in
69
- 1) PLATFORM="copilot";;
70
- 2) PLATFORM="vscode";;
71
- 3) PLATFORM="claude";;
72
- 4) PLATFORM="codex";;
73
- 5) PLATFORM="all";;
74
- *) echo "Invalid choice"; exit 1;;
75
- esac
76
- fi
77
-
78
- # Step 2: Create directory structure
79
- echo -e "${BLUE}[2/7] Creating directory structure...${NC}"
80
-
81
- mkdir -p "${BMAD_DIR}"/{bmb,core,_config,_memory,_output}
82
- mkdir -p "${INSTALL_DIR}"/{agents,workflows/byan/{steps,templates,data},config}
83
-
84
- echo -e "${GREEN}✓ Directories created${NC}"
85
-
86
- # Step 3: Download/Install BYAN files
87
- echo -e "${BLUE}[3/7] Installing BYAN files...${NC}"
88
-
89
- # Check if we're in the conception directory (development mode)
90
- if [ -f "${PROJECT_ROOT}/_bmad/bmb/agents/byan.md" ]; then
91
- echo -e "${YELLOW}Development mode: Using local files${NC}"
92
- # Files already exist, skip download
93
- else
94
- # In production, we would download from GitHub/NPM
95
- echo -e "${YELLOW}Note: In production, files would be downloaded from repository${NC}"
96
- echo "For now, please ensure BYAN files are present in _bmad/bmb/"
97
- fi
98
-
99
- # Step 4: Create config
100
- echo -e "${BLUE}[4/7] Configuring BYAN...${NC}"
101
-
102
- read -p "Your name: " USER_NAME
103
- read -p "Communication language (Francais/English): " COMM_LANG
104
-
105
- cat > "${INSTALL_DIR}/config.yaml" <<EOF
106
- # BMB Module Configuration
107
- # Generated by BYAN installer
108
- # Version: ${BYAN_VERSION}
109
- # Date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
110
-
111
- bmb_creations_output_folder: "{project-root}/_bmad-output/bmb-creations"
112
-
113
- # Core Configuration Values
114
- user_name: ${USER_NAME}
115
- communication_language: ${COMM_LANG}
116
- document_output_language: ${COMM_LANG}
117
- output_folder: "{project-root}/_bmad-output"
118
-
119
- # Platform
120
- platform: ${PLATFORM}
121
- EOF
122
-
123
- echo -e "${GREEN}✓ Configuration created${NC}"
124
-
125
- # Step 5: Install dependencies (if needed)
126
- echo -e "${BLUE}[5/7] Checking dependencies...${NC}"
127
-
128
- if [ "$PLATFORM" = "copilot" ]; then
129
- if ! command -v gh &> /dev/null; then
130
- echo -e "${RED}✗ GitHub CLI not found${NC}"
131
- echo "Please install: https://cli.github.com/"
132
- exit 1
133
- fi
134
- echo -e "${GREEN}✓ GitHub CLI installed${NC}"
135
- fi
136
-
137
- # Step 6: Create shortcuts/aliases
138
- echo -e "${BLUE}[6/7] Creating shortcuts...${NC}"
139
-
140
- # Add byan alias to shell config
141
- SHELL_RC="${HOME}/.bashrc"
142
- if [ -f "${HOME}/.zshrc" ]; then
143
- SHELL_RC="${HOME}/.zshrc"
144
- fi
145
-
146
- if ! grep -q "alias byan=" "${SHELL_RC}" 2>/dev/null; then
147
- echo "" >> "${SHELL_RC}"
148
- echo "# BYAN shortcuts" >> "${SHELL_RC}"
149
- echo "alias byan='cd ${PROJECT_ROOT} && gh copilot suggest \"activate BYAN agent\"'" >> "${SHELL_RC}"
150
- echo -e "${GREEN}✓ Shell alias created (restart terminal or run: source ${SHELL_RC})${NC}"
151
- else
152
- echo -e "${YELLOW}⚠️ Alias already exists${NC}"
153
- fi
154
-
155
- # Step 7: Verification
156
- echo -e "${BLUE}[7/7] Verifying installation...${NC}"
157
-
158
- CHECKS_PASSED=0
159
- CHECKS_TOTAL=5
160
-
161
- if [ -d "${INSTALL_DIR}/agents" ]; then
162
- echo -e "${GREEN}✓ Agents directory exists${NC}"
163
- ((CHECKS_PASSED++))
164
- fi
165
-
166
- if [ -d "${INSTALL_DIR}/workflows/byan" ]; then
167
- echo -e "${GREEN}✓ Workflows directory exists${NC}"
168
- ((CHECKS_PASSED++))
169
- fi
170
-
171
- if [ -f "${INSTALL_DIR}/config.yaml" ]; then
172
- echo -e "${GREEN}✓ Configuration file created${NC}"
173
- ((CHECKS_PASSED++))
174
- fi
175
-
176
- if [ -f "${INSTALL_DIR}/agents/byan.md" ]; then
177
- echo -e "${GREEN}✓ BYAN agent file found${NC}"
178
- ((CHECKS_PASSED++))
179
- else
180
- echo -e "${YELLOW}⚠️ BYAN agent file not found (expected in development)${NC}"
181
- fi
182
-
183
- if [ -f "${INSTALL_DIR}/workflows/byan/data/mantras.yaml" ]; then
184
- echo -e "${GREEN}✓ Mantras data file found${NC}"
185
- ((CHECKS_PASSED++))
186
- else
187
- echo -e "${YELLOW}⚠️ Mantras file not found (expected in development)${NC}"
188
- fi
189
-
190
- echo ""
191
- echo -e "${BLUE}Verification: ${CHECKS_PASSED}/${CHECKS_TOTAL} checks passed${NC}"
192
-
193
- # Installation complete
194
- echo ""
195
- echo -e "${GREEN}"
196
- echo "╔════════════════════════════════════════════════════════════╗"
197
- echo "║ ║"
198
- echo "║ ✅ BYAN INSTALLATION COMPLETE! ║"
199
- echo "║ ║"
200
- echo "╚════════════════════════════════════════════════════════════╝"
201
- echo -e "${NC}"
202
-
203
- echo "Installation Summary:"
204
- echo " • Platform: ${PLATFORM}"
205
- echo " • Installation Directory: ${INSTALL_DIR}"
206
- echo " • Configuration: ${INSTALL_DIR}/config.yaml"
207
- echo " • User: ${USER_NAME}"
208
- echo " • Language: ${COMM_LANG}"
209
- echo ""
210
-
211
- echo "Next Steps:"
212
- echo ""
213
- echo "1. Activate BYAN:"
214
- if [ "$PLATFORM" = "copilot" ]; then
215
- echo -e " ${BLUE}gh copilot suggest 'activate byan agent'${NC}"
216
- echo " or use alias: ${BLUE}byan${NC}"
217
- elif [ "$PLATFORM" = "vscode" ]; then
218
- echo " Open VSCode Command Palette (Ctrl+Shift+P)"
219
- echo " Type: 'Activate BYAN Agent'"
220
- elif [ "$PLATFORM" = "claude" ]; then
221
- echo -e " ${BLUE}claude chat --agent byan${NC}"
222
- else
223
- echo " Follow your platform's agent activation procedure"
224
- fi
225
-
226
- echo ""
227
- echo "2. Create your first agent:"
228
- echo " [INT] Start Intelligent Interview (30-45 min)"
229
- echo " [QC] Quick Create (10 min)"
230
- echo ""
231
- echo "3. Explore documentation:"
232
- echo " • Guide: ${BMAD_DIR}/_bmad-output/guide-reference-rapide-merise-agile-tdd.md"
233
- echo " • Specs: ${BMAD_DIR}/_bmad-output/specs-byan-agent-creator.md"
234
- echo " • Mantras: ${INSTALL_DIR}/workflows/byan/data/mantras.yaml"
235
- echo ""
236
-
237
- echo "Need help? Type '/bmad-help' when BYAN is active"
238
- echo ""
239
- echo -e "${BLUE}Happy agent building! 🏗️${NC}"
package/package-npm.json DELETED
@@ -1,55 +0,0 @@
1
- {
2
- "name": "@yan/create-byan-agent",
3
- "version": "1.0.0",
4
- "description": "NPX installer for BYAN - Builder of YAN agent creator. Generates specialized AI agents using Merise Agile + TDD methodology with 64 mantras.",
5
- "main": "bin/create-byan-agent.js",
6
- "bin": {
7
- "create-byan-agent": "./bin/create-byan-agent.js"
8
- },
9
- "scripts": {
10
- "start": "node bin/create-byan-agent.js",
11
- "test": "echo \"Tests coming soon\" && exit 0"
12
- },
13
- "keywords": [
14
- "byan",
15
- "agent",
16
- "creator",
17
- "ai",
18
- "bmad",
19
- "merise",
20
- "tdd",
21
- "copilot",
22
- "vscode",
23
- "claude",
24
- "codex",
25
- "zero-trust",
26
- "mantras",
27
- "agent-builder"
28
- ],
29
- "author": "Yan <yan@example.com>",
30
- "license": "MIT",
31
- "repository": {
32
- "type": "git",
33
- "url": "https://github.com/yan/byan.git"
34
- },
35
- "bugs": {
36
- "url": "https://github.com/yan/byan/issues"
37
- },
38
- "homepage": "https://github.com/yan/byan#readme",
39
- "dependencies": {
40
- "chalk": "^5.3.0",
41
- "commander": "^11.1.0",
42
- "inquirer": "^9.2.12",
43
- "fs-extra": "^11.2.0",
44
- "js-yaml": "^4.1.0",
45
- "ora": "^7.0.1"
46
- },
47
- "engines": {
48
- "node": ">=18.0.0"
49
- },
50
- "files": [
51
- "bin/",
52
- "README.md",
53
- "LICENSE"
54
- ]
55
- }