@llm-dev-ops/agentics-cli 1.4.68 → 1.4.69
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/package.json +3 -1
- package/scripts/postinstall.sh +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llm-dev-ops/agentics-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.69",
|
|
4
4
|
"description": "Agentics CLI - Pure orchestration layer for agentics platform services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli/index.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
+
"scripts/postinstall.sh",
|
|
12
13
|
"README.md"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"typecheck": "tsc --noEmit",
|
|
24
25
|
"postbuild": "chmod +x dist/cli/index.js 2>/dev/null || true",
|
|
25
26
|
"bundle-agents": "bash scripts/bundle-agents.sh",
|
|
27
|
+
"postinstall": "bash scripts/postinstall.sh 2>/dev/null || true",
|
|
26
28
|
"prepublishOnly": "npm run clean && npm run build && npm run bundle-agents",
|
|
27
29
|
"start:server": "node dist/server/index.js"
|
|
28
30
|
},
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Auto-register Agentics CLI as a global MCP server in Claude Code.
|
|
3
|
+
# Runs on `npm install -g @llm-dev-ops/agentics-cli` (postinstall hook).
|
|
4
|
+
# Best-effort: silently exits if Claude Code is not installed.
|
|
5
|
+
set -e
|
|
6
|
+
|
|
7
|
+
# Skip in CI environments
|
|
8
|
+
if [ -n "$CI" ] || [ -n "$GITHUB_ACTIONS" ] || [ -n "$JENKINS_URL" ]; then
|
|
9
|
+
exit 0
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
# Skip during npm publish (prepublishOnly triggers install)
|
|
13
|
+
if [ -n "$npm_command" ] && [ "$npm_command" = "publish" ]; then
|
|
14
|
+
exit 0
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# Check if claude CLI exists
|
|
18
|
+
if ! command -v claude >/dev/null 2>&1; then
|
|
19
|
+
exit 0
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
# Register as user-scoped MCP server (works in every project)
|
|
23
|
+
claude mcp add -s user agentics -- npx -y @llm-dev-ops/agentics-cli 2>/dev/null || true
|
|
24
|
+
|
|
25
|
+
echo "✓ Agentics CLI registered with Claude Code (global MCP server)"
|