@fentz26/envcp 1.0.71 → 1.0.81
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/LICENSE +28 -17
- package/README.md +25 -5
- package/dist/adapters/base.d.ts.map +1 -1
- package/dist/adapters/base.js +2 -0
- package/dist/adapters/base.js.map +1 -1
- package/dist/cli/index.js +74 -13
- package/dist/cli/index.js.map +1 -1
- package/dist/config/manager.d.ts +15 -0
- package/dist/config/manager.d.ts.map +1 -1
- package/dist/config/manager.js +22 -6
- package/dist/config/manager.js.map +1 -1
- package/dist/storage/index.d.ts +7 -0
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +32 -10
- package/dist/storage/index.js.map +1 -1
- package/dist/types.d.ts +0 -10
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +1 -1
- package/dist/utils/crypto.d.ts +25 -0
- package/dist/utils/crypto.d.ts.map +1 -1
- package/dist/utils/crypto.js +35 -5
- package/dist/utils/crypto.js.map +1 -1
- package/dist/utils/session.d.ts.map +1 -1
- package/dist/utils/session.js +25 -15
- package/dist/utils/session.js.map +1 -1
- package/package.json +7 -3
- package/scripts/convert-wiki.sh +91 -0
- package/scripts/install.sh +54 -0
- package/scripts/postinstall.js +13 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAW,aAAa,EAAE,MAAM,aA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OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,CAAC,CAAC;QACX,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACxE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;IACxD,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fentz26/envcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.81",
|
|
4
4
|
"description": "MCP server for secure environment variable management - Keep your secrets safe from AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"start": "node dist/index.js",
|
|
14
14
|
"dev": "ts-node src/index.ts",
|
|
15
|
-
"test": "jest"
|
|
15
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules' jest"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"mcp",
|
|
@@ -24,23 +24,27 @@
|
|
|
24
24
|
"model-context-protocol"
|
|
25
25
|
],
|
|
26
26
|
"author": "fentz26",
|
|
27
|
-
"license": "
|
|
27
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
30
|
+
"argon2": "^0.44.0",
|
|
30
31
|
"chalk": "^4.1.2",
|
|
31
32
|
"commander": "^11.1.0",
|
|
32
33
|
"dotenv": "^17.4.1",
|
|
33
34
|
"fs-extra": "^11.2.0",
|
|
34
35
|
"inquirer": "^8.2.6",
|
|
35
36
|
"js-yaml": "^4.1.0",
|
|
37
|
+
"proper-lockfile": "^4.1.2",
|
|
36
38
|
"zod": "^3.22.4"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
41
|
+
"@types/argon2": "^0.14.1",
|
|
39
42
|
"@types/fs-extra": "^11.0.4",
|
|
40
43
|
"@types/inquirer": "^9.0.7",
|
|
41
44
|
"@types/jest": "^30.0.0",
|
|
42
45
|
"@types/js-yaml": "^4.0.9",
|
|
43
46
|
"@types/node": "^20.10.0",
|
|
47
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
44
48
|
"jest": "^30.3.0",
|
|
45
49
|
"ts-jest": "^29.4.9",
|
|
46
50
|
"typescript": "^5.3.0"
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Wiki to MDX conversion script
|
|
4
|
+
# Converts wiki markdown files to Mintlify MDX format
|
|
5
|
+
|
|
6
|
+
WIKI_DIR="/home/fentz/EnvCP/wiki-content"
|
|
7
|
+
DOCS_DIR="/home/fentz/EnvCP/docs"
|
|
8
|
+
|
|
9
|
+
# Mapping of wiki files to docs locations
|
|
10
|
+
declare -A file_map=(
|
|
11
|
+
["Home.md"]="index.mdx"
|
|
12
|
+
["Installation.md"]="installation.mdx"
|
|
13
|
+
["Quick-Start-Guide.md"]="quick-start.mdx"
|
|
14
|
+
["CLI-Reference.md"]="cli-reference/commands.mdx"
|
|
15
|
+
["Configuration-Reference.md"]="configuration/reference.mdx"
|
|
16
|
+
["MCP-Integration.md"]="integrations/mcp.mdx"
|
|
17
|
+
["OpenAI-Integration.md"]="integrations/openai.mdx"
|
|
18
|
+
["Gemini-Integration.md"]="integrations/gemini.mdx"
|
|
19
|
+
["Local-LLM-Integration.md"]="integrations/local-llm.mdx"
|
|
20
|
+
["API-Reference.md"]="api-reference/endpoints.mdx"
|
|
21
|
+
["Security-Best-Practices.md"]="security/best-practices.mdx"
|
|
22
|
+
["Session-Management.md"]="advanced/session-management.mdx"
|
|
23
|
+
["Troubleshooting.md"]="advanced/troubleshooting.mdx"
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
convert_file() {
|
|
27
|
+
local input_file="$1"
|
|
28
|
+
local output_file="$2"
|
|
29
|
+
local filename=$(basename "$input_file")
|
|
30
|
+
|
|
31
|
+
# Add frontmatter based on file
|
|
32
|
+
local title="${filename%.md}"
|
|
33
|
+
title="${title//-/ }"
|
|
34
|
+
title="${title//_/ }"
|
|
35
|
+
|
|
36
|
+
# Extract first heading as title
|
|
37
|
+
local first_heading=$(grep -m 1 "^# " "$input_file" | sed 's/^# //')
|
|
38
|
+
if [ -n "$first_heading" ]; then
|
|
39
|
+
title="$first_heading"
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
# Create temp file with frontmatter
|
|
43
|
+
echo "---" > /tmp/temp_mdx.mdx
|
|
44
|
+
echo "title: $title" >> /tmp/temp_mdx.mdx
|
|
45
|
+
echo "---" >> /tmp/temp_mdx.mdx
|
|
46
|
+
echo "" >> /tmp/temp_mdx.mdx
|
|
47
|
+
|
|
48
|
+
# Convert wiki-specific markdown to MDX
|
|
49
|
+
cat "$input_file" | \
|
|
50
|
+
# Convert wiki links to docs links
|
|
51
|
+
sed 's/\[Installation\](Installation)/[Installation](\/installation)/g' | \
|
|
52
|
+
sed 's/\[Quick Start Guide\](Quick-Start-Guide)/[Quick Start Guide](\/quick-start)/g' | \
|
|
53
|
+
sed 's/\[Configuration\](Configuration)/[Configuration](\/configuration\/reference)/g' | \
|
|
54
|
+
sed 's/\[MCP Integration\](MCP-Integration)/[MCP Integration](\/integrations\/mcp)/g' | \
|
|
55
|
+
sed 's/\[OpenAI Integration\](OpenAI-Integration)/[OpenAI Integration](\/integrations\/openai)/g' | \
|
|
56
|
+
sed 's/\[Gemini Integration\](Gemini-Integration)/[Gemini Integration](\/integrations\/gemini)/g' | \
|
|
57
|
+
sed 's/\[Local LLM Integration\](Local-LLM-Integration)/[Local LLM Integration](\/integrations\/local-llm)/g' | \
|
|
58
|
+
sed 's/\[Security Best Practices\](Security-Best-Practices)/[Security Best Practices](\/security\/best-practices)/g' | \
|
|
59
|
+
sed 's/\[Session Management\](Session-Management)/[Session Management](\/advanced\/session-management)/g' | \
|
|
60
|
+
sed 's/\[Troubleshooting\](Troubleshooting)/[Troubleshooting](\/advanced\/troubleshooting)/g' | \
|
|
61
|
+
sed 's/\[CLI Reference\](CLI-Reference)/[CLI Reference](\/cli-reference\/commands)/g' | \
|
|
62
|
+
sed 's/\[Configuration Reference\](Configuration-Reference)/[Configuration Reference](\/configuration\/reference)/g' | \
|
|
63
|
+
sed 's/\[API Reference\](API-Reference)/[API Reference](\/api-reference\/endpoints)/g' \
|
|
64
|
+
>> /tmp/temp_mdx.mdx
|
|
65
|
+
|
|
66
|
+
# Remove first heading if it matches title (to avoid duplication)
|
|
67
|
+
if [ "$(head -n 4 /tmp/temp_mdx.mdx | tail -n 1 | sed 's/^# //')" = "$title" ]; then
|
|
68
|
+
# Remove the duplicate heading
|
|
69
|
+
sed -i '4d' /tmp/temp_mdx.mdx
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
# Move to final location
|
|
73
|
+
mkdir -p "$(dirname "$output_file")"
|
|
74
|
+
cp /tmp/temp_mdx.mdx "$output_file"
|
|
75
|
+
|
|
76
|
+
echo "Converted: $input_file → $output_file"
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
# Convert all files
|
|
80
|
+
for wiki_file in "${!file_map[@]}"; do
|
|
81
|
+
input_path="$WIKI_DIR/$wiki_file"
|
|
82
|
+
output_path="$DOCS_DIR/${file_map[$wiki_file]}"
|
|
83
|
+
|
|
84
|
+
if [ -f "$input_path" ]; then
|
|
85
|
+
convert_file "$input_path" "$output_path"
|
|
86
|
+
else
|
|
87
|
+
echo "Warning: $input_path not found"
|
|
88
|
+
fi
|
|
89
|
+
done
|
|
90
|
+
|
|
91
|
+
echo "✓ Conversion complete!"
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
5
|
+
RED='\033[0;31m'
|
|
6
|
+
GREEN='\033[0;32m'
|
|
7
|
+
BLUE='\033[0;34m'
|
|
8
|
+
BOLD='\033[1m'
|
|
9
|
+
NC='\033[0m'
|
|
10
|
+
|
|
11
|
+
echo -e "${BOLD}${BLUE}"
|
|
12
|
+
cat << "EOF"
|
|
13
|
+
███████╗███╗ ██╗██╗ ██╗ ██████╗██████╗
|
|
14
|
+
██╔════╝████╗ ██║██║ ██║██╔════╝██╔══██╗
|
|
15
|
+
█████╗ ██╔██╗ ██║██║ ██║██║ ██████╔╝
|
|
16
|
+
██╔══╝ ██║╚██╗██║╚██╗ ██╔╝██║ ██╔═══╝
|
|
17
|
+
███████╗██║ ╚████║ ╚████╔╝ ╚██████╗██║
|
|
18
|
+
╚══════╝╚═╝ ╚═══╝ ╚═══╝ ╚═════╝╚═╝
|
|
19
|
+
EOF
|
|
20
|
+
echo -e "${NC}"
|
|
21
|
+
|
|
22
|
+
echo -e "${BLUE}Installing EnvCP...${NC}"
|
|
23
|
+
echo ""
|
|
24
|
+
|
|
25
|
+
if ! command -v npm &> /dev/null; then
|
|
26
|
+
echo -e "${RED}Error: npm is not installed.${NC}"
|
|
27
|
+
echo "Please install Node.js first: https://nodejs.org/"
|
|
28
|
+
exit 1
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
NODE_VERSION=$(node -e "console.log(process.version.slice(1).split('.')[0])")
|
|
32
|
+
if [ "$NODE_VERSION" -lt 18 ]; then
|
|
33
|
+
echo -e "${RED}Error: Node.js 18 or higher is required (you have $NODE_VERSION).${NC}"
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
|
|
37
|
+
echo -e "${BLUE}Installing @fentz26/envcp globally...${NC}"
|
|
38
|
+
|
|
39
|
+
if npm install -g @fentz26/envcp; then
|
|
40
|
+
echo ""
|
|
41
|
+
echo -e "${GREEN}${BOLD}Successfully installed EnvCP!${NC}"
|
|
42
|
+
echo ""
|
|
43
|
+
echo -e "${BOLD}Get started:${NC}"
|
|
44
|
+
echo " envcp init # Initialize configuration"
|
|
45
|
+
echo " envcp add KEY # Add a secret"
|
|
46
|
+
echo " envcp --help # See all commands"
|
|
47
|
+
echo ""
|
|
48
|
+
echo -e "${BOLD}Docs:${NC} https://envcp.fentz.dev"
|
|
49
|
+
else
|
|
50
|
+
echo ""
|
|
51
|
+
echo -e "${RED}Installation failed. Try with sudo:${NC}"
|
|
52
|
+
echo " curl -fsSL https://raw.githubusercontent.com/fentz26/EnvCP/main/scripts/install.sh | sudo bash"
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
package/scripts/postinstall.js
CHANGED
|
@@ -13,18 +13,25 @@ const message = `
|
|
|
13
13
|
|
|
14
14
|
─────────────────────────────────────────────
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Vault location:
|
|
17
|
+
|
|
18
|
+
~/ or / -> Global vault (shared across all projects)
|
|
19
|
+
any folder -> Project vault (named after the folder)
|
|
20
|
+
You can rename it anytime with: envcp vault rename [name]
|
|
21
|
+
|
|
22
|
+
─────────────────────────────────────────────
|
|
23
|
+
|
|
24
|
+
Get started:
|
|
17
25
|
|
|
18
26
|
Simple (one-time setup):
|
|
19
|
-
$ envcp init
|
|
27
|
+
$ envcp init # Interactive guided setup
|
|
20
28
|
|
|
21
29
|
Advanced (manual config):
|
|
22
|
-
$ envcp init --advanced
|
|
23
|
-
$ envcp add
|
|
24
|
-
$ envcp config set KEY VALUE # Set config values
|
|
30
|
+
$ envcp init --advanced # Full config options
|
|
31
|
+
$ envcp add [NAME] [VALUE] # Add a secret manually
|
|
25
32
|
|
|
26
33
|
Explore:
|
|
27
|
-
$ envcp --help
|
|
34
|
+
$ envcp --help # See all commands
|
|
28
35
|
|
|
29
36
|
Docs: https://github.com/fentz26/EnvCP
|
|
30
37
|
`;
|