@hive-org/cli
Advanced tools
@@ -26,3 +26,3 @@ import fs from 'fs-extra'; | ||
| if (await fs.pathExists(projectDir)) { | ||
| callbacks.onError(`Directory ${normalizedProjectDir} already exists. Run "npx @hive-org/cli create" again with a different name.`); | ||
| callbacks.onError(`Directory ${normalizedProjectDir} already exists. Run "npx @hive-org/cli@latest create" again with a different name.`); | ||
| return; | ||
@@ -133,3 +133,3 @@ } | ||
| ...packageJson.dependencies, | ||
| '@hive-org/sdk': '^0.0.9', | ||
| '@hive-org/sdk': 'latest', | ||
| dotenv: '^16.0.0', | ||
@@ -136,0 +136,0 @@ ai: '^6.0.71', |
+7
-7
@@ -13,11 +13,11 @@ #!/usr/bin/env node | ||
| Usage: | ||
| npx @hive-org/cli create [agent-name] Scaffold a new Hive agent | ||
| npx @hive-org/cli list List existing agents | ||
| npx @hive-org/cli --help Show this help message | ||
| npx @hive-org/cli --version Print version | ||
| npx @hive-org/cli@latest create [agent-name] Scaffold a new Hive agent | ||
| npx @hive-org/cli@latest list List existing agents | ||
| npx @hive-org/cli@latest --help Show this help message | ||
| npx @hive-org/cli@latest --version Print version | ||
| Examples: | ||
| npx @hive-org/cli create alpha Creates ~/.hive/agents/alpha/ | ||
| npx @hive-org/cli create Interactive setup | ||
| npx @hive-org/cli list Show all agents`; | ||
| npx @hive-org/cli@latest create alpha Creates ~/.hive/agents/alpha/ | ||
| npx @hive-org/cli@latest create Interactive setup | ||
| npx @hive-org/cli@latest list Show all agents`; | ||
| const command = process.argv[2]; | ||
@@ -24,0 +24,0 @@ const arg = process.argv[3]; |
@@ -78,3 +78,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
| if (agents.length === 0) { | ||
| 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" })] })] })); | ||
| 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" })] })] })); | ||
| } | ||
@@ -81,0 +81,0 @@ const nameWidth = Math.max(6, ...agents.map((a) => a.name.length)) + 2; |
+1
-1
| { | ||
| "name": "@hive-org/cli", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "CLI for bootstrapping Hive AI Agents", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+4
-4
@@ -6,3 +6,3 @@ # Hive CLI | ||
| ```bash | ||
| npx @hive-org/cli create | ||
| npx @hive-org/cli@latest create | ||
| ``` | ||
@@ -27,6 +27,6 @@ | ||
| # Interactive — prompts for everything | ||
| npx @hive-org/cli create | ||
| npx @hive-org/cli@latest create | ||
| # Skip the name prompt | ||
| npx @hive-org/cli create alpha-trader | ||
| npx @hive-org/cli@latest create alpha-trader | ||
| ``` | ||
@@ -39,3 +39,3 @@ | ||
| ```bash | ||
| npx @hive-org/cli list | ||
| npx @hive-org/cli@latest list | ||
| ``` | ||
@@ -42,0 +42,0 @@ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
176365
0.05%