vibegroup 0.1.1 → 0.1.2

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.js CHANGED
@@ -65,6 +65,67 @@ function isLoggedIn(tokens) {
65
65
  }
66
66
  var init_auth = () => {};
67
67
 
68
+ // package.json
69
+ var package_default;
70
+ var init_package = __esm(() => {
71
+ package_default = {
72
+ name: "vibegroup",
73
+ version: "0.1.2",
74
+ description: "Talk to your teammates' Claude Code agents — agent-to-agent collaboration for Claude Code over a shared channel.",
75
+ type: "module",
76
+ bin: {
77
+ vibegroup: "dist/cli.js"
78
+ },
79
+ files: [
80
+ "dist/cli.js",
81
+ "README.md",
82
+ "scripts/postinstall.mjs",
83
+ ".claude-plugin/marketplace.json",
84
+ "plugin/.claude-plugin",
85
+ "plugin/.mcp.json",
86
+ "plugin/dist",
87
+ "plugin/commands",
88
+ "plugin/hooks"
89
+ ],
90
+ engines: {
91
+ node: ">=18"
92
+ },
93
+ license: "UNLICENSED",
94
+ homepage: "https://vibegroup.sh",
95
+ bugs: {
96
+ url: "https://vibegroup.sh"
97
+ },
98
+ keywords: ["claude", "claude-code", "agents", "collaboration", "cli", "vibegroup"],
99
+ publishConfig: {
100
+ access: "public"
101
+ },
102
+ workspaces: ["packages/*", "plugin"],
103
+ scripts: {
104
+ "build:relay": "cd packages/relay && bun run build",
105
+ "build:plugin": "cd plugin && bun run build",
106
+ "build:cli": "bun run scripts/build-cli.ts",
107
+ "build:server": "cd packages/server && bun run build",
108
+ build: "bun run build:relay && bun run build:server && bun run build:plugin && bun run build:cli",
109
+ prepublishOnly: "bun run build:plugin && bun run build:cli",
110
+ postinstall: "node scripts/postinstall.mjs",
111
+ "test:cli": "bun test ./test/",
112
+ "test:protocol": "cd packages/protocol && bun test",
113
+ "test:relay": "cd packages/relay && bun test",
114
+ "test:server": "cd packages/server && bun test",
115
+ "test:plugin": "cd plugin && bun test",
116
+ test: "bun run test:cli && bun run test:protocol && bun run test:relay && bun run test:server && bun run test:plugin"
117
+ },
118
+ dependencies: {
119
+ "@inkjs/ui": "^2.0.0",
120
+ ink: "^7.1.0",
121
+ react: "^19.2.7"
122
+ },
123
+ devDependencies: {
124
+ "@types/react": "^19.2.17"
125
+ }
126
+ };
127
+ });
128
+
68
129
  // src/lib/allowlist.ts
69
130
  function managedSettingsPath(plat = process.platform) {
70
131
  if (plat === "darwin")
@@ -863,7 +924,7 @@ async function run(argv, env = process.env) {
863
924
  return 1;
864
925
  }
865
926
  }
866
- var VERSION = "0.1.0", DEFAULT_API_BASE2 = "https://api.vibegroup.sh", HELP = `vibegroup — talk to your teammates' Claude Code agents.
927
+ var VERSION, DEFAULT_API_BASE2 = "https://api.vibegroup.sh", HELP = `vibegroup — talk to your teammates' Claude Code agents.
867
928
 
868
929
  Usage: vibegroup <command> [options]
869
930
 
@@ -882,6 +943,8 @@ Commands:
882
943
  Run a command with --help for more.`;
883
944
  var init_cli = __esm(() => {
884
945
  init_auth();
946
+ init_package();
947
+ VERSION = package_default.version;
885
948
  });
886
949
 
887
950
  // src/bin.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibegroup",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Talk to your teammates' Claude Code agents — agent-to-agent collaboration for Claude Code over a shared channel.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,6 +9,7 @@
9
9
  "files": [
10
10
  "dist/cli.js",
11
11
  "README.md",
12
+ "scripts/postinstall.mjs",
12
13
  ".claude-plugin/marketplace.json",
13
14
  "plugin/.claude-plugin",
14
15
  "plugin/.mcp.json",
@@ -36,6 +37,7 @@
36
37
  "build:server": "cd packages/server && bun run build",
37
38
  "build": "bun run build:relay && bun run build:server && bun run build:plugin && bun run build:cli",
38
39
  "prepublishOnly": "bun run build:plugin && bun run build:cli",
40
+ "postinstall": "node scripts/postinstall.mjs",
39
41
  "test:cli": "bun test ./test/",
40
42
  "test:protocol": "cd packages/protocol && bun test",
41
43
  "test:relay": "cd packages/relay && bun test",
@@ -0,0 +1,38 @@
1
+ // Best-effort: after `npm i -g vibegroup`, register the plugin into Claude Code so
2
+ // it's usable immediately. The channel allowlist (needs sudo) and sign-in still
3
+ // happen in `vibegroup init`. Never fails the install — only global installs act.
4
+ import { spawnSync } from 'node:child_process'
5
+ import { fileURLToPath } from 'node:url'
6
+ import { dirname, join } from 'node:path'
7
+
8
+ try {
9
+ if (process.env.npm_config_global !== 'true') process.exit(0)
10
+
11
+ const has = (cmd) => {
12
+ try {
13
+ return spawnSync(cmd, ['--version'], { stdio: 'ignore' }).status === 0
14
+ } catch {
15
+ return false
16
+ }
17
+ }
18
+
19
+ if (!has('claude')) {
20
+ console.log('\nvibegroup installed. Install Claude Code, then run `vibegroup init` to set up the plugin + channel.\n')
21
+ process.exit(0)
22
+ }
23
+
24
+ const list = spawnSync('claude', ['plugin', 'list'], { encoding: 'utf8' })
25
+ if (list.status === 0 && /vibegroup@vibegroup/.test(list.stdout ?? '')) {
26
+ console.log('\nvibegroup plugin already registered. Finish setup any time with `vibegroup init`.\n')
27
+ process.exit(0)
28
+ }
29
+
30
+ const root = join(dirname(fileURLToPath(import.meta.url)), '..')
31
+ console.log('\nRegistering the vibegroup plugin in Claude Code…')
32
+ spawnSync('claude', ['plugin', 'marketplace', 'add', root], { stdio: 'inherit' })
33
+ spawnSync('claude', ['plugin', 'install', 'vibegroup@vibegroup'], { stdio: 'inherit' })
34
+ console.log('\n✓ Plugin registered. Next: run `vibegroup init` (enables the channel + signs you in).\n')
35
+ } catch {
36
+ // never break the install
37
+ process.exit(0)
38
+ }