@cabane/cli 0.1.1 → 0.1.2
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/dist/cli.js +6 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1222,7 +1222,7 @@ function composeBridgeEnv(opts) {
|
|
|
1222
1222
|
...opts.persistedEnv,
|
|
1223
1223
|
...opts.parentEnv,
|
|
1224
1224
|
CABANE_BRIDGE_HOME: opts.bridgeHome,
|
|
1225
|
-
CLAUDE_CONFIG_DIR: opts.claudeConfigDir,
|
|
1225
|
+
...opts.claudeConfigDir ? { CLAUDE_CONFIG_DIR: opts.claudeConfigDir } : {},
|
|
1226
1226
|
BRIDGE_NO_OPEN: "1",
|
|
1227
1227
|
CABANE_BRIDGE_CLASS: "house"
|
|
1228
1228
|
};
|
|
@@ -1554,6 +1554,9 @@ function daemonFooter(config) {
|
|
|
1554
1554
|
lines.push("logs: cabane logs \xB7 stop: cabane down");
|
|
1555
1555
|
return lines;
|
|
1556
1556
|
}
|
|
1557
|
+
function resolveClaudeConfigDir(env = process.env) {
|
|
1558
|
+
return env.CLAUDE_CONFIG_DIR;
|
|
1559
|
+
}
|
|
1557
1560
|
var Supervisor = class {
|
|
1558
1561
|
constructor(paths, appDir, port) {
|
|
1559
1562
|
this.paths = paths;
|
|
@@ -1595,7 +1598,7 @@ var Supervisor = class {
|
|
|
1595
1598
|
const config = loadConfig();
|
|
1596
1599
|
const paired = readBridgeConfig(this.paths.bridgeHome)?.deviceId;
|
|
1597
1600
|
if (!config.houseDeviceId || !paired) return;
|
|
1598
|
-
const claudeConfigDir =
|
|
1601
|
+
const claudeConfigDir = resolveClaudeConfigDir();
|
|
1599
1602
|
this.bridge = new BridgeChild(
|
|
1600
1603
|
this.appDir,
|
|
1601
1604
|
this.paths.bridgeHome,
|
|
@@ -1913,7 +1916,7 @@ async function update(opts) {
|
|
|
1913
1916
|
|
|
1914
1917
|
// src/cli.ts
|
|
1915
1918
|
var program = new Command();
|
|
1916
|
-
program.name("cabane").description("Run a self-hosted Cabane on your own machine \u2014 no docker, no repo.").version("0.1.
|
|
1919
|
+
program.name("cabane").description("Run a self-hosted Cabane on your own machine \u2014 no docker, no repo.").version("0.1.2");
|
|
1917
1920
|
var parsePort = (raw) => {
|
|
1918
1921
|
const n = Number(raw);
|
|
1919
1922
|
if (!Number.isInteger(n) || n <= 0 || n > 65535) throw new Error(`invalid port: ${raw}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabane/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The cabane CLI — install, supervise (server + embedded Postgres + house bridge), and update a self-hosted Cabane on your own machine. No docker, no repo.",
|
|
6
6
|
"license": "UNLICENSED",
|