@happy-vibecode/cli 0.1.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/README.md +407 -0
- package/dist/index.js +9899 -0
- package/package.json +50 -0
- package/src/index.ts +34 -0
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@happy-vibecode/cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Happy Vibecode CLI — remote control for local AI agents",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/involvex/happy-vibecode.git"
|
|
8
|
+
},
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "involvex"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"bin": {
|
|
14
|
+
"happy-vibecode": "./src/index.ts",
|
|
15
|
+
"vibe": "./src/index.ts"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/index.js",
|
|
19
|
+
"src/index.ts",
|
|
20
|
+
"Readme.md",
|
|
21
|
+
"../../CHANGELOG.md"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "bun build ./src/index.ts --outfile dist/index.js --target bun",
|
|
25
|
+
"dev": "bun run --watch src/index.ts",
|
|
26
|
+
"lint": "eslint src",
|
|
27
|
+
"lint:fix": "eslint src --fix",
|
|
28
|
+
"prepublishOnly": "bun run lint:fix && bun run typecheck && bun run build",
|
|
29
|
+
"start": "bun run ./src/index.ts",
|
|
30
|
+
"typecheck": "tsc --noEmit"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@happy-vibecode/shared": "workspace:*",
|
|
34
|
+
"commander": "^14.0.0",
|
|
35
|
+
"execa": "latest",
|
|
36
|
+
"ora": "^6.3.1",
|
|
37
|
+
"ws": "^8.18.2"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@eslint/js": "^10.0.1",
|
|
41
|
+
"@types/bun": "^1.3.11",
|
|
42
|
+
"@types/node": "^25.5.0",
|
|
43
|
+
"@types/ws": "^8.5.14",
|
|
44
|
+
"eslint": "^10.1.0",
|
|
45
|
+
"globals": "^17.4.0",
|
|
46
|
+
"jiti": "latest",
|
|
47
|
+
"typescript": "^5",
|
|
48
|
+
"typescript-eslint": "^8.57.2"
|
|
49
|
+
}
|
|
50
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import {workspaceCommand} from './commands/workspace.js'
|
|
3
|
+
import pkg from '../package.json' with {type: 'json'}
|
|
4
|
+
import {connectCommand} from './commands/connect.js'
|
|
5
|
+
import {whoamiCommand} from './commands/whoami.js'
|
|
6
|
+
import {statusCommand} from './commands/status.js'
|
|
7
|
+
import {doctorCommand} from './commands/doctor.js'
|
|
8
|
+
import {configCommand} from './commands/config.js'
|
|
9
|
+
import {loginCommand} from './commands/login.js'
|
|
10
|
+
import {initCommand} from './commands/init.js'
|
|
11
|
+
import {setDebug} from './utils/log.js'
|
|
12
|
+
import {program} from 'commander'
|
|
13
|
+
|
|
14
|
+
program
|
|
15
|
+
.name('happy')
|
|
16
|
+
.description('Happy Vibecode — remote control for local AI agents')
|
|
17
|
+
.version(pkg.version)
|
|
18
|
+
.option('--debug', 'Enable debug logging with enhanced output')
|
|
19
|
+
|
|
20
|
+
program.hook('preAction', thisCommand => {
|
|
21
|
+
const opts = thisCommand.opts()
|
|
22
|
+
if (opts.debug) setDebug(true)
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
program.addCommand(loginCommand)
|
|
26
|
+
program.addCommand(connectCommand)
|
|
27
|
+
program.addCommand(initCommand)
|
|
28
|
+
program.addCommand(workspaceCommand)
|
|
29
|
+
program.addCommand(configCommand)
|
|
30
|
+
program.addCommand(doctorCommand)
|
|
31
|
+
program.addCommand(statusCommand)
|
|
32
|
+
program.addCommand(whoamiCommand)
|
|
33
|
+
|
|
34
|
+
program.parseAsync(process.argv)
|