refactor: unify runtime directories and environment variables to HAPI_HOME

Consolidate CLI and server runtime directories from ~/.config/hapi/ (CLI) and ~/.hapi-server/ (Server) to a single ~/.hapi/ directory. Unify environment variables from HAPI_HOME_DIR (CLI) and HAPI_BOT_DATA_DIR (Server) to a single HAPI_HOME variable across both applications. Update all documentation and configuration references accordingly. Bump bun-types to 1.3.5.
This commit is contained in:
weishu
2025-12-21 19:17:07 +08:00
parent bf72e0dc3b
commit 81852a3176
15 changed files with 28 additions and 26 deletions
+3 -2
View File
@@ -39,6 +39,7 @@
"devDependencies": {
"@eslint/compat": "^1",
"@types/node": ">=20",
"bun-types": "^1.3.5",
"cross-env": "^10.1.0",
"dotenv": "^16.6.1",
"eslint": "^9",
@@ -65,7 +66,7 @@
},
"devDependencies": {
"@types/node": ">=20",
"bun-types": "^1.2.21",
"bun-types": "^1.3.5",
"typescript": "^5",
},
},
@@ -828,7 +829,7 @@
"buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="],
"bun-types": ["bun-types@1.3.4", "", { "dependencies": { "@types/node": "*" } }, "sha512-5ua817+BZPZOlNaRgGBpZJOSAQ9RQ17pkwPD0yR7CfJg+r8DgIILByFifDTa+IPDDxzf5VNhtNlcKqFzDgJvlQ=="],
"bun-types": ["bun-types@1.3.5", "", { "dependencies": { "@types/node": "*" } }, "sha512-inmAYe2PFLs0SUbFOWSVD24sg1jFlMPxOjOSSCYqUgn4Hsc3rDc7dFvfVYjFPNHtov6kgUeulV4SxbuIV/stPw=="],
"bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="],