@hanzo/dev 1.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/dist/cli/dev.js +3289 -0
- package/package.json +59 -0
- package/src/cli/dev.ts +36 -0
- package/tsconfig.cli.json +25 -0
- package/tsconfig.json +37 -0
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hanzo/dev",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Hanzo Dev - Meta AI development CLI that manages and runs all LLMs and CLI tools",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"dev": "./dist/cli/dev.js",
|
|
8
|
+
"hanzo-dev": "./dist/cli/dev.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "esbuild src/cli/dev.ts --bundle --platform=node --target=node16 --outfile=dist/cli/dev.js --external:vscode --external:inquirer --banner:js='#!/usr/bin/env node' && chmod +x dist/cli/dev.js",
|
|
12
|
+
"dev": "tsc --watch",
|
|
13
|
+
"test": "jest",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ai",
|
|
18
|
+
"llm",
|
|
19
|
+
"cli",
|
|
20
|
+
"claude",
|
|
21
|
+
"openai",
|
|
22
|
+
"gemini",
|
|
23
|
+
"aider",
|
|
24
|
+
"openhands",
|
|
25
|
+
"development",
|
|
26
|
+
"tools"
|
|
27
|
+
],
|
|
28
|
+
"author": "Hanzo AI",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"chalk": "^5.3.0",
|
|
32
|
+
"commander": "^11.1.0",
|
|
33
|
+
"inquirer": "^9.2.12",
|
|
34
|
+
"ora": "^7.0.1",
|
|
35
|
+
"uuid": "^9.0.1",
|
|
36
|
+
"ws": "^8.16.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/inquirer": "^9.0.8",
|
|
40
|
+
"@types/node": "^20.19.5",
|
|
41
|
+
"@types/uuid": "^9.0.7",
|
|
42
|
+
"@types/ws": "^8.5.10",
|
|
43
|
+
"esbuild": "^0.25.6",
|
|
44
|
+
"jest": "^29.7.0",
|
|
45
|
+
"typescript": "^5.3.3"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=16.0.0"
|
|
49
|
+
},
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "https://github.com/hanzoai/dev.git",
|
|
53
|
+
"directory": "packages/dev"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://hanzo.ai",
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/hanzoai/dev/issues"
|
|
58
|
+
}
|
|
59
|
+
}
|
package/src/cli/dev.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
|
|
5
|
+
const program = new Command();
|
|
6
|
+
|
|
7
|
+
program
|
|
8
|
+
.name('@hanzo/dev')
|
|
9
|
+
.description('Hanzo Dev - Meta AI development CLI')
|
|
10
|
+
.version('1.0.0');
|
|
11
|
+
|
|
12
|
+
program
|
|
13
|
+
.command('claude [query...]')
|
|
14
|
+
.description('Run Claude AI')
|
|
15
|
+
.action((query) => {
|
|
16
|
+
console.log(chalk.blue('🤖 Running Claude AI...'));
|
|
17
|
+
console.log('Query:', query.join(' '));
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
program
|
|
21
|
+
.command('codex [query...]')
|
|
22
|
+
.description('Run OpenAI Codex')
|
|
23
|
+
.action((query) => {
|
|
24
|
+
console.log(chalk.green('🤖 Running OpenAI Codex...'));
|
|
25
|
+
console.log('Query:', query.join(' '));
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
program
|
|
29
|
+
.command('gemini [query...]')
|
|
30
|
+
.description('Run Google Gemini')
|
|
31
|
+
.action((query) => {
|
|
32
|
+
console.log(chalk.yellow('🤖 Running Google Gemini...'));
|
|
33
|
+
console.log('Query:', query.join(' '));
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
program.parse();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": ["ES2020", "DOM"],
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": "../../src",
|
|
8
|
+
"strict": false,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
"typeRoots": ["../../node_modules/@types", "./node_modules/@types"]
|
|
15
|
+
},
|
|
16
|
+
"include": [
|
|
17
|
+
"../../src/cli/**/*",
|
|
18
|
+
"../../src/cli-tools/**/*"
|
|
19
|
+
],
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"**/*.test.ts",
|
|
23
|
+
"**/*.spec.ts"
|
|
24
|
+
]
|
|
25
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": ["ES2020"],
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": "../../src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"declarationMap": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"removeComments": false,
|
|
17
|
+
"noImplicitAny": true,
|
|
18
|
+
"strictNullChecks": true,
|
|
19
|
+
"strictFunctionTypes": true,
|
|
20
|
+
"noImplicitThis": true,
|
|
21
|
+
"alwaysStrict": true,
|
|
22
|
+
"noUnusedLocals": true,
|
|
23
|
+
"noUnusedParameters": true,
|
|
24
|
+
"noImplicitReturns": true,
|
|
25
|
+
"noFallthroughCasesInSwitch": true
|
|
26
|
+
},
|
|
27
|
+
"include": [
|
|
28
|
+
"../../src/cli/**/*",
|
|
29
|
+
"../../src/cli-tools/**/*"
|
|
30
|
+
],
|
|
31
|
+
"exclude": [
|
|
32
|
+
"node_modules",
|
|
33
|
+
"dist",
|
|
34
|
+
"**/*.test.ts",
|
|
35
|
+
"**/*.spec.ts"
|
|
36
|
+
]
|
|
37
|
+
}
|