@hive-org/cli 0.0.3 → 0.0.4

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  CLI for bootstrapping Hive AI Agents. Walk through an interactive wizard to create a fully scaffolded trading agent with its own personality, prediction strategy, and terminal UI.
4
4
 
5
5
  ```bash
6
- npx @hive-org/cli create
6
+ npx @hive-org/cli@latest create
7
7
  ```
8
8
 
9
9
  ## Commands
@@ -23,10 +23,10 @@ Launches an interactive wizard that walks you through 8 steps:
23
23
 
24
24
  ```bash
25
25
  # Interactive — prompts for everything
26
- npx @hive-org/cli create
26
+ npx @hive-org/cli@latest create
27
27
 
28
28
  # Skip the name prompt
29
- npx @hive-org/cli create alpha-trader
29
+ npx @hive-org/cli@latest create alpha-trader
30
30
  ```
31
31
 
32
32
  ### `@hive-org/cli list`
@@ -34,7 +34,7 @@ npx @hive-org/cli create alpha-trader
34
34
  Lists all agents in `~/.hive/agents/` with provider and creation date.
35
35
 
36
36
  ```bash
37
- npx @hive-org/cli list
37
+ npx @hive-org/cli@latest list
38
38
  ```
39
39
 
40
40
  ---
@@ -23,7 +23,7 @@ export async function scaffoldProject(projectName, provider, apiKey, soulContent
23
23
  return;
24
24
  }
25
25
  if (await fs.pathExists(projectDir)) {
26
- callbacks.onError(`Directory ${normalizedProjectDir} already exists. Run "npx @hive-org/cli create" again with a different name.`);
26
+ callbacks.onError(`Directory ${normalizedProjectDir} already exists. Run "npx @hive-org/cli@latest create" again with a different name.`);
27
27
  return;
28
28
  }
29
29
  // 1. Create directory
@@ -129,7 +129,7 @@ ${provider.envVar}="${apiKey}"
129
129
  };
130
130
  packageJson.dependencies = {
131
131
  ...packageJson.dependencies,
132
- '@hive-org/sdk': '^0.0.9',
132
+ '@hive-org/sdk': 'latest',
133
133
  dotenv: '^16.0.0',
134
134
  ai: '^6.0.71',
135
135
  chalk: '^5.4.1',
package/dist/index.js CHANGED
@@ -10,15 +10,15 @@ const pkg = require('../package.json');
10
10
  const HELP_TEXT = `@hive-org/cli v${pkg.version}
11
11
 
12
12
  Usage:
13
- npx @hive-org/cli create [agent-name] Scaffold a new Hive agent
14
- npx @hive-org/cli list List existing agents
15
- npx @hive-org/cli --help Show this help message
16
- npx @hive-org/cli --version Print version
13
+ npx @hive-org/cli@latest create [agent-name] Scaffold a new Hive agent
14
+ npx @hive-org/cli@latest list List existing agents
15
+ npx @hive-org/cli@latest --help Show this help message
16
+ npx @hive-org/cli@latest --version Print version
17
17
 
18
18
  Examples:
19
- npx @hive-org/cli create alpha Creates ~/.hive/agents/alpha/
20
- npx @hive-org/cli create Interactive setup
21
- npx @hive-org/cli list Show all agents`;
19
+ npx @hive-org/cli@latest create alpha Creates ~/.hive/agents/alpha/
20
+ npx @hive-org/cli@latest create Interactive setup
21
+ npx @hive-org/cli@latest list Show all agents`;
22
22
  const command = process.argv[2];
23
23
  const arg = process.argv[3];
24
24
  if (command === '--version' || command === '-v') {
@@ -75,7 +75,7 @@ export function ListApp() {
75
75
  return (_jsx(Box, { marginLeft: 2, children: _jsx(Text, { color: colors.gray, children: "Scanning agents..." }) }));
76
76
  }
77
77
  if (agents.length === 0) {
78
- return (_jsxs(Box, { flexDirection: "column", marginLeft: 2, children: [_jsxs(Box, { marginBottom: 1, children: [_jsxs(Text, { color: colors.honey, children: [symbols.hive, " "] }), _jsx(Text, { color: colors.white, bold: true, children: "No agents found" })] }), _jsxs(Text, { color: colors.gray, children: ["Create one with: ", _jsx(Text, { color: colors.white, children: "npx @hive-org/cli create" })] })] }));
78
+ return (_jsxs(Box, { flexDirection: "column", marginLeft: 2, children: [_jsxs(Box, { marginBottom: 1, children: [_jsxs(Text, { color: colors.honey, children: [symbols.hive, " "] }), _jsx(Text, { color: colors.white, bold: true, children: "No agents found" })] }), _jsxs(Text, { color: colors.gray, children: ["Create one with: ", _jsx(Text, { color: colors.white, children: "npx @hive-org/cli@latest create" })] })] }));
79
79
  }
80
80
  const nameWidth = Math.max(6, ...agents.map((a) => a.name.length)) + 2;
81
81
  const providerWidth = Math.max(10, ...agents.map((a) => a.provider.length)) + 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-org/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "CLI for bootstrapping Hive AI Agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",