liteagents 2.4.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.
- package/CHANGELOG.md +441 -0
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/cli.js +230 -0
- package/docs/.gitkeep +1 -0
- package/docs/CONTRIBUTING.md +739 -0
- package/docs/DUAL_PUBLISH_SUMMARY.md +177 -0
- package/docs/ERROR_HANDLING_IMPLEMENTATION.md +327 -0
- package/docs/GITHUB_PACKAGES.md +181 -0
- package/docs/GITHUB_SETUP.md +158 -0
- package/docs/INSTALLATION_DEMO.md +691 -0
- package/docs/INSTALLATION_LOCATIONS.md +299 -0
- package/docs/INSTALLER_GUIDE.md +1586 -0
- package/docs/INTEGRATION_ISSUES_9.1.md +341 -0
- package/docs/KNOWLEDGE_BASE.md +727 -0
- package/docs/MIGRATION.md +384 -0
- package/docs/PACKAGE_BASELINE.md +557 -0
- package/docs/PACKAGE_VALIDATION_REPORT.md +427 -0
- package/docs/PASS_INTEGRATION.md +307 -0
- package/docs/PASS_QUICK_START.md +150 -0
- package/docs/PRIVACY.md +203 -0
- package/docs/PUBLISHING.md +494 -0
- package/docs/QUICK-START.md +318 -0
- package/docs/RELEASE_NOTES_1.2.0.md +323 -0
- package/docs/SECURITY.md +317 -0
- package/docs/SILENT_MODE_GUIDE.md +526 -0
- package/docs/SKILLS_CONVERSION.md +154 -0
- package/docs/TESTING.md +582 -0
- package/docs/TEST_COVERAGE.md +347 -0
- package/docs/TROUBLESHOOTING.md +788 -0
- package/docs/UPDATED_VARIANT_CONFIGURATION.md +274 -0
- package/docs/VARIANT_CONFIGURATION.md +440 -0
- package/installer/cli.js +761 -0
- package/installer/installation-engine.js +1536 -0
- package/installer/package-manager.js +640 -0
- package/installer/path-manager.js +427 -0
- package/installer/report-template.js +298 -0
- package/installer/verification-system.js +274 -0
- package/package.json +83 -0
- package/packages/ampcode/AGENT.md +58 -0
- package/packages/ampcode/README.md +17 -0
- package/packages/ampcode/agents/1-create-prd.md +175 -0
- package/packages/ampcode/agents/2-generate-tasks.md +190 -0
- package/packages/ampcode/agents/3-process-task-list.md +225 -0
- package/packages/ampcode/agents/code-developer.md +198 -0
- package/packages/ampcode/agents/context-builder.md +142 -0
- package/packages/ampcode/agents/feature-planner.md +199 -0
- package/packages/ampcode/agents/market-researcher.md +89 -0
- package/packages/ampcode/agents/orchestrator.md +116 -0
- package/packages/ampcode/agents/quality-assurance.md +115 -0
- package/packages/ampcode/agents/system-architect.md +135 -0
- package/packages/ampcode/agents/ui-designer.md +184 -0
- package/packages/ampcode/commands/brainstorming.md +56 -0
- package/packages/ampcode/commands/code-review.md +107 -0
- package/packages/ampcode/commands/condition-based-waiting/example.ts +158 -0
- package/packages/ampcode/commands/condition-based-waiting.md +122 -0
- package/packages/ampcode/commands/debug.md +20 -0
- package/packages/ampcode/commands/docs-builder/templates.md +572 -0
- package/packages/ampcode/commands/docs-builder.md +106 -0
- package/packages/ampcode/commands/explain.md +18 -0
- package/packages/ampcode/commands/git-commit.md +14 -0
- package/packages/ampcode/commands/optimize.md +20 -0
- package/packages/ampcode/commands/refactor.md +21 -0
- package/packages/ampcode/commands/review.md +18 -0
- package/packages/ampcode/commands/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/ampcode/commands/root-cause-tracing.md +176 -0
- package/packages/ampcode/commands/security.md +21 -0
- package/packages/ampcode/commands/ship.md +18 -0
- package/packages/ampcode/commands/skill-creator/scripts/init_skill.py +303 -0
- package/packages/ampcode/commands/skill-creator/scripts/package_skill.py +110 -0
- package/packages/ampcode/commands/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/ampcode/commands/skill-creator.md +211 -0
- package/packages/ampcode/commands/stash.md +45 -0
- package/packages/ampcode/commands/systematic-debugging.md +297 -0
- package/packages/ampcode/commands/test-driven-development.md +390 -0
- package/packages/ampcode/commands/test-generate.md +18 -0
- package/packages/ampcode/commands/testing-anti-patterns.md +304 -0
- package/packages/ampcode/commands/verification-before-completion.md +152 -0
- package/packages/ampcode/settings.json +13 -0
- package/packages/ampcode/variants.json +8 -0
- package/packages/claude/CLAUDE.md +58 -0
- package/packages/claude/README.md +23 -0
- package/packages/claude/agents/1-create-prd.md +175 -0
- package/packages/claude/agents/2-generate-tasks.md +190 -0
- package/packages/claude/agents/3-process-task-list.md +225 -0
- package/packages/claude/agents/code-developer.md +198 -0
- package/packages/claude/agents/context-builder.md +142 -0
- package/packages/claude/agents/feature-planner.md +199 -0
- package/packages/claude/agents/market-researcher.md +89 -0
- package/packages/claude/agents/orchestrator.md +117 -0
- package/packages/claude/agents/quality-assurance.md +115 -0
- package/packages/claude/agents/system-architect.md +135 -0
- package/packages/claude/agents/ui-designer.md +184 -0
- package/packages/claude/commands/debug.md +20 -0
- package/packages/claude/commands/explain.md +18 -0
- package/packages/claude/commands/git-commit.md +14 -0
- package/packages/claude/commands/optimize.md +20 -0
- package/packages/claude/commands/refactor.md +21 -0
- package/packages/claude/commands/review.md +18 -0
- package/packages/claude/commands/security.md +21 -0
- package/packages/claude/commands/ship.md +18 -0
- package/packages/claude/commands/stash.md +45 -0
- package/packages/claude/commands/test-generate.md +18 -0
- package/packages/claude/skills/brainstorming/SKILL.md +56 -0
- package/packages/claude/skills/code-review/SKILL.md +107 -0
- package/packages/claude/skills/code-review/code-reviewer.md +146 -0
- package/packages/claude/skills/condition-based-waiting/SKILL.md +122 -0
- package/packages/claude/skills/condition-based-waiting/example.ts +158 -0
- package/packages/claude/skills/docs-builder/SKILL.md +106 -0
- package/packages/claude/skills/docs-builder/references/templates.md +572 -0
- package/packages/claude/skills/root-cause-tracing/SKILL.md +176 -0
- package/packages/claude/skills/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/claude/skills/skill-creator/LICENSE.txt +202 -0
- package/packages/claude/skills/skill-creator/SKILL.md +211 -0
- package/packages/claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/packages/claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/packages/claude/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/claude/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/packages/claude/skills/systematic-debugging/SKILL.md +296 -0
- package/packages/claude/skills/systematic-debugging/test-academic.md +14 -0
- package/packages/claude/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/packages/claude/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/packages/claude/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/packages/claude/skills/test-driven-development/SKILL.md +392 -0
- package/packages/claude/skills/testing-anti-patterns/SKILL.md +304 -0
- package/packages/claude/skills/verification-before-completion/SKILL.md +152 -0
- package/packages/claude/variants.json +9 -0
- package/packages/droid/AGENTS.md +52 -0
- package/packages/droid/README.md +17 -0
- package/packages/droid/change_settings.json +61 -0
- package/packages/droid/commands/brainstorming.md +56 -0
- package/packages/droid/commands/code-review.md +107 -0
- package/packages/droid/commands/condition-based-waiting/example.ts +158 -0
- package/packages/droid/commands/condition-based-waiting.md +122 -0
- package/packages/droid/commands/debug.md +20 -0
- package/packages/droid/commands/docs-builder/templates.md +572 -0
- package/packages/droid/commands/docs-builder.md +106 -0
- package/packages/droid/commands/explain.md +18 -0
- package/packages/droid/commands/git-commit.md +14 -0
- package/packages/droid/commands/optimize.md +20 -0
- package/packages/droid/commands/refactor.md +21 -0
- package/packages/droid/commands/review.md +18 -0
- package/packages/droid/commands/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/droid/commands/root-cause-tracing.md +176 -0
- package/packages/droid/commands/security.md +21 -0
- package/packages/droid/commands/ship.md +18 -0
- package/packages/droid/commands/skill-creator/scripts/init_skill.py +303 -0
- package/packages/droid/commands/skill-creator/scripts/package_skill.py +110 -0
- package/packages/droid/commands/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/droid/commands/skill-creator.md +211 -0
- package/packages/droid/commands/stash.md +45 -0
- package/packages/droid/commands/systematic-debugging.md +297 -0
- package/packages/droid/commands/test-driven-development.md +390 -0
- package/packages/droid/commands/test-generate.md +18 -0
- package/packages/droid/commands/testing-anti-patterns.md +304 -0
- package/packages/droid/commands/verification-before-completion.md +152 -0
- package/packages/droid/droids/1-create-prd.md +170 -0
- package/packages/droid/droids/2-generate-tasks.md +190 -0
- package/packages/droid/droids/3-process-task-list.md +225 -0
- package/packages/droid/droids/code-developer.md +198 -0
- package/packages/droid/droids/context-builder.md +142 -0
- package/packages/droid/droids/feature-planner.md +199 -0
- package/packages/droid/droids/market-researcher.md +89 -0
- package/packages/droid/droids/orchestrator.md +116 -0
- package/packages/droid/droids/quality-assurance.md +115 -0
- package/packages/droid/droids/system-architect.md +135 -0
- package/packages/droid/droids/ui-designer.md +184 -0
- package/packages/droid/variants.json +8 -0
- package/packages/opencode/AGENTS.md +52 -0
- package/packages/opencode/README.md +17 -0
- package/packages/opencode/agent/1-create-prd.md +179 -0
- package/packages/opencode/agent/2-generate-tasks.md +194 -0
- package/packages/opencode/agent/3-process-task-list.md +229 -0
- package/packages/opencode/agent/code-developer.md +202 -0
- package/packages/opencode/agent/context-builder.md +146 -0
- package/packages/opencode/agent/feature-planner.md +203 -0
- package/packages/opencode/agent/market-researcher.md +93 -0
- package/packages/opencode/agent/orchestrator.md +120 -0
- package/packages/opencode/agent/quality-assurance.md +119 -0
- package/packages/opencode/agent/system-architect.md +139 -0
- package/packages/opencode/agent/ui-designer.md +188 -0
- package/packages/opencode/command/brainstorming.md +56 -0
- package/packages/opencode/command/code-review.md +107 -0
- package/packages/opencode/command/condition-based-waiting/example.ts +158 -0
- package/packages/opencode/command/condition-based-waiting.md +122 -0
- package/packages/opencode/command/debug.md +20 -0
- package/packages/opencode/command/docs-builder/templates.md +572 -0
- package/packages/opencode/command/docs-builder.md +106 -0
- package/packages/opencode/command/explain.md +18 -0
- package/packages/opencode/command/git-commit.md +14 -0
- package/packages/opencode/command/optimize.md +20 -0
- package/packages/opencode/command/refactor.md +21 -0
- package/packages/opencode/command/review.md +18 -0
- package/packages/opencode/command/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/opencode/command/root-cause-tracing.md +176 -0
- package/packages/opencode/command/security.md +21 -0
- package/packages/opencode/command/ship.md +18 -0
- package/packages/opencode/command/skill-creator/scripts/init_skill.py +303 -0
- package/packages/opencode/command/skill-creator/scripts/package_skill.py +110 -0
- package/packages/opencode/command/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/opencode/command/skill-creator.md +211 -0
- package/packages/opencode/command/stash.md +45 -0
- package/packages/opencode/command/systematic-debugging.md +297 -0
- package/packages/opencode/command/test-driven-development.md +390 -0
- package/packages/opencode/command/test-generate.md +18 -0
- package/packages/opencode/command/testing-anti-patterns.md +304 -0
- package/packages/opencode/command/verification-before-completion.md +152 -0
- package/packages/opencode/opencode.jsonc +201 -0
- package/packages/opencode/variants.json +8 -0
- package/packages/subagentic-manual.md +349 -0
- package/postinstall.js +21 -0
- package/tools/ampcode/manifest-template.json +14 -0
- package/tools/claude/manifest-template.json +14 -0
- package/tools/droid/manifest-template.json +14 -0
- package/tools/opencode/manifest-template.json +14 -0
package/cli.js
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Agentic Toolkit CLI Wrapper
|
|
5
|
+
*
|
|
6
|
+
* This script provides npx support for the agentic-toolkit package.
|
|
7
|
+
* It handles variant selection and provides helpful CLI output for users.
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* npx agentflow # Install standard variant (default)
|
|
11
|
+
* npx agentflow --variant=lite # Install lite variant via flag
|
|
12
|
+
* npx agentflow --variant=pro # Install pro variant via flag
|
|
13
|
+
* npx agkit # Shorter alias
|
|
14
|
+
* npx agentflow --help # Show help message
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const fs = require('fs');
|
|
18
|
+
const path = require('path');
|
|
19
|
+
|
|
20
|
+
// ANSI color codes for terminal output
|
|
21
|
+
const colors = {
|
|
22
|
+
reset: '\x1b[0m',
|
|
23
|
+
bright: '\x1b[1m',
|
|
24
|
+
green: '\x1b[32m',
|
|
25
|
+
blue: '\x1b[34m',
|
|
26
|
+
yellow: '\x1b[33m',
|
|
27
|
+
cyan: '\x1b[36m',
|
|
28
|
+
magenta: '\x1b[35m'
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Parse command line arguments
|
|
32
|
+
const args = process.argv.slice(2);
|
|
33
|
+
const hasHelpFlag = args.includes('--help') || args.includes('-h');
|
|
34
|
+
const variantFlag = args.find(arg => arg.startsWith('--variant='));
|
|
35
|
+
const requestedVariant = variantFlag ? variantFlag.split('=')[1] : null;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Display help message
|
|
39
|
+
*/
|
|
40
|
+
function showHelp() {
|
|
41
|
+
console.log(`
|
|
42
|
+
${colors.bright}${colors.cyan}Agentic Toolkit${colors.reset} - AI-Driven Software Development Toolkit
|
|
43
|
+
|
|
44
|
+
${colors.bright}DESCRIPTION:${colors.reset}
|
|
45
|
+
Comprehensive toolkit with 13 specialized agents and 14 powerful skills
|
|
46
|
+
for agile software development, product management, and content creation.
|
|
47
|
+
|
|
48
|
+
${colors.bright}VARIANTS:${colors.reset}
|
|
49
|
+
${colors.green}lite${colors.reset} 3 agents, 0 skills - Minimal dependencies
|
|
50
|
+
${colors.blue}standard${colors.reset} 13 agents, 8 skills - Recommended for most users
|
|
51
|
+
${colors.magenta}pro${colors.reset} 13 agents, 14 skills - Maximum capabilities
|
|
52
|
+
|
|
53
|
+
${colors.bright}USAGE:${colors.reset}
|
|
54
|
+
${colors.cyan}npx agentflow${colors.reset} # Install standard variant (default)
|
|
55
|
+
${colors.cyan}npx agentflow --variant=lite${colors.reset} # Install lite variant via flag
|
|
56
|
+
${colors.cyan}npx agentflow --variant=pro${colors.reset} # Install pro variant via flag
|
|
57
|
+
${colors.cyan}npx agkit${colors.reset} # Shorter alias
|
|
58
|
+
|
|
59
|
+
${colors.bright}CLAUDE CODE MARKETPLACE:${colors.reset}
|
|
60
|
+
You can also install this plugin directly in Claude Code:
|
|
61
|
+
|
|
62
|
+
${colors.cyan}/plugin marketplace add agentic-kit${colors.reset} # Standard variant
|
|
63
|
+
${colors.cyan}/plugin marketplace add agentic-kit-lite${colors.reset} # Lite variant
|
|
64
|
+
${colors.cyan}/plugin marketplace add agentic-kit-pro${colors.reset} # Pro variant
|
|
65
|
+
|
|
66
|
+
${colors.bright}AGENT INVOCATION:${colors.reset}
|
|
67
|
+
After installation, invoke agents using:
|
|
68
|
+
${colors.cyan}@Master:${colors.reset} [your request]
|
|
69
|
+
${colors.cyan}@Orchestrator:${colors.reset} [your request]
|
|
70
|
+
${colors.cyan}@ProductManager:${colors.reset} [your request]
|
|
71
|
+
|
|
72
|
+
${colors.bright}MORE INFORMATION:${colors.reset}
|
|
73
|
+
README: https://github.com/yourusername/agentic-toolkit#readme
|
|
74
|
+
Documentation: See README.md, QUICK-START.md, and VARIANTS.md
|
|
75
|
+
Issues: https://github.com/yourusername/agentic-toolkit/issues
|
|
76
|
+
|
|
77
|
+
${colors.bright}VERSION:${colors.reset}
|
|
78
|
+
1.0.0
|
|
79
|
+
`);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Display variant information
|
|
84
|
+
*/
|
|
85
|
+
function showVariantInfo(variant) {
|
|
86
|
+
const variantInfo = {
|
|
87
|
+
lite: {
|
|
88
|
+
name: 'Lite',
|
|
89
|
+
color: colors.green,
|
|
90
|
+
agents: 3,
|
|
91
|
+
skills: 0,
|
|
92
|
+
description: 'Minimal dependencies with 3 core agents',
|
|
93
|
+
agents_list: ['Master', 'Orchestrator', 'Scrum Master']
|
|
94
|
+
},
|
|
95
|
+
standard: {
|
|
96
|
+
name: 'Standard',
|
|
97
|
+
color: colors.blue,
|
|
98
|
+
agents: 13,
|
|
99
|
+
skills: 8,
|
|
100
|
+
description: 'All 13 agents with 8 core production skills',
|
|
101
|
+
skills_list: ['PDF', 'DOCX', 'XLSX', 'PPTX', 'Canvas Design', 'Theme Factory', 'Brand Guidelines', 'Internal Communications']
|
|
102
|
+
},
|
|
103
|
+
pro: {
|
|
104
|
+
name: 'Pro',
|
|
105
|
+
color: colors.magenta,
|
|
106
|
+
agents: 13,
|
|
107
|
+
skills: 16,
|
|
108
|
+
description: 'All 13 agents with complete skill set (16 skills)',
|
|
109
|
+
skills_list: ['All Standard skills', '+ 8 advanced skills']
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const info = variantInfo[variant];
|
|
114
|
+
|
|
115
|
+
console.log(`
|
|
116
|
+
${colors.bright}${info.color}Agentic Toolkit - ${info.name} Variant${colors.reset}
|
|
117
|
+
|
|
118
|
+
${colors.bright}SELECTED VARIANT:${colors.reset}
|
|
119
|
+
${info.color}${info.name}${colors.reset} - ${info.description}
|
|
120
|
+
|
|
121
|
+
${colors.bright}FEATURES:${colors.reset}
|
|
122
|
+
Agents: ${colors.cyan}${info.agents}${colors.reset}
|
|
123
|
+
Skills: ${colors.cyan}${info.skills}${colors.reset}
|
|
124
|
+
|
|
125
|
+
${colors.bright}INSTALLATION:${colors.reset}
|
|
126
|
+
This plugin is now ready to use with Claude Code.
|
|
127
|
+
|
|
128
|
+
${colors.bright}GETTING STARTED:${colors.reset}
|
|
129
|
+
1. Verify installation by typing: ${colors.cyan}@Master: *help${colors.reset}
|
|
130
|
+
2. See available agents and their capabilities
|
|
131
|
+
3. Read QUICK-START.md for example workflows
|
|
132
|
+
|
|
133
|
+
${colors.bright}EXAMPLE COMMANDS:${colors.reset}
|
|
134
|
+
${colors.cyan}@Master:${colors.reset} Show me what you can do
|
|
135
|
+
${colors.cyan}@Orchestrator:${colors.reset} Help me plan a new feature
|
|
136
|
+
${colors.cyan}@ProductManager:${colors.reset} Create a PRD for user authentication
|
|
137
|
+
|
|
138
|
+
${colors.bright}DOCUMENTATION:${colors.reset}
|
|
139
|
+
${colors.yellow}README.md${colors.reset} - Full documentation
|
|
140
|
+
${colors.yellow}QUICK-START.md${colors.reset} - Getting started guide
|
|
141
|
+
${colors.yellow}VARIANTS.md${colors.reset} - Variant comparison
|
|
142
|
+
${colors.yellow}TROUBLESHOOTING.md${colors.reset} - Common issues and solutions
|
|
143
|
+
|
|
144
|
+
${colors.green}Installation successful!${colors.reset}
|
|
145
|
+
`);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Detect variant from npm package tag or flags
|
|
150
|
+
*/
|
|
151
|
+
function detectVariant() {
|
|
152
|
+
// Check for explicit variant flag
|
|
153
|
+
if (requestedVariant) {
|
|
154
|
+
if (['lite', 'standard', 'pro'].includes(requestedVariant)) {
|
|
155
|
+
return requestedVariant;
|
|
156
|
+
} else {
|
|
157
|
+
console.error(`${colors.yellow}Warning:${colors.reset} Invalid variant '${requestedVariant}'. Using 'standard' instead.`);
|
|
158
|
+
console.error(`Valid variants: lite, standard, pro`);
|
|
159
|
+
return 'standard';
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Check npm package tag (when installed via npm install agentic-kit@lite, etc.)
|
|
164
|
+
// This would be available in process.env.npm_package_config_variant
|
|
165
|
+
// For now, default to 'standard'
|
|
166
|
+
return 'standard';
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Verify plugin manifest exists for selected variant
|
|
171
|
+
*/
|
|
172
|
+
function verifyManifest(variant) {
|
|
173
|
+
const manifestPath = path.join(__dirname, '.claude-plugin', `plugin-${variant}.json`);
|
|
174
|
+
|
|
175
|
+
if (!fs.existsSync(manifestPath)) {
|
|
176
|
+
console.error(`${colors.yellow}Warning:${colors.reset} Manifest file not found: ${manifestPath}`);
|
|
177
|
+
console.error(`This may indicate an incomplete installation.`);
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
try {
|
|
182
|
+
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
|
183
|
+
if (manifest.variant !== variant) {
|
|
184
|
+
console.error(`${colors.yellow}Warning:${colors.reset} Manifest variant mismatch. Expected '${variant}', found '${manifest.variant}'`);
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
return true;
|
|
188
|
+
} catch (error) {
|
|
189
|
+
console.error(`${colors.yellow}Error:${colors.reset} Failed to parse manifest: ${error.message}`);
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Main CLI execution
|
|
196
|
+
*/
|
|
197
|
+
function main() {
|
|
198
|
+
// Show help if requested
|
|
199
|
+
if (hasHelpFlag) {
|
|
200
|
+
showHelp();
|
|
201
|
+
process.exit(0);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Detect which variant to use
|
|
205
|
+
const variant = detectVariant();
|
|
206
|
+
|
|
207
|
+
// Display welcome message
|
|
208
|
+
console.log(`${colors.bright}${colors.cyan}Initializing Agentic Toolkit...${colors.reset}\n`);
|
|
209
|
+
|
|
210
|
+
// Verify the manifest exists
|
|
211
|
+
const manifestValid = verifyManifest(variant);
|
|
212
|
+
|
|
213
|
+
if (!manifestValid) {
|
|
214
|
+
console.error(`\n${colors.yellow}Installation may be incomplete. Please check the package contents.${colors.reset}`);
|
|
215
|
+
console.error(`If problems persist, reinstall with: ${colors.cyan}npm install agentic-kit@${variant}${colors.reset}\n`);
|
|
216
|
+
process.exit(1);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Show variant information
|
|
220
|
+
showVariantInfo(variant);
|
|
221
|
+
|
|
222
|
+
// For Claude Code plugin installation, the actual plugin loading
|
|
223
|
+
// is handled by Claude Code itself. This CLI just provides helpful
|
|
224
|
+
// output and verification.
|
|
225
|
+
|
|
226
|
+
process.exit(0);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// Run the CLI
|
|
230
|
+
main();
|
package/docs/.gitkeep
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Documentation directory
|