d1337-kit 3.0.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/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
- package/.agent/ARCHITECTURE.md +288 -0
- package/.agent/agents/backend-specialist.md +240 -0
- package/.agent/agents/code-archaeologist.md +104 -0
- package/.agent/agents/database-architect.md +224 -0
- package/.agent/agents/debugger.md +225 -0
- package/.agent/agents/devops-engineer.md +238 -0
- package/.agent/agents/documentation-writer.md +102 -0
- package/.agent/agents/explorer-agent.md +76 -0
- package/.agent/agents/frontend-specialist.md +595 -0
- package/.agent/agents/game-developer.md +160 -0
- package/.agent/agents/mobile-developer.md +377 -0
- package/.agent/agents/orchestrator.md +418 -0
- package/.agent/agents/penetration-tester.md +370 -0
- package/.agent/agents/performance-optimizer.md +185 -0
- package/.agent/agents/product-manager.md +110 -0
- package/.agent/agents/product-owner.md +93 -0
- package/.agent/agents/project-planner.md +408 -0
- package/.agent/agents/qa-automation-engineer.md +101 -0
- package/.agent/agents/security-auditor.md +251 -0
- package/.agent/agents/seo-specialist.md +109 -0
- package/.agent/agents/test-engineer.md +156 -0
- package/.agent/mcp_config.json +25 -0
- package/.agent/modules/README.md +74 -0
- package/.agent/modules/installed/README.md +9 -0
- package/.agent/modules/module-template/SKILL.md +40 -0
- package/.agent/modules/module-template/scripts/README.md +11 -0
- package/.agent/modules/registry.md +34 -0
- package/.agent/rules/GEMINI.md +206 -0
- package/.agent/scripts/auto_preview.py +148 -0
- package/.agent/scripts/checklist.py +217 -0
- package/.agent/scripts/session_manager.py +120 -0
- package/.agent/scripts/verify_all.py +327 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +41 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/bash-linux/SKILL.md +199 -0
- package/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/.agent/skills/brainstorming/SKILL.md +163 -0
- package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/.agent/skills/database-design/SKILL.md +52 -0
- package/.agent/skills/database-design/database-selection.md +43 -0
- package/.agent/skills/database-design/indexing.md +39 -0
- package/.agent/skills/database-design/migrations.md +48 -0
- package/.agent/skills/database-design/optimization.md +36 -0
- package/.agent/skills/database-design/orm-selection.md +30 -0
- package/.agent/skills/database-design/schema-design.md +56 -0
- package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/documentation-templates/SKILL.md +194 -0
- package/.agent/skills/frontend-design/SKILL.md +452 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agent/skills/game-development/SKILL.md +167 -0
- package/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/intelligent-routing/SKILL.md +335 -0
- package/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
- package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/mobile-design/SKILL.md +394 -0
- package/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/.agent/skills/mobile-design/platform-android.md +666 -0
- package/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
- package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/.agent/skills/nextjs-react-expert/9-cache-components.md +103 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +293 -0
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/.agent/skills/plan-writing/SKILL.md +152 -0
- package/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/.agent/skills/python-patterns/SKILL.md +441 -0
- package/.agent/skills/red-team-tactics/SKILL.md +388 -0
- package/.agent/skills/rust-pro/SKILL.md +176 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
- package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/.agent/skills/server-management/SKILL.md +161 -0
- package/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
- package/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
- package/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.agent/workflows/brainstorm.md +113 -0
- package/.agent/workflows/create.md +59 -0
- package/.agent/workflows/cve-intel.md +84 -0
- package/.agent/workflows/debug.md +103 -0
- package/.agent/workflows/deploy.md +176 -0
- package/.agent/workflows/enhance.md +63 -0
- package/.agent/workflows/orchestrate.md +237 -0
- package/.agent/workflows/plan.md +89 -0
- package/.agent/workflows/preview.md +81 -0
- package/.agent/workflows/recon.md +116 -0
- package/.agent/workflows/scan.md +107 -0
- package/.agent/workflows/status.md +86 -0
- package/.agent/workflows/test.md +144 -0
- package/.agent/workflows/ui-ux-pro-max.md +296 -0
- package/LICENSE +21 -0
- package/README.md +146 -0
- package/bin/d1337-init.js +236 -0
- package/package.json +31 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* D1337 CIPHER-OSC V3 — Agent Installer
|
|
5
|
+
* Deploy D1337 .agent/ ke project manapun
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* npx d1337-kit init # Install ke current directory
|
|
9
|
+
* npx d1337-kit init ./path # Install ke path tertentu
|
|
10
|
+
* npx d1337-kit update # Update existing installation
|
|
11
|
+
* npx d1337-kit status # Check installation status
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const fs = require('fs');
|
|
15
|
+
const path = require('path');
|
|
16
|
+
|
|
17
|
+
const BANNER = `
|
|
18
|
+
╔══════════════════════════════════════════════════╗
|
|
19
|
+
║ D1337 CIPHER-OSC V3 — Agent Deployment System ║
|
|
20
|
+
║ Antigravity Kit (Rombak Brutal Edition) ║
|
|
21
|
+
╚══════════════════════════════════════════════════╝
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
const COLORS = {
|
|
25
|
+
red: '\x1b[31m',
|
|
26
|
+
green: '\x1b[32m',
|
|
27
|
+
yellow: '\x1b[33m',
|
|
28
|
+
cyan: '\x1b[36m',
|
|
29
|
+
white: '\x1b[37m',
|
|
30
|
+
bold: '\x1b[1m',
|
|
31
|
+
reset: '\x1b[0m'
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
function log(msg, color = 'white') {
|
|
35
|
+
console.log(`${COLORS[color]}${msg}${COLORS.reset}`);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function logSuccess(msg) { log(` ✅ ${msg}`, 'green'); }
|
|
39
|
+
function logWarn(msg) { log(` ⚠️ ${msg}`, 'yellow'); }
|
|
40
|
+
function logError(msg) { log(` ❌ ${msg}`, 'red'); }
|
|
41
|
+
function logInfo(msg) { log(` 📦 ${msg}`, 'cyan'); }
|
|
42
|
+
|
|
43
|
+
// Source: .agent/ folder relative to this script's package
|
|
44
|
+
const PACKAGE_ROOT = path.resolve(__dirname, '..');
|
|
45
|
+
const SOURCE_AGENT = path.join(PACKAGE_ROOT, '.agent');
|
|
46
|
+
|
|
47
|
+
function copyRecursive(src, dest, stats = { files: 0, dirs: 0, skipped: 0 }) {
|
|
48
|
+
if (!fs.existsSync(src)) {
|
|
49
|
+
logError(`Source not found: ${src}`);
|
|
50
|
+
return stats;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
54
|
+
|
|
55
|
+
if (!fs.existsSync(dest)) {
|
|
56
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
57
|
+
stats.dirs++;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
for (const entry of entries) {
|
|
61
|
+
const srcPath = path.join(src, entry.name);
|
|
62
|
+
const destPath = path.join(dest, entry.name);
|
|
63
|
+
|
|
64
|
+
// Skip node_modules, .git, etc
|
|
65
|
+
if (['.git', 'node_modules', '__pycache__'].includes(entry.name)) {
|
|
66
|
+
stats.skipped++;
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (entry.isDirectory()) {
|
|
71
|
+
copyRecursive(srcPath, destPath, stats);
|
|
72
|
+
} else {
|
|
73
|
+
fs.copyFileSync(srcPath, destPath);
|
|
74
|
+
stats.files++;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return stats;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function init(targetDir) {
|
|
82
|
+
const destAgent = path.join(targetDir, '.agent');
|
|
83
|
+
|
|
84
|
+
console.log(BANNER);
|
|
85
|
+
log('🔫 D1337 Agent Deployment — INITIALIZING...', 'bold');
|
|
86
|
+
console.log('');
|
|
87
|
+
|
|
88
|
+
// Check if .agent already exists
|
|
89
|
+
if (fs.existsSync(destAgent)) {
|
|
90
|
+
logWarn('.agent/ sudah ada di target directory');
|
|
91
|
+
logWarn('Pakai "d1337-kit update" buat overwrite');
|
|
92
|
+
logInfo(`Target: ${targetDir}`);
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Check source exists
|
|
97
|
+
if (!fs.existsSync(SOURCE_AGENT)) {
|
|
98
|
+
logError('.agent/ source tidak ditemukan di package');
|
|
99
|
+
logError(`Expected: ${SOURCE_AGENT}`);
|
|
100
|
+
process.exit(1);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Deploy
|
|
104
|
+
logInfo(`Source: ${SOURCE_AGENT}`);
|
|
105
|
+
logInfo(`Target: ${destAgent}`);
|
|
106
|
+
console.log('');
|
|
107
|
+
|
|
108
|
+
const stats = copyRecursive(SOURCE_AGENT, destAgent);
|
|
109
|
+
|
|
110
|
+
console.log('');
|
|
111
|
+
logSuccess(`Deployed: ${stats.files} files, ${stats.dirs} directories`);
|
|
112
|
+
|
|
113
|
+
console.log('');
|
|
114
|
+
log('📂 Structure yang di-deploy:', 'cyan');
|
|
115
|
+
log(' .agent/', 'white');
|
|
116
|
+
log(' ├── agents/ # 20 D1337 Specialist Agents', 'white');
|
|
117
|
+
log(' ├── skills/ # 40+ Skills (Red Team Elite)', 'white');
|
|
118
|
+
log(' ├── workflows/ # 14 Workflows (3 Offensive)', 'white');
|
|
119
|
+
log(' ├── modules/ # Plug-and-Play Module System', 'white');
|
|
120
|
+
log(' ├── rules/ # GEMINI.md (D1337 Protocol)', 'white');
|
|
121
|
+
log(' └── ARCHITECTURE.md', 'white');
|
|
122
|
+
|
|
123
|
+
console.log('');
|
|
124
|
+
log('🔥 D1337 CIPHER-OSC V3 deployed. Gas Abangda! 🔥', 'green');
|
|
125
|
+
console.log('');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function update(targetDir) {
|
|
129
|
+
const destAgent = path.join(targetDir, '.agent');
|
|
130
|
+
|
|
131
|
+
console.log(BANNER);
|
|
132
|
+
log('🔄 D1337 Agent UPDATE — Overwriting...', 'bold');
|
|
133
|
+
console.log('');
|
|
134
|
+
|
|
135
|
+
if (!fs.existsSync(destAgent)) {
|
|
136
|
+
logWarn('.agent/ belum ada. Pakai "d1337-kit init" dulu');
|
|
137
|
+
process.exit(1);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (!fs.existsSync(SOURCE_AGENT)) {
|
|
141
|
+
logError('.agent/ source tidak ditemukan');
|
|
142
|
+
process.exit(1);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Backup existing
|
|
146
|
+
const backupDir = path.join(targetDir, '.agent.backup');
|
|
147
|
+
if (fs.existsSync(backupDir)) {
|
|
148
|
+
fs.rmSync(backupDir, { recursive: true, force: true });
|
|
149
|
+
}
|
|
150
|
+
fs.renameSync(destAgent, backupDir);
|
|
151
|
+
logInfo(`Backup: ${backupDir}`);
|
|
152
|
+
|
|
153
|
+
// Deploy fresh
|
|
154
|
+
const stats = copyRecursive(SOURCE_AGENT, destAgent);
|
|
155
|
+
|
|
156
|
+
console.log('');
|
|
157
|
+
logSuccess(`Updated: ${stats.files} files, ${stats.dirs} directories`);
|
|
158
|
+
logInfo(`Backup tersimpan di: ${backupDir}`);
|
|
159
|
+
|
|
160
|
+
console.log('');
|
|
161
|
+
log('🔥 D1337 updated. Backup ada kalau mau rollback. 🔥', 'green');
|
|
162
|
+
console.log('');
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function status(targetDir) {
|
|
166
|
+
const destAgent = path.join(targetDir, '.agent');
|
|
167
|
+
|
|
168
|
+
console.log(BANNER);
|
|
169
|
+
|
|
170
|
+
if (!fs.existsSync(destAgent)) {
|
|
171
|
+
logError('D1337 agents BELUM di-install di directory ini');
|
|
172
|
+
logInfo(`Run: d1337-kit init`);
|
|
173
|
+
process.exit(0);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Count files
|
|
177
|
+
function countDir(dir) {
|
|
178
|
+
if (!fs.existsSync(dir)) return 0;
|
|
179
|
+
return fs.readdirSync(dir).filter(f => f.endsWith('.md')).length;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const agents = countDir(path.join(destAgent, 'agents'));
|
|
183
|
+
const skills = fs.existsSync(path.join(destAgent, 'skills'))
|
|
184
|
+
? fs.readdirSync(path.join(destAgent, 'skills'), { withFileTypes: true })
|
|
185
|
+
.filter(d => d.isDirectory()).length
|
|
186
|
+
: 0;
|
|
187
|
+
const workflows = countDir(path.join(destAgent, 'workflows'));
|
|
188
|
+
const hasGemini = fs.existsSync(path.join(destAgent, 'rules', 'GEMINI.md'));
|
|
189
|
+
const hasModules = fs.existsSync(path.join(destAgent, 'modules'));
|
|
190
|
+
|
|
191
|
+
log('📊 D1337 Installation Status:', 'cyan');
|
|
192
|
+
console.log('');
|
|
193
|
+
logSuccess(`Agents: ${agents} installed`);
|
|
194
|
+
logSuccess(`Skills: ${skills} installed`);
|
|
195
|
+
logSuccess(`Workflows: ${workflows} installed`);
|
|
196
|
+
logSuccess(`GEMINI.md: ${hasGemini ? 'ACTIVE' : 'MISSING'}`);
|
|
197
|
+
logSuccess(`Modules: ${hasModules ? 'READY' : 'NOT INSTALLED'}`);
|
|
198
|
+
console.log('');
|
|
199
|
+
|
|
200
|
+
if (hasGemini && agents >= 20) {
|
|
201
|
+
log('🔥 D1337 CIPHER-OSC V3 — FULLY OPERATIONAL 🔥', 'green');
|
|
202
|
+
} else {
|
|
203
|
+
logWarn('Installation incomplete — run "d1337-kit update"');
|
|
204
|
+
}
|
|
205
|
+
console.log('');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// ==== CLI Parser ====
|
|
209
|
+
const args = process.argv.slice(2);
|
|
210
|
+
const command = args[0] || 'init';
|
|
211
|
+
const targetPath = path.resolve(args[1] || process.cwd());
|
|
212
|
+
|
|
213
|
+
switch (command) {
|
|
214
|
+
case 'init':
|
|
215
|
+
init(targetPath);
|
|
216
|
+
break;
|
|
217
|
+
case 'update':
|
|
218
|
+
update(targetPath);
|
|
219
|
+
break;
|
|
220
|
+
case 'status':
|
|
221
|
+
status(targetPath);
|
|
222
|
+
break;
|
|
223
|
+
case '--help':
|
|
224
|
+
case '-h':
|
|
225
|
+
console.log(BANNER);
|
|
226
|
+
log('Commands:', 'cyan');
|
|
227
|
+
log(' d1337-kit init [path] Deploy D1337 agents ke project', 'white');
|
|
228
|
+
log(' d1337-kit update [path] Update existing installation', 'white');
|
|
229
|
+
log(' d1337-kit status [path] Check installation status', 'white');
|
|
230
|
+
console.log('');
|
|
231
|
+
break;
|
|
232
|
+
default:
|
|
233
|
+
logError(`Unknown command: ${command}`);
|
|
234
|
+
log(' Pakai: d1337-kit init | update | status', 'yellow');
|
|
235
|
+
process.exit(1);
|
|
236
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "d1337-kit",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "D1337 CIPHER-OSC V3 — Elite AI Agent Framework",
|
|
5
|
+
"bin": {
|
|
6
|
+
"d1337-kit": "./bin/d1337-init.js"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/vudovn/antigravity-kit.git"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"d1337",
|
|
14
|
+
"cipher-osc",
|
|
15
|
+
"ai-agent",
|
|
16
|
+
"red-team",
|
|
17
|
+
"offensive-security",
|
|
18
|
+
"antigravity",
|
|
19
|
+
"gemini",
|
|
20
|
+
"pentesting"
|
|
21
|
+
],
|
|
22
|
+
"author": "D1337 Sovereign Labs",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"files": [
|
|
25
|
+
"bin/",
|
|
26
|
+
".agent/"
|
|
27
|
+
],
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
}
|
|
31
|
+
}
|