apteva 0.1.2 → 0.1.3
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/bin/apteva.js +6 -6
- package/package.json +1 -1
package/bin/apteva.js
CHANGED
|
@@ -10,7 +10,7 @@ const __dirname = dirname(__filename);
|
|
|
10
10
|
|
|
11
11
|
// Parse command line arguments
|
|
12
12
|
const args = process.argv.slice(2);
|
|
13
|
-
let port =
|
|
13
|
+
let port = 4280;
|
|
14
14
|
let dataDir = null;
|
|
15
15
|
let configFile = null;
|
|
16
16
|
let showHelp = false;
|
|
@@ -19,7 +19,7 @@ let showVersion = false;
|
|
|
19
19
|
for (let i = 0; i < args.length; i++) {
|
|
20
20
|
const arg = args[i];
|
|
21
21
|
if (arg === "--port" || arg === "-p") {
|
|
22
|
-
port = parseInt(args[++i]) ||
|
|
22
|
+
port = parseInt(args[++i]) || 4280;
|
|
23
23
|
} else if (arg === "--data-dir" || arg === "-d") {
|
|
24
24
|
dataDir = args[++i];
|
|
25
25
|
} else if (arg === "--config" || arg === "-c") {
|
|
@@ -51,14 +51,14 @@ COMMANDS:
|
|
|
51
51
|
help Show this help message
|
|
52
52
|
|
|
53
53
|
OPTIONS:
|
|
54
|
-
-p, --port <port> Port to listen on (default:
|
|
54
|
+
-p, --port <port> Port to listen on (default: 4280)
|
|
55
55
|
-d, --data-dir <dir> Directory for data storage
|
|
56
56
|
-c, --config <file> Path to config file
|
|
57
57
|
-h, --help Show this help message
|
|
58
58
|
-v, --version Show version information
|
|
59
59
|
|
|
60
60
|
ENVIRONMENT VARIABLES:
|
|
61
|
-
PORT Server port (default:
|
|
61
|
+
PORT Server port (default: 4280)
|
|
62
62
|
DATA_DIR Data directory
|
|
63
63
|
ANTHROPIC_API_KEY Anthropic (Claude) API key
|
|
64
64
|
OPENAI_API_KEY OpenAI API key
|
|
@@ -70,7 +70,7 @@ ENVIRONMENT VARIABLES:
|
|
|
70
70
|
TOGETHER_API_KEY Together AI API key
|
|
71
71
|
|
|
72
72
|
EXAMPLES:
|
|
73
|
-
apteva Start on default port (
|
|
73
|
+
apteva Start on default port (4280)
|
|
74
74
|
apteva --port 8080 Start on port 8080
|
|
75
75
|
apteva --data-dir ./my-data Use custom data directory
|
|
76
76
|
apteva --config ./config.json Use config file
|
|
@@ -106,7 +106,7 @@ if (configFile) env.CONFIG_FILE = configFile;
|
|
|
106
106
|
const runtime = process.env.BUN_INSTALL ? "bun" : "node";
|
|
107
107
|
|
|
108
108
|
// Spawn the server
|
|
109
|
-
const child = spawn(runtime, [
|
|
109
|
+
const child = spawn(runtime, [entryPoint], {
|
|
110
110
|
env,
|
|
111
111
|
stdio: "inherit",
|
|
112
112
|
shell: false,
|