@alfe.ai/claude-code-host 0.1.0 → 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.cjs +9 -0
- package/dist/cli.js +10 -0
- package/dist/host-config.cjs +3 -0
- package/dist/host-config.js +3 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -16,6 +16,7 @@ const require_host_config = require("./host-config.cjs");
|
|
|
16
16
|
* - NEVER exit 0 spontaneously — a spontaneous graceful exit hot-loops the
|
|
17
17
|
* daemon's restart path.
|
|
18
18
|
*/
|
|
19
|
+
const PKG_VERSION = (0, require("node:module").createRequire)(require("url").pathToFileURL(__filename).href)("../package.json").version;
|
|
19
20
|
async function run() {
|
|
20
21
|
const host = new require_host_config.ClaudeCodeHost(require_host_config.resolveHostConfig());
|
|
21
22
|
let shuttingDown = false;
|
|
@@ -35,6 +36,14 @@ async function run() {
|
|
|
35
36
|
}
|
|
36
37
|
function main() {
|
|
37
38
|
const cmd = process.argv[2];
|
|
39
|
+
if (cmd === "--version" || cmd === "-v") {
|
|
40
|
+
process.stdout.write(`${PKG_VERSION}\n`);
|
|
41
|
+
process.exit(0);
|
|
42
|
+
}
|
|
43
|
+
if (cmd === "--help" || cmd === "-h") {
|
|
44
|
+
process.stdout.write(`alfe-claude-host ${PKG_VERSION}\nUsage: alfe-claude-host run\n`);
|
|
45
|
+
process.exit(0);
|
|
46
|
+
}
|
|
38
47
|
if (cmd && cmd !== "run") {
|
|
39
48
|
process.stderr.write(`Unknown command: ${cmd}\nUsage: alfe-claude-host run\n`);
|
|
40
49
|
process.exit(1);
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { n as ClaudeCodeHost, t as resolveHostConfig } from "./host-config.js";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
3
4
|
//#region src/cli.ts
|
|
4
5
|
/**
|
|
5
6
|
* `alfe-claude-host` — the daemon-supervised entry point.
|
|
@@ -16,6 +17,7 @@ import { n as ClaudeCodeHost, t as resolveHostConfig } from "./host-config.js";
|
|
|
16
17
|
* - NEVER exit 0 spontaneously — a spontaneous graceful exit hot-loops the
|
|
17
18
|
* daemon's restart path.
|
|
18
19
|
*/
|
|
20
|
+
const PKG_VERSION = createRequire(import.meta.url)("../package.json").version;
|
|
19
21
|
async function run() {
|
|
20
22
|
const host = new ClaudeCodeHost(resolveHostConfig());
|
|
21
23
|
let shuttingDown = false;
|
|
@@ -35,6 +37,14 @@ async function run() {
|
|
|
35
37
|
}
|
|
36
38
|
function main() {
|
|
37
39
|
const cmd = process.argv[2];
|
|
40
|
+
if (cmd === "--version" || cmd === "-v") {
|
|
41
|
+
process.stdout.write(`${PKG_VERSION}\n`);
|
|
42
|
+
process.exit(0);
|
|
43
|
+
}
|
|
44
|
+
if (cmd === "--help" || cmd === "-h") {
|
|
45
|
+
process.stdout.write(`alfe-claude-host ${PKG_VERSION}\nUsage: alfe-claude-host run\n`);
|
|
46
|
+
process.exit(0);
|
|
47
|
+
}
|
|
38
48
|
if (cmd && cmd !== "run") {
|
|
39
49
|
process.stderr.write(`Unknown command: ${cmd}\nUsage: alfe-claude-host run\n`);
|
|
40
50
|
process.exit(1);
|
package/dist/host-config.cjs
CHANGED
package/dist/host-config.js
CHANGED
package/package.json
CHANGED